diff options
author | Uros Bizjak <uros@gcc.gnu.org> | 2009-07-25 15:45:02 +0200 |
---|---|---|
committer | Uros Bizjak <uros@gcc.gnu.org> | 2009-07-25 15:45:02 +0200 |
commit | 011a31984dbaed1aabe358a3d7a46a239a86afb3 (patch) | |
tree | b128f10b07ee43b10c821597a326137ebbd9b386 /gcc/testsuite/gcc.dg/special/gcsec-1.c | |
parent | 9618fb3c1bf9bf211109d87c435804f164202bda (diff) | |
download | gcc-011a31984dbaed1aabe358a3d7a46a239a86afb3.zip gcc-011a31984dbaed1aabe358a3d7a46a239a86afb3.tar.gz gcc-011a31984dbaed1aabe358a3d7a46a239a86afb3.tar.bz2 |
target-supports.exp (check_effective_target_static): New procedure.
* lib/target-supports.exp (check_effective_target_static): New
procedure.
* gcc.dg/special/gcsec-1.c (dg-options): Use -static only when
supported.
* g++.old-deja/g++.law/weak.C: Require static effective target.
From-SVN: r150080
Diffstat (limited to 'gcc/testsuite/gcc.dg/special/gcsec-1.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/special/gcsec-1.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gcc/testsuite/gcc.dg/special/gcsec-1.c b/gcc/testsuite/gcc.dg/special/gcsec-1.c index b76ad50..ef1434f 100644 --- a/gcc/testsuite/gcc.dg/special/gcsec-1.c +++ b/gcc/testsuite/gcc.dg/special/gcsec-1.c @@ -3,10 +3,8 @@ /* { dg-do run { xfail rs6000-*-aix* powerpc*-*-aix* } } */ /* { dg-require-gc-sections "" } */ -/* { dg-options "-ffunction-sections -fdata-sections -Wl,--gc-sections -static" } */ -/* { dg-options "-ffunction-sections -fdata-sections -Wl,--gc-sections -static" { target native } } */ -/* Solaris 10 does not support static linking; there is no libc.a. */ -/* { dg-options "-ffunction-sections -fdata-sections -Wl,--gc-sections" { target *-*-netware* i?86-*-solaris2.1[0-9] } } */ +/* { dg-options "-ffunction-sections -fdata-sections -Wl,--gc-sections" } */ +/* { dg-options "-ffunction-sections -fdata-sections -Wl,--gc-sections -static" { target static } } */ #include <stdlib.h> |