diff options
Diffstat (limited to 'debian/patches/pr72813.diff')
-rw-r--r-- | debian/patches/pr72813.diff | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/debian/patches/pr72813.diff b/debian/patches/pr72813.diff new file mode 100644 index 0000000..5549f6a --- /dev/null +++ b/debian/patches/pr72813.diff @@ -0,0 +1,60 @@ +# DP: Fix PR c++/72813, taken from the trunk. + +gcc/c/ + +2017-01-11 Jakub Jelinek <jakub@redhat.com> + + PR c++/72813 + * c-decl.c (pop_file_scope): Set flag_syntax_only to 1 after writing + PCH file. + +gcc/ + +2017-01-11 Jakub Jelinek <jakub@redhat.com> + + PR c++/72813 + * gcc.c (default_compilers): Don't add -o %g.s for -S -save-temps + of c-header. + +gcc/cp/ + +2017-01-11 Jakub Jelinek <jakub@redhat.com> + + PR c++/72813 + * decl2.c (c_parse_final_cleanups): Set flag_syntax_only to 1 after + writing PCH file. + + +--- a/src/gcc/c/c-decl.c ++++ b/src/gcc/c/c-decl.c +@@ -1420,6 +1420,8 @@ + if (pch_file) + { + c_common_write_pch (); ++ /* Ensure even the callers don't try to finalize the CU. */ ++ flag_syntax_only = 1; + return; + } + +--- a/src/gcc/gcc.c ++++ b/src/gcc/gcc.c +@@ -1328,7 +1328,7 @@ + %(cpp_options) -o %{save-temps*:%b.i} %{!save-temps*:%g.i} \n\ + cc1 -fpreprocessed %{save-temps*:%b.i} %{!save-temps*:%g.i} \ + %(cc1_options)\ +- %{!fsyntax-only:-o %g.s \ ++ %{!fsyntax-only:%{!S:-o %g.s} \ + %{!fdump-ada-spec*:%{!o*:--output-pch=%i.gch}\ + %W{o*:--output-pch=%*}}%V}}\ + %{!save-temps*:%{!traditional-cpp:%{!no-integrated-cpp:\ +--- a/src/gcc/cp/decl2.c ++++ b/src/gcc/cp/decl2.c +@@ -4461,6 +4461,8 @@ + DECL_ASSEMBLER_NAME (node->decl); + c_common_write_pch (); + dump_tu (); ++ /* Ensure even the callers don't try to finalize the CU. */ ++ flag_syntax_only = 1; + return; + } + |