void-packages/srcpkgs/gcc/patches/gcc-4.8-filename-output.patch
Juan RP e0429b2103 gcc: sync patches with Arch; make it a bootstrap pkg and replace chroot-gcc.
- Removed --disable-bootstrap just to make sure that a proper compiler is generated.
- Adapted pkg to be part of the bootstrap process.
2014-05-19 12:49:57 +02:00

19 lines
554 B
Diff

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57653
--- 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)
{