Commit Graph

26456 Commits

Author SHA1 Message Date
J"orn Rennecke afbc290536 Fix breakage from 6th Feb thread_prologue_and_epilogue_insns change:
* sh-protos.h (sh_need_epilogue): Declare.
	* sh.c (sh_need_epilogue_known): New static variable.
	(sh_need_epilogue): New function.
	(function_epilogue): Clear need_epilogue_known.
	* sh.md (return): Split into expander / insn pattern.
	Make the expander conditional on ! sh_need_epilogue ().

From-SVN: r32136
2000-02-24 20:09:30 +00:00
Nathan Sidwell 36c265b175 machmode.h (get_mode_alignment): Declare.
* machmode.h (get_mode_alignment): Declare.
	(GET_MODE_ALIGNMENT): Call it.
	* stor-layout.c (get_mode_alignment): New function. Make
	sure alignment is always power of 2.

From-SVN: r32134
2000-02-24 10:07:32 +00:00
Nathan Sidwell da3a471976 * g++.old-deja/g++.other/sizeof5.C: New test.
From-SVN: r32133
2000-02-24 09:48:41 +00:00
Nathan Sidwell 41cbc04c44 decl.c (grokdeclarator): Diagnose qualifiers on non-member function type, rather than ICE.
* decl.c (grokdeclarator): Diagnose qualifiers on non-member
	function type, rather than ICE.

From-SVN: r32132
2000-02-24 09:48:18 +00:00
Jeff Law ee41918880 Daily bump.
From-SVN: r32131
2000-02-24 01:45:07 -07:00
Zack Weinberg f32d49a82e i386.h: Remove useless definition of "I386" and misleading comment above it.
* i386.h: Remove useless definition of "I386" and misleading
	comment above it.

From-SVN: r32130
2000-02-24 04:59:34 +00:00
Zack Weinberg 4e23f9e3a8 This has worked for the past three months
From-SVN: r32129
2000-02-24 04:35:59 +00:00
Zack Weinberg 23dfa477ce tree.h (TREE_SET_PERMANENT): New macro.
* tree.h (TREE_SET_PERMANENT): New macro.  Document conditions
	under which TREE_PERMANENT will be set.
	* tree.c (make_node, copy_node, make_tree_vec, tree_cons,
	build1): Use TREE_SET_PERMANENT.
	* print-tree.c (print_node): Don't report value of
	TREE_PERMANENT if ggc_p is true.

	* c-common.c (c_get_alias_set): Don't use TREE_PERMANENT to
	decide whether to give a type a new alias set.
	* objc/objc-act.c (build_objc_string_object): Never copy the string.
	* tree.c (make_node): Set DECL_IN_SYSTEM_HEADER irrespective
	of value of 'obstack'.

	* f/com.c (ffecom_type_permanent_copy_): Delete unused function.
        (finish_decl): Don't change TREE_PERMANENT (DECL_INITIAL (decl)).

From-SVN: r32128
2000-02-24 04:04:06 +00:00
Franz Sirl 1e59bcc307 * execute/va-arg-13.c: New test.
From-SVN: r32127
2000-02-23 23:16:36 +00:00
Donald Lindsay 8706d596ac New test. Approved by rth.
From-SVN: r32126
2000-02-23 22:17:04 +00:00
Michael Hayes 41387ffdc6 * config/c4x/c4x.c (c4x_process_after_reload): Split all insns.
From-SVN: r32125
2000-02-23 21:03:21 +00:00
Tom Tromey c45c5e092d gjavah.c (print_name): In JNI case, correctly quote string.
* gjavah.c (print_name): In JNI case, correctly quote string.
	(print_method_info): Don't handle overrides in JNI mode.

From-SVN: r32124
2000-02-23 20:46:18 +00:00
Jason Merrill 9fc336c7e6 decl.c (grokdeclarator): Call decl_type_access_control.
* decl.c (grokdeclarator): Call decl_type_access_control.
        * parse.y (parse_end_decl): Don't call decl_type_access_control if
        decl is null.

From-SVN: r32123
2000-02-23 15:25:49 -05:00
Jason Merrill 2b4c135643 new
From-SVN: r32122
2000-02-23 15:23:15 -05:00
Alexandre Oliva 525bc95d4a cpplib.h (enum cpp_token): Added CPP_WCHAR and CPP_WSTRING.
* cpplib.h (enum cpp_token): Added CPP_WCHAR and CPP_WSTRING.
* cpplib.c (cpp_get_token): Produce them.
* cppexp.c (cpp_lex): Handle them.

