Commit Graph

33297 Commits

Author SHA1 Message Date
J"orn Rennecke
44e4159d60 recog.c (validate_replace_rtx_1): In ZERO_EXTEND / SIGN_EXTEND case...
* recog.c (validate_replace_rtx_1): In ZERO_EXTEND / SIGN_EXTEND
	case, don't use operand_subword to calculate a SUBREG that is
	wider than a word.

	* rtl.texi: Comparisons yield 0 or STORE_FLAG_VALUE.

From-SVN: r39183
2001-01-22 16:58:08 +00:00
Nathan Sidwell
62e4a75853 cp-tree.h (unification_kind_t): Add DEDUCE_ORDER.
cp:
	* cp-tree.h (unification_kind_t): Add DEDUCE_ORDER.
	(more_specialized): Add deduction parameter.
	* call.c (joust): Adjust more_specialized call.
	* pt.c (UNIFY_ALLOW_OUTER_MORE_CV_QUAL,
	UNIFY_ALLOW_OUTER_LESS_CV_QUAL): New unify flags.
	(get_bindings_order): Remove.
	(get_bindings_real): Add DEDUCE parameter.
	(maybe_adjust_types_for_deduction): Return extra unify flags. Do
	REFERENCE_TYPE jig for DEDUCE_ORDER.
	(type_unification_real): Deal with DEDUCE_ORDER. Use result of
	maybe_adjust_types_for_deduction.
	(more_specialized): Add DEDUCE parameter. Call get_bindings_real
	directly.
	(try_one_overload): Use result of maybe_adjust_types_for_deduction.
	(check_cv_quals_for_unify): Use new unify qualifier flags.
	(unify): Clear new unify qualifier flags.
	(get_bindings_real): Add DEDUCE parameter.
	(get_bindings): Adjust call to get_bindings_real.
	(get_bindings_overload): Likewise.
	(most_specialized_instantiation): Adjust call to
	more_specialized.
testsuite:
	* g++.old-deja/g++.martin/sts_partial.C: Remove XFAIL.
	* g++.old-deja/g++.pt/spec35.C: New test.
	* g++.old-deja/g++.pt/spec36.C: New test.

From-SVN: r39182
2001-01-22 13:51:43 +00:00
Herman A.J. ten Brugge
0bbcfbafc8 c4x.c (c4x_valid_rptb_p, [...]): New functions.
* c4x.c (c4x_valid_rptb_p, c4x_label_ref_used_p): New functions.
	(c4x_rptb_insert): Call c4x_valid_rptb_p to check if repeat block is
	valid.  If not replace it by equivalent insns.

From-SVN: r39181
2001-01-22 10:40:31 +00:00
Herman A.J. ten Brugge
5078f5eb76 c4x.c (c4x_check_legit_addr): Only check CONST.
* c4x.c (c4x_check_legit_addr): Only check CONST.  Not if CONST
	contains SYMBOL_REF, LABEL_REF and CONST_INT.
	(c4x_U_constraint, symbolic_address_operand): Likewise.
	(c4x_immed_float_constant): Do not check if CONST_DOUBLE is in
	memory.
	(c4x_r11_set_p, c4x_check_laj_p): New functions.
	* c4x-protos.h (c4x_check_laj_p): Add prototype.
	* c4x.md (in_annul_slot_3): Do not allow auto-increment in last
	anulling slot because of silicon bug.
	(laj, lajv): Call c4x_check_laj_p to check for silicon bug.

From-SVN: r39180
2001-01-22 10:29:14 +00:00
Jeff Law
1a938e38a0 Daily bump.
From-SVN: r39179
2001-01-22 01:45:08 -07:00
Alan Modra
6dc0d1649d cppexp.c (parse_charconst): Change `mask' type to agree with parse_escape.
* cppexp.c (parse_charconst):  Change `mask' type to agree
        with parse_escape.

