diff options
author | Kai Kang <kai.kang@windriver.com> | 2015-09-25 12:30:39 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-09-28 11:58:28 +0100 |
commit | 90e28e33c408d1607ebe0afb0db97e39255395d1 (patch) | |
tree | 45f7b894101ffa51d79e51b5c5b2c321f9e125f6 /meta/lib/oeqa/sdk/gcc.py | |
parent | d19772d1f3c9d0a06c10dfb246bb156b575a14c5 (diff) | |
download | openembedded-core-90e28e33c408d1607ebe0afb0db97e39255395d1.tar.gz openembedded-core-90e28e33c408d1607ebe0afb0db97e39255395d1.tar.bz2 openembedded-core-90e28e33c408d1607ebe0afb0db97e39255395d1.zip |
ltp: replace 'inline' with 'static inline' for gcc 5.x
gcc 5.x defaults to -std=gnu11 instead of -std=gnu89 which causes
semantics for inline functions changes.
The standalone 'inline' causes error with gcc 5 such as:
git/testcases/kernel/syscalls/kill/kill10.c:355: undefined reference to
`k_sigaction'
Replace inline with static inline to be compatible with both gcc 4 and 5.
Found and test with configure:
SELECTED_OPTIMIZATION="-O0 -fno-omit-frame-pointer -g -pipe"
Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/lib/oeqa/sdk/gcc.py')
0 files changed, 0 insertions, 0 deletions