public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/58079] New: internal compiler error: in do_SUBST, at combine.c:711
@ 2013-08-04 13:24 JuergenUrban at gmx dot de
  2013-08-04 21:20 ` [Bug rtl-optimization/58079] " jbglaw@lug-owl.de
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: JuergenUrban at gmx dot de @ 2013-08-04 13:24 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 58079
           Summary: internal compiler error: in do_SUBST, at combine.c:711
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: JuergenUrban at gmx dot de

Created attachment 30608
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30608&action=edit
dvd_demux.i created from dvd_demux.c

An internal compiler error in do_SUBST happens. The comment in the source code
above the gcc_assert() is: "Sanity check that we're replacing oldval with a
CONST_INT that is a valid sign-extension for the original mode.".

The error happens when compiling the DVB modules in linux-2.6.35.4 for
Playstation 2 (mips). I used GCC r201473 from SVN. The error is also in
r200155. I used mips64r5900el, but it doesn't seem to be related to this. This
also happens when changing the ABI or the CPU type (still mips). Not using the
parameters "-Os", "-mno-abicalls" or "-mlong-calls" fix the problem.
I tried to create a small test case, but changing the source code and keeping
the error is difficult. I stripped the source code as far as possible and
attached the preprocessor output.

mips64r5900el-linux-gnu-gcc (GCC) 4.9.0 20130804 (experimental)

I didn't changed the GCC source code, even if the following output contains the
word "patched" in the path.

The error happens when executing the following command:
LANG=C mips64r5900el-linux-gnu-gcc -march=r4000 -mtune=r4000 -Os -mabi=32 -G 0
-mno-abicalls -msoft-float -mlong-calls  -c -o /tmp/test.o dvb_demux.i
dvb_demux.c: In function 'dvb_dmx_swfilter_packets':
dvb_demux.c:214:1: internal compiler error: in do_SUBST, at combine.c:711
 }
 ^
0xbe60c4 do_SUBST
       
/home/jur/Programmierung/ps2/linux/simple-toolchain/build21/gcc-svn-r201473-patched/gcc/combine.c:710
0xbf5db9 combine_simplify_rtx
       
/home/jur/Programmierung/ps2/linux/simple-toolchain/build21/gcc-svn-r201473-patched/gcc/combine.c:5813
0xbf710f subst
       
/home/jur/Programmierung/ps2/linux/simple-toolchain/build21/gcc-svn-r201473-patched/gcc/combine.c:5149
0xbf6eaf subst
       
/home/jur/Programmierung/ps2/linux/simple-toolchain/build21/gcc-svn-r201473-patched/gcc/combine.c:5094
0xbf6eaf subst
       
/home/jur/Programmierung/ps2/linux/simple-toolchain/build21/gcc-svn-r201473-patched/gcc/combine.c:5094
0xbf83c8 try_combine
       
/home/jur/Programmierung/ps2/linux/simple-toolchain/build21/gcc-svn-r201473-patched/gcc/combine.c:3142
0xbfd4a0 combine_instructions
       
/home/jur/Programmierung/ps2/linux/simple-toolchain/build21/gcc-svn-r201473-patched/gcc/combine.c:1368
0xbfd4a0 rest_of_handle_combine
       
/home/jur/Programmierung/ps2/linux/simple-toolchain/build21/gcc-svn-r201473-patched/gcc/combine.c:13826
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.


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

end of thread, other threads:[~2013-10-29 16:06 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-04 13:24 [Bug c/58079] New: internal compiler error: in do_SUBST, at combine.c:711 JuergenUrban at gmx dot de
2013-08-04 21:20 ` [Bug rtl-optimization/58079] " jbglaw@lug-owl.de
2013-08-05  8:42 ` mikpe at it dot uu.se
2013-08-05 12:05 ` mikpe at it dot uu.se
2013-08-06 21:14 ` rsandifo at gcc dot gnu.org
2013-08-08 18:45 ` rsandifo at gcc dot gnu.org
2013-08-08 18:49 ` rsandifo at gcc dot gnu.org
2013-09-14 20:12 ` danglin at gcc dot gnu.org
2013-09-28 16:18 ` steve at sk2 dot org
2013-10-28 16:04 ` ubizjak at gmail dot com
2013-10-29 15:44 ` [Bug rtl-optimization/58079] [4.8 Regression] " uros at gcc dot gnu.org
2013-10-29 16:06 ` ubizjak at gmail dot com

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).