Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Nov 2015 10:19:47 +0000
From:      Matthew Seaman <matthew@FreeBSD.org>
To:        freebsd-questions@freebsd.org
Subject:   Re: gcc macros
Message-ID:  <565AD143.8040301@FreeBSD.org>
In-Reply-To: <565A73C6.4090306@hiwaay.net>
References:  <565A73C6.4090306@hiwaay.net>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--d5wB6Ev2pgleNlHjU4dt2J7NGhpgppts3
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

On 29/11/2015 03:39, William A. Mahaffey III wrote:
> I use the Intel compiler suite (icc & ifort) to maintain some inhouse
> code under Linux. The man pages for icc clearly list all macros defined=

> &/or used by icc in one neat section. I have yet to locate such a
> listing for macros under gcc's under FreeBSD 9.3R (gcc48, gcc49 & gcc5)=
=2E
> Is there such a listing documented somewhere, & if so where ? TIA & hav=
e
> a good one ....

Try:

  cc -dM -E - < /dev/null

which will print all of the pre-processor definitions used by the
compiler.   You can add other flags like eg.  --std=3Dc89 if you like.

	Cheers,

	Matthew



--d5wB6Ev2pgleNlHjU4dt2J7NGhpgppts3
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2

iQJ8BAEBCgBmBQJWWtFJXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2NTNBNjhCOTEzQTRFNkNGM0UxRTEzMjZC
QjIzQUY1MThFMUE0MDEzAAoJELsjr1GOGkATh9YP/3M3szIYGCfTIs0pztBu3Oua
/W0GQ1lw2/XbhtJ3oHu0oey8QII+D8aJD6KElnVVcXNaueHQMRxPbPzf3+GD0oc9
tmZje68ov+EHmnfezw2ag1gWq7yMM6R6onPyyYGObfexnYe40htG6uKI/YxMedQC
XEabILe8gbAKz3PzngunRrmYubz1RD948aTHB+G2OpDMi7IHWrnWVtkfPRUpPxwC
ic1wZRGuuyc/to+C9skZDNHnm/qnpGbV8pPHdP9nK/tC+umXgJ7i7R0qD3RcsaVY
gZh5yEudle+bYFc6piOxeg3qGVcqiOnIZ7/2sGA2Mt+7UWQ4+8w41gE2MmKQ7+ia
x5HtSRHKpSFKmr2vOhLU+bytjJjKa7aCkF11b+RtMG9MxctN42YKrx0DgOHQWiLA
YucjLQ2eSYDu5E5ksZmogJxcSgYmzDaVxl0yDd6CM2aQ2LSZXsh14HbdGGt+Zezy
R5VU5wluKA30vJB3GHIVZwUzdoBF2i8hbco40srgeM3NJlFaAWfMr4dSni+dUfMC
Q4V78TkFV0Em1/OFSLTnqdW20EyKAEvWc6VNIVfsefscsyWkH2wDnrt8eLGakaWc
P496QjtxfH+41lDH0s5nxrtfcILZb2tkGciKvXNJBToW5KmGqaQoT1b9Pp8ygP73
Af3jpPmBz9he71uLGd7D
=/PgZ
-----END PGP SIGNATURE-----

--d5wB6Ev2pgleNlHjU4dt2J7NGhpgppts3--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?565AD143.8040301>