Question about the order global declarations are output
Jim Wilson
wilson@specifixinc.com
Fri May 14 01:28:00 GMT 2004
Mike Lerwill wrote:
Global objects are output into the assembly in reverse order compared to
where they appear in the source file. Can someone explain why this is done.
We need a proper bug report. A testcase, a configure target, compiler
options, gcc version, etc. See
http://gcc.gnu.org/bugs.html
for info on how to report bugs.
I can't reproduce this using current mainline gcc sources, configured
for x86-linux, using the following two testcases, compiled with -O -S.
Testcase 1:
int i;
int j;
int k;
Testcase 2:
int i = 0;
int j = 1;
int k = 2;
--
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com
More information about the Gcc
mailing list