16406 – [3.4 Regression] USE_LD_AS_NEEDED undocumented (original) (raw)
Description Joseph S. Myers 2004-07-07 12:12:58 UTC
The target macro USE_LD_AS_NEEDED, added by
2004-04-23 Alan Modra <amodra@bigpond.net.au>
[PR bootstrap/14992](show%5Fbug.cgi?id=14992 "RESOLVED FIXED - --as-needed patch makes -shared-libgcc the default on some systems")
* gcc.c (init_gcc_specs): Test USE_LD_AS_NEEDED, not HAVE_LD_AS_NEEDED.
* config/linux.h (USE_LD_AS_NEEDED): Define.
* gcc/config/alpha/linux.h (USE_LD_AS_NEEDED): Define.
* gcc/config/arm/linux-elf.h (USE_LD_AS_NEEDED): Define.
* gcc/config/rs6000/linux.h (USE_LD_AS_NEEDED): Define.
* gcc/config/rs6000/linux64.h (USE_LD_AS_NEEDED): Define.
* gcc/config/sh/linux.h (USE_LD_AS_NEEDED): Define.
* gcc/config/sparc/linux.h (USE_LD_AS_NEEDED): Define.
* gcc/config/sparc/linux64.h (USE_LD_AS_NEEDED): Define.is undocumented. This is a regression in 3.5.
Comment 1 Drea Pinski 2004-07-07 14:54:14 UTC
Confirmed and not just a regression in 3.5.0 but also on the 3.4 branch too.
Comment 2 Mark Mitchell 2004-08-29 19:09:45 UTC
Postponed until GCC 3.4.3.
Comment 6 Drea Pinski 2004-10-06 01:06:59 UTC
Fixed.
Comment 7 Eric Botcazou 2005-05-30 14:33:06 UTC
Alan, am I mistaken or did you document on the 3.4 branch something that is only in 4.x? AFAICS PR bootstrap/14992 has been solved differently on that branch:
[PR bootstrap/14992](show%5Fbug.cgi?id=14992 "RESOLVED FIXED - --as-needed patch makes -shared-libgcc the default on some systems")
* configure.ac: Define HAVE_LD_AS_NEEDED only for linux.
* configure: Regenerate.
* gcc.c (init_gcc_specs): Revert earlier change.Comment 8 Alan Modra 2005-05-30 23:19:07 UTC
Yes. s/USE_LD_AS_NEEDED/HAVE_LD_AS_NEEDED/ will make the doc right on 3.4
Comment 9 Eric Botcazou 2005-05-31 04:17:29 UTC
Yes. s/USE_LD_AS_NEEDED/HAVE_LD_AS_NEEDED/ will make the doc right on 3.4
Sort of. HAVE_LD_AS_NEEDED is not a target macro per se.