public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/3604: g++ can't compile specific inline asm with -O
@ 2001-07-07 14:06 vladimir.kondratiev
  0 siblings, 0 replies; 2+ messages in thread
From: vladimir.kondratiev @ 2001-07-07 14:06 UTC (permalink / raw)
  To: gcc-gnats

>Number:         3604
>Category:       c++
>Synopsis:       g++ can't compile specific inline asm with -O
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jul 07 14:06:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Vladimir Kondratiev
>Release:        3.0
>Organization:
>Environment:
[]gcc -v
Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.0/specs
Configured with: ../configure --prefix=/usr
Thread model: single
gcc version 3.0
[]uname -mrs
Linux 2.4.5-10 i686
>Description:
File attached fails to compile as c++ code with optimization. Errors produced:
convert.cc: In function `long int f(float)':
convert.cc:4: output number 0 not directly addressable
convert.cc:4: inconsistent operand constraints in an `asm'

This file do compiles, however, without optimization. It compiles as 'C' code with any optimization.
Original code is extracted from KDE libs.


>How-To-Repeat:
Not compiled:
gcc -O -c convert.cc
(as well as -O1, -O2, -O3)Do compiled:
gcc -c convert.cc
gcc -x c -O3 convert.cc
(as C code it compiles with any optimization)
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="convert.cc"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="convert.cc"

bG9uZyBmIChmbG9hdCBpbnZhbCkKewogIGxvbmcgcmV0OwogIGFzbSAoImZpc3RwbCAlMCIgOiAi
PW0iIChyZXQpIDogInQiIChpbnZhbCkgOiAic3QiKTsKICByZXR1cm4gcmV0Owp9Cgo=


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

* Re: c++/3604: g++ can't compile specific inline asm with -O
@ 2001-07-11 10:31 mmitchel
  0 siblings, 0 replies; 2+ messages in thread
From: mmitchel @ 2001-07-11 10:31 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, nobody, vladimir.kondratiev

Synopsis: g++ can't compile specific inline asm with -O

State-Changed-From-To: open->closed
State-Changed-By: mmitchel
State-Changed-When: Wed Jul 11 10:31:34 2001
State-Changed-Why:
    Duplicate of PR 2733.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=3604&database=gcc


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

end of thread, other threads:[~2001-07-11 10:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-07-07 14:06 c++/3604: g++ can't compile specific inline asm with -O vladimir.kondratiev
2001-07-11 10:31 mmitchel

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