diff options
author | Hans-Peter Nilsson <hp@axis.com> | 2004-11-22 13:05:27 +0000 |
---|---|---|
committer | Hans-Peter Nilsson <hp@axis.com> | 2004-11-22 13:05:27 +0000 |
commit | d190d04643fb43aac495e83f40040b62b378a042 (patch) | |
tree | 2fbb59d865331f89003c11b874862885720bbf7e /gas/doc/as.texinfo | |
parent | a7eec87693b35bd94817259d6425e71352d8ba4e (diff) | |
download | gdb-d190d04643fb43aac495e83f40040b62b378a042.zip gdb-d190d04643fb43aac495e83f40040b62b378a042.tar.gz gdb-d190d04643fb43aac495e83f40040b62b378a042.tar.bz2 |
* read.c (potable): Add "error" and "warning".
(s_errwarn): New function.
* read.h (s_errwarn): Declare.
* doc/as.texinfo (Error, Warning): Document .error and .warning.
Diffstat (limited to 'gas/doc/as.texinfo')
-rw-r--r-- | gas/doc/as.texinfo | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/gas/doc/as.texinfo b/gas/doc/as.texinfo index 3d4a5ab..b550aa9 100644 --- a/gas/doc/as.texinfo +++ b/gas/doc/as.texinfo @@ -3726,6 +3726,7 @@ Some machine configurations provide additional directives. * Equ:: @code{.equ @var{symbol}, @var{expression}} * Equiv:: @code{.equiv @var{symbol}, @var{expression}} * Err:: @code{.err} +* Error:: @code{.error @var{string}} * Exitm:: @code{.exitm} * Extern:: @code{.extern} * Fail:: @code{.fail} @@ -3842,6 +3843,7 @@ Some machine configurations provide additional directives. * VTableInherit:: @code{.vtable_inherit @var{child}, @var{parent}} @end ifset +* Warning:: @code{.warning @var{string}} * Weak:: @code{.weak @var{names}} * Word:: @code{.word @var{expressions}} * Deprecated:: Deprecated Directives @@ -4240,6 +4242,19 @@ If @command{@value{AS}} assembles a @code{.err} directive, it will print an erro message and, unless the @option{-Z} option was used, it will not generate an object file. This can be used to signal error an conditionally compiled code. +@node Error +@section @code{.error "@var{string}"} +@cindex error directive + +Similarly to @code{.err}, this directive emits an error, but you can specify a +string that will be emitted as the error message. If you don't specify the +message, it defaults to @code{".error directive invoked in source file"}. +@xref{Errors, ,Error and Warning Messages}. + +@smallexample + .error "This code has not been assembled and tested." +@end smallexample + @node Exitm @section @code{.exitm} Exit early from the current macro definition. @xref{Macro}. @@ -5865,6 +5880,12 @@ parent whose addend is the value of the child symbol. As a special case the parent name of @code{0} is treated as refering the @code{*ABS*} section. @end ifset +@node Warning +@section @code{.warning "@var{string}"} +@cindex warning directive +Similar to the directive @code{.error} +(@pxref{Error,,@code{.error "@var{string}"}}), but just emits a warning. + @node Weak @section @code{.weak @var{names}} |