From: Andreas Schwab Date: Wed, 23 Jan 2008 16:05:45 +0000 (+0000) Subject: * ld-gc/gc.c: Make sure used_func is not inlined. X-Git-Tag: sid-snapshot-20080201~114 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f9dd0b02e897f9e362bbd853ee2f2777a5404ab5;p=thirdparty%2Fbinutils-gdb.git * ld-gc/gc.c: Make sure used_func is not inlined. --- diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index ec2971ae731..f55e310a6a7 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2008-01-23 Andreas Schwab + + * ld-gc/gc.c: Make sure used_func is not inlined. + 2008-01-22 H.J. Lu * ld-gc/gc.exp: Use [which $CC] != 0. diff --git a/ld/testsuite/ld-gc/gc.c b/ld/testsuite/ld-gc/gc.c index c662f72f8b7..6b356ad0aa5 100644 --- a/ld/testsuite/ld-gc/gc.c +++ b/ld/testsuite/ld-gc/gc.c @@ -8,6 +8,7 @@ unused_func (int v) } int +__attribute__((noinline)) used_func (int v) { return 2 * used_var;