Arm Community
Site
Search
User
Site
Search
User
Support forums
Arm Development Studio forum
Deprecated Warnings
Jump...
Cancel
Locked
Locked
Replies
2 replies
Subscribers
118 subscribers
Views
3592 views
Users
0 members are here
Options
Share
More actions
Cancel
Related
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion
Deprecated Warnings
Andre Corsetti
over 12 years ago
Note: This was originally posted on 9th April 2010 at
http://forums.arm.com
Hello,
I am just off university and fairly new to ARMs but not to microcontrolers and assembly.
I was instructed to take out all error and warning from a big code that is migrating plataforms.
I was able to take out all of the assembly warnings but of these commands:
1.stmfd sp!, {r4, r11, r12, lr, pc}
2.sub sp, r11, #16
3.ldmfd sp, {r4, r11, sp, lr}
Which gives the respective warnings:
1. warning: A1788W: Explicit use of PC in this instruction is deprecated
2. warning: A1786W: This instruction using SP is deprecated
3. warning: A1786W: This instruction using SP is deprecated
I am using uVision3 V3.80, with RTX.
Does anyone know what are the commands that surpressed this deprecated ones or how can i take this warnings away?!
Or the document i may find this answers, i been searching infocenter for few days tring to find it but nada.
Appreciate,
Andre
Parents
Simon Craske
over 12 years ago
Note: This was originally posted on 10th April 2010 at
http://forums.arm.com
Andre,
The command line option you want to hide these is likely: "[font="Courier New"]--diag_suppress=1786,1788[/font]".
As reported, the [font="Courier New"]STMFD[/font] is deprecated because it has [font="Courier New"]PC[/font] in the list. This may also give you issues moving between different ARM CPUs as historically the value of the offset applied to the [font="Courier New"]PC[/font] used by stores can differ.
Assuming you are using ARM code and not Thumb, I'm not sure what the issue is with "[font="Courier New"]SUB SP, r11, #16[/font]".
hth
s.
Cancel
Vote up
0
Vote down
Cancel
Reply
Simon Craske
over 12 years ago
Note: This was originally posted on 10th April 2010 at
http://forums.arm.com
Andre,
The command line option you want to hide these is likely: "[font="Courier New"]--diag_suppress=1786,1788[/font]".
As reported, the [font="Courier New"]STMFD[/font] is deprecated because it has [font="Courier New"]PC[/font] in the list. This may also give you issues moving between different ARM CPUs as historically the value of the offset applied to the [font="Courier New"]PC[/font] used by stores can differ.
Assuming you are using ARM code and not Thumb, I'm not sure what the issue is with "[font="Courier New"]SUB SP, r11, #16[/font]".
hth
s.
Cancel
Vote up
0
Vote down
Cancel
Children
No data