This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Question about integer_asm_op()
- From: John Lu <jlu at lsil dot com>
- To: gcc at gcc dot gnu dot org
- Date: Fri, 25 Apr 2003 14:41:54 -0500 (CDT)
- Subject: Question about integer_asm_op()
- Reply-to: John Lu <jlu at lsil dot com>
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