diff mbox

[committed] Fix microblaze build with rtl checking enabled

Message ID 878u917xec.fsf@e105548-lin.cambridge.arm.com
State New
Headers show

Commit Message

Richard Sandiford Aug. 24, 2015, 11:12 a.m. UTC
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 mbox

Patch

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
     {