https://gcc.gnu.org/bugzilla/show_bug.cgi?id=21161
Paul Eggert <eggert at cs dot ucla.edu> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |eggert at cs dot ucla.edu --- Comment #26 from Paul Eggert <eggert at cs dot ucla.edu> --- Created attachment 55122 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55122&action=edit GCC bug 21161 as triggered by GNU diffutils I ran into a similar problem when compiling GNU diffutils with gcc (GCC) 13.1.1 20230511 (Red Hat 13.1.1-2) on x86.64. Here is a stripped-down illustrating of the diffutils problem. Compile the attached program with: gcc -O2 -W -S pr21161.i The output, which is a false positive, is: pr21161.i: In function ‘find_dir_file_pathname’: pr21161.i:22:15: warning: variable ‘match’ might be clobbered by ‘longjmp’ or ‘vfork’ [-Wclobbered] 22 | char const *match = file; | ^~~~~