Building a test dir on HP-UX 11.31 with HP cc, I'm seeing this build failure:
cpp: "../../gltests/test-intprops.c", line 371: error 4018: Macro param too large after substitution - use -H option. gmake[3]: *** [test-intprops.o] Error 1 There are two ways to fix it: (a) Add an option -Wp,-Hnnnn where nnnn ≥ 65793 to the command line, such as -Wp,-H65793. (b) Skip this particular line of the test. It would be time consuming for all users on HP-UX of all packages that use gnulib, to find out and apply option (a). Therefore option (b) is preferrable. 2019-09-15 Bruno Haible <br...@clisp.org> intprops tests: Avoid build failure with HP-UX cc. * tests/test-intprops.c: Disable a check that makes HP cc choke with "error 4018: Macro param too large after substitution - use -H option.". diff --git a/tests/test-intprops.c b/tests/test-intprops.c index be0c6b3..1837f7b 100644 --- a/tests/test-intprops.c +++ b/tests/test-intprops.c @@ -368,7 +368,9 @@ main (void) CHECK_PRODUCT (INT_MAX, UINT_MAX, unsigned int, true, INT_MAX * UINT_MAX); CHECK_PRODUCT (INT_MAX, ULONG_MAX, unsigned long int, true, INT_MAX * ULONG_MAX); +#if !defined __HP_cc CHECK_SPRODUCT (INT_MIN, LONG_MAX / INT_MIN - 1, long int, true, LONG_MIN); +#endif CHECK_SPRODUCT (INT_MIN, LONG_MAX / INT_MIN, long int, false, DONTCARE); CHECK_PRODUCT (INT_MIN, UINT_MAX, unsigned int, true, INT_MIN * UINT_MAX); CHECK_PRODUCT (INT_MIN, ULONG_MAX, unsigned long int, true,