diff options
author | spop <spop@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-09-30 21:20:06 +0000 |
---|---|---|
committer | spop <spop@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-09-30 21:20:06 +0000 |
commit | 416d9c2481957c5f7146217d2a8bada91debd490 (patch) | |
tree | 52ac78ef4f44f5d2ba5b2904f52e0f8ea19d5c25 /gcc/graphite-poly.c | |
parent | d2cd543b69af02961878b02f5c271c3455e1f7b3 (diff) | |
download | gcc-416d9c2481957c5f7146217d2a8bada91debd490.tar.gz |
Call fatal_error when the transform read from file is not legal.
2010-09-09 Sebastian Pop <sebastian.pop@amd.com>
* graphite-poly.c (apply_poly_transforms): Do not abort when the
transform read from disk is not legal. Call fatal_error instead.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@164799 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/graphite-poly.c')
-rw-r--r-- | gcc/graphite-poly.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/graphite-poly.c b/gcc/graphite-poly.c index 46f197159b4..08a7a91d7ef 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++; } |