configure: Eliminate MSVC2008 compatibility.
authorJose Fonseca <jfonseca@vmware.com>
Thu, 11 Feb 2016 11:07:33 +0000 (11:07 +0000)
committerJose Fonseca <jfonseca@vmware.com>
Thu, 11 Feb 2016 21:36:00 +0000 (21:36 +0000)
We no longer need to build any part of Mesa with Windows SDK 7.0.7600 or
MSVC 2008.  MSVC 2013 will be the oldest we support.

In practice this means people are now free to declare variables in the
middle of blocks, on the whole Mesa tree.

Care should still be taken with variable length arrays and void pointer
arithmetic.

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Hella-acked-by: Ian Romanick <ian.d.romanick@intel.com>
configure.ac
src/gallium/auxiliary/Makefile.am
src/gallium/drivers/llvmpipe/Makefile.am
src/gallium/drivers/softpipe/Makefile.am
src/gallium/drivers/trace/Makefile.am
src/util/Makefile.am

index 57fdde38f4562e9b0fcc5e357726b9a2911959ff..2750d4d56c7814a7a7d885c427c1c835070b22f4 100644 (file)
@@ -305,8 +305,7 @@ if test "x$GCC" = xyes; then
 
     # Flags to help ensure that certain portions of the code -- and only those
     # portions -- can be built with MSVC:
-    # - src/util, src/gallium/auxiliary, and src/gallium/drivers/llvmpipe needs
-    #   to build with Windows SDK 7.0.7600, which bundles MSVC 2008
+    # - src/util, src/gallium/auxiliary, rc/gallium/drivers/llvmpipe, and
     # - non-Linux/Posix OpenGL portions needs to build on MSVC 2013 (which
     #   supports most of C99)
     # - the rest has no compiler compiler restrictions
@@ -323,9 +322,6 @@ if test "x$GCC" = xyes; then
                    AC_MSG_RESULT([yes])],
                    AC_MSG_RESULT([no]));
     CFLAGS="$save_CFLAGS"
-
-    MSVC2008_COMPAT_CFLAGS="$MSVC2013_COMPAT_CFLAGS -Werror=declaration-after-statement"
-    MSVC2008_COMPAT_CXXFLAGS="$MSVC2013_COMPAT_CXXFLAGS"
 fi
 if test "x$GXX" = xyes; then
     CXXFLAGS="$CXXFLAGS -Wall"
@@ -353,8 +349,6 @@ fi
 
 AC_SUBST([MSVC2013_COMPAT_CFLAGS])
 AC_SUBST([MSVC2013_COMPAT_CXXFLAGS])
-AC_SUBST([MSVC2008_COMPAT_CFLAGS])
-AC_SUBST([MSVC2008_COMPAT_CXXFLAGS])
 
 dnl even if the compiler appears to support it, using visibility attributes isn't
 dnl going to do anything useful currently on cygwin apart from emit lots of warnings
index 0ac5c9802f295b4de6b730983126c61cbc9f6cba..82c2869b99bf44db0aa78815e83a2af8787a9c9b 100644 (file)
@@ -8,11 +8,11 @@ AM_CFLAGS = \
        -I$(top_srcdir)/src/gallium/auxiliary/util \
        $(GALLIUM_CFLAGS) \
        $(VISIBILITY_CFLAGS) \
-       $(MSVC2008_COMPAT_CFLAGS)
+       $(MSVC2013_COMPAT_CFLAGS)
 
 AM_CXXFLAGS = \
        $(VISIBILITY_CXXFLAGS) \
-       $(MSVC2008_COMPAT_CXXFLAGS)
+       $(MSVC2013_COMPAT_CXXFLAGS)
 
 libgallium_nir_la_SOURCES = \
        $(NIR_SOURCES)
index 1d3853e41a6d4a1693d624ae35a2b99bc0c09c7a..85ae0ae13d89cb29c4b59da60275518d05ee610f 100644 (file)
@@ -26,11 +26,11 @@ include $(top_srcdir)/src/gallium/Automake.inc
 AM_CFLAGS = \
        $(GALLIUM_DRIVER_CFLAGS) \
        $(LLVM_CFLAGS) \
-       $(MSVC2008_COMPAT_CFLAGS)
+       $(MSVC2013_COMPAT_CFLAGS)
 AM_CXXFLAGS= \
        $(GALLIUM_DRIVER_CXXFLAGS) \
        $(LLVM_CXXFLAGS) \
-       $(MSVC2008_COMPAT_CXXFLAGS)
+       $(MSVC2013_COMPAT_CXXFLAGS)
 
 noinst_LTLIBRARIES = libllvmpipe.la
 
index 05126a5dbafb0975a457fed73a066dfecebb1459..fd77edc51a166d1ecc11aea563c417de8ac01656 100644 (file)
@@ -25,7 +25,7 @@ include $(top_srcdir)/src/gallium/Automake.inc
 
 AM_CFLAGS = \
        $(GALLIUM_DRIVER_CFLAGS) \
-       $(MSVC2008_COMPAT_CFLAGS)
+       $(MSVC2013_COMPAT_CFLAGS)
 
 noinst_LTLIBRARIES = libsoftpipe.la
 
index 6a8a74a9103b54a8c56f77d5314475b330575321..5640192337e2575cb9f33bca1c8208f100709614 100644 (file)
@@ -3,7 +3,7 @@ include $(top_srcdir)/src/gallium/Automake.inc
 
 AM_CFLAGS = \
        $(GALLIUM_DRIVER_CFLAGS) \
-       $(MSVC2008_COMPAT_CFLAGS)
+       $(MSVC2013_COMPAT_CFLAGS)
 
 noinst_LTLIBRARIES = libtrace.la
 
index e05a2c5958ca4c703feea66f768ea9d2962f8e11..093589163bae0573a983f90fe19df00d87a863cb 100644 (file)
@@ -38,7 +38,7 @@ libmesautil_la_CPPFLAGS = \
        -I$(top_srcdir)/src/gallium/auxiliary \
        $(SHA1_CFLAGS) \
        $(VISIBILITY_CFLAGS) \
-       $(MSVC2008_COMPAT_CFLAGS)
+       $(MSVC2013_COMPAT_CFLAGS)
 
 libmesautil_la_SOURCES = \
        $(MESA_UTIL_FILES) \