| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: transform-sunpro-cc,v 1.29 2007/11/28 13:03:56 rillig Exp $ | | 1 | # $NetBSD: transform-sunpro-cc,v 1.30 2008/06/17 12:58:28 sketch Exp $ |
2 | # | | 2 | # |
3 | # Copyright (c) 2004 The NetBSD Foundation, Inc. | | 3 | # Copyright (c) 2004 The NetBSD Foundation, Inc. |
4 | # All rights reserved. | | 4 | # All rights reserved. |
5 | # | | 5 | # |
6 | # This code is derived from software contributed to The NetBSD Foundation | | 6 | # This code is derived from software contributed to The NetBSD Foundation |
7 | # by Johnny C. Lam. | | 7 | # by Johnny C. Lam. |
8 | # | | 8 | # |
9 | # Redistribution and use in source and binary forms, with or without | | 9 | # Redistribution and use in source and binary forms, with or without |
10 | # modification, are permitted provided that the following conditions | | 10 | # modification, are permitted provided that the following conditions |
11 | # are met: | | 11 | # are met: |
12 | # 1. Redistributions of source code must retain the above copyright | | 12 | # 1. Redistributions of source code must retain the above copyright |
13 | # notice, this list of conditions and the following disclaimer. | | 13 | # notice, this list of conditions and the following disclaimer. |
14 | # 2. Redistributions in binary form must reproduce the above copyright | | 14 | # 2. Redistributions in binary form must reproduce the above copyright |
| @@ -100,44 +100,51 @@ case $arg in | | | @@ -100,44 +100,51 @@ case $arg in |
100 | -KPIC |\ | | 100 | -KPIC |\ |
101 | -xcode=pic32 ) transform_to "-KPIC" ;; | | 101 | -xcode=pic32 ) transform_to "-KPIC" ;; |
102 | | | 102 | |
103 | # SunPro needs -mt -lpthread for POSIX threads. | | 103 | # SunPro needs -mt -lpthread for POSIX threads. |
104 | -pthread ) transform_to_and_split "-mt -lpthread" ;; | | 104 | -pthread ) transform_to_and_split "-mt -lpthread" ;; |
105 | | | 105 | |
106 | # -fast implies -xlibmopt, which uses the optimized math | | 106 | # -fast implies -xlibmopt, which uses the optimized math |
107 | # routines in libsunmath. libsunmath is only available as part of | | 107 | # routines in libsunmath. libsunmath is only available as part of |
108 | # SunPro, so disable the use of the optimized math library | | 108 | # SunPro, so disable the use of the optimized math library |
109 | # (at least until it can be statically linked). | | 109 | # (at least until it can be statically linked). |
110 | -fast ) transform_to_and_split "-fast -xnolibmopt" ;; | | 110 | -fast ) transform_to_and_split "-fast -xnolibmopt" ;; |
111 | | | 111 | |
112 | # Pass through those options that SunPro understands. | | 112 | # Pass through those options that SunPro understands. |
| | | 113 | -#* |\ |
113 | -Bdynamic |\ | | 114 | -Bdynamic |\ |
114 | -Bstatic |\ | | 115 | -Bstatic |\ |
115 | -fd |\ | | 116 | -fd |\ |
116 | -features* |\ | | 117 | -features* |\ |
117 | -flags |\ | | 118 | -flags |\ |
118 | -flteval* |\ | | 119 | -flteval* |\ |
119 | -fnonstd* |\ | | 120 | -fnonstd* |\ |
120 | -fns* |\ | | 121 | -fns* |\ |
121 | -fprecision* |\ | | 122 | -fprecision* |\ |
122 | -fround* |\ | | 123 | -fround* |\ |
123 | -fsimple* |\ | | 124 | -fsimple* |\ |
124 | -fsingle |\ | | 125 | -fsingle |\ |
125 | -fstore |\ | | 126 | -fstore |\ |
126 | -ftrap* |\ | | 127 | -ftrap* |\ |
127 | -G |\ | | 128 | -G |\ |
128 | -h*.so.* |\ | | 129 | -h*.so.* |\ |
| | | 130 | -m32 |\ |
| | | 131 | -m64 |\ |
| | | 132 | -mcpu=* |\ |
129 | -mt |\ | | 133 | -mt |\ |
| | | 134 | -S |\ |
130 | -template=* |\ | | 135 | -template=* |\ |
| | | 136 | -V |\ |
| | | 137 | -v |\ |
131 | -xarch=* |\ | | 138 | -xarch=* |\ |
132 | -xcode=* |\ | | 139 | -xcode=* |\ |
133 | -xdepend |\ | | 140 | -xdepend |\ |
134 | -xstrconst |\ | | 141 | -xstrconst |\ |
135 | -xtarget=* ) transform_pass ;; | | 142 | -xtarget=* ) transform_pass ;; |
136 | | | 143 | |
137 | #-std=gnu99 ) transform_to "-xc99" ;; | | 144 | #-std=gnu99 ) transform_to "-xc99" ;; |
138 | #-xc99 ) transform_to_and_split "-xc99 -D_XOPEN_SOURCE=600 -D__EXTENSIONS__" ;; | | 145 | #-xc99 ) transform_to_and_split "-xc99 -D_XOPEN_SOURCE=600 -D__EXTENSIONS__" ;; |
139 | | | 146 | |
140 | -ggdb ) transform_to "-g" ;; | | 147 | -ggdb ) transform_to "-g" ;; |
141 | | | 148 | |
142 | # Ignore some flags that are unnecessary for SunPro. | | 149 | # Ignore some flags that are unnecessary for SunPro. |
143 | -ansi |\ | | 150 | -ansi |\ |