1997-08-22 06:57:35 +08:00
|
|
|
#
|
|
|
|
# Makefile
|
2000-04-29 22:25:12 +08:00
|
|
|
# Copyright (C) 1990, 91-99, 2000
|
1998-05-16 07:42:58 +08:00
|
|
|
# Free Software Foundation
|
1997-08-22 06:57:35 +08:00
|
|
|
#
|
|
|
|
# This file is part of the libiberty library.
|
|
|
|
# Libiberty is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of the GNU Library General Public
|
|
|
|
# License as published by the Free Software Foundation; either
|
|
|
|
# version 2 of the License, or (at your option) any later version.
|
|
|
|
#
|
|
|
|
# Libiberty 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
|
|
|
|
# Library General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU Library General Public
|
|
|
|
# License along with libiberty; see the file COPYING.LIB. If not,
|
|
|
|
# write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
|
|
# Boston, MA 02111-1307, USA.
|
|
|
|
#
|
|
|
|
|
1998-05-16 07:42:58 +08:00
|
|
|
# This file was written by K. Richard Pixley <rich@cygnus.com>.
|
1997-08-22 06:57:35 +08:00
|
|
|
|
|
|
|
#
|
|
|
|
# Makefile for libiberty directory
|
|
|
|
#
|
|
|
|
|
1998-05-16 07:42:58 +08:00
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
1997-08-22 06:57:35 +08:00
|
|
|
|
1998-05-16 07:42:58 +08:00
|
|
|
prefix = @prefix@
|
1997-08-22 06:57:35 +08:00
|
|
|
|
1998-05-16 07:42:58 +08:00
|
|
|
exec_prefix = @exec_prefix@
|
|
|
|
bindir = @bindir@
|
|
|
|
libdir = @libdir@
|
1997-08-22 06:57:35 +08:00
|
|
|
|
1998-05-16 07:42:58 +08:00
|
|
|
SHELL = @SHELL@
|
1997-08-22 06:57:35 +08:00
|
|
|
|
|
|
|
# Multilib support variables.
|
|
|
|
MULTISRCTOP =
|
|
|
|
MULTIBUILDTOP =
|
|
|
|
MULTIDIRS =
|
|
|
|
MULTISUBDIR =
|
|
|
|
MULTIDO = true
|
|
|
|
MULTICLEAN = true
|
|
|
|
|
1998-05-16 07:42:58 +08:00
|
|
|
INSTALL = @INSTALL@
|
|
|
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
|
|
|
INSTALL_DATA = @INSTALL_DATA@
|
1997-08-22 06:57:35 +08:00
|
|
|
|
1998-05-16 07:42:58 +08:00
|
|
|
AR = @AR@
|
1997-08-22 06:57:35 +08:00
|
|
|
AR_FLAGS = rc
|
|
|
|
|
1998-05-16 07:42:58 +08:00
|
|
|
CC = @CC@
|
|
|
|
CFLAGS = @CFLAGS@
|
1997-08-22 06:57:35 +08:00
|
|
|
LIBCFLAGS = $(CFLAGS)
|
1998-05-16 07:42:58 +08:00
|
|
|
RANLIB = @RANLIB@
|
1997-08-22 06:57:35 +08:00
|
|
|
|
|
|
|
PICFLAG =
|
|
|
|
|
|
|
|
MAKEOVERRIDES =
|
|
|
|
|
|
|
|
TARGETLIB = libiberty.a
|
|
|
|
|
1998-05-16 07:42:58 +08:00
|
|
|
LIBOBJS = @LIBOBJS@
|
1998-10-09 06:48:52 +08:00
|
|
|
ALLOCA = @ALLOCA@
|
1997-08-22 06:57:35 +08:00
|
|
|
|
|
|
|
# A configuration can specify extra .o files that should be included,
|
|
|
|
# even if they are in libc. (Perhaps the libc version is buggy.)
|
|
|
|
EXTRA_OFILES =
|
|
|
|
|
|
|
|
# Flags to pass to a recursive make.
|
|
|
|
FLAGS_TO_PASS = \
|
|
|
|
"AR=$(AR)" \
|
|
|
|
"AR_FLAGS=$(AR_FLAGS)" \
|
|
|
|
"CC=$(CC)" \
|
|
|
|
"CFLAGS=$(CFLAGS)" \
|
|
|
|
"LIBCFLAGS=$(LIBCFLAGS)" \
|
|
|
|
"EXTRA_OFILES=$(EXTRA_OFILES)" \
|
|
|
|
"HDEFINES=$(HDEFINES)" \
|
|
|
|
"INSTALL=$(INSTALL)" \
|
|
|
|
"INSTALL_DATA=$(INSTALL_DATA)" \
|
|
|
|
"INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
|
|
|
|
"LDFLAGS=$(LDFLAGS)" \
|
|
|
|
"LOADLIBES=$(LOADLIBES)" \
|
|
|
|
"RANLIB=$(RANLIB)" \
|
1999-08-07 13:37:16 +08:00
|
|
|
"SHELL=$(SHELL)" \
|
|
|
|
"prefix=$(prefix)" \
|
|
|
|
"exec_prefix=$(exec_prefix)" \
|
|
|
|
"libdir=$(libdir)" \
|
|
|
|
"libsubdir=$(libsubdir)" \
|
|
|
|
"tooldir=$(tooldir)"
|
1997-08-22 06:57:35 +08:00
|
|
|
|
1999-10-28 16:26:42 +08:00
|
|
|
# Subdirectories to recurse into. We need to override this during cleaning
|
|
|
|
SUBDIRS = testsuite
|
|
|
|
|
regress-demangle: New file.
* testsuite/regress-demangle: New file.
* testsuite/demangle-expected: New file.
* Makefile.in (all, check, installcheck, info, install-info,
clean-info, dvi, install, etags, tags, mostlyclean, clean,
distclean, maintainer-clean, realclean): Depend on corresponding
`-subdir' target.
(all-subdir check-subdir installcheck-subdir info-subdir
install-info-subdir clean-info-subdir dvi-subdir
install-info-subdir etags-subdir mostlyclean-subdir clean-subdir
distclean-subdir maintainer-clean-subdir): New target.
* testsuite/Makefile.in: New file.
* configure: Rebuilt.
* configure.in: Create testsuite/Makefile.
From-SVN: r26205
1999-04-05 22:28:59 +08:00
|
|
|
all: stamp-picdir $(TARGETLIB) needed-list required-list all-subdir
|
1998-05-16 07:42:58 +08:00
|
|
|
@$(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=all
|
1997-08-22 06:57:35 +08:00
|
|
|
|
|
|
|
.PHONY: check installcheck
|
regress-demangle: New file.
* testsuite/regress-demangle: New file.
* testsuite/demangle-expected: New file.
* Makefile.in (all, check, installcheck, info, install-info,
clean-info, dvi, install, etags, tags, mostlyclean, clean,
distclean, maintainer-clean, realclean): Depend on corresponding
`-subdir' target.
(all-subdir check-subdir installcheck-subdir info-subdir
install-info-subdir clean-info-subdir dvi-subdir
install-info-subdir etags-subdir mostlyclean-subdir clean-subdir
distclean-subdir maintainer-clean-subdir): New target.
* testsuite/Makefile.in: New file.
* configure: Rebuilt.
* configure.in: Create testsuite/Makefile.
From-SVN: r26205
1999-04-05 22:28:59 +08:00
|
|
|
check: check-subdir
|
|
|
|
installcheck: installcheck-subdir
|
1997-08-22 06:57:35 +08:00
|
|
|
|
1998-05-16 07:42:58 +08:00
|
|
|
@host_makefile_frag@
|
1997-08-22 06:57:35 +08:00
|
|
|
|
|
|
|
INCDIR=$(srcdir)/$(MULTISRCTOP)../include
|
|
|
|
|
2000-01-05 00:09:57 +08:00
|
|
|
COMPILE.c = $(CC) -c @DEFS@ $(LIBCFLAGS) -I. -I$(INCDIR) $(HDEFINES) @ac_libiberty_warn_cflags@
|
1997-08-22 06:57:35 +08:00
|
|
|
.c.o:
|
2000-05-16 10:48:28 +08:00
|
|
|
if [ x"$(PICFLAG)" != x ]; then \
|
|
|
|
$(COMPILE.c) $(PICFLAG) $< -o pic/$@; \
|
|
|
|
else true; fi
|
1997-08-22 06:57:35 +08:00
|
|
|
$(COMPILE.c) $<
|
|
|
|
|
regress-demangle: New file.
* testsuite/regress-demangle: New file.
* testsuite/demangle-expected: New file.
* Makefile.in (all, check, installcheck, info, install-info,
clean-info, dvi, install, etags, tags, mostlyclean, clean,
distclean, maintainer-clean, realclean): Depend on corresponding
`-subdir' target.
(all-subdir check-subdir installcheck-subdir info-subdir
install-info-subdir clean-info-subdir dvi-subdir
install-info-subdir etags-subdir mostlyclean-subdir clean-subdir
distclean-subdir maintainer-clean-subdir): New target.
* testsuite/Makefile.in: New file.
* configure: Rebuilt.
* configure.in: Create testsuite/Makefile.
From-SVN: r26205
1999-04-05 22:28:59 +08:00
|
|
|
info: info-subdir
|
|
|
|
install-info: install-info-subdir
|
|
|
|
clean-info: clean-info-subdir
|
|
|
|
dvi: dvi-subdir
|
1997-08-22 06:57:35 +08:00
|
|
|
|
|
|
|
# Include files that are in this directory.
|
1998-05-16 07:42:58 +08:00
|
|
|
HFILES = alloca-conf.h
|
1997-08-22 06:57:35 +08:00
|
|
|
|
|
|
|
# NOTE: If you add new files to the library, add them to this list
|
1998-05-16 07:42:58 +08:00
|
|
|
# (alphabetical), and add them to REQUIRED_OFILES or funcs in
|
|
|
|
# configure.in.
|
2000-03-10 16:16:55 +08:00
|
|
|
CFILES = asprintf.c alloca.c argv.c atexit.c basename.c bcmp.c bcopy.c \
|
2000-06-05 10:28:41 +08:00
|
|
|
bzero.c calloc.c choose-temp.c clock.c concat.c cplus-dem.c \
|
|
|
|
cp-demangle.c dyn-string.c fdmatch.c fnmatch.c getcwd.c \
|
|
|
|
getpwd.c getopt.c getopt1.c getpagesize.c getruntime.c \
|
safe-ctype.h: New file.
include:
* safe-ctype.h: New file.
libiberty:
* safe-ctype.c: New file.
* Makefile.in (CFILES): Add safe-ctype.c.
(REQUIRED_OFILES): Add safe-ctype.o.
* argv.c: Define ISBLANK and use it, not isspace.
* basename.c, cplus-dem.c, fnmatch.c, pexecute.c, strtod.c,
strtol.c, strtoul.c: Include safe-ctype.h, not ctype.h. Use
uppercase ctype macros. Don't test ISUPPER(c)/ISLOWER(c)
before calling TOLOWER(c)/TOUPPER(c).
gcc:
* Makefile.in (HOST_RTL): Add safe-ctype.o.
(safe-ctype.o): New rule.
* system.h: Include safe-ctype.h, not ctype.h. No need to
wrap ctype macros.
* cpphash.h: Zap IStable and related macros. Define is_* in
terms of safe-ctype.h macros.
* cppinit.c: Delete the IStable and all related code.
* tradcpp.c: Delete is_idchar, is_idstart, is_hor_space, and
is_space arrays. Delete initialize_char_syntax. Change all
references to the above arrays to use macros instead.
* tradcpp.h: Define is_idchar, is_idstart, is_space, and
is_nvspace in terms of safe_ctype.h's macros.
* tradcif.y: is_idchar, is_idstart are macros not arrays.
* config/i370/i370.c, config/winnt/dirent.c,
config/winnt/fixinc-nt.c, config/winnt/ld.c:
Use uppercase ctype macros. If we included ctype.h,
include safe-ctype.h instead.
* fixinc/fixfixes.c: Use uppercase ctype macros. Don't test
ISLOWER(c) before calling TOUPPER(c).
* fixinc/fixincl.c (extract_quoted_files): Simplify out some gunk.
* fixinc/gnu-regex.c: Include safe-ctype.h, not ctype.h. No need to
wrap ctype macros. Don't test ISUPPER(x) before calling TOLOWER(x).
gcc/ch:
* lex.c: Don't bother checking whether ISUPPER(c) before
calling TOLOWER(c). Don't bother checking whether isascii(c)
before testing ISSPACE(c); ISSPACE(c) includes '\n'.
gcc/f:
* Make-lang.in: Link f/fini with safe-ctype.o.
* bad.c: Don't test ISUPPER(c) || ISLOWER(c) before calling TOUPPER(c).
* com.c: Use TOUPPER, not ffesrc_toupper.
* fini.c: Don't test ISALPHA(c) before calling TOUPPER(c)/TOLOWER(c).
* intrin.c: Don't test IN_CTYPE_DOMAIN(c).
* src.c: Delete ffesrc_toupper_ and ffesrc_tolower_ and their
initializing code; use TOUPPER and TOLOWER instead of
ffesrc_toupper and ffesrc_tolower.
* src.h: Don't declare ffesrc_toupper_ or ffesrc_tolower_.
Don't define ffesrc_toupper or ffesrc_tolower.
gcc/java:
* jvgenmain.c: Use ISPRINT not isascii.
From-SVN: r38124
2000-12-08 11:00:26 +08:00
|
|
|
floatformat.c hashtab.c hex.c index.c insque.c md5.c memchr.c \
|
|
|
|
memcmp.c memcpy.c memmove.c memset.c mkstemps.c objalloc.c obstack.c \
|
2000-06-05 10:28:41 +08:00
|
|
|
partition.c pexecute.c putenv.c random.c rename.c rindex.c setenv.c \
|
safe-ctype.h: New file.
include:
* safe-ctype.h: New file.
libiberty:
* safe-ctype.c: New file.
* Makefile.in (CFILES): Add safe-ctype.c.
(REQUIRED_OFILES): Add safe-ctype.o.
* argv.c: Define ISBLANK and use it, not isspace.
* basename.c, cplus-dem.c, fnmatch.c, pexecute.c, strtod.c,
strtol.c, strtoul.c: Include safe-ctype.h, not ctype.h. Use
uppercase ctype macros. Don't test ISUPPER(c)/ISLOWER(c)
before calling TOLOWER(c)/TOUPPER(c).
gcc:
* Makefile.in (HOST_RTL): Add safe-ctype.o.
(safe-ctype.o): New rule.
* system.h: Include safe-ctype.h, not ctype.h. No need to
wrap ctype macros.
* cpphash.h: Zap IStable and related macros. Define is_* in
terms of safe-ctype.h macros.
* cppinit.c: Delete the IStable and all related code.
* tradcpp.c: Delete is_idchar, is_idstart, is_hor_space, and
is_space arrays. Delete initialize_char_syntax. Change all
references to the above arrays to use macros instead.
* tradcpp.h: Define is_idchar, is_idstart, is_space, and
is_nvspace in terms of safe_ctype.h's macros.
* tradcif.y: is_idchar, is_idstart are macros not arrays.
* config/i370/i370.c, config/winnt/dirent.c,
config/winnt/fixinc-nt.c, config/winnt/ld.c:
Use uppercase ctype macros. If we included ctype.h,
include safe-ctype.h instead.
* fixinc/fixfixes.c: Use uppercase ctype macros. Don't test
ISLOWER(c) before calling TOUPPER(c).
* fixinc/fixincl.c (extract_quoted_files): Simplify out some gunk.
* fixinc/gnu-regex.c: Include safe-ctype.h, not ctype.h. No need to
wrap ctype macros. Don't test ISUPPER(x) before calling TOLOWER(x).
gcc/ch:
* lex.c: Don't bother checking whether ISUPPER(c) before
calling TOLOWER(c). Don't bother checking whether isascii(c)
before testing ISSPACE(c); ISSPACE(c) includes '\n'.
gcc/f:
* Make-lang.in: Link f/fini with safe-ctype.o.
* bad.c: Don't test ISUPPER(c) || ISLOWER(c) before calling TOUPPER(c).
* com.c: Use TOUPPER, not ffesrc_toupper.
* fini.c: Don't test ISALPHA(c) before calling TOUPPER(c)/TOLOWER(c).
* intrin.c: Don't test IN_CTYPE_DOMAIN(c).
* src.c: Delete ffesrc_toupper_ and ffesrc_tolower_ and their
initializing code; use TOUPPER and TOLOWER instead of
ffesrc_toupper and ffesrc_tolower.
* src.h: Don't declare ffesrc_toupper_ or ffesrc_tolower_.
Don't define ffesrc_toupper or ffesrc_tolower.
gcc/java:
* jvgenmain.c: Use ISPRINT not isascii.
From-SVN: r38124
2000-12-08 11:00:26 +08:00
|
|
|
sigsetmask.c safe-ctype.c sort.c spaces.c splay-tree.c strcasecmp.c \
|
|
|
|
strncasecmp.c strchr.c strdup.c strerror.c strncmp.c strrchr.c \
|
|
|
|
strsignal.c strstr.c strtod.c strtol.c strtoul.c tmpnam.c vasprintf.c \
|
|
|
|
vfork.c vfprintf.c vprintf.c vsprintf.c waitpid.c xatexit.c xexit.c \
|
|
|
|
xmalloc.c xmemdup.c xstrdup.c xstrerror.c
|
1998-05-16 07:42:58 +08:00
|
|
|
|
1997-08-22 06:57:35 +08:00
|
|
|
# These are always included in the library.
|
safe-ctype.h: New file.
include:
* safe-ctype.h: New file.
libiberty:
* safe-ctype.c: New file.
* Makefile.in (CFILES): Add safe-ctype.c.
(REQUIRED_OFILES): Add safe-ctype.o.
* argv.c: Define ISBLANK and use it, not isspace.
* basename.c, cplus-dem.c, fnmatch.c, pexecute.c, strtod.c,
strtol.c, strtoul.c: Include safe-ctype.h, not ctype.h. Use
uppercase ctype macros. Don't test ISUPPER(c)/ISLOWER(c)
before calling TOLOWER(c)/TOUPPER(c).
gcc:
* Makefile.in (HOST_RTL): Add safe-ctype.o.
(safe-ctype.o): New rule.
* system.h: Include safe-ctype.h, not ctype.h. No need to
wrap ctype macros.
* cpphash.h: Zap IStable and related macros. Define is_* in
terms of safe-ctype.h macros.
* cppinit.c: Delete the IStable and all related code.
* tradcpp.c: Delete is_idchar, is_idstart, is_hor_space, and
is_space arrays. Delete initialize_char_syntax. Change all
references to the above arrays to use macros instead.
* tradcpp.h: Define is_idchar, is_idstart, is_space, and
is_nvspace in terms of safe_ctype.h's macros.
* tradcif.y: is_idchar, is_idstart are macros not arrays.
* config/i370/i370.c, config/winnt/dirent.c,
config/winnt/fixinc-nt.c, config/winnt/ld.c:
Use uppercase ctype macros. If we included ctype.h,
include safe-ctype.h instead.
* fixinc/fixfixes.c: Use uppercase ctype macros. Don't test
ISLOWER(c) before calling TOUPPER(c).
* fixinc/fixincl.c (extract_quoted_files): Simplify out some gunk.
* fixinc/gnu-regex.c: Include safe-ctype.h, not ctype.h. No need to
wrap ctype macros. Don't test ISUPPER(x) before calling TOLOWER(x).
gcc/ch:
* lex.c: Don't bother checking whether ISUPPER(c) before
calling TOLOWER(c). Don't bother checking whether isascii(c)
before testing ISSPACE(c); ISSPACE(c) includes '\n'.
gcc/f:
* Make-lang.in: Link f/fini with safe-ctype.o.
* bad.c: Don't test ISUPPER(c) || ISLOWER(c) before calling TOUPPER(c).
* com.c: Use TOUPPER, not ffesrc_toupper.
* fini.c: Don't test ISALPHA(c) before calling TOUPPER(c)/TOLOWER(c).
* intrin.c: Don't test IN_CTYPE_DOMAIN(c).
* src.c: Delete ffesrc_toupper_ and ffesrc_tolower_ and their
initializing code; use TOUPPER and TOLOWER instead of
ffesrc_toupper and ffesrc_tolower.
* src.h: Don't declare ffesrc_toupper_ or ffesrc_tolower_.
Don't define ffesrc_toupper or ffesrc_tolower.
gcc/java:
* jvgenmain.c: Use ISPRINT not isascii.
From-SVN: r38124
2000-12-08 11:00:26 +08:00
|
|
|
REQUIRED_OFILES = argv.o choose-temp.o concat.o cplus-dem.o cp-demangle.o \
|
|
|
|
dyn-string.o fdmatch.o fnmatch.o getopt.o getopt1.o getpwd.o \
|
[multiple changes]
2000-08-28 Daniel Berlin <dberlin@redhat.com>
* dwarf2out.c (DIE_LABEL_PREFIX): Remove leading "__".
(print_die): If we don't know the offset of the
target die, try the symbol. Add a trailing newline.
(reverse_all_dies): New fn.
(dwarf2out_finish): Call it.
(break_out_includes): Reorganize for clarity.
(add_sibling_attributes): Don't call reverse_die_lists.
(output_comp_unit): Rename from output_comdat_comp_unit. Use for
primary CU, too.
* flags.h: Add flag_eliminate_dwarf2_dups.
* toplev.c (f_options): Support -feliminate-dwarf2-dups.
2000-08-28 Jason Merrill <jason@redhat.com>
* dwarf2.h (DW_TAG_GNU_BINCL, DW_TAG_GNU_EINCL): New tags.
* dwarf2out.c: #include "md5.h".
(DIE_LABEL_PREFIX): New macro.
(dw_val_struct): Add 'external' flag to val_die_ref.
(add_AT_die_ref, AT_ref): Adjust.
(AT_ref_external, set_AT_ref_external): New fns.
(build_abbrev_table): Call set_AT_ref_external.
(value_format): Call AT_ref_external.
(die_struct): Add die_symbol field.
(new_die): Clear it.
(dwarf_tag_name): Handle BINCL/EINCL.
(dwarf2out_start_source_file): Add BINCL DIE.
(dwarf2out_end_source_file): Add EINCL DIE.
(push_new_compile_unit, pop_compile_unit, clear_die_sizes): New fns.
(loc_checksum, attr_checksum, die_checksum): New fns.
(is_type_die, is_comdat_die, is_symbol_die): New fns.
(compute_section_prefix, assign_symbol_names): New fns.
(gen_internal_sym, output_die_symbol, output_symbolic_ref): New fns.
(output_die): Call output_die_symbol and AT_ref_external.
(output_comdat_comp_unit): New fn, split out from...
(dwarf2out_finish): ...here. Also call add_sibling_attributes for
secondary CUs.
(output_pubnames, output_aranges): Abort if we see entries from
secondary CUs.
* toplev.h: Declare file_name_nondirectory.
* toplev.c (file_name_nondirectory): New fn, moved from C++ frontend.
(rest_of_type_compilation): Call dwarf2out_decl if at toplevel.
(debug_start_source_file): Call dwarf2out_start_source_file
regardless of debug verbosity.
(debug_end_source_file): Similarly.
* tree.h: Declare clean_symbol_name.
* tree.c (clean_symbol_name): Split out from...
(get_file_function_name_long): ...here.
* dwarf2out.c (new_loc_descr): Use calloc.
(splice_child_die): Remove the die from the right parent.
(gen_struct_or_union_die): Don't add AT_name to a specification DIE.
gcc/cp:
2000-08-28 Jason Merrill <jason@redhat.com>
* lex.c (file_name_nondirectory): Move to toplev.c.
libiberty:
2000-08-28 Jason Merrill <jason@redhat.com>
* Makefile.in (REQUIRED_OFILES): Add md5.o.
(CFILES): Add md5.c.
* md5.c: New file.
include:
2000-08-28 Jason Merrill <jason@redhat.com>
* md5.h: New file.
gcc/cp:
2000-08-28 Jason Merrill <jason@redhat.com>
* cp-tree.h (LOCAL_CLASS_P): New macro.
* class.c (finish_struct_1): Use it.
From-SVN: r36022
2000-08-29 08:29:29 +08:00
|
|
|
getruntime.o hashtab.o hex.o floatformat.o md5.o objalloc.o obstack.o \
|
safe-ctype.h: New file.
include:
* safe-ctype.h: New file.
libiberty:
* safe-ctype.c: New file.
* Makefile.in (CFILES): Add safe-ctype.c.
(REQUIRED_OFILES): Add safe-ctype.o.
* argv.c: Define ISBLANK and use it, not isspace.
* basename.c, cplus-dem.c, fnmatch.c, pexecute.c, strtod.c,
strtol.c, strtoul.c: Include safe-ctype.h, not ctype.h. Use
uppercase ctype macros. Don't test ISUPPER(c)/ISLOWER(c)
before calling TOLOWER(c)/TOUPPER(c).
gcc:
* Makefile.in (HOST_RTL): Add safe-ctype.o.
(safe-ctype.o): New rule.
* system.h: Include safe-ctype.h, not ctype.h. No need to
wrap ctype macros.
* cpphash.h: Zap IStable and related macros. Define is_* in
terms of safe-ctype.h macros.
* cppinit.c: Delete the IStable and all related code.
* tradcpp.c: Delete is_idchar, is_idstart, is_hor_space, and
is_space arrays. Delete initialize_char_syntax. Change all
references to the above arrays to use macros instead.
* tradcpp.h: Define is_idchar, is_idstart, is_space, and
is_nvspace in terms of safe_ctype.h's macros.
* tradcif.y: is_idchar, is_idstart are macros not arrays.
* config/i370/i370.c, config/winnt/dirent.c,
config/winnt/fixinc-nt.c, config/winnt/ld.c:
Use uppercase ctype macros. If we included ctype.h,
include safe-ctype.h instead.
* fixinc/fixfixes.c: Use uppercase ctype macros. Don't test
ISLOWER(c) before calling TOUPPER(c).
* fixinc/fixincl.c (extract_quoted_files): Simplify out some gunk.
* fixinc/gnu-regex.c: Include safe-ctype.h, not ctype.h. No need to
wrap ctype macros. Don't test ISUPPER(x) before calling TOLOWER(x).
gcc/ch:
* lex.c: Don't bother checking whether ISUPPER(c) before
calling TOLOWER(c). Don't bother checking whether isascii(c)
before testing ISSPACE(c); ISSPACE(c) includes '\n'.
gcc/f:
* Make-lang.in: Link f/fini with safe-ctype.o.
* bad.c: Don't test ISUPPER(c) || ISLOWER(c) before calling TOUPPER(c).
* com.c: Use TOUPPER, not ffesrc_toupper.
* fini.c: Don't test ISALPHA(c) before calling TOUPPER(c)/TOLOWER(c).
* intrin.c: Don't test IN_CTYPE_DOMAIN(c).
* src.c: Delete ffesrc_toupper_ and ffesrc_tolower_ and their
initializing code; use TOUPPER and TOLOWER instead of
ffesrc_toupper and ffesrc_tolower.
* src.h: Don't declare ffesrc_toupper_ or ffesrc_tolower_.
Don't define ffesrc_toupper or ffesrc_tolower.
gcc/java:
* jvgenmain.c: Use ISPRINT not isascii.
From-SVN: r38124
2000-12-08 11:00:26 +08:00
|
|
|
partition.o pexecute.o safe-ctype.o sort.o spaces.o splay-tree.o \
|
|
|
|
strerror.o strsignal.o xatexit.o xexit.o xmalloc.o xmemdup.o \
|
|
|
|
xstrdup.o xstrerror.o
|
1997-08-22 06:57:35 +08:00
|
|
|
|
1998-10-09 06:48:52 +08:00
|
|
|
$(TARGETLIB): $(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS) $(ALLOCA)
|
2000-12-09 07:18:00 +08:00
|
|
|
-rm -f $(TARGETLIB)
|
1998-05-16 07:42:58 +08:00
|
|
|
$(AR) $(AR_FLAGS) $(TARGETLIB) \
|
1998-10-09 06:48:52 +08:00
|
|
|
$(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS) $(ALLOCA)
|
1998-05-16 07:42:58 +08:00
|
|
|
$(RANLIB) $(TARGETLIB)
|
1997-08-22 06:57:35 +08:00
|
|
|
|
1998-05-16 07:42:58 +08:00
|
|
|
INSTALL_DEST = @INSTALL_DEST@
|
regress-demangle: New file.
* testsuite/regress-demangle: New file.
* testsuite/demangle-expected: New file.
* Makefile.in (all, check, installcheck, info, install-info,
clean-info, dvi, install, etags, tags, mostlyclean, clean,
distclean, maintainer-clean, realclean): Depend on corresponding
`-subdir' target.
(all-subdir check-subdir installcheck-subdir info-subdir
install-info-subdir clean-info-subdir dvi-subdir
install-info-subdir etags-subdir mostlyclean-subdir clean-subdir
distclean-subdir maintainer-clean-subdir): New target.
* testsuite/Makefile.in: New file.
* configure: Rebuilt.
* configure.in: Create testsuite/Makefile.
From-SVN: r26205
1999-04-05 22:28:59 +08:00
|
|
|
install: install_to_$(INSTALL_DEST) install-subdir
|
1997-08-22 06:57:35 +08:00
|
|
|
|
|
|
|
install_to_libdir: all
|
2000-03-25 05:32:08 +08:00
|
|
|
$(INSTALL_DATA) $(TARGETLIB) $(libdir)$(MULTISUBDIR)/$(TARGETLIB)n
|
|
|
|
( cd $(libdir)$(MULTISUBDIR) ; $(RANLIB) $(TARGETLIB)n )
|
|
|
|
mv -f $(libdir)$(MULTISUBDIR)/$(TARGETLIB)n $(libdir)$(MULTISUBDIR)/$(TARGETLIB)
|
1997-08-22 06:57:35 +08:00
|
|
|
@$(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=install
|
|
|
|
|
|
|
|
install_to_tooldir: all
|
2000-03-25 05:32:08 +08:00
|
|
|
$(INSTALL_DATA) $(TARGETLIB) $(tooldir)/lib$(MULTISUBDIR)/$(TARGETLIB)n
|
|
|
|
( cd $(tooldir)/lib$(MULTISUBDIR) ; $(RANLIB) $(TARGETLIB)n )
|
|
|
|
mv -f $(tooldir)/lib$(MULTISUBDIR)/$(TARGETLIB)n $(tooldir)/lib$(MULTISUBDIR)/$(TARGETLIB)
|
1997-08-22 06:57:35 +08:00
|
|
|
@$(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=install
|
|
|
|
|
1999-07-07 23:22:55 +08:00
|
|
|
# needed-list is used by libstdc++. NEEDED is the list of functions
|
|
|
|
# to include there. Do not add anything LGPL to this list; libstdc++
|
|
|
|
# can't use anything encumbering.
|
|
|
|
NEEDED = atexit calloc memchr memcmp memcpy memmove memset rename strchr \
|
2000-05-09 09:23:33 +08:00
|
|
|
strerror strncmp strrchr strstr strtol strtoul tmpnam vfprintf vprintf \
|
1999-07-13 02:20:41 +08:00
|
|
|
vfork waitpid bcmp bcopy bzero
|
1998-05-16 07:42:58 +08:00
|
|
|
needed-list: Makefile
|
1999-07-07 23:22:55 +08:00
|
|
|
rm -f needed-list; touch needed-list; \
|
|
|
|
for f in $(NEEDED); do \
|
1999-07-08 10:43:10 +08:00
|
|
|
for g in $(LIBOBJS) $(EXTRA_OFILES); do \
|
|
|
|
case "$$g" in \
|
|
|
|
*$$f*) echo $$g >> needed-list ;; \
|
|
|
|
esac; \
|
|
|
|
done; \
|
1999-07-07 23:22:55 +08:00
|
|
|
done
|
1998-05-16 07:42:58 +08:00
|
|
|
|
|
|
|
# required-list was used when building a shared bfd/opcodes/libiberty
|
|
|
|
# library. I don't know if it used by anything currently.
|
1997-08-22 06:57:35 +08:00
|
|
|
required-list: Makefile
|
|
|
|
echo $(REQUIRED_OFILES) > required-list
|
|
|
|
|
|
|
|
stamp-picdir:
|
2000-05-16 10:48:28 +08:00
|
|
|
if [ x"$(PICFLAG)" != x ] && [ ! -d pic ]; then \
|
1997-08-22 06:57:35 +08:00
|
|
|
mkdir pic; \
|
|
|
|
else true; fi
|
|
|
|
touch stamp-picdir
|
|
|
|
|
1998-05-16 07:42:58 +08:00
|
|
|
.PHONY: all etags tags ls clean stage1 stage2
|
1997-08-22 06:57:35 +08:00
|
|
|
|
regress-demangle: New file.
* testsuite/regress-demangle: New file.
* testsuite/demangle-expected: New file.
* Makefile.in (all, check, installcheck, info, install-info,
clean-info, dvi, install, etags, tags, mostlyclean, clean,
distclean, maintainer-clean, realclean): Depend on corresponding
`-subdir' target.
(all-subdir check-subdir installcheck-subdir info-subdir
install-info-subdir clean-info-subdir dvi-subdir
install-info-subdir etags-subdir mostlyclean-subdir clean-subdir
distclean-subdir maintainer-clean-subdir): New target.
* testsuite/Makefile.in: New file.
* configure: Rebuilt.
* configure.in: Create testsuite/Makefile.
From-SVN: r26205
1999-04-05 22:28:59 +08:00
|
|
|
etags tags: TAGS etags-subdir
|
1997-08-22 06:57:35 +08:00
|
|
|
|
|
|
|
TAGS: $(CFILES) $(HFILES)
|
|
|
|
etags `for i in $(HFILES) $(CFILES); do echo $(srcdir)/$$i ; done`
|
|
|
|
|
|
|
|
# The standalone demangler (c++filt) has been moved to binutils.
|
|
|
|
demangle:
|
|
|
|
@echo "The standalone demangler, now named c++filt, is now"
|
|
|
|
@echo "a part of binutils."
|
|
|
|
@false
|
|
|
|
|
|
|
|
ls:
|
|
|
|
@echo Makefile $(HFILES) $(CFILES)
|
|
|
|
|
|
|
|
# Need to deal with profiled libraries, too.
|
|
|
|
|
1999-10-28 16:26:42 +08:00
|
|
|
# Cleaning has to be done carefully to ensure that we don't clean our SUBDIRS
|
|
|
|
# multiple times, hence our explicit recursion with an empty SUBDIRS.
|
regress-demangle: New file.
* testsuite/regress-demangle: New file.
* testsuite/demangle-expected: New file.
* Makefile.in (all, check, installcheck, info, install-info,
clean-info, dvi, install, etags, tags, mostlyclean, clean,
distclean, maintainer-clean, realclean): Depend on corresponding
`-subdir' target.
(all-subdir check-subdir installcheck-subdir info-subdir
install-info-subdir clean-info-subdir dvi-subdir
install-info-subdir etags-subdir mostlyclean-subdir clean-subdir
distclean-subdir maintainer-clean-subdir): New target.
* testsuite/Makefile.in: New file.
* configure: Rebuilt.
* configure.in: Create testsuite/Makefile.
From-SVN: r26205
1999-04-05 22:28:59 +08:00
|
|
|
mostlyclean: mostlyclean-subdir
|
2000-12-09 07:18:00 +08:00
|
|
|
-rm -rf *.o pic core errs \#* *.E a.out
|
|
|
|
-rm -f needed.awk needed2.awk errors dummy needed-list config.h stamp-*
|
|
|
|
-rm -f $(CONFIG_H) $(NEEDED_LIST) stamp-picdir
|
1997-08-22 06:57:35 +08:00
|
|
|
@$(MULTICLEAN) multi-clean DO=mostlyclean
|
1999-10-28 16:26:42 +08:00
|
|
|
clean: clean-subdir
|
|
|
|
$(MAKE) SUBDIRS="" mostlyclean
|
2000-12-09 07:18:00 +08:00
|
|
|
-rm -f *.a required-list tmpmulti.out
|
1997-08-22 06:57:35 +08:00
|
|
|
@$(MULTICLEAN) multi-clean DO=clean
|
1999-10-28 16:26:42 +08:00
|
|
|
distclean: distclean-subdir
|
|
|
|
$(MAKE) SUBDIRS="" clean
|
1997-08-22 06:57:35 +08:00
|
|
|
@$(MULTICLEAN) multi-clean DO=distclean
|
2000-12-09 07:18:00 +08:00
|
|
|
-rm -f *~ Makefile config.status xhost-mkfrag TAGS multilib.out
|
|
|
|
-rm -f config.log
|
2000-12-08 06:04:07 +08:00
|
|
|
-rmdir testsuite 2>/dev/null
|
1999-10-28 16:26:42 +08:00
|
|
|
maintainer-clean realclean: maintainer-clean-subdir
|
|
|
|
$(MAKE) SUBDIRS="" distclean
|
1997-08-22 06:57:35 +08:00
|
|
|
|
|
|
|
force:
|
|
|
|
|
1998-05-16 07:42:58 +08:00
|
|
|
Makefile: $(srcdir)/Makefile.in config.status
|
|
|
|
CONFIG_FILES=Makefile CONFIG_HEADERS= $(SHELL) ./config.status
|
|
|
|
|
|
|
|
config.h: stamp-h ; @true
|
|
|
|
stamp-h: config.in config.status
|
|
|
|
CONFIG_FILES= CONFIG_HEADERS=config.h:config.in $(SHELL) ./config.status
|
|
|
|
|
|
|
|
config.status: $(srcdir)/configure $(srcdir)/config.table
|
|
|
|
$(SHELL) ./config.status --recheck
|
1997-08-22 06:57:35 +08:00
|
|
|
|
regress-demangle: New file.
* testsuite/regress-demangle: New file.
* testsuite/demangle-expected: New file.
* Makefile.in (all, check, installcheck, info, install-info,
clean-info, dvi, install, etags, tags, mostlyclean, clean,
distclean, maintainer-clean, realclean): Depend on corresponding
`-subdir' target.
(all-subdir check-subdir installcheck-subdir info-subdir
install-info-subdir clean-info-subdir dvi-subdir
install-info-subdir etags-subdir mostlyclean-subdir clean-subdir
distclean-subdir maintainer-clean-subdir): New target.
* testsuite/Makefile.in: New file.
* configure: Rebuilt.
* configure.in: Create testsuite/Makefile.
From-SVN: r26205
1999-04-05 22:28:59 +08:00
|
|
|
|
|
|
|
all-subdir check-subdir installcheck-subdir info-subdir \
|
|
|
|
install-info-subdir clean-info-subdir dvi-subdir install-subdir \
|
|
|
|
etags-subdir mostlyclean-subdir clean-subdir distclean-subdir \
|
|
|
|
maintainer-clean-subdir:
|
2000-04-29 22:25:12 +08:00
|
|
|
@subdirs='$(SUBDIRS)'; \
|
2000-04-22 06:20:20 +08:00
|
|
|
target=`echo $@ | sed -e 's/-subdir//'`; \
|
2000-04-29 22:25:12 +08:00
|
|
|
for dir in $$subdirs ; do \
|
2000-04-22 06:20:20 +08:00
|
|
|
cd $$dir && $(MAKE) $$target; \
|
1999-10-28 16:26:42 +08:00
|
|
|
done
|
regress-demangle: New file.
* testsuite/regress-demangle: New file.
* testsuite/demangle-expected: New file.
* Makefile.in (all, check, installcheck, info, install-info,
clean-info, dvi, install, etags, tags, mostlyclean, clean,
distclean, maintainer-clean, realclean): Depend on corresponding
`-subdir' target.
(all-subdir check-subdir installcheck-subdir info-subdir
install-info-subdir clean-info-subdir dvi-subdir
install-info-subdir etags-subdir mostlyclean-subdir clean-subdir
distclean-subdir maintainer-clean-subdir): New target.
* testsuite/Makefile.in: New file.
* configure: Rebuilt.
* configure.in: Create testsuite/Makefile.
From-SVN: r26205
1999-04-05 22:28:59 +08:00
|
|
|
|
1998-10-09 06:48:52 +08:00
|
|
|
$(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS) $(ALLOCA): stamp-picdir
|
1998-05-22 08:20:51 +08:00
|
|
|
|
1998-05-16 07:42:58 +08:00
|
|
|
alloca.o: config.h
|
|
|
|
atexit.o: config.h
|
|
|
|
argv.o: config.h alloca-conf.h $(INCDIR)/libiberty.h
|
1997-08-22 06:57:35 +08:00
|
|
|
basename.o: $(INCDIR)/libiberty.h
|
1998-05-16 07:42:58 +08:00
|
|
|
choose-temp.o: config.h
|
|
|
|
clock.o: config.h
|
1997-08-22 06:57:35 +08:00
|
|
|
concat.o: $(INCDIR)/libiberty.h
|
1998-10-13 01:45:24 +08:00
|
|
|
cplus-dem.o: config.h $(INCDIR)/demangle.h
|
2000-06-08 04:35:43 +08:00
|
|
|
cp-demangle.o: config.h $(INCDIR)/dyn-string.h $(INCDIR)/demangle.h
|
2000-06-05 10:28:41 +08:00
|
|
|
dyn-string.o: config.h $(INCDIR)/dyn-string.h
|
1997-08-22 06:57:35 +08:00
|
|
|
fdmatch.o: $(INCDIR)/libiberty.h
|
1998-05-16 07:42:58 +08:00
|
|
|
fnmatch.o: config.h $(INCDIR)/fnmatch.h
|
|
|
|
getcwd.o: config.h
|
|
|
|
getopt.o: config.h $(INCDIR)/getopt.h
|
|
|
|
getopt1.o: config.h $(INCDIR)/getopt.h
|
|
|
|
getpagesize.o: config.h
|
1999-08-31 08:50:36 +08:00
|
|
|
getpwd.o: config.h $(INCDIR)/libiberty.h
|
1998-05-16 07:42:58 +08:00
|
|
|
getruntime.o: config.h $(INCDIR)/libiberty.h
|
1997-08-22 06:57:35 +08:00
|
|
|
hex.o: $(INCDIR)/libiberty.h
|
|
|
|
floatformat.o: $(INCDIR)/floatformat.h
|
1999-02-09 21:40:23 +08:00
|
|
|
mkstemps.o: config.h
|
2000-08-29 12:35:59 +08:00
|
|
|
md5.o: config.h
|
2000-05-31 05:06:31 +08:00
|
|
|
objalloc.o: config.h $(INCDIR)/objalloc.h
|
1998-10-13 01:45:24 +08:00
|
|
|
obstack.o: config.h $(INCDIR)/obstack.h
|
2000-03-16 16:37:47 +08:00
|
|
|
partition.o: config.h $(INCDIR)/partition.h
|
1998-05-16 07:42:58 +08:00
|
|
|
pexecute.o: config.h $(INCDIR)/libiberty.h
|
2000-07-27 07:23:24 +08:00
|
|
|
rename.o: config.h
|
1999-06-11 04:43:56 +08:00
|
|
|
setenv.o: config.h
|
2000-04-24 08:51:08 +08:00
|
|
|
sort.o: config.h $(INCDIR)/sort.h $(INCDIR)/ansidecl.h
|
1997-08-22 06:57:35 +08:00
|
|
|
spaces.o: $(INCDIR)/libiberty.h
|
1998-11-26 02:02:19 +08:00
|
|
|
splay-tree.o: config.h $(INCDIR)/libiberty.h $(INCDIR)/splay-tree.h $(INCDIR)/ansidecl.h
|
1998-05-16 07:42:58 +08:00
|
|
|
strerror.o: config.h $(INCDIR)/libiberty.h
|
|
|
|
strsignal.o: config.h $(INCDIR)/libiberty.h
|
2000-07-24 03:13:46 +08:00
|
|
|
strtol.o: config.h
|
|
|
|
strtoul.o: config.h
|
2000-07-22 07:18:01 +08:00
|
|
|
vasprintf.o: config.h
|
1997-08-22 06:57:35 +08:00
|
|
|
xatexit.o: $(INCDIR)/libiberty.h
|
2000-07-22 07:09:30 +08:00
|
|
|
xexit.o: config.h $(INCDIR)/libiberty.h
|
2000-05-24 09:46:44 +08:00
|
|
|
xmalloc.o: config.h $(INCDIR)/libiberty.h
|
1999-09-08 16:19:52 +08:00
|
|
|
xmemdup.o: config.h $(INCDIR)/libiberty.h
|
1999-01-30 21:28:44 +08:00
|
|
|
xstrdup.o: config.h $(INCDIR)/libiberty.h
|
1998-05-16 07:42:58 +08:00
|
|
|
xstrerror.o: config.h $(INCDIR)/libiberty.h
|
2000-07-27 07:23:24 +08:00
|
|
|
waitpid.o: config.h
|
1999-10-15 15:50:25 +08:00
|
|
|
hashtab.o: config.h $(INCDIR)/libiberty.h $(INCDIR)/hashtab.h $(INCDIR)/ansidecl.h
|