This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Target-specific pragmas
- To: Geoff Keating <geoffk at geoffk dot org>
- Subject: Re: Target-specific pragmas
- From: "H . J . Lu" <hjl at lucon dot org>
- Date: Thu, 21 Jun 2001 10:22:47 -0700
- Cc: Stan Shebs <shebs at apple dot com>, gcc at gcc dot gnu dot org
- References: <3B3149D1.8FB4E0B6@apple.com> <jm66dq8lkj.fsf@geoffk.org>
On Wed, Jun 20, 2001 at 10:10:36PM -0700, Geoff Keating wrote:
> > 1. How should target-specific pragmas be documented? I notice that
> > there are many existing pragmas in targets, but the manual does not
> > seem to mention any of them anywhere. Is this deliberate?
>
> Yes. I believe that nearly all of the target-specific pragmas are
> only for backwards compatibility with other compilers, and that
> the preferred interface is to use __attribute__.
>
FWIW, even if you don't want to use "#pragma weak", you had to define
HANDLE_SYSV_PRAGMA to enable __attribute__ ((weak)).
H.J.