From 030b9d905936aba9ba5957a9576e7e34ebdee4e1 Mon Sep 17 00:00:00 2001 From: Sandra Loosemore Date: Mon, 29 Jun 2015 13:01:52 -0400 Subject: [PATCH] nios2.c (nios2_delegitimize_address): Make assert less restrictive. 2015-06-29 Sandra Loosemore gcc/ * config/nios2/nios2.c (nios2_delegitimize_address): Make assert less restrictive. From-SVN: r225137 --- gcc/ChangeLog | 5 +++++ gcc/config/nios2/nios2.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0de1eadae55..66de8dd8e18 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-06-29 Sandra Loosemore + + * config/nios2/nios2.c (nios2_delegitimize_address): Make + assert less restrictive. + 2015-06-29 Manuel López-Ibáñez PR fortran/66605 diff --git a/gcc/config/nios2/nios2.c b/gcc/config/nios2/nios2.c index 0e9c40bf9ed..832b05d46f6 100644 --- a/gcc/config/nios2/nios2.c +++ b/gcc/config/nios2/nios2.c @@ -1920,7 +1920,7 @@ nios2_delegitimize_address (rtx x) case UNSPEC_LOAD_TLS_IE: case UNSPEC_ADD_TLS_LE: x = XVECEXP (XEXP (x, 0), 0, 0); - gcc_assert (GET_CODE (x) == SYMBOL_REF); + gcc_assert (CONSTANT_P (x)); break; } } -- 2.30.2