Commit Graph

40780 Commits

Author SHA1 Message Date
GCC Administrator
b07af07e75 Daily bump.
From-SVN: r60499
2002-12-25 08:18:10 +00:00
Kazu Hirata
871d6a01c3 h8300.md (two peepholes): Use match_dup instead of match_operand in the new patterns.
* config/h8300/h8300.md (two peepholes): Use match_dup instead
	of match_operand in the new patterns.

From-SVN: r60488
2002-12-25 01:30:41 +00:00
Nathan Sidwell
3e14cd301c re PR c++/7964 (ICE in build_base_path)
cp:
	PR C++/7964
	* cp-tree.h (resolve_scoped_fn_name): Prototype.
	* call.c (resolve_scoped_fn_name): New function. Deal with
	more template expansion. Broken out of ...
	* parse.y (parse_finish_call_expr): ... here. Call it.
	* decl2.c (build_expr_from_tree, CALL_EXPR): Use
	resolve_scoped_fn_name and build_call_from_tree.
testsuite:
	* g++.dg/lookup/scoped3.C: New test.

From-SVN: r60483
2002-12-24 22:20:14 +00:00
Nathan Sidwell
b9201622ae re PR c++/9053 (g++ confused about ambiguity of overloaded function templates)
cp:
        PR c++/9053
        * decl.c (duplicate_decls): Templates may be disambiguated by
        return type.

        PR c++/8702
        * decl2.c (check_classfn): Use lookup_fnfield_1. List all
        conversion operators on failure.
testsuite
        * g++.dg/lookup/decl1.C: New test.
        * g++.dg/lookup/decl2.C: New test.

From-SVN: r60482
2002-12-24 22:12:17 +00:00
Joseph Myers
40aa9d95e2 new1.C, [...]: Add tests previously added only to 3.1 or 3.2 branch.
* g++.dg/init/new1.C, g++.dg/template/alignof1.C,
	gcc.c-torture/compile/20021015-1.c,
	gcc.c-torture/compile/20021015-2.c,
	gcc.c-torture/compile/20021123-1.c,
	gcc.c-torture/compile/20021123-2.c,
	gcc.c-torture/compile/20021123-3.c,
	gcc.c-torture/compile/20021123-4.c,
	gcc.c-torture/execute/20021024-1.c: Add tests previously added
	only to 3.1 or 3.2 branch.

From-SVN: r60479
2002-12-24 19:08:41 +00:00
Joseph Myers
4fbf9d4ad9 * doc/include/texinfo.tex: Update to version 2002-11-25.11.
From-SVN: r60478
2002-12-24 19:00:33 +00:00
Nathan Sidwell
8601608f05 configure.in (enable-coverage): Add SELF_COVERAGE.
* configure.in (enable-coverage): Add SELF_COVERAGE.
	* profile.c (end_branch_prob): Use SELF_COVERAGE.

From-SVN: r60476
2002-12-24 18:44:00 +00:00
Jim Wilson
c28b4e4097 Fix v850 PlumHall testsuite failure.
* alias.c (record_set): Handle multi-reg hard registers.

From-SVN: r60474
2002-12-24 07:49:24 -08:00
Kazu Hirata
14b493d64d regmove.c: Fix comment typos.
* regmove.c: Fix comment typos.
	* reload.c: Likewise.
	* reload1.c: Likewise.
	* resource.c: Likewise.
	* rtl.def: Likewise.
	* rtl.h: Likewise.
	* rtlanal.c: Likewise.
	* sched-deps.c: Likewise.
	* sched-rgn.c: Likewise.
	* sibcall.c: Likewise.
	* simplify-rtx.c: Likewise.
	* ssa-ccp.c: Likewise.
	* ssa.c: Likewise.
	* stmt.c: Likewise.
	* stor-layout.c: Likewise.
	* system.h: Likewise.
	* tlink.c: Likewise.
	* toplev.c: Likewise.
	* tracer.c: Likewise.
	* tree-inline.c: Likewise.
	* tree.c: Likewise.
	* tree.h: Likewise.
	* unroll.c: Likewise.
	* varasm.c: Likewise.

From-SVN: r60473
2002-12-24 08:30:34 +00:00
GCC Administrator
02aef83470 Daily bump.
From-SVN: r60472
2002-12-24 08:17:40 +00:00
Gabriel Dos Reis
94be8403e2 * call.c (tourney, build_field_call, equal_functions, joust)
(compare_ics, build_over_call, build_java_interface_fn_ref)
	(convert_like_real, op_error, build_object_call, resolve_args)
	(build_vfield_ref, check_dtor_name, build_scoped_method_call)
	(build_addr_func, build_call, build_method_call, null_ptr_cst_p)
	(sufficient_parms_p, build_conv, non_reference, strip_top_quals)
	(standard_conversion, reference_related_p)
	(reference_compatible_p, convert_class_to_reference)
	(direct_reference_binding, reference_binding)
	(implicit_conversion, is_complete, promoted_arithmetic_type_p)
	(add_template_conv_candidate, any_viable, any_strictly_viable)
	(build_this, splice_viable, print_z_candidates)
	(build_user_type_conversion, build_new_function_call)
	(conditional_conversion, build_conditional_expr, build_new_op)
	(build_op_delete_call, enforce_access, call_builtin_trap)
	(convert_arg_to_ellipsis, build_x_va_arg, cxx_type_promotes_to)
	(convert_default_arg, type_passed_as, convert_for_arg_passing)
	(in_charge_arg_for_name, is_properly_derived_from)
	(maybe_handle_implicit_object, maybe_handle_ref_bind)
	(source_type, add_warning, can_convert, can_convert_arg)
	(perform_implicit_conversion, can_convert_arg_bad)
	(initialize_reference, add_conv_candidate)
	(add_template_candidate_real, add_template_candidate): Ansify.

