/* Function integration definitions for GNU C-Compiler
- Copyright (C) 1990 Free Software Foundation, Inc.
+ Copyright (C) 1990, 1995, 1998 Free Software Foundation, Inc.
This file is part of GNU CC.
You should have received a copy of the GNU General Public License
along with GNU CC; see the file COPYING. If not, write to
-the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
+the Free Software Foundation, 59 Temple Place - Suite 330,
+Boston, MA 02111-1307, USA. */
/* This structure is used to remap objects in the function being inlined to
those belonging to the calling function. It is passed by
struct inline_remap
{
+ /* True if we are doing function integration, false otherwise.
+ Used to control whether RTX_UNCHANGING bits are copied by
+ copy_rtx_and_substitute. */
+ int integrating;
/* Definition of function be inlined. */
union tree_node *fndecl;
/* Place to put insns needed at start of function. */
/* Likewise, this is the copied constraints vector. */
rtvec copy_asm_constraints_vector;
+ /* Indications for regs being pointers and their alignment. */
+ char *regno_pointer_flag;
+ char *regno_pointer_align;
+
/* The next few fields are used for subst_constants to record the SETs
that it saw. */
int num_sets;
/* Return a copy of an rtx (as needed), substituting pseudo-register,
labels, and frame-pointer offsets as necessary. */
-extern rtx copy_rtx_and_substitute ();
+extern rtx copy_rtx_and_substitute PROTO((rtx, struct inline_remap *));
+
+extern void try_constants PROTO((rtx, struct inline_remap *));
+
+extern void mark_stores PROTO((rtx, rtx));
-extern void try_constants ();
+/* Return the label indicated. */
+extern rtx get_label_from_map PROTO((struct inline_remap *, int));
-extern void mark_stores ();
+/* Set the label indicated. */
+#define set_label_in_map(MAP, I, X) ((MAP)->label_map[I] = (X))
-/* We do some simple constant folding optimization. This optimization
- really exists primarily to save time inlining a function. It
- also helps users who ask for inline functions without -O. */
-extern rtx try_fold_condition ();
+/* Unfortunately, we need a global copy of const_equiv map for communication
+ with a function called from note_stores. Be *very* careful that this
+ is used properly in the presence of recursion. */
extern rtx *global_const_equiv_map;
+extern int global_const_equiv_map_size;