re PR target/86984 (invalid relocation accessing a const char array)
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Mon, 20 Aug 2018 14:20:59 +0000 (14:20 +0000)
committerJeff Law <law@gcc.gnu.org>
Mon, 20 Aug 2018 14:20:59 +0000 (08:20 -0600)
commitbe3cfb9da549517523d9ee9177d327481dc788de
tree9c706675ec67b2766d7a1c167c2d4e40ef27fe11
parentabcd1775e067600918da69330f8ff3f1f6734b4c
re PR target/86984 (invalid relocation accessing a const char array)

PR target/86984
* expr.c (expand_assignment): Assert that bitpos is positive.
(store_field): Likewise
(expand_expr_real_1): Make sure that bitpos is positive.
* config/alpha/alpha.h (CONSTANT_ADDRESS_P): Avoid signed
integer overflow.

PR target/86984
* gcc.target/alpha/pr86984.c: New test.

From-SVN: r263664
gcc/ChangeLog
gcc/config/alpha/alpha.h
gcc/expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/alpha/pr86984.c [new file with mode: 0644]