From-SVN: r60458
2002-12-23 23:44:47 +00:00
Larin Hennessy
c9693e96d4 install.texi: Remove i386-*-isc, i860-*-bsd, m68k-altos-sysv, m68k-isi-bsd, m68k-sony-bsd entries.
2002-12-23  Larin Hennessy  <larin@science.oregonstate.edu>

	* doc/install.texi: Remove i386-*-isc, i860-*-bsd,
	m68k-altos-sysv, m68k-isi-bsd, m68k-sony-bsd entries.
	* doc/invoke.texi: Remove AMD 29K, ARM RISC/iX, Clipper, Convex,
	DG/UX entries.
	* doc/md.texi: Remove AMD 29K entries.
	* doc/trouble.texi: Remove Alliant, DG/UX, Iris 4.0.5F, GAS
	1.38.1, NewsOS, RT PC, WE32K entries.

From-SVN: r60455
2002-12-23 23:02:49 +00:00
Aldy Hernandez
a67ed43f1f altivec.md (mulv4sf3): Rewrite to add -0.0 vector.
2002-12-23  Aldy Hernandez  <aldyh@redhat.com>

	PR/8763
	* config/rs6000/altivec.md (mulv4sf3): Rewrite to add -0.0 vector.
	(altivec_vspltisw_v4sf): Name pattern.
	(altivec_vslw_v4sf): New pattern.

From-SVN: r60453
2002-12-23 22:08:57 +00:00
Joseph Myers
df82908a6f gcj.texi: Include Cover Texts in man page.
gcc/java:
	* gcj.texi: Include Cover Texts in man page.

fastjar:
	* fastjar.texi: Include Cover Texts in man page.

From-SVN: r60451
2002-12-23 21:16:23 +00:00
Jeff Sturm
d3ab697ba4 class.c (build_static_field_ref): Check FIELD_FINAL.
* class.c (build_static_field_ref): Check FIELD_FINAL.

* constants.c (alloc_class_constant): Use TYPE_CPOOL_DATA_REF
instead of current_constant_pool_data_ref.
* java-tree.h (current_constant_pool_data_ref): Undefine.
(JTI_CURRENT_CONSTANT_POOL_DATA_REF): Remove.
* jcf-parse.c (init_outgoing_cpool): Don't initialize
current_constant_pool_data_ref.

* except.c (prepare_eh_table_type ): Use DECL_NAME of class type,
not build_internal_class_name.

