public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Basile Starynkevitch <basile@starynkevitch.net>
To: Romain Geissler <romain.geissler@gmail.com>
Cc: Jonathan Wakely <jwakely.gcc@gmail.com>,
	gcc-melt@googlegroups.com, gcc@gcc.gnu.org
Subject: Re: [GCC-MELT-397] MELT 0.9.5rc1 etc...
Date: Sat, 31 Mar 2012 14:30:00 -0000	[thread overview]
Message-ID: <20120331163014.d3fef5394ee003261ab80df2@starynkevitch.net> (raw)
In-Reply-To: <5B77CEF8-B4E4-4FEB-9A96-4D7951A449BB@gmail.com>

On Sat, 31 Mar 2012 15:55:50 +0200
Romain Geissler <romain.geissler@gmail.com> wrote:

> Le 31 mars 2012 à 15:07, Jonathan Wakely a écrit :
> 
> > On 31 March 2012 13:38, Basile Starynkevitch wrote:
> >> 
> >> (I think that printf in AWK script is a GNU extension).
> > 
> > Nope, it's standard.
> 
> Yeah it is. I looked at your the melt files in contrib (that's quite
> strange that the Makefile used to build the melt plugin is
> located in here through, files in the contrib directory should
> not be mandatory to build gcc !).

No, it is not strange: indeed the MELT *branch* has a file contrib/MELT-Plugin-Makefile
which is used for the *MELT* plugin (but is useless for the MELT *branch*, which has its
own gcc/Makefile.in).

But the MELT plugin is not useful for the MELT branch. When you build a gcc-melt from the
MELT branch, there is no melt.so file involved, the melt-runtime.o is statically linked
inside cc1 (and cc1plus, etc etc...) and the MELT runtime is automagically started as a
pseudo-plugin without any dlopen-ing. the MELT initialization phase is indeed dlopen-ing
MELT modules (as does the melt.so plugin for a regular GCC), because toplev.c of the MELT
branch calls melt_initialize() and melt_finalize().

So, when building the MELT *branch* (which few people do), you don't need or use
contrib/MELT-Plugin-Makefile.

When I extract the MELT plugin from the MELT branch (e.g. for MELT plugin releases) with
the procedure in https://groups.google.com/group/gcc-melt/msg/083091abb7f30c39?hl=en the
MELT-Plugin-Makefile is becoming the Makefile for the extracted plugin. But the MELT
branch don't need it, so it sits in rightly contrib/MELT-Plugin-Makefile


> It seems that among all your gawk uses, including
> make-warmelt-predef.awk and make-melt-predefh.awk
> the only GNU specific feature is strtonum. But you don't need it,
> as the following works with regular awk :
> 
> echo 4.7.0  | awk '{split($1,vertab,"."); printf "%d", vertab[1]*1000+vertab[2]}'
> 
> By looking at your awk calls, i think you've got some errors in
> MELT-Plugin-Makefile at the following line:
> 
> MELTGCC_VERSION := $(shell env LANG=C LC_ALL=C $(MELTGCC) -v < /dev/null 2>&1 | $(GAWK) "/^gcc version/{print $$3}")

Corrected and commited svn rev 186044.

Thanks
-- 
Basile STARYNKEVITCH         http://starynkevitch.net/Basile/
email: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359
8, rue de la Faiencerie, 92340 Bourg La Reine, France
*** opinions {are only mine, sont seulement les miennes} ***

  reply	other threads:[~2012-03-31 14:30 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-29 20:02 pre-announce: MELT 0.9.5rc1 plugin for GCC 4.6 & 4.7 pre-release candidate 1 (and help needed on make issues) Basile Starynkevitch
2012-03-29 20:45 ` [GCC-MELT-386] " Romain Geissler
2012-03-29 21:03   ` [GCC-MELT-387] " Basile Starynkevitch
2012-03-29 21:29     ` Romain Geissler
2012-03-30  5:22       ` Basile Starynkevitch
2012-03-30  9:41       ` MELT 0.9.5rc1 etc Basile Starynkevitch
2012-03-31  0:23         ` [GCC-MELT-391] " Romain Geissler
2012-03-31  7:08           ` Basile Starynkevitch
2012-03-31  8:52             ` Romain Geissler
2012-03-31 10:28               ` Basile Starynkevitch
2012-03-31 11:55                 ` Romain Geissler
2012-03-31 12:03                   ` Romain Geissler
2012-03-31 12:39                     ` [GCC-MELT-397] " Basile Starynkevitch
2012-03-31 13:07                       ` Jonathan Wakely
2012-03-31 13:56                         ` Romain Geissler
2012-03-31 14:30                           ` Basile Starynkevitch [this message]
2012-04-02 10:31 ` Announce: MELT 0.9.5rc2 release candidate (for GCC 4.6 and 4.7) Basile Starynkevitch
2012-04-02 10:35   ` Basile Starynkevitch

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120331163014.d3fef5394ee003261ab80df2@starynkevitch.net \
    --to=basile@starynkevitch.net \
    --cc=gcc-melt@googlegroups.com \
    --cc=gcc@gcc.gnu.org \
    --cc=jwakely.gcc@gmail.com \
    --cc=romain.geissler@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).