diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2018-08-23 06:12:37 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2018-08-23 06:12:50 -0700 |
commit | 7dd36a6f1ca92cd4ca4776064c604cda7755bc44 (patch) | |
tree | 0e8bd6bf4cc5c2bfcaf2a0052cf6ef5fe91b9ff4 /gas | |
parent | 44c2eb66808a928b8101f1b880f3482312cbcc1e (diff) | |
download | gdb-7dd36a6f1ca92cd4ca4776064c604cda7755bc44.zip gdb-7dd36a6f1ca92cd4ca4776064c604cda7755bc44.tar.gz gdb-7dd36a6f1ca92cd4ca4776064c604cda7755bc44.tar.bz2 |
Prune BFD warnings for unknown GNU properties
When glibc is enabled with the new GNU_PROPERTY_X86_XXX bits:
https://groups.google.com/forum/#!topic/x86-64-abi/-D05GQ3kWrA
BFD will issue an unknown GNU property warning like
warning: tmpdir/ld1: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0010001
and ignore such GNU properties. This patch adds prune_warnings_extra to
prune such warnings on release branches and updates prune_warnings to
call prune_warnings_extra.
binutils/
PR ld/23536
* Makefile.am (development.exp): New target.
(EXTRA_DEJAGNU_SITE_CONFIG): New.
(DISTCLEANFILES): Add development.exp.
* Makefile.in: Regenerated.
* testsuite/binutils-all/objcopy.exp (strip_test): Call
prune_warnings to prune BFD output.
(strip_test_with_saving_a_symbol): Likewise.
(objcopy_test_without_global_symbol): Likewise.
* testsuite/lib/binutils-common.exp (prune_warnings_extra):
New proc.
(prune_warnings): Likewise.
gas/
PR ld/23536
* Makefile.am (development.exp): New target.
(EXTRA_DEJAGNU_SITE_CONFIG): New.
(DISTCLEANFILES): Add development.exp.
* Makefile.in: Regenerated.
ld/
PR ld/23536
* Makefile.am (development.exp): New target.
(EXTRA_DEJAGNU_SITE_CONFIG): New.
(DISTCLEANFILES): Add development.exp.
* Makefile.in: Regenerated.
* testsuite/ld-bootstrap/bootstrap.exp: Call prune_warnings to
prune BFD output.
* testsuite/ld-plugin/lto.exp: Likewise.
* testsuite/lib/ld-lib.exp (prune_warnings): Removed.
* testsuite/ld-elf/shared.exp: Allow "\n" in linker warnings.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/ChangeLog | 8 | ||||
-rw-r--r-- | gas/Makefile.am | 8 | ||||
-rw-r--r-- | gas/Makefile.in | 7 |
3 files changed, 21 insertions, 2 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index f86ab28..a9325fb 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,11 @@ +2018-08-23 H.J. Lu <hongjiu.lu@intel.com> + + PR ld/23536 + * Makefile.am (development.exp): New target. + (EXTRA_DEJAGNU_SITE_CONFIG): New. + (DISTCLEANFILES): Add development.exp. + * Makefile.in: Regenerated. + 2018-08-22 Alan Modra <amodra@gmail.com> * dw2gencfi.c (emit_expr_encoded, output_fde): Warning fixes. diff --git a/gas/Makefile.am b/gas/Makefile.am index 8f520d3..9b3d32f 100644 --- a/gas/Makefile.am +++ b/gas/Makefile.am @@ -432,6 +432,10 @@ check-DEJAGNU: site.exp else echo "WARNING: could not find \`runtest'" 1>&2; :;\ fi +development.exp: $(BFDDIR)/development.sh + $(EGREP) "[development|experimental]=" $(BFDDIR)/development.sh \ + | $(AWK) -F= '{ print "set " $$1 " " $$2 }' > $@ + # The m68k operand parser. EXTRA_as_new_SOURCES += config/m68k-parse.y @@ -591,7 +595,7 @@ cgen.@OBJEXT@: cgen.c cgen.h cgen-desc.h subsegs.h \ MOSTLYCLEANFILES = $(STAGESTUFF) core \ testsuite/*.@OBJEXT@ testsuite/*.out testsuite/gas.log testsuite/gas.sum \ - testsuite/site.exp site.bak site.exp stage stage1 stage2 + testsuite/site.exp site.bak site.exp development.exp stage stage1 stage2 .PHONY: install-exec-local install-data-local .PHONY: install-exec-bindir install-exec-tooldir @@ -692,3 +696,5 @@ de-stage3: # Reconfigure if configure.tgt changes. # development.sh is used to determine -Werror default. CONFIG_STATUS_DEPENDENCIES = $(srcdir)/configure.tgt $(BFDDIR)/development.sh + +EXTRA_DEJAGNU_SITE_CONFIG = development.exp diff --git a/gas/Makefile.in b/gas/Makefile.in index 862f948..07bb7f0 100644 --- a/gas/Makefile.in +++ b/gas/Makefile.in @@ -803,13 +803,14 @@ CGEN_CPU_PREFIX = @cgen_cpu_prefix@ # Remake the info files. MOSTLYCLEANFILES = $(STAGESTUFF) core \ testsuite/*.@OBJEXT@ testsuite/*.out testsuite/gas.log testsuite/gas.sum \ - testsuite/site.exp site.bak site.exp stage stage1 stage2 + testsuite/site.exp site.bak site.exp development.exp stage stage1 stage2 against = stage2 # Reconfigure if configure.tgt changes. # development.sh is used to determine -Werror default. CONFIG_STATUS_DEPENDENCIES = $(srcdir)/configure.tgt $(BFDDIR)/development.sh +EXTRA_DEJAGNU_SITE_CONFIG = development.exp all: config.h $(MAKE) $(AM_MAKEFLAGS) all-recursive @@ -1563,6 +1564,10 @@ check-DEJAGNU: site.exp else echo "WARNING: could not find \`runtest'" 1>&2; :;\ fi +development.exp: $(BFDDIR)/development.sh + $(EGREP) "[development|experimental]=" $(BFDDIR)/development.sh \ + | $(AWK) -F= '{ print "set " $$1 " " $$2 }' > $@ + # If m68k-parse.y is in a different directory, then ylwrap will use an # absolute path when it invokes yacc, which will cause yacc to put the # absolute path into the generated file. That's a pain when it comes |