]> git.eshelyaron.com Git - emacs.git/commitdiff
Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
authorDan Nicolaescu <dann@ics.uci.edu>
Tue, 30 Mar 2010 02:47:23 +0000 (19:47 -0700)
committerDan Nicolaescu <dann@ics.uci.edu>
Tue, 30 Mar 2010 02:47:23 +0000 (19:47 -0700)
* s/usg5-4.h (LIBS_DEBUG):
* s/irix6-5.h (C_DEBUG_SWITCH):
* s/gnu-linux.h (LIBS_DEBUG):
* s/darwin.h (LIBS_DEBUG):
* s/bsd-common.h (LIBS_DEBUG):
* s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
* m/iris4d.h (LIBS_DEBUG):
* m/hp800.h (LIBS_DEBUG): Remove definitions.

* Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
(LIBS_DEBUG): Remove definition.

* configure.in: Remove all references to C_DEBUG_SWITCH.

14 files changed:
ChangeLog
admin/CPP-DEFINES
configure.in
src/ChangeLog
src/Makefile.in
src/m/hp800.h
src/m/iris4d.h
src/s/aix4-2.h
src/s/bsd-common.h
src/s/darwin.h
src/s/gnu-linux.h
src/s/irix6-5.h
src/s/sol2-6.h
src/s/usg5-4.h

index 26a38fedcfa2e4a23b18b2be0b9e37247472a179..d8c440355a89dc0094c8db01d42483431ba1a2be 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2010-03-30  Dan Nicolaescu  <dann@ics.uci.edu>
+
+       * configure.in: Remove all references to C_DEBUG_SWITCH.
+
 2010-03-27  Eli Zaretskii  <eliz@gnu.org>
 
        * config.bat <lib-src>: Edit out lines that begin with several #
index 7ab0c3f52a4d252b76d3853c88e90bf5c1b0ea99..caf05a88ce51ade728fea0d9a47c3d7bfe4760c7 100644 (file)
@@ -106,7 +106,6 @@ BSD_SYSTEM
 CLASH_DETECTION
 COFF_BSD_SYMBOLS
 CRT0_DUMMIES
-C_DEBUG_SWITCH
 C_SWITCH_MACHINE
 C_SWITCH_SYSTEM
 C_SWITCH_SYSTEM_TEMACS
@@ -234,7 +233,6 @@ LD_SWITCH_SYSTEM
 LD_SWITCH_SYSTEM_TEMACS
 LD_SWITCH_SYSTEM_tmp
 LD_SWITCH_X_DEFAULT
-LIBS_DEBUG
 LIBS_MACHINE
 LIBS_SYSTEM
 LIBS_TERMCAP
index 2a3ac32fd851c4b029a66ce65ce7c4dc46b9cc3d..fc7c0a93235d949b5c9516c1843d5cc0f5c77e0b 100644 (file)
@@ -888,10 +888,6 @@ configure___ use_mmap_for_buffers=yes
 configure___ use_mmap_for_buffers=no
 #endif
 
-#ifndef C_DEBUG_SWITCH
-#define C_DEBUG_SWITCH -g
-#endif
-
 #ifndef C_OPTIMIZE_SWITCH
 #ifdef __GNUC__
 #define C_OPTIMIZE_SWITCH -O2
@@ -923,18 +919,18 @@ configure___ ld_switch_machine=LD_SWITCH_MACHINE
 
 /* Get the CFLAGS for tests in configure.  */
 #ifdef __GNUC__
-configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
+configure___ CFLAGS=C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
 #else
-configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
+configure___ CFLAGS='${SPECIFIED_CFLAGS}'
 #endif
 
 #else /* not THIS_IS_CONFIGURE */
 
 /* Get the CFLAGS for real compilation.  */
 #ifdef __GNUC__
-configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH ${PROFILING_CFLAGS} '${SPECIFIED_CFLAGS}'
+configure___ REAL_CFLAGS=C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH ${PROFILING_CFLAGS} '${SPECIFIED_CFLAGS}'
 #else
-configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
+configure___ REAL_CFLAGS='${SPECIFIED_CFLAGS}'
 #endif
 
 #endif /* not THIS_IS_CONFIGURE */
