Commit 38084151 authored by Bradley C. Kuszmaul's avatar Bradley C. Kuszmaul Committed by Yoni Fogel

Make it work better with icc. Addresses #1185.

git-svn-id: file:///svn/tokudb.1131b+1080a+1185+nostatementexprs@6467 c7de825b-a66e-492c-adef-691d508d4ae1
parent a0519489
...@@ -145,7 +145,7 @@ static int brt_compare_pivot(BRT brt, DBT *key, DBT *data, bytevec ck) { ...@@ -145,7 +145,7 @@ static int brt_compare_pivot(BRT brt, DBT *key, DBT *data, bytevec ck) {
return cmp; return cmp;
} }
void toku_brtnode_flush_callback (CACHEFILE cachefile, BLOCKNUM nodename, void *brtnode_v, void *extraargs, long size __attribute((unused)), BOOL write_me, BOOL keep_me, LSN modified_lsn __attribute__((__unused__)) , BOOL rename_p __attribute__((__unused__))) { void toku_brtnode_flush_callback (CACHEFILE cachefile, BLOCKNUM nodename, void *brtnode_v, void *extraargs, long size __attribute__((unused)), BOOL write_me, BOOL keep_me, LSN modified_lsn __attribute__((__unused__)) , BOOL rename_p __attribute__((__unused__))) {
struct brt_header *h = extraargs; struct brt_header *h = extraargs;
BRTNODE brtnode = brtnode_v; BRTNODE brtnode = brtnode_v;
// if ((write_me || keep_me) && (brtnode->height==0)) { // if ((write_me || keep_me) && (brtnode->height==0)) {
...@@ -1216,6 +1216,7 @@ int toku_cmd_leafval_bessel (OMTVALUE lev, void *extra) { ...@@ -1216,6 +1216,7 @@ int toku_cmd_leafval_bessel (OMTVALUE lev, void *extra) {
LEAFENTRY le=lev; LEAFENTRY le=lev;
struct cmd_leafval_bessel_extra *be = extra; struct cmd_leafval_bessel_extra *be = extra;
LESWITCHCALL(le, leafval_bessel, be); LESWITCHCALL(le, leafval_bessel, be);
abort(); return 0; // make certain compilers happy
} }
// Whenever anything provisional is happening, it's XID must match the cmd's. // Whenever anything provisional is happening, it's XID must match the cmd's.
...@@ -1438,7 +1439,7 @@ static int apply_cmd_to_leaf (BRT_CMD cmd, ...@@ -1438,7 +1439,7 @@ static int apply_cmd_to_leaf (BRT_CMD cmd,
LESWITCHCALL(stored_data, apply_cmd_to, cmd, LESWITCHCALL(stored_data, apply_cmd_to, cmd,
newlen, disksize, new_data); newlen, disksize, new_data);
} }
abort(); return 0; // make certain compilers happy
} }
static int static int
...@@ -2456,7 +2457,7 @@ CACHEKEY* toku_calculate_root_offset_pointer (BRT brt, u_int32_t *roothash) { ...@@ -2456,7 +2457,7 @@ CACHEKEY* toku_calculate_root_offset_pointer (BRT brt, u_int32_t *roothash) {
} }
} }
} }
abort(); abort(); return 0; // make certain compilers happy
} }
static int brt_init_new_root(BRT brt, BRTNODE nodea, BRTNODE nodeb, DBT splitk, CACHEKEY *rootp, TOKULOGGER logger, BRTNODE *newrootp) { static int brt_init_new_root(BRT brt, BRTNODE nodea, BRTNODE nodeb, DBT splitk, CACHEKEY *rootp, TOKULOGGER logger, BRTNODE *newrootp) {
...@@ -2906,6 +2907,7 @@ static int bessel_from_search_t (OMTVALUE lev, void *extra) { ...@@ -2906,6 +2907,7 @@ static int bessel_from_search_t (OMTVALUE lev, void *extra) {
LEAFENTRY leafval=lev; LEAFENTRY leafval=lev;
brt_search_t *search = extra; brt_search_t *search = extra;
LESWITCHCALL(leafval, pair_leafval_bessel, search); LESWITCHCALL(leafval, pair_leafval_bessel, search);
abort(); return 0;
} }
static int brt_search_leaf_node(BRT brt, BRTNODE node, brt_search_t *search, DBT *newkey, DBT *newval, TOKULOGGER logger, OMTCURSOR omtcursor) { static int brt_search_leaf_node(BRT brt, BRTNODE node, brt_search_t *search, DBT *newkey, DBT *newval, TOKULOGGER logger, OMTCURSOR omtcursor) {
......
...@@ -97,6 +97,7 @@ static u_int32_t memsize_le_provpair (TXNID txnid __attribute__((__unused__)), ...@@ -97,6 +97,7 @@ static u_int32_t memsize_le_provpair (TXNID txnid __attribute__((__unused__)),
u_int32_t leafentry_memsize (LEAFENTRY le) { u_int32_t leafentry_memsize (LEAFENTRY le) {
LESWITCHCALL(le, memsize); LESWITCHCALL(le, memsize);
abort(); return 0; // make certain compilers happy
} }
static u_int32_t disksize_le_committed (u_int32_t keylen, void *key __attribute__((__unused__)), static u_int32_t disksize_le_committed (u_int32_t keylen, void *key __attribute__((__unused__)),
...@@ -127,6 +128,7 @@ static u_int32_t disksize_le_provpair (TXNID txnid __attribute__((__unused__)), ...@@ -127,6 +128,7 @@ static u_int32_t disksize_le_provpair (TXNID txnid __attribute__((__unused__)),
static u_int32_t static u_int32_t
leafentry_disksize_internal (LEAFENTRY le) { leafentry_disksize_internal (LEAFENTRY le) {
LESWITCHCALL(le, disksize); LESWITCHCALL(le, disksize);
abort(); return 0; // make certain compilers happy
} }
u_int32_t leafentry_disksize (LEAFENTRY le) { u_int32_t leafentry_disksize (LEAFENTRY le) {
...@@ -234,6 +236,7 @@ static int print_le_provpair (TXNID xid, u_int32_t klen, void *kval, u_int32_t p ...@@ -234,6 +236,7 @@ static int print_le_provpair (TXNID xid, u_int32_t klen, void *kval, u_int32_t p
int print_leafentry (FILE *outf, LEAFENTRY v) { int print_leafentry (FILE *outf, LEAFENTRY v) {
if (!v) { printf("NULL"); return 0; } if (!v) { printf("NULL"); return 0; }
LESWITCHCALL(v, print, outf); LESWITCHCALL(v, print, outf);
abort(); return 0; // make certain compilers happy
} }
int toku_logprint_LEAFENTRY (FILE *outf, FILE *inf, const char *fieldname, struct x1764 *checksum, u_int32_t *len, const char *format __attribute__((__unused__))) { int toku_logprint_LEAFENTRY (FILE *outf, FILE *inf, const char *fieldname, struct x1764 *checksum, u_int32_t *len, const char *format __attribute__((__unused__))) {
...@@ -286,6 +289,7 @@ inline void* latest_key_le_provpair (TXNID UU(xid), u_int32_t UU(klen), void *kv ...@@ -286,6 +289,7 @@ inline void* latest_key_le_provpair (TXNID UU(xid), u_int32_t UU(klen), void *kv
} }
inline void* le_latest_key (LEAFENTRY le) { inline void* le_latest_key (LEAFENTRY le) {
LESWITCHCALL(le, latest_key); LESWITCHCALL(le, latest_key);
abort(); return 0; // make certain compilers happy
} }
inline u_int32_t latest_keylen_le_committed (u_int32_t keylen, void *UU(key), u_int32_t UU(vallen), void *UU(val)) { inline u_int32_t latest_keylen_le_committed (u_int32_t keylen, void *UU(key), u_int32_t UU(vallen), void *UU(val)) {
...@@ -302,6 +306,7 @@ inline u_int32_t latest_keylen_le_provpair (TXNID UU(xid), u_int32_t klen, void ...@@ -302,6 +306,7 @@ inline u_int32_t latest_keylen_le_provpair (TXNID UU(xid), u_int32_t klen, void
} }
inline u_int32_t le_latest_keylen (LEAFENTRY le) { inline u_int32_t le_latest_keylen (LEAFENTRY le) {
LESWITCHCALL(le, latest_keylen); LESWITCHCALL(le, latest_keylen);
abort(); return 0; // make certain compilers happy
} }
inline void* latest_val_le_committed (u_int32_t UU(keylen), void *UU(key), u_int32_t UU(vallen), void *UU(val)) { inline void* latest_val_le_committed (u_int32_t UU(keylen), void *UU(key), u_int32_t UU(vallen), void *UU(val)) {
...@@ -318,6 +323,7 @@ inline void* latest_val_le_provpair (TXNID UU(xid), u_int32_t UU(klen), void *UU ...@@ -318,6 +323,7 @@ inline void* latest_val_le_provpair (TXNID UU(xid), u_int32_t UU(klen), void *UU
} }
inline void* le_latest_val (LEAFENTRY le) { inline void* le_latest_val (LEAFENTRY le) {
LESWITCHCALL(le, latest_val); LESWITCHCALL(le, latest_val);
abort(); return 0; // make certain compilers happy
} }
inline u_int32_t latest_vallen_le_committed (u_int32_t UU(keylen), void *UU(key), u_int32_t vallen, void *UU(val)) { inline u_int32_t latest_vallen_le_committed (u_int32_t UU(keylen), void *UU(key), u_int32_t vallen, void *UU(val)) {
...@@ -334,6 +340,7 @@ inline u_int32_t latest_vallen_le_provpair (TXNID UU(xid), u_int32_t UU(klen), v ...@@ -334,6 +340,7 @@ inline u_int32_t latest_vallen_le_provpair (TXNID UU(xid), u_int32_t UU(klen), v
} }
inline u_int32_t le_latest_vallen (LEAFENTRY le) { inline u_int32_t le_latest_vallen (LEAFENTRY le) {
LESWITCHCALL(le, latest_vallen); LESWITCHCALL(le, latest_vallen);
abort(); return 0; // make certain compilers happy
} }
inline void* any_key_le_committed (u_int32_t UU(keylen), void *key, u_int32_t UU(vallen), void *UU(val)) { inline void* any_key_le_committed (u_int32_t UU(keylen), void *key, u_int32_t UU(vallen), void *UU(val)) {
...@@ -350,6 +357,7 @@ inline void* any_key_le_provpair (TXNID UU(xid), u_int32_t UU(klen), void *kval, ...@@ -350,6 +357,7 @@ inline void* any_key_le_provpair (TXNID UU(xid), u_int32_t UU(klen), void *kval,
} }
inline void* le_any_key (LEAFENTRY le) { inline void* le_any_key (LEAFENTRY le) {
LESWITCHCALL(le, any_key); LESWITCHCALL(le, any_key);
abort(); return 0; // make certain compilers happy
} }
inline u_int32_t any_keylen_le_committed (u_int32_t keylen, void *UU(key), u_int32_t UU(vallen), void *UU(val)) { inline u_int32_t any_keylen_le_committed (u_int32_t keylen, void *UU(key), u_int32_t UU(vallen), void *UU(val)) {
...@@ -366,6 +374,7 @@ inline u_int32_t any_keylen_le_provpair (TXNID UU(xid), u_int32_t klen, void *UU ...@@ -366,6 +374,7 @@ inline u_int32_t any_keylen_le_provpair (TXNID UU(xid), u_int32_t klen, void *UU
} }
inline u_int32_t le_any_keylen (LEAFENTRY le) { inline u_int32_t le_any_keylen (LEAFENTRY le) {
LESWITCHCALL(le, any_keylen); LESWITCHCALL(le, any_keylen);
abort(); return 0; // make certain compilers happy
} }
inline void* any_val_le_committed (u_int32_t UU(keylen), void *UU(key), u_int32_t UU(vallen), void *UU(val)) { inline void* any_val_le_committed (u_int32_t UU(keylen), void *UU(key), u_int32_t UU(vallen), void *UU(val)) {
...@@ -382,6 +391,7 @@ inline void* any_val_le_provpair (TXNID UU(xid), u_int32_t UU(klen), void *UU(kv ...@@ -382,6 +391,7 @@ inline void* any_val_le_provpair (TXNID UU(xid), u_int32_t UU(klen), void *UU(kv
} }
inline void* le_any_val (LEAFENTRY le) { inline void* le_any_val (LEAFENTRY le) {
LESWITCHCALL(le, any_val); LESWITCHCALL(le, any_val);
abort(); return 0; // make certain compilers happy
} }
inline u_int32_t any_vallen_le_committed (u_int32_t UU(keylen), void *UU(key), u_int32_t vallen, void *UU(val)) { inline u_int32_t any_vallen_le_committed (u_int32_t UU(keylen), void *UU(key), u_int32_t vallen, void *UU(val)) {
...@@ -398,6 +408,7 @@ inline u_int32_t any_vallen_le_provpair (TXNID UU(xid), u_int32_t UU(klen), void ...@@ -398,6 +408,7 @@ inline u_int32_t any_vallen_le_provpair (TXNID UU(xid), u_int32_t UU(klen), void
} }
inline u_int32_t le_any_vallen (LEAFENTRY le) { inline u_int32_t le_any_vallen (LEAFENTRY le) {
LESWITCHCALL(le, any_vallen); LESWITCHCALL(le, any_vallen);
abort(); return 0; // make certain compilers happy
} }
...@@ -419,4 +430,5 @@ inline u_int64_t any_xid_le_provpair (TXNID xid, u_int32_t UU(klen), void *UU(kv ...@@ -419,4 +430,5 @@ inline u_int64_t any_xid_le_provpair (TXNID xid, u_int32_t UU(klen), void *UU(kv
inline u_int64_t le_any_xid (LEAFENTRY le) { inline u_int64_t le_any_xid (LEAFENTRY le) {
LESWITCHCALL(le, any_xid); LESWITCHCALL(le, any_xid);
abort(); return 0; // make certain compilers happy
} }
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
#ident "Copyright (c) 2007, 2008 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007, 2008 Tokutek Inc. All rights reserved."
#include "portability.h"
#include <errno.h> #include <errno.h>
#include "../include/db.h" #include "../include/db.h"
......
...@@ -2,16 +2,7 @@ ...@@ -2,16 +2,7 @@
#ident "Copyright (c) 2007, 2008 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007, 2008 Tokutek Inc. All rights reserved."
/* Insert a bunch of stuff */ /* Insert a bunch of stuff */
#include "brt.h" #include "includes.h"
#include "key.h"
#include "memory.h"
#include "toku_assert.h"
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/time.h>
#include <unistd.h>
static const char fname[]="sinsert.brt"; static const char fname[]="sinsert.brt";
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include "block_allocator.h"
#include "toku_assert.h"
#include <stdlib.h> #include "includes.h"
static void ba_alloc_at (BLOCK_ALLOCATOR ba, u_int64_t size, u_int64_t offset) { static void ba_alloc_at (BLOCK_ALLOCATOR ba, u_int64_t size, u_int64_t offset) {
block_allocator_validate(ba); block_allocator_validate(ba);
......
#include <stdio.h> #include "portability.h"
#include "../include/rdtsc.h" #include "../include/rdtsc.h"
#include "trace_mem.h" #include "trace_mem.h"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment