Project

General

Profile

Bug #12316

clang on Linux wrongly keep the inlined symbol

Added by naruse (Yui NARUSE) about 3 years ago.

Status:
Third Party's Issue
Priority:
Normal
Assignee:
-
Target version:
-
[ruby-core:75159]

Description

Through clang-3.4 to clang-3.8 they wrongly keep the inlined symbols, and it cause compilation error.

compiling vm.c
linking miniruby
vm.o: In function `vm_getinstancevariable':
/home/naruse/ruby-clang/./vm_insnhelper.c:876: undefined reference to `vm_getivar'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Makefile:223: recipe for target 'miniruby' failed
make: *** [miniruby] Error 1

Note that Apple's and FreeBSD's following versions works fine.

Apple LLVM version 7.3.0 (clang-703.0.29)
Target: x86_64-apple-darwin15.4.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512
Target: x86_64-unknown-freebsd10.3
Thread model: posix

Associated revisions

Revision 60926acd
Added by naruse (Yui NARUSE) about 3 years ago

Revert "vm_insnhelper.c: INLINE condition" [Bug #12316]

This reverts commit r54747.
!clang is also essential.
Anyway clang inlines vm_getivar into both vm_call_ivar and
vm_getinstancevariable, which r54728 originally intended to.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54751 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 54751
Added by naruse (Yui NARUSE) about 3 years ago

Revert "vm_insnhelper.c: INLINE condition" [Bug #12316]

This reverts commit r54747.
!clang is also essential.
Anyway clang inlines vm_getivar into both vm_call_ivar and
vm_getinstancevariable, which r54728 originally intended to.

Revision 54751
Added by naruse (Yui NARUSE) about 3 years ago

Revert "vm_insnhelper.c: INLINE condition" [Bug #12316]

This reverts commit r54747.
!clang is also essential.
Anyway clang inlines vm_getivar into both vm_call_ivar and
vm_getinstancevariable, which r54728 originally intended to.

Revision 54751
Added by naruse (Yui NARUSE) about 3 years ago

Revert "vm_insnhelper.c: INLINE condition" [Bug #12316]

This reverts commit r54747.
!clang is also essential.
Anyway clang inlines vm_getivar into both vm_call_ivar and
vm_getinstancevariable, which r54728 originally intended to.

Revision 54751
Added by naruse (Yui NARUSE) about 3 years ago

Revert "vm_insnhelper.c: INLINE condition" [Bug #12316]

This reverts commit r54747.
!clang is also essential.
Anyway clang inlines vm_getivar into both vm_call_ivar and
vm_getinstancevariable, which r54728 originally intended to.

Also available in: Atom PDF