gcc.git
14 years agore PR fortran/43409 (I/O: INQUIRE for SIZE does not work.)
Jerry DeLisle [Sat, 20 Mar 2010 14:42:04 +0000 (14:42 +0000)]
re PR fortran/43409 (I/O: INQUIRE for SIZE does not work.)

2010-03-20  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR fortran/43409
* gfortran.dg/inquire_size.f90: New test.

From-SVN: r157594

14 years agore PR fortran/43409 (I/O: INQUIRE for SIZE does not work.)
Jerry DeLisle [Sat, 20 Mar 2010 14:39:00 +0000 (14:39 +0000)]
re PR fortran/43409 (I/O: INQUIRE for SIZE does not work.)

2010-03-20  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR fortran/43409
* ioparm.def: Change inquire size variable to type pointer to
GFC_IO_INT type.

2010-03-20  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR fortran/43409
* io/unix.h: Add prototype for new function to return file size.
* io/unix.c (file_size): New function.
* io/inquire.c (inquire_via_unit): Use new function.
(inquire_via_filename): Use new function.

From-SVN: r157593

14 years agore PR rtl-optimization/43438 (possible wrong code bug)
Richard Guenther [Sat, 20 Mar 2010 13:44:18 +0000 (13:44 +0000)]
re PR rtl-optimization/43438 (possible wrong code bug)

2010-03-20  Richard Guenther  <rguenther@suse.de>

PR rtl-optimization/43438
* combine.c (make_extraction): Properly zero-/sign-extend an
extraction of the low part of a CONST_INT.  Also handle
CONST_DOUBLE.

* gcc.c-torture/execute/pr43438.c: New testcase.

From-SVN: r157592

14 years agore PR c++/43375 (ICE during compiling SSE code)
Dodji Seketeli [Sat, 20 Mar 2010 08:55:32 +0000 (08:55 +0000)]
re PR c++/43375 (ICE during compiling SSE code)

Fix for PR c++/43375

gcc/cp/ChangeLog:
PR c++/43375
* method.c (make_alias_for): Avoid crashing when DECL_LANG_SPECIFIC
is NULL.
* decl2.c (vague_linkage_p): Likewise.

gcc/testsuite/g++.dg/ChangeLog:
PR c++/43375
* g++.dg/abi/mangle42.C: New test.

From-SVN: r157590

14 years agodarwin.h (SUBTARGET32_DEFAULT_CPU): Add.
Mike Stump [Sat, 20 Mar 2010 05:40:05 +0000 (05:40 +0000)]
darwin.h (SUBTARGET32_DEFAULT_CPU): Add.

* config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
* config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
(override_options): Use SUBTARGET32_DEFAULT_CPU.

From-SVN: r157589

