Merge pull request #1674 from stilor/master

Updates to make `ct-ng build-all` pass
This commit is contained in:
Alexey Neyman 2022-02-14 00:11:42 -08:00 committed by GitHub
commit 681aaef1f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
456 changed files with 2865 additions and 6921 deletions

2
TODO
View File

@ -75,7 +75,7 @@ A (slightly) ordered set of tasks for crosstool-NG. Written in a cryptic languag
[ ] add passthrough to configure, for host/target
[ ] Read/spellcheck configs & scripts
[ ] 'ct-ng olddefconfig'
[ ] Install a "trap" C++ compiler as ${CT_TARGET}-g++ during pass-1/pass-2 to trap attempts to compile target code with g++ (currently glibc detects host g++ and warns that it uses g++ w/o target triplet)
[ ] Install a "trap" C++ compiler as ${CT_TARGET}-g++ during core compiler build to trap attempts to compile target code with g++ (currently glibc detects host g++ and warns that it uses g++ w/o target triplet)
[ ] Somehow it needs to be functional during the configure step - export env var while running in CT_DoExecLog with CFG level, and forward it to host compiler?
[ ] elf2flt not compatible with multiple linkers enabled in binutils (ld.bfd + ld.gold) - fix upstream?
[ ] Companion libs

View File

@ -7,9 +7,12 @@
## select ARCH_DEFAULT_LE
## select ARCH_SUPPORTS_FLAT_FORMAT
## select ARCH_SUPPORTS_WITH_CPU
## select LINUX_REQUIRE_older_than_5_12
## select LINUX_REQUIRE_3_7_or_later
## depends on EXPERIMENTAL
##
## help The TI C6x (TMS320C6000) architecture
## help https://www.ti.com/processors/digital-signal-processors
## help For linux, kernel must be 3.7 or later (or custom)
## help For linux, kernel must be 3.7 or later (or custom) but not newer
## help than 5.11.x (support for C6x was removed in 5.12).

View File

@ -2,10 +2,7 @@
menu "C compiler"
config CC_CORE_PASS_1_NEEDED
bool
config CC_CORE_PASS_2_NEEDED
config CC_CORE_NEEDED
bool
config CC_SUPPORT_CXX

View File

@ -7,19 +7,14 @@
## select CC_SUPPORT_OBJC
## select CC_SUPPORT_OBJCXX
## select CC_SUPPORT_GOLANG
# ISL 0.15 is the oldest release present in CTNG.
# GCC7 requires ISL 0.15+
## select ISL_REQUIRE_0_15_or_later if ISL_NEEDED && GCC_7_or_later
# GCC6 requires ISL 0.14+ (it says 0.14-0.16, but accepts newer ISL as well)
## select ISL_REQUIRE_0_14_or_later if ISL_NEEDED && GCC_6_or_later
# GCC5 requires ISL 0.12+ (again, it says 0.12-0.16, but also accepts newer ISL up to 0.18;
# fails to compile with 0.19+)
## select ISL_REQUIRE_0_12_or_later if ISL_NEEDED && GCC_5_or_later
## select ISL_REQUIRE_0_18_or_older if ISL_NEEDED && GCC_5_or_later && !GCC_6_or_later
# GCC4.9 requires ISL 0.10..0.15
# GCC4.8 requires ISL 0.10..0.14
## select ISL_REQUIRE_0_10_or_later if ISL_NEEDED && GCC_4_8_or_later
## select ISL_REQUIRE_0_15_or_older if ISL_NEEDED && GCC_4_9_or_later && !GCC_5_or_later
## select ISL_REQUIRE_0_14_or_older if ISL_NEEDED && GCC_4_8_or_later && !GCC_4_9_or_later
## help gcc is the full-blown GNU compiler. This is what most people will choose.
## help
@ -60,7 +55,7 @@ config CC_GCC_ENABLE_CXX_FLAGS
config CC_GCC_CORE_EXTRA_CONFIG_ARRAY
string "Core gcc extra config"
default ""
depends on CC_CORE_PASS_1_NEEDED || CC_CORE_PASS_2_NEEDED
depends on CC_CORE_NEEDED
help
Extra flags to pass onto ./configure when configuring the core gcc.
@ -265,7 +260,7 @@ config CC_GCC_LIBSANITIZER
bool
prompt "Compile libsanitizer"
depends on THREADS_NATIVE
depends on !LIBC_UCLIBC && !LIBC_MUSL # Currently lacks required headers (like netrom.h)
depends on !LIBC_UCLIBC_NG && !LIBC_MUSL # Currently lacks required headers (like netrom.h)
help
libsanitizer is a library which provides run-time sanitising of either
or both of:

View File

@ -1 +1,11 @@
# gettext options
config GETTEXT_INCOMPATIBLE_WITH_UCLIBC_NG
def_bool y
depends on GETTEXT_0_21_or_later
if GETTEXT_INCOMPATIBLE_WITH_UCLIBC_NG
comment "This version of gettext is not compatible with uClibc-NG. Select"
comment "a different version if uClibc-NG is used on the target or (in a"
comment "Canadian cross build) on the host."
endif

View File

@ -1,5 +1 @@
# GMP options
config GMP_HAS_MPBSD
bool
default y if !GMP_5_1_0_or_later

View File

@ -1,13 +1 @@
# ISL options
# CLooG 0.18.4 requires ISL 0.12 or newer
# CLooG 0.18.1 requires ISL 0.12 or older
## select CLOOG_REQUIRE_0_18_1_or_older if CLOOG_NEEDED && !ISL_0_12_or_later
## select CLOOG_REQUIRE_0_18_4_or_later if CLOOG_NEEDED && !ISL_0_14_or_older
config ISL_NEEDS_WITH_GMP
bool
default y if !ISL_0_12_or_later
config ISL_HAS_WITH_PIPLIB
bool
default y if !ISL_0_14_or_later

View File

@ -1,6 +1,3 @@
# MPC options
# MPC 1.1.0 and later requires MPFR 3.0.0 or later and GMP 5.0.0 or later.
# MPC 1.0.x and earlier break with MPFR 4.0.0.
## select MPFR_REQUIRE_3_0_0_or_later if MPFR_NEEDED && MPC_1_1_0_or_later
## select GMP_REQUIRE_5_0_0_or_later if GMP_NEEDED && MPC_1_1_0_or_later
## select MPFR_REQUIRE_older_than_4_0_0 if MPFR_NEEDED && !MPC_1_1_0_or_later

View File

@ -1,6 +1,7 @@
# newlib-nano options
## depends on BARE_METAL
## select LIBC_PROVIDES_CXA_ATEXIT
## help Newlib-nano is a C library intended for use on embedded systems. It is a
## help conglomeration of several library parts, all under free software
@ -37,21 +38,6 @@ config NEWLIB_NANO_INSTALL_IN_TARGET
Additionally the newlib-nano version of newlib.h will get copied to
include/newlib-nano/newlib.h.
# maybe older versions of newlib will support it too, but this
# needs to be checked
config NEWLIB_NANO_CXA_ATEXIT
def_bool y
depends on NEWLIB_NANO_2_0_or_later
select LIBC_PROVIDES_CXA_ATEXIT
config NEWLIB_NANO_HAS_NANO_MALLOC
def_bool y
depends on NEWLIB_NANO_2_1_or_later
config NEWLIB_NANO_HAS_NANO_FORMATTED_IO
def_bool y
depends on NEWLIB_NANO_2_2_or_later
config LIBC_NEWLIB_NANO_TARGET_CFLAGS
string
prompt "Target CFLAGS for newlib"
@ -225,7 +211,6 @@ config LIBC_NEWLIB_NANO_NANO_MALLOC
bool
prompt "Enable Nano Malloc"
default y
depends on NEWLIB_NANO_HAS_NANO_MALLOC
help
NEWLIB has two implementations of malloc family's functions, one in
`mallocr.c' and the other one in `nano-mallocr.c'. This options
@ -237,7 +222,6 @@ config LIBC_NEWLIB_NANO_NANO_FORMATTED_IO
bool
prompt "Enable Nano Formatted I/O"
default y
depends on NEWLIB_NANO_HAS_NANO_FORMATTED_IO
help
This builds NEWLIB with a special implementation of formatted I/O
functions, designed to lower the size of application on small systems

View File

@ -62,7 +62,7 @@ config LIBC_PICOLIBC_GLOBAL_ATEXIT
prompt "Enable atexit data structure as global variable"
help
Enable atexit data structure as global variable, instead
of being thread-local.
of being thread-local.
config LIBC_PICOLIBC_LITE_EXIT
bool

View File

@ -21,6 +21,13 @@ config GDB_DEP_CXX11
depends on !CONFIGURE_has_cxx11
select GDB_REQUIRE_older_than_8_0
# GDB10 and newer require std::future<> which was not implemented on some
# architectures until GCC9; see GCC PR 64735.
config GDB_DEP_NO_STD_FUTURE
def_bool y
depends on !GCC_9_or_later
select GDB_REQUIRE_older_than_10
# Does GDB need ps_get_thread_area with const qualifier?
config GDB_CONST_GET_THREAD_AREA
bool
@ -30,4 +37,4 @@ config GDB_CONST_GET_THREAD_AREA
# tarball (instead of a subdirectory of gdb)
config GDB_GDBSERVER_TOPLEVEL
def_bool y
depends on GDB_10_2_or_later
depends on GDB_10_or_later

View File

@ -6,11 +6,11 @@ config GDB_NATIVE
depends on ! BARE_METAL
depends on ! LIBC_BIONIC
depends on CC_LANG_CXX || !GDB_8_0_or_later
select LIBC_UCLIBC_WCHAR if LIBC_UCLIBC && GDB_8_0_or_later
select LIBC_UCLIBC_IPV6 if LIBC_UCLIBC && GDB_8_3_or_later
select LIBC_UCLIBC_WCHAR if LIBC_UCLIBC_NG && GDB_8_0_or_later
select LIBC_UCLIBC_IPV6 if LIBC_UCLIBC_NG && GDB_8_3_or_later
select EXPAT_TARGET
select NCURSES_TARGET
select GMP_TARGET if GDB_11_1_or_later
select GMP_TARGET if GDB_11_or_later
help
Build and install a native gdb for the target, to run on the target.
@ -19,8 +19,8 @@ config GDB_GDBSERVER
prompt "gdbserver"
default y
depends on ! BARE_METAL
select LIBC_UCLIBC_WCHAR if LIBC_UCLIBC && GDB_8_0_or_later
select LIBC_UCLIBC_IPV6 if LIBC_UCLIBC && GDB_8_3_or_later
select LIBC_UCLIBC_WCHAR if LIBC_UCLIBC_NG && GDB_8_0_or_later
select LIBC_UCLIBC_IPV6 if LIBC_UCLIBC_NG && GDB_8_3_or_later
help
Build and install a gdbserver for the target, to run on the target.

View File

@ -7,10 +7,3 @@
## help It intercepts and records the dynamic library calls which are called by
## help the executed process and the signals which are received by that process.
## help It can also intercept and print the system calls executed by the program.
# Ltrace 0.5.3 had a unique hand-crafted configure script that has to be
# run differently from any preceding or following releases. This serves
# as a reminder to remove that code once 0.5.3 support is dropped.
config LTRACE_0_5_3_CONFIGURE
bool
default y if LTRACE_V_0_5_3

View File

@ -1,11 +1,20 @@
# bionic options
## package android-ndk
## depends on ! WINDOWS && ! BARE_METAL
## depends on ARCH_ARM || ARCH_MIPS || ARCH_X86
## depends on EXPERIMENTAL
#
# Patches to support bionic were not ported to GCC11 (or to GCC5 and below).
## select GCC_REQUIRE_6_or_later
##
## select GCC_REQUIRE_older_than_11
#
# GDB10 imported a new drop from gnulib, which fails to build against bionic.
# Patch to support bionic was ported to 7.12 and newer.
## select GDB_REQUIRE_7_12_or_later
## select GDB_REQUIRE_older_than_10
## select LIBC_SUPPORT_THREADS_POSIX
##
## help Bionic is the Android C library. It is prebuilt, extracted from the Android NDK.

View File

@ -3,7 +3,7 @@
## depends on ! WINDOWS && ! BARE_METAL && ARCH_USE_MMU
## select LIBC_SUPPORT_THREADS_NATIVE
## select CC_CORE_PASS_1_NEEDED
## select CC_CORE_NEEDED
# TBD: select GETTEXT for build only, not for host
## select GETTEXT_NEEDED
## select BINUTILS_FORCE_LD_BFD_DEFAULT
@ -66,7 +66,6 @@ config GLIBC_DEP_MAKE_4_0
def_bool y
depends on GLIBC_2_28_or_later && !CONFIGURE_has_make_4_0_or_newer
select COMP_TOOLS_MAKE
select MAKE_REQUIRE_4_0_or_later
select MAKE_GNUMAKE_SYMLINK # Override old host make in .build/tools/bin
# Glibc 2.31 removed support for pre-v8 SPARC in 32-bit mode (64-bit mode always

View File

@ -4,15 +4,11 @@
##
## select LIBC_SUPPORT_THREADS_NATIVE
## select LIBC_SUPPORT_THREADS_POSIX
## select CC_CORE_PASS_2_NEEDED
## select CC_CORE_NEEDED
## select BINUTILS_FORCE_LD_BFD_DEFAULT
##
## help The de-facto standard for Mingw distributions.
config MINGW_W64_REQUIRES_W64_VENDOR
bool
default y if MINGW_W64_V4_or_later
config THREADS
default "win32" if THREADS_NATIVE
default "posix" if THREADS_POSIX

View File

@ -10,7 +10,7 @@
## select LIBC_SUPPORT_THREADS_NONE
## select COMP_TOOLS_AUTOCONF if !CONFIGURE_has_autoconf_2_65_or_newer || !CONFIGURE_has_autoreconf_2_64_or_newer
## select COMP_TOOLS_AUTOMAKE if !CONFIGURE_has_automake_1_15_or_newer
## select CC_CORE_PASS_1_NEEDED
## select CC_CORE_NEEDED
## select LIBELF_NEEDED
##
## help Secure execution runtime for Moxie architecture.

View File

@ -3,7 +3,7 @@
## depends on ! WINDOWS && ! BARE_METAL
## depends on EXPERIMENTAL
## select LIBC_SUPPORT_THREADS_NATIVE
## select CC_CORE_PASS_1_NEEDED
## select CC_CORE_NEEDED
## help Musl is a new standard library to power a new generation of Linux-based
## help devices. musl is lightweight, fast, simple, free, and strives to be

View File

@ -1,8 +1,9 @@
# newlib options
## depends on BARE_METAL
## select LIBC_PROVIDES_CXA_ATEXIT
## select LIBC_SUPPORT_THREADS_NONE
## select CC_CORE_PASS_1_NEEDED
## select CC_CORE_NEEDED
## help Newlib is a C library intended for use on embedded systems. It is a
## help conglomeration of several library parts, all under free software
@ -11,21 +12,6 @@
## help array of processors, and will usually work on any architecture with
## help the addition of a few low-level routines.
# maybe older versions of newlib will support it too, but this
# needs to be checked
config NEWLIB_CXA_ATEXIT
def_bool y
depends on NEWLIB_2_0_or_later
select LIBC_PROVIDES_CXA_ATEXIT
config NEWLIB_HAS_NANO_MALLOC
def_bool y
depends on NEWLIB_2_1_or_later
config NEWLIB_HAS_NANO_FORMATTED_IO
def_bool y
depends on NEWLIB_2_2_or_later
config LIBC_NEWLIB_TARGET_CFLAGS
string
prompt "Target CFLAGS for newlib"
@ -197,7 +183,6 @@ config LIBC_NEWLIB_LTO
config LIBC_NEWLIB_NANO_MALLOC
bool
prompt "Enable Nano Malloc"
depends on NEWLIB_HAS_NANO_MALLOC
help
NEWLIB has two implementations of malloc family's functions, one in
`mallocr.c' and the other one in `nano-mallocr.c'. This options
@ -208,7 +193,6 @@ config LIBC_NEWLIB_NANO_MALLOC
config LIBC_NEWLIB_NANO_FORMATTED_IO
bool
prompt "Enable Nano Formatted I/O"
depends on NEWLIB_HAS_NANO_FORMATTED_IO
help
This builds NEWLIB with a special implementation of formatted I/O
functions, designed to lower the size of application on small systems

View File

