Branch: Tag:

2003-11-19

2003-11-19 20:20:31 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Use ins_data() in preference to ins_pointer() to store the tripple info in PIKE_PORTABLE_BYTECODE mode.

Rev: src/peep.c:1.94

2:   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: peep.c,v 1.93 2003/11/19 17:19:29 grubba Exp $ + || $Id: peep.c,v 1.94 2003/11/19 20:20:31 grubba Exp $   */      #include "global.h"
26:   #include "interpret.h"   #include "pikecode.h"    - RCSID("$Id: peep.c,v 1.93 2003/11/19 17:19:29 grubba Exp $"); + RCSID("$Id: peep.c,v 1.94 2003/11/19 20:20:31 grubba Exp $");      static void asm_opt(void);   
192: Inside #if defined(PIKE_PORTABLE_BYTECODE)
   int previous_line = 0;    ptrdiff_t num_linedirectives = 0;    -  /* Count the number of F_FILE/F_LINE pseudo-ops we need to add. */ +  /* Count the number of F_FILENAME/F_LINE pseudo-ops we need to add. */    for (e=0; e < length; e++) {    if (c[e].file != previous_file) {    previous_file = c[e].file;
204: Inside #if defined(PIKE_PORTABLE_BYTECODE)
   }    }    -  fprintf(stderr, "length:%d directives:%d\n", length, num_linedirectives); +  /* fprintf(stderr, "length:%d directives:%d\n", +  * length, num_linedirectives); +  */       if (!(tripples = malloc(sizeof(struct pike_tripple) *    (length+num_linedirectives)))) {
400:   #endif      #ifdef PIKE_PORTABLE_BYTECODE +  /* FIXME: What about LP64? */    if (store_linenumbers) { -  ins_pointer(tripples); +  ins_data(tripples);    } else { -  ins_pointer(NULL); +  ins_data(NULL);    }   #endif /* PIKE_PORTABLE_BYTECODE */