<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/">
  <channel rdf:about="http://permalink.gmane.org/gmane.comp.gcc.help">
    <title>gmane.comp.gcc.help</title>
    <link>http://permalink.gmane.org/gmane.comp.gcc.help</link>
    <description/>
    <syn:updatePeriod>hourly</syn:updatePeriod>
    <syn:updateFrequency>1</syn:updateFrequency>
    <syn:updateBase>1901-01-01T00:00+00:00</syn:updateBase>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.gcc.help/44775"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.gcc.help/44774"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.gcc.help/44773"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.gcc.help/44772"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.gcc.help/44771"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.gcc.help/44770"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.gcc.help/44769"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.gcc.help/44768"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.gcc.help/44767"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.gcc.help/44766"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.gcc.help/44765"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.gcc.help/44764"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.gcc.help/44763"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.gcc.help/44762"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.gcc.help/44761"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.gcc.help/44760"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.gcc.help/44759"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.gcc.help/44758"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.gcc.help/44757"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.gcc.help/44756"/>
      </rdf:Seq>
    </items>
    <image rdf:resource="http://gmane.org/img/gmane-25t.png"/>
    <textinput rdf:resource=""/>
  </channel>
  <image rdf:about="http://gmane.org/img/gmane-25t.png">
    <title>Gmane</title>
    <url>http://gmane.org/img/gmane-25t.png</url>
    <link>http://gmane.org</link>
  </image>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.gcc.help/44775">
    <title>Re: Trouble building AR</title>
    <link>http://permalink.gmane.org/gmane.comp.gcc.help/44775</link>
    <description>&lt;pre&gt;

Tell us exactly how you ran configure.

It's not clear from the above: did you build the binutils also, or did
you only build GCC?

Ian

&lt;/pre&gt;</description>
    <dc:creator>Ian Lance Taylor</dc:creator>
    <dc:date>2013-06-18T23:16:52</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.gcc.help/44774">
    <title>Re: if-conversion passes</title>
    <link>http://permalink.gmane.org/gmane.comp.gcc.help/44774</link>
    <description>&lt;pre&gt;On Tue, Jun 18, 2013 at 11:40 AM, Abdul Wahid Memon
&amp;lt;engrwahidmemon&amp;lt; at &amp;gt;gmail.com&amp;gt; wrote:

If you use -fno-if-conversion then the ce1 pass won't do anything, but
it will still be executed.  See rest_of_handle_if_conversion in
ifcvt.c.

Ian

&lt;/pre&gt;</description>
    <dc:creator>Ian Lance Taylor</dc:creator>
    <dc:date>2013-06-18T20:24:57</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.gcc.help/44773">
    <title>Trouble building AR</title>
    <link>http://permalink.gmane.org/gmane.comp.gcc.help/44773</link>
    <description>&lt;pre&gt;Hi,
I'm having trouble building GCC. I've decompressed GCC 4.7.2 source
into a directory and binutils 2.21.1 into a directory in parallel with
symbolic links to all subdirectories. I ran the contrib script to get
all other dependencies and then ran GCC's configure in a parallel
directory, following all installation instructions. It builds just
fine but when I install it AR seems to be missing. Any idea what
happened to it and how to get it?

Looks like it's supposed to be built with binutils and I'm getting
other tools from it like LD just not that one. There is a program
called gcc-ar that seems to exist but not sure if it's the same tool?
It may appear if I build binutils by itself but I'm trying to build
them together so that I can get -flto optimization to work, as
apparently GCC balks at using the linker plugin if they weren't built
together.

Thanks!

&lt;/pre&gt;</description>
    <dc:creator>Uri Moszkowicz</dc:creator>
    <dc:date>2013-06-18T20:07:49</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.gcc.help/44772">
    <title>Re: Authoritative answer wanted: "-g -O1" vs. "-O1"</title>
    <link>http://permalink.gmane.org/gmane.comp.gcc.help/44772</link>
    <description>&lt;pre&gt;
