diff options
author | John David Anglin <dave.anglin@nrc-cnrc.gc.ca> | 2003-05-21 22:00:58 +0000 |
---|---|---|
committer | John David Anglin <danglin@gcc.gnu.org> | 2003-05-21 22:00:58 +0000 |
commit | f48758e4ee440a8866485fad7c63f4f2f2e1dbb0 (patch) | |
tree | fa47d879a76304b6366e8da00594921f81626821 /gcc/testsuite/gcc.dg | |
parent | 7a29f483cf7f68eedb4ac1f308b083bf3300cf56 (diff) | |
download | gcc-f48758e4ee440a8866485fad7c63f4f2f2e1dbb0.zip gcc-f48758e4ee440a8866485fad7c63f4f2f2e1dbb0.tar.gz gcc-f48758e4ee440a8866485fad7c63f4f2f2e1dbb0.tar.bz2 |
re PR target/6428 ([hppa*-hp-hpux] gmon.out is not generated when application to be profiled is linked with shared libgcc)
PR target/6428
* pa-hpux10.h (LINK_SPEC, LIB_SPEC): Move -L options for profiling
directories from LIB_SPEC to LINK_SPEC. Emit warning if `-p' or `-pg'
option is used without `-static'.
* pa-hpux11.h (LINK_SPEC, LIB_SPEC): Likewise.
* pa64-hpux.h (LINK_SPEC, LIB_SPEC): Likewise.
* g++.old-deja/g++.law/profile1.C (dg-options): Add -static to options
for hppa*-hp-hpux*.
* gcc.dg/20021014-1.c (dg-options): Likewise.
* gcc.dg/nest.c (dg-options): Likewise.
From-SVN: r67068
Diffstat (limited to 'gcc/testsuite/gcc.dg')
-rw-r--r-- | gcc/testsuite/gcc.dg/20021014-1.c | 1 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/nest.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/20021014-1.c b/gcc/testsuite/gcc.dg/20021014-1.c index 982829f..69e2eaa 100644 --- a/gcc/testsuite/gcc.dg/20021014-1.c +++ b/gcc/testsuite/gcc.dg/20021014-1.c @@ -1,5 +1,6 @@ /* { dg-do run } */ /* { dg-options "-O2 -p" } */ +/* { dg-options "-O2 -p -static" { target hppa*-*-hpux* } } */ /* { dg-error "profiler" "No profiler support" { target mmix-*-* xstormy16-*-* } 0 } */ /* { dg-error "" "consider using `-pg' instead of `-p' with gprof(1)" { target *-*-freebsd* } 0 } */ /* Support for -p on solaris2 relies on mcrt1.o which comes with the diff --git a/gcc/testsuite/gcc.dg/nest.c b/gcc/testsuite/gcc.dg/nest.c index ba566ef..adb9f0d 100644 --- a/gcc/testsuite/gcc.dg/nest.c +++ b/gcc/testsuite/gcc.dg/nest.c @@ -1,6 +1,7 @@ /* PR 5967, PR 7114 */ /* { dg-do run } */ /* { dg-options "-O2 -pg" } */ +/* { dg-options "-O2 -pg -static" { target hppa*-*-hpux* } } */ /* { dg-error "profiler" "No profiler support" { target mmix-*-* xstormy16-*-* } 0 } */ /* Support for -pg on irix relies on gcrt1.o which doesn't exist yet. See: http://gcc.gnu.org/ml/gcc/2002-10/msg00169.html */ |