[cfe-dev] Rendering of variable declarations specifying register allocation

Renato Golin renato.golin at linaro.org
Tue Sep 30 16:33:52 PDT 2014


Possibly. Opening a bug is definitely worth, though, at least to
investigate.

Cheers,
Renato
On 30 Sep 2014 22:48, "Matthew Fernandez" <matthew.fernandez at gmail.com>
wrote:

> Thanks, Renato. So this is definitely a bug? If so, I'll open a new one at
> http://llvm.org/bugs/. Just wanted to make sure it wasn't intended
> behaviour.
>
> On 01/10/14 06:51, Renato Golin wrote:
>
>> On 30 September 2014 02:57, Matthew Fernandez
>> <matthew.fernandez at gmail.com> wrote:
>>
>>> This seems to be independent of the target platform; at least I get
>>> similar
>>> results for ARM and x86. What is the intended behaviour here?
>>>
>>
>> Current tip does:
>>
>> void foo() {
>>      register int x asm("eax");
>> }
>>
>> AND
>>
>> void foo() {
>>      register int x = 1 asm("eax");
>> }
>>
>> The first looks correct, but the second looks weird. I don't know
>> what's the expected behaviour, or if this output can be regarded as
>> valid code (I'm guessing not), so in theory, it doesn't matter much.
>> But it does seem an easy fix for this particular case, I think.
>>
>> cheers,
>> --renato
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20141001/b80f37f0/attachment.html>


More information about the cfe-dev mailing list