Oh yes.  This goes back to early GCC days, where it was one of the ways
in which GCC was superior to proprietary C compilers.  It is of *huge*
importance that if you have a bug and you turn on debugging the code
does not change, because that might make your bug change.

Andrew.


&lt;/pre&gt;</description>
    <dc:creator>Andrew Haley</dc:creator>
    <dc:date>2013-06-18T18:55:29</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.gcc.help/44771">
    <title>Re: Authoritative answer wanted: "-g -O1" vs. "-O1"</title>
    <link>http://permalink.gmane.org/gmane.comp.gcc.help/44771</link>
    <description>&lt;pre&gt;
Thanks for that information.  I think it is a useful feature that
enabling debugging does not affect the generated code, but I didn't
realise gcc was strict about it.

David


&lt;/pre&gt;</description>
    <dc:creator>David Brown</dc:creator>
    <dc:date>2013-06-18T18:48:22</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.gcc.help/44770">
    <title>Re: if-conversion passes</title>
    <link>http://permalink.gmane.org/gmane.comp.gcc.help/44770</link>
    <description>&lt;pre&gt;I searched in gcc source and found that there are three passes related
to if-conversion optimization in ifcvt.c i.e. ce1, ce2, and ce3.

My question is that if I compile any program with if-conversion
disabled then why ce1 is being executed?

$ -O3 -fno-if-conversion *.c

Regards

Abdul++

On Tue, Jun 18, 2013 at 5:30 PM, Abdul Wahid Memon
&amp;lt;engrwahidmemon&amp;lt; at &amp;gt;gmail.com&amp;gt; wrote:

&lt;/pre&gt;</description>
    <dc:creator>Abdul Wahid Memon</dc:creator>
    <dc:date>2013-06-18T18:40:57</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.gcc.help/44769">
    <title>Re: -Wold-style-casts and system headers</title>
    <link>http://permalink.gmane.org/gmane.comp.gcc.help/44769</link>
    <description>&lt;pre&gt;

Or just resurrect this one:

  http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12258

Exactly this issue, from 2004.

(Although the last comment was from 2010, looks out of place?)

Anyway.  Let me know if you think I should use that PR or start a new
one.

Thanks!

Best regards,
Anthony Foiani

&lt;/pre&gt;</description>
    <dc:creator>Anthony Foiani</dc:creator>
    <dc:date>2013-06-18T17:02:19</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.gcc.help/44768">
    <title>Re: -Wold-style-casts and system headers</title>
    <link>http://permalink.gmane.org/gmane.comp.gcc.help/44768</link>
    <description>&lt;pre&gt;
Jonathan --

Thanks for the quick reply.

Jonathan Wakely &amp;lt;jwakely.gcc&amp;lt; at &amp;gt;gmail.com&amp;gt; writes:


If that's the expected behavior, then the manual probably needs
rephrasing:

  "Macros defined in a system header are immune to a few warnings
  wherever they are expanded."

I certainly expected "wherever" to include user code, and it seems
that's an important place for it to apply.  An even shorter example:

  #include &amp;lt;sys/select.h&amp;gt;

  int main()
  {
      fd_set fds;
      FD_CLR( 0, &amp;amp;fds );
      return 0;
  }

Generates:

  $ g++ -Wold-style-cast -o g++-cast-warning g++-cast-warning.cpp
  g++-cast-warning.cpp: In function ‘int main()’:
  g++-cast-warning.cpp:47:5: warning: use of old-style cast [-Wold-style-cast]
  g++-cast-warning.cpp:47:5: warning: use of old-style cast [-Wold-style-cast]
  g++-cast-warning.cpp:47:5: warning: use of old-style cast [-Wold-style-cast]


From a quick read, it seems that the infrastructure to fix this
problem is in 4.8, but this particular problem isn't fixed?

Should I file &lt;/pre&gt;</description>
    <dc:creator>Anthony Foiani</dc:creator>
    <dc:date>2013-06-18T16:57:05</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.gcc.help/44767">
    <title>Re: trouble using glob and wordexp</title>
    <link>http://permalink.gmane.org/gmane.comp.gcc.help/44767</link>
    <description>&lt;pre&gt;Thanks!



