diff options
author | Tony Reix <tony.reix@atos.net> | 2017-12-12 17:29:27 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2017-12-12 17:29:27 +0000 |
commit | acdef7f88a641bb6cb15fbc4ee21c411250058a7 (patch) | |
tree | 499dec82d49a4604c550f16abd36afce2a0220a2 /gcc/go | |
parent | 842df93eca9bf9f8ef2358da59ba91cd0d326737 (diff) | |
download | gcc-acdef7f88a641bb6cb15fbc4ee21c411250058a7.zip gcc-acdef7f88a641bb6cb15fbc4ee21c411250058a7.tar.gz gcc-acdef7f88a641bb6cb15fbc4ee21c411250058a7.tar.bz2 |
go-lang.c (TARGET_AIX): Define if not defined.
* go-lang.c (TARGET_AIX): Define if not defined.
(go_langhook_init): Set nil_check_size_threshold to -1 on AIX.
Co-Authored-By: Ian Lance Taylor <iant@golang.org>
From-SVN: r255582
Diffstat (limited to 'gcc/go')
-rw-r--r-- | gcc/go/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/go/go-lang.c | 6 |
2 files changed, 11 insertions, 1 deletions
diff --git a/gcc/go/ChangeLog b/gcc/go/ChangeLog index 0310061..a829159 100644 --- a/gcc/go/ChangeLog +++ b/gcc/go/ChangeLog @@ -1,3 +1,9 @@ +2017-12-12 Tony Reix <tony.reix@atos.net> + Ian Lance Taylor <iant@golang.org> + + * go-lang.c (TARGET_AIX): Define if not defined. + (go_langhook_init): Set nil_check_size_threshold to -1 on AIX. + 2017-12-01 Ian Lance Taylor <iant@golang.org> * go-gcc.cc (Gcc_backend::Gcc_backend): Define diff --git a/gcc/go/go-lang.c b/gcc/go/go-lang.c index fda069a..8e660a6 100644 --- a/gcc/go/go-lang.c +++ b/gcc/go/go-lang.c @@ -39,6 +39,10 @@ along with GCC; see the file COPYING3. If not see #include "go-c.h" #include "go-gcc.h" +#ifndef TARGET_AIX +#define TARGET_AIX 0 +#endif + /* Language-dependent contents of a type. */ struct GTY(()) lang_type @@ -112,7 +116,7 @@ go_langhook_init (void) args.check_divide_overflow = go_check_divide_overflow; args.compiling_runtime = go_compiling_runtime; args.debug_escape_level = go_debug_escape_level; - args.nil_check_size_threshold = 4096; + args.nil_check_size_threshold = TARGET_AIX ? -1 : 4096; args.linemap = go_get_linemap(); args.backend = go_get_backend(); go_create_gogo (&args); |