[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi] Detecting gcc version using 'make' [Was: Treacherous gcc-10 defect
From: |
Greg Chicares |
Subject: |
[lmi] Detecting gcc version using 'make' [Was: Treacherous gcc-10 defect] |
Date: |
Wed, 3 Mar 2021 22:44:46 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.4.0 |
On 3/2/21 1:12 PM, Vadim Zeitlin wrote:
> On Mon, 1 Mar 2021 17:06:20 +0000 Greg Chicares <gchicares@sbcglobal.net>
> wrote:
[...snip 'gcc -dM -E' trick...]
> GC> This seems like too much labor when '-dumpfullversion' should Just Work.
[...]
> And I think it should be possible to implement the equivalent of autoconf
> AC_TRY_COMPILE() macro with just GNU make macros. Whether we want to do it
> or not is another question, because it's likely to be somewhat hairy.
[...demonstration snipped...]
> As usual, all this is just idle musings, please let me know if you think
> it would be worth really looking into this,
Interesting [snipped] example. Thanks. But I don't think we should
pursue such ideas. We can just update the makefiles to specify
'-fno-omit-frame-pointer' when a fixed gcc becomes available as a
debian package.