-
- Downloads
rework OSV_SYM macro
As Nadav pointed out during review, this macro could use a bit more work, to use a single parameter instead of one. That is what is done in this patch. Unfortunately just pasting __COUNTER__ doesn't work because of preprocessor rules, and we need some indirection to get it working. Also, visibility "hidden" can go because that is already implied by "static". The problem then becomes the fact that gcc does not really like unreferenced static variables, which is solved by the "used" attribute. From gcc docs about "used": "This attribute, attached to a variable with the static storage, means that the variable must be emitted even if it appears that the variable is not referenced." Signed-off-by:Glauber Costa <glommer@cloudius-systems.com> Signed-off-by:
Avi Kivity <avi@cloudius-systems.com>
Loading
Please register or sign in to comment