diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-05-02 00:07:21 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-05-02 10:58:20 -0400 |
commit | f0c4dc40b2e16a876b5b61986de5014a78f76a5c (patch) | |
tree | 081740977f36d35892d79c180e792104293acfe8 /sim/common/hw-device.h | |
parent | d89a87ba3c100bdbe82c7bd98ad7b8a2435e002f (diff) | |
download | binutils-f0c4dc40b2e16a876b5b61986de5014a78f76a5c.zip binutils-f0c4dc40b2e16a876b5b61986de5014a78f76a5c.tar.gz binutils-f0c4dc40b2e16a876b5b61986de5014a78f76a5c.tar.bz2 |
sim: replace custom attributes with ansidecl.h
A lot of this code predates the common attributes. We had already
started migrating over piece by piece, so just do a pass across all
the attributes and replace most of them.
Diffstat (limited to 'sim/common/hw-device.h')
-rw-r--r-- | sim/common/hw-device.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sim/common/hw-device.h b/sim/common/hw-device.h index a745cb7..ffd627a 100644 --- a/sim/common/hw-device.h +++ b/sim/common/hw-device.h @@ -432,17 +432,17 @@ int hw_ioctl void hw_abort (struct hw *me, const char *fmt, - ...) __attribute__ ((format (printf, 2, 3), noreturn)); + ...) ATTRIBUTE_PRINTF (2, 3) ATTRIBUTE_NORETURN; void hw_vabort (struct hw *me, const char *fmt, - va_list ap) __attribute__ ((noreturn)); + va_list ap) ATTRIBUTE_NORETURN; void hw_halt (struct hw *me, int reason, - int status) __attribute__ ((noreturn)); + int status) ATTRIBUTE_NORETURN; #define hw_trace_p(hw) ((hw)->trace_of_hw_p + 0) @@ -450,7 +450,7 @@ void hw_halt void hw_trace (struct hw *me, const char *fmt, - ...) __attribute__ ((format (printf, 2, 3))); + ...) ATTRIBUTE_PRINTF (2, 3); #define HW_TRACE(ARGS) \ do { \ |