dd86k / ddcpuid

🔬 dd's x86 CPU Identification tool
MIT License
36 stars 1 forks source link

LDC2 compiling issues #13

Closed dd86k closed 5 years ago

dd86k commented 6 years ago

Nasty (compiler?) bugs.

For the time being, try -version=I13, because I don't want to break my DMD/Windows working code

dd86k commented 6 years ago

Compilers tested/problematic platforms

dd86k commented 6 years ago

Fixed DMD on Linux but LDC still needs some fixing. I still get

ddcpuid.d(582): Error: goto into try/finally scope is not allowed

Commit is d47e65d28cbf033cb876776fad354215ae798f2d when I wrote this comment

dd86k commented 5 years ago

The parser seem to be doubling the label for CACHE_DONE and I don't know why. Been happening forever.

<inline asm>:12:1: error: invalid symbol redefinition
.LfetchInfo_CACHE_DONE:
^
LLVM ERROR: Error parsing inline asm
dd86k commented 5 years ago

LDC2 seemed to only replicate labels with jumps from asm scopes pointing to an external label twice.

At first I tried to make two different labels but then it was repeating labels even more with optimizations on (-O).

At last, I decided to use more normal code to check the condition from register EAX.

Compiles fine, case closed lads.