diff options
author | Nick Clifton <nickc@redhat.com> | 2005-03-16 17:18:17 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2005-03-16 17:18:17 +0000 |
commit | 569acd2ce265a3bfeef4f025bb1b4da52bcce5d2 (patch) | |
tree | 83813fa28b4519bb4871f5668b7f5e4ad2d90973 /gas | |
parent | ec442778f9daed1b248114f2ba9676ec50449daa (diff) | |
download | binutils-569acd2ce265a3bfeef4f025bb1b4da52bcce5d2.zip binutils-569acd2ce265a3bfeef4f025bb1b4da52bcce5d2.tar.gz binutils-569acd2ce265a3bfeef4f025bb1b4da52bcce5d2.tar.bz2 |
Rename switch to enable/disable -Werror to --enable-werror/--disable-werror
for compatibility with gcc.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/ChangeLog | 4 | ||||
-rwxr-xr-x | gas/configure | 14 | ||||
-rw-r--r-- | gas/configure.in | 8 |
3 files changed, 13 insertions, 13 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index f2b3a47..fb12069 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,9 +1,9 @@ 2005-03-16 Nick Clifton <nickc@redhat.com> Ben Elliston <bje@au.ibm.com> - * configure.in (error-on-warning): New switch: Add -Werror to the + * configure.in (werror): New switch: Add -Werror to the compiler command line. Enabled by default. Disable via - --disable-error-on-warning. + --disable-werror. * configure: Regenerate. 2005-03-16 Nick Clifton <nickc@redhat.com> diff --git a/gas/configure b/gas/configure index e389280..60ebac9 100755 --- a/gas/configure +++ b/gas/configure @@ -859,7 +859,7 @@ Optional Features: --enable-bfd-assembler use BFD back end for writing object files targets alternative target configurations besides the primary --enable-commonbfdlib build shared BFD/opcodes/libiberty library - --enable-error-on-warning treat compile warnings as errors + --enable-werror treat compile warnings as errors --enable-build-warnings Enable build-time compiler warnings if gcc is used --disable-nls do not use Native Language Support --enable-maintainer-mode enable make rules and dependencies not useful @@ -4090,19 +4090,19 @@ using_cgen=no build_warnings="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" -# Check whether --enable-error-on-warning or --disable-error-on-warning was given. -if test "${enable_error_on_warning+set}" = set; then - enableval="$enable_error_on_warning" +# Check whether --enable-werror or --disable-werror was given. +if test "${enable_werror+set}" = set; then + enableval="$enable_werror" case "${enableval}" in yes | y) ERROR_ON_WARNING="yes" ;; no | n) ERROR_ON_WARNING="no" ;; - *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-error-on-warning" >&5 -echo "$as_me: error: bad value ${enableval} for --enable-error-on-warning" >&2;} + *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5 +echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;} { (exit 1); exit 1; }; } ;; esac fi; -# Enable -Werror by default, suppressing it only for --disable-error-on-warning +# Enable -Werror by default, suppressing it only for --disable-werror # or --disable-build-warnings. if test "${ERROR_ON_WARNING}" != no then diff --git a/gas/configure.in b/gas/configure.in index 580e7d0..b3db9b1 100644 --- a/gas/configure.in +++ b/gas/configure.in @@ -50,15 +50,15 @@ using_cgen=no build_warnings="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" -AC_ARG_ENABLE(error-on-warning, - [ --enable-error-on-warning treat compile warnings as errors], +AC_ARG_ENABLE(werror, + [ --enable-werror treat compile warnings as errors], [case "${enableval}" in yes | y) ERROR_ON_WARNING="yes" ;; no | n) ERROR_ON_WARNING="no" ;; - *) AC_MSG_ERROR(bad value ${enableval} for --enable-error-on-warning) ;; + *) AC_MSG_ERROR(bad value ${enableval} for --enable-werror) ;; esac]) -# Enable -Werror by default, suppressing it only for --disable-error-on-warning +# Enable -Werror by default, suppressing it only for --disable-werror # or --disable-build-warnings. if test "${ERROR_ON_WARNING}" != no then |