Commit c29726e2 by Andrew Pinski Committed by Andrew Pinski

c-common.c (handle_noreturn_attribute): Use TYPE_READONLY instead of TREE_READONLY for types.

2004-04-09  Andrew Pinski  <pinskia@physics.uc.edu>

        * c-common.c (handle_noreturn_attribute): Use TYPE_READONLY instead
        of TREE_READONLY for types.
2004-04-09  Andrew Pinski  <pinskia@physics.uc.edu>

        * gcc.dg/20040409-1.c: New test.

From-SVN: r80565
parent 750054a2
2004-04-09 Andrew Pinski <pinskia@physics.uc.edu>
* c-common.c (handle_noreturn_attribute): Use TYPE_READONLY instead
of TREE_READONLY for types.
2004-04-09 Caroline Tice <ctice@apple.com> 2004-04-09 Caroline Tice <ctice@apple.com>
* basic-block.h (struct edge_def): Add new field, crossing_edge. * basic-block.h (struct edge_def): Add new field, crossing_edge.
......
...@@ -4315,7 +4315,7 @@ handle_noreturn_attribute (tree *node, tree name, tree args ATTRIBUTE_UNUSED, ...@@ -4315,7 +4315,7 @@ handle_noreturn_attribute (tree *node, tree name, tree args ATTRIBUTE_UNUSED,
TREE_TYPE (*node) TREE_TYPE (*node)
= build_pointer_type = build_pointer_type
(build_type_variant (TREE_TYPE (type), (build_type_variant (TREE_TYPE (type),
TREE_READONLY (TREE_TYPE (type)), 1)); TYPE_READONLY (TREE_TYPE (type)), 1));
else else
{ {
warning ("`%s' attribute ignored", IDENTIFIER_POINTER (name)); warning ("`%s' attribute ignored", IDENTIFIER_POINTER (name));
......
2004-04-09 Andrew Pinski <pinskia@physics.uc.edu>
* gcc.dg/20040409-1.c: New test.
2004-04-08 Roger Sayle <roger@eyesopen.com> 2004-04-08 Roger Sayle <roger@eyesopen.com>
PR target/14888 PR target/14888
......
/* This tests to make sure that the attribute noreturn
can be used on function pointers. */
int (*temp) (void) __attribute__((noreturn));
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment