public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/48752] New: [4.7 Regression] ICE in evaulate_conditions_for_edge at ipa-inline-analysis.c:466
@ 2011-04-24 13:39 danglin at gcc dot gnu.org
2011-04-24 13:49 ` [Bug middle-end/48752] " dave at hiauly1 dot hia.nrc.ca
` (23 more replies)
0 siblings, 24 replies; 25+ messages in thread
From: danglin at gcc dot gnu.org @ 2011-04-24 13:39 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48752
Summary: [4.7 Regression] ICE in evaulate_conditions_for_edge
at ipa-inline-analysis.c:466
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: middle-end
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: danglin@gcc.gnu.org
Host: hppa2.0w-hp-hpux11.11
Target: hppa2.0w-hp-hpux11.11
Build: hppa2.0w-hp-hpux11.11
/test/gnu/gcc/objdir/./gcc/xgcc -shared-libgcc -B/test/gnu/gcc/objdir/./gcc
-nos
tdinc++ -L/test/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/src
-L/test/gn
u/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/src/.libs
-B/opt/gnu/gcc/gcc-4.7
/hppa2.0w-hp-hpux11.11/bin/ -B/opt/gnu/gcc/gcc-4.7/hppa2.0w-hp-hpux11.11/lib/
-i
system /opt/gnu/gcc/gcc-4.7/hppa2.0w-hp-hpux11.11/include -isystem
/opt/gnu/gcc/
gcc-4.7/hppa2.0w-hp-hpux11.11/sys-include -x c++-header -nostdinc++ -g -O2
-I
/test/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/include/hppa2.0w-hp-hpux
11.11 -I/test/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/include
-I/test/
gnu/gcc/gcc/libstdc++-v3/libsupc++ -O2 -g -std=gnu++0x
/test/gnu/gcc/gcc/libstdc
++-v3/include/precompiled/stdc++.h \
-o hppa2.0w-hp-hpux11.11/bits/stdc++.h.gch/O2ggnu++0x.gch
In file included from
/test/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/in
clude/unordered_set:46:0,
from
/test/gnu/gcc/gcc/libstdc++-v3/include/precompiled/stdc++.
h:115:
/test/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/include/bits/unordered_s
et.h:398:1: internal compiler error: vector VEC(tree,base) index domain error,
i
n evaulate_conditions_for_edge at ipa-inline-analysis.c:466
-bash-3.2$ ./xgcc -B./ -v
Reading specs from ./specs
COLLECT_GCC=./xgcc
COLLECT_LTO_WRAPPER=./lto-wrapper
Target: hppa2.0w-hp-hpux11.11
Configured with: ../gcc/configure --with-gnu-as --with-as=/opt/gnu/bin/as
--enable-shared --with-local-prefix=/opt/gnu --prefix=/opt/gnu/gcc/gcc-4.7
--with-gmp=/opt/gnu/gcc/gcc-4.7 --enable-threads=posix --enable-debug=no
--disable-nls --without-cloog --without-ppl
--enable-languages=c,c++,objc,fortran,java,ada,obj-c++
Thread model: posix
gcc version 4.7.0 20110424 (experimental) [trunk revision 172909] (GCC)
Revision 172860 was ok.
^ permalink raw reply [flat|nested] 25+ messages in thread
* [Bug middle-end/48752] [4.7 Regression] ICE in evaulate_conditions_for_edge at ipa-inline-analysis.c:466
2011-04-24 13:39 [Bug middle-end/48752] New: [4.7 Regression] ICE in evaulate_conditions_for_edge at ipa-inline-analysis.c:466 danglin at gcc dot gnu.org
@ 2011-04-24 13:49 ` dave at hiauly1 dot hia.nrc.ca
2011-04-24 18:27 ` paolo.carlini at oracle dot com
` (22 subsequent siblings)
23 siblings, 0 replies; 25+ messages in thread
From: dave at hiauly1 dot hia.nrc.ca @ 2011-04-24 13:49 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48752
--- Comment #1 from dave at hiauly1 dot hia.nrc.ca 2011-04-24 13:49:30 UTC ---
Attached .ii file.
Dave
^ permalink raw reply [flat|nested] 25+ messages in thread
* [Bug middle-end/48752] [4.7 Regression] ICE in evaulate_conditions_for_edge at ipa-inline-analysis.c:466
2011-04-24 13:39 [Bug middle-end/48752] New: [4.7 Regression] ICE in evaulate_conditions_for_edge at ipa-inline-analysis.c:466 danglin at gcc dot gnu.org
2011-04-24 13:49 ` [Bug middle-end/48752] " dave at hiauly1 dot hia.nrc.ca
@ 2011-04-24 18:27 ` paolo.carlini at oracle dot com
2011-04-24 19:13 ` dave at hiauly1 dot hia.nrc.ca
` (21 subsequent siblings)
23 siblings, 0 replies; 25+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-04-24 18:27 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48752
--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-04-24 18:27:20 UTC ---
evaulate?!?
^ permalink raw reply [flat|nested] 25+ messages in thread
* [Bug middle-end/48752] [4.7 Regression] ICE in evaulate_conditions_for_edge at ipa-inline-analysis.c:466
2011-04-24 13:39 [Bug middle-end/48752] New: [4.7 Regression] ICE in evaulate_conditions_for_edge at ipa-inline-analysis.c:466 danglin at gcc dot gnu.org
2011-04-24 13:49 ` [Bug middle-end/48752] " dave at hiauly1 dot hia.nrc.ca
2011-04-24 18:27 ` paolo.carlini at oracle dot com
@ 2011-04-24 19:13 ` dave at hiauly1 dot hia.nrc.ca
2011-04-24 19:43 ` [Bug middle-end/48752] New: " Jan Hubicka
` (20 subsequent siblings)
23 siblings, 0 replies; 25+ messages in thread
From: dave at hiauly1 dot hia.nrc.ca @ 2011-04-24 19:13 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48752
--- Comment #3 from dave at hiauly1 dot hia.nrc.ca 2011-04-24 19:13:22 UTC ---
> --- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-04-24 18:27:20 UTC ---
> evaulate?!?
I believe it must be Czech...
Dave
^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: [Bug middle-end/48752] New: [4.7 Regression] ICE in evaulate_conditions_for_edge at ipa-inline-analysis.c:466
2011-04-24 13:39 [Bug middle-end/48752] New: [4.7 Regression] ICE in evaulate_conditions_for_edge at ipa-inline-analysis.c:466 danglin at gcc dot gnu.org
` (2 preceding siblings ...)
2011-04-24 19:13 ` dave at hiauly1 dot hia.nrc.ca
@ 2011-04-24 19:43 ` Jan Hubicka
2011-04-24 19:44 ` [Bug middle-end/48752] " hubicka at ucw dot cz
` (19 subsequent siblings)
23 siblings, 0 replies; 25+ messages in thread
From: Jan Hubicka @ 2011-04-24 19:43 UTC (permalink / raw)
To: danglin at gcc dot gnu.org; +Cc: gcc-bugs
Hi,
I've comitted patch for bug with similar symptoms today. Does it still reproduce for you?
Honza
^ permalink raw reply [flat|nested] 25+ messages in thread
* [Bug middle-end/48752] [4.7 Regression] ICE in evaulate_conditions_for_edge at ipa-inline-analysis.c:466
2011-04-24 13:39 [Bug middle-end/48752] New: [4.7 Regression] ICE in evaulate_conditions_for_edge at ipa-inline-analysis.c:466 danglin at gcc dot gnu.org
` (3 preceding siblings ...)
2011-04-24 19:43 ` [Bug middle-end/48752] New: " Jan Hubicka
@ 2011-04-24 19:44 ` hubicka at ucw dot cz
2011-04-24 20:24 ` dave at hiauly1 dot hia.nrc.ca
` (18 subsequent siblings)
23 siblings, 0 replies; 25+ messages in thread
From: hubicka at ucw dot cz @ 2011-04-24 19:44 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48752
--- Comment #4 from Jan Hubicka <hubicka at ucw dot cz> 2011-04-24 19:43:44 UTC ---
Hi,
I've comitted patch for bug with similar symptoms today. Does it still
reproduce for you?
Honza
^ permalink raw reply [flat|nested] 25+ messages in thread
* [Bug middle-end/48752] [4.7 Regression] ICE in evaulate_conditions_for_edge at ipa-inline-analysis.c:466
2011-04-24 13:39 [Bug middle-end/48752] New: [4.7 Regression] ICE in evaulate_conditions_for_edge at ipa-inline-analysis.c:466 danglin at gcc dot gnu.org
` (4 preceding siblings ...)
2011-04-24 19:44 ` [Bug middle-end/48752] " hubicka at ucw dot cz
@ 2011-04-24 20:24 ` dave at hiauly1 dot hia.nrc.ca
2011-04-25 1:28 ` dave at hiauly1 dot hia.nrc.ca
` (17 subsequent siblings)
23 siblings, 0 replies; 25+ messages in thread
From: dave at hiauly1 dot hia.nrc.ca @ 2011-04-24 20:24 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48752
--- Comment #5 from dave at hiauly1 dot hia.nrc.ca 2011-04-24 20:24:00 UTC ---
> I've comitted patch for bug with similar symptoms today. Does it still
> reproduce for you?
I noticed that and started a couple of new builds. Should know in a couple
of hours.
^ permalink raw reply [flat|nested] 25+ messages in thread
* [Bug middle-end/48752] [4.7 Regression] ICE in evaulate_conditions_for_edge at ipa-inline-analysis.c:466
2011-04-24 13:39 [Bug middle-end/48752] New: [4.7 Regression] ICE in evaulate_conditions_for_edge at ipa-inline-analysis.c:466 danglin at gcc dot gnu.org
` (5 preceding siblings ...)
2011-04-24 20:24 ` dave at hiauly1 dot hia.nrc.ca
@ 2011-04-25 1:28 ` dave at hiauly1 dot hia.nrc.ca
2011-04-26 1:59 ` danglin at gcc dot gnu.org
` (16 subsequent siblings)
23 siblings, 0 replies; 25+ messages in thread
From: dave at hiauly1 dot hia.nrc.ca @ 2011-04-25 1:28 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48752
--- Comment #6 from dave at hiauly1 dot hia.nrc.ca 2011-04-25 01:27:59 UTC ---
On Sun, 24 Apr 2011, John David Anglin wrote:
> > I've comitted patch for bug with similar symptoms today. Does it still
> > reproduce for you?
>
> I noticed that and started a couple of new builds. Should know in a couple
> of hours.
The bug is still there.
^ permalink raw reply [flat|nested] 25+ messages in thread
* [Bug middle-end/48752] [4.7 Regression] ICE in evaulate_conditions_for_edge at ipa-inline-analysis.c:466
2011-04-24 13:39 [Bug middle-end/48752] New: [4.7 Regression] ICE in evaulate_conditions_for_edge at ipa-inline-analysis.c:466 danglin at gcc dot gnu.org
` (6 preceding siblings ...)
2011-04-25 1:28 ` dave at hiauly1 dot hia.nrc.ca
@ 2011-04-26 1:59 ` danglin at gcc dot gnu.org
2011-04-26 2:31 ` danglin at gcc dot gnu.org
` (15 subsequent siblings)
23 siblings, 0 replies; 25+ messages in thread
From: danglin at gcc dot gnu.org @ 2011-04-26 1:59 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48752
--- Comment #7 from John David Anglin <danglin at gcc dot gnu.org> 2011-04-26 01:57:57 UTC ---
ICE occurs at i==2.
Breakpoint 1, evaulate_conditions_for_edge (e=0x78730cf0, inline_p=1 '\001') at
../../gcc/gcc/ipa-inline-analysis.c:481
481 tree val = VEC_index (tree, known_vals, c->operand_num);
(gdb) p i
$6 = 2
(gdb) p *c
$7 = {val = 0x0, operand_num = 1, code = ERROR_MARK}
(gdb) p *known_vals
$9 = {base = {num = 1, alloc = 1, vec = {0x7af2ab28}}}
(gdb) p debug_tree (e->callee->decl)
<function_decl 785c4b80
_Z41__static_initialization_and_destruction_0ii.constprop.19
type <function_type 7861ae40
type <void_type 7af3b840 void type_6 VOID
align 8 symtab 3 alias set -1 canonical type 7af3b840
pointer_to_this <pointer_type 7af3b8a0>>
SI
size <integer_cst 7af2a438 constant 32>
unit size <integer_cst 7af2a270 constant 4>
align 32 symtab 0 alias set -1 canonical type 7861ae40
arg-types <tree_list 7897d540 value <integer_type 7af3b2a0 int>
chain <tree_list 7af2ad80 value <void_type 7af3b840 void>>>
pointer_to_this <pointer_type 78625000>>
addressable used static in_system_header decl_5 SI file
/test/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/include/bits/unordered_set.h
line 398 col 1 align 32 initial <block 785a8ea8>
arguments <parm_decl 785aa160 __initialize_p
type <integer_type 7af3b2a0 int public type_6 SI size <integer_cst
7af2a438 32> unit size <integer_cst 7af2a270 4>
align 32 symtab 8 alias set 5 canonical type 7af3b2a0 precision 32
min <integer_cst 7af2a3f0 -2147483648> max <integer_cst 7af2a408 2147483647>
pointer_to_this <pointer_type 7af3bc00> reference_to_this
<reference_type 7ad73c60>>
used SI file
/test/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/include/bits/unordered_set.h
line 398 col 1 size <integer_cst 7af2a438 32> unit size <integer_cst 7af2a270
4>
align 32 context <function_decl 78c18100
__static_initialization_and_destruction_0> arg-type <integer_type 7af3b2a0 int>
chain <parm_decl 785aa1b8 __priority type <integer_type 7af3b2a0 int>
used SI file
/test/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/include/bits/unordered_set.h
line 398 col 1 size <integer_cst 7af2a438 32> unit size <integer_cst 7af2a270
4>
align 32 context <function_decl 78c18100
__static_initialization_and_destruction_0> arg-type <integer_type 7af3b2a0
int>>>
result <result_decl 785ac000 D.108176 type <void_type 7af3b840 void>
ignored VOID file
/test/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/include/bits/unordered_set.h
line 398 col 1
align 8 context <function_decl 78c18100
__static_initialization_and_destruction_0>>
full-name "void
_Z41__static_initialization_and_destruction_0ii.constprop.19(int)"
pending-inline-info 785a8ee0>
$16 = void
(gdb) p debug_tree (e->caller->decl)
<function_decl 785c4c00
_GLOBAL__I_65535_0__test_gnu_gcc_gcc_libstdc___v3_include_precompiled_stdc__.h_E828EBE2_059ED766
type <function_type 7af478a0
type <void_type 7af3b840 void type_6 VOID
align 8 symtab 3 alias set -1 canonical type 7af3b840
pointer_to_this <pointer_type 7af3b8a0>>
type_6 SI
size <integer_cst 7af2a438 constant 32>
unit size <integer_cst 7af2a270 constant 4>
align 32 symtab 420 alias set -1 canonical type 7af478a0
arg-types <tree_list 7af2ad80 value <void_type 7af3b840 void>>
pointer_to_this <pointer_type 79db9e40>>
used public static in_system_header preserve SI file
/test/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/include/bits/unordered_set.h
line 398 col 1 align 32 initial <block 785b0c78>
result <result_decl 78605dc0 D.108737 type <void_type 7af3b840 void>
VOID file
/test/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/include/bits/unordered_set.h
line 398 col 1
align 8 context <function_decl 785c4c00
_GLOBAL__I_65535_0__test_gnu_gcc_gcc_libstdc___v3_include_precompiled_stdc__.h_E828EBE2_059ED766>>
struct-function 79bc1580>
^ permalink raw reply [flat|nested] 25+ messages in thread
* [Bug middle-end/48752] [4.7 Regression] ICE in evaulate_conditions_for_edge at ipa-inline-analysis.c:466
2011-04-24 13:39 [Bug middle-end/48752] New: [4.7 Regression] ICE in evaulate_conditions_for_edge at ipa-inline-analysis.c:466 danglin at gcc dot gnu.org
` (7 preceding siblings ...)
2011-04-26 1:59 ` danglin at gcc dot gnu.org
@ 2011-04-26 2:31 ` danglin at gcc dot gnu.org
2011-04-26 9:41 ` rguenth at gcc dot gnu.org
` (14 subsequent siblings)
23 siblings, 0 replies; 25+ messages in thread
From: danglin at gcc dot gnu.org @ 2011-04-26 2:31 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48752
John David Anglin <danglin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |hubicka at gcc dot gnu.org
--- Comment #8 from John David Anglin <danglin at gcc dot gnu.org> 2011-04-26 02:30:52 UTC ---
Looks like the issue is somehow caused by caller being a global
constructor.
I believe it should be possible to reproduce with a cross.
^ permalink raw reply [flat|nested] 25+ messages in thread
* [Bug middle-end/48752] [4.7 Regression] ICE in evaulate_conditions_for_edge at ipa-inline-analysis.c:466
2011-04-24 13:39 [Bug middle-end/48752] New: [4.7 Regression] ICE in evaulate_conditions_for_edge at ipa-inline-analysis.c:466 danglin at gcc dot gnu.org
` (8 preceding siblings ...)
2011-04-26 2:31 ` danglin at gcc dot gnu.org
@ 2011-04-26 9:41 ` rguenth at gcc dot gnu.org
2011-04-26 13:07 ` hubicka at ucw dot cz
` (13 subsequent siblings)
23 siblings, 0 replies; 25+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-04-26 9:41 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48752
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.7.0
^ permalink raw reply [flat|nested] 25+ messages in thread
* [Bug middle-end/48752] [4.7 Regression] ICE in evaulate_conditions_for_edge at ipa-inline-analysis.c:466
2011-04-24 13:39 [Bug middle-end/48752] New: [4.7 Regression] ICE in evaulate_conditions_for_edge at ipa-inline-analysis.c:466 danglin at gcc dot gnu.org
` (9 preceding siblings ...)
2011-04-26 9:41 ` rguenth at gcc dot gnu.org
@ 2011-04-26 13:07 ` hubicka at ucw dot cz
2011-04-26 18:01 ` hubicka at gcc dot gnu.org
` (12 subsequent siblings)
23 siblings, 0 replies; 25+ messages in thread
From: hubicka at ucw dot cz @ 2011-04-26 13:07 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48752
--- Comment #9 from Jan Hubicka <hubicka at ucw dot cz> 2011-04-26 13:06:08 UTC ---
> Looks like the issue is somehow caused by caller being a global
> constructor.
Hmm, yes, it is entirely possible - when new functions are added, we need to
analyze them.
I tought it is happening now, but it is not. I will check it.
Honza
^ permalink raw reply [flat|nested] 25+ messages in thread
* [Bug middle-end/48752] [4.7 Regression] ICE in evaulate_conditions_for_edge at ipa-inline-analysis.c:466
2011-04-24 13:39 [Bug middle-end/48752] New: [4.7 Regression] ICE in evaulate_conditions_for_edge at ipa-inline-analysis.c:466 danglin at gcc dot gnu.org
` (10 preceding siblings ...)
2011-04-26 13:07 ` hubicka at ucw dot cz
@ 2011-04-26 18:01 ` hubicka at gcc dot gnu.org
2011-04-26 18:12 ` dave at hiauly1 dot hia.nrc.ca
` (11 subsequent siblings)
23 siblings, 0 replies; 25+ messages in thread
From: hubicka at gcc dot gnu.org @ 2011-04-26 18:01 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48752
--- Comment #10 from Jan Hubicka <hubicka at gcc dot gnu.org> 2011-04-26 17:59:49 UTC ---
Hi,
the testcase doesn't seem to work for me. I get
In file included from
/test/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/include/cctype:43:0,
from
/test/gnu/gcc/gcc/libstdc++-v3/include/precompiled/stdc++.h:36:
/test/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/include/hppa2.0w-hp-hpux11.11/bits/c++config.h:159:20:
error: typedef 'std::decltype' is initialized (use decltype instead)
/test/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/include/hppa2.0w-hp-hpux11.11/bits/c++config.h:159:20:
error: 'nullptr' was not declared in this scope
In file included from
/test/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/include/cmath:44:0,
from
/test/gnu/gcc/gcc/libstdc++-v3/include/precompiled/stdc++.h:42:
/test/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/include/bits/cpp_type_traits.h:185:25:
error: 'char16_t' was not declared in this scope
/test/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/include/bits/cpp_type_traits.h:185:33:
error: template argument 1 is invalid
/test/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/include/bits/cpp_type_traits.h:192:25:
error: 'char32_t' was not declared in this scope
/test/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/include/bits/cpp_type_traits.h:192:33:
error: template argument 1 is invalid
In file included from
/test/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/include/iosfwd:41:0,
from
/test/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/include/ios:39,
from
/test/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/include/istream:40,
from
/test/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/include/sstream:39,
from
/test/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/include/complex:47,
from
/test/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/include/ccomplex:42,
from
/test/gnu/gcc/gcc/libstdc++-v3/include/precompiled/stdc++.h:53:
/test/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/include/bits/stringfwd.h:76:33:
error: 'char16_t' was not declared in this scope
/test/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/include/bits/stringfwd.h:76:41:
error: template argument 1 is invalid
/test/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/include/bits/stringfwd.h:77:33:
error: 'char32_t' was not declared in this scope
/test/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/include/bits/stringfwd.h:77:41:
error: template argument 1 is invalid
/test/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/include/bits/stringfwd.h:79:24:
error: 'char16_t' was not declared in this scope
/test/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/include/bits/stringfwd.h:79:32:
error: template argument 1 is invalid
/test/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/include/bits/stringfwd.h:79:32:
error: template argument 2 is invalid
/test/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/include/bits/stringfwd.h:79:32:
error: template argument 3 is invalid
/test/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/include/bits/stringfwd.h:79:43:
error: invalid type in declaration before ';' token
/test/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/include/bits/stringfwd.h:80:24:
error: 'char32_t' was not declared in this scope
/test/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/include/bits/stringfwd.h:80:32:
error: template argument 1 is invalid
/test/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/include/bits/stringfwd.h:80:32:
error: template argument 2 is invalid
/test/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/include/bits/stringfwd.h:80:32:
error: template argument 3 is invalid
/test/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/include/bits/stringfwd.h:80:43:
error: invalid type in declaration before ';' token
and more...
on comipler configure as:
configure --target=hppa2.0w-hp-hpux11.11 --enable-languages=c,c++
--disable-bootstrap
Any clue what is wrong?
After dinner I will try to look into the add_new_function path and figure out
why summaries are not computed as they should.
^ permalink raw reply [flat|nested] 25+ messages in thread
* [Bug middle-end/48752] [4.7 Regression] ICE in evaulate_conditions_for_edge at ipa-inline-analysis.c:466
2011-04-24 13:39 [Bug middle-end/48752] New: [4.7 Regression] ICE in evaulate_conditions_for_edge at ipa-inline-analysis.c:466 danglin at gcc dot gnu.org
` (11 preceding siblings ...)
2011-04-26 18:01 ` hubicka at gcc dot gnu.org
@ 2011-04-26 18:12 ` dave at hiauly1 dot hia.nrc.ca
2011-04-27 8:00 ` hubicka at ucw dot cz
` (10 subsequent siblings)
23 siblings, 0 replies; 25+ messages in thread
From: dave at hiauly1 dot hia.nrc.ca @ 2011-04-26 18:12 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48752
--- Comment #11 from dave at hiauly1 dot hia.nrc.ca 2011-04-26 18:11:43 UTC ---
> Any clue what is wrong?
> After dinner I will try to look into the add_new_function path and figure out
> why summaries are not computed as they should.
These are the args I used in debugging cc1plus with the testcase:
-fpreprocessed stdc++.ii -quiet -dumpbase stdc++.h -auxbase stdc++ -g -g -O2
-O2 -std=gnu++0x -version -o stdc++.s --output-pch=
hppa2.0w-hp-hpux11.11/bits/stdc++.h.gch/O2ggnu++0x.gch
Does that help?
Dave
^ permalink raw reply [flat|nested] 25+ messages in thread
* [Bug middle-end/48752] [4.7 Regression] ICE in evaulate_conditions_for_edge at ipa-inline-analysis.c:466
2011-04-24 13:39 [Bug middle-end/48752] New: [4.7 Regression] ICE in evaulate_conditions_for_edge at ipa-inline-analysis.c:466 danglin at gcc dot gnu.org
` (12 preceding siblings ...)
2011-04-26 18:12 ` dave at hiauly1 dot hia.nrc.ca
@ 2011-04-27 8:00 ` hubicka at ucw dot cz
2011-04-27 8:01 ` hubicka at gcc dot gnu.org
` (9 subsequent siblings)
23 siblings, 0 replies; 25+ messages in thread
From: hubicka at ucw dot cz @ 2011-04-27 8:00 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48752
--- Comment #13 from Jan Hubicka <hubicka at ucw dot cz> 2011-04-27 07:46:00 UTC ---
Hi,
this patch is not really tested, I need to construct a testcase that reproduces
fo rme, but it
adds the mising add_new_function hook and should solve the problem.
Honza
Index: ipa-prop.c
===================================================================
*** ipa-prop.c (revision 172989)
--- ipa-prop.c (working copy)
*************** static struct cgraph_edge_hook_list *edg
*** 63,68 ****
--- 63,69 ----
static struct cgraph_node_hook_list *node_removal_hook_holder;
static struct cgraph_2edge_hook_list *edge_duplication_hook_holder;
static struct cgraph_2node_hook_list *node_duplication_hook_holder;
+ static struct cgraph_node_hook_list *function_insertion_hook_holder;
/* Add cgraph NODE described by INFO to the worklist WL regardless of whether
it is in one or not. It should almost never be used directly, as opposed
to
*************** ipa_node_duplication_hook (struct cgraph
*** 2058,2063 ****
--- 2059,2073 ----
new_info->node_enqueued = old_info->node_enqueued;
}
+
+ /* Analyze newly added function into callgraph. */
+
+ static void
+ ipa_add_new_function (struct cgraph_node *node, void *data ATTRIBUTE_UNUSED)
+ {
+ ipa_analyze_node (node);
+ }
+
/* Register our cgraph hooks if they are not already there. */
void
*************** ipa_register_cgraph_hooks (void)
*** 2075,2080 ****
--- 2085,2092 ----
if (!node_duplication_hook_holder)
node_duplication_hook_holder =
cgraph_add_node_duplication_hook (&ipa_node_duplication_hook, NULL);
+ function_insertion_hook_holder =
+ cgraph_add_function_insertion_hook (&ipa_add_new_function, NULL);
}
/* Unregister our cgraph hooks if they are not already there. */
*************** ipa_unregister_cgraph_hooks (void)
*** 2090,2095 ****
--- 2102,2109 ----
edge_duplication_hook_holder = NULL;
cgraph_remove_node_duplication_hook (node_duplication_hook_holder);
node_duplication_hook_holder = NULL;
+ cgraph_remove_function_insertion_hook (function_insertion_hook_holder);
+ function_insertion_hook_holder = NULL;
}
/* Allocate all necessary data structures necessary for indirect inlining.
*/
^ permalink raw reply [flat|nested] 25+ messages in thread
* [Bug middle-end/48752] [4.7 Regression] ICE in evaulate_conditions_for_edge at ipa-inline-analysis.c:466
2011-04-24 13:39 [Bug middle-end/48752] New: [4.7 Regression] ICE in evaulate_conditions_for_edge at ipa-inline-analysis.c:466 danglin at gcc dot gnu.org
` (13 preceding siblings ...)
2011-04-27 8:00 ` hubicka at ucw dot cz
@ 2011-04-27 8:01 ` hubicka at gcc dot gnu.org
2011-04-27 15:22 ` dave at hiauly1 dot hia.nrc.ca
` (8 subsequent siblings)
23 siblings, 0 replies; 25+ messages in thread
From: hubicka at gcc dot gnu.org @ 2011-04-27 8:01 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48752
--- Comment #12 from Jan Hubicka <hubicka at gcc dot gnu.org> 2011-04-27 07:30:36 UTC ---
Hi,
the problem is that ipa-prop is not really looking for newly inserted
functions. So inliner knows about the arguments but asks the ipa-prop machinery
that doesn't. I will add the missing add_new_function hook.
I still can't reproduce the testcase but I guess I can make one myself just by
forcing global constructor. Will try to have patch before lunch.
Will also fix my dyslectic Czenglish ;)
^ permalink raw reply [flat|nested] 25+ messages in thread
* [Bug middle-end/48752] [4.7 Regression] ICE in evaulate_conditions_for_edge at ipa-inline-analysis.c:466
2011-04-24 13:39 [Bug middle-end/48752] New: [4.7 Regression] ICE in evaulate_conditions_for_edge at ipa-inline-analysis.c:466 danglin at gcc dot gnu.org
` (14 preceding siblings ...)
2011-04-27 8:01 ` hubicka at gcc dot gnu.org
@ 2011-04-27 15:22 ` dave at hiauly1 dot hia.nrc.ca
2011-04-27 16:12 ` hubicka at ucw dot cz
` (7 subsequent siblings)
23 siblings, 0 replies; 25+ messages in thread
From: dave at hiauly1 dot hia.nrc.ca @ 2011-04-27 15:22 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48752
--- Comment #14 from dave at hiauly1 dot hia.nrc.ca 2011-04-27 15:20:32 UTC ---
> I still can't reproduce the testcase but I guess I can make one myself just by
> forcing global constructor. Will try to have patch before lunch.
I realized last night that I could probably find a simpler testcase
by running the C testsuite.
Dave
^ permalink raw reply [flat|nested] 25+ messages in thread
* [Bug middle-end/48752] [4.7 Regression] ICE in evaulate_conditions_for_edge at ipa-inline-analysis.c:466
2011-04-24 13:39 [Bug middle-end/48752] New: [4.7 Regression] ICE in evaulate_conditions_for_edge at ipa-inline-analysis.c:466 danglin at gcc dot gnu.org
` (15 preceding siblings ...)
2011-04-27 15:22 ` dave at hiauly1 dot hia.nrc.ca
@ 2011-04-27 16:12 ` hubicka at ucw dot cz
2011-04-27 21:12 ` dave at hiauly1 dot hia.nrc.ca
` (6 subsequent siblings)
23 siblings, 0 replies; 25+ messages in thread
From: hubicka at ucw dot cz @ 2011-04-27 16:12 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48752
--- Comment #15 from Jan Hubicka <hubicka at ucw dot cz> 2011-04-27 16:04:21 UTC ---
Hi,
I hope the problem is now fixed at mainline tree. Could you please give it a
try?
Thanks,
Honza
^ permalink raw reply [flat|nested] 25+ messages in thread
* [Bug middle-end/48752] [4.7 Regression] ICE in evaulate_conditions_for_edge at ipa-inline-analysis.c:466
2011-04-24 13:39 [Bug middle-end/48752] New: [4.7 Regression] ICE in evaulate_conditions_for_edge at ipa-inline-analysis.c:466 danglin at gcc dot gnu.org
` (16 preceding siblings ...)
2011-04-27 16:12 ` hubicka at ucw dot cz
@ 2011-04-27 21:12 ` dave at hiauly1 dot hia.nrc.ca
2011-04-30 1:41 ` danglin at gcc dot gnu.org
` (5 subsequent siblings)
23 siblings, 0 replies; 25+ messages in thread
From: dave at hiauly1 dot hia.nrc.ca @ 2011-04-27 21:12 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48752
--- Comment #16 from dave at hiauly1 dot hia.nrc.ca 2011-04-27 21:08:26 UTC ---
On Wed, 27 Apr 2011, hubicka at ucw dot cz wrote:
> I hope the problem is now fixed at mainline tree. Could you please give it a
> try?
Bug is still present in revision 173047. Running C testsuite.
Dave
^ permalink raw reply [flat|nested] 25+ messages in thread
* [Bug middle-end/48752] [4.7 Regression] ICE in evaulate_conditions_for_edge at ipa-inline-analysis.c:466
2011-04-24 13:39 [Bug middle-end/48752] New: [4.7 Regression] ICE in evaulate_conditions_for_edge at ipa-inline-analysis.c:466 danglin at gcc dot gnu.org
` (17 preceding siblings ...)
2011-04-27 21:12 ` dave at hiauly1 dot hia.nrc.ca
@ 2011-04-30 1:41 ` danglin at gcc dot gnu.org
2011-04-30 8:21 ` hubicka at gcc dot gnu.org
` (4 subsequent siblings)
23 siblings, 0 replies; 25+ messages in thread
From: danglin at gcc dot gnu.org @ 2011-04-30 1:41 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48752
--- Comment #17 from John David Anglin <danglin at gcc dot gnu.org> 2011-04-30 01:38:18 UTC ---
I didn't find a simpler testcase running the C testsuite.
The following cross build commands allow me to duplicate the problem on
i686-apple-darwin9 with the compiler args shown in comment #11:
../gcc/configure --disable-shared --disable-nls --enable-multiarch
--disable-threads --disable-libgcc --disable-libmudflap --disable-libssp
--disable-libgomp --disable-libmudflap --build=i686-apple-darwin9
--host=i686-apple-darwin9 --target=hppa2.0w-hp-hpux11.11 --enable-languages=c++
--disable-bootstrap &&
make BOOT_CFLAGS="-g -O0" CFLAGS="-g -O0" &&
^ permalink raw reply [flat|nested] 25+ messages in thread
* [Bug middle-end/48752] [4.7 Regression] ICE in evaulate_conditions_for_edge at ipa-inline-analysis.c:466
2011-04-24 13:39 [Bug middle-end/48752] New: [4.7 Regression] ICE in evaulate_conditions_for_edge at ipa-inline-analysis.c:466 danglin at gcc dot gnu.org
` (18 preceding siblings ...)
2011-04-30 1:41 ` danglin at gcc dot gnu.org
@ 2011-04-30 8:21 ` hubicka at gcc dot gnu.org
2011-04-30 8:48 ` hubicka at ucw dot cz
` (3 subsequent siblings)
23 siblings, 0 replies; 25+ messages in thread
From: hubicka at gcc dot gnu.org @ 2011-04-30 8:21 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48752
--- Comment #18 from Jan Hubicka <hubicka at gcc dot gnu.org> 2011-04-30 08:19:25 UTC ---
Thanks. The missing bit was -std=gnu++0x, now it reproduces for me. Sorry for
the confussion.
^ permalink raw reply [flat|nested] 25+ messages in thread
* [Bug middle-end/48752] [4.7 Regression] ICE in evaulate_conditions_for_edge at ipa-inline-analysis.c:466
2011-04-24 13:39 [Bug middle-end/48752] New: [4.7 Regression] ICE in evaulate_conditions_for_edge at ipa-inline-analysis.c:466 danglin at gcc dot gnu.org
` (19 preceding siblings ...)
2011-04-30 8:21 ` hubicka at gcc dot gnu.org
@ 2011-04-30 8:48 ` hubicka at ucw dot cz
2011-04-30 11:02 ` hubicka at gcc dot gnu.org
` (2 subsequent siblings)
23 siblings, 0 replies; 25+ messages in thread
From: hubicka at ucw dot cz @ 2011-04-30 8:48 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48752
--- Comment #19 from Jan Hubicka <hubicka at ucw dot cz> 2011-04-30 08:46:55 UTC ---
Hi,
i am atesting the attached fix.
Index: ipa-inline.c
===================================================================
--- ipa-inline.c (revision 173189)
+++ ipa-inline.c (working copy)
@@ -1663,6 +1663,14 @@ early_inliner (void)
if (seen_error ())
return 0;
+ /* Do nothing if datastructures for ipa-inliner are already computed. This
happens when
+ some pass decides to construct new function and cgraph_add_new_function
calls lowering
+ passes and early optimization on it. This may confuse ourself when early
inliner decide
+ to inline call to function clone, because function clones don't have
parameter list
+ in ipa-prop matching their signature. */
+ if (ipa_node_params_vector)
+ return 0;
+
#ifdef ENABLE_CHECKING
verify_cgraph_node (node);
#endif
^ permalink raw reply [flat|nested] 25+ messages in thread
* [Bug middle-end/48752] [4.7 Regression] ICE in evaulate_conditions_for_edge at ipa-inline-analysis.c:466
2011-04-24 13:39 [Bug middle-end/48752] New: [4.7 Regression] ICE in evaulate_conditions_for_edge at ipa-inline-analysis.c:466 danglin at gcc dot gnu.org
` (20 preceding siblings ...)
2011-04-30 8:48 ` hubicka at ucw dot cz
@ 2011-04-30 11:02 ` hubicka at gcc dot gnu.org
2011-04-30 11:03 ` hubicka at gcc dot gnu.org
2011-05-01 1:49 ` danglin at gcc dot gnu.org
23 siblings, 0 replies; 25+ messages in thread
From: hubicka at gcc dot gnu.org @ 2011-04-30 11:02 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48752
Jan Hubicka <hubicka at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
Last reconfirmed| |2011.04.30 10:59:32
Ever Confirmed|0 |1
--- Comment #20 from Jan Hubicka <hubicka at gcc dot gnu.org> 2011-04-30 10:59:32 UTC ---
Is the problem fixed now?
^ permalink raw reply [flat|nested] 25+ messages in thread
* [Bug middle-end/48752] [4.7 Regression] ICE in evaulate_conditions_for_edge at ipa-inline-analysis.c:466
2011-04-24 13:39 [Bug middle-end/48752] New: [4.7 Regression] ICE in evaulate_conditions_for_edge at ipa-inline-analysis.c:466 danglin at gcc dot gnu.org
` (21 preceding siblings ...)
2011-04-30 11:02 ` hubicka at gcc dot gnu.org
@ 2011-04-30 11:03 ` hubicka at gcc dot gnu.org
2011-05-01 1:49 ` danglin at gcc dot gnu.org
23 siblings, 0 replies; 25+ messages in thread
From: hubicka at gcc dot gnu.org @ 2011-04-30 11:03 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48752
--- Comment #21 from Jan Hubicka <hubicka at gcc dot gnu.org> 2011-04-30 11:01:29 UTC ---
Author: hubicka
Date: Sat Apr 30 11:01:26 2011
New Revision: 173211
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=173211
Log:
PR middle-end/48752
* ipa-inline.c (early_inliner): Disable when doing late
addition of function.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/ipa-inline.c
^ permalink raw reply [flat|nested] 25+ messages in thread
* [Bug middle-end/48752] [4.7 Regression] ICE in evaulate_conditions_for_edge at ipa-inline-analysis.c:466
2011-04-24 13:39 [Bug middle-end/48752] New: [4.7 Regression] ICE in evaulate_conditions_for_edge at ipa-inline-analysis.c:466 danglin at gcc dot gnu.org
` (22 preceding siblings ...)
2011-04-30 11:03 ` hubicka at gcc dot gnu.org
@ 2011-05-01 1:49 ` danglin at gcc dot gnu.org
23 siblings, 0 replies; 25+ messages in thread
From: danglin at gcc dot gnu.org @ 2011-05-01 1:49 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48752
John David Anglin <danglin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |RESOLVED
Resolution| |FIXED
--- Comment #22 from John David Anglin <danglin at gcc dot gnu.org> 2011-05-01 01:48:39 UTC ---
Thanks, bug is fixed.
^ permalink raw reply [flat|nested] 25+ messages in thread
end of thread, other threads:[~2011-05-01 1:49 UTC | newest]
Thread overview: 25+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-24 13:39 [Bug middle-end/48752] New: [4.7 Regression] ICE in evaulate_conditions_for_edge at ipa-inline-analysis.c:466 danglin at gcc dot gnu.org
2011-04-24 13:49 ` [Bug middle-end/48752] " dave at hiauly1 dot hia.nrc.ca
2011-04-24 18:27 ` paolo.carlini at oracle dot com
2011-04-24 19:13 ` dave at hiauly1 dot hia.nrc.ca
2011-04-24 19:43 ` [Bug middle-end/48752] New: " Jan Hubicka
2011-04-24 19:44 ` [Bug middle-end/48752] " hubicka at ucw dot cz
2011-04-24 20:24 ` dave at hiauly1 dot hia.nrc.ca
2011-04-25 1:28 ` dave at hiauly1 dot hia.nrc.ca
2011-04-26 1:59 ` danglin at gcc dot gnu.org
2011-04-26 2:31 ` danglin at gcc dot gnu.org
2011-04-26 9:41 ` rguenth at gcc dot gnu.org
2011-04-26 13:07 ` hubicka at ucw dot cz
2011-04-26 18:01 ` hubicka at gcc dot gnu.org
2011-04-26 18:12 ` dave at hiauly1 dot hia.nrc.ca
2011-04-27 8:00 ` hubicka at ucw dot cz
2011-04-27 8:01 ` hubicka at gcc dot gnu.org
2011-04-27 15:22 ` dave at hiauly1 dot hia.nrc.ca
2011-04-27 16:12 ` hubicka at ucw dot cz
2011-04-27 21:12 ` dave at hiauly1 dot hia.nrc.ca
2011-04-30 1:41 ` danglin at gcc dot gnu.org
2011-04-30 8:21 ` hubicka at gcc dot gnu.org
2011-04-30 8:48 ` hubicka at ucw dot cz
2011-04-30 11:02 ` hubicka at gcc dot gnu.org
2011-04-30 11:03 ` hubicka at gcc dot gnu.org
2011-05-01 1:49 ` danglin at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).