Skip to content

Make codebase more friendly to modern ARM compilers#2271

Open
LumioseSil wants to merge 2 commits intopret:masterfrom
LumioseSil:modern-fix
Open

Make codebase more friendly to modern ARM compilers#2271
LumioseSil wants to merge 2 commits intopret:masterfrom
LumioseSil:modern-fix

Conversation

@LumioseSil
Copy link
Copy Markdown
Contributor

LLVM whines over dumb things like no # before constants in asm and OAM_BUFFER because of the fastcopy thing.

LLVM whines over dumb things like no # before constants in asm and OAM_BUFFER because of the fastcopy thing.
So much type-punning causes things to not work on modern compilers. Additionally, -fno-toplevel-reorder is only needed for files with COMMON, as otherwise gcc will break this, so only have them for the two files that need it.

Resulting rom tested on real hardware and mGBA.
@LumioseSil
Copy link
Copy Markdown
Contributor Author

Putting two commits here since both allow modern compilers like LLVM and latest GCC to compile this rom without issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant