[all-commits] [llvm/llvm-project] f05b08: [clang] Adjust -mlarge-data-threshold handling (#7...

Arthur Eubanks via All-commits all-commits at lists.llvm.org
Fri Jan 12 12:23:54 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f05b0812145897ba34bc2d7fda436a54f9fbca22
      https://github.com/llvm/llvm-project/commit/f05b0812145897ba34bc2d7fda436a54f9fbca22
  Author: Arthur Eubanks <aeubanks at google.com>
  Date:   2024-01-12 (Fri, 12 Jan 2024)

  Changed paths:
    M clang/include/clang/Basic/DiagnosticDriverKinds.td
    M clang/include/clang/Driver/Options.td
    M clang/lib/CodeGen/CodeGenModule.cpp
    M clang/lib/Driver/ToolChains/Clang.cpp
    M clang/test/CodeGen/large-data-threshold.c
    M clang/test/Driver/large-data-threshold.c

  Log Message:
  -----------
  [clang] Adjust -mlarge-data-threshold handling (#77958)

Make it apply to x86-64 medium and large code models since that's what
the backend does.

Limit logic to exclude x86-32.

Default to 0, let the driver set it to 65536 for the medium code model
if one is not passed. Set it to 0 for the large code model by default to
match gcc and since some users make assumptions about the large code
model that any small data will break.




More information about the All-commits mailing list