This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Avoid duplication of -YP linker flag with -p -pg
On Sep 18, 1999, Richard Henderson <rth@cygnus.com> wrote:
> On Sat, Sep 18, 1999 at 03:29:46PM -0300, Alexandre Oliva wrote:
>> It uses the trick to avoid the duplication of -YP, and the order of
>> appearance of -pg and -p is reversed. And there's an indentation
>> error too, for which I submitted another patch. When (if?) you
>> approve it, I'll change it to the same as /sparc, if you tell me to.
> I guess both changes you've made to the x86 sol2 specs are fine.
Ok, so far, I have installed the specs-only change. The other
sol2/x86 change was that of debugging format, do you mean you approve
it? Should I check it in the branch too?
WRT to the -YP changes, which one do you think is more readable:
%{!YP,*:%{pg:-Y P,/usr/ucblib:/usr/ccs/lib/libp:/usr/lib/libp:/usr/ccs/lib:/usr/lib} \
%{!pg:%{p:-Y P,/usr/ucblib:/usr/ccs/lib/libp:/usr/lib/libp:/usr/ccs/lib:/usr/lib} \
%{!p:-Y P,/usr/ucblib:/usr/ccs/lib:/usr/lib}}} \
-R /usr/ucblib} \
or
%{!YP,*:%{pg:-Y P,/usr/ucblib:/usr/ccs/lib/libp:/usr/lib/libp:/usr/ccs/lib:/usr/lib} \
%{p:%{!pg:-Y P,/usr/ucblib:/usr/ccs/lib/libp:/usr/lib/libp:/usr/ccs/lib:/usr/lib}} \
%{!p:%{!pg:-Y P,/usr/ucblib:/usr/ccs/lib:/usr/lib}}} \
-R /usr/ucblib} \
or, if we really don't care about passing multiple -YP options to the
linker:
-Y P,/usr/ucblib:/usr/ccs/lib:/usr/lib \
%{p|pg:-Y P,/usr/ucblib:/usr/ccs/lib/libp:/usr/lib/libp:/usr/ccs/lib:/usr/lib} \
%{!YP,*:-R/usr/ucblib} \
%{YP,*}
--
Alexandre Oliva http://www.dcc.unicamp.br/~oliva IC-Unicamp, Bra[sz]il
oliva@{lsd.ic.unicamp.br,guarana.{org,com}} aoliva@{acm,computer}.org
oliva@{gnu.org,kaffe.org,{egcs,sourceware}.cygnus.com,samba.org}
** I may forward mail about projects to mailing lists; please use them