------- Comment #13 from hubicka at gcc dot gnu dot org 2010-01-15 00:33 ------- Hi, sorry for replying late, I was missed this problem somehow in my bugzilla folder. The test in question verify that variables that are common or weak are also etither public or external.
I will have time to try to reproduce the problem only tomorrow or during weekend (it will be bit tricky as I know of no machine known to fail here I can access easily), but it seems to me that if Ada produce variable failing this test, it is frontend problem uncovered by the sanity check. It would help me a lot if we can just debug this. Would be possible to have debug_tree of the variable in question so we can try to figure out reason Ada sets the flags this way? There was number of FE issues caught by this check - my way to debug them was always the same. First figure out offending vnode->decl, then put breakpoint on "return result" of ggc_alloc with condition of result being the decl to work out where fronetnd builds the node and then to try understand why flags end up being the way they are. Honza -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42068