This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Fix i386 REG_CLASS_NAMES
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Uros Bizjak <ubizjak at gmail dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Mon, 13 Feb 2017 20:45:38 +0100
- Subject: [PATCH] Fix i386 REG_CLASS_NAMES
- Authentication-results: sourceware.org; auth=none
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
Hi!
Unlike the previous patch that is mainly about diagnostics or dump
text, this one is something that could potentially crash the compiler,
the missing , in between means MOD4_SSE_REGS class has
MOD4_SSE_REGSALL_REGS name and ALL_REGS class will have NULL or whatever.
Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk?
2017-02-13 Jakub Jelinek <jakub@redhat.com>
* config/i386/i386.h (REG_CLASS_NAMES): Add , in between
"MOD4_SSE_REGS" and "ALL_REGS".
--- gcc/config/i386/i386.h.jj 2017-02-07 16:40:46.000000000 +0100
+++ gcc/config/i386/i386.h 2017-02-13 11:31:46.020532661 +0100
@@ -1427,7 +1427,7 @@ enum reg_class
"FLOAT_INT_SSE_REGS", \
"MASK_EVEX_REGS", \
"MASK_REGS", \
- "MOD4_SSE_REGS" \
+ "MOD4_SSE_REGS", \
"ALL_REGS" }
/* Define which registers fit in which classes. This is an initializer
Jakub