diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ebb8f19ec546..85ae797c53e9 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 75a7d09d51df..595d8bd6187f 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 a712664843fe..798a7956707d 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;