From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15993 invoked by alias); 12 May 2007 20:55:56 -0000 Received: (qmail 15976 invoked by uid 48); 12 May 2007 20:55:47 -0000 Date: Sat, 12 May 2007 20:55:00 -0000 Subject: [Bug c/31909] New: spu-gcc: Internal error with -O1 X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "rose at cafwap dot net" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2007-05/txt/msg00925.txt.bz2 [rose@ps3 ray]$ cat test.cpp #include #include #include typedef short s16; typedef float f32; typedef vector unsigned char tRTColor; typedef vector float tVector4; const s16 kImageWidth = 4; const s16 kImageHeight = 4; const f32 kWindowWidth = 1.0f; const f32 kWindowHeight = 1.0f; const f32 kNearPlane = -1.0f; const vector float kEye = {0.0f, 0.0f, 0.0f, 1.0f}; void print_vector(char *var, tVector4 val) { printf("Vector %s is: {%f, %f, %f, %f}\n", var, spu_extract(val, 0), spu_extract(val, 1), spu_extract(val, 2), spu_extract(val, 3)); } tRTColor foo(int x, int y, float xx, float yy) { f32 sx = kWindowWidth * (((f32) x) + xx) / ((f32) kImageWidth) - kWindowWidth / 2.0f; f32 sy = kWindowHeight * (((f32) y) + yy) / ((f32) kImageHeight) - kWindowHeight / 2.0f; f32 sz = kNearPlane; f32 sw = 1.0f; tVector4 s = {sx, sy, sz, sw}; print_vector("s", s); } int main(unsigned long long spe_id, unsigned long long program_data_ea, unsigned long long env) { return 0; } [rose@ps3 ray]$ spu-gcc test.cpp -O1 spu-gcc: Internal error: Segmentation fault (program cc1plus) Please submit a full bug report. See for instructions. [rose@ps3 ray]$ spu-gcc --version spu-gcc (GCC) 4.1.1 Copyright (C) 2006 Free Software Foundation, Inc. [rose@ps3 ray]$ spu-gcc test.cpp [rose@ps3 ray]$ -- Summary: spu-gcc: Internal error with -O1 Product: gcc Version: 4.1.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: rose at cafwap dot net GCC host triplet: PPC PS3 GCC target triplet: PPC PS3 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31909