MantisBT - CMake
View Issue Details
0014880CMakeCMakepublic2014-04-15 10:392015-02-18 03:59
raspy 
 
normalmajoralways
closedduplicate 
x86_64RedHat Enterprise Linux6.4
 
 
0014880: TI ASM rule should not use --asm_file switch
TI assembler is strange enough to have two different dialects: a regular file (with .asm extension) and a linear file (with .sa extension). Both these dialects use different switches: --asm_file or --ap_file.

If one has a linear assembly file in a project and adds ".sa" as a supported assembler extension, the compiler will choke since the file will be provided with --asm_file switch which is invalid. Changing --asm_file into --ap_file also does not resolve problem, since then regular assembly files do not compile.

I suggest to drop language specification from assembly rules and allow compiler to automatically detect language (unless there is some special support for different ASM dialects in CMake). Therefore replace in TI-ASM.cmake:

set(CMAKE_ASM_COMPILE_OBJECT "<CMAKE_ASM_COMPILER> --compile_only --asm_file=<SOURCE> <DEFINES> <FLAGS> --output_file=<OBJECT>")

With:

set(CMAKE_ASM_COMPILE_OBJECT "<CMAKE_ASM_COMPILER> --compile_only <DEFINES> <FLAGS> --output_file=<OBJECT> <SOURCE>")

It would also be great if .sa extension be handled by default, like so:

Replace:

set(CMAKE_ASM_SOURCE_FILE_EXTENSIONS asm;s;abs)

With:

set(CMAKE_ASM_SOURCE_FILE_EXTENSIONS asm;s;abs;sa)
Try to add and compile any linear assembly file. These are generated for example by tconf for use with DSPBIOS.
No tags attached.
related to 0014876closed Kitware Robot Improve support for TI compiler 
Issue History
2014-04-15 10:39raspyNew Issue
2014-04-15 10:40Brad KingRelationship addedrelated to 0014876
2014-04-15 10:41Brad KingNote Added: 0035717
2014-04-15 10:41Brad KingStatusnew => resolved
2014-04-15 10:41Brad KingResolutionopen => duplicate
2014-10-06 10:33Robert MaynardNote Added: 0036977
2014-10-06 10:33Robert MaynardStatusresolved => closed

Notes
(0035717)
Brad King   
2014-04-15 10:41   
STOP SUBMITTING SEPARATE ISSUES. USE 0014876.
(0036977)
Robert Maynard   
2014-10-06 10:33   
Closing resolved issues that have not been updated in more than 4 months.