[committed] Fix microblaze build with rtl checking enabled
Richard Sandiford
richard.sandiford@arm.com
Mon Aug 24 11:14:00 GMT 2015
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
{
More information about the Gcc-patches
mailing list