Subject: Re: Making the (asm) world safe for modern cpp
To: Jason Thorpe <thorpej@wasabisystems.com>
From: Perry E. Metzger <perry@piermont.com>
List: tech-toolchain
Date: 09/17/2003 18:33:17
Jason Thorpe <thorpej@wasabisystems.com> writes:
> On Wednesday, September 17, 2003, at 11:02  AM, Jim Wise wrote:
> > Currently, asm sources which are processed with cpp (.S) files are run
> > through `-traditional-cpp', rather than modern cpp.  This should
> > change,
> > as `-traditional-cpp' will _eventually_ go away, and as it leads to
> > subtle differences in macro expansion between c and assembly source
> > files.
> 
> No, -traditional-cpp won't go away.  It was specifically re-added to
> GCC 3.3's preprocessor because some assembly language syntaxes are
> incompatible with ISO C's preprocessor semantics.

However, it would be reasonable to use consistent comment syntax in
our .S files in any case -- hardly any harm in that, and it would do a
bit of good. Some platforms could also use the ISO cpp mode -- not all
of them have incompatibilities.

-- 
Perry E. Metzger		perry@piermont.com