This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [ping2][PATCH v2] Add systemtap markers to math function slow paths


I see warnings, building for a non-systemtap configuration, of the form:

../sysdeps/ieee754/dbl-64/e_atan2.c:602:4: warning: the address of 'p' will always evaluate as 'true' [-Waddress]

It looks like the bool array used for the dummy probe macro 
implementations will need to change if probes involve addresses of 
non-weak variables (which generate this warning when converted to bool).  
I expect that initializers of the form ((void) arg, 0) would be suitable 
(although you won't just be able to use __VA_ARGS__ then to evaluate all 
the probe arguments but would need LIBC_PROBE to map to separate macros 
for each number of arguments).

-- 
Joseph S. Myers
joseph@codesourcery.com


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