* [PATCH] fix fdump-lang-raw ICE
@ 2017-11-01 19:25 Nathan Sidwell
2017-11-01 19:40 ` Jakub Jelinek
0 siblings, 1 reply; 3+ messages in thread
From: Nathan Sidwell @ 2017-11-01 19:25 UTC (permalink / raw)
To: GCC Patches
[-- Attachment #1: Type: text/plain, Size: 187 bytes --]
Thomas Koenig noticed -fdump-lang-raw gives an immediate ICE. I broke
it with the DECL_ASSEMBLER_NAME changes last month. Fixed thusly,
applied as obvious.
nathan
--
Nathan Sidwell
[-- Attachment #2: hdanp.dif --]
[-- Type: text/plain, Size: 679 bytes --]
2017-11-01 Nathan Sidwell <nathan@acm.org>
* tree-dump.c (dequeue_and_dump): Use HAS_DECL_ASSEMBLER_NAME_P.
Index: tree-dump.c
===================================================================
--- tree-dump.c (revision 254314)
+++ tree-dump.c (working copy)
@@ -337,7 +337,8 @@ dequeue_and_dump (dump_info_p di)
/* All declarations have names. */
if (DECL_NAME (t))
dump_child ("name", DECL_NAME (t));
- if (DECL_ASSEMBLER_NAME_SET_P (t)
+ if (HAS_DECL_ASSEMBLER_NAME_P (t)
+ && DECL_ASSEMBLER_NAME_SET_P (t)
&& DECL_ASSEMBLER_NAME (t) != DECL_NAME (t))
dump_child ("mngl", DECL_ASSEMBLER_NAME (t));
if (DECL_ABSTRACT_ORIGIN (t))
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] fix fdump-lang-raw ICE
2017-11-01 19:25 [PATCH] fix fdump-lang-raw ICE Nathan Sidwell
@ 2017-11-01 19:40 ` Jakub Jelinek
2017-11-02 14:09 ` Nathan Sidwell
0 siblings, 1 reply; 3+ messages in thread
From: Jakub Jelinek @ 2017-11-01 19:40 UTC (permalink / raw)
To: Nathan Sidwell; +Cc: GCC Patches
On Wed, Nov 01, 2017 at 03:24:56PM -0400, Nathan Sidwell wrote:
> Thomas Koenig noticed -fdump-lang-raw gives an immediate ICE. I broke it
> with the DECL_ASSEMBLER_NAME changes last month. Fixed thusly, applied as
> obvious.
Shouldn't there be a testcase with that option?
> 2017-11-01 Nathan Sidwell <nathan@acm.org>
>
> * tree-dump.c (dequeue_and_dump): Use HAS_DECL_ASSEMBLER_NAME_P.
>
> Index: tree-dump.c
> ===================================================================
> --- tree-dump.c (revision 254314)
> +++ tree-dump.c (working copy)
> @@ -337,7 +337,8 @@ dequeue_and_dump (dump_info_p di)
> /* All declarations have names. */
> if (DECL_NAME (t))
> dump_child ("name", DECL_NAME (t));
> - if (DECL_ASSEMBLER_NAME_SET_P (t)
> + if (HAS_DECL_ASSEMBLER_NAME_P (t)
> + && DECL_ASSEMBLER_NAME_SET_P (t)
> && DECL_ASSEMBLER_NAME (t) != DECL_NAME (t))
> dump_child ("mngl", DECL_ASSEMBLER_NAME (t));
> if (DECL_ABSTRACT_ORIGIN (t))
Jakub
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] fix fdump-lang-raw ICE
2017-11-01 19:40 ` Jakub Jelinek
@ 2017-11-02 14:09 ` Nathan Sidwell
0 siblings, 0 replies; 3+ messages in thread
From: Nathan Sidwell @ 2017-11-02 14:09 UTC (permalink / raw)
To: Jakub Jelinek; +Cc: GCC Patches
[-- Attachment #1: Type: text/plain, Size: 381 bytes --]
On 11/01/2017 03:40 PM, Jakub Jelinek wrote:
> On Wed, Nov 01, 2017 at 03:24:56PM -0400, Nathan Sidwell wrote:
>> Thomas Koenig noticed -fdump-lang-raw gives an immediate ICE. I broke it
>> with the DECL_ASSEMBLER_NAME changes last month. Fixed thusly, applied as
>> obvious.
>
> Shouldn't there be a testcase with that option?
Oh, very well then :)
nathan
--
Nathan Sidwell
[-- Attachment #2: ldt.diff --]
[-- Type: text/x-patch, Size: 574 bytes --]
2017-11-02 Nathan Sidwell <nathan@acm.org>
* g++.dg/lang-dump.C: New.
Index: g++.dg/lang-dump.C
===================================================================
--- g++.dg/lang-dump.C (revision 0)
+++ g++.dg/lang-dump.C (working copy)
@@ -0,0 +1,21 @@
+// { dg-additional-options "-fdump-lang-all" }
+// Just check we don't explode when asking for language dumps. Does
+// not necessarily mean any particular language dump is useful.
+
+struct X
+{
+ int m;
+ virtual ~X ();
+};
+
+X::~X () {}
+
+struct Y : X
+{
+};
+
+int frob (int a)
+{
+ return 2 * a;
+}
+
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-11-02 14:09 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-01 19:25 [PATCH] fix fdump-lang-raw ICE Nathan Sidwell
2017-11-01 19:40 ` Jakub Jelinek
2017-11-02 14:09 ` Nathan Sidwell
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).