Run patches thru manage-packages -P

This refreshes the line numbers, removes any fuzz (which would make any
future forward ports easier) and standardizes the patch/file headers
(which makes them easier to read).

Signed-off-by: Alexey Neyman <stilor@att.net>
This commit is contained in:
Alexey Neyman 2022-02-10 18:00:59 -08:00
parent 1210b0c2f4
commit 86c2982568
191 changed files with 1917 additions and 2835 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -15,7 +15,7 @@ Change-Id: I69204a72f853f5263dffedc448379d75ed4eca2e
--- a/bfd/peXXigen.c --- a/bfd/peXXigen.c
+++ b/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 */ #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) rsrc_cmp (bfd_boolean is_name, rsrc_entry * a, rsrc_entry * b)
--- a/gold/gold-threads.cc --- a/gold/gold-threads.cc
+++ b/gold/gold-threads.cc +++ b/gold/gold-threads.cc
@@ -284,9 +284,18 @@ Condvar::~Condvar() @@ -284,9 +284,18 @@
class Once_initialize class Once_initialize
{ {
public: public:

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -15,7 +15,7 @@ Change-Id: I69204a72f853f5263dffedc448379d75ed4eca2e
--- a/bfd/peXXigen.c --- a/bfd/peXXigen.c
+++ b/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 */ #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) rsrc_cmp (bfd_boolean is_name, rsrc_entry * a, rsrc_entry * b)
--- a/gold/gold-threads.cc --- a/gold/gold-threads.cc
+++ b/gold/gold-threads.cc +++ b/gold/gold-threads.cc
@@ -284,9 +284,18 @@ Condvar::~Condvar() @@ -284,9 +284,18 @@
class Once_initialize class Once_initialize
{ {
public: public:

View File

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

View File

@ -85,7 +85,7 @@ Signed-off-by: Scott Garman <scott.a.garman@intel.com>
--- a/ld/configure --- a/ld/configure
+++ b/ld/configure +++ b/ld/configure
@@ -826,6 +826,7 @@ with_lib_path @@ -826,6 +826,7 @@
enable_targets enable_targets
enable_64_bit_bfd enable_64_bit_bfd
with_sysroot with_sysroot
@ -93,7 +93,7 @@ Signed-off-by: Scott Garman <scott.a.garman@intel.com>
enable_gold enable_gold
enable_got enable_got
enable_compressed_debug_sections enable_compressed_debug_sections
@@ -1493,6 +1494,8 @@ Optional Features: @@ -1493,6 +1494,8 @@
--disable-largefile omit support for large files --disable-largefile omit support for large files
--enable-targets alternative target configurations --enable-targets alternative target configurations
--enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes) --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-gold[=ARG] build gold [ARG={default,yes,no}]
--enable-got=<type> GOT handling scheme (target, single, negative, --enable-got=<type> GOT handling scheme (target, single, negative,
multigot) multigot)
@@ -15814,7 +15817,18 @@ else @@ -15814,7 +15817,18 @@
fi fi
@ -123,7 +123,7 @@ Signed-off-by: Scott Garman <scott.a.garman@intel.com>
if test "${enable_got+set}" = set; then : if test "${enable_got+set}" = set; then :
--- a/ld/configure.ac --- a/ld/configure.ac
+++ b/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)
AC_SUBST(TARGET_SYSTEM_ROOT_DEFINE) 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. dnl "installed_linker" is the installed BFD linker name.
--- a/ld/ld.h --- a/ld/ld.h
+++ b/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). */ /* If set, display the target memory usage (per memory region). */
bfd_boolean print_memory_usage; bfd_boolean print_memory_usage;
@ -159,7 +159,7 @@ Signed-off-by: Scott Garman <scott.a.garman@intel.com>
in the linker script. */ in the linker script. */
--- a/ld/ld.texi --- a/ld/ld.texi
+++ b/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 Passing @code{none} for @var{style} disables the setting from any
@code{--build-id} options earlier on the command line. @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 @c man end
--- a/ld/ldfile.c --- a/ld/ldfile.c
+++ b/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); new_dirs->name = concat (ld_sysroot, name + strlen ("$SYSROOT"), (const char *) NULL);
else else
new_dirs->name = xstrdup (name); 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. */ /* Try to open a BFD for a lang_input_statement. */
--- a/ld/ldlex.h --- a/ld/ldlex.h
+++ b/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,
OPTION_NON_CONTIGUOUS_REGIONS_WARNINGS, OPTION_NON_CONTIGUOUS_REGIONS_WARNINGS,
OPTION_DEPENDENCY_FILE, OPTION_DEPENDENCY_FILE,
@ -217,7 +217,7 @@ Signed-off-by: Scott Garman <scott.a.garman@intel.com>
/* The initial parser states. */ /* The initial parser states. */
--- a/ld/ldmain.c --- a/ld/ldmain.c
+++ b/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_mismatch = TRUE;
command_line.warn_search_mismatch = TRUE; command_line.warn_search_mismatch = TRUE;
command_line.check_section_addresses = -1; 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 COLLECT_NO_DEMANGLE. The gcc collect2 program will demangle the
--- a/ld/lexsup.c --- a/ld/lexsup.c
+++ b/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}, { {"no-print-map-discarded", no_argument, NULL, OPTION_NO_PRINT_MAP_DISCARDED},
'\0', NULL, N_("Do not show discarded sections in map file output"), '\0', NULL, N_("Do not show discarded sections in map file output"),
TWO_DASHES }, TWO_DASHES },
@ -243,7 +243,7 @@ Signed-off-by: Scott Garman <scott.a.garman@intel.com>
}; };
#define OPTION_COUNT ARRAY_SIZE (ld_options) #define OPTION_COUNT ARRAY_SIZE (ld_options)
@@ -584,6 +592,7 @@ parse_args (unsigned argc, char **argv) @@ -584,6 +592,7 @@
int ingroup = 0; int ingroup = 0;
char *default_dirlist = NULL; char *default_dirlist = NULL;
char *shortopts; char *shortopts;
@ -251,7 +251,7 @@ Signed-off-by: Scott Garman <scott.a.garman@intel.com>
struct option *longopts; struct option *longopts;
struct option *really_longopts; struct option *really_longopts;
int last_optind; int last_optind;
@@ -1591,6 +1600,14 @@ parse_args (unsigned argc, char **argv) @@ -1591,6 +1600,14 @@
} }
break; break;
@ -266,7 +266,7 @@ Signed-off-by: Scott Garman <scott.a.garman@intel.com>
case OPTION_PUSH_STATE: case OPTION_PUSH_STATE:
input_flags.pushed = xmemdup (&input_flags, input_flags.pushed = xmemdup (&input_flags,
sizeof (input_flags), sizeof (input_flags),
@@ -1681,6 +1698,10 @@ parse_args (unsigned argc, char **argv) @@ -1681,6 +1698,10 @@
command_line.soname = NULL; 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 * dwarf2.c (scan_unit_for_symbols): Add member entries to the
variable table. 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 --- a/bfd/dwarf2.c
+++ b/bfd/dwarf2.c +++ b/bfd/dwarf2.c
@@ -3404,7 +3404,8 @@ scan_unit_for_symbols (struct comp_unit *unit) @@ -3404,7 +3404,8 @@
else else
{ {
func = NULL; func = NULL;
@ -22,7 +24,7 @@ index b8f0008a10d..977bf43a6a1 100644
{ {
size_t amt = sizeof (struct varinfo); size_t amt = sizeof (struct varinfo);
var = (struct varinfo *) bfd_zalloc (abfd, amt); 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, spec_var = lookup_var_by_offset (attr.u.val,
unit->variable_table); unit->variable_table);
if (spec_var == NULL) if (spec_var == NULL)
@ -31,6 +33,3 @@ index b8f0008a10d..977bf43a6a1 100644
_bfd_error_handler (_("DWARF error: could not find " _bfd_error_handler (_("DWARF error: could not find "
"variable specification " "variable specification "
"at offset %lx"), "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.l: Likewise.
* testsuite/gas/arm/mve-vldr-vstr-bad.s: 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 --- a/gas/config/tc-arm.c
+++ b/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) if (skip_past_char (&p, '[') == FAIL)
{ {
@ -57,9 +62,6 @@ index a9aaffa3bdd..64475d66729 100644
{ {
/* Bare address - translate to PC-relative offset. */ /* Bare address - translate to PC-relative offset. */
inst.relocs[0].pc_rel = 1; 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 --- /dev/null
+++ b/gas/testsuite/gas/arm/mve-vldr-vstr-bad.d +++ b/gas/testsuite/gas/arm/mve-vldr-vstr-bad.d
@@ -0,0 +1,5 @@ @@ -0,0 +1,5 @@
@ -68,9 +70,6 @@ index 00000000000..8989688f0f3
+#error_output: mve-vldr-vstr-bad.l +#error_output: mve-vldr-vstr-bad.l
+ +
+.*: +file format .*arm.* +.*: +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 --- /dev/null
+++ b/gas/testsuite/gas/arm/mve-vldr-vstr-bad.l +++ b/gas/testsuite/gas/arm/mve-vldr-vstr-bad.l
@@ -0,0 +1,811 @@ @@ -0,0 +1,811 @@
@ -885,9 +884,6 @@ index 00000000000..2df3a37ac02
+[^:]*:30: Error: syntax error -- `vldrw.s32 q7,r14' +[^:]*:30: Error: syntax error -- `vldrw.s32 q7,r14'
+[^:]*:30: Error: syntax error -- `vldrw.u32 q7,r14' +[^:]*:30: Error: syntax error -- `vldrw.u32 q7,r14'
+[^:]*:30: Error: syntax error -- `vstrw.32 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 --- /dev/null
+++ b/gas/testsuite/gas/arm/mve-vldr-vstr-bad.s +++ b/gas/testsuite/gas/arm/mve-vldr-vstr-bad.s
@@ -0,0 +1,30 @@ @@ -0,0 +1,30 @@
@ -921,6 +917,3 @@ index 00000000000..c72c1296d2f
+vstrw.32 \op2, \op3 +vstrw.32 \op2, \op3
+.endr +.endr
+.endr +.endr
--
2.25.4

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -15,7 +15,7 @@ Change-Id: I69204a72f853f5263dffedc448379d75ed4eca2e
--- a/bfd/peXXigen.c --- a/bfd/peXXigen.c
+++ b/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 */ #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) rsrc_cmp (bfd_boolean is_name, rsrc_entry * a, rsrc_entry * b)
--- a/gold/gold-threads.cc --- a/gold/gold-threads.cc
+++ b/gold/gold-threads.cc +++ b/gold/gold-threads.cc
@@ -284,9 +284,18 @@ Condvar::~Condvar() @@ -284,9 +284,18 @@
class Once_initialize class Once_initialize
{ {
public: public:

View File

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

View File

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

View File

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

View File

@ -33,16 +33,16 @@ ld/
(cherry picked from commit 5a98fb7513b559e20dfebdbaa2a471afda3b4742) (cherry picked from commit 5a98fb7513b559e20dfebdbaa2a471afda3b4742)
(cherry picked from commit 7dc37e1e1209c80e0bab784df6b6bac335e836f2) (cherry picked from commit 7dc37e1e1209c80e0bab784df6b6bac335e836f2)
--- ---
bfd/plugin.c | 8 +++++++ bfd/plugin.c | 8 ++++++++
ld/testsuite/ld-plugin/lto.exp | 34 ++++++++++++++++++++++++++++++ ld/testsuite/ld-plugin/lto.exp | 34 ++++++++++++++++++++++++++++++++++
ld/testsuite/ld-plugin/pr28138-1.c | 6 ++++++ ld/testsuite/ld-plugin/pr28138-1.c | 6 ++++++
ld/testsuite/ld-plugin/pr28138-2.c | 6 ++++++ ld/testsuite/ld-plugin/pr28138-2.c | 6 ++++++
ld/testsuite/ld-plugin/pr28138-3.c | 6 ++++++ ld/testsuite/ld-plugin/pr28138-3.c | 6 ++++++
ld/testsuite/ld-plugin/pr28138-4.c | 6 ++++++ ld/testsuite/ld-plugin/pr28138-4.c | 6 ++++++
ld/testsuite/ld-plugin/pr28138-5.c | 6 ++++++ ld/testsuite/ld-plugin/pr28138-5.c | 6 ++++++
ld/testsuite/ld-plugin/pr28138-6.c | 6 ++++++ ld/testsuite/ld-plugin/pr28138-6.c | 6 ++++++
ld/testsuite/ld-plugin/pr28138-7.c | 6 ++++++ ld/testsuite/ld-plugin/pr28138-7.c | 6 ++++++
ld/testsuite/ld-plugin/pr28138.c | 20 ++++++++++++++++++ ld/testsuite/ld-plugin/pr28138.c | 20 ++++++++++++++++++++
10 files changed, 104 insertions(+) 10 files changed, 104 insertions(+)
create mode 100644 ld/testsuite/ld-plugin/pr28138-1.c create mode 100644 ld/testsuite/ld-plugin/pr28138-1.c
create mode 100644 ld/testsuite/ld-plugin/pr28138-2.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-7.c
create mode 100644 ld/testsuite/ld-plugin/pr28138.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 --- a/bfd/plugin.c
+++ b/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)) && !bfd_is_thin_archive (abfd->my_archive))
abfd = abfd->my_archive; abfd = abfd->my_archive;
@ -72,11 +70,9 @@ index 6cfa2b66470..3bab8febe88 100644
abfd->archive_plugin_fd_open_count--; abfd->archive_plugin_fd_open_count--;
/* Dup the archive plugin file descriptor for later use, which /* Dup the archive plugin file descriptor for later use, which
will be closed by _bfd_archive_close_and_cleanup. */ 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 --- a/ld/testsuite/ld-plugin/lto.exp
+++ b/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" set testname "Build liblto-11.a"
remote_file host delete "tmpdir/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"] 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 --- /dev/null
+++ b/ld/testsuite/ld-plugin/pr28138-1.c +++ b/ld/testsuite/ld-plugin/pr28138-1.c
@@ -0,0 +1,6 @@ @@ -0,0 +1,6 @@
@ -129,9 +122,6 @@ index 00000000000..51d119e1642
+{ +{
+ return 1 + a0(); + 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 --- /dev/null
+++ b/ld/testsuite/ld-plugin/pr28138-2.c +++ b/ld/testsuite/ld-plugin/pr28138-2.c
@@ -0,0 +1,6 @@ @@ -0,0 +1,6 @@
@ -141,9 +131,6 @@ index 00000000000..1120cd797e9
+{ +{
+ return 1 + a1(); + 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 --- /dev/null
+++ b/ld/testsuite/ld-plugin/pr28138-3.c +++ b/ld/testsuite/ld-plugin/pr28138-3.c
@@ -0,0 +1,6 @@ @@ -0,0 +1,6 @@
@ -153,9 +140,6 @@ index 00000000000..ec464947ee6
+{ +{
+ return 1 + a2(); + 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 --- /dev/null
+++ b/ld/testsuite/ld-plugin/pr28138-4.c +++ b/ld/testsuite/ld-plugin/pr28138-4.c
@@ -0,0 +1,6 @@ @@ -0,0 +1,6 @@
@ -165,9 +149,6 @@ index 00000000000..475701b2c5c
+{ +{
+ return 1 + a3(); + 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 --- /dev/null
+++ b/ld/testsuite/ld-plugin/pr28138-5.c +++ b/ld/testsuite/ld-plugin/pr28138-5.c
@@ -0,0 +1,6 @@ @@ -0,0 +1,6 @@
@ -177,9 +158,6 @@ index 00000000000..e24f86c363e
+{ +{
+ return 1 + a4(); + 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 --- /dev/null
+++ b/ld/testsuite/ld-plugin/pr28138-6.c +++ b/ld/testsuite/ld-plugin/pr28138-6.c
@@ -0,0 +1,6 @@ @@ -0,0 +1,6 @@
@ -189,9 +167,6 @@ index 00000000000..b5b938bdb21
+{ +{
+ return 1 + a5(); + 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 --- /dev/null
+++ b/ld/testsuite/ld-plugin/pr28138-7.c +++ b/ld/testsuite/ld-plugin/pr28138-7.c
@@ -0,0 +1,6 @@ @@ -0,0 +1,6 @@
@ -201,9 +176,6 @@ index 00000000000..4ef75bf0f0c
+{ +{
+ return 1 + a6(); + 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 --- /dev/null
+++ b/ld/testsuite/ld-plugin/pr28138.c +++ b/ld/testsuite/ld-plugin/pr28138.c
@@ -0,0 +1,20 @@ @@ -0,0 +1,20 @@
@ -227,6 +199,3 @@ index 00000000000..68252c9f382
+ } + }
+ return 1; + 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) (cherry picked from commit 0d62064867c74286360e821b75ef6799bedc4b34)
--- ---
binutils/ar.c | 3 +++ binutils/ar.c | 3 +++
binutils/objcopy.c | 1 + binutils/objcopy.c | 1 +
2 files changed, 4 insertions(+) 2 files changed, 4 insertions(+)
diff --git a/binutils/ar.c b/binutils/ar.c
index 5d6976c7027..8885585ef75 100644
--- a/binutils/ar.c --- a/binutils/ar.c
+++ b/binutils/ar.c +++ b/binutils/ar.c
@@ -1180,6 +1180,9 @@ extract_file (bfd *abfd) @@ -1180,6 +1180,9 @@
bfd_size_type size; bfd_size_type size;
struct stat buf; struct stat buf;
@ -34,11 +32,9 @@ index 5d6976c7027..8885585ef75 100644
if (bfd_stat_arch_elt (abfd, &buf) != 0) if (bfd_stat_arch_elt (abfd, &buf) != 0)
/* xgettext:c-format */ /* xgettext:c-format */
fatal (_("internal stat error on %s"), bfd_get_filename (abfd)); 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 --- a/binutils/objcopy.c
+++ b/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) if (preserve_dates)
{ {
@ -46,6 +42,3 @@ index a6c2e0dcc26..fd7557fe433 100644
stat_status = bfd_stat_arch_elt (this_element, &buf); stat_status = bfd_stat_arch_elt (this_element, &buf);
if (stat_status != 0) if (stat_status != 0)
--
2.27.0

View File

@ -19,12 +19,10 @@ ld/ChangeLog:
Signed-off-by: Dimitar Dimitrov <dimitar@dinux.eu> Signed-off-by: Dimitar Dimitrov <dimitar@dinux.eu>
(cherry picked from commit 5109a7bd9b87bdad530f2ebf97036e6087b4504d) (cherry picked from commit 5109a7bd9b87bdad530f2ebf97036e6087b4504d)
--- ---
ld/ChangeLog | 5 +++++ ld/ChangeLog | 5 +++++
ld/scripttempl/pru.sc | 7 +++---- ld/scripttempl/pru.sc | 7 +++----
2 files changed, 8 insertions(+), 4 deletions(-) 2 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 5048b5b6a17..ee3259a06de 100644
--- a/ld/ChangeLog --- a/ld/ChangeLog
+++ b/ld/ChangeLog +++ b/ld/ChangeLog
@@ -1,3 +1,8 @@ @@ -1,3 +1,8 @@
@ -36,11 +34,9 @@ index 5048b5b6a17..ee3259a06de 100644
2021-07-18 Nick Clifton <nickc@redhat.com> 2021-07-18 Nick Clifton <nickc@redhat.com>
* 2.37 release. * 2.37 release.
diff --git a/ld/scripttempl/pru.sc b/ld/scripttempl/pru.sc
index b2c941b7911..97d8be0a0a4 100644
--- a/ld/scripttempl/pru.sc --- a/ld/scripttempl/pru.sc
+++ b/ld/scripttempl/pru.sc +++ b/ld/scripttempl/pru.sc
@@ -151,11 +151,10 @@ SECTIONS @@ -151,11 +151,10 @@
${RELOCATING+ PROVIDE (_data_end = .) ; } ${RELOCATING+ PROVIDE (_data_end = .) ; }
} ${RELOCATING+ > dmem } } ${RELOCATING+ > dmem }
@ -55,6 +51,3 @@ index b2c941b7911..97d8be0a0a4 100644
KEEP (*(.resource_table)) KEEP (*(.resource_table))
} ${RELOCATING+ > dmem} } ${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) (cherry picked from commit 6d661cdc5be46e890ed9255e749806f46a88e26c)
--- ---
bfd/format.c | 1 + bfd/format.c | 1 +
1 file changed, 1 insertion(+) 1 file changed, 1 insertion(+)
diff --git a/bfd/format.c b/bfd/format.c
index 5d08d1d642c..408c984690e 100644
--- a/bfd/format.c --- a/bfd/format.c
+++ b/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->tdata.any = NULL;
abfd->arch_info = &bfd_default_arch_struct; abfd->arch_info = &bfd_default_arch_struct;
abfd->flags &= BFD_FLAGS_SAVED; abfd->flags &= BFD_FLAGS_SAVED;
@ -26,6 +24,3 @@ index 5d08d1d642c..408c984690e 100644
bfd_section_list_clear (abfd); bfd_section_list_clear (abfd);
} }
--
2.27.0

View File

@ -20,14 +20,12 @@ more than one unit.
(cherry picked from commit e7f024765a48fba4452535a5fc006a7e858730fd) (cherry picked from commit e7f024765a48fba4452535a5fc006a7e858730fd)
--- ---
binutils/dwarf.c | 1 - binutils/dwarf.c | 1 -
1 file changed, 1 deletion(-) 1 file changed, 1 deletion(-)
diff --git a/binutils/dwarf.c b/binutils/dwarf.c
index 1e7f4db7b7c..e73078f496f 100644
--- a/binutils/dwarf.c --- a/binutils/dwarf.c
+++ b/binutils/dwarf.c +++ b/binutils/dwarf.c
@@ -7727,7 +7727,6 @@ display_debug_ranges (struct dwarf_section *section, @@ -7727,7 +7727,6 @@
return 0; return 0;
} }
} }
@ -35,6 +33,3 @@ index 1e7f4db7b7c..e73078f496f 100644
/* Get and check the version number. */ /* Get and check the version number. */
SAFE_BYTE_GET_AND_INC (version, start, 2, finish); 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) (cherry picked from commit 068a039b8bd7c7386bb0d88f0ae245b0fe4132e9)
--- ---
gold/incremental.cc | 2 +- gold/incremental.cc | 2 +-
gold/options.h | 2 +- gold/options.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-) 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 --- a/gold/incremental.cc
+++ b/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_sections& out_sections(this->output_sections());
const Output_section* os = out_sections[shndx]; const Output_section* os = out_sections[shndx];
if (os == NULL) if (os == NULL)
@ -27,11 +25,9 @@ index 52941985e6f..327a1527a29 100644
return os->name(); return os->name();
} }
diff --git a/gold/options.h b/gold/options.h
index 757ebf18fec..47299a37834 100644
--- a/gold/options.h --- a/gold/options.h
+++ b/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 // We need a default constructor because we put this in a
// std::vector. // std::vector.
Search_directory() Search_directory()
@ -40,6 +36,3 @@ index 757ebf18fec..47299a37834 100644
{ } { }
// This is the usual constructor. // 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) (cherry picked from commit f2f105f518413ea3e4c212f89585f9a8a5dddcdd)
--- ---
binutils/objdump.c | 2 +- binutils/objdump.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-) 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 --- a/binutils/objdump.c
+++ b/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 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. */ 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)); 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) (cherry picked from commit f85dcfc3af9cf7c2859241253f1d37b1133abea2)
--- ---
gold/layout.cc | 3 ++- gold/layout.cc | 3 ++-
gold/layout.h | 9 +++++++-- gold/layout.h | 9 +++++++--
2 files changed, 9 insertions(+), 3 deletions(-) 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 --- a/gold/layout.cc
+++ b/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) if (allocate)
{ {
flags = elfcpp::SHF_ALLOC; flags = elfcpp::SHF_ALLOC;
@ -32,11 +30,9 @@ index a27cb071c75..38e9bceec7e 100644
} }
Output_section* os = this->choose_output_section(NULL, section_name, Output_section* os = this->choose_output_section(NULL, section_name,
elfcpp::SHT_NOTE, elfcpp::SHT_NOTE,
diff --git a/gold/layout.h b/gold/layout.h
index 0b378003679..05c31714e47 100644
--- a/gold/layout.h --- a/gold/layout.h
+++ b/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. // linker can pick it up quickly.
ORDER_INTERP, ORDER_INTERP,
@ -52,6 +48,3 @@ index 0b378003679..05c31714e47 100644
ORDER_RO_NOTE, ORDER_RO_NOTE,
// Put read-only sections used by the dynamic linker early in the // 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) (cherry picked from commit ced10cb78d01652f9e1bb1d1e465327dfe1debaa)
--- ---
ld/ldelf.c | 1 - ld/ldelf.c | 1 -
1 file changed, 1 deletion(-) 1 file changed, 1 deletion(-)
diff --git a/ld/ldelf.c b/ld/ldelf.c
index 21e655bb55c..0c39eb6024f 100644
--- a/ld/ldelf.c --- a/ld/ldelf.c
+++ b/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 if (abfd->xvec->flavour == bfd_target_elf_flavour
&& !bfd_input_just_syms (abfd) && !bfd_input_just_syms (abfd)
&& elf_tdata (abfd) != NULL && elf_tdata (abfd) != NULL
@ -31,6 +29,3 @@ index 21e655bb55c..0c39eb6024f 100644
/* FIXME: Maybe check for other non-supportable types as well ? */ /* 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_EXEC
|| (elf_tdata (abfd)->elf_header->e_type == ET_DYN || (elf_tdata (abfd)->elf_header->e_type == ET_DYN
--
2.27.0

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 @@ @@ -37,26 +37,26 @@
{ {
public: public:
@ -9,14 +13,14 @@
void * operator new( DUMA_SIZE_T , const std::nothrow_t & ) throw(); void * operator new( DUMA_SIZE_T , const std::nothrow_t & ) throw();
void operator delete( void * ) throw(); void operator delete( void * ) throw();
void operator delete( void * , const std::nothrow_t & ) throw(); void operator delete( void * , const std::nothrow_t & ) throw();
/* 2x : ARRAY OBJECT FORM - NO DEBUG INFORMATION */ /* 2x : ARRAY OBJECT FORM - NO DEBUG INFORMATION */
- void * operator new[]( DUMA_SIZE_T ) throw(std::bad_alloc); - 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 ) NEW_THROW_SPEC;
void * operator new[]( DUMA_SIZE_T , const std::nothrow_t & ) throw(); void * operator new[]( DUMA_SIZE_T , const std::nothrow_t & ) throw();
void operator delete[]( void * ) throw(); void operator delete[]( void * ) throw();
void operator delete[]( void *, const std::nothrow_t & ) throw(); void operator delete[]( void *, const std::nothrow_t & ) throw();
#ifndef DUMA_NO_LEAKDETECTION #ifndef DUMA_NO_LEAKDETECTION
/* 3x : SINGLE OBJECT FORM - WITH DEBUG INFORMATION */ /* 3x : SINGLE 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 ) throw( std::bad_alloc );
@ -24,7 +28,7 @@
void * operator new( DUMA_SIZE_T, const std::nothrow_t &, const char *, int ) throw(); 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 char *, int ) throw();
void operator delete( void *, const std::nothrow_t &, const char *, int ) throw(); void operator delete( void *, const std::nothrow_t &, const char *, int ) throw();
/* 4x : ARRAY OBJECT FORM - WITH DEBUG INFORMATION */ /* 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 ) throw( std::bad_alloc );
+ void * operator new[]( DUMA_SIZE_T, const char *, int ) NEW_THROW_SPEC; + 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(); void operator delete[]( void *, const std::nothrow_t &, const char *, int ) throw();
@@ -70,7 +70,7 @@ @@ -70,7 +70,7 @@
/* 1x : SINGLE OBJECT FORM - NO DEBUG INFORMATION */ /* 1x : SINGLE OBJECT FORM - NO DEBUG INFORMATION */
void * optest::operator new( DUMA_SIZE_T s ) void * optest::operator new( DUMA_SIZE_T s )
-throw(std::bad_alloc) -throw(std::bad_alloc)
+NEW_THROW_SPEC +NEW_THROW_SPEC
@ -41,7 +45,7 @@
(void)s; (void)s;
return ::new optest; return ::new optest;
@@ -101,7 +101,7 @@ @@ -101,7 +101,7 @@
/* 2x : ARRAY OBJECT FORM - NO DEBUG INFORMATION */ /* 2x : ARRAY OBJECT FORM - NO DEBUG INFORMATION */
void * optest::operator new[]( DUMA_SIZE_T s ) void * optest::operator new[]( DUMA_SIZE_T s )
-throw(std::bad_alloc) -throw(std::bad_alloc)
@ -50,7 +54,7 @@
return ::new optest[ s / sizeof(optest) ]; // "s / sizeof()" not correct but works for this test return ::new optest[ s / sizeof(optest) ]; // "s / sizeof()" not correct but works for this test
} }
@@ -129,7 +129,7 @@ @@ -129,7 +129,7 @@
/* 3x : SINGLE OBJECT FORM - WITH DEBUG INFORMATION */ /* 3x : SINGLE OBJECT FORM - WITH DEBUG INFORMATION */
void * optest::operator new( DUMA_SIZE_T s, const char * f, int l ) void * optest::operator new( DUMA_SIZE_T s, const char * f, int l )
-throw( std::bad_alloc ) -throw( std::bad_alloc )
@ -59,7 +63,7 @@
(void)s; (void)s;
return ::new(f,l) optest; return ::new(f,l) optest;
@@ -157,7 +157,7 @@ @@ -157,7 +157,7 @@
/* 4x : ARRAY OBJECT FORM - WITH DEBUG INFORMATION */ /* 4x : ARRAY OBJECT FORM - WITH DEBUG INFORMATION */
void * optest::operator new[]( DUMA_SIZE_T s, const char * f, int l ) void * optest::operator new[]( DUMA_SIZE_T s, const char * f, int l )
-throw( std::bad_alloc ) -throw( std::bad_alloc )

View File

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

View File

@ -4,7 +4,7 @@
--- a/contrib/regression/objs-gcc.sh --- a/contrib/regression/objs-gcc.sh
+++ b/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 then
make all-gdb all-dejagnu all-ld || exit 1 make all-gdb all-dejagnu all-ld || exit 1
make install-gdb install-dejagnu install-ld || exit 1 make install-gdb install-dejagnu install-ld || exit 1

View File

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

View File

@ -4,7 +4,7 @@
--- a/libcc1/connection.cc --- a/libcc1/connection.cc
+++ b/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 <string>
#include <unistd.h> #include <unistd.h>
#include <sys/types.h> #include <sys/types.h>

View File

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

View File

@ -4,7 +4,7 @@
--- a/libgfortran/io/close.c --- a/libgfortran/io/close.c
+++ b/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 #if !HAVE_UNLINK_OPEN_FILE
#include <string.h> #include <string.h>
#endif #endif

View File

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

View File

@ -37,7 +37,7 @@ Date: Wed Jul 29 11:28:29 2015 +0300
--- a/gcc/config.gcc --- a/gcc/config.gcc
+++ b/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" extra_options="${extra_options} netbsd.opt netbsd-elf.opt"
;; ;;
aarch64*-*-linux*) aarch64*-*-linux*)
@ -57,7 +57,7 @@ Date: Wed Jul 29 11:28:29 2015 +0300
esac esac
aarch64_multilibs="${with_multilib_list}" aarch64_multilibs="${with_multilib_list}"
if test "$aarch64_multilibs" = "default"; then 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" 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" extra_options="${extra_options} linux-android.opt"
case ${target} in 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" #define MUSL_DYNAMIC_LINKER "/lib/ld-musl-aarch64%{mbig-endian:_be}%{mabi=ilp32:_ilp32}.so.1"
--- a/gcc/config/arm/arm.h --- a/gcc/config/arm/arm.h
+++ b/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 \ #define CASE_VECTOR_PC_RELATIVE ((TARGET_THUMB2 \
|| (TARGET_THUMB1 \ || (TARGET_THUMB1 \
@ -174,7 +174,7 @@ Date: Wed Jul 29 11:28:29 2015 +0300
: min >= -256 && max < 256 \ : min >= -256 && max < 256 \
--- a/gcc/config/arm/arm.md --- a/gcc/config/arm/arm.md
+++ b/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 2 "const_int_operand") ; total range
(match_operand:SI 3 "" "") ; table label (match_operand:SI 3 "" "") ; table label
(match_operand:SI 4 "" "")] ; Out of range 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; enum insn_code code;
--- a/gcc/config/arm/arm.opt --- a/gcc/config/arm/arm.opt
+++ b/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) Target Report Mask(INTERWORK)
Support calls between Thumb and ARM instruction sets. 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, \ LINUX_OR_ANDROID_LD (GNU_USER_TARGET_LIB_SPEC, \
--- a/gcc/config/i386/gnu-user.h --- a/gcc/config/i386/gnu-user.h
+++ b/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 When the -shared link option is used a final link is not being
done. */ done. */
@ -268,7 +268,7 @@ Date: Wed Jul 29 11:28:29 2015 +0300
#define SUBTARGET_EXTRA_SPECS \ #define SUBTARGET_EXTRA_SPECS \
--- a/gcc/config/i386/gnu-user64.h --- a/gcc/config/i386/gnu-user64.h
+++ b/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" #define SPEC_X32 "mx32"
#endif #endif
@ -282,7 +282,7 @@ Date: Wed Jul 29 11:28:29 2015 +0300
%{" SPEC_64 ":--64} \ %{" SPEC_64 ":--64} \
--- a/gcc/config/i386/linux-common.h --- a/gcc/config/i386/linux-common.h
+++ b/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 #undef CC1_SPEC
#define CC1_SPEC \ #define CC1_SPEC \
LINUX_OR_ANDROID_CC (GNU_USER_TARGET_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 + LINUX_DRIVER_SELF_SPECS
--- a/gcc/config/mips/gnu-user.h --- a/gcc/config/mips/gnu-user.h
+++ b/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. */ \ /* The GNU C++ standard library requires this. */ \
if (c_dialect_cxx ()) \ if (c_dialect_cxx ()) \
builtin_define ("_GNU_SOURCE"); \ builtin_define ("_GNU_SOURCE"); \
@ -385,7 +385,7 @@ Date: Wed Jul 29 11:28:29 2015 +0300
} while (0) } while (0)
#undef SUBTARGET_CPP_SPEC #undef SUBTARGET_CPP_SPEC
@@ -71,7 +72,8 @@ along with GCC; see the file COPYING3. @@ -71,7 +72,8 @@
#undef SUBTARGET_ASM_SPEC #undef SUBTARGET_ASM_SPEC
#define 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 /* The MIPS assembler has different syntax for .set. We set it to
.dummy to trap any errors. */ .dummy to trap any errors. */
@@ -120,7 +122,7 @@ extern const char *host_detect_local_cpu @@ -120,7 +122,7 @@
#endif #endif
#define LINUX_DRIVER_SELF_SPECS \ #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. */ \ specs handling by removing a redundant option. */ \
--- a/gcc/config/mips/linux-common.h --- a/gcc/config/mips/linux-common.h
+++ b/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 #undef SUBTARGET_CC1_SPEC
#define SUBTARGET_CC1_SPEC \ #define SUBTARGET_CC1_SPEC \
LINUX_OR_ANDROID_CC (GNU_USER_TARGET_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 +MULTILIB_REQUIRED = mabi=32/mips32 mabi=32/mips32r2 mabi=32/mips32r6 mips64r2 mips64r6
--- a/libgcc/gthr-posix.h --- a/libgcc/gthr-posix.h
+++ b/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 1
#define __GTHREADS_CXX0X 1 #define __GTHREADS_CXX0X 1
@ -452,7 +452,7 @@ Date: Wed Jul 29 11:28:29 2015 +0300
#if ((defined(_LIBOBJC) || defined(_LIBOBJC_WEAK)) \ #if ((defined(_LIBOBJC) || defined(_LIBOBJC_WEAK)) \
--- a/libstdc++-v3/configure --- a/libstdc++-v3/configure
+++ b/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 <sys/syscall.h>
#include <unistd.h> #include <unistd.h>
int lk; int lk;
@ -494,7 +494,7 @@ Date: Wed Jul 29 11:28:29 2015 +0300
namespace std _GLIBCXX_VISIBILITY(default) namespace std _GLIBCXX_VISIBILITY(default)
{ {
_GLIBCXX_BEGIN_NAMESPACE_VERSION _GLIBCXX_BEGIN_NAMESPACE_VERSION
@@ -1104,7 +1118,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION @@ -1104,7 +1118,7 @@
* @return @a __hi. * @return @a __hi.
*/ */
virtual const char* virtual const char*
@ -503,7 +503,7 @@ Date: Wed Jul 29 11:28:29 2015 +0300
{ {
if (__builtin_expect(__hi != __lo, true)) if (__builtin_expect(__hi != __lo, true))
__builtin_memcpy(__to, __lo, __hi - __lo); __builtin_memcpy(__to, __lo, __hi - __lo);
@@ -1167,7 +1181,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION @@ -1167,7 +1181,7 @@
private: private:
void _M_narrow_init() const; 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/freebsd.h | 4 +++
gcc/config/gnu-user.h | 4 +++ gcc/config/gnu-user.h | 4 +++
gcc/config/openbsd.h | 4 +++ gcc/config/openbsd.h | 4 +++
gcc/config/rs6000/sysv4.h | 6 ++++-
gcc/config/sol2.h | 4 +++ gcc/config/sol2.h | 4 +++
gcc/configure | 36 +++++++++++++++++++++++++++++++++ gcc/configure | 36 +++++++++++++++++++++++++++++++++
gcc/configure.ac | 29 ++++++++++++++++++++++++++ gcc/configure.ac | 29 ++++++++++++++++++++++++++
gcc/testsuite/g++.dg/eh/spec3-static.C | 25 ++++++++++++++++++++++ gcc/testsuite/g++.dg/eh/spec3-static.C | 25 ++++++++++++++++++++++
libgcc/crtstuff.c | 11 ++++++---- libgcc/crtstuff.c | 11 ++++++----
11 files changed, 128 insertions(+), 5 deletions(-) 10 files changed, 123 insertions(+), 4 deletions(-)
--- a/gcc/config.in --- a/gcc/config.in
+++ b/gcc/config.in +++ b/gcc/config.in
@ -41,7 +40,7 @@ Date: Mon Apr 14 15:59:47 2014 -0700
#ifndef USED_FOR_TARGET #ifndef USED_FOR_TARGET
--- a/gcc/config/alpha/elf.h --- a/gcc/config/alpha/elf.h
+++ b/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 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. */ doesn't harm to make sure that the data exists to be used later. */
#if defined(HAVE_LD_EH_FRAME_HDR) #if defined(HAVE_LD_EH_FRAME_HDR)
@ -53,7 +52,7 @@ Date: Mon Apr 14 15:59:47 2014 -0700
+#endif +#endif
--- a/gcc/config/freebsd.h --- a/gcc/config/freebsd.h
+++ b/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 #define LIB_SPEC FBSD_LIB_SPEC
#if defined(HAVE_LD_EH_FRAME_HDR) #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" \ #define LINK_SSP_SPEC "%{fstack-protector|fstack-protector-all" \
--- a/gcc/config/gnu-user.h --- a/gcc/config/gnu-user.h
+++ b/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 #define LIB_SPEC GNU_USER_TARGET_LIB_SPEC
#if defined(HAVE_LD_EH_FRAME_HDR) #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} \ "%{static|static-pie:--start-group} %G %{!nolibc:%L} \
--- a/gcc/config/openbsd.h --- a/gcc/config/openbsd.h
+++ b/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 #define LIB_SPEC OBSD_LIB_SPEC
#if defined(HAVE_LD_EH_FRAME_HDR) #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 #define LIB_SPEC OBSD_LIB_SPEC
--- a/gcc/config/sol2.h --- a/gcc/config/sol2.h
+++ b/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 /* Solaris 11 build 135+ implements dl_iterate_phdr. GNU ld needs
--eh-frame-hdr to create the required .eh_frame_hdr sections. */ --eh-frame-hdr to create the required .eh_frame_hdr sections. */
#if defined(HAVE_LD_EH_FRAME_HDR) && defined(TARGET_DL_ITERATE_PHDR) #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 --- a/gcc/configure
+++ b/gcc/configure +++ b/gcc/configure
@@ -1000,6 +1000,7 @@ enable_fix_cortex_a53_835769 @@ -1000,6 +1000,7 @@
enable_fix_cortex_a53_843419 enable_fix_cortex_a53_843419
with_glibc_version with_glibc_version
enable_gnu_unique_object enable_gnu_unique_object
@ -120,7 +119,7 @@ Date: Mon Apr 14 15:59:47 2014 -0700
enable_linker_build_id enable_linker_build_id
enable_libssp enable_libssp
enable_default_ssp enable_default_ssp
@@ -1754,6 +1755,9 @@ Optional Features: @@ -1754,6 +1755,9 @@
--enable-gnu-unique-object --enable-gnu-unique-object
enable the use of the @gnu_unique_object ELF enable the use of the @gnu_unique_object ELF
extension on glibc systems extension on glibc systems
@ -130,7 +129,7 @@ Date: Mon Apr 14 15:59:47 2014 -0700
--enable-linker-build-id --enable-linker-build-id
compiler will always pass --build-id to linker compiler will always pass --build-id to linker
--enable-libssp enable linking against libssp --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 $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; } $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
--- a/gcc/configure.ac --- a/gcc/configure.ac
+++ b/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 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
AC_DEFINE(HAVE_LD_EH_FRAME_HDR, 1, AC_DEFINE(HAVE_LD_EH_FRAME_HDR, 1,
[Define if your linker supports .eh_frame_hdr.]) [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 --- a/libgcc/crtstuff.c
+++ b/libgcc/crtstuff.c +++ b/libgcc/crtstuff.c
@@ -88,7 +88,8 @@ call_ ## FUNC (void) \ @@ -88,7 +88,8 @@
#if defined(OBJECT_FORMAT_ELF) \ #if defined(OBJECT_FORMAT_ELF) \
&& !defined(OBJECT_FORMAT_FLAT) \ && !defined(OBJECT_FORMAT_FLAT) \
&& defined(HAVE_LD_EH_FRAME_HDR) \ && 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) && defined(BSD_DL_ITERATE_PHDR_AVAILABLE)
#include <link.h> #include <link.h>
# define USE_PT_GNU_EH_FRAME # define USE_PT_GNU_EH_FRAME
@@ -97,7 +98,8 @@ call_ ## FUNC (void) \ @@ -97,7 +98,8 @@
#if defined(OBJECT_FORMAT_ELF) \ #if defined(OBJECT_FORMAT_ELF) \
&& !defined(OBJECT_FORMAT_FLAT) \ && !defined(OBJECT_FORMAT_FLAT) \
&& defined(HAVE_LD_EH_FRAME_HDR) && defined(TARGET_DL_ITERATE_PHDR) \ && 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__) && defined(__sun__) && defined(__svr4__)
#include <link.h> #include <link.h>
# define USE_PT_GNU_EH_FRAME # define USE_PT_GNU_EH_FRAME
@@ -106,7 +108,8 @@ call_ ## FUNC (void) \ @@ -106,7 +108,8 @@
#if defined(OBJECT_FORMAT_ELF) \ #if defined(OBJECT_FORMAT_ELF) \
&& !defined(OBJECT_FORMAT_FLAT) \ && !defined(OBJECT_FORMAT_FLAT) \
&& defined(HAVE_LD_EH_FRAME_HDR) \ && defined(HAVE_LD_EH_FRAME_HDR) \
@ -267,7 +266,7 @@ Date: Mon Apr 14 15:59:47 2014 -0700
&& defined(__GLIBC__) && __GLIBC__ >= 2 && defined(__GLIBC__) && __GLIBC__ >= 2
#include <link.h> #include <link.h>
/* uClibc pretends to be glibc 2.2 and DT_CONFIG is defined in its 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) \ #if defined(OBJECT_FORMAT_ELF) \
&& !defined(OBJECT_FORMAT_FLAT) \ && !defined(OBJECT_FORMAT_FLAT) \
&& defined(HAVE_LD_EH_FRAME_HDR) \ && 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 --- a/gcc/config/i386/i386.c
+++ b/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) else if (!SYMBOL_REF_FAR_ADDR_P (op0)
&& (SYMBOL_REF_LOCAL_P (op0) && (SYMBOL_REF_LOCAL_P (op0)
|| (HAVE_LD_PIE_COPYRELOC || (HAVE_LD_PIE_COPYRELOC

View File

@ -12,7 +12,7 @@ Date: Fri Aug 21 17:41:59 2015 +0300
--- a/libgcc/gthr.h --- a/libgcc/gthr.h
+++ b/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 #define GTHREAD_USE_WEAK 1
#endif #endif
#endif #endif

View File

@ -15,7 +15,7 @@ Date: Mon Apr 14 21:05:51 2014 -0700
--- a/gcc/config/arm/arm.c --- a/gcc/config/arm/arm.c
+++ b/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); memsize = MEM_SIZE (x);
/* Only certain alignment specifiers are supported by the hardware. */ /* 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 */ #endif /* GCC_AARCH64_LINUX_ANDROID_H */
--- a/gcc/config/mips/linux-common.h --- a/gcc/config/mips/linux-common.h
+++ b/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. */ /* The default value isn't sufficient in 64-bit mode. */
#define STACK_CHECK_PROTECT (TARGET_64BIT ? 16 * 1024 : 12 * 1024) #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 --- a/gcc/graphite.h
+++ b/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/options.h>
#include <isl/ctx.h> #include <isl/ctx.h>
#include <isl/val.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> 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(-) 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 --- a/gcc/config/aarch64/t-aarch64
+++ b/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-builtins.def \
$(srcdir)/config/aarch64/aarch64-simd-builtin-types.def \ $(srcdir)/config/aarch64/aarch64-simd-builtin-types.def \
aarch64-builtin-iterators.h aarch64-builtin-iterators.h
@ -29,6 +27,3 @@ index 11d20b7be14..d4c3154cf40 100644
$(srcdir)/config/aarch64/aarch64-builtins.c $(srcdir)/config/aarch64/aarch64-builtins.c
aarch64-sve-builtins.o: $(srcdir)/config/aarch64/aarch64-sve-builtins.cc \ 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. * config.h.in: Regenerate.
* configure: Regenerate. * configure: Regenerate.
--- ---
libstdc++-v3/acinclude.m4 | 20 ++++++---- libstdc++-v3/acinclude.m4 | 20 ++++++++----
libstdc++-v3/config.h.in | 3 ++ libstdc++-v3/config.h.in | 3 +
libstdc++-v3/config/io/basic_file_stdio.cc | 46 +++++++++++++++++++--- libstdc++-v3/config/io/basic_file_stdio.cc | 46 +++++++++++++++++++++++++----
libstdc++-v3/configure | 17 +++++--- libstdc++-v3/configure | 17 +++++++---
4 files changed, 69 insertions(+), 17 deletions(-) 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 --- a/libstdc++-v3/acinclude.m4
+++ b/libstdc++-v3/acinclude.m4 +++ b/libstdc++-v3/acinclude.m4
@@ -2826,24 +2826,30 @@ AC_DEFUN([GLIBCXX_ENABLE_PARALLEL], [ @@ -2797,24 +2797,30 @@
dnl dnl
@ -76,11 +74,9 @@ index ee5e0336f2c..9604533c306 100644
;; ;;
esac 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 --- a/libstdc++-v3/config.h.in
+++ b/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>. */ /* Define if sendfile is available in <sys/sendfile.h>. */
#undef _GLIBCXX_USE_SENDFILE #undef _GLIBCXX_USE_SENDFILE
@ -90,11 +86,9 @@ index 8940e0c7acd..eabcf18b52b 100644
/* Define if struct stat has timespec members. */ /* Define if struct stat has timespec members. */
#undef _GLIBCXX_USE_ST_MTIM #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 --- a/libstdc++-v3/config/io/basic_file_stdio.cc
+++ b/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. // Wrapper handling partial write.
static std::streamsize static std::streamsize
@ -116,7 +110,7 @@ index ba830fb9e97..eedffb017b6 100644
if (__ret == -1L && errno == EINTR) if (__ret == -1L && errno == EINTR)
continue; continue;
if (__ret == -1L) if (__ret == -1L)
@@ -133,7 +141,7 @@ namespace @@ -133,7 +141,7 @@
return __n - __nleft; return __n - __nleft;
} }
@ -125,7 +119,7 @@ index ba830fb9e97..eedffb017b6 100644
// Wrapper handling partial writev. // Wrapper handling partial writev.
static std::streamsize static std::streamsize
xwritev(int __fd, const char* __s1, std::streamsize __n1, 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 () __basic_file<char>::is_open() const throw ()
{ return _M_cfile != 0; } { return _M_cfile != 0; }
@ -137,7 +131,7 @@ index ba830fb9e97..eedffb017b6 100644
__c_file* __c_file*
__basic_file<char>::file() throw () __basic_file<char>::file() throw ()
@@ -315,28 +325,46 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION @@ -315,29 +325,47 @@
{ {
streamsize __ret; streamsize __ret;
do do
@ -182,11 +176,12 @@ index ba830fb9e97..eedffb017b6 100644
+ __ret += xwrite(this->file(), __s2, __n2); + __ret += xwrite(this->file(), __s2, __n2);
+#else +#else
__ret += xwrite(this->fd(), __s2, __n2); __ret += xwrite(this->fd(), __s2, __n2);
+#endif
#endif #endif
+#endif
return __ret; return __ret;
} }
@@ -350,7 +378,11 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
@@ -350,8 +378,12 @@
if (__off > numeric_limits<off_t>::max() if (__off > numeric_limits<off_t>::max()
|| __off < numeric_limits<off_t>::min()) || __off < numeric_limits<off_t>::min())
return -1L; return -1L;
@ -194,11 +189,12 @@ index ba830fb9e97..eedffb017b6 100644
+ return fseek(this->file(), __off, __way); + return fseek(this->file(), __off, __way);
+#else +#else
return lseek(this->fd(), __off, __way); return lseek(this->fd(), __off, __way);
+#endif
#endif #endif
+#endif
} }
@@ -361,7 +393,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION int
@@ -361,7 +393,7 @@
streamsize streamsize
__basic_file<char>::showmanyc() __basic_file<char>::showmanyc()
{ {
@ -207,7 +203,7 @@ index ba830fb9e97..eedffb017b6 100644
#ifdef FIONREAD #ifdef FIONREAD
// Pipes and sockets. // Pipes and sockets.
int __num = 0; int __num = 0;
@@ -371,7 +403,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION @@ -371,7 +403,7 @@
#endif #endif
#endif #endif
@ -216,7 +212,7 @@ index ba830fb9e97..eedffb017b6 100644
// Cheap test. // Cheap test.
struct pollfd __pfd[1]; struct pollfd __pfd[1];
__pfd[0].fd = this->fd(); __pfd[0].fd = this->fd();
@@ -395,8 +427,12 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION @@ -395,9 +427,13 @@
struct stat __buffer; struct stat __buffer;
const int __err = fstat(this->fd(), &__buffer); const int __err = fstat(this->fd(), &__buffer);
if (!__err && _GLIBCXX_ISREG(__buffer.st_mode)) if (!__err && _GLIBCXX_ISREG(__buffer.st_mode))
@ -225,15 +221,14 @@ index ba830fb9e97..eedffb017b6 100644
+#else +#else
return __buffer.st_size - lseek(this->fd(), 0, ios_base::cur); return __buffer.st_size - lseek(this->fd(), 0, ios_base::cur);
#endif #endif
+#endif
#endif #endif
+#endif
return 0; return 0;
} }
diff --git a/libstdc++-v3/configure b/libstdc++-v3/configure
index 9f9c5a2419a..50c8f00a41c 100755
--- a/libstdc++-v3/configure --- a/libstdc++-v3/configure
+++ b/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 : if test "${enable_cstdio+set}" = set; then :
enableval=$enable_cstdio; enableval=$enable_cstdio;
case "$enableval" in case "$enableval" in
@ -242,7 +237,7 @@ index 9f9c5a2419a..50c8f00a41c 100755
*) as_fn_error $? "Unknown argument to enable/disable cstdio" "$LINENO" 5 ;; *) as_fn_error $? "Unknown argument to enable/disable cstdio" "$LINENO" 5 ;;
esac esac
@@ -16309,16 +16309,23 @@ fi @@ -16311,16 +16311,23 @@
@ -270,6 +265,3 @@ index 9f9c5a2419a..50c8f00a41c 100755
;; ;;
esac esac
--
2.29.2

View File

@ -13,18 +13,16 @@ See commit 89dc5a9d5ed3e6b2ba6a4725bd51841ee758b6cd
Its been backported to gcc-10.2 Its been backported to gcc-10.2
--- ---
gcc/config.host | 7 +++++- gcc/config.host | 7 +++++-
gcc/config/aarch64/host-aarch64-darwin.c | 32 ++++++++++++++++++++++++ gcc/config/aarch64/host-aarch64-darwin.c | 32 +++++++++++++++++++++++++++++++
gcc/config/aarch64/x-darwin | 3 +++ gcc/config/aarch64/x-darwin | 3 ++
3 files changed, 41 insertions(+), 1 deletion(-) 3 files changed, 41 insertions(+), 1 deletion(-)
create mode 100644 gcc/config/aarch64/host-aarch64-darwin.c create mode 100644 gcc/config/aarch64/host-aarch64-darwin.c
create mode 100644 gcc/config/aarch64/x-darwin 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 --- a/gcc/config.host
+++ b/gcc/config.host +++ b/gcc/config.host
@@ -99,7 +99,8 @@ case ${host} in @@ -99,7 +99,8 @@
esac esac
case ${host} in case ${host} in
@ -34,7 +32,7 @@ index 84f0433e2ad..8489145e1b1 100644
case ${target} in case ${target} in
aarch64*-*-*) aarch64*-*-*)
host_extra_gcc_objs="driver-aarch64.o" 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_extra_gcc_objs="${host_extra_gcc_objs} driver-mingw32.o"
host_lto_plugin_soname=liblto_plugin-0.dll host_lto_plugin_soname=liblto_plugin-0.dll
;; ;;
@ -45,9 +43,6 @@ index 84f0433e2ad..8489145e1b1 100644
i[34567]86-*-darwin* | x86_64-*-darwin*) i[34567]86-*-darwin* | x86_64-*-darwin*)
out_host_hook_obj="${out_host_hook_obj} host-i386-darwin.o" out_host_hook_obj="${out_host_hook_obj} host-i386-darwin.o"
host_xmake_file="${host_xmake_file} i386/x-darwin" 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 --- /dev/null
+++ b/gcc/config/aarch64/host-aarch64-darwin.c +++ b/gcc/config/aarch64/host-aarch64-darwin.c
@@ -0,0 +1,32 @@ @@ -0,0 +1,32 @@
@ -83,15 +78,9 @@ index 00000000000..1a2cd4c9dab
+ exists just to include the generic config/host-darwin.h. */ + exists just to include the generic config/host-darwin.h. */
+ +
+const struct host_hooks host_hooks = HOST_HOOKS_INITIALIZER; +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 --- /dev/null
+++ b/gcc/config/aarch64/x-darwin +++ b/gcc/config/aarch64/x-darwin
@@ -0,0 +1,3 @@ @@ -0,0 +1,3 @@
+host-aarch64-darwin.o : $(srcdir)/config/aarch64/host-aarch64-darwin.c +host-aarch64-darwin.o : $(srcdir)/config/aarch64/host-aarch64-darwin.c
+ $(COMPILE) $< + $(COMPILE) $<
+ $(POSTCOMPILE) + $(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> Signed-off-by: Keith Packard <keithp@keithp.com>
--- ---
libstdc++-v3/include/bits/std_abs.h | 4 ++-- libstdc++-v3/include/bits/std_abs.h | 4 ++--
libstdc++-v3/include/c/cassert | 2 +- libstdc++-v3/include/c/cassert | 2 +-
libstdc++-v3/include/c/cctype | 2 +- libstdc++-v3/include/c/cctype | 2 +-
libstdc++-v3/include/c/cerrno | 2 +- libstdc++-v3/include/c/cerrno | 2 +-
libstdc++-v3/include/c/cfloat | 2 +- libstdc++-v3/include/c/cfloat | 2 +-
libstdc++-v3/include/c/climits | 2 +- libstdc++-v3/include/c/climits | 2 +-
libstdc++-v3/include/c/clocale | 2 +- libstdc++-v3/include/c/clocale | 2 +-
libstdc++-v3/include/c/cmath | 2 +- libstdc++-v3/include/c/cmath | 2 +-
libstdc++-v3/include/c/csetjmp | 2 +- libstdc++-v3/include/c/csetjmp | 2 +-
libstdc++-v3/include/c/csignal | 2 +- libstdc++-v3/include/c/csignal | 2 +-
libstdc++-v3/include/c/cstdarg | 2 +- libstdc++-v3/include/c/cstdarg | 2 +-
libstdc++-v3/include/c/cstddef | 2 +- libstdc++-v3/include/c/cstddef | 2 +-
libstdc++-v3/include/c/cstdio | 2 +- libstdc++-v3/include/c/cstdio | 2 +-
libstdc++-v3/include/c/cstdlib | 2 +- libstdc++-v3/include/c/cstdlib | 2 +-
libstdc++-v3/include/c/cstring | 2 +- libstdc++-v3/include/c/cstring | 2 +-
libstdc++-v3/include/c/ctime | 2 +- libstdc++-v3/include/c/ctime | 2 +-
libstdc++-v3/include/c/cuchar | 2 +- libstdc++-v3/include/c/cuchar | 2 +-
libstdc++-v3/include/c/cwchar | 2 +- libstdc++-v3/include/c/cwchar | 2 +-
libstdc++-v3/include/c/cwctype | 2 +- libstdc++-v3/include/c/cwctype | 2 +-
libstdc++-v3/include/c_global/cmath | 2 +- libstdc++-v3/include/c_global/cmath | 2 +-
libstdc++-v3/include/c_global/cstdlib | 2 +- libstdc++-v3/include/c_global/cstdlib | 2 +-
21 files changed, 22 insertions(+), 22 deletions(-) 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 --- a/libstdc++-v3/include/bits/std_abs.h
+++ b/libstdc++-v3/include/bits/std_abs.h +++ b/libstdc++-v3/include/bits/std_abs.h
@@ -35,9 +35,9 @@ @@ -35,9 +35,9 @@
@ -55,8 +53,6 @@ index ae6bfc1b1ac..249ed53a3ce 100644
#endif #endif
#undef _GLIBCXX_INCLUDE_NEXT_C_HEADERS #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 --- a/libstdc++-v3/include/c/cassert
+++ b/libstdc++-v3/include/c/cassert +++ b/libstdc++-v3/include/c/cassert
@@ -31,4 +31,4 @@ @@ -31,4 +31,4 @@
@ -65,8 +61,6 @@ index abd8c0538ef..3e1b97f1626 100644
#include <bits/c++config.h> #include <bits/c++config.h>
-#include_next <assert.h> -#include_next <assert.h>
+#include <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 --- a/libstdc++-v3/include/c/cctype
+++ b/libstdc++-v3/include/c/cctype +++ b/libstdc++-v3/include/c/cctype
@@ -31,6 +31,6 @@ @@ -31,6 +31,6 @@
@ -77,8 +71,6 @@ index d53cb3d43f3..3def33f2077 100644
+#include <ctype.h> +#include <ctype.h>
#endif #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 --- a/libstdc++-v3/include/c/cerrno
+++ b/libstdc++-v3/include/c/cerrno +++ b/libstdc++-v3/include/c/cerrno
@@ -41,7 +41,7 @@ @@ -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 // Adhere to section 17.4.1.2 clause 5 of ISO 14882:1998
#ifndef errno #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 --- a/libstdc++-v3/include/c/cfloat
+++ b/libstdc++-v3/include/c/cfloat +++ b/libstdc++-v3/include/c/cfloat
@@ -32,6 +32,6 @@ @@ -32,6 +32,6 @@
@ -102,8 +92,6 @@ index 5865d427c20..df821645e4d 100644
+#include <float.h> +#include <float.h>
#endif #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 --- a/libstdc++-v3/include/c/climits
+++ b/libstdc++-v3/include/c/climits +++ b/libstdc++-v3/include/c/climits
@@ -32,6 +32,6 @@ @@ -32,6 +32,6 @@
@ -114,8 +102,6 @@ index 849afadeffc..b153fa8c27c 100644
+#include <limits.h> +#include <limits.h>
#endif #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 --- a/libstdc++-v3/include/c/clocale
+++ b/libstdc++-v3/include/c/clocale +++ b/libstdc++-v3/include/c/clocale
@@ -31,6 +31,6 @@ @@ -31,6 +31,6 @@
@ -126,8 +112,6 @@ index fc84745397d..5ebccdf5006 100644
+#include <locale.h> +#include <locale.h>
#endif #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 --- a/libstdc++-v3/include/c/cmath
+++ b/libstdc++-v3/include/c/cmath +++ b/libstdc++-v3/include/c/cmath
@@ -33,7 +33,7 @@ @@ -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. // Get rid of those macros defined in <math.h> in lieu of real functions.
#undef abs #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 --- a/libstdc++-v3/include/c/csetjmp
+++ b/libstdc++-v3/include/c/csetjmp +++ b/libstdc++-v3/include/c/csetjmp
@@ -31,7 +31,7 @@ @@ -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. // Get rid of those macros defined in <setjmp.h> in lieu of real functions.
#undef longjmp #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 --- a/libstdc++-v3/include/c/csignal
+++ b/libstdc++-v3/include/c/csignal +++ b/libstdc++-v3/include/c/csignal
@@ -31,6 +31,6 @@ @@ -31,6 +31,6 @@
@ -164,8 +144,6 @@ index 986c5d3daca..77cb7634a69 100644
+#include <signal.h> +#include <signal.h>
#endif #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 --- a/libstdc++-v3/include/c/cstdarg
+++ b/libstdc++-v3/include/c/cstdarg +++ b/libstdc++-v3/include/c/cstdarg
@@ -32,6 +32,6 @@ @@ -32,6 +32,6 @@
@ -176,8 +154,6 @@ index 6b6e1850753..0dfc60cc6ba 100644
+#include <stdarg.h> +#include <stdarg.h>
#endif #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 --- a/libstdc++-v3/include/c/cstddef
+++ b/libstdc++-v3/include/c/cstddef +++ b/libstdc++-v3/include/c/cstddef
@@ -35,6 +35,6 @@ @@ -35,6 +35,6 @@
@ -188,8 +164,6 @@ index 7fc8ce34efc..fc90dfb3f18 100644
+#include <stddef.h> +#include <stddef.h>
#endif #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 --- a/libstdc++-v3/include/c/cstdio
+++ b/libstdc++-v3/include/c/cstdio +++ b/libstdc++-v3/include/c/cstdio
@@ -31,7 +31,7 @@ @@ -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. // Get rid of those macros defined in <stdio.h> in lieu of real functions.
#undef clearerr #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 --- a/libstdc++-v3/include/c/cstdlib
+++ b/libstdc++-v3/include/c/cstdlib +++ b/libstdc++-v3/include/c/cstdlib
@@ -31,6 +31,6 @@ @@ -31,6 +31,6 @@
@ -213,8 +185,6 @@ index 86d9587482f..a26013286be 100644
+#include <stdlib.h> +#include <stdlib.h>
#endif #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 --- a/libstdc++-v3/include/c/cstring
+++ b/libstdc++-v3/include/c/cstring +++ b/libstdc++-v3/include/c/cstring
@@ -31,6 +31,6 @@ @@ -31,6 +31,6 @@
@ -225,8 +195,6 @@ index 8b1e89b13b6..ca56c75e753 100644
+#include <string.h> +#include <string.h>
#endif #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 --- a/libstdc++-v3/include/c/ctime
+++ b/libstdc++-v3/include/c/ctime +++ b/libstdc++-v3/include/c/ctime
@@ -31,6 +31,6 @@ @@ -31,6 +31,6 @@
@ -237,8 +205,6 @@ index 367172b21eb..135da2a25c4 100644
+#include <time.h> +#include <time.h>
#endif #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 --- a/libstdc++-v3/include/c/cuchar
+++ b/libstdc++-v3/include/c/cuchar +++ b/libstdc++-v3/include/c/cuchar
@@ -39,7 +39,7 @@ @@ -39,7 +39,7 @@
@ -250,8 +216,6 @@ index e63b55ae12c..c79708fba6a 100644
#endif #endif
#endif // C++11 #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 --- a/libstdc++-v3/include/c/cwchar
+++ b/libstdc++-v3/include/c/cwchar +++ b/libstdc++-v3/include/c/cwchar
@@ -36,7 +36,7 @@ @@ -36,7 +36,7 @@
@ -263,8 +227,6 @@ index 05d4d70c6fc..0fc9a9a394a 100644
#endif #endif
// Need to do a bit of trickery here with mbstate_t as char_traits // 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 --- a/libstdc++-v3/include/c/cwctype
+++ b/libstdc++-v3/include/c/cwctype +++ b/libstdc++-v3/include/c/cwctype
@@ -34,7 +34,7 @@ @@ -34,7 +34,7 @@
@ -276,8 +238,6 @@ index 0626765d6c8..4839b693e46 100644
#endif #endif
#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 --- a/libstdc++-v3/include/c_global/cmath
+++ b/libstdc++-v3/include/c_global/cmath +++ b/libstdc++-v3/include/c_global/cmath
@@ -42,7 +42,7 @@ @@ -42,7 +42,7 @@
@ -289,11 +249,9 @@ index 39a6b036b8c..bfb6dcd4c88 100644
#undef _GLIBCXX_INCLUDE_NEXT_C_HEADERS #undef _GLIBCXX_INCLUDE_NEXT_C_HEADERS
#include <bits/std_abs.h> #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 --- a/libstdc++-v3/include/c_global/cstdlib
+++ b/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++ // 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. // wrapper that might already be installed later in the include search path.
#define _GLIBCXX_INCLUDE_NEXT_C_HEADERS #define _GLIBCXX_INCLUDE_NEXT_C_HEADERS
@ -302,6 +260,3 @@ index 47b954cf2fa..996a87b372c 100644
#undef _GLIBCXX_INCLUDE_NEXT_C_HEADERS #undef _GLIBCXX_INCLUDE_NEXT_C_HEADERS
#include <bits/std_abs.h> #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.am (AM_CXXFLAGS): Add -nostdinc++.
* src/c++17/Makefile.in: Regenerate. * src/c++17/Makefile.in: Regenerate.
--- ---
libstdc++-v3/src/c++17/Makefile.am | 2 +- libstdc++-v3/src/c++17/Makefile.am | 2 +-
libstdc++-v3/src/c++17/Makefile.in | 2 +- libstdc++-v3/src/c++17/Makefile.in | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-) 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 --- a/libstdc++-v3/src/c++17/Makefile.am
+++ b/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 # OPTIMIZE_CXXFLAGS on the compile line so that -O2 can be overridden
# as the occasion calls for it. # as the occasion calls for it.
AM_CXXFLAGS = \ AM_CXXFLAGS = \
@ -60,11 +58,9 @@ index f08553a1dd78..3d53f652fac9 100644
$(glibcxx_lt_pic_flag) $(glibcxx_compiler_shared_flag) \ $(glibcxx_lt_pic_flag) $(glibcxx_compiler_shared_flag) \
$(XTEMPLATE_FLAGS) $(VTV_CXXFLAGS) \ $(XTEMPLATE_FLAGS) $(VTV_CXXFLAGS) \
$(WARN_CXXFLAGS) $(OPTIMIZE_CXXFLAGS) $(CONFIG_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 --- a/libstdc++-v3/src/c++17/Makefile.in
+++ b/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 # OPTIMIZE_CXXFLAGS on the compile line so that -O2 can be overridden
# as the occasion calls for it. # as the occasion calls for it.
AM_CXXFLAGS = \ AM_CXXFLAGS = \
@ -73,6 +69,3 @@ index 63984ecd52ad..8c02be6514f8 100644
$(glibcxx_lt_pic_flag) $(glibcxx_compiler_shared_flag) \ $(glibcxx_lt_pic_flag) $(glibcxx_compiler_shared_flag) \
$(XTEMPLATE_FLAGS) $(VTV_CXXFLAGS) \ $(XTEMPLATE_FLAGS) $(VTV_CXXFLAGS) \
$(WARN_CXXFLAGS) $(OPTIMIZE_CXXFLAGS) $(CONFIG_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/host-aarch64-darwin.c: New file.
* config/aarch64/x-darwin: New file. * config/aarch64/x-darwin: New file.
--- ---
gcc/config.host | 7 ++++- gcc/config.host | 7 +++++-
gcc/config/aarch64/host-aarch64-darwin.c | 33 ++++++++++++++++++++++++ gcc/config/aarch64/host-aarch64-darwin.c | 33 +++++++++++++++++++++++++++++++
gcc/config/aarch64/x-darwin | 3 +++ gcc/config/aarch64/x-darwin | 3 ++
3 files changed, 42 insertions(+), 1 deletion(-) 3 files changed, 42 insertions(+), 1 deletion(-)
create mode 100644 gcc/config/aarch64/host-aarch64-darwin.c create mode 100644 gcc/config/aarch64/host-aarch64-darwin.c
create mode 100644 gcc/config/aarch64/x-darwin 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 --- a/gcc/config.host
+++ b/gcc/config.host +++ b/gcc/config.host
@@ -99,7 +99,8 @@ case ${host} in @@ -99,7 +99,8 @@
esac esac
case ${host} in case ${host} in
@ -35,7 +33,7 @@ index 0a02c33cc80..81ff7ed1043 100644
case ${target} in case ${target} in
aarch64*-*-*) aarch64*-*-*)
host_extra_gcc_objs="driver-aarch64.o" 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_extra_gcc_objs="${host_extra_gcc_objs} driver-mingw32.o"
host_lto_plugin_soname=liblto_plugin.dll host_lto_plugin_soname=liblto_plugin.dll
;; ;;
@ -46,9 +44,6 @@ index 0a02c33cc80..81ff7ed1043 100644
i[34567]86-*-darwin* | x86_64-*-darwin*) i[34567]86-*-darwin* | x86_64-*-darwin*)
out_host_hook_obj="${out_host_hook_obj} host-i386-darwin.o" out_host_hook_obj="${out_host_hook_obj} host-i386-darwin.o"
host_xmake_file="${host_xmake_file} i386/x-darwin" 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 --- /dev/null
+++ b/gcc/config/aarch64/host-aarch64-darwin.c +++ b/gcc/config/aarch64/host-aarch64-darwin.c
@@ -0,0 +1,33 @@ @@ -0,0 +1,33 @@
@ -85,15 +80,9 @@ index 00000000000..d70f2df3bf1
+ exists just to include the generic config/host-darwin.h. */ + exists just to include the generic config/host-darwin.h. */
+ +
+const struct host_hooks host_hooks = HOST_HOOKS_INITIALIZER; +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 --- /dev/null
+++ b/gcc/config/aarch64/x-darwin +++ b/gcc/config/aarch64/x-darwin
@@ -0,0 +1,3 @@ @@ -0,0 +1,3 @@
+host-aarch64-darwin.o : $(srcdir)/config/aarch64/host-aarch64-darwin.c +host-aarch64-darwin.o : $(srcdir)/config/aarch64/host-aarch64-darwin.c
+ $(COMPILE) $< + $(COMPILE) $<
+ $(POSTCOMPILE) + $(POSTCOMPILE)
--
2.34.1

View File

@ -5,6 +5,12 @@ https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57295
Fix c6x mulitibs build for uclinux Fix c6x mulitibs build for uclinux
Reported by: Dan Tejada <dan.tejada@cantada.com> Reported by: Dan Tejada <dan.tejada@cantada.com>
---
gcc/config/c6x/c6x.md | 2 +-
gcc/config/c6x/predicates.md | 13 +++++++++++++
gcc/config/c6x/t-c6x-uclinux | 4 +++-
3 files changed, 17 insertions(+), 2 deletions(-)
--- a/gcc/config/c6x/c6x.md --- a/gcc/config/c6x/c6x.md
+++ b/gcc/config/c6x/c6x.md +++ b/gcc/config/c6x/c6x.md
@@ -775,7 +775,7 @@ @@ -775,7 +775,7 @@
@ -16,7 +22,6 @@ Reported by: Dan Tejada <dan.tejada@cantada.com>
{ {
emit_insn (gen_movmisalign<mode>_store (operands[0], operands[1])); emit_insn (gen_movmisalign<mode>_store (operands[0], operands[1]));
DONE; DONE;
--- a/gcc/config/c6x/predicates.md --- a/gcc/config/c6x/predicates.md
+++ b/gcc/config/c6x/predicates.md +++ b/gcc/config/c6x/predicates.md
@@ -224,3 +224,16 @@ @@ -224,3 +224,16 @@
@ -36,7 +41,6 @@ Reported by: Dan Tejada <dan.tejada@cantada.com>
+ (if_then_else (match_test "reload_in_progress") + (if_then_else (match_test "reload_in_progress")
+ (match_test "strict_memory_address_p (mode, XEXP (op, 0))") + (match_test "strict_memory_address_p (mode, XEXP (op, 0))")
+ (match_test "memory_address_p (mode, XEXP (op, 0))"))))) + (match_test "memory_address_p (mode, XEXP (op, 0))")))))
--- a/gcc/config/c6x/t-c6x-uclinux --- a/gcc/config/c6x/t-c6x-uclinux
+++ b/gcc/config/c6x/t-c6x-uclinux +++ b/gcc/config/c6x/t-c6x-uclinux
@@ -1,3 +1,5 @@ @@ -1,3 +1,5 @@

View File

@ -4,8 +4,12 @@ Fixes
Fixed upstream in GCC6+ in d57c99458933. Fixed upstream in GCC6+ in d57c99458933.
--- gcc-4.9.4/gcc/reload.h 2022-01-01 15:51:43.293254281 -0800 ---
+++ gcc-4.9.4/gcc/reload.h 2022-01-01 15:51:58.437424873 -0800 gcc/reload.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/gcc/reload.h
+++ b/gcc/reload.h
@@ -166,7 +166,7 @@ @@ -166,7 +166,7 @@
value indicates the level of indirect addressing supported, e.g., two value indicates the level of indirect addressing supported, e.g., two
means that (MEM (MEM (REG n))) is also valid if (REG n) does not get means that (MEM (MEM (REG n))) is also valid if (REG n) does not get

View File

@ -53,7 +53,7 @@
if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
--- a/gcc/configure --- a/gcc/configure
+++ b/gcc/configure +++ b/gcc/configure
@@ -29805,6 +29805,9 @@ @@ -29872,6 +29872,9 @@
pluginlibs= pluginlibs=
plugin_check=yes plugin_check=yes
@ -63,7 +63,7 @@
case "${host}" in case "${host}" in
*-*-mingw*) *-*-mingw*)
# Since plugin support under MinGW is not as straightforward as on # Since plugin support under MinGW is not as straightforward as on
@@ -29827,6 +29830,11 @@ @@ -29894,6 +29897,11 @@
export_sym_check= export_sym_check=
fi fi
;; ;;
@ -75,7 +75,7 @@
*) *)
if test x$build = x$host; then if test x$build = x$host; then
export_sym_check="objdump${exeext} -T" export_sym_check="objdump${exeext} -T"
@@ -29939,23 +29947,23 @@ @@ -30006,23 +30014,23 @@
case "${host}" in case "${host}" in
*-*-darwin*) *-*-darwin*)
CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g` CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`

View File

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

View File

@ -57,7 +57,7 @@ Date: Wed Jul 29 11:28:29 2015 +0300
esac esac
aarch64_multilibs="${with_multilib_list}" aarch64_multilibs="${with_multilib_list}"
if test "$aarch64_multilibs" = "default"; then if test "$aarch64_multilibs" = "default"; then
@@ -2133,6 +2137,17 @@ @@ -2142,6 +2146,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" 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" extra_options="${extra_options} linux-android.opt"
case ${target} in case ${target} in
@ -172,7 +172,7 @@ Date: Wed Jul 29 11:28:29 2015 +0300
: min >= -256 && max < 256 \ : min >= -256 && max < 256 \
--- a/gcc/config/arm/arm.md --- a/gcc/config/arm/arm.md
+++ b/gcc/config/arm/arm.md +++ b/gcc/config/arm/arm.md
@@ -8640,7 +8640,7 @@ @@ -8698,7 +8698,7 @@
(match_operand:SI 2 "const_int_operand" "") ; total range (match_operand:SI 2 "const_int_operand" "") ; total range
(match_operand:SI 3 "" "") ; table label (match_operand:SI 3 "" "") ; table label
(match_operand:SI 4 "" "")] ; Out of range label (match_operand:SI 4 "" "")] ; Out of range label
@ -450,7 +450,7 @@ Date: Wed Jul 29 11:28:29 2015 +0300
#if ((defined(_LIBOBJC) || defined(_LIBOBJC_WEAK)) \ #if ((defined(_LIBOBJC) || defined(_LIBOBJC_WEAK)) \
--- a/libstdc++-v3/configure --- a/libstdc++-v3/configure
+++ b/libstdc++-v3/configure +++ b/libstdc++-v3/configure
@@ -78491,6 +78491,18 @@ @@ -78672,6 +78672,18 @@
/* end confdefs.h. */ /* end confdefs.h. */
#include <sys/syscall.h> #include <sys/syscall.h>
int lk; int lk;

View File

@ -26,7 +26,7 @@ Date: Mon Apr 14 15:59:47 2014 -0700
--- a/gcc/config.in --- a/gcc/config.in
+++ b/gcc/config.in +++ b/gcc/config.in
@@ -2219,6 +2219,12 @@ @@ -2233,6 +2233,12 @@
#endif #endif
@ -127,7 +127,7 @@ Date: Mon Apr 14 15:59:47 2014 -0700
--- a/gcc/configure --- a/gcc/configure
+++ b/gcc/configure +++ b/gcc/configure
@@ -943,6 +943,7 @@ @@ -944,6 +944,7 @@
enable_fix_cortex_a53_843419 enable_fix_cortex_a53_843419
with_glibc_version with_glibc_version
enable_gnu_unique_object enable_gnu_unique_object
@ -135,7 +135,7 @@ Date: Mon Apr 14 15:59:47 2014 -0700
enable_linker_build_id enable_linker_build_id
enable_libssp enable_libssp
enable_default_ssp enable_default_ssp
@@ -1684,6 +1685,9 @@ @@ -1685,6 +1686,9 @@
--enable-gnu-unique-object --enable-gnu-unique-object
enable the use of the @gnu_unique_object ELF enable the use of the @gnu_unique_object ELF
extension on glibc systems extension on glibc systems
@ -145,7 +145,7 @@ Date: Mon Apr 14 15:59:47 2014 -0700
--enable-linker-build-id --enable-linker-build-id
compiler will always pass --build-id to linker compiler will always pass --build-id to linker
--enable-libssp enable linking against libssp --enable-libssp enable linking against libssp
@@ -28319,6 +28323,38 @@ @@ -28383,6 +28387,38 @@
$as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
@ -186,7 +186,7 @@ Date: Mon Apr 14 15:59:47 2014 -0700
$as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; } $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
--- a/gcc/configure.ac --- a/gcc/configure.ac
+++ b/gcc/configure.ac +++ b/gcc/configure.ac
@@ -5140,6 +5140,35 @@ @@ -5147,6 +5147,35 @@
if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
AC_DEFINE(HAVE_LD_EH_FRAME_HDR, 1, AC_DEFINE(HAVE_LD_EH_FRAME_HDR, 1,
[Define if your linker supports .eh_frame_hdr.]) [Define if your linker supports .eh_frame_hdr.])

View File

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

View File

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

View File

@ -18,13 +18,11 @@ gcc/testsuite
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@261543 138bc75d-0d04-0410-961f-82ee72b054a4 git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@261543 138bc75d-0d04-0410-961f-82ee72b054a4
--- ---
gcc/config/arc/fpu.md | 6 ++++++ gcc/config/arc/fpu.md | 6 ++++++
gcc/testsuite/gcc.target/arc/fma-1.c | 13 +++++++++++++ gcc/testsuite/gcc.target/arc/fma-1.c | 13 +++++++++++++
2 files changed, 19 insertions(+) 2 files changed, 19 insertions(+)
create mode 100644 gcc/testsuite/gcc.target/arc/fma-1.c create mode 100644 gcc/testsuite/gcc.target/arc/fma-1.c
diff --git a/gcc/config/arc/fpu.md b/gcc/config/arc/fpu.md
index 5c56f76c679..66a4d91616f 100644
--- a/gcc/config/arc/fpu.md --- a/gcc/config/arc/fpu.md
+++ b/gcc/config/arc/fpu.md +++ b/gcc/config/arc/fpu.md
@@ -64,6 +64,9 @@ @@ -64,6 +64,9 @@
@ -47,9 +45,6 @@ index 5c56f76c679..66a4d91616f 100644
}") }")
(define_insn "fmasf4_fpu" (define_insn "fmasf4_fpu"
diff --git a/gcc/testsuite/gcc.target/arc/fma-1.c b/gcc/testsuite/gcc.target/arc/fma-1.c
new file mode 100644
index 00000000000..c195ad98127
--- /dev/null --- /dev/null
+++ b/gcc/testsuite/gcc.target/arc/fma-1.c +++ b/gcc/testsuite/gcc.target/arc/fma-1.c
@@ -0,0 +1,13 @@ @@ -0,0 +1,13 @@
@ -66,6 +61,3 @@ index 00000000000..c195ad98127
+ return (float)3.0 * b + a; + return (float)3.0 * b + a;
+} +}
+/* { dg-final { scan-assembler "fsmadd" } } */ +/* { dg-final { scan-assembler "fsmadd" } } */
--
2.16.2

View File

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

View File

@ -4,7 +4,7 @@
--- a/contrib/regression/objs-gcc.sh --- a/contrib/regression/objs-gcc.sh
+++ b/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 then
make all-gdb all-dejagnu all-ld || exit 1 make all-gdb all-dejagnu all-ld || exit 1
make install-gdb install-dejagnu install-ld || exit 1 make install-gdb install-dejagnu install-ld || exit 1

View File

@ -6,7 +6,7 @@
--- a/config/gcc-plugin.m4 --- a/config/gcc-plugin.m4
+++ b/config/gcc-plugin.m4 +++ b/config/gcc-plugin.m4
@@ -21,6 +21,9 @@ AC_DEFUN([GCC_ENABLE_PLUGINS], @@ -21,6 +21,9 @@
pluginlibs= pluginlibs=
plugin_check=yes plugin_check=yes
@ -16,7 +16,7 @@
case "${host}" in case "${host}" in
*-*-mingw*) *-*-mingw*)
# Since plugin support under MinGW is not as straightforward as on # 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= export_sym_check=
fi fi
;; ;;
@ -28,7 +28,7 @@
*) *)
if test x$build = x$host; then if test x$build = x$host; then
export_sym_check="objdump${exeext} -T" export_sym_check="objdump${exeext} -T"
@@ -94,17 +102,17 @@ AC_DEFUN([GCC_ENABLE_PLUGINS], @@ -94,17 +102,17 @@
case "${host}" in case "${host}" in
*-*-darwin*) *-*-darwin*)
CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g` 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 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
--- a/gcc/configure --- a/gcc/configure
+++ b/gcc/configure +++ b/gcc/configure
@@ -29862,6 +29862,9 @@ fi @@ -29898,6 +29898,9 @@
pluginlibs= pluginlibs=
plugin_check=yes plugin_check=yes
@ -63,7 +63,7 @@
case "${host}" in case "${host}" in
*-*-mingw*) *-*-mingw*)
# Since plugin support under MinGW is not as straightforward as on # Since plugin support under MinGW is not as straightforward as on
@@ -29884,6 +29887,11 @@ fi @@ -29920,6 +29923,11 @@
export_sym_check= export_sym_check=
fi fi
;; ;;
@ -75,7 +75,7 @@
*) *)
if test x$build = x$host; then if test x$build = x$host; then
export_sym_check="objdump${exeext} -T" export_sym_check="objdump${exeext} -T"
@@ -29996,23 +30004,23 @@ fi @@ -30032,23 +30040,23 @@
case "${host}" in case "${host}" in
*-*-darwin*) *-*-darwin*)
CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g` CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
@ -108,7 +108,7 @@
} }
--- a/libcc1/configure --- a/libcc1/configure
+++ b/libcc1/configure +++ b/libcc1/configure
@@ -14785,6 +14785,9 @@ fi @@ -14802,6 +14802,9 @@
pluginlibs= pluginlibs=
plugin_check=yes plugin_check=yes
@ -118,7 +118,7 @@
case "${host}" in case "${host}" in
*-*-mingw*) *-*-mingw*)
# Since plugin support under MinGW is not as straightforward as on # Since plugin support under MinGW is not as straightforward as on
@@ -14807,6 +14810,11 @@ fi @@ -14824,6 +14827,11 @@
export_sym_check= export_sym_check=
fi fi
;; ;;
@ -130,7 +130,7 @@
*) *)
if test x$build = x$host; then if test x$build = x$host; then
export_sym_check="objdump${exeext} -T" export_sym_check="objdump${exeext} -T"
@@ -14919,23 +14927,23 @@ fi @@ -14936,23 +14944,23 @@
case "${host}" in case "${host}" in
*-*-darwin*) *-*-darwin*)
CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g` CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`

View File

@ -4,7 +4,7 @@
--- a/libcc1/connection.cc --- a/libcc1/connection.cc
+++ b/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 <string>
#include <unistd.h> #include <unistd.h>
#include <sys/types.h> #include <sys/types.h>

View File

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

View File

@ -4,11 +4,11 @@
--- a/libgfortran/io/close.c --- a/libgfortran/io/close.c
+++ b/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 #if !HAVE_UNLINK_OPEN_FILE
#include <string.h> #include <string.h>
#endif #endif
+#include <stdlib.h> +#include <stdlib.h>
typedef enum typedef enum
{ CLOSE_DELETE, CLOSE_KEEP, CLOSE_UNSPECIFIED } { CLOSE_INVALID = - 1, CLOSE_DELETE, CLOSE_KEEP, CLOSE_UNSPECIFIED }

View File

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

View File

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

View File

@ -16,17 +16,16 @@ Date: Mon Apr 14 15:59:47 2014 -0700
gcc/config/freebsd.h | 4 +++ gcc/config/freebsd.h | 4 +++
gcc/config/gnu-user.h | 4 +++ gcc/config/gnu-user.h | 4 +++
gcc/config/openbsd.h | 4 +++ gcc/config/openbsd.h | 4 +++
gcc/config/rs6000/sysv4.h | 6 ++++-
gcc/config/sol2.h | 4 +++ gcc/config/sol2.h | 4 +++
gcc/configure | 36 +++++++++++++++++++++++++++++++++ gcc/configure | 36 +++++++++++++++++++++++++++++++++
gcc/configure.ac | 29 ++++++++++++++++++++++++++ gcc/configure.ac | 29 ++++++++++++++++++++++++++
gcc/testsuite/g++.dg/eh/spec3-static.C | 25 ++++++++++++++++++++++ gcc/testsuite/g++.dg/eh/spec3-static.C | 25 ++++++++++++++++++++++
libgcc/crtstuff.c | 11 ++++++---- libgcc/crtstuff.c | 11 ++++++----
11 files changed, 128 insertions(+), 5 deletions(-) 10 files changed, 123 insertions(+), 4 deletions(-)
--- a/gcc/config.in --- a/gcc/config.in
+++ b/gcc/config.in +++ b/gcc/config.in
@@ -2197,6 +2197,12 @@ @@ -2204,6 +2204,12 @@
#endif #endif
@ -41,7 +40,7 @@ Date: Mon Apr 14 15:59:47 2014 -0700
#ifndef USED_FOR_TARGET #ifndef USED_FOR_TARGET
--- a/gcc/config/alpha/elf.h --- a/gcc/config/alpha/elf.h
+++ b/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 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. */ doesn't harm to make sure that the data exists to be used later. */
#if defined(HAVE_LD_EH_FRAME_HDR) #if defined(HAVE_LD_EH_FRAME_HDR)
@ -53,7 +52,7 @@ Date: Mon Apr 14 15:59:47 2014 -0700
+#endif +#endif
--- a/gcc/config/freebsd.h --- a/gcc/config/freebsd.h
+++ b/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 #define LIB_SPEC FBSD_LIB_SPEC
#if defined(HAVE_LD_EH_FRAME_HDR) #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" \ #define LINK_SSP_SPEC "%{fstack-protector|fstack-protector-all" \
--- a/gcc/config/gnu-user.h --- a/gcc/config/gnu-user.h
+++ b/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 #define LIB_SPEC GNU_USER_TARGET_LIB_SPEC
#if defined(HAVE_LD_EH_FRAME_HDR) #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} \ "%{static|static-pie:--start-group} %G %{!nolibc:%L} \
--- a/gcc/config/openbsd.h --- a/gcc/config/openbsd.h
+++ b/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 #define LIB_SPEC OBSD_LIB_SPEC
#if defined(HAVE_LD_EH_FRAME_HDR) #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 #define LIB_SPEC OBSD_LIB_SPEC
--- a/gcc/config/sol2.h --- a/gcc/config/sol2.h
+++ b/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 /* Solaris 11 build 135+ implements dl_iterate_phdr. GNU ld needs
--eh-frame-hdr to create the required .eh_frame_hdr sections. */ --eh-frame-hdr to create the required .eh_frame_hdr sections. */
#if defined(HAVE_LD_EH_FRAME_HDR) && defined(TARGET_DL_ITERATE_PHDR) #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 --- a/gcc/configure
+++ b/gcc/configure +++ b/gcc/configure
@@ -986,6 +986,7 @@ enable_fix_cortex_a53_835769 @@ -986,6 +986,7 @@
enable_fix_cortex_a53_843419 enable_fix_cortex_a53_843419
with_glibc_version with_glibc_version
enable_gnu_unique_object enable_gnu_unique_object
@ -120,7 +119,7 @@ Date: Mon Apr 14 15:59:47 2014 -0700
enable_linker_build_id enable_linker_build_id
enable_libssp enable_libssp
enable_default_ssp enable_default_ssp
@@ -1737,6 +1738,9 @@ Optional Features: @@ -1737,6 +1738,9 @@
--enable-gnu-unique-object --enable-gnu-unique-object
enable the use of the @gnu_unique_object ELF enable the use of the @gnu_unique_object ELF
extension on glibc systems extension on glibc systems
@ -130,7 +129,7 @@ Date: Mon Apr 14 15:59:47 2014 -0700
--enable-linker-build-id --enable-linker-build-id
compiler will always pass --build-id to linker compiler will always pass --build-id to linker
--enable-libssp enable linking against libssp --enable-libssp enable linking against libssp
@@ -28349,6 +28353,38 @@ if test x"$gcc_cv_ld_eh_frame_hdr" = xye @@ -28382,6 +28386,38 @@
$as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h $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; } $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
--- a/gcc/configure.ac --- a/gcc/configure.ac
+++ b/gcc/configure.ac +++ b/gcc/configure.ac
@@ -5171,6 +5171,35 @@ GCC_TARGET_TEMPLATE([HAVE_LD_EH_FRAME_HD @@ -5176,6 +5176,35 @@
if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
AC_DEFINE(HAVE_LD_EH_FRAME_HDR, 1, AC_DEFINE(HAVE_LD_EH_FRAME_HDR, 1,
[Define if your linker supports .eh_frame_hdr.]) [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 --- a/libgcc/crtstuff.c
+++ b/libgcc/crtstuff.c +++ b/libgcc/crtstuff.c
@@ -88,7 +88,8 @@ call_ ## FUNC (void) \ @@ -88,7 +88,8 @@
#if defined(OBJECT_FORMAT_ELF) \ #if defined(OBJECT_FORMAT_ELF) \
&& !defined(OBJECT_FORMAT_FLAT) \ && !defined(OBJECT_FORMAT_FLAT) \
&& defined(HAVE_LD_EH_FRAME_HDR) \ && 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) && defined(BSD_DL_ITERATE_PHDR_AVAILABLE)
#include <link.h> #include <link.h>
# define USE_PT_GNU_EH_FRAME # define USE_PT_GNU_EH_FRAME
@@ -97,7 +98,8 @@ call_ ## FUNC (void) \ @@ -97,7 +98,8 @@
#if defined(OBJECT_FORMAT_ELF) \ #if defined(OBJECT_FORMAT_ELF) \
&& !defined(OBJECT_FORMAT_FLAT) \ && !defined(OBJECT_FORMAT_FLAT) \
&& defined(HAVE_LD_EH_FRAME_HDR) && defined(TARGET_DL_ITERATE_PHDR) \ && 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__) && defined(__sun__) && defined(__svr4__)
#include <link.h> #include <link.h>
# define USE_PT_GNU_EH_FRAME # define USE_PT_GNU_EH_FRAME
@@ -106,7 +108,8 @@ call_ ## FUNC (void) \ @@ -106,7 +108,8 @@
#if defined(OBJECT_FORMAT_ELF) \ #if defined(OBJECT_FORMAT_ELF) \
&& !defined(OBJECT_FORMAT_FLAT) \ && !defined(OBJECT_FORMAT_FLAT) \
&& defined(HAVE_LD_EH_FRAME_HDR) \ && defined(HAVE_LD_EH_FRAME_HDR) \
@ -267,7 +266,7 @@ Date: Mon Apr 14 15:59:47 2014 -0700
&& defined(__GLIBC__) && __GLIBC__ >= 2 && defined(__GLIBC__) && __GLIBC__ >= 2
#include <link.h> #include <link.h>
/* uClibc pretends to be glibc 2.2 and DT_CONFIG is defined in its 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) \ #if defined(OBJECT_FORMAT_ELF) \
&& !defined(OBJECT_FORMAT_FLAT) \ && !defined(OBJECT_FORMAT_FLAT) \
&& defined(HAVE_LD_EH_FRAME_HDR) \ && 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 --- a/gcc/config/i386/i386.c
+++ b/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c
@@ -15635,6 +15635,7 @@ legitimate_pic_address_disp_p (rtx disp) @@ -15674,6 +15674,7 @@
else if (!SYMBOL_REF_FAR_ADDR_P (op0) else if (!SYMBOL_REF_FAR_ADDR_P (op0)
&& (SYMBOL_REF_LOCAL_P (op0) && (SYMBOL_REF_LOCAL_P (op0)
|| (HAVE_LD_PIE_COPYRELOC || (HAVE_LD_PIE_COPYRELOC

View File

@ -12,7 +12,7 @@ Date: Fri Aug 21 17:41:59 2015 +0300
--- a/libgcc/gthr.h --- a/libgcc/gthr.h
+++ b/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 #define GTHREAD_USE_WEAK 1
#endif #endif
#endif #endif

View File

@ -15,7 +15,7 @@ Date: Mon Apr 14 21:05:51 2014 -0700
--- a/gcc/config/arm/arm.c --- a/gcc/config/arm/arm.c
+++ b/gcc/config/arm/arm.c +++ b/gcc/config/arm/arm.c
@@ -22862,9 +22862,13 @@ arm_print_operand (FILE *stream, rtx x, @@ -22868,9 +22868,13 @@
memsize = MEM_SIZE (x); memsize = MEM_SIZE (x);
/* Only certain alignment specifiers are supported by the hardware. */ /* 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 */ #endif /* GCC_AARCH64_LINUX_ANDROID_H */
--- a/gcc/config/mips/linux-common.h --- a/gcc/config/mips/linux-common.h
+++ b/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. */ /* The default value isn't sufficient in 64-bit mode. */
#define STACK_CHECK_PROTECT (TARGET_64BIT ? 16 * 1024 : 12 * 1024) #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 --- a/gcc/graphite.h
+++ b/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/options.h>
#include <isl/ctx.h> #include <isl/ctx.h>
#include <isl/val.h> #include <isl/val.h>

View File

@ -5,7 +5,7 @@
--- a/gdbserver/configure --- a/gdbserver/configure
+++ b/gdbserver/configure +++ b/gdbserver/configure
@@ -10028,17 +10028,6 @@ @@ -10052,17 +10052,6 @@
case "${target}" in case "${target}" in

View File

@ -1,6 +1,9 @@
diff -urpN gdb-7.12.1.orig/gdb/event-loop.h gdb-7.12.1/gdb/event-loop.h ---
--- gdb-7.12.1.orig/gdb/event-loop.h 2017-01-21 05:46:46.000000000 -0800 gdb/event-loop.h | 4 ++++
+++ gdb-7.12.1/gdb/event-loop.h 2019-03-14 11:55:56.280325742 -0700 1 file changed, 4 insertions(+)
--- a/gdb/event-loop.h
+++ b/gdb/event-loop.h
@@ -66,6 +66,8 @@ @@ -66,6 +66,8 @@
infinite loop. infinite loop.
@ -10,7 +13,7 @@ diff -urpN gdb-7.12.1.orig/gdb/event-loop.h gdb-7.12.1/gdb/event-loop.h
typedef void *gdb_client_data; typedef void *gdb_client_data;
struct async_signal_handler; struct async_signal_handler;
@@ -127,3 +129,5 @@ extern void mark_async_event_handler (st @@ -127,3 +129,5 @@
extern void clear_async_event_handler (struct async_event_handler *handler); extern void clear_async_event_handler (struct async_event_handler *handler);
extern void initialize_async_signal_handlers (void); extern void initialize_async_signal_handlers (void);

View File

@ -1,15 +1,13 @@
--- ---
gdb/nat/aarch64-sve-linux-ptrace.h | 2 +- gdb/nat/aarch64-sve-linux-ptrace.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-) 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gdb/nat/aarch64-sve-linux-ptrace.h b/gdb/nat/aarch64-sve-linux-ptrace.h
index 029e753ffe..172ae39432 100644
--- a/gdb/nat/aarch64-sve-linux-ptrace.h --- a/gdb/nat/aarch64-sve-linux-ptrace.h
+++ b/gdb/nat/aarch64-sve-linux-ptrace.h +++ b/gdb/nat/aarch64-sve-linux-ptrace.h
@@ -20,7 +20,7 @@ @@ -20,7 +20,7 @@
#ifndef AARCH64_SVE_LINUX_PTRACE_H #ifndef AARCH64_SVE_LINUX_PTRACE_H
#define AARCH64_SVE_LINUX_PTRACE_H #define AARCH64_SVE_LINUX_PTRACE_H
-#include <asm/sigcontext.h> -#include <asm/sigcontext.h>
+#include <signal.h> +#include <signal.h>
#include <sys/utsname.h> #include <sys/utsname.h>

View File

@ -4,14 +4,12 @@ Date: Fri, 5 Jun 2020 09:11:40 +0200
Subject: [PATCH] Fix GCC 10+ detection Subject: [PATCH] Fix GCC 10+ detection
--- ---
configure | 2 +- configure | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-) 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/configure b/configure
index 8799b7de78..0f99f04bfc 100755
--- a/configure --- a/configure
+++ b/configure +++ b/configure
@@ -4909,7 +4909,7 @@ $as_echo_n "checking version of $CC... " >&6; } @@ -4909,7 +4909,7 @@
ac_prog_version=`$CC -v 2>&1 | sed -n 's/^.*version \([egcygnustpi-]*[0-9.]*\).*$/\1/p'` ac_prog_version=`$CC -v 2>&1 | sed -n 's/^.*version \([egcygnustpi-]*[0-9.]*\).*$/\1/p'`
case $ac_prog_version in case $ac_prog_version in
'') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
@ -20,6 +18,3 @@ index 8799b7de78..0f99f04bfc 100755
ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
*) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
--
2.25.1

View File

@ -7,14 +7,12 @@ This patch reserves four pointer to be used in future Event-Based
Branch framework for PowerPC. Branch framework for PowerPC.
(cherry picked from commit e55a9b256d53c7fc5145e3e4d338d3741b23e232) (cherry picked from commit e55a9b256d53c7fc5145e3e4d338d3741b23e232)
--- ---
nptl/sysdeps/powerpc/tls.h | 5 +++++ nptl/sysdeps/powerpc/tls.h | 5 +++++
2 files changed, 10 insertions(+) 1 file changed, 5 insertions(+)
diff --git glibc-2.17-c758a686/nptl/sysdeps/powerpc/tls.h glibc-2.17-c758a686/nptl/sysdeps/powerpc/tls.h --- a/nptl/sysdeps/powerpc/tls.h
index 4c09eec..611c773 100644 +++ b/nptl/sysdeps/powerpc/tls.h
--- glibc-2.17-c758a686/nptl/sysdeps/powerpc/tls.h @@ -61,6 +61,11 @@
+++ glibc-2.17-c758a686/nptl/sysdeps/powerpc/tls.h
@@ -61,6 +61,11 @@ typedef union dtv
are private. */ are private. */
typedef struct typedef struct
{ {
@ -26,6 +24,3 @@ index 4c09eec..611c773 100644
uintptr_t pointer_guard; uintptr_t pointer_guard;
uintptr_t stack_guard; uintptr_t stack_guard;
dtv_t *dtv; dtv_t *dtv;
--
1.7.11.7

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