Commit Graph

21531 Commits

Author SHA1 Message Date
Kazu Hirata 3c5cb3e4f3 i386-protos.h: Add a prototype for ix86_reverse_condition.
* config/i386/i386-protos.h: Add a prototype for
	ix86_reverse_condition.
	* config/i386/i386.c (ix86_reverse_condition): New.
	* config/i386/i386.h (REVERSE_CONDITION): Use
	ix86_reverse_condition.
	* config/i386/i386.md: Use ix86_reverse_condition instead of
	REVERSE_CONDITION.

From-SVN: r79556
2004-03-16 23:29:22 +00:00
J. Brobecker fd5580cb8e * dwarf2out.c (loc_descriptor_from_tree): Add handling for MIN_EXPR.
From-SVN: r79549
2004-03-16 21:29:03 +00:00
Nathanael Nerode 78fab00fb0 re PR bootstrap/12974 (gcc-3.4/4.0-20031105 bootstrap failure [MinGW])
2004-03-16  Nathanael Nerode  <neroden@gcc.gnu.org>

	PR bootstrap/12974
	* Makefile.in: Pass $(INCLUDES) down to libgcc.mk explicitly.

From-SVN: r79547
2004-03-16 21:09:22 +00:00
Paolo Bonzini 4a5eab38a4 c-common.c (c_common_type_for_mode): Build vector types on demand.
gcc/ChangeLog
2004-03-16  Paolo Bonzini  <bonzini@gnu.org>

	* c-common.c (c_common_type_for_mode): Build vector types on
	demand.
	(handle_mode_attribute): Deprecate using the mode attribute
	to create vector types.  Fix indentation.
	(vector_type_node_list): Remove.
	(handle_vector_size_attribute): Create vector types on demand.
	Strip a NON_LVALUE_EXPR from the attribute if there is one.
	* c-typeck.c (comptypes): Make vector types compatible if they
	have the same underlying mode.
	(convert_for_assignment): Use comptypes to convert between
	vector types.
	* tree.c (build_common_tree_nodes_2): Do not create vector types.
	* config/arm/arm.c (arm_init_iwmmxt_builtins): Create necessary
	vector types.
	* tree.h: Remove vector types.
	* config/i386/i386.c (i386_init_mmx_sse_builtins): Likewise.
	* config/rs6000/rs6000.c (rs6000_init_builtins): Likewise.
	(V16QI_type_node, V2SI_type_node, V2SF_type_node, V4HI_type_node,
	V4SI_type_node, V4SF_type_node, V8HI_type_node): New globals.
	* doc/extend.texi (Vector Types): Document how to use the
	vector_size attribute to create vectors, rather than mode.

	* config/arm/mmintrin.h: Use vector_size attribute, not mode.
	* config/i386/emmintrin.h: Likewise.
	* config/i386/mmintrin.h: Likewise.
	* config/i386/xmmintrin.h: Likewise.
	* config/sh/ushmedia.h: Likwise.

testsuite/ChangeLog
2004-03-16  Paolo Bonzini  <bonzini@gnu.org>

	* g++.dg/eh/simd-1.C: Use vector_size attribute, not mode.
	* g++.dg/eh/simd-2.C: Likewise.
	* g++.dg/init/array10.C: Likewise.
	* gcc.c-torture/compile/simd-1.c: Likewise.
	* gcc.c-torture/compile/simd-2.c: Likewise.
	* gcc.c-torture/compile/simd-3.c: Likewise.
	* gcc.c-torture/compile/simd-4.c: Likewise.
	* gcc.c-torture/compile/simd-6.c: Likewise.
	* gcc.c-torture/execute/simd-1.c: Likewise.
	* gcc.c-torture/execute/simd-2.c: Likewise.
	* gcc.dg/compat/vector-defs.h: Likewise.
	* gcc.dg/20020531-1.c: Likewise.
	* gcc.dg/altivec-3.c: Likewise.
	* gcc.dg/altivec-4.c: Likewise.
	* gcc.dg/altivec-varargs-1.c: Likewise.
	* testsuite/gcc.dg/compat/vector-defs.h: Likewise.
	* gcc.dg/i386-mmx-3.c: Likewise.
	* gcc.dg/i386-sse-4.c: Likewise.
	* gcc.dg/i386-sse-5.c: Likewise.
	* gcc.dg/i386-sse-8.c: Likewise.
	* gcc.dg/simd-1.c: Likewise.
	* gcc.dg/20030218-1.c: Likewise.  Plus, do not declare
	__ev64_opaque__ since the machine description provides it.

Index: c-common.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/c-common.c,v
retrieving revision 1.487
diff -u -r1.487 c-common.c
--- c-common.c	26 Feb 2004 01:24:37 -0000	1.487
+++ c-common.c	10 Mar 2004 10:25:28 -0000
@@ -1874,38 +1874,12 @@
   if (mode == TYPE_MODE (build_pointer_type (integer_type_node)))
     return unsignedp ? make_unsigned_type (mode) : make_signed_type (mode);

