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 c/52877] New: ARC cross-compiler cc1 fails on "x=-1;"


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

             Bug #: 52877
           Summary: ARC cross-compiler cc1 fails on "x=-1;"
    Classification: Unclassified
           Product: gcc
           Version: 4.2.1
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: c
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: Wolfgang.Thumser@t-systems.com


the exact version of GCC: cc1 --version:
GNU C version 4.2.1 (ARC_2.4) (arc-elf32)
compiled by GNU C version 4.6.3.

the system type: uname -a:
Linux acer 3.2-11.slh.1-aptosid-amd64 #1 SMP PREEMPT Wed Mar 14 00:56:37 UTC
2012 x86_64 GNU/Linux

the options when GCC was configured/built:
configure  --prefix=/opt/arc --target=arc-elf32 --with-newlib --with-headers
--enable-multilib --enable-languages=c,c++
(gcc taken from sourceforge as arc_gcc_rel2.4.tar.gz)

the exact command line passed to the gcc program triggering the bug:
./cc1 -o tst.s tst.c

a collection of source files for reproducing the bug:
---------- tst.c  ------------------------
int x;

void tst(void){
x=-1;
}
------------------------------------------

a description of the expected behavior:
same bahavior as for "x=1;"

a description of actual behavior:
eval@acer:/tmp$ ./cc1 -o tst.s tst.c
 tst
tst.c: In function âtstâ:
tst.c:5: error: unrecognizable insn:
(insn 7 5 8 3 (set (reg:SI 151)
        (const_int -1 [0xffffffffffffffff])) -1 (nil)
    (nil))
tst.c:5: internal compiler error: in extract_insn, at recog.c:2077
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.


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