* parse.y (patch_incomplete_class_ref): Always emit `class$' method.
Use it when class ref isn't certain to be compiled.

From-SVN: r60448
2002-12-23 19:42:09 +00:00
Joseph Myers
46d40353c3 gcc-common.texi: Define DEVELOPMENT.
* doc/include/gcc-common.texi: Define DEVELOPMENT.

ada:
	* gnat_rm.texi: Include gcc-common.texi.  Use GCC version number
	only.
	* Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
	$(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
	$(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
	ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
	ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
	$(srcdir)/doc/include/gcc-common.texi.

f:
	* root.texi: Include gcc-common.texi.
	* bugs.texi, news.texi: Don't include root.texi as part of full
	manual.
	* g77.texi: Update for use of gcc-common.texi.
	* Make-lang.in ($(srcdir)/f/g77.info, f/g77.dvi): Depend on
	$(srcdir)/doc/include/gcc-common.texi.

java:
	* gcj.texi: Include gcc-common.texi.
	* Make-lang.in ($(srcdir)/java/gcj.info, java/gcj.dvi): Depend on
	$(srcdir)/doc/include/gcc-common.texi.

treelang:
	* treelang.texi: Include gcc-common.texi.
	* Make-lang.in ($(srcdir)/treelang/treelang.info, treelang.dvi):
	Depend on gcc-common.texi.  Add other missing dependencies.
	(treelang.dvi): Use texi2dvi.

From-SVN: r60446
2002-12-23 19:26:48 +00:00
Mark Mitchell
8dc65b6e6d stor-layout.c (update_alignment_for_field): Correct handling of unnamed bitfields on PCC_BITFIELD_TYPE_MATTERS machines.
* stor-layout.c (update_alignment_for_field): Correct handling of
	unnamed bitfields on PCC_BITFIELD_TYPE_MATTERS machines.
	* doc/tm.texi (PCC_BITFIELD_TYPE_MATTERS): Note that an unnamed
	bitfield does not affect alignment.

	* testsuite/gcc.dg/i386-bitfield3.c: New test.

From-SVN: r60439
2002-12-23 16:39:36 +00:00
David Edelsohn
7c02ae17fe expr.c (expand_assignment): Apply special treatment to ARRAY_TYPE.
* expr.c (expand_assignment): Apply special treatment to
        ARRAY_TYPE.

From-SVN: r60437
2002-12-23 10:26:13 -05:00
Kazu Hirata
317d21e95b h8300-protos.h: Update the prototype of expand_a_shift.
* config/h8300/h8300-protos.h: Update the prototype of
	expand_a_shift.
	* config/h8300/h8300.c (expand_a_shift): Change the return
	type to void.
	* config/h8300/h8300.md: Update all the uses of
	expand_a_shift.

From-SVN: r60436
2002-12-23 14:58:53 +00:00
Nathan Sidwell
0c685f1256 tree.c (save_expr): Allow either side of a dyadic operand to be constant.
* tree.c (save_expr): Allow either side of a dyadic operand to be
	constant.

	* doc/portability.texi (portability): Update portability goals.

From-SVN: r60435
2002-12-23 14:43:28 +00:00
GCC Administrator
1df7e439e1 Daily bump.
From-SVN: r60430
2002-12-23 08:17:42 +00:00
Kazu Hirata
ade53a5036 * config/h8300/h8300.c (output_a_shift): Remove unused code.
From-SVN: r60423
2002-12-23 07:46:32 +00:00
Mark Mitchell
d317855ebc stor-layout.c (update_alignment_for_field): Guard use of ADJUST_FIELD_ALIGN with #ifdef.
* stor-layout.c (update_alignment_for_field): Guard use of
	ADJUST_FIELD_ALIGN with #ifdef.

From-SVN: r60422
2002-12-23 05:10:14 +00:00
Mark Mitchell
d0ff2db506 stor-layout.c (update_alignment_for_field): Use ADJUST_FIELD_ALIGN when computing the alignment for a zero-width bitfield...
* stor-layout.c (update_alignment_for_field): Use
	ADJUST_FIELD_ALIGN when computing the alignment for a zero-width
	bitfield when PCC_BITFIELD_TYPE_MATTERS.

From-SVN: r60419
2002-12-23 02:10:18 +00:00
Joseph Myers
bea096ccbf * treelang.texi: Use @ifnottex instead of @ifinfo.
From-SVN: r60417
2002-12-22 21:48:29 +00:00
Nathan Sidwell
081cebb27a re PR c++/8572 (ICE with external definition of conversion operator to internal class within template class)
cp:
	PR c++/8572
	* cp-tree.h (grokoptypename): Add SCOPE parameter.
	* decl2.c (grokoptypename): Add SCOPE parameter. tsubst the type
	if in a template scope.
	* parse.y (unoperator): Return the scope.
	(operator_name): Adjust grokoptypename call.
testsuite:
	* g++.dg/parse/conv_op1.C: New test.

From-SVN: r60416
2002-12-22 21:32:28 +00:00
Kazu Hirata
96e13905ad * genautomata.c: Fix comment typos.
From-SVN: r60415
2002-12-22 18:30:28 +00:00
Jan Hubicka
66b4e47860 params.def (tracer-min-branch-probability-feedback): Fix default.
* params.def (tracer-min-branch-probability-feedback): Fix default.
	* final.c (compute_alignments): Use profile to avoid code bloat.

From-SVN: r60413
2002-12-22 17:24:38 +00:00
Anthony Green
fba1caab66 gcj.texi (Limitations): Add note about org.xml.sax and org.w3c.dom.
2002-12-22  Anthony Green  <green@redhat.com>

	* gcj.texi (Limitations): Add note about org.xml.sax and
	org.w3c.dom.

From-SVN: r60411
2002-12-22 16:46:02 +00:00
Kriang Lerdsuwanakij
4f09be9143 cp-tree.h (make_unbound_class_template): Use tsubst_flags_t.
* cp-tree.h (make_unbound_class_template): Use tsubst_flags_t.
	* decl.c (make_unbound_class_template): Adjust.  Check for tf_error.
	* pt.c (tsubst) [OFFSET_TYPE]: Check for tf_error.

From-SVN: r60407
2002-12-22 16:01:27 +00:00
Kazu Hirata
a7612343f3 h8300.c (get_shift_alg): Make shift insn sequences end with a valid cc0 whenever possible.
* config/h8300/h8300.c (get_shift_alg): Make shift insn
	sequences end with a valid cc0 whenever possible.

From-SVN: r60406
2002-12-22 15:02:30 +00:00
Kazu Hirata
8fb52ad1f0 h8300.md (negsf2): New.
* config/h8300/h8300.md (negsf2): New.
	(*negsf2_h8300): Likewise.
	(*negsf2_h8300hs): Likewise.

From-SVN: r60405
2002-12-22 14:45:52 +00:00
GCC Administrator
c498ccffc7 Daily bump.
From-SVN: r60404
2002-12-22 08:18:02 +00:00
Geoffrey Keating
2a77af27d1 integrate.c (output_inline_function): Don't hold private pointers to 'struct function' over GC calls.
* integrate.c (output_inline_function): Don't hold private
	pointers to 'struct function' over GC calls.

From-SVN: r60396
2002-12-22 06:42:16 +00:00
Kaz Kojima
5040eb00ef lib1funcs.asm (__fpscr_values): Conditionalize with NO_FPSCR_VALUES.
* config/sh/lib1funcs.asm (__fpscr_values): Conditionalize with
	NO_FPSCR_VALUES.
	* config/sh/t-linux (TARGET_LIBGCC2_CFLAGS): Add -DNO_FPSCR_VALUES.

From-SVN: r60395
2002-12-21 23:26:16 +00:00
Josef Zlomek
7887df6271 * gcc.c-torture/compile/20021220-1.c: Removed until bug fix is approved.
From-SVN: r60394
2002-12-21 20:39:53 +00:00
Kazu Hirata
5d7501365b h8300.md (zero_extendqisi2): Correct the length.
* config/h8300/h8300.md (zero_extendqisi2): Correct the
	length.

From-SVN: r60389
2002-12-21 18:45:37 +00:00
Kazu Hirata
f7e42925f6 h8300.md (*zero_extendqihi2_h8300): Make the second alternative "#".
* config/h8300/h8300.md (*zero_extendqihi2_h8300): Make the
	second alternative "#".
	(*zero_extendqihi2_h8300hs): Likewise.
	(a define_split): New.

From-SVN: r60388
2002-12-21 17:47:32 +00:00
Kazu Hirata
3cee1a78e2 h8300-protos.h: Update the prototype for split_adds_subs.
* config/h8300/h8300-protos.h: Update the prototype for
	split_adds_subs.
	Add prototypes for const_le_2_operand and const_le_6_operand.
	* config/h8300/h8300.c (split_adds_subs): Add an argument to
	specify whether inc/dec should be used when possible.
	(const_le_2_operand): New.
	(const_le_6_operand): Likewise.
	* config/h8300/h8300.md (two peepholes): New.

From-SVN: r60387
2002-12-21 17:43:15 +00:00
GCC Administrator
b06daadc88 Daily bump.
From-SVN: r60386
2002-12-21 08:17:25 +00:00
Kazu Hirata
40b982a9c5 fr30.md: Fix a comment typo.
* config/fr30/fr30.md: Fix a comment typo.
	* config/i386/i386.c: Likewise.
	* config/ip2k/ip2k.h: Likewise.

From-SVN: r60379
2002-12-21 05:22:17 +00:00
Jim Wilson
6095457278 Fix misc SPE instrinsic problems.
* config/rs6000/spe.h (__ev_subifw): Reverse arguments.
	(__ev_subw, __ev_subiw): New.
	(ev_mwlssf, ev_mwlsmf, ev_mwlssfa, ev_mwlsmfa, ev_mwlssfaaw,
	ev_mwlsmfaaw, ev_mwlssfanw, ev_mwlsmfanw): Delete.

From-SVN: r60378
2002-12-20 17:21:23 -08:00
John David Anglin
11f4312758 pa-linux.h (TARGET_HAS_STUBS_AND_ELF_SECTIONS): Delete define.
* pa-linux.h (TARGET_HAS_STUBS_AND_ELF_SECTIONS): Delete define.
	* pa32-linux.h (FUNCTION_OK_FOR_SIBCALL): Delete define.
	* pa.c (pa_function_ok_for_sibcall): Allow non indirect sibcalls on
	TARGET_ELF32.  Add comment on sibcall issues for TARGET_64BIT.

From-SVN: r60377
2002-12-20 23:24:39 +00:00
Kazu Hirata
f9d2de4d0d h8300-protos.h: Add prototypes for incdec_operand and eqne_operator.
* config/h8300/h8300-protos.h: Add prototypes for
	incdec_operand and eqne_operator.
	* config/h8300/h8300.c (incdec_operand): New.
	(eqne_operator): Likewise.
	* config/h8300/h8300.h (CONST_OK_FOR_M): Likewise.
	(CONST_OK_FOR_O): Likewise.
	(CONST_OK_FOR_LETTER_P): Use CONST_OK_FOR_M and
	CONST_OK_FOR_O.
	* config/h8300/h8300.md (UNSPEC_INCDEC): New.
	(addhi3_incdec): New.
	(addsi3_incdec): Likewise.
	(two peepholes): Likewise.

From-SVN: r60375
2002-12-20 20:53:52 +00:00
Kazu Hirata
b47900aa0b h8300.c (dosize): Remove warnings.
* config/h8300/h8300.c (dosize): Remove warnings.
	(print_operand): Likewise.

From-SVN: r60374
2002-12-20 20:40:57 +00:00
Richard Henderson
3094247fd2 alpha.c (decl_has_samegp): New.
* config/alpha/alpha.c (decl_has_samegp): New.
        (samegp_function_operand): Use it.  Rename from
        current_file_function_operand.
        (direct_call_operand): Handle -msmall-text via symbol->jump.
        (tls_symbolic_operand_1): Use T for tprel64, t for smaller tprel.
        (tls_symbolic_operand_type): Likewise.
        (alpha_encode_section_info): Likewise.  Handle -msmall-text.
        (alpha_function_ok_for_sibcall): Use decl_has_samegp.
        (alpha_end_function): Set symbol->jump for functions defined in
        the text section.
        * config/alpha/alpha-protos.h: Update.
        * config/alpha/alpha.h (MASK_SMALL_TEXT, TARGET_SMALL_TEXT): New.
        (TARGET_SWITCHES): Add -msmall-text and -mlarge-text.
        (PREDICATE_CODES): Update.
        * config/alpha/alpha.md (call patterns): Update for
        samegp_function_operand rename; use !samegp reloc if
        TARGET_EXPLICIT_RELOCS.
        * doc/invoke.text: Document -msmall-text and -mlarge-text.

From-SVN: r60373
2002-12-20 11:42:41 -08:00
Tom Tromey
913746e328 re PR java/8955 (switch case statement causes gcj to throw segmentation fault)
* jcf-write.c (generate_bytecode_insns) [SWITCH_EXPR]: Handle case
	where minimum case value is Integer.MIN_VALUE.
	Fixes PR java/8955.

From-SVN: r60372
2002-12-20 19:25:46 +00:00
Ian Dall
8056c5f221 ns32k.md (movdi): Use "l" instead of "f" to match all registers capable of holding a double float.
* config/ns32k/ns32k.md (movdi): Use "l" instead of "f" to match
        all registers capable of holding a double float.
        (*rcond): change name of "reverse branch" insns to
        something more meaningful.
        (*rbgt, *rblt, *rbge, *rble): Reverse branches to handle IEEE
        comparisons properly.
        (*ffs): Change operand 0 from write to read-modify-write.
        (*ffsssi2): Drop constraints from define_expand.

        * config/ns32k/ns32k.h (STORE_RATIO, STORE_BY_PIECES): Avoid using
        MOVE_RATIO as default for store operations.

        * config/ns32k/ns32k.h (enum reg_class, REG_CLASS_NAMES): Add
        LONG_REGS class.
        (CANNOT_CHANGE_MODE_CLASS): Can't subreg LONG_REGS.
        (GO_IF_LEGITIMATE_ADDRESS): Remove spurious abort().
        * config/ns32k/ns32k.c (regclass_map): Add LONG_REGS class.

        * config/ns32k/STATUS: New File
        * config/ns32k/NOTES: New file.

From-SVN: r60370
2002-12-20 10:14:18 -08:00
Kazu Hirata
4639c5c62c ChangeLog: Fix a typo.
* ChangeLog: Fix a typo.
	* class.c: Fix comment typos.
	* cp-tree.h: Likewise.

From-SVN: r60368
2002-12-20 16:11:41 +00:00
Josef Zlomek
7ec5218607 * gcc.c-torture/compile/20021220-1.c: New test.
From-SVN: r60366
2002-12-20 13:18:57 +00:00
Josef Zlomek
6d388066b6 Testcase for http://gcc.gnu.org/ml/gcc-patches/2002-12/msg01106.html "[PATCH]...
Testcase for http://gcc.gnu.org/ml/gcc-patches/2002-12/msg01106.html
"[PATCH] fix bug in jump.c which caused SEGFAULT in loop.c"

From-SVN: r60365
2002-12-20 13:15:14 +00:00
Hartmut Penner
1fec52bedd invoke.texi: Document -mzarch, -mesa, -mcpu= and -march= option for S/390 and zSeries.
* doc/invoke.texi: Document -mzarch, -mesa, -mcpu= and -march=
	option for S/390 and zSeries.
        * config/s390/s390.c (s390_cpu, s390_cpu_string, s390_arch,
        s390_arch_string): New variables.
        (override_options): Checking for options and setting of
        appropriate target_flags, cpu and arch flags.
        * config/s390/s390.h: (processor_type): New enum.
        (TARGET_SWITCHES): New switches -mesa/zarch.
        * config/s390/s390.md: New attribute 'cpu'.

From-SVN: r60364
2002-12-20 13:02:42 +00:00
GCC Administrator
0c58a6399d Daily bump.
From-SVN: r60363
2002-12-20 08:18:11 +00:00
Kazu Hirata
5bdc58781b c-pretty-print.h: Fix comment typos.
* c-pretty-print.h: Fix comment typos.
	* integrate.c: Likewise.
	* varasm.c: Likewise.
	* config/c4x/c4x.h: Likewise.
	* config/c4x/c4x.md: Likewise.
	* config/fr30/fr30.md: Likewise.
	* config/frv/frv.c: Likewise.
	* config/h8300/h8300.c: Likewise.
	* config/i386/i386.c: Likewise.
	* config/i386/i386.h: Likewise.
	* config/ia64/ia64.c: Likewise.
	* config/ia64/ia64.h: Likewise.
	* config/ip2k/ip2k.md: Likewise.
	* config/m68hc11/m68hc11-crt0.S: Likewise.
	* config/m68hc11/m68hc11.h: Likewise.
	* config/m68hc11/m68hc11.md: Likewise.
	* config/m68hc11/m68hc12.h: Likewise.
	* config/mcore/mcore.md: Likewise.
	* config/mips/mips.c: Likewise.
	* config/mips/mips.md: Likewise.
	* config/mmix/mmix-modes.def: Likewise.
	* config/pa/pa.c: Likewise.
	* config/rs6000/rs6000.c: Likewise.
	* config/rs6000/rs6000.h: Likewise.
	* config/rs6000/rs6000.md: Likewise.

From-SVN: r60354
2002-12-20 04:30:57 +00:00
Kazu Hirata
539dbd15f3 h8300.md (output_a_shift): Clean up the code to output shifts using rotation.
* config/h8300/h8300.md (output_a_shift): Clean up the code to
	output shifts using rotation.

From-SVN: r60353
2002-12-20 04:05:14 +00:00
Zdenek Dvorak
e505be8547 * flow.c (allocate_reg_life_data): Reset REG_FREQ.
From-SVN: r60344
2002-12-20 01:18:43 +00:00
Kazu Hirata
191ff85279 h8300.md (pushqi_h8300): Don't push the stack pointer.
* config/h8300/h8300.md (pushqi_h8300): Don't push the stack
	pointer.
	(pushqi_h8300hs): Likewise.
	(pushhi_h8300): Likewise.
	(pushhi_h8300hs): Likewise.

From-SVN: r60343
2002-12-20 00:08:06 +00:00
Devang Patel
3ab68120e2 Add support for darwin linker option -dynamic.
From-SVN: r60341
2002-12-19 15:46:49 -08:00
J"orn Rennecke
b2dfd40f47 * sched-rgn.c (init_regions): Update comment.
From-SVN: r60340
2002-12-19 23:45:40 +00:00
David Edelsohn
310b9b1d76 rs6000.md (define_attr type): Remove altivec.
* config/rs6000/rs6000.md (define_attr type): Remove altivec.
        * config/rs6000/altivec.md (movv4si_internal): Set correct instruction
        attributes.
        (movv8hi_internal,movv16qi_internal,movv4sf_internal): Same.
        (get_vrsave_internal,set_vrsave_internal): Same.
        (altivec_vspltisb,altivec_vspltish,altivec_vspltisw): Same.
        (absv16qi2,absv8hi2,absv4si2,absv4sf2): Same
        (altivec_abss_v16qi,altivec_abss_v8hi,altivec_abss_v4si): Same.

From-SVN: r60339
2002-12-19 18:04:55 -05:00
Casper S. Hornstrup
e91f04de4b i386.c (ix86_handle_cdecl_attribute): Check for attributes incompatible with fastcall attribute.
* config/i386/i386.c (ix86_handle_cdecl_attribute): Check for
        attributes incompatible with fastcall attribute.
        (ix86_handle_regparm_attribute): Likewise.

        * config/i386/i386.c (ix86_comp_type_attributes): Check for mismatched
        fastcall types.

        * config/i386/cygwin.h (TARGET_OS_CPP_BUILTINS): Add fastcall
        attributes.
        (ASM_OUTPUT_LABELREF): Define as i386_pe_output_labelref.
        * config/i386/i386-protos.h (i386_pe_output_labelref): Declare.
        * config/i386/winnt.c (i386_pe_mark_dllimport). Add __imp_ prefix in
        i386_pe_output_labelref rather than here.
        (gen_fastcall_suffix): New function. Decorates a label name with the
        fastcall prefix (@) and the stdcall suffix.
        (i386_pe_encode_section_info): Call gen_fastcall_suffix() if a symbol
        has a fastcall attribute.
        (i386_pe_output_labelref): New function. Outputs a label reference.
        * config/i386/i386.c (ix86_attribute_table): Accept 'fastcall' as a
        valid attribute.
        (ix86_return_pops_args): Fastcall functions pop the stack.
        (init_cumulative_args): Reserve registers ECX and EDX if function has
        fastcall attribute.
        (function_arg): Use registers ECX and EDX if function has fastcall
        attribute.
        * config/i386/i386.h (CUMULATIVE_ARGS): Add fastcall attribute flag.
        (DLL_IMPORT_EXPORT_PREFIX): Redefine as '#'.
        (FASTCALL_PREFIX): Define as '@'.
        * config/i386/mingw32.h (TARGET_OS_CPP_BUILTINS): Add fastcall
        attributes.
        * doc/extend.texi: Add documentation of fastcall attribute.

        * testsuite/gcc.dg/i386-fastcall-1.c: New.

Co-Authored-By: Danny Smith <dannysmith@users.sourceforge.net>
Co-Authored-By: Eric Kohl <ekohl@rz-online.de>

From-SVN: r60337
2002-12-19 14:00:33 -08:00
Nathanael Nerode
61138bb628 configure.in: FORBUILD when build!=host changed from ../$build-alias to ../build-$build_alias...
* configure.in: FORBUILD when build!=host changed from
	../$build-alias to ../build-$build_alias to match change made
	in top directory.
	* configure: Regenerated.

From-SVN: r60336
2002-12-19 21:44:30 +00:00
Eric Botcazou
039baf9e87 re PR rtl-optimization/8988 (gcc3.2 and 3.2.1 with -O2 and -mcpu=i386 generates code that segfaults)
PR optimization/8988
	* loop.c (maybe_eliminate_biv): Kill REG_EQUAL notes mentioning
	the biv when eliminating.

From-SVN: r60334
2002-12-19 20:47:12 +00:00
Devang Patel
ee8acf894e This was approved for 3.4 BIB branch.
This was approved for 3.4 BIB branch. But since it is dead now, I am putting
this in mainline sources.

2002-12-19  Devang Patel  <dpatel@apple.com>
      * gcc.c (struct default_compiler): Recognizes input file name with
      .CPP extension as C++ source files
      * cp/lang-spec.h: Same
      * doc/invoke.texi:  Add documentation for .CPP support.

From-SVN: r60330
2002-12-19 12:34:43 -08:00
Aldy Hernandez
598119bb20 re PR other/8553 (AltiVec vec_abs broken at -O0 with register keyword)
2002-12-19  Aldy Hernandez  <aldyh@redhat.com>

	PR 8553

	* config/rs6000/altivec.md ("absv8hi2"): Add & to clobbered
	registers.
	("absv16qi2"): Same.
	("absv4si2"): Same.
	("absv4sf2"): Same.
	("altivec_abss_v16qi"): Same.
	("altivec_abss_v8hi"): Same.
	("altivec_abss_v4si"): Same.

From-SVN: r60324
2002-12-19 19:57:29 +00:00
Ulrich Weigand
3af97654cd s390.md ("*tsthiCCT", [...]): New insns.
* config/s390/s390.md ("*tsthiCCT", "*tsthiCCT_cconly",
	"*tstqiCCT", "*tstqiCCT_cconly"): New insns.

From-SVN: r60322
2002-12-19 19:55:12 +00:00
Aldy Hernandez
7f04df0d2d add PR# to last fix
From-SVN: r60321
2002-12-19 19:49:27 +00:00
Jason Merrill
385405940e tweak
From-SVN: r60316
2002-12-19 13:25:03 -05:00
Jason Merrill
92f93e54a3 Handle anonymous unions at the tree level.
C++ ABI change: Mangle anonymous unions using the name of their
        first named field (by depth-first search).  Should not cause
        binary compatibility problems, though, as the compiler previously
        didn't emit anything for affected unions.
        * cp-tree.def (ALIAS_DECL): New tree code.
        * decl2.c (build_anon_union_vars): Build ALIAS_DECLs.  Return the
        first field, not the largest.
        (finish_anon_union): Don't mess with RTL.  Do set DECL_ASSEMBLER_NAME,
        push the decl, and write it out at namespace scope.
        * decl.c (lookup_name_real): See through an ALIAS_DECL.
        (pushdecl): Add namespace bindings for ALIAS_DECLs.
        * rtti.c (unemitted_tinfo_decl_p): Don't try to look at the name
        of a decl which doesn't have one.
        * typeck.c (build_class_member_access_expr): Don't recurse if
        we already have the type we want.

From-SVN: r60315
2002-12-19 12:43:54 -05:00
Jason Merrill
0ca7178c84 Handle anonymous unions at the tree level.
C++ ABI change: Mangle anonymous unions using the name of their
        first named field (by depth-first search).  Should not cause
        binary compatibility problems, though, as the compiler previously
        didn't emit anything for affected unions.
        * cp-tree.def (ALIAS_DECL): New tree code.
        * decl2.c (build_anon_union_vars): Build ALIAS_DECLs.  Return the
        first field, not the largest.
        (finish_anon_union): Don't mess with RTL.  Do set DECL_ASSEMBLER_NAME,
        push the decl, and write it out at namespace scope.
        * decl.c (lookup_name_real): See through an ALIAS_DECL.
        (pushdecl): Add namespace bindings for ALIAS_DECLs.
        * rtti.c (unemitted_tinfo_decl_p): Don't try to look at the name
        of a decl which doesn't have one.
        * typeck.c (build_class_member_access_expr): Don't recurse if
        we already have the type we want.

From-SVN: r60314
2002-12-19 12:16:26 -05:00
Eric Botcazou
e54b4cae03 re PR target/8340 (ICE on x86 inline asm w/ -fPIC)
PR target/8340
	* stmt.c (expand_asm_operands): Produce an error when
	the PIC register is clobbered.

From-SVN: r60313
2002-12-19 17:06:46 +00:00
Daniel Berlin
7f22efe1d6 Makefile.in (OBJS): Add alloc-pool.o
2002-12-18  Daniel Berlin  <dberlin@dberlin.org>

	* Makefile.in (OBJS): Add alloc-pool.o
	(alloc-pool.o): New object.

	* alloc-pool.c: New file.
	* alloc-pool.h: New file.

From-SVN: r60312
2002-12-19 15:53:46 +00:00
Kriang Lerdsuwanakij
da9701a61c re PR c++/8099 (Friend classes and template specializations)
PR c++/8099
	* friend.c (make_friend_class): Allow partial specialization
	when declaration is not a template friend.

	* g++.dg/template/friend9.C: New test.

From-SVN: r60308
2002-12-19 15:11:29 +00:00
Kriang Lerdsuwanakij
cab7a9a3b9 re PR c++/3663 (G++ doesn't check access control during template instanation)
PR c++/3663
	* pt.c (lookup_template_class): Copy TREE_PRIVATE and
	TREE_PROTECTED to created decl nodes.

	* g++.dg/template/access7.C: New test.

From-SVN: r60307
2002-12-19 14:45:19 +00:00
Kazu Hirata
7f60195472 * intdoc.in: Fix typos.
From-SVN: r60306
2002-12-19 14:27:13 +00:00
GCC Administrator
c034372c80 Daily bump.
From-SVN: r60301
2002-12-19 08:18:11 +00:00
Jason Merrill
4f7c4327d4 omit needless braces
From-SVN: r60293
2002-12-19 02:29:28 -05:00
Andrew Haley
71d082af2f re PR libgcj/8945 (StringTokenizer)
2002-12-18  Andrew Haley  <aph@redhat.com>

	* parse.y (patch_invoke): Force evaluation order when `check' is
	set.  For PR libgcj/8945.