-  switch (mode)
+  if (VECTOR_MODE_P (mode))
     {
-    case V16QImode:

From-SVN: r79544
2004-03-16 20:37:31 +00:00
Kazu Hirata b862b3b330 freebsd-spec.h, [...]: Update copyright.
* config/freebsd-spec.h, config/arc/arc-protos.h,
	config/arm/aout.h, config/arm/elf.h, config/arm/freebsd.h,
	config/arm/linux-gas.h, config/arm/semi.h,
	config/cris/cris-protos.h, config/i386/xm-djgpp.h,
	config/ia64/freebsd.h, config/mips/7000.md,
	config/mips/9000.md, config/ns32k/ns32k-protos.h,
	config/sparc/pbd.h: Update copyright.

From-SVN: r79537
2004-03-16 18:14:33 +00:00
Ralf Corsepius 314733e244 re PR target/14577 (Switching sh-rtems to ELF)
2004-03-16  Ralf Corsepius <corsepiu@faw.uni-ulm.de>

	PR target/14577
	* config.gcc: Switch sh-*-rtems* to ELF.  Add sh-*-rtemscoff.

From-SVN: r79536
2004-03-16 16:43:06 +00:00
Paolo Bonzini 6621d78e99 combine.c (combine_simplify_rtx): Remove the "last" parameter and its documentation.
2004-03-16  Paolo Bonzini  <bonzini@gnu.org>

	* combine.c (combine_simplify_rtx): Remove the "last"
	parameter and its documentation.  Adjust recursive calls.
	(simplify_logical): Always perform the only simplification
	controlled by "last", if the simplified expression is
	actually different.
	(try_combine): Do not pass the "last" parameter to
	combine_simplify_rtx.

From-SVN: r79534
2004-03-16 16:14:50 +00:00
Richard Sandiford 4e7edcca30 re PR target/14599 (ieee/20000320-1.c fails for -mips16 using -O2 and above)
PR target/14599
	* config/mips/mips.md (UNSPEC_GP): New constant.
	* config/mips/mips.c (CONST_GP_P): Expect the CONST to contain
	an UNSPEC instead of (reg $gp).
	(mips16_gp_pseudo_reg): Change accordingly.
	(print_operand): Print $gp directly when handling CONST_GP_P.

From-SVN: r79527
2004-03-16 09:22:36 +00:00
Richard Zidlicky 3704aae954 config.gcc, linux.h: Implement with-cpu for m68k-linux.
* config.gcc, config/m68k/linux.h: Implement with-cpu for m68k-linux.
	* longlong.h: Make code 68060 clean when compiling for m68060.

From-SVN: r79524
2004-03-16 05:12:25 +01:00
Richard Zidlicky 8ac658b645 m68k.md: Fix constraints for bitfield instructions.
2004-03-16   Richard Zidlicky  <rz@linux-m68k.org>

	* config/m68k/m68k.md: Fix constraints for bitfield instructions.
	* doc/md.texi: Clarify description of "i" constraint.

From-SVN: r79523
2004-03-16 04:54:33 +01:00
James E Wilson 1a4786726d Patch for SB-1 DFA scheduler work.
* config/mips/mips.md (type): Split load into load, fpload, fpidxload.
	Split store into store, fpstore, fpidxstore.  Fix all uses.
	* config/mips/5400.md (ir_vr54_load, ir_vr54_store, ir_vr54_fstore):
	Likewise.
	* config/mips/5500.md (ir_vr55_load, i5_vr55_store): Likewise.
	* config/mips/7000.md (rm7_ld, rm7_st): Likewise.
	* config/mips/9000.md (rm9k_load, rm9k_store): Likewise.
	* config/mips/sr71k.md (ir_sr70_load, ir_sr70_store, ir_sr70_fload,
	ir_sr70_fstore): Likewise.

From-SVN: r79522
2004-03-15 18:11:41 -08:00
Richard Henderson 0977ab3aa6 re PR middle-end/14535 (exception throwing in virtual function doesn't turn on the local destructors)
PR middle-end/14535
        * except.c (collect_one_action_chain): Record action for cleanup
        outer of exception spec.
	* g++.dg/eh/spec7.C: New.

From-SVN: r79521
2004-03-15 16:35:17 -08:00
Ian Lance Taylor 4e4083addf host-darwin.c (darwin_rs6000_gt_pch_use_address): Fix the check for abort and only do the mmap if we can.
2004-03-15  Ian Lance Taylor  <ian@wasabisystems.com>

        * config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_use_address):
        Fix the check for abort and only do the mmap if we can.

From-SVN: r79512
2004-03-15 14:47:57 -08:00
Eric Botcazou ed38d6fe91 sparc.h: Rework comments about the code model in 64-bit environment and the mode 'Pmode'.
* config/sparc/sparc.h: Rework comments about the code model
	in 64-bit environment and the mode 'Pmode'.
	* doc/invoke.texi (SPARC options): Rework description of the
	different code models supported in 64-bit environment.

From-SVN: r79509
2004-03-15 21:06:45 +00:00
Kazu Hirata 1f8551b263 defaults.h (REVERSIBLE_CC_MODE): Define.
* defaults.h (REVERSIBLE_CC_MODE): Define.
	* jump.c (reversed_comparison_code_parts): Don't check if
	REVERSIBLE_CC_MODE is defined.

From-SVN: r79507
2004-03-15 18:51:53 +00:00
Kazu Hirata ca2b05bae5 c-incpath.c, [...]: Update copyright.
gcc/
	* c-incpath.c, c-incpath.h, c-pch.c, c.opt, cppexp.c,
	et-forest.h, genattr.c, ggc-none.c, hosthooks-def.h,
	hosthooks.h, params.h, ra-colorize.c, web.c,
	config/darwin-c.c, config/alpha/freebsd.h, config/arm/pe.c,
	config/avr/avr-protos.h, config/avr/avr.md,
	config/fr30/fr30-protos.h, config/fr30/fr30.md,
	config/h8300/fixunssfsi.c, config/i386/darwin.h,
	config/i386/freebsd.h, config/i386/freebsd64.h,
	config/ia64/hpux.h, config/ia64/unwind-ia64.c,
	config/ip2k/libgcc.S, config/m32r/xm-m32r.h,
	config/mmix/mmix-modes.def, config/ns32k/netbsd.h,
	config/ns32k/ns32k.md, config/pa/pa64-hpux.h,
	config/pa/pa64-regs.h, config/rs6000/aix41.h,
	config/rs6000/aix43.h, config/rs6000/host-darwin.c,
	config/sparc/aout.h, config/sparc/freebsd.h,
	config/sparc/litecoff.h, config/vax/vax-protos.h,
	doc/hostconfig.texi, doc/include/gcc-common.texi: Update
	copyright.

gcc/cp/
	* cp-lang.c, ptree.c: Update copyright.

From-SVN: r79506
2004-03-15 18:20:51 +00:00
Paul Brook 983e64842f * config/arm/arm.c (thumb_expand_prologue): Tie prologue insns to fp.
From-SVN: r79496
2004-03-15 15:30:58 +00:00
Gabriel Dos Reis 5c3c69f4ba c-pretty-print.c (pp_c_semicolon): Fix formatting.
* c-pretty-print.c (pp_c_semicolon): Fix formatting.
	(pp_c_cv_qualifier): Document.
	(pp_c_space_for_pointer_operator): Likewise.
	(pp_c_integer_constant): Likewise.
	(pp_c_identifier): Likewise.
	(pp_c_init_declarator): Don't print function body.

From-SVN: r79492
2004-03-15 10:32:41 +00:00
Joseph Myers 2dd7696088 contrib.texi, [...]: Capitalize "gcc", "g++" and "g77" or mark up with appropriate markup.
* doc/contrib.texi, doc/extend.texi, doc/gcov.texi,
	doc/install.texi, doc/invoke.texi, doc/makefile.texi,
	doc/sourcebuild.texi, doc/tm.texi, doc/trouble.texi: Capitalize
	"gcc", "g++" and "g77" or mark up with appropriate markup.  Adjust
	wording and grammar.

From-SVN: r79482
2004-03-14 22:29:38 +00:00
Roger Sayle ae2bcd98fa alias.c (get_alias_set): Replace calls via (*lang_hooks.foo) () with lang_hooks.foo ().
* alias.c (get_alias_set): Replace calls via (*lang_hooks.foo) ()
	with lang_hooks.foo ().
	* builtins.c (expand_builtin_va_arg): Likewise.
	* c-common.c (fname_as_string, c_common_truthvalue_conversion,
	c_common_type_for_mode, c_common_nodes_and_builtins,
	handle_mode_attribute, handle_vector_size_attribute): Likewise.
	* c-convert.c (convert): Likewise.
	* c-format.c (check_format_types): Likewise.
	* c-objc-common.c (c_tree_printer): Likewise.
	* c-typeck.c (build_unary_op, build_conditional_expr,
	build_binary_op): Likewise.
	* calls.c (try_to_integrate, expand_call,
	emit_library_call_value_1): Likewise.
	* cgraph.c (cgraph_node_name, cgraph_function_possibly_inlined_p):
	Likewise.
	* cgraphunit.c (record_call_1, cgraph_analyze_function,
	cgraph_expand_function): Likewise.
	* convert.c (convert_to_pointer, convert_to_integer): Likewise.
	* coverage.c (build_fn_info_type, build_ctr_info_type,
	build_gcov_info, create_coverage): Likewise.
	* dbxout.c (dbxout_init): Likewise.
	* diagnostic.c (diagnostic_report_current_function): Likewise.
	* dojump.c (do_jump): Likewise.
	* dwarf2out.c (dwarf2_name): Likewise.
	* except.c (init_eh): Likewise.
	* explow.c (expr_size, int_expr_size): Likewise.
	* expmed.c (make_tree, const_mult_add_overflow_p, expand_mult_add):
	Likewise.
	* expr.c (store_expr, store_constructor, safe_from_p,
	expand_expr_real, do_store_flag, try_casesi): Likewise.
	* function.c (push_function_context_to, pop_function_context_from,
	free_after_parsing, assign_stack_local_1, assign_stack_temp_for_type,
	put_var_into_stack, allocate_struct_function, current_function_name):
	Likewise.
	* integrate.c (copy_decl_for_inlining, expand_inline_function):
	Likewise.
	* langhooks.c (lhd_clear_binding_stack, write_global_declarations,
	lhd_print_error_function): Likewise.
	* opts.c (handle_option, decode_options): Likewise.
	* passes.c (open_dump_file): Likewise.
	* print-tree.c (print_node): Likewise.
	* stmt.c (expand_fixup, fixup_gotos, expand_asm_operands,
	expand_decl_cleanup, emit_case_nodes): Likewise.
	* stor-layout.c (variable_size): Likewise.
	* toplev.c (announce_function, wrapup_global_declarations,
	check_global_declarations, compile_file, default_tree_printer,
	process_options, lang_dependent_init, finalize): Likewise.
	* tree-dump.c (dequeue_and_dump): Likewise.
	* tree-inline.c (remap_decl, remap_block, copy_body_r,
	initialize_inlined_parameters, declare_return_variable,
	inlinable_function_p, expand_call_inline, optimize_inline_calls,
	walk_tree, copy_tree_r): Likewise.
	* tree-optimize.c (tree_rest_of_compilation): Likewise.
	* tree.c (decl_assembler_name, tree_size, size_in_bytes, staticp,
	unsafe_for_reeval, get_unwidened, get_narrower, get_callee_fndecl,
	variably_modified_type_p, dump_tree_statistics): Likewise.
	* varasm.c (assemble_variable, compare_constant, copy_constant,
	force_const_mem, compute_reloc_for_constant, output_constant,
	output_addressed_constants, initializer_constant_valid_p): Likewise.

From-SVN: r79481
2004-03-14 22:26:14 +00:00
Kelley Cook 89acbae0bc install.texi: Make autoconf 2.13 the exception, not the rule.
2004-03-14  Kelley Cook  <kcook@gcc.gnu.org>

	* doc/install.texi: Make autoconf 2.13 the exception, not the rule.

From-SVN: r79480
2004-03-14 22:15:13 +00:00
Andreas Tobler d01b30dcaf install.texi: Reflect autoconf and automake version for libffi.
2004-03-14  Andreas Tobler  <a.tobler@schweiz.ch>

	* doc/install.texi: Reflect autoconf and automake version for
	libffi. Update autoconf version to 2.59.

From-SVN: r79474
2004-03-14 10:34:12 +01:00
Roger Sayle 5785c7de74 fold-const.c (negate_expr, [...]): Replace calls via (*lang_hooks.foo) () with lang_hooks.foo ().
* fold-const.c (negate_expr, operand_equal_for_comparison_p,
	optimize_bit_field_compare, decode_field_reference, all_ones_mask_p,
	make_range, build_range_check, fold_range_test, unextend,
	constant_boolean_node, fold_binary_op_with_conditional_arg,
	fold_truthop, fold_mathfn_compare, fold_inf_compare,
	fold_single_bit_test, fold): Replace calls via (*lang_hooks.foo) ()
	with lang_hooks.foo ().

From-SVN: r79471
2004-03-14 01:07:16 +00:00
Richard Earnshaw edc621221a * arm.h (EXTRA_CONSTRAINT_STR_ARM): Update comment.
From-SVN: r79468
2004-03-14 00:23:03 +00:00
Dara Hazeghi 7db956db83 * doc/install.texi: Note status of -fnew-ra.
From-SVN: r79459
2004-03-13 21:48:56 +00:00
Eric Botcazou e6d55fd78e re PR tree-optimization/14470 ([tree-ssa] trouble with post-increment)
PR middle-end/14470
	* expr.c (store_expr): Call emit_queue before generating the move
	from the temporary to the original target.  Protect the temporary
	from emit_queue.

From-SVN: r79452
2004-03-13 18:16:14 +00:00
Jakub Jelinek cfbab41c7d re PR target/14533 (s390x internal compiler error: in legitimize_pic_address, at config/s390/s390.c:2276)
PR target/14533
	* config/s390/s390.c (legitimize_pic_address): Don't abort on UNSPEC
	other than UNSPEC_GOTOFF.

	* gcc.dg/20040311-2.c: New test.

From-SVN: r79442
2004-03-13 12:22:27 +01:00
Richard Earnshaw 1e1ab407a6 arm.c (arm_legitimate_address_p): New argument, OUTER.
* arm.c (arm_legitimate_address_p): New argument, OUTER.  Pass through
to arm_legitimate_index_p.  Update all callers with SET as default
value.
(arm_legitimate_index_p): New argument, OUTER.  Restrict the index
range if OUTER is a sign-extend operation on QImode.  Correctly
reject shift operations on sign-extended QImode addresses.
(bad_signed_byte_operand): Delete.
(arm_extendqisi_mem_op): New function.
* arm.h (EXTRA_CONSTRAINT_ARM): Delete.  Replace with...
(EXTRA_CONSTRAINT_STR_ARM): ... this.  Handle extended address
constraints.
(CONSTRAINT_LEN): New.
(EXTRA_CONSTRAINT): Delete.  Replace with...
(EXTRA_CONSTRAINT_STR): ... this.
(PREDICATE_CODES): Remove bad_signed_byte_operand.
* arm.md (extendqihi_insn): Use new constraint Uq.  Rework.  Length
is now always default.
(define_splits for bad sign-extend loads): Delete.
(arm_extendqisi, arm_extendqisi_v5): Likewise.
* arm/vfp.md (arm_movsi_vfp, arm_movdi_vfp, movsf_vfp, movdf_vfp):
Rework 'U' constraint to 'Uv'.
* arm-protos.h: Remove bad_signed_byte_operand.  Add
arm_extendqisi_mem_op.
* doc/md.texi (ARM constraints): Rename VFP constraint (now Uv).
Add Uq constraint.

From-SVN: r79440
2004-03-13 11:19:23 +00:00
Alan Modra fa78dbea45 rs6000.c (rs6000_va_arg): Replace SPLIT_COMPLEX_ARGS with targetm version.
* config/rs6000/rs6000.c (rs6000_va_arg): Replace SPLIT_COMPLEX_ARGS
	with targetm version.

From-SVN: r79437
2004-03-13 18:21:58 +10:30
Alan Modra c53bdcf59b re PR target/14567 ([3.4 only] long double and va_arg complex args)
PR target/14567
	* config/rs6000/rs6000.h (UNITS_PER_ARG, RS6000_ARG_SIZE): Delete.
	(HARD_REGNO_MODE_OK): Disallow TFmode for fp31.
	* config/rs6000/rs6000.c (rs6000_arg_size): New function.
	Update all users of RS6000_ARG_SIZE.
	(function_arg_advance): Count fregno using mode size.
	(function_arg): Handle long double split over regs and memory.
	(function_arg_partial_nregs): Likewise.
	(rs6000_va_arg): Repackage complex args.

From-SVN: r79436
2004-03-13 17:44:12 +10:30
Dean Ferreyra 992ab1225d re PR target/14047 (__progmem__ attribute doesn't work)
PR target/14047
	* config/avr/avr.c (avr_progmem_p): Add "attributes" parameter.
	(avr_insert_attributes): Pass "attributes" to avr_progmem_p.
	* config/avr/avr-protos.h (avr_progmem_p): Change prototype.

From-SVN: r79434
2004-03-13 09:51:48 +03:00
Jakub Jelinek c973d557ba rs6000-protos.h (rs6000_output_dwarf_dtprel): Add prototype.
* config/rs6000/rs6000-protos.h (rs6000_output_dwarf_dtprel): Add
	prototype.
	* config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): New.
	* config/rs6000/rs6000.h (ASM_OUTPUT_DWARF_DTPREL): Define.

From-SVN: r79408
2004-03-12 22:52:13 +01:00
Andrew Pinski 4319ac925d host-darwin.c (darwin_rs6000_gt_pch_use_address): Use ret instead of result.
2003-03-12  Andrew Pinski  <apinski@apple.com>

        * config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_use_address):
        Use ret instead of result. Use addr instead of base.

From-SVN: r79404
2004-03-12 11:45:49 -08:00
David Edelsohn bb674cef28 install.texi (*-ibm-aix*): Document assembler and achiver fixes required by libstdc++ and update...
* doc/install.texi (*-ibm-aix*): Document assembler and achiver
        fixes required by libstdc++ and update installation instructions
        for libstdc++.a.

From-SVN: r79401
2004-03-12 13:45:24 -05:00
Danny Smith b1f123c732 winnt.c (i386_pe_strip_name_encoding_full): Strip leading '@' on fastcall symbols before stripping suffix.
* config/i386/winnt.c (i386_pe_strip_name_encoding_full): Strip
	leading '@' on fastcall symbols before stripping suffix.

From-SVN: r79400
2004-03-12 18:25:18 +00:00
Roger Sayle 67962db535 combine.c (unmentioned_reg_p): New function to check whether an expression is a "specialization" of another, i.e.
* combine.c (unmentioned_reg_p): New function to check whether an
	expression is a "specialization" of another, i.e. that there are
	no registers or memory references mentioned in the first that don't
	appear in the second.
	(unmentioned_reg_p_1): New helper subroutine of unmentioned_reg_p.
	(combine_instructions): Also try combining instructions using the
	REG_EQUAL note from a preceding log-linked instruction.

