[Bug middle-end/46164] Local variables in specified registers don't work correctly with inline asm operands

2014-08-13 Thread tp+gcc at pambor dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=46164

--- Comment #4 from Tim Pambor  ---
Created attachment 33307
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33307&action=edit
testcase for gcc 4.9.1

I think this bug is still present in gcc 4.9.1 and 4.8.4.

I could reproduce the problem with the attached testcase using gcc 4.8.4 with
-O1 and -Og and 4.9.1 with -O1. -O0, -O2, -O3, -Os generated correct code. It
generated the following assembler code:

...
  mov r0, r0@ r0
  mov r4, r4@ r1
  mov r2, r2@ r2
...

Expected would have been:

...
  mov r0, r0@ r0
  mov r1, r1@ r1
  mov r2, r2@ r2
...


[Bug middle-end/46164] Local variables in specified registers don't work correctly with inline asm operands

2014-08-13 Thread tp+gcc at pambor dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=46164

Tim Pambor  changed:

   What|Removed |Added

  Attachment #33307|0   |1
is obsolete||

--- Comment #5 from Tim Pambor  ---
Created attachment 33308
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33308&action=edit
updated testcase for gcc 4.9.1


[Bug middle-end/46164] Local variables in specified registers don't work correctly with inline asm operands

2014-08-13 Thread tp+gcc at pambor dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=46164

--- Comment #6 from Tim Pambor  ---
Created attachment 33309
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33309&action=edit
"-da" rtl files for testcase