aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2016-07-19builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1...Uros Bizjak38-183/+228
* builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1, HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1, HOST_WIDE_INT_M1 instead of (HOST_WIDE_INT) -1 and HOST_WIDE_INT_M1U instead of (unsigned HOST_WIDE_INT) -1. * combine.c: Ditto. * cse.c: Ditto. * dojump.c: Ditto. * double-int.c: Ditto. * dse.c: Ditto. * dwarf2out.c: Ditto. * expmed.c: Ditto. * expr.c: Ditto. * fold-const.c: Ditto. * function.c: Ditto. * fwprop.c: Ditto. * genmodes.c: Ditto. * hwint.c: Ditto. * hwint.h: Ditto. * ifcvt.c: Ditto. * loop-doloop.c: Ditto. * loop-invariant.c: Ditto. * loop-iv.c: Ditto. * match.pd: Ditto. * optabs.c: Ditto. * real.c: Ditto. * reload.c: Ditto. * rtlanal.c: Ditto. * simplify-rtx.c: Ditto. * stor-layout.c: Ditto. * toplev.c: Ditto. * tree-ssa-loop-ivopts.c: Ditto. * tree-vect-generic.c: Ditto. * tree-vect-patterns.c: Ditto. * tree.c: Ditto. * tree.h: Ditto. * ubsan.c: Ditto. * varasm.c: Ditto. * wide-int-print.cc: Ditto. * wide-int.cc: Ditto. * wide-int.h: Ditto. From-SVN: r238481
2016-07-19selftest.c: gracefully handle NULL in assert_streqDavid Malcolm2-1/+18
gcc/ChangeLog: * selftest.c (selftest::assert_streq): Handle NULL values of val_actual and val_expected. From-SVN: r238479
2016-07-19config.host (m32r): Add m32r/t-m32r to tmake_file.Nick Clifton2-1/+7
* config.host (m32r): Add m32r/t-m32r to tmake_file. Add crtinit.o and crtfini.o to extra_parts. From-SVN: r238478
2016-07-19re PR fortran/71688 (ICE in analyze, at cgraphunit.c:632 with -fcoarray=lib)Martin Jambor4-1/+25
Fix PR fortran/71688 2016-07-19 Martin Jambor <mjambor@suse.cz> PR fortran/71688 * trans-decl.c (gfc_generate_function_code): Use cgraph_get_create_node rather than cgraph_create_node to get a call graph node. testsuite/ gfortran.dg/pr71688.f90: New test. From-SVN: r238476
2016-07-19gimple-fold.c (get_base_constructor): Add VIEW_CONVERT case, handle all ↵Richard Biener6-1/+55
tcc_constant bases and valueize SSA names. 2016-07-19 Richard Biener <rguenther@suse.de> * gimple-fold.c (get_base_constructor): Add VIEW_CONVERT case, handle all tcc_constant bases and valueize SSA names. * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Handle tcc_constant bases. * c-c++-common/vector-subscript-6.c: New testcase. * c-c++-common/vector-subscript-7.c: Likewise. From-SVN: r238475
2016-07-19Fix failing test for targets with sizeof(int) != 4.Senthil Kumar Selvaraj2-0/+10
gcc/testsuite/ 2016-07-19 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com> * gcc.dg/params/blocksort-part.c: Conditionally define Int32 and UInt32 based on __SIZEOF_INT__. From-SVN: r238471
2016-07-19Fix copy&paste bug in function-tests.cDavid Malcolm2-2/+7
gcc/ChangeLog: * function-tests.c (selftest::verify_three_block_rtl_cfg): Verify the flags of the exit block and bb2, not just the entry block. From-SVN: r238470
2016-07-19MAINTAINERS (Write After Approval): Add myself.Fritz Reese2-0/+5
2016-07-19 Fritz Reese <fritzoreese@gmail.com> * MAINTAINERS (Write After Approval): Add myself. From-SVN: r238469
2016-07-19re PR tree-optimization/71901 (ice in find_or_generate_expression)Richard Biener6-31/+75
2016-07-19 Richard Biener <rguenther@suse.de> PR tree-optimization/71901 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add align member, group stuff with the bitfield. (vn_ref_op_align_unit): New inline. * tree-ssa-sccvn.c (copy_reference_ops_from_ref): For ARRAY_REFs record element alignment and operand 3 unchanged. (ao_ref_init_from_vn_reference): Adjust. (valueize_refs_1): Likewise. * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise. * gcc.dg/torture/pr71901.c: New testcase. From-SVN: r238468
2016-07-19re PR tree-optimization/71908 (ICE at -Os and above in both 32-bit and ↵Richard Biener4-2/+53
64-bit modes on x86_64-linux-gnu (get_constraint_for_component_ref)) 2016-07-18 Richard Biener <rguenther@suse.de> PR tree-optimization/71908 * tree-ssa-structalias.c (get_constraint_for_component_ref): Handle symbolic constants in a more reliable way. * gcc.dg/torture/pr71908.c: New testcase. From-SVN: r238467
2016-07-19tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Update comment.Ilya Enkovich3-3/+27
gcc/ * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Update comment. (vect_update_inits_of_drs): Likewise. (vect_create_cond_for_alias_checks): Likewise. * tree-vect-loop.c (vect_get_known_peeling_cost): Likewise. From-SVN: r238466
2016-07-19re PR middle-end/71907 (missing buffer overflow warnings with -flto)Richard Biener3-3/+18
2016-07-19 Richard Biener <rguenther@suse.de> PR lto/71907 * lto-streamer-out.c (DFS::DFS_write_tree_body): For blocks with an abstract origin that is not an inlined function outer scope add a self-reference as abstract origin. * tree-streamer-out.c (write_ts_block_tree_pointers): Likewise. From-SVN: r238456
2016-07-19re PR target/71493 (accidental ABI change for structure return on PowerPC)Michael Meissner5-1/+41
[gcc] 2016-07-18 Michael Meissner <meissner@linux.vnet.ibm.com> PR target/71493 * config/rs6000/rs6000.c (rs6000_function_value): Fix unintentional System V.4 structure return breakage for structures with a single floating point element. [gcc/testsuite] 2016-07-18 Michael Meissner <meissner@linux.vnet.ibm.com> PR target/71493 * gcc.target/powerpc/pr71493-1.c: New test. * gcc.target/powerpc/pr71493-2.c: Likewise. From-SVN: r238454
2016-07-19Daily bump.GCC Administrator1-1/+1
From-SVN: r238453
2016-07-18re PR c++/70869 (internal compiler error: Segmentation fault on array of ↵Jakub Jelinek3-9/+24
pointer to function members) PR c++/70869 PR c++/71054 * cp-gimplify.c (cp_genericize_r): Revert the 2016-07-07 change. * tree.c (cp_walk_subtrees): For DECL_EXPR on DECL_ARTIFICIAL non-static VAR_DECL, walk the decl's DECL_INITIAL, DECL_SIZE and DECL_SIZE_UNIT. From-SVN: r238444
2016-07-18re PR c++/71835 (ICE on invalid C++ code with ambiguous overloaded ↵Jakub Jelinek4-2/+25
operators: tree check: expected tree that contains ‘decl minimal’ structure, have ‘pointer_type’ in convert_like_real, at cp/call.c:6549) PR c++/71835 * call.c (build_op_call_1): Use convert_like_with_context only if cand->fn is a decl. * g++.dg/conversion/ambig3.C: New test. From-SVN: r238443
2016-07-18re PR c++/71828 (ICE on valid C++11 code with constexpr __Complex int ↵Jakub Jelinek4-0/+26
variable declaration: in operand_equal_p, at fold-const.c:2790) PR c++/71828 * constexpr.c (cxx_eval_constant_expression) <case REALPART_EXPR>: For lval don't use cxx_eval_unary_expression and instead recurse and if needed rebuild the reference. * g++.dg/cpp0x/constexpr-71828.C: New test. From-SVN: r238442
2016-07-18re PR c++/71826 (ICE on valid C++ code with ambiguous member lookup: tree ↵Jakub Jelinek4-1/+25
check: expected baselink, have error_mark in tsubst_baselink, at cp/pt.c:13737) PR c++/71826 * pt.c (tsubst_baselink): Only set BASELINK_OPTYPE for BASELINK_P. * g++.dg/template/pr71826.C: New test. From-SVN: r238441
2016-07-18re PR c++/71822 (ICE: in gimplify_expr, at gimplify.c:11025)Jakub Jelinek4-0/+30
PR c++/71822 * cp-gimplify.c (cp_gimplify_expr) <case VEC_INIT_EXPR>: Recursively fold *expr_p before genericizing it. * g++.dg/template/defarg21.C: New test. From-SVN: r238440
2016-07-18re PR c++/71871 (ICE on mixing templates and vector extensions ternary operator)Jakub Jelinek4-2/+40
PR c++/71871 * typeck.c (build_x_conditional_expr): Revert the 2012-10-25 change. * g++.dg/ext/vector31.C: New test. From-SVN: r238439
2016-07-18pr70017.c: Do not check for warning on alpha*-*-*.Uros Bizjak2-26/+36
* gcc.dg/pr70017.c: Do not check for warning on alpha*-*-*. From-SVN: r238438
2016-07-18Demangle C++17 fold-expressions.Jason Merrill3-2/+107
* cp-demangle.c (cplus_demangle_operators): Add f[lrLR]. (d_expression_1): Handle them. (d_maybe_print_fold_expression): New. (d_print_comp_inner): Use it. (d_index_template_argument): Handle negative index. From-SVN: r238437
2016-07-18Clean up optional's comments.Ville Voutilainen2-18/+18
From-SVN: r238436
2016-07-18re PR middle-end/71734 (FAIL: libgomp.fortran/simd4.f90 -O3 -g execution ↵Yuri Rumyantsev4-22/+40
test) gcc/ 2016-07-18 Yuri Rumyantsev <ysrumyan@gmail.com> PR tree-optimization/71734 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Add REF_LOOP argument which contains REF, use it to check safelen, assume that safelen value must be greater 1, fix style. (ref_indep_loop_p_2): Add REF_LOOP argument. (ref_indep_loop_p): Pass LOOP as additional argument to ref_indep_loop_p_2. gcc/testsuite/ 2016-07-18 Yuri Rumyantsev <ysrumyan@gmail.com> PR tree-optimization/71734 * g++.dg/vect/pr70729.cc: Delete redundant dg options, fix style. From-SVN: r238435
2016-07-18Allocate constant size dynamic stack space in the prologueDominik Vogt8-84/+225
The attached patch fixes a warning during Linux kernel compilation on S/390 due to -mwarn-dynamicstack and runtime alignment of stack variables with constant size causing cfun->calls_alloca to be set (even if alloca is not used at all). The patched code places constant size runtime aligned variables in the "virtual stack vars" area instead of creating a "virtual stack dynamic" area. This behaviour is activated by defining #define ALLOCATE_DYNAMIC_STACK_SPACE_IN_PROLOGUE 1 in the backend; otherwise the old logic is used. The kernel uses runtime alignment for the page structure (aligned to 16 bytes), and apart from triggereing the alloca warning (-mwarn-dynamicstack), the current Gcc also generates inefficient code like aghi %r15,-160 # prologue: create stack frame lgr %r11,%r15 # prologue: generate frame pointer aghi %r15,-32 # space for dynamic stack which could be simplified to aghi %r15,-192 (if later optimization passes are able to get rid of the frame pointer). Is there a specific reason why the patched behaviour shouldn't be used for all platforms? -- As the placement of runtime aligned stack variables with constant size is done completely in the middleend, I don't see a way to fix this in the backend. gcc/ChangeLog: 2016-07-18 Dominik Vogt <vogt@linux.vnet.ibm.com> * cfgexpand.c (expand_stack_vars): Implement synamic stack space allocation in the prologue. * explow.c (get_dynamic_stack_base): New function to return an address expression for the dynamic stack base. (get_dynamic_stack_size): New function to do the required dynamic stack space size calculations. (allocate_dynamic_stack_space): Use new functions. (align_dynamic_address): Move some code from allocate_dynamic_stack_space to new function. * explow.h (get_dynamic_stack_base, get_dynamic_stack_size): Export. gcc/testsuite/ChangeLog: 2016-07-18 Dominik Vogt <vogt@linux.vnet.ibm.com> * gcc.target/s390/warn-dynamicstack-1.c: New test. * gcc.dg/stack-usage-2.c (foo3): Adapt expected warning. stack-layout-dynamic-1.c: New test. From-SVN: r238432
2016-07-18S/390: Fix alignment check for literal pool references.Andreas Krebbel4-20/+44
gcc/ChangeLog: 2016-07-18 Andreas Krebbel <krebbel@linux.vnet.ibm.com> * config/s390/s390.c (s390_encode_section_info): Always set notaligned marker if mode size is 0 or no MEM_ALIGN info could be found. gcc/testsuite/ChangeLog: 2016-07-18 Andreas Krebbel <krebbel@linux.vnet.ibm.com> * gcc.target/s390/nolrl-1.c: New test. From-SVN: r238427
2016-07-18re PR tree-optimization/71893 (gfortran.dg ICEs in gcc/tree-ssa-pre.c; ↵Richard Biener3-0/+13
-fcode-hoisting?) 2016-07-18 Richard Biener <rguenther@suse.de> PR tree-optimization/71893 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Compensate for sizetype cast added by array_ref_element_size. * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise. From-SVN: r238426
2016-07-18Daily bump.GCC Administrator1-1/+1
From-SVN: r238424
2016-07-17re PR fortran/71523 (Static variables given automatic initializers with ↵Fritz Reese5-2/+110
-finit-* and -fmax-stack-var-size) 2016-07-17 Fritz Reese <fritzoreese@gmail.com> PR fortran/71523 * trans-decl.c (gfc_finish_var_decl): Replace automatic initializer with a static one. * gfortran.dg/pr71523_1.f90: New test. * gfortran.dg/pr71523_2.f90: New test. From-SVN: r238420
2016-07-17Daily bump.GCC Administrator1-1/+1
From-SVN: r238419
2016-07-16pa.c (hppa_profile_hook): Allocate stack space for register parameters.John David Anglin3-42/+238
* config/pa/pa.c (hppa_profile_hook): Allocate stack space for register parameters. Remove code to initialize argument pointer on TARGET_64BIT. Optimize call to _mcount when it can be reached using a pc-relative branch. Cleanup conditional code. * config/pa/pa.md (call_mcount): New expander. (call_mcount_nonpic): New insn. (call_mcount_pic): New insn and split. (call_mcount_pic_post_reload): New insn. (call_mcount_64bit): New insn and split. (call_mcount_64bit_post_reload): New insn. From-SVN: r238414
2016-07-16nullptr35.C (caught): Fix typo.Andreas Schwab2-1/+5
* g++.dg/cpp0x/nullptr35.C (caught): Fix typo. From-SVN: r238413
2016-07-16Daily bump.GCC Administrator1-1/+1
From-SVN: r238409
2016-07-15Replace references to C++0x with C++11 in commentsJonathan Wakely9-24/+34
* include/bits/algorithmfwd.h: Change C++0x to C++11 in comments. * include/bits/move.h: Likewise. * include/bits/postypes.h: Likewise. * include/debug/bitset: Likewise. * include/ext/pb_ds/detail/type_utils.hpp: Likewise. * include/ext/string_conversions.h: Change C++0x to __cxx11 in comment. * testsuite/27_io/fpos/14320-1.cc: Change C++0x to C++11 in comment. * testsuite/util/thread/all.h: Likewise. From-SVN: r238402
2016-07-15re PR fortran/62125 (Nested select type not accepted (rejects valid))Jerry DeLisle4-1/+50
2016-07-15 Jerry DeLisle <jvdelisle@gcc.gnu.org> Marco Restelli <mrestelli@gmail.com> PR fortran/62125 * symbol.c (select_type_insert_tmp): Recursively call self to take care of nested select type. * gfortran.dg/pr62125.f90: New test. Co-Authored-By: Marco Restelli <mrestelli@gmail.com> From-SVN: r238400
2016-07-15Remove redundant std::move in std::for_eachJonathan Wakely2-2/+5
* include/bits/stl_algo.h (for_each): Remove redundant _GLIBCXX_MOVE and adjust comment. From-SVN: r238399
2016-07-15divkc3-1.c: Require p8vector support.Bill Schmidt3-0/+7
2016-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com> * gcc.target/powerpc/divkc3-1.c: Require p8vector support. * gcc.target/powerpc/mulkc3-1.c: Likewise. From-SVN: r238398
2016-07-15PR c++/71495 - spurious note during SFINAE.Jason Merrill4-2/+22
* call.c (convert_like_real): Mask complain. * semantics.c (perform_koenig_lookup): Likewise. From-SVN: r238397
2016-07-15c++/58796 Make nullptr match exception handlers of pointer typeJonathan Wakely5-4/+89
libstdc++-v3: PR c++/58796 * libsupc++/pbase_type_info.cc (__pbase_type_info::__do_catch): Make nullptr match handlers of pointer type. gcc/testsuite: PR c++/58796 * g++.dg/cpp0x/nullptr21.C: Remove void* handlers. * g++.dg/cpp0x/nullptr35.C: New test. From-SVN: r238396
2016-07-15PR c++/71092 - ICE with array and constexpr.Jason Merrill3-2/+77
* constexpr.c (cxx_eval_call_expression): Fail quietly when cgraph threw away DECL_SAVED_TREE. From-SVN: r238395
2016-07-15PR c++/71117 - core 2189 and generic lambdaJason Merrill4-0/+38
* call.c (add_template_conv_candidate): Disable if there are viable candidates. From-SVN: r238394
2016-07-15PR c++/71511 - ICE on decltype scope in declaration.Jason Merrill3-0/+15
* typeck2.c (cxx_incomplete_type_diagnostic): Handle DECLTYPE_TYPE. From-SVN: r238393
2016-07-15PR c++/71513 - alignas on member enum in templateJason Merrill3-8/+27
* pt.c (tsubst_attributes): Fix loop logic. From-SVN: r238392
2016-07-15PR c++/71604 - type definition in range-based forJason Merrill4-5/+36
PR c++/54430 * parser.c (cp_parser_range_for): Modify IDENTIFIER_BINDING directly. (cp_parser_simple_declaration): Diagnose type definition in for-range-declaration. From-SVN: r238391
2016-07-15PR c++/71711 - mangle C++1z fold-expressions.Jason Merrill6-5/+88
* operators.def: Add *_FOLD_EXPR. * cp-tree.h (FOLD_EXPR_P): Parenthesize. * mangle.c (write_expression): Handle fold-expressions. * pt.c (tsubst_unary_left_fold, tsubst_binary_left_fold) (tsubst_unary_right_fold, tsubst_binary_right_fold): Handle partial instantiation. From-SVN: r238390
2016-07-15PR c++/71814 - mangling sizeof... (sP and sZ)Jason Merrill12-15/+218
gcc/cp/ * mangle.c (write_expression): Handle sizeof... an argument pack. libiberty/ * cp-demangle.c (cplus_demangle_operators): Add sP and sZ. (d_print_comp_inner): Handle them. (d_template_args_1): Split out from d_template_args. (d_args_length): New. From-SVN: r238389
2016-07-15Update -fabi-version default to 11.Jason Merrill3-4/+8
* c-opts.c (c_common_post_options): Update -fabi-version default to 11. From-SVN: r238388
2016-07-15PR c++/71718 - infinite recursion and alias templateJason Merrill3-0/+28
* pt.c (push_tinst_level_loc): Set at_eof before fatal_error. From-SVN: r238387
2016-07-15PR c++/70824 - initializer_list in templateJason Merrill3-2/+28
* init.c (constant_value_1): Don't instantiated DECL_INITIAL of artificial variables. From-SVN: r238386
2016-07-15Implement C++17 P0025 clamp.Edward Smith-Rowland8-1/+329
2016-07-15 Edward Smith-Rowland <3dw4rd@verizon.net> Implement C++17 P0025 clamp. * include/bits/algorithmfwd.h: Declare clamp overloads. * include/bits/stl_algo.h: Implement clamp. Feature __cpp_lib_clamp. * testsuite/25_algorithms/clamp/1.cc: New test. * testsuite/25_algorithms/clamp/2.cc: New test. * testsuite/25_algorithms/clamp/constexpr.cc: New test. * testsuite/25_algorithms/clamp/requirements/explicit_instantiation/ 1.cc: New test. * testsuite/25_algorithms/clamp/requirements/explicit_instantiation/ pod.cc: New test. From-SVN: r238383