Re: RFA: Darwin x86 alignment

2005-07-23 Thread Mark Kettenis
From: Dale Johannesen [EMAIL PROTECTED] Date: Thu, 21 Jul 2005 16:56:01 -0700 On x86 currently the alignments of double and long long are linked: they are either 4 or 8 depending on whether -malign-double is set. This follows the documentation of -malign-double. But it's wrong for

RFA: Darwin x86 alignment

2005-07-21 Thread Dale Johannesen
On x86 currently the alignments of double and long long are linked: they are either 4 or 8 depending on whether -malign-double is set. This follows the documentation of -malign-double. But it's wrong for what we want the Darwin ABI to be: the default should be that double is 4 bytes and long

Re: RFA: Darwin x86 alignment

2005-07-21 Thread Richard Henderson
On Thu, Jul 21, 2005 at 04:56:01PM -0700, Dale Johannesen wrote: - Have flags work as now: -malign-double makes both 8, -mno-align-double makes both 4. Problem with that is the default is neither of these, and this doesn't fit neatly into gcc's model of two-valued flags; it's also a

Re: RFA: Darwin x86 alignment

2005-07-21 Thread Dale Johannesen
On Jul 21, 2005, at 5:00 PM, Richard Henderson wrote: On Thu, Jul 21, 2005 at 04:56:01PM -0700, Dale Johannesen wrote: - Have flags work as now: -malign-double makes both 8, -mno-align-double makes both 4. Problem with that is the default is neither of these, and this doesn't fit neatly

Re: RFA: Darwin x86 alignment

2005-07-21 Thread Richard Henderson
On Thu, Jul 21, 2005 at 05:21:58PM -0700, Dale Johannesen wrote: Nah, you just remove it from target_flags, and control the two new variables from ix86_handle_option. OK. Think that's the better approach? *shrug* It's not horrible, I guess. It preseves existing semantics when people use