[PATCH] Fix PR54515

2012-09-11 Thread Richard Guenther
This is the trunk variant of the 54515 fix - we shouldn't really return NULL_TREE from get_base_address apart from for invalid inputs (and then it's just GIGO). This makes us go half-way to fix the PR, I'll followup with a patch to look through WITH_SIZE_EXPR (after thinking about effects on alia

Re: [PATCH] Fix PR54515

2012-09-10 Thread Richard Guenther
On Fri, Sep 7, 2012 at 11:01 PM, Markus Trippelsdorf wrote: > Here the problem is that get_base_address() can return NULL_TREE and > this later leads to a segfault. Fix by checking that the return value is > valid. > gcc-4.6 and 4.7 are also affected. > > Please commit if this looks OK. > Thanks.

[PATCH] Fix PR54515

2012-09-07 Thread Markus Trippelsdorf
Here the problem is that get_base_address() can return NULL_TREE and this later leads to a segfault. Fix by checking that the return value is valid. gcc-4.6 and 4.7 are also affected. Please commit if this looks OK. Thanks. Tested on x86_64-pc-linux-gnu 2012-09-07 Markus Trippelsdorf