https://gcc.gnu.org/bugzilla/show_bug.cgi?id=31176
Richard Smith changed:
What|Removed |Added
CC||richard-gccbugzilla@metafoo
--- 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 C
--- 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 whi
--- 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=13212&action=view)
test case for data member reordering
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31176
--- 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
--- 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 reaso
--- 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?
--
http://g
--- 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
> __attribute__((reord
--- 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
--- 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 b
10 matches
Mail list logo