This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug bootstrap/51388] Configure failure to detect unsupported warning options for non-bootstrap builds (including cross builds)


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51388

Eric Gallager <egallager at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |egallager at gcc dot gnu.org
         Resolution|---                         |FIXED

--- Comment #13 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Andreas Schwab from comment #11)
> Does this work?
> 
> diff --git a/config/warnings.m4 b/config/warnings.m4
> index 292e5a4..b64b594 100644
> --- a/config/warnings.m4
> +++ b/config/warnings.m4
> @@ -32,7 +32,7 @@ for real_option in $1; do
>    # Do the check with the no- prefix removed since gcc silently
>    # accepts any -Wno-* option on purpose
>    case $real_option in
> -    -Wno-*) option=-W`expr $real_option : '-Wno-\(.*\)'` ;;
> +    -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
>      *) option=$real_option ;;
>    esac
>    AS_VAR_PUSHDEF([acx_Woption], [acx_cv_prog_cc_warning_$option])

(In reply to Andreas Tobler from comment #12)
> Seems to work. At least in stage one, compiling gcc.
> 
> Thank you!

Upon checking current config/warnings.m4, it looks like this patch was applied,
so I'm closing this bug as FIXED.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]