public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Possible error in a.out.h?
@ 1999-08-04  6:07 Read, Gordon
  1999-08-04 13:21 ` Chris Faylor
  1999-08-31 23:49 ` Read, Gordon
  0 siblings, 2 replies; 4+ messages in thread
From: Read, Gordon @ 1999-08-04  6:07 UTC (permalink / raw)
  To: 'cygwin@sourceware.cygnus.com'

Mumit:

I have version B20 on NT 4.0 (gcc -v gives: gcc version egcs-2.91.57
19980901 (egcs-1.1 release), but not sure if its relevant here)

I think there is an error in a.out.h
(...cygwin-b20/H-i586-cygwin32/i586-cygwin32/include/a.out.h)

Near the end of the file I have the following defined:

#define ISPTR(x)	(((x) & N_TMASK) =3D=3D (DT_PTR << N_BTSHFT))
#define ISFCN(x)	(((x) & N_TMASK) =3D=3D (DT_FCN << N_BTSHFT))
#define ISARY(x)	(((x) & N_TMASK) =3D=3D (DT_ARY << N_BTSHFT))

gcc complains about the =3D=3D bits (understandably, it says "non-digits in
number and not hexadecimal"), should these not be:

#define ISPTR(x)	(((x) & N_TMASK) == (DT_PTR << N_BTSHFT))
#define ISFCN(x)	(((x) & N_TMASK) == (DT_FCN << N_BTSHFT))
#define ISARY(x)	(((x) & N_TMASK) == (DT_ARY << N_BTSHFT))

What do you think? (unless my version of cygnus unpacked badly, but I don't
think so)

Gordon Read

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Possible error in a.out.h?
  1999-08-04  6:07 Possible error in a.out.h? Read, Gordon
@ 1999-08-04 13:21 ` Chris Faylor
  1999-08-31 23:49   ` Chris Faylor
  1999-08-31 23:49 ` Read, Gordon
  1 sibling, 1 reply; 4+ messages in thread
From: Chris Faylor @ 1999-08-04 13:21 UTC (permalink / raw)
  To: Read, Gordon; +Cc: 'cygwin@sourceware.cygnus.com'

On Wed, Aug 04, 1999 at 02:06:35PM +0100, Read, Gordon wrote:
>I have version B20 on NT 4.0 (gcc -v gives: gcc version egcs-2.91.57
>19980901 (egcs-1.1 release), but not sure if its relevant here)
>
>I think there is an error in a.out.h
>(...cygwin-b20/H-i586-cygwin32/i586-cygwin32/include/a.out.h)
>
>Near the end of the file I have the following defined:
>
>#define ISPTR(x)	(((x) & N_TMASK) =3D=3D (DT_PTR << N_BTSHFT))
>#define ISFCN(x)	(((x) & N_TMASK) =3D=3D (DT_FCN << N_BTSHFT))
>#define ISARY(x)	(((x) & N_TMASK) =3D=3D (DT_ARY << N_BTSHFT))
>
>gcc complains about the =3D=3D bits (understandably, it says "non-digits in
>number and not hexadecimal"), should these not be:
>
>#define ISPTR(x)	(((x) & N_TMASK) == (DT_PTR << N_BTSHFT))
>#define ISFCN(x)	(((x) & N_TMASK) == (DT_FCN << N_BTSHFT))
>#define ISARY(x)	(((x) & N_TMASK) == (DT_ARY << N_BTSHFT))
>
>What do you think? (unless my version of cygnus unpacked badly, but I don't
>think so)

Wow.  It's kind of you to call this a "possible error".  This is an
obvious boo boo on our part.  Thanks for pointing it out.  I've fixed
the problem in our development sources.

-chris

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Possible error in a.out.h?
  1999-08-04 13:21 ` Chris Faylor
@ 1999-08-31 23:49   ` Chris Faylor
  0 siblings, 0 replies; 4+ messages in thread
From: Chris Faylor @ 1999-08-31 23:49 UTC (permalink / raw)
  To: Read, Gordon; +Cc: 'cygwin@sourceware.cygnus.com'

On Wed, Aug 04, 1999 at 02:06:35PM +0100, Read, Gordon wrote:
>I have version B20 on NT 4.0 (gcc -v gives: gcc version egcs-2.91.57
>19980901 (egcs-1.1 release), but not sure if its relevant here)
>
>I think there is an error in a.out.h
>(...cygwin-b20/H-i586-cygwin32/i586-cygwin32/include/a.out.h)
>
>Near the end of the file I have the following defined:
>
>#define ISPTR(x)	(((x) & N_TMASK) =3D=3D (DT_PTR << N_BTSHFT))
>#define ISFCN(x)	(((x) & N_TMASK) =3D=3D (DT_FCN << N_BTSHFT))
>#define ISARY(x)	(((x) & N_TMASK) =3D=3D (DT_ARY << N_BTSHFT))
>
>gcc complains about the =3D=3D bits (understandably, it says "non-digits in
>number and not hexadecimal"), should these not be:
>
>#define ISPTR(x)	(((x) & N_TMASK) == (DT_PTR << N_BTSHFT))
>#define ISFCN(x)	(((x) & N_TMASK) == (DT_FCN << N_BTSHFT))
>#define ISARY(x)	(((x) & N_TMASK) == (DT_ARY << N_BTSHFT))
>
>What do you think? (unless my version of cygnus unpacked badly, but I don't
>think so)

Wow.  It's kind of you to call this a "possible error".  This is an
obvious boo boo on our part.  Thanks for pointing it out.  I've fixed
the problem in our development sources.

-chris

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Possible error in a.out.h?
  1999-08-04  6:07 Possible error in a.out.h? Read, Gordon
  1999-08-04 13:21 ` Chris Faylor
@ 1999-08-31 23:49 ` Read, Gordon
  1 sibling, 0 replies; 4+ messages in thread
From: Read, Gordon @ 1999-08-31 23:49 UTC (permalink / raw)
  To: 'cygwin@sourceware.cygnus.com'

Mumit:

I have version B20 on NT 4.0 (gcc -v gives: gcc version egcs-2.91.57
19980901 (egcs-1.1 release), but not sure if its relevant here)

I think there is an error in a.out.h
(...cygwin-b20/H-i586-cygwin32/i586-cygwin32/include/a.out.h)

Near the end of the file I have the following defined:

#define ISPTR(x)	(((x) & N_TMASK) =3D=3D (DT_PTR << N_BTSHFT))
#define ISFCN(x)	(((x) & N_TMASK) =3D=3D (DT_FCN << N_BTSHFT))
#define ISARY(x)	(((x) & N_TMASK) =3D=3D (DT_ARY << N_BTSHFT))

gcc complains about the =3D=3D bits (understandably, it says "non-digits in
number and not hexadecimal"), should these not be:

#define ISPTR(x)	(((x) & N_TMASK) == (DT_PTR << N_BTSHFT))
#define ISFCN(x)	(((x) & N_TMASK) == (DT_FCN << N_BTSHFT))
#define ISARY(x)	(((x) & N_TMASK) == (DT_ARY << N_BTSHFT))

What do you think? (unless my version of cygnus unpacked badly, but I don't
think so)

Gordon Read

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1999-08-31 23:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-08-04  6:07 Possible error in a.out.h? Read, Gordon
1999-08-04 13:21 ` Chris Faylor
1999-08-31 23:49   ` Chris Faylor
1999-08-31 23:49 ` Read, Gordon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).