Commit 5fc921c1 by David Edelsohn Committed by David Edelsohn

re PR target/13401 (Traceback table does not conform to PowerPC 64 ABI)

        PR target/13401
        * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
        Objective-C language type value is 14.

From-SVN: r75704
parent 48568ec7
2004-01-12 David Edelsohn <edelsohn@gnu.org>
PR target/13401
* config/rs6000/rs6000.c (rs6000_output_function_epilogue):
Objective-C language type value is 14.
2004-01-12 Markus F.X.J. Oberhumer <markus@oberhumer.com> 2004-01-12 Markus F.X.J. Oberhumer <markus@oberhumer.com>
PR c/12148 PR c/12148
......
...@@ -12523,24 +12523,25 @@ rs6000_output_function_epilogue (FILE *file, ...@@ -12523,24 +12523,25 @@ rs6000_output_function_epilogue (FILE *file,
/* Tbtab format type. Use format type 0. */ /* Tbtab format type. Use format type 0. */
fputs ("\t.byte 0,", file); fputs ("\t.byte 0,", file);
/* Language type. Unfortunately, there doesn't seem to be any /* Language type. Unfortunately, there does not seem to be any
official way to get this info, so we use language_string. C official way to discover the language being compiled, so we
is 0. C++ is 9. No number defined for Obj-C, so use the use language_string.
value for C for now. There is no official value for Java, C is 0. Fortran is 1. Pascal is 2. Ada is 3. C++ is 9.
although IBM appears to be using 13. */ Java is 13. Objective-C is 14. */
if (! strcmp (language_string, "GNU C") if (! strcmp (language_string, "GNU C"))
|| ! strcmp (language_string, "GNU Objective-C"))
i = 0; i = 0;
else if (! strcmp (language_string, "GNU F77")) else if (! strcmp (language_string, "GNU F77"))
i = 1; i = 1;
else if (! strcmp (language_string, "GNU Ada"))
i = 3;
else if (! strcmp (language_string, "GNU Pascal")) else if (! strcmp (language_string, "GNU Pascal"))
i = 2; i = 2;
else if (! strcmp (language_string, "GNU Ada"))
i = 3;
else if (! strcmp (language_string, "GNU C++")) else if (! strcmp (language_string, "GNU C++"))
i = 9; i = 9;
else if (! strcmp (language_string, "GNU Java")) else if (! strcmp (language_string, "GNU Java"))
i = 13; i = 13;
else if (! strcmp (language_string, "GNU Objective-C"))
i = 14;
else else
abort (); abort ();
fprintf (file, "%d,", i); fprintf (file, "%d,", i);
......
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