From-SVN: r39178
2001-01-22 07:38:18 +00:00
Bryce McKinlay
d340e0ac39 * configure.in: Enable libgcj for linux targets.
From-SVN: r39177
2001-01-22 01:47:11 +00:00
Richard Henderson
c7f0da1dcf i386.c (ix86_asm_file_end): Disable putting pic_label_name in a linkonce section.
* config/i386/i386.c (ix86_asm_file_end): Disable putting
        pic_label_name in a linkonce section.

From-SVN: r39176
2001-01-21 14:33:14 -08:00
Per Bothner
a4796c8062 Various fixes to allow compiling a compressed .jar/.zip archive.
From-SVN: r39175
2001-01-21 13:50:37 -08:00
Per Bothner
b5c4fed92c Minor optimization of static ggc roots.
* jcf-parse.c (parse_roots):  New static field.
	(current_field, current_method, current_file_list):  Replace by macros
	naming fields of parse_roots.
	(init_jcf_parse):  Combine 3 ggc_add_tree_root calls to 1.
	* class.c (class_roots):  New static field.
	(registered_class, fields_ident, info_ident, class_list):
	New macros naming fields of parse_roots.
	(build_static_field_ref):  Don't register roots here.
	(layout_class):  Static field list replaced by macro class_list.
	(init_class_processing):  Call ggc_add_tree_root for 4 roots.
	Initialize fields_ident and info_ident here.

From-SVN: r39174
2001-01-21 13:24:30 -08:00
Per Bothner
3432b91b65 jcf-parse.c (ggc_mark_jcf): New function.
* jcf-parse.c (ggc_mark_jcf):  New function.
	(init_jcf_parse):  Register current_jcf as ggc root.

From-SVN: r39173
2001-01-21 13:18:04 -08:00
Per Bothner
2c36c7fd96 * lang.c (put_decl_node): Print method's name.
From-SVN: r39172
2001-01-21 12:42:13 -08:00
Per Bothner
9c0c88ac0d verify.c (VERIFICATION_ERROR_WITH_INDEX): New macro.
* verify.c (VERIFICATION_ERROR_WITH_INDEX):  New macro.
	(verify_jvm_instructions):  Use it, for better error messages on loads.

From-SVN: r39171
2001-01-21 12:36:46 -08:00
Per Bothner
230cbd5f4f verify.c (merge_type_state): Stil may have to merge even if LABEL_VERIFIED (label).
* verify.c (merge_type_state):  Stil may have to merge even if
	LABEL_VERIFIED (label).

From-SVN: r39170
2001-01-21 12:26:37 -08:00
Per Bothner
e6b6db0dd8 parse.y (method_header): Don't set the DECL_NAME of a FUNCTION_DECL to a EXPR_WITH_FILE_LOCATION - that...
* parse.y (method_header):  Don't set the DECL_NAME of a FUNCTION_DECL
	to a EXPR_WITH_FILE_LOCATION - that is just too fragile and wrong.

From-SVN: r39169
2001-01-21 12:18:31 -08:00
Per Bothner
b57300bcff expr.c (pop_type_0): Only return object_ptr_type_node on mismatch if expeting an interface type.
* expr.c (pop_type_0):  Only return object_ptr_type_node on mismatch
	if expeting an interface type.  Refines Tom's change of 2000-09-12.

From-SVN: r39168
2001-01-21 11:08:10 -08:00
Philipp Thomas
380a627a15 aclocal.m4 (AM_WITH_NLS): Add -lintl to LIBS if gettext was found in libintl.
2001-01-17  Philipp Thomas  <pthomas@suse.de>

	* aclocal.m4 (AM_WITH_NLS): Add -lintl to LIBS if gettext was
	found in libintl.
	* configure: Regenerate.

From-SVN: r39167
2001-01-21 09:48:56 +00:00
Phil Edwards
0505b0467f configopts.html: Update for current status.
2001-01-21  Phil Edwards  <pme@sources.redhat.com>

	* docs/html/configopts.html:  Update for current status.  Fix HTML.
	* docs/html/install.html:  Update for current status.

