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 fixing a typo.


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


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