Re: [PATCH] builtins: Store unspecified value to *exp for inf/nan [PR114877]

2025-01-22 Thread Jeff Law
On 1/22/25 2:48 AM, Jakub Jelinek wrote: Hi! The fold_builtin_frexp folding for NaN/Inf just returned the first argument with evaluating second arguments side-effects, rather than storing something to what the second argument points to. The PR argues that the C standard requires the function

[PATCH] builtins: Store unspecified value to *exp for inf/nan [PR114877]

2025-01-22 Thread Jakub Jelinek
Hi! The fold_builtin_frexp folding for NaN/Inf just returned the first argument with evaluating second arguments side-effects, rather than storing something to what the second argument points to. The PR argues that the C standard requires the function to store something there but what exactly is