emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/emacs-24 r111251: * pre-crt0.c (data_start)


From: Paul Eggert
Subject: [Emacs-diffs] /srv/bzr/emacs/emacs-24 r111251: * pre-crt0.c (data_start): Initialize to 1.
Date: Tue, 12 Feb 2013 10:33:42 -0800
User-agent: Bazaar (2.5.0)

------------------------------------------------------------
revno: 111251
committer: Paul Eggert <address@hidden>
branch nick: emacs-24
timestamp: Tue 2013-02-12 10:33:42 -0800
message:
  * pre-crt0.c (data_start): Initialize to 1.
  
  This ports to compilers that optimize the external declaration
  'int x = 0;' as if it were 'int x;' to shrink the executable.
modified:
  src/ChangeLog
  src/pre-crt0.c
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2013-02-11 20:32:54 +0000
+++ b/src/ChangeLog     2013-02-12 18:33:42 +0000
@@ -1,3 +1,9 @@
+2013-02-12  Paul Eggert  <address@hidden>
+
+       * pre-crt0.c (data_start): Initialize to 1.
+       This ports to compilers that optimize the external declaration
+       'int x = 0;' as if it were 'int x;' to shrink the executable.
+
 2013-02-11  Paul Eggert  <address@hidden>
 
        Improve AIX port (Bug#13650).

=== modified file 'src/pre-crt0.c'
--- a/src/pre-crt0.c    2011-01-15 23:16:57 +0000
+++ b/src/pre-crt0.c    2013-02-12 18:33:42 +0000
@@ -4,7 +4,7 @@
    that make environ an initialized variable.  However, we do
    need to make sure the label data_start exists anyway.  */
 
-/* Create a label to appear at the beginning of data space.  */
-
-int data_start = 0;
-
+/* Create a label to appear at the beginning of data space.
+   Its value is nonzero so that it cannot be put into bss.  */
+
+int data_start = 1;


reply via email to

[Prev in Thread] Current Thread [Next in Thread]