1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-18 10:35:55 +00:00

Backed out previous commit. This restores the warning about pessimized

(short) types for the port arg of inb() (rev.1.56).  The warning started
working for u_short types with gcc-3.3.  The pessimizations exposed
by this been fixed except for the cx and oltr drivers where the breakage
of the warning has been pushed to the drivers.
This commit is contained in:
Bruce Evans 2003-08-06 18:21:27 +00:00
parent b531240f24
commit 90630944c8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=118559

View File

@ -157,7 +157,7 @@ halt(void)
#define inb(port) __extension__ ({ \ #define inb(port) __extension__ ({ \
u_char _data; \ u_char _data; \
if (__builtin_constant_p(port) && ((port) & 0xffff) < 0x100 \ if (__builtin_constant_p(port) && ((port) & 0xffff) < 0x100 \
&& (0x10000 + (port)) < 0x20000) \ && (port) < 0x10000) \
_data = inbc(port); \ _data = inbc(port); \
else \ else \
_data = inbv(port); \ _data = inbv(port); \
@ -165,7 +165,7 @@ halt(void)
#define outb(port, data) ( \ #define outb(port, data) ( \
__builtin_constant_p(port) && ((port) & 0xffff) < 0x100 \ __builtin_constant_p(port) && ((port) & 0xffff) < 0x100 \
&& (0x10000 + (port)) < 0x20000 \ && (port) < 0x10000 \
? outbc(port, data) : outbv(port, data)) ? outbc(port, data) : outbv(port, data))
static __inline u_char static __inline u_char