builtins.def (BUILT_IN_ALLOCA): Remove "#if SMALL_STACK" form.
authorRoger Sayle <roger@eyesopen.com>
Sun, 20 Jul 2003 16:29:57 +0000 (16:29 +0000)
committerRoger Sayle <sayle@gcc.gnu.org>
Sun, 20 Jul 2003 16:29:57 +0000 (16:29 +0000)
* builtins.def (BUILT_IN_ALLOCA): Remove "#if SMALL_STACK" form.
* system.h (SMALL_STACK): Poison obsolete target macro.
* doc/tm.texi (SMALL_STACK): Remove target macro documentation.

From-SVN: r69609

gcc/ChangeLog
gcc/builtins.def
gcc/doc/tm.texi
gcc/system.h

index 6ce623407b09e419c6d0d7da124d1c6a1e1ff7d8..fae7b5c752eddf6d653070dc49321e00d1a1bcc4 100644 (file)
@@ -1,3 +1,9 @@
+2003-07-20  Roger Sayle  <roger@eyesopen.com>
+
+       * builtins.def (BUILT_IN_ALLOCA): Remove "#if SMALL_STACK" form.
+       * system.h (SMALL_STACK): Poison obsolete target macro.
+       * doc/tm.texi (SMALL_STACK): Remove target macro documentation.
+
 2003-07-20  Phil Edwards  <pme@gcc.gnu.org>
 
        * configure.in:  Cache the results of testing for cmp's capabilities.
index 5f814bbf9f5a11597d42aa1b59271da871a016db..0eaba889dcb70f48631ca238bd3f9e2f571a4aa1 100644 (file)
@@ -140,19 +140,10 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
   DEF_BUILTIN (ENUM, NAME, BUILT_IN_FRONTEND, TYPE, TYPE,      \
               true, true, true, ATTRS, true)
 
-/* If SMALL_STACK is defined, then `alloca' is only defined in its
-   `__builtin' form.  */
-#if SMALL_STACK  
-DEF_FALLBACK_BUILTIN(BUILT_IN_ALLOCA,
-                    "__builtin_alloca",
-                    BT_FN_PTR_SIZE,
-                    ATTR_MALLOC_NOTHROW_LIST)
-#else
 DEF_EXT_LIB_BUILTIN(BUILT_IN_ALLOCA,
                    "__builtin_alloca",
                    BT_FN_PTR_SIZE,
                    ATTR_MALLOC_NOTHROW_LIST)
-#endif
 
 DEF_LIB_BUILTIN(BUILT_IN_ABS,
                "__builtin_abs",
index 2c82c4044f06bbb24762d81bf34cbd522d1d29ac..e3f4afe03b3ae70ead4f72e8712a6d2a53de078c 100644 (file)
@@ -2936,12 +2936,6 @@ want to support call frame debugging information like that provided by
 DWARF 2.
 @end defmac
 
-@defmac SMALL_STACK
-Define this macro if the stack size for the target is very small.  This
-has the effect of disabling gcc's built-in @samp{alloca}, though
-@samp{__builtin_alloca} is not affected.
-@end defmac
-
 @node Exception Handling
 @subsection Exception Handling Support
 @cindex exception handling
index 3a7e18038a7081a14ee886f6f01a38b6c0fb57d7..14662de00c5fd602b6759001811baee89381bb61 100644 (file)
@@ -592,7 +592,7 @@ typedef char _Bool;
    headers and were not used, and may be obsolete or may never have
    been used.  */
  #pragma GCC poison INT_ASM_OP ASM_OUTPUT_EH_REGION_BEG CPP_PREDEFINES    \
-       ASM_OUTPUT_EH_REGION_END ASM_OUTPUT_LABELREF_AS_INT                \
+       ASM_OUTPUT_EH_REGION_END ASM_OUTPUT_LABELREF_AS_INT SMALL_STACK    \
        DOESNT_NEED_UNWINDER EH_TABLE_LOOKUP OBJC_SELECTORS_WITHOUT_LABELS \
        OMIT_EH_TABLE EASY_DIV_EXPR IMPLICIT_FIX_EXPR                      \
        LONGJMP_RESTORE_FROM_STACK MAX_INT_TYPE_SIZE ASM_IDENTIFY_GCC      \