Bug 22159 - [4.1 Regression] gcc-4.1-20050618 ICE's during compilation of nbench-byte-2.2.2 file nbench0.c
Summary: [4.1 Regression] gcc-4.1-20050618 ICE's during compilation of nbench-byte-2.2...
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: tree-optimization (show other bugs)
Version: 4.1.0
: P2 normal
Target Milestone: 4.1.0
Assignee: Not yet assigned to anyone
URL:
Keywords: ice-on-valid-code
Depends on:
Blocks:
 
Reported: 2005-06-23 07:15 UTC by Ralf Recker
Modified: 2005-07-23 22:49 UTC (History)
1 user (show)

See Also:
Host: i586-pc-linux-gnu
Target: i586-pc-linux-gnu
Build: i586-pc-linux-gnu
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ralf Recker 2005-06-23 07:15:42 UTC
Program:

nbench-byte-2.2.2.tar.gz

Command (ripped from the Makefile):

# The used compiler
CC = /opt/gcc-4.1-20050618/bin/gcc

# The used options for the compiler
CFLAGS = -s -static -Wall -O3 -fomit-frame-pointer

Error Message:

nbench0.c: In function 'main':
nbench0.c:66: internal compiler error: in tree_verify_flow_info, at tree-cfg.c:3716
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
make: *** [nbench0.o] Error 1

Preprocessed source:

Nope (nbench0.i > 100K)

Other GCC snapshots:

gcc-4.1-20050604 and gcc-4.1-20050611 work fine.

Other remarks:

If I add the option -fno-inline-functions the compilation finishes
successfully with gcc-4.1-20050618 =>

It seems to me that the tree-inliner is a candidate for the bug hunt.
Comment 1 Andrew Pinski 2005-06-23 12:06:27 UTC
Should be fixed already by:
2005-06-20  Jan Hubicka  <jh@suse.cz>

        * cfgloop.h (DLTHE_RECORD_COPY_NUMBER): New flag.
        * cfgloopmanip.c (duplicate_loop_to_header_edge): Set aux flags only
        when asked for.
        * loop-unroll.c (peel_loop_completely, unroll_loop_constant_iterations,
        unroll_loop_runtime_iterations, peel_loop_simple, unroll_loop_stupid):
        Update call of duplicate_loop_to_header_edge.
        (apply_opt_in_copies): Clear out aux pointers.

Can you try a CVS or attach the preprocessed source?
Comment 2 Andrew Pinski 2005-06-24 14:24:09 UTC
Fixed.