stor-layout.c (skip_simple_constant_arithmetic): Move to...
authorEric Botcazou <ebotcazou@adacore.com>
Thu, 11 Apr 2013 16:15:25 +0000 (16:15 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Thu, 11 Apr 2013 16:15:25 +0000 (16:15 +0000)
commit966b587e0b513fa8075beaf9ab184ed74686ee97
tree50ecfdf73e14a55579b5dfadb4bcc575c87bafec
parent76545796c5181baef9511af159178aef8d93de7c
stor-layout.c (skip_simple_constant_arithmetic): Move to...

* stor-layout.c (skip_simple_constant_arithmetic): Move to...
* tree.c (skip_simple_constant_arithmetic): ...here and make public.
(skip_simple_arithmetic): Tidy up.
* tree.h (skip_simple_constant_arithmetic): Declare.
ada/
* gcc-interface/decl.c (elaborate_expression_1): Skip only constant
arithmetics when looking for a read-only variable in the expression.

From-SVN: r197815
gcc/ChangeLog
gcc/ada/ChangeLog
gcc/ada/gcc-interface/decl.c
gcc/stor-layout.c
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/array23.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/array23_pkg1.ads [new file with mode: 0644]
gcc/testsuite/gnat.dg/array23_pkg2.ads [new file with mode: 0644]
gcc/testsuite/gnat.dg/array23_pkg3.ads [new file with mode: 0644]
gcc/tree.c
gcc/tree.h