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] Whitespace fixes


:ADDPATCH gcc:

	* c-opts.c (c_common_handle_option): Fix whitespace.
	* gthr.h: Ditto.
	* passes.c (rest_of_decl_compilation): Ditto.
	* ipa-struct-reorg.c (do_reorg_1): Fix whitespace in dump output.

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
---
 gcc/ChangeLog          |    7 +++++++
 gcc/c-opts.c           |    6 +++---
 gcc/gthr.h             |    8 ++++----
 gcc/ipa-struct-reorg.c |    2 +-
 gcc/passes.c           |    1 +
 5 files changed, 16 insertions(+), 8 deletions(-)

diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index dde8e88..e1ec238 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,12 @@
 2009-06-04  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
 
+	* c-opts.c (c_common_handle_option): Fix whitespace.
+	* gthr.h: Ditto.
+	* passes.c (rest_of_decl_compilation): Ditto.
+	* ipa-struct-reorg.c (do_reorg_1): Fix whitespace in dump output.
+
+2009-06-04  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
+
 	* c-decl.c (finish_decl): Use bool for variable was_incomplete.
 	(finish_function): Remove erroneous whitespace.
 
diff --git a/gcc/c-opts.c b/gcc/c-opts.c
index df6fdad..112bb18 100644
--- a/gcc/c-opts.c
+++ b/gcc/c-opts.c
@@ -269,7 +269,7 @@ c_common_handle_option (size_t scode, const char *arg, int value)
   /* Prevent resetting the language standard to a C dialect when the driver
      has already determined that we're looking at assembler input.  */
   bool preprocessing_asm_p = (cpp_get_options (parse_in)->lang == CLK_ASM);
- 
+
   switch (code)
     {
     default:
@@ -459,10 +459,10 @@ c_common_handle_option (size_t scode, const char *arg, int value)
       global_dc->warning_as_error_requested = value;
       break;
 
-    case OPT_Werror_implicit_function_declaration: 
+    case OPT_Werror_implicit_function_declaration:
       /* For backward compatibility, this is the same as
 	 -Werror=implicit-function-declaration.  */
-      enable_warning_as_error ("implicit-function-declaration", value, CL_C | CL_ObjC); 
+      enable_warning_as_error ("implicit-function-declaration", value, CL_C | CL_ObjC);
       break;
 
     case OPT_Wformat:
diff --git a/gcc/gthr.h b/gcc/gthr.h
index cd3cc23..2501d74 100644
--- a/gcc/gthr.h
+++ b/gcc/gthr.h
@@ -46,19 +46,19 @@ see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
    The threads interface must define the following macros:
 
      __GTHREAD_ONCE_INIT
-     		to initialize __gthread_once_t
+		to initialize __gthread_once_t
      __GTHREAD_MUTEX_INIT
-     		to initialize __gthread_mutex_t to get a fast
+		to initialize __gthread_mutex_t to get a fast
 		non-recursive mutex.
      __GTHREAD_MUTEX_INIT_FUNCTION
-     		some systems can't initialize a mutex without a
+		some systems can't initialize a mutex without a
 		function call.  On such systems, define this to a
 		function which looks like this:
 		  void __GTHREAD_MUTEX_INIT_FUNCTION (__gthread_mutex_t *)
 		Don't define __GTHREAD_MUTEX_INIT in this case
      __GTHREAD_RECURSIVE_MUTEX_INIT
      __GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION
-     		as above, but for a recursive mutex.
+		as above, but for a recursive mutex.
 
    The threads interface must define the following static functions:
 
diff --git a/gcc/ipa-struct-reorg.c b/gcc/ipa-struct-reorg.c
index 6468d77..a81f741 100644
--- a/gcc/ipa-struct-reorg.c
+++ b/gcc/ipa-struct-reorg.c
@@ -3646,7 +3646,7 @@ do_reorg_1 (void)
 	push_cfun (DECL_STRUCT_FUNCTION (node->decl));
 	current_function_decl = node->decl;
 	if (dump_file)
-	  fprintf (dump_file, "\nFunction to do reorg is  %s: \n",
+	  fprintf (dump_file, "\nFunction to do reorg is %s: \n",
 		   (const char *) IDENTIFIER_POINTER (DECL_NAME (node->decl)));
 	do_reorg_for_func (node);
 	free_dominance_info (CDI_DOMINATORS);
diff --git a/gcc/passes.c b/gcc/passes.c
index 2408668..a365018 100644
--- a/gcc/passes.c
+++ b/gcc/passes.c
@@ -156,6 +156,7 @@ rest_of_decl_compilation (tree decl,
      other attributes such as visibility.  Emit the alias now.  */
   {
     tree alias;
+
     alias = lookup_attribute ("alias", DECL_ATTRIBUTES (decl));
     if (alias)
       {

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