From-SVN: r39166
2001-01-21 09:36:09 +00:00
J"orn Rennecke
02a65aef50 expmed.c (synth_mult, [...]): Guard uses of shift_cost, shiftadd_cost and shiftsub_cost with bound checks.
* expmed.c (synth_mult, expand_mult_highpart, expand_divmod): Guard
	uses of shift_cost, shiftadd_cost and shiftsub_cost with bound checks.

From-SVN: r39165
2001-01-21 09:19:15 +00:00
Jeff Law
625b1acd10 Daily bump.
From-SVN: r39164
2001-01-21 01:45:07 -07:00
Denis Chertykov
56b871c135 avr.c (ret_cond_branch): New argument (reverse) added.
* config/avr/avr.c (ret_cond_branch): New argument (reverse) added.
	If REVERSE nonzero then condition code in X must be reversed.
	(encode_section_info): Optimise if/else.
	(avr_function_value): Fix formatting.

	* config/avr/avr.md (branch): Call to ret_cond_branch changed.
	(difficult_branch): Likewise.
	(rvbranch): Likewise.
	(difficult_rvbranch): Likewise.

	* config/avr/avr-protos.h (ret_cond_branch): Prototype changed.

	* config/avr/libgcc.S: Fix comment.

From-SVN: r39163
2001-01-21 10:08:46 +03:00
Michael Sokolov
04e91ffb1e * sdbout.c (PUT_SDB_DEF): Fix after last bogus change.
From-SVN: r39162
2001-01-21 03:29:52 +00:00
Michael Sokolov
3943e7562d * cppinit.c (INO_T_EQ): Don't use #elif, fix formatting.
From-SVN: r39161
2001-01-21 02:26:27 +00:00
Michael Sokolov
b3e1e64f4a aclocal.m4 (gcc_AC_FUNC_STRSTR): New macro.
* aclocal.m4 (gcc_AC_FUNC_STRSTR): New macro.
	* configure.in (gcc_AC_FUNC_STRSTR): Add invokation.
	* configure, config.in: Regenerate.
	* Makefile.in (STRSTR, HOST_STRSTR, USE_HOST_STRSTR): New variables.
	(LIBDEPS, HOST_LIBDEPS, LIBS, HOST_LIBS): Add strstr handling.
	(strstr.o, $(HOST_PREFIX_1)strstr.o): New rules.
	(doprint.o): New rule.

From-SVN: r39160
2001-01-21 01:51:42 +00:00
Michael Sokolov
5baf8c3790 MAINTAINERS (Write After Approval): Add myself.
2001-01-20  Michael Sokolov  <msokolov@ivan.Harhan.ORG>

	* MAINTAINERS (Write After Approval): Add myself.

From-SVN: r39159
2001-01-21 01:13:52 +00:00
Jakub Jelinek
399241d9a8 Move test ChangeLog entry to testsuite/ChangeLog.
From-SVN: r39158
2001-01-20 21:39:49 +01:00
Joseph Myers
47f8b47328 * c-typeck.c (digest_init): Handle boolean types as scalars.
From-SVN: r39157
2001-01-20 19:28:00 +00:00
Richard Kenner
2954d7dbf7 stmt.c (expand_return): Don't return anything if size is zero.
* stmt.c (expand_return): Don't return anything if size is zero.
	Delete redundant assignment to BYTES.
	* expr.c (move_block_from_reg): Do nothing if NREGS is zero.

