public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/56524] New: Compiler ICE when compiling with -mips16
@ 2013-03-04 17:25 sje at gcc dot gnu.org
  2013-03-05 16:23 ` [Bug middle-end/56524] [4.8 Regression] " aldyh at gcc dot gnu.org
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: sje at gcc dot gnu.org @ 2013-03-04 17:25 UTC (permalink / raw)
  To: gcc-bugs


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

             Bug #: 56524
           Summary: Compiler ICE when compiling with -mips16
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: sje@gcc.gnu.org
                CC: aldyh@redhat.com
            Target: mips*-*-*


This test program (from glibc) generates an ICE when compiled with -mips16. 
The internal error we are hitting was part of the fix for pr52555.  The test
program is a bit finicky, I think it is dependent on the order that GCC
processes the functions.  I don't know if this is a bug in the generic code
or in mips specific code and how mips handles the mips16 flag.


% cat mktime.i
unsigned int __bswap_32 (unsigned int __bsx)
{ return __builtin_bswap32 (__bsx); }

#pragma GCC optimize ("wrapv")

inline int leapyear (long long int year)
{
  return
    ((year & 3) == 0
     && (year % 100 != 0
  || ((year / 100) & 3) == (- (1900 / 100) & 3)));
}

mips-mti-linux-gnu-gcc -c -mips16 mktime.i
mktime.i:7:1: internal compiler error: in save_optabs_if_changed, at
optabs.c:6221
 {
 ^
0x8198e5 save_optabs_if_changed(tree_node*)
    /local/home/sellcey/gcc/linux_mips16/src/gcc/gcc/optabs.c:6221
0x4b090b decl_attributes(tree_node**, tree_node*, int)
    /local/home/sellcey/gcc/linux_mips16/src/gcc/gcc/attribs.c:545
0x4cf728 start_function(c_declspecs*, c_declarator*, tree_node*)
    /local/home/sellcey/gcc/linux_mips16/src/gcc/gcc/c/c-decl.c:7727
0x557114 c_common_parse_file()
    /local/home/sellcey/gcc/linux_mips16/src/gcc/gcc/c-family/c-opts.c:1046
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] 14+ messages in thread

end of thread, other threads:[~2013-03-13 15:44 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-04 17:25 [Bug middle-end/56524] New: Compiler ICE when compiling with -mips16 sje at gcc dot gnu.org
2013-03-05 16:23 ` [Bug middle-end/56524] [4.8 Regression] " aldyh at gcc dot gnu.org
2013-03-05 16:25 ` aldyh at gcc dot gnu.org
2013-03-06 17:56 ` aldyh at gcc dot gnu.org
2013-03-06 21:00 ` rsandifo at gcc dot gnu.org
2013-03-06 23:02 ` aldyh at gcc dot gnu.org
2013-03-07  8:15 ` jakub at gcc dot gnu.org
2013-03-07 15:56 ` sje at gcc dot gnu.org
2013-03-07 18:41 ` rsandifo at gcc dot gnu.org
2013-03-07 19:04 ` jakub at gcc dot gnu.org
2013-03-07 19:14 ` rsandifo at gcc dot gnu.org
2013-03-09  7:54 ` rsandifo at gcc dot gnu.org
2013-03-09  8:02 ` rsandifo at gcc dot gnu.org
2013-03-13 15:44 ` clm at gcc dot gnu.org

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