diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2019-07-22 13:56:55 +0000 |
---|---|---|
committer | Pierre-Marie de Rodat <pmderodat@gcc.gnu.org> | 2019-07-22 13:56:55 +0000 |
commit | 52860cc145a7075a9f30840703f96b242cd0150f (patch) | |
tree | d2c89e2e6587d36af6c2b95c94a23dbeb3c04cc5 /gcc/tree-cfg.c | |
parent | f3d2fbfdb83bcc60d72824daf7a470c0e5398854 (diff) | |
download | gcc-52860cc145a7075a9f30840703f96b242cd0150f.zip gcc-52860cc145a7075a9f30840703f96b242cd0150f.tar.gz gcc-52860cc145a7075a9f30840703f96b242cd0150f.tar.bz2 |
[Ada] Fix wrong assumption on bounds in GNAT.Encode_String
This fixes a couple of oversights in the GNAT.Encode_String package,
whose effect is to assume that all the strings have a lower bound of 1.
2019-07-22 Eric Botcazou <ebotcazou@adacore.com>
gcc/ada/
* libgnat/g-encstr.adb (Encode_Wide_String): Fix oversight.
(Encode_Wide_Wide_String): Likewise.
gcc/testsuite/
* gnat.dg/encode_string1.adb, gnat.dg/encode_string1_pkg.adb,
gnat.dg/encode_string1_pkg.ads: New testcase.
From-SVN: r273674
Diffstat (limited to 'gcc/tree-cfg.c')
0 files changed, 0 insertions, 0 deletions