PATCH [2/4] arm: Add Tag_BTI_extension build attribute
[binutils-gdb.git] / binutils / bucomm.h
index d7cc4219f794e0fd6f143e578e02eb6295911284..2769c2786717c233c4ccf553aa445d587f188225 100644 (file)
@@ -1,5 +1,5 @@
 /* bucomm.h -- binutils common include file.
-   Copyright (C) 1991-2015 Free Software Foundation, Inc.
+   Copyright (C) 1991-2021 Free Software Foundation, Inc.
 
    This file is part of GNU Binutils.
 
@@ -49,16 +49,16 @@ void list_supported_architectures (const char *, FILE *);
 
 int display_info (void);
 
-void print_arelt_descr (FILE *, bfd *, bfd_boolean);
+void print_arelt_descr (FILE *, bfd *, bool, bool);
 
-char *make_tempname (char *);
-char *make_tempdir (char *);
+char *make_tempname (const char *, int *);
+char *make_tempdir (const char *);
 
 bfd_vma parse_vma (const char *, const char *);
 
 off_t get_file_size (const char *);
 
-bfd_boolean is_valid_archive_path (char const *);
+bool is_valid_archive_path (char const *);
 
 extern char *program_name;
 
@@ -71,11 +71,21 @@ extern void print_version (const char *);
 /* In rename.c.  */
 extern void set_times (const char *, const struct stat *);
 
-extern int smart_rename (const char *, const char *, int);
+extern int smart_rename (const char *, const char *, int,
+                        struct stat *, bool);
+
 
 /* In libiberty.  */
 void *xmalloc (size_t);
 
 void *xrealloc (void *, size_t);
 
+#if __GNUC__ >= 7
+#define _mul_overflow(a, b, res) __builtin_mul_overflow (a, b, res)
+#else
+/* Assumes unsigned values.  Careful!  Args evaluated multiple times.  */
+#define _mul_overflow(a, b, res) \
+  ((*res) = (a), (*res) *= (b), (b) != 0 && (*res) / (b) != (a))
+#endif
+
 #endif /* _BUCOMM_H */