This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/50116] New: internal compiler error: in decode_addr_const, at varasm.c:2632


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

             Bug #: 50116
           Summary: internal compiler error: in decode_addr_const, at
                    varasm.c:2632
    Classification: Unclassified
           Product: gcc
           Version: 4.6.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: lool@dooz.org


Hi

This was initially reported at
https://bugs.launchpad.net/ubuntu/+source/gcc-4.6-armel-cross/+bug/827990 and
Michael Hope produced a reduced testcase which is confirmed to affect GCC
4.6.1.

arm-linux-gnueabi-gcc -g -Os -fno-common -ffixed-r8 -msoft-float -D__KERNEL__
-DCONFIG_SYS_TEXT_BASE=0x80100000 -DCONFIG_SPL_TEXT_BASE=0x40304350
-I/home/lool/git/linaro/boot/u-boot-linaro-stable/obj-omap4_panda/include2
-I/home/lool/git/linaro/boot/u-boot-linaro-stable/obj-omap4_panda/include
-I/home/lool/git/linaro/boot/u-boot-linaro-stable/include -fno-builtin
-ffreestanding -nostdinc -isystem /usr/lib/gcc/arm-linux-gnueabi/4.6.1/include
-pipe -DCONFIG_ARM -D__ARM__ -marm -mabi=aapcs-linux -mno-thumb-interwork
-march=armv5 -Wall -Wstrict-prototypes -fno-stack-protector
-Wno-format-nonliteral -Wno-format-security -o
/home/lool/git/linaro/boot/u-boot-linaro-stable/obj-omap4_panda/arch/arm/cpu/armv7/omap4/clocks.o
clocks.c -c
clocks.c: In function âenable_basic_clocksâ:
clocks.c:657:13: internal compiler error: in decode_addr_const, at
varasm.c:2632
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.6/README.Bugs> for instructions.

Michael Hope also notes:
"Note the use of -fno-builtin to suppress a warning.

The fault occurs at -Os, -O1, -O2, and -O3. The work-around is to compile at
-O0."

(I'm attaching his reduced test case, the original files are in the Launchpad
bug in the unlikely case you'd need them)

Bye,


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]