diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2013-03-06 18:07:14 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2013-03-06 18:07:14 +0000 |
commit | 010dffa97d82bdeca5c91c41574cee155be47840 (patch) | |
tree | 6d2463101de20b98eeb4b330c031737abbc35ad8 /gcc/ada/gcc-interface/trans.c | |
parent | afb0fadf9d4128d2e7f508535fc070beb161ffc2 (diff) | |
download | gcc-010dffa97d82bdeca5c91c41574cee155be47840.zip gcc-010dffa97d82bdeca5c91c41574cee155be47840.tar.gz gcc-010dffa97d82bdeca5c91c41574cee155be47840.tar.bz2 |
trans.c (Attribute_to_gnu): Abort instead of erroring out for an unimplemented attribute.
* gcc-interface/trans.c (Attribute_to_gnu): Abort instead of erroring
out for an unimplemented attribute.
From-SVN: r196507
Diffstat (limited to 'gcc/ada/gcc-interface/trans.c')
-rw-r--r-- | gcc/ada/gcc-interface/trans.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/gcc/ada/gcc-interface/trans.c b/gcc/ada/gcc-interface/trans.c index 8cdc632..39e455b 100644 --- a/gcc/ada/gcc-interface/trans.c +++ b/gcc/ada/gcc-interface/trans.c @@ -2066,13 +2066,8 @@ Attribute_to_gnu (Node_Id gnat_node, tree *gnu_result_type_p, int attribute) break; default: - /* Say we have an unimplemented attribute. Then set the value to be - returned to be a zero and hope that's something we can convert to - the type of this attribute. */ - post_error ("unimplemented attribute", gnat_node); - gnu_result_type = get_unpadded_type (Etype (gnat_node)); - gnu_result = integer_zero_node; - break; + /* This abort means that we have an unimplemented attribute. */ + gcc_unreachable (); } /* If this is an attribute where the prefix was unused, force a use of it if |