public inbox for openembedded-core@lists.openembedded.org
 help / color / mirror / Atom feed
From: "Khem Raj" <raj.khem@gmail.com>
To: openembedded-core@lists.openembedded.org
Cc: Khem Raj <raj.khem@gmail.com>
Subject: [PATCH v5 11/11] gcc: Handle duplicate names for variables
Date: Sun,  8 Nov 2020 16:02:17 -0800	[thread overview]
Message-ID: <20201109000217.3008448-11-raj.khem@gmail.com> (raw)
In-Reply-To: <20201109000217.3008448-1-raj.khem@gmail.com>

PREFIXVAR is defined in cppdefaults.c as well which shows up as error
when LTO is enabled to build gcc, therefore rename the one instance to PREFIXVAR1

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 ...4-handle-sysroot-support-for-nativesdk-gcc.patch | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/meta/recipes-devtools/gcc/gcc/0024-handle-sysroot-support-for-nativesdk-gcc.patch b/meta/recipes-devtools/gcc/gcc/0024-handle-sysroot-support-for-nativesdk-gcc.patch
index 1a65ece7bf..dc3e6da65a 100644
--- a/meta/recipes-devtools/gcc/gcc/0024-handle-sysroot-support-for-nativesdk-gcc.patch
+++ b/meta/recipes-devtools/gcc/gcc/0024-handle-sysroot-support-for-nativesdk-gcc.patch
@@ -1,4 +1,4 @@
-From bb1f359e34649516e61305e9748534cce7e0ee70 Mon Sep 17 00:00:00 2001
+From 702daf2e9cb97337e0e594fcd435b1b61a917d14 Mon Sep 17 00:00:00 2001
 From: Khem Raj <raj.khem@gmail.com>
 Date: Mon, 7 Dec 2015 23:39:54 +0000
 Subject: [PATCH] handle sysroot support for nativesdk-gcc
@@ -321,7 +321,7 @@ index 9098ab044ab..bfad4ebe382 100644
  	      str = update_path (ostr, p->component);
  	      free (ostr);
 diff --git a/gcc/prefix.c b/gcc/prefix.c
-index 1a403e535bd..3257ed3cd3e 100644
+index 1a403e535bd..c26d07bde12 100644
 --- a/gcc/prefix.c
 +++ b/gcc/prefix.c
 @@ -72,7 +72,9 @@ License along with GCC; see the file COPYING3.  If not see
@@ -329,9 +329,9 @@ index 1a403e535bd..3257ed3cd3e 100644
  #include "common/common-target.h"
  
 -static const char *std_prefix = PREFIX;
-+static const char PREFIXVAR[4096] __attribute__ ((section (".gccrelocprefix"))) = PREFIX;
++char PREFIXVAR1[4096] __attribute__ ((section (".gccrelocprefix"))) = PREFIX;
 +
-+static const char *std_prefix = PREFIXVAR;
++static const char *std_prefix = PREFIXVAR1;
  
  static const char *get_key_value (char *);
  static char *translate_name (char *);
@@ -340,7 +340,10 @@ index 1a403e535bd..3257ed3cd3e 100644
  
        if (prefix == 0)
 -	prefix = PREFIX;
-+	prefix = PREFIXVAR;
++	prefix = PREFIXVAR1;
  
        /* We used to strip trailing DIR_SEPARATORs here, but that can
  	 sometimes yield a result with no separator when one was coded
+-- 
+2.29.2
+
-- 
2.29.2


  parent reply	other threads:[~2020-11-09  0:02 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-09  0:02 [PATCH v5 01/11] lto: Add global LTO distro policy file Khem Raj
2020-11-09  0:02 ` [PATCH v5 02/11] python3: Enable lto if its in DISTRO_FEATURES Khem Raj
2020-11-09  0:02 ` [PATCH v5 03/11] lto.inc: Add -ffat-lto-objects and -fuse-linker-plugin Khem Raj
2020-11-09  0:02 ` [PATCH v5 04/11] lto: Introduce LTOEXTRA variable Khem Raj
2020-11-09  0:02 ` [PATCH v5 05/11] libaio: Disable LTO Khem Raj
2020-11-09  0:02 ` [PATCH v5 06/11] weston: Fix linking with LTO Khem Raj
2020-11-09  0:02 ` [PATCH v5 07/11] lto.inc: Disable LTO for xserver-xorg Khem Raj
2020-11-09  0:02 ` [PATCH v5 08/11] gcc: Do no parameterize LTO configuration flags Khem Raj
2020-11-09  0:02 ` [PATCH v5 09/11] puzzles: Check for excessive constant arguments Khem Raj
2020-11-09  0:02 ` [PATCH v5 10/11] lto.inc: Disable LTO for perf Khem Raj
2020-11-09  0:02 ` Khem Raj [this message]
2020-11-09  8:30 ` [OE-core] [PATCH v5 01/11] lto: Add global LTO distro policy file Andreas Müller
2020-11-09 19:14   ` Khem Raj
2020-11-09 20:18     ` Andreas Müller

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=20201109000217.3008448-11-raj.khem@gmail.com \
    --to=raj.khem@gmail.com \
    --cc=openembedded-core@lists.openembedded.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