summaryrefslogtreecommitdiff
path: root/lang/gcc/patches/patch-ap
blob: 2e29da4d2136ca5b6ce79ef79616bf170dbfeb51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
$NetBSD: patch-ap,v 1.2 2002/01/03 20:40:43 tron Exp $

--- ../gcc-2.95.3/gcc/config/mips/mips.c.orig	Fri May  7 14:42:03 1999
+++ ../gcc-2.95.3/gcc/config/mips/mips.c	Thu Jan  3 20:37:53 2002
@@ -93,7 +93,7 @@
 static void block_move_loop			PROTO ((rtx, rtx, int, int,
 							rtx, rtx));
 static void block_move_call			PROTO ((rtx, rtx, rtx));
-static FILE *make_temp_file			PROTO ((void));
+static FILE *xmake_temp_file			PROTO ((void));
 static void save_restore_insns			PROTO ((int, rtx,
 							long, FILE *));
 static void mips16_output_gp_offset		PROTO ((FILE *, rtx));
@@ -5076,7 +5076,7 @@
 #endif
 
 static FILE *
-make_temp_file ()
+xmake_temp_file ()
 {
   FILE *stream;
   const char *base = getenv ("TMPDIR");
@@ -5295,7 +5295,7 @@
   if (TARGET_FILE_SWITCHING && ! TARGET_MIPS16)
     {
       asm_out_data_file = stream;
-      asm_out_text_file = make_temp_file ();
+      asm_out_text_file = xmake_temp_file ();
     }
 
   else
@@ -6278,8 +6278,10 @@
 	  fprintf (file, "\t.cprestore %ld\n", current_frame_info.args_size);
 	}
 
+#ifdef DWARF2_UNWIND_INFO
       if (dwarf2out_do_frame ())
 	dwarf2out_def_cfa ("", STACK_POINTER_REGNUM, tsize);
+#endif
     }
 }