Andrew Pinski
14f2a7e2b1
mips-cpus.def (octeon+): New CPU.
...
2011-12-08 Andrew Pinski <apinski@cavium.com>
* config/mips/mips-cpus.def (octeon+): New CPU.
* config/mips/mips-tables.opt: Regenerate.
* config/mips/mips.h (MIPS_CPP_SET_PROCESSOR): Emit '+' as 'P'.
2011-12-08 Andrew Pinski <apinski@cavium.com>
* cc.target/mips/mult-1.c: Forbid all Octeon processors.
* gcc.target/mips/dmult-1.c: Likewise.
* gcc.target/mips/branch-1.c: Likewise.
* gcc.target/mips/extend-1.c: Likewise.
From-SVN: r182152
2011-12-08 19:56:36 -08:00
Alan Modra
fbf7be801c
re PR libgomp/51376 (libgomp taskwait failure)
...
PR libgomp/51376
* task.c (GOMP_taskwait): Don't access task->children outside of
task_lock mutex region.
(GOMP_task): Likewise.
From-SVN: r182151
2011-12-09 12:51:43 +10:30
GCC Administrator
108ba412c4
Daily bump.
...
From-SVN: r182148
2011-12-09 00:18:44 +00:00
Ian Lance Taylor
ca0401be06
compiler: It's OK to assign a struct with hidden fields in a literal.
...
From-SVN: r182144
2011-12-09 00:16:19 +00:00
Ian Lance Taylor
1fbbc69cdf
compiler: Don't check for hidden fields on struct assignments.
...
From-SVN: r182143
2011-12-08 23:27:33 +00:00
Jason Merrill
0ee1c847f7
re PR c++/51318 (segfault on Eigen3)
...
PR c++/51318
* typeck.c (build_x_conditional_expr): Restrict glvalue games to C++11.
From-SVN: r182142
2011-12-08 17:28:38 -05:00
Jason Merrill
4eefc795c1
re PR c++/51459 ('double free or corruption' involving std::function and lambdas)
...
PR c++/51459
* pt.c (tsubst_expr) [DECL_EXPR]: Handle capture proxies properly.
* semantics.c (insert_capture_proxy): No longer static.
* cp-tree.h: Declare it.
From-SVN: r182141
2011-12-08 17:28:29 -05:00
Bill Schmidt
13a3e5b6d8
re PR middle-end/39976 (Big sixtrack degradation on powerpc 32/64 after revision r146817)
...
2011-12-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
PR middle-end/39976
* tree-ssa-dom.c (enum expr_kind): Add EXPR_PHI.
(struct hashable_expr): Add struct phi field.
(initialize_hash_element): Handle phis; change to use XCNEWVEC.
(hashable_expr_equal_p): Handle phis.
(iterative_hash_hashable_expr): Likewise.
(print_expr_hash_elt): Likewise.
(free_expr_hash_elt): Likewise.
(dom_opt_enter_block): Create equivalences from redundant phis.
(eliminate_redundant_computations): Handle redundant phis.
(lookup_avail_expr): Handle phis.
From-SVN: r182140
2011-12-08 22:00:38 +00:00
Jakub Jelinek
4be257dcc4
re PR tree-optimization/51466 (ICE in gimple_rhs_has_side_effects,)
...
PR tree-optimization/51466
* tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also copy
TREE_SIDE_EFFECTS.
* gcc.c-torture/execute/pr51466.c: New test.
From-SVN: r182136
2011-12-08 20:49:02 +01:00
Tobias Burnus
3215710740
re PR fortran/50815 (ICE on allocation of deferred length character scalar dummy argument when -fbounds-check)
...
2011-12-08 Tobias Burnus <burnus@net-b.de>
PR fortran/50815
* trans-decl.c (add_argument_checking): Skip bound checking
for deferred-length strings.
2011-12-08 Tobias Burnus <burnus@net-b.de>
PR fortran/50815
* gfortran.dg/bounds_check_16.f90: New.
From-SVN: r182134
2011-12-08 20:00:55 +01:00
Tobias Burnus
3787b8ffe0
re PR fortran/51378 ([OOP] Structure constructor wrongly rejects parent components if only child has PRIVATE comps)
...
2011-12-08 Tobias Burnus <burnus@net-b.de>
PR fortran/51378
* symbol.c (gfc_find_component): Fix access check of parent
components.
2011-12-08 Tobias Burnus <burnus@net-b.de>
PR fortran/51378
* gfortran.dg/private_type_14.f90: New.
From-SVN: r182133
2011-12-08 19:56:58 +01:00
Tobias Burnus
14dcdf69d5
re PR libfortran/51407 (Use of BOZ edit descriptors to edit real and complex data and F2008)
...
2011-12-08 Tobias Burnus <burnus@net-b.de>
PR fortran/51407
* io/transfer.c (require_numeric_type): New function.
(formatted_transfer_scalar_read, formatted_transfer_scalar_write):
Use it, allow BOZ edit descriptors with F2008.
2011-12-08 Tobias Burnus <burnus@net-b.de>
PR fortran/51407
* gfortran.dg/io_real_boz_3.f90: New.
* gfortran.dg/io_real_boz_4.f90: New.
* gfortran.dg/io_real_boz_5.f90: New.
From-SVN: r182132
2011-12-08 19:54:27 +01:00
Tobias Burnus
e48cc39155
re PR fortran/51448 (Compiler crash when assigning floating point values of different kinds)
...
2011-12-08 Tobias Burnus <burnus@net-b.de>
PR fortran/51448
* fortran/trans-array.c (get_std_lbound): Fix handling of
conversion functions.
2011-12-08 Tobias Burnus <burnus@net-b.de>
PR fortran/51448
* gfortran.dg/realloc_on_assign_8.f90: New.
From-SVN: r182131
2011-12-08 19:51:28 +01:00
Toon Moene
d62023228d
re PR fortran/51310 (-finit-bla doesn't initialize *all* items of type bla to the requested constant.)
...
2011-12-08 Toon Moene <toon@moene.org>
PR fortran/51310
* invoke.texi: Itemize the cases for which
-finit-<type>=<constant> doesn't work.
From-SVN: r182127
2011-12-08 18:38:32 +00:00
Teresa Johnson
cf0a603a14
movdi-rex64.c: Remove unnecessary unused label.
...
* gcc.target/i386/movdi-rex64.c: Remove unnecessary
unused label.
From-SVN: r182123
2011-12-08 17:01:21 +00:00
Teresa Johnson
828430c993
movdi-rex64.c: Remove unnecessary -Wwrite-strings option.
...
* gcc.target/i386/movdi-rex64.c: Remove unnecessary
-Wwrite-strings option.
From-SVN: r182121
2011-12-08 16:45:21 +00:00
Teresa Johnson
bd531f092d
movdi-rex64.c: New.
...
* gcc.target/i386/movdi-rex64.c: New.
From-SVN: r182119
2011-12-08 15:41:07 +00:00
Richard Guenther
9b854a9760
tree-ssa-operands.c (add_stmt_operand): Do not mark stmts volatile when processing operands of an ADDR_EXPR.
...
2011-12-08 Richard Guenther <rguenther@suse.de>
* tree-ssa-operands.c (add_stmt_operand): Do not mark stmts
volatile when processing operands of an ADDR_EXPR.
(get_indirect_ref_operands): Likewise.
(get_tmr_operands): Likewise.
(get_expr_operands): Likewise.
* gcc.dg/volatile3.c: New testcase.
From-SVN: r182117
2011-12-08 15:08:16 +00:00
Andreas Krebbel
b0a1ac21bd
re PR target/50395 (Infinite loop when bootstrapping java)
...
2011-12-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
PR target/50395
* config/s390/s390.c (s390_mainpool_finish): Emit the jump over
the literal pool as jump insn.
From-SVN: r182116
2011-12-08 14:37:19 +00:00
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