From-SVN: r60290
2002-12-19 06:43:12 +00:00
Loren James Rittle
5a0ba8c9ee gcc.c (validate_switches): Robustify against skipping past '\0'.
2002-12-18  Loren James Rittle  <rittle@labs.mot.com>

	* gcc.c (validate_switches): Robustify against skipping past '\0'.

From-SVN: r60283
2002-12-19 05:22:53 +00:00
Geoffrey Keating
064b6c700a config.gcc: Set extra_objs in the generic Darwin rule, not in the machine-specific rules.
* config.gcc: Set extra_objs in the generic Darwin rule,
	not in the machine-specific rules.

From-SVN: r60282
2002-12-19 05:19:47 +00:00
Kazu Hirata
272d0bee76 ChangeLog: Follow spelling conventions.
* ChangeLog: Follow spelling conventions.
	* ChangeLog.2: Likewise.
	* ChangeLog.4: Likewise.
	* ChangeLog.5: Likewise.
	* cppexp.c: Likewise.
	* df.c: Likewise.
	* gcov.c: Likewise.
	* gengtype.c: Likewise.
	* reload1.c: Likewise.
	* sched-rgn.c: Likewise.
	* stmt.c: Likewise.
	* stor-layout.c: Likewise.
	* timevar.c: Likewise.
	* toplev.c: Likewise.
	* tree.h: Likewise.
	* varasm.c: Likewise.
	* config/fr30/fr30.md: Likewise.
	* config/i386/i386.c: Likewise.
	* config/ia64/ia64.c: Likewise.
	* config/pa/pa.c: Likewise.