From-SVN: r79398
2004-03-12 17:38:30 +00:00
Roger Sayle 8937b6a209 * config/i386/i386.c (ix86_split_ashrdi): Optimize shift by 63.
From-SVN: r79397
2004-03-12 17:21:32 +00:00
Matt Austern 4746cf8447 Enabled linkonce support for Darwin.
* target.h (struct gcc_target): New target hook, unwind_label.
	* target-def.h (TARGET_ASM_EMIT_UNWIND_LABEL): New hook.
	* output.h (default_emit_unwind_label): New function.
	* default.h (TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY): New macro.
	(TARGET_USES_WEAK_UNWIND_INFO): New target macro.
	(TARGET_SUPPORTS_HIDDEN): New target macro.
	* dwarf2out.c (struct dw_fde_struct): Add field for function decl
	that corresponds to this FDE.
	(FRAME_BEGIN_LABEL): Allow target to override default label.
	(output_call_frame_info): If FDEs are linknonce, then use extra
	indirection for FDE encoding, output a label for each FDE, and
	output an empty label for each function without an FDE.
	(dwarf2out_begin_prologue): Set up decl field when creating an FDE.
	* varasm.c (globalize_decl): Call ASM_MAKE_LABEL_LINKONCE for
	decls with DECL_ONE_ONLY set, if that macro is defined.
	(make_decl_one_only): Don't use DECL_COMMON if we're compiling
	for a SUPPORTS_ONE_ONLY target.
	* config/darwin-protos.h (darwin_unique_section): Declare.
	(darwin_asm_named_section): Likewise.
	(darwin_section_type_flags): Likewise.
	(darwin_non_lazy_pcrel): Likewise.
	(darwin_emit_unwind_label): Likewise.
	(darwin_make_decl_one_only): Likewise.
	* config/darwin.c (machopic_finish): Get rid of tweak that
	eliminate stubs for symbols that are defined.
	(darwin_encode_section_info): Don't treat weak functions as defined.
	(darwin_make_decl_one_only): Define.
	(darwin_asm_named_section): Likewise.
	(darwin_section_type_flags): Likewise.
	(darwin_unique_section): Likewise.
	(darwin_emit_unwind_label): Likewise.
	(darwin_non_lazy_pcrel): Likewise.
	(darwin_asm_output_dwarf_delta): Difference between two labels is
	local only if both labels are local.
	* config/darwin.h (MAKE_DECL_ONE_ONLY): Define.
	(ASM_MAKE_LABEL_LINKONCE): Likewise.
	(TARGET_SUPPORTS_HIDDEN): Likewise.
	(TARGET_USES_WEAK_UNWIND_INFO): Likewise.
	(TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY): Likewise.
	(FRAME_BEGIN_LABEL): Likewise.
	(ASM_DECLARE_OBJECT_NAME): Make references to weak symbols indirect.
	(ASM_DECLARE_FUNCTION_NAME): Likewise.
	(darwin_eh_frame_section): Give __eh_frame section the coalesced flag.
	(TARGET_ASM_UNIQUE_SECTION): Define.
	(EH_FRAME_SECTION_NAME): Define.
	(EH_FRAME_SECTION_ATTR): Likewise.
	(ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
	(TARGET_ASM_NAMED_SECTION): Likewise.
	(TARGET_SECTION_TYPE_FLAGS): Likewise.
	* doc/tm.texi: Document TARGET_USES_WEAK_UNWIND_INFO,
	TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY, TARGET_SUPPORTS_HIDDEN,
	TARGET_ASM_EMIT_UNWIND_LABEL.

	* cp/decl2.c (maybe_make_one_only): Look at
	TARGET_EXPLICIT_INSTANTIATION_ONE_ONLY when deciding whether
	to make an explicit instantiation weak.
	* cp/method.c (use_thunk): Make sure we call comdat_linkage
	when appropriate.
	* cp/pt.c (do_type_instantiation): On systems where weak symbols
	don't go in a static archive's TOC, explicit instantiation of a
	class must imply *explicit* instantiation of its memeber.

From-SVN: r79394
2004-03-12 17:09:03 +00:00
Kaveh R. Ghazi fd0c8c8d00 builtins.c (expand_builtin_mathfn): Add pow10* to the existing exp10* case.
* builtins.c (expand_builtin_mathfn): Add pow10* to the
	existing exp10* case.
	(expand_builtin): Likewise.

testsuite:
	* gcc.dg/builtins-34.c: Also check pow10*.

From-SVN: r79383
2004-03-12 13:33:42 +00:00
Eric Botcazou ca0b6e3b47 tm.texi (registers): Add entry for REGMODE_NATURAL_SIZE.
* doc/tm.texi (registers) <Values in Registers>: Add
	entry for REGMODE_NATURAL_SIZE.

From-SVN: r79377
2004-03-12 10:53:15 +00:00
Richard Henderson 42ba513004 re PR target/14547 (Passing _Complex long double does not follow the ABI)
PR target/14547
        * target.h (struct gcc_target): Move calls substructure before
        booleans.  Add split_complex_arg.
        * function.c (assign_parms, split_complex_args): Use it.
        * calls.c (expand_call): Likewise.
        (split_complex_values): Likewise.  Check for splittable types
        before allocating memory.
        (split_complex_types): Likewise.
        * system.h (SPLIT_COMPLEX_ARGS): Poison.
        * expr.h (SPLIT_COMPLEX_ARGS): Remove.
        * target-def.h (TARGET_SPLIT_COMPLEX_ARG): New.
        * config/alpha/alpha.c (alpha_split_complex_arg): New.
        (TARGET_SPLIT_COMPLEX_ARG): New.
        * config/alpha/alpha.h (SPLIT_COMPLEX_ARGS): Remove.
        * config/rs6000/rs6000.c (TARGET_SPLIT_COMPLEX_ARG): New.
        (rs6000_override_options): Zap it for non-AIX.
        (rs6000_function_value): Use targetm.calls.split_complex_arg.
        * config/rs6000/rs6000.h (SPLIT_COMPLEX_ARGS): Remove.
        * config/xtensa/xtensa.c (TARGET_SPLIT_COMPLEX_ARG): New.
        * config/xtensa/xtensa.h (SPLIT_COMPLEX_ARGS): Remove.
        * doc/tm.texi (TARGET_SPLIT_COMPLEX_ARG): Modify from old
        SPLIT_COMPLEX_ARGS entry.

From-SVN: r79376
2004-03-12 02:03:32 -08:00
Richard Henderson 75959f0a1d alpha.c (xfloating_ops, [...]): New.
* config/alpha/alpha.c (xfloating_ops, vax_cvt_ops): New.
        (alpha_lookup_xfloating_lib_func): Use them, return rtx.
        (alpha_emit_xfloating_arith): Update to match.
        (alpha_emit_xfloating_compare): Likewise.
        (alpha_emit_xfloating_cvt): Likewise.
        (alpha_emit_xfloating_libcall): Take already built symbol,
        mark call const.
        * config/alpha/alpha.md (extendsftf2, extenddftf2): Take
        op1 in a register.

From-SVN: r79371
2004-03-11 23:14:56 -08:00
Richard Henderson 55cf9d623f * simplify-rtx.c (simplify_relational_operation): Fix typo.
From-SVN: r79353
2004-03-11 15:48:02 -08:00
Richard Henderson e5e10fb4a3 re PR target/14539 (128-bit long double improperly aligned)
PR target/14539
        * config/alpha/alpha.h (STACK_BOUNDARY): Set to 128.

From-SVN: r79352
2004-03-11 15:46:55 -08:00
Richard Henderson 9caad63ac4 except.c (remove_unreachable_regions): Look thru CALL_PLACEHOLDER.
* except.c (remove_unreachable_regions): Look thru CALL_PLACEHOLDER.
	* g++.dg/opt/eh1.C: New.

From-SVN: r79350
2004-03-11 15:19:51 -08:00
Ulrich Weigand 03ca1672e4 re PR target/14262 (Structure size computed wrong)
PR target/14262
	* calls.c (load_register_parameters): If BLOCK_REG_PADDING is not
	defined, pass small BLKmode values in registers in the low-order part.

	* gcc.dg/20040305-2.c: New test.

From-SVN: r79348
2004-03-11 22:53:52 +00:00
Ulrich Weigand bbe708a391 combine.c (if_then_else_cond): Check for NULL return value of simplify_gen_subreg.
ChangeLog:

	* combine.c (if_then_else_cond): Check for NULL return value of
	simplify_gen_subreg.

testsuite/ChangeLog:

	* gcc.dg/20040310-1.c: New test.

From-SVN: r79347
2004-03-11 22:48:36 +00:00
Richard Sandiford 0e808055da re PR target/14496 (ICE at recog.c:2083 building libgcc2.c)
PR target/14496
	* config/mips/mips.h (UNITS_PER_FPVALUE): Fix value for
	TARGET_SINGLE_FLOAT.

From-SVN: r79342
2004-03-11 20:02:16 +00:00
Steve Ellcey 1f7aa7cdd6 hpux.h (TARGET_INIT_LIBFUNCS): Add undef.
* config/ia64/hpux.h (TARGET_INIT_LIBFUNCS): Add undef.
	* config/ia64/ia64.h (TARGET_INIT_LIBFUNCS): Add define.
	* config/ia64/ia64.c (ia64_init_libfuncs): New.
	(ia64_hpux_init_libfuncs): Add call to ia64_init_libfuncs.

From-SVN: r79339
2004-03-11 19:21:19 +00:00
Roger Sayle 239a625ee8 fold-const.c (negate_expr_p): We can optimize -((int)X>>C) where C is an integer constant one bit less than...
* fold-const.c (negate_expr_p) <RSHIFT_EXPR>: We can optimize
	-((int)X>>C) where C is an integer constant one bit less than the
	size of X into (unsigned)X>>C.  Similarly for unsigned->signed.
	(negate_expr) <RSHIFT_EXPR>: Implement the above transformations.

	* simplify-rtx.c (simplify_unary_operation): Also implement the
	above transformations at the RTL level.

	* gcc.c-torture/execute/20040311-1.c: New test case.

From-SVN: r79334
2004-03-11 17:45:03 +00:00
Alan Modra 40131a384c * real.c (encode_ibm_extended): Do round low word.
From-SVN: r79321
2004-03-12 00:09:57 +10:30
Ben Elliston df8e2ad0e5 arm.md (is_xscale): Comment this attribute and move it a bit further up in the file...
* config/arm/arm.md (is_xscale): Comment this attribute and move
	it a bit further up in the file, closer to related attributes.

From-SVN: r79319
2004-03-12 00:02:32 +11:00
Eric Botcazou d1704a353c host-solaris.c (sol_gt_pch_use_address): Add missing terminating marker to comment.
* config/host-solaris.c (sol_gt_pch_use_address): Add
	missing terminating marker to comment.

From-SVN: r79317
2004-03-11 11:22:14 +00:00
Richard Sandiford fc31c7cacf mips.md: Use move_operand in splitters for 64-bit moves.
* config/mips/mips.md: Use move_operand in splitters for 64-bit moves.
	(movdi, movsi, movhi, movqi, movsf, movdf): Remove predicates.
	(*movdi_32bit_mips16, *movsi_mips16, *movhi_mips16, *movqi_mips16)
	(*movsf_mips16, *movdf_mips16):  Name unnamed patterns.  Use
	move_operand as source predicate in all cases.
	(*movdi_32bit): Renamed from movdi_internal.  Remove 'F' constraint.
	Test reg_or_0_operand.  Use move_operand as source predicate.
	(*movdi_64bit): Renamed from movdi_internal2.  Test reg_or_0_operand.
	(*movdi_64bit_mips16): Renamed from movdi_internal2_mips16.
	(*movsi_internal): Renamed from movsi_internal.  Test reg_or_0_operand.
	(movhi, movqi, movsf, movdf): Use mips_legitimize_move.
	(*movhi_internal): Renamed from movhi_internal.  Test reg_or_0_operand.
	Use move_operand as source predicate.  Remove 'K' constraint.
	(*movqi_internal): Likewise movqi_internal.
	(*movsf_hardfloat): Renamed from movsf_internal1.  Test
	reg_or_0_operand.  Use move_operand as source predicate.
	(*movsf_softfloat): Likewise movsf_internal2.
	(*movdf_hardfloat_64bit): Likewise movsf_internal1a.
	(*movdf_hardfloat_32bit): Likewise movsf_internal1b.
	(*movdf_softfloat): Likewise movdf_internal2.
	* config/mips/mips.c (move_operand): Match arbitrary CONST_INTs
	for DImode if !TARGET_64BIT.
	(mips_legitimize_move): Simplify accordingly.

From-SVN: r79309
2004-03-11 08:25:27 +00:00
Josef Zlomek 81f2eadbed var-tracking.c (struct variable_def): Added field refcount.
PR/14362
	* var-tracking.c (struct variable_def): Added field refcount.
	(variable_htab_free): Decrease the refcount and delete variable
	only if there are no more references.
	(unshare_variable): New function.
	(vars_copy_1): Increase refcount instead of copying the variable.
	(variable_union): Share the variables where possible, unshare
	the variables if needed.
	(variable_different_p): Return false if var1 and var2 are
	the same structure.
	(variable_was_changed): Init the refcount of new variable.
	(set_frame_base_location): Unshare variable if needed.
	(set_variable_part): Init the refcount of new variable.
	Unshare the variables if needed.
	(delete_variable_part): Unshare the variables if needed.
	(emit_notes_for_differences_1): Init the refcount of new variable.
	(vt_add_function_parameters): Do not add function parameters to
	IN set of ENTRY_BLOCK_PTR because it is unused anyway.
	(vt_initialize): Do not add frame_base_decl to IN set of
	ENTRY_BLOCK_PTR because it is unused anyway.

From-SVN: r79307
2004-03-11 08:05:14 +00:00
Josef Zlomek 11599d1450 var-tracking.c (vars_copy_1): Cleanup and speedup chain operations.
* var-tracking.c (vars_copy_1): Cleanup and speedup chain operations.
	(vars_copy): Likewise.
	(variable_union): Likewise.
	(set_variable_part): Likewise.
	(delete_variable_part): Likewise.

From-SVN: r79304
2004-03-11 06:45:11 +00:00
Kazu Hirata 71cc389ba1 c-typeck.c, [...]: Fix comment typos and formatting.
* c-typeck.c, combine.c, cse.c, dominance.c, et-forest.h,
	ggc-page.c, var-tracking.c, config/fp-bit.c, config/c4x/c4x.c,
	config/cris/cris.c, config/i386/ppro.md, config/i860/i860.c,
	config/i860/i860.h, config/m32r/m32r.h, config/m32r/xm-m32r.h,
	config/m68hc11/m68hc11.h, config/m68hc11/m68hc11.md,
	config/mips/mips.c, config/mmix/mmix.c, config/ns32k/ns32k.h,
	config/pa/pa.c, config/pa/pa32-regs.h, config/pa/pa64-regs.h,
	config/pdp11/pdp11.h, config/rs6000/rs6000.c,
	config/stormy16/stormy16.c: Fix comment typos and formatting.

From-SVN: r79303
2004-03-11 05:54:35 +00:00
Nathanael Nerode f3c9f174d1 configure: Regenerate, since I forgot to while committing Paolo's changes.
2004-03-11  Nathanael Nerode  <neroden@gcc.gnu.org>

	* configure: Regenerate, since I forgot to while committing Paolo's
	changes.

From-SVN: r79302
2004-03-11 05:11:20 +00:00
Paolo Bonzini e4c9c07571 (top level)
2004-03-08  Paolo Bonzini  <bonzini@gnu.org>

	PR ada/14131
	Move language detection to the top level.
	* configure.in: Find default values for the tools as
	soon as possible.  Disable ada if GNAT is not found.
	Emit error message about missing languages.  Expand
	--enable-languages=all for the gcc subdirectory.

(config)
2004-03-08  Paolo Bonzini  <bonzini@gnu.org>

	PR ada/14131
	Move language detection to the top level.
	* acx.m4 (ACX_PROG_GNAT): New macro, moved here
	from the gcc subdirectory.
(gcc)
2004-03-08  Paolo Bonzini  <bonzini@gnu.org>

	PR ada/14131
	Move language detection to the top level.
	* configure.ac: Remove code to detect languages,
	it now lives exclusively in the top level.
	* aclocal.m4 (gcc_AC_PROG_GNAT): Moved to the
	top level, renamed to ACX_PROG_GNAT.

(gcc/ada)
2004-03-08  Paolo Bonzini  <bonzini@gnu.org>

	PR ada/14131
	Move language detection to the top level.
	* config-lang.in: Build by default.

From-SVN: r79299
2004-03-11 05:01:17 +00:00
Richard Henderson 4d0c31e68c c-pch.c (c_common_no_more_pch): Update for gt_pch_use_address extra arguments.
* c-pch.c (c_common_no_more_pch): Update for gt_pch_use_address
        extra arguments.
        * config.host (*-*-solaris2*, *-*-linux*): Add out_host_hook_obj
        and host_xmake_file fragments.
        * ggc-common.c (gt_pch_save): Update for gt_pch_get_address change.
        (gt_pch_restore): Similarly for gt_pch_use_address.
        (default_gt_pch_get_address): New.
        (mmap_gt_pch_get_address): Split out of gt_pch_save.
        (default_gt_pch_use_address): Split out of gt_pch_restore.
        (mmap_gt_pch_use_address): Likewise.
        * hooks.c (hook_voidp_size_t_null): Remove.
        (hook_bool_voidp_size_t_false): Remove.
        * hooks.h: Likewise.
        * hosthooks-def.h (HOST_HOOKS_GT_PCH_GET_ADDRESS): Use one of the
        default_ or mmap_ definitions.
        (HOST_HOOKS_GT_PCH_USE_ADDRESS): Likewise.
        * hosthooks.h (struct host_hooks): Update gt_pch_get_address
        and gt_pch_use_address.
        * config/host-linux.c, config/host-solaris.c: New files.
        * config/x-linux, config/x-solaris: New files.
        * config/rs6000/host-darwin.c darwin_rs6000_gt_pch_get_address):
        Update for changed definition.
        (darwin_rs6000_gt_pch_use_address): Likewise.
        * doc/hostconfig.texi: Update docs.

From-SVN: r79295
2004-03-10 19:19:04 -08:00
Richard Henderson 28fca7e467 re PR c/14517 (change in behaviour wrt duplicate qualifiers)
PR c/14517
        * c-decl.c (grokdeclarator): Don't warn for duplicate qualifiers
        except for pedantic c90 mode.

From-SVN: r79286
2004-03-10 16:45:37 -08:00
Kelley Cook 8ab705be38 configure.ac: Bump AC_PREREQ to 2.59.
boehm-gc/
2004-03-10  Kelley Cook  <kcook@gcc.gnu.org>

	* configure.ac: Bump AC_PREREQ to 2.59.
	* configure: Regenerate.
	* config.in: Regenerate.

fastjar/
2004-03-10  Kelley Cook  <kcook@gcc.gnu.org>

	* configure.ac: Bump AC_PREREQ to 2.59.
	* configure: Regenerate.

intl/
2004-03-10  Kelley Cook  <kcook@gcc.gnu.org>

	* configure.ac: Bump AC_PREREQ to 2.59.
	* configure: Regenerate.
	* config.h.in: Regenerate.

gcc/
2004-03-10  Kelley Cook  <kcook@gcc.gnu.org>

	* configure.ac: Bump AC_PREREQ to 2.59.
	* configure: Regenerate.

