aboutsummaryrefslogtreecommitdiff
path: root/gcc/go/go-c.h
diff options
context:
space:
mode:
authorChris Manghane <cmang@google.com>2014-05-06 13:50:01 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2014-05-06 13:50:01 +0000
commit6122336c832dc4dfedc49279549caddce86306ff (patch)
treecbfe6afa638ce0b18b2e51c55acff495e07956d6 /gcc/go/go-c.h
parent3134fb19432fbd54fe1be4315bf6f54e5b88868a (diff)
downloadgcc-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-c.h')
-rw-r--r--gcc/go/go-c.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/go/go-c.h b/gcc/go/go-c.h
index cb10f2b..5f5ac0d 100644
--- a/gcc/go/go-c.h
+++ b/gcc/go/go-c.h
@@ -34,7 +34,8 @@ extern void go_add_search_path (const char*);
extern void go_create_gogo (int int_type_size, int pointer_size,
const char* pkgpath, const char *prefix,
- const char *relative_import_path);
+ const char *relative_import_path,
+ bool check_divide_zero, bool check_divide_overflow);
extern void go_parse_input_files (const char**, unsigned int,
bool only_check_syntax,