This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
RE: Patch for gcc-3.1/testing-pooma.html
- From: Gerald Pfeifer <pfeifer at dbai dot tuwien dot ac dot at>
- To: "Billinghurst, David (CRTS)" <David dot Billinghurst at riotinto dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 1 May 2002 14:37:17 +0200 (CEST)
- Subject: RE: Patch for gcc-3.1/testing-pooma.html
On Wed, 1 May 2002, Billinghurst, David (CRTS) wrote:
> The supported hosts do not map onto target triples. For example,
> mips-sgi-irix6.5 may have a uname of irix or irix64. Only the
> latter is supported by pooma-gcc.
>
> Is this patch clearer? Please apply if OK
Yes, thanks! I missed the fact that Pooma uses uname, but your updated
patch looks fine. I made small markup tweaks and committed the slight
variant below.
Gerald
Index: testing-pooma.html
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-3.1/testing-pooma.html,v
retrieving revision 1.2
diff -u -3 -p -r1.2 testing-pooma.html
--- testing-pooma.html 18 Apr 2002 20:27:38 -0000 1.2
+++ testing-pooma.html 1 May 2002 12:34:12 -0000
@@ -28,6 +28,40 @@ programs, and run the examples, use:</p>
<li><code>cd pooma-gcc</code></li>
</ul>
</li>
+<li>The script tester.pl tests for host type using <code>uname</code>,
+ rather than target triples. No further configuration is required
+ when <code>uname</code> matches:
+ <ul>
+ <li>linux</li>
+ <li>irix64 - 64 bit Irix 6.x platforms</li>
+ <li>sunos - Sun Solaris</li>
+ </ul>
+</li>
+<li>For other architectures it is necessary to:
+ <ul>
+ <li>Add a line of code to tester.pl to recognise the platform.
+ For example, configuration for Cygwin required the patch:
+<pre>
+--- tester.pl.orig Sat Apr 27 14:43:39 2002
++++ tester.pl Sat Apr 27 14:53:15 2002
+@@ -79,6 +79,7 @@
+ elsif ($uname =~ m/irix64/i) { $arch = "SGIN32gcc"; }
+ ## FIX How do I know when to use "SGI64gcc"?
+ elsif ($uname =~ m/sunos/i) { $arch = "SUNgcc"; }
++elsif ($uname =~ m/cygwin/i) { $arch = "CYGWINgcc"; }
+ else
+ {
+ die ("The ${uname} architecture is not supported.");
+</pre>
+ </li>
+ <li>Create a suitable file
+ <code>config/arch/<em>ARCH</em>gcc-template.conf</code>.
+ All that was required for cygwin was<br />
+ <code>cp config/arch/LINUXgcc-template.conf
+ config/arch/CYGWINgcc-template.conf</code>
+ </li>
+ </ul>
+</li>
</ul>