Commit Graph

2363 Commits

Author SHA1 Message Date
uwe
063d3e6570 Pull the fix for GCC Bug 50068 - Invalid memory access in incr_ticks_for_insn
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50068
http://gcc.gnu.org/viewcvs?view=revision&revision=177839

        * config/sh/sh.c (sh_output_mi_thunk): Don't call dbr_schedule.
2011-08-24 21:25:01 +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
matt
ec53afa919 Add a -mtrap-zero-jump option for mips that causes a trap instruction to
fire before a jump to a zero or "near" zero address.  This can't be used
with MIPS1 kernels since MIPS1 doesn't have a trap instruction (it will
be silently ignored).
2011-08-18 06:32:35 +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
matt
72dd554728 Regen (since mknative blew away _SOFT_FLOAT changes). 2011-08-17 18:33:03 +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
4036596c74 document non-literal format strings 2011-08-16 10:45:37 +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
mrg
ea90e3d981 also copy -m and -f flags from the GCC headers.
fixes PR#45253.  (i'm going to leave that bug open for now because i
want to re-work a bunch of the libgcc framework.)
2011-08-15 18:31:20 +00:00
mrg
12dc132b81 clean out some unused code. 2011-08-15 09:19:21 +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
joerg
6791cf96d2 Various warning adjustments for clang 2011-08-11 23:15:35 +00:00
tsutsui
6fa6a60bcb Disable bzip2 support in freetype on xorg tools build.
Fixes PR xsrc/45223 (xorg tools build fails on CentOS due to
lack of bz2 support).
2011-08-10 10:34:48 +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
d745f33bcc No longer needs -Wno-array-bounds with clang. 2011-08-09 13:06:31 +00:00
joerg
11b90aaf13 Requires -Wno-unused-value -Wno-tautological-compare when building with
clang.
2011-08-09 13:01:34 +00:00
joerg
d43405d38d -Wno-array-bounds is no longer needed for clang here 2011-08-09 13:00:58 +00:00
joerg
78384c1939 Can't build libstdc++ and libsupc++ with clang since it depends on using
volatiles as initializers of non-volatile fields, void * arithmetic and
some new attributes for the unwinding.
2011-08-09 13:00:04 +00:00
joerg
d80abf5701 Disable -Wunused-value for clang, it triggers on the bcopy replacement. 2011-08-09 12:58:55 +00:00
joerg
402f76be16 Since cproj and friends are used, link explicitly against libm. 2011-08-09 12:56:41 +00:00
joerg
90aa08ed31 Don't use array access to compute addresses that are definitely beyond
the static array boundaries.
2011-08-09 12:55:18 +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
mrg
46d22e869d re-run mknative for hppa. 2011-08-07 12:20:10 +00:00