diff options
author | Arnaud Charlet <charlet@adacore.com> | 2010-06-01 12:57:57 +0000 |
---|---|---|
committer | Arnaud Charlet <charlet@gcc.gnu.org> | 2010-06-01 14:57:57 +0200 |
commit | 9cc549409b6eaf87ba91362809738b0f1f3158e1 (patch) | |
tree | ec3e2b9e58ba96e229b86b77334b2495b9c3eff4 /gcc/doc | |
parent | 97d45cef597d472c47550365291dcdbf1c31ccec (diff) | |
download | gcc-9cc549409b6eaf87ba91362809738b0f1f3158e1.zip gcc-9cc549409b6eaf87ba91362809738b0f1f3158e1.tar.gz gcc-9cc549409b6eaf87ba91362809738b0f1f3158e1.tar.bz2 |
invoke.texi: Mention -fdump-ada-spec.
* doc/invoke.texi: Mention -fdump-ada-spec.
* tree-dump.c (dump_files): Add ada-spec.
(FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
* tree-pass.h (tree_dump_index): Add TDI_ada.
* gcc.c: Add support for -C without -E and for -fdump-ada-spec.
(cpp_unique_options): Do not reject -C or -CC when -E isn't present.
(default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
* c-decl.c: Include c-ada-spec.h.
(collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
functions.
(c_write_global_declarations): Add handling of -fdump-ada-spec.
* c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
* Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
* c-ada-spec.h, c-ada-spec.c: New files.
Co-Authored-By: Matthew Gingell <gingell@adacore.com>
From-SVN: r160100
Diffstat (limited to 'gcc/doc')
-rw-r--r-- | gcc/doc/invoke.texi | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 17b1b3f..2a4ea47 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -164,7 +164,8 @@ in the following sections. @gccoptlist{-c -S -E -o @var{file} -combine -no-canonical-prefixes @gol -pipe -pass-exit-codes @gol -x @var{language} -v -### --help@r{[}=@var{class}@r{[},@dots{}@r{]]} --target-help @gol ---version -wrapper@@@var{file} -fplugin=@var{file} -fplugin-arg-@var{name}=@var{arg}} +--version -wrapper@@@var{file} -fplugin=@var{file} -fplugin-arg-@var{name}=@var{arg} @gol +-fdump-ada-spec@r{[}-slim@r{]}} @item C Language Options @xref{C Dialect Options,,Options Controlling C Dialect}. @@ -987,7 +988,8 @@ Objective-C++ source code which should not be preprocessed. @item @var{file}.h C, C++, Objective-C or Objective-C++ header file to be turned into a -precompiled header. +precompiled header (default), or C, C++ header file to be turned into an +Ada spec (via the @option{-fdump-ada-spec} switch). @item @var{file}.cc @itemx @var{file}.cp @@ -1015,7 +1017,7 @@ Objective-C++ source code which should not be preprocessed. @itemx @var{file}.HPP @itemx @var{file}.h++ @itemx @var{file}.tcc -C++ header file to be turned into a precompiled header. +C++ header file to be turned into a precompiled header or Ada spec. @item @var{file}.f @itemx @var{file}.for @@ -1370,6 +1372,11 @@ Plugins API. Define an argument called @var{key} with a value of @var{value} for the plugin called @var{name}. +@item -fdump-ada-spec@r{[}-slim@r{]} +For C and C++ source and include files, generate corresponding Ada +specs. @xref{Generating Ada Bindings for C and C++ headers,,, gnat_ugn, +GNAT User's Guide}, which provides detailed documentation on this feature. + @include @value{srcdir}/../libiberty/at-file.texi @end table |