This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: GCC 3.0 Release compile problem on Mandrake 8.0


On Jun 19, 2001, Loren James Rittle <rittle@latour.rsch.comm.mot.com> wrote:

> Please file an official GNATS report, if you haven't already.

No need to do that, we've got at least 2 of these already.

>     sed '/^#/s/\([A-Z_][A-Z_]*\)/_GLIBCPP_\1/g' <$d/gthr.h-in >$d/gthr.h

> If I had to guess given the failure mode, I would swear that your
> sed(1) isn't treating upper case differently than lower case.  Can you
> please confirm that to be true?

> Here is a simple test:

> 	echo a | sed 's/[A-Z_]/fail/'

Character ranges are not portable, since they're subject to
localization on some seds.  Always spell out the whole range to avoid
this kind of problem.  Sorry for not having noticed this portability
problem before the release.  I really wish this change hadn't gone in
so close to the final :-(

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]