On Thu, 10 Nov 2011 12:54:52 +0000
Jonathan Wakely <jwakely....@gmail.com> wrote:
> > That type annotation produced by g++ would be usable by external editors, 
> > etc.
> 
> That's a pretty big assumption, and the file would be useless without
> editor support (I realise there's a chicken and egg situation here.)
> 
> Doesn't DWARF debug info already contain all that info anyway?


The same argument can be used in reverse: the -M dependency output is in 
principle
extractible from DWARF information (or could be provided by plugin), but GCC 
does provide
it natively.

My point is that type annotation is a too useful information to be provided by 
GCC only
in contrived ways (like using plugins, or with an external filter on DWARF). So 
I think
that it is worth a single, short, option.

Perhaps we could enhance the spec file so that short options could be 
translated (by the
gcc/gcc.c driver) into longer ones involving plugins. When that happens, we 
coule even
make the -M output driven by plugins.

Cheers.

-- 
Basile STARYNKEVITCH         http://starynkevitch.net/Basile/
email: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359
8, rue de la Faiencerie, 92340 Bourg La Reine, France
*** opinions {are only mine, sont seulement les miennes} ***

Reply via email to