From patchwork Sat Feb 9 15:56:25 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Edelsohn X-Patchwork-Id: 219399 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 271252C0087 for ; Sun, 10 Feb 2013 02:56:40 +1100 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1361030201; h=Comment: DomainKey-Signature:Received:Received:Received:Received: MIME-Version:Received:Date:Message-ID:Subject:From:To: Content-Type:Mailing-List:Precedence:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:Sender:Delivered-To; bh=8/O396p HYOekkh6jI3iEZA9g8Hw=; b=G7uTV+NgDB7PqDrBy2bByoPl16e/PaAPHeYbQGF H3LCa/V3zdabxFkt/0WD9/6jN73i8exgRt9RHcTwj58Tn9Tw3UDIvdZKfhgO8jGm 629t+/ULDokvmwcrso30irPpdzl25c7WsVWuMgUF0+F+0vczuiiGBxiPl5de7g5Y fang= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:MIME-Version:X-Received:Received:Date:Message-ID:Subject:From:To:Content-Type:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=yDitUa2gJ4kZAmlvxe/nBhIQ8FBb+j2MzoA23CUxC9yjYMbnxYr4v7ZmsulT4l ROCMV2l+1Q04rYdeesRIBL/b1cJf/Syj9SEoQgtWgIaNkX78khgAjiJ4CjWbxjB9 L7vfPZ+9NBe0UFx3xzPYpRNvCz6xEmcmEvGXWZO6JMqDU=; Received: (qmail 13248 invoked by alias); 9 Feb 2013 15:56:36 -0000 Received: (qmail 13230 invoked by uid 22791); 9 Feb 2013 15:56:35 -0000 X-SWARE-Spam-Status: No, hits=-4.2 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, KHOP_RCVD_TRUST, RCVD_IN_DNSWL_LOW, RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mail-we0-f172.google.com (HELO mail-we0-f172.google.com) (74.125.82.172) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 09 Feb 2013 15:56:30 +0000 Received: by mail-we0-f172.google.com with SMTP id x10so3881562wey.3 for ; Sat, 09 Feb 2013 07:56:28 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.194.108.136 with SMTP id hk8mr15397596wjb.30.1360425388941; Sat, 09 Feb 2013 07:56:28 -0800 (PST) Received: by 10.194.43.5 with HTTP; Sat, 9 Feb 2013 07:56:25 -0800 (PST) Date: Sat, 9 Feb 2013 10:56:25 -0500 Message-ID: Subject: [PATCH] Allow implicit Altivec and VSX on AIX 6.1 and above From: David Edelsohn To: GCC Patches Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org AIX 6.1 assembler allows enough alignment for Altivec to work with GCC, so the following patch allows -mcpu= to enable Altivec and VSX by default. Bootstrapped on powerpc-ibm-aix7.1.0.0. - David * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine. Index: aix61.h =================================================================== --- aix61.h (revision 195916) +++ aix61.h (working copy) @@ -133,6 +133,9 @@ #undef PROCESSOR_DEFAULT64 #define PROCESSOR_DEFAULT64 PROCESSOR_POWER7 +/* AIX 6.1 kernel and assembler have necessary support for Altivec and VSX. */ +#undef OS_MISSING_ALTIVEC + /* Define this macro as a C expression for the initializer of an array of string to tell the driver program which options are defaults for this target and thus do not need to be handled