This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC 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]

Question about integer_asm_op()


Hi,

In varasm.c, function integer_asm_op(size, aligned_p) has the following
comment.

   /* Return the assembler directive for creating a given kind of integer
      object.  SIZE is the number of bytes in the object and ALIGNED_P
      indicates whether it is known to be aligned. 
   
      ... */
   
Then it has the following code:

  if (aligned_p)
    ops = &targetm.asm_out.aligned_op;
  else
    ops = &targetm.asm_out.unaligned_op;

I was wondering if the arms of the if-else should be swapped.
The way I interpret the comment, "aligned_p" guarantees that
an integer is already aligned.  In the code, it seems to be
used as a request -- please generate assembly to align the integer.

Thanks,
John Lu


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