This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/13233] New: ICE Segmentation Fault with static function call
- From: "coyote at coyotegulch dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Nov 2003 15:45:37 -0000
- Subject: [Bug c/13233] New: ICE Segmentation Fault with static function call
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The attached program generates an ICE when compiled as follows:
scott@Tycho$ gcc -c -std=gnu99 -O1 -fno-loop-optimize -fgcse \
-fforce-mem -funit-at-a-time gcc-ice4.c
gcc-ice4.c: In function `generate_test_data':
gcc-ice4.c:44: internal compiler error: Segmentation fault
The problem is the static random4 function, which is called from inside a loop
in generate_test_data. I tried reducing random4, but any changes eliminated the
ICE. The simplest change that elimintaes the ICE is to remove the "static"
qualifier from the deifnition of random4.
Based on other bugs I've found, I think the -fno-loop-optimize switch may
conflict with gcse.
--
Summary: ICE Segmentation Fault with static function call
Product: gcc
Version: 3.4
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: coyote at coyotegulch dot com
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-pc-linux
GCC host triplet: i686-pc-linux
GCC target triplet: i686-pc-linux
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13233