Commit Graph

27850 Commits

Author SHA1 Message Date
Jason Merrill 68489c4d5a update
From-SVN: r33275
2000-04-20 02:54:02 -04:00
Jason Merrill 9fc51663be fix last change
From-SVN: r33274
2000-04-20 02:50:57 -04:00
Jason Merrill 6e9dcc25c1 typeck.c (build_x_function_call): Resolve an OFFSET_REF.
* typeck.c (build_x_function_call): Resolve an OFFSET_REF.

        * call.c (joust): Exit early if we get the same function, too.

        * decl2.c (key_method): Return NULL_TREE for template classes.
        (import_export_class): Don't need to check for template classes.

From-SVN: r33273
2000-04-20 01:53:58 -04:00
Tom Tromey af98124ef9 jni.cc (_Jv_JNI_FindClass): Use system class loader if class doesn't have a loader.
* jni.cc (_Jv_JNI_FindClass): Use system class loader if class
	doesn't have a loader.

From-SVN: r33272
2000-04-20 05:49:48 +00:00
Alexandre Petit-Bianco 807bc1db3d parse.y (yyerror): `msg' can be null, don't use it in that case.
2000-04-19  Alexandre Petit-Bianco  <apbianco@cygnus.com>

	* parse.y (yyerror): `msg' can be null, don't use it in that case.

From-SVN: r33270
2000-04-19 19:52:26 -07:00
Jason Merrill 5186142b90 typo
From-SVN: r33269
2000-04-19 21:19:58 -04:00
Marek Michalkiewicz b8fa3ed63e * avr.c: #include "system.h" instead of <stdio.h> and <stdlib.h>.
From-SVN: r33268
2000-04-19 17:23:42 -06:00
Zack Weinberg 0d5a06bd0b cpphash.c (special_symbol): Represent an empty macro with "\r \r " not just "\r ".
* cpphash.c (special_symbol): Represent an empty macro with
	"\r \r " not just "\r ".
	(_cpp_macroexpand): Correct condition for the foo ( ) special
	case.
	(unsafe_chars): Handle EOF as second argument.
	(push_macro_expansion): Simplify test for removing escape at
	end.  Do not trim both escapes if there is no text in between.

	* gcc.dg/20000419-1.c: New test.

From-SVN: r33267
2000-04-19 20:53:06 +00:00
Jim Blandy b13fe8bfb2 Doc fix.
From-SVN: r33266
2000-04-19 19:26:17 +00:00
Jim Blandy 1ad3da1719 *** empty log message ***
From-SVN: r33265
2000-04-19 19:24:27 +00:00
Jim Blandy a1a4189dac dwarf2out.c (DWARF2_ADDR_SIZE): New macro.
* dwarf2out.c (DWARF2_ADDR_SIZE): New macro.  Use it instead
of PTR_SIZE, when appropriate.

From-SVN: r33264
2000-04-19 19:22:34 +00:00
Mark Mitchell f0e5eeebb0 system.h (ONLY_INT_FIELDS): Make sure it is defined.
* system.h (ONLY_INT_FIELDS): Make sure it is defined.
	(USE_ENUM_BITFIELDS): Fix typo.

