Bug 24603 - Build crashes while compiling regex.c
Summary: Build crashes while compiling regex.c
Status: RESOLVED DUPLICATE of bug 25690
Alias: None
Product: gcc
Classification: Unclassified
Component: target (show other bugs)
Version: 4.0.3
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on: 22044
Blocks:
  Show dependency treegraph
 
Reported: 2005-10-31 23:43 UTC by sumesh
Modified: 2006-01-10 04:44 UTC (History)
3 users (show)

See Also:
Host: linux-gnu-i686
Target: mcore-elf
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments
Preprocessed source file (19.01 KB, text/plain)
2005-11-01 22:12 UTC, sumesh
Details
Assembly output (2.67 KB, text/plain)
2005-11-01 22:13 UTC, sumesh
Details

Note You need to log in before you can comment on or make changes to this bug.
Description sumesh 2005-10-31 23:43:31 UTC
This is the error message I get
../../../im-alias-source/libiberty/regex.c: In function 'byte_regex_compile':
../../../im-alias-source/libiberty/regex.c:4221: error: unrecognizable insn:
(insn 160 159 161 3 ../../../im-alias-source/libiberty/regex.c:284 (set (reg:SI
326 [ ivtmp.838 ])
        (const:SI (plus:SI (symbol_ref:SI ("_ctype_") <var_decl 0x40162210 _ctype_>)
                (const_int 1 [0x1])))) -1 (nil)
    (nil))
../../../im-alias-source/libiberty/regex.c:4221: internal compiler error: in extract_insn, at recog.c:2084



This was on both im-alias branch and cvs version I checked  out on 10/27/05. 
Here are my configure options 
../im-alias-source/configure   --srcdir=../im-alias-source/ --target=mcore-elf --with-newlib --disable-threads --disable-multilib --disable-nls --prefix=/usr/local/gcc4-mcore --enable-languages=c

Here is the compiler line 
/home/sumesh/gcc4-mcore/im-alias/gcc_obj/./gcc/xgcc -B/home/sumesh/gcc4-mcore/im-alias/gcc_obj/./gcc/ -B/usr/local/gcc4-mcore/mcore-elf/bin/ -B/usr/local/gcc4-mcore/mcore-elf/lib/ -isystem /usr/local/gcc4-mcore/mcore-elf/include -isystem /usr/local/gcc4-mcore/mcore-elf/sys-include -c -DHAVE_CONFIG_H -O2 -g -O2   -I. -I../../../im-alias-source/libiberty/../include  -W -Wall -pedantic -Wwrite-strings -Wstrict-prototypes ../../../im-alias-source/libiberty/regex.c -o regex.o
Comment 1 Andrew Pinski 2005-11-01 00:12:57 UTC
This is a target issue.  Can you attach regex.i when you add -save-temps to that command line?
Comment 2 Andrew Pinski 2005-11-01 00:36:00 UTC
I think this is a dup of bug 22044.
Comment 3 sumesh 2005-11-01 22:12:23 UTC
Created attachment 10107 [details]
Preprocessed source file
Comment 4 sumesh 2005-11-01 22:13:24 UTC
Created attachment 10108 [details]
Assembly output
Comment 5 Andrew Pinski 2006-01-10 04:44:32 UTC

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