From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 58035 invoked by alias); 12 Jun 2017 18:54:45 -0000 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 Received: (qmail 58026 invoked by uid 89); 12 Jun 2017 18:54:44 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00,KAM_MANYTO,RCVD_IN_DNSWL_NONE autolearn=no version=3.3.2 spammy=TCL X-HELO: mail-wr0-f172.google.com Received: from mail-wr0-f172.google.com (HELO mail-wr0-f172.google.com) (209.85.128.172) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 12 Jun 2017 18:54:43 +0000 Received: by mail-wr0-f172.google.com with SMTP id q97so109496392wrb.2 for ; Mon, 12 Jun 2017 11:54:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=xbF2z41/W+h8ysejS8uefFOVT/UdITDVN9UGV/f2wR0=; b=QMBk2q8AhGobN7k2fwFxLCtXbpq9kTfwW1wGLzZ7ABZ88YtRWTw64/YRZKbKTmAMV3 3GFn9NqkK/8gjMkWge4hOYDA8wrII/nrBTJM8T9tf8OwFhmWcP4my3qCu+1h3sPlKtyk E7jsbw0sQNp/NqIQLNEe3X/eY+HUrkUJyG+1KC6JrFXzPwjLX1tBn0TIRg5LwzzIEzhI caxSZB4FB6QcBTTzGysCJXv4OnkZafXqC5FuI0QP9J9tdI2nBbeLboJU/WvJJTY9O8e1 176URx4/h9kCEXEKXzBcARtdy0PWB2liP7pKdEO0O0ISjPYA8bFWQTMZT/CiDh1RqoHu O4Gg== X-Gm-Message-State: AKS2vOyRKCfwqRoB56/1GITIohksgc018pET6IQ3JqeLtfUaOsHCoHv3 PjGOubKPkDitrNQC X-Received: by 10.223.142.15 with SMTP id n15mr258280wrb.131.1497293686404; Mon, 12 Jun 2017 11:54:46 -0700 (PDT) Received: from [192.168.0.102] ([37.189.166.198]) by smtp.gmail.com with ESMTPSA id p17sm13334074wrc.66.2017.06.12.11.54.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 12 Jun 2017 11:54:45 -0700 (PDT) Subject: Re: [RFC] Dejagnu patch to handle multi-line directives To: Tom de Vries , GCC Patches , Jakub Jelinek , Rainer Orth , Mike Stump , richard.sandiford@linaro.org References: <87mv9dskk4.fsf@linaro.org> From: Pedro Alves Message-ID: Date: Mon, 12 Jun 2017 18:54:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <87mv9dskk4.fsf@linaro.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-SW-Source: 2017-06/txt/msg00846.txt.bz2 On 06/12/2017 08:59 AM, Richard Sandiford wrote: > I realise there's probably more that can go wrong with it, but how > about instead treating unbalanced { ... } as a sign that the directive > continues to the next line? This would allow: > > /* { dg-additional-options > "-DSTACK_SIZE=[dg-effective-target-value stack_size]" > { target { stack_size } } } */ In a TCL .exp file you'd split the lines with a '\' continuation character. Wouldn't that be more natural? Like: /* { dg-additional-options \ "-DSTACK_SIZE=[dg-effective-target-value stack_size]" \ { target { stack_size } } } */ Might be less magical and simpler to implement too. Thanks, Pedro Alves