190075Sobrien/* Null garbage collection for the GNU compiler. 2169689Skan Copyright (C) 1998, 1999, 2000, 2003, 2004, 2005 3132718Skan Free Software Foundation, Inc. 490075Sobrien 590075Sobrien This file is part of GCC. 690075Sobrien 790075Sobrien GCC is free software; you can redistribute it and/or modify it 890075Sobrien under the terms of the GNU General Public License as published by 990075Sobrien the Free Software Foundation; either version 2, or (at your option) 1090075Sobrien any later version. 1190075Sobrien 1290075Sobrien GCC is distributed in the hope that it will be useful, but WITHOUT 1390075Sobrien ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 1490075Sobrien or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public 1590075Sobrien License for more details. 1690075Sobrien 1790075Sobrien You should have received a copy of the GNU General Public License 1890075Sobrien along with GCC; see the file COPYING. If not, write to the Free 19169689Skan Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 20169689Skan 02110-1301, USA. */ 2190075Sobrien 22169689Skan/* This version is used by the gen* programs and certain language-specific 23169689Skan targets (such as java), where we don't really need GC at all. 24169689Skan This prevents problems with pulling in all the tree stuff. */ 2590075Sobrien 26169689Skan#ifdef GENERATOR_FILE 27169689Skan#include "bconfig.h" 28169689Skan#else 2990075Sobrien#include "config.h" 30169689Skan#endif 31169689Skan 3290075Sobrien#include "system.h" 33132718Skan#include "coretypes.h" 3490075Sobrien#include "ggc.h" 3590075Sobrien 3690075Sobrienvoid * 37169689Skanggc_alloc_typed_stat (enum gt_types_enum ARG_UNUSED (gte), size_t size 38169689Skan MEM_STAT_DECL) 3990075Sobrien{ 4090075Sobrien return xmalloc (size); 4190075Sobrien} 42117395Skan 43117395Skanvoid * 44169689Skanggc_alloc_stat (size_t size MEM_STAT_DECL) 45117395Skan{ 46132718Skan return xmalloc (size); 47132718Skan} 48132718Skan 49132718Skanvoid * 50169689Skanggc_alloc_cleared_stat (size_t size MEM_STAT_DECL) 51132718Skan{ 52169689Skan return xcalloc (size, 1); 53132718Skan} 54132718Skan 55132718Skanvoid * 56169689Skanggc_realloc_stat (void *x, size_t size MEM_STAT_DECL) 57132718Skan{ 58169689Skan return xrealloc (x, size); 59117395Skan} 60117395Skan 61169689Skanvoid 62169689Skanggc_free (void *p) 63117395Skan{ 64169689Skan free (p); 65117395Skan} 66