Minor tweaks to compile without warnings with some version of Apple's
clang compiler:

gc.h, image.h, lisp.h: prototypes for some functions that haven't had them.
image.c: remove redundant/inconsistent prototypes.
mach-o-image.c: include "image.h" to pick up those prototypes.
pmcl-kernel.c: change a few function declarations to match prototypes.
x86-constants32.s, x86-subprims32.s, x86-spentry32.s: add copyright notice.


git-svn-id: http://svn.clozure.com/publicsvn/openmcl/trunk/source@15429 8bdb8f1d-59ce-db11-9e41-0016172a54ae
lib/macros.lisp: DEFCALLBACK-BODY expands into LET*, not LET.  (Matters
  on ARM, likely doesn't for other architectures.)
compiler/ARM/arm2.lisp: unsafe optimization in ARM2-GET-FLOAT.
compiler/ARM/arm-backend.lisp: handle hard-float conventions in callbacks
 on ARM. Fixes ticket:1000
level-0/ARM/arm-def.lisp: in %FF-CALL-HARD-FLOAT, don't preincrement 
 FP-ARG-OFFSET in the :SINGLE-FLOAT case.


git-svn-id: http://svn.clozure.com/publicsvn/openmcl/trunk/source@15431 8bdb8f1d-59ce-db11-9e41-0016172a54ae
ppc64 remap_spjump(): fix call to xMakeDataExecutable.


git-svn-id: http://svn.clozure.com/publicsvn/openmcl/trunk/source@15432 8bdb8f1d-59ce-db11-9e41-0016172a54ae
in .SPstore_node_conditional, don't use %temp1 to address bitvectors.  pc_luser_xp() expects to be able to determine ea being stored into using %temp1

git-svn-id: http://svn.clozure.com/publicsvn/openmcl/trunk/source@15433 8bdb8f1d-59ce-db11-9e41-0016172a54ae
Stop trying to get by on our good looks and charm (or at least
stop trying to assume that x8664 Darwin's malloc() will quickly
return a 32-bit pointer in allocate_tcr().  See ticket:1005.)
Instead, try to map a largish (1K) number of TCRs in free 32-bit
memory and manage them explicitly on x8664 Darwin.

Note that this isn't thread-safe in general: we do this by walking
our address space (via vm_region_64()) until we find a free 32-bit
block of memory and using mmap() (with the MAP_FIXED option).  When
this happens at any time after application startup, it's possible
for some foreign thread to be mapping/unmapping regions while we're
doing this.  (This is why OSes that provide mmap options that request
32-bit addresses do so in the kernel.)  It's likely fairly hard in
practice to exceed the 1K initial TCR allocation and it's not clear
that this is any worse than the "wait until we get lucky with malloc()"
strategy has been, but it may be better to just do the TCR allocation
once on startup, avoid the (theoretical) thread-safety issues, and
treat the (possibly raised) value of TCR_CLUSTER_COUNT as a hard limit.

lisp-kernel/platform-darwinx8664: define DARWIN64, to make conditionalization
a little easier
lisp-kernel/memory.c: implement darwin_allocate_tcr() and darwin_free_tcr()
as outlined above
lisp-kernel/thread_manager.c: allocate_tcr() uses darwin_allocate_tcr() on
DARWIN64.  Use darwin_free_tcr() instead of free() on DARWIN64.  Make
shutdown_thread_tcr() dequeue the TCR and put it back in the free TCR
pool on DARWIN64.


git-svn-id: http://svn.clozure.com/publicsvn/openmcl/trunk/source@15437 8bdb8f1d-59ce-db11-9e41-0016172a54ae
allocate_tcr(): always do Mach port stuff on Darwin.


git-svn-id: http://svn.clozure.com/publicsvn/openmcl/trunk/source@15438 8bdb8f1d-59ce-db11-9e41-0016172a54ae
In the new code that allocates memory for TCRs on 64-bit Darwin, don't
use MAP_FIXED (and therefore avoid the thread-safety problems that
using it introduced.) As of OSX 10.5, mmap() will use the supplied 
address if it doesn't confict with a mapped region and as of 10.6
it's documented to do so.


git-svn-id: http://svn.clozure.com/publicsvn/openmcl/trunk/source@15439 8bdb8f1d-59ce-db11-9e41-0016172a54ae
Make #'ccl-directory more robust when CCL_DEFAULT_DIRECTORY is the
empty string rather than NIL. Both cases are now treated identically.


git-svn-id: http://svn.clozure.com/publicsvn/openmcl/trunk/source@15442 8bdb8f1d-59ce-db11-9e41-0016172a54ae
Fencepost (er, sort of) in (SETF SPARSE-VECTOR-REF).
Fixes ticket:1007.


git-svn-id: http://svn.clozure.com/publicsvn/openmcl/trunk/source@15443 8bdb8f1d-59ce-db11-9e41-0016172a54ae
New variable hemlock:*kill-ring-pushes-to-clipboard*.
Set to true for kill operations to push to system clipboard (default),
nil to leave system clipboard unaffected by kills.


git-svn-id: http://svn.clozure.com/publicsvn/openmcl/trunk/source@15445 8bdb8f1d-59ce-db11-9e41-0016172a54ae
When (SETF SPARSE-VECTOR-REF) has to extend the table, ensure that
new elements are NIL.  Fixes ticket:1007 again ...


git-svn-id: http://svn.clozure.com/publicsvn/openmcl/trunk/source@15446 8bdb8f1d-59ce-db11-9e41-0016172a54ae
Make show-callers-command a lot more useful by automatically inferring
the package of the selected symbol. Fix #'package-at-mark so it works
(better).



git-svn-id: http://svn.clozure.com/publicsvn/openmcl/trunk/source@15448 8bdb8f1d-59ce-db11-9e41-0016172a54ae
Unscramble #_glutInit arguments.  Fixes ticket:1009 in the trunk.
Conditionalize startup code for Darwin/Linux.


git-svn-id: http://svn.clozure.com/publicsvn/openmcl/trunk/source@15450 8bdb8f1d-59ce-db11-9e41-0016172a54ae
pmcl-kernel.c: In register_cstack_holding_area_lock(), if stack is too
 small for soft/hard protected areas, just set hard/soft limits to
 physical limits and don't write-protect any regions (on architectures
 that want to do this.)
thread_manager.c: even foreign TCR's need to set tcr->cs_limit, so that
 rmark() doesn't exhaust the stack.


git-svn-id: http://svn.clozure.com/publicsvn/openmcl/trunk/source@15451 8bdb8f1d-59ce-db11-9e41-0016172a54ae
Fix typo.


git-svn-id: http://svn.clozure.com/publicsvn/openmcl/trunk/source@15452 8bdb8f1d-59ce-db11-9e41-0016172a54ae