Mostly missing 'void' in function prototypes.
return ret;
}
-extern UInt mips_dirtyhelper_get_MSAIR() {
+extern UInt mips_dirtyhelper_get_MSAIR(void) {
UInt ret = 0;
/* GCC 4.8 and later support MIPS MSA. */
#if defined(__mips__) && (defined(__clang__) || (GCC_VERSION >= 408))
#undef DEFINED
}
-void VG_(print_cache_clo_opts)()
+void VG_(print_cache_clo_opts)(void)
{
VG_(printf)(
" --I1=<size>,<assoc>,<line_size> set I1 cache manually\n"
/* BB hash, resizable */
bb_hash bbs;
-void CLG_(init_bb_hash)()
+void CLG_(init_bb_hash)(void)
{
Int i;
for (i = 0; i < bbs.size; i++) bbs.table[i] = NULL;
}
-bb_hash* CLG_(get_bb_hash)()
+bb_hash* CLG_(get_bb_hash)(void)
{
return &bbs;
}
dst->table = current_bbccs.table;
}
-bbcc_hash* CLG_(get_current_bbcc_hash)()
+bbcc_hash* CLG_(get_current_bbcc_hash)(void)
{
return ¤t_bbccs;
}
*
* If the JCC becomes inactive, call entries are freed if possible
*/
-void CLG_(pop_call_stack)()
+void CLG_(pop_call_stack)(void)
{
jCC* jcc;
Int depth = 0;
static cxt_hash cxts;
-void CLG_(init_cxt_table)()
+void CLG_(init_cxt_table)(void)
{
Int i;
* This function has to be called every time a profile dump is generated
* to be able to react on PID changes.
*/
-void CLG_(init_dumps)()
+void CLG_(init_dumps)(void)
{
SysRes res;
/* Object hash table, fixed */
static obj_node* obj_table[N_OBJ_ENTRIES];
-void CLG_(init_obj_table)()
+void CLG_(init_obj_table)(void)
{
Int i;
for (i = 0; i < N_OBJ_ENTRIES; i++)
dst->array = current_fn_active.array;
}
-fn_array* CLG_(get_current_fn_array)()
+fn_array* CLG_(get_current_fn_array)(void)
{
return ¤t_fn_active;
}
struct event_sets CLG_(sets);
-void CLG_(init_eventsets)()
+void CLG_(init_eventsets)(void)
{
// Event groups from which the event sets are composed
// the "Use" group only is used with "cacheuse" simulation
static thread_info** thread;
-thread_info** CLG_(get_threads)()
+thread_info** CLG_(get_threads)(void)
{
return thread;
}
-thread_info* CLG_(get_current_thread)()
+thread_info* CLG_(get_current_thread)(void)
{
return thread[CLG_(current_tid)];
}
-void CLG_(init_threads)()
+void CLG_(init_threads)(void)
{
UInt i;
*
* Called from CLG_(pop_call_stack)
*/
-void CLG_(run_post_signal_on_call_stack_bottom)()
+void CLG_(run_post_signal_on_call_stack_bottom)(void)
{
exec_state* es = top_exec_state();
CLG_ASSERT(es != 0);
*/
pnt.c = linetab;
nfile = *pnt.s++;
- nseg = *pnt.s++;
filetab = pnt.ui;
return sysno_to_report;
}
-Bool valgrind_stopped_before_syscall()
+Bool valgrind_stopped_before_syscall(void)
{
vg_assert (sysno_to_report >= 0);
return before_syscall;
s_bm2_set_template = NULL;
}
-struct bitmap* DRD_(bm_new)()
+struct bitmap* DRD_(bm_new)(void)
{
struct bitmap* bm;
/* Function definitions. */
-Bool DRD_(get_check_stack_accesses)()
+Bool DRD_(get_check_stack_accesses)(void)
{
return s_check_stack_accesses;
}
s_check_stack_accesses = c;
}
-Bool DRD_(get_first_race_only)()
+Bool DRD_(get_first_race_only)(void)
{
return s_first_race_only;
}
}
/** Return how many times the conflict set has been updated entirely. */
-ULong DRD_(thread_get_compute_conflict_set_count)()
+ULong DRD_(thread_get_compute_conflict_set_count)(void)
{
return s_compute_conflict_set_count;
}
DRD_(vc_reserve)(vc, 0);
}
-/** Copy constructor -- initializes *new. */
-void DRD_(vc_copy)(VectorClock* const new, const VectorClock* const rhs)
+/** Copy constructor -- initializes *obj. */
+void DRD_(vc_copy)(VectorClock* const obj, const VectorClock* const rhs)
{
- DRD_(vc_init)(new, rhs->vc, rhs->size);
+ DRD_(vc_init)(obj, rhs->vc, rhs->size);
}
/** Assignment operator -- *lhs is already a valid vector clock. */
const VCElem* const vcelem,
const unsigned size);
void DRD_(vc_cleanup)(VectorClock* const vc);
-void DRD_(vc_copy)(VectorClock* const new, const VectorClock* const rhs);
+void DRD_(vc_copy)(VectorClock* const obj, const VectorClock* const rhs);
void DRD_(vc_assign)(VectorClock* const lhs, const VectorClock* const rhs);
void DRD_(vc_increment)(VectorClock* const vc, DrdThreadId const tid);
static __inline__