diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2024-07-11 10:49:13 +0200 |
---|---|---|
committer | Eric Botcazou <ebotcazou@adacore.com> | 2024-07-11 13:40:24 +0200 |
commit | 738711703db9f42490f06211a3e8fba07a84dbce (patch) | |
tree | 2321b940a692b213d26721d65c67c6dd9292e538 /libbacktrace/dwarf.c | |
parent | 077f16b249346b560169cf89849779272327a2da (diff) | |
download | gcc-738711703db9f42490f06211a3e8fba07a84dbce.zip gcc-738711703db9f42490f06211a3e8fba07a84dbce.tar.gz gcc-738711703db9f42490f06211a3e8fba07a84dbce.tar.bz2 |
Fix gimplification of ordering comparisons of arrays of bytes
The Ada compiler now defers to the gimplifier for ordering comparisons of
arrays of bytes (Ada parlance for <, >, <= and >=) because the gimplifier
in turn defers to memcmp for them, which implements the required semantics.
However, the gimplifier has a special processing for aggregate types whose
mode is not BLKmode and this processing deviates from the memcmp semantics
when the target is little-endian.
gcc/
* gimplify.cc (gimplify_scalar_mode_aggregate_compare): Add support
for ordering comparisons.
(gimplify_expr) <default>: Call gimplify_scalar_mode_aggregate_compare
only for integral scalar modes.
gcc/testsuite/
* gnat.dg/array42.adb, gnat.dg/array42_pkg.ads: New test.
Diffstat (limited to 'libbacktrace/dwarf.c')
0 files changed, 0 insertions, 0 deletions