mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-07-13 19:30:53 +08:00
* messages.c (as_warn_internal): New static function.
(as_warn, 3 versions): Use as_warn_internal. (as_warn_where, 3 versions): New function. * as.h (as_warn_where): Declare.
This commit is contained in:
@ -1,3 +1,10 @@
|
|||||||
|
Thu Jan 27 16:43:51 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
|
||||||
|
|
||||||
|
* messages.c (as_warn_internal): New static function.
|
||||||
|
(as_warn, 3 versions): Use as_warn_internal.
|
||||||
|
(as_warn_where, 3 versions): New function.
|
||||||
|
* as.h (as_warn_where): Declare.
|
||||||
|
|
||||||
Tue Jan 25 18:30:34 1994 Stan Shebs (shebs@andros.cygnus.com)
|
Tue Jan 25 18:30:34 1994 Stan Shebs (shebs@andros.cygnus.com)
|
||||||
|
|
||||||
* as.c (quiet_flag): New flag.
|
* as.c (quiet_flag): New flag.
|
||||||
|
19
gas/as.h
19
gas/as.h
@ -371,28 +371,25 @@ typedef struct lineno_struct lineno;
|
|||||||
/* for use with -Wformat */
|
/* for use with -Wformat */
|
||||||
#define PRINTF_LIKE(FCN) void FCN (const char *format, ...) \
|
#define PRINTF_LIKE(FCN) void FCN (const char *format, ...) \
|
||||||
__attribute__ ((format (printf, 1, 2)))
|
__attribute__ ((format (printf, 1, 2)))
|
||||||
|
#define PRINTF_WHERE_LIKE(FCN) void FCN (char *file, unsigned int line, \
|
||||||
|
const char *format, ...) \
|
||||||
|
__attribute__ ((format (printf, 3, 4)))
|
||||||
#else /* ANSI C with stdarg, but not GNU C */
|
#else /* ANSI C with stdarg, but not GNU C */
|
||||||
#define PRINTF_LIKE(FCN) void FCN (const char *format, ...)
|
#define PRINTF_LIKE(FCN) void FCN (const char *format, ...)
|
||||||
|
#define PRINTF_WHERE_LIKE(FCN) void FCN (char *file, unsigned int line, \
|
||||||
|
const char *format, ...)
|
||||||
#endif
|
#endif
|
||||||
#else /* not ANSI C, or not stdarg */
|
#else /* not ANSI C, or not stdarg */
|
||||||
#define PRINTF_LIKE(FCN) void FCN ()
|
#define PRINTF_LIKE(FCN) void FCN ()
|
||||||
|
#define PRINTF_WHERE_LIKE(FCN) void FCN ()
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
PRINTF_LIKE (as_bad);
|
PRINTF_LIKE (as_bad);
|
||||||
PRINTF_LIKE (as_fatal);
|
PRINTF_LIKE (as_fatal);
|
||||||
PRINTF_LIKE (as_tsktsk);
|
PRINTF_LIKE (as_tsktsk);
|
||||||
PRINTF_LIKE (as_warn);
|
PRINTF_LIKE (as_warn);
|
||||||
|
PRINTF_WHERE_LIKE (as_bad_where);
|
||||||
#if defined (__STDC__) && !defined (NO_STDARG)
|
PRINTF_WHERE_LIKE (as_warn_where);
|
||||||
#if __GNUC__ >= 2
|
|
||||||
void as_bad_where (char *file, unsigned int line, const char *format, ...)
|
|
||||||
__attribute__ ((format (printf, 3, 4)));
|
|
||||||
#else /* ANSI C with stdarg, but not GNU C */
|
|
||||||
void as_bad_where (char *file, unsigned int line, const char *format, ...);
|
|
||||||
#endif
|
|
||||||
#else /* not ANSI C, or not stdarg */
|
|
||||||
void as_bad_where ();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
void fprint_value PARAMS ((FILE *file, addressT value));
|
void fprint_value PARAMS ((FILE *file, addressT value));
|
||||||
void sprint_value PARAMS ((char *buf, addressT value));
|
void sprint_value PARAMS ((char *buf, addressT value));
|
||||||
|
Reference in New Issue
Block a user