Module Name: src
Committed By: martin
Date: Sun Sep 2 20:58:44 UTC 2012
Modified Files:
src/external/gpl3/gcc/dist/gcc: builtins.c
Log Message:
Make can_trust_pointer_alignment() always return false on STRICT_ALIGNMENT
archs - gcc 4.5 is not able to properly track alignment and backporting
the fix from 4.6/4.7 is not feasible (according to upstream).
See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46483 for details.
Fixes PR toolchain/46865.
To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 src/external/gpl3/gcc/dist/gcc/builtins.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/gpl3/gcc/dist/gcc/builtins.c
diff -u src/external/gpl3/gcc/dist/gcc/builtins.c:1.1.1.1 src/external/gpl3/gcc/dist/gcc/builtins.c:1.2
--- src/external/gpl3/gcc/dist/gcc/builtins.c:1.1.1.1 Tue Jun 21 01:20:19 2011
+++ src/external/gpl3/gcc/dist/gcc/builtins.c Sun Sep 2 20:58:44 2012
@@ -347,7 +347,7 @@ bool
can_trust_pointer_alignment (void)
{
/* We rely on TER to compute accurate alignment information. */
- return (optimize && flag_tree_ter);
+ return (!STRICT_ALIGNMENT && optimize && flag_tree_ter);
}
/* Return the alignment in bits of EXP, a pointer valued expression.