Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 324503

Summary: <xdc/std.h> should define magic symbols for all TI compilers
Product: [Technology] RTSC Reporter: Karl Wechsler <karl>
Component: CoreAssignee: Dave Russo <d-russo>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P1 CC: cring, d-russo, karl, sascha
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard: target:3.21

Description Karl Wechsler CLA 2010-09-03 22:21:13 EDT
This would simplify use of <xdc/std.h>.  Using it without xdc build flow is very cumbersome (I know, it's documented, but ...)

See attached.
Comment 1 Dave Russo CLA 2011-01-13 19:16:00 EST
Added select.h to the ti.targets package (in xdctargets-d14) which selects appropriate xdc_target_* values based on TI compiler pre-defined macros.

This header is included by xdc/std.h (in xdc-w22) whenever 
    1. a TI compiler is used _and_ 
    2. the xdc_target_* symbols are _not_ already defined

Not all TI targets are supported; obsolete targets were ommitted.  All future TI targets will require that this file be updated.
Comment 2 Sasha Slijepcevic CLA 2011-02-24 14:36:11 EST
I verified the fix using the test target.select from the xdctest tree. With 3.21.00.30, the test fails because xdc_target_* values are not available either on the command line or from xdc/std.h. With 3.21.00.40, for multiple TI targets the test is passing because xdc_target_* values are brought in from xdc/std.h by including ti/targets/select.h.
Comment 3 Dave Russo CLA 2011-06-20 14:02:59 EDT
Shipped in XDCtools 3.21.
Comment 4 Dave Russo CLA 2011-06-20 14:05:05 EDT
Shipped in XDCtools 3.21