gcc 3.3 patch regarding m68k

jf@sub-out.de jf@sub-out.de
Thu Jul 24 01:41:00 GMT 2003


dear gcc team,

find attached a patch for gcc-3.3 that
extends the m68k-gcc by the option -mregparm=n
(n from 1 to 5) which allows to specify the
number of function-parameters to be passed
by registers instead by stack.
default is 0, so all parameters are passed
by the stack.

Why this ?
I converted a few embedded projects from an
old mips-r3000 (risc-os) to win32 (djgpp). these
projects use mixed assembly and c coding where every
convention for passing args on stack or by registers
is used. as i prefer to use one m68k-gcc the
count of pass-registers has to be adjustable.

If this feature could be of interest for the public,
it might be a good idea to pass this patch to the
maintainer of the m68k.c and m68k.h file.

Please keep me informed, thanks


Best regards, Jürgen Fornoff / Germany

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: diff-gcc-3.3-own3.3
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20030724/ab76895b/attachment.ksh>


More information about the Gcc-patches mailing list