This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] New ia64 @slotcount pseudo func (3rd try)


Hi Douglas,

There's been alot of comments on this patch and I appreciate everyone's time in making them.

Guess what - I have a few more, very minor, changes that I would like to see in the patch. These are mostly formatting issues, but it would be nice to see them fixed:


  +#ifdef TE_VMS
  +    /* expression pseudo functions:  */

Comment formatting - the comment should be treated as a sentence and start with a capital letter. (I do realize that the other comments in this part of the code are formatted in the same way as your comment, but they are also wrong and should be fixed one day).

  +	    if (*input_line_pointer++ != '-')
  +	    {

Indentation - the opening curly brace, (and the code that follows), should be indented by two more spaces.

+ as_bad ("invalid @slotcount expression");

Internationalization - the error message should be enclosed in _(....).

  +	    val = (((end & -16) - (beg & -16)) / 16 * 3)
  +		  + (end & 15)
  +		  - (beg & 15);

Just a suggestion here - this expression seems rather complex and non-intuitive. Maybe a comment describing how the computation works would be useful for future readers of the code.

Cheers
  Nick


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]