libada/
2004-03-10  Kelley Cook  <kcook@gcc.gnu.org>

	* configure.in: Rename file to ...
	* configure.ac: .. to this. Bump AC_PREREQ to 2.59.
	* configure: Regenerate.

libjava/libltdl/
2004-03-10  Kelley Cook  <kcook@gcc.gnu.org>

	* configure.ac: Bump AC_PREREQ to 2.59.
	* configure: Regenerate.
	* config-h.in: Regenerate.

libstdc++-v3/
2004-03-10  Kelley Cook  <kcook@gcc.gnu.org>

	* configure.ac: Bump AC_PREREQ to 2.59.

contrib/
2004-03-10  Kelley Cook  <kcook@gcc.gnu.org>

	* gcc_update (files_and_dependencies): Insert libada/configure.

From-SVN: r79285
2004-03-11 00:27:41 +00:00
Uros Bizjak a251102ea1 optabs.h (enum optab_index): Add new OTI_exp10 and OTI_exp2.
2004-03-10  Uros Bizjak  <uros@kss-loka.si>

	* optabs.h (enum optab_index): Add new OTI_exp10 and OTI_exp2.
	(exp10_optab, exp2_optab): Define corresponding macros.
	* optabs.c (init_optabs): Initialize exp10_optab and exp2_optab.
	* genopinit.c (optabs): Implement exp10_optab and exp2_optab
	using exp10?f2 and exp2?f2 patterns.
	* builtins.c (expand_builtin_mathfn): Handle BUILT_IN_EXP10{,F,L}
	using exp10_optab, and BUILT_IN_EXP2{,F,L} using exp2_optab.
	(expand_builtin): Expand BUILT_IN_EXP10{,F,L} and BUILT_IN_EXP2{,F,L}
	using expand_builtin_mathfn if flag_unsafe_math_optimizations is set.

	* config/i386/i386.md (exp10sf2, exp10df2, exp10xf2, exp2sf2,
	exp2df2, exp2xf2): New patterns to implement exp10, exp10f, exp10l,
	exp2, exp2f and exp2l built-ins as inline x87 intrinsics.

	* gcc.dg/builtins-34.c: New test.

From-SVN: r79279
2004-03-10 22:36:22 +00:00
Anthony Green 11f01d3703 invoke.texi (ARM Options): Fix -mpfu typo.
2004-03-10  Anthony Green  <green@redhat.com>

        * doc/invoke.texi (ARM Options): Fix -mpfu typo.

From-SVN: r79277
2004-03-10 21:43:35 +00:00
David Edelsohn bb904c1a48 aix.h (TARGET_OS_CPP_BUILTINS): Rename to ...
* config/rs6000/aix.h (TARGET_OS_CPP_BUILTINS): Rename to ...
	(TARGET_OS_AIX_CPP_BUILTINS): this.  Conditionally define
	__LONGDOUBLE128.
	* config/rs6000/aix41.h (TARGET_OS_CPP_BUILTINS): Use
	TARGET_OS_AIX_CPP_BUILTINS.
	* config/rs6000/aix43.h (TARGET_OS_CPP_BUILTINS): Same.
	* config/rs6000/aix51.h (TARGET_OS_CPP_BUILTINS): Same.
	* config/rs6000/aix52.h (TARGET_OS_CPP_BUILTINS): Same.
	* config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Revert
	previous change.

From-SVN: r79274
2004-03-10 16:22:40 -05:00
Kaveh R. Ghazi b45d3a3626 fold-const.c (tree_expr_nonnegative_p): Add more builtin cases.
* fold-const.c (tree_expr_nonnegative_p): Add more builtin cases.

testsuite:
	* gcc.dg/torture/builtin-nonneg-1.c: New test.

From-SVN: r79269
2004-03-10 18:18:22 +00:00
David Edelsohn 35ae04ba17 rs6000-c.c (rs6000_cpu_cpp_builtins): Define __LONGDOUBLE128 on AIX.
* config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
        __LONGDOUBLE128 on AIX.

From-SVN: r79268
2004-03-10 13:16:25 -05:00
Andrew Haley f7b48371a9 re PR rtl-optimization/14381 (sched2 moving "may throw" instructions into epilogue)
2004-03-10  Andrew Haley  <aph@redhat.com>

        PR optimization/14381
        * function.c (expand_function_end): Emit a blockage insn before
        the epilogue when -fnon-call-exceptions is used.

        * except.c (expand_start_all_catch): Make comment more accurate.

From-SVN: r79266
2004-03-10 17:58:23 +00:00
Andrew Haley ffad84cd85 function.c (expand_function_end): Emit a blockage insn before the epilogue when -fnon-call-exceptions is used.
2004-03-10  Andrew Haley  <aph@redhat.com>

	* function.c (expand_function_end): Emit a blockage insn before
	the epilogue when -fnon-call-exceptions is used.

	* except.c (expand_start_all_catch): Make comment more accurate.

From-SVN: r79265
2004-03-10 17:47:45 +00:00
Joel Sherrill 65cd26a6f5 re PR target/14480 (gcc/config/rs6000/t-rtems is missing)
2004-03-08  Joel Sherrill  <joel@oarcorp.com>

	PR target/14480
	* config/rs6000/t-rtems: Add missing file on branch.

From-SVN: r79263
2004-03-10 17:23:33 +00:00
Ulrich Weigand 452c159ed1 dbxout.c (dbxout_symbol_location): Do not output references to optimized-out constant pool symbols.
* dbxout.c (dbxout_symbol_location): Do not output references
	to optimized-out constant pool symbols.

From-SVN: r79258
2004-03-10 15:12:10 +00:00
Andreas Schwab 5f1b206864 ia64.md (divsi3, udivsi3): Remove unused variable twon34_r.
* config/ia64/ia64.md (divsi3, udivsi3): Remove unused variable
	twon34_r.

From-SVN: r79251
2004-03-10 12:34:43 +00:00
James E Wilson 5399d64368 New option -Wstrict-aliasing=2.
* alias.c (alias_sets_might_conflict_p): New.
	* c-typeck.c (build_c_cast): Call it if warn_strict_aliasing > 1.
	* common.opt (Wstrict-aliasing=): New.
	* flags.h (warn_strict_aliasing): Change type to int.
	* opts.c (warn_strict_aliasing): Change type to int.
	(common_handle_option): Handle OPT_Wstrict_aliasing_.
	* tree.h (alias_sets_might_conflict_p): Declare it.
	* doc/invoke.tex (-Wstrict-aliasing=2): Document it.

From-SVN: r79222
2004-03-09 22:02:55 -08:00
Roman Zippel a4e9467d73 re PR bootstrap/12371 ([m68k-linux] bootstrap error in make compare)
2004-03-10  Roman Zippel  <zippel@linux-m68k.org>

        PR bootstrap/12371
        * config/m68k/m68k.h (FIXED_REGISTERS): Add arg pointer.
        (CALL_USED_REGISTERS): Likewise.
        (REG_CLASS_CONTENTS): Likewise.
        (REG_ALLOC_ORDER): New.
        (REGNO_REG_CLASS): Use regno_reg_class.
        * config/m68k/m68k.c: Add regno_reg_class array.

From-SVN: r79221
2004-03-09 21:07:45 -08:00
Steve Ellcey 9aec7fb4a9 ia64.md (divsi3): Fix algorithm.
* config/ia64/ia64.md (divsi3): Fix algorithm.
	  (udivsi3): Ditto.
	  (setf_exp_xf): Remove '*' from name.
	* testsuite/gcc.dg/20040309-1.c: New test.

From-SVN: r79217
2004-03-10 00:26:31 +00:00
Ian Lance Taylor 9acd4a03dd system.h (SUNOS4_SHARED_LIBRARIES): Poison.
* system.h (SUNOS4_SHARED_LIBRARIES): Poison.
	* collect2.c: Remove SUNOS4_SHARED_LIBRARIES code.
	* config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): Don't define.
	* config/sparc/sparc.c (sparc_aout_select_section): Remove.
	(sparc_aout_select_rtx_section): Don't check
	SUNOS4_SHARED_LIBRARIES.
	* config/sparc/sparc.h (SUNOS4_SHARED_LIBRARIES): Don't define.

From-SVN: r79216
2004-03-10 00:17:36 +00:00
Hans-Peter Nilsson a5249a214a re PR other/14474 (make dvi breaks for "TeX (Web2C 7.3.1) 3.14159")
PR other/14474
	* doc/md.texi (Pattern Ordering, Dependent Patterns)
	(Jump Patterns, Looping Patterns): Wrap in separate "@ifset
	INTERNALS".

From-SVN: r79210
2004-03-10 00:09:37 +00:00
Zack Weinberg e373cdb46c hpux.h (MULTILIB_DEFAULTS): Define.
* config/ia64/hpux.h (MULTILIB_DEFAULTS): Define.
	(LIBGCC_SPEC): Update to match.

From-SVN: r79207
2004-03-09 23:55:45 +00:00
Zack Weinberg 77dbdb5745 * c-decl.c (last_function_parms, last_function_parm_tags)
(last_function_parm_others, current_function_parms)
	(current_function_parm_tags, current_function_parm_others):
	Delete.
	(ARG_INFO_PARMS, ARG_INFO_TAGS, ARG_INFO_TYPES, ARG_INFO_OTHERS):
	New macros.
	(grokdeclarator): For function definitions, save the arg-info
	block from the declarator in DECL_ARGUMENTS.
	(grokparms): Do not write to last_function_parm*.  Use ARG_INFO_*
	macros to operate on arg-info block.  Can assume ARG_INFO_PARMS
	contains only PARM_DECLs.  Improve diagnostics.
	(get_parm_info): Use ARG_INFO_* macros.  Improve comments and
	diagnostics.  Disable some expensive checks if not ENABLE_CHECKING.
	(store_parm_decls_newstyle): Take the function to operate on,
	and an arg-info block, as arguments; don't get anything from
	current_function_* globals.
	(store_parm_decls_oldstyle): Likewise.
	(store_parm_decls): Pass fndecl and its arg-info block down to
	store_parm_decls_newstyle/oldstyle.  Send functions with empty
	argument lists through store_parm_decls_newstyle to reduce
	overhead.
	(pushdecl): Comment on the problems with the call to copy_node.
	Clear DECL_ARGUMENTS of the old node after copying it, if it
	is an arg-info block instead of a chain of decls.
	(start_function): Do not manipulate current_function_parm* or
	last_function_parm*.

	* testsuite/gcc.dg/noncompile/incomplete-2.c: Move dg-error to
	proper line.

From-SVN: r79206
2004-03-09 23:39:16 +00:00
Roger Sayle 305eeaeb7a ifcvt.c (noce_try_sign_mask): New function to transform "x = (y < 0) ? z ...
* ifcvt.c (noce_try_sign_mask): New function to transform
	"x = (y < 0) ? z : 0" into the equivalent "x = (y >> C) & z".
	(noce_process_if_block): Call noce_try_sign_mask.

	* gcc.c-torture/execute/20040309-1.c: New test case.