From-SVN: r32121
2000-02-23 19:21:07 +00:00
Nick Clifton 1cb8d58acc (arm_comp_type_attributes): Simply and comment tests on type attributes.
From-SVN: r32120
2000-02-23 19:08:51 +00:00
Nick Clifton 211365c22c oops - fixed typo in previous delta
From-SVN: r32119
2000-02-23 18:30:27 +00:00
Nick Clifton bd7fc26f04 Fix arm_comp_type_attributes
From-SVN: r32118
2000-02-23 18:29:25 +00:00
Nathan Sidwell 8bacb3d967 * execute/20000223-1.c: New test.
From-SVN: r32117
2000-02-23 18:14:28 +00:00
Nathan Sidwell b23875c9b5 * g++.old-deja/g++.pt/memtemp79.C: Fixed. Remove XFAIL.
From-SVN: r32116
2000-02-23 17:27:07 +00:00
Nathan Sidwell e867a17950 * decl.c (decls_match): Remove obsolete static member nadgering.
From-SVN: r32115
2000-02-23 17:25:29 +00:00
J"orn Rennecke 2148624a44 final.c (shorten_branches): Make value passed to LABEL_ALIGN conform to documentation.
* final.c (shorten_branches): Make value passed to LABEL_ALIGN
	conform to documentation.
	* sh.h (LABEL_ALIGN): If aligning loops, call sh_label_align
	to check for special cases.
	* sh-protos.h (sh_label_align): Declare.
	* sh.c (sh_label_align): Define.

From-SVN: r32114
2000-02-23 17:18:15 +00:00
Andrew Haley 699729979c mips.h (GAS_ASM_SPEC): Pass -mgp32/-mgp64 to gas.
2000-02-22  Andrew Haley  <aph@cygnus.com>

	* config/mips/mips.h (GAS_ASM_SPEC): Pass -mgp32/-mgp64 to gas.
	(SIZE_TYPE): Is 32 bits when using -mgp32.
	(PTRDIFF_TYPE): Ditto.

From-SVN: r32113
2000-02-23 14:37:05 +00:00
Richard Kenner 4eda9c6582 * diagnostic.c (init_output_buffer): Handle case of null PREFIX.
From-SVN: r32112
2000-02-23 07:17:57 -05:00
Jeff Law f871e8996d Daily bump.
From-SVN: r32111
2000-02-23 01:45:07 -07:00
Zack Weinberg 6fc605d843 Makefile.in: Add -DIN_TARGET_LIBS to ALL_CFLAGS.
* libobjc/Makefile.in: Add -DIN_TARGET_LIBS to ALL_CFLAGS.
	* gcc/config/i386/i386.h: If IN_TARGET_LIBS is defined, make
	BIGGEST_FIELD_ALIGNMENT a constant.

From-SVN: r32110
2000-02-23 08:43:44 +00:00
Nick Clifton 3a685f6f03 Add support for sh-pe and arm-wince-pe targets.
From-SVN: r32109
2000-02-23 01:25:56 +00:00
Mark Mitchell 7bf94db3eb Add data member test
From-SVN: r32108
2000-02-22 22:47:56 +00:00
Mark Mitchell fa2e34e8f2 * g++.old-deja/g++.abi/ptrmem.C: New test.
From-SVN: r32107
2000-02-22 22:17:33 +00:00
Jason Merrill cfbad224f6 fix comment
From-SVN: r32106
2000-02-22 17:12:59 -05:00
Jason Merrill f19f17e080 dwarf2out.c (output_line_info): Put the marker for the end of the line number info at the actual end.
* dwarf2out.c (output_line_info): Put the marker for the end of
        the line number info at the actual end.
        (gen_struct_or_union_type_die): Use decl_function_context
        to check for local classes.
        * dwarfout.c (output_type): Likewise.

From-SVN: r32105
2000-02-22 17:04:35 -05:00
Alexandre Petit-Bianco 99803cd4cc parse.y (init_decl_processing): `_Jv_IsInstanceOf' returned value type set to `boolean_type_node'.
2000-02-22  Alexandre Petit-Bianco  <apbianco@cygnus.com>

	* parse.y (init_decl_processing): `_Jv_IsInstanceOf' returned
	value type set to `boolean_type_node'.

From-SVN: r32104
2000-02-22 01:12:48 -08:00
Jeff Law b25b67d3cc Fix thinko in last change.
From-SVN: r32103
2000-02-22 02:05:22 -07:00
Jeff Law 7fc4240a79 Daily bump.
From-SVN: r32102
2000-02-22 01:45:07 -07:00
Jeffrey A Law 24e971f667 pa.h (FUNCTION_ARG_PASS_BY_REFERENCE): Handle pass-by-reference for arguments with a mode, but no type.
* pa.h (FUNCTION_ARG_PASS_BY_REFERENCE): Handle pass-by-reference
        for arguments with a mode, but no type.
        (FUNCTION_ARG_CALLEE_COPIES): Similarly.
        * t-pa (LIB2FUNCS_EXTRA): Add quadlib.asm.
        * pa/long_double.h: New file.
        * configure.in (hpux10, hpux11 configurations): hpux10 and hpux11
        both have 128bit wide long doubles.
        * configure: Rebuilt.

