Print this page
5396 gcc 4.8.2 longjmp errors for cscope-fast

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libdtrace/common/dt_cc.c
          +++ new/usr/src/lib/libdtrace/common/dt_cc.c
↓ open down ↓ 15 lines elided ↑ open up ↑
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  
  22   22  /*
  23   23   * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
  24   24   * Copyright (c) 2013, Joyent Inc. All rights reserved.
  25   25   * Copyright (c) 2012 by Delphix. All rights reserved.
       26 + * Copyright 2015 Gary Mills
  26   27   */
  27   28  
  28   29  /*
  29   30   * DTrace D Language Compiler
  30   31   *
  31   32   * The code in this source file implements the main engine for the D language
  32   33   * compiler.  The driver routine for the compiler is dt_compile(), below.  The
  33   34   * compiler operates on either stdio FILEs or in-memory strings as its input
  34   35   * and can produce either dtrace_prog_t structures from a D program or a single
  35   36   * dtrace_difo_t structure from a D expression.  Multiple entry points are
↓ open down ↓ 2292 lines elided ↑ open up ↑
2328 2329          return (0);
2329 2330  }
2330 2331  
2331 2332  static void *
2332 2333  dt_compile(dtrace_hdl_t *dtp, int context, dtrace_probespec_t pspec, void *arg,
2333 2334      uint_t cflags, int argc, char *const argv[], FILE *fp, const char *s)
2334 2335  {
2335 2336          dt_node_t *dnp;
2336 2337          dt_decl_t *ddp;
2337 2338          dt_pcb_t pcb;
2338      -        void *rv;
     2339 +        void *volatile rv;
2339 2340          int err;
2340 2341  
2341 2342          if ((fp == NULL && s == NULL) || (cflags & ~DTRACE_C_MASK) != 0) {
2342 2343                  (void) dt_set_errno(dtp, EINVAL);
2343 2344                  return (NULL);
2344 2345          }
2345 2346  
2346 2347          if (dt_list_next(&dtp->dt_lib_path) != NULL && dt_load_libs(dtp) != 0)
2347 2348                  return (NULL); /* errno is set for us */
2348 2349  
↓ open down ↓ 183 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX