]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
defaults.h (obstack_chunk_alloc, [...]): Default definition.
authorNeil Booth <neil@daikokuya.co.uk>
Tue, 23 Jul 2002 06:22:05 +0000 (06:22 +0000)
committerNeil Booth <neil@gcc.gnu.org>
Tue, 23 Jul 2002 06:22:05 +0000 (06:22 +0000)
* defaults.h (obstack_chunk_alloc, obstack_chunk_free):
Default definition.
* gcse.c: Don't define obstack_chunk_free.
* collect2.c, conflict.c, df.c, diagnostic.c, fix-header.c,
flow.c, gcc.c, genattrtab.c, genautomata.c, genflags.c, gensupport.c,
integrate.c, loop.c, ra.c, read-rtl.c, regrename.c, reload1.c,
reorg.c, tlink.c, tree.c, config/arm/arm.c, objc/objc-act.c:
Don't define obstack macros.
cp:
* class.c, method.c, pt.c, search.c: Similarly.

From-SVN: r55665

30 files changed:
gcc/ChangeLog
gcc/collect2.c
gcc/config/arm/arm.c
gcc/conflict.c
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/cp/method.c
gcc/cp/pt.c
gcc/cp/search.c
gcc/defaults.h
gcc/df.c
gcc/diagnostic.c
gcc/fix-header.c
gcc/flow.c
gcc/gcc.c
gcc/gcse.c
gcc/genattrtab.c
gcc/genautomata.c
gcc/genflags.c
gcc/gensupport.c
gcc/integrate.c
gcc/loop.c
gcc/objc/objc-act.c
gcc/ra.c
gcc/read-rtl.c
gcc/regrename.c
gcc/reload1.c
gcc/reorg.c
gcc/tlink.c
gcc/tree.c

index 5981a8f6170960bc3a7d67444977498b6cd80b51..94cc6a5773bd2457ed7a47e84c8d33752d9dfb79 100644 (file)
@@ -1,3 +1,14 @@
+2002-07-23  Neil Booth  <neil@daikokuya.co.uk>
+
+       * defaults.h (obstack_chunk_alloc, obstack_chunk_free):
+       Default definition.
+       * gcse.c: Don't define obstack_chunk_free.
+       * collect2.c, conflict.c, df.c, diagnostic.c, fix-header.c,
+       flow.c, gcc.c, genattrtab.c, genautomata.c, genflags.c, gensupport.c,
+       integrate.c, loop.c, ra.c, read-rtl.c, regrename.c, reload1.c,
+       reorg.c, tlink.c, tree.c, config/arm/arm.c, objc/objc-act.c:
+       Don't define obstack macros.
+
 2002-07-22  Stephane Carrez  <stcarrez@nerim.fr>
 
        PR target/6744
index 7d90658a310046972a6398832f30351faa05a6ff..ea888e48fb6b387f5ee1b90b790b2d373ee2ec6e 100644 (file)
@@ -57,10 +57,6 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
 #include "obstack.h"
 #include "intl.h"
 #include "version.h"
-
-/* Obstack allocation and deallocation routines.  */
-#define obstack_chunk_alloc xmalloc
-#define obstack_chunk_free free
 \f
 /* On certain systems, we have code that works by scanning the object file
    directly.  But this code uses system-specific header files and library
index cd75a6b7071838241fc59ae8798cbea3a61aa22a..b4b747e34520539e44ea56f31531a1c32476639e 100644 (file)
@@ -187,9 +187,6 @@ struct gcc_target targetm = TARGET_INITIALIZER;
 static struct obstack minipool_obstack;
 static char *         minipool_startobj;
 
-#define obstack_chunk_alloc   xmalloc
-#define obstack_chunk_free    free
-
 /* The maximum number of insns skipped which
    will be conditionalised if possible.  */
 static int max_insns_skipped = 5;
index e2c28414d82e56657c85bd7a974a81e1f82bcb73..9851fade3de21648d0b532cc37559ffd4eb20aff 100644 (file)
@@ -33,10 +33,6 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
 #include "hard-reg-set.h"
 #include "basic-block.h"
 
