Commit Graph

925 Commits

Author SHA1 Message Date
plunky
1641c82fac Update pcc snapshot to 1.1.0.DEVEL 20110901
Continual development has happened since the previous 0.9.9
snapshot of 20100603 and the full commit log is too long to
include here, but can be seen at

 http://pcc.ludd.ltu.se/fisheye/changelog/~date=2011-09-01T06%3A00%3A00/pcc

Many bugs were reported and fixed, along with reworks of the compiler
internals in several areas, notable milestones were

 * more builtins, libpcc is no longer required on NetBSD
 * improved gcc compatibility (eg gnu-inline semantics)
 * NetBSD/VAX kernel compiles and boots
 * using cpp as backend for lint now fully working
 * PIC support seems complete
 * NetBSD/i386 kernel can be compiled and booted
 * better float/double/complex support
 * amd64 support on OSX
 * reworked Makefiles
 * pcc 1.0.0 was release on April 1 2011
 * several xasm improvements
 * FreeBSD/amd64 system can be compiled with very few changes
 * DragonFly fixes from downstream
 * rewritten #pragma support
 * TLS support added
 * many regression tests
 * rewrite of internal attribute handling
2011-09-01 12:46:15 +00:00
joerg
f0eca48ed1 Update LLVM/Clang snapshot to r138875. Primarily to get the rewritten
temp file handling fixing boost-jam build.
2011-09-01 12:24:35 +00:00
plunky
fdcee79615 extend __clang__ hack for __PCC__ also
(CMSG_SPACE() is not a constant)
2011-08-31 20:13:31 +00:00
wiz
7c47a19704 Add libppath. 2011-08-29 08:58:18 +00:00
joerg
a919271017 Mark yy_fatal_error as noreturn if supported by the compiler. 2011-08-27 18:36:03 +00:00
joerg
86490d7b50 Avoid non-literal format strings by replacing asprintf with putc. 2011-08-25 16:41:51 +00:00
joerg
0855702cc7 Use of non-literal format strings 2011-08-25 16:29:39 +00:00
he
d6e8830ca4 Hm, upstream maintainer says loop needs to start from 0, make it so. 2011-08-22 09:19:51 +00:00
he
8d79df0020 Replace needless use of double math just to compare colour distances
with integer arithmetic.  Reported to and discussed with upstream maintainer.
2011-08-22 06:52:35 +00:00
christos
065954bf9d use static const char[] for format. 2011-08-21 08:45:20 +00:00
christos
73d3221b0e document/fix non-literal format strings. 2011-08-19 09:06:05 +00:00
jmmv
a17f7e9f91 Disable a few stack protector warnings to fix the build with USE_SSP.
This actually recovers something that was in the Makefile before but that
I removed during the update thinking they were not needed any more.  (I had
assumed ssp was the default.)

Build problem reported by bch at methodlogic.net in current-users.
2011-08-18 19:05:54 +00:00
jmmv
e27abe6ff4 Reenable all warning checks and fix fallover. 2011-08-17 19:28:36 +00:00
jmmv
5365634b06 Adjust reachover Makefiles after tmux 1.5 import.
The new code has quite a bit of warnings to be fixed.  I did not realize
until merge-resolving time that christos@ had fixed such warnings in our
copy of tmux 1.4 and assumed these warnings were new and thus could just
be disabled.

Therefore, I'm disabling some global warning checks as a temporary measure
to bring the tree back to a buildable state.  I will take a look at these
warnings afterwards.
2011-08-17 18:51:10 +00:00
jmmv
0f3d27469a Fix merge conflicts after tmux 1.5 import. 2011-08-17 18:48:34 +00:00
jmmv
d530c4d0ae Import tmux 1.5:
CHANGES FROM 1.4 TO 1.5, 09 July 2011

* Support xterm mouse modes 1002 and 1003.
* Change from a per-session stack of buffers to one global stack. This renders
  copy-buffer useless and makes buffer-limit now a server option.
* Fix most-recently-used choice by avoiding reset the activity timer for
  unattached sessions every second.
* Add a -P option to new-window and split-window to print the new window or
  pane index in target form (useful to pass it into other commands).
* Handle a # at the end of a replacement string (such as status-left)
  correctly.
