aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1992-05-04 03:37:06 +0000
committerRichard Stallman <rms@gnu.org>1992-05-04 03:37:06 +0000
commit9a509bfef189d50872954b9735fd12f506fd47df (patch)
tree4712974c7566ff26c24368a8c8d883f85758cfce
parent0e51ef9b6ae48f77f8bdd040f3b7cbff85c9d251 (diff)
downloadgcc-9a509bfef189d50872954b9735fd12f506fd47df.zip
gcc-9a509bfef189d50872954b9735fd12f506fd47df.tar.gz
gcc-9a509bfef189d50872954b9735fd12f506fd47df.tar.bz2
*** empty log message ***
From-SVN: r880
-rw-r--r--gcc/c-decl.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c
index d94ce50..bb69179 100644
--- a/gcc/c-decl.c
+++ b/gcc/c-decl.c
@@ -2568,17 +2568,9 @@ init_decl_processing ()
temp = builtin_function ("abort", void_ftype_any, NOT_BUILT_IN, 0);
TREE_THIS_VOLATILE (temp) = 1;
TREE_SIDE_EFFECTS (temp) = 1;
-#if 0
- /* Suppress error if redefined as a non-function. */
- DECL_BUILT_IN_NONANSI (temp) = 1;
-#endif
temp = builtin_function ("exit", void_ftype_any, NOT_BUILT_IN, 0);
TREE_THIS_VOLATILE (temp) = 1;
TREE_SIDE_EFFECTS (temp) = 1;
-#if 0
- /* Suppress error if redefined as a non-function. */
- DECL_BUILT_IN_NONANSI (temp) = 1;
-#endif
}
#if 0
@@ -2618,6 +2610,11 @@ builtin_function (name, type, function_code, library_name)
tree decl = build_decl (FUNCTION_DECL, get_identifier (name), type);
TREE_EXTERNAL (decl) = 1;
TREE_PUBLIC (decl) = 1;
+ /* If -traditional, permit redefining a builtin function any way you like.
+ (Though really, if the program redefines these functions,
+ it probably won't work right unless compiled with -fno-builtin.) */
+ if (flag_traditional && name[0] != '_')
+ DECL_BUILT_IN_NONANSI (decl) = 1;
if (library_name)
DECL_ASSEMBLER_NAME (decl) = get_identifier (library_name);
make_decl_rtl (decl, 0, 1);