wrap some more gcc flags to suitable xlc flags

This commit is contained in:
sno 2009-06-11 10:38:28 +00:00
parent e422e3b011
commit 5dfc240bfc
2 changed files with 58 additions and 2 deletions

View file

@ -1,4 +1,4 @@
# $NetBSD: cmd-sink-aix-cc,v 1.8 2009/06/02 17:39:28 sno Exp $
# $NetBSD: cmd-sink-aix-cc,v 1.9 2009/06/11 10:38:28 sno Exp $
#
# Copyright (c) 2005 The NetBSD Foundation, Inc.
# All rights reserved.
@ -86,10 +86,22 @@ while ! queue_is_empty cmdbuf; do
arg=-qthreaded
. $buildcmd
;;
-fexceptions)
arg=-qstrict=exceptions
. $buildcmd
;;
-fpic|-fPIC)
arg=-qpic=large
. $buildcmd
;;
-Os)
arg=-O2
. $buildcmd
arg=-qnounroll
. $buildcmd
arg=-qnoinline
. $buildcmd
;;
-shared)
arg=-qmkshrobj
. $buildcmd
@ -104,6 +116,22 @@ while ! queue_is_empty cmdbuf; do
arg=-Wl,-bexpall
. $buildcmd
;;
-Wall)
arg=-qflag=w:w
. $buildcmd
arg=-qinfo
. $buildcmd
;;
-W|-Wextra)
arg=-qformat
. $buildcmd
arg=-qwarn64
. $buildcmd
;;
-Werror)
arg=-qhalt=w
. $buildcmd
;;
*)
. $buildcmd
;;

View file

@ -1,4 +1,4 @@
# $NetBSD: cmd-sink-aix-xlc,v 1.12 2009/06/02 17:39:28 sno Exp $
# $NetBSD: cmd-sink-aix-xlc,v 1.13 2009/06/11 10:38:28 sno Exp $
#
# Copyright (c) 2004 The NetBSD Foundation, Inc.
# All rights reserved.
@ -82,10 +82,22 @@ while ! queue_is_empty cmdbuf; do
arg=-qthreaded
. $buildcmd
;;
-fexceptions)
arg=-qstrict=exceptions
. $buildcmd
;;
-fpic|-fPIC)
arg=-qpic=large
. $buildcmd
;;
-Os)
arg=-O2
. $buildcmd
arg=-qnounroll
. $buildcmd
arg=-qnoinline
. $buildcmd
;;
-shared)
arg=-qmkshrobj
. $buildcmd
@ -100,6 +112,22 @@ while ! queue_is_empty cmdbuf; do
arg=-Wl,-bexpall
. $buildcmd
;;
-Wall)
arg=-qflag=w:w
. $buildcmd
arg=-qinfo
. $buildcmd
;;
-W|-Wextra)
arg=-qformat
. $buildcmd
arg=-qwarn64
. $buildcmd
;;
-Werror)
arg=-qhalt=w
. $buildcmd
;;
*)
. $buildcmd
;;