From 49ad7cfa7ac804b56cff13d70022020126f24c55 Mon Sep 17 00:00:00 2001 From: Bernd Schmidt Date: Mon, 9 Aug 1999 14:00:21 +0000 Subject: Include function.h in most files. Include function.h in most files. Remove most of the global variables duplicated in function.h. Add accessor macros for them which access current_function. Delete INLINE_HEADER rtx and related code, replace with code using struct function to store inlining related data. From-SVN: r28626 --- gcc/config/sparc/sparc.c | 3 ++- gcc/config/sparc/sparc.h | 8 -------- 2 files changed, 2 insertions(+), 9 deletions(-) (limited to 'gcc/config/sparc') diff --git a/gcc/config/sparc/sparc.c b/gcc/config/sparc/sparc.c index 1d3bbc7..067680b 100644 --- a/gcc/config/sparc/sparc.c +++ b/gcc/config/sparc/sparc.c @@ -34,6 +34,7 @@ Boston, MA 02111-1307, USA. */ #include "output.h" #include "insn-attr.h" #include "flags.h" +#include "function.h" #include "expr.h" #include "recog.h" #include "toplev.h" @@ -2674,7 +2675,7 @@ mem_min_alignment (mem, desired) /* Check if the compiler has recorded some information about the alignment of the base REG. If reload has completed, we already matched with proper alignments. */ - if (((regno_pointer_align != NULL + if (((current_function != 0 && REGNO_POINTER_ALIGN (regno) >= desired) || reload_completed) && ((INTVAL (offset) & (desired - 1)) == 0)) diff --git a/gcc/config/sparc/sparc.h b/gcc/config/sparc/sparc.h index c322378..7fafc4d 100644 --- a/gcc/config/sparc/sparc.h +++ b/gcc/config/sparc/sparc.h @@ -2009,9 +2009,6 @@ LFLGRET"ID":\n\ functions that have frame pointers. No definition is equivalent to always zero. */ -extern int current_function_calls_alloca; -extern int current_function_outgoing_args_size; - #define EXIT_IGNORE_STACK \ (get_frame_size () != 0 \ || current_function_calls_alloca || current_function_outgoing_args_size) @@ -2026,11 +2023,6 @@ extern int current_function_outgoing_args_size; of alloca; we also take advantage of it to omit stack adjustments before returning. */ -/* This declaration is needed due to traditional/ANSI - incompatibilities which cannot be #ifdefed away - because they occur inside of macros. Sigh. */ -extern union tree_node *current_function_decl; - #define FUNCTION_EPILOGUE(FILE, SIZE) \ (TARGET_FLAT ? sparc_flat_output_function_epilogue (FILE, (int)SIZE) \ : output_function_epilogue (FILE, (int)SIZE, \ -- cgit v1.1