Bug other/230 - GCC fails to build on Sparc-solaris-2.7 - FIX

Anthony Williams anthony_w.geo@yahoo.com
Wed May 24 00:52:00 GMT 2000


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

From: Alexandre Oliva <aoliva@cygnus.com>
Sent: 24 May 2000 05:54
On May 24, 2000, Jeffrey A Law <law@cygnus.com> wrote:

> OK.  Didn't we have a different patch to deal with this problem by 
> tweaking the mh-blahpic files to avoid the problem quoting?

Yup.  In fact, when I read your reply, I though you were replying to
that one.

I hadn't seen that patch when I filed the bug and my patch. I
retrieved the latest CVS snapshot just now, and 'make bootstrap'
fails with the same error if I leave my patch out:

...src/cvsbuild>make bootstrap
make[1]: Entering directory `/work/egcs/src/cvsbuild/libiberty'
if [ x"`case "-g -O2 -g -O2 -fno-implicit-templates" in *-fpic* )
echo -fpic ;; * ) echo -fPIC ;; esac`" != x ] && [ ! -d pic ]; then \
  mkdir pic; \
else true; fi
/bin/sh: syntax error at line 1: `end of file' unexpected
make[1]: *** [stamp-picdir] Error 2
make[1]: Leaving directory `/work/egcs/src/cvsbuild/libiberty'
make: *** [all-libiberty] Error 2

Obviously the " quotes are being dealt with before the ` quotes, so
the case statement is expanded verbatim into the 'if', and just
causes confusion. My patch catches the RESULT of the case statement
into a temporary, which is then used in the 'if'.

Anthony

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 6.5.1 for non-commercial use < http://www.pgp.com >
Comment: PGP Key at: http://i3.yimg.com/3/c7e5ee24/g/68fc2307.asc

iQA/AwUBOSuJtZvw+P4cG5rVEQKIvQCgoEA/MBCIN74FP38uuvqz7IJ9B2AAn3un
0az91qKOBNjoOKwSWOejA8B0
=oStV
-----END PGP SIGNATURE-----



__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com


More information about the Gcc-patches mailing list