Actions

icon Post
text/html Subscribe
text/html Unsubscribe

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[power-gnu-discuss] internal compiler error using the 2008q1 toolchain


  • To: power-gnu-discuss@xxxxxxxxxxxxxxxx
  • Subject: [power-gnu-discuss] internal compiler error using the 2008q1 toolchain
  • From: Dirk Opfer <Dirk.Opfer@xxxxxxxxxx>
  • Date: Tue, 20 May 2008 14:05:32 +0200

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