Commit acdef7f8 by Tony Reix Committed by Ian Lance Taylor

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
parent 842df93e
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
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment