public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/12856] New: Wrong code with -O1: register %sil
@ 2003-10-31 14:10 nkoch at demig dot de
  2003-10-31 15:37 ` [Bug c++/12856] " pinskia at gcc dot gnu dot org
  2003-10-31 22:06 ` pinskia at gcc dot gnu dot org
  0 siblings, 2 replies; 3+ messages in thread
From: nkoch at demig dot de @ 2003-10-31 14:10 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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

           Summary: Wrong code with -O1: register %sil
           Product: gcc
           Version: 3.3.2
            Status: UNCONFIRMED
          Severity: critical
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: nkoch at demig dot de
                CC: gcc-bugs at gcc dot gnu dot org

FreeBSD entw-pr.demig 4.8-STABLE FreeBSD 4.8-STABLE #2: Mon Aug 4 12:45:05 CEST 
2003 root@entw-pr.demig:/usr/obj/usr/src/sys/ENTW-PR i386

Reading specs from /usr/local/lib/gcc-lib/i386-portbld-freebsd4.8/3.3.2/specs 
Configured with: ./..//gcc-3.3.2/configure --disable-nls 
--with-gxx-include-dir=/usr/local/lib/gcc-lib/i386-portbld-freebsd4.8/3.3.
2/include/c++/ --with-system-zlib --disable-shared --prefix=/usr/local 
i386-portbld-freebsd4.8 Thread model: posix gcc version 3.3.2 [FreeBSD]

g++33 -pipe -march=pentium -fwritable-strings -I. -I.. -I/usr/local/lib 
-D_REENTRANT -D_THREAD_SAFE -pthread -O1 -c -S -Wa,-L limit_c.cpp

In the generated assembly code I find the following line:
	cmp $0, %sil   

No problem if using -O0.

If wanted, I could send preprocessed source and assembly output
with -O0 and -O1.


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

* [Bug c++/12856] Wrong code with -O1: register %sil
  2003-10-31 14:10 [Bug c++/12856] New: Wrong code with -O1: register %sil nkoch at demig dot de
@ 2003-10-31 15:37 ` pinskia at gcc dot gnu dot org
  2003-10-31 22:06 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-10-31 15:37 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-10-31 15:35 -------
Could you attach the preprocessed source?


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

* [Bug c++/12856] Wrong code with -O1: register %sil
  2003-10-31 14:10 [Bug c++/12856] New: Wrong code with -O1: register %sil nkoch at demig dot de
  2003-10-31 15:37 ` [Bug c++/12856] " pinskia at gcc dot gnu dot org
@ 2003-10-31 22:06 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-10-31 22:06 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


pinskia at gcc dot gnu dot org changed:

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


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-10-31 22:06 -------
Not a bug, see dup bug 10153 for on how to fix the bug in the code.

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


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

end of thread, other threads:[~2003-10-31 22:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-31 14:10 [Bug c++/12856] New: Wrong code with -O1: register %sil nkoch at demig dot de
2003-10-31 15:37 ` [Bug c++/12856] " pinskia at gcc dot gnu dot org
2003-10-31 22:06 ` pinskia 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).