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

            Bug ID: 91935
           Summary: Unneeded .debug_info entries in .symtab when using LTO
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dimitar.yordanov at sap dot com
  Target Milestone: ---

Hi,

I see following behavior manifesting itself first after the fix for PR
lto/83452. 

cat > foo.c << EOF
const char *a = "a";
EOF

g++ -flto -gdwarf-4 -g1 -o foo.c.o -c foo.c
g++ -flto -shared -o libfoo.so foo.c.o
objdump -t libfoo.so | grep debug_info


Best wishes
Dimitar

Reply via email to