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
This commit is contained in:
Oliver Tappe
2006-01-28 14:35:27 +00:00
parent ecc89c9a6a
commit cdeb2e6d93
4 changed files with 7 additions and 13 deletions

View File

@@ -530,3 +530,9 @@ drectve_section () \
*/
#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

View File

@@ -76,8 +76,3 @@ Boston, MA 02111-1307, USA. */
#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

View File

@@ -1353,7 +1353,7 @@ process_overload_item (parmtype, extra_Gcode)
else
{
tree length = array_type_nelts (parmtype);
#ifndef __BEOS__
#ifndef USE_EGCS_MANGLED_NAMES
// *always* add one under BeOS...
if (TREE_CODE (length) != INTEGER_CST || flag_do_squangling)
#endif

View File

@@ -402,17 +402,10 @@ extern void fatal PVPROTO((const char *, ...)) ATTRIBUTE_PRINTF_1 ATTRIBUTE_NORE
#define abort() fatal ("Internal compiler error at %s:%d\n", \
trim_filename (__FILE__), __LINE__)
#else
#if defined (__BEOS__)
/* hm, Be is no more, so we are *very* local about bug reports >:oP */
#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 /* __BEOS__ */
#endif /* recent gcc */
/* trim_filename is in toplev.c. Define a stub macro for files that