[PATCH] libiberty: Don't use VLAs if __STDC_NO_VLA__ is non-zero

2019-05-30 Thread Michael Forney
VLAs are optional in C11, and an implementation that does not support them will define __STDC_NO_VLA__ to 1. 2019-05-30 Michael Forney * cp-demangle.c: Don't define CP_DYNAMIC_ARRAYS if __STDC_NO_VLA__ is non-zero. --- libiberty/cp-demangle.c | 4 ++-- 1 file chang

[PATCH] Add CXX_FOR_BUILD to HOST_EXPORTS

2019-06-18 Thread Michael Forney
gcc/configure needs this to generate auto-build.h using the right C++ compiler. 2019-06-18 Michael Forney * Makefile.tpl (HOST_EXPORTS): Add CXX_FOR_BUILD. * Makefile.in: Regenerate. --- I ran into this since I needed to pass some special flags to the build C++ compiler for

[PATCH] libiberty: Only declare vasprintf if it was checked for

2019-04-22 Thread Michael Forney
). 2019-04-22 Michael Forney * libiberty.h (vasprintf): Don't declare if HAVE_DECL_VASPRINTF is not defined. --- include/libiberty.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/libiberty.h b/include/libiberty.h index 57476135026..e11aa9

[PATCH] Add XGCC_FLAGS_FOR_TARGET to CXX in POSTSTAGE1_CXX_EXPORT

2020-03-25 Thread Michael Forney
This contains the necessary sysroot flags if configured with --with-build-sysroot, and matches the corresponding value for CC in POSTSTAGE1_HOST_EXPORTS. 2020-03-25 Michael Forney * Makefile.tpl (POSTSTAGE1_HOST_EXPORTS): Add XGCC_FLAGS_FOR_TARGET and TFLAGS to CXX

[PATCH] config: Backport "Rely less on internal symbols" (serial 68) to gettext.m4

2021-05-23 Thread Michael Forney
=commit;h=b67399b4 2021-05-23 Michael Forney config/ChangeLog: * gettext.m4 (AM_GNU_GETTEXT): Skip checks for the internal symbols _nl_msg_cat_cntr, _nl_domain_bindings, and _nl_expand_alias, if __GNU_GETTEXT_SUPPORTED_REVISION is defined. Backport of gettext

[PATCH] libsanitizer: asan: Always skip first object from dl_iterate_phdr

2022-04-19 Thread Michael Forney
All platforms return the main executable as the first dl_phdr_info. FreeBSD, NetBSD, Solaris, and Linux-musl place the executable name in the dlpi_name field of this entry. It appears that only Linux-glibc uses the empty string. To make this work generically on all platforms, unconditionally skip