diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2016-11-09 21:41:58 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2016-11-09 21:41:58 +0000 |
commit | 39de19551b6b39d83ad791a39c72ec51f958b48b (patch) | |
tree | abdcd33bd886840743880175f64b9cbfa3db1468 /gcc/fortran/trans-openmp.c | |
parent | 677aa9b4b79ce0e26cadbdbc9effdbaa00487e6a (diff) | |
download | gcc-39de19551b6b39d83ad791a39c72ec51f958b48b.zip gcc-39de19551b6b39d83ad791a39c72ec51f958b48b.tar.gz gcc-39de19551b6b39d83ad791a39c72ec51f958b48b.tar.bz2 |
compiler: rework static initializer code
Rename is_immutable to is_static_initializer to try to capture what it
really means. Be more precise about when an address expression, or a
binary expression, can be a static initializer. Don't check whether a
type has pointers when deciding whether an initializer must be
read-write, just check whether it is being used to initialize a global
variable. To make that work set the Translate_context function to NULL
for a global variable with a static initializer.
The effect of this is to let more global variables be initialized
directly, rather than being initialized in the generated init function.
Reviewed-on: https://go-review.googlesource.com/32917
From-SVN: r242024
Diffstat (limited to 'gcc/fortran/trans-openmp.c')
0 files changed, 0 insertions, 0 deletions