This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug regression/28373] New: C code gives "unaligned access"
- From: "kminola at eng dot umd dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Jul 2006 20:26:37 -0000
- Subject: [Bug regression/28373] New: C code gives "unaligned access"
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
/* gcc-4.1.1 gives "unaligned access" on alphaev68-dec-osf5.1b
regression from gcc-3.4.4
% gcc -v
Using built-in specs.
Target: alphaev68-dec-osf5.1b
Configured with: /usr/local/gcc-4.1.1/src/gcc-4.1.1/configure
--enable-languages=c --prefix=/usr/local/gcc-4.1.1/alpha-OSF1-V5
Thread model: posix
gcc version 4.1.1
%
%
gcc -o foo foo.c
% foo
Unaligned access pid=141992 <foo> va=0x11fffbffc pc=0x12000115c ra=0x1200011a0
inst=0x
9d420000
%
*/
typedef struct
{
double d;
} aa;
int foo(v)
aa *v;
{
v->d = (double) 1;
return 0;
}
int main()
{
int cc[1];
int i1;
int i2;
int i3;
int i4;
int i5;
int i6;
int i7; /* if remove this line, then no problem! */
foo(cc); /* says "unaligned access" */
return 0;
}
--
Summary: C code gives "unaligned access"
Product: gcc
Version: 4.1.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: regression
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: kminola at eng dot umd dot edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28373