Commit Graph

30491 Commits

Author SHA1 Message Date
Jeff Law
597c1b349f Daily bump.
From-SVN: r36402
2000-09-14 01:45:08 -06:00
John Wehle
b24ea07766 alias.c (memrefs_conflict_p): An ADDRESSOF doesn't conflict with frame_pointer_rtx.
* alias.c (memrefs_conflict_p): An ADDRESSOF doesn't
	conflict with frame_pointer_rtx.

From-SVN: r36401
2000-09-14 04:47:48 +00:00
Kazu Hirata
fd5d5b07b7 loop.c: Fix formatting.
* loop.c: Fix formatting.
        * loop.h: Likewise.

From-SVN: r36400
2000-09-13 19:20:34 -06:00
J. David Anglin
f903ebb1d5 * init.c (begin_init_stmts): Don't use // comments.
From-SVN: r36399
2000-09-13 19:03:24 -06:00
Hans-Peter Nilsson
2979107801 demangle-expected: Add two tests for anonymous namespaces.
* testsuite/demangle-expected: Add two tests for anonymous
	namespaces.
	* cplus-dem.c (gnu_special): Handle anonymous namespaces.

From-SVN: r36398
2000-09-13 23:09:30 +00:00
Alexandre Oliva
9a16ff9362 * g++.other/inline13.C: New test.
From-SVN: r36397
2000-09-13 22:53:08 +00:00
Richard Henderson
26102535d4 ia64.md (divsf3): New.
* config/ia64/ia64.md (divsf3): New.
        (divsf3_internal_lat, divsf3_internal_thr): New.
        (divdf3, divdf3_internal_lat, divdf3_internal_thr): New.
        (divtf3, divtf3_internal_lat, divtf3_internal_thr): New.
        (adddf3_trunc, subdf3_trunc, muldf3_trunc): New.
        (madddf4_trunc, msubdf4_trunc, nmuldf3_trunc): New.
        (nmadddf4_alts, nmadddf4_trunc): New.
        (addtf3_truncsf, addtf3_truncdf, subtf3_truncsf): New.
        (subtf3_truncdf, multf3_truncsf, multf3_truncdf): New.
        (multf3_truncsf_alts, multf3_truncdf_alts): New.
        (maddtf4_truncsf, maddtf4_truncdf, maddtf4_alts_truncdf): New.
        (msubtf4_truncsf, msubtf4_truncdf, nmultf3_truncsf): New.
        (nmultf3_truncdf, nmaddtf4_truncsf, nmaddtf4_truncdf): New.
        (nmaddtf4_truncdf_alts): New.
        (recip_approx): Don't predicate.

From-SVN: r36396
2000-09-13 14:30:55 -07:00
Richard Henderson
938566fbe5 * config/ia64/lib1funcs.asm (__divsf3): Protect fnorm.s with p6.
From-SVN: r36395
2000-09-13 14:21:33 -07:00
Stephane Carrez
c349e40b5b flags.h (flag_dump_rtl_in_asm): Declare.
* flags.h (flag_dump_rtl_in_asm): Declare.
	* toplev.c (flag_dump_rtl_in_asm): Define.
	(decode_d_option): Set flag_dump_rtl_in_asm and flag_print_asm_name
	if -dP is specified.
	* rtl.h (print_rtx_head): Declare.
	* print-rtl.c (print_rtx_head): Define.
	(print_rtx): Print the string pointed to by print_rtx_head
	at beginning of each dump line.
	(print_rtl): Likewise.
	(print_rtl_single): Likewise.
	* final.c (final_scan_insn): Dump the insn in the assembly
	file for debugging.
	* gcc.1: Document -dP option.
	* invoke.texi (Debugging Options): Likewise.

From-SVN: r36394
2000-09-13 21:34:05 +02:00
Stephane Carrez
2856c3e3f5 Document 68hc11 & 68hc12 port
From-SVN: r36393
2000-09-13 21:23:35 +02:00
Alexandre Oliva
58d2986d00 configure.in (LIBDATASTARTSPEC): Use `%s' to search for libgcjdata.a.
2000-09-13  Alexandre Oliva  <aoliva@redhat.com>

	* configure.in (LIBDATASTARTSPEC): Use `%s' to search for
	libgcjdata.a.
	(GCJ): Support single-tree builds.  Add -B`pwd`/ and -I$srcdir.
	* acinclude.m4: Arrange for automake to not bring in a new
	libtool.m4 for LT_AC_PROG_GCJ.  AC_SUBST GCJ.
	* Makefile.am: Leave it up to automake to subst GCJ.
	* aclocal.m4, configure, Makefile.in: Rebuilt.

From-SVN: r36392
2000-09-13 19:01:20 +00:00
Tom Tromey
96fa18eb49 natArray.cc (BooleanClass): New define.
* java/lang/reflect/natArray.cc (BooleanClass): New define.
	(get): Ensure Boolean class is initialized.
	* java/lang/reflect/natField.cc (BooleanClass): New define.
	(get): Ensure Boolean class is initialized.

From-SVN: r36391
2000-09-13 18:15:42 +00:00
Denis Chertykov
1ca04dc8b6 avr.h (ASSEMBLER_DIALECT): New macro declared.
* config/avr/avr.h (ASSEMBLER_DIALECT): New macro declared.
	* config/avr/avr.md (*movstrqi_insn): Cleanup output template.
	(*clrstrqi): Likewise.
	(xorhi3,xorsi3,absqi2): Likewise.
	(one_cmplhi2,one_cmplsi2): Likewise.
	(addsi3): Two stupid constraint alternatives removed.
	(extendhisi2): Use `movw' for enhanced avr cores.
	(zero_extendhisi2): Likewise.

From-SVN: r36390
2000-09-13 22:13:49 +04:00
Jeffrey A Law
18a53ffedb configure.in: Do not build byacc for hppa64.
* configure.in: Do not build byacc for hppa64.  Provide paths to the
        X11 libraries for hppa64.

From-SVN: r36389
2000-09-13 11:11:04 -06:00
Tom Tromey
6b8a24cd22 jcf-parse.c: Include <locale.h>.
* jcf-parse.c: Include <locale.h>.
	* jv-scan.c: Include <locale.h>.

From-SVN: r36388
2000-09-13 17:09:36 +00:00
Jeff Law
61023b2bbe Daily bump.
From-SVN: r36387
2000-09-13 01:45:08 -06:00
Gerald Pfeifer
2fd729a25c * POTFILES.in: Remove objc/objc-parse.c.
From-SVN: r36386
2000-09-13 07:09:48 +00:00
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