🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Michael Gersten Tue, 04 Aug 1992 23:53
Bug in 2.2.2
#257
Author: Michael Gersten
Date: Tue, 04 Aug 1992 23:53
43 lines
1816 bytes
This is a compile time error, so I figure I've got an odd config.

Cse.c:
rtx
simplify_unary_operation (code, mode, op, op_mode)
...
{
  register int width = GET_MODE_BITSIZE (mode);
#if !defined (REAL_IS_NOT_DOUBLE) || defined (REAL_ARITHMETIC)
  if (code == FLOAT && GET_CODE (op) == CONST_INT)
    ...
  else if (code == UNSIGNED_FLOAT && GET_CODE (op) == CONST_INT)
    ...
  else if (code == FLOAT && GET_CODE (op) == CONST_DOUBLE
           && GET_MODE (op) == VOIDmode)
    ...
  else if (code == UNSIGNED_FLOAT && GET_CODE (op) == CONST_DOUBLE
           && GET_MODE (op) == VOIDmode)
    ...
#endif

  else if (GET_CODE (op) == CONST_INT
           && width <= HOST_BITS_PER_INT && width > 0)
    {

Notice what happens when the first #ifdef fails?

cc -c    -g     -I. -I. -I./config cse.c
cse.c: In function simplify_unary_operation:
cse.c:2724: parse error before `else'
cse.c:2733: `arg0' undeclared (first use this function)
cse.c:2733: (Each undeclared identifier is reported only once
cse.c:2733: for each function it appears in.)
cse.c: At top level:
cse.c:2801: parse error before `else'
cse.c:2815: `h1' undeclared, outside of functions
cse.c:2815: warning: data definition lacks type or storage class
cse.c:2816: parse error before `break'
*** Exit 1
--
		Michael Gersten		michael@stb.info.com
HELLO! I'm a signature virus! Join in the fun and copy me into yours!
ex:.-1,. w $HOME/.signature
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads