stor-layout.c (byte_from_pos): Amend comment.

2012-05-10  Richard Guenther  <rguenther@suse.de>

	* stor-layout.c (byte_from_pos): Amend comment.

From-SVN: r187367
This commit is contained in:
Richard Guenther 2012-05-10 10:28:31 +00:00 committed by Richard Biener
parent aaea76b3af
commit 8244f25237
2 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2012-05-10 Richard Guenther <rguenther@suse.de>
* stor-layout.c (byte_from_pos): Amend comment.
2012-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* doc/extend.texi (X86 Built-in Functions, __builtin_cpu_init):

View File

@ -798,7 +798,13 @@ bit_from_pos (tree offset, tree bitpos)
}
/* Return the combined truncated byte position for the byte offset OFFSET and
the bit position BITPOS. */
the bit position BITPOS.
These functions operate on byte and bit positions as present in FIELD_DECLs
and assume that these expressions result in no (intermediate) overflow.
This assumption is necessary to fold the expressions as much as possible,
so as to avoid creating artificially variable-sized types in languages
supporting variable-sized types like Ada. */
tree
byte_from_pos (tree offset, tree bitpos)