platform/upstream/gcc.git
15 years agoDaily bump.
GCC Administrator [Thu, 6 Aug 2009 00:16:44 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r150508

15 years agore PR fortran/40969 (Revision 150465 failed gfortran.dg/c_by_val_1.f)
Tobias Burnus [Wed, 5 Aug 2009 20:47:19 +0000 (22:47 +0200)]
re PR fortran/40969 (Revision 150465 failed gfortran.dg/c_by_val_1.f)

2009-08-05  Tobias Burnus  <burnus@net-b.de>

        PR fortran/40969
        Revert:
        2009-08-04  Tobias Burnus  <burnus@net-b.de>

        PR fortran/40949
        * trans-types.c (gfc_get_function_type): Fix typelist of
        functions without argument.

From-SVN: r150500

15 years agotree-ssa-alias.c: Fix intervals to use [) syntax.
Andrew Pinski [Wed, 5 Aug 2009 17:20:33 +0000 (10:20 -0700)]
tree-ssa-alias.c: Fix intervals to use [) syntax.

2009-08-05  Andrew Pinski  <pinskia@gmail.com>

        * tree-ssa-alias.c: Fix intervals to use [) syntax.

From-SVN: r150496

15 years agofortran.exp: Add flags in case of shared only build.
Andreas Tobler [Wed, 5 Aug 2009 16:11:54 +0000 (16:11 +0000)]
fortran.exp: Add flags in case of shared only build.

2009-08-05  Andreas Tobler  <a.tobler@schweiz.org>

* testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
only build.

From-SVN: r150495

15 years agore PR fortran/40847 (segfault & bogus warning)
Paul Thomas [Wed, 5 Aug 2009 16:10:19 +0000 (16:10 +0000)]
re PR fortran/40847 (segfault & bogus warning)

2009-08-05  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/40847
* iresolve.c (gfc_resolve_transfer): Correct error in 'mold'
character length for case where length expresson is NULL.

2009-08-05  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/40847
* gfortran.dg/transfer_resolve_1.f90 : New test.

From-SVN: r150493

15 years ago* gcc.target/i386/pr40906-3.c: Run only on *-*-linux* targets.
Uros Bizjak [Wed, 5 Aug 2009 14:49:51 +0000 (16:49 +0200)]
* gcc.target/i386/pr40906-3.c: Run only on *-*-linux* targets.

From-SVN: r150488

15 years agore PR target/40906 (Wrong code generated for push of long double)
Uros Bizjak [Wed, 5 Aug 2009 14:41:54 +0000 (16:41 +0200)]
re PR target/40906 (Wrong code generated for push of long double)

PR target/40906
* config/i386/i386.c (ix86_split_long_move): Fix push of multi-part
source operand.

testsuite/ChangeLog:

PR target/40906
* gcc.target/i386/pr40906-1.c: New test.
* gcc.target/i386/pr40906-2.c: Ditto.
* gcc.target/i386/pr40906-3.c: Ditto.

Co-Authored-By: Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
From-SVN: r150486

15 years agore PR rtl-optimization/40924 (miscompiles with -O3 (seemingly related to attribute...
Jakub Jelinek [Wed, 5 Aug 2009 12:36:34 +0000 (14:36 +0200)]
re PR rtl-optimization/40924 (miscompiles with -O3 (seemingly related to attribute may_alias))

PR rtl-optimization/40924
* dse.c (canon_address): Before calling cselib_expand_value_rtx
make sure canon_rtx (mem_address) isn't simpler than
canon_rtx (expanded_mem_address).

* g++.dg/torture/pr40924.C: New test.

From-SVN: r150483

15 years agobuild alias set for drs in SCoP instead of in pbb.
Li Feng [Wed, 5 Aug 2009 07:37:36 +0000 (07:37 +0000)]
build alias set for drs in SCoP instead of in pbb.

2009-08-05  Li Feng  <nemokingdom@gmail.com>

    * graphite-sese-to-poly.c (build_pbb_drs): Remove build alias set
    for each poly_bb_p.
    (build_scop_drs): Build alias set for each SCoP.

From-SVN: r150478

15 years agoinvoke.texi (MIPS Options): Document new 1004K -march options.
Sandra Loosemore [Wed, 5 Aug 2009 00:46:07 +0000 (20:46 -0400)]
invoke.texi (MIPS Options): Document new 1004K -march options.

2009-08-04  Sandra Loosemore  <sandra@codesourcery.com>

gcc/
* doc/invoke.texi (MIPS Options): Document new 1004K -march options.
* config/mips/mips.c (mips_cpu_info_table): Add 1004K cores.
* config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Add pattern for 1004K.
(MIPS_ARCH_FLOAT_SPEC): Likewise.
(BASE_DRIVER_SELF_SPECS): Likewise.

From-SVN: r150475

15 years agoDaily bump.
GCC Administrator [Wed, 5 Aug 2009 00:16:44 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r150474

15 years agore PR c++/36069 (Strange "warning: suggest parentheses around assignment used as...
Manuel López-Ibáñez [Tue, 4 Aug 2009 23:51:07 +0000 (23:51 +0000)]
re PR c++/36069 (Strange "warning: suggest parentheses around assignment used as truth value" with volatile/non volatile bools)

2009-08-05  Manuel López-Ibáñez  <manu@gcc.gnu.org>

PR c++/36069
cp/
* typeck.c (convert_for_assignment): Do not warn for any boolean
variant. Use explicit location.
testsuite/
* g++.dg/warn/pr36069.C: New.

From-SVN: r150471

15 years agotree-ssa-alias.c: Fix some comment typos.
Andrew Pinski [Tue, 4 Aug 2009 22:45:33 +0000 (15:45 -0700)]
tree-ssa-alias.c: Fix some comment typos.

2009-08-04  Andrew Pinski  <pinskia@gmail.com>

        * tree-ssa-alias.c: Fix some comment typos.

From-SVN: r150470

15 years agolinux-atomic.asm (ATOMIC_BOOL_COMPARE_AND_SWAP, [...]): Define.
Kaz Kojima [Tue, 4 Aug 2009 21:33:50 +0000 (21:33 +0000)]
linux-atomic.asm (ATOMIC_BOOL_COMPARE_AND_SWAP, [...]): Define.

* config/sh/linux-atomic.asm (ATOMIC_BOOL_COMPARE_AND_SWAP,
ATOMIC_OP_AND_FETCH, ATOMIC_COMBOP_AND_FETCH): Define.

From-SVN: r150469

15 years agore PR c++/39987 (Rejects default argument that is a template via access failure)
Dodji Seketeli [Tue, 4 Aug 2009 19:49:48 +0000 (19:49 +0000)]
re PR c++/39987 (Rejects default argument that is a template via access failure)

2009-08-04  Dodji Seketeli  <dodji@redhat.com>

gcc/cp/ChangeLog:
PR c++/39987
* pt.c (tsubst_default_argument): Let access checks of the
default argument happen in the context of the current function.

gcc/testsuite/ChangeLog:
PR c++/39987
* g++.dg/overload/defarg4.C: New test.

From-SVN: r150467

15 years agore PR fortran/40949 (FAIL: gfortran.dg/proc_ptr_7.f90)
Tobias Burnus [Tue, 4 Aug 2009 17:35:59 +0000 (19:35 +0200)]
re PR fortran/40949 (FAIL: gfortran.dg/proc_ptr_7.f90)

2009-08-04  Tobias Burnus  <burnus@net-b.de>

        PR fortran/40949
        * trans-types.c (gfc_get_function_type): Fix typelist of
        functions without argument.

From-SVN: r150465

15 years agomutex.h (gomp_mutex_unlock): Add comment about needed memory barrier semantics.
David Daney [Tue, 4 Aug 2009 17:25:42 +0000 (17:25 +0000)]
mutex.h (gomp_mutex_unlock): Add comment about needed memory barrier semantics.

2009-08-04  David Daney  <ddaney@caviumnetworks.com>

* config/linux/mutex.h (gomp_mutex_unlock): Add comment about
needed memory barrier semantics.
* config/linux/mips/mutex.h: New file.

From-SVN: r150463

15 years agore PR c++/16696 (Strange message when operator++ not found)
Manuel López-Ibáñez [Tue, 4 Aug 2009 15:51:12 +0000 (15:51 +0000)]
re PR c++/16696 (Strange message when operator++ not found)

2009-08-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>

PR c++/16696
cp/
* call.c (build_new_op): Only try prefix operator if -fpermissive,
otherwise just error.
testsuite/
* g++.dg/parse/pr16696.C: New.
* g++.dg/parse/pr16696-permissive.C: New.

From-SVN: r150461

15 years ago* es.po: Update.
Joseph Myers [Tue, 4 Aug 2009 14:57:16 +0000 (15:57 +0100)]
* es.po: Update.

From-SVN: r150458

15 years agore PR libstdc++/15523 ([DR 408] Can't have vectors of vector::const_iterator)
Paolo Carlini [Tue, 4 Aug 2009 13:01:08 +0000 (13:01 +0000)]
re PR libstdc++/15523 ([DR 408] Can't have vectors of vector::const_iterator)

2009-08-04  Paolo Carlini  <paolo.carlini@oracle.com>

PR libstdc++/15523
* include/debug/safe_iterator.h (_Safe_iterator<>::
_Safe_iterator(const _Safe_iterator&), _Safe_iterator<>::
operator=(const _Safe_iterator&)): Implement resolution of DR 408,
do not error out when the source is a value-initialized iterator.
* testsuite/23_containers/vector/15523.cc: New.
* doc/xml/manual/intro.xml: Add an entry for DR 408.

From-SVN: r150455

15 years agore PR fortran/40875 (ICE with illegal type conversion)
Paul Thomas [Tue, 4 Aug 2009 12:41:08 +0000 (12:41 +0000)]
re PR fortran/40875 (ICE with illegal type conversion)

2009-08-04  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/40875
* decl.c (add_init_expr_to_sym): Character symbols can only be
initialized with character expressions.

2009-08-04  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/40875
* gfortran.dg/initialization_23.f90 : New test.

From-SVN: r150454

15 years agore PR debug/39706 (namespaces represented incorrectly in debug_pubnames)
Dodji Seketeli [Tue, 4 Aug 2009 12:26:01 +0000 (12:26 +0000)]
re PR debug/39706 (namespaces represented incorrectly in debug_pubnames)

2009-08-04  Dodji Seketeli  <dodji@redhat.com>

gcc/cp/ChangeLog:
PR debug/39706
* error.c (lang_decl_name): Print qualified names for decls
in  namespace scope.

gcc/testsuite/ChangeLog:
PR debug/39706
* g++.dg/debug/dwarf2/pubnames-1.C: New test.

From-SVN: r150452

15 years agore PR c++/40948 (ICE in lower_stmt, at gimple-low.c:408)
Jason Merrill [Tue, 4 Aug 2009 02:10:05 +0000 (22:10 -0400)]
re PR c++/40948 (ICE in lower_stmt, at gimple-low.c:408)

PR c++/40948
* init.c (build_vec_init): Look through a TARGET_EXPR around a
CONSTRUCTOR.

Co-Authored-By: Jakub Jelinek <jakub@redhat.com>
From-SVN: r150394

15 years agoDaily bump.
GCC Administrator [Tue, 4 Aug 2009 00:17:05 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r150393

15 years agoistream (operator>>(basic_istream<>&&, _Tp&)): Minor cosmetic changes, inline.
Paolo Carlini [Mon, 3 Aug 2009 21:53:25 +0000 (21:53 +0000)]
istream (operator>>(basic_istream<>&&, _Tp&)): Minor cosmetic changes, inline.

2009-08-03  Paolo Carlini  <paolo.carlini@oracle.com>

* include/std/istream (operator>>(basic_istream<>&&, _Tp&)): Minor
cosmetic changes, inline.
* include/std/ostream (operator<<(basic_ostream<>&&, const _Tp&)):
Likewise.
* include/bits/move.h: Minor cosmetic changes.

From-SVN: r150387

15 years agore PR c/39902 (x * 1.0DF gets wrong value)
Janis Johnson [Mon, 3 Aug 2009 21:38:53 +0000 (21:38 +0000)]
re PR c/39902 (x * 1.0DF gets wrong value)

PR c/39902
* simplify-rtx.c (simplify_binary_operation_1): Disable
simplifications for decimal float operations.

PR c/39902
* gcc.target/powerpc/pr39902-2.c: New test.

From-SVN: r150383

15 years agore PR middle-end/40943 (Uninitialized warning is missed when dereferencing uninitiali...
Jakub Jelinek [Mon, 3 Aug 2009 19:26:10 +0000 (21:26 +0200)]
re PR middle-end/40943 (Uninitialized warning is missed when dereferencing uninitialized pointers)

PR middle-end/40943
* tree-ssa.c (warn_uninitialized_var): Even on LHS warn for
operand of INDIRECT_REF.

* gcc.dg/uninit-6.c: Re-add XFAIL.
* gcc.dg/uninit-6-O0.c: Likewise.
* gcc.dg/uninit-pr40943.c: New test.

From-SVN: r150379

15 years agore PR middle-end/40867 (FAIL: StackTrace2 output - source compiled test)
Andrew Haley [Mon, 3 Aug 2009 17:55:11 +0000 (17:55 +0000)]
re PR middle-end/40867 (FAIL: StackTrace2 output - source compiled test)

2009-07-31  Andrew Haley  <aph@redhat.com>

PR java/40867
* decl.c (java_replace_references): Set EXPR_LOCATION on all
generated expressions.
(binding_level.loc): new field.
(clear_binding_level): Initialize loc.
(set_input_location): New function.
(pushlevel): Set new binding_level.loc.
(poplevel): Set EXPR_LOCATION on the new BIND_EXPR_BODY.
(start_java_method): Set DECL_SOURCE_LOCATION of this new method.
(java_add_stmt): Set the EXPR_LOCATION on all subtrees of new_stmt.

From-SVN: r150376

15 years agore PR testsuite/40858 (FAIL: g++.dg/debug/dwarf2/typedef1.C)
John David Anglin [Mon, 3 Aug 2009 17:29:17 +0000 (17:29 +0000)]
re PR testsuite/40858 (FAIL: g++.dg/debug/dwarf2/typedef1.C)

PR testsuite/40858
* g++.dg/debug/dwarf2/typedef1.C: Also match assembler string used with
.ascii.

From-SVN: r150375

15 years agoalpha.c (alpha_legitimate_constant_p): Reject CONST constants referencing TLS symbols.
Uros Bizjak [Mon, 3 Aug 2009 15:58:55 +0000 (17:58 +0200)]
alpha.c (alpha_legitimate_constant_p): Reject CONST constants referencing TLS symbols.

* config/alpha/alpha.c (alpha_legitimate_constant_p): Reject CONST
constants referencing TLS symbols.

From-SVN: r150372

15 years agolinux-atomic.asm (ATOMIC_COMPARE_AND_SWAP): Rename __sync_compare_and_swap_* to __syn...
SUGIOKA Toshinobu [Mon, 3 Aug 2009 10:33:16 +0000 (19:33 +0900)]
linux-atomic.asm (ATOMIC_COMPARE_AND_SWAP): Rename __sync_compare_and_swap_* to __sync_val_compare_and_swap_*.

* config/sh/linux-atomic.asm (ATOMIC_COMPARE_AND_SWAP): Rename
__sync_compare_and_swap_* to __sync_val_compare_and_swap_*.

From-SVN: r150371

15 years agotree.c (make_vector_type): Build a main variant first, get the canonical one and...
Richard Guenther [Mon, 3 Aug 2009 10:30:46 +0000 (10:30 +0000)]
tree.c (make_vector_type): Build a main variant first, get the canonical one and then build the variant.

2009-08-03  Richard Guenther  <rguenther@suse.de>

* tree.c (make_vector_type): Build a main variant first,
get the canonical one and then build the variant.
* tree-ssa.c (useless_type_conversion_p_1): Handle
fixed-point types.
(useless_type_conversion_p): Conversions to pointers to
incomplete record types are useless.

From-SVN: r150370

15 years agotree-cfg.c (pass_warn_unused_result): Mark name that no dump file will be created.
Richard Guenther [Mon, 3 Aug 2009 10:29:08 +0000 (10:29 +0000)]
tree-cfg.c (pass_warn_unused_result): Mark name that no dump file will be created.

2009-08-03  Richard Guenther  <rguenther@suse.de>

* tree-cfg.c (pass_warn_unused_result): Mark name that no dump
file will be created.
* omp-low.c (pass_diagnose_omp_blocks): Likewise.
* toplev.c (compile_file): Adjust comment.

From-SVN: r150369

15 years agosh-protos.h (sh_promote_function_mode): Remove.
Kaz Kojima [Mon, 3 Aug 2009 10:27:44 +0000 (10:27 +0000)]
sh-protos.h (sh_promote_function_mode): Remove.

* config/sh/sh-protos.h (sh_promote_function_mode): Remove.
* config/sh/sh.c (sh_promote_function_mode): Wrap long lines.
(TARGET_PROMOTE_FUNCTION_MODE): Define.
(TARGET_PROMOTE_FUNCTION_ARGS): Remove.
(sh_promote_function_mode): Fix typo.

From-SVN: r150368

15 years agoexplow.c (promote_mode): Mark TYPE and PUNSIGNEDP as possibly unused.
Andreas Krebbel [Mon, 3 Aug 2009 09:18:28 +0000 (09:18 +0000)]
explow.c (promote_mode): Mark TYPE and PUNSIGNEDP as possibly unused.

2009-08-03  Andreas Krebbel  <krebbel1@de.ibm.com>

* explow.c (promote_mode): Mark TYPE and PUNSIGNEDP as
          possibly unused.

From-SVN: r150367

15 years agoDaily bump.
GCC Administrator [Mon, 3 Aug 2009 00:16:52 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r150364

15 years agoPR libstdc++/40912 (final)
Paolo Carlini [Sun, 2 Aug 2009 23:35:41 +0000 (23:35 +0000)]
PR libstdc++/40912 (final)

2009-08-02  Paolo Carlini  <paolo.carlini@oracle.com>

PR libstdc++/40912 (final)
* testsuite/26_numerics/random/mt19937.cc: dg-require-cstdint.
* testsuite/26_numerics/random/uniform_real_distribution/cons/
parms_neg.cc: Likewise.
* testsuite/26_numerics/random/uniform_real_distribution/cons/
parms.cc: Likewise.
* testsuite/26_numerics/random/uniform_real_distribution/cons/
default.cc: Likewise.
* testsuite/26_numerics/random/uniform_real_distribution/
requirements/typedefs.cc: Likewise.
* testsuite/26_numerics/random/piecewise_constant_distribution/
cons/range.cc: Likewise.
* testsuite/26_numerics/random/piecewise_constant_distribution/
cons/default.cc: Likewise.
* testsuite/26_numerics/random/piecewise_constant_distribution/
cons/num_xbound_fun.cc: Likewise.
* testsuite/26_numerics/random/piecewise_constant_distribution/
cons/initlist_fun.cc: Likewise.
* testsuite/26_numerics/random/piecewise_constant_distribution/
requirements/typedefs.cc: Likewise.
* testsuite/26_numerics/random/minstd_rand.cc: Likewise.
* testsuite/26_numerics/random/chi_squared_distribution/cons/
parms.cc: Likewise.
* testsuite/26_numerics/random/chi_squared_distribution/cons/
default.cc: Likewise.
* testsuite/26_numerics/random/chi_squared_distribution/
requirements/typedefs.cc: Likewise.
* testsuite/26_numerics/random/normal_distribution/
cons/parms.cc: Likewise.
* testsuite/26_numerics/random/normal_distribution/
cons/default.cc: Likewise.
* testsuite/26_numerics/random/normal_distribution/
requirements/typedefs.cc: Likewise.
* testsuite/26_numerics/random/seed_seq/cons/
range.cc: Likewise.
* testsuite/26_numerics/random/seed_seq/cons/
initlist.cc: Likewise.
* testsuite/26_numerics/random/seed_seq/cons/
default.cc: Likewise.
* testsuite/26_numerics/random/seed_seq/requirements/
typedefs.cc: Likewise.
* testsuite/26_numerics/random/uniform_int_distribution/
cons/parms_neg.cc: Likewise.
* testsuite/26_numerics/random/uniform_int_distribution/
cons/parms.cc: Likewise.
* testsuite/26_numerics/random/uniform_int_distribution/
cons/default.cc: Likewise.
* testsuite/26_numerics/random/uniform_int_distribution/
requirements/typedefs.cc: Likewise.
* testsuite/26_numerics/random/poisson_distribution/cons/
parms.cc: Likewise.
* testsuite/26_numerics/random/poisson_distribution/cons/
default.cc: Likewise.
* testsuite/26_numerics/random/poisson_distribution/
requirements/typedefs.cc: Likewise.
* testsuite/26_numerics/random/bernoulli_distribution/
cons/parms.cc: Likewise.
* testsuite/26_numerics/random/bernoulli_distribution/
cons/default.cc: Likewise.
* testsuite/26_numerics/random/bernoulli_distribution/
requirements/typedefs.cc: Likewise.
* testsuite/26_numerics/random/ranlux24_base.cc: Likewise.
* testsuite/26_numerics/random/
default_random_engine.cc: Likewise.
* testsuite/26_numerics/random/discrete_distribution/
cons/range.cc: Likewise.
* testsuite/26_numerics/random/discrete_distribution/
cons/initlist.cc: Likewise.
* testsuite/26_numerics/random/discrete_distribution/
cons/default.cc: Likewise.
* testsuite/26_numerics/random/discrete_distribution/
cons/num_xbound_fun.cc: Likewise.
* testsuite/26_numerics/random/discrete_distribution/
requirements/typedefs.cc: Likewise.
* testsuite/26_numerics/random/weibull_distribution/
cons/parms.cc: Likewise.
* testsuite/26_numerics/random/weibull_distribution/
cons/default.cc: Likewise.
* testsuite/26_numerics/random/weibull_distribution/
requirements/typedefs.cc: Likewise.
* testsuite/26_numerics/random/independent_bits_engine/
cons/base_move.cc: Likewise.
* testsuite/26_numerics/random/independent_bits_engine/
cons/seed1.cc: Likewise.
* testsuite/26_numerics/random/independent_bits_engine/
cons/seed2.cc: Likewise.
* testsuite/26_numerics/random/independent_bits_engine/
cons/base_copy.cc: Likewise.
* testsuite/26_numerics/random/independent_bits_engine/
cons/default.cc: Likewise.
* testsuite/26_numerics/random/independent_bits_engine/
cons/seed_seq.cc: Likewise.
* testsuite/26_numerics/random/independent_bits_engine/
requirements/typedefs.cc: Likewise.
* testsuite/26_numerics/random/independent_bits_engine/
operators/equal.cc: Likewise.
* testsuite/26_numerics/random/independent_bits_engine/
operators/serialize.cc: Likewise.
* testsuite/26_numerics/random/ranlux48_base.cc: Likewise.
* testsuite/26_numerics/random/minstd_rand0.cc: Likewise.
* testsuite/26_numerics/random/subtract_with_carry_engine/
cons/seed1.cc: Likewise.
* testsuite/26_numerics/random/subtract_with_carry_engine/
cons/seed2.cc: Likewise.
* testsuite/26_numerics/random/subtract_with_carry_engine/
cons/default.cc: Likewise.
* testsuite/26_numerics/random/subtract_with_carry_engine/
requirements/typedefs.cc: Likewise.
* testsuite/26_numerics/random/subtract_with_carry_engine/
operators/equal.cc: Likewise.
* testsuite/26_numerics/random/subtract_with_carry_engine/
operators/serialize.cc: Likewise.
* testsuite/26_numerics/random/discard_block_engine/cons/
base_move.cc: Likewise.
* testsuite/26_numerics/random/discard_block_engine/cons/
seed1.cc: Likewise.
* testsuite/26_numerics/random/discard_block_engine/cons/
seed2.cc: Likewise.
* testsuite/26_numerics/random/discard_block_engine/cons/
base_copy.cc: Likewise.
* testsuite/26_numerics/random/discard_block_engine/cons/
default.cc: Likewise.
* testsuite/26_numerics/random/discard_block_engine/cons/
seed_seq.cc: Likewise.
* testsuite/26_numerics/random/discard_block_engine/
requirements/typedefs.cc: Likewise.
* testsuite/26_numerics/random/discard_block_engine/
operators/equal.cc: Likewise.
* testsuite/26_numerics/random/discard_block_engine/
operators/serialize.cc: Likewise.
* testsuite/26_numerics/random/cauchy_distribution/
cons/parms.cc: Likewise.
* testsuite/26_numerics/random/cauchy_distribution/
cons/default.cc: Likewise.
* testsuite/26_numerics/random/cauchy_distribution/
requirements/typedefs.cc: Likewise.
* testsuite/26_numerics/random/negative_binomial_distribution/
cons/parms.cc: Likewise.
* testsuite/26_numerics/random/negative_binomial_distribution/
cons/default.cc: Likewise.
* testsuite/26_numerics/random/negative_binomial_distribution/
requirements/typedefs.cc: Likewise.
* testsuite/26_numerics/random/gamma_distribution/
cons/parms.cc: Likewise.
* testsuite/26_numerics/random/gamma_distribution/
cons/default.cc: Likewise.
* testsuite/26_numerics/random/gamma_distribution/
requirements/typedefs.cc: Likewise.
* testsuite/26_numerics/random/mersenne_twister_engine/
cons/seed1.cc: Likewise.
* testsuite/26_numerics/random/mersenne_twister_engine/
cons/seed2.cc: Likewise.
* testsuite/26_numerics/random/mersenne_twister_engine/
cons/default.cc: Likewise.
* testsuite/26_numerics/random/mersenne_twister_engine/
requirements/typedefs.cc: Likewise.
* testsuite/26_numerics/random/mersenne_twister_engine/
operators/equal.cc: Likewise.
* testsuite/26_numerics/random/mersenne_twister_engine/
operators/serialize.cc: Likewise.
* testsuite/26_numerics/random/fisher_f_distribution/
cons/parms.cc: Likewise.
* testsuite/26_numerics/random/fisher_f_distribution/
cons/default.cc: Likewise.
* testsuite/26_numerics/random/fisher_f_distribution/
requirements/typedefs.cc: Likewise.
* testsuite/26_numerics/random/exponential_distribution/
cons/parms.cc: Likewise.
* testsuite/26_numerics/random/exponential_distribution/
cons/default.cc: Likewise.
* testsuite/26_numerics/random/exponential_distribution/
requirements/typedefs.cc: Likewise.
* testsuite/26_numerics/random/binomial_distribution/
cons/parms.cc: Likewise.
* testsuite/26_numerics/random/binomial_distribution/
cons/default.cc: Likewise.
* testsuite/26_numerics/random/binomial_distribution/
requirements/typedefs.cc: Likewise.
* testsuite/26_numerics/random/lognormal_distribution/
cons/parms.cc: Likewise.
* testsuite/26_numerics/random/lognormal_distribution/
cons/default.cc: Likewise.
* testsuite/26_numerics/random/lognormal_distribution/
requirements/typedefs.cc: Likewise.
* testsuite/26_numerics/random/mt19937_64.cc: Likewise.
* testsuite/26_numerics/random/random_device/cons/
token.cc: Likewise.
* testsuite/26_numerics/random/random_device/cons/
default.cc: Likewise.
* testsuite/26_numerics/random/random_device/
requirements/typedefs.cc: Likewise.
* testsuite/26_numerics/random/ranlux24.cc: Likewise.
* testsuite/26_numerics/random/extreme_value_distribution/
cons/parms.cc: Likewise.
* testsuite/26_numerics/random/extreme_value_distribution/
cons/default.cc: Likewise.
* testsuite/26_numerics/random/extreme_value_distribution/
requirements/typedefs.cc: Likewise.
* testsuite/26_numerics/random/piecewise_linear_distribution/
cons/range.cc: Likewise.
* testsuite/26_numerics/random/piecewise_linear_distribution/
cons/default.cc: Likewise.
* testsuite/26_numerics/random/piecewise_linear_distribution/
cons/num_xbound_fun.cc: Likewise.
* testsuite/26_numerics/random/piecewise_linear_distribution/
cons/initlist_fun.cc: Likewise.
* testsuite/26_numerics/random/piecewise_linear_distribution/
requirements/typedefs.cc: Likewise.
* testsuite/26_numerics/random/student_t_distribution/
cons/parms.cc: Likewise.
* testsuite/26_numerics/random/student_t_distribution/
cons/default.cc: Likewise.
* testsuite/26_numerics/random/student_t_distribution/
requirements/typedefs.cc: Likewise.
* testsuite/26_numerics/random/linear_congruential_engine/
cons/seed1.cc: Likewise.
* testsuite/26_numerics/random/linear_congruential_engine/
cons/seed2.cc: Likewise.
* testsuite/26_numerics/random/linear_congruential_engine/
cons/default.cc: Likewise.
* testsuite/26_numerics/random/linear_congruential_engine/
requirements/non_uint_neg.cc: Likewise.
* testsuite/26_numerics/random/linear_congruential_engine/
requirements/typedefs.cc: Likewise.
* testsuite/26_numerics/random/linear_congruential_engine/
operators/equal.cc: Likewise.
* testsuite/26_numerics/random/linear_congruential_engine/
operators/serialize.cc: Likewise.
* testsuite/26_numerics/random/ranlux48.cc: Likewise.
* testsuite/26_numerics/random/shuffle_order_engine/cons/
base_move.cc: Likewise.
* testsuite/26_numerics/random/shuffle_order_engine/cons/
seed1.cc: Likewise.
* testsuite/26_numerics/random/shuffle_order_engine/cons/
seed2.cc: Likewise.
* testsuite/26_numerics/random/shuffle_order_engine/cons/
base_copy.cc: Likewise.
* testsuite/26_numerics/random/shuffle_order_engine/cons/
default.cc: Likewise.
* testsuite/26_numerics/random/shuffle_order_engine/cons/
seed_seq.cc: Likewise.
* testsuite/26_numerics/random/shuffle_order_engine/
requirements/typedefs.cc: Likewise.
* testsuite/26_numerics/random/shuffle_order_engine/
operators/equal.cc: Likewise.
* testsuite/26_numerics/random/shuffle_order_engine/
operators/serialize.cc: Likewise.
* testsuite/26_numerics/random/geometric_distribution/
cons/parms.cc: Likewise.
* testsuite/26_numerics/random/geometric_distribution/
cons/default.cc: Likewise.
* testsuite/26_numerics/random/geometric_distribution/
requirements/typedefs.cc: Likewise.
* testsuite/26_numerics/random/knuth_b.cc: Likewise.

From-SVN: r150361

15 years agopa.c (pa_promote_function_mode): Remove ATTRIBUTE_UNUSED from declaration arguments.
John David Anglin [Sun, 2 Aug 2009 19:28:30 +0000 (19:28 +0000)]
pa.c (pa_promote_function_mode): Remove ATTRIBUTE_UNUSED from declaration arguments.

* pa.c (pa_promote_function_mode): Remove ATTRIBUTE_UNUSED from
declaration arguments.

From-SVN: r150358

15 years agore PR fortran/40853 (I/O: Namelist read error)
Jerry DeLisle [Sun, 2 Aug 2009 18:47:46 +0000 (18:47 +0000)]
re PR fortran/40853 (I/O: Namelist read error)

2009-08-02  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR libfortran/40853
* gfortran.dg/namelist_40.f90: Update error output.
* gfortran.dg/namelist_47.f90: Update error output.
* gfortran.dg/namelist_58.f90: New test.

From-SVN: r150357

15 years agore PR fortran/40853 (I/O: Namelist read error)
Jerry DeLisle [Sun, 2 Aug 2009 18:31:07 +0000 (18:31 +0000)]
re PR fortran/40853 (I/O: Namelist read error)

2009-08-02  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR libfortran/40853
* io/list_read.c (nml_get_obj_data): Do not set nl
pointer to first_nl if nl->next is NULL.

From-SVN: r150356

15 years agoi386.c (ix86_expand_fp_compare): Use const0_rtx instead of GEN_INT (0x00) and const1_...
Uros Bizjak [Sun, 2 Aug 2009 18:05:44 +0000 (20:05 +0200)]
i386.c (ix86_expand_fp_compare): Use const0_rtx instead of GEN_INT (0x00) and const1_rtx instead of GEN_INT (0x01).

* config/i386/i386.c (ix86_expand_fp_compare): Use const0_rtx instead
of GEN_INT (0x00) and const1_rtx instead of GEN_INT (0x01).
(ix86_split_ashl): Ditto.
(ix86_expand_vector_init_one_nonzero): Ditto.
(ix86_expand_vector_set): Ditto.
(ix86_expand_reduc_v4sf): Ditto.

From-SVN: r150355

15 years agoAdd missing entry
Eric Botcazou [Sun, 2 Aug 2009 14:34:42 +0000 (14:34 +0000)]
Add missing entry

From-SVN: r150353

15 years agogigi.h (end_subprog_body): Tweak comment.
Eric Botcazou [Sun, 2 Aug 2009 13:14:15 +0000 (13:14 +0000)]
gigi.h (end_subprog_body): Tweak comment.

* gcc-interface/gigi.h (end_subprog_body): Tweak comment.
* gcc-interface/utils.c (end_subprog_body): Likewise.
* gcc-interface/trans.c (gigi): Likewise.
(gnat_to_gnu): Likewise.

From-SVN: r150352

15 years agore PR fortran/40881 ([F03] warn for obsolescent features)
Janus Weil [Sun, 2 Aug 2009 10:58:44 +0000 (12:58 +0200)]
re PR fortran/40881 ([F03] warn for obsolescent features)

2009-08-02  Janus Weil  <janus@gcc.gnu.org>

PR fortran/40881
* decl.c (match_char_length): Warn about old-style character length
declarations.
* match.c (match_arithmetic_if,gfc_match_if): Modify warning message
for arithmetic if.
(gfc_match_goto): Warn about computed gotos.
(gfc_match_return): Warn about alternate return.
(gfc_match_st_function): Warn about statement functions.
* resolve.c (resolve_fl_procedure): Modify warning message for
assumed-length character functions.

2009-08-02  Janus Weil  <janus@gcc.gnu.org>

PR fortran/40881
* gfortran.dg/aliasing_dummy_1.f90: Add -std=legacy.
* gfortran.dg/altreturn_3.f90: Ditto.
* gfortran.dg/altreturn_5.f90: Ditto.
* gfortran.dg/altreturn_6.f90: Ditto.
* gfortran.dg/altreturn_7.f90: Ditto.
* gfortran.dg/array_constructor_13.f90: Ditto.
* gfortran.dg/arrayio_7.f90: Ditto.
* gfortran.dg/arrayio_8.f90: Ditto.
* gfortran.dg/assumed_charlen_function_3.f90: Modified warning message.
* gfortran.dg/assumed_charlen_function_4.f90: Add -std=legacy.
* gfortran.dg/assumed_charlen_function_5.f90: Modified warning message.
* gfortran.dg/backspace_8.f: Add -std=legacy.
* gfortran.dg/backspace_9.f: Ditto.
* gfortran.dg/char_comparison_1.f: Ditto.
* gfortran.dg/char_decl_1.f90: Ditto.
* gfortran.dg/char_initialiser_actual.f90: Ditto.
* gfortran.dg/char_pointer_assign.f90: Ditto.
* gfortran.dg/char_pointer_dependency.f90: Ditto.
* gfortran.dg/char_pointer_dummy.f90: Ditto.
* gfortran.dg/char_pointer_func.f90: Ditto.
* gfortran.dg/common_8.f90: Ditto.
* gfortran.dg/constant_substring.f: Ditto.
* gfortran.dg/data_char_2.f90: Ditto.
* gfortran.dg/der_array_io_1.f90: Ditto.
* gfortran.dg/der_array_io_2.f90: Ditto.
* gfortran.dg/der_array_io_3.f90: Ditto.
* gfortran.dg/der_io_3.f90: Ditto.
* gfortran.dg/dev_null.F90: Ditto.
* gfortran.dg/direct_io_2.f90: Ditto.
* gfortran.dg/do_iterator_2.f90: Ditto.
* gfortran.dg/e_d_fmt.f90: Ditto.
* gfortran.dg/empty_format_1.f90: Ditto.
* gfortran.dg/entry_17.f90: Modified warning message.
* gfortran.dg/entry_7.f90: Add -std=legacy.
* gfortran.dg/eor_1.f90: Ditto.
* gfortran.dg/equiv_2.f90: Ditto.
* gfortran.dg/equiv_constraint_2.f90: Use new-style character length.
* gfortran.dg/equiv_substr.f90: Add -std=legacy.
* gfortran.dg/extended_char_comparison_1.f: Ditto.
* gfortran.dg/fmt_bz_bn_err.f: Ditto.
* gfortran.dg/fmt_error_2.f90: Ditto.
* gfortran.dg/fmt_read_bz_bn.f90: Ditto.
* gfortran.dg/fmt_tl.f: Ditto.
* gfortran.dg/fmt_white.f: Ditto.
* gfortran.dg/func_derived_1.f90: Ditto.
* gfortran.dg/g77_intrinsics_funcs.f: Ditto.
* gfortran.dg/g77_intrinsics_sub.f: Ditto.
* gfortran.dg/global_references_2.f90: Ditto.
* gfortran.dg/hollerith_1.f90: Ditto.
* gfortran.dg/hollerith.f90: Use new-style character length.
* gfortran.dg/hollerith_f95.f90: Ditto.
* gfortran.dg/ichar_1.f90: Add -std=legacy.
* gfortran.dg/implicit_6.f90: Ditto.
* gfortran.dg/implicit_9.f90: Ditto.
* gfortran.dg/inquire_13.f90: Ditto.
* gfortran.dg/inquire_5.f90: Ditto.
* gfortran.dg/inquire_6.f90: Ditto.
* gfortran.dg/inquire.f90: Ditto.
* gfortran.dg/io_constraints_1.f90: Use new-style character length.
* gfortran.dg/io_constraints_2.f90: Ditto.
* gfortran.dg/list_read_2.f90: Add -std=legacy.
* gfortran.dg/loc_2.f90: Ditto.
* gfortran.dg/logical_1.f90: Ditto.
* gfortran.dg/longline.f: Ditto.
* gfortran.dg/merge_char_1.f90: Ditto.
* gfortran.dg/namelist_12.f: Ditto.
* gfortran.dg/namelist_14.f90: Ditto.
* gfortran.dg/namelist_18.f90: Ditto.
* gfortran.dg/namelist_19.f90: Ditto.
* gfortran.dg/namelist_21.f90: Ditto.
* gfortran.dg/namelist_22.f90: Ditto.
* gfortran.dg/namelist_37.f90: Ditto.
* gfortran.dg/namelist_54.f90: Ditto.
* gfortran.dg/namelist_55.f90: Ditto.
* gfortran.dg/namelist_empty.f90: Ditto.
* gfortran.dg/namelist_use.f90: Use new-style character length.
* gfortran.dg/namelist_use_only.f90: Add -std=legacy.
* gfortran.dg/nested_modules_4.f90: Ditto.
* gfortran.dg/nested_modules_5.f90: Ditto.
* gfortran.dg/open-options-blanks.f: Ditto.
* gfortran.dg/output_exponents_1.f90: Ditto.
* gfortran.dg/parens_5.f90: Ditto.
* gfortran.dg/parens_6.f90: Ditto.
* gfortran.dg/parent_result_ref_2.f90: Modified warning message.
* gfortran.dg/pointer_function_actual_1.f90: Add -std=legacy.
* gfortran.dg/pr15129.f90: Ditto.
* gfortran.dg/pr15332.f: Ditto.
* gfortran.dg/pr16597.f90: Ditto.
* gfortran.dg/pr17143.f90: Ditto.
* gfortran.dg/pr17164.f90: Ditto.
* gfortran.dg/pr17229.f: Modified warning message.
* gfortran.dg/pr18210.f90: Add -std=legacy.
* gfortran.dg/pr19155.f: Ditto.
* gfortran.dg/pr20086.f90: Ditto.
* gfortran.dg/pr20124.f90: Ditto.
* gfortran.dg/pr20755.f: Ditto.
* gfortran.dg/pr20865.f90: Ditto.
* gfortran.dg/pr20950.f: Ditto.
* gfortran.dg/pr21730.f: Ditto.
* gfortran.dg/pr22491.f: Ditto.
* gfortran.dg/pr29713.f90: Ditto.
* gfortran.dg/print_parentheses_1.f: Ditto.
* gfortran.dg/print_parentheses_2.f90: Ditto.
* gfortran.dg/proc_assign_1.f90: Ditto.
* gfortran.dg/proc_decl_1.f90: Ditto.
* gfortran.dg/proc_ptr_17.f90: Add dg-warning.
* gfortran.dg/read_eor.f90: : Add -std=legacy.
* gfortran.dg/read_float_1.f90: Ditto.
* gfortran.dg/read_logical.f90: Ditto.
* gfortran.dg/recursive_statement_functions.f90: Ditto.
* gfortran.dg/return_1.f90: Ditto.
* gfortran.dg/rewind_1.f90: Ditto.
* gfortran.dg/runtime_warning_1.f90: Use new-style character length.
* gfortran.dg/scalar_return_1.f90: Add -std=legacy.
* gfortran.dg/stfunc_1.f90: Ditto.
* gfortran.dg/stfunc_3.f90: Ditto.
* gfortran.dg/stfunc_4.f90: Ditto.
* gfortran.dg/stfunc_6.f90: Ditto.
* gfortran.dg/streamio_2.f90: Ditto.
* gfortran.dg/string_ctor_1.f90: Ditto.
* gfortran.dg/string_null_compare_1.f: Ditto.
* gfortran.dg/substr_6.f90: Ditto.
* gfortran.dg/tl_editing.f90: Ditto.
* gfortran.dg/unf_io_convert_1.f90: Use new-style character length.
* gfortran.dg/warnings_are_errors_1.f90: Modified warning message.
* gfortran.dg/x_slash_1.f: Add -std=legacy.
* gfortran.dg/g77/1832.f: Ditto.
* gfortran.dg/g77/19981216-0.f Ditto.
* gfortran.dg/g77/19990525-0.f: Ditto.
* gfortran.dg/g77/19990826-2.f: Ditto.
* gfortran.dg/g77/20000630-2.f: Ditto.
* gfortran.dg/g77/20010116.f: Ditto.
* gfortran.dg/g77/20010519-1.f: Use new-style character length.
* gfortran.dg/g77/980419-2.f: Add -std=legacy.
* gfortran.dg/g77/980520-1.f: Ditto.
* gfortran.dg/g77/check0.f: Ditto.
* gfortran.dg/g77/cpp3.F: Ditto.
* gfortran.dg/g77/cpp4.F: Use new-style character length.
* gfortran.dg/g77/f77-edit-i-in.f: Add -std=legacy.
* gfortran.dg/g77/f77-edit-t-in.f: Ditto.
* gfortran.dg/g77/short.f: Ditto.

From-SVN: r150349

15 years agoext-3.c: Add NOMIPS16.
Adam Nemet [Sun, 2 Aug 2009 06:45:33 +0000 (06:45 +0000)]
ext-3.c: Add NOMIPS16.

* gcc.target/mips/ext-3.c: Add NOMIPS16.
* gcc.target/mips/ext-4.c: Likewise.
* gcc.target/mips/interrupt_handler.c: Likewise.
* gcc.target/mips/truncate-4.c: Likewise.
* gcc.target/mips/truncate-5.c: Likewise.

From-SVN: r150345

15 years ago2009-08-02 Paolo Bonzini <bonzini@gnu.org
Paolo Bonzini [Sun, 2 Aug 2009 06:10:29 +0000 (06:10 +0000)]
2009-08-02  Paolo Bonzini  <bonzini@gnu.org

* explow.c (promote_function_mode): Remove assert.
* config/sh/sh.c (sh_promote_function_mode): Declare.

From-SVN: r150344

15 years agopa.c (pa_promote_function_mode): Declare.
John David Anglin [Sun, 2 Aug 2009 02:57:37 +0000 (02:57 +0000)]
pa.c (pa_promote_function_mode): Declare.

* pa.c (pa_promote_function_mode): Declare.  Change to static.
Fix promote_mode call.

From-SVN: r150343

15 years agogthr-dce.h (CONST_CAST2): Define if not defined.
John David Anglin [Sun, 2 Aug 2009 01:38:27 +0000 (01:38 +0000)]
gthr-dce.h (CONST_CAST2): Define if not defined.

* gthr-dce.h (CONST_CAST2): Define if not defined.
(__gthread_setspecific): Use CONST_CAST2 to fix warning.

From-SVN: r150342

15 years agoconfig.gcc (hppa[12]*-*-hpux10*): Add stdint support.
John David Anglin [Sun, 2 Aug 2009 01:25:33 +0000 (01:25 +0000)]
config.gcc (hppa[12]*-*-hpux10*): Add stdint support.

* config.gcc (hppa[12]*-*-hpux10*): Add stdint support.

From-SVN: r150341

15 years agoinclhack.def (hpux_inttype_int_least8_t): Also apply on hpux10*.
John David Anglin [Sun, 2 Aug 2009 01:18:04 +0000 (01:18 +0000)]
inclhack.def (hpux_inttype_int_least8_t): Also apply on hpux10*.

* inclhack.def (hpux_inttype_int_least8_t): Also apply on hpux10*.
(hpux_inttype_int8_t): Likewise.
* fixincl.x: Regenerate.

From-SVN: r150340

15 years agoDaily bump.
GCC Administrator [Sun, 2 Aug 2009 00:16:48 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r150339

15 years agoexpr.c (store_constructor): Use promote_decl_mode.
Paolo Bonzini [Sat, 1 Aug 2009 22:03:34 +0000 (22:03 +0000)]
expr.c (store_constructor): Use promote_decl_mode.

2009-04-17  Paolo Bonzini  <bonzini@gnu.org>

* expr.c (store_constructor): Use promote_decl_mode.  Remove
now write-only variable unsignedp.
(expand_expr_real_1): Use promote_decl_mode.
* expr.h (promote_function_mode, promote_decl_mode): New.
(promote_mode): Remove last argument.
* function.c (assign_temp): Drop last argument of promote_mode.
(assign_parm_find_data_types): Use promote_function_mode.
(assign_parm_setup_reg): Likewise.
(expand_function_end): Use promote_function_mode.
* calls.c (initialize_argument_information): Use promote_function_mode.
(precompute_arguments): Use promote_mode instead of checking if
only PROMOTE_FUNCTION_MODE is defined.
(expand_call): When making sibcall decisions, use promote_function_mode.
Below, remove an if for targetm.calls.promote_function_return and
and use promote_function_mode.
(emit_library_call_value_1): Use promote_function_mode, fix bug
where promote_mode was passed FOR_CALL == 0 for a return value in an
assertion.
* cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
* explow.c (promote_function_mode, promote_decl_mode): New.
(promote_mode): Keep only the FOR_CALL == 0 case.
* combine.c (setup_incoming_promotion): Remove test of
promote_function_args.  Use promote_function_mode.
* stmt.c (expand_value_return): Use promote_decl_mode.
(expand_decl): Use promote_decl_mode.

* expr.c (store_constructor): Use promote_decl_mode.  Remove
now write-only variable unsignedp.
(expand_expr_real_1): Use promote_decl_mode.
* expr.h (promote_function_mode, promote_decl_mode): New.
(promote_mode): Remove last argument.
* function.c (assign_temp): Drop last argument of promote_mode.
(assign_parm_find_data_types): Use promote_function_mode.
(assign_parm_setup_reg): Likewise.
(expand_function_end): Use promote_function_mode.
* calls.c (initialize_argument_information): Use promote_function_mode.
(precompute_arguments): Use promote_mode instead of checking if
only PROMOTE_FUNCTION_MODE is defined.
(expand_call): When making sibcall decisions, use promote_function_mode.
Below, remove an if for targetm.calls.promote_function_return and
and use promote_function_mode.
(emit_library_call_value_1): Use promote_function_mode, fix bug
where promote_mode was passed FOR_CALL == 0 for a return value in an
assertion.
* cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
* explow.c (promote_function_mode, promote_decl_mode): New.
(promote_mode): Keep only the FOR_CALL == 0 case.
* combine.c (setup_incoming_promotion): Remove test of
promote_function_args.  Use promote_function_mode.
* stmt.c (expand_value_return): Use promote_decl_mode.
(expand_decl): Use promote_decl_mode.

* explow.c (promote_function_mode): Just call the target hook.
* targhooks.c (default_promote_function_mode,
default_promote_function_mode_always_promote): New.
* targhooks.h (default_promote_function_mode,
default_promote_function_mode_always_promote): Declare.
* target.h (promote_function_args, promote_function_return): Remove.
(promote_function_mode): New.
* target-def.h (TARGET_PROMOTE_FUNCTION_ARGS,
TARGET_PROMOTE_FUNCTION_RETURN): Remove.
(TARGET_PROMOTE_FUNCTION_MODE): New.
(TARGET_CALLS): Adjust.
* system.h (TARGET_PROMOTE_FUNCTION_ARGS,
TARGET_PROMOTE_FUNCTION_RETURN, PROMOTE_FUNCTION_MODE): Poison.

* config/s390/s390.h (PROMOTE_FUNCTION_MODE): Move...
* config/s390/s390.c (s390_promote_function_mode): ... here,
with pointer handling.
(TARGET_PROMOTE_FUNCTION_MODE): Define.
(TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.

* config/sparc/sparc.h (PROMOTE_FUNCTION_MODE): Move...
* config/sparc/sparc.c (sparc_promote_function_mode): ... here,
with pointer handling.
(TARGET_PROMOTE_FUNCTION_MODE): Define.
(TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.

* config/sh/sh-protos.h (sh_promote_function_mode): New.
* config/sh/sh.c (sh_promote_function_mode): New.
(TARGET_PROMOTE_FUNCTION_MODE): Define.
(TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.

* config/cris/cris.h (PROMOTE_FUNCTION_MODE): Move...
* config/cris/cris.c (cris_promote_function_mode): ... here.
(TARGET_PROMOTE_FUNCTION_MODE): Define.
(TARGET_PROMOTE_FUNCTION_ARGS): Remove.

* config/mmix/mmix.h (PROMOTE_FUNCTION_MODE): Move...
* config/mmix/mmix.c (mmix_promote_function_mode): ... here.
(TARGET_PROMOTE_FUNCTION_MODE): Define.
(TARGET_PROMOTE_FUNCTION_ARGS): Remove.

* config/arm/arm.h (PROMOTE_FUNCTION_MODE): Move...
* config/arm/arm.c (arm_promote_function_mode): ... here, without complex
type handling.
(TARGET_PROMOTE_FUNCTION_MODE): Define.
(TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.

* config/pa/pa.c (pa_promote_function_mode): New.
(TARGET_PROMOTE_FUNCTION_MODE): Define.
(TARGET_PROMOTE_FUNCTION_RETURN): Remove.

* config/alpha/alpha.c (TARGET_PROMOTE_FUNCTION_ARGS,
TARGET_PROMOTE_FUNCTION_RETURN): Remove.
(TARGET_PROMOTE_FUNCTION_MODE): Define equivalently.
* config/xtensa/xtensa.c: Likewise.
* config/stormy16/stormy16.c: Likewise.
* config/iq2000/iq2000.c: Likewise.
* config/rs6000/rs6000.c: Likewise.
* config/picochip/picochip.c: Likewise.
* config/arc/arc.c: Likewise.
* config/mcore/mcore.c: Likewise.
* config/score/score.c: Likewise.
* config/mips/mips.c: Likewise.
* config/bfin/bfin.c: Likewise.
* config/ia64/ia64.c: Likewise (disabled though).

* config/frv/frv.h: Remove pointless remark.

* doc/tm.texi (PROMOTE_FUNCTION_MODE,
TARGET_PROMOTE_FUNCTION_ARGS,
TARGET_PROMOTE_FUNCTION_RETURN): Consolidate into...
(TARGET_PROMOTE_FUNCTION_MODE): ... this.

From-SVN: r150336

15 years agoRename -fgraphite-force-parallel to -floop-parallelize-all.
Sebastian Pop [Sat, 1 Aug 2009 18:22:58 +0000 (18:22 +0000)]
Rename -fgraphite-force-parallel to -floop-parallelize-all.

2009-08-01  Sebastian Pop  <sebastian.pop@amd.com>

* doc/invoke.texi (-fgraphite-force-parallel): Renamed
-floop-parallelize-all.
* toplev.c (process_options): Rename flag_graphite_force_parallel to
flag_loop_parallelize_all.
* tree-ssa-loop.c (gate_graphite_transforms): Same.
* graphite.c (graphite_transform_loops): Same.
* common.opt: Same.
* graphite-poly.c (apply_poly_transforms): Same.

* gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: Rename
-fgraphite-force-parallel to -floop-parallelize-all.

From-SVN: r150334

15 years agore PR fortran/40011 (Problems with -fwhole-file)
Paul Thomas [Sat, 1 Aug 2009 13:45:12 +0000 (13:45 +0000)]
re PR fortran/40011 (Problems with -fwhole-file)

2009-08-01  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/40011
* error.c : Add static flag 'warnings_not_errors'.
(gfc_error): If 'warnings_not_errors' is set, branch to code
from gfc_warning.
(gfc_clear_error): Reset 'warnings_not_errors'.
(gfc_errors_to_warnings): New function.
* options.c (gfc_post_options): If pedantic and flag_whole_file
change the latter to a value of 2.
* parse.c (parse_module): Add module namespace to gsymbol.
(resolve_all_program_units): New function.
(clean_up_modules): New function.
(translate_all_program_units): New function.
(gfc_parse_file): If whole_file, do not clean up module right
away and add derived types to namespace derived types. In
addition, call the three new functions above.
* resolve.c (not_in_recursive): New function.
(not_entry_self_reference): New function.
(resolve_global_procedure): Symbol must not be IFSRC_UNKNOWN,
procedure must not be in the course of being resolved and
must return false for the two new functions. Pack away the
current derived type list before calling gfc_resolve for the
gsymbol namespace.  It is unconditionally an error if the ranks
of the reference and ther procedure do not match. Convert
errors to warnings during call to gfc_procedure_use if not
pedantic or legacy.
(gfc_resolve): Set namespace resolved flag to -1 during
resolution and store current cs_base.
* trans-decl.c (gfc_get_symbol_decl): If whole_file compilation
substitute a use associated variable, if it is available in a
gsymbolnamespace.
(gfc_get_extern_function_decl): If the procedure is use assoc,
do not attempt to find it in a gsymbol because it could be an
interface. If the symbol exists in a module namespace, return
its backend_decl.
* trans-expr.c (gfc_trans_scalar_assign): If a derived type
assignment, set the rhs TYPE_MAIN_VARIANT to that of the rhs.
* trans-types.c (copy_dt_decls_ifequal): Add 'from_gsym' as a
boolean argument. Copy component backend_decls directly if the
components are derived types and from_gsym is true.
(gfc_get_derived_type): If whole_file copy the derived type from
the module if it is use associated, otherwise, if can be found
in another gsymbol namespace, use the existing derived type as
the TYPE_CANONICAL and build normally.
* gfortran.h : Add derived_types and resolved fields to
gfc_namespace. Include prototype for gfc_errors_to_warnings.

2009-08-01  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/40011
* gfortran.dg/whole_file_7.f90: New test.
* gfortran.dg/whole_file_8.f90: New test.
* gfortran.dg/whole_file_9.f90: New test.
* gfortran.dg/whole_file_10.f90: New test.
* gfortran.dg/whole_file_11.f90: New test.
* gfortran.dg/whole_file_12.f90: New test.
* gfortran.dg/whole_file_13.f90: New test.
* gfortran.dg/whole_file_14.f90: New test.

From-SVN: r150333

15 years agoupdate license
Jason Merrill [Sat, 1 Aug 2009 03:56:47 +0000 (23:56 -0400)]
update license

From-SVN: r150328

15 years agocall.c (convert_class_to_reference): Binding an lvalue to an rvalue reference is...
Jason Merrill [Sat, 1 Aug 2009 02:26:42 +0000 (22:26 -0400)]
call.c (convert_class_to_reference): Binding an lvalue to an rvalue reference is bad.

* call.c (convert_class_to_reference): Binding an lvalue to an
rvalue reference is bad.  If the user-defined conversion is bad,
set bad_p before merging conversions.
(maybe_handle_ref_bind): Don't push down bad_p.
(reference_binding): Binding an lvalue to an rvalue reference is bad.
(convert_like_real): Give a helpful error about binding lvalue
to rvalue reference.
(reference_related_p): No longer static.
* typeck.c (build_typed_address): New.
(build_static_cast_1): Add static_cast from lvalue to &&.
* cp-tree.h: Adjust.

* include/bits/move.h (forward): Implement as in N2835.
(move): Implement as in N2831.
* include/std/istream (rvalue stream operator>>): New.
* include/std/ostream (rvalue stream operator<<): New.

Co-Authored-By: Douglas Gregor <doug.gregor@gmail.com>
From-SVN: r150327

15 years agoforward_list.h (splice_after): Use forward.
Jason Merrill [Sat, 1 Aug 2009 02:26:32 +0000 (22:26 -0400)]
forward_list.h (splice_after): Use forward.

* include/bits/forward_list.h (splice_after): Use forward.
(merge): Likewise.
* include/bits/stl_iterator.h (move_iterator::operator*): Use move.
(move_iterator::operator[]): Use move.
* include/bits/stl_list.h (insert): Use move.
* include/std/thread (_Callable constructor): Use forward.
* include/std/tuple: Don't specify explicit template args to move.

From-SVN: r150326

15 years agocall.c (reference_binding): Rename lvalue_p to is_lvalue.
Jason Merrill [Sat, 1 Aug 2009 02:26:21 +0000 (22:26 -0400)]
call.c (reference_binding): Rename lvalue_p to is_lvalue.

* call.c (reference_binding): Rename lvalue_p to is_lvalue.
Do direct binding of "rvalues" in memory to rvalue references.
* tree.c (lvalue_p_1): Can't be both non-addressable lvalue and
"rvalue" in memory.
* typeck.c (build_static_cast_1): Do direct binding of memory
"rvalues" to rvalue references.
* cvt.c (cp_fold_convert): New.
* cp-tree.h: Declare it.

From-SVN: r150325

15 years agotypeck.c (build_address): Do fold away ADDR_EXPR of INDIRECT_REF.
Jason Merrill [Sat, 1 Aug 2009 02:26:13 +0000 (22:26 -0400)]
typeck.c (build_address): Do fold away ADDR_EXPR of INDIRECT_REF.

* typeck.c (build_address): Do fold away ADDR_EXPR of INDIRECT_REF.
* tree.c (rvalue): Use cp_build_qualified_type, not TYPE_MAIN_VARIANT.

From-SVN: r150324

15 years agoDaily bump.
GCC Administrator [Sat, 1 Aug 2009 00:16:41 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r150323

15 years agore PR tree-optimization/40914 (ipa_analyze_call_uses fails to handle ptrmemfunc_vbit_...
Richard Earnshaw [Fri, 31 Jul 2009 21:56:28 +0000 (21:56 +0000)]
re PR tree-optimization/40914 (ipa_analyze_call_uses fails to handle ptrmemfunc_vbit_in_delta)

PR tree-optimization/40914
* ipa-prop.c (ipa_get_ptr_load_param): New argument use_delta,
if set, then check the delta field of the PMF record.
(ipa_get_stmt_member_ptr_load_param): Propagate new param use_delta.
(ipa_analyze_call_uses): Handle machines where the vbit for a PMF
call is stored in the delta.

From-SVN: r150319

15 years agomips.md (*clear_upper32_dext): New pattern.
Adam Nemet [Fri, 31 Jul 2009 15:47:20 +0000 (15:47 +0000)]
mips.md (*clear_upper32_dext): New pattern.

* config/mips/mips.md (*clear_upper32_dext): New pattern.

testsuite/
* gcc.target/mips/ext-4.c: New test.

From-SVN: r150316

15 years agobsd.h (ASM_BYTE): New define.
Uros Bizjak [Fri, 31 Jul 2009 13:41:43 +0000 (15:41 +0200)]
bsd.h (ASM_BYTE): New define.

* config/i386/bsd.h (ASM_BYTE): New define.
* config/i386/darwin.h (ASM_BYTE): Rename from ASM_BYTE_OP.
* config/i386/att.h (ASM_BYTE): New define. Use ASM_BYTE instead of
.byte.  Use fputs or putc instead of fprintf where appropriate.
* config/i386/i386-interix.h: Use ASM_BYTE instead of .byte.  Use
fputs or putc instead of fprintf where appropriate.
* config/i386/i386elf.h: Ditto.
* config/i386/sysv4.h: Ditto.

* config/i386/i386.c (TARGET_ASM_BYTE_OP): New define.
* config/i386/i386.md (x86_sahf_1): Use ASM_BYTE instead of .byte.
(*tls_global_dynamic_64): Ditto.

From-SVN: r150315

15 years agoenable SH libgloss build
Christian Bruel [Fri, 31 Jul 2009 12:51:10 +0000 (14:51 +0200)]
enable SH libgloss build

From-SVN: r150314

15 years agoMakefile.am: Don't set SECTION_FLAGS with @SECTION_FLAGS@.
Kaz Kojima [Fri, 31 Jul 2009 12:29:33 +0000 (12:29 +0000)]
Makefile.am: Don't set SECTION_FLAGS with @SECTION_FLAGS@.

* Makefile.am: Don't set SECTION_FLAGS with @SECTION_FLAGS@.
Don't set IEEE_FLAGS with @IEEE_FLAGS@.
* Makefile.in: Regenerate.

From-SVN: r150313

15 years agoPR libstdc++/40912 (partial)
Paolo Carlini [Fri, 31 Jul 2009 12:19:26 +0000 (12:19 +0000)]
PR libstdc++/40912 (partial)

2009-07-31  Paolo Carlini  <paolo.carlini@oracle.com>

PR libstdc++/40912 (partial)
* include/std/random: Disable the facility if <stdint.h> is not
available.

From-SVN: r150312

15 years agoFix address cost for plus reg const_int.
Ramana Radhakrishnan [Fri, 31 Jul 2009 08:26:58 +0000 (08:26 +0000)]
Fix address cost for plus reg const_int.

2009-07-31  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>

* config/arm/arm.c (arm_arm_address_cost): Fix typo.
Remove dead code for MINUS.

From-SVN: r150309

15 years agoTweak ABI & add moxie-uclinux target.
Anthony Green [Fri, 31 Jul 2009 05:11:21 +0000 (05:11 +0000)]
Tweak ABI & add moxie-uclinux target.

From-SVN: r150307

15 years agosh.md (UNSPECV_SP_SWITCH_B): New.
DJ Delorie [Fri, 31 Jul 2009 04:59:45 +0000 (00:59 -0400)]
sh.md (UNSPECV_SP_SWITCH_B): New.

* config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
(UNSPECV_SP_SWITCH_E): New.
(sp_switch_1): Change to an unspec.
(sp_switch_2): Change to an unspec.  Don't use post-inc when we
replace $r15.
* config/sh/sh.c (sh_expand_prologue): Use the constant pool to
reference the new stack's address

From-SVN: r150306

15 years agopr33615.C: Fix pattern for lim.
Sebastian Pop [Fri, 31 Jul 2009 04:50:35 +0000 (04:50 +0000)]
pr33615.C: Fix pattern for lim.

2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>

* g++.dg/tree-ssa/pr33615.C: Fix pattern for lim.

From-SVN: r150305

15 years agoFix patterns in lim and dceloop testcases.
Sebastian Pop [Fri, 31 Jul 2009 02:50:11 +0000 (02:50 +0000)]
Fix patterns in lim and dceloop testcases.

2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>

* gcc.dg/tree-ssa/20050314-1.c: Fix patterns for lim and dceloop.
* gcc.dg/tree-ssa/loop-32.c: Same.
* gcc.dg/tree-ssa/loop-33.c: Same.
* gcc.dg/tree-ssa/loop-34.c: Same.
* gcc.dg/tree-ssa/loop-35.c: Same.
* gcc.dg/tree-ssa/loop-7.c: Same.
* gcc.dg/tree-ssa/pr23109.c: Same.
* gcc.dg/tree-ssa/restrict-2.c: Same.
* gcc.dg/tree-ssa/restrict-3.c: Same.
* gcc.dg/tree-ssa/ssa-lim-1.c: Same.
* gcc.dg/tree-ssa/ssa-lim-2.c: Same.
* gcc.dg/tree-ssa/ssa-lim-3.c: Same.
* gcc.dg/tree-ssa/ssa-lim-6.c: Same.
* gcc.dg/tree-ssa/structopt-1.c: Same.
* gcc.dg/vect/dump-tree-dceloop-pr26359.c: Same.
* gfortran.dg/pr32921.f: Same.

From-SVN: r150304

15 years agoAdd new testcases.
Sebastian Pop [Fri, 31 Jul 2009 02:49:01 +0000 (02:49 +0000)]
Add new testcases.

2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>

* gcc.dg/graphite/graphite_autopar/force-parallel-1.c: New.
* gcc.dg/graphite/graphite_autopar/force-parallel-2.c: New.
* gcc.dg/graphite/graphite_autopar/force-parallel-3.c: New.
* gcc.dg/graphite/graphite_autopar/force-parallel-4.c: New.
* gcc.dg/graphite/graphite_autopar/force-parallel-5.c: New.
* gcc.dg/graphite/graphite_autopar/force-parallel-6.c: New.
* gcc.dg/graphite/graphite_autopar/force-parallel-7.c: New.
* gcc.dg/graphite/graphite_autopar/force-parallel-8.c: New.
* gcc.dg/graphite/graphite_autopar/force-parallel-9.c: New.
* gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: New.
* gcc.dg/graphite/id-1.c: New.
* gcc.dg/graphite/id-10.c: New.
* gcc.dg/graphite/id-11.c: New.
* gcc.dg/graphite/id-12.c: New.
* gcc.dg/graphite/id-13.c: New.
* gcc.dg/graphite/id-14.c: New.
* gcc.dg/graphite/id-15.c: New.
* gcc.dg/graphite/id-2.c: New.
* gcc.dg/graphite/id-3.c: New.
* gcc.dg/graphite/id-4.c: New.
* gcc.dg/graphite/id-5.c: New.
* gcc.dg/graphite/id-6.c: New.
* gcc.dg/graphite/id-7.c: New.
* gcc.dg/graphite/id-8.c: New.
* gcc.dg/graphite/id-9.c: New.
* gcc.dg/graphite/interchange-0.c: New.
* gcc.dg/graphite/interchange-1.c: New.
* gcc.dg/graphite/interchange-2.c: New.
* gcc.dg/graphite/interchange-3.c: New.
* gcc.dg/graphite/interchange-4.c: New.
* gcc.dg/graphite/interchange-5.c: New.
* gcc.dg/graphite/interchange-6.c: New.
* gcc.dg/graphite/interchange-7.c: New.
* gcc.dg/graphite/interchange-8.c: New.
* gcc.dg/graphite/pr35356-1.c: New.
* gcc.dg/graphite/pr35356-2.c: New.
* gcc.dg/graphite/pr35356-3.c: New.
* gcc.dg/graphite/pr40157.c: New.
* gcc.dg/graphite/run-id-1.c: New.
* gcc.dg/graphite/scop-20.c: New.
* gcc.dg/graphite/scop-21.c: New.
* gfortran.dg/graphite/id-1.f90: New.
* gfortran.dg/graphite/id-10.f90: New.
* gfortran.dg/graphite/id-11.f: New.
* gfortran.dg/graphite/id-12.f: New.
* gfortran.dg/graphite/id-13.f: New.
* gfortran.dg/graphite/id-14.f: New.
* gfortran.dg/graphite/id-15.f: New.
* gfortran.dg/graphite/id-16.f: New.
* gfortran.dg/graphite/id-5.f: New.
* gfortran.dg/graphite/id-6.f: New.
* gfortran.dg/graphite/id-7.f: New.
* gfortran.dg/graphite/id-8.f: New.
* gfortran.dg/graphite/id-9.f: New.
* gfortran.dg/graphite/interchange-1.f: New.
* gfortran.dg/graphite/interchange-2.f: New.

From-SVN: r150303

15 years agoModify the testsuite for the new Graphite.
Sebastian Pop [Fri, 31 Jul 2009 02:45:54 +0000 (02:45 +0000)]
Modify the testsuite for the new Graphite.

2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>

* gcc.dg/graphite/graphite.exp: Implement an automatic selection of
flags based on the name of the testcase.
* gfortran.dg/graphite/graphite.exp: Same.

* gcc.dg/graphite/block-0.c: Adjusted.
* gcc.dg/graphite/block-1.c: Adjusted.
* gcc.dg/graphite/block-2.c: Adjusted.
* gcc.dg/graphite/block-3.c: Adjusted.
* gcc.dg/graphite/block-4.c: Adjusted.
* gcc.dg/graphite/block-5.c: Adjusted.
* gcc.dg/graphite/block-6.c: Adjusted.
* gcc.dg/graphite/pr37485.c: Adjusted.
* gcc.dg/graphite/pr37684.c: Adjusted.
* gcc.dg/graphite/pr37828.c: Adjusted.
* gcc.dg/graphite/pr37883.c: Adjusted.
* gcc.dg/graphite/pr37928.c: Adjusted.
* gcc.dg/graphite/pr37943.c: Adjusted.
* gcc.dg/graphite/pr38409.c: Adjusted.
* gcc.dg/graphite/pr38498.c: Adjusted.
* gcc.dg/graphite/pr38559.c: Adjusted.
* gcc.dg/graphite/pr39335.c: Adjusted.
* gcc.dg/graphite/pr39335_1.c: Adjusted.
* gcc.dg/graphite/scop-0.c: Adjusted.
* gcc.dg/graphite/scop-1.c: Adjusted.
* gcc.dg/graphite/scop-10.c: Adjusted.
* gcc.dg/graphite/scop-11.c: Adjusted.
* gcc.dg/graphite/scop-12.c: Adjusted.
* gcc.dg/graphite/scop-13.c: Adjusted.
* gcc.dg/graphite/scop-14.c: Adjusted.
* gcc.dg/graphite/scop-15.c: Adjusted.
* gcc.dg/graphite/scop-16.c: Adjusted.
* gcc.dg/graphite/scop-17.c: Adjusted.
* gcc.dg/graphite/scop-18.c: Adjusted.
* gcc.dg/graphite/scop-19.c: Adjusted.
* gcc.dg/graphite/scop-2.c: Adjusted.
* gcc.dg/graphite/scop-3.c: Adjusted.-
* gcc.dg/graphite/scop-4.c: Adjusted.
* gcc.dg/graphite/scop-5.c: Adjusted.
* gcc.dg/graphite/scop-6.c: Adjusted.
* gcc.dg/graphite/scop-7.c: Adjusted.
* gcc.dg/graphite/scop-8.c: Adjusted.
* gcc.dg/graphite/scop-9.c: Adjusted.
* gcc.dg/graphite/scop-matmult.c: Adjusted.
* gfortran.dg/graphite/block-1.f90: Adjusted.
* gfortran.dg/graphite/block-2.f: Adjusted.
* gfortran.dg/graphite/block-3.f90: Adjusted.
* gfortran.dg/graphite/block-4.f90: Adjusted.
* gfortran.dg/graphite/id-2.f90: Adjusted.
* gfortran.dg/graphite/id-3.f90: Adjusted.
* gfortran.dg/graphite/id-4.f90: Adjusted.
* gfortran.dg/graphite/pr37852.f90: Adjusted.
* gfortran.dg/graphite/pr37857.f90: Adjusted.
* gfortran.dg/graphite/pr37980.f90: Adjusted.
* gfortran.dg/graphite/pr38083.f90: Adjusted.
* gfortran.dg/graphite/pr38953.f90: Adjusted.
* gfortran.dg/graphite/scop-1.f: Adjusted.

From-SVN: r150302

15 years agoNew implementation of Graphite.
Sebastian Pop [Fri, 31 Jul 2009 02:44:28 +0000 (02:44 +0000)]
New implementation of Graphite.

2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>

* Makefile.in (OBJS-common): Added dependence on graphite-blocking.o,
graphite-clast-to-gimple.o, graphite-dependences.o,
graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o.
(graphite-blocking.o,
graphite-clast-to-gimple.o, graphite-dependences.o,
graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o): New.
* cfgloop.c (alloc_loop): Set loop->can_be_parallel to false.
* cfgloop.h (struct loop): Add can_be_parallel field.
* common.opt (fgraphite-identity): Moved up.
(fgraphite-force-parallel): New flag.
* graphite.c: Rewrite.
* graphite.h: Rewrite.
* passes.c (init_optimization_passes): Schedule a pass of DCE and LIM
after Graphite.
* toplev.c (graphite_out_file): New file descriptor.
(graphite_in_file): New.
(process_options): flag_graphite_force_parallel cannot be used without
Graphite.
* tree-ssa-loop.c: Include toplev.h.
(gate_graphite_transforms): Enable flag_graphite for
flag_graphite_force_parallel.

From-SVN: r150301

15 years agoNew Graphite files.
Sebastian Pop [Fri, 31 Jul 2009 02:43:11 +0000 (02:43 +0000)]
New Graphite files.

2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>

* ChangeLog.graphite: New.
* graphite-blocking.c: New.
* graphite-clast-to-gimple.c: New.
* graphite-clast-to-gimple.h: New.
* graphite-dependences.c: New.
* graphite-dependences.h: New.
* graphite-interchange.c: New.
* graphite-poly.c: New.
* graphite-poly.h: New.
* graphite-ppl.c: New.
* graphite-ppl.h: New.
* graphite-scop-detection.c: New.
* graphite-scop-detection.h: New.
* graphite-sese-to-poly.c: New.
* graphite-sese-to-poly.h: New.
* sese.c: New.
* sese.h: New.

From-SVN: r150300

15 years agoImplement evolution_function_right_is_integer_cst.
Sebastian Pop [Fri, 31 Jul 2009 02:39:06 +0000 (02:39 +0000)]
Implement evolution_function_right_is_integer_cst.

2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>

* tree-chrec.c (evolution_function_right_is_integer_cst): New.
* tree-chrec.h (evolution_function_right_is_integer_cst): Declared.

From-SVN: r150299

15 years agoMake scev_is_linear_expression return false if the evolution is not affine multivariate.
Sebastian Pop [Fri, 31 Jul 2009 02:38:13 +0000 (02:38 +0000)]
Make scev_is_linear_expression return false if the evolution is not affine multivariate.

2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>

* tree-chrec.c (operator_is_linear): Handle BIT_NOT_EXPR.
(scev_is_linear_expression): Return false if the evolution is not
affine multivariate.

From-SVN: r150298

15 years agoAdd a new driver to data reference analysis.
Sebastian Pop [Fri, 31 Jul 2009 02:37:11 +0000 (02:37 +0000)]
Add a new driver to data reference analysis.

2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>

* tree-data-ref.c (graphite_find_data_references_in_stmt): New.
* tree-data-ref.h (graphite_find_data_references_in_stmt): Declared.

From-SVN: r150297

15 years agotree-data-ref.c (debug_data_references): New.
Sebastian Pop [Fri, 31 Jul 2009 02:36:05 +0000 (02:36 +0000)]
tree-data-ref.c (debug_data_references): New.

2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>

* tree-data-ref.c (debug_data_references): New.
(debug_data_reference): New.
* tree-data-ref.h (debug_data_references): Declared.
(debug_data_reference): Declared.

From-SVN: r150296

15 years agoRemove unused function and field in data_reference.
Sebastian Pop [Fri, 31 Jul 2009 02:35:02 +0000 (02:35 +0000)]
Remove unused function and field in data_reference.

2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>

* tree-data-ref.c (stmt_simple_memref_p: Removed.
* tree-data-ref.h (scop_p): Removed.
(struct data_reference): Remove field scop.
(DR_SCOP): Removed.
(stmt_simple_memref_p): Removed.

From-SVN: r150295

15 years agoFix typo in previous patch.
DJ Delorie [Fri, 31 Jul 2009 02:34:49 +0000 (22:34 -0400)]
Fix typo in previous patch.

From-SVN: r150294

15 years agoLeave the loop_latch basic block empty.
Sebastian Pop [Fri, 31 Jul 2009 02:33:46 +0000 (02:33 +0000)]
Leave the loop_latch basic block empty.

2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>

* cfgloop.h (create_empty_loop_on_edge): Pass an extra argument.
* cfgloopmanip.c (create_empty_loop_on_edge): Leave the loop_latch
basic block empty.

From-SVN: r150293

15 years agoDocument -fgraphite-force-parallel.
Sebastian Pop [Fri, 31 Jul 2009 02:32:24 +0000 (02:32 +0000)]
Document -fgraphite-force-parallel.

2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>

* doc/invoke.texi (-fgraphite-force-parallel): Documented.

From-SVN: r150292

15 years agoDocument -fgraphite-identity.
Sebastian Pop [Fri, 31 Jul 2009 02:31:18 +0000 (02:31 +0000)]
Document -fgraphite-identity.

2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>

* doc/invoke.texi (-fgraphite-identity): Documented.

From-SVN: r150291

15 years agoReturn unknow from scev instantiation if the result is not above instantiate_below.
Sebastian Pop [Fri, 31 Jul 2009 02:30:03 +0000 (02:30 +0000)]
Return unknow from scev instantiation if the result is not above instantiate_below.

2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>

* tree-scalar-evolution.c: Fix comment.
(instantiate_scev_1): Return unknow from scev instantiation if the
result is not above instantiate_below.

From-SVN: r150290

15 years agotree-scalar-evolution.c (compute_overall_effect_of_inner_loop): Not static anymore.
Sebastian Pop [Fri, 31 Jul 2009 02:28:50 +0000 (02:28 +0000)]
tree-scalar-evolution.c (compute_overall_effect_of_inner_loop): Not static anymore.

2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>

* tree-scalar-evolution.c (compute_overall_effect_of_inner_loop): Not
static anymore.  Instantiate the symbols that may have been introduced
by chrec_apply.
* tree-scalar-evolution.h (compute_overall_effect_of_inner_loop):
Declared.

From-SVN: r150289

15 years agomep.c (mep_asm_init_sections): Add section flags and ..vliw directive to VLIW sections.
DJ Delorie [Fri, 31 Jul 2009 01:36:12 +0000 (21:36 -0400)]
mep.c (mep_asm_init_sections): Add section flags and ..vliw directive to VLIW sections.

* config/mep/mep.c (mep_asm_init_sections): Add section flags and
.vliw directive to VLIW sections.

From-SVN: r150288

15 years agopolytypes.c: Adjust test for new notes in warnings added in rev 141298.
Doug Kwan [Fri, 31 Jul 2009 00:17:46 +0000 (00:17 +0000)]
polytypes.c: Adjust test for new notes in warnings added in rev 141298.

2009-07-30  Doug Kwan  <dougkwan@google.com>

* gcc.target/arm/neon/polytypes.c: Adjust test for new notes
in warnings added in rev 141298.

From-SVN: r150287

15 years agoDaily bump.
GCC Administrator [Fri, 31 Jul 2009 00:16:52 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r150286

15 years agooptions.exp: Use "!=" instead of "ne".
John David Anglin [Thu, 30 Jul 2009 23:58:47 +0000 (23:58 +0000)]
options.exp: Use "!=" instead of "ne".

* lib/options.exp: Use "!=" instead of "ne".

From-SVN: r150283

15 years agovector-4.c: Add -fno-common option on hppa*-*-hpux* (32-bit).
John David Anglin [Thu, 30 Jul 2009 23:12:31 +0000 (23:12 +0000)]
vector-4.c: Add -fno-common option on hppa*-*-hpux* (32-bit).

* gcc.dg/vector-4.c: Add -fno-common option on hppa*-*-hpux* (32-bit).

From-SVN: r150282

15 years agoucnid-11.c: Skip on hppa*-*-hpux* (32-bit).
John David Anglin [Thu, 30 Jul 2009 22:56:14 +0000 (22:56 +0000)]
ucnid-11.c: Skip on hppa*-*-hpux* (32-bit).

* gcc.dg/ucnid-11.c: Skip on hppa*-*-hpux* (32-bit).
* gcc.dg/ucnid-12.c: Likewise.

From-SVN: r150281

15 years agoconfigure.host: Define ieee_flags and set it to -mieee for sh.
Kaz Kojima [Thu, 30 Jul 2009 22:56:08 +0000 (22:56 +0000)]
configure.host: Define ieee_flags and set it to -mieee for sh.

* configure.host: Define ieee_flags and set it to -mieee for sh.
* configure.ac: Set IEEE_FLAGS with ieee_flags.
* Makefile.am: Add IEEE_FLAGS to AM_CFLAGS.
* configure: Regenerate.
* Makefile.in: Regenerate.

From-SVN: r150280

15 years agore PR libstdc++/40919 (FAIL: 26_numerics/headers/cmath/c99_classification_macros_c.cc)
John David Anglin [Thu, 30 Jul 2009 22:34:31 +0000 (22:34 +0000)]
re PR libstdc++/40919 (FAIL: 26_numerics/headers/cmath/c99_classification_macros_c.cc)

PR libstdc++/40919
* testsuite/26_numerics/headers/cmath/c99_classification_macros_c.cc:
xfail on darwin[3-9]*.

From-SVN: r150278

15 years agoMakefile.in (AUTOCONF, [...]): New variables.
Ralf Wildenhues [Thu, 30 Jul 2009 22:33:49 +0000 (22:33 +0000)]
Makefile.in (AUTOCONF, [...]): New variables.

fixincludes/
* Makefile.in (AUTOCONF, AUTOHEADER, ACLOCAL, ACLOCAL_AMFLAGS):
New variables.
($(srcdir)/configure, $(srcdir)/config.h.in, $(srcdir)/aclocal.m4):
Use them.

gcc/
* Makefile.in (AUTOCONF, ACLOCAL, ACLOCAL_AMFLAGS, aclocal_deps):
New variables.
($(srcdir)/configure, $(srcdir)/aclocal.m4): New rules.
(AUTOHEADER): New variable.
($(srcdir)/cstamp-h.in): Use it.

gnattools/
* Makefile.in (AUTOCONF, configure_deps): New variables.
($(srcdir)/configure): Use them.

libada/
* Makefile.in (AUTOCONF, configure_deps): New variables.
($(srcdir)/configure)): Use them.  Also depend on multi.m4.

libgcc/
* configure.ac: Add snippet for maintainer-mode.
* configure: Regenerate.
* Makefile.in (AUTOCONF, configure_deps): New variables.
($(srcdir)/configure)): New rule, active only with maintainer
mode turned on.

libiberty/
* Makefile.in (AUTOCONF, configure_deps): New variables.
($(srcdir)/configure): New rule, active only in maintainer mode.

libobjc/
* Makefile.in (AUTOCONF, ACLOCAL, ACLOCAL_AMFLAGS, aclocal_deps):
New variables.
($(srcdir)/configure, $(srcdir)/aclocal.m4): New rules.

intl/
* Makefile.in (aclocal_deps): New variable.
($(srcdir)/aclocal.m4): Use it, for portable makefile syntax.

libdecnumber/
* Makefile.in (aclocal_deps): New variable.
($(srcdir)/aclocal.m4): Use it, for portable makefile syntax.

From-SVN: r150277

15 years agore PR libstdc++/40917 (FAIL: ext/array_allocator/check_delete.cc (test for excess...
Paolo Carlini [Thu, 30 Jul 2009 21:02:44 +0000 (21:02 +0000)]
re PR libstdc++/40917 (FAIL: ext/array_allocator/check_delete.cc (test for excess errors))

2009-07-30  Paolo Carlini  <paolo.carlini@oracle.com>

PR libstdc++/40917
* testsuite/util/replacement_memory_operators.h: Add missing includes,
tweak qualifications.

2009-07-30  Paolo Carlini  <paolo.carlini@oracle.com>

PR libstdc++/40916
* testsuite/23_containers/list/modifiers/swap/1.cc: Fix include order.
* testsuite/23_containers/list/modifiers/swap/2.cc: Likewise.
* testsuite/23_containers/list/modifiers/swap/2.cc: Likewise.

From-SVN: r150272

15 years agoAdd patch 5/6 for full power7/VSX support
Michael Meissner [Thu, 30 Jul 2009 20:48:17 +0000 (20:48 +0000)]
Add patch 5/6 for full power7/VSX support

Co-Authored-By: Pat Haugen <pthaugen@us.ibm.com>
Co-Authored-By: Revital Eres <eres@il.ibm.com>
From-SVN: r150271

15 years agoextensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Do not expand for Autoconf 2.62 or newer.
Ralf Wildenhues [Thu, 30 Jul 2009 19:41:13 +0000 (19:41 +0000)]
extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Do not expand for Autoconf 2.62 or newer.

config/
* extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Do not expand
for Autoconf 2.62 or newer.
* tls.m4 (GCC_CHECK_TLS): Fix m4 quotation.
* no-executables.m4 (_AC_COMPILER_EXEEXT): Fix m4 quotation.
* override.m4 (m4_copy_force, m4_rename_force): Provide
macros if not defined.
(AC_PREREQ): Use m4_copy_force.

boehm-gc/
* configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.

libada/
* configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.

libffi/
* configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.

libgfortran/
* configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.

libgomp/
* configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.

libjava/
* configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.

libmudflap/
* configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.

libobjc/
* configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.

libssp/
* configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.

zlib/
* configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.

libstdc++-v3/
* acinclude.m4 (GLIBCXX_CONFIGURE): Use m4_rename_force.

From-SVN: r150269

15 years agoAdd source_location support to PHI arguments.
Andrew MacLeod [Thu, 30 Jul 2009 18:36:30 +0000 (18:36 +0000)]
Add source_location support to PHI arguments.

2009-07-29  Andrew MacLeod  <amacleod@redhat.com>

PR debug 26475
* tree-into-ssa.c (insert_phi_nodes_for, rewrite_add_phi_arguments): Set
location for phi arguments.
(rewrite_update_phi_arguments): Find locations for reaching defs.
* tree-ssa-threadupdate.c (create_edge_and_update_destination_phis):
Add location to add_phi_arg calls.
* tree-loop-districbution.c (update_phis_for_loop_copy): Add locations.
* tree-ssa-loop-manip.c (create_iv, add_exit_phis_edge,
split_loop_exit_edge, tree_transform_and_unroll_loop): Add locations.
* tree-tailcall.c (add_successor_phi_arg, eliminate_tail_call,
create_tailcall_accumulator, tree_optimize_tail_calls_1): Add locations.
* tree.h (struct phi_arg_d): Add location_t to PHI arguments.
* tree-phinodes.c (make_phi_node): Initialize location.
(resize_phi_node): Initialize location to UNKNOWN_LOCATION.
(add_phi_arg): Add location parameter.
(remove_phi_arg_num): Move location when moving phi argument.
* omp-low.c (expand_parallel_call, expand_omp_for_static_chunk): Set
location.
* tree-vect-loop-manip.c (slpeel_update_phis_for_duplicate_loop,
slpeel_update_phi_nodes_for_guard1,
slpeel_update_phi_nodes_for_guard2,
slpeel_tree_duplicate_loop_to_edge_cfg, set_prologue_iterations,
vect_loop_versioning): Set locations.
* tree-parloops.c (create_phi_for_local_result,
transform_to_exit_first_loop, create_parallel_loop): Add locations.
* gimple-pretty-print.c (dump_gimple_phi): Dump lineno's if present.
* tree-vect-loop.c (get_initial_def_for_induction,
vect_create_epilog_for_reduction, vect_finalize_reduction): Add
locations.
* tree-flow-inline.h (gimple_phi_arg_location): New.  Return locus.
(gimple_phi_arg_location_from_edge): New.  Return locus from an edge.
(gimple_phi_arg_set_location): New.  Set locus.
(gimple_phi_arg_has_location): New.  Check for locus.
(redirect_edge_var_map_location): New.  Return locus from var_map.
* tree-vect-data-refs.c (vect_setup_realignment): Set location.
* tree-ssa-phiopt.c (conditional_replacement): Set locus when
combining PHI arguments.
(cond_store_replacement): Set location.
* cfgexpand.c (gimple_assign_rhs_to_tree): Transfer locus if possible.
* grpahite.c (add_loop_exit_phis, add_guard_exit_phis,
scop_add_exit_phis_edge): Add locations.
* tree-cfgcleanup.c (remove_forwarder_block,
remove_forwarder_block_with_phi): Add locations.
* tree-ssa-pre.c (insert_into_preds_of_block): Add locations.
* tree-predcom.c (initialize_root_vars, initialize_root_vars_lm): Add
locations.
* tree-ssa-dce.c (forward_edge_to_pdom): Add locations.
* tree-ssa.c (redirect_edge_var_map_add, ssa_redirect_edge,
flush_pending_stmts): Add source location.
* lambda-code.c (perfect_nestify): Maintain location stack with argument
stack to preserve locations.
* tree-vect-stmts.c (vectorizable_load): Add location.
* tree-inline.c (copy_phis_for_bb): Copy locus.
(setup_one_parameter): Add call locus to inlined parameter stmts.
(initialize_inlined_parameters): Pass in call location as parameter
assignment locus.
(tree_function_versioning): Pass location to setup_one_parameter.
* tree-ssa-phiprop.c (phiprop_insert_phi): Set locations.
* tree-outof-ssa.c (struct _elim_graph): Add source_location vecs for
copy and edge lists.
(insert_partition_copy_on_edge, insert_value_copy_on_edge,
insert_rtx_to_part_on_edge, insert_part_to_rtx_on_edge): Provide a
locus parameter and override the stmt default if provided.
(new_elim_graph, clear_elim_graph, delete_elim_graph,
elim_graph_add_edge, elim_graph_remove_succ_edge,
FOR_EACH_ELIM_GRAPH_SUCC, FOR_EACH_ELIM_GRAPH_PRED, eliminate_build,
elim_forward, elim_unvisited_predecessor, elim_backward, elim_create,
eliminate_phi):  Add locus info in elimination graph for each edge and
value copy.
(insert_backedge_copies): Copy locus if present.
* tree-flow.h (struct _edge_var_map): Add locus field.
* tree-switch_conversions.c (fix_phi_nodes): Add locations.
* tree-cfg.c (reinstall_phi_args, gimple_make_forwarder_block,
add_phi_args_after_copy_edge, gimple_lv_adjust_loop_header_phi): Add
locations.
* ipa-struct-reorg.c (make_edge_and_fix_phis_of_dest): Add locations.

From-SVN: r150267

15 years agore PR c/39902 (x * 1.0DF gets wrong value)
Janis Johnson [Thu, 30 Jul 2009 17:04:56 +0000 (17:04 +0000)]
re PR c/39902 (x * 1.0DF gets wrong value)

PR c/39902
* gcc.dg/dfp/pr39902.c: Fix typos in constant suffixes.

From-SVN: r150265