aboutsummaryrefslogtreecommitdiff
path: root/gcc/cfgexpand.c
diff options
context:
space:
mode:
authorJan-Benedict Glaw <jbglaw@lug-owl.de>2013-11-09 20:12:59 +0000
committerJan-Benedict Glaw <jbglaw@gcc.gnu.org>2013-11-09 20:12:59 +0000
commit8a6ce562e5299e77a95193463571d5b15afed04d (patch)
treef5229f1c12f41434e6b8695f68fbc708565d6868 /gcc/cfgexpand.c
parent6b28e197217e4508709cc49239ea39b7a1ad0a23 (diff)
downloadgcc-8a6ce562e5299e77a95193463571d5b15afed04d.zip
gcc-8a6ce562e5299e77a95193463571d5b15afed04d.tar.gz
gcc-8a6ce562e5299e77a95193463571d5b15afed04d.tar.bz2
function.c (NAME__MAIN): Move to...
2013-11-09 Jan-Benedict Glaw <jbglaw@lug-owl.de> * function.c (NAME__MAIN): Move to... * cfgexpand.c (NAME__MAIN): ...here. [BR]: http://gcc.gnu.org/ml/gcc-patches/2013-11/msg01003.html From-SVN: r204620
Diffstat (limited to 'gcc/cfgexpand.c')
-rw-r--r--gcc/cfgexpand.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/cfgexpand.c b/gcc/cfgexpand.c
index 8faf48a..4e622c0 100644
--- a/gcc/cfgexpand.c
+++ b/gcc/cfgexpand.c
@@ -61,6 +61,14 @@ along with GCC; see the file COPYING3. If not see
#include "recog.h"
#include "output.h"
+/* Some systems use __main in a way incompatible with its use in gcc, in these
+ cases use the macros NAME__MAIN to give a quoted symbol and SYMBOL__MAIN to
+ give the same symbol without quotes for an alternative entry point. You
+ must define both, or neither. */
+#ifndef NAME__MAIN
+#define NAME__MAIN "__main"
+#endif
+
/* This variable holds information helping the rewriting of SSA trees
into RTL. */
struct ssaexpand SA;