From: Richard Henderson Date: Thu, 11 Mar 1999 13:56:20 +0000 (-0800) Subject: machmode.h (smallest_mode_for_size): Prototype. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=27922c1362c0c8b3edf757a216195eceae3f51e2;p=gcc.git machmode.h (smallest_mode_for_size): Prototype. * machmode.h (smallest_mode_for_size): Prototype. * stor-layout.c (smallest_mode_for_size): Remove static. From-SVN: r25703 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ebb8f19ec54..85ae797c53e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Thu Mar 11 13:55:52 1999 Richard Henderson + + * machmode.h (smallest_mode_for_size): Prototype. + * stor-layout.c (smallest_mode_for_size): Remove static. + Thu Mar 11 21:25:59 1999 J"orn Rennecke * loop.c (strength_reduce): Don't do biv increment -> DEST_REG giv diff --git a/gcc/machmode.h b/gcc/machmode.h index 75a7d09d51d..595d8bd6187 100644 --- a/gcc/machmode.h +++ b/gcc/machmode.h @@ -199,6 +199,12 @@ extern unsigned char mode_wider_mode[]; extern enum machine_mode mode_for_size PROTO((unsigned int, enum mode_class, int)); +/* Similar, but find the smallest mode for a given width. */ + +extern enum machine_mode smallest_mode_for_size PROTO((unsigned int, + enum mode_class)); + + /* Return an integer mode of the exact same size as the input mode, or BLKmode on failure. */ diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c index a712664843f..798a7956707 100644 --- a/gcc/stor-layout.c +++ b/gcc/stor-layout.c @@ -53,8 +53,6 @@ int maximum_field_alignment; May be overridden by front-ends. */ int set_alignment = 0; -static enum machine_mode smallest_mode_for_size PROTO((unsigned int, - enum mode_class)); static tree layout_record PROTO((tree)); static void layout_union PROTO((tree)); @@ -159,7 +157,7 @@ mode_for_size (size, class, limit) /* Similar, but never return BLKmode; return the narrowest mode that contains at least the requested number of bits. */ -static enum machine_mode +enum machine_mode smallest_mode_for_size (size, class) unsigned int size; enum mode_class class;