public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug inline-asm/16346] New: powerpc64 inline assembly causes an ICE
@ 2004-07-03 12:30 anton at samba dot org
  2004-07-04 23:20 ` [Bug tree-optimization/16346] [3.5 Regression] inline assembly causes an ICE in DOM pinskia at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: anton at samba dot org @ 2004-07-03 12:30 UTC (permalink / raw)
  To: gcc-bugs

I compiled a 3.5 powerpc64 toolchain from cvs (20040703) and found it ICED when
compiling a linux kernel. It turns out we had some weird inline assembly. A
cut down testcase is:

int main()
{
        long *foo;
        asm volatile("nop": "=m"(*foo): "m"(foo));
}

# /usr/local/ppc64-3.5/bin/powerpc64-linux-gcc -O2 -c testcase.c
testcase.c: In function `main':
testcase.c:2: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

Changing it to "m"(*foo) (which is what we want) fixes the ICE.

-- 
           Summary: powerpc64 inline assembly causes an ICE
           Product: gcc
           Version: 3.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: inline-asm
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: anton at samba dot org
                CC: gcc-bugs at gcc dot gnu dot org
GCC target triplet: powerpc64-unknown-linux-gnu


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


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

* [Bug tree-optimization/16346] [3.5 Regression] inline assembly causes an ICE in DOM
  2004-07-03 12:30 [Bug inline-asm/16346] New: powerpc64 inline assembly causes an ICE anton at samba dot org
@ 2004-07-04 23:20 ` pinskia at gcc dot gnu dot org
  2004-08-01 10:29 ` zhangjie at magima dot com dot cn
  2004-08-01 15:08 ` giovannibajo at libero dot it
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-07-04 23:20 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-07-04 23:20 -------
Confirmed.
The ICE is in DOM and is target independent.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |critical
             Status|UNCONFIRMED                 |NEW
          Component|inline-asm                  |tree-optimization
     Ever Confirmed|                            |1
           Keywords|                            |ice-on-valid-code
      Known to fail|                            |3.5.0
      Known to work|                            |3.4.0
   Last reconfirmed|0000-00-00 00:00:00         |2004-07-04 23:20:24
               date|                            |
            Summary|powerpc64 inline assembly   |[3.5 Regression] inline
                   |causes an ICE               |assembly causes an ICE in
                   |                            |DOM
   Target Milestone|---                         |3.5.0


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


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

* [Bug tree-optimization/16346] [3.5 Regression] inline assembly causes an ICE in DOM
  2004-07-03 12:30 [Bug inline-asm/16346] New: powerpc64 inline assembly causes an ICE anton at samba dot org
  2004-07-04 23:20 ` [Bug tree-optimization/16346] [3.5 Regression] inline assembly causes an ICE in DOM pinskia at gcc dot gnu dot org
@ 2004-08-01 10:29 ` zhangjie at magima dot com dot cn
  2004-08-01 15:08 ` giovannibajo at libero dot it
  2 siblings, 0 replies; 4+ messages in thread
From: zhangjie at magima dot com dot cn @ 2004-08-01 10:29 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From zhangjie at magima dot com dot cn  2004-08-01 10:29 -------
This bug now disappears. It seem some commit between 2004-07-28 and 2004-07-29
has fixed it. But I cannot find out which one.

-- 


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


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

* [Bug tree-optimization/16346] [3.5 Regression] inline assembly causes an ICE in DOM
  2004-07-03 12:30 [Bug inline-asm/16346] New: powerpc64 inline assembly causes an ICE anton at samba dot org
  2004-07-04 23:20 ` [Bug tree-optimization/16346] [3.5 Regression] inline assembly causes an ICE in DOM pinskia at gcc dot gnu dot org
  2004-08-01 10:29 ` zhangjie at magima dot com dot cn
@ 2004-08-01 15:08 ` giovannibajo at libero dot it
  2 siblings, 0 replies; 4+ messages in thread
From: giovannibajo at libero dot it @ 2004-08-01 15:08 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From giovannibajo at libero dot it  2004-08-01 15:08 -------
Closing as fixed then.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


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


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

end of thread, other threads:[~2004-08-01 15:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-03 12:30 [Bug inline-asm/16346] New: powerpc64 inline assembly causes an ICE anton at samba dot org
2004-07-04 23:20 ` [Bug tree-optimization/16346] [3.5 Regression] inline assembly causes an ICE in DOM pinskia at gcc dot gnu dot org
2004-08-01 10:29 ` zhangjie at magima dot com dot cn
2004-08-01 15:08 ` giovannibajo at libero dot it

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