Fixed problem related to vec_ld in c++ mode.

Approved by Aldy Hernandez.

From-SVN: r81715
This commit is contained in:
Fariborz Jahanian 2004-05-11 20:28:12 +00:00 committed by Fariborz Jahanian
parent 8f0b9daaa2
commit 7958a2a62b
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,8 @@
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.

View File

@ -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)