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

            Bug ID: 82132
           Summary: FAIL: gcc.dg/vect/vect-tail-nomask-1.c (test for
                    excess errors) due to missing posix_memalign
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: egallager at gcc dot gnu.org
                CC: hjl at gcc dot gnu.org
  Target Milestone: ---
              Host: i386-apple-darwin9.8.0
            Target: i386-apple-darwin9.8.0
             Build: i386-apple-darwin9.8.0

gcc.dg/vect/vect-tail-nomask-1.c FAILs with:

FAIL: gcc.dg/vect/vect-tail-nomask-1.c (test for excess errors)
Excess errors:
Undefined symbols:
  "_posix_memalign", referenced from:
      _run_test in ccH1tfXl.o
      _run_test in ccH1tfXl.o
      _run_test in ccH1tfXl.o
      _posix_memalign$non_lazy_ptr in ccH1tfXl.o
ld: symbol(s) not found

WARNING: gcc.dg/vect/vect-tail-nomask-1.c compilation failed to produce
executable

This is because the posix_memalign function hadn't been added yet in Darwin 9.
Instead of looking for an external posix_memalign, the testcase should use
__builtin_posix_memalign. Related to the lack of documentation for the builtin
noted in bug 65244 comment 9.

Reply via email to