diff options
author | Chris Packham <judge.packham@gmail.com> | 2023-04-27 17:18:36 +1200 |
---|---|---|
committer | Chris Packham <judge.packham@gmail.com> | 2023-04-30 20:28:57 +1200 |
commit | b646773ebbdb60b886c712d43d9af78a5ad5d5cf (patch) | |
tree | 75f8c7911e0df64b756818b717427e5394a5162f /packages/gcc/12.2.0/0008-gcc-Allow-g-to-work-differently-from-gcc.patch | |
parent | 6b5604e89eec5f886a03c879a007a7e26d747210 (diff) | |
download | crosstool-ng-b646773ebbdb60b886c712d43d9af78a5ad5d5cf.tar.gz crosstool-ng-b646773ebbdb60b886c712d43d9af78a5ad5d5cf.tar.bz2 crosstool-ng-b646773ebbdb60b886c712d43d9af78a5ad5d5cf.zip |
gcc/12.2.0: Regenerate patches
Run the patches through
./maintainer/manage-packages.sh -P -s gcc-12.2.0
to mop up the fact that we'd ended up with two 0005 patches.
Signed-off-by: Chris Packham <judge.packham@gmail.com>
Diffstat (limited to 'packages/gcc/12.2.0/0008-gcc-Allow-g-to-work-differently-from-gcc.patch')
-rw-r--r-- | packages/gcc/12.2.0/0008-gcc-Allow-g-to-work-differently-from-gcc.patch | 68 |
1 files changed, 0 insertions, 68 deletions
diff --git a/packages/gcc/12.2.0/0008-gcc-Allow-g-to-work-differently-from-gcc.patch b/packages/gcc/12.2.0/0008-gcc-Allow-g-to-work-differently-from-gcc.patch deleted file mode 100644 index d84e52f3..00000000 --- a/packages/gcc/12.2.0/0008-gcc-Allow-g-to-work-differently-from-gcc.patch +++ /dev/null @@ -1,68 +0,0 @@ -From e426a20988185695675a2c456e0c24dcea515baf Mon Sep 17 00:00:00 2001 -From: Keith Packard <keithp@keithp.com> -Date: Sat, 11 Feb 2023 23:07:08 -0800 -Subject: [PATCH 8/9] gcc: Allow g++ to work differently from gcc - -Compile gcc.cc with -DIN_GPP defined when building g++ so that the -code can respond appropriately for the default target language. This -allows the driver to customize the specs used, selecting different -linker scripts, adjusting the use of crtbegin.o/crtend.o etc. - -By default, this change has no effect; targets need to explicitly -check for IN_GPP to have alternate behavior. - -Signed-off-by: Keith Packard <keithp@keithp.com> ---- - gcc/cp/Make-lang.in | 7 ++++++- - gcc/gpp.cc | 21 +++++++++++++++++++++ - 2 files changed, 27 insertions(+), 1 deletion(-) - create mode 100644 gcc/gpp.cc - -diff --git a/gcc/cp/Make-lang.in b/gcc/cp/Make-lang.in -index 2de4e47c659..39c659b9537 100644 ---- a/gcc/cp/Make-lang.in -+++ b/gcc/cp/Make-lang.in -@@ -68,7 +68,12 @@ CFLAGS-cp/module.o += -DMODULE_VERSION='($(subst -,,$(MODULE_VERSION))U)' - endif - - # Create the compiler driver for g++. --GXX_OBJS = $(GCC_OBJS) cp/g++spec.o -+GXX_OBJS = $(GCC_OBJS:gcc.o=gpp.o) cp/g++spec.o -+ -+CFLAGS-gpp.o = $(CFLAGS-gcc.o) -+gpp.o: $(BASEVER) -+gpp.o: gcc.o -+ - xg++$(exeext): $(GXX_OBJS) $(EXTRA_GCC_OBJS) libcommon-target.a $(LIBDEPS) - +$(LINKER) $(ALL_LINKERFLAGS) $(LDFLAGS) -o $@ \ - $(GXX_OBJS) $(EXTRA_GCC_OBJS) libcommon-target.a \ -diff --git a/gcc/gpp.cc b/gcc/gpp.cc -new file mode 100644 -index 00000000000..3cd7b45e808 ---- /dev/null -+++ b/gcc/gpp.cc -@@ -0,0 +1,21 @@ -+/* Compiler driver program that can handle many languages. -+ Copyright (C) 1987-2022 Free Software Foundation, Inc. -+ -+This file is part of GCC. -+ -+GCC is free software; you can redistribute it and/or modify it under -+the terms of the GNU General Public License as published by the Free -+Software Foundation; either version 3, or (at your option) any later -+version. -+ -+GCC is distributed in the hope that it will be useful, but WITHOUT ANY -+WARRANTY; without even the implied warranty of MERCHANTABILITY or -+FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -+for more details. -+ -+You should have received a copy of the GNU General Public License -+along with GCC; see the file COPYING3. If not see -+<http://www.gnu.org/licenses/>. */ -+ -+#define IN_GPP -+#include "gcc.cc" --- -2.39.0 - |