This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: fixinc regression ?
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- To: Sylvain dot Pion at mpi-sb dot mpg dot de (Sylvain Pion)
- Cc: Sylvain dot Pion at mpi-sb dot mpg dot de, gcc-patches at gcc dot gnu dot org
- Date: Fri, 14 Feb 2003 00:02:49 -0500 (EST)
- Subject: Re: fixinc regression ?
> On Thu, Feb 13, 2003 at 01:25:12PM -0500, John David Anglin wrote:
> > > GCC doesn't bootstrap for me anymore (3.3 and 3.4), and I suspect it comes
> > > from :
> > >
> > > 2003-02-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
> > >
> > > * inclhack.def (hpux_long_double, hpux10_ctype_declarations1,
> > > hpux10_ctype_declarations2, hpux_ctype_macros): New hacks.
> > > * fixincl.x: Rebuilt.
> > > * tests/base/stdlib.h: Update.
> > > * tests/base/ctype.h: New file.
> >
> > Does the original version of stdlib.h on your system contain either of
> > the strings "long_double" or "_LONG_DOUBLE"? If it does, then there
> > needs to be a way to bypass the fix on your system.
> >
> > Could you send a copy of your stdlib.h header if it has either of these
> > strings in it?
>
> It contains "__long_double_t". The file is attached.
The following has been installed as obvious to fix the above on 3.2, 3.3
and trunk. Tested with no regressions on hppa2.0w-hp-hpux11.00.
Dave
--
J. David Anglin dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6605)
2003-02-13 John David Anglin <dave.anglin@nrc-crnc.gc.ca>
* fixinc/inclhack.def (hpux_long_double): Tighten select and add
bypass regexp.
* fixinc/fixincl.x: Rebuilt.
Index: fixinc/inclhack.def
===================================================================
RCS file: /cvsroot/gcc/gcc/gcc/fixinc/inclhack.def,v
retrieving revision 1.139.4.1
diff -u -3 -p -r1.139.4.1 inclhack.def
--- fixinc/inclhack.def 11 Feb 2003 21:09:14 -0000 1.139.4.1
+++ fixinc/inclhack.def 13 Feb 2003 19:25:02 -0000
@@ -1162,7 +1162,8 @@ fix = {
fix = {
hackname = hpux_long_double;
files = stdlib.h;
- select = "long_double";
+ select = "extern[ \t]long_double[ \t]strtold";
+ bypass = "long_double_t";
sed = "/^#[ \t]*ifndef _LONG_DOUBLE/,/\\/\\* _LONG_DOUBLE \\*\\//D";
sed = "s/long_double/long double/g";