function.c (NAME__MAIN): Move to...
authorJan-Benedict Glaw <jbglaw@lug-owl.de>
Sat, 9 Nov 2013 20:12:59 +0000 (20:12 +0000)
committerJan-Benedict Glaw <jbglaw@gcc.gnu.org>
Sat, 9 Nov 2013 20:12:59 +0000 (20:12 +0000)
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

gcc/ChangeLog
gcc/cfgexpand.c
gcc/function.c

index f91e443e88b18e4edb3d45bb794433109be31320..0cad15d1850a87fd6a81631f5dff7ed74b4db727 100644 (file)
@@ -1,3 +1,8 @@
+2013-11-09  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
+
+       * function.c (NAME__MAIN): Move to...
+       * cfgexpand.c (NAME__MAIN): ...here.
+
 2013-11-09  Richard Sandiford  <rdsandiford@googlemail.com>
 
        * target.def (can_use_doloop_p): New hook.
index 8faf48ad4f8d557165fad7523667e36f92633df8..4e622c0b9a06b9a72c4e50dce30dff0497849982 100644 (file)
@@ -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;
index ba881c9744ed30511878f402dc6758cbcb513ed0..a36f152b79a9ef944ecc5311a54d5c24b3d3cbba 100644 (file)
@@ -71,14 +71,6 @@ along with GCC; see the file COPYING3.  If not see
 
 #define STACK_BYTES (STACK_BOUNDARY / BITS_PER_UNIT)
 
-/* 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
-
 /* Round a value to the lowest integer less than it that is a multiple of
    the required alignment.  Avoid using division in case the value is
    negative.  Assume the alignment is a power of two.  */