public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug inline-asm/15319] New: [x86] ICE in change_stack, at reg-stack.c:2299
@ 2004-05-06 14:34 kim at mail333 dot com
  2004-05-06 15:00 ` [Bug target/15319] " pinskia at gcc dot gnu dot org
  2004-05-13 14:26 ` uros at kss-loka dot si
  0 siblings, 2 replies; 6+ messages in thread
From: kim at mail333 dot com @ 2004-05-06 14:34 UTC (permalink / raw)
  To: gcc-bugs

ilya@kim:~$ gcc -v 
Reading specs from /usr/lib/gcc-lib/i486-linux/3.3.3/specs 
Configured with: ../src/configure -v 
--enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr 
--mandir=/usr/share/man --infodir=/usr/share/info 
--with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --with-system-zlib 
--enable-nls --without-included-gettext --enable-__cxa_atexit 
--enable-clocale=gnu --enable-debug --enable-java-gc=boehm 
--enable-java-awt=xlib --enable-objc-gc i486-linux 
Thread model: posix 
gcc version 3.3.3 (Debian 20040401) 
 
ilya@kim:~/Cprogs/10$ gcc 2.cpp 
2.cpp: In function `int main()': 
2.cpp:9: internal compiler error: in change_stack, at reg-stack.c:2299 
Please submit a full bug report, 
with preprocessed source if appropriate. 
See <URL:http://gcc.gnu.org/bugs.html> for instructions. 
 
Source code: 
 
main() 
{ 
        double ret = 0; 
        double tmp = 0; 
        asm (  " fmul %1,%0" 
                 : "=t" (ret) 
                 : "u" (tmp) 
             ); 
}

-- 
           Summary: [x86] ICE in change_stack, at reg-stack.c:2299
           Product: gcc
           Version: 3.3.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: inline-asm
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: kim at mail333 dot com
                CC: gcc-bugs 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=15319


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

* [Bug target/15319] [x86] ICE in change_stack, at reg-stack.c:2299
  2004-05-06 14:34 [Bug inline-asm/15319] New: [x86] ICE in change_stack, at reg-stack.c:2299 kim at mail333 dot com
@ 2004-05-06 15:00 ` pinskia at gcc dot gnu dot org
  2004-05-13 14:26 ` uros at kss-loka dot si
  1 sibling, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-05-06 15:00 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-05-06 15:00 -------
Confirmed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
          Component|inline-asm                  |target
     Ever Confirmed|                            |1
      Known to fail|                            |2.95.3 3.0.4 3.2.3 3.3.3
                   |                            |3.4.0 3.5.0
   Last reconfirmed|0000-00-00 00:00:00         |2004-05-06 15:00:39
               date|                            |


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


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

* [Bug target/15319] [x86] ICE in change_stack, at reg-stack.c:2299
  2004-05-06 14:34 [Bug inline-asm/15319] New: [x86] ICE in change_stack, at reg-stack.c:2299 kim at mail333 dot com
  2004-05-06 15:00 ` [Bug target/15319] " pinskia at gcc dot gnu dot org
@ 2004-05-13 14:26 ` uros at kss-loka dot si
  1 sibling, 0 replies; 6+ messages in thread
From: uros at kss-loka dot si @ 2004-05-13 14:26 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From uros at kss-loka dot si  2004-05-13 06:12 -------
Please, look at the bottom of page
http://gcc.gnu.org/onlinedocs/gcc-3.3.3/gcc/Extended-Asm.html#Extended%20Asm :

i386 floating point asm operands

There are several rules on the usage of stack-like regs in asm_operands insns.
These rules apply only to the operands that are stack-like regs...

According to these rules, your asm should be written as:

  asm ("fmulp": "=t" (ret): "0" (ret), "u" (tmp): "st(1)");


-- 


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


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

* [Bug target/15319] [x86] ICE in change_stack, at reg-stack.c:2299
       [not found] <bug-15319-8483@http.gcc.gnu.org/bugzilla/>
  2009-09-17 11:08 ` ubizjak at gmail dot com
  2009-09-20 20:43 ` reichelt at gcc dot gnu dot org
@ 2009-09-20 20:52 ` rguenth at gcc dot gnu dot org
  2 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-09-20 20:52 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from rguenth at gcc dot gnu dot org  2009-09-20 20:52 -------
Uhm.  It's very hard to not crash on randomly broken inline-asm.


-- 


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


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

* [Bug target/15319] [x86] ICE in change_stack, at reg-stack.c:2299
       [not found] <bug-15319-8483@http.gcc.gnu.org/bugzilla/>
  2009-09-17 11:08 ` ubizjak at gmail dot com
@ 2009-09-20 20:43 ` reichelt at gcc dot gnu dot org
  2009-09-20 20:52 ` rguenth at gcc dot gnu dot org
  2 siblings, 0 replies; 6+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2009-09-20 20:43 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from reichelt at gcc dot gnu dot org  2009-09-20 20:42 -------
The code is invalid. But the compiler shouldn't crash on invalid code.
So this is an ice-on-invalid-code bug.


-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |


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


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

* [Bug target/15319] [x86] ICE in change_stack, at reg-stack.c:2299
       [not found] <bug-15319-8483@http.gcc.gnu.org/bugzilla/>
@ 2009-09-17 11:08 ` ubizjak at gmail dot com
  2009-09-20 20:43 ` reichelt at gcc dot gnu dot org
  2009-09-20 20:52 ` rguenth at gcc dot gnu dot org
  2 siblings, 0 replies; 6+ messages in thread
From: ubizjak at gmail dot com @ 2009-09-17 11:08 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from ubizjak at gmail dot com  2009-09-17 11:08 -------
(In reply to comment #2)

> According to these rules, your asm should be written as:
> 
>   asm ("fmulp": "=t" (ret): "0" (ret), "u" (tmp): "st(1)");

So, invalid.


-- 

ubizjak at gmail dot com changed:

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


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


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

end of thread, other threads:[~2009-09-20 20:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-06 14:34 [Bug inline-asm/15319] New: [x86] ICE in change_stack, at reg-stack.c:2299 kim at mail333 dot com
2004-05-06 15:00 ` [Bug target/15319] " pinskia at gcc dot gnu dot org
2004-05-13 14:26 ` uros at kss-loka dot si
     [not found] <bug-15319-8483@http.gcc.gnu.org/bugzilla/>
2009-09-17 11:08 ` ubizjak at gmail dot com
2009-09-20 20:43 ` reichelt at gcc dot gnu dot org
2009-09-20 20:52 ` 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).