Index: gcc/cp/ChangeLog
2007-03-02 Geoffrey Keating <geoffk@apple.com> * g++spec.c (lang_specific_driver): Add -lstdc++ when compiling Objective-C++. Don't exit early if -shared-libgcc needs to be added. Index: gcc/testsuite/ChangeLog 2007-03-02 Geoffrey Keating <geoffk@apple.com> * g++.dg/other/darwin-minversion-1.C: New. From-SVN: r122488
This commit is contained in:
parent
12df8a7eb6
commit
f9dedbe3f1
4 changed files with 29 additions and 8 deletions
|
@ -1,3 +1,9 @@
|
|||
2007-03-02 Geoffrey Keating <geoffk@apple.com>
|
||||
|
||||
* g++spec.c (lang_specific_driver): Add -lstdc++ when compiling
|
||||
Objective-C++. Don't exit early if -shared-libgcc needs to be
|
||||
added.
|
||||
|
||||
2007-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
|
||||
|
||||
* typeck.c (common_base_type): Delete unused function.
|
||||
|
|
|
@ -159,11 +159,19 @@ lang_specific_driver (int *in_argc, const char *const **in_argv,
|
|||
arg = "";
|
||||
if (library == 0
|
||||
&& (strcmp (arg, "c++") == 0
|
||||
|| strcmp (arg, "c++-cpp-output") == 0))
|
||||
|| strcmp (arg, "c++-cpp-output") == 0
|
||||
|| strcmp (arg, "objective-c++") == 0
|
||||
|| strcmp (arg, "objective-c++-cpp-output") == 0))
|
||||
library = 1;
|
||||
|
||||
saw_speclang = 1;
|
||||
}
|
||||
else if (strcmp (argv[i], "-ObjC++") == 0)
|
||||
{
|
||||
if (library == 0)
|
||||
library = 1;
|
||||
saw_speclang = 1;
|
||||
}
|
||||
/* Arguments that go directly to the linker might be .o files,
|
||||
or something, and so might cause libstdc++ to be needed. */
|
||||
else if (strcmp (argv[i], "-Xlinker") == 0)
|
||||
|
@ -237,13 +245,6 @@ lang_specific_driver (int *in_argc, const char *const **in_argv,
|
|||
if (quote)
|
||||
fatal ("argument to '%s' missing\n", quote);
|
||||
|
||||
/* If we know we don't have to do anything, bail now. */
|
||||
if (! added && library <= 0)
|
||||
{
|
||||
free (args);
|
||||
return;
|
||||
}
|
||||
|
||||
/* There's no point adding -shared-libgcc if we don't have a shared
|
||||
libgcc. */
|
||||
#ifndef ENABLE_SHARED_LIBGCC
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
2007-03-02 Geoffrey Keating <geoffk@apple.com>
|
||||
|
||||
* g++.dg/other/darwin-minversion-1.C: New.
|
||||
|
||||
2007-03-02 Diego Novillo <dnovillo@redhat.com>
|
||||
|
||||
* gcc.dg/tree-ssa/20070302-1.c: New test.
|
||||
|
|
10
gcc/testsuite/g++.dg/other/darwin-minversion-1.C
Normal file
10
gcc/testsuite/g++.dg/other/darwin-minversion-1.C
Normal file
|
@ -0,0 +1,10 @@
|
|||
/* Test for -mmacosx-version-min default on powerpc-darwin. */
|
||||
/* { dg-do compile { target powerpc-*-darwin* } } */
|
||||
|
||||
int main(void)
|
||||
{
|
||||
#if __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1030
|
||||
fail me;
|
||||
#endif
|
||||
return 0;
|
||||
}
|
Loading…
Add table
Reference in a new issue