# HG changeset patch # User james # Date 1107452043 0 # Node ID b880fa9b5d8a7138d1a15a01c3a8dd76f46561a6 # Parent 166ed8151e620e1f6b1df3dc9ec458e87e57eb59 [xemacs-hg @ 2005-02-03 17:33:50 by james] Fix the C++ build the rest of the way. See xemacs-patches message with ID . diff -r 166ed8151e62 -r b880fa9b5d8a ChangeLog --- a/ChangeLog Thu Feb 03 16:30:38 2005 +0000 +++ b/ChangeLog Thu Feb 03 17:34:03 2005 +0000 @@ -1,3 +1,8 @@ +2005-02-03 Jerry James + + * configure.in: g++ 3.4.2 doesn't like -Wmissing-prototypes or + -Wstrict-prototypes. + 2005-01-31 Ben Wing * GETTING.GNU.SOFTWARE: Delete. diff -r 166ed8151e62 -r b880fa9b5d8a configure --- a/configure Thu Feb 03 16:30:38 2005 +0000 +++ b/configure Thu Feb 03 17:34:03 2005 +0000 @@ -2980,10 +2980,9 @@ elif test "$CC" = "xlc"; then cflags_warning="-qinfo" elif test "$GCC" = "yes"; then - cflags_warning="-Wall -Wno-switch -Wmissing-prototypes" + cflags_warning="-Wall -Wno-switch -Wundef" cflags_warning="$cflags_warning -Wsign-compare -Wno-char-subscripts" - cflags_warning="$cflags_warning -Wundef -Wstrict-prototypes" test "$__GCC3" = "yes" && cflags_warning="$cflags_warning -Wpacked" test "$have_glibc" != "yes" && \ cflags_warning="$cflags_warning -Wpointer-arith" @@ -2993,6 +2992,7 @@ xe_cflags_warning="$cflags_warning -Wunused-parameter" fi cflags_warning="$cflags_warning -Wshadow -Wmissing-declarations" + cflags_warning="$cflags_warning -Wmissing-prototypes -Wstrict-prototypes" elif test "$__ICC" = "yes"; then cflags_warning="-Wall -w1 -we147" fi @@ -4853,12 +4853,12 @@ #line 4854 "configure" #include "confdefs.h" #include -main() +int main() { FILE *f=fopen("conftestval", "w"); - if (!f) exit(1); + if (!f) return(1); fprintf(f, "%d\n", sizeof(short)); - exit(0); + return(0); } EOF if { (eval echo configure:4865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 @@ -4895,12 +4895,12 @@ #line 4896 "configure" #include "confdefs.h" #include -main() +int main() { FILE *f=fopen("conftestval", "w"); - if (!f) exit(1); + if (!f) return(1); fprintf(f, "%d\n", sizeof(int)); - exit(0); + return(0); } EOF if { (eval echo configure:4907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 @@ -4931,12 +4931,12 @@ #line 4932 "configure" #include "confdefs.h" #include -main() +int main() { FILE *f=fopen("conftestval", "w"); - if (!f) exit(1); + if (!f) return(1); fprintf(f, "%d\n", sizeof(long)); - exit(0); + return(0); } EOF if { (eval echo configure:4943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 @@ -4967,12 +4967,12 @@ #line 4968 "configure" #include "confdefs.h" #include -main() +int main() { FILE *f=fopen("conftestval", "w"); - if (!f) exit(1); + if (!f) return(1); fprintf(f, "%d\n", sizeof(long long)); - exit(0); + return(0); } EOF if { (eval echo configure:4979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 @@ -5003,12 +5003,12 @@ #line 5004 "configure" #include "confdefs.h" #include -main() +int main() { FILE *f=fopen("conftestval", "w"); - if (!f) exit(1); + if (!f) return(1); fprintf(f, "%d\n", sizeof(void *)); - exit(0); + return(0); } EOF if { (eval echo configure:5015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 @@ -5039,12 +5039,12 @@ #line 5040 "configure" #include "confdefs.h" #include -main() +int main() { FILE *f=fopen("conftestval", "w"); - if (!f) exit(1); + if (!f) return(1); fprintf(f, "%d\n", sizeof(double)); - exit(0); + return(0); } EOF if { (eval echo configure:5051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 diff -r 166ed8151e62 -r b880fa9b5d8a configure.in --- a/configure.in Thu Feb 03 16:30:38 2005 +0000 +++ b/configure.in Thu Feb 03 17:34:03 2005 +0000 @@ -2103,7 +2103,7 @@ elif test "$CC" = "xlc"; then cflags_warning="-qinfo" elif test "$GCC" = "yes"; then - cflags_warning="-Wall -Wno-switch -Wmissing-prototypes" + cflags_warning="-Wall -Wno-switch -Wundef" dnl This is not very useful, as it issues warnings that may appear dnl or disappear rather randomly, cannot easily be fixed, and are dnl not a big deal. If you want it, add it yourself. @@ -2113,7 +2113,6 @@ dnl Warnings about char subscripts are pretty pointless, though, dnl and we use them in various places. cflags_warning="$cflags_warning -Wsign-compare -Wno-char-subscripts" - cflags_warning="$cflags_warning -Wundef -Wstrict-prototypes" test "$__GCC3" = "yes" && cflags_warning="$cflags_warning -Wpacked" dnl glibc is intentionally not `-Wpointer-arith'-clean. dnl Ulrich Drepper has rejected patches to fix the glibc header files. @@ -2134,6 +2133,7 @@ xe_cflags_warning="$cflags_warning -Wunused-parameter" fi cflags_warning="$cflags_warning -Wshadow -Wmissing-declarations" + cflags_warning="$cflags_warning -Wmissing-prototypes -Wstrict-prototypes" dnl **** If more gcc/g++ flags are added, from here on must handle dnl **** cflags_warning and xe_cflags_warning in parallel elif test "$__ICC" = "yes"; then diff -r 166ed8151e62 -r b880fa9b5d8a lisp/ChangeLog --- a/lisp/ChangeLog Thu Feb 03 16:30:38 2005 +0000 +++ b/lisp/ChangeLog Thu Feb 03 17:34:03 2005 +0000 @@ -1,3 +1,8 @@ +2005-02-03 Jerry James + + * paragraphs.el: Require easy-mmode, due to its move in core. + * paragraphs.el (sentence-end): Fix a typo. + 2005-02-03 Ben Wing * regexp-opt.el: diff -r 166ed8151e62 -r b880fa9b5d8a lisp/paragraphs.el --- a/lisp/paragraphs.el Thu Feb 03 16:30:38 2005 +0000 +++ b/lisp/paragraphs.el Thu Feb 03 17:34:03 2005 +0000 @@ -37,6 +37,8 @@ ;;; Code: +(require 'easy-mmode) + (defgroup paragraphs nil "Paragraph and sentence parsing." :group 'editing) @@ -147,7 +149,7 @@ (defcustom sentence-end (purecopy ;; This is a bit stupid since it's not auto-updated when the - ;; other variables are changes, but it's still useful info. + ;; other variables are changed, but it's still useful info. (concat (if sentence-end-without-period "\\w \\|") "[.?!$B!#!%!)!*$A!##.#?#!$(0!$!%!)!*$(G!$!%!)!*(B][]\"')}]*" (if sentence-end-double-space diff -r 166ed8151e62 -r b880fa9b5d8a src/ChangeLog --- a/src/ChangeLog Thu Feb 03 16:30:38 2005 +0000 +++ b/src/ChangeLog Thu Feb 03 17:34:03 2005 +0000 @@ -1,3 +1,7 @@ +2005-02-03 Jerry James + + * dumper.c (pdump_load_finish): Cast to Rawbyte * instead of char *. + 2005-02-03 Jerry James * config.h.in: Remove #define this c_this. diff -r 166ed8151e62 -r b880fa9b5d8a src/dumper.c --- a/src/dumper.c Thu Feb 03 16:30:38 2005 +0000 +++ b/src/dumper.c Thu Feb 03 17:34:03 2005 +0000 @@ -1819,12 +1819,12 @@ p = pdump_start + header->stab_offset; /* Get the cv_data array */ - p = (char *) ALIGN_PTR (p, pdump_cv_data_dump_info); + p = (Rawbyte *) ALIGN_PTR (p, pdump_cv_data_dump_info); pdump_loaded_cv_data = (pdump_cv_data_dump_info *)p; p += header->nb_cv_data*sizeof(pdump_cv_data_dump_info); /* Build the cv_ptr array */ - p = (char *) ALIGN_PTR (p, pdump_cv_ptr_dump_info); + p = (Rawbyte *) ALIGN_PTR (p, pdump_cv_ptr_dump_info); pdump_loaded_cv_ptr = alloca_array (pdump_cv_ptr_load_info, header->nb_cv_ptr); for (i = 0; i < header->nb_cv_ptr; i++)