obstack.h: Merge the following change from gnulib...
include: * 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. From-SVN: r72826
Showing
- gcc/ChangeLog 8 additions, 0 deletionsgcc/ChangeLog
- gcc/c-typeck.c 12 additions, 11 deletionsgcc/c-typeck.c
- gcc/fixinc/fixincl.x 46 additions, 5 deletionsgcc/fixinc/fixincl.x
- gcc/fixinc/inclhack.def 25 additions, 0 deletionsgcc/fixinc/inclhack.def
- gcc/fixinc/tests/base/obstack.h 14 additions, 0 deletionsgcc/fixinc/tests/base/obstack.h
- gcc/testsuite/ChangeLog 4 additions, 0 deletionsgcc/testsuite/ChangeLog
- gcc/testsuite/gcc.dg/cast-lvalue-1.c 12 additions, 0 deletionsgcc/testsuite/gcc.dg/cast-lvalue-1.c
- include/ChangeLog 15 additions, 0 deletionsinclude/ChangeLog
- include/obstack.h 26 additions, 14 deletionsinclude/obstack.h
Loading
Please register or sign in to comment