This is the mail archive of the gcc-patches@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]
Other format: [Raw text]

Re: Patch to poison (or wrap with !IN_GCC?) ansidecl.h macros


"Kaveh R. Ghazi" <ghazi@caip.rutgers.edu> writes:

> Well, if we're guarding stuff with !IN_GCC, then other projects will
> be oblivious to what we do.
>
> However, now I'm thinking that never defining the macros at all is
> blocking them too early for GCC's needs.  (E.g. libiberty.h checks the
> ANSI_PROTOTYPES macro from ansidecl.h.)  So we need at least this
> defined early on.  Undef'ing and poisoning after libiberty.h has been
> included works fine.
>
> So I prefer the original patch as posted.  Sorry for obfuscating the
> issue.  Would you please review the prior patch?

Good point.  Go ahead and check in the original patch.

zw


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