public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/3901: P4 alignment issues
@ 2001-08-01  5:26 aoliva
  0 siblings, 0 replies; 2+ messages in thread
From: aoliva @ 2001-08-01  5:26 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, jim, nobody, rif

Synopsis: P4 alignment issues

State-Changed-From-To: open->closed
State-Changed-By: aoliva
State-Changed-When: Wed Aug  1 05:26:10 2001
State-Changed-Why:
    The option called -mpreferred-stack-boundary, but it doesn't affect the initialization code in glibc, so you may have to tweak glibc to ailgn the stack to the same boundary.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=3901&database=gcc


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

* c++/3901: P4 alignment issues
@ 2001-07-31 10:16 jim
  0 siblings, 0 replies; 2+ messages in thread
From: jim @ 2001-07-31 10:16 UTC (permalink / raw)
  To: gcc-gnats; +Cc: rif

>Number:         3901
>Category:       c++
>Synopsis:       P4 alignment issues
>Confidential:   no
>Severity:       non-critical
>Priority:       high
>Responsible:    unassigned
>State:          open
>Class:          wrong-code
>Submitter-Id:   net
>Arrival-Date:   Tue Jul 31 10:16:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     jim@jtan.com
>Release:        Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/specs gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
>Organization:
>Environment:
redhat 6.1, glibc 2.1.3
>Description:
Apparently, the Pentium 4 requires alignment of 32 bytes in 
certain cases.  I do not know exactly what they are,
but I found a case (on the only P4 system I have access to)
where the length of the program's filename affected
performance by as much as 25%.  I eventually discovered
that the length of the filename was affecting the location
of the stack (or stuff on it) which is apparently only
forced to 16 byte alignment, so half the time the code
was being slowed by 25%.

It would be difficult for me to test to see whether this
has been fixed in later versions of GCC, so I am submitting
this as a bug report in hopes that someone else will know.

Ideally, there would be a compiler option to specify that
32-byte alignment is necessary (I don't see one).

( http://gcc.gnu.org/ml/gcc/2001-03/msg00076.html
indicates the 32-byte alignment issue)
>How-To-Repeat:
unsure
>Fix:
unsure
>Release-Note:
>Audit-Trail:
>Unformatted:


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

end of thread, other threads:[~2001-08-01  5:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-01  5:26 c++/3901: P4 alignment issues aoliva
  -- strict thread matches above, loose matches on Subject: below --
2001-07-31 10:16 jim

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).