--
View this message in context: http://gcc.1065356.n5.nabble.com/trouble-using-glob-and-wordexp-tp945091p947173.html
Sent from the gcc - Help mailing list archive at Nabble.com.

&lt;/pre&gt;</description>
    <dc:creator>ballsystemlord</dc:creator>
    <dc:date>2013-06-18T16:47:33</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.gcc.help/44766">
    <title>Re: -Wold-style-casts and system headers</title>
    <link>http://permalink.gmane.org/gmane.comp.gcc.help/44766</link>
    <description>&lt;pre&gt;
It's because the expansion of the macro is in your code, not in a system header.

There are some open bug reports on similar subjects
e.g.http://gcc.gnu.org/bugzilla/show_bug.cgi?id=7263#c8

&lt;/pre&gt;</description>
    <dc:creator>Jonathan Wakely</dc:creator>
    <dc:date>2013-06-18T16:42:15</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.gcc.help/44765">
    <title>Re: Authoritative answer wanted: "-g -O1" vs. "-O1"</title>
    <link>http://permalink.gmane.org/gmane.comp.gcc.help/44765</link>
    <description>&lt;pre&gt;
That turns out not to be the case.  It always been a strict rule with
GCC that -g does not affect code generation.

What the OP is describing is a serious bug.

Ian

&lt;/pre&gt;</description>
    <dc:creator>Ian Lance Taylor</dc:creator>
    <dc:date>2013-06-18T16:32:24</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.gcc.help/44764">
    <title>Re: -femit-struct-debug-reduced/baseonly debug info</title>
    <link>http://permalink.gmane.org/gmane.comp.gcc.help/44764</link>
    <description>&lt;pre&gt;On Tue, Jun 18, 2013 at 7:53 AM, Evgeny Gavrin
&amp;lt;evgeny.gavrin&amp;lt; at &amp;gt;hotmail.com&amp;gt; wrote:

No.  This only affect the debug info for "struct-like types", meaning,
in C++, classes and structs.  It doesn't affect inlining.  You're
right that it will keep info about static types.  And if you are
compiling foo.cc, it will keep info about class foo.


This is documented with the -femit-struct-debug-detailed option.

Ian

&lt;/pre&gt;</description>
    <dc:creator>Ian Lance Taylor</dc:creator>
    <dc:date>2013-06-18T16:23:01</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.gcc.help/44763">
    <title>-Wold-style-casts and system headers</title>
    <link>http://permalink.gmane.org/gmane.comp.gcc.help/44763</link>
    <description>&lt;pre&gt;
Greetings.

I'm using -Wold-style-casts on my project, and I've found that I get
warnings in my code when certain macros are expanded.

These macros are defined in headers under /usr/include; my reading of
the manual is that these ought to get some immunity from some
warnings:

  "Macros defined in a system header are immune to a few warnings
  wherever they are expanded. This immunity is granted on an ad-hoc
  basis, when we find that a warning generates lots of false positives
  because of code in macros defined in system headers."
  -- http://gcc.gnu.org/onlinedocs/cpp/System-Headers.html

But it seems there is some degree of judgment ("ad-hoc basis")
involved -- it's not clear whether that's regarding the header files,
individual macros, or individual warnings.

The case I hit today was from zlib.h, which has the following macro
definition:

  #define deflateInit(strm, level) \
          deflateInit_((strm), (level), ZLIB_VERSION, (int)sizeof(z_stream))

When expanded into my sample code:

  // https://&lt;/pre&gt;</description>
    <dc:creator>Anthony Foiani</dc:creator>
    <dc:date>2013-06-18T16:14:48</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.gcc.help/44762">
    <title>if-conversion passes</title>
    <link>http://permalink.gmane.org/gmane.comp.gcc.help/44762</link>
    <description>&lt;pre&gt;Hello all

Can someone please specify the pass related to if-conversion optimization?

Best regards

Abdul

