pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk/wrapper Added some more flags that gcc definitely k...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/3b4ee164e924
branches:  trunk
changeset: 523316:3b4ee164e924
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Sat Jan 06 02:20:10 2007 +0000

description:
Added some more flags that gcc definitely knows, to reduce the number of
warnings.

diffstat:

 mk/wrapper/transform-gcc |  25 ++++++++++++++++++++++---
 1 files changed, 22 insertions(+), 3 deletions(-)

diffs (74 lines):

diff -r 1db2e4f4515e -r 3b4ee164e924 mk/wrapper/transform-gcc
--- a/mk/wrapper/transform-gcc  Sat Jan 06 02:13:27 2007 +0000
+++ b/mk/wrapper/transform-gcc  Sat Jan 06 02:20:10 2007 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: transform-gcc,v 1.10 2006/12/10 00:18:17 rillig Exp $
+# $NetBSD: transform-gcc,v 1.11 2007/01/06 02:20:10 rillig Exp $
 #
 # This file handles the transformations needed for gcc that can be done
 # looking at only one argument at a time.
@@ -13,15 +13,27 @@
 -[DILlU]?*             |\
 -O[01]                 ) transform_pass ;;
 
+# Needed for the GNU configure scripts:
+-V                     |\
+-v                     |\
+--version              ) transform_pass ;;
+
 # GCC extensions.
+-                      |\
+-dynamic               |\
+-export-dynamic                |\
+-ffast-math            |\
+-finline-functions     |\
+-fno-implicit-templates        |\
 -fPIC                  |\
--fno-implicit-templates        |\
 -ggdb                  |\
 -M                     |\
 -M[DFMPT]              |\
 -O[23s]                        |\
+-pedantic              |\
 -pipe                  |\
 -pthread               |\
+-print-prog-name=*     |\
 -shared                        |\
 -static                        |\
 -std=c99               |\
@@ -33,27 +45,34 @@
 -Wcast-qual            |\
 -Wextra                        |\
 -Werror                        |\
+-Werror-implicit-function-declaration |\
 -Wformat=[012]         |\
+-Wmissing-declarations |\
 -Wmissing-prototypes   |\
 -Wno-error             |\
 -Wno-implicit-int      |\
 -Wno-long-long         |\
 -Wno-traditional       |\
+-Wno-undef             |\
 -Wno-uninitialized     |\
 -Wno-unused            |\
 -Wno-write-strings     |\
+-Wparentheses          |\
 -Wpointer-arith                |\
 -Wreturn-type          |\
 -Wshadow               |\
 -Wsign-compare         |\
 -Wstrict-prototypes    |\
 -Wswitch               |\
+-Wundef                        |\
 -Wwrite-strings                ) transform_pass ;;
 
 # Options specific to g++.
 -fmessage-length=*     |\
+-fno-check-new         |\
 -fno-exceptions                |\
--fno-rtti              ) transform_pass ;;
+-fno-rtti              |\
+-Wno-non-virtual-dtor  ) transform_pass ;;
 
 # Other compiler's options that have corresponding GCC options.
 -KPIC                  |\



Home | Main Index | Thread Index | Old Index