This is the mail archive of the gcc-bugs@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: 3.0 20010305 (prerelease) gen-num-limits.cc compile failure on alpha-dec-osf4.0e



This won't do what the comment claims it will do.
This will always ignore all files named, "standards.h".
The comment says it is for Tru64 UNIX.  You must add
some selection or bypass criteria to ensure you do not
suppress the fixing of standards.h files that need fixes.

> I haven't tried this, but fixed it using fixincludes.  The patch below
> inhibits `fixing' standards.h which already handles GCC correctly.
> 
> Thu Mar  8 21:09:10 2001  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
> 
> 	* fixinc/inclhack.def (AAA_standards): Undo 
> <standards.h> breakage
> 	on Tru64 UNIX.
> 	* fixinc/fixincl.x: Regenerate.
> 
> Index: inclhack.def
> ===================================================================
> RCS file: /cvs/gcc/egcs/gcc/fixinc/inclhack.def,v
> retrieving revision 1.101.2.1
> diff -u -p -r1.101.2.1 inclhack.def
> --- inclhack.def	2001/02/21 20:08:17	1.101.2.1
> +++ inclhack.def	2001/03/08 20:29:04
> @@ -60,6 +60,18 @@ fix = {
>  
>  
>  /*
> + * Tru64 UNIX V4.0F/V5.1 <standards.h> defines _NO_PROTO and 
> _NONSTD_TYPES
> + * correctly for GCC, but strict_ansi_not breaks it.
> + */
> +fix = {
> +    hackname = AAA_standards;
> +    files    = standards.h;
> +    select   = 'GNU and MIPS C compilers define __STDC__ 
> differently';
> +    replace; /* empty replacement -> no fixing the file */
> +};
> +
> +
> +/*


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