summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>2004-04-09 20:08:03 +0000
committerpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>2004-04-09 20:08:03 +0000
commit71bda45df1547ff8a1aeee9a72661bb8b12ac6ee (patch)
treeaf073f56559cefb897288ce379c8aac18d4ba674
parent4f18499ce42879b7837157a37e2a23ec412797d6 (diff)
downloadppe42-gcc-71bda45df1547ff8a1aeee9a72661bb8b12ac6ee.tar.gz
ppe42-gcc-71bda45df1547ff8a1aeee9a72661bb8b12ac6ee.zip
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@80565 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/c-common.c2
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/gcc.dg/20040409-1.c4
4 files changed, 14 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index abbb5b63161..bebfffa682f 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+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>
* basic-block.h (struct edge_def): Add new field, crossing_edge.
diff --git a/gcc/c-common.c b/gcc/c-common.c
index a3904cac7c0..9c868291e09 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));
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 272ad84b843..1161a0dcb21 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2004-04-09 Andrew Pinski <pinskia@physics.uc.edu>
+
+ * gcc.dg/20040409-1.c: New test.
+
2004-04-08 Roger Sayle <roger@eyesopen.com>
PR target/14888
diff --git a/gcc/testsuite/gcc.dg/20040409-1.c b/gcc/testsuite/gcc.dg/20040409-1.c
new file mode 100644
index 00000000000..dc9206a0ae0
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/20040409-1.c
@@ -0,0 +1,4 @@
+/* This tests to make sure that the attribute noreturn
+ can be used on function pointers. */
+
+int (*temp) (void) __attribute__((noreturn));
OpenPOWER on IntegriCloud