[LTP] [PATCH 2/2] lib: build check parameters for tst_brk()

Li Wang liwang@redhat.com
Fri Dec 7 07:28:32 CET 2018


Hi Petr,

On Thu, Dec 6, 2018 at 9:07 PM Petr Vorel <pvorel@suse.cz> wrote:

> > No, I saw kernel gives this limitation so just use it as that.
> > See: https://github.com/torvalds/linux/blob/master/include/linux/build_bug.h#L55
> OK, I didn't get from Jan's "There's an __attribute__(error), but it's supported
> only from gcc 4.3 as I recall.", that it is in 4.3 and older. First I thought
> it's a new feature, but didn't find any reference.

I have tried on Travis CI for many new commits build, I didn't found
GCC(even gcc-4.1.2) outthrow warning in the compiling phase. But seems
only clang(3.9, 4.0, 5.0) blames '__error__' is unknown attribute.
Maybe we should consider to check clang version, but currently I have
no idea which version should be set as baseline.

https://travis-ci.org/wangli5665/ltp/builds
https://github.com/wangli5665/ltp/blob/check-tst_brk-parameter/include/tst_common.h#L68

-- 
Regards,
Li Wang


More information about the ltp mailing list