This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] default_function_rodata_section bug
- From: Rafael Espindola <espindola at google dot com>
- To: DJ Delorie <dj at redhat dot com>
- Cc: Ian Lance Taylor <iant at google dot com>, gcc-patches at gcc dot gnu dot org
- Date: Wed, 1 Apr 2009 10:05:13 +0100
- Subject: Re: [patch] default_function_rodata_section bug
- References: <200903060515.n265FJ7w021760@greed.delorie.com> <200903312140.n2VLef7U003254@greed.delorie.com> <m3skktkl6k.fsf@google.com> <200904010526.n315Qvba014407@greed.delorie.com>
> 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;