re PR middle-end/29111 (FAIL: gcc.dg/torture/pr26565.c -O0 execution test)
PR middle-end/29111 * builtins.c (get_pointer_alignment): Return 0 if TER is not run. Co-Authored-By: Andrew Pinski <pinskia@gmail.com> Co-Authored-By: John David Anglin <dave.anglin@nrc-cnrc.gc.ca> From-SVN: r117750
This commit is contained in:
parent
76c29bf0b2
commit
af4a46a963
@ -1,3 +1,10 @@
|
||||
2006-10-15 Eric Botcazou <ebotcazou@libertysurf.fr>
|
||||
John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
|
||||
Andrew Pinski <pinskia@gmail.com>
|
||||
|
||||
PR middle-end/29111
|
||||
* builtins.c (get_pointer_alignment): Return 0 if TER is not run.
|
||||
|
||||
2006-10-15 Jan Hubicka <jh@suse.cz>
|
||||
Richard Guenther <rguenther@suse.de>
|
||||
|
||||
|
@ -235,6 +235,10 @@ get_pointer_alignment (tree exp, unsigned int max_align)
|
||||
if (! POINTER_TYPE_P (TREE_TYPE (exp)))
|
||||
return 0;
|
||||
|
||||
/* We rely on TER to compute accurate alignment information. */
|
||||
if (!(optimize && flag_tree_ter))
|
||||
return 0;
|
||||
|
||||
align = TYPE_ALIGN (TREE_TYPE (TREE_TYPE (exp)));
|
||||
align = MIN (align, max_align);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user