Bug 277997 - #pragma asm / endasm
Summary: #pragma asm / endasm
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-parser (show other bugs)
Version: 5.0.2   Edit
Hardware: PC Windows XP
: P3 normal with 2 votes (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-27 04:39 EDT by Andre Bossert CLA
Modified: 2020-09-04 15:24 EDT (History)
2 users (show)

See Also:


Attachments
Screenshot with "syntax error" after #pragma asm / endasm (102.68 KB, image/jpeg)
2009-05-27 04:39 EDT, Andre Bossert CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andre Bossert CLA 2009-05-27 04:39:02 EDT
Created attachment 137282 [details]
Screenshot with "syntax error" after #pragma asm / endasm

Build ID: M20090211-1700

Steps To Reproduce:
1. Open C file with #pragma asm / endasm sequence.
2. parts of source are marked with "syntax error"

More information:
We are using GreenHills and Tasking compilers. To introduce assembler code in the middle of C file we put '#pragma asm' to begin assembly code and '#pragma endasm' to exit assembly code:

    #pragma asm
    li    sp, __ghsend_stack
    #pragma endasm

In CDT editor these parts and following C parts are marked with "syntax error".