View | Details | Return to bug 45375 | Differences between
and this patch

Collapse All | Expand All

(-)a/gfx/ots/src/os2.cc (+1 lines)
Lines 5-10 Link Here
5
#include "os2.h"
5
#include "os2.h"
6
6
7
#include "head.h"
7
#include "head.h"
8
#include <stddef.h>
8
9
9
// OS/2 - OS/2 and Windows Metrics
10
// OS/2 - OS/2 and Windows Metrics
10
// http://www.microsoft.com/opentype/otspec/os2.htm
11
// http://www.microsoft.com/opentype/otspec/os2.htm
(-)a/js/src/ctypes/libffi/src/x86/ffi.c (+5 lines)
Lines 317-333 Link Here
317
   on MSVC - standard cdecl convention applies. */
317
   on MSVC - standard cdecl convention applies. */
318
static void ffi_prep_incoming_args_SYSV (char *stack, void **ret,
318
static void ffi_prep_incoming_args_SYSV (char *stack, void **ret,
319
                                         void** args, ffi_cif* cif);
319
                                         void** args, ffi_cif* cif);
320
__attribute__ ((used))
320
void FFI_HIDDEN ffi_closure_SYSV (ffi_closure *)
321
void FFI_HIDDEN ffi_closure_SYSV (ffi_closure *)
321
     __attribute__ ((regparm(1)));
322
     __attribute__ ((regparm(1)));
323
__attribute__ ((used))
322
unsigned int FFI_HIDDEN ffi_closure_SYSV_inner (ffi_closure *, void **, void *)
324
unsigned int FFI_HIDDEN ffi_closure_SYSV_inner (ffi_closure *, void **, void *)
323
     __attribute__ ((regparm(1)));
325
     __attribute__ ((regparm(1)));
326
__attribute__ ((used))
324
void FFI_HIDDEN ffi_closure_raw_SYSV (ffi_raw_closure *)
327
void FFI_HIDDEN ffi_closure_raw_SYSV (ffi_raw_closure *)
325
     __attribute__ ((regparm(1)));
328
     __attribute__ ((regparm(1)));
326
#ifdef X86_WIN32
329
#ifdef X86_WIN32
330
__attribute__ ((used))
327
void FFI_HIDDEN ffi_closure_STDCALL (ffi_closure *)
331
void FFI_HIDDEN ffi_closure_STDCALL (ffi_closure *)
328
     __attribute__ ((regparm(1)));
332
     __attribute__ ((regparm(1)));
