source: branches/ffigen-apple-gcc-5646/ffigen4/source/gcc-5646-toplev.c.diff@ 73

Last change on this file since 73 was 67, checked in by gb, 15 years ago

Don't know if this works yet.

File size: 1.1 KB
RevLine 
[67]1--- toplev.c.orig 2009-09-15 07:48:17.000000000 -0600
2+++ toplev.c 2009-09-15 07:50:47.000000000 -0600
3@@ -1094,6 +1094,8 @@
4 init_cgraph ();
5 init_final (main_input_filename);
6 coverage_init (aux_base_name);
7+ if (flag_syntax_only)
8+ ffi_init (asm_out_file, main_input_filename);
9
10 timevar_push (TV_PARSE);
11
12@@ -1241,10 +1243,13 @@
13 indent, *indent != 0 ? " " : "",
14 lang_hooks.name, version_string, TARGET_NAME,
15 indent, __VERSION__);
16- fprintf (file,
17- file == stderr ? _(fmt2) : fmt2,
18- indent, *indent != 0 ? " " : "",
19- PARAM_VALUE (GGC_MIN_EXPAND), PARAM_VALUE (GGC_MIN_HEAPSIZE));
20+ if (flag_syntax_only)
21+ print_ffi_version (file, indent);
22+ else
23+ fprintf (file,
24+ file == stderr ? _(fmt2) : fmt2,
25+ indent, *indent != 0 ? " " : "",
26+ PARAM_VALUE (GGC_MIN_EXPAND), PARAM_VALUE (GGC_MIN_HEAPSIZE));
27 }
28
29 /* Print an option value and return the adjusted position in the line.
30@@ -2069,6 +2074,8 @@
31 #endif
32 if (lang_hooks.init () == 0)
33 return 0;
34+ if (flag_syntax_only)
35+ ffi_early_init ();
36 input_location = save_loc;
37
38 init_asm_output (name);
Note: See TracBrowser for help on using the repository browser.