Debian Codegraph @

gcc/ChangeLog

raw
1 2026-06-22 Robin Dapp <[email protected]>
2
3 Backported from master:
4 2026-06-17 Robin Dapp <[email protected]>
5
6 PR target/125478
7 * config/riscv/vector.md: Set widen-alu mode_idx to 3.
8
9 2026-06-22 Robin Dapp <[email protected]>
10
11 Backported from master:
12 2026-06-16 Robin Dapp <[email protected]>
13
14 PR target/125670
15 * config/riscv/autovec-opt.md: Use avl_type operand number.
16
17 2026-06-22 Torbjörn SVENSSON <[email protected]>
18
19 Backported from master:
20 2026-06-11 Torbjörn SVENSSON <[email protected]>
21
22 PR testsuite/113276
23 * doc/sourcebuild.texi (arm_mixed_fp): Document.
24
25 2026-06-18 Kewen Lin <[email protected]>
26
27 Backported from master:
28 2026-05-28 Kewen Lin <[email protected]>
29 Xin Liu <[email protected]>
30
31 * config/i386/c86-4g-m7.md (c86_4g_m7_fpu): Remove automaton.
32 (c86_4g_m7_fpu02): New automaton.
33 (c86_4g_m7_fpu13): Ditto.
34 (c86-4g-m7-fpu0): Move to c86_4g_m7_fpu02 automaton.
35 (c86-4g-m7-fpu1): Move to c86_4g_m7_fpu13 automaton.
36 (c86-4g-m7-fpu2): Move to c86_4g_m7_fpu02 automaton.
37 (c86-4g-m7-fpu3): Move to c86_4g_m7_fpu13 automaton.
38 (c86-4g-m7-fdiv): Remove cpu unit.
39 (c86-4g-m7-fdiv1): New cpu unit.
40 (c86-4g-m7-fdiv3): Ditto.
41 (c86-4g-m7-fpu_0_3): New reservation.
42 (c86-4g-m7-fpu_1_3x2): Ditto.
43 (c86-4g-m7-fpu_1_3x3): Ditto.
44 (c86-4g-m7-fpu_1_3x6): Ditto.
45 (c86-4g-m7-fpux2): Ditto.
46 (c86-4g-m7-fpux4): Ditto.
47 (c86-4g-m7-fpux6): Ditto.
48 (c86-4g-m7-fpux8): Ditto.
49 (c86-4g-m7-fpux16): Ditto.
50 (c86-4g-m7-fp1fdiv1x4): Ditto.
51 (c86-4g-m7-fp3fdiv3x4): Ditto.
52 (c86-4g-m7-fdiv13): Ditto.
53 (c86-4g-m7-fp13div13): Ditto.
54 (c86-4g-m7-fp13div13x4): Ditto.
55 (c86-4g-m7-fp1div1_fp3div3_x4x8): Ditto.
56 (c86-4g-m7-fp1div1_fp3div3_x4x9): Ditto.
57 (c86-4g-m7-fp1div1_fp3div3_x4x11): Ditto.
58 (c86-4g-m7-fp1div1_fp3div3_x4x15): Ditto.
59 (c86-4g-m7-fp1div1_fp3div3_x4x18): Ditto.
60 (c86_4g_m7_idiv): New reservation.
61 (c86_4g_m7_idiv_QI): Adjust reservation latency and unit occupancy.
62 (c86_4g_m7_idiv_load): New reservation.
63 (c86_4g_m7_idiv_QI_load): Adjust reservation latency and unit
64 occupancy.
65 (c86_4g_m7_idiv_DI): Remove reservation.
66 (c86_4g_m7_idiv_SI): Ditto.
67 (c86_4g_m7_idiv_HI): Ditto.
68 (c86_4g_m7_idiv_DI_load): Ditto.
69 (c86_4g_m7_idiv_SI_load): Ditto.
70 (c86_4g_m7_idiv_HI_load): Ditto.
71 (c86_4g_m7_sse_insertimm): Adjust reservation units and unit
72 occupancy.
73 (c86_4g_m7_sse_insert): Ditto.
74 (c86_4g_m7_fp_sqrt): Adjust reservation.
75 (c86_4g_m7_fp_div): Ditto.
76 (c86_4g_m7_fp_div_load): Ditto.
77 (c86_4g_m7_fp_idiv_load): Ditto.
78 (c86_4g_m7_sse_pinsr_reg): Adjust reservation units and unit
79 occupancy.
80 (c86_4g_m7_sse_pinsr_reg_load): Ditto.
81 (c86_4g_m7_avx_vpinsr_reg): Ditto.
82 (c86_4g_m7_avx_vpinsr_reg_load): Ditto.
83 (c86_4g_m7_avx512_perm_xmm): Delete the prefix condition.
84 (c86_4g_m7_avx512_perm_xmm_opload): Ditto.
85 (c86_4g_m7_avx512_permi2_ymm): Adjust reservation units and unit
86 occupancy.
87 (c86_4g_m7_avx512_permi2_zmm): Ditto.
88 (c86_4g_m7_avx512_permi2_ymm_load): Ditto.
89 (c86_4g_m7_avx512_permi2_zmm_load): Ditto.
90 (c86_4g_m7_avx512_perm_zmm_imm): Ditto.
91 (c86_4g_m7_avx512_perm_zmm_imm_load): Ditto.
92 (c86_4g_m7_avx512_perm_zmm_noimm): Ditto.
93 (c86_4g_m7_sse_perm_zmm_noimm_load): Ditto.
94 (c86_4g_m7_avx_perm_ymm): Remove.
95 (c86_4g_m7_avx_perm_ymem): Ditto.
96 (c86_4g_m7_avx512_shuf_zmm): Adjust reservation units and unit
97 occupancy.
98 (c86_4g_m7_avx512_shuf_zmem): Ditto.
99 (c86_4g_m7_avx512_cmpestr): Ditto.
100 (c86_4g_m7_avx512_cmpestr_load): Ditto.
101 (c86_4g_m7_avx512_vdbpsadbw_zmm): Ditto.
102 (c86_4g_m7_avx512_vdbpsadbw_zmem): Ditto.
103 (c86_4g_m7_avx_ssecomi_comi): Ditto.
104 (c86_4g_m7_avx_ssecomi_comi_load): Ditto.
105 (c86_4g_m7_avx512_expand): Ditto.
106 (c86_4g_m7_avx512_expand_load): Ditto.
107 (c86_4g_m7_avx512_expand_z): Ditto.
108 (c86_4g_m7_avx512_expand_z_load): Ditto.
109 (c86_4g_m7_sse_movnt_xy): Rename to c86_4g_m7_sse_movnt.
110 (c86_4g_m7_avx512_sseadd_xy): Adjust reservation units.
111 (c86_4g_m7_avx512_sseadd_xy_load): Ditto.
112 (c86_4g_m7_sse_sseiadd_hplus): Adjust reservation units and unit
113 occupancy.
114 (c86_4g_m7_sse_sseiadd_hplus_load): Ditto.
115 (c86_4g_m7_avx512_ssemul): Adjust reservation units.
116 (c86_4g_m7_avx512_ssemul_load): Ditto.
117 (c86_4g_m7_avx512_ssediv): Remove.
118 (c86_4g_m7_avx512_ssediv_mem): Remove.
119 (c86_4g_m7_avx512_ssediv_x): New.
120 (c86_4g_m7_avx512_ssediv_xmem): New.
121 (c86_4g_m7_avx512_ssediv_y): New.
122 (c86_4g_m7_avx512_ssediv_ymem): New.
123 (c86_4g_m7_avx512_ssediv_z): Adjust reservation units.
124 (c86_4g_m7_avx512_ssediv_zmem): Ditto.
125 (c86_4g_m7_avx512_ssecmp_z): Add reservation units and unit
126 occupancy.
127 (c86_4g_m7_avx512_ssecmp_z_load): Ditto.
128 (c86_4g_m7_avx512_ssecmp_vp_z): New reservation.
129 (c86_4g_m7_avx512_ssecmp_vp_z_load): Ditto.
130 (c86_4g_m7_avx512_ssecmp_test_z): Remove reservation.
131 (c86_4g_m7_avx512_ssecmp_test_z_load): Ditto.
132 (c86_4g_m7_avx512_muladd): Broaden matching condition.
133 (c86_4g_m7_avx512_muladd_load): Ditto.
134 (c86_4g_m7_fma_muladd): Remove reservation.
135 (c86_4g_m7_fma_muladd_load): Ditto.
136 (c86_4g_m7_avx512_sse_conflict_x): Add reservation units and unit
137 occupancy.
138 (c86_4g_m7_avx512_sse_conflict_x_load): Ditto.
139 (c86_4g_m7_avx512_sse_conflict_y): Ditto.
140 (c86_4g_m7_avx512_sse_conflict_y_load): Ditto.
141 (c86_4g_m7_avx512_sse_conflict_z): Ditto.
142 (c86_4g_m7_avx512_sse_conflict_z_load): Ditto.
143 (c86_4g_m7_avx512_sse_class_z): Add reservation units and unit
144 occupancy.
145 (c86_4g_m7_avx512_sse_class_z_load): Ditto.
146 (c86_4g_m7_avx512_sse_sqrt): Remove.
147 (c86_4g_m7_avx512_sse_sqrt_load): Remove.
148 (c86_4g_m7_avx512_sse_sqrt_sf_x): New.
149 (c86_4g_m7_avx512_sse_sqrt_sf_xload): New.
150 (c86_4g_m7_avx512_sse_sqrt_sf_y): New.
151 (c86_4g_m7_avx512_sse_sqrt_sf_yload): New.
152 (c86_4g_m7_avx512_sse_sqrt_sf_z): New.
153 (c86_4g_m7_avx512_sse_sqrt_sf_zload): New.
154 (c86_4g_m7_avx512_sse_sqrt_df_x): New.
155 (c86_4g_m7_avx512_sse_sqrt_df_xload): New.
156 (c86_4g_m7_avx512_sse_sqrt_df_y): New.
157 (c86_4g_m7_avx512_sse_sqrt_df_yload): New.
158 (c86_4g_m7_avx512_sse_sqrt_df_z): New.
159 (c86_4g_m7_avx512_sse_sqrt_df_zload): New.
160 (c86_4g_m7_avx512_msklog_vector): Add reservation units and unit
161 occupancy.
162 (c86_4g_m7_avx512_mskmov_z_k): Ditto.
163 (c86_4g_m7_avx512_mskmov_k_reg): Ditto.
164 * config/i386/c86-4g.md (c86_4g_fp): Remove automaton.
165 (c86_4g_fp024): New automaton.
166 (c86_4g_fp1): Ditto.
167 (c86-4g-fp0): Move to c86_4g_fp024 automaton.
168 (c86-4g-fp1): Move to c86_4g_fp1 automaton.
169 (c86-4g-fp2): Move to c86_4g_fp024 automaton.
170 (c86-4g-fp3): Ditto.
171 (c86-4g-fp1fdivx4): New reservation.
172 (c86_4g_fp_sqrt): Adjust reservation.
173 (c86_4g_sse_sqrt_sf): Ditto.
174 (c86_4g_sse_sqrt_sf_mem): Ditto.
175 (c86_4g_sse_sqrt_df): Ditto.
176 (c86_4g_sse_sqrt_df_mem): Ditto.
177 (c86_4g_fp_op_div): Ditto.
178 (c86_4g_fp_op_div_load): Ditto.
179 (c86_4g_fp_op_idiv_load): Adjust reservation latency.
180 (c86_4g_ssediv_ss_ps): Adjust reservation.
181 (c86_4g_ssediv_ss_ps_load): Ditto.
182 (c86_4g_ssediv_sd_pd): Ditto.
183 (c86_4g_ssediv_sd_pd_load): Ditto.
184 (c86_4g_ssediv_avx256_ps): Ditto.
185 (c86_4g_ssediv_avx256_ps_load): Ditto.
186 (c86_4g_ssediv_avx256_pd): Ditto.
187 (c86_4g_ssediv_avx256_pd_load): Ditto.
188
189 2026-06-18 Kewen Lin <[email protected]>
190
191 Backported from master:
192 2026-05-01 Kewen Lin <[email protected]>
193
194 * config/i386/c86-4g-m7.md (c86_4g_m7_idiv): New automaton.
195 (c86_4g_m7_fdiv): Ditto.
196 (c86-4g-m7-idiv): New unit.
197 (c86-4g-m7-fdiv): Ditto.
198 (c86_4g_m7_idiv_DI): Adjust unit in the reservation.
199 (c86_4g_m7_idiv_SI): Ditto.
200 (c86_4g_m7_idiv_HI): Ditto.
201 (c86_4g_m7_idiv_QI): Ditto.
202 (c86_4g_m7_idiv_DI_load): Ditto.
203 (c86_4g_m7_idiv_SI_load): Ditto.
204 (c86_4g_m7_idiv_HI_load): Ditto.
205 (c86_4g_m7_idiv_QI_load): Ditto.
206 (c86_4g_m7_fp_div): Ditto.
207 (c86_4g_m7_fp_div_load): Ditto.
208 (c86_4g_m7_fp_idiv_load): Ditto.
209 (c86_4g_m7_avx512_ssediv): Ditto.
210 (c86_4g_m7_avx512_ssediv_mem): Ditto.
211 (c86_4g_m7_avx512_ssediv_z): Ditto.
212 (c86_4g_m7_avx512_ssediv_zmem): Ditto.
213 (c86_4g_m7_avx512_sse_sqrt): Ditto.
214 (c86_4g_m7_avx512_sse_sqrt_load): Ditto.
215 (c86_4g_m7_fp_sqrt): Ditto. Rename from ...
216 (c86_4g_m7fp_sqrt): ... here.
217 * config/i386/c86-4g.md (c86_4g_idiv): New automaton.
218 (c86_4g_fdiv): Ditto.
219 (c86-4g-idiv): New unit.
220 (c86-4g-fdiv): Ditto.
221 (c86_4g_idiv_DI): Ditto.
222 (c86_4g_idiv_SI): Ditto.
223 (c86_4g_idiv_HI): Ditto.
224 (c86_4g_idiv_QI): Ditto.
225 (c86_4g_idiv_mem_DI): Ditto.
226 (c86_4g_idiv_mem_SI): Ditto.
227 (c86_4g_idiv_mem_HI): Ditto.
228 (c86_4g_idiv_mem_QI): Ditto.
229 (c86_4g_fp_sqrt): Ditto.
230 (c86_4g_sse_sqrt_sf): Ditto.
231 (c86_4g_sse_sqrt_sf_mem): Ditto.
232 (c86_4g_sse_sqrt_df): Ditto.
233 (c86_4g_sse_sqrt_df_mem): Ditto.
234 (c86_4g_fp_op_div): Ditto.
235 (c86_4g_fp_op_div_load): Ditto.
236 (c86_4g_fp_op_idiv_load): Ditto.
237 (c86_4g_ssediv_ss_ps): Ditto.
238 (c86_4g_ssediv_ss_ps_load): Ditto.
239 (c86_4g_ssediv_ss_pd): Ditto.
240 (c86_4g_ssediv_ss_pd_load): Ditto.
241 (c86_4g_ssediv_avx256_ps): Ditto.
242 (c86_4g_ssediv_avx256_ps_load): Ditto.
243 (c86_4g_ssediv_avx256_pd): Ditto.
244 (c86_4g_ssediv_avx256_pd_load): Ditto.
245
246 2026-06-18 Xin Liu <[email protected]>
247
248 Backported from master:
249 2026-04-29 Xin Liu <[email protected]>
250 Zhaoling Bao <[email protected]>
251
252 * common/config/i386/cpuinfo.h (get_hygon_cpu): Detect the specific
253 type of HYGON CPU and return HYGON CPU name.
254 (cpu_indicator_init): Handle HYGON CPU.
255 * common/config/i386/i386-common.cc (processor_names): Add HYGON
256 C86-4G processors c86-4g-m{4,6,7}.
257 (processor_alias_table): Add hygon, hygonfam18h and c86-4g-m{4,6,7}
258 entries.
259 (ARRAY_SIZE): Update as new entries added.
260 * common/config/i386/i386-cpuinfo.h (enum processor_vendor): Add
261 VENDOR_HYGON.
262 (enum processor_types): Add HYGONFAM18H.
263 (enum processor_subtypes): Add HYGONFAM18H_C86_4G_M{4,6,7}.
264 * config.gcc: Add support for c86_4g_m{4,6,7}.
265 * config/i386/cpuid.h (signature_HYGON_ebx): Add signature for HYGON.
266 (signature_HYGON_ecx): Ditto.
267 (signature_HYGON_edx): Ditto.
268 * config/i386/driver-i386.cc (host_detect_local_cpu): Support HYGON
269 c86-4g-m4{4,6,7} processors.
270 * config/i386/i386-c.cc (ix86_target_macros_internal): Ditto.
271 * config/i386/i386-options.cc (m_C86_4G_M4): New definition.
272 (m_C86_4G_M6): Ditto.
273 (m_C86_4G_M7): Ditto.
274 (m_C86_4G): Ditto.
275 (processor_cost_table): Add cost entries for c86-4g-m4{4,6,7}.
276 * config/i386/i386.cc (ix86_reassociation_width): Add handlings for
277 PROCESSOR_C86_4G_M{4,6,7}.
278 * config/i386/i386.h (enum processor_type): Define
279 PROCESSOR_C86_4G_M{4,6,7}.
280 (PTA_C86_4G_M4): New define.
281 (PTA_C86_4G_M6): Ditto.
282 (PTA_C86_4G_M7): Ditto.
283 * config/i386/x86-tune-costs.h (c86_4g_m4_memcpy): New stringop_algs.
284 (c86_4g_m4_cost): New processor_costs.
285 (c86_4g_m6_cost): Ditto.
286 (c86_4g_m7_cost): Ditto.
287 * config/i386/x86-tune-sched.cc (ix86_issue_rate): Handle
288 PROCESSOR_C86_4G_M{4,6,7}.
289 (ix86_adjust_cost): Ditto.
290 * config/i386/x86-tune.def (X86_TUNE_SCHEDULE): Handle m_C86_4G.
291 (X86_TUNE_PARTIAL_REG_DEPENDENCY): Ditto.
292 (X86_TUNE_SSE_PARTIAL_REG_DEPENDENCY): Ditto.
293 (X86_TUNE_SSE_PARTIAL_REG_FP_CONVERTS_DEPENDENCY): Ditto.
294 (X86_TUNE_SSE_PARTIAL_REG_CONVERTS_DEPENDENCY): Ditto.
295 (X86_TUNE_MEMORY_MISMATCH_STALL): Ditto.
296 (X86_TUNE_FUSE_CMP_AND_BRANCH_32): Ditto.
297 (X86_TUNE_FUSE_CMP_AND_BRANCH_64): Ditto.
298 (X86_TUNE_FUSE_CMP_AND_BRANCH_SOFLAGS): Ditto.
299 (X86_TUNE_USE_LEAVE): Ditto.
300 (X86_TUNE_PUSH_MEMORY): Ditto.
301 (X86_TUNE_INTEGER_DFMODE_MOVES): Ditto.
302 (X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Ditto.
303 (X86_TUNE_USE_SAHF): Ditto.
304 (X86_TUNE_USE_BT): Ditto.
305 (X86_TUNE_AVOID_MFENCE): Ditto.
306 (X86_TUNE_USE_FFREEP): Ditto.
307 (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Ditto.
308 (X86_TUNE_SSE_PACKED_SINGLE_INSN_OPTIMAL): Ditto.
309 (X86_TUNE_SSE_TYPELESS_STORES): Ditto.
310 (X86_TUNE_SSE_LOAD0_BY_PXOR): Ditto.
311 (X86_TUNE_USE_GATHER_2PARTS): Ditto.
312 (X86_TUNE_USE_GATHER_4PARTS): Ditto.
313 (X86_TUNE_USE_GATHER_8PARTS): Ditto.
314 (X86_TUNE_AVOID_128FMA_CHAINS): Ditto.
315 (X86_TUNE_AVOID_256FMA_CHAINS): Ditto.
316 (X86_TUNE_USE_RCR): Ditto.
317 (X86_TUNE_AVX256_MOVE_BY_PIECES): Handle m_C86_4G_M{4,6}.
318 (X86_TUNE_USE_SCATTER_2PARTS): Handle m_C86_4G_M7.
319 (X86_TUNE_USE_SCATTER_4PARTS): Ditto.
320 (X86_TUNE_USE_SCATTER_8PARTS): Ditto.
321 (X86_TUNE_AVX512_SPLIT_REGS): Ditto.
322 (X86_TUNE_AVX256_MOVE_BY_PIECES): Ditto.
323 (X86_TUNE_AVX256_STORE_BY_PIECES): Ditto.
324 (X86_TUNE_AVX512_MOVE_BY_PIECES): Ditto.
325 (X86_TUNE_AVX512_STORE_BY_PIECES): Ditto.
326 * doc/extend.texi: Document about hygonfam18h and c86-4g-m{4,6,7}.
327 * doc/invoke.texi: Document about c86-4g-m{4,6,7}.
328 * config/i386/c86-4g-m7.md: New file for c86-4g-m7 scheduling model
329 information.
330 * config/i386/c86-4g.md: New file for c86-4g-m{4,6} scheduling model
331 information.
332 * config/i386/i386.md (cpu attr): Add c86_4g_m{4,6,7}.
333 (c86-4g.md): New include.
334 (c86-4g-m7.md): Ditto.
335 (*cmpi<unord>xf_i387): Set attr c86_decode.
336 (*cmpi<unord><MODEF:mode>): Ditto.
337 (swap<mode>): Ditto.
338 (*swap<mode>): Ditto.
339 (extendhisi2): Ditto.
340 (floathi<mode>2): Ditto.
341 (float<SWI48x:mode>xf2): Ditto.
342 (*float<SWI48:mode><MODEF:mode>2): Ditto.
343 (*floatdi<MODEF:mode>2_i387): Ditto.
344 (*anddi_1_bt): Ditto.
345 (*iordi_1_bts): Ditto.
346 (*xordi_1_btc): Ditto.
347 (*<btsc><mode>): Ditto.
348 (*btr<mode>): Ditto.
349 (*btsq_imm): Ditto.
350 (*btrq_imm): Ditto.
351 (*btcq_imm): Ditto.
352 (*tzcnt<mode>_1): Ditto.
353 (*tzcnt<mode>_1_falsedep): Ditto.
354 (*bsf<mode>_1): Ditto.
355 (*ctz<mode>2_falsedep): Ditto.
356 (*ctzsi2_zext): Ditto.
357 (*ctzsi2_zext_falsedep): Ditto.
358 (bsr_rex64): Ditto.
359 (bsr_rex64_1): Ditto.
360 (bsr_rex64_1_zext): Ditto.
361 (bsr): Ditto.
362 (bsr_1): Ditto.
363 (bsr_zext_1): Ditto.
364 (*bswaphi2_movbe): Ditto.
365 (*bswaphi2): Ditto.
366 (bswaphisi2_lowpart): Ditto.
367 (fpremxf4_i387): Ditto.
368 (fprem1xf4_i387): Ditto.
369 (<sincos>xf2): Ditto.
370 (sincosxf3): Ditto.
371 (fptanxf4_i387): Ditto.
372 (atan2xf3): Ditto.
373 (fyl2xxf3_i387): Ditto.
374 (fyl2xp1xf3_i387): Ditto.
375 (fxtractxf3_i387): Ditto.
376 (*f2xm1xf2_i387): Ditto.
377 (fscalexf4_i387): Ditto.
378 (rintxf2): Ditto.
379 (*movxi_internal_avx512f): Set attr c86_attr.
380 (*movoi_internal_avx): Ditto.
381 (*movti_internal): Ditto.
382 (*movdi_internal): Ditto.
383 (*movsi_internal): Ditto.
384 (*movhi_internal): Ditto.
385 (*movtf_internal): Ditto.
386 (*movdf_internal): Ditto.
387 (*movsf_internal): Ditto.
388 (*zero_extendsidi2): Ditto.
389 (sqrtxf2): Ditto.
390 (<smaxmin:code><mode>3): Ditto.
391 (*ieee_s<ieee_maxmin><mode>3): Ditto.
392 * config/i386/mmx.md (*mmx_maskmovq): Set attr c86_decode.
393 (*mmx_maskmovq): Ditto.
394 (sse_movntq): Set attr c86_attr.
395 (*mmx_blendps): Ditto.
396 (mmx_blendvps): Ditto.
397 (*mmx_pmaddwd): Ditto.
398 (mmx_pblendvb_v8qi): Ditto.
399 (mmx_pblendvb_<mode>): Ditto.
400 (sse4_1_<code>v4qiv4hi2): Ditto.
401 (sse4_1_<code>v2hiv2si2): Ditto.
402 (sse4_1_<code>v2qiv2si2): Ditto.
403 (sse4_1_<code>v2qiv2hi2): Ditto.
404 (*mmx_pinsrd): Ditto.
405 (*mmx_pinsrw): Ditto.
406 (*mmx_pinsrb): Ditto.
407 (*mmx_pextrw): Ditto.
408 (*mmx_pextrw<mode>): Ditto.
409 (*mmx_pextrw_zext): Ditto.
410 (*mmx_pextrb): Ditto.
411 (*mmx_pextrb_zext): Ditto.
412 (*mmx_pblendw64): Ditto.
413 (*mmx_pblendw32): Ditto.
414 (*vec_extractv2si_1): Ditto.
415 (*vec_extractv2si_1_zext): Ditto.
416 (*pinsrw): Ditto.
417 (*pinsrb): Ditto.
418 (*pextrw): Ditto.
419 (*pextrw<mode>): Ditto.
420 (*pextrw_zext): Ditto.
421 (*pextrb): Ditto.
422 (*pextrb_zext): Ditto.
423 (*mmx_psadbw): Ditto.
424 * config/i386/sse.md (ktest<mode>): Set attr c86_decode.
425 (*kortest<mode>): Ditto.
426 (sse_cvtsi2ss<rex64namesuffix><round_name>): Ditto.
427 (sse2_cvtsi2sd): Ditto.
428 (sse2_maskmovdqu): Ditto.
429 (*<sse>_dp<ssemodesuffix><avxsizesuffix>): Ditto.
430 (*<sse4_1_avx2>_mpsadbw): Ditto.
431 (pclmulqdq): Ditto.
432 (<mask_codefor>conflict<mode><mask_name>): Ditto.
433 (<avx512>_blendm<mode>): Set attr c86_attr.
434 (sse2_movnti<mode>): Ditto.
435 (<sse>_movnt<mode>): Ditto.
436 (<sse2>_movnt<mode>): Ditto.
437 (<sse>_rcp<mode>2): Ditto.
438 (sse_vmrcpv4sf2): Ditto.
439 (<mask_codefor>rcp14<mode><mask_name>): Ditto.
440 (srcp14<mode>): Ditto.
441 (srcp14<mode>_mask): Ditto.
442 (<sse>_sqrt<mode>2<mask_name><round_name>): Ditto.
443 (<sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>): Ditto.
444 (*<sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>): Ditto.
445 (<mask_codefor>rsqrt14<mode><mask_name>): Ditto.
446 (rsqrt14<mode>): Ditto.
447 (rsqrt14_<mode>_mask"): Ditto.
448 (*<code><mode>3<mask_name><round_saeonly_name>): Ditto.
449 (ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>): Ditto.
450 (*<sse>_vm<code><mode>3<mask_scalar_name><round_saeonly_scalar_name>):
451 Ditto.
452 (<sse>_ieee_vm<ieee_maxmin><mode>3<mask_scalar_name>
453 <round_saeonly_scalar_name>): Ditto.
454 (*ieee_<ieee_maxmin><mode>3): Ditto.
455 (avx_h<insn>v4df3): Ditto.
456 (*sse3_haddv2df3): Ditto.
457 (sse3_hsubv2df3): Ditto.
458 (*sse3_haddv2df3_low): Ditto.
459 (*sse3_hsubv2df3_low): Ditto.
460 (avx_h<insn>v8sf3): Ditto.
461 (sse3_h<insn>v4sf3): Ditto.
462 (*<mask_codefor>reducep<mode><mask_name><round_saeonly_name>): Ditto.
463 (reduces<mode><mask_scalar_name><round_saeonly_scalar_name>): Ditto.
464 (*<avx512>_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
465 (<sse>_andnot<mode>3<mask_name>): Ditto.
466 (*<code><mode>3<mask_name>): Ditto.
467 (*andnot<mode>3): Ditto.
468 (<code><mode>3): Ditto.
469 (*<code>tf3): Ditto.
470 (vec_set<mode>_0): Ditto.
471 (@vec_set<mode>_0): Ditto.
472 (*sse4_1_extractps): Ditto.
473 (vec_extract<mode>): Ditto.
474 (<mask_codefor><avx512>_align<mode><mask_name>): Ditto.
475 (avx512bw_pmaddwd512<mode><mask_name>): Ditto.
476 (*avx2_pmaddw): Ditto.
477 (*sse2_pmaddwd): Ditto.
478 (*avx2_<code><mode>3): Ditto.
479 (*avx512f_<code><mode>3<mask_name>): Ditto.
480 (*avx512bw_<code><mode>3<mask_name>): Ditto.
481 (*sse4_1_<code><mode>3<mask_name>): Ditto.
482 (*<code>v8hi3): Ditto.
483 (*<code>v16qi3): Ditto.
484 (*andnot<mode>3_mask): Ditto.
485 (*<code><mode>3): Ditto.
486 (<code>v1ti3): Ditto.
487 (<sse2p4_1>_pinsr<ssemodesuffix>): Ditto.
488 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Ditto.
489 (<mask_codefor><extract_type>_vinsert<shuffletype><extract_suf>
490 _1<mask_name>): Ditto.
491 (vec_set_lo_<mode><mask_name>): Ditto.
492 (vec_set_hi_<mode><mask_name>): Ditto.
493 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>): Ditto.
494 (avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ditto.
495 (*avx512f_shuf_<shuffletype>64x2_1<mask_name>_1): Ditto.
496 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ditto.
497 (avx512f_shuf_<shuffletype>32x4_1<mask_name>): Ditto.
498 (*avx512f_shuf_<shuffletype>32x4_1<mask_name>_1): Ditto.
499 (*vec_extract<mode>): Ditto.
500 (*vec_extract<PEXTR_MODE12:mode>_zext): Ditto.
501 (*vec_extractv16qi_zext): Ditto.
502 (*vec_extractv4si): Ditto.
503 (*vec_extractv4si_zext): Ditto.
504 (*vec_extractv2di_1): Ditto.
505 (*vec_concatv2si_sse4_1): Ditto.
506 (vec_concatv2di): Ditto.
507 (*<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
508 (*<sse2_avx2>_psadbw): Ditto.
509 (<sse>_movmsk<ssemodesuffix><avxsizesuffix>): Ditto.
510 (*<sse>_movmsk<ssemodesuffix><avxsizesuffix>_<u>ext): Ditto.
511 (<sse2_avx2>_pmovmskb): Ditto.
512 (*<sse2_avx2>_pmovmskb_zext): Ditto.
513 (*sse2_maskmovdqu): Ditto.
514 (avx2_ph<plusminus_mnemonic>wv16hi3): Ditto.
515 (ssse3_ph<plusminus_mnemonic>wv8hi3): Ditto.
516 (ssse3_ph<plusminus_mnemonic>dv4si3): Ditto.
517 (avx2_ph<plusminus_mnemonic>dv8si3): Ditto.
518 (avx2_pmaddubsw256): Ditto.
519 (avx512bw_pmaddubsw512<mode><mask_name>): Ditto.
520 (ssse3_pmaddubsw128): Ditto.
521 (<ssse3_avx2>_psign<mode>3): Ditto.
522 (ssse3_psign<mode>3): Ditto.
523 (*abs<mode>2): Ditto.
524 (abs<mode>2_mask): Ditto.
525 (abs<mode>2_mask): Ditto.
526 (sse4a_movnt<mode>): Ditto.
527 (sse4a_vmmovnt<mode>): Ditto.
528 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Ditto.
529 (<sse4_1>_blendv<ssemodesuffix><avxsizesuffix>): Ditto.
530 (sse4_1_blendv<ssemodesuffix>): Ditto.
531 (<vi8_sse4_1_avx2_avx512>_movntdqa): Ditto.
532 (<sse4_1_avx2>_pblendvb): Ditto.
533 (sse4_1_pblend<ssemodesuffix>): Ditto.
534 (*avx2_pblend<ssemodesuffix>): Ditto.
535 (avx2_pblendd<mode>): Ditto.
536 (avx2_<code>v16qiv16hi2<mask_name>): Ditto.
537 (avx512bw_<code>v32qiv32hi2<mask_name>): Ditto.
538 (sse4_1_<code>v8qiv8hi2<mask_name>): Ditto.
539 (*sse4_1_<code>v8qiv8hi2<mask_name>_1): Ditto.
540 (<mask_codefor>avx512f_<code>v16qiv16si2<mask_name>): Ditto.
541 (avx2_<code>v8qiv8si2<mask_name>): Ditto.
542 (*avx2_<code>v8qiv8si2<mask_name>_1): Ditto.
543 (sse4_1_<code>v4qiv4si2<mask_name>): Ditto.
544 (*sse4_1_<code>v4qiv4si2<mask_name>_1): Ditto.
545 (avx512f_<code>v16hiv16si2<mask_name>): Ditto.
546 (avx2_<code>v8hiv8si2<mask_name>): Ditto.
547 (sse4_1_<code>v4hiv4si2<mask_name>): Ditto.
548 (*sse4_1_<code>v4hiv4si2<mask_name>_1): Ditto.
549 (avx512f_<code>v8qiv8di2<mask_name>): Ditto.
550 (*avx512f_<code>v8qiv8di2<mask_name>_1): Ditto.
551 (avx2_<code>v4qiv4di2<mask_name>): Ditto.
552 (*avx2_<code>v4qiv4di2<mask_name>_1): Ditto.
553 (sse4_1_<code>v2qiv2di2<mask_name>): Ditto.
554 (*sse4_1_<code>v2qiv2di2<mask_name>_1): Ditto.
555 (avx512f_<code>v8hiv8di2<mask_name>): Ditto.
556 (avx2_<code>v4hiv4di2<mask_name>): Ditto.
557 (*avx2_<code>v4hiv4di2<mask_name>_1): Ditto.
558 (sse4_1_<code>v2hiv2di2<mask_name>): Ditto.
559 (*sse4_1_<code>v2hiv2di2<mask_name>_1): Ditto.
560 (avx512f_<code>v8siv8di2<mask_name>): Ditto.
561 (avx2_<code>v4siv4di2<mask_name>): Ditto.
562 (sse4_1_<code>v2siv2di2<mask_name>): Ditto.
563 (*sse4_1_<code>v2siv2di2<mask_name>_1): Ditto.
564 (sse4_1_round<ssescalarmodesuffix>): Ditto.
565 (*sse4_1_round<ssescalarmodesuffix>"): Ditto.
566 (sse4_2_pcmpestri): Ditto.
567 (sse4_2_pcmpestrm): Ditto.
568 (sse4_2_pcmpestr_cconly): Ditto.
569 (sse4_2_pcmpistri): Ditto.
570 (sse4_2_pcmpistrm): Ditto.
571 (sse4_2_pcmpistr_cconly): Ditto.
572 (xop_phadd<u>bw): Ditto.
573 (xop_phadd<u>bd): Ditto.
574 (xop_phadd<u>bq): Ditto.
575 (xop_phadd<u>wd): Ditto.
576 (xop_phadd<u>wq): Ditto.
577 (xop_phadd<u>dq): Ditto.
578 (xop_phsubbw): Ditto.
579 (xop_phsubwd): Ditto.
580 (xop_phsubdq): Ditto.
581 (aesenc): Ditto.
582 (aesenclast): Ditto.
583 (aesdec): Ditto.
584 (aesdeclast): Ditto.
585 (aesimc): Ditto.
586 (aeskeygenassist): Ditto.
587 (<avx2_avx512>_permvar<mode><mask_name>): Ditto.
588 (avx2_perm<mode>_1<mask_name>): Ditto.
589 (<avx512>_permvar<mode><mask_name>): Ditto.
590 (avx512f_perm<mode>_1<mask_name>): Ditto.
591 (<mask_codefor>avx512f_broadcast<mode><mask_name>): Ditto.
592 (avx_vbroadcastf128_<mode>): Ditto.
593 (<mask_codefor>avx512vl_broadcast<mode><mask_name>_1): Ditto.
594 (<mask_codefor>avx512dq_broadcast<mode><mask_name>_1): Ditto.
595 (*<avx512>_vpermi2var<mode>3_mask): Ditto.
596 (<avx512>_vpermt2var<mode>3<sd_maskz_name>): Ditto.
597 (<avx512>_vpermt2var<mode>3_mask): Ditto.
598 (*avx_vperm2f128<mode>_nozero): Ditto.
599 (vec_set_lo_<mode><mask_name>): Ditto.
600 (vec_set_hi_<mode><mask_name>): Ditto.
601 (vec_set_lo_<mode>): Ditto.
602 (vec_set_hi_<mode>): Ditto.
603 (vec_set_lo_v32qi): Ditto.
604 (<avx_avx2>_maskload<ssemodesuffix><avxsizesuffix>): Ditto.
605 (<avx_avx2>_maskstore<ssemodesuffix><avxsizesuffix>): Ditto.
606 (avx_vec_concat<mode>): Ditto.
607 (<avx512>_compress<mode>_mask): Ditto.
608 (compress<mode>_mask): Ditto.
609 (<avx512>_compressstore<mode>_mask): Ditto.
610 (compressstore<mode>_mask): Ditto.
611 (expand<mode>_mask): Ditto.
612 (<mask_codefor>avx512bw_dbpsadbw<mode><mask_name>): Ditto.
613 (clz<mode>2<mask_name>): Ditto.
614 (vpmadd52<vpmadd52type>v8di): Ditto.
615 (vpmadd52<vpmadd52type><mode>): Ditto.
616 (vpmadd52<vpmadd52type><mode>_maskz_1): Ditto.
617 (vpmadd52<vpmadd52type><mode>_mask): Ditto.
618 (vaesdec_<mode>): Ditto.
619 (vaesdeclast_<mode>): Ditto.
620 (vaesenc_<mode>): Ditto.
621 (vaesenclast_<mode>): Ditto.
622
623 2026-06-17 Zhongyao Chen <[email protected]>
624
625 PR target/125215
626 * config/riscv/riscv-v.cc (expand_const_vector_interleaved_stepped_npatterns):
627 Remove hi/lo optimization and always use the merge fallback.
628
629 2026-06-17 Alex Coplan <[email protected]>
630
631 Backported from master:
632 2026-06-09 Alex Coplan <[email protected]>
633
634 PR middle-end/125621
635 * expmed.cc (make_tree): Fix CONST_POLY_INT case to pass type
636 instead of t, move it to its own switch case.
637
638 2026-06-17 Kishan Parmar <[email protected]>
639
640 Backported from master:
641 2026-05-22 Steve Markgraf <[email protected]>
642
643 * config/rs6000/rs6000.h (TARGET_NO_LWSYNC): Add PROCESSOR_MPCCORE.
644
645 2026-06-17 Kyrylo Tkachov <[email protected]>
646
647 Backported from master:
648 2026-06-15 Kyrylo Tkachov <[email protected]>
649
650 PR target/125795
651 * config/aarch64/aarch64-early-ra.cc (early_ra::allocate_colors):
652 Compute the allocated-FPR mask as
653 ((1ULL << color->group->size) - 1) << best.
654
655 2026-06-17 Carter Rennick <[email protected]>
656
657 Backported from master:
658 2026-04-24 Carter Rennick <[email protected]>
659
660 PR target/120144
661 * config/mips/mips.h (MAX_FIXED_MODE_SIZE): Remove.
662
663 2026-06-17 Andrew Pinski <[email protected]>
664
665 Backported from master:
666 2026-06-10 Andrew Pinski <[email protected]>
667
668 PR ipa/125699
669 * ipa-param-manipulation.cc (ipa_param_body_adjustments::prepare_debug_expressions): Fix
670 lifetime issue with m_dead_ssa_debug_equiv usage.
671
672 2026-06-17 Andrew Pinski <[email protected]>
673
674 Backported from master:
675 2026-06-13 Andrew Pinski <[email protected]>
676
677 PR tree-optimization/125776
678 * tree-ssa-phiopt.cc (is_factor_profitable): An
679 usage in a debug stmt should be ignored.
680
681 2026-06-17 Andrew Pinski <[email protected]>
682
683 Backported from master:
684 2026-06-14 Andrew Pinski <[email protected]>
685
686 PR tree-optimization/125774
687 * gimple-range-fold.cc (fold_using_range::relation_fold_and_or): Use
688 relation_swap rather than relation_negate when the operands are exchanged.
689
690 2026-06-17 Andrew Pinski <[email protected]>
691
692 Backported from master:
693 2026-03-12 Andrew Pinski <[email protected]>
694
695 PR rtl-optimization/123822
696 * simplify-rtx.cc (simplify_context::simplify_subreg): Check the
697 mode of the part to be non-VOIDmode before calling gen_rtx_SUBREG.
698
699 2026-06-17 Andrew Pinski <[email protected]>
700
701 Backported from master:
702 2026-03-13 Andrew Pinski <[email protected]>
703
704 PR rtl-optimization/124454
705 * regcprop.cc (pass_cprop_hardreg::execute): If something
706 changed and non-call exceptions is on, call purge_all_dead_edges
707 and cleanup_cfg.
708
709 2026-06-17 Andrew Pinski <[email protected]>
710
711 Backported from master:
712 2026-02-18 Andrew Pinski <[email protected]>
713
714 PR rtl-optimization/116053
715 * regcprop.cc (copyprop_hardreg_forward_1): Use delete_insn_and_edges
716 instead of delete_insn.
717
718 2026-06-17 Andrew MacLeod <[email protected]>
719
720 PR tree-optimization/125501
721 * tree-ssa-dom.cc (set_global_ranges_from_unreachable_edges): Abort
722 if there are 2 SSA_NAMES on the branch condition.
723
724 2026-06-16 Martin Jambor <[email protected]>
725
726 Backported from master:
727 2026-05-12 Martin Jambor <[email protected]>
728
729 PR tree-optimization/124151
730 * tree-sra.cc (build_user_friendly_ref_for_offset): Added parameters
731 CUR_SIZE and EXP_SIZE. Added code passing the correct CUR_SIZE and
732 checking it against EXP_SIZE. Removed unused code for the case when
733 EXP_TYPE was NULL_TREE.
734 (create_artificial_child_access): Adjusted the call to
735 build_user_friendly_ref_for_offset.
736 (propagate_subaccesses_from_rhs): Likewise.
737 (propagate_subaccesses_from_rhs): Removed a check that the size of
738 lchild is a multiple of BITS_PER_UNIT.
739 (propagate_subaccesses_from_lhs): Likewise.
740
741 2026-06-12 Ramin Moussavi <[email protected]>
742
743 * config/microblaze/microblaze.h (DWARF_ALT_FRAME_RETURN_COLUMN):
744 Define.
745
746 2026-06-12 Georg-Johann Lay <[email protected]>
747
748 Backported from master:
749 2026-06-11 Georg-Johann Lay <[email protected]>
750
751 PR target/125751
752 * config/avr/avr.cc (avr_out_fract): Fix too small sequence
753 lengths in avr_asm_len calls.
754
755 2026-06-12 Release Manager
756
757 * GCC 15.3.0 released.
758
759 2026-06-05 Tamar Christina <[email protected]>
760
761 Backported from master:
762 2026-04-17 Tamar Christina <[email protected]>
763
764 PR middle-end/124900
765 * gimple-crc-optimization.cc (crc_optimization::optimize_crc_loop): Do
766 not expand to table when compiling for size.
767 (class crc_optimization): Update prototype of optimize_crc_loop to
768 include loop.
769 (crc_optimization::execute): Pass loop to optimize_crc_loop.
770
771 2026-06-05 Tamar Christina <[email protected]>
772
773 Backported from master:
774 2026-06-03 Tamar Christina <[email protected]>
775
776 PR tree-optimization/125431
777 * tree-vect-slp-patterns.cc (complex_mul_pattern::matches,
778 complex_fms_pattern::matches): Gate on FP contraction.
779
780 2026-06-03 Richard Biener <[email protected]>
781
782 Backported from master:
783 2026-05-11 Richard Biener <[email protected]>
784
785 PR tree-optimization/125250
786 * tree-ssa-loop-im.cc (execute_sm): For modes that cannot
787 transfer bits, _Bool and bitfield accesses force the
788 multi-threaded model.
789
790 2026-06-03 Andrew Pinski <[email protected]>
791
792 Backported from master:
793 2026-02-14 Andrew Pinski <[email protected]>
794
795 PR tree-optimization/124086
796 * tree-complex.cc (extract_component): Extend the check
797 for ssa names for VCE to include invariants.
798
799 2026-06-03 Andrew Pinski <[email protected]>
800
801 Backported from master:
802 2026-02-04 Andrew Pinski <[email protected]>
803
804 PR middle-end/121661
805 * tree-complex.cc (extract_component): Create gimple
806 assign statements directly rather than call force_gimple_operand_gsi.
807
808 2026-06-03 Andrew MacLeod <[email protected]>
809
810 Backported from master:
811 2025-10-01 Andrew MacLeod <[email protected]>
812
813 PR tree-optimization/120560
814 * vr-values.cc (range_from_loop_direction): Use wi::ge_p rather
815 than wi::gt_p.
816
817 2026-06-03 Jan Hubicka <[email protected]>
818
819 Backported from master:
820 2026-04-17 Jan Hubicka <[email protected]>
821
822 PR ipa/120098
823 * ipa-polymorphic-call.cc (polymorphic_ctor_dtor_p): Remove
824 check for pure/const flags
825
826 2026-06-03 Jan Hubicka <[email protected]>
827
828 Backported from master:
829 2026-04-17 Jan Hubicka <[email protected]>
830
831 PR ipa/120098
832 * ipa-devirt.cc (odr_type_p): Add no_derived_construction_vtables
833 (odr_types_ptr): Move ahead in file.
834 (odr_types): Move ahead in file.
835 (anonymous_construction_vtable_p): New function.
836 (mark_derived_construction_vtables): New function.
837 (construction_vtable_hook): New function.
838 (type_possibly_instantiated_p): Watch for construction vtables.
839
840 2026-06-03 Kyrylo Tkachov <[email protected]>
841
842 Backported from master:
843 2026-06-01 Kyrylo Tkachov <[email protected]>
844
845 * config/aarch64/tuning_models/olympus.h (olympus_scalar_issue_info,
846 olympus_advsimd_issue_info, olympus_sve_issue_info): Set
847 loads_stores_per_cycle to 6.
848
849 2026-06-03 Kyrylo Tkachov <[email protected]>
850
851 Backported from master:
852 2026-06-01 Kyrylo Tkachov <[email protected]>
853
854 PR target/122827
855 * config/aarch64/aarch64.cc (aarch64_hard_regno_call_part_clobbered):
856 For SVE modes use BYTES_PER_SVE_VECTOR for the per-register size
857 rather than GET_MODE_SIZE.
858 * config/aarch64/aarch64-early-ra.cc (early_ra::get_allocno_subgroup):
859 Classify any SVE mode as FPR_Z.
860
861 2026-06-02 Roger Sayle <[email protected]>
862
863 Backported from master:
864 2025-10-15 Roger Sayle <[email protected]>
865
866 PR rtl-optimization/122266
867 * combine.cc (struct reg_stat_type): Change types of sign_bit_copies
868 and last_set_sign_bit_copies to unsigned short, to avoid overflows
869 on TImode (and wider) values.
870
871 2026-06-02 Richard Biener <[email protected]>
872
873 Revert:
874 2025-06-06 Richard Biener <[email protected]>
875
876 PR tree-optimization/120003
877 * tree-ssa-threadbackward.cc (back_threader::find_paths_to_names):
878 Allow block re-use but do not enlarge the path beyond such a
879 re-use.
880
881 2026-06-02 Richard Biener <[email protected]>
882
883 Backported from master:
884 2026-05-04 Richard Biener <[email protected]>
885
886 PR middle-end/125146
887 * gimple-fold.cc (fold_stmt_1): Discard stmts in seq
888 after failed gimple_simplify as well.
889
890 2026-06-02 Richard Biener <[email protected]>
891
892 Backported from master:
893 2026-04-27 Richard Biener <[email protected]>
894
895 PR tree-optimization/125025
896 * tree-ssa-loop-niter.cc (number_of_iterations_ne): Avoid
897 negation of most negative signed integer.
898 (number_of_iterations_lt): Likewise.
899
900 2026-06-02 Richard Biener <[email protected]>
901
902 Backported from master:
903 2026-04-27 Richard Biener <[email protected]>
904
905 PR tree-optimization/125019
906 * tree-vect-loop.cc (vectorizable_recurr): Properly guard
907 against hitting last stmt when searching for the insertion
908 place.
909
910 2026-06-02 Richard Biener <[email protected]>
911
912 Backported from master:
913 2026-04-14 Richard Biener <[email protected]>
914
915 PR tree-optimization/124868
916 * gimple-ssa-isolate-paths.cc (handle_return_addr_local_phi_arg):
917 Do not diagnose returns in blocks not dominated by the PHI.
918 (find_implicit_erroneous_behavior): Do two sweeps over PHIs,
919 first for NULL dereferences and then for local address returns.
920
921 2026-06-01 Jakub Jelinek <[email protected]>
922
923 Backported from master:
924 2026-05-20 Jakub Jelinek <[email protected]>
925
926 PR target/125373
927 * config/i386/i386.md
928 (Convert imul by three, five and nine into lea define_peephole2s): Use
929 index_reg_operand instead of register_operand.
930
931 2026-06-01 Jakub Jelinek <[email protected]>
932
933 Backported from master:
934 2026-05-01 Jakub Jelinek <[email protected]>
935
936 PR tree-optimization/125079
937 * tree-ssa-strlen.cc (get_string_length): Transform
938 __strcat_chk (x, y, z) when we need strlen (x) afterwards into
939 l1 = strlen (x); l = __stpcpy_chk (x + l1, y, z - l1) - x;
940 where l is the strlen (x), instead of using z as last __stpcpy_chk
941 argument.
942
943 2026-06-01 Jakub Jelinek <[email protected]>
944
945 Backported from master:
946 2026-04-28 Jakub Jelinek <[email protected]>
947
948 PR tree-optimization/125039
949 * range-op-float.cc (operator_not_equal::fold_range): Call
950 empty_range_varying when not calling frelop_early_resolve.
951
952 2026-06-01 Jakub Jelinek <[email protected]>
953
954 Backported from master:
955 2026-04-24 Jakub Jelinek <[email protected]>
956
957 PR target/124133
958 * config/rs6000/rs6000-c.cc (c_fold_convert): New function.
959 (c_fold_build2_loc): Likewise.
960 (fully_fold_convert): Use c_fold_convert instead of fold_convert.
961 (altivec_build_resolved_builtin): Likewise. Use c_fold_build2_loc
962 instead of fold_build2.
963 (resolve_vec_mul, resolve_vec_adde_sube, resolve_vec_addec_subec):
964 Use c_fold_build2_loc instead of fold_build2_loc.
965 (resolve_vec_splats, resolve_vec_extract): Use c_fold_convert instead
966 of fold_convert.
967 (resolve_vec_insert): Use c_fold_build2_loc instead of fold_build2.
968 (altivec_resolve_overloaded_builtin): Use c_fold_convert instead
969 of fold_convert.
970
971 2026-06-01 Jakub Jelinek <[email protected]>
972
973 Backported from master:
974 2026-04-16 Jakub Jelinek <[email protected]>
975
976 PR target/124892
977 * config/i386/i386.md (clz<mode>2_lzcnt_nf,
978 <lt_zcnt>_<mode>_nf, popcount<mode>2_nf): Emit explicit
979 set of (match_dup 0) to (const_int 0) without flags clobber instead of
980 using ix86_expand_clear.
981
982 2026-06-01 Jakub Jelinek <[email protected]>
983
984 Backported from master:
985 2026-04-16 Jakub Jelinek <[email protected]>
986
987 PR tree-optimization/124891
988 * tree-ssa-propagate.cc
989 (substitute_and_fold_dom_walker::before_dom_children): Call update_stmt
990 in the did_replace case before calling fold_stmt.
991
992 2026-06-01 Jakub Jelinek <[email protected]>
993
994 Backported from master:
995 2026-04-14 Jakub Jelinek <[email protected]>
996
997 PR tree-optimization/124826
998 * gimple-lower-bitint.cc (bitint_large_huge::handle_load): Look through
999 BIT_FIELD_REF with zero bit offset.
1000
1001 2026-06-01 Jakub Jelinek <[email protected]>
1002
1003 Backported from master:
1004 2026-04-03 Jakub Jelinek <[email protected]>
1005
1006 PR tree-optimization/124754
1007 * tree-ssa-strlen.cc (strlen_pass::handle_builtin_strcpy): Make
1008 sure both get_stridx calls are done before first get_strinfo call.
1009 (strlen_pass::handle_builtin_memcpy): Likewise.
1010 (strlen_pass::handle_builtin_strcat): Likewise.
1011
1012 2026-06-01 John David Anglin <[email protected]>
1013
1014 * config/pa/pa.cc (pa_trampoline_init): Rework to use
1015 clear_cache pattern.
1016 * config/pa/pa.md (dcacheflush): Use "<<" condition instead
1017 of "<<=".
1018 (icacheflush): Remove.
1019 (icacheflush1, icacheflush2, icacheflush3): New flush patterns
1020 for PA 1.x targets, PA 2.0 targets, and PA 1.x no space
1021 register targets.
1022 (clear_cache): Rework to flush data and instruction caches.
1023 Skip flush if the start address is greater than or equal to
1024 the end address. Don't align the end address to a cacheline
1025 boundary. Handle instruction flushes for PA 1.x targets,
1026 PA 2.0 targets, and PA 1.x no space register targets.
1027
1028 2026-06-01 Christophe Lyon <[email protected]>
1029
1030 Backported from master:
1031 2026-05-19 Christophe Lyon <[email protected]>
1032
1033 PR target/124870
1034 * config/arm/arm-mve-builtins-base.cc (vstrq_scatter_base_impl)
1035 (vldrq_gather_base_impl): Fix call_properties.
1036
1037 2026-05-27 liuhongt <[email protected]>
1038
1039 Backported from master:
1040 2026-05-27 liuhongt <[email protected]>
1041
1042 * config/i386/x86-tune.def (X86_TUNE_USE_GATHER_2PARTS): Disable
1043 for m_DIAMONDRAPIDS.
1044 (X86_TUNE_USE_GATHER_4PARTS): Likewise.
1045
1046 2026-05-25 Georg-Johann Lay <[email protected]>
1047
1048 Backported from master:
1049 2026-05-25 Georg-Johann Lay <[email protected]>
1050
1051 PR target/125409
1052 * config/avr/avr-fixed.md (FIXED_A, FIXED_B): Add PSI to iterators.
1053
1054 2026-05-20 Xi Ruoyao <[email protected]>
1055
1056 Backported from master:
1057 2026-05-08 Xi Ruoyao <[email protected]>
1058
1059 PR target/125049
1060 * config/loongarch/predicates.md (ssp_operand): New
1061 define_predicate.
1062 (ssp_normal_operand): New define_predicate.
1063 * config/loongarch/constraints.md (ZE): New define_constraint.
1064 (ZF): New define_constraint.
1065 * config/loongarch/loongarch.md (UNSPEC_SSP): New unspec.
1066 (cbranch4): Add "@" to create gen_cbranch4(machine_mode, ...).
1067 (@stack_protect_combined_set_normal_<mode>): New define_insn.
1068 (@stack_protect_combined_set_extreme_<mode>): New define_insn.
1069 (@stack_protect_combined_test_internal_<mode>): New define_insn.
1070 (stack_protect_combined_set): New define_expand.
1071 (stack_protect_combined_test): New define_expand.
1072 * config/loongarch/loongarch-protos.h
1073 (loongarch_output_asm_load_canary): Declare.
1074 * config/loongarch/loongarch.cc (loongarch_print_operand): Allow
1075 'v' to print d/w for DImode/SImode.
1076 (loongarch_output_asm_load_canary): Implement.
1077
1078 2026-05-19 Andi Kleen <[email protected]>
1079
1080 PR target/125351
1081 * config/i386/i386.md: Use alternative to handle masm ptwrite
1082 syntax.
1083
1084 2026-05-16 Gopi Kumar Bulusu <[email protected]>
1085
1086 PR target/103383
1087 * config/microblaze/microblaze.md: bswaphi2: (set_attr length 8)
1088
1089 2026-05-14 Andi Kleen <[email protected]>
1090
1091 PR target/124316
1092 * config/i386/i386.md (ptwrite): Add explicit mode to
1093 instruction.
1094
1095 2026-05-14 Georg-Johann Lay <[email protected]>
1096
1097 Backported from master:
1098 2026-05-14 Georg-Johann Lay <[email protected]>
1099
1100 PR target/125194
1101 * config/avr/avr.cc (avr_no_call_main_p): Remove variable...
1102 (avr_file_end): ...and code that uses it.
1103 (avr_insert_attributes): Same. Add "used" to main attributes
1104 when -mno-call-main.
1105 * config/avr/gen-avr-mmcu-specs.cc (print_mcu): Emit code
1106 for link_no_call_main specs.
1107 * config/avr/specs.h (LINK_SPEC): Add %(link_no_call_main).
1108
1109 2026-05-03 Collin Funk <[email protected]>
1110
1111 Backported from master:
1112 2026-05-03 Collin Funk <[email protected]>
1113
1114 * glimits.h (__STDC_VERSION_LIMITS_H__): Only define the macro
1115 if it was not already defined.
1116
1117 2026-04-30 Richard Earnshaw <[email protected]>
1118
1119 Backported from master:
1120 2026-04-14 Richard Earnshaw <[email protected]>
1121
1122 PR target/123102
1123 * config/arm/arm.md (*cmp_ite0): Apply stricter checks on the
1124 comparison mode.
1125 (*cmp_ite1, *cmp_and, *cmp_ior): Likewise.
1126
1127 2026-04-29 Martin Jambor <[email protected]>
1128
1129 Backported from master:
1130 2026-04-15 Martin Jambor <[email protected]>
1131
1132 PR tree-optimization/122976
1133 * tree-sra.cc (path_comparable_for_same_access): Return false if the
1134 base is a MEM_REF with a different underlying type.
1135
1136 2026-04-29 Martin Jambor <[email protected]>
1137
1138 Backported from master:
1139 2026-04-14 Martin Jambor <[email protected]>
1140
1141 PR ipa/124777
1142 * ipa-cp.h (ipacp_value_safe_for_type): Declare.
1143 * ipa-cp.cc (ipacp_value_safe_for_type): Make public.
1144 * ipa-prop.cc (ipa_set_jf_cst_copy): Fix comment.
1145 (ipa_convert_prop_cst_jf): New function.
1146 (update_jump_functions_after_inlining): Handle the constant to
1147 pass-through case by calling ipa_convert_prop_cst_jf.
1148
1149 2026-04-29 Richard Earnshaw <[email protected]>
1150
1151 Backported from master:
1152 2026-04-22 Richard Earnshaw <[email protected]>
1153
1154 PR target/124933
1155 * config/arm/constraints.md (Uj): Allow offset addressing for
1156 all targets, only allow Neon addressing when we have both Neon
1157 and FP16INST.
1158 * config/arm/vfp.md (mov<mode>_vfp_<mode>16): Only use vld1/vst1
1159 when the pattern needs address write-back.
1160
1161 2026-04-27 Surya Kumari Jangala <[email protected]>
1162
1163 Backported from master:
1164 2025-12-14 Surya Kumari Jangala <[email protected]>
1165
1166 PR rtl-optimization/122274
1167 * regcprop.cc (value_data_entry): New field.
1168 (kill_value_one_regno): Update field.
1169 (init_value_data): Initialize field.
1170 (kill_set_value_data): New field.
1171 (kill_set_value): Update field.
1172 (kill_autoinc_value): Likewise.
1173 (copy_value): New parameter. Update field.
1174 (incompatible_frame_status): New function.
1175 (find_oldest_value_reg): New parameter. Compare frame relatedness of
1176 insn and propagated value.
1177 (replace_oldest_value_reg): Pass additional parameter to
1178 find_oldest_value_reg().
1179 (copyprop_hardreg_forward_1): Pass additional parameter to
1180 find_oldest_value_reg(). Compare frame relatedness of insn and
1181 propagated value. Call copy_value() with additional parameter.
1182
1183 2026-04-22 Richard Biener <[email protected]>
1184
1185 Backported from master:
1186 2025-12-05 Richard Biener <[email protected]>
1187
1188 PR tree-optimization/123002
1189 * tree-vectorizer.h (supportable_widening_operation): Remove
1190 vinfo and stmt_info parameters, add flag to indicate whether
1191 the context would allow OP_{EVEN,ODD}.
1192 * tree-vect-patterns.cc (vect_recog_abd_pattern): Adjust
1193 and pass false.
1194 (vect_recog_widen_op_pattern): Likewise.
1195 (vect_recog_widen_abd_pattern): Likewise.
1196 * tree-vect-stmts.cc (vectorizable_conversion): Move
1197 even/odd validity check here, from supportable_widening_operation.
1198 Adjust it to be conservative.
1199 (supportable_widening_operation): Get flag whether even/odd
1200 is OK to use and remove then unused parameters and code.
1201
1202 2026-04-19 H.J. Lu <[email protected]>
1203
1204 Backported from master:
1205 2026-04-14 H.J. Lu <[email protected]>
1206
1207 PR target/124876
1208 * config/i386/i386.cc (ix86_zero_call_used_regs): Zero ZMM16-31
1209 if needed.
1210
1211 2026-04-14 Richard Biener <[email protected]>
1212
1213 Backported from master:
1214 2026-04-07 Richard Biener <[email protected]>
1215
1216 PR tree-optimization/124802
1217 * tree-vect-slp-patterns.cc (vect_match_expression_p): Fail
1218 for SLP_TREE_PERMUTE_P.
1219
1220 2026-04-14 Richard Biener <[email protected]>
1221
1222 Backported from master:
1223 2026-03-30 Richard Biener <[email protected]>
1224
1225 PR tree-optimization/124677
1226 * tree-vect-loop.cc (vectorizable_recurr): Skip vector
1227 stmts for the def.
1228
1229 2026-04-14 Richard Biener <[email protected]>
1230
1231 Backported from master:
1232 2026-03-27 Richard Biener <[email protected]>
1233
1234 PR debug/124644
1235 * dwarf2out.cc (dwarf2out_abstract_function): Only
1236 add DW_AT_artificial if the decl isn't DECL_ARTIFICIAL.
1237
1238 2026-04-14 Richard Biener <[email protected]>
1239
1240 Backported from master:
1241 2026-03-18 Richard Biener <[email protected]>
1242
1243 PR tree-optimization/124555
1244 * match.pd ((A - B) >=/> 0 ? (A - B) : (B - A) -> abs (A - B)):
1245 Guard the vector case with target_supports_op_p checks.
1246 ((A - B) <=/< 0 ? (A - B) : (B - A) -> -abs (A - B)): Likewise.
1247 ((type)A >=/> 0 ? A : -A -> abs (A)): Likewise.
1248 ((type)A <=/< 0 ? A : -A -> -abs (A)): Likewise.
1249
1250 2026-04-14 Jan Hubicka <[email protected]>
1251
1252 Backported from master:
1253 2026-03-10 Jan Hubicka <[email protected]>
1254 Andrew Pinski <[email protected]>
1255
1256 PR tree-optimization/120987
1257 * ipa-modref.cc (ipa_merge_modref_summary_after_inlining): Mask
1258 off non const/pure/novops related flags when combining of outer
1259 functions.
1260
1261 2026-04-13 Vineet Gupta <[email protected]>
1262
1263 PR target/124670
1264 * config/bpf/bpf.md (zero_extendsidi2): Use 'W' in asm template.
1265
1266 2026-04-13 Richard Earnshaw <[email protected]>
1267
1268 Backported from master:
1269 2026-03-11 Richard Earnshaw <[email protected]>
1270
1271 PR target/123271
1272 * config/arm/arm.md (subvsi3_intmin): Renamed to ...
1273 (sub_cmpVsi3_intmin): ... this.
1274 (subvsi3): Renamed to ...
1275 (sub_cmpVsi3): ... this.
1276 (subvsi3_imm1): Renamed to ...
1277 (sub_cmpVsi3_imm1): ... this.
1278 (usubvsi3_borrow): Renamed to ...
1279 (usub_cmpVsi3_borrow): ... this.
1280 (usubvsi3_borrow_imm): Renamed to ...
1281 (usub_cmpVsi3_borrow_imm): ... this.
1282 (subvsi3_borrow): Renamed to ...
1283 (sub_cmpVsi3_borrow): ... this.
1284 (subvsi3_borrow_imm): Renamed to ...
1285 (sub_cmpVsi3_borrow_imm): ... this.
1286
1287 2026-04-13 Hu, Lin1 <[email protected]>
1288
1289 PR target/124710
1290 * config/i386/sse.md (iptrps2qq): New mode attribute for
1291 ps2qq Intel syntax memory operand size override.
1292 (avx10_2_vcvttps2<sat_cvt_sign_prefix>qqs<mode><mask_name><round_saeonly_name>):
1293 Use %<iptrps2qq>1 in Intel syntax to emit qword ptr for V2DI (128-bit)
1294 memory operands.
1295 (avx10_2_vcvttsd2<sat_cvt_sign_prefix>sis<mode><round_saeonly_name>):
1296 Use %q1 in Intel syntax to emit qword ptr for scalar double memory
1297 operands.
1298 (avx10_2_vcvttss2<sat_cvt_sign_prefix>sis<mode><round_saeonly_name>):
1299 Use %k1 in Intel syntax to emit dword ptr for scalar single memory
1300 operands.
1301
1302 2026-04-09 Xi Ruoyao <[email protected]>
1303
1304 Backported from master:
1305 2026-04-09 Xi Ruoyao <[email protected]>
1306
1307 PR target/105192
1308 * ifcvt.cc (find_if_header): Don't attempt to use ctrap expander
1309 after reload.
1310
1311 2026-04-07 Robin Dapp <[email protected]>
1312
1313 Backported from master:
1314 2026-04-07 Robin Dapp <[email protected]>
1315
1316 PR target/124613
1317 * config/riscv/riscv-vector-builtins.cc (rvv_switcher::rvv_switcher):
1318 Add riscv_registering_builtins.
1319 (rvv_switcher::~rvv_switcher): Set riscv_registering_builtins to
1320 false.
1321 * config/riscv/riscv.cc (riscv_vector_mode_supported_p): Use
1322 riscv_registering_builtins.
1323 * config/riscv/riscv.h: Declare.
1324
1325 2026-04-01 Wu Haotian <[email protected]>
1326
1327 Backported from master:
1328 2026-03-31 Wu Haotian <[email protected]>
1329
1330 * config.gcc: removed linux.h and t-linux for loongarch*-*-elf* targets
1331
1332 2026-03-31 Eric Botcazou <[email protected]>
1333
1334 * tree-ssa-dse.cc (compute_trims): Bail out if ref->size is not
1335 byte aligned either.
1336
1337 2026-03-30 Tamar Christina <[email protected]>
1338
1339 PR target/123017
1340 * config/aarch64/aarch64-protos.h (struct cpu_branch_cost): Add
1341 br_mispredict_factor.
1342 * config/aarch64/aarch64.cc (aarch64_max_noce_ifcvt_seq_cost,
1343 aarch64_noce_conversion_profitable_p,
1344 TARGET_MAX_NOCE_IFCVT_SEQ_COST,
1345 TARGET_NOCE_CONVERSION_PROFITABLE_P): New.
1346 * config/aarch64/tuning_models/generic.h (generic_branch_cost): Add
1347 br_mispredict_factor.
1348 * config/aarch64/tuning_models/generic_armv8_a.h: Remove
1349 generic_armv8_a_branch_cost and use generic_branch_cost.
1350
1351 2026-03-29 Jeff Law <[email protected]>
1352
1353 Backported from master:
1354 2026-03-29 Jeff Law <[email protected]>
1355
1356 PR target/124674
1357 * config/riscv/riscv-modes.def: Create OImode.
1358
1359 2026-03-25 Richard Biener <[email protected]>
1360
1361 Backported from master:
1362 2026-03-25 Richard Biener <[email protected]>
1363
1364 PR tree-optimization/124627
1365 * tree-inline.cc (copy_debug_stmts): Only copy debug
1366 stmts that are still in the IL.
1367
1368 2026-03-17 Alice Carlotti <[email protected]>
1369
1370 * config/aarch64/aarch64-sve2.md (@aarch64_pred_revd<mode>):
1371 Remove movprfx alternative.
1372 (@cond_revd<mode>): Likewise.
1373
1374 2026-03-17 Robin Dapp <[email protected]>
1375
1376 Backported from master:
1377 2026-03-07 Robin Dapp <[email protected]>
1378
1379 PR rtl-optimization/121649
1380 * cse.cc (find_sets_in_insn): Only use non-reg vec_select
1381 simplifications.
1382
1383 2026-03-16 Richard Biener <[email protected]>
1384
1385 Backported from master:
1386 2026-01-13 Richard Biener <[email protected]>
1387
1388 PR middle-end/123573
1389 * fold-const.cc (fold_vec_perm): Actually check, not assert,
1390 that input and output vector element numbers agree.
1391 * match.pd (vec_perm @0 @1 @2): Make sure element numbers
1392 are the same when folding to an input vector and wrap that
1393 inside a VIEW_CONVERT_EXPR.
1394
1395 2026-03-16 Richard Biener <[email protected]>
1396
1397 Backported from master:
1398 2026-01-12 Richard Biener <[email protected]>
1399
1400 PR middle-end/123175
1401 * match.pd (vec_perm @0 @1 @2): Fixup for inputs having a
1402 different number of elements than the result.
1403 * tree-vect-generic.cc (lower_vec_perm): Likewise.
1404
1405 2026-03-16 Richard Biener <[email protected]>
1406
1407 Backported from master:
1408 2026-02-17 Richard Biener <[email protected]>
1409
1410 PR tree-optimization/124132
1411 * tree-ssa-loop-split.cc (compute_new_first_bound): Fix
1412 bound difference computation.
1413
1414 2026-03-16 Richard Biener <[email protected]>
1415
1416 Backported from master:
1417 2026-02-17 Richard Biener <[email protected]>
1418
1419 PR tree-optimization/124130
1420 * tree-inline.cc (copy_edges_for_bb): Fixup noreturn calls
1421 with abnormal edge source.
1422
1423 2026-03-16 Richard Biener <[email protected]>
1424
1425 Backported from master:
1426 2026-01-29 Richard Biener <[email protected]>
1427
1428 PR tree-optimization/123596
1429 * tree-eh.cc (sink_clobbers): Create a virtual PHI when
1430 one is required but not present, queuing arguments
1431 for renaming.
1432
1433 2026-03-16 Richard Biener <[email protected]>
1434
1435 Backported from master:
1436 2026-01-08 Richard Biener <[email protected]>
1437
1438 PR tree-optimization/123298
1439 * tree-ssa-alias.h (get_continuation_for_phi): Take a gphi *,
1440 add is_backedge hook argument.
1441 (walk_non_aliased_vuses): Add is_backedge hook argument.
1442 * tree-ssa-alias.cc (maybe_skip_until): Adjust.
1443 (get_continuation_for_phi): Use new hook to classify an
1444 edge into the PHI as backedge.
1445 (walk_non_aliased_vuses): Adjust.
1446 * gimple-lower-bitint.cc (bitint_dom_walker::before_dom_children):
1447 Likewise.
1448 * ipa-prop.cc (determine_known_aggregate_parts): Likewise.
1449 * tree-ssa-scopedtables.cc (avail_exprs_stack::lookup_avail_expr):
1450 Likewise.
1451 * tree-ssa-pre.cc (translate_vuse_through_block): Likewise.
1452 * tree-ssa-sccvn.cc (vn_bb_to_rpo): Make BB to RPO order
1453 mapping accessible from new hook.
1454 (do_rpo_vn_1): Likewise.
1455 (vn_is_backedge): New hook to classify edge.
1456 (vn_reference_lookup_pieces): Adjust.
1457 (vn_reference_lookup): Likewise.
1458
1459 2026-03-16 Richard Biener <[email protected]>
1460
1461 Backported from master:
1462 2026-01-19 Richard Biener <[email protected]>
1463
1464 PR tree-optimization/123061
1465 PR tree-optimization/123636
1466 * tree-ssa-loop-im.cc (fill_always_executed_in_1): Change
1467 outer-to-inner to inner-to-outer iteration. Update inner
1468 loop state only when always executed in an immediately
1469 nested loop.
1470
1471 2026-03-16 Richard Biener <[email protected]>
1472
1473 Backported from master:
1474 2026-01-29 Richard Biener <[email protected]>
1475
1476 PR tree-optimization/122537
1477 * tree-ssa-loop-niter.cc (number_of_iterations_lt_to_ne): Register
1478 may_be_zero condition when the IV may overflow.
1479
1480 2026-03-16 Richard Biener <[email protected]>
1481
1482 Backported from master:
1483 2026-02-05 Richard Biener <[email protected]>
1484
1485 PR tree-optimization/121726
1486 * tree-sra.cc (build_ref_for_offset): Add force_ref_all
1487 parameter and use ptr_type_node as alias pointer type in
1488 that case.
1489 (build_ref_for_model): Add force_ref_all parameter and
1490 pass it through, forcing build_ref_for_offset.
1491 (generate_subtree_copies): Likewise.
1492 (sra_modify_call_arg): Force ref-all accesses.
1493
1494 2026-03-16 Richard Biener <[email protected]>
1495
1496 Backported from master:
1497 2026-02-03 Richard Biener <[email protected]>
1498
1499 PR ipa/123416
1500 * ipa-modref.cc (ipa_merge_modref_summary_after_inlining):
1501 Fix typo in condtion for load merging when no callee summary.
1502
1503 2026-03-16 Richard Biener <[email protected]>
1504
1505 Backported from master:
1506 2026-01-29 Richard Biener <[email protected]>
1507
1508 PR tree-optimization/116747
1509 * tree-ssa-phiopt.cc (cond_if_else_store_replacement): Avoid
1510 duplicate stmts in the set of store pairs to process.
1511
1512 2026-03-16 Richard Biener <[email protected]>
1513
1514 Backported from master:
1515 2026-01-28 Richard Biener <[email protected]>
1516
1517 PR ipa/111036
1518 * match.pd (__builtin_constant_p ((T)x)): Strip nop-conversions
1519 from __builtin_constant_p arguments.
1520
1521 2026-03-14 Jakub Jelinek <[email protected]>
1522
1523 Backported from master:
1524 2026-03-13 Jakub Jelinek <[email protected]>
1525
1526 PR target/124461
1527 * config/i386/i386.md (movrs<mode>): Use <imodesuffix> only for
1528 -masm=att, not for -masm=intel.
1529
1530 2026-03-14 Andrew Pinski <[email protected]>
1531
1532 PR target/123457
1533 * config/aarch64/aarch64-sve-builtins.cc (struct registered_function_hasher):
1534 Change base class to ggc_ptr_hash.
1535 (initial_indexes): Mark with GTY.
1536 (function_table): Likewise.
1537 (handle_arm_sve_h): Allocate function_table from ggc instead of heap.
1538
1539 2026-03-14 Andrew Pinski <[email protected]>
1540
1541 PR target/124126
1542 * config/aarch64/aarch64-builtins.cc (aarch64_init_ls64_builtins_types): Copy
1543 the array type before setting the mode.
1544
1545 2026-03-14 Andrew Pinski <[email protected]>
1546
1547 PR target/123285
1548 * config/aarch64/aarch64-early-ra.cc (early_ra::form_chains): Process clobbers
1549 and ABI clobbers before starting to form the chain.
1550
1551 2026-03-13 Andrew Pinski <[email protected]>
1552
1553 Backported from master:
1554 2026-03-12 Andrew Pinski <[email protected]>
1555
1556 PR target/124409
1557 * doc/install.texi: Increment the required binutils for
1558 riscv to 2.40.
1559
1560 2026-03-13 Andrew Pinski <[email protected]>
1561
1562 Backported from master:
1563 2026-03-04 Andrew Pinski <[email protected]>
1564
1565 PR tree-optimization/119568
1566 * tree-ssa-math-opts.cc (convert_plusminus_to_widen): Reject different
1567 mode classes.
1568
1569 2026-03-13 Andrew Pinski <[email protected]>
1570
1571 Backported from master:
1572 2026-02-20 Andrew Pinski <[email protected]>
1573
1574 PR tree-optimization/121103
1575 * gimple-fold.cc (gimple_fold_call): Don't simplify
1576 noreturn functions.
1577 * tree-ssa-dse.cc (dse_optimize_stmt): Don't handle
1578 calls to noreturn functions.
1579
1580 2026-03-13 Andrew Pinski <[email protected]>
1581
1582 Backported from master:
1583 2026-01-30 Andrew Pinski <[email protected]>
1584
1585 PR rtl-optimization/122170
1586 * ifcvt.cc (noce_can_force_operand): Don't only check if
1587 there is an optab for the code check the entry for the
1588 mode is non-null. Handle non integral div by checking
1589 optab like force_operand does.
1590
1591 2026-03-13 Andrew Pinski <[email protected]>
1592
1593 Backported from master:
1594 2026-02-02 Andrew Pinski <[email protected]>
1595
1596 PR rtl-optimization/123294
1597 * ifcvt.cc (noce_emit_store_flag): Reject modes
1598 greater than MAX_FIXED_MODE_SIZE.
1599
1600 2026-03-13 Andrew Pinski <[email protected]>
1601
1602 Backported from master:
1603 2026-01-18 Andrew Pinski <[email protected]>
1604
1605 PR tree-optimization/123645
1606 * tree-ssa-phiopt.cc (cond_removal_in_builtin_zero_pattern): Rewrite
1607 the canonicalization of the args code based on e1/e2 being edges into
1608 the join block.
1609
1610 2026-03-10 Robin Dapp <[email protected]>
1611
1612 Backported from master:
1613 2026-02-24 Robin Dapp <[email protected]>
1614
1615 PR target/124147
1616 * config/riscv/autovec.md: Work around fractional-LMUL modes for
1617 TARGET_XTHEADVECTOR.
1618 * config/riscv/riscv-protos.h (get_m1_mode): Export.
1619 * config/riscv/riscv-v.cc (get_m1_mode): Allow to get a VLS m1
1620 vector.
1621
1622 2026-03-10 Robin Dapp <[email protected]>
1623
1624 Backported from master:
1625 2026-02-26 Robin Dapp <[email protected]>
1626
1627 PR target/122448
1628 * config/riscv/riscv-vsetvl.cc (compute_reaching_defintion):
1629 Rename...
1630 (compute_reaching_definition): ...To this.
1631 (pre_vsetvl::compute_vsetvl_def_data): Compute reaching
1632 definitions for vsetvl VL -> vsetvl AVL.
1633 (pre_vsetvl::compute_transparent): Include VL uses.
1634 (pre_vsetvl::fuse_local_vsetvl_info): Initialize m_reg_use_loc.
1635 (pre_vsetvl::earliest_fuse_vsetvl_info): Don't hoist if any
1636 successor would use VL.
1637
1638 2026-03-09 Kalvis Duckmanton <[email protected]>
1639
1640 Backported from master:
1641 2026-02-14 Kalvis Duckmanton <[email protected]>
1642
1643 PR target/112400
1644 * config/vax/vax.md (casesi1): Wrap naked operand 1 with a USE
1645 where used with the insn split to.
1646 (*casesi1): Likewise naked incoming operand 1.
1647
1648 2026-03-08 Jakub Jelinek <[email protected]>
1649
1650 Backported from master:
1651 2026-03-06 Jakub Jelinek <[email protected]>
1652
1653 PR tree-optimization/124135
1654 * tree-inline.cc (expand_call_inline): If both gimple_call_lhs (stmt)
1655 and use_retvar aren't gimple regs but have gimple reg type, use
1656 separate load of use_retva into SSA_NAME and then store of it
1657 into gimple_call_lhs (stmt).
1658
1659 2026-03-08 Jakub Jelinek <[email protected]>
1660
1661 Backported from master:
1662 2026-03-06 Jakub Jelinek <[email protected]>
1663
1664 PR tree-optimization/124358
1665 * match.pd ((ptr) (x p+ y) p+ z -> (ptr) (x p+ (y + z))): Simplify
1666 into (ptr) x p+ (y + z) instead.
1667
1668 2026-03-08 Jakub Jelinek <[email protected]>
1669
1670 Backported from master:
1671 2026-03-05 Jakub Jelinek <[email protected]>
1672
1673 PR target/124349
1674 * config/i386/sse.md (iptrssebvec_2): New define_mode_attr.
1675 (cvthf82ph<mode><mask_name>): Use it for -masm=intel input
1676 operand.
1677
1678 2026-03-08 Jakub Jelinek <[email protected]>
1679
1680 Backported from master:
1681 2026-03-05 Jakub Jelinek <[email protected]>
1682
1683 PR target/124367
1684 * config/i386/sse.md (*andnot<mode>3): Use 0x44 rather than $0x44
1685 for -masm=intel.
1686
1687 2026-03-08 Jakub Jelinek <[email protected]>
1688
1689 Backported from master:
1690 2026-03-05 Jakub Jelinek <[email protected]>
1691
1692 PR target/124366
1693 * config/i386/i386.md (@wrss<mode>, @wruss<mode>): Swap operand
1694 order for -masm=intel.
1695
1696 2026-03-08 Jakub Jelinek <[email protected]>
1697
1698 Backported from master:
1699 2026-03-04 Jakub Jelinek <[email protected]>
1700
1701 PR target/124341
1702 * config/i386/sse.md (vcvt<convertfp8_pack><mode><mask_name>): Use
1703 <mask_operand3> rather than <mask_operand2> for -masm=intel.
1704
1705 2026-03-08 Jakub Jelinek <[email protected]>
1706
1707 Backported from master:
1708 2026-03-04 Jakub Jelinek <[email protected]>
1709
1710 PR target/124349
1711 * config/i386/sse.md (avx10_2_comisbf16_v8bf): Use %w1 instead of %1
1712 for -masm=intel.
1713
1714 2026-03-08 Jakub Jelinek <[email protected]>
1715
1716 Backported from master:
1717 2026-03-03 Jakub Jelinek <[email protected]>
1718
1719 PR target/124315
1720 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask3<round_name>,
1721 avx512f_vmfmsub_<mode>_mask3<round_name>,
1722 avx512f_vmfnmadd_<mode>_mask3<round_name>,
1723 avx512f_vmfnmsub_<mode>_mask3<round_name>): Use %<iptr>1 instead of
1724 %<iptr>3 in -masm=intel syntax.
1725
1726 2026-03-08 Jakub Jelinek <[email protected]>
1727
1728 Backported from master:
1729 2026-03-03 Jakub Jelinek <[email protected]>
1730
1731 PR target/124335
1732 * config/i386/sse.md (*avx512f_load<mode>_mask): Use %{%3%} instead of
1733 %{3%} for -masm=intel syntax.
1734
1735 2026-03-08 Jakub Jelinek <[email protected]>
1736
1737 Backported from master:
1738 2026-03-02 Jakub Jelinek <[email protected]>
1739
1740 PR target/124294
1741 * config/i386/sse.md (avx512fp16_mov<mode>): Fix ordering of operands
1742 for -masm=intel for the avx10_2 alternative. Fix up indentation in
1743 the insn condition.
1744 (vec_set<mode>_0): Fix comment typo, higer -> higher.
1745
1746 2026-03-08 Jakub Jelinek <[email protected]>
1747
1748 Backported from master:
1749 2026-02-18 Jakub Jelinek <[email protected]>
1750
1751 PR target/124138
1752 * config/i386/i386.cc (avx_vpermilp_parallel): Verify
1753 ipar[2] and ipar[3] aren't larger than 3.
1754
1755 2026-03-08 Jakub Jelinek <[email protected]>
1756
1757 Backported from master:
1758 2026-02-11 Jakub Jelinek <[email protected]>
1759
1760 PR middle-end/124056
1761 * cfgexpand.cc (expand_asm_stmt): If after_md_seq is non-NULL, emit
1762 it at the start of after_rtl_seq instead of after fallthru_label.
1763
1764 2026-03-08 Jakub Jelinek <[email protected]>
1765
1766 Backported from master:
1767 2026-02-11 Jakub Jelinek <[email protected]>
1768
1769 PR rtl-optimization/116600
1770 PR middle-end/123386
1771 * cfgrtl.cc (force_nonfallthru_and_redirect): Don't do any
1772 asm goto adjustments early, only note in asm_goto_edge if
1773 any labels point originally to e->dest head. After jumpblock
1774 creation don't add an extra edge for asm_goto_edge, instead
1775 adjust those labels pointing to former e->dest head to point
1776 to jumpblock instead.
1777
1778 2026-03-08 Jakub Jelinek <[email protected]>
1779
1780 Backported from master:
1781 2026-02-07 Jakub Jelinek <[email protected]>
1782
1783 PR tree-optimization/123672
1784 * tree-ssa-forwprop.cc (recognise_vec_perm_simplify_seq): Use std::swap
1785 instead of fetching gimple_assign_rhs{1,2} again. Change type of lanes
1786 vector from auto_vec<unsigned int> to auto_vec<bool> and store true
1787 instead of 1 into it. Fix comment typo and formatting fix.
1788 (can_blend_vec_perm_simplify_seqs_p): Put end of comment on the same
1789 line as the last sentence in it.
1790 (calc_perm_vec_perm_simplify_seqs): Change lane_assignment type from
1791 auto_vec<int> to auto_vec<unsigned> and store 2 + l_orig into it
1792 instead of true. Fix comment typo and formatting fix. Set use_seq1
1793 to line_assignment[i] < 2 instead of line_assignment[i] != 2. Replace
1794 bogus computation of index for !use_seq with using
1795 line_assignment[i] - 2. Set l1 to l1 % nelts and similarly for l2.
1796
1797 2026-03-08 Jakub Jelinek <[email protected]>
1798
1799 Backported from master:
1800 2026-02-06 Jakub Jelinek <[email protected]>
1801
1802 PR c/101312
1803 * alias.cc (get_alias_set): Allow TYPE_CANONICAL (mv) to be
1804 not its own TYPE_MAIN_VARIANT, as long as its TYPE_MAIN_VARIANT
1805 has TYPE_CANONICAL equal to itself.
1806 * tree.cc (verify_type): Likewise.
1807
1808 2026-03-08 Jakub Jelinek <[email protected]>
1809
1810 Backported from master:
1811 2026-02-05 Jakub Jelinek <[email protected]>
1812
1813 PR middle-end/123978
1814 * range-op.h (OP_WIDEN_MULT_SIGNED_UNSIGNED): Define.
1815 (OP_WIDEN_PLUS_SIGNED, OP_WIDEN_PLUS_UNSIGNED,
1816 RANGE_OP_TABLE_SIZE): Renumber.
1817 * gimple-range-op.cc (imple_range_op_handler::maybe_non_standard):
1818 Use 3 different classes instead of 2 for WIDEN_MULT_EXPR, one
1819 for both operands signed, one for both operands unsigned and
1820 one for operands with different signedness. In the last case
1821 canonicalize to first operand signed second unsigned.
1822 * range-op.cc (operator_widen_mult_signed::wi_fold): Use
1823 TYPE_PRECISION (type) rather than wi::get_precision (whatever) * 2,
1824 use SIGNED for all wide_int::from calls.
1825 (operator_widen_mult_unsigned::wi_fold): Similarly but use UNSIGNED
1826 for all wide_int::from calls.
1827 (class operator_widen_mult_signed_unsigned): New type.
1828 (operator_widen_mult_signed_unsigned::wi_fold): Define.
1829
1830 2026-03-08 Jakub Jelinek <[email protected]>
1831
1832 Backported from master:
1833 2026-02-04 Jakub Jelinek <[email protected]>
1834
1835 PR c++/123818
1836 * tree.cc (simple_cst_equal) <case CONSTRUCTOR>: Return -1 if some
1837 recursive call returns -1. Also compare indexes.
1838
1839 2026-03-08 Jakub Jelinek <[email protected]>
1840
1841 Backported from master:
1842 2026-02-04 Jakub Jelinek <[email protected]>
1843
1844 PR middle-end/122689
1845 * gimple-lower-bitint.cc (gimple_lower_bitint): For the PHI handling
1846 if min_prec == prec, break after emitting assignment from c.
1847
1848 2026-03-08 Jakub Jelinek <[email protected]>
1849
1850 Backported from master:
1851 2026-02-02 Jakub Jelinek <[email protected]>
1852
1853 PR tree-optimization/121104
1854 * tree-ssa-math-opts.cc (match_uaddc_usubc): Punt if
1855 lhs of ovf1 or ovf2 doesn't have element type compatible with type.
1856
1857 2026-03-08 Jakub Jelinek <[email protected]>
1858
1859 Backported from master:
1860 2026-01-30 Jakub Jelinek <[email protected]>
1861
1862 PR tree-optimization/123864
1863 * match.pd (__builtin_mul_overflow_p (x, cst, (stype) 0) ->
1864 x > stype_max / cst || x < stype_min / cst): Only check
1865 integer_minus_onep for signed types.
1866
1867 2026-03-08 Jakub Jelinek <[email protected]>
1868
1869 Backported from master:
1870 2026-01-30 Jakub Jelinek <[email protected]>
1871
1872 PR c++/123790
1873 * fold-const.cc (fold_convert_const): Handle conversion of
1874 integer_zerop to NULLPTR_TYPE.
1875 (fold_convert_loc): Likewise.
1876
1877 2026-03-08 Jakub Jelinek <[email protected]>
1878
1879 Backported from master:
1880 2026-01-30 Jakub Jelinek <[email protected]>
1881
1882 PR middle-end/123876
1883 * omp-low.cc (diagnose_sb_2): Handle GIMPLE_ASM.
1884
1885 2026-03-05 Xi Ruoyao <[email protected]>
1886
1887 Backported from master:
1888 2026-03-05 Xi Ruoyao <[email protected]>
1889
1890 PR target/123807
1891 PR middle-end/124250
1892 * config/loongarch/loongarch.cc
1893 (loongarch_expand_vector_init_same): Revert r16-7163 change.
1894
1895 2026-03-04 Martin Jambor <[email protected]>
1896
1897 Backported from master:
1898 2026-02-20 Martin Jambor <[email protected]>
1899
1900 PR ipa/122856
1901 * ipa-cp.cc (self_recursive_pass_through_p): Test jump function type first.
1902 (self_recursive_ancestor_p): New function.
1903 (find_scalar_values_for_callers_subset): Test also for self-recursive
1904 ancestor jump functions.
1905 (push_agg_values_for_index_from_edge): Likewise.
1906
1907 2026-03-04 Xi Ruoyao <[email protected]>
1908
1909 Backported from master:
1910 2026-02-26 Xi Ruoyao <[email protected]>
1911
1912 PR middle-end/124250
1913 PR target/123807
1914 * optabs.cc (expand_binop): Extend the shift amount if it's
1915 narrower than the element of the shifted vector.
1916
1917 2026-02-26 Xi Ruoyao <[email protected]>
1918
1919 Revert:
1920 2025-11-08 Lulu Cheng <[email protected]>
1921
1922 PR target/122097
1923 * config/loongarch/loongarch.cc
1924 (loongarch_const_vector_same_bytes_p): Add processing for
1925 floating-point vector data.
1926
1927 2026-02-26 Xi Ruoyao <[email protected]>
1928
1929 Backported from master:
1930 2026-02-03 Xi Ruoyao <[email protected]>
1931
1932 * config/loongarch/predicates.md (const_vector_neg_fp_operand):
1933 New define_predicate.
1934 (reg_or_vector_neg_fp_operand): New define_predicate.
1935 * config/loongarch/lasx.md (copysign<mode>3): Remove.
1936 (xorsign<mode>3): Remove.
1937 * config/loongarch/lsx.md (copysign<mode>3): Remove.
1938 (@xorsign<mode>3): Remove.
1939 * config/loongarch/simd.md (copysign<mode>3): New define_expand.
1940 (@xorsign<mode>3): New define_expand.
1941 (and<mode>3): Only allow IVEC instead of ALLVEC.
1942 (ior<mode>3): Likewise.
1943 (xor<mode>3): Likewise.
1944 * config/loongarch/loongarch.cc (loongarch_print_operand): No
1945 longer allow floating-point vector constants for %V.
1946 (loongarch_const_vector_bitimm_set_p): Always return false for
1947 floating-point vector constants.
1948 (loongarch_build_signbit_mask): Factor out force_reg.
1949 (loongarch_emit_swrsqrtsf): Use integer vector mode instead of
1950 floating-point vector mode when masking zero inputs.
1951
1952 2026-02-25 Christophe Lyon <[email protected]>
1953
1954 Backported from master:
1955 2025-06-02 Christophe Lyon <[email protected]>
1956
1957 * doc/sourcebuild.texi (tls_link): Add documentation.
1958
1959 2026-02-22 Nathaniel Shead <[email protected]>
1960
1961 Backported from master:
1962 2026-02-22 Nathaniel Shead <[email protected]>
1963
1964 PR c++/120974
1965 * gcc.cc (join_spec_func): Escape special characters.
1966
1967 2026-02-19 Vladimir N. Makarov <[email protected]>
1968
1969 PR target/121571
1970 * lra-constraints.cc (process_alt_operands): Reprocess asm insn
1971 when there are no enough regs for the asm-insn.
1972
1973 2026-02-18 Richard Earnshaw <[email protected]>
1974
1975 Backported from master:
1976 2026-02-17 Richard Earnshaw <[email protected]>
1977
1978 PR target/124134
1979 * config/arm/arm.md (movsfcc): FAIL if using restricted IT
1980 blocks and we lack VSEL.
1981 (movdfcc): Likewise.
1982
1983 2026-02-17 Alex Coplan <[email protected]>
1984
1985 Backported from master:
1986 2026-01-30 Alex Coplan <[email protected]>
1987
1988 PR target/123206
1989 * config/aarch64/aarch64-builtins.cc (struct aarch64_pragma_builtins_data):
1990 Declare array as CONSTEXPR.
1991 * config/aarch64/aarch64-simd-pragma-builtins.def: Update
1992 incorrect uses of TARGET_SIMD to use AARCH64_FL_SIMD instead.
1993
1994 2026-02-16 Martin Jambor <[email protected]>
1995
1996 Backported from master:
1997 2026-02-09 Martin Jambor <[email protected]>
1998
1999 PR tree-optimization/117217
2000 * tree-sra.cc (propagate_subaccesses_from_rhs): Do not propagate
2001 bit-field children.
2002 (propagate_subaccesses_from_lhs): Likewise.
2003
2004 2026-02-16 Martin Jambor <[email protected]>
2005
2006 Backported from master:
2007 2026-02-06 Martin Jambor <[email protected]>
2008
2009 PR ipa/106260
2010 * ipa-cp.cc (initialize_node_lattices): Replace assert that there are
2011 callers with handling that situation when -fno-toplevel_reorder.
2012
2013 2026-02-16 Robin Dapp <[email protected]>
2014
2015 Backported from master:
2016 2026-02-05 Robin Dapp <[email protected]>
2017
2018 PR target/123910
2019 * config/riscv/riscv-string.cc (riscv_expand_block_move):
2020 Remove !xtheadvector guard.
2021 (use_vector_stringop_p): Guard small LMULs.
2022 (check_vectorise_memory_operation): Ditto.
2023
2024 2026-02-12 Pengfei Li <[email protected]>
2025
2026 PR middle-end/123447
2027 * expr.cc (expand_expr_real_1): Increase stack slot alignment
2028 for STRICT_ALIGNMENT targets.
2029
2030 2026-02-11 Alice Carlotti <[email protected]>
2031
2032 PR target/123624
2033 * config/aarch64/aarch64-protos.h
2034 (aarch64_use_simple_return_insn_p): New.
2035 * config/aarch64/aarch64.cc
2036 (aarch64_use_simple_return_insn_p): New, used...
2037 * config/aarch64/aarch64.md (simple_return): ...here.
2038
2039 2026-02-11 Andre Vieira <[email protected]>
2040
2041 Backported from master:
2042 2025-04-25 Andre Vieira <[email protected]>
2043
2044 PR rtl-optimization/116479
2045 * modulo-sched.cc (doloop_register_get): Reject conditions with
2046 decrements that are not 1.
2047
2048 2026-02-10 Robin Dapp <[email protected]>
2049
2050 Backported from master:
2051 2026-02-06 Robin Dapp <[email protected]>
2052
2053 PR tree-optimization/123940
2054 * tree-ssa-math-opts.cc (convert_mult_to_fma): Check
2055 multiplication result is an addend.
2056
2057 2026-02-10 Robin Dapp <[email protected]>
2058
2059 Backported from master:
2060 2026-02-05 Robin Dapp <[email protected]>
2061
2062 PR target/123870
2063 PR target/123969
2064 * config/riscv/vector.md: Add vlds to "no ratio" for
2065 theadvector.
2066
2067 2026-02-10 Robin Dapp <[email protected]>
2068
2069 Backported from master:
2070 2026-02-05 Robin Dapp <[email protected]>
2071
2072 PR target/123971
2073 * config/riscv/riscv.cc (riscv_vector_mode_supported_any_target_p):
2074 Remove TARGET_XTHEADVECTOR.
2075
2076 2026-02-10 Robin Dapp <[email protected]>
2077
2078 Backported from master:
2079 2026-01-29 Robin Dapp <[email protected]>
2080
2081 PR target/123806
2082 * config/riscv/riscv-string.cc (expand_rawmemchr): Use unified
2083 vl_read.
2084 (expand_strcmp): Ditto.
2085 * config/riscv/riscv-vector-builtins-bases.cc:
2086 * config/riscv/riscv-vector-builtins.cc (function_expander::use_fof_load_insn):
2087 Only emit the store and not the VL read.
2088 * config/riscv/riscv-vsetvl.cc (get_fof_set_vl_reg): New
2089 function.
2090 (init_rtl_ssa): New wrapper.
2091 (finish_rtl_ssa): Ditto.
2092 (emit_fof_read_vls): Emit read_vl after each fault-only-first
2093 load.
2094 (pass_vsetvl::simple_vsetvl): Call emit_fof_read_vls ().
2095 (pass_vsetvl::lazy_vsetvl): Ditto.
2096 * config/riscv/vector-iterators.md: Add read_vl unspec.
2097 * config/riscv/vector.md (read_vlsi): Unify.
2098 (@read_vl<mode>): Ditto.
2099 (read_vldi_zero_extend): Ditto.
2100 (@pred_fault_load_set_vl<V_VLS:mode><P:mode>): New FoF variant
2101 that saves VL in a register.
2102 (@pred_fault_load_set_vl<VT:mode><P:mode>): Ditto.
2103
2104 2026-02-10 Jeff Law <[email protected]>
2105
2106 Backported from master:
2107 2026-01-19 Jeff Law <[email protected]>
2108
2109 PR rtl-optimization/121787
2110 * config/riscv/riscv-vsetvl.cc (pre_vsetvl): Adjust call to
2111 loop_optimizer_init to avoid making CFG changes.
2112
2113 2026-02-10 Robin Dapp <[email protected]>
2114
2115 Backported from master:
2116 2026-01-22 Robin Dapp <[email protected]>
2117
2118 PR target/122869
2119 * config/riscv/riscv-vector-builtins-bases.cc (fold_fault_load):
2120 Remove
2121 * config/riscv/riscv-vector-builtins.cc (function_expander::use_contiguous_load_insn):
2122 Use new helper.
2123 (function_expander::prepare_contiguous_load_insn): New helper.
2124 (function_expander::use_fof_load_insn): New function to emit FoF
2125 loads.
2126 * config/riscv/riscv-vector-builtins.h: Declare new functions.
2127
2128 2026-02-10 Kyrylo Tkachov <[email protected]>
2129
2130 Backported from master:
2131 2026-02-10 Kyrylo Tkachov <[email protected]>
2132
2133 * config/aarch64/tuning_models/olympus.h (olympus_sve_vector_cost):
2134 Set align_load_cost to 6.
2135
2136 2026-02-09 LIU Hao <[email protected]>
2137
2138 Backported from master:
2139 2025-05-06 LIU Hao <[email protected]>
2140
2141 PR pch/14940
2142 * config/i386/host-mingw32.cc (mingw32_gt_pch_use_address):
2143 Replace the loop that attempted to map the PCH only to its
2144 original address with more adaptive operations
2145
2146 2026-02-09 Stefan Schulze Frielinghaus <[email protected]>
2147
2148 Backported from master:
2149 2026-01-21 Stefan Schulze Frielinghaus <[email protected]>
2150
2151 PR target/122781
2152 * config/s390/vector.md: Don't emulate vec_cmpgtu for 128-bit
2153 integers for VXE3.
2154
2155 2026-02-06 xiezhiheng <[email protected]>
2156
2157 Backported from master:
2158 2026-02-05 xiezhiheng <[email protected]>
2159 liyunfei <[email protected]>
2160
2161 * config/aarch64/aarch64-cores.def (AARCH64_CORE): Add hip12 core
2162 * config/aarch64/aarch64-cost-tables.h: Add hip12_extra_costs
2163 * config/aarch64/aarch64-tune.md: Regenerate
2164 * config/aarch64/aarch64.cc: Include hip12 tuning model
2165 * doc/invoke.texi: Document -mcpu=hip12
2166 * config/aarch64/tuning_models/hip12.h: New file.
2167
2168 2026-02-06 Torbjörn SVENSSON <[email protected]>
2169
2170 * system.h: Avoid redefinition of CONST_CAST2 macro.
2171
2172 2026-02-05 Kyrylo Tkachov <[email protected]>
2173
2174 Backported from master:
2175 2026-01-20 Kyrylo Tkachov <[email protected]>
2176
2177 PR target/123584
2178 * config/aarch64/aarch64-simd.md (aarch64_xarqv2di): Leave zero
2179 rotate amounts as zero during expansion.
2180 (*aarch64_xarqv2di_insn): Account for zero rotate amounts. Print #
2181 in rotate immediate.
2182
2183 2026-02-05 Hongyu Wang <[email protected]>
2184
2185 Backported from master:
2186 2026-01-28 Hongyu Wang <[email protected]>
2187
2188 PR target/123779
2189 * config/i386/sse.md (*sse4_1_<code>v8qiv8hi2<mask_name>_2):
2190 Rename to ...
2191 (*sse4_1_<code>v8qiv8hi2_2): ... this, and drop mask conditions.
2192 (*avx2_<code>v8qiv8si2<mask_name>_2): Rename to ...
2193 (*avx2_<code>v8qiv8si2_2): ... this, and likewise.
2194 (*sse4_1_<code>v4qiv4si2<mask_name>_2): Rename to ...
2195 (*sse4_1_<code>v4qiv4si2_2): ... this, and likewise.
2196 (*sse4_1_<code>v4hiv4si2<mask_name>_2): Rename to ...
2197 (*sse4_1_<code>v4hiv4si2_2): ... this, and likewise.
2198 (*avx2_<code>v4qiv4di2<mask_name>_2): Rename to ...
2199 (*avx2_<code>v4qiv4di2_2): ... this, and likewise.
2200 (*avx2_<code>v4hiv4di2<mask_name>_2): Rename to ...
2201 (*avx2_<code>v4hiv4di2_2): ... this, and likewise.
2202 (*sse4_1_<code>v2hiv2di2<mask_name>_2): Rename to ...
2203 (*sse4_1_<code>v2hiv2di2_2): ... this, and likewise.
2204 (*sse4_1_<code>v2siv2di2<mask_name>_2): Rename to ...
2205 (*sse4_1_<code>v2siv2di2_2): ... this, and likewise.
2206 (*avx512f_<code>v8qiv8di2<mask_name>_2): Rename to ...
2207 (*avx512f_<code>v8qiv8di2_2): ... this.
2208 (*avx512vl_<code>v8qiv8hi2_mask_2): New define_insn_and_split.
2209 (*avx512vl_<code>v8qiv8si2_mask_2): Likewise.
2210 (*avx512vl_<code>v4qiv4si2_mask_2): Likewise.
2211 (*avx512vl_<code>v4hiv4si2_mask_2): Likewise.
2212 (*avx512f_<code>v8qiv8di2_mask_2): Likewise.
2213 (*avx512vl_<code>v4qiv4di2_mask_2): Likewise.
2214 (*avx512vl_<code>v4hiv4di2_mask_2): Likewise.
2215 (*avx512vl_<code>v2hiv2di2_mask_2): Likewise.
2216 (*avx512vl_<code>v2siv2di2_mask_2): Likewise.
2217
2218 2026-02-03 Jeff Law <[email protected]>
2219
2220 Backported from master:
2221 2025-10-02 Jeff Law <[email protected]>
2222
2223 PR target/122051
2224 * config/riscv/predicates.md (pmode_reg_or_uimm5_operand): Implement
2225 directly rather than using vector_length_operand.
2226
2227 2026-02-03 Jeff Law <[email protected]>
2228
2229 Backported from master:
2230 2025-07-09 Jeff Law <[email protected]>
2231
2232 PR target/120642
2233 * config/riscv/riscv-avlprop.cc (pass_avlprop::execute): Do not do
2234 constant AVL propagation for xtheadvector.
2235
2236 2026-02-03 Alfie Richards <[email protected]>
2237
2238 PR target/123548
2239 * config/aarch64/arm_acle.h (__plix): Change arguments to be
2240 const.
2241 (__pldx): Change arguments to be const.
2242
2243 2026-02-02 Richard Biener <[email protected]>
2244
2245 Backported from master:
2246 2026-01-30 Richard Biener <[email protected]>
2247
2248 PR debug/123886
2249 * dwarf2out.cc (sym_off_pair::sym): Remove GTY((skip)).
2250
2251 2026-02-02 Richard Biener <[email protected]>
2252
2253 Backported from master:
2254 2026-01-26 Richard Biener <[email protected]>
2255
2256 PR tree-optimization/123794
2257 * tree-vect-slp.cc (vect_remove_slp_scalar_calls): Unlink
2258 VOPs for all calls.
2259
2260 2026-02-02 Richard Biener <[email protected]>
2261
2262 Backported from master:
2263 2026-01-23 Richard Biener <[email protected]>
2264
2265 PR middle-end/123775
2266 * match.pd ((view_convert (vec_cond ...))): Make sure the
2267 resulting vec_cond can be expanded.
2268
2269 2026-02-02 Richard Biener <[email protected]>
2270
2271 Backported from master:
2272 2026-01-20 Richard Biener <[email protected]>
2273
2274 PR tree-optimization/123729
2275 * tree-vect-loop.cc (vect_create_epilog_for_reduction): Set
2276 SSA_NAME_OCCURS_IN_ABNORMAL_PHI if the reduction flows
2277 across an abnomal edge.
2278
2279 2026-02-02 Richard Biener <[email protected]>
2280
2281 Backported from master:
2282 2026-01-20 Richard Biener <[email protected]>
2283
2284 * tree-phinodes.h (phi_arg_index_from_use): Use gphi *.
2285 (phi_arg_edge_from_use): New helper composing
2286 phi_arg_index_from_use and gimple_phi_arg_edge.
2287
2288 2026-02-02 Richard Biener <[email protected]>
2289
2290 Backported from master:
2291 2026-01-28 Richard Biener <[email protected]>
2292
2293 PR middle-end/123575
2294 * match.pd (abs ((T)x) -> absu (x)): For vector type
2295 arguments require the resulting operation is supported.
2296
2297 2026-02-02 Richard Biener <[email protected]>
2298
2299 Backported from master:
2300 2026-01-28 Richard Biener <[email protected]>
2301
2302 PR tree-optimization/123537
2303 * match.pd (REDUC (@0 & @1) -> @0[I] & @1[I]): Restrict
2304 allowed conversions.
2305
2306 2026-02-02 Richard Biener <[email protected]>
2307
2308 Backported from master:
2309 2026-01-27 Richard Biener <[email protected]>
2310
2311 PR ipa/116296
2312 * ipa-modref-tree.cc (modref_access_node::contains): Use
2313 poly_offset_int for the param offset difference and the
2314 overlap computation.
2315
2316 2026-02-02 Richard Biener <[email protected]>
2317
2318 Backported from master:
2319 2026-01-28 Richard Biener <[email protected]>
2320
2321 PR tree-optimization/110043
2322 * pointer-query.cc (get_offset_range): Fail for integer
2323 types with precision larger than ptrdiff_type_node.
2324
2325 2026-02-02 Richard Biener <[email protected]>
2326
2327 Backported from master:
2328 2026-01-30 Richard Biener <[email protected]>
2329
2330 PR tree-optimization/109410
2331 * tree-ssa-reassoc.cc (build_and_add_sum): Use
2332 gsi_start_nondebug_after_labels_bb to look for a possible
2333 returns-twice call.
2334
2335 2026-02-02 Richard Biener <[email protected]>
2336
2337 Backported from master:
2338 2026-01-28 Richard Biener <[email protected]>
2339
2340 PR rtl-optimization/106859
2341 * var-tracking.cc (val_store): Dump -1 as UID if setting_insn
2342 is NULL.
2343
2344 2026-02-02 Richard Biener <[email protected]>
2345
2346 Backported from master:
2347 2026-01-31 Richard Biener <[email protected]>
2348
2349 PR middle-end/123887
2350 * match.pd ((a ? x : y) !=/== (b ? x : y)): Make sure
2351 x and y have no side-effects before evaluating them
2352 unconditionally.
2353
2354 2026-02-02 Richard Biener <[email protected]>
2355
2356 Backported from master:
2357 2026-01-30 Richard Biener <[email protected]>
2358
2359 PR middle-end/123887
2360 * match.pd ((zero_one ==/!= 0) ? .. z <op> y .. -> zero_one * z ..):
2361 Check evaluating z unconditionally has no side-effects, like
2362 trapping.
2363
2364 2026-01-30 Lulu Cheng <[email protected]>
2365
2366 Backported from master:
2367 2026-01-30 Lulu Cheng <[email protected]>
2368
2369 * config/loongarch/loongarch-ftypes.def: Remove unused type.
2370
2371 2026-01-30 Lulu Cheng <[email protected]>
2372
2373 Backported from master:
2374 2026-01-30 Lulu Cheng <[email protected]>
2375
2376 PR target/123766
2377 * config/loongarch/loongarch-builtins.cc
2378 (loongarch_build_vpointer_type): New function. Return a type
2379 for 'volatile void *'.
2380 (LARCH_ATYPE_VPOINTER): New macro.
2381 * config/loongarch/loongarch-ftypes.def: Change the pointer
2382 type of the store class function from CVPOINTER to VPOINTER.
2383
2384 2026-01-30 Lulu Cheng <[email protected]>
2385
2386 Backported from master:
2387 2026-01-30 Lulu Cheng <[email protected]>
2388
2389 PR target/123807
2390 * config/loongarch/loongarch.cc
2391 (loongarch_expand_vector_init_same): When same is MEM and
2392 GET_MODE(same) != imode, first load the data from memory
2393 and then process it further.
2394
2395 2026-01-23 Jakub Jelinek <[email protected]>
2396
2397 Backported from master:
2398 2026-01-23 Jakub Jelinek <[email protected]>
2399
2400 PR middle-end/123703
2401 * builtins.cc (fold_builtin_abs): Return NULL_TREE if type is not
2402 integral.
2403
2404 2026-01-23 Jakub Jelinek <[email protected]>
2405
2406 Backported from master:
2407 2026-01-22 Jakub Jelinek <[email protected]>
2408
2409 PR tree-optimization/123736
2410 * tree-ssa-loop-unswitch.cc (hoist_guard): Guard dump message
2411 on dump_file && (dump_flags & TDF_DETAILS) condition.
2412
2413 2026-01-23 Richard Biener <[email protected]>
2414
2415 Backported from master:
2416 2026-01-22 Richard Biener <[email protected]>
2417
2418 PR tree-optimization/123741
2419 * tree-vect-stmts.cc (vectorizable_store): Add missing check
2420 on loop vectorization.
2421
2422 2026-01-23 Richard Biener <[email protected]>
2423
2424 Backported from master:
2425 2026-01-19 Richard Biener <[email protected]>
2426
2427 PR tree-optimization/123602
2428 * tree-ssa-pre.cc (find_or_generate_expression): Do not
2429 generate references to abnormal SSA names.
2430
2431 2026-01-23 Richard Biener <[email protected]>
2432
2433 Backported from master:
2434 2026-01-08 Richard Biener <[email protected]>
2435
2436 PR middle-end/123107
2437 * fold-const.cc (fold_binary_loc): Guard (v >> CST) == { 0, 0.. }
2438 to v < { 0, 0.. } folding.
2439
2440 2026-01-23 Richard Sandiford <[email protected]>
2441
2442 Backported from master:
2443 2026-01-08 Richard Sandiford <[email protected]>
2444 Richard Biener <[email protected]>
2445
2446 PR tree-optimization/122793
2447 * tree-vect-slp.cc (vect_add_slp_permutation): Document the existing
2448 identity_offset parameter. Handle identities that take from the
2449 second input rather than the first.
2450
2451 2026-01-23 Avinash Jayakar <[email protected]>
2452
2453 PR target/119130
2454 * config/rs6000/altivec.md (convert_4f32_8f16): Use same operand
2455 order for both endian format.
2456
2457 2026-01-23 Hongyu Wang <[email protected]>
2458
2459 Backported from master:
2460 2026-01-23 Hongyu Wang <[email protected]>
2461
2462 * config/i386/sse.md (avx2_vbroadcasti128_<mode>): Constraint
2463 alternative 0 with jm and add gpr16 attr to avoid egpr usage.
2464
2465 2026-01-23 Lili Cui <[email protected]>
2466
2467 Backported from master:
2468 2026-01-14 Lili Cui <[email protected]>
2469
2470 * config/i386/x86-tune.def (X86_TUNE_ALIGN_TIGHT_LOOPS):
2471 disable tight loop alignment for m_CORE_ATOM.
2472
2473 2026-01-22 Richard Earnshaw <[email protected]>
2474
2475 Backported from master:
2476 2026-01-22 Richard Earnshaw <[email protected]>
2477
2478 PR target/123742
2479 * config/arm/neon.md (*smin<mode>3_neon): Renamed to ...
2480 (*smin<VDQWH:mode>3_neon): ... this. Add HFmode support.
2481 (*smax<mode>3_neon): Renamed to ...
2482 (*smax<VDQWH:mode>3_neon): ... this. Add HFmode support.
2483
2484 2026-01-19 Vladimir N. Makarov <[email protected]>
2485
2486 Backported from master:
2487 2026-01-16 Vladimir N. Makarov <[email protected]>
2488
2489 PR target/123092
2490 * lra-constraints.cc (lra_constraints): Push insn on processing
2491 stack after equivalence substitution.
2492
2493 2026-01-19 Lulu Cheng <[email protected]>
2494
2495 Backported from master:
2496 2026-01-19 Lulu Cheng <[email protected]>
2497
2498 PR target/117575
2499 * config/loongarch/lasx.md: Modify the range of operand1.
2500
2501 2026-01-17 Jakub Jelinek <[email protected]>
2502
2503 Backported from master:
2504 2026-01-17 Jakub Jelinek <[email protected]>
2505
2506 PR tree-optimization/123513
2507 * tree.cc (valid_new_delete_pair_p): If new_name[3] or delete_name[3]
2508 is 'I', return false with *pcertain set to false rather than true.
2509
2510 2026-01-16 Jakub Jelinek <[email protected]>
2511
2512 Backported from master:
2513 2026-01-16 Jakub Jelinek <[email protected]>
2514
2515 PR target/123607
2516 * config/i386/i386.md (movhf_mask): Change constraint on
2517 match_operand 2's second alternative from 0C to 0.
2518
2519 2026-01-16 Jakub Jelinek <[email protected]>
2520
2521 Backported from master:
2522 2026-01-14 Jakub Jelinek <[email protected]>
2523
2524 PR target/120250
2525 * combine.cc (recog_for_combine): Don't try to put SET_SRC
2526 into a constant pool if SET_DEST is pc_rtx.
2527
2528 2026-01-16 Jakub Jelinek <[email protected]>
2529
2530 Backported from master:
2531 2026-01-12 Jakub Jelinek <[email protected]>
2532
2533 PR rtl-optimization/123523
2534 * simplify-rtx.cc (simplify_const_binary_operation): Use
2535 DImode for VOIDmode shift and truncation counts if int_mode
2536 is narrower than HOST_BITS_PER_WIDE_INT rather than
2537 word_mode if int_mode it is narrower than BITS_PER_WORD.
2538
2539 2026-01-16 Jakub Jelinek <[email protected]>
2540
2541 Backported from master:
2542 2026-01-10 Jakub Jelinek <[email protected]>
2543
2544 PR tree-optimization/123431
2545 * gimple-range-op.cc (gimple_range_op_handler::maybe_builtin_call):
2546 Punt if type-generic builtins with a single argument don't have
2547 exactly one argument. For returns_arg punt if call doesn't have
2548 at least one argument.
2549
2550 2026-01-16 Jakub Jelinek <[email protected]>
2551
2552 Backported from master:
2553 2026-01-09 Jakub Jelinek <[email protected]>
2554
2555 * doc/invoke.texi (-x): Add objc-cpp-output,
2556 objc++-cpp-output, adascil, adawhy, modula-2, modula-2-cpp-output,
2557 rust and lto as further possible option arguments.
2558
2559 2026-01-16 Jakub Jelinek <[email protected]>
2560
2561 Backported from master:
2562 2026-01-09 Jakub Jelinek <[email protected]>
2563
2564 PR target/123489
2565 * config/i386/i386-builtin.def (__builtin_ia32_cvttsd2sis64_round,
2566 __builtin_ia32_cvttsd2usis64_round, __builtin_ia32_cvttss2sis64_round,
2567 __builtin_ia32_cvttss2usis64_round): Require OPTION_MASK_ISA_64BIT.
2568
2569 2026-01-16 Jakub Jelinek <[email protected]>
2570
2571 Backported from master:
2572 2026-01-08 Jakub Jelinek <[email protected]>
2573
2574 PR middle-end/111817
2575 * stmt.cc (parse_input_constraint): For matching construct, goto
2576 before the loop without changing j instead of break. Remove comment
2577 about that problem.
2578
2579 2026-01-16 Jakub Jelinek <[email protected]>
2580
2581 Backported from master:
2582 2026-01-07 Jakub Jelinek <[email protected]>
2583
2584 PR rtl-optimization/119291
2585 PR rtl-optimization/121773
2586 * combine.cc (try_combine): Check that SET_DEST (setN) is neither
2587 modified_between_p nor reg_used_between_p instead of just not
2588 reg_used_between_p or pc_rtx.
2589
2590 2026-01-16 Jakub Jelinek <[email protected]>
2591
2592 Backported from master:
2593 2026-01-06 Jakub Jelinek <[email protected]>
2594 Marco Falke <[email protected]>
2595
2596 PR tree-optimization/123351
2597 * tree-object-size.cc (object_sizes_set_temp): Separate calls to
2598 make_ssa_name to ensure deterministic execution order.
2599
2600 2026-01-16 Jakub Jelinek <[email protected]>
2601
2602 Backported from master:
2603 2026-01-03 Jakub Jelinek <[email protected]>
2604
2605 PR tree-optimization/123372
2606 * tree-ssa-math-opts.cc
2607 (build_saturation_binary_arith_call_and_replace): Pass type of op_0
2608 rather than type of lhs as second argument to
2609 direct_internal_fn_supported_p.
2610
2611 2026-01-16 Jakub Jelinek <[email protected]>
2612
2613 Backported from master:
2614 2025-12-20 Jakub Jelinek <[email protected]>
2615
2616 PR target/123217
2617 * config/i386/i386-expand.cc (ix86_expand_builtin)
2618 <case IX86_BUILTIN_ENCODEKEY128U32, case IX86_BUILTIN_ENCODEKEY256U32,
2619 case IX86_BUILTIN_URDMSR>: Set target to a new pseudo even if it is
2620 non-NULL but doesn't satisfy register_operand predicate.
2621
2622 2026-01-16 Jakub Jelinek <[email protected]>
2623
2624 Backported from master:
2625 2025-12-19 Jakub Jelinek <[email protected]>
2626
2627 * doc/install.texi (--with-tls=): Fix a typo, were -> where.
2628
2629 2026-01-16 Jakub Jelinek <[email protected]>
2630
2631 Backported from master:
2632 2025-12-17 Jakub Jelinek <[email protected]>
2633
2634 PR target/123155
2635 * config/i386/xmmintrin.h (_mm_maskmove_si64): Rename offset automatic
2636 variable to __offset.
2637
2638 2026-01-16 Jakub Jelinek <[email protected]>
2639
2640 Backported from master:
2641 2025-12-17 Jakub Jelinek <[email protected]>
2642
2643 PR target/123155
2644 * config/i386/avx10_2-512bf16intrin.h (_mm512_roundscale_pbh,
2645 _mm512_mask_roundscale_pbh, _mm512_maskz_roundscale_pbh,
2646 _mm512_reduce_pbh, _mm512_mask_reduce_pbh, _mm512_maskz_reduce_pbh):
2647 Rename B argument to __B.
2648 * config/i386/avx10_2bf16intrin.h (_mm256_roundscale_pbh,
2649 _mm256_mask_roundscale_pbh, _mm256_maskz_roundscale_pbh,
2650 _mm_roundscale_pbh, _mm_mask_roundscale_pbh, _mm_maskz_roundscale_pbh,
2651 _mm256_reduce_pbh, _mm256_mask_reduce_pbh, _mm256_maskz_reduce_pbh,
2652 _mm_reduce_pbh, _mm_mask_reduce_pbh, _mm_maskz_reduce_pbh): Likewise.
2653
2654 2026-01-16 Alice Carlotti <[email protected]>
2655
2656 PR target/123460
2657 * config.gcc: Accept hyphens in aarch64 --with-arch extensions.
2658
2659 2026-01-16 Vladimir N. Makarov <[email protected]>
2660
2661 PR rtl-optimization/123121
2662 * lra-remat.cc (bad_for_rematerialization_p): Consider div/mod ops.
2663 (operand_to_remat): Exclude rematerialization of insns with
2664 multiple sets.
2665
2666 2026-01-16 Tejas Belagod <[email protected]>
2667
2668 PR middle-end/123392
2669 * cfgexpand.cc (expand_debug_expr): Handle variable-length initializer
2670 for CONSTRUCTOR.
2671
2672 2026-01-16 Lulu Cheng <[email protected]>
2673
2674 Backported from master:
2675 2026-01-16 Lulu Cheng <[email protected]>
2676
2677 PR target/123521
2678 * config/loongarch/loongarch.cc
2679 (loongarch_expand_vector_init_same): Fixed a bug in the
2680 vector initialization section..
2681
2682 2026-01-15 DengJianbo <[email protected]>
2683
2684 Backported from master:
2685 2026-01-15 DengJianbo <[email protected]>
2686
2687 * config/loongarch/loongarch.md: Remove condition in template
2688 movdi_symbolic_off64.
2689
2690 2026-01-14 David Malcolm <[email protected]>
2691
2692 PR diagnostics/120063
2693 * diagnostic-format-sarif.cc (maybe_get_sarif_level): Handle
2694 DK_FATAL as SARIF level "error".
2695 * diagnostic.cc (diagnostic_context::execution_failed_p): Also
2696 treat any DK_FATAL errors as leading to failed execution.
2697
2698 2026-01-13 Andrew MacLeod <[email protected]>
2699
2700 PR tree-optimization/123300
2701 * gimple-range-gori.cc (gori_map::exports_and_deps): New.
2702 * gimple-range-gori.h (exports_and_deps): New prototype.
2703 (FOR_EACH_GORI_EXPORT_AND_DEP_NAME): New macro.
2704 * tree-vrp.cc (remove_unreachable:remove_unreachable): Initialize
2705 m_tmp bitmap.
2706 (remove_unreachable:~remove_unreachable): Dispose of m_tmp bitmap.
2707 (remove_unreachable:fully_replaceable): Move from static function
2708 and check reachability of exports and dependencies.
2709
2710 2026-01-13 liuhongt <[email protected]>
2711
2712 Backported from master:
2713 2026-01-13 liuhongt <[email protected]>
2714
2715 PR target/123484
2716 * config/i386/mmx.md (divv4hf3): Add TARGET_MMX_WITH_SSE to
2717 the condition.
2718 (cmlav4hf4): Ditto.
2719 (cmla_conjv4hf4): Ditto.
2720 (cmulv4hf3): Ditto.
2721 (cmul_conjv4hf3): Ditto.
2722
2723 2026-01-09 Richard Biener <[email protected]>
2724
2725 Backported from master:
2726 2025-12-08 Richard Biener <[email protected]>
2727
2728 PR tree-optimization/123040
2729 * tree-ssa-sccvn.cc (vn_nary_build_or_lookup_1): Only insert
2730 nary results.
2731
2732 2026-01-06 Eric Botcazou <[email protected]>
2733
2734 PR target/121192
2735 * expr.cc (store_constructor) <VECTOR_TYPE>: Disable the special
2736 trick for uniform boolean vectors with integer modes and single-bit
2737 mask entries on big-endian platforms.
2738
2739 2026-01-02 Jeff Law <[email protected]>
2740
2741 PR target/121485
2742 * config/riscv/vector-crypto.md: Fix mode attribute for the
2743 lmul extending Zvkned patterns.
2744
2745 2025-12-22 Tamar Christina <[email protected]>
2746
2747 PR tree-optimization/122868
2748 * tree-vect-stmts.cc (vectorizable_load): Don't hoist loop invariant
2749 conditional loads unless in header.
2750
2751 2025-12-19 Yury Khrustalev <[email protected]>
2752
2753 Backported from master:
2754 2025-11-24 Yury Khrustalev <[email protected]>
2755
2756 PR debug/121964
2757 * dwarf2out.cc (gen_array_type_die): Add DW_AT_bit_stride attribute
2758 for array types based on element type bit precision for integer and
2759 boolean element types.
2760
2761 2025-12-19 Yury Khrustalev <[email protected]>
2762
2763 Backported from master:
2764 2025-11-24 Yury Khrustalev <[email protected]>
2765
2766 * machmode.def (VECTOR_BOOL_MODE): Fix comment.
2767
2768 2025-12-16 Robin Dapp <[email protected]>
2769
2770 Backported from master:
2771 2025-12-09 Robin Dapp <[email protected]>
2772
2773 PR target/123022
2774 * config/riscv/vector.md: Add mode_idx attribute.
2775
2776 2025-12-11 Vladimir N. Makarov <[email protected]>
2777
2778 PR rtl-optimization/122215
2779 * ira-color.cc (improve_allocation): Use register filter for all
2780 loop on hard regs.
2781
2782 2025-12-10 Robin Dapp <[email protected]>
2783
2784 Backported from master:
2785 2025-12-01 Robin Dapp <[email protected]>
2786
2787 PR target/122652
2788 * config/riscv/riscv-vsetvl.cc: Add nullptr check.
2789
2790 2025-12-09 Robin Dapp <[email protected]>
2791
2792 Backported from master:
2793 2025-12-02 Robin Dapp <[email protected]>
2794
2795 PR target/122656
2796 * config/riscv/riscv-vector-builtins-bases.cc: Use
2797 use_contiguous_load for vlsegff.
2798 * config/riscv/riscv-vector-builtins.cc (function_expander::use_exact_insn):
2799 Only add rounding mode operand if insn requires it and number of
2800 arguments is < required.
2801 (function_expander::use_ternop_insn): Ditto.
2802 (function_expander::use_widen_ternop_insn): Ditto.
2803 * config/riscv/vector.md: Use vector-mode source operand.
2804
2805 2025-12-08 Jakub Jelinek <[email protected]>
2806
2807 Backported from master:
2808 2025-12-04 Jakub Jelinek <[email protected]>
2809
2810 PR target/122991
2811 * config/aarch64/aarch64.md (crc_rev<ALLI:mode><ALLX:mode>4,
2812 crc<ALLI:mode><ALLX:mode>4): Use const_int_operand predicate for
2813 the last operand.
2814
2815 2025-12-08 Jakub Jelinek <[email protected]>
2816
2817 Backported from master:
2818 2025-12-03 Jakub Jelinek <[email protected]>
2819
2820 PR tree-optimization/122943
2821 * tree-switch-conversion.cc (switch_conversion::build_arrays):
2822 Always gimplify subtraction in utype without cast to tidxtype
2823 and set m_arr_ref_first to the last stmt of that. Remove unneeded
2824 update_stmt call. If tidxtype is not utype, append after that stmt
2825 cast to tidxtype and set tidx to the lhs of that cast.
2826
2827 2025-12-08 Jakub Jelinek <[email protected]>
2828
2829 Backported from master:
2830 2025-11-25 Jakub Jelinek <[email protected]>
2831
2832 PR middle-end/120052
2833 * gimplify.cc (gimplify_call_expr): For IFN_UBSAN_BOUNDS
2834 call with integer_onep first argument, change that argument
2835 to 0 and add TYPE_MAX_VALUE (TYPE_DOMAIN (arr_type)) to
2836 3rd argument before gimplification.
2837
2838 2025-12-08 Jakub Jelinek <[email protected]>
2839
2840 Backported from master:
2841 2025-11-25 Jakub Jelinek <[email protected]>
2842
2843 PR middle-end/120564
2844 * omp-expand.cc (extract_omp_for_update_vars): Use build2 instead of
2845 fold_build2 to build argument for gimple_build_cond_empty.
2846
2847 2025-12-01 Christophe Lyon <[email protected]>
2848
2849 Backported from master:
2850 2025-12-01 Christophe Lyon <[email protected]>
2851
2852 PR target/122858
2853 * config/arm/constraints.md (Ph): New constraint.
2854 * config/arm/mve.md (mve_asrl_imm, mve_lsll_imm): Fix constraints
2855 of operand 1 and handle 32 as special shift amount.
2856
2857 2025-12-01 Richard Earnshaw <[email protected]>
2858
2859 Backported from master:
2860 2025-05-07 Richard Earnshaw <[email protected]>
2861
2862 PR target/110796
2863 PR target/118446
2864 * config/arm/arm.h (REVERSIBLE_CC_MODE): FP modes are only
2865 reversible if flag_finite_math_only.
2866 * config/arm/arm.cc (arm_select_cc_mode): Return CCFPmode for all
2867 FP comparisons if flag_finite_math_only.
2868
2869 2025-11-28 Avinash Jayakar <[email protected]>
2870
2871 PR tree-optimization/122126
2872 * gimple-isel.cc (gimple_expand_vec_set_extract_expr): Add bound check.
2873
2874 2025-11-27 Georg-Johann Lay <[email protected]>
2875
2876 Backported from master:
2877 2025-11-27 Georg-Johann Lay <[email protected]>
2878
2879 * config/avr/avr-mcus.def (AVR_MCUS): Add avr16la14, avr16la20,
2880 avr16la28, avr16la32, avr32la14, avr32la20, avr32la28, avr32la32.
2881 * doc/avr-mmcu.texi: Rebuild.
2882
2883 2025-11-27 Richard Earnshaw <[email protected]>
2884
2885 Backported from master:
2886 2025-11-26 Richard Earnshaw <[email protected]>
2887
2888 PR target/122867
2889 * config/arm/arm.cc (arm_print_operand): Use %- to
2890 emit LOCAL_LABEL_PREFIX.
2891 (arm_print_operand_punct_valid_p): Allow %- for punct
2892 and make %_ valid for all compilation variants.
2893 * config/arm/thumb2.md (*thumb2_cbz): Handle very
2894 large branch ranges that exceed the limit of b<cond>.
2895 (*thumb2_cbnz): Likewise.
2896
2897 2025-11-24 Pan Li <[email protected]>
2898
2899 Backported from master:
2900 2025-11-20 Pan Li <[email protected]>
2901
2902 PR target/122692
2903 * config/riscv/riscv.cc (riscv_expand_ustrunc): Leverage
2904 riscv_extend_to_xmode_reg to take care of src rtx.
2905
2906 2025-11-21 Eric Botcazou <[email protected]>
2907
2908 * doc/invoke.texi (Optimize Options) <-fmalloc-dce>: Remove
2909 trailing space.
2910 (AArch64 Options) <-march>: Fix pasto.
2911
2912 2025-11-20 Richard Biener <[email protected]>
2913
2914 Backported from master:
2915 2025-10-10 Richard Biener <[email protected]>
2916
2917 PR tree-optimization/122225
2918 * tree-cfg.cc (verify_gimple_return): Look at DECL_RESULT
2919 for DECL_BY_REFERENCE.
2920
2921 2025-11-20 Richard Biener <[email protected]>
2922
2923 Backported from master:
2924 2025-10-30 Richard Biener <[email protected]>
2925
2926 * config/i386/i386-options.cc (ix86_option_override_internal):
2927 Fix check during opts->x_ix86_move_max initialization.
2928
2929 2025-11-20 Xi Ruoyao <[email protected]>
2930
2931 Backported from master:
2932 2025-11-20 Xi Ruoyao <[email protected]>
2933
2934 PR target/122695
2935 * config/loongarch/loongarch.cc (loongarch_expand_vec_perm_1):
2936 Simplify and fix the logic preventing the xvshuf.* unpredictable
2937 behavior.
2938
2939 2025-11-18 Andre Vieira <[email protected]>
2940
2941 Backported from master:
2942 2025-11-12 Andre Vieira <[email protected]>
2943
2944 PR target/122539
2945 * config/arm/arm.cc (comp_not_to_clear_mask_str_un): Skip partial
2946 register clearing logic for FP_REGS.
2947 (compute_not_to_clear_mask): Likewise.
2948
2949 2025-11-18 Andre Vieira <[email protected]>
2950
2951 Backported from master:
2952 2025-11-12 Andre Vieira <[email protected]>
2953
2954 PR target/122539
2955 * config/arm/arm.cc (comp_not_to_clear_mask_str_un): Update
2956 not_to_clear_reg_mask for union members.
2957
2958 2025-11-18 Siddhesh Poyarekar <[email protected]>
2959
2960 Backported from master:
2961 2025-11-04 Siddhesh Poyarekar <[email protected]>
2962
2963 PR lto/122515
2964 * lto-wrapper.cc (debug_objcopy): Set type of INOFF to int64_t.
2965 (run_gcc): Set type of FILE_OFFSET to int64_t.
2966
2967 2025-11-18 Tamar Christina <[email protected]>
2968
2969 Backported from master:
2970 2025-10-31 Tamar Christina <[email protected]>
2971
2972 PR target/121853
2973 * config/aarch64/aarch64-simd.md (extendbfsf2): New.
2974
2975 2025-11-18 Andrew Pinski <[email protected]>
2976
2977 Backported from master:
2978 2025-09-02 Andrew Pinski <[email protected]>
2979
2980 PR tree-optimization/121776
2981 * tree-ssa-strlen.cc (strlen_pass::handle_builtin_memcmp): Create
2982 unaligned types if the alignment of the pointers is less
2983 than the alignment of the new type.
2984
2985 2025-11-17 Andrew Pinski <[email protected]>
2986
2987 Backported from master:
2988 2025-08-18 Andrew Pinski <[email protected]>
2989
2990 PR middle-end/121581
2991 * doc/extend.texi (__builtin_object_size): Fix example.
2992
2993 2025-11-17 Jeff Law <[email protected]>
2994
2995 PR rtl-optimization/122627
2996 * lra-constraints.cc (update_equiv): Remove patch from last week
2997 related to pr122321.
2998 (lra_constraints): Expand the equivalence array after eliminations
2999 are complete.
3000
3001 2025-11-16 Lewis Hyatt <[email protected]>
3002
3003 * diagnostic.cc (num_digits): Change argument type from `int' to
3004 `uint64_t'.
3005 (test_num_digits): Add test for 64-bit argument.
3006 * diagnostic.h (num_digits): Adjust prototype.
3007 * input.cc (write_digit): Accept argument in range 0-9 instead of
3008 an arbitrary int.
3009 (write_digit_row): Adjust to change in write_digit().
3010
3011 2025-11-14 Jeff Law <[email protected]>
3012
3013 Backported from master:
3014 2025-08-14 Jeff Law <[email protected]>
3015
3016 PR target/119275
3017 * config/riscv/riscv.cc (riscv_legitimize_move): Avoid calling
3018 gen_lowpart for cases where it'll fail. Just use standard expander
3019 paths for those cases.
3020
3021 2025-11-14 Uros Bizjak <[email protected]>
3022
3023 Backported from master:
3024 2025-11-14 Uros Bizjak <[email protected]>
3025
3026 * config/i386/i386.md (*sub<mode>_3):
3027 Remove 'i' from operand 0 constraint.
3028
3029 2025-11-14 Christophe Lyon <[email protected]>
3030
3031 PR target/122216
3032 * config/arm/arm-mve-builtins-base.cc (enum which_scalar_shift): New.
3033 (mve_function_scalar_shift): New.
3034 (asrl, lsll): New.
3035 * config/arm/arm-mve-builtins-base.def (asrl, lsll): New.
3036 * config/arm/arm-mve-builtins-base.h (asrl, lsll): New.
3037 * config/arm/arm_mve.h (asrl): Delete.
3038 (lsll): Delete.
3039 (__arm_asrl): Delete.
3040 (__arm_lsll): Delete.
3041
3042 2025-11-14 Christophe Lyon <[email protected]>
3043
3044 PR target/122216
3045 * config/arm/arm-mve-builtins-shapes.cc (scalar_s64_shift): New.
3046 (scalar_u64_shift): New.
3047 * config/arm/arm-mve-builtins-shapes.h: Likewise.
3048
3049 2025-11-14 Christophe Lyon <[email protected]>
3050
3051 PR target/122216
3052 * config/arm/arm.md (ashldi3, ashrdi3): Force shift amount into
3053 QImode.
3054 * config/arm/constraints.md: Fix comment, Pg is valid in Thumb-2
3055 state only.
3056 * config/arm/mve.md (mve_asrl): Handle various shift amount ranges.
3057 (mve_asrl_imm, mve_asrl_internal): New patterns.
3058 (mve_lsll): Handle various shift amount ranges.
3059 (mve_lsll_imm, mve_lsll_internal): New patterns.
3060
3061 2025-11-14 Christophe Lyon <[email protected]>
3062
3063 PR target/122216
3064 * config/arm/thumb2.md (thumb2_asrl, thumb2_lsll, thumb2_lsrl):
3065 Move to ...
3066 * config/arm/mve.md (mve_asrl, mve_lsll, mve_lsrl): ... here. Use
3067 match_operand instead of match_dup.
3068 * config/arm/arm.md (ashldi3, ashrdi3, lshrdi3): Remove useless
3069 copy. Update for new prototype.
3070
3071 2025-11-12 Christophe Lyon <[email protected]>
3072
3073 Backported from master:
3074 2025-11-12 Christophe Lyon <[email protected]>
3075 Richard Earnshaw <[email protected]>
3076
3077 PR target/122175
3078 * config/arm/iterators.md (asm_const_size): New mode attr.
3079 * config/arm/mve.md (@mve_<mve_insn>q_n_<supf><mode>): Use it.
3080
3081 2025-11-12 Christophe Lyon <[email protected]>
3082
3083 PR target/122189
3084 * config/arm/iterators.md (VxCIQ_carry, VxCIQ_M_carry, VxCQ_carry)
3085 (VxCQ_M_carry): New iterators.
3086 * config/arm/mve.md (get_fpscr_nzcvqc, set_fpscr_nzcvqc): Use
3087 unspec instead of unspec_volatile.
3088 (vadciq, vadciq_m, vadcq, vadcq_m): Use vfpcc in operation. Use a
3089 different unspec code for carry calcultation.
3090 * config/arm/unspecs.md (VADCQ_U_carry, VADCQ_M_U_carry)
3091 (VADCQ_S_carry, VADCQ_M_S_carry, VSBCIQ_U_carry ,VSBCIQ_S_carry
3092 ,VSBCIQ_M_U_carry ,VSBCIQ_M_S_carry ,VSBCQ_U_carry ,VSBCQ_S_carry
3093 ,VSBCQ_M_U_carry ,VSBCQ_M_S_carry ,VADCIQ_U_carry
3094 ,VADCIQ_M_U_carry ,VADCIQ_S_carry ,VADCIQ_M_S_carry): New unspec
3095 codes.
3096
3097 2025-11-12 Hu, Lin1 <[email protected]>
3098
3099 Backported from master:
3100 2025-11-12 Hu, Lin1 <[email protected]>
3101
3102 PR target/122446
3103 * config/i386/amxavx512intrin.h (_tile_cvtrowps2bf16hi_internal):
3104 Input register name by inline asm %c[...], and remove %% before tmm
3105 from intel side.
3106 (_tile_cvtrowps2bf16li_internal): Ditto.
3107 * config/i386/amxbf16intrin.h (_tile_dpbf16ps_internal): Ditto
3108 * config/i386/amxcomplexintrin.h (_tile_cmmimfp16ps_internal): Ditto
3109 (_tile_cmmrlfp16ps_internal): Ditto
3110 (_tile_cmmimfp16ps): Ditto
3111 (_tile_cmmrlfp16ps): Ditto
3112 * config/i386/amxfp16intrin.h (_tile_dpfp16ps_internal): Ditto
3113 (_tile_dpfp16ps): Ditto
3114 * config/i386/amxfp8intrin.h (_tile_dpbf8ps_internal): Ditto
3115 (_tile_dpbhf8ps_internal): Ditto
3116 (_tile_dphbf8ps_internal): Ditto
3117 (_tile_dphf8ps_internal): Ditto
3118 (_tile_dpbf8ps): Ditto
3119 (_tile_dpbhf8ps): Ditto
3120 (_tile_dphbf8ps): Ditto
3121 (_tile_dphf8ps): Ditto
3122 * config/i386/amxint8intrin.h (_tile_int8_dp_internal): Ditto
3123 * config/i386/amxmovrsintrin.h (_tile_loaddrs_internal): Ditto
3124 (_tile_loaddrst1_internal): Ditto
3125 (_tile_loaddrs): Ditto
3126 (_tile_loaddrst1): Ditto
3127 * config/i386/amxtf32intrin.h (_tile_mmultf32ps_internal): Ditto
3128 * config/i386/amxtileintrin.h (_tile_loadd): Ditto
3129 (_tile_loadd_internal): Ditto
3130 (_tile_stream_loadd): Ditto
3131 (_tile_stream_loadd_internal): Ditto
3132 (_tile_stored): Ditto
3133 (_tile_stored_internal): Ditto
3134 (_tile_zero): Ditto
3135 (_tile_zero_internal): Ditto
3136
3137 2025-11-11 Jakub Jelinek <[email protected]>
3138
3139 Backported from master:
3140 2025-11-11 Jakub Jelinek <[email protected]>
3141
3142 PR lto/122620
3143 * gimplify-me.cc (gimple_regimplify_operands): Don't try to regimplify
3144 TREE_CLOBBER on rhs of gimple_clobber_p if it has gimple_reg_type.
3145
3146 2025-11-11 Lulu Cheng <[email protected]>
3147
3148 Backported from master:
3149 2025-11-08 Lulu Cheng <[email protected]>
3150
3151 PR target/122097
3152 * config/loongarch/loongarch.cc
3153 (loongarch_const_vector_same_bytes_p): Add processing for
3154 floating-point vector data.
3155
3156 2025-11-11 Lulu Cheng <[email protected]>
3157
3158 Backported from master:
3159 2025-10-29 Lulu Cheng <[email protected]>
3160
3161 PR target/122097
3162 * config/loongarch/loongarch.cc
3163 (loongarch_const_vector_bitimm_set_p): Add support for vector float.
3164 (loongarch_const_vector_bitimm_clr_p): Likewise.
3165 (loongarch_print_operand): Likewise.
3166 * config/loongarch/simd.md (and<mode>3): Likewise.
3167
3168 2025-11-11 Lulu Cheng <[email protected]>
3169
3170 Backported from master:
3171 2025-10-29 Lulu Cheng <[email protected]>
3172
3173 * config/loongarch/lasx.md (xor<mode>3): Delete.
3174 (ior<mode>3): Delete.
3175 (and<mode>3): Delete.
3176 * config/loongarch/lsx.md (xor<mode>3): Delete.
3177 (ior<mode>3): Delete.
3178 (and<mode>3): Delete.
3179 * config/loongarch/simd.md (xor<mode>3): Define.
3180 (ior<mode>3): Likewise.
3181 (and<mode>3): Likewise.
3182
3183 2025-11-10 Richard Earnshaw <[email protected]>
3184
3185 Backported from master:
3186 2025-11-10 Richard Earnshaw <[email protected]>
3187
3188 PR target/118460
3189 * config/arm/arm.md (movhfcc): Use expandable_comparison_operator.
3190 (movsfcc, movdfcc): Likewise.
3191
3192 2025-11-10 Richard Earnshaw <[email protected]>
3193
3194 Backported from master:
3195 2025-10-15 Richard Earnshaw <[email protected]>
3196
3197 PR target/118460
3198 * config/arm/arm.cc (arm_canonicalize_comparison): For floating-
3199 point comparisons, swap the operand order if that will be more
3200 likely to produce a comparison that can be used with VSEL.
3201 (arm_validize_comparison): Make sure that HFmode comparisons
3202 are compatible with VSEL.
3203
3204 2025-11-06 Georg-Johann Lay <[email protected]>
3205
3206 Backported from master:
3207 2025-11-06 Georg-Johann Lay <[email protected]>
3208
3209 PR target/122516
3210 * config/avr/elf.h (SUPPORTS_SHF_GNU_RETAIN): Define if
3211 HAVE_GAS_SHF_GNU_RETAIN.
3212
3213 2025-11-06 Georg-Johann Lay <[email protected]>
3214
3215 Backported from master:
3216 2025-11-06 Georg-Johann Lay <[email protected]>
3217
3218 * config/avr/avr.cc (avr_output_addr_vec): Output
3219 a valid opcode prior to the first gs() label provided:
3220 - The code is compiled for an arch that has AVR-SD mcus, and
3221 - the function has a "section" attribute, and
3222 - the function has a gs() label addresses switch/case table.
3223
3224 2025-11-03 Jeff Law <[email protected]>
3225
3226 Backported from master:
3227 2025-11-01 Jeff Law <[email protected]>
3228
3229 PR rtl-optimization/122321
3230 * lra-constraints.cc (update_equiv): Make sure REGNO is in
3231 ira_reg_equiv before trying to update ira_reg_equiv.
3232
3233 2025-11-03 Andrew Pinski <[email protected]>
3234
3235 Backported from master:
3236 2025-10-26 Andrew Pinski <[email protected]>
3237
3238 PR target/122270
3239 * config/riscv/riscv-vector-builtins-bases.cc (vset::fold): Use the
3240 unshare_expr for the statement that will be added seperately rather
3241 the one which will be used for the replacement.
3242
3243 2025-11-02 Georg-Johann Lay <[email protected]>
3244
3245 Backported from master:
3246 2025-11-02 Georg-Johann Lay <[email protected]>
3247
3248 PR target/122527
3249 * config/avr/avr.cc (avr_load_libgcc_p): Return false if
3250 the address-space is not ADDR_SPACE_FLASH.
3251 (avr_out_lpm_no_lpmx [addr=REG]): Handle sizes of 3 and 4 bytes.
3252
3253 2025-11-02 Georg-Johann Lay <[email protected]>
3254
3255 Backported from master:
3256 2025-11-02 Georg-Johann Lay <[email protected]>
3257
3258 PR tree-optimization/118012
3259 PR tree-optimization/122505
3260 * config/avr/avr.md (mulpsi3): Also allow the insn condition
3261 in the case where avropt_pr118012 && !AVR_TINY.
3262 (*mulpsi3): Handle split for the !AVR_HAVE_MUL case.
3263 (*mulpsi3-nomul.libgcc_split, *mulpsi3-nomul.libgcc): New insns.
3264
3265 2025-10-31 Tamar Christina <[email protected]>
3266
3267 Backported from master:
3268 2025-10-27 Tamar Christina <[email protected]>
3269
3270 PR tree-optimization/122408
3271 * tree-vect-slp-patterns.cc (vect_validate_multiplication): Cleanup and
3272 document interface.
3273 (complex_mul_pattern::matches, complex_fms_pattern::matches): Update to
3274 new interface.
3275
3276 2025-10-31 Jinyang He <[email protected]>
3277
3278 Backported from master:
3279 2025-10-30 Jinyang He <[email protected]>
3280 Peng Fan <[email protected]>
3281
3282 * config/loongarch/loongarch.cc
3283 (loongarch_expand_conditional_move): Only allow valid binary
3284 op when optimize conditional move.
3285
3286 2025-10-30 Guo Jie <[email protected]>
3287
3288 Backported from master:
3289 2025-10-30 Guo Jie <[email protected]>
3290
3291 * config/loongarch/lasx.md (fnma<mode>4): Remove.
3292 * config/loongarch/lsx.md (fnma<mode>4): Remove.
3293 * config/loongarch/simd.md (fnma<mode>4): Simplify and correct.
3294
3295 2025-10-27 Jakub Jelinek <[email protected]>
3296
3297 PR tree-optimization/122394
3298 * tree-ssa-phiopt.cc (spaceship_replacement): Use
3299 build_debug_expr_decl instead of manually building DEBUG_EXPR_DECL
3300 and getting SET_DECL_MODE wrong.
3301
3302 2025-10-27 Jeff Law <[email protected]>
3303
3304 Backported from master:
3305 2025-10-13 Jeff Law <[email protected]>
3306
3307 PR target/120674
3308 * config/riscv/riscv.cc (riscv_dwarf_poly_indeterminite_value): Do not
3309 set FACTOR to zero, for that case use one instead.
3310
3311 2025-10-27 Tamar Christina <[email protected]>
3312
3313 Backported from master:
3314 2025-10-17 Tamar Christina <[email protected]>
3315 Jennifer Schmitz <[email protected]>
3316
3317 PR target/121604
3318 * config/aarch64/aarch64-sve-builtins-shapes.cc (apply_predication):
3319 Store gp_index.
3320 (struct pmov_to_vector_lane_def): Mark instruction as has no GP.
3321 * config/aarch64/aarch64-sve-builtins.h (function_instance::gp_value,
3322 function_instance::inactive_values, function_instance::gp_index,
3323 function_shape::has_gp_argument_p): New.
3324 * config/aarch64/aarch64-sve-builtins.cc (gimple_folder::fold_pfalse):
3325 Simplify code and use GP helpers.
3326
3327 2025-10-26 LIU Hao <[email protected]>
3328
3329 Backported from master:
3330 2025-10-26 LIU Hao <[email protected]>
3331
3332 PR target/119079
3333 * config/i386/i386.md: Use `movsxd` to perform SI-to-DI extension in Intel
3334 syntax.
3335
3336 2025-10-24 Linsen Zhou <[email protected]>
3337
3338 Backported from master:
3339 2025-10-18 Linsen Zhou <[email protected]>
3340
3341 PR tree-optimization/122012
3342 * tree-object-size.cc (check_for_plus_in_loops): Skip check
3343 for the variable offset
3344
3345 2025-10-24 H.J. Lu <[email protected]>
3346
3347 Backported from master:
3348 2025-10-20 H.J. Lu <[email protected]>
3349
3350 PR target/99930
3351 PR target/122323
3352 * config/i386/i386-expand.cc (ix86_expand_copysign): Swap
3353 operands[1] with operands[2]. Optimize copysign (x, const_double)
3354 instead of copysign (const_double, x).
3355 * config/i386/i386.md (copysign<mode>3): Swap constraints for
3356 operands[1] and operands[2].
3357
3358 2025-10-22 Haochen Jiang <[email protected]>
3359
3360 * config/i386/driver-i386.cc (host_detect_local_cpu): Correct
3361 the logic for unknown model number cpu guess value.
3362
3363 2025-10-21 Christophe Lyon <[email protected]>
3364
3365 Backported from master:
3366 2025-10-10 Christophe Lyon <[email protected]>
3367
3368 PR target/122223
3369 * config/arm/mve.md (@mve_vbicq_f<mode>): Fix operands order.
3370
3371 2025-10-21 Jennifer Schmitz <[email protected]>
3372
3373 PR target/121599
3374 * config/aarch64/aarch64-sve-builtins.cc
3375 (function_expander::use_cond_insn): Use add_fixed_operand if
3376 fallback_arg == CONST0_RTX (mode).
3377
3378 2025-10-20 Svante Signell <[email protected]>
3379
3380 Backported from master:
3381 2025-10-20 Svante Signell <[email protected]>
3382
3383 PR go/104290
3384 * config/gnu.h (OPTION_GLIBC_P, OPTION_GLIBC): Define.
3385
3386 2025-10-17 Hu, Lin1 <[email protected]>
3387
3388 PR target/122119
3389 * config/i386/amxmovrsintrin.h
3390 (_tile_loaddrs_internal): Use __PTRDIFF_TYPE__ instead of long.
3391 (_tile_loaddrst1_internal): Ditto.
3392 (_tile_2rpntlvwz0rs_internal): Ditto.
3393 (_tile_2rpntlvwz0rst1_internal): Ditto.
3394 (_tile_2rpntlvwz1rs_internal): Ditto.
3395 (_tile_2rpntlvwz1rst1_internal): Ditto.
3396
3397 2025-10-16 Ayappan Perumal <[email protected]>
3398
3399 Backported from master:
3400 2025-10-16 Ayappan Perumal <[email protected]>
3401
3402 * config/rs6000/aix.h (SUBTARGET_DRIVER_SELF_SPECS):
3403 Error out when stack-protector option is used in AIX
3404 as it is not supported on AIX
3405 Approved By: Segher Boessenkool <[email protected]>
3406
3407 2025-10-15 Alice Carlotti <[email protected]>
3408
3409 * config/aarch64/aarch64-sys-regs.def: Fix pmsdsfr_el1 encoding.
3410
3411 2025-10-15 Haochen Jiang <[email protected]>
3412
3413 * config/i386/i386.h
3414 (PTA_PANTHERLAKE): Remove PREFETCHI.
3415 (PTA_DIAMONDRAPIDS): Remove USER_MSR.
3416 * doc/invoke.texi: Correct documentation.
3417
3418 2025-10-14 Jakub Jelinek <[email protected]>
3419
3420 Backported from master:
3421 2025-10-06 Jakub Jelinek <[email protected]>
3422
3423 PR middle-end/122133
3424 * stmt.cc (resolve_asm_operand_names): Handle % and 2 letters followed
3425 by open square.
3426
3427 2025-10-14 Jakub Jelinek <[email protected]>
3428
3429 Backported from master:
3430 2025-10-04 Jakub Jelinek <[email protected]>
3431
3432 PR tree-optimization/122104
3433 * tree-ssa-math-opts.cc (maybe_optimize_guarding_check): Call
3434 reset_flow_sensitive_info_in_bb on bb when optimizing out the
3435 guarding condition.
3436
3437 2025-10-14 Haochen Jiang <[email protected]>
3438
3439 * config/i386/i386.h (PTA_DIAMONDRAPIDS): Remove AMX-TRANSPOSE.
3440 * doc/invoke.texi: Correct documentation.
3441
3442 2025-10-13 Avinash Jayakar <[email protected]>
3443
3444 PR tree-optimization/122213
3445 * match.pd: Canonicalize unsigned pow2 div only for trunk, floor and
3446 exact div.
3447
3448 2025-10-11 Robin Dapp <[email protected]>
3449
3450 Backported from master:
3451 2025-10-07 Robin Dapp <[email protected]>
3452
3453 PR target/121845
3454 * config/riscv/riscv-v.cc (shuffle_series_patterns):
3455 Modulo indices for VLA and punt when wrapping for VLS.
3456
3457 2025-10-08 Aurelien Jarno <[email protected]>
3458
3459 Backported from master:
3460 2025-10-02 Aurelien Jarno <[email protected]>
3461
3462 PR target/121652
3463 * config/riscv/riscv.md (round_pattern): special case NaN input
3464 instead of saving/restoring fflags.
3465
3466 2025-10-07 Georg-Johann Lay <[email protected]>
3467
3468 Backported from master:
3469 2025-10-07 Georg-Johann Lay <[email protected]>
3470
3471 PR target/122187
3472 * config/avr/avr.cc (avr_out_extr, avr_out_extr_not):
3473 Make a local copy of the passed rtx[] operands.
3474
3475 2025-10-03 Robin Dapp <[email protected]>
3476
3477 Backported from master:
3478 2025-09-04 Robin Dapp <[email protected]>
3479
3480 PR target/121742
3481 PR target/121780
3482 PR target/121781
3483 * config/riscv/riscv-v.cc (expand_vec_perm): Swap target and
3484 tmp_target.
3485
3486 2025-10-03 Robin Dapp <[email protected]>
3487
3488 Backported from master:
3489 2025-09-02 Robin Dapp <[email protected]>
3490
3491 PR target/121742
3492 * config/riscv/riscv-v.cc (expand_vec_perm): Use temporary if
3493 op1 and target overlap.
3494
3495 2025-10-02 Kito Cheng <[email protected]>
3496
3497 PR target/110812
3498 * config/riscv/riscv-c.cc (pragma_intrinsic_flags): Remove struct.
3499 (riscv_pragma_intrinsic_flags_pollute): Remove function.
3500 (riscv_pragma_intrinsic_flags_restore): Remove function.
3501 (riscv_pragma_intrinsic): Simplify to only call handle_pragma_vector.
3502 * config/riscv/riscv-vector-builtins.cc (pragma_intrinsic_flags):
3503 Move struct definition here from riscv-c.cc.
3504 (riscv_pragma_intrinsic_flags_pollute): Move and adapt from
3505 riscv-c.cc, add zvfbfmin, zvfhmin and vector_elen_bf_16 support.
3506 (riscv_pragma_intrinsic_flags_restore): Move from riscv-c.cc.
3507 (rvv_switcher::rvv_switcher): Add pollute_flags parameter to
3508 control flag manipulation.
3509 (rvv_switcher::~rvv_switcher): Restore flags conditionally.
3510 (register_builtin_types): Use rvv_switcher without polluting flags.
3511 (get_required_extensions): Remove function.
3512 (check_required_extensions): Simplify to only check type validity.
3513 (function_instance::function_returns_void_p): Move implementation
3514 from header.
3515 (function_builder::add_function): Register placeholder for LTO.
3516 (init_builtins): Simplify and handle LTO case.
3517 (reinit_builtins): Remove function.
3518 (handle_pragma_vector): Remove extension checking.
3519 * config/riscv/riscv-vector-builtins.h
3520 (function_instance::function_returns_void_p): Add declaration.
3521 (function_call_info::function_returns_void_p): Remove inline
3522 implementation.
3523
3524 2025-09-26 Lulu Cheng <[email protected]>
3525
3526 Backported from master:
3527 2025-09-26 Lulu Cheng <[email protected]>
3528
3529 PR target/121875
3530 * config/loongarch/loongarch.cc
3531 (loongarch_can_inline_p): New function.
3532 (TARGET_CAN_INLINE_P): Define.
3533
3534 2025-09-25 Alex Coplan <[email protected]>
3535
3536 Backported from master:
3537 2025-09-15 Alex Coplan <[email protected]>
3538
3539 PR tree-optimization/121772
3540 * match.pd: Add type check to reduc(ctor) pattern.
3541
3542 2025-09-25 Tobias Burnus <[email protected]>
3543
3544 Backported from master:
3545 2025-09-18 Tobias Burnus <[email protected]>
3546 Sandra Loosemore <[email protected]>
3547
3548 PR middle-end/121922
3549 * omp-general.cc (omp_dynamic_cond): Use 'unshare_expr' for
3550 the user condition.
3551
3552 2025-09-24 Jakub Jelinek <[email protected]>
3553
3554 Backported from master:
3555 2025-09-18 Jakub Jelinek <[email protected]>
3556
3557 PR c++/121977
3558 * omp-low.cc (lower_omp_regimplify_operands_p): If maybe_lookup_decl
3559 returns NULL, use maybe_lookup_decl_in_outer_ctx as fallback.
3560
3561 2025-09-24 Jakub Jelinek <[email protected]>
3562
3563 Backported from master:
3564 2025-09-16 Jakub Jelinek <[email protected]>
3565
3566 * doc/invoke.texi (Wimplicit-fallthrough=): Document that also C23
3567 provides a standard way to suppress the warning with [[fallthrough]];.
3568
3569 2025-09-24 Jakub Jelinek <[email protected]>
3570
3571 Backported from master:
3572 2025-09-10 Jakub Jelinek <[email protected]>
3573
3574 PR middle-end/121828
3575 * gimple-lower-bitint.cc (gimple_lower_bitint): For REALPART_EXPR
3576 consumed by store in the same bb and with REALPART_EXPR from
3577 optimizable_arith_overflow, don't add REALPART_EXPR lhs to
3578 the m_names bitmap only if the cast from IMAGPART_EXPR doesn't
3579 appear in between the REALPART_EXPR and the store.
3580
3581 2025-09-24 Jakub Jelinek <[email protected]>
3582
3583 Backported from master:
3584 2025-09-10 Jakub Jelinek <[email protected]>
3585
3586 PR middle-end/121831
3587 * expr.cc (raw_data_cst_read_str): New function.
3588 (store_constructor) <case ARRAY_TYPE>: Handle RAW_DATA_CST.
3589
3590 2025-09-24 Jakub Jelinek <[email protected]>
3591
3592 Backported from master:
3593 2025-08-25 Jakub Jelinek <[email protected]>
3594
3595 PR middle-end/121453
3596 * omp-expand.cc (expand_omp_for_init_counts): Clear fd->loop.n2
3597 before first zero count check if zero_iter1_bb is non-NULL upon
3598 entry and fd->loop.n2 has not been written yet.
3599
3600 2025-09-24 Richard Biener <[email protected]>
3601
3602 Backported from master:
3603 2025-09-22 Richard Biener <[email protected]>
3604
3605 PR tree-optimization/122016
3606 * tree-ssa-sccvn.cc (vn_nary_simplify): Do not use the
3607 simplified expression when it references abnormals.
3608
3609 2025-09-24 Richard Biener <[email protected]>
3610
3611 Backported from master:
3612 2025-09-11 Richard Biener <[email protected]>
3613
3614 PR tree-optimization/121870
3615 * tree-ssa-propagate.cc
3616 (substitute_and_fold_engine::substitute_and_fold): Skip
3617 removed stmts from noreturn fixup.
3618
3619 2025-09-24 Richard Biener <[email protected]>
3620
3621 Backported from master:
3622 2025-09-08 Richard Biener <[email protected]>
3623
3624 PR tree-optimization/107997
3625 PR tree-optimization/121844
3626 * tree-ssa-loop-ivopts.cc (allow_ip_end_pos_p): Do not allow
3627 IP_END for latches ending with a control stmt.
3628 (create_new_iv): Do not split the latch edge, instead assert
3629 that's not necessary.
3630
3631 2025-09-24 Richard Biener <[email protected]>
3632
3633 Backported from master:
3634 2025-08-26 Richard Biener <[email protected]>
3635
3636 PR tree-optimization/121659
3637 * tree-vect-slp.cc (vect_build_slp_tree_1): Do not allow
3638 matching up comparison operators by swapping if that would
3639 disturb STMT_VINFO_REDUC_IDX. Make sure to only
3640 actually mark operands for swapping when there was a
3641 mismatch and we're not processing the first stmt.
3642
3643 2025-09-24 Richard Biener <[email protected]>
3644
3645 Backported from master:
3646 2025-08-19 Richard Biener <[email protected]>
3647
3648 PR tree-optimization/121527
3649 * tree-sra.cc (build_access_from_expr_1): Do not strip an
3650 outer VIEW_CONVERT_EXPR as it's relevant for the size of
3651 the access.
3652 (get_access_for_expr): Likewise.
3653
3654 2025-09-24 Richard Biener <[email protected]>
3655
3656 Backported from master:
3657 2025-08-05 Richard Biener <[email protected]>
3658
3659 PR tree-optimization/121370
3660 * tree-scalar-evolution.cc (scev_dfs::add_to_evolution_1):
3661 Avoid UB integer overflow in accumulating CHREC_RIGHT.
3662
3663 2025-09-20 Michael Eager <[email protected]>
3664
3665 PR target/118280
3666 * config/microblaze/iterators.md: New.
3667 * config/microblaze/microblaze-protos.h: Add
3668 microblaze_subword_address.
3669 * config/microblaze/microblaze.cc: Ditto.
3670 * config/microblaze/microblaze.md: constants: Add UNSPECV_CAS_BOOL,
3671 UNSPECV_CAS_MEM, UNSPECV_CAS_VAL, UNSPECV_ATOMIC_FETCH_OP
3672 type: add atomic
3673 * config/microblaze/sync.md: Add atomic_fetch_<atomic_optab>si
3674 atomic_test_and_set
3675
3676 2025-09-18 hongtao.liu <[email protected]>
3677
3678 Backported from master:
3679 2025-09-18 hongtao.liu <[email protected]>
3680
3681 * config/i386/x86-tune.def (X86_TUNE_AVX512_MOVE_BY_PIECES):
3682 Remove SPR/GNR/DMR.
3683 (X86_TUNE_AVX512_STORE_BY_PIECES): Ditto.
3684
3685 2025-09-16 Jeff Law <[email protected]>
3686
3687 Backported from master:
3688 2025-09-12 Jeff Law <[email protected]>
3689
3690 * lra-constraints.cc (get_equiv): Bounds check before accessing
3691 data in ira_reg_equiv.
3692
3693 2025-09-16 Jennifer Schmitz <[email protected]>
3694
3695 PR target/121602
3696 * config/aarch64/aarch64-sve-builtins.cc
3697 (gimple_folder::fold_active_lanes_to): Add force_vector
3698 statement.
3699
3700 2025-09-16 Andre Vieira <[email protected]>
3701
3702 Backported from master:
3703 2025-08-11 Andre Vieira <[email protected]>
3704
3705 PR target/121464
3706 * config/arm/arm.md (arm_<mrrc>, arm_<mcrr>): Fix operand check.
3707
3708 2025-09-15 Kyrylo Tkachov <[email protected]>
3709
3710 Backported from master:
3711 2025-09-03 Kyrylo Tkachov <[email protected]>
3712
3713 PR target/121749
3714 * config/aarch64/aarch64-simd.md (aarch64_<shrn_op>shrn_n<mode>):
3715 Use aarch64_simd_shift_imm_offset_<vn_mode> instead of
3716 aarch64_simd_shift_imm_offset_<ve_mode> predicate.
3717 (aarch64_<shrn_op>shrn_n<mode> VQN define_expand): Likewise.
3718 (*aarch64_<shrn_op>rshrn_n<mode>_insn): Likewise.
3719 (aarch64_<shrn_op>rshrn_n<mode>): Likewise.
3720 (aarch64_<shrn_op>rshrn_n<mode> VQN define_expand): Likewise.
3721 (aarch64_sqshrun_n<mode>_insn): Likewise.
3722 (aarch64_sqshrun_n<mode>): Likewise.
3723 (aarch64_sqshrun_n<mode> VQN define_expand): Likewise.
3724 (aarch64_sqrshrun_n<mode>_insn): Likewise.
3725 (aarch64_sqrshrun_n<mode>): Likewise.
3726 (aarch64_sqrshrun_n<mode>): Likewise.
3727 * config/aarch64/iterators.md (vn_mode): Handle DI, SI, HI modes.
3728
3729 2025-09-15 Georg-Johann Lay <[email protected]>
3730
3731 Backported from master:
3732 2025-09-15 Georg-Johann Lay <[email protected]>
3733
3734 * config/avr/avr-mcus.def: Add avr32eb14, avr32eb20,
3735 avr32eb28, avr32eb32.
3736 * doc/avr-mmcu.texi: Rebuild.
3737
3738 2025-09-15 Xi Ruoyao <[email protected]>
3739
3740 Backported from master:
3741 2025-09-15 Xi Ruoyao <[email protected]>
3742
3743 PR target/121906
3744 * config/loongarch/loongarch.md (*bstrins_<mode>_for_ior_mask):
3745 Always create a new pseudo for the input register of the bstrins
3746 instruction.
3747
3748 2025-09-11 Richard Sandiford <[email protected]>
3749
3750 PR rtl-optimization/121757
3751 * rtl-ssa/accesses.h (clobber_group::lookup_clobber): New member
3752 function.
3753 * rtl-ssa/accesses.cc (clobber_group::lookup_clobber): Likewise.
3754 (clobber_group::prev_clobber, clobber_group::next_clobber)
3755 (function_info::add_clobber): Use it.
3756
3757 2025-09-10 Georg-Johann Lay <[email protected]>
3758
3759 Backported from master:
3760 2025-09-10 Georg-Johann Lay <[email protected]>
3761
3762 PR target/81540
3763 PR target/49857
3764 * common/config/avr/avr-common.cc: Disable -ftree-switch-conversion.
3765
3766 2025-09-08 Robin Dapp <[email protected]>
3767
3768 Backported from master:
3769 2025-09-05 Robin Dapp <[email protected]>
3770
3771 PR target/121510
3772 * config/riscv/riscv.cc (riscv_legitimize_move): Check if we can
3773 vec_extract.
3774
3775 2025-09-07 Georg-Johann Lay <[email protected]>
3776
3777 Backported from master:
3778 2025-09-07 Georg-Johann Lay <[email protected]>
3779
3780 PR target/121794
3781 * config/avr/avr.md (cmpqi3): Use cpi R,0 if possible.
3782
3783 2025-09-05 Georg-Johann Lay <[email protected]>
3784
3785 Backported from master:
3786 2025-09-05 Georg-Johann Lay <[email protected]>
3787
3788 PR target/121794
3789 * config/avr/avr.cc (avr_out_compare): Only use zero_reg
3790 when there is no other sequence of the same length.
3791 (avr_out_plus_ext): Same.
3792 (avr_out_plus_1): Same.
3793
3794 2025-09-02 Jeff Law <[email protected]>
3795
3796 Backported from master:
3797 2025-08-29 Jeff Law <[email protected]>
3798
3799 PR target/121548
3800 * config/riscv/riscv-avlprop.cc (get_insn_vtype_mode): Assert
3801 MODE_IDX is smaller than the number of operands.
3802 (simplify_replace_vlmax_avl): Similarly.
3803 (pass_avlprop::get_vlmax_ta_preferred_avl): Similarly.
3804 * config/riscv/vector.md: Override merge_op_idx computation
3805 for simple moves, just like is done for avl_type_idx and mode_idx.
3806
3807 2025-09-01 Mark Harmstone <[email protected]>
3808
3809 * dwarf2codeview.cc (get_type_num_array_type): Don't try to
3810 encode non-C-style arrays.
3811
3812 2025-08-31 Benjamin Wu <[email protected]>
3813
3814 Backported from master:
3815 2025-07-13 Benjamin Wu <[email protected]>
3816
3817 * gimple.h (GTMA_DOES_GO_IRREVOCABLE): Fix typo.
3818
3819 2025-08-25 Xi Ruoyao <[email protected]>
3820
3821 Backported from master:
3822 2025-08-25 Xi Ruoyao <[email protected]>
3823
3824 PR target/121634
3825 * config/loongarch/simd.md (simd_maddw_evod_<mode>_<su>): Use
3826 WVEC_HALF instead of WVEC for the mode of the sign_extend for
3827 the rhs of multiplication.
3828
3829 2025-08-22 Sebastian Huber <[email protected]>
3830
3831 Backported from master:
3832 2025-08-22 Sebastian Huber <[email protected]>
3833
3834 * config/riscv/t-rtems: Add -mstrict-align multilibs for
3835 targets without support for misaligned access in hardware.
3836
3837 2025-08-20 Georg-Johann Lay <[email protected]>
3838
3839 Backported from master:
3840 2025-08-20 Georg-Johann Lay <[email protected]>
3841
3842 PR target/121608
3843 * config/avr/specs.h (LINK_RELAX_SPEC): Wrap in %{!r...}.
3844
3845 2025-08-20 Vineet Gupta <[email protected]>
3846
3847 PR target/121534
3848 * config/riscv/riscv.md (round_pattern): save/restore fflags.
3849
3850 2025-08-18 Richard Sandiford <[email protected]>
3851
3852 PR target/121118
3853 * config/aarch64/aarch64.cc (aarch64_sve_move_pred_via_while):
3854 Return a VNx16BI predicate.
3855
3856 2025-08-18 Richard Sandiford <[email protected]>
3857
3858 Backported from master:
3859 2025-08-12 Richard Sandiford <[email protected]>
3860
3861 PR rtl-optimization/121253
3862 * fwprop.cc (forward_propagate_into): Don't propagate asm defs.
3863
3864 2025-08-15 Alex Coplan <[email protected]>
3865
3866 Backported from master:
3867 2025-08-08 Alex Coplan <[email protected]>
3868
3869 PR target/120986
3870 * config/aarch64/aarch64-sve-builtins.cc
3871 (function_expander::expand): Relax fpm_t assert to allow
3872 modeless const_ints.
3873
3874 2025-08-15 Alex Coplan <[email protected]>
3875
3876 Backported from master:
3877 2025-08-08 Alex Coplan <[email protected]>
3878
3879 PR target/120986
3880 * config/aarch64/aarch64-sve2.md (@aarch64_sve_dot<mode>):
3881 Switch mode iterator from SVE_FULL_HSF to new iterator;
3882 remove insn predicate as this is now taken care of by conditions
3883 in the mode iterator.
3884 (@aarch64_sve_dot_lane<mode>): Likewise.
3885 * config/aarch64/iterators.md (SVE_FULL_HSF_FP8_FDOT): New.
3886
3887 2025-08-15 Pengfei Li <[email protected]>
3888
3889 PR target/121449
3890 * config/aarch64/aarch64-sve.md
3891 (mask_gather_load<mode><v_int_container>): Use vg<Vesize>
3892 constraints for alternatives with immediate offset.
3893 (mask_scatter_store<mode><v_int_container>): Likewise.
3894
3895 2025-08-15 Lulu Cheng <[email protected]>
3896
3897 Backported from master:
3898 2025-08-15 Lulu Cheng <[email protected]>
3899
3900 PR target/121542
3901 * config/loongarch/loongarch.cc
3902 (loongarch_vector_costs::add_stmt_cost): When using vectype,
3903 first determine whether it is NULL.
3904
3905 2025-08-14 Richard Sandiford <[email protected]>
3906
3907 PR target/121414
3908 * config/aarch64/aarch64.cc (aarch64_is_variant_pcs): New function,
3909 split out from...
3910 (aarch64_asm_output_variant_pcs): ...here. Handle various types
3911 of SME function type.
3912
3913 2025-08-14 Richard Sandiford <[email protected]>
3914
3915 PR target/121294
3916 * config/aarch64/aarch64.md (UNSPEC_REV_PRED): New unspec.
3917 * config/aarch64/aarch64-sve.md (@aarch64_sve_rev<mode>_acle)
3918 (*aarch64_sve_rev<mode>_acle): New patterns.
3919 * config/aarch64/aarch64-sve-builtins-base.cc
3920 (svrev_impl::expand): Use the new patterns for boolean svrev.
3921
3922 2025-08-14 Richard Sandiford <[email protected]>
3923
3924 PR target/121294
3925 * config/aarch64/iterators.md (UNSPEC_TRN1_CONV): Delete.
3926 (UNSPEC_PERMUTE_PRED): New unspec.
3927 * config/aarch64/aarch64-sve.md (@aarch64_sve_trn1_conv<mode>):
3928 Replace with...
3929 (@aarch64_sve_<perm_insn><mode>_acle)
3930 (*aarch64_sve_<perm_insn><mode>_acle): ...these new patterns.
3931 * config/aarch64/aarch64.cc (aarch64_expand_sve_const_pred_trn):
3932 Update accordingly.
3933 * config/aarch64/aarch64-sve-builtins-functions.h
3934 (binary_permute::expand): Use the new _acle patterns for
3935 predicate operations.
3936
3937 2025-08-14 Richard Sandiford <[email protected]>
3938
3939 PR rtl-optimization/120718
3940 * simplify-rtx.cc (simplify_context::simplify_gen_subreg):
3941 Remove MODE_COMPOSITE_P condition.
3942
3943 2025-08-14 Vladimir N. Makarov <[email protected]>
3944
3945 PR target/121007
3946 * lra-constraints.cc (process_address_1): When changing base reg
3947 on a reg of the base class, fall back to reload of whole inner address.
3948 (process_address): Constrain the iteration number.
3949
3950 2025-08-14 Andrew Pinski <[email protected]>
3951
3952 Backported from master:
3953 2025-06-22 Andrew Pinski <[email protected]>
3954
3955 PR target/119830
3956 * config/riscv/riscv.cc (riscv_build_integer_1): Make arithmetic in bclr case
3957 clean for 32 bit hosts.
3958
3959 2025-08-14 H.J. Lu <[email protected]>
3960
3961 Backported from master:
3962 2025-07-28 H.J. Lu <[email protected]>
3963
3964 PR target/121208
3965 * config/i386/i386.cc (ix86_tls_get_addr): Issue an error for
3966 -mtls-dialect=gnu with no_caller_saved_registers attribute and
3967 suggest -mtls-dialect=gnu2.
3968
3969 2025-08-13 Richard Sandiford <[email protected]>
3970
3971 Backported from master:
3972 2025-07-17 Richard Sandiford <[email protected]>
3973 Yury Khrustalev <[email protected]>
3974
3975 * doc/sourcebuild.texi (aarch64_sme_hw): Document.
3976
3977 2025-08-13 Lulu Cheng <[email protected]>
3978
3979 Backported from master:
3980 2025-08-13 Lulu Cheng <[email protected]>
3981
3982 PR target/120476
3983 * config/loongarch/loongarch.cc
3984 (loongarch_compute_pressure_classes): New function.
3985 (TARGET_COMPUTE_PRESSURE_CLASSES): Define.
3986
3987 2025-08-12 mengqinggang <[email protected]>
3988
3989 Backported from master:
3990 2025-08-12 mengqinggang <[email protected]>
3991
3992 * config/loongarch/loongarch-def.h (ABI_BASE_LP64D): New macro.
3993 (ABI_BASE_LP64F): New macro.
3994 (ABI_BASE_LP64S): New macro.
3995 (N_ABI_BASE_TYPES): New macro.
3996
3997 2025-08-10 Xi Ruoyao <[email protected]>
3998
3999 Backported from master:
4000 2025-07-12 Xi Ruoyao <[email protected]>
4001
4002 PR rtl-optimization/120983
4003 * lra-constraints.cc (process_alt_operands): Allow reloading
4004 user hard registers unless the insn is an asm.
4005
4006 2025-08-08 Jakub Jelinek <[email protected]>
4007
4008 Backported from master:
4009 2025-08-08 Jakub Jelinek <[email protected]>
4010
4011 PR middle-end/121389
4012 * tree-tailcall.cc (find_tail_calls): For finally_tmp.N
4013 handle not just GIMPLE_CONDs with EQ_EXPR/NE_EXPR and only
4014 values 0 and 1, but arbitrary non-negative values, arbitrary
4015 comparisons in conditions and also GIMPLE_SWITCH next to
4016 GIMPLE_CONDs.
4017
4018 2025-08-08 Jakub Jelinek <[email protected]>
4019
4020 Backported from master:
4021 2025-08-06 Jakub Jelinek <[email protected]>
4022
4023 PR tree-optimization/121413
4024 * gimple-lower-bitint.cc (abi_limb_prec): New variable
4025 (bitint_precision_kind): Initialize it.
4026 (gimple_lower_bitint): Clear it at the start. For
4027 min_prec > limb_prec descreased precision vars for
4028 INTEGER_CST PHI arguments ensure min_prec is either
4029 prec or multiple of abi_limb_prec.
4030
4031 2025-08-08 Jakub Jelinek <[email protected]>
4032
4033 Backported from master:
4034 2025-08-06 Jakub Jelinek <[email protected]>
4035
4036 PR tree-optimization/121127
4037 * gimple-lower-bitint.cc (bitint_large_huge::handle_operand_addr): For
4038 uninitialized SSA_NAME, set *prec_stored to 0 rather than *prec.
4039 Handle that case in narrowing casts. If prec_stored is non-NULL,
4040 set *prec_stored to prec_stored_val.
4041
4042 2025-08-08 Release Manager
4043
4044 * GCC 15.2.0 released.
4045
4046 2025-08-07 Uros Bizjak <[email protected]>
4047
4048 Backported from master:
4049 2025-08-06 Uros Bizjak <[email protected]>
4050
4051 PR target/96226
4052 * config/i386/predicates.md (and_operator): New operator.
4053 * config/i386/i386.md (splitter after *<rotate_insn><mode>3_mask):
4054 Use and_operator to match AND RTX and use its mode
4055 in the split pattern.
4056
4057 2025-08-01 Richard Earnshaw <[email protected]>
4058
4059 Backported from master:
4060 2025-05-19 Richard Earnshaw <[email protected]>
4061
4062 PR target/120351
4063 * config/arm/predicates.md (mem_noofs_operand): Also check the op
4064 is a valid memory_operand.
4065
4066 2025-08-01 Richard Biener <[email protected]>
4067
4068 Backported from master:
4069 2025-07-31 Richard Biener <[email protected]>
4070
4071 PR tree-optimization/121323
4072 * tree-ssa-alias.cc (ao_ref_init_from_ptr_and_range): Check
4073 the pointer offset fits in a HWI when represented in bits.
4074
4075 2025-08-01 Richard Biener <[email protected]>
4076
4077 Backported from master:
4078 2025-07-31 Richard Biener <[email protected]>
4079
4080 PR tree-optimization/121320
4081 * tree-ssa-sccvn.cc (ao_ref_init_from_vn_reference): Convert
4082 op->off to poly_offset_int before multiplying by
4083 BITS_PER_UNIT.
4084
4085 2025-08-01 Jakub Jelinek <[email protected]>
4086
4087 Backported from master:
4088 2025-08-01 Jakub Jelinek <[email protected]>
4089
4090 PR middle-end/121322
4091 * gimple-ssa-store-merging.cc (find_bswap_or_nop): Return NULL if
4092 count is 0.
4093
4094 2025-07-31 Georg-Johann Lay <[email protected]>
4095
4096 Backported from master:
4097 2025-07-31 Georg-Johann Lay <[email protected]>
4098
4099 PR rtl-optimization/121340
4100 * config/avr/avr.opt (-mfuse-move2): New option.
4101 * config/avr/avr-passes.def (avr_pass_2moves): Insert after combine.
4102 * config/avr/avr-passes.cc (make_avr_pass_2moves): New function.
4103 (pass_data avr_pass_data_2moves): New static variable.
4104 (avr_pass_2moves): New rtl_opt_pass.
4105 * config/avr/avr-protos.h (make_avr_pass_2moves): New proto.
4106 * common/config/avr/avr-common.cc
4107 (default_options avr_option_optimization_table) <-mfuse-move2>:
4108 Set for -O1 and higher.
4109 * doc/invoke.texi (AVR Options) <-mfuse-move2>: Document.
4110 * config/avr/avr.opt.urls (-mfuse-move2): Add url.
4111
4112 2025-07-31 Georg-Johann Lay <[email protected]>
4113
4114 Backported from master:
4115 2025-07-31 Georg-Johann Lay <[email protected]>
4116
4117 * config/avr/avr.cc (avr_output_addr_vec) <labl>: Asm out its .type.
4118
4119 2025-07-31 Spencer Abson <[email protected]>
4120
4121 Backported from master:
4122 2025-07-31 Spencer Abson <[email protected]>
4123
4124 PR target/121028
4125 * config/aarch64/aarch64-sme.md (aarch64_smstart_sm): Use the .inst
4126 directive if !TARGET_SME.
4127 (aarch64_smstop_sm): Likewise.
4128
4129 2025-07-31 Richard Biener <[email protected]>
4130
4131 PR tree-optimization/121256
4132 * tree-vect-loop.cc (vectorizable_recurr): Handle the case
4133 of a NULL SLP node.
4134
4135 2025-07-31 Andreas Schwab <[email protected]>
4136
4137 Backported from master:
4138 2025-07-21 Andreas Schwab <[email protected]>
4139
4140 PR target/121121
4141 * config/riscv/riscv.cc (riscv_allocate_and_probe_stack_space):
4142 Use temp2 instead of temp1 for the CFA note.
4143
4144 2025-07-31 Jakub Jelinek <[email protected]>
4145
4146 Backported from master:
4147 2025-07-31 Jakub Jelinek <[email protected]>
4148
4149 PR tree-optimization/121264
4150 * machmode.h (get_best_mode): Change type of first 2 arguments
4151 from int to HOST_WIDE_INT.
4152 * stor-layout.cc (get_best_mode): Likewise.
4153
4154 2025-07-31 Jan Hubicka <[email protected]>
4155
4156 Backported from master:
4157 2025-07-11 Jan Hubicka <[email protected]>
4158
4159 PR ipa/114790
4160 * cgraph.cc (cgraph_update_edges_for_call_stmt_node): Resolve devirtualization
4161 if call statement was optimized out or turned to direct call.
4162
4163 2025-07-31 Richard Biener <[email protected]>
4164
4165 Backported from master:
4166 2025-07-28 Richard Biener <[email protected]>
4167
4168 PR tree-optimization/121256
4169 * tree-vect-loop.cc (vectorizable_recurr): Build a correct
4170 initialization vector for SLP_TREE_LANES > 1.
4171
4172 2025-07-31 Richard Biener <[email protected]>
4173
4174 Backported from master:
4175 2025-07-30 Richard Biener <[email protected]>
4176
4177 PR tree-optimization/121130
4178 * tree-vect-stmts.cc (vectorizable_call): Bail out for
4179 .MASK_CALL.
4180
4181 2025-07-31 Pengfei Li <[email protected]>
4182
4183 Backported from master:
4184 2025-07-30 Pengfei Li <[email protected]>
4185
4186 PR tree-optimization/121190
4187 * tree-vect-data-refs.cc (vect_enhance_data_refs_alignment):
4188 Increase alignment requirement for speculative loads.
4189
4190 2025-07-31 H.J. Lu <[email protected]>
4191
4192 Backported from master:
4193 2025-07-30 H.J. Lu <[email protected]>
4194
4195 PR target/120427
4196 * config/i386/i386.md (peephole2): Transform "movq $-1,reg" to
4197 "pushq $-1; popq reg" for -Oz if reg is a legacy integer register.
4198
4199 2025-07-31 liuhongt <[email protected]>
4200
4201 Backported from master:
4202 2025-07-30 liuhongt <[email protected]>
4203
4204 PR target/121274
4205 * config/i386/sse.md (*vec_concatv2di_0): Add a splitter
4206 before it.
4207
4208 2025-07-30 Jennifer Schmitz <[email protected]>
4209 Dhruv Chawla <[email protected]>
4210
4211 * config/aarch64/aarch64-cores.def (olympus): Use olympus tuning
4212 model.
4213 * config/aarch64/aarch64.cc: Include olympus.h.
4214 * config/aarch64/tuning_models/olympus.h: New file.
4215
4216 2025-07-29 Francois-Xavier Coudert <[email protected]>
4217
4218 Backported from master:
4219 2025-07-14 François-Xavier Coudert <[email protected]>
4220
4221 PR target/120645
4222 * config/darwin-driver.cc: Account for latest macOS numbering
4223 scheme.
4224
4225 2025-07-29 Martin Jambor <[email protected]>
4226
4227 Backported from master:
4228 2025-07-23 Martin Jambor <[email protected]>
4229
4230 PR tree-optimization/119085
4231 * tree-sra.cc (sort_and_splice_var_accesses): Prevent total
4232 scalarization if two incompatible aggregates access the same place.
4233
4234 2025-07-29 Jakub Jelinek <[email protected]>
4235
4236 Backported from master:
4237 2025-07-29 Jakub Jelinek <[email protected]>
4238
4239 PR middle-end/121159
4240 * calls.cc (can_implement_as_sibling_call_p): Don't reject declared
4241 noreturn functions in musttail calls.
4242
4243 2025-07-29 H.J. Lu <[email protected]>
4244
4245 Backported from master:
4246 2025-06-19 H.J. Lu <[email protected]>
4247
4248 PR target/120427
4249 * config/i386/i386.md (*mov<mode>_and): Changed to
4250 define_insn_and_split. Split it to "mov $0,mem" if not -Oz.
4251 (*mov<mode>_or): Changed to define_insn_and_split. Split it
4252 to "mov $-1,mem" if not -Oz.
4253 (peephole2): Don't transform "mov $-1,reg" to "push $-1; pop reg"
4254 for -Oz since it will be transformed to "or $-1,reg".
4255
4256 2025-07-28 Georg-Johann Lay <[email protected]>
4257
4258 Backported from master:
4259 2025-07-28 Georg-Johann Lay <[email protected]>
4260
4261 PR target/121277
4262 * config/avr/avr.cc (avr_addr_space_convert): When converting
4263 from generic AS to __flashx, don't set bit 23.
4264 (avr_convert_to_type): Don't -Waddr-space-convert when NULL
4265 is converted to __flashx or to __flash.
4266
4267 2025-07-28 Xi Ruoyao <[email protected]>
4268
4269 Backported from master:
4270 2025-07-17 Xi Ruoyao <[email protected]>
4271
4272 PR target/121064
4273 * config/loongarch/lsx.md (lsx_vshuf_<lsxfmt_f>): Add '@' to
4274 generate a mode-aware helper. Use <VIMODE> as the mode of the
4275 operand 1 (selector).
4276 * config/loongarch/lasx.md (lasx_xvshuf_<lasxfmt_f>): Likewise.
4277 * config/loongarch/loongarch.cc
4278 (loongarch_try_expand_lsx_vshuf_const): Create a new pseudo for
4279 the selector. Use the mode-aware helper to simplify the code.
4280 (loongarch_expand_vec_perm_const): Likewise.
4281
4282 2025-07-27 Alexey Merzlyakov <[email protected]>
4283
4284 Backported from master:
4285 2025-06-30 Alexey Merzlyakov <[email protected]>
4286
4287 PR target/120714
4288 * config/riscv/riscv.cc (riscv_allocate_and_probe_stack_space):
4289 Fix SP-addresses in REG_CFA_DEF_CFA notes for stack-clash case.
4290
4291 2025-07-26 Andrew Pinski <[email protected]>
4292
4293 Backported from master:
4294 2025-07-17 Andrew Pinski <[email protected]>
4295
4296 PR middle-end/121095
4297 * gcse.cc (execute_hardreg_pre): Skip if the hardreg which is never live.
4298
4299 2025-07-26 Andrew Pinski <[email protected]>
4300
4301 Backported from master:
4302 2025-07-23 Andrew Pinski <[email protected]>
4303
4304 PR target/120119
4305 * config/aarch64/cortex-a57-fma-steering.cc (func_fma_steering::analyze):
4306 Skip if renaming fails.
4307
4308 2025-07-24 Richard Biener <[email protected]>
4309
4310 Backported from master:
4311 2025-07-22 Richard Biener <[email protected]>
4312
4313 PR tree-optimization/121202
4314 * tree-vect-slp.cc (vect_schedule_slp_node): Do not take
4315 an out-of-region stmt as "last".
4316
4317 2025-07-23 Martin Jambor <[email protected]>
4318
4319 Backported from master:
4320 2025-07-18 Martin Jambor <[email protected]>
4321
4322 PR tree-optimization/117423
4323 * tree-sra.cc (analyze_access_subtree): Fix computation of grp_covered
4324 flag.
4325
4326 2025-07-22 Tobias Burnus <[email protected]>
4327
4328 Backported from master:
4329 2025-06-17 Tobias Burnus <[email protected]>
4330
4331 * omp-offload.cc (omp_discover_declare_target_tgt_fn_r): Also
4332 walk external functions that are declare inline (and have a
4333 DECL_SAVED_TREE).
4334
4335 2025-07-22 Thomas Schwinge <[email protected]>
4336
4337 Backported from master:
4338 2025-06-04 Thomas Schwinge <[email protected]>
4339
4340 * config/nvptx/mkoffload.cc (process): Use an 'auto_vec' for
4341 'file_idx'.
4342
4343 2025-07-22 Thomas Schwinge <[email protected]>
4344
4345 Backported from master:
4346 2025-05-30 Thomas Schwinge <[email protected]>
4347 Richard Biener <[email protected]>
4348
4349 PR middle-end/119835
4350 * tree-nrv.cc (pass_nrv::execute): Defuse 'RESULT_DECL' check.
4351
4352 2025-07-22 Thomas Schwinge <[email protected]>
4353
4354 Backported from master:
4355 2025-05-19 Thomas Schwinge <[email protected]>
4356
4357 PR lto/120308
4358 * lto-streamer-out.cc (hash_tree): Don't handle 'TYPE_EMPTY_P' for
4359 'lto_stream_offload_p'.
4360 * tree-streamer-in.cc (unpack_ts_type_common_value_fields):
4361 Likewise.
4362 * tree-streamer-out.cc (pack_ts_type_common_value_fields):
4363 Likewise.
4364
4365 2025-07-22 Thomas Schwinge <[email protected]>
4366
4367 Backported from master:
4368 2025-05-12 Thomas Schwinge <[email protected]>
4369
4370 * config/nvptx/nvptx-sm.def: Add '61'.
4371 * config/nvptx/nvptx-gen.h: Regenerate.
4372 * config/nvptx/nvptx-gen.opt: Likewise.
4373 * config/nvptx/nvptx.cc (first_ptx_version_supporting_sm): Adjust.
4374 * config/nvptx/nvptx.opt (-march-map=sm_61, -march-map=sm_62):
4375 Likewise.
4376 * config.gcc: Likewise.
4377 * doc/invoke.texi (Nvidia PTX Options): Document '-march=sm_61'.
4378 * config/nvptx/gen-multilib-matches-tests: Extend.
4379
4380 2025-07-22 Thomas Schwinge <[email protected]>
4381
4382 Backported from master:
4383 2025-05-12 Thomas Schwinge <[email protected]>
4384
4385 * config/nvptx/nvptx-opts.h (enum ptx_version): Add
4386 'PTX_VERSION_5_0'.
4387 * config/nvptx/nvptx.cc (ptx_version_to_string)
4388 (ptx_version_to_number): Adjust.
4389 * config/nvptx/nvptx.h (TARGET_PTX_5_0): New.
4390 * config/nvptx/nvptx.opt (Enum(ptx_version)): Add 'EnumValue'
4391 '5.0' for 'PTX_VERSION_5_0'.
4392 * doc/invoke.texi (Nvidia PTX Options): Document '-mptx=5.0'.
4393
4394 2025-07-22 Andrew Pinski <[email protected]>
4395
4396 Backported from master:
4397 2025-04-25 Andrew Pinski <[email protected]>
4398 Thomas Schwinge <[email protected]>
4399
4400 PR target/119737
4401 * config/gcn/gcn.cc (gcn_hsa_declare_function_name): Properly
4402 switch sections.
4403
4404 2025-07-21 Richard Sandiford <[email protected]>
4405
4406 Backported from master:
4407 2025-07-11 Richard Sandiford <[email protected]>
4408
4409 PR target/121027
4410 * config/aarch64/aarch64.cc (aarch64_evpc_sve_tbl): Punt on 2-input
4411 operations that can be handled by vec_perm.
4412
4413 2025-07-21 Richard Sandiford <[email protected]>
4414
4415 Backported from master:
4416 2025-07-10 Richard Sandiford <[email protected]>
4417
4418 * config/aarch64/aarch64-sve2.md (aarch64_gather_ld1q): Replace with...
4419 (@aarch64_gather_ld1q<mode>): ...this, parameterizing based on mode.
4420 * config/aarch64/aarch64-sve-builtins-sve2.cc
4421 (svld1q_gather_impl::expand): Update accordingly.
4422 (svst1q_scatter_impl::expand): Use aarch64_sve_reinterpret
4423 instead of force_lowpart_subreg.
4424
4425 2025-07-21 Richard Sandiford <[email protected]>
4426
4427 Backported from master:
4428 2025-07-10 Richard Sandiford <[email protected]>
4429
4430 * doc/sourcebuild.texi (aarch64_sve2_hw, aarch64_sve2p1_hw): Document.
4431 * config/aarch64/aarch64.cc (aarch64_evpc_hvla): Extend to
4432 BYTES_BIG_ENDIAN.
4433
4434 2025-07-21 Richard Sandiford <[email protected]>
4435
4436 Backported from master:
4437 2025-07-09 Richard Sandiford <[email protected]>
4438
4439 * config/aarch64/aarch64.cc (aarch64_simd_valid_imm): Account
4440 for FLOAT_WORDS_BIG_ENDIAN when building a floating-point value.
4441
4442 2025-07-21 Richard Sandiford <[email protected]>
4443
4444 Backported from master:
4445 2025-07-09 Richard Sandiford <[email protected]>
4446
4447 * config/aarch64/aarch64.cc (aarch64_sve_index_series_p): New
4448 function, split out from...
4449 (aarch64_simd_valid_imm): ...here. Account for the different
4450 SVE and Advanced SIMD element orders on big-endian targets.
4451 Check each vector in a structure mode.
4452
4453 2025-07-21 Richard Sandiford <[email protected]>
4454
4455 Backported from master:
4456 2025-07-09 Richard Sandiford <[email protected]>
4457
4458 * read-rtl-function.cc (function_reader::read_rtx_operand_r): Use
4459 hard_regno_nregs to work out REG_NREGS for hard registers.
4460
4461 2025-07-21 Richard Sandiford <[email protected]>
4462
4463 Backported from master:
4464 2025-07-09 Richard Sandiford <[email protected]>
4465
4466 * ext-dce.cc (ext_dce_process_uses): Apply is_constant directly
4467 to the subreg_lsb.
4468
4469 2025-07-21 Richard Sandiford <[email protected]>
4470
4471 Backported from master:
4472 2025-07-07 Richard Sandiford <[email protected]>
4473
4474 PR target/118891
4475 * config/aarch64/aarch64.cc (aarch64_expand_vector_init): Fix the
4476 ZIP1 operand order for big-endian targets.
4477
4478 2025-07-21 Richard Sandiford <[email protected]>
4479
4480 Backported from master:
4481 2025-07-07 Richard Sandiford <[email protected]>
4482
4483 * config/aarch64/aarch64-sve.md (@aarch64_sve_set_neonq_<mode>):
4484 Use %Z instead of lowpart_subreg. Tweak formatting.
4485
4486 2025-07-21 Richard Sandiford <[email protected]>
4487
4488 Backported from master:
4489 2025-07-07 Richard Sandiford <[email protected]>
4490
4491 * ext-dce.cc (ext_dce_process_uses): Apply is_constant directly
4492 to the subreg_lsb.
4493
4494 2025-07-21 Richard Sandiford <[email protected]>
4495
4496 Backported from master:
4497 2025-07-07 Richard Sandiford <[email protected]>
4498
4499 PR tree-optimization/118891
4500 * tree-vect-stmts.cc (supportable_widening_operation): Swap the
4501 hi and lo internal functions on big-endian targets.
4502
4503 2025-07-18 Hans-Peter Nilsson <[email protected]>
4504 Pietro Monteiro <[email protected]>
4505
4506 PR middle-end/120935
4507 * config/mmix/mmix.h (MAX_FIXED_MODE_SIZE): Define.
4508
4509 2025-07-18 Richard Biener <[email protected]>
4510
4511 Backported from master:
4512 2025-07-18 Richard Biener <[email protected]>
4513
4514 PR tree-optimization/120924
4515 * params.opt (uninit-max-chain-len): Up from 8 to 12.
4516
4517 2025-07-18 Richard Biener <[email protected]>
4518
4519 Backported from master:
4520 2025-07-15 Richard Biener <[email protected]>
4521 Richard Sandiford <[email protected]>
4522
4523 PR tree-optimization/121059
4524 * tree-vect-stmts.cc (vectorizable_operation): Query
4525 scalar_cond_masked_set with the correct number of masks.
4526
4527 2025-07-18 Richard Biener <[email protected]>
4528
4529 Backported from master:
4530 2025-07-16 Richard Biener <[email protected]>
4531
4532 PR tree-optimization/121049
4533 * internal-fn.h (widening_evenodd_fn_p): Declare.
4534 * internal-fn.cc (widening_evenodd_fn_p): New function.
4535 * tree-vect-stmts.cc (vectorizable_conversion): When using
4536 an even/odd widening function disable loop masking.
4537
4538 2025-07-18 Richard Biener <[email protected]>
4539
4540 Backported from master:
4541 2025-07-17 Richard Biener <[email protected]>
4542
4543 PR tree-optimization/121035
4544 * tree-ssa-pre.cc (find_or_generate_expression): Handle
4545 values without expression.
4546
4547 2025-07-18 Jakub Jelinek <[email protected]>
4548
4549 Backported from master:
4550 2025-07-18 Jakub Jelinek <[email protected]>
4551
4552 PR tree-optimization/121131
4553 * gimple-fold.cc (fold_nonarray_ctor_reference): Use
4554 TREE_INT_CST_LOW (TYPE_SIZE ()) instead of
4555 GET_MODE_BITSIZE (SCALAR_INT_TYPE_MODE ()) for BLKmode BITINT_TYPEs.
4556 Don't compute encoding_size at all for little endian targets.
4557
4558 2025-07-17 Xi Ruoyao <[email protected]>
4559
4560 Backported from master:
4561 2025-07-04 Xi Ruoyao <[email protected]>
4562
4563 PR target/120807
4564 * config/loongarch/loongarch.md (crc_combine): Avoid nested
4565 subreg.
4566
4567 2025-07-16 Haochen Jiang <[email protected]>
4568
4569 * common/config/i386/i386-common.cc
4570 (OPTION_MASK_ISA2_AMX_AVX512_SET): Do not set AVX10.2.
4571 (OPTION_MASK_ISA2_AVX10_2_UNSET): Remove AMX-AVX512 unset.
4572 (OPTION_MASK_ISA2_AVX512F_UNSET): Unset AMX-AVX512.
4573 (ix86_handle_option): Imply AVX512F for AMX-AVX512.
4574
4575 2025-07-15 Andrew Pinski <[email protected]>
4576
4577 Backported from master:
4578 2025-07-07 Andrew Pinski <[email protected]>
4579
4580 PR middle-end/120709
4581 * builtins.cc (expand_builtin_crc_table_based): Error out
4582 instead of asserting the 3rd argument is an integer constant.
4583 * internal-fn.cc (expand_crc_optab_fn): Likewise.
4584 * doc/extend.texi (crc): Document requirement of the poly argument
4585 being a constant.
4586
4587 2025-07-14 Kyrylo Tkachov <[email protected]>
4588
4589 Backported from master:
4590 2025-07-10 Kyrylo Tkachov <[email protected]>
4591
4592 PR target/120999
4593 * config/aarch64/aarch64-sve2.md (*aarch64_sve2_nor<mode>):
4594 Adjust movprfx alternative.
4595
4596 2025-07-14 Richard Earnshaw <[email protected]>
4597
4598 Backported from master:
4599 2025-05-08 Richard Earnshaw <[email protected]>
4600
4601 * config/aarch64/aarch64-sve.md (@aarch64_pred_<optab><mode>): Move
4602 commutative marker to the cons specification.
4603 (add<mode>3): Likewise.
4604 (@aarch64_pred_<su>abd<mode>): Likewise.
4605 (@aarch64_pred_<optab><mode>): Likewise.
4606 (*cond_<optab><mode>_z): Likewise.
4607 (<optab><mode>3): Likewise.
4608 (@aarch64_pred_<optab><mode>): Likewise.
4609 (*aarch64_pred_abd<mode>_relaxed): Likewise.
4610 (*aarch64_pred_abd<mode>_strict): Likewise.
4611 (@aarch64_pred_<optab><mode>): Likewise.
4612 (@aarch64_pred_<optab><mode>): Likewise.
4613 (@aarch64_pred_fma<mode>): Likewise.
4614 (@aarch64_pred_fnma<mode>): Likewise.
4615 (@aarch64_pred_<optab><mode>): Likewise.
4616 * config/aarch64/aarch64-sve2.md (@aarch64_sve_<su>clamp<mode>): Move
4617 commutative marker to the cons specification.
4618 (*aarch64_sve_<su>clamp<mode>_x): Likewise.
4619 (@aarch64_sve_fclamp<mode>): Likewise.
4620 (*aarch64_sve_fclamp<mode>_x): Likewise.
4621 (*aarch64_sve2_nor<mode>): Likewise.
4622 (*aarch64_sve2_nand<mode>): Likewise.
4623 (*aarch64_pred_faminmax_fused): Likewise.
4624 * config/aarch64/aarch64.md (*loadwb_pre_pair_<ldst_sz>): Move the
4625 early-clobber marker to the relevant alternative.
4626 (*storewb_pre_pair_<ldst_sz>): Likewise.
4627 (*add<mode>3_aarch64): Move commutative marker to the cons
4628 specification.
4629 (*addsi3_aarch64_uxtw): Likewise.
4630 (*add<mode>3_poly_1): Likewise.
4631 (add<mode>3_compare0): Likewise.
4632 (*addsi3_compare0_uxtw): Likewise.
4633 (*add<mode>3nr_compare0): Likewise.
4634 (<optab><mode>3): Likewise.
4635 (*<optab>si3_uxtw): Likewise.
4636 (*and<mode>3_compare0): Likewise.
4637 (*andsi3_compare0_uxtw): Likewise.
4638 (@aarch64_and<mode>3nr_compare0): Likewise.
4639
4640 2025-07-14 Jeff Law <[email protected]>
4641
4642 Backported from master:
4643 2025-06-30 Jeff Law <[email protected]>
4644
4645 PR rtl-optimization/120242
4646 PR rtl-optimization/120627
4647 PR rtl-optimization/120736
4648 PR rtl-optimization/120813
4649 * ext-dce.cc (ext_dce_process_uses): Remove some cases where we
4650 unnecessarily expanded live sets for promoted subregs.
4651 (expand_changed_pseudos): New function.
4652 (reset_subreg_promoted_p): Use it.
4653
4654 2025-07-14 Vineet Gupta <[email protected]>
4655
4656 Backported from master:
4657 2025-07-04 Vineet Gupta <[email protected]>
4658
4659 PR target/118241
4660 * config/riscv/riscv.md (prefetch): Add alternative "r".
4661
4662 2025-07-14 Vineet Gupta <[email protected]>
4663
4664 Backported from master:
4665 2025-07-04 Vineet Gupta <[email protected]>
4666
4667 * config/riscv/predicates.md (prefetch_operand): mack 5 bits.
4668
4669 2025-07-14 Jeff Law <[email protected]>
4670
4671 Backported from master:
4672 2025-06-24 Jeff Law <[email protected]>
4673
4674 PR target/118241
4675 * config/riscv/predicates.md: Fix comment typo in recent change.
4676
4677 2025-07-14 Jeff Law <[email protected]>
4678
4679 Backported from master:
4680 2025-06-21 Jeff Law <[email protected]>
4681
4682 PR target/118241
4683 * config/riscv/predicates.md (prefetch_operand): New predicate.
4684 * config/riscv/constraints.md (Q): New constraint.
4685 * config/riscv/riscv.md (prefetch): Use new predicate and constraint.
4686 (riscv_prefetchi_<mode>): Similarly.
4687
4688 2025-07-14 H.J. Lu <[email protected]>
4689
4690 Backported from master:
4691 2025-07-03 H.J. Lu <[email protected]>
4692
4693 PR target/120908
4694 * config/i386/i386.cc (legitimize_tls_address): Pass RDI to
4695 gen_tls_local_dynamic_64.
4696 * config/i386/i386.md (*tls_global_dynamic_64_largepic): Add
4697 RDI clobber and use it to generate LEA.
4698 (*tls_local_dynamic_64_<mode>): Likewise.
4699 (*tls_local_dynamic_base_64_largepic): Likewise.
4700 (@tls_local_dynamic_64_<mode>): Add a clobber.
4701
4702 2025-07-14 H.J. Lu <[email protected]>
4703
4704 Backported from master:
4705 2025-07-02 H.J. Lu <[email protected]>
4706
4707 PR target/120908
4708 * config/i386/i386.cc (legitimize_tls_address): Pass RDI to
4709 gen_tls_global_dynamic_64.
4710 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Add RDI
4711 clobber and use it to generate LEA.
4712 (@tls_global_dynamic_64_<mode>): Add a clobber.
4713
4714 2025-07-14 Haochen Jiang <[email protected]>
4715
4716 * config/i386/i386.h (PTA_PANTHERLAKE): Revmoe KL and WIDEKL.
4717 (PTA_CLEARWATERFOREST): Ditto.
4718 * doc/invoke.texi: Revise documentation.
4719
4720 2025-07-13 Alexey Merzlyakov <[email protected]>
4721
4722 Backported from master:
4723 2025-07-02 Alexey Merzlyakov <[email protected]>
4724
4725 PR target/120356
4726 * config/riscv/riscv-v.cc
4727 (expand_const_vector_interleaved_stepped_npatterns):
4728 Fix ASHIFT to LSHIFTRT insn.
4729
4730 2025-07-13 Andreas Schwab <[email protected]>
4731
4732 Backported from master:
4733 2025-07-08 Andreas Schwab <[email protected]>
4734
4735 PR target/120995
4736 * config/riscv/sync.md (zacas_atomic_cas_value_strong<mode>):
4737 Allow op3 to be zero.
4738
4739 2025-07-11 Jakub Jelinek <[email protected]>
4740
4741 Backported from master:
4742 2025-07-11 Jakub Jelinek <[email protected]>
4743 Martin Jambor <[email protected]>
4744
4745 PR ipa/121023
4746 * ipa-fnsummary.cc (compute_fn_summary): Disallow signature changes
4747 on cfun->has_musttail functions.
4748
4749 2025-07-10 Siddhesh Poyarekar <[email protected]>
4750
4751 Backported from master:
4752 2025-07-03 Siddhesh Poyarekar <[email protected]>
4753
4754 PR tree-optimization/120780
4755 * tree-object-size.cc (inner_at_offset,
4756 get_wholesize_for_memref): New functions.
4757 (addr_object_size): Call get_wholesize_for_memref.
4758
4759 2025-07-10 Kyrylo Tkachov <[email protected]>
4760
4761 Backported from master:
4762 2025-06-30 Kyrylo Tkachov <[email protected]>
4763
4764 * config/aarch64/aarch64-cores.def (gb10): New entry.
4765 * config/aarch64/aarch64-tune.md: Regenerate.
4766 * doc/invoke.texi (AArch64 Options): Document the above.
4767
4768 2025-07-09 Richard Biener <[email protected]>
4769
4770 Backported from master:
4771 2025-07-08 Richard Biener <[email protected]>
4772
4773 PR tree-optimization/120358
4774 * tree-ssa-structalias.cc (get_constraint_for_1): Adjust
4775 pruning of sub-variables according to the imprecise
4776 known start offset.
4777
4778 2025-07-09 Richard Biener <[email protected]>
4779
4780 Backported from master:
4781 2025-07-03 Richard Biener <[email protected]>
4782
4783 PR tree-optimization/118669
4784 * tree-vect-stmts.cc (vectorizable_load): Emit loads
4785 with proper (element) alignment.
4786 (vectorizable_store): Likewise.
4787
4788 2025-07-09 Richard Biener <[email protected]>
4789
4790 Backported from master:
4791 2025-07-07 Richard Biener <[email protected]>
4792
4793 PR tree-optimization/120817
4794 * tree-ssa-dse.cc (initialize_ao_ref_for_dse): Use
4795 ao_ref_init_from_ptr_and_range with unknown size for
4796 .MASK_STORE and .MASK_LEN_STORE.
4797
4798 2025-07-09 Richard Biener <[email protected]>
4799
4800 Backported from master:
4801 2025-07-04 Richard Biener <[email protected]>
4802
4803 PR tree-optimization/120927
4804 * tree-vect-data-refs.cc (vect_compute_data_ref_alignment):
4805 Do not force a DRs base alignment when analyzing an
4806 epilog loop. Check whether the step preserves alignment
4807 for all VFs possibly involved sofar.
4808
4809 2025-07-09 Richard Biener <[email protected]>
4810
4811 Backported from master:
4812 2025-07-04 Richard Biener <[email protected]>
4813
4814 PR tree-optimization/120944
4815 * tree-ssa-sccvn.cc (vn_reference_lookup_3): Gate optimizations
4816 invalid when volatile is involved.
4817
4818 2025-07-06 Georg-Johann Lay <[email protected]>
4819
4820 Backported from master:
4821 2025-07-06 Georg-Johann Lay <[email protected]>
4822
4823 * config/avr/avr-mcus.def: -mmcu= takes lower case MCU names.
4824 * doc/avr-mmcu.texi: Rebuild.
4825
4826 2025-07-06 Georg-Johann Lay <[email protected]>
4827
4828 Backported from master:
4829 2025-07-06 Georg-Johann Lay <[email protected]>
4830
4831 * config/avr/avr-mcus.def (avr32da28S, avr32da32S, avr32da48S)
4832 (avr64da28S, avr64da32S, avr64da48S avr64da64S)
4833 (avr128da28S, avr128da32S, avr128da48S, avr128da64S): Add devices.
4834 * doc/avr-mmcu.texi: Rebuild.
4835
4836 2025-07-03 Andrew Pinski <[email protected]>
4837
4838 Backported from master:
4839 2025-05-21 Andrew Pinski <[email protected]>
4840
4841 PR middle-end/120369
4842 * tree-complex.cc (gimple_expand_builtin_cabs): Return early
4843 if the LHS of cabs is null.
4844
4845 2025-07-03 Sam James <[email protected]>
4846
4847 Backported from master:
4848 2025-06-23 Sam James <[email protected]>
4849 Jeff Law <[email protected]>
4850
4851 PR rtl-optimization/120795
4852 * ext-dce.cc (ext_dce_try_optimize_insn): Enable rescan in
4853 remove_reg_equal_equiv_notes call.
4854
4855 2025-07-03 Jeff Law <[email protected]>
4856
4857 Backported from master:
4858 2025-06-22 Jeff Law <[email protected]>
4859
4860 PR rtl-optimization/120550
4861 * ext-dce.cc (ext_dce_try_optimize_insn): Drop REG_EQUAL/REG_EQUIV
4862 notes on modified insns.
4863
4864 2025-07-02 Richard Biener <[email protected]>
4865
4866 Backported from master:
4867 2025-07-02 Richard Biener <[email protected]>
4868
4869 PR tree-optimization/120927
4870 * tree-vect-loop.cc (vect_analyze_loop): Stop querying
4871 further epilogues after one with partial vectors.
4872
4873 2025-07-02 Haochen Jiang <[email protected]>
4874
4875 * config/i386/driver-i386.cc (host_detect_local_cpu): Change
4876 to AMX-FP8 for Diamond Rapids.
4877
4878 2025-07-01 Jakub Jelinek <[email protected]>
4879
4880 Backported from master:
4881 2025-07-01 Jakub Jelinek <[email protected]>
4882
4883 PR middle-end/120608
4884 * passes.def (pass_musttail): Move before pass_sanopt.
4885 * tree-tailcall.cc (empty_eh_cleanup): Handle GIMPLE_RESX
4886 which doesn't throw externally through recursion on single
4887 eh edge (if any and cnt still allows that).
4888 (find_tail_calls): Add ESUCC, IGNORED_EDGES and MUST_SEE_BBS
4889 arguments. Handle GIMPLE_CONDs for non-simplified cleanups with
4890 finally_tmp temporaries both on backward and forward walks, adjust
4891 recursive call.
4892 (tree_optimize_tail_calls_1): Adjust find_tail_calls callers.
4893
4894 2025-06-27 Eric Botcazou <[email protected]>
4895
4896 * gimple-fold.cc (fold_const_aggregate_ref_1) <COMPONENT_REF>:
4897 Bail out immediately if the reference has reverse storage order.
4898 * tree-ssa-sccvn.cc (fully_constant_vn_reference_p): Likewise.
4899
4900 2025-06-26 Richard Biener <[email protected]>
4901
4902 * lto-streamer.h (LTO_minor_version): Bump to 1.
4903
4904 2025-06-26 Richard Biener <[email protected]>
4905
4906 Backported from master:
4907 2025-06-23 Richard Biener <[email protected]>
4908
4909 PR tree-optimization/120729
4910 * gimple-predicate-analysis.h (uninit_analysis::prune_phi_opnds):
4911 Add argument of work budget remaining.
4912 * gimple-predicate-analysis.cc (uninit_analysis::prune_phi_opnds):
4913 Likewise. Maintain and honor it throughout the recursion.
4914 * params.opt (uninit-max-prune-work): New.
4915 * doc/invoke.texi (uninit-max-prune-work): Document.
4916
4917 2025-06-26 Richard Biener <[email protected]>
4918
4919 Backported from master:
4920 2025-06-20 Richard Biener <[email protected]>
4921
4922 PR tree-optimization/120654
4923 * vr-values.cc (range_fits_type_p): Check for undefined_p ()
4924 before accessing type ().
4925
4926 2025-06-25 Jeff Law <[email protected]>
4927
4928 Backported from master:
4929 2025-06-10 Jeff Law <[email protected]>
4930
4931 * config/riscv/riscv.md (lui-constraint<X:mode>and_to_or): Do not use
4932 the RTL template for split code. Emit it directly taking care to avoid
4933 emitting a constant load that needed synthesis. Fix formatting.
4934
4935 2025-06-25 Richard Sandiford <[email protected]>
4936
4937 Backported from master:
4938 2025-06-12 Richard Sandiford <[email protected]>
4939
4940 PR target/120624
4941 * config/aarch64/aarch64.md (SME_STATE_REGNUM): Expand on comments.
4942 * config/aarch64/aarch64-sme.md (aarch64_restore_za): Also set
4943 SME_STATE_REGNUM
4944
4945 2025-06-25 Richard Sandiford <[email protected]>
4946
4947 Backported from master:
4948 2025-05-30 Richard Sandiford <[email protected]>
4949
4950 PR rtl-optimization/120347
4951 * rtlanal.cc (rtx_properties::try_to_add_src): Don't drop the
4952 IN_MEM_LOAD and IN_MEM_STORE flags for autoinc registers.
4953 * rtl-ssa/changes.cc (recog_level2): Check whether an
4954 RTX_AUTOINCed register also appears outside of an address.
4955
4956 2025-06-25 Haochen Jiang <[email protected]>
4957
4958 * config/i386/i386.h (PTA_ALDERLAKE): Use PTA_GOLDMONT_PLUS
4959 as base to remove PTA_CLDEMOTE.
4960 (PTA_SIERRAFOREST): Add PTA_CLDEMOTE since PTA_ALDERLAKE
4961 does not include that anymore.
4962 * doc/invoke.texi: Update texi file.
4963
4964 2025-06-23 Jakub Jelinek <[email protected]>
4965
4966 Backported from master:
4967 2025-06-23 Jakub Jelinek <[email protected]>
4968
4969 PR middle-end/120608
4970 * tree-tailcall.cc (empty_eh_cleanup): Ignore .ASAN_MARK (POISON)
4971 internal calls for the cfun->has_musttail case and diag_musttail.
4972 (find_tail_calls): Likewise.
4973
4974 2025-06-23 Jakub Jelinek <[email protected]>
4975
4976 Backported from master:
4977 2025-06-23 Jakub Jelinek <[email protected]>
4978
4979 PR middle-end/120608
4980 * cfgexpand.cc: Include rtl-iter.h.
4981 (expand_gimple_tailcall): Add ASAN_EPILOG_SEQ argument, if non-NULL
4982 and expand_gimple_stmt emitted a tail call, emit a copy of that
4983 insn sequence before the call sequence.
4984 (expand_gimple_basic_block): Remove DISABLE_TAIL_CALLS argument, add
4985 ASAN_EPILOG_SEQ argument. Disable tail call flag only on non-musttail
4986 calls if that flag is set, pass it to expand_gimple_tailcall.
4987 (pass_expand::execute): Pass VAR_RET_SEQ directly as last
4988 expand_gimple_basic_block argument rather than its comparison with
4989 NULL.
4990
4991 2025-06-20 Jeff Law <[email protected]>
4992
4993 Backported from master:
4994 2025-05-05 Jeff Law <[email protected]>
4995
4996 PR target/119971
4997 * config/riscv/bitmanip.md (rotation with masked count): Rewrite
4998 as define_insn patterns. Fix formatting.
4999 * config/riscv/riscv.md (shift with masked count): Similarly.
5000
5001 2025-06-19 Jakub Jelinek <[email protected]>
5002
5003 Backported from master:
5004 2025-06-19 Jakub Jelinek <[email protected]>
5005
5006 PR middle-end/120631
5007 * dfp.cc (decimal_real_to_integer): Use result multiplication not just
5008 when precision > 128 and dn.exponent > 19, but when precision > 64
5009 and dn.exponent > 0.
5010
5011 2025-06-19 Jakub Jelinek <[email protected]>
5012
5013 Backported from master:
5014 2025-06-18 Jakub Jelinek <[email protected]>
5015
5016 PR middle-end/120631
5017 * real.cc (decimal_from_integer): Add digits argument, if larger than
5018 256, use XALLOCAVEC allocated buffer.
5019 (real_from_integer): Pass val_in's precision divided by 3 to
5020 decimal_from_integer.
5021 * dfp.cc (decimal_real_to_integer): For precision > 128 if finite
5022 and exponent is large, decrease exponent and multiply resulting
5023 wide_int by powers of 10^19.
5024
5025 2025-06-18 Jan Beulich <[email protected]>
5026
5027 * doc/gcov.texi: Drop blank after @anchor.
5028
5029 2025-06-18 Jan Beulich <[email protected]>
5030
5031 * doc/extend.texi: Fill first argument of @xref{}.
5032
5033 2025-06-17 Jakub Jelinek <[email protected]>
5034
5035 Backported from master:
5036 2025-06-17 Jakub Jelinek <[email protected]>
5037
5038 PR tree-optimization/120677
5039 * gimple-crc-optimization.cc (crc_optimization::optimize_crc_loop):
5040 Insert before gsi_after_labels instead of gsi_start_bb. Use
5041 gimple_bb (output_crc) instead of output_crc->bb. Formatting fix.
5042
5043 2025-06-14 Georg-Johann Lay <[email protected]>
5044
5045 PR rtl-optimization/120423
5046 PR rtl-optimization/116389
5047 * config/avr/avr.md [-mno-lra]: Add pre-reload split to transform
5048 (left shift of) a paradoxical subreg to a (left shift of) zero-extend.
5049
5050 2025-06-13 Jakub Jelinek <[email protected]>
5051
5052 Backported from master:
5053 2025-06-12 Jakub Jelinek <[email protected]>
5054
5055 PR tree-optimization/120638
5056 * tree-ssa-math-opts.cc (pass_cse_reciprocals::execute): Call
5057 reset_flow_sensitive_info on arg1.
5058
5059 2025-06-13 Jakub Jelinek <[email protected]>
5060
5061 Backported from master:
5062 2025-06-05 Jakub Jelinek <[email protected]>
5063
5064 PR middle-end/120547
5065 * real.cc (real_from_integer): Remove maxbitlen variable, use
5066 len instead of that. When shifting right, or in 1 if any of the
5067 shifted away bits are non-zero. Formatting fix.
5068
5069 2025-06-13 Jakub Jelinek <[email protected]>
5070
5071 Backported from master:
5072 2025-05-20 Jakub Jelinek <[email protected]>
5073
5074 * tree-chrec.cc (convert_affine_scev): Use signed_type_for instead of
5075 build_nonstandard_integer_type.
5076
5077 2025-06-12 Martin Jambor <[email protected]>
5078
5079 Backported from master:
5080 2025-05-29 Martin Jambor <[email protected]>
5081
5082 PR ipa/120295
5083 * ipa-prop.cc (update_jump_functions_after_inlining): Do not
5084 combine pass-through jump functions with type-casts changing
5085 signedness.
5086
5087 2025-06-10 Andrew Pinski <[email protected]>
5088
5089 Backported from master:
5090 2025-04-30 Andrew Pinski <[email protected]>
5091
5092 PR target/120042
5093 * tree-vectorizer.h: Include dominance.h.
5094
5095 2025-06-10 Xi Ruoyao <[email protected]>
5096
5097 Backported from master:
5098 2025-06-04 Xi Ruoyao <[email protected]>
5099
5100 PR rtl-optimization/120050
5101 * ext-dce.cc (ext_dce_process_uses): Break early if a SUBREG in
5102 rhs is promoted and the truncation from the inner mode to the
5103 outer mode is not a noop when handling SETs.
5104
5105 2025-06-06 Tobias Burnus <[email protected]>
5106
5107 Backported from master:
5108 2025-06-05 Tobias Burnus <[email protected]>
5109
5110 * config.gcc (--with-{arch,tune}): Use .def file to validate gcn
5111 processor names.
5112 * doc/install.texi (amdgcn*-*-*): Update list of devices supported
5113 by --with-arch/--with-tune.
5114
5115 2025-06-06 Richard Biener <[email protected]>
5116
5117 Backported from master:
5118 2025-05-31 Richard Biener <[email protected]>
5119
5120 PR tree-optimization/120357
5121 * tree-vect-loop.cc (vect_create_epilog_for_reduction): Create
5122 the conditional reduction induction IV increment before the
5123 main IV exit.
5124
5125 2025-06-06 Richard Biener <[email protected]>
5126
5127 Backported from master:
5128 2025-05-30 Richard Biener <[email protected]>
5129
5130 PR tree-optimization/120341
5131 * tree-ssa-loop-im.cc (can_sm_ref_p): STRING_CSTs are readonly.
5132 * tree-ssa-phiopt.cc (cond_store_replacement): Likewise.
5133
5134 2025-06-06 Richard Biener <[email protected]>
5135
5136 Backported from master:
5137 2025-05-09 Richard Biener <[email protected]>
5138
5139 PR rtl-optimization/120182
5140 * dse.cc (canon_address): Constant addresses have no
5141 separate store group.
5142
5143 2025-06-06 Richard Biener <[email protected]>
5144
5145 Backported from master:
5146 2025-04-30 Richard Biener <[email protected]>
5147
5148 PR tree-optimization/120003
5149 * tree-ssa-threadbackward.cc (back_threader::find_paths_to_names):
5150 Allow block re-use but do not enlarge the path beyond such a
5151 re-use.
5152
5153 2025-06-06 Richard Biener <[email protected]>
5154
5155 Backported from master:
5156 2025-05-09 Richard Biener <[email protected]>
5157
5158 PR tree-optimization/119960
5159 * tree-vect-slp.cc (vect_slp_can_convert_to_external):
5160 Handle cases where defs from multiple BBs are ordered
5161 by their dominance relation.
5162
5163 2025-06-06 Richard Biener <[email protected]>
5164
5165 Backported from master:
5166 2025-05-08 Richard Biener <[email protected]>
5167
5168 PR tree-optimization/116352
5169 * tree-vect-slp.cc (vect_build_slp_tree_2): When compressing
5170 operands from a two-operator node make sure the resulting
5171 operation does not mix defs from different basic-blocks.
5172
5173 2025-06-06 Richard Biener <[email protected]>
5174
5175 Backported from master:
5176 2025-04-30 Richard Biener <[email protected]>
5177
5178 PR tree-optimization/119960
5179 * tree-vect-slp.cc (vect_schedule_slp_node): Sanity
5180 check dominance check on operand defs.
5181
5182 2025-06-06 Richard Biener <[email protected]>
5183
5184 Backported from master:
5185 2025-04-30 Richard Biener <[email protected]>
5186
5187 * tree-vectorizer.h (get_later_stmt): Robustify against
5188 stmts in different BBs, assert when they are unordered.
5189
5190 2025-06-06 Richard Biener <[email protected]>
5191
5192 Backported from master:
5193 2025-05-15 Richard Biener <[email protected]>
5194
5195 * config/i386/i386.cc (ix86_vector_costs::finish_cost):
5196 Do not suggest a first epilogue mode for AVX512 sized
5197 main loops with X86_TUNE_AVX512_TWO_EPILOGUES as that
5198 interferes with using a masked epilogue.
5199
5200 2025-06-05 Eric Botcazou <[email protected]>
5201
5202 * tree-vect-data-refs.cc (vect_can_force_dr_alignment_p): Return
5203 false if the variable has no symtab node.
5204
5205 2025-05-29 Yuta Mukai <[email protected]>
5206
5207 Backported from master:
5208 2025-05-28 Yuta Mukai <[email protected]>
5209
5210 * config/aarch64/aarch64-cores.def (fujitsu-monaka): Update ISA
5211 features.
5212
5213 2025-05-27 Eric Botcazou <[email protected]>
5214
5215 * ipa-sra.cc (scan_expr_access): Also disqualify storage order
5216 barriers from splitting.
5217 * tree.h (storage_order_barrier_p): Also return false if the
5218 operand of the VIEW_CONVERT_EXPR has reverse storage order.
5219
5220 2025-05-27 Jonathan Wakely <[email protected]>
5221
5222 Backported from master:
5223 2025-05-27 Jonathan Wakely <[email protected]>
5224
5225 * doc/extend.texi (Common Variable Attributes): Fix typo in
5226 description of nonstring.
5227
5228 2025-05-25 Michael J. Eager <[email protected]>
5229
5230 PR target/86772
5231 Tracking CVE-2017-5753
5232 * config/microblaze/microblaze.cc (TARGET_HAVE_SPECULATION_SAFE_VALUE):
5233 Define to speculation_save_value_not_needed
5234
5235 2025-05-20 Martin Jambor <[email protected]>
5236
5237 Backported from master:
5238 2025-05-14 Martin Jambor <[email protected]>
5239
5240 PR tree-optimization/111873
5241 * tree-sra.cc (sra_modify_expr): When processing a load which has
5242 a type-incompatible replacement, do not store the contents of the
5243 replacement into the original aggregate when that aggregate is
5244 const.
5245
5246 2025-05-20 Martin Jambor <[email protected]>
5247
5248 Backported from master:
5249 2025-05-16 Martin Jambor <[email protected]>
5250 Michal Jires <[email protected]>
5251
5252 * cgraph.h (symtab_node): Make member function get_uid const.
5253 * cgraphclones.cc (dump_callgraph_transformation): Dump m_uid of the
5254 call graph nodes instead of order.
5255 * cgraph.cc (cgraph_node::remove): Likewise.
5256 * ipa-cp.cc (ipcp_lattice<valtype>::print): Likewise.
5257 * ipa-sra.cc (ipa_sra_summarize_function): Likewise.
5258 * symtab.cc (symtab_node::dump_base): Likewise.
5259
5260 2025-05-16 Maciej W. Rozycki <[email protected]>
5261
5262 Backported from master:
5263 2025-04-19 Maciej W. Rozycki <[email protected]>
5264
5265 * config/alpha/alpha.cc
5266 (alpha_get_mem_rtx_alignment_and_offset): Recurse into
5267 COMPONENT_REF nodes.
5268
5269 2025-05-14 Kyle Huey <[email protected]>
5270
5271 * dwarf2out.cc (resolve_addr_in_expr): Propagate dtprel into the address
5272 table when appropriate.
5273
5274 2025-05-13 Gaius Mulley <[email protected]>
5275
5276 Backported from master:
5277 2025-05-12 Gaius Mulley <[email protected]>
5278
5279 PR modula2/120188
5280 * doc/gm2.texi (Semantic checking): Add -fm2-plugin command line option.
5281
5282 2025-05-11 Richard Biener <[email protected]>
5283
5284 PR tree-optimization/120211
5285 * tree-vect-stmts.cc (vect_stmt_relevant_p): Only add PHIs
5286 from the loop header to LOOP_VINFO_EARLY_BREAKS_LIVE_IVS.
5287
5288 2025-05-11 Richard Biener <[email protected]>
5289
5290 Backported from master:
5291 2025-05-08 Richard Biener <[email protected]>
5292
5293 PR ipa/120146
5294 * tree-ssa-structalias.cc (create_variable_info_for): If
5295 the symtab cannot tell us whether all refs to a variable
5296 are explicit assume they are not.
5297
5298 2025-05-11 Richard Biener <[email protected]>
5299
5300 Backported from master:
5301 2025-05-08 Richard Biener <[email protected]>
5302
5303 PR tree-optimization/120143
5304 * tree-vect-data-refs.cc (vect_analyze_early_break_dependences):
5305 Move/update the original stmts, not the pattern stmts which
5306 lack virtual operands and are not in the IL.
5307
5308 2025-05-11 Richard Biener <[email protected]>
5309
5310 Backported from master:
5311 2025-05-08 Richard Biener <[email protected]>
5312
5313 PR tree-optimization/120089
5314 * tree-vect-stmts.cc (vect_stmt_relevant_p): Mark all
5315 PHIs live when not already so and doing early-break
5316 vectorization.
5317 (vect_mark_stmts_to_be_vectorized): Skip virtual PHIs.
5318 * tree-vect-slp.cc (vect_analyze_slp): Robustify handling
5319 of early-break forced IVs.
5320
5321 2025-05-11 Richard Biener <[email protected]>
5322
5323 Backported from master:
5324 2025-05-08 Richard Biener <[email protected]>
5325
5326 PR tree-optimization/120043
5327 * tree-ssa-phiopt.cc (cond_store_replacement): Check
5328 whether the store is to readonly memory.
5329
5330 2025-05-09 Eric Botcazou <[email protected]>
5331
5332 * vr-values.cc (simplify_using_ranges::simplify) <BIT_AND_EXPR>:
5333 Do not call simplify_bit_ops_using_ranges for boolean types whose
5334 precision is not 1.
5335
5336 2025-05-07 Martin Jambor <[email protected]>
5337
5338 Backported from master:
5339 2025-05-06 Martin Jambor <[email protected]>
5340
5341 PR ipa/119852
5342 * cgraphclones.cc (dump_callgraph_transformation): Document the
5343 function. Do not dump if suffix is NULL.
5344
5345 2025-05-07 Martin Jambor <[email protected]>
5346
5347 Backported from master:
5348 2025-05-06 Martin Jambor <[email protected]>
5349
5350 * doc/invoke.texi (Developer Options): Document -fdump-ipa-clones.
5351
5352 2025-05-06 Andrew MacLeod <[email protected]>
5353
5354 PR tree-optimization/120048
5355 * ipa-cp.cc (ipcp_store_vr_results): Check for UNDEFINED.
5356
5357 2025-05-06 Jakub Jelinek <[email protected]>
5358
5359 Backported from master:
5360 2025-05-06 Jakub Jelinek <[email protected]>
5361
5362 PR tree-optimization/120074
5363 * gimple-fold.cc (fold_truth_andor_for_ifcombine): For
5364 lsignbit && l_xor case, punt if ll_bitsize != lr_bitsize. Similarly
5365 for rsignbit && r_xor case, punt if rl_bitsize != rr_bitsize.
5366 Formatting fix.
5367
5368 2025-05-05 Richard Biener <[email protected]>
5369
5370 Backported from master:
5371 2025-04-30 Richard Biener <[email protected]>
5372
5373 PR ipa/120006
5374 * tree-ssa-structalias.cc (find_func_clobbers): Handle
5375 strdup, strndup, realloc, index, strchr, strrchr, memchr,
5376 strstr, strpbrk builtins like find_func_aliases does.
5377
5378 2025-05-05 Richard Biener <[email protected]>
5379
5380 Backported from master:
5381 2025-04-28 Richard Biener <[email protected]>
5382
5383 PR ipa/119973
5384 * tree-ssa-structalias.cc (create_variable_info_for):
5385 Build constraints from DECL_INITIAL directly rather than
5386 the IPA reference list which is incomplete.
5387
5388 2025-04-30 Andrew MacLeod <[email protected]>
5389
5390 PR tree-optimization/119712
5391 * value-range.cc (range_bitmask::adjust_range): Delete.
5392 (irange::set_range_from_bitmask): Integrate adjust_range.
5393 (irange::update_bitmask): Do nothing if bitmask doesnt change.
5394 (irange:intersect_bitmask): Do not call adjust_range. Exit if there
5395 is no second bitmask.
5396 * value-range.h (adjust_range): Remove prototype.
5397
5398 2025-04-30 Georg-Johann Lay <[email protected]>
5399
5400 * config/avr/avr.md (fxload_<mode>_libgcc): Use REG_ prefix for
5401 magix register numbers (aligns with trunk).
5402
5403 2025-04-30 Georg-Johann Lay <[email protected]>
5404
5405 Backported from master:
5406 2025-04-30 Georg-Johann Lay <[email protected]>
5407
5408 * config/avr/avr.md (xload_<mode>_libgcc): Clobber R21, Z.
5409
5410 2025-04-29 Richard Sandiford <[email protected]>
5411
5412 Backported from master:
5413 2025-04-24 Richard Sandiford <[email protected]>
5414
5415 PR target/119610
5416 * config/aarch64/aarch64.cc (aarch64_allocate_and_probe_stack_space):
5417 Add a bytes_below_sp parameter and use it to calculate the CFA
5418 offsets. Attach the first SVE CFA note to the move into the
5419 associated temporary register.
5420 (aarch64_allocate_and_probe_stack_space): Update calls accordingly.
5421 Start out with bytes_per_sp set to the frame size and decrement
5422 it after each allocation.
5423
5424 2025-04-29 liuhongt <[email protected]>
5425
5426 Backported from master:
5427 2025-04-29 liuhongt <[email protected]>
5428
5429 * config/i386/x86-tune.def (X86_TUNE_DEST_FALSE_DEP_FOR_GLC):
5430 Remove other processor except for GLC since this one is only
5431 for GLC.
5432
5433 2025-04-25 Jakub Jelinek <[email protected]>
5434
5435 Backported from master:
5436 2025-04-25 Jakub Jelinek <[email protected]>
5437
5438 PR target/119873
5439 * config/s390/s390.cc (s390_call_saved_register_used): Don't return
5440 true if default definition of PARM_DECL SSA_NAME of the same register
5441 is passed in call saved register in the PARALLEL case either.
5442
5443 2025-04-25 Jakub Jelinek <[email protected]>
5444
5445 Backported from master:
5446 2025-04-24 Jakub Jelinek <[email protected]>
5447 Stefan Schulze Frielinghaus <[email protected]>
5448
5449 PR target/119873
5450 * config/s390/s390.cc (s390_call_saved_register_used): Don't return
5451 true if default definition of PARM_DECL SSA_NAME of the same register
5452 is passed in call saved register.
5453 (s390_function_ok_for_sibcall): Adjust comment.
5454
5455 2025-04-25 Jakub Jelinek <[email protected]>
5456
5457 Backported from master:
5458 2025-04-22 Jakub Jelinek <[email protected]>
5459
5460 PR target/119327
5461 * config/rs6000/rs6000.cc (rs6000_can_inline_p): Ignore also
5462 OPTION_MASK_SAVE_TOC_INDIRECT differences.
5463
5464 2025-04-25 Release Manager
5465
5466 * GCC 15.1.0 released.
5467
5468 2025-04-24 Kyrylo Tkachov <[email protected]>
5469
5470 Backported from master:
5471 2025-04-24 Kyrylo Tkachov <[email protected]>
5472
5473 * opts.cc (validate_ipa_reorder_locality_lto_partition): Check opts
5474 instead of opts_set for x_flag_ipa_reorder_for_locality.
5475 (finish_options): Update call site.
5476
5477 2025-04-24 Kyrylo Tkachov <[email protected]>
5478
5479 Backported from master:
5480 2025-04-24 Kyrylo Tkachov <[email protected]>
5481
5482 * common.opt (LTO_PARTITION_DEFAULT): Delete.
5483 (flto-partition=): Change default back to balanced.
5484 * flag-types.h (lto_partition_model): Remove LTO_PARTITION_DEFAULT.
5485 * opts.cc (validate_ipa_reorder_locality_lto_partition):
5486 Check opts_set->x_flag_lto_partition instead of LTO_PARTITION_DEFAULT.
5487 (finish_options): Remove handling of LTO_PARTITION_DEFAULT.
5488
5489 2025-04-22 Richard Sandiford <[email protected]>
5490
5491 Backported from master:
5492 2025-04-22 Richard Sandiford <[email protected]>
5493
5494 * config/aarch64/aarch64-c.cc (aarch64_update_cpp_builtins): Define
5495 __ARM_FEATURE_FAMINMAX.
5496
5497 2025-04-22 Kyrylo Tkachov <[email protected]>
5498
5499 Backported from master:
5500 2025-04-22 Kyrylo Tkachov <[email protected]>
5501
5502 * config/aarch64/aarch64-cores.def (olympus): Add fp8fma, fp8dot4
5503 explicitly.
5504
5505 2025-04-22 Kyrylo Tkachov <[email protected]>
5506
5507 Backported from master:
5508 2025-04-22 Kyrylo Tkachov <[email protected]>
5509
5510 * doc/invoke.texi (lto-partition-locality-frequency-cutoff,
5511 lto-partition-locality-size-cutoff, lto-max-locality-partition):
5512 Document.
5513
5514 2025-04-18 Richard Biener <[email protected]>
5515
5516 PR tree-optimization/119858
5517 * tree-vect-loop.cc (vectorizable_live_operation): Convert
5518 pointer offset to sizetype.
5519
5520 2025-04-17 Tamar Christina <[email protected]>
5521
5522 PR tree-optimization/119351
5523 * tree-vect-stmts.cc (vectorizable_early_exit): Mask both operands of
5524 the gcond for partial masking support.
5525
5526 2025-04-17 Jakub Jelinek <[email protected]>
5527
5528 PR target/119834
5529 * config/s390/s390.md (define_split after *cpymem_short): Use
5530 (clobber (match_scratch N)) instead of (clobber (scratch)). Use
5531 (match_dup 4) and operands[4] instead of (match_dup 3) and operands[3]
5532 in the last of those.
5533 (define_split after *clrmem_short): Use (clobber (match_scratch N))
5534 instead of (clobber (scratch)).
5535 (define_split after *cmpmem_short): Likewise.
5536
5537 2025-04-17 Thomas Schwinge <[email protected]>
5538
5539 * config/nvptx/nvptx.cc (TARGET_ASM_NEED_VAR_DECL_BEFORE_USE):
5540 Don't '#define'.
5541
5542 2025-04-17 Hans-Peter Nilsson <[email protected]>
5543
5544 * combine.cc: Correct comments about combine_validate_cost.
5545
5546 2025-04-16 Sandra Loosemore <[email protected]>
5547
5548 PR c/88382
5549 * doc/extend.texi (Syntax Extensions): Adjust menu.
5550 (Raw String Literals): New section.
5551
5552 2025-04-16 Keith Packard <[email protected]>
5553
5554 * config/rx/rx.md (cmpstrnsi): Allow constant length. For
5555 static length 0, just store 0 into the output register.
5556 For dynamic zero, set C/Z appropriately.
5557 (rxcmpstrn): No longer set C/Z.
5558
5559 2025-04-16 Eric Botcazou <[email protected]>
5560
5561 * tree-ssa-phiopt.cc (factor_out_conditional_operation): Do not
5562 bypass the int_fits_type_p test for boolean types whose precision
5563 is not 1.
5564
5565 2025-04-16 Sandra Loosemore <[email protected]>
5566
5567 * common.opt.urls: Regenerated.
5568
5569 2025-04-16 Ard Biesheuvel <[email protected]>
5570
5571 PR target/119386
5572 * config/i386/i386-options.cc: Permit -mnop-mcount when
5573 using -fpic with PLTs.
5574
5575 2025-04-16 Ard Biesheuvel <[email protected]>
5576
5577 PR target/119386
5578 * config/i386/i386.cc (x86_print_call_or_nop): Add @PLT suffix
5579 where appropriate.
5580 (x86_function_profiler): Fall through to x86_print_call_or_nop()
5581 for PIC codegen when flag_plt is set.
5582
5583 2025-04-16 Sandra Loosemore <[email protected]>
5584
5585 PR driver/90465
5586 * doc/invoke.texi (Overall Options): Add a @cindex for -Q in
5587 connection with --help=.
5588 (Developer Options): Point at --help= documentation for the
5589 other use of -Q.
5590
5591 2025-04-16 Thomas Schwinge <[email protected]>
5592
5593 PR target/97106
5594 * config/nvptx/nvptx.cc (nvptx_asm_output_def_from_decls)
5595 [ACCEL_COMPILER]: Make sure to emit C++ constructor, destructor
5596 aliases.
5597
5598 2025-04-16 Jan Hubicka <[email protected]>
5599
5600 PR tree-optimization/119614
5601 * ipa-prop.cc (ipa_write_return_summaries): New function.
5602 (ipa_record_return_value_range_1): Break out from ....
5603 (ipa_record_return_value_range): ... here.
5604 (ipa_read_return_summaries): New function.
5605 (ipa_prop_read_section): Read return summaries.
5606 (read_ipcp_transformation_info): Read return summaries.
5607 (ipcp_write_transformation_summaries): Write return summaries;
5608 do not stream stray 0.
5609
5610 2025-04-16 Tamar Christina <[email protected]>
5611
5612 PR tree-optimization/119351
5613 * tree-vectorizer.h (LOOP_VINFO_MASK_NITERS_PFA_OFFSET,
5614 LOOP_VINFO_NON_LINEAR_IV): New.
5615 (class _loop_vec_info): Add mask_skip_niters_pfa_offset and
5616 nonlinear_iv.
5617 * tree-vect-loop.cc (_loop_vec_info::_loop_vec_info): Initialize them.
5618 (vect_analyze_scalar_cycles_1): Record non-linear inductions.
5619 (vectorizable_induction): If early break and PFA using masking create a
5620 new phi which tracks where the scalar code needs to start...
5621 (vectorizable_live_operation): ...and generate the adjustments here.
5622 (vect_use_loop_mask_for_alignment_p): Reject non-linear inductions and
5623 early break needing peeling.
5624
5625 2025-04-16 Jakub Jelinek <[email protected]>
5626
5627 PR middle-end/119808
5628 * gimple-lower-bitint.cc (gimple_lower_bitint): Don't set
5629 m_single_use_names bits for SSA_NAMEs which have single use but
5630 their SSA_NAME_DEF_STMT is a copy from another SSA_NAME which doesn't
5631 have a single use, or single use which is such a copy etc.
5632
5633 2025-04-16 Jesse Huang <[email protected]>
5634
5635 * config/riscv/riscv.cc (riscv_file_end): Fix .p2align value.
5636
5637 2025-04-16 Kito Cheng <[email protected]>
5638
5639 * config/riscv/riscv.h (JUMP_TABLES_IN_TEXT_SECTION): Check if
5640 large code model.
5641
5642 2025-04-16 Tejas Belagod <[email protected]>
5643
5644 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Fix operand
5645 order to gen_vcond_mask_*.
5646
5647 2025-04-16 Alice Carlotti <[email protected]>
5648
5649 * config/aarch64/aarch64.cc
5650 (aarch64_valid_sysreg_name_p): Remove feature check.
5651 (aarch64_retrieve_sysreg): Ditto.
5652
5653 2025-04-15 Sandra Loosemore <[email protected]>
5654
5655 PR tree-optimization/71094
5656 * doc/invoke.texi (Optimize Options): Document that -fivopts is
5657 enabled at -O1 and higher. Add blurb about -O0 causing GCC to
5658 completely ignore most optimization options.
5659
5660 2025-04-15 Iain Sandoe <[email protected]>
5661
5662 * configure: Regenerate.
5663 * configure.ac: Recognise PROJECT:ld-mmmm.nn.aa as an identifier
5664 for Darwin's static linker.
5665
5666 2025-04-15 Iain Sandoe <[email protected]>
5667
5668 PR target/116827
5669 * ginclude/stddef.h: Undefine __PTRDIFF_T and __SIZE_T for module-
5670 enabled c++ on Darwin/macOS platforms.
5671
5672 2025-04-15 Kyrylo Tkachov <[email protected]>
5673
5674 * common.opt.urls: Regenerate.
5675
5676 2025-04-15 Jan Hubicka <[email protected]>
5677
5678 * config/i386/x86-tune-sched.cc (ix86_issue_rate): Set
5679 to 4 for znver5.
5680
5681 2025-04-15 Jan Hubicka <[email protected]>
5682
5683 PR target/119298
5684 * config/i386/x86-tune-costs.h (znver5_cost): Set ADDSS cost to 3.
5685
5686 2025-04-15 Vineet Gupta <[email protected]>
5687
5688 PR target/119533
5689 * config/riscv/riscv-vsetvl.cc (invalid_opt_bb_p): Check for
5690 EDGE_ABNOMAL.
5691 (pre_vsetvl::compute_lcm_local_properties): Initialize kill
5692 bitmap.
5693 Debug dump skipped edge.
5694
5695 2025-04-15 Robin Dapp <[email protected]>
5696
5697 PR target/119547
5698 * config/riscv/riscv-vsetvl.cc (pre_vsetvl::earliest_fuse_vsetvl_info):
5699 Do not perform lift if block is not transparent.
5700
5701 2025-04-15 Kyrylo Tkachov <[email protected]>
5702
5703 * Makefile.in (OBJS): Add ipa-locality-cloning.o.
5704 * cgraph.h (set_new_clone_decl_and_node_flags): Declare prototype.
5705 * cgraphclones.cc (set_new_clone_decl_and_node_flags): Remove static
5706 qualifier.
5707 * common.opt (fipa-reorder-for-locality): New flag.
5708 (LTO_PARTITION_DEFAULT): Declare.
5709 (flto-partition): Change default to LTO_PARTITION_DFEAULT.
5710 * doc/invoke.texi: Document -fipa-reorder-for-locality.
5711 * flag-types.h (enum lto_locality_cloning_model): Declare.
5712 (lto_partitioning_model): Add LTO_PARTITION_DEFAULT.
5713 * lto-cgraph.cc (lto_set_symtab_encoder_in_partition): Add dumping of
5714 node and index.
5715 * opts.cc (validate_ipa_reorder_locality_lto_partition): Define.
5716 (finish_options): Handle LTO_PARTITION_DEFAULT.
5717 * params.opt (lto_locality_cloning_model): New enum.
5718 (lto-partition-locality-cloning): New param.
5719 (lto-partition-locality-frequency-cutoff): Likewise.
5720 (lto-partition-locality-size-cutoff): Likewise.
5721 (lto-max-locality-partition): Likewise.
5722 * passes.def: Register pass_ipa_locality_cloning.
5723 * timevar.def (TV_IPA_LC): New timevar.
5724 * tree-pass.h (make_pass_ipa_locality_cloning): Declare.
5725 * ipa-locality-cloning.cc: New file.
5726 * ipa-locality-cloning.h: New file.
5727
5728 2025-04-15 Martin Jambor <[email protected]>
5729 Jakub Jelinek <[email protected]>
5730
5731 PR ipa/119803
5732 * ipa-cp.cc (ipcp_bits_lattice::meet_with_1): Move m_value adjustmed
5733 according to m_mask below the adjustment of the latter according to
5734 cap_mask. Optimize the calculation of cap_mask a bit.
5735 (ipcp_bits_lattice::meet_with): Optimize the calculation of cap_mask a
5736 bit.
5737
5738 2025-04-15 Jakub Jelinek <[email protected]>
5739
5740 * ipa-cp.cc (ipcp_print_widest_int): Print values with all ones in
5741 bits 128+ with "0xf..f" prefix instead of "all ones folled by ".
5742 Simplify wide_int check for -1 or all ones above least significant
5743 128 bits.
5744
5745 2025-04-15 Jakub Jelinek <[email protected]>
5746
5747 PR sanitizer/119801
5748 * sanitizer.def (BUILT_IN_TSAN_FUNC_EXIT): Use BT_FN_VOID rather
5749 than BT_FN_VOID_PTR.
5750 * tree-tailcall.cc: Include attribs.h and asan.h.
5751 (struct tailcall): Add has_tsan_func_exit member.
5752 (empty_eh_cleanup): Add eh_has_tsan_func_exit argument, set what
5753 it points to to 1 if there is exactly one __tsan_func_exit call
5754 and ignore that call otherwise. Adjust recursive call.
5755 (find_tail_calls): Add RETRY_TSAN_FUNC_EXIT argument, pass it
5756 to recursive calls. When seeing __tsan_func_exit call with
5757 RETRY_TSAN_FUNC_EXIT 0, set it to -1. If RETRY_TSAN_FUNC_EXIT
5758 is 1, initially ignore __tsan_func_exit calls. Adjust
5759 empty_eh_cleanup caller. When looking through stmts after the call,
5760 ignore exactly one __tsan_func_exit call but remember it in
5761 t->has_tsan_func_exit. Diagnose if EH cleanups didn't have
5762 __tsan_func_exit and normal path did or vice versa.
5763 (optimize_tail_call): Emit __tsan_func_exit before the tail call
5764 or tail recursion.
5765 (tree_optimize_tail_calls_1): Adjust find_tail_calls callers. If
5766 find_tail_calls changes retry_tsan_func_exit to -1, set it to 1
5767 and call it again with otherwise the same arguments.
5768
5769 2025-04-15 Sandra Loosemore <[email protected]>
5770
5771 PR ipa/113203
5772 * doc/extend.texi (Common Function Attributes): Explain how to
5773 use always_inline in programs that have multiple translation
5774 units, and that LTO inlining additionally needs optimization
5775 enabled.
5776
5777 2025-04-15 liuhongt <[email protected]>
5778
5779 PR target/108134
5780 * doc/extend.texi: Remove documents from r11-344-g0fec3f62b9bfc0.
5781
5782 2025-04-15 Sandra Loosemore <[email protected]>
5783
5784 PR target/42683
5785 * doc/invoke.texi (x86 Options): Clarify that -march=pentiumpro
5786 doesn't include MMX.
5787
5788 2025-04-14 Thomas Schwinge <[email protected]>
5789
5790 PR target/118794
5791 * config/gcn/gcn.opt (-mfake-exceptions): Support.
5792 * config/nvptx/nvptx.opt (-mfake-exceptions): Likewise.
5793 * config/gcn/gcn.md (define_expand "exception_receiver"): Use it.
5794 * config/nvptx/nvptx.md (define_expand "exception_receiver"):
5795 Likewise.
5796 * config/gcn/mkoffload.cc (main): Set it.
5797 * config/nvptx/mkoffload.cc (main): Likewise.
5798 * config/nvptx/nvptx.cc (nvptx_assemble_integer)
5799 <in_section == exception_section>: Special handling for
5800 'SYMBOL_REF's.
5801 * except.cc (expand_dw2_landing_pad_for_region): Don't generate
5802 bogus code for (default)
5803 '#define EH_RETURN_DATA_REGNO(N) INVALID_REGNUM'.
5804
5805 2025-04-14 Jakub Jelinek <[email protected]>
5806
5807 PR rtl-optimization/119785
5808 * expmed.cc (init_expmed): Always pass QImode rather than mode to
5809 set_src_cost passed to set_zero_cost.
5810
5811 2025-04-14 Jakub Jelinek <[email protected]>
5812
5813 PR tree-optimization/119718
5814 * tree-pretty-print.cc (dump_generic_node) <case CALL_EXPR>: Dump
5815 also CALL_EXPR_MUST_TAIL_CALL flag.
5816 * calls.cc (maybe_complain_about_tail_call): Emit error about
5817 CALL_EXPR_MUST_TAIL_CALL only after emitting dump message, not before
5818 it.
5819
5820 2025-04-14 Arthur Cohen <[email protected]>
5821
5822 * doc/install.texi: Add requirements for building gccrs.
5823
5824 2025-04-14 H.J. Lu <[email protected]>
5825
5826 PR target/119784
5827 * config/i386/i386.cc (ix86_using_red_zone): Don't use red-zone
5828 with 32 GPRs and no caller-saved registers.
5829
5830 2025-04-14 Martin Jambor <[email protected]>
5831
5832 PR ipa/118097
5833 * ipa-cp.cc (ipa_get_jf_arith_result): Require res_operand for
5834 anything except NOP_EXPR or ADDR_EXPR, document it and remove the code
5835 trying to deduce it.
5836 (ipa_value_from_jfunc): Use the stored and streamed type of arithmetic
5837 pass-through functions.
5838 (ipa_agg_value_from_jfunc): Use the stored and streamed type of
5839 arithmetic pass-through functions, convert to the type used to store
5840 the value if necessary.
5841 (get_val_across_arith_op): New parameter op_type, pass it to
5842 ipa_get_jf_arith_result.
5843 (propagate_vals_across_arith_jfunc): New parameter op_type, pass it to
5844 get_val_across_arith_op.
5845 (propagate_vals_across_pass_through): Use the stored and streamed type
5846 of arithmetic pass-through functions.
5847 (propagate_aggregate_lattice): Likewise.
5848 (push_agg_values_for_index_from_edge): Use the stored and streamed
5849 type of arithmetic pass-through functions, convert to the type used to
5850 store the value if necessary.
5851
5852 2025-04-14 Martin Jambor <[email protected]>
5853
5854 PR ipa/118785
5855 * ipa-cp.cc (ipa_vr_intersect_with_arith_jfunc): Use the stored
5856 and streamed type of arithmetic pass-through functions.
5857
5858 2025-04-14 Martin Jambor <[email protected]>
5859
5860 * ipa-cp.cc (ipcp_print_widest_int): Also add a truncated form of
5861 dumping of widest ints which only have zeros in the lowest 128 bits.
5862 Update the comment.
5863 (ipcp_bits_lattice::print): Also dump the mask using
5864 ipcp_print_widest_int.
5865 (ipcp_store_vr_results): Likewise.
5866
5867 2025-04-14 Martin Jambor <[email protected]>
5868
5869 PR ipa/119318
5870 * ipa-cp.cc (ipcp_bits_lattice::meet_with_1): Set all mask bits
5871 not covered by precision to one.
5872 (ipcp_bits_lattice::meet_with): Likewise.
5873 (propagate_bits_across_jump_function): Use the stored operation
5874 type to perform meet with other lattices.
5875
5876 2025-04-14 Martin Jambor <[email protected]>
5877
5878 PR ipa/118097
5879 PR ipa/118785
5880 PR ipa/119318
5881 * lto-streamer.h (lto_variably_modified_type_p): Declare.
5882 * ipa-prop.h (ipa_pass_through_data): New field op_type.
5883 (ipa_get_jf_pass_through_op_type): New function.
5884 * ipa-prop.cc: Include lto-streamer.h.
5885 (ipa_dump_jump_function): Dump also pass-through
5886 operation types, if any. Dump pass-through operands only if not NULL.
5887 (ipa_set_jf_simple_pass_through): Set op_type accordingly.
5888 (compute_complex_assign_jump_func): Set op_type of arithmetic
5889 pass-through jump_functions.
5890 (analyze_agg_content_value): Update lhs when walking assighment
5891 copies. Set op_type of aggregate arithmetic pass-through
5892 jump_functions.
5893 (update_jump_functions_after_inlining): Also transfer the operation
5894 type from the source arithmentic pass-through jump function to the
5895 destination jump function.
5896 (ipa_write_jump_function): Stream also the op_type when necessary.
5897 (ipa_read_jump_function): Likewise.
5898 (ipa_agg_pass_through_jf_equivalent_p): Also compare operation types.
5899 * lto-streamer-out.cc (lto_variably_modified_type_p): Make public.
5900
5901 2025-04-14 Richard Biener <[email protected]>
5902
5903 PR tree-optimization/119757
5904 * tree-vect-slp.cc (vect_build_slp_tree_1): Record and compare
5905 whether a stmt uses a maks.
5906
5907 2025-04-14 Richard Biener <[email protected]>
5908
5909 PR tree-optimization/119778
5910 * tree-inline.cc (copy_edges_for_bb): Mark calls that are
5911 source of abnormal edges as altering control-flow.
5912
5913 2025-04-14 Gaius Mulley <[email protected]>
5914
5915 PR modula2/119779
5916 * doc/gm2.texi (Interface to assembly language): Use eax
5917 rather than rax in both examples.
5918
5919 2025-04-14 Jakub Jelinek <[email protected]>
5920
5921 PR driver/119727
5922 * configure.ac (HOST_HAS_PERSONALITY_ADDR_NO_RANDOMIZE): New check.
5923 * gcc.cc: Include sys/personality.h if
5924 HOST_HAS_PERSONALITY_ADDR_NO_RANDOMIZE is defined.
5925 (try_generate_repro): Call
5926 personality (personality (0xffffffffU) | ADDR_NO_RANDOMIZE)
5927 if HOST_HAS_PERSONALITY_ADDR_NO_RANDOMIZE is defined.
5928 * config.in: Regenerate.
5929 * configure: Regenerate.
5930
5931 2025-04-13 Stefan Schulze Frielinghaus <[email protected]>
5932
5933 * config/s390/s390.cc: Add z17 scheduler description.
5934 * config/s390/s390.h: Ditto.
5935 * config/s390/s390.md: Ditto.
5936 * config/s390/9175.md: New file.
5937
5938 2025-04-13 Stefan Schulze Frielinghaus <[email protected]>
5939
5940 * common/config/s390/s390-common.cc: Rename arch15 to z17.
5941 * config.gcc: Add z17.
5942 * config/s390/driver-native.cc: Detect z17 machine.
5943 * config/s390/s390-builtins.def (B_VXE3): Rename arch15 to z17.
5944 * config/s390/s390-c.cc (s390_resolve_overloaded_builtin): Ditto.
5945 * config/s390/s390-opts.h (enum processor_type): Ditto.
5946 * config/s390/s390.cc: Ditto.
5947 * config/s390/s390.h: Ditto.
5948 * config/s390/s390.md: Ditto.
5949 * config/s390/s390.opt: Add z17.
5950 * doc/invoke.texi: Ditto.
5951
5952 2025-04-12 Sandra Loosemore <[email protected]>
5953
5954 PR target/97585
5955 * doc/invoke.texi (x86 Options): Document list of extensions
5956 supported by -march=x86_64, according to the declaration of
5957 PTA_X86_64_BASELINE in config/i386/i386.h.
5958
5959 2025-04-12 Jakub Jelinek <[email protected]>
5960
5961 PR driver/119727
5962 * gcc.cc (files_equal_p): Rewritten using fopen/fgets/fclose instead
5963 of open/fstat/read/close. At the start of lines, ignore lowercase
5964 hexadecimal addresses followed by space.
5965
5966 2025-04-12 Jakub Jelinek <[email protected]>
5967
5968 PR tree-optimization/119722
5969 * gimple-lower-bitint.h (build_bitint_stmt_ssa_conflicts): Add
5970 CLEAR argument.
5971 * gimple-lower-bitint.cc (build_bitint_stmt_ssa_conflicts): Add
5972 CLEAR argument. Call clear on gimple_assign_copy_p rhs1 if lhs
5973 is large/huge bitint unless lhs is not in names.
5974 * tree-ssa-coalesce.cc (build_ssa_conflict_graph): Adjust
5975 build_bitint_stmt_ssa_conflicts caller. Move gimple_assign_copy_p
5976 handling to after the build_bitint_stmt_ssa_conflicts call.
5977
5978 2025-04-12 Jakub Jelinek <[email protected]>
5979
5980 PR tree-optimization/119718
5981 * tree-tailcall.cc (maybe_error_musttail): Dump the GIMPLE at the
5982 end of the Cannot tail-call line rather than on the line before it.
5983 * calls.cc (maybe_complain_about_tail_call): Dump the GENERIC
5984 at the end of the ;; Cannot tail-call line rather than on the
5985 line before it.
5986
5987 2025-04-12 Jakub Jelinek <[email protected]>
5988
5989 PR tree-optimization/119718
5990 * tree-tailcall.cc (maybe_error_musttail): Only dump into dump_file
5991 if dump_flags & TDF_DETAILS. Use "Cannot tail-call: " prefix instead
5992 of "Cannot convert: ".
5993 (find_tail_calls, tree_optimize_tail_calls_1): Formatting fixes
5994 for maybe_error_musttail calls.
5995 * calls.cc (maybe_complain_about_tail_call): Emit also a message
5996 into dump_file when dump_flags & TDF_DETAILS for CALL_EXPR_TAILCALL
5997 calls.
5998 (initialize_argument_information): Formatting fix for
5999 maybe_complain_about_tail_call calls.
6000 (can_implement_as_sibling_call_p, expand_call): Likewise.
6001
6002 2025-04-11 Sandra Loosemore <[email protected]>
6003
6004 PR c++/106618
6005 * doc/invoke.texi (Option Summary): Remove -fargs-in-order, add
6006 -fstrong-eval-order.
6007 (C++ Dialect Options): Explicitly document that -fstrong-eval-order
6008 takes an optional argument and what the choices are. Generalize
6009 references to C++17.
6010
6011 2025-04-11 Sandra Loosemore <[email protected]>
6012
6013 PR middle-end/105548
6014 * doc/invoke.texi (Optimize Options): Delete misleading sentence
6015 about conversions.
6016
6017 2025-04-11 Jakub Jelinek <[email protected]>
6018
6019 PR tree-optimization/119707
6020 * gimple-lower-bitint.cc (bitint_large_huge::handle_cast): Only use
6021 m_data[save_data_cnt] instead of m_data[save_data_cnt + 1] if
6022 idx is odd and equal to low + 1. Remember tree_to_uhwi (idx) in
6023 a temporary instead of calling the function multiple times.
6024
6025 2025-04-11 Sandra Loosemore <[email protected]>
6026
6027 PR tree-optimization/87909
6028 * common.opt.urls: Regenerate.
6029 * doc/invoke.texi (Option Summary): Add -ftree-cselim.
6030 (Optimize Options): Likewise.
6031
6032 2025-04-11 Sandra Loosemore <[email protected]>
6033
6034 PR middle-end/14708
6035 * doc/invoke.texi (Optimize Options): List -fexcess-precision
6036 before -ffloat-store, moving some background discussion to the
6037 former from the latter. Recommend using -fexcess-precision=standard
6038 instead of -ffloat-store.
6039
6040 2025-04-10 Iain Sandoe <[email protected]>
6041
6042 * config/darwin.h (LINK_SPEC): Add support for
6043 -static-libgcobol.
6044
6045 2025-04-10 Richard Biener <[email protected]>
6046
6047 PR middle-end/119706
6048 * gimple-expr.cc (is_gimple_mem_ref_addr): Also allow
6049 POLY_INT_CST.
6050
6051 2025-04-10 Richard Sandiford <[email protected]>
6052
6053 PR tree-optimization/119399
6054 * tree-data-ref.cc (create_waw_or_war_checks): Use a MINUS_EXPR
6055 on two converted pointers, rather than converting a POINTER_DIFF_EXPR
6056 on the pointers.
6057
6058 2025-04-10 Kito Cheng <[email protected]>
6059
6060 * config/riscv/multilib-generator: Remove the compact code model
6061 and check large code model for RV32.
6062
6063 2025-04-09 Jakub Jelinek <[email protected]>
6064
6065 * pretty-print.cc (pretty_printer::format): Use %.Ns instead of
6066 %Ns in function comment.
6067
6068 2025-04-09 Jakub Jelinek <[email protected]>
6069
6070 PR target/119664
6071 * config/h8300/jumpcall.md (bit test and jump define_insn_and_split):
6072 Use HSI iterator rather than QHSI.
6073
6074 2025-04-09 Jakub Jelinek <[email protected]>
6075
6076 * config/riscv/riscv-vector-builtins.cc (verify_type_context):
6077 Diagnose RVV types for a given OpenMP context.
6078
6079 2025-04-09 Richard Biener <[email protected]>
6080
6081 PR rtl-optimization/119689
6082 PR rtl-optimization/115568
6083 * lra-remat.cc (create_cands): Use prev_nonnote_nondebug_insn
6084 to check whether insn2 is directly before insn.
6085
6086 2025-04-09 Robin Dapp <[email protected]>
6087
6088 PR middle-end/116595
6089 * expr.cc (categorize_ctor_elements_1): Use
6090 constant_lower_bound.
6091
6092 2025-04-09 Yang Yujie <[email protected]>
6093
6094 * config/loongarch/genopts/gen-evolution.awk: remove
6095 usage of "asort".
6096 * config/loongarch/genopts/genstr.sh: replace sed with awk.
6097
6098 2025-04-08 Sandra Loosemore <[email protected]>
6099
6100 PR c++/90468
6101 * doc/invoke.texi (Warning Options): Clean up text describing
6102 -Wno-xxx.
6103
6104 2025-04-08 Jakub Jelinek <[email protected]>
6105
6106 PR rtl-optimization/119672
6107 * simplify-rtx.cc (simplify_context::simplify_relational_operation_1):
6108 For POPCOUNT == 0 or != 0 optimizations use
6109 CONST0_RTX (GET_MODE (XEXP (op0, 0))) rather than const0_rtx.
6110
6111 2025-04-08 Tobias Burnus <[email protected]>
6112
6113 PR middle-end/119662
6114 * gimplify.cc (modify_call_for_omp_dispatch): Fix GOMP_interop
6115 arg passing; add location info to function calls.
6116
6117 2025-04-08 Jakub Jelinek <[email protected]>
6118
6119 PR target/119678
6120 * config/riscv/freebsd.h (LINK_SPEC): Use FBSD_LINK_PG_NOTE rather
6121 than non-existing FBSD_LINK_PG_NOTES.
6122
6123 2025-04-08 Thomas Schwinge <[email protected]>
6124
6125 * config/nvptx/nvptx.cc (nvptx_asm_output_def_from_decls)
6126 [!ACCEL_COMPILER]: Don't define label 'emit_ptx_alias'.
6127
6128 2025-04-08 Jakub Jelinek <[email protected]>
6129
6130 PR rtl-optimization/119594
6131 * cse.cc (count_reg_usage): Count even x == dest regs if they have
6132 non-zero counts already and incr is positive.
6133
6134 2025-04-08 Jakub Jelinek <[email protected]>
6135
6136 PR lto/119625
6137 * lto-opts.cc (lto_write_options): Mask of CF_SET from
6138 global_options.x_flag_cf_protection.
6139
6140 2025-04-08 Tejas Belagod <[email protected]>
6141 Andrea Corallo <[email protected]>
6142
6143 * target.h (type_context_kind): Add new context kinds for target clauses.
6144 (omp_type_context): Query if the context is of OMP kind.
6145 * config/aarch64/aarch64-sve-builtins.cc (verify_type_context): Diagnose
6146 SVE types for a given OpenMP context.
6147 (omp_type_context): New.
6148 * gimplify.cc (omp_notice_variable): Diagnose implicitly-mapped SVE
6149 objects in OpenMP regions.
6150 (gimplify_scan_omp_clauses): Diagnose SVE types for various target
6151 clauses.
6152
6153 2025-04-08 Tejas Belagod <[email protected]>
6154
6155 * tree.h (strip_pointer_types): New.
6156
6157 2025-04-08 Richard Sandiford <[email protected]>
6158 Tejas Belagod <[email protected]>
6159
6160 PR middle-end/101018
6161 * poly-int.h (can_and_p): New function.
6162 * fold-const.cc (poly_int_binop): Use it to optimize BIT_AND_EXPRs
6163 involving POLY_INT_CSTs.
6164 * gimplify.cc (omp_notice_variable): Use poly_int_tree_p instead
6165 of INTEGER_CST when checking for constant-sized omp data.
6166 (gimplify_adjust_omp_clauses_1): Likewise.
6167 (gimplify_adjust_omp_clauses): Likewise.
6168 * omp-low.cc (scan_sharing_clauses): Likewise.
6169
6170 2025-04-08 Haochen Jiang <[email protected]>
6171
6172 * config/i386/i386.h (PTA_DIAMONDRAPIDS): Add PTA_AVX10_1_256.
6173
6174 2025-04-08 Jin Ma <[email protected]>
6175
6176 * config/riscv/vector.md: Disable vsext/vzext for XTheadVector.
6177
6178 2025-04-07 Iain Sandoe <[email protected]>
6179
6180 PR target/113257
6181 * config/aarch64/aarch64-cores.def (AARCH64_CORE): Add Apple-a12,
6182 Apple-M1, Apple-M2, Apple-M3 with expanded names to allow for the
6183 LITTLE.big versions.
6184 * config/aarch64/aarch64-tune.md: Regenerate.
6185 * doc/invoke.texi: Add apple-m1,2 and 3 cores to the ones listed
6186 for arch and tune selections.
6187
6188 2025-04-07 Thomas Schwinge <[email protected]>
6189
6190 * config/nvptx/nvptx.opt (-mfake-ptx-alloca): Update.
6191
6192 2025-04-07 Martin Jambor <[email protected]>
6193
6194 PR tree-optimization/118924
6195 * tree-sra.cc (create_total_scalarization_access): Set
6196 grp_same_access_path flag to zero.
6197
6198 2025-04-07 Martin Jambor <[email protected]>
6199
6200 PR tree-optimization/118924
6201 * tree-ssa-alias-compare.h (types_equal_for_same_type_for_tbaa_p):
6202 Declare.
6203 * tree-ssa-alias.cc: Include ipa-utils.h.
6204 (types_equal_for_same_type_for_tbaa_p): New public overloaded variant.
6205 * tree-sra.cc: Include tree-ssa-alias-compare.h.
6206 (create_access): Initialzie grp_same_access_path to true.
6207 (build_accesses_from_assign): Detect tbaa hazards and clear
6208 grp_same_access_path fields of involved accesses when they occur.
6209 (sort_and_splice_var_accesses): Take previous values of
6210 grp_same_access_path into account.
6211
6212 2025-04-07 Richard Biener <[email protected]>
6213
6214 PR tree-optimization/119640
6215 * tree-vect-stmts.cc (vectorizable_shift): Always insert code
6216 for one of our SLP operands before the code for the vector
6217 shift itself.
6218
6219 2025-04-07 Jakub Jelinek <[email protected]>
6220
6221 PR tree-optimization/119614
6222 * tree-tailcall.cc (find_tail_calls): Remember edges which have been
6223 walked through if !ass_var. Perform IPA-VRP workaround even when
6224 ret_var is not TREE_CONSTANT, in that case check in a loop if it is
6225 a PHI result and in that case look at the PHI argument from
6226 corresponding edge in the edge vector.
6227
6228 2025-04-07 Richard Sandiford <[email protected]>
6229
6230 PR testsuite/116398
6231 * params.opt (-param=max-combine-search-insns=): New param.
6232 * doc/invoke.texi: Document it.
6233 * combine.cc (insn_link::insn_count): New field.
6234 (alloc_insn_link): Initialize it.
6235 (distribute_links): Add a limit parameter.
6236 (try_combine): Use the new param to limit distribute_links
6237 when only i3 has changed.
6238
6239 2025-04-07 Richard Sandiford <[email protected]>
6240
6241 PR testsuite/116398
6242 * combine.cc (distribute_links): Take an optional start point.
6243 (try_combine): If only i3 has changed, only distribute i3's links,
6244 not i2's. Start the search for the new use from i3 rather than
6245 from the definition instruction. Likewise start the search for
6246 the new use from i2 when distributing i2's links.
6247
6248 2025-04-07 Richard Sandiford <[email protected]>
6249
6250 PR testsuite/116398
6251 * combine.cc (try_combine): Shortcut the split_i2i3 handling if
6252 i2 is unchanged.
6253
6254 2025-04-07 Richard Sandiford <[email protected]>
6255 Richard Biener <[email protected]>
6256
6257 PR testsuite/116398
6258 * combine.cc (try_combine): Reallow 2->2 combinations. Detect when
6259 only i3 has changed and restart from i3 in that case.
6260
6261 2025-04-07 Richard Sandiford <[email protected]>
6262
6263 * simplify-rtx.cc (simplify_const_relational_operation): Generalize
6264 the constant checks in the fold-via-minus path to match the
6265 INTEGRAL_MODE_P condition.
6266
6267 2025-04-06 Sandra Loosemore <[email protected]>
6268
6269 * doc/extend.texi (Boolean Type): Further clarify support for
6270 _Bool in C23 and C++.
6271
6272 2025-04-06 Sandra Loosemore <[email protected]>
6273
6274 PR middle-end/78874
6275 * doc/invoke.texi (Warning Options): Fix description of
6276 -Wno-aggressive-loop-optimizations to reflect that this turns
6277 off the warning, and the default is for it to be enabled.
6278
6279 2025-04-06 Sandra Loosemore <[email protected]>
6280
6281 PR c/81831
6282 * doc/invoke.texi (Option Summary): Add -Wno-psabi.
6283 (Warning Options): Document -Wpsabi separately from -Wabi.
6284 Note it's enabled by default, not just implied by -Wabi.
6285 Replace the detailed example for a GCC 4.4 change for x86
6286 (which is unlikely to be very interesting nowadays) with
6287 just a list of all targets that presently diagnose these
6288 warnings.
6289 (RS/6000 and PowerPC Options): Add cross-references for
6290 -Wno-psabi.
6291
6292 2025-04-05 Sandra Loosemore <[email protected]>
6293
6294 PR middle-end/112589
6295 * common.opt (-fcf-protection): Add documentation string.
6296 * doc/invoke.texi (Option Summary): Add entry for -fcf-protection
6297 without argument.
6298 (Instrumentation Options): Tidy the -fcf-protection entry and
6299 and add documention for the form without an argument.
6300
6301 2025-04-04 Jakub Jelinek <[email protected]>
6302
6303 PR lto/119625
6304 * lto-opts.cc (lto_write_options): If neither flag_pic nor
6305 flag_pie are set, check first for flag_pie and only later
6306 for flag_pic rather than the other way around, use a temporary
6307 variable. If flag_cf_protection is not set, don't append anything
6308 if flag_cf_protection is none of CF_{NONE,FULL,BRANCH,RETURN} and
6309 use a temporary variable.
6310
6311 2025-04-04 Jakub Jelinek <[email protected]>
6312
6313 PR gcov-profile/119618
6314 * profile.cc (branch_prob): Only check for musttail calls if
6315 cfun->has_musttail. Use gsi_last_nondebug_bb instead of gsi_last_bb.
6316
6317 2025-04-04 Jakub Jelinek <[email protected]>
6318
6319 PR tree-optimization/119616
6320 * tree-tailcall.cc (suitable_for_tail_call_opt_p): Move checking
6321 for addressable parameters from here ...
6322 (find_tail_calls): ... here. If cfun->has_musttail, don't clear
6323 opt_tailcalls for it, instead set a local flag and punt if we can't
6324 tail recurse optimize it.
6325
6326 2025-04-04 Jakub Jelinek <[email protected]>
6327
6328 PR middle-end/119613
6329 * cfgrtl.cc (purge_dead_edges): Remove REG_EH_REGION notes from
6330 tail calls.
6331
6332 2025-04-04 Jakub Jelinek <[email protected]>
6333
6334 PR target/115910
6335 * rtlanal.cc (pattern_cost): Return at least COSTS_N_INSNS (1)
6336 rather than just COSTS_N_INTNS (1) for cost <= 0.
6337 * config/i386/i386.cc (ix86_rtx_costs): Set *total to 1 for
6338 TARGET_64BIT x86_64_zext_immediate_operand constants.
6339
6340 2025-04-04 Andrew Pinski <[email protected]>
6341
6342 PR ipa/119599
6343 * tree-cfg.cc (pass_warn_function_return::execute): Turn return statements always
6344 into __builtin_unreachable calls.
6345
6346 2025-04-04 Jakub Jelinek <[email protected]>
6347
6348 PR tree-optimization/119614
6349 * tree-tailcall.cc (find_tail_calls): Handle also pointer types in the
6350 IPA-VRP workaround.
6351
6352 2025-04-03 Thomas Schwinge <[email protected]>
6353
6354 PR target/119573
6355 * config/nvptx/nvptx.cc (nvptx_encode_section_info): Don't set
6356 'DATA_AREA_CONST' for 'TREE_CONSTANT', or 'TREE_READONLY'.
6357 (nvptx_asm_declare_constant_name): Use '.global' instead of
6358 '.const'.
6359
6360 2025-04-03 Peter Bergner <[email protected]>
6361
6362 PR target/119308
6363 * config/rs6000/rs6000-logue.cc (rs6000_output_function_epilogue):
6364 Handle GCC COBOL for the tbtab lang field.
6365
6366 2025-04-03 Sandra Loosemore <[email protected]>
6367
6368 * doc/extend.texi (Statement Attributes): Copy-edit the musttail
6369 attribute documentation and correct the comment in the last
6370 example.
6371
6372 2025-04-03 Jan Hubicka <[email protected]>
6373
6374 * config/i386/x86-tune-costs.h (ix86_size_cost): Fix sizes of move
6375 instructions
6376
6377 2025-04-03 Jakub Jelinek <[email protected]>
6378
6379 PR cobol/119242
6380 * fold-const.h (native_encode_wide_int): Declare.
6381 * fold-const.cc (native_encode_wide_int): New function.
6382 (native_encode_int): Use it.
6383
6384 2025-04-03 Xi Ruoyao <[email protected]>
6385
6386 * config/loongarch/genopts/gen-evolution.awk: Avoid using gensub
6387 that FreeBSD awk lacks.
6388
6389 2025-04-03 Hongyu Wang <[email protected]>
6390
6391 PR target/119539
6392 * config/i386/i386.md (*<insn><mode>3_mask): Emit NF variant of
6393 rotate when APX_NF enabled, and use force_lowpart_subreg.
6394 (*<insn><mode>3_mask_1): Likewise.
6395
6396 2025-04-03 Sandra Loosemore <[email protected]>
6397
6398 PR c/101440
6399 * doc/extend.texi (Common Function Attributes): Clean up some
6400 confusing language in the description of the "access" attribute.
6401
6402 2025-04-02 Sandra Loosemore <[email protected]>
6403 GUO Yixuan <[email protected]>
6404
6405 PR driver/58973
6406 * common.opt (Werror, Werror=): Use less awkward wording in
6407 description.
6408 (pedantic-errors): Likewise.
6409 * doc/invoke.texi (Warning Options): Likewise for -Werror and
6410 -Werror= here.
6411
6412 2025-04-02 Robin Dapp <[email protected]>
6413
6414 PR target/119572
6415 * config/riscv/autovec.md: Mask broadcast value.
6416
6417 2025-04-02 Jin Ma <[email protected]>
6418
6419 * config/riscv/bitmanip.md: The optimization can only be applied if
6420 the high bit of operands[3] is set to 1.
6421
6422 2025-04-02 Sandra Loosemore <[email protected]>
6423
6424 PR c/114957
6425 PR c/78008
6426 PR c++/60972
6427 * doc/extend.texi (Structure-Layout Pragmas): Add @cindex
6428 entries and reformat the pragma descriptions to match the markup
6429 used for other pragmas. Document what #pragma pack(0) does.
6430 Add cross-references to similar attributes.
6431
6432 2025-04-02 Jakub Jelinek <[email protected]>
6433
6434 PR tree-optimization/119491
6435 * tree-tailcall.cc (single_non_eh_succ_edge): New function.
6436 (independent_of_stmt_p): Use single_non_eh_succ_edge (bb)->dest
6437 instead of single_succ (bb).
6438 (empty_eh_cleanup): New function.
6439 (find_tail_calls): Diagnose throwing of exceptions which do not
6440 propagate only if there are no EDGE_EH successor edges. If there are
6441 and the call is musttail, use empty_eh_cleanup to find if the cleanup
6442 is not empty. If not or the call is not musttail, use different
6443 diagnostics. Set is_noreturn even if there are successor edges. Use
6444 single_non_eh_succ_edge (abb) instead of single_succ_edge (abb). Punt
6445 on internal noreturn calls.
6446 (decrease_profile): Don't assert 0 or 1 successor edges.
6447 (eliminate_tail_call): Use
6448 single_non_eh_succ_edge (gsi_bb (t->call_gsi)) instead of
6449 single_succ_edge (gsi_bb (t->call_gsi)).
6450 (tree_optimize_tail_calls_1): Also look into basic blocks with
6451 single succ edge which is EDGE_EH for noreturn musttail calls.
6452
6453 2025-04-02 Richard Biener <[email protected]>
6454
6455 PR tree-optimization/119586
6456 * tree-vect-stmts.cc (vectorizable_load): Assume we got
6457 alignment analysis for VMAT_STRIDED_SLP wrong.
6458 (vectorizable_store): Likewise.
6459
6460 2025-04-02 Jakub Jelinek <[email protected]>
6461
6462 * doc/extend.texi (musttail statement attribute): Hint how
6463 to avoid -Wmaybe-musttail-local-addr warnings.
6464
6465 2025-04-02 Jakub Jelinek <[email protected]>
6466
6467 PR ipa/119376
6468 * common.opt (Wmusttail-local-addr, Wmaybe-musttail-local-addr): New.
6469 * tree-tailcall.cc (suitable_for_tail_call_opt_p): Don't fail for
6470 TREE_ADDRESSABLE PARM_DECLs for musttail calls if diag_musttail.
6471 Emit -Wmusttail-local-addr warnings.
6472 (maybe_error_musttail): Use gimple_location instead of directly
6473 accessing location member.
6474 (find_tail_calls): For musttail calls if diag_musttail, don't fail
6475 if address of local could escape to the call, instead emit
6476 -Wmaybe-musttail-local-addr warnings. Emit
6477 -Wmaybe-musttail-local-addr warnings also for address taken
6478 parameters.
6479 * common.opt.urls: Regenerate.
6480 * doc/extend.texi (musttail statement attribute): Clarify local
6481 variables without non-trivial destruction are considered out of scope
6482 before the tail call instruction.
6483 * doc/invoke.texi (-Wno-musttail-local-addr,
6484 -Wmaybe-musttail-local-addr): Document.
6485
6486 2025-04-02 Andi Kleen <[email protected]>
6487
6488 PR middle-end/119482
6489 * bitmap.cc (bitmap_set_bit): Write back value unconditionally
6490
6491 2025-04-02 Sandra Loosemore <[email protected]>
6492
6493 PR c++/118982
6494 * doc/extend.texi (Common Function Attributes): For the
6495 constructor/destructory attribute, be more explicit about the
6496 relationship between the constructor attribute and
6497 the C++ init_priority attribute, and add a cross-reference.
6498 Also document that most targets support this.
6499 (C++ Attributes): Similarly for the init_priority attribute.
6500
6501 2025-04-01 Sandra Loosemore <[email protected]>
6502
6503 PR c/118118
6504 * doc/extend.texi (Boolean Type): New section.
6505
6506 2025-04-01 Sandra Loosemore <[email protected]>
6507
6508 PR c/117689
6509 * doc/extend.texi (Incomplete Enums): Rename to....
6510 (Enum Extensions): This. Document support for specifying the
6511 underlying type of an enum as an extension in all earlier C
6512 and C++ standards. Document that a forward declaration with
6513 underlying type is not an incomplete type, and which dialects
6514 GCC supports that in.
6515
6516 2025-04-01 Tom Tromey <[email protected]>
6517
6518 * dwarf2out.cc (modified_type_die): Use mod_scope for
6519 ranged types, base types, and array types.
6520
6521 2025-04-01 Jakub Jelinek <[email protected]>
6522
6523 PR tree-optimization/119493
6524 * tree-tailcall.cc (find_tail_calls): Don't punt on tail recusion
6525 if some arguments don't have is_gimple_reg_type, only punt if they
6526 have non-POD types, or volatile, or addressable or (for now) it is
6527 not a musttail call. Set tailr_arg_needs_copy in those cases too.
6528 (eliminate_tail_call): Copy call arguments to params if they don't
6529 have is_gimple_reg_type, use temporaries if the argument is used
6530 later.
6531 (tree_optimize_tail_calls_1): Skip !is_gimple_reg_type
6532 tailr_arg_needs_copy parameters. Formatting fix.
6533
6534 2025-04-01 Jakub Jelinek <[email protected]>
6535
6536 PR rtl-optimization/119291
6537 * combine.cc (try_combine): For splitting of PARALLEL with
6538 2 independent SETs into i2 and i3 sets check reg_used_between_p
6539 of the SET_DESTs rather than just modified_between_p.
6540
6541 2025-04-01 Richard Biener <[email protected]>
6542
6543 PR tree-optimization/119534
6544 * tree-vect-stmts.cc (get_load_store_type): Reject
6545 VECTOR_BOOLEAN_TYPE_P offset vector type for emulated gathers.
6546
6547 2025-04-01 Martin Uecker <[email protected]>
6548
6549 PR c/119173
6550 * doc/invoke.texi (Warning Options): Move to general options.
6551
6552 2025-04-01 Jakub Jelinek <[email protected]>
6553
6554 PR gcov-profile/119535
6555 * profile.cc (branch_prob): Ignore any edges from bbs ending with
6556 musttail call, rather than only EDGE_FAKE edges from those to EXIT.
6557
6558 2025-04-01 Jakub Jelinek <[email protected]>
6559
6560 PR tree-optimization/119493
6561 * tree-tailcall.cc (tree_optimize_tail_calls_1): Ignore tail recursion
6562 candidates which need accumulators if there is at least one musttail
6563 non-recursive call.
6564
6565 2025-04-01 Jakub Jelinek <[email protected]>
6566
6567 PR middle-end/119537
6568 * gimplify.cc (find_used_user_labels): New function.
6569 (gimplify_call_expr): Don't remove complex assume expression at -O0
6570 if it defines any user labels.
6571 * gimple-low.cc: Include diagnostic-core.h.
6572 (assume_labels): New variable.
6573 (diagnose_assume_labels): New function.
6574 (lower_function_body): Call it via walk_gimple_seq if assume_labels
6575 is non-NULL, then BITMAP_FREE assume_labels.
6576 (find_assumption_locals_r): Record in assume_labels uids of user
6577 labels defined in assume attribute expressions.
6578
6579 2025-04-01 Thomas Schwinge <[email protected]>
6580
6581 PR target/119369
6582 * config/gcn/gcn-protos.h (gcn_asm_weaken_decl): Declare.
6583 * config/gcn/gcn.cc (gcn_asm_weaken_decl): New.
6584 * config/gcn/gcn-hsa.h (ASM_WEAKEN_DECL): '#define' to this.
6585
6586 2025-04-01 Richard Biener <[email protected]>
6587
6588 PR target/119549
6589 * common/config/i386/i386-common.cc (ix86_handle_option):
6590 Assert that both OPT_msse4 and OPT_mno_sse4 are never unset.
6591 * config/i386/i386-options.cc (ix86_valid_target_attribute_inner_p):
6592 Process negated OPT_msse4 as OPT_mno_sse4.
6593
6594 2025-04-01 Tobias Burnus <[email protected]>
6595
6596 PR middle-end/119559
6597 * gimplify.cc (modify_call_for_omp_dispatch): Reorder checks to avoid
6598 asserts and bogus diagnostic.
6599
6600 2025-04-01 Hu, Lin1 <[email protected]>
6601 Hongyu Wang <[email protected]>
6602
6603 PR target/119473
6604 * config/i386/sse.md
6605 (vaesdec_<mode>): Set attr "isa" as "avx,vaes_avx512vl", "type" as
6606 "sselog1", "mode" as "TI".
6607 (vaesdeclast_<mode>): Ditto.
6608 (vaesenc_<mode>): Ditto.
6609 (vaesenclast_<mode>): Ditto.
6610
6611 2025-04-01 Monk Chiang <[email protected]>
6612 Kito Cheng <[email protected]>
6613
6614 * config/riscv/riscv-v.cc: Add restrict for insert LMUL.
6615 * config/riscv/riscv-vector-builtins-types.def:
6616 Use RVV_REQUIRE_ELEN_64 to check LMUL number.
6617 * config/riscv/riscv-vector-switch.def: Likewise.
6618 * config/riscv/vector-iterators.md: Check TARGET_VECTOR_ELEN_64
6619 rather than "TARGET_MIN_VLEN > 32" for all iterator.
6620
6621 2025-04-01 Lulu Cheng <[email protected]>
6622
6623 * doc/invoke.texi: Corrected the position of '-mtls-dialect=opt'
6624 option.
6625
6626 2025-03-31 Jørgen Kvalsvik <[email protected]>
6627
6628 PR gcov-profile/119553
6629 * path-coverage.cc (find_paths): Return path count, don't
6630 write to gcno, and rename to ...
6631 (instrument_prime_paths): ... this.
6632 * profile.cc (branch_prob): Write path counts to gcno.
6633
6634 2025-03-31 Marek Polacek <[email protected]>
6635
6636 PR c++/116960
6637 PR c++/119303
6638 * diagnostic.cc (diagnostic_context::report_diagnostic): Check for
6639 non-zero m_lock later, after checking diagnostic_enabled.
6640
6641 2025-03-31 Andre Simoes Dias Vieira <[email protected]>
6642
6643 * config/aarch64/aarch64-option-extensions.def (SME): Remove SVE2 as
6644 prerequisite and add in FCMA and F16FML.
6645 * config/aarch64/aarch64.cc (aarch64_override_options_internal):
6646 Diagnose use of SME without SVE2 and implicitly enable SVE2 when
6647 enabling SME after streaming mode diagnosis.
6648 * doc/invoke.texi (sme): Document that this can only be used with the
6649 sve2 extension.
6650
6651 2025-03-31 Richard Biener <[email protected]>
6652
6653 PR tree-optimization/119532
6654 * tree-tailcall.cc (process_assignment): FAIL for fixed-point
6655 typed functions.
6656
6657 2025-03-31 Tobias Burnus <[email protected]>
6658
6659 PR middle-end/119541
6660 * gimplify.cc (modify_call_for_omp_dispatch): Limit interop claues
6661 processing by the number of append_args arguments.
6662
6663 2025-03-31 Kyrylo Tkachov <[email protected]>
6664
6665 PR middle-end/119442
6666 * expr.cc (store_constructor): Also allow element modes explicitly
6667 accepted by target vec_duplicate pattern.
6668
6669 2025-03-31 Richard Biener <[email protected]>
6670
6671 PR target/119010
6672 * config/i386/sse.md (*vmov<mode>_constm1_pternlog_false_dep):
6673 Add mode attribute.
6674
6675 2025-03-31 Richard Biener <[email protected]>
6676
6677 PR target/119010
6678 * config/i386/zn4zn5.md (znver4_sse_mov_fp_load,
6679 znver5_sse_mov_fp_load): Also match ssemov2.
6680
6681 2025-03-31 Richard Biener <[email protected]>
6682
6683 PR target/119010
6684 * config/i386/zn4zn5.md (znver4_sse_log_evex_store,
6685 znver5_sse_log_evex_store): New reservations.
6686
6687 2025-03-31 Richard Biener <[email protected]>
6688
6689 PR target/119010
6690 * config/i386/zn4zn5.md (znver4_sse_icvt): Use sseicvt.
6691 (znver4_sse_icvt_store): Likewise.
6692 (znver5_sse_icvt_store): Likewise.
6693 (znver4_sse_icvt2): New.
6694
6695 2025-03-31 Richard Biener <[email protected]>
6696
6697 PR target/119010
6698 * config/i386/zn4zn5.md (znver4_sse_div_pd,
6699 znver4_sse_div_pd_load, znver5_sse_div_pd_load): Handle DFmode.
6700
6701 2025-03-31 Richard Biener <[email protected]>
6702
6703 PR target/119010
6704 * config/i386/zn4zn5.md (znver4_sse_cmp_avx128,
6705 znver5_sse_cmp_avx128): Handle TImode.
6706 (znver4_sse_cmp_avx256, znver5_sse_cmp_avx256): Handle OImode.
6707 (znver4_sse_cmp_avx512, znver5_sse_cmp_avx512): Handle XImode.
6708
6709 2025-03-31 Richard Biener <[email protected]>
6710
6711 PR target/119010
6712 * config/i386/zn4zn5.md (znver4_sse_test): Drop test of
6713 prefix_extra attribute.
6714
6715 2025-03-31 Richard Biener <[email protected]>
6716
6717 PR target/119010
6718 * config/i386/zn4zn5.md (znver4_sse_log1): Rename to
6719 znver4_sse_log1_store.
6720 (znver5_sse_log1): Rename to znver5_sse_log1_store.
6721 (znver4_sse_log1): New memory-less variant.
6722
6723 2025-03-30 Sandra Loosemore <[email protected]>
6724
6725 * doc/extend.texi (New/Delete Builtins): Cleanup up the text and
6726 explicitly list the builtins being documented.
6727
6728 2025-03-30 Sandra Loosemore <[email protected]>
6729
6730 PR other/42270
6731 * doc/extend.texi (Numeric Builtins): Move Integer Overflow Builtins
6732 section here, as a subsection.
6733
6734 2025-03-30 Sandra Loosemore <[email protected]>
6735
6736 PR other/42270
6737 * doc/extend.texi (Atomic Memory Access): New section.
6738 (__sync Builtins): Make it a subsection of the above.
6739 (Atomic Memory Access): Likewise.
6740 (x86 specific memory model extensions for transactional memory):
6741 Delete this section, incorporating the text into the discussion
6742 of __atomic builtins.
6743
6744 2025-03-30 Sandra Loosemore <[email protected]>
6745
6746 PR other/42270
6747 * doc/extend.texi (Built-in Functions): Incorporate some text
6748 formerly in "Other Builtins" into the introduction. Adjust
6749 menu for new sections.
6750 (Library Builtins): New section, split from "Other Builtins".
6751 (Numeric Builtins): Likewise.
6752 (Stack Allocation): Likewise.
6753 (Constructing Calls): Move __builtin_call_with_static_chain here.
6754 (Object Size Checking): Minor copy-editing.
6755 (Other Builtins): Move text to new sections listed above. Delete
6756 duplicate docs for object-size checking builtins.
6757 * doc/invoke.texi (C dialect options): Update @xref for -fno-builtin.
6758
6759 2025-03-30 Sandra Loosemore <[email protected]>
6760
6761 PR other/42270
6762 * doc/extend.texi (C Extensions): Move menu items for
6763 builtin-related sections to...
6764 (Built-in Functions): New chapter.
6765 * doc/gcc.texi (Introduction): Add menu entry for new chapter.
6766
6767 2025-03-30 Sandra Loosemore <[email protected]>
6768
6769 PR other/42270
6770 * doc/extend.texi (Attributes): New section.
6771 (Function Attributes): Make it a subsection of the new section.
6772 (Variable Attributes): Likewise.
6773 (Type Attributes): Likewise.
6774 (Label Attributes): Likewise.
6775 (Enumerator Attributes): Likewise.
6776 (Attribute Syntax): Likewise.
6777
6778 2025-03-30 Sandra Loosemore <[email protected]>
6779
6780 PR other/42270
6781 * doc/extend.texi (Function Attributes): Merge text from "Target
6782 Format Checks" into the main discussion of the format and
6783 format_arg attributes.
6784 (Target Format Checks): Delete section.
6785
6786 2025-03-30 Maciej W. Rozycki <[email protected]>
6787
6788 PR target/117759
6789 * config/alpha/alpha-protos.h
6790 (alpha_expand_unaligned_store_safe_partial): New prototype.
6791 * config/alpha/alpha.cc (alpha_expand_movmisalign)
6792 (alpha_expand_block_move, alpha_expand_block_clear): Handle
6793 TARGET_SAFE_PARTIAL.
6794 (alpha_expand_unaligned_store_safe_partial)
6795 (alpha_expand_unaligned_store_words_safe_partial)
6796 (alpha_expand_clear_safe_partial_nobwx): New functions.
6797 * config/alpha/alpha.md (insvmisaligndi): Handle
6798 TARGET_SAFE_PARTIAL.
6799 * config/alpha/alpha.opt (msafe-partial): New option.
6800 * config/alpha/alpha.opt.urls: Regenerate.
6801 * doc/invoke.texi (Option Summary, DEC Alpha Options): Document
6802 the new option.
6803
6804 2025-03-30 Maciej W. Rozycki <[email protected]>
6805
6806 PR target/117759
6807 * config/alpha/alpha-modes.def (OI): New integer mode.
6808 * config/alpha/alpha-protos.h (alpha_expand_mov_safe_bwa): New
6809 prototype.
6810 * config/alpha/alpha.cc (alpha_expand_mov_safe_bwa): New
6811 function.
6812 (alpha_secondary_reload): Handle TARGET_SAFE_BWA.
6813 * config/alpha/alpha.md (aligned_store_safe_bwa)
6814 (unaligned_store<mode>_safe_bwa, reload_out<mode>_safe_bwa)
6815 (reload_out<mode>_unaligned_safe_bwa): New expanders.
6816 (mov<mode>, movcqi, reload_out<mode>_aligned): Handle
6817 TARGET_SAFE_BWA.
6818 (reload_out<mode>): Guard against TARGET_SAFE_BWA.
6819 * config/alpha/alpha.opt (msafe-bwa): New option.
6820 * config/alpha/alpha.opt.urls: Regenerate.
6821 * doc/invoke.texi (Option Summary, DEC Alpha Options): Document
6822 the new option.
6823
6824 2025-03-30 Maciej W. Rozycki <[email protected]>
6825
6826 * function.h (struct function): Add
6827 `split_basic_blocks_after_reload' member.
6828 * lra.cc (lra): Handle it.
6829 * reload1.cc (reload): Likewise.
6830
6831 2025-03-30 Maciej W. Rozycki <[email protected]>
6832
6833 * config/alpha/alpha-protos.h (alpha_emit_unlikely_jump): New
6834 prototype.
6835 * config/alpha/alpha.cc (emit_unlikely_jump): Rename to...
6836 (alpha_emit_unlikely_jump): ... this. Return the insn emitted.
6837 (alpha_split_atomic_op, alpha_split_compare_and_swap)
6838 (alpha_split_compare_and_swap_12, alpha_split_atomic_exchange)
6839 (alpha_split_atomic_exchange_12): Update call sites accordingly.
6840
6841 2025-03-30 LIU Hao <[email protected]>
6842
6843 * config/mingw/winnt.cc (mingw_pe_file_end): Add `.p2align`.
6844
6845 2025-03-29 Iain Sandoe <[email protected]>
6846
6847 PR cobol/119283
6848 * config.in: Regenerate.
6849 * configure: Regenerate.
6850 * configure.ac: Check for host memrchr.
6851
6852 2025-03-29 Lulu Cheng <[email protected]>
6853
6854 * doc/invoke.texi: Modify the description of '-mld-seq-sa'.
6855
6856 2025-03-29 Lulu Cheng <[email protected]>
6857
6858 * config/loongarch/loongarch-def.cc
6859 (la464_align): Add settings for labels.
6860 (la664_align): Likewise.
6861 * config/loongarch/loongarch-opts.cc
6862 (loongarch_target_option_override): Likewise.
6863 * config/loongarch/loongarch-tune.h
6864 (struct loongarch_align): Implement the function `label_`.
6865
6866 2025-03-28 Jakub Jelinek <[email protected]>
6867
6868 * common.opt.urls: Regenerate.
6869
6870 2025-03-28 Jakub Jelinek <[email protected]>
6871
6872 * Makefile.in (gcc.srcextra): Use sed to turn .../gcc/gengtype-lex.l
6873 in #line directives into just gengtype-lex.l.
6874
6875 2025-03-28 Andrew MacLeod <[email protected]>
6876
6877 * range-op.cc (operator_mult::op1_range): If the LHS does not
6878 contain zero, return non-zero.
6879
6880 2025-03-28 Jakub Jelinek <[email protected]>
6881
6882 PR tree-optimization/119483
6883 * tree-tailcall.cc (find_tail_calls): Handle noreturn musttail
6884 calls.
6885 (eliminate_tail_call): Likewise.
6886 (tree_optimize_tail_calls_1): If cfun->has_musttail and
6887 diag_musttail, handle also basic blocks with no successors
6888 with noreturn musttail calls.
6889 * calls.cc (can_implement_as_sibling_call_p): Allow ECF_NORETURN
6890 calls if they are musttail calls.
6891
6892 2025-03-28 Jakub Jelinek <[email protected]>
6893
6894 PR ipa/119484
6895 * ipa-sra.cc (isra_analyze_call): Don't set m_return_ignored if
6896 gimple_call_must_tail_p even if it doesn't have lhs.
6897
6898 2025-03-28 Richard Biener <[email protected]>
6899
6900 * fold-const.h (native_encode_real): Export.
6901 * fold-const.cc (native_encode_real): Change API to take
6902 mode and REAL_VALUE_TYPE.
6903 (native_encode_expr): Adjust.
6904
6905 2025-03-27 Uros Bizjak <[email protected]>
6906
6907 * config/i386/i386.cc (ix86_redzone_clobber): Use integer, not rtx
6908 as the third argument of plus_constant.
6909
6910 2025-03-27 Richard Biener <[email protected]>
6911
6912 PR target/119010
6913 * config/i386/zn4zn5.md (znver4_insn_both, znver5_insn_both):
6914 New reservation for ALU ops with load and store.
6915
6916 2025-03-27 Richard Biener <[email protected]>
6917
6918 PR target/119010
6919 * config/i386/zn4zn5.md (znver4_sse_add, znver4_sse_add_load,
6920 znver5_sse_add_load, znver4_sse_add1, znver4_sse_add1_load,
6921 znver5_sse_add1_load, znver4_sse_mul, znver4_sse_mul_load,
6922 znver5_sse_mul_load, znver4_sse_cvt, znver4_sse_cvt_load,
6923 znver5_sse_cvt_load, znver4_sse_shuf, znver5_sse_shuf,
6924 znver4_sse_shuf_load, znver5_sse_shuf_load,
6925 znver4_sse_cmp_avx128, znver5_sse_cmp_avx128,
6926 znver4_sse_cmp_avx128_load, znver5_sse_cmp_avx128_load):
6927 Also handle DFmode.
6928 (znver4_sse_muladd_load, znver5_sse_muladd_load): Use
6929 ssemuladd type.
6930
6931 2025-03-27 Tobias Burnus <[email protected]>
6932
6933 * gimplify.cc (modify_call_for_omp_dispatch): Remove sorry.
6934
6935 2025-03-27 Richard Earnshaw <[email protected]>
6936
6937 * config/arm/neon.md (<fmaxmin><mode>3): Move pattern from here...
6938 * config/arm/vec-common.md (<fmaxmin><mode>3): ... to here. Convert
6939 to define_expand and disable the pattern when denormal values might
6940 get truncated to zero. Iterate on VF to add V4HF and V8HF variants.
6941
6942 2025-03-27 Hu, Lin1 <[email protected]>
6943
6944 PR target/119425
6945 * config/i386/sse.md:
6946 (vec_set<mode>_0): Set the alternative with constraint "jm"'s
6947 attribute "addr" to "gpr16".
6948 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>):
6949 Ditto.
6950 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ditto.
6951 (avx2_pblendd<mode>): Ditto.
6952 (aesenc): Ditto.
6953 (aesenclast): Ditto.
6954 (aesdec): Ditto.
6955 (aesdeclast): Ditto.
6956 (vaesdec_<mode>): Ditto.
6957 (vaesdeclast_<mode>): Ditto.
6958 (vaesenc_<mode>):: Ditto.
6959 (vaesenclast_<mode>):: Ditto.
6960 (aes<aesklvariant>u8): Ditto.
6961 (*aes<aeswideklvariant>u8): Ditto.
6962
6963 2025-03-27 Lulu Cheng <[email protected]>
6964
6965 PR target/119408
6966 * config/loongarch/loongarch.cc
6967 (loongarch_c_mode_for_suffix): New.
6968 (TARGET_C_MODE_FOR_SUFFIX): Define.
6969
6970 2025-03-26 Jørgen Kvalsvik <[email protected]>
6971
6972 * builtins.cc (expand_builtin_fork_or_exec): Call
6973 coverage_instrumentation_p.
6974 * ipa-inline.cc (can_early_inline_edge_p): Likewise.
6975 * passes.cc (finish_optimization_passes): Likewise.
6976 * profile.cc (coverage_instrumentation_p): New function.
6977 * profile.h (coverage_instrumentation_p): New declaration.
6978 * tree-profile.cc (tree_profiling): Call
6979 coverage_instrumentation_p.
6980 (pass_ipa_tree_profile::gate): Likewise.
6981 * value-prof.h (coverage_instrumentation_p): New declaration.
6982
6983 2025-03-26 Jørgen Kvalsvik <[email protected]>
6984
6985 * Makefile.in (OBJS): Add prime-paths.o, path-coverage.o.
6986 (GTFILES): Add prime-paths.cc, path-coverage.cc
6987 (GCOV_OBJS): Add graphds.o, prime-paths.o, bitmap.o
6988 * builtins.cc (expand_builtin_fork_or_exec): Check
6989 path_coverage_flag.
6990 * collect2.cc (main): Add -fno-path-coverage to OBSTACK.
6991 * common.opt: Add new options -fpath-coverage,
6992 -fpath-coverage-limit, -Wcoverage-too-many-paths
6993 * doc/gcov.texi: Add --prime-paths, --prime-paths-lines,
6994 --prime-paths-source documentation.
6995 * doc/invoke.texi: Add -fpath-coverage, -fpath-coverage-limit,
6996 -Wcoverage-too-many-paths documentation.
6997 * gcc.cc: Link gcov on -fpath-coverage.
6998 * gcov-counter.def (GCOV_COUNTER_PATHS): New.
6999 * gcov-io.h (GCOV_TAG_PATHS): New.
7000 (GCOV_TAG_PATHS_LENGTH): New.
7001 (GCOV_TAG_PATHS_NUM): New.
7002 * gcov.cc (class path_info): New.
7003 (struct coverage_info): Add paths, paths_covered.
7004 (find_prime_paths): New.
7005 (add_path_counts): New.
7006 (find_arc): New.
7007 (print_usage): Add -e, --prime-paths, --prime-paths-lines,
7008 --prime-paths-source.
7009 (process_args): Likewise.
7010 (json_set_prime_path_coverage): New.
7011 (output_json_intermediate_file): Call
7012 json_set_prime_path_coverage.
7013 (process_all_functions): Call find_prime_paths.
7014 (generate_results): Call add_path_counts.
7015 (read_graph_file): Read path counters.
7016 (read_count_file): Likewise.
7017 (function_summary): Print path counts.
7018 (file_summary): Likewise.
7019 (print_source_line): New.
7020 (print_prime_path_lines): New.
7021 (print_inlined_separator): New.
7022 (print_prime_path_source): New.
7023 (output_path_coverage): New.
7024 (output_lines): Print path coverage.
7025 * ipa-inline.cc (can_early_inline_edge_p): Check
7026 path_coverage_flag.
7027 * passes.cc (finish_optimization_passes): Likewise.
7028 * profile.cc (branch_prob): Likewise.
7029 * selftest-run-tests.cc (selftest::run_tests): Run path coverage
7030 tests.
7031 * selftest.h (path_coverage_cc_tests): New declaration.
7032 * tree-profile.cc (tree_profiling): Check path_coverage_flag.
7033 (pass_ipa_tree_profile::gate): Likewise.
7034 * path-coverage.cc: New file.
7035 * prime-paths.cc: New file.
7036
7037 2025-03-26 Jørgen Kvalsvik <[email protected]>
7038
7039 * gcov.cc (generate_results): Count branches, conditions.
7040 (function_summary): Output branch, calls, condition count.
7041
7042 2025-03-26 Thomas Schwinge <[email protected]>
7043
7044 PR driver/101544
7045 * gcc.cc (driver_handle_option): Forward host '-lstdc++' to
7046 offloading compilation.
7047 * config/gcn/mkoffload.cc (main): Adjust.
7048 * config/nvptx/mkoffload.cc (main): Likewise.
7049
7050 2025-03-26 Jakub Jelinek <[email protected]>
7051
7052 PR tree-optimization/119417
7053 * tree-ssa-math-opts.cc (convert_mult_to_widen): Before changing
7054 typeN because actual_precision/from_unsignedN differs cast rhsN
7055 to typeN if it has a different type.
7056 (convert_plusminus_to_widen): Before changing
7057 typeN because actual_precision/from_unsignedN differs cast mult_rhsN
7058 to typeN if it has a different type.
7059
7060 2025-03-26 Jakub Jelinek <[email protected]>
7061 Andi Kleen <[email protected]>
7062
7063 PR gcov-profile/118442
7064 * profile.cc (branch_prob): Ignore EDGE_FAKE edges from musttail calls
7065 to EXIT.
7066
7067 2025-03-26 Jakub Jelinek <[email protected]>
7068
7069 PR target/119450
7070 * config/i386/i386.md (narrow test peephole2): Test for
7071 offsettable_memref_p in condition.
7072
7073 2025-03-26 Richard Biener <[email protected]>
7074
7075 PR target/119010
7076 * config/i386/zn4zn5.md (znver4_sse_mov_fp, znver4_sse_mov_fp_load,
7077 znver5_sse_mov_fp_load, znver4_sse_mov_fp_store,
7078 znver5_sse_mov_fp_store): Also match V1SF and DF.
7079
7080 2025-03-26 Richard Biener <[email protected]>
7081
7082 PR target/119010
7083 * config/i386/zn4zn5.md (znver4_imov_double_store,
7084 znver5_imov_double_store, znver4_imov_store, znver5_imov_store):
7085 New reservations for integer stores.
7086
7087 2025-03-26 Richard Biener <[email protected]>
7088
7089 PR middle-end/118795
7090 * match.pd (vec_perm <vec_perm <a, b>> -> vec_perm <a, b>):
7091 Use the appropriate check to see whether the original
7092 outer permute was supported.
7093
7094 2025-03-26 Hu, Lin1 <[email protected]>
7095
7096 * config/i386/avx10_2-512convertintrin.h (_mm512_mask_cvtx2ps_ph): Formatting fixes
7097 (_mm512_mask_cvtx_round2ps_ph): Ditto
7098 (_mm512_maskz_cvtx_round2ps_ph): Ditto
7099 (_mm512_cvtbiassph_bf8): Rename to _mm512_cvts_biasph_bf8.
7100 (_mm512_mask_cvtbiassph_bf8): Rename to _mm512_mask_cvts_biasph_bf8.
7101 (_mm512_maskz_cvtbiassph_bf8): Rename to _mm512_maskz_cvts_biasph_bf8.
7102 (_mm512_cvtbiassph_hf8): Rename to _mm512_cvts_biasph_hf8.
7103 (_mm512_mask_cvtbiassph_hf8): Rename to _mm512_mask_cvts_biasph_hf8.
7104 (_mm512_maskz_cvtbiassph_hf8): Rename to _mm512_maskz_cvts_biasph_hf8.
7105 (_mm512_cvts2ph_bf8): Rename to _mm512_cvts_2ph_bf8.
7106 (_mm512_mask_cvts2ph_bf8): Rename to _mm512_mask_cvts_2ph_bf8.
7107 (_mm512_maskz_cvts2ph_bf8): Rename to _mm512_maskz_cvts_2ph_bf8.
7108 (_mm512_cvts2ph_hf8): Rename to _mm512_cvts_2ph_hf8.
7109 (_mm512_mask_cvts2ph_hf8): Rename to _mm512_mask_cvts_2ph_hf8.
7110 (_mm512_maskz_cvts2ph_hf8): Rename to _mm512_maskz_cvts_2ph_hf8.
7111 (_mm512_cvtsph_bf8): Rename to _mm512_cvts_ph_bf8.
7112 (_mm512_mask_cvtsph_bf8): Rename to _mm512_mask_cvts_ph_bf8.
7113 (_mm512_maskz_cvtsph_bf8): Rename to _mm512_maskz_cvts_ph_bf8.
7114 (_mm512_cvtsph_hf8): Rename to _mm512_cvts_ph_hf8.
7115 (_mm512_mask_cvtsph_hf8): Rename to _mm512_mask_cvts_ph_hf8.
7116 (_mm512_maskz_cvtsph_hf8): Rename to _mm512_maskz_cvts_ph_hf8.
7117 * config/i386/avx10_2convertintrin.h
7118 (_mm_cvtbiassph_bf8): Rename to _mm_cvts_biasph_bf8.
7119 (_mm_mask_cvtbiassph_bf8): Rename to _mm_mask_cvts_biasph_bf8.
7120 (_mm_maskz_cvtbiassph_bf8): Rename to _mm_maskz_cvts_biasph_bf8.
7121 (_mm256_cvtbiassph_bf8): Rename to _mm256_cvts_biasph_bf8.
7122 (_mm256_mask_cvtbiassph_bf8): Rename to _mm256_mask_cvts_biasph_bf8.
7123 (_mm256_maskz_cvtbiassph_bf8): Rename to _mm256_maskz_cvts_biasph_bf8.
7124 (_mm_cvtbiassph_hf8): Rename to _mm_cvts_biasph_hf8.
7125 (_mm_mask_cvtbiassph_hf8): Rename to _mm_mask_cvts_biasph_hf8.
7126 (_mm_maskz_cvtbiassph_hf8): Rename to _mm_maskz_cvts_biasph_hf8.
7127 (_mm256_cvtbiassph_hf8): Rename to _mm256_cvts_biasph_hf8.
7128 (_mm256_mask_cvtbiassph_hf8): Rename to _mm256_mask_cvts_biasph_hf8.
7129 (_mm256_maskz_cvtbiassph_hf8): Rename to _mm256_maskz_cvts_biasph_hf8.
7130 (_mm_cvts2ph_bf8): Rename to _mm_cvts_2ph_bf8.
7131 (_mm_mask_cvts2ph_bf8): Rename to _mm_mask_cvts_2ph_bf8.
7132 (_mm_maskz_cvts2ph_bf8): Rename to _mm_maskz_cvts_2ph_bf8.
7133 (_mm256_cvts2ph_bf8): Rename to _mm256_cvts_2ph_bf8.
7134 (_mm256_mask_cvts2ph_bf8): Rename to _mm256_mask_cvts_2ph_bf8.
7135 (_mm256_maskz_cvts2ph_bf8): Rename to _mm256_maskz_cvts_2ph_bf8.
7136 (_mm_cvts2ph_hf8): Rename to _mm_cvts_2ph_hf8.
7137 (_mm_mask_cvts2ph_hf8): Rename to _mm_mask_cvts_2ph_hf8.
7138 (_mm_maskz_cvts2ph_hf8): Rename to _mm_maskz_cvts_2ph_hf8.
7139 (_mm256_cvts2ph_hf8): Rename to _mm256_cvts_2ph_hf8.
7140 (_mm256_mask_cvts2ph_hf8): Rename to _mm256_mask_cvts_2ph_hf8.
7141 (_mm256_maskz_cvts2ph_hf8): Rename to _mm256_maskz_cvts_2ph_hf8.
7142 (_mm_cvtsph_bf8): Rename to _mm_cvts_ph_bf8.
7143 (_mm_mask_cvtsph_bf8): Rename to _mm_mask_cvts_ph_bf8.
7144 (_mm_maskz_cvtsph_bf8): Rename to _mm_maskz_cvts_ph_bf8.
7145 (_mm256_cvtsph_bf8): Rename to _mm256_cvts_ph_bf8.
7146 (_mm256_mask_cvtsph_bf8): Rename to _mm256_mask_cvts_ph_bf8.
7147 (_mm256_maskz_cvtsph_bf8): Rename to _mm256_maskz_cvts_ph_bf8.
7148 (_mm_cvtsph_hf8): Rename to _mm_cvts_ph_hf8.
7149 (_mm_mask_cvtsph_hf8): Rename to _mm_mask_cvts_ph_hf8.
7150 (_mm_maskz_cvtsph_hf8): Rename to _mm_maskz_cvts_ph_hf8.
7151 (_mm256_cvtsph_hf8): Rename to _mm256_cvts_ph_hf8.
7152 (_mm256_mask_cvtsph_hf8): Rename to _mm256_mask_cvts_ph_hf8.
7153 (_mm256_maskz_cvtsph_hf8): Rename to _mm256_maskz_cvts_ph_hf8.
7154
7155 2025-03-25 Iain Sandoe <[email protected]>
7156
7157 * gcov.cc (get_gcov_intermediate_filename): Use lbasename().
7158
7159 2025-03-25 Iain Sandoe <[email protected]>
7160
7161 PR other/119250
7162 * config.in: Regenerate.
7163 * configure: Regenerate.
7164 * configure.ac: Match the configure test in libiberty when checking
7165 the basename decl.
7166
7167 2025-03-25 Sandra Loosemore <[email protected]>
7168 Tobias Burnus <[email protected]>
7169
7170 * gimplify.cc (modify_call_for_omp_dispatch): Adjust arguments.
7171 Remove the "sorry" for the case where new interop objects must be
7172 constructed, and add code to make it work instead.
7173 (expand_variant_call_expr): Adjust arguments and call to
7174 modify_call_for_omp_dispatch.
7175 (gimplify_variant_call_expr): Simplify logic for calling
7176 expand_variant_call_expr.
7177
7178 2025-03-25 Jakub Jelinek <[email protected]>
7179
7180 PR target/96226
7181 PR target/119428
7182 * config/i386/i386.md (splitter after *<rotate_insn><mode>3_mask,
7183 splitter after *<rotate_insn><mode>3_mask_1): Revert 2020-12-05
7184 changes.
7185
7186 2025-03-25 Vineet Gupta <[email protected]>
7187
7188 PR target/119224
7189 * config/riscv/autovec.md: Disable abd splitter.
7190
7191 2025-03-25 Tobias Burnus <[email protected]>
7192
7193 PR middle-end/119325
7194 * doc/install.texi (gcn): Change ROCm > 6.3.2 to >6.3.3 for generic
7195 support; mention Newlib commit that fixes a SIMD math issue.
7196
7197 2025-03-25 Tobias Burnus <[email protected]>
7198
7199 PR middle-end/118627
7200 * omp-general.cc (omp_parse_access_method): Change to return void.
7201 (omp_parse_access_methods): Return void; remove 'if' around a
7202 function call.
7203 (omp_parse_expr): Remove 'if' around a function call.
7204
7205 2025-03-25 Richard Earnshaw <[email protected]>
7206
7207 * config/arm/arm.md (<US>mull): Add alternatives that allow Rs
7208 to be tied to either Rdlo or Rdhi.
7209
7210 2025-03-25 Richard Earnshaw <[email protected]>
7211
7212 PR middle-end/117811
7213 * optabs.cc (expand_binop_directly): Remove LAST as an argument,
7214 instead record the last insn on entry. Only delete insns if
7215 we need to restart and restart by calling ourself, not expand_binop.
7216 (expand_binop): Update callers to expand_binop_directly. If it
7217 fails to expand the operation, delete back to LAST.
7218
7219 2025-03-25 Jakub Jelinek <[email protected]>
7220
7221 PR ipa/119376
7222 * tree-tailcall.cc (suitable_for_tail_opt_p): Add DIAG_MUSTTAIL
7223 argument, propagate it down to maybe_error_musttail.
7224 (suitable_for_tail_call_opt_p): Likewise.
7225 (maybe_error_musttail): Add DIAG_MUSTTAIL argument. Don't emit error
7226 for gimple_call_must_tail_p calls if it is false.
7227 (find_tail_calls): Add DIAG_MUSTTAIL argument, propagate it down to
7228 maybe_error_musttail, suitable_for_tail_opt_p,
7229 suitable_for_tail_call_opt_p and find_tail_calls calls.
7230 (tree_optimize_tail_calls_1): Add DIAG_MUSTTAIL argument, propagate
7231 it down to find_tail_calls and if set, clear cfun->has_musttail flag
7232 at the end. Rename OPT_MUSTCALL argument to OPT_MUSTTAIL.
7233 (execute_tail_calls): Pass true to DIAG_MUSTTAIL
7234 tree_optimize_tail_calls_1 argument.
7235 (pass_tail_recursion::execute): Pass false to DIAG_MUSTTAIL
7236 tree_optimize_tail_calls_1 argument.
7237 (pass_musttail::gate): Don't test flag_optimize_sibling_calls.
7238 (pass_musttail::execute): Pass true to DIAG_MUSTTAIL
7239 tree_optimize_tail_calls_1 argument.
7240
7241 2025-03-24 Andrew Pinski <[email protected]>
7242
7243 PR tree-optimization/118616
7244 * tree-vect-generic.cc (expand_vector_conversion): Add
7245 an assert that converts vect is non empty if
7246 supportable_indirect_convert_operation returns true.
7247
7248 2025-03-24 Thomas Schwinge <[email protected]>
7249
7250 PR target/101544
7251 * config/nvptx/nvptx.cc (nvptx_asm_output_def_from_decls)
7252 [ACCEL_COMPILER]: Special-case certain host-setup symbol aliases.
7253 * varasm.cc (do_assemble_alias) [ACCEL_COMPILER]: Adjust.
7254
7255 2025-03-24 Thomas Schwinge <[email protected]>
7256
7257 * config/nvptx/nvptx.cc (default_ptx_version_option): Default at
7258 least to '-mptx=6.3'.
7259 * doc/invoke.texi (Nvidia PTX Options): Update '-mptx=[...]'.
7260
7261 2025-03-24 Haochen Jiang <[email protected]>
7262
7263 * common/config/i386/cpuinfo.h
7264 (get_available_features): Change to FEATURE_AVX10_1.
7265 * common/config/i386/i386-common.cc
7266 (OPTION_MASK_ISA2_AVX10_1_512_SET): Renamed to ...
7267 (OPTION_MASK_ISA2_AVX10_1_SET): ... this.
7268 (OPTION_MASK_ISA2_AVX10_2_SET): Use renamed macro.
7269 (OPTION_MASK_ISA2_AVX10_1_UNSET): Ditto.
7270 (ix86_handle_option): Ditto.
7271 (processor_alias_table): Use P_PROC_AVX10_1.
7272 * common/config/i386/i386-cpuinfo.h
7273 (enum feature_priority): Rename from AVX10_1_512 to AVX10_1.
7274 (enum processor_features): Ditto.
7275 * common/config/i386/i386-isas.h: Add avx10.1.
7276 * config/i386/driver-i386.cc
7277 (host_detect_local_cpu): Use renamed enum.
7278 * config/i386/i386-c.cc
7279 (ix86_target_macros_internal): Rename to avx10.1.
7280 * config/i386/i386-isa.def (AVX10_1_512): Rename to ...
7281 (AVX10_1): ... this.
7282 * config/i386/i386-options.cc (isa2_opts): Rename to avx10.1.
7283 (ix86_valid_target_attribute_inner_p): Add avx10.1.
7284 (ix86_option_override_internal): Rename to AVX10_1.
7285 Revise warnings to mention behavior change for option
7286 combination in GCC 16.
7287 * config/i386/i386.h (PTA_DIAMONDRAPIDS): Use AVX10_1.
7288 * config/i386/i386.opt: Add avx10.1.
7289 Add deprecate warnings for mevex512 and mavx10.1-256/512.
7290 * config/i386/i386.opt.urls: Add avx10.1.
7291 * doc/extend.texi: Ditto.
7292 * doc/sourcebuild.texi: Ditto.
7293
7294 2025-03-24 Haochen Jiang <[email protected]>
7295
7296 * common/config/i386/cpuinfo.h
7297 (get_available_features): Revise the logic AVX10 version.
7298 * common/config/i386/i386-common.cc
7299 (OPTION_MASK_ISA2_AVX10_2_256_SET): Removed.
7300 (OPTION_MASK_ISA2_AVX10_2_512_SET): Ditto.
7301 (OPTION_MASK_ISA2_AVX10_2_SET): New.
7302 (OPTION_MASK_ISA2_AMX_AVX512_SET): Use AVX10.2 macro.
7303 (OPTION_MASK_ISA2_AVX10_2_UNSET): Ditto.
7304 (ix86_handle_option): Remove avx10.2-256 part. Adjust avx10.2.
7305 * common/config/i386/i386-cpuinfo.h
7306 (enum processor_features): Remove FEATURE_AVX10_2_256 and skip
7307 the value for it. Change the name from FEATURE_AVX10_2_512 to
7308 FEATURE_AVX10_2.
7309 * common/config/i386/i386-isas.h: Remove avx10.2-256/512.
7310 * config/i386/avx10_2-512bf16intrin.h: Use avx10.2 instead of
7311 avx10.2-256/512.
7312 * config/i386/avx10_2-512convertintrin.h: Ditto.
7313 * config/i386/avx10_2-512mediaintrin.h: Ditto.
7314 * config/i386/avx10_2-512minmaxintrin.h: Ditto.
7315 * config/i386/avx10_2-512satcvtintrin.h: Ditto.
7316 * config/i386/avx10_2bf16intrin.h: Ditto.
7317 * config/i386/avx10_2convertintrin.h: Ditto.
7318 * config/i386/avx10_2mediaintrin.h: Ditto.
7319 * config/i386/avx10_2minmaxintrin.h: Ditto.
7320 * config/i386/avx10_2satcvtintrin.h: Ditto.
7321 * config/i386/movrsintrin.h: Ditto.
7322 * config/i386/sm4intrin.h: Ditto.
7323 * config/i386/cpuid.h (bit_AVX10_256): Removed.
7324 (bit_AVX10_512): Ditto.
7325 * config/i386/driver-i386.cc (host_detect_local_cpu): Adjust
7326 Diamond Rapids and -march=native condition.
7327 * config/i386/i386-builtin.def (BDESC): Use AVX10.2 macro
7328 instead of AVX10.2-256/512.
7329 * config/i386/i386-c.cc (ix86_target_macros_internal): Ditto.
7330 * config/i386/i386-expand.cc
7331 (ix86_expand_branch): Use TARGET_AVX10_2 instead of specifying
7332 vector size.
7333 (ix86_prepare_fp_compare_args): Ditto.
7334 (ix86_expand_fp_compare): Ditto.
7335 (ix86_ssecom_setcc): Ditto.
7336 (ix86_expand_sse_comi): Ditto.
7337 (ix86_expand_sse_comi_round): Ditto.
7338 (ix86_check_builtin_isa_match): Ditto.
7339 * config/i386/i386.cc (ix86_fp_compare_code_to_integer): Ditto.
7340 (ix86_get_mask_mode): Ditto.
7341 * config/i386/i386.h (SSE_FLOAT_MODE_SSEMATH_OR_HFBF_P): Ditto.
7342 * config/i386/i386.md: Ditto.
7343 * config/i386/mmx.md: Ditto.
7344 * config/i386/sse.md: Ditto.
7345 * config/i386/predicates.md: Ditto.
7346 * config/i386/i386-isa.def (AVX10_2_256): Removed.
7347 (AVX10_2_512): Removed.
7348 (AVX10_2): New.
7349 * config/i386/i386-options.cc
7350 (isa2_opts): Remove avx10.2-256/512.
7351 (ix86_valid_target_attribute_inner_p): Ditto.
7352 (PTA_DIAMONDRAPIDS): Use PTA_AVX10_2.
7353 * config/i386/i386.opt: Remove avx10.2-256/512.
7354 * config/i386/i386.opt.urls: Ditto.
7355 * doc/extend.texi: Ditto.
7356 * doc/invoke.texi: Ditto.
7357 * doc/sourcebuild.texi: Ditto.
7358
7359 2025-03-24 Haochen Jiang <[email protected]>
7360
7361 Revert:
7362 2024-08-19 Hu, Lin1 <[email protected]>
7363
7364 * config.gcc: Add avx10_2roundingintrin.h.
7365 * config/i386/i386-builtin-types.def: Add new DEF_FUNCTION_TYPE.
7366 * config/i386/i386-builtin.def (BDESC): Add new builtins.
7367 * config/i386/i386-expand.cc (ix86_expand_round_builtin): Handle
7368 V4DF_FTYPE_V4DF_V4DF_V4DF_UQI_INT, V8SF_FTYPE_V8SF_V8SF_V8SF_UQI_INT,
7369 V16HF_FTYPE_V16HF_V16HF_V16HF_UHI_INT, UQI_FTYPE_V4DF_V4DF_INT_UQI_INT,
7370 UHI_FTYPE_V16HF_V16HF_INT_UHI_INT, UQI_FTYPE_V8SF_V8SF_INT_UQI_INT.
7371 * config/i386/immintrin.h: Include avx10_2roundingintrin.h.
7372 * config/i386/sse.md: Change subst_attr name due to renaming.
7373 * config/i386/subst.md:
7374 (<round_mode512bit_condition>): Add condition check for avx10.2
7375 rounding control 256bit intrins and renamed to ...
7376 (<round_mode_condition>): ...this.
7377 (round_saeonly_mode512bit_condition): Add condition check for
7378 avx10.2 rounding control 256 bit intris and renamed to ...
7379 (round_saeonly_mode_condition): ...this.
7380 * config/i386/avx10_2roundingintrin.h: New file.
7381
7382 2025-03-24 Haochen Jiang <[email protected]>
7383
7384 Revert:
7385 2024-08-19 Hu, Lin1 <[email protected]>
7386
7387 * config/i386/avx10_2roundingintrin.h: Add new intrins.
7388 * config/i386/i386-builtin-types.def: Add new DEF_FUNCTION_TYPE.
7389 * config/i386/i386-builtin.def (BDESC): Add new builtins.
7390 * config/i386/i386-expand.cc (ix86_expand_round_builtin): Handle
7391 V8SF_FTYPE_V8SI_V8SF_UQI_INT, V4SF_FTYPE_V4DF_V4SF_UQI_INT,
7392 V8HF_FTYPE_V8SI_V8HF_UQI_INT, V8HF_FTYPE_V4DF_V8HF_UQI_INT.
7393 * config/i386/sse.md:
7394 (avx512fp16_vcvt<floatsuffix><sseintconvert>2ph_<mode><mask_name><round_name>):
7395 Add condition check.
7396 (avx512fp16_vcvtpd2ph_v4df_mask_round): New expand.
7397 (*avx512fp16_vcvt<castmode>2ph_<mode>_mask): Change name to
7398 avx512fp16_vcvt<castmode>2ph_<mode>_mask<round_name>_1
7399 and extend pattern to generate 256bit insns.
7400 (avx_cvtpd2ps256<mask_name>): Change name to
7401 avx_cvtpd2ps256<mask_name><round_name> and extend pattern to
7402 generate 256bit insns.
7403 * config/i386/subst.md (round_applied): New condition.
7404 (round_suff): New iterator.
7405 (round_mode_condition): Add V32HI check for 512bit.
7406 (round_saeonly_mode_condition): Ditto.
7407
7408 2025-03-24 Haochen Jiang <[email protected]>
7409
7410 Revert:
7411 2024-08-19 Hu, Lin1 <[email protected]>
7412
7413 * config/i386/avx10_2roundingintrin.h: Add new intrins.
7414 * config/i386/i386-builtin-types.def: Add new DEF_FUNCTION_TYPE.
7415 * config/i386/i386-builtin.def (BDESC): Add new builtins.
7416 * config/i386/i386-expand.cc (ix86_expand_round_builtin): Handle
7417 V4DI_FTYPE_V4DF_V4DI_UQI_INT, V4SI_FTYPE_V4DF_V4SI_UQI_INT.
7418 * config/i386/sse.md:
7419 (avx_cvtpd2dq256<mask_name>): Change name to
7420 avx_cvtpd2dq256<mask_name><round_name> and extend pattern to
7421 generate 256bit insns.
7422 (fixuns_notrunc<mode><si2dfmodelower>2<mask_name><round_name>):
7423 Add round_mode_condition.
7424 * config/i386/subst.md (round_pd2udqsuff): New iterator.
7425
7426 2025-03-24 Haochen Jiang <[email protected]>
7427
7428 Revert:
7429 2024-08-19 Hu, Lin1 <[email protected]>
7430
7431 * config/i386/avx10_2roundingintrin.h: New intrins.
7432 * config/i386/i386-builtin-types.def: Add new DEF_FUNCTION_TYPE.
7433 * config/i386/i386-builtin.def (BDESC): Add new builtins.
7434 * config/i386/i386-expand.cc (ix86_expand_round_builtin): Handle
7435 V8SF_FTYPE_V8HF_V8SF_UQI_INT, V8SI_FTYPE_V8HF_V8SI_UQI_INT,
7436 V4DF_FTYPE_V8HF_V4DF_UQI_INT, V4DI_FTYPE_V8HF_V4DI_UQI_INT.
7437 * config/i386/sse.md:
7438 (avx512fp16_float_extend_ph<mode>2<mask_name><round_saeonly_name>):
7439 Add condition check.
7440 (avx512fp16_vcvtph2<sseintconvertsignprefix><sseintconvert>_<mode>
7441 <mask_name><round_name>):
7442 Ditto.
7443 (avx512fp16_float_extend_ph<mode>2<mask_name>): Extend round saeonly.
7444 (vcvtph2ps256<mask_name>): Ditto.
7445 * config/i386/subst.md
7446 (round_saeonly_applied): New condition.
7447
7448 2025-03-24 Haochen Jiang <[email protected]>
7449
7450 Revert:
7451 2024-08-19 Hu, Lin1 <[email protected]>
7452
7453 * config/i386/avx10_2roundingintrin.h: New intrins.
7454 * config/i386/i386-builtin-types.def: Add new DEF_FUNCTION_TYPE.
7455 * config/i386/i386-builtin.def (BDESC): Add new builtins.
7456 * config/i386/i386-expand.cc (ix86_expand_round_builtin): Handle
7457 V16HI_FTYPE_V16HF_V16HI_UHI_INT, V4DF_FTYPE_V4SF_V4DF_UQI_INT
7458 V8HF_FTYPE_V8SF_V8HF_UQI_INT.
7459 * config/i386/sse.md
7460 (avx512fp16_vcvt<castmode>2ph_<mode><mask_name><round_name>):
7461 Add round condition check.
7462 * config/i386/subst.md (round_mode_condition): Add V16HI check for
7463 256bit.
7464
7465 2025-03-24 Haochen Jiang <[email protected]>
7466
7467 Revert:
7468 2024-08-19 Hu, Lin1 <[email protected]>
7469
7470 * config/i386/avx10_2roundingintrin.h: New intrins.
7471 * config/i386/i386-builtin-types.def: Add new DEF_FUNCTION_TYPE.
7472 * config/i386/i386-builtin.def (BDESC): Add new builtins.
7473 * config/i386/i386-expand.cc (ix86_expand_round_builtin): Handle
7474 V8SI_FTYPE_V8SF_V8SI_UQI_INT, V4DI_FTYPE_V4SF_V4DI_UQI_INT.
7475 * config/i386/sse.md
7476 (<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode><mask_name>):
7477 Extend to round.
7478 (<mask_codefor><avx512>_fixuns_notrunc<sf2simodelower><mode><mask_name><round_name>):
7479 Add round condition check.
7480 * config/i386/subst.md (round_constraint4): New.
7481
7482 2025-03-24 Haochen Jiang <[email protected]>
7483
7484 Revert:
7485 2024-08-19 Hu, Lin1 <[email protected]>
7486
7487 * config/i386/avx10_2roundingintrin.h: New intrins.
7488 * config/i386/i386-builtin-types.def: Add new DEF_FUNCTION_TYPE.
7489 * config/i386/i386-builtin.def (BDESC): Add new builtins.
7490 * config/i386/i386-expand.cc (ix86_expand_round_builtin): Handle
7491 V4DF_FTYPE_V4DI_V4DF_UQI_INT, V4SF_FTYPE_V4DI_V4SF_UQI_INT,
7492 V8HF_FTYPE_V4DI_V8HF_UQI_INT.
7493 * config/i386/sse.md:
7494 (avx512fp16_vcvt<floatsuffix>qq2ph_v4di_mask_round): New expand.
7495 (*avx512fp16_vcvt<floatsuffix><sseintconvert>2ph_<mode>_mask):
7496 Extend round control and add "_1" suffix.
7497 (float<floatunssuffix><sseintvecmodelower><mode>2<mask_name><round_name>):
7498 Add condition check.
7499 (float<floatunssuffix><sselongvecmodelower><mode>2<mask_name><round_name>):
7500 Ditto.
7501 (float<floatunssuffix><mode><ssePSmode2lower>2<mask_name><round_name>):
7502 Limit suffix output.
7503 (unspec_fix_truncv4dfv4si2<mask_name>): Extend round control.
7504 (unspec_fixuns_truncv4dfv4si2<mask_name>): Ditto.
7505 * config/i386/subst.md (round_qq2pssuff): New iterator.
7506 (round_saeonly_suff): Ditto.
7507
7508 2025-03-24 Haochen Jiang <[email protected]>
7509
7510 Revert:
7511 2024-08-19 Hu, Lin1 <[email protected]>
7512
7513 * config/i386/avx10_2roundingintrin.h: New intrins.
7514 * config/i386/i386-builtin.def (BDESC): Add new builtins.
7515 * config/i386/sse.md (avx512fp16_fix<fixunssuffix>_trunc<mode>2<mask_name>):
7516 Extend round control for 256bit.
7517 (unspec_avx512fp16_fix<vcvtt_uns_suffix>_trunc<mode>2<mask_name>):
7518 Ditto.
7519 (avx512fp16_fix<fixunssuffix>_trunc<mode>2<mask_name><round_saeonly_name>):
7520 Add condition check.
7521 * config/i386/subst.md
7522 (round_saeonly_mode_condition): Add V16HI check for 256bit.
7523
7524 2025-03-24 Haochen Jiang <[email protected]>
7525
7526 Revert:
7527 2024-08-19 Hu, Lin1 <[email protected]>
7528
7529 * config/i386/avx10_2roundingintrin.h: New intrins.
7530 * config/i386/i386-builtin.def (BDESC): Add new builtins.
7531 * config/i386/sse.md
7532 (unspec_fix_truncv8sfv8si2<mask_name>): Extend rounding control.
7533 (<mask_codefor>fixuns_trunc<mode><sseintvecmodelower>2<mask_name>):
7534 Ditto.
7535 (<mask_codefor>floatuns<sseintvecmodelower><mode>2<mask_name><round_name>):
7536 Add condition check.
7537 (fix<fixunssuffix>_trunc<mode><sselongvecmodelower>2<mask_name><round_saeonly_name>):
7538 Remove round_saeonly_name.
7539
7540 2025-03-24 Haochen Jiang <[email protected]>
7541
7542 Revert:
7543 2024-08-19 Hu, Lin1 <[email protected]>
7544
7545 * config/i386/avx10_2roundingintrin.h: New intrins.
7546 * config/i386/i386-builtin-types.def: Add new DEF_FUNCTION_TYPE.
7547 * config/i386/i386-builtin.def (BDESC): Add new builtins.
7548 * config/i386/i386-expand.cc (ix86_expand_round_builtin): Handle
7549 V16HF_FTYPE_V16HI_V16HF_UHI_INT.
7550
7551 2025-03-24 Haochen Jiang <[email protected]>
7552
7553 Revert:
7554 2024-08-19 Hu, Lin1 <[email protected]>
7555
7556 * config/i386/avx10_2roundingintrin.h: New intrins.
7557 * config/i386/i386-builtin-types.def: Add new DEF_FUNCTION_TYPE.
7558 * config/i386/i386-builtin.def (BDESC): Add new builtins.
7559 * config/i386/i386-expand.cc (ix86_expand_round_builtin): Handle
7560 V16HF_FTYPE_V16HF_V16HF_INT, V16HF_FTYPE_V16HF_V16HF_V16HF_INT,
7561 V16HF_FTYPE_V16HF_V16HF_V16HF_UQI_INT,
7562 V4DF_FTYPE_V4DF_V4DF_V4DI_INT_UQI_INT,
7563 V8SF_FTYPE_V8SF_V8SF_V8SI_INT_UQI_INT.
7564 * config/i386/sse.md:
7565 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>):
7566 Add condition check.
7567 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
7568
7569 2025-03-24 Haochen Jiang <[email protected]>
7570
7571 Revert:
7572 2024-08-19 Hu, Lin1 <[email protected]>
7573
7574 * config/i386/avx10_2roundingintrin.h: New intrins.
7575 * config/i386/i386-builtin.def (BDESC): Add new builtins.
7576 * config/i386/sse.md:
7577 (<avx512>_fmadd_<mode>_mask3<round_name>): Add condition check.
7578
7579 2025-03-24 Haochen Jiang <[email protected]>
7580
7581 Revert:
7582 2024-08-19 Hu, Lin1 <[email protected]>
7583
7584 * config/i386/avx10_2roundingintrin.h: New intrins.
7585 * config/i386/i386-builtin.def (BDESC): Add new builtins.
7586 * config/i386/sse.md:
7587 (<avx512>_fmaddsub_<mode>_mask<round_name>): Add condition check.
7588 (<avx512>_fmaddsub_<mode>_mask3<round_name>): Ditto.
7589
7590 2025-03-24 Haochen Jiang <[email protected]>
7591
7592 Revert:
7593 2024-08-19 Hu, Lin1 <[email protected]>
7594
7595 * config/i386/avx10_2roundingintrin.h: New intrins.
7596 * config/i386/i386-builtin.def (BDESC): Add new builtins.
7597 * config/i386/sse.md:
7598 (<avx512>_fmsub_<mode>_mask<round_name>): Add condition check.
7599
7600 2025-03-24 Haochen Jiang <[email protected]>
7601
7602 Revert:
7603 2024-08-19 Hu, Lin1 <[email protected]>
7604
7605 * config/i386/avx10_2roundingintrin.h: New intrins.
7606 * config/i386/i386-builtin.def (BDESC): Add new builtins.
7607
7608 2025-03-24 Haochen Jiang <[email protected]>
7609
7610 Revert:
7611 2024-08-19 Hu, Lin1 <[email protected]>
7612
7613 * config/i386/avx10_2roundingintrin.h: New intrins.
7614 * config/i386/i386-builtin.def (BDESC): Add new builtins.
7615 * config/i386/sse.md:
7616 (<avx512>_fnmsub_<mode>_mask3<round_name>): Add condition check.
7617
7618 2025-03-24 Haochen Jiang <[email protected]>
7619
7620 Revert:
7621 2024-08-19 Hu, Lin1 <[email protected]>
7622
7623 * config/i386/avx10_2roundingintrin.h: New intrins.
7624 * config/i386/i386-builtin-types.def: Add new DEF_FUNCTION_TYPE.
7625 * config/i386/i386-builtin.def (BDESC): Add new builtins.
7626 * config/i386/i386-expand.cc (ix86_expand_round_builtin): Handle
7627 V8SF_FTYPE_V8SF_V8SF_UQI_INT, V4DF_FTYPE_V4DF_V4DF_UQI_INT,
7628 V16HF_FTYPE_V16HF_V16HF_UHI_INT, V16HF_FTYPE_V16HF_INT_V16HF_UHI_INT,
7629 V4DF_FTYPE_V4DF_INT_V4DF_UQI_INT, V8SF_FTYPE_V8SF_INT_V8SF_UQI_INT.
7630 * config/i386/sse.md:
7631 (<avx512>_getexp<mode><mask_name><round_saeonly_name>):
7632 Add condition check.
7633 (<avx512>_getmant<mode><mask_name><round_saeonly_name>):
7634 Ditto.
7635
7636 2025-03-24 Haochen Jiang <[email protected]>
7637
7638 Revert:
7639 2024-08-19 Hu, Lin1 <[email protected]>
7640
7641 * config/i386/avx10_2roundingintrin.h: New intrins.
7642 * config/i386/i386-builtin.def (BDESC): Add new builtins.
7643
7644 2025-03-24 Haochen Jiang <[email protected]>
7645
7646 Revert:
7647 2024-08-19 Hu, Lin1 <[email protected]>
7648
7649 * config/i386/avx10_2roundingintrin.h: New intrins.
7650 * config/i386/i386-builtin-types.def: Add new DEF_FUNCTION_TYPE.
7651 * config/i386/i386-builtin.def (BDESC): Add new builtins.
7652 * config/i386/i386-expand.cc (ix86_expand_round_builtin):
7653 Handle V8SF_FTYPE_V8SF_V8SF_INT_V8SF_UQI_INT,
7654 V4DF_FTYPE_V4DF_V4DF_INT_V4DF_UQI_INT.
7655
7656 2025-03-24 Haochen Jiang <[email protected]>
7657
7658 Revert:
7659 2024-08-19 Hu, Lin1 <[email protected]>
7660
7661 * config/i386/avx10_2roundingintrin.h: New intrins.
7662 * config/i386/i386-builtin.def (BDESC): Add new builtins.
7663 * config/i386/sse.md:
7664 (<mask_codefor>reducep<mode><mask_name><round_saeonly_name>):
7665 Add condition check.
7666 (<avx512>_rndscale<mode><mask_name><round_saeonly_name>): Ditto.
7667
7668 2025-03-24 Haochen Jiang <[email protected]>
7669
7670 Revert:
7671 2024-08-19 Hu, Lin1 <[email protected]>
7672
7673 * config/i386/avx10_2roundingintrin.h: New intrins.
7674 * config/i386/i386-builtin.def: Add new builtins.
7675 * config/i386/sse.md:
7676 (<avx512>_scalef<mode><mask_name><round_name>): Add condition check.
7677
7678 2025-03-24 Haochen Jiang <[email protected]>
7679
7680 Revert:
7681 2024-08-19 Hu, Lin1 <[email protected]>
7682
7683 * config/i386/avx10_2roundingintrin.h: New intrins.
7684 * config/i386/i386-builtin.def (BDESC): Add new builtins.
7685
7686 2025-03-24 Haochen Jiang <[email protected]>
7687
7688 * config/i386/avx10_2satcvtintrin.h: Remove rounding intrins.
7689 Use non-round intrins.
7690 * config/i386/i386-builtin.def (BDESC): Ditto.
7691
7692 2025-03-24 Haochen Jiang <[email protected]>
7693
7694 * config/i386/avx10_2convertintrin.h: Remove rounding intrins.
7695 Use non-round builtins.
7696 * config/i386/avx10_2minmaxintrin.h: Ditto.
7697 * config/i386/i386-builtin.def (BDESC): Ditto.
7698 * config/i386/i386-builtin-types.def: Remove unused type.
7699 * config/i386/i386-expand.cc
7700 (ix86_expand_args_builtin): Ditto.
7701 (ix86_expand_round_builtin): Ditto.
7702
7703 2025-03-23 Sandra Loosemore <[email protected]>
7704
7705 PR other/42270
7706 * doc/extend.texi (Nonlocal Gotos): Group with other built-ins
7707 sections.
7708 (Constructing Calls): Likewise.
7709 (Pragmas): Move earlier in the section, before the built-ins docs.
7710 (Thread-Local): Likewise.
7711 (OpenMP): Likewise.
7712 (OpenACC): Likewise.
7713
7714 2025-03-23 Sandra Loosemore <[email protected]>
7715
7716 PR other/42270
7717 * doc/extend.texi (Syntax Extensions): New section.
7718 (Statement Exprs): Make it a subsection of the above.
7719 (Local Labels): Likewise.
7720 (Labels as Values): Likewise.
7721 (Nested Functions): Likewise.
7722 (Typeof): Likewise.
7723 (Offsetof): Likewise.
7724 (Alignment): Likewise.
7725 (Incomplete Enums): Likewise.
7726 (Variadic Macros): Likewise.
7727 (Conditionals): Likewise.
7728 (Case Ranges): Likewise.
7729 (Mixed Labels and Declarations): Likewise.
7730 (C++ Comments): Likewise.
7731 (Escaped Newlines): Likewise.
7732 (Hex Floats): Likewise.
7733 (Binary constants): Likewise.
7734 (Dollar Signs): Likewise.
7735 (Character Escapes): Likewise.
7736 (Alternate Keywords): Likewise.
7737 (Function Names): Likewise.
7738 (Semantic Extensions): New section.
7739 (Function Prototypes): Make it a subsection of the above.
7740 (Pointer Arith): Likewise.
7741 (Variadic Pointer Args): Likewise.
7742 (Pointers to Arrays): Likewise.
7743 (Const and Volatile Functions): Likewise.
7744
7745 2025-03-23 Sandra Loosemore <[email protected]>
7746
7747 PR other/42270
7748 * doc/extend.texi (Aggregate Types): New section.
7749 (Variable Length): Make it a subsection of the above.
7750 (Zero Length): Likewise.
7751 (Empty Structures): Likewise.
7752 (Flexible Array Members in Unions): Likewise.
7753 (Flexible Array Members alone in Structures): Likewise.
7754 (Unnamed Fields): Likewise.
7755 (Cast to Union): Likewise.
7756 (Subscripting): Likewise.
7757 (Initializers): Likewise.
7758 (Compound Literals): Likewise.
7759 (Designated Inits): Likewise.
7760
7761 2025-03-23 Sandra Loosemore <[email protected]>
7762
7763 PR other/42270
7764 * doc/extend.texi (Additional Numeric Types): New section.
7765 (__int128): Make it a subsection of the above.
7766 (Long Long): Likewise.
7767 (Complex): Likewise.
7768 (Floating Types): Likewise.
7769 (Half-Precision): Likewise.
7770 (Decimal Float): Likewise.
7771 (Fixed-Point): Likewise.
7772
7773 2025-03-23 Georg-Johann Lay <[email protected]>
7774
7775 * config/avr/avr-mcus.def: Add AVR32SD20, AVR32SD28, AVR32SD32,
7776 AVR64SD28, AVR64SD32, AVR64SD48.
7777 * doc/avr-mmcu.texi: Rebuild.
7778
7779 2025-03-23 Georg-Johann Lay <[email protected]>
7780
7781 * doc/invoke.texi (AVR Optimization Options)
7782 <-maccumulate-args>: Refer to -fdefer-pop.
7783 <-muse-nonzero-bits>: Re-formulate what the option does.
7784
7785 2025-03-22 Georg-Johann Lay <[email protected]>
7786
7787 * config/avr/avr.cc (avr_option_override): Use
7788 "avr-peep2-after-fuse-move" as dump name instead of "peephole2".
7789
7790 2025-03-22 Georg-Johann Lay <[email protected]>
7791
7792 * config/avr/avr.opt.urls: Add -muse-nonzero-bits.
7793
7794 2025-03-22 Georg-Johann Lay <[email protected]>
7795
7796 PR target/119421
7797 * config/avr/avr.opt (-muse-nonzero-bits): New option.
7798 * config/avr/avr-protos.h (avr_nonzero_bits_lsr_operands_p): New.
7799 (make_avr_pass_split_nzb): New.
7800 * config/avr/avr.cc (avr_nonzero_bits_lsr_operands_p): New function.
7801 (avr_rtx_costs_1): Return costs for the new insns.
7802 * config/avr/avr.md (nzb): New insn attribute.
7803 (*nzb=1.<code>...): New insns to better support some bit
7804 operations for <code> in AND, IOR, XOR.
7805 * config/avr/avr-passes.def (avr_pass_split_nzb): Insert pass
7806 atfer combine.
7807 * config/avr/avr-passes.cc (avr_pass_data_split_nzb). New pass data.
7808 (avr_pass_split_nzb): New pass.
7809 (make_avr_pass_split_nzb): New function.
7810 * common/config/avr/avr-common.cc (avr_option_optimization_table):
7811 Enable -muse-nonzero-bits for -O2 and higher.
7812 * doc/invoke.texi (AVR Options): Document -muse-nonzero-bits.
7813
7814 2025-03-22 Georg-Johann Lay <[email protected]>
7815
7816 * config/avr/avr.cc (avr_attrs_section_name): New function.
7817 (avr_insert_attributes): Add "used" attribute to functions
7818 in .initN and .finiN.
7819
7820 2025-03-22 Iain Sandoe <[email protected]>
7821
7822 * config/darwin.h (DL_LIBRARY): New.
7823
7824 2025-03-22 Jakub Jelinek <[email protected]>
7825
7826 * gimplify.cc (warn_switch_unreachable_and_auto_init_r): Add missing
7827 space in the middle of diagnostics.
7828 * tree-vect-stmts.cc (vectorizable_load): Add missing space in the
7829 middle of debug dump message.
7830 * sym-exec/sym-exec-state.cc (state::check_args_compatibility):
7831 Likewise.
7832
7833 2025-03-21 Surya Kumari Jangala <[email protected]>
7834 Jakub Jelinek <[email protected]>
7835
7836 PR rtl-optimization/116028
7837 PR rtl-optimization/118615
7838 * lra-constraints.cc (first_call_insn): New variable.
7839 (split_reg): Spill register before first_call_insn if call_save_p
7840 and the call is in a different bb in the ebb.
7841 (split_if_necessary): Formatting fix.
7842 (inherit_in_ebb): Set first_call_insn when handling a CALL_INSN.
7843 For successful split_if_necessary with before_p, only change
7844 use_insn if it emitted any new instructions before curr_insn.
7845 Clear first_call_insn before returning.
7846
7847 2025-03-21 Paul-Antoine Arras <[email protected]>
7848 Tobias Burnus <[email protected]>
7849
7850 * builtin-types.def
7851 (BT_FN_VOID_INT_INT_PTR_PTR_PTR_INT_PTR_INT_PTR_UINT_PTR): New.
7852 * gimple-low.cc (lower_stmt): Handle GIMPLE_OMP_INTEROP.
7853 * gimple-pretty-print.cc (dump_gimple_omp_interop): New function.
7854 (pp_gimple_stmt_1): Handle GIMPLE_OMP_INTEROP.
7855 * gimple.cc (gimple_build_omp_interop): New function.
7856 (gimple_copy): Handle GIMPLE_OMP_INTEROP.
7857 * gimple.def (GIMPLE_OMP_INTEROP): Define.
7858 * gimple.h (gimple_build_omp_interop): Declare.
7859 (gimple_omp_interop_clauses): New function.
7860 (gimple_omp_interop_clauses_ptr): Likewise.
7861 (gimple_omp_interop_set_clauses): Likewise.
7862 (gimple_return_set_retval): Handle GIMPLE_OMP_INTEROP.
7863 * gimplify.cc (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_INIT,
7864 OMP_CLAUSE_USE and OMP_CLAUSE_DESTROY.
7865 (gimplify_omp_interop): New function.
7866 (gimplify_expr): Replace sorry with call to gimplify_omp_interop.
7867 * omp-builtins.def (BUILT_IN_GOMP_INTEROP): Define.
7868 * omp-low.cc (scan_sharing_clauses): Handle OMP_CLAUSE_INIT,
7869 OMP_CLAUSE_USE and OMP_CLAUSE_DESTROY.
7870 (scan_omp_1_stmt): Handle GIMPLE_OMP_INTEROP.
7871 (lower_omp_interop_action_clauses): New function.
7872 (lower_omp_interop): Likewise.
7873 (lower_omp_1): Handle GIMPLE_OMP_INTEROP.
7874
7875 2025-03-21 Jason Merrill <[email protected]>
7876
7877 PR c++/114992
7878 * multiple_target.cc (create_dispatcher_calls):
7879 remove_from_same_comdat_group before add_to_same_comdat_group.
7880
7881 2025-03-21 Dhruv Chawla <[email protected]>
7882
7883 * config/aarch64/aarch64-cores.def (olympus): New entry.
7884 * config/aarch64/aarch64-tune.md: Regenerate.
7885 * doc/invoke.texi (AArch64 Options): Document the above.
7886
7887 2025-03-21 Antoni Boucher <[email protected]>
7888
7889 * config/i386/i386-rust-and-jit.inc: New file.
7890 * config/i386/i386-rust.cc: Move code to i386-rust-and-jit.inc.
7891
7892 2025-03-21 Jakub Jelinek <[email protected]>
7893
7894 PR ipa/119376
7895 * ipa-icf-gimple.cc (func_checker::compare_gimple_call): Return false
7896 for gimple_call_must_tail_p mismatches.
7897
7898 2025-03-21 Jakub Jelinek <[email protected]>
7899
7900 PR ipa/119376
7901 * ipa-split.cc (split_function): Call gimple_call_set_must_tail
7902 on the call to outlined partition if has_musttail and
7903 !add_tsan_func_exit.
7904
7905 2025-03-21 Jakub Jelinek <[email protected]>
7906
7907 PR ipa/119376
7908 * tree-inline.cc (remap_gimple_stmt): Silently clear
7909 gimple_call_must_tail_p on inlined call stmts if id->call_stmt
7910 is a call without that flag set.
7911
7912 2025-03-21 Stefan Schulze Frielinghaus <[email protected]>
7913
7914 PR target/119235
7915 * config/s390/s390.cc (s390_hard_regno_mode_ok): Accept only
7916 Pmode for registers AP/FP/RA.
7917
7918 2025-03-21 Richard Biener <[email protected]>
7919
7920 * cgraphunit.cc (symbol_table::finalize_compilation_unit):
7921 Put early debug generation under TV_SYMOUT.
7922
7923 2025-03-21 Andrew Pinski <[email protected]>
7924
7925 PR rtl-optimization/118914
7926 * combine.cc (recog_for_combine): Add old_nregs and new_nregs
7927 argument (defaulting to 0). Update call to recog_for_combine_1.
7928 (combine_split_insns): Add old_nregs and new_nregs arguments,
7929 store the old and new max registers to them.
7930 (try_combine): Update calls to combine_split_insns and
7931 pass old_nregs and new_nregs for the i3 call to recog_for_combine.
7932 (find_split_point): Update call to combine_split_insns; ignoring
7933 the values there.
7934 (recog_for_combine_1): Add old_nregs and new_nregs arguments,
7935 if the insn was recognized (and not to no-op move), add the
7936 REG_DEAD notes to pnotes argument.
7937
7938 2025-03-20 Richard Biener <[email protected]>
7939
7940 PR tree-optimization/119389
7941 * tree-ssa-sccvn.cc (dominated_by_p_w_unex): Limit the number
7942 of predecessors of a CFG merge we try to skip.
7943
7944 2025-03-20 Stefan Schulze Frielinghaus <[email protected]>
7945
7946 Revert:
7947 2025-03-11 Stefan Schulze Frielinghaus <[email protected]>
7948
7949 * config.gcc: Fail in case of option --with-mode=esa.
7950 * config/s390/s390.cc (s390_option_override_internal): Default
7951 to z/Architecture mode.
7952 * config/s390/s390.h (DRIVER_SELF_SPECS): Ditto.
7953 * config/s390/s390.opt: Emit a warning for option -mesa.
7954 * doc/invoke.texi: Document the change.
7955
7956 2025-03-20 Filip Kastl <[email protected]>
7957
7958 * gimple-ssa-sccopy.cc (scc_copy_prop::propagate): Don't
7959 increment after vec::unordered_remove().
7960
7961 2025-03-20 Richard Biener <[email protected]>
7962
7963 * tree-core.h (function_decl_type): Make a scoped enum.
7964 * tree.h (set_function_decl_type): Adjust.
7965 (DECL_IS_OPERATOR_NEW_P): Likewise.
7966 (DECL_SET_IS_OPERATOR_NEW): Likewise.
7967 (DECL_IS_OPERATOR_DELETE_P): Likewise.
7968 (DECL_SET_IS_OPERATOR_DELETE): Likewise.
7969 (DECL_LAMBDA_FUNCTION_P): Likewise.
7970 (DECL_SET_LAMBDA_FUNCTION): Likewise.
7971 * lto-streamer-out.cc (hash_tree): Hash all of
7972 FUNCTION_DECL_DECL_TYPE.
7973 * tree-streamer-out.cc (pack_ts_function_decl_value_fields):
7974 Adjust.
7975 * config/aarch64/aarch64-simd-pragma-builtins.def (vcombine_mf8):
7976 Use literal zero instead of NONE.
7977
7978 2025-03-20 liuhongt <[email protected]>
7979
7980 PR target/117452
7981 * config/i386/i386.md (cbranchbf4): Use
7982 ix86_fp_comparison_operator instead of comparison_operator.
7983
7984 2025-03-20 Hu, Lin1 <[email protected]>
7985
7986 * config/i386/avx10_2-512satcvtintrin.h: Add "s_" before
7987 intrinsics' core name.
7988 * config/i386/avx10_2satcvtintrin.h: Ditto.
7989
7990 2025-03-20 Hu, Lin1 <[email protected]>
7991
7992 * config/i386/avx10_2-512satcvtintrin.h: Add new intrinsics.
7993 * config/i386/avx10_2satcvtintrin.h: Ditto.
7994 * config/i386/i386-builtin-types.def:
7995 Add DEF_FUNCTION_TYPE (V32HI, V32HF, V32HI, USI),
7996 (V16SI, V16SF, V16SI, UHI), (V8DI, V8SF, V8DI, UQI),
7997 (V8DI, V8DF, V8DI, UQI), (V8SI, V8DF, V8SI, UQI).
7998 * config/i386/i386-builtin.def: Add new builtins.
7999 * config/i386/i386-expand.cc: Handle V16SI_FTYPE_V16SF_V16SI_UHI,
8000 V32HI_FTYPE_V32HF_V32HI_USI, V8DI_FTYPE_V8SF_V8DI_UQI,
8001 V8DI_FTYPE_V8DF_V8DI_UQI, V8SI_FTYPE_V8DF_V8SI_UQI.
8002
8003 2025-03-20 Hu, Lin1 <[email protected]>
8004
8005 * config/i386/avx10_2-512satcvtintrin.h: Change *i[u]bs's type suffix
8006 of intrin name.
8007 * config/i386/avx10_2satcvtintrin.h: Ditto.
8008
8009 2025-03-19 Vladimir N. Makarov <[email protected]>
8010
8011 PR target/119270
8012 * ira-costs.cc (calculate_equiv_gains): Ignore equiv init insns
8013 only for invariants.
8014
8015 2025-03-19 David Malcolm <[email protected]>
8016
8017 PR c/119366
8018 * diagnostic-format-sarif.cc (test_message_with_embedded_link):
8019 Convert diagnostic_context from one urlifier to a stack of
8020 urlifiers, where each node in the stack tracks whether the
8021 urlifier is owned or borrowed.
8022 * diagnostic.cc (diagnostic_context::initialize): Likewise.
8023 (diagnostic_context::finish): Likewise.
8024 (diagnostic_context::set_urlifier): Delete.
8025 (diagnostic_context::push_owned_urlifier): New.
8026 (diagnostic_context::push_borrowed_urlifier): New.
8027 (diagnostic_context::pop_urlifier): New.
8028 (diagnostic_context::get_urlifier): Reimplement in terms of stack.
8029 (diagnostic_context::override_urlifier): Delete.
8030 * diagnostic.h (diagnostic_context::set_urlifier): Delete decl.
8031 (diagnostic_context::override_urlifier): Delete decl.
8032 (diagnostic_context::push_owned_urlifier): New decl.
8033 (diagnostic_context::push_borrowed_urlifier): New decl.
8034 (diagnostic_context::pop_urlifier): New decl.
8035 (diagnostic_context::get_urlifier): Make return value const; hide
8036 implementation.
8037 (diagnostic_context::m_urlifier): Replace with...
8038 (diagnostic_context::urlifier_stack_node): ... this and...
8039 (diagnostic_context::m_urlifier_stack): ...this.
8040 * gcc-urlifier.cc
8041 (auto_override_urlifier::auto_override_urlifier): Reimplement.
8042 (auto_override_urlifier::~auto_override_urlifier): Reimplement.
8043 * gcc-urlifier.h (class auto_override_urlifier): Reimplement.
8044 (auto_urlify_attributes::auto_urlify_attributes): Update for
8045 pass-by-reference.
8046 * gcc.cc (driver::global_initializations): Update for
8047 reimplementation of urlifiers in terms of a stack.
8048 * toplev.cc (general_init): Likewise.
8049
8050 2025-03-19 Jakub Jelinek <[email protected]>
8051
8052 PR target/119357
8053 * config/i386/sse.md (pmovmskb 0xffff to ptest splitter,
8054 *pmovsk_ptest_<mode>_avx512): Force operands[0] into a REG.
8055
8056 2025-03-19 Kyrylo Tkachov <[email protected]>
8057
8058 * config/aarch64/aarch64-arches.def (...): Add SVE2p1.
8059 * doc/invoke.texi (AArch64 Options): Document +sve2p1 in
8060 -march=armv9.4-a.
8061
8062 2025-03-19 Xi Ruoyao <[email protected]>
8063
8064 * config/loongarch/loongarch.h (ADDITIONAL_REGISTER_NAMES): Add
8065 fa0-fa7, ft0-ft16, and fs0-fs7.
8066
8067 2025-03-18 Georg-Johann Lay <[email protected]>
8068
8069 PR target/119355
8070 * config/avr/avr-passes.cc (memento_t::apply): Only
8071 read values[p.arg] when it is actually used.
8072
8073 2025-03-18 Iain Sandoe <[email protected]>
8074
8075 PR cobol/119301
8076 * config.in: Regenerate.
8077 * configure: Regenerate.
8078 * configure.ac: Add check for get_current_dir_name.
8079
8080 2025-03-18 Jakub Jelinek <[email protected]>
8081
8082 PR c/116545
8083 * doc/extend.texi (musttail statement attribute): Document
8084 that musttail GNU attribute can be used as well.
8085
8086 2025-03-18 Michael Matz <[email protected]>
8087
8088 * config/rs6000/rs6000.opt.urls: Regenerate.
8089
8090 2025-03-18 Jakub Jelinek <[email protected]>
8091
8092 * doc/sourcebuild.texi (dg-output-file): Document.
8093
8094 2025-03-18 Andrew Pinski <[email protected]>
8095
8096 * gimple-ssa-sccopy.cc (scc_copy_prop::replace_scc_by_value): Dump
8097 what is being replaced with what.
8098
8099 2025-03-18 Jakub Jelinek <[email protected]>
8100
8101 PR rtl-optimization/119307
8102 * lra.cc (lra_rtx_hash): Handle SUBREG.
8103
8104 2025-03-18 Richard Biener <[email protected]>
8105
8106 PR debug/101533
8107 * dwarf2out.cc (gen_type_die_with_usage): When we have
8108 output the typedef already do nothing for a typedef variant.
8109 Do not set TREE_ASM_WRITTEN on the type.
8110
8111 2025-03-18 Jeff Law <[email protected]>
8112
8113 * config/riscv/riscv.md (equality shifted-arith splitter): Do not
8114 create op AND -1 as it won't be cleaned up post-reload.
8115
8116 2025-03-18 Andrew Pinski <[email protected]>
8117
8118 * configure: Regenerate.
8119 * configure.ac: s/gcc_cv_ld64_macosx_version_min/gcc_cv_ld64_macos_version_min/.
8120
8121 2025-03-17 Jeff Law <[email protected]>
8122
8123 * config/riscv/bitmanip.md (*<or_optab>i<mode>_extrabit): Reject cases
8124 where we only need to twiddle one bit. Fix formatting.
8125 (*andi<mode>extrabit): Likewise.
8126
8127 2025-03-17 Vladimir N. Makarov <[email protected]>
8128
8129 PR rtl-optimization/119285
8130 * ira-costs.cc (equiv_can_be_consumed_p): Use 2 ways for
8131 recognizing a valid insn after equiv insertion.
8132
8133 2025-03-17 Michael Matz <[email protected]>
8134
8135 PR target/112980
8136 * config/rs6000/rs6000.opt (msplit-patch-nops): New option.
8137 * doc/invoke.texi (RS/6000 and PowerPC Options): Document it.
8138 * config/rs6000/rs6000.h (machine_function.stop_patch_area_print):
8139 New member.
8140 * config/rs6000/rs6000.cc (rs6000_print_patchable_function_entry):
8141 Emit split nops under control of that one.
8142 * config/rs6000/rs6000-logue.cc (rs6000_output_function_prologue):
8143 Add handling of split patch nops.
8144
8145 2025-03-17 Michal Jires <[email protected]>
8146
8147 * common.opt.urls: Regenerate.
8148
8149 2025-03-17 Michal Jires <[email protected]>
8150
8151 * doc/invoke.texi: (Optimize Options):
8152 Add incremental LTO flags.
8153
8154 2025-03-17 Robin Dapp <[email protected]>
8155
8156 PR target/119114
8157 * config/riscv/autovec.md: Apply & 0x1 mask when initializing
8158 bitmask vector.
8159
8160 2025-03-17 Ayan Shafqat <[email protected]>
8161
8162 * config/aarch64/arm_acle.h (__fma, __fmaf): New functions.
8163
8164 2025-03-17 Richard Biener <[email protected]>
8165
8166 * opts.cc (gen_producer_string): Record -D and -U
8167 with _FORTIFY_SOURCE prefix.
8168
8169 2025-03-16 Jeff Law <[email protected]>
8170
8171 PR target/116256
8172 * config/riscv/riscv.md (reassociation splitters): Do not load the
8173 adjusted addend into a register if it fits in a simm12.
8174
8175 2025-03-16 Andrew Pinski <[email protected]>
8176
8177 PR middle-end/113546
8178 * tree-cfg.cc (first_non_label_stmt): Rename to ...
8179 (first_non_label_nondebug_stmt): This and use gsi_start_nondebug_after_labels_bb.
8180 (assign_discriminators): Update call to first_non_label_nondebug_stmt.
8181
8182 2025-03-16 Iain Sandoe <[email protected]>
8183
8184 Backported from master:
8185 2025-03-16 Iain Sandoe <[email protected]>
8186
8187 PR target/119172
8188 * config.in: Regenerate.
8189 * config/darwin.h (DARWIN_PLATFORM_ID): Add the option to
8190 use -macos_version_min where available.
8191 * configure: Regenerate.
8192 * configure.ac: Check for ld64 support of -macos_version_min.
8193
8194 2025-03-14 Martin Jambor <[email protected]>
8195
8196 PR ipa/116572
8197 * cgraph.cc (cgraph_update_edges_for_call_stmt): Do not update
8198 edges of clones that are unexpanded thunk. Assert that the node
8199 passed as the parameter is not an unexpanded thunk.
8200
8201 2025-03-14 Jakub Jelinek <[email protected]>
8202
8203 PR tree-optimization/119287
8204 * match.pd (((X >> C1) & C2) * (1 << C1) to X & (C2 << C1)): Use
8205 (convert @0) instead of @0 in the substitution.
8206
8207 2025-03-14 Thomas Schwinge <[email protected]>
8208
8209 PR target/92713
8210 PR target/101544
8211 * config/gcn/gcn.h (LIBSTDCXX): Don't set.
8212 * config/nvptx/nvptx.h (LIBSTDCXX): Likewise.
8213
8214 2025-03-14 Richard Biener <[email protected]>
8215
8216 PR tree-optimization/119274
8217 * tree-ssa-sccvn.cc (dominated_by_p_w_unex): Handle the
8218 top block being the only executable forwarder to a CFG
8219 merge.
8220
8221 2025-03-14 Richard Sandiford <[email protected]>
8222
8223 * tree-vect-slp.cc (vect_build_slp_instance): Pass the new group
8224 size (i) rather than 1 to vect_slp_prefer_store_lanes_p.
8225 (vect_analyze_slp): Only force the use of load-lanes and
8226 store-lanes if that is preferred for at least one load/store pair.
8227
8228 2025-03-14 Richard Biener <[email protected]>
8229
8230 PR tree-optimization/119155
8231 * tree-vect-stmts.cc (vectorizable_store): Do not always
8232 use vector element alignment for VMAT_STRIDED_SLP but
8233 a more correct alignment towards both ends.
8234 (vectorizable_load): Likewise.
8235
8236 2025-03-14 Sandra Loosemore <[email protected]>
8237
8238 * doc/extend.texi (Alternate Keywords): Clean up text and remove
8239 discussion of "restrict", which is not a GNU extension at all.
8240 * doc/invoke.texi (C Dialect Options): Remove detailed discussion.
8241
8242 2025-03-13 Jan Hubicka <[email protected]>
8243
8244 PR ipa/119147
8245 * ipa-inline.cc: Include ipa-modref-tree.h and
8246 ipa-modref.h.
8247 (speculation_useful_p): If target is a clone, speculation is usef;
8248 fix mixup of caller and callee; speculate also calls not considered
8249 hot; consider modref summary also possibly useful for optimization.
8250 * ipa-profile.cc (ipa_profile): Keep non-hot speculations.
8251
8252 2025-03-13 Richard Biener <[email protected]>
8253
8254 * tree.h (DECL_NOT_GIMPLE_REG_P): Update description.
8255
8256 2025-03-13 Wilco Dijkstra <[email protected]>
8257
8258 * common/config/aarch64/cpuinfo.h: Remove FEAT_PREDRES and FEAT_LS64*.
8259 * config/aarch64/aarch64-option-extensions.def: Remove FMV support
8260 for PREDRES.
8261
8262 2025-03-13 Richard Sandiford <[email protected]>
8263
8264 * match.pd: Extend pointer alignment folds so that they handle
8265 the case where a constant is added before or after the alignment.
8266
8267 2025-03-13 Richard Sandiford <[email protected]>
8268
8269 * match.pd: Fold ((X >> C1) & C2) * (1 << C1) to X & (C2 << C1).
8270
8271 2025-03-13 Robin Dapp <[email protected]>
8272
8273 PR target/119115
8274 * config/riscv/riscv-vsetvl.cc (reg_used): New function.
8275 (reg_single_use_in_avl): Ditto.
8276 (pre_vsetvl::fuse_local_vsetvl_info): Use reg_single_use_in_avl
8277 when checking if vsetvl can be deleted.
8278
8279 2025-03-13 Robin Dapp <[email protected]>
8280
8281 PR target/117955
8282 * config/riscv/riscv-vsetvl.cc: Use LMUL/ratio from vsetvl with
8283 larger SEW.
8284
8285 2025-03-13 Matthias Klose <[email protected]>
8286
8287 * configure.ac: Add option --enable-versioned-jit.
8288 * configure: Regenerate.
8289 * Makefile.in: Move from jit/Make-lang.in, setting value from
8290 configure.ac.
8291 * doc/install.texi: Document option --enable-versioned-jit.
8292
8293 2025-03-13 Xi Ruoyao <[email protected]>
8294
8295 PR target/119238
8296 * config/loongarch/simd.md (<su>dot_prod<wvec_half><mode>):
8297 Stop using structured binding.
8298
8299 2025-03-12 Alex Coplan <[email protected]>
8300
8301 PR rtl-optimization/116564
8302 * df-problems.cc (df_simulate_defs): For partial defs, mark the
8303 register live (treat it as a RMW operation).
8304
8305 2025-03-12 Richard Earnshaw <[email protected]>
8306
8307 PR target/115439
8308 * config/arm/predicates.md (vpr_register_operand): Allow type-punning
8309 subregs.
8310
8311 2025-03-12 Richard Sandiford <[email protected]>
8312
8313 PR target/116901
8314 * config/aarch64/aarch64.cc (aarch64_vector_costs::count_ops): Allow
8315 stmt_info to be null.
8316 (aarch64_vector_costs::add_stmt_cost): Call count_ops even if
8317 stmt_info is null.
8318
8319 2025-03-12 Richard Sandiford <[email protected]>
8320
8321 PR tree-optimization/116901
8322 * tree-vect-loop.cc (vectorizable_reduction): Set ncopies to
8323 SLP_TREE_NUMBER_OF_VEC_STMTS for SLP.
8324
8325 2025-03-12 Jakub Jelinek <[email protected]>
8326
8327 * tree.def (RAW_DATA_CST): Document meaning of NULL RAW_DATA_OWNER.
8328 (CONSTRUCTOR): Document meaning of RAW_DATA_CST used as element
8329 value.
8330
8331 2025-03-12 Jakub Jelinek <[email protected]>
8332
8333 PR middle-end/119204
8334 PR middle-end/119219
8335 * builtins.cc (fold_builtin_2): Pass type as another argument
8336 to fold_builtin_strspn and fold_builtin_strcspn.
8337 (fold_builtin_strspn): Add type argument, use it instead of
8338 size_type_node.
8339 (fold_builtin_strcspn): Add type argument, use it instead of
8340 TREE_TYPE (expr).
8341
8342 2025-03-12 Jeff Law <[email protected]>
8343
8344 Revert:
8345 2025-03-09 Jeff Law <[email protected]>
8346
8347 PR rtl-optimization/117467
8348 * ext-dce.cc (ext_dce_process_uses): When trivially possible advance
8349 the iterator over the destination of a SET.
8350
8351 2025-03-11 Andrew Pinski <[email protected]>
8352
8353 PR target/119131
8354 * config/aarch64/aarch64.cc (aarch64_valid_fp_move): Remove check
8355 for !DECIMAL_FLOAT_MODE_P.
8356 (aarch64_float_const_representable_p): Reject decimal floating modes.
8357 * config/aarch64/aarch64.md (mov<mode>): Likewise.
8358
8359 2025-03-11 Jonathan Wakely <[email protected]>
8360
8361 * doc/extend.texi (Common Variable Attributes): Fix grammar in
8362 final sentence of -ftrivial-auto-var-init description.
8363
8364 2025-03-11 Juergen Christ <[email protected]>
8365
8366 * config/s390/s390.cc (s390_delegitimize_address): Add missing case.
8367
8368 2025-03-11 Martin Jambor <[email protected]>
8369
8370 * tree-ssa-alias.cc (ao_compare::compare_ao_refs): Fix a
8371 copy-and-paste error.
8372
8373 2025-03-11 Jakub Jelinek <[email protected]>
8374
8375 * dwarf2out.cc (gen_compile_unit_die): Use DW_LANG_Cobol85 if
8376 language_string is "GCC COBOL" rather than "Cobol".
8377
8378 2025-03-11 Richard Biener <[email protected]>
8379
8380 PR middle-end/119204
8381 * builtins.cc (fold_builtin_strcspn): Preserve the original
8382 expression type.
8383
8384 2025-03-11 Jakub Jelinek <[email protected]>
8385
8386 PR c/119183
8387 * tree.cc (skip_simple_arithmetic): If first operand of binary
8388 expr is TREE_CONSTANT or TREE_READONLY with no side-effects, call
8389 tree_invariant_p on that operand first instead of on the second.
8390
8391 2025-03-11 Jakub Jelinek <[email protected]>
8392
8393 PR debug/119190
8394 * tree-complex.cc (update_complex_assignment, tree_lower_complex):
8395 Perform simple dce on dce_worklist only if optimize.
8396
8397 2025-03-11 Stefan Schulze Frielinghaus <[email protected]>
8398
8399 * config.gcc: Fail in case of option --with-mode=esa.
8400 * config/s390/s390.cc (s390_option_override_internal): Default
8401 to z/Architecture mode.
8402 * config/s390/s390.h (DRIVER_SELF_SPECS): Ditto.
8403 * config/s390/s390.opt: Emit a warning for option -mesa.
8404 * doc/invoke.texi: Document the change.
8405
8406 2025-03-11 Stefan Schulze Frielinghaus <[email protected]>
8407
8408 PR target/115835
8409 * config/s390/s390.cc (s390_insn_cost): Implement.
8410 (TARGET_INSN_COST): Define.
8411
8412 2025-03-11 Richard Biener <[email protected]>
8413
8414 PR tree-optimization/119166
8415 * tree-vect-stmts.cc (get_load_store_type): Guard SLP tree
8416 access.
8417
8418 2025-03-11 James K. Lowden <[email protected]>
8419
8420 * doc/contrib.texi: Update for gcobol.
8421 * doc/frontends.texi: Likewise.
8422 * doc/install.texi: Likewise.
8423 * doc/invoke.texi: Likewise.
8424 * doc/sourcebuild.texi: Likewise.
8425 * doc/standards.texi: Likewise.
8426
8427 2025-03-11 James K. Lowden <[email protected]>
8428
8429 * Makefile.in (installdirs): Create man3 directory.
8430 * common.opt (static-libgcobol): New driver option.
8431 * dwarf2out.cc (gen_compile_unit_die): Support Cobol as
8432 source language.
8433
8434 2025-03-10 Richard Sandiford <[email protected]>
8435 Kugan Vivekanandarajah <[email protected]>
8436
8437 PR target/115258
8438 * config/aarch64/aarch64.cc (aarch64_vectorize_vec_perm_const): Use
8439 d.one_vector_p to decide whether op1 should be a copy of op0.
8440
8441 2025-03-10 Vladimir N. Makarov <[email protected]>
8442
8443 PR target/114991
8444 * ira-costs.cc (equiv_can_be_consumed_p): Add new argument invariant_p.
8445 Add code for dealing with the invariant.
8446 (calculate_equiv_gains): Don't consider init insns. Pass the new
8447 argument to equiv_can_be_consumed_p. Don't treat invariant as
8448 memory.
8449
8450 2025-03-10 Sandra Loosemore <[email protected]>
8451
8452 * doc/invoke.texi (Instrumentation Options): Fix typo introduced
8453 in commit 313edeeeb607fe32da5633cfb6f91977add446f6.
8454
8455 2025-03-10 Christophe Lyon <[email protected]>
8456
8457 PR target/115439
8458 * config/arm/mve.md (vec_vcmp, vec_vcmpu, vcond_mask): Use
8459 vpr_register_operand predicate for MVE_VPRED operands.
8460
8461 2025-03-10 Xi Ruoyao <[email protected]>
8462
8463 PR target/119127
8464 * config/loongarch/loongarch.cc
8465 (loongarch_reassoc_shift_bitwise): Sign extend mask to mode,
8466 specially handle the case it's extended to -1.
8467 * config/loongarch/loongarch.md
8468 (loongarch_reassoc_shift_bitwise): Update the comment for the
8469 special case.
8470
8471 2025-03-10 Jakub Jelinek <[email protected]>
8472
8473 PR c/117178
8474 * gimple-ssa-warn-access.cc (maybe_warn_nonstring_arg): Look through
8475 multi-dimensional array types, stop at the innermost ARRAY_TYPE.
8476
8477 2025-03-09 Jeff Law <[email protected]>
8478
8479 PR rtl-optimization/117467
8480 * ext-dce.cc (ext_dce_process_sets): Handle FP destinations better.
8481
8482 2025-03-09 Jeff Law <[email protected]>
8483
8484 PR rtl-optimization/117467
8485 * ext-dce.cc (ext_dce_process_uses): When trivially possible advance
8486 the iterator over the destination of a SET.
8487
8488 2025-03-09 Andrew Pinski <[email protected]>
8489
8490 PR tree-optimization/118922
8491 * tree-ssa-phiopt.cc (value_replacement): Set empty_or_with_defined_p
8492 to false when there is phi nodes for the middle bb.
8493
8494 2025-03-09 Sandra Loosemore <[email protected]>
8495
8496 PR middle-end/118457
8497 * gimplify.cc (modify_call_for_omp_dispatch): New, containing
8498 code split from gimplify_call_expr and modified to emit tree
8499 instead of gimple. Remove the error for falling through to a call
8500 to the base function.
8501 (expand_variant_call_expr): New, split from gimplify_variant_call_expr.
8502 Call modify_call_for_omp_dispatch on calls to
8503 variants in a dispatch construct context.
8504 (gimplify_variant_call_expr): Make it call expand_variant_call_expr
8505 to do the actual work.
8506 (gimplify_call_expr): Remove sorry for calls involving both
8507 dynamic/late selectors and adjust_args/append_args, and adjust
8508 for new interface. Move adjust_args/append_args code to
8509 modify_call_for_omp_dispatch.
8510 (gimplify_omp_dispatch): Add some comments.
8511
8512 2025-03-08 Sandra Loosemore <[email protected]>
8513
8514 * doc/extend.texi (Basic Asm): Document that AssemblerInstructions
8515 can be an asm constexpr.
8516 (Extended Asm): Move the notes about asm constexprs for
8517 AssemblerTemplate and Clobbers to the corresponding subsections.
8518 Remove the notes for OutputOperands and InputOperands and reword
8519 misleading descriptions of the list item syntax. Note that
8520 constraint strings can be asm constexprs.
8521 (Asm constexprs): Use "title case" for subsection name. Be
8522 explicit about what parts of the asm syntax this applies to and
8523 that the parentheses are required. Correct markup and terminology.
8524
8525 2025-03-08 Sandra Loosemore <[email protected]>
8526
8527 PR c/67301
8528 * doc/extend.texi (Extended Asm): Clarify that the square brackets
8529 around the asmSymbolicName of operands are a required part of
8530 the syntax.
8531
8532 2025-03-07 Jakub Jelinek <[email protected]>
8533
8534 PR c/117178
8535 * tree.cc (get_attr_nonstring_decl): Look through all ARRAY_REFs, not
8536 just one and handle COMPONENT_REF and MEM_REF after skipping those
8537 rather than only when there wasn't ARRAY_REF. Formatting fix.
8538
8539 2025-03-07 Kees Cook <[email protected]>
8540 Jakub Jelinek <[email protected]>
8541
8542 PR c/117178
8543 * doc/invoke.texi (Wunterminated-string-initialization): Document
8544 the new interaction between this warning and -Wc++-compat and that
8545 initialization of decls with nonstring attribute aren't warned about.
8546
8547 2025-03-07 Sandra Loosemore <[email protected]>
8548
8549 PR sanitizer/56682
8550 * doc/invoke.texi (Instrumentation Options): Document that -g
8551 is useful with -fsanitize=thread and -fsanitize=address.
8552 Also mention -fno-omit-frame-pointer per the asan wiki.
8553
8554 2025-03-07 Richard Sandiford <[email protected]>
8555 Jan Hubicka <[email protected]>
8556 H.J. Lu <[email protected]>
8557
8558 PR rtl-optimization/117477
8559 * config/aarch64/aarch64.cc (aarch64_count_saves): New function.
8560 (aarch64_count_above_hard_fp_saves, aarch64_callee_save_cost)
8561 (aarch64_frame_allocation_cost): Likewise.
8562 (TARGET_CALLEE_SAVE_COST): Define.
8563 (TARGET_FRAME_ALLOCATION_COST): Likewise.
8564 * config/i386/i386.cc (ix86_ira_callee_saved_register_cost_scale):
8565 Replace with...
8566 (ix86_callee_save_cost): ...this new hook.
8567 (TARGET_IRA_CALLEE_SAVED_REGISTER_COST_SCALE): Delete.
8568 (TARGET_CALLEE_SAVE_COST): Define.
8569 * target.h (spill_cost_type, frame_cost_type): New enums.
8570 * target.def (callee_save_cost, frame_allocation_cost): New hooks.
8571 (ira_callee_saved_register_cost_scale): Delete.
8572 * doc/tm.texi.in (TARGET_IRA_CALLEE_SAVED_REGISTER_COST_SCALE): Delete.
8573 (TARGET_CALLEE_SAVE_COST, TARGET_FRAME_ALLOCATION_COST): New hooks.
8574 * doc/tm.texi: Regenerate.
8575 * hard-reg-set.h (hard_reg_set_popcount): New function.
8576 * ira-color.cc (allocated_memory_p): New variable.
8577 (allocated_callee_save_regs): Likewise.
8578 (record_allocation): New function.
8579 (assign_hard_reg): Use targetm.frame_allocation_cost to model
8580 the cost of the first spill or first caller save. Use
8581 targetm.callee_save_cost to model the cost of using new callee-saved
8582 registers. Apply the exit rather than entry frequency to the cost
8583 of restoring a register or deallocating the frame. Update the
8584 new variables above.
8585 (improve_allocation): Use record_allocation.
8586 (color): Initialize allocated_callee_save_regs.
8587 (ira_color): Initialize allocated_memory_p.
8588 * targhooks.h (default_callee_save_cost): Declare.
8589 (default_frame_allocation_cost): Likewise.
8590 * targhooks.cc (default_callee_save_cost): New function.
8591 (default_frame_allocation_cost): Likewise.
8592
8593 2025-03-07 Sandra Loosemore <[email protected]>
8594
8595 PR target/116708
8596 * doc/invoke.texi (x86 Options): Clarify how -msse4 and -mno-sse4
8597 interact with other SSE options.
8598
8599 2025-03-07 Martin Jambor <[email protected]>
8600
8601 PR ipa/118318
8602 * ipa-cp.cc (adjust_clone_incoming_counts): Add a compatible_p check.
8603
8604 2025-03-07 Richard Earnshaw <[email protected]>
8605
8606 * config/arm/arm_neon.h: Try harder to detect if we have
8607 the softfp ABI enabled.
8608
8609 2025-03-07 Jakub Jelinek <[email protected]>
8610
8611 PR c/112960
8612 PR c/117029
8613 * doc/extend.texi (Complex): Add I and J suffixes to the list of
8614 complex suffixes, adjust for all of those being part of ISO C2Y,
8615 clarify that for -fno-ext-numeric-literals none of those are
8616 recognized as GNU extensions and for C++14 i is considered UDL
8617 even for -fext-numeric-literals when <complex> is included.
8618
8619 2025-03-07 Simon Martin <[email protected]>
8620
8621 * tree-vect-data-refs.cc: Define INCLUDE_ALGORITHM.
8622
8623 2025-03-07 Tamar Christina <[email protected]>
8624
8625 PR tree-optimization/118464
8626 PR tree-optimization/116855
8627 * doc/invoke.texi (min-pagesize): Update docs with vectorizer use.
8628 * tree-vect-data-refs.cc (vect_analyze_early_break_dependences): Delay
8629 checks.
8630 (vect_compute_data_ref_alignment): Remove alignment checks and move to
8631 get_load_store_type, increase group access alignment.
8632 (vect_enhance_data_refs_alignment): Add note to comment needing
8633 investigating.
8634 (vect_analyze_data_refs_alignment): Likewise.
8635 (vect_supportable_dr_alignment): For group loads look at first DR.
8636 * tree-vect-stmts.cc (get_load_store_type):
8637 Perform safety checks for early break pfa.
8638 * tree-vectorizer.h (dr_set_safe_speculative_read_required,
8639 dr_safe_speculative_read_required, DR_SCALAR_KNOWN_BOUNDS): New.
8640 (need_peeling_for_alignment): Renamed to...
8641 (safe_speculative_read_required): .. This
8642 (class dr_vec_info): Add scalar_access_known_in_bounds.
8643
8644 2025-03-07 Tamar Christina <[email protected]>
8645
8646 PR tree-optimization/118464
8647 PR tree-optimization/116855
8648 * config/aarch64/aarch64-sve.md (@extract_<last_op>_<mode>,
8649 @fold_extract_<last_op>_<mode>,
8650 @aarch64_fold_extract_vector_<last_op>_<mode>): Change SVE_FULL to
8651 SVE_ALL.
8652 * config/aarch64/iterators.md (vccore): Add more partial types.
8653
8654 2025-03-07 Richard Biener <[email protected]>
8655
8656 PR tree-optimization/119145
8657 * tree-vectorizer.cc (try_vectorize_loop_1): Avoid BB
8658 vectorizing an if-converted loop body when there's a .MASK_CALL
8659 in the loop body.
8660
8661 2025-03-07 Christophe Lyon <[email protected]>
8662
8663 PR target/115485
8664 * config/arm/arm.cc (require_pic_register): Fix typos in
8665 comment. Handle fixed arm_pic_register.
8666
8667 2025-03-07 Richard Sandiford <[email protected]>
8668
8669 PR tree-optimization/116125
8670 * tree-vect-data-refs.cc (vect_prune_runtime_alias_test_list): Make
8671 the dr_with_seg_len alignment fields describe tha access sizes as
8672 well as the pointer alignment.
8673 * tree-data-ref.cc (create_intersect_range_checks): Don't compensate
8674 for invalid alignment fields here.
8675
8676 2025-03-07 Richard Sandiford <[email protected]>
8677
8678 PR target/119133
8679 * config/aarch64/aarch64.md
8680 (*aarch64_bfi<GPI:mode><ALLX:mode>_<SUBDI_BITS>): Use
8681 force_lowpart_subreg.
8682
8683 2025-03-07 Richard Biener <[email protected]>
8684
8685 PR middle-end/118801
8686 * tree-ssa-dce.cc (eliminate_unnecessary_stmts): Prune
8687 sequences of uninterrupted DEBUG BEGIN_STMTs, keeping only
8688 the last of a set with unique location.
8689
8690 2025-03-07 Sandra Loosemore <[email protected]>
8691
8692 PR c/113515
8693 * doc/invoke.texi (Warning Options): Improve -Wstringop-overflow
8694 documentation.
8695
8696 2025-03-07 Haochen Jiang <[email protected]>
8697
8698 * config/i386/avx10_2-512convertintrin.h
8699 (_mm512_mask_cvtbf8_ph): Correct mask width.
8700 (_mm512_maskz_cvtbf8_ph): Ditto.
8701 * config/i386/avx10_2convertintrin.h
8702 (_mm256_mask_cvtbf8_ph): Ditto.
8703 (_mm256_maskz_cvtbf8_ph): Ditto.
8704
8705 2025-03-06 Alexey Merzlyakov <[email protected]>
8706
8707 PR rtl-optimization/119099
8708 * ext-dce.cc (ext_dce_rd_transfer_n): Do not allow the livein
8709 set to shrink.
8710
8711 2025-03-06 Simon Martin <[email protected]>
8712
8713 * config/i386/x86-tune-sched.cc (ix86_fuse_mov_alu_p): Fix
8714 comment typo, paramter -> parameter.
8715 * config/lm32/lm32.cc (lm32_std_gimplify_va_arg_expr): Likewise.
8716
8717 2025-03-06 Wilco Dijkstra <[email protected]>
8718
8719 PR target/118351
8720 PR other/38768
8721 * common/config/aarch64/aarch64-common.cc: Enable early scheduling with
8722 -O3 and higher.
8723 * doc/invoke.texi (-fschedule-insns): Update comment.
8724
8725 2025-03-06 Richard Sandiford <[email protected]>
8726
8727 Revert:
8728 2025-03-06 Richard Sandiford <[email protected]>
8729 Jan Hubicka <[email protected]>
8730
8731 PR rtl-optimization/117477
8732 * config/aarch64/aarch64.cc (aarch64_count_saves): New function.
8733 (aarch64_count_above_hard_fp_saves, aarch64_callee_save_cost)
8734 (aarch64_frame_allocation_cost): Likewise.
8735 (TARGET_CALLEE_SAVE_COST): Define.
8736 (TARGET_FRAME_ALLOCATION_COST): Likewise.
8737 * config/i386/i386.cc (ix86_ira_callee_saved_register_cost_scale):
8738 Replace with...
8739 (ix86_callee_save_cost): ...this new hook.
8740 (TARGET_IRA_CALLEE_SAVED_REGISTER_COST_SCALE): Delete.
8741 (TARGET_CALLEE_SAVE_COST): Define.
8742 * target.h (spill_cost_type, frame_cost_type): New enums.
8743 * target.def (callee_save_cost, frame_allocation_cost): New hooks.
8744 (ira_callee_saved_register_cost_scale): Delete.
8745 * doc/tm.texi.in (TARGET_IRA_CALLEE_SAVED_REGISTER_COST_SCALE): Delete.
8746 (TARGET_CALLEE_SAVE_COST, TARGET_FRAME_ALLOCATION_COST): New hooks.
8747 * doc/tm.texi: Regenerate.
8748 * hard-reg-set.h (hard_reg_set_popcount): New function.
8749 * ira-color.cc (allocated_memory_p): New variable.
8750 (allocated_callee_save_regs): Likewise.
8751 (record_allocation): New function.
8752 (assign_hard_reg): Use targetm.frame_allocation_cost to model
8753 the cost of the first spill or first caller save. Use
8754 targetm.callee_save_cost to model the cost of using new callee-saved
8755 registers. Apply the exit rather than entry frequency to the cost
8756 of restoring a register or deallocating the frame. Update the
8757 new variables above.
8758 (improve_allocation): Use record_allocation.
8759 (color): Initialize allocated_callee_save_regs.
8760 (ira_color): Initialize allocated_memory_p.
8761 * targhooks.h (default_callee_save_cost): Declare.
8762 (default_frame_allocation_cost): Likewise.
8763 * targhooks.cc (default_callee_save_cost): New function.
8764 (default_frame_allocation_cost): Likewise.
8765
8766 2025-03-06 Richard Biener <[email protected]>
8767
8768 PR lto/114501
8769 * ipa-free-lang-data.cc (find_decls_types_r): Explicitly
8770 handle CONSTRUCTORs as walk_tree handling of those is
8771 incomplete.
8772
8773 2025-03-06 Alex Coplan <[email protected]>
8774
8775 PR rtl-optimization/114492
8776 * pair-fusion.cc (pair_fusion_bb_info::fuse_pair): Check for singleton
8777 move range before calling restrict_movement.
8778 (pair_fusion::try_promote_writeback): Likewise.
8779
8780 2025-03-06 Richard Sandiford <[email protected]>
8781 Jan Hubicka <[email protected]>
8782
8783 PR rtl-optimization/117477
8784 * config/aarch64/aarch64.cc (aarch64_count_saves): New function.
8785 (aarch64_count_above_hard_fp_saves, aarch64_callee_save_cost)
8786 (aarch64_frame_allocation_cost): Likewise.
8787 (TARGET_CALLEE_SAVE_COST): Define.
8788 (TARGET_FRAME_ALLOCATION_COST): Likewise.
8789 * config/i386/i386.cc (ix86_ira_callee_saved_register_cost_scale):
8790 Replace with...
8791 (ix86_callee_save_cost): ...this new hook.
8792 (TARGET_IRA_CALLEE_SAVED_REGISTER_COST_SCALE): Delete.
8793 (TARGET_CALLEE_SAVE_COST): Define.
8794 * target.h (spill_cost_type, frame_cost_type): New enums.
8795 * target.def (callee_save_cost, frame_allocation_cost): New hooks.
8796 (ira_callee_saved_register_cost_scale): Delete.
8797 * doc/tm.texi.in (TARGET_IRA_CALLEE_SAVED_REGISTER_COST_SCALE): Delete.
8798 (TARGET_CALLEE_SAVE_COST, TARGET_FRAME_ALLOCATION_COST): New hooks.
8799 * doc/tm.texi: Regenerate.
8800 * hard-reg-set.h (hard_reg_set_popcount): New function.
8801 * ira-color.cc (allocated_memory_p): New variable.
8802 (allocated_callee_save_regs): Likewise.
8803 (record_allocation): New function.
8804 (assign_hard_reg): Use targetm.frame_allocation_cost to model
8805 the cost of the first spill or first caller save. Use
8806 targetm.callee_save_cost to model the cost of using new callee-saved
8807 registers. Apply the exit rather than entry frequency to the cost
8808 of restoring a register or deallocating the frame. Update the
8809 new variables above.
8810 (improve_allocation): Use record_allocation.
8811 (color): Initialize allocated_callee_save_regs.
8812 (ira_color): Initialize allocated_memory_p.
8813 * targhooks.h (default_callee_save_cost): Declare.
8814 (default_frame_allocation_cost): Likewise.
8815 * targhooks.cc (default_callee_save_cost): New function.
8816 (default_frame_allocation_cost): Likewise.
8817
8818 2025-03-06 Richard Biener <[email protected]>
8819
8820 PR middle-end/119119
8821 * gimplify.cc (is_gimple_mem_rhs_or_call): All empty CTORs
8822 are OK when not a register type.
8823
8824 2025-03-05 Hannes Braun <[email protected]>
8825
8826 PR target/118942
8827 * config/arm/arm_neon.h (vld1q_s8_x3): Use int8_t instead of
8828 uint16_t.
8829 (vld1q_s16_x3): Use int16_t instead of uint16_t.
8830 (vld1q_s8_x4): Likewise.
8831 (vld1q_s16_x4): Likewise.
8832
8833 2025-03-05 Kyrylo Tkachov <[email protected]>
8834
8835 PR rtl-optimization/119046
8836 * config/aarch64/aarch64.cc (aarch64_evpc_dup): Use VOIDmode for
8837 PARALLEL.
8838
8839 2025-03-05 Kyrylo Tkachov <[email protected]>
8840
8841 PR rtl-optimization/119046
8842 * rtlanal.cc (may_trap_p_1): Don't mark FP-mode PARALLELs as trapping.
8843
8844 2025-03-05 Jakub Jelinek <[email protected]>
8845
8846 PR tree-optimization/118953
8847 * value-range.cc (irange::union_bitmask): Update m_bitmask if
8848 get_bitmask () is unknown_p and m_bitmask is not even when the
8849 semantic bitmask didn't change and returning false.
8850
8851 2025-03-05 Richard Biener <[email protected]>
8852
8853 PR middle-end/97323
8854 * tree.cc (gimple_canonical_types_compatible_p): Ignore
8855 TYPE_MODE also for ARRAY_TYPE.
8856 (verify_type): Likewise.
8857
8858 2025-03-05 Xi Ruoyao <[email protected]>
8859
8860 PR target/119084
8861 * config/loongarch/lasx.md (UNSPEC_LASX_XVLDX): Remove.
8862 (lasx_xvldx): Remove.
8863 * config/loongarch/lsx.md (UNSPEC_LSX_VLDX): Remove.
8864 (lsx_vldx): Remove.
8865 * config/loongarch/simd.md (QIVEC): New define_mode_iterator.
8866 (<simd_isa>_<x>vldx): New define_expand.
8867 * config/loongarch/loongarch.cc (loongarch_address_insns_1): New
8868 static function with most logic factored out from ...
8869 (loongarch_address_insns): ... here. Call
8870 loongarch_address_insns_1 with reg_reg_cost = 1.
8871 (loongarch_address_cost): Call loongarch_address_insns_1 with
8872 reg_reg_cost = la_addr_reg_reg_cost.
8873
8874 2025-03-04 Georg-Johann Lay <[email protected]>
8875
8876 * doc/invoke.texi (AVR Optimization Options): New @subsubsection
8877 for pure optimization options.
8878
8879 2025-03-04 Oscar Gustafsson <[email protected]>
8880
8881 * doc/extend.texi: Improve example for __builtin_bswap16.
8882
8883 2025-03-04 Jan Hubicka <[email protected]>
8884
8885 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_TZCNT): New macro.
8886 (TARGET_AVOID_FALSE_DEP_FOR_BLS): New macro.
8887 * config/i386/i386.md (*bmi_blsi_<mode>): Add splitter for false
8888 dependency.
8889 (*bmi_blsi_<mode>_ccno): Add splitter for false dependency.
8890 (*bmi_blsi_<mode>_falsedep): New pattern.
8891 (*bmi_blsmsk_<mode>): Add splitter for false dependency.
8892 (*bmi_blsmsk_<mode>_falsedep): New pattern.
8893 (*bmi_blsr_<mode>): Add splitter for false dependency.
8894 (*bmi_blsr_<mode>_cmp): Add splitter for false dependency
8895 (*bmi_blsr_<mode>_cmp_falsedep): New pattern.
8896 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_TZCNT): New tune.
8897 (X86_TUNE_AVOID_FALSE_DEP_FOR_BLS): New tune.
8898
8899 2025-03-04 Jan Hubicka <[email protected]>
8900
8901 * config/i386/i386.h (TARGET_FUSE_ALU_AND_BRANCH_MEM): New macro.
8902 (TARGET_FUSE_ALU_AND_BRANCH_MEM_IMM): New macro.
8903 (TARGET_FUSE_ALU_AND_BRANCH_RIP_RELATIVE): New macro.
8904 * config/i386/x86-tune-sched.cc (ix86_fuse_mov_alu_p): Support
8905 non-single-set.
8906 (ix86_macro_fusion_pair_p): Allow ALU which only clobbers;
8907 be more careful about immediates; check TARGET_FUSE_ALU_AND_BRANCH_MEM,
8908 TARGET_FUSE_ALU_AND_BRANCH_MEM_IMM, TARGET_FUSE_ALU_AND_BRANCH_RIP_RELATIVE;
8909 verify that we never use unsigned checks with inc/dec.
8910 * config/i386/x86-tune.def (X86_TUNE_FUSE_ALU_AND_BRANCH): New tune.
8911 (X86_TUNE_FUSE_ALU_AND_BRANCH_MEM): New tune.
8912 (X86_TUNE_FUSE_ALU_AND_BRANCH_MEM_IMM): New tune.
8913 (X86_TUNE_FUSE_ALU_AND_BRANCH_RIP_RELATIVE): New tune.
8914
8915 2025-03-04 Tamar Christina <[email protected]>
8916
8917 PR target/118892
8918 * config/aarch64/aarch64.md (copysign<GPF:mode>3): Use
8919 force_lowpart_subreg instead of lowpart_subreg.
8920
8921 2025-03-04 Richard Sandiford <[email protected]>
8922
8923 PR tree-optimization/118976
8924 * fold-const.cc (const_unop): Use ~ rather than - for BIT_NOT_EXPR.
8925 * config/aarch64/aarch64.cc (aarch64_test_sve_folding): New function.
8926 (aarch64_run_selftests): Run it.
8927
8928 2025-03-04 Richard Sandiford <[email protected]>
8929 Jakub Jelinek <[email protected]>
8930
8931 PR rtl-optimization/119002
8932 * simplify-rtx.cc
8933 (simplify_context::simplify_logical_relational_operation): Handle
8934 comparisons between CC values. If there is no evidence that the
8935 CC values are unsigned, restrict the fold to always-true or
8936 always-false results.
8937
8938 2025-03-04 Richard Biener <[email protected]>
8939
8940 PR tree-optimization/119096
8941 * tree-vect-loop.cc (vect_transform_reduction): Use the
8942 correct else value for .COND_fn.
8943
8944 2025-03-03 Andrew Carlotti <[email protected]>
8945
8946 * common/config/aarch64/aarch64-common.cc
8947 (struct aarch64_extension_info): Add field.
8948 (aarch64_get_required_features): New.
8949 * config/aarch64/aarch64-builtins.cc
8950 (aarch64_simd_switcher::aarch64_simd_switcher): Rename to...
8951 (aarch64_target_switcher::aarch64_target_switcher): ...this,
8952 and extend to handle sve, nosimd and target pragmas.
8953 (aarch64_simd_switcher::~aarch64_simd_switcher): Rename to...
8954 (aarch64_target_switcher::~aarch64_target_switcher): ...this,
8955 and extend to handle sve, nosimd and target pragmas.
8956 (handle_arm_acle_h): Use aarch64_target_switcher.
8957 (handle_arm_neon_h): Rename switcher and pass explicit flags.
8958 (aarch64_general_init_builtins): Ditto.
8959 * config/aarch64/aarch64-protos.h
8960 (class aarch64_simd_switcher): Rename to...
8961 (class aarch64_target_switcher): ...this, and add new members.
8962 (aarch64_get_required_features): New prototype.
8963 * config/aarch64/aarch64-sve-builtins.cc
8964 (sve_switcher::sve_switcher): Delete
8965 (sve_switcher::~sve_switcher): Delete
8966 (sve_alignment_switcher::sve_alignment_switcher): New
8967 (sve_alignment_switcher::~sve_alignment_switcher): New
8968 (register_builtin_types): Use alignment switcher
8969 (init_builtins): Rename switcher.
8970 (handle_arm_neon_sve_bridge_h): Ditto.
8971 (handle_arm_sme_h): Ditto.
8972 (handle_arm_sve_h): Ditto, and use alignment switcher.
8973 * config/aarch64/aarch64-sve-builtins.h
8974 (class sve_switcher): Delete.
8975 (class sme_switcher): Delete.
8976 (class sve_alignment_switcher): New.
8977 * config/aarch64/t-aarch64 (aarch64-builtins.o): Add $(REGS_H).
8978 (aarch64-sve-builtins.o): Remove $(REG_H).
8979
8980 2025-03-03 Richard Earnshaw <[email protected]>
8981
8982 * config/arm/thumb1.md (split patterns for GEU and LEU): New.
8983
8984 2025-03-03 Uros Bizjak <[email protected]>
8985
8986 Revert:
8987 2025-03-03 Uros Bizjak <[email protected]>
8988
8989 * combine.cc (distribute_notes):
8990 Reverse negative logic in ternary operators.
8991
8992 2025-03-03 Uros Bizjak <[email protected]>
8993
8994 * combine.cc (distribute_notes):
8995 Reverse negative logic in ternary operators.
8996
8997 2025-03-03 Uros Bizjak <[email protected]>
8998
8999 PR rtl-optimization/118739
9000 * combine.cc (distribute_notes) <case REG_UNUSED>: Correct the
9001 logic when the register is used by I3.
9002
9003 2025-03-03 Martin Jambor <[email protected]>
9004
9005 PR ipa/118785
9006 * ipa-cp.cc (ipa_vr_intersect_with_arith_jfunc): Handle non-conversion
9007 unary operations separately before doing any conversions. Check
9008 expr_type_first_operand_type_p for non-unary operations too. Fix type
9009 of op_res.
9010
9011 2025-03-03 Richard Biener <[email protected]>
9012
9013 PR tree-optimization/119057
9014 * tree-vect-loop.cc (check_reduction_path): Add argument
9015 specifying whether we're analyzing the inner loop of a
9016 double reduction. Do not allow extra uses outside of the
9017 double reduction cycle in this case.
9018 (vect_is_simple_reduction): Adjust.
9019
9020 2025-03-03 Richard Biener <[email protected]>
9021
9022 PR ipa/119067
9023 * ipa-devirt.cc (odr_types_equivalent_p): Check
9024 TYPE_VECTOR_SUBPARTS for vectors.
9025
9026 2025-03-02 Jeff Law <[email protected]>
9027
9028 PR target/118934
9029 * config/riscv/corev.md (cv_branch): Adjust output template.
9030 (branch): Likewise.
9031 * config/riscv/riscv.md (branch): Likewise.
9032 * config/riscv/riscv.cc (riscv_asm_output_opcode): Handle 'r' rather
9033 than 'n'.
9034
9035 2025-03-02 Jakub Jelinek <[email protected]>
9036
9037 PR translation/118991
9038 * config/avr/avr.cc (avr_print_operand): Print ival into
9039 a temporary buffer and use %s in output_operand_lossage to make
9040 the diagnostics translatable.
9041
9042 2025-03-02 Filip Kastl <[email protected]>
9043
9044 PR tree-optimization/117919
9045 * gimple-ssa-sccopy.cc (scc_copy_prop::propagate): Prune
9046 statements that 'replace_uses_by ()' removed.
9047
9048 2025-03-01 Gerald Pfeifer <[email protected]>
9049
9050 PR target/69374
9051 * doc/install.texi (Specific, *-*-freebsd*): Simplify description.
9052
9053 2025-03-01 Jakub Jelinek <[email protected]>
9054
9055 PR jit/117047
9056 * ggc-common.cc (ggc_internal_cleared_alloc_no_dtor): Pass size
9057 rather than s as the first argument to ggc_internal_cleared_alloc.
9058
9059 2025-03-01 Yuriy Kolerov <[email protected]>
9060
9061 PR target/118906
9062 * common/config/riscv/riscv-common.cc: fix zce to zcf
9063 implication.
9064
9065 2025-03-01 Jan Dubiec <[email protected]>
9066
9067 PR target/114222
9068 * config/h8300/h8300.cc (h8300_init_libfuncs): For HImode override
9069 calls to external ffs() (from newlib) with calls to __ffshi2() from
9070 libgcc. The implementation of ffs() in newlib calls __builtin_ffs()
9071 what causes infinite recursion and finally a stack overflow.
9072
9073 2025-03-01 Jakub Jelinek <[email protected]>
9074
9075 PR other/119052
9076 * input.cc (check_line): Don't call sscanf on non-null terminated
9077 buffer, instead copy line.length () bytes from line.get_buffer ()
9078 to a local buffer, null terminate it and call sscanf on that.
9079 Formatting fix.
9080 (test_replacement): Just allocate maxline * 5 rather than maxline * 15
9081 bytes for the file. Formatting fix.
9082
9083 2025-03-01 Jakub Jelinek <[email protected]>
9084
9085 PR jit/117047
9086 * acinclude.m4 (gcc_CHECK_ATTRIBUTE_ALIAS): New.
9087 * configure.ac: Add gcc_CHECK_ATTRIBUTE_ALIAS.
9088 * ggc.h (ggc_internal_alloc): Remove ATTRIBUTE_MALLOC from
9089 overload with finalizer pointer. Call ggc_internal_alloc_no_dtor
9090 in inline overload without finalizer pointer.
9091 (ggc_internal_alloc_no_dtor): Declare.
9092 (ggc_internal_cleared_alloc): Remove ATTRIBUTE_MALLOC from
9093 overload with finalizer pointer. Call
9094 ggc_internal_cleared_alloc_no_dtor in inline overload without
9095 finalizer pointer.
9096 (ggc_internal_cleared_alloc_no_dtor): Declare.
9097 (ggc_alloc): Call ggc_internal_alloc_no_dtor if no finalization
9098 is needed.
9099 (ggc_alloc_no_dtor): Call ggc_internal_alloc_no_dtor.
9100 (ggc_cleared_alloc): Call ggc_internal_cleared_alloc_no_dtor if no
9101 finalization is needed.
9102 (ggc_vec_alloc): Call ggc_internal_alloc_no_dtor if no finalization
9103 is needed.
9104 (ggc_cleared_vec_alloc): Call ggc_internal_cleared_alloc_no_dtor if no
9105 finalization is needed.
9106 * ggc-page.cc (ggc_internal_alloc): If HAVE_ATTRIBUTE_ALIAS, turn
9107 overload with finalizer into alias to ggc_internal_alloc_ and
9108 rename it to ...
9109 (ggc_internal_alloc_): ... this, make it extern "C".
9110 (ggc_internal_alloc_no_dtor): New alias if HAVE_ATTRIBUTE_ALIAS,
9111 otherwise new noinline wrapper.
9112 * ggc-common.cc (ggc_internal_cleared_alloc): If HAVE_ATTRIBUTE_ALIAS,
9113 turn overload with finalizer into alias to ggc_internal_alloc_ and
9114 rename it to ...
9115 (ggc_internal_cleared_alloc_): ... this, make it extern "C".
9116 (ggc_internal_cleared_alloc_no_dtor): New alias if
9117 HAVE_ATTRIBUTE_ALIAS, otherwise new noinline wrapper.
9118 * ggc-none.cc (ggc_internal_alloc): If HAVE_ATTRIBUTE_ALIAS, turn
9119 overload with finalizer into alias to ggc_internal_alloc_ and
9120 rename it to ...
9121 (ggc_internal_alloc_): ... this, make it extern "C".
9122 (ggc_internal_alloc_no_dtor): New alias if HAVE_ATTRIBUTE_ALIAS,
9123 otherwise new wrapper.
9124 (ggc_internal_cleared_alloc): If HAVE_ATTRIBUTE_ALIAS, turn overload
9125 with finalizer into alias to ggc_internal_alloc_ and rename it to ...
9126 (ggc_internal_cleared_alloc_): ... this, make it extern "C".
9127 (ggc_internal_cleared_alloc_no_dtor): New alias if
9128 HAVE_ATTRIBUTE_ALIAS, otherwise new wrapper.
9129 * genmatch.cc (ggc_internal_cleared_alloc, ggc_free): Formatting fix.
9130 (ggc_internal_cleared_alloc_no_dtor): Define.
9131 * config.in: Regenerate.
9132 * configure: Regenerate.
9133
9134 2025-03-01 Jakub Jelinek <[email protected]>
9135
9136 PR middle-end/115871
9137 * omp-simd-clone.cc (simd_clone_adjust): For SIMD_CLONE_ARG_TYPE_MASK
9138 and sc->mask_mode not VOIDmode, set elem_type to the characteristic
9139 type rather than boolean_type_node.
9140
9141 2025-03-01 Jan Dubiec <[email protected]>
9142
9143 PR target/109189
9144 * config/h8300/h8300.cc (h8300_print_operand): Replace %ld format
9145 strings with HOST_WIDE_INT_PRINT_DEC macro in order to silence
9146 -Wformat warnings when building on Windows/MinGW64.
9147
9148 2025-02-28 Martin Jambor <[email protected]>
9149
9150 PR ipa/118243
9151 * ipa-sra.cc (pull_accesses_from_callee): New parameters
9152 caller_ipcp_ts and param_idx. Check that scalar pulled accesses would
9153 not clash with a known IPA-CP aggregate constant.
9154 (param_splitting_across_edge): Pass IPA-CP transformation summary and
9155 caller parameter index to pull_accesses_from_callee.
9156
9157 2025-02-28 Richard Biener <[email protected]>
9158
9159 PR ipa/111245
9160 * ipa-modref.cc (modref_access_analysis::analyze_store): Do
9161 not guard the check of whether the stmt could throw by
9162 cfun->can_throw_non_call_exceptions.
9163
9164 2025-02-28 Jakub Jelinek <[email protected]>
9165
9166 PR rtl-optimization/117712
9167 * expr.cc (force_operand): Handle {,UNSIGNED_}FIX with
9168 FIX operand using expand_fix on the inner FIX operand.
9169
9170 2025-02-28 Richard Biener <[email protected]>
9171
9172 PR tree-optimization/87984
9173 * tree-ssa-dom.cc (dom_opt_dom_walker::optimize_stmt): Do
9174 not perform redundant store elimination to hard register
9175 variables.
9176 * tree-ssa-sccvn.cc (eliminate_dom_walker::eliminate_stmt):
9177 Likewise.
9178
9179 2025-02-28 Richard Biener <[email protected]>
9180
9181 PR middle-end/66279
9182 * gimplify.cc (gimplify_asm_expr): Copy TREE_PURPOSE before
9183 rewriting it for "+" processing.
9184
9185 2025-02-28 H.J. Lu <[email protected]>
9186
9187 * config/i386/i386.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
9188 Moved to ...
9189 * config/i386/i386.cc (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
9190 Here.
9191
9192 2025-02-27 Pan Li <[email protected]>
9193
9194 PR target/118931
9195 * config/riscv/riscv-v.cc (expand_const_vector): Add overflow to
9196 smode check and clean up highest bits if overflow.
9197
9198 2025-02-27 Jakub Jelinek <[email protected]>
9199
9200 PR tree-optimization/119030
9201 * gimple-fold.cc (fold_truth_andor_for_ifcombine): Fix a pasto,
9202 ll_unsignedp -> rl_unsignedp.
9203
9204 2025-02-27 Jakub Jelinek <[email protected]>
9205
9206 PR middle-end/118860
9207 * input.h (file_cache::tune): No longer static. Rename argument
9208 from num_file_slots_ to num_file_slots. Formatting fix.
9209 (file_cache::num_file_slots): Renamed to ...
9210 (file_cache::m_num_file_slots): ... this. No longer static.
9211 * input.cc (file_cache_slot::tune): Change return type from void to
9212 size_t, return previous file_cache_slot::line_record_size value.
9213 Formatting fixes.
9214 (file_cache::tune): Rename argument from num_file_slots_ to
9215 num_file_slots. Set m_num_file_slots rather than num_file_slots.
9216 If m_num_file_slots or file_cache_slot::line_record_size changes,
9217 delete[] m_file_slots and new it again.
9218 (file_cache::num_file_slots): Remove definition.
9219 (file_cache::lookup_file): Use m_num_file_slots rather than
9220 num_file_slots.
9221 (file_cache::evicted_cache_tab_entry): Likewise.
9222 (file_cache::file_cache): Likewise. Initialize m_num_file_slots
9223 to 16.
9224 (file_cache::dump): Use m_num_file_slots rather than num_file_slots.
9225 (file_cache_slot::get_next_line): Formatting fixes.
9226 (file_cache_slot::read_line_num): Likewise.
9227 (get_source_text_between): Likewise.
9228 * toplev.cc (toplev::main): Call global_dc->get_file_cache ().tune
9229 rather than file_cache::tune.
9230
9231 2025-02-27 Thomas Schwinge <[email protected]>
9232
9233 * config/nvptx/nvptx.h (MAX_FIXED_MODE_SIZE): '#define'.
9234
9235 2025-02-27 Thomas Schwinge <[email protected]>
9236
9237 * config/nvptx/nvptx.opt (-mfake-ptx-alloca): New.
9238 * config/nvptx/nvptx-protos.h (nvptx_output_fake_ptx_alloca):
9239 Declare.
9240 * config/nvptx/nvptx.cc (nvptx_output_fake_ptx_alloca): New.
9241 * config/nvptx/nvptx.md (define_insn "@nvptx_alloca_<mode>")
9242 [!(TARGET_PTX_7_3 && TARGET_SM52)]: Use it for
9243 '-mfake-ptx-alloca'.
9244
9245 2025-02-27 Thomas Schwinge <[email protected]>
9246
9247 * config/nvptx/nvptx.md (define_expand "allocate_stack")
9248 [!TARGET_SOFT_STACK]: Move
9249 'sorry ("dynamic stack allocation not supported");'...
9250 (define_insn "@nvptx_alloca_<mode>"): ... here.
9251
9252 2025-02-27 Jerry DeLisle <[email protected]>
9253
9254 PR fortran/108369
9255 * doc/invoke.texi: Add a note to clarify. Adjust some wording.
9256
9257 2025-02-27 Haochen Jiang <[email protected]>
9258
9259 * config/i386/x86-tune.def
9260 (X86_TUNE_DEST_FALSE_DEP_FOR_GLC): Add GNR, GNR-D, DMR.
9261 (X86_TUNE_AVOID_256FMA_CHAINS): Ditto.
9262 (X86_TUNE_AVX512_MOVE_BY_PIECES): Ditto.
9263 (X86_TUNE_AVX512_STORE_BY_PIECES): Ditto.
9264
9265 2025-02-27 Jakub Jelinek <[email protected]>
9266
9267 * gimple-range-phi.cc (phi_analyzer::process_phi): Fix comment typo,
9268 dpoesn;t -> doesn't.
9269
9270 2025-02-27 Jakub Jelinek <[email protected]>
9271
9272 PR testsuite/116143
9273 * Makefile.in (EXTRA_BACKEND_OBJS): New variable.
9274 (BACKEND): Use it before libbackend.a.
9275
9276 2025-02-27 Jakub Jelinek <[email protected]>
9277
9278 PR middle-end/118819
9279 * alias.cc (memrefs_conflict_p): Perform arithmetics on c, xsize and
9280 ysize in poly_offset_int and return -1 if it is not representable in
9281 poly_int64.
9282
9283 2025-02-26 Jakub Jelinek <[email protected]>
9284
9285 PR c/119001
9286 * varasm.cc (output_constructor_regular_field): Don't fail
9287 assertion if next is non-NULL and FIELD_DECL if
9288 TREE_CODE (local->type) is UNION_TYPE.
9289
9290 2025-02-26 Jakub Jelinek <[email protected]>
9291
9292 PR c/114870
9293 * ginclude/stddef.h (__STDC_VERSION_STDDEF_H__, unreachable): Don't
9294 redefine multiple times if stddef.h is first included without __need_*
9295 defines and later with them. Move nullptr_t and unreachable and
9296 __STDC_VERSION_STDDEF_H__ definitions into the same
9297 defined (__STDC_VERSION__) && __STDC_VERSION__ > 201710L #if block.
9298
9299 2025-02-26 Jakub Jelinek <[email protected]>
9300
9301 PR rtl-optimization/119002
9302 * config/arm/arm.h (REVERSE_CONDITION): Use CODE - the macro
9303 argument - in the macro rather than code.
9304
9305 2025-02-26 Vladimir N. Makarov <[email protected]>
9306
9307 PR middle-end/119021
9308 * lra.cc (lra_asm_insn_error): Use lra_invalidate_insn_data
9309 instead of lra_update_insn_regno_info.
9310 * lra-assigns.cc (lra_split_hard_reg_for): Restore old code.
9311
9312 2025-02-26 Alexandre Oliva <[email protected]>
9313
9314 * doc/sourcebuild.texi: Add x86 effective target.
9315
9316 2025-02-26 Alexandre Oliva <[email protected]>
9317
9318 * doc/sourcebuild.texi (dg-do-if): Document.
9319
9320 2025-02-26 Jakub Jelinek <[email protected]>
9321
9322 PR testsuite/116143
9323 * simple-diagnostic-path.h (simple_diagnostic_path::num_events): Define
9324 inline.
9325 (simple_diagnostic_path::num_threads): Likewise.
9326 * simple-diagnostic-path.cc (simple_diagnostic_path::num_events):
9327 Remove out of line definition.
9328 (simple_diagnostic_path::num_threads): Likewise.
9329
9330 2025-02-25 Jason Merrill <[email protected]>
9331
9332 * doc/install.texi: 10.5 won't bootstrap with C++98.
9333
9334 2025-02-25 Vladimir N. Makarov <[email protected]>
9335
9336 PR target/115458
9337 * lra-int.h (LRA_MAX_FAILED_SPLITS): Define and check its value.
9338 (lra_split_hard_reg_for): Change prototype.
9339 * lra.cc (lra): Try to split hard reg range several times after a
9340 failure.
9341 * lra-assigns.cc (lra_split_hard_reg_for): Add an arg, a flag of
9342 giving up. Report asm error and nullify the asm insn depending on
9343 the arg value.
9344
9345 2025-02-25 Jakub Jelinek <[email protected]>
9346
9347 PR translation/118991
9348 * config/pru/pru-pragma.cc (pru_pragma_ctable_entry): Use %wd
9349 instead of %" HOST_WIDE_INT_PRINT "d to print a hwi in error.
9350
9351 2025-02-25 Iain Buclaw <[email protected]>
9352
9353 PR d/118654
9354 * config/i386/i386-d.cc (ix86_d_target_versions): Predefine GNU_CET.
9355 (ix86_d_handle_target_cf_protection): New.
9356 (ix86_d_register_target_info): Add 'CET' TargetInfo key.
9357
9358 2025-02-24 Robin Dapp <[email protected]>
9359
9360 PR target/114516
9361 * config/riscv/riscv-vector-costs.cc (compute_estimated_lmul):
9362 Add pattern statements to program points.
9363
9364 2025-02-24 Robin Dapp <[email protected]>
9365
9366 PR middle-end/118950
9367 * tree-vect-patterns.cc (vect_recog_gather_scatter_pattern): Use
9368 original LHS's type.
9369
9370 2025-02-24 Jakub Jelinek <[email protected]>
9371
9372 PR tree-optimization/118915
9373 * tree-ssa-reassoc.cc (optimize_range_tests_to_bit_test): For
9374 highj == NULL_TREE use TYPE_MAX_VALUE (TREE_TYPE (lowj)) rather
9375 than TYPE_MAX_VALUE (type).
9376
9377 2025-02-24 Richard Biener <[email protected]>
9378
9379 PR tree-optimization/118973
9380 * tree-ssa-dce.cc (mark_stmt_if_obviously_necessary): Calls
9381 that alter control flow in unpredictable ways need to be
9382 preserved.
9383
9384 2025-02-24 Jakub Jelinek <[email protected]>
9385
9386 PR middle-end/118993
9387 * gimplify.cc (gimplify_scan_omp_clauses): Fix diagnostics typo,
9388 undfined -> undefined.
9389
9390 2025-02-24 Jakub Jelinek <[email protected]>
9391
9392 PR c/117023
9393 * builtin-attrs.def (ATTR_NONNULL_IF_NONZERO): New DEF_ATTR_IDENT.
9394 (ATTR_NOTHROW_NONNULL_IF12_LEAF, ATTR_NOTHROW_NONNULL_IF13_LEAF,
9395 ATTR_NOTHROW_NONNULL_IF123_LEAF, ATTR_NOTHROW_NONNULL_IF23_LEAF,
9396 ATTR_NOTHROW_NONNULL_1_IF23_LEAF, ATTR_PURE_NOTHROW_NONNULL_IF12_LEAF,
9397 ATTR_PURE_NOTHROW_NONNULL_IF13_LEAF,
9398 ATTR_PURE_NOTHROW_NONNULL_IF123_LEAF,
9399 ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_IF12_LEAF,
9400 ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_IF12_LEAF): New
9401 DEF_ATTR_TREE_LIST.
9402 * builtins.def (BUILT_IN_STRNDUP): Use
9403 ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_IF12_LEAF instead of
9404 ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF.
9405 (BUILT_IN_STRNCAT, BUILT_IN_STRNCAT_CHK): Use
9406 ATTR_NOTHROW_NONNULL_1_IF23_LEAF instead of ATTR_NOTHROW_NONNULL_LEAF.
9407 (BUILT_IN_BCOPY, BUILT_IN_MEMCPY, BUILT_IN_MEMCPY_CHK,
9408 BUILT_IN_MEMMOVE, BUILT_IN_MEMMOVE_CHK, BUILT_IN_STRNCPY,
9409 BUILT_IN_STRNCPY_CHK): Use ATTR_NOTHROW_NONNULL_IF123_LEAF instead of
9410 ATTR_NOTHROW_NONNULL_LEAF.
9411 (BUILT_IN_MEMPCPY, BUILT_IN_MEMPCPY_CHK, BUILT_IN_STPNCPY,
9412 BUILT_IN_STPNCPY_CHK): Use ATTR_NOTHROW_NONNULL_IF123_LEAF instead of
9413 ATTR_RETNONNULL_NOTHROW_LEAF.
9414 (BUILT_IN_BZERO, BUILT_IN_MEMSET, BUILT_IN_MEMSET_CHK): Use
9415 ATTR_NOTHROW_NONNULL_IF13_LEAF instead of ATTR_NOTHROW_NONNULL_LEAF.
9416 (BUILT_IN_BCMP, BUILT_IN_MEMCMP, BUILT_IN_STRNCASECMP,
9417 BUILT_IN_STRNCMP): Use ATTR_PURE_NOTHROW_NONNULL_IF123_LEAF instead of
9418 ATTR_PURE_NOTHROW_NONNULL_LEAF.
9419 (BUILT_IN_STRNLEN): Use ATTR_PURE_NOTHROW_NONNULL_IF12_LEAF instead of
9420 ATTR_PURE_NOTHROW_NONNULL_LEAF.
9421 (BUILT_IN_MEMCHR): Use ATTR_PURE_NOTHROW_NONNULL_IF13_LEAF instead of
9422 ATTR_PURE_NOTHROW_NONNULL_LEAF.
9423
9424 2025-02-24 Lino Hsing-Yu Peng <[email protected]>
9425
9426 * config/riscv/riscv.cc: Set multi push regs bits.
9427
9428 2025-02-22 Thomas Schwinge <[email protected]>
9429
9430 * config/bpf/bpf.md (define_expand "allocate_stack"): Emit
9431 'sorry, unimplemented: dynamic stack allocation not supported'.
9432 * config/nvptx/nvptx.md (define_expand "allocate_stack")
9433 [!TARGET_SOFT_STACK && !(TARGET_PTX_7_3 && TARGET_SM52)]: Likewise.
9434
9435 2025-02-21 H.J. Lu <[email protected]>
9436
9437 * sese.cc (debug_edge): Append a newline.
9438
9439 2025-02-21 Richard Biener <[email protected]>
9440
9441 PR tree-optimization/118954
9442 * tree-predcom.cc (ref_at_iteration): Make sure to not
9443 associate the constant offset with DR_BASE_ADDRESS when
9444 that is an offsetted pointer.
9445
9446 2025-02-20 David Malcolm <[email protected]>
9447
9448 * diagnostic-core.h: Add comments making clear that these
9449 functions implicitly use global_dc.
9450
9451 2025-02-20 David Malcolm <[email protected]>
9452
9453 * libsarifreplay.cc
9454 (sarif_replayer::make_plain_text_within_result_message): Capture
9455 which json::string was used. When reporting on unescaped "{" or
9456 "}" in SARIF message strings, use that string rather than the
9457 message object, and refer the user to §3.11.5 ("Messages with
9458 placeholders") rather than §3.11.11 ("arguments"). Ideally we'd
9459 place the error at the precise character, but that can't be done
9460 without reworking json-parsing.cc's lexer::lex_string, which is
9461 too invasive for stage 4.
9462 (sarif_replayer::get_plain_text_from_mfms): Capture which
9463 json::string was used.
9464 (sarif_replayer::lookup_plain_text_within_result_message):
9465 Likewise.
9466
9467 2025-02-20 Gerald Pfeifer <[email protected]>
9468
9469 PR target/69374
9470 * doc/install.texi (Specific, aarch64*-*-*): Drop note for
9471 Binutils pre 2.24.
9472
9473 2025-02-20 Richard Sandiford <[email protected]>
9474
9475 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vec_cmp_float):
9476 Remove can_invert_p argument and change return type to void.
9477 * config/aarch64/aarch64.cc (aarch64_expand_sve_vec_cmp_float):
9478 Likewise.
9479 * config/aarch64/aarch64-sve.md (vec_cmp<mode><vpred>): Update call
9480 accordingly.
9481
9482 2025-02-20 Richard Biener <[email protected]>
9483
9484 PR tree-optimization/118521
9485 * tree-scalar-evolution.cc (final_value_replacement_loop):
9486 Fold uses of the replaced PHI def.
9487
9488 2025-02-20 Filip Kastl <[email protected]>
9489
9490 * doc/invoke.texi: Fix typo file-cache-files ->
9491 file-cache-lines.
9492
9493 2025-02-20 Richard Biener <[email protected]>
9494
9495 PR tree-optimization/86270
9496 * tree-outof-ssa.cc (insert_backedge_copies): Pattern
9497 match a single conflict in a loop condition and adjust
9498 that avoiding the conflict if possible.
9499
9500 2025-02-20 H.J. Lu <[email protected]>
9501
9502 Revert:
9503 2025-02-16 H.J. Lu <[email protected]>
9504
9505 PR target/109780
9506 PR target/109093
9507 * config/i386/i386.cc (ix86_update_stack_alignment): New.
9508 (ix86_find_all_reg_use_1): Likewise.
9509 (ix86_find_all_reg_use): Likewise.
9510 (ix86_find_max_used_stack_alignment): Also check memory accesses
9511 from registers defined by stack or frame registers.
9512
9513 2025-02-20 H.J. Lu <[email protected]>
9514
9515 Revert:
9516 2025-02-17 Uros Bizjak <[email protected]>
9517
9518 * config/i386/i386.cc (ix86_find_all_reg_use):
9519 Scan only for SET RTX in PARALLEL.
9520
9521 2025-02-19 David Malcolm <[email protected]>
9522
9523 PR other/118919
9524 * input.cc (file_cache_slot::m_file_path): Make non-const.
9525 (file_cache_slot::evict): Free m_file_path.
9526 (file_cache_slot::create): Store a copy of file_path if non-null.
9527 (file_cache_slot::~file_cache_slot): Free m_file_path.
9528
9529 2025-02-19 Pan Li <[email protected]>
9530
9531 PR middle-end/116351
9532 * tree-vect-loop.cc (vect_verify_loop_lens): Return false if the
9533 loop_vinfo has relevant mode such as DImode.
9534
9535 2025-02-19 Xi Ruoyao <[email protected]>
9536
9537 * config/loongarch/lasx.md (UNSPEC_LASX_XVSRARI): Remove.
9538 (UNSPEC_LASX_XVSRLRI): Remove.
9539 (lasx_xvsrari_<lsxfmt>): Remove.
9540 (lasx_xvsrlri_<lsxfmt>): Remove.
9541 * config/loongarch/lsx.md (UNSPEC_LSX_VSRARI): Remove.
9542 (UNSPEC_LSX_VSRLRI): Remove.
9543 (lsx_vsrari_<lsxfmt>): Remove.
9544 (lsx_vsrlri_<lsxfmt>): Remove.
9545 * config/loongarch/simd.md (simd_<optab>_imm_round_<mode>): New
9546 define_insn.
9547 (<simd_isa>_<x>v<insn>ri_<simdfmt>): New define_expand.
9548
9549 2025-02-19 Xi Ruoyao <[email protected]>
9550
9551 * config/loongarch/simd.md (wvec_half): New define_mode_attr.
9552 (<su>dot_prod<wvec_half><mode>): New define_expand.
9553
9554 2025-02-19 Xi Ruoyao <[email protected]>
9555
9556 * config/loongarch/simd.md (even_odd): New define_int_attr.
9557 (vec_widen_<su>mult_<even_odd>_<mode>): New define_expand.
9558
9559 2025-02-19 Xi Ruoyao <[email protected]>
9560
9561 * config/loongarch/simd.md (LVEC): New define_mode_attr.
9562 (simdfmt_as_i): Make it same as simdfmt for integer vector
9563 modes.
9564 (_f): New define_mode_attr.
9565 * config/loongarch/lsx.md (lsx_vpickev_b): Remove.
9566 (lsx_vpickev_h): Remove.
9567 (lsx_vpickev_w): Remove.
9568 (lsx_vpickev_w_f): Remove.
9569 (lsx_vpickod_b): Remove.
9570 (lsx_vpickod_h): Remove.
9571 (lsx_vpickod_w): Remove.
9572 (lsx_vpickev_w_f): Remove.
9573 (lsx_pick_evod_<mode>): New define_insn.
9574 (lsx_<x>vpick<ev_od>_<simdfmt_as_i><_f>): New
9575 define_expand.
9576
9577 2025-02-19 Xi Ruoyao <[email protected]>
9578
9579 * config/loongarch/lasx.md (UNSPEC_LASX_XVMADDWEV): Remove.
9580 (UNSPEC_LASX_XVMADDWEV2): Remove.
9581 (UNSPEC_LASX_XVMADDWEV3): Remove.
9582 (UNSPEC_LASX_XVMADDWOD): Remove.
9583 (UNSPEC_LASX_XVMADDWOD2): Remove.
9584 (UNSPEC_LASX_XVMADDWOD3): Remove.
9585 (lasx_xvmaddwev_h_b<u>): Remove.
9586 (lasx_xvmaddwev_w_h<u>): Remove.
9587 (lasx_xvmaddwev_d_w<u>): Remove.
9588 (lasx_xvmaddwev_q_d): Remove.
9589 (lasx_xvmaddwod_h_b<u>): Remove.
9590 (lasx_xvmaddwod_w_h<u>): Remove.
9591 (lasx_xvmaddwod_d_w<u>): Remove.
9592 (lasx_xvmaddwod_q_d): Remove.
9593 (lasx_xvmaddwev_q_du): Remove.
9594 (lasx_xvmaddwod_q_du): Remove.
9595 (lasx_xvmaddwev_h_bu_b): Remove.
9596 (lasx_xvmaddwev_w_hu_h): Remove.
9597 (lasx_xvmaddwev_d_wu_w): Remove.
9598 (lasx_xvmaddwev_q_du_d): Remove.
9599 (lasx_xvmaddwod_h_bu_b): Remove.
9600 (lasx_xvmaddwod_w_hu_h): Remove.
9601 (lasx_xvmaddwod_d_wu_w): Remove.
9602 (lasx_xvmaddwod_q_du_d): Remove.
9603 * config/loongarch/lsx.md (UNSPEC_LSX_VMADDWEV): Remove.
9604 (UNSPEC_LSX_VMADDWEV2): Remove.
9605 (UNSPEC_LSX_VMADDWEV3): Remove.
9606 (UNSPEC_LSX_VMADDWOD): Remove.
9607 (UNSPEC_LSX_VMADDWOD2): Remove.
9608 (UNSPEC_LSX_VMADDWOD3): Remove.
9609 (lsx_vmaddwev_h_b<u>): Remove.
9610 (lsx_vmaddwev_w_h<u>): Remove.
9611 (lsx_vmaddwev_d_w<u>): Remove.
9612 (lsx_vmaddwev_q_d): Remove.
9613 (lsx_vmaddwod_h_b<u>): Remove.
9614 (lsx_vmaddwod_w_h<u>): Remove.
9615 (lsx_vmaddwod_d_w<u>): Remove.
9616 (lsx_vmaddwod_q_d): Remove.
9617 (lsx_vmaddwev_q_du): Remove.
9618 (lsx_vmaddwod_q_du): Remove.
9619 (lsx_vmaddwev_h_bu_b): Remove.
9620 (lsx_vmaddwev_w_hu_h): Remove.
9621 (lsx_vmaddwev_d_wu_w): Remove.
9622 (lsx_vmaddwev_q_du_d): Remove.
9623 (lsx_vmaddwod_h_bu_b): Remove.
9624 (lsx_vmaddwod_w_hu_h): Remove.
9625 (lsx_vmaddwod_d_wu_w): Remove.
9626 (lsx_vmaddwod_q_du_d): Remove.
9627 * config/loongarch/simd.md (simd_maddw_evod_<mode>_<su>):
9628 New define_insn.
9629 (<simd_isa>_<x>vmaddw<ev_od>_<simdfmt_w>_<simdfmt><u>): New
9630 define_expand.
9631 (simd_maddw_evod_<mode>_hetero): New define_insn.
9632 (<simd_isa>_<x>vmaddw<ev_od>_<simdfmt_w>_<simdfmt>u_<simdfmt>):
9633 New define_expand.
9634 (<simd_isa>_maddw<ev_od>_q_d<u>_punned): New define_expand.
9635 (<simd_isa>_maddw<ev_od>_q_du_d_punned): New define_expand.
9636 * config/loongarch/loongarch-builtins.cc
9637 (CODE_FOR_lsx_vmaddwev_q_d): Define as a macro to override it
9638 with the punned expand.
9639 (CODE_FOR_lsx_vmaddwev_q_du): Likewise.
9640 (CODE_FOR_lsx_vmaddwev_q_du_d): Likewise.
9641 (CODE_FOR_lsx_vmaddwod_q_d): Likewise.
9642 (CODE_FOR_lsx_vmaddwod_q_du): Likewise.
9643 (CODE_FOR_lsx_vmaddwod_q_du_d): Likewise.
9644 (CODE_FOR_lasx_xvmaddwev_q_d): Likewise.
9645 (CODE_FOR_lasx_xvmaddwev_q_du): Likewise.
9646 (CODE_FOR_lasx_xvmaddwev_q_du_d): Likewise.
9647 (CODE_FOR_lasx_xvmaddwod_q_d): Likewise.
9648 (CODE_FOR_lasx_xvmaddwod_q_du): Likewise.
9649 (CODE_FOR_lasx_xvmaddwod_q_du_d): Likewise.
9650
9651 2025-02-19 Xi Ruoyao <[email protected]>
9652
9653 * config/loongarch/lasx.md (UNSPEC_LASX_XVHADDW_Q_D): Remove.
9654 (UNSPEC_LASX_XVHSUBW_Q_D): Remove.
9655 (UNSPEC_LASX_XVHADDW_QU_DU): Remove.
9656 (UNSPEC_LASX_XVHSUBW_QU_DU): Remove.
9657 (lasx_xvh<addsub:optab>w_h<u>_b<u>): Remove.
9658 (lasx_xvh<addsub:optab>w_w<u>_h<u>): Remove.
9659 (lasx_xvh<addsub:optab>w_d<u>_w<u>): Remove.
9660 (lasx_xvhaddw_q_d): Remove.
9661 (lasx_xvhsubw_q_d): Remove.
9662 (lasx_xvhaddw_qu_du): Remove.
9663 (lasx_xvhsubw_qu_du): Remove.
9664 (reduc_plus_scal_v4di): Call gen_lasx_haddw_q_d_punned instead
9665 of gen_lasx_xvhaddw_q_d.
9666 (reduc_plus_scal_v8si): Likewise.
9667 * config/loongarch/lsx.md (UNSPEC_LSX_VHADDW_Q_D): Remove.
9668 (UNSPEC_ASX_VHSUBW_Q_D): Remove.
9669 (UNSPEC_ASX_VHADDW_QU_DU): Remove.
9670 (UNSPEC_ASX_VHSUBW_QU_DU): Remove.
9671 (lsx_vh<addsub:optab>w_h<u>_b<u>): Remove.
9672 (lsx_vh<addsub:optab>w_w<u>_h<u>): Remove.
9673 (lsx_vh<addsub:optab>w_d<u>_w<u>): Remove.
9674 (lsx_vhaddw_q_d): Remove.
9675 (lsx_vhsubw_q_d): Remove.
9676 (lsx_vhaddw_qu_du): Remove.
9677 (lsx_vhsubw_qu_du): Remove.
9678 (reduc_plus_scal_v2di): Change the temporary register mode to
9679 V1TI, and pun the mode calling gen_vec_extractv2didi.
9680 (reduc_plus_scal_v4si): Change the temporary register mode to
9681 V1TI.
9682 * config/loongarch/simd.md (simd_h<optab>w_<mode>_<su>): New
9683 define_insn.
9684 (<simd_isa>_<x>vh<optab>w_<simdfmt_w><u>_<simdfmt><u>): New
9685 define_expand.
9686 (<simd_isa>_h<optab>w_q<u>_d<u>_punned): New define_expand.
9687 * config/loongarch/loongarch-builtins.cc
9688 (CODE_FOR_lsx_vhaddw_q_d): Define as a macro to override with
9689 punned expand.
9690 (CODE_FOR_lsx_vhaddw_qu_du): Likewise.
9691 (CODE_FOR_lsx_vhsubw_q_d): Likewise.
9692 (CODE_FOR_lsx_vhsubw_qu_du): Likewise.
9693 (CODE_FOR_lasx_xvhaddw_q_d): Likewise.
9694 (CODE_FOR_lasx_xvhaddw_qu_du): Likewise.
9695 (CODE_FOR_lasx_xvhsubw_q_d): Likewise.
9696 (CODE_FOR_lasx_xvhsubw_qu_du): Likewise.
9697
9698 2025-02-19 Xi Ruoyao <[email protected]>
9699
9700 * config/loongarch/lasx.md (UNSPEC_LASX_XVADDWEV): Remove.
9701 (UNSPEC_LASX_XVADDWEV2): Remove.
9702 (UNSPEC_LASX_XVADDWEV3): Remove.
9703 (UNSPEC_LASX_XVSUBWEV): Remove.
9704 (UNSPEC_LASX_XVSUBWEV2): Remove.
9705 (UNSPEC_LASX_XVMULWEV): Remove.
9706 (UNSPEC_LASX_XVMULWEV2): Remove.
9707 (UNSPEC_LASX_XVMULWEV3): Remove.
9708 (UNSPEC_LASX_XVADDWOD): Remove.
9709 (UNSPEC_LASX_XVADDWOD2): Remove.
9710 (UNSPEC_LASX_XVADDWOD3): Remove.
9711 (UNSPEC_LASX_XVSUBWOD): Remove.
9712 (UNSPEC_LASX_XVSUBWOD2): Remove.
9713 (UNSPEC_LASX_XVMULWOD): Remove.
9714 (UNSPEC_LASX_XVMULWOD2): Remove.
9715 (UNSPEC_LASX_XVMULWOD3): Remove.
9716 (lasx_xv<addsubmul:optab>wev_h_b<u>): Remove.
9717 (lasx_xv<addsubmul:optab>wev_w_h<u>): Remove.
9718 (lasx_xv<addsubmul:optab>wev_d_w<u>): Remove.
9719 (lasx_xvaddwev_q_d): Remove.
9720 (lasx_xvsubwev_q_d): Remove.
9721 (lasx_xvmulwev_q_d): Remove.
9722 (lasx_xv<addsubmul:optab>wod_h_b<u>): Remove.
9723 (lasx_xv<addsubmul:optab>wod_w_h<u>): Remove.
9724 (lasx_xv<addsubmul:optab>wod_d_w<u>): Remove.
9725 (lasx_xvaddwod_q_d): Remove.
9726 (lasx_xvsubwod_q_d): Remove.
9727 (lasx_xvmulwod_q_d): Remove.
9728 (lasx_xvaddwev_q_du): Remove.
9729 (lasx_xvsubwev_q_du): Remove.
9730 (lasx_xvmulwev_q_du): Remove.
9731 (lasx_xvaddwod_q_du): Remove.
9732 (lasx_xvsubwod_q_du): Remove.
9733 (lasx_xvmulwod_q_du): Remove.
9734 (lasx_xv<addmul:optab>wev_h_bu_b): Remove.
9735 (lasx_xv<addmul:optab>wev_w_hu_h): Remove.
9736 (lasx_xv<addmul:optab>wev_d_wu_w): Remove.
9737 (lasx_xv<addmul:optab>wod_h_bu_b): Remove.
9738 (lasx_xv<addmul:optab>wod_w_hu_h): Remove.
9739 (lasx_xv<addmul:optab>wod_d_wu_w): Remove.
9740 (lasx_xvaddwev_q_du_d): Remove.
9741 (lasx_xvsubwev_q_du_d): Remove.
9742 (lasx_xvmulwev_q_du_d): Remove.
9743 (lasx_xvaddwod_q_du_d): Remove.
9744 (lasx_xvsubwod_q_du_d): Remove.
9745 * config/loongarch/lsx.md (UNSPEC_LSX_XVADDWEV): Remove.
9746 (UNSPEC_LSX_VADDWEV2): Remove.
9747 (UNSPEC_LSX_VADDWEV3): Remove.
9748 (UNSPEC_LSX_VSUBWEV): Remove.
9749 (UNSPEC_LSX_VSUBWEV2): Remove.
9750 (UNSPEC_LSX_VMULWEV): Remove.
9751 (UNSPEC_LSX_VMULWEV2): Remove.
9752 (UNSPEC_LSX_VMULWEV3): Remove.
9753 (UNSPEC_LSX_VADDWOD): Remove.
9754 (UNSPEC_LSX_VADDWOD2): Remove.
9755 (UNSPEC_LSX_VADDWOD3): Remove.
9756 (UNSPEC_LSX_VSUBWOD): Remove.
9757 (UNSPEC_LSX_VSUBWOD2): Remove.
9758 (UNSPEC_LSX_VMULWOD): Remove.
9759 (UNSPEC_LSX_VMULWOD2): Remove.
9760 (UNSPEC_LSX_VMULWOD3): Remove.
9761 (lsx_v<addsubmul:optab>wev_h_b<u>): Remove.
9762 (lsx_v<addsubmul:optab>wev_w_h<u>): Remove.
9763 (lsx_v<addsubmul:optab>wev_d_w<u>): Remove.
9764 (lsx_vaddwev_q_d): Remove.
9765 (lsx_vsubwev_q_d): Remove.
9766 (lsx_vmulwev_q_d): Remove.
9767 (lsx_v<addsubmul:optab>wod_h_b<u>): Remove.
9768 (lsx_v<addsubmul:optab>wod_w_h<u>): Remove.
9769 (lsx_v<addsubmul:optab>wod_d_w<u>): Remove.
9770 (lsx_vaddwod_q_d): Remove.
9771 (lsx_vsubwod_q_d): Remove.
9772 (lsx_vmulwod_q_d): Remove.
9773 (lsx_vaddwev_q_du): Remove.
9774 (lsx_vsubwev_q_du): Remove.
9775 (lsx_vmulwev_q_du): Remove.
9776 (lsx_vaddwod_q_du): Remove.
9777 (lsx_vsubwod_q_du): Remove.
9778 (lsx_vmulwod_q_du): Remove.
9779 (lsx_v<addmul:optab>wev_h_bu_b): Remove.
9780 (lsx_v<addmul:optab>wev_w_hu_h): Remove.
9781 (lsx_v<addmul:optab>wev_d_wu_w): Remove.
9782 (lsx_v<addmul:optab>wod_h_bu_b): Remove.
9783 (lsx_v<addmul:optab>wod_w_hu_h): Remove.
9784 (lsx_v<addmul:optab>wod_d_wu_w): Remove.
9785 (lsx_vaddwev_q_du_d): Remove.
9786 (lsx_vsubwev_q_du_d): Remove.
9787 (lsx_vmulwev_q_du_d): Remove.
9788 (lsx_vaddwod_q_du_d): Remove.
9789 (lsx_vsubwod_q_du_d): Remove.
9790 (lsx_vmulwod_q_du_d): Remove.
9791 * config/loongarch/loongarch-modes.def: Add V4TI and V1DI.
9792 * config/loongarch/loongarch-protos.h
9793 (loongarch_gen_stepped_int_parallel): New function prototype.
9794 * config/loongarch/loongarch.cc (loongarch_print_operand):
9795 Accept 'O' for printing "ev" or "od."
9796 (loongarch_gen_stepped_int_parallel): Implement.
9797 * config/loongarch/predicates.md
9798 (vect_par_cnst_even_or_odd_half): New define_predicate.
9799 * config/loongarch/simd.md (WVEC_HALF): New define_mode_attr.
9800 (simdfmt_w): Likewise.
9801 (zero_one): New define_int_iterator.
9802 (ev_od): New define_int_attr.
9803 (simd_<optab>w_evod_<mode:IVEC>_<su>): New define_insn.
9804 (<simd_isa>_<x>v<optab>w<ev_od>_<simdfmt_w>_<simdfmt><u>): New
9805 define_expand.
9806 (simd_<optab>w_evod_<mode>_hetero): New define_insn.
9807 (<simd_isa>_<x>v<optab>w<ev_od>_<simdfmt_w>_<simdfmt>u_<simdfmt>):
9808 New define_expand.
9809 (DIVEC): New define_mode_iterator.
9810 (<simd_isa>_<optab>w<ev_od>_q_d<u>_punned): New define_expand.
9811 (<simd_isa>_<optab>w<ev_od>_q_du_d_punned): Likewise.
9812 * config/loongarch/loongarch-builtins.cc
9813 (CODE_FOR_lsx_vaddwev_q_d): Define as a macro to override it
9814 with the punned expand.
9815 (CODE_FOR_lsx_vaddwev_q_du): Likewise.
9816 (CODE_FOR_lsx_vsubwev_q_d): Likewise.
9817 (CODE_FOR_lsx_vsubwev_q_du): Likewise.
9818 (CODE_FOR_lsx_vmulwev_q_d): Likewise.
9819 (CODE_FOR_lsx_vmulwev_q_du): Likewise.
9820 (CODE_FOR_lsx_vaddwod_q_d): Likewise.
9821 (CODE_FOR_lsx_vaddwod_q_du): Likewise.
9822 (CODE_FOR_lsx_vsubwod_q_d): Likewise.
9823 (CODE_FOR_lsx_vsubwod_q_du): Likewise.
9824 (CODE_FOR_lsx_vmulwod_q_d): Likewise.
9825 (CODE_FOR_lsx_vmulwod_q_du): Likewise.
9826 (CODE_FOR_lsx_vaddwev_q_du_d): Likewise.
9827 (CODE_FOR_lsx_vmulwev_q_du_d): Likewise.
9828 (CODE_FOR_lsx_vaddwod_q_du_d): Likewise.
9829 (CODE_FOR_lsx_vmulwod_q_du_d): Likewise.
9830 (CODE_FOR_lasx_xvaddwev_q_d): Likewise.
9831 (CODE_FOR_lasx_xvaddwev_q_du): Likewise.
9832 (CODE_FOR_lasx_xvsubwev_q_d): Likewise.
9833 (CODE_FOR_lasx_xvsubwev_q_du): Likewise.
9834 (CODE_FOR_lasx_xvmulwev_q_d): Likewise.
9835 (CODE_FOR_lasx_xvmulwev_q_du): Likewise.
9836 (CODE_FOR_lasx_xvaddwod_q_d): Likewise.
9837 (CODE_FOR_lasx_xvaddwod_q_du): Likewise.
9838 (CODE_FOR_lasx_xvsubwod_q_d): Likewise.
9839 (CODE_FOR_lasx_xvsubwod_q_du): Likewise.
9840 (CODE_FOR_lasx_xvmulwod_q_d): Likewise.
9841 (CODE_FOR_lasx_xvmulwod_q_du): Likewise.
9842 (CODE_FOR_lasx_xvaddwev_q_du_d): Likewise.
9843 (CODE_FOR_lasx_xvmulwev_q_du_d): Likewise.
9844 (CODE_FOR_lasx_xvaddwod_q_du_d): Likewise.
9845 (CODE_FOR_lasx_xvmulwod_q_du_d): Likewise.
9846
9847 2025-02-19 Xi Ruoyao <[email protected]>
9848
9849 * config/loongarch/lsx.md (mov<LSX:mode>): Remove.
9850 (movmisalign<LSX:mode>): Remove.
9851 (mov<LSX:mode>_lsx): Remove.
9852 * config/loongarch/lasx.md (mov<LASX:mode>): Remove.
9853 (movmisalign<LASX:mode>): Remove.
9854 (mov<LASX:mode>_lasx): Remove.
9855 * config/loongarch/loongarch-modes.def (V1TI): Add.
9856 (V2TI): Mention in the comment.
9857 * config/loongarch/loongarch.md (mode): Add V1TI and V2TI.
9858 * config/loongarch/simd.md (ALLVEC_TI): New mode iterator.
9859 (mov<ALLVEC_TI:mode): New define_expand.
9860 (movmisalign<ALLVEC_TI:mode>): Likewise.
9861 (mov<ALLVEC_TI:mode>_simd): New define_insn_and_split.
9862
9863 2025-02-19 Xi Ruoyao <[email protected]>
9864
9865 * config/loongarch/loongarch-protos.h
9866 (loongarch_const_vector_vrepli): New function prototype.
9867 * config/loongarch/loongarch.cc (loongarch_const_vector_vrepli):
9868 Implement.
9869 (loongarch_const_insns): Call loongarch_const_vector_vrepli
9870 instead of loongarch_const_vector_same_int_p.
9871 (loongarch_split_vector_move_p): Likewise.
9872 (loongarch_output_move): Use loongarch_const_vector_vrepli to
9873 pun operend[1] into a better mode if it's a const int vector,
9874 and decide the suffix of [x]vrepli with the new mode.
9875 * config/loongarch/constraints.md (YI): Call
9876 loongarch_const_vector_vrepli instead of
9877 loongarch_const_vector_same_int_p.
9878
9879 2025-02-19 Xi Ruoyao <[email protected]>
9880
9881 PR target/115478
9882 * config/loongarch/loongarch.md (any_or_plus): New
9883 define_code_iterator.
9884 (bstrins_<mode>_for_ior_mask): Use any_or_plus instead of ior.
9885 (bytepick_w_<bytepick_imm>): Likewise.
9886 (bytepick_d_<bytepick_imm>): Likewise.
9887 (bytepick_d_<bytepick_imm>_rev): Likewise.
9888
9889 2025-02-19 Jeff Law <[email protected]>
9890
9891 PR middle-end/113525
9892 * doc/invoke.texi (dump-rtl-sibling): Drop documentation for pass
9893 removed long ago.
9894 (dump-rtl-unshare): Likewise.
9895
9896 2025-02-18 Andi Kleen <[email protected]>
9897
9898 * doc/invoke.texi:
9899
9900 2025-02-18 David Malcolm <[email protected]>
9901
9902 * opts-diagnostic.cc (sarif_scheme_handler::make_sink): Put
9903 properties in alphabetical order.
9904
9905 2025-02-18 Robin Dapp <[email protected]>
9906
9907 PR target/115703
9908 * config/riscv/riscv-vsetvl.cc: Use max_sew for calculating the
9909 new LMUL.
9910
9911 2025-02-18 Richard Sandiford <[email protected]>
9912
9913 PR rtl-optimization/108840
9914 * late-combine.cc (late_combine::check_register_pressure):
9915 Take only allocatable registers into account when checking
9916 the permissiveness of register classes.
9917
9918 2025-02-18 Alex Coplan <[email protected]>
9919
9920 PR rtl-optimization/118320
9921 * pair-fusion.cc (pair_fusion_bb_info::fuse_pair): Tweak wording in dump
9922 message when punting on invalid use arrays.
9923
9924 2025-02-18 Soumya AR <[email protected]>
9925
9926 * config/aarch64/tuning_models/generic_armv8_a.h: Updated prefetch
9927 struct pointer.
9928
9929 2025-02-18 Richard Biener <[email protected]>
9930
9931 PR tree-optimization/98845
9932 * tree-ssa-tail-merge.cc (stmt_local_def): Consider a
9933 def with no uses not local.
9934
9935 2025-02-18 Pan Li <[email protected]>
9936
9937 PR target/118540
9938 * config/riscv/riscv-target-attr.cc (riscv_target_attr_parser::parse_arch):
9939 Report error when cmd xlen is different with target attribute.
9940
9941 2025-02-18 Haochen Jiang <[email protected]>
9942
9943 * config/i386/i386.opt.urls: Adjust the order for avx10.2
9944 and avx10.2-512 due to their order change in i386.opt.
9945
9946 2025-02-18 Alexandre Oliva <[email protected]>
9947
9948 PR tree-optimization/118805
9949 * gimple-fold.cc (fold_truth_andor_for_combine): Detect and
9950 cope with zero-extension in signbit tests. Reject swapping
9951 right-compare operands if rsignbit.
9952
9953 2025-02-17 Uros Bizjak <[email protected]>
9954
9955 * config/i386/i386.cc (ix86_find_all_reg_use):
9956 Scan only for SET RTX in PARALLEL.
9957
9958 2025-02-17 Uros Bizjak <[email protected]>
9959
9960 PR middle-end/118288
9961 * builtins.cc (expand_builtin_crc_table_based):
9962 Use gen_int_mode to emit constant integers with MSB set.
9963
9964 2025-02-17 Richard Biener <[email protected]>
9965
9966 PR tree-optimization/118895
9967 * tree-ssa-sccvn.cc (vn_nary_build_or_lookup_1): Only allow
9968 CSE if we can verify the result is available.
9969
9970 2025-02-17 Georg-Johann Lay <[email protected]>
9971
9972 PR target/118764
9973 * config/avr/gen-avr-mmcu-specs.cc (print_mcu)
9974 [has CVT]: Mention CVT in header comment of generated specs file.
9975
9976 2025-02-17 Haochen Jiang <[email protected]>
9977
9978 * config/i386/i386.opt.urls: Regenetated.
9979
9980 2025-02-17 Haochen Jiang <[email protected]>
9981
9982 * common/config/i386/i386-common.cc
9983 (OPTION_MASK_ISA2_AVX10_1_UNSET): Adjust macro.
9984 (OPTION_MASK_ISA2_AVX10_2_256_UNSET): Removed.
9985 (OPTION_MASK_ISA2_AVX10_2_512_UNSET): Ditto.
9986 (OPTION_MASK_ISA2_AVX10_2_UNSET): New.
9987 (ix86_handle_option): Remove disable part for avx10.2-256.
9988 Rename avx10.2-512 switch case to avx10.2 and adjust disable
9989 part macro.
9990 * common/config/i386/i386-isas.h: Adjust avx10.2 and
9991 avx10.2-512.
9992 * config/i386/driver-i386.cc
9993 (host_detect_local_cpu): Do not append -mno-avx10.x-256
9994 for -march=native.
9995 * config/i386/i386-options.cc
9996 (ix86_valid_target_attribute_inner_p): Adjust avx10.2 and
9997 avx10.2-512.
9998 * config/i386/i386.opt: Reject Negative for mavx10.2-256.
9999 Alias mavx10.2-512 to mavx10.2. Reject Negative for
10000 mavx10.2-512.
10001 * doc/extend.texi: Adjust documentation.
10002 * doc/sourcebuild.texi: Ditto.
10003
10004 2025-02-17 Haochen Jiang <[email protected]>
10005
10006 * common/config/i386/i386-common.cc
10007 (OPTION_MASK_ISA2_AVX2_UNSET): Change AVX10.1 unset macro.
10008 (OPTION_MASK_ISA2_AVX10_1_256_UNSET): Removed.
10009 (OPTION_MASK_ISA2_AVX10_1_512_UNSET): Removed.
10010 (OPTION_MASK_ISA2_AVX10_1_UNSET): New.
10011 (ix86_handle_option): Adjust AVX10.1 unset macro.
10012 * common/config/i386/i386-isas.h: Remove avx10.1.
10013 * config/i386/i386-options.cc
10014 (ix86_valid_target_attribute_inner_p): Ditto.
10015 (ix86_option_override_internal): Adjust warning message.
10016 * config/i386/i386.opt: Remove mavx10.1.
10017 * doc/extend.texi: Remove avx10.1 and adjust doc.
10018 * doc/sourcebuild.texi: Ditto.
10019
10020 2025-02-17 Haochen Jiang <[email protected]>
10021
10022 PR target/118815
10023 * config/i386/i386-options.cc (ix86_option_override_internal):
10024 Do not check vector size conflict when AVX512 is not explicitly
10025 set.
10026
10027 2025-02-16 Jakub Jelinek <[email protected]>
10028
10029 PR target/118248
10030 * config/riscv/riscv-string.cc (riscv_block_move_straight): Only
10031 allocate REGS buffer if it will be needed.
10032
10033 2025-02-16 Georg-Johann Lay <[email protected]>
10034
10035 PR target/118764
10036 * config/avr/avr-c.cc (avr_cpu_cpp_builtins)
10037 [TARGET_CVT]: Define __AVR_CVT__.
10038 * doc/invoke.texi (AVR Built-in Macros): Document __AVR_CVT__.
10039
10040 2025-02-16 Georg-Johann Lay <[email protected]>
10041
10042 * config/avr/avr.cc (avr_result_regno_unused_p): New static function.
10043 (avr_out_bitop): Only output result bytes that are used.
10044 (avr_out_plus_1): Same.
10045
10046 2025-02-16 Georg-Johann Lay <[email protected]>
10047
10048 * config/avr/avr-protos.h (avr_builtin_supported_p): Remove.
10049 * config/avr/avr.cc (avr_init_builtins): Don't initialize
10050 non-available built-ins with NULL_TREE.
10051 (avr_builtin_supported_p): Move to...
10052 * config/avr/avr-c.cc: ...here.
10053 (avr_resolve_overloaded_builtin): Run avr_builtin_supported_p.
10054
10055 2025-02-16 H.J. Lu <[email protected]>
10056
10057 PR target/109780
10058 PR target/109093
10059 * config/i386/i386.cc (ix86_update_stack_alignment): New.
10060 (ix86_find_all_reg_use_1): Likewise.
10061 (ix86_find_all_reg_use): Likewise.
10062 (ix86_find_max_used_stack_alignment): Also check memory accesses
10063 from registers defined by stack or frame registers.
10064
10065 2025-02-15 Jakub Jelinek <[email protected]>
10066
10067 PR tree-optimization/98028
10068 * vr-values.cc (check_for_binary_op_overflow): Try to use a known
10069 relationship betwen op0/op1 to statically determine overflow state.
10070
10071 2025-02-15 Robin Dapp <[email protected]>
10072
10073 * config/riscv/autovec-opt.md
10074 (*single_widen_first_<any_widen_binop:optab><any_extend:su><mode>):
10075 New combine "bridge" pattern.
10076
10077 2025-02-15 Keith Packard <[email protected]>
10078
10079 * config/rx/rx.md (rx_cmpstrn): Correctly handle len=0 case.
10080
10081 2025-02-15 David Malcolm <[email protected]>
10082
10083 * libsarifreplay.cc (sarif_replayer::handle_result_obj): Call
10084 handle_fix_object if we see a single-element "fixes" array.
10085 (sarif_replayer::handle_fix_object): New.
10086 (sarif_replayer::handle_artifact_change_object): New.
10087
10088 2025-02-15 David Malcolm <[email protected]>
10089
10090 * libsarifreplay.cc (should_add_rule_p): New.
10091 (sarif_replayer::handle_result_obj): Use it to filter out rules
10092 that don't make sense.
10093
10094 2025-02-15 David Malcolm <[email protected]>
10095
10096 * libsarifreplay.cc (sarif_replayer::handle_result_obj): Treat any
10097 relatedLocations without messages as secondary ranges within the
10098 diagnostic. Doing so requires stashing the notes until after
10099 the diagnostic has been finished, so that relatedLocations can be
10100 walked in one pass.
10101
10102 2025-02-15 David Malcolm <[email protected]>
10103
10104 PR sarif-replay/118881
10105 * doc/libgdiagnostics/topics/physical-locations.rst: Add
10106 diagnostic_physical_location_get_file.
10107 * libgdiagnostics++.h (physical_location::get_file): New wrapper.
10108 (diagnostic::add_location): Likewise.
10109 * libgdiagnostics.cc (diagnostic_manager::get_file_by_name): New.
10110 (diagnostic_physical_location::get_file): New.
10111 (diagnostic_physical_location_get_file): New.
10112 * libgdiagnostics.h (diagnostic_physical_location_get_file): New.
10113 * libgdiagnostics.map (diagnostic_physical_location_get_file): New.
10114 * libsarifreplay.cc (class annotation): New.
10115 (add_any_annotations): New.
10116 (sarif_replayer::handle_result_obj): Collect vectors of
10117 annotations in the calls to handle_location_object and apply them
10118 to "err" and to "note" as appropriate.
10119 (sarif_replayer::handle_thread_flow_location_object): Pass nullptr
10120 for annotations.
10121 (sarif_replayer::handle_location_object): Handle §3.28.6
10122 "annotations" property, using it to populate a new
10123 "out_annotations" param.
10124
10125 2025-02-15 Thomas Schwinge <[email protected]>
10126
10127 * config/nvptx/nvptx.cc (nvptx_record_needed_fndecl): Tag as
10128 'static'.
10129
10130 2025-02-15 Jin Ma <[email protected]>
10131
10132 PR target/118872
10133 * config/riscv/riscv.cc (riscv_fntype_abi): Strengthen the logic
10134 of the check to avoid missing the error report.
10135
10136 2025-02-14 Georg-Johann Lay <[email protected]>
10137
10138 PR target/118878
10139 * config/avr/avr.cc (avr_out_plus_1): Don't ICE on result of
10140 paradoxical reg's register allocation.
10141
10142 2025-02-14 Thomas Schwinge <[email protected]>
10143
10144 PR target/94282
10145 PR target/113331
10146 * common/config/gcn/gcn-common.cc (gcn_except_unwind_info): 'return UI_TARGET;'.
10147 * config/gcn/gcn.cc (gcn_asm_init_sections): New function.
10148 (TARGET_ASM_INIT_SECTIONS): '#define'.
10149
10150 2025-02-14 Thomas Schwinge <[email protected]>
10151
10152 PR target/86660
10153 * common/config/nvptx/nvptx-common.cc (nvptx_except_unwind_info):
10154 'return UI_TARGET;'.
10155 * config/nvptx/nvptx.cc (nvptx_assemble_integer): Handle
10156 'exception_section'.
10157 (nvptx_output_section_asm_op, nvptx_asm_init_sections): New
10158 functions.
10159 (TARGET_ASM_INIT_SECTIONS): '#define'.
10160 * config/nvptx/nvptx.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP):
10161 Don't '#define'.
10162 (ASM_OUTPUT_DWARF_DELTA): '#define'.
10163
10164 2025-02-14 Thomas Schwinge <[email protected]>
10165
10166 * config/nvptx/nvptx.cc (init_frag): New 'bool active' member.
10167 (output_init_frag, nvptx_assemble_value, nvptx_assemble_integer)
10168 (nvptx_output_skip, nvptx_assemble_decl_begin)
10169 (nvptx_assemble_decl_end): Sanity-check its state.
10170
10171 2025-02-14 Thomas Schwinge <[email protected]>
10172
10173 * config/nvptx/nvptx.cc (nvptx_output_skip): Clarify case of
10174 no or incomplete initializer.
10175
10176 2025-02-14 Richard Biener <[email protected]>
10177
10178 PR tree-optimization/118852
10179 * tree-vect-slp.cc (vect_analyze_slp): For early-break
10180 forced-live IVs make sure we create an appropriate
10181 entry into the SLP graph.
10182
10183 2025-02-14 Jakub Jelinek <[email protected]>
10184
10185 PR debug/118790
10186 * tree.cc (struct gt_value_expr_mark_data): New type.
10187 (gt_value_expr_mark_2): Don't call ggc_set_mark, instead check
10188 ggc_marked_p. Treat data as gt_value_expr_mark_data * with pset
10189 in it rather than address of the pset itself and push to be marked
10190 VAR_DECLs into to_mark vec.
10191 (gt_value_expr_mark_1): Change argument from hash_set<tree> *
10192 to gt_value_expr_mark_data * and find pset in it.
10193 (gt_value_expr_mark): Pass to traverse_noresize address of
10194 gt_value_expr_mark_data object rather than hash_table<tree> and
10195 for all entries in the to_mark vector after the traversal call
10196 gt_ggc_mx.
10197
10198 2025-02-14 Lulu Cheng <[email protected]>
10199
10200 * config/loongarch/genopts/loongarch.opt.in: Add
10201 option '-maddr-reg-reg-cost='.
10202 * config/loongarch/loongarch-def.cc
10203 (loongarch_rtx_cost_data::loongarch_rtx_cost_data): Initialize
10204 addr_reg_reg_cost to 3.
10205 * config/loongarch/loongarch-opts.cc
10206 (loongarch_target_option_override): If '-maddr-reg-reg-cost='
10207 is not used, set it to the initial value.
10208 * config/loongarch/loongarch-tune.h
10209 (struct loongarch_rtx_cost_data): Add the member
10210 addr_reg_reg_cost and its assignment function to the structure
10211 loongarch_rtx_cost_data.
10212 * config/loongarch/loongarch.cc (loongarch_address_insns):
10213 Use la_addr_reg_reg_cost to set the cost of ADDRESS_REG_REG.
10214 * config/loongarch/loongarch.opt: Regenerate.
10215 * config/loongarch/loongarch.opt.urls: Regenerate.
10216 * doc/invoke.texi: Add description of '-maddr-reg-reg-cost='.
10217
10218 2025-02-14 Lulu Cheng <[email protected]>
10219
10220 PR target/118843
10221 * config/loongarch/loongarch-c.cc
10222 (loongarch_update_cpp_builtins): Fix macro definition issues.
10223
10224 2025-02-14 Lulu Cheng <[email protected]>
10225
10226 PR target/118828
10227 * config/loongarch/loongarch-c.cc (loongarch_pragma_target_parse):
10228 Update the predefined macros.
10229
10230 2025-02-14 Lulu Cheng <[email protected]>
10231
10232 * config/loongarch/loongarch-c.cc (builtin_undef): New macro.
10233 (loongarch_cpu_cpp_builtins): Split to loongarch_update_cpp_builtins
10234 and loongarch_define_unconditional_macros.
10235 (loongarch_def_or_undef): New functions.
10236 (loongarch_define_unconditional_macros): Likewise.
10237 (loongarch_update_cpp_builtins): Likewise.
10238
10239 2025-02-14 Lulu Cheng <[email protected]>
10240
10241 * config/loongarch/loongarch-target-attr.cc
10242 (loongarch_pragma_target_parse): Move to ...
10243 (loongarch_register_pragmas): Move to ...
10244 * config/loongarch/loongarch-c.cc
10245 (loongarch_pragma_target_parse): ... here.
10246 (loongarch_register_pragmas): ... here.
10247 * config/loongarch/loongarch-protos.h
10248 (loongarch_process_target_attr): Function Declaration.
10249
10250 2025-02-14 Richard Biener <[email protected]>
10251
10252 PR tree-optimization/90579
10253 * tree-ssa-forwprop.cc (simplify_bitfield_ref): Move to
10254 match.pd.
10255 (pass_forwprop::execute): Adjust.
10256 * match.pd (bit_field_ref (vec_perm ...)): New pattern
10257 modeled after simplify_bitfield_ref.
10258 * tree-vect-loop.cc (vect_expand_fold_left): Fold the
10259 element extract stmt, combining it with the vector def.
10260
10261 2025-02-13 Robin Dapp <[email protected]>
10262
10263 PR target/118832
10264 * config/riscv/riscv-v.cc (expand_const_vector): Expand as
10265 vlmax insn during lra.
10266
10267 2025-02-13 Marek Polacek <[email protected]>
10268
10269 PR driver/117739
10270 * doc/invoke.texi: Tweak wording for -Whardened.
10271 * gcc.cc (driver_handle_option): If -z lazy or -z norelro was
10272 specified, don't enable linker hardening.
10273 (process_command): Don't check warn_hardened.
10274
10275 2025-02-13 Ed Catmur <[email protected]>
10276 Jason Merrill <[email protected]>
10277
10278 PR c++/70536
10279 * dwarf2out.cc (gen_formal_parameter_pack_die): Add name attr.
10280
10281 2025-02-13 Jakub Jelinek <[email protected]>
10282
10283 PR debug/118790
10284 * gengtype.cc (write_roots): Remove cache variable, instead break from
10285 the loop on match and test o for NULL. If the cache option has
10286 non-empty string argument, call the specified function with v->name
10287 as argument before calling gt_cleare_cache on it.
10288 * tree.cc (gt_value_expr_mark_2, gt_value_expr_mark_1,
10289 gt_value_expr_mark): New functions.
10290 (value_expr_for_decl): Use GTY ((cache ("gt_value_expr_mark"))) rather
10291 than just GTY ((cache)).
10292 * doc/gty.texi (cache): Document optional argument of cache option.
10293
10294 2025-02-13 Christophe Lyon <[email protected]>
10295
10296 PR target/114522
10297 * config/arm/arm-builtins.cc (arm_fold_aes_op): New function.
10298 (arm_general_gimple_fold_builtin): New function.
10299 * config/arm/arm-builtins.h (arm_general_gimple_fold_builtin): New
10300 prototype.
10301 * config/arm/arm.cc (arm_gimple_fold_builtin): Call
10302 arm_general_gimple_fold_builtin as needed.
10303
10304 2025-02-13 Jakub Jelinek <[email protected]>
10305
10306 PR c++/118822
10307 PR c++/118833
10308 * tree-iterator.h (tsi_split_stmt_list): Declare.
10309 * tree-iterator.cc (tsi_split_stmt_list): New function.
10310
10311 2025-02-13 Rainer Orth <[email protected]>
10312
10313 * configure.ac (gcc_cv_ld_eh_frame_ciev3): Remove.
10314 * configure, config.in: Regenerate.
10315 * config/sol2.cc (solaris_override_options): Remove.
10316 * config/sol2.h (SUBTARGET_OVERRIDE_OPTIONS): Remove.
10317 * config/sol2-protos.h (solaris_override_options): Remove.
10318
10319 2025-02-13 Rainer Orth <[email protected]>
10320
10321 * doc/install.texi (Specific, *-*-solaris2*): Updates for newer
10322 Solaris 11.4 SRUs and binutils 2.44.
10323
10324 2025-02-13 Stefan Schulze Frielinghaus <[email protected]>
10325
10326 PR target/118835
10327 * config/s390/s390.cc (s390_valid_shift_count): Reject shift
10328 count operands which do not trivially fit the scheme of
10329 address operands.
10330
10331 2025-02-13 Richard Biener <[email protected]>
10332
10333 PR tree-optimization/118817
10334 * tree-ssa-sccvn.cc (vn_nary_simplify): Do not process
10335 CONSTRUCTOR NARY or update from CONSTRUCTOR simplified
10336 gimple_match_op.
10337
10338 2025-02-12 Andrew Pinski <[email protected]>
10339
10340 PR rtl-optimization/102150
10341 * loop-invariant.cc (find_invariant_insn): Treat inline-asm similar to
10342 trapping instruction and only move them if always executed.
10343
10344 2025-02-12 Andrew Pinski <[email protected]>
10345
10346 PR rtl-optimization/102150
10347 * ifcvt.cc (cheap_bb_rtx_cost_p): Return false if the insn
10348 has an inline-asm in it.
10349
10350 2025-02-12 Georg-Johann Lay <[email protected]>
10351
10352 * config/avr/avr.opt.urls: Add -mcall-main.
10353
10354 2025-02-12 Georg-Johann Lay <[email protected]>
10355
10356 PR target/118806
10357 * config/avr/avr.opt (-mcall-main): New option and...
10358 (avropt_call_main): ...variable.
10359 * config/avr/avr.cc (avr_no_call_main_p): New variable.
10360 (avr_insert_attributes) [-mno-call-main, main]: Add attributes
10361 noreturn and section(".init9") to main. Set avr_no_call_main_p.
10362 (avr_file_end) [avr_no_call_main_p]: Define symbol __call_main.
10363 * doc/invoke.texi (AVR Options) <-mno-call-main>: Document.
10364 <-mnodevicelib>: Extend explanation.
10365
10366 2025-02-12 Alex Coplan <[email protected]>
10367
10368 PR tree-optimization/117790
10369 * tree-vect-loop-manip.cc (slpeel_tree_duplicate_loop_to_edge_cfg):
10370 Set profile counts for {main,alt}_loop_exit_block.
10371
10372 2025-02-12 Vineet Gupta <[email protected]>
10373
10374 * config/riscv/vector.md: vncvt substitute vnsrl.
10375 vnsrl with x0 replace with immediate 0.
10376 vneg substitute vrsub.
10377
10378 2025-02-12 Jin Ma <[email protected]>
10379
10380 PR target/118601
10381 * config/riscv/riscv-string.cc (expand_block_move): Check with new
10382 constraint 'vl' instead of 'K'.
10383 (expand_vec_setmem): Likewise.
10384 (expand_vec_cmpmem): Likewise.
10385 * config/riscv/riscv-v.cc (force_vector_length_operand): Likewise.
10386 (expand_load_store): Likewise.
10387 (expand_strided_load): Likewise.
10388 (expand_strided_store): Likewise.
10389 (expand_lanes_load_store): Likewise.
10390
10391 2025-02-12 Sandra Loosemore <[email protected]>
10392
10393 * doc/install.texi: Add missing comma after @xref to fix warning.
10394
10395 2025-02-12 Sandra Loosemore <[email protected]>
10396
10397 * doc/extend.texi: Fix a bunch of typos and other writing bugs.
10398 * doc/invoke.texi: Likewise.
10399
10400 2025-02-12 Sandra Loosemore <[email protected]>
10401
10402 * Makefile.in (TEXI_GCCINT_FILES): Remove interface.texi.
10403 * doc/gccint.texi (Top): Remove menu entry for the "interface" node,
10404 and include of interface.texi.
10405 * doc/interface.texi: Delete.
10406
10407 2025-02-12 Yangyu Chen <[email protected]>
10408
10409 * config/riscv/riscv-feature-bits.h (RISCV_VENDOR_FEATURE_BITS_LENGTH): Drop.
10410 (struct riscv_vendor_feature_bits): Drop.
10411
10412 2025-02-11 Jeff Law <[email protected]>
10413
10414 PR target/115478
10415 * config/aarch64/iterators.md (any_or_plus): New code iterator.
10416 * config/aarch64/aarch64.md (extr<mode>5_insn): Use any_or_plus.
10417 (extr<mode>5_insn_alt, extrsi5_insn_uxtw): Likewise.
10418 (extrsi5_insn_uxtw_alt, extrsi5_insn_di): Likewise.
10419
10420 2025-02-11 Jason Merrill <[email protected]>
10421
10422 PR c++/188574
10423 * doc/invoke.texi: Adjust -frange-for-ext-temps documentation.
10424
10425 2025-02-11 Andrew Carlotti <[email protected]>
10426
10427 * config/aarch64/aarch64-option-extensions.def
10428 (SSVE_FP8FMA): Adjust formatting.
10429 (FP8DOT4): Replace FP8FMA dependency with FP8.
10430 (SSVE_FP8DOT4): Replace SSVE_FP8FMA dependency with SME2+FP8.
10431 (FP8DOT2): Replace FP8DOT4 dependency with FP8.
10432 (SSVE_FP8DOT2): Replace SSVE_FP8DOT4 dependency with SME2+FP8.
10433
10434 2025-02-11 Sandra Loosemore <[email protected]>
10435
10436 * omp-general.cc (omp_check_context_selector): Change
10437 metadirective_p argument to a 3-way flag. Add extra check for
10438 OMP_CTX_BEGIN_DECLARE_VARIANT.
10439 * omp-general.h (enum omp_ctx_directive): New.
10440 (omp_check_context_selector): Adjust declaration.
10441
10442 2025-02-11 Sandra Loosemore <[email protected]>
10443
10444 * omp-general.cc (omp_context_selector_props_compare): Handle
10445 arbitrary expressions in the "user" and "device_num" selectors.
10446 (omp_context_selector_set_compare): Detect mismatch when one
10447 selector specifies a score and the other doesn't.
10448
10449 2025-02-11 Martin Jambor <[email protected]>
10450
10451 PR lto/118125
10452 * ipa-fnsummary.cc (redirect_to_unreachable): Add checking assert
10453 that the builtin_unreachable decl has attribute cold.
10454
10455 2025-02-11 David Malcolm <[email protected]>
10456
10457 PR sarif-replay/118792
10458 * libsarifreplay.cc (sarif_replayer::handle_region_object): Fix
10459 off-by-one in handling of endColumn property so that the code
10460 matches the comment and the SARIF spec (§3.30.8).
10461
10462 2025-02-11 Richard Biener <[email protected]>
10463
10464 PR tree-optimization/118817
10465 * tree-ssa-pre.cc (fully_constant_expression): Fold into
10466 the single caller.
10467 (phi_translate_1): Refactor folded in fully_constant_expression.
10468 * tree-ssa-sccvn.cc (vn_nary_simplify): Update the NARY with
10469 the simplified expression.
10470
10471 2025-02-11 H.J. Lu <[email protected]>
10472
10473 PR target/118825
10474 * config/i386/i386.h (ASM_OUTPUT_SYMBOL_REF): Replace x with
10475 SYM.
10476
10477 2025-02-11 YunQiang Su <[email protected]>
10478
10479 * config.gcc: Add mips*64*-linux-muslabi64 triple support.
10480
10481 2025-02-11 Jie Mei <[email protected]>
10482 Xi Ruoyao <[email protected]>
10483
10484 * config/mips/i6400.md (i6400_fpu_minmax): Include
10485 fclass type.
10486 (i6400_fpu_fadd): Include frint type.
10487 * config/mips/mips.cc (AVAIL_NON_MIPS16): Add an entry
10488 for __builtin_mipsr6_xxx.
10489 (MIPSR6_BUILTIN_PURE): Same as above.
10490 (CODE_FOR_mipsr6_min_a_s, CODE_FOR_mipsr6_min_a_d)
10491 (CODE_FOR_mipsr6_max_a_s, CODE_FOR_mipsr6_max_a_d)
10492 (CODE_FOR_mipsr6_class_s, CODE_FOR_mipsr6_class_d):
10493 New code_aliasing macros.
10494 (mips_builtins): Add mips32r6 min_a_s, min_a_d, max_a_s,
10495 max_a_d, class_s, class_d builtins.
10496 * config/mips/mips.h (ISA_HAS_FRINT): Define a new macro.
10497 (ISA_HAS_FCLASS): Same as above.
10498 * config/mips/mips.md (UNSPEC_FRINT): New unspec.
10499 (UNSPEC_FCLASS): Same as above.
10500 (type): Add frint and fclass.
10501 (fmin_a_<mode>): Generates MINA.fmt instructions.
10502 (fmax_a_<mode>): Generates MAXA.fmt instructions.
10503 (rint<mode>2): Generates RINT.fmt instructions.
10504 (fclass_<mode>): Generates CLASS.fmt instructions.
10505 * config/mips/p6600.md (p6600_fpu_fadd): Include
10506 frint type.
10507 (p6600_fpu_fabs): Include fclass type.
10508
10509 2025-02-11 Haochen Jiang <[email protected]>
10510
10511 PR target/118813
10512 * config/i386/avx512bwintrin.h: Fix wrong __OPTIMIZE__
10513 wrap.
10514
10515 2025-02-10 Tobias Burnus <[email protected]>
10516
10517 * config/gcn/mkoffload.cc (enum elf_arch_code): Add
10518 EF_AMDGPU_MACH_AMDGCN_NONE.
10519 (elf_arch): Use enum elf_arch_code as type.
10520 (tool_cleanup): Silence warning by removing tailing '.' from error.
10521 (get_arch_name): Return enum elf_arch_code.
10522 (check_for_missing_lib): New; print fatal error if the multilib
10523 is not available but it is for the associate generic ISA.
10524 (main): Call it.
10525
10526 2025-02-10 Tobias Burnus <[email protected]>
10527
10528 * doc/install.texi (GCN): Update section about multilibs and
10529 required LLVM version.
10530
10531 2025-02-10 Martin Jambor <[email protected]>
10532
10533 PR ipa/118097
10534 * ipa-cp.cc (ipa_get_jf_arith_result): Adjust comment.
10535 (ipa_get_jf_pass_through_result): Removed.
10536 (ipa_value_from_jfunc): Use directly ipa_get_jf_arith_result, do
10537 not specify operation type but make sure we check and possibly
10538 convert the result.
10539 (get_val_across_arith_op): Remove the last parameter, always pass
10540 NULL_TREE to ipa_get_jf_arith_result in its last argument.
10541 (propagate_vals_across_arith_jfunc): Do not pass res_type to
10542 get_val_across_arith_op.
10543 (propagate_vals_across_pass_through): Add checking assert that
10544 parm_type is not NULL.
10545
10546 2025-02-10 Jakub Jelinek <[email protected]>
10547
10548 PR target/118623
10549 * config/i386/i386.md (*bt<mode>): Represent bt as
10550 compare:CCC of const0_rtx and zero_extract rather than
10551 zero_extract and const0_rtx.
10552 (*bt<SWI48:mode>_mask): Likewise.
10553 (*jcc_bt<mode>): Likewise. Use LTU and GEU as flags test
10554 instead of EQ and NE.
10555 (*jcc_bt<mode>_mask): Likewise.
10556 (*jcc_bt<SWI48:mode>_mask_1): Likewise.
10557 (Help combine recognize bt followed by cmov splitter): Likewise.
10558 (*bt<mode>_setcqi): Likewise.
10559 (*bt<mode>_setncqi): Likewise.
10560 (*bt<mode>_setnc<mode>): Likewise.
10561 (*bt<mode>_setncqi_2): Likewise.
10562 (*bt<mode>_setc<mode>_mask): Likewise.
10563
10564 2025-02-09 Dario Gjorgjevski <[email protected]>
10565
10566 PR middle-end/117263
10567 * genautomata.cc (output_statistics): Avoid set but unnused warnings
10568 when compiling with NDEBUG.
10569
10570 2025-02-09 Jeff Law <[email protected]>
10571
10572 PR target/118146
10573 * config/riscv/riscv.cc (riscv_legitimize_move): Handle subreg
10574 of vector source better to avoid ICE.
10575
10576 2025-02-08 Georg-Johann Lay <[email protected]>
10577
10578 PR target/118764
10579 * doc/invoke.texi (AVR Options): Fix typos.
10580
10581 2025-02-08 Thomas Schwinge <[email protected]>
10582
10583 * config/gcn/gcn.md (exception_receiver): 'define_expand'.
10584 * config/nvptx/nvptx.md (exception_receiver): Likewise.
10585
10586 2025-02-08 Thomas Schwinge <[email protected]>
10587
10588 * doc/sourcebuild.texi (Effective-Target Keywords): Clarify that
10589 effective-target 'exceptions' and 'exceptions_enabled' are
10590 orthogonal.
10591
10592 2025-02-08 Jakub Jelinek <[email protected]>
10593
10594 PR target/118776
10595 * config/i386/sse.md (<code><mode>3_mask): Use VI1248_AVX512VLBW
10596 iterator rather than VI48_AVX512VL.
10597 (<mask_codefor><code><mode>3<mask_name>): Rename to ...
10598 (*avx512bw_<code><mode>3<mask_name>): ... this. Use
10599 nonimmediate_operand rather than register_operand predicate and %v
10600 rather than v constraint for operand 1 and adjust condition to reject
10601 MEMs in both operand 1 and 2.
10602
10603 2025-02-07 Andrew Pinski <[email protected]>
10604
10605 PR target/114522
10606 * config/aarch64/aarch64-builtins.cc (aarch64_fold_aes_op): New function.
10607 (aarch64_general_gimple_fold_builtin): Call aarch64_fold_aes_op for crypto_aese
10608 and crypto_aesd.
10609
10610 2025-02-07 Andi Kleen <[email protected]>
10611
10612 PR preprocessor/118168
10613 * input.cc (file_cache::m_line_recent,
10614 m_line_recent_first, m_line_recent_last): Add.
10615 (file_cache_slot::evict): Clear new fields.
10616 (file_cache_slot::create): Clear new fields.
10617 (file_cache_slot::file_cache_slot): Initialize new fields.
10618 (file_cache_slot::~file_cache_slot): Release m_line_recent.
10619 (file_cache_slot::get_next_line): Maintain ring buffer of lines
10620 in m_line_recent.
10621 (file_cache_slot::read_line_num): Use m_line_recent to look up
10622 recent lines quickly.
10623
10624 2025-02-07 Richard Earnshaw <[email protected]>
10625
10626 PR target/118089
10627 * config/arm/arm.cc (arm_emit_multi_reg_pop): Restructure.
10628 Don't emit LDR on thumb2 when POP can be used for smaller code.
10629 Don't add a CFA adjust note when SP is popped off the stack.
10630
10631 2025-02-07 Richard Earnshaw <[email protected]>
10632
10633 PR target/118089
10634 * config/arm/arm.cc (arm_emit_multi_reg_pop): Add a CFA adjust
10635 note to single-register POP instructions.
10636
10637 2025-02-07 Jeff Law <[email protected]>
10638
10639 PR rtl-optimization/116244
10640 * ira-build.cc (create_insn_allocnos): Do not restrict the check for
10641 subreg uses to allocno creation time. Do it for all uses.
10642
10643 2025-02-07 Richard Biener <[email protected]>
10644
10645 PR jit/118780
10646 * system.h: Check INCLUDE_DLFCN_H for including dlfcn.h instead
10647 of ENABLE_PLUGIN.
10648 * plugin.cc: Define INCLUDE_DLFCN_H.
10649
10650 2025-02-07 Pan Li <[email protected]>
10651
10652 PR target/118103
10653 * config/riscv/riscv.cc (riscv_conditional_register_usage): Add
10654 the VXRM as the global_regs.
10655
10656 2025-02-07 Andrew Pinski <[email protected]>
10657
10658 PR target/118771
10659 * config/aarch64/aarch64.cc (aarch64_split_move): Assert that npieces is
10660 greater than 0.
10661
10662 2025-02-07 Richard Biener <[email protected]>
10663
10664 PR tree-optimization/115538
10665 * tree-vectorizer.h (vect_get_slp_scalar_def): Declare.
10666 * tree-vect-slp.cc (vect_get_slp_scalar_def): New helper.
10667 * tree-vect-generic.cc (expand_vector_conversion): Adjust.
10668 * tree-vect-stmts.cc (vectorizable_conversion): For SLP
10669 correctly look at ranges of the scalar defs of the SLP operand.
10670 (supportable_indirect_convert_operation): Likewise.
10671
10672 2025-02-07 Tobias Burnus <[email protected]>
10673
10674 * config/gcn/gcn.cc (gcn_hsa_declare_function_name): Update
10675 'amdhsa.version' output to match used code version.
10676 * config/gcn/gen-gcn-device-macros.awk: Add a comment to
10677 crosslink.
10678
10679 2025-02-07 Xi Ruoyao <[email protected]>
10680
10681 * config/loongarch/loongarch.md
10682 (*sel<code><GPR:mode>_using_<GPR2:mode>): Rename to ...
10683 (*sel<code><GPR:mode>_using_<X:mode>): ... here.
10684 (GPR2): Remove as nothing uses it now.
10685
10686 2025-02-07 Alexandre Oliva <[email protected]>
10687
10688 PR tree-optimization/118514
10689 PR tree-optimization/118706
10690 * gimple-fold.cc (decode_field_reference): Refuse to consider
10691 merging out-of-bounds BIT_FIELD_REFs.
10692 (make_bit_field_load): Drop too-strict assert.
10693 * tree-eh.cc (bit_field_ref_in_bounds_p): Rename to...
10694 (access_in_bounds_of_type_p): ... this. Change interface,
10695 export.
10696 (tree_could_trap_p): Adjust.
10697 * tree-eh.h (access_in_bounds_of_type_p): Declare.
10698
10699 2025-02-07 Tobias Burnus <[email protected]>
10700
10701 * config/gcn/gcn-devices.def (GCN_DEVICE): Add gfx9-generic,
10702 gfx902, gfx904, gfx909, gfx1031, gfx1032, gfx1033, gfx1034,
10703 gfx1035, gfx1101, gfx1102, gfx1150, gfx1151, gfx1152, and gfx1153.
10704 Add a currently unused column linking, a specific ISA to a generic
10705 one (if it exists).
10706 * config/gcn/gcn-tables.opt: Regenerate
10707 * doc/invoke.texi (AMD GCN): Add the the new gfc... and the older
10708 gfx{10-3,11}-generic to -march= as 'experimental'.
10709
10710 2025-02-07 Tobias Burnus <[email protected]>
10711
10712 * config/gcn/gcn-devices.def (GCN_DEVICE): Change sramecc for
10713 gfx906 to 'any'.
10714 * config/gcn/gcn.cc (GCN_DEVICE): Add tailing ... to #define.
10715
10716 2025-02-07 H.J. Lu <[email protected]>
10717
10718 PR rtl-optimization/111673
10719 PR rtl-optimization/115932
10720 PR rtl-optimization/116028
10721 PR rtl-optimization/117081
10722 PR rtl-optimization/117082
10723 PR rtl-optimization/118497
10724 * ira-color.cc (assign_hard_reg): Call the target hook for the
10725 callee-saved register cost scale in epilogue and prologue.
10726 * target.def (ira_callee_saved_register_cost_scale): New target
10727 hook.
10728 * targhooks.cc (default_ira_callee_saved_register_cost_scale):
10729 New.
10730 * targhooks.h (default_ira_callee_saved_register_cost_scale):
10731 Likewise.
10732 * config/i386/i386.cc (ix86_ira_callee_saved_register_cost_scale):
10733 New.
10734 (TARGET_IRA_CALLEE_SAVED_REGISTER_COST_SCALE): Likewise.
10735 * doc/tm.texi: Regenerated.
10736 * doc/tm.texi.in (TARGET_IRA_CALLEE_SAVED_REGISTER_COST_SCALE):
10737 New.
10738
10739 2025-02-06 Craig Blackmore <[email protected]>
10740
10741 * config/riscv/riscv.md: Move UNSPEC_SSP_SET and UNSPEC_SSP_TEST
10742 to unspec enum.
10743
10744 2025-02-06 Georg-Johann Lay <[email protected]>
10745
10746 * config/avr/avr.opt.urls: Add mcvt.
10747
10748 2025-02-06 Tamar Christina <[email protected]>
10749
10750 PR tree-optimization/118756
10751 * tree-ssa-loop-ivopts.cc (contain_complex_addr_expr): Remove.
10752
10753 2025-02-06 Georg-Johann Lay <[email protected]>
10754
10755 PR target/118764
10756 * config/avr/avr.opt (-mcvt): New target option.
10757 * config/avr/avr-arch.h (AVR_CVT): New enum value.
10758 * config/avr/avr-mcus.def: Add AVR_CVT flag for devices that
10759 support it.
10760 * config/avr/avr.cc (avr_handle_isr_attribute) [TARGET_CVT]: Issue
10761 an error when a vector number larger that 3 is used.
10762 * config/avr/gen-avr-mmcu-specs.cc (McuInfo.have_cvt): New property.
10763 (print_mcu) <*avrlibc_startfile>: Use crt<mcu>-cvt.o depending
10764 on -mcvt (or issue an error when the device doesn't support a CVT).
10765 * doc/invoke.texi (AVR Options): Document -mcvt.
10766
10767 2025-02-06 Jakub Jelinek <[email protected]>
10768
10769 PR rtl-optimization/117506
10770 * loop-iv.cc (get_biv_step_1): For {ZERO,SIGN}_EXTEND
10771 of PLUS apply {ZERO,SIGN}_EXTEND to op1.
10772
10773 2025-02-06 Georg-Johann Lay <[email protected]>
10774
10775 PR target/118768
10776 * config/avr/genmultilib.awk: Parse the AVR_MCU lines in
10777 a more robust way w.r.t. white spaces.
10778
10779 2025-02-06 Lulu Cheng <[email protected]>
10780
10781 PR target/118561
10782 * config/loongarch/loongarch-builtins.cc
10783 (loongarch_expand_builtin_lsx_test_branch):
10784 NULL_RTX will not be returned when an error is detected.
10785 (loongarch_expand_builtin): Likewise.
10786
10787 2025-02-06 Richard Sandiford <[email protected]>
10788
10789 PR tree-optimization/110449
10790 * tree-ssa-loop-manip.h (insert_iv_increment): Declare.
10791 * tree-ssa-loop-manip.cc (insert_iv_increment): New function,
10792 split out from...
10793 (create_iv): ...here and generalized to gimple_seqs.
10794 * tree-vect-loop.cc (vectorizable_induction): Use
10795 standard_iv_increment_position and insert_iv_increment
10796 to insert the IV increment.
10797
10798 2025-02-06 Richard Biener <[email protected]>
10799
10800 PR rtl-optimization/117922
10801 * fold-mem-offsets.cc (pass_fold_mem_offsets::execute):
10802 Do nothing for a highly connected CFG.
10803
10804 2025-02-06 Richard Biener <[email protected]>
10805
10806 PR tree-optimization/118749
10807 * tree-vect-data-refs.cc (vector_alignment_reachable_p): Pass
10808 in the vectorization factor, when that cannot maintain
10809 the DRs target alignment do not claim we can reach that
10810 by peeling.
10811
10812 2025-02-05 Jeff Law <[email protected]>
10813
10814 * config/bfin/bfin.md (abssi): Disable pattern.
10815
10816 2025-02-05 Vladimir N. Makarov <[email protected]>
10817
10818 PR rtl-optimization/115568
10819 * lra-remat.cc (create_cands): Check that output reload insn is
10820 adjacent to given insn. Update a comment.
10821
10822 2025-02-05 Richard Sandiford <[email protected]>
10823
10824 * config/aarch64/aarch64.cc (aarch64_insn_cost): Give PARALLELs
10825 the same cost as the costliest SET.
10826
10827 2025-02-05 Jakub Jelinek <[email protected]>
10828
10829 PR rtl-optimization/117239
10830 * cselib.cc (cselib_init): Remove spurious closing paren in
10831 the #ifdef STACK_ADDRESS_OFFSET specific code.
10832
10833 2025-02-05 Jakub Jelinek <[email protected]>
10834
10835 PR rtl-optimization/117239
10836 * cselib.cc: Include predict.h.
10837 (callmem): Change type from rtx to rtx[2].
10838 (cselib_preserve_only_values): Use callmem[0] rather than callmem.
10839 (cselib_invalidate_mem): Optimize and don't try to invalidate
10840 for the mem_rtx == callmem[1] case MEMs which clearly can't be
10841 below the stack pointer.
10842 (cselib_process_insn): Use callmem[0] rather than callmem.
10843 For const/pure calls also call cselib_invalidate_mem (callmem[1])
10844 in !ACCUMULATE_OUTGOING_ARGS or cfun->calls_alloca functions.
10845 (cselib_init): Initialize callmem[0] rather than callmem and also
10846 initialize callmem[1].
10847
10848 2025-02-05 Richard Earnshaw <[email protected]>
10849
10850 PR target/118089
10851 * config/arm/arm.cc (thumb2_expand_return): Use LDM SP!, {PC}
10852 when optimizing for size, or when there's no performance benefit over
10853 LDR PC, [SP], #4.
10854 (arm_expand_epilogue): Likewise.
10855
10856 2025-02-05 Richard Earnshaw <[email protected]>
10857
10858 * config/arm/arm.md (*pop_multiple_with_writeback_and_return): Remove
10859 constraints. Don't validate the first transfer register here.
10860
10861 2025-02-05 Richard Earnshaw <[email protected]>
10862
10863 * config/arm/arm.cc (decompose_addr_for_ldm_stm): New function.
10864 (ldm_stm_operation_p): Rework to clarify logic. Allow single
10865 registers to be pushed or popped using LDM/STM.
10866
10867 2025-02-05 Xi Ruoyao <[email protected]>
10868
10869 PR tree-optimization/118727
10870 * tree-vect-patterns.cc (vect_recog_sad_pattern): Don't call
10871 vect_look_through_possible_promotion on ABD inputs.
10872
10873 2025-02-05 Sebastian Huber <[email protected]>
10874
10875 * config/arm/t-rtems: Add Cortex-M33 multilib.
10876
10877 2025-02-04 Andi Kleen <[email protected]>
10878
10879 * doc/invoke.texi: Document file cache tunables.
10880 * params.opt: Move auto tuning description to lines.
10881
10882 2025-02-04 Ilya Leoshkevich <[email protected]>
10883
10884 * config/s390/s390.cc (print_operand): Remove the no longer
10885 necessary 31-bit and weak symbol handling.
10886 * config/s390/s390.md (*movdi_64): Do not use @PLT with larl.
10887 (*movsi_larl): Likewise.
10888 (main_base_64): Likewise.
10889 (reload_base_64): Likewise.
10890
10891 2025-02-04 Richard Biener <[email protected]>
10892
10893 PR tree-optimization/117113
10894 * gimple-loop-jam.cc (unroll_jam_possible_p): Detect when
10895 we cannot handle virtual SSA update.
10896
10897 2025-02-04 Andrew Pinski <[email protected]>
10898
10899 PR middle-end/116926
10900 * optabs-query.cc (find_widening_optab_handler_and_mode): Fix
10901 limit for `vec-mode -> scalar-mode` case.
10902
10903 2025-02-04 Richard Biener <[email protected]>
10904
10905 PR rtl-optimization/117611
10906 * combine.cc (simplify_shift_const_1): Bail if not
10907 scalar int mode.
10908
10909 2025-02-04 Richard Biener <[email protected]>
10910
10911 PR lto/113207
10912 * ipa-free-lang-data.cc (free_lang_data_in_type): First drop
10913 const/volatile qualifiers from function argument types,
10914 then build a simplified type.
10915
10916 2025-02-03 Uros Bizjak <[email protected]>
10917
10918 * config/i386/i386.md (*sibcall_pop_memory):
10919 Disable for TARGET_INDIRECT_BRANCH_REGISTER
10920 * config/i386/predicates.md (call_insn_operand): Enable when
10921 "satisfies_constraint_Bw (op)" is true, instead of open-coding
10922 constraint here.
10923 (sibcall_insn_operand): Ditto with "satisfies_constraint_Bs (op)"
10924
10925 2025-02-03 Richard Sandiford <[email protected]>
10926
10927 * config/aarch64/aarch64.cc (aarch64_choose_vector_init_constant):
10928 New function, split out from...
10929 (aarch64_expand_vector_init_fallback): ...here. Use a bit-
10930 reversed increment to find a constant index. Add support for
10931 stepped constants.
10932
10933 2025-02-03 John David Anglin <[email protected]>
10934
10935 PR rtl-optimization/117248
10936 * config/pa/predicates.md (r25_operand): New predicate.
10937 (r26_operand): Likewise.
10938 * config/pa/pa.md: Use match_operand for r25 and r26 hard
10939 register operands in mult, div, udiv, mod and umod millicode
10940 patterns.
10941
10942 2025-02-03 Richard Biener <[email protected]>
10943
10944 PR tree-optimization/118717
10945 * tree-ssa-phiopt.cc (cond_if_else_store_replacement_1):
10946 Do not common stores referencing abnormal SSA names.
10947 * tree-ssa-sink.cc (sink_common_stores_to_bb): Likewise.
10948
10949 2025-02-03 Andi Kleen <[email protected]>
10950
10951 * input.cc (check_line): New.
10952 (test_replacement): New function to test line caching.
10953 (input_cc_tests): Call test_replacement
10954
10955 2025-02-03 Andi Kleen <[email protected]>
10956
10957 PR preprocessor/118168
10958 * input.cc (file_cache_slot::get_next_line): Implement
10959 dynamic sizing of m_line_record based on input length.
10960 * params.opt: (param_file_cache_lines): Set to 0 to size
10961 dynamically.
10962
10963 2025-02-03 Andi Kleen <[email protected]>
10964
10965 PR preprocessor/118168
10966 * input.cc (total_lines_num): Remove.
10967 (file_cache_slot::evict): Ditto.
10968 (file_cache_slot::create): Ditto.
10969 (file_cache_slot::set_content): Ditto.
10970 (file_cache_slot::file_cache_slot): Ditto.
10971 (file_cache_slot::dump): Ditto.
10972
10973 2025-02-03 Andi Kleen <[email protected]>
10974
10975 PR preprocessor/118168
10976 * input.cc (file_cache_slot::get_next_line): Use new algorithm
10977 to maintain
10978 (file_cache_slot::read_line_num): Use binary search for lookup.
10979
10980 2025-02-03 Andi Kleen <[email protected]>
10981
10982 PR preprocessor/118168
10983 * input.cc (file_cache::tune): New function.
10984 * input.h (class file_cache): Make tunables non const.
10985 * params.opt: Add new tunables.
10986 * toplev.cc (toplev::main): Initialize input buffer context
10987 tunables.
10988
10989 2025-02-02 Gaius Mulley <[email protected]>
10990
10991 PR modula2/117411
10992 * doc/gm2.texi (Exception handling): New section.
10993 (The ISO system module): Add description of COFF_T.
10994 (Assembler language): Tidy up last sentance.
10995
10996 2025-02-02 Lewis Hyatt <[email protected]>
10997
10998 PR middle-end/115913
10999 * optc-save-gen.awk (cl_optimization_compare): Skip options with
11000 CL_WARNING flag.
11001
11002 2025-02-01 H.J. Lu <[email protected]>
11003
11004 PR target/118713
11005 * config/i386/i386-expand.cc (ix86_expand_call): Change "if
11006 (TARGET_X32 ...)" back to "else if (TARGET_X32 ...)".
11007
11008 2025-02-01 H.J. Lu <[email protected]>
11009
11010 PR target/118713
11011 * config/i386/constraints.md (Bs): Always disable if
11012 TARGET_INDIRECT_BRANCH_REGISTER is true.
11013 (Bw): Likewise.
11014 * config/i386/i386-expand.cc (ix86_expand_call): Force indirect
11015 call via register for x32 GOT slot call if
11016 TARGET_INDIRECT_BRANCH_REGISTER is true.
11017 * config/i386/i386-protos.h (ix86_nopic_noplt_attribute_p): New.
11018 * config/i386/i386.cc (ix86_nopic_noplt_attribute_p): Make it
11019 global.
11020 * config/i386/i386.md (*call_got_x32): Disable indirect call via
11021 memory for TARGET_INDIRECT_BRANCH_REGISTER.
11022 (*call_value_got_x32): Likewise.
11023 (*sibcall_value_pop_memory): Likewise.
11024 * config/i386/predicates.md (constant_call_address_operand):
11025 Return false if both TARGET_INDIRECT_BRANCH_REGISTER and
11026 ix86_nopic_noplt_attribute_p are true.
11027
11028 2025-02-01 David Malcolm <[email protected]>
11029
11030 * libsarifreplay.cc (sarif_replayer::handle_run_obj): Pass run to
11031 handle_result_obj.
11032 (sarif_replayer::handle_result_obj): Add run_obj param and pass it
11033 to handle_location_object and handle_thread_flow_object.
11034 (sarif_replayer::handle_thread_flow_object): Add run_obj param and
11035 pass it to handle_thread_flow_location_object.
11036 (sarif_replayer::handle_thread_flow_location_object): Add run_obj
11037 param and pass it to handle_location_object.
11038 (sarif_replayer::handle_location_object): Add run_obj param and
11039 pass it to handle_logical_location_object.
11040 (sarif_replayer::handle_logical_location_object): Add run_obj
11041 param. If the run_obj is non-null and has "logicalLocations",
11042 then use these "cached" logical locations if we see an "index"
11043 property, as per §3.33.3
11044
11045 2025-02-01 Jeff Law <[email protected]>
11046
11047 PR tree-optimization/114277
11048 * match.pd (a * (a || b) -> a): New pattern.
11049 (a * !(a || b) -> 0): Likewise.
11050
11051 2025-01-31 Jakub Jelinek <[email protected]>
11052
11053 PR ipa/117432
11054 * ipa-icf-gimple.cc (func_checker::compare_asm_inputs_outputs):
11055 Also return_false if operands have incompatible types.
11056 (func_checker::compare_gimple_call): Check fntype1 vs. fntype2
11057 compatibility for all non-internal calls and assume fntype1 and
11058 fntype2 are non-NULL for those. For calls to non-prototyped
11059 calls or for stdarg_p functions after the last named argument (if any)
11060 check type compatibility of call arguments.
11061
11062 2025-01-31 Vladimir N. Makarov <[email protected]>
11063
11064 PR rtl-optimization/116234
11065 * lra-constraints.cc (multiple_insn_refs_p): New function.
11066 (curr_insn_transform): Use it.
11067
11068 2025-01-31 Richard Biener <[email protected]>
11069
11070 PR debug/100530
11071 * dwarf2out.cc (modified_type_die): Do not claim we handle
11072 address-space qualification with dwarf_qual_info[].
11073
11074 2025-01-31 Jakub Jelinek <[email protected]>
11075
11076 PR tree-optimization/118689
11077 PR modula2/115032
11078 * tree-ssa-loop-niter.cc (build_cltz_expr): Return NULL_TREE if fn is
11079 NULL and use_ifn is false.
11080
11081 2025-01-31 Richard Biener <[email protected]>
11082
11083 * tree-vect-loop.cc (vect_analyze_loop_operations): Only
11084 call vectorizable_lc_phi when not PURE_SLP.
11085 (vectorizable_reduction): Do not claim having handled
11086 the inner loop LC PHI for outer loop vectorization.
11087
11088 2025-01-30 Georg-Johann Lay <[email protected]>
11089
11090 * config/avr/builtins.def (STRLEN_FLASH, STRLEN_FLASHX)
11091 (STRLEN_MEMX): New DEF_BUILTIN's.
11092 * config/avr/avr.cc (avr_ftype_strlen): New static function.
11093 (avr_builtin_supported_p): New built-ins are not for AVR_TINY.
11094 (avr_init_builtins) <strlen_flash_node, strlen_flashx_node,
11095 strlen_memx_node>: Provide new fntypes.
11096 (avr_fold_builtin) [AVR_BUILTIN_STRLEN_FLASH]
11097 [AVR_BUILTIN_STRLEN_FLASHX, AVR_BUILTIN_STRLEN_MEMX]: Fold if
11098 possible.
11099 * doc/extend.texi (AVR Built-in Functions): Document
11100 __builtin_avr_strlen_flash, __builtin_avr_strlen_flashx,
11101 __builtin_avr_strlen_memx.
11102
11103 2025-01-30 Georg-Johann Lay <[email protected]>
11104
11105 * config/avr/builtins.def (AVR_FIRST_C_ONLY_BUILTIN_ID): New macro.
11106 * config/avr/avr-protos.h (avr_builtin_supported_p): New.
11107 * config/avr/avr.cc (avr_builtin_supported_p): New function.
11108 (avr_init_builtins): Only provide a built-in when it is supported.
11109 * config/avr/avr-c.cc (avr_cpu_cpp_builtins): Only define the
11110 __BUILTIN_AVR_<NAME> build-in defines when the associated built-in
11111 function is supported.
11112 * doc/extend.texi (AVR Built-in Functions): Add a note that
11113 following built-ins are supported for only for GNU-C.
11114
11115 2025-01-30 Jakub Jelinek <[email protected]>
11116 Stefan Schulze Frielinghaus <[email protected]>
11117
11118 PR target/118696
11119 * config/s390/vector.md (*vec_cmpgt<mode><mode>_nocc_emu,
11120 *vec_cmpgtu<mode><mode>_nocc_emu): Duplicate the first rather than
11121 second V2DImode element.
11122
11123 2025-01-30 Richard Biener <[email protected]>
11124
11125 PR middle-end/118695
11126 * expr.cc (expand_expr_real_1): When expanding a MEM_REF
11127 to a non-MEM by committing it to a stack temporary make
11128 sure to handle misaligned accesses correctly.
11129
11130 2025-01-30 Tobias Burnus <[email protected]>
11131
11132 * gimplify.cc (gimplify_call_expr): For OpenMP's append_args clause
11133 processed by 'omp dispatch', update for internal-representation
11134 changes; fix handling of hidden arguments, add some comments and
11135 handle Fortran's value dummy and optional/pointer/allocatable actual
11136 args.
11137
11138 2025-01-30 Richard Biener <[email protected]>
11139
11140 PR middle-end/118692
11141 * expr.cc (expand_expr_real_1): When expanding a MEM_REF
11142 as BIT_FIELD_REF avoid large offsets for accesses not
11143 overlapping the base object.
11144
11145 2025-01-30 Richard Biener <[email protected]>
11146
11147 PR tree-optimization/114052
11148 * tree-ssa-loop-niter.cc (maybe_lower_iteration_bound): Check
11149 for infinite subloops we might not exit.
11150
11151 2025-01-30 Richard Sandiford <[email protected]>
11152
11153 PR rtl-optimization/118320
11154 * pair-fusion.cc (pair_fusion_bb_info::fuse_pair): Commonize
11155 the merge of input_uses and return early if it fails.
11156
11157 2025-01-29 Gaius Mulley <[email protected]>
11158
11159 PR modula2/118010
11160 PR modula2/118183
11161 PR modula2/116073
11162 * doc/gm2.texi (-fm2-file-offset-bits=): Change the default size
11163 description to CSSIZE_T.
11164 Add COFF_T to the list of data types exported by SYSTEM.def.
11165
11166 2025-01-29 Richard Sandiford <[email protected]>
11167
11168 PR rtl-optimization/118429
11169 * pair-fusion.cc (latest_hazard_before): Add an extra parameter
11170 to say whether the instruction is a load or a store. If the
11171 instruction is not a load or store and has memory side effects,
11172 prevent it from being moved earlier.
11173 (pair_fusion::find_trailing_add): Update call accordingly.
11174 (pair_fusion_bb_info::fuse_pair): If the trailng addition had
11175 a memory side-effect, use a tombstone to preserve it.
11176
11177 2025-01-29 Georg-Johann Lay <[email protected]>
11178
11179 * config/avr/avr.md (*negsi2.libgcc): New insn.
11180
11181 2025-01-29 Yoshinori Sato <[email protected]>
11182
11183 * config/rx/constraints.md (Q): Also check that the address
11184 passes rx_is_restricted_memory-address.
11185
11186 2025-01-29 Andrew Pinski <[email protected]>
11187
11188 PR tree-optimization/118505
11189 * gimple-ssa-split-paths.cc (poor_ifcvt_pred): Return
11190 true for trapping statements.
11191
11192 2025-01-29 Andrew Pinski <[email protected]>
11193
11194 * gimple-ssa-split-paths.cc (poor_ifcvt_candidate_code): Remove CALL_EXPR handling.
11195
11196 2025-01-29 Martin Jambor <[email protected]>
11197 Michal JireÅ¡ <[email protected]>
11198
11199 PR tree-optimization/117892
11200 * tree-ssa-dse.cc (dse_optimize_call): Leave control-altering
11201 noreturn calls alone.
11202
11203 2025-01-29 Pan Li <[email protected]>
11204
11205 PR target/117688
11206 * config/riscv/riscv.cc (riscv_expand_sstrunc): Leverage the helper
11207 riscv_extend_to_xmode_reg with SIGN_EXTEND.
11208
11209 2025-01-29 Pan Li <[email protected]>
11210
11211 PR target/117688
11212 * config/riscv/riscv.cc (riscv_expand_sssub): Leverage the helper
11213 riscv_extend_to_xmode_reg with SIGN_EXTEND.
11214
11215 2025-01-29 Pan Li <[email protected]>
11216
11217 PR target/117688
11218 * config/riscv/riscv.cc (riscv_expand_ssadd): Leverage the helper
11219 riscv_extend_to_xmode_reg with SIGN_EXTEND.
11220
11221 2025-01-29 Pan Li <[email protected]>
11222
11223 * config/riscv/riscv.cc (riscv_gen_zero_extend_rtx): Rename from ...
11224 (riscv_extend_to_xmode_reg): Rename to and add rtx_code for
11225 zero/sign extend if non-Xmode.
11226 (riscv_expand_usadd): Leverage the renamed function with ZERO_EXTEND.
11227 (riscv_expand_ussub): Ditto.
11228
11229 2025-01-29 Richard Biener <[email protected]>
11230
11231 PR middle-end/118684
11232 * expr.cc (expand_expr_real_1): When creating a stack local
11233 during expansion of a handled component, when the base is
11234 a SSA_NAME use its type alignment and avoid calling
11235 get_object_alignment.
11236
11237 2025-01-28 Richard Biener <[email protected]>
11238
11239 PR middle-end/118684
11240 * expr.cc (expand_expr_real_1): When expanding a reference
11241 based on a register and we end up needing a MEM make sure
11242 that's aligned as the original reference required.
11243
11244 2025-01-28 David Malcolm <[email protected]>
11245
11246 * input.cc (file_cache_slot::dump): Show indices within
11247 m_line_record when dumping entries.
11248
11249 2025-01-28 David Malcolm <[email protected]>
11250
11251 PR other/118675
11252 * diagnostic-format-sarif.cc: Define INCLUDE_STRING.
11253 (escape_braces): New.
11254 (set_string_property_escaping_braces): New.
11255 (sarif_builder::make_message_object): Escape braces in the "text"
11256 property.
11257 (sarif_builder::make_message_object_for_diagram): Likewise, and
11258 for the "markdown" property.
11259 (sarif_builder::make_multiformat_message_string): Likewise for the
11260 "text" property.
11261 (xelftest::test_message_with_braces): New.
11262 (selftest::diagnostic_format_sarif_cc_tests): Call it.
11263
11264 2025-01-28 Richard Sandiford <[email protected]>
11265
11266 PR tree-optimization/117270
11267 * tree-vect-slp.cc (vectorizable_slp_permutation_1): Make nperms
11268 account for the number of times that each permutation will be used
11269 during transformation.
11270
11271 2025-01-28 Richard Biener <[email protected]>
11272
11273 PR tree-optimization/112859
11274 * tree-loop-distribution.cc
11275 (loop_distribution::pg_add_dependence_edges): Add comment.
11276
11277 2025-01-28 Vladimir N. Makarov <[email protected]>
11278
11279 PR target/118663
11280 * lra-constraints.cc (invalid_mode_reg_p): Check empty
11281 reg_class_contents.
11282
11283 2025-01-28 Richard Biener <[email protected]>
11284
11285 PR tree-optimization/117424
11286 * tree-eh.cc (tree_could_trap_p): Verify the base is
11287 fully contained within a decl.
11288
11289 2025-01-28 Thomas Schwinge <[email protected]>
11290
11291 * tree-pretty-print.cc (dump_omp_clause): Clarify
11292 'OMP_CLAUSE_MAP_RUNTIME_IMPLICIT_P'.
11293
11294 2025-01-28 Jakub Jelinek <[email protected]>
11295
11296 PR rtl-optimization/118638
11297 * combine.cc (make_extraction): Only optimize (mult x 2^n) if len is
11298 larger than 1.
11299
11300 2025-01-28 Richard Sandiford <[email protected]>
11301
11302 * tree-vect-slp.cc (vectorizable_slp_permutation_1): Remove
11303 extra newline from dump message.
11304
11305 2025-01-28 Jeff Law <[email protected]>
11306
11307 PR target/114085
11308 * config/h8300/constraints.md (U): No longer accept REGs.
11309 * config/h8300/logical.md (andqi3_2): Use "rU" rather than "U".
11310 (andqi3_2_clobber_flags, andqi3_1, <code>qi3_1): Likewise.
11311 * config/h8300/testcompare.md (tst_extzv_1_n): Likewise.
11312
11313 2025-01-27 Robin Dapp <[email protected]>
11314
11315 PR target/117173
11316 * config/riscv/riscv-v.cc (shuffle_generic_patterns): Only
11317 support single-source permutes by default.
11318 * config/riscv/riscv.opt: New param "riscv-two-source-permutes".
11319
11320 2025-01-27 John David Anglin <[email protected]>
11321
11322 PR c++/116524
11323 * configure.ac: Check for munmap and msync.
11324 * configure: Regenerate.
11325 * config.in: Regenerate.
11326
11327 2025-01-27 Richard Biener <[email protected]>
11328
11329 PR tree-optimization/118653
11330 * tree-vect-loop.cc (vectorizable_live_operation): Also allow
11331 out-of-loop debug uses.
11332
11333 2025-01-27 Richard Biener <[email protected]>
11334
11335 PR rtl-optimization/118662
11336 * combine.cc (try_combine): When re-materializing a load
11337 from an extended reg by a lowpart subreg make sure we're
11338 not dealing with vector or complex modes.
11339
11340 2025-01-27 Richard Biener <[email protected]>
11341
11342 PR middle-end/118643
11343 * expr.cc (expand_expr_real_1): Avoid falling back to BIT_FIELD_REF
11344 expansion for negative offset.
11345
11346 2025-01-27 Richard Biener <[email protected]>
11347
11348 PR tree-optimization/112859
11349 PR tree-optimization/115347
11350 * tree-loop-distribution.cc
11351 (loop_distribution::pg_add_dependence_edges): For a zero
11352 distance vector still make sure to not have an inner
11353 loop with zero distance.
11354
11355 2025-01-27 Jakub Jelinek <[email protected]>
11356
11357 PR tree-optimization/118637
11358 * match.pd: Canonicalize unsigned division by power of two to
11359 right shift.
11360
11361 2025-01-27 Soumya AR <[email protected]>
11362
11363 PR target/118490
11364 * match.pd: Added ! to verify that log/exp (CST) can be constant folded.
11365
11366 2025-01-26 Ilya Leoshkevich <[email protected]>
11367
11368 * asan.cc (asan_emit_stack_protection): Always zero the flag
11369 unless it is cleared by the __asan_stack_free_N() libcall.
11370
11371 2025-01-26 Pan Li <[email protected]>
11372
11373 PR target/118103
11374 * config/riscv/riscv.cc (riscv_conditional_register_usage): Add
11375 the FRM as the global_regs.
11376
11377 2025-01-25 Andi Kleen <[email protected]>
11378
11379 PR preprocessor/118168
11380 * input.cc (file_cache_slot::m_error): New field.
11381 (file_cache_slot::create): Clear m_error.
11382 (file_cache_slot::file_cache_slot): Clear m_error.
11383 (file_cache_slot::read_data): Set m_error on error.
11384 (file_cache_slot::get_next_line): Use m_error instead of ferror.
11385
11386 2025-01-25 Jeff Law <[email protected]>
11387
11388 PR target/116256
11389 * config/riscv/riscv.md (mvconst_internal): Reject single bit
11390 constants.
11391 * config/riscv/riscv.cc (riscv_gen_zero_extend_rtx): Improve
11392 handling constants.
11393
11394 2025-01-24 Andrew Carlotti <[email protected]>
11395
11396 * config/aarch64/aarch64-arches.def (V9_5A): Add CPA.
11397 * config/aarch64/aarch64-option-extensions.def (CPA): New.
11398 * doc/invoke.texi: Document +cpa.
11399
11400 2025-01-24 Andrew Carlotti <[email protected]>
11401
11402 * doc/invoke.texi: Add +wfxt and +xs to armv9.2-a
11403
11404 2025-01-24 Andrew Carlotti <[email protected]>
11405
11406 * config/aarch64/aarch64-arches.def (V9_5A): New.
11407 * doc/invoke.texi: Document armv9.5-a option.
11408
11409 2025-01-24 Andrew Carlotti <[email protected]>
11410
11411 * common/config/aarch64/aarch64-common.cc: Assert that CRYPTO
11412 bit is not set.
11413 * config/aarch64/aarch64-feature-deps.h
11414 (info<FEAT>.explicit_on): Unset CRYPTO bit.
11415 (cpu_##CORE_IDENT): Ditto.
11416
11417 2025-01-24 Andrew Carlotti <[email protected]>
11418
11419 * common/config/aarch64/aarch64-common.cc
11420 (aarch64_rewrite_selected_cpu): Refactor and inline into...
11421 (aarch64_rewrite_mcpu): this.
11422 * config/aarch64/aarch64-protos.h
11423 (aarch64_rewrite_selected_cpu): Delete.
11424
11425 2025-01-24 Andrew Carlotti <[email protected]>
11426
11427 * common/config/aarch64/aarch64-common.cc
11428 (aarch64_get_arch_string_for_assembler): New.
11429 (aarch64_rewrite_march): New.
11430 (aarch64_rewrite_selected_cpu): Call new function.
11431 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity mapping.
11432 * config/aarch64/aarch64-protos.h
11433 (aarch64_get_arch_string_for_assembler): New.
11434 * config/aarch64/aarch64.cc
11435 (aarch64_declare_function_name): Call new function.
11436 (aarch64_start_file): Ditto.
11437 * config/aarch64/aarch64.h
11438 (EXTRA_SPEC_FUNCTIONS): Use new macro name.
11439 (MCPU_TO_MARCH_SPEC): Rename to...
11440 (MARCH_REWRITE_SPEC): ...this, and extend the spec rule.
11441 (aarch64_rewrite_march): New declaration.
11442 (MCPU_TO_MARCH_SPEC_FUNCTIONS): Rename to...
11443 (AARCH64_BASE_SPEC_FUNCTIONS): ...this, and add new function.
11444 (ASM_CPU_SPEC): Use new macro name.
11445
11446 2025-01-24 Andrew Carlotti <[email protected]>
11447
11448 * common/config/aarch64/aarch64-common.cc
11449 (aarch64_get_all_extension_candidates): Inline into...
11450 (aarch64_print_hint_for_extensions): ...this.
11451
11452 2025-01-24 Andrew Carlotti <[email protected]>
11453
11454 * common/config/aarch64/aarch64-common.cc
11455 (aarch64_get_all_extension_candidates): Move within file.
11456 (aarch64_print_hint_candidates): Move from aarch64.cc.
11457 (aarch64_print_hint_for_extensions): Ditto.
11458 (aarch64_print_hint_for_arch): Ditto.
11459 (aarch64_print_hint_for_core): Ditto.
11460 (enum aarch_parse_opt_result): Ditto.
11461 (aarch64_parse_arch): Ditto.
11462 (aarch64_parse_cpu): Ditto.
11463 (aarch64_parse_tune): Ditto.
11464 (aarch64_validate_march): Ditto.
11465 (aarch64_validate_mcpu): Ditto.
11466 (aarch64_validate_mtune): Ditto.
11467 * config/aarch64/aarch64-protos.h
11468 (aarch64_rewrite_selected_cpu): Move within file.
11469 (aarch64_print_hint_for_extensions): Share function prototype.
11470 (aarch64_print_hint_for_arch): Ditto.
11471 (aarch64_print_hint_for_core): Ditto.
11472 (enum aarch_parse_opt_result): Ditto.
11473 (aarch64_validate_march): Ditto.
11474 (aarch64_validate_mcpu): Ditto.
11475 (aarch64_validate_mtune): Ditto.
11476 (aarch64_get_all_extension_candidates): Unshare prototype.
11477 * config/aarch64/aarch64.cc
11478 (aarch64_parse_arch): Move to aarch64-common.cc.
11479 (aarch64_parse_cpu): Ditto.
11480 (aarch64_parse_tune): Ditto.
11481 (aarch64_print_hint_candidates): Ditto.
11482 (aarch64_print_hint_for_core): Ditto.
11483 (aarch64_print_hint_for_arch): Ditto.
11484 (aarch64_print_hint_for_extensions): Ditto.
11485 (aarch64_validate_mcpu): Ditto.
11486 (aarch64_validate_march): Ditto.
11487 (aarch64_validate_mtune): Ditto.
11488
11489 2025-01-24 Andrew Carlotti <[email protected]>
11490
11491 * config/aarch64/aarch64.cc
11492 (aarch64_print_hint_candidates): New helper function.
11493 (aarch64_print_hint_for_core_or_arch): Inline into callers.
11494 (aarch64_print_hint_for_core): Inline callee and use new helper.
11495 (aarch64_print_hint_for_arch): Ditto.
11496 (aarch64_print_hint_for_extensions): Use new helper.
11497
11498 2025-01-24 Andrew Carlotti <[email protected]>
11499
11500 * config/aarch64/aarch64.cc
11501 (aarch64_print_hint_for_extensions): Receive string as a char *.
11502 (aarch64_parse_arch): Don't return a const struct processor *.
11503 (aarch64_parse_cpu): Ditto.
11504 (aarch64_parse_tune): Ditto.
11505 (aarch64_validate_mtune): Ditto.
11506 (aarch64_validate_mcpu): Ditto, and use temporary variables for
11507 march/mcpu cross-check.
11508 (aarch64_validate_march): Ditto.
11509 (aarch64_override_options): Adjust for changed parameter types.
11510 (aarch64_handle_attr_arch): Ditto.
11511 (aarch64_handle_attr_cpu): Ditto.
11512 (aarch64_handle_attr_tune): Ditto.
11513
11514 2025-01-24 Andrew Carlotti <[email protected]>
11515
11516 * common/config/aarch64/aarch64-common.cc
11517 (struct aarch64_option_extension): Rename to..
11518 (struct aarch64_extension_info): ...this.
11519 (all_extensions): Update type name.
11520 (struct arch_to_arch_name): Rename to...
11521 (struct aarch64_arch_info): ...this, and rename name field.
11522 (all_architectures): Update type names, and move before...
11523 (struct processor_name_to_arch): ...this. Rename to...
11524 (struct aarch64_processor_info): ...this, rename name field and
11525 add cpu field.
11526 (all_cores): Update type name, and set new field.
11527 (aarch64_parse_extension): Update names.
11528 (aarch64_get_all_extension_candidates): Ditto.
11529 (aarch64_rewrite_selected_cpu): Ditto.
11530
11531 2025-01-24 Andrew Carlotti <[email protected]>
11532
11533 * common/config/aarch64/aarch64-common.cc
11534 (all_cores): Remove explicit generic entry.
11535
11536 2025-01-24 Andrew Carlotti <[email protected]>
11537
11538 * config/aarch64/aarch64-opts.h
11539 (enum aarch64_processor): Rename to...
11540 (enum aarch64_cpu): ...this, and rename the entries.
11541 * config/aarch64/aarch64.cc
11542 (aarch64_type): Rename type and initial value.
11543 (struct processor): Rename member types.
11544 (all_architectures): Rename enum members.
11545 (all_cores): Ditto.
11546 (aarch64_get_tune_cpu): Rename type and enum member.
11547 * config/aarch64/aarch64.h (enum target_cpus): Remove.
11548 (TARGET_CPU_DEFAULT): Rename default value.
11549 (aarch64_tune): Rename type.
11550 * config/aarch64/aarch64.opt:
11551 (selected_tune): Rename type and default value.
11552
11553 2025-01-24 Andrew Carlotti <[email protected]>
11554
11555 * config/aarch64/aarch64.cc (aarch64_override_options): Compare
11556 returned feature masks directly.
11557
11558 2025-01-24 Vladimir N. Makarov <[email protected]>
11559
11560 PR target/118497
11561 * ira-int.h (target_ira_int): Add x_ira_hard_regno_nrefs.
11562 (ira_hard_regno_nrefs): New macro.
11563 * ira.cc (setup_hard_regno_aclass): Remove unused code. Modify
11564 the comment.
11565 (setup_hard_regno_nrefs): New function.
11566 (ira): Call it.
11567 * ira-color.cc (calculate_saved_nregs): Check
11568 ira_hard_regno_nrefs.
11569
11570 2025-01-24 yxj-github-437 <[email protected]>
11571
11572 * config/aarch64/aarch64.cc (aarch64_build_builtin_va_list): Mark
11573 __builtin_va_list as TREE_PUBLIC.
11574 * config/arm/arm.cc (arm_build_builtin_va_list): Likewise.
11575
11576 2025-01-24 David Malcolm <[email protected]>
11577
11578 PR sarif-replay/117670
11579 * Makefile.in (SARIF_REPLAY_INSTALL_NAME): New.
11580 (install-libgdiagnostics): Use it,and exeext, rather than just
11581 sarif-replay.
11582
11583 2025-01-24 Richard Biener <[email protected]>
11584
11585 PR tree-optimization/116010
11586 * tree-data-ref.cc (contains_ssa_ref_p_1): New function.
11587 (contains_ssa_ref_p): Likewise.
11588 (dr_may_alias_p): Avoid treating unanalyzed base parts without
11589 SSA reference conservatively.
11590
11591 2025-01-24 Stefan Schulze Frielinghaus <[email protected]>
11592
11593 * config/s390/s390.h (S390_TDC_POSITIVE_ZERO): Remove.
11594 (S390_TDC_NEGATIVE_ZERO): Remove.
11595 (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): Remove.
11596 (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): Remove.
11597 (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): Remove.
11598 (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): Remove.
11599 (S390_TDC_POSITIVE_INFINITY): Remove.
11600 (S390_TDC_NEGATIVE_INFINITY): Remove.
11601 (S390_TDC_POSITIVE_QUIET_NAN): Remove.
11602 (S390_TDC_NEGATIVE_QUIET_NAN): Remove.
11603 (S390_TDC_POSITIVE_SIGNALING_NAN): Remove.
11604 (S390_TDC_NEGATIVE_SIGNALING_NAN): Remove.
11605 (S390_TDC_POSITIVE_DENORMALIZED_DFP_NUMBER): Remove.
11606 (S390_TDC_NEGATIVE_DENORMALIZED_DFP_NUMBER): Remove.
11607 (S390_TDC_POSITIVE_NORMALIZED_DFP_NUMBER): Remove.
11608 (S390_TDC_NEGATIVE_NORMALIZED_DFP_NUMBER): Remove.
11609 (S390_TDC_SIGNBIT_SET): Remove.
11610 (S390_TDC_INFINITY): Remove.
11611 * config/s390/s390.md (signbit<mode>2<tf_fpr>): Merge this one
11612 (isinf<mode>2<tf_fpr>): and this one into
11613 (<TDC_CLASS:tdc_insn><mode>2<tf_fpr>): new expander.
11614 (isnormal<mode>2<tf_fpr>): New BFP expander.
11615 (isnormal<mode>2): New DFP expander.
11616 * config/s390/vector.md (signbittf2_vr): Merge this one
11617 (isinftf2_vr): and this one into
11618 (<tdc_insn>tf2_vr): new expander.
11619 (signbittf2): Merge this one
11620 (isinftf2): and this one into
11621 (<tdc_insn>tf2): new expander.
11622
11623 2025-01-24 Richard Biener <[email protected]>
11624
11625 PR tree-optimization/118634
11626 * tree-ssa-loop-ivcanon.cc (try_unroll_loop_completely):
11627 Dump the number of estimated eliminated insns.
11628
11629 2025-01-24 Saurabh Jha <[email protected]>
11630
11631 * config/aarch64/aarch64-sve2.md:
11632 (*aarch64_pred_faminmax_fused): Fix to use the correct flags.
11633 * config/aarch64/aarch64.h
11634 (TARGET_SVE_FAMINMAX): Remove.
11635 * config/aarch64/iterators.md: Fix iterators so that famax and
11636 famin use correct flags.
11637
11638 2025-01-24 Alexandre Oliva <[email protected]>
11639
11640 PR tree-optimization/118572
11641 * gimple-fold.cc (fold_truth_andor_for_ifcombine): Compare as
11642 unsigned the variables whose extension bits are masked out.
11643
11644 2025-01-24 Alexandre Oliva <[email protected]>
11645
11646 * gimple-fold.cc (fold_truth_andor_for_ifcombine): Document
11647 reversep's absence of effects on range tests. Don't reject
11648 reversep mismatches before trying compare swapping.
11649
11650 2025-01-24 Alexandre Oliva <[email protected]>
11651
11652 PR tree-optimization/118514
11653 * tree-eh.cc (bit_field_ref_in_bounds_p): New.
11654 (tree_could_trap_p) <BIT_FIELD_REF>: Call it.
11655 * gimple-fold.cc (make_bit_field_load): Check trapping status
11656 of replacement load against original load.
11657
11658 2025-01-23 John David Anglin <[email protected]>
11659
11660 * config/pa/pa32-regs.h (ADDITIONAL_REGISTER_NAMES): Change
11661 register 86 name to "%fr31L".
11662
11663 2025-01-23 Jakub Jelinek <[email protected]>
11664
11665 PR tree-optimization/118628
11666 * tree-vect-stmts.cc (vectorizable_store, vectorizable_load):
11667 Initialize offvar to NULL_TREE.
11668
11669 2025-01-23 Georg-Johann Lay <[email protected]>
11670
11671 PR tree-optimization/118012
11672 PR tree-optimization/118360
11673 * config/avr/avr.opt (-mpr118012): New undocumented option.
11674 * config/avr/avr-protos.h (avr_out_sextr)
11675 (avr_emit_skip_pixop, avr_emit_skip_clear): New protos.
11676 * config/avr/avr.cc (avr_adjust_insn_length)
11677 [case ADJUST_LEN_SEXTR]: Handle case.
11678 (avr_rtx_costs_1) [NEG]: Costs for NEG (ZERO_EXTEND (ZERO_EXTRACT)).
11679 [MULT && avropt_pr118012]: Costs for MULT (x AND 1).
11680 (avr_out_sextr, avr_emit_skip_pixop, avr_emit_skip_clear): New
11681 functions.
11682 * config/avr/avr.md [avropt_pr118012]: Add combine patterns with
11683 that condition that try to work around PR118012.
11684 (adjust_len) <sextr>: Add insn attr value.
11685 (pixop): New code iterator.
11686 (mulsi3) [avropt_pr118012 && !AVR_TINY]: Allow these in insn condition.
11687
11688 2025-01-23 Richard Sandiford <[email protected]>
11689
11690 PR rtl-optimization/118562
11691 * rtl-ssa/blocks.cc (function_info::replace_phi): When converting
11692 to a degenerate phi, make sure to remove all uses of the previous
11693 inputs.
11694
11695 2025-01-23 Richard Sandiford <[email protected]>
11696
11697 * config/aarch64/aarch64-tuning-flags.def
11698 (AARCH64_EXTRA_TUNE_CHEAP_FPMR_WRITE): New tuning flag.
11699 * config/aarch64/aarch64.h (TARGET_CHEAP_FPMR_WRITE): New macro.
11700 * config/aarch64/aarch64.md: Split moves into FPMR into a test
11701 and branch around.
11702 (aarch64_write_fpmr): New pattern.
11703
11704 2025-01-23 Richard Sandiford <[email protected]>
11705
11706 * config/aarch64/aarch64.cc (aarch64_memory_move_cost): Account
11707 for the cost of moving in and out of GENERAL_SYSREGS.
11708
11709 2025-01-23 Richard Sandiford <[email protected]>
11710
11711 * config/aarch64/aarch64.md (*mov<SHORT:mode>_aarch64)
11712 (*movsi_aarch64, *movdi_aarch64): Allow the source of an MSR
11713 to be zero.
11714
11715 2025-01-23 Jakub Jelinek <[email protected]>
11716
11717 PR tree-optimization/118605
11718 * tree-assume.cc (assume_query::m_parm_list): Change type
11719 from bitmap & to bitmap.
11720
11721 2025-01-23 Tejas Belagod <[email protected]>
11722
11723 * omp-low.cc (use_pointer_for_field): Use pointer if the OMP data
11724 structure's field type is a poly-int.
11725
11726 2025-01-23 Jakub Jelinek <[email protected]>
11727
11728 PR middle-end/114877
11729 * builtins.cc (fold_builtin_frexp): Handle rvc_nan and rvc_inf cases
11730 like rvc_zero, return passed in arg and set *exp = 0.
11731
11732 2025-01-23 Torbjörn SVENSSON <[email protected]>
11733
11734 * doc/sourcebuild.texi (Effective-Target Keywords): Document
11735 'alarm'.
11736
11737 2025-01-23 Georg-Johann Lay <[email protected]>
11738
11739 PR target/117726
11740 * config/avr/avr.cc (avr_ld_regno_p): New function.
11741 (ashlsi3_out) [case 25,26,27,28,29,30]: Handle and tweak.
11742 (lshrsi3_out): Same.
11743 (avr_rtx_costs_1) [SImode, ASHIFT, LSHIFTRT]: Adjust costs.
11744 * config/avr/avr.md (ashlsi3, *ashlsi3, *ashlsi3_const):
11745 Add "r,r,C4L" alternative.
11746 (lshrsi3, *lshrsi3, *lshrsi3_const): Add "r,r,C4R" alternative.
11747 * config/avr/constraints.md (C4R, C4L): New,
11748
11749 2025-01-23 Richard Biener <[email protected]>
11750
11751 PR tree-optimization/118558
11752 * tree-vectorizer.h (vect_known_alignment_in_bytes): Pass
11753 through offset to dr_misalignment.
11754 * tree-vect-stmts.cc (get_group_load_store_type): Compute
11755 offset applied for negative stride and use it when querying
11756 alignment of accesses.
11757 (vectorizable_load): Likewise.
11758
11759 2025-01-23 Nathaniel Shead <[email protected]>
11760
11761 PR c++/107741
11762 * common.opt: Add -fabi-version=20.
11763 * doc/invoke.texi: Likewise.
11764
11765 2025-01-23 Xi Ruoyao <[email protected]>
11766
11767 PR target/118501
11768 * config/loongarch/loongarch.md (@xorsign<mode>3): Use
11769 force_lowpart_subreg.
11770
11771 2025-01-23 Haochen Jiang <[email protected]>
11772
11773 * config/i386/avx10_2-512convertintrin.h:
11774 Omit "p" for packed for FP8.
11775 * config/i386/avx10_2convertintrin.h: Ditto.
11776
11777 2025-01-23 Haochen Jiang <[email protected]>
11778
11779 PR target/118270
11780 * config/i386/avx10_2-512satcvtintrin.h: Change intrin and
11781 builtin name according to new mnemonics.
11782 * config/i386/avx10_2satcvtintrin.h: Ditto.
11783 * config/i386/i386-builtin.def (BDESC): Ditto.
11784 * config/i386/sse.md
11785 (UNSPEC_VCVTBF162IBS): Rename from UNSPEC_VCVTNEBF162IBS.
11786 (UNSPEC_VCVTBF162IUBS): Rename from UNSPEC_VCVTNEBF162IUBS.
11787 (UNSPEC_VCVTTBF162IBS): Rename from UNSPEC_VCVTTNEBF162IBS.
11788 (UNSPEC_VCVTTBF162IUBS): Rename from UNSPEC_VCVTTNEBF162IUBS.
11789 (UNSPEC_CVTNE_BF16_IBS_ITER): Rename to...
11790 (UNSPEC_CVT_BF16_IBS_ITER): ...this. Adjust UNSPEC name.
11791 (sat_cvt_sign_prefix): Adjust UNSPEC name.
11792 (sat_cvt_trunc_prefix): Ditto.
11793 (avx10_2_cvt<sat_cvt_trunc_prefix>nebf162i<sat_cvt_sign_prefix>bs<mode><mask_name>):
11794 Rename to...
11795 (avx10_2_cvt<sat_cvt_trunc_prefix>bf162i<sat_cvt_sign_prefix>bs<mode><mask_name>):
11796 ...this. Change instruction name output.
11797
11798 2025-01-23 Haochen Jiang <[email protected]>
11799
11800 PR target/118270
11801 * config/i386/avx10_2-512convertintrin.h: Change intrin and
11802 builtin name according to new mnemonics.
11803 * config/i386/avx10_2convertintrin.h: Ditto.
11804 * config/i386/i386-builtin.def (BDESC): Ditto.
11805 * config/i386/sse.md
11806 (UNSPEC_VCVTPH2BF8): Rename from UNSPEC_VCVTNEPH2BF8.
11807 (UNSPEC_VCVTPH2BF8S): Rename from UNSPEC_VCVTNEPH2BF8S.
11808 (UNSPEC_VCVTPH2HF8): Rename from UNSPEC_VCVTNEPH2HF8.
11809 (UNSPEC_VCVTPH2HF8S): Rename from UNSPEC_VCVTNEPH2HF8S.
11810 (UNSPEC_CONVERTPH2FP8): Rename from UNSPEC_NECONVERTPH2FP8.
11811 Adjust UNSPEC name.
11812 (convertph2fp8): Rename from neconvertph2fp8. Adjust
11813 iterator map.
11814 (vcvt<neconvertph2fp8>v8hf): Rename to...
11815 (vcvt<neconvertph2fp8>v8hf): ...this.
11816 (*vcvt<neconvertph2fp8>v8hf): Rename to...
11817 (*vcvt<neconvertph2fp8>v8hf): ...this.
11818 (vcvt<neconvertph2fp8>v8hf_mask): Rename to...
11819 (vcvt<neconvertph2fp8>v8hf_mask): ...this.
11820 (*vcvt<neconvertph2fp8>v8hf_mask): Rename to...
11821 (*vcvt<neconvertph2fp8>v8hf_mask): ...this.
11822 (vcvt<neconvertph2fp8><mode><mask_name>): Rename to...
11823 (vcvt<convertph2fp8><mode><mask_name>): ...this.
11824
11825 2025-01-23 Haochen Jiang <[email protected]>
11826
11827 PR target/118270
11828 * config/i386/avx10_2-512convertintrin.h: Change intrin and
11829 builtin name according to new mnemonics.
11830 * config/i386/avx10_2convertintrin.h: Ditto.
11831 * config/i386/i386-builtin.def (BDESC): Ditto.
11832 * config/i386/sse.md
11833 (UNSPEC_VCVT2PH2BF8): Rename from UNSPEC_VCVTNE2PH2BF8.
11834 (UNSPEC_VCVT2PH2BF8S): Rename from UNSPEC_VCVTNE2PH2BF8S.
11835 (UNSPEC_VCVT2PH2HF8): Rename from UNSPEC_VCVTNE2PH2HF8.
11836 (UNSPEC_VCVT2PH2HF8S): Rename from UNSPEC_VCVTNE2PH2HF8S.
11837 (UNSPEC_CONVERTFP8_PACK): Rename from UNSPEC_NECONVERTFP8_PACK.
11838 Adjust UNSPEC name.
11839 (convertfp8_pack): Rename from neconvertfp8_pack. Adjust
11840 iterator map.
11841 (vcvt<neconvertfp8_pack><mode><mask_name>): Rename to...
11842 (vcvt<convertfp8_pack><mode><mask_name>): ...this.
11843
11844 2025-01-23 Haochen Jiang <[email protected]>
11845
11846 PR target/118270
11847 * config/i386/avx10_2bf16intrin.h: Change intrin and builtin
11848 name according to new mnemonics.
11849 * config/i386/i386-builtin.def (BDESC): Ditto.
11850 * config/i386/i386-expand.cc
11851 (ix86_expand_fp_compare): Adjust comments.
11852 (ix86_expand_builtin): Adjust switch case.
11853 * config/i386/i386.md (cmpibf): Change instruction name output.
11854 * config/i386/sse.md (UNSPEC_VCOMSBF16): Removed.
11855 (avx10_2_comisbf16_v8bf): New.
11856 (avx10_2_comsbf16_v8bf): Removed.
11857
11858 2025-01-23 Haochen Jiang <[email protected]>
11859
11860 PR target/118270
11861 * config/i386/avx10_2-512bf16intrin.h: Change intrin and builtin
11862 name according to new mnemonics.
11863 * config/i386/avx10_2bf16intrin.h: Ditto.
11864 * config/i386/i386-builtin.def (BDESC): Ditto.
11865 * config/i386/sse.md
11866 (UNSPEC_VFPCLASSBF16); Rename from UNSPEC_VFPCLASSPBF16.
11867 (avx10_2_getexppbf16_<mode><mask_name>): Rename to...
11868 (avx10_2_getexpbf16_<mode><mask_name>): ...this.
11869 Change instruction name output.
11870 (avx10_2_fpclasspbf16_<mode><mask_scalar_merge_name>):
11871 Rename to...
11872 (avx10_2_fpclassbf16_<mode><mask_scalar_merge_name>): ...this.
11873 Change instruction name output.
11874
11875 2025-01-23 Haochen Jiang <[email protected]>
11876
11877 PR target/118270
11878 * config/i386/avx10_2-512bf16intrin.h: Change intrin and builtin
11879 name according to new mnemonics.
11880 * config/i386/avx10_2bf16intrin.h: Ditto.
11881 * config/i386/i386-builtin.def (BDESC): Ditto.
11882 * config/i386/sse.md
11883 (UNSPEC_VSCALEFBF16): Rename from UNSPEC_VSCALEFPBF16.
11884 (avx10_2_scalefpbf16_<mode><mask_name>): Rename to...
11885 (avx10_2_scalefbf16_<mode><mask_name>): ...this.
11886 Change instruction name output.
11887 (avx10_2_rsqrtpbf16_<mode><mask_name>): Rename to...
11888 (avx10_2_rsqrtbf16_<mode><mask_name>): ...this.
11889 Change instruction name output.
11890 (avx10_2_sqrtnepbf16_<mode><mask_name>): Rename to...
11891 (avx10_2_sqrtbf16_<mode><mask_name>): ...this.
11892 Change instruction name output.
11893
11894 2025-01-23 Haochen Jiang <[email protected]>
11895
11896 PR target/118270
11897 * config/i386/avx10_2-512bf16intrin.h: Change intrin and builtin
11898 name according to new mnemonics.
11899 * config/i386/avx10_2bf16intrin.h: Ditto.
11900 * config/i386/i386-builtin.def (BDESC): Ditto.
11901 * config/i386/sse.md
11902 (UNSPEC_VRNDSCALEBF16): Rename from UNSPEC_VRNDSCALENEPBF16.
11903 (UNSPEC_VREDUCEBF16): Rename from UNSPEC_VREDUCENEPBF16.
11904 (UNSPEC_VGETMANTBF16): Rename from UNSPEC_VGETMANTPBF16.
11905 (BF16IMMOP): Adjust iterator due to UNSPEC name change.
11906 (bf16immop): Ditto.
11907 (avx10_2_<bf16immop>pbf16_<mode><mask_name>): Rename to...
11908 (avx10_2_<bf16immop>bf16_<mode><mask_name>): ...this. Change
11909 instruction name output.
11910
11911 2025-01-23 Haochen Jiang <[email protected]>
11912
11913 PR target/118270
11914 * config/i386/avx10_2-512minmaxintrin.h: Change intrin and
11915 builtin name according to new mnemonics.
11916 * config/i386/avx10_2minmaxintrin.h: Ditto.
11917 * config/i386/i386-builtin.def (BDESC): Ditto.
11918 * config/i386/sse.md
11919 (UNSPEC_MINMAXBF16): Rename from UNSPEC_MINMAXNEPBF16.
11920 (avx10_2_minmaxnepbf16_<mode><mask_name>): Rename to...
11921 (avx10_2_minmaxbf16_<mode><mask_name>): ...this. Change
11922 instruction name output.
11923
11924 2025-01-23 Haochen Jiang <[email protected]>
11925
11926 PR target/118270
11927 * config/i386/avx10_2-512bf16intrin.h: Change intrin and builtin
11928 name according to new mnemonics.
11929 * config/i386/avx10_2bf16intrin.h: Ditto.
11930 * config/i386/i386-builtin.def (BDESC): Ditto.
11931 * config/i386/sse.md
11932 (avx10_2_<code>pbf16_<mode><mask_name>): Rename to...
11933 (avx10_2_<code>bf16_<mode><mask_name>): ...this.
11934 Change instruction name output.
11935 (avx10_2_cmppbf16_<mode><mask_scalar_merge_name>): Rename to...
11936 (avx10_2_cmpbf16_<mode><mask_scalar_merge_name>): ...this.
11937 Change instruction name output.
11938
11939 2025-01-23 Haochen Jiang <[email protected]>
11940
11941 PR target/118270
11942 * config/i386/avx10_2-512bf16intrin.h: Change intrin and builtin
11943 names according to new mnemonics.
11944 * config/i386/avx10_2bf16intrin.h: Ditto.
11945 * config/i386/i386-builtin.def (BDESC): Ditto.
11946 * config/i386/sse.md
11947 (avx10_2_fmaddnepbf16_<mode>_maskz): Rename to...
11948 (avx10_2_fmaddbf16_<mode>_maskz): ...this. Adjust emit_insn.
11949 (avx10_2_fmaddnepbf16_<mode><sd_maskz_name>): Rename to...
11950 (avx10_2_fmaddbf16_<mode><sd_maskz_name>): ...this.
11951 Change instruction name output.
11952 (avx10_2_fmaddnepbf16_<mode>_mask): Rename to...
11953 (avx10_2_fmaddbf16_<mode>_mask): ...this.
11954 Change instruction name output.
11955 (avx10_2_fmaddnepbf16_<mode>_mask3): Rename to...
11956 (avx10_2_fmaddbf16_<mode>_mask3): ...this.
11957 Change instruction name output.
11958 (avx10_2_fnmaddnepbf16_<mode>_maskz): Rename to...
11959 (avx10_2_fnmaddbf16_<mode>_maskz): ...this. Adjust emit_insn.
11960 (avx10_2_fnmaddnepbf16_<mode><sd_maskz_name>): Rename to...
11961 (avx10_2_fnmaddbf16_<mode><sd_maskz_name>): ...this.
11962 Change instruction name output.
11963 (avx10_2_fnmaddnepbf16_<mode>_mask): Rename to...
11964 (avx10_2_fnmaddbf16_<mode>_mask): ...this.
11965 Change instruction name output.
11966 (avx10_2_fnmaddnepbf16_<mode>_mask3): Rename to...
11967 (avx10_2_fnmaddbf16_<mode>_mask3): ...this.
11968 Change instruction name output.
11969 (avx10_2_fmsubnepbf16_<mode>_maskz): Rename to...
11970 (avx10_2_fmsubbf16_<mode>_maskz): ...this. Adjust emit_insn.
11971 (avx10_2_fmsubnepbf16_<mode><sd_maskz_name>): Rename to...
11972 (avx10_2_fmsubbf16_<mode><sd_maskz_name>): ...this.
11973 Change instruction name output.
11974 (avx10_2_fmsubnepbf16_<mode>_mask): Rename to...
11975 (avx10_2_fmsubbf16_<mode>_mask): ...this.
11976 Change instruction name output.
11977 (avx10_2_fmsubnepbf16_<mode>_mask3): Rename to...
11978 (avx10_2_fmsubbf16_<mode>_mask3): ...this.
11979 Change instruction name output.
11980 (avx10_2_fnmsubnepbf16_<mode>_maskz): Rename to...
11981 (avx10_2_fnmsubbf16_<mode>_maskz): ...this. Adjust emit_insn.
11982 (avx10_2_fnmsubnepbf16_<mode><sd_maskz_name>): Rename to...
11983 (avx10_2_fnmsubbf16_<mode><sd_maskz_name>): ...this.
11984 Change instruction name output.
11985 (avx10_2_fnmsubnepbf16_<mode>_mask): Rename to...
11986 (avx10_2_fnmsubbf16_<mode>_mask): ...this.
11987 Change instruction name output.
11988 (avx10_2_fnmsubnepbf16_<mode>_mask3): Rename to...
11989 (avx10_2_fnmsubbf16_<mode>_mask3): ...this.
11990 Change instruction name output.
11991
11992 2025-01-23 Haochen Jiang <[email protected]>
11993
11994 PR target/118270
11995 * config/i386/avx10_2-512bf16intrin.h: Change intrin and builtin
11996 name according to new mnemonics.
11997 * config/i386/avx10_2bf16intrin.h: Ditto.
11998 * config/i386/i386-builtin.def (BDESC): Ditto.
11999 * config/i386/sse.md (div<mode>3): Adjust emit_insn.
12000 (avx10_2_<insn>nepbf16_<mode><mask_name>): Rename to...
12001 (avx10_2_<insn>bf16_<mode><mask_name>): ...this. Change
12002 instruction name output.
12003 (avx10_2_rcppbf16_<mode><mask_name>): Rename to...
12004 (avx10_2_rcpbf16_<mode><mask_name>):...this. Change
12005 instruction name output.
12006
12007 2025-01-22 Stefan Schulze Frielinghaus <[email protected]>
12008
12009 * config/s390/s390.cc: Fix arch15 machine string which must not
12010 be empty.
12011
12012 2025-01-22 Richard Sandiford <[email protected]>
12013
12014 * config/aarch64/aarch64.md (aarch64_read_sysregti): Change
12015 the source predicate to aarch64_reg_or_zero.
12016
12017 2025-01-22 Xi Ruoyao <[email protected]>
12018
12019 * config/loongarch/loongarch.md
12020 (<optab>_alsl_reversesi_extended): Add '&' to the destination
12021 register constraint and append '0' to the first source register
12022 constraint to indicate the destination register cannot be same
12023 as the second source register, and change the split condition to
12024 reload_completed so that the insn will be split only after RA in
12025 order to obtain allocated registers that satisfy the above
12026 constraints.
12027
12028 2025-01-21 Jeff Law <[email protected]>
12029
12030 Revert:
12031 2024-10-29 yulong <[email protected]>
12032
12033 * config.gcc: Add riscv_cmo.h.
12034 * config/riscv/riscv_cmo.h: New file.
12035
12036 2025-01-21 Andrew Pinski <[email protected]>
12037
12038 PR tree-optimization/118483
12039 * match.pd (`x ==/!= ~x`): Allow for an optional convert
12040 and use itwise_inverted_equal_p/maybe_bit_not instead of
12041 directly matching bit_not.
12042
12043 2025-01-21 Robin Dapp <[email protected]>
12044
12045 * config/riscv/riscv.cc (riscv_file_end): Fix format string.
12046 (riscv_lshift_subword): Mark MODE as unused.
12047
12048 2025-01-21 Georg-Johann Lay <[email protected]>
12049
12050 * config/avr/avr-passes.cc (avr_emit_shift) [ASHIFT,HImode]:
12051 Allow offsets 5 and 6 as 3op provided have MUL and a scratch.
12052 * config/avr/avr.cc (avr_optimize_size_max_p): New function.
12053 (avr_out_ashlhi3_mul): New function.
12054 (ashlhi3_out) [case 4, 5, 6]: Better speed for -Os.
12055 * config/avr/avr.md (isa) <mul, no_mul>: New attr values.
12056 (*ashlhi3_const): Add alternative for offsets 5 and 6.
12057
12058 2025-01-21 Jin Ma <[email protected]>
12059
12060 PR target/116593
12061 * config/riscv/constraints.md (vl): New.
12062 * config/riscv/thead-vector.md: Replacing rK with rvl.
12063 * config/riscv/vector.md: Likewise.
12064
12065 2025-01-21 Denis Chertykov <[email protected]>
12066
12067 * lra-spills.cc (assign_stack_slot_num_and_sort_pseudos): Use known_ge
12068 to compare sizes.
12069
12070 2025-01-21 Jeff Law <[email protected]>
12071
12072 PR target/116256
12073 * config/riscv/predicates.md (consecutive_bits_operand): Properly
12074 handle (const_int 0).
12075
12076 2025-01-21 Alfie Richards <[email protected]>
12077
12078 * config/aarch64/aarch64.opt.urls: Regenerate
12079
12080 2025-01-21 Richard Biener <[email protected]>
12081
12082 PR tree-optimization/118569
12083 * cfgloopmanip.cc (fix_loop_placement): When the loops
12084 nesting parents changed, mark all blocks to be scanned
12085 for LC PHI uses.
12086 (fix_bb_placements): Remove code moved into fix_loop_placement.
12087
12088 2025-01-21 Vladimir Miloserdov <[email protected]>
12089
12090 * config/aarch64/aarch64-c.cc
12091 (aarch64_update_cpp_builtins): Add new flag TARGET_LUT.
12092 * config/aarch64/aarch64-sve-builtins-shapes.cc
12093 (struct luti_base): Shape for lut intrinsics.
12094 (SHAPE): Specializations for lut shapes for luti2 and luti4..
12095 * config/aarch64/aarch64-sve-builtins-shapes.h: Declare lut
12096 intrinsics.
12097 * config/aarch64/aarch64-sve-builtins-sve2.cc
12098 (class svluti_lane_impl): Define expand for lut intrinsics.
12099 (FUNCTION): Define expand for lut intrinsics.
12100 * config/aarch64/aarch64-sve-builtins-sve2.def
12101 (REQUIRED_EXTENSIONS): Declare lut intrinsics behind lut flag.
12102 (svluti2_lane): Define intrinsic behind flag.
12103 (svluti4_lane): Define intrinsic behind flag.
12104 * config/aarch64/aarch64-sve-builtins-sve2.h: Declare lut
12105 intrinsics.
12106 * config/aarch64/aarch64-sve-builtins.cc
12107 (TYPES_bh_data): New type for byte and halfword.
12108 (bh_data): Type array for byte and halfword.
12109 (h_data): Type array for halfword.
12110 * config/aarch64/aarch64-sve2.md
12111 (@aarch64_sve_luti<LUTI_BITS><mode>): Instruction patterns for
12112 lut intrinsics.
12113 * config/aarch64/iterators.md: Iterators and attributes for lut
12114 intrinsics.
12115
12116 2025-01-21 Tamar Christina <[email protected]>
12117
12118 PR middle-end/118273
12119 * tree-vect-stmts.cc (vectorizable_simd_clone_call): Use nvectors when
12120 doing mask registrations.
12121
12122 2025-01-21 Tamar Christina <[email protected]>
12123
12124 * config.gcc (aarch64-*-elf): Drop ILP32 from default multilibs.
12125
12126 2025-01-21 Lulu Cheng <[email protected]>
12127
12128 * config/loongarch/loongarch-protos.h
12129 (loongarch_reset_previous_fndecl): Add function declaration.
12130 (loongarch_save_restore_target_globals): Likewise.
12131 (loongarch_register_pragmas): Likewise.
12132 * config/loongarch/loongarch-target-attr.cc
12133 (loongarch_option_valid_attribute_p): Optimize the processing
12134 of attributes.
12135 (loongarch_pragma_target_parse): New functions.
12136 (loongarch_register_pragmas): Likewise.
12137 * config/loongarch/loongarch.cc
12138 (loongarch_reset_previous_fndecl): New functions.
12139 (loongarch_set_current_function): When the old_tree is the same
12140 as the new_tree, the rules for using registers, etc.,
12141 are set according to the option values to ensure that the
12142 pragma can be processed correctly.
12143 * config/loongarch/loongarch.h (REGISTER_TARGET_PRAGMAS):
12144 Define macro.
12145 * doc/extend.texi: Supplemental Documentation.
12146
12147 2025-01-21 Lulu Cheng <[email protected]>
12148
12149 * attr-urls.def: Regenerate.
12150 * config.gcc: Add loongarch-target-attr.o to extra_objs.
12151 * config/loongarch/loongarch-protos.h
12152 (loongarch_option_valid_attribute_p): Function declaration.
12153 (loongarch_option_override_internal): Likewise.
12154 * config/loongarch/loongarch.cc
12155 (loongarch_option_override_internal): Delete the modifications
12156 to target_option_default_node and target_option_current_node.
12157 (loongarch_set_current_function): Add annotation information.
12158 (loongarch_option_override): add assignment operations to
12159 target_option_default_node and target_option_current_node.
12160 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
12161 * config/loongarch/t-loongarch: Add compilation of target file
12162 loongarch-target-attr.o.
12163 * doc/extend.texi: Add description information of LoongArch
12164 Function Attributes.
12165 * config/loongarch/loongarch-target-attr.cc: New file.
12166
12167 2025-01-21 Alfie Richards <[email protected]>
12168
12169 * config/aarch64/aarch64.cc
12170 (aarch64_process_target_version_attr): Add experimental warning.
12171 * config/aarch64/aarch64.opt: Add command line option to disable
12172 warning.
12173 * doc/invoke.texi: Add documentation for -W[no-]experimental-fmv-target.
12174
12175 2025-01-20 Vladimir N. Makarov <[email protected]>
12176
12177 PR target/118560
12178 * lra-constraints.cc (invalid_mode_reg_p): Exchange args in
12179 hard_reg_set_subset_p call.
12180
12181 2025-01-20 Jeff Law <[email protected]>
12182
12183 PR target/114442
12184 * config/riscv/xiangshan.md: Add missing insn types to a
12185 new dummy insn reservation.
12186
12187 2025-01-20 Jeff Law <[email protected]>
12188
12189 PR target/116256
12190 * config/riscv/riscv.md (reassocating constant addition): Adjust
12191 condition to avoid creating an unrecognizable insn.
12192
12193 2025-01-20 Denis Chertykov <[email protected]>
12194
12195 PR rtl-optimization/117868
12196 * lra-spills.cc (assign_stack_slot_num_and_sort_pseudos): Reuse slots
12197 only without allocated memory or only with equal or smaller registers
12198 with equal or smaller alignment.
12199 (lra_spill): Print slot size as width.
12200
12201 2025-01-20 Richard Sandiford <[email protected]>
12202
12203 PR tree-optimization/118348
12204 * tree-vectorizer.cc (vec_info::move_dr): Copy
12205 STMT_VINFO_SIMD_LANE_ACCESS_P.
12206
12207 2025-01-20 Richard Sandiford <[email protected]>
12208
12209 Revert:
12210 2025-01-20 Richard Sandiford <[email protected]>
12211
12212 PR tree-optimization/118384
12213 * tree-vectorizer.cc (vec_info::move_dr): Copy
12214 STMT_VINFO_SIMD_LANE_ACCESS_P.
12215
12216 2025-01-20 Richard Sandiford <[email protected]>
12217
12218 PR tree-optimization/118384
12219 * tree-vectorizer.cc (vec_info::move_dr): Copy
12220 STMT_VINFO_SIMD_LANE_ACCESS_P.
12221
12222 2025-01-20 Richard Sandiford <[email protected]>
12223
12224 PR target/118501
12225 * config/aarch64/aarch64.md (@xorsign<mode>3): Use
12226 force_lowpart_subreg.
12227
12228 2025-01-20 Richard Sandiford <[email protected]>
12229
12230 PR target/118531
12231 * config/aarch64/aarch64.md (*insv_reg<mode>_<SUBDI_BITS>)
12232 (*aarch64_bfi<GPI:mode><ALLX:mode>_<SUBDI_BITS>)
12233 (*aarch64_bfidi<ALLX:mode>_subreg_<SUBDI_BITS>): Add missing
12234 simd requirements.
12235
12236 2025-01-20 Jin Ma <[email protected]>
12237
12238 * config/riscv/thead.md (*th_cond_mov<GPR:mode><GPR2:mode>):
12239 Change GPR2 to X.
12240 (*th_cond_mov<GPR:mode>): Likewise.
12241
12242 2025-01-20 Andrew Pinski <[email protected]>
12243
12244 PR tree-optimization/118077
12245 PR tree-optimization/117668
12246 * tree-inline.cc (fold_marked_statements): Purge abnormal edges
12247 as needed.
12248
12249 2025-01-20 Richard Biener <[email protected]>
12250
12251 PR tree-optimization/117875
12252 * tree-vect-slp.cc (vect_build_slp_tree_1): Handle SSA copies.
12253
12254 2025-01-20 Xi Ruoyao <[email protected]>
12255
12256 PR target/115921
12257 * config/loongarch/loongarch-protos.h
12258 (loongarch_reassoc_shift_bitwise): New function prototype.
12259 * config/loongarch/loongarch.cc
12260 (loongarch_reassoc_shift_bitwise): Implement.
12261 * config/loongarch/loongarch.md
12262 (*alslsi3_extend_subreg): New define_insn_and_split.
12263 (<any_bitwise:optab>_shift_reverse<X:mode>): New
12264 define_insn_and_split.
12265 (<any_bitwise:optab>_alsl_reversesi_extended): New
12266 define_insn_and_split.
12267 (zero_extend_ashift): Remove as it's just a special case of
12268 and_shift_reversedi, and it does not make too much sense to
12269 write "alsl.d rd,rs,r0,shamt" instead of "slli.d rd,rs,shamt".
12270 (bstrpick_alsl_paired): Remove as it is already done by
12271 splitting and_shift_reversedi into and + ashift first, then
12272 late combining the ashift and a further add.
12273
12274 2025-01-20 Xi Ruoyao <[email protected]>
12275
12276 * config/loongarch/constraints.md (Yy): New define_constriant.
12277 * config/loongarch/loongarch.cc (loongarch_print_operand):
12278 For "%M", output the index of bits to be used with
12279 bstrins/bstrpick.
12280 * config/loongarch/predicates.md (ins_zero_bitmask_operand):
12281 Exclude low_bitmask_operand as for low_bitmask_operand it's
12282 always better to use bstrpick instead of bstrins.
12283 (and_operand): New define_predicate.
12284 * config/loongarch/loongarch.md (any_or): New
12285 define_code_iterator.
12286 (bitwise_operand): New define_code_attr.
12287 (*<optab:any_or><mode:GPR>3): New define_insn.
12288 (*and<mode:GPR>3): New define_insn.
12289 (<optab:any_bitwise><mode:X>3): New define_expand.
12290 (and<mode>3_extended): Remove, replaced by the 3rd alternative
12291 of *and<mode:GPR>3.
12292 (bstrins_<mode>_for_mask): Remove, replaced by the 4th
12293 alternative of *and<mode:GPR>3.
12294 (*<optab:any_bitwise>si3_internal): Remove, already covered by
12295 the *<optab:any_or><mode:GPR>3 and *and<mode:GPR>3 templates.
12296
12297 2025-01-20 Richard Biener <[email protected]>
12298
12299 PR tree-optimization/118552
12300 * cfgloopmanip.cc (fix_loop_placement): Properly mark
12301 exit source blocks as to be scanned for LC SSA update when
12302 the loops nesting relationship changed.
12303 (fix_loop_placements): Adjust.
12304 (fix_bb_placements): Likewise.
12305
12306 2025-01-20 Thomas Schwinge <[email protected]>
12307
12308 * config/nvptx/t-nvptx (MULTILIB_OPTIONS): Don't add 'mptx=3.1' if
12309 neither sm_30 nor sm_35 multilib variant is built.
12310
12311 2025-01-20 Jakub Jelinek <[email protected]>
12312
12313 PR c++/118509
12314 * tree.cc (tree_invariant_p_1): Return true for TARGET_EXPR too.
12315
12316 2025-01-20 Jakub Jelinek <[email protected]>
12317
12318 PR tree-optimization/118224
12319 * tree-ssa-dce.cc (is_removable_allocation_p): Multiply a1 by a2
12320 instead of adding it.
12321
12322 2025-01-20 Stefan Schulze Frielinghaus <[email protected]>
12323
12324 * config/s390/s390-builtins.def (s390_vec_load_len): Deprecate
12325 some overloads.
12326 (s390_vec_store_len): Deprecate some overloads.
12327 (s390_vec_load_len_r): Add.
12328 (s390_vec_store_len_r): Add.
12329 * config/s390/s390-c.cc (s390_vec_load_len_r): Add.
12330 (s390_vec_store_len_r): Add.
12331 * config/s390/vecintrin.h (vec_load_len_r): Redefine.
12332 (vec_store_len_r): Redefine.
12333
12334 2025-01-20 Stefan Schulze Frielinghaus <[email protected]>
12335
12336 * config/s390/s390-builtins.def: Add 128-bit variants.
12337 * config/s390/s390-builtin-types.def: Update accordingly.
12338 * config/s390/vector.md (<vec_shifts_name><mode>3): Add 128-bit
12339 variants.
12340 * config/s390/vx-builtins.md: Ditto.
12341
12342 2025-01-20 Stefan Schulze Frielinghaus <[email protected]>
12343
12344 * config/s390/s390-builtins.def: Add 128-bit variants and remove
12345 bool variants.
12346 * config/s390/s390-builtin-types.def: Update accordinly.
12347 * config/s390/s390.md: Emulate min/max for GPR.
12348 * config/s390/vector.md: Add min/max patterns and emulate in
12349 case of no VXE3.
12350
12351 2025-01-20 Stefan Schulze Frielinghaus <[email protected]>
12352
12353 * config/s390/s390-builtins.def (s390_vec_abs_s128): Add.
12354 (s390_vlpq): Add.
12355 * config/s390/s390-builtin-types.def: Update accordingly.
12356 * config/s390/vector.md (abs<mode>2): Emulate w/o VXE3.
12357 (*abs<mode>2): Add 128-bit variant.
12358 (*vec_sel0<mode>): Make it a ...
12359 (vec_sel0<mode>): named pattern.
12360
12361 2025-01-20 Stefan Schulze Frielinghaus <[email protected]>
12362
12363 * config/s390/s390-builtins.def: Add 128-bit variants.
12364 * config/s390/s390-builtin-types.def: Update accordingly.
12365 * config/s390/s390.cc (s390_expand_vec_compare_cc): Also
12366 consider TI modes for vectors.
12367 * config/s390/vector.md: Enable *vec_cmp et al. for VXE3.
12368 * config/s390/vx-builtins.md: Ditto.
12369
12370 2025-01-20 Stefan Schulze Frielinghaus <[email protected]>
12371
12372 * config/s390/vector.md (div<mode>3): Add.
12373 (udiv<mode>3): Add.
12374 (mod<mode>3): Add.
12375 (umod<mode>3): Add.
12376
12377 2025-01-20 Stefan Schulze Frielinghaus <[email protected]>
12378
12379 * config/s390/s390-builtins.def (s390_vec_cntlz): Add 128-bit
12380 integer overloads.
12381 (s390_vclzq): Add.
12382 (s390_vec_cnttz): Add 128-bit integer overloads.
12383 (s390_vctzq): Add.
12384 * config/s390/s390-builtin-types.def: Update accordingly.
12385 * config/s390/s390.h (CTZ_DEFINED_VALUE_AT_ZERO): Define.
12386 * config/s390/s390.md (*clzg): New insn.
12387 (clztidi2): Exploit new insn for target arch15.
12388 (ctzdi2): New insn.
12389 * config/s390/vector.md (clz<mode>2): Extend modes including
12390 128-bit integer.
12391 (ctz<mode>2): Likewise.
12392
12393 2025-01-20 Stefan Schulze Frielinghaus <[email protected]>
12394
12395 * config/s390/s390-builtins.def (s390_vec_gen_element_masks_128): Add.
12396 (s390_vgemb): Add.
12397 (s390_vgemh): Add.
12398 (s390_vgemf): Add.
12399 (s390_vgemg): Add.
12400 (s390_vgemq): Add.
12401 * config/s390/s390-builtin-types.def: Update accordingly.
12402 * config/s390/s390.md (UNSPEC_VEC_VGEM): Add.
12403 * config/s390/vecintrin.h (vec_gen_element_masks_8): Define.
12404 (vec_gen_element_masks_16): Define.
12405 (vec_gen_element_masks_32): Define.
12406 (vec_gen_element_masks_64): Define.
12407 (vec_gen_element_masks_128): Define.
12408 * config/s390/vx-builtins.md (vgemv16qi): Add.
12409 (vgem<mode>): Add.
12410
12411 2025-01-20 Stefan Schulze Frielinghaus <[email protected]>
12412
12413 * config/s390/s390-builtins.def (s390_vec_evaluate): Add.
12414 (s390_veval): Add.
12415 * config/s390/s390-builtin-types.def: Update accordingly.
12416 * config/s390/s390.md (UNSPEC_VEC_VEVAL): Add.
12417 * config/s390/vecintrin.h (vec_evaluate): Define.
12418 * config/s390/vector.md
12419 (*veval<mode>_<logic_op1:logic_op_stringify><logic_op2:logic_op_stringify>):
12420 Add.
12421 (veval<mode>): Add.
12422
12423 2025-01-20 Stefan Schulze Frielinghaus <[email protected]>
12424
12425 * config/s390/s390-builtins.def (s390_vec_blend): Add.
12426 (s390_vblendb): Add.
12427 (s390_vblendh): Add.
12428 (s390_vblendf): Add.
12429 (s390_vblendg): Add.
12430 (s390_vblendq): Add.
12431 * config/s390/s390-builtin-types.def: Update accordingly.
12432 * config/s390/s390.md (UNSPEC_VEC_VBLEND): Add.
12433 * config/s390/vecintrin.h (vec_blend): Define.
12434 * config/s390/vx-builtins.md (vblend<mode>): Add.
12435
12436 2025-01-20 Stefan Schulze Frielinghaus <[email protected]>
12437
12438 * config/s390/s390-builtins.def (s390_bdepg): Add.
12439 (s390_bextg): Add.
12440 * config/s390/s390-builtin-types.def: Update accordingly.
12441 * config/s390/s390.md (UNSPEC_BDEPG): Add.
12442 (UNSPEC_BEXTG): Add.
12443 (bdepg): Add.
12444 (bextg): Add.
12445
12446 2025-01-20 Stefan Schulze Frielinghaus <[email protected]>
12447
12448 * config/s390/s390.md (*lxa<LXAMODE>_index): Add.
12449 (*lxa<LXAMODE>_displacement_index): Add.
12450 (*lxa<LXAMODE>_index_base): Add.
12451 (*lxa<LXAMODE>_displacement_index_base): Add.
12452 (*lxab_displacement_index_base): Add.
12453 (*llxa<LXAMODE>_displacement_index): Add.
12454 (*llxa<LXAMODE>_index_base): Add.
12455 (*llxa<LXAMODE>_displacement_index_base): Add.
12456 (*llxab_displacement_index_base): Add.
12457
12458 2025-01-20 Stefan Schulze Frielinghaus <[email protected]>
12459
12460 * config/s390/s390-builtins.def: Add new instruction variants.
12461 * config/s390/s390-builtin-types.def: Update accordingly.
12462 * config/s390/vecintrin.h: Add new defines.
12463 * config/s390/vector.md: Adapt insns for new instruction
12464 variants.
12465 * config/s390/vx-builtins.md: Ditto.
12466
12467 2025-01-20 Stefan Schulze Frielinghaus <[email protected]>
12468
12469 * config/s390/s390-builtins.def (B_VXE3): Define.
12470 (B_ARCH15): Define.
12471 * config/s390/s390-c.cc (s390_resolve_overloaded_builtin):
12472 Consistency checks for VXE3.
12473 * config/s390/s390.cc (s390_expand_builtin): Consistency checks
12474 for VXE3.
12475
12476 2025-01-20 Stefan Schulze Frielinghaus <[email protected]>
12477
12478 * config/s390/s390-c.cc (rid_int128): New helper function.
12479 (s390_macro_to_expand): Deal with `vector __int128`.
12480 (s390_cpu_cpp_builtins_internal): Bump __VEC__.
12481 * config/s390/s390.cc (s390_handle_vectorbool_attribute): Add
12482 128-bit bool zvector.
12483
12484 2025-01-20 Stefan Schulze Frielinghaus <[email protected]>
12485
12486 * common/config/s390/s390-common.cc: Add arch15 processor flags.
12487 * config.gcc: Add arch15 for options --with-{arch,mtune}.
12488 * config/s390/driver-native.cc (s390_host_detect_local_cpu):
12489 Default to arch15.
12490 * config/s390/s390-opts.h (enum processor_type): Add
12491 PROCESSOR_ARCH15.
12492 * config/s390/s390.cc (processor_table,s390_issue_rate,
12493 s390_get_sched_attrmask,s390_get_unit_mask): Add arch15.
12494 * config/s390/s390.h (enum processor_flags): Add processor flags
12495 for VXE3 and ARCH15.
12496 (TARGET_CPU_VXE3): Define.
12497 (TARGET_CPU_VXE3_P): Define.
12498 (TARGET_CPU_ARCH15): Define.
12499 (TARGET_CPU_ARCH15_P): Define.
12500 (TARGET_VXE3): Define.
12501 (TARGET_VXE3_P): Define.
12502 (TARGET_ARCH15): Define.
12503 (TARGET_ARCH15_P): Define.
12504 * config/s390/s390.md: Add VXE3 and ARCH15 to cpu_facility, and
12505 let attribute "enabled" deal with them.
12506 * config/s390/s390.opt: Add arch15.
12507
12508 2025-01-20 Stefan Schulze Frielinghaus <[email protected]>
12509
12510 * config/s390/vecintrin.h: Sort definitions.
12511
12512 2025-01-20 Stefan Schulze Frielinghaus <[email protected]>
12513
12514 * config/s390/vector.md: Stay scalar for TOINTVEC/tointvec.
12515
12516 2025-01-20 Kito Cheng <[email protected]>
12517
12518 * config.gcc (riscv*): Install sifive_vector.h.
12519 * config/riscv/sifive_vector.h: New.
12520
12521 2025-01-20 Hongyu Wang <[email protected]>
12522
12523 PR target/118510
12524 * config/i386/i386.md (*x86_64_shld_ndd_2): Use register_operand
12525 for operand[0] and adjust the output template to directly
12526 generate ndd form shld pattern.
12527 (*x86_shld_ndd_2): Likewise.
12528 (*x86_64_shrd_ndd_2): Likewise.
12529 (*x86_shrd_ndd_2): Likewise.
12530
12531 2025-01-19 Uros Bizjak <[email protected]>
12532
12533 * config/i386/i386.md (*movdi_internal): Reorder ISA attribute
12534 by ascending alternative index.
12535
12536 2025-01-19 Mark Wielaard <[email protected]>
12537
12538 * config/sparc/sparc.opt.urls: Regenerated.
12539
12540 2025-01-19 Gerald Pfeifer <[email protected]>
12541
12542 * doc/gm2.texi (Type compatibility): Move modula2.org link
12543 to https.
12544
12545 2025-01-19 Gerald Pfeifer <[email protected]>
12546
12547 * doc/extend.texi (OpenMP): Adjust link to specifications.
12548
12549 2025-01-18 Jeff Law <[email protected]>
12550
12551 PR target/116308
12552 * config/riscv/riscv.cc (riscv_lshift_subword): Use gen_lowpart
12553 rather than simplify_gen_subreg.
12554
12555 2025-01-18 Michal Jires <[email protected]>
12556
12557 * cgraph.cc (symbol_table::create_empty):
12558 Move uid to symtab_node.
12559 (test_symbol_table_test): Change expected dump id.
12560 * cgraph.h (struct cgraph_node):
12561 Move uid to symtab_node.
12562 (symbol_table::register_symbol): Likewise.
12563 * dumpfile.cc (test_capture_of_dump_calls):
12564 Change expected dump id.
12565 * ipa-inline.cc (update_caller_keys):
12566 Use summary id instead of uid.
12567 (update_callee_keys): Likewise.
12568 * symtab.cc (symtab_node::get_dump_name):
12569 Use uid instead of order.
12570
12571 2025-01-18 Eric Botcazou <[email protected]>
12572
12573 PR target/118512
12574 * config/sparc/sparc-c.cc (sparc_target_macros): Deal with VIS 3B.
12575 * config/sparc/sparc.cc (dump_target_flag_bits): Likewise.
12576 (sparc_option_override): Likewise.
12577 (sparc_vis_init_builtins): Likewise.
12578 * config/sparc/sparc.md (fpcmp_vis): Replace TARGET_VIS3 with
12579 TARGET_VIS3B.
12580 (vec_cmp): Likewise.
12581 (fpcmpu_vis): Likewise.
12582 (vec_cmpu): Likewise.
12583 (vcond_mask_): Likewise.
12584 * config/sparc/sparc.opt (VIS3B): New target mask.
12585 * doc/invoke.texi (SPARC options): Document -mvis3b.
12586
12587 2025-01-18 Jin Ma <[email protected]>
12588
12589 PR target/118357
12590 * config/riscv/riscv-vsetvl.cc: Function change_vtype_only_p always
12591 returns false for XTheadVector.
12592
12593 2025-01-18 Richard Biener <[email protected]>
12594
12595 PR tree-optimization/118529
12596 * tree-vect-stmts.cc (vectorizable_condition): Check the
12597 shape of the vector and condition vector type are compatible.
12598
12599 2025-01-18 Georg-Johann Lay <[email protected]>
12600
12601 * doc/invoke.texi (AVR Options): Fix plenk at -msplit-ldst.
12602
12603 2025-01-18 Akram Ahmad <[email protected]>
12604 Tamar Christina <[email protected]>
12605
12606 * config/aarch64/aarch64-builtins.cc: Expand iterators.
12607 * config/aarch64/aarch64-simd-builtins.def: Use standard names
12608 * config/aarch64/aarch64-simd.md: Use standard names, split insn
12609 definitions on signedness of operator and type of operands.
12610 * config/aarch64/arm_neon.h: Use standard builtin names.
12611 * config/aarch64/iterators.md: Add VSDQ_I_QI_HI iterator to
12612 simplify splitting of insn for unsigned scalar arithmetic.
12613
12614 2025-01-18 Akram Ahmad <[email protected]>
12615
12616 * config/aarch64/aarch64-sve.md: Rename insns
12617
12618 2025-01-18 Tamar Christina <[email protected]>
12619
12620 Revert:
12621 2025-01-17 Tamar Christina <[email protected]>
12622
12623 * config/aarch64/aarch64-builtins.cc: Expand iterators.
12624 * config/aarch64/aarch64-simd-builtins.def: Use standard names
12625 * config/aarch64/aarch64-simd.md: Use standard names, split insn
12626 definitions on signedness of operator and type of operands.
12627 * config/aarch64/arm_neon.h: Use standard builtin names.
12628 * config/aarch64/iterators.md: Add VSDQ_I_QI_HI iterator to
12629 simplify splitting of insn for unsigned scalar arithmetic.
12630
12631 2025-01-18 Tamar Christina <[email protected]>
12632
12633 Revert:
12634 2025-01-17 Tamar Christina <[email protected]>
12635
12636 * config/aarch64/aarch64-sve.md: Rename insns
12637
12638 2025-01-18 Monk Chiang <[email protected]>
12639
12640 * config/riscv/riscv.cc: Remove unused variable.
12641
12642 2025-01-18 Xi Ruoyao <[email protected]>
12643
12644 * config/loongarch/loongarch.cc (loongarch_rtx_costs): Fix the
12645 cost for (a + b * imm) and (a + (b << imm)) which can be
12646 implemented with a single alsl instruction.
12647
12648 2025-01-18 Xi Ruoyao <[email protected]>
12649
12650 * config/loongarch/loongarch.md (alslsi3_extend): Add alsl.wu.
12651
12652 2025-01-17 Vladimir N. Makarov <[email protected]>
12653
12654 PR rtl-optimization/118067
12655 * lra-constraints.cc (invalid_mode_reg_p): New function.
12656 (curr_insn_transform): Use it to check mode returned by target
12657 secondary_memory_needed_mode.
12658
12659 2025-01-17 Jakub Jelinek <[email protected]>
12660
12661 PR target/118511
12662 * config/s390/s390.cc (print_operand) <case 'p'>: Use
12663 output_operand_lossage instead of gcc_checking_assert.
12664 (print_operand) <case 'q'>: Likewise.
12665 (print_operand) <case 'r'>: Likewise.
12666
12667 2025-01-17 Tamar Christina <[email protected]>
12668
12669 * config/aarch64/aarch64-sve.md: Rename insns
12670
12671 2025-01-17 Tamar Christina <[email protected]>
12672
12673 * config/aarch64/aarch64-builtins.cc: Expand iterators.
12674 * config/aarch64/aarch64-simd-builtins.def: Use standard names
12675 * config/aarch64/aarch64-simd.md: Use standard names, split insn
12676 definitions on signedness of operator and type of operands.
12677 * config/aarch64/arm_neon.h: Use standard builtin names.
12678 * config/aarch64/iterators.md: Add VSDQ_I_QI_HI iterator to
12679 simplify splitting of insn for unsigned scalar arithmetic.
12680
12681 2025-01-17 Carl Love <[email protected]>
12682
12683 * config/rs6000/rs6000-builtins.def (__builtin_vsx_xvcvuxwdp):
12684 Remove built-in definition.
12685
12686 2025-01-17 Carl Love <[email protected]>
12687
12688 * config/rs6000/rs6000-builtins.def (__builtin_vsx_vperm_8hi,
12689 __builtin_vsx_vperm_8hi_uns): Remove built-in definitions.
12690
12691 2025-01-17 Carl Love <[email protected]>
12692
12693 * doc/extend.texi: Fix spelling mistake in description of the
12694 vec_sel built-in. Add documentation of the 128-bit vec_perm
12695 instance.
12696
12697 2025-01-17 Georg-Johann Lay <[email protected]>
12698
12699 * config/avr/avr-c.cc (DEF_BUILTIN): Add ATTRS argument to macro
12700 definition.
12701 * config/avr/avr.cc: Same.
12702 (avr_init_builtins) <attr_const>: New variable that can be used
12703 as ATTRS argument in DEF_BUILTIN.
12704 * config/avr/builtins.def (DEF_BUILTIN): Add ATTRS parameter
12705 to all definitions.
12706
12707 2025-01-17 Georg-Johann Lay <[email protected]>
12708
12709 PR target/118329
12710 * config/avr/avr-modes.def: Add INT_N (PSI, 24).
12711 * config/avr/avr.cc (avr_init_builtin_int24)
12712 <__int24>: Remove definition.
12713 <__uint24>: Adjust definition to INT_N interface.
12714
12715 2025-01-17 Jakub Jelinek <[email protected]>
12716
12717 PR tree-optimization/118522
12718 * match.pd ((FTYPE) N CMP (FTYPE) M): Add convert, as in GENERIC
12719 integral types with the same precision and sign might actually not
12720 be compatible types.
12721
12722 2025-01-17 Richard Biener <[email protected]>
12723
12724 PR tree-optimization/92539
12725 * tree-ssa-loop-ivcanon.cc (tree_unroll_loops_completely_1):
12726 Also try force-evaluation if ivcanon did not yet run.
12727 (canonicalize_loop_induction_variables):
12728 When niter was computed constant by force evaluation add a
12729 canonical IV if we didn't unroll.
12730 * tree-ssa-loop-niter.cc (loop_niter_by_eval): When we
12731 don't find a proper PHI try if the exit condition scans
12732 over a STRING_CST and simulate that.
12733
12734 2025-01-17 Monk Chiang <[email protected]>
12735
12736 * config/riscv/riscv.cc
12737 (is_zicfilp_p): New function.
12738 (is_zicfiss_p): New function.
12739 * config/riscv/riscv-zicfilp.cc: Update.
12740 * config/riscv/riscv.h: Update.
12741 * config/riscv/riscv.md: Update.
12742 * config/riscv/riscv-c.cc: Add CFI predefine marco.
12743
12744 2025-01-17 Monk Chiang <[email protected]>
12745
12746 * config/riscv/riscv.cc
12747 (riscv_file_end): Add .note.gnu.property.
12748
12749 2025-01-17 Monk Chiang <[email protected]>
12750
12751 * common/config/riscv/riscv-common.cc: Add ZICFILP ISA
12752 string.
12753 * config.gcc: Add riscv-zicfilp.o
12754 * config/riscv/riscv-passes.def (INSERT_PASS_BEFORE):
12755 Insert landing pad instructions.
12756 * config/riscv/riscv-protos.h (make_pass_insert_landing_pad):
12757 Declare.
12758 * config/riscv/riscv-zicfilp.cc: New file.
12759 * config/riscv/riscv.cc
12760 (riscv_trampoline_init): Add landing pad instructions.
12761 (riscv_legitimize_call_address): Likewise.
12762 (riscv_output_mi_thunk): Likewise.
12763 * config/riscv/riscv.h: Update.
12764 * config/riscv/riscv.md: Add landing pad patterns.
12765 * config/riscv/riscv.opt (TARGET_ZICFILP): Define.
12766 * config/riscv/t-riscv: Add build rule for
12767 riscv-zicfilp.o
12768
12769 2025-01-17 Monk Chiang <[email protected]>
12770
12771 * common/config/riscv/riscv-common.cc: Add ZICFISS ISA string.
12772 * config/riscv/predicates.md: New predicate x1x5_operand.
12773 * config/riscv/riscv.cc
12774 (riscv_expand_prologue): Insert shadow stack instructions.
12775 (riscv_expand_epilogue): Likewise.
12776 (riscv_for_each_saved_reg): Assign t0 or ra register for
12777 sspopchk instruction.
12778 (need_shadow_stack_push_pop_p): New function. Omit shadow
12779 stack operation on leaf function.
12780 * config/riscv/riscv.h
12781 (need_shadow_stack_push_pop_p): Define.
12782 * config/riscv/riscv.md: Add shadow stack patterns.
12783 (save_stack_nonlocal): Add shadow stack instructions for setjump.
12784 (restore_stack_nonlocal): Add shadow stack instructions for longjump.
12785 * config/riscv/riscv.opt (TARGET_ZICFISS): Define.
12786
12787 2025-01-16 Tamar Christina <[email protected]>
12788 Richard Sandiford <[email protected]>
12789
12790 PR target/113257
12791 * config/aarch64/driver-aarch64.cc (get_cpu_from_id, DEFAULT_CPU): New.
12792 (host_detect_local_cpu): Use it.
12793
12794 2025-01-16 Tamar Christina <[email protected]>
12795
12796 PR target/110901
12797 * config/aarch64/aarch64.h (MCPU_TO_MARCH_SPEC): Don't override if
12798 march is set.
12799
12800 2025-01-16 Vladimir N. Makarov <[email protected]>
12801
12802 PR rtl-optimization/1180167
12803 * lra-constraints.cc (process_alt_operands): Use operand mode not
12804 subreg reg mode. Add and improve debugging prints for updating
12805 losers.
12806
12807 2025-01-16 Sandra Loosemore <[email protected]>
12808
12809 * omp-general.cc (omp_complete_construct_context): Check
12810 "omp declare target" attribute, not "omp declare target block".
12811
12812 2025-01-16 Peter Bergner <[email protected]>
12813
12814 * config/rs6000/rs6000-builtin.cc (rs6000_expand_builtin): Return
12815 const0_rtx when there is an error.
12816
12817 2025-01-16 Peter Bergner <[email protected]>
12818
12819 * config/rs6000/rs6000-builtin.cc (rs6000_expand_builtin): Use correct
12820 array size for the loop limit.
12821 * config/rs6000/rs6000-builtins.def: Fix field size for PMASK operand.
12822
12823 2025-01-16 Liao Shihua <[email protected]>
12824
12825 * config/riscv/vector.md: New attr set.
12826
12827 2025-01-16 Jiawei <[email protected]>
12828
12829 * config/riscv/genrvv-type-indexer.cc (expand_floattype): New func.
12830 (main): New type.
12831 * config/riscv/riscv-vector-builtins-types.def (DEF_RVV_XFQF_OPS): New def.
12832 (vint8mf8_t): Ditto.
12833 (vint8mf4_t): Ditto.
12834 (vint8mf2_t): Ditto.
12835 (vint8m1_t): Ditto.
12836 (vint8m2_t): Ditto.
12837 * config/riscv/riscv-vector-builtins.cc (DEF_RVV_XFQF_OPS): Ditto.
12838 (rvv_arg_type_info::get_xfqf_float_type): Ditto.
12839 * config/riscv/riscv-vector-builtins.def (xfqf_vector): Ditto.
12840 (xfqf_float): Ditto.
12841 * config/riscv/riscv-vector-builtins.h
12842 (struct rvv_arg_type_info): New function prototype.
12843 * config/riscv/sifive-vector.md: Update iterator.
12844 * config/riscv/vector-iterators.md: Ditto.
12845
12846 2025-01-16 Christoph Müllner <[email protected]>
12847
12848 PR tree-optimization/118487
12849 * tree-ssa-forwprop.cc (recognise_vec_perm_simplify_seq):
12850 Ensure that shuffle masks are VECTOR_CSTs.
12851
12852 2025-01-16 Christoph Müllner <[email protected]>
12853
12854 * tree-ssa-forwprop.cc (recognise_vec_perm_simplify_seq):
12855 Eliminate redundant calls to to_constant().
12856
12857 2025-01-16 Richard Biener <[email protected]>
12858 Mikael Morin <[email protected]>
12859
12860 PR tree-optimization/115494
12861 * tree-ssa-pre.cc (phi_translate_1): Always generate a
12862 representative for translated dependent expressions.
12863
12864 2025-01-16 Jakub Jelinek <[email protected]>
12865
12866 PR tree-optimization/118430
12867 * tree-ssa-propagate.cc (may_propagate_copy): Return false if dest
12868 is lhs of an [[gnu::musttail]] call.
12869 (substitute_and_fold_dom_walker::before_dom_children): Formatting fix.
12870
12871 2025-01-16 Jakub Jelinek <[email protected]>
12872 Andrew Pinski <[email protected]>
12873
12874 PR tree-optimization/118430
12875 * tree-tailcall.cc: Include gimple-range.h, alloc-pool.h, sreal.h,
12876 symbol-summary.h, ipa-cp.h and ipa-prop.h.
12877 (find_tail_calls): If ass_var is NULL and ret_var is not, check if
12878 IPA-VRP has not found singleton return range for it. In that case,
12879 don't punt if ret_var is the only value in that range. Adjust the
12880 maybe_error_musttail message otherwise to diagnose different value
12881 being returned from the caller and callee rather than using return
12882 slot. Formatting fixes.
12883
12884 2025-01-16 Jakub Jelinek <[email protected]>
12885
12886 * doc/extend.texi (Using Assembly Language with C): Add Asm constexprs
12887 to @menu.
12888 (Basic Asm): Move @node asm constexprs before Asm Labels, rename to
12889 Asm constexprs, change wording so that it is clearer that the constant
12890 expression actually must not return a string literal, just some specific
12891 container and other wording tweaks. Only talk about top-level for basic
12892 asms in this @node, move restrictions on top-level extended asms to ...
12893 (Extended Asm): ... here.
12894
12895 2025-01-16 Jakub Jelinek <[email protected]>
12896
12897 PR ipa/118400
12898 * vec.h (vec<T, va_heap, vl_ptr>::release): Call m_vec->truncate (0)
12899 instead of clearing m_vec->m_vecpfx.m_num.
12900
12901 2025-01-16 liuhongt <[email protected]>
12902
12903 PR target/118489
12904 * config/i386/sse.md (VF1_AVX512BW): Fix typo.
12905
12906 2025-01-16 Richard Biener <[email protected]>
12907
12908 PR tree-optimization/115895
12909 * tree-vect-stmts.cc (get_group_load_store_type): When we
12910 might overrun because the group size is not a multiple of the
12911 vector size we cannot use loop masking since that does not
12912 implement the required load shortening.
12913
12914 2025-01-16 Keith Packard <[email protected]>
12915
12916 * config/lm32/lm32.cc: Add several #includes.
12917 (va_list_type): New.
12918 (lm32_build_va_list): New function.
12919 (lm32_builtin_va_start): Likewise.
12920 (lm32_sd_gimplify_va_arg_expr): Likewise.
12921 (lm32_gimplify_va_arg_expr): Likewise.
12922
12923 2025-01-16 Keith Packard <[email protected]>
12924
12925 * config/lm32/lm32.cc (setup_incoming_varargs): Adjust the
12926 conditionals so that pretend_size is always computed, even
12927 if no_rtl is set.
12928
12929 2025-01-16 Keith Packard <[email protected]>
12930
12931 * config/lm32/lm32.cc (lm32_setup_incoming_varargs): Skip last
12932 named parameter when preparing to flush registers with unnamed
12933 arguments to th stack.
12934
12935 2025-01-16 Keith Packard <[email protected]>
12936
12937 * config/lm32/lm32.cc (lm32_function_arg): Pass unnamed
12938 arguments in registers too, just like named arguments.
12939
12940 2025-01-16 Andi Kleen <[email protected]>
12941
12942 * config/i386/x86-tune-sched-core.cc: Fix incorrect comment.
12943
12944 2025-01-16 Eugene Rozenfeld <[email protected]>
12945
12946 PR gcov-profile/116743
12947 * auto-profile.cc (afdo_annotate_cfg): Fix mismatch between the call graph node count
12948 and the entry block count.
12949
12950 2025-01-15 Andrew Pinski <[email protected]>
12951
12952 PR tree-optimization/102705
12953 * match.pd (`(1 >> X) != 0`): Remove pattern.
12954 (`1 >> x`): New pattern.
12955
12956 2025-01-15 Sam James <[email protected]>
12957
12958 * doc/extend.texi: Cleanup trailing whitespace.
12959
12960 2025-01-15 Sam James <[email protected]>
12961
12962 * doc/extend.texi: Add 'a' for grammar fix.
12963
12964 2025-01-15 Wilco Dijkstra <[email protected]>
12965
12966 * config/aarch64/tuning_models/neoverse512tvb.h (tune_flags): Update.
12967
12968 2025-01-15 Wilco Dijkstra <[email protected]>
12969
12970 * config/aarch64/aarch64-tuning-flags.def (AARCH64_EXTRA_TUNE_BASE):
12971 Add AARCH64_EXTRA_TUNE_FULLY_PIPELINED_FMA.
12972 * config/aarch64/tuning_models/ampere1b.h: Remove redundant
12973 AARCH64_EXTRA_TUNE_FULLY_PIPELINED_FMA.
12974 * config/aarch64/tuning_models/neoversev2.h: Likewise.
12975
12976 2025-01-15 Wilco Dijkstra <[email protected]>
12977
12978 * config/aarch64/aarch64.cc (aarch64_override_options): Add warning.
12979 * doc/invoke.texi: Document -mabi=ilp32 as deprecated.
12980
12981 2025-01-15 Cupertino Miranda <[email protected]>
12982
12983 * config/bpf/core-builtins.cc (compute_field_expr): Change
12984 VAR_DECL outcome in switch case.
12985
12986 2025-01-15 Cupertino Miranda <[email protected]>
12987
12988 * config/bpf/core-builtins.cc
12989 (make_gimple_core_safe_access_index): Fix in condition.
12990
12991 2025-01-15 Cupertino Miranda <[email protected]>
12992
12993 * btfout.cc (get_btf_kind): Remove static from function definition.
12994 * config/bpf/btfext-out.cc (bpf_code_reloc_add): Check if CO-RE type
12995 is not a const or volatile.
12996 * ctfc.h (btf_dtd_kind): Add prototype for function.
12997
12998 2025-01-15 Tamar Christina <[email protected]>
12999
13000 PR middle-end/118472
13001 * fold-const.cc (operand_compare::operand_equal_p): Fix incorrect
13002 replacement.
13003
13004 2025-01-15 Richard Biener <[email protected]>
13005
13006 * genmatch.cc (define_dump_logs): Make reverse lookup in
13007 dbg_line_numbers easier by adding comments with start index
13008 and cutting number of elements per line to 10.
13009
13010 2025-01-15 Jakub Jelinek <[email protected]>
13011
13012 PR ipa/116068
13013 * cgraphunit.cc (symbol_table::process_new_functions): Call
13014 bitmap_obstack_initialize (NULL); and bitmap_obstack_release (NULL)
13015 around processing the functions.
13016
13017 2025-01-15 Kito Cheng <[email protected]>
13018
13019 PR target/118182
13020 * config/riscv/autovec-opt.md (*widen_reduc_plus_scal_<mode>): Adjust
13021 argument for expand_reduction.
13022 (*widen_reduc_plus_scal_<mode>): Ditto.
13023 (*fold_left_widen_plus_<mode>): Ditto.
13024 (*mask_len_fold_left_widen_plus_<mode>): Ditto.
13025 (*cond_widen_reduc_plus_scal_<mode>): Ditto.
13026 (*cond_len_widen_reduc_plus_scal_<mode>): Ditto.
13027 (*cond_widen_reduc_plus_scal_<mode>): Ditto.
13028 * config/riscv/autovec.md (reduc_plus_scal_<mode>): Adjust argument for
13029 expand_reduction.
13030 (reduc_smax_scal_<mode>): Ditto.
13031 (reduc_umax_scal_<mode>): Ditto.
13032 (reduc_smin_scal_<mode>): Ditto.
13033 (reduc_umin_scal_<mode>): Ditto.
13034 (reduc_and_scal_<mode>): Ditto.
13035 (reduc_ior_scal_<mode>): Ditto.
13036 (reduc_xor_scal_<mode>): Ditto.
13037 (reduc_plus_scal_<mode>): Ditto.
13038 (reduc_smax_scal_<mode>): Ditto.
13039 (reduc_smin_scal_<mode>): Ditto.
13040 (reduc_fmax_scal_<mode>): Ditto.
13041 (reduc_fmin_scal_<mode>): Ditto.
13042 (fold_left_plus_<mode>): Ditto.
13043 (mask_len_fold_left_plus_<mode>): Ditto.
13044 * config/riscv/riscv-v.cc (expand_reduction): Add one more
13045 argument for reduction code for vl0-safe.
13046 * config/riscv/riscv-protos.h (expand_reduction): Ditto.
13047 * config/riscv/vector-iterators.md (unspec): Add _VL0_SAFE variant of
13048 reduction.
13049 (ANY_REDUC_VL0_SAFE): New.
13050 (ANY_WREDUC_VL0_SAFE): Ditto.
13051 (ANY_FREDUC_VL0_SAFE): Ditto.
13052 (ANY_FREDUC_SUM_VL0_SAFE): Ditto.
13053 (ANY_FWREDUC_SUM_VL0_SAFE): Ditto.
13054 (reduc_op): Add _VL0_SAFE variant of reduction.
13055 (order) Ditto.
13056 * config/riscv/vector.md (@pred_<reduc_op><mode>): New.
13057
13058 2025-01-15 Richard Biener <[email protected]>
13059
13060 PR tree-optimization/115777
13061 * tree-vect-slp.cc (vect_bb_slp_scalar_cost): Do not
13062 cost a scalar stmt that needs to be preserved.
13063
13064 2025-01-15 Michal Jires <[email protected]>
13065
13066 PR lto/118238
13067 * lto-wrapper.cc (run_gcc): Remove link() copying.
13068
13069 2025-01-15 Anton Blanchard <[email protected]>
13070 Jeff Law <[email protected]>
13071
13072 PR target/118170
13073 * config/riscv/generic-ooo.md (generic_ooo_float_div_half): New
13074 reservation.
13075
13076 2025-01-15 Richard Sandiford <[email protected]>
13077 Jeff Law <[email protected]>
13078
13079 PR rtl-optimization/109592
13080 * simplify-rtx.cc (simplify_context::simplify_binary_operation_1):
13081 Simplify nested shifts with subregs.
13082
13083 2025-01-14 anetczuk <[email protected]>
13084
13085 * tree-dump.cc (dequeue_and_dump): Handle OBJ_TYPE_REF.
13086
13087 2025-01-14 Alexandre Oliva <[email protected]>
13088
13089 * gimple-fold.cc (decode_field_reference): Rebustify to set
13090 out parms only when returning non-NULL.
13091 (fold_truth_andor_for_ifcombine): Bail if
13092 decode_field_reference returns NULL. Add complementary assert
13093 on r_const's not being set when l_const isn't.
13094
13095 2025-01-14 Sandra Loosemore <[email protected]>
13096
13097 * cgraph.cc (symbol_table::create_edge): Don't set
13098 calls_declare_variant_alt in the caller.
13099 * cgraph.h (struct cgraph_node): Remove declare_variant_alt
13100 and calls_declare_variant_alt flags.
13101 * cgraphclones.cc (cgraph_node::create_clone): Don't copy
13102 calls_declare_variant_alt bit.
13103 * gimplify.cc: Remove previously #ifdef-ed out code.
13104 * ipa-free-lang-data.cc (free_lang_data_in_decl): Adjust code
13105 referencing declare_variant_alt bit.
13106 * ipa.cc (symbol_table::remove_unreachable_nodes): Likewise.
13107 * lto-cgraph.cc (lto_output_node): Remove references to deleted
13108 bits.
13109 (output_refs): Adjust code referencing declare_variant_alt bit.
13110 (input_overwrite_node): Remove references to deleted bits.
13111 (input_refs): Adjust code referencing declare_variant_alt bit.
13112 * lto-streamer-out.cc (lto_output): Likewise.
13113 * lto-streamer.h (omp_lto_output_declare_variant_alt): Delete.
13114 (omp_lto_input_declare_variant_alt): Delete.
13115 * omp-expand.cc (expand_omp_target): Use has_omp_variant_constructs
13116 bit to trigger pass_omp_device_lower instead of
13117 calls_declare_variant_alt.
13118 * omp-general.cc (struct omp_declare_variant_entry): Delete.
13119 (struct omp_declare_variant_base_entry): Delete.
13120 (struct omp_declare_variant_hasher): Delete.
13121 (omp_declare_variant_hasher::hash): Delete.
13122 (omp_declare_variant_hasher::equal): Delete.
13123 (omp_declare_variants): Delete.
13124 (omp_declare_variant_alt_hasher): Delete.
13125 (omp_declare_variant_alt_hasher::hash): Delete.
13126 (omp_declare_variant_alt_hasher::equal): Delete.
13127 (omp_declare_variant_alt): Delete.
13128 (omp_lto_output_declare_variant_alt): Delete.
13129 (omp_lto_input_declare_variant_alt): Delete.
13130 (includes): Delete unnecessary include of gt-omp-general.h.
13131 * omp-offload.cc (execute_omp_device_lower): Remove references
13132 to deleted bit.
13133 (pass_omp_device_lower::gate): Likewise.
13134 * omp-simd-clone.cc (simd_clone_create): Likewise.
13135 * passes.cc (ipa_write_summaries): Likeise.
13136 * symtab.cc (symtab_node::get_partitioning_class): Likewise.
13137 * tree-inline.cc (expand_call_inline): Likewise.
13138 (tree_function_versioning): Likewise.
13139
13140 2025-01-14 Sandra Loosemore <[email protected]>
13141 Kwok Cheung Yeung <[email protected]>
13142 Sandra Loosemore <[email protected]>
13143 Marcel Vollweiler <[email protected]>
13144
13145 PR middle-end/114596
13146 PR middle-end/112779
13147 PR middle-end/113904
13148 * Makefile.in (GTFILES): Move omp-general.h earlier; required
13149 because of moving score_wide_int declaration to that file.
13150 * cgraph.h (struct cgraph_node): Add has_omp_variant_constructs flag.
13151 * cgraphclones.cc (cgraph_node::create_clone): Propagate
13152 has_omp_variant_constructs flag.
13153 * gimplify.cc (omp_resolved_variant_calls): New.
13154 (expand_late_variant_directive): New.
13155 (find_supercontext): New.
13156 (gimplify_variant_call_expr): New.
13157 (gimplify_call_expr): Adjust parameters to make fallback available.
13158 Update processing for "declare variant" substitution.
13159 (is_gimple_stmt): Add OMP_METADIRECTIVE.
13160 (omp_construct_selector_matches): Ifdef out unused function.
13161 (omp_get_construct_context): New.
13162 (gimplify_omp_dispatch): Replace call to deleted function
13163 omp_resolve_declare_variant with equivalent logic.
13164 (expand_omp_metadirective): New.
13165 (expand_late_variant_directive): New.
13166 (gimplify_omp_metadirective): New.
13167 (gimplify_expr): Adjust arguments to gimplify_call_expr. Add
13168 cases for OMP_METADIRECTIVE, OMP_NEXT_VARIANT, and
13169 OMP_TARGET_DEVICE_MATCHES.
13170 (gimplify_function_tree): Initialize/clean up
13171 omp_resolved_variant_calls.
13172 * gimplify.h (omp_construct_selector_matches): Delete declaration.
13173 (omp_get_construct_context): Declare.
13174 * lto-cgraph.cc (lto_output_node): Write has_omp_variant_constructs.
13175 (input_overwrite_node): Read has_omp_variant_constructs.
13176 * omp-builtins.def (BUILT_IN_OMP_GET_NUM_DEVICES): New.
13177 * omp-expand.cc (expand_omp_taskreg): Propagate
13178 has_omp_variant_constructs.
13179 (expand_omp_target): Likewise.
13180 * omp-general.cc (omp_maybe_offloaded): Add construct_context
13181 parameter; use it instead of querying gimplifier state. Add
13182 comments.
13183 (omp_context_name_list_prop): Do not test lang_GNU_Fortran in
13184 offload compiler, just use the string as-is.
13185 (expr_uses_parm_decl): New.
13186 (omp_check_context_selector): Add metadirective_p parameter.
13187 Remove sorry for target_device selector. Add additional checks
13188 specific to metadirective or declare variant.
13189 (make_omp_metadirective_variant): New.
13190 (omp_construct_traits_match): New.
13191 (omp_context_selector_matches): Temporarily ifdef out the previous
13192 code, and add a new implementation based on the old one with
13193 different parameters, some unnecessary loops removed, and code
13194 re-indented.
13195 (omp_target_device_matches_on_host): New.
13196 (resolve_omp_target_device_matches): New.
13197 (omp_construct_simd_compare): Support matching of "simdlen" and
13198 "aligned" clauses.
13199 (omp_context_selector_set_compare): Make static. Adjust call to
13200 omp_construct_simd_compare.
13201 (score_wide_int): Move declaration to omp-general.h.
13202 (omp_selector_is_dynamic): New.
13203 (omp_device_num_check): New.
13204 (omp_dynamic_cond): New.
13205 (omp_context_compute_score): Ifdef out the old version and
13206 re-implement with different parameters.
13207 (omp_complete_construct_context): New.
13208 (omp_resolve_late_declare_variant): Ifdef out.
13209 (omp_declare_variant_remove_hook): Likewise.
13210 (omp_resolve_declare_variant): Likewise.
13211 (sort_variant): New.
13212 (omp_get_dynamic_candidates): New.
13213 (omp_declare_variant_candidates): New.
13214 (omp_metadirective_candidates): New.
13215 (omp_early_resolve_metadirective): New.
13216 (omp_resolve_variant_construct): New.
13217 * omp-general.h (score_wide_int): Moved here from omp-general.cc.
13218 (struct omp_variant): New.
13219 (make_omp_metadirective_variant): Declare.
13220 (omp_construct_traits_to_codes): Delete declaration.
13221 (omp_check_context_selector): Adjust parameters.
13222 (omp_context_selector_matches): Likewise.
13223 (omp_context_selector_set_compare): Delete declaration.
13224 (omp_resolve_declare_variant): Likewise.
13225 (omp_declare_variant_candidates): Declare.
13226 (omp_metadirective_candidates): Declare.
13227 (omp_get_dynamic_candidates): Declare.
13228 (omp_early_resolve_metadirective): Declare.
13229 (omp_resolve_variant_construct): Declare.
13230 (omp_dynamic_cond): Declare.
13231 * omp-offload.cc (resolve_omp_variant_cookies): New.
13232 (execute_omp_device_lower): Call the above function to resolve
13233 variant directives. Remove call to omp_resolve_declare_variant.
13234 (pass_omp_device_lower::gate): Check has_omp_variant_construct bit.
13235 * omp-simd-clone.cc (simd_clone_create): Propagate
13236 has_omp_variant_constructs bit.
13237 * tree-inline.cc (expand_call_inline): Likewise.
13238 (tree_function_versioning): Likewise.
13239
13240 2025-01-14 Sandra Loosemore <[email protected]>
13241 Kwok Cheung Yeung <[email protected]>
13242 Sandra Loosemore <[email protected]>
13243
13244 * doc/generic.texi (OpenMP): Document OMP_METADIRECTIVE,
13245 OMP_NEXT_VARIANT, and OMP_TARGET_DEVICE_MATCHES.
13246 * fold-const.cc (operand_compare::hash_operand): Ignore
13247 the new nodes.
13248 * gimple-expr.cc (is_gimple_val): Allow OMP_NEXT_VARIANT
13249 and OMP_TARGET_DEVICE_MATCHES.
13250 * gimple.cc (get_gimple_rhs_num_ops): OMP_NEXT_VARIANT and
13251 OMP_TARGET_DEVICE_MATCHES are both GIMPLE_SINGLE_RHS.
13252 * tree-cfg.cc (tree_node_can_be_shared): Allow sharing of
13253 OMP_NEXT_VARIANT.
13254 * tree-inline.cc (remap_gimple_op_r): Ignore subtrees of
13255 OMP_NEXT_VARIANT.
13256 * tree-pretty-print.cc (dump_generic_node): Handle OMP_METADIRECTIVE,
13257 OMP_NEXT_VARIANT, and OMP_TARGET_DEVICE_MATCHES.
13258 * tree-ssa-operands.cc (operands_scanner::get_expr_operands):
13259 Ignore operands of OMP_NEXT_VARIANT and OMP_TARGET_DEVICE_MATCHES.
13260 * tree.def (OMP_METADIRECTIVE): New.
13261 (OMP_NEXT_VARIANT): New.
13262 (OMP_TARGET_DEVICE_MATCHES): New.
13263 * tree.h (OMP_METADIRECTIVE_VARIANTS): New.
13264 (OMP_METADIRECTIVE_VARIANT_SELECTOR): New.
13265 (OMP_METADIRECTIVE_VARIANT_DIRECTIVE): New.
13266 (OMP_METADIRECTIVE_VARIANT_BODY): New.
13267 (OMP_NEXT_VARIANT_INDEX): New.
13268 (OMP_NEXT_VARIANT_STATE): New.
13269 (OMP_TARGET_DEVICE_MATCHES_SELECTOR): New.
13270 (OMP_TARGET_DEVICE_MATCHES_PROPERTIES): New.
13271
13272 2025-01-14 Alexandre Oliva <[email protected]>
13273
13274 PR tree-optimization/118456
13275 * gimple-fold.cc (decode_field_reference): Punt if shifting
13276 after changing signedness.
13277 (fold_truth_andor_for_ifcombine): Check extension bits in
13278 constants before clipping.
13279
13280 2025-01-14 Robin Dapp <[email protected]>
13281
13282 PR target/118154
13283 * config/riscv/riscv-vsetvl.cc (MAX_LMUL): New define.
13284 (pre_vsetvl::earliest_fuse_vsetvl_info): Use.
13285 (pre_vsetvl::pre_global_vsetvl_info): New predicate with equal
13286 ratio.
13287 * config/riscv/riscv-vsetvl.def: Use.
13288
13289 2025-01-14 Robin Dapp <[email protected]>
13290
13291 PR middle-end/118140
13292 * gimple-match-exports.cc (maybe_resimplify_conditional_op): Add
13293 COND_EXPR when we simplified to a scalar gimple value but still
13294 have an else value.
13295
13296 2025-01-14 Richard Biener <[email protected]>
13297
13298 PR tree-optimization/118405
13299 * tree-vect-stmts.cc (vectorizable_load): When we fall back
13300 to scalar loads make sure we properly convert to vector(1) T
13301 when there was only a single vector element.
13302
13303 2025-01-14 Robin Dapp <[email protected]>
13304
13305 * config/riscv/riscv-v.cc (expand_const_vector): Shift in Xmode.
13306
13307 2025-01-14 Jiufu Guo <[email protected]>
13308
13309 PR target/116030
13310 * config/rs6000/vsx.md (vsx_stxvd2x4_le_const_<mode>): Add clobber
13311 and guard with !altivec_indexed_or_indirect_operand.
13312
13313 2025-01-14 Robin Dapp <[email protected]>
13314
13315 PR target/117682
13316 * config/riscv/riscv-v.cc (expand_const_vector): Fall back to
13317 merging if either step is negative.
13318
13319 2025-01-13 Xi Ruoyao <[email protected]>
13320
13321 PR target/115921
13322 * config/riscv/riscv.md (<optab>_shift_reverse): Remove
13323 check for TARGET_ZBA.
13324
13325 2025-01-13 Richard Sandiford <[email protected]>
13326
13327 PR target/118418
13328 * simplify-rtx.cc (simplify_context::simplify_relational_operation_1):
13329 Take STORE_FLAG_VALUE into account when handling signed comparisons
13330 of comparison results.
13331
13332 2025-01-13 Xi Ruoyao <[email protected]>
13333
13334 PR target/115921
13335 * config/riscv/riscv.md (<optab>_shift_reverse): Only check
13336 popcount_hwi if !TARGET_ZBS.
13337
13338 2025-01-13 Jin Ma <[email protected]>
13339
13340 * config/riscv/riscv-vsetvl.cc (demand_system::use_max_sew): Also
13341 set the ratio for PREV.
13342
13343 2025-01-13 Vineet Gupta <[email protected]>
13344
13345 * config/riscv/riscv.cc (riscv_register_move_cost): Remove buggy
13346 check.
13347
13348 2025-01-13 Jin Ma <[email protected]>
13349
13350 * config/riscv/riscv.cc (riscv_build_integer_1): Change
13351 1UL/1ULL to HOST_WIDE_INT_1U.
13352
13353 2025-01-13 Jeff Law <[email protected]>
13354
13355 PR rtl-optimization/107455
13356 * postreload.cc (reload_cse_regs_1): Take advantage of conditional
13357 equivalences.
13358
13359 2025-01-13 Alexandre Oliva <[email protected]>
13360
13361 PR tree-optimization/118409
13362 * gimple-fold.cc (fold_truth_andor_for_ifcombine): Apply the
13363 signbit mask to the right-hand XOR operand too.
13364
13365 2025-01-13 Jakub Jelinek <[email protected]>
13366
13367 PR target/115910
13368 * expr.cc (expand_expr_divmod): Prefix the TDF_DETAILS note with
13369 ";; " and add a space before (needed tie breaker). Formatting fixes.
13370
13371 2025-01-13 Richard Biener <[email protected]>
13372 Stefan Schulze Frielinghaus <[email protected]>
13373
13374 PR tree-optimization/117119
13375 * tree-data-ref.cc (initialize_matrix_A): Check whether
13376 an INTEGER_CST fits in HWI, otherwise return chrec_dont_know.
13377
13378 2025-01-13 Michal Jires <[email protected]>
13379
13380 PR lto/118181
13381 * lto-ltrans-cache.cc (ltrans_file_cache::create_item):
13382 Pass checksum by reference.
13383 * lto-ltrans-cache.h: Likewise.
13384
13385 2025-01-13 Michal Jires <[email protected]>
13386
13387 * lockfile.cc (LOCKFILE_USE_FCNTL): New.
13388 (lockfile::lock_write): Use LOCKFILE_USE_FCNTL.
13389 (lockfile::try_lock_write): Use LOCKFILE_USE_FCNTL.
13390 (lockfile::lock_read): Use LOCKFILE_USE_FCNTL.
13391 (lockfile::unlock): Use LOCKFILE_USE_FCNTL.
13392 (lockfile::lockfile_supported): Use LOCKFILE_USE_FCNTL.
13393
13394 2025-01-13 liuhongt <[email protected]>
13395
13396 * config/i386/i386-expand.cc (ix86_expand_vecop_qihi2):
13397 Refactor to avoid redundant TARGET_AVX512BW in many places.
13398
13399 2025-01-13 Jakub Jelinek <[email protected]>
13400
13401 PR tree-optimization/117997
13402 PR middle-end/118415
13403 * expr.cc (assemble_crc_table): Make static, remove id argument,
13404 use output_constant_def. Emit note if -fdump-rtl-expand-details
13405 about which table has been emitted.
13406 (generate_crc_table): Make static, adjust assemble_crc_table
13407 caller, call it always.
13408 (calculate_table_based_CRC): Make static.
13409 * internal-fn.cc (expand_crc_optab_fn): Emit note if
13410 -fdump-rtl-expand-details about using optab for crc. Formatting fix.
13411
13412 2025-01-12 Maciej W. Rozycki <[email protected]>
13413
13414 * config/alpha/alpha.cc (alpha_expand_block_move): Use a HImode
13415 subreg of a DImode register to hold data from an aligned HImode
13416 load.
13417
13418 2025-01-12 Maciej W. Rozycki <[email protected]>
13419
13420 * config/alpha/alpha.cc (alpha_expand_block_move): Merge loaded
13421 data from pairs of SImode registers into single DImode registers
13422 if to be used with unaligned stores.
13423
13424 2025-01-12 Maciej W. Rozycki <[email protected]>
13425
13426 * config/alpha/alpha.cc (alpha_option_override): Ignore CPU
13427 flags corresponding to features the enabling or disabling of
13428 which has been requested with an individual feature option.
13429
13430 2025-01-12 Maciej W. Rozycki <[email protected]>
13431
13432 PR middle-end/64242
13433 * config/alpha/alpha.md (`builtin_longjmp'): Restore frame
13434 pointer last. Add frame clobber and schedule blockage.
13435
13436 2025-01-12 Maciej W. Rozycki <[email protected]>
13437
13438 * config/alpha/alpha.md (builtin_longjmp): Add memory clobbers.
13439
13440 2025-01-12 Richard Biener <[email protected]>
13441
13442 * tree-vect-slp.cc (vect_analyze_slp): Release saved_stmts
13443 vector.
13444 (vect_build_slp_tree_2): Release new_oprnds_info when not
13445 used.
13446 (vect_analyze_slp): Release root_stmts when gcond SLP
13447 build fails.
13448
13449 2025-01-12 Andrew Pinski <[email protected]>
13450
13451 PR middle-end/118411
13452 * final.cc (get_attr_length_1): Handle asm for CALL_INSN
13453 and JUMP_INSNs.
13454
13455 2025-01-11 mengqinggang <[email protected]>
13456
13457 * config/loongarch/lasx.md: Use new loongarch_output_move.
13458 * config/loongarch/loongarch-protos.h (loongarch_output_move):
13459 Change parameters from (rtx, rtx) to (rtx *).
13460 * config/loongarch/loongarch.cc (loongarch_output_move):
13461 Generate final immediate for lu12i.w and lu52i.d.
13462 * config/loongarch/loongarch.md:
13463 Generate final immediate for lu32i.d and lu52i.d.
13464 * config/loongarch/lsx.md: Use new loongarch_output_move.
13465
13466 2025-01-11 Andrew MacLeod <[email protected]>
13467
13468 PR tree-optimization/88575
13469 * vr-values.cc (simplify_using_ranges::fold_cond_with_ops): Query
13470 relation between op0 and op1 and utilize it.
13471 (simplify_using_ranges::simplify): Do not eliminate float checks.
13472
13473 2025-01-10 Alex Coplan <[email protected]>
13474
13475 PR tree-optimization/118211
13476 PR tree-optimization/116126
13477 * tree-vect-loop.cc (vect_compute_single_scalar_iteration_cost):
13478 Don't skip over gconds.
13479
13480 2025-01-10 Alex Coplan <[email protected]>
13481
13482 PR tree-optimization/118211
13483 PR tree-optimization/116126
13484 * tree-vect-loop-manip.cc (vect_do_peeling): Adjust skip_vector
13485 condition to only omit the edge if we're versioning for
13486 alignment.
13487
13488 2025-01-10 Tamar Christina <[email protected]>
13489 Alex Coplan <[email protected]>
13490
13491 PR tree-optimization/118211
13492 PR tree-optimization/116126
13493 * tree-vect-loop-manip.cc (vect_do_peeling): Update immediate
13494 dominators of nodes that were dominated by the prolog skip block
13495 after inserting vector skip edge. Initialize prolog variable to
13496 NULL to avoid bogus -Wmaybe-uninitialized during bootstrap.
13497
13498 2025-01-10 Alex Coplan <[email protected]>
13499
13500 PR tree-optimization/118211
13501 PR tree-optimization/116126
13502 * tree-vect-loop-manip.cc (vect_do_peeling): Avoid emitting an
13503 epilogue guard for inverted early-exit loops.
13504
13505 2025-01-10 Alex Coplan <[email protected]>
13506 Tamar Christina <[email protected]>
13507
13508 PR tree-optimization/118211
13509 PR tree-optimization/116126
13510 * tree-vect-data-refs.cc (vect_analyze_early_break_dependences):
13511 Set need_peeling_for_alignment flag on read DRs instead of
13512 failing vectorization. Punt on gathers.
13513 (dr_misalignment): Handle non-constant target alignments.
13514 (vect_compute_data_ref_alignment): If need_peeling_for_alignment
13515 flag is set on the DR, then override the target alignment chosen
13516 by the preferred_vector_alignment hook to choose a safe
13517 alignment.
13518 (vect_supportable_dr_alignment): Override
13519 support_vector_misalignment hook if need_peeling_for_alignment
13520 is set on the DR: in this case we must return
13521 dr_unaligned_unsupported in order to force peeling.
13522 * tree-vect-loop-manip.cc (vect_do_peeling): Allow prolog
13523 peeling by a compile-time non-constant amount.
13524 * tree-vectorizer.h (dr_vec_info): Add new flag
13525 need_peeling_for_alignment.
13526
13527 2025-01-10 Tamar Christina <[email protected]>
13528
13529 * config/aarch64/aarch64-cores.def (AARCH64_CORE): Fix cortex-x4 parts
13530 num.
13531
13532 2025-01-10 Richard Biener <[email protected]>
13533
13534 * df-core.cc (rest_of_handle_df_finish): Release dflow for
13535 problems without free function (like LR).
13536 * gimple-crc-optimization.cc (crc_optimization::loop_may_calculate_crc):
13537 Release loop_bbs on all exits.
13538 * tree-vectorizer.h (supportable_indirect_convert_operation): Change.
13539 * tree-vect-generic.cc (expand_vector_conversion): Adjust.
13540 * tree-vect-stmts.cc (vectorizable_conversion): Use auto_vec for
13541 converts.
13542 (supportable_indirect_convert_operation): Get a reference to
13543 the output vector of converts.
13544
13545 2025-01-10 Christophe Lyon <[email protected]>
13546
13547 PR target/118332
13548 * config/arm/arm-mve-builtins.cc (wrap_type_in_struct): Delete.
13549 (register_type_decl): Delete.
13550 (register_builtin_tuple_types): Use
13551 lang_hooks.types.simulate_record_decl.
13552
13553 2025-01-10 Richard Biener <[email protected]>
13554
13555 * gcse.cc (pass_hardreg_pre::gate): Wrap possibly unused
13556 fun argument.
13557
13558 2025-01-10 Richard Biener <[email protected]>
13559
13560 PR rtl-optimization/117467
13561 PR rtl-optimization/117934
13562 * ext-dce.cc (ext_dce_execute): Do nothing if a memory
13563 allocation estimate exceeds what is allowed by
13564 --param max-gcse-memory.
13565
13566 2025-01-10 Stefan Schulze Frielinghaus <[email protected]>
13567
13568 * config/s390/s390-protos.h (s390_emit_compare): Add mode
13569 parameter for the resulting RTX.
13570 * config/s390/s390.cc (s390_emit_compare): Dito.
13571 (s390_emit_compare_and_swap): Change.
13572 (s390_expand_vec_strlen): Change.
13573 (s390_expand_cs_hqi): Change.
13574 (s390_expand_split_stack_prologue): Change.
13575 * config/s390/s390.md (*add<mode>3_carry1_cc): Renamed to ...
13576 (add<mode>3_carry1_cc): this and in order to use the
13577 corresponding gen function, encode CC mode into pattern.
13578 (*sub<mode>3_borrow_cc): Renamed to ...
13579 (sub<mode>3_borrow_cc): this and in order to use the
13580 corresponding gen function, encode CC mode into pattern.
13581 (*add<mode>3_alc_carry1_cc): Renamed to ...
13582 (add<mode>3_alc_carry1_cc): this and in order to use the
13583 corresponding gen function, encode CC mode into pattern.
13584 (sub<mode>3_slb_borrow1_cc): New.
13585 (uaddc<mode>5): New.
13586 (usubc<mode>5): New.
13587
13588 2025-01-10 Andrew Carlotti <[email protected]>
13589
13590 * doc/passes.texi: Document hardreg PRE pass.
13591
13592 2025-01-10 Andrew Carlotti <[email protected]>
13593
13594 * config/aarch64/aarch64.h (HARDREG_PRE_REGNOS): New macro.
13595 * gcse.cc (doing_hardreg_pre_p): New global variable.
13596 (do_load_motion): New boolean check.
13597 (current_hardreg_regno): New global variable.
13598 (compute_local_properties): Unset transp for hardreg clobbers.
13599 (prune_hardreg_uses): New function.
13600 (want_to_gcse_p): Use different checks for hardreg PRE.
13601 (oprs_unchanged_p): Disable load motion for hardreg PRE pass.
13602 (hash_scan_set): For hardreg PRE, skip non-hardreg sets and
13603 check for hardreg clobbers.
13604 (record_last_mem_set_info): Skip for hardreg PRE.
13605 (compute_pre_data): Prune hardreg uses from transp bitmap.
13606 (pre_expr_reaches_here_p_work): Add sentence to comment.
13607 (insert_insn_start_basic_block): New functions.
13608 (pre_edge_insert): Don't add hardreg sets to predecessor block.
13609 (pre_delete): Use hardreg for the reaching reg.
13610 (reset_hardreg_debug_uses): New function.
13611 (pre_gcse): For hardreg PRE, reset debug uses and don't insert
13612 copies.
13613 (one_pre_gcse_pass): Disable load motion for hardreg PRE.
13614 (execute_hardreg_pre): New.
13615 (class pass_hardreg_pre): New.
13616 (pass_hardreg_pre::gate): New.
13617 (make_pass_hardreg_pre): New.
13618 * passes.def (pass_hardreg_pre): New pass.
13619 * tree-pass.h (make_pass_hardreg_pre): New.
13620
13621 2025-01-10 Andrew Carlotti <[email protected]>
13622
13623 * multiple_target.cc
13624 (redirect_to_specific_clone): Assert that "target" attribute is
13625 used for FMV before checking it.
13626 (ipa_target_clone): Skip redirect_to_specific_clone on some
13627 targets.
13628
13629 2025-01-10 Andrew Carlotti <[email protected]>
13630
13631 * doc/invoke.texi: Add new AArch64 flags.
13632
13633 2025-01-10 Andrew Carlotti <[email protected]>
13634
13635 * config/aarch64/aarch64-arches.def (V8_7A): Add XS.
13636 * config/aarch64/aarch64-option-extensions.def (XS): New flag.
13637
13638 2025-01-10 Andrew Carlotti <[email protected]>
13639
13640 * config/aarch64/aarch64-arches.def (V8_7A): Add WFXT.
13641 * config/aarch64/aarch64-option-extensions.def (WFXT): New flag.
13642
13643 2025-01-10 Andrew Carlotti <[email protected]>
13644
13645 * config/aarch64/aarch64-arches.def (V8_4A): Add RCPC2.
13646 * config/aarch64/aarch64-option-extensions.def
13647 (RCPC2): New flag.
13648 (RCPC3): Add RCPC2 dependency.
13649 * config/aarch64/aarch64.h (TARGET_RCPC2): Use new flag.
13650
13651 2025-01-10 Andrew Carlotti <[email protected]>
13652
13653 * config/aarch64/aarch64-arches.def (V8_5A): Add FLAGM2.
13654 * config/aarch64/aarch64-option-extensions.def (FLAGM2): New flag.
13655
13656 2025-01-10 Andrew Carlotti <[email protected]>
13657
13658 * config/aarch64/aarch64-arches.def (V8_5A): Add FRINTTS
13659 * config/aarch64/aarch64-option-extensions.def (FRINTTS): New flag.
13660 * config/aarch64/aarch64.h (TARGET_FRINT): Use new flag.
13661 * config/aarch64/arm_acle.h: Use new flag for frintts intrinsics.
13662 * config/aarch64/arm_neon.h: Ditto.
13663
13664 2025-01-10 Andrew Carlotti <[email protected]>
13665
13666 * config/aarch64/aarch64-arches.def (V8_3A): Add JSCVT.
13667 * config/aarch64/aarch64-option-extensions.def (JSCVT): New flag.
13668 * config/aarch64/aarch64.h (TARGET_JSCVT): Use new flag.
13669 * config/aarch64/arm_acle.h: Use new flag for jscvt intrinsics.
13670
13671 2025-01-10 Andrew Carlotti <[email protected]>
13672
13673 * config/aarch64/aarch64-arches.def (V8_3A): Add FCMA.
13674 * config/aarch64/aarch64-option-extensions.def (FCMA): New flag.
13675 (SVE): Add FCMA dependency.
13676 * config/aarch64/aarch64.h (TARGET_COMPLEX): Use new flag.
13677 * config/aarch64/arm_neon.h: Use new flag for fcma intrinsics.
13678
13679 2025-01-10 Andrew Carlotti <[email protected]>
13680
13681 * config/aarch64/aarch64.cc
13682 (aarch64_expand_epilogue): Use TARGET_PAUTH.
13683 * config/aarch64/aarch64.md: Update comment.
13684
13685 2025-01-10 Richard Sandiford <[email protected]>
13686
13687 PR rtl-optimization/117186
13688 * rtl.h (simplify_context::simplify_logical_relational_operation): Add
13689 an invert0_p parameter.
13690 * simplify-rtx.cc (unsigned_comparison_to_mask): New function.
13691 (mask_to_unsigned_comparison): Likewise.
13692 (comparison_code_valid_for_mode): Delete.
13693 (simplify_context::simplify_logical_relational_operation): Add
13694 an invert0_p parameter. Handle AND and XOR. Handle unsigned
13695 comparisons. Handle always-false results. Ignore the low bit
13696 of the mask if the operands are always ordered and remove the
13697 then-redundant check of comparison_code_valid_for_mode. Check
13698 for side-effects in the operands before simplifying them away.
13699 (simplify_context::simplify_binary_operation_1): Remove
13700 simplification of (compare (gt ...) (lt ...)) and instead...
13701 (simplify_context::simplify_relational_operation_1): ...handle
13702 comparisons of comparisons here.
13703 (test_comparisons): New function.
13704 (test_scalar_ops): Call it.
13705
13706 2025-01-10 Alexandre Oliva <[email protected]>
13707
13708 * gimple-fold.cc (decode_field_reference): Drop misuses of
13709 uniform_integer_cst_p.
13710 (fold_truth_andor_for_ifcombine): Likewise.
13711
13712 2025-01-10 Alexandre Oliva <[email protected]>
13713
13714 PR tree-optimization/118344
13715 * gimple-fold.cc (fold_truth_andor_for_ifcombine): Fix typo in
13716 rr_and_mask's type adjustment test.
13717
13718 2025-01-10 Alexandre Oliva <[email protected]>
13719
13720 * gimple-fold.cc (decode_field_reference): Add xor_pand_mask.
13721 Propagate pand_mask to the right-hand xor operand. Don't
13722 require the right-hand xor operand to be a constant.
13723 (fold_truth_andor_for_ifcombine): Pass right-hand mask when
13724 appropriate.
13725
13726 2025-01-10 Alexandre Oliva <[email protected]>
13727
13728 PR tree-optimization/118206
13729 * gimple-fold.cc (decode_field_reference): Account for upper
13730 bits dropped by narrowing conversions whether before or after
13731 a right shift.
13732 (fold_truth_andor_for_ifcombine): Fold masks, compares, and
13733 combined results.
13734
13735 2025-01-10 Alexandre Oliva <[email protected]>
13736
13737 * gimple-fold.cc (fold_truth_andor_for_ifcombine): Limit
13738 boundary choice by word size as well. Try aligned double-word
13739 loads as a last resort.
13740
13741 2025-01-10 Martin Jambor <[email protected]>
13742
13743 PR ipa/118138
13744 * ipa-cp.cc (ipacp_value_safe_for_type): Return the appropriate
13745 type instead of a bool, accept NULL_TREE VALUEs.
13746 (propagate_vals_across_arith_jfunc): Use the new returned value of
13747 ipacp_value_safe_for_type.
13748 (propagate_vals_across_ancestor): Likewise.
13749 (propagate_scalar_across_jump_function): Likewise.
13750
13751 2025-01-10 chenxiaolong <[email protected]>
13752 Deng Jianbo <[email protected]>.
13753
13754 * config/loongarch/loongarch.cc
13755 (loongarch_builtin_vectorization_cost): Modify the
13756 construction cost of the vec_construct vector.
13757
13758 2025-01-09 Tamar Christina <[email protected]>
13759
13760 PR target/118188
13761 * config/aarch64/aarch64.cc (aarch64_vector_costs::count_ops): Adjust
13762 throughput of emulated gather and scatters.
13763
13764 2025-01-09 Vladimir N. Makarov <[email protected]>
13765
13766 PR target/118017
13767 * lra-constraints.cc (inherit_reload_reg): Check reg class on uniformity.
13768
13769 2025-01-09 Stefan Schulze Frielinghaus <[email protected]>
13770
13771 PR target/118362
13772 * config/s390/s390.cc (s390_constant_via_vgbm_p): Allow at most
13773 16-byte vectors.
13774
13775 2025-01-09 Christophe Lyon <[email protected]>
13776
13777 PR target/118131
13778 * config/arm/arm.h (VALID_MVE_STRUCT_MODE): Accept TI, OI and XI
13779 modes again.
13780
13781 2025-01-09 Thomas Schwinge <[email protected]>
13782
13783 PR target/65181
13784 * config/nvptx/nvptx.cc (nvptx_get_drap_rtx): Handle
13785 '!TARGET_SOFT_STACK'.
13786 * config/nvptx/nvptx.md (define_c_enum "unspec"): Add
13787 'UNSPEC_STACKSAVE', 'UNSPEC_STACKRESTORE'.
13788 (define_expand "allocate_stack", define_expand "save_stack_block")
13789 (define_expand "save_stack_block"): Handle '!TARGET_SOFT_STACK',
13790 PTX 'alloca'.
13791 (define_insn "@nvptx_alloca_<mode>")
13792 (define_insn "@nvptx_stacksave_<mode>")
13793 (define_insn "@nvptx_stackrestore_<mode>"): New.
13794 * doc/invoke.texi (Nvidia PTX Options): Update '-msoft-stack',
13795 '-mno-soft-stack'.
13796 * doc/sourcebuild.texi (nvptx-specific attributes): Document
13797 'nvptx_runtime_alloca_ptx'.
13798 (Add Options): Document 'nvptx_alloca_ptx'.
13799
13800 2025-01-09 Richard Biener <[email protected]>
13801
13802 * cfgloopmanip.cc (duplicate_loop_body_to_header_edge): When
13803 copying to the header edge first redirect the entry to the
13804 new loop and then the exit to the old to avoid PHI node
13805 re-allocation.
13806
13807 2025-01-09 H.J. Lu <[email protected]>
13808
13809 PR rtl-optimization/118266
13810 * ree.cc (add_removable_extension): Skip extension on fixed
13811 register.
13812
13813 2025-01-09 Jakub Jelinek <[email protected]>
13814 Andrew Pinski <[email protected]>
13815
13816 PR tree-optimization/117927
13817 * tree-pass.h (PROP_last_full_fold): Define.
13818 * passes.def: Add last= parameters to pass_forwprop.
13819 * tree-ssa-forwprop.cc (pass_forwprop): Add last_p non-static
13820 data member and initialize it in the ctor.
13821 (pass_forwprop::set_pass_param): New method.
13822 (pass_forwprop::execute): Set PROP_last_full_fold in curr_properties
13823 at the start if last_p.
13824 * match.pd (a rrotate (32-b) -> a lrotate b): Only optimize either
13825 if @2 is known not to be equal to prec or if during/after last
13826 forwprop the subtraction has single use and prec is power of two; in
13827 that case transform it into orotate by masked count.
13828
13829 2025-01-09 Haochen Jiang <[email protected]>
13830
13831 * common/config/i386/cpuinfo.h (get_intel_cpu): Remove 0x00.
13832
13833 2025-01-09 xuli <[email protected]>
13834
13835 * config/riscv/riscv-vector-builtins.cc (function_builder::add_unique_function):
13836 Only register overloaded intrinsic for g++.
13837 Only insert non_overloaded_function_table for gcc.
13838 (function_builder::add_overloaded_function): Only register overloaded intrinsic for gcc.
13839 (handle_pragma_vector): Only initialize non_overloaded_function_table for gcc.
13840
13841 2025-01-09 Tobias Burnus <[email protected]>
13842
13843 * builtin-types.def (BT_FN_PTRMODE_PTR_INT_PTR): Add.
13844 * gimplify.cc (gimplify_call_expr): Add error for multiple
13845 list items to the OpenMP interop clause if no device clause;
13846 continue instead of restarting after append_args handling.
13847 (gimplify_omp_dispatch): Extract device number from the
13848 single interop-clause list item.
13849 * omp-builtins.def (BUILT_IN_OMP_GET_INTEROP_INT): Add.
13850
13851 2025-01-08 Thomas Schwinge <[email protected]>
13852
13853 PR target/65181
13854 * config/nvptx/nvptx.cc (default_ptx_version_option): For
13855 '-march=sm_52' and higher, default at least to '-mptx=7.3'.
13856 * doc/invoke.texi (Nvidia PTX Options): Update '-mptx=[...]'.
13857
13858 2025-01-08 Thomas Schwinge <[email protected]>
13859
13860 * config/nvptx/nvptx-opts.h (enum ptx_version): Add
13861 'PTX_VERSION_7_3'.
13862 * config/nvptx/nvptx.cc (ptx_version_to_string)
13863 (ptx_version_to_number): Adjust.
13864 * config/nvptx/nvptx.h (TARGET_PTX_7_3): New.
13865 * config/nvptx/nvptx.opt (Enum(ptx_version)): Add 'EnumValue'
13866 '7.3' for 'PTX_VERSION_7_3'.
13867 * doc/invoke.texi (Nvidia PTX Options): Document '-mptx=7.3'.
13868
13869 2025-01-08 Thomas Schwinge <[email protected]>
13870
13871 * doc/sourcebuild.texi (Effective-Target Keywords): Document
13872 'nvptx_softstack'.
13873
13874 2025-01-08 Thomas Schwinge <[email protected]>
13875
13876 PR target/65181
13877 * config/nvptx/nvptx.h (STACK_SAVEAREA_MODE): '#define'.
13878 * config/nvptx/nvptx.md [!TARGET_SOFT_STACK]
13879 (save_stack_function): 'define_expand'.
13880 (restore_stack_function): Handle '!TARGET_SOFT_STACK'.
13881
13882 2025-01-08 Thomas Schwinge <[email protected]>
13883
13884 PR target/65181
13885 * config/nvptx/nvptx.md [!TARGET_SOFT_STACK] (save_stack_block):
13886 'define_expand'.
13887
13888 2025-01-08 Thiago Jung Bauermann <[email protected]>
13889
13890 * configure.ac: Fix check for HAVE_GAS_SHF_MERGE on Arm targets.
13891 * configure: Regenerate.
13892
13893 2025-01-08 Richard Sandiford <[email protected]>
13894
13895 PR target/107102
13896 * config/aarch64/aarch64.cc (aarch64_function_ok_for_sibcall): Only
13897 reject calls with different PCSes if the callee clobbers register
13898 state that the caller must preserve.
13899
13900 2025-01-08 Tobias Burnus <[email protected]>
13901
13902 * gimplify.cc (gimplify_call_expr): Disable variant function's
13903 append_args in 'omp dispatch' when invoking the variant directly
13904 and not through the base function.
13905
13906 2025-01-08 Thomas Schwinge <[email protected]>
13907
13908 * doc/invoke.texi (Nvidia PTX Options): Update '-march-map=sm_50'.
13909
13910 2025-01-08 Richard Biener <[email protected]>
13911
13912 PR tree-optimization/117979
13913 * tree-ssa-dce.cc (make_forwarders_with_degenerate_phis):
13914 Properly update the irreducible region state.
13915
13916 2025-01-08 Jakub Jelinek <[email protected]>
13917
13918 * dwarf2out.cc (break_out_comdat_types): Copy over
13919 DW_AT_language_{name,version} if present.
13920 (output_skeleton_debug_sections): Remove also
13921 DW_AT_language_{name,version}.
13922 (gen_compile_unit_die): For C17, C23, C2Y, C++17, C++20, C++23
13923 and C++26 emit for -gdwarf-5 -gno-strict-dwarf also
13924 DW_AT_language_{name,version} attributes.
13925
13926 2025-01-08 Richard Biener <[email protected]>
13927
13928 PR middle-end/118325
13929 * tree-nested.cc (convert_nl_goto_reference): Assign proper
13930 context to generated artificial label.
13931
13932 2025-01-08 Richard Biener <[email protected]>
13933
13934 PR tree-optimization/118269
13935 * tree-vect-loop.cc (vect_create_epilog_for_reduction):
13936 Use the correct stmt for the REDUC_GROUP_FIRST_ELEMENT lookup.
13937
13938 2025-01-08 Christophe Lyon <[email protected]>
13939
13940 PR target/118332
13941 * config/arm/arm-mve-builtins.cc (wrap_type_in_struct): Use 'val'
13942 instead of '__val'.
13943
13944 2025-01-08 Haochen Jiang <[email protected]>
13945
13946 * config/i386/amxavx512intrin.h
13947 (_tile_cvtrowps2pbf16h_internal): Rename to...
13948 (_tile_cvtrowps2bf16h_internal): ...this.
13949 (_tile_cvtrowps2pbf16hi_internal): Rename to...
13950 (_tile_cvtrowps2bf16hi_internal): ...this.
13951 (_tile_cvtrowps2pbf16l_internal): Rename to...
13952 (_tile_cvtrowps2bf16l_internal): ...this.
13953 (_tile_cvtrowps2pbf16li_internal): Rename to...
13954 (_tile_cvtrowps2bf16li_internal): ...this.
13955 (_tile_cvtrowps2pbf16h): Rename to...
13956 (_tile_cvtrowps2bf16h): ...this.
13957 (_tile_cvtrowps2pbf16hi): Rename to...
13958 (_tile_cvtrowps2bf16hi): ...this.
13959 (_tile_cvtrowps2pbf16l): Rename to...
13960 (_tile_cvtrowps2bf16l): ...this.
13961 (_tile_cvtrowps2pbf16li): Rename to...
13962 (_tile_cvtrowps2bf16li): ...this.
13963
13964 2025-01-08 Hongyu Wang <[email protected]>
13965
13966 * config/i386/i386.cc (ix86_noce_max_ifcvt_seq_cost): Adjust
13967 cost with ix86_tune_cost->br_mispredict_scale.
13968 * config/i386/i386.h (processor_costs): Add br_mispredict_scale.
13969 * config/i386/x86-tune-costs.h: Add new br_mispredict_scale to
13970 all processor_costs, in which icelake_cost/alderlake_cost
13971 with value COSTS_N_INSNS (2) + 3 and other processor with value
13972 COSTS_N_INSNS (2).
13973
13974 2025-01-07 Pan Li <[email protected]>
13975
13976 * match.pd: Update comments for sat_* pattern.
13977
13978 2025-01-07 Pan Li <[email protected]>
13979
13980 * match.pd: Extract saturated value match for signed SAT_*.
13981
13982 2025-01-07 Pan Li <[email protected]>
13983
13984 * match.pd: Refactor sorts of signed SAT_TRUNC match patterns
13985
13986 2025-01-07 Pan Li <[email protected]>
13987
13988 * match.pd: Refactor sorts of signed SAT_SUB match patterns.
13989
13990 2025-01-07 Vineet Gupta <[email protected]>
13991 Pan Li <[email protected]>
13992
13993 PR target/117722
13994 * config/riscv/autovec.md: Add uabd expander.
13995
13996 2025-01-07 Tsung Chun Lin <[email protected]>
13997
13998 * expr.cc (widest_fixed_size_mode_for_size): Prefer scalar modes
13999 over vector modes in more cases.
14000
14001 2025-01-07 Andreas Schwab <[email protected]>
14002
14003 PR target/118137
14004 * config/riscv/sync.md ("lrsc_atomic_exchange<mode>"): Apply mask
14005 to shifted value.
14006
14007 2025-01-07 Jeff Law <[email protected]>
14008
14009 * config/ft32/ft32.md (casesi expander): Force operands[2] into
14010 a register if it's not a suitable rimm operand.
14011
14012 2025-01-07 Wilco Dijkstra <[email protected]>
14013
14014 * common/config/aarch64/aarch64-common.cc: Switch off fschedule_insns.
14015
14016 2025-01-07 Wilco Dijkstra <[email protected]>
14017
14018 * config/aarch64/aarch64.md (movhf_aarch64): Use aarch64_valid_fp_move.
14019 (movsf_aarch64): Likewise.
14020 (movdf_aarch64): Likewise.
14021 * config/aarch64/aarch64.cc (aarch64_valid_fp_move): New function.
14022 * config/aarch64/aarch64-protos.h (aarch64_valid_fp_move): Likewise.
14023
14024 2025-01-07 Paul-Antoine Arras <[email protected]>
14025
14026 * gimplify.cc (gimplify_call_expr): Create variable
14027 variant_substituted_p to control whether adjust_args applies.
14028
14029 2025-01-07 Tamar Christina <[email protected]>
14030
14031 PR tree-optimization/114932
14032 * tree-ssa-loop-ivopts.cc (alloc_iv): Perform affine unsigned fold.
14033
14034 2025-01-07 Andrew Pinski <[email protected]>
14035
14036 PR tree-optimization/105769
14037 * cfgexpand.cc (vars_ssa_cache::operator()): For constructors
14038 walk over the elements.
14039
14040 2025-01-07 Andrew Pinski <[email protected]>
14041
14042 PR middle-end/117426
14043 PR middle-end/111422
14044 * cfgexpand.cc (struct vars_ssa_cache): New class.
14045 (vars_ssa_cache::vars_ssa_cache): New constructor.
14046 (vars_ssa_cache::~vars_ssa_cache): New deconstructor.
14047 (vars_ssa_cache::create): New method.
14048 (vars_ssa_cache::exists): New method.
14049 (vars_ssa_cache::add_one): New method.
14050 (vars_ssa_cache::update): New method.
14051 (vars_ssa_cache::dump): New method.
14052 (add_scope_conflicts_2): Factor mostly out to
14053 vars_ssa_cache::operator(). New cache argument.
14054 Walk the bitmap cache for the stack variables addresses.
14055 (vars_ssa_cache::operator()): New method factored out from
14056 add_scope_conflicts_2. Rewrite to be a full walk of all operands
14057 and use a worklist.
14058 (add_scope_conflicts_1): Add cache new argument for the addr cache.
14059 Just call add_scope_conflicts_2 for the phi result instead of calling
14060 for the uses and don't call walk_stmt_load_store_addr_ops for phis.
14061 Update call to add_scope_conflicts_2 to add cache argument.
14062 (add_scope_conflicts): Add cache argument and update calls to
14063 add_scope_conflicts_1.
14064
14065 2025-01-07 Andrew Pinski <[email protected]>
14066
14067 * cfgexpand.cc (INVALID_STACK_INDEX): New defined.
14068 (decl_stack_index): New function.
14069 (visit_op): Use decl_stack_index.
14070 (visit_conflict): Likewise.
14071 (add_scope_conflicts_1): Likewise.
14072
14073 2025-01-07 Richard Biener <[email protected]>
14074
14075 PR rtl-optimization/118298
14076 * loop-unroll.cc (decide_unroll_constant_iterations): Honor
14077 loop->unroll even if the loop is too big for heuristics.
14078
14079 2025-01-07 Deng Jianbo <[email protected]>
14080
14081 * config/loongarch/loongarch.cc (loongarch_output_move):
14082 Optimize instructions for initializing fp regsiter to zero.
14083
14084 2025-01-07 Gaius Mulley <[email protected]>
14085
14086 PR modula2/118010
14087 * doc/gm2.texi (Compiler options): New option
14088 -fm2-file-offset-bits=.
14089
14090 2025-01-07 Jennifer Schmitz <[email protected]>
14091
14092 * tree-vect-stmts.cc (vectorizable_store): Extend the use of
14093 n_adjacent_stores to also cover vec_to_scalar operations.
14094 * config/aarch64/aarch64-tuning-flags.def: Remove
14095 use_new_vector_costs as tuning option.
14096 * config/aarch64/aarch64.cc (aarch64_use_new_vector_costs_p):
14097 Remove.
14098 (aarch64_vector_costs::add_stmt_cost): Remove use of
14099 aarch64_use_new_vector_costs_p.
14100 (aarch64_vector_costs::finish_cost): Remove use of
14101 aarch64_use_new_vector_costs_p.
14102 * config/aarch64/tuning_models/cortexx925.h: Remove
14103 AARCH64_EXTRA_TUNE_USE_NEW_VECTOR_COSTS.
14104 * config/aarch64/tuning_models/fujitsu_monaka.h: Likewise.
14105 * config/aarch64/tuning_models/generic_armv8_a.h: Likewise.
14106 * config/aarch64/tuning_models/generic_armv9_a.h: Likewise.
14107 * config/aarch64/tuning_models/neoverse512tvb.h: Likewise.
14108 * config/aarch64/tuning_models/neoversen2.h: Likewise.
14109 * config/aarch64/tuning_models/neoversen3.h: Likewise.
14110 * config/aarch64/tuning_models/neoversev1.h: Likewise.
14111 * config/aarch64/tuning_models/neoversev2.h: Likewise.
14112 * config/aarch64/tuning_models/neoversev3.h: Likewise.
14113 * config/aarch64/tuning_models/neoversev3ae.h: Likewise.
14114
14115 2025-01-06 Alexandre Oliva <[email protected]>
14116
14117 PR middle-end/118006
14118 * cfgexpand.cc (expand_gimple_basic_block): Do not emit
14119 pending stack adjustments after a barrier.
14120
14121 2025-01-06 Akram Ahmad <[email protected]>
14122
14123 * config/aarch64/aarch64-simd.md: (*aarch64_trunc_concat)
14124 new insn definition.
14125
14126 2025-01-06 Fangrui Song <[email protected]>
14127
14128 PR gcov-profile/96092
14129 * coverage.cc (coverage_init): Remap getpwd().
14130
14131 2025-01-06 Jennifer Schmitz <[email protected]>
14132
14133 * config/aarch64/aarch64-sve-builtins-base.cc
14134 (svmul_impl::fold): Wrap code for folding to svneg in lambda
14135 function and pass to gimple_folder::convert_and_fold to enable
14136 the transform for unsigned types.
14137 * config/aarch64/aarch64-sve-builtins.cc
14138 (gimple_folder::convert_and_fold): New function that converts
14139 operands to target type before calling callback function, adding the
14140 necessary conversion statements.
14141 (gimple_folder::redirect_call): Set fntype of redirected call.
14142 (get_vector_type): Move from here to aarch64-sve-builtins.h.
14143 * config/aarch64/aarch64-sve-builtins.h
14144 (gimple_folder::convert_and_fold): Declare function.
14145 (get_vector_type): Move here as inline function.
14146
14147 2025-01-06 Martin Jambor <[email protected]>
14148
14149 * ipa-cp.cc (ipcp_print_widest_int): New function.
14150 (ipcp_store_vr_results): Use it.
14151 (ipcp_bits_lattice::print): Likewise. Fix formatting.
14152
14153 2025-01-06 Mark Wielaard <[email protected]>
14154
14155 PR tree-optimization/118032
14156 * tree-switch-conversion.cc (jump_table_cluster::find_jump_tables):
14157 Remove param_switch_lower_slow_alg_max_cases check.
14158
14159 2025-01-06 Tamar Christina <[email protected]>
14160
14161 PR target/96342
14162 PR target/118272
14163 * config/aarch64/aarch64-sve.md (vec_init<mode><Vquad>,
14164 vec_initvnx16qivnx2qi): New.
14165 * config/aarch64/aarch64.cc (aarch64_sve_expand_vector_init_subvector):
14166 Rewrite to support any arbitrary combinations.
14167 * config/aarch64/iterators.md (SVE_NO2E): Update to use SVE_NO4E
14168 (SVE_NO2E, Vquad): New.
14169
14170 2025-01-06 Jakub Jelinek <[email protected]>
14171
14172 PR tree-optimization/118224
14173 * tree-ssa-dce.cc (is_removable_allocation_p): Don't return true
14174 for allocations with constant size argument larger than PTRDIFF_MAX
14175 or for calloc with one of the arguments constant larger than
14176 PTRDIFF_MAX or their product known constant above PTRDIFF_MAX.
14177 Fix comment typos, furhter -> further and then -> than.
14178 * lto-section-in.cc (lto_free_function_in_decl_state_for_node):
14179 Fix comment typo, furhter -> further.
14180
14181 2025-01-04 Hans-Peter Nilsson <[email protected]>
14182
14183 * config/mmix/mmix.cc (mmix_asm_output_labelref): Replace '.'
14184 with '::'.
14185 * config/mmix/mmix.h (ASM_PN_FORMAT): Define to actual default.
14186
14187 2025-01-03 Richard Sandiford <[email protected]>
14188
14189 PR rtl-optimization/117938
14190 * rtlanal.cc (rtx_properties::try_to_add_dest): Treat writes
14191 to the stack pointer as also writing to memory.
14192
14193 2025-01-03 Jakub Jelinek <[email protected]>
14194
14195 PR c++/118275
14196 * varasm.cc (array_size_for_constructor): Use build_int_cst
14197 with TREE_TYPE (index) as first argument, instead of bitsize_int.
14198
14199 2025-01-03 Jakub Jelinek <[email protected]>
14200
14201 * tree-ssa-forwprop.cc (check_ctz_array): Use tree_fits_shwi_p instead
14202 of just TREE_CODE tests for INTEGER_CST.
14203
14204 2025-01-03 Jose E. Marchesi <[email protected]>
14205
14206 * config.gcc: install a wrapping stdint.h in bpf targets.
14207
14208 2025-01-02 Paul-Antoine Arras <[email protected]>
14209
14210 * gimplify.cc (gimplify_call_expr): Fix handling of need_device_ptr for
14211 type(c_ptr). Fix handling of nested function calls in a dispatch region.
14212 (find_ifn_gomp_dispatch): Return the IFN without stripping it.
14213 (gimplify_omp_dispatch): Keep IFN_GOMP_DISPATCH until
14214 gimplify_call_expr.
14215
14216 2025-01-02 Tobias Burnus <[email protected]>
14217
14218 * doc/install.texi (amdgcn-x-amdhsa): Refer to Newlib 4.5.0 for
14219 the I/O locking fixes.
14220
14221 2025-01-02 Richard Biener <[email protected]>
14222
14223 PR tree-optimization/118171
14224 * tree-ssa-pre.cc (create_component_ref_by_pieces_1): Do not
14225 fold any component ref parts.
14226
14227 2025-01-02 Richard Sandiford <[email protected]>
14228
14229 PR target/118184
14230 * config/aarch64/aarch64-early-ra.cc (allocno_assignment_is_rmw):
14231 New function.
14232 (early_ra::record_insn_defs): Mark the live range information as
14233 untrustworthy if an assignment would change part of an allocno
14234 but preserve the rest.
14235
14236 2025-01-02 Jakub Jelinek <[email protected]>
14237
14238 * tree-ssa-forwprop.cc (check_ctz_array): Handle also RAW_DATA_CST
14239 in the CONSTRUCTOR_ELTS.
14240
14241 2025-01-02 Jakub Jelinek <[email protected]>
14242
14243 * doc/libgdiagnostics/conf.py: Use u'' instead of '' in
14244 project and copyright initialization.
14245
14246 2025-01-02 Jakub Jelinek <[email protected]>
14247
14248 * gcc.cc (process_command): Update copyright notice dates.
14249 * gcov-dump.cc (print_version): Ditto.
14250 * gcov.cc (print_version): Ditto.
14251 * gcov-tool.cc (print_version): Ditto.
14252 * gengtype.cc (create_file): Ditto.
14253 * doc/cpp.texi: Bump @copying's copyright year.
14254 * doc/cppinternals.texi: Ditto.
14255 * doc/gcc.texi: Ditto.
14256 * doc/gccint.texi: Ditto.
14257 * doc/gcov.texi: Ditto.
14258 * doc/install.texi: Ditto.
14259 * doc/invoke.texi: Ditto.
14260
14261 2025-01-02 Guo Jie <[email protected]>
14262
14263 * config/loongarch/loongarch.cc
14264 (loongarch_expand_conditional_move): Add some optimization
14265 implementations based on noce_try_cmove_arith.
14266
14267 2025-01-02 Guo Jie <[email protected]>
14268
14269 * config/loongarch/lasx.md (lasx_xvabsd_s_<lasxfmt>): Remove.
14270 (<su>abd<mode>3): New insn pattern.
14271 (lasx_xvabsd_u_<lasxfmt_u>): Remove.
14272 * config/loongarch/loongarch-builtins.cc (CODE_FOR_lsx_vabsd_b):
14273 Rename.
14274 (CODE_FOR_lsx_vabsd_h): Ditto.
14275 (CODE_FOR_lsx_vabsd_w): Ditto.
14276 (CODE_FOR_lsx_vabsd_d): Ditto.
14277 (CODE_FOR_lsx_vabsd_bu): Ditto.
14278 (CODE_FOR_lsx_vabsd_hu): Ditto.
14279 (CODE_FOR_lsx_vabsd_wu): Ditto.
14280 (CODE_FOR_lsx_vabsd_du): Ditto.
14281 (CODE_FOR_lasx_xvabsd_b): Ditto.
14282 (CODE_FOR_lasx_xvabsd_h): Ditto.
14283 (CODE_FOR_lasx_xvabsd_w): Ditto.
14284 (CODE_FOR_lasx_xvabsd_d): Ditto.
14285 (CODE_FOR_lasx_xvabsd_bu): Ditto.
14286 (CODE_FOR_lasx_xvabsd_hu): Ditto.
14287 (CODE_FOR_lasx_xvabsd_wu): Ditto.
14288 (CODE_FOR_lasx_xvabsd_du): Ditto.
14289 * config/loongarch/loongarch.md (u): Add smax/umax.
14290 * config/loongarch/lsx.md (SU_MAX): New iterator.
14291 (su_min): New attr.
14292 (lsx_vabsd_s_<lsxfmt>): Remove.
14293 (<su>abd<mode>3): New insn pattern.
14294 (lsx_vabsd_u_<lsxfmt_u>): Remove.
14295
14296 2025-01-02 Guo Jie <[email protected]>
14297
14298 * config/loongarch/lasx.md (vec_unpacks_lo_<mode>): Redefine.
14299 (vec_unpacku_lo_<mode>): Ditto.
14300 (lasx_vext2xv_h<u>_b<u>): Replaced by vec_unpack<su>_lo_v32qi.
14301 (vec_unpack<su>_lo_v32qi): New insn.
14302 (lasx_vext2xv_w<u>_h<u>): Replaced by vec_unpack<su>_lo_v16hi.
14303 (vec_unpack<su>_lo_v16qi_internal): New insn, for 128 bits.
14304 (vec_unpack<su>_lo_v16hi): New insn.
14305 (lasx_vext2xv_d<u>_w<u>): Replaced by vec_unpack<su>_lo_v8si.
14306 (vec_unpack<su>_lo_v8hi_internal): New insn, for 128 bits.
14307 (vec_unpack<su>_lo_v8si): New insn.
14308 (vec_unpack<su>_lo_v4si_internal): New insn, for 128 bits.
14309 (vec_packs_float_v4di): New expander.
14310 (vec_pack_sfix_trunc_v4df): Ditto.
14311 (vec_unpacks_float_hi_v8si): Ditto.
14312 (vec_unpacks_float_lo_v8si): Ditto.
14313 (vec_unpack_sfix_trunc_hi_v8sf): Ditto.
14314 (vec_unpack_sfix_trunc_lo_v8sf): Ditto.
14315 * config/loongarch/loongarch-builtins.cc
14316 (CODE_FOR_lsx_vftintrz_w_d): Rename.
14317 (CODE_FOR_lsx_vftintrzh_l_s): Ditto.
14318 (CODE_FOR_lsx_vftintrzl_l_s): Ditto.
14319 (CODE_FOR_lsx_vffint_s_l): Ditto.
14320 (CODE_FOR_lsx_vffinth_d_w): Ditto.
14321 (CODE_FOR_lsx_vffintl_d_w): Ditto.
14322 (CODE_FOR_lsx_vexth_h_b): Ditto.
14323 (CODE_FOR_lsx_vexth_w_h): Ditto.
14324 (CODE_FOR_lsx_vexth_d_w): Ditto.
14325 (CODE_FOR_lsx_vexth_hu_bu): Ditto.
14326 (CODE_FOR_lsx_vexth_wu_hu): Ditto.
14327 (CODE_FOR_lsx_vexth_du_wu): Ditto.
14328 (CODE_FOR_lsx_vfcvth_d_s): Ditto.
14329 (CODE_FOR_lsx_vfcvtl_d_s): Ditto.
14330 (CODE_FOR_lasx_vext2xv_h_b): Ditto.
14331 (CODE_FOR_lasx_vext2xv_w_h): Ditto.
14332 (CODE_FOR_lasx_vext2xv_d_w): Ditto.
14333 (CODE_FOR_lasx_vext2xv_hu_bu): Ditto.
14334 (CODE_FOR_lasx_vext2xv_wu_hu): Ditto.
14335 (CODE_FOR_lasx_vext2xv_du_wu): Ditto.
14336 (loongarch_expand_builtin_insn): Swap source operands in
14337 CODE_FOR_lsx_vftintrz_w_d and CODE_FOR_lsx_vffint_s_l.
14338 * config/loongarch/loongarch-protos.h
14339 (loongarch_expand_vec_unpack): Remove useless parameter high_p.
14340 * config/loongarch/loongarch.cc (loongarch_expand_vec_unpack):
14341 Rewrite.
14342 * config/loongarch/lsx.md (vec_unpacks_hi_v4sf): Redefine.
14343 (vec_unpacks_lo_v4sf): Ditto.
14344 (vec_unpacks_hi_<mode>): Ditto.
14345 (vec_unpacku_hi_<mode>): Ditto.
14346 (lsx_vfcvth_d_s): Replaced by vec_unpacks_hi_v4sf.
14347 (lsx_vfcvtl_d_s): Replaced by vec_unpacks_lo_v4sf.
14348 (lsx_vffint_s_l): Replaced by vec_packs_float_v2di.
14349 (vec_packs_float_v2di): New insn.
14350 (lsx_vftintrz_w_d): Replaced by vec_pack_sfix_trunc_v2df.
14351 (vec_pack_sfix_trunc_v2df): New insn.
14352 (lsx_vffinth_d_w): Replaced by vec_unpacks_float_hi_v4si.
14353 (vec_unpacks_float_hi_v4si): New insn.
14354 (lsx_vffintl_d_w): Replaced by vec_unpacks_float_lo_v4si.
14355 (vec_unpacks_float_lo_v4si): New insn.
14356 (lsx_vftintrzh_l_s): Replaced by vec_unpack_sfix_trunc_hi_v4sf.
14357 (vec_unpack_sfix_trunc_hi_v4sf): New insn.
14358 (lsx_vftintrzl_l_s): Replaced by vec_unpack_sfix_trunc_lo_v4sf.
14359 (vec_unpack_sfix_trunc_lo_v4sf): New insn.
14360 (lsx_vexth_h<u>_b<u>): Replaced by vec_unpack<su>_hi_v16qi.
14361 (vec_unpack<su>_hi_v16qi): New insn.
14362 (lsx_vexth_w<u>_h<u>): Replaced by vec_unpack<su>_hi_v8hi.
14363 (vec_unpack<su>_hi_v8hi): New insn.
14364 (lsx_vexth_d<u>_w<u>): Replaced by vec_unpack<su>_hi_v4si.
14365 (vec_unpack<su>_hi_v4si): New insn.
14366
14367 2025-01-02 Guo Jie <[email protected]>
14368
14369 * config/loongarch/loongarch.md
14370 (bytepick_d_<bytepick_imm>_rev): New combiner.
14371 (bstrpick_alsl_paired): Reorder input operands.
14372
14373 2025-01-02 Guo Jie <[email protected]>
14374
14375 * config/loongarch/lasx.md: Remove useless vec_select.
14376 * config/loongarch/predicates.md: Correct error predicate.
14377
14378 2025-01-02 Guo Jie <[email protected]>
14379
14380 * config/loongarch/lasx.md: Fix selector index.
14381
14382 2025-01-02 Guo Jie <[email protected]>
14383
14384 * config/loongarch/lasx.md: Remove useless code.
14385 * config/loongarch/lsx.md: Ditto.
14386
14387 2025-01-01 Sam James <[email protected]>
14388
14389 * doc/cpp.texi (Common Predefined Macros): Fix syntax.
14390
14391 2025-01-01 Richard Biener <[email protected]>
14392
14393 PR middle-end/118174
14394 * tree-outof-ssa.cc (ssa_is_replaceable_p): Exclude tailcalls.
14395
14396 2025-01-01 Sandra Loosemore <[email protected]>
14397
14398 * doc/invoke.texi (Option Summary): Put "M32C Options" and
14399 "Cygwin and MinGW Options" in alphabetical order. Add
14400 cross-references.
14401 (Cygwin and MinGW Options): Likewise move the section to its
14402 correct alphabetical location.
14403 * config/lynx.opt.urls: Regenerated.
14404 * config/mingw/cygming.opt.urls: Regenerated.
14405
14406 Copyright (C) 2025 Free Software Foundation, Inc.
14407
14408 Copying and distribution of this file, with or without modification,
14409 are permitted in any medium without royalty provided the copyright
14410 notice and this notice are preserved.