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 1/3] read-rtl build fix


From: Andrew Morton <akpm@osdl.org>

../../gcc-svn/gcc/read-rtl.c: In function 'join_c_conditions':
../../gcc-svn/gcc/read-rtl.c:789: warning: assignment discards qualifiers from pointer target type
../../gcc-svn/gcc/read-rtl.c:790: warning: assignment discards qualifiers from pointer target type


Signed-off-by: Andrew Morton <akpm@osdl.org>
---

 gcc/read-rtl.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff -puN gcc/read-rtl.c~read-rtl-build-fix gcc/read-rtl.c
--- gcc-svn/gcc/read-rtl.c~read-rtl-build-fix	2006-03-24 21:57:27.000000000 -0800
+++ gcc-svn-akpm/gcc/read-rtl.c	2006-03-24 21:57:53.000000000 -0800
@@ -786,8 +786,8 @@ join_c_conditions (const char *cond1, co
 
   result = concat ("(", cond1, ") && (", cond2, ")", NULL);
   obstack_ptr_grow (&joined_conditions_obstack, result);
-  obstack_ptr_grow (&joined_conditions_obstack, cond1);
-  obstack_ptr_grow (&joined_conditions_obstack, cond2);
+  obstack_ptr_grow (&joined_conditions_obstack, (char *)cond1);
+  obstack_ptr_grow (&joined_conditions_obstack, (char *)cond2);
   entry = XOBFINISH (&joined_conditions_obstack, const void **);
   *htab_find_slot (joined_conditions, entry, INSERT) = entry;
   return result;
_


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