https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61375
--- Comment #2 from thopre01 at gcc dot gnu.org --- Author: thopre01 Date: Fri Aug 1 08:56:17 2014 New Revision: 213426 URL: https://gcc.gnu.org/viewcvs?rev=213426&root=gcc&view=rev Log: 2014-08-01 Thomas Preud'homme <thomas.preudho...@arm.com> Backport from mainline 2014-06-13 Thomas Preud'homme <thomas.preudho...@arm.com> gcc/ 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. gcc/testsuite/ PR tree-optimization/61375 * gcc.c-torture/execute/pr61375-1.c: New test. Added: branches/gcc-4_8-branch/gcc/testsuite/gcc.c-torture/execute/pr61375.c Modified: branches/gcc-4_8-branch/gcc/ChangeLog branches/gcc-4_8-branch/gcc/testsuite/ChangeLog branches/gcc-4_8-branch/gcc/tree-ssa-math-opts.c