[EXT_EP-10828] MSP430 compiler segfaults with math operations on addresses of variables Created: 25/May/22  Updated: 01/Sep/22  Resolved: 01/Sep/22

Status: Fixed
Project: Embedded Software & Tools
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: High
Reporter: TI User Assignee: TI User
Resolution: Fixed Votes: 0
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Product: Code Generation Tools
Internal ID: CODEGEN-10009
Forum URL: https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/166/t/1104005
Found In Release: MSP430_21.6.0.LTS
Fix In Release: MSP430_21.6.1.LTS*
Affected Platform/Device: default
Workaround: Use compiler version 20.2.x.LTS or prior, or upgrade to 21.6.1.LTS

 Description   

An expression like below which performs math operations on the addresses of
variables will cause a segfault in the MSP430 code generator.
uint32_v1 = (uint32_v1 - ((uint32_t) &uint16_v1)) + ((uint32_t) &uint16_v2);


Generated at Wed Apr 16 07:09:14 CDT 2025 using Jira 9.12.17#9120017-sha1:aba4002bcd633f188b6a4bb5dd8a0e1f20b79ee4.