[Bug c++/31176] reorder class data members to minimize space waste

2014-09-02 Thread richard-gccbugzilla at metafoo dot co.uk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=31176 Richard Smith richard-gccbugzilla at metafoo dot co.uk changed: What|Removed |Added CC|

[Bug c++/31176] reorder class data members to minimize space waste

2007-04-27 Thread pinskia at gcc dot gnu dot org
--- Comment #9 from pinskia at gcc dot gnu dot org 2007-04-28 01:37 --- I think this needs a real specifications and not just saying the reording can happen (as an asside there are two kinds of derived types in Fortran, one called sequence and the other normal, the sequence one is what

[Bug c++/31176] reorder class data members to minimize space waste

2007-03-15 Thread sebor at roguewave dot com
--- Comment #6 from sebor at roguewave dot com 2007-03-15 19:54 --- (In reply to comment #5) I've checked all three but none of them seems to achieve an optimal layout in a modified template case. Let me attach my test program. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31176

[Bug c++/31176] reorder class data members to minimize space waste

2007-03-15 Thread sebor at roguewave dot com
--- Comment #7 from sebor at roguewave dot com 2007-03-15 19:55 --- Created an attachment (id=13212) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13212action=view) test case for data member reordering -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31176

[Bug c++/31176] reorder class data members to minimize space waste

2007-03-15 Thread sebor at roguewave dot com
--- Comment #8 from sebor at roguewave dot com 2007-03-15 23:51 --- Some additional comments on the request precipitated by a discussion with the implementers of another compiler: The rationale for allowing the attribute on individual members is to provide fine-grained control over

[Bug c++/31176] reorder class data members to minimize space waste

2007-03-14 Thread fang at csl dot cornell dot edu
--- Comment #1 from fang at csl dot cornell dot edu 2007-03-14 18:14 --- Interesting. Do the attributes apply to derived classes automatically? struct B __attribute__((reorder)) { char a; int b; }; struct D : public B { char c, d, e; }; Is D also allowed to reorder members a and

[Bug c++/31176] reorder class data members to minimize space waste

2007-03-14 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2007-03-14 18:16 --- Note actually some compilers actually do this even without an attribute. This is related to the art hack. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31176

[Bug c++/31176] reorder class data members to minimize space waste

2007-03-14 Thread sebor at roguewave dot com
--- Comment #3 from sebor at roguewave dot com 2007-03-14 19:04 --- (In reply to comment #1) Interesting. Do the attributes apply to derived classes automatically? I would say no. [...] Is D also allowed to reorder members a and b? even with an explicit

[Bug c++/31176] reorder class data members to minimize space waste

2007-03-14 Thread sebor at roguewave dot com
--- Comment #4 from sebor at roguewave dot com 2007-03-14 19:05 --- (In reply to comment #2) Note actually some compilers actually do this even without an attribute. This is related to the art hack. Out of curiosity, which compiler does it? And what's the art hack? --

[Bug c++/31176] reorder class data members to minimize space waste

2007-03-14 Thread pinskia at gcc dot gnu dot org
--- Comment #5 from pinskia at gcc dot gnu dot org 2007-03-14 19:08 --- (In reply to comment #4) Out of curiosity, which compiler does it? Sun and Intel (and I think IBM's also) And what's the art hack? The art hack is when changing array of structs to struct of arrays. The reason