Commit e65a2d65 by Roger Sayle Committed by Roger Sayle

c-decl.c (duplicate_decls): Preserve the noreturn attribute on non-ANSI builtin functions.


	* c-decl.c (duplicate_decls): Preserve the noreturn attribute on
	non-ANSI builtin functions.

	* gcc.c-torture/execute/builtin-noret-1.c: Test non-ANSI functions.

From-SVN: r55396
parent a06e3c40
2002-07-11 Roger Sayle <roger@eyesopen.com>
* c-decl.c (duplicate_decls): Preserve the noreturn attribute on
non-ANSI builtin functions.
Thu Jul 11 11:31:12 2002 J"orn Rennecke <joern.rennecke@superh.com>
* rtl.h (gen_rtx_CONST_VECTOR): Declare.
......
......@@ -1764,11 +1764,6 @@ duplicate_decls (newdecl, olddecl, different_binding_level)
COPY_DECL_RTL (olddecl, newdecl);
/* Merge the type qualifiers. */
if (TREE_CODE (olddecl) == FUNCTION_DECL
&& DECL_BUILT_IN_NONANSI (olddecl) && TREE_THIS_VOLATILE (olddecl)
&& ! TREE_THIS_VOLATILE (newdecl))
TREE_THIS_VOLATILE (write_olddecl) = 0;
if (TREE_READONLY (newdecl))
TREE_READONLY (write_olddecl) = 1;
......
2002-07-11 Roger Sayle <roger@eyesopen.com>
* gcc.c-torture/execute/builtin-noret-1.c: Test non-ANSI functions.
2002-07-10 Roger Sayle <roger@eyesopen.com>
* gcc.c-torture/execute/20000217-1.c: Fix usage of "abort".
......
......@@ -3,10 +3,8 @@
extern void abort (void);
extern void exit (int);
#if 0 /* Doesn't work with prototype (bug?). */
extern void _exit (int);
extern void _Exit (int);
#endif
extern void tabort (void);
extern void texit (void);
......
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