From-SVN: r33263
2000-04-19 16:43:44 +00:00
Richard Kenner b1254b72c8 * stor-layout.c (place_field): Set rli->offset_align properly.
From-SVN: r33262
2000-04-19 12:07:51 -04:00
Tom Tromey ecb3660479 * gjavah.c (cxx_keyword_subst): Avoid potential infinite loop.
From-SVN: r33261
2000-04-19 16:05:03 +00:00
Richard Kenner f64bedbd7d conflict.c (conflict_graph_add): Pass enum type to htab_find_slot.
* gcc/conflict.c (conflict_graph_add): Pass enum type to
	htab_find_slot.
	* gcc/cpperror.c (hashtab.h): Now include.
	* gcc/cppexp.c (hashtab.h): Likewise.
	* gcc/cpplex.c (hashtab.h): Likewise.
	* gcc/cppfiles.c (hashtab.h): Likewise.
	(find_include_file, _cpp_calc_hash, cpp_read_file): Pass enum type
	to htab_find_slot_with_hash.
	* gcc/cpphash.c (hashtab.h): Now include.
	(_cpp_lookup_slot): INSERT is now enum insert_option.
	* gcc/cpphash.h (_cpp_lookup_slot): Likewise.
	* gcc/cppinit.c (hashtab.h): Include earlier.
	(initialize_builtins): Pass enum to htab_find_slot.
	* gcc/cpplib.c (hashtab.h): Now include.
	(do_define, do_undef): Pass enum type to _cpp_lookup_slot.
	(do_pragma_poison, do_assert): Likewise.
	* gcc/emit-rtl.c (gen_rtx_CONST_INT): Pass enum to
	htab_find_slot_with_hash.
	* gcc/simplify-rtx.c (cselib_lookup_mem, cselib_lookup): Likewise.
	* gcc/tree.c (type_hash_add): Likewise.
	(build1): Minor cleanup.
	* include/hashtab.h (enum insert_option): New type.
	(htab_find_slot, htab_find_slot_with_hash): Use it.
	* libiberty/hashtab.c: Various minor cleanups.
	(htab_find_slot_with_hash): INSERT is now enum insert_option.
	(htab_find_slot): Likewise.

From-SVN: r33260
2000-04-19 12:04:14 -04:00
Kaveh R. Ghazi 456f6501a9 mips.h (BITS_PER_WORD, [...]): Remove unnecessary casts.
* mips.h (BITS_PER_WORD, UNITS_PER_WORD, UNITS_PER_FPREG,
	INT_TYPE_SIZE, LONG_TYPE_SIZE, POINTER_SIZE, POINTER_BOUNDARY,
	PARM_BOUNDARY): Remove unnecessary casts.

From-SVN: r33259
2000-04-19 15:39:16 +00:00
Jan Hubicka 40d6e95668 calls.c (precompute_arguments): Remove must_preallocate and args_size calls.
* calls.c (precompute_arguments): Remove must_preallocate and
	args_size calls.
	(expand_call): Update call of precompute_arguments.

From-SVN: r33258
2000-04-19 14:41:03 +00:00
Catherine Moore 44be169cb5 check for NO_TRAMPOLINES.
From-SVN: r33257
2000-04-19 10:23:08 -04:00
Jan Hubicka c35971c82b Even more lossage, sorry.
From-SVN: r33256
2000-04-19 12:51:42 +00:00
Bryce McKinlay ef8b01f3d9 Makefile.am, [...]: irix_threads.c is now hpux_irix_threads.c.
* Makefile.am, Makefile.in: irix_threads.c is now
        hpux_irix_threads.c.
        * Makefile.orig: Updated from gc distribution Makefile.

