diff --git a/ChangeLog b/ChangeLog index 55a460157d0..da8630f69ab 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2023-06-15 Marek Polacek + + * configure.ac (--enable-host-pie): New check. Set PICFLAG after this + check. + * configure: Regenerate. + 2023-06-14 Filip Kastl * MAINTAINERS: Add myself to write after approval diff --git a/c++tools/ChangeLog b/c++tools/ChangeLog index 6a6ff51cd0d..5d98eef4860 100644 --- a/c++tools/ChangeLog +++ b/c++tools/ChangeLog @@ -1,3 +1,11 @@ +2023-06-15 Marek Polacek + + * Makefile.in: Rename PIEFLAG to PICFLAG. Set LD_PICFLAG. Use it. + Use pic/libiberty.a if PICFLAG is set. + * configure.ac (--enable-default-pie): Set PICFLAG instead of PIEFLAG. + (--enable-host-pie): New check. + * configure: Regenerate. + 2023-03-31 Jonathan Wakely PR bootstrap/101834 diff --git a/fixincludes/ChangeLog b/fixincludes/ChangeLog index af6873a12c1..ed4116e0dae 100644 --- a/fixincludes/ChangeLog +++ b/fixincludes/ChangeLog @@ -1,3 +1,10 @@ +2023-06-15 Marek Polacek + + * Makefile.in: Set and use PICFLAG and LD_PICFLAG. Use the "pic" + build of libiberty if PICFLAG is set. + * configure.ac: + * configure: Regenerate. + 2023-03-28 Xi Ruoyao PR other/109293 diff --git a/gcc/ChangeLog b/gcc/ChangeLog index db1de5741ae..0dcae8cdd20 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,151 @@ +2023-06-15 Marek Polacek + + * Makefile.in: Set LD_PICFLAG. Use it. Set enable_host_pie. + Remove NO_PIE_CFLAGS and NO_PIE_FLAG. Pass LD_PICFLAG to + ALL_LINKERFLAGS. Use the "pic" build of libiberty if --enable-host-pie. + * configure.ac (--enable-host-shared): Don't set PICFLAG here. + (--enable-host-pie): New check. Set PICFLAG and LD_PICFLAG after this + check. + * configure: Regenerate. + * doc/install.texi: Document --enable-host-pie. + +2023-06-15 Manolis Tsamis + + * regcprop.cc (maybe_mode_change): Enable stack pointer + propagation. + +2023-06-15 Andrew MacLeod + + PR tree-optimization/110266 + * gimple-range-fold.cc (adjust_imagpart_expr): Check for integer + complex type. + (adjust_realpart_expr): Ditto. + +2023-06-15 Jan Beulich + + * config/i386/sse.md (_vec_dup): Use + vmovddup. + +2023-06-15 Jan Beulich + + * config/i386/constraints.md: Mention k and r for B. + +2023-06-15 Lulu Cheng + Andrew Pinski + + PR target/110136 + * config/loongarch/loongarch.md: Modify the register constraints for template + "jumptable" and "indirect_jump" from "r" to "e". + +2023-06-15 Xi Ruoyao + + * config/loongarch/loongarch-tune.h (loongarch_align): New + struct. + * config/loongarch/loongarch-def.h (loongarch_cpu_align): New + array. + * config/loongarch/loongarch-def.c (loongarch_cpu_align): Define + the array. + * config/loongarch/loongarch.cc + (loongarch_option_override_internal): Set the value of + -falign-functions= if -falign-functions is enabled but no value + is given. Likewise for -falign-labels=. + +2023-06-15 Jakub Jelinek + + PR middle-end/79173 + * internal-fn.def (UADDC, USUBC): New internal functions. + * internal-fn.cc (expand_UADDC, expand_USUBC): New functions. + (commutative_ternary_fn_p): Return true also for IFN_UADDC. + * optabs.def (uaddc5_optab, usubc5_optab): New optabs. + * tree-ssa-math-opts.cc (uaddc_cast, uaddc_ne0, uaddc_is_cplxpart, + match_uaddc_usubc): New functions. + (math_opts_dom_walker::after_dom_children): Call match_uaddc_usubc + for PLUS_EXPR, MINUS_EXPR, BIT_IOR_EXPR and BIT_XOR_EXPR unless + other optimizations have been successful for those. + * gimple-fold.cc (gimple_fold_call): Handle IFN_UADDC and IFN_USUBC. + * fold-const-call.cc (fold_const_call): Likewise. + * gimple-range-fold.cc (adjust_imagpart_expr): Likewise. + * tree-ssa-dce.cc (eliminate_unnecessary_stmts): Likewise. + * doc/md.texi (uaddc5, usubc5): Document new named + patterns. + * config/i386/i386.md (uaddc5, usubc5): New + define_expand patterns. + (*setcc_qi_addqi3_cconly_overflow_1_, *setccc): Split + into NOTE_INSN_DELETED note rather than nop instruction. + (*setcc_qi_negqi_ccc_1_, *setcc_qi_negqi_ccc_2_): + Likewise. + +2023-06-15 Jakub Jelinek + + PR middle-end/79173 + * config/i386/i386.md (subborrow): Add alternative with + memory destination and add for it define_peephole2 + TARGET_READ_MODIFY_WRITE/-Os patterns to prefer using memory + destination in these patterns. + +2023-06-15 Jakub Jelinek + + PR middle-end/79173 + * config/i386/i386.md (*sub_3, @add3_carry, + addcarry, @sub3_carry, *add3_cc_overflow_1): Add + define_peephole2 TARGET_READ_MODIFY_WRITE/-Os patterns to prefer + using memory destination in these patterns. + +2023-06-15 Jakub Jelinek + + * gimple-fold.cc (gimple_fold_call): Move handling of arg0 + as well as arg1 INTEGER_CSTs for .UBSAN_CHECK_{ADD,SUB,MUL} + and .{ADD,SUB,MUL}_OVERFLOW calls from here... + * fold-const-call.cc (fold_const_call): ... here. + +2023-06-15 Oluwatamilore Adebayo + + * config/aarch64/aarch64-simd.md (aarch64_abd): + Rename to abd3. + * config/aarch64/aarch64-sve.md (abd_3): Rename + to abd3. + +2023-06-15 Oluwatamilore Adebayo + + * doc/md.texi (sabd, uabd): Document them. + * internal-fn.def (ABD): Use new optab. + * optabs.def (sabd_optab, uabd_optab): New optabs, + * tree-vect-patterns.cc (vect_recog_absolute_difference): + Recognize the following idiom abs (a - b). + (vect_recog_sad_pattern): Refactor to use + vect_recog_absolute_difference. + (vect_recog_abd_pattern): Use patterns found by + vect_recog_absolute_difference to build a new ABD + internal call. + +2023-06-15 chenxiaolong + + * config/loongarch/loongarch.h (LARCH_CALL_RATIO): Modify the value + of macro LARCH_CALL_RATIO on LoongArch to make it perform optimally. + +2023-06-15 Juzhe-Zhong + + * config/riscv/riscv-v.cc (shuffle_merge_patterns): New pattern. + (expand_vec_perm_const_1): Add merge optmization. + +2023-06-15 Lehua Ding + + PR target/110119 + * config/riscv/riscv.cc (riscv_get_arg_info): Return NULL_RTX for vector mode + (riscv_pass_by_reference): Return true for vector mode + +2023-06-15 Pan Li + + * config/riscv/autovec-opt.md: Align the predictor sytle. + * config/riscv/autovec.md: Ditto. + +2023-06-15 Pan Li + + * config/riscv/riscv-v.cc (rvv_builder::get_merge_scalar_mask): + Take elen instead of scalar BITS_PER_WORD. + (expand_vector_init_merge_repeating_sequence): Use inner_bits_size + instead of scaler BITS_PER_WORD. + 2023-06-14 Jivan Hakobyan * config/moxie/uclinux.h (MFWRAP_SPEC): Remove diff --git a/gcc/DATESTAMP b/gcc/DATESTAMP index 3f6866a6b54..d8455aa601e 100644 --- a/gcc/DATESTAMP +++ b/gcc/DATESTAMP @@ -1 +1 @@ -20230615 +20230616 diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index 187025017e0..c3035d11388 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -1,3 +1,177 @@ +2023-06-15 Marek Polacek + + * gcc-interface/Make-lang.in (ALL_ADAFLAGS): Remove NO_PIE_CFLAGS. Add + PICFLAG. Use PICFLAG when building ada/b_gnat1.o and ada/b_gnatb.o. + * gcc-interface/Makefile.in: Use pic/libiberty.a if PICFLAG is set. + Remove NO_PIE_FLAG. + +2023-06-15 Marc Poulhiès + + * vxworks7-cert-rtp-base-link.spec: Removed. + * vxworks7-cert-rtp-base-link__ppc64.spec: Removed. + * vxworks7-cert-rtp-base-link__x86.spec: Removed. + * vxworks7-cert-rtp-base-link__x86_64.spec: Removed. + * vxworks7-cert-rtp-link.spec: Removed. + * vxworks7-cert-rtp-link__ppcXX.spec: Removed. + +2023-06-15 Eric Botcazou + + * gcc-interface/utils2.cc (build_binary_op) : Do not + remove a VIEW_CONVERT_EXPR on the LHS if it is also on the RHS. + +2023-06-15 Eric Botcazou + + * gcc-interface/decl.cc (gnat_to_gnu_entity) : Restrict + the special handling of temporaries created for return values and + subject to a renaming to the top level. + +2023-06-15 Ronan Desplanques + + * doc/gnat_ugn/about_this_guide.rst: Fix typo. Uniformize punctuation. + * doc/gnat_ugn/the_gnat_compilation_model.rst: Uniformize punctuation. + Fix capitalization. Fix indentation of code block. Fix RST formatting + syntax errors. + * gnat_ugn.texi: Regenerate. + +2023-06-15 Yannick Moy + + * sem_attr.adb (Analyze_Attribute): Reject case of Loop_Entry + inside the prefix of Loop_Entry, as per SPARK RM 5.5.3.1(4,8). + +2023-06-15 Eric Botcazou + + * exp_ch3.adb (Make_Allocator_For_Return): Rewrite the logic that + determines the type used for the allocation and add assertions. + * exp_util.adb (Has_Tag_Of_Type): Also return true for extension + aggregates. + +2023-06-15 Eric Botcazou + + * sinfo.ads (Iterator_Filter): Document field. + * sem_ch5.adb (Analyze_Iterator_Specification): Move comment around. + (Analyze_Loop_Parameter_Specification): Only preanalyze the iterator + filter, if any. + * exp_ch5.adb (Expand_N_Loop_Statement): Analyze the new list built + when an iterator filter is present. + +2023-06-15 Eric Botcazou + + * exp_util.adb (Find_Hook_Context): Revert latest change. + +2023-06-15 Eric Botcazou + + * exp_ch3.adb (Make_Allocator_For_Return): Deal again specifically + with an aggregate returned through an object of a class-wide type. + +2023-06-15 Eric Botcazou + + * exp_ch5.adb (Expand_Iterator_Loop_Over_Container): Do not insert + an always empty list. Remove unused parameter Isc. + (Expand_Iterator_Loop): Adjust call to above procedure. + +2023-06-15 Ronan Desplanques + + * targparm.adb: Allow pragma Style_Checks in some forms. + * targparm.ads: Document new pragma permission. + +2023-06-15 Eric Botcazou + + * exp_util.ads (Within_Case_Or_If_Expression): Adjust description. + * exp_util.adb (Find_Hook_Context): Stop the search for the topmost + conditional expression, if within one, at contexts where temporaries + may be contained. + (Within_Case_Or_If_Expression): Return false upon first encoutering + contexts where temporaries may be contained. + +2023-06-15 Johannes Kliemann + + * libgnarl/s-osinte__qnx.adb: Adjust priority conversion function. + * libgnat/system-qnx-arm.ads: Adjust priority range and default + priority. + +2023-06-15 Ronan Desplanques + + * targparm.ads: Remove references to front-end-based exceptions. Fix + thinko. + +2023-06-15 Piotr Trojanek + + * contracts.adb (Add_Contract_Item): Add pragma Always_Terminates to + package contract. + * sem_prag.adb (Analyze_Pragma): Accept pragma Always_Terminates on + packages and generic packages, but only when it has no arguments. + +2023-06-15 Piotr Trojanek + + * sem_prag.adb (Analyze_Pragma): Accept pragma Always_Terminates when + it applies to an entry. + +2023-06-15 Piotr Trojanek + + * sem_prag.adb (Analyze_Pragma): Reject pragma Always_Terminates when + it applies to a function or generic function. + +2023-06-15 Eric Botcazou + + * sem_ch4.adb (Analyze_Call): Adjust the test to detect the presence + of an incomplete view of a type on a function call. + +2023-06-15 Ronan Desplanques + + * ttypes.ads: Remove reference to Ttypef in comment. Fix typo in + comment. + +2023-06-15 Eric Botcazou + + * get_targ.ads (Get_Max_Unaligned_Field): Delete. + * ada_get_targ.adb (Get_Max_Unaligned_Field): Likewise. + * get_targ.adb (Get_Max_Unaligned_Field): Likewise. + * set_targ.ads (Max_Unaligned_Field): Adjust comment. + * set_targ.adb: Set Max_Unaligned_Field to 1 during elaboration. + * ttypes.ads (Max_Unaligned_Field): Delete. + +2023-06-15 Eric Botcazou + + * sem_type.adb (Disambiguate): Fix pasto in the implementation of + the RM 8.4(10) clause for operators. + +2023-06-15 Piotr Trojanek + + * aspects.adb + (Base_Aspect): Fix layout. + * aspects.ads + (Aspect_Argument): Expression for Always_Terminates is optional. + * sem_prag.adb + (Analyze_Always_Terminates_In_Decl_Part): Only analyze expression when + pragma argument is present. + (Analyze_Pragma): Argument for Always_Terminates is optional; fix + whitespace for Async_Readers. + +2023-06-15 Javier Miranda + + * sem_util.adb + (Is_CPP_Constructor_Call): Add missing support for calls to + functions returning a private type. + +2023-06-15 Eric Botcazou + + * exp_util.ads (Build_Transient_Object_Statements): Remove obsolete + references to array and record aggregates in documentation. + +2023-06-15 Eric Botcazou + + * sem_ch13.adb (Analyze_Aspect_Specifications): Add missing items + in the list of aspects handled by means of Insert_Pragma. + : Remove obsolete code. Do not delay the + processing of the aspect if the entity is already frozen. + +2023-06-15 Piotr Trojanek + + * sem_aggr.adb + (Resolve_Array_Aggregate): Simplify comment. + (Resolve_Iterated_Component_Association): Tune comment; change variable + to constant. + 2023-06-13 Piotr Trojanek * sem_aggr.adb (Resolve_Iterated_Component_Association): Simply resolve diff --git a/gcc/d/ChangeLog b/gcc/d/ChangeLog index 8ed7364e64b..87482833dd0 100644 --- a/gcc/d/ChangeLog +++ b/gcc/d/ChangeLog @@ -1,3 +1,7 @@ +2023-06-15 Marek Polacek + + * Make-lang.in: Remove NO_PIE_CFLAGS. + 2023-06-05 Iain Buclaw * gdc.texi (Warnings): Document -Wextra and -Wmismatched-special-enum. diff --git a/gcc/m2/ChangeLog b/gcc/m2/ChangeLog index 85ab4e6bcfd..41e38a85c5c 100644 --- a/gcc/m2/ChangeLog +++ b/gcc/m2/ChangeLog @@ -1,3 +1,7 @@ +2023-06-15 Marek Polacek + + * Make-lang.in: New var, GM2_PICFLAGS. Use it. + 2023-06-13 Gaius Mulley * Make-lang.in (check-format-error): New rule. diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index b5fd6be702e..34bad04daf0 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,74 @@ +2023-06-15 Andrew Pinski + + PR tree-optimization/110266 + * gcc.c-torture/compile/pr110266.c: New test. + +2023-06-15 Andrew MacLeod + + PR tree-optimization/110266 + * gcc.dg/pr110266.c: New. + +2023-06-15 Jakub Jelinek + + PR preprocessor/80753 + * c-c++-common/missing-header-5.c: New test. + +2023-06-15 Thomas Schwinge + + * c-c++-common/Wfree-nonheap-object-3.c: Fix 'dg-warning' for C++. + +2023-06-15 Jakub Jelinek + + PR middle-end/79173 + * gcc.target/i386/pr79173-1.c: New test. + * gcc.target/i386/pr79173-2.c: New test. + * gcc.target/i386/pr79173-3.c: New test. + * gcc.target/i386/pr79173-4.c: New test. + * gcc.target/i386/pr79173-5.c: New test. + * gcc.target/i386/pr79173-6.c: New test. + * gcc.target/i386/pr79173-7.c: New test. + * gcc.target/i386/pr79173-8.c: New test. + * gcc.target/i386/pr79173-9.c: New test. + * gcc.target/i386/pr79173-10.c: New test. + +2023-06-15 Oluwatamilore Adebayo + + * gcc.target/aarch64/abd.h: New file. + * gcc.target/aarch64/abd_2.c: New test. + * gcc.target/aarch64/abd_3.c: New test. + * gcc.target/aarch64/abd_4.c: New test. + * gcc.target/aarch64/abd_none_2.c: New test. + * gcc.target/aarch64/abd_none_3.c: New test. + * gcc.target/aarch64/abd_none_4.c: New test. + * gcc.target/aarch64/abd_run_1.c: New test. + * gcc.target/aarch64/sve/abd_1.c: New test. + * gcc.target/aarch64/sve/abd_none_1.c: New test. + * gcc.target/aarch64/sve/abd_2.c: New test. + * gcc.target/aarch64/sve/abd_none_2.c: New test. + +2023-06-15 Juzhe-Zhong + + * gcc.target/riscv/rvv/autovec/vls-vlmax/merge-1.c: New test. + * gcc.target/riscv/rvv/autovec/vls-vlmax/merge-2.c: New test. + * gcc.target/riscv/rvv/autovec/vls-vlmax/merge-3.c: New test. + * gcc.target/riscv/rvv/autovec/vls-vlmax/merge-4.c: New test. + * gcc.target/riscv/rvv/autovec/vls-vlmax/merge-5.c: New test. + * gcc.target/riscv/rvv/autovec/vls-vlmax/merge-6.c: New test. + * gcc.target/riscv/rvv/autovec/vls-vlmax/merge-7.c: New test. + * gcc.target/riscv/rvv/autovec/vls-vlmax/merge_run-1.c: New test. + * gcc.target/riscv/rvv/autovec/vls-vlmax/merge_run-2.c: New test. + * gcc.target/riscv/rvv/autovec/vls-vlmax/merge_run-3.c: New test. + * gcc.target/riscv/rvv/autovec/vls-vlmax/merge_run-4.c: New test. + * gcc.target/riscv/rvv/autovec/vls-vlmax/merge_run-5.c: New test. + * gcc.target/riscv/rvv/autovec/vls-vlmax/merge_run-6.c: New test. + * gcc.target/riscv/rvv/autovec/vls-vlmax/merge_run-7.c: New test. + +2023-06-15 Lehua Ding + + PR target/110119 + * gcc.target/riscv/rvv/base/pr110119-1.c: New test. + * gcc.target/riscv/rvv/base/pr110119-2.c: New test. + 2023-06-14 Jason Merrill DR 2327 diff --git a/intl/ChangeLog b/intl/ChangeLog index 60d604adac0..52660f631ce 100644 --- a/intl/ChangeLog +++ b/intl/ChangeLog @@ -1,3 +1,10 @@ +2023-06-15 Marek Polacek + + * Makefile.in: Use @PICFLAG@ in COMPILE as well. + * configure.ac (--enable-host-shared): Don't set PICFLAG here. + (--enable-host-pie): New check. Set PICFLAG after this check. + * configure: Regenerate. + 2022-11-23 Marek Polacek Revert: diff --git a/libcody/ChangeLog b/libcody/ChangeLog index d1c7a82e254..5da0d8b14bb 100644 --- a/libcody/ChangeLog +++ b/libcody/ChangeLog @@ -1,3 +1,11 @@ +2023-06-15 Marek Polacek + + * Makefile.in: Pass LD_PICFLAG to LDFLAGS. + * configure.ac (--enable-host-shared): Don't set PICFLAG here. + (--enable-host-pie): New check. Set PICFLAG and LD_PICFLAG after this + check. + * configure: Regenerate. + 2022-11-23 Marek Polacek Revert: diff --git a/libcpp/ChangeLog b/libcpp/ChangeLog index 847db367bb6..8bbd1ac9f7e 100644 --- a/libcpp/ChangeLog +++ b/libcpp/ChangeLog @@ -1,3 +1,18 @@ +2023-06-15 Marek Polacek + + * configure.ac (--enable-host-shared): Don't set PICFLAG here. + (--enable-host-pie): New check. Set PICFLAG after this check. + * configure: Regenerate. + +2023-06-15 Jakub Jelinek + + PR preprocessor/80753 + * files.cc (struct _cpp_file): Add deferred_error bitfield. + (_cpp_find_file): When finding a file in cache with deferred_error + set in _cpp_FFK_NORMAL mode, call open_file_failed and clear the flag. + Set deferred_error in _cpp_FFK_HAS_INCLUDE mode if open_file_failed + hasn't been called. + 2023-04-30 Jeff Law Revert: diff --git a/libdecnumber/ChangeLog b/libdecnumber/ChangeLog index b2125e3131f..a209d92c43f 100644 --- a/libdecnumber/ChangeLog +++ b/libdecnumber/ChangeLog @@ -1,3 +1,9 @@ +2023-06-15 Marek Polacek + + * configure.ac (--enable-host-shared): Don't set PICFLAG here. + (--enable-host-pie): New check. Set PICFLAG after this check. + * configure: Regenerate. + 2022-11-23 Marek Polacek Revert: diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog index 4835dc4fdf4..9c4da89198f 100644 --- a/libgomp/ChangeLog +++ b/libgomp/ChangeLog @@ -1,3 +1,19 @@ +2023-06-15 Tobias Burnus + + * env.c (gomp_def_allocator_envvar): New var. + (parse_allocator): Handle OpenMP 5.1 syntax. + (cleanup_env): New. + (omp_display_env): Output gomp_def_allocator_envvar + for an allocator with traits. + * libgomp.texi (OMP_ALLOCATOR, OMP_AFFINITY_FORMAT, + OMP_DISPLAY_AFFINITY): New. + * testsuite/libgomp.c/allocator-1.c: New test. + * testsuite/libgomp.c/allocator-2.c: New test. + * testsuite/libgomp.c/allocator-3.c: New test. + * testsuite/libgomp.c/allocator-4.c: New test. + * testsuite/libgomp.c/allocator-5.c: New test. + * testsuite/libgomp.c/allocator-6.c: New test. + 2023-06-14 Thomas Schwinge * target.c (resolve_device): Align a diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index 7f46e9f967d..3424fef99ba 100644 --- a/libiberty/ChangeLog +++ b/libiberty/ChangeLog @@ -1,3 +1,8 @@ +2023-06-15 Marek Polacek + + * configure.ac: Also set shared when enable_host_pie. + * configure: Regenerate. + 2023-06-13 Nathan Sidwell * cp-demangle.c (d_print_conversion): Remove incorrect diff --git a/zlib/ChangeLog b/zlib/ChangeLog index 93644550074..db5825fc204 100644 --- a/zlib/ChangeLog +++ b/zlib/ChangeLog @@ -1,3 +1,9 @@ +2023-06-15 Marek Polacek + + * configure.ac (--enable-host-shared): Don't set PICFLAG here. + (--enable-host-pie): New check. Set PICFLAG after this check. + * configure: Regenerate. + 2022-11-23 Marek Polacek Revert: