summaryrefslogtreecommitdiff
path: root/gcc/toplev.c
diff options
context:
space:
mode:
authorbstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4>2010-04-19 16:28:21 +0000
committerbstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4>2010-04-19 16:28:21 +0000
commit9de70f0be681139ca1b1ff71fa3d94ff34f17cac (patch)
tree07be1e38df5a2ce5e4b23e5b26653a224c4565bf /gcc/toplev.c
parentce3c3f9482d3a90b5abc762fdfe82621c6c9e926 (diff)
downloadgcc-9de70f0be681139ca1b1ff71fa3d94ff34f17cac.tar.gz
2010-04-19 Basile Starynkevitch <basile@starynkevitch.net>
* gcc/common.opt: -fmelt=<mode> is deprecated and replaced by -fmelt-mode=<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
Diffstat (limited to 'gcc/toplev.c')
-rw-r--r--gcc/toplev.c8
1 files changed, 5 insertions, 3 deletions
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)