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 optimization/11980] New: [3.4 regression] ICE building cplus-dem.c for x86_64-freebsd5.1: in emit_move_insn, at expr.c:3206


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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

           Summary: [3.4 regression] ICE building cplus-dem.c for x86_64-
                    freebsd5.1: in emit_move_insn, at expr.c:3206
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P2
         Component: optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dhazeghi at yahoo dot com
                CC: gcc-bugs at gcc dot gnu dot org
GCC target triplet: x86_64-freebsd5.1

Building a cross compiler to freebsd 5.1/x86_64 with mainline (20030819) gives:

/tmp/mainline/objdir/gcc/xgcc -B/tmp/mainline/objdir/gcc/ -B/tmp/dara/x86_64-freebsd5.1//
x86_64-freebsd5.1/bin/ -B/tmp/dara/x86_64-freebsd5.1//x86_64-freebsd5.1/lib/ -isystem /
tmp/dara/x86_64-freebsd5.1//x86_64-freebsd5.1/include -isystem /tmp/dara/x86_64-
freebsd5.1//x86_64-freebsd5.1/sys-include -c -DHAVE_CONFIG_H -O2 -g -O2 -I. -I../../../gcc/
libiberty/../include  -W -Wall -Wtraditional -pedantic ../../../gcc/libiberty/cplus-dem.c -o cplus-
dem.o
../../../gcc/libiberty/cplus-dem.c: In function `cplus_demangle_opname':

../../../gcc/libiberty/cplus-dem.c:710: internal compiler error: in emit_move_insn, at expr.c:3206


Lowering optimization level to -O0, the code does not ICE, but at -O1 or higher it does. Here's a 
reduced snippet:

char *strcat(char * , const char * );


void foo(char *result)
{
    strcat (result, "operator");
}

Note that while the error is the same as in PR11974, the testcase for that bug doesn't ICE on this 
target, nor does the one for this bug ICE on that target.

This is a regression from the 3.3 branch (20030819) where the code compiles fine.


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