pa-linux.h (NEED_INDICATE_EXEC_STACK): Define to 0.
[official-gcc.git] / gcc / testsuite / lib / brig.exp
bloba696c12556587fd2c9a702fae8ccde593c83da2b
1 # Copyright (C) 2009-2018 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 load_lib prune.exp
18 load_lib gcc-defs.exp
19 load_lib timeout.exp
20 load_lib target-libpath.exp
22 # brig_target_compile -- compile a HSAIL input to BRIG using HSAILasm and then
23 # compile the BRIG to target ISA using gcc
25 proc brig_target_compile { source dest type options } {
26 global tmpdir
27 global testname_with_flags
28 if { [file extension $source] == ".hsail" } {
29 # We cannot assume all inputs are .hsail as the dg machinery
30 # calls this for a some c files to check linker plugin support or
31 # similar.
32 set brig_source ${tmpdir}/[file tail ${source}].brig
33 exec HSAILasm $source -o ${brig_source}
34 set source ${brig_source}
35 # Change the testname the .brig.
36 set testname_with_flags [file tail $source]
38 return [target_compile $source $dest $type $options]