diff options
author | J.T. Conklin <jtc@redback.com> | 2001-04-13 02:22:23 +0000 |
---|---|---|
committer | J.T. Conklin <jtc@redback.com> | 2001-04-13 02:22:23 +0000 |
commit | 116071ecd0235fbb0134d321ccfb3f6e7a9a3c3e (patch) | |
tree | 2d9c3675430b3c312692d05d6cd596e3bf00d382 /ld/ldmisc.c | |
parent | 18d0ddaee98642e2880761dc07141b1b92341a84 (diff) | |
download | binutils-redhat-116071ecd0235fbb0134d321ccfb3f6e7a9a3c3e.tar.gz |
* ld.texinfo: Document --fatal-warnings.
* ld.1: Regenerate.
* ldmisc.c (vfinfo): Set flag to inhibit making executable if
warnings have been turned into errors.
* lexsup.c (OPTION_WARN_FATAL): Define.
(ld_options): Entry for --fatal-warnings.
(parse_args): Handle OPTION_WARN_FATAL.
* ld.h (ld_config_type): Add fatal_warnings field.
Diffstat (limited to 'ld/ldmisc.c')
-rw-r--r-- | ld/ldmisc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ld/ldmisc.c b/ld/ldmisc.c index e07ce1ba2c..a27cf1166d 100644 --- a/ld/ldmisc.c +++ b/ld/ldmisc.c @@ -399,6 +399,9 @@ vfinfo (fp, fmt, arg) } } + if (config.fatal_warnings) + config.make_executable = false; + if (fatal == true) xexit (1); } |