aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog97
-rw-r--r--gcc/DATESTAMP2
-rw-r--r--gcc/c-family/ChangeLog7
-rw-r--r--gcc/cp/ChangeLog19
-rw-r--r--gcc/m2/ChangeLog103
-rw-r--r--gcc/po/ChangeLog4
-rw-r--r--gcc/testsuite/ChangeLog133
7 files changed, 364 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index a11dd36..062ca30 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,100 @@
+2024-08-28 Andrew Pinski <quic_apinski@quicinc.com>
+
+ * internal-fn.cc (expand_POPCOUNT): Dump the costs for
+ the two choices.
+
+2024-08-28 Jonathan Wakely <jwakely@redhat.com>
+
+ * doc/contrib.texi (Contributors): Add Dhruv Matani.
+
+2024-08-28 Georg-Johann Lay <avr@gjlay.de>
+
+ * 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 <richard.sandiford@arm.com>
+
+ * 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 <richard.sandiford@arm.com>
+
+ * 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 <richard.sandiford@arm.com>
+
+ * tree.h (ASM_INPUT_P): Fix documentation.
+
+2024-08-28 Filip Kastl <fkastl@suse.cz>
+
+ 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 <alex.coplan@arm.com>
+
+ PR libstdc++/116140
+ * doc/sourcebuild.texi: Document ltrans-rtl value of kind for
+ scan-<kind>-dump*.
+
+2024-08-28 Richard Biener <rguenther@suse.de>
+
+ * tree-vect-slp.cc (debug): Add overload for slp_instance.
+
+2024-08-28 Richard Biener <rguenther@suse.de>
+
+ * tree-vect-slp.cc (vect_build_slp_store_interleaving):
+ Fix reference counting.
+ (vect_build_slp_instance): Release rhs_nodes.
+
+2024-08-28 Richard Biener <rguenther@suse.de>
+
+ * tree-vect-slp.cc (vect_build_slp_store_interleaving): Split
+ out from ...
+ (vect_build_slp_instance): Here.
+
+2024-08-28 Pan Li <pan2.li@intel.com>
+
+ * 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 <kito.cheng@sifive.com>
+
+ * config/riscv/vector.md (mode_idx): Add vrol and vror.
+
+2024-08-28 Pan Li <pan2.li@intel.com>
+
+ * 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 <schwab@linux-m68k.org>
PR target/116413
diff --git a/gcc/DATESTAMP b/gcc/DATESTAMP
index 00e43a0..0b8bcef 100644
--- a/gcc/DATESTAMP
+++ b/gcc/DATESTAMP
@@ -1 +1 @@
-20240828
+20240829
diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog
index 1c8faaf..a61eabe 100644
--- a/gcc/c-family/ChangeLog
+++ b/gcc/c-family/ChangeLog
@@ -1,3 +1,10 @@
+2024-08-28 Jason Merrill <jason@redhat.com>
+
+ * 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 <ppalka@redhat.com>
* c.opt.urls: Regenerate.
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 863e99b..1fdeb303 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,22 @@
+2024-08-28 Marek Polacek <polacek@redhat.com>
+
+ PR c++/116476
+ * call.cc (maybe_init_list_as_array): Try convert_like and see if it
+ worked.
+
+2024-08-28 Marek Polacek <polacek@redhat.com>
+
+ PR c++/116424
+ * typeck2.cc (process_init_constructor_record): Move the clearing of
+ TARGET_EXPR_ELIDING_P down.
+
+2024-08-28 Jason Merrill <jason@redhat.com>
+
+ * 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ć <arsen@aarsen.me>
PR c++/109867
diff --git a/gcc/m2/ChangeLog b/gcc/m2/ChangeLog
index 382f8a8..1b38caf 100644
--- a/gcc/m2/ChangeLog
+++ b/gcc/m2/ChangeLog
@@ -1,3 +1,106 @@
+2024-08-28 Gaius Mulley <gaiusmod2@gmail.com>
+
+ 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 <gaiusmod2@gmail.com>
* gm2-libs/libc.def (atof): Export unqualified.
diff --git a/gcc/po/ChangeLog b/gcc/po/ChangeLog
index 09fe555..9903048 100644
--- a/gcc/po/ChangeLog
+++ b/gcc/po/ChangeLog
@@ -1,3 +1,7 @@
+2024-08-28 Joseph Myers <josmyers@redhat.com>
+
+ * ka.po: New file.
+
2024-08-27 Joseph Myers <josmyers@redhat.com>
* zh_CN.po: Update.
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 0250a0f..aadce43 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,136 @@
+2024-08-28 Marek Polacek <polacek@redhat.com>
+
+ PR c++/116476
+ * g++.dg/cpp0x/initlist-opt2.C: New test.
+
+2024-08-28 Georg-Johann Lay <avr@gjlay.de>
+
+ * 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 <polacek@redhat.com>
+
+ PR c++/116424
+ * g++.dg/cpp2a/paren-init38.C: New test.
+
+2024-08-28 Richard Sandiford <richard.sandiford@arm.com>
+
+ * gcc.target/aarch64/struct_zero.c: New test.
+
+2024-08-28 Filip Kastl <fkastl@suse.cz>
+
+ 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 <alex.coplan@arm.com>
+
+ 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 <jason@redhat.com>
+
+ * 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 <pan2.li@intel.com>
+
+ 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 <pan2.li@intel.com>
+
+ * 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 <kito.cheng@sifive.com>
+
+ * gcc.target/riscv/rvv/autovec/rotr.c: New.
+
+2024-08-28 Joern Rennecke <joern.rennecke@riscy-ip.com>
+
+ 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) <s176> [TRUNCATE_TEST]:
+ Adjust expected value.
+
+2024-08-28 Pan Li <pan2.li@intel.com>
+
+ * 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 <pan2.li@intel.com>
+
+ * 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 <ak@gcc.gnu.org>
* gcc.dg/vect/vect-switch-ifcvt-1.c: Use vect_condition to