From 55d23256e799c5daac63127543d5c090702c9695 Mon Sep 17 00:00:00 2001
From: Per Hedbor <ph@opera.com>
Date: Mon, 4 Sep 2000 16:50:05 +0200
Subject: [PATCH] We want side-effects for all GTK functions.. Otherwise we are
 in trouble. In the future this might be changed to set the correct flags for
 all functions (extra syntax in the source files needed to indicate that a
 function _can_ be optimizied, the default should be not to)

Rev: src/post_modules/GTK/build_pgtk.pike:1.35
---
 src/post_modules/GTK/build_pgtk.pike | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/post_modules/GTK/build_pgtk.pike b/src/post_modules/GTK/build_pgtk.pike
index 5d707dcc98..3b5afea1b4 100755
--- a/src/post_modules/GTK/build_pgtk.pike
+++ b/src/post_modules/GTK/build_pgtk.pike
@@ -210,7 +210,8 @@ string emit_function_def( string fun, string cfun, string type, int opt )
   type = function_type( type );
   emit_nl( "    quick_add_function((char*)_data+"+data_offset(fun)+","+
            strlen(fun)+","+cfun+",(char*)_data+"+data_offset( type )+
-           ","+strlen(type)+","+(fun=="create"?"ID_STATIC":"0")+",0);\n");
+           ","+strlen(type)+","+(fun=="create"?"ID_STATIC":"0")+","
+           "OPT_SIDE_EFFECT|OPT_EXTERNAL_DEPEND);\n");
 }
 
 int _num_functions;
-- 
GitLab