OSDN Git Service

* gimplify.c (gimplify_scalar_mode_aggregate_compare): New function.
authorhainque <hainque@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 24 Jun 2006 12:47:48 +0000 (12:47 +0000)
committerhainque <hainque@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 24 Jun 2006 12:47:48 +0000 (12:47 +0000)
commit9c530f258696c34161fcbe4f9e04cc7db73b2529
treeb0b48b70fe5bdb5192ddb541aa32d97ef613a126
parent939e12ab242727fcb18f43693da9b82f4a2464cc
* gimplify.c (gimplify_scalar_mode_aggregate_compare): New function.
(gimplify_expr): Use it for tcc_comparison of operands of non BLKmode
aggregate types.

* tree-ssa-loop-im.c (for_each_index): Handle ARRAY_RANGE_REF as
ARRAY_REF, so have the callback called for the low bound expression.

* gnat.dg/scalar_mode_agg_compare_loop.adb: New test.
* gnat.dg/scalar_mode_agg_compare.adb: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@114963 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/gimplify.c
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/scalar_mode_agg_compare.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/scalar_mode_agg_compare_loop.adb [new file with mode: 0644]
gcc/tree-ssa-loop-im.c