]> gcc.gnu.org Git - gcc.git/commitdiff
Do not divide by sizes by 0.
authorMichael Meissner <meissner@gcc.gnu.org>
Mon, 10 May 1993 19:58:26 +0000 (19:58 +0000)
committerMichael Meissner <meissner@gcc.gnu.org>
Mon, 10 May 1993 19:58:26 +0000 (19:58 +0000)
From-SVN: r4413

gcc/mips-tfile.c

index 0192064a2dc7ccb86029e121c1cd8e455ef573f0..ca9f3ff40e850a83701ec7ae86c82ba019672714 100644 (file)
@@ -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 ];
+           }
        }
     }
 
This page took 0.063353 seconds and 5 git commands to generate.