On Mon, 2025-07-21 at 16:57 +0200, Stefan Schulze Frielinghaus wrote: > The generated file tm-preds.h contains now: > > static inline size_t > insn_constraint_len (char fc, const char *str) > { > ... > > if (str[0] == '{') > return ((const char *) rawmemchr (str + 1, '}') - str) + 1; > return 1; > } > > For some reason on all targets I tested, string.h is included. I will > have a look and see whether string.h may be included easily here, too. > If the dependency to string.h is not wanted, I could also come up with a > simple loop.
It's not if string.h is included. It's if string.h provides rawmemchr. rawmemchr is not a standard C function. It's a GNU extension and GCC is expected to work on various non-GNU systems. -- Xi Ruoyao <xry...@xry111.site>