Re: [PATCH] c: Fix ICEs with -fsanitize=pointer-{subtract,compare} [PR119582]

2025-04-02 Thread Marek Polacek
On Wed, Apr 02, 2025 at 06:38:12PM +0200, Jakub Jelinek wrote: > Hi! > > The following testcase ICEs because c_fully_fold isn't performed on the > arguments of __sanitizer_ptr_{sub,cmp} builtins and so e.g. > C_MAYBE_CONST_EXPR can leak into the gimplifier where it ICEs. > > Fixed thusly, bootstr

[PATCH] c: Fix ICEs with -fsanitize=pointer-{subtract,compare} [PR119582]

2025-04-02 Thread Jakub Jelinek
Hi! The following testcase ICEs because c_fully_fold isn't performed on the arguments of __sanitizer_ptr_{sub,cmp} builtins and so e.g. C_MAYBE_CONST_EXPR can leak into the gimplifier where it ICEs. Fixed thusly, bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk? 2025-04-02 Ja