aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-loop-manip.cc
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2023-07-11 13:29:55 +0200
committerMarc Poulhiès <poulhies@adacore.com>2023-07-28 09:28:14 +0200
commit42fcc7503af42314369e84e9a2cecc04deef0aad (patch)
tree120e639acbc357a01a3d0386d476ef0abff3d79e /gcc/tree-ssa-loop-manip.cc
parent39e183a6780e4f62ac356198ec8f72a817693b89 (diff)
downloadgcc-42fcc7503af42314369e84e9a2cecc04deef0aad.zip
gcc-42fcc7503af42314369e84e9a2cecc04deef0aad.tar.gz
gcc-42fcc7503af42314369e84e9a2cecc04deef0aad.tar.bz2
ada: Fix memory explosion on aggregate of nested packed array type
It occurs at compile time on an aggregate of a 2-dimensional packed array type whose component type is itself a packed array, because the compiler is trying to pack the intermediate aggregate and ends up rewriting a bunch of subcomponents. This optimization was originally devised for the case of a scalar component type so the change adds this restriction. gcc/ada/ * exp_aggr.adb (Is_Two_Dim_Packed_Array): Return true only if the component type of the array is scalar.
Diffstat (limited to 'gcc/tree-ssa-loop-manip.cc')
0 files changed, 0 insertions, 0 deletions