utils.c (update_pointer_to): Return early if the old pointer already points to the...
authorEric Botcazou <ebotcazou@adacore.com>
Wed, 12 May 2010 10:59:38 +0000 (10:59 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Wed, 12 May 2010 10:59:38 +0000 (10:59 +0000)
commitaeecf17ca32de8fcec84ad49f7d76a582515e84b
treedbc1e0c1a27d3848e0e0979f31d510f914bb8efd
parent33e42d568d6b5ddeffdea224cb763471cdf3ba1c
utils.c (update_pointer_to): Return early if the old pointer already points to the new type.

* gcc-interface/utils.c (update_pointer_to): Return early if the old
pointer already points to the new type.  Chain the old pointer and its
variants at the end of new pointer's chain after updating them.

From-SVN: r159309
gcc/ada/ChangeLog
gcc/ada/gcc-interface/utils.c
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/frame_overflow.adb
gcc/testsuite/gnat.dg/lto8.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/lto8_pkg.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/lto8_pkg.ads [new file with mode: 0644]