[Bug target/26721] New: [4.2 Regression]: Gcc generates unaligned access

hjl at lucon dot org gcc-bugzilla@gcc.gnu.org
Thu Mar 16 18:41:00 GMT 2006


With gcc version 4.2.0 20060316 (experimental) [trunk revision 112138 clean],
I got

lt-gcj-dbtool(10892): unaligned access to 0x60000fffffff9d63,
ip=0x20000000017a02e0
lt-gcj-dbtool(10892): unaligned access to 0x60000fffffff9d6b,
ip=0x20000000017a0301
lt-gcj-dbtool(10892): unaligned access to 0x60000fffffff9d73,
ip=0x20000000017a0321
lt-gcj-dbtool(10892): unaligned access to 0x60000fffffff9d7b,
ip=0x20000000017a0341
strncpy-chk.x1(16065): unaligned access to 0x60000fffffff9201,
ip=0x4000000000001c00
strncpy-chk.x2(16153): unaligned access to 0x60000fffffff9201,
ip=0x4000000000001ba1
strncpy-chk.x3(16260): unaligned access to 0x60000fffffff9201,
ip=0x4000000000001f71
strncpy-chk.x4(16419): unaligned access to 0x60000fffffff9201,
ip=0x4000000000001f50
PR9577(17600): unaligned access to 0x60000fffffff8b03, ip=0x20000000018c82e0
PR9577(17600): unaligned access to 0x60000fffffff8b0b, ip=0x20000000018c8301
PR9577(17600): unaligned access to 0x60000fffffff8b13, ip=0x20000000018c8321
PR9577(17600): unaligned access to 0x60000fffffff8b1b, ip=0x20000000018c8341

For example,

/export/build/gnu/gcc/build-ia64-linux/gcc/xgcc
-B/export/build/gnu/gcc/build-ia64-linux/gcc/
/net/gnu-13/export/gnu/src/gcc/gcc/gcc/testsuite/gcc.c-torture/execute/builtins/strncpy-chk.c
/net/gnu-13/export/gnu/src/gcc/gcc/gcc/testsuite/gcc.c-torture/execute/builtins/strncpy-chk-lib.c
/net/gnu-13/export/gnu/src/gcc/gcc/gcc/testsuite/gcc.c-torture/execute/builtins/lib/main.c
 -w -O2  -fno-show-column  -lm   -o
/export/build/gnu/gcc/build-ia64-linux/gcc/testsuite/gcc/strncpy-chk.x2
[hjl@gnu-11 gcc]$ ./strncpy-chk.x2
strncpy-chk.x2(23626): unaligned access to 0x60000fffffffb611,
ip=0x4000000000001b81
[hjl@gnu-11 gcc]$


-- 
           Summary: [4.2 Regression]: Gcc generates unaligned access
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: hjl at lucon dot org
 GCC build triplet: ia64-unknown-linux-gnu
  GCC host triplet: ia64-unknown-linux-gnu
GCC target triplet: ia64-unknown-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26721



More information about the Gcc-bugs mailing list