1 # Copyright
2013-2022 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 this
program.
If not
, see
<http
://www.gnu.org
/licenses
/>.
16 # This file is a dejagnu
"board file" and is used to run the testsuite
17 # with Fission support and generation of dwp files.
18 # http
://gcc.gnu.org
/wiki
/DebugFission
19 # http
://gcc.gnu.org
/wiki
/DebugFissionDWP
22 # bash$ make check RUNTESTFLAGS
='--target_board=fission-dwp'
24 load_board_description
"fission"
26 set found_gcc
[find_gcc
]
27 set found_gxx
[find_g
++]
29 set contrib_dir
[file normalize $srcdir
/..
/contrib
]
30 if ![info exists CC_FOR_TARGET
] {
31 set CC_FOR_TARGET
"$found_gcc"
33 set CC_FOR_TARGET
"$contrib_dir/cc-with-tweaks.sh -p $CC_FOR_TARGET"
34 if ![info exists CXX_FOR_TARGET
] {
35 set CXX_FOR_TARGET
"$found_gxx"
37 set CXX_FOR_TARGET
"$contrib_dir/cc-with-tweaks.sh -p $CXX_FOR_TARGET"
39 if ![info exists READELF_FOR_TARGET
] {
40 set READELF_FOR_TARGET
"[transform readelf]"
42 # cc
-with
-tweaks.sh uses READELF
, not READELF_FOR_TARGET. Blech.
43 set env
(READELF
) "$READELF_FOR_TARGET"
45 if ![info exists DWP_FOR_TARGET
] {
46 set DWP_FOR_TARGET
"[transform dwp]"
48 # cc
-with
-tweaks.sh uses DWP
, not DWP_FOR_TARGET. Blech.
49 set env
(DWP
) "$DWP_FOR_TARGET"