[Buildroot] [PATCH 1/1] package/xxhash: set XXH_NO_INLINE_HINTS

Peter Korsgaard peter at korsgaard.com
Sun Jan 29 21:04:14 UTC 2023


>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice at gmail.com> writes:

 > Set XXH_NO_INLINE_HINTS to marks all internal functions as static,
 > giving the compiler full control on whether to inline or not. This will
 > fix the following build failure raised since bump to version 0.8.1 in
 > commit 5dbdb2535c649ee617595b8c4ae3cbba0ee37b97:

 > In file included from xxhash.c:43:
 > In function 'XXH3_accumulate',
 >     inlined from 'XXH3_hashLong_internal_loop' at xxhash.h:4390:9,
 >     inlined from 'XXH3_hashLong_64b_internal' at xxhash.h:4453:5,
 >     inlined from 'XXH3_hashLong_64b_withSecret' at xxhash.h:4473:12,
 >     inlined from 'XXH3_64bits_internal' at xxhash.h:4554:12,
 >     inlined from 'XXH3_64bits_withSecret' at xxhash.h:4570:12:
 > xxhash.h:4196:1: error: inlining failed in call to 'always_inline' 'XXH3_accumulate_512_scalar': function not considered for inlining
 >  4196 | XXH3_accumulate_512_scalar(void* XXH_RESTRICT acc,
 >       | ^~~~~~~~~~~~~~~~~~~~~~~~~~

 > Fixes:
 >  - http://autobuild.buildroot.org/results/f2c52238df97cc4c13117d8dc1423235231a094c

 > Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>

Committed to 2022.11.x and 2022.02.x, thanks.

-- 
Bye, Peter Korsgaard



More information about the buildroot mailing list