pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/wrapper Reformatted the file to look more beautiful.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2eae08a6fc57
branches:  trunk
changeset: 521999:2eae08a6fc57
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Thu Nov 30 10:01:29 2006 +0000

description:
Reformatted the file to look more beautiful.

Reordered the compiler options to catch the standard ones first.

diffstat:

 mk/wrapper/transform-gcc |  81 +++++++++++++++++++++++------------------------
 1 files changed, 39 insertions(+), 42 deletions(-)

diffs (101 lines):

diff -r e939213d33e2 -r 2eae08a6fc57 mk/wrapper/transform-gcc
--- a/mk/wrapper/transform-gcc  Thu Nov 30 07:33:23 2006 +0000
+++ b/mk/wrapper/transform-gcc  Thu Nov 30 10:01:29 2006 +0000
@@ -1,13 +1,21 @@
-# $NetBSD: transform-gcc,v 1.4 2006/11/26 14:39:52 rillig Exp $
+# $NetBSD: transform-gcc,v 1.5 2006/11/30 10:01:29 rillig Exp $
 #
-# This file prints warning messages for all obscure gcc options into the
-# wrapper log file.
+# This file handles the transformations needed for gcc that can be done
+# looking at only one argument at a time.
+#
 
 transform_setname "transform-gcc"
 
 case $arg in
 
--KPIC|\
+-[EcgOos]              |\
+-[DILlU]?*             |\
+-O[01])
+       # Standard options.
+       transform_pass ;;
+
+-fPIC                  |\
+-KPIC                  |\
 -kPIC)
        # Needed for the Solaris imake.
        transform_to "-fPIC" ;;
@@ -16,44 +24,33 @@
        # Needed on Solaris with SunPro.
        transform_to "-threads" ;;
 
--c|\
--D?*|\
--E|\
--fPIC|\
--g|\
--I?*|\
--L?*|\
--l?*|\
--M[DFPT]|\
--O|\
--O[012345s]*|\
--o|\
--pthread|\
--shared|\
--static|\
--std=c99|\
--std=gnu99|\
--U?*|\
--W|\
--W[cLlS],*|\
--Wall|\
--Wcast-qual|\
--Wextra|\
--Werror|\
--Wformat=[012]|\
--Wmissing-prototypes|\
--Wno-error|\
--Wno-long-long|\
--Wno-traditional|\
--Wno-uninitialized|\
--Wno-unused|\
--Wno-write-strings|\
--Wpointer-arith|\
--Wreturn-type|\
--Wshadow|\
--Wsign-compare|\
--Wstrict-prototypes|\
--Wswitch|\
+-M[DFPT]               |\
+-O[23s]                        |\
+-pthread               |\
+-shared                        |\
+-static                        |\
+-std=c99               |\
+-std=gnu99             |\
+-W                     |\
+-W[cLlS],*             |\
+-Wall                  |\
+-Wcast-qual            |\
+-Wextra                        |\
+-Werror                        |\
+-Wformat=[012]         |\
+-Wmissing-prototypes   |\
+-Wno-error             |\
+-Wno-long-long         |\
+-Wno-traditional       |\
+-Wno-uninitialized     |\
+-Wno-unused            |\
+-Wno-write-strings     |\
+-Wpointer-arith                |\
+-Wreturn-type          |\
+-Wshadow               |\
+-Wsign-compare         |\
+-Wstrict-prototypes    |\
+-Wswitch               |\
 -Wwrite-strings)
        transform_pass ;;
 



Home | Main Index | Thread Index | Old Index