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: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 24 Jan 2011 21:21:59 +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
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|critical |normal
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> 2011-01-24 21:21:57 UTC ---
You are invoking undefined behavior here.
I cannot get your example to compile:
t.c: In function âTest1â:
t.c:4: error: declaration for parameter âsSpidâ but no such parameter
t.c:8: warning: incompatible implicit declaration of built-in function âprintfâ
t.c: In function âTest2â:
t.c:14: error: declaration for parameter âsSpidâ but no such parameter
t.c:19: warning: incompatible implicit declaration of built-in function
âprintfâ