This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Fix PR 23192



On Aug 2, 2005, at 10:00 AM, Diego Novillo wrote:


We were not computing points-to information correctly when the
code takes the address of anything other than a VAR_DECL.

	PR 23192
	* tree-ssa-alias.c (add_pointed_to_var): If VALUE is of the
	form &(*PTR), take points-to information from PTR.
	Give up if VALUE by marking PTR as pointing anywhere if VALUE
	is not recognized.

testsuite/ChangeLog

	PR 23192
	* gcc.dg/pr23192.c: New test.

This test will fail on 64bit targets with an warning that a pointer is converted to an integer with a smaller size and possibly at runtime also for the same reason as the warning.

Thanks,
Andrew Pinski


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]