&lt;/pre&gt;</description>
    <dc:creator>Abdul Wahid Memon</dc:creator>
    <dc:date>2013-06-18T15:30:46</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.gcc.help/44761">
    <title>RE: -femit-struct-debug-reduced/baseonly debug info</title>
    <link>http://permalink.gmane.org/gmane.comp.gcc.help/44761</link>
    <description>&lt;pre&gt;Quote from the documentations is not clear to me: "Emit debug information for struct-like types only when the base name of the compilation source file matches the base name of file in which the type was defined, unless the struct is a template or defined in a system header. "

As I understood, this'll store info only about static types and I'll loose info about inlining, for example, am I right?

And to extend the question:
I don't understand what means direct or indirect accessed structs? Ordinary or generic ones? Where I can read about it?

/*
With optimism,
Evgeny Gavrin

email : evgeny.gavrin&amp;lt; at &amp;gt;hotmail.com
*/


----------------------------------------
&lt;/pre&gt;</description>
    <dc:creator>Evgeny Gavrin</dc:creator>
    <dc:date>2013-06-18T14:53:11</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.gcc.help/44760">
    <title>Re: Authoritative answer wanted: "-g -O1" vs. "-O1"</title>
    <link>http://permalink.gmane.org/gmane.comp.gcc.help/44760</link>
    <description>&lt;pre&gt;
I did not think that was the case.  As I understood it, "-g" /may/ cause
to the code to improve debugging.  I can't say that I have ever noticed
any code changes, but I've always assumed it is possible especially with
more advanced optimisations.

I certainly don't see anything in the documentation that suggests "-g"
cannot change the code - only that "-g -O" will generate optimised and
debugable code (though possibly with confusing debugging).


&lt;/pre&gt;</description>
    <dc:creator>David Brown</dc:creator>
    <dc:date>2013-06-18T14:35:50</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.gcc.help/44759">
    <title>Function Parameters vs. Prologue (fastcall + O1 + -fschedule-insns2)</title>
    <link>http://permalink.gmane.org/gmane.comp.gcc.help/44759</link>
    <description>&lt;pre&gt;Hi,

I'm curious about what is causing this reordering (prologue with the
function parameters):

# gcc structs.c -o structs -m32 -O1 -fschedule-insns2

(gdb) disas main
Dump of assembler code for function main:
   0x0804868c &amp;lt;+0&amp;gt;: push   %ebp
   0x0804868d &amp;lt;+1&amp;gt;: mov    $0x3,%edx
   0x08048692 &amp;lt;+6&amp;gt;: mov    %esp,%ebp
   0x08048694 &amp;lt;+8&amp;gt;: mov    $0x2,%ecx
   0x08048699 &amp;lt;+13&amp;gt;: and    $0xfffffff0,%esp
   0x0804869c &amp;lt;+16&amp;gt;: call   0x804845c &amp;lt;funcao&amp;gt;


The code:

