[PATCH] Remove bogus optimization from may_alias_p
Diego Novillo
dnovillo@google.com
Mon Oct 20 17:51:00 GMT 2008
2008/10/19 Richard Guenther <rguenther@suse.de>:
> This removes a test where one subtest is always false and the
> other one is always true if unmodifiable_var_p (var) is true,
> which is obviously bogus. On the trunk this causes false
> TBAA pruning of points-to sets.
This also prunes the case where a regular pointer is made to point to
a read-only variable. The user gets a warning about mismatched const
settings. So TBAA should be able to prune this.
You also need a test case.
Diego.
More information about the Gcc-patches
mailing list