List:Commits« Previous MessageNext Message »
From:Davi Arnaut Date:December 7 2010 3:06pm
Subject:bzr commit into mysql-5.1-bugteam branch (davi:3512) Bug#57991
View as plain text  
# At a local mysql-5.1-bugteam repository of davi

 3512 Davi Arnaut	2010-12-07
      Bug#57991: Compiler flag change build error : adler32.c
      
      Do not use the same maintainer mode flags for both GCC and ICC.
      The -Wall option for ICC enables more warnings than its GCC
      counterpart.

    modified:
      config/ac-macros/maintainer.m4
=== modified file 'config/ac-macros/maintainer.m4'
--- a/config/ac-macros/maintainer.m4	2010-11-05 13:17:47 +0000
+++ b/config/ac-macros/maintainer.m4	2010-12-07 15:06:20 +0000
@@ -15,8 +15,11 @@ AC_DEFUN([MY_MAINTAINER_MODE], [
 
 # Set warning options required under maintainer mode.
 AC_DEFUN([MY_MAINTAINER_MODE_WARNINGS], [
+  # Detect ICC posing as GCC.
+  AC_EGREP_CPP([^__INTEL_COMPILER], [__INTEL_COMPILER],
+               [INTEL_COMPILER=no], [INTEL_COMPILER=yes])
   # Setup GCC warning options.
-  AS_IF([test "$GCC" = "yes"], [
+  AS_IF([test "$GCC" = "yes" -a "$INTEL_COMPILER" = "no"], [
     C_WARNINGS="-Wall -Wextra -Wunused -Wwrite-strings -Wno-strict-aliasing -Werror"
     CXX_WARNINGS="${C_WARNINGS} -Wno-unused-parameter"
     C_WARNINGS="${C_WARNINGS} -Wdeclaration-after-statement"


Attachment: [text/bzr-bundle] bzr/davi.arnaut@oracle.com-20101207150620-oaty6fmx9d0yevc9.bundle
Thread
bzr commit into mysql-5.1-bugteam branch (davi:3512) Bug#57991Davi Arnaut7 Dec
Re: bzr commit into mysql-5.1-bugteam branch (davi:3512) Bug#57991Tor Didriksen8 Dec
  • Re: bzr commit into mysql-5.1-bugteam branch (davi:3512) Bug#57991Davi Arnaut8 Dec