C++ PATCH to remove DECL_COMDAT

Mark Mitchell mark@codesourcery.com
Sun May 2 17:45:00 GMT 1999


Now that DECL_COMDAT is in the middle-end, we don't want it in the
front-end. 

-- 
Mark Mitchell                   mark@codesourcery.com
CodeSourcery, LLC               http://www.codesourcery.com

1999-05-02  Mark Mitchell  <mark@codesourcery.com>

	* cp-tree.h (lang_decl_flags): Remove comdat.  Updated dummy.
	(DECL_COMDAT): Remove definition.

Index: cp-tree.h
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/cp/cp-tree.h,v
retrieving revision 1.228
diff -u -p -r1.228 cp-tree.h
--- cp-tree.h	1999/04/29 08:33:42	1.228
+++ cp-tree.h	1999/05/03 00:43:40
@@ -1173,11 +1173,10 @@ struct lang_decl_flags
   unsigned nonconverting : 1;
   unsigned declared_inline : 1;
   unsigned not_really_extern : 1;
-  unsigned comdat : 1;
   unsigned needs_final_overrider : 1;
   unsigned bitfield : 1;
   unsigned defined_in_class : 1;
-  unsigned dummy : 3;
+  unsigned dummy : 4;
 
   tree access;
   tree context;
@@ -2018,10 +2017,6 @@ extern int flag_new_for_scope;
 
 #define DECL_REALLY_EXTERN(NODE) \
   (DECL_EXTERNAL (NODE) && ! DECL_NOT_REALLY_EXTERN (NODE))
-
-/* Used to tell cp_finish_decl that it should approximate comdat linkage
-   as best it can for this decl.  */
-#define DECL_COMDAT(NODE) (DECL_LANG_SPECIFIC (NODE)->decl_flags.comdat)
 
 #define THUNK_DELTA(DECL) ((DECL)->decl.frame_size.i)
 


More information about the Gcc-patches mailing list