diff options
author | Chris Manghane <cmang@google.com> | 2014-05-06 13:50:01 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2014-05-06 13:50:01 +0000 |
commit | 6122336c832dc4dfedc49279549caddce86306ff (patch) | |
tree | cbfe6afa638ce0b18b2e51c55acff495e07956d6 /gcc/go/go-lang.c | |
parent | 3134fb19432fbd54fe1be4315bf6f54e5b88868a (diff) | |
download | gcc-6122336c832dc4dfedc49279549caddce86306ff.zip gcc-6122336c832dc4dfedc49279549caddce86306ff.tar.gz gcc-6122336c832dc4dfedc49279549caddce86306ff.tar.bz2 |
compiler: Store flags for division checks in Gogo object instead of using global variables.
* go-c.h (go_create_gogo): Update declaration to add
check_divide_zero and check_divide_overflow parameters.
* go-lang.c (go_langhook_init): Pass new arguments to
go_create_gogo.
From-SVN: r210109
Diffstat (limited to 'gcc/go/go-lang.c')
-rw-r--r-- | gcc/go/go-lang.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/go/go-lang.c b/gcc/go/go-lang.c index 3599aa8..f6e865e 100644 --- a/gcc/go/go-lang.c +++ b/gcc/go/go-lang.c @@ -104,7 +104,8 @@ go_langhook_init (void) build_common_builtin_nodes (because it calls, indirectly, go_type_for_size). */ go_create_gogo (INT_TYPE_SIZE, POINTER_SIZE, go_pkgpath, go_prefix, - go_relative_import_path); + go_relative_import_path, go_check_divide_zero, + go_check_divide_overflow); build_common_builtin_nodes (); |