Philippe Elbaz-Vincent on Sun, 11 Aug 2002 17:59:44 +0100 (WEST) |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: gcc-3.1.1 issue |
may be you can give more details (Linux/alpha, Linux/x86, etc..) ? On Linux/x86 (march=pentium2,athlon-mp), kernel 2.4.18, gcc-3.1.1 endian.c compiles with just the warning and apparently gives the expected result (=1) (also tested with gcc-3.2 20020809 (prerelease)). Ph. btw: I think the 3.1x serie will have a short live due to the imminent release of the 3.2 which include the new c++ abi, not bin. compatible with previous versions, but which should be widely supported (and 'backuped') by the future Linux distro. just my 2 cent. GTA, UMR CNRS 5030, CC51, U. Montpellier II. E-mail: pev@math.univ-montp2.fr | Phone: +33 (0)467143958 http://www.math.univ-montp2.fr/~pev | Fax: +33 (0)467143558 On Sat, 10 Aug 2002, Igor Schein wrote: > Hi, > > gcc-3.1.1 on Linux can't compile endian.c: > > endian.c: In function `main': > endian.c:17: warning: left shift count >= width of type > /home/igor/tmp/ccDxsDYX.s: Assembler messages: > /home/igor/tmp/ccDxsDYX.s:2: Warning: Unrecognized .section attribute: want a,w,x > /home/igor/tmp/ccDxsDYX.s:2: Warning: Unrecognized .section attribute: want a,w,x > /home/igor/tmp/ccDxsDYX.s:2: Error: Rest of line ignored. First ignored character is `,'. > > Should I file it as a gcc bug, or is it a problem with endian.c? > > Thanks > > Igor >