Question about integer_asm_op()
John Lu
jlu@lsil.com
Fri Apr 25 21:22:00 GMT 2003
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
More information about the Gcc
mailing list