Bug 29945 - ICE in simplify_subreg with simple code in libgfortran
Summary: ICE in simplify_subreg with simple code in libgfortran
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: target (show other bugs)
Version: 4.3.0
: P3 normal
Target Milestone: 4.3.0
Assignee: Andrew Pinski
URL:
Keywords: build, ice-on-valid-code
Depends on:
Blocks:
 
Reported: 2006-11-22 19:23 UTC by Andrew Pinski
Modified: 2006-11-30 01:06 UTC (History)
1 user (show)

See Also:
Host:
Target: spu-elf
Build:
Known to work:
Known to fail:
Last reconfirmed: 2006-11-22 20:16:28


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Pinski 2006-11-22 19:23:30 UTC
The code from libgfortran ICEs:
extern const char *__ctype_ptr;
parse_real (unsigned char c)
{
  if ((__ctype_ptr[c]&04) &&c != '.')
   unget_char ( c);
}
---------------------------------
t.c: In function 'parse_real':
t.c:6: internal compiler error: in simplify_subreg, at simplify-rtx.c:4470
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
Comment 1 Andrew Pinski 2006-11-22 20:16:28 UTC
I have a fix.
Comment 2 Andrew Pinski 2006-11-29 23:31:21 UTC
The patch is testing right now.
Comment 3 Andrew Pinski 2006-11-30 01:06:18 UTC
Subject: Bug 29945

Author: pinskia
Date: Thu Nov 30 01:05:58 2006
New Revision: 119348

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=119348
Log:
2006-11-29  Andrew Pinski  <andrew_pinski@playstation.sony.com>

        PR target/29945
        * config/spu/spu.md  (extend_compare<mode>): New pattern.
        (extend_compare): Change to expand and use the above pattern.

2006-11-29  Andrew Pinski  <andrew_pinski@playstation.sony.com>

        PR target/29945
        * gcc.c-torture/compile/pr29945.c: New testcase.



Added:
    trunk/gcc/testsuite/gcc.c-torture/compile/pr29945.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/spu/spu.md
    trunk/gcc/testsuite/ChangeLog

Comment 4 Andrew Pinski 2006-11-30 01:06:34 UTC
Fixed.