This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[committed] Fix microblaze build with rtl checking enabled
- From: Richard Sandiford <richard dot sandiford at arm dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Mon, 24 Aug 2015 12:12:43 +0100
- Subject: [committed] Fix microblaze build with rtl checking enabled
- Authentication-results: sourceware.org; auth=none
This typo didn't matter for normal builds because INTVAL provides the
missing brackets. It didn't build with rtl checking enabled because
the __extension__ got in the way.
Tested on microblaze-elf and committed as obvious.
Thanks,
Richard
gcc/
* config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
cast syntax.
diff --git a/gcc/config/microblaze/microblaze.c b/gcc/config/microblaze/microblaze.c
index 40a659a..6e7745a 100644
--- a/gcc/config/microblaze/microblaze.c
+++ b/gcc/config/microblaze/microblaze.c
@@ -661,7 +661,7 @@ microblaze_classify_unspec (struct microblaze_address_info *info, rtx x)
else if (XINT (x, 1) == UNSPEC_TLS)
{
info->type = ADDRESS_TLS;
- info->tls_type = tls_reloc INTVAL(XVECEXP(x, 0, 1));
+ info->tls_type = tls_reloc (INTVAL (XVECEXP (x, 0, 1)));
}
else
{