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] Fix PR61375: cancel bswap optimization when value doesn't fit in a HOST_WIDE_INT


On Thu, Jul 31, 2014 at 02:57:34PM +0800, Thomas Preud'homme wrote:
> Now that GCC 4.9 branch is opened again and GCC 4.8 branch still open, is
> the following backported patch ok for both branches?

Ok.

> > Ok, what about the following patch and associated ChangeLog entries?
> > 
> > 2014-06-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
> > 
> > 	PR tree-optimization/61375
> > 	* tree-ssa-math-opts.c (find_bswap_or_nop_1): Cancel optimization
> > if
> > 	symbolic number cannot be represented in an unsigned
> > HOST_WIDE_INT.
> > 	(execute_optimize_bswap): Cancel optimization if CHAR_BIT != 8.
> > 
> > 2014-06-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
> > 
> > 	PR tree-optimization/61375
> > 	* gcc.c-torture/execute/pr61375-1.c: New test.

	Jakub


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