Makefile.am (doxygen, [...]): Tweak targets.
2002-01-28 Phil Edwards <pme@gcc.gnu.org>
* Makefile.am (doxygen, doxygen-maint, doxygen-man): Tweak targets.
* Makefile.in: Regenerate.
* docs/doxygen/run_doxygen: Update, mostly for man pages.
* docs/doxygen/Intro.3: Update.
* docs/doxygen/TODO: Update.
* docs/doxygen/doxygroups.cc: Add namespace hook for __gnu_cxx.
* docs/doxygen/mainpage.doxy: Update.
* docs/doxygen/user.cfg.in: Update for header rename. Also
regenerate comments and variables with 1.2.12.
* docs/doxygen/maint.cfg.in: Remove file.
* include/bits/stl_relops.h: Doxygenate.
* include/bits/stl_tempbuf.h (std::_Temporary_buffer): Likewise.
* include/c_std/std_cassert.h, include/c_std/std_cctype.h,
include/c_std/std_cerrno.h, include/c_std/std_cfloat.h,
include/c_std/std_ciso646.h, include/c_std/std_climits.h,
include/c_std/std_clocale.h, include/c_std/std_cmath.h,
include/c_std/std_csetjmp.h, include/c_std/std_csignal.h,
include/c_std/std_cstdarg.h, include/c_std/std_cstddef.h,
include/c_std/std_cstdio.h, include/c_std/std_cstdlib.h,
include/c_std/std_cstring.h, include/c_std/std_ctime.h,
include/c_std/std_cwchar.h, include/c_std/std_cwctype.h,
include/ext/algorithm, include/ext/functional, include/ext/hash_map,
include/ext/hash_set, include/ext/iterator, include/ext/memory,
include/ext/numeric, include/ext/rb_tree, include/ext/rope,
include/ext/ropeimpl.h, include/ext/slist, include/ext/stl_hash_fun.h,
include/ext/stl_hashtable.h, include/ext/stl_rope.h,
include/std/std_algorithm.h, include/std/std_bitset.h,
include/std/std_complex.h, include/std/std_deque.h,
include/std/std_fstream.h, include/std/std_functional.h,
include/std/std_iomanip.h, include/std/std_ios.h,
include/std/std_iosfwd.h, include/std/std_iostream.h,
include/std/std_istream.h, include/std/std_iterator.h,
include/std/std_limits.h, include/std/std_list.h,
include/std/std_locale.h, include/std/std_map.h,
include/std/std_memory.h, include/std/std_numeric.h,
include/std/std_ostream.h, include/std/std_queue.h,
include/std/std_set.h, include/std/std_sstream.h,
include/std/std_stack.h, include/std/std_stdexcept.h,
include/std/std_streambuf.h, include/std/std_string.h,
include/std/std_utility.h, include/std/std_valarray.h,
include/std/std_vector.h: Add/correct @file doxygen hook.
* include/ext/memory: Doxygenate most of rest of file.
* libsupc++/exception: Doxygen output formatting.
* libsupc++/new: Say which header it is.
* testsuite/lib/libstdc++-v3-dg.exp: Fix spacing.
* docs/html/19_diagnostics/howto.html: Describe concept-checks switch.
* docs/html/23_containers/howto.html: Describe O(n) list::size().
* docs/html/27_io/howto.html: Also link to Langer and Kreft text.
From-SVN: r49300
2002-01-28 23:13:12 +01:00
|
|
|
# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
|
2001-05-12 19:49:16 +02:00
|
|
|
|
|
|
|
# This program is free software; you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation; either version 2 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program; if not, write to the Free Software
|
|
|
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
|
|
|
|
# Define libstdc++-v3 callbacks for dg.exp.
|
|
|
|
|
|
|
|
load_lib dg.exp
|
|
|
|
load_lib libgloss.exp
|
2001-12-17 23:39:00 +01:00
|
|
|
load_lib prune.exp
|
2001-05-12 19:49:16 +02:00
|
|
|
|
2001-08-13 22:43:13 +02:00
|
|
|
proc libstdc++-v3-copy-files {srcfiles dstdir} {
|
|
|
|
foreach f $srcfiles {
|
|
|
|
if { [catch { set symlink [file readlink $f] } x] } then {
|
|
|
|
file copy -force $f $dstdir
|
|
|
|
} else {
|
|
|
|
if { [regexp "^/" "$symlink"] } then {
|
|
|
|
file copy -force $symlink $dstdir
|
|
|
|
} else {
|
|
|
|
set dirname [file dirname $f]
|
|
|
|
file copy -force $dirname/$symlink $dstdir
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2001-05-12 19:49:16 +02:00
|
|
|
proc libstdc++-v3-init { args } {
|
|
|
|
global srcdir
|
|
|
|
global outdir
|
|
|
|
global blddir
|
|
|
|
global cxx
|
|
|
|
global includes
|
|
|
|
global cxxflags
|
2001-05-18 07:37:43 +02:00
|
|
|
global objdir
|
|
|
|
global gluefile wrap_flags
|
2001-05-23 09:05:14 +02:00
|
|
|
global ld_library_path
|
2001-09-28 21:42:12 +02:00
|
|
|
global tool_root_dir
|
2001-05-12 19:49:16 +02:00
|
|
|
|
2001-09-28 21:42:12 +02:00
|
|
|
set blddir [lookfor_file [get_multilibs] libstdc++-v3]
|
2001-05-18 20:55:44 +02:00
|
|
|
|
2001-09-28 21:42:12 +02:00
|
|
|
# By default, we assume we want to run program images.
|
2001-05-23 09:05:14 +02:00
|
|
|
global dg-do-what-default
|
|
|
|
set dg-do-what-default run
|
|
|
|
|
|
|
|
# Copy any required data files.
|
2001-08-13 22:43:13 +02:00
|
|
|
libstdc++-v3-copy-files [glob -nocomplain "$srcdir/*/*.tst"] $outdir
|
|
|
|
libstdc++-v3-copy-files [glob -nocomplain "$srcdir/*/*.txt"] $outdir
|
2001-05-23 09:05:14 +02:00
|
|
|
|
|
|
|
# set LD_LIBRARY_PATH so that libgcc_s, libstdc++ binaries can be found.
|
2001-09-28 21:42:12 +02:00
|
|
|
# locate libgcc.a so we don't need to account for different values of
|
|
|
|
# SHLIB_EXT on different platforms
|
|
|
|
set gccdir [lookfor_file $tool_root_dir gcc/libgcc.a]
|
|
|
|
if {$gccdir != ""} {
|
|
|
|
set gccdir [file dirname $gccdir]
|
|
|
|
}
|
|
|
|
|
2001-05-23 09:05:14 +02:00
|
|
|
set ld_library_path "."
|
2001-09-28 21:42:12 +02:00
|
|
|
append ld_library_path ":${gccdir}"
|
2001-05-23 09:05:14 +02:00
|
|
|
append ld_library_path ":${blddir}/src/.libs"
|
|
|
|
|
|
|
|
# Do a bunch of handstands and backflips for cross compiling and
|
|
|
|
# finding simulators...
|
2001-05-18 20:55:44 +02:00
|
|
|
if [is_remote host] {
|
2001-08-07 05:38:33 +02:00
|
|
|
set header [remote_download host ${blddir}/testsuite/testsuite_hooks.h]
|
2001-05-18 20:55:44 +02:00
|
|
|
if { $header == "" } {
|
2001-08-07 05:38:33 +02:00
|
|
|
verbose -log "Unable to download ${blddir}/testsuite/testsuite_hooks.h to host."
|
2001-05-18 20:55:44 +02:00
|
|
|
return "untested"
|
|
|
|
}
|
|
|
|
set cxx [transform "g++"]
|
|
|
|
set cxxflags "-ggdb3 -DDEBUG_ASSERT"
|
Makefile.am (doxygen, [...]): Tweak targets.
2002-01-28 Phil Edwards <pme@gcc.gnu.org>
* Makefile.am (doxygen, doxygen-maint, doxygen-man): Tweak targets.
* Makefile.in: Regenerate.
* docs/doxygen/run_doxygen: Update, mostly for man pages.
* docs/doxygen/Intro.3: Update.
* docs/doxygen/TODO: Update.
* docs/doxygen/doxygroups.cc: Add namespace hook for __gnu_cxx.
* docs/doxygen/mainpage.doxy: Update.
* docs/doxygen/user.cfg.in: Update for header rename. Also
regenerate comments and variables with 1.2.12.
* docs/doxygen/maint.cfg.in: Remove file.
* include/bits/stl_relops.h: Doxygenate.
* include/bits/stl_tempbuf.h (std::_Temporary_buffer): Likewise.
* include/c_std/std_cassert.h, include/c_std/std_cctype.h,
include/c_std/std_cerrno.h, include/c_std/std_cfloat.h,
include/c_std/std_ciso646.h, include/c_std/std_climits.h,
include/c_std/std_clocale.h, include/c_std/std_cmath.h,
include/c_std/std_csetjmp.h, include/c_std/std_csignal.h,
include/c_std/std_cstdarg.h, include/c_std/std_cstddef.h,
include/c_std/std_cstdio.h, include/c_std/std_cstdlib.h,
include/c_std/std_cstring.h, include/c_std/std_ctime.h,
include/c_std/std_cwchar.h, include/c_std/std_cwctype.h,
include/ext/algorithm, include/ext/functional, include/ext/hash_map,
include/ext/hash_set, include/ext/iterator, include/ext/memory,
include/ext/numeric, include/ext/rb_tree, include/ext/rope,
include/ext/ropeimpl.h, include/ext/slist, include/ext/stl_hash_fun.h,
include/ext/stl_hashtable.h, include/ext/stl_rope.h,
include/std/std_algorithm.h, include/std/std_bitset.h,
include/std/std_complex.h, include/std/std_deque.h,
include/std/std_fstream.h, include/std/std_functional.h,
include/std/std_iomanip.h, include/std/std_ios.h,
include/std/std_iosfwd.h, include/std/std_iostream.h,
include/std/std_istream.h, include/std/std_iterator.h,
include/std/std_limits.h, include/std/std_list.h,
include/std/std_locale.h, include/std/std_map.h,
include/std/std_memory.h, include/std/std_numeric.h,
include/std/std_ostream.h, include/std/std_queue.h,
include/std/std_set.h, include/std/std_sstream.h,
include/std/std_stack.h, include/std/std_stdexcept.h,
include/std/std_streambuf.h, include/std/std_string.h,
include/std/std_utility.h, include/std/std_valarray.h,
include/std/std_vector.h: Add/correct @file doxygen hook.
* include/ext/memory: Doxygenate most of rest of file.
* libsupc++/exception: Doxygen output formatting.
* libsupc++/new: Say which header it is.
* testsuite/lib/libstdc++-v3-dg.exp: Fix spacing.
* docs/html/19_diagnostics/howto.html: Describe concept-checks switch.
* docs/html/23_containers/howto.html: Describe O(n) list::size().
* docs/html/27_io/howto.html: Also link to Langer and Kreft text.
From-SVN: r49300
2002-01-28 23:13:12 +01:00
|
|
|
set includes "-I./"
|
2001-05-18 20:55:44 +02:00
|
|
|
} else {
|
|
|
|
# If we find a testsuite_flags file, we're testing in the build dir.
|
|
|
|
set flags_file "${blddir}/testsuite_flags"
|
|
|
|
if { [file exists $flags_file] } {
|
|
|
|
set cxx [exec sh $flags_file --build-cxx]
|
|
|
|
set cxxflags [exec sh $flags_file --cxxflags]
|
|
|
|
set includes [exec sh $flags_file --build-includes]
|
|
|
|
} else {
|
|
|
|
set cxx [transform "g++"]
|
|
|
|
set cxxflags "-ggdb3 -DDEBUG_ASSERT"
|
|
|
|
set includes "-I${srcdir}"
|
|
|
|
}
|
|
|
|
}
|
2001-05-12 19:49:16 +02:00
|
|
|
|
2001-05-18 07:37:43 +02:00
|
|
|
if { [target_info needs_status_wrapper]!="" && ![info exists gluefile] } {
|
|
|
|
set gluefile ${objdir}/testglue.o;
|
|
|
|
set result [build_wrapper $gluefile];
|
|
|
|
if { $result != "" } {
|
|
|
|
set gluefile [lindex $result 0];
|
|
|
|
set wrap_flags [lindex $result 1];
|
|
|
|
} else {
|
|
|
|
unset gluefile
|
|
|
|
}
|
|
|
|
}
|
2001-05-12 19:49:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
proc libstdc++-v3-dg-test { prog do_what extra_tool_flags } {
|
|
|
|
# Set up the compiler flags, based on what we're going to do.
|
|
|
|
|
|
|
|
switch $do_what {
|
|
|
|
"preprocess" {
|
|
|
|
set compile_type "preprocess"
|
|
|
|
set output_file "[file rootname [file tail $prog]].i"
|
|
|
|
}
|
|
|
|
"compile" {
|
|
|
|
set compile_type "assembly"
|
|
|
|
set output_file "[file rootname [file tail $prog]].s"
|
|
|
|
}
|
|
|
|
"assemble" {
|
|
|
|
set compile_type "object"
|
|
|
|
set output_file "[file rootname [file tail $prog]].o"
|
|
|
|
}
|
|
|
|
"link" {
|
|
|
|
set compile_type "executable"
|
2001-12-19 00:34:06 +01:00
|
|
|
set output_file "./[file rootname [file tail $prog]].exe"
|
2001-05-12 19:49:16 +02:00
|
|
|
}
|
|
|
|
"run" {
|
|
|
|
set compile_type "executable"
|
|
|
|
# FIXME: "./" is to cope with "." not being in $PATH.
|
|
|
|
# Should this be handled elsewhere?
|
|
|
|
# YES.
|
2001-12-19 00:34:06 +01:00
|
|
|
set output_file "./[file rootname [file tail $prog]].exe"
|
2001-05-12 19:49:16 +02:00
|
|
|
# This is the only place where we care if an executable was
|
|
|
|
# created or not. If it was, dg.exp will try to run it.
|
|
|
|
remote_file build delete $output_file;
|
|
|
|
}
|
|
|
|
default {
|
|
|
|
perror "$do_what: not a valid dg-do keyword"
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
}
|
|
|
|
set options ""
|
|
|
|
if { $extra_tool_flags != "" } {
|
|
|
|
lappend options "additional_flags=$extra_tool_flags"
|
|
|
|
}
|
|
|
|
|
|
|
|
set comp_output [libstdc++-v3_target_compile "$prog" "$output_file" "$compile_type" $options];
|
2001-12-17 23:39:00 +01:00
|
|
|
set comp_output [ prune_g++_output $comp_output ];
|
2001-05-12 19:49:16 +02:00
|
|
|
|
|
|
|
return [list $comp_output $output_file]
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
proc libstdc++-v3_target_compile { source dest type options } {
|
|
|
|
global gluefile
|
|
|
|
global wrap_flags
|
|
|
|
global cxx
|
|
|
|
global cxxflags
|
|
|
|
global includes
|
|
|
|
|
|
|
|
if { [target_info needs_status_wrapper] != "" && [info exists gluefile] } {
|
|
|
|
lappend options "libs=${gluefile}"
|
|
|
|
lappend options "ldflags=${wrap_flags}"
|
|
|
|
}
|
|
|
|
|
|
|
|
set cxx_final $cxx
|
|
|
|
set cxxlibglossflags [libgloss_link_flags]
|
|
|
|
set cxx_final [concat $cxx_final $cxxlibglossflags]
|
|
|
|
set cxx_final [concat $cxx_final $cxxflags]
|
|
|
|
set cxx_final [concat $cxx_final $includes]
|
2001-05-14 03:15:36 +02:00
|
|
|
|
2001-05-12 19:49:16 +02:00
|
|
|
lappend options "compiler=$cxx_final";
|
|
|
|
|
|
|
|
return [target_compile $source $dest $type $options]
|
|
|
|
}
|
|
|
|
|