Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-6]: src/external/gpl3/gcc/dist/gcc Pull up following revision(s) ...



details:   https://anonhg.NetBSD.org/src/rev/4524628a4855
branches:  netbsd-6
changeset: 774584:4524628a4855
user:      riz <riz%NetBSD.org@localhost>
date:      Mon Sep 03 19:24:26 2012 +0000

description:
Pull up following revision(s) (requested by martin in ticket #540):
        external/gpl3/gcc/dist/gcc/builtins.c: revision 1.2
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 1ed2e37edc0e -r 4524628a4855 external/gpl3/gcc/dist/gcc/builtins.c
--- a/external/gpl3/gcc/dist/gcc/builtins.c     Mon Sep 03 19:22:45 2012 +0000
+++ b/external/gpl3/gcc/dist/gcc/builtins.c     Mon Sep 03 19:24:26 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