Co-Authored-By: Andrew Pinski <pinskia@physics.uc.edu>

From-SVN: r79205
2004-03-09 23:15:15 +00:00
Andrew Pinski f38f747dba c-typeck.c (tagged_types_tu_compatible_p): Fix typo.
2004-03-09  Andrew Pinski  <apinski@apple.com>

        * c-typeck.c (tagged_types_tu_compatible_p):
        Fix typo.

From-SVN: r79203
2004-03-09 14:24:32 -08:00
Roger Sayle 7ce3e360d6 simplify-rtx.c (simplify_const_relational_operation): New function renamed from simplify_relational_operation.
* simplify-rtx.c (simplify_const_relational_operation): New function
	renamed from simplify_relational_operation.
	(simplify_relational_operation): Change prototype to accept an
	additional mode argument.  Call simplify_const_relational_operation.
	(simplify_gen_relational): Update simplify_relational_operation call.
	(simplify_ternary_operation): Update simplify_relational_operation
	subroutine call to use simplify_const_relational_operation instead.

	* rtl.h (simplify_const_relational_operation): Prototype here.
	(simplify_relational_operation): Add addtional mode argument.

	* combine.c (combine_simplify_rtx): Update calls to
	simplify_relational_operation.
	(simplify_set): Likewise.
	(gen_binary): Likewise.
	* cse.c (fold_rtx): Likewise.
	* dojump.c (compare_from_rtx): Likewise.
	(do_compare_rtx_and_jump): Likewise.
	* integrate.c (subst_constants): Likewise.
	* unroll.c (simplify_cmp_and_jump_insns): Likewise.

From-SVN: r79187
2004-03-09 17:06:25 +00:00
Kazu Hirata c0e63064ed * config/m32r/m32r.md: Remove all define_peephole's.
From-SVN: r79170
2004-03-09 14:37:05 +00:00
Alan Modra 6ae08853b6 * config/rs6000/rs6000.md: Remove trailing whitespace.
From-SVN: r79166
2004-03-09 22:40:25 +10:30
Eric Christopher 5340bbea5a Makefile.in (site.exp): Add libiconv variable definition.
2004-03-08  Eric Christopher  <echristo@redhat.com>

	* Makefile.in (site.exp): Add libiconv variable definition.

2004-03-08  Eric Christopher  <echristo@redhat.com>

	* * lib/target-supports.exp: Enable libiconv in test
	compilation.  Fix up error checking.

From-SVN: r79148
2004-03-09 01:53:28 +00:00
Hans-Peter Nilsson 3beb131556 * configure: Regenerate for config/accross.m4 correction.
From-SVN: r79147
2004-03-09 01:22:49 +00:00
Joel Sherrill c589970ab1 re PR target/14480 (gcc/config/rs6000/t-rtems is missing)
2004-03-08  Joel Sherrill  <joel@oarcorp.com>

	PR target/14480
	* config/rs6000/t-rtems: Add missing file on branch.

From-SVN: r79140
2004-03-09 00:18:40 +00:00
Roger Sayle e697b20f79 re PR middle-end/14289 (ICE in a register array)
PR middle-end/14289
	* c-typeck.c (c_mark_addressable): A register variable should
	be considered global if its not automatic, i.e. TREE_PUBLIC,
	TREE_STATIC or DECL_EXTERNAL.
	* function.c (put_var_into_stack): Call abort when placing a
	hard register into the stack, if x_parm_reg_stack_loc is NULL.

	* gcc.dg/pr14289-1.c: New test case.
	* gcc.dg/pr14289-2.c: Likewise.
	* gcc.dg/pr14289-3.c: Likewise.

From-SVN: r79127
2004-03-08 21:56:36 +00:00
Ulrich Weigand 59f8a8be07 s390.md ("*extendqidi2_short_displ"): Add CC clobber.
* config/s390/s390.md ("*extendqidi2_short_displ"): Add CC clobber.
	("*extendqisi2_short_displ"): Likewise.

From-SVN: r79124
2004-03-08 20:05:08 +00:00
Kazu Hirata 23bd99da2c pdp11.c (comparison_operator_index): Remove.
* config/pdp11/pdp11.c (comparison_operator_index): Remove.
	(comp_operator): Likewise.
	* config/pdp11/pdp11-protos.h: Remove corresponding
	prototypes.

From-SVN: r79116
2004-03-08 15:41:41 +00:00
Eric Botcazou d50a16c433 expr.c (highest_pow2_factor_for_type): Rename into highest_pow2_factor_for_target.
* expr.c (highest_pow2_factor_for_type): Rename into
	highest_pow2_factor_for_target.  Use DECL_ALIGN instead of
	TYPE_ALIGN when the target is a COMPONENT_REF.
	(expand_assignment): Ajust call to highest_pow2_factor_for_type.

From-SVN: r79101
2004-03-08 06:48:51 +00:00
Alan Modra b1917422af rs6000.c: Formatting fix.
* config/rs6000/rs6000.c: Formatting fix.
	(legitimate_offset_address_p): Correct offset range check.

From-SVN: r79098
2004-03-08 14:54:27 +10:30
Alan Modra 957211c3f6 rs6000.c (rs6000_override_options): Don't override -msoft-float by -mcpu.
* config/rs6000/rs6000.c (rs6000_override_options): Don't override
	-msoft-float by -mcpu.  Consolidate similar code for MASK_MULTIPLE
	and MASK_STRING.

From-SVN: r79094
2004-03-08 14:48:39 +10:30
Aldy Hernandez 97727e8573 rs6000.md (ashrdi3): Do not call ashrdi3_no_power for little endian.
* config/rs6000/rs6000.md (ashrdi3): Do not call ashrdi3_no_power
        for little endian.
        ("ashrdi3_no_power"): Disable for little endian.
	(ashrdi3): Same.

From-SVN: r79092
2004-03-08 04:13:39 +00:00
Kaveh R. Ghazi 280e63ec66 fold-const.c (tree_expr_nonnegative_p): Reformat checks for builtins.
* fold-const.c (tree_expr_nonnegative_p): Reformat checks for
	builtins.

From-SVN: r79088
2004-03-08 01:55:44 +00:00
Hans-Peter Nilsson 86da66b593 re PR target/14471 (Workaround for errata regarding multiplication bug)
PR target/14471
	* configure.ac (Target-specific assembler checks) <cris-*-*>: New
	case, checking for -no-mul-bug-abort option.
	* configure, config.in: Regenerate.
	* doc/invoke.texi (CRIS Options): Document -mmul-bug-workaround
	and -mno-mul-bug-workaround.
	* config/cris/cris.md ("smulsi3_highpart", "umulsi3_highpart")
	("mulsidi3", "umulsidi3"): Prefix output template with "%!".
	("umulhisi3", "umulqihi3", "mulsi3", "mulqihi3", "mulhisi3"):
	Ditto.  Make attribute "slottable" dependent on TARGET_MUL_BUG.
	* config/cris/mulsi3.asm (__Mul) [__CRIS_arch_version >= 10]: Make
	sure mulu.d is not last on cache-line.
	* config/cris/cris.h (ASM_SPEC): Translate -mno-mul-bug-workaround
	into -no-mul-bug-abort depending on HAVE_AS_MUL_BUG_ABORT_OPTION.
	(TARGET_MASK_MUL_BUG, TARGET_MUL_BUG): New macros.
	(TARGET_SWITCHES): New options -mmul-bug-workaround and
	-mno-mul-bug-workaround.
	(TARGET_DEFAULT): Include TARGET_MASK_MUL_BUG.
	(PRINT_OPERAND_PUNCT_VALID_P): Include '!'.
	* config/cris/cris.c (cris_operand_extend_operator): Clarify
	relation to MULT in head comment.
	(cris_op_str): Abort for MULT.
	(cris_print_operand) <case '!'>: New case.

From-SVN: r79085
2004-03-08 00:32:37 +00:00
Alan Modra e7ee391439 re PR debug/11983 (ICE in dwarf-2 on code using altivec)
PR debug/11983
	* dwarf2out.c (enum dw_val_class): Rename dw_val_class_float to
	dw_val_class_vec.  Replace use throughout file.
	(dw_float_const): Delete.
	(dw_vec_const): New.
	(dw_val_struct_union): Rename val_float to val_vec.  Replace use
	throughout file.
	(add_AT_vec): Rename from add_AT_float.  Add elt_size param.
	(same_dw_val_p): Adjust vec comparison.  Use memcmp.
	(size_of_die): Adjust dw_val_class_vec sizing.
	(output_die): Output dw_val_class_vec.
	(insert_int, extract_int, insert_float): New functions.
	(add_const_value_attribute): Use insert_float for CONST_DOUBLE.
	Handle CONST_VECTOR.
	(add_location_or_const_value_attribute): Handle CONST_VECTOR.

From-SVN: r79077
2004-03-08 10:12:37 +10:30
Aldy Hernandez 5cc73f9121 rs6000.c (rs6000_parse_abi_options): SPE and AltiVec abi cannot co-exist.
2004-03-07  Aldy Hernandez  <aldyh@redhat.com>

	* config/rs6000/rs6000.c (rs6000_parse_abi_options): SPE and
	AltiVec abi cannot co-exist.

	* config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Same.

From-SVN: r79074
2004-03-07 23:35:43 +00:00
Jan Hubicka a61bf17720 * except.c (emit_to_new_bb_before): Break fallthru edges.
From-SVN: r79071
2004-03-07 22:29:28 +00:00
Stephane Carrez 17c6094607 m68hc11.md ("*lshrsi3_const"): Disable for 68HC12.
* config/m68hc11/m68hc11.md ("*lshrsi3_const"): Disable for 68HC12.
	("*lshrsi3"): Also accept an immediate for 68HC12.
	("*ashrsi3_const"): Likewise.
	("*ashrsi3"): Likewise.
	("*ashlsi3_const"): Likewise.
	("*ashlsi3"): Likewise.
	("cmphi_1_hc12"): Compare two hard register by pushing them and
	comparing with a pop; don't use a split for that.
	("cmphi split"): Disable compare split for 68HC12.

	* config/m68hc11/m68hc11.c (m68hc11_notice_update_cc): Invalidate
	the status operands if they have side effects.

From-SVN: r79068
2004-03-07 22:01:26 +01:00
Kazu Hirata 3e759edad2 defaults.h (LEGITIMIZE_ADDRESS): Provide a default definition.
* defaults.h (LEGITIMIZE_ADDRESS): Provide a default
	definition.
	* config/arc/arc.h, config/fr30/fr30.h, config/frv/frv.h,
	config/h8300/h8300.h, config/ia64/ia64.h,
	config/mcore/mcore.h, config/mmix/mmix.h,
	config/ns32k/ns32k.h, config/pdp11/pdp11.h,
	config/stormy16/stormy16.h, config/v850/v850.h,
	config/vax/vax.h (LEGITIMIZE_ADDRESS): Remove.
	* doc/tm.texi (LEGITIMIZE_ADDRESS): Mention the default
	definition.

