This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH Replace index() with strchr() in read-rtl.c


"Aaron W. LaFramboise" <aaronavay62@aaronwl.com> writes:
> Kaveh R. Ghazi wrote:
>> Eh?  I'm not asking why the developer *chose* index.  Rather I'm
>> asking, why didn't libiberty provide it once it became clear his
>> system didn't do so.

For the record, that's what I was expecting to happen, but...

> Well, compile failed with -Werror because there was no prototype found,
> since MinGW has no such function, and libiberty.h does not prototype it.
>  I suspect that release builds would still work.

...that didn't occur to me, sorry.  I'll know in future that strstr()
is the preferred choice.

Richard


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]