-/* Use malloc to allocate obstack chunks.  */
-#define obstack_chunk_alloc xmalloc
-#define obstack_chunk_free free
-
 /* A register conflict graph is an undirected graph containing nodes
    for some or all of the regs used in a function.  Arcs represent
    conflicts, i.e. two nodes are connected by an arc if there is a
index fc5418070fd243e75375b6a9af59b6b7356c2f81..4a63bc6939288c71bb18952d09e02bf4f753ae7c 100644 (file)
@@ -1,3 +1,7 @@
+2002-07-23  Neil Booth  <neil@daikokuya.co.uk>
+
+       * class.c, method.c, pt.c, search.c: Don't define obstack macros.
+
 2002-07-22  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
 
        PR c++/7347, c++/7348
index b59c7ce22ea09d00940bb0f486045a3a0a490f66..d56be69e53bbfc96234a43ed7eed48b7caa0ca46 100644 (file)
@@ -36,8 +36,6 @@ Boston, MA 02111-1307, USA.  */
 #include "target.h"
 
 #include "obstack.h"
-#define obstack_chunk_alloc xmalloc
-#define obstack_chunk_free free
 
 /* The number of nested classes being processed.  If we are not in the
    scope of any class, this is zero.  */
index b74bd285243f7f2fac890194349800d6e231d71f..73cdd40b8eb289e47a4f0198500c15408b3fac23 100644 (file)
@@ -54,9 +54,6 @@ enum mangling_flags
 
 typedef enum mangling_flags mangling_flags;
 
-#define obstack_chunk_alloc xmalloc
-#define obstack_chunk_free free
-
 static void do_build_assign_ref PARAMS ((tree));
 static void do_build_copy_constructor PARAMS ((tree));
 static tree synthesize_exception_spec PARAMS ((tree, tree (*) (tree, void *), void *));
index 52554a9dcbcf21eaf779a5a9a0281c4fd3e14011..565b75fdfed28366bcad4fee8fadf04fb5f29cf0 100644 (file)
@@ -73,9 +73,6 @@ static GTY(()) tree current_tinst_level;
    local variables.  */
 static htab_t local_specializations;
 
-#define obstack_chunk_alloc xmalloc
-#define obstack_chunk_free free
-
 #define UNIFY_ALLOW_NONE 0
 #define UNIFY_ALLOW_MORE_CV_QUAL 1
 #define UNIFY_ALLOW_LESS_CV_QUAL 2
index 95d5dde8cf095d1255c476d0e037fac2c08c0a5d..692a0e3ac0ac205f3f8139c35073ee9ab0f13cb0 100644 (file)
@@ -33,10 +33,6 @@ Boston, MA 02111-1307, USA.  */
 #include "output.h"
 #include "ggc.h"
 #include "toplev.h"
-
-#define obstack_chunk_alloc xmalloc
-#define obstack_chunk_free free
-
 #include "stack.h"
 
 /* Obstack used for remembering decision points of breadth-first.  */
index b542e5361387fbd907d12bdf2abe50a476e409dd..6d12e095565a8168cf01bef1527982fd4831eab8 100644 (file)
@@ -27,6 +27,9 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
 #define GET_ENVIRONMENT(VALUE, NAME) do { (VALUE) = getenv (NAME); } while (0)
 #endif
 
+#define obstack_chunk_alloc xmalloc
+#define obstack_chunk_free free
+
 /* Define default standard character escape sequences.  */
 #ifndef TARGET_BELL
 #  define TARGET_BELL 007
index 7b8b85e8fca165a33042ecc2e39f96f6719633eb..150778045e95a9bfed66a3c2760ef703564e0d84 100644 (file)
--- a/gcc/df.c
+++ b/gcc/df.c
@@ -189,9 +189,6 @@ do {                                                            \
   EXECUTE_IF_SET_IN_SBITMAP (BITMAP, MIN, node_,                \
     {(BB) = BASIC_BLOCK (node_); CODE;});} while (0)
 
-#define obstack_chunk_alloc xmalloc
-#define obstack_chunk_free free
-
 static struct obstack df_ref_obstack;
 static struct df *ddf;
 
index 120441f290f130bdd3c1c127d6a3e63583936508..89130cc169a3538d4b0c558dcc7c68a83bbf22a7 100644 (file)
@@ -37,9 +37,6 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
 #include "langhooks.h"
 #include "langhooks-def.h"
 
