Bug 21226 - unix_stream small_buffer unaligned
Summary: unix_stream small_buffer unaligned
Status: RESOLVED WONTFIX
Alias: None
Product: gcc
Classification: Unclassified
Component: libfortran (show other bugs)
Version: 4.1.0
: P2 enhancement
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-25 23:18 UTC by David Edelsohn
Modified: 2007-09-21 19:53 UTC (History)
2 users (show)

See Also:
Host: *-*-*
Target: *-*-*
Build: *-*-*
Known to work:
Known to fail:
Last reconfirmed: 2005-12-28 06:21:58


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Edelsohn 2005-04-25 23:18:53 UTC
Aligning small_buffer in struct unix_stream would help performance.  As an array
of char, it can and does appear with byte alignment.
Comment 1 Andrew Pinski 2005-04-26 16:34:27 UTC
Confirmed.
Comment 2 Tobias Schlüter 2005-05-11 23:28:40 UTC
I don't think so, because it is not small_buffer that is used, but rather a char
* buffer that can point to small_buffer.

Is there a way to say that char * buffer will always be aligned?  In that case
this could still make sense.
Comment 3 David Edelsohn 2005-05-12 00:17:15 UTC
I believe that one could use a GCC attribute to say that the arena will be 
aligned, but one needs to sprinkle the attribute everywhere that the pointer 
is allocated and passed as an argument, not just aligning the small buffer 
itself.
Comment 4 Francois-Xavier Coudert 2007-09-21 19:53:59 UTC
Closing. small_buffer will go away when we implement PR 25561 ("Eventually get rid of the Alloc Stream Facility").