1 # Copyright
(C
) 2013 Free Software Foundation
, Inc.
3 # This
program is free software
; you can redistribute it and
/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation
; either version
3 of the License
, or
6 #
(at your option
) any later version.
8 # This
program is distributed in the hope that it will be useful
,
9 # but WITHOUT
ANY WARRANTY
; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License
for more details.
13 # You should have received a copy of the GNU General Public License
14 # along with GCC
; see the file COPYING3.
If not see
15 #
<http
://www.gnu.org
/licenses
/>.
17 # This file was written by Balaji V. Iyer
<balaji.v.iyer@intel.com
>
18 # Many thanks to the GCC C
-torture contributors.
20 verbose
"$tool $libdir" 1
22 set library_var
[get_multilibs
]
24 set CILK_TORTURE_OPTIONS
[list \
25 { -O0
-fcilkplus
-std
=c99
} \
26 { -O1
-fcilkplus
-std
=c99
} \
27 { -O2
-fcilkplus
-std
=c99
} \
28 { -O3
-fcilkplus
-fomit
-frame
-pointer
-funroll
-loops
-std
=c99
} \
29 { -O3
-fcilkplus
-fomit
-frame
-pointer
-funroll
-all
-loops
-finline
-functions
-std
=c99
} \
30 { -O3
-fcilkplus
-fomit
-frame
-pointer
-funroll
-all
-loops
-finline
-functions
-ftree
-vectorize
-std
=c99
} \
31 { -O3
-g
-fcilkplus
-std
=c99
} \
32 { -Os
-fcilkplus
-std
=c99
} ]
41 load_lib torture
-options.exp
42 load_lib c
-torture.exp
45 set-torture
-options $CILK_TORTURE_OPTIONS
{{}} $CILK_TORTURE_OPTIONS
51 foreach src
[lsort
[glob
-nocomplain $srcdir
/$subdir
/*.c
]] {
52 #
If we
're only testing specific files and this isn't one of them
, skip it.
53 if ![runtest_file_p $runtests $src
] then {
57 c
-torture
-execute $src