public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] Revert HJL's G++ generates local references to linkonce
@ 2004-07-09  6:19 Andrew Pinski
  2004-07-09  7:15 ` Mark Mitchell
  0 siblings, 1 reply; 6+ messages in thread
From: Andrew Pinski @ 2004-07-09  6:19 UTC (permalink / raw)
  To: gcc-patches

The problem with HJL's patch to fix G++ generates local references to linkonce is
that it is wrong for targets which use the MAKE_DECL_ONE_ONLY target macro which I
think only *-darwin does.

I am only askinig reverting for the mainline as the 3.4 branch does not have the target
macro.

OK?


Thanks,
Andrew Pinski

ChangeLog:

	Revert:
	2004-07-07  H.J. Lu  <hongjiu.lu@intel.com>

        PR c++/16276
        * rtti.c (emit_tinfo_decl): Turn off DECL_ONE_ONLY if typeinfo
        is not public.

Patch:

Index: rtti.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cp/rtti.c,v
retrieving revision 1.186
diff -u -p -r1.186 rtti.c
--- rtti.c      7 Jul 2004 18:29:38 -0000       1.186
+++ rtti.c      9 Jul 2004 04:44:29 -0000
@@ -1461,11 +1461,7 @@ emit_tinfo_decl (tree decl)
   DECL_EXTERNAL (decl) = 0;
   TREE_PUBLIC (decl) = !non_public;
   if (non_public)
-    {
-      DECL_COMDAT (decl) = 0;
-      if (SUPPORTS_ONE_ONLY)
-       DECL_ONE_ONLY (decl) = 0;
-    }
+    DECL_COMDAT (decl) = 0;
 
   DECL_INITIAL (decl) = var_init;
   mark_used (decl);

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

end of thread, other threads:[~2004-07-12 22:38 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-09  6:19 [PATCH] Revert HJL's G++ generates local references to linkonce Andrew Pinski
2004-07-09  7:15 ` Mark Mitchell
2004-07-13  0:37   ` Andrew Pinski
2004-07-13  1:20     ` Mark Mitchell
2004-07-13  2:27       ` Andrew Pinski
2004-07-13  5:56         ` Mark Mitchell

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