* [gentoo-commits] proj/elt-patches:master commit in: patches/werror/
@ 2022-12-10 2:50 Sam James
0 siblings, 0 replies; 3+ messages in thread
From: Sam James @ 2022-12-10 2:50 UTC (permalink / raw
To: gentoo-commits
commit: 2050663473323e28e566047f436a3b9878c90ce7
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Dec 10 02:50:11 2022 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Dec 10 02:50:11 2022 +0000
URL: https://gitweb.gentoo.org/proj/elt-patches.git/commit/?id=20506634
2.4.6, 2.4.7: add werror upstream link
Signed-off-by: Sam James <sam <AT> gentoo.org>
patches/werror/2.4.6 | 2 ++
patches/werror/2.4.7 | 2 ++
2 files changed, 4 insertions(+)
diff --git a/patches/werror/2.4.6 b/patches/werror/2.4.6
index d1e8a6d..15d1776 100644
--- a/patches/werror/2.4.6
+++ b/patches/werror/2.4.6
@@ -1,3 +1,5 @@
+https://lists.gnu.org/archive/html/libtool-patches/2022-12/msg00000.html
+
From d72817b1ee5d7b666bf30b0234e32423252d6ad8 Mon Sep 17 00:00:00 2001
From: Sam James <sam@gentoo.org>
Date: Sat, 10 Dec 2022 02:00:22 +0000
diff --git a/patches/werror/2.4.7 b/patches/werror/2.4.7
index 8b0a761..0cf9399 100644
--- a/patches/werror/2.4.7
+++ b/patches/werror/2.4.7
@@ -1,3 +1,5 @@
+https://lists.gnu.org/archive/html/libtool-patches/2022-12/msg00000.html
+
From d72817b1ee5d7b666bf30b0234e32423252d6ad8 Mon Sep 17 00:00:00 2001
From: Sam James <sam@gentoo.org>
Date: Sat, 10 Dec 2022 02:00:22 +0000
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [gentoo-commits] proj/elt-patches:master commit in: patches/werror/
@ 2024-01-16 1:42 Sam James
0 siblings, 0 replies; 3+ messages in thread
From: Sam James @ 2024-01-16 1:42 UTC (permalink / raw
To: gentoo-commits
commit: 4be8f4241cf7b9f7146e41f5d072c73726a59796
Author: Eli Schwartz <eschwartz93 <AT> gmail <DOT> com>
AuthorDate: Tue Jan 16 01:25:19 2024 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Jan 16 01:36:58 2024 +0000
URL: https://gitweb.gentoo.org/proj/elt-patches.git/commit/?id=4be8f424
werror patch: add a variant that works on debian-built dists
Debian applies their own patches to libtool, so tarballs generated on
debian systems need different patches.
Signed-off-by: Sam James <sam <AT> gentoo.org>
patches/werror/2.4.7-debian | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
diff --git a/patches/werror/2.4.7-debian b/patches/werror/2.4.7-debian
new file mode 100644
index 0000000..d585724
--- /dev/null
+++ b/patches/werror/2.4.7-debian
@@ -0,0 +1,34 @@
+https://lists.gnu.org/archive/html/libtool-patches/2022-12/msg00000.html
+
+From eb8952bf6df858b144f2dc8b573782e25b527c01 Mon Sep 17 00:00:00 2001
+From: Sam James <sam@gentoo.org>
+Date: Sat, 10 Dec 2022 02:00:22 +0000
+Subject: [PATCH] Allow -Werror and -Werror=* through flag filtering
+
+* build-aux/ltmain.in (func_mode_link): allow -Werror and -Werror=* through
+ flat filtering at link time.
+
+ This is needed for detecting likely-runtime problems with LTO using
+ e.g. -Werror=odr or -Werror=lto-type-mismatch.
+
+Bug: https://bugs.gentoo.org/884767
+Signed-off-by: Sam James <sam@gentoo.org>
+[rebased on top of Debian ltmain.sh]
+Signed-off-by: Eli Schwartz <eschwartz93@gmail.com>
+--- a/ltmain.sh
++++ b/ltmain.sh
+@@ -7564,10 +7564,11 @@ func_mode_link ()
+ # -static-* direct GCC to link specific libraries statically
+ # -fcilkplus Cilk Plus language extension features for C/C++
+ # -Wa,* Pass flags directly to the assembler
++ # -Werror, -Werror=* Report (specified) warnings as errors
+ -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
+ -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \
+ -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*| \
+- -specs=*|-fsanitize=*|-fuse-ld=*|-static-*|-fcilkplus|-Wa,*)
++ -specs=*|-fsanitize=*|-fuse-ld=*|-static-*|-fcilkplus|-Wa,*|-Werror|-Werror=*)
+ func_quote_arg pretty "$arg"
+ arg=$func_quote_arg_result
+ func_append compile_command " $arg"
+--
+2.43.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [gentoo-commits] proj/elt-patches:master commit in: patches/werror/
@ 2024-03-15 6:01 Sam James
0 siblings, 0 replies; 3+ messages in thread
From: Sam James @ 2024-03-15 6:01 UTC (permalink / raw
To: gentoo-commits
commit: d44f2d6855d8f61ef5084c0b50ef589331637af8
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Mar 15 05:59:31 2024 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Mar 15 06:01:12 2024 +0000
URL: https://gitweb.gentoo.org/proj/elt-patches.git/commit/?id=d44f2d68
patches: werror: add 1.3134-2.2.7a-gnu (hack)
The ancient fork of libtool in binutils/gdb/gcc doesn't know about most
of these flags (the fork mostly exists because of divergence in what --with-sysroot
means but there's some other unknown/undocumented differences too).
I'm kind of cheating here because this isn't split up per-type, which I should
probably go and do, but it feels silly to spend time on it given it's solely
for 3 packages...
Anyway, for this, we now get proper colour and -Werror and such with LTO.
Signed-off-by: Sam James <sam <AT> gentoo.org>
patches/werror/1.3134-2.2.7a-gnu | 57 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 57 insertions(+)
diff --git a/patches/werror/1.3134-2.2.7a-gnu b/patches/werror/1.3134-2.2.7a-gnu
new file mode 100644
index 0000000..6037873
--- /dev/null
+++ b/patches/werror/1.3134-2.2.7a-gnu
@@ -0,0 +1,57 @@
+Rollup of the flag fixes for the version of libtool in gcc/binutils/gdb.
+--- a/ltmain.sh
++++ b/ltmain.sh
+@@ -4968,19 +4968,41 @@ func_mode_link ()
+ arg="$func_quote_for_eval_result"
+ ;;
+
+- # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
+- # -r[0-9][0-9]* specifies the processor on the SGI compiler
+- # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
+- # +DA*, +DD* enable 64-bit mode on the HP compiler
+- # -q* pass through compiler args for the IBM compiler
+- # -m*, -t[45]*, -txscale* pass through architecture-specific
+- # compiler args for GCC
+- # -F/path gives path to uninstalled frameworks, gcc on darwin
+- # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
+- # @file GCC response files
+- # -tp=* Portland pgcc target processor selection
++ # Flags to be passed through unchanged, with rationale:
++ # -64, -mips[0-9] enable 64-bit mode for the SGI compiler
++ # -r[0-9][0-9]* specify processor for the SGI compiler
++ # -xarch=*, -xtarget=* enable 64-bit mode for the Sun compiler
++ # +DA*, +DD* enable 64-bit mode for the HP compiler
++ # -q* compiler args for the IBM compiler
++ # -m*, -t[45]*, -txscale* architecture-specific flags for GCC
++ # -F/path path to uninstalled frameworks, gcc on darwin
++ # -p, -pg, --coverage, -fprofile-* profiling flags for GCC
++ # -fstack-protector* stack protector flags for GCC
++ # @file GCC response files
++ # -tp=* Portland pgcc target processor selection
++ # -O*, -g*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization
++ # -specs=* GCC specs files
++ # -stdlib=* select c++ std lib with clang
++ # -fdiagnostics-color* simply affects output
++ # -frecord-gcc-switches used to verify flags were respected
++ # -fsanitize=* Clang/GCC memory and address sanitizer
++ # -fno-sanitize* Clang/GCC memory and address sanitizer
++ # -shared-libsan Link with shared sanitizer runtimes (Clang)
++ # -static-libsan Link with static sanitizer runtimes (Clang)
++ # -fuse-ld=* Linker select flags for GCC
++ # -rtlib=* select c runtime lib with clang
++ # --unwindlib=* select unwinder library with clang
++ # -f{file|debug|macro|profile}-prefix-map=* needed for lto linking
++ # -Wa,* Pass flags directly to the assembler
++ # -Werror, -Werror=* Report (specified) warnings as errors
+ -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
+- -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*)
++ -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*| \
++ -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*| \
++ -stdlib=*|-rtlib=*|--unwindlib=*| \
++ -specs=*|-fsanitize=*|-fno-sanitize*|-shared-libsan|-static-libsan| \
++ -ffile-prefix-map=*|-fdebug-prefix-map=*|-fmacro-prefix-map=*|-fprofile-prefix-map=*| \
++ -fdiagnostics-color*|-frecord-gcc-switches| \
++ -fuse-ld=*|-Wa,*|-Werror|-Werror=*)
+ func_quote_for_eval "$arg"
+ arg="$func_quote_for_eval_result"
+ func_append compile_command " $arg"
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-03-15 6:01 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-10 2:50 [gentoo-commits] proj/elt-patches:master commit in: patches/werror/ Sam James
-- strict thread matches above, loose matches on Subject: below --
2024-01-16 1:42 Sam James
2024-03-15 6:01 Sam James
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox