pass through -f flags that sunpro understands verbatim, drop other -f*

flags.
This commit is contained in:
grant 2005-08-18 05:04:49 +00:00
parent 0744c46196
commit 9f4fe6c27d

View file

@ -1,4 +1,4 @@
# $NetBSD: transform-sunpro-cc,v 1.7 2005/08/18 05:02:53 grant Exp $
# $NetBSD: transform-sunpro-cc,v 1.8 2005/08/18 05:04:49 grant Exp $
#
# Copyright (c) 2004 The NetBSD Foundation, Inc.
# All rights reserved.
@ -128,9 +128,23 @@ case $arg in
split_arg=yes
;;
######################################################################
# Pass through -f flags that SunPro understands.
######################################################################
-fast|-fd|-features*|-flags|-flteval*|-fnonstd*|-fns*|-fprecision*|-fround*|-fsimple*|-fsingle|-fstore|-ftrap*)
addtocache=yes
;;
######################################################################
# Ignore all other -f flags.
######################################################################
-f*)
arg=
msg_log $wrapperlog " (transform-sunpro-cc) to: $arg"
addtocache=yes
;;
######################################################################
# Ignore some flags that are unnecessary for SunPro.
######################################################################
-ansi|-fno-gnu-keywords|-fomit-frame-pointer|-fpermissive|-fstrict-prototypes|-fwriteable-strings|-pedantic|-traditional)
-ansi|-pedantic|-traditional)
arg=
msg_log $wrapperlog " (transform-sunpro-cc) to: $arg"
addtocache=yes