fix -fsyntax-only
authorMatthias Braun <matthias.braun@kit.edu>
Wed, 18 Jul 2012 08:50:05 +0000 (10:50 +0200)
committerMatthias Braun <matthias.braun@kit.edu>
Wed, 18 Jul 2012 08:50:05 +0000 (10:50 +0200)
main.c

diff --git a/main.c b/main.c
index 289d825..ffde1f2 100644 (file)
--- a/main.c
+++ b/main.c
@@ -1304,6 +1304,9 @@ again:
                        goto again;
 
                case COMPILATION_UNIT_INTERMEDIATE_REPRESENTATION:
+                       if (mode == ParseOnly)
+                               continue;
+
                        if (mode == CompileDump) {
                                /* find irg */
                                ident    *id     = new_id_from_str(dumpfunction);