[Dwarf-Discuss] qualifier modifier type tags vs type signatures

2014-09-25 Thread Mark Wielaard
Hi, This came up on the gcc list when extending the number of DWARF type qualifier modifiers that are handled. But the issue can be shown with just const and volatile. The issue is that there is no ordering constraint on the type qualifier modifier tags (they can appear in any order), but the typ

Re: [Dwarf-Discuss] qualifier modifier type tags vs type signatures

2014-09-25 Thread Michael Eager
On 09/25/14 08:18, Mark Wielaard wrote: Hi, This came up on the gcc list when extending the number of DWARF type qualifier modifiers that are handled. But the issue can be shown with just const and volatile. The issue is that there is no ordering constraint on the type qualifier modifier tags (

Re: [Dwarf-Discuss] qualifier modifier type tags vs type signatures

2014-09-25 Thread John DelSignore
Hi Mark, IMHO, the compiler should be picking a canonical order for the qualifiers in the DWARF, just like it does for name mangling: % cat xxx.cxx void fpcvi(const volatile int*){} void fpvci(volatile const int*){} % g++ -g -c xxx.cxx % nm -C xxx.o T fpcvi(int const volatile*) 0