Ben Elliston
9b92bf04bf
cse.c (fold_rtx): Typo fix.
...
* cse.c (fold_rtx): Typo fix.
(find_comparison_args): Pass the mode of arg1, not arg1 itself.
From-SVN: r107326
2005-11-22 08:29:23 +11:00
Richard Henderson
10e6657a20
c-common.c, [...]: Revert 2005-11-18 lookup_name patch.
...
gcc/
* c-common.c, config/darwin-c.c, c-decl.c, c-tree.h, c-objc-common.h,
langhooks-def.h, langhooks.h: Revert 2005-11-18 lookup_name patch.
* c-tree.h (lookup_name): Move declaration ...
* c-common.h (lookup_name): ... here.
* config/darwin-c.c: Include c-common.h.
* config/t-darwin: Update dependencies.
gcc/cp/
* cp-objcp-common.h, name-lookup.c, name-lookup.h: Revert 11-18 patch.
* name-lookup.c (lookup_name): Remove prefer_type argument.
(lookup_name_prefer_type): New.
* decl.c (lookup_and_check_tag): Use them.
* pt.c (tsubst_friend_class): Likewise.
(lookup_template_class): Likewise.
(tsubst_copy_and_build): Likewise.
* name-lookup.h (lookup_name_prefer_type): New.
(lookup_name): Remove declaration.
From-SVN: r107325
2005-11-21 13:27:29 -08:00
Ben Elliston
3d8bf70f59
optabs.c (expand_abs_nojump): Use SCALAR_FLOAT_MODE_P instead of explicitly testing GET_MODE_CLASS (x) ==...
...
* optabs.c (expand_abs_nojump): Use SCALAR_FLOAT_MODE_P instead of
explicitly testing GET_MODE_CLASS (x) == MODE_FLOAT.
* genopinit.c (gen_insn): Likewise.
* reload.c (find_equiv_reg): Likewise.
* loop.c (load_mems): Likewise.
* rtlanal.c (may_trap_p_1, canonicalize_condition): Likewise.
* cse.c (find_comparison_args, fold_rtx): Likewise.
* dwarf2out.c (add_const_value_attribute): Likewise.
* expr.c (convert_move): Likewise.
* recog.c (general_operand, register_operand): Likewise.
* reg-stack.c (replace_reg): Likewise.
* tree-vect-generic.c (type_for_widest_vector_mode): Likewise.
* c-common.c (handle_vector_size_attribute): Likewise.
* simplify-rtx.c (simplify_const_unary_operation): Likewise.
(simplify_binary_operation_1): Likewise.
(simplify_const_binary_operation): Likewise.
(simplify_relational_operation): Likewise.
(simplify_const_relational_operation): Likewise.
(simplify_immed_subreg): Likewise.
* emit-rtl.c (gen_lowpart_common): Likewise.
* expmed.c (expand_mult): Likewise.
* stor-layout.c (layout_type): Likewise.
From-SVN: r107322
2005-11-22 07:53:27 +11:00
Eric Botcazou
9cfda6fa54
re PR libfortran/24432 (Missing symbols)
...
PR libfortran/24432
* lib/target-supports.exp (check_effective_target_fortran_large_real):
Check that 'cos' is supported.
From-SVN: r107321
2005-11-21 20:52:25 +00:00
Paolo Carlini
b6cb8dc2d8
sso_string_base.h: Minor formatting and stylistic fixes.
...
2005-11-21 Paolo Carlini <pcarlini@suse.de>
* include/ext/sso_string_base.h: Minor formatting and stylistic fixes.
(__sso_string_base<>::_M_get_allocator): Return by const ref.
* include/ext/rc_string_base.h: Likewise.
(__rc_string_base<>::_M_get_allocator): Return by const ref.
(__rc_string_base<>::_M_dispose): Take void, use _M_get_allocator.
(__rc_string_base<>::_M_grab): Take one alloc, use _M_get_allocator.
(__rc_string_base<>::~__rc_string_base,
__rc_string_base(const __rc_string_base&), _M_assign, _M_reserve,
_M_mutate): Adjust.
* include/ext/vstring_util.h: Minor stylistic fixes.
From-SVN: r107317
2005-11-21 18:38:05 +00:00
Paolo Bonzini
e20dcbefa5
re PR target/24951 (ICE: RTL check: expected code 'const_int', have 'const_double' in output_vec_const_move, at config/rs6000/rs6000.c)
...
2005-11-21 Paolo Bonzini <bonzini@gnu.org>
PR target/24951
* config/rs6000/rs6000.c (output_vec_const_move): Load cst and
cst2 only for SPE vectors.
From-SVN: r107312
2005-11-21 16:38:13 +00:00
David Edelsohn
72c164b3f8
re PR target/24953 (RTL check: access of elt 1 of vector with last elt 0 in vrsave_operation_1, at config/rs6000/predicates.md:1041)
...
PR target/24953
* config/rs6000/predicates.md (vrsave_operation): Check
UNSPEC_VOLATILE value.
From-SVN: r107311
2005-11-21 11:12:32 -05:00
Paul Thomas
b95605fb0c
re PR fortran/24223 (Gfortran crashes in two places)
...
2005-11-21 Paul Thomas <pault@gcc.gnu.org>
PR fortran/24223
* resolve.c (resolve_contained_fntype) Error if an internal
function is assumed character length.
PR fortran/24705
* trans-decl.c (gfc_create_module_variable) Skip ICE in
when backend decl has been built and the symbol is marked
as being in an equivalence statement.
2005-11-21 Paul Thomas <pault@gcc.gnu.org
PR fortran/24223
* gfortran.dg/substring_equivalence.f90: New test.
PR fortran/24705
* gfortran.dg/auto_internal_assumed.f90: New test.
From-SVN: r107310
2005-11-21 16:05:58 +00:00
Jan Hubicka
078152a256
re PR tree-optimization/24653 (EON regressed seriously on x86-64)
...
PR tree-optimization/24653
* tree-ssa-ccp.c (ccp_fold): Strip down useless conversions.
From-SVN: r107304
2005-11-21 13:14:02 +00:00
Uros Bizjak
1c2871213e
predicates.md (ax_reg_operand): New predicate.
...
* config/i386/predicates.md (ax_reg_operand): New predicate.
(memory_displacement_only_operand): New predicate.
* config/i386/i386.md ("modrm" attribute): Return 0 if one
operand is AX register and the other operand is memory operand
with displacement only.
From-SVN: r107283
2005-11-21 08:55:31 +01:00
Uros Bizjak
ffbc33cc0f
fold-const.c (fold_binary): Optimize A / A to 1.0 if we don't care about NaNs or Infinities.
...
* fold-const.c (fold_binary) <RDIV_EXPR>: Optimize A / A to 1.0
if we don't care about NaNs or Infinities.
testsuite:
* gcc.dg/fold-div-2.c: New test.
From-SVN: r107282
2005-11-21 08:49:47 +01:00
Ian Lance Taylor
083a9e91be
re PR rtl-optimization/24883 (fatal error: internal consistency failure building xorg-x11)
...
./: PR rtl-optimization/24883
* combine.c (combinable_i3pat): When checking whether the
destination of i3 is used in i3, consider paradoxical subregs.
testsuite/:
PR rtl-optimization/24883
* gcc.c-torture/compile/pr24883.c: New test.
From-SVN: r107279
2005-11-21 05:41:36 +00:00
Kazu Hirata
1ef6855c51
re PR rtl-optimization/20583 (ICE in output_operand: invalid expression as operand)
...
gcc/
PR middle-end/20583
* cse.c (cse_insn): Reject invalid forms of CONST earlier.
gcc/testsuite/
PR middle-end/20583
* gcc.c-torture/compile/pr20583.c: New.
From-SVN: r107278
2005-11-21 04:41:38 +00:00
Ben Elliston
67dc1785a5
Import from Autoconf sources:
...
2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
* config/move-if-change: Don't output "$2 is unchanged";
suggested by Ben Elliston. Handle weird characters correctly.
From-SVN: r107275
2005-11-21 13:21:37 +11:00
Joseph Myers
7cf3d07976
combine.c (try_combine): Do not run subst on i1src and i2src in the case of generating a PARALLEL for a...
...
* combine.c (try_combine): Do not run subst on i1src and i2src in
the case of generating a PARALLEL for a comparison.
From-SVN: r107273
2005-11-21 01:19:00 +00:00
Richard Henderson
d116ffa6c2
re PR tree-optimization/24931 (uninitialized structure member after assignment)
...
PR 24931
* tree-sra.c (struct sra_elt): Add all_no_warning.
(struct sra_walk_fns) <use>: Add use_all argument.
(sra_walk_expr): Pass it.
(sra_walk_modify_expr): Likewise.
(scalarize_ldst): Likewise.
(scan_use): Update for new argument.
(mark_no_warning): New.
(scalarize_use): Use it.
From-SVN: r107271
2005-11-20 16:51:39 -08:00
GCC Administrator
6b6c5c5d68
Daily bump.
...
From-SVN: r107268
2005-11-21 00:17:27 +00:00
Richard Henderson
fd9b524973
Makefile.am: Revert 2005-11-14 change.
...
* Makefile.am: Revert 2005-11-14 change. Enable -free-vectorize
via gmake per-target variables.
* Makefile.in, aclocal.m4: Regenerate.
From-SVN: r107261
2005-11-20 12:35:17 -08:00
Bernd Schmidt
8b44057d9b
expr.c (expand_expr_real): Use usmul_optab for widening signed * unsigned multiplies.
...
* expr.c (expand_expr_real): Use usmul_optab for widening
signed * unsigned multiplies.
* genopinit.c (optabs): Add usmul_widen_optab.
* optabs.c (init_optabs): Likewise.
* optabs.h (enum optab_index): Add OTI_usmul_widen.
(usmul_widen_optab): Define.
* config/bfin/bfin.md (usmulhisi3): New pattern.
* doc/md.texi (usmulqihi3, usmulhisi3, usmulsidi3): Document.
From-SVN: r107258
2005-11-20 18:49:18 +00:00
Bernd Schmidt
23ffc23579
usmul.c: New test.
...
* gcc.c-torture/execute/usmul.c: New test.
From-SVN: r107257
2005-11-20 18:25:59 +00:00
Joseph Myers
90d55c93fb
* cpplib.pot: Regenerate.
...
From-SVN: r107256
2005-11-20 18:08:13 +00:00
Joseph Myers
f74a57f8b2
* gcc.pot: Regenerate.
...
From-SVN: r107255
2005-11-20 18:07:15 +00:00
Graham Stott
1815d8d463
gensupport.c (std_preds): Fixed extraneous `false` in last change.
...
* gensupport.c (std_preds): Fixed extraneous `false` in last change.
From-SVN: r107252
2005-11-20 15:02:13 +00:00
David Ayers
8470034667
re PR libobjc/19024 (name collisions libobjc/libmysqlclient)
...
2005-11-20 David Ayers <d.ayers@inode.at>
PR libobjc/19024
* objc/hash.h: Remove deprecated hash API.
* hash_compat.c: Remove.
* Makefile.in: Remove reference to hash_compat.c.
* configure.ac (VERSION): Bump library version to 2:0:0.
* configure: Regenerate.
From-SVN: r107251
2005-11-20 12:49:41 +00:00
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