[PATCH] D138932: [ELF] Ignore --no-(enum|wchar)-size-warning for ARM/AArch64

Brett Werling via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 29 11:06:34 PST 2022


bwerl created this revision.
Herald added subscribers: kristof.beyls, arichardson, emaste.
Herald added a reviewer: MaskRay.
Herald added a project: All.
bwerl requested review of this revision.
Herald added subscribers: llvm-commits, StephenFan.
Herald added a project: LLVM.

Adds --no-enum-size-warning and --no-wchar-size-warning to the list of
ignored args for lld. These are valid arguments to GNU ld for
ARM/AArch64, so for compatibility they are now accepted but just
ignored. If the functionality is ever desired, this can be revisited at
that time.

See https://sourceware.org/binutils/docs/ld/ARM.html for more on these
arguments for GNU ld.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D138932

Files:
  lld/ELF/Options.td
  lld/test/ELF/silent-ignore.test


Index: lld/test/ELF/silent-ignore.test
===================================================================
--- lld/test/ELF/silent-ignore.test
+++ lld/test/ELF/silent-ignore.test
@@ -5,9 +5,11 @@
 RUN:   --no-add-needed \
 RUN:   -no-copy-dt-needed-entries \
 RUN:   -no-ctors-in-init-array \
+RUN:   --no-enum-size-warning \
 RUN:   -no-keep-memory \
 RUN:   --no-relax \
 RUN:   -no-warn-mismatch \
+RUN:   --no-wchar-size-warning \
 RUN:   -rpath-link . \
 RUN:   -secure-plt \
 RUN:   -sort-common \
Index: lld/ELF/Options.td
===================================================================
--- lld/ELF/Options.td
+++ lld/ELF/Options.td
@@ -704,8 +704,10 @@
 def: FF<"no-add-needed">;
 def: F<"no-copy-dt-needed-entries">;
 def: F<"no-ctors-in-init-array">;
+def: F<"no-enum-size-warning">;
 def: F<"no-keep-memory">;
 def: F<"no-warn-mismatch">;
+def: F<"no-wchar-size-warning">;
 def: Separate<["--", "-"], "rpath-link">;
 def: J<"rpath-link=">;
 def: F<"secure-plt">;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D138932.478649.patch
Type: text/x-patch
Size: 978 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221129/4ffac2a2/attachment.bin>


More information about the llvm-commits mailing list