public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/36350]  New: GCC ICE with -frename-registers
@ 2008-05-28  6:41 raj dot khem at gmail dot com
  2008-05-28  6:56 ` [Bug rtl-optimization/36350] [4.3/4.4 Regression] " pinskia at gcc dot gnu dot org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: raj dot khem at gmail dot com @ 2008-05-28  6:41 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1431 bytes --]

Attached sample (reduced from glibc cvs) caused gcc built from latest
gcc-4_3-branch to ICE on arm. It worked ok with gcc 4.2.2. If I removed
-frename-registers then the ICE would not happen.

Steps to reproduce

Compile as follows

arm-none-linux-gnueabi-gcc -c -O2 sample.c -frename-registers

sample.c: In function ‘foo’:
sample.c:10: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.


/* sample.c */

int foo () {
  const unsigned char *inptr = 0;
  unsigned char *outptr = 0;
  unsigned int inval = (__extension__ ({ register unsigned int __bsx = (*(const
unsigned int *) inptr); ((((__bsx) & 0xff000000u) >> 24) | (((__bsx) &
0x00ff0000u) >> 8) | (((__bsx) & 0x0000ff00u) << 8) | (((__bsx) & 0x000000ffu)
<< 24)); }));
  if (__builtin_expect (inval > 0x7fffffff, 0))
  {
    *((unsigned int *) outptr) = inval;
  }
return 0;
}


-- 
           Summary: GCC ICE with -frename-registers
           Product: gcc
           Version: 4.3.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: raj dot khem at gmail dot com
 GCC build triplet: i686-linux
  GCC host triplet: i686-linux
GCC target triplet: arm-none-linux-gnueabi


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


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

end of thread, other threads:[~2009-03-30 21:26 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-28  6:41 [Bug c/36350] New: GCC ICE with -frename-registers raj dot khem at gmail dot com
2008-05-28  6:56 ` [Bug rtl-optimization/36350] [4.3/4.4 Regression] " pinskia at gcc dot gnu dot org
2008-05-28 10:15 ` matthijs dot van dot de dot water at gmail dot com
2008-05-28 22:13 ` rguenth at gcc dot gnu dot org
2008-06-06 15:04 ` rguenth at gcc dot gnu dot org
2008-08-27 22:13 ` jsm28 at gcc dot gnu dot org
2008-09-20 15:13 ` rguenth at gcc dot gnu dot org
2008-11-04 12:12 ` [Bug rtl-optimization/36350] [4.3 " jakub at gcc dot gnu dot org
2009-01-24 10:24 ` rguenth at gcc dot gnu dot org
2009-03-30 21:24 ` ramana at gcc dot gnu dot org
2009-03-30 21:25 ` ramana at gcc dot gnu dot org
2009-03-30 21:26 ` ramana at gcc dot gnu dot 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).