This message generated a parse failure. Raw output follows here. Please use 'back' to navigate. From devnull@lkml.org Sat Apr 27 03:04:47 2024 Received: from spaans.ds9a.nl (adsl-xs4all.ds9a.nl [213.84.159.51]) by kylie.puddingonline.com (8.11.6/8.11.6) with SMTP id g8I5Yci32742 for ; Wed, 18 Sep 2002 07:34:40 +0200 Received: (qmail 19592 invoked by uid 1000); 17 Sep 2002 19:56:46 -0000 Received: (maildatabase); juh Received: (qmail 2324 invoked by alias); 7 Jan 2001 07:34:54 -0000 Received: (qmail 2321 invoked from network); 7 Jan 2001 07:34:54 -0000 Received: from server.ds9a.tudelft.nl (HELO home.ds9a.nl) (10.0.0.1) by spaans.ds9a.nl with SMTP; 7 Jan 2001 07:34:54 -0000 Received: (qmail 26691 invoked by uid 0); 7 Jan 2001 03:34:31 -0000 Received: from vger.kernel.org (199.183.24.194) by home.ds9a.nl with SMTP; 7 Jan 2001 03:34:31 -0000 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sat, 6 Jan 2001 22:34:24 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sat, 6 Jan 2001 22:34:04 -0500 Received: from chaos.analogic.com ([204.178.40.224]:18817 "EHLO chaos.analogic.com") by vger.kernel.org with ESMTP id ; Sat, 6 Jan 2001 22:33:45 -0500 Received: (from root@localhost) by chaos.analogic.com (8.11.0.Beta3(chaos.analogic.com)/8.11.0.Beta3) id f073XSq20541; Sat, 6 Jan 2001 22:33:28 -0500 Date: Sat, 6 Jan 2001 22:33:28 -0500 (EST) From: "Richard B. Johnson" Reply-To: root@chaos.analogic.com To: Linux kernel Subject: posix_types.h error Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org There is an error at line 80 in linux-2.4.0/include/asm/posix_types.h which prevents source-code from being compiled using the new C compiler that I was forced to install in order to build the new kernel. gcc 2.95.3 Script started on Sat Jan 6 22:16:30 2001 # cat xxx.c #include #include main() { fd_set x; FD_ZERO(&x); } # gcc -c -o xxx.o xxx.c xxx.c: In function `main': xxx.c:11: Invalid `asm' statement: xxx.c:11: fixed or forbidden register 2 (cx) was spilled for class CREG. # vi /usr/include/asm/posix_types.h #ifndef __ARCH_I386_POSIX_TYPES_H #define __ARCH_I386_POSIX_TYPES_H  /*  * This file is generally used by user-level software, so you need to  * be a little careful about namespace pollution etc. Also, we cannot  * assume GCC is being used.  */  typedef unsigned short __kernel_dev_t; [Snipped...] #define __FD_ZERO(fdsetp) \ do { \  int __d0, __d1; \  __asm__ __volatile__("cld ; rep ; stosl" \  :"=m" (*(__kernel_fd_set *) (fdsetp)), \  "=&c" (__d0), "=&D" (__d1) \  :"a" (0), "1" (__FDSET_LONGS), \  "2" ((__kernel_fd_set *) (fdsetp)) : "memory"); \ } while (0)  #endif /* defined(__KERNEL__) || !defined(__GLIBC__) || (__GLIBC__ < 2) */  exit Script done on Sat Jan 6 22:19:03 2001 Since these inline asm statements no longer use register names, I don't know how to fix them. One of life's little mystries is how previously readable code got into this shape. Cheers, Dick Johnson Penguin : Linux version 2.4.0 on an i686 machine (799.54 BogoMips). "Memory is like gasoline. You use it up when you are running. Of course you get it all back when you reboot..."; Actual explanation obtained from the Micro$oft help desk. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org Please read the FAQ at http://www.tux.org/lkml/