History

tccasm: Implement .set sym, expr

That, as well as "sym = expr", if expr contains symbols. Slightly tricky because a definition from .set is overridable, whereas proper definitions aren't. This doesn't yet allow using this for override tricks from C and global asm blocks because the symbol tables from C and asm are separate.

Michael Matz committed 10 years ago

Commit c4edfb41 parent 34fc6433 files · +61 −16Browse files

Showing the changes to tests (1 of 3 files). Show all

Unified · Split

tests/asmtest.S+11−0
@@ -824,6 +824,17 @@ nop · 823 unmodified lines
824824 .skip (-((4b-3b) > 0) * 2) , 0x90
825825 .popsection
826826
827+.globl overrideme
828+.weak overrideme
829+ nop
830+.globl notimplemented
831+notimplemented:
832+ ret
833+.set overrideme, notimplemented
834+overrideme = notimplemented
835+overrideme:
836+ ret
837+
827838 movd %esi, %mm1
828839 movd %edi, %xmm2
829840 movd (%ebx), %mm3

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t