aboutsummaryrefslogtreecommitdiff
path: root/libgcc/config/rl78/anddi3.S
diff options
context:
space:
mode:
authorPiotr Trojanek <trojanek@adacore.com>2024-10-15 10:53:47 +0200
committerMarc Poulhiès <dkm@gcc.gnu.org>2024-11-04 16:58:00 +0100
commit899b5be8b9720e381c7ea99ba27a4cbb165c003b (patch)
tree70236ce32dbaf3ef72d78298d388ce69c48d65d5 /libgcc/config/rl78/anddi3.S
parent023a5dd187b1b08979bc0654334e75e7b2c15eaa (diff)
downloadgcc-master.zip
gcc-master.tar.gz
gcc-master.tar.bz2
ada: Move special case for null string literal from frontend to backendHEADtrunkmaster
Previously the lower bound of string literals indexed by non-static integer types was artificially set to 1 in the frontend. This was to avoid an overflow in calculation of a null string size by the GCC backend, which was causing an excessively large binary object file. However, setting the lower bound to 1 was problematic for GNATprove, which could not easily retrieve the lower bound of string literals. This patch avoids the overflow in GCC by recognizing null string literal subtypes in Gigi. gcc/ada/ChangeLog: * gcc-interface/decl.cc (gnat_to_gnu_entity): Recognize null string literal subtypes and set their bounds to 1 .. 0.
Diffstat (limited to 'libgcc/config/rl78/anddi3.S')
0 files changed, 0 insertions, 0 deletions