aboutsummaryrefslogtreecommitdiff
path: root/gcc/function.h
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2006-03-11 14:52:57 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2006-03-11 14:52:57 +0000
commit9fb798d76ce4e7682e0aa1846275e8fb6f64f8cc (patch)
tree85ac110020df9a0d5ae2303c5c233d027bad4d3a /gcc/function.h
parent6dd3c0a5996256d8159c9c6be925114f692c398e (diff)
downloadgcc-9fb798d76ce4e7682e0aa1846275e8fb6f64f8cc.zip
gcc-9fb798d76ce4e7682e0aa1846275e8fb6f64f8cc.tar.gz
gcc-9fb798d76ce4e7682e0aa1846275e8fb6f64f8cc.tar.bz2
function.h (frame_offset_overflow): Declare.
* function.h (frame_offset_overflow): Declare. * function.c (frame_offset_overflow): New function. (assign_stack_local_1): Call it to detect that the offset overflows. * cfgexpand.c (alloc_stack_frame_space): Likewise. From-SVN: r111964
Diffstat (limited to 'gcc/function.h')
-rw-r--r--gcc/function.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/function.h b/gcc/function.h
index 7c9ea3f..1b2484e 100644
--- a/gcc/function.h
+++ b/gcc/function.h
@@ -534,6 +534,11 @@ extern void free_block_changes (void);
the caller may have to do that. */
extern HOST_WIDE_INT get_frame_size (void);
+/* Issue an error message and return TRUE if frame OFFSET overflows in
+ the signed target pointer arithmetics for function FUNC. Otherwise
+ return FALSE. */
+extern bool frame_offset_overflow (HOST_WIDE_INT, tree);
+
/* A pointer to a function to create target specific, per-function
data structures. */
extern struct machine_function * (*init_machine_status) (void);