public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/46826] New: g++ with -O2 may generate infinite loops on x86_64
@ 2010-12-06 17:44 pki at ex dot com.pl
  2010-12-06 17:59 ` [Bug c++/46826] " zsojka at seznam dot cz
  2010-12-06 18:10 ` pki at ex dot com.pl
  0 siblings, 2 replies; 3+ messages in thread
From: pki at ex dot com.pl @ 2010-12-06 17:44 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: g++ with -O2 may generate infinite loops on x86_64
           Product: gcc
           Version: 4.5.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: pki@ex.com.pl


Created attachment 22662
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22662
preprocessed file causing problem

Compilation options:

g++ -DHAVE_CONFIG_H -I. -v -save-temps -g -O2 -std=c++0x -ped
antic -Werror -I/usr/local/msggw/include -I/usr/local/msggw/include
-I/usr/inclu
de/postgresql/server -I/usr/local/msggw/include -I/usr/local/include -MT
SMPPGat
eway.lo -MD -MP -MF .deps/SMPPGateway.Tpo -c gateway/smpp/SMPPGateway.c++ 


compilation of bindIfNeeded() method (as attached in SMPPGateway.ii) gives
something like:
[...]
.L121:
        jmp     .L121

in assembly code. Once I launch the program it obviously hangs here. The
problem doesn't exists if I compile with -O0


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

* [Bug c++/46826] g++ with -O2 may generate infinite loops on x86_64
  2010-12-06 17:44 [Bug c++/46826] New: g++ with -O2 may generate infinite loops on x86_64 pki at ex dot com.pl
@ 2010-12-06 17:59 ` zsojka at seznam dot cz
  2010-12-06 18:10 ` pki at ex dot com.pl
  1 sibling, 0 replies; 3+ messages in thread
From: zsojka at seznam dot cz @ 2010-12-06 17:59 UTC (permalink / raw)
  To: gcc-bugs

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

Zdenek Sojka <zsojka at seznam dot cz> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |zsojka at seznam dot cz

--- Comment #1 from Zdenek Sojka <zsojka at seznam dot cz> 2010-12-06 17:58:51 UTC ---
      bool m_onDemand;
      bool onDemand() const { return onDemand(); }

perhaps you want "return m_onDemand;"?


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

* [Bug c++/46826] g++ with -O2 may generate infinite loops on x86_64
  2010-12-06 17:44 [Bug c++/46826] New: g++ with -O2 may generate infinite loops on x86_64 pki at ex dot com.pl
  2010-12-06 17:59 ` [Bug c++/46826] " zsojka at seznam dot cz
@ 2010-12-06 18:10 ` pki at ex dot com.pl
  1 sibling, 0 replies; 3+ messages in thread
From: pki at ex dot com.pl @ 2010-12-06 18:10 UTC (permalink / raw)
  To: gcc-bugs

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

pki at ex dot com.pl changed:

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

--- Comment #2 from pki at ex dot com.pl 2010-12-06 18:10:43 UTC ---
Thanks;-) It was so obvious that I probably wouldn't notice this on my own in a
week.


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

end of thread, other threads:[~2010-12-06 18:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-06 17:44 [Bug c++/46826] New: g++ with -O2 may generate infinite loops on x86_64 pki at ex dot com.pl
2010-12-06 17:59 ` [Bug c++/46826] " zsojka at seznam dot cz
2010-12-06 18:10 ` pki at ex dot com.pl

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