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: [email protected]
ReportedBy: [email protected]
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