aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1992-04-28 23:51:24 +0000
committerRichard Stallman <rms@gnu.org>1992-04-28 23:51:24 +0000
commit9e3c9e1bf6949a24f1622b61c092466bb56896d8 (patch)
tree9c8224040e974095241abdb4c0fd4be7d81df212 /gcc
parent9dee6758c3677473917b41309fd8d04f1145b377 (diff)
downloadgcc-9e3c9e1bf6949a24f1622b61c092466bb56896d8.zip
gcc-9e3c9e1bf6949a24f1622b61c092466bb56896d8.tar.gz
gcc-9e3c9e1bf6949a24f1622b61c092466bb56896d8.tar.bz2
*** empty log message ***
From-SVN: r854
Diffstat (limited to 'gcc')
-rw-r--r--gcc/c-decl.c46
1 files changed, 26 insertions, 20 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c
index c1b44fe..1650a00 100644
--- a/gcc/c-decl.c
+++ b/gcc/c-decl.c
@@ -2495,23 +2495,6 @@ init_decl_processing ()
BUILT_IN_ALLOCA, 0);
/* Suppress error if redefined as a non-function. */
DECL_BUILT_IN_NONANSI (temp) = 1;
- /* Declare these functions volatile
- to avoid spurious "control drops through" warnings. */
- /* Don't specify the argument types, to avoid errors
- from certain code which isn't valid in ANSI but which exists. */
- temp = builtin_function ("abort",
- build_function_type (void_type_node, 0),
- NOT_BUILT_IN, 0);
- TREE_THIS_VOLATILE (temp) = 1;
- TREE_SIDE_EFFECTS (temp) = 1;
- /* Suppress error if redefined as a non-function. */
- DECL_BUILT_IN_NONANSI (temp) = 1;
- exit_type = build_function_type (void_type_node, 0);
- temp = builtin_function ("exit", exit_type, NOT_BUILT_IN, 0);
- TREE_THIS_VOLATILE (temp) = 1;
- TREE_SIDE_EFFECTS (temp) = 1;
- /* Suppress error if redefined as a non-function. */
- DECL_BUILT_IN_NONANSI (temp) = 1;
temp = builtin_function ("_exit", exit_type, NOT_BUILT_IN, 0);
TREE_THIS_VOLATILE (temp) = 1;
TREE_SIDE_EFFECTS (temp) = 1;
@@ -2562,10 +2545,11 @@ init_decl_processing ()
/* In an ANSI C program, it is okay to supply built-in meanings
for these functions, since applications cannot validly use them
with any other meaning.
- However, a traditional C program can do so.
- Also, honor the -fno-builtin option. */
- if (!flag_traditional && !flag_no_builtin)
+ However, honor the -fno-builtin option. */
+ if (!flag_no_builtin)
{
+ tree exit_type;
+
builtin_function ("abs", int_ftype_int, BUILT_IN_ABS, 0);
builtin_function ("fabs", double_ftype_double, BUILT_IN_FABS, 0);
builtin_function ("labs", long_ftype_long, BUILT_IN_LABS, 0);
@@ -2575,6 +2559,28 @@ init_decl_processing ()
builtin_function ("strcpy", string_ftype_ptr_ptr, BUILT_IN_STRCPY, 0);
builtin_function ("strlen", sizet_ftype_string, BUILT_IN_STRLEN, 0);
builtin_function ("sqrt", double_ftype_double, BUILT_IN_FSQRT, 0);
+
+ /* Declare these functions volatile
+ to avoid spurious "control drops through" warnings. */
+ /* Don't specify the argument types, to avoid errors
+ from certain code which isn't valid in ANSI but which exists. */
+ temp = builtin_function ("abort",
+ build_function_type (void_type_node, 0),
+ 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
+ exit_type = build_function_type (void_type_node, 0);
+ temp = builtin_function ("exit", exit_type, 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