public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "JuergenUrban at gmx dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/58079] New: internal compiler error: in do_SUBST, at combine.c:711
Date: Sun, 04 Aug 2013 13:24:00 -0000	[thread overview]
Message-ID: <bug-58079-4@http.gcc.gnu.org/bugzilla/> (raw)

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.


             reply	other threads:[~2013-08-04 13:24 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-04 13:24 JuergenUrban at gmx dot de [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-58079-4@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).