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

Reply via email to