]> gcc.gnu.org Git - gcc.git/commit
middle-end/103271 - avoid VLA init of register
authorRichard Biener <rguenther@suse.de>
Thu, 2 Dec 2021 11:23:22 +0000 (12:23 +0100)
committerRichard Biener <rguenther@suse.de>
Thu, 2 Dec 2021 12:35:19 +0000 (13:35 +0100)
commit06b8cdc8d7339ac44802044ef148dd86874333d8
treeddedbdd6e0a78b9174acda8f6448c03d2ca589d6
parent70ece2d4ca403dfc6a837d876642378a8d4d3dce
middle-end/103271 - avoid VLA init of register

This avoids using VLA types to initalize a register with
-ftrivial-auto-var-init in some cases.

2021-12-02  Richard Biener  <rguenther@suse.de>

PR middle-end/103271
* internal-fn.c (expand_DEFERRED_INIT): When the base
of the LHS is a decl with matching constant size use
that as the initialization target instead of an
eventual VLA typed one.
gcc/internal-fn.c
This page took 0.060418 seconds and 5 git commands to generate.