Commit 7958a2a6 by Fariborz Jahanian Committed by Fariborz Jahanian

Fixed problem related to vec_ld in c++ mode.

Approved by Aldy Hernandez.

From-SVN: r81715
parent 8f0b9daa
2004-05-11 Fariborz Jahanian <fjahanian@apple.com>
* config/rs6000/rs6000.c (rs6000_handle_altivec_attribute):
Add const qualifier to altivec vector type if one is needed.
2004-05-11 Paul Brook <paul@codesourcery.com>
* flags.h (flag_short_enums): Update comment.
......
......@@ -15175,6 +15175,9 @@ rs6000_handle_altivec_attribute (tree *node, tree name, tree args,
default: break;
}
if (result && result != type && TYPE_READONLY (type))
result = build_qualified_type (result, TYPE_QUAL_CONST);
*no_add_attrs = true; /* No need to hang on to the attribute. */
if (!result)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment