This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/52334] The user of "zero" register is wrong
- From: "cslhc at qq dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 22 Feb 2012 06:52:12 +0000
- Subject: [Bug middle-end/52334] The user of "zero" register is wrong
- Auto-submitted: auto-generated
- References: <bug-52334-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52334
--- Comment #2 from haichang417 <cslhc at qq dot com> 2012-02-22 06:52:12 UTC ---
(In reply to comment #1)
> First can you provide the preprocessed source? Second can you try with a newer
> version of GCC like maybe 4.4.6? Third can you describe why you think the
> assembly that GCC produces is wrong.
Thank you for your reply. I'm sorry I can't provide the preprocessed
code.Because I used 3.2.1 version of cross-compiler(MIPS target)ïand it is very
difficult to create a new version of the cross-compiler.
In test_function(), I declared a structure(_Struct_PST_ID *pstid =
NULL),and point to NULL. In _find_port( g_pstv->member.pstid, index,
(void*)&pstid) function , the empty structure point to a new address of
structure.But I found the address of pointer is still 0. When I view the
Assembly code, found that the above error. The above error will not appear when
I use 3.2.1 version,So I think the assembly that GCC 4.3.2 produces is wrong.