🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #257

Bug in 2.2.2

#257
From: 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
Technical Details
Message-ID: <m0mFYge-0005ORC@stb.info.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!stb.INfo.COM!michael

Show Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!stb.INfo.COM!michael
From: michael@stb.INfo.COM (Michael Gersten)
Subject: Bug in 2.2.2
Message-ID: <m0mFYge-0005ORC@stb.info.com>
Sender: gnulists@ai.mit.edu
Organization: GNUs Not Usenet
Distribution: gnu
Date: Tue, 4 Aug 1992 23:53:00 GMT
Approved: bug-gcc@prep.ai.mit.edu
Lines: 44