Bug 416444 - assembly parsing looses necessary parentheses
Summary: assembly parsing looses necessary parentheses
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-parser (show other bugs)
Version: 8.2   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-03 10:26 EDT by Marco Trudel CLA
Modified: 2020-09-04 15:23 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marco Trudel CLA 2013-09-03 10:26:51 EDT
Parsing (1) gives a CASTASMDeclaration with getAssembly() giving (2):

1) __asm__("movl %1, %%eax; movl %%eax, %0;" : "=r"(b) : "r"(a) : "%eax");
2) __asm__("movl %1, %%eax; movl %%eax, %0;" : "=r" b : "r" a : "%eax");

The parentheses need to be preserved.