OSDN Git Service

* config/rs6000/rs6000.c (rs6000_file_start): Output gnu
authorfroydnj <froydnj@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 1 Nov 2008 02:26:26 +0000 (02:26 +0000)
committerfroydnj <froydnj@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 1 Nov 2008 02:26:26 +0000 (02:26 +0000)
attribute for struct return convention.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@141510 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/rs6000/rs6000.c

index 73bb075..4807a04 100644 (file)
@@ -1,5 +1,10 @@
 2008-10-31  Nathan Froyd  <froydnj@codesourcery.com>
 
+       * config/rs6000/rs6000.c (rs6000_file_start): Output gnu
+       attribute for struct return convention.
+
+2008-10-31  Nathan Froyd  <froydnj@codesourcery.com>
+
        * config/rs6000/crtsavres.asm: Really, really delete.
 
 2008-10-31  Nathan Froyd  <froydnj@codesourcery.com>
index a4eeb0e..6376305 100644 (file)
@@ -2642,6 +2642,9 @@ rs6000_file_start (void)
               (TARGET_ALTIVEC_ABI ? 2
                : TARGET_SPE_ABI ? 3
                : 1));
+      fprintf (file, "\t.gnu_attribute 12, %d\n",
+              aix_struct_return ? 2 : 1);
+
     }
 #endif