This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: PATCH [v3]: makes --gc-sections compatible with -r/-q
Tristan Gingold <gingold@adacore.com> writes:
> Will be useful. But we first have to settle the x86_64 case: why does it
> work for me and not for you ?
Your compiler is too old.
(Checked in as obvious.)
Andreas.
2008-01-23 Andreas Schwab <schwab@suse.de>
* ld-gc/gc.c: Make sure used_func is not inlined.
--- ld/testsuite/ld-gc/gc.c.~1.1.~ 2008-01-11 10:11:18.000000000 +0100
+++ ld/testsuite/ld-gc/gc.c 2008-01-23 16:39:07.000000000 +0100
@@ -8,6 +8,7 @@ unused_func (int v)
}
int
+__attribute__((noinline))
used_func (int v)
{
return 2 * used_var;
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."