Commit Graph

68190 Commits

Author SHA1 Message Date
David Edelsohn 47d96c3ea9 re PR middle-end/21237 (unnecessary __cmpdi2 usage?)
PR middle-end/21237
	* dojump.c (do_jump, MINUS_EXPR): Build NE_EXPR and fall through
	to NE_EXPR case.

From-SVN: r99444
2005-05-09 10:44:51 -04:00
David Edelsohn 0b04d2813f dojump.c (do_jump, MINUS_EXPR): Build NE_EXPR and fall through to NE_EXPR case.
* dojump.c (do_jump, MINUS_EXPR): Build NE_EXPR and fall through
	to NE_EXPR case.

From-SVN: r99443
2005-05-09 10:43:09 -04:00
Kazu Hirata ee30710df8 * config/ia64/ia64.c: Fix a comment typo.
From-SVN: r99442
2005-05-09 14:38:07 +00:00
Richard Earnshaw e6fffadeff re PR target/21397 (arm: -march overrides -mtune)
PR target/21397
	* arm.c (ARM_OPT_SET_CPU, ARM_OPT_SET_ARCH, ARM_OPT_SET_TUNE): Define.
	(arm_override_options): Use them instead of manifest constants.  Don't
	allow -march to override the -mtune setting.

From-SVN: r99441
2005-05-09 14:15:47 +00:00
Stan Cox f77a5578e1 * MAINTAINERS: Remove self, add Nick Clifton as iq2000 maintainer.
From-SVN: r99435
2005-05-09 13:34:05 +00:00
Jonathan Wakely 48cf14eb9a DR 434.
DR 434. bitset::to_string() hard to use [Ready]
	* include/debug/bitset (to_string): Add three overloads, taking
	fewer template arguments.

From-SVN: r99433
2005-05-09 13:45:05 +01:00
Nathan Sidwell 292c801888 iq2000.c (abort_with_insn): Use fancy_abort.
* config/iq2000/iq2000.c (abort_with_insn): Use fancy_abort.
	(gen_int_relational): Use gcc_unreachable and gcc_assert as necessary.
	(function_arg_advance, function_arg, save_restore_insns,
	iq2000_expand_prologue, iq2000_output_conditional_branch,
	expand_one_builtin, print_operand):
	* config/iq2000/iq2000.md (tablejump): Likewise.

From-SVN: r99432
2005-05-09 12:10:29 +00:00
Nathan Sidwell f2710beab6 re PR c++/21427 ([3.4/4.0 only] Failure in make_thunk, cp/method.c:145 when compiling with multiply-inherited members)
PR c++/21427
	* g++.dg/inherit/covariant13.C: New.

From-SVN: r99431
2005-05-09 11:52:44 +00:00
David Ung 880986c1ac mips.h (processor_type): Add names for the 24K.
* config/mips/mips.h (processor_type): Add names for the 24K.
	* config/mips/mips.c (mips_cpu_info_table): Add names for the 24K
	processor family.
	* config/mips/mips.md (cnv_mode): New attribute for recording the
	conversion types of float convert insns.
	(cpu): Add 24k and 24kx.
	(include): Include 24k.md file.
	(truncdfsf2, extendsfdf2, fix_truncdfsi2_insn, fix_truncdfsi2_macro)
	(fix_truncdfdi2, fix_truncsfdi2, floatsidf2, floatdidf2, floatsisf2)
	(floatdisf2): Setup cnv_mode.
	(fix_truncsfsi2_insn, fix_truncsfsi2_macro): Changed mode to SF and
	setup cnv_mode.
	* config/mips/24k.md: New file, contains 24k DFA pipeline
	description.

