public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug inline-asm/35318]  New: [4.3/4.4 regression] ICE with inline asm in reload
@ 2008-02-23 18:07 reichelt at gcc dot gnu dot org
  2008-02-23 18:07 ` [Bug inline-asm/35318] " reichelt at gcc dot gnu dot org
                   ` (14 more replies)
  0 siblings, 15 replies; 16+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-02-23 18:07 UTC (permalink / raw)
  To: gcc-bugs

The following valid code snippet triggers an ICE on mainline and 4.3 branch
when compiled with -O:

============================================
void foo()
{
  double x = 4, y;
  __asm__ volatile ("" : "=r,r" (x), "=r,r" (y) : "%0,0" (x), "m,r" (8));
}
============================================

bug.c: In function 'void foo()':
bug.c:5: error: Failure trying to reload:
(nil)
bug.c:5: internal compiler error: in gen_reload, at reload1.c:8043
Please submit a full bug report, [etc.]


-- 
           Summary: [4.3/4.4 regression] ICE with inline asm in reload
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code, monitored
          Severity: normal
          Priority: P3
         Component: inline-asm
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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


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

* [Bug inline-asm/35318] [4.3/4.4 regression] ICE with inline asm in reload
  2008-02-23 18:07 [Bug inline-asm/35318] New: [4.3/4.4 regression] ICE with inline asm in reload reichelt at gcc dot gnu dot org
@ 2008-02-23 18:07 ` reichelt at gcc dot gnu dot org
  2008-02-23 18:13 ` [Bug target/35318] " pinskia at gcc dot gnu dot org
                   ` (13 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-02-23 18:07 UTC (permalink / raw)
  To: gcc-bugs



-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.3.0


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


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

* [Bug target/35318] [4.3/4.4 regression] ICE with inline asm in reload
  2008-02-23 18:07 [Bug inline-asm/35318] New: [4.3/4.4 regression] ICE with inline asm in reload reichelt at gcc dot gnu dot org
  2008-02-23 18:07 ` [Bug inline-asm/35318] " reichelt at gcc dot gnu dot org
