[PATCH] The behavior of gas .subsection/.previous does not confirm descriptions in document
Nick Clifton
nickc@redhat.com
Mon Oct 8 10:34:00 GMT 2007
Hi Lee,
>> Here we are in sec2, subsection 1.
>>
>>> .subsection 0
>>> .long 0x55555555
>> Now we are in sec2, subsection 0.
>>
>>> .previous
>> So .previous takes you back to sec2, subsection 1.
> I think .previous takes me back to sec1 is more natural, because
> for current section sec2, sec1 is the previous section(instead of sec2).
Possibly, but I think that it would be a bad idea to change the behaviour of
the .previous pseudo-op now. There are bound to be assembler source files that
rely upon the current behaviour.
> But if the behavior of .subsection/.previous is intended, add some examples
> in documents maybe helpful.
Agreed. What do you think of this patch ?
Cheers
Nick
gas/ChangeLog
2007-10-08 Nick Clifton <nickc@redhat.com>
* doc/as.texinfo (Previous): Update description of this pseudo op
and include a couple of examples of how it works.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: as.texinfo.patch
Type: text/x-patch
Size: 1775 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20071008/14ce8151/attachment.bin>
More information about the Binutils
mailing list