History

arm-asm: Warn if regset registers are not specified in ascending order

Danny Milosavljevic committed 5 years ago

Commit e0cb5181 parent 49365d51 file · +2 −0Browse files

Unified · Split

arm-asm.c+2−0
@@ -77,6 +77,8 @@ static void parse_operand(TCCState *s1, Operand *op) · 76 unmodified lines
7777 } else
7878 next(); // skip register name
7979
80+ if ((1 << reg) < regset)
81+ tcc_warning("registers will be processed in ascending order by hardware--but are not specified in ascending order here");
8082 regset |= 1 << reg;
8183 if (tok != ',')
8284 break;

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