From-SVN: r39156
2001-01-20 12:47:45 -05:00
Marek Michalkiewicz
1d26ac96cc avr.h (INIT_TARGET_OPTABS): Remove most of it, was the same as the default library function names.
* config/avr/avr.h (INIT_TARGET_OPTABS): Remove most of it, was
	the same as the default library function names.
	* config/avr/avr.md: Document special characters after '%'.
	(mulqi3, mulhi3, mulsi3): Call libgcc.S functions ourselves,
	knowing which of the call-used registers are really clobbered.
	(divmodqi4, udivmodqi4, divmodhi4, udivmodhi4, divmodsi4, udivmodsi4):
	New.  Both quotient and remainder from one libgcc.S call.
	* config/avr/libgcc.S: Optimize mul/divmod for the new insns above,
	clobber as few registers as possible.
	* config/avr/t-avr (LIB1ASMFUNCS): Adjust for the above changes.

From-SVN: r39155
2001-01-20 16:49:01 +00:00
Richard Kenner
b845f89747 Reinstall 1.245 -> 1.246 change
From-SVN: r39154
2001-01-20 08:40:23 -05:00
Neil Booth
29aad310b0 * gcc.dg/cpp/macro3.c,macro4.c,strp1.c: Update.
From-SVN: r39153
2001-01-20 09:34:13 +00:00
Neil Booth
673b13e2f6 cppmacro.c (funlike_invocation_p): Don't move back up to the context of the top of the stack.
* cppmacro.c (funlike_invocation_p): Don't move back up to the
        context of the top of the stack.

From-SVN: r39152
2001-01-20 09:33:01 +00:00
Zack Weinberg
a42a5f59d0 [multiple changes]
2001-01-20  Jakub Jelinek  <jakub@redhat.com>

	* function.c (fixup_var_refs): Move CALL_PLACEHOLDER handling...
	(fixup_var_refs_insns): ...here.

	* gcc.c-torture/compile/20010118-1.c: New test.

2001-01-20  Zack Weinberg  <zack@wolery.stanford.edu>

	* function.c (fixup_var_refs_insns): Break up into
	fixup_var_refs_insn [body of loop], fixup_var_refs_insns
	[loop over entire insn list], and fixup_var_refs_insns_with_hash
	[loop over hash table entries].
	(fixup_var_refs): Adjust calls to fixup_var_refs_insns and/or
	fixup_var_refs_insns_with_hash, to match above changes.

From-SVN: r39151
2001-01-20 09:12:08 +00:00
Jeff Law
1b7f6755f9 Daily bump.
From-SVN: r39150
2001-01-20 01:45:16 -07:00
Gabriel Dos Reis
0109cb7553 tests.exp: New file.
2001-01-20  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>

	* testsuite/libstdc++.tests/tests.exp: New file.
	* testsuite/lib/libstdc++.exp: Itou.
	* testsuite/README: Itou.

From-SVN: r39149
2001-01-20 05:09:08 +00:00
Gabriel Dos Reis
1af7d6cff4 tests_flags.in: Just output the bare minimum to run tests.
2001-01-20  Gabriel Dos Reis  <gdr@codesourcery.com>

	* tests_flags.in: Just output the bare minimum to run tests.
	Let's the caller do its own arrangement.

	* mkcheck.in: Rename INC_PATH to INCLUDES.  Adjust flags
	computations.

From-SVN: r39148
2001-01-20 00:55:09 +00:00
Warren Levy
1aa605c814 SimpleDateFormat.java (format): Compute hour for cases HOUR_OF_DAY1_FIELD (1-24)...
* java/text/SimpleDateFormat.java (format): Compute hour for cases
	HOUR_OF_DAY1_FIELD (1-24), HOUR1_FIELD (1-12), and HOUR0_FIELD (0-11)
	correctly.  Adjust properly from 0-23 clock hour.

Fixes failure in Mauve test java.text.SimpleDateFormat.Test (format).

From-SVN: r39147
2001-01-20 00:37:09 +00:00
John David Anglin
03bbd83fa4 Makefile.in (ORDINARY_FLAGS_TO_PASS): Add MAKEOVERRIDES variable.
* Makefile.in (ORDINARY_FLAGS_TO_PASS): Add MAKEOVERRIDES variable.
	(libgcc.a): Likewise.
	(stmp-multilib): Likewise.
	(STAGE2_FLAGS_TO_PASS): Likewise.