From-SVN: r79066
2004-03-07 20:23:32 +00:00
Roger Sayle cd2f1c7a62 fold-const.c (fold): Fold x | x as x.
* fold-const.c (fold) <IOR_EXPR>: Fold x | x as x.
	<XOR_EXPR>: Fold x ^ x as zero.
	<AND_EXPR>: Fold x & x as x.

From-SVN: r79065
2004-03-07 20:13:50 +00:00
Roger Sayle 350f4ea897 fold-const.c (fold): Rewrite optimization to transform "foo++ == const" into "++foo == const+incr".
* fold-const.c (fold) <EQ_EXPR>: Rewrite optimization to transform
	"foo++ == const" into "++foo == const+incr".

	* gcc.c-torture/execute/20040307-1.c: New test case.

From-SVN: r79064
2004-03-07 14:45:42 +00:00
Richard Sandiford 9145559717 mips.c (mips_in_small_data_p): Return false if TARGET_ABICALLS.
* config/mips/mips.c (mips_in_small_data_p): Return false if
	TARGET_ABICALLS.

testsuite/
	* gcc.dg/torture/mips-sdata-1.c: Restrict to mips*-*-elf*.

From-SVN: r79060
2004-03-07 10:50:11 +00:00
Stephane Carrez a75ea627dd m68hc11.c (m68hc11_gen_movhi): Use 2,-sp to push the stack register.
* config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Use 2,-sp to push
	the stack register.
	(expand_prologue): Don't make an interrupt or a trap handler a far
	symbol.
	(m68hc11_initial_elimination_offset): Likewise.

From-SVN: r79058
2004-03-07 11:00:30 +01:00
Richard Henderson 7179b6dbfe * config/alpha/alpha.c (alpha_in_small_data_p): False for functions.
From-SVN: r79054
2004-03-06 22:30:06 -08:00
Kazu Hirata eff3c92666 ns32k-protos.h: Add a prototype for ns32k_notice_update_cc.
* config/ns32k/ns32k-protos.h: Add a prototype for
	ns32k_notice_update_cc.
	* config/ns32k/ns32k.c (ns32k_notice_update_cc): New.
	* config/ns32k/ns32k.h (NOTICE_UPDATE_CC): Call
	ns32k_notice_update_cc.

From-SVN: r79053
2004-03-07 04:45:05 +00:00
Ulrich Weigand 22ea6b4f7f s390.md ("load_multiple", [...]): Allow only if reload_completed.
ChangeLog:

	* config/s390/s390.md ("load_multiple", "*load_multiple_di",
	"*load_multiple_si"): Allow only if reload_completed.
	("store_multiple", "*store_multiple_di", "*store_multiple_si"):
	Likewise.

testsuite/ChangeLog:

	* gcc.dg/20040306-1.c: New test.

From-SVN: r79045
2004-03-07 02:41:53 +00:00
Kazu Hirata af0ec113b8 vax-protos.h: Add a prototype for vax_notice_update_cc.
* config/vax/vax-protos.h: Add a prototype for
	vax_notice_update_cc.
	* config/vax/vax.c (vax_notice_update_cc): New.
	* config/vax/vax.h (NOTICE_UPDATE_CC): Call
	vax_notice_update_cc.

From-SVN: r79032
2004-03-06 21:14:50 +00:00
David Edelsohn aaef9b06ac collect2.c (main): Only export initfunc and finifunc if LD_INIT_SWITCH not defined.
* collect2.c (main): Only export initfunc and finifunc if
        LD_INIT_SWITCH not defined.
        (scan_prog_file): Only export constructors and destructors if
        LD_INIT_SWITCH not defined.  Only export symbols not found in
        shared objects.

From-SVN: r79031
2004-03-06 15:49:30 -05:00
John David Anglin 7a9a5a4441 pa.md (icacheflush): Reorder operands to make match_scratch operand last.
* pa.md (icacheflush): Reorder operands to make match_scratch operand
	last.
	* pa.h (INITIALIZE_TRAMPOLINE): Remove unnecessary scratch argument
	from calls to gen_icacheflush.

From-SVN: r79029
2004-03-06 19:27:52 +00:00
Richard Henderson 0f15adbd84 alpha.h (MASK_LONG_DOUBLE_128): New.
* config/alpha/alpha.h (MASK_LONG_DOUBLE_128): New.
        (TARGET_LONG_DOUBLE_128): New.
        (TARGET_SWITCHES): Add long-double-{128,64}.
        (TARGET_HAS_XFLOATING_LIBS): Default to TARGET_LONG_DOUBLE_128.
        (LONG_DOUBLE_TYPE_SIZE): Honor TARGET_LONG_DOUBLE_128.
        (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): New.
        (WIDEST_HARDWARE_FP_SIZE): New.
        (TARGET_CPU_CPP_BUILTINS): Define __LONG_DOUBLE_128__.
        * config/alpha/alpha.c (override_options): Clear MASK_LONG_DOUBLE_128
        if TARGET_VAX_FLOAT.
        * config/alpha/osf5.h (LONG_DOUBLE_TYPE_SIZE): Remove.
        (TARGET_DEFAULT): Set MASK_LONG_DOUBLE_128.

From-SVN: r79026
2004-03-06 10:48:51 -08:00
Richard Henderson b9c685aecd alpha.c (alpha_swapped_comparison_operator): Fix botched rtx class conversion.
* config/alpha/alpha.c (alpha_swapped_comparison_operator): Fix
        botched rtx class conversion.

From-SVN: r79025
2004-03-06 10:33:33 -08:00
Kaveh R. Ghazi 82b4201fd5 tree.h (BUILTIN_EXP10_P, [...]): New macros.
* tree.h (BUILTIN_EXP10_P, BUILTIN_EXPONENT_P, BUILTIN_SQRT_P,
	BUILTIN_CBRT_P, BUILTIN_ROOT_P): New macros.

	* builtins.c (fold_builtin_logarithm, fold_builtin): Use new
	macros.
	* fold-const.c (fold_mathfn_compare, fold): Likewise.

From-SVN: r79023
2004-03-06 17:47:58 +00:00
Eric Botcazou 84289c7622 re PR target/14343 (internal error while using vector instructions [gcc 3.4.0 20040225 (prerelease)].)
PR target/14343
	* config/i386/i386.md (movv2di_internal): Conditionalize on
	TARGET_SSE, not TARGET_SSE2.

From-SVN: r79016
2004-03-06 10:13:19 +00:00
Chris Demetriou 3fdf09a1fb config.gcc (mips64orion-*-elf*, [...]): Delete duplicated line.
2004-03-05  Chris Demetriou  <cgd@broadcom.com>

        * config.gcc (mips64orion-*-elf*, mips64orionel-*-elf*): Delete
        duplicated line.

From-SVN: r79010
2004-03-05 22:46:09 -08:00
Kaveh R. Ghazi f2f4e97691 * builtins.c: Consistently use logN not log* in comments.
From-SVN: r79009
2004-03-06 03:19:40 +00:00
Andreas Krebbel 2b3493c8bb rtl.h (mem_expr_equal_p): Function prototype added.
2004-03-05  Andreas Krebbel  <krebbel1@de.ibm.com>

	* rtl.h (mem_expr_equal_p): Function prototype added.
	* cfgcleanup.c (merge_memattrs): New function.
	(flow_find_cross_jump): Call merge_memattrs for matching insns.
	* emit-rtl.c (mem_expr_equal_p): New function.

2004-03-05  Andreas Krebbel  <krebbel1@de.ibm.com>

	* gcc.dg/20040305-1.c: New test.

From-SVN: r79005
2004-03-06 01:21:28 +00:00
Ziemowit Laski 1a4a7065a9 objc-act.c (synth_module_prologue): Const-qualify objc_selector type if using the GNU runtime...
[gcc/ChangeLog]
2004-03-05  Ziemowit Laski  <zlaski@apple.com>

        * objc/objc-act.c (synth_module_prologue): Const-qualify
        objc_selector type if using the GNU runtime; fix generated
        signatures for objc_msg_lookup and objc_msg_lookup_super
        to match what GNU ObjC headers provide; reformat and clean up.
        (synth_self_and_ucmd_args): Use previously constructed (and
        hence possibly const-qualified) objc_selector type.

From-SVN: r79004
2004-03-06 00:26:42 +00:00
Kazu Hirata 150c9fe80f * doc/tm.texi (HARD_REGNO_RENAME_OK): Document.
From-SVN: r78998
2004-03-05 23:51:25 +00:00
Jason Merrill fd917e0dc4 tree.h (TYPE_HASH): Use TYPE_UID.
* tree.h (TYPE_HASH): Use TYPE_UID.
        (TREE_HASH): New macro with old definition of TYPE_HASH.
        * tree.c (build_type_attribute_variant): Use iterative_hash_object.
        (build_array_type, build_function_type): Likewise.
        (build_method_type_directly): Likewise.
        (build_offset_type, build_complex_type): Likewise.
        (type_hash_list, attribute_hash_list): Likewise. Now static.
        * except.c: s/TYPE_HASH/TREE_HASH/.
        * cp/tree.c (list_hash_pieces): s/TYPE_HASH/TREE_HASH/.

From-SVN: r78993
2004-03-05 17:38:24 -05:00
Bob Wilson 822e895caf xtensa.c (function_arg): Handle 16-byte aligned args.
* config/xtensa/xtensa.c (function_arg): Handle 16-byte aligned args.
	(xtensa_va_start): Initialize __va_stk to ($arg_ptr - 32).  Adjust
	__va_ndx by 2 words when referencing an argument on the stack.
	(xtensa_va_arg): Handle 16-byte aligned args.  Adjust __va_ndx by 2
	words when an arg on the stack is first seen.

From-SVN: r78990
2004-03-05 21:41:19 +00:00
Paul Brook 2eb83715ce arm.h (ARM_FLAG_VFP): Remove.
* arm.h (ARM_FLAG_VFP): Remove.
	(ARM_FLAG_ATPCS, CIRRUS_FIX_INVALID_INSNS): Renumber.
	* netbsd-elf.h (ARM_FLAG_VFP): Remove.

From-SVN: r78974
2004-03-05 16:59:54 +00:00
Paul Brook ce407aa992 * function.c (assign_parms): Include pretend alignment offset.
From-SVN: r78973
2004-03-05 16:44:33 +00:00
Richard Kenner 019dd4ece9 stor-layout.c (layout_type, [...]): Make size FUNCTION_BOUNDARY, not POINTER_SIZE * 2.
* stor-layout.c (layout_type, case FUNCTION_TYPE): Make size
	FUNCTION_BOUNDARY, not POINTER_SIZE * 2.

From-SVN: r78972
2004-03-05 11:19:41 -05:00
Ian Lance Taylor 33e70558b0 configure.ac: When passing --enable-languages to subdir configure when host != build...
* configure.ac: When passing --enable-languages to subdir
	configure when host != build, make sure we don't pass an empty
	value.
	* configure: Regenerate.

