diff options
author | meissner <meissner@138bc75d-0d04-0410-961f-82ee72b054a4> | 1993-05-10 19:58:26 +0000 |
---|---|---|
committer | meissner <meissner@138bc75d-0d04-0410-961f-82ee72b054a4> | 1993-05-10 19:58:26 +0000 |
commit | bb2e9d196116264d4174708bb4c92835800caf19 (patch) | |
tree | 36318a17647fd6d71a6b4f8a5efc4d99caf14fa1 /gcc/mips-tfile.c | |
parent | 17f9985372a4c7e37bd7dddc8610ab4f9c2df13c (diff) | |
download | gcc-bb2e9d196116264d4174708bb4c92835800caf19.tar.gz |
Do not divide by sizes by 0.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@4413 138bc75d-0d04-0410-961f-82ee72b054a4
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 0192064a2dc..ca9f3ff40e8 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 ]; + } } } |