This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Aliasing violation generated by fold_builtin_memcmp?
- From: Richard Henderson <rth at redhat dot com>
- To: Ulrich Weigand <uweigand at de dot ibm dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 29 Sep 2005 18:29:51 -0700
- Subject: Re: Aliasing violation generated by fold_builtin_memcmp?
- References: <200509300008.j8U08IT3029381@53v30g15.boeblingen.de.ibm.com>
On Fri, Sep 30, 2005 at 02:08:18AM +0200, Ulrich Weigand wrote:
> tree cst_uchar_node = build_type_variant (unsigned_char_type_node, 1, 0);
> tree cst_uchar_ptr_node = build_pointer_type (cst_uchar_node);
...
> Any suggestions how to fix this?
Try
cst_uchar_ptr_node
= build_pointer_type_for_mode (cst_uchar_node, ptr_mode, true);
which is apparently in use by the Ada front end, but only if a
certain pragma is given. Dunno how reliably that's likely to work.
r~