aboutsummaryrefslogtreecommitdiff
path: root/gcc/stor-layout.c
diff options
context:
space:
mode:
authorJim Wilson <wilson@cygnus.com>1999-08-15 20:08:12 +0000
committerJim Wilson <wilson@gcc.gnu.org>1999-08-15 13:08:12 -0700
commit0c61f5414d8f8df2d10e7d7898b715796fad5684 (patch)
tree628dc0d63ba7285efc78eb5dc42dd3491930fe05 /gcc/stor-layout.c
parentd3ca5cdd6c49d1d8e1d384db19f82c35c73db194 (diff)
downloadgcc-0c61f5414d8f8df2d10e7d7898b715796fad5684.zip
gcc-0c61f5414d8f8df2d10e7d7898b715796fad5684.tar.gz
gcc-0c61f5414d8f8df2d10e7d7898b715796fad5684.tar.bz2
Fix misuses of MAX_MACHINE_MODE that can result in an infinite loop.
* explow.c (hard_function_value): Use VOIDmode instead of MAX_MACHINE_MODE. * stmt.c (expand_return): Likewise. * stor-layout.c (get_best_mode): Likewise. From-SVN: r28717
Diffstat (limited to 'gcc/stor-layout.c')
-rw-r--r--gcc/stor-layout.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c
index fe9fb90..408846a 100644
--- a/gcc/stor-layout.c
+++ b/gcc/stor-layout.c
@@ -1352,7 +1352,7 @@ get_best_mode (bitsize, bitpos, align, largest_mode, volatilep)
break;
}
- if (mode == MAX_MACHINE_MODE
+ if (mode == VOIDmode
/* It is tempting to omit the following line
if STRICT_ALIGNMENT is true.
But that is incorrect, since if the bitfield uses part of 3 bytes