Commit Graph

72248 Commits

Author SHA1 Message Date
Toon Moene
033107c3b1 invoke.texi: Remove superfluous @item.
2005-11-20  Toon Moene  <toon@moene.indiv.nluug.nl>

	* invoke.texi: Remove superfluous @item.

From-SVN: r107249
2005-11-20 10:58:24 +00:00
Andreas Schwab
6819a4637b re PR target/24757 (__sync_fetch_and_add on ia64)
PR target/24757
	* config/ia64/ia64.c (ia64_expand_atomic_op): Fix condition of cmp
	insn.

From-SVN: r107246
2005-11-20 10:43:43 +00:00
Richard Henderson
688e936d46 re PR tree-optimization/24665 (internal compiler error: get_indirect_ref_operands)
PR tree-opt/24665
        * tree-gimple.c (is_gimple_id): Export.
        * tree-gimple.h (is_gimple_id): Declare.
        * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): New.
        (get_default_value): Use it.
        (maybe_fold_stmt_indirect): Likewise.

From-SVN: r107244
2005-11-19 21:37:08 -08:00
James A. Morrison
7ab1122a47 tree-vrp.c (compare_ranges): Return false for EQ_EXPR if VR0 is less than VR1 or vice-versa.
2005-11-19  James A. Morrison  <phython@gcc.gnu.org>

        * tree-vrp.c (compare_ranges): Return false for EQ_EXPR if VR0 is less
        than VR1 or vice-versa.

From-SVN: r107243
2005-11-20 05:33:00 +00:00
GCC Administrator
b3231ce8af Daily bump.
From-SVN: r107240
2005-11-20 00:17:16 +00:00
Hans-Peter Nilsson
ff0d9879ab re PR middle-end/24912 (m68k build failure: ICE: in reload_cse_simplify_operands)
PR middle-end/24912
	PR middle-end/24750
	* reload.c (find_reloads_address_1): Mention dependency on
	gen_reload.
	* reload1.c (gen_reload): For IN with an unary operation, try
	moving inner expression to OUT if trivial SET is not valid.
	Confirm that the result is valid.  Move common code block into...
	(emit_insn_if_valid_for_reload): New function.

From-SVN: r107231
2005-11-19 21:56:17 +00:00
Hans-Peter Nilsson
152f76ec3d re PR middle-end/24912 (m68k build failure: ICE: in reload_cse_simplify_operands)
PR middle-end/24912
	* gcc.dg/torture/pr24912-1.c: New test.

From-SVN: r107230
2005-11-19 21:54:26 +00:00
Richard Guenther
41b9109a55 fold-const.c (fold_indirect_ref_1): Make sure we fold ARRAY_REFs of constant strings.
2005-11-19  Richard Guenther  <rguenther@suse.de>

	* fold-const.c (fold_indirect_ref_1): Make sure we fold
	ARRAY_REFs of constant strings.

From-SVN: r107229
2005-11-19 21:40:28 +00:00
Janne Blomqvist
815d8045e0 fortran ChangeLog:
2005-11-19  Janne Blomqvist  <jb@gcc.gnu.org>

	PR fortran/24862
	* trans-io.c (gfc_trans_transfer): Handle arrays of derived type.

testsuite ChangeLog:

2005-11-19  Janne Blomqvist  <jb@gcc.gnu.org>

	PR fortran/24862
	* gfortran.dg/arrayio_derived_1.f90: New test.

From-SVN: r107228
2005-11-19 23:36:06 +02:00
Jakub Jelinek
3817707ec3 gcc.c (version_compare_spec_function): Use '%s' rather than %qs in fatal format string.
* gcc.c (version_compare_spec_function): Use '%s' rather than %qs in
	fatal format string.

From-SVN: r107226
2005-11-19 21:18:31 +01:00
Richard Guenther
452b5b1e53 re PR ada/23717 ([Ada] Wrong ICE diagnostic formatting)
2005-11-19  Richard Guenther  <rguenther@suse.de>
	Roger Sayle  <roger@eyesopen.com>

        PR ada/23717
	* misc.c (internal_error_function): Don't use vsprintf to format
	the error message text, instead use pp_format_text and the new
	pretty printer APIs.  This allows handling of %qs, %w, etc.

Co-Authored-By: Roger Sayle <roger@eyesopen.com>

From-SVN: r107223
2005-11-19 17:24:33 +00:00
Joseph Myers
756191b7c5 combine.c (make_compound_operation): Swap operands of commutative operation if necessary before returning.
* combine.c (make_compound_operation): Swap operands of
	commutative operation if necessary before returning.

