Displaying 2 results from an estimated 2 matches for "__gnuc_patchlevel".
Did you mean:
__gnuc_patchlevel__
2008 Mar 21
0
[LLVMdev] Just got bitten by accidentally using the wrong gcc
...> regular expression that tells you what the GCC version is:
> i686-apple-darwin9-gcc-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5470)
> (Aspen 5470.3)
Rrright. -v isn't very helpful; I'd have thought it would.
Alternatives would be
gcc -dumpversion
or __GNUC__, __GNUC_MINOR__, and __GNUC_PATCHLEVEL__ from inside a C
program. (I just checked, __GNUC_PATCHLEVEL is documented to be
available since 3.0, -dumpversion since 3.0.4 or possibly earlier.)
> Per the rest of this thread, you can't even be sure that gcc 4.x.y on
> one linux distribution is compile the same as on another.
Sur...
2008 Mar 21
3
[LLVMdev] Just got bitten by accidentally using the wrong gcc
I recommend you don't parse version strings. In fact I switch the
check to use AC_COMPILE precisely for the reason that gcc --version is
totally unreliable and vendor specific. For example, what's the
regular expression that tells you what the GCC version is:
i686-apple-darwin9-gcc-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5470)
(Aspen 5470.3)
Per the rest of this thread, you can't