This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/30564] [4.3 Regression] ice for legal code with -O3
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Jan 2007 07:58:28 -0000
- Subject: [Bug tree-optimization/30564] [4.3 Regression] ice for legal code with -O3
- References: <bug-30564-9596@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #10 from pinskia at gcc dot gnu dot org 2007-01-28 07:58 -------
> The problem is we are calling fold_marked_statements after renumbering the
> basic blocks and such which causes us to get the wrong starting point.
We have to call verify_cgraph before calling fold_marked_statements, otherwise
we get an ICE about an function (a builtin) which we no longer call. This
shows up in the Ada front-end in C code in which we call strlen in the function
which gets inlined with a constant string.
The patch is able to pass bootstrap but I still have another regression I need
to look into, dealing with an inline-asm and the testcase is x86 specific one
at that. (it does #ifdef __i386__).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30564