diff options
author | Michael Meissner <meissner@gcc.gnu.org> | 1993-05-10 19:58:26 +0000 |
---|---|---|
committer | Michael Meissner <meissner@gcc.gnu.org> | 1993-05-10 19:58:26 +0000 |
commit | 321d280111ca1f245da3798dd27ee8f2d7b91887 (patch) | |
tree | 36318a17647fd6d71a6b4f8a5efc4d99caf14fa1 /gcc/mips-tfile.c | |
parent | e6e1cf4ce3e2a9e986728a6187f0cb548fd67370 (diff) | |
download | gcc-321d280111ca1f245da3798dd27ee8f2d7b91887.zip gcc-321d280111ca1f245da3798dd27ee8f2d7b91887.tar.gz gcc-321d280111ca1f245da3798dd27ee8f2d7b91887.tar.bz2 |
Do not divide by sizes by 0.
From-SVN: r4413
Diffstat (limited to 'gcc/mips-tfile.c')
-rw-r--r-- | gcc/mips-tfile.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gcc/mips-tfile.c b/gcc/mips-tfile.c index 0192064..ca9f3ff 100644 --- a/gcc/mips-tfile.c +++ b/gcc/mips-tfile.c @@ -3297,7 +3297,12 @@ parse_def (name_start) t.num_sizes = i + 1; for ( i--; i >= 0; i-- ) - t.sizes[ i ] = t.sizes[ i+1 ] / t.dimensions[ i+1 ]; + { + if (t.dimensions[ i+1 ]) + t.sizes[ i ] = t.sizes[ i+1 ] / t.dimensions[ i+1 ]; + else + t.sizes[ i ] = t.sizes[ i+1 ]; + } } } |