This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How to get rid of attribute(mode(word))?



There was a long discussion about this a couple of months ago. The summary was that __attribute__ ((mode (word))) was considered harmful. It's safe enough when you use it within a program, but when you start to use in a data structure shared by different codes you run into ABI problems. A typical example is the eh_return_filter_mode target hook, which was introduced (without documentation!) because Darwin needs to access the same exception handling information with two different values of word_mode.

I'm not sure I want to know why it seemed like a good idea for darwin to do this,
but it seems to be used for all of rs6000 as well. Whee.


Anyhow, I can see how it would be bad. Not sure how to handle it without breaking
how abi stuff is handled for darwin.


-eric


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]