This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/40782] New: Code works with optimization disabled.. but not with 02 for when used as cross compiler for ARM 11 MP
- From: "mahendra dot sp at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Jul 2009 06:55:34 -0000
- Subject: [Bug c/40782] New: Code works with optimization disabled.. but not with 02 for when used as cross compiler for ARM 11 MP
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
We are building c code with compiler optimization. We are using GCC 4.1.2 as
cross compiler for ARM 11 MP core. Here is description of the problem as I can
not share the actual code due to licensing issues
function A -> function B. Function A calls B with a pointer as an argument.
When a function is called with pointer as an argument, after the return, the
address is getting modified. If I print the pointer in the function B, it is
correct. Note that the address is passed as a value.
Is there any known issue ? I couldn't find any in the data base.
--
Summary: Code works with optimization disabled.. but not with 02
for when used as cross compiler for ARM 11 MP
Product: gcc
Version: 4.1.2
Status: UNCONFIRMED
Severity: major
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: mahendra dot sp at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40782