329
#endif
333
#endif
330
#ifdef X86_WIN64
334
#ifdef X86_WIN64
335
__attribute__ ((used))
331
void FFI_HIDDEN ffi_closure_win64 (ffi_closure *);
336
void FFI_HIDDEN ffi_closure_win64 (ffi_closure *);
332
#endif
337
#endif
333
338
(-)a/js/src/methodjit/InvokeHelpers.cpp (+1 lines)
Lines 499-504 Link Here
499
}
499
}
500
500
501
extern "C" void *
501
extern "C" void *
502
__attribute__ ((used))
502
js_InternalThrow(VMFrame &f)
503
js_InternalThrow(VMFrame &f)
503
{
504
{
504
    JSContext *cx = f.cx;
505
    JSContext *cx = f.cx;
(-)a/js/src/methodjit/MethodJIT.cpp (+3 lines)
Lines 120-125 Link Here
120
extern "C" void JaegerTrampolineReturn();
120
extern "C" void JaegerTrampolineReturn();
121
121
122
extern "C" void JS_FASTCALL
122
extern "C" void JS_FASTCALL
123
__attribute__ ((used))
123
PushActiveVMFrame(VMFrame &f)
124
PushActiveVMFrame(VMFrame &f)
124
{
125
{
125
    f.entryfp->script()->compartment->jaegerCompartment->pushActiveFrame(&f);
126
    f.entryfp->script()->compartment->jaegerCompartment->pushActiveFrame(&f);
Lines 127-138 Link Here
127
}
128
}
128
129
129
extern "C" void JS_FASTCALL
130
extern "C" void JS_FASTCALL
131
__attribute__ ((used))
130
PopActiveVMFrame(VMFrame &f)
132
PopActiveVMFrame(VMFrame &f)
131
{
133
{
132
    f.entryfp->script()->compartment->jaegerCompartment->popActiveFrame();
134
    f.entryfp->script()->compartment->jaegerCompartment->popActiveFrame();
133
}
135
}
134
136
135
extern "C" void JS_FASTCALL
137
extern "C" void JS_FASTCALL
138
__attribute__ ((used))
136
SetVMFrameRegs(VMFrame &f)
139
SetVMFrameRegs(VMFrame &f)
137
{
140
{
138
    f.cx->setCurrentRegs(&f.regs);
141
    f.cx->setCurrentRegs(&f.regs);
(-)a/modules/zlib/src/zlib.h (+1 lines)
Lines 44-49 Link Here
44
#define ZLIB_VER_REVISION 5
44
#define ZLIB_VER_REVISION 5
45
#define ZLIB_VER_SUBREVISION 0
45
#define ZLIB_VER_SUBREVISION 0
46
46
47
#define NO_DUMMY_DECL
47
/*
48
/*
48
    The 'zlib' compression library provides in-memory compression and
49
    The 'zlib' compression library provides in-memory compression and
49
  decompression functions, including integrity checks of the uncompressed data.
50
  decompression functions, including integrity checks of the uncompressed data.
(-)a/toolkit/crashreporter/google-breakpad/src/common/dwarf/Makefile.in (-1 / +1 lines)
Lines 56-62 Link Here
56
56
57
# This code is only compiled for build-time tools,
57
# This code is only compiled for build-time tools,
58
# so enabling RTTI should be fine.
58
# so enabling RTTI should be fine.
59
HOST_CXXFLAGS := -funsigned-char $(filter-out -fno-rtti,$(HOST_CXXFLAGS))
59
HOST_CXXFLAGS := -funsigned-char $(filter-out -fno-rtti,$(HOST_CXXFLAGS)) -g
60
60
61
# need static lib
61
# need static lib
62
FORCE_STATIC_LIB = 1
62
FORCE_STATIC_LIB = 1
(-)a/xpcom/base/nscore.h (-2 / +2 lines)
Lines 151-157 Link Here
151
 *           NS_HIDDEN_(int) NS_FASTCALL func2(char *foo);
151
 *           NS_HIDDEN_(int) NS_FASTCALL func2(char *foo);
152
 */
152
 */
153
153
154
#if defined(__i386__) && defined(__GNUC__) && \
154
#if defined(__i3862__) && defined(__GNUC__) && \
155
    (__GNUC__ >= 3) && !defined(XP_OS2)
155
    (__GNUC__ >= 3) && !defined(XP_OS2)
156
#define NS_FASTCALL __attribute__ ((regparm (3), stdcall))
156
#define NS_FASTCALL __attribute__ ((regparm (3), stdcall))
157
#define NS_CONSTRUCTOR_FASTCALL __attribute__ ((regparm (3), stdcall))
157
#define NS_CONSTRUCTOR_FASTCALL __attribute__ ((regparm (3), stdcall))
Lines 167-173 Link Here
167
 * NS_DEFCALL undoes the effect of a global regparm/stdcall setting
167
 * NS_DEFCALL undoes the effect of a global regparm/stdcall setting
168
 * so that xptcall works correctly.
168
 * so that xptcall works correctly.
169
 */
169
 */
170
#if defined(__i386__) && defined(__GNUC__) && \
170
#if defined(__i3862__) && defined(__GNUC__) && \
171
    (__GNUC__ >= 3) && !defined(XP_OS2)
171
    (__GNUC__ >= 3) && !defined(XP_OS2)
172
#define NS_DEFCALL __attribute__ ((regparm (0), cdecl))
172
#define NS_DEFCALL __attribute__ ((regparm (0), cdecl))
173
#else
173
#else
(-)a/xpcom/reflect/xptcall/src/md/unix/xptcinvoke_gcc_x86_unix.cpp (-3 lines)
Lines 44-52 Link Here
44
#include "xptc_gcc_x86_unix.h"
44
#include "xptc_gcc_x86_unix.h"
45
45
46
extern "C" {
46
extern "C" {
47
#ifndef XP_WIN32
48
static
49
#endif
50
void ATTRIBUTE_USED __attribute__ ((regparm(3)))
47
void ATTRIBUTE_USED __attribute__ ((regparm(3)))
51
invoke_copy_to_stack(PRUint32 paramCount, nsXPTCVariant* s, PRUint32* d)
48
invoke_copy_to_stack(PRUint32 paramCount, nsXPTCVariant* s, PRUint32* d)
52
{
49
{
(-)a/xpcom/reflect/xptcall/src/md/unix/xptcstubs_gcc_x86_unix.cpp (-1 / +1 lines)
Lines 45-51 Link Here
45
#include "xptc_gcc_x86_unix.h"
45
#include "xptc_gcc_x86_unix.h"
46
46
47
extern "C" {
47
extern "C" {
48
static nsresult ATTRIBUTE_USED
48
nsresult ATTRIBUTE_USED
49
__attribute__ ((regparm (3)))
49
__attribute__ ((regparm (3)))
50
PrepareAndDispatch(uint32 methodIndex, nsXPTCStubBase* self, PRUint32* args)
50
PrepareAndDispatch(uint32 methodIndex, nsXPTCStubBase* self, PRUint32* args)
51
{
51
{
(-)a/xpcom/reflect/xptcall/src/md/unix/xptcstubs_x86_64_linux.cpp (-1 / +1 lines)
Lines 62-68 Link Here
62
// The parameters are mapped into an array of type 'nsXPTCMiniVariant'
62
// The parameters are mapped into an array of type 'nsXPTCMiniVariant'
63
// and then the method gets called.
63
// and then the method gets called.
64
64
65
extern "C" nsresult
65
extern "C" nsresult __attribute__ ((used))
66
PrepareAndDispatch(nsXPTCStubBase * self, PRUint32 methodIndex,
66
PrepareAndDispatch(nsXPTCStubBase * self, PRUint32 methodIndex,
67
                   PRUint64 * args, PRUint64 * gpregs, double *fpregs)
67
                   PRUint64 * args, PRUint64 * gpregs, double *fpregs)
68
{
68
{

Return to bug 45375