[petsc-dev] Clang Analyzer

Jed Brown jed at jedbrown.org
Mon Apr 13 10:46:37 CDT 2015


Lisandro Dalcin <dalcinl at gmail.com> writes:

> On 13 April 2015 at 17:45, Jed Brown <jed at jedbrown.org> wrote:
>> Of course not every compiler defines it, so that's why we check:
>
> What I meant is the following: assume you are using a not so old GCC
> version that supports __attribute__((something)) however it does not
> support the __has_attribute(something) in the preprocessor. Then we
> will endup not using the attribute despite the compiler actually
> supporting it.

That is true, so we have to live with configure tests for important
attributes at this time.  We might be able to phase some of them out in
the future, and some new attributes can be tested using __has_attribute.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20150413/dce10400/attachment.sig>


More information about the petsc-dev mailing list