- 25 Feb, 2016 5 commits
-
-
gcc/ PR driver/68463 * config/gnu-user.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o if offloading is enabled and -fopenacc or -fopenmp is specified. (CRTOFFLOADEND): Likewise. (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN. (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND. * lto-wrapper.c (offloadbegin, offloadend): Remove static vars. (offload_objects_file_name): New static var. (tool_cleanup): Remove offload_objects_file_name file. (find_offloadbeginend): Replace with ... (find_crtoffloadtable): ... this. (run_gcc): Remove offload_argc and offload_argv. Get offload_objects_file_name from -foffload-objects=... option. Read names of object files with offload from this file, pass them to compile_images_for_offload_targets. Don't call find_offloadbeginend and don't pass offloadbegin and offloadend to the linker. Don't pass offload non-LTO files to the linker, because now they're not claimed. libgcc/ PR driver/68463 * Makefile.in (crtoffloadtable$(objext)): New rule. * configure.ac (extra_parts): Add crtoffloadtable$(objext) if enable_offload_targets is not empty. * configure: Regenerate. * offloadstuff.c: Move __OFFLOAD_TABLE__ from crtoffloadend to crtoffloadtable. libgomp/ PR driver/68463 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove. lto-plugin/ PR driver/68463 * lto-plugin.c (struct plugin_offload_file): New. (offload_files): Change type. (offload_files_last, offload_files_last_obj): New. (offload_files_last_lto): New. (free_2): Adjust accordingly. (all_symbols_read_handler): Don't add offload files to lto_arg_ptr. Don't call free_1 for offload_files. Write names of object files with offloading to the temporary file. Add new option to lto_arg_ptr. (claim_file_handler): Don't claim file if it contains offload sections without LTO sections. If it contains offload sections, add to the list. From-SVN: r233712
Ilya Verbin committed -
PR ipa/69630 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE on builtin_unreachable. From-SVN: r233711
Jan Hubicka committed -
PR rtl-optimization/69896 * regcprop.c: Include cfgrtl.h. (copyprop_hardreg_forward_1): If noop_p insn uses narrower than remembered mode, either delete it (if noop_move_p), or treat like copy_p but not noop_p instruction. * gcc.dg/pr69896.c: New test. From-SVN: r233692
Jakub Jelinek committed -
Fix PR c++/69736 gcc/cp/ChangeLog: PR c++/69736 * cp-tree.h (REF_PARENTHESIZED_P): Adjust documentation. (maybe_undo_parenthesized_ref): Declare. * semantics.c (maybe_undo_parenthesized_ref): Split out from check_return_expr. (finish_call_expr): Use it. * typeck.c (check_return_expr): Use it. * pt.c (tsubst_copy_and_build) [INDIRECT_REF]: Retain the REF_PARENTHESIZED_P flag. gcc/testsuite/ChangeLog: PR c++/69736 * g++.dg/cpp1y/paren2.C: New test. From-SVN: r233691
Patrick Palka committed -
From-SVN: r233690
GCC Administrator committed
-
- 24 Feb, 2016 27 commits
-
-
gcc/testsuite/ChangeLog: 2016-02-24 Martin Sebor <msebor@redhat.com> PR c/51147 * gcc.dg/enum-mode-2.c: New test. From-SVN: r233686
Martin Sebor committed -
re PR debug/69705 (segfault in libgomp.fortran/task1.f90 with -flto -fno-use-linker-plugin -fno-toplevel-reorder -O1 -g) PR debug/69705 * dwarf2out.c (gen_variable_die): Work around buggy LTO - allow NULL decl for Fortran DW_TAG_common_block variables. From-SVN: r233685
Jakub Jelinek committed -
PR c++/69922 * class.c (build_base_path): Set TREE_NO_WARNING on the null_test. Avoid folding it. * init.c (build_vec_delete_1, build_delete): Don't fold the non-NULL tests. * cp-gimplify.c (cp_fold): For TREE_NO_WARNING comparisons with NULL, unless they are folded into INTEGER_CST, error_mark_node or some comparison with NULL, avoid folding them and use either the original comparison or non-folded comparison of folded arguments. * cp-ubsan.c (cp_ubsan_instrument_vptr): Set TREE_NO_WARNING on the comparison, don't fold the comparison right away. * g++.dg/warn/Wnonnull-compare-6.C: New test. * g++.dg/warn/Wnonnull-compare-7.C: New test. * g++.dg/ubsan/pr69922.C: New test. From-SVN: r233684
Jakub Jelinek committed -
re PR c/69819 (ICE on invalid code on x86_64-linux-gnu in tree check: expected function_type or method_type, have array_type in function_args_iter_init, at tree.h:4536) PR c/69819 * c-decl.c (finish_decl): Don't update the copy of the type of a different decl type. * gcc.dg/pr69819.c: New test. From-SVN: r233683
Marek Polacek committed -
* friend.c (make_friend_class): Likewise. * decl.c (lookup_and_check_tag): Diagnose invalid dependent friend. From-SVN: r233682
Jason Merrill committed -
* pt.c (instantiate_class_template_1): Set processing_template_decl before substituting friend_type. From-SVN: r233681
Jason Merrill committed -
From-SVN: r233680
Jason Merrill committed -
PR c++/69912 - [6 regression] ICE in build_ctor_subob_ref initializing a flexible array member gcc/testsuite/ChangeLog: 2016-02-24 Martin Sebor <msebor@redhat.com> PR c++/69912 * g++.dg/ext/flexary15.C: New test. gcc/cp/ChangeLog: 2016-02-24 Martin Sebor <msebor@redhat.com> PR c++/69912 * tree.c (build_ctor_subob_ref): Compare types' main variants instead of the types as they are. From-SVN: r233678
Martin Sebor committed -
and UINT_MAX. gcc/testsuite/ChangeLog: * gcc/testsuite/gcc.dg/builtins-68.c: Avoid making unportable assumptions about the relationship between SIZE_MAX and UINT_MAX. * gcc/testsuite/g++.dg/ext/builtin_alloca.C: Same. From-SVN: r233677
Martin Sebor committed -
PR debug/61033 * g++.dg/pr61033.C: Add a regression testcase for PR debug/61033. Co-Authored-By: Charles Baylis <charles.baylis@linaro.org> From-SVN: r233675
Maxim Kuvyrkov committed -
gcc/ * common.opt (flifetime-dse): Add -flifetime-dse=1. gcc/cp/ * decl.c (start_preparsed_function): Condition ctor clobber on flag_lifetime_dse > 1. From-SVN: r233672
Jason Merrill committed -
From-SVN: r233671
Jason Merrill committed -
cgo should lock the M. See also https://golang.org/cl/18882 . Reviewed-on: https://go-review.googlesource.com/18883 From-SVN: r233670
Ian Lance Taylor committed -
re PR tree-optimization/69760 (Wrong 64-bit memory address caused by an unneeded overflowing 32-bit integer multiplication on x86_64 under -O2 and -O3 code optimization) 2016-02-24 Richard Biener <rguenther@suse.de> Jakub Jelinek <jakub@redhat.com> PR middle-end/69760 * tree-scalar-evolution.c (interpret_rhs_expr): Re-write conditionally executed ops to well-defined overflow behavior. * gcc.dg/torture/pr69760.c: New testcase. Co-Authored-By: Jakub Jelinek <jakub@redhat.com> From-SVN: r233669
Richard Biener committed -
* gcc.dg/debug/dwarf2/prod-options.c: Use different DW_AT_producer pattern on Solaris with as. From-SVN: r233668
Rainer Orth committed -
* gcc.target/arm/cond_sub_restrict_it.c: New test. * gcc.target/arm/condarith_restrict_it.c: Likewise. * gcc.target/arm/movcond_restrict_it.c: Likewise. * gcc.target/arm/negscc_restrict_it.c: Likewise. From-SVN: r233667
Kyrylo Tkachov committed -
PR libstdc++/69939 * include/experimental/tuple (__apply_impl): Qualify get and forward. From-SVN: r233666
Jonathan Wakely committed -
PR middle-end/69915 * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST elements. * gcc.dg/pr69915.c: New test. From-SVN: r233664
Jakub Jelinek committed -
PR rtl-optimization/69886 * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode argument. Use it when checking validity of set instructions. (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p. (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p callsite. * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype. * store-motion.c (find_moveable_store): Update can_assign_to_reg_without_clobbers_p callsite. * gcc.dg/torture/pr69886.c: New test. From-SVN: r233662
Kyrylo Tkachov committed -
2016-02-24 Richard Biener <rguenther@suse.de> PR middle-end/68963 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix bogus check. (record_nonwrapping_iv): Do not fall back to the low/high bound for non-constant IV bases if the stmt is not always executed. * gcc.dg/torture/pr68963.c: New testcase. From-SVN: r233660
Richard Biener committed -
* config/arm/arm-cores.def (cortex-a32): New entry. * config/arm/arm-tables.opt: Regenerate. * config/arm/arm-tune.md: Regenerate. * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32. * config/arm/t-aprofile: Handle mcpu=cortex-a32. * doc/invoke.texi (ARM Options): Document cortex-a32 as value for -mcpu and -mtune. From-SVN: r233659
Kyrylo Tkachov committed -
PR target/69875 * config/arm/arm.h (TARGET_HAVE_LPAE): Define. * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value. * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern. (atomic_loaddi_1): Delete. (atomic_loaddi): Rewrite expander using the above changes. * gcc.target/arm/atomic_loaddi_acquire.x: New file. * gcc.target/arm/atomic_loaddi_relaxed.x: Likewise. * gcc.target/arm/atomic_loaddi_seq_cst.x: Likewise. * gcc.target/arm/atomic_loaddi_1.c: New test. * gcc.target/arm/atomic_loaddi_2.c: Likewise. * gcc.target/arm/atomic_loaddi_3.c: Likewise. * gcc.target/arm/atomic_loaddi_4.c: Likewise. * gcc.target/arm/atomic_loaddi_5.c: Likewise. * gcc.target/arm/atomic_loaddi_6.c: Likewise. * gcc.target/arm/atomic_loaddi_7.c: Likewise. * gcc.target/arm/atomic_loaddi_8.c: Likewise. * gcc.target/arm/atomic_loaddi_9.c: Likewise. From-SVN: r233658
Kyrylo Tkachov committed -
PR c/69918 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from 2 to 3. From-SVN: r233657
Jakub Jelinek committed -
PR middle-end/69909 * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid set_mem_attributes if tem is SSA_NAME which got expanded as a MEM. * gcc.dg/torture/pr69909.c: New test. Co-Authored-By: Richard Biener <rguenther@suse.de> From-SVN: r233656
Jakub Jelinek committed -
2016-02-24 Richard Biener <rguenther@suse.de> PR tree-optimization/69907 * tree-vect-stmts.c (vectorizable_load): Check for gaps at the end of permutations for BB vectorization. * gcc.dg/vect/bb-slp-pr69907.c: New testcase. * gcc.dg/vect/bb-slp-34.c: XFAIL. * gcc.dg/vect/bb-slp-pr68892.c: Likewise. From-SVN: r233655
Richard Biener committed -
2016-02-24 Christian Bruel <christian.bruel@st.com> * config/arm/arm-c.c (arm_option_override): Initialize target_option_current_node. * config/arm/arm.c (arm_pragma_target_parse): Replace build_target_option_node call by target_option_current_node. Set target_option_current_node. Fix comments. From-SVN: r233654
Christian Bruel committed -
From-SVN: r233652
GCC Administrator committed
-
- 23 Feb, 2016 8 commits
-
-
re PR fortran/61156 (Internal compiler error for Fortran files when specifying a file instead of an include directory with -I) 2016-02-23 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR fortran/61156 * scanner.c (add_path_to_list): If include path is not a directory, issue a fatal error. PR fortran/61156 * gfortran.dg/include_6.f90: Update test. From-SVN: r233649
Jerry DeLisle committed -
PR target/69810 * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from define_insn_and_split to define_insn. (zero_extendqi<mode>2_dot2): Same. (extendqi<mode>2_dot): Same. (extendqi<mode>2_dot2): Same. From-SVN: r233648
David Edelsohn committed -
gcc/ * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E} and AESMC pairs. * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores and add bypass for AES{D,E} and AESMC pairs. From-SVN: r233647
Evandro Menezes committed -
* gcc/config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton series for reciprocal square root in Exynos M1. From-SVN: r233646
Evandro Menezes committed -
* doc/xml/manual/using.xml: Document __STDCPP_WANT_MATH_SPEC_FUNCS__. * doc/html/*: Regenerate. From-SVN: r233645
Jonathan Wakely committed -
PR libstdc++/69893 * include/tr1/cmath (acosh, asinh, atanh, cbrt, copysign, erf, erfc, exp2, expm1, fdim, fma, fmax, fmin, hypot, ilogb, lgamma, llrint, llround, log1p, log2, logb, lrint, lround, nan, nearbyint, nextafter, nexttoward, remainder, remquo, rint, round, scalbln, scalbn, tgamma, trunc) [__cplusplus >= 201103L]: Import from namespace std. (fabs) [__cplusplus < 201103L]: Import from namespace std. * include/tr1/complex (acosh, asinh, atanh) [__cplusplus >= 201103L]: Likewise. * testsuite/tr1/headers/c++200x/complex.cc: Add std::fabs to global namespace before including TR1 headers. * testsuite/tr1/headers/c++200x/math.cc: New test. From-SVN: r233644
Jonathan Wakely committed -
PR objc/69844 * c-parser.c (c_parser_for_statement): Properly handle ObjC classes in id_kind reclassification. * objc.dg/pr69844.m: New test. From-SVN: r233643
Jakub Jelinek committed -
2016-02-23 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR libgfortran/69456 * io/list_read.c (read_real): If digit is missing from exponent issue an error. (parse_real): Likewise and adjusted error message to clarify it is part of a complex number. (nml_read_obj): Bump item count and add comment that this is used to identify which item in a namelist read has a problem. PR libgfortran/69456 * gfortran.dg/namelist_89.f90: New test. * gfortran.dg/pr59700.f90: Update test.. From-SVN: r233641
Jerry DeLisle committed
-