-#define obstack_chunk_alloc xmalloc
-#define obstack_chunk_free  free
-
 #define output_formatted_integer(BUFFER, FORMAT, INTEGER)      \
   do                                                           \
     {                                                          \
index 0a3e98fb1e6577558764788356e022a9deabc5fd..24c2070d61fe1f733c939fa47601f039c2c57766 100644 (file)
@@ -372,8 +372,6 @@ int seen_errno = 0;
 /* The following are only used when handling stdlib.h */
 int seen_EXIT_FAILURE = 0, seen_EXIT_SUCCESS = 0;
 \f
-#define obstack_chunk_alloc xmalloc
-#define obstack_chunk_free free
 struct obstack scan_file_obstack;
 
 /* NOTE:  If you edit this, also edit gen-protos.c !! */
index aad646af0f65a8ba9d3b29be8920ad9e9eff363f..3a7326ac5fae5cfb73613facabb56f9d105623bf 100644 (file)
@@ -140,9 +140,6 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
 #include "obstack.h"
 #include "splay-tree.h"
 
-#define obstack_chunk_alloc xmalloc
-#define obstack_chunk_free free
-
 /* EXIT_IGNORE_STACK should be nonzero if, when returning from a function,
    the stack pointer does not matter.  The value is tested only in
    functions that have frame pointers.
index 73ae1987ef98eede42d20cc24765c780bfcac387..9499c037f71c0371daff5586eb41aaadc335e4cf 100644 (file)
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -122,9 +122,6 @@ extern int getrusage PARAMS ((int, struct rusage *));
 
 static const char dir_separator_str[] = { DIR_SEPARATOR, 0 };
 
-#define obstack_chunk_alloc xmalloc
-#define obstack_chunk_free free
-
 /* Most every one is fine with LIBRARY_PATH.  For some, it conflicts.  */
 #ifndef LIBRARY_PATH_ENV
 #define LIBRARY_PATH_ENV "LIBRARY_PATH"
index 7fdcdea2a6c547bc75794cc766122e2eae3fd1f0..37fa2d610a17a13528cfa68c730ed4b0c4ab691f 100644 (file)
@@ -165,8 +165,10 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
 #include "cselib.h"
 
 #include "obstack.h"
+
+/* We don't want to use xmalloc.  */
+#undef obstack_chunk_alloc
 #define obstack_chunk_alloc gmalloc
-#define obstack_chunk_free free
 
 /* Propagate flow information through back edges and thus enable PRE's
    moving loop invariant calculations out of loops.
index 71c5957214bb3aa4603b582ed4d3a7f1c37a033d..07b300c2cb320653cbf789f340ad9d58097f8a89 100644 (file)
@@ -121,9 +121,6 @@ static struct obstack obstack1, obstack2;
 struct obstack *hash_obstack = &obstack1;
 struct obstack *temp_obstack = &obstack2;
 
-#define obstack_chunk_alloc xmalloc
-#define obstack_chunk_free free
-
 /* enough space to reserve for printing out ints */
 #define MAX_DIGITS (HOST_BITS_PER_INT * 3 / 10 + 3)
 
index 0fddf2706e1279967224080d7b3536c29202721f..a43b9834ec255b18c1e189c23c72e5a8bc42a7b9 100644 (file)
@@ -116,9 +116,6 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
 
 #include "genattrtab.h"
 
-#define obstack_chunk_alloc xmalloc
-#define obstack_chunk_free free
-
 /* Positions in machine description file.  Now they are not used.  But
    they could be used in the future for better diagnostic messages.  */
 typedef int pos_t;
index 010ac7066043cc046e39505b917bd5c2ec7092ea..114b98b837e211a14c87197081e3b03bf0be09cd 100644 (file)
@@ -29,10 +29,6 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
 #include "errors.h"
 #include "gensupport.h"
 
-
-#define obstack_chunk_alloc xmalloc
-#define obstack_chunk_free free
-
 /* Obstack to remember insns with.  */
 static struct obstack obstack;
 
index 7cfa31ba127b7b345d65d6703b67e861eb3b6405..9e3d0bbcb1fa8a747da362045c4fbd9b1579cbf8 100644 (file)
@@ -32,9 +32,6 @@ int target_flags;
 static struct obstack obstack;
 struct obstack *rtl_obstack = &obstack;
 
-#define obstack_chunk_alloc xmalloc
-#define obstack_chunk_free free
-
 static int sequence_num;
 static int errors;
 
index 49fd4482e23bd37da5282e63d77b8426db2717e6..c7eb5069b1c1dce07fc428a622bcffedf8fce71c 100644 (file)
@@ -46,8 +46,6 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
 #include "langhooks.h"
 
 #include "obstack.h"
-#define        obstack_chunk_alloc     xmalloc
-#define        obstack_chunk_free      free
 
 extern struct obstack *function_maybepermanent_obstack;
 
index 1b8afd50ddcc6ab7b0e5c2ae0be1c148e0f90659..595955210cba7ca235c671a370c24ca0571a17f0 100644 (file)
@@ -194,9 +194,6 @@ unsigned int max_reg_before_loop;
 
 /* The value to pass to the next call of reg_scan_update.  */
 static int loop_max_reg;
-
-#define obstack_chunk_alloc xmalloc
-#define obstack_chunk_free free
 \f
 /* During the analysis of a loop, a chain of `struct movable's
    is made to record all the movable insns found.
index e33902289ec7829da964be927122be9d886fb8c1..14bddd83c98a70a622870aa39771128a3a188431 100644 (file)
@@ -90,9 +90,6 @@ Boston, MA 02111-1307, USA.  */
 
 #include "obstack.h"
 
-#define obstack_chunk_alloc xmalloc
-#define obstack_chunk_free free
-
 /* This obstack is used to accumulate the encoding of a data type.  */
 static struct obstack util_obstack;
 /* This points to the beginning of obstack contents,
index 34ac436209cf60e41d97d4c2d5284afdfeb6457f..dbfce942dda93cdd374c4d3857c66bc985493207 100644 (file)
--- a/gcc/ra.c
+++ b/gcc/ra.c
@@ -38,9 +38,6 @@
 #include "flags.h"
 #include "ra.h"
 
-#define obstack_chunk_alloc xmalloc
-#define obstack_chunk_free free
-
 /* This is the toplevel file of a graph coloring register allocator.
    It is able to act like a George & Appel allocator, i.e. with iterative
    coalescing plus spill coalescing/propagation.
index 03b0f7d4b0dd4d765cf2671b7c65a9a640227597..8c378d96abb53e89ee64a149858dcc81ef1b9b93 100644 (file)
@@ -25,9 +25,6 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
 #include "obstack.h"
 #include "hashtab.h"
 
-#define        obstack_chunk_alloc     xmalloc
-#define        obstack_chunk_free      free
-
 static htab_t md_constants;
 
 static void fatal_with_file_and_line PARAMS ((FILE *, const char *, ...))
index fafc4cfa1b7e8e6335733dc0224655f8df1c2d94..6d7da30f2ece17fce8b5970422a35750aa8234b2 100644 (file)
@@ -36,9 +36,6 @@
 #include "toplev.h"
 #include "obstack.h"
 
-#define obstack_chunk_alloc xmalloc
-#define obstack_chunk_free free
-
 #ifndef REGNO_MODE_OK_FOR_BASE_P
 #define REGNO_MODE_OK_FOR_BASE_P(REGNO, MODE) REGNO_OK_FOR_BASE_P (REGNO)
 #endif
index 7212a56c192112905a565d00365d155415edc60e..0c23c24ee9de16c55453ff31ca0ab14bd4284aea 100644 (file)
@@ -280,9 +280,6 @@ char *reload_firstobj;
    Used to quickly free all memory after processing one insn.  */
 static char *reload_insn_firstobj;
 
-#define obstack_chunk_alloc xmalloc
-#define obstack_chunk_free free
-
 /* List of insn_chain instructions, one for every insn that reload needs to
    examine.  */
 struct insn_chain *reload_insn_chain;
index 2ccde4fdf36fa6d77e3135688cb0a7acbf295a6c..f62e3ca9df22eeecfe9f4be533b362f05c2ccb8b 100644 (file)
@@ -143,9 +143,6 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
 
 #ifdef DELAY_SLOTS
 
-#define obstack_chunk_alloc xmalloc
-#define obstack_chunk_free free
-
 #ifndef ANNUL_IFTRUE_SLOTS
 #define eligible_for_annul_true(INSN, SLOTS, TRIAL, FLAGS) 0
 #endif
index b2111dcf4d5f0b3e885001e6be0db57d1eab149c..555deb65b032fe8d935b23e3b9ef4ab73133e8bb 100644 (file)
@@ -31,10 +31,6 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
 
 #define MAX_ITERATIONS 17
 
-/* Obstack allocation and deallocation routines.  */
-#define obstack_chunk_alloc xmalloc
-#define obstack_chunk_free free
-
 /* Defined in the automatically-generated underscore.c.  */
 extern int prepends_underscore;
 
index b307a942b9b7c7d618f41a86512476e2186b3b98..1353f3288c7bbdbd2ad957a85face5755fa84ead 100644 (file)
@@ -48,8 +48,6 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
 #include "target.h"
 #include "langhooks.h"
 
-#define obstack_chunk_alloc xmalloc
-#define obstack_chunk_free free
 /* obstack.[ch] explicitly declined to prototype this.  */
 extern int _obstack_allocated_p PARAMS ((struct obstack *h, PTR obj));