aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2015-12-20re PR tree-optimization/64910 (tree reassociation results in poor code)Jeff Law4-1/+33
PR tree-optimization/64910 * config/i386/i386.md (testqi_ext_3): Allow HImode. PR tree-optimization/64910 * gcc.target/i386/bittest.c: New test. From-SVN: r231871
2015-12-20re PR c++/67411 (internal compiler error: in tsubst_copy, at cp/pt.c:13473)Jason Merrill2-1/+4
PR c++/67411 * decl2.c (decl_maybe_constant_var_p): Use DECL_HAS_VALUE_EXPR_P. From-SVN: r231869
2015-12-21Daily bump.GCC Administrator1-1/+1
From-SVN: r231867
2015-12-202015-12-20 Andrew Pinsi <apinski@cavium.com>Andrew Pinski2-1/+7
* config/aarch64/atomics.md (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): Add early clobber to the scratch register. From-SVN: r231864
2015-12-20re PR c++/67411 (internal compiler error: in tsubst_copy, at cp/pt.c:13473)Jason Merrill7-24/+98
PR c++/67411 * lambda.c (generic_lambda_fn_p): Split out from... (maybe_add_lambda_conv_op): ...here. * semantics.c (process_outer_var_ref): Don't defer maybe-constant variables in a generic lambda. * pt.c (instantiate_non_dependent_or_null): New. * init.c (constant_value_1): Use it. * cp-tree.h: Declare it and generic_lambda_fn_p. From-SVN: r231863
2015-12-20re PR c++/67411 (internal compiler error: in tsubst_copy, at cp/pt.c:13473)Jason Merrill3-0/+26
PR c++/67411 * decl2.c (decl_maybe_constant_var_p): A proxy isn't constant. From-SVN: r231862
2015-12-20utils2.c (gnat_rewrite_reference): New case identical to FLOAT_EXPR.Eric Botcazou5-0/+28
* gcc-interface/utils2.c (gnat_rewrite_reference) <REALPART_EXPR>: New case identical to FLOAT_EXPR. <IMAGPART_EXPR>: Likewise. From-SVN: r231861
2015-12-20decl.c (gnat_to_gnu_entity): During layout in type_annotate_only mode...Eric Botcazou2-11/+53
* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: During layout in type_annotate_only mode, skip discriminants of derived tagged types renaming those of the parent type. In type_annotate_only mode, if the type is tagged, do not override a size clause but take into account the alignment of the tag. (annotate_rep): In type_annotate_only mode, deal with discriminants of derived tagged types renaming those of the parent type. From-SVN: r231860
2015-12-20utils.c (maybe_pad_type): In type_annotate_only mode...Eric Botcazou2-8/+23
* gcc-interface/utils.c (maybe_pad_type): In type_annotate_only mode, retrieve the component type if this is an array and do not issue the warning for concurrent types. From-SVN: r231859
2015-12-20This series of patches fix PR61441.Sujoy Saraswati2-7/+6
This series of patches fix PR61441. This patch removes flag_errno_math check for RINT, treating it similar to nearbyint. Bootstrapped & regression-tested on x86_64-linux-gnu. gcc/ * match.pd (f(x) -> x): Removed flag_errno_math check for RINT. From-SVN: r231858
2015-12-20This series of patches are for fixing PR61441.Sujoy Saraswati3-3/+12
This series of patches are for fixing PR61441. This patch modifies code to use REAL_VALUE_ISSIGNALING_NAN instead of REAL_VALUE_ISNAN to avoid the operatins only for sNaN operands. Bootstrapped & regression-tested on x86_64-linux-gnu. gcc/ * fold-const.c (const_binop): Use REAL_VALUE_ISSIGNALING_NAN instead of REAL_VALUE_ISNAN to avoid the operation for sNaN operands. * simplify-rtx.c (simplify_const_binary_operation): Same. From-SVN: r231857
2015-12-20re PR tree-optimization/65337 (LTO bootstrap failure with Ada enabled)Jan Hubicka4-86/+77
PR middle-end/65337 * tree-ssa-dce.c (bb_postorder): New static var. (forward_edge_to_pdom): Remove. (remove_dead_stmt): Instead of redirecting edges only keep an edge on a path to nearest live BB. (eliminate_unnecessary_stmts): Free bb_postorder. * cfganal.c (dfs_find_deadend): Add START_POINTES. * cfganal.h (inverted_post_order_compute): Update prototype. From-SVN: r231856
2015-12-20Daily bump.GCC Administrator1-1/+1
From-SVN: r231855
2015-12-19re PR rtl-optimization/68910 (huge stack frame and poor code with ↵Eric Botcazou5-171/+66
instruction scheduling at -O2) PR rtl-optimization/68910 * emit-rtl.c (set_unique_reg_note) <>REG_EQUAL>: Add bypass for USEs. * config/sparc/sparc.md (anddi3): Enable only in 64-bit mode. (iordi3): Likewise. (xordi3): Likewise. (one_cmpldi2): Likewise. (*anddi3_sp32): Delete. (*and_not_di_sp32): Likewise. (*iordi3_sp32): Likewise. (*or_not_di_sp32): Likewise. (*xordi3_sp32): Likewise. (*xor_not_di_sp32): Likewise. (32-bit DImode logical operations splitter): Likewise. (*one_cmpldi2_sp32): Likewise. From-SVN: r231851
2015-12-19arc.md (*storeqi_update): Use 'memory_operand' and fix RTL pattern to ↵Andrew Burgess3-30/+21
include the plus. 2015-12-19 Andrew Burgess <andrew.burgess@embecosm.com> * config/arc/arc.md (*storeqi_update): Use 'memory_operand' and fix RTL pattern to include the plus. (*storehi_update): Likewise. (*storesi_update): Likewise. (*storesf_update): Likewise. * config/arc/predicates.md (store_update_operand): Delete. From-SVN: r231850
2015-12-19arc.md (*loadqi_update): Use new 'any_mem_operand' and fix RTL pattern to ↵Andrew Burgess5-42/+65
include the plus. gcc: 2015-12-19 Andrew Burgess <andrew.burgess@embecosm.com> * config/arc/arc.md (*loadqi_update): Use new 'any_mem_operand' and fix RTL pattern to include the plus. (*load_zeroextendqisi_update): Likewise. (*load_signextendqisi_update): Likewise. (*loadhi_update): Likewise. (*load_zeroextendhisi_update): Likewise. (*load_signextendhisi_update): Likewise. (*loadsi_update): Likewise. (*loadsf_update): Likewise. * config/arc/predicates.md (load_update_operand): Delete. (any_mem_operand): New predicate. gcc/testsuite: 2015-12-19 Andrew Burgess <andrew.burgess@embecosm.com> * gcc.target/arc/load-update.c: New file. From-SVN: r231849
2015-12-19This series of patches fix PR61441. This patch adds REAL_VALUE_ISSIGNALING_NAN.Sujoy Saraswati3-0/+18
Bootstrapped & regression-tested on x86_64-linux-gnu. gcc/ * real.c (real_issignaling_nan): New. * real.h (real_issignaling_nan, REAL_VALUE_ISSIGNALING_NAN): New. From-SVN: r231848
2015-12-19re PR target/68729 (../Xbae/Methods.c:1772:1: ICE: in extract_insn, at ↵John David Anglin2-45/+68
recog.c:2343) PR target/68729 * config/pa/pa.c (pa_emit_move_sequence): Reorganize handling of floating-point reloads. Only reload operands that are not valid floating-point memory operands. From-SVN: r231845
2015-12-19Daily bump.GCC Administrator1-1/+1
From-SVN: r231844
2015-12-18Fix PR c++/68978 (bogus error: lvalue required as left operand of assignment)Patrick Palka4-0/+55
gcc/cp/ChangeLog: PR c++/68978 * tree.c (lvalue_kind) [MODOP_EXPR]: New case. gcc/testsuite/ChangeLog: PR c++/68978 * g++.dg/template/pr68978.C: New test. From-SVN: r231841
2015-12-18re PR debug/68860 (FAIL: gcc.dg/guality/pr36728-1.c -flto -O3 -g line 17 ↵Jakub Jelinek7-82/+334
arg1 == 1) PR debug/68860 * ipa-split.c (split_function): Only perform caller side modifications for decl_debug_args here. * cgraph.c: Include gimplify.h. (cgraph_edge::redirect_call_stmt_to_callee): Add caller side debug stmts for decl_debug_args. Spelling fix in a comment. * tree-inline.c (tree_function_versioning): Populate decl_debug_args for args_to_skip arguments and add callee side debug stmts. Formatting fixes. Avoid shadowing i variable. * gcc.dg/guality/pr68860-1.c: New test. * gcc.dg/guality/pr68860-2.c: New test. From-SVN: r231840
2015-12-18Fix a regression introduced by the fix of libstdc++/68276.Ville Voutilainen2-1/+13
2015-12-18 Ville Voutilainen <ville.voutilainen@gmail.com> Fix a regression introduced by the fix of libstdc++/68276. * src/c++11/ios.cc (_M_grow_words): Catch bad_alloc again so that bad_array_new_length is handled properly. From-SVN: r231839
2015-12-18target-supports.exp (check_effective_target_cilkplus): Not nvptx.Nathan Sidwell4-3/+14
* lib/target-supports.exp (check_effective_target_cilkplus): Not nvptx. * c-c++-common/attr-simd-3.c: Require cilkplus. * gcc.dg/graphite/id-28.c: Likewise. From-SVN: r231838
2015-12-18nvptx.c (nvptx_maybe_convert_symbolic_operand): Remove UNSPEC_TO_GENERIC ↵Nathan Sidwell3-36/+30
generation. * config/nvptx/nvptx.c (nvptx_maybe_convert_symbolic_operand): Remove UNSPEC_TO_GENERIC generation. (nvptx_output_mov_insn): Generate cvta for symbolic src. * config/nvptx/nvptx.md (nvptx_register_operand): Allow hard reg. (nvptx_reg_or_mem_operand): Likewise. (nvptx_nonmemory_operand): Likewise. (nvptx_general_operand): Delete. (*mov<mode>_insn): Use nonimmediate_operand, permit hardregs. (oacc_fork, oacc_join): Use general_operand. From-SVN: r231837
2015-12-18Ignore -fdebug-prefix-map in producer string (by Daniel Kahn Gillmor)Bernd Schmidt4-0/+21
* dwarf2out.c (gen_producer_string): Ignore -fdebug-prefix-map. testsuite/ * gcc.dg/debug/dwarf2/prod-options.c: New test. From-SVN: r231835
2015-12-18* gnat.dg/specs/debug1.ads: Bump final count to 18.Eric Botcazou2-1/+5
From-SVN: r231825
2015-12-18re PR c++/67592 (A virtual member function declared constexpr fails to ↵Paolo Carlini6-9/+37
trigger a diagnostic) /cp 2015-12-18 Paolo Carlini <paolo.carlini@oracle.com> PR c++/67592 * decl.c (grokdeclarator): Reject constexpr virtual member functions; in error messages, prefer %<virtual%> and %<constexpr%> to virtual and constexpr, respectively. /testsuite 2015-12-18 Paolo Carlini <paolo.carlini@oracle.com> PR c++/67592 * g++.dg/cpp0x/constexpr-virtual5.C: New. * g++.dg/cpp0x/pr51463.C: Adjust dg-error string. * g++.dg/inherit/pure1.C: Likewise. From-SVN: r231824
2015-12-18* gcc-interface/ada-tree.h (TYPE_DEBUG_TYPE): Remove duplicate.Eric Botcazou2-11/+8
From-SVN: r231823
2015-12-18nvptx.c (nvptx_option_override): Emit sorry for stabs debug.Nathan Sidwell2-1/+14
* config/nvptx/nvptx.c (nvptx_option_override): Emit sorry for stabs debug. (nvptx_assemble_undefined_decl): Use nvptx_assemble_decl_end. From-SVN: r231822
2015-12-18[PATCH] [PR rtl-optimization/49847] Fix ICE in CSE due to cc0-setter and ↵Jeff Law4-0/+64
cc0-user in different blocks PR rtl-optimization/49847 * cse.c (record_jump_equiv): Handle fold_rtx returning NULL_RTX. PR rtl-optimization/49847 * g++.dg/pr49847-2.C: New test. From-SVN: r231821
2015-12-18Compile gcc.dg/vect/pr68305.c with -mavx2 for x86 targetH.J. Lu2-1/+6
Since gcc.dg/vect/pr68305.c is a compile test, we should add -mavx2 for x86 target. * gcc.dg/vect/pr68305.c (dg-additional-options): Add -mavx2 for x86 target. From-SVN: r231820
2015-12-18re PR libstdc++/68276 (ios_base::_M_grow_words should use new (std::nothrow))Ville Voutilainen3-7/+13
2015-12-18 Ville Voutilainen <ville.voutilainen@gmail.com> PR libstdc++/68276 * src/c++11/ios.cc (_M_grow_words): Use nothrow new. * testsuite/27_io/ios_base/storage/11584.cc: Adjust. From-SVN: r231819
2015-12-18nvptx.c (worker_bcast_name, [...]): Delete.Nathan Sidwell3-45/+32
* config/nvptx/nvptx.c (worker_bcast_name, worker_red_name): Delete. (nvptx_option_override): Adjust worker symbol creation. (nvptx_gen_wcast): Wrap worker address in UNSPEC_TO_GENERIC. (write_worker_buffer): New. (nvptx_file_end): Call write_worker_buffer. * config/nvptx/nvptx.md (UNSPEC_SHARED_DATA): Delete. (worker_load<mode>, worker_store<mode>): Delete. From-SVN: r231818
2015-12-18* c-c++-common/attr-simd-3.c: Requires pthreads.Nathan Sidwell2-0/+5
From-SVN: r231816
2015-12-18re PR testsuite/68776 (gcc.dg/vect/vect-widen-mult-const-[su]16.c failures ↵Richard Biener5-36/+56
since r226675) 2015-12-18 Richard Biener <rguenther@suse.de> PR testsuite/68776 * tree-vect-patterns.c (struct vect_recog_func): New. (vect_vect_recog_func_ptrs): Make an array of function name pairs. (vect_pattern_recog_1): Print the recognized pattern name. Return true if a pattern was recognized. (vect_pattern_recog): Adjust. Stop iterating over pattern recognition functions on a stmt if a pattern was recognized. * gcc.dg/vect/vect-widen-mult-const-s16.c: Adjust. * gcc.dg/vect/vect-widen-mult-const-u16.c: Likewise. From-SVN: r231815
2015-12-18IRA: Fix % constraint modifier handling on disabled alternatives.Andreas Krebbel2-6/+13
gcc/ChangeLog: 2015-12-18 Andreas Krebbel <krebbel@linux.vnet.ibm.com> * ira.c (ira_setup_alts): Move the scan for commutative modifier to the first loop to make it work even with disabled alternatives. From-SVN: r231814
2015-12-18S/390: Allow to use r2 to r4 as literal pool base.Dominik Vogt4-3/+35
gcc/ChangeLog * config/s390/s390.c (s390_init_frame_layout): Try r4 to r2 for the literal pool pointer. gcc/testsuite/ChangeLog * gcc.target/s390/litpool-r3-1.c: New test. From-SVN: r231813
2015-12-18re PR tree-optimization/68906 (ICE at -O3 on x86_64-linux-gnu: verify_ssa ↵Yuri Rumyantsev4-2/+37
failed) gcc/ 2015-12-18 Yuri Rumyantsev <ysrumyan@gmail.com> PR tree-optimization/68906 * tree-ssa-loop-unswitch.c (tree_unswitch_outer_loop): Add check that an exit block belongs to LOOP. gcc/testsuite/ 2015-12-18 Yuri Rumyantsev <ysrumyan@gmail.com> PR tree-optimization/68906 * gcc.dg/torture/pr68906.c: New test. From-SVN: r231812
2015-12-18re PR tree-optimization/68956 (Vectorizer miscompilation of 416.gamess)Ilya Enkovich4-2/+80
gcc/ PR tree-optimization/68956 * tree-vect-stmts.c (vect_init_vector): Fix constants used for boolean vectors. gcc/testsuite PR tree-optimization/68956 * gcc.target/i386/pr68956.c: New test. From-SVN: r231811
2015-12-18[AArch64] PR rtl-optimization/68796 Add compare-of-zero_extract patternKyrylo Tkachov7-1/+80
PR rtl-optimization/68796 * config/aarch64/aarch64.md (*and<mode>3nr_compare0_zextract): New pattern. * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle ZERO_EXTRACT comparison with zero. (aarch64_mask_from_zextract_ops): New function. * config/aarch64/aarch64-protos.h (aarch64_mask_from_zextract_ops): New prototype. * gcc.target/aarch64/tst_3.c: New test. * gcc.target/aarch64/tst_4.c: Likewise. From-SVN: r231810
2015-12-18S/390: Turn constm1_operand into all_ones_operandRobin Dapp4-11/+19
gcc/ChangeLog: 2015-12-18 Robin Dapp <rdapp@linux.vnet.ibm.com> * config/s390/predicates.md: Change and rename constm1_operand to all_ones_operand * config/s390/s390.c (s390_expand_vcond): Use all_ones_operand * config/s390/vector.md: Likewise From-SVN: r231809
2015-12-18S/390: Simplify vector conditionalsRobin Dapp5-13/+126
gcc/ChangeLog: 2015-12-18 Robin Dapp <rdapp@linux.vnet.ibm.com> * config/s390/s390.c (s390_expand_vcond): Convert vector conditional into shift. * config/s390/vector.md: Change operand predicate. gcc/testsuite/ChangeLog: 2015-12-18 Robin Dapp <rdapp@linux.vnet.ibm.com> * gcc.target/s390/vcond-shift.c: New test to check vcond simplification. From-SVN: r231808
2015-12-18re PR fortran/68196 (ICE on function result with procedure pointer component)Paul Thomas5-4/+67
2015-12-18 Paul Thomas <pault@gcc.gnu.org> PR fortran/68196 *expr.c (gfc_has_default_initializer): Prevent infinite recursion through this function for procedure pointer components. * trans-array.c (structure_alloc_comps): Ditto twice. 2015-12-18 Paul Thomas <pault@gcc.gnu.org> PR fortran/68196 * gfortran.dg/proc_ptr_48.f90: New test. From-SVN: r231807
2015-12-18S/390: Deprecate g5 and g6 CPU levelsAndreas Krebbel8-18/+65
gcc/ChangeLog: 2015-12-18 Andreas Krebbel <krebbel@linux.vnet.ibm.com> * config/s390/driver-native.c (s390_host_detect_local_cpu): Pick z900 -march -mtune even on g5 and g6 machines. * config/s390/s390.c (s390_option_override_internal): New argument to distingiush between options and target attributes. Emit deprecation warning for g5 and g6 arch/tune options. (s390_option_override): Set new s390_option_override_internal argument to true. (s390_valid_target_attribute_tree): Set new s390_option_override_internal argument to false. * config/s390/s390.h: Default to z900 in the driver. * doc/invoke.texi: Document the deprecation of g5 and g6. gcc/testsuite/ChangeLog: 2015-12-18 Andreas Krebbel <krebbel@linux.vnet.ibm.com> * gcc.target/s390/hotpatch-8.c: Add -Wno-deprecated to options. * gcc.target/s390/hotpatch-9.c: Likewise. From-SVN: r231806
2015-12-18Add myself to MAINTAINERS (Write After Approval)Sujoy Saraswati2-0/+5
From-SVN: r231805
2015-12-18Update typedefs for integer types in config/i386/djgpp-stdint.hAndris Pavenis2-11/+15
* config/i386/djgpp-stdint.h: update typedefs for integer types From-SVN: r231804
2015-12-18Add *-*-msdosdjgpp to lists of i[34567]86-*-* soft-fp targetsAndris Pavenis2-0/+6
* config.host: Add *-*-msdosdjgpp to lists of i[34567]86-*-* soft-fp targets From-SVN: r231803
2015-12-18Specify that DJGPP do not have mmap even when sys/mman.h existsAndris Pavenis3-2/+9
* configure.ac: Specify that DJGPP do not have mmap even when sys/mman.h exists * configure: Regenerate From-SVN: r231802
2015-12-18[DJGPP] Update config/os/djgpp/error_constants.hAndris Pavenis2-24/+80
* config/os/djgpp/error_constants.h: update according to DJGPP errno macros. From-SVN: r231801
2015-12-17[PATCH] Move split-path pass next to the tracer passJeff Law2-1/+4
* passes.def: Put the split-paths pass immediately before the tracer pass. From-SVN: r231800