source: branches/ffigen-linuxarm/source/gcc-4.1.0-toplev.c.diff@ 75

Last change on this file since 75 was 71, checked in by gb, 14 years ago

New.

File size: 1.7 KB
  • toplev.c

    old new  
    983983  init_cgraph ();
    984984  init_final (main_input_filename);
    985985  coverage_init (aux_base_name);
     986  if (flag_syntax_only)
     987    ffi_init (asm_out_file, main_input_filename);
    986988
    987989  timevar_push (TV_PARSE);
    988990
     
    11221124#ifndef __VERSION__
    11231125#define __VERSION__ "[?]"
    11241126#endif
    1125   fprintf (file,
    1126            file == stderr ? _(fmt1) : fmt1,
    1127            indent, *indent != 0 ? " " : "",
    1128            lang_hooks.name, version_string, TARGET_NAME,
    1129            indent, __VERSION__);
    1130   fprintf (file,
    1131            file == stderr ? _(fmt2) : fmt2,
    1132            indent, *indent != 0 ? " " : "",
    1133            PARAM_VALUE (GGC_MIN_EXPAND), PARAM_VALUE (GGC_MIN_HEAPSIZE));
     1127  if (flag_syntax_only)
     1128    print_ffi_version (file, indent);
     1129  else {
     1130    fprintf (file,
     1131             file == stderr ? _(fmt1) : fmt1,
     1132             indent, *indent != 0 ? " " : "",
     1133             lang_hooks.name, version_string, TARGET_NAME,
     1134             indent, __VERSION__);
     1135    fprintf (file,
     1136             file == stderr ? _(fmt2) : fmt2,
     1137             indent, *indent != 0 ? " " : "",
     1138             PARAM_VALUE (GGC_MIN_EXPAND), PARAM_VALUE (GGC_MIN_HEAPSIZE));
     1139  }
    11341140}
    11351141
    11361142/* Print an option value and return the adjusted position in the line.
     
    18401846  input_filename = "<built-in>";
    18411847  input_line = 0;
    18421848#endif
     1849  if (flag_syntax_only)
     1850    ffi_early_init ();
    18431851  if (lang_hooks.init () == 0)
    18441852    return 0;
    18451853  input_location = save_loc;
     
    19321940
    19331941  process_options ();
    19341942
     1943 
     1944  if (no_backend && flag_syntax_only) {
     1945    errorcount++;
     1946  }
     1947
     1948
    19351949  /* Don't do any more if an error has already occurred.  */
    19361950  if (!errorcount)
    19371951    {
Note: See TracBrowser for help on using the repository browser.