[Bug c/39734] New: Misordering of instructions for short moves in a C program

2009-04-10 Thread vkolluri at cisco dot com



-- 
   Summary: Misordering of instructions for short moves in a C
program
   Product: gcc
   Version: 4.1.2
Status: UNCONFIRMED
  Severity: critical
  Priority: P3
 Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: vkolluri at cisco dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39734



[Bug c/39734] Misordering of instructions for short moves in a C program

2009-04-10 Thread vkolluri at cisco dot com


--- Comment #1 from vkolluri at cisco dot com  2009-04-11 06:48 ---
Created an attachment (id=17616)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17616&action=view)
gcc version,system type etc


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39734



[Bug c/39734] Misordering of instructions for short moves in a C program

2009-04-10 Thread vkolluri at cisco dot com


--- Comment #2 from vkolluri at cisco dot com  2009-04-11 06:49 ---
Created an attachment (id=17617)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17617&action=view)
preprocessed file


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39734



[Bug c/39734] Misordering of instructions for short moves in a C program

2009-04-10 Thread vkolluri at cisco dot com


--- Comment #3 from vkolluri at cisco dot com  2009-04-11 06:58 ---
The short moves(16-bit)do not work when the -O3 optimization flag is set. It
turns out that there are a couple of instances of instruction misordering in
the asm code.

The same program works fine without the optimization flags set.Also, it works
for gcc version #3.


-- 

vkolluri at cisco dot com changed:

   What|Removed |Added

 CC||vkolluri at cisco dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39734