blob: 0d368f4e289cb731e91cd4729af48800e95fc537 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
# DP: Proposed patch for PR c/57653.
Index: b/src/gcc/c-family/c-opts.c
===================================================================
--- a/src/gcc/c-family/c-opts.c
+++ b/src/gcc/c-family/c-opts.c
@@ -1347,6 +1347,10 @@
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;
|