Changes between Version 7 and Version 11 of Ticket #1443


Ignore:
Timestamp:
02/18/15 14:37:38 (9 years ago)
Author:
Sebastian Huber
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #1443

    • Property Owner Eric Norum deleted
  • Ticket #1443 – Description

    v7 v11  
    11I had built with optimization off for debugging.  Without optimization the in_cksum() in rtems/cpukit/libnetworking/netinet/in_cksum_powerpc.h is returning 1.  With -O2 in effect it is returning 0.
     2
    23I put a breakpoint after the call to in_cksum() (tcp_input.c:320) with the only change recompiling tcp_input.c with and without optimization.
     4
    35Checksum with tcp_input.c compiled with -O2:
    46(gdb) print ti->ti_t.th_sum
    57$1 = 0x0
    68(gdb)
     9
    710Checksum with tcp_input.c compiled without any optimization:
    811(gdb) print ti->ti_t.th_sum
    912$1 = 0x1
    1013(gdb)
     14
    1115This is for the MPC5554, with the same compilation flags as for the MPC55xxevb.  Here is what the compilation line is for in_cksum.c and tcp_input.c (with -O2 taken out and I added -DDEBUG=1):
     16
    1217powerpc-rtems4.10-gcc --pipe -DHAVE_CONFIG_H   -I.. -I../../cpukit/../../../mpc5554som/lib/include -I../../../../../../rtems-4.9.99.0/c/src/../../cpukit/libnetworking -DINET -DNFS -DDIAGNOSTIC -DBOOTP_COMPAT -D_KERNEL -D__BSD_VISIBLE  -Wall -Wimplicit-function-declaration -Wstrict-prototypes -Wnested-externs -fasm -mcpu=8540 -meabi -msdata -fno-common -msoft-float -DDEBUG=1 -D__ppc_generic -mstrict-align -g -fno-keep-inline-functions -MT netinet/libnetworking_a-in_cksum.o -MD -MP -MF netinet/.deps/libnetworking_a-in_cksum.Tpo -c -o netinet/libnetworking_a-in_cksum.o `test -f 'netinet/in_cksum.c' || echo '../../../../../../rtems-4.9.99.0/c/src/../../cpukit/libnetworking/'`netinet/in_cksum.c
     18
    1319powerpc-rtems4.10-gcc --pipe -DHAVE_CONFIG_H   -I.. -I../../cpukit/../../../mpc5554som/lib/include -I../../../../../../rtems-4.9.99.0/c/src/../../cpukit/libnetworking -DINET -DNFS -DDIAGNOSTIC -DBOOTP_COMPAT -D_KERNEL -D__BSD_VISIBLE  -Wall -Wimplicit-function-declaration -Wstrict-prototypes -Wnested-externs -fasm -mcpu=8540 -meabi -msdata -fno-common -msoft-float -DDEBUG=1 -D__ppc_generic -mstrict-align -g -fno-keep-inline-functions -MT netinet/libnetworking_a-tcp_input.o -MD -MP -MF netinet/.deps/libnetworking_a-tcp_input.Tpo -c -o netinet/libnetworking_a-tcp_input.o `test -f 'netinet/tcp_input.c' || echo '../../../../../../rtems-4.9.99.0/c/src/../../cpukit/libnetworking/'`netinet/tcp_input.c