~javier-lopez/ubuntu/vivid/ruby1.9.1/fix-1426828

« back to all changes in this revision

Viewing changes to gc.h

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2013-11-25 09:59:41 UTC
  • mfrom: (21.1.13 sid)
  • Revision ID: package-import@ubuntu.com-20131125095941-aou3ymnwm79em09y
Tags: 1.9.3.448-1ubuntu1
* Merge from Debian. Remaining changes:
  - debian/control: Add ca-certificates to libruby1.9.1 depends so that
    rubygems can perform certificate verification
  - debian/rules: Don't install SSL certificates from upstream sources
  - debian/patches/20120927-rubygems_disable_upstream_certs.patch: Use
    /etc/ssl/certs/ca-certificates.crt for the trusted CA certificates.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
#define RUBY_GC_H 1
4
4
 
5
5
#if defined(__x86_64__) && defined(__GNUC__)
6
 
#define SET_MACHINE_STACK_END(p) __asm__("movq\t%%rsp, %0" : "=r" (*(p)))
 
6
#define SET_MACHINE_STACK_END(p) __asm__ volatile ("movq\t%%rsp, %0" : "=r" (*(p)))
7
7
#elif defined(__i386) && defined(__GNUC__)
8
 
#define SET_MACHINE_STACK_END(p) __asm__("movl\t%%esp, %0" : "=r" (*(p)))
 
8
#define SET_MACHINE_STACK_END(p) __asm__ volatile ("movl\t%%esp, %0" : "=r" (*(p)))
9
9
#else
10
10
NOINLINE(void rb_gc_set_stack_end(VALUE **stack_end_p));
11
11
#define SET_MACHINE_STACK_END(p) rb_gc_set_stack_end(p)
81
81
#define STACK_GROW_DIR_DETECTION VALUE stack_grow_dir_detection
82
82
#define STACK_DIR_UPPER(a,b) STACK_UPPER(&stack_grow_dir_detection, (a), (b))
83
83
#endif
 
84
#define IS_STACK_DIR_UPPER() STACK_DIR_UPPER(1,0)
84
85
 
85
86
#if defined __GNUC__ && __GNUC__ >= 4
86
87
#pragma GCC visibility push(default)