This is the mail archive of the gcc@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: Target-specific pragmas


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.


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