From patchwork Sun Oct 24 08:01:23 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Botcazou X-Patchwork-Id: 69027 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 71F81B6EED for ; Sun, 24 Oct 2010 19:09:40 +1100 (EST) Received: (qmail 26949 invoked by alias); 24 Oct 2010 08:09:38 -0000 Received: (qmail 26941 invoked by uid 22791); 24 Oct 2010 08:09:37 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from mel.act-europe.fr (HELO mel.act-europe.fr) (194.98.77.210) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 24 Oct 2010 08:09:32 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id A2FC4CB029C for ; Sun, 24 Oct 2010 10:09:30 +0200 (CEST) Received: from mel.act-europe.fr ([127.0.0.1]) by localhost (smtp.eu.adacore.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1S8+1dRdL6nv for ; Sun, 24 Oct 2010 10:09:30 +0200 (CEST) Received: from [192.168.1.2] (bon31-9-83-155-120-49.fbx.proxad.net [83.155.120.49]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mel.act-europe.fr (Postfix) with ESMTP id 81C64CB029B for ; Sun, 24 Oct 2010 10:09:30 +0200 (CEST) From: Eric Botcazou To: gcc-patches@gcc.gnu.org Subject: [patch] Robustify configure test for .debug_line Date: Sun, 24 Oct 2010 10:01:23 +0200 User-Agent: KMail/1.9.9 MIME-Version: 1.0 Message-Id: <201010241001.23757.ebotcazou@adacore.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 Hi, we have the following patch in our tree to robustify the configure test for the .debug_line feature. It eliminates the need to adjust the test each time you add a small target variant to the compiler. Tested on various architectures (Alpha, AVR, x86, IA-64, MIPS, PowerPC, SPARC at least), OK for mainline? 2010-10-24 Eric Botcazou * configure.ac: Use $cpu_type instead of $target to define the nop. * configure: Regenerate. Index: configure.ac =================================================================== --- configure.ac (revision 165881) +++ configure.ac (working copy) @@ -3764,17 +3764,15 @@ esac # add some instruction here to (also) show we expect this might work. # ??? Once 2.11 is released, probably need to add first known working # version to the per-target configury. -case "$target" in - i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \ - | x86_64*-*-* | hppa*-*-* | arm*-*-* | avr*-*-* \ - | xstormy16*-*-* | cris-*-* | crisv32-*-* | xtensa*-*-* | bfin-*-* | score*-*-* \ - | spu-*-* | fido*-*-* | m32c-*-* | microblaze-*-*) +case "$cpu_type" in + alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \ + | pa | rs6000 | score | sparc | spu | xstormy16 | xtensa) insn="nop" ;; - ia64*-*-* | s390*-*-*) + ia64 | s390) insn="nop 0" ;; - mmix-*-*) + mmix) insn="swym 0" ;; esac