From-SVN: r32101
2000-02-22 01:40:16 -07:00
Martin v. Löwis cab1f18012 Refer to the standard as an ISO document, not an ANSI one.
* decl.c (grokdeclarator): Change ANSI to ISO.
	* lex.c (consume_string, readescape, do_identifier): Likewise.
	(parse_float, real_yylex): Likewise.
	* parse.y (paren_expr_or_null, paren_cond_or_null): Likewise.
	(unary_expr, new_initializer, cast_expr, primary, primary_no_id,
	new_type_id, maybe_label_decls, simple_stmt,
	for.init.statement): Likewise.
	* pt.c (do_decl_instantiation, do_type_instantiation): Likewise.
	* semantics.c (finish_named_return_value): Likewise.
	* parse.c: Regenerate.

From-SVN: r32100
2000-02-22 07:25:31 +00:00
Mark Mitchell c7e266a6b7 cp-tree.h (CPTI_VTABLE_INDEX_TYPE): New macro.
* cp-tree.h (CPTI_VTABLE_INDEX_TYPE): New macro.
	(CPTI_CLASS_STAR_TYPE): Remove.
	(vtable_index_type): Likewise.
	(class_star_type_node): Remove.
	(TYPE_PTRMEMFUNC_FN_TYPE): Adjust for the new ABI.
	(build_binary_op_nodefault): Remove.
	* call.c (build_new_op): Use build_binary_op instead of
	build_binary_op_nodefault.
	* decl.c (init_decl_processing): Remove class_star_type_node
	initialization.  Make delta_type_node ptrdiff_type_node under the
	new ABI.  Initialize vtable_index_type.
	(build_ptrmemfunc_type): Build different structures for the new
	ABI.
	(build_enumerator): Use build_binary_op instead of
	build_binary_op_nodefault.
	* method.c (build_overload_value): Mangle pointers-to-members
	appropriately under the new ABI.
	* typeck.c (build_array_ref): Use build_binary_op instead of
	build_binary_op_nodefault.
	(get_member_function_from_ptrfunc): Adjust for the new ABI.
	(build_binary_op_nodefault): Rename to ...
	(build_binary_op): ... this.  Remove old version.  Adjust for
	pointer-to-member comparisons under the new ABI.
	(build_ptrmemfunc1): Remove dead code.  Adjust for the new ABI.
	(build_ptrmemfunc): Adjust for the new ABI.
	(expand_ptrmemfunc_cst): Likewise.
	(delta2_from_ptrmemfunc): Assert that we're not using the new ABI.
	(pfn_from_ptrmemfunc): Adjust for the new ABI.

From-SVN: r32099
2000-02-22 02:30:54 +00:00
Alexandre Petit-Bianco 2323b28bb6 re GNATS gcj/147 (Problem parsing comments)
2000-02-15  Alexandre Petit-Bianco  <apbianco@cygnus.com>

	* lex.c (java_parse_doc_section): Alway unget the last unicode
	when returning 0.
	(java_lex): Call java_parse_end_comment with fetched unicode.

