public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sergei Trofimovich" <slyfox@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/gcc-patches:master commit in: 10.1.0/gentoo/
Date: Tue, 19 May 2020 22:02:53 +0000 (UTC)	[thread overview]
Message-ID: <1589925736.0364868c119730d972ce101909856db7385513b6.slyfox@gentoo> (raw)

commit:     0364868c119730d972ce101909856db7385513b6
Author:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Tue May 19 22:02:16 2020 +0000
Commit:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Tue May 19 22:02:16 2020 +0000
URL:        https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=0364868c

10.1.0: Trick libintl not to use '_INTL_REDIRECT_ASM' mode as it's
incompatible with LTO builds.

glibc does not normally use libintl implementations and uses
it's own primitives. But musl ond others do fall back to libintl.

Reported-by: Andrew Savchenko
Bug: https://bugs.gentoo.org/723370
Bug: https://gcc.gnu.org/PR95194
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>

 .../gentoo/30_all_lto-intl-workaround-PR95194.patch  | 20 ++++++++++++++++++++
 10.1.0/gentoo/README.history                         |  1 +
 2 files changed, 21 insertions(+)

diff --git a/10.1.0/gentoo/30_all_lto-intl-workaround-PR95194.patch b/10.1.0/gentoo/30_all_lto-intl-workaround-PR95194.patch
new file mode 100644
index 0000000..9613216
--- /dev/null
+++ b/10.1.0/gentoo/30_all_lto-intl-workaround-PR95194.patch
@@ -0,0 +1,20 @@
+Trick libintl not to use '_INTL_REDIRECT_ASM' mode as it's
+incompatible with LTO builds.
+
+glibc does not normally use libintl implementations and uses
+it's own primitives. But musl ond others do fall back to libintl.
+
+Reported-by: Andrew Savchenko
+Bug: https://bugs.gentoo.org/723370
+Bug: https://gcc.gnu.org/PR95194
+--- a/intl/libgnuintl.h
++++ b/intl/libgnuintl.h
+@@ -93,7 +93,7 @@ extern "C" {
+    If he doesn't, we choose the method.  A third possible method is
+    _INTL_REDIRECT_ASM, supported only by GCC.  */
+ #if !(defined _INTL_REDIRECT_INLINE || defined _INTL_REDIRECT_MACROS)
+-# if __GNUC__ >= 2 && !defined __APPLE_CC__ && (defined __STDC__ || defined __cplusplus)
++# if __GNUC__ >= 2 && !defined __APPLE_CC__ && (defined __STDC__ || defined __cplusplus) && USE_ASM_ALIASES_THAT_BREAK_LTO
+ #  define _INTL_REDIRECT_ASM
+ # else
+ #  ifdef __cplusplus

diff --git a/10.1.0/gentoo/README.history b/10.1.0/gentoo/README.history
index 0ed3a9d..d7a8c51 100644
--- a/10.1.0/gentoo/README.history
+++ b/10.1.0/gentoo/README.history
@@ -1,5 +1,6 @@
 2		TODO
 	+ 29_all_fix-float-hang-PR95118.patch
+	+ 30_all_lto-intl-workaround-PR95194.patch
 
 1		05 May 2020
 	+ 01_all_default-fortify-source.patch


             reply	other threads:[~2020-05-19 22:02 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-19 22:02 Sergei Trofimovich [this message]
  -- strict thread matches above, loose matches on Subject: below --
2020-07-23  8:50 [gentoo-commits] proj/gcc-patches:master commit in: 10.1.0/gentoo/ Sergei Trofimovich
2020-07-19 21:35 Sergei Trofimovich
2020-07-14  7:17 Sergei Trofimovich
2020-07-04  7:56 Sergei Trofimovich
2020-07-04  7:56 Sergei Trofimovich
2020-07-03 22:12 Sergei Trofimovich
2020-06-24 20:15 Sergei Trofimovich
2020-06-23  6:34 Sergei Trofimovich
2020-06-14 11:07 Sergei Trofimovich
2020-06-11 23:00 Sergei Trofimovich
2020-06-11 22:49 Sergei Trofimovich
2020-06-05 21:02 Sergei Trofimovich
2020-05-14 17:58 Sergei Trofimovich
2020-05-07 20:51 Sergei Trofimovich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1589925736.0364868c119730d972ce101909856db7385513b6.slyfox@gentoo \
    --to=slyfox@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox