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

--- Comment #5 from Steve Kargl <kargl at gcc dot gnu.org> ---
(In reply to Steve Kargl from comment #1)
> The following diff appears to allow bootstrap to continue
> with FreeBSD's toolchain, 
> 
> diff --git a/include/libiberty.h b/include/libiberty.h
> index e905f2cf190..ec5716535d0 100644
> --- a/include/libiberty.h
> +++ b/include/libiberty.h
> @@ -222,7 +222,7 @@ extern int mkstemps(char *, int);
>  
>  /* Make memrchr available on systems that do not have it.  */
>  #if !defined (__GNU_LIBRARY__ ) && !defined (__linux__) && \
> -    !defined (HAVE_MEMRCHR)
> +    !defined (HAVE_MEMRCHR) && !defined (__FreeBSD__)
>  extern void *memrchr(const void *, int, size_t);
>  #endif

The above allowed gcc to complete bootstrap, but I'm now seeing
about 150 new testsuite failures for gfortran.

                === gfortran Summary ===

# of expected passes            77187
# of unexpected failures        183
# of expected failures          355
# of unresolved testcases       62
# of unsupported tests          104

The number of unexpected failures normally sits at 37-ish
and all are due to some asan issue.

Reply via email to