From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6037 invoked by alias); 4 Oct 2011 19:37:11 -0000 Received: (qmail 5957 invoked by uid 22791); 4 Oct 2011 19:37:10 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,TW_GD X-Spam-Check-By: sourceware.org Received: from mail-iy0-f175.google.com (HELO mail-iy0-f175.google.com) (209.85.210.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 04 Oct 2011 19:36:54 +0000 Received: by iadx2 with SMTP id x2so1101348iad.20 for ; Tue, 04 Oct 2011 12:36:53 -0700 (PDT) MIME-Version: 1.0 Received: by 10.42.147.194 with SMTP id o2mr2439902icv.120.1317757013446; Tue, 04 Oct 2011 12:36:53 -0700 (PDT) Received: by 10.42.219.67 with HTTP; Tue, 4 Oct 2011 12:36:53 -0700 (PDT) In-Reply-To: References: Date: Tue, 04 Oct 2011 19:37:00 -0000 Message-ID: Subject: Re: Merging gdc (GNU D Compiler) into gcc From: Andrew Pinski To: Iain Buclaw Cc: Ian Lance Taylor , gcc@gcc.gnu.org Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2011-10/txt/msg00050.txt.bz2 On Tue, Oct 4, 2011 at 12:30 PM, Iain Buclaw wrote: > These patches address two areas of the D language: > 1) D calling convention. > 2) Naked functions on i386 and x86_64 > > Some work would need to be done on naked functions at least first so > that changes required are only to gcc/config. I would be grateful if I > could get pointed in the right direction for implementing naked as a > function attribute for i386 so all frontends could benefit. Does D really require a new calling convention? Also does it really require naked support? I think naked support is a bad idea and people who require naked support should be writing an assembly function wrapper. Thanks, Andrew Pinski