diff options
| author | Paul Eggert | 2011-03-29 17:39:12 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-03-29 17:39:12 -0700 |
| commit | 77861b9528e3fbb5f406267ff298a95009530b7f (patch) | |
| tree | d7eb3886831322f956d997d7bd10d034dfca5839 /src/ChangeLog | |
| parent | d806ab682a8e914345db3f2eede292f85745c98c (diff) | |
| parent | de6dbc14a72347f3f2a3b4f0bf3c39d6f69a425e (diff) | |
| download | emacs-77861b9528e3fbb5f406267ff298a95009530b7f.tar.gz emacs-77861b9528e3fbb5f406267ff298a95009530b7f.zip | |
Fix more problems found by GCC 4.6.0's static checks.
Diffstat (limited to 'src/ChangeLog')
| -rw-r--r-- | src/ChangeLog | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 1e77a6439e1..973b7712e53 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,76 @@ | |||
| 1 | 2011-03-30 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | Fix more problems found by GCC 4.6.0's static checks. | ||
| 4 | |||
| 5 | * unexelf.c (unexec) [! (defined _SYSTYPE_SYSV || defined __sgi)]: | ||
| 6 | Remove unused local var. | ||
| 7 | |||
| 8 | * editfns.c (Fmessage_box): Remove unused local var. | ||
| 9 | |||
| 10 | * xdisp.c (try_window_reusing_current_matrix, x_produce_glyphs): | ||
| 11 | (note_mode_line_or_margin_highlight, note_mouse_highlight): | ||
| 12 | Omit unused local vars. | ||
| 13 | * window.c (shrink_windows): Omit unused local var. | ||
| 14 | * menu.c (digest_single_submenu): Omit unused local var. | ||
| 15 | * dispnew.c (update_window) [PERIODIC_PREEMPTION_CHECKING]: | ||
| 16 | Omit unused local var. | ||
| 17 | |||
| 18 | * keyboard.c (parse_modifiers_uncached, parse_modifiers): | ||
| 19 | Don't assume string length fits in int. | ||
| 20 | (keyremap_step, read_key_sequence): Use size_t for sizes. | ||
| 21 | (read_key_sequence): Don't check last_real_key_start redundantly. | ||
| 22 | |||
| 23 | * callproc.c (Fcall_process, Fcall_process_region): Use SAFE_ALLOCA | ||
| 24 | instead of alloca (Bug#8344). | ||
| 25 | |||
| 26 | * eval.c (Fbacktrace): Don't assume nargs fits in int. | ||
| 27 | (Fbacktrace_frame): Don't assume nframes fits in int. | ||
| 28 | |||
| 29 | * syntax.c (scan_sexps_forward): Avoid pointer wraparound. | ||
| 30 | |||
| 31 | * xterm.c (x_make_frame_visible, same_x_server): Redo to avoid overflow | ||
| 32 | concerns. | ||
| 33 | |||
| 34 | * term.c (produce_glyphless_glyph): Remove unnecessary test. | ||
| 35 | |||
| 36 | * cm.c (calccost): Turn while-do into do-while, for clarity. | ||
| 37 | |||
| 38 | * keyboard.c (syms_of_keyboard): Use the same style as later | ||
| 39 | in this function when indexing through an array. This also | ||
| 40 | works around GCC bug 48267. | ||
| 41 | |||
| 42 | * image.c (tiff_load): Fix off-by-one image count (Bug#8336). | ||
| 43 | |||
| 44 | * xselect.c (x_check_property_data): Return correct size (Bug#8335). | ||
| 45 | |||
| 46 | * chartab.c (sub_char_table_ref_and_range): Redo for slight | ||
| 47 | efficiency gain, and to bypass a gcc -Wstrict-overflow warning. | ||
| 48 | |||
| 49 | * keyboard.c, keyboard.h (num_input_events): Now size_t. | ||
| 50 | This avoids undefined behavior on integer overflow, and is a bit | ||
| 51 | more convenient anyway since it is compared to a size_t variable. | ||
| 52 | |||
| 53 | Variadic C functions now count arguments with size_t, not int. | ||
| 54 | This avoids an unnecessary limitation on 64-bit machines, which | ||
| 55 | caused (substring ...) to crash on large vectors (Bug#8344). | ||
| 56 | * lisp.h (struct Lisp_Subr.function.aMANY): Now takes size_t, not int. | ||
| 57 | (DEFUN_ARGS_MANY, internal_condition_case_n, safe_call): Likewise. | ||
| 58 | All variadic functions and their callers changed accordingly. | ||
| 59 | (struct gcpro.nvars): Now size_t, not int. All uses changed. | ||
| 60 | * data.c (arith_driver, float_arith_driver): Likewise. | ||
| 61 | * editfns.c (general_insert_function): Likewise. | ||
| 62 | * eval.c (struct backtrace.nargs, interactive_p) | ||
| 63 | (internal_condition_case_n, run_hook_with_args, apply_lambda) | ||
| 64 | (funcall_lambda, mark_backtrace): Likewise. | ||
| 65 | * fns.c (concat): Likewise. | ||
| 66 | * frame.c (x_set_frame_parameters): Likewise. | ||
| 67 | * fns.c (get_key_arg): Now accepts and returns size_t, and returns | ||
| 68 | 0 if not found, not -1. All callers changed. | ||
| 69 | |||
| 70 | * alloc.c (garbage_collect): Don't assume stack size fits in int. | ||
| 71 | (stack_copy_size): Now size_t, not int. | ||
| 72 | (stack_copy, stack_copy_size): Define only if MAX_SAVE_STACK > 0. | ||
| 73 | |||
| 1 | 2011-03-28 Juanma Barranquero <lekktu@gmail.com> | 74 | 2011-03-28 Juanma Barranquero <lekktu@gmail.com> |
| 2 | 75 | ||
| 3 | * coding.c (encode_designation_at_bol): Remove parameter `charbuf_end', | 76 | * coding.c (encode_designation_at_bol): Remove parameter `charbuf_end', |