From-SVN: r107219
2005-11-19 12:32:23 +00:00
Richard Guenther
0ed9a3e314 re PR middle-end/23294 (fold does not fold a*C+a to a*(C+1) or a*C-a to a*(C-1))
2005-11-19  Richard Guenther  <rguenther@suse.de>

        PR middle-end/23294
	* fold-const.c (fold_plusminus_mult_expr): New function.
	(fold_binary): Use to canonicalize PLUS_EXPR and MINUS_EXPR
	cases, remove now unnecessary code.

	* gcc.dg/tree-ssa/pr23294.c: New testcase.

From-SVN: r107218
2005-11-19 11:29:10 +00:00
Eric Botcazou
0e32f9bcd5 Add comment.
From-SVN: r107217
2005-11-19 10:00:42 +00:00
Hans-Peter Nilsson
cdd07c4b25 * gcc.dg/fold-overflow-1.c: Adjust for float output for mmix-*-*.
From-SVN: r107216
2005-11-19 08:39:25 +00:00
Paolo Bonzini
ebce9df70b gensupport.c (old_preds): Rename to std_preds, add special field.
2005-11-19  Paolo Bonzini  <bonzini@gcc.gnu.org>

	* gensupport.c (old_preds): Rename to std_preds, add special field.
	(struct old_pred_table): Rename to struct std_pred_table, add special
	field.
	(NUM_KNOWN_OLD_PREDS): Rename to NUM_KNOWN_STD_PREDS.
	(NUM_OLD_SPECIAL_MODE_PREDS): Remove.
	(init_predicate_table): Adjust, and set along the way whether a
	predicate is special.

From-SVN: r107215
2005-11-19 08:36:57 +00:00
Hans-Peter Nilsson
8273ee9f13 Remove conflict markers
From-SVN: r107214
2005-11-19 08:35:22 +00:00
Mark Mitchell
4801f7ed6f * crontab: Add 4.1 branch entry.
From-SVN: r107213
2005-11-19 05:10:19 +00:00
Mark Mitchell
040a473fc7 * BASE-VER: Change to 4.2.0.
From-SVN: r107212
2005-11-19 05:09:00 +00:00
Mark Mitchell
abc088aad7 re PR c++/8355 (befriending a template specialization in another namespace)
PR c++/8355
	* decl.c (grokfndecl): Set up DECL_TEMPLATE_INFO before calling
	set_decl_namespace.
	* name-lookup.c (set_decl_namespace): 
	PR c++/8355
	* g++.dg/template/friend39.C: New test.

From-SVN: r107207
2005-11-19 02:25:55 +00:00
James E Wilson
817f9ef2e5 Fix spurious warning for strstr (s, "").
* builtins.c (fold_builtin_strstr): Pass s1 through fold_convert before
returning it.
* gcc.dg/builtin-strstr.c: New.

From-SVN: r107206
2005-11-18 18:25:25 -08:00
Richard Henderson
7b767e311d 20010423-1.c, [...]: Move from gcc.dg/.
* gcc.target/ia64/20010423-1.c, gcc.target/ia64/20020313-1.c,
        gcc.target/ia64/20020326-1.c, gcc.target/ia64/20030225-2.c,
        gcc.target/ia64/20030405-1.c, gcc.target/ia64/20030811-1.c,
        gcc.target/ia64/20040303-1.c: Move from gcc.dg/.
        * gcc.target/ia64/asm-1.c, gcc.target/ia64/float80-1.c,
        gcc.target/ia64/float80-2.c, gcc.target/ia64/got-1.c,
        gcc.target/ia64/postinc-1.c, gcc.target/ia64/types-1.c,
        gcc.target/ia64/types-2.c, gcc.target/ia64/visibility-1.c,
        gcc.target/ia64/visibility-2.c: Move from gcc.dg/, with
        renaming to remove initial "ia64-".

From-SVN: r107205
2005-11-18 18:19:43 -08:00
GCC Administrator
8d50f13900 Daily bump.
From-SVN: r107202
2005-11-19 00:17:23 +00:00
Mike Stump
7bbd0aab4c c-common.c (handle_cleanup_attribute): Use a lang hook for lookup_name.
* c-common.c (handle_cleanup_attribute): Use a lang hook for lookup_name.
	* config/darwin-c.c (darwin_pragma_unused): Likewise.
	* c-decl.c (lookup_name_two) Remove.
	* c-tree.h (lookup_name_two): Remove.
	* c-objc-common.h (LANG_HOOKS_LOOKUP_NAME): Add.
	* langhooks-def.h (LANG_HOOKS_LOOKUP_NAME): Add.
	(LANG_HOOKS_DECLS): Add initializer for LANG_HOOKS_LOOKUP_NAME.
	* langhooks.h (lang_hooks_for_decls): Add lookup_name.