index 7aae2a3754f45d8ec32bd16120a8b93988a7e82f..8fd89e9fd0c01d05a292d978e457f9b31114d417 100644 (file)
@@ -1,3 +1,18 @@
+2010-03-30  Dan Nicolaescu  <dann@ics.uci.edu>
+
+       Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
+       * s/usg5-4.h (LIBS_DEBUG):
+       * s/irix6-5.h (C_DEBUG_SWITCH):
+       * s/gnu-linux.h (LIBS_DEBUG):
+       * s/darwin.h (LIBS_DEBUG):
+       * s/bsd-common.h (LIBS_DEBUG):
+       * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
+       * m/iris4d.h (LIBS_DEBUG):
+       * m/hp800.h (LIBS_DEBUG): Remove definitions.
+
+       * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
+       (LIBS_DEBUG): Remove definition.
+
 2010-03-27  Chong Yidong  <cyd@stupidchicken.com>
 
        * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
index d8661bc0be6300290a9cb433385da60a48af2db3..1730158f7321bc16cc1ba1f2bda2226eef720a5d 100644 (file)
@@ -127,11 +127,6 @@ DEPFLAGS = -MMD -MF deps/$*.d
 #define LIB_STANDARD
 #endif
 
-/* Unless inhibited or changed, use -lg to link for debugging.  */
-#ifndef LIBS_DEBUG
-#define LIBS_DEBUG -lg
-#endif
-
 /* Some s/SYSTEM.h files define this to request special libraries.  */
 #ifndef LIBS_SYSTEM
 #define LIBS_SYSTEM
@@ -850,7 +845,7 @@ SOME_MACHINE_LISP = ../lisp/mouse.elc \
 
 LIBES = $(LOADLIBES) $(LIBS) $(LIBX) $(LIBSOUND) $(RSVG_LIBS) $(DBUS_LIBS) \
    @LIBGPM@ @LIBRESOLV@ LIBS_SYSTEM LIBS_MACHINE LIBS_TERMCAP \
-   LIBS_DEBUG $(GETLOADAVG_LIBS) ${GCONF_LIBS} \
+   $(GETLOADAVG_LIBS) ${GCONF_LIBS} \
    @FREETYPE_LIBS@ @FONTCONFIG_LIBS@ @LIBOTF_LIBS@ @M17N_FLT_LIBS@ \
    $(GNULIB_VAR) LIB_MATH LIB_STANDARD $(GNULIB_VAR)
 
index 8acec1102720d35ad7dae929750781aeb17bb954..bf684a871a9a50da0288456c3228973bffc1dc37 100644 (file)
@@ -93,8 +93,6 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
 
 #define UNEXEC unexhp9k800.o
 
-#define LIBS_DEBUG
-
 /* Include the file bsdtty.h, since this machine has job control.  */
 #define NEED_BSDTTY
 
index 06bffceb64ce93323c12c33147738481d013e0a3..794227977be7953960c5e358a47083a9a1f3c37e 100644 (file)
@@ -53,8 +53,6 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
 #define DATA_START 0x10000000
 #define DATA_SEG_BITS  0x10000000
 
-#define LIBS_DEBUG
-\f
 /* Use terminfo instead of termcap.  */
 
 #define TERMINFO
index 93869db6bca66cb42972829f6cc29e6208da6221..32bc67bfd46c27b6fb006b28e0cdfacbf7c4fb52 100644 (file)
@@ -87,10 +87,6 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
 #define LINKER cc
 #endif
 
-/* Prevent -lg from being used for debugging.  Not needed.  */
-
-#define LIBS_DEBUG
-
 /* No need to specify -lc when linking.  */
 
 #define LIB_STANDARD
@@ -130,16 +126,6 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
    It is just a guess which versions of AIX need this definition.  */
 #undef HAVE_STRING_H
 
-/* For AIX, it turns out compiling emacs under AIX 3.2.4 REQUIRES "cc -g"
-   because "cc -O" crashes. Under AIX 3.2.5, "cc -O" is required because
-   "cc -g" crashes. Go figure.  --floppy@merlin.mit.edu */
-/* The above isn't generally true.  If it occurs with some compiler
-   release, seek a fixed version, be it XLC or GCC.  The XLC version
-   isn't tied to the OS version on AIX any more than elsewhere.  XLC
-   (the IBM compiler) can use -g with -O.  (-O3 is also a possibility
-   for the optimization level.)  -- fx, after David Edelsohn.  */
-#define C_DEBUG_SWITCH -g -O
-
 /* Perry Smith <pedz@ddivt1.austin.ibm.com> says these are correct.  */
 #define SIGNALS_VIA_CHARACTERS
 #define MAIL_USE_LOCKF
