diff options
| author | Paul Eggert | 2013-02-12 10:33:42 -0800 |
|---|---|---|
| committer | Paul Eggert | 2013-02-12 10:33:42 -0800 |
| commit | 4458c2551b1a0bd89e5c299b009516e17f255c28 (patch) | |
| tree | 946043e6558b8017430849f58cbef3b714cbe069 /src | |
| parent | 65e7ca35a69003788134f8c961f561fe6f7a9720 (diff) | |
| download | emacs-4458c2551b1a0bd89e5c299b009516e17f255c28.tar.gz emacs-4458c2551b1a0bd89e5c299b009516e17f255c28.zip | |
* 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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 6 | ||||
| -rw-r--r-- | src/pre-crt0.c | 6 |
2 files changed, 9 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 8397e3d26ec..95e58e2d92c 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2013-02-12 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | * pre-crt0.c (data_start): Initialize to 1. | ||
| 4 | This ports to compilers that optimize the external declaration | ||
| 5 | 'int x = 0;' as if it were 'int x;' to shrink the executable. | ||
| 6 | |||
| 1 | 2013-02-11 Paul Eggert <eggert@cs.ucla.edu> | 7 | 2013-02-11 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 8 | ||
| 3 | Improve AIX port (Bug#13650). | 9 | Improve AIX port (Bug#13650). |
diff --git a/src/pre-crt0.c b/src/pre-crt0.c index ea5736eba2a..6b9618c8dc3 100644 --- a/src/pre-crt0.c +++ b/src/pre-crt0.c | |||
| @@ -4,7 +4,7 @@ | |||
| 4 | that make environ an initialized variable. However, we do | 4 | that make environ an initialized variable. However, we do |
| 5 | need to make sure the label data_start exists anyway. */ | 5 | need to make sure the label data_start exists anyway. */ |
| 6 | 6 | ||
| 7 | /* Create a label to appear at the beginning of data space. */ | 7 | /* Create a label to appear at the beginning of data space. |
| 8 | 8 | Its value is nonzero so that it cannot be put into bss. */ | |
| 9 | int data_start = 0; | ||
| 10 | 9 | ||
| 10 | int data_start = 1; | ||