Commit Graph

30474 Commits

Author SHA1 Message Date
Bryce McKinlay
0f94c029e9 String.java (CASE_INSENSITIVE_ORDER): New static field.
2000-09-13  Bryce McKinlay  <bryce@albatross.co.nz>

	* java/lang/String.java (CASE_INSENSITIVE_ORDER): New static field.
	Initialize with anonymous class.
	(compareToIgnoreCase): New method.

	* java/lang/ThreadGroup.java (had_uncaught_exception): New field.
	(uncaughtException): Set had_uncaught_exception.
	* prims.cc (JvRunMain): Check value of had_uncaught_exception and
	exit with error status if set.
	(_Jv_RunMain): Ditto.

From-SVN: r36385
2000-09-13 07:36:25 +01:00
John Wehle
bb07060a6a alias.c (find_base_term): Use frame_pointer_rtx when handling an ADDRESSOF.
* alias.c (find_base_term): Use frame_pointer_rtx
	when handling an ADDRESSOF.

	* cse.c (canon_hash): Handle USE of BLKmode memory.
	(cse_insn): Outgoing arguments for a libcall don't
	affect any recorded expressions.

From-SVN: r36384
2000-09-13 06:27:16 +00:00
Tom Tromey
d21445e714 configure, config.in: Rebuilt.
* configure, config.in: Rebuilt.
	* configure.in: Check for iconv, nl_langinfo, langinfo.h.

From-SVN: r36383
2000-09-13 01:33:13 +00:00
Jason Merrill
f2ae0c45c0 decl.c (maybe_deduce_size_from_array_init): Set do_default for all non-extern arrays.
* decl.c (maybe_deduce_size_from_array_init): Set do_default for
        all non-extern arrays.

        * decl.c (grokdeclarator): Complain about 'friend T' for implicit
        typenames, too.  Downgrade complaint to pedwarn.
        (xref_tag): Warn about surprising behavior of 'friend struct T'.
        * decl2.c (handle_class_head): Generate a TYPENAME_TYPE for
        'class This::Inherited'.

From-SVN: r36382
2000-09-12 21:02:52 -04:00
Jason Merrill
634dd0ca77 new
From-SVN: r36381
2000-09-12 20:59:16 -04:00
Jakub Jelinek
5c80f6e6b1 c-lex.c (lex_string): Use charwidth to compute bytemask.
* c-lex.c (lex_string): Use charwidth to compute bytemask.
 	* expr.c (expand_expr): Don't optimize constant array references
 	initialized with wide string constants.

