[PATCH] libc-lock.h BP breakage (take 2)

Greg McGary greg@mcgary.org
Mon Jul 3 16:06:00 GMT 2000


Jakub Jelinek <jakub@redhat.com> writes:

> Actually, it is still broken.
> #pragma does not expand macros, so BP_SYM cannot be used there at all.
> Either hardcode the bp names into the libc-lock.h file (ifdef
> __BOUNDED_POINTERS__, leave the current ones if not), or whatever.

I think I should do this:

* make bp-sym.h a gcc-specific header, since it's gcc that defines
  how BP symbols are mangled.
* for libc, guard inclusion of bp-sym.h with `#if__BOUNDED_POINTERS__'
  and define it to just return its arg otherwise.
* Since gcc expands pragmas, it will know if a symbol is BP or not, so
  we needn't pre-mangle the name.

A patch will follow later today.


More information about the Libc-hacker mailing list