14 years agoDaily bump.
GCC Administrator [Sat, 20 Mar 2010 00:16:44 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r157588

14 years agore PR c/43211 (ICE with incomplete type in function argument)
Andrew Pinski [Fri, 19 Mar 2010 22:52:41 +0000 (15:52 -0700)]
re PR c/43211 (ICE with incomplete type in function argument)

2010-03-19  Andrew Pinski  <andrew_pinski@caviumnetworks.com>

        PR C/43211
        * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was an error.

2010-03-19  Andrew Pinski  <andrew_pinski@caviumnetworks.com>

        PR C/43211
        * gcc.dg/pr43211.c: New test.
        * gcc.dg/pr18809-1.c: Don't expect an error when calling foo.

From-SVN: r157585

14 years agooptabs.c (avoid_expensive_constant): Fix formatting.
Bernd Schmidt [Fri, 19 Mar 2010 19:45:01 +0000 (19:45 +0000)]
optabs.c (avoid_expensive_constant): Fix formatting.

* optabs.c (avoid_expensive_constant): Fix formatting.

From-SVN: r157584

14 years agothumb-andsi.c: Correct dg-options and add dg-require-effective-target.
Bernd Schmidt [Fri, 19 Mar 2010 19:42:59 +0000 (19:42 +0000)]
thumb-andsi.c: Correct dg-options and add dg-require-effective-target.

* gcc.target/arm/thumb-andsi.c: Correct dg-options and add
dg-require-effective-target.

From-SVN: r157583

14 years agore PR target/40697 (inefficient code to extract least bits from an integer value)
Bernd Schmidt [Fri, 19 Mar 2010 18:41:22 +0000 (18:41 +0000)]
re PR target/40697 (inefficient code to extract least bits from an integer value)

gcc/
PR target/40697
* optabs.c (avoid_expensive_constant): Use rtx_cost to find out
the cost of loading the constant rather than assuming
COSTS_N_INSNS (1).
* config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
outer code is AND, do the same tests as the andsi3 expander and
return COSTS_N_INSNS (1) if and is cheap.

testsuite/
PR target/40697
* gcc.target/arm/thumb-andsi.c: New test.

From-SVN: r157582

14 years agore PR rtl-optimization/42258 (redundant register move around mul instruction)
Bernd Schmidt [Fri, 19 Mar 2010 18:18:54 +0000 (18:18 +0000)]
re PR rtl-optimization/42258 (redundant register move around mul instruction)

gcc/
PR rtl-optimization/42258
* ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
use that may match DEF.

testsuite/
PR rtl-optimization/42258
* gcc.target/arm/thumb1-mul-moves.c: New test.

From-SVN: r157581

14 years agore PR c++/43116 (ICE when using attributes in a function alias declaration)
Michael Matz [Fri, 19 Mar 2010 16:37:27 +0000 (16:37 +0000)]
re PR c++/43116 (ICE when using attributes in a function alias declaration)

PR c++/43116
* attribs.c (decl_attributes): When rebuilding a function pointer
type use the same qualifiers as the original pointer type.

testsuite/
* g++.dg/other/pr43116.C: New testcase.

From-SVN: r157578

14 years agogimple.texi (Logical Operators): Describe is_gimple_ip_invariant and is_gimple_ip_inv...
Martin Jambor [Fri, 19 Mar 2010 16:09:16 +0000 (17:09 +0100)]
gimple.texi (Logical Operators): Describe is_gimple_ip_invariant and is_gimple_ip_invariant_address.

2010-03-19  Martin Jambor  <mjambor@suse.cz>

* doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
and is_gimple_ip_invariant_address.

From-SVN: r157576

14 years agoRevert work around for PR40521
Ramana Radhakrishnan [Fri, 19 Mar 2010 16:02:49 +0000 (16:02 +0000)]
Revert work around for PR40521

2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>

        Revert
        2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
        * config/arm/arm.c (arm_override_options): Turn off
        flag_dwarf2_cfi_asm for AAPCS variants.

From-SVN: r157575

14 years agore PR target/43399 (bootstrap failure in stage1)
Ramana Radhakrishnan [Fri, 19 Mar 2010 15:58:37 +0000 (15:58 +0000)]
re PR target/43399 (bootstrap failure in stage1)

Fix PR target/43399

2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>

       PR target/43399
       * config/arm/arm.c (emit_multi_reg_push): Update comments.
       Use PRE_MODIFY instead of PRE_DEC.
       (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
       (vfp_emit_fstmd): Likewise.

From-SVN: r157574

14 years agoremove vestiges of inadvertently committed changes
Bruce Korb [Fri, 19 Mar 2010 14:50:06 +0000 (14:50 +0000)]
remove vestiges of inadvertently committed changes

From-SVN: r157573

14 years agofreestanding.cc: Avoid -Wall warnings.
Paolo Carlini [Fri, 19 Mar 2010 14:19:23 +0000 (14:19 +0000)]
freestanding.cc: Avoid -Wall warnings.

2010-03-19  Paolo Carlini  <paolo.carlini@oracle.com>

* testsuite/17_intro/freestanding.cc: Avoid -Wall warnings.

From-SVN: r157572

14 years agoshared_ptr.h (shared_ptr(unique_ptr&&), [...]): Remove explicit specifier (as per...
Rodolfo Lima [Fri, 19 Mar 2010 13:32:05 +0000 (13:32 +0000)]
shared_ptr.h (shared_ptr(unique_ptr&&), [...]): Remove explicit specifier (as per DR 925).

2010-03-19  Rodolfo Lima  <rodolfo@rodsoft.org>

* include/bits/shared_ptr.h (shared_ptr(unique_ptr&&),
shared_ptr(auto_ptr&&)): Remove explicit specifier (as per DR 925).
* include/bits/shared_ptr_base.h: Likewise.
* testsuite/20_util/shared_ptr/creation/dr925.cc: New.

From-SVN: r157570

14 years agore PR target/43305 (ICE: in emit_unop_insn, at optabs.c:3838 with -Os -ffast-math...
Michael Matz [Fri, 19 Mar 2010 12:37:28 +0000 (12:37 +0000)]
re PR target/43305 (ICE: in emit_unop_insn, at optabs.c:3838 with -Os -ffast-math and ilogbl())

PR 43305
* builtins.c (expand_builtin_interclass_mathfn,
expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
if that fails.

testsuite/
* gcc.dg/pr43305.c: New testcase.

From-SVN: r157567

14 years agorandom.tcc: Minor formatting changes.
Paolo Carlini [Fri, 19 Mar 2010 11:10:08 +0000 (11:10 +0000)]
random.tcc: Minor formatting changes.

2010-03-19  Paolo Carlini  <paolo.carlini@oracle.com>

* include/bits/random.tcc: Minor formatting changes.

2010-03-19  Paolo Carlini  <paolo.carlini@oracle.com>

* include/bits/stl_algo.h (shuffle): Fix typo in signature.
* include/bits/algorithmfwd.h: Adjust.
* testsuite/25_algorithms/shuffle/requirements/
explicit_instantiation/2.cc: Likewise.
* testsuite/25_algorithms/shuffle/requirements/
explicit_instantiation/pod.cc: Likewise.

From-SVN: r157565

14 years agostl_algo.h (shuffle): Add, per D3056.
Paolo Carlini [Fri, 19 Mar 2010 10:36:57 +0000 (10:36 +0000)]
stl_algo.h (shuffle): Add, per D3056.

2010-03-19  Paolo Carlini  <paolo.carlini@oracle.com>

* include/bits/stl_algo.h (shuffle): Add, per D3056.
(random_shuffle): Fix signature in C++0x mode.
(lower_bound, __lg): Move...
* include/bits/stl_algobase.h: ... here.
* include/bits/algorithmfwd.h: Adjust.
* include/parallel/algorithmfwd.h: Likewise.
* include/parallel/algo.h: Likewise.
* include/bits/hashtable_policy.h (__lower_bound): Remove,
adjust callers.
* include/tr1/hashtable_policy.h (__lower_bound): Likewise.
* include/bits/random.tcc (__detail::__transform): Add,
adjust std::transform callers; don't include <algorithm>.
* testsuite/25_algorithms/shuffle/1.cc: Add.
* testsuite/25_algorithms/shuffle/requirements/
explicit_instantiation/2.cc: Likewise.
* testsuite/25_algorithms/shuffle/requirements/
explicit_instantiation/pod.cc: Likewise.

* include/bits/random.h: Add comments.

From-SVN: r157564

14 years agore PR ada/42554 (Can't build GNAT tools)
Jack Howarth [Fri, 19 Mar 2010 10:19:52 +0000 (10:19 +0000)]
re PR ada/42554 (Can't build GNAT tools)

PR ada/42554
* configure.ac: Only pass -c to ranlib for darwin9 and earlier.
* configure: Regenerate.

From-SVN: r157563

14 years agore PR tree-optimization/43415 (Consumes large amounts of memory and time in PRE at...
Richard Guenther [Fri, 19 Mar 2010 10:18:25 +0000 (10:18 +0000)]
re PR tree-optimization/43415 (Consumes large amounts of memory and time in PRE at -O3)

2010-03-19  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/43415
* tree-ssa-pre.c (phi_translate): Split out worker to ...
(phi_translate_1): ... this.
(phi_translate): Move all caching here.  Cache all NARY
and REFERENCE translations.

* gcc.c-torture/compile/pr43415.c: New testcase.

From-SVN: r157562

14 years agoUpdate dates.
Mike Stump [Fri, 19 Mar 2010 09:22:38 +0000 (09:22 +0000)]
Update dates.

From-SVN: r157561

14 years agoCanonicalize filenames.
Mike Stump [Fri, 19 Mar 2010 09:19:45 +0000 (09:19 +0000)]
Canonicalize filenames.

From-SVN: r157560

14 years agore PR ada/43106 (optimization error in a case statement)
Eric Botcazou [Fri, 19 Mar 2010 07:18:47 +0000 (07:18 +0000)]
re PR ada/43106 (optimization error in a case statement)

PR ada/43106
* gnat.dg/case_optimization2.adb: New test.
* gnat.dg/case_optimization_pkg2.ad[sb]: New helper.

From-SVN: r157558

14 years agosparc.c: Include dwarf2out.h.
David S. Miller [Fri, 19 Mar 2010 05:34:12 +0000 (05:34 +0000)]
sparc.c: Include dwarf2out.h.

* config/sparc/sparc.c: Include dwarf2out.h.
(emit_pic_helper): Delete.
(pic_helper_symbol_name): Delete.
(pic_helper_emitted_p): Delete.
(pic_helper_needed): New.
(USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
(get_pc_thunk_name): New.
(load_pic_register): Remove 'delay_pic_helper' arg.  Use
get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
Set pic_helper_needed to true.  Don't call emit_pic_helper.
(sparc_expand_prologue): Update load_pic_register call.
(sparc_output_mi_thunk): Likewise.
(sparc_file_end): Emit a hidden comdat symbol for the PIC
thunk if possible.  Output CFI information as needed.

From-SVN: r157557

14 years agoDaily bump.
GCC Administrator [Fri, 19 Mar 2010 00:16:39 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r157556

14 years agore PR target/36399 (ABI bug on darwin/x86-32)
Francois-Xavier Coudert [Thu, 18 Mar 2010 22:56:38 +0000 (22:56 +0000)]
re PR target/36399 (ABI bug on darwin/x86-32)

2010-03-11  Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
    Jack Howarth <howarth@bromo.med.uc.edu>

PR target/36399
* gcc/config/i386/i386.h: Fix ABI on darwin x86-32.
* gcc/testsuite/gcc.target/i386/push-1.c: Don't xfail
  scan-assembler-not "movups" on darwin.

Co-Authored-By: Jack Howarth <howarth@bromo.med.uc.edu>
From-SVN: r157553

14 years agore PR fortran/43039 ([lto/-fwhole-file] fortran-dev - ICE in gfc_conv_component_ref...
Paul Thomas [Thu, 18 Mar 2010 21:23:35 +0000 (21:23 +0000)]
re PR fortran/43039 ([lto/-fwhole-file] fortran-dev - ICE in gfc_conv_component_ref dynamic_dispatch_5.f03)

2010-03-18  Paul Thomas  <pault@gcc.gnu.org>

        PR fortran/43039
        * trans-expr.c (conv_parent_component_references): Ensure that
'dt' has a backend_decl.

        PR fortran/43043
        * trans-expr.c (gfc_conv_structure): Ensure that the derived
type has a backend_decl.

        PR fortran/43044
        * resolve.c (resolve_global_procedure): Check that the 'cl'
structure is not NULL.

From-SVN: r157552

14 years agotree.h: Declare make_decl_rtl_for_debug.
Aldy Hernandez [Thu, 18 Mar 2010 20:41:40 +0000 (20:41 +0000)]
tree.h: Declare make_decl_rtl_for_debug.

* tree.h: Declare make_decl_rtl_for_debug.
* varasm.c (make_decl_rtl_for_debug): New.
* dwarf2out.c (rtl_for_decl_location): Call it.
* cfgexpand.c (expand_debug_expr): Call it.

From-SVN: r157551

14 years agore PR target/43399 (bootstrap failure in stage1)
Jakub Jelinek [Thu, 18 Mar 2010 20:18:53 +0000 (21:18 +0100)]
re PR target/43399 (bootstrap failure in stage1)

PR bootstrap/43399
* var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
mem_mode.

From-SVN: r157550

14 years agore PR bootstrap/43403 (ICE in stage1 compiling __bswapdi2)
Jakub Jelinek [Thu, 18 Mar 2010 20:17:32 +0000 (21:17 +0100)]
re PR bootstrap/43403 (ICE in stage1 compiling __bswapdi2)

PR bootstrap/43403
* var-tracking.c (vt_init_cfa_base): Do nothing if
cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed
register.

From-SVN: r157549

14 years agore PR debug/42873 (deadlock in var tracking in recent builds)
Alexandre Oliva [Thu, 18 Mar 2010 20:16:48 +0000 (20:16 +0000)]
re PR debug/42873 (deadlock in var tracking in recent builds)

PR debug/42873
* var-tracking.c (canonicalize_vars_star): New.
(dataflow_post_merge_adjust): Use it.

From-SVN: r157548

14 years agore PR rtl-optimization/43058 (var-tracking uses up all virtual memory)
Jakub Jelinek [Thu, 18 Mar 2010 20:15:05 +0000 (21:15 +0100)]
re PR rtl-optimization/43058 (var-tracking uses up all virtual memory)

PR debug/43058
* var-tracking.c (non_suitable_const): New function.
(add_uses): For DEBUG_INSNs with constants, don't record any
value, instead just the constant value itself.
(compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
is not VAR_LOC_UNKNOWN_P, set var to the constant.
(emit_notes_in_bb): Likewise.
(emit_note_insn_var_location): For onepart variables if
cur_loc is a VOIDmode constant, use DECL_MODE.

* gcc.dg/pr43058.c: New test.

From-SVN: r157547

14 years agore PR middle-end/42450 (another GCC 4.5 ICE on C++ templated code)
Martin Jambor [Thu, 18 Mar 2010 20:07:13 +0000 (21:07 +0100)]
re PR middle-end/42450 (another GCC 4.5 ICE on C++ templated code)

2010-03-18  Martin Jambor  <mjambor@suse.cz>

PR middle-end/42450
* cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
* cgraphunit.c (cgraph_materialize_all_clones): Update calls in
all non-clones.  Moved call redirection...
(cgraph_redirect_edge_call_stmt_to_callee): ...to this new
function.
(cgraph_materialize_all_clones): Dispose of all
combined_args_to_skip bitmaps.
(verify_cgraph_node): Do not check for edges pointing to wrong
nodes in inline clones.
* tree-inline.c (copy_bb): Call
cgraph_redirect_edge_call_stmt_to_callee.
* ipa.c (cgraph_remove_unreachable_nodes): Call
cgraph_node_remove_callees even when there are used clones.

* testsuite/g++.dg/torture/pr42450.C: New test.

From-SVN: r157546

14 years agoMake GCC_4.5.0 inherit GCC_4.4.0.
H.J. Lu [Thu, 18 Mar 2010 19:42:19 +0000 (19:42 +0000)]
Make GCC_4.5.0 inherit GCC_4.4.0.

2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>

* config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.

From-SVN: r157545

14 years agoExport __extendxftf2 to GCC_4.5.0 for 32bit libgcc.
H.J. Lu [Thu, 18 Mar 2010 18:12:31 +0000 (18:12 +0000)]
Export __extendxftf2 to GCC_4.5.0 for 32bit libgcc.

2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>

PR target/43383
* config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
for 32bit.

From-SVN: r157544

14 years agore PR middle-end/43419 (gcc replaces pow(x, 0.5) by sqrt(x), invalid when x is -0)
Michael Matz [Thu, 18 Mar 2010 16:07:53 +0000 (16:07 +0000)]
re PR middle-end/43419 (gcc replaces pow(x, 0.5) by sqrt(x), invalid when x is -0)

PR middle-end/43419
* builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
into sqrt(x) if we need to preserve signed zeros.

testsuite/
* gcc.dg/pr43419.c: New testcase.

From-SVN: r157543

14 years agoRemove the REG_EQUAL note if we don't know its invariant status.
H.J. Lu [Thu, 18 Mar 2010 13:10:49 +0000 (06:10 -0700)]
Remove the REG_EQUAL note if we don't know its invariant status.

gcc/

2010-03-18  Steven Bosscher  <steven@gcc.gnu.org>
    Eric Botcazou  <ebotcazou@adacore.com>

PR rtl-optimization/43360
* loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
note if we don't know its invariant status.

gcc/testsuite/

2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>

PR rtl-optimization/43360
* gcc.dg/torture/pr43360.c: New.

From-SVN: r157539

14 years agore PR tree-optimization/43402 (dom1 miscompiles binary search)
Michael Matz [Thu, 18 Mar 2010 12:20:50 +0000 (12:20 +0000)]
re PR tree-optimization/43402 (dom1 miscompiles binary search)

PR tree-optimization/43402
* tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
PHI chains of ssa names registered for update.

testsuite/
* gcc.dg/pr43402.c: New testcase.

From-SVN: r157538

14 years agore PR c++/43418 (trunk rev157534. compile c++ with --enable-build-with-cxx fails...
Paolo Carlini [Thu, 18 Mar 2010 11:46:33 +0000 (11:46 +0000)]
re PR c++/43418 (trunk rev157534. compile c++ with --enable-build-with-cxx fails in cp_parser_for_init_statement)

2010-03-18  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/43418
* parser.c (cp_parser_for_init_statement): Use NULL_TREE, not
false, in the cp_parser_expression_statement call.

From-SVN: r157537

14 years agore PR c++/43418 (trunk rev157534. compile c++ with --enable-build-with-cxx fails...
Paolo Carlini [Thu, 18 Mar 2010 11:46:15 +0000 (11:46 +0000)]
re PR c++/43418 (trunk rev157534. compile c++ with --enable-build-with-cxx fails in cp_parser_for_init_statement)

2010-03-18  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/43418
* parser.c (cp_parser_for_init_statement): Use NULL_TREE, not
false, in the cp_parser_expression_statement call.

From-SVN: r157536

14 years agotransfer.c (read_sf_internal): Remove stray function declaration used during debigging.
Jerry DeLisle [Thu, 18 Mar 2010 03:26:07 +0000 (03:26 +0000)]
transfer.c (read_sf_internal): Remove stray function declaration used during debigging.

2010-03-17  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

* io/transfer.c (read_sf_internal): Remove stray function declaration
used during debigging.

From-SVN: r157531

14 years agore PR target/42427 (invalid assembly code for 301.apsi for -fnon-call-exceptions)
Peter Bergner [Thu, 18 Mar 2010 03:10:04 +0000 (22:10 -0500)]
re PR target/42427 (invalid assembly code for 301.apsi for -fnon-call-exceptions)

gcc/
PR target/42427
* config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
non-offsettable and pre_modify update addressing.
* config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
and "2" alternatives "#".
(*movdd_softfloat32): Make all alternatives "#";
* config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
(*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
(*movdf_softfloat32): Make all alternatives "#";
(movdi): Use the new DIFD mode iterator to create a common splitter
for movdi, movdf and movdd patterns.

gcc/testsuite/
PR target/42427
* gcc.dg/pr42427.c: New test.

From-SVN: r157530

14 years agocommon.opt (dumpdir): Remove redundant tab.
Shujing Zhao [Thu, 18 Mar 2010 03:01:09 +0000 (03:01 +0000)]
common.opt (dumpdir): Remove redundant tab.

gcc/
2010-03-18  Shujing Zhao  <pearly.zhao@oracle.com>

        * common.opt (dumpdir): Remove redundant tab.

gcc/fortran
2010-03-18  Shujing Zhao  <pearly.zhao@oracle.com>

        * lang.opt (-ffixed-line-length-, ffree-line-length-): Remove
        redundant tab.

From-SVN: r157529

14 years agore PR fortran/43265 (No EOF condition if reading with '(x)' from an empty file)
Jerry DeLisle [Thu, 18 Mar 2010 02:43:10 +0000 (02:43 +0000)]
re PR fortran/43265 (No EOF condition if reading with '(x)' from an empty file)

2010-03-17  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR libfortran/43265
*gfortran.dg/read_empty_file.f: New test.
*gfortran.dg/read_eof_all.f90: New test.
*gfortran.dg/namelist_27.f90: Eliminate infinite loop posibility.
*gfortran.dg/namelist_28.f90: Eliminate infinite loop posibility.

From-SVN: r157528

14 years agore PR fortran/43265 (No EOF condition if reading with '(x)' from an empty file)
Jerry DeLisle [Thu, 18 Mar 2010 02:38:17 +0000 (02:38 +0000)]
re PR fortran/43265 (No EOF condition if reading with '(x)' from an empty file)

2010-03-17  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR libfortran/43265
* io/io.h: Delete prototype for read_sf, making it static.
* io/read.c (read_x): Modify to call hit_eof if PAD="no".
* io/transfer.c (read_sf_internal): New static function extracted from
read_sf for use on internal units only. Handle empty string case.
(read_sf): New factoring of this function, make it static.  Add special
conditions for EOF based on ADVANCE="no", PAD="no", and whether any
bytes have been previously read from the record.
(read_block_form): Modify to call read_sf or read_sf_internal.
(next_record_r): Add a done flag similar to next_record_w. Call hit_eof
if internal array unit next record returns finished, meaning an EOF was
found and not done, ie not the last record expected.  For external
units call hit_eof if item_count is 1 or there are no pending spaces.
(next_record): Update call to next_record_r.

From-SVN: r157527

14 years agoUpdate my mail address.
Ramana Radhakrishnan [Thu, 18 Mar 2010 00:47:13 +0000 (00:47 +0000)]
Update my mail address.

From-SVN: r157524

14 years agoDaily bump.
GCC Administrator [Thu, 18 Mar 2010 00:16:40 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r157523

14 years agoRemove emails of people no longer with AMD.
Sebastian Pop [Wed, 17 Mar 2010 20:26:26 +0000 (20:26 +0000)]
Remove emails of people no longer with AMD.

2010-03-17  Sebastian Pop  <sebastian.pop@amd.com>

* MAINTAINERS (dwarak.rajagopal@amd.com): Removed.
(ghassan.shobaki@amd.com): Removed.

From-SVN: r157519

14 years agore PR tree-optimization/43347 (Warning about symbols generated by SRA being used...
Martin Jambor [Wed, 17 Mar 2010 12:02:35 +0000 (13:02 +0100)]
re PR tree-optimization/43347 (Warning about symbols generated by SRA being used uninitialized)

2010-03-17  Martin Jambor  <mjambor@suse.cz>

PR tree-optimization/43347
* tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
original base is DECL_ARTIFICIAL or DECL_IGNORED_P.

From-SVN: r157515

14 years ago* gcc.dg/pr43300.c: Add -w.
Michael Matz [Wed, 17 Mar 2010 11:17:26 +0000 (11:17 +0000)]
* gcc.dg/pr43300.c: Add -w.

From-SVN: r157514

14 years agopr43379.c: Add -w.
Richard Guenther [Wed, 17 Mar 2010 10:31:09 +0000 (10:31 +0000)]
pr43379.c: Add -w.

2010-03-17  Richard Guenther  <rguenther@suse.de>

* gcc.dg/pr43379.c: Add -w.

From-SVN: r157513

14 years agore PR fortran/43331 (Cray pointers generate bogus IL for the middle-end)
Tobias Burnus [Wed, 17 Mar 2010 09:53:40 +0000 (10:53 +0100)]
re PR fortran/43331 (Cray pointers generate bogus IL for the middle-end)

2010-03-17  Tobias Burnus  <burnus@net-b.de>

        PR fortran/43331
        * trans-array.c (gfc_conv_array_index_offset,gfc_conv_array_ref,
        gfc_conv_ss_startstride): Remove no-longer-needed cp_was_assumed
        check.
        * decl.c (gfc_match_derived_decl): Don't mark assumed-size Cray
        pointees as having explizit size.
        * expr.c (gfc_check_assign): Remove now unreachable Cray pointee
        check.
        * trans-types.c (gfc_is_nodesc_array): Add cp_was_assumed to
        * assert.
        (gfc_sym_type): Don't mark Cray pointees as restricted pointers.
        * resolve.c (resolve_symbol): Handle cp_was_assumed.
        * trans-decl.c (gfc_trans_deferred_vars): Ditto.
        (gfc_finish_var_decl): Don't mark Cray pointees as restricted
        pointers.

2010-03-17  Tobias Burnus  <burnus@net-b.de>

        PR fortran/43331
        * gfortran.dg/cray_pointers_1.f90: Update dg-error message.

From-SVN: r157512

14 years agore PR rtl-optimization/42216 (changes in scheduling regress 464.h264ref 20%)
Bernd Schmidt [Wed, 17 Mar 2010 09:25:35 +0000 (09:25 +0000)]
re PR rtl-optimization/42216 (changes in scheduling regress 464.h264ref 20%)

PR rtl-optimization/42216
* regrename.c (create_new_chain): New function, broken out from...
(scan_rtx_reg): ... here.  Call it.  Handle the case where we are
appending a use to an empty chain.
(build_def_use): Remove previous changes that convert OP_INOUT to
OP_OUT operands; instead detect the case where an OP_INOUT operand
uses a previously untracked register and create an empty chain for
it.

From-SVN: r157511

14 years agoRewrite unfinished sentence in documentation.
Ralf Wildenhues [Wed, 17 Mar 2010 06:18:19 +0000 (06:18 +0000)]
Rewrite unfinished sentence in documentation.

gcc/:
* doc/extend.texi (Function Attributes): Rewrite unfinished
sentence in ms_abi documentation.

From-SVN: r157508

14 years agolinux64.opt (mprofile-kernel): Use profile_kernel var.
Alan Modra [Wed, 17 Mar 2010 04:44:37 +0000 (15:14 +1030)]
linux64.opt (mprofile-kernel): Use profile_kernel var.

* config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
* config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
(SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
* config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.

From-SVN: r157507

14 years agodebug_mode.xml: Correct debug headers.
Jonathan Wakely [Wed, 17 Mar 2010 00:36:05 +0000 (00:36 +0000)]
debug_mode.xml: Correct debug headers.

2010-03-17  Jonathan Wakely  <jwakely.gcc@gmail.com>

* doc/xml/manual/debug_mode.xml: Correct debug headers.

From-SVN: r157506

14 years agoblock-3.c: Add dg-timeout-factor.
Uros Bizjak [Wed, 17 Mar 2010 00:30:23 +0000 (01:30 +0100)]
block-3.c: Add dg-timeout-factor.

* gcc.dg/graphite/block-3.c: Add dg-timeout-factor.

From-SVN: r157505

14 years agore PR libstdc++/43397 (std::function can't forward rvalue reference for pointer to...
Jonathan Wakely [Wed, 17 Mar 2010 00:22:56 +0000 (00:22 +0000)]
re PR libstdc++/43397 (std::function can't forward rvalue reference for pointer to member function)

2010-03-17  Jonathan Wakely  <jwakely.gcc@gmail.com>

PR libstdc++/43397
* include/std/functional (_Mem_fn): Use perfect forwarding.
* testsuite/20_util/function/43397.cc: New.

From-SVN: r157504

14 years agoDaily bump.
GCC Administrator [Wed, 17 Mar 2010 00:16:36 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r157503

14 years agoUpdate email address.
Alan Modra [Wed, 17 Mar 2010 00:02:21 +0000 (10:32 +1030)]
Update email address.

From-SVN: r157500

14 years agore PR middle-end/43365 (Destructor not called when returning in exception handler)
Richard Henderson [Tue, 16 Mar 2010 23:02:35 +0000 (16:02 -0700)]
re PR middle-end/43365 (Destructor not called when returning in exception handler)

        PR middle-end/43365
        * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
        (lower_try_finally): Save and restore eh_seq around the expansion
        of the try-finally.

From-SVN: r157499

14 years agore PR libstdc++/43394 (Spurious warnings while building parallel_list.cc on x86_64...
Paolo Carlini [Tue, 16 Mar 2010 23:01:28 +0000 (23:01 +0000)]
re PR libstdc++/43394 (Spurious warnings while building parallel_list.cc on x86_64 -m32)

2010-03-16  Paolo Carlini  <paolo.carlini@oracle.com>

PR libstdc++/43394
* include/parallel/compatibility.h: Add __k8 and __core2 among the
i386 targets supporting atomic operations.

From-SVN: r157498

14 years agohash_map: Use consistently the _BACKWARD_* prefix for the include guard.
Paolo Carlini [Tue, 16 Mar 2010 22:34:53 +0000 (22:34 +0000)]
hash_map: Use consistently the _BACKWARD_* prefix for the include guard.

2010-03-16  Paolo Carlini  <paolo.carlini@oracle.com>

* include/backward/hash_map: Use consistently the _BACKWARD_*
prefix for the include guard.
* include/backward/hash_fun.h: Likewise.
* include/backward/hashtable.h: Likewise.
* include/backward/auto_ptr.h: Likewise.
* include/backward/strstream: Likewise.
* include/backward/binders.h: Likewise.
* include/backward/hash_set: Likewise.

From-SVN: r157497

14 years agographite-sese-to-poly.c (split_reduction_stmt): Skip debug statements before splittin...
Aldy Hernandez [Tue, 16 Mar 2010 20:04:04 +0000 (20:04 +0000)]
graphite-sese-to-poly.c (split_reduction_stmt): Skip debug statements before splitting block.

        * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
        statements before splitting block.

From-SVN: r157494

14 years agosourcebuild.texi (Testsuites): Fix markup.
Rainer Orth [Tue, 16 Mar 2010 17:17:33 +0000 (17:17 +0000)]
sourcebuild.texi (Testsuites): Fix markup.

2010-03-16  Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>

* doc/sourcebuild.texi (Testsuites): Fix markup.
Use pathnames relative to gcc/testsuite.
(Test Directives): Move description of how timeout is determined.
(Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
(C Tests): Correct gcc.misc-tests directory.
Framework tests now live in gcc.test-framework.

From-SVN: r157491

14 years agoMAINTAINERS: Remove Dan Hipschman, William Maddox and Chris Matthews.
Diego Novillo [Tue, 16 Mar 2010 16:57:44 +0000 (12:57 -0400)]
MAINTAINERS: Remove Dan Hipschman, William Maddox and Chris Matthews.

* MAINTAINERS: Remove Dan Hipschman, William Maddox and Chris
Matthews.

From-SVN: r157490

14 years agorandom.h (operator==(const uniform_int_distribution<>&, const uniform_int_distributio...
Paolo Carlini [Tue, 16 Mar 2010 16:14:00 +0000 (16:14 +0000)]
random.h (operator==(const uniform_int_distribution<>&, const uniform_int_distribution<>&), [...]): Add, likewise for operator!=.

2010-03-16  Paolo Carlini  <paolo.carlini@oracle.com>

* include/bits/random.h (operator==(const uniform_int_distribution<>&,
const uniform_int_distribution<>&), operator==(const
uniform_real_distribution<>&, const uniform_real_distribution<>&),
operator==(const lognormal_distribution<>&,
const lognormal_distribution<>&), operator==(const
chi_squared_distribution<>&, const chi_squared_distribution<>&),
operator==(const cauchy_distribution<>&, const cauchy_distribution<>&),
operator==(const fisher_distribution<>&, const fisher_distribution<>&),
operator==(const student_t_distribution<>&,
const student_t_distribution<>&), operator==(const
bernoulli_distribution<>&, const bernoulli_distribution<>&),
operator==(const binomial_distribution<>&, const
binomial_distribution<>&), operator==(const geometric_distribution<>&,
const geometric_distribution<>&), operator==(const
negative_binomial_distribution<>&, const
negative_binomial_distribution<>&), operator==(const
poisson_distribution<>&, const poisson_distribution<>&),
operator==(const exponential_distribution<>&,
const exponential_distribution<>&), operator==(const
gamma_distribution<>&, const gamma_distribution<>&), operator==(const
weibull_distribution<>&, const weibull_distribution<>&),
operator==(const extreme_value_distribution<>&,
const extreme_value_distribution<>&), operator==(const
discrete_distribution<>&, const discrete_distribution<>&),
operator==(const piecewise_constant_distribution<>&,
const piecewise_constant_distribution<>&), operator==(const
piecewise_linear_distribution<>&, const
piecewise_linear_distribution<>&)): Add, likewise for operator!=.
(operator!=(const independent_bits_engine<>&, const
independent_bits_engine<>&), operator!=(const
subtract_with_carry_engine<>&, const subtract_with_carry_engine<>&),
operator!=(const discard_block_engine<>&, const
discard_block_engine<>&), operator!=(const mersenne_twister_engine<>&,
const mersenne_twister_engine<>&), operator!=(const
linear_congruential_engine<>&, const linear_congruential_engine<>&),
operator!=(const shuffle_order_engine<>&, const
shuffle_order_engine<>&): Add.
* include/bits/random.tcc (operator==(const normal_distribution<>&,
const normal_distribution<>&)): Add.
* testsuite/26_numerics/random/uniform_real_distribution/operators/
inequal.cc: New.
* testsuite/26_numerics/random/uniform_real_distribution/operators/
equal.cc: Likewise.
* testsuite/26_numerics/random/piecewise_constant_distribution/
operators/inequal.cc: Likewise.
* testsuite/26_numerics/random/piecewise_constant_distribution/
operators/equal.cc: Likewise.
* testsuite/26_numerics/random/chi_squared_distribution/operators/
inequal.cc: Likewise.
* testsuite/26_numerics/random/chi_squared_distribution/operators/
equal.cc: Likewise.
* testsuite/26_numerics/random/normal_distribution/operators/
inequal.cc: Likewise.
* testsuite/26_numerics/random/normal_distribution/operators/
equal.cc: Likewise.
* testsuite/26_numerics/random/uniform_int_distribution/operators/
inequal.cc: Likewise.
* testsuite/26_numerics/random/uniform_int_distribution/operators/
equal.cc: Likewise.
* testsuite/26_numerics/random/poisson_distribution/operators/
inequal.cc: Likewise.
* testsuite/26_numerics/random/poisson_distribution/operators/
equal.cc: Likewise.
* testsuite/26_numerics/random/bernoulli_distribution/operators/
inequal.cc: Likewise.
* testsuite/26_numerics/random/bernoulli_distribution/operators/
equal.cc: Likewise.
* testsuite/26_numerics/random/discrete_distribution/operators/
inequal.cc: Likewise.
* testsuite/26_numerics/random/discrete_distribution/operators/
equal.cc: Likewise.
* testsuite/26_numerics/random/weibull_distribution/operators/
inequal.cc: Likewise.
* testsuite/26_numerics/random/weibull_distribution/operators/
equal.cc: Likewise.
* testsuite/26_numerics/random/independent_bits_engine/operators/
inequal.cc: Likewise.
* testsuite/26_numerics/random/subtract_with_carry_engine/operators/
inequal.cc: Likewise.
* testsuite/26_numerics/random/discard_block_engine/operators/
inequal.cc: Likewise.
* testsuite/26_numerics/random/cauchy_distribution/operators/
inequal.cc: Likewise.
* testsuite/26_numerics/random/cauchy_distribution/operators/
equal.cc: Likewise.
* testsuite/26_numerics/random/negative_binomial_distribution/
operators/inequal.cc: Likewise.
* testsuite/26_numerics/random/negative_binomial_distribution/
operators/equal.cc: Likewise.
* testsuite/26_numerics/random/gamma_distribution/operators/
inequal.cc: Likewise.
* testsuite/26_numerics/random/gamma_distribution/operators/
equal.cc: Likewise.
* testsuite/26_numerics/random/mersenne_twister_engine/operators/
inequal.cc: Likewise.
* testsuite/26_numerics/random/fisher_f_distribution/operators/
inequal.cc: Likewise.
* testsuite/26_numerics/random/fisher_f_distribution/operators/
equal.cc: Likewise.
* testsuite/26_numerics/random/exponential_distribution/operators/
inequal.cc: Likewise.
* testsuite/26_numerics/random/exponential_distribution/operators/
equal.cc: Likewise.
* testsuite/26_numerics/random/binomial_distribution/operators/
inequal.cc: Likewise.
* testsuite/26_numerics/random/binomial_distribution/operators/
equal.cc: Likewise.
* testsuite/26_numerics/random/lognormal_distribution/operators/
inequal.cc: Likewise.
* testsuite/26_numerics/random/lognormal_distribution/operators/
equal.cc: Likewise.
* testsuite/26_numerics/random/extreme_value_distribution/operators/
inequal.cc: Likewise.
* testsuite/26_numerics/random/extreme_value_distribution/operators/
equal.cc: Likewise.
* testsuite/26_numerics/random/piecewise_linear_distribution/
operators/inequal.cc: Likewise.
* testsuite/26_numerics/random/piecewise_linear_distribution/
operators/equal.cc: Likewise.
* testsuite/26_numerics/random/student_t_distribution/operators/
inequal.cc: Likewise.
* testsuite/26_numerics/random/student_t_distribution/operators/
equal.cc: Likewise.
* testsuite/26_numerics/random/linear_congruential_engine/operators/
inequal.cc: Likewise.
* testsuite/26_numerics/random/shuffle_order_engine/operators/
inequal.cc: Likewise.
* testsuite/26_numerics/random/geometric_distribution/operators/
inequal.cc: Likewise.
* testsuite/26_numerics/random/geometric_distribution/operators/
equal.cc: Likewise.

From-SVN: r157489

14 years agoMAINTAINERS (Write After Approval): Remove Jim Blandy, Daniel Gutson, Jeffrey D.
Joseph Myers [Tue, 16 Mar 2010 15:43:25 +0000 (15:43 +0000)]
MAINTAINERS (Write After Approval): Remove Jim Blandy, Daniel Gutson, Jeffrey D.

* MAINTAINERS (Write After Approval): Remove Jim Blandy, Daniel
Gutson, Jeffrey D. Oldham and Mark Shinwell.

From-SVN: r157488

14 years ago* ada/acats/run_all.sh: Log start and end times.
Rainer Orth [Tue, 16 Mar 2010 14:46:43 +0000 (14:46 +0000)]
* ada/acats/run_all.sh: Log start and end times.

From-SVN: r157485

14 years ago* gnat.dg/socket1.adb: Disable on *-*-solaris2*.
Rainer Orth [Tue, 16 Mar 2010 14:43:43 +0000 (14:43 +0000)]
* gnat.dg/socket1.adb: Disable on *-*-solaris2*.

From-SVN: r157484

14 years agoDelete temporary output files.
Dmitry Gorbachev [Tue, 16 Mar 2010 14:06:40 +0000 (14:06 +0000)]
Delete temporary output files.

2010-03-16  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>

PR lto/43336
* lto-plugin.c (cleanup_handler): Delete temporary output files.

From-SVN: r157483

14 years ago* MAINTAINERS: Update my email address.
Joseph Myers [Tue, 16 Mar 2010 14:00:48 +0000 (14:00 +0000)]
* MAINTAINERS: Update my email address.

From-SVN: r157482

14 years ago* MAINTAINERS: Update my email address.
Daniel Jacobowitz [Tue, 16 Mar 2010 13:45:56 +0000 (13:45 +0000)]
* MAINTAINERS: Update my email address.

From-SVN: r157481

14 years agoAdd missing ChangeLog entries.
H.J. Lu [Tue, 16 Mar 2010 12:58:10 +0000 (05:58 -0700)]
Add missing ChangeLog entries.

From-SVN: r157479

14 years agore PR tree-optimization/43379 (ICE: error: SSA_NAME_OCCURS_IN_ABNORMAL_PHI should...
Richard Guenther [Tue, 16 Mar 2010 12:31:38 +0000 (12:31 +0000)]
re PR tree-optimization/43379 (ICE: error: SSA_NAME_OCCURS_IN_ABNORMAL_PHI should be set with -O2 -ftracer)

2010-03-16  Richard Guenther  <rguenther@suse.de>

PR middle-end/43379
* tree-cfg.c (gimple_merge_blocks): When propagating virtual
PHI operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI
properly.

* gcc.dg/pr43379.c: New testcase.

From-SVN: r157478

14 years agore PR tree-optimization/42917 ("-fcompare-debug failure" with -ftree-loop-linear)
Aldy Hernandez [Tue, 16 Mar 2010 11:33:45 +0000 (11:33 +0000)]
re PR tree-optimization/42917 ("-fcompare-debug failure" with -ftree-loop-linear)

        PR tree-optimization/42917
        * lambda-code.c (remove_iv): Skip debug statements.
        (lambda_loopnest_to_gcc_loopnest): Likewise.
        (not_interesting_stmt): Debug statements are not interesting.

Co-Authored-By: Alexandre Oliva <aoliva@redhat.com>
From-SVN: r157477

14 years agore PR debug/43051 (VTA causes a stack living parameter unavailable in most of the...
Jakub Jelinek [Tue, 16 Mar 2010 10:50:42 +0000 (11:50 +0100)]
re PR debug/43051 (VTA causes a stack living parameter unavailable in most of the function)

PR debug/43051
PR debug/43092
* cselib.c (cselib_preserve_constants,
cfa_base_preserved_val): New static variables.
(preserve_only_constants): New function.
(cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
clear its REG_VALUES.  If cselib_preserve_constants, don't
empty the whole hash table, but preserve there VALUEs with constants,
cfa_base_preserved_val and cfa_base_preserved_val plus constant.
(cselib_preserve_cfa_base_value): New function.
(cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
(cselib_init): Change argument to int bitfield.  Set
cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
is in it.
(cselib_finish): Clear cselib_preserve_constants and
cfa_base_preserved_val.
* cselib.h (enum cselib_record_what): New enum.
(cselib_init): Change argument to int.
(cselib_preserve_cfa_base_value): New prototype.
* postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
* dse.c (dse_step1): Likewise.
* cfgcleanup.c (thread_jump): Likewise.
* sched-deps.c (sched_analyze): Likewise.
* gcse.c (local_cprop_pass): Likewise.
* simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
If FN is non-NULL, call the callback always and whenever it returns
non-NULL just return that.  Only do rtx_equal_p if FN is NULL.
* rtl.h (simplify_replace_fn_rtx): Add argument to callback.
* combine.c (propagate_for_debug_subst): Add old_rtx argument,
compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
* Makefile.in (var-tracking.o): Depend on $(RECOG_H).
* var-tracking.c: Include recog.h.
(bb_stack_adjust_offset): Remove.
(vt_stack_adjustments): Don't call it, instead just gather the
adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
(adjust_stack_reference): Remove.
(compute_cfa_pointer): New function.
(hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
(struct adjust_mem_data): New type.
(adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
functions.
(get_address_mode): New function.
(replace_expr_with_values): Use it.
(use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
Use get_address_mode.  For cfa_base_rtx return MO_CLOBBER.
(adjust_sets): Remove.
(add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
Use get_address_mode.
(get_adjusted_src): Remove.
(add_stores): Don't call it.  Never reuse expr SET.  Don't add extra
MO_VAL_USE for cfa_base_rtx plus constant.  Use get_address_mode.
(add_with_sets): Don't call adjust_sets.
(fp_setter, vt_init_cfa_base): New functions.
(vt_initialize): Change return type to bool.  Move most of pool etc.
initialization to the beginning of the function from end.  Pass
CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
If !frame_pointer_needed, call vt_stack_adjustment before mos
vector is filled, call vt_init_cfa_base if argp/framep has been
eliminated to sp.  If frame_pointer_needed and argp/framep has
been eliminated to hard frame pointer, set
hard_frame_pointer_adjustment and call vt_init_cfa_base after
encountering fp setter in the prologue.  For MO_ADJUST, call
log_op_type before pusing the op into mos vector, not afterwards.
Call adjust_insn before cselib_process_insn/add_with_sets,
call cancel_changes (0) afterwards.
(variable_tracking_main_1): Adjust for vt_initialize calling
vt_stack_adjustments and returning whether it succeeded or not.

* gcc.dg/guality/pr43051-1.c: New test.

From-SVN: r157476

14 years agopass54-frag.c: Add explicit return from main.
David S. Miller [Tue, 16 Mar 2010 04:01:12 +0000 (04:01 +0000)]
pass54-frag.c: Add explicit return from main.

* testsuite/libmudflap.c/pass54-frag.c: Add explicit return from
main.

From-SVN: r157472

14 years agoforward_list.tcc (_Fwd_list_node_base:: _M_transfer_after): Return _Fwd_list_node_base*.
Paolo Carlini [Tue, 16 Mar 2010 01:32:53 +0000 (01:32 +0000)]
forward_list.tcc (_Fwd_list_node_base:: _M_transfer_after): Return _Fwd_list_node_base*.

2010-03-15  Paolo Carlini  <paolo.carlini@oracle.com>

* include/bits/forward_list.tcc (_Fwd_list_node_base::
_M_transfer_after): Return _Fwd_list_node_base*.
(forward_list<>::_M_splice_after): Add.
(forward_list<>::insert_after(const_iterator, size_type, const _Tp&),
insert_after(const_iterator, _InputIterator, _InputIterator),
insert_after(const_iterator, initializer_list<>)): Use the above,
implement DR 1278 ([Ready] in Pittsburgh).
* include/bits/forward_list.h (insert_after(const_iterator,
size_type, const _Tp&), insert_after(const_iterator, _InputIterator,
_InputIterator), insert_after(const_iterator, initializer_list<>)):
Only declare.
* testsuite/23_containers/forward_list/modifiers/2.cc: Adjust.
* testsuite/23_containers/forward_list/requirements/dr438/
assign_neg.cc: Adjust dg-error line number.
* testsuite/23_containers/forward_list/requirements/dr438/
insert_neg.cc: Likewise.
* testsuite/23_containers/forward_list/requirements/dr438/
constructor_1_neg.cc: Likewise.
* testsuite/23_containers/forward_list/requirements/dr438/
constructor_2_neg.cc: Likewise.

From-SVN: r157471

14 years agoDaily bump.
GCC Administrator [Tue, 16 Mar 2010 00:16:42 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r157470

14 years agore PR testsuite/43363 (FAIL: g++.dg/ext/altivec-17.C)
Janis Johnson [Mon, 15 Mar 2010 21:27:23 +0000 (21:27 +0000)]
re PR testsuite/43363 (FAIL: g++.dg/ext/altivec-17.C)

PR testsuite/43363
* g++.dg/ext/altivec-17.C: Handle changes to error message.

From-SVN: r157467

14 years agoconfigure.ac (libffi_cv_as_x86_64_unwind_section_type): New test.
Rainer Orth [Mon, 15 Mar 2010 19:36:26 +0000 (19:36 +0000)]
configure.ac (libffi_cv_as_x86_64_unwind_section_type): New test.

* configure.ac (libffi_cv_as_x86_64_unwind_section_type): New test.
* configure: Regenerate.
* fficonfig.h.in: Regenerate.
* libffi/src/x86/unix64.S (.eh_frame)
[HAVE_AS_X86_64_UNWIND_SECTION_TYPE]: Use @unwind section type.

From-SVN: r157466

14 years agographite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip debug statements.
Aldy Hernandez [Mon, 15 Mar 2010 19:18:49 +0000 (19:18 +0000)]
graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip debug statements.

        * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
        debug statements.

From-SVN: r157465

14 years ago2010-03-15 Paolo Carlini <paolo.carlini@oracle.com>
Paolo Carlini [Mon, 15 Mar 2010 17:06:59 +0000 (17:06 +0000)]
2010-03-15  Paolo Carlini  <paolo.carlini@oracle.com>

      * Complete last ChangeLog entry.

From-SVN: r157464

14 years agodwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg has been set.
Jakub Jelinek [Mon, 15 Mar 2010 17:03:02 +0000 (18:03 +0100)]
dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg has been set.

* dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
has been set.
(based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
drap_reg has not been set.

From-SVN: r157463

14 years agorevert: forward_list.h: Support non-standard pointer types
Paolo Carlini [Mon, 15 Mar 2010 17:02:16 +0000 (17:02 +0000)]
revert: forward_list.h: Support non-standard pointer types

2010-03-15  Paolo Carlini  <paolo.carlini@oracle.com>

Revert:
2008-11-11  Bob Walters  <bob.s.walters@gmail.com>

* include/bits/forward_list.h: Support non-standard pointer types
(_Fwd_list_node_base): Add _Alloc template parameter.
(_Fwd_list_node<>): Likewise.
(_Fwd_list_iterator<>): Likewise.
(_Fwd_list_const_iterator<>): Likewise.
(_Fwd_list_node_base::_M_next, _M_transfer_after, _M_reverse_after):
Use _Alloc<_Tp>::pointer.
(_Fwd_list_iterator<>::_M_node): Use _Node_base::_Pointer.
(_Fwd_list_base<>::_M_get_node, _M_create_node, _M_create_node,
_M_insert_after, _M_put_node, _M_erase_after): Likewise.
(_Fwd_list_const_iterator<>::_M_node): use _Node_base::_Const_pointer.
(forward_list<>): Use __static_pointer_cast in place of static_cast,
and __const_pointer_cast in place of const_cast.
* include/bits/forward_list.tcc
(_Fwd_list_node<>::_M_sort_after): Using _Pointer typedefs in place
of standard pointers, __static_pointer_cast in place of static_cast.
(_Fwd_list_base<>::_Fwd_list_base, _M_insert_after, _M_erase_after):
Likewise.
(forward_list<>::_M_initialize_dispatch, _M_fill_initialize,
splice_after, remove, remove_if, merge): Likewise.
* testsuite/23_containers/forward_list/ext_pointer/modifiers/1.cc: New.
* testsuite/23_containers/forward_list/ext_pointer/modifiers/2.cc:
Likewise.
* testsuite/23_containers/forward_list/ext_pointer/modifiers/3.cc:
Likewise.
* testsuite/23_containers/forward_list/ext_pointer/modifiers/4.cc:
Likewise.
* testsuite/23_containers/forward_list/ext_pointer/modifiers/5.cc:
Likewise.
* testsuite/23_containers/forward_list/ext_pointer/operations/1.cc:
Likewise.
* testsuite/23_containers/forward_list/ext_pointer/operations/2.cc:
Likewise.
* testsuite/23_containers/forward_list/ext_pointer/operations/3.cc:
Likewise.
* testsuite/23_containers/forward_list/ext_pointer/operations/4.cc:
Likewise.
* testsuite/23_containers/forward_list/ext_pointer/operations/5.cc:
Likewise.
* testsuite/23_containers/forward_list/ext_pointer/operations/6.cc:
Likewise.
* testsuite/23_containers/forward_list/ext_pointer/operations/7.cc:
Likewise.
* testsuite/23_containers/forward_list/ext_pointer/requirements/1.cc:
Likewise.
* testsuite/23_containers/forward_list/ext_pointer/requirements/
explicit_instantiation/1.cc: Likewise.
* testsuite/23_containers/forward_list/ext_pointer/requirements/
explicit_instantiation/3.cc: Likewise.
* testsuite/23_containers/forward_list/ext_pointer/1.cc: Likewise.

From-SVN: r157462

14 years agore PR middle-end/43300 (ICE: in emit_move_insn, at expr.c:3432)
Michael Matz [Mon, 15 Mar 2010 16:13:28 +0000 (16:13 +0000)]
re PR middle-end/43300 (ICE: in emit_move_insn, at expr.c:3432)

PR middle-end/43300
* tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
use it to expand block copies.
(insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
(insert_value_copy_on_edge): Use store_expr for BLKmode values.

testsuite/
* gcc.dg/pr43300.c: New testcase.

From-SVN: r157461

14 years agore PR tree-optimization/43367 (ice: in may_propagate_copy, at tree-ssa-copy.c:85)
Richard Guenther [Mon, 15 Mar 2010 13:18:45 +0000 (13:18 +0000)]
re PR tree-optimization/43367 (ice: in may_propagate_copy, at tree-ssa-copy.c:85)

2010-03-15  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/43367
* tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
elimination check.

* gcc.c-torture/compile/pr43367.c: New testcase.

From-SVN: r157458

14 years agore PR tree-optimization/43317 (ICE: Segmentation fault with -fipa-struct-reorg -g)
Richard Biener [Mon, 15 Mar 2010 13:05:05 +0000 (13:05 +0000)]
re PR tree-optimization/43317 (ICE: Segmentation fault with -fipa-struct-reorg -g)

2010-03-15  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/43317
* ipa-struct-reorg.c (create_new_general_access): Update stmt.

* gcc.dg/pr43317.c: New testcase.

From-SVN: r157457

14 years agoPR tree/optimization/43141
Martin Jambor [Mon, 15 Mar 2010 11:43:04 +0000 (12:43 +0100)]
PR tree/optimization/43141

2010-03-15  Martin Jambor  <mjambor@suse.cz>

PR tree/optimization/43141
* tree-sra.c (create_abstract_origin): New function.
(modify_function): Call create_abstract_origin.

From-SVN: r157456

14 years agoMAINTAINERS: Update my email address.
Bernd Schmidt [Mon, 15 Mar 2010 10:45:27 +0000 (10:45 +0000)]
MAINTAINERS: Update my email address.

* MAINTAINERS: Update my email address.

From-SVN: r157455

14 years agoMakefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it wasn't copied.
Chris Demetriou [Mon, 15 Mar 2010 08:51:56 +0000 (01:51 -0700)]
Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it wasn't copied.

2010-03-15  Chris Demetriou  <cgd@google.com>

        * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
        wasn't copied.

From-SVN: r157454

14 years agoDaily bump.
GCC Administrator [Mon, 15 Mar 2010 00:16:38 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r157452

14 years ago* Fix previous ChangeLog entry.
Uros Bizjak [Sun, 14 Mar 2010 17:17:24 +0000 (18:17 +0100)]
* Fix previous ChangeLog entry.

From-SVN: r157449

14 years agopacked1.C: Expect warning on the alpha*-*-*.
Uros Bizjak [Sun, 14 Mar 2010 17:16:20 +0000 (18:16 +0100)]
packed1.C: Expect warning on the alpha*-*-*.

* g++.dg/abi/packed1.C: Expect warning on the alpha*-*-*.

* g++.dg/graphite/pr43026.C (dg-options): Remove -m32.

From-SVN: r157448

14 years agore PR fortran/43362 (ICE with structure constuctor with DT component)
Tobias Burnus [Sun, 14 Mar 2010 13:18:28 +0000 (14:18 +0100)]
re PR fortran/43362 (ICE with structure constuctor with DT component)

2010-03-14  Tobias Burnus  <burnus@net-b.de>

        PR fortran/43362
        * resolve.c (resolve_structure_cons): Add missing PURE
        * constraint.
        (resolve_ordinary_assign): Add check to avoid segfault.

2010-03-14  Tobias Burnus  <burnus@net-b.de>

        PR fortran/43362
        * gfortran.dg/impure_constructor_1.f90: New test.

From-SVN: r157447

14 years agoDaily bump.
GCC Administrator [Sun, 14 Mar 2010 00:16:41 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r157445