aboutsummaryrefslogtreecommitdiff
path: root/ld/ldmisc.c
diff options
context:
space:
mode:
authorJ.T. Conklin <jtc@acorntoolworks.com>2001-04-13 02:22:23 +0000
committerJ.T. Conklin <jtc@acorntoolworks.com>2001-04-13 02:22:23 +0000
commit7ce691aec4ef1b3ee705799d7166bc949815440c (patch)
tree92e5d49ac8ac7a4b6ccb7d11be83f0b23b248ced /ld/ldmisc.c
parentf5fa8ca231d47662321addbfbde105e2bed0be07 (diff)
downloadgdb-7ce691aec4ef1b3ee705799d7166bc949815440c.zip
gdb-7ce691aec4ef1b3ee705799d7166bc949815440c.tar.gz
gdb-7ce691aec4ef1b3ee705799d7166bc949815440c.tar.bz2
* 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.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ld/ldmisc.c b/ld/ldmisc.c
index e07ce1b..a27cf11 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);
}