update dwarf2 asm unwind info

Richard Henderson rth@twiddle.net
Thu Aug 7 20:38:00 GMT 2008


H.J. Lu wrote:
> 3. When -E is used on the PCH file, __GCC_HAVE_DWARF2_CFI_ASM
> isn't defined since no CFI directive is ever used and we get

I see.  Well, there's really not reason not to pass along the -g
option to the preprocessing step, which fixes this with the test
case in your PR.  I've no idea why the same test passes for me
in the testsuite...


r~


	* gcc.c (cpp_options): Pass along -g*.

--- gcc.c	(revision 138858)
+++ gcc.c	(local)
@@ -819,7 +819,7 @@ static const char *cpp_unique_options =
     in turn cause preprocessor symbols to be defined specially.  */
  static const char *cpp_options =
  "%(cpp_unique_options) %1 %{m*} %{std*&ansi&trigraphs} %{W*&pedantic*} 
%{w}\
- %{f*} %{g*:%{!g0:%{!fno-working-directory:-fworking-directory}}} %{O*}\
+ %{f*} %{g*:%{!g0:%{g*} %{!fno-working-directory:-fworking-directory}}} 
%{O*}\
   %{undef} %{save-temps:-fpch-preprocess}";

  /* This contains cpp options which are not passed when the preprocessor



More information about the Gcc-patches mailing list