This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] ipa-icf.c: Fix issues generated by original latest commit


Chen Gang S <gang.chen@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.5i5j@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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]