Jakub Jelinek
2e9577924b
re PR debug/43150 (Proper debug info for debugging VLAs)
...
PR debug/43150
* gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
bounds even for -O+.
* var-tracking.c (track_expr_p): If !need_rtl, don't mandate
expr needs to have DECL_NAME set.
* gcc.dg/guality/vla-1.c: New test.
From-SVN: r157032
2010-02-24 11:50:13 +01:00
Nick Clifton
12a54f548b
mep.c: Include gimple.h.
...
* config/mep/mep.c: Include gimple.h.
(mep_function_uses_sp): Delete unused function.
(mep_gimplify_va_arg_expr): Change types of pre_p and post_p
parameters. Use unsigned integers to count args. Return a
NULL_RTX instead of an error_mark_node. Toidy up formatting.
From-SVN: r157031
2010-02-24 09:39:57 +00:00
Tobias Burnus
505a36f95b
[multiple changes]
...
2010-02-24 Tobias Burnus <burnus@net-b.de>
PR fortran/43042
* trans-expr.c (gfc_conv_initializer): Call directly
gfc_conv_constant for C_NULL_(FUN)PTR.
2010-02-24 Tobias Burnus <burnus@net-b.de>
PR fortran/43042
* gfortran.dg/c_ptr_tests_15.f90: New test.
From-SVN: r157029
2010-02-24 08:00:35 +01:00
Benjamin Kosnik
d8a06a8231
concurrency.xml: Move...
...
2010-02-23 Benjamin Kosnik <bkoz@redhat.com>
* doc/xml/manual/concurrency.xml: Move...
* doc/xml/manual/concurrency_extensions.xml: ...here.
* doc/xml/manual/extensions.xml: Adjust.
* doc/Makefile.am: Adjust.
* doc/Makefile.in: Regenerate.
From-SVN: r157027
2010-02-24 01:46:03 +00:00
GCC Administrator
5ae62e7bb1
Daily bump.
...
From-SVN: r157026
2010-02-24 00:16:42 +00:00
Benjamin Kosnik
037181bc87
random.h: Doxygen group markup fixes.
...
2010-02-23 Benjamin Kosnik <bkoz@redhat.com>
* include/bits/random.h: Doxygen group markup fixes.
From-SVN: r157023
2010-02-23 23:53:17 +00:00
Jakub Jelinek
8f40ad5019
re PR target/43107 (ICE: SIGSEGV with -O3 -mavx)
...
PR target/43107
* config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
greater or equal to nelt instead of 2 * nelt.
(expand_vec_perm_1): When op0 and op1 are equal, mask indexes
with nelt - 1.
* gcc.target/i386/pr43107.c: New test.
From-SVN: r157022
2010-02-23 23:52:20 +01:00
Jason Merrill
c6569cd04e
re PR c++/43143 ([c++0x] array value-initialization and variadics)
...
PR c++/43143
* typeck2.c (digest_init_r): Accept value init of array.
From-SVN: r157015
2010-02-23 13:32:20 -05:00
Jason Merrill
3adcf52c82
re PR debug/42800 (VLA DW_AT_upper_bound is no longer emitted)
...
PR debug/42800
* cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
in cfun->local_decls even if they have register types.
From-SVN: r157014
2010-02-23 13:32:09 -05:00
Jason Merrill
a3b20e90b1
re PR c++/42837 (FAIL: g++.dg/abi/packed1.C execution test)
...
PR c++/42837
* stor-layout.c (place_field): Don't warn about unnecessary DECL_PACKED
if the type is packed.
From-SVN: r157013
2010-02-23 13:31:58 -05:00
Jakub Jelinek
5ead99faad
re PR target/43139 (ICE in output_operand)
...
PR target/43139
* config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
GOTOFF relocs, even when the base reg isn't pic pointer.
* gcc.dg/pr43139.c: New test.
From-SVN: r157011
2010-02-23 18:05:56 +01:00
Michael Matz
2a8e30fbf3
re PR debug/43077 (VTA issues caused by SSA expand)
...
PR debug/43077
* cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
(expand_gimple_basic_block): Generate and use debug temps if there
are debug uses left after the last real use of TERed ssa names.
Unlink debug immediate uses when they are expanded.
testsuite/
PR debug/43077
* gcc.dg/guality/pr43077-1.c: New test.
From-SVN: r157009
2010-02-23 16:41:52 +00:00
Manuel López-Ibáñez
38170f34f3
re PR target/43123 (wrong value for march or mtune produces confusing output)
...
2010-02-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
PR 43123
* config/i386/i386.c (override_options): Reorganise to provide
better error messages.
testsuite/
* gcc.dg/march.c: New.
* gcc.dg/march-generic.c: New.
* gcc.dg/mtune.c: New.
From-SVN: r157007
2010-02-23 15:51:42 +00:00
Paolo Carlini
5c8db18ac6
functional_hash.h (struct _Fnv_hash): Rename to _Fnv_hash_base.
...
2010-02-23 Paolo Carlini <paolo.carlini@oracle.com>
* include/bits/functional_hash.h (struct _Fnv_hash): Rename
to _Fnv_hash_base.
(struct _Fnv_hash): Add, derives from the latter.
(__hash_combine): Add.
(hash<float>::operator()(float), hash<double>::operator()(double)):
Adjust.
* include/bits/basic_string.h (hash<string>, hash<wstring>,
hash<u16string>, hash<u32string>): Adjust.
* src/hash-string-aux.cc: Adjust.
* src/compatibility-c++0x.cc (hash<error_code>): Use __hash_combine.
* include/std/system_error (hash<error_code>): Likewise.
* include/std/thread (struct hash<thread::id>): Add.
* include/tr1/functional_hash.h : Rename to _Fnv_hash_base.
(struct _Fnv_hash): Add, derives from the latter.
(hash<float>::operator()(float), hash<double>::operator()(double)):
Adjust.
* testsuite/30_threads/thread/id/hash.cc: New.
* testsuite/30_threads/thread/cons/assign_neg.cc: Adjust dg-error
line number.
* testsuite/30_threads/thread/cons/copy_neg.cc: Likewise.
From-SVN: r157005
2010-02-23 15:23:37 +00:00
Sebastian Pop
0f9c8f569d
Add ChangeLog entries.
...
From-SVN: r156999
2010-02-23 13:00:21 +00:00
Sebastian Pop
4e72267360
Add missing changelog entry.
...
From-SVN: r156998
2010-02-23 13:00:05 +00:00
Sebastian Pop
4caa8e21cf
Fix PR43083: Do not handle regions ending with multiple edges on the exit BB.
...
2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
PR middle-end/43083
* graphite-scop-detection.c (create_single_exit_edge): Move
the call to find_single_exit_edge to....
(create_sese_edges): ...here. Don't handle multiple edges
exiting the function.
(build_graphite_scops): Don't handle multiple edges
exiting the function.
* gcc.dg/graphite/pr43083.c: New.
From-SVN: r156997
2010-02-23 12:59:48 +00:00
Sebastian Pop
b8df8b8b99
Fix PR number in the changelog entry.
...
From-SVN: r156996
2010-02-23 12:59:32 +00:00
Sebastian Pop
c3382979d0
Fix PR43097: rename only SSA_NAMEs.
...
2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
PR middle-end/43140
* sese.c (get_rename): Assert that old_name is an SSA_NAME.
(rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
* gfortran.dg/graphite/pr43097.f: New.
From-SVN: r156995
2010-02-23 12:59:17 +00:00
Sebastian Pop
13cd10a221
Fix PR43140: Add -Wno-conversion-null to pr41305.C.
...
2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
Manuel López-Ibáñez <manu@gcc.gnu.org>
PR middle-end/43140
* g++.dg/graphite/pr41305.C: Add -Wno-conversion-null.
Co-Authored-By: Manuel López-Ibáñez <manu@gcc.gnu.org>
From-SVN: r156994
2010-02-23 12:59:00 +00:00
Sebastian Pop
143b72a99d
Fix PR43026: handle COMPONENT_REFs in expand scalar expressions.
...
2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
PR middle-end/43026
* sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
* g++.dg/graphite/pr43026.C: New.
From-SVN: r156993
2010-02-23 12:58:44 +00:00
Jerry DeLisle
3bbc846211
list_read.c (list_formatted_read_scalar): Remove duplicate code.
...
2010-02-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>
* io/list_read.c (list_formatted_read_scalar): Remove duplicate code.
From-SVN: r156988
2010-02-23 05:00:42 +00:00
GCC Administrator
f5d174c8c3
Daily bump.
...
From-SVN: r156985
2010-02-23 00:17:05 +00:00
Janis Johnson
5b557fc6e4
* src/compatibility-ldbl.cc: Include new hash-long-double-aux.cc.
...
From-SVN: r156982
2010-02-22 23:51:07 +00:00
Paolo Carlini
9dd17e69b7
hash-aux.cc: Rename to...
...
2010-02-22 Paolo Carlini <paolo.carlini@oracle.com>
* src/hash-aux.cc: Rename to...
* src/hash-string-aux.cc: ... this.
* src/hash-long-double-aux.cc: New.
* src/hash_c++0x.cc: Adjust.
* src/hash_tr1.cc: Likewise.
* src/compatibility-c++0x.cc: Likewise.
From-SVN: r156981
2010-02-22 22:54:49 +00:00
Benjamin Kosnik
09d6794b5e
class.txml: Adjust biblio markup.
...
2010-02-22 Benjamin Kosnik <bkoz@redhat.com>
* doc/xml/class.txml: Adjust biblio markup.
* doc/xml/manual/allocator.xml: Same.
* doc/xml/manual/ctype.xml: Same.
* doc/xml/manual/codecvt.xml: Same.
* doc/xml/manual/backwards_compatibility.xml: Same.
* doc/xml/manual/abi.xml: Same.
* doc/xml/manual/shared_ptr.xml: Same.
* doc/xml/manual/profile_mode.xml: Same.
* doc/xml/manual/using_exceptions.xml: Same.
* doc/xml/manual/locale.xml: Same.
* doc/xml/manual/appendix_contributing.xml: Same.
* doc/xml/manual/messages.xml: Same.
* doc/Makefile.am (DBLATEX_FLAGS): Adjust.
* doc/Makefile.in: Regenerate.
From-SVN: r156980
2010-02-22 22:52:11 +00:00
Manuel López-Ibáñez
a98c281937
re PR c++/43126 ("at this point in file" warnings are upside down)
...
2010-02-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
PR c++/43126
* c-typeck.c (convert_arguments): Print declaration location.
* c-common.c (validate_nargs): Rename as
builtin_function_validate_nargs.
(check_builtin_function_arguments): Update.
cp/
* typeck.c (convert_arguments): Update error message.
testsuite/
* gcc.dg/cleanup-1.c: Update.
* gcc.dg/func-args-1.c: Update.
* gcc.dg/format/sentinel-1.c: Update.
* g++.old-deja/g++.jason/scoping10.C: Update.
* g++.old-deja/g++.ns/lookup5.C: Update.
* g++.dg/ext/cleanup-1.C: Update.
* g++.dg/parse/varmod1.C: Update.
* g++.dg/parse/error33.C: Update.
* g++.dg/expr/call3.C: Update.
* g++.dg/func-args-1.C: New.
From-SVN: r156979
2010-02-22 22:30:45 +00:00
Mike Stump
3a7ba0405d
Merge DECL_PRESERVE_P for C++.
...
2010-02-22 Mike Stump <mikestump@comcast.net>
PR c++/43125
* decl.c (duplicate_decls): Merge DECL_PRESERVE_P.
From-SVN: r156977
2010-02-22 13:57:22 -08:00
H.J. Lu
38bddaf26d
Move C tests for used attribute to c-c++-common.
...
2010-02-22 H.J. Lu <hongjiu.lu@intel.com>
PR c/43125
* gcc.dg/attr-used-2.c: Moved to ...
* c-c++-common/attr-used-2.c: Here.
* gcc.dg/attr-used.c: Moved to ...
* c-c++-common/attr-used.c: Here.
From-SVN: r156976
2010-02-22 13:33:21 -08:00
François Dumont
e2553a4c5e
profile_mode.xml: Minor updates and fixes.
...
2010-02-22 François Dumont <francois.cppdevs@free.fr>
* doc/xml/manual/profile_mode.xml: Minor updates and fixes.
* doc/xml/manual/debug_mode.xml: Likewise.
* doc/xml/manual/test.xml: Likewise.
From-SVN: r156975
2010-02-22 21:21:17 +00:00
Ozkan Sezer
8d7746235a
991014-1.c: Use __SIZE_TYPE__ for size types.
...
2010-02-22 Ozkan Sezer <sezeroz@gmail.com>
* gcc.c-torture/execute/991014-1.c: Use __SIZE_TYPE__ for size types.
From-SVN: r156974
2010-02-22 21:15:41 +00:00
Paolo Carlini
26504a0f8c
complex (arg): Use std::signbit only when available.
...
2010-02-22 Paolo Carlini <paolo.carlini@oracle.com>
* include/tr1_impl/complex (arg): Use std::signbit only when
available.
From-SVN: r156972
2010-02-22 18:41:55 +00:00
Paolo Carlini
15d81a3c31
functional_hash.h (hash<string>, [...]): Move, per DR 1182 to...
...
2010-02-22 Paolo Carlini <paolo.carlini@oracle.com>
* include/bits/functional_hash.h (hash<string>, hash<wstring>,
hash<u16string>, hash<u32string>, hash<error_code>): Move, per
DR 1182 to...
* include/bits/basic_string.h: ... here.
* include/std/system_error: ... and here, respectively.
* src/hash-aux.cc (hash<long double>::operator()(long double)):
Move definition...
* src/hash_c++0x.cc: ... here, new file.
* src/hash_tr1.cc: ... and here, tweak includes.
* src/compatibility-c++0x.cc (hash, _Fnv_hash): Remove.
* src/Makefile.am: Adjust.
* src/Makefile.in: Regenerate.
* include/std/functional: Include <bits/functexcept.h>.
* include/std/unordered_set: Remove redundant include.
* include/std/unordered_map: Likewise.
* include/tr1/functional_hash.h: Remove spurious trailing semicolon.
* testsuite/20_util/weak_ptr/comparison/cmp_neg.cc: Remove
dg-excess.
From-SVN: r156971
2010-02-22 18:07:07 +00:00
Richard Guenther
ea2edf88ee
re PR middle-end/43045 ([lto] ICE non-trivial conversion at assignment)
...
2010-02-22 Richard Guenther <rguenther@suse.de>
PR lto/43045
* tree-inline.c (declare_return_variable): Use the type of
the call stmt lhs if available.
* gfortran.dg/lto/20100222-1_0.f03: New testcase.
* gfortran.dg/lto/20100222-1_1.c: Likewise.
From-SVN: r156966
2010-02-22 15:53:27 +00:00
Duncan Sands
669887fc19
If a pass occurs in several pass lists...
...
If a pass occurs in several pass lists, like pass_cleanup_eh which occurs in
both all_small_ipa_passes and all_passes, make sure all instances of it are
considered for replacement/insertion when ref_pass_instance_number is zero,
not just the instance in the first pass list.
From-SVN: r156961
2010-02-22 14:18:10 +00:00
Richard Guenther
9efc83f4ba
re PR middle-end/42749 (-O2 and verify_stmts failed again)
...
2010-02-22 Richard Guenther <rguenther@suse.de>
PR tree-optimization/42749
* tree-tailcall.c (adjust_return_value_with_ops): Drop update
parameter. Do arithmetic in the original type.
(update_accumulator_with_ops): Likewise.
(adjust_accumulator_values): Adjust.
* gcc.c-torture/compile/pr42749.c: New testcase.
From-SVN: r156960
2010-02-22 14:09:26 +00:00
Andreas Krebbel
0a88561f0a
s390.md ("movqi"): Re-add the mem->mem alternative.
...
2010-02-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
* config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
(QI to BLKmode splitter): New splitter.
From-SVN: r156959
2010-02-22 14:05:16 +00:00
H.J. Lu
5c91eb02f6
Turn on X86_TUNE_INTER_UNIT_MOVES for Atom.
...
2010-02-22 H.J. Lu <hongjiu.lu@intel.com>
* config/i386/i386.c (initial_ix86_tune_features): Turn on
X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
From-SVN: r156957
2010-02-22 05:44:24 -08:00
Richard Guenther
69e3b47f92
tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
...
2010-02-22 Richard Guenther <rguenther@suse.de>
* tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
From-SVN: r156951
2010-02-22 09:47:59 +00:00
Paul Thomas
f80c558f59
re PR fortran/43072 (unneeded temporary (s=s+f(a)))
...
2010-02-22 Paul Thomas <pault@gcc.gnu.org>
PR fortran/43072
* dependency.c (gfc_full_array_ref_p): Check for contiguous by
checking the rest of the dimensions for elements.
2010-02-22 Paul Thomas <pault@gcc.gnu.org>
PR fortran/43072
* gfortran.dg/internal_pack_6.f90: Number of 'packs' now zero.
* gfortran.dg/internal_pack_9.f90: New test.
From-SVN: r156949
2010-02-22 05:43:57 +00:00
Hans-Peter Nilsson
3039c3948e
2010, not 2009; old emacs bug
...
From-SVN: r156948
2010-02-22 00:52:11 +00:00
Hans-Peter Nilsson
45df0e43c2
Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
...
* config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
($(T)crti.o, $(T)crtn.o): Remove rules.
From-SVN: r156947
2010-02-22 00:38:30 +00:00
Hans-Peter Nilsson
e7c914db61
Migrate from broken pre-libgcc legacy support to libgcc-centric rules.
...
* config/mmix/t-mmix: New file.
* config.host <mmix-knuth-mmixware> (extra_parts, tmake_file): Set.
From-SVN: r156946
2010-02-22 00:37:30 +00:00
GCC Administrator
f9b85f53f2
Daily bump.
...
From-SVN: r156945
2010-02-22 00:16:44 +00:00
Manuel López-Ibáñez
f89b94d954
re PR c++/23510 (skip some instantation contexts if there are too many)
...
2010-02-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
PR c++/23510
cp/
* error.c (print_instantiation_partial_context_line): New.
(print_instantiation_partial_context): Print at most 12 contexts,
skip the rest with a message.
testsuite/
* g++.dg/template/recurse.C: Adjust.
* g++.dg/template/pr23510.C: New.
From-SVN: r156942
2010-02-21 21:20:04 +00:00
Paolo Carlini
681f05d4f0
complex (proj): Change return type per DR 1137.
...
2010-02-21 Paolo Carlini <paolo.carlini@oracle.com>
* include/std/complex (proj): Change return type per DR 1137.
(conj): Copy from tr1_impl, likewise adjust return type.
* include/tr1_impl/complex (conj): Remove.
* include/tr1/complex (conj): Add both overloads.
* testsuite/26_numerics/complex/dr781.cc: Rename to...
* testsuite/26_numerics/complex/dr781_dr1137.cc: ... this, and extend.
* include/tr1_impl/complex (arg): Optimize.
From-SVN: r156940
2010-02-21 19:55:17 +00:00
Dodji Seketeli
04afbf1c7f
re PR c++/42824 (c++ compilation complains about error: call of overloaded)
...
Fix PR c++/42824
gcc/cp/ChangeLog:
PR c++/42824
* pt.c (lookup_template_class): Better support of specialization
of member of class template implicit instantiation.
gcc/testsuite/ChangeLog:
PR c++/42824
* g++.dg/template/memclass4.C: New test.
From-SVN: r156939
2010-02-21 19:06:39 +01:00
Joseph Myers
d66489977e
* sv.po: Update.
...
From-SVN: r156938
2010-02-21 17:50:07 +00:00
Tobias Burnus
72bd130e66
re PR fortran/35259 (-fassociative-math not enabled by default; No option to associate with PAREN_EXPRs)
...
2010-02-21 Tobias Burnus <burnus@net-b.de>
PR fortran/35259
* doc/invoke.texi (-fassociative-math): Document that this
option is automatically enabled for Fortran.
2010-02-21 Tobias Burnus <burnus@net-b.de>
PR fortran/35259
* gfortran.h (gfc_option_t): New flag -fprotect-parens.
* lang.opt: Ditto.
* option.c (gfc_init_options,gfc_handle_option): Ditto.
* trans-expr.c (gfc_conv_expr_op): Use the flag.
* invoke.texi: Document new -fno-protect-parens flag.
2010-02-21 Tobias Burnus <burnus@net-b.de>
PR fortran/35259
* gfortran.dg/reassoc_5.f90: New test.
From-SVN: r156937
2010-02-21 14:06:07 +01:00
Paolo Carlini
c76dc9b0e6
typedefs.cc: New.
...
2010-02-21 Paolo Carlini <paolo.carlini@oracle.com>
* testsuite/20_util/is_trivial/requirements/typedefs.cc: New.
* testsuite/20_util/is_trivial/requirements/
explicit_instantiation.cc: Likewise.
* testsuite/20_util/is_pod/value.cc: Likewise.
* testsuite/20_util/is_pod/requirements/typedefs.cc: Likewise.
* testsuite/20_util/is_pod/requirements/
explicit_instantiation.cc: Likewise.
* testsuite/20_util/is_standard_layout/requiremenents/
typedefs.cc: Likewise.
* testsuite/20_util/is_standard_layout/requiremenents/
explicit_instantiation.cc: Likewise.
From-SVN: r156934
2010-02-21 11:06:42 +00:00