aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-common.c
diff options
context:
space:
mode:
authorAndrew Pinski <pinskia@physics.uc.edu>2004-04-09 20:08:03 +0000
committerAndrew Pinski <pinskia@gcc.gnu.org>2004-04-09 13:08:03 -0700
commitc29726e22da92656d5e0215da345410d2731252c (patch)
treeaf073f56559cefb897288ce379c8aac18d4ba674 /gcc/c-common.c
parent750054a2ee1925e265b1b6209a7ca0b0df2bcc04 (diff)
downloadgcc-c29726e22da92656d5e0215da345410d2731252c.zip
gcc-c29726e22da92656d5e0215da345410d2731252c.tar.gz
gcc-c29726e22da92656d5e0215da345410d2731252c.tar.bz2
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
Diffstat (limited to 'gcc/c-common.c')
-rw-r--r--gcc/c-common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/c-common.c b/gcc/c-common.c
index a3904ca..9c86829 100644
--- a/gcc/c-common.c
+++ b/gcc/c-common.c
@@ -4315,7 +4315,7 @@ handle_noreturn_attribute (tree *node, tree name, tree args ATTRIBUTE_UNUSED,
TREE_TYPE (*node)
= build_pointer_type
(build_type_variant (TREE_TYPE (type),
- TREE_READONLY (TREE_TYPE (type)), 1));
+ TYPE_READONLY (TREE_TYPE (type)), 1));
else
{
warning ("`%s' attribute ignored", IDENTIFIER_POINTER (name));