https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80184

            Bug ID: 80184
           Summary: FAIL: gcc.dg/torture/pr79732.c   -O*  (test for excess
                    errors) on darwin
           Product: gcc
           Version: 7.0.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: testsuite
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dominiq at lps dot ens.fr
                CC: iains at gcc dot gnu.org, rguenth at gcc dot gnu.org
  Target Milestone: ---
              Host: x86_64-apple-darwin*
            Target: x86_64-apple-darwin*
             Build: x86_64-apple-darwin*

The test gcc.dg/torture/pr79732.c fails on darwin with

/opt/gcc/_clean/gcc/testsuite/gcc.dg/torture/pr79732.c:3:5: error: only weak
aliases are supported in this configuration
 int bar () __attribute__ ((alias ("foo")));
     ^~~

This can be fixed with the following patch

--- ../_clean/gcc/testsuite/gcc.dg/torture/pr79732.c    2017-02-28
18:16:34.000000000 +0100
+++ gcc/testsuite/gcc.dg/torture/pr79732.c      2017-03-07 23:09:44.000000000
+0100
@@ -1,4 +1,6 @@
 /* { dg-do link } */
+/* { dg-require-weak "" } */
+/* { dg-require-alias "" } */

 int bar () __attribute__ ((alias ("foo")));
 void foo () { }

Reply via email to