aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2015-06-16* include/bits/allocated_ptr.h (__allocated_ptr): Use __addressof.Jonathan Wakely2-2/+5
From-SVN: r224540
2015-06-16list.tcc (list::operator=(const list&), [...]): Use __addressof instead of ↵Jonathan Wakely7-25/+69
operator&. * include/bits/list.tcc (list::operator=(const list&), list::merge): Use __addressof instead of operator&. (list::sort): Use array-to-pointer decay instead of operator&. * include/bits/stl_list.h (list::splice): Use __addressof instead of operator&. * include/debug/formatter.h (_Error_formatter::_Parameter::_Parameter): Likewise. * include/debug/functions.h (__check_singular): Likewise. * include/debug/list (list::splice, list::merge): Likewise. * testsuite/23_containers/list/modifiers/addressof.cc: New. From-SVN: r224539
2015-06-16re PR c++/59682 (Invalid syntax accepted: new-placement without expression-list)Paolo Carlini4-0/+16
/cp 2015-06-16 Paolo Carlini <paolo.carlini@oracle.com> PR c++/59682 * parser.c (cp_parser_new_placement): Reject an empty expression-list. /testsuite 2015-06-16 Paolo Carlini <paolo.carlini@oracle.com> PR c++/59682 * g++.dg/parse/new-placement1.C: New. From-SVN: r224537
2015-06-16jit: Add a test for compound assignmentDavid Malcolm3-0/+172
gcc/testsuite/ChangeLog: * jit.dg/all-non-failing-tests.h: Add test-compound-assignment.c. * jit.dg/test-compound-assignment.c: New testcase. From-SVN: r224536
2015-06-16PR jit/66539: Properly add testcaseDavid Malcolm2-0/+9
gcc/testsuite/ChangeLog: PR jit/66539 * jit.dg/all-non-failing-tests.h: Add test-debug-strings.c to "testcases" array. From-SVN: r224535
2015-06-16re PR c++/66536 (ICE in build_ctor_subob_ref, at cp/tree.c:2534)Jason Merrill3-1/+29
PR c++/66536 * tree.c (replace_placeholders_r) [CONSTRUCTOR]: Handle type mismatch. From-SVN: r224534
2015-06-16re PR c++/58063 (default arguments evaluated twice per call)Jason Merrill3-0/+54
PR c++/58063 * tree.c (bot_manip): Remap SAVE_EXPR. From-SVN: r224533
2015-06-16PR jit/66539: Add parentheses as needed to gcc_jit_object_get_debug_stringDavid Malcolm7-31/+447
gcc/jit/ChangeLog: PR jit/66539 * jit-recording.c: Within namespace gcc::jit::recording:: (rvalue::get_debug_string_parens): New function. (binary_op::make_debug_string): Update to mimic C precedence rules. (binary_op_precedence): New array. (binary_op::get_precedence): New function. (comparison::make_debug_string): Update to mimic C precedence rules. (comparison_precedence): New array. (comparison::get_precedence): New function. (cast::make_debug_string): Update to mimic C precedence rules. (call::make_debug_string): Likewise. (call_through_ptr::make_debug_string): Likewise. (array_access::make_debug_string): Likewise. (access_field_of_lvalue::make_debug_string): Likewise. (access_field_rvalue::make_debug_string): Likewise. (dereference_field_rvalue::make_debug_string): Likewise. (dereference_rvalue::make_debug_string): Likewise. (get_address_of_lvalue::make_debug_string): Likewise. * jit-recording.h: Within namespace gcc::jit::recording:: (precedence): New enum. (rvalue::rvalue): Initialize field "m_parenthesized_string". (rvalue::get_debug_string_parens): New method. (rvalue::get_precedence): New pure virtual function. (rvalue::m_parenthesized_string): New field. (param::get_precedence): New function. (global::get_precedence): New function. (memento_of_new_rvalue_from_const::get_precedence): New function. (memento_of_new_string_literal::get_precedence): New function. (unary_op::get_precedence): New function. (binary_op::get_precedence): New function. (comparison::get_precedence): New function. (cast::get_precedence): New function. (call::get_precedence): New function. (call_through_ptr::get_precedence): New function. (array_access::get_precedence): New function. (access_field_of_lvalue::get_precedence): New function. (access_field_rvalue::get_precedence): New function. (dereference_field_rvalue::get_precedence): New function. (dereference_rvalue::get_precedence): New function. (get_address_of_lvalue::get_precedence): New function. (local::get_precedence): New function. gcc/testsuite/ChangeLog: PR jit/66539 * jit.dg/all-non-failing-tests.h: Add test-debug-strings.c. * jit.dg/test-debug-strings.c: New test case. * jit.dg/test-quadratic.c (make_calc_discriminant): Verify that the discriminant has a sane debug string. From-SVN: r224531
2015-06-16re PR libstdc++/65393 (std::thread shared_ptr inefficiency)Jonathan Wakely2-5/+12
PR libstdc++/65393 * src/c++11/thread.cc (thread::_M_make_thread): Replace shared_ptr copies with moves. From-SVN: r224530
2015-06-16* ChangeLog: Fixup PR number.Uros Bizjak2-4/+4
From-SVN: r224529
2015-06-16* ChangeLog: Added missing ChangeLog entries.Uros Bizjak2-0/+18
From-SVN: r224528
2015-06-16re PR target/56766 (Fails to combine (vec_select (vec_concat ...)) to ↵Uros Bizjak3-0/+228
(vec_merge ...)) PR target/56776 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern. (*avx_addsubv4df3_1s): Ditto. (*sse3_addsubv2df3_1): Ditto. (*sse3_addsubv2df3_1s): Ditto. (*avx_addsubv8sf3_1): Ditto. (*avx_addsubv8sf3_1s): Ditto. (*sse3_addsubv4sf3_1): Ditto. (*sse3_addsubv4sf3_1s): Ditto. testsuite/ChangeLog: PR target/56776 * gcc.target/i386/pr56776-1.c: New test. * gcc.target/i386/pr56776-2.c: Ditto. From-SVN: r224527
2015-06-16loongson-shift-count-truncated-1.c: Skip on mips*-mti-linux* and ↵Steve Ellcey3-2/+8
mips*-img-linux* targets. 2015-06-16 Steve Ellcey <sellcey@imgtec.com> * gcc.target/mips/loongson-shift-count-truncated-1.c: Skip on mips*-mti-linux* and mips*-img-linux* targets. * gcc.target/mips/loongson-simd.c: Ditto. From-SVN: r224526
2015-06-16mti-linux.h (MIPS_SYSVERSION_SPEC): New.Steve Ellcey4-37/+175
2015-06-16 Steve Ellcey <sellcey@imgtec.com> * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New. (SYSROOT_SUFFIX_SPEC): Update. (SYSROOT_HEADERS_SUFFIX_SPEC): New. (STARTFILE_PREFIX_SPEC): Update. * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove. (MULTILIB_REQUIRED): New. (MULTILIB_OSDIRNAMES): New. * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove. (MULTILIB_REQUIRED): New. (MULTILIB_OSDIRNAMES): New. From-SVN: r224525
2015-06-16re PR c++/66387 (ICE in make_decl_rtl with lambda)Jason Merrill4-4/+132
PR c++/66387 * pt.c (tsubst_copy) [VAR_DECL]: Use process_outer_var_ref. From-SVN: r224521
2015-06-16aarch64-arches.def: Add "armv8.1-a".Matthew Wahab5-4/+38
2015-06-16 Matthew Wahab <matthew.wahab@arm.com> * config/aarch64/aarch64-arches.def: Add "armv8.1-a". * config/aarch64/aarch64-options-extensions.def: Update "fP", "simd" and "crypto". Add "lse", "pan", "lor" and "rdma". * gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New. (AARCH64_FL_PAN): New. (AARCH64_FL_LOR): New. (AARCH64_FL_RDMA): New. (AARCH64_FL_FOR_ARCH8_1): New. * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to -march. Add "lse", "pan", "lor", "rdma" to feature modifiers. From-SVN: r224519
2015-06-16Fallout for new memory statistics infrastructure.Martin Liska3-1/+10
* bitmap.c (dump_bitmap_statistics): Fix GNU coding style. * hash-table.c (void dump_hash_table_loc_statistics): Add missing guard. From-SVN: r224518
2015-06-16* ChangeLog: Remove duplicate entry.Uros Bizjak1-8/+2
From-SVN: r224515
2015-06-16tree-vect-stmts.c (vectorizable_store): Adjust.Richard Biener5-43/+46
2015-06-16 Richard Biener <rguenther@suse.de> * tree-vect-stmts.c (vectorizable_store): Adjust. (vectorizable_load): Likewise. * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Simplify. (vect_create_data_ref_ptr): Likewise. (bump_vector_ptr): Adjust. * gcc.target/i386/recip-vec-sqrtf-avx.c: Disable unrolling. From-SVN: r224514
2015-06-16[Patch Testsuite obvious] gcc.target/arm/pr65647.c should notJames Greenhalgh2-0/+7
unconditionally add -mfloat-abi=soft gcc/testsuite/ * gcc.target/arm/pr65647.c: Do not override -mfloat-abi directives passed by the testsuite driver. From-SVN: r224512
2015-06-16tree-vect-stmts.c (vectorizable_load): Properly start loads with the first ↵Richard Biener4-10/+60
element if this is grouped loads. 2015-06-16 Richard Biener <rguenther@suse.de> * tree-vect-stmts.c (vectorizable_load): Properly start loads with the first element if this is grouped loads. * gcc.dg/vect/slp-perm-11.c: New testcase. From-SVN: r224511
2015-06-16ARM][obvious] Fix gcc.target/arm/thumb-ifcvt.cChristophe Lyon2-1/+6
2015-06-16 Christophe Lyon <christophe.lyon@linaro.org> * gcc.target/arm/thumb-ifcvt.c: Add -mno-restrict-it to dg-options. From-SVN: r224509
2015-06-16[AArch64 Testsuite obvious] Reinstate torture-init and torture-finalizeJames Greenhalgh2-0/+7
in advsimd-intrinsics.exp gcc/testsuite/ * gcc.target/aarch64/advsimd-intrinsics/advsimd-intrinsics.exp: Reinstate calls to torture-init and torture-finalize. From-SVN: r224507
2015-06-16[ARM Churn] Rename LOGICAL_OP_NON_SC to LOGICAL_OP_NON_SHORT_CIRCUITJames Greenhalgh3-45/+74
gcc/ChangeLog: * config/arm/arm-protos.h (struct tune_params): Rename log_op_non_sc to log_op_non_short_circuit, and rename enum values to expand SC to SHORT_CIRCUIT. * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC to LOG_OP_NON_SHORT_CIRCUIT. (arm_fastmul_tune):Likewise (arm_strongarm_tune): Likewise. (arm_xscale_tune): Likewise. (arm_9e_tune): Likewise. (arm_marvell_pj4_tune): Likewise. (arm_v6t2_tune): Likewise. (arm_cortex_tune): Likewise. (arm_cortex_a8_tune): Likewise. (arm_cortex_a7_tune): Likewise. (arm_cortex_a15_tune): Likewise. (arm_cortex_a53_tune): Likewise. (arm_cortex_a57_tune): Likewise. (arm_xgene1_tune): Likewise. (arm_cortex_a5_tune): Likewise. (arm_cortex_a9_tune): Likewise. (arm_cortex_a12_tune): Likewise. (arm_v7m_tune): Likewise. (arm_cortex_m7_tune): Likewise. (arm_v6m_tune): Likewise. (arm_fa726te_tune): Likewise. From-SVN: r224506
2015-06-16[ARM][obvious] Fix gcc.target/arm/attr_thumb.cKyrylo Tkachov2-1/+5
* gcc.target/arm/attr_thumb.c: Add -mno-restrict-it to dg-options. From-SVN: r224504
2015-06-16re PR c++/58583 ([c++11] ICE with invalid non-static data member ↵Nathan Sidwell5-8/+67
initialization in template) cp/ PR c++/58583 * cp-tree.h (DECL_INSTANTIATING_NSDMI_P): New. * init.c (get_nsdmi): Check for DEFAULT_ARG in template case and protect it from recursive instantiation. testsuite/ PR c++/58583 * g++.dg/cpp0x/nsdmi-template14.C: New test. From-SVN: r224502
2015-06-16Daily bump.GCC Administrator1-1/+1
From-SVN: r224500
2015-06-15escape: Analyze binary expressions.Ian Lance Taylor2-17/+34
Binary expressions might contain function calls that cause an object to escape. Previously, there were not analyzed. Reviewed-on: https://go-review.googlesource.com/10660 From-SVN: r224496
2015-06-15altivec.md: Delete UNSPEC_VMLADDUHM.David Edelsohn2-61/+62
* altivec.md: Delete UNSPEC_VMLADDUHM. (mulv4si3_p8): New pattern. (mulv4si3): Use it for POWER8. (mulv8hi3): Use vmladduhm with zero addend. (altivec_vmladduhm): Descriptive RTL. From-SVN: r224494
2015-06-15aarch64.md (mov<mode>_aarch64): Change alternative 2 to use neon_move ↵Jim Wilson3-19/+36
instead of mov_imm. gcc/ * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2 to use neon_move instead of mov_imm. (movdi_aarch64): Change alternative 14 to use neon_move not fmov. (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd. * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move aarch64_float_const_zero_rtx_p check before TFmode check. * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is an fp zero. (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly code and attributes to match. Change condition from register_operand to aarch64_reg_or_fp_zero for op1. Change type for ldp from neon_load1_2reg to load2. Change type for stp from neon_store1_2reg to store2. From-SVN: r224493
2015-06-15re PR c++/51048 (Class template inheritance doesn't work well with ↵Paolo Carlini4-3/+37
function-local types) /cp 2015-06-15 Paolo Carlini <paolo.carlini@oracle.com> PR c++/51048 * decl2.c (no_linkage_error): Do not issue a permerror if the DECL using a local type is pure virtual. /testsuite 2015-06-15 Paolo Carlini <paolo.carlini@oracle.com> PR c++/51048 * g++.dg/cpp0x/local-type1.C: New. From-SVN: r224492
2015-06-15Remove dg-options -O2 in libgomp.cTom de Vries39-41/+52
2015-06-15 Tom de Vries <tom@codesourcery.com> * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2". Use dg-additional-options for any remaining options. * testsuite/libgomp.c/atomic-2.c: Same. * testsuite/libgomp.c/atomic-4.c: Same. * testsuite/libgomp.c/atomic-5.c: Same. * testsuite/libgomp.c/atomic-6.c: Same. * testsuite/libgomp.c/autopar-1.c: Same. * testsuite/libgomp.c/copyin-1.c: Same. * testsuite/libgomp.c/copyin-2.c: Same. * testsuite/libgomp.c/copyin-3.c: Same. * testsuite/libgomp.c/examples-4/e.53.5.c: Same. * testsuite/libgomp.c/nestedfn-5.c: Same. * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same. * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same. * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same. * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same. * testsuite/libgomp.c/pr32362-1.c: Same. * testsuite/libgomp.c/pr32362-2.c: Same. * testsuite/libgomp.c/pr32362-3.c: Same. * testsuite/libgomp.c/pr39591-1.c: Same. * testsuite/libgomp.c/pr39591-2.c: Same. * testsuite/libgomp.c/pr39591-3.c: Same. * testsuite/libgomp.c/pr58392.c: Same. * testsuite/libgomp.c/pr58756.c: Same. * testsuite/libgomp.c/simd-1.c: Same. * testsuite/libgomp.c/simd-10.c: Same. * testsuite/libgomp.c/simd-11.c: Same. * testsuite/libgomp.c/simd-12.c: Same. * testsuite/libgomp.c/simd-13.c: Same. * testsuite/libgomp.c/simd-14.c: Same. * testsuite/libgomp.c/simd-15.c: Same. * testsuite/libgomp.c/simd-2.c: Same. * testsuite/libgomp.c/simd-3.c: Same. * testsuite/libgomp.c/simd-4.c: Same. * testsuite/libgomp.c/simd-5.c: Same. * testsuite/libgomp.c/simd-6.c: Same. * testsuite/libgomp.c/simd-7.c: Same. * testsuite/libgomp.c/simd-8.c: Same. * testsuite/libgomp.c/simd-9.c: Same. From-SVN: r224489
2015-06-15Add MERGE file to track the git revision of the most recent change inIan Lance Taylor1-0/+4
the master gofrontend repository. From-SVN: r224488
2015-06-15compiler: Don't crash when dumping ast of empty block.Ian Lance Taylor1-1/+7
Fixes golang/go#10420. From-SVN: r224487
2015-06-15re PR debug/66535 (segfault in gen_subprogram_die after debug-early merge)Aldy Hernandez5-1/+69
PR debug/66535 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if there is no parent. From-SVN: r224486
2015-06-15Fix typo in libgomp/testsuite/libgomp.c/pr35625.cTom de Vries2-1/+5
2015-06-15 Tom de Vries <tom@codesourcery.com> * testsuite/libgomp.c/pr35625.c: Fix typo. From-SVN: r224483
2015-06-15Remove -fopenmp in dg-options in libgomp.cTom de Vries13-12/+20
2015-06-15 Tom de Vries <tom@codesourcery.com> * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting in dg-options. * testsuite/libgomp.c/atomic-3.c: Same. * testsuite/libgomp.c/debug-1.c: Same. * testsuite/libgomp.c/nqueens-1.c: Same. * testsuite/libgomp.c/pr26171.c: Same. * testsuite/libgomp.c/pr48591.c: Same. * testsuite/libgomp.c/pr64824.c: Same. * testsuite/libgomp.c/pr64868.c: Same. * testsuite/libgomp.c/pr66133.c: Same. * testsuite/libgomp.c/pr66199-1.c: Same. * testsuite/libgomp.c/pr66199-2.c: Same. * testsuite/libgomp.c/target-8.c: Same. From-SVN: r224480
2015-06-15Use dg-additional-options for -std={gnu99,c99}Tom de Vries9-8/+20
2015-06-15 Tom de Vries <tom@codesourcery.com> * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for -std={gnu99,c99}. * testsuite/libgomp.c/for-1.c: Same. * testsuite/libgomp.c/for-2.c: Same. * testsuite/libgomp.c/for-3.c: Same. * testsuite/libgomp.c/pr35625.c: Same. * testsuite/libgomp.c/pr39154.c: Same. * testsuite/libgomp.c/simd-16.c: Same. * testsuite/libgomp.c/simd-17.c: Same. From-SVN: r224479
2015-06-15re PR fortran/44672 ([F08] ALLOCATE with SOURCE and no array-spec)Andre Vehreschild11-122/+472
gcc/testsuite/ChangeLog: 2015-06-15 Andre Vehreschild <vehre@gmx.de> PR fortran/44672 PR fortran/45440 PR fortran/57307 * gfortran.dg/allocate_with_source_3.f90: Removed check for unimplemented error. * gfortran.dg/allocate_with_source_7.f08: New test. * gfortran.dg/allocate_with_source_8.f08: New test. gcc/fortran/ChangeLog: 2015-06-15 Andre Vehreschild <vehre@gmx.de> PR fortran/44672 PR fortran/45440 PR fortran/57307 * gfortran.h: Extend gfc_code.ext.alloc to carry a flag indicating that the array specification has to be taken from expr3. * resolve.c (resolve_allocate_expr): Add F2008 notify and flag indicating source driven array spec. (resolve_allocate_deallocate): Check for source driven array spec, when array to allocate has no explicit array spec. * trans-array.c (gfc_array_init_size): Get lower and upper bound from a tree array descriptor, except when the source expression is an array-constructor which is fixed to be one-based. (retrieve_last_ref): Extracted from gfc_array_allocate(). (gfc_array_allocate): Enable allocate(array, source= array_expression) as specified by F2008:C633. (gfc_conv_expr_descriptor): Add class tree expression into the saved descriptor for class arrays. * trans-array.h: Add temporary array descriptor to gfc_array_allocate (). * trans-expr.c (gfc_conv_procedure_call): Special handling for _copy() routine translation, that comes without an interface. Third and fourth argument are now passed by value. * trans-stmt.c (gfc_trans_allocate): Get expr3 array descriptor for temporary arrays to allow allocate(array, source = array_expression) for array without array specification. From-SVN: r224477
2015-06-15[AArch64] Change %ld to %wd for HOST_WIDE_INT parameter.Shiva Chen2-2/+7
From-SVN: r224476
2015-06-15Daily bump.GCC Administrator1-1/+1
From-SVN: r224475
2015-06-14re PR ipa/66181 (/usr/include/bits/types.h:134:16: ICE: verify_type failed)Jan Hubicka6-4/+19
PR ipa/66181 * lto.c (compare_tree_sccs_1): Do not compare TYPE_NO_FORCE_BLK. * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK. * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream TYPE_NO_FORCE_BLK. * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise. From-SVN: r224471
2015-06-14rtl.h (classify_insn): Declare.Richard Sandiford7-117/+114
gcc/ * rtl.h (classify_insn): Declare. * emit-rtl.c (classify_insn): Move to... * rtl.c: ...here and add generator support. * gensupport.h (get_emit_function, needs_barrier_p): Declare. * gensupport.c (get_emit_function, needs_barrier_p): New functions. * genemit.c (gen_emit_seq): New function. (gen_expand, gen_split): Use it. From-SVN: r224470
2015-06-14* sv.po: Update.Joseph Myers2-959/+643
From-SVN: r224468
2015-06-14crontab: Disable snapshots from the 4.8 branch.Richard Biener2-1/+4
2015-06-14 Richard Biener <rguenther@suse.de> * crontab: Disable snapshots from the 4.8 branch. From-SVN: r224466
2015-06-14re PR middle-end/66325 (ICE in gcc.c-torture/execute/930408-1.c, verify_type ↵Jan Hubicka2-1/+8
fails with --enable-checking=yes on arm-none-eabi) PR middle-end/66325 * c-decl.c (start_enum): Set TYPE_PACKED consistently among type variants. From-SVN: r224463
2015-06-14intrinsic.texi: Change \leq to < in descrition of imaginary part in argument ↵Thomas Koenig2-1/+6
to log. 2015-06-14 Thomas Koenig <tkoenig@gcc.gnu.org> * intrinsic.texi: Change \leq to < in descrition of imaginary part in argument to log. From-SVN: r224462
2015-06-14Daily bump.GCC Administrator1-1/+1
From-SVN: r224461
2015-06-13Fix comment documenting make_vector_statPatrick Palka2-1/+6
* tree.c (make_vector_stat): Fix comment to state that the function returns a VECTOR_CST. From-SVN: r224457
2015-06-13Remove stale commentary in cp/call.cPatrick Palka2-31/+5
* call.c: Remove comment documenting the long-deleted function build_method_call. From-SVN: r224456