On Sat, Dec 05, 2009 at 09:58:01PM +0000, rubisher wrote:
> +AC_ARG_ENABLE([sparse],
> +           AS_HELP_STRING([--enable-sparse],
> +                             [enable sparse code checking]), ,
> +        enable_sparse=no
> +)
> +
> +# Set cgcc as compiler and add sparse flags if --enable-sparse was specified.
> +if test "$enable_sparse" = "yes"; then
> +        CC="REAL_CC=$CC cgcc"
> +        CFLAGS="$CFLAGS -Wbitwise -Wnon-pointer-null"
> +        TARGET_CC="REAL_CC=$TARGET_CC cgcc"
> +        TARGET_CFLAGS="$TARGET_CFLAGS -Wbitwise -Wnon-pointer-null"
> +fi
> +

This doesn't seem to be recognized by all versions of GCC we support.  If
we enable these flags this needs to be checked.

-- 
Robert Millan

  The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
  how) you may access your data; but nobody's threatening your freedom: we
  still allow you to remove your data and not access it at all."


_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to