This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Deprecating basic asm in a function - What now?


On 22/06/16 10:02, Florian Weimer wrote:
On 06/21/2016 06:53 PM, Andrew Haley wrote:
Me too.  I wonder if there's anything else we can do to make basic asm
in a function a bit less of a time bomb.

GCC could parse the assembly instructions and figure out the clobbers.

Which is also needed for various things, such as providing better diagnostics:

http://permalink.gmane.org/gmane.comp.compilers.llvm.cvs/70335
http://blog.llvm.org/2010/04/intro-to-llvm-mc-project.html
https://www.reddit.com/r/programming/comments/bnhxb/clang_now_with_inline_assembly_diagnostics/
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57950

Of course, that would require a closer integration with binutils. There has been some work in that direction in the past: https://sourceware.org/ml/binutils/2015-06/msg00010.html

but like the GCC-GDB integration, it seems to have stalled or be happening behind closed doors.

Cheers,

	Manuel.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]