From-SVN: r78969
2004-03-05 14:11:58 +00:00
Nathan Sidwell ab78675363 re PR driver/13577 (multiple -o options with -c cause unrecognized option `-strip')
PR 13577
	* gcc.c (cc1_options): Robustify -auxbase-strip from multiple -o
	options.

From-SVN: r78966
2004-03-05 13:54:12 +00:00
Paolo Bonzini d2782048a2 simplify-rtx.c (simplify_relational_operation): If flag_wrapv is set...
2004-03-05  Paolo Bonzini  <bonzini@gnu.org>

	* simplify-rtx.c (simplify_relational_operation): If
        flag_wrapv is set, do not move terms between the two
        side of a relational operator.

From-SVN: r78962
2004-03-05 10:41:27 +00:00
Paolo Bonzini f894b69b75 rtlanal.c: Include target.h and output.h.
2004-03-05  Paolo Bonzini  <bonzini@gnu.org>

        * rtlanal.c: Include target.h and output.h.
        (rtx_cost, address_cost, default_address_cost): Move from...
        * cse.c (rtx_cost, address_cost, default_address_cost):
        ... this file.
        * rtl.h (rtx_cost, address_cost): Move under rtlanal.c.
        * Makefile.in: Adjust dependencies.

From-SVN: r78961
2004-03-05 10:32:54 +00:00
Paolo Bonzini 86caf04d48 cse.c (cse_end_of_basic_block): Make static.
2004-02-18  Paolo Bonzini <bonzini@gnu.org>

	* cse.c (cse_end_of_basic_block): Make static.
	* local-alloc.c (function_invariant_p): Move to
	reload1.c.
	* loop.c (libcall_other_reg, record_excess_regs):
	Make static.
	* reload1.c (function_invariant_p): Moved here
	from local-alloc.c, made static.
	* rtl.h (cse_end_of_basic_block, function_invariant_p,
	libcall_other_reg, record_excess_regs): Remove
	declarations.

From-SVN: r78960
2004-03-05 10:17:40 +00:00
Kazu Hirata d0fe265e2c m32r.c (signed_comparison_operator): Add a missing parenthesis.
* config/m32r/m32r.c (signed_comparison_operator): Add a
	missing parenthesis.

From-SVN: r78958
2004-03-05 05:37:20 +00:00
Ian Lance Taylor ee0d75efea ggc-common.c (gt_pch_restore): Don't unmap addr unless we are going to call mmap again.
* ggc-common.c (gt_pch_restore): Don't unmap addr unless we are
	going to call mmap again.  Read the file into the right place.
	Give a fatal error if we have to relocate.

From-SVN: r78957
2004-03-05 01:22:58 +00:00
Bob Wilson 6e5ff6e7fb xtensa.c (xtensa_return_in_msb): New function.
* config/xtensa/xtensa.c (xtensa_return_in_msb): New function.
	(TARGET_RETURN_IN_MSB): Define to xtensa_return_in_msb.

From-SVN: r78955
2004-03-05 01:13:43 +00:00
Hans-Peter Nilsson fd9361f7c4 Forgot to mark PR for <URL:http://gcc.gnu.org/ml/gcc-cvs/2004-03/msg00237.html>
PR other/14354
	* config/fp-bit.c (_fpdiv_parts): Do not round when pack_d would
	round the same.  When rounding, clear bits that would cause a
	second rounding in pack_d.
	(_fpmul_parts): Ditto.  Remove #if 0:d code.

From-SVN: r78954
2004-03-05 00:49:09 +00:00
Hans-Peter Nilsson fc7b80e449 fp-bit.c (_fpdiv_parts): Do not round when pack_d would round the same.
* config/fp-bit.c (_fpdiv_parts): Do not round when pack_d would
	round the same.  When rounding, clear bits that would cause a
	second rounding in pack_d.
	(_fpmul_parts): Ditto.  Remove #if 0:d code.

From-SVN: r78951
2004-03-05 00:27:56 +00:00
Ziemowit Laski b9e4e5d1c0 PR c++/14425, c++/14426
[gcc/ChangeLog]
2004-03-04  Ziemowit Laski  <zlaski@apple.com>

        PR c++/14425, c++/14426
        * config/rs6000/altivec.h (vec_splat_s8, vec_splat_s16,
        vec_splat_s32, vec_splat_u8, vec_splat_u16, vec_splat_u32):
        Change C++ definitions to accept a 'const int' argument;
        the prototypes already do.
        * config/rs6000/rs6000.c (rs6000_common_init_builtins):
        Rename v4si_ftype_char, v8hi_ftype_char, v16qi_ftype_char,
        v4sf_ftype_v4si_char, v4si_ftype_v4sf_char, v4si_ftype_v4si_char,
        v8hi_ftype_v8hi_char, v16qi_ftype_v16qi_char,
        v16qi_ftype_v16qi_v16qi_char, v8hi_ftype_v8hi_v8hi_char,
        v4si_ftype_v4si_v4si_char and v4sf_ftype_v4sf_v4sf_char to
        end in ..._int; change them to accept an int instead of a char
        as the last parameter.

[gcc/testsuite/ChangeLog]
2004-03-04  Ziemowit Laski  <zlaski@apple.com>

        PR c++/14425, c++/14426
        * g++.dg/ext/altivec-4.C: New test.
        * g++.dg/ext/altivec-5.C: New test.

From-SVN: r78940
2004-03-04 23:19:29 +00:00
Phil Edwards 8653fed73c genmultilib: Change '=' to '-' when translating option names to directory names.
2004-03-04  Phil Edwards  <phil@codesourcery.com>

	* genmultilib:  Change '=' to '-' when translating option names
	to directory names.

From-SVN: r78938
2004-03-04 22:04:38 +00:00
Richard Kenner daae8185c8 expr.c (expand_expr_real, [...]): Get proper type of stack slot for temp used for result of BLKmode but in...
* expr.c (expand_expr_real, case COMPONENT_REF): Get proper type of
	stack slot for temp used for result of BLKmode but in integral mode.

From-SVN: r78937
2004-03-04 17:00:59 -05:00
Jan Hubicka f345f21a90 reload.c (find_reloads): Reorganize if seqeunce to switch.
* reload.c (find_reloads): Reorganize if seqeunce to switch.

	* cfgrtl.c (rtl_redirect_edge_and_branch):  Set the source BB as dirty.
	(cfglayout_redirect_edge_and_branch):  Set the source BB as dirty.

From-SVN: r78936
2004-03-04 21:31:43 +00:00
Steve Ellcey aa42f99db9 ia64.md (divdf3_internal_thr): Fix algorithm.
* config/ia64/ia64.md (divdf3_internal_thr): Fix algorithm.
	* testsuite/gcc.dg/20040303-1.c: New test.

From-SVN: r78934
2004-03-04 21:21:36 +00:00
Steven Bosscher 56bab4461e ppro.md: Rewrite as a DFA pipeline description.
* ppro.md: Rewrite as a DFA pipeline description.
	* i386.md: Remove all uses of the ppro_uops attribute.
	* i386.c: (ix86_safe_ppro_uops, ix86_dump_ppro_packet,
	ix86_reorder_insn, ix86_sched_reorder_ppro, ix86_sched_init,
	ix86_sched_reorder, ix86_variable_issue,
	struct ix86_sched_data, TARGET_SCHED_VARIABLE_ISSUE,
	TARGET_SCHED_INIT, TARGET_SCHED_REORDER): Remove.
	(ia32_use_dfa_pipeline_interface): Add TARGET_PENTIUMPRO.
	(ia32_multipass_dfa_lookahead): Add TARGET_PENTIUMPRO.
	* athlon.md (athlon_ssecmp_load): Fix comment

From-SVN: r78933
2004-03-04 20:11:08 +00:00
Stuart Hastings 5a26b32904 invoke.texi: Document -mlongcall for Darwin/PPC.
2004-03-04  Stuart Hastings  <stuart@apple.com>
	* gcc/doc/invoke.texi: Document -mlongcall for Darwin/PPC.

From-SVN: r78927
2004-03-04 19:28:36 +00:00
Stuart Hastings 2e5d2af9d9 darwin.h: Darwin/x86 doesn't support CPUs before 686...
2004-03-04  Stuart Hastings  <stuart@apple.com>
	* gcc/config/i386/darwin.h: Darwin/x86 doesn't support CPUs before
	686, tell Darwin assembler to allow prefetch insns, non-empty def
	of SUBTARGET_OPTION_TRANSLATE_TABLE.

From-SVN: r78926
2004-03-04 19:24:21 +00:00
DJ Delorie 58f206d65d re PR rtl-optimization/14282 (ICE in sh-elf-gcc with -m4-single-only and -O2)
PR optimization/14282
* sched-deps.c (sched_analyze_insn): Allow a stack adjustment
between a call and the assignment of its return value.

From-SVN: r78925
2004-03-04 14:03:02 -05:00
Kazu Hirata e9eba25540 * config/h8300/h8300.c: Put a comment for every function.
From-SVN: r78924
2004-03-04 18:50:24 +00:00
Kazu Hirata d3c4083799 * config/h8300/h8300.md: Add comments about peephole2's.
From-SVN: r78921
2004-03-04 18:05:06 +00:00
Steven Bosscher eb3d7f9d1f * i386.h (TARGET_CPU_DEFAULT_nocona): Fix value.
From-SVN: r78919
2004-03-04 16:41:26 +00:00
Jan Hubicka 463301c30e cfgcleanup.c (thread_jump): Update call of cselib_init.
* cfgcleanup.c (thread_jump): Update call of cselib_init.
	* cselib.c (cselib_record_memory): New static variable.
	(cselib_lookup_mem, cselib_record_set, cselib_record_sets):
	Give up on memories when asked for.
	(cselib_init): Accept new argument.
	* cselib.h (cselib_init): Update prototype.
	* gcse.c (local_cprop_pass): Update call of cselib_init.
	* loop.c (load_mems): Update call of cselib_init.
	* postreload.c (reload_cse_regs_1): Update call of cselib_init.
	* sched-deps.c (sched_analyze): Update call of cselib_init.

From-SVN: r78917
2004-03-04 16:28:50 +00:00
David Edelsohn 3b6ce0af5e rs6000.c (output_function_profiler): Append @plt when compiling PIC.
2004-03-04  David Edelsohn  <edelsohn@gnu.org>
            GP <gp@qnx.com>

        * config/rs6000/rs6000.c (output_function_profiler): Append @plt
        when compiling PIC.

Co-Authored-By: GP <gp@qnx.com>

From-SVN: r78912
2004-03-04 10:28:59 -05:00
Josef Zlomek af93139093 var-tracking.c (track_expr_p): Do not track variables which should be ignored for debugging purposes.
PR/14362
	* var-tracking.c (track_expr_p): Do not track variables which
	should be ignored for debugging purposes.

From-SVN: r78902
2004-03-04 10:44:05 +00:00