@ -4,8 +4,8 @@
##
## select LIBC_SUPPORT_THREADS_LT
## select LIBC_SUPPORT_THREADS_NONE
## select LIBC_SUPPORT_THREADS_NATIVE if UCLIBC_0_9_33_2_or_later
## select CC_CORE_PASS_1_NEEDED
## select LIBC_SUPPORT_THREADS_NATIVE
## select CC_CORE_NEEDED
##
## help The de-facto standard for embeded linux systems.
## help
@ -21,27 +21,6 @@ comment "'softfp' ABI and uClibc is not entirely tested in crosstool-NG"
comment "You may experience issues, although it should work just fine"
endif # ARCH_FLOAT_SOFTFP
config LIBC_UCLIBC_HAS_SUNRPC
bool
default y if !UCLIBC_1_0_23_or_later
config LIBC_UCLIBC_HAS_LIBICONV
bool
default y if UCLIBC_1_0_21_or_later
config LIBC_UCLIBC_PARALLEL
def_bool y
depends on UCLIBC_0_9_33_2_or_later
config LIBC_UCLIBC_NG
def_bool y
depends on UCLIBC_1_0_0_or_later
# uClibc-ng 1.0.15 did away with 2 implementations of linuxthreads
config UCLIBC_MERGED_LINUXTHREADS
def_bool y
depends on UCLIBC_1_0_15_or_later
choice
bool
prompt "uClibc verbosity:"
@ -74,10 +53,8 @@ endchoice
config LIBC_UCLIBC_VERBOSITY
string
default "" if LIBC_UCLIBC_VERBOSITY_0
default "V=2" if LIBC_UCLIBC_VERBOSITY_1 && LIBC_UCLIBC_NG
default "V=1" if LIBC_UCLIBC_VERBOSITY_1
default "V=1" if LIBC_UCLIBC_VERBOSITY_2 && LIBC_UCLIBC_NG
default "V=2" if LIBC_UCLIBC_VERBOSITY_2
default "V=2" if LIBC_UCLIBC_VERBOSITY_1
default "V=1" if LIBC_UCLIBC_VERBOSITY_2
choice
bool
@ -118,44 +95,6 @@ config LIBC_UCLIBC_CONFIG_FILE
If the file is not provided, we fall back to a default config file.
if THREADS_LT && !UCLIBC_MERGED_LINUXTHREADS
choice
bool
prompt "Linuxthread implementation: "
default LIBC_UCLIBC_LNXTHRD_OLD
config LIBC_UCLIBC_LNXTHRD_OLD
bool
prompt "old/stable"
help
From the uClibc config option help:
There are two versions of linuxthreads. The older (stable) version
has been in uClibc for quite a long time but hasn't seen too many
updates other than bugfixes.
config LIBC_UCLIBC_LNXTHRD_NEW
bool
prompt "new"
help
From the uClibc config option help:
The new version has not been tested much, and lacks ports for arches
which glibc does not support (like frv, etc...), but is based on
the latest code from glibc, so it may be the only choice for the
newer ports (like alpha/amd64/64bit arches and hppa).
endchoice
endif # THREADS_LT
config LIBC_UCLIBC_LNXTHRD
string
default "" if THREADS_NONE
default "" if THREADS_NATIVE
default "" if UCLIBC_MERGED_LINUXTHREADS
default "old" if LIBC_UCLIBC_LNXTHRD_OLD
default "new" if LIBC_UCLIBC_LNXTHRD_NEW
config LIBC_UCLIBC_LOCALES
bool
select LIBC_UCLIBC_WCHAR
@ -168,7 +107,6 @@ config LIBC_UCLIBC_LOCALES
config LIBC_UCLIBC_LIBICONV
bool "Enable iconv"
depends on LIBC_UCLIBC_HAS_LIBICONV
help
Say y if you want to enable <iconv.h> and the corresponding interfaces.
@ -201,13 +139,6 @@ config LIBC_UCLIBC_FENV
If you need fenv.h on other architectures, say 'y' here, but you may
encounter some issues.
config LIBC_UCLIBC_RPC
bool
prompt "Add support for RPC"
depends on LIBC_UCLIBC_HAS_SUNRPC
help
Enable support for remote procedure calls (RPC) in uClibc.
config LIBC_UCLIBC_HAS_SSP
bool
prompt "Support stack smashing protection (SSP)"

View File

@ -41,7 +41,7 @@ export CT_VCHECK=
# need to pass it to the upgrade script - which may receive an input that
# was not preprocessed by kconfig, and hence have no string for "up-to-date"
# version.
export CT_CONFIG_VERSION_CURRENT=3
export CT_CONFIG_VERSION_CURRENT=4
# Download agents used by scripts.mk
CT_WGET := @wget@
@ -275,10 +275,9 @@ CT_STEPS := \
companion_tools_for_host \
companion_libs_for_host \
binutils_for_host \
cc_core_pass_1 \
libc_headers \
kernel_headers \
libc_start_files \
cc_core_pass_2 \
cc_core \
libc_main \
cc_for_build \
cc_for_host \

View File

@ -1,8 +1,8 @@
md5sum autoconf-2.71.tar.xz 12cfa1687ffa2606337efe1a64416106
sha1sum autoconf-2.71.tar.xz 1b5b1dbed849c6653be47c56d28d26fcf3f7238a
sha256sum autoconf-2.71.tar.xz f14c83cfebcc9427f2c3cea7258bd90df972d92eb26752da4ddad81c87a0faa4
sha512sum autoconf-2.71.tar.xz 73d32b4adcbe24e3bafa9f43f59ed3b6efbd3de0f194e5ec90375f35da1199c583f5d3e89139b7edbad35171403709270e339ffa56a2ecb9b3123e9285021ff0
md5sum autoconf-2.71.tar.gz f64e38d671fdec06077a41eb4d5ee476
sha1sum autoconf-2.71.tar.gz abe5a4bcf06ebd1bbbf81007159df346f5c1db8b
sha256sum autoconf-2.71.tar.gz 431075ad0bf529ef13cb41e9042c542381103e80015686222b8a9d4abef42a1c
sha512sum autoconf-2.71.tar.gz 2bc5331f9807da8754b2ee623a30299cc0d103d6f98068a4c22263aab67ff148b7ad3a1646bd274e604bc08a8ef0ac2601e6422e641ad0cfab2222d60a58c5a8
md5 autoconf-2.71.tar.xz 12cfa1687ffa2606337efe1a64416106
sha1 autoconf-2.71.tar.xz 1b5b1dbed849c6653be47c56d28d26fcf3f7238a
sha256 autoconf-2.71.tar.xz f14c83cfebcc9427f2c3cea7258bd90df972d92eb26752da4ddad81c87a0faa4
sha512 autoconf-2.71.tar.xz 73d32b4adcbe24e3bafa9f43f59ed3b6efbd3de0f194e5ec90375f35da1199c583f5d3e89139b7edbad35171403709270e339ffa56a2ecb9b3123e9285021ff0
md5 autoconf-2.71.tar.gz f64e38d671fdec06077a41eb4d5ee476
sha1 autoconf-2.71.tar.gz abe5a4bcf06ebd1bbbf81007159df346f5c1db8b
sha256 autoconf-2.71.tar.gz 431075ad0bf529ef13cb41e9042c542381103e80015686222b8a9d4abef42a1c
sha512 autoconf-2.71.tar.gz 2bc5331f9807da8754b2ee623a30299cc0d103d6f98068a4c22263aab67ff148b7ad3a1646bd274e604bc08a8ef0ac2601e6422e641ad0cfab2222d60a58c5a8

View File

@ -0,0 +1,26 @@
From 23272f9927dc95c0cf6f7c5aabcc0551eca572c5 Mon Sep 17 00:00:00 2001
From: Martin Liska <mliska@suse.cz>
Date: Fri, 7 Jun 2019 07:36:52 +0200
Subject: [PATCH] Fix a missing include of <string>
gold/ChangeLog:
2019-06-07 Martin Liska <mliska@suse.cz>
* errors.h: Include string.
---
gold/errors.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/gold/errors.h b/gold/errors.h
index 1e61c8dbb5..805b25fc9c 100644
--- a/gold/errors.h
+++ b/gold/errors.h
@@ -24,6 +24,7 @@
#define GOLD_ERRORS_H
#include <cstdarg>
+#include <string>
#include "gold-threads.h"

View File

@ -9,11 +9,9 @@ gold/ChangeLog:
* errors.h: Include string.
---
gold/errors.h | 1 +
gold/errors.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/gold/errors.h b/gold/errors.h
index 1e61c8dbb5..805b25fc9c 100644
--- a/gold/errors.h
+++ b/gold/errors.h
@@ -24,6 +24,7 @@

View File

@ -9,11 +9,9 @@ gold/ChangeLog:
* errors.h: Include string.
---
gold/errors.h | 1 +
gold/errors.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/gold/errors.h b/gold/errors.h
index 1e61c8dbb5..805b25fc9c 100644
--- a/gold/errors.h
+++ b/gold/errors.h
@@ -24,6 +24,7 @@

View File

@ -9,11 +9,9 @@ gold/ChangeLog:
* errors.h: Include string.
---
gold/errors.h | 1 +
gold/errors.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/gold/errors.h b/gold/errors.h
index 1e61c8dbb5..805b25fc9c 100644
--- a/gold/errors.h
+++ b/gold/errors.h
@@ -24,6 +24,7 @@

View File

@ -9,11 +9,9 @@ gold/ChangeLog:
* errors.h: Include string.
---
gold/errors.h | 1 +
gold/errors.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/gold/errors.h b/gold/errors.h
index 1e61c8dbb5..805b25fc9c 100644
--- a/gold/errors.h
+++ b/gold/errors.h
@@ -24,6 +24,7 @@

View File

@ -9,11 +9,9 @@ gold/ChangeLog:
* errors.h: Include string.
---
gold/errors.h | 1 +
gold/errors.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/gold/errors.h b/gold/errors.h
index 1e61c8dbb5..805b25fc9c 100644
--- a/gold/errors.h
+++ b/gold/errors.h
@@ -24,6 +24,7 @@

View File

@ -9,11 +9,9 @@ gold/ChangeLog:
* errors.h: Include string.
---
gold/errors.h | 1 +
gold/errors.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/gold/errors.h b/gold/errors.h
index 1e61c8dbb5..805b25fc9c 100644
--- a/gold/errors.h
+++ b/gold/errors.h
@@ -24,6 +24,7 @@

View File

@ -9,11 +9,9 @@ gold/ChangeLog:
* errors.h: Include string.
---
gold/errors.h | 1 +
gold/errors.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/gold/errors.h b/gold/errors.h
index 1e61c8dbb5..805b25fc9c 100644
--- a/gold/errors.h
+++ b/gold/errors.h
@@ -24,6 +24,7 @@

View File

@ -12,7 +12,7 @@ inept targets than that one, really. Go look, I promise).
--- a/configure
+++ b/configure
@@ -3865,7 +3865,7 @@ case "${target}" in
@@ -3865,7 +3865,7 @@
nvptx*-*-*)
noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
;;
@ -23,7 +23,7 @@ inept targets than that one, really. Go look, I promise).
;;
--- a/configure.ac
+++ b/configure.ac
@@ -1158,7 +1158,7 @@ case "${target}" in
@@ -1158,7 +1158,7 @@
nvptx*-*-*)
noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
;;

View File

@ -5,7 +5,7 @@
--- a/ld/Makefile.am
+++ b/ld/Makefile.am
@@ -57,7 +57,7 @@ endif
@@ -57,7 +57,7 @@
# We put the scripts in the directory $(scriptdir)/ldscripts.
# We can't put the scripts in $(datadir) because the SEARCH_DIR
# directives need to be different for native and cross linkers.
@ -16,7 +16,7 @@
EMULATION_OFILES = @EMULATION_OFILES@
--- a/ld/Makefile.in
+++ b/ld/Makefile.in
@@ -563,7 +563,7 @@ AM_CFLAGS = $(WARN_CFLAGS) $(ELF_CLFAGS)
@@ -563,7 +563,7 @@
# We put the scripts in the directory $(scriptdir)/ldscripts.
# We can't put the scripts in $(datadir) because the SEARCH_DIR
# directives need to be different for native and cross linkers.

View File

