Creator 3.0 Major(?) Bug Report

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

When trying to access a specified register in GCC the syntax is given clearly. Here an example:

   

volatile register uint32 R2 asm ("r2");

   

This line gets flagged by the code-checker stating that the label "r2" is ignored because R2 is an automatic variable.

   

Instead declaring

   

static volatile register uint32 R2 asm ("r2");

   

is accepted and no error displayed.

   

But when compiled, the first declaration is error-free and the register can be accessed from C without any problems, while the second declaration is flgges as an error.

   

I admit that this issue will only touch the "Cracks", but the truth is: I am one.

   

 

   

Bob

   

PS: before hitting the "Post"-button everything looks nice, let's see whether the text gets clobbered.

0 Likes
6 Replies