Bug#342662: gobjc-4.0: ICE in get_indirect_ref_operands, at tree-ssa-operands.c:1453
Package: gobjc-4.0
Version: 4.0.2-5
Severity: important
When compiling this sample code, gcc-4.0 segfaultes if -O > 0
mosca@retirante:~/devel/inova/v3-cgid$ cat test.m
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
int main(int argc, char **argv)
{
int status = 0;
char msg[100] = "";
if(!status && !strcmp(msg, "")) {
status = 200;
snprintf(msg, 100, "OK");
}
exit(0);
}
mosca@retirante:~/devel/inova/v3-cgid$ gcc -c -O1 test.m
test.m: In function 'main':
test.m:7: internal compiler error: in get_indirect_ref_operands, at
tree-ssa-operands.c:1453
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
For Debian GNU/Linux specific bug reporting instructions,
see <URL:file:///usr/share/doc/gcc-4.0/README.Bugs>.
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.14-p4-smp
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Versions of packages gobjc-4.0 depends on:
ii gcc-4.0 4.0.2-5 The GNU C compiler
ii gcc-4.0-base 4.0.2-5 The GNU Compiler Collection
(base
ii libc6 2.3.5-8.1 GNU C Library: Shared
libraries an
ii libc6-dev 2.3.5-8.1 GNU C Library: Development
Librari
ii libobjc1 1:4.0.2-5 Runtime library for GNU
Objective-
gobjc-4.0 recommends no packages.
-- no debconf information
Reply to: