Patch fixing a typo.

Vladimir Makarov vmakarov@redhat.com
Sat Apr 25 17:00:00 GMT 2009


H.J. Lu wrote:
> On Fri, Apr 24, 2009 at 5:36 PM, H.J. Lu <hjl.tools@gmail.com> wrote:
>   
>>
>> It breaks gcc:
>>
>> cc1: warnings being treated as errors
>> ../../src-trunk/gcc/ira.c: In function 'setup_cover_and_important_classes':
>> ../../src-trunk/gcc/ira.c:763: error: enum conversion in assignment is
>> invalid in C++
>> make[6]: *** [ira.o] Error 1
>>
>>     
>
>   
H.J., thanks for fixing that.  I am really sorry for breaking the bootstrap.
> I am checking it in as an obvious fix.
>
>
> H.J.
> Index: ira.c
> ===================================================================
> --- ira.c	(revision 146749)
> +++ ira.c	(working copy)
> @@ -760,7 +760,7 @@ setup_cover_and_important_classes (void)
>  	      break;
>  	  if (j < CONSTRAINT__LIMIT)
>  	    {
> -	      classes[n++] = i;
> +	      classes[n++] = (enum reg_class) i;
>  	      continue;
>  	    }
>  #endif
>   



More information about the Gcc-patches mailing list