aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog8
-rw-r--r--configure.ac7
-rw-r--r--lib/Makefile.am2
-rw-r--r--src/ChangeLog13
-rw-r--r--src/Makefile.in6
5 files changed, 32 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 9d4f0c82592..2dd796962d7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
12013-04-07 Paul Eggert <eggert@cs.ucla.edu>
2
3 Fix --enable-profiling bug introduced by 2013-02-25 change (Bug#13783).
4 * configure.ac (LD_SWITCH_SYSTEM_TEMACS): Append -pg if profiling
5 and if not on GNU/Linux or FreeBSD.
6 * lib/Makefile.am (AM_CFLAGS): Add $(PROFILING_CFLAGS), so that
7 lib/*.o is profiled too.
8
12013-03-30 Paul Eggert <eggert@cs.ucla.edu> 92013-03-30 Paul Eggert <eggert@cs.ucla.edu>
2 10
3 Merge from gnulib, incorporating: 11 Merge from gnulib, incorporating:
diff --git a/configure.ac b/configure.ac
index 0cff34b8a16..2d8c4c3473d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -4185,6 +4185,13 @@ case "$opsys" in
4185 *) LD_SWITCH_SYSTEM_TEMACS= ;; 4185 *) LD_SWITCH_SYSTEM_TEMACS= ;;
4186esac 4186esac
4187 4187
4188if test x$ac_enable_profiling != x ; then
4189 case $opsys in
4190 *freebsd | gnu-linux) ;;
4191 *) LD_SWITCH_SYSTEM_TEMACS="$LD_SWITCH_SYSTEM_TEMACS -pg" ;;
4192 esac
4193fi
4194
4188AC_SUBST(LD_SWITCH_SYSTEM_TEMACS) 4195AC_SUBST(LD_SWITCH_SYSTEM_TEMACS)
4189 4196
4190## Common for all window systems 4197## Common for all window systems
diff --git a/lib/Makefile.am b/lib/Makefile.am
index a341609e895..d8979a1cf74 100644
--- a/lib/Makefile.am
+++ b/lib/Makefile.am
@@ -4,7 +4,7 @@ MOSTLYCLEANDIRS =
4MOSTLYCLEANFILES = 4MOSTLYCLEANFILES =
5noinst_LIBRARIES = 5noinst_LIBRARIES =
6 6
7AM_CFLAGS = $(GNULIB_WARN_CFLAGS) $(WERROR_CFLAGS) 7AM_CFLAGS = $(PROFILING_CFLAGS) $(GNULIB_WARN_CFLAGS) $(WERROR_CFLAGS)
8DEFAULT_INCLUDES = -I. -I$(top_srcdir)/lib -I../src -I$(top_srcdir)/src 8DEFAULT_INCLUDES = -I. -I$(top_srcdir)/lib -I../src -I$(top_srcdir)/src
9 9
10include gnulib.mk 10include gnulib.mk
diff --git a/src/ChangeLog b/src/ChangeLog
index e39a104e135..75a7388f2c4 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,16 @@
12013-04-07 Paul Eggert <eggert@cs.ucla.edu>
2
3 Fix --enable-profiling bug introduced by 2013-02-25 change (Bug#13783).
4 This bug was introduced by my 2013-02-25 change that simplified
5 data_start configuration. Without this change, on GNU/Linux
6 an Emacs configured with --enable-profiling fails immediately
7 due to a profiler signal.
8 * Makefile.in: Compile with $(PROFILING_CFLAGS), but do not link
9 with these flags. On platforms where special flags are needed
10 when linking temacs, the flags are now in LD_SWITCH_SYSTEM_TEMACS.
11 (ALL_CFLAGS): Remove $(PROFILING_CFLAGS).
12 (.c.o, .m.o): Compile with $(PROFILING_CFLAGS).
13
12013-04-07 Dmitry Antipov <dmantipov@yandex.ru> 142013-04-07 Dmitry Antipov <dmantipov@yandex.ru>
2 15
3 Get rid of some platform-specific functions examining window 16 Get rid of some platform-specific functions examining window
diff --git a/src/Makefile.in b/src/Makefile.in
index 31de9714c65..c6a067a1ade 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -317,7 +317,7 @@ ALL_CFLAGS=-Demacs $(MYCPPFLAGS) -I. -I$(srcdir) \
317 $(GNUSTEP_CFLAGS) $(CFLAGS_SOUND) $(RSVG_CFLAGS) $(IMAGEMAGICK_CFLAGS) \ 317 $(GNUSTEP_CFLAGS) $(CFLAGS_SOUND) $(RSVG_CFLAGS) $(IMAGEMAGICK_CFLAGS) \
318 $(LIBXML2_CFLAGS) $(DBUS_CFLAGS) \ 318 $(LIBXML2_CFLAGS) $(DBUS_CFLAGS) \
319 $(SETTINGS_CFLAGS) $(FREETYPE_CFLAGS) $(FONTCONFIG_CFLAGS) \ 319 $(SETTINGS_CFLAGS) $(FREETYPE_CFLAGS) $(FONTCONFIG_CFLAGS) \
320 $(LIBOTF_CFLAGS) $(M17N_FLT_CFLAGS) $(DEPFLAGS) $(PROFILING_CFLAGS) \ 320 $(LIBOTF_CFLAGS) $(M17N_FLT_CFLAGS) $(DEPFLAGS) \
321 $(LIBGNUTLS_CFLAGS) \ 321 $(LIBGNUTLS_CFLAGS) \
322 $(WARN_CFLAGS) $(WERROR_CFLAGS) $(CFLAGS) 322 $(WARN_CFLAGS) $(WERROR_CFLAGS) $(CFLAGS)
323ALL_OBJC_CFLAGS=$(ALL_CFLAGS) $(GNU_OBJC_CFLAGS) 323ALL_OBJC_CFLAGS=$(ALL_CFLAGS) $(GNU_OBJC_CFLAGS)
@@ -325,10 +325,10 @@ ALL_OBJC_CFLAGS=$(ALL_CFLAGS) $(GNU_OBJC_CFLAGS)
325.SUFFIXES: .m 325.SUFFIXES: .m
326.c.o: 326.c.o:
327 @$(MKDEPDIR) 327 @$(MKDEPDIR)
328 $(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $< 328 $(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $(PROFILING_CFLAGS) $<
329.m.o: 329.m.o:
330 @$(MKDEPDIR) 330 @$(MKDEPDIR)
331 $(CC) -c $(CPPFLAGS) $(ALL_OBJC_CFLAGS) $< 331 $(CC) -c $(CPPFLAGS) $(ALL_OBJC_CFLAGS) $(PROFILING_CFLAGS) $<
332 332
333## lastfile must follow all files whose initialized data areas should 333## lastfile must follow all files whose initialized data areas should
334## be dumped as pure by dump-emacs. 334## be dumped as pure by dump-emacs.