Georg-Johann Lay
3c370d4240
re PR tree-optimization/51315 (unaligned memory accesses generated with -ftree-sra)
...
* gcc.c-torture/execute/20111208-1.c (int16_t): Use __INT16_TYPE__
for typedef.
(int32_t): Use __INT32_TYPE__ for typedef.
PR tree-optimization/51315
From-SVN: r182115
2011-12-08 13:57:43 +00:00
Richard Guenther
1381811407
re PR tree-optimization/49772 (ICE: in ipa_pta_execute, at tree-ssa-structalias.c:6790 with -fipa-pta)
...
2011-12-08 Richard Guenther <rguenther@suse.de>
PR tree-optimization/49772
* tree-inline.c (optimize_inline_calls): Remove bail out
on errors.
From-SVN: r182110
2011-12-08 13:23:54 +00:00
Georg-Johann Lay
cffef82595
re PR tree-optimization/51315 (unaligned memory accesses generated with -ftree-sra)
...
PR tree-optimization/51315
* gcc.c-torture/execute/20111208-1.c: Fix wrong assumption
sizeof(int)==4.
From-SVN: r182109
2011-12-08 12:38:35 +00:00
Richard Guenther
4341f26129
re PR lto/50747 (ICE in produce_symtab, at lto-streamer-out.c:1435)
...
2011-12-08 Richard Guenther <rguenther@suse.de>
PR lto/50747
* lto-streamer-out.c (produce_symtab): Remove asserts.
* g++.dg/opt/pr50747-1_0.C: New testcase.
* g++.dg/opt/pr50747-2_0.C: Likewise.
From-SVN: r182108
2011-12-08 12:32:19 +00:00
Richard Guenther
befa62e74e
re PR middle-end/49945 (gcc.dg/guality/vla-1.c FAILs with -flto)
...
2011-12-08 Richard Guenther <rguenther@suse.de>
PR lto/49945
* lto-streamer-out.c (tree_is_indexable): Localize variably
modified types and their FIELD_DECLs.
From-SVN: r182107
2011-12-08 11:43:12 +00:00
Jonathan Wakely
3d0c32fe56
atomic_base.h (__calculate_memory_order): Rename to...
...
* include/bits/atomic_base.h (__calculate_memory_order): Rename to...
(__cmpexch_failure_order): This, and rewrite as constexpr function.
(compare_exchange_strong, compare_exchange_weak): Use it.
* include/std/atomic (compare_exchange_strong, compare_exchange_weak):
Likewise.
From-SVN: r182105
2011-12-08 09:44:57 +00:00
Eric Botcazou
908b951938
re PR tree-optimization/51315 (unaligned memory accesses generated with -ftree-sra)
...
PR tree-optimization/51315
* tree.h (get_object_or_type_alignment): Declare.
* expr.c (get_object_or_type_alignment): Move to...
* builtins.c (get_object_or_type_alignment): ...here. Add assertion.
* tree-sra.c (tree_non_mode_aligned_mem_p): Rename to...
(tree_non_aligned_mem_p): ...this. Add ALIGN parameter. Look into
MEM_REFs and use get_object_or_type_alignment for them.
(build_accesses_from_assign): Adjust for above change.
(access_precludes_ipa_sra_p): Likewise.
From-SVN: r182102
2011-12-08 09:05:38 +00:00
Richard Guenther
c37257a1f6
re PR lto/48437 (LTO crashes with block-local function declarations)
...
2011-12-08 Richard Guenther <rguenther@suse.de>
PR lto/48437
* lto-streamer-out.c (tree_is_indexable): Exclude block-local
extern declarations.
* gcc.dg/lto/20111207-2_0.c: New testcase.
* gcc.dg/guality/pr48437.c: Likewise.
From-SVN: r182100
2011-12-08 08:50:35 +00:00
Jakub Jelinek
a633b93ea3
re PR c++/51401 ([c++0x] [4.7 Regression] ICE with invalid use of auto in template)
...
PR c++/51401
* decl.c (grokdeclarator): Error for auto on non-static data members.
* g++.dg/cpp0x/auto7.C: Adjust expected error message.
* g++.dg/cpp0x/auto29.C: New test.
From-SVN: r182097
2011-12-08 01:50:26 +01:00
GCC Administrator
2df708d937
Daily bump.
...
From-SVN: r182096
2011-12-08 00:19:28 +00:00
Andrew Pinski
69090788c1
re PR libffi/50051 (MIPS libffi does not compile for mips64octeon-linux-gnu)
...
2011-12-07 Andrew Pinski <apinski@cavium.com>
PR libffi/50051
* src/mips/n32.S: Add ".set mips4".
From-SVN: r182092
2011-12-07 14:59:06 -08:00
Andrew Pinski
3b21983d06
n32.S: Add ".set mips4".
...
2011-12-07 Andrew Pinski <apinski@cavium.com>
* src/mips/n32.S: Add ".set mips4".
From-SVN: r182091
2011-12-07 14:58:31 -08:00
Jakub Jelinek
b0c084b712
re PR bootstrap/50237 (bootstrap comparison failure for libcpp/lex.o)
...
PR bootstrap/50237
* internal.h (_cpp_init_lexer): New prototype.
* init.c (init_library): Call it.
* lex.c (init_vectorized_lexer): Remove constructor attribute,
add inline keyword.
(HAVE_init_vectorized_lexer): Define.
(_cpp_init_lexer): New function.
From-SVN: r182090
2011-12-07 23:05:59 +01:00
Jakub Jelinek
ff180d72d9
re PR c++/51429 (ICE with invalid use of overloaded member function)
...
PR c++/51429
* typeck2.c (cxx_incomplete_type_diagnostic): Don't
ICE if TREE_OPERAND (value, 1) is overloaded.
* g++.dg/parse/error45.C: New test.
From-SVN: r182089
2011-12-07 21:46:38 +01:00
Jakub Jelinek
6f8e335e64
re PR c++/51229 ([C++0x] [4.7 Regression] Broken diagnostic: 'integer_cst' not supported by dump_dec)
...
PR c++/51229
* decl.c (reshape_init_class): Complain if d->cur->index is
INTEGER_CST.
* parser.c (cp_parser_initializer_list): If cp_parser_parse_definitely
fails, clear designator.
* g++.dg/ext/desig3.C: New test.
From-SVN: r182088
2011-12-07 21:43:06 +01:00
Jakub Jelinek
14b1860e4e
re PR c++/51369 ([c++0x] [4.7 Regression] ICE using constexpr in template)
...
PR c++/51369
* init.c (build_value_init): Allow array types even when
processing_template_decl.
* g++.dg/cpp0x/constexpr-51369.C: New test.
From-SVN: r182086
2011-12-07 20:51:54 +01:00
François Dumont
95c0a8a714
re PR libstdc++/51386 (23_containers/unordered_set/hash_policy/load_factor.cc execution timeout)
...
2011-12-07 François Dumont <fdumont@gcc.gnu.org>
PR libstdc++/51386
* include/bits/hashtable_policy.h (_Prime_rehash_policy::_M_next_bkt):
Fix computation of _M_prev_resize so that hashtable do not keep on
being rehashed when _M_max_load_factor is lower than 1.
From-SVN: r182085
2011-12-07 19:47:03 +00:00
Andrew Pinski
3c411f3f2c
re PR middle-end/45416 (Code size regression from 4.4 for ARM)
...
2011-12-07 Andrew Pinski <apinski@cavium.com>
PR middle-end/45416
* expr.c (do_store_flag): Rewrite code that looks for BIT_AND_EXPR for
SSA-expand.
2011-12-07 Andrew Pinski <apinski@cavium.com>
PR middle-end/45416
* gcc.dg/pr45416.c: New testcase.
From-SVN: r182084
2011-12-07 11:23:10 -08:00
Ed Smith-Rowland
7cdd2e6c6e
re PR c++/51420 ([c++0x] ICE with invalid user-defined literals)
...
PR c++/51420
* parser.c (lookup_literal_operator): Check that declaration is an
overloaded function.
From-SVN: r182083
2011-12-07 10:41:03 -05:00
Richard Guenther
543dfd37ec
re PR lto/48100 (Assertion failed in lto_varpool_replace_node, at lto-symtab.c:304 with mixed LTO/non-LTO objects)
...
2011-12-07 Richard Guenther <rguenther@suse.de>
PR lto/48100
* gcc.dg/lto/20111207-1_0.c: New testcase.
* gcc.dg/lto/20111207-1_1.c: Likewise.
* gcc.dg/lto/20111207-1_2.c: Likewise.
* gcc.dg/lto/20111207-1_3.c: Likewise.
From-SVN: r182082
2011-12-07 13:53:30 +00:00
Richard Guenther
f867f13406
re PR middle-end/50823 (ICE in inline_small_functions, at ipa-inline.c:1407)
...
2011-12-07 Richard Guenther <rguenther@suse.de>
PR tree-optimization/50823
* ipa-inline.c (edge_badness): Do not account for the number of
remaining calls.
* gcc.dg/torture/pr50823.c: New testcase.
From-SVN: r182077
2011-12-07 11:55:16 +00:00
Martin Jambor
df0227c425
re PR tree-optimization/50744 (ice in good_cloning_opportunity_p)
...
2011-12-07 Martin Jambor <mjambor@suse.cz>
PR tree-optimization/50744
* ipa-cp.c (good_cloning_opportunity_p): Assert size_cost is positive,
compute evaluation in HOST_WIDEST_INT.
(safe_add): New function
(propagate_effects): Use safe_add to accumulate effects.
* testsuite/gcc.dg/ipa/pr50744.c: New test.
From-SVN: r182076
2011-12-07 11:30:49 +01:00
Ian Lance Taylor
c19bd76920
libgo: Add back tests of syscall time.
...
From-SVN: r182075
2011-12-07 01:55:49 +00:00
Ian Lance Taylor
598fd331d0
libgo: Remove debug/proc, os.Error.
...
From-SVN: r182074
2011-12-07 01:21:57 +00:00
Ian Lance Taylor
9c63abc9a1
libgo: Update to weekly 2011-11-09.
...
From-SVN: r182073
2011-12-07 01:11:29 +00:00
GCC Administrator
374280238f
Daily bump.
...
From-SVN: r182072
2011-12-07 00:18:22 +00:00
Joel Sherrill
b3dd015a96
rtems.h: Switch to using global_options_set in SUBSUBTARGET_OVERRIDE_OPTIONS.
...
2011-12-06 Joel Sherrill <joel.sherrill@oarcorp.com>
* config/rs6000/rtems.h: Switch to using global_options_set
in SUBSUBTARGET_OVERRIDE_OPTIONS.
From-SVN: r182068
2011-12-06 22:49:57 +00:00
David S. Miller
eab47093e2
sparc: Fix warnings when using visintrin.h with VIS level lower than 3.
...
* config/sparc/visintrin.h: Add appropriate __VIS__ cpp protection.
From-SVN: r182067
2011-12-06 14:42:23 -08:00
Andrew Pinski
806fc6aa98
crtstuff.c (__do_global_dtors_aux_fini_array_entry): Align to the size of func_ptr.
...
2011-12-06 Andrew Pinski <apinski@cavium.com>
* crtstuff.c (__do_global_dtors_aux_fini_array_entry): Align to the
size of func_ptr.
(__frame_dummy_init_array_entry): Likewise.
From-SVN: r182066
2011-12-06 13:35:41 -08:00
Dave Korn
5fa3ea2135
Makefile.in (LIBGNAT_TARGET_PAIRS [windows targets]): Correctly detect cygwin...
...
* gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS [windows targets]):
Correctly detect cygwin, which no longer has the '32' suffix, and use
appropriate implementations of the sockets and memory packages.
* sysdep.c (WIN_SETMODE): New define to choose the correct spelling of
setmode/_setmode for MinGW and Cygwin, respectively.
(__gnat_set_binary_mode [windows targets]): Use the above, and enable
the windows version for Cygwin as well as MinGW.
(__gnat_set_text_mode [windows targets]): Likewise.
(__gnat_ttyname [windows targets]): Provide a Cygwin implementation
in addition to the MinGW version.
(__gnat_is_windows_xp): Make available to Cygwin as well as MinGW.
(__gnat_get_stack_bounds): Likewise.
From-SVN: r182065
2011-12-06 20:31:31 +00:00
Paolo Carlini
8535715d0f
re PR libstdc++/51438 (std::exception and derived classes are not compatible with std::nested_exception and C++11 in general)
...
2011-12-06 Paolo Carlini <paolo.carlini@oracle.com>
PR libstdc++/51438
* libsupc++/nested_exception.h (nested_exception::~nested_exception):
Declare noexcept.
* libsupc++/nested_exception.cc: Adjust.
* testsuite/18_support/nested_exception/51438.cc: New.
* testsuite/18_support/nested_exception/throw_with_nested.cc: Adjust.
* testsuite/18_support/nested_exception/rethrow_if_nested.cc:
Likewise.
* src/shared_ptr.cc: Use noexcept where appropriate.
* include/std/system_error: Likewise.
* include/std/functional: Likewise.
* include/bits/shared_ptr_base.h: Likewise.
* src/stdexcept.cc: Use _GLIBCXX_USE_NOEXCEPT where appropriate.
* include/std/stdexcept: Likewise.
* libsupc++/bad_cast.cc: Likewise.
* libsupc++/bad_typeid.cc: Likewise.
* libsupc++/eh_exception.cc: Likewise.
* libsupc++/typeinfo: Likewise.
* libsupc++/exception: Likewise.
* libsupc++/eh_ptr.cc: Likewise.
* libsupc++/bad_alloc.cc: Likewise.
* libsupc++/exception_ptr.h: Likewise.
* include/std/chrono: Use noexcept where appropriate.
* src/chrono.cc: Likewise.
From-SVN: r182064
2011-12-06 20:03:25 +00:00
Jakub Jelinek
0e642d0671
re PR c++/51430 (ICE with array as static const member)
...
PR c++/51430
* pt.c (tsubst_decl): Don't call strip_array_domain on
error_mark_node.
* g++.dg/template/static32.C: New test.
From-SVN: r182063
2011-12-06 20:52:39 +01:00
Uros Bizjak
70d63e4883
pr51396.C: Use dg-additional-options.
...
* g++.dg/opt/pr51396.C: Use dg-additional-options.
From-SVN: r182061
2011-12-06 19:46:18 +01:00
Ian Lance Taylor
6c025f46f0
libgo: Remove more os.Error cases.
...
From Rainer Orth.
From-SVN: r182060
2011-12-06 18:13:04 +00:00
Tobias Burnus
0173c67b30
re PR fortran/51435 (Bad association status after null() of derived type component)
...
2011-12-06 Tobias Burnus <burnus@net-b.de>
PR fortran/51435
* expr.c (gfc_has_default_initializer): Fix handling of
DT with initialized pointer components.
2011-12-06 Tobias Burnus <burnus@net-b.de>
PR fortran/51435
* gfortran.dg/default_initialization_5.f90: New.
From-SVN: r182059
2011-12-06 19:10:01 +01:00
Georg-Johann Lay
a032008aa9
avr.c (avr_file_start): Fix missing ,
...
* config/avr/avr.c (avr_file_start): Fix missing ,
From-SVN: r182058
2011-12-06 17:18:10 +00:00
Jakub Jelinek
762f777039
re PR target/51354 (ICE in maybe_record_trace_start)
...
PR target/51354
* config/i386/i386.c (ix86_emit_leave): Call ix86_add_cfa_restore_note
unconditionally.
* gcc.c-torture/compile/pr51354.c: New test.
From-SVN: r182056
2011-12-06 18:15:11 +01:00
Paolo Carlini
66403b3862
re PR c++/51431 (ICE with invalid use of abstract class)
...
/cp
2011-12-06 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/51431
* init.c (build_value_init): Check build_aggr_init_expr return
value for error_mark_node.
/testsuite
2011-12-06 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/51431
* g++.dg/other/abstract3.C: New.
From-SVN: r182055
2011-12-06 17:12:17 +00:00
Jonathan Wakely
62b547b5f6
re PR libstdc++/51183 (pair piecewise_construct_t constructor copies)
...
2011-12-06 Jonathan Wakely <jwakely.gcc@gmail.com>
Chris Jefferson <chris@bubblescope.net>
PR libstdc++/51183
* include/std/stl_pair.h (pair<>::__cons, pair<>::__do_cons): Remove.
(pair<>::pair(piecewise_construct_t, tuple<>, tuple<>): Only declare.
(pair<>::pair(tuple<>&, tuple<>&, _Index_tuple<>, _Index_tuple<>)):
Declare.
* include/std/tuple (pair<>::__cons, pair<>::__do_cons): Remove.
(pair<>::pair(tuple<>&, tuple<>&, _Index_tuple<>, _Index_tuple<>)):
Define.
(pair<>::pair(piecewise_construct_t, tuple<>, tuple<>): Define,
delegating to the latter.
* testsuite/20_util/pair/piecewise2.cc: New.
Co-Authored-By: Chris Jefferson <chris@bubblescope.net>
From-SVN: r182054
2011-12-06 15:13:04 +00:00
Georg-Johann Lay
6232acfe4d
avr-mcus.def (avr_mcu_types): ATtiny4313 and AT86RF401 have a 16-bit SP (their manual is bogus).
...
* config/avr/avr-mcus.def (avr_mcu_types): ATtiny4313 and
AT86RF401 have a 16-bit SP (their manual is bogus).
Forward-port from gcc-4_6-branch r181936 2011-12-02.
From-SVN: r182053
2011-12-06 15:08:39 +00:00
Georg-Johann Lay
28c5e6b58f
Forward-port from gcc-4_6-branch r181936 2011-12-02.
...
libgcc/
Forward-port from gcc-4_6-branch r181936 2011-12-02.
PR target/51345
PR target/51002
* config/avr/lib1funcs.S (__prologue_saves__,
__epilogue_restores__, __divdi3_moddi3): Enclose parts using
__SP_H__ in !defined (__AVR_HAVE_8BIT_SP__). Add FIXME comments.
gcc/
Forward-port from gcc-4_6-branch r181936 2011-12-02.
PR target/51002
* config/avr/avr.md (movhi_sp_r): Set insn condition to
!AVR_HAVE_8BIT_SP.
* config/avr/avr.c (output_movhi): Use "clr%B0" instead of "in
%B0,__SP_H__" if AVR_HAVE_8BIT_SP.
(avr_file_start): Only print "__SP_H__ = 0x3e" if !AVR_HAVE_8BIT_SP.
From-SVN: r182052
2011-12-06 15:04:09 +00:00
Georg-Johann Lay
562f552bd8
re PR target/51409 ([avr] Build fails if configured for other languages than from c-family)
...
PR target/51409
PR target/49868
* config/avr/avr.h (ADDR_SPACE_PGM, ADDR_SPACE_PGM1,
ADDR_SPACE_PGM2, ADDR_SPACE_PGM3, ADDR_SPACE_PGM4,
ADDR_SPACE_PGM5, ADDR_SPACE_PGMX): Write as enum.
(avr_addrspace_t): New typedef.
(avr_addrspace): New declaration.
* config/avr/avr-c.c (avr_toupper): New static function.
(avr_register_target_pragmas, avr_cpu_cpp_builtins): Use
avr_addrspace to get address space information.
* config/avr/avr.c (avr_addrspace): New variable.
(avr_out_lpm, avr_pgm_check_var_decl, avr_insert_attributes,
avr_asm_named_section, avr_section_type_flags,
avr_asm_select_section, avr_addr_space_address_mode,
avr_addr_space_convert, avr_emit_movmemhi): Use it.
(avr_addr_space_pointer_mode): Forward to avr_addr_space_address_mode.
(avr_pgm_segment): Remove.
From-SVN: r182051
2011-12-06 14:39:25 +00:00
Jakub Jelinek
5de62d003b
re PR libgomp/51132 (FAIL: libgomp.graphite/force-parallel-[678].c)
...
PR libgomp/51132
* testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
to file scope.
* testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
* testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
* testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
* testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
* testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
From-SVN: r182050
2011-12-06 15:32:54 +01:00
Richard Guenther
f748cd6bb4
re PR tree-optimization/49997 (ICE in inline_small_functions with -fnon-call-exceptions)
...
2011-12-06 Richard Guenther <rguenther@suse.de>
PR tree-optimization/49997
* gcc.dg/torture/pr49997.c: New testcase.
From-SVN: r182049
2011-12-06 13:45:19 +00:00
Richard Guenther
f7fb28800d
re PR lto/50601 (New LTO failures)
...
2011-12-06 Richard Guenther <rguenther@suse.de>
PR middle-end/50601
* varasm.c (assemble_alias): Move DECL_EXTERNAL implementation
quirk adjustjment ...
* passes.c (rest_of_decl_compilation): ... here.
From-SVN: r182048
2011-12-06 13:26:09 +00:00
Richard Guenther
52f26be409
re PR middle-end/51436 (ICE(segfault) in gimplify_and_update_call_from_tree gimple-fold.c:603)
...
2011-12-06 Richard Guenther <rguenther@suse.de>
PR middle-end/51436
* gimple-fold.c (gimplify_and_update_call_from_tree): Guard
vdef check for the fact we do not have virtual operands when
not optimizing.
* g++.dg/torture/pr51436.C: New testcase.
From-SVN: r182045
2011-12-06 12:17:31 +00:00
Richard Guenther
b55eb41058
re PR tree-optimization/51245 (ICE in vn_reference_insert_pieces, at tree-ssa-sccvn.c:1983)
...
2011-12-06 Richard Guenther <rguenther@suse.de>
PR tree-optimization/51245
* tree-ssa-sccvn.c (vn_reference_lookup_or_insert_constant_for_pieces):
New function.
(vn_reference_lookup_3): Use it. Properly valueize all refs
we create.
* gcc.dg/torture/pr51245.c: New testcase.
From-SVN: r182044
2011-12-06 11:41:00 +00:00
Dodji Seketeli
230f834641
PR c++/51427 - Better diagnostic when union/struct tags conflicts
...
gcc/cp/
PR c++/51427
* parser.c (cp_parser_check_class_key): Add note about earlier
declaration.
gcc/testsuite/
PR c++/51427
* g++.dg/diagnostic/wrong-tag-1.C
From-SVN: r182043
2011-12-06 11:06:49 +01:00
Iain Sandoe
aa383ddaea
rs6000.c (darwin_rs6000_override_options): Initialize rs6000_current_abi.
...
gcc:
* config/rs6000/rs6000.c (darwin_rs6000_override_options): Initialize
rs6000_current_abi.
From-SVN: r182042
2011-12-06 09:52:11 +00:00
Richard Guenther
d829c408d2
re PR tree-optimization/51363 (ICE: in gimple_rhs_has_side_effects, at gimple.c:2530 with -O -fno-tree-ccp)
...
2011-12-06 Richard Guenther <rguenther@suse.de>
PR tree-optimization/51363
* gimple.c (gimple_rhs_has_side_effects): Remove.
* gimple.h (gimple_rhs_has_side_effects): Likewise.
* tree-ssa-dom.c (optimize_stmt): Simplify conditional.
From-SVN: r182041
2011-12-06 09:02:17 +00:00