From Bugzilla Helper: User-Agent: Mozilla/4.0 (compatible; MSIE 5.0; Windows NT; DigExt) Description of problem: When I compile the heaptuple.i file with -O, I get a bunch of Assembler messages complaining about unrecognized .section attribute. Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1. gcc heaptuple.i -c -O 2. 3. Actual Results: % gcc heaptuple.i -c -O /tmp/ccfFR3sR.s: Assembler messages: /tmp/ccfFR3sR.s:3: Warning: Unrecognized .section attribute: want a,w,x /tmp/ccfFR3sR.s:3: Warning: Unrecognized .section attribute: want a,w,x /tmp/ccfFR3sR.s:3: Error: Rest of line ignored. First ignored character is `,'. /tmp/ccfFR3sR.s:28: Warning: Unrecognized .section attribute: want a,w,x /tmp/ccfFR3sR.s:28: Warning: Unrecognized .section attribute: want a,w,x /tmp/ccfFR3sR.s:28: Error: Rest of line ignored. First ignored character is `,'. /tmp/ccfFR3sR.s:54: Warning: Unrecognized .section attribute: want a,w,x /tmp/ccfFR3sR.s:54: Warning: Unrecognized .section attribute: want a,w,x /tmp/ccfFR3sR.s:54: Error: Rest of line ignored. First ignored character is `,'. /tmp/ccfFR3sR.s:97: Warning: Unrecognized .section attribute: want a,w,x /tmp/ccfFR3sR.s:97: Warning: Unrecognized .section attribute: want a,w,x /tmp/ccfFR3sR.s:97: Error: Rest of line ignored. First ignored character is `,'. /tmp/ccfFR3sR.s:128: Warning: Unrecognized .section attribute: want a,w,x /tmp/ccfFR3sR.s:128: Warning: Unrecognized .section attribute: want a,w,x /tmp/ccfFR3sR.s:128: Error: Rest of line ignored. First ignored character is `,' . Expected Results: compiles fine without any error Additional info: Compiling without -O is fine. This also compiles fine with 7.1. I've cut down the heaptuple.i file, the original file is part of postgresql package.
Created attachment 43054 [details] heaptuple.i
What binutils do you use? gcc-2.96-101 requires binutils >= 2.11.90.0.8-3 which certainly supports all of M, S and s section attributes (that's why the requirement is there).
The binutils that I'm using is: binutils-2.11.90.0.8-12.
The same thing happens to me with rh7.2 on ia32: gcc-2.96-98, binutils-2.11.90.0.8-9 It happens with almost any C file compiled with -O or higher. egcs-2.91.66 works fine. An example of the .section line that causes trouble is: .section .rodata.str1.32,"ams",@progbits,1 (This is from VbrTag.c from LAME)
Upgraded to binutils 2.11.92.0.12 in rawhide. Problem still occurred until I did whereis as and found I had versions in /usr/local/bin and /usr/bin. Using the /usr/bin (newer) version gives no errors. The info file is also up-to-date with the .section attributes. Apparently no rpm owns /usr/local/bin/as...I don't remember installing from tarball though.
Isn't this the case with the original bug report too, ie. is /usr/bin/as from binutils binary rpm really used for assembly? gcc -v shows how is as exactly called (if without any path, then which as tells).
When picking up the correct as, the problem goes away.