summaryrefslogtreecommitdiff
path: root/include/obstack.h
AgeCommit message (Collapse)AuthorFilesLines
2011-10-22* obstack.h [!GNUC] (obstack_free): Avoid cast to int.dj1-3/+3
* ansidecl.h (ENUM_BITFIELD): Always use enum in C++ git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@180321 138bc75d-0d04-0410-961f-82ee72b054a4
2008-10-20 * obstack.h (obstack_finish <!__GNUC__>): Cast result to void *.amodra1-2/+2
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@141254 138bc75d-0d04-0410-961f-82ee72b054a4
2005-05-10Update the address and phone number of the FSF organization.nickc1-1/+1
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@99518 138bc75d-0d04-0410-961f-82ee72b054a4
2005-03-28include/gdr1-69/+3
2005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net> * partition.h: Remove use of PARAMS. * obstack.h: Remove conditional prototypes __STDC__. * objalloc.h: Remove use of PARAMS. * splay-tree.h: Likewise. libiberty/ 2005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net> Convert libiberty to use ISO C prototype style 5/n. * random.c (srandom, initstate, setstate, random): Use ISO C prototypes. * putenv.c (putenv): Likewise. * physmem.c (physmem_available, physmem_total, main): Likewise. * pex-win32.c (fix_argv, pexecute, pwait): Likewise. * pex-unix.c (pexecute, pwait): Likewise. * pex-msdos.c (pexecute, pwait): Likewise. * pex-djgpp.c (pexecute, pwait): Likewise. * partition.c (partition_new, partition_delete, partition_union) (elem_compare, partition_print): Likewise. * obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk, _obstack_allocated_p, _obstack_free, obstack_free, _obstack_memory_used, print_and_abort, obstack_next_free, obstack_object_size, obstack_base): Likewise. Remove codes predicated on !defined(__STDC__). * objalloc.c (objalloc_create, _objalloc_alloc, objalloc_free, objalloc_free_block): Use ISO C prototypes. * mkstemps.c (mkstemps): Likewise. * memset.c (memset): Likewise. * mempcpy.c (mempcpy): Likewise. * rename.c (rename): Likewise. * rindex.c (rindex): Likewise. * setenv.c (setenv, unsetenv): Likewise. * sigsetmask.c (sigsetmask): Likewise. * snprintf.c (snprintf): Likewise. * sort.c (sort_pointers, xmalloc): Likewise. * spaces.c (spaces): Likewise. * splay-tree.c (splay_tree_delete_helper, splay_tree_splay_helper, splay_tree_splay, splay_tree_foreach_helper, splay_tree_xmalloc_allocate, splay_tree_new, splay_tree_xmalloc_allocate, splay_tree_new_with_allocator, splay_tree_delete, splay_tree_insert, splay_tree_remove, splay_tree_lookup, splay_tree_max, splay_tree_min, splay_tree_predecessor, splay_tree_successor, splay_tree_foreach, splay_tree_compare_ints, splay_tree_compare_pointers): Likewise. * stpcpy.c (stpcpy): Likewise. * stpncpy.c (stpncpy): Likewise. * strcasecmp.c (strcasecmp): Likewise. * strchr.c (strchr): Likewise. * strdup.c (strdup): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@97125 138bc75d-0d04-0410-961f-82ee72b054a4
2004-07-13 * libiberty.h (ASTRDUP): Add casts required for stricterbernie1-2/+2
type conversion rules of C++. * obstack.h (obstack_free): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@84642 138bc75d-0d04-0410-961f-82ee72b054a4
2003-10-22include:jsm281-14/+26
* obstack.h: Merge the following change from gnulib: 2003-10-21 Paul Eggert <eggert@twinsun.com> * obstack.h (obstack_1grow_fast): Properly parenthesize arg. (obstack_ptr_grow_fast, obstack_int_grow_fast): Don't use lvalue casts, as GCC plans to remove support for them in GCC 3.5. Reported by Joseph S. Myers. This bug was also present in the non-GCC version, indicating that this code had always been buggy and had never been widely used. (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank): Use the fast variant of each macro, rather than copying the definiens of the fast variant; that way, we'll be more likely to catch future bugs in the fast variants. gcc: * c-typeck.c (pedantic_lvalue_warning): Unconditionally warn of deprecation of casts as lvalues. * fixinc/inclhack.def (obstack_lvalue_cast): New fix. * fixinc/fixincl.x: Regenerate. * fixinc/tests/base/obstack.h: New test. gcc/testsuite: * gcc.dg/cast-lvalue-1.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72826 138bc75d-0d04-0410-961f-82ee72b054a4
2001-03-14Fix copyright datesnickc1-1/+2
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40469 138bc75d-0d04-0410-961f-82ee72b054a4
2000-12-07 * getopt.h obstack.h: Standarize copyright statement.law1-1/+2
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38086 138bc75d-0d04-0410-961f-82ee72b054a4
1999-09-01Avoids false positives with -Wcast-qual:ghazi1-7/+11
* obstack.h (obstack_grow, obstack_grow0): Move (char*) casts in calls to `_obstack_memcpy' from here ... (_obstack_memcpy): ... to here, except in the __STDC__ case which doesn't need it. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29028 138bc75d-0d04-0410-961f-82ee72b054a4
1998-09-05 * getopt.h, obstack.h: Updated from gcc.law1-153/+176
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22260 138bc75d-0d04-0410-961f-82ee72b054a4
1997-08-21Initial revisionjason1-0/+570
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@14877 138bc75d-0d04-0410-961f-82ee72b054a4