diff options
-rw-r--r-- | gcc/ChangeLog | 22 | ||||
-rw-r--r-- | gcc/Makefile.in | 12 | ||||
-rw-r--r-- | gcc/ch/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/ch/Makefile.in | 5 | ||||
-rw-r--r-- | gcc/ch/decl.c | 47 | ||||
-rw-r--r-- | gcc/ch/timing.c | 5 | ||||
-rw-r--r-- | gcc/cp/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cp/Makefile.in | 2 | ||||
-rw-r--r-- | gcc/cp/decl.c | 9 | ||||
-rw-r--r-- | gcc/cp/rtti.c | 5 | ||||
-rw-r--r-- | gcc/cppexp.c | 17 | ||||
-rw-r--r-- | gcc/defaults.h | 53 | ||||
-rw-r--r-- | gcc/dwarf2out.c | 9 | ||||
-rw-r--r-- | gcc/dwarfout.c | 45 | ||||
-rw-r--r-- | gcc/emit-rtl.c | 5 | ||||
-rw-r--r-- | gcc/f/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/f/Makefile.in | 5 | ||||
-rw-r--r-- | gcc/f/com.c | 1 | ||||
-rw-r--r-- | gcc/f/com.h | 43 | ||||
-rw-r--r-- | gcc/final.c | 8 | ||||
-rw-r--r-- | gcc/java/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/java/decl.c | 4 | ||||
-rw-r--r-- | gcc/java/expr.c | 4 | ||||
-rw-r--r-- | gcc/optabs.c | 4 | ||||
-rw-r--r-- | gcc/profile.c | 6 | ||||
-rw-r--r-- | gcc/sdbout.c | 34 | ||||
-rw-r--r-- | gcc/tradcif.y | 4 | ||||
-rw-r--r-- | gcc/tree.c | 33 |
28 files changed, 115 insertions, 289 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e03db7dfa85..0b0bca6385f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,17 @@ +2000-09-10 Zack Weinberg <zack@wolery.cumb.org> + + * defaults.h: Provide default definitions for: CHAR_TYPE_SIZE, + SHORT_TYPE_SIZE, INT_TYPE_SIZE, LONG_TYPE_SIZE, + LONG_LONG_TYPE_SIZE, WCHAR_TYPE_SIZE, FLOAT_TYPE_SIZE, + DOUBLE_TYPE_SIZE, LONG_DOUBLE_TYPE_SIZE, and WCHAR_UNSIGNED. + + * cppexp.c, dwarfout.c, dwarf2out.c, emit-rtl.c, final.c, optabs.c, + profile.c, sdbout.c, tradcif.y, tree.c: + Include defaults.h if not already included. + Don't define the above macros. + + * Makefile.in: Update dependencies. + 2000-09-10 Mark Mitchell <mark@codesourcery.com> * c-common.h (add_stmt): Change prototype. @@ -10,7 +24,7 @@ * c-common.c (check_case_value): Handle C++'s extensions to C semantics. * c-commnon.def (CASE_LABEL): Add room for the CASE_LABEL_DECL - field. + field. * c-parse.in (stmt): Adjust handling of return statements and case laels. * c-semantics.c (add_stmt): Return the new statement. @@ -287,7 +301,7 @@ Fri Sep 8 03:26:38 2000 J"orn Rennecke <amylaar@redhat.co.uk> h8300.h, h8300-protos.h, h8300.c, i370.h, i370-protos.h, i370.c, i960.h, i960-protos.h, i960.c, - sh.h, sh-protos.h, sh.c, + sh.h, sh-protos.h, sh.c, v850.h, v850-protos.h, v850.c: Convert HANDLE_PRAGMA-based pragmata scheme to use REGISTER_TARGET_PRAGMAS instead. @@ -339,7 +353,7 @@ Thu 07-Sep-2000 21:29:00 BST Neil Booth <NeilB@earthling.net> * reload.c (regno_clobbered_p): Accept new arg, MODE, and use it to handle multiword modes correctly. All callers and the declaration changed. - + 2000-09-06 Mark Mitchell <mark@codesourcery.com> * c-common.h (prep_stmt): Declare. @@ -348,7 +362,7 @@ Thu 07-Sep-2000 21:29:00 BST Neil Booth <NeilB@earthling.net> * c-semantics.c (lang_expand_stmt): Define. (prep_stmt): New function. (expand_stmt): Handle common statement types here. - + 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com> * configure.in (sh-*-linux*): Added. diff --git a/gcc/Makefile.in b/gcc/Makefile.in index bebe9d6facd..672635a0519 100644 --- a/gcc/Makefile.in +++ b/gcc/Makefile.in @@ -1228,7 +1228,7 @@ prefix.o: prefix.c $(CONFIG_H) system.h Makefile prefix.h convert.o: convert.c $(CONFIG_H) system.h $(TREE_H) flags.h convert.h toplev.h tree.o : tree.c $(CONFIG_H) system.h $(TREE_H) flags.h function.h toplev.h \ - $(GGC_H) $(HASHTAB_H) output.h + $(GGC_H) $(HASHTAB_H) output.h defaults.h print-tree.o : print-tree.c $(CONFIG_H) system.h $(TREE_H) $(GGC_H) stor-layout.o : stor-layout.c $(CONFIG_H) system.h $(TREE_H) flags.h \ function.h $(EXPR_H) $(RTL_H) toplev.h $(GGC_H) @@ -1282,7 +1282,7 @@ explow.o : explow.c $(CONFIG_H) system.h $(RTL_H) $(TREE_H) flags.h \ insn-codes.h toplev.h function.h optabs.o : optabs.c $(CONFIG_H) system.h $(RTL_H) $(TREE_H) flags.h \ insn-flags.h insn-config.h insn-codes.h $(EXPR_H) $(RECOG_H) reload.h \ - toplev.h $(GGC_H) real.h + toplev.h $(GGC_H) real.h defaults.h dbxout.o : dbxout.c $(CONFIG_H) system.h $(TREE_H) $(RTL_H) flags.h $(REGS_H) \ insn-config.h reload.h gstab.h xcoffout.h defaults.h output.h dbxout.h \ toplev.h @@ -1301,7 +1301,7 @@ xcoffout.o : xcoffout.c $(CONFIG_H) system.h $(TREE_H) $(RTL_H) xcoffout.h \ emit-rtl.o : emit-rtl.c $(CONFIG_H) system.h $(RTL_H) $(TREE_H) flags.h \ function.h $(REGS_H) insn-config.h $(RECOG_H) real.h $(GGC_H) \ $(EXPR_H) $(srcdir)/../include/obstack.h hard-reg-set.h bitmap.h toplev.h \ - $(HASHTAB_H) + $(HASHTAB_H) defaults.h real.o : real.c $(CONFIG_H) system.h $(TREE_H) toplev.h integrate.o : integrate.c $(CONFIG_H) system.h $(RTL_H) $(TREE_H) flags.h \ $(INTEGRATE_H) insn-flags.h insn-config.h $(EXPR_H) real.h $(REGS_H) \ @@ -1335,7 +1335,7 @@ conflict.o : conflict.c $(CONFIG_H) system.h $(OBSTACK_H) $(HASHTAB_H) \ $(RTL_H) hard-reg-set.h $(BASIC_BLOCK_H) profile.o : profile.c $(CONFIG_H) system.h $(RTL_H) $(TREE_H) flags.h \ insn-flags.h insn-config.h output.h $(REGS_H) $(EXPR_H) function.h \ - gcov-io.h toplev.h $(GGC_H) hard-reg-set.h $(BASIC_BLOCK_H) + gcov-io.h toplev.h $(GGC_H) hard-reg-set.h $(BASIC_BLOCK_H) defaults.h loop.o : loop.c $(CONFIG_H) system.h $(RTL_H) flags.h $(LOOP_H) insn-config.h \ insn-flags.h $(REGS_H) hard-reg-set.h $(RECOG_H) $(EXPR_H) real.h \ $(BASIC_BLOCK_H) function.h toplev.h varray.h except.h cselib.h @@ -1808,7 +1808,7 @@ cpp0$(exeext): cppmain.o intl.o libcpp.a $(LIBDEPS) cppmain.o: cppmain.c $(CONFIG_H) cpplib.h intl.h system.h cpperror.o: cpperror.c $(CONFIG_H) $(LIBCPP_DEPS) -cppexp.o: cppexp.c $(CONFIG_H) $(LIBCPP_DEPS) +cppexp.o: cppexp.c $(CONFIG_H) $(LIBCPP_DEPS) defaults.h cpplex.o: cpplex.c $(CONFIG_H) $(LIBCPP_DEPS) cppmacro.o: cppmacro.c $(CONFIG_H) $(LIBCPP_DEPS) cpplib.o: cpplib.c $(CONFIG_H) $(LIBCPP_DEPS) $(OBSTACK_H) @@ -1831,7 +1831,7 @@ tradcpp0$(exeext): tradcpp.o tradcif.o cppdefault.o version.o intl.o $(LIBDEPS) tradcpp.o tradcif.o cppdefault.o version.o intl.o $(LIBS) tradcpp.o: tradcpp.c $(CONFIG_H) system.h version.h cppdefault.h -tradcif.o: $(srcdir)/tradcif.c $(CONFIG_H) system.h +tradcif.o: $(srcdir)/tradcif.c $(CONFIG_H) system.h defaults.h $(srcdir)/tradcif.c: $(srcdir)/tradcif.y cd $(srcdir); $(BISON) $(BISONFLAGS) -o tradcif.c tradcif.y diff --git a/gcc/ch/ChangeLog b/gcc/ch/ChangeLog index 44049ccd175..f356ff8335d 100644 --- a/gcc/ch/ChangeLog +++ b/gcc/ch/ChangeLog @@ -1,3 +1,9 @@ +2000-09-10 Zack Weinberg <zack@wolery.cumb.org> + + * decl.c, timing.c: Include defaults.h if not already included. + Don't define the *_TYPE_SIZE macros. + * Makefile.in: Update dependencies. + 2000-08-29 Zack Weinberg <zack@wolery.cumb.org> * inout.c (add_enum_to_list): Use DECL_NAME directly, don't get diff --git a/gcc/ch/Makefile.in b/gcc/ch/Makefile.in index 70f9071f6ff..5b65f122bed 100644 --- a/gcc/ch/Makefile.in +++ b/gcc/ch/Makefile.in @@ -276,7 +276,7 @@ convert.o : convert.c $(CONFIG_H) $(CHILL_TREE_H) $(srcdir)/../flags.h \ $(srcdir)/../tree.h $(srcdir)/../system.h $(srcdir)/../toplev.h \ $(srcdir)/../convert.h decl.o : decl.c $(CONFIG_H) $(CHILL_TREE_H) $(srcdir)/../flags.h lex.h \ - $(srcdir)/../system.h $(srcdir)/../toplev.h + $(srcdir)/../system.h $(srcdir)/../toplev.h $(srcdir)/../defaults.h except.o : except.c $(CONFIG_H) $(srcdir)/../tree.h $(RTL_H) $(CHILL_TREE_H) \ $(srcdir)/../system.h $(srcdir)/../toplev.h expr.o : expr.c $(CONFIG_H) $(RTL_H) $(CHILL_TREE_H) $(srcdir)/../flags.h \ @@ -300,7 +300,8 @@ parse.o : parse.c $(CONFIG_H) $(CHILL_TREE_H) parse.h \ satisfy.o : satisfy.c $(CONFIG_H) $(CHILL_TREE_H) $(srcdir)/../tree.h \ $(srcdir)/../flags.h lex.h $(srcdir)/../system.h $(srcdir)/../toplev.h timing.o : timing.c $(CONFIG_H) $(CHILL_TREE_H) $(RTL_H) $(srcdir)/../flags.h \ - $(srcdir)/../input.h lex.h $(srcdir)/../system.h $(srcdir)/../toplev.h + $(srcdir)/../input.h lex.h $(srcdir)/../system.h $(srcdir)/../toplev.h \ + $(srcdir)/../defaults.h tasking.o : tasking.c $(CONFIG_H) $(CHILL_TREE_H) $(RTL_H) \ $(srcdir)/../flags.h $(srcdir)/../input.h \ lex.h $(srcdir)/../system.h $(srcdir)/../toplev.h diff --git a/gcc/ch/decl.c b/gcc/ch/decl.c index ba541145397..571eaed63b4 100644 --- a/gcc/ch/decl.c +++ b/gcc/ch/decl.c @@ -191,6 +191,7 @@ Boston, MA 02111-1307, USA. */ #include "input.h" #include "rtl.h" #include "toplev.h" +#include "defaults.h" #define IS_UNKNOWN_TYPE(type) (TYPE_SIZE(type)==0) #define BUILTIN_NESTING_LEVEL (-1) @@ -264,52 +265,6 @@ int current_module_nesting_level = 0; /* ??? not all decl nodes are given the most useful possible line numbers. For example, the CONST_DECLs for enum values. */ -#if 0 -/* In grokdeclarator, distinguish syntactic contexts of declarators. */ -enum decl_context -{ NORMAL, /* Ordinary declaration */ - FUNCDEF, /* Function definition */ - PARM, /* Declaration of parm before function body */ - FIELD, /* Declaration inside struct or union */ - BITFIELD, /* Likewise but with specified width */ - TYPENAME}; /* Typename (inside cast or sizeof) */ -#endif - -#ifndef CHAR_TYPE_SIZE -#define CHAR_TYPE_SIZE BITS_PER_UNIT -#endif - -#ifndef SHORT_TYPE_SIZE -#define SHORT_TYPE_SIZE (BITS_PER_UNIT * MIN ((UNITS_PER_WORD + 1) / 2, 2)) -#endif - -#ifndef INT_TYPE_SIZE -#define INT_TYPE_SIZE BITS_PER_WORD -#endif - -#ifndef LONG_TYPE_SIZE -#define LONG_TYPE_SIZE BITS_PER_WORD -#endif - -#ifndef LONG_LONG_TYPE_SIZE -#define LONG_LONG_TYPE_SIZE (BITS_PER_WORD * 2) -#endif - -#ifndef WCHAR_UNSIGNED -#define WCHAR_UNSIGNED 0 -#endif - -#ifndef FLOAT_TYPE_SIZE -#define FLOAT_TYPE_SIZE BITS_PER_WORD -#endif - -#ifndef DOUBLE_TYPE_SIZE -#define DOUBLE_TYPE_SIZE (BITS_PER_WORD * 2) -#endif - -#ifndef LONG_DOUBLE_TYPE_SIZE -#define LONG_DOUBLE_TYPE_SIZE (BITS_PER_WORD * 2) -#endif /* We let tm.h override the types used here, to handle trivial differences such as the choice of unsigned int or long unsigned int for size_t. diff --git a/gcc/ch/timing.c b/gcc/ch/timing.c index 35bef786b23..53d76703f12 100644 --- a/gcc/ch/timing.c +++ b/gcc/ch/timing.c @@ -28,10 +28,7 @@ Boston, MA 02111-1307, USA. */ #include "obstack.h" #include "lex.h" #include "toplev.h" - -#ifndef LONG_TYPE_SIZE -#define LONG_TYPE_SIZE BITS_PER_WORD -#endif +#include "defaults.h" /* set non-zero if input text is forced to lowercase */ extern int ignore_case; diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 1ba64f02bac..c1cd62149df 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2000-09-10 Zack Weinberg <zack@wolery.cumb.org> + + * decl.c, rtti.c: Include defaults.h if not already included. + Don't define the *_TYPE_SIZE macros. + 2000-09-09 Mark Mitchell <mark@codesourcery.com> * cp-tree.h (push_switch): Change prototype. diff --git a/gcc/cp/Makefile.in b/gcc/cp/Makefile.in index e73f6ad1125..839e5748e2d 100644 --- a/gcc/cp/Makefile.in +++ b/gcc/cp/Makefile.in @@ -280,7 +280,7 @@ tree.o : tree.c $(CXX_TREE_H) $(srcdir)/../flags.h \ ../insn-config.h $(srcdir)/../integrate.h ptree.o : ptree.c $(CXX_TREE_H) $(srcdir)/../system.h rtti.o : rtti.c $(CXX_TREE_H) $(srcdir)/../flags.h \ - $(srcdir)/../toplev.h + $(srcdir)/../toplev.h $(srcdir)/../defaults.h except.o : except.c $(CXX_TREE_H) $(srcdir)/../flags.h $(RTL_H) \ $(srcdir)/../except.h $(srcdir)/../toplev.h cfns.h expr.o : expr.c $(CXX_TREE_H) $(RTL_H) $(srcdir)/../flags.h \ diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index 9ac30e40832..d82c32e5058 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -42,7 +42,6 @@ Boston, MA 02111-1307, USA. */ #include "except.h" #include "toplev.h" #include "../hash.h" -#include "defaults.h" #include "ggc.h" extern int current_class_depth; @@ -57,14 +56,6 @@ extern int (*valid_lang_attribute) PARAMS ((tree, tree, tree, tree)); int ggc_p = 1; -#ifndef WCHAR_UNSIGNED -#define WCHAR_UNSIGNED 0 -#endif - -#ifndef CHAR_TYPE_SIZE -#define CHAR_TYPE_SIZE BITS_PER_UNIT -#endif - #ifndef BOOL_TYPE_SIZE #ifdef SLOW_BYTE_ACCESS /* In the new ABI, `bool' has size and alignment `1', on all diff --git a/gcc/cp/rtti.c b/gcc/cp/rtti.c index 94e67a551a9..c14dd9b0531 100644 --- a/gcc/cp/rtti.c +++ b/gcc/cp/rtti.c @@ -29,10 +29,7 @@ Boston, MA 02111-1307, USA. */ #include "output.h" #include "assert.h" #include "toplev.h" - -#ifndef INT_TYPE_SIZE -#define INT_TYPE_SIZE BITS_PER_WORD -#endif +#include "defaults.h" /* Accessors for the type_info objects. We need to remember several things about each of the type_info types. The global tree nodes such as diff --git a/gcc/cppexp.c b/gcc/cppexp.c index 9631526b18e..5403dce92e6 100644 --- a/gcc/cppexp.c +++ b/gcc/cppexp.c @@ -23,22 +23,7 @@ Boston, MA 02111-1307, USA. */ #include "system.h" #include "cpplib.h" #include "cpphash.h" - -#ifndef CHAR_TYPE_SIZE -#define CHAR_TYPE_SIZE BITS_PER_UNIT -#endif - -#ifndef INT_TYPE_SIZE -#define INT_TYPE_SIZE BITS_PER_WORD -#endif - -#ifndef LONG_TYPE_SIZE -#define LONG_TYPE_SIZE BITS_PER_WORD -#endif - -#ifndef WCHAR_TYPE_SIZE -#define WCHAR_TYPE_SIZE INT_TYPE_SIZE -#endif +#include "defaults.h" #ifndef MAX_CHAR_TYPE_SIZE #define MAX_CHAR_TYPE_SIZE CHAR_TYPE_SIZE diff --git a/gcc/defaults.h b/gcc/defaults.h index b551fea125f..13772aa934b 100644 --- a/gcc/defaults.h +++ b/gcc/defaults.h @@ -1,7 +1,8 @@ /* Definitions of various defaults for how to do assembler output (most of which are designed to be appropriate for GAS or for some BSD assembler). - Copyright (C) 1992, 1996, 1997, 1998, 1999 Free Software Foundation, Inc. + Copyright (C) 1992, 1996, 1997, 1998, 1999, 2000 + Free Software Foundation, Inc. Contributed by Ron Guilmette (rfg@monkeys.com) This file is part of GNU CC. @@ -21,6 +22,9 @@ along with GNU CC; see the file COPYING. If not, write to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +#ifndef GCC_DEFAULTS_H +#define GCC_DEFAULTS_H + /* Store in OUTPUT a string (made with alloca) containing an assembler-name for a local static variable or function named NAME. LABELNO is an integer which is different for each call. */ @@ -194,3 +198,50 @@ do { ASM_OUTPUT_LABEL(FILE,LABEL_ALTERNATE_NAME (INSN)); } while (0) #ifndef DWARF_FRAME_REGISTERS #define DWARF_FRAME_REGISTERS FIRST_PSEUDO_REGISTER #endif + +/* Default sizes for base C types. If the sizes are different for + your target, you should override these values by defining the + appropriate symbols in your tm.h file. */ + +#ifndef CHAR_TYPE_SIZE +#define CHAR_TYPE_SIZE BITS_PER_UNIT +#endif + +#ifndef SHORT_TYPE_SIZE +#define SHORT_TYPE_SIZE (BITS_PER_UNIT * MIN ((UNITS_PER_WORD + 1) / 2, 2)) +#endif + +#ifndef INT_TYPE_SIZE +#define INT_TYPE_SIZE BITS_PER_WORD +#endif + +#ifndef LONG_TYPE_SIZE +#define LONG_TYPE_SIZE BITS_PER_WORD +#endif + +#ifndef LONG_LONG_TYPE_SIZE +#define LONG_LONG_TYPE_SIZE (BITS_PER_WORD * 2) +#endif + +#ifndef WCHAR_TYPE_SIZE +#define WCHAR_TYPE_SIZE INT_TYPE_SIZE +#endif + +#ifndef WCHAR_UNSIGNED +#define WCHAR_UNSIGNED 0 +#endif + +#ifndef FLOAT_TYPE_SIZE +#define FLOAT_TYPE_SIZE BITS_PER_WORD +#endif + +#ifndef DOUBLE_TYPE_SIZE +#define DOUBLE_TYPE_SIZE (BITS_PER_WORD * 2) +#endif + +#ifndef LONG_DOUBLE_TYPE_SIZE +#define LONG_DOUBLE_TYPE_SIZE (BITS_PER_WORD * 2) +#endif + +#endif /* GCC_DEFAULTS_H */ + diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 27d2663ec5d..de67f8553b6 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -139,15 +139,6 @@ dw_fde_node; /* Maximum size (in bytes) of an artificially generated label. */ #define MAX_ARTIFICIAL_LABEL_BYTES 30 -/* Make sure we know the sizes of the various types dwarf can describe. These - are only defaults. If the sizes are different for your target, you should - override these values by defining the appropriate symbols in your tm.h - file. */ - -#ifndef CHAR_TYPE_SIZE -#define CHAR_TYPE_SIZE BITS_PER_UNIT -#endif - /* The size of the target's pointer type. */ #ifndef PTR_SIZE #define PTR_SIZE (POINTER_SIZE / BITS_PER_UNIT) diff --git a/gcc/dwarfout.c b/gcc/dwarfout.c index 7df90f20b8f..098fbd8d024 100644 --- a/gcc/dwarfout.c +++ b/gcc/dwarfout.c @@ -97,51 +97,6 @@ extern int flag_traditional; #define MAX_ARTIFICIAL_LABEL_BYTES 30 -/* Make sure we know the sizes of the various types dwarf can describe. - These are only defaults. If the sizes are different for your target, - you should override these values by defining the appropriate symbols - in your tm.h file. */ - -#ifndef CHAR_TYPE_SIZE -#define CHAR_TYPE_SIZE BITS_PER_UNIT -#endif - -#ifndef SHORT_TYPE_SIZE -#define SHORT_TYPE_SIZE (BITS_PER_UNIT * MIN ((UNITS_PER_WORD + 1) / 2, 2)) -#endif - -#ifndef INT_TYPE_SIZE -#define INT_TYPE_SIZE BITS_PER_WORD -#endif - -#ifndef LONG_TYPE_SIZE -#define LONG_TYPE_SIZE BITS_PER_WORD -#endif - -#ifndef LONG_LONG_TYPE_SIZE -#define LONG_LONG_TYPE_SIZE (BITS_PER_WORD * 2) -#endif - -#ifndef WCHAR_TYPE_SIZE -#define WCHAR_TYPE_SIZE INT_TYPE_SIZE -#endif - -#ifndef WCHAR_UNSIGNED -#define WCHAR_UNSIGNED 0 -#endif - -#ifndef FLOAT_TYPE_SIZE -#define FLOAT_TYPE_SIZE BITS_PER_WORD -#endif - -#ifndef DOUBLE_TYPE_SIZE -#define DOUBLE_TYPE_SIZE (BITS_PER_WORD * 2) -#endif - -#ifndef LONG_DOUBLE_TYPE_SIZE -#define LONG_DOUBLE_TYPE_SIZE (BITS_PER_WORD * 2) -#endif - /* Structure to keep track of source filenames. */ struct filename_entry { diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c index 9eb9639e7d5..3fb272dd4c0 100644 --- a/gcc/emit-rtl.c +++ b/gcc/emit-rtl.c @@ -54,6 +54,7 @@ Boston, MA 02111-1307, USA. */ #include "bitmap.h" #include "basic-block.h" #include "ggc.h" +#include "defaults.h" /* Commonly used modes. */ @@ -4076,10 +4077,6 @@ init_emit_once (line_numbers) word_mode = mode; } -#ifndef DOUBLE_TYPE_SIZE -#define DOUBLE_TYPE_SIZE (BITS_PER_WORD * 2) -#endif - for (mode = GET_CLASS_NARROWEST_MODE (MODE_FLOAT); mode != VOIDmode; mode = GET_MODE_WIDER_MODE (mode)) { diff --git a/gcc/f/ChangeLog b/gcc/f/ChangeLog index 19ca3799276..4ca227248b8 100644 --- a/gcc/f/ChangeLog +++ b/gcc/f/ChangeLog @@ -1,3 +1,9 @@ +2000-09-10 Zack Weinberg <zack@wolery.cumb.org> + + * com.c: Include defaults.h. + * com.h: Don't define the *_TYPE_SIZE macros. + * Makefile.in: Update dependencies. + 2000-08-29 Zack Weinberg <zack@wolery.cumb.org> * ansify.c: Use #line, not # <number>. diff --git a/gcc/f/Makefile.in b/gcc/f/Makefile.in index a6f389911de..ccc1ed095d6 100644 --- a/gcc/f/Makefile.in +++ b/gcc/f/Makefile.in @@ -240,6 +240,7 @@ SYSTEM_H = $(srcdir)/../system.h TOPLEV_H = $(srcdir)/../toplev.h TREE_H = $(srcdir)/../tree.h $(srcdir)/../real.h \ $(srcdir)/../tree.def $(srcdir)/../machmode.h $(srcdir)/../machmode.def +DEFAULTS_H = $(srcdir)/../defaults.h ansify.o: ansify.c $(HCONFIG_H) $(SYSTEM_H) $(ASSERT_H) bad.o: bad.c proj.h $(CONFIG_H) $(SYSTEM_H) $(ASSERT_H) bad.h bad.def where.h \ @@ -254,12 +255,12 @@ bld.o: bld.c proj.h $(CONFIG_H) $(SYSTEM_H) $(ASSERT_H) bld.h bld-op.def bit.h \ info-w.def target.h bad.h bad.def where.h $(GLIMITS_H) top.h lex.h \ type.h lab.h storag.h symbol.h symbol.def equiv.h global.h name.h \ intrin.h intrin.def -com.o: com.c proj.h $(CONFIG_H) $(SYSTEM_H) $(ASSERT_H) $(FLAGS_H) $(RTL_H) $(TOPLEV_H) \ +com.o: com.c proj.h $(CONFIG_H) $(SYSTEM_H) $(ASSERT_H) $(FLAGS_H) $(RTL_H) \ $(TREE_H) $(OUTPUT_H) $(CONVERT_H) com.h com-rt.def bld.h bld-op.def bit.h \ malloc.h info.h info-b.def info-k.def info-w.def target.h bad.h \ bad.def where.h $(GLIMITS_H) top.h lex.h type.h intrin.h intrin.def \ lab.h symbol.h symbol.def equiv.h storag.h global.h name.h expr.h \ - implic.h src.h st.h $(GGC_H) + implic.h src.h st.h $(GGC_H) $(TOPLEV_H) $(DEFAULTS_H) data.o: data.c proj.h $(CONFIG_H) $(SYSTEM_H) $(ASSERT_H) data.h bld.h \ bld-op.def bit.h malloc.h com.h com-rt.def $(TREE_H) info.h info-b.def \ info-k.def info-w.def target.h bad.h bad.def where.h $(GLIMITS_H) top.h \ diff --git a/gcc/f/com.c b/gcc/f/com.c index 93d8c44e3a8..c3a50e92a20 100644 --- a/gcc/f/com.c +++ b/gcc/f/com.c @@ -95,6 +95,7 @@ the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA #include "output.h" /* Must follow tree.h so TREE_CODE is defined! */ #include "convert.h" #include "ggc.h" +#include "defaults.h" #endif /* FFECOM_targetCURRENT == FFECOM_targetGCC */ #define FFECOM_GCC_INCLUDE 1 /* Enable -I. */ diff --git a/gcc/f/com.h b/gcc/f/com.h index 15576979b84..d0dfe8f84bc 100644 --- a/gcc/f/com.h +++ b/gcc/f/com.h @@ -84,49 +84,6 @@ the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA to build the libf2c with which g77-generated code is linked, or there will probably be bugs, some of them difficult to detect or even trigger. */ -/* Do we need int (for 32-bit or 64-bit systems) or long (16-bit or - normally 32-bit) for f2c-type integers? */ - -#ifndef BITS_PER_WORD -#define BITS_PER_WORD 32 -#endif - -#ifndef CHAR_TYPE_SIZE -#define CHAR_TYPE_SIZE BITS_PER_UNIT -#endif - -#ifndef SHORT_TYPE_SIZE -#define SHORT_TYPE_SIZE (BITS_PER_UNIT * MIN ((UNITS_PER_WORD + 1) / 2, 2)) -#endif - -#ifndef INT_TYPE_SIZE -#define INT_TYPE_SIZE BITS_PER_WORD -#endif - -#ifndef LONG_TYPE_SIZE -#define LONG_TYPE_SIZE BITS_PER_WORD -#endif - -#ifndef LONG_LONG_TYPE_SIZE -#define LONG_LONG_TYPE_SIZE (BITS_PER_WORD * 2) -#endif - -#ifndef WCHAR_UNSIGNED -#define WCHAR_UNSIGNED 0 -#endif - -#ifndef FLOAT_TYPE_SIZE -#define FLOAT_TYPE_SIZE BITS_PER_WORD -#endif - -#ifndef DOUBLE_TYPE_SIZE -#define DOUBLE_TYPE_SIZE (BITS_PER_WORD * 2) -#endif - -#ifndef LONG_DOUBLE_TYPE_SIZE -#define LONG_DOUBLE_TYPE_SIZE (BITS_PER_WORD * 2) -#endif - /* The C front-end provides __g77_integer and __g77_uinteger types so that the appropriately-sized signed and unsigned integer types are available for libf2c. If you change this, also the definitions of those types diff --git a/gcc/final.c b/gcc/final.c index e580d5ba0ca..6fb5c447385 100644 --- a/gcc/final.c +++ b/gcc/final.c @@ -111,14 +111,6 @@ Boston, MA 02111-1307, USA. */ #define N_SOL 0x84 #endif -#ifndef INT_TYPE_SIZE -#define INT_TYPE_SIZE BITS_PER_WORD -#endif - -#ifndef LONG_TYPE_SIZE -#define LONG_TYPE_SIZE BITS_PER_WORD -#endif - /* If we aren't using cc0, CC_STATUS_INIT shouldn't exist. So define a null default for it to save conditionalization later. */ #ifndef CC_STATUS_INIT diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index 9645d55806c..2f248f47241 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,3 +1,8 @@ +2000-09-10 Zack Weinberg <zack@wolery.cumb.org> + + * decl.c, expr.c: Include defaults.h if not already included. + Don't define the *_TYPE_SIZE macros. + 2000-09-09 Geoffrey Keating <geoffk@cygnus.com> * typeck.c (build_java_array_type): Correct first parameter diff --git a/gcc/java/decl.c b/gcc/java/decl.c index f57ed0157db..a96ff94bd99 100644 --- a/gcc/java/decl.c +++ b/gcc/java/decl.c @@ -54,10 +54,6 @@ static tree create_primitive_vtable PARAMS ((const char *)); before static field references. */ extern int always_initialize_class_p; -#ifndef INT_TYPE_SIZE -#define INT_TYPE_SIZE BITS_PER_WORD -#endif - /* The DECL_MAP is a mapping from (index, type) to a decl node. If index < max_locals, it is the index of a local variable. if index >= max_locals, then index-max_locals is a stack slot. diff --git a/gcc/java/expr.c b/gcc/java/expr.c index a9c074f88b0..ebba1aca7fa 100644 --- a/gcc/java/expr.c +++ b/gcc/java/expr.c @@ -984,10 +984,6 @@ expand_java_pushc (ival, type) push_value (value); } -#ifndef INT_TYPE_SIZE -#define INT_TYPE_SIZE BITS_PER_WORD -#endif - static void expand_java_return (type) tree type; diff --git a/gcc/optabs.c b/gcc/optabs.c index 0a64fad7499..07928d7f99d 100644 --- a/gcc/optabs.c +++ b/gcc/optabs.c @@ -39,6 +39,7 @@ Boston, MA 02111-1307, USA. */ #include "reload.h" #include "ggc.h" #include "real.h" +#include "defaults.h" /* Each optab contains info on how this target machine can perform a particular operation @@ -4669,9 +4670,6 @@ init_optabs () = init_one_libfunc ("cabs"); /* The ffs function operates on `int'. */ -#ifndef INT_TYPE_SIZE -#define INT_TYPE_SIZE BITS_PER_WORD -#endif ffs_optab->handlers[(int) mode_for_size (INT_TYPE_SIZE, MODE_INT, 0)].libfunc = init_one_libfunc ("ffs"); diff --git a/gcc/profile.c b/gcc/profile.c index fa6b2302bd2..809e43f3e05 100644 --- a/gcc/profile.c +++ b/gcc/profile.c @@ -48,7 +48,7 @@ Boston, MA 02111-1307, USA. */ #include "ggc.h" #include "hard-reg-set.h" #include "basic-block.h" - +#include "defaults.h" /* Additional information about the edges we need. */ struct edge_info @@ -119,10 +119,6 @@ static void compute_branch_probabilities PARAMS ((void)); static basic_block find_group PARAMS ((basic_block)); static void union_groups PARAMS ((basic_block, basic_block)); -#ifndef LONG_TYPE_SIZE -#define LONG_TYPE_SIZE BITS_PER_WORD -#endif - /* If non-zero, we need to output a constructor to set up the per-object-file data. */ static int need_func_profiler = 0; diff --git a/gcc/sdbout.c b/gcc/sdbout.c index f0075d56260..0461b384065 100644 --- a/gcc/sdbout.c +++ b/gcc/sdbout.c @@ -123,40 +123,6 @@ static void sdbout_one_type PARAMS ((tree)); static void sdbout_parms PARAMS ((tree)); static void sdbout_reg_parms PARAMS ((tree)); -/* Define the default sizes for various types. */ - -#ifndef CHAR_TYPE_SIZE -#define CHAR_TYPE_SIZE BITS_PER_UNIT -#endif - -#ifndef SHORT_TYPE_SIZE -#define SHORT_TYPE_SIZE (BITS_PER_UNIT * MIN ((UNITS_PER_WORD + 1) / 2, 2)) -#endif - -#ifndef INT_TYPE_SIZE -#define INT_TYPE_SIZE BITS_PER_WORD -#endif - -#ifndef LONG_TYPE_SIZE -#define LONG_TYPE_SIZE BITS_PER_WORD -#endif - -#ifndef LONG_LONG_TYPE_SIZE -#define LONG_LONG_TYPE_SIZE (BITS_PER_WORD * 2) -#endif - -#ifndef FLOAT_TYPE_SIZE -#define FLOAT_TYPE_SIZE BITS_PER_WORD -#endif - -#ifndef DOUBLE_TYPE_SIZE -#define DOUBLE_TYPE_SIZE (BITS_PER_WORD * 2) -#endif - -#ifndef LONG_DOUBLE_TYPE_SIZE -#define LONG_DOUBLE_TYPE_SIZE (BITS_PER_WORD * 2) -#endif - /* Random macros describing parts of SDB data. */ /* Put something here if lines get too long */ diff --git a/gcc/tradcif.y b/gcc/tradcif.y index 4a70bed89a3..082977d45e3 100644 --- a/gcc/tradcif.y +++ b/gcc/tradcif.y @@ -26,6 +26,7 @@ Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. %{ #include "config.h" #include "system.h" +#include "defaults.h" #include <setjmp.h> int yylex PARAMS ((void)); @@ -44,9 +45,6 @@ Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. /* some external tables of character types */ extern unsigned char is_idstart[], is_idchar[]; -#ifndef CHAR_TYPE_SIZE -#define CHAR_TYPE_SIZE BITS_PER_UNIT -#endif %} %union { diff --git a/gcc/tree.c b/gcc/tree.c index d396cc11ca8..15c482ace88 100644 --- a/gcc/tree.c +++ b/gcc/tree.c @@ -44,6 +44,7 @@ Boston, MA 02111-1307, USA. */ #include "ggc.h" #include "hashtab.h" #include "output.h" +#include "defaults.h" #define obstack_chunk_alloc xmalloc #define obstack_chunk_free free @@ -5647,38 +5648,6 @@ finish_vector_type (t) } } -#ifndef CHAR_TYPE_SIZE -#define CHAR_TYPE_SIZE BITS_PER_UNIT -#endif - -#ifndef SHORT_TYPE_SIZE -#define SHORT_TYPE_SIZE (BITS_PER_UNIT * MIN ((UNITS_PER_WORD + 1) / 2, 2)) -#endif - -#ifndef INT_TYPE_SIZE -#define INT_TYPE_SIZE BITS_PER_WORD -#endif - -#ifndef LONG_TYPE_SIZE -#define LONG_TYPE_SIZE BITS_PER_WORD -#endif - -#ifndef LONG_LONG_TYPE_SIZE -#define LONG_LONG_TYPE_SIZE (BITS_PER_WORD * 2) -#endif - -#ifndef FLOAT_TYPE_SIZE -#define FLOAT_TYPE_SIZE BITS_PER_WORD -#endif - -#ifndef DOUBLE_TYPE_SIZE -#define DOUBLE_TYPE_SIZE (BITS_PER_WORD * 2) -#endif - -#ifndef LONG_DOUBLE_TYPE_SIZE -#define LONG_DOUBLE_TYPE_SIZE (BITS_PER_WORD * 2) -#endif - /* Create nodes for all integer types (and error_mark_node) using the sizes of C datatypes. The caller should call set_sizetype soon after calling this function to select one of the types as sizetype. */ |