> On Jul 17, 2018, at 9:38 AM, Richard Biener <richard.guent...@gmail.com>
> wrote:
>
>> ...
>> lldb? eh ... ;)
Yes, gdb is hard to make work on Mac OS.
>> anyhow, this is
>>
>> namespace std
>> {
>>
>> # 56
>> "/Users/pkoning/Documents/svn/buildpdp/pdp11-aout/libstdc++-v3/include/type_traits"
>> 3
>> template<typename _Tp, _Tp __v>
>> struct integral_constant
>> {
>> static constexpr _Tp value = __v;
>> ^^^
>>
>> which should have TREE_PUBLIC set. My next step would be to watch how
>> this flag changes (if it does...)
>>
>> break at ggc-page.c:1442 (the return stmt of ggc_internal_alloc)
>> conditional on result == 0x14269c750
>> and then watch *&the-decl->base.public_flag printing said flag when
>> the watchpoint hits
>> (because you're watching the whole integer containing the bitfield bit).
>>
>> If that doesn't go anywhere try reducing the source file using creduce
>> or by other means.
>>
>> Maybe look at reset_decl_linkage () and visibility support in general.
>
> Oh, and generally a grep for 'targetm' in cp/ might reveal bits that sound
> interesting.
That reveals some things but nothing jumps out at me. However... pdp11 is an
a.out target, not an ELF target. Would that explain the problem? If yes, is
there a workaround (short of implementing ELF)?
paul