Mercurial > hg > CbC > CbC_gcc
comparison gcc/gcc.h @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children | 1830386684a0 |
comparison
equal
deleted
inserted
replaced
111:04ced10e8804 | 131:84e7813d76e9 |
---|---|
1 /* Header file for modules that link with gcc.c | 1 /* Header file for modules that link with gcc.c |
2 Copyright (C) 1999-2017 Free Software Foundation, Inc. | 2 Copyright (C) 1999-2018 Free Software Foundation, Inc. |
3 | 3 |
4 This file is part of GCC. | 4 This file is part of GCC. |
5 | 5 |
6 GCC is free software; you can redistribute it and/or modify it under | 6 GCC is free software; you can redistribute it and/or modify it under |
7 the terms of the GNU General Public License as published by the Free | 7 the terms of the GNU General Public License as published by the Free |
43 void build_multilib_strings () const; | 43 void build_multilib_strings () const; |
44 void set_up_specs () const; | 44 void set_up_specs () const; |
45 void putenv_COLLECT_GCC (const char *argv0) const; | 45 void putenv_COLLECT_GCC (const char *argv0) const; |
46 void maybe_putenv_COLLECT_LTO_WRAPPER () const; | 46 void maybe_putenv_COLLECT_LTO_WRAPPER () const; |
47 void maybe_putenv_OFFLOAD_TARGETS () const; | 47 void maybe_putenv_OFFLOAD_TARGETS () const; |
48 void build_option_suggestions (void); | |
49 const char *suggest_option (const char *bad_opt); | |
50 void handle_unrecognized_options (); | 48 void handle_unrecognized_options (); |
51 int maybe_print_and_exit () const; | 49 int maybe_print_and_exit () const; |
52 bool prepare_infiles (); | 50 bool prepare_infiles (); |
53 void do_spec_on_infiles () const; | 51 void do_spec_on_infiles () const; |
54 void maybe_run_linker (const char *argv0) const; | 52 void maybe_run_linker (const char *argv0) const; |
57 | 55 |
58 private: | 56 private: |
59 char *explicit_link_files; | 57 char *explicit_link_files; |
60 struct cl_decoded_option *decoded_options; | 58 struct cl_decoded_option *decoded_options; |
61 unsigned int decoded_options_count; | 59 unsigned int decoded_options_count; |
62 auto_vec <char *> *m_option_suggestions; | 60 option_proposer m_option_proposer; |
63 }; | 61 }; |
64 | 62 |
65 /* The mapping of a spec function name to the C function that | 63 /* The mapping of a spec function name to the C function that |
66 implements it. */ | 64 implements it. */ |
67 struct spec_function | 65 struct spec_function |
71 }; | 69 }; |
72 | 70 |
73 /* These are exported by gcc.c. */ | 71 /* These are exported by gcc.c. */ |
74 extern int do_spec (const char *); | 72 extern int do_spec (const char *); |
75 extern void record_temp_file (const char *, int, int); | 73 extern void record_temp_file (const char *, int, int); |
76 extern void pfatal_with_name (const char *) ATTRIBUTE_NORETURN; | |
77 extern void set_input (const char *); | 74 extern void set_input (const char *); |
78 | 75 |
79 /* Spec files linked with gcc.c must provide definitions for these. */ | 76 /* Spec files linked with gcc.c must provide definitions for these. */ |
80 | 77 |
81 /* Called before processing to change/add/remove arguments. */ | 78 /* Called before processing to change/add/remove arguments. */ |