This is the mail archive of the
mailing list for the GCC project.
Re: Deprecating basic asm in a function - What now?
- From: DJ Delorie <dj at redhat dot com>
- To: David Wohlferd <dw at LimeGreenSocks dot com>
- Cc: gcc at gcc dot gnu dot org, dw at LimeGreenSocks dot com
- Date: Mon, 20 Jun 2016 13:12:57 -0400
- Subject: Re: Deprecating basic asm in a function - What now?
- Authentication-results: sourceware.org; auth=none
Given how many embedded ports have #defines in external packages for
basic asms for instructions such as nop, enable/disable interrupts,
other system-level opcodes, etc... I think this is a bad idea. Even
glibc would break.
#define enable() asm("eint")
__asm__ __volatile__ ("fwait");