]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
rs6000.c (rs6000_file_start): Output gnu attribute for struct return convention.
authorNathan Froyd <froydnj@codesourcery.com>
Sat, 1 Nov 2008 02:26:26 +0000 (02:26 +0000)
committerNathan Froyd <froydnj@gcc.gnu.org>
Sat, 1 Nov 2008 02:26:26 +0000 (02:26 +0000)
* config/rs6000/rs6000.c (rs6000_file_start): Output gnu
attribute for struct return convention.

From-SVN: r141510

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

index 73bb0752a895ad01b411fedfb5106041d1dea8db..4807a04bd93b13484cda378fc385417553e4323d 100644 (file)
@@ -1,3 +1,8 @@
+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.
index a4eeb0e8dba0329b1392142deba4b91086ca1fb5..6376305ef6a76ccf027fa0cccf2583736178a9b3 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