Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 324503 - <xdc/std.h> should define magic symbols for all TI compilers
Summary: <xdc/std.h> should define magic symbols for all TI compilers
Status: CLOSED FIXED
Alias: None
Product: RTSC
Classification: Technology
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P1 normal (vote)
Target Milestone: ---   Edit
Assignee: Dave Russo CLA
QA Contact:
URL:
Whiteboard: target:3.21
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-03 22:21 EDT by Karl Wechsler CLA
Modified: 2011-06-20 14:05 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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