__attribute__((fastcall)) void funcao(int i, int a) {
...
int main() {

        int i, a;
        i = 2;
        i = 3;

        funcao(i, a);
...


When I remove one of them (fastcall or schedule-insns2), the binary is
generated in logic order:

(gdb) disas main
Dump of assembler code for function main:
   0x08048340 &amp;lt;+0&amp;gt;: push   %ebp
   0x08048341 &amp;lt;+1&amp;gt;: mov    %esp,%ebp
   0x08048343 &amp;lt;+3&amp;gt;: and    $0xfffffff0,%esp
   0x08048346 &amp;lt;+6&amp;gt;: sub    $0x10,%esp
   0x08048349 &amp;lt;+9&amp;gt;: movl   $0x3,0x4(%esp)
   0x08048351 &amp;lt;+17&amp;gt;: movl   $0x2,(%esp)
   0x08048358 &amp;lt;+24&amp;gt;: call&lt;/pre&gt;</description>
    <dc:creator>Geyslan Gregório Bem</dc:creator>
    <dc:date>2013-06-18T14:24:52</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.gcc.help/44758">
    <title>Re: Authoritative answer wanted: "-g -O1" vs. "-O1"</title>
    <link>http://permalink.gmane.org/gmane.comp.gcc.help/44758</link>
    <description>&lt;pre&gt;
Yes, just removing the -g does affect the assembly as seen using -S gcc 
flag. However, it appears to be the same difference I see with objdump 
on the full elf. Here is a small example of the difference when calling 
the same c++ function looking at the -S assembly file output. The 
directives differ as expected but there are definitely some added or 
different assembly lines between the two. These type of small 
differences are throughout all project assembly output files.

w/o -g:

_ZN20MyFunc29guppieSortBoxNumbersEv:
&amp;lt; at &amp;gt; args = 0, pretend = 0, frame = 168
&amp;lt; at &amp;gt; frame_needed = 0, uses_anonymous_args = 0
push{r4, r5, r6, r7, r8, r9, sl, fp, lr}
subsp, sp, #196
strr0, [sp, #24]
ldrhr2, [r0, #6]
ldrr3, .L85
umullr1, r3, r3, r2
lsrr3, r3, #2
strr3, [sp, #28]
cmpr3, #9
bhi.L76
movr3, #0
movr2, r3
:
:

w/ -g:

_ZN20MyFunc29guppieSortBoxNumbersEv:
.LFB42:
.loc 1 1062 0
.cfi_startproc
&amp;lt; at &amp;gt; args = 0, pretend = 0, frame = 176
&amp;lt; at &amp;gt; frame_needed = 0, uses_anonymous_args = 0
.LVL63:
push{r4, r5, r&lt;/pre&gt;</description>
    <dc:creator>gds</dc:creator>
    <dc:date>2013-06-18T14:02:06</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.gcc.help/44757">
    <title>Re: -femit-struct-debug-reduced/baseonly debug info</title>
    <link>http://permalink.gmane.org/gmane.comp.gcc.help/44757</link>
    <description>&lt;pre&gt;On Tue, Jun 18, 2013 at 4:40 AM, Evgeny Gavrin
&amp;lt;evgeny.gavrin&amp;lt; at &amp;gt;hotmail.com&amp;gt; wrote:

The GCC manual explains how those options work.  I could repeat that
documentation but that seems unhelpful.  Perhaps it would help if you
could explain what you don't understand about the documentation.

Ian

&lt;/pre&gt;</description>
    <dc:creator>Ian Lance Taylor</dc:creator>
    <dc:date>2013-06-18T13:43:18</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.gcc.help/44756">
    <title>Re: static library unresolved symbols</title>
    <link>http://permalink.gmane.org/gmane.comp.gcc.help/44756</link>
    <description>&lt;pre&gt;On Tue, Jun 18, 2013 at 3:40 AM, Riccardo Manfrin
&amp;lt;riccardomanfrin&amp;lt; at &amp;gt;gmail.com&amp;gt; wrote:

As far as I know there is no way to do that directly.

You can do it indirectly by doing

ld -r -o foo.o --whole-archive foo.a
nm -u foo.o

Ian

&lt;/pre&gt;</description>
    <dc:creator>Ian Lance Taylor</dc:creator>
    <dc:date>2013-06-18T13:40:17</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.gcc.help/44755">
    <title>-femit-struct-debug-reduced/baseonly debug info</title>
    <link>http://permalink.gmane.org/gmane.comp.gcc.help/44755</link>
    <description>&lt;pre&gt;Hi!

I'm trying to reduce the amount of debug info in my binaries.

What kind of debug info will I loose in case of using -femit-struct-debug-reduced or -femit-struct-debug-baseonly?
And what is still available?

/*
With optimism,
Evgeny Gavrin

email : evgeny.gavrin&amp;lt; at &amp;gt;hotmail.com
*/       
&lt;/pre&gt;</description>
    <dc:creator>Evgeny Gavrin</dc:creator>
    <dc:date>2013-06-18T11:40:00</dc:date>
  </item>
  <textinput rdf:about="http://search.gmane.org/?group=$group=gmane.comp.gcc.help">
    <title>Search Engine</title>
    <description>Search the mailing list at Gmane</description>
    <name>query</name>
    <link>http://search.gmane.org/?group=$group=gmane.comp.gcc.help</link>
  </textinput>
</rdf:RDF>
