When building target binaries, ensure that the warning flags selected for the command...
authorVlad Zakharov <vzakhar@synopsys.com>
Mon, 26 Sep 2016 15:36:08 +0000 (16:36 +0100)
committerNick Clifton <nickc@redhat.com>
Mon, 26 Sep 2016 15:36:08 +0000 (16:36 +0100)
commitc5da193232ea0452f714dffee0d417d965590476
treec2867b21c7ceff96ce501c83c1e99025a55d5ba3
parent384f7503344b1d07561f801ced7493858cde6164
When building target binaries, ensure that the warning flags selected for the command line match the target compiler.

bfd * warning.m4 (AC_EGREP_CPP_FOR_BUILD): Introduce macro
to verify CC_FOR_BUILD compiler.
(AM_BINUTILS_WARNINGS): Introduce ac_cpp_for_build variable
and add CC_FOR_BUILD compiler checks.
* Makefile.in: Regenerate.
* configure: Likewise.
* doc/Makefile.in: Likewise.

binutils * Makefile.am: Replace AM_CLFAGS with AM_CFLAGS_FOR_BUILD
when building with CC_FOR_BUILD compiler.
* Makefile.in: Regenerate.
* configure: Likewise.
* doc/Makefile.in: Likewise.

gas * Makefile.in: Regenerate.
* configure: Likewise.
* doc/Makefile.in: Likewise.

gold * Makefile.in: Regenerate.
* configure: Likewise.
* testsuite/Makefile.in: Likewise.

gprof * Makefile.in: Regenerate.
* configure: Likewise.

ld * Makefile.in: Regenerate.
* configure: Likewise.

opcodes * Makefile.in: Regenerate.
* configure: Likewise.
27 files changed:
bfd/ChangeLog
bfd/Makefile.in
bfd/configure
bfd/doc/Makefile.in
bfd/warning.m4
binutils/ChangeLog
binutils/Makefile.am
binutils/Makefile.in
binutils/configure
binutils/doc/Makefile.in
gas/ChangeLog
gas/Makefile.in
gas/configure
gas/doc/Makefile.in
gold/ChangeLog
gold/Makefile.in
gold/configure
gold/testsuite/Makefile.in
gprof/ChangeLog
gprof/Makefile.in
gprof/configure
ld/ChangeLog
ld/Makefile.in
ld/configure
opcodes/ChangeLog
opcodes/Makefile.in
opcodes/configure