Fix attach_thread to allocate a TLS index for *gc-inhibit* if needed

Instead of occasionally setting a global value for this variable...

Thanks to Stas Boukarev for the bug report.
1.1.3: will be tagged as "sbcl-1.1.3"
Do not traverse long constant lists when expanding DOLIST

* Only gather type information on the list contents' if it's short
  (at most 20 elements); otherwise, do not derive type information.

* Thanks to Douglas Katzman for the bug report (lp#1095488).
Fix reading `#3(x).

Previously it returned #(x), while it should be #(x x x).

Fixes lp#1095918.
sb-sprof: Define pthread-kill only on +sb-thread.

pthread_kill alien is not present on -sb-thread, because libpthread is
not loaded, and it results in unnecessary style warnings.
adjust-array: Make sure that :initial-element is used.

Adjust-array ignored :initial-element for arrays of type T.

Fixes lp#1096359.
sb-sprof.lisp: Remove trailing white-spaces.
format: Check types for ~C and ~R.

Both require arguments to be characters and integers respectively.
format: ~R should check a type only if base is not supplied.

(format t "~2r" 1/2) is valid.
fix constant-list-related initargs in CTOR optimization

lp#1099708, reported by Derek Baldwin; also test for _3b's #sbcl irc insight
that this would break non-EQLity of distinct but EQUAL list constants

Also deal with pathnames, bit-vectors and strings, which are precisely the
types EQUAL descends into.

(The general problem of function names being looked up using EQUAL remains
a problem, though with fewer observable consequences: for example, methods
with EQUAL eql-specializers will have their function names collide with
each other, though since in CLOS the functions are looked up through the
method objects this is less serious than with CTORs.
fix open coding of FIRST

  Regression from 373df66df093e8c1771069dcc30c2ec32598af6a:
  "more funky &REST smartness".

  Make the source-transform of FIRST never decline, falling back on
  CAR if the argument is not a &REST list.
note FIRST fix in NEWS, fix stupid typo in tests
better initial value for LOOP variables of-type CHARACTER
disable sb-sprof test on darwin

  restore buildability by disabling failing test for the moment.
Adapt cheneygc.c to type changes in gc-internal.h
Slightly improve random seed on Windows.

Use unix-getpid on Windows too.
disable the other sb-sprof test on darwin as well *sigh*
1.1.4: will be tagged as "sbcl-1.1.4"
nicer name-conflict restarts for common cases

  For IMPORT: offer option to SHADOWING-IMPORT the new symbol or skip
  importing.

  For EXPORT: offer option to KEEP-OLD or TAKE-NEW. (Shadowing or
  uninterning the other one.)

  For USE-PACKAGE: offer option to KEEP-OLD or TAKE-NEW. (Shadowing or
  uninterning the other ones.)
DEFPACKAGE at variance restarts

  Signal a full error on variances, in each case offering the user the
  choice of keeping the old stuff or dropping it.

  Fixes lp#891351.