aboutsummaryrefslogtreecommitdiff
path: root/gcc/go/gofrontend/gogo.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/go/gofrontend/gogo.cc')
-rw-r--r--gcc/go/gofrontend/gogo.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/go/gofrontend/gogo.cc b/gcc/go/gofrontend/gogo.cc
index 83be617..f89099e 100644
--- a/gcc/go/gofrontend/gogo.cc
+++ b/gcc/go/gofrontend/gogo.cc
@@ -4633,7 +4633,9 @@ Gogo::write_c_header()
if (no->is_type() && no->type_value()->struct_type() != NULL)
types.push_back(no);
- if (no->is_const() && no->const_value()->type()->integer_type() != NULL)
+ if (no->is_const()
+ && no->const_value()->type()->integer_type() != NULL
+ && !no->const_value()->is_sink())
{
Numeric_constant nc;
unsigned long val;