This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: ip2k port reviewing/accepting
Geoff Keating <geoffk@geoffk.org> writes:
> > Cc: Geoff Keating <geoffk@redhat.com>, gcc-patches@gcc.gnu.org
> > From: Denis Chertykov <denisc@overta.ru>
> > Date: 25 Jun 2002 21:10:41 +0400
>
> > > > > Can I commit port now ?
> > > >
> > > > Please send a revised patch.
> >
> > What you mean ?
> > I can commit a revised patch or I must got approval.
>
> I mean, please send me a patch, with all the corrections I asked for,
> that you want to be approved. It hasn't been approved yet.
OK.
>
> I think you already sent a revised patch, correct?
Yes.
>
> I think I haven't looked at it yet except the ChangeLog, which seems
> to be incomplete in that it doesn't list the names of all the authors.
> It should also list each of the files added by name, because often
> people search through ChangeLog files to see when something was added
> and that doesn't work if wildcards are used in the ChangeLog.
>
> Have you sent in the documentation changes yet?
New ChangeLog entry and documentation patch:
Fri Jun 28 17:22:37 2002 Frank Ch. Eigler <fche@redhat.com>
Denis Chertykov <denisc@overta.ru>
Matthew Green <mrg@redhat.com>
Richard Henderson <rtl@redhat.com>
Dave Hudson <dave.hudson@ubicom.com>
Jeff Johnston <jjohnstn@redhat.com>
Alan Lehotsky <apl@alum.mit.edu>
Bernd Schmidt <bernds@redhat.com>
Graham Stott <grahams@redhat.com>
* doc/extend.texi: Add ip2k port to description of attribute
naked.
* doc/install.texi (Specific): Add ip2k description.
* doc/install-old.texi (Configurations): Add ip2k to possible
cpu types.
* doc/md.texi: Document ip2k constraints.
* config/ip2k/crt0.S: New file.
* config/ip2k/ip2k-protos.h: New file.
* config/ip2k/ip2k.c: New file.
* config/ip2k/ip2k.h: New file.
* config/ip2k/ip2k.md: New file.
* config/ip2k/libgcc.S: New file.
* config/ip2k/t-ip2k: New file.
Index: extend.texi
===================================================================
RCS file: /cvs/gcc/egcs/gcc/doc/extend.texi,v
retrieving revision 1.86
diff -c -3 -p -r1.86 extend.texi
*** extend.texi 25 Jun 2002 23:41:25 -0000 1.86
--- extend.texi 28 Jun 2002 15:10:48 -0000
*************** attribute is present. Interrupts will b
*** 2444,2452 ****
@item naked
@cindex function without a prologue/epilogue code
! Use this attribute on the ARM or AVR ports to indicate that the specified
! function do not need prologue/epilogue sequences generated by the
! compiler. It is up to the programmer to provide these sequences.
@item model (@var{model-name})
@cindex function addressability on the M32R/D
--- 2444,2452 ----
@item naked
@cindex function without a prologue/epilogue code
! Use this attribute on the ARM, AVR and IP2K ports to indicate that the
! specified function do not need prologue/epilogue sequences generated by
! the compiler. It is up to the programmer to provide these sequences.
@item model (@var{model-name})
@cindex function addressability on the M32R/D
Index: install-old.texi
===================================================================
RCS file: /cvs/gcc/egcs/gcc/doc/install-old.texi,v
retrieving revision 1.13
diff -c -3 -p -r1.13 install-old.texi
*** install-old.texi 7 Dec 2001 16:57:27 -0000 1.13
--- install-old.texi 28 Jun 2002 15:10:56 -0000
***************
*** 1,4 ****
! @c Copyright (C) 1988, 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
@c This is part of the GCC manual.
@c For copying conditions, see the file install.texi.
--- 1,4 ----
! @c Copyright (C) 1988, 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
@c This is part of the GCC manual.
@c For copying conditions, see the file install.texi.
*************** Here are the possible CPU types:
*** 107,113 ****
@quotation
@c gmicro, fx80, spur and tahoe omitted since they don't work.
1750a, a29k, alpha, arm, avr, c@var{n}, clipper, dsp16xx, elxsi, fr30, h8300,
! hppa1.0, hppa1.1, i370, i386, i486, i586, i686, i786, i860, i960, m32r,
m68000, m68k, m6811, m6812, m88k, mcore, mips, mipsel, mips64, mips64el,
mn10200, mn10300, ns32k, pdp11, powerpc, powerpcle, romp, rs6000, sh, sparc,
sparclite, sparc64, v850, vax, we32k.
--- 107,113 ----
@quotation
@c gmicro, fx80, spur and tahoe omitted since they don't work.
1750a, a29k, alpha, arm, avr, c@var{n}, clipper, dsp16xx, elxsi, fr30, h8300,
! hppa1.0, hppa1.1, i370, i386, i486, i586, i686, i786, i860, i960, ip2k, m32r,
m68000, m68k, m6811, m6812, m88k, mcore, mips, mipsel, mips64, mips64el,
mn10200, mn10300, ns32k, pdp11, powerpc, powerpcle, romp, rs6000, sh, sparc,
sparclite, sparc64, v850, vax, we32k.
Index: install.texi
===================================================================
RCS file: /cvs/gcc/egcs/gcc/doc/install.texi,v
retrieving revision 1.127
diff -c -3 -p -r1.127 install.texi
*** install.texi 27 Jun 2002 19:08:52 -0000 1.127
--- install.texi 28 Jun 2002 15:11:41 -0000
*************** GNU Compiler Collection on your machine.
*** 1543,1548 ****
--- 1543,1550 ----
@item
@uref{#*-ibm-aix*,,*-ibm-aix*}
@item
+ @uref{#ip2k-*-elf,,ip2k-*-elf}
+ @item
@uref{#m32r-*-elf,,m32r-*-elf}
@item
@uref{#m68000-hp-bsd,,m68000-hp-bsd}
*************** both Power or PowerPC processors.
*** 2378,2383 ****
--- 2380,2396 ----
A default can be specified with the @option{-mcpu=@var{cpu_type}}
switch and using the configure option @option{--with-cpu-@var{cpu_type}}.
+
+ @html
+ </p>
+ <hr>
+ @end html
+ @heading @anchor{ip2k-*-elf}ip2k-*-elf
+ Ubicom IP2022 micro controller.
+ This configuration is intended for embedded systems.
+ There are no standard Unix configurations.
+
+ Use @samp{configure --target=ip2k-elf --enable-languages=c} to configure GCC@.
@html
</p>
Index: md.texi
===================================================================
RCS file: /cvs/gcc/egcs/gcc/doc/md.texi,v
retrieving revision 1.43
diff -c -3 -p -r1.43 md.texi
*** md.texi 27 Jun 2002 17:19:04 -0000 1.43
--- md.texi 28 Jun 2002 15:12:37 -0000
*************** Memory reference in external OSF/rose PI
*** 1808,1813 ****
--- 1808,1883 ----
(@samp{m} is preferable for @code{asm} statements)
@end table
+ @item IP2K---@file{ip2k.h}
+ @table @code
+ @item a
+ @samp{DP} or @samp{IP} registers (general address)
+
+ @item f
+ @samp{IP} register
+
+ @item j
+ @samp{IPL} register
+
+ @item k
+ @samp{IPH} register
+
+ @item b
+ @samp{DP} register
+
+ @item y
+ @samp{DPH} register
+
+ @item z
+ @samp{DPL} register
+
+ @item q
+ @samp{SP} register
+
+ @item c
+ @samp{DP} or @samp{SP} registers (offsettable address)
+
+ @item d
+ Non-pointer registers (not @samp{SP}, @samp{DP}, @samp{IP})
+
+ @item u
+ Non-SP registers (everything except @samp{SP})
+
+ @item R
+ Indirect thru @samp{IP} - Avoid this except for @code{QImode}, since we
+ can't access extra bytes
+
+ @item S
+ Indirect thru @samp{SP} or @samp{DP} with short displacement (0..127)
+
+ @item T
+ Data-section immediate value
+
+ @item I
+ Integers from @minus{}255 to @minus{}1
+
+ @item J
+ Integers from 0 to 7---valid bit number in a register
+
+ @item K
+ Integers from 0 to 127---valid displacement for addressing mode
+
+ @item L
+ Integers from 1 to 127
+
+ @item M
+ Integer @minus{}1
+
+ @item N
+ Integer 1
+
+ @item O
+ Zero
+
+ @item P
+ Integers from 0 to 255
+ @end table
+
@item Motorola 680x0---@file{m68k.h}
@table @code
@item a