This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[Fwd: Re: [fixinc patch] Put _KERNEL hack into regular fixincludes]
- From: Bruce Korb <bkorb at veritas dot com>
- To: neroden at twcny dot rr dot com, gcc-patches at gcc dot gnu dot org
- Date: Fri, 08 Aug 2003 07:12:16 -0700
- Subject: [Fwd: Re: [fixinc patch] Put _KERNEL hack into regular fixincludes]
- Reply-to: bkorb at veritas dot com
-------- Original Message --------
Subject: Re: [fixinc patch] Put _KERNEL hack into regular fixincludes
Date: Thu, 07 Aug 2003 21:39:04 -0700
From: Bruce Korb <bkorb@veritas.com>
Organization: Home
To: neroden@twcny.rr.com, gcc-patches@gcc.gnu.org
> Ha! Figured it out.
>
> check.sh wraps its generated file with:
> >#if defined( SVR4_KERNEL_CHECK )
> >
> >#endif /* SVR4_KERNEL_CHECK */
>
> This satisfies the bypass criterion. :-)
>
> Is this OK, or should we come up with a workaround?
Yep. That's pretty funny. I'd suggest either changing
the test name to ``svr4_krnl'' or change the bypass
to something like "^[ \t]*#[ \t]*if.*[ \t(]_KERNEL".
Probably changing the name is easier.
Cheers - Bruce