From-SVN: r99429
2005-05-09 11:43:50 +00:00
Nathan Sidwell f5b9e7c92c sh.c (print_operand_address): Use gcc_assert and gcc_unreachable as appropriate.
* config/sh/sh.c (print_operand_address): Use gcc_assert and
	gcc_unreachable as appropriate.
	(print_operand, prepare_move_operands, prepare_scc_operands,
	output_movedouble, output_branch, shift_insns_rtx, gen_shifty_op,
	gen_shl_and, shl_sext_kind, gen_datalabel_ref, dump_table,
	fixup_mova, gen_far_branch, sh_reorg, split_branches,
	final_prescan_insn, output_stack_adjust, sh_expand_epilogue,
	sh_set_return_address, sh_setup_incoming_varargs,
	initial_elimination_offset, sh_pch_valid_p, get_free_reg,
	sh_expand_builtin, sh_output_mi_thunk, extract_sfunc_addr,
	check_use_sfunc_addr): Likewise.
	* config/sh/netbsd-elf.h (FUNCTION_PROFILER): Likewise.
	* config/sh/sh.h (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
	* config/sh/symbian.c (sh_symbian_mark_dllexport,
	sh_symbian_mark_dllimport): Likewise.
	* config/sh/sh.md: Likewise.
	(movdicc, call_pop, call_value_pop, casesi_worker_1,
	casesi_worker_2, casesi_shift_media, casesi_load_media,
	return_media): Likewise.

From-SVN: r99425
2005-05-09 11:24:17 +00:00
Francois-Xavier Coudert 4581ba9d4f re PR libfortran/19155 ([4.0 only] blanks not treated as zeros in 'E' format read (NIST FM110.FOR))
PR libfortran/19155
	* io/read.c (read_f): Accept 'e', 'E', 'd' and 'D' as first
	non-blank characters of a real number.
	* gfortran.dg/pr19155.f: New test.

From-SVN: r99424
2005-05-09 11:21:01 +00:00
Roger Sayle 4bbcb8fcd4 re PR inline-asm/8788 (ICE in emit_move_insn, at expr.c:3089)
PR inline-asm/8788
	* stmt.c (expand_asm_operands): Avoid calling force_reg on BLKmode
	operands.

	* gcc.dg/pr8788-1.c: New testcase.

From-SVN: r99422
2005-05-09 05:15:50 +00:00
Richard Henderson 65ab381cbf * config/alpha/alpha.c (adjust_address): Fix typo last change.
From-SVN: r99421
2005-05-08 21:34:43 -07:00
GCC Administrator 6cdb89136b Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r99419.2
2005-05-09 00:16:36 +00:00
Richard Henderson 7e15b5fe4c re PR libffi/21285 (gij fails to handle NullPointerException exception)
PR libffi/21285
        * src/alpha/osf.S: Update unwind into to match code.

From-SVN: r99415
2005-05-08 16:23:50 -07:00
Joseph Myers 32800e7c8c * de.po: Update.
From-SVN: r99413
2005-05-09 00:02:20 +01:00
Stephane Carrez a63569e1ff m68hc11.h (REG_VALID_P): A regno must be >= 0 and -1 can happen in reg_renumber when...
* config/m68hc11/m68hc11.h (REG_VALID_P): A regno must be >= 0
	and -1 can happen in reg_renumber when no hard register is assigned.

From-SVN: r99411
2005-05-08 23:56:29 +02:00
Steven Bosscher ae3df61856 PR tree-optimization/14841, tree-optimization/15838
gcc/
	PR tree-optimization/14841, tree-optimization/15838
	* tree-ssa-ccp.c (fold_const_aggregate_ref): New.
	(evaluate_stmt): Call it.

testsuite/
	PR tree-optimization/14841, tree-optimization/15838
	* gcc.dg/tree-ssa/pr14841.c: New.

Co-Authored-By: Kazu Hirata <kazu@cs.umass.edu>

From-SVN: r99410
2005-05-08 21:22:21 +00:00
Jakub Jelinek 0f666d6e50 ia64.c (ia64_override_options): Don't set ia64_flag_var_tracking and clear flag_var_tracking here...
* config/ia64/ia64.c (ia64_override_options): Don't set
	ia64_flag_var_tracking and clear flag_var_tracking here...
	(ia64_file_start): ... but here.

From-SVN: r99408
2005-05-08 23:19:16 +02:00
Nathan Sidwell 5b48211701 m68hc11.c (m68hc11_emit_libcall): Use gcc_assert and gcc_unreachable as appropriate.
* config/m68hc11/m68hc11.c (m68hc11_emit_libcall): Use gcc_assert
	and gcc_unreachable as appropriate.
	(expand_prologue, expand_epilogue, m68hc11_gen_lowpart,
	m68hc11_gen_highpart, print_operand, print_operand_address,
	m68hc11_expand_compare, m68hc11_expand_compare_and_branch,
	m68hc11_gen_movhi): Likewise.
	* config/m68hc11/m68hc11.h (HARD_X_REGNUM): Reword comment.
	* config/m68hc11/m68hc11.md: Reword comment.

From-SVN: r99407
2005-05-08 20:58:31 +00:00
Stephane Carrez 6e60976ff1 re PR target/21281 (ICE with building newlib)
PR target/21281
	* config/m68hc11/predicates.md (splitable_operand): An immediate is
	allowed.

From-SVN: r99406
2005-05-08 22:04:52 +02:00
Stephane Carrez 02ee533e52 predicates.md (reg_or_some_mem_operand): Do not allow the 68HC12 address indirect addressing mode as it is not supported...
* config/m68hc11/predicates.md (reg_or_some_mem_operand): Do not allow
	the 68HC12 address indirect addressing mode as it is not supported by
	bset and bclr.
	* config/m68hc11/m68hc11-protos.h (m68hc11_valid_addressing_p): Declare.
	(m68hc11_add_mode): Declare.
	* config/m68hc11/m68hc11.c (m68hc11_valid_addressing_p): Rename from
	register_indirect_p and export it.
	(m68hc11_z_replacement): Use emit_insn_after when adding the save Z
	instruction so that it is part of the good BB.
	(m68hc11_gen_movhi): Fix invalid generation of indexed indirect
	addressing with movw.
	(m68hc11_gen_movqi): Use pula and pulb instead of lda and ldb for
	68HC12.
	* config/m68hc11/m68hc11.h (ADDR_STRICT, ADDR_INCDEC, ADDR_INDEXED,
	ADDR_OFFSET, ADDR_INDIRECT, ADDR__CONST): Moved from m68hc11.c.
	* config/m68hc11/m68hc11.md ("movhi_const0"): Use this pattern only
	for 68HC11.
	("*movhi_68hc12"): Handle movhi_const0.
	("*subhi3", "subqi3"): Use general_operand for operand 1.
	("*subhi3_zext"): Likewise.

From-SVN: r99405
2005-05-08 21:53:42 +02:00
Stephane Carrez 011699d905 re PR target/19051 (m6811-elf-gcc ICE)
PR target/19051
	* config/m68hc11/m68hc11.md ("mulqi3"): Use general_operand for operand
	1 and fix constraints.
	("mulqihi3"): Use general_operand for operand 2.

From-SVN: r99399
2005-05-08 19:52:22 +02:00
Matt Kraai 795e36e5d6 * README.SCO: Update the URL.
From-SVN: r99398
2005-05-08 17:49:46 +00:00
Julian Brown 11176d2ab6 configure.ac: Set ld_vers_major, ld_vers_minor and ld_vers_patch for GNU linker.
* configure.ac: Set ld_vers_major, ld_vers_minor and ld_vers_patch for
        GNU linker. Support linker version x.x.x.x.x. Require GNU linker
        20050308/2.16.0 or newer for comdat group.
        * configure: Regenerated.
        * config.in: Regenerated.
        * varasm.c (default_function_rodata_section): Put .rodata section in
        COMDAT group when necessary.
        (default_elf_asm_named_section): Rename HAVE_GAS_COMDAT_GROUP to
        HAVE_COMDAT_GROUP.
        (default_unique_section_1): Don't use .gnu.linkonce when COMDAT is
        available.

Co-Authored-By: H.J. Lu <hongjiu.lu@intel.com>
Co-Authored-By: Paul Brook <paul@codesourcery.com>

From-SVN: r99395
2005-05-08 16:58:03 +00:00
Kazu Hirata 357877ed3e * intrinsic.texi: Fix typos.
From-SVN: r99394
2005-05-08 15:30:38 +00:00
Kazu Hirata 2d4d14ac39 tree-dfa.c (referenced_vars, [...]): Use VEC instead of VARRAY.
* tree-dfa.c (referenced_vars, add_referenced_var): Use VEC
	instead of VARRAY.
	* tree-flow.h (num_referenced_var, referenced_var): Likewise.
	* tree-into-ssa.c (mark_def_site_blocks): Likewise.
	* tree-ssa.c (init_tree_ssa, delete_tree_ssa): Likewise.
	* tree-tailcall.c (suitable_for_tail_opt_p): Likewise.

From-SVN: r99393
2005-05-08 15:07:23 +00:00
Richard Sandiford e956d18242 Use dg-mips-options instead of dg-options.
From-SVN: r99391
2005-05-08 12:06:55 +00:00
Stephane Carrez a0cd568f59 re PR target/16925 (ICE when building a m68hc11 cross-compiler on 64-bit architectures)
PR target/16925
	* config/m68hc11/m68hc11.c (m68hc11_gen_highpart): Handle split of
	64-bit constants on 64-bit hosts.
	(m68hc11_split_logical): Simplify.
	(m68hc11_split_move): Likewise.

From-SVN: r99388
2005-05-08 12:23:39 +02:00
Nathan Sidwell 232b67d9f8 Makefile.in (cs-tconfig.h): Pass USED_FOR_TARGET to mkconfig.sh
* Makefile.in (cs-tconfig.h): Pass USED_FOR_TARGET to mkconfig.sh
	* aclocal.m4 (GCC_TARGET_TEMPLATE, AH_TEMPLATE): New.
	* configure.ac (enable_checking): Fix typos in runtime_checking.
	(ENABLE_RUNTIME_CHECKING): Mark as target template.
	(xm_file): Prepend auto-host.h
	(HAVE_GAS_HIDDEN, HAVE_LD_EH_FRAME_HDR): Mark as target template.
	* mkconfig.sh: Do not automatically define USED_FOR_TARGET in
	tconfig.h.
	* crtstuff.c: Do not include auto-host.h.
	(IN_LIBGCC2): Do not define.
	* gcov-io.h: Include tconfig.h, not auto-host.h.
	* libgcc2.c: Do not include auto-host.h.
	(abort): Do not undefine.
	* libgcov.c: Remove unneeded comment about config.h.
	* unwind-dw2-fde-glibc.c: Do not inlude auto-host.h.
	* config.in, configure: Regenerated.

Co-Authored-By: Paolo Bonzini <bonzini@gnu.org>

From-SVN: r99386
2005-05-08 10:13:19 +00:00
Nathan Sidwell 56daab84ad alpha.c (tls_symbolic_operand_1): Use gcc_assert and gcc_unreachable as appropriate.
* config/alpha/alpha.c (tls_symbolic_operand_1): Use gcc_assert
	and gcc_unreachable as appropriate.
	(get_aligned_mem, get_unaligned_address,
	alpha_emit_set_long_const, alpha_emit_conditional_branch,
	alpha_emit_setcc, alpha_emit_conditional_move,
	alpha_lookup_xfloating_lib_func, alpha_compute_xfloating_mode_arg,
	alpha_emit_xfloating_libcall, alpha_split_tfmode_pair,
	alpha_expand_unaligned_load, alpha_expand_block_move,
	alpha_expand_zap_mask, get_trap_mode_suffix,
	get_round_mode_suffix, get_some_local_dynamic_name,
	print_operand_address, function_arg, alpha_return_in_memory,
	function_value, alpha_expand_builtin,
	alpha_initial_elimination_offset, alpha_expand_epilogue,
	summarize_insn, alpha_handle_trap_shadows, alphaev5_insn_pipe,
	alphaev5_next_group, alpha_align_insns,
	unicosmk_initial_elimination_offset, unicosmk_unique_section,
	unicosmk_ssib_name): Likewise.
	* config/alpha/alpha.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
	* config/alpha/unicosmk.h (TRAMPOLINE_TEMPLATE,
	ASM_OUTPUT_ADDR_DIFF_ELT, ASM_OUTPUT_ADDR_DIFF_VEC): Likewise.
	* config/alpha/vms.h (INITIAL_ELIMINATION_OFFSET,
	ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
	* config/alpha/alpha.md (*divmodsi_internal_er,
	*divmoddi_internal_er, ashldi3, *insxl, sibcall, call_osf,
	call_nt, call_umk, call_vms, call_value, sibcall_value,
	call_value_osf, call_value_nt, call_value_vms, call_value_umk,
	*call_vms_1, *movmemdi_1, *clrmemdi_1, *call_value_vms_1): Likewise.
	* config/alpha/predicates.md (input_operand): Likewise.

Co-Authored-By: Falk Hueffner <falk@debian.org>

From-SVN: r99384
2005-05-08 09:48:22 +00:00
Nathan Sidwell 44e91694bd frv.c (frv_default_flags_for_cpu): Use gcc_assert and gcc_unreachable, as appropriate.
* config/frv/frv.c (frv_default_flags_for_cpu): Use gcc_assert and
	gcc_unreachable, as appropriate.
	(frv_function_prologue, frv_alloc_temp_reg,
	frv_initial_elimination_offset, frv_expand_block_move,
	frv_expand_block_clear, frv_print_operand_jump_hint,
	frv_legitimize_tls_address, unspec_got_name, frv_emit_move,
	frv_emit_movsi, frv_split_cond_move, frv_split_minmax,
	frv_ifcvt_modify_insn, frv_ifcvt_modify_final,
	frv_adjust_field_align, frv_insn_unit, frv_cond_flags,
	frv_sort_insn_group, frv_reorder_packet, frv_matching_accg_mode,
	frv_in_small_data_p, frv_asm_out_constructor,
	frv_asm_out_destructor, frv_output_dwarf_dtprel): Likewise.
	* config/frv/frv.md (reload_incc_fp, *cond_exec_si_binary1,
	*cond_exec_si_binary2, *cond_exec_si_divide, *cond_exec_si_unary1,
	*cond_exec_sf_conv, *cond_exec_sf_add, call, sibcall, call_value,
	sibcall_value, casesi): Likewise.

From-SVN: r99383
2005-05-08 09:40:45 +00:00
Nathan Sidwell dc759020e8 mn10300.c (print_operand): Use gcc_assert and gcc_unreachable as appropriate.
* config/mn10300/mn10300.c (print_operand): Use gcc_assert and
	gcc_unreachable as appropriate.
	(print_operand_address, mn10300_print_reg_list, expand_prologue,
	expand_epilogue, notice_update_cc, initial_offset,
	mn10300_address_cost_1): Likewise.
	* config/mn10300/mn10300.md: Likewise.
	(absdf2, abssf2, negdf2, negsf2): Likewise.

From-SVN: r99382
2005-05-08 09:37:17 +00:00
Richard Sandiford 5e9ad4cf08 Add PR number to last changelog.
From-SVN: r99381
2005-05-08 09:27:18 +00:00
Richard Sandiford 401d24f9fd mips.c (mips_emit_compare): Don't reverse UNGE and UNGT comparisons.
* config/mips/mips.c (mips_emit_compare): Don't reverse UNGE and UNGT
	comparisons.
	* config/mips/mips.md (swapped_fcond): New code macro and attribute.
	(sgt_<mode>, sge_<mode>): Generalize to all members of swapped_fcond,
	including sunge_<mode> and sungt_<mode>.

From-SVN: r99380
2005-05-08 09:24:45 +00:00
Richard Sandiford 6356b54645 integrate.h (get_hard_reg_initial_val): Change type of register parameter from int to unsigned int.
* integrate.h (get_hard_reg_initial_val): Change type of register
	parameter from int to unsigned int.
	(has_hard_reg_initial_val): Likewise.
	* integrate.c (get_hard_reg_initial_val): Likewise.
	(has_hard_reg_initial_val): Likewise.  Remove cast to unsigned int.

From-SVN: r99379
2005-05-08 09:16:47 +00:00
Kazu Hirata 88877022e7 except.c (eh_status): Change the type of ttype_data to VEC(tree,gc)*.
* except.c (eh_status): Change the type of ttype_data to
	VEC(tree,gc)*.
	(add_ttypes_entry, assign_filter_values,
	output_function_exception_table): Use VEC instead of VARRAY.

From-SVN: r99378
2005-05-08 04:22:42 +00:00
David Edelsohn 1e0aa44aed * config/rs6000/rs6000.md (popcount<mode>2): Fix non-C90 constant.
From-SVN: r99377
2005-05-07 22:35:49 -04:00
Kazu Hirata 1e625046b8 class.c (vtbl_init_data_s): Change the type of fns to VEC(tree,gc)*.
* class.c (vtbl_init_data_s): Change the type of fns to
	VEC(tree,gc)*.
	(build_vtbl_initializer, add_vcall_offset, add_vcall_offset):
	Use VEC instead of VARRAY.

From-SVN: r99376
2005-05-08 02:17:54 +00:00
Paul Brook d7d461f765 Makefile.in: Fix dependencies.
2005-05-07  Paul Brook  <paul@codesourcery.com>

	* Makefile.in: Fix dependencies.
	(GCOV_IO_H, VARRAY_H): Set.

From-SVN: r99375
2005-05-08 01:15:17 +00:00
GCC Administrator 457aa25755 Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r99373.2
2005-05-08 00:16:34 +00:00
Anthony Green d8e5117dc0 re PR bootstrap/21403 (Canadian cross build fails.)
2005-05-07  Anthony Green  <green@redhat.com>

        PR bootstrap/21403
        * configure.ac (STMP_FIXPROTO): Fix [ ] consumption problem in
        x$STMP_FIXPROTO test.
        * configure: Rebuilt.

From-SVN: r99370
2005-05-07 22:31:59 +00:00
Joseph Myers cdfe0aa3ad * de.po, zh_CN.po: Update.
From-SVN: r99366
2005-05-07 21:42:09 +01:00
Steven G. Kargl a6334742f2 intrinsic.texi: Document ASSOCIATED and ATAN2.
* intrinsic.texi:  Document ASSOCIATED and ATAN2.  Update Bessel function
  descriptions to include info about scalar arguments.

From-SVN: r99365
2005-05-07 20:37:20 +00:00
Joseph Myers 758cdc1123 pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Do not define inappropriate feature test macros if flag_iso.
* config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Do not define
	inappropriate feature test macros if flag_iso.

From-SVN: r99363
2005-05-07 21:14:42 +01:00
Joseph Myers bdeb7efa69 * config/ia64/hpux.h (NO_IMPLICIT_EXTERN_C): Define.
From-SVN: r99362
2005-05-07 21:12:07 +01:00
Hans-Peter Nilsson 3ad65c8e5f re PR target/21441 (CRIS: gcc.c-torture/execute/20040703-1.c compilation, -Os and libstdc++ setup)
PR target/21441
	* config/cris/cris.md ("*movdi_insn", "*mov_sidesisf_biap")
	("*mov_sidesisf", "*mov_sidesisf_biap_mem", "*mov_sidesisf_mem"):
	Handle moved operand being in special register.
	("smulsi3_highpart", "umulsi3_highpart"): Change .error into
	presumed working insn.
	(mover2side): Add FIXME.

From-SVN: r99360
2005-05-07 19:40:25 +00:00
Hans-Peter Nilsson 477c433d48 * config/cris/cris.md ("*movdi_insn", "*mov_sidesisf_biap")
("*mov_sidesisf", "*mov_sidesisf_biap_mem", "*mov_sidesisf_mem"):
	Handle moved operand being in special register.
	("smulsi3_highpart", "umulsi3_highpart"): Change .error into
	presumed working insn.
	(mover2side): Add FIXME.

From-SVN: r99359
2005-05-07 19:37:15 +00:00
Richard Sandiford f72392241a integrate.c (get_func_hard_reg_initial_val): Delete.
* integrate.c (get_func_hard_reg_initial_val): Delete.
	(has_func_hard_reg_initial_val): Delete.
	(get_hard_reg_initial_val): Inline the old implementation of
	get_func_hard_reg_initial_val.  Use has_hard_reg_initial_val
	instead of has_func_hard_reg_initial_val to test for an existing
	pseudo.  Only create an rtx if a new initial value entry is needed.
	(has_hard_reg_initial_val): Scan the initial value list directly.
	Don't create an rtx.

From-SVN: r99358
2005-05-07 19:05:33 +00:00
David Edelsohn c1630cc5dc opt-functions.awk (var_set): Emit OPTION_MASK_ for InverseMask if variable name exists.
* opt-functions.awk (var_set): Emit OPTION_MASK_ for InverseMask
        if variable name exists.

From-SVN: r99357
2005-05-07 15:03:22 -04:00