diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2019-03-06 20:40:32 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2019-03-06 20:40:32 +0000 |
commit | 1c98301f2b8b5f1bd7a411b1bbb66cc5694688bf (patch) | |
tree | 1881b8081cd0813196d30ec6ed6b1ec429981903 /gcc/fortran/expr.c | |
parent | 2de5d0ea90d2e64ff3d345b17228043e08a5d1ac (diff) | |
download | gcc-1c98301f2b8b5f1bd7a411b1bbb66cc5694688bf.zip gcc-1c98301f2b8b5f1bd7a411b1bbb66cc5694688bf.tar.gz gcc-1c98301f2b8b5f1bd7a411b1bbb66cc5694688bf.tar.bz2 |
compiler: emit underlying constant in array_type length export
In Array_type::do_export, when emitting a concrete array length,
evaluate the length expression to an integer constant and emit that
constant, instead of calling the more general method for emitting
expressions. This is to avoid the possibility that we will need
to emit a conversion, which could confuse the gccgoimporter.
Fixes golang/go#30628.
Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/165741
From-SVN: r269443
Diffstat (limited to 'gcc/fortran/expr.c')
0 files changed, 0 insertions, 0 deletions