summaryrefslogtreecommitdiffstats
path: root/contrib/gcc/function.c
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2002-12-04 16:35:55 +0000
committerobrien <obrien@FreeBSD.org>2002-12-04 16:35:55 +0000
commit1babcc37ec085bb312ef44492d2bc088822df599 (patch)
tree6d9202b2faedb6e36f586cf97331760f5baa756f /contrib/gcc/function.c
parentd3c00e65a30f12ad1e39204ac229e56d5c94968e (diff)
downloadFreeBSD-src-1babcc37ec085bb312ef44492d2bc088822df599.zip
FreeBSD-src-1babcc37ec085bb312ef44492d2bc088822df599.tar.gz
Update HEAD with FSF branch 3.2.1 release files.
Diffstat (limited to 'contrib/gcc/function.c')
-rw-r--r--contrib/gcc/function.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/gcc/function.c b/contrib/gcc/function.c
index 9ddf676..b326d10 100644
--- a/contrib/gcc/function.c
+++ b/contrib/gcc/function.c
@@ -59,6 +59,7 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#include "ggc.h"
#include "tm_p.h"
#include "integrate.h"
+#include "langhooks.h"
#ifndef TRAMPOLINE_ALIGNMENT
#define TRAMPOLINE_ALIGNMENT FUNCTION_BOUNDARY
@@ -826,7 +827,8 @@ assign_stack_temp_for_type (mode, size, keep, type)
/* If a type is specified, set the relevant flags. */
if (type != 0)
{
- RTX_UNCHANGING_P (slot) = TYPE_READONLY (type);
+ RTX_UNCHANGING_P (slot) = (lang_hooks.honor_readonly
+ && TYPE_READONLY (type));
MEM_VOLATILE_P (slot) = TYPE_VOLATILE (type);
MEM_SET_IN_STRUCT_P (slot, AGGREGATE_TYPE_P (type));
}
OpenPOWER on IntegriCloud