make it compile on rs6k: declare free, disable assertions, don't define M_RS6000

This commit is contained in:
Ken Raeburn 1992-08-13 20:55:03 +00:00
parent 6bf2e3a762
commit c8c7e0bf25
3 changed files with 28 additions and 3 deletions

View File

@ -1,3 +1,11 @@
Thu Aug 13 13:53:19 1992 Ken Raeburn (raeburn@cygnus.com)
* as.h [BROKEN_ASSERT]: If defined, turn off all assertion checks.
* config/ho-rs6000.h (M_RS6000): Don't define it.
(free): Declare it.
(BROKEN_ASSERT): Define it if not __STDC__.
Thu Aug 6 12:10:39 1992 Steve Chamberlain (sac@thepub.cygnus.com)
* read.c (s_fill): make the .fill size clamped error a warn and
@ -26,8 +34,6 @@ Fri Jul 31 21:53:28 1992 Ken Raeburn (raeburn@cygnus.com)
characteristics have been), default to 68020. Don't need extra
quotes around error string.
Fri Jul 31 12:26:34 1992 Jim Wilson (wilson@sphagnum.cygnus.com)
* read.c (potable): Revert sac's incorrect change made Jul 13.

View File

@ -91,6 +91,12 @@
/* COMMON now defined */
#define DEBUG /* temporary */
#ifdef BROKEN_ASSERT
/* turn off all assertion checks */
#undef DEBUG
#define NDEBUG
#endif
#ifdef DEBUG
#undef NDEBUG
#ifndef know
@ -141,6 +147,7 @@
#ifdef MANY_SEGMENTS
#include "bfd.h"
#define N_SEGMENTS 10
#define SEG_NORMAL(x) ((x) >= SEG_E0 && (x) <= SEG_E9)
#define SEG_LIST SEG_E0,SEG_E1,SEG_E2,SEG_E3,SEG_E4,SEG_E5,SEG_E6,SEG_E7,SEG_E8,SEG_E9

View File

@ -17,6 +17,18 @@
along with GAS; see the file COPYING. If not, write to
the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#define M_RS6000 1
/* M_RS6000 is used in aout_gnu.h as an enumerator.
Nothing tests for the macro being defined, so don't bother defining it. */
/* #define M_RS6000 1 */
/* The assert.h macros assume that cpp DTRT when substituting for
a macro argument inside a string, including requoting. The non-STDC
cpp on the rs6k botches the requoting. (Many non-STDC cpps do, but
the assert.h here relies on it working.) */
#ifndef __STDC__
#define BROKEN_ASSERT
#endif
extern void free ();
/* end of ho-rs6000.h */