Re: what's up with _COMPILING_NEWLIB
Mike Frysinger <[email protected]>
| Newsgroups | gmane.comp.lib.newlib |
|---|---|
| Message-ID | <YYkOBGkuwFNIthiy@vapier> |
On 08 Nov 2021 11:05, Corinna Vinschen wrote: > On Nov 6 20:21, Mike Frysinger wrote: > > i stumbled across _COMPILING_NEWLIB and it seems to be what i want: a symbol > > that indicates the code currently being compiled is newlib itself so that the > > header can change behavior for that environment specifically. is that what > > it's meant for ? > > > > if so, why does it seem to be inconsistently defined ? newlib/configure.host > > will add it for a few random targets, as does the mips-specific > > newlib/libc/machine/mips/Makefile.am, as do a few specific winsup/cygwin/ > > files. it feels like the patch below is what we should have. > > > > if that's not what this is for, is there a define that has this meaning ? > > in the glibc & gnulib world, the plain _LIBC define indicates this. > > _COMPILING_NEWLIB might be older than that. In Cygwin we certainly need > it during build. Your patch looks good to me, did you test it for some > targets? yes, i tested it for bfin-elf and with a change that needed it in ctype.h. the ctype.h change didn't work until i updated the build this way. -mike
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEuQK1JxMl+JKsJRrUQWM7n+g39YEFAmGJDgQACgkQQWM7n+g3 9YEUSg//ZBnd643Ddbpb+JLKaUyEPF18XltNwyZoCk5zhqlxXIw7reKFPypvGZmy Gy0ONJ57ZF8IqKxtKcgn4LgYMUm18WAdkxdC4Grd969AikXPvtqx3lu4uXr/EP90 S6U20Qx13CQ7VMCmTVghStnFSPn8tQOKjV/Mg87JTT07+yfQXGjgj4i5oQo1S7MC DbxcgyMctSq960HWEV+NRLeq+ZemzjVHLO8J2S02cibHf5B3FLPojfbW1mT03K/5 00WQYUclx9x+DJtiQGyl/JTeN6dsV+Yd+c9TTBOwk3Uu+AtPxWk0FuVfdkHsy1a2 VIyr+/wS7Rfydr6PDMlSZkBLU0XgywpZzKkBLAVFyXPahYZRZT2OEAL9TX6yWFQE EaQXu8te/AAxFCFIi256LlHOE8BCDHJVjDVx/RaGV72Y5zAuKpifRd55i1dPiVjK maoRjr0Nym+xNfrSGZYg0N04TZFyyW1lg0IYgqtc36DPfDSCq89e/zHFX5wkDDsF xnygbL6Cwz3SvhSHD/28teqbFZcrDW1VRrhPybkEWcYYKKt4ARSGsX8rAcBPUAt/ QRMMB51NWqBK/58eDjow2+sk/141X7ckfYA/HtdatB9PsGdq5MdmfDOVYB06UJ7o WseZc4WRX0n3XGJeB5SPV566mEVOj/1QhiW2qVmrTPYsmQpW3uY= =sn4j -----END PGP SIGNATURE-----