Home Dashboard Directory Help
Search

WINCE 7 ARM compiler - wrong code with aligned array by MitkoRadev


Status: 

Closed


1
0
Sign in
to vote
Type: Bug
ID: 785936
Opened: 4/30/2013 9:01:18 AM
Access Restriction: Public
0
Workaround(s)
view
0
User(s) can reproduce this bug

Description

This is NOT a Visual Studio 2012 BUG, but I cannot find a better category. Please ignore it if you think it is unrelevant.

This is a bug in the ARM compiler for ARM from Platform Builder for Windows Embedded Compact 7, compiler version string:
Microsoft (R) C/C++ Optimizing Compiler Version 15.01.50304.03 for ARM

Passing elements of a __declspec( align( 16 ) ) array of structures as function parameters is not correct, in /Ox compilation data is passed in registers in wrong order, in /Od compilation the code the code is even more incorrect.

It seems the BUG can be worked around by using a temporary pointer to the alligned array.
Details
Sign in to post a comment.
Posted by Microsoft on 4/29/2014 at 12:30 PM
Thank you for reporting this issue. This issue has been fixed in Visual Studio 2013. You can install a trial version of Visual Studio 2013 with the fix from: http://go.microsoft.com/?linkid=9832436
Posted by Microsoft on 5/8/2013 at 8:46 PM
Hi,
we will fix it in future release.
thank you for your feedback.
Posted by Microsoft on 4/30/2013 at 9:51 AM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)
Sign in to post a workaround.