cp:
	* cp-objcp-common.h (LANG_HOOKS_LOOKUP_NAME): Add.
	* name-lookup.c (lookup_name_two): Remove.
	(lookup_name_one): Add.
	* name-lookup.h (lookup_name_two): Remove.
	(lookup_name_one): Add.

From-SVN: r107196
2005-11-18 23:40:29 +00:00
Andreas Tobler
186abafe49 ltcf-c.sh (whole_archive_flag_spec): Remove '-all_load $convenience' to match upstream libtool for darwin.
2005-11-18  Andreas Tobler  <a.tobler@schweiz.ch>

	* ltcf-c.sh (whole_archive_flag_spec): Remove '-all_load $convenience'
	to match upstream libtool for darwin.

From-SVN: r107192
2005-11-18 23:53:08 +01:00
Eric Botcazou
4c63a5845d run_all.sh (target_run): Revert 2005-11-17 patch.
* ada/acats/run_all.sh (target_run): Revert 2005-11-17 patch.

From-SVN: r107190
2005-11-18 21:09:05 +00:00
Richard Earnshaw
a6a5de0428 re PR target/24914 (gcc fails when built with --with-cpu=ep9312 --with-fpu=maverick)
PR target/24914
	* arm.c (arm_hard_regno_mode_ok): Co-processor registers aren't ok
	when not generating code to use that co-processor.

From-SVN: r107187
2005-11-18 17:59:37 +00:00
James A. Morrison
e5e0238e33 tree-flow.h (reserve_phi_args_for_new_edge, [...]): Mention that these functions are now in tree-phinodes.c.
2005-11-18  James A. Morrison  <phython@gcc.gnu.org>

        * tree-flow.h (reserve_phi_args_for_new_edge, create_phi_node,
        add_phi_arg, remove_phi_args, remove_phi_node phi_reverse): Mention that        these functions are now in tree-phinodes.c.

From-SVN: r107185
2005-11-18 16:48:31 +00:00
Jie Zhang
3d33a0563a * config/bfin/bfin.md (trap): New pattern.
From-SVN: r107184
2005-11-18 14:15:11 +00:00
Richard Kenner
4d14c1f401 tree-ssa-dom.c (extract_range_from_cond): Deal with variable bounds on types.
* tree-ssa-dom.c (extract_range_from_cond): Deal with variable bounds
	on types.

From-SVN: r107182
2005-11-18 08:32:05 -05:00
Richard Kenner
e259b3c2b2 Fix typo in last change.
From-SVN: r107181
2005-11-18 08:25:20 -05:00
Richard Kenner
c48dc958ed expr.c (expand_expr_real): Don't look at EXPR_HAS_LOCATION unless ib_boundaries_block is non-null
* expr.c (expand_expr_real): Don't look at EXPR_HAS_LOCATION unless
	ib_boundaries_block is non-null

From-SVN: r107180
2005-11-18 08:22:55 -05:00
Richard Kenner
032e2f5085 * postreload.c (reload_cse_move2add): Don't try to work with BImode.
From-SVN: r107179
2005-11-18 08:14:39 -05:00
Richard Kenner
438090c372 fold-const.c (build_range_check): Use proper type for subtraction when merging lower bound.
* fold-const.c (build_range_check): Use proper type for subtraction
	when merging lower bound.

