Announcement

Collapse
No announcement yet.

Ubuntu 21.04 To Turn On LTO Optimizations For Its Packages

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #21
    Originally posted by Weasel View Post
    You completely misunderstood the point. The code doesn't segfault at runtime. The compiler segfaults during linking (since the compiler is involved during linking in LTO).

    It's a compiler bug. Yes, compilers crash too. Who would've thought?
    Sorry, quoted wrong comment. I was replying to the one above yours.

    Comment


    • #22
      Originally posted by dirlewanger88

      You have no idea what you're talking about.
      I suppose not. I've only been writing C code since 1992.

      Comment


      • #23
        Originally posted by dirlewanger88

        Why would it work for one but not the other...?
        Support was added only for Clang, as I am not a programmer, you'd have to ask someone else for the details. From my understanding GCC and Clang LTO are different enough from each other that some more work is needed for GCC. Its not that Clang and GCC are interchangeable for everything. The Kernel just began very recently to compile with Clang at all.

        Comment

        Working...
        X