@ -4,7 +4,7 @@
--- a/ld/emultempl/elf32.em
+++ b/ld/emultempl/elf32.em
@@ -1470,6 +1470,8 @@ fragment <<EOF
@@ -1470,6 +1470,8 @@
&& command_line.rpath == NULL)
{
path = (const char *) getenv ("LD_RUN_PATH");
@ -13,7 +13,7 @@
if (path
&& gld${EMULATION_NAME}_search_needed (path, &n, force))
break;
@@ -1745,6 +1747,8 @@ gld${EMULATION_NAME}_before_allocation (
@@ -1745,6 +1747,8 @@
rpath = command_line.rpath;
if (rpath == NULL)
rpath = (const char *) getenv ("LD_RUN_PATH");

View File

@ -4,7 +4,7 @@
--- a/gold/gold-threads.cc
+++ b/gold/gold-threads.cc
@@ -101,7 +101,7 @@ Lock_impl_threads::Lock_impl_threads()
@@ -101,7 +101,7 @@
int err = pthread_mutexattr_init(&attr);
if (err != 0)
gold_fatal(_("pthead_mutexattr_init failed: %s"), strerror(err));

View File

@ -9,7 +9,7 @@
--- a/binutils/configure
+++ b/binutils/configure
@@ -12449,6 +12449,7 @@ fi
@@ -12449,6 +12449,7 @@
done
test -n "$YACC" || YACC="yacc"
@ -17,7 +17,7 @@
for ac_prog in flex lex
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
@@ -12612,6 +12613,8 @@ esac
@@ -12612,6 +12613,8 @@
if test "$LEX" = :; then
LEX=${am_missing_run}flex
fi
@ -28,7 +28,7 @@
# If we haven't got the data from the intl directory,
--- a/binutils/configure.ac
+++ b/binutils/configure.ac
@@ -86,7 +86,10 @@ if test -z "$host" ; then
@@ -86,7 +86,10 @@
fi
AC_PROG_YACC
@ -41,7 +41,7 @@
ZW_GNU_GETTEXT_SISTER_DIR
--- a/gas/configure
+++ b/gas/configure
@@ -13469,6 +13469,7 @@ fi
@@ -13469,6 +13469,7 @@
done
test -n "$YACC" || YACC="yacc"
@ -49,7 +49,7 @@
for ac_prog in flex lex
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
@@ -13632,6 +13633,8 @@ esac
@@ -13632,6 +13633,8 @@
if test "$LEX" = :; then
LEX=${am_missing_run}flex
fi
@ -60,7 +60,7 @@
# If we haven't got the data from the intl directory,
--- a/gas/configure.ac
+++ b/gas/configure.ac
@@ -893,7 +893,10 @@ AC_DEFINE_UNQUOTED(TARGET_VENDOR, "${tar
@@ -893,7 +893,10 @@
AC_DEFINE_UNQUOTED(TARGET_OS, "${target_os}", [Target OS.])
AC_PROG_YACC
@ -73,7 +73,7 @@
ZW_GNU_GETTEXT_SISTER_DIR
--- a/ld/configure
+++ b/ld/configure
@@ -16537,6 +16537,7 @@ fi
@@ -16537,6 +16537,7 @@
done
test -n "$YACC" || YACC="yacc"
@ -81,7 +81,7 @@
for ac_prog in flex lex
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
@@ -16700,6 +16701,8 @@ esac
@@ -16700,6 +16701,8 @@
if test "$LEX" = :; then
LEX=${am_missing_run}flex
fi
@ -92,7 +92,7 @@
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
--- a/ld/configure.ac
+++ b/ld/configure.ac
@@ -243,7 +243,10 @@ AM_PO_SUBDIRS
@@ -243,7 +243,10 @@
AC_EXEEXT
AC_PROG_YACC

View File

@ -15,7 +15,7 @@ Change-Id: I69204a72f853f5263dffedc448379d75ed4eca2e
--- a/bfd/peXXigen.c
+++ b/bfd/peXXigen.c
@@ -3623,6 +3623,28 @@ u16_mbtouc (wchar_t * puc, const unsigne
@@ -3623,6 +3623,28 @@
}
#endif /* HAVE_WCHAR_H and not Cygwin/Mingw */
@ -46,7 +46,7 @@ Change-Id: I69204a72f853f5263dffedc448379d75ed4eca2e
rsrc_cmp (bfd_boolean is_name, rsrc_entry * a, rsrc_entry * b)
--- a/gold/gold-threads.cc
+++ b/gold/gold-threads.cc
@@ -284,9 +284,18 @@ Condvar::~Condvar()
@@ -284,9 +284,18 @@
class Once_initialize
{
public:

View File

@ -11,7 +11,7 @@ http://sourceware.org/bugzilla/show_bug.cgi?id=10340
--- a/ld/ldfile.c
+++ b/ld/ldfile.c
@@ -338,18 +338,25 @@ ldfile_open_file_search (const char *arc
@@ -338,18 +338,25 @@
directory first. */
if (!entry->flags.maybe_archive)
{

View File

@ -85,7 +85,7 @@ Signed-off-by: Scott Garman <scott.a.garman@intel.com>
--- a/ld/configure
+++ b/ld/configure
@@ -823,6 +823,7 @@ with_lib_path
@@ -823,6 +823,7 @@
enable_targets
enable_64_bit_bfd
with_sysroot
@ -93,7 +93,7 @@ Signed-off-by: Scott Garman <scott.a.garman@intel.com>
enable_gold
enable_got
enable_compressed_debug_sections
@@ -1487,6 +1488,8 @@ Optional Features:
@@ -1487,6 +1488,8 @@
--disable-largefile omit support for large files
--enable-targets alternative target configurations
--enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
@ -102,7 +102,7 @@ Signed-off-by: Scott Garman <scott.a.garman@intel.com>
--enable-gold[=ARG] build gold [ARG={default,yes,no}]
--enable-got=<type> GOT handling scheme (target, single, negative,
multigot)
@@ -15804,7 +15807,18 @@ else
@@ -15804,7 +15807,18 @@
fi
@ -123,7 +123,7 @@ Signed-off-by: Scott Garman <scott.a.garman@intel.com>
if test "${enable_got+set}" = set; then :
--- a/ld/configure.ac
+++ b/ld/configure.ac
@@ -94,6 +94,16 @@ AC_SUBST(use_sysroot)
@@ -94,6 +94,16 @@
AC_SUBST(TARGET_SYSTEM_ROOT)
AC_SUBST(TARGET_SYSTEM_ROOT_DEFINE)
@ -142,7 +142,7 @@ Signed-off-by: Scott Garman <scott.a.garman@intel.com>
dnl "installed_linker" is the installed BFD linker name.
--- a/ld/ld.h
+++ b/ld/ld.h
@@ -175,6 +175,14 @@ typedef struct
@@ -175,6 +175,14 @@
/* If set, display the target memory usage (per memory region). */
bfd_boolean print_memory_usage;
@ -159,7 +159,7 @@ Signed-off-by: Scott Garman <scott.a.garman@intel.com>
in the linker script. */
--- a/ld/ld.texi
+++ b/ld/ld.texi
@@ -2557,6 +2557,18 @@ string identifying the original linked f
@@ -2557,6 +2557,18 @@
Passing @code{none} for @var{style} disables the setting from any
@code{--build-id} options earlier on the command line.
@ -180,7 +180,7 @@ Signed-off-by: Scott Garman <scott.a.garman@intel.com>
@c man end
--- a/ld/ldfile.c
+++ b/ld/ldfile.c
@@ -116,6 +116,23 @@ ldfile_add_library_path (const char *nam
@@ -116,6 +116,23 @@
new_dirs->name = concat (ld_sysroot, name + strlen ("$SYSROOT"), (const char *) NULL);
else
new_dirs->name = xstrdup (name);
@ -206,7 +206,7 @@ Signed-off-by: Scott Garman <scott.a.garman@intel.com>
/* Try to open a BFD for a lang_input_statement. */
--- a/ld/ldlex.h
+++ b/ld/ldlex.h
@@ -150,6 +150,8 @@ enum option_values
@@ -150,6 +150,8 @@
OPTION_FORCE_GROUP_ALLOCATION,
OPTION_PRINT_MAP_DISCARDED,
OPTION_NO_PRINT_MAP_DISCARDED,
@ -217,7 +217,7 @@ Signed-off-by: Scott Garman <scott.a.garman@intel.com>
/* The initial parser states. */
--- a/ld/ldmain.c
+++ b/ld/ldmain.c
@@ -270,6 +270,8 @@ main (int argc, char **argv)
@@ -270,6 +270,8 @@
command_line.warn_mismatch = TRUE;
command_line.warn_search_mismatch = TRUE;
command_line.check_section_addresses = -1;
@ -228,7 +228,7 @@ Signed-off-by: Scott Garman <scott.a.garman@intel.com>
COLLECT_NO_DEMANGLE. The gcc collect2 program will demangle the
--- a/ld/lexsup.c
+++ b/ld/lexsup.c
@@ -549,6 +549,14 @@ static const struct ld_option ld_options
@@ -549,6 +549,14 @@
{ {"no-print-map-discarded", no_argument, NULL, OPTION_NO_PRINT_MAP_DISCARDED},
'\0', NULL, N_("Do not show discarded sections in map file output"),
TWO_DASHES },
@ -243,7 +243,7 @@ Signed-off-by: Scott Garman <scott.a.garman@intel.com>
};
#define OPTION_COUNT ARRAY_SIZE (ld_options)
@@ -561,6 +569,7 @@ parse_args (unsigned argc, char **argv)
@@ -561,6 +569,7 @@
int ingroup = 0;
char *default_dirlist = NULL;
char *shortopts;
@ -251,7 +251,7 @@ Signed-off-by: Scott Garman <scott.a.garman@intel.com>
struct option *longopts;
struct option *really_longopts;
int last_optind;
@@ -1549,6 +1558,14 @@ parse_args (unsigned argc, char **argv)
@@ -1549,6 +1558,14 @@
}
break;
@ -266,7 +266,7 @@ Signed-off-by: Scott Garman <scott.a.garman@intel.com>
case OPTION_PUSH_STATE:
input_flags.pushed = xmemdup (&input_flags,
sizeof (input_flags),
@@ -1600,6 +1617,10 @@ parse_args (unsigned argc, char **argv)
@@ -1600,6 +1617,10 @@
command_line.soname = NULL;
}

View File

@ -12,7 +12,7 @@ inept targets than that one, really. Go look, I promise).
--- a/configure
+++ b/configure
@@ -3937,7 +3937,7 @@ case "${target}" in
@@ -3937,7 +3937,7 @@
nvptx*-*-*)
noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
;;
@ -23,7 +23,7 @@ inept targets than that one, really. Go look, I promise).
;;
--- a/configure.ac
+++ b/configure.ac
@@ -1178,7 +1178,7 @@ case "${target}" in
@@ -1178,7 +1178,7 @@
nvptx*-*-*)
noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
;;

View File

@ -5,7 +5,7 @@
--- a/ld/Makefile.am
+++ b/ld/Makefile.am
@@ -50,7 +50,7 @@ AM_CFLAGS = $(WARN_CFLAGS) $(ELF_CLFAGS)
@@ -50,7 +50,7 @@
# We put the scripts in the directory $(scriptdir)/ldscripts.
# We can't put the scripts in $(datadir) because the SEARCH_DIR
# directives need to be different for native and cross linkers.
@ -16,7 +16,7 @@
EMULATION_OFILES = @EMULATION_OFILES@
--- a/ld/Makefile.in
+++ b/ld/Makefile.in
@@ -555,7 +555,7 @@ AM_CFLAGS = $(WARN_CFLAGS) $(ELF_CLFAGS)
@@ -555,7 +555,7 @@
# We put the scripts in the directory $(scriptdir)/ldscripts.
# We can't put the scripts in $(datadir) because the SEARCH_DIR
# directives need to be different for native and cross linkers.

View File

@ -4,7 +4,7 @@
--- a/ld/ldelf.c
+++ b/ld/ldelf.c
@@ -1247,6 +1247,8 @@ ldelf_after_open (int use_libpath, int n
@@ -1247,6 +1247,8 @@
&& command_line.rpath == NULL)
{
path = (const char *) getenv ("LD_RUN_PATH");
@ -13,7 +13,7 @@
if (path
&& ldelf_search_needed (path, &n, force,
is_linux, elfsize))
@@ -1605,6 +1607,8 @@ ldelf_before_allocation (char *audit, ch
@@ -1605,6 +1607,8 @@
rpath = command_line.rpath;
if (rpath == NULL)
rpath = (const char *) getenv ("LD_RUN_PATH");

View File

@ -4,7 +4,7 @@
--- a/gold/gold-threads.cc
+++ b/gold/gold-threads.cc
@@ -101,7 +101,7 @@ Lock_impl_threads::Lock_impl_threads()
@@ -101,7 +101,7 @@
int err = pthread_mutexattr_init(&attr);
if (err != 0)
gold_fatal(_("pthead_mutexattr_init failed: %s"), strerror(err));

View File

@ -9,7 +9,7 @@
--- a/binutils/configure
+++ b/binutils/configure
@@ -12570,6 +12570,7 @@ fi
@@ -12570,6 +12570,7 @@
done
test -n "$YACC" || YACC="yacc"
@ -17,7 +17,7 @@
for ac_prog in flex lex
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
@@ -12733,6 +12734,8 @@ esac
@@ -12733,6 +12734,8 @@
if test "$LEX" = :; then
LEX=${am_missing_run}flex
fi
@ -28,7 +28,7 @@
# If we haven't got the data from the intl directory,
--- a/binutils/configure.ac
+++ b/binutils/configure.ac
@@ -95,7 +95,10 @@ if test -z "$host" ; then
@@ -95,7 +95,10 @@
fi
AC_PROG_YACC
@ -41,7 +41,7 @@
ZW_GNU_GETTEXT_SISTER_DIR
--- a/gas/configure
+++ b/gas/configure
@@ -13519,6 +13519,7 @@ fi
@@ -13519,6 +13519,7 @@
done
test -n "$YACC" || YACC="yacc"
@ -49,7 +49,7 @@
for ac_prog in flex lex
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
@@ -13682,6 +13683,8 @@ esac
@@ -13682,6 +13683,8 @@
if test "$LEX" = :; then
LEX=${am_missing_run}flex
fi
@ -60,7 +60,7 @@
# If we haven't got the data from the intl directory,
--- a/gas/configure.ac
+++ b/gas/configure.ac
@@ -924,7 +924,10 @@ AC_DEFINE_UNQUOTED(TARGET_VENDOR, "${tar
@@ -924,7 +924,10 @@
AC_DEFINE_UNQUOTED(TARGET_OS, "${target_os}", [Target OS.])
AC_PROG_YACC
@ -73,7 +73,7 @@
ZW_GNU_GETTEXT_SISTER_DIR
--- a/ld/configure
+++ b/ld/configure
@@ -16584,6 +16584,7 @@ fi
@@ -16584,6 +16584,7 @@
done
test -n "$YACC" || YACC="yacc"
@ -81,7 +81,7 @@
for ac_prog in flex lex
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
@@ -16747,6 +16748,8 @@ esac
@@ -16747,6 +16748,8 @@
if test "$LEX" = :; then
LEX=${am_missing_run}flex
fi
@ -92,7 +92,7 @@
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
--- a/ld/configure.ac
+++ b/ld/configure.ac
@@ -258,7 +258,10 @@ AM_PO_SUBDIRS
@@ -258,7 +258,10 @@
AC_EXEEXT
AC_PROG_YACC

View File

@ -15,7 +15,7 @@ Change-Id: I69204a72f853f5263dffedc448379d75ed4eca2e
--- a/bfd/peXXigen.c
+++ b/bfd/peXXigen.c
@@ -3696,6 +3696,28 @@ u16_mbtouc (wchar_t * puc, const unsigne
@@ -3696,6 +3696,28 @@
}
#endif /* HAVE_WCHAR_H and not Cygwin/Mingw */
@ -46,7 +46,7 @@ Change-Id: I69204a72f853f5263dffedc448379d75ed4eca2e
rsrc_cmp (bfd_boolean is_name, rsrc_entry * a, rsrc_entry * b)
--- a/gold/gold-threads.cc
+++ b/gold/gold-threads.cc
@@ -284,9 +284,18 @@ Condvar::~Condvar()
@@ -284,9 +284,18 @@
class Once_initialize
{
public:

View File

@ -11,7 +11,7 @@ http://sourceware.org/bugzilla/show_bug.cgi?id=10340
--- a/ld/ldfile.c
+++ b/ld/ldfile.c
@@ -340,18 +340,25 @@ ldfile_open_file_search (const char *arc
@@ -340,18 +340,25 @@
directory first. */
if (!entry->flags.maybe_archive)
{

View File

@ -85,7 +85,7 @@ Signed-off-by: Scott Garman <scott.a.garman@intel.com>
--- a/ld/configure
+++ b/ld/configure
@@ -826,6 +826,7 @@ with_lib_path
@@ -826,6 +826,7 @@
enable_targets
enable_64_bit_bfd
with_sysroot
@ -93,7 +93,7 @@ Signed-off-by: Scott Garman <scott.a.garman@intel.com>
enable_gold
enable_got
enable_compressed_debug_sections
@@ -1493,6 +1494,8 @@ Optional Features:
@@ -1493,6 +1494,8 @@
--disable-largefile omit support for large files
--enable-targets alternative target configurations
--enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
@ -102,7 +102,7 @@ Signed-off-by: Scott Garman <scott.a.garman@intel.com>
--enable-gold[=ARG] build gold [ARG={default,yes,no}]
--enable-got=<type> GOT handling scheme (target, single, negative,
multigot)
@@ -15814,7 +15817,18 @@ else
@@ -15814,7 +15817,18 @@
fi
@ -123,7 +123,7 @@ Signed-off-by: Scott Garman <scott.a.garman@intel.com>
if test "${enable_got+set}" = set; then :
--- a/ld/configure.ac
+++ b/ld/configure.ac
@@ -94,6 +94,16 @@ AC_SUBST(use_sysroot)
@@ -94,6 +94,16 @@
AC_SUBST(TARGET_SYSTEM_ROOT)
AC_SUBST(TARGET_SYSTEM_ROOT_DEFINE)
@ -142,7 +142,7 @@ Signed-off-by: Scott Garman <scott.a.garman@intel.com>
dnl "installed_linker" is the installed BFD linker name.
--- a/ld/ld.h
+++ b/ld/ld.h
@@ -161,6 +161,14 @@ typedef struct
@@ -161,6 +161,14 @@
/* If set, display the target memory usage (per memory region). */
bfd_boolean print_memory_usage;
@ -159,7 +159,7 @@ Signed-off-by: Scott Garman <scott.a.garman@intel.com>
in the linker script. */
--- a/ld/ld.texi
+++ b/ld/ld.texi
@@ -2655,6 +2655,18 @@ string identifying the original linked f
@@ -2655,6 +2655,18 @@
Passing @code{none} for @var{style} disables the setting from any
@code{--build-id} options earlier on the command line.
@ -180,7 +180,7 @@ Signed-off-by: Scott Garman <scott.a.garman@intel.com>
@c man end
--- a/ld/ldfile.c
+++ b/ld/ldfile.c
@@ -117,6 +117,23 @@ ldfile_add_library_path (const char *nam
@@ -117,6 +117,23 @@
new_dirs->name = concat (ld_sysroot, name + strlen ("$SYSROOT"), (const char *) NULL);
else
new_dirs->name = xstrdup (name);
@ -206,7 +206,7 @@ Signed-off-by: Scott Garman <scott.a.garman@intel.com>
/* Try to open a BFD for a lang_input_statement. */
--- a/ld/ldlex.h
+++ b/ld/ldlex.h
@@ -155,6 +155,8 @@ enum option_values
@@ -155,6 +155,8 @@
OPTION_NON_CONTIGUOUS_REGIONS,
OPTION_NON_CONTIGUOUS_REGIONS_WARNINGS,
OPTION_DEPENDENCY_FILE,
@ -217,7 +217,7 @@ Signed-off-by: Scott Garman <scott.a.garman@intel.com>
/* The initial parser states. */
--- a/ld/ldmain.c
+++ b/ld/ldmain.c
@@ -321,6 +321,8 @@ main (int argc, char **argv)
@@ -321,6 +321,8 @@
command_line.warn_mismatch = TRUE;
command_line.warn_search_mismatch = TRUE;
command_line.check_section_addresses = -1;
@ -228,7 +228,7 @@ Signed-off-by: Scott Garman <scott.a.garman@intel.com>
COLLECT_NO_DEMANGLE. The gcc collect2 program will demangle the
--- a/ld/lexsup.c
+++ b/ld/lexsup.c
@@ -572,6 +572,14 @@ static const struct ld_option ld_options
@@ -572,6 +572,14 @@
{ {"no-print-map-discarded", no_argument, NULL, OPTION_NO_PRINT_MAP_DISCARDED},
'\0', NULL, N_("Do not show discarded sections in map file output"),
TWO_DASHES },
@ -243,7 +243,7 @@ Signed-off-by: Scott Garman <scott.a.garman@intel.com>
};
#define OPTION_COUNT ARRAY_SIZE (ld_options)
@@ -584,6 +592,7 @@ parse_args (unsigned argc, char **argv)
@@ -584,6 +592,7 @@
int ingroup = 0;
char *default_dirlist = NULL;
char *shortopts;
@ -251,7 +251,7 @@ Signed-off-by: Scott Garman <scott.a.garman@intel.com>
struct option *longopts;
struct option *really_longopts;
int last_optind;
@@ -1591,6 +1600,14 @@ parse_args (unsigned argc, char **argv)
@@ -1591,6 +1600,14 @@
}
break;
@ -266,7 +266,7 @@ Signed-off-by: Scott Garman <scott.a.garman@intel.com>
case OPTION_PUSH_STATE:
input_flags.pushed = xmemdup (&input_flags,
sizeof (input_flags),
@@ -1681,6 +1698,10 @@ parse_args (unsigned argc, char **argv)
@@ -1681,6 +1698,10 @@
command_line.soname = NULL;
}

View File

@ -8,11 +8,13 @@ Subject: [PATCH] Import patch from mainline to fix decoding DWARF information
* dwarf2.c (scan_unit_for_symbols): Add member entries to the
variable table.
---
diff --git a/bfd/dwarf2.c b/bfd/dwarf2.c
index b8f0008a10d..977bf43a6a1 100644
---
bfd/dwarf2.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
--- a/bfd/dwarf2.c
+++ b/bfd/dwarf2.c
@@ -3404,7 +3404,8 @@ scan_unit_for_symbols (struct comp_unit *unit)
@@ -3404,7 +3404,8 @@
else
{
func = NULL;
@ -22,7 +24,7 @@ index b8f0008a10d..977bf43a6a1 100644
{
size_t amt = sizeof (struct varinfo);
var = (struct varinfo *) bfd_zalloc (abfd, amt);
@@ -3516,7 +3517,7 @@ scan_unit_for_symbols (struct comp_unit *unit)
@@ -3516,7 +3517,7 @@
spec_var = lookup_var_by_offset (attr.u.val,
unit->variable_table);
if (spec_var == NULL)
@ -31,6 +33,3 @@ index b8f0008a10d..977bf43a6a1 100644
_bfd_error_handler (_("DWARF error: could not find "
"variable specification "
"at offset %lx"),
--
2.25.4

View File

@ -36,11 +36,16 @@ gas/ChangeLog:
* testsuite/gas/arm/mve-vldr-vstr-bad.l: Likewise.
* testsuite/gas/arm/mve-vldr-vstr-bad.s: Likewise.
---
diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c
index a9aaffa3bdd..64475d66729 100644
---
gas/config/tc-arm.c | 10
gas/testsuite/gas/arm/mve-vldr-vstr-bad.d | 5
gas/testsuite/gas/arm/mve-vldr-vstr-bad.l | 811 ++++++++++++++++++++++++++++++
gas/testsuite/gas/arm/mve-vldr-vstr-bad.s | 30 +
4 files changed, 855 insertions(+), 1 deletion(-)
--- a/gas/config/tc-arm.c
+++ b/gas/config/tc-arm.c
@@ -5936,7 +5936,15 @@ parse_address_main (char **str, int i, int group_relocations,
@@ -5936,7 +5936,15 @@
if (skip_past_char (&p, '[') == FAIL)
{
@ -57,9 +62,6 @@ index a9aaffa3bdd..64475d66729 100644
{
/* Bare address - translate to PC-relative offset. */
inst.relocs[0].pc_rel = 1;
diff --git a/gas/testsuite/gas/arm/mve-vldr-vstr-bad.d b/gas/testsuite/gas/arm/mve-vldr-vstr-bad.d
new file mode 100644
index 00000000000..8989688f0f3
--- /dev/null
+++ b/gas/testsuite/gas/arm/mve-vldr-vstr-bad.d
@@ -0,0 +1,5 @@
@ -68,9 +70,6 @@ index 00000000000..8989688f0f3
+#error_output: mve-vldr-vstr-bad.l
+
+.*: +file format .*arm.*
diff --git a/gas/testsuite/gas/arm/mve-vldr-vstr-bad.l b/gas/testsuite/gas/arm/mve-vldr-vstr-bad.l
new file mode 100644
index 00000000000..2df3a37ac02
--- /dev/null
+++ b/gas/testsuite/gas/arm/mve-vldr-vstr-bad.l
@@ -0,0 +1,811 @@
@ -885,9 +884,6 @@ index 00000000000..2df3a37ac02
+[^:]*:30: Error: syntax error -- `vldrw.s32 q7,r14'
+[^:]*:30: Error: syntax error -- `vldrw.u32 q7,r14'
+[^:]*:30: Error: syntax error -- `vstrw.32 q7,r14'
diff --git a/gas/testsuite/gas/arm/mve-vldr-vstr-bad.s b/gas/testsuite/gas/arm/mve-vldr-vstr-bad.s
new file mode 100644
index 00000000000..c72c1296d2f
--- /dev/null
+++ b/gas/testsuite/gas/arm/mve-vldr-vstr-bad.s
@@ -0,0 +1,30 @@
@ -921,6 +917,3 @@ index 00000000000..c72c1296d2f
+vstrw.32 \op2, \op3
+.endr
+.endr
--
2.25.4

View File

@ -1,3 +1,7 @@
md5 binutils-2.35.1.tar.xz 7126f370ffbd46c08fcc5ce7aee2805d
sha1 binutils-2.35.1.tar.xz 45f7a96a2580a422f44b78317f0abf13935fecb6
sha256 binutils-2.35.1.tar.xz 3ced91db9bf01182b7e420eab68039f2083aed0a214c0424e257eae3ddee8607
sha512 binutils-2.35.1.tar.xz 94ff72708403413b70b247f3af4099ebaa882b6659249869f1ed9941a0f1912e313f08357d470f9fd2359e7f5e5b0eb86285e5eaf883fa8187789d6b1bd304eb
md5 binutils-2.35.1.tar.bz2 9203e5ca6243c8501f679dd6407df820
sha1 binutils-2.35.1.tar.bz2 df4eb943bf65df4bbbd0a001efcc98113423c5dd
sha256 binutils-2.35.1.tar.bz2 320e7a1d0f46fcd9f413f1046e216cbe23bb2bce6deb6c6a63304425e48b1942
@ -6,7 +10,3 @@ md5 binutils-2.35.1.tar.gz bca600eea3b8fc33ad3265c9c1eee8d4
sha1 binutils-2.35.1.tar.gz 4f217d0e8f59a49817855260a3edf8202d307514
sha256 binutils-2.35.1.tar.gz a8dfaae8cbbbc260fc1737a326adca97b5d4f3c95a82f0af1f7455ed1da5e77b
sha512 binutils-2.35.1.tar.gz ef5d84b8d9568615aed00ac661267c5eccfcb805a3643f94a2f8220d0c4dd1c6001c8d95a3507599b8cd0e87b15b1e320500ca34580927fb813209ad98a34b16
md5 binutils-2.35.1.tar.xz 7126f370ffbd46c08fcc5ce7aee2805d
sha1 binutils-2.35.1.tar.xz 45f7a96a2580a422f44b78317f0abf13935fecb6
sha256 binutils-2.35.1.tar.xz 3ced91db9bf01182b7e420eab68039f2083aed0a214c0424e257eae3ddee8607
sha512 binutils-2.35.1.tar.xz 94ff72708403413b70b247f3af4099ebaa882b6659249869f1ed9941a0f1912e313f08357d470f9fd2359e7f5e5b0eb86285e5eaf883fa8187789d6b1bd304eb

View File

@ -12,7 +12,7 @@ inept targets than that one, really. Go look, I promise).
--- a/configure
+++ b/configure
@@ -3887,7 +3887,7 @@ case "${target}" in
@@ -3887,7 +3887,7 @@
nvptx*-*-*)
noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
;;
@ -23,7 +23,7 @@ inept targets than that one, really. Go look, I promise).
;;
--- a/configure.ac
+++ b/configure.ac
@@ -1177,7 +1177,7 @@ case "${target}" in
@@ -1177,7 +1177,7 @@
nvptx*-*-*)
noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
;;

View File

@ -5,7 +5,7 @@
--- a/ld/Makefile.am
+++ b/ld/Makefile.am
@@ -50,7 +50,7 @@ AM_CFLAGS = $(WARN_CFLAGS) $(ELF_CLFAGS)
@@ -50,7 +50,7 @@
# We put the scripts in the directory $(scriptdir)/ldscripts.
# We can't put the scripts in $(datadir) because the SEARCH_DIR
# directives need to be different for native and cross linkers.
@ -16,7 +16,7 @@
EMULATION_OFILES = @EMULATION_OFILES@
--- a/ld/Makefile.in
+++ b/ld/Makefile.in
@@ -561,7 +561,7 @@ AM_CFLAGS = $(WARN_CFLAGS) $(ELF_CLFAGS)
@@ -561,7 +561,7 @@
# We put the scripts in the directory $(scriptdir)/ldscripts.
# We can't put the scripts in $(datadir) because the SEARCH_DIR
# directives need to be different for native and cross linkers.

View File

@ -4,7 +4,7 @@
--- a/ld/ldelf.c
+++ b/ld/ldelf.c
@@ -1248,6 +1248,8 @@ ldelf_after_open (int use_libpath, int n
@@ -1248,6 +1248,8 @@
&& command_line.rpath == NULL)
{
path = (const char *) getenv ("LD_RUN_PATH");
@ -13,7 +13,7 @@
if (path
&& ldelf_search_needed (path, &n, force,
is_linux, elfsize))
@@ -1608,6 +1610,8 @@ ldelf_before_allocation (char *audit, ch
@@ -1608,6 +1610,8 @@
rpath = command_line.rpath;
if (rpath == NULL)
rpath = (const char *) getenv ("LD_RUN_PATH");

View File

@ -4,7 +4,7 @@
--- a/gold/gold-threads.cc
+++ b/gold/gold-threads.cc
@@ -101,7 +101,7 @@ Lock_impl_threads::Lock_impl_threads()
@@ -101,7 +101,7 @@
int err = pthread_mutexattr_init(&attr);
if (err != 0)
gold_fatal(_("pthead_mutexattr_init failed: %s"), strerror(err));

View File

@ -9,7 +9,7 @@
--- a/binutils/configure
+++ b/binutils/configure
@@ -12811,6 +12811,7 @@ fi
@@ -12811,6 +12811,7 @@
done
test -n "$YACC" || YACC="yacc"
@ -17,7 +17,7 @@
for ac_prog in flex lex
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
@@ -12974,6 +12975,8 @@ esac
@@ -12974,6 +12975,8 @@
if test "$LEX" = :; then
LEX=${am_missing_run}flex
fi
@ -28,7 +28,7 @@
# If we haven't got the data from the intl directory,
--- a/binutils/configure.ac
+++ b/binutils/configure.ac
@@ -110,7 +110,10 @@ if test -z "$host" ; then
@@ -110,7 +110,10 @@
fi
AC_PROG_YACC
@ -41,7 +41,7 @@
ZW_GNU_GETTEXT_SISTER_DIR
--- a/gas/configure
+++ b/gas/configure
@@ -13558,6 +13558,7 @@ fi
@@ -13558,6 +13558,7 @@
done
test -n "$YACC" || YACC="yacc"
@ -49,7 +49,7 @@
for ac_prog in flex lex
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
@@ -13721,6 +13722,8 @@ esac
@@ -13721,6 +13722,8 @@
if test "$LEX" = :; then
LEX=${am_missing_run}flex
fi
@ -60,7 +60,7 @@
# If we haven't got the data from the intl directory,
--- a/gas/configure.ac
+++ b/gas/configure.ac
@@ -931,7 +931,10 @@ AC_DEFINE_UNQUOTED(TARGET_VENDOR, "${tar
@@ -931,7 +931,10 @@
AC_DEFINE_UNQUOTED(TARGET_OS, "${target_os}", [Target OS.])
AC_PROG_YACC
@ -73,7 +73,7 @@
ZW_GNU_GETTEXT_SISTER_DIR
--- a/ld/configure
+++ b/ld/configure
@@ -16623,6 +16623,7 @@ fi
@@ -16623,6 +16623,7 @@
done
test -n "$YACC" || YACC="yacc"
@ -81,7 +81,7 @@
for ac_prog in flex lex
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
@@ -16786,6 +16787,8 @@ esac
@@ -16786,6 +16787,8 @@
if test "$LEX" = :; then
LEX=${am_missing_run}flex
fi
@ -92,7 +92,7 @@
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
--- a/ld/configure.ac
+++ b/ld/configure.ac
@@ -269,7 +269,10 @@ AM_PO_SUBDIRS
@@ -269,7 +269,10 @@
AC_EXEEXT
AC_PROG_YACC

View File

@ -15,7 +15,7 @@ Change-Id: I69204a72f853f5263dffedc448379d75ed4eca2e
--- a/bfd/peXXigen.c
+++ b/bfd/peXXigen.c
@@ -3589,6 +3589,28 @@ u16_mbtouc (wchar_t * puc, const unsigne
@@ -3589,6 +3589,28 @@
}
#endif /* HAVE_WCHAR_H and not Cygwin/Mingw */
@ -46,7 +46,7 @@ Change-Id: I69204a72f853f5263dffedc448379d75ed4eca2e
rsrc_cmp (bfd_boolean is_name, rsrc_entry * a, rsrc_entry * b)
--- a/gold/gold-threads.cc
+++ b/gold/gold-threads.cc
@@ -284,9 +284,18 @@ Condvar::~Condvar()
@@ -284,9 +284,18 @@
class Once_initialize
{
public:

View File

@ -11,7 +11,7 @@ http://sourceware.org/bugzilla/show_bug.cgi?id=10340
--- a/ld/ldfile.c
+++ b/ld/ldfile.c
@@ -340,18 +340,25 @@ ldfile_open_file_search (const char *arc
@@ -340,18 +340,25 @@
directory first. */
if (!entry->flags.maybe_archive)
{

View File

@ -85,7 +85,7 @@ Signed-off-by: Scott Garman <scott.a.garman@intel.com>
--- a/ld/configure
+++ b/ld/configure
@@ -828,6 +828,7 @@ with_lib_path
@@ -828,6 +828,7 @@
enable_targets
enable_64_bit_bfd
with_sysroot
@ -93,7 +93,7 @@ Signed-off-by: Scott Garman <scott.a.garman@intel.com>
enable_gold
enable_got
enable_compressed_debug_sections
@@ -1496,6 +1497,8 @@ Optional Features:
@@ -1496,6 +1497,8 @@
--disable-largefile omit support for large files
--enable-targets alternative target configurations
--enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
@ -102,7 +102,7 @@ Signed-off-by: Scott Garman <scott.a.garman@intel.com>
--enable-gold[=ARG] build gold [ARG={default,yes,no}]
--enable-got=<type> GOT handling scheme (target, single, negative,
multigot)
@@ -15841,7 +15844,18 @@ else
@@ -15841,7 +15844,18 @@
fi
@ -123,7 +123,7 @@ Signed-off-by: Scott Garman <scott.a.garman@intel.com>
if test "${enable_got+set}" = set; then :
--- a/ld/configure.ac
+++ b/ld/configure.ac
@@ -94,6 +94,16 @@ AC_SUBST(use_sysroot)
@@ -94,6 +94,16 @@
AC_SUBST(TARGET_SYSTEM_ROOT)
AC_SUBST(TARGET_SYSTEM_ROOT_DEFINE)
@ -142,7 +142,7 @@ Signed-off-by: Scott Garman <scott.a.garman@intel.com>
dnl "installed_linker" is the installed BFD linker name.
--- a/ld/ld.h
+++ b/ld/ld.h
@@ -161,6 +161,14 @@ typedef struct
@@ -161,6 +161,14 @@
/* If set, display the target memory usage (per memory region). */
bfd_boolean print_memory_usage;
@ -159,7 +159,7 @@ Signed-off-by: Scott Garman <scott.a.garman@intel.com>
in the linker script. */
--- a/ld/ld.texi
+++ b/ld/ld.texi
@@ -2810,6 +2810,18 @@ string identifying the original linked f
@@ -2810,6 +2810,18 @@
Passing @code{none} for @var{style} disables the setting from any
@code{--build-id} options earlier on the command line.
@ -180,7 +180,7 @@ Signed-off-by: Scott Garman <scott.a.garman@intel.com>
@c man end
--- a/ld/ldfile.c
+++ b/ld/ldfile.c
@@ -117,6 +117,23 @@ ldfile_add_library_path (const char *nam
@@ -117,6 +117,23 @@
new_dirs->name = concat (ld_sysroot, name + strlen ("$SYSROOT"), (const char *) NULL);
else
new_dirs->name = xstrdup (name);
@ -206,7 +206,7 @@ Signed-off-by: Scott Garman <scott.a.garman@intel.com>
/* Try to open a BFD for a lang_input_statement. */
--- a/ld/ldlex.h
+++ b/ld/ldlex.h
@@ -161,6 +161,8 @@ enum option_values
@@ -161,6 +161,8 @@
OPTION_CTF_VARIABLES,
OPTION_NO_CTF_VARIABLES,
OPTION_CTF_SHARE_TYPES,
@ -217,7 +217,7 @@ Signed-off-by: Scott Garman <scott.a.garman@intel.com>
/* The initial parser states. */
--- a/ld/ldmain.c
+++ b/ld/ldmain.c
@@ -323,6 +323,8 @@ main (int argc, char **argv)
@@ -323,6 +323,8 @@
command_line.warn_mismatch = TRUE;
command_line.warn_search_mismatch = TRUE;
command_line.check_section_addresses = -1;
@ -228,7 +228,7 @@ Signed-off-by: Scott Garman <scott.a.garman@intel.com>
COLLECT_NO_DEMANGLE. The gcc collect2 program will demangle the
--- a/ld/lexsup.c
+++ b/ld/lexsup.c
@@ -591,6 +591,14 @@ static const struct ld_option ld_options
@@ -591,6 +591,14 @@
" <method> is: share-unconflicted (default),\n"
" share-duplicated"),
TWO_DASHES },
@ -243,7 +243,7 @@ Signed-off-by: Scott Garman <scott.a.garman@intel.com>
};
#define OPTION_COUNT ARRAY_SIZE (ld_options)
@@ -603,6 +611,7 @@ parse_args (unsigned argc, char **argv)
@@ -603,6 +611,7 @@
int ingroup = 0;
char *default_dirlist = NULL;
char *shortopts;
@ -251,7 +251,7 @@ Signed-off-by: Scott Garman <scott.a.garman@intel.com>
struct option *longopts;
struct option *really_longopts;
int last_optind;
@@ -1633,6 +1642,14 @@ parse_args (unsigned argc, char **argv)
@@ -1633,6 +1642,14 @@
}
break;
@ -266,7 +266,7 @@ Signed-off-by: Scott Garman <scott.a.garman@intel.com>
case OPTION_PUSH_STATE:
input_flags.pushed = xmemdup (&input_flags,
sizeof (input_flags),
@@ -1778,6 +1795,10 @@ parse_args (unsigned argc, char **argv)
@@ -1778,6 +1795,10 @@
command_line.soname = NULL;
}

View File

@ -1,3 +1,7 @@
md5 binutils-2.36.1.tar.xz 628d490d976d8957279bbbff06cf29d4
sha1 binutils-2.36.1.tar.xz 021c97cc0e751e989afb8db025fbd2ae48391831
sha256 binutils-2.36.1.tar.xz e81d9edf373f193af428a0f256674aea62a9d74dfe93f65192d4eae030b0f3b0
sha512 binutils-2.36.1.tar.xz cc24590bcead10b90763386b6f96bb027d7594c659c2d95174a6352e8b98465a50ec3e4088d0da038428abe059bbc4ae5f37b269f31a40fc048072c8a234f4e9
md5 binutils-2.36.1.tar.bz2 11be4c0a31ed4208c4da0917e1ea5668
sha1 binutils-2.36.1.tar.bz2 968cddc17354142ab7d60b93d7f169ec8373a9f4
sha256 binutils-2.36.1.tar.bz2 5b4bd2e79e30ce8db0abd76dd2c2eae14a94ce212cfc59d3c37d23e24bc6d7a3
@ -6,7 +10,3 @@ md5 binutils-2.36.1.tar.gz 3df9c3bbd944f9b57c1496f06741197b
sha1 binutils-2.36.1.tar.gz 71387d2287a591fc586e6a15055fec8536723490
sha256 binutils-2.36.1.tar.gz e68edeaaeb6ca9687b6dcbaedd1b376506baad2d48de26a885fc5ab6acb839da
sha512 binutils-2.36.1.tar.gz 741a5a1499e25089d51721a5801fe3f48c789f9eb6831fb2427a1ef1d0c9d1ed411b87ddd247d9c7f0eb5afb8d9ed665dc993a7c42b7fd03a0a18a431fa80c00
md5 binutils-2.36.1.tar.xz 628d490d976d8957279bbbff06cf29d4
sha1 binutils-2.36.1.tar.xz 021c97cc0e751e989afb8db025fbd2ae48391831
sha256 binutils-2.36.1.tar.xz e81d9edf373f193af428a0f256674aea62a9d74dfe93f65192d4eae030b0f3b0
sha512 binutils-2.36.1.tar.xz cc24590bcead10b90763386b6f96bb027d7594c659c2d95174a6352e8b98465a50ec3e4088d0da038428abe059bbc4ae5f37b269f31a40fc048072c8a234f4e9

View File

@ -19,12 +19,10 @@ So it's easy to see how such bugs can creep in.
"recursion" to unsigned.
(RUST_NO_RECURSION_LIMIT): Similarly in cast.
---
libiberty/ChangeLog | 6 ++++++
libiberty/rust-demangle.c | 4 ++--
libiberty/ChangeLog | 6 ++++++
libiberty/rust-demangle.c | 4 ++--
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog
index 8e39fd28eba8..3f749455f05d 100644
--- a/libiberty/ChangeLog
+++ b/libiberty/ChangeLog
@@ -1,3 +1,9 @@
@ -37,11 +35,9 @@ index 8e39fd28eba8..3f749455f05d 100644
2021-07-15 Nick Clifton <nickc@redhat.com>
PR 99935
diff --git a/libiberty/rust-demangle.c b/libiberty/rust-demangle.c
index df09b7b8fddb..ac1eb8eb02c6 100644
--- a/libiberty/rust-demangle.c
+++ b/libiberty/rust-demangle.c
@@ -75,10 +75,10 @@ struct rust_demangler
@@ -75,10 +75,10 @@
int version;
/* Recursion depth. */

View File

@ -33,16 +33,16 @@ ld/
(cherry picked from commit 5a98fb7513b559e20dfebdbaa2a471afda3b4742)
(cherry picked from commit 7dc37e1e1209c80e0bab784df6b6bac335e836f2)
---
bfd/plugin.c | 8 +++++++
ld/testsuite/ld-plugin/lto.exp | 34 ++++++++++++++++++++++++++++++
ld/testsuite/ld-plugin/pr28138-1.c | 6 ++++++
ld/testsuite/ld-plugin/pr28138-2.c | 6 ++++++
ld/testsuite/ld-plugin/pr28138-3.c | 6 ++++++
ld/testsuite/ld-plugin/pr28138-4.c | 6 ++++++
ld/testsuite/ld-plugin/pr28138-5.c | 6 ++++++
ld/testsuite/ld-plugin/pr28138-6.c | 6 ++++++
ld/testsuite/ld-plugin/pr28138-7.c | 6 ++++++
ld/testsuite/ld-plugin/pr28138.c | 20 ++++++++++++++++++
bfd/plugin.c | 8 ++++++++
ld/testsuite/ld-plugin/lto.exp | 34 ++++++++++++++++++++++++++++++++++
ld/testsuite/ld-plugin/pr28138-1.c | 6 ++++++
ld/testsuite/ld-plugin/pr28138-2.c | 6 ++++++
ld/testsuite/ld-plugin/pr28138-3.c | 6 ++++++
ld/testsuite/ld-plugin/pr28138-4.c | 6 ++++++
ld/testsuite/ld-plugin/pr28138-5.c | 6 ++++++
ld/testsuite/ld-plugin/pr28138-6.c | 6 ++++++
ld/testsuite/ld-plugin/pr28138-7.c | 6 ++++++
ld/testsuite/ld-plugin/pr28138.c | 20 ++++++++++++++++++++
10 files changed, 104 insertions(+)
create mode 100644 ld/testsuite/ld-plugin/pr28138-1.c
create mode 100644 ld/testsuite/ld-plugin/pr28138-2.c
@ -53,11 +53,9 @@ ld/
create mode 100644 ld/testsuite/ld-plugin/pr28138-7.c
create mode 100644 ld/testsuite/ld-plugin/pr28138.c
diff --git a/bfd/plugin.c b/bfd/plugin.c
index 6cfa2b66470..3bab8febe88 100644
--- a/bfd/plugin.c
+++ b/bfd/plugin.c
@@ -291,6 +291,14 @@ bfd_plugin_close_file_descriptor (bfd *abfd, int fd)
@@ -291,6 +291,14 @@
&& !bfd_is_thin_archive (abfd->my_archive))
abfd = abfd->my_archive;
@ -72,11 +70,9 @@ index 6cfa2b66470..3bab8febe88 100644
abfd->archive_plugin_fd_open_count--;
/* Dup the archive plugin file descriptor for later use, which
will be closed by _bfd_archive_close_and_cleanup. */
diff --git a/ld/testsuite/ld-plugin/lto.exp b/ld/testsuite/ld-plugin/lto.exp
index def69e43ab3..999d911ce6a 100644
--- a/ld/testsuite/ld-plugin/lto.exp
+++ b/ld/testsuite/ld-plugin/lto.exp
@@ -687,6 +687,40 @@ if { [is_elf_format] && [check_lto_shared_available] } {
@@ -687,6 +687,40 @@
}
}
@ -117,9 +113,6 @@ index def69e43ab3..999d911ce6a 100644
set testname "Build liblto-11.a"
remote_file host delete "tmpdir/liblto-11.a"
set catch_output [run_host_cmd "$ar" "rc $plug_opt tmpdir/liblto-11.a tmpdir/lto-11a.o tmpdir/lto-11b.o tmpdir/lto-11c.o"]
diff --git a/ld/testsuite/ld-plugin/pr28138-1.c b/ld/testsuite/ld-plugin/pr28138-1.c
new file mode 100644
index 00000000000..51d119e1642
--- /dev/null
+++ b/ld/testsuite/ld-plugin/pr28138-1.c
@@ -0,0 +1,6 @@
@ -129,9 +122,6 @@ index 00000000000..51d119e1642
+{
+ return 1 + a0();
+}
diff --git a/ld/testsuite/ld-plugin/pr28138-2.c b/ld/testsuite/ld-plugin/pr28138-2.c
new file mode 100644
index 00000000000..1120cd797e9
--- /dev/null
+++ b/ld/testsuite/ld-plugin/pr28138-2.c
@@ -0,0 +1,6 @@
@ -141,9 +131,6 @@ index 00000000000..1120cd797e9
+{
+ return 1 + a1();
+}
diff --git a/ld/testsuite/ld-plugin/pr28138-3.c b/ld/testsuite/ld-plugin/pr28138-3.c
new file mode 100644
index 00000000000..ec464947ee6
--- /dev/null
+++ b/ld/testsuite/ld-plugin/pr28138-3.c
@@ -0,0 +1,6 @@
@ -153,9 +140,6 @@ index 00000000000..ec464947ee6
+{
+ return 1 + a2();
+}
diff --git a/ld/testsuite/ld-plugin/pr28138-4.c b/ld/testsuite/ld-plugin/pr28138-4.c
new file mode 100644
index 00000000000..475701b2c5c
--- /dev/null
+++ b/ld/testsuite/ld-plugin/pr28138-4.c
@@ -0,0 +1,6 @@
@ -165,9 +149,6 @@ index 00000000000..475701b2c5c
+{
+ return 1 + a3();
+}
diff --git a/ld/testsuite/ld-plugin/pr28138-5.c b/ld/testsuite/ld-plugin/pr28138-5.c
new file mode 100644
index 00000000000..e24f86c363e
--- /dev/null
+++ b/ld/testsuite/ld-plugin/pr28138-5.c
@@ -0,0 +1,6 @@
@ -177,9 +158,6 @@ index 00000000000..e24f86c363e
+{
+ return 1 + a4();
+}
diff --git a/ld/testsuite/ld-plugin/pr28138-6.c b/ld/testsuite/ld-plugin/pr28138-6.c
new file mode 100644
index 00000000000..b5b938bdb21
--- /dev/null
+++ b/ld/testsuite/ld-plugin/pr28138-6.c
@@ -0,0 +1,6 @@
@ -189,9 +167,6 @@ index 00000000000..b5b938bdb21
+{
+ return 1 + a5();
+}
diff --git a/ld/testsuite/ld-plugin/pr28138-7.c b/ld/testsuite/ld-plugin/pr28138-7.c
new file mode 100644
index 00000000000..4ef75bf0f0c
--- /dev/null
+++ b/ld/testsuite/ld-plugin/pr28138-7.c
@@ -0,0 +1,6 @@
@ -201,9 +176,6 @@ index 00000000000..4ef75bf0f0c
+{
+ return 1 + a6();
+}
diff --git a/ld/testsuite/ld-plugin/pr28138.c b/ld/testsuite/ld-plugin/pr28138.c
new file mode 100644
index 00000000000..68252c9f382
--- /dev/null
+++ b/ld/testsuite/ld-plugin/pr28138.c
@@ -0,0 +1,20 @@
@ -227,6 +199,3 @@ index 00000000000..68252c9f382
+ }
+ return 1;
+}
--
2.27.0

View File

@ -16,15 +16,13 @@ and the whole st_atim timespec untouched leaving them uninitialized
(cherry picked from commit 0d62064867c74286360e821b75ef6799bedc4b34)
---
binutils/ar.c | 3 +++
binutils/objcopy.c | 1 +
binutils/ar.c | 3 +++
binutils/objcopy.c | 1 +
2 files changed, 4 insertions(+)
diff --git a/binutils/ar.c b/binutils/ar.c
index 5d6976c7027..8885585ef75 100644
--- a/binutils/ar.c
+++ b/binutils/ar.c
@@ -1180,6 +1180,9 @@ extract_file (bfd *abfd)
@@ -1180,6 +1180,9 @@
bfd_size_type size;
struct stat buf;
@ -34,11 +32,9 @@ index 5d6976c7027..8885585ef75 100644
if (bfd_stat_arch_elt (abfd, &buf) != 0)
/* xgettext:c-format */
fatal (_("internal stat error on %s"), bfd_get_filename (abfd));
diff --git a/binutils/objcopy.c b/binutils/objcopy.c
index a6c2e0dcc26..fd7557fe433 100644
--- a/binutils/objcopy.c
+++ b/binutils/objcopy.c
@@ -3600,6 +3600,7 @@ copy_archive (bfd *ibfd, bfd *obfd, const char *output_target,
@@ -3600,6 +3600,7 @@
if (preserve_dates)
{
@ -46,6 +42,3 @@ index a6c2e0dcc26..fd7557fe433 100644
stat_status = bfd_stat_arch_elt (this_element, &buf);
if (stat_status != 0)
--
2.27.0

View File

@ -19,12 +19,10 @@ ld/ChangeLog:
Signed-off-by: Dimitar Dimitrov <dimitar@dinux.eu>
(cherry picked from commit 5109a7bd9b87bdad530f2ebf97036e6087b4504d)
---
ld/ChangeLog | 5 +++++
ld/scripttempl/pru.sc | 7 +++----
ld/ChangeLog | 5 +++++
ld/scripttempl/pru.sc | 7 +++----
2 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 5048b5b6a17..ee3259a06de 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,8 @@
@ -36,11 +34,9 @@ index 5048b5b6a17..ee3259a06de 100644
2021-07-18 Nick Clifton <nickc@redhat.com>
* 2.37 release.
diff --git a/ld/scripttempl/pru.sc b/ld/scripttempl/pru.sc
index b2c941b7911..97d8be0a0a4 100644
--- a/ld/scripttempl/pru.sc
+++ b/ld/scripttempl/pru.sc
@@ -151,11 +151,10 @@ SECTIONS
@@ -151,11 +151,10 @@
${RELOCATING+ PROVIDE (_data_end = .) ; }
} ${RELOCATING+ > dmem }
@ -55,6 +51,3 @@ index b2c941b7911..97d8be0a0a4 100644
KEEP (*(.resource_table))
} ${RELOCATING+ > dmem}
--
2.27.0

View File

@ -11,14 +11,12 @@ bfd in struct bfd_preserve need to be cleared in bfd_reinit.
(cherry picked from commit 6d661cdc5be46e890ed9255e749806f46a88e26c)
---
bfd/format.c | 1 +
bfd/format.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/bfd/format.c b/bfd/format.c
index 5d08d1d642c..408c984690e 100644
--- a/bfd/format.c
+++ b/bfd/format.c
@@ -151,6 +151,7 @@ bfd_reinit (bfd *abfd, unsigned int section_id, bfd_cleanup cleanup)
@@ -151,6 +151,7 @@
abfd->tdata.any = NULL;
abfd->arch_info = &bfd_default_arch_struct;
abfd->flags &= BFD_FLAGS_SAVED;
@ -26,6 +24,3 @@ index 5d08d1d642c..408c984690e 100644
bfd_section_list_clear (abfd);
}
--
2.27.0

View File

@ -20,14 +20,12 @@ more than one unit.
(cherry picked from commit e7f024765a48fba4452535a5fc006a7e858730fd)
---
binutils/dwarf.c | 1 -
binutils/dwarf.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/binutils/dwarf.c b/binutils/dwarf.c
index 1e7f4db7b7c..e73078f496f 100644
--- a/binutils/dwarf.c
+++ b/binutils/dwarf.c
@@ -7727,7 +7727,6 @@ display_debug_ranges (struct dwarf_section *section,
@@ -7727,7 +7727,6 @@
return 0;
}
}
@ -35,6 +33,3 @@ index 1e7f4db7b7c..e73078f496f 100644
/* Get and check the version number. */
SAFE_BYTE_GET_AND_INC (version, start, 2, finish);
--
2.27.0

View File

@ -10,15 +10,13 @@ Subject: [PATCH] PR28417, std::string no longer allows accepting nullptr_t
(cherry picked from commit 068a039b8bd7c7386bb0d88f0ae245b0fe4132e9)
---
gold/incremental.cc | 2 +-
gold/options.h | 2 +-
gold/incremental.cc | 2 +-
gold/options.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/gold/incremental.cc b/gold/incremental.cc
index 52941985e6f..327a1527a29 100644
--- a/gold/incremental.cc
+++ b/gold/incremental.cc
@@ -2286,7 +2286,7 @@ Sized_relobj_incr<size, big_endian>::do_section_name(unsigned int shndx) const
@@ -2280,7 +2280,7 @@
const Output_sections& out_sections(this->output_sections());
const Output_section* os = out_sections[shndx];
if (os == NULL)
@ -27,11 +25,9 @@ index 52941985e6f..327a1527a29 100644
return os->name();
}
diff --git a/gold/options.h b/gold/options.h
index 757ebf18fec..47299a37834 100644
--- a/gold/options.h
+++ b/gold/options.h
@@ -611,7 +611,7 @@ class Search_directory
@@ -611,7 +611,7 @@
// We need a default constructor because we put this in a
// std::vector.
Search_directory()
@ -40,6 +36,3 @@ index 757ebf18fec..47299a37834 100644
{ }
// This is the usual constructor.
--
2.27.0

View File

@ -9,14 +9,12 @@ Subject: [PATCH] PR28540, segmentation fault on NULL byte_get
(cherry picked from commit f2f105f518413ea3e4c212f89585f9a8a5dddcdd)
---
binutils/objdump.c | 2 +-
binutils/objdump.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/binutils/objdump.c b/binutils/objdump.c
index a7b8303b992..50317b3d48f 100644
--- a/binutils/objdump.c
+++ b/binutils/objdump.c
@@ -4869,7 +4869,7 @@ dump_bfd (bfd *abfd, bool is_mainfile)
@@ -4869,7 +4869,7 @@
The test on is_mainfile is there because the chain of separate debug
info files is a global variable shared by all invocations of dump_bfd. */
@ -25,6 +23,3 @@ index a7b8303b992..50317b3d48f 100644
{
load_separate_debug_files (abfd, bfd_get_filename (abfd));
--
2.27.0

View File

@ -14,15 +14,13 @@ avoid being placed between other note sections with different alignments.
(cherry picked from commit f85dcfc3af9cf7c2859241253f1d37b1133abea2)
---
gold/layout.cc | 3 ++-
gold/layout.h | 9 +++++++--
gold/layout.cc | 3 ++-
gold/layout.h | 9 +++++++--
2 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/gold/layout.cc b/gold/layout.cc
index a27cb071c75..38e9bceec7e 100644
--- a/gold/layout.cc
+++ b/gold/layout.cc
@@ -3245,7 +3245,8 @@ Layout::create_note(const char* name, int note_type,
@@ -3245,7 +3245,8 @@
if (allocate)
{
flags = elfcpp::SHF_ALLOC;
@ -32,11 +30,9 @@ index a27cb071c75..38e9bceec7e 100644
}
Output_section* os = this->choose_output_section(NULL, section_name,
elfcpp::SHT_NOTE,
diff --git a/gold/layout.h b/gold/layout.h
index 0b378003679..05c31714e47 100644
--- a/gold/layout.h
+++ b/gold/layout.h
@@ -399,8 +399,13 @@ enum Output_section_order
@@ -399,8 +399,13 @@
// linker can pick it up quickly.
ORDER_INTERP,
@ -52,6 +48,3 @@ index 0b378003679..05c31714e47 100644
ORDER_RO_NOTE,
// Put read-only sections used by the dynamic linker early in the
--
2.27.0

View File

@ -16,14 +16,12 @@ In file included from ldelf.c:37:
(cherry picked from commit ced10cb78d01652f9e1bb1d1e465327dfe1debaa)
---
ld/ldelf.c | 1 -
ld/ldelf.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/ld/ldelf.c b/ld/ldelf.c
index 21e655bb55c..0c39eb6024f 100644
--- a/ld/ldelf.c
+++ b/ld/ldelf.c
@@ -1046,7 +1046,6 @@ ldelf_after_open (int use_libpath, int native, int is_linux, int is_freebsd,
@@ -1046,7 +1046,6 @@
if (abfd->xvec->flavour == bfd_target_elf_flavour
&& !bfd_input_just_syms (abfd)
&& elf_tdata (abfd) != NULL
@ -31,6 +29,3 @@ index 21e655bb55c..0c39eb6024f 100644
/* FIXME: Maybe check for other non-supportable types as well ? */
&& (elf_tdata (abfd)->elf_header->e_type == ET_EXEC
|| (elf_tdata (abfd)->elf_header->e_type == ET_DYN
--
2.27.0

View File

@ -1,5 +1,4 @@
pkg_label='CLooG'
repository='git git://repo.or.cz/cloog.git'
mirrors='http://www.bastoul.net/cloog/pages/download'
milestones='0.18.1 0.18.4'
archive_formats='.tar.gz'

View File

@ -1,5 +1,9 @@
--- a/testoperators.cpp 2009-03-17 16:04:43.000000000 -0700
+++ b/testoperators.cpp 2021-05-01 01:15:25.385421628 -0700
---
testoperators.cpp | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
--- a/testoperators.cpp
+++ b/testoperators.cpp
@@ -37,26 +37,26 @@
{
public:
@ -9,14 +13,14 @@
void * operator new( DUMA_SIZE_T , const std::nothrow_t & ) throw();
void operator delete( void * ) throw();
void operator delete( void * , const std::nothrow_t & ) throw();
/* 2x : ARRAY OBJECT FORM - NO DEBUG INFORMATION */
- void * operator new[]( DUMA_SIZE_T ) throw(std::bad_alloc);
+ void * operator new[]( DUMA_SIZE_T ) NEW_THROW_SPEC;
void * operator new[]( DUMA_SIZE_T , const std::nothrow_t & ) throw();
void operator delete[]( void * ) throw();
void operator delete[]( void *, const std::nothrow_t & ) throw();
#ifndef DUMA_NO_LEAKDETECTION
/* 3x : SINGLE OBJECT FORM - WITH DEBUG INFORMATION */
- void * operator new( DUMA_SIZE_T, const char *, int ) throw( std::bad_alloc );
@ -24,7 +28,7 @@
void * operator new( DUMA_SIZE_T, const std::nothrow_t &, const char *, int ) throw();
void operator delete( void *, const char *, int ) throw();
void operator delete( void *, const std::nothrow_t &, const char *, int ) throw();
/* 4x : ARRAY OBJECT FORM - WITH DEBUG INFORMATION */
- void * operator new[]( DUMA_SIZE_T, const char *, int ) throw( std::bad_alloc );
+ void * operator new[]( DUMA_SIZE_T, const char *, int ) NEW_THROW_SPEC;
@ -33,7 +37,7 @@
void operator delete[]( void *, const std::nothrow_t &, const char *, int ) throw();
@@ -70,7 +70,7 @@
/* 1x : SINGLE OBJECT FORM - NO DEBUG INFORMATION */
void * optest::operator new( DUMA_SIZE_T s )
-throw(std::bad_alloc)
+NEW_THROW_SPEC
@ -41,7 +45,7 @@
(void)s;
return ::new optest;
@@ -101,7 +101,7 @@
/* 2x : ARRAY OBJECT FORM - NO DEBUG INFORMATION */
void * optest::operator new[]( DUMA_SIZE_T s )
-throw(std::bad_alloc)
@ -50,7 +54,7 @@
return ::new optest[ s / sizeof(optest) ]; // "s / sizeof()" not correct but works for this test
}
@@ -129,7 +129,7 @@
/* 3x : SINGLE OBJECT FORM - WITH DEBUG INFORMATION */
void * optest::operator new( DUMA_SIZE_T s, const char * f, int l )
-throw( std::bad_alloc )
@ -59,7 +63,7 @@
(void)s;
return ::new(f,l) optest;
@@ -157,7 +157,7 @@
/* 4x : ARRAY OBJECT FORM - WITH DEBUG INFORMATION */
void * optest::operator new[]( DUMA_SIZE_T s, const char * f, int l )
-throw( std::bad_alloc )

View File

@ -1,2 +0,0 @@
repository_branch='oracle/gcc/ol7-u9'
version_number='4.8'

View File

@ -1,5 +0,0 @@
master='gcc'
repository='git https://github.com/oracle/gcc.git'
origin='Oracle'
src_release='n'
src_devel='y'

View File

@ -4,7 +4,7 @@
--- a/libtool-ldflags
+++ b/libtool-ldflags
@@ -36,6 +36,11 @@ prev_arg=
@@ -36,6 +36,11 @@
for arg
do
case $arg in

View File

@ -4,7 +4,7 @@
--- a/contrib/regression/objs-gcc.sh
+++ b/contrib/regression/objs-gcc.sh
@@ -106,6 +106,10 @@ if [ $H_REAL_TARGET = $H_REAL_HOST -a $H
@@ -106,6 +106,10 @@
then
make all-gdb all-dejagnu all-ld || exit 1
make install-gdb install-dejagnu install-ld || exit 1

View File

@ -6,7 +6,7 @@
--- a/config/gcc-plugin.m4
+++ b/config/gcc-plugin.m4
@@ -21,6 +21,9 @@ AC_DEFUN([GCC_ENABLE_PLUGINS],
@@ -21,6 +21,9 @@
pluginlibs=
plugin_check=yes
@ -16,7 +16,7 @@
case "${host}" in
*-*-mingw*)
# Since plugin support under MinGW is not as straightforward as on
@@ -43,6 +46,11 @@ AC_DEFUN([GCC_ENABLE_PLUGINS],
@@ -43,6 +46,11 @@
export_sym_check=
fi
;;
@ -28,7 +28,7 @@
*)
if test x$build = x$host; then
export_sym_check="objdump${exeext} -T"
@@ -94,17 +102,17 @@ AC_DEFUN([GCC_ENABLE_PLUGINS],
@@ -94,17 +102,17 @@
case "${host}" in
*-*-darwin*)
CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
@ -53,7 +53,7 @@
if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
--- a/gcc/configure
+++ b/gcc/configure
@@ -30375,6 +30375,9 @@ fi
@@ -30385,6 +30385,9 @@
pluginlibs=
plugin_check=yes
@ -63,7 +63,7 @@
case "${host}" in
*-*-mingw*)
# Since plugin support under MinGW is not as straightforward as on
@@ -30397,6 +30400,11 @@ fi
@@ -30407,6 +30410,11 @@
export_sym_check=
fi
;;
@ -75,7 +75,7 @@
*)
if test x$build = x$host; then
export_sym_check="objdump${exeext} -T"
@@ -30509,23 +30517,23 @@ fi
@@ -30519,23 +30527,23 @@
case "${host}" in
*-*-darwin*)
CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
@ -108,7 +108,7 @@
}
--- a/libcc1/configure
+++ b/libcc1/configure
@@ -14795,6 +14795,9 @@ fi
@@ -14812,6 +14812,9 @@
pluginlibs=
plugin_check=yes
@ -118,7 +118,7 @@
case "${host}" in
*-*-mingw*)
# Since plugin support under MinGW is not as straightforward as on
@@ -14817,6 +14820,11 @@ fi
@@ -14834,6 +14837,11 @@
export_sym_check=
fi
;;
@ -130,7 +130,7 @@
*)
if test x$build = x$host; then
export_sym_check="objdump${exeext} -T"
@@ -14929,23 +14937,23 @@ fi
@@ -14946,23 +14954,23 @@
case "${host}" in
*-*-darwin*)
CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`

View File

@ -4,7 +4,7 @@
--- a/libcc1/connection.cc
+++ b/libcc1/connection.cc
@@ -21,6 +21,7 @@ along with GCC; see the file COPYING3.
@@ -21,6 +21,7 @@
#include <string>
#include <unistd.h>
#include <sys/types.h>

View File

@ -10,7 +10,7 @@ Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
--- a/libgcc/config.host
+++ b/libgcc/config.host
@@ -949,7 +949,7 @@ m68k*-*-netbsdelf*)
@@ -949,7 +949,7 @@
m68k*-*-openbsd*)
;;
m68k-*-uclinux*) # Motorola m68k/ColdFire running uClinux with uClibc

View File

@ -4,7 +4,7 @@
--- a/libgfortran/io/close.c
+++ b/libgfortran/io/close.c
@@ -29,6 +29,7 @@ see the files COPYING3 and COPYING.RUNTI
@@ -29,6 +29,7 @@
#if !HAVE_UNLINK_OPEN_FILE
#include <string.h>
#endif

View File

@ -29,7 +29,7 @@ Date: Tue Apr 25 19:02:18 2017 -0700
namespace std _GLIBCXX_VISIBILITY(default)
{
_GLIBCXX_BEGIN_NAMESPACE_VERSION
@@ -41,17 +53,17 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
@@ -41,17 +53,17 @@
// NB: Offsets into ctype<char>::_M_table force a particular size
// on the mask type. Because of this, we don't use an enum.
typedef char mask;

View File

@ -37,7 +37,7 @@ Date: Wed Jul 29 11:28:29 2015 +0300
--- a/gcc/config.gcc
+++ b/gcc/config.gcc
@@ -1083,14 +1083,18 @@ aarch64*-*-netbsd*)
@@ -1113,14 +1113,18 @@
extra_options="${extra_options} netbsd.opt netbsd-elf.opt"
;;
aarch64*-*-linux*)
@ -57,7 +57,7 @@ Date: Wed Jul 29 11:28:29 2015 +0300
esac
aarch64_multilibs="${with_multilib_list}"
if test "$aarch64_multilibs" = "default"; then
@@ -2501,6 +2505,17 @@ mips*-*-linux*) # Linux MIPS, either
@@ -2532,6 +2536,17 @@
tm_file="dbxelf.h elfos.h gnu-user.h linux.h linux-android.h glibc-stdint.h ${tm_file} mips/gnu-user.h mips/linux.h mips/linux-common.h"
extra_options="${extra_options} linux-android.opt"
case ${target} in
@ -157,7 +157,7 @@ Date: Wed Jul 29 11:28:29 2015 +0300
#define MUSL_DYNAMIC_LINKER "/lib/ld-musl-aarch64%{mbig-endian:_be}%{mabi=ilp32:_ilp32}.so.1"
--- a/gcc/config/arm/arm.h
+++ b/gcc/config/arm/arm.h
@@ -1974,12 +1974,13 @@ enum arm_auto_incmodes
@@ -1974,12 +1974,13 @@
#define CASE_VECTOR_PC_RELATIVE ((TARGET_THUMB2 \
|| (TARGET_THUMB1 \
@ -174,7 +174,7 @@ Date: Wed Jul 29 11:28:29 2015 +0300
: min >= -256 && max < 256 \
--- a/gcc/config/arm/arm.md
+++ b/gcc/config/arm/arm.md
@@ -9342,7 +9342,7 @@
@@ -9346,7 +9346,7 @@
(match_operand:SI 2 "const_int_operand") ; total range
(match_operand:SI 3 "" "") ; table label
(match_operand:SI 4 "" "")] ; Out of range label
@ -185,7 +185,7 @@ Date: Wed Jul 29 11:28:29 2015 +0300
enum insn_code code;
--- a/gcc/config/arm/arm.opt
+++ b/gcc/config/arm/arm.opt
@@ -202,6 +202,10 @@ mthumb-interwork
@@ -202,6 +202,10 @@
Target Report Mask(INTERWORK)
Support calls between Thumb and ARM instruction sets.
@ -250,7 +250,7 @@ Date: Wed Jul 29 11:28:29 2015 +0300
LINUX_OR_ANDROID_LD (GNU_USER_TARGET_LIB_SPEC, \
--- a/gcc/config/i386/gnu-user.h
+++ b/gcc/config/i386/gnu-user.h
@@ -65,9 +65,14 @@ along with GCC; see the file COPYING3.
@@ -65,9 +65,14 @@
When the -shared link option is used a final link is not being
done. */
@ -268,7 +268,7 @@ Date: Wed Jul 29 11:28:29 2015 +0300
#define SUBTARGET_EXTRA_SPECS \
--- a/gcc/config/i386/gnu-user64.h
+++ b/gcc/config/i386/gnu-user64.h
@@ -46,6 +46,11 @@ see the files COPYING3 and COPYING.RUNTI
@@ -46,6 +46,11 @@
#define SPEC_X32 "mx32"
#endif
@ -282,7 +282,7 @@ Date: Wed Jul 29 11:28:29 2015 +0300
%{" SPEC_64 ":--64} \
--- a/gcc/config/i386/linux-common.h
+++ b/gcc/config/i386/linux-common.h
@@ -36,7 +36,13 @@ along with GCC; see the file COPYING3.
@@ -36,7 +36,13 @@
#undef CC1_SPEC
#define CC1_SPEC \
LINUX_OR_ANDROID_CC (GNU_USER_TARGET_CC1_SPEC, \
@ -377,7 +377,7 @@ Date: Wed Jul 29 11:28:29 2015 +0300
+ LINUX_DRIVER_SELF_SPECS
--- a/gcc/config/mips/gnu-user.h
+++ b/gcc/config/mips/gnu-user.h
@@ -36,6 +36,7 @@ along with GCC; see the file COPYING3.
@@ -36,6 +36,7 @@
/* The GNU C++ standard library requires this. */ \
if (c_dialect_cxx ()) \
builtin_define ("_GNU_SOURCE"); \
@ -385,7 +385,7 @@ Date: Wed Jul 29 11:28:29 2015 +0300
} while (0)
#undef SUBTARGET_CPP_SPEC
@@ -71,7 +72,8 @@ along with GCC; see the file COPYING3.
@@ -71,7 +72,8 @@
#undef SUBTARGET_ASM_SPEC
#define SUBTARGET_ASM_SPEC \
@ -395,7 +395,7 @@ Date: Wed Jul 29 11:28:29 2015 +0300
/* The MIPS assembler has different syntax for .set. We set it to
.dummy to trap any errors. */
@@ -120,7 +122,7 @@ extern const char *host_detect_local_cpu
@@ -120,7 +122,7 @@
#endif
#define LINUX_DRIVER_SELF_SPECS \
@ -406,7 +406,7 @@ Date: Wed Jul 29 11:28:29 2015 +0300
specs handling by removing a redundant option. */ \
--- a/gcc/config/mips/linux-common.h
+++ b/gcc/config/mips/linux-common.h
@@ -38,7 +38,7 @@ along with GCC; see the file COPYING3.
@@ -38,7 +38,7 @@
#undef SUBTARGET_CC1_SPEC
#define SUBTARGET_CC1_SPEC \
LINUX_OR_ANDROID_CC (GNU_USER_TARGET_CC1_SPEC, \
@ -430,7 +430,7 @@ Date: Wed Jul 29 11:28:29 2015 +0300
+MULTILIB_REQUIRED = mabi=32/mips32 mabi=32/mips32r2 mabi=32/mips32r6 mips64r2 mips64r6
--- a/libgcc/gthr-posix.h
+++ b/libgcc/gthr-posix.h
@@ -32,6 +32,19 @@ see the files COPYING3 and COPYING.RUNTI
@@ -32,6 +32,19 @@
#define __GTHREADS 1
#define __GTHREADS_CXX0X 1
@ -452,7 +452,7 @@ Date: Wed Jul 29 11:28:29 2015 +0300
#if ((defined(_LIBOBJC) || defined(_LIBOBJC_WEAK)) \
--- a/libstdc++-v3/configure
+++ b/libstdc++-v3/configure
@@ -74306,6 +74306,18 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_
@@ -73677,6 +73677,18 @@
#include <sys/syscall.h>
#include <unistd.h>
int lk;
@ -494,7 +494,7 @@ Date: Wed Jul 29 11:28:29 2015 +0300
namespace std _GLIBCXX_VISIBILITY(default)
{
_GLIBCXX_BEGIN_NAMESPACE_VERSION
@@ -1104,7 +1118,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
@@ -1104,7 +1118,7 @@
* @return @a __hi.
*/
virtual const char*
@ -503,7 +503,7 @@ Date: Wed Jul 29 11:28:29 2015 +0300
{
if (__builtin_expect(__hi != __lo, true))
__builtin_memcpy(__to, __lo, __hi - __lo);
@@ -1167,7 +1181,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
@@ -1167,7 +1181,7 @@
private:
void _M_narrow_init() const;

View File

@ -16,13 +16,12 @@ Date: Mon Apr 14 15:59:47 2014 -0700
gcc/config/freebsd.h | 4 +++
gcc/config/gnu-user.h | 4 +++
gcc/config/openbsd.h | 4 +++
gcc/config/rs6000/sysv4.h | 6 ++++-
gcc/config/sol2.h | 4 +++
gcc/configure | 36 +++++++++++++++++++++++++++++++++
gcc/configure.ac | 29 ++++++++++++++++++++++++++
gcc/testsuite/g++.dg/eh/spec3-static.C | 25 ++++++++++++++++++++++
libgcc/crtstuff.c | 11 ++++++----
11 files changed, 128 insertions(+), 5 deletions(-)
10 files changed, 123 insertions(+), 4 deletions(-)
--- a/gcc/config.in
+++ b/gcc/config.in
@ -41,7 +40,7 @@ Date: Mon Apr 14 15:59:47 2014 -0700
#ifndef USED_FOR_TARGET
--- a/gcc/config/alpha/elf.h
+++ b/gcc/config/alpha/elf.h
@@ -142,5 +142,9 @@ extern int alpha_this_gpdisp_sequence_nu
@@ -142,5 +142,9 @@
I imagine that other systems will catch up. In the meantime, it
doesn't harm to make sure that the data exists to be used later. */
#if defined(HAVE_LD_EH_FRAME_HDR)
@ -53,7 +52,7 @@ Date: Mon Apr 14 15:59:47 2014 -0700
+#endif
--- a/gcc/config/freebsd.h
+++ b/gcc/config/freebsd.h
@@ -45,8 +45,12 @@ along with GCC; see the file COPYING3.
@@ -45,8 +45,12 @@
#define LIB_SPEC FBSD_LIB_SPEC
#if defined(HAVE_LD_EH_FRAME_HDR)
@ -68,7 +67,7 @@ Date: Mon Apr 14 15:59:47 2014 -0700
#define LINK_SSP_SPEC "%{fstack-protector|fstack-protector-all" \
--- a/gcc/config/gnu-user.h
+++ b/gcc/config/gnu-user.h
@@ -106,8 +106,12 @@ see the files COPYING3 and COPYING.RUNTI
@@ -106,8 +106,12 @@
#define LIB_SPEC GNU_USER_TARGET_LIB_SPEC
#if defined(HAVE_LD_EH_FRAME_HDR)
@ -83,7 +82,7 @@ Date: Mon Apr 14 15:59:47 2014 -0700
"%{static|static-pie:--start-group} %G %{!nolibc:%L} \
--- a/gcc/config/openbsd.h
+++ b/gcc/config/openbsd.h
@@ -136,8 +136,12 @@ while (0)
@@ -136,8 +136,12 @@
#define LIB_SPEC OBSD_LIB_SPEC
#if defined(HAVE_LD_EH_FRAME_HDR)
@ -98,7 +97,7 @@ Date: Mon Apr 14 15:59:47 2014 -0700
#define LIB_SPEC OBSD_LIB_SPEC
--- a/gcc/config/sol2.h
+++ b/gcc/config/sol2.h
@@ -434,7 +434,11 @@ along with GCC; see the file COPYING3.
@@ -434,7 +434,11 @@
/* Solaris 11 build 135+ implements dl_iterate_phdr. GNU ld needs
--eh-frame-hdr to create the required .eh_frame_hdr sections. */
#if defined(HAVE_LD_EH_FRAME_HDR) && defined(TARGET_DL_ITERATE_PHDR)
@ -112,7 +111,7 @@ Date: Mon Apr 14 15:59:47 2014 -0700
--- a/gcc/configure
+++ b/gcc/configure
@@ -1000,6 +1000,7 @@ enable_fix_cortex_a53_835769
@@ -1000,6 +1000,7 @@
enable_fix_cortex_a53_843419
with_glibc_version
enable_gnu_unique_object
@ -120,7 +119,7 @@ Date: Mon Apr 14 15:59:47 2014 -0700
enable_linker_build_id
enable_libssp
enable_default_ssp
@@ -1754,6 +1755,9 @@ Optional Features:
@@ -1754,6 +1755,9 @@
--enable-gnu-unique-object
enable the use of the @gnu_unique_object ELF
extension on glibc systems
@ -130,7 +129,7 @@ Date: Mon Apr 14 15:59:47 2014 -0700
--enable-linker-build-id
compiler will always pass --build-id to linker
--enable-libssp enable linking against libssp
@@ -28836,6 +28840,38 @@ if test x"$gcc_cv_ld_eh_frame_hdr" = xye
@@ -28843,6 +28847,38 @@
$as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
@ -171,7 +170,7 @@ Date: Mon Apr 14 15:59:47 2014 -0700
$as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
--- a/gcc/configure.ac
+++ b/gcc/configure.ac
@@ -5371,6 +5371,35 @@ GCC_TARGET_TEMPLATE([HAVE_LD_EH_FRAME_HD
@@ -5376,6 +5376,35 @@
if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
AC_DEFINE(HAVE_LD_EH_FRAME_HDR, 1,
[Define if your linker supports .eh_frame_hdr.])
@ -237,7 +236,7 @@ Date: Mon Apr 14 15:59:47 2014 -0700
+}
--- a/libgcc/crtstuff.c
+++ b/libgcc/crtstuff.c
@@ -88,7 +88,8 @@ call_ ## FUNC (void) \
@@ -88,7 +88,8 @@
#if defined(OBJECT_FORMAT_ELF) \
&& !defined(OBJECT_FORMAT_FLAT) \
&& defined(HAVE_LD_EH_FRAME_HDR) \
@ -247,7 +246,7 @@ Date: Mon Apr 14 15:59:47 2014 -0700
&& defined(BSD_DL_ITERATE_PHDR_AVAILABLE)
#include <link.h>
# define USE_PT_GNU_EH_FRAME
@@ -97,7 +98,8 @@ call_ ## FUNC (void) \
@@ -97,7 +98,8 @@
#if defined(OBJECT_FORMAT_ELF) \
&& !defined(OBJECT_FORMAT_FLAT) \
&& defined(HAVE_LD_EH_FRAME_HDR) && defined(TARGET_DL_ITERATE_PHDR) \
@ -257,7 +256,7 @@ Date: Mon Apr 14 15:59:47 2014 -0700
&& defined(__sun__) && defined(__svr4__)
#include <link.h>
# define USE_PT_GNU_EH_FRAME
@@ -106,7 +108,8 @@ call_ ## FUNC (void) \
@@ -106,7 +108,8 @@
#if defined(OBJECT_FORMAT_ELF) \
&& !defined(OBJECT_FORMAT_FLAT) \
&& defined(HAVE_LD_EH_FRAME_HDR) \
@ -267,7 +266,7 @@ Date: Mon Apr 14 15:59:47 2014 -0700
&& defined(__GLIBC__) && __GLIBC__ >= 2
#include <link.h>
/* uClibc pretends to be glibc 2.2 and DT_CONFIG is defined in its link.h.
@@ -121,7 +124,7 @@ call_ ## FUNC (void) \
@@ -121,7 +124,7 @@
#if defined(OBJECT_FORMAT_ELF) \
&& !defined(OBJECT_FORMAT_FLAT) \
&& defined(HAVE_LD_EH_FRAME_HDR) \

View File

@ -12,7 +12,7 @@ Date: Thu Aug 20 19:11:07 2015 +0300
--- a/gcc/config/i386/i386.c
+++ b/gcc/config/i386/i386.c
@@ -10344,6 +10344,7 @@ legitimate_pic_address_disp_p (rtx disp)
@@ -10340,6 +10340,7 @@
else if (!SYMBOL_REF_FAR_ADDR_P (op0)
&& (SYMBOL_REF_LOCAL_P (op0)
|| (HAVE_LD_PIE_COPYRELOC

View File

@ -12,7 +12,7 @@ Date: Fri Aug 21 17:41:59 2015 +0300
--- a/libgcc/gthr.h
+++ b/libgcc/gthr.h
@@ -145,7 +145,11 @@ see the files COPYING3 and COPYING.RUNTI
@@ -145,7 +145,11 @@
#define GTHREAD_USE_WEAK 1
#endif
#endif

View File

@ -15,7 +15,7 @@ Date: Mon Apr 14 21:05:51 2014 -0700
--- a/gcc/config/arm/arm.c
+++ b/gcc/config/arm/arm.c
@@ -24077,9 +24077,13 @@ arm_print_operand (FILE *stream, rtx x,
@@ -24131,9 +24131,13 @@
memsize = MEM_SIZE (x);
/* Only certain alignment specifiers are supported by the hardware. */

View File

@ -24,7 +24,7 @@ Date: Tue Aug 25 09:36:42 2015 +0300
#endif /* GCC_AARCH64_LINUX_ANDROID_H */
--- a/gcc/config/mips/linux-common.h
+++ b/gcc/config/mips/linux-common.h
@@ -65,3 +65,7 @@ along with GCC; see the file COPYING3.
@@ -65,3 +65,7 @@
/* The default value isn't sufficient in 64-bit mode. */
#define STACK_CHECK_PROTECT (TARGET_64BIT ? 16 * 1024 : 12 * 1024)

View File

@ -15,7 +15,7 @@ Date: Mon Sep 24 22:50:11 2018 -0700
--- a/gcc/graphite.h
+++ b/gcc/graphite.h
@@ -26,6 +26,8 @@ along with GCC; see the file COPYING3.
@@ -26,6 +26,8 @@
#include <isl/options.h>
#include <isl/ctx.h>
#include <isl/val.h>

View File

@ -13,14 +13,12 @@ Fix this by adding '-std=gnu++11' to the compile line.
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
---
gcc/config/aarch64/t-aarch64 | 2 +-
gcc/config/aarch64/t-aarch64 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/config/aarch64/t-aarch64 b/gcc/config/aarch64/t-aarch64
index 11d20b7be14..d4c3154cf40 100644
--- a/gcc/config/aarch64/t-aarch64
+++ b/gcc/config/aarch64/t-aarch64
@@ -41,7 +41,7 @@ aarch64-builtins.o: $(srcdir)/config/aarch64/aarch64-builtins.c $(CONFIG_H) \
@@ -41,7 +41,7 @@
$(srcdir)/config/aarch64/aarch64-simd-builtins.def \
$(srcdir)/config/aarch64/aarch64-simd-builtin-types.def \
aarch64-builtin-iterators.h
@ -29,6 +27,3 @@ index 11d20b7be14..d4c3154cf40 100644
$(srcdir)/config/aarch64/aarch64-builtins.c
aarch64-sve-builtins.o: $(srcdir)/config/aarch64/aarch64-sve-builtins.cc \
--
2.25.4

View File

@ -28,17 +28,15 @@ libstdc++-v3/ChangeLog:
* config.h.in: Regenerate.
* configure: Regenerate.
---
libstdc++-v3/acinclude.m4 | 20 ++++++----
libstdc++-v3/config.h.in | 3 ++
libstdc++-v3/config/io/basic_file_stdio.cc | 46 +++++++++++++++++++---
libstdc++-v3/configure | 17 +++++---
libstdc++-v3/acinclude.m4 | 20 ++++++++----
libstdc++-v3/config.h.in | 3 +
libstdc++-v3/config/io/basic_file_stdio.cc | 46 +++++++++++++++++++++++++----
libstdc++-v3/configure | 17 +++++++---
4 files changed, 69 insertions(+), 17 deletions(-)
diff --git a/libstdc++-v3/acinclude.m4 b/libstdc++-v3/acinclude.m4
index ee5e0336f2c..9604533c306 100644
--- a/libstdc++-v3/acinclude.m4
+++ b/libstdc++-v3/acinclude.m4
@@ -2826,24 +2826,30 @@ AC_DEFUN([GLIBCXX_ENABLE_PARALLEL], [
@@ -2797,24 +2797,30 @@
dnl
@ -76,11 +74,9 @@ index ee5e0336f2c..9604533c306 100644
;;
esac
diff --git a/libstdc++-v3/config.h.in b/libstdc++-v3/config.h.in
index 8940e0c7acd..eabcf18b52b 100644
--- a/libstdc++-v3/config.h.in
+++ b/libstdc++-v3/config.h.in
@@ -1031,6 +1031,9 @@
@@ -974,6 +974,9 @@
/* Define if sendfile is available in <sys/sendfile.h>. */
#undef _GLIBCXX_USE_SENDFILE
@ -90,11 +86,9 @@ index 8940e0c7acd..eabcf18b52b 100644
/* Define if struct stat has timespec members. */
#undef _GLIBCXX_USE_ST_MTIM
diff --git a/libstdc++-v3/config/io/basic_file_stdio.cc b/libstdc++-v3/config/io/basic_file_stdio.cc
index ba830fb9e97..eedffb017b6 100644
--- a/libstdc++-v3/config/io/basic_file_stdio.cc
+++ b/libstdc++-v3/config/io/basic_file_stdio.cc
@@ -111,13 +111,21 @@ namespace
@@ -111,13 +111,21 @@
// Wrapper handling partial write.
static std::streamsize
@ -116,7 +110,7 @@ index ba830fb9e97..eedffb017b6 100644
if (__ret == -1L && errno == EINTR)
continue;
if (__ret == -1L)
@@ -133,7 +141,7 @@ namespace
@@ -133,7 +141,7 @@
return __n - __nleft;
}
@ -125,7 +119,7 @@ index ba830fb9e97..eedffb017b6 100644
// Wrapper handling partial writev.
static std::streamsize
xwritev(int __fd, const char* __s1, std::streamsize __n1,
@@ -286,9 +294,11 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
@@ -286,9 +294,11 @@
__basic_file<char>::is_open() const throw ()
{ return _M_cfile != 0; }
@ -137,7 +131,7 @@ index ba830fb9e97..eedffb017b6 100644
__c_file*
__basic_file<char>::file() throw ()
@@ -315,28 +325,46 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
@@ -315,29 +325,47 @@
{
streamsize __ret;
do
@ -182,11 +176,12 @@ index ba830fb9e97..eedffb017b6 100644
+ __ret += xwrite(this->file(), __s2, __n2);
+#else
__ret += xwrite(this->fd(), __s2, __n2);
+#endif
#endif
+#endif
return __ret;
}
@@ -350,7 +378,11 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
@@ -350,8 +378,12 @@
if (__off > numeric_limits<off_t>::max()
|| __off < numeric_limits<off_t>::min())
return -1L;
@ -194,11 +189,12 @@ index ba830fb9e97..eedffb017b6 100644
+ return fseek(this->file(), __off, __way);
+#else
return lseek(this->fd(), __off, __way);
+#endif
#endif
+#endif
}
@@ -361,7 +393,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
int
@@ -361,7 +393,7 @@
streamsize
__basic_file<char>::showmanyc()
{
@ -207,7 +203,7 @@ index ba830fb9e97..eedffb017b6 100644
#ifdef FIONREAD
// Pipes and sockets.
int __num = 0;
@@ -371,7 +403,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
@@ -371,7 +403,7 @@
#endif
#endif
@ -216,7 +212,7 @@ index ba830fb9e97..eedffb017b6 100644
// Cheap test.
struct pollfd __pfd[1];
__pfd[0].fd = this->fd();
@@ -395,8 +427,12 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
@@ -395,9 +427,13 @@
struct stat __buffer;
const int __err = fstat(this->fd(), &__buffer);
if (!__err && _GLIBCXX_ISREG(__buffer.st_mode))
@ -225,15 +221,14 @@ index ba830fb9e97..eedffb017b6 100644
+#else
return __buffer.st_size - lseek(this->fd(), 0, ios_base::cur);
#endif
+#endif
#endif
+#endif
return 0;
}
diff --git a/libstdc++-v3/configure b/libstdc++-v3/configure
index 9f9c5a2419a..50c8f00a41c 100755
--- a/libstdc++-v3/configure
+++ b/libstdc++-v3/configure
@@ -16299,7 +16299,7 @@ $as_echo_n "checking for underlying I/O to use... " >&6; }
@@ -16301,7 +16301,7 @@
if test "${enable_cstdio+set}" = set; then :
enableval=$enable_cstdio;
case "$enableval" in
@ -242,7 +237,7 @@ index 9f9c5a2419a..50c8f00a41c 100755
*) as_fn_error $? "Unknown argument to enable/disable cstdio" "$LINENO" 5 ;;
esac
@@ -16309,16 +16309,23 @@ fi
@@ -16311,16 +16311,23 @@
@ -270,6 +265,3 @@ index 9f9c5a2419a..50c8f00a41c 100755
;;
esac
--
2.29.2

View File

@ -13,18 +13,16 @@ See commit 89dc5a9d5ed3e6b2ba6a4725bd51841ee758b6cd
Its been backported to gcc-10.2
---
gcc/config.host | 7 +++++-
gcc/config/aarch64/host-aarch64-darwin.c | 32 ++++++++++++++++++++++++
gcc/config/aarch64/x-darwin | 3 +++
gcc/config.host | 7 +++++-
gcc/config/aarch64/host-aarch64-darwin.c | 32 +++++++++++++++++++++++++++++++
gcc/config/aarch64/x-darwin | 3 ++
3 files changed, 41 insertions(+), 1 deletion(-)
create mode 100644 gcc/config/aarch64/host-aarch64-darwin.c
create mode 100644 gcc/config/aarch64/x-darwin
diff --git a/gcc/config.host b/gcc/config.host
index 84f0433e2ad..8489145e1b1 100644
--- a/gcc/config.host
+++ b/gcc/config.host
@@ -99,7 +99,8 @@ case ${host} in
@@ -99,7 +99,8 @@
esac
case ${host} in
@ -34,7 +32,7 @@ index 84f0433e2ad..8489145e1b1 100644
case ${target} in
aarch64*-*-*)
host_extra_gcc_objs="driver-aarch64.o"
@@ -251,6 +252,10 @@ case ${host} in
@@ -251,6 +252,10 @@
host_extra_gcc_objs="${host_extra_gcc_objs} driver-mingw32.o"
host_lto_plugin_soname=liblto_plugin-0.dll
;;
@ -45,9 +43,6 @@ index 84f0433e2ad..8489145e1b1 100644
i[34567]86-*-darwin* | x86_64-*-darwin*)
out_host_hook_obj="${out_host_hook_obj} host-i386-darwin.o"
host_xmake_file="${host_xmake_file} i386/x-darwin"
diff --git a/gcc/config/aarch64/host-aarch64-darwin.c b/gcc/config/aarch64/host-aarch64-darwin.c
new file mode 100644
index 00000000000..1a2cd4c9dab
--- /dev/null
+++ b/gcc/config/aarch64/host-aarch64-darwin.c
@@ -0,0 +1,32 @@
@ -83,15 +78,9 @@ index 00000000000..1a2cd4c9dab
+ exists just to include the generic config/host-darwin.h. */
+
+const struct host_hooks host_hooks = HOST_HOOKS_INITIALIZER;
diff --git a/gcc/config/aarch64/x-darwin b/gcc/config/aarch64/x-darwin
new file mode 100644
index 00000000000..6d788d5e89c
--- /dev/null
+++ b/gcc/config/aarch64/x-darwin
@@ -0,0 +1,3 @@
+host-aarch64-darwin.o : $(srcdir)/config/aarch64/host-aarch64-darwin.c
+ $(COMPILE) $<
+ $(POSTCOMPILE)
--
2.28.0

View File

@ -16,31 +16,29 @@ libraries, and is not necessary in a well constructed toolchain.
Signed-off-by: Keith Packard <keithp@keithp.com>
---
libstdc++-v3/include/bits/std_abs.h | 4 ++--
libstdc++-v3/include/c/cassert | 2 +-
libstdc++-v3/include/c/cctype | 2 +-
libstdc++-v3/include/c/cerrno | 2 +-
libstdc++-v3/include/c/cfloat | 2 +-
libstdc++-v3/include/c/climits | 2 +-
libstdc++-v3/include/c/clocale | 2 +-
libstdc++-v3/include/c/cmath | 2 +-
libstdc++-v3/include/c/csetjmp | 2 +-
libstdc++-v3/include/c/csignal | 2 +-
libstdc++-v3/include/c/cstdarg | 2 +-
libstdc++-v3/include/c/cstddef | 2 +-
libstdc++-v3/include/c/cstdio | 2 +-
libstdc++-v3/include/c/cstdlib | 2 +-
libstdc++-v3/include/c/cstring | 2 +-
libstdc++-v3/include/c/ctime | 2 +-
libstdc++-v3/include/c/cuchar | 2 +-
libstdc++-v3/include/c/cwchar | 2 +-
libstdc++-v3/include/c/cwctype | 2 +-
libstdc++-v3/include/c_global/cmath | 2 +-
libstdc++-v3/include/c_global/cstdlib | 2 +-
libstdc++-v3/include/bits/std_abs.h | 4 ++--
libstdc++-v3/include/c/cassert | 2 +-
libstdc++-v3/include/c/cctype | 2 +-
libstdc++-v3/include/c/cerrno | 2 +-
libstdc++-v3/include/c/cfloat | 2 +-
libstdc++-v3/include/c/climits | 2 +-
libstdc++-v3/include/c/clocale | 2 +-
libstdc++-v3/include/c/cmath | 2 +-
libstdc++-v3/include/c/csetjmp | 2 +-
libstdc++-v3/include/c/csignal | 2 +-
libstdc++-v3/include/c/cstdarg | 2 +-
libstdc++-v3/include/c/cstddef | 2 +-
libstdc++-v3/include/c/cstdio | 2 +-
libstdc++-v3/include/c/cstdlib | 2 +-
libstdc++-v3/include/c/cstring | 2 +-
libstdc++-v3/include/c/ctime | 2 +-
libstdc++-v3/include/c/cuchar | 2 +-
libstdc++-v3/include/c/cwchar | 2 +-
libstdc++-v3/include/c/cwctype | 2 +-
libstdc++-v3/include/c_global/cmath | 2 +-
libstdc++-v3/include/c_global/cstdlib | 2 +-
21 files changed, 22 insertions(+), 22 deletions(-)
diff --git a/libstdc++-v3/include/bits/std_abs.h b/libstdc++-v3/include/bits/std_abs.h
index ae6bfc1b1ac..249ed53a3ce 100644
--- a/libstdc++-v3/include/bits/std_abs.h
+++ b/libstdc++-v3/include/bits/std_abs.h
@@ -35,9 +35,9 @@
@ -55,8 +53,6 @@ index ae6bfc1b1ac..249ed53a3ce 100644
#endif
#undef _GLIBCXX_INCLUDE_NEXT_C_HEADERS
diff --git a/libstdc++-v3/include/c/cassert b/libstdc++-v3/include/c/cassert
index abd8c0538ef..3e1b97f1626 100644
--- a/libstdc++-v3/include/c/cassert
+++ b/libstdc++-v3/include/c/cassert
@@ -31,4 +31,4 @@
@ -65,8 +61,6 @@ index abd8c0538ef..3e1b97f1626 100644
#include <bits/c++config.h>
-#include_next <assert.h>
+#include <assert.h>
diff --git a/libstdc++-v3/include/c/cctype b/libstdc++-v3/include/c/cctype
index d53cb3d43f3..3def33f2077 100644
--- a/libstdc++-v3/include/c/cctype
+++ b/libstdc++-v3/include/c/cctype
@@ -31,6 +31,6 @@
@ -77,8 +71,6 @@ index d53cb3d43f3..3def33f2077 100644
+#include <ctype.h>
#endif
diff --git a/libstdc++-v3/include/c/cerrno b/libstdc++-v3/include/c/cerrno
index a8d3869efb6..3725137c115 100644
--- a/libstdc++-v3/include/c/cerrno
+++ b/libstdc++-v3/include/c/cerrno
@@ -41,7 +41,7 @@
@ -90,8 +82,6 @@ index a8d3869efb6..3725137c115 100644
// Adhere to section 17.4.1.2 clause 5 of ISO 14882:1998
#ifndef errno
diff --git a/libstdc++-v3/include/c/cfloat b/libstdc++-v3/include/c/cfloat
index 5865d427c20..df821645e4d 100644
--- a/libstdc++-v3/include/c/cfloat
+++ b/libstdc++-v3/include/c/cfloat
@@ -32,6 +32,6 @@
@ -102,8 +92,6 @@ index 5865d427c20..df821645e4d 100644
+#include <float.h>
#endif
diff --git a/libstdc++-v3/include/c/climits b/libstdc++-v3/include/c/climits
index 849afadeffc..b153fa8c27c 100644
--- a/libstdc++-v3/include/c/climits
+++ b/libstdc++-v3/include/c/climits
@@ -32,6 +32,6 @@
@ -114,8 +102,6 @@ index 849afadeffc..b153fa8c27c 100644
+#include <limits.h>
#endif
diff --git a/libstdc++-v3/include/c/clocale b/libstdc++-v3/include/c/clocale
index fc84745397d..5ebccdf5006 100644
--- a/libstdc++-v3/include/c/clocale
+++ b/libstdc++-v3/include/c/clocale
@@ -31,6 +31,6 @@
@ -126,8 +112,6 @@ index fc84745397d..5ebccdf5006 100644
+#include <locale.h>
#endif
diff --git a/libstdc++-v3/include/c/cmath b/libstdc++-v3/include/c/cmath
index 2c51f2f13bc..2fcd09e4ef9 100644
--- a/libstdc++-v3/include/c/cmath
+++ b/libstdc++-v3/include/c/cmath
@@ -33,7 +33,7 @@
@ -139,8 +123,6 @@ index 2c51f2f13bc..2fcd09e4ef9 100644
// Get rid of those macros defined in <math.h> in lieu of real functions.
#undef abs
diff --git a/libstdc++-v3/include/c/csetjmp b/libstdc++-v3/include/c/csetjmp
index db83610d95f..5abafcb160d 100644
--- a/libstdc++-v3/include/c/csetjmp
+++ b/libstdc++-v3/include/c/csetjmp
@@ -31,7 +31,7 @@
@ -152,8 +134,6 @@ index db83610d95f..5abafcb160d 100644
// Get rid of those macros defined in <setjmp.h> in lieu of real functions.
#undef longjmp
diff --git a/libstdc++-v3/include/c/csignal b/libstdc++-v3/include/c/csignal
index 986c5d3daca..77cb7634a69 100644
--- a/libstdc++-v3/include/c/csignal
+++ b/libstdc++-v3/include/c/csignal
@@ -31,6 +31,6 @@
@ -164,8 +144,6 @@ index 986c5d3daca..77cb7634a69 100644
+#include <signal.h>
#endif
diff --git a/libstdc++-v3/include/c/cstdarg b/libstdc++-v3/include/c/cstdarg
index 6b6e1850753..0dfc60cc6ba 100644
--- a/libstdc++-v3/include/c/cstdarg
+++ b/libstdc++-v3/include/c/cstdarg
@@ -32,6 +32,6 @@
@ -176,8 +154,6 @@ index 6b6e1850753..0dfc60cc6ba 100644
+#include <stdarg.h>
#endif
diff --git a/libstdc++-v3/include/c/cstddef b/libstdc++-v3/include/c/cstddef
index 7fc8ce34efc..fc90dfb3f18 100644
--- a/libstdc++-v3/include/c/cstddef
+++ b/libstdc++-v3/include/c/cstddef
@@ -35,6 +35,6 @@
@ -188,8 +164,6 @@ index 7fc8ce34efc..fc90dfb3f18 100644
+#include <stddef.h>
#endif
diff --git a/libstdc++-v3/include/c/cstdio b/libstdc++-v3/include/c/cstdio
index e943aa8e725..89bcd2d7391 100644
--- a/libstdc++-v3/include/c/cstdio
+++ b/libstdc++-v3/include/c/cstdio
@@ -31,7 +31,7 @@
@ -201,8 +175,6 @@ index e943aa8e725..89bcd2d7391 100644
// Get rid of those macros defined in <stdio.h> in lieu of real functions.
#undef clearerr
diff --git a/libstdc++-v3/include/c/cstdlib b/libstdc++-v3/include/c/cstdlib
index 86d9587482f..a26013286be 100644
--- a/libstdc++-v3/include/c/cstdlib
+++ b/libstdc++-v3/include/c/cstdlib
@@ -31,6 +31,6 @@
@ -213,8 +185,6 @@ index 86d9587482f..a26013286be 100644
+#include <stdlib.h>
#endif
diff --git a/libstdc++-v3/include/c/cstring b/libstdc++-v3/include/c/cstring
index 8b1e89b13b6..ca56c75e753 100644
--- a/libstdc++-v3/include/c/cstring
+++ b/libstdc++-v3/include/c/cstring
@@ -31,6 +31,6 @@
@ -225,8 +195,6 @@ index 8b1e89b13b6..ca56c75e753 100644
+#include <string.h>
#endif
diff --git a/libstdc++-v3/include/c/ctime b/libstdc++-v3/include/c/ctime
index 367172b21eb..135da2a25c4 100644
--- a/libstdc++-v3/include/c/ctime
+++ b/libstdc++-v3/include/c/ctime
@@ -31,6 +31,6 @@
@ -237,8 +205,6 @@ index 367172b21eb..135da2a25c4 100644
+#include <time.h>
#endif
diff --git a/libstdc++-v3/include/c/cuchar b/libstdc++-v3/include/c/cuchar
index e63b55ae12c..c79708fba6a 100644
--- a/libstdc++-v3/include/c/cuchar
+++ b/libstdc++-v3/include/c/cuchar
@@ -39,7 +39,7 @@
@ -250,8 +216,6 @@ index e63b55ae12c..c79708fba6a 100644
#endif
#endif // C++11
diff --git a/libstdc++-v3/include/c/cwchar b/libstdc++-v3/include/c/cwchar
index 05d4d70c6fc..0fc9a9a394a 100644
--- a/libstdc++-v3/include/c/cwchar
+++ b/libstdc++-v3/include/c/cwchar
@@ -36,7 +36,7 @@
@ -263,8 +227,6 @@ index 05d4d70c6fc..0fc9a9a394a 100644
#endif
// Need to do a bit of trickery here with mbstate_t as char_traits
diff --git a/libstdc++-v3/include/c/cwctype b/libstdc++-v3/include/c/cwctype
index 0626765d6c8..4839b693e46 100644
--- a/libstdc++-v3/include/c/cwctype
+++ b/libstdc++-v3/include/c/cwctype
@@ -34,7 +34,7 @@
@ -276,8 +238,6 @@ index 0626765d6c8..4839b693e46 100644
#endif
#endif
diff --git a/libstdc++-v3/include/c_global/cmath b/libstdc++-v3/include/c_global/cmath
index 39a6b036b8c..bfb6dcd4c88 100644
--- a/libstdc++-v3/include/c_global/cmath
+++ b/libstdc++-v3/include/c_global/cmath
@@ -42,7 +42,7 @@
@ -289,11 +249,9 @@ index 39a6b036b8c..bfb6dcd4c88 100644
#undef _GLIBCXX_INCLUDE_NEXT_C_HEADERS
#include <bits/std_abs.h>
diff --git a/libstdc++-v3/include/c_global/cstdlib b/libstdc++-v3/include/c_global/cstdlib
index 47b954cf2fa..996a87b372c 100644
--- a/libstdc++-v3/include/c_global/cstdlib
+++ b/libstdc++-v3/include/c_global/cstdlib
@@ -72,7 +72,7 @@ namespace std
@@ -72,7 +72,7 @@
// Need to ensure this finds the C library's <stdlib.h> not a libstdc++
// wrapper that might already be installed later in the include search path.
#define _GLIBCXX_INCLUDE_NEXT_C_HEADERS
@ -302,6 +260,3 @@ index 47b954cf2fa..996a87b372c 100644
#undef _GLIBCXX_INCLUDE_NEXT_C_HEADERS
#include <bits/std_abs.h>
--
2.30.0

View File

@ -43,15 +43,13 @@ libstdc++-v3/ChangeLog:
* src/c++17/Makefile.am (AM_CXXFLAGS): Add -nostdinc++.
* src/c++17/Makefile.in: Regenerate.
---
libstdc++-v3/src/c++17/Makefile.am | 2 +-
libstdc++-v3/src/c++17/Makefile.in | 2 +-
libstdc++-v3/src/c++17/Makefile.am | 2 +-
libstdc++-v3/src/c++17/Makefile.in | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/libstdc++-v3/src/c++17/Makefile.am b/libstdc++-v3/src/c++17/Makefile.am
index f08553a1dd78..3d53f652fac9 100644
--- a/libstdc++-v3/src/c++17/Makefile.am
+++ b/libstdc++-v3/src/c++17/Makefile.am
@@ -79,7 +79,7 @@ endif
@@ -79,7 +79,7 @@
# OPTIMIZE_CXXFLAGS on the compile line so that -O2 can be overridden
# as the occasion calls for it.
AM_CXXFLAGS = \
@ -60,11 +58,9 @@ index f08553a1dd78..3d53f652fac9 100644
$(glibcxx_lt_pic_flag) $(glibcxx_compiler_shared_flag) \
$(XTEMPLATE_FLAGS) $(VTV_CXXFLAGS) \
$(WARN_CXXFLAGS) $(OPTIMIZE_CXXFLAGS) $(CONFIG_CXXFLAGS) \
diff --git a/libstdc++-v3/src/c++17/Makefile.in b/libstdc++-v3/src/c++17/Makefile.in
index 63984ecd52ad..8c02be6514f8 100644
--- a/libstdc++-v3/src/c++17/Makefile.in
+++ b/libstdc++-v3/src/c++17/Makefile.in
@@ -455,7 +455,7 @@ libc__17convenience_la_SOURCES = $(sources) $(inst_sources)
@@ -455,7 +455,7 @@
# OPTIMIZE_CXXFLAGS on the compile line so that -O2 can be overridden
# as the occasion calls for it.
AM_CXXFLAGS = \
@ -73,6 +69,3 @@ index 63984ecd52ad..8c02be6514f8 100644
$(glibcxx_lt_pic_flag) $(glibcxx_compiler_shared_flag) \
$(XTEMPLATE_FLAGS) $(VTV_CXXFLAGS) \
$(WARN_CXXFLAGS) $(OPTIMIZE_CXXFLAGS) $(CONFIG_CXXFLAGS) \
--
2.34.1

View File

@ -14,18 +14,16 @@ gcc/ChangeLog:
* config/aarch64/host-aarch64-darwin.c: New file.
* config/aarch64/x-darwin: New file.
---
gcc/config.host | 7 ++++-
gcc/config/aarch64/host-aarch64-darwin.c | 33 ++++++++++++++++++++++++
gcc/config/aarch64/x-darwin | 3 +++
gcc/config.host | 7 +++++-
gcc/config/aarch64/host-aarch64-darwin.c | 33 +++++++++++++++++++++++++++++++
gcc/config/aarch64/x-darwin | 3 ++
3 files changed, 42 insertions(+), 1 deletion(-)
create mode 100644 gcc/config/aarch64/host-aarch64-darwin.c
create mode 100644 gcc/config/aarch64/x-darwin
diff --git a/gcc/config.host b/gcc/config.host
index 0a02c33cc80..81ff7ed1043 100644
--- a/gcc/config.host
+++ b/gcc/config.host
@@ -99,7 +99,8 @@ case ${host} in
@@ -99,7 +99,8 @@
esac
case ${host} in
@ -35,7 +33,7 @@ index 0a02c33cc80..81ff7ed1043 100644
case ${target} in
aarch64*-*-*)
host_extra_gcc_objs="driver-aarch64.o"
@@ -251,6 +252,10 @@ case ${host} in
@@ -251,6 +252,10 @@
host_extra_gcc_objs="${host_extra_gcc_objs} driver-mingw32.o"
host_lto_plugin_soname=liblto_plugin.dll
;;
@ -46,9 +44,6 @@ index 0a02c33cc80..81ff7ed1043 100644
i[34567]86-*-darwin* | x86_64-*-darwin*)
out_host_hook_obj="${out_host_hook_obj} host-i386-darwin.o"
host_xmake_file="${host_xmake_file} i386/x-darwin"
diff --git a/gcc/config/aarch64/host-aarch64-darwin.c b/gcc/config/aarch64/host-aarch64-darwin.c
new file mode 100644
index 00000000000..d70f2df3bf1
--- /dev/null
+++ b/gcc/config/aarch64/host-aarch64-darwin.c
@@ -0,0 +1,33 @@
@ -85,15 +80,9 @@ index 00000000000..d70f2df3bf1
+ exists just to include the generic config/host-darwin.h. */
+
+const struct host_hooks host_hooks = HOST_HOOKS_INITIALIZER;
diff --git a/gcc/config/aarch64/x-darwin b/gcc/config/aarch64/x-darwin
new file mode 100644
index 00000000000..6d788d5e89c
--- /dev/null
+++ b/gcc/config/aarch64/x-darwin
@@ -0,0 +1,3 @@
+host-aarch64-darwin.o : $(srcdir)/config/aarch64/host-aarch64-darwin.c
+ $(COMPILE) $<
+ $(POSTCOMPILE)
--
2.34.1

Some files were not shown because too many files have changed in this diff Show More