[EXT_EP-11203] Using intrinsic __lookup_init causes INTERNAL ERROR on Windows Created: 20/Jun/23  Updated: 01/Apr/24  Resolved: 31/Jul/23

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

Type: Bug Priority: Medium
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-11224
Forum URL: https://e2e.ti.com/e2eprivate/bosch/bosch---ti-automotive-processors/f/1223/t/1238207
Found In Release: C6000_8.3.0
C7000_2.1.0.LTS
C7000_3.1.0.LTS
Fix In Release: C7000_2.1.3.LTS*
C7000_3.1.1.LTS
C6000_8.3.13
C7000_4.0.0.STS
Affected Platform/Device: default

 Description   

The attached test case has these lines ...

    // COMMENT OUT THIS LINE AND IT BUILDS CLEAN
    __lookup_init(__LUT_SET0, __as_uint16(value_to_set), (uint32_t)(i));

Build it ...

% cl7x -@options.txt example.cpp

INTERNAL ERROR: cg7x experienced a segmentation fault
                  while processing function _Z17init_lut_example1v

This is caused by a defect in the TI G3 C/C++ Codegen.
TI Customer Support may be able to suggest a workaround to avoid this.

Upgrading to the newest version of the compiler may fix this problem.

Contact TI in the E2E support forums at http://e2e.ti.com under
"Development Tools", "TI C/C++ Compiler".  See the link titled
"Submitting an issue".

We need to see this ENTIRE error message and a complete, reproducible
test case including ALL of the command-line options.
Include the .pp file created by option --preproc_with_comment


>> Compilation failure

Generated at Mon Apr 14 00:44:34 CDT 2025 using Jira 9.12.17#9120017-sha1:aba4002bcd633f188b6a4bb5dd8a0e1f20b79ee4.