* [Bug regression/61510] [4.10 Regression]: 20_util/scoped_allocator/requirements/explicit_instantiation.cc and tr1/6_containers/tuple/requirements/explicit_instantiation.cc
2014-06-15 2:34 [Bug regression/61510] New: [4.10 Regression]: 20_util/scoped_allocator/requirements/explicit_instantiation.cc and tr1/6_containers/tuple/requirements/explicit_instantiation.cc hp at gcc dot gnu.org
@ 2014-06-15 5:26 ` hubicka at gcc dot gnu.org
2014-06-16 8:29 ` rguenth at gcc dot gnu.org
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: hubicka at gcc dot gnu.org @ 2014-06-15 5:26 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61510
--- Comment #1 from Jan Hubicka <hubicka at gcc dot gnu.org> ---
What happens at the line 1054 of cgraphunit.c.
= cgraph_get_node (DECL_ABSTRACT_ORIGIN (decl));
origin_node->used_as_abstract_origin = true;
Do you really get into case where abstract origin is NULL?
Honza
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug regression/61510] [4.10 Regression]: 20_util/scoped_allocator/requirements/explicit_instantiation.cc and tr1/6_containers/tuple/requirements/explicit_instantiation.cc
2014-06-15 2:34 [Bug regression/61510] New: [4.10 Regression]: 20_util/scoped_allocator/requirements/explicit_instantiation.cc and tr1/6_containers/tuple/requirements/explicit_instantiation.cc hp at gcc dot gnu.org
2014-06-15 5:26 ` [Bug regression/61510] " hubicka at gcc dot gnu.org
@ 2014-06-16 8:29 ` rguenth at gcc dot gnu.org
2014-06-19 15:03 ` jgreenhalgh at gcc dot gnu.org
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-06-16 8:29 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61510
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Version|4.7.0 |4.10.0
Target Milestone|--- |4.10.0
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug regression/61510] [4.10 Regression]: 20_util/scoped_allocator/requirements/explicit_instantiation.cc and tr1/6_containers/tuple/requirements/explicit_instantiation.cc
2014-06-15 2:34 [Bug regression/61510] New: [4.10 Regression]: 20_util/scoped_allocator/requirements/explicit_instantiation.cc and tr1/6_containers/tuple/requirements/explicit_instantiation.cc hp at gcc dot gnu.org
2014-06-15 5:26 ` [Bug regression/61510] " hubicka at gcc dot gnu.org
2014-06-16 8:29 ` rguenth at gcc dot gnu.org
@ 2014-06-19 15:03 ` jgreenhalgh at gcc dot gnu.org
2014-06-19 15:40 ` jgreenhalgh at gcc dot gnu.org
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: jgreenhalgh at gcc dot gnu.org @ 2014-06-19 15:03 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61510
jgreenhalgh at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target|cris-axis-elf |cris-axis-elf,
| |arm-none-eabi,
| |aarch64-none-elf
Status|UNCONFIRMED |NEW
Last reconfirmed| |2014-06-19
CC| |jgreenhalgh at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #2 from jgreenhalgh at gcc dot gnu.org ---
Confirmed across bare metal arm/aarch64 targets.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug regression/61510] [4.10 Regression]: 20_util/scoped_allocator/requirements/explicit_instantiation.cc and tr1/6_containers/tuple/requirements/explicit_instantiation.cc
2014-06-15 2:34 [Bug regression/61510] New: [4.10 Regression]: 20_util/scoped_allocator/requirements/explicit_instantiation.cc and tr1/6_containers/tuple/requirements/explicit_instantiation.cc hp at gcc dot gnu.org
` (2 preceding siblings ...)
2014-06-19 15:03 ` jgreenhalgh at gcc dot gnu.org
@ 2014-06-19 15:40 ` jgreenhalgh at gcc dot gnu.org
2014-06-20 12:34 ` jgreenhalgh at gcc dot gnu.org
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: jgreenhalgh at gcc dot gnu.org @ 2014-06-19 15:40 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61510
--- Comment #3 from jgreenhalgh at gcc dot gnu.org ---
Created attachment 32975
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=32975&action=edit
Reduced testcase.
Adding a reduced testcase for this bug.
Honza: To answer your question, if I add gcc_assert (origin_node) before the
dereference, it triggers - so in my case we definitely do have a NULL
origin_node.
If I dump decl, DECL_ABSTRACT_ORIGIN (decl) the results look "sane" (I
think)...
decl:
full-name "std::scoped_allocator_adaptor<_OuterAlloc,
_InnerAllocs>::scoped_allocator_adaptor() [with _OuterAlloc =
std::allocator<short int>; _InnerAllocs = {}]"
pending-inline-info 0x7f32a2507ab0 template-info 0x7f32a2362680
DECL_ABSTRACT_ORIGIN:
full-name "std::scoped_allocator_adaptor<_OuterAlloc,
_InnerAllocs>::scoped_allocator_adaptor() [with _OuterAlloc =
std::allocator<short int>; _InnerAllocs = {}]"
pending-inline-info 0x7f32a2507990 template-info 0x7f32a2362680
cgraph_get_node (DECL_ABSTRACT_ORIGIN (decl)) == (nil)
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug regression/61510] [4.10 Regression]: 20_util/scoped_allocator/requirements/explicit_instantiation.cc and tr1/6_containers/tuple/requirements/explicit_instantiation.cc
2014-06-15 2:34 [Bug regression/61510] New: [4.10 Regression]: 20_util/scoped_allocator/requirements/explicit_instantiation.cc and tr1/6_containers/tuple/requirements/explicit_instantiation.cc hp at gcc dot gnu.org
` (3 preceding siblings ...)
2014-06-19 15:40 ` jgreenhalgh at gcc dot gnu.org
@ 2014-06-20 12:34 ` jgreenhalgh at gcc dot gnu.org
2014-06-24 7:34 ` trippels at gcc dot gnu.org
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: jgreenhalgh at gcc dot gnu.org @ 2014-06-20 12:34 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61510
--- Comment #4 from jgreenhalgh at gcc dot gnu.org ---
Obviously something simple like this will fix the problem, but I don't know the
area to say that it doesn't just mask a deeper bug.
Honza?
---
2014-06-19 James Greenhalgh <james.greenhalgh@arm.com>
* cgraphunit.c (analyze_functions): Check we have an origin
node before dereferencing it.
diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c
index
1b7ab330a3e51a9bc3336f64998f4d89b45d342b..82e5a6838e36c464191c533e163a00c825265c84
100644
--- a/gcc/cgraphunit.c
+++ b/gcc/cgraphunit.c
@@ -1051,7 +1051,8 @@ analyze_functions (void)
{
struct cgraph_node *origin_node
= cgraph_get_node (DECL_ABSTRACT_ORIGIN (decl));
- origin_node->used_as_abstract_origin = true;
+ if (origin_node)
+ origin_node->used_as_abstract_origin = true;
}
}
else
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug regression/61510] [4.10 Regression]: 20_util/scoped_allocator/requirements/explicit_instantiation.cc and tr1/6_containers/tuple/requirements/explicit_instantiation.cc
2014-06-15 2:34 [Bug regression/61510] New: [4.10 Regression]: 20_util/scoped_allocator/requirements/explicit_instantiation.cc and tr1/6_containers/tuple/requirements/explicit_instantiation.cc hp at gcc dot gnu.org
` (4 preceding siblings ...)
2014-06-20 12:34 ` jgreenhalgh at gcc dot gnu.org
@ 2014-06-24 7:34 ` trippels at gcc dot gnu.org
2014-08-01 8:56 ` jgreenhalgh at gcc dot gnu.org
2014-10-01 14:47 ` jakub at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: trippels at gcc dot gnu.org @ 2014-06-24 7:34 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61510
Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |trippels at gcc dot gnu.org
--- Comment #5 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
Might be related to PR61558.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug regression/61510] [4.10 Regression]: 20_util/scoped_allocator/requirements/explicit_instantiation.cc and tr1/6_containers/tuple/requirements/explicit_instantiation.cc
2014-06-15 2:34 [Bug regression/61510] New: [4.10 Regression]: 20_util/scoped_allocator/requirements/explicit_instantiation.cc and tr1/6_containers/tuple/requirements/explicit_instantiation.cc hp at gcc dot gnu.org
` (5 preceding siblings ...)
2014-06-24 7:34 ` trippels at gcc dot gnu.org
@ 2014-08-01 8:56 ` jgreenhalgh at gcc dot gnu.org
2014-10-01 14:47 ` jakub at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: jgreenhalgh at gcc dot gnu.org @ 2014-08-01 8:56 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61510
--- Comment #6 from jgreenhalgh at gcc dot gnu.org ---
Author: jgreenhalgh
Date: Fri Aug 1 08:56:05 2014
New Revision: 213425
URL: https://gcc.gnu.org/viewcvs?rev=213425&root=gcc&view=rev
Log:
[Patch] Not very subtle fix for pr61510
gcc/
PR regression/61510
* cgraphunit.c (analyze_functions): Use get_create rather than get
for decls which are clones of abstract functions.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/cgraphunit.c
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug regression/61510] [4.10 Regression]: 20_util/scoped_allocator/requirements/explicit_instantiation.cc and tr1/6_containers/tuple/requirements/explicit_instantiation.cc
2014-06-15 2:34 [Bug regression/61510] New: [4.10 Regression]: 20_util/scoped_allocator/requirements/explicit_instantiation.cc and tr1/6_containers/tuple/requirements/explicit_instantiation.cc hp at gcc dot gnu.org
` (6 preceding siblings ...)
2014-08-01 8:56 ` jgreenhalgh at gcc dot gnu.org
@ 2014-10-01 14:47 ` jakub at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu.org @ 2014-10-01 14:47 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61510
--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Wed Oct 1 14:46:32 2014
New Revision: 215767
URL: https://gcc.gnu.org/viewcvs?rev=215767&root=gcc&view=rev
Log:
PR c++/63306
Backported from mainline
2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
PR regression/61510
* cgraphunit.c (analyze_functions): Use get_create rather than get
for decls which are clones of abstract functions.
* g++.dg/ipa/pr63306.C: New test.
Added:
branches/gcc-4_9-branch/gcc/testsuite/g++.dg/ipa/pr63306.C
Modified:
branches/gcc-4_9-branch/gcc/ChangeLog
branches/gcc-4_9-branch/gcc/cgraphunit.c
branches/gcc-4_9-branch/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 9+ messages in thread