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

--- Comment #10 from Eric Gallager <egallager at gcc dot gnu.org> ---
Current code is like this:

# Enable C extension for fixed-point arithmetic.
AC_ARG_ENABLE(fixed-point,
[AS_HELP_STRING([--enable-fixed-point],
                [enable fixed-point arithmetic extension to C])],
[],
[
  case $target in
    arm*)
      enable_fixed_point=yes
      ;;

    mips*-*-*)
      enable_fixed_point=yes
      ;;
    loongarch*-*-*)
      enable_fixed_point=yes
      ;;
    *)
      AC_MSG_WARN([fixed-point is not supported for this target, ignored])
      enable_fixed_point=no
      ;;
  esac
])
AC_SUBST(enable_fixed_point)

Let's check the documentation for AC_ARG_ENABLE:
https://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.71/html_node/Package-Options.html

So, argument 3 is used if the flag is given, and argument 4 is used when the
flag is *not* given... so when it says "ignored" in the warning, there's
nothing being ignored, because the flag wasn't actually given... perhaps the
3rd and 4th arguments just need to be swapped?

Reply via email to