This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug optimization/11403] [3.4 regression] ICE in cgraph_remove_edge with -O3 (unit-at-a-time problem)


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11403



------- Additional Comments From jh at suse dot cz  2003-07-02 17:38 -------
Subject: Re:  [3.4 regression] ICE in cgraph_remove_edge with -O3 (unit-at-a-time problem)

> PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
> 
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11403
> 
> 
> bangerth at dealii dot org changed:
> 
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
>                  CC|                            |jh at suse dot cz
>              Status|UNCONFIRMED                 |NEW
>      Ever Confirmed|                            |1
>    Last reconfirmed|0000-00-00 00:00:00         |2003-07-02 14:36:17
>                date|                            |
>             Summary|ICE in cgraph_remove_edge,  |[3.4 regression] ICE in
>                    |at cgraph.c:182 when        |cgraph_remove_edge with -O3
>                    |compiling with -O3          |(unit-at-a-time problem)
> 
> 
> ------- Additional Comments From bangerth at dealii dot org  2003-07-02 14:36 -------
> Indeed. Using -O3 -fno-unit-at-a-time makes the ICE go away.
> 
> Surprisingly, I don't need the include. Here's my minimal testcase:
> ----------------------------------
> struct S {
>     double *d;
>     double &operator[] (int n) {return d[n];}
> };
> 
> void foo (bool b) {
>   S s;
>   s[3] = b ? 1. : 2.;
> }
> -----------------------------------
> 
> tmp/gg> ../build-gcc/gcc-install/bin/c++ -c -O3 x.ii
> <internal>: In function `void foo(bool)':
> <internal>:8: internal compiler error: in cgraph_remove_edge, at cgraph.c:182
> Please submit a full bug report,
> with preprocessed source if appropriate.
> See <URL:http://gcc.gnu.org/bugs.html> for instructions.
> 
> tmp/gg> ../build-gcc/gcc-install/bin/c++ -c -O3 x.ii -fno-unit-at-a-time
> 
> This is with a snapshot built tonight. Jan, would you mind taking a look?

Sure, having such a sweet testcase should make it easy.
Thanks!

Honza
> 
> W.
> 
> 
> 
> ------- You are receiving this mail because: -------
> You are on the CC list for the bug, or are watching someone who is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]