[libcxx-commits] [PATCH] D129922: [libcxx] Replace remaining _LIBCPP_INLINE_VISIBILITY in __support

Petr Hosek via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Sun Jul 17 15:22:28 PDT 2022


phosek added a comment.

We started seeing compile errors after this change when targeting Fuchsia:

  /b/s/w/ir/cache/goma/client/gomacc /b/s/w/ir/x/w/staging/llvm_build/./bin/clang++ --target=x86_64-unknown-fuchsia --sysroot=/b/s/w/ir/x/w/cipd/sdk/arch/x64/sysroot -DLIBCXX_BUILDING_LIBCXXABI -D_LIBCPP_BUILDING_LIBRARY -D_LIBCPP_DISABLE_NEW_DELETE_DEFINITIONS -D_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/b/s/w/ir/x/w/llvm-llvm-project/libcxx/src -I/b/s/w/ir/x/w/staging/llvm_build/include/c++/v1 -I/b/s/w/ir/x/w/staging/llvm_build/include/x86_64-unknown-fuchsia/c++/v1 -I/b/s/w/ir/x/w/llvm-llvm-project/libcxxabi/include --target=x86_64-unknown-fuchsia -I/b/s/w/ir/x/w/cipd/sdk/pkg/sync/include -I/b/s/w/ir/x/w/cipd/sdk/pkg/fdio/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -ffunction-sections -fdata-sections -ffile-prefix-map=/b/s/w/ir/x/w/staging/llvm_build/runtimes/runtimes-x86_64-unknown-fuchsia-bins=../staging/llvm_build/runtimes/runtimes-x86_64-unknown-fuchsia-bins -ffile-prefix-map=/b/s/w/ir/x/w/llvm-llvm-project/= -no-canonical-prefixes -O2 -g  -fPIC -UNDEBUG -faligned-allocation -nostdinc++ -fvisibility-inlines-hidden -fvisibility=hidden -Wall -Wextra -W -Wwrite-strings -Wno-unused-parameter -Wno-long-long -Werror=return-type -Wextra-semi -Wundef -Wformat-nonliteral -Wno-user-defined-literals -Wno-covered-switch-default -Wno-suggest-override -Wno-error -std=c++20 -MD -MT libcxx/src/CMakeFiles/cxx_shared.dir/ios.cpp.obj -MF libcxx/src/CMakeFiles/cxx_shared.dir/ios.cpp.obj.d -o libcxx/src/CMakeFiles/cxx_shared.dir/ios.cpp.obj -c /b/s/w/ir/x/w/llvm-llvm-project/libcxx/src/ios.cpp
  In file included from /b/s/w/ir/x/w/llvm-llvm-project/libcxx/src/ios.cpp:10:
  In file included from /b/s/w/ir/x/w/staging/llvm_build/include/c++/v1/__locale:39:
  In file included from /b/s/w/ir/x/w/staging/llvm_build/include/c++/v1/__support/fuchsia/xlocale.h:18:
  /b/s/w/ir/x/w/staging/llvm_build/include/c++/v1/__support/xlocale/__strtonum_fallback.h:22:34: error: cannot combine with previous 'int' declaration specifier
  inline _LIBCPP_HIDE_FROM_ABI int float
                                   ^
  /b/s/w/ir/x/w/staging/llvm_build/include/c++/v1/__support/xlocale/__strtonum_fallback.h:27:34: error: cannot combine with previous 'int' declaration specifier
  inline _LIBCPP_HIDE_FROM_ABI int double
                                   ^
  /b/s/w/ir/x/w/staging/llvm_build/include/c++/v1/__support/xlocale/__strtonum_fallback.h:32:39: error: cannot combine with previous 'int' declaration specifier
  inline _LIBCPP_HIDE_FROM_ABI int long double
                                        ^
  /b/s/w/ir/x/w/staging/llvm_build/include/c++/v1/__support/xlocale/__strtonum_fallback.h:57:39: error: cannot combine with previous 'int' declaration specifier
  inline _LIBCPP_HIDE_FROM_ABI int long double
                                        ^
  4 errors generated.

Would it be possible to take a look?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D129922/new/

https://reviews.llvm.org/D129922



More information about the libcxx-commits mailing list