all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* usefulness of NO_ARGS_ARRAY
@ 2010-04-15 22:13 Dan Nicolaescu
  2010-04-16  9:33 ` Andreas Schwab
  0 siblings, 1 reply; 3+ messages in thread
From: Dan Nicolaescu @ 2010-04-15 22:13 UTC (permalink / raw)
  To: emacs-devel


NO_ARGS_ARRAY is currently only used on 32bit x86 non-MS Windows machines.
It's doubtful that the few instructions saved make any difference on
modern machines...

NO_ARGS_ARRAY assumes that function arguments are passed on the stack,
but that is not true when using the -mregparam option, or when the
compiler decides to change the calling convention (like gcc-4.5 can
when using -flto).

Do we still want to keep NO_ARGS_ARRAY?




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: usefulness of NO_ARGS_ARRAY
  2010-04-15 22:13 usefulness of NO_ARGS_ARRAY Dan Nicolaescu
@ 2010-04-16  9:33 ` Andreas Schwab
  2010-04-16 17:46   ` Dan Nicolaescu
  0 siblings, 1 reply; 3+ messages in thread
From: Andreas Schwab @ 2010-04-16  9:33 UTC (permalink / raw)
  To: Dan Nicolaescu; +Cc: emacs-devel

Dan Nicolaescu <dann@gnu.org> writes:

> NO_ARGS_ARRAY is currently only used on 32bit x86 non-MS Windows machines.
  NO_ARG_ARRAY

Every modern system needs to define it.

> NO_ARGS_ARRAY assumes that function arguments are passed on the stack,

ITYM !NO_ARG_ARRAY.

> Do we still want to keep NO_ARGS_ARRAY?

IMHO it should always be defined and consequently removed.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: usefulness of NO_ARGS_ARRAY
  2010-04-16  9:33 ` Andreas Schwab
@ 2010-04-16 17:46   ` Dan Nicolaescu
  0 siblings, 0 replies; 3+ messages in thread
From: Dan Nicolaescu @ 2010-04-16 17:46 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: emacs-devel

Andreas Schwab <schwab@linux-m68k.org> writes:

> Dan Nicolaescu <dann@gnu.org> writes:
>
>> NO_ARGS_ARRAY assumes that function arguments are passed on the stack,
>
> ITYM !NO_ARG_ARRAY.

Exactly.

>> Do we still want to keep NO_ARGS_ARRAY?
>
> IMHO it should always be defined and consequently removed.

That's what I want to do, I'll do that in a week or so if there's no
objection until then.




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-04-16 17:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-15 22:13 usefulness of NO_ARGS_ARRAY Dan Nicolaescu
2010-04-16  9:33 ` Andreas Schwab
2010-04-16 17:46   ` Dan Nicolaescu

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.