@ 2008-02-23 18:13 ` pinskia at gcc dot gnu dot org
  2008-03-03 16:26 ` rguenth at gcc dot gnu dot org
                   ` (12 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-02-23 18:13 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2008-02-23 18:12 -------
this works on:
Target: i386-apple-darwin8.11.1
Configured with: /Users/apinski/src/local/gcc/configure
--prefix=/Users/apinski/local-gcc --disable-multilib
Thread model: posix
gcc version 4.4.0 20080223 (experimental) [trunk revision 132567] (GCC) 


-- Pinski


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|inline-asm                  |target


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


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

* [Bug target/35318] [4.3/4.4 regression] ICE with inline asm in reload
  2008-02-23 18:07 [Bug inline-asm/35318] New: [4.3/4.4 regression] ICE with inline asm in reload reichelt at gcc dot gnu dot org
  2008-02-23 18:07 ` [Bug inline-asm/35318] " reichelt at gcc dot gnu dot org
  2008-02-23 18:13 ` [Bug target/35318] " pinskia at gcc dot gnu dot org
@ 2008-03-03 16:26 ` rguenth at gcc dot gnu dot org
  2008-03-04  7:39 ` reichelt at gcc dot gnu dot org
                   ` (11 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-03-03 16:26 UTC (permalink / raw)
  To: gcc-bugs



-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
           Keywords|                            |error-recovery
      Known to work|                            |4.2.2
           Priority|P3                          |P2
   Last reconfirmed|0000-00-00 00:00:00         |2008-03-03 16:25:29
               date|                            |


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


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

* [Bug target/35318] [4.3/4.4 regression] ICE with inline asm in reload
  2008-02-23 18:07 [Bug inline-asm/35318] New: [4.3/4.4 regression] ICE with inline asm in reload reichelt at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2008-03-03 16:26 ` rguenth at gcc dot gnu dot org
@ 2008-03-04  7:39 ` reichelt at gcc dot gnu dot org
  2008-03-14 17:12 ` rguenth at gcc dot gnu dot org
                   ` (10 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-03-04  7:39 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from reichelt at gcc dot gnu dot org  2008-03-04 07:38 -------
That's not an error-recovery issue. Reload prints the error via
  fatal_insn ("Failure trying to reload:", set);
which outputs some data and calls fancy_abort. So that's just a disguised ICE.


-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|error-recovery              |


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


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

* [Bug target/35318] [4.3/4.4 regression] ICE with inline asm in reload
  2008-02-23 18:07 [Bug inline-asm/35318] New: [4.3/4.4 regression] ICE with inline asm in reload reichelt at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2008-03-04  7:39 ` reichelt at gcc dot gnu dot org
@ 2008-03-14 17:12 ` rguenth at gcc dot gnu dot org
  2008-06-06 15:02 ` rguenth at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-03-14 17:12 UTC (permalink / raw)
  To: gcc-bugs



-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|                            |4.3.0
   Target Milestone|4.3.0                       |4.3.1


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


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

* [Bug target/35318] [4.3/4.4 regression] ICE with inline asm in reload
  2008-02-23 18:07 [Bug inline-asm/35318] New: [4.3/4.4 regression] ICE with inline asm in reload reichelt at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2008-03-14 17:12 ` rguenth at gcc dot gnu dot org
@ 2008-06-06 15:02 ` rguenth at gcc dot gnu dot org
  2008-08-27 22:07 ` jsm28 at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-06-06 15:02 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 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=35318


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

* [Bug target/35318] [4.3/4.4 regression] ICE with inline asm in reload
  2008-02-23 18:07 [Bug inline-asm/35318] New: [4.3/4.4 regression] ICE with inline asm in reload reichelt at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2008-06-06 15:02 ` rguenth at gcc dot gnu dot org
@ 2008-08-27 22:07 ` jsm28 at gcc dot gnu dot org
  2008-11-07 19:50 ` [Bug target/35318] [4.3 " jakub at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2008-08-27 22:07 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from jsm28 at gcc dot gnu dot org  2008-08-27 22:03 -------
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=35318


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

* [Bug target/35318] [4.3 regression] ICE with inline asm in reload
  2008-02-23 18:07 [Bug inline-asm/35318] New: [4.3/4.4 regression] ICE with inline asm in reload reichelt at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2008-08-27 22:07 ` jsm28 at gcc dot gnu dot org
@ 2008-11-07 19:50 ` jakub at gcc dot gnu dot org
  2009-01-24 10:40 ` rguenth at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-11-07 19:50 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from jakub at gcc dot gnu dot org  2008-11-07 19:49 -------
This doesn't ICE on the trunk after IRA merge.


-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to work|4.2.2                       |4.2.2 4.4.0
            Summary|[4.3/4.4 regression] ICE    |[4.3 regression] ICE with
                   |with inline asm in reload   |inline asm in reload


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


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

* [Bug target/35318] [4.3 regression] ICE with inline asm in reload
  2008-02-23 18:07 [Bug inline-asm/35318] New: [4.3/4.4 regression] ICE with inline asm in reload reichelt at gcc dot gnu dot org
                   ` (7 preceding siblings ...)
  2008-11-07 19:50 ` [Bug target/35318] [4.3 " jakub at gcc dot gnu dot org
@ 2009-01-24 10:40 ` rguenth at gcc dot gnu dot org
  2009-02-03  7:13 ` [Bug target/35318] [4.3/4.4 " reichelt at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-01-24 10:40 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=35318


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

* [Bug target/35318] [4.3/4.4 regression] ICE with inline asm in reload
  2008-02-23 18:07 [Bug inline-asm/35318] New: [4.3/4.4 regression] ICE with inline asm in reload reichelt at gcc dot gnu dot org
                   ` (8 preceding siblings ...)
  2009-01-24 10:40 ` rguenth at gcc dot gnu dot org
@ 2009-02-03  7:13 ` reichelt at gcc dot gnu dot org
  2009-02-03 17:28 ` jakub at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2009-02-03  7:13 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from reichelt at gcc dot gnu dot org  2009-02-03 07:12 -------
The ICE reappeared on the trunk:

bug.c:5: internal compiler error: output_operand: floating constant misused
Please submit a full bug report, [etc.]

Jakub, this was probably caused by your the patch for PR39058.
Maybe the IRA merge just papered over the real problem.


-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu dot org
            Summary|[4.3 regression] ICE with   |[4.3/4.4 regression] ICE
                   |inline asm in reload        |with inline asm in reload


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


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

* [Bug target/35318] [4.3/4.4 regression] ICE with inline asm in reload
  2008-02-23 18:07 [Bug inline-asm/35318] New: [4.3/4.4 regression] ICE with inline asm in reload reichelt at gcc dot gnu dot org
                   ` (9 preceding siblings ...)
  2009-02-03  7:13 ` [Bug target/35318] [4.3/4.4 " reichelt at gcc dot gnu dot org
@ 2009-02-03 17:28 ` jakub at gcc dot gnu dot org
  2009-02-03 19:32 ` [Bug target/35318] [4.3 " jakub at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: jakub at gcc dot gnu dot org @ 2009-02-03 17:28 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from jakub at gcc dot gnu dot org  2009-02-03 17:28 -------
Subject: Bug 35318

Author: jakub
Date: Tue Feb  3 17:27:45 2009
New Revision: 143901

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=143901
Log:
        PR target/35318
        * function.c (match_asm_constraints_1): Skip over
        initial optional % in the constraint.

        * gcc.c-torture/compile/pr35318.c: New test.

Added:
    trunk/gcc/testsuite/gcc.c-torture/compile/pr35318.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/function.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug target/35318] [4.3 regression] ICE with inline asm in reload
  2008-02-23 18:07 [Bug inline-asm/35318] New: [4.3/4.4 regression] ICE with inline asm in reload reichelt at gcc dot gnu dot org
                   ` (10 preceding siblings ...)
  2009-02-03 17:28 ` jakub at gcc dot gnu dot org
@ 2009-02-03 19:32 ` jakub at gcc dot gnu dot org
  2009-06-19 17:18 ` rguenth at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: jakub at gcc dot gnu dot org @ 2009-02-03 19:32 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from jakub at gcc dot gnu dot org  2009-02-03 19:32 -------
Fixed on the trunk.


-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[4.3/4.4 regression] ICE    |[4.3 regression] ICE with
                   |with inline asm in reload   |inline asm in reload


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


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

* [Bug target/35318] [4.3 regression] ICE with inline asm in reload
  2008-02-23 18:07 [Bug inline-asm/35318] New: [4.3/4.4 regression] ICE with inline asm in reload reichelt at gcc dot gnu dot org
                   ` (11 preceding siblings ...)
  2009-02-03 19:32 ` [Bug target/35318] [4.3 " jakub at gcc dot gnu dot org
@ 2009-06-19 17:18 ` rguenth at gcc dot gnu dot org
  2009-06-19 21:45 ` rguenth at gcc dot gnu dot org
  2009-06-19 21:46 ` rguenth at gcc dot gnu dot org
  14 siblings, 0 replies; 16+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-06-19 17:18 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #10 from rguenth at gcc dot gnu dot org  2009-06-19 17:18 -------
Testing a backport.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |rguenth at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED


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


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

* [Bug target/35318] [4.3 regression] ICE with inline asm in reload
  2008-02-23 18:07 [Bug inline-asm/35318] New: [4.3/4.4 regression] ICE with inline asm in reload reichelt at gcc dot gnu dot org
                   ` (12 preceding siblings ...)
  2009-06-19 17:18 ` rguenth at gcc dot gnu dot org
@ 2009-06-19 21:45 ` rguenth at gcc dot gnu dot org
  2009-06-19 21:46 ` rguenth at gcc dot gnu dot org
  14 siblings, 0 replies; 16+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-06-19 21:45 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #11 from rguenth at gcc dot gnu dot org  2009-06-19 21:44 -------
Subject: Bug 35318

Author: rguenth
Date: Fri Jun 19 21:44:24 2009
New Revision: 148730

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=148730
Log:
2009-06-19  Richard Guenther  <rguenther@suse.de>

        Backport from mainline:
        2009-02-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>

        PR C++/36607
        * convert.c (convert_to_integer): Treat OFFSET_TYPE like INTEGER_TYPE.

        * g++.dg/expr/cast10.C: New test.

        2009-02-03  Jakub Jelinek  <jakub@redhat.com>

        PR target/35318
        * function.c (match_asm_constraints_1): Skip over
        initial optional % in the constraint.

        * gcc.c-torture/compile/pr35318.c: New test.

        2009-05-20  Jakub Jelinek  <jakub@redhat.com>

        PR middle-end/40204
        * fold-const.c (fold_binary) <case BIT_AND_EXPR>: Avoid infinite
        recursion if build_int_cst_type returns the same INTEGER_CST as
        arg1.

        * gcc.c-torture/compile/pr40204.c: New test.

Added:
    branches/gcc-4_3-branch/gcc/testsuite/g++.dg/expr/cast10.C
    branches/gcc-4_3-branch/gcc/testsuite/gcc.c-torture/compile/pr35318.c
    branches/gcc-4_3-branch/gcc/testsuite/gcc.c-torture/compile/pr40204.c
Modified:
    branches/gcc-4_3-branch/gcc/ChangeLog
    branches/gcc-4_3-branch/gcc/convert.c
    branches/gcc-4_3-branch/gcc/fold-const.c
    branches/gcc-4_3-branch/gcc/function.c
    branches/gcc-4_3-branch/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug target/35318] [4.3 regression] ICE with inline asm in reload
  2008-02-23 18:07 [Bug inline-asm/35318] New: [4.3/4.4 regression] ICE with inline asm in reload reichelt at gcc dot gnu dot org
                   ` (13 preceding siblings ...)
  2009-06-19 21:45 ` rguenth at gcc dot gnu dot org
@ 2009-06-19 21:46 ` rguenth at gcc dot gnu dot org
  14 siblings, 0 replies; 16+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-06-19 21:46 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #12 from rguenth at gcc dot gnu dot org  2009-06-19 21:45 -------
Fixed.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
      Known to fail|4.3.0                       |4.3.0 4.3.3
      Known to work|4.2.2 4.4.0                 |4.2.2 4.3.4 4.4.0
         Resolution|                            |FIXED


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


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

end of thread, other threads:[~2009-06-19 21:46 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-23 18:07 [Bug inline-asm/35318] New: [4.3/4.4 regression] ICE with inline asm in reload reichelt at gcc dot gnu dot org
2008-02-23 18:07 ` [Bug inline-asm/35318] " reichelt at gcc dot gnu dot org
2008-02-23 18:13 ` [Bug target/35318] " pinskia at gcc dot gnu dot org
2008-03-03 16:26 ` rguenth at gcc dot gnu dot org
2008-03-04  7:39 ` reichelt at gcc dot gnu dot org
2008-03-14 17:12 ` rguenth at gcc dot gnu dot org
2008-06-06 15:02 ` rguenth at gcc dot gnu dot org
2008-08-27 22:07 ` jsm28 at gcc dot gnu dot org
2008-11-07 19:50 ` [Bug target/35318] [4.3 " jakub at gcc dot gnu dot org
2009-01-24 10:40 ` rguenth at gcc dot gnu dot org
2009-02-03  7:13 ` [Bug target/35318] [4.3/4.4 " reichelt at gcc dot gnu dot org
2009-02-03 17:28 ` jakub at gcc dot gnu dot org
2009-02-03 19:32 ` [Bug target/35318] [4.3 " jakub at gcc dot gnu dot org
2009-06-19 17:18 ` rguenth at gcc dot gnu dot org
2009-06-19 21:45 ` rguenth at gcc dot gnu dot org
2009-06-19 21:46 ` rguenth 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).