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]

Re[4]: [Patch Ping] [RFC] Alias export patch


> `merge_ext_alias_set_partitions':../../trunk/gcc/alias.c:1322:
> undefined reference to `valid_ext_alias_set_part_num_p'
> libbackend.a(alias.o):../../trunk/gcc/alias.c:1322: more undefined
> references to `valid_ext_alias_set_part_num_p' follow

Sorry, we misunderstood the way gcc_assert works with ENABLE_CHECKING.
Shouldn't the function call in gcc_assert be optimized before linking?

Here's the fix along with the new patch.

-- 
Best regards,
 Dmitry

 
--- gcc/gcc/alias.c     2006-03-14 18:41:09.000000000 +0300
+++ gcc/gcc/alias.c     2006-03-15 12:32:39.000000000 +0300
@@ -1228,7 +1228,6 @@
   return set;
 }

-#ifdef ENABLE_CHECKING
 /* True if N can be an alias set partition number.  Used only in asserts.  */

 static bool
@@ -1237,7 +1236,6 @@
   return ((n >= 0)
          && (n < (HOST_WIDE_INT) VARRAY_SIZE (cfun->ext_alias_set_partitions)))
;
 }
-#endif

 /* Returns "partition number" for extended alias set.  */

Attachment: propagate-alias-info.diff.txt
Description: Text document


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