On Wed, Apr 21, 2021 at 11:39 AM Martin Liška <mli...@suse.cz> wrote: > > On 4/21/21 9:32 AM, Arnaud Charlet wrote: > >> gcc/ada/ChangeLog: > >> > >> * adadecode.c (has_prefix): Remove has_prefix and replace it > >> with startswith. > >> (__gnat_decode): Likewise. > > > > This change is not OK: adadecode.c is also a runtime file and as such cannot > > include compiler include files. > > > >> * gcc-interface/utils.c (def_builtin_1): Use startswith > >> function instead of strncmp. > > > >> * init.c (__gnat_install_handler): Likewise. > > > > Same for init.c which is both a host and a runtime/target file. > > > > Only the change in utils.c is OK. > > > > Arno > > > > Thank you for a quick reply. > > There's an updated version of the patch.
OK. Thanks, Richard. > Cheers, > Martin