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
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