VFP float aligned to 1 on stack causes fault
Bug #1514087 reported by
Piotr
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
GNU Arm Embedded Toolchain |
New
|
Undecided
|
Unassigned |
Bug Description
//Cortex M4F, VFP: hard, no optimizations
typedef float FLOAT __attribute_
#pragma pack(1)
struct STRUCT {
char a;
FLOAT val;
FLOAT val2;
};
volatile STRUCT sss;
FLOAT vfp_fault()
{
volatile float v = sss.val; // this is handled ok
v *= sss.val2;
sss.val = v;
volatile char b = sss.val2;
volatile FLOAT v1 = v; // fault here
v1 *= sss.val;
return v1;
}
To post a comment you must log in.
arm-none- eabi-gcc. exe (GNU Tools for ARM Embedded Processors) 4.9.3 20141119 (re 4_9-branch revision 218278]
lease) [ARM/embedded-