From 9de70f0be681139ca1b1ff71fa3d94ff34f17cac Mon Sep 17 00:00:00 2001 From: bstarynk Date: Mon, 19 Apr 2010 16:28:21 +0000 Subject: 2010-04-19 Basile Starynkevitch * gcc/common.opt: -fmelt= is deprecated and replaced by -fmelt-mode=. * gcc/melt-runtime.c (melt_argument): looks into melt_mode_string & melt_old_mode_string, and issues a warning when melt_old_mode_string is used. * gcc/toplev.c (toplev_main): also test melt_old_mode_string before calling melt_initialize & melt_finalize. * gcc/melt-make.mk: typo in rule for warmelt-first.2.c * gcc/doc/melt.texi (Invoking MELT): document -fmelt-mode=. (translating a MELT module): use it. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@158521 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/toplev.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'gcc/toplev.c') diff --git a/gcc/toplev.c b/gcc/toplev.c index cd90e2b9068..e7487ea4203 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -2473,8 +2473,9 @@ toplev_main (int argc, char **argv) initialize_plugins (); /* initialize melt if needed */ - if (melt_mode_string && melt_mode_string[0]) - melt_initialize(); + if ((melt_mode_string && melt_mode_string[0]) + || (melt_old_mode_string && melt_old_mode_string[0])) + melt_initialize (); if (version_flag) print_version (stderr, ""); @@ -2488,7 +2489,8 @@ toplev_main (int argc, char **argv) /* finalize melt if needed */ - if (melt_mode_string && melt_mode_string[0]) + if ((melt_mode_string && melt_mode_string[0]) + || (melt_old_mode_string && melt_old_mode_string[0])) melt_finalize(); if (warningcount || errorcount) -- cgit v1.2.1