From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11624 invoked by alias); 24 Feb 2002 00:20:57 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 11485 invoked from network); 24 Feb 2002 00:20:53 -0000 Received: from unknown (HELO Nicole.fhm.edu) (129.187.28.225) by sources.redhat.com with SMTP; 24 Feb 2002 00:20:53 -0000 Received: from localhost.localdomain (unknown [10.23.201.7]) by Nicole.fhm.edu (Postfix on SuSE Linux 7.2 (i386)) with ESMTP id AA09AF58E; Sat, 23 Feb 2002 12:08:49 +0100 (CET) Subject: Re: Altivec conditional? From: Daniel Egger To: Geoff Keating Cc: GCC Developer Mailinglist In-Reply-To: References: <1014203671.23903.5.camel@sonja> <1014285150.10058.8.camel@sonja> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.2 Date: Sat, 23 Feb 2002 16:37:00 -0000 Message-Id: <1014462689.14740.2.camel@sonja> Mime-Version: 1.0 X-SW-Source: 2002-02/txt/msg01395.txt.bz2 Am Sam, 2002-02-23 um 02.25 schrieb Geoff Keating: > If you don't want to use autoconf, the way to determine compiler > capabilities is to key off __GNUC__ and __GNUC_MINOR__ and so on. Of > course, it's ugly, but presumably you already key off __aix__ and > __linux__ and __cygwin__ and so on, so what's one more? No problem with me, I just want to know what to key for. :) BTW: It's not as nasty as it seems as most of the code is portable, I just need defines to overwrite generic functions with optimised ones which means one or two #ifdefs in the whole code per optimised architecture. -- Servus, Daniel