1 # Copyright (C) 2005 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 2 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, write to the Free Software
15 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17 # If there is no baseline file, or we can't find the library, skip
19 if { ![info exists baseline_file] \
20 || ![file exists $baseline_file] \
21 || ![file exists "../src/.libs/libstdc++.so"] } {
25 # Figure out what symbols are defined by the active build of the library.
26 remote_exec "build" "$srcdir/../scripts/extract_symvers" \
27 [list "../src/.libs/libstdc++.so" "current_symbols.txt"]
29 # Build the support objects.
32 # Build the abi_check program.
33 if { [v3_target_compile "$srcdir/abi_check.cc" "abi_check" \
34 "executable" [list "additional_flags=-w"]] != "" } {
35 error "could not compile abi_check.cc"
38 remote_download "target" $baseline_file "baseline_symbols.txt"
39 remote_download "target" "current_symbols.txt" "current_symbols.txt"
40 set result [${tool}_load "./abi_check" \
41 [list "--check-verbose" "current_symbols.txt" \
42 "baseline_symbols.txt"]]
43 [lindex $result 0] "abi_check"