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]

Re: [patch] default_function_rodata_section bug


> Committed, thanks!

This broke bootstrap:

varasm.c:878: error: assignment discards qualifiers from pointer target type

I am testing the attached patch.

2009-04-01  Rafael Avila de Espindola  <espindola@google.com>

	* varasm.c (default_function_rodata_section): Declare DOT const char*.

Cheers,
-- 
Rafael Avila de Espindola

Google | Gordon House | Barrow Street | Dublin 4 | Ireland
Registered in Dublin, Ireland | Registration Number: 368047
diff --git a/gcc/varasm.c b/gcc/varasm.c
index c706a86..16d8782 100644
--- a/gcc/varasm.c
+++ b/gcc/varasm.c
@@ -869,7 +869,7 @@ default_function_rodata_section (tree decl)
 
       if (DECL_ONE_ONLY (decl) && HAVE_COMDAT_GROUP)
         {
-	  char *dot;
+	  const char *dot;
 	  size_t len;
 	  char* rname;
 

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