From-SVN: r39146
2001-01-19 23:37:07 +00:00
Alexandre Oliva
68c37dc901 sh.c (prepare_move_operands): Use operands[0] as temporary if no_new_pseudos.
* config/sh/sh.c (prepare_move_operands) [PIC]: Use operands[0] as
temporary if no_new_pseudos.

From-SVN: r39145
2001-01-19 22:31:21 +00:00
Neil Booth
111e0469ce * cppinternals.texi: Update.
From-SVN: r39144
2001-01-19 22:25:53 +00:00
Richard Earnshaw
55cf7bb972 * arm.c (arm_init_builtins): Re-enable builtins.
From-SVN: r39143
2001-01-19 21:42:52 +00:00
Jason Merrill
2a2a9e5a20 * decl2.c (flag_vtable_thunks): Also depend on ENABLE_NEW_GXX_ABI.
From-SVN: r39142
2001-01-19 16:07:21 -05:00
Richard Kenner
7193d1dc3d rtl.texi (SET, CLOBBER): Document PARALLEL as SET_DEST possibility.
* rtl.texi (SET, CLOBBER): Document PARALLEL as SET_DEST possibility.
	* flow.c (mark_set_1, case PARALLEL): Don't require BLKmode, allow
	element to be null, and always expect an EXPR_LIST.
	* rtlanal.c (reg_overlap_mentioned_p, note_stores): Likewise.
	* sched-deps.c (sched_analyze_1): Likewise.
	* sched-rgn.c (check_live_1, update_live_1): Likewise.

From-SVN: r39141
2001-01-19 13:28:58 -05:00
Richard Kenner
79b9ec0ddb regclass.c (max_set_parallel): New variable.
* regclass.c (max_set_parallel): New variable.
	(reg_scan): Take it into account in computation of max_parallel.
	(reg_scan_mark_refs, case SET): Compute it.

From-SVN: r39140
2001-01-19 13:09:17 -05:00
Richard Kenner
831ecbd460 alias.c (rtx_equal_for_memref_p, [...]): Don't assume args are REG.
* alias.c (rtx_equal_for_memref_p, case ADDRESSOF): Don't assume
	args are REG.
	* expr.c (store_constructor): Don't look at MEM_ALIAS_SET unless MEM.
	* function.c (assign_parms): Use INTVAL for a CONST_INT.

From-SVN: r39139
2001-01-19 13:04:23 -05:00
Jakub Jelinek
fa7aa1feb6 * gcc.c-torture/execute/20010119-1.c: New test.
From-SVN: r39138
2001-01-19 19:03:44 +01:00
Jason Merrill
cb9e9d8dd1 dwarf2out.c (gen_subprogram_die): Don't reuse the in-class decl for the abstract instance of an inline function.
* dwarf2out.c (gen_subprogram_die): Don't reuse the in-class decl
        for the abstract instance of an inline function.

From-SVN: r39137
2001-01-19 12:11:15 -05:00
Alexandre Oliva
20342a6bc1 Improve ChangeLog entry of previous patch
From-SVN: r39136
2001-01-19 16:34:15 +00:00
Alexandre Oliva
61f5625b76 reload1.c (move2add_note_store): Treat all registers about which no information is known as potential bases...
* reload1.c (move2add_note_store): Treat all registers about which
no information is known as potential bases, and treat all
registers directly or indirectly derived from it as members of the
same set of values.
(reload_cse_move2add): Adjust accordingly.  Take mode and
offset of base register into account.

From-SVN: r39135
2001-01-19 16:32:27 +00:00
Jason Merrill
5bea1ccf19 tweak comments
From-SVN: r39134
2001-01-19 10:23:34 -05:00