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

* [Bug rtl-optimization/36350] [4.3/4.4 Regression] GCC ICE with -frename-registers
  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 ` pinskia at gcc dot gnu dot org
  2008-05-28 10:15 ` matthijs dot van dot de dot water at gmail dot com
                   ` (9 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-05-28  6:56 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu dot
                   |                            |org
          Component|c                           |rtl-optimization
           Keywords|                            |ice-on-valid-code
            Summary|GCC ICE with -frename-      |[4.3/4.4 Regression] GCC ICE
                   |registers                   |with -frename-registers
   Target Milestone|---                         |4.3.1


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


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

* [Bug rtl-optimization/36350] [4.3/4.4 Regression] GCC ICE with -frename-registers
  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
                   ` (8 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: matthijs dot van dot de dot water at gmail dot com @ 2008-05-28 10:15 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from matthijs dot van dot de dot water at gmail dot com  2008-05-28 10:14 -------
My arm-none-linux-gnueabi-gcc with the patch from 
bug 35964 does not suffer this ICE. 

This is also why Debian/Ubuntu/Fedora do not see this, because they have the
referenced patch applied on top of gcc-4_3-branch.


-- 


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


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

* [Bug rtl-optimization/36350] [4.3/4.4 Regression] GCC ICE with -frename-registers
  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
                   ` (7 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-05-28 22:13 UTC (permalink / raw)
  To: gcc-bugs



-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  BugsThisDependsOn|                            |35964
           Priority|P3                          |P2


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


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

* [Bug rtl-optimization/36350] [4.3/4.4 Regression] GCC ICE with -frename-registers
  2008-05-28  6:41 [Bug c/36350] New: GCC ICE with -frename-registers raj dot khem at gmail dot com
                   ` (2 preceding siblings ...)
  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
                   ` (6 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-06-06 15:04 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from rguenth at gcc dot gnu dot org  2008-06-06 14:59 -------
4.3.1 is being released, adjusting target milestone.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.3.1                       |4.3.2


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


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

* [Bug rtl-optimization/36350] [4.3/4.4 Regression] GCC ICE with -frename-registers
  2008-05-28  6:41 [Bug c/36350] New: GCC ICE with -frename-registers raj dot khem at gmail dot com
                   ` (3 preceding siblings ...)
  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
                   ` (5 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2008-08-27 22:13 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from jsm28 at gcc dot gnu dot org  2008-08-27 22:04 -------
4.3.2 is released, changing milestones to 4.3.3.


-- 

jsm28 at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.3.2                       |4.3.3


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


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

* [Bug rtl-optimization/36350] [4.3/4.4 Regression] GCC ICE with -frename-registers
  2008-05-28  6:41 [Bug c/36350] New: GCC ICE with -frename-registers raj dot khem at gmail dot com
                   ` (4 preceding siblings ...)
  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
                   ` (4 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-09-20 15:13 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from rguenth at gcc dot gnu dot org  2008-09-20 15:12 -------
CCing ARM maintainers so they can confirm the bug and look at its relation
to PR35964.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |richard dot earnshaw at arm
                   |                            |dot com, nickc at redhat dot
                   |                            |com


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


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

* [Bug rtl-optimization/36350] [4.3 Regression] GCC ICE with -frename-registers
  2008-05-28  6:41 [Bug c/36350] New: GCC ICE with -frename-registers raj dot khem at gmail dot com
                   ` (5 preceding siblings ...)
  2008-09-20 15:13 ` rguenth at gcc dot gnu dot org
@ 2008-11-04 12:12 ` jakub at gcc dot gnu dot org
  2009-01-24 10:24 ` rguenth at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-11-04 12:12 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from jakub at gcc dot gnu dot org  2008-11-04 12:11 -------
Indeed, a DUP of PR35964 (which isn't marked as 4.3 regression though).
http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=137235
backport fixes this on 4.3 branch, on the trunk I cannot reproduce on the given
testcase even with that change reverted.

Andrew, do you plan to backport this fix to 4.3 branch?


-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrewjenner at gcc dot gnu
                   |                            |dot org
      Known to work|4.2.2                       |4.2.2 4.4.0
            Summary|[4.3/4.4 Regression] GCC ICE|[4.3 Regression] GCC ICE
                   |with -frename-registers     |with -frename-registers


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


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

* [Bug rtl-optimization/36350] [4.3 Regression] GCC ICE with -frename-registers
  2008-05-28  6:41 [Bug c/36350] New: GCC ICE with -frename-registers raj dot khem at gmail dot com
                   ` (6 preceding siblings ...)
  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
                   ` (2 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-01-24 10:24 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from rguenth at gcc dot gnu dot org  2009-01-24 10:20 -------
GCC 4.3.3 is being released, adjusting target milestone.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.3.3                       |4.3.4


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


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

* [Bug rtl-optimization/36350] [4.3 Regression] GCC ICE with -frename-registers
  2008-05-28  6:41 [Bug c/36350] New: GCC ICE with -frename-registers raj dot khem at gmail dot com
                   ` (7 preceding siblings ...)
  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
  10 siblings, 0 replies; 12+ messages in thread
From: ramana at gcc dot gnu dot org @ 2009-03-30 21:24 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from ramana at gcc dot gnu dot org  2009-03-30 21:24 -------
This is now fixed with the fix for PR35964 which was a backport of the patch
mentioned in comment #5

*** This bug has been marked as a duplicate of 36964 ***


-- 

ramana at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


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


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

* [Bug rtl-optimization/36350] [4.3 Regression] GCC ICE with -frename-registers
  2008-05-28  6:41 [Bug c/36350] New: GCC ICE with -frename-registers raj dot khem at gmail dot com
                   ` (8 preceding siblings ...)
  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
  10 siblings, 0 replies; 12+ messages in thread
From: ramana at gcc dot gnu dot org @ 2009-03-30 21:25 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from ramana at gcc dot gnu dot org  2009-03-30 21:25 -------
Reopened because of a typo in the closing comment.


-- 

ramana at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|DUPLICATE                   |


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


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

* [Bug rtl-optimization/36350] [4.3 Regression] GCC ICE with -frename-registers
  2008-05-28  6:41 [Bug c/36350] New: GCC ICE with -frename-registers raj dot khem at gmail dot com
                   ` (9 preceding siblings ...)
  2009-03-30 21:25 ` ramana at gcc dot gnu dot org
@ 2009-03-30 21:26 ` ramana at gcc dot gnu dot org
  10 siblings, 0 replies; 12+ messages in thread
From: ramana at gcc dot gnu dot org @ 2009-03-30 21:26 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from ramana at gcc dot gnu dot org  2009-03-30 21:25 -------
It's a dup of 35964

*** This bug has been marked as a duplicate of 35964 ***


-- 

ramana at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


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