[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gcc-fortran
Subject:    [tree-ssa] Handle F95 on ppc64
From:       Andreas Jaeger <aj () suse ! de>
Date:       2003-12-14 18:49:29
Message-ID: u8ekv7jkue.fsf () gromit ! moeb
[Download RAW message or body]


The PPC64 ABI specifies a traceback table which currently does not
handle F95.  The following patch adds handling to it.

I've checked with the ABI
(ftp://ftp.linuxppc64.org/pub/people/sjmunroe/PPC64-VMXabi.txt) and
that one only mentions "FORTRAN" but makes no differences between
different revisions.

I'm currently testing the appended patch on ppc64-linux.

Ok to commit the appended patch assuming it passes bootstrap (it
didn't bootstrap before at all)?

Andreas

2003-12-14  Andreas Jaeger  <aj@suse.de>

	* config/rs6000/rs6000.c (rs6000_output_function_epilogue): Handle
	GNU F95.

============================================================
Index: gcc/config/rs6000/rs6000.c
--- config/rs6000/rs6000.c	1 Dec 2003 19:39:00 -0000	1.332.2.35
+++ config/rs6000/rs6000.c	14 Dec 2003 18:45:04 -0000
@@ -12516,7 +12516,8 @@ rs6000_output_function_epilogue (FILE *f
       if (! strcmp (language_string, "GNU C")
 	  || ! strcmp (language_string, "GNU Objective-C"))
 	i = 0;
-      else if (! strcmp (language_string, "GNU F77"))
+      else if (! strcmp (language_string, "GNU F77")
+	       || ! strcmp (language_string, "GNU F95"))
 	i = 1;
       else if (! strcmp (language_string, "GNU Ada"))
 	i = 3;

-- 
 Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj
  SuSE Linux AG, Deutschherrnstr. 15-19, 90429 Nürnberg, Germany
   GPG fingerprint = 93A3 365E CE47 B889 DF7F  FED1 389A 563C C272 A126

[Attachment #3 (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic