Chen Gang S <gang.c...@sunrus.com.cn> writes:

> The related commit is "275e275 IPA ICF: target and optimization flags
> comparison.". For sem_function::equals_private(), fix the typo issue,
> and for target_opts_for_fn(), fix access NULL issue.

The NULL pointer dereference issue also broke Solaris/SPARC bootstrap...

> This issue can be found for cross compiling gcc "make all-target-libgcc"
> under h8300, after fix this issue, it can continue to cross compiling to
> meet the next building issue for h8300.
>
> 2015-01-10  Chen Gang  <gang.chen.5...@gmail.com>
>
>       * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
>       '||' to fix typo issue.
>
>       * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
>       accept and return NULL.

... and I've use a similar patch to fix it.

        Rainer

-- 
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University

Reply via email to