- 26 Oct, 2015 8 commits
-
-
2015-10-26 Christian Bruel <christian.bruel@st.com> * function.h (MINIMUM_METHOD_BOUNDARY): New macro. * cp/decl.c (grokfndecl): Set DECL_ALIGN with MINIMUM_METHOD_BOUNDARY. * cp/method.c (implicitly_declare_fn): Likewise. * cp/lambda.c (maybe_add_lambda_conv_op): Likewise. Remove VBIT setting. * java/class.c (add_method_1): Likewise. From-SVN: r229313
Christian Bruel committed -
2015-10-26 Richard Biener <rguenther@suse.de> * alloc-pool.h (base_pool_allocator): Use placement new. (base_pool_allocator::remove): Likewise. Compute size outside of flag_checking. From-SVN: r229312
Richard Biener committed -
Tested on x86_64-linux-gnu, aarch64-linux-gnu and arm-linux-gnueabi. gcc/ * builtins.c (do_real_to_int_conversion): New function. (fold_fixed_mathfn, fold_builtin_int_roundingfn): Delete. (fold_builtin_1): Handle constant {i,l,ll}{ceil,floor,round}{f,,l} arguments here. * match.pd: Add rules previously handled by fold_fixed_mathfn and fold_builtin_int_roundingfn. gcc/testsuite/ * gcc.dg/torture/builtin-minmax-1.c: Don't run at -O0. From-SVN: r229311
Richard Sandiford committed -
No functional change. This should be a slight readability improvement on its own, but becomes more important with the next patch. Tested on x86_64-linux-gnu, aarch64-linux-gnu and arm-linux-gnueabi. gcc/ * match.pd: Use macros to define built-in operator lists. From-SVN: r229310
Richard Sandiford committed -
From-SVN: r229309
Richard Sandiford committed -
This required reinstating support for captures in the result of a simplification. That part (genmatch.c) is by Richard B. Tested on x86_64-linux-gnu, aarch64-linux-gnu and arm-linux-gnueabi. gcc/ 2015-10-20 Richard Sandiford <richard.sandiford@arm.com> Richard Biener <rguenther@suse.de> * genmatch.c (dt_simplify::gen): Skip captures that are part of the result. (parser::parse_expr): Allow captures in results too. * builtins.c (fold_builtin_cexp): Delete. (fold_builtin_1): Handle constant cexp arguments here. * match.pd: Fold cexp(x+yi) to exp(x) * cexpi(y). Co-Authored-By: Richard Biener <rguenther@suse.de> From-SVN: r229308
Richard Sandiford committed -
gcc/ * alloc-pool.h (base_pool_allocator::initialize, ::allocate): Remove conditional compilation. (base_pool_allocator::remove): Use flag_checking. From-SVN: r229307
Mikhail Maltsev committed -
From-SVN: r229306
GCC Administrator committed
-
- 25 Oct, 2015 9 commits
-
-
2015-01-25 Paul Thomas <pault@gcc.gnu.org> PR fortran/67171 * trans-array.c (structure_alloc_comps): On deallocation of class components, reset the vptr to the declared type vtable and reset the _len field of unlimited polymorphic components. *trans-expr.c (gfc_find_and_cut_at_last_class_ref): Bail out on allocatable component references to the right of part reference with non-zero rank and return NULL. (gfc_reset_vptr): Simplify this function by using the function gfc_get_vptr_from_expr. Return if the vptr is NULL_TREE. (gfc_reset_len): If gfc_find_and_cut_at_last_class_ref returns NULL return. * trans-stmt.c (gfc_trans_allocate): Rely on the use of gfc_trans_assignment if expr3 is a variable expression since this deals correctly with array sections. 2015-01-25 Paul Thomas <pault@gcc.gnu.org> PR fortran/67171 * gfortran.dg/allocate_with_source_12.f03: New test PR fortran/61819 * gfortran.dg/allocate_with_source_13.f03: New test PR fortran/61830 * gfortran.dg/allocate_with_source_14.f03: New test From-SVN: r229303
Paul Thomas committed -
* config/pa/som.h (EH_FRAME_THROUGH_COLLECT2): Define. From-SVN: r229302
John David Anglin committed -
PR middle-end/68079 * dojump.c (do_compare_and_jump): Canonicalize both function and method types. From-SVN: r229299
John David Anglin committed -
* g++.dg/Wno-frame-address.C: Skip on hppa*-*-*. From-SVN: r229298
John David Anglin committed -
re PR target/68084 (Inverted conditions generated for x86 inline assembly "flag output constraints") PR target/68084 * config/i386/i386.c (ix86_md_asm_adjust) [case 'a']: Use NE code for =@ccae. testsuite/ChangeLog: PR target/68084 * gcc.target/i386/pr68084.c: New test. From-SVN: r229296
Uros Bizjak committed -
PR fortran/66927. From-SVN: r229295
Andre Vehreschild committed -
gcc/fortran/ChangeLog: 2015-10-25 Andre Vehreschild <vehre@gcc.gnu.org> PR fortran/66927 PR fortran/67044 * trans-array.c (build_array_ref): Modified call to gfc_get_class_array_ref to adhere to new interface. (gfc_conv_expr_descriptor): For one-based arrays that are filled by a loop starting at one the start index of the source array has to be mangled into the offset. * trans-expr.c (gfc_get_class_array_ref): When the tree to get the _data component is present already, add a way to supply it. (gfc_copy_class_to_class): Allow to copy to a derived type also. * trans-stmt.c (gfc_trans_allocate): Do not conv_expr_descriptor for functions returning a class or derived object. Get the reference instead. * trans.h: Interface change of gfc_get_class_array_ref. gcc/testsuite/ChangeLog: 2015-10-25 Andre Vehreschild <vehre@gmx.de> PR fortran/66927 PR fortran/67044 * gfortran.dg/allocate_with_source_10.f08: New test. * gfortran.dg/allocate_with_source_11.f08: New test. * gfortran.dg/class_array_15.f03: Changed count of expected _builtin_frees to 11. One step of temporaries is spared, therefore the allocatable component of that temporary is not to be freeed. From-SVN: r229294
Andre Vehreschild committed -
From-SVN: r229293
GCC Administrator committed -
* include/std/functional (__invoke_impl): New overloads. (__invoke): Replace with a single function calling __invoke_impl. (invoke): Add C++17 std::invoke. (reference_wrapper::operator()): Qualify call to __invoke. (_Mem_fn_traits_base, _Mem_fn_traits): Remove unused typedefs. (_Mem_fn_base): Remove unused typedefs and implement call operator in terms of __invoke. * include/std/future (__future_base::_Async_state_commonV2): Do not pass reference_wrapper as object argument to call_once. * include/std/type_traits (result_of): Define nested __invoke_type. Handle reference_wrapper as per LWG 2219. * testsuite/20_util/bind/ref_neg.cc: Adjust dg-error directives. * testsuite/20_util/function_objects/mem_fn/55463.cc: Remove tests using member functions of reference_wrapper. From-SVN: r229290
Jonathan Wakely committed
-
- 24 Oct, 2015 6 commits
-
-
* include/std/future (async): Use deferred function on exception. * testsuite/30_threads/async/except.cc: New. From-SVN: r229289
Jonathan Wakely committed -
2015-10-24 Steven G. Kargl <kargl@gcc.gnu.org> PR fortran/68055 * decl.c (gfc_match_decl_type_spec): Check for valid kind in old-style declarations. 2015-10-24 Steven G. Kargl <kargl@gcc.gnu.org> PR fortran/68055 * gfortran.dg/pr68055.f90: New case. From-SVN: r229288
Steven G. Kargl committed -
2015-10-24 Steven G. Kargl <kargl@gcc.gnu.org> PR fortran/67805 * array.c (gfc_match_array_constructor): Check for error from type spec matching. * decl.c (char_len_param_value): Check for valid of charlen parameter. Reap dead code dating to 2008. match.c (gfc_match_type_spec): Special case the keyword use in REAL. 2015-10-24 Steven G. Kargl <kargl@gcc.gnu.org> PR fortran/67805 * gfortran.dg/pr67805.f90: New testcase. * gfortran.dg/array_constructor_26.f03: Update testcase. * gfortran.dg/array_constructor_27.f03: Ditto. * gfortran.dg/char_type_len_2.f90: Ditto. * gfortran.dg/pr67802.f90: Ditto. * gfortran.dg/used_before_typed_3.f90: Ditto. From-SVN: r229287
Steven G. Kargl committed -
* gcc-interface/utils2.c (build_binary_op): Tweak formatting. (build_unary_op): Likewise. From-SVN: r229284
Eric Botcazou committed -
DR 1518 DR 1630 PR c++/54835 PR c++/60417 * call.c (convert_like_real): Value-initialization can't use explicit constructors in C++11 and up. From-SVN: r229283
Jason Merrill committed -
From-SVN: r229282
GCC Administrator committed
-
- 23 Oct, 2015 17 commits
-
-
PR ipa/pr67600 * ipa-polymorphic-call.c (ipa_polymorphic_call_context::get_dynamic_type): Do not confuse instance offset with offset of outer type. * g++.dg/torture/pr67600.C: New testcase. From-SVN: r229279
Jan Hubicka committed -
From-SVN: r229278
Jan Hubicka committed -
This patch fixes a compile-time regression that was originally introduced by the fix for PR64111, in GCC 4.9.3. This patch fixes a compile-time regression that was originally introduced by the fix for PR64111, in GCC 4.9.3. gcc/ChangeLog: 2015-10-23 Caroline Tice <cmtice@google.com> (from Richard Biener) * tree.c (int_cst_hasher::hash): Replace XOR with more efficient call to iterative_hash_host_wide_int. From-SVN: r229277
Caroline Tice committed -
* config.gcc (powerpc-ibm-aix[6789]) [default_use_cxa_atexit]: Define as yes. From-SVN: r229276
David Edelsohn committed -
gcc/ * tree-vect-generic.c (expand_vector_operations_1): Check optab exists before use it. gcc/testsuite/ * g++.dg/pr68062.C: New test. From-SVN: r229275
Ilya Enkovich committed -
gcc/ * tree-vect-generic.c (expand_vector_condition): Avoid uninitialized variable warning. From-SVN: r229274
Ilya Enkovich committed -
2015-10-05 Mikhail Maltsev <maltsevm@gmail.com> * trans-common.c (create_common): Adjust to use flag_checking. * trans.c (gfc_add_modify_loc): Use gcc_checking_assert. From-SVN: r229273
Mikhail Maltsev committed -
[PATCH] Call flush_ssaname_freelist more often * passes.c (execute_function_todo): Do not call flush_ssaname_freelist here. Instead... (execute_todo): Call it here. * tree-ssanames.c (make_ssa_name_fn): Unconditionally gather reuse statistics (pass_release_ssa_names::execute): Do not call flusH_ssaname_freelist. From-SVN: r229272
Jeff Law committed -
re PR c++/67813 ([C++14] copy-initialization of object with pointer member fails in constexpr function) PR c++/67813 * constexpr.c (cxx_eval_store_expression): Always use *valp if set. From-SVN: r229270
Jason Merrill committed -
* config.gcc (enable_secureplt): Add *-linux*-musl*. Co-Authored-By: Szabolcs Nagy <szabolcs.nagy@arm.com> From-SVN: r229268
Gregor Richards committed -
PR tree-optimization/67830 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)): Explicitly verify the mask has no bits outside the type of the innermost operands. PR tree-optimization/67830 * gcc.dg/pr67830.c: New test. From-SVN: r229267
Jeff Law committed -
gcc/ * config/rs6000/linux64.h (MUSL_DYNAMIC_LINKER32): Define. (MUSL_DYNAMIC_LINKER64): Define. (GNU_USER_DYNAMIC_LINKER32): Update. (GNU_USER_DYNAMIC_LINKER64): Update. (CHOOSE_DYNAMIC_LINKER): Update. * config/rs6000/sysv4.h (GNU_USER_DYNAMIC_LINKER): Update. (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER_E,) (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,) (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,) (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define. (CHOOSE_DYNAMIC_LINKER): Update. (INCLUDE_DEFAULTS): Redefine. * config/rs6000/sysv4le.h (MUSL_DYNAMIC_LINKER_E): Define. Co-Authored-By: Szabolcs Nagy <szabolcs.nagy@arm.com> From-SVN: r229266
Gregor Richards committed -
* fold-const.c (operand_equal_p): Do not compare TYPE_MODE when comparing addresses. From-SVN: r229265
Jan Hubicka committed -
* fold-const.c (operand_equal_p): Handle matching of vector constructors. * gcc.dg/tree-ssa/operand-equal-2.c: New testcase. From-SVN: r229264
Jan Hubicka committed -
From-SVN: r229263
David Edelsohn committed -
2015-10-23 Steve Ellcey <sellcey@imgtec.com> * MAINTAINERS: Update email address. From-SVN: r229262
Steve Ellcey committed -
From-SVN: r229261
Steve Ellcey committed
-