URL:
  <http://savannah.nongnu.org/bugs/?37778>

                 Summary: _MemoryBarrier() in cpufunc.h error on compile
                 Project: AVR C Runtime Library
            Submitted by: None
            Submitted on: Mon 19 Nov 2012 09:52:10 PM UTC
                Category: Header
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: libc code
                  Status: None
        Percent Complete: 0%
             Assigned to: None
        Originator Email: iamthem...@gmail.com
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 1.8.0
           Fixed Release: None

    _______________________________________________________

Details:

The _MemoryBarrier() macro defined in avr/cpufunc.h results in the following
error when compiling:
error: expected string literal before ':' token

Currently defined as:
#define _MemoryBarrier() __asm__ __volatile__(:::"memory")

Should be:
#define _MemoryBarrier() __asm__ __volatile__("":::"memory")




    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?37778>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/


_______________________________________________
AVR-libc-dev mailing list
AVR-libc-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/avr-libc-dev

Reply via email to