This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: target/6899: construction of C++ classes with less than 5 bytes of storage can cause stack misalignment
- From: ciceron at gcc dot gnu dot org
- To: ciceron at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, stcarrez at nerim dot fr, thousel at usa dot net
- Date: 14 Jun 2002 21:46:02 -0000
- Subject: Re: target/6899: construction of C++ classes with less than 5 bytes of storage can cause stack misalignment
- Reply-to: ciceron at gcc dot gnu dot org, ciceron at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, stcarrez at nerim dot fr, thousel at usa dot net, gcc-gnats at gcc dot gnu dot org
Synopsis: construction of C++ classes with less than 5 bytes of storage can cause stack misalignment
Responsible-Changed-From-To: unassigned->ciceron
Responsible-Changed-By: ciceron
Responsible-Changed-When: Fri Jun 14 14:46:01 2002
Responsible-Changed-Why:
Concerns HC11/HC12 port
State-Changed-From-To: open->analyzed
State-Changed-By: ciceron
State-Changed-When: Fri Jun 14 14:46:01 2002
State-Changed-Why:
Problem understood, working on a fix.
A workarround is to avoid -Os and use -O2.
Problem is due to a wrong peephole2 enabled only with -Os.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6899