public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/22158] New: char global_var[] = "larger than 32 bytes"; uses silly amounts of alignment even with -Os
@ 2005-06-23  6:00 vda at port dot imtp dot ilyichevsk dot odessa dot ua
  2005-06-23 11:51 ` [Bug target/22158] " pinskia at gcc dot gnu dot org
                   ` (7 more replies)
  0 siblings, 8 replies; 10+ messages in thread
From: vda at port dot imtp dot ilyichevsk dot odessa dot ua @ 2005-06-23  6:00 UTC (permalink / raw)
  To: gcc-bugs

static char *s0 = "000000000000000000000000000000000000000000000000";
static char s1[] = "111111111111111111111111111111111111111111111111";
static char *s2 = "000000000000000000000000000000000000000000000000";
static char s3[] = "111111111111111111111111111111111111111111111111";

void f(char*);
void g() {
    f(s0);
    f(s1);
    f(s2);
    f(s3);
}

s1 and s2 are aligned on 32 bytes even with -Os, while s2 and s4 are not.
See http://gcc.gnu.org/ml/gcc/2002-01/msg01068.html,
http://gcc.gnu.org/ml/gcc/2002-01/msg01068/i386.c.PATCH

-- 
           Summary: char global_var[] = "larger than 32 bytes"; uses silly
                    amounts of alignment even with -Os
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: vda at port dot imtp dot ilyichevsk dot odessa dot ua
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i386-pc-linux-gnu
  GCC host triplet: i386-pc-linux-gnu
GCC target triplet: i386-pc-linux-gnu


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


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2006-11-27 23:03 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-22158-1101@http.gcc.gnu.org/bugzilla/>
2006-11-27 22:57 ` [Bug target/22158] char global_var[] = "larger than 32 bytes"; uses silly amounts of alignment even with -Os pinskia at gcc dot gnu dot org
2006-11-27 23:03 ` pinskia at gcc dot gnu dot org
2005-06-23  6:00 [Bug tree-optimization/22158] New: " vda at port dot imtp dot ilyichevsk dot odessa dot ua
2005-06-23 11:51 ` [Bug target/22158] " pinskia at gcc dot gnu dot org
2005-06-23 12:02 ` pinskia at gcc dot gnu dot org
2005-06-23 12:57 ` vda at port dot imtp dot ilyichevsk dot odessa dot ua
2005-06-23 13:03 ` vda at port dot imtp dot ilyichevsk dot odessa dot ua
2005-06-23 13:13 ` pinskia at gcc dot gnu dot org
2005-06-24  6:34 ` vda at port dot imtp dot ilyichevsk dot odessa dot ua
2005-06-24 11:51 ` pluto at agmk dot net
2005-07-09 16:34 ` pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).