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]

[patch] [vx]*.c: Fix formatting.


Hi,

Attached is a patch to fix formatting.  Committed as obvious.

Kazu Hirata

2002-01-10  Kazu Hirata  <kazu@hxi.com>

	* varasm.c: Fix formatting.
	* varray.c: Likewise.
	* vmsdbgout.c: Likewise.
	* xcoffout.c: Likewise.

Index: varasm.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/varasm.c,v
retrieving revision 1.242
diff -u -r1.242 varasm.c
--- varasm.c	2002/01/03 00:51:34	1.242
+++ varasm.c	2002/01/10 16:48:34
@@ -2425,7 +2425,7 @@
    they are actually used.  This will be if something takes its address or if
    there is a usage of the string in the RTL of a function.  */
 
-#define STRHASH(x) ((hashval_t)((long)(x) >> 3))
+#define STRHASH(x) ((hashval_t) ((long) (x) >> 3))
 
 struct deferred_string
 {
@@ -2590,7 +2590,7 @@
 	else if (GET_CODE (value.base) == LABEL_REF)
 	  hi = value.offset + CODE_LABEL_NUMBER (XEXP (value.base, 0)) * 13;
 	else
-	  abort();
+	  abort ();
 
 	hi &= (1 << HASHBITS) - 1;
 	hi %= MAX_HASH_TABLE;
Index: varray.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/varray.c,v
retrieving revision 1.13
diff -u -r1.13 varray.c
--- varray.c	2001/12/02 00:04:25	1.13
+++ varray.c	2002/01/10 16:48:34
@@ -1,5 +1,5 @@
 /* Virtual array support.
-   Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
+   Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
    Contributed by Cygnus Solutions.
 
    This file is part of GCC.
@@ -62,7 +62,7 @@
       size_t old_data_size = old_elements * element_size;
       size_t data_size = n * element_size;
 
-      va = (varray_type) xrealloc ((char *)va, VARRAY_HDR_SIZE + data_size);
+      va = (varray_type) xrealloc ((char *) va, VARRAY_HDR_SIZE + data_size);
       va->num_elements = n;
       if (n > old_elements)
 	memset (&va->data.c[old_data_size], 0, data_size - old_data_size);
Index: vmsdbgout.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/vmsdbgout.c,v
retrieving revision 1.7
diff -u -r1.7 vmsdbgout.c
--- vmsdbgout.c	2001/12/28 18:17:54	1.7
+++ vmsdbgout.c	2002/01/10 16:48:34
@@ -1,6 +1,6 @@
 /* Output VMS debug format symbol table information from the GNU C compiler.
    Copyright (C) 1987, 1988, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
-   1999, 2000, 2001 Free Software Foundation, Inc.
+   1999, 2000, 2001, 2002 Free Software Foundation, Inc.
    Contributed by Douglas B. Rupp (rupp@gnat.com).
 
 This file is part of GNU CC.
@@ -277,37 +277,49 @@
 #endif
 
 #ifndef ASM_OUTPUT_DEBUG_DELTA2
-#define ASM_OUTPUT_DEBUG_DELTA2(FILE,LABEL1,LABEL2)			\
- do {	fprintf ((FILE), "\t%s\t", UNALIGNED_SHORT_ASM_OP);		\
-	assemble_name (FILE, LABEL1);					\
-	fprintf (FILE, "-");						\
-	assemble_name (FILE, LABEL2);					\
-  } while (0)
+#define ASM_OUTPUT_DEBUG_DELTA2(FILE,LABEL1,LABEL2)			 \
+  do									 \
+    {									 \
+      fprintf ((FILE), "\t%s\t", UNALIGNED_SHORT_ASM_OP);		 \
+      assemble_name (FILE, LABEL1);					 \
+      fprintf (FILE, "-");						 \
+      assemble_name (FILE, LABEL2);					 \
+    }									 \
+  while (0)
 #endif
 
 #ifndef ASM_OUTPUT_DEBUG_DELTA4
-#define ASM_OUTPUT_DEBUG_DELTA4(FILE,LABEL1,LABEL2)			\
- do {	fprintf ((FILE), "\t%s\t", UNALIGNED_INT_ASM_OP);		\
-	assemble_name (FILE, LABEL1);					\
-	fprintf (FILE, "-");						\
-	assemble_name (FILE, LABEL2);					\
-  } while (0)
+#define ASM_OUTPUT_DEBUG_DELTA4(FILE,LABEL1,LABEL2)			 \
+  do									 \
+    {									 \
+      fprintf ((FILE), "\t%s\t", UNALIGNED_INT_ASM_OP);			 \
+      assemble_name (FILE, LABEL1);					 \
+      fprintf (FILE, "-");						 \
+      assemble_name (FILE, LABEL2);					 \
+    }									 \
+  while (0)
 #endif
 
 #ifndef ASM_OUTPUT_DEBUG_ADDR_DELTA
-#define ASM_OUTPUT_DEBUG_ADDR_DELTA(FILE,LABEL1,LABEL2)			\
- do {	fprintf ((FILE), "\t%s\t", UNALIGNED_PTR_ASM_OP);		\
-	assemble_name (FILE, LABEL1);					\
-	fprintf (FILE, "-");						\
-	assemble_name (FILE, LABEL2);					\
-  } while (0)
+#define ASM_OUTPUT_DEBUG_ADDR_DELTA(FILE,LABEL1,LABEL2)			 \
+  do									 \
+    {									 \
+      fprintf ((FILE), "\t%s\t", UNALIGNED_PTR_ASM_OP);			 \
+      assemble_name (FILE, LABEL1);					 \
+      fprintf (FILE, "-");						 \
+      assemble_name (FILE, LABEL2);					 \
+    }									 \
+  while (0)
 #endif
 
 #ifndef ASM_OUTPUT_DEBUG_ADDR
-#define ASM_OUTPUT_DEBUG_ADDR(FILE,LABEL)				\
- do {	fprintf ((FILE), "\t%s\t", UNALIGNED_PTR_ASM_OP);		\
-	assemble_name (FILE, LABEL);					\
-  } while (0)
+#define ASM_OUTPUT_DEBUG_ADDR(FILE,LABEL)				 \
+  do									 \
+    {									 \
+      fprintf ((FILE), "\t%s\t", UNALIGNED_PTR_ASM_OP);			 \
+      assemble_name (FILE, LABEL);					 \
+    }									 \
+  while (0)
 #endif
 
 #ifndef ASM_OUTPUT_DEBUG_ADDR_CONST
@@ -352,24 +364,25 @@
    newline is produced.  When flag_verbose_asm is asserted, we add commnetary
    at the end of the line, so we must avoid output of a newline here.  */
 #ifndef ASM_OUTPUT_DEBUG_STRING
-#define ASM_OUTPUT_DEBUG_STRING(FILE,P)	\
-  do {					\
-    register int slen = strlen(P);      \
-    register char *p = (P);  	        \
-    register int i;			\
-    fprintf (FILE, "\t.ascii \"");	\
-    for (i = 0; i < slen; i++)		\
-      {					\
-	  register int c = p[i];	\
-	  if (c == '\"' || c == '\\')	\
-	    putc ('\\', FILE);		\
-	  if (c >= ' ' && c < 0177)	\
-	    putc (c, FILE);		\
-	  else				\
-	    fprintf (FILE, "\\%o", c);	\
-      }					\
-    fprintf (FILE, "\"");		\
-  }					\
+#define ASM_OUTPUT_DEBUG_STRING(FILE,P)		\
+  do						\
+    {						\
+      register int slen = strlen(P);		\
+      register char *p = (P);			\
+      register int i;				\
+      fprintf (FILE, "\t.ascii \"");		\
+      for (i = 0; i < slen; i++)		\
+	{					\
+	  register int c = p[i];		\
+	  if (c == '\"' || c == '\\')		\
+	    putc ('\\', FILE);			\
+	  if (c >= ' ' && c < 0177)		\
+	    putc (c, FILE);			\
+	  else					\
+	    fprintf (FILE, "\\%o", c);		\
+	}					\
+      fprintf (FILE, "\"");			\
+    }						\
   while (0)
 #endif
 
@@ -377,13 +390,14 @@
    macro has the same effect as ASM_OUTPUT_LABELREF, but copies to
    a string rather than writing to a file.  */
 #ifndef ASM_NAME_TO_STRING
-#define ASM_NAME_TO_STRING(STR, NAME) \
-  do {									      \
-      if ((NAME)[0] == '*')						      \
-	strcpy (STR, NAME+1);						      \
-      else								      \
-	strcpy (STR, NAME);                                                   \
-  }                                                                           \
+#define ASM_NAME_TO_STRING(STR, NAME) 		\
+  do						\
+    {						\
+      if ((NAME)[0] == '*')			\
+	strcpy (STR, NAME+1);			\
+      else					\
+	strcpy (STR, NAME);			\
+    }						\
   while (0)
 #endif
 
Index: xcoffout.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/xcoffout.c,v
retrieving revision 1.28
diff -u -r1.28 xcoffout.c
--- xcoffout.c	2001/12/02 00:04:25	1.28
+++ xcoffout.c	2002/01/10 16:48:34
@@ -1,5 +1,5 @@
 /* Output xcoff-format symbol table information from GNU compiler.
-   Copyright (C) 1992, 1994, 1995, 1997, 1998, 1999, 2000
+   Copyright (C) 1992, 1994, 1995, 1997, 1998, 1999, 2000, 2002
    Free Software Foundation, Inc.
 
 This file is part of GCC.
@@ -75,11 +75,13 @@
 ((xcoff_inlining) ? (LINENO) : (LINENO) - xcoff_begin_function_line)
 
 /* Output source line numbers via ".line" rather than ".stabd".  */
-#define ASM_OUTPUT_SOURCE_LINE(FILE,LINENUM) \
-  do {						\
-    if (xcoff_begin_function_line >= 0)		\
-      fprintf (FILE, "\t.line\t%d\n", ABS_OR_RELATIVE_LINENO (LINENUM)); \
-  } while (0)
+#define ASM_OUTPUT_SOURCE_LINE(FILE,LINENUM) 				   \
+  do									   \
+    {									   \
+      if (xcoff_begin_function_line >= 0)				   \
+	fprintf (FILE, "\t.line\t%d\n", ABS_OR_RELATIVE_LINENO (LINENUM)); \
+    }									   \
+  while (0)
 
 #define ASM_OUTPUT_LFB(FILE,LINENUM) \
 {						\
@@ -93,11 +95,13 @@
        ? xcoff_current_include_file : main_input_filename); \
 }
 
-#define ASM_OUTPUT_LFE(FILE,LINENUM) \
-  do {						\
-    fprintf (FILE, "\t.ef\t%d\n", (LINENUM));	\
-    xcoff_begin_function_line = -1;		\
-  } while (0)
+#define ASM_OUTPUT_LFE(FILE,LINENUM) 		\
+  do						\
+    {						\
+      fprintf (FILE, "\t.ef\t%d\n", (LINENUM));	\
+      xcoff_begin_function_line = -1;		\
+    }						\
+  while (0)
 
 #define ASM_OUTPUT_LBB(FILE,LINENUM,BLOCKNUM) \
   fprintf (FILE, "\t.bb\t%d\n", ABS_OR_RELATIVE_LINENO (LINENUM))


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