⛏️ index : buildtools.git

author Ingo Weinhold <ingo_weinhold@gmx.de> 2005-11-17 16:14:29.0 +00:00:00
committer Ingo Weinhold <ingo_weinhold@gmx.de> 2005-11-17 16:14:29.0 +00:00:00
commit
bd1970381db78aa52f38583dbf3465b948a1fb8b [patch]
tree
df5d1ee05548eba92a1fb64ac7a65186b8cb9568
parent
2ac1cb254f1ecb55eb374904fe7520a1d8d7a88f
download
bd1970381db78aa52f38583dbf3465b948a1fb8b.tar.gz

Patch from Marcin's gcc 3.4.3 package (gcc-3.4.3-BeOS-beos-elf.diff probably originally by Oliver). We additionally let gcc define __GXX_MERGED_TYPEINFO_NAMES, which solves RTTI problems due to the fact that a type_info for a class can exist in multiple times.

git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@14993 a95241bf-73f2-0310-859d-f6bbb57e9c96

Diff

 gcc4/gcc/config/i386/beos-elf.h | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/gcc4/gcc/config/i386/beos-elf.h b/gcc4/gcc/config/i386/beos-elf.h
index 216fa43..479b4ae 100644
--- a/gcc4/gcc/config/i386/beos-elf.h
+++ b/gcc4/gcc/config/i386/beos-elf.h
@@ -72,9 +72,14 @@
	    builtin_define ("__PIC__");					\
	    builtin_define ("__pic__");					\
	  }								\
    /* BeOS apparently doesn't support merging of symbols across shared \
       object boundaries. Hence we need to explicitly specify that \
       type_infos are not merged, so that they get compared by name \
       instead of by pointer. */ \
    builtin_define ("__GXX_MERGED_TYPEINFO_NAMES=0"); \
    }									\
  while (0)
    

/* BeOS uses lots of multichars, so don't warn about them unless the
   user explicitly asks for the warnings with -Wmultichar.  Note that
   CC1_SPEC is used for both cc1 and cc1plus.  */
@@ -99,7 +104,7 @@

/* LIB_SPEC for BeOS */
#undef LIB_SPEC
#define LIB_SPEC "-lnet -lroot"
#define LIB_SPEC "-lroot"

/* gcc runtime lib is built into libroot.so on BeOS */
/* ??? This is gonna be lovely when the next release of gcc has 
@@ -238,3 +243,6 @@

/* BeOS uses explicit import from shared libraries.  */
#define MULTIPLE_SYMBOL_SPACES 1

#undef EXTRA_SECTIONS
#define EXTRA_SECTIONS in_const, in_ctors, in_dtors, in_drectve