[Bug c/83748] Local variables not aligned to word boundary
sbansal at ciena dot com
gcc-bugzilla@gcc.gnu.org
Tue Jan 9 06:55:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83748
--- Comment #2 from Sumit <sbansal at ciena dot com> ---
(In reply to Andrew Pinski from comment #1)
> What target is this for?
>
> Also what type is ome_CardCfgPxfp_t ?
The target is powerpc.
Structure definition is :
typedef PACK_PREFIX_ALWAYS_PACK struct ome_CardCfgPxfp_t
{
float txPwrMin;
float txPwrMax;
float rxPwrMin;
float rxPwrMax;
float wavelengthMin;
float wavelengthMax;
uint32 wvlgthSpacing;
SupportedObjects_l SupportedObjects;
SupportedRates_l SupportedRates;
} PACK_SUFFIX_ALWAYS_PACK ome_CardCfgPxfp_t;
The code being accessed is :
806 wvlgthMin = &(cfpPecInfo.wavelengthMin);
807 wvlgthMax = &(cfpPecInfo.wavelengthMax);
Alignment exception at below line :
829 if ((*wvlgthMin) == (*wvlgthMax))
More information about the Gcc-bugs
mailing list