internal compiler error using the 2008q1 toolchain

Dirk Opfer Dirk.Opfer at bitGate.de
Tue May 20 12:05:32 UTC 2008


The 2008q1 toolchain fails with an intern compiler error if I compile 
for an e500 core:

powerpc-linux-gnu-g++ -Os -fpic -shared -te500v2 -o ctest.o ctest.cpp

ctest.cpp: In function 'int socktest()':
ctest.cpp:15: internal compiler error: in dwarf2out_frame_debug_expr, at 
dwarf2out.c:1813
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:https://support.codesourcery.com/GNUToolchain/> for instructions.

This only occurs if the flags -Os and -fpic are used.


#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>

#include <stdio.h>
#include <string.h>

int socktest()
{
     struct sockaddr_in sockName;
     memset(&sockName, 0x00, sizeof(sockaddr_in));
     printf("ok");
     return 0;
}


Thanks,
Dirk





More information about the power-gnu-discuss mailing list