summaryrefslogtreecommitdiff
path: root/include/obstack.h
Commit message (Collapse)AuthorAgeFilesLines
* * libiberty.h (ASTRDUP): Add casts required for stricterbernie2004-07-131-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
* include:jsm282003-10-221-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
* Fix copyright datesnickc2001-03-141-1/+2
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40469 138bc75d-0d04-0410-961f-82ee72b054a4
* * getopt.h obstack.h: Standarize copyright statement.law2000-12-071-1/+2
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38086 138bc75d-0d04-0410-961f-82ee72b054a4
* Avoids false positives with -Wcast-qual:ghazi1999-09-011-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
* * getopt.h, obstack.h: Updated from gcc.law1998-09-051-153/+176
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22260 138bc75d-0d04-0410-961f-82ee72b054a4
* Initial revisionjason1997-08-211-0/+570
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@14877 138bc75d-0d04-0410-961f-82ee72b054a4