From-SVN: r36380
2000-09-12 23:45:51 +00:00
Jeff Law
8cfccbf355 Correct last entry.
From-SVN: r36379
2000-09-12 17:24:42 -06:00
Tom Tromey
86e4b1e4fa expr.c (pop_type_0): Return `Object' if trying to merge two interface types.
* expr.c (pop_type_0): Return `Object' if trying to merge two
	interface types.
	* verify.c (merge_types): Don't return `TYPE_UNKNOWN' for
	interface types; `Object' is always a valid supertype.

From-SVN: r36378
2000-09-12 22:31:00 +00:00
Tom Tromey
d19cbcb5e3 re GNATS gcj/33 (gcj mangles composed characters)
Fix for PR gcj/33:
	* jv-scan.c (help): Document --encoding.
	(options): Added `encoding' entry.
	(OPT_ENCODING): New define.
	(main): Handle --encoding.
	Include <langinfo.h> if nl_langinfo exists.
	* lang-options.h: Document --classpath, --CLASSPATH, --main, and
	--encoding.
	* jcf-parse.c Include <langinfo.h> if we have nl_langinfo.
	(parse_source_file): Correctly call java_init_lex.  Added `finput'
	argument.  Use nl_langinfo to determine default encoding.
	* java-tree.h (current_encoding): Declare.
	* parse.y (java_parser_context_restore_global): Don't restore
	`finput'.
	(java_parser_context_save_global): Don't set `finput' field.
	(java_pop_parser_context): Don't restore `finput'.  Free old lexer
	if required.
	* lang.c (current_encoding): New global.
	(lang_decode_option): Recognize `-fencoding='.
	(finish_parse): Don't close finput.
	* parse.h (struct parser_ctxt): Removed `finput' and
	`unget_utf8_value' fields.  Added `lexer' field.
	(java_init_lex): Fixed declaration.
	* lex.c (java_new_lexer): New function.
	(java_destroy_lexer): Likewise.
	(java_read_char): Added `lex' argument.  Handle iconv case.
	(java_read_unicode): Added `lex' argument.  Count backslashes in
	lexer structure.
	(java_init_lex): Added `finput' and `encoding' arguments.  Set
	`lexer' field in ctxp.
	(BAD_UTF8_VALUE): Removed.
	(java_lex): Handle seeing UEOF in the middle of a string literal.
	* lex.h: Include <iconv.h> if HAVE_ICONV defined.
	(java_lexer): New structure.
	(UNGETC): Removed.
	(GETC): Removed.
	(DEFAULT_ENCODING): New define.
	(java_destroy_lexer): Declare.

From-SVN: r36377
2000-09-12 22:23:59 +00:00
Tom Tromey
ee17a29049 re GNATS gcj/343 (can't cast array to serializable)
Fix for PR gcj/343:
	* lex.c (java_init_lex): Initialize java_io_serializable.
	* parse.y (java_io_serializable): New global.
	(valid_ref_assignconv_cast_p): An array can be cast to
	serializable.

From-SVN: r36376
2000-09-12 22:09:36 +00:00
Michael Hayes
635a2a9071 * loop.c (note_set_pseudo_multiple_uses): Correct.
From-SVN: r36375
2000-09-12 19:39:07 +00:00
William Cohen
15f41525ab Added wcohen@redhat to list of maintainers.
From-SVN: r36374
2000-09-12 19:10:12 +00:00
Jim Wilson
cc2999aaf6 Fix ia64-linux glibc intl/loadmsgcat.c miscompilation.
* ifcvt.c (noce_process_if_block): If A and B are the same, and no
	else block, and X has side-effects, then fail.

From-SVN: r36373
2000-09-12 12:06:05 -07:00
Benjamin Kosnik
3e80ddc742 global_templates.cc (test01): Add negative tests for use_facet.
2000-09-12  Benjamin Kosnik  <bkoz@purist.soma.redhat.com>

	* testsuite/22_locale/global_templates.cc (test01): Add negative
	tests for use_facet.

	* bits/localefwd.h (locale::operator()): Minor tweaks.
	* bits/locale_facets.tcc (locale::operator()): Same.
	* testsuite/22_locale/operators.cc: New file.

	* testsuite/22_locale/facet.cc (output_iterator): Remove
	gnu_input_iterator, gnu_output_iterator.

From-SVN: r36372
2000-09-12 18:50:16 +00:00
Greg McGary
a0b6cdee33 * config/mips/mips-protos.h
(trap_cmp_op, mips_gen_conditional_trap): New func decls.
	* config/mips/mips.h (ISA_HAS_COND_TRAP): New macro.
	(PREDICATE_CODES): Add "trap_cmp_op".
	* config/mips/mips.c
	(trap_cmp_op, mips_gen_conditional_trap): New functions.
	* config/mips/mips.md (trap, conditional_trap): New patterns.

From-SVN: r36371
2000-09-12 18:40:58 +00:00
Bernd Schmidt
24948cccee Don't try to make autoincs with the stack pointer
From-SVN: r36370
2000-09-12 17:54:19 +00:00
Andreas Jaeger
a210651e53 widechar-2.c: New test for wchar_t constant by Ulrich Drepper <drepper@redhat.com>.
* gcc.c-torture/execute/widechar-2.c: New test for wchar_t
	constant by Ulrich Drepper <drepper@redhat.com>.

From-SVN: r36369
2000-09-12 19:40:22 +02:00
J"orn Rennecke
8b267da080 * gcc.c-torture/compile/981006-1.x: No -fpic for sh-coff / sh-hms.
From-SVN: r36368
2000-09-12 18:37:24 +01:00
Kazu Hirata
7a403706e4 * haifa-sched.c: Fix formatting.
From-SVN: r36367
2000-09-12 10:19:18 -06:00
Kaveh Ghazi
2ee7b20c81 Delete diagnostic output
From-SVN: r36366
2000-09-12 16:14:22 +00:00
Mark Mitchell
71ad4a16b6 decl.c (finish_case_label): Given the LABEL_DECL a DECL_CONTEXT.
* decl.c (finish_case_label): Given the LABEL_DECL a
	DECL_CONTEXT.

From-SVN: r36365
2000-09-12 15:36:23 +00:00
Kazu Hirata
c9541287b7 * genattrtab.c: Fix formatting.
From-SVN: r36364
2000-09-12 09:36:21 -06:00
Kaveh R. Ghazi
3ff5f682dc builtins.c (built_in_decls): New array.
* builtins.c (built_in_decls): New array.
	(expand_builtin_fputs): New function.
	(expand_builtin): Handle BUILT_IN_FPUTC and BUILT_IN_FPUTS.

	* builtins.def (BUILT_IN_FPUTC, BUILT_IN_FPUTS): New members.

	* c-common.c (c_common_nodes_and_builtins): Handle fputc/fputs.

	* tree.h (built_in_decls): New array.

From-SVN: r36363
2000-09-12 15:10:50 +00:00
Jeffrey A Law
208b0ab1c8 convex.md: Use "+" instead of "=" for outputs wrapped in a STRICT_LOW_PART.
* convex.md: Use "+" instead of "=" for outputs wrapped in a
        STRICT_LOW_PART.
        * i370.md, i386.md, ns32k.md, sh.md, vax.md: Likewise.

From-SVN: r36362
2000-09-12 08:58:47 -06:00
Kazu Hirata
a86dc4a3fc * unroll.c: Fix formatting.
From-SVN: r36361
2000-09-12 08:43:25 -06:00
Mark Mitchell
57939159aa c-common.h (genrtl_clear_out_block): Remove.
* c-common.h (genrtl_clear_out_block): Remove.
	* c-semantics.c (genrtl_clear_out_block): Remove.
	(genrtl_while_stmt): Don't call it.
	(genrtl_for_stmt): Likewise.

From-SVN: r36360
2000-09-12 14:29:45 +00:00
Bruce Korb
3af556f74d code cleanups
From-SVN: r36359
2000-09-12 14:28:55 +00:00
Kaveh R. Ghazi
32892c52e4 c-typeck.c (process_init_element): Avoid union init warnings on floating point zero.
* c-typeck.c (process_init_element): Avoid union init warnings on
	floating point zero.  Don't crash on unions containing structs.

testsuite:
	* gcc.dg/wtr-union-init-2.c, gcc.dg/wtr-union-init-3.c: New tests.

From-SVN: r36358
2000-09-12 14:22:45 +00:00
Alexandre Oliva
ae0a1c23b7 sh.h (PREDICATE_CODES): Add CONST_DOUBLE to general_movsrc_operand...
* config/sh/sh.h (PREDICATE_CODES): Add CONST_DOUBLE to
general_movsrc_operand, and remove CONST_INT from
general_movdst_operand.

From-SVN: r36357
2000-09-12 12:38:51 +00:00
Gabriel Dos Reis
c3e76028d0 error.c (TFF_PLAIN_IDENTIFIER, [...]): New macros.
* error.c (TFF_PLAIN_IDENTIFIER, TFF_NAMESPACE_SCOPE,
	TFF_CLASS_SCOPE, TFF_CHASE_NAMESPACE_ALIAS, TFF_CHASE_TYPDEF,
	TFF_DECL_SPECIFIERS, TFF_CLASS_KEY_OR_ENUM, TFF_RETURN_TYPE,
	TFF_FUNCTION_DEFAULT_ARGUMENTS, TFF_EXCEPTION_SPECIFICATION,
	TFF_TEMPLATE_HEADER, TFF_TEMPLATE_DEFAULT_ARGUMENTS, TFF_SCOPE):
	New macros.
	(sorry_for_unsupported_tree, print_scope_operator,
	print_left_paren, print_right_paren, print_left_bracket,
	print_right_bracket, print_whitespace): Likewise.
	(aggr_variety): Rename to class_key_or_enum.
	(print_type): Rename to print_type_id.
	(print_type_specifier_seq, print_simple_type_specifier,
	print_elaborated_type_specifier,
	print_rest_of_abstract_declarator,
	print_parameter_declaration_clause, print_exception_specification,
	print_nested_name_specifier, print_template_id,
	typedef_original_name,  print_template_argument_list_start,
	print_template_argument_list_end): New functions.

From-SVN: r36356
2000-09-12 09:10:28 +00:00
Gabriel Dos Reis
eb50138bec * ir.texi: Add more documentation.
From-SVN: r36355
2000-09-12 08:54:21 +00:00
Bernd Schmidt
f1c1dfc389 Fix hard reg cost calculations in CSE; some minor cleanups
From-SVN: r36354
2000-09-12 08:39:36 +00:00
Jeff Law
a6c8d25340 Daily bump.
From-SVN: r36353
2000-09-12 01:45:09 -06:00
Philipp Thomas
81ee06d1a2 POTFILES.in: Remove yet more files caught by the new checking target.
2000-09-12  Philipp Thomas  <pthomas@suse.de>

	* POTFILES.in: Remove yet more files caught by the new
	checking target.
	* gcc.pot: Regenerated.
	* cat-id-tbl.c: Likewise.

From-SVN: r36352
2000-09-12 07:28:39 +00:00
Alexandre Oliva
b4f3dc58b1 * configure: Rebuilt with new ../libtool.m4.
From-SVN: r36351
2000-09-12 06:51:02 +00:00
Mark Mitchell
f444e36b2d c-common.h (genrtl_clear_out_block): Remove.
* c-common.h (genrtl_clear_out_block): Remove.
	* c-semantics.c (genrtl_clear_out_block): Remove.
	(genrtl_while_stmt): Don't call it.
	(genrtl_for_stmt): Likewise.

	* cp-tree.h (struct saved_scope): Remove x_function_parms.
	(current_function_parms): Don't define.
	(struct cp_language_function): Remove parms_stored.
	(current_function_just_assigned_this): Don't define.
	(current_function_parms_stored): Likewise.
	(static_ctors): Declare.
	(static_dtors): Likewise.
	(SF_EXPAND): Don't define.
	(expand_start_early_try_stmts): Remove declaration.
	(store_parm_decls): Likewise.
	* decl.c (static_ctors): Don't declare.
	(static_dtors): Likewise.
	(struct binding_level): Remove this_block.
	(poplevel): Remove dead code.
	(set_block): Likewise.
	(mark_binding_level): Don't mark this_block.
	(mark_saved_scope): Don't mark x_function_parms.
	(init_decl_processing): Don't add current_function_parms as a GC
	root.
	(check_function_type): Change prototype.
	(start_function): Remove RTL-generation code.
	(expand_start_early_try_stmts): Remove.
	(store_parm_decls): Give it internal linkage.  Remove
	RTL-generation code.
	(finish_function): Remove RTL-generation code.
	* decl2.c (static_ctors): Fix formatting.
	(static_dtors): Likewise.
	* method.c (use_thunk): Don't call store_parm_decls.
	(synthesize_method): Likewise.
	* optimize.c (maybe_clone_body): Likewise.
	* parse.y (fn.def2): Likewise.
	(.set_base_init): Likewise.
	(nodecls): Likewise.
	* pt.c (instantiate_decl): Likewise.
	* rtti.c (synthesize_tinfo_fn): Likewise.
	* semantics.c (genrtl_try_block): Simplify.
	(expand_body): Use genrtl_start_function and
	genrtl_finish_function.
	(genrtl_start_function): New function.
	(genrtl_finish_function): Likewise.

From-SVN: r36350
2000-09-12 06:46:00 +00:00
Philipp Thomas
484d9e58a4 POTFILES.in: Remove c-gperf.h, c-iterate.c, cp/hash.h, cp/input.c, c-parse.h and cppulp.c.
2000-09-12  Philipp Thomas  <pthomas@suse.de>

	* POTFILES.in: Remove c-gperf.h, c-iterate.c,
	cp/hash.h, cp/input.c, c-parse.h and cppulp.c.

From-SVN: r36349
2000-09-12 05:33:33 +00:00
Philipp Thomas
847f42b1d7 Makefile.in.in (stamp-check-pot): Don't use $@ in rule.
2000-09-12  Philipp Thomas  <pthomas@suse.de>

	* Makefile.in.in (stamp-check-pot): Don't use $@ in rule.

From-SVN: r36348
2000-09-12 04:10:56 +00:00
Zack Weinberg
a58d32c208 cppfiles.c: Move all default-#defines to top of file.
* cppfiles.c: Move all default-#defines to top of file.
	(open_include_file): Replace by lookup_include_file.
	(read_with_read, read_file): Merged into read_include_file.
	(stack_include_file, purge_cache): New functions.
	(close_cached_fd): Delete.
	(lookup_include_file, read_include_file, _cpp_pop_file_buffer):
	Cache the in-memory buffer, not the file descriptor.

	* cpphash.h (struct include_file): Add buffer, st, refcnt,
	mapped fields.
	(xcnew): New utility macro.
	(DO_NOT_REREAD, NEVER_REREAD): Move up by struct include_file.
	* cpplib.h (struct cpp_buffer): Remove mapped field.

	* cpplex.c (parse_string): Accept backslash space newline as a
	line continuation.
	(lex_line): Likewise.
	(_cpp_get_token): Remove hard limit on macro nesting.

testsuite:
	* gcc.dg/cpp/backslash.c: New test.

From-SVN: r36347
2000-09-12 03:42:30 +00:00
Philipp Thomas
4ba01ed2ae Makefile.in.in (stamp-check-pot): New target used for checking POTFILES.
2000-09-12  Philipp Thomas  <pthomas@suse.de>

	* Makefile.in.in (stamp-check-pot): New target used for
	checking POTFILES.
	* gcc.pot: Regenerated.
	* cat-tbl-id.c: Likewise.

From-SVN: r36346
2000-09-12 02:40:16 +00:00
Philipp Thomas
bfa29b637c aclocal.m4 (AM_WITH_NLS): Don't force use of included gettext.
2000-09-12  Philipp Thomas  <pthomas@suse.de>

	* aclocal.m4 (AM_WITH_NLS): Don't force use of included gettext.
	* configure: Rebuilt.

From-SVN: r36345
2000-09-12 02:07:00 +00:00
Benjamin Kosnik
5219f16233 acinclude.m4 (GLIBCPP_CHECK_GNU_MAKE): Remove test != "0".
2000-09-11  Benjamin Kosnik  <bkoz@purist.soma.redhat.com>

	* acinclude.m4 (GLIBCPP_CHECK_GNU_MAKE): Remove test != "0".
	* aclocal.m4: Regenerate.
	* configure: Regenerate.

	* bits/c++config (__GLIBCPP__): Update, in the hopes of making a
	snapshot release soon.
	(_GNU_SOURCE): Define this in the header files, as ISO C99 support
	is pretty much assumed.

	* testsuite/22_locale/global_templates.cc: New file. Add tests for
	use_facet and has_facet.

	* bits/codecvt.h (codecvt<_InT, _ExT, __enc_traits>::do_out):
	Modify/correct iconv signatures for glibc2.2.

From-SVN: r36344
2000-09-12 01:06:03 +00:00
Michael Hayes
97ca931623 flow.c (split_block): Fix update of registers live at end of split block.
* flow.c (split_block): Fix update of registers live at
	end of split block.

From-SVN: r36343
2000-09-11 23:59:41 +00:00
Jan Hubicka
d90ffc8d2c i386.md (add?i_3, add?i_5): New.
* i386.md (add?i_3, add?i_5): New.
	(add?i_4): Rename from add?i_3;  Fix compare pattern.
	(sub?i_3, xor?i_3, ior?i_3): New.

	* genrecog.c (write_tree): Output code to clear insn_extract cache.
	* genattrtab.c (write_attr_case): Gen call to extract_insn_cache
	instead of extract_insn and extract_constrain_insn_cache instead of
	extract_insn and constrain_operands.
	* recog.c (extract_insn_cached, extract_constrain_insn_cached):
	New functions.
	(extract_insn): Clear which_alternative.
	(constrain_operands): Set which_alternative to -1 when failed.
	* recog.h (extract_constrain_insn_cached, extract_insn_cached):
	Declare.

From-SVN: r36342
2000-09-11 23:54:11 +00:00
Tom Tromey
14203c9cac Field.java (toString): Don't rely on Class.toString.
* java/lang/reflect/Field.java (toString): Don't rely on
	Class.toString.

From-SVN: r36341
2000-09-11 22:49:29 +00:00
Robert Lipe
c82fd9b858 Fixed to return 0 on success.
From-SVN: r36339
2000-09-11 22:47:05 +00:00
Kazu Hirata
f5d927c07f * final.c: Fix formatting.
From-SVN: r36338
2000-09-11 16:00:04 -06:00
Matthew Hiller
4843bda91e h8300.md (movstrictqi): Changed constraint modifier on operand 0 to '+'.
* config/h8300/h8300.md (movstrictqi): Changed constraint modifier
        on operand 0 to '+'.
        (movstricthi): Likewise.

From-SVN: r36337
2000-09-11 15:53:45 -06:00
Michael Hayes
ed5bb68db3 loop.h (LOOP_IVS): New macro.
* loop.h (LOOP_IVS): New macro.
	(REG_IV_TYPE, REG_IV_INFO): Add ivs argument.
	(struct loop_ivs): New.
	(struct loop_info): Add ivs field.
	(reg_iv_type, reg_iv_info): Delete prototype.
	(reg_biv_class, loop_iv_list): Likewise.
	* loop.c (record_biv, find_life_end): Pass loop argument.
	(reg_iv_type): Remove global array and use
	field in loop_regs structure within loop_ivs structure.
	(reg_iv_info, reg_biv_class, loop_iv_list): Likewise.
	(first_increment_giv, last_increment_giv): Use entry in
	loop_ivs structure.
	(record_initial): Pass ivs pointer.
	* unroll.c (copy_loop_body, remap_split_bivs): Add loop argument.

From-SVN: r36336
2000-09-11 21:48:46 +00:00
Michael Hayes
1ecd860b28 loop.h (LOOP_REGS): New macro.
* loop.h (LOOP_REGS): New macro.
	(struct loop_regs): New.
	(struct loop_info): Add regs field.
	* loop.c (set_in_loop): Remove global array and store
	in loop_regs structure as part of loop_info structure.
	(n_times_set, may_not_optimize): Likewise.
	(reg_single_usage, moved_once): Likewise.
	(count_one_set): Add regs argument.
	(combine_movables, rtx_equal_for_loop_p, combine_givs): Likewise.
	(set_pseudo_multiple_uses): Pass regs pointer.

From-SVN: r36335
2000-09-11 21:46:35 +00:00