stor-layout.c (skip_simple_constant_arithmetic): New function.
authorEric Botcazou <ebotcazou@adacore.com>
Wed, 20 Oct 2010 11:02:40 +0000 (11:02 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Wed, 20 Oct 2010 11:02:40 +0000 (11:02 +0000)
commit0d475ac5b42807b88d77b27bb3762459e6348693
tree56cb2bd757966e0e9eda82f1ae634cee00c709ee
parent73dd5ce0c3b7d284d7ea9e6ee6f60b8ad4f9af3c
stor-layout.c (skip_simple_constant_arithmetic): New function.

* stor-layout.c (skip_simple_constant_arithmetic): New function.
(self_referential_size): Use it instead of skip_simple_arithmetic.

From-SVN: r165716
gcc/ChangeLog
gcc/stor-layout.c
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/discr25.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/discr25_pkg.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/discr25_pkg.ads [new file with mode: 0644]