pike.git / src / program.c

version» Context lines:

pike.git/src/program.c:3700:   #endif /* PIKE_USE_MACHINE_CODE */   #endif /* 0 */    return prog;   }      /*    * Finish this program, returning the newly built program    */   PMOD_EXPORT struct program *debug_end_program(void)   { +  if (!Pike_compiler->new_program->num_identifier_references && +  Pike_compiler->new_program->event_handler) { +  /* Program with no symbols, but with event handler. +  * eg _disable_threads. +  * Add a symbol to avoid call_c_initializers() creating broken frames. +  * Workaround for [bug 6156]. +  */ +  add_integer_constant("__EVENT_HANDLER__", 0, +  ID_PRIVATE|ID_PROTECTED|ID_USED); +  } +     Pike_compiler->compiler_pass = 2;    return end_first_pass(1);   }         /*    * Allocate space needed for this program in the object structure.    * An offset to the data is returned.    */   PMOD_EXPORT size_t low_add_storage(size_t size, size_t alignment,