aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDan Nicolaescu2010-03-29 19:47:23 -0700
committerDan Nicolaescu2010-03-29 19:47:23 -0700
commit32a8894e5b88564765dc67955751f75d2c9dabcf (patch)
treeec2df6853c265bcba382c88bf648edd4663b81f7 /src
parent146b8b16f39466c12bd21f41b9029abdea4fbe0a (diff)
downloademacs-32a8894e5b88564765dc67955751f75d2c9dabcf.tar.gz
emacs-32a8894e5b88564765dc67955751f75d2c9dabcf.zip
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. * configure.in: Remove all references to C_DEBUG_SWITCH.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog15
-rw-r--r--src/Makefile.in7
-rw-r--r--src/m/hp800.h2
-rw-r--r--src/m/iris4d.h2
-rw-r--r--src/s/aix4-2.h14
-rw-r--r--src/s/bsd-common.h2
-rw-r--r--src/s/darwin.h3
-rw-r--r--src/s/gnu-linux.h9
-rw-r--r--src/s/irix6-5.h13
-rw-r--r--src/s/sol2-6.h5
-rw-r--r--src/s/usg5-4.h4
11 files changed, 16 insertions, 60 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 7aae2a3754f..8fd89e9fd0c 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,18 @@
12010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
2
3 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
4 * s/usg5-4.h (LIBS_DEBUG):
5 * s/irix6-5.h (C_DEBUG_SWITCH):
6 * s/gnu-linux.h (LIBS_DEBUG):
7 * s/darwin.h (LIBS_DEBUG):
8 * s/bsd-common.h (LIBS_DEBUG):
9 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
10 * m/iris4d.h (LIBS_DEBUG):
11 * m/hp800.h (LIBS_DEBUG): Remove definitions.
12
13 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
14 (LIBS_DEBUG): Remove definition.
15
12010-03-27 Chong Yidong <cyd@stupidchicken.com> 162010-03-27 Chong Yidong <cyd@stupidchicken.com>
2 17
3 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for 18 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
diff --git a/src/Makefile.in b/src/Makefile.in
index d8661bc0be6..1730158f732 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -127,11 +127,6 @@ DEPFLAGS = -MMD -MF deps/$*.d
127#define LIB_STANDARD 127#define LIB_STANDARD
128#endif 128#endif
129 129
130/* Unless inhibited or changed, use -lg to link for debugging. */
131#ifndef LIBS_DEBUG
132#define LIBS_DEBUG -lg
133#endif
134
135/* Some s/SYSTEM.h files define this to request special libraries. */ 130/* Some s/SYSTEM.h files define this to request special libraries. */
136#ifndef LIBS_SYSTEM 131#ifndef LIBS_SYSTEM
137#define LIBS_SYSTEM 132#define LIBS_SYSTEM
@@ -850,7 +845,7 @@ SOME_MACHINE_LISP = ../lisp/mouse.elc \
850 845
851LIBES = $(LOADLIBES) $(LIBS) $(LIBX) $(LIBSOUND) $(RSVG_LIBS) $(DBUS_LIBS) \ 846LIBES = $(LOADLIBES) $(LIBS) $(LIBX) $(LIBSOUND) $(RSVG_LIBS) $(DBUS_LIBS) \
852 @LIBGPM@ @LIBRESOLV@ LIBS_SYSTEM LIBS_MACHINE LIBS_TERMCAP \ 847 @LIBGPM@ @LIBRESOLV@ LIBS_SYSTEM LIBS_MACHINE LIBS_TERMCAP \
853 LIBS_DEBUG $(GETLOADAVG_LIBS) ${GCONF_LIBS} \ 848 $(GETLOADAVG_LIBS) ${GCONF_LIBS} \
854 @FREETYPE_LIBS@ @FONTCONFIG_LIBS@ @LIBOTF_LIBS@ @M17N_FLT_LIBS@ \ 849 @FREETYPE_LIBS@ @FONTCONFIG_LIBS@ @LIBOTF_LIBS@ @M17N_FLT_LIBS@ \
855 $(GNULIB_VAR) LIB_MATH LIB_STANDARD $(GNULIB_VAR) 850 $(GNULIB_VAR) LIB_MATH LIB_STANDARD $(GNULIB_VAR)
856 851
diff --git a/src/m/hp800.h b/src/m/hp800.h
index 8acec110272..bf684a871a9 100644
--- a/src/m/hp800.h
+++ b/src/m/hp800.h
@@ -93,8 +93,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
93 93
94#define UNEXEC unexhp9k800.o 94#define UNEXEC unexhp9k800.o
95 95
96#define LIBS_DEBUG
97
98/* Include the file bsdtty.h, since this machine has job control. */ 96/* Include the file bsdtty.h, since this machine has job control. */
99#define NEED_BSDTTY 97#define NEED_BSDTTY
100 98
diff --git a/src/m/iris4d.h b/src/m/iris4d.h
index 06bffceb64c..794227977be 100644
--- a/src/m/iris4d.h
+++ b/src/m/iris4d.h
@@ -53,8 +53,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
53#define DATA_START 0x10000000 53#define DATA_START 0x10000000
54#define DATA_SEG_BITS 0x10000000 54#define DATA_SEG_BITS 0x10000000
55 55
56#define LIBS_DEBUG
57
58/* Use terminfo instead of termcap. */ 56/* Use terminfo instead of termcap. */
59 57
60#define TERMINFO 58#define TERMINFO
diff --git a/src/s/aix4-2.h b/src/s/aix4-2.h
index 93869db6bca..32bc67bfd46 100644
--- a/src/s/aix4-2.h
+++ b/src/s/aix4-2.h
@@ -87,10 +87,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
87#define LINKER cc 87#define LINKER cc
88#endif 88#endif
89 89
90/* Prevent -lg from being used for debugging. Not needed. */
91
92#define LIBS_DEBUG
93
94/* No need to specify -lc when linking. */ 90/* No need to specify -lc when linking. */
95 91
96#define LIB_STANDARD 92#define LIB_STANDARD
@@ -130,16 +126,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
130 It is just a guess which versions of AIX need this definition. */ 126 It is just a guess which versions of AIX need this definition. */
131#undef HAVE_STRING_H 127#undef HAVE_STRING_H
132 128
133/* For AIX, it turns out compiling emacs under AIX 3.2.4 REQUIRES "cc -g"
134 because "cc -O" crashes. Under AIX 3.2.5, "cc -O" is required because
135 "cc -g" crashes. Go figure. --floppy@merlin.mit.edu */
136/* The above isn't generally true. If it occurs with some compiler
137 release, seek a fixed version, be it XLC or GCC. The XLC version
138 isn't tied to the OS version on AIX any more than elsewhere. XLC
139 (the IBM compiler) can use -g with -O. (-O3 is also a possibility
140 for the optimization level.) -- fx, after David Edelsohn. */
141#define C_DEBUG_SWITCH -g -O
142
143/* Perry Smith <pedz@ddivt1.austin.ibm.com> says these are correct. */ 129/* Perry Smith <pedz@ddivt1.austin.ibm.com> says these are correct. */
144#define SIGNALS_VIA_CHARACTERS 130#define SIGNALS_VIA_CHARACTERS
145#define MAIL_USE_LOCKF 131#define MAIL_USE_LOCKF
diff --git a/src/s/bsd-common.h b/src/s/bsd-common.h
index 2ef0883b2a7..9dad7a9b1d9 100644
--- a/src/s/bsd-common.h
+++ b/src/s/bsd-common.h
@@ -46,8 +46,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
46#define HAVE_TERMIOS 46#define HAVE_TERMIOS
47#define NO_TERMIO 47#define NO_TERMIO
48 48
49#define LIBS_DEBUG
50
51#define SYSV_SYSTEM_DIR 49#define SYSV_SYSTEM_DIR
52 50
53/* POSIX-style pgrp behavior. */ 51/* POSIX-style pgrp behavior. */
diff --git a/src/s/darwin.h b/src/s/darwin.h
index b9062ec8000..8813127ffce 100644
--- a/src/s/darwin.h
+++ b/src/s/darwin.h
@@ -189,9 +189,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
189/* Link this program just by running cc. */ 189/* Link this program just by running cc. */
190#define ORDINARY_LINK 190#define ORDINARY_LINK
191 191
192/* We don't have a g library, so override the -lg LIBS_DEBUG switch. */
193#define LIBS_DEBUG
194
195/* Adding -lm confuses the dynamic linker, so omit it. */ 192/* Adding -lm confuses the dynamic linker, so omit it. */
196#define LIB_MATH 193#define LIB_MATH
197 194
diff --git a/src/s/gnu-linux.h b/src/s/gnu-linux.h
index 0c198de26d8..b9139435f61 100644
--- a/src/s/gnu-linux.h
+++ b/src/s/gnu-linux.h
@@ -194,19 +194,10 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
194#define POSIX /* affects getpagesize.h and systty.h */ 194#define POSIX /* affects getpagesize.h and systty.h */
195#define POSIX_SIGNALS 195#define POSIX_SIGNALS
196 196
197/* Best not to include -lg, unless it is last on the command line */
198#define LIBS_DEBUG
199#undef LIB_GCC 197#undef LIB_GCC
200#define LIB_GCC 198#define LIB_GCC
201#define LIB_STANDARD -lgcc -lc -lgcc /usr/lib/crtn.o 199#define LIB_STANDARD -lgcc -lc -lgcc /usr/lib/crtn.o
202 200
203/* Don't use -g in test compiles in configure.
204 This is so we will use the same shared libs for that linking
205 that are used when linking temacs. */
206#ifdef THIS_IS_CONFIGURE
207#define C_DEBUG_SWITCH
208#endif
209
210/* _BSD_SOURCE is redundant, at least in glibc2, since we define 201/* _BSD_SOURCE is redundant, at least in glibc2, since we define
211 _GNU_SOURCE. Left in in case it's relevant to libc5 systems and 202 _GNU_SOURCE. Left in in case it's relevant to libc5 systems and
212 anyone's still using Emacs on those. --fx 2002-12-14 */ 203 anyone's still using Emacs on those. --fx 2002-12-14 */
diff --git a/src/s/irix6-5.h b/src/s/irix6-5.h
index abd87b4aa2a..8696aa00fdd 100644
--- a/src/s/irix6-5.h
+++ b/src/s/irix6-5.h
@@ -101,19 +101,6 @@ char *_getpty();
101#define _LP64 /* lisp.h takes care of the rest */ 101#define _LP64 /* lisp.h takes care of the rest */
102#endif /* _MIPS_SZLONG */ 102#endif /* _MIPS_SZLONG */
103 103
104/* The only supported 32-bit configuration of GCC under IRIX6.x produces
105 n32 MIPS ABI binaries and also supports -g. */
106#ifdef __GNUC__
107#define C_DEBUG_SWITCH -g
108#else
109/* Optimize, inaccurate debugging, increase limit on size of what's
110 optimized.
111
112 This should also be applicable other than on Irix 6.5, but I don't
113 know for which compiler versions. -- fx */
114#define C_DEBUG_SWITCH -g3 -O -OPT:Olimit=3500
115#endif
116
117#undef SA_RESTART 104#undef SA_RESTART
118 105
119#undef TIOCSIGSEND /* defined in usg5-4.h */ 106#undef TIOCSIGSEND /* defined in usg5-4.h */
diff --git a/src/s/sol2-6.h b/src/s/sol2-6.h
index 8cd01511879..408a0a2ed02 100644
--- a/src/s/sol2-6.h
+++ b/src/s/sol2-6.h
@@ -48,11 +48,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
48#define LIBS_TERMCAP -ltermcap 48#define LIBS_TERMCAP -ltermcap
49#endif 49#endif
50 50
51#ifndef __GNUC__
52/* eggert thinks all versions of SunPro C allowed this. */
53#define C_DEBUG_SWITCH -g -O
54#endif /* GCC */
55
56/* This is the same definition as in usg5-4.h, but with sigblock/sigunblock 51/* This is the same definition as in usg5-4.h, but with sigblock/sigunblock
57 rather than sighold/sigrelse, which appear to be BSD4.1 specific and won't 52 rather than sighold/sigrelse, which appear to be BSD4.1 specific and won't
58 work if POSIX_SIGNALS is defined. It may also be appropriate for SVR4.x 53 work if POSIX_SIGNALS is defined. It may also be appropriate for SVR4.x
diff --git a/src/s/usg5-4.h b/src/s/usg5-4.h
index 180045cb7cf..b02caf9a3da 100644
--- a/src/s/usg5-4.h
+++ b/src/s/usg5-4.h
@@ -103,10 +103,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
103 103
104#define LIB_STANDARD 104#define LIB_STANDARD
105 105
106/* there are no -lg libraries on this system, and no libPW */
107
108#define LIBS_DEBUG
109
110/* Undump with ELF */ 106/* Undump with ELF */
111 107
112#undef COFF 108#undef COFF