Message ID | alpine.DEB.2.02.1109170937540.28224@laptop-mg.saclay.inria.fr |
---|---|
State | New |
Headers | show |
On Sat, 17 Sep 2011, Marc Glisse wrote: > Is someone willing to review (and possibly commit) these 2 patches? > > Changelog for include/obstack.h in glibc (guess it should be copied almost as > is?): > > 2011-09-11 Ulrich Drepper <drepper@gmail.com> > * obstack.h [!GNUC] (obstack_free): Avoid cast to int. > > Changelog for the ansidecl.h part: > > 2011-08-08 Marc Glisse <marc.glisse@inria.fr> > * include/ansidecl.h (ENUM_BITFIELD): Always use enum in C++ These are OK (with ChangeLog entries properly omitting the "include/", since they go in include/ChangeLog) in the absence of libiberty maintainer objections within 72 hours.
Index: obstack.h =================================================================== --- obstack.h (revision 178906) +++ obstack.h (working copy) @@ -532,9 +532,9 @@ # define obstack_free(h,obj) \ ( (h)->temp = (char *) (obj) - (char *) (h)->chunk, \ (((h)->temp > 0 && (h)->temp < (h)->chunk_limit - (char *) (h)->chunk)\ - ? (int) ((h)->next_free = (h)->object_base \ - = (h)->temp + (char *) (h)->chunk) \ - : (((obstack_free) ((h), (h)->temp + (char *) (h)->chunk), 0), 0))) + ? (((h)->next_free = (h)->object_base \ + = (h)->temp + (char *) (h)->chunk), 0) \ + : ((obstack_free) ((h), (h)->temp + (char *) (h)->chunk), 0))) #endif /* not __GNUC__ or not __STDC__ */