This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug preprocessor/59782] libcpp does not avoid bug #48326 when compiled by older GCC
- From: "michael at talosis dot ca" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 14 Jan 2014 01:21:22 +0000
- Subject: [Bug preprocessor/59782] libcpp does not avoid bug #48326 when compiled by older GCC
- Auto-submitted: auto-generated
- References: <bug-59782-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59782
--- Comment #4 from Michael Deutschmann <michael at talosis dot ca> ---
> According to [1], 4.7.1 is already OK, so > 4007 should be enough.
But 4.7.0 isn't OK, so >= 4007 isn't enough. (> 4007 is functionally
equivalent to >= 4008.)
Note that this does make fixing 4.7.4 (which I suggest should be done otherwise
a person starting with 4.7.0, no C++, and a cmov-less processor will face a
circuitous route up to the current version.) a little more complicated.
GCC_VERSION >= 4007 isn't good enough, but GCC_VERSION >= 4008 would mean that
4.7.4 would never include the MMX code when compiled with itself. Some would
call that a regression.
It's a simple matter of preprocessor programming to check the patchlevel too,
but it will be an ugly #if statement....
If only there was a NOT_STAGE_1 macro... (is there?).