gcc/ada/ChangeLog:
* libgnat/a-strsup.adb (Super_Delete): Fix index check.
* libgnat/a-stwisu.adb (Super_Delete): Likewise.
* libgnat/a-stzsup.adb (Super_Delete): Likewise.
if Num_Delete <= 0 then
return Source;
- elsif From - 1 > Slen then
+ elsif From > Slen then
raise Ada.Strings.Index_Error;
elsif Through >= Slen then
if Num_Delete <= 0 then
return;
- elsif From - 1 > Slen then
+ elsif From > Slen then
raise Ada.Strings.Index_Error;
elsif Through >= Slen then
if Num_Delete <= 0 then
return Source;
- elsif From > Slen + 1 then
+ elsif From > Slen then
raise Ada.Strings.Index_Error;
elsif Through >= Slen then
if Num_Delete <= 0 then
return;
- elsif From > Slen + 1 then
+ elsif From > Slen then
raise Ada.Strings.Index_Error;
elsif Through >= Slen then
if Num_Delete <= 0 then
return Source;
- elsif From > Slen + 1 then
+ elsif From > Slen then
raise Ada.Strings.Index_Error;
elsif Through >= Slen then
if Num_Delete <= 0 then
return;
- elsif From > Slen + 1 then
+ elsif From > Slen then
raise Ada.Strings.Index_Error;
elsif Through >= Slen then