aboutsummaryrefslogtreecommitdiff
path: root/sim/igen
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-05-02 00:07:21 -0400
committerMike Frysinger <vapier@gentoo.org>2021-05-02 10:58:20 -0400
commitf0c4dc40b2e16a876b5b61986de5014a78f76a5c (patch)
tree081740977f36d35892d79c180e792104293acfe8 /sim/igen
parentd89a87ba3c100bdbe82c7bd98ad7b8a2435e002f (diff)
downloadbinutils-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/igen')
-rw-r--r--sim/igen/ChangeLog5
-rw-r--r--sim/igen/lf.h4
2 files changed, 7 insertions, 2 deletions
diff --git a/sim/igen/ChangeLog b/sim/igen/ChangeLog
index a8eedda..84b9e67 100644
--- a/sim/igen/ChangeLog
+++ b/sim/igen/ChangeLog
@@ -1,3 +1,8 @@
+2021-05-02 Mike Frysinger <vapier@gentoo.org>
+
+ * lf.h: Include ansidecl.h.
+ (lf_printf): Change __attribute__((printf)) to ATTRIBUTE_PRINTF.
+
2021-04-02 Mike Frysinger <vapier@gentoo.org>
* local.mk: New file.
diff --git a/sim/igen/lf.h b/sim/igen/lf.h
index c6185db..5a6d5a7 100644
--- a/sim/igen/lf.h
+++ b/sim/igen/lf.h
@@ -19,7 +19,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
-
+#include "ansidecl.h"
/* LF: Line Numbered Output Stream */
@@ -72,7 +72,7 @@ extern int lf_putint (lf *file, int decimal);
extern int lf_putbin (lf *file, int decimal, int width);
extern int lf_printf
- (lf *file, const char *fmt, ...) __attribute__ ((format (printf, 2, 3)));
+ (lf *file, const char *fmt, ...) ATTRIBUTE_PRINTF (2, 3);
/* Indentation control.