[lto] handle function types without argument types
Joseph S. Myers
joseph@codesourcery.com
Thu Dec 6 22:24:00 GMT 2007
On Thu, 6 Dec 2007, Nathan Froyd wrote:
> Joseph, do you know if there's an easy may to ensure that full argument
> type information makes it from the C front-end all the way to DWARF? Or
> are there problems with doing that (presumably the current approach has
> some reason for being the way it is)?
In C terms, argument types from an old-style declaration (in
DECL_ARGUMENTS, not TYPE_ARG_TYPES) are not part of the function type. I
don't know enough about DWARF to judge if including them in the type in
debug info nevertheless, but not marking that declaration with
DW_AT_prototyped, would be incorrect or cause problems with DWARF
consumers.
--
Joseph S. Myers
joseph@codesourcery.com
More information about the Gcc-patches
mailing list