Skip to content

Comments

Fix #53 - Support GDC extended asm syntax#404

Merged
dlang-bot merged 8 commits intodlang-community:masterfrom
MoonlightSentinel:gcc-asm
May 18, 2020
Merged

Fix #53 - Support GDC extended asm syntax#404
dlang-bot merged 8 commits intodlang-community:masterfrom
MoonlightSentinel:gcc-asm

Conversation

@MoonlightSentinel
Copy link
Contributor

@MoonlightSentinel MoonlightSentinel commented May 5, 2020

This should already work for all "pure" GCC style asm-statements but probably needs to be revised against gdc (which is more permissive in certain aspects). Mostly looking for feedback regarding the generated AST.

WIP because this still needs some cleanup and mabye more test coverage.

TODO:

  • More reliable detection of GCC asm
  • Support arbitrary expressions as assmembler templates, not only strings
  • Issue deprecation warning for missing parantheses around operands

@codecov
Copy link

codecov bot commented May 5, 2020

Codecov Report

Merging #404 into master will increase coverage by 2.14%.
The diff coverage is 97.27%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #404      +/-   ##
==========================================
+ Coverage   76.44%   78.58%   +2.14%     
==========================================
  Files           9        9              
  Lines        7225     7382     +157     
==========================================
+ Hits         5523     5801     +278     
+ Misses       1702     1581     -121     
Impacted Files Coverage Δ
src/dparse/ast.d 65.85% <94.59%> (+8.05%) ⬆️
src/dparse/parser.d 91.12% <100.00%> (+0.17%) ⬆️
src/dparse/lexer.d 83.72% <0.00%> (+0.20%) ⬆️
src/dparse/formatter.d 37.94% <0.00%> (+7.90%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 24155ce...87a2b70. Read the comment docs.

@Hackerpilot Hackerpilot self-requested a review May 7, 2020 07:40
@MoonlightSentinel MoonlightSentinel force-pushed the gcc-asm branch 2 times, most recently from cd253ae to d24838b Compare May 8, 2020 08:42
@Hackerpilot
Copy link
Collaborator

Sorry for the delay. I haven't forgotten about this.

@MoonlightSentinel
Copy link
Contributor Author

Don't worry about it, this just removes a lot of error messages from druntime and isn't blocking other work.

Copy link
Collaborator

@Hackerpilot Hackerpilot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done reviewing for now. I should be able to answer questions with much lower latency than in the last few weeks.

@dlang-bot dlang-bot merged commit 78ed0d0 into dlang-community:master May 18, 2020
@MoonlightSentinel MoonlightSentinel deleted the gcc-asm branch May 18, 2020 23:36
@MoonlightSentinel
Copy link
Contributor Author

Thanks. A new release would be appreciated (once it's ready)

@Hackerpilot
Copy link
Collaborator

https://github.com/dlang-community/libdparse/releases/tag/v0.15.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants