PKGBUILDs/core/gcc/gcc-4.8-filename-output.patch

18 lines
510 B
Diff
Raw Normal View History

2014-11-07 03:55:58 +00:00
diff --git a/gcc/c-family/c-opts.c b/gcc/c-family/c-opts.c
index 968b703..3f8e6e6 100644
--- a/gcc/c-family/c-opts.c
+++ b/gcc/c-family/c-opts.c
@@ -1438,6 +1438,12 @@ c_finish_options (void)
2013-08-02 03:21:12 +00:00
static void
push_command_line_include (void)
{
2014-11-07 03:55:58 +00:00
+ /* This can happen if disabled by -imacros for example.
+ Punt so that we don't set "<command-line>" as the filename for
+ the header. */
2013-08-02 03:21:12 +00:00
+ if (include_cursor > deferred_count)
+ return;
+
if (!done_preinclude)
{
done_preinclude = true;