This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]