I ran into a failures due to no weak symbol support in my target. This patch cures that. Is it right? The test case uses "weakref" so I' not 100% sure that checking for "weak" support is correct. If not, I can put in a skip-if check for the target (pdp11) instead.
paul ChangeLog: 2018-10-25 Paul Koning <n...@arrl.net> * gcc.dg/tree-ssa/attr-alias.c: Skip if no weak support. Index: testsuite/gcc.dg/tree-ssa/attr-alias.c =================================================================== --- testsuite/gcc.dg/tree-ssa/attr-alias.c (revision 265404) +++ testsuite/gcc.dg/tree-ssa/attr-alias.c (working copy) @@ -1,5 +1,6 @@ /* { dg-do compile } */ /* { dg-require-alias "" } */ +/* { dg-require-weak "" } */ /* { dg-options "-O2 -fdump-tree-optimized -std=gnu89" } */ void abort (void); __attribute__ ((weak))