index 2ef0883b2a7f6b6a84a10208e790d49148b5eac7..9dad7a9b1d93d001aaedb54cd9133c841f1237fb 100644 (file)
@@ -46,8 +46,6 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
 #define HAVE_TERMIOS
 #define NO_TERMIO
 
-#define LIBS_DEBUG
-
 #define SYSV_SYSTEM_DIR
 
 /* POSIX-style pgrp behavior.  */
index b9062ec80007745c41e4d882473e1a54f7032165..8813127ffce63387270346a0ad58c03f0112d365 100644 (file)
@@ -189,9 +189,6 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
 /* Link this program just by running cc.  */
 #define ORDINARY_LINK
 
-/* We don't have a g library, so override the -lg LIBS_DEBUG switch.  */
-#define LIBS_DEBUG
-
 /* Adding -lm confuses the dynamic linker, so omit it.  */
 #define LIB_MATH
 
index 0c198de26d8844ab441d56adcafdb65388aa4ad8..b9139435f6138a0b10a9e96fbd14a12ade251b60 100644 (file)
@@ -194,19 +194,10 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
 #define POSIX                 /* affects getpagesize.h and systty.h */
 #define POSIX_SIGNALS
 
-/* Best not to include -lg, unless it is last on the command line */
-#define LIBS_DEBUG
 #undef LIB_GCC
 #define LIB_GCC
 #define LIB_STANDARD -lgcc -lc -lgcc /usr/lib/crtn.o
 
-/* Don't use -g in test compiles in configure.
-   This is so we will use the same shared libs for that linking
-   that are used when linking temacs.  */
-#ifdef THIS_IS_CONFIGURE
-#define C_DEBUG_SWITCH
-#endif
-
 /* _BSD_SOURCE is redundant, at least in glibc2, since we define
    _GNU_SOURCE.  Left in in case it's relevant to libc5 systems and
    anyone's still using Emacs on those.  --fx 2002-12-14  */
index abd87b4aa2a40af7e951626abd480c087143acd5..8696aa00fddbae4d1b5fdcb938c0851abbc54d1f 100644 (file)
@@ -101,19 +101,6 @@ char *_getpty();
 #define _LP64                  /* lisp.h takes care of the rest */
 #endif /* _MIPS_SZLONG */
 
-/* The only supported 32-bit configuration of GCC under IRIX6.x produces
-   n32 MIPS ABI binaries and also supports -g. */
-#ifdef __GNUC__
-#define C_DEBUG_SWITCH -g
-#else
-/* Optimize, inaccurate debugging, increase limit on size of what's
-   optimized.
-
-   This should also be applicable other than on Irix 6.5, but I don't
-   know for which compiler versions.  -- fx */
-#define C_DEBUG_SWITCH -g3 -O -OPT:Olimit=3500
-#endif
-
 #undef SA_RESTART
 
 #undef TIOCSIGSEND             /* defined in usg5-4.h */
index 8cd015118795956d557c94b201bf6b91546436c5..408a0a2ed0247ec94cfc303435201ccccf44966e 100644 (file)
@@ -48,11 +48,6 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
 #define LIBS_TERMCAP -ltermcap
 #endif
 
-#ifndef __GNUC__
-/* eggert thinks all versions of SunPro C allowed this.  */
-#define C_DEBUG_SWITCH -g -O
-#endif /* GCC */
-
 /* This is the same definition as in usg5-4.h, but with sigblock/sigunblock
    rather than sighold/sigrelse, which appear to be BSD4.1 specific and won't
    work if POSIX_SIGNALS is defined.  It may also be appropriate for SVR4.x
index 180045cb7cfa86ee87c76e647fb828bf155a07dd..b02caf9a3da3699ecf2dc74d24aa8c6cf6cb6831 100644 (file)
@@ -103,10 +103,6 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
 
 #define LIB_STANDARD
 
-/* there are no -lg libraries on this system, and no libPW */
-
-#define LIBS_DEBUG
-
 /* Undump with ELF */
 
 #undef COFF