Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 06 Sep 1998 12:51:25 +0200
From:      Marko Schuetz <marko@cs.uni-frankfurt.de>
To:        freebsd-stable@FreeBSD.ORG
Subject:   gcc, global register variables and __sputc
Message-ID:  <19980906125125F.marko@cs.uni-frankfurt.de>

next in thread | raw e-mail | index | archive | help
__sputc is defined as an inline function in stdio.h if __GNUC__ and
__STDC__ are defined. gcc complains when compiling source that tries
to use global register variables that there is a function definition
before the definition of the global register variable. I looked at
stdio.h and found the alternative definition of __sputc to be defined
as a macro. I added a !defined(__USE_GLOBAL_REGISTER_VARIABLES__) to
the condition for using the function definition for __sputc.

Should something like this be added to -stable or are there reasons
against this that I do not see?

Marko

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980906125125F.marko>