re PR target/26397 (Program crashes when rethrowing exception)
PR target/26397 * config/rs6000/aix.h (LIBSTDCXX_STATIC): Define. cp/ * g++spec.c (LIBSTDCXX_STATIC): New. (lang_spec_driver): Use LIBSTDCXX_STATIC when not shared_libgcc. From-SVN: r141646
This commit is contained in:
parent
66e62b4943
commit
ce75e1dd3c
4 changed files with 20 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2008-11-06 David Edelsohn <edelsohn@gnu.org>
|
||||
|
||||
PR target/26397
|
||||
* config/rs6000/aix.h (LIBSTDCXX_STATIC): Define.
|
||||
|
||||
2008-11-06 Kazu Hirata <kazu@codesourcery.com>
|
||||
|
||||
PR target/35574
|
||||
|
|
|
@ -155,6 +155,9 @@
|
|||
#define LIB_SPEC "%{pg:-L/lib/profiled -L/usr/lib/profiled}\
|
||||
%{p:-L/lib/profiled -L/usr/lib/profiled} %{!shared:%{g*:-lg}} -lc"
|
||||
|
||||
/* Static linking with shared libstdc++ requires libsupc++ as well. */
|
||||
#define LIBSTDCXX_STATIC "-lstdc++ -lsupc++"
|
||||
|
||||
/* This now supports a natural alignment mode. */
|
||||
/* AIX word-aligns FP doubles but doubleword-aligns 64-bit ints. */
|
||||
#define ADJUST_FIELD_ALIGN(FIELD, COMPUTED) \
|
||||
|
|
|
@ -1,3 +1,10 @@
|
|||
2008-11-06 David Edelsohn <edelsohn@gnu.org>
|
||||
|
||||
PR target/26397
|
||||
* g++spec.c (LIBSTDCXX_STATIC): New.
|
||||
(lang_spec_driver): Use LIBSTDCXX_STATIC when not
|
||||
shared_libgcc.
|
||||
|
||||
2008-11-05 Fabien Chene <fabien.chene@gmail.com>
|
||||
|
||||
PR c++/35219
|
||||
|
|
|
@ -44,6 +44,9 @@ along with GCC; see the file COPYING3. If not see
|
|||
#ifndef LIBSTDCXX_PROFILE
|
||||
#define LIBSTDCXX_PROFILE LIBSTDCXX
|
||||
#endif
|
||||
#ifndef LIBSTDCXX_STATIC
|
||||
#define LIBSTDCXX_STATIC LIBSTDCXX
|
||||
#endif
|
||||
|
||||
void
|
||||
lang_specific_driver (int *in_argc, const char *const **in_argv,
|
||||
|
@ -315,7 +318,8 @@ lang_specific_driver (int *in_argc, const char *const **in_argv,
|
|||
/* Add `-lstdc++' if we haven't already done so. */
|
||||
if (library > 0)
|
||||
{
|
||||
arglist[j] = saw_profile_flag ? LIBSTDCXX_PROFILE : LIBSTDCXX;
|
||||
arglist[j] = shared_libgcc == 0 ? LIBSTDCXX_STATIC
|
||||
: saw_profile_flag ? LIBSTDCXX_PROFILE : LIBSTDCXX;
|
||||
if (arglist[j][0] != '-' || arglist[j][1] == 'l')
|
||||
added_libraries++;
|
||||
j++;
|
||||
|
|
Loading…
Add table
Reference in a new issue