aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2004-06-24 12:09:44 +0000
committerUlrich Weigand <uweigand@gcc.gnu.org>2004-06-24 12:09:44 +0000
commitbb2d400f6145f628e9973d529ca4dc017bb5b978 (patch)
treee77324035e5ec7669c9962c640334d0abdb0e288 /gcc
parent79a4758dd5744731bad51286b13943b77abed1c3 (diff)
downloadgcc-bb2d400f6145f628e9973d529ca4dc017bb5b978.zip
gcc-bb2d400f6145f628e9973d529ca4dc017bb5b978.tar.gz
gcc-bb2d400f6145f628e9973d529ca4dc017bb5b978.tar.bz2
c-decl.c (finish_function): Do not check for DEFAULT_MAIN_RETURN.
* c-decl.c (finish_function): Do not check for DEFAULT_MAIN_RETURN. * system.h (DEFAULT_MAIN_RETURN): Poison. * doc/tm.texi (DEFAULT_MAIN_RETURN): Remove documentation. From-SVN: r83592
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/c-decl.c5
-rw-r--r--gcc/doc/tm.texi10
-rw-r--r--gcc/system.h3
4 files changed, 8 insertions, 16 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 0ea99f4..e8b7727 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2004-06-24 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * c-decl.c (finish_function): Do not check for DEFAULT_MAIN_RETURN.
+ * system.h (DEFAULT_MAIN_RETURN): Poison.
+ * doc/tm.texi (DEFAULT_MAIN_RETURN): Remove documentation.
+
2004-06-24 Ben Elliston <bje@au.ibm.com>
* doc/cfg.texi (Edges): Fix typo.
diff --git a/gcc/c-decl.c b/gcc/c-decl.c
index 1f0db19..f317020 100644
--- a/gcc/c-decl.c
+++ b/gcc/c-decl.c
@@ -6240,13 +6240,8 @@ finish_function (void)
}
else
{
-#ifdef DEFAULT_MAIN_RETURN
- /* Make it so that `main' always returns success by default. */
- DEFAULT_MAIN_RETURN;
-#else
if (flag_isoc99)
c_finish_return (integer_zero_node);
-#endif
}
}
diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi
index 70b89f6..b93941e 100644
--- a/gcc/doc/tm.texi
+++ b/gcc/doc/tm.texi
@@ -8956,16 +8956,6 @@ have names that use @samp{.}. If this macro is defined, these names
are rewritten to avoid @samp{.}.
@end defmac
-@defmac DEFAULT_MAIN_RETURN
-Define this macro if the target system expects every program's @code{main}
-function to return a standard ``success'' value by default (if no other
-value is explicitly returned).
-
-The definition should be a C statement (sans semicolon) to generate the
-appropriate rtl instructions. It is used only when compiling the end of
-@code{main}.
-@end defmac
-
@defmac INSN_SETS_ARE_DELAYED (@var{insn})
Define this macro as a C expression that is nonzero if it is safe for the
delay slot scheduler to place instructions in the delay slot of @var{insn},
diff --git a/gcc/system.h b/gcc/system.h
index abbfb41..1c2bbbe 100644
--- a/gcc/system.h
+++ b/gcc/system.h
@@ -617,7 +617,8 @@ extern int snprintf (char *, size_t, const char *, ...);
TRADITIONAL_PIPELINE_INTERFACE DFA_PIPELINE_INTERFACE \
DBX_OUTPUT_STANDARD_TYPES BUILTIN_SETJMP_FRAME_VALUE \
SUNOS4_SHARED_LIBRARIES PROMOTE_FOR_CALL_ONLY \
- SPACE_AFTER_L_OPTION NO_RECURSIVE_FUNCTION_CSE
+ SPACE_AFTER_L_OPTION NO_RECURSIVE_FUNCTION_CSE \
+ DEFAULT_MAIN_RETURN
/* Hooks that are no longer used. */
#pragma GCC poison LANG_HOOKS_FUNCTION_MARK LANG_HOOKS_FUNCTION_FREE \