This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Handle C++ rtti data in Darwin


C++ rtti info objects look like initialized data but are DECL_EXTERNAL
anyway, so for Darwin we need to make sure they're not treated as if
they were defined in the source file where they're referenced.
Bootstraps on powerpc-apple-darwin1.3, passes C tests though not C++
because libstdc++-v3 still doesn't build, although with this patch
the build gets much further than it did before. :-)

Stan

2001-07-09  Stan Shebs  <shebs@apple.com>

	* config/darwin.c (darwin_encode_section_info): Don't mark any
	DECL_EXTERNAL node as defined.

Index: darwin.c
===================================================================
RCS file: /cvs/repository/CoreTools/gcc3/gcc/config/darwin.c,v
retrieving revision 1.13
diff -c -3 -p -r1.13 darwin.c
*** darwin.c	2001/06/14 22:14:26	1.13
--- darwin.c	2001/07/09 19:16:42
*************** darwin_encode_section_info (decl)
*** 1006,1011 ****
--- 1006,1012 ----
  
    if ((TREE_CODE (decl) == FUNCTION_DECL
         || TREE_CODE (decl) == VAR_DECL)
+       && !DECL_EXTERNAL (decl)
        && ((TREE_STATIC (decl)
  	   && (!DECL_COMMON (decl) || !TREE_PUBLIC (decl)))
  	  || DECL_INITIAL (decl)))


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]