Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/gpl3/gcc/dist/gcc Make can_trust_pointer_alignment(...
details: https://anonhg.NetBSD.org/src/rev/dfa7c26d54ab
branches: trunk
changeset: 781379:dfa7c26d54ab
user: martin <martin%NetBSD.org@localhost>
date: Sun Sep 02 20:58:44 2012 +0000
description:
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.
diffstat:
external/gpl3/gcc/dist/gcc/builtins.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 9ad83d003537 -r dfa7c26d54ab external/gpl3/gcc/dist/gcc/builtins.c
--- a/external/gpl3/gcc/dist/gcc/builtins.c Sun Sep 02 16:57:06 2012 +0000
+++ b/external/gpl3/gcc/dist/gcc/builtins.c Sun Sep 02 20:58:44 2012 +0000
@@ -347,7 +347,7 @@
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.
Home |
Main Index |
Thread Index |
Old Index