From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 31112 invoked from network); 3 Dec 1999 04:34:14 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 3 Dec 1999 04:34:14 -0000 Received: from mailext02.compaq.com (mailext02.compaq.com [207.18.199.33]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id XAA12208 for ; Thu, 2 Dec 1999 23:34:13 -0500 Received: by mailext02.compaq.com (Postfix, from userid 12345) id 60F3D9A86E; Thu, 2 Dec 1999 22:34:13 -0600 (CST) Received: from mailint02.im.hou.compaq.com (mailint02.compaq.com [207.18.199.35]) by mailext02.compaq.com (Postfix) with ESMTP id 5B04E90D83 for ; Thu, 2 Dec 1999 22:34:13 -0600 (CST) Received: by mailint02.im.hou.compaq.com (Postfix, from userid 12345) id C19A6BC4E9; Thu, 2 Dec 1999 22:34:06 -0600 (CST) Received: from pdgsrv.mro.dec.com (pdgsrv.mro.dec.com [16.34.112.86]) by mailint02.im.hou.compaq.com (Postfix) with ESMTP id 82EBDB2A49 for ; Thu, 2 Dec 1999 22:34:06 -0600 (CST) Received: from alpha2.estabrook.org by pdgsrv.mro.dec.com; (8.8.8/1.1.8.2/13Dec96-1209PM) id XAA21894; Thu, 2 Dec 1999 23:34:11 -0500 (EST) Received: from alpha2.estabrook.org (localhost [127.0.0.1]) by alpha2.estabrook.org (8.9.3/8.9.3) with ESMTP id XAA02950 for ; Thu, 2 Dec 1999 23:35:44 -0500 Message-Id: <199912030435.XAA02950@alpha2.estabrook.org> X-Mailer: exmh version 2.0.3 To: axp-list@redhat.com From: Jay.Estabrook@compaq.com Subject: Re: RH XFree86 spec file question In-reply-to: Your message of Thu, 02 Dec 1999 23:01:33 -0500. <199912030401.XAA23492@neptune.phys.ufl.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 02 Dec 1999 23:35:44 -0500 Sender: jestabro@alpha2.estabrook.org >>> Craig P Prescott said: > > Was building XFree86 on my EV45 (aka 21064A) AlphaStation 250 last > night, and I was wondering why everything was getting compiled with > "-Wa,-m21164a". Then saw this in the spec file: > > %ifarch alpha > make World -C xc CDEBUGFLAGS="$RPM_OPT_FLAGS -Wa,-m21164a" > # we are having problems with the compiler on alpha. > make -C xc/programs/xterm CDEBUGFLAGS="-Wa,-m21164a" > > Anyway, this just seemed kinda weird, so I thought I'd ask about it > (I'm sure I'll learn something). Anybody know what is up with this? > Just seems like a bad idea to tell the assembler (in my case) the > wrong chip... First off, the -Wa,-m21164a is a flag for GAS, the assembler. It says to allow instructions that are supported on the 21164A, aka EV56 CPU, or later ones, to be processed if found in the assembly code the compiler generates. Without this flag, the assembler will give an error if it finds any instructions that are not supported on the base EV4/EV5 CPUs, which would include the byte/word ones. And the compiler is not being told to generate those instructions; that requires the -mcpu= flag, IIRC. Secondly, those byte/word ones are *required* in order for certain operations, that the Xserver needs to do, to work correctly on the EV6 CPU. They appear only in "__asm__" constructs, and they will only be executed if the Xserver is actually running on an EV6 machine, so there's no problem on older ones. They are there because we want a single Xserver binary to work on all the Alpha CPUs, much along the same lines as the "generic" kernels that are now available. --Jay++ --------------------------------------------------------------- Jay A Estabrook Alpha Engineering - LINUX Compaq Computer Corp. - MRO1-2/K20 (508) 467-2080 200 Forest Street, Marlboro MA 01752 Jay.Estabrook@compaq.com ---------------------------------------------------------------