From owner-freebsd-alpha Thu Aug 26 12:12:46 1999 Delivered-To: freebsd-alpha@freebsd.org Received: from unicorn.carrier.kiev.ua (unicorn.carrier.kiev.ua [193.193.193.113]) by hub.freebsd.org (Postfix) with ESMTP id 10FD0153E4 for ; Thu, 26 Aug 1999 12:12:39 -0700 (PDT) (envelope-from netch@carrier.kiev.ua) Received: (from netch@localhost) by unicorn.carrier.kiev.ua (8.Who.Cares/8.Who.Cares) id WAA17631 for freebsd-alpha@freebsd.org; Thu, 26 Aug 1999 22:12:04 +0300 (EEST) (envelope-from netch) Date: Thu, 26 Aug 1999 22:12:04 +0300 From: Valentin Nechayev To: freebsd-alpha@freebsd.org Subject: kernel and sizes Message-ID: <19990826221204.B15776@lucky.net> Reply-To: netch@lucky.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95i X-42: On Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Environment: 3.2-RELEASE on AlphaPC 164SX. Build kernel from "GENERIC" config. Warnings: ../../kern/kern_fork.c: In function `fork1': ../../kern/kern_fork.c:358: warning: cast from pointer to integer of different size ../../kern/kern_fork.c:359: warning: cast from pointer to integer of different size These lines contain expressions: (unsigned)&p1->p_procsig->ps_endcopy (unsigned)&p1->p_procsig->ps_begincopy Sizeof(int) == 4, sizeof(void*) == 8, hence conversion can lose significant bits (possibly, it does not result in some badness in current environment, but looks dirty). Another similar warnings: ../../nfs/nfs_socket.c: In function `nfs_receive': ../../nfs/nfs_socket.c:599: warning: int format, different type arg (arg 3) ../../nfs/nfs_socket.c:599: warning: int format, different type arg (arg 4) ../../pci/if_ax.c: In function `ax_attach': ../../pci/if_ax.c:1149: warning: passing arg 3 of `pci_map_port' from incompatible pointer type ../../pci/if_ax.c:1209: warning: cast from pointer to integer of different size ../../pci/if_pn.c: In function `pn_attach': ../../pci/if_pn.c:1045: warning: passing arg 3 of `pci_map_port' from incompatible pointer type ../../pci/if_pn.c:1108: warning: cast from pointer to integer of different size ../../pci/if_pn.c: In function `pn_rx_bug_war': ../../pci/if_pn.c:1423: warning: cast from pointer to integer of different size ../../pci/pci.c: In function `pci_readcfg': ../../pci/pci.c:363: warning: implicit declaration of function `alpha_platform_assign_pciintr' ../../pci/pci.c: In function `pci_ioctl': ../../pci/pci.c:755: warning: int format, different type arg (arg 4) ../../pci/pci.c:755: warning: int format, different type arg (arg 5) ... and so on and so forth... Also, warnings during compiling of port devel/m4. Also, the similar in ports/editors/joe. (Moreover, cc1 from gcc dies with signal 11 on compiling joe; egcc compiles successfully.) If send separately, there is material for more than 30 PRs. ;| What can I believe in? ;) And what politics is to be taken - to send PR's, or to complain in freebsd-alpha@, or another way? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message