From-SVN: r33255
2000-04-19 13:47:53 +01:00
Jan Hubicka 82ee5e63a0 Fix lossage caused by applying old version of my previous patch.
From-SVN: r33254
2000-04-19 12:45:50 +00:00
Alexandre Oliva b9297e70ac * stkalign.C: New test.
From-SVN: r33253
2000-04-19 11:17:39 +00:00
Bryce McKinlay 4824d1bb6e boehm.cc: (_Jv_MarkObj...
2000-04-19  Bryce McKinlay  <bryce@albatross.co.nz>

	* boehm.cc: (_Jv_MarkObj, _Jv_MarkArray): Cast pointers for
	MAYBE_MARK to ptr_t, for compatibility with new GC version.

From-SVN: r33252
2000-04-19 11:10:39 +01:00
Bryce McKinlay 93002327db Imported version version 5.0alpha6.
* acinclude.m4: Bump version to 5.0a6.
	* configure.in: Don't use alpha_mach_dep.s.
	* include/private/config.h, irix_threads.c gc_watcom.asm: Delete
	obsolete files.

From-SVN: r33251
2000-04-19 11:10:01 +01:00
Jan Hubicka 5e787f078d loop.c (check_insn_for_bivs, [...]): Break out from ...
* loop.c (check_insn_for_bivs, for_every_insn_in_loop,
	check_insn_for_givs): Break out from ...
	(strength_reduce) ... here; use for_every_insn_in_loop to call
	check_insn_for_givs.
	* loop.h (for_every_insn_in_loop): Declare.
	(loop_insn_callback): New type.

From-SVN: r33250
2000-04-19 10:08:22 +00:00
Greg McGary 21c076f989 20000419-1.c: New test for arg clobbering with sibling-call optimizations.
* execute/20000419-1.c: New test for arg clobbering with
	sibling-call optimizations.

From-SVN: r33249
2000-04-19 08:32:43 +00:00
Jeff Law 0a3fcd9a90 Daily bump.
From-SVN: r33248
2000-04-19 01:45:07 -06:00
Zack Weinberg 6a832d4240 cpplib.c (do_pragma_poison): Strings in the token buffer are not nul-terminated.
* cpplib.c (do_pragma_poison):  Strings in the token buffer are
	not nul-terminated.

From-SVN: r33247
2000-04-19 05:37:03 +00:00
Bryce McKinlay 56293c2be2 This commit was generated by cvs2svn to compensate for changes in r33244,
which included commits to RCS files with non-trunk default branches.

From-SVN: r33245
2000-04-19 03:29:16 +01:00
Bryce McKinlay 0eebf9e5c7 Initial revision
From-SVN: r33241
2000-04-19 03:29:14 +01:00
Alexandre Petit-Bianco 48a840d910 [multiple changes]
2000-04-18  Alexandre Petit-Bianco  <apbianco@cygnus.com>

	* parse.y (maybe_make_nested_class_name): Use `obstack_grow0'.

2000-04-14  Alexandre Petit-Bianco  <apbianco@cygnus.com>

	* parse.y (java_expand_classes): Reverse the package list once.
	(java_complete_lhs): PLUS_EXPR: don't try rhs and lhs at string
	reduction.
	(patch_binop): New temp `cn'. Call patch_string on LHS/RHS of
	the `==' and `!=' operators.

From-SVN: r33240
2000-04-18 18:53:47 -07:00
Jim Wilson 20c8a6c293 Fix problem with relocs in read-only sections for C++ code.
* config/ia64/sysv4.h (SELECT_SECTION): Use data_section if
	flag_pic and RELOC.

From-SVN: r33239
2000-04-18 16:05:34 -07:00
Zack Weinberg 86702e3134 cccp.c, [...]: Removed.
* cccp.c, cexp.y, cexp.c, cccp.1: Removed.

	* configure.in: Delete --disable-cpplib option and all
	references to cpp_main.
	* configure: Regenerate.
	* Makefile.in: Remove all references to CCCP, CCCP_OBJS,
	@cpp_main@, cccp.c, cexp.c, cexp.y, cexp.output, cexp.o,
	cccp.o, cccp, or cppmain.  Link cppmain.o straight to
	cpp$(exeext).  Add --no-headers to makeinfo command line when
	generating INSTALL.  Install and uninstall cpp.1 manpage, not
	cccp.1.
	* install.texi: Delete all references to cexp.y/cexp.c.
	Delete ancient instructions for compiling GCC on 3b1.
	* INSTALL: Regenerate.

	* cppfiles.c, cpplib.h, jump.c, protoize.c, c-lex.c,
	ch/decl.c, ch/lex.c, cp/lex.c, f/lex.c, mips/t-ecoff,
	mips/t-elf, mips/t-r3900: Remove references to cccp.c.
	* convex.h, fx80.h, m68k.h, pdp11.h, contrib/gcc_update,
	f/g77install.texi: Remove references to	cexp.c/cexp.y.
	* xm-linux.h, xm-os2.h, romp.h: Remove definition of BSTRING,
	which is no longer tested anywhere.

	* po/POTFILES.in: Remove cccp.c and cexp.c.  Comment out
	alpha/vms-tramp.asm.

From-SVN: r33238
2000-04-18 22:34:13 +00:00
Zack Weinberg d88b89e506 cppinit.c (handle_option): Don't run error message through gettext twice.
* cppinit.c (handle_option): Don't run error message through
	gettext twice.

From-SVN: r33237
2000-04-18 21:49:16 +00:00
Richard Kenner e38992e8d3 conflict.c (conflict_graph_add): Pass enum type to htab_find_slot.
* gcc/conflict.c (conflict_graph_add): Pass enum type to
	htab_find_slot.
	* gcc/cpperror.c (hashtab.h): Now include.
	* gcc/cppexp.c (hashtab.h): Likewise.
	* gcc/cpplex.c (hashtab.h): Likewise.
	* gcc/cppfiles.c (hashtab.h): Likewise.
	(find_include_file, _cpp_calc_hash, cpp_read_file): Pass enum type
	to htab_find_slot_with_hash.
	* gcc/cpphash.c (hashtab.h): Now include.
	(_cpp_lookup_slot): INSERT is now enum insert_option.
	* gcc/cpphash.h (_cpp_lookup_slot): Likewise.
	* gcc/cppinit.c (hashtab.h): Include earlier.
	(initialize_builtins): Pass enum to htab_find_slot.
	* gcc/cpplib.c (hashtab.h): Now include.
	(do_define, do_undef): Pass enum type to _cpp_lookup_slot.
	(do_pragma_poison, do_assert): Likewise.
	* gcc/emit-rtl.c (gen_rtx_CONST_INT): Pass enum to
	htab_find_slot_with_hash.
	* gcc/simplify-rtx.c (cselib_lookup_mem, cselib_lookup): Likewise.
	* gcc/tree.c (type_hash_add): Likewise.
	(build1): Minor cleanup.
	* include/hashtab.h (enum insert_option): New type.
	(htab_find_slot, htab_find_slot_with_hash): Use it.
	* libiberty/hashtab.c: Various minor cleanups.
	(htab_find_slot_with_hash): INSERT is now enum insert_option.
	(htab_find_slot): Likewise.

From-SVN: r33236
2000-04-18 16:42:00 -04:00
Mark Mitchell 0d9eb3ba29 cp-tree.h (lang_decl_flags): Remove const_memfunc and volatile_memfunc.
* cp-tree.h (lang_decl_flags): Remove const_memfunc and
	volatile_memfunc.  Add destructor_attr.  Adjust dummy.
	(DECL_DESTRUCTOR_P): Use destructor_attr.
	(DECL_CONST_MEMFUNC_P): Reimplement.
	(DECL_VOLATILE_MEMFUNC_P): Remove.
	* class.c (finish_struct_methods): Use CLASSTYPE_DESTRUCTORS.
	(overrides): Use DECL_DESTRUCTOR_P.
	(check_for_override): Likewise.
	* decl.c (start_function): Likewise.
	* decl2.c (grokfclassfn): Likewise.
	(check_classfn): Likewise.
	(grok_function_init): Likewise.

From-SVN: r33235
2000-04-18 20:21:39 +00:00
Stan Cox 616ce8db91 * gengenrtl.c (genlegend): Fix misspelling.
From-SVN: r33234
2000-04-18 20:04:26 +00:00
Robert Lipe c149cc37c8 configure.in (ENUM_BITFIELDS_ARE_UNSIGNED): Added.
* configure.in (ENUM_BITFIELDS_ARE_UNSIGNED): Added.  Check that
        bitfields of the host compiler are not signed quantities.
        * config.in: Regenerate.
        * configure: Regenerate.
        * system.h (USE_ENUM_BITFIELDS): Added.
        (ENUM_BITFIELDS): Added.
        * rtl.h (rtx_def): Members `code', `mode', now ENUM_BITFIELD.
        (SHORT_ENUM_BUG): Deleted.
        * tree.h (tree_common): Members `code', `mode', `built_in_class',
        now ENUM_BITFIELD.
        * config/i386/xm-sco.h (ONLY_INT_FIELDS): Deleted.
        (CODE_FIELD_BUG): Likewise.
        * config/m68k/x-apollo68 (CC): Deleted SHORT_ENUM_BUG.
        (OLD_CC): Likewise.
        * config/m68k/x-ccur (X_CFLAGS): Likewise.

From-SVN: r33233
2000-04-18 19:42:30 +00:00
Richard Kenner aa4661f823 ggc-common.c: Add missing blanks.
* ggc-common.c: Add missing blanks.
	* print-tree.c (print_node): Print DECL_OFFSET_ALIGN.
	* tree.h (DECL_OFFSET_ALIGN): Fix typo in comment.

From-SVN: r33232
2000-04-18 15:35:09 -04:00
Richard Kenner 0876ac08ad stmt.c (mark_case_node): New function.
* stmt.c (mark_case_node): New function.
	(mark_case_nesting): Call it.

From-SVN: r33231
2000-04-18 15:23:53 -04:00
Richard Kenner 6912b84bf1 expmed.c (emit_store_flag): If comparing two-word integer with zero, can optimize NE, EQ, GE, and LT.
* expmed.c (emit_store_flag): If comparing two-word integer
	with zero, can optimize NE, EQ, GE, and LT.

From-SVN: r33230
2000-04-18 15:14:58 -04:00
Richard Henderson 60b6e1f5d5 Fix typo.
From-SVN: r33229
2000-04-18 11:59:10 -07:00
Mark Mitchell cbccf5e803 cpplex.c (_cpp_lex_token): Don't call CPP_BUMP_LINE when the mark is active.
* cpplex.c (_cpp_lex_token): Don't call CPP_BUMP_LINE when the
	mark is active.

From-SVN: r33228
2000-04-18 18:52:16 +00:00
Mark Mitchell cd89c29664 Add expected error
From-SVN: r33227
2000-04-18 18:46:18 +00:00
Richard Kenner 749a2da1ba c-decl.c (mark_binding_level): Use 'for' instead of `while'.
* c-decl.c (mark_binding_level): Use 'for' instead of `while'.
	* conflict.c: Minor cleanups.
	* optabs.c: Add blank line
	* simplify-rtx.c:

From-SVN: r33226
2000-04-18 14:14:10 -04:00
Tom Tromey 83c1f6283e re GNATS gcj/211 (gcjh doesn't handle method names that are reserved C++ keywords)
PR gcj/211:
	* gjavah.c (utf8_cmp): Changed return value.
	(cxx_keyword_subst): Handle all C++ keywords.  Allocate new return
	result.
	(cxx_keywords): New global.
	(get_field_name): Handle new result of cxx_keyword_subst.
	(print_method_info): Likewise.

From-SVN: r33225
2000-04-18 16:13:16 +00:00
Jeff Law 44c0139162 Daily bump.
From-SVN: r33224
2000-04-18 01:45:07 -06:00
Zack Weinberg 9cc6e05fdf cppexp.c (lex): Don't assume tokens are NUL terminated.
* cppexp.c (lex): Don't assume tokens are NUL terminated.
	* cpplib.c (do_include, do_import, do_include_next,
	read_line_number, detect_if_not_defined): Likewise.
	* cpphash.c (collect_expansion): Likewise.
	(special_symbol, _cpp_macroexpand): Check return from
	cpp_file_buffer.
	* cpphash.h (CPP_NUL_TERMINATE, CPP_NUL_TERMINATE_Q): Delete
	macros.  Delete all uses.

	* gcc.dg/cpp-mi.c: Add two more test cases.
	* gcc.dg/cpp-mind.h, gcc.dg/cpp-mindp.h: New files.

From-SVN: r33223
2000-04-18 06:43:41 +00:00
Richard Henderson d1bfc5ad46 bb-reorder.c (fixup_reorder_chain): Don't look up new block again.
* bb-reorder.c (fixup_reorder_chain): Don't look up new block again.
        (reorder_basic_blocks): If no epilogue in rtl, force last block last.

From-SVN: r33221
2000-04-17 18:32:43 -07:00
Mark Mitchell 009e98457a decl2.c (grokfield): Issue error on illegal data member declaration.
* decl2.c (grokfield): Issue error on illegal data member
	declaration.

From-SVN: r33220
2000-04-18 01:30:21 +00:00