From-SVN: r107178
2005-11-18 08:07:06 -05:00
Paolo Carlini
7697e6c66a rc_string_base.h (__rc_string_base<>::_Rep): Avoid the anonymous struct extension, adjust everywhere.
2005-11-18  Paolo Carlini  <pcarlini@suse.de>

	* include/ext/rc_string_base.h (__rc_string_base<>::_Rep): Avoid the
	anonymous struct extension, adjust everywhere.

	* include/ext/rc_string_base.h (__rc_string_base<>::_S_empty_rep()):
	Just use a static member.
	(__rc_string_base<>::__rc_string_base(), _S_construct): Adjust.

	* include/ext/rc_string_base.h (__rc_string_base<>::_Rep): Use anonymous
	union together with _CharT to fix alignment issues, rebind to _Rep and
	rename _Raw_alloc to _Rep_alloc_type.
	(__rc_string_base<>::_Rep::_S_create, _M_destroy): Adjust consistently.

	* include/ext/vstring_util.h (__is_null_p): Move inside struct
	__vstring_utility as static _S_is_null_pointer.
	* include/ext/sso_string.h
	(__sso_string_base<>::_M_construct(std::forward_iterator_tag): Adjust.
	* include/ext/rc_string_base.h
	(__rc_string_base<>::_S_construct(std::forward_iterator_tag): Likewise.

	Implement Option 3 of DR 431 for ext/vstring - both available bases.
	* include/bits/cpp_type_traits.h (struct __is_empty): Add.
	* include/ext/vstring.h (__versa_string<>::swap): Delegate to
	this->_M_swap.
	* include/ext/vstring.tcc (__versa_string<>::swap): Remove.
	* include/ext/vstring_util.h (struct __vstring_utility<>): Add struct
	_Alloc_hider<>, augmented of allocator swapping facility, specialized
	to nop for empty allocators.
	* include/ext/rc_string_base.h (__rc_string_base<>::_M_swap): Use it.
	(__rc_string_base<>::_M_is_leaked, _M_set_sharable): Change to private.
	* include/ext/sso_string_base.h	(__sso_string_base<>::_M_swap):
	Likewise.
	(__sso_string_base<>::_M_is_leaked, _M_set_sharable): Remove, unused.	

	* include/ext/rc_string_base.h (__rc_string_base<>::_M_data(_CharT*):
	Return void.
	* include/ext/sso_string_base.h (__sso_string_base<>::_M_data(_CharT*):
	Likewise.

From-SVN: r107176
2005-11-18 11:50:22 +00:00
Laurent GUERBY
e0709888ef re PR ada/24857 (ada/s-auxdec.ads alignment issue for arm-rtems)
2005-11-18  Laurent GUERBY  <laurent@guerby.net>

        PR ada/24857
        * Makefile.in: Use s-auxdec-empty for RTEMS.

From-SVN: r107175
2005-11-18 11:44:20 +00:00
Joseph Myers
ce5bf41cc2 * g++.dg/cpp/string-2.C: New test.
From-SVN: r107174
2005-11-18 11:06:56 +00:00
Francois-Xavier Coudert
eda4ed4719 configure.ac: Add "-I ." to the AM_FCFLAGS.
* configure.ac: Add "-I ." to the AM_FCFLAGS.
	* configure: Regenerate.

From-SVN: r107172
2005-11-18 10:51:57 +00:00
Zdenek Dvorak
21f868a26a re PR rtl-optimization/24497 (internal compiler error: in apply_opt_in_copies, at loop-unroll.c:2122)
PR rtl-optimization/24497
	* loop-unroll.c (apply_opt_in_copies): Do not verify equality of
	the copied insn.

From-SVN: r107171
2005-11-18 10:31:45 +00:00
Zdenek Dvorak
925196ed52 tree-scalar-evolution.c (expression_expensive_p): New function.
* tree-scalar-evolution.c (expression_expensive_p): New function.
	(scev_const_prop): Use compute_overall_effect_of_inner_loop.

	* gcc.dg/tree-ssa/loop-14.c: New test.

From-SVN: r107170
2005-11-18 10:27:50 +00:00
Bernd Schmidt
d087f5fe31 Add missing file.
From-SVN: r107165
2005-11-18 09:09:24 +00:00
James A. Morrison
a5ddbe56e4 run_all.sh (target_run): Kill long running tests.
2005-11-17  James A. Morrison  <phython@gcc.gnu.org>
            Michael Chamberlain <michael@chamberlain.net.au>

        * ada/acats/run_all.sh (target_run): Kill long running tests.


Co-Authored-By: Michael Chamberlain <michael@chamberlain.net.au>

From-SVN: r107161
2005-11-18 06:13:07 +00:00
John David Anglin
9fb1c9dbc8 re PR target/24348 (bootstrap failure building libgcc)
PR target/24348
	* config.gcc (hppa*-*-hpux*): Add pa/t-slibgcc-elf-ver to tmake config
	when not using sjlj exceptions.
	* config/pa/pa64-hpux.h (LIB_SPEC): Add -lpthread in static links.
	* config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
	* config/pa/som.h (ASM_PREFERRED_EH_DATA_FORMAT): Delete define.
	* config/pa/linux-unwind.h (pa32_fallback_frame_state): Use
	DWARF_ALT_FRAME_RETURN_COLUMN instead of column 0 as return column.
	* config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): New define.
	* config/pa/pa-linux.h (INCOMING_RETURN_ADDR_RTX,
	DWARF_FRAME_RETURN_COLUMN, ASM_PREFERRED_EH_DATA_FORMAT,
	ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Delete defines.
	* config/pa/pa.h (ARG_POINTER_CFA_OFFSET): Delete.
	(FRAME_POINTER_CFA_OFFSET, INCOMING_RETURN_ADDR_RTX,
	DWARF_FRAME_RETURN_COLUMN, DWARF_ALT_FRAME_RETURN_COLUMN,
	ASM_PREFERRED_EH_DATA_FORMAT, ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): New
	defines.
	* config/pa/hpux-unwind.h: New file.

	* testsuite/gcc.dg/cleanup-8.c: Enable test on hppa*-*-hpux*.
	* testsuite/gcc.dg/cleanup-9.c: Likewise.
	* testsuite/gcc.dg/cleanup-10.c: Likewise.
	* testsuite/gcc.dg/cleanup-11.c: Likewise.

From-SVN: r107157
2005-11-18 03:22:18 +00:00
Alexandre Oliva
ff2d10c1e4 rs6000.h (ASM_OUTPUT_WEAKREF): Define.
* config/rs6000/rs6000.h (ASM_OUTPUT_WEAKREF): Define.
* defaults.h (ASM_OUTPUT_WEAKREF): Add decl argument.
* varasm.c (do_assemble_alias): Adjust call.
(weak_finish): Don't use ASM_WEAKEN_LABEL if ASM_WEAKEN_DECL
is defined.
* doc/tm.texi (ASM_OUTPUT_WEAKREF): Document it.

From-SVN: r107156
2005-11-18 01:55:34 +00:00
James E Wilson
ebb23329cd Fix confusing comment typo reported by Rafael Espindola.
* tree.def (FUNCTION_DECL): Correct typo in comment.

From-SVN: r107155
2005-11-17 17:29:16 -08:00
Richard Henderson
f6672e8e52 dwarf2out.c (dw_cfi_oprnd_struct): Reduce dw_cfi_reg_num to int.
* dwarf2out.c (dw_cfi_oprnd_struct): Reduce dw_cfi_reg_num to int.
        (lookup_cfa_1): Apply data alignment to DW_CFA_def_cfa_offset_sf
        and DW_CFA_def_cfa_sf.
        (def_cfa_1): Use DW_CFA_def_cfa_offset_sf with negative values.
        (dbx_reg_number): Don't assert particular registers here.
        (based_loc_descr): ... do it here instead.  Fold in ...
        (eliminate_reg_to_offset): ... this function.
        (compute_frame_pointer_to_cfa_displacement): Fold in the effects
        of eliminate_reg_to_offset; use FRAME_POINTER_CFA_OFFSET.
        * unwind-dw2.c (execute_cfa_program): Apply data align factor
        to DW_CFA_def_cfa_offset_sf and DW_CFA_def_cfa_sf.
        * function.c (instantiate_new_reg): Use FRAME_POINTER_CFA_OFFSET.
        (instantiate_virtual_regs): Likewise.
        * var-tracking.c (adjust_stack_reference): Likewise.
        * doc/tm.texi (FRAME_POINTER_CFA_OFFSET): New.

From-SVN: r107154
2005-11-17 17:19:10 -08:00
Mark Wielaard
ca9e049bc1 Imported GNU Classpath gcj-import-20051117.
* gnu/java/net/protocol/file/Connection.java: Removed, fully merged.
       * sources.am: Regenerated.
       * Makefile.in: Likewise.

From-SVN: r107153
2005-11-18 00:59:33 +00:00
GCC Administrator
fb3a09c214 Daily bump.
From-SVN: r107150
2005-11-18 00:17:22 +00:00
Hans-Peter Nilsson
eaa9c6bdb4 fpu-glibc.h (set_fpu): Only call fedisableexcept for nonzero FE_ALL_EXCEPT.
* config/fpu-glibc.h (set_fpu): Only call fedisableexcept for
	nonzero FE_ALL_EXCEPT.

From-SVN: r107145
2005-11-18 00:09:09 +00:00
Bernd Schmidt
9976dec829 elf.h (STARTFILE_SPEC): Add "crtlibid%O%s"
* config/bfin/elf.h (STARTFILE_SPEC): Add "crtlibid%O%s"
	* config/bfin/uclinux.h (STARFILE_SPEC): Likewise.
	* config/bfin/t-bfin-elf (EXTRA_PARTS, EXTRA_MULTILIB_PARTS): Add
	crtlibid.o.
	($(T)crtlibid.o): New rule.

From-SVN: r107138
2005-11-17 22:04:42 +00:00