[llvm-bugs] [Bug 52008] New: 13.0.0-rc3: LTO exposes 550 new warnings

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Sep 29 02:14:44 PDT 2021


https://bugs.llvm.org/show_bug.cgi?id=52008

            Bug ID: 52008
           Summary: 13.0.0-rc3: LTO exposes 550 new warnings
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: kloczko.tomasz at gmail.com
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org,
                    neeilans at live.com, richard-llvm at metafoo.co.uk

Created attachment 25304
  --> https://bugs.llvm.org/attachment.cgi?id=25304&action=edit
clang warnings with LTO

gcc 11.2.1

Looks like no one have been trying to compile clang using gcc and optimise it
using LTO. Just done that and LTO reported 550 [-Wmaybe-uninitialized] warnings
Summary stats of all warnings:

[tkloczko at barrel SPECS]$ cat clang.out  | grep -- -W | sed 's/.*\[//; s/\]//' |
sort | uniq -c | sort -nr
    550 -Wmaybe-uninitialized
     13 -Wuninitialized
      3 -Wfree-nonheap-object
      1 -Walloc-size-larger-than=

Full log of all warnings is in attachment.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210929/b9cc6631/attachment.html>


More information about the llvm-bugs mailing list