aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/machmode.h6
-rw-r--r--gcc/stor-layout.c4
3 files changed, 12 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index ebb8f19..85ae797 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+Thu Mar 11 13:55:52 1999 Richard Henderson <rth@cygnus.com>
+
+ * 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 <amylaar@cygnus.co.uk>
* loop.c (strength_reduce): Don't do biv increment -> DEST_REG giv
diff --git a/gcc/machmode.h b/gcc/machmode.h
index 75a7d09..595d8bd6 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 a712664..798a795 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;