This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/47438] function arguments memory alignment problem.
- From: "dbms007 at hanmail dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 25 Jan 2011 11:28:54 +0000
- Subject: [Bug c/47438] function arguments memory alignment problem.
- Auto-submitted: auto-generated
- References: <bug-47438-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47438
--- Comment #4 from doh-hyun koh <dbms007 at hanmail dot net> 2011-01-25 11:28:51 UTC ---
#include <stdio.h>
int Test1(tranNo, name, path, sSpId, spId, spPg, type, size, parm)
long tranNo;
char* name, *path;
short sSpId, spId, spPg, type;
long size;
char* parm;
{
printf("----------- size : %ld\n", size);
}
int Test2(tranNo, name, path, sSpId, spId, spPg, size, type, parm)
long tranNo;
char* name, *path;
short sSpId, spId, spPg;
long size;
short type;
char* parm;
{
printf("----------- size : %ld\n", size);
}
main()
{
int xx = 7974288;
Test1(xx);
Test2(xx);
}
compiler option
gcc -O -m64 test.c
Would u please try again ?