This is the mail archive of the gas2@sourceware.cygnus.com mailing list for the gas2 project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
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