This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [lto] handle function types without argument types


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]