This is a fix to the Java PR #47
(http://sourceware.cygnus.com/ml/java-prs/2000-q1/msg00042.html)

From-SVN: r32097
2000-02-21 16:13:54 -08:00
Martin v. Löwis 7d612b1e4a Remove conflict marker
From-SVN: r32096
2000-02-22 00:04:20 +00:00
Alexandre Petit-Bianco 2a1ed9c111 [multiple changes]
Thu Feb 17 14:30:37 2000  Alexandre Petit-Bianco  <apbianco@cygnus.com>

	* jcf-write.c (generate_bytecode_insns): Don't generate empty
 	`finally' clauses.

Thu Feb 17 13:20:58 2000  Alexandre Petit-Bianco  <apbianco@cygnus.com>

	* jcf-parse.c (load_class): Call `fatal' if no file containing
	the target class are found.

From-SVN: r32095
2000-02-21 15:53:36 -08:00
Kaveh R. Ghazi 47ee9bcb61 defaults.h (ASM_OUTPUT_ASCII): Constify a char*.
* defaults.h (ASM_OUTPUT_ASCII): Constify a char*.

	* flow.c (get_common_dest, chain_reorder_blocks, make_reorder_chain,
	fixup_reorder_chain, skip_insns_between_block): Add static prototypes.
	(life_analysis): Wrap variable `i' with macro ELIMINABLE_REGS.

	* haifa-sched.c (rank_for_schedule): Don't cast away const-ness.

	* integrate.c (compare_blocks, find_block): Likewise.

	* rtl.c (fatal_with_file_and_line): Add ATTRIBUTE_PRINTF_2.

	* rtl.h (set_file_and_line_for_stmt): Constify a char*.

	* stmt.c (stmt_status, set_file_and_line_for_stmt,
	expand_asm_operands): Likewise.

From-SVN: r32094
2000-02-21 23:27:01 +00:00
Jason Eckhardt 24c3bf687d predict.c (estimate_probability): Added the pointer heuristic to the collection of static branch predictors.
* predict.c (estimate_probability): Added the pointer heuristic to
        the collection of static branch predictors.

From-SVN: r32093
2000-02-21 23:04:43 +00:00
Catherine Moore 1e387156a8 mips.h (ASM_SPEC): Add -mfix700.
* config/mips/mips.h (ASM_SPEC): Add -mfix700.
        * invoke.texi (-mfix7000): Document.

From-SVN: r32092
2000-02-21 15:48:23 -05:00
Gabriel Dos Reis abcabbbf3e diagnostic.c (init_output_buffer): Make it possible to output at least 32 characters if we're given a too long prefix.
2000-02-21  Gabriel Dos Reis  <gdr@codesourcery.com>

        * diagnostic.c (init_output_buffer): Make it possible to output at
        least 32 characters if we're given a too long prefix.

From-SVN: r32091
2000-02-21 20:17:41 +00:00
Gabriel Dos Reis cb9a3ff816 call.c (build_object_call): Compress consecutive calls to cp_error.
2000-02-21  Gabriel Dos Reis  <gdr@codesourcery.com>

        * call.c (build_object_call): Compress consecutive calls to
        cp_error.
        (build_conditional_expr): Say 'ISO C++' not 'ANSI C++'.
        (build_op_delete_call): Adjust message formatting.

        * class.c (check_bases): Compress consecutive calls to
        cp_pedwarn.
        (finish_struct_anon): Say 'ISO C++'.

        * decl.c (start_decl): Same here.
        (grok_reference_init): Likewise.
        (grokfndecl): Correct message formatting.
        (grokfndecl): Improve diagnostic.
        (check_static_variable_definition): Likewise. Say 'ISO C++'
        (compute_array_index_type): Say 'ISO C++'
        (create_array_type_for_decl): Compress consecutive calls to
        cp_error.
        (grokdeclarator): Say 'ISO C++'
        (grok_op_properties): Likewise.

        * decl2.c (delete_sanity): Clairify diagnostic.
        (check_member_template): Same here.
        (grok_function_init): Use consistent terminology.

        * expr.c (do_case): Say 'ISO C++'

        * friend.c (do_friend): Compress consecutive calls to warning.

From-SVN: r32090
2000-02-21 19:51:44 +00:00
Joerg Brunsmann c801c87c9d jcf-dump.c (main): Test for correct condition after output file creation.
Mon Jan 18 14:30:09 2000  Joerg Brunsmann  <joerg.brunsmann@fernuni-hagen.de>

	* jcf-dump.c (main): Test for correct condition after
	output file creation.

From-SVN: r32089
2000-02-21 16:36:55 +00:00
Jeff Law 3759b29221 Daily bump.
From-SVN: r32088
2000-02-21 01:45:07 -07:00
Anthony Green 9b90451bee Forgot to commit ChangeLog
From-SVN: r32087
2000-02-21 08:21:52 +00:00
Anthony Green 06440a12a2 Makefile.in: Rebuilt.
* Makefile.in: Rebuilt.
	* Makefile.am (ordinary_java_source_files): Add
        gnu/gcj/io/DefaultMimeTypes.java and gnu/gcj/io/MimeTypes.java

        * scripts/MakeDefaultMimeTypes.java: New file.
        * scripts/mime.types: New file.
	* scripts/classes.pl: Moved from top level.
        * classes.pl: Moved to scripts directory.

        * java/net/URLConnection.java: Implement guessContentTypeFromName.

        * gnu/gcj/io/MimeTypes.java: New file.
        * gnu/gcj/io/DefaultMimeTypes.java: New file.

From-SVN: r32086
2000-02-21 05:54:29 +00:00
Tom Tromey 38b3a2c089 * boehm.cc (_Jv_AllocBytes): Clear returned memory.
From-SVN: r32085
2000-02-21 05:14:06 +00:00