diff options
author | Martin Sebor <msebor@redhat.com> | 2020-08-18 09:49:01 -0600 |
---|---|---|
committer | Martin Sebor <msebor@redhat.com> | 2020-08-18 09:54:29 -0600 |
commit | b1f58acd3a68801106d76abd9c5fff7c34401b6d (patch) | |
tree | 716f33e0f6c337aef7f3f74821b7b8b25c00c932 | |
parent | f8104bb9dc2365d268ca93e43a24f42e8314fcc1 (diff) | |
download | gcc-b1f58acd3a68801106d76abd9c5fff7c34401b6d.zip gcc-b1f58acd3a68801106d76abd9c5fff7c34401b6d.tar.gz gcc-b1f58acd3a68801106d76abd9c5fff7c34401b6d.tar.bz2 |
Update native_encode_expr description.
gcc/ChangeLog:
* fold-const.c (native_encode_expr): Update comment.
-rw-r--r-- | gcc/fold-const.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/gcc/fold-const.c b/gcc/fold-const.c index 9fc4c2a..7c4d1ef 100644 --- a/gcc/fold-const.c +++ b/gcc/fold-const.c @@ -7875,11 +7875,12 @@ native_encode_string (const_tree expr, unsigned char *ptr, int len, int off) } -/* Subroutine of fold_view_convert_expr. Encode the INTEGER_CST, - REAL_CST, COMPLEX_CST or VECTOR_CST specified by EXPR into the - buffer PTR of length LEN bytes. If PTR is NULL, don't actually store - anything, just do a dry run. If OFF is not -1 then start - the encoding at byte offset OFF and encode at most LEN bytes. +/* Subroutine of fold_view_convert_expr. Encode the INTEGER_CST, REAL_CST, + FIXED_CST, COMPLEX_CST, STRING_CST, or VECTOR_CST specified by EXPR into + the buffer PTR of size LEN bytes. If PTR is NULL, don't actually store + anything, just do a dry run. Fail either if OFF is -1 and LEN isn't + sufficient to encode the entire EXPR, or if OFF is out of bounds. + Otherwise, start at byte offset OFF and encode at most LEN bytes. Return the number of bytes placed in the buffer, or zero upon failure. */ int |