VAX Ultrix bootstrap failure with gcc-2.96

Zack Weinberg zack@wolery.cumb.org
Thu May 25 19:35:00 GMT 2000


On Thu, May 25, 2000 at 10:20:54PM -0400, John David Anglin wrote:
> > It did catch some real bugs, so I'm not complaining.  What are the
> > $ in identifier messages complaining about?  It's probably another
> > warning that should be turned off in system headers, or something like
> > that.
> 
> The $ in identifier messages are complaining about lines like
> 
> #if     defined(__GFLOAT) || CC$gfloat
> 
> which occur in limits.h (syslimits.h) and math.h in the gcc include
> directory.  The identifier CC$gfloat is something the VAX ANSI C
> compiler defines.  Probably, this should be nuked when the includes
> are fixed.  It obviously isn't needed in the gcc include directory.

I agree.  Could you come up with an entry for inclhack.def?  It will
be easier for you since you have access to the header files.  I'll
guess at an appropriate pattern:

fix = {
  hackname = vax_math_ifdefs;
  files = limits.h;
  files = math.h;
  select = "^#if.*||[ \t]+CC$[a-z]+";
  sed = "/^#if/s/||[ \t][ \t]*CC$[a-z][a-z]*//g";
};

This will undoubtedly need refinement to do the right thing in all cases.

> Another small related issue is that gcc should define __GFLOAT
> in addition to GFLOAT when the -mg option is used.  I have edited
> my specs file to do this.

Patch for config/vax/*.h, please?

zw


More information about the Gcc-bugs mailing list