This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

powerpc patch 6 of 9



Minor fixes.  The lack of alignment used to blow up gas when
processing dwarf debug info.  That was before the traceback table
was removed for ELF.  I assume the text section should still be
aligned..

	* config/rs6000/rs6000.c (rs6000_output_function_epilogue): Replace
	'&' with '&&' in logical expression.  Align after the traceback
	table string.

Index: gcc/config/rs6000/rs6000.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/rs6000/rs6000.c,v
retrieving revision 1.286
diff -u -p -r1.286 rs6000.c
--- rs6000.c	2002/02/19 02:53:36	1.286
+++ rs6000.c	2002/02/20 01:35:44
@@ -9515,7 +9606,7 @@ rs6000_output_function_epilogue (file, s
 	 set up as a frame pointer, even when there is no alloca call.  */
       fprintf (file, "%d,",
 	       ((optional_tbtab << 6)
-		| ((optional_tbtab & frame_pointer_needed) << 5)
+		| ((optional_tbtab && frame_pointer_needed) << 5)
 		| (info->cr_save_p << 1)
 		| (info->lr_save_p)));
 
@@ -9636,8 +9727,9 @@ rs6000_output_function_epilogue (file, s
 	 Only emit this if the alloca bit was set above.  */
       if (frame_pointer_needed)
 	fputs ("\t.byte 31\n", file);
+
+      fputs ("\t.align 2\n", file);
     }
-  return;
 }
 
 /* A C compound statement that outputs the assembler code for a thunk
-- 
Alan Modra
IBM OzLabs - Linux Technology Centre


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]