From-SVN: r60281
2002-12-19 05:18:13 +00:00
Roger Sayle
358ecb103a * basic-block.h (flow_bb_inside_loop_p): Correct prototype.
From-SVN: r60279
2002-12-19 02:59:15 +00:00
Mark Mitchell
50cb905943 class.c (build_base_field): Do not set DECL_PACKED on the FIELD_DECL.
* class.c (build_base_field): Do not set DECL_PACKED on the
	FIELD_DECL.

From-SVN: r60277
2002-12-19 02:31:50 +00:00
Kazu Hirata
e1618452c3 g77.texi: Fix typos.
* g77.texi: Fix typos.
	* intdoc.texi: Likewise.
	* news.texi: Follow spelling conventions.

From-SVN: r60271
2002-12-19 00:27:52 +00:00
Aldy Hernandez
d486dec6f0 altivec.h (vec_cmplt macro): Reverse arguments in macro.
2002-12-18  Aldy Hernandez  <aldyh@redhat.com>

	* config/rs6000/altivec.h (vec_cmplt macro): Reverse arguments in
	macro.
	(vec_cmplt C++ functions): Reverse arguments.

From-SVN: r60269
2002-12-18 23:44:18 +00:00
Geoffrey Keating
40b4cdbfa9 t-rs6000: Move contents to t-fprules...
* config/rs6000/t-rs6000: Move contents to t-fprules,
	add rules for dependencies of rs6000.o and to build rs6000-c.o
	* config/rs6000/t-fprules: New file from t-rs6000.
	* config/rs6000/t-beos: Remove soft-fp rules.
	* config/rs6000/t-ppccomm: Likewise.
	* config/rs6000/t-newas: Likewise.
	* config/rs6000/t-rs6000-c-rule: Delete.
	* config.gcc: Use t-fprules for rs6000/ ports when appropriate.
	Use t-rs6000 for all rs6000/ ports instead of t-rs6000-c-rule.
	Create generic Darwin rules.

