Commit 4f538d42 by Ulrich Weigand Committed by Ulrich Weigand

rs6000.c (rs6000_handle_altivec_attribute): Propagate all type qualifiers from…

rs6000.c (rs6000_handle_altivec_attribute): Propagate all type qualifiers from element type to vector type.

ChangeLog:

	* config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Propagate
	all type qualifiers from element type to vector type.

testsuite/ChangeLog:

	* gcc.target/powerpc/altivec-volatile.c: New test.

Co-Authored-By: Andrew Pinski <andrew_pinski@playstation.sony.com>

From-SVN: r139569
parent 7cede643
2008-08-25 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
* config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Propagate
all type qualifiers from element type to vector type.
2008-08-25 David Daney <ddaney@avtrex.com> 2008-08-25 David Daney <ddaney@avtrex.com>
* config/mips/mips.md (immediate_insn): Move up in file, fix * config/mips/mips.md (immediate_insn): Move up in file, fix
......
...@@ -20294,8 +20294,10 @@ rs6000_handle_altivec_attribute (tree *node, ...@@ -20294,8 +20294,10 @@ rs6000_handle_altivec_attribute (tree *node,
default: break; default: break;
} }
if (result && result != type && TYPE_READONLY (type)) /* Propagate qualifiers attached to the element type
result = build_qualified_type (result, TYPE_QUAL_CONST); onto the vector type. */
if (result && result != type && TYPE_QUALS (type))
result = build_qualified_type (result, TYPE_QUALS (type));
*no_add_attrs = true; /* No need to hang on to the attribute. */ *no_add_attrs = true; /* No need to hang on to the attribute. */
......
2008-08-25 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
Andrew Pinski <andrew_pinski@playstation.sony.com>
* gcc.target/powerpc/altivec-volatile.c: New test.
2008-08-25 Daniel Kraft <d@domob.eu> 2008-08-25 Daniel Kraft <d@domob.eu>
* gfortran.dg/extends_7.f03: New test. * gfortran.dg/extends_7.f03: New test.
......
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