On Fri, Jun 24, 2011 at 8:50 AM, Richard Guenther <richard.guent...@gmail.com> wrote: > On Fri, Jun 24, 2011 at 4:42 PM, Richard Sandiford > <richard.sandif...@linaro.org> wrote: >> This patch fixes PR 49169, where GCC is incorrectly optimising away >> a test for whether a function is Thumb rather than ARM. The patch >> was posted by Richard in the PR: >> >> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49169 >> >> See the PR for a discussion about whether a target hook is better >> (or not, IMO). >> >> Tested on arm-linux-gnueabi, where it fixes the attached testcase. >> OK to install? > > Ok. > > Thanks, > Richard. > >> Richard >> >> >> gcc/ >> 2011-07-24 Richard Guenther <rguent...@suse.de> >> >> PR tree-optimization/49169 >> * fold-const.c (get_pointer_modulus_and_residue): Don't rely on >> the alignment of function decls. >>
This caused: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49545 -- H.J.