From: Ludovic Brenta <ludovic@ludovic-brenta.org>
Subject: Re: GCC compiler option as pragma
Date: Sat, 12 Jan 2013 11:51:04 +0100
Date: 2013-01-12T11:51:04+01:00 [thread overview]
Message-ID: <87txqmr7xj.fsf@ludovic-brenta.org> (raw)
In-Reply-To: 50F12F91.4010001@obry.net
Pascal Obry <pascal@obry.net> writes:
> Le 11/01/2013 15:27, Gautier write-only a écrit :
>> Hello,
>> It seems too easy to be asked... but is there any way to pass a GCC
>> compiler option through a pragma in a unit's source ?
>
> I don't think so.
There is a way to pass *some* but not all options, namely those
controlling warnings (-ngtaw*), style checks (-gnaty*) and validity
checks (-gnatV*); see
http://gcc.gnu.org/onlinedocs/gcc-4.6.3/gnat_rm/Pragma-Style_005fChecks.html#Pragma-Style_005fChecks
http://gcc.gnu.org/onlinedocs/gcc-4.6.3/gnat_rm/Implementation-Defined-Pragmas.html#Implementation-Defined-Pragmas
http://gcc.gnu.org/onlinedocs/gcc-4.6.3/gnat_rm/Pragma-Warnings.html#Pragma-Warnings
And, of course, the language defined pragma Optimize and pragma
Linker_Options.
--
Ludovic Brenta.
prev parent reply other threads:[~2013-01-12 10:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-11 14:27 GCC compiler option as pragma Gautier write-only
2013-01-12 9:40 ` Pascal Obry
2013-01-12 10:51 ` Ludovic Brenta [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox