From: Sebastian Pop Date: Thu, 30 Sep 2010 21:20:06 +0000 (+0000) Subject: Call fatal_error when the transform read from file is not legal. X-Git-Tag: releases/gcc-4.6.0~3982 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6eb412ef35ba55a6f83e3f3e144ace97a530c8bc;p=thirdparty%2Fgcc.git Call fatal_error when the transform read from file is not legal. 2010-09-09 Sebastian Pop * graphite-poly.c (apply_poly_transforms): Do not abort when the transform read from disk is not legal. Call fatal_error instead. From-SVN: r164799 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8ae720a4cf86..24655afb6697 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2010-09-30 Sebastian Pop + + * graphite-poly.c (apply_poly_transforms): Do not abort when the + transform read from disk is not legal. Call fatal_error instead. + 2010-09-30 Sebastian Pop * graphite-poly.c (print_pbb_body): Add missing closing parenthesis. diff --git a/gcc/ChangeLog.graphite b/gcc/ChangeLog.graphite index 99d4204f5c82..313869c55176 100644 --- a/gcc/ChangeLog.graphite +++ b/gcc/ChangeLog.graphite @@ -1,3 +1,8 @@ +2010-09-09 Sebastian Pop + + * graphite-poly.c (apply_poly_transforms): Do not abort when the + transform read from disk is not legal. Call fatal_error instead. + 2010-09-09 Sebastian Pop * graphite-poly.c (print_pbb_body): Add missing closing parenthesis. diff --git a/gcc/graphite-poly.c b/gcc/graphite-poly.c index 46f197159b46..08a7a91d7ef6 100644 --- a/gcc/graphite-poly.c +++ b/gcc/graphite-poly.c @@ -753,7 +753,11 @@ apply_poly_transforms (scop_p scop) { graphite_file = init_graphite_in_file (file_scop_number); transform_done |= graphite_read_scop_file (graphite_file, scop); - gcc_assert (graphite_legal_transform (scop)); + + if (!graphite_legal_transform (scop)) + fatal_error ("the graphite file read for scop %d does not contain a legal transform", + (int) file_scop_number); + file_scop_number++; }