diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a11dd36a0b8..062ca3001f3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,100 @@ +2024-08-28 Andrew Pinski + + * internal-fn.cc (expand_POPCOUNT): Dump the costs for + the two choices. + +2024-08-28 Jonathan Wakely + + * doc/contrib.texi (Contributors): Add Dhruv Matani. + +2024-08-28 Georg-Johann Lay + + * config/avr/avr.cc (INCLUDE_VECTOR): Define it. + (cfganal.h): Include it. + (Ranges): New struct. + (avr_2comparisons_rhs, avr_redundant_compare_regs) + (avr_strict_signed_p, avr_strict_unsigned_p): New static functions. + (avr_redundant_compare): Overhaul: Allow more cases. + (avr_optimize_2ifelse): New static function, outsourced from... + (avr_rest_of_handle_ifelse): ...this method. + +2024-08-28 Richard Sandiford + + * config/aarch64/tuning_models/generic.h (generic_sve_vector_cost): + Set gather_load_x32_init_cost and gather_load_x64_init_cost to 0. + +2024-08-28 Richard Sandiford + + * config/aarch64/aarch64.cc (aarch64_detect_vector_stmt_subtype) + (aarch64_vector_costs::add_stmt_cost): Use the x64 cost rather + than x32 cost for all VNx2 modes. + +2024-08-28 Richard Sandiford + + * tree.h (ASM_INPUT_P): Fix documentation. + +2024-08-28 Filip Kastl + + PR tree-optimization/116355 + * tree-switch-conversion.cc (can_log2): Add capability to + suggest converting the operand to a different type. + (gen_log2): Add capability to generate a conversion in case the + operand is of a type incompatible with the logarithm operation. + (can_pow2p): New function. + (gen_pow2p): Rewrite to use __builtin_popcount instead of + manually inserting an internal fn call or bitmagic. Also add + capability to generate a conversion. + (switch_conversion::is_exp_index_transform_viable): Call + can_pow2p. Store types suggested by can_log2 and gen_log2. + (switch_conversion::exp_index_transform): Params of gen_pow2p + and gen_log2 changed so update their calls. + * tree-switch-conversion.h: Add m_exp_index_transform_log2_type + and m_exp_index_transform_pow2p_type to switch_conversion class + to track type conversions needed to generate the "is power of 2" + and logarithm operations. + +2024-08-28 Alex Coplan + + PR libstdc++/116140 + * doc/sourcebuild.texi: Document ltrans-rtl value of kind for + scan--dump*. + +2024-08-28 Richard Biener + + * tree-vect-slp.cc (debug): Add overload for slp_instance. + +2024-08-28 Richard Biener + + * tree-vect-slp.cc (vect_build_slp_store_interleaving): + Fix reference counting. + (vect_build_slp_instance): Release rhs_nodes. + +2024-08-28 Richard Biener + + * tree-vect-slp.cc (vect_build_slp_store_interleaving): Split + out from ... + (vect_build_slp_instance): Here. + +2024-08-28 Pan Li + + * tree-vect-patterns.cc (vect_recog_sat_add_pattern): Add fold + convert for const_int to the type of operand 0. + +2024-08-28 Kito Cheng + + * config/riscv/vector.md (mode_idx): Add vrol and vror. + +2024-08-28 Pan Li + + * match.pd: Add the matching for signed .SAT_ADD. + * tree-ssa-math-opts.cc (gimple_signed_integer_sat_add): Add new + matching func decl. + (match_unsigned_saturation_add): Try signed .SAT_ADD and rename + to ... + (match_saturation_add): ... here. + (math_opts_dom_walker::after_dom_children): Update the above renamed + func from caller. + 2024-08-27 Andreas Schwab PR target/116413 diff --git a/gcc/DATESTAMP b/gcc/DATESTAMP index 00e43a06f4d..0b8bcefbecd 100644 --- a/gcc/DATESTAMP +++ b/gcc/DATESTAMP @@ -1 +1 @@ -20240828 +20240829 diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog index 1c8faafe035..a61eabed99e 100644 --- a/gcc/c-family/ChangeLog +++ b/gcc/c-family/ChangeLog @@ -1,3 +1,10 @@ +2024-08-28 Jason Merrill + + * c-pragma.cc (handle_pragma_diagnostic_impl): Also handle + -Wc++23-extensions early. + * c-lex.cc (interpret_float): Use -Wc++23-extensions for extended + floating point literal pedwarn. + 2024-08-09 Patrick Palka * c.opt.urls: Regenerate. diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 863e99baceb..1fdeb303a37 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,22 @@ +2024-08-28 Marek Polacek + + PR c++/116476 + * call.cc (maybe_init_list_as_array): Try convert_like and see if it + worked. + +2024-08-28 Marek Polacek + + PR c++/116424 + * typeck2.cc (process_init_constructor_record): Move the clearing of + TARGET_EXPR_ELIDING_P down. + +2024-08-28 Jason Merrill + + * parser.cc (cp_parser_simple_type_specifier): Use + -Wc++20-extensions for auto parameter pedwarn. + * pt.cc (do_decl_instantiation, do_type_instantiation): Use + -Wc++11-extensions for 'extern template'. + 2024-08-27 Arsen Arsenović PR c++/109867 diff --git a/gcc/m2/ChangeLog b/gcc/m2/ChangeLog index 382f8a8c32c..1b38cafa125 100644 --- a/gcc/m2/ChangeLog +++ b/gcc/m2/ChangeLog @@ -1,3 +1,106 @@ +2024-08-28 Gaius Mulley + + PR modula2/116181 + * Make-lang.in (MC_SRC_FLAGS): New macro. + (m2/mc-boot/$(SRC_PREFIX)%.o): Use MC_SRC_FLAGS. + (m2/mc-boot-ch/$(SRC_PREFIX)%.o): Ditto. + (m2/gm2-libs-boot/M2RTS.o): Ditto. + (m2/gm2-libs-boot/%.o): Ditto. + (GM2-LIBS-BOOT-H): New macro. + (m2/gm2-libs-boot/RTcodummy.o): Use MC_SRC_FLAGS. + Remove gm2-libs-host.h from the dependancy. + (m2/gm2-libs-boot/wrapc.o): Use MC_SRC_FLAGS. + Add dependancy GM2-LIBS-BOOT-H. + (m2/gm2-libs-boot/UnixArgs.o): Ditto. + (m2/gm2-libs-boot/choosetemp.o): Ditto. + (m2/gm2-libs-boot/errno.o): Ditto. + (m2/gm2-libs-boot/dtoa.o): Ditto. + (m2/gm2-libs-boot/ldtoa.o): Ditto. + (m2/gm2-libs-boot/termios.o): Ditto. + (m2/gm2-libs-boot/SysExceptions.o): Ditto. + (m2/gm2-compiler-boot/M2GCCDeclare.o): Add gm2-libs-ch to the + search path. + (m2/gm2-compiler-boot/M2Error.o): Ditto. + (m2/gm2-compiler-boot/%.o): Ditto. + (m2/pge-boot/%.o): Ditto. + * gm2-gcc/m2color.cc (m2color_colorize_start): Replace parameter + type char to void and recast to char * when calling colorize_start. + * gm2-gcc/m2color.h (m2color_colorize_start): Replace parameter + type char to void. + * gm2-gcc/m2type.h: Remove #if 0 block. + * gm2-libs-ch/SysExceptions.c (DECL_PROC_T): Provide alternative + defines for MC an gm2. + (PROC_FUNC): Ditto. + (EXTERN): Force undefine and redefine. + (SysExceptions_InitExceptionHandlers): Rewrite function + declaration using defined macros. + (_M2_SysExceptions_init): Use EXTERN. + (_M2_SysExceptions_finish): Replace with ... + (_M2_SysExceptions_fini): ... this and add parameters. + * gm2-libs-ch/UnixArgs.cc (gm2-libs-host.h): Include. + (GUnixArgs.h): Include. + (GM2RTS.h): Include. + (UnixArgs_GetArgV): Change return type to void *. + (UnixArgs_GetEnvV): Ditto. + * gm2-libs-ch/m2rts.h (M2RTS_RegisterModule_Cstr): Add new + conditional macro. + (M2RTS_RequestDependant): Remove. + (M2RTS_RegisterModule): Ditto. + (M2RTS_Terminate): Ditto. + (M2RTS_DeconstructModules): Ditto. + (M2RTS_Halt): Ditto. + (_M2_M2RTS_init): Ditto. + (M2RTS_ConstructModules): Ditto. + * gm2-libs-ch/termios.c (_termios_C): Define. + (EXTERN): Add conditional definition. + (doSetUnset): New function. + (_M2_termios_init): Add correct parameters. + (_M2_termios_finish): Ditto. + (_M2_termios_fini): Ditto. + * mc-boot-ch/GSysExceptions.c (DECL_PROC_T): New define. + (PROC_FUNC): Ditto. + (EXTERN): Force undef. + (SysExceptions_InitExceptionHandlers): Rewrite. + * mc-boot-ch/Glibc.c (libc_open): Rename parameter + oflag to flags. + * mc-boot-ch/Gtermios.cc (_termios_C): New define. + (KillTermios): Change parameter type from + struct termios * to termios_TERMIOS. + (tcsnow): Rewrite. + (tcsnow): Rewrite. + (tcsdrain): Rewrite. + (tcsflush): Rewrite. + (cfgetospeed): Rewrite. + (cfgetispeed): Rewrite. + (cfsetospeed): Rewrite. + (cfsetispeed): Rewrite. + (cfsetspeed): Rewrite. + (cfsetspeed): Rewrite. + (tcgetattr): Rewrite. + (tcsetattr): Rewrite. + (cfmakeraw): Rewrite. + (tcsendbreak): Rewrite. + (tcdrain): Rewrite. + (tcflushi): Rewrite. + (tcflusho): Rewrite. + (tcflushio): Rewrite. + (tcflowoni): Rewrite. + (tcflowoffi): Rewrite. + (tcflowono): Rewrite. + (tcflowoffo): Rewrite. + (GetFlag): Rewrite. + (SetFlag): Rewrite. + (GetChar): Rewrite. + (SetChar): Rewrite. + (InitTermios): Rewrite. + * pge-boot/GM2RTS.cc: Regenerate. + * pge-boot/GSysExceptions.cc: Ditto. + * pge-boot/Gtermios.cc: Ditto. + * pge-boot/m2rts.h: Rewrite. + * mc-boot-ch/GSYSTEM.h: New file. + * mc-boot-ch/GSysExceptions.h: New file. + * mc-boot-ch/Gtermios.h: New file. + 2024-08-24 Gaius Mulley * gm2-libs/libc.def (atof): Export unqualified. diff --git a/gcc/po/ChangeLog b/gcc/po/ChangeLog index 09fe5552029..9903048e73b 100644 --- a/gcc/po/ChangeLog +++ b/gcc/po/ChangeLog @@ -1,3 +1,7 @@ +2024-08-28 Joseph Myers + + * ka.po: New file. + 2024-08-27 Joseph Myers * zh_CN.po: Update. diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 0250a0f025b..aadce43ebee 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,136 @@ +2024-08-28 Marek Polacek + + PR c++/116476 + * g++.dg/cpp0x/initlist-opt2.C: New test. + +2024-08-28 Georg-Johann Lay + + * gcc.target/avr/torture/ifelse-c.h: New file. + * gcc.target/avr/torture/ifelse-d.h: New file. + * gcc.target/avr/torture/ifelse-q.h: New file. + * gcc.target/avr/torture/ifelse-r.h: New file. + * gcc.target/avr/torture/ifelse-c-i8.c: New test. + * gcc.target/avr/torture/ifelse-d-i8.c: New test. + * gcc.target/avr/torture/ifelse-q-i8.c: New test. + * gcc.target/avr/torture/ifelse-r-i8.c: New test. + * gcc.target/avr/torture/ifelse-c-i16.c: New test. + * gcc.target/avr/torture/ifelse-d-i16.c: New test. + * gcc.target/avr/torture/ifelse-q-i16.c: New test. + * gcc.target/avr/torture/ifelse-r-i16.c: New test. + * gcc.target/avr/torture/ifelse-c-u16.c: New test. + * gcc.target/avr/torture/ifelse-d-u16.c: New test. + * gcc.target/avr/torture/ifelse-q-u16.c: New test. + * gcc.target/avr/torture/ifelse-r-u16.c: New test. + +2024-08-28 Marek Polacek + + PR c++/116424 + * g++.dg/cpp2a/paren-init38.C: New test. + +2024-08-28 Richard Sandiford + + * gcc.target/aarch64/struct_zero.c: New test. + +2024-08-28 Filip Kastl + + PR tree-optimization/116355 + * gcc.target/i386/switch-exp-transform-1.c: Don't test for + presence of POPCOUNT internal fn after switch conversion. Test + for it after __builtin_popcount has had a chance to get + expanded. + * gcc.target/i386/switch-exp-transform-3.c: Also test char and + short. + +2024-08-28 Alex Coplan + + PR libstdc++/116140 + * lib/scanltranstree.exp (scan-ltrans-rtl-dump): New. + (scan-ltrans-rtl-dump-not): New. + (scan-ltrans-rtl-dump-dem): New. + (scan-ltrans-rtl-dump-dem-not): New. + (scan-ltrans-rtl-dump-times): New. + +2024-08-28 Jason Merrill + + * g++.dg/cpp0x/extern_template-7.C: New test. + * g++.dg/cpp23/ext-floating19.C: New test. + * g++.dg/cpp2a/abbrev-fn1.C: New test. + +2024-08-28 Pan Li + + PR target/116278 + * gcc.target/riscv/pr116278-run-1.c: Take compile instead of run. + * gcc.target/riscv/pr116278-run-2.c: Ditto. + * gcc.dg/torture/pr116278-run-1.c: New test. + * gcc.dg/torture/pr116278-run-2.c: New test. + +2024-08-28 Pan Li + + * gcc.target/riscv/rvv/autovec/vec_sat_arith.h: Add test helper macros. + * gcc.target/riscv/rvv/autovec/binop/vec_sat_u_add_imm_reconcile-1.c: New test. + * gcc.target/riscv/rvv/autovec/binop/vec_sat_u_add_imm_reconcile-10.c: New test. + * gcc.target/riscv/rvv/autovec/binop/vec_sat_u_add_imm_reconcile-11.c: New test. + * gcc.target/riscv/rvv/autovec/binop/vec_sat_u_add_imm_reconcile-12.c: New test. + * gcc.target/riscv/rvv/autovec/binop/vec_sat_u_add_imm_reconcile-13.c: New test. + * gcc.target/riscv/rvv/autovec/binop/vec_sat_u_add_imm_reconcile-14.c: New test. + * gcc.target/riscv/rvv/autovec/binop/vec_sat_u_add_imm_reconcile-15.c: New test. + * gcc.target/riscv/rvv/autovec/binop/vec_sat_u_add_imm_reconcile-2.c: New test. + * gcc.target/riscv/rvv/autovec/binop/vec_sat_u_add_imm_reconcile-3.c: New test. + * gcc.target/riscv/rvv/autovec/binop/vec_sat_u_add_imm_reconcile-4.c: New test. + * gcc.target/riscv/rvv/autovec/binop/vec_sat_u_add_imm_reconcile-5.c: New test. + * gcc.target/riscv/rvv/autovec/binop/vec_sat_u_add_imm_reconcile-6.c: New test. + * gcc.target/riscv/rvv/autovec/binop/vec_sat_u_add_imm_reconcile-7.c: New test. + * gcc.target/riscv/rvv/autovec/binop/vec_sat_u_add_imm_reconcile-8.c: New test. + * gcc.target/riscv/rvv/autovec/binop/vec_sat_u_add_imm_reconcile-9.c: New test. + +2024-08-28 Kito Cheng + + * gcc.target/riscv/rvv/autovec/rotr.c: New. + +2024-08-28 Joern Rennecke + + PR testsuite/116271 + * gcc.dg/vect/tsvc/vect-tsvc-s176.c [TRUNCATE_TEST]: Make sure + that m stays the same as the loop bound of the middle loop. + * gcc.dg/vect/tsvc/tsvc.h (get_expected_result) [TRUNCATE_TEST]: + Adjust expected value. + +2024-08-28 Pan Li + + * gcc.target/riscv/sat_arith.h: Add test helper macros. + * gcc.target/riscv/sat_u_sub_imm-13.c: New test. + * gcc.target/riscv/sat_u_sub_imm-13_1.c: New test. + * gcc.target/riscv/sat_u_sub_imm-13_2.c: New test. + * gcc.target/riscv/sat_u_sub_imm-14.c: New test. + * gcc.target/riscv/sat_u_sub_imm-14_1.c: New test. + * gcc.target/riscv/sat_u_sub_imm-14_2.c: New test. + * gcc.target/riscv/sat_u_sub_imm-15.c: New test. + * gcc.target/riscv/sat_u_sub_imm-15_1.c: New test. + * gcc.target/riscv/sat_u_sub_imm-15_2.c: New test. + * gcc.target/riscv/sat_u_sub_imm-16.c: New test. + * gcc.target/riscv/sat_u_sub_imm-run-13.c: New test. + * gcc.target/riscv/sat_u_sub_imm-run-14.c: New test. + * gcc.target/riscv/sat_u_sub_imm-run-15.c: New test. + * gcc.target/riscv/sat_u_sub_imm-run-16.c: New test. + +2024-08-28 Pan Li + + * gcc.target/riscv/sat_arith.h: Add test helper macros. + * gcc.target/riscv/sat_u_sub_imm-10.c: New test. + * gcc.target/riscv/sat_u_sub_imm-10_1.c: New test. + * gcc.target/riscv/sat_u_sub_imm-10_2.c: New test. + * gcc.target/riscv/sat_u_sub_imm-11.c: New test. + * gcc.target/riscv/sat_u_sub_imm-11_1.c: New test. + * gcc.target/riscv/sat_u_sub_imm-11_2.c: New test. + * gcc.target/riscv/sat_u_sub_imm-12.c: New test. + * gcc.target/riscv/sat_u_sub_imm-9.c: New test. + * gcc.target/riscv/sat_u_sub_imm-9_1.c: New test. + * gcc.target/riscv/sat_u_sub_imm-9_2.c: New test. + * gcc.target/riscv/sat_u_sub_imm-run-10.c: New test. + * gcc.target/riscv/sat_u_sub_imm-run-11.c: New test. + * gcc.target/riscv/sat_u_sub_imm-run-12.c: New test. + * gcc.target/riscv/sat_u_sub_imm-run-9.c: New test. + 2024-08-27 Andi Kleen * gcc.dg/vect/vect-switch-ifcvt-1.c: Use vect_condition to diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog index aad4c598abd..8ae8c87bfa1 100644 --- a/libgomp/ChangeLog +++ b/libgomp/ChangeLog @@ -1,3 +1,36 @@ +2024-08-28 Tobias Burnus + + * fortran.c (omp_get_interop_str_, omp_get_interop_name_, + omp_get_interop_type_desc_, omp_get_interop_rc_desc_): Add. + * libgomp.map (GOMP_5.1.3): New; add interop routines. + * omp.h.in: Add interop typedefs, enum and prototypes. + (__GOMP_DEFAULT_NULL): Define. + (omp_target_memcpy_async, omp_target_memcpy_rect_async): + Use it for the optional depend argument. + * omp_lib.f90.in: Add paramters and interfaces for interop. + * omp_lib.h.in: Likewise; move F90 '&' to column 81 for + -ffree-length-80. + * target.c (omp_get_num_interop_properties, omp_get_interop_int, + omp_get_interop_ptr, omp_get_interop_str, omp_get_interop_name, + omp_get_interop_type_desc, omp_get_interop_rc_desc): Add. + * config/gcn/target.c (omp_get_num_interop_properties, + omp_get_interop_int, omp_get_interop_ptr, omp_get_interop_str, + omp_get_interop_name, omp_get_interop_type_desc, + omp_get_interop_rc_desc): Add. + * config/nvptx/target.c (omp_get_num_interop_properties, + omp_get_interop_int, omp_get_interop_ptr, omp_get_interop_str, + omp_get_interop_name, omp_get_interop_type_desc, + omp_get_interop_rc_desc): Add. + * testsuite/libgomp.c-c++-common/interop-routines-1.c: New test. + * testsuite/libgomp.c-c++-common/interop-routines-2.c: New test. + * testsuite/libgomp.fortran/interop-routines-1.F90: New test. + * testsuite/libgomp.fortran/interop-routines-2.F90: New test. + * testsuite/libgomp.fortran/interop-routines-3.F: New test. + * testsuite/libgomp.fortran/interop-routines-4.F: New test. + * testsuite/libgomp.fortran/interop-routines-5.F: New test. + * testsuite/libgomp.fortran/interop-routines-6.F: New test. + * testsuite/libgomp.fortran/interop-routines-7.F90: New test. + 2024-08-09 Thomas Schwinge * testsuite/libgomp.c++/static-aggr-constructor-destructor-1.C: diff --git a/libquadmath/ChangeLog b/libquadmath/ChangeLog index 5c23cf016e9..204ac266f6e 100644 --- a/libquadmath/ChangeLog +++ b/libquadmath/ChangeLog @@ -1,3 +1,9 @@ +2024-08-28 Francois-Xavier Coudert + + * libquadmath.texi (M_LOG2Eq, M_LOG10Eq, M_1_PIq, + M_2_PIq, M_2_SQRTPIq, M_SQRT1_2q): Adjust descriptioni + of these constants. + 2024-08-03 Jakub Jelinek PR target/116007 diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 08875733aec..71ccda6bdff 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,58 @@ +2024-08-28 Jonathan Wakely + + * configure.ac: Fix check for O_NONBLOCK. + * config.h.in: Regenerate. + * configure: Regenerate. + +2024-08-28 Jonathan Wakely + + * include/experimental/io_context: Remove name of unused + parameter. + * include/experimental/socket: Add [[maybe_unused]] attribute. + +2024-08-28 Jonathan Wakely + + * include/std/format (format_parse_context::check_dynamic_spec): + Add [[maybe_unused]] attribute and comment. + +2024-08-28 Jonathan Wakely + + * include/std/ranges (to): Remove unused typedef. + +2024-08-28 Kim Gräsman + + * config/cpu/aarch64/opt/ext/opt_random.h: Improve doxygen file + docs. + * config/cpu/i486/opt/ext/opt_random.h: Likewise. + +2024-08-28 Kim Gräsman + + * include/bits/cpp_type_traits.h: Improve doxygen file docs. + +2024-08-28 Jason Merrill + + * include/std/istream: Add cast to avoid -Wsign-compare. + * include/std/stacktrace: Likewise. + +2024-08-28 Jason Merrill + + * testsuite/20_util/default_delete/void_neg.cc: Fix regexp quoting. + +2024-08-28 Jason Merrill + + * include/std/coroutine (coroutine_handle): Use nullptr instead of + 0 as initializer for _M_fr_ptr. + +2024-08-28 Jason Merrill + + * include/bits/stl_uninitialized.h (__uninitialized_move_copy): Add + missing return. + +2024-08-28 Jason Merrill + + * include/decimal/decimal.h (_DEFINE_DECIMAL_BINARY_OP_WITH_INT): + Remove redundant semicolons. + 2024-08-27 Jonathan Wakely PR libstdc++/115098