From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2534 invoked by alias); 22 Jun 2010 07:19:16 -0000 Received: (qmail 2526 invoked by uid 22791); 22 Jun 2010 07:19:15 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mathups.math.u-psud.fr (HELO matups.math.u-psud.fr) (129.175.52.4) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 22 Jun 2010 07:19:11 +0000 Received: from barah.math.u-psud.fr (barah.math.u-psud.fr [129.175.52.24]) by matups.math.u-psud.fr (Postfix) with ESMTP id 9FC2075EB; Tue, 22 Jun 2010 09:19:09 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by barah.math.u-psud.fr (Postfix) with ESMTP id 9AAFE474164; Tue, 22 Jun 2010 09:19:09 +0200 (CEST) Received: from barah.math.u-psud.fr ([127.0.0.1]) by localhost (barah.math.u-psud.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zONZHFw0whb8; Tue, 22 Jun 2010 09:19:07 +0200 (CEST) Received: from [IPv6:::1] (topodyn-ng.math.u-psud.fr [129.175.50.33]) by barah.math.u-psud.fr (Postfix) with ESMTP id C7C6B474165; Tue, 22 Jun 2010 09:19:06 +0200 (CEST) Message-ID: <4C2063EA.20705@free.fr> Date: Tue, 22 Jun 2010 09:34:00 -0000 From: Duncan Sands User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100423 Thunderbird/3.0.4 MIME-Version: 1.0 To: basile@starynkevitch.net CC: gcc@gcc.gnu.org Subject: Re: plugin-provided pragmas & Fortran or Ada? References: <1277180442.24042.13.camel@glinka> <4C205F08.7020008@free.fr> <1277190276.24042.36.camel@glinka> In-Reply-To: <1277190276.24042.36.camel@glinka> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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: 2010-06/txt/msg00665.txt.bz2 Hi Basile, >>> Assuming a plugin (e.g. MELT) add a new pragma using PLUGIN_PRAGMAS, is >>> this pragma usable from Ada or Fortran code? >>> >>> I am not very familiar with Ada or Fortran. I believe Ada has some >>> syntax for pragmas -but do Ada pragma have the same API inside GCC >>> plugins as C or C++ pragmas?- and I am not sure about Fortran. Many >>> Fortran dialects or implementations parse specially some kind of >>> comments -but I don't know if these are giving pragma events to plugins. >> >> I'm pretty sure this won't work for Ada without modifying the Ada >> front-end. > > Are there any plugin hooks for Ada pragmas? Perhaps the Ada team might > consider adding some, if it is simple enough. Specific pragmas have > definitely their places in plugins. I'm pretty sure there are no such plugin hooks right now. Ciao, Duncan.