mirror of
https://review.haiku-os.org/buildtools
synced 2026-02-04 07:53:14 +01:00
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:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user