• Stephan Bergmann's avatar
    Make compilers combine sUNO_* vars across TUs · ed510993
    Stephan Bergmann yazdı
    ...by changing them from internal linkage to being inline (where available).
    The net effect is that compilers (that HAVE_CPP_INLINE_VARIABLES) are required
    to combine all uses of a given sUNO_* var across a Library, where before that
    was only possible if the compiler could prove that placing multiple such vars
    across TUs at the same address didn't change the program's behavior.
    
    (And
    
    > $ diff <(nm --def instdir/program/libsdlo.so | grep sUNO_ | cut -d ' ' -f 3 | LC_ALL=C sort) <(nm --def instdir/program/libsdlo.so | grep sUNO_ | cut -d ' ' -f 3 | LC_ALL=C sort | uniq)
    > 2d1
    > < _ZL16sUNO_View_ViewId
    > 8d6
    > < _ZL18sUNO_View_PageKind
    > 23d20
    > < _ZL22sUNO_View_LockedLayers
    > 30d26
    > < _ZL23sUNO_View_VisibleLayers
    > 39d34
    > < _ZL25sUNO_View_PrintableLayers
    
    showed that there were duplicates, while
    
    > $ nm --def instdir/program/libsdlo.so | grep sUNO_ | cut -d ' ' -f 3 | LC_ALL=C sort | uniq | wc -l
    > 71
    
    shows that only 71 of the 117 sUNO_* vars are actually used at all---there's
    still room for clean up.)
    
    Introduces LIBO_INTERNAL_ONLY SAL_INLINE_VARIABLE.
    
    Change-Id: Icf92116de9ea4019d298e325d2a83009317f7a4c
    Reviewed-on: https://gerrit.libreoffice.org/60743
    Tested-by: Jenkins
    Reviewed-by: 's avatarStephan Bergmann <sbergman@redhat.com>
    ed510993
Adı
Son kayıt (commit)
Son güncelleme
..
inc Loading commit data...
qa Loading commit data...
res Loading commit data...
sdi Loading commit data...
source Loading commit data...
uiconfig Loading commit data...
util Loading commit data...
workben Loading commit data...
xml Loading commit data...
xsl Loading commit data...
AllLangMoTarget_sd.mk Loading commit data...
CppunitTest_sd_activex_controls_tests.mk Loading commit data...
CppunitTest_sd_dialogs_test.mk Loading commit data...
CppunitTest_sd_export_ooxml1.mk Loading commit data...
CppunitTest_sd_export_ooxml2.mk Loading commit data...
CppunitTest_sd_export_tests.mk Loading commit data...
CppunitTest_sd_filters_test.mk Loading commit data...
CppunitTest_sd_html_export_tests.mk Loading commit data...
CppunitTest_sd_import_tests.mk Loading commit data...
CppunitTest_sd_import_tests_smartart.mk Loading commit data...
CppunitTest_sd_misc_tests.mk Loading commit data...
CppunitTest_sd_svg_export_tests.mk Loading commit data...
CppunitTest_sd_tiledrendering.mk Loading commit data...
CppunitTest_sd_uimpress.mk Loading commit data...
IwyuFilter_sd.yaml Loading commit data...
JunitTest_sd_unoapi.mk Loading commit data...
Library_sd.mk Loading commit data...
Library_sdd.mk Loading commit data...
Library_sdfilt.mk Loading commit data...
Library_sdui.mk Loading commit data...
Makefile Loading commit data...
Module_sd.mk Loading commit data...
Package_opengl.mk Loading commit data...
Package_web.mk Loading commit data...
Package_xml.mk Loading commit data...
README Loading commit data...
README_REMOTE Loading commit data...
UIConfig_sdraw.mk Loading commit data...
UIConfig_simpress.mk Loading commit data...
UITest_impress_tests.mk Loading commit data...