aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/f95-lang.c
diff options
context:
space:
mode:
authorWilco Dijkstra <wdijkstr@arm.com>2016-06-28 13:57:47 +0000
committerWilco Dijkstra <wilco@gcc.gnu.org>2016-06-28 13:57:47 +0000
commitf6922a5660bc593d7eed186c0538eb28269fcbe5 (patch)
treec094454f4fad5edb0815ce22ddd5ab07dd9d866e /gcc/fortran/f95-lang.c
parenteda328bf1dd994826252fa0435d2e58103c2c2d8 (diff)
downloadgcc-f6922a5660bc593d7eed186c0538eb28269fcbe5.zip
gcc-f6922a5660bc593d7eed186c0538eb28269fcbe5.tar.gz
gcc-f6922a5660bc593d7eed186c0538eb28269fcbe5.tar.bz2
This patch fixes a bug in the bswap pass.
This patch fixes a bug in the bswap pass. In big-endian BIT_FIELD_REF uses big-endian bit numbering so we need to adjust the bit position. The existing version could potentially generate incorrect code however GCC doesn't emit a BIT_FIELD_REF to access the low byte in a register, so the symbolic number never matches in big-endian. gcc/ * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adjust bitnumbering for big-endian BIT_FIELD_REF. From-SVN: r237822
Diffstat (limited to 'gcc/fortran/f95-lang.c')
0 files changed, 0 insertions, 0 deletions