* GCC compiler option as pragma @ 2013-01-11 14:27 Gautier write-only 2013-01-12 9:40 ` Pascal Obry 0 siblings, 1 reply; 3+ messages in thread From: Gautier write-only @ 2013-01-11 14:27 UTC (permalink / raw) 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 ? TIA _________________________ Gautier's Ada programming http://gautiersblog.blogspot.com/search/label/Ada NB: follow the above link for a valid e-mail address ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: GCC compiler option as pragma 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 0 siblings, 1 reply; 3+ messages in thread From: Pascal Obry @ 2013-01-12 9:40 UTC (permalink / raw) To: Gautier write-only 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. -- Pascal Obry / Magny Les Hameaux (78) The best way to travel is by means of imagination http://v2p.fr.eu.org http://www.obry.net gpg --keyserver keys.gnupg.net --recv-key F949BD3B ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: GCC compiler option as pragma 2013-01-12 9:40 ` Pascal Obry @ 2013-01-12 10:51 ` Ludovic Brenta 0 siblings, 0 replies; 3+ messages in thread From: Ludovic Brenta @ 2013-01-12 10:51 UTC (permalink / raw) 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. ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-01-12 10:51 UTC | newest] Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 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 is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox