Duncan Sands - [PATCH] remove dead optabs code from Ada f-e (original) (raw)

This is the mail archive of the gcc-patches@gcc.gnu.orgmailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

largest_move_alignment, gnat_compute_largest_alignment and enumerate_modes are no longer used by anything. This patch deletes them. Bootstraps successfully on i686-pc-linux-gnu.

Duncan.

Index: gcc.fsf.master/gcc/ada/gigi.h

--- gcc.fsf.master.orig/gcc/ada/gigi.h 2006-11-29 16:34:41.000000000 +0100 +++ gcc.fsf.master/gcc/ada/gigi.h 2007-02-12 20:45:25.000000000 +0100 @@ -32,14 +32,6 @@ /* Declare all functions and types used by gigi. / -/ The largest alignment, in bits, that is needed for using the widest - move instruction. */ -extern unsigned int largest_move_alignment;

-/* Compute the alignment of the largest mode that can be used for copying - objects. */ -extern void gnat_compute_largest_alignment (void);

/* GNU_TYPE is a type. Determine if it should be passed by reference by default. */ extern bool default_pass_by_ref (tree gnu_type); @@ -789,20 +781,6 @@ Return the first node found, if any, or NULL_TREE otherwise. / extern tree builtin_decl_for (tree name ATTRIBUTE_UNUSED); -/ This function is called by the front end to enumerate all the supported - modes for the machine. We pass a function which is called back with - the following integer parameters:

-#include "optabs.h" #include "recog.h" #include "toplev.h" #include "output.h" @@ -81,10 +80,6 @@ extern FILE asm_out_file; -/ The largest alignment, in bits, that is needed for using the widest - move instruction. */ -unsigned int largest_move_alignment;

static bool gnat_init (void); static void gnat_finish_incomplete_decl (tree); static unsigned int gnat_init_options (unsigned int, const char **); @@ -452,22 +447,6 @@ { abort (); } - -/* Compute the alignment of the largest mode that can be used for copying - objects. */

-void -gnat_compute_largest_alignment (void) -{ - enum machine_mode mode;

-} /* If we are using the GCC mechanism to process exception handling, we have to register the personality routine for Ada and to initialize @@ -834,84 +813,6 @@ && TREE_CODE (TYPE_SIZE (gnu_type)) != INTEGER_CST)); } -/* This function is called by the front end to enumerate all the supported - modes for the machine. We pass a function which is called back with - the following integer parameters:

-}

int fp_prec_to_size (int prec) { Index: gcc.fsf.master/gcc/ada/trans.c

--- gcc.fsf.master.orig/gcc/ada/trans.c 2007-02-09 15:39:28.000000000 +0100 +++ gcc.fsf.master/gcc/ada/trans.c 2007-02-12 20:45:25.000000000 +0100 @@ -204,7 +204,6 @@ type_annotate_only = (gigi_operating_mode == 1);

init_gnat_to_gnu ();


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]