From f9dd0b02e897f9e362bbd853ee2f2777a5404ab5 Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Wed, 23 Jan 2008 16:05:45 +0000 Subject: [PATCH] * ld-gc/gc.c: Make sure used_func is not inlined. --- ld/testsuite/ChangeLog | 4 ++++ ld/testsuite/ld-gc/gc.c | 1 + 2 files changed, 5 insertions(+) diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index ec2971a..f55e310 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 c662f72..6b356ad 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; -- 2.7.4