This is the mail archive of the gcc@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: Aliasing violation generated by fold_builtin_memcmp?


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~


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