Subject: Re: Making the (asm) world safe for modern cpp
To: Valeriy E. Ushakov <uwe@ptc.spbu.ru>
From: Jim Wise <jwise@draga.com>
List: tech-toolchain
Date: 09/18/2003 09:44:46
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu, 18 Sep 2003, Valeriy E. Ushakov wrote:

>On Wed, Sep 17, 2003 at 21:36:58 -0400, Jim Wise wrote:
>
>> > Just a comment: assemblers that use `#' as part of the syntax (not as
>> > a comment starter), e.g. SuperH, will have a problem with dropping
>> > -traditional-cpp:
>> >
>> > [example snipped]
>>
>> Hmm.  Does this not cause problems when used with inline assembly in
>> gcc?  Obviously, correctly used, this won't result in a # at the
>> beginning of the line (since __asm__ takes arguments as strings, and
>> strings can't span multiple lines, even though this used to be common),
>> but don't the same sort of macro parameter errors occur?
>
>No, a string-literal is a preprocessing-token, so # inside a string
>literal is safe.

Ah, true. Hmm.

Which architectures use `#' in the default assembly syntax?

- -- 
				Jim Wise
				jwise@draga.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (NetBSD)

iD8DBQE/abbXRxzMSZ/9vAMRAsUCAJ99V6zPOQ4x7NPyWdY0qs0C3rjWtgCgi4MD
CfQuLbyYNlpVEF55+Dh3Xlo=
=pZ0E
-----END PGP SIGNATURE-----