From patchwork Fri Jan 27 17:46:13 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Walter Lee X-Patchwork-Id: 138260 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 000F4B6F9C for ; Sat, 28 Jan 2012 04:46:45 +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=1328291206; h=Comment: DomainKey-Signature:Received:Received:Received:Received: Message-ID:Date:From:User-Agent:MIME-Version:To:Subject: References:In-Reply-To:Content-Type:Mailing-List:Precedence: List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender: Delivered-To; bh=UIKcOnjbjK4ut3Pu0ZfWj1K5ikg=; b=qgaow809U0gACp3 qY0QfjTk/brq1grpaPj1WvA0rQu34C+JxgdZ5N1jOtfwLEp34tbBBTqR/g+i9v95 pnKi0UqQ6S7gki5cNNefEI8EDZ0+Jxv8ZS93ujrhDNrNzBGnzK41RmZsTdoYGA6v Q/hcvA32Ma2yGT68HF3Kk9G0N3/s= 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:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:References:In-Reply-To:Content-Type:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=g+WraCEyrh4wY9hO/jbgZf3e8UD/GwKnHIy2Bbl6f4dbw5i3aU2oafgydmlwEO /WY1RF+xWqt0GSAODsnIhqKQoFB+2WnJYqsjyGMSNHoQEaOWX0oYu92+CRwUBBI3 SMEH7iy/Ud7bNFhXidach59pRQhJidKNjDf6wEEGsdEgk=; Received: (qmail 27659 invoked by alias); 27 Jan 2012 17:46:37 -0000 Received: (qmail 27646 invoked by uid 22791); 27 Jan 2012 17:46:34 -0000 X-SWARE-Spam-Status: No, hits=-1.5 required=5.0 tests=AWL, BAYES_00, TW_EG, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from usmamail.tilera.com (HELO USMAMAIL.TILERA.COM) (206.83.70.75) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 27 Jan 2012 17:46:17 +0000 Received: from [127.0.0.1] (10.9.0.23) by USMAExch2.tad.internal.tilera.com (10.3.0.33) with Microsoft SMTP Server (TLS) id 14.0.694.0; Fri, 27 Jan 2012 12:46:14 -0500 Message-ID: <4F22E2E5.9080507@tilera.com> Date: Fri, 27 Jan 2012 12:46:13 -0500 From: Walter Lee User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 MIME-Version: 1.0 To: Subject: Re: [PATCH] New port resubmission for TILEPro and TILE-Gx 3/6: gcc port References: <4EFE57A3.3070003@tilera.com> <4EFE5A7F.3010104@tilera.com> In-Reply-To: <4EFE5A7F.3010104@tilera.com> 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 I made a slight change to add TLS LE support. Please review this version of the gcc patch instead of hte previous one. Thanks, Walter Lee 2012-01-27 Walter Lee * config.gcc: Handle tilegx and tilepro. * configure.ac (gcc_cv_as_dwarf2_debug_line): Enable test for tilegx and tilepro. Add HAVE_AS_TLS check for tilegx and tilepro. * configure: Regenerate. * doc/contrib.texi: Add Mat Hostetter and self. * doc/extend.texi (TILE-Gx Built-in Functions): New node. Document instruction intrinsics and network accessing intrinsics. (TILEPro Built-in Functions): New node. Document instruction intrinsics and network accessing intrinsics. * doc/install.texi (Specific, tilegx-*-linux*): Document it. (Specific, tilepro-*-linux*): Likewise. * doc/invoke.texi (TILE-Gx Options): New section. (TILEPro Options): New section. * doc/md.texi (TILE-Gx): New section. (TILEPro): New section. * common/config/tilegx/tilegx-common.c: New file. * common/config/tilepro/tilepro-common.c: New file. * config/tilegx/constraints.md: New file. * config/tilegx/linux.h: New file. * config/tilegx/mul-tables.c: New file. * config/tilegx/predicates.md: New file. * config/tilegx/sync.md: New file. * config/tilegx/t-tilegx: New file. * config/tilegx/tilegx-builtins.h: New file. * config/tilegx/tilegx-c.c: New file. * config/tilegx/tilegx-generic.md: New file. * config/tilegx/tilegx-modes.def: New file. * config/tilegx/tilegx-multiply.h: New file. * config/tilegx/tilegx-protos.h: New file. * config/tilegx/tilegx.c: New file. * config/tilegx/tilegx.h: New file. * config/tilegx/tilegx.md: New file. * config/tilegx/tilegx.opt: New file. * config/tilepro/constraints.md: New file. * config/tilepro/gen-mul-tables.cc: New file. * config/tilepro/linux.h: New file. * config/tilepro/mul-tables.c: New file. * config/tilepro/predicates.md: New file. * config/tilepro/t-tilepro: New file. * config/tilepro/tilepro-builtins.h: New file. * config/tilepro/tilepro-c.c: New file. * config/tilepro/tilepro-generic.md: New file. * config/tilepro/tilepro-modes.def: New file. * config/tilepro/tilepro-multiply.h: New file. * config/tilepro/tilepro-protos.h: New file. * config/tilepro/tilepro.c: New file. * config/tilepro/tilepro.h: New file. * config/tilepro/tilepro.md: New file. * config/tilepro/tilepro.opt: New file. Here are changes to the gcc testsuite. 2012-01-27 Walter Lee * g++.dg/other/PR23205.C: Disable test on tile. * g++.dg/other/pr23205-2.C: Disable test on tile. * gcc.dg/20020312-2.c: Add a condition for __tile__. * gcc.dg/20040813-1.c: Disable test on tile. * gcc.dg/lower-subreg-1.c: Disable test on tilegx. * gcc.misc-tests/linkage.exp: Handle tilegx. diff -r -u -p -N /home/packages/gcc-4.7.0-182680/gcc/testsuite/g++.dg/other/PR23205.C ./gcc/testsuite/g++.dg/other/PR23205.C --- /home/packages/gcc-4.7.0-182680/gcc/testsuite/g++.dg/other/PR23205.C 2011-10-14 00:59:02.000000000 -0400 +++ ./gcc/testsuite/g++.dg/other/PR23205.C 2012-01-25 15:51:06.218548000 -0500 @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-skip-if "No stabs" { mmix-*-* *-*-aix* alpha*-*-* hppa*64*-*-* ia64-*-* *-*-vxworks } { "*" } { "" } } */ +/* { dg-skip-if "No stabs" { mmix-*-* *-*-aix* alpha*-*-* hppa*64*-*-* ia64-*-* tile*-*-* *-*-vxworks } { "*" } { "" } } */ /* { dg-options "-gstabs+ -fno-eliminate-unused-debug-types" } */ const int foobar = 4; diff -r -u -p -N /home/packages/gcc-4.7.0-182680/gcc/testsuite/g++.dg/other/pr23205-2.C ./gcc/testsuite/g++.dg/other/pr23205-2.C --- /home/packages/gcc-4.7.0-182680/gcc/testsuite/g++.dg/other/pr23205-2.C 2011-10-14 00:59:02.000000000 -0400 +++ ./gcc/testsuite/g++.dg/other/pr23205-2.C 2012-01-25 15:51:06.244512000 -0500 @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-skip-if "No stabs" { mmix-*-* *-*-aix* alpha*-*-* hppa*64*-*-* ia64-*-* } { "*" } { "" } } */ +/* { dg-skip-if "No stabs" { mmix-*-* *-*-aix* alpha*-*-* hppa*64*-*-* ia64-*-* tile*-*-* } { "*" } { "" } } */ /* { dg-options "-gstabs+ -fno-eliminate-unused-debug-types -ftoplevel-reorder" } */ const int foobar = 4; diff -r -u -p -N /home/packages/gcc-4.7.0-182680/gcc/testsuite/gcc.dg/20020312-2.c ./gcc/testsuite/gcc.dg/20020312-2.c --- /home/packages/gcc-4.7.0-182680/gcc/testsuite/gcc.dg/20020312-2.c 2011-12-08 13:44:18.000000000 -0500 +++ ./gcc/testsuite/gcc.dg/20020312-2.c 2012-01-25 15:51:06.128527000 -0500 @@ -66,6 +66,8 @@ extern void abort (void); # define PIC_REG "12" #elif defined(__sparc__) # define PIC_REG "l7" +#elif defined(__tile__) +# define PIC_REG "r51" #elif defined(__TMS320C6X__) # define PIC_REG "B14" #elif defined(__v850) diff -r -u -p -N /home/packages/gcc-4.7.0-182680/gcc/testsuite/gcc.dg/20040813-1.c ./gcc/testsuite/gcc.dg/20040813-1.c --- /home/packages/gcc-4.7.0-182680/gcc/testsuite/gcc.dg/20040813-1.c 2011-10-14 00:57:20.000000000 -0400 +++ ./gcc/testsuite/gcc.dg/20040813-1.c 2012-01-25 15:51:06.156481000 -0500 @@ -2,7 +2,7 @@ /* Contributed by Devang Patel */ /* { dg-do compile } */ -/* { dg-skip-if "No stabs" { mmix-*-* *-*-aix* alpha*-*-* hppa*64*-*-* ia64-*-* *-*-vxworks* } { "*" } { "" } } */ +/* { dg-skip-if "No stabs" { mmix-*-* *-*-aix* alpha*-*-* hppa*64*-*-* ia64-*-* tile*-*-* *-*-vxworks* } { "*" } { "" } } */ /* { dg-options "-gstabs" } */ int diff -r -u -p -N /home/packages/gcc-4.7.0-182680/gcc/testsuite/gcc.dg/lower-subreg-1.c ./gcc/testsuite/gcc.dg/lower-subreg-1.c --- /home/packages/gcc-4.7.0-182680/gcc/testsuite/gcc.dg/lower-subreg-1.c 2011-10-14 00:57:23.000000000 -0400 +++ ./gcc/testsuite/gcc.dg/lower-subreg-1.c 2012-01-25 15:51:06.176521000 -0500 @@ -1,4 +1,4 @@ -/* { dg-do compile { target { { { ! mips64 } && { ! ia64-*-* } } && { ! spu-*-* } } } } */ +/* { dg-do compile { target { { { ! mips64 } && { ! ia64-*-* } } && { ! spu-*-* } && { ! tilegx-*-* } } } } */ /* { dg-options "-O -fdump-rtl-subreg1" } */ /* { dg-skip-if "" { { i?86-*-* x86_64-*-* } && x32 } { "*" } { "" } } */ /* { dg-require-effective-target ilp32 } */ diff -r -u -p -N /home/packages/gcc-4.7.0-182680/gcc/testsuite/gcc.misc-tests/linkage.exp ./gcc/testsuite/gcc.misc-tests/linkage.exp --- /home/packages/gcc-4.7.0-182680/gcc/testsuite/gcc.misc-tests/linkage.exp 2011-10-14 00:57:53.000000000 -0400 +++ ./gcc/testsuite/gcc.misc-tests/linkage.exp 2012-01-25 15:51:06.201500000 -0500 @@ -88,6 +88,13 @@ if { [isnative] && ![is_remote host] } t } elseif [ string match "*ppc" $file_string ] { set native_cflags "-m32" } + } elseif [istarget "tilegx-*-linux*"] { + set file_string [exec file "linkage-x.o"] + if [ string match "*64-bit*" $file_string ] { + set native_cflags "-m64" + } elseif [ string match "*32-bit*" $file_string ] { + set native_cflags "-m32" + } } elseif [istarget "*86*-*-darwin*"] { set file_string [exec file "linkage-x.o"] if [ string match "*64*" $file_string ] {