From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12248 invoked by alias); 19 Aug 2010 21:11:57 -0000 Received: (qmail 12239 invoked by uid 22791); 19 Aug 2010 21:11:57 -0000 X-SWARE-Spam-Status: No, hits=-1.3 required=5.0 tests=AWL,BAYES_00,NO_DNS_FOR_FROM,TW_MX,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from e36.co.us.ibm.com (HELO e36.co.us.ibm.com) (32.97.110.154) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 19 Aug 2010 21:11:52 +0000 Received: from d03relay04.boulder.ibm.com (d03relay04.boulder.ibm.com [9.17.195.106]) by e36.co.us.ibm.com (8.14.4/8.13.1) with ESMTP id o7JL86DQ009562 for ; Thu, 19 Aug 2010 15:08:06 -0600 Received: from d03av03.boulder.ibm.com (d03av03.boulder.ibm.com [9.17.195.169]) by d03relay04.boulder.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id o7JLBoBv097604 for ; Thu, 19 Aug 2010 15:11:50 -0600 Received: from d03av03.boulder.ibm.com (loopback [127.0.0.1]) by d03av03.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id o7JLBoq4019200 for ; Thu, 19 Aug 2010 15:11:50 -0600 Received: from hungry-tiger.westford.ibm.com (IBM-C78937C9630.westford.ibm.com [9.33.37.152]) by d03av03.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id o7JLBoea019190; Thu, 19 Aug 2010 15:11:50 -0600 Received: from hungry-tiger.westford.ibm.com (hungry-tiger.westford.ibm.com [127.0.0.1]) by hungry-tiger.westford.ibm.com (Postfix) with ESMTP id B6AD33FEE9; Thu, 19 Aug 2010 17:11:49 -0400 (EDT) Received: (from meissner@localhost) by hungry-tiger.westford.ibm.com (8.14.3/8.14.3/Submit) id o7JLBjjR023818; Thu, 19 Aug 2010 17:11:45 -0400 Date: Thu, 19 Aug 2010 22:00:00 -0000 From: Michael Meissner To: Xinliang David Li Cc: GCC Patches Subject: Re: define MMX/SSE intrinsics without requiring cmdline isa flags Message-ID: <20100819211145.GA23071@hungry-tiger.westford.ibm.com> Mail-Followup-To: Michael Meissner , Xinliang David Li , GCC Patches References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-08-17) X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2010-08/txt/msg01509.txt.bz2 On Wed, Aug 18, 2010 at 05:05:15PM -0700, Xinliang David Li wrote: > Hi, I got many complains from the user that gcc's asm intrinsics are > hard to use -- because they need to specify command line --mxxx option > to use them even though the enclosing function has the right target > attribute: > So the question becomes why not allow the definitions of those > wrappers in the first place --- if the user includes the header, he > then intends to use them. See attached patch that does this. GCC > bootstrapping shows that there is NO visible compile time change at > all with this patch. One of the concerns when I did the original work 2 years ago to add target support was if the compiler adds all of the builtins, it makes the compiler slower at startup because it has to create all of those extra functions (both time to create and more importantly, memory requirements for those functions). -- Michael Meissner, IBM 5 Technology Place Drive, M/S 2757, Westford, MA 01886-3141, USA meissner@linux.vnet.ibm.com