* sibcall.c (optimize_sibling_and_tail_recursive_calls): Call
[official-gcc.git] / libstdc++-v3 / testsuite_flags.in
blob3e79b66f188e71b7b36e9b4ca95b2fae27649d76
1 #!/bin/sh
4 # This script computes the various flags needed to run GNU C++ testsuites
5 # (compiler specific as well as library specific).
7 # Written by Benjamin Kosnik <bkoz@redhat.com>
8 # Gabriel Dos Reis <gdr@codesourcery.com>
11 # Print a message saying how this script is intended to be invoked
12 print_usage() {
13 cat <<EOF
14 Usage:
15 testsuite_flags --install-includes
16 --build-includes
17 --build-cxx
18 --install-cxx
19 --cxxflags
20 EOF
23 # Establish configure-generated directory structure.
24 BUILD_DIR=@glibcpp_builddir@
25 SRC_DIR=@glibcpp_srcdir@
26 PREFIX_DIR=@glibcpp_prefixdir@
27 query=$1
29 case ${query} in
30 --install-includes)
31 INCLUDES="-I${SRC_DIR}/testsuite"
32 echo ${INCLUDES}
34 --build-includes)
35 INCLUDES="-nostdinc++ @GLIBCPP_INCLUDES@
36 -I${SRC_DIR}/libsupc++ -I${SRC_DIR}/libio
37 -I${SRC_DIR}/testsuite"
38 echo ${INCLUDES}
40 --install-cxx)
41 CXX=${PREFIX_DIR}/bin/g++
42 echo ${CXX}
44 --build-cxx)
45 CC_build="@glibcpp_CXX@"
46 CXX=`echo $CC_build | sed 's/xgcc/g++/g'`
47 echo ${CXX}
49 --cxxflags)
50 CXXFLAGS=" -ggdb3 -DDEBUG_ASSERT @SECTION_FLAGS@ @SECTION_LDFLAGS@"
51 echo ${CXXFLAGS}
54 print_usage
56 esac
58 exit 0