From-SVN: r60265
2002-12-18 22:45:36 +00:00
Geoffrey Keating
892aebc9f1 * gengenrtl.c (gencode): Delete unnecessary rtl_obstack declaration.
From-SVN: r60264
2002-12-18 22:37:49 +00:00
Jason Merrill
b197bc0172 new test
From-SVN: r60263
2002-12-18 15:00:28 -05:00
Doug Evans
9d3030465c m32r.c (addr24_operand): Fix arg to CONSTANT_POOL_ADDRESS_P and LIT_NAME_P.
* m32r/m32r.c (addr24_operand): Fix arg to CONSTANT_POOL_ADDRESS_P
	and LIT_NAME_P.
	(move_src_operand): Remove compile-time warning.
	* m32r/m32r.h (ROUND_ADVANCE_ARG): Ditto.

From-SVN: r60262
2002-12-18 19:23:58 +00:00
Jason Merrill
a597750cf1 re PR c++/8674 (ICE in cp_expr_size, at cp/cp-lang.c:307)
PR c++/8674
        * call.c (build_over_call): Check specifically for TARGET_EXPR
        when eliding.

From-SVN: r60260
2002-12-18 11:43:20 -05:00
Jason Merrill
328c4f55b9 re PR c++/6255 (ICE with templatess)
PR c++/6255
        * decl.c (lookup_name_real): Build a new TYPENAME_TYPE rather than
        modifying the old one.

From-SVN: r60259
2002-12-18 11:42:23 -05:00
Jason Merrill
914fc8d6ca new test
From-SVN: r60258
2002-12-18 11:41:11 -05:00
Jason Merrill
80d83b160f unwind-dw2-fde.c (frame_downheap): Split out from...
* unwind-dw2-fde.c (frame_downheap): Split out from...
        (frame_heapsort): Here.

From-SVN: r60253
2002-12-18 11:27:56 -05:00
Nick Clifton
a15791b0c9 Only invoke testsuite_flags if the libstdc++-v3 directory has been found.
From-SVN: r60252
2002-12-18 15:50:40 +00:00
Gabriel Dos Reis
e220f0a455 cp-tree.h (struct tree_srcloc): Use location_t.
* cp-tree.h (struct tree_srcloc): Use location_t.
        (SOURCE_LOCUS): New.
        (SRCLOC_FILE, SRCLOC_LINE): Adjust.

From-SVN: r60247
2002-12-18 13:07:42 +00:00
GCC Administrator
7552fc4305 Daily bump.
From-SVN: r60244
2002-12-18 08:17:54 +00:00
Jason Merrill
9ec227134b tree.c (make_node): Don't set TREE_TYPE on 's' class nodes.
* tree.c (make_node): Don't set TREE_TYPE on 's' class nodes.
        (build1): Always set TREE_SIDE_EFFECTS on 's' class nodes.

From-SVN: r60237
2002-12-18 01:36:51 -05:00
Jason Merrill
efc7052de7 decl.c (finish_function): Also complain about no return in templates.
* decl.c (finish_function): Also complain about no return in
        templates.
        * semantics.c (finish_return_stmt): Also call check_return_expr in
        templates.
        * typeck.c (check_return_expr): In a template, just remember that we
        saw a return.

From-SVN: r60236
2002-12-18 01:26:58 -05:00
Jason Merrill
a3a0177e77 * gcc.c (do_spec_1) ['W']: End any pending argument from the braces.
From-SVN: r60235
2002-12-18 01:07:26 -05:00
Jason Merrill
f32ac70dae calls.c (expand_call): Don't try to be clever about expanding the return slot address.
* calls.c (expand_call): Don't try to be clever about expanding
        the return slot address.

From-SVN: r60234
2002-12-18 00:57:43 -05:00