* Support for UTF-8 mouse input (\033[1005h) which was added in xterm 262.
  If the new mouse-utf8 option is on, UTF-8 mouse input is enabled for all
  UTF-8 terminals. The option defaults to on if LANG etc are set in the same
  manner as the utf8 option.
* Support for HP-UX.
* Accept colours of the hex form #ffffff and translate to the nearest from the
  xterm(1) 256-colour set.
* Clear the non-blocking IO flag (O_NONBLOCK) on the stdio file descriptors
  before closing them (fixes things like "tmux ls && cat").
* Use TMPDIR if set.
* Fix next and previous session functions to actually work.
* Support -x and -y for new-session to specify the initial size of the window
  if created detached with -d.
* Make bind-key accept characters with the top-bit-set and print them as octal.
* Set $TMUX without the session when background jobs are run.
* Simplify the way jobs work and drop the persist type, so all jobs are
  fire-and-forget.
* Accept tcgetattr/tcsetattr(3) failure, fixes problems with fatal() if the
  terminal disappears while locked.
* Add a -P option to detach to HUP the client's parent process (usually causing
  it to exit as well).
* Support passing through escape sequences to the underlying terminal by using
  DCS with a "tmux;" prefix.
* Prevent tiled producing a corrupt layout when only one column is needed.
* Give each pane created in a tmux server a unique id (starting from 0), put it
  in the TMUX_PANE environment variable and accept it as a target.
* Allow a start and end line to be specified for capture-pane which may be
  negative to capture part of the history.
* Add -a and -s options to lsp to list all panes in the server or session
  respectively. Likewise add -s to lsw.
* Change -t on display-message to be target-pane for the #[A-Z] replacements
  and add -c as target-client.
* The attach-session command now prefers the most recently used unattached
  session.
* Add -s option to detach-client to detach all clients attached to a session.
* Add -t to list-clients.
* Change window with mouse wheel over status line if mouse-select-window is on.
* When mode-mouse is on, automatically enter copy mode when the mouse is
  dragged or the mouse wheel is used. Also exit copy mode when the mouse wheel
  is scrolled off the bottom.
* Provide #h character pair for short hostname (no domain).
* Don't use strnvis(3) for the title as it breaks UTF-8.
* Use the tsl and fsl terminfo(5) capabilities to update terminal title and
  automatically fill them in on terminals with the XT capability (which means
  their title setting is xterm-compatible).
* Add a new option, mouse-resize-pane. When on, panes may be resized by
  dragging their borders.
* Fix crash by resetting last pane on {break,swap}-pane across windows.
* Add three new copy-mode commands - select-line, copy-line, copy-end-of-line.
* Support setting the xterm clipboard when copying from copy mode using the
  xterm escape sequence for the purpose (if xterm is configured to allow it).
* Support xterm(1) cursor colour change sequences through terminfo(5) Cc
  (set) and Cr (reset) extensions.
* Support DECSCUSR sequence to set the cursor style with two new terminfo(5)
  extensions, Cs and Csr.
* Make the command-prompt custom prompts recognize the status-left option
  character pairs.
* Add a respawn-pane command.
* Add a couple of extra xterm-style keys that gnome terminal provides.
* Allow the initial context on prompts to be set with the new -I option to
  command-prompt. Include the current window and session name in the prompt
  when renaming and add a new key binding ($) for rename session.
* Option bell-on-alert added to trigger the terminal bell when there is an
  alert.
* Change the list-keys format so that it shows the keys using actual tmux
  commands which should be able to be directly copied into the config file.
* Show full targets for lsp/lsw -a.
* Make confirm-before prompt customizable with -p option like command-prompt
  and add the character pairs #W and #P to the default kill-{pane,window}
  prompts.
* Avoid sending data to suspended/locked clients.
* Small memory leaks in error paths plugged.
* Vi mode improvements.
2011-08-17 18:40:03 +00:00
jmmv
e48648f0d2 Adjust instructions and import script in preparation for tmux 1.5. 2011-08-17 18:37:59 +00:00
christos
9ad467753c fix strict aliasing issues. 2011-08-17 10:48:02 +00:00
christos
9c35de859b widen the type to avoid gcc warning about shifting too much. 2011-08-17 09:32:55 +00:00
christos
e307dc8de5 fix cast warnings 2011-08-17 09:30:13 +00:00
christos
e83f416f0e fix strict aliasing issues. 2011-08-17 09:24:23 +00:00
christos
5ae8764ee2 remove gcc hacks. 2011-08-17 09:20:14 +00:00
christos
7634ea3059 fix gcc array out of bounds confusion. 2011-08-17 09:19:38 +00:00
christos
3392b60945 fix aliasing issues and remove gcc hacks. 2011-08-17 09:03:47 +00:00
christos
c8909e959a fix type-punned warnings using memcpy 2011-08-17 08:22:50 +00:00
joerg
a509349c8f Revert. 2011-08-16 14:08:35 +00:00
christos
d6942b2fe4 avoid/document non-literal format strings 2011-08-16 10:34:22 +00:00
christos
a04731e090 avoid non-literal strings. 2011-08-16 08:29:15 +00:00
christos
fc186dc762 - document non-literal format
- no need for WARNS = 0 here
2011-08-16 07:57:21 +00:00
christos
058f310f02 - proper varyadic warning and error
- don't call syslog with a buffer, use %s first.
2011-08-16 05:28:44 +00:00
christos
05d3ffd600 - it is not the 80's anymore, use proper varargs
- no need to exit again, error does
2011-08-16 05:24:20 +00:00
christos
7fdb569fcb - document non-literal strings
- fix bad security practices: {msyslog,syslog,printf}(buffer) ->
    {msyslog,syslog,printf}("%s", buffer)
- use an anonymous union to avoid type punning casts
- re-order expression to avoid integer overflow
2011-08-16 05:15:20 +00:00
christos
afec221346 - fixes for non-literal strings
- add missing strbuf initialization
2011-08-16 04:45:17 +00:00
christos
9521b6a6f7 provisional fix for CVS-2011-2895, buffer overflow during decompress 2011-08-16 03:33:37 +00:00
christos
eae14b3ea8 document non-literal format strings 2011-08-14 13:29:26 +00:00
christos
27b39b96e0 document that display.c uses non-literal format strings 2011-08-14 12:48:02 +00:00
christos
dbb4627dd8 fix non-literal strings where they are not needed. 2011-08-14 09:06:12 +00:00
plunky
867fdab687 disable some warnings to appease gcc-4.5 2011-08-10 08:10:39 +00:00
plunky
a8bf6c15ac use offsetof() rather than rolling our own, to appease gcc 4.5 2011-08-10 08:09:38 +00:00
plunky
98320184ef fix up some undefined behaviour, to appease gcc 4.5 2011-08-10 08:08:39 +00:00
joerg
d43405d38d -Wno-array-bounds is no longer needed for clang here 2011-08-09 13:00:58 +00:00
joerg
7ba5ed4f95 Update LLVM/Clang snapshot to r137038. This brings in the extended array
boundary checker and the white listing of pre-c99 flexible array member
idiom foo[1] as last element of a struct.
2011-08-09 12:30:46 +00:00
jmmv
bbf950e188 Rename the _atf user to _tests. The _atf name will get obsoleted if/when
we migrate to Kyua (atf v2), so it's better to use a generic name that does
not depend on the specific implementation.  Also, this user has not gone
out yet into any stable release, so we can easily rename it.

Suggested by jruoho@.
2011-08-05 14:43:41 +00:00
joerg
97e2cf4d88 Update LLVM/Clang snapshot to r136592. This brings support for
.code32/.code64 on x86.
2011-08-02 17:12:38 +00:00
joerg
0220bbec2e Update to LLVM/Clang snapshot to r135906. Fixes a number of bugs found
in the pkgsrc bulk builds.
2011-07-25 16:32:43 +00:00
dholland
dc7a4b1c8f Remove spurious trailing slash; PR 45067 from Henning Petersen. 2011-07-19 03:07:09 +00:00
tron
d43e32f723 Turn SSP warnings for "dynstr_test.c" off, found by GCC 4.5. 2011-07-18 19:30:49 +00:00
joerg
9777e8c193 Update to Clang/LLVM r135360. Most importantly, this adjusts the
cc -print-search-dirs output to expand sysroot-prefixed library paths to
make live easier for libtool.
2011-07-17 20:07:56 +00:00
christos
27ed5dfb1a - exit with ERROR_EXIT consistently
- don't use warnx() for things that set errno
- check result of setlogin()
- don't call setlogin() without calling setsid()
  should fix kernel warnings like:
	cron (pid NNNNN) changing logname from root to USER
	cron (pid MMMMM) changing logname from USER to root
2011-07-17 01:16:46 +00:00
christos
bd253b6939 calling setlogin() once is good enough. 2011-07-17 01:14:25 +00:00