On Nov 8, 2007, "Andrew Pinski" <[EMAIL PROTECTED]> wrote:
> On 11/7/07, Alexandre Oliva <[EMAIL PROTECTED]> wrote: >> I'm personally getting numerous requests for debug information >> correctness and better completeness from debug info consumers such as >> gdb, frysk and systemtap. GCC's eagerness to inline functions, even >> ones never declared as inline, and its eagerness to corrupt the >> meta-information associated with them, causes these tools to >> malfunction in very many situations. And it's all GCC's fault, for >> generating code that is not standards-compliant in the >> meta-information sections of its output. > I have to ask, do you want an optimizing compiler or one which > generates full debugging information???? I want both. That's the whole point of this project I'm in. > Because there are trade off here really. For a superficial look at the problem, they might look like trade-offs. But the assumption that it's impossible to get both is incorrect. It takes work, but it's not impossible. > The reason behind the extra inlining is because it > improves code generation. I don't see how you got the impression that I might be arguing against the inlining, as it looks like you did. I'm not. I'm arguing against the corruption of meta-information associated with them. That's just laziness on our part. > Remember dwarf3 is not really a standards about meta-information, it > just mentions how it represented if it exists. That's what meta-information is. One of the problems is that we often fail to represent information that does exist. A more serious problem is that we often represent such information incorrectly, making it seem like things that don't exist do, and that things are at different locations from those in which they actually are. -- Alexandre Oliva http://www.lsd.ic.unicamp.br/~oliva/ FSF Latin America Board Member http://www.fsfla.org/ Red Hat Compiler Engineer [EMAIL PROTECTED], gcc.gnu.org} Free Software Evangelist [EMAIL PROTECTED], gnu.org}