diff options
author | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-05-06 13:50:01 +0000 |
---|---|---|
committer | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-05-06 13:50:01 +0000 |
commit | 5c3f3470f97a047819f593b60db38cf7a34b8187 (patch) | |
tree | cbfe6afa638ce0b18b2e51c55acff495e07956d6 /gcc/go/go-lang.c | |
parent | 50f39f787f5c84125870758b4a346b5b975c7317 (diff) |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@210109 138bc75d-0d04-0410-961f-82ee72b054a4
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 3599aa85e545..f6e865e08cf7 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 (); |