summaryrefslogtreecommitdiffstats
path: root/contrib/gcc/builtins.c
diff options
context:
space:
mode:
authorpfg <pfg@FreeBSD.org>2013-11-29 18:46:02 +0000
committerpfg <pfg@FreeBSD.org>2013-11-29 18:46:02 +0000
commit412075b2311a065af8a572ca368fe2006de9bcac (patch)
tree16aa550f2d0b9c92a10cd8ebe3e804bcc566d5e0 /contrib/gcc/builtins.c
parent430acb421726ab31ef1ff326a7c992c59ff2ec65 (diff)
downloadFreeBSD-src-412075b2311a065af8a572ca368fe2006de9bcac.zip
FreeBSD-src-412075b2311a065af8a572ca368fe2006de9bcac.tar.gz
gcc: upstream alignment cleanups.
This solves GCC/32617 and contributes to reduce differences with Apple's gcc42. Complete some references in the ChangeLog while here. Obtained from: gcc 4.3 (rev. 126529, 126588; GPLv2) MFC after: 3 weeks
Diffstat (limited to 'contrib/gcc/builtins.c')
-rw-r--r--contrib/gcc/builtins.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/contrib/gcc/builtins.c b/contrib/gcc/builtins.c
index ffae159..88c4668 100644
--- a/contrib/gcc/builtins.c
+++ b/contrib/gcc/builtins.c
@@ -315,9 +315,7 @@ get_pointer_alignment (tree exp, unsigned int max_align)
else if (offset)
inner = MIN (inner, BITS_PER_UNIT);
}
- if (TREE_CODE (exp) == FUNCTION_DECL)
- align = FUNCTION_BOUNDARY;
- else if (DECL_P (exp))
+ if (DECL_P (exp))
align = MIN (inner, DECL_ALIGN (exp));
#ifdef CONSTANT_ALIGNMENT
else if (CONSTANT_CLASS_P (exp))
OpenPOWER on IntegriCloud