summaryrefslogtreecommitdiff
path: root/cross/cross-gcc/gcc-4.8-filename-output.patch
blob: 6951eb239b77e2c8f50a6146dc744e622d4a1c90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--- gcc/c-family/c-opts.c       (revision 200330)
+++ gcc/c-family/c-opts.c       (working copy)
@@ -1338,10 +1338,14 @@ c_finish_options (void)

 /* Give CPP the next file given by -include, if any.  */
 static void
 push_command_line_include (void)
 {
+  // This can happen if disabled by -imacros for example.
+  if (include_cursor > deferred_count)
+    return;
+
   if (!done_preinclude)
     {
       done_preinclude = true;
       if (flag_hosted && std_inc && !cpp_opts->preprocessed)
        {