public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/48356] New: Compiler error on compilation of linux source file p80211wep.c if -O2 is used
@ 2011-03-30  8:38 molitor@microbiology-bonn.de
  2011-03-30  9:41 ` [Bug c/48356] " rguenth at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: molitor@microbiology-bonn.de @ 2011-03-30  8:38 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: Compiler error on compilation of linux source file
                    p80211wep.c if -O2 is used
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: c
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: molitor@microbiology-bonn.de


Trying to compile the current Linux kernel (Linux 2.6.39-rc1, latest commit:
0ce790e7d736cedc563e1fb4e998babf5a4dbc3d), I ran across a compiler error.

The source file linux-2.6/drivers/staging/wlan-ng/p80211wep.c causes this error
message:

gcc -Wp,-MD,drivers/staging/wlan-ng/.p80211wep.o.d  -nostdinc -isystem
/usr/lib/gcc/i686-pc-linux-gnu/4.6.0/include -I/linux-2.6/arch/x86/include
-Iinclude  -include include/generated/autoconf.h -D__KERNEL__ -Wall -Wundef
-Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common
-Werror-implicit-function-declaration -Wno-format-security
-fno-delete-null-pointer-checks -O2 -m32 -msoft-float -mregparm=3
-freg-struct-return -mpreferred-stack-boundary=2 -march=i686 -mtune=core2
-mtune=generic -maccumulate-outgoing-args -Wa,-mtune=generic32 -ffreestanding
-fstack-protector -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1
-DCONFIG_AS_CFI_SECTIONS=1 -pipe -Wno-sign-compare
-fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow
-Wframe-larger-than=1024 -fno-omit-frame-pointer -fno-optimize-sibling-calls -g
-Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow
-fconserve-stack -DCC_HAVE_ASM_GOTO -save-temps  -DMODULE  -D"KBUILD_STR(s)=#s"
-D"KBUILD_BASENAME=KBUILD_STR(p80211wep)" 
-D"KBUILD_MODNAME=KBUILD_STR(prism2_usb)" -c -o
drivers/staging/wlan-ng/.tmp_p80211wep.o drivers/staging/wlan-ng/p80211wep.c
gcc: warning: -pipe ignored because -save-temps specified
drivers/staging/wlan-ng/p80211wep.c: In function 'wep_decrypt':
drivers/staging/wlan-ng/p80211wep.c:229:1: internal compiler error: in
form_sum, at reload.c:5338
Please submit a full bug report,
with preprocessed source if appropriate.

The included file p80211wep.i causes this error if compiled with 

gcc  -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs
-fno-strict-aliasing -fno-common -Werror-implicit-function-declaration
-Wno-format-security -fno-delete-null-pointer-checks -O2 -m32 -msoft-float
-mregparm=3 -freg-struct-return -mpreferred-stack-boundary=2 -march=i686
-mtune=core2 -mtune=generic -maccumulate-outgoing-args -Wa,-mtune=generic32
-ffreestanding -fstack-protector -DCONFIG_AS_CFI=1
-DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -pipe
-Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2
-mno-3dnow -Wframe-larger-than=1024 -fno-omit-frame-pointer
-fno-optimize-sibling-calls -g -Wdeclaration-after-statement -Wno-pointer-sign
-fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -save-temps  -DMODULE 
-D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(p80211wep)" 
-D"KBUILD_MODNAME=KBUILD_STR(prism2_usb)" -c  p80211wep.i 

With -O instead of -O2, the file compiles nicely.

Best regards,

Ernst

P.S.: Warmest thanks for the most impressive gcc tool chain.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug c/48356] Compiler error on compilation of linux source file p80211wep.c if -O2 is used
  2011-03-30  8:38 [Bug c/48356] New: Compiler error on compilation of linux source file p80211wep.c if -O2 is used molitor@microbiology-bonn.de
@ 2011-03-30  9:41 ` rguenth at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-03-30  9:41 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE

--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-03-30 09:27:54 UTC ---
dup.

*** This bug has been marked as a duplicate of bug 48343 ***


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-03-30  9:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-30  8:38 [Bug c/48356] New: Compiler error on compilation of linux source file p80211wep.c if -O2 is used molitor@microbiology-bonn.de
2011-03-30  9:41 ` [Bug c/48356] " rguenth at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).