Commit aaa42494 by Daniel Jacobowitz Committed by Daniel Jacobowitz

rs6000.c (rs6000_file_start): Output a .gnu_attribute directive for the current vector ABI.

	* config/rs6000/rs6000.c (rs6000_file_start): Output a .gnu_attribute
	directive for the current vector ABI.

From-SVN: r127526
parent f81e79b5
2007-08-15 Daniel Jacobowitz <dan@codesourcery.com>
* config/rs6000/rs6000.c (rs6000_file_start): Output a .gnu_attribute
directive for the current vector ABI.
2007-08-15 Steve Ellcey <sje@cup.hp.com> 2007-08-15 Steve Ellcey <sje@cup.hp.com>
PR target/32963 PR target/32963
......
...@@ -2340,8 +2340,14 @@ rs6000_file_start (void) ...@@ -2340,8 +2340,14 @@ rs6000_file_start (void)
#ifdef HAVE_AS_GNU_ATTRIBUTE #ifdef HAVE_AS_GNU_ATTRIBUTE
if (TARGET_32BIT && DEFAULT_ABI == ABI_V4) if (TARGET_32BIT && DEFAULT_ABI == ABI_V4)
fprintf (file, "\t.gnu_attribute 4, %d\n", {
(TARGET_HARD_FLOAT && TARGET_FPRS) ? 1 : 2); fprintf (file, "\t.gnu_attribute 4, %d\n",
(TARGET_HARD_FLOAT && TARGET_FPRS) ? 1 : 2);
fprintf (file, "\t.gnu_attribute 8, %d\n",
(TARGET_ALTIVEC_ABI ? 2
: TARGET_SPE_ABI ? 3
: 1));
}
#endif #endif
if (DEFAULT_ABI == ABI_AIX || (TARGET_ELF && flag_pic == 2)) if (DEFAULT_ABI == ABI_AIX || (TARGET_ELF && flag_pic == 2))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment