This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Commit: FRV: Remove redundant assert


Hi Guys,

  I am checking in the patch below to remove a redundant assert, now
  that DECL_SECTION_NAME returns a string rather than a tree.

Cheers
  Nick

gcc/ChangeLog
2014-06-26  Nick Clifton  <nickc@redhat.com>

	* config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.

Index: config/frv/frv.c
===================================================================
--- config/frv/frv.c	(revision 212016)
+++ config/frv/frv.c	(working copy)
@@ -9488,7 +9488,6 @@
   section_name = DECL_SECTION_NAME (decl);
   if (section_name)
     {
-      gcc_assert (TREE_CODE (section_name) == STRING_CST);
       if (frv_string_begins_with (section_name, ".sdata"))
 	return true;
       if (frv_string_begins_with (section_name, ".sbss"))
  


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]