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]

Re: PATCH: Darwin pragmas


Stan Shebs <shebs@apple.com> writes:

> Here are four target-specific pragmas that Darwin systems need to
> support.  In the absence of any consensus on adding documentation or
> testsuite for pragmas, the patch doesn't include those, but of course
> I'd be happy to write them if it's agreed that they are desirable.

Yes, please, testcases for every feature.  I think we decided that
even target-specific pragmas should have documentation, but presumably
in a target-specific section of the docs...  I'm not sure where that
might go.  Probably in the bit about 'C extensions', have a sub-node
for pragmas, and a second sub-node for 'pragmas for Darwin'.

> + #define BAD(msgid) do { warning (msgid); return; } while (0)

This might cause localisation trouble.  You might need something
to tell gettext that 'BAD' in this file has a parameter of a string
that is to be translated.

-- 
- Geoffrey Keating <geoffk@geoffk.org>


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