<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Sep 23, 2013 at 2:37 PM, Eric Christopher <span dir="ltr"><<a href="mailto:echristo@gmail.com" target="_blank">echristo@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Appears to be so. Compiling the same file with gcc for it gives this:<br>
<br>
.debug_gnu_pubnames contents:<br>
Length:                255<br>
Version:               2<br>
Offset in .debug_info: 0<br>
Size:                  232<br>
Offset     Linkage  Kind    Name<br>
0x00000054 EXTERNAL FUNCTION "C::member_function"<br>
0x0000007c EXTERNAL FUNCTION "C::static_member_function"<br>
0x0000008d EXTERNAL FUNCTION "global_function"<br>
0x000000a1 EXTERNAL TYPE "ns"<br></blockquote><div><br></div><div>Hmm, weird that this prints out as "TYPE" rather than "NONE". Either a bug in the dumping support or this is really being classified as a type, which is a bit weird. *shrug* I'll just wait & see how your implementation of namespaces looks/compares (still haven't bothered to setup a GCC that has this feature, I don't think)</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
0x000000ab EXTERNAL FUNCTION "ns::global_namespace_function"<br>
0x000000ba EXTERNAL FUNCTION "ns::global_namespace_function"<br>
0x000000ca EXTERNAL VARIABLE "global_variable"<br>
0x000000d5 EXTERNAL VARIABLE "ns::global_namespace_variable"<br>
0x000000dd EXTERNAL VARIABLE "C::static_member_variable"<br>
<br>
which definitely has a type in pubnames.<br>
<span class="HOEnZb"><font color="#888888"><br>
-eric<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
On Mon, Sep 23, 2013 at 2:21 PM, David Blaikie <<a href="mailto:dblaikie@gmail.com">dblaikie@gmail.com</a>> wrote:<br>
><br>
><br>
><br>
> On Mon, Sep 23, 2013 at 2:19 PM, Eric Christopher <<a href="mailto:echristo@gmail.com">echristo@gmail.com</a>><br>
> wrote:<br>
>><br>
>> > I take it we should be seeing that type (which type is it? 'C' I guess?)<br>
>> > in<br>
>> > the pubnames section too? (we had no types being checked for, nor<br>
>> > emitted,<br>
>> > in the test as originally committed - I assume that's a bug? but I had<br>
>> > seen<br>
>> > types emitted in some cases I'd been experimenting with)<br>
>> ><br>
>><br>
>> Oddly enough, apparently not. We should be emitting qualified names as<br>
>> I mentioned the other day, that's the only place that C is appearing<br>
>> in the gnu pubnames section as emitted by gcc.<br>
><br>
><br>
> You mean "C" is only appearing in the context of some fully qualified name<br>
> of one of C's member functions? OK.<br>
><br>
> But could we have a test case for some type in the pubnames section<br>
> (something where the descriminator is 'type' rather than 'function' or<br>
> 'variable')?<br>
><br>
>><br>
>><br>
>> And yeah, that we weren't emitting, well anything, into the right<br>
>> section was the bug :)<br>
>><br>
>> > I'll look into adding dumping support for pubtypes.<br>
>> ><br>
>><br>
>> Sweet.<br>
>><br>
>> -eric<br>
><br>
><br>
</div></div></blockquote></div><br></div></div>