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

            Bug ID: 42966
           Summary: Regression(r365860) New fomit-frame-pointer /
                    momit-leaf-frame-pointer handling leads to unfriendly
                    diagnostics
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C
          Assignee: unassignedclangb...@nondot.org
          Reporter: nicolaswe...@gmx.de
                CC: blitzrak...@gmail.com, dgre...@apple.com,
                    erik.pilking...@gmail.com, llvm-bugs@lists.llvm.org,
                    richard-l...@metafoo.co.uk

Say you want frame pointers but no leaf frame pointers (because you want to
unwind, but including leaf frame pointers makes llvm run out of registers -- cf
PR15798).

So you pass -fno-omit-frame-pointer -momit-leaf-frame-pointer to all compiles.


Some specific translation unit wants to omit frame pointers for some reason
though, so it tacks on fomit-frame-pointer. Previously that worked fine.

Now it results in

clang: warning: argument unused during compilation: '-momit-leaf-frame-pointer'
[-Wunused-command-line-argument]

That's true, but it's also not helpful. There's no good way in practice to fix
this warning if it arises in a situation like this.

We should probably manually claim the momit flags if the fomit flags are seen.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to