bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

intprops tests: fix compilation errors on HP-UX/ia64 with cc


From: Bruno Haible
Subject: intprops tests: fix compilation errors on HP-UX/ia64 with cc
Date: Sat, 12 Oct 2019 12:57:21 +0200
User-agent: KMail/5.1.3 (Linux/4.4.0-165-generic; KDE/5.18.0; x86_64; ; )

The earlier commit

        2019-09-15  Bruno Haible  <address@hidden>

                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.".

fixed things only for HP-UX cc on hppa. On ia64 there are similar errors in
two more places.


2019-10-12  Bruno Haible  <address@hidden>

        intprops tests: Fix compilation errors on HP-UX/ia64 with cc.
        * tests/test-intprops.c (main): Disable two more tests when using
        HP-UX cc.

diff --git a/tests/test-intprops.c b/tests/test-intprops.c
index 1837f7b..01efb29 100644
--- a/tests/test-intprops.c
+++ b/tests/test-intprops.c
@@ -218,8 +218,10 @@ main (void)
   CHECK_SBINOP (*, MULTIPLY, INT_MIN, INT_MIN, int, true, 0);
   CHECK_SBINOP (*, MULTIPLY, -1, INT_MIN, int,
                 INT_NEGATE_OVERFLOW (INT_MIN), INT_MIN);
+#if !defined __HP_cc
   CHECK_SBINOP (*, MULTIPLY, LONG_MIN / INT_MAX, (long int) INT_MAX,
                 long int, false, LONG_MIN - LONG_MIN % INT_MAX);
+#endif
 
   CHECK_BINOP (/, DIVIDE, INT_MIN, -1, int,
                INT_NEGATE_OVERFLOW (INT_MIN), INT_MIN);
@@ -370,8 +372,8 @@ main (void)
                  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);
+#endif
   CHECK_PRODUCT (INT_MIN, UINT_MAX, unsigned int, true, INT_MIN * UINT_MAX);
   CHECK_PRODUCT (INT_MIN, ULONG_MAX, unsigned long int, true,
                  INT_MIN * ULONG_MAX);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]