https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67950
Bug ID: 67950 Summary: AIX: Illegal instruction in accept() Product: gcc Version: 4.9.3 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: streibel.2003 at gmx dot net Target Milestone: --- Created attachment 36494 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36494&action=edit Output of the GCC build process (make) I compiled GCC, Version 4.9.3 on an AIX 7.1 machine. The output of the build process (make) is in the appendix. A C test program which calls accept() works fine when compiled with gcc. However it crashes within the accept() function when compiled with g++. The crash happens as soon as a client connects to the server: [root@dev71 tmp]# uname -a AIX dev71 1 7 00F6C0A94C00 [root@dev71 tmp]# /opt/gcc-4.9.3-hans/bin/gcc -o tcpserver tcpserver.c [root@dev71 tmp]# /opt/gcc-4.9.3-hans/bin/g++ -o tcpserver tcpserver.c ld: 0711-768 WARNING: Object /tmp//ccy8CL9X.o, section 1, function .accept: The branch at address 0x8a8 is not followed by a recognized no-op or TOC-reload instruction. The unrecognized instruction is 0x7C691B78. ld: 0711-768 WARNING: Object /tmp//ccy8CL9X.o, section 1, function .accept: The branch at address 0x8a8 is not followed by a recognized no-op or TOC-reload instruction. The unrecognized instruction is 0x7C691B78. [root@dev71 tmp]# ./tcpserver 1234 --> before accept() <-- Illegal instruction (core dumped) [root@dev71 tmp]# A self compiled GCC, Version 4.9.1 Shows the same behaviour. A GCC, Version 4.8.3 which we installed via an RPM package works fine.