diff options
author | Nick Clifton <nickc@redhat.com> | 2001-10-12 08:56:17 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2001-10-12 08:56:17 +0000 |
commit | 7f28ab9dc7011dbaffb3d2566598ead9ebc7226f (patch) | |
tree | 9e73c03e3754e0413105885474caed47727973ee /gas/read.c | |
parent | 65bf64b30a1fe883eeb46927c1294a66b73af529 (diff) | |
download | binutils-7f28ab9dc7011dbaffb3d2566598ead9ebc7226f.zip binutils-7f28ab9dc7011dbaffb3d2566598ead9ebc7226f.tar.gz binutils-7f28ab9dc7011dbaffb3d2566598ead9ebc7226f.tar.bz2 |
Generate warning message if .endr is used without preceeding .rept/.irc/.irp
Diffstat (limited to 'gas/read.c')
-rw-r--r-- | gas/read.c | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -315,6 +315,7 @@ static const pseudo_typeS potable[] = { {"endc", s_endif, 0}, {"endfunc", s_func, 1}, {"endif", s_endif, 0}, + {"endr", s_bad_endr, 0}, /* endef */ {"equ", s_set, 0}, {"equiv", s_set, 1}, @@ -2694,6 +2695,16 @@ s_purgem (ignore) /* Handle the .rept pseudo-op. */ void +s_bad_endr (ignore) + int ignore ATTRIBUTE_UNUSED; +{ + as_warn (_(".endr encountered without preceeding .rept, .irc, or .irp")); + demand_empty_rest_of_line (); +} + +/* Handle the .rept pseudo-op. */ + +void s_rept (ignore) int ignore ATTRIBUTE_UNUSED; { |