moved USE_EGCS_MANGLED_NAMES from host to target config file in order to generate "correct" (aka BeOS-specific) symbols when using the cross compiler, too.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@16119 a95241bf-73f2-0310-859d-f6bbb57e9c96
Diff
legacy/gcc/gcc/system.h | 7 -------
legacy/gcc/gcc/cp/method.c | 2 +-
legacy/gcc/gcc/config/i386/beos-elf.h | 6 ++++++
legacy/gcc/gcc/config/i386/xm-beos.h | 5 -----
4 files changed, 7 insertions(+), 13 deletions(-)
@@ -402,17 +402,10 @@
#define abort() fatal ("Internal compiler error at %s:%d\n", \
trim_filename (__FILE__), __LINE__)
#else
#if defined (__BEOS__)
#define abort() fatal ("Internal compiler error in `%s', at %s:%d\n" \
"Please submit info to Oliver Tappe <gcc@hirschkaefer.de>.\n",\
__PRETTY_FUNCTION__, trim_filename (__FILE__), __LINE__)
#else
#define abort() fatal ("Internal compiler error in `%s', at %s:%d\n" \
"Please submit a full bug report.\n" \
"See %s for instructions.", \
__PRETTY_FUNCTION__, trim_filename (__FILE__), __LINE__, GCCBUGURL)
#endif
#endif
/* trim_filename is in toplev.c. Define a stub macro for files that
@@ -1353,7 +1353,7 @@
else
{
tree length = array_type_nelts (parmtype);
#ifndef __BEOS__
#ifndef USE_EGCS_MANGLED_NAMES
if (TREE_CODE (length) != INTEGER_CST || flag_do_squangling)
#endif
@@ -530,3 +530,9 @@
*/
#define WORK_AROUND_PRAGMA_INTERFACE_BUG 1
/* The origin of BeOS's gcc is egcs 1.1.x, and these version had a bug
in mangled name builder. The APIs of BeOS are furnished to the
developers as shared library of C++. And if we use fixed mangled
names in newer gcc, some APIs are hidden with name problem. */
#define USE_EGCS_MANGLED_NAMES
@@ -76,8 +76,3 @@
#define LIBRARY_PATH_ENV "BELIBRARIES"
#endif
/* The origin of BeOS's gcc is egcs 1.1.x, and these version had a bug
in mangled name builder. The APIs of BeOS are furnished to the
developers as shared library of C++. And if we use fixed mangled
names in newer gcc, some APIs are hidden with name problem. */
#define USE_EGCS_MANGLED_NAMES