From mboxrd@z Thu Jan 1 00:00:00 1970 From: Don Bowman To: gas2@cygnus.com Subject: Diff for as.h in gas to compile on hpux Date: Mon, 13 May 1996 15:05:00 -0000 Message-id: <199605132205.AA155435102@hppadap.waterloo.hp.com> X-SW-Source: 1996/msg00028.html The change is actually neither mips nor hpux specific: notably, the assert-mask had an odd-format I did not understand: #define assert(p) ((P) ? 0 : (as_assert (...))) which meant it evaluated to be 0, or the return of as_assert(), instead of void. The hp-ux 9.05 c-compiler did not like one of the uses of this, which became: (blah) ? 0 : as_assert(); or 0; after optimisation The following diff against as.h just changes the assert macro to be an if statement. *** as.h@@/main/LATEST Fri Mar 22 11:44:19 1996 --- as.h Mon May 13 17:25:50 1996 *************** *** 121,127 **** #else ! #define assert(P) ((P) ? 0 : (as_assert (__FILE__, __LINE__, __PRETTY_FUNCTION__), 0)) #undef abort #define abort() as_abort (__FILE__, __LINE__, __PRETTY_FUNCTION__) --- 121,127 ---- #else ! #define assert(P) if (P) (as_assert (__FILE__, __LINE__, __PRETTY_FUNCTION__), 0) #undef abort #define abort() as_abort (__FILE__, __LINE__, __PRETTY_FUNCTION__) -- Don Bowman ** bowman@waterloo.hp.com ** 519-883-3019