warnings from libaes on Fedora 32

Daniel Franke dfoxfranke at gmail.com
Thu Apr 30 00:47:36 UTC 2020


There's nothing to fix. It's the just optimizer telling you it'd rather not
inline a function that was declared inline. Which is fine, it doesn't
affect correctness.

On Wed, Apr 29, 2020 at 8:32 PM Hal Murray <hmurray at megapathdsl.net> wrote:

>
> What's the right fix for this?
> gcc (GCC) 10.0.1 20200328 (Red Hat 10.0.1-0.11)
>
> ../../libaes_siv/aes_siv.c: In function ‘AES_SIV_EncryptFinal’:
> ../../libaes_siv/aes_siv.c:385:19: warning: inlining failed in call to
> ‘do_s2v_p’: --param max-inline-insns-single limit reached [-Winline]
>   385 | static inline int do_s2v_p(AES_SIV_CTX *ctx, block *out,
>       |                   ^~~~~~~~
> ../../libaes_siv/aes_siv.c:470:21: note: called from here
>   470 |         if(UNLIKELY(do_s2v_p(ctx, &q, plaintext, len) != 1)) {
>       |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> ../../libaes_siv/aes_siv.c:52:41: note: in definition of macro
> ‘UNLIKELY’
>    52 | #define UNLIKELY(cond) __builtin_expect(cond, 0)
>       |                                         ^~~~
> ../../libaes_siv/aes_siv.c: In function ‘AES_SIV_DecryptFinal’:
> ../../libaes_siv/aes_siv.c:385:19: warning: inlining failed in call to
> ‘do_s2v_p’: --param max-inline-insns-single limit reached [-Winline]
>   385 | static inline int do_s2v_p(AES_SIV_CTX *ctx, block *out,
>       |                   ^~~~~~~~
> ../../libaes_siv/aes_siv.c:513:21: note: called from here
>   513 |         if(UNLIKELY(do_s2v_p(ctx, &t, out, len) != 1)) {
>   513 |         if(UNLIKELY(do_s2v_p(ctx, &t, out, len) != 1)) {
>       |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
> ../../libaes_siv/aes_siv.c:52:41: note: in definition of macro
> ‘UNLIKELY’
>    52 | #define UNLIKELY(cond) __builtin_expect(cond, 0)
>       |                                         ^~~~
>
>
> --
> These are my opinions.  I hate spam.
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/devel/attachments/20200429/578dd0f7/attachment.htm>


More information about the devel mailing list