From bb2e9d196116264d4174708bb4c92835800caf19 Mon Sep 17 00:00:00 2001 From: meissner Date: Mon, 10 May 1993 19:58:26 +0000 Subject: Do not divide by sizes by 0. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@4413 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/mips-tfile.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'gcc/mips-tfile.c') 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 ]; + } } } -- cgit v1.2.1