public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] Fix pr87156 ICE building libstdc++ for mips64
@ 2018-10-11 10:59 Paul Hua
  2018-10-12  3:01 ` Jeff Law
  0 siblings, 1 reply; 2+ messages in thread
From: Paul Hua @ 2018-10-11 10:59 UTC (permalink / raw)
  To: gcc-patches; +Cc: Jan Hubicka, Jeff Law <law@redhat.com> (law@redhat.com)

[-- Attachment #1: Type: text/plain, Size: 586 bytes --]

Hi:

The bug pr87156 make MIPS target bootstrap fail a month ago. The
attached patch that posted under bugzilla by Jan Hubicka fixed the
bug.
Bootstrapped and reg-tested on mips64el-linux-gnu and x86_64-pc-linux-gnu.
Considering that Jan not very active, Is it OK for commits the patch
under Jan Hubicka behalf ?

Thanks

Paul Hua



---------------------------------------------------------------------
2018-10-11  Jan Hubicka  <hubicka@ucw.cz>

        PR target/87156
        * cgraphclones.c (cgraph_node::create_version_clone_with_body):
        Set new_decl virtual flag to zero.

[-- Attachment #2: fix-pr87156.patch --]
[-- Type: text/x-patch, Size: 500 bytes --]

diff --git a/gcc/cgraphclones.c b/gcc/cgraphclones.c
index 2af45bd4fec..189cb31a5dc 100644
--- a/gcc/cgraphclones.c
+++ b/gcc/cgraphclones.c
@@ -968,6 +968,8 @@ cgraph_node::create_version_clone_with_body
   SET_DECL_ASSEMBLER_NAME (new_decl, DECL_NAME (new_decl));
   SET_DECL_RTL (new_decl, NULL);

+  DECL_VIRTUAL_P (new_decl) = 0;
+
   /* When the old decl was a con-/destructor make sure the clone isn't.  */
   DECL_STATIC_CONSTRUCTOR (new_decl) = 0;
   DECL_STATIC_DESTRUCTOR (new_decl) = 0;


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] Fix pr87156 ICE building libstdc++ for mips64
  2018-10-11 10:59 [PATCH] Fix pr87156 ICE building libstdc++ for mips64 Paul Hua
@ 2018-10-12  3:01 ` Jeff Law
  0 siblings, 0 replies; 2+ messages in thread
From: Jeff Law @ 2018-10-12  3:01 UTC (permalink / raw)
  To: Paul Hua, gcc-patches; +Cc: Jan Hubicka

On 10/11/18 4:12 AM, Paul Hua wrote:
> Hi:
> 
> The bug pr87156 make MIPS target bootstrap fail a month ago. The
> attached patch that posted under bugzilla by Jan Hubicka fixed the
> bug.
> Bootstrapped and reg-tested on mips64el-linux-gnu and x86_64-pc-linux-gnu.
> Considering that Jan not very active, Is it OK for commits the patch
> under Jan Hubicka behalf ?
I asked Jan about that patch in IRC just a couple days ago but didn't
get a response.  I've actually had it in my tester for nearly two weeks.

According to a private message between Jan and myself, the other places
where we clone functions already clear DECL_VIRTUAL_P, implying this
instance was merely missing that tidbit.

Given Jan probably knows this code better than anyone, I'm inclined to
take his word on that.  I'll go ahead and commit it momentarily.

jeff

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-10-12  2:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-11 10:59 [PATCH] Fix pr87156 ICE building libstdc++ for mips64 Paul Hua
2018-10-12  3:01 ` Jeff Law

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).