[Bug tree-optimization/106020] Spurious warnings about stringop overflows only with LTO

matt at godbolt dot org gcc-bugzilla@gcc.gnu.org
Sat Jun 18 14:02:08 GMT 2022


--- Comment #6 from Matt Godbolt <matt at godbolt dot org> ---
I'm afraid to say I've been unable to make a repro case in the short time I had
to try - will get back to this but about to go on vacation (!). That's to say
dumping the files from CE and using:

CXXFLAGS=-O3 -flto -fno-fat-lto-objects -fPIC
app: main.o date.o
        $(CXX) $(CXXFLAGS) -o app date.o main.o
        $(CXX) $(CXXFLAGS) -o main.o -c main.cpp
        $(CXX) $(CXXFLAGS) -o date.o -c date.cpp
        rm -f app main.o date.o

did _not_ cause the problem, so there's something else going on. Again, will
try and get to this later, but apologies for the "hit and run" bug report :(

More information about the Gcc-bugs mailing list