https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119953

--- Comment #4 from Gabriel Marcano <gabemarcano at yahoo dot com> ---
Created attachment 61570
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61570&action=edit
reduced_cow-fs_path.ii

I managed to use cvise to reduce the necessary code to reproduce the problem,
which I'm attaching here.

I'm leveraging Gentoo's crossdev utility for building the msp430 cross
compiler. I'm able to reproduce the issue by using the first stage GCC cross
compiler to build the reproducer like so (absolute paths as they are shown in
my system):
  /var/tmp/portage/cross-msp430-none-elf/gcc-15.1.0/work/build/./gcc/xgcc
-B/var/tmp/portage/cross-msp430-none-elf/gcc-15.1.0/work/build/./gcc -g -O2 -c
reduced_cow-fs_path.ii -o cow-fs_ops.o

-O2 is critical-- I'm not able to reproduce it with -O0, -O1, or even -O3.

I'm not sure how to turn this reproducer into a test case (or should it?).

Let me know if any additional information is useful. Otherwise I'll try using
my patch and see how it pans out.

Reply via email to