gcc/ChangeLog
2004-03-16 Paolo Bonzini <bonzini@gnu.org>
* c-common.c (c_common_type_for_mode): Build vector types on
demand.
(handle_mode_attribute): Deprecate using the mode attribute
to create vector types. Fix indentation.
(vector_type_node_list): Remove.
(handle_vector_size_attribute): Create vector types on demand.
Strip a NON_LVALUE_EXPR from the attribute if there is one.
* c-typeck.c (comptypes): Make vector types compatible if they
have the same underlying mode.
(convert_for_assignment): Use comptypes to convert between
vector types.
* tree.c (build_common_tree_nodes_2): Do not create vector types.
* config/arm/arm.c (arm_init_iwmmxt_builtins): Create necessary
vector types.
* tree.h: Remove vector types.
* config/i386/i386.c (i386_init_mmx_sse_builtins): Likewise.
* config/rs6000/rs6000.c (rs6000_init_builtins): Likewise.
(V16QI_type_node, V2SI_type_node, V2SF_type_node, V4HI_type_node,
V4SI_type_node, V4SF_type_node, V8HI_type_node): New globals.
* doc/extend.texi (Vector Types): Document how to use the
vector_size attribute to create vectors, rather than mode.
* config/arm/mmintrin.h: Use vector_size attribute, not mode.
* config/i386/emmintrin.h: Likewise.
* config/i386/mmintrin.h: Likewise.
* config/i386/xmmintrin.h: Likewise.
* config/sh/ushmedia.h: Likwise.
testsuite/ChangeLog
2004-03-16 Paolo Bonzini <bonzini@gnu.org>
* g++.dg/eh/simd-1.C: Use vector_size attribute, not mode.
* g++.dg/eh/simd-2.C: Likewise.
* g++.dg/init/array10.C: Likewise.
* gcc.c-torture/compile/simd-1.c: Likewise.
* gcc.c-torture/compile/simd-2.c: Likewise.
* gcc.c-torture/compile/simd-3.c: Likewise.
* gcc.c-torture/compile/simd-4.c: Likewise.
* gcc.c-torture/compile/simd-6.c: Likewise.
* gcc.c-torture/execute/simd-1.c: Likewise.
* gcc.c-torture/execute/simd-2.c: Likewise.
* gcc.dg/compat/vector-defs.h: Likewise.
* gcc.dg/20020531-1.c: Likewise.
* gcc.dg/altivec-3.c: Likewise.
* gcc.dg/altivec-4.c: Likewise.
* gcc.dg/altivec-varargs-1.c: Likewise.
* testsuite/gcc.dg/compat/vector-defs.h: Likewise.
* gcc.dg/i386-mmx-3.c: Likewise.
* gcc.dg/i386-sse-4.c: Likewise.
* gcc.dg/i386-sse-5.c: Likewise.
* gcc.dg/i386-sse-8.c: Likewise.
* gcc.dg/simd-1.c: Likewise.
* gcc.dg/20030218-1.c: Likewise. Plus, do not declare
__ev64_opaque__ since the machine description provides it.
Index: c-common.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/c-common.c,v
retrieving revision 1.487
diff -u -r1.487 c-common.c
--- c-common.c 26 Feb 2004 01:24:37 -0000 1.487
+++ c-common.c 10 Mar 2004 10:25:28 -0000
@@ -1874,38 +1874,12 @@
if (mode == TYPE_MODE (build_pointer_type (integer_type_node)))
return unsignedp ? make_unsigned_type (mode) : make_signed_type (mode);
- switch (mode)
+ if (VECTOR_MODE_P (mode))
{
- case V16QImode:
From-SVN: r79544
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| cleanup1.C | Loading commit data... | |
| cleanup2.C | Loading commit data... | |
| cond1.C | Loading commit data... | |
| cond2.C | Loading commit data... | |
| crossjump1.C | Loading commit data... | |
| ctor1.C | Loading commit data... | |
| ctor2.C | Loading commit data... | |
| dead1.C | Loading commit data... | |
| delayslot1.C | Loading commit data... | |
| dtor1.C | Loading commit data... | |
| dtor2.C | Loading commit data... | |
| elide1.C | Loading commit data... | |
| elide2.C | Loading commit data... | |
| filter1.C | Loading commit data... | |
| filter2.C | Loading commit data... | |
| forced1.C | Loading commit data... | |
| forced2.C | Loading commit data... | |
| forced3.C | Loading commit data... | |
| forced4.C | Loading commit data... | |
| ia64-1.C | Loading commit data... | |
| loop1.C | Loading commit data... | |
| loop2.C | Loading commit data... | |
| new1.C | Loading commit data... | |
| nrv1.C | Loading commit data... | |
| omit-frame-pointer.C | Loading commit data... | |
| omit-frame-pointer2.C | Loading commit data... | |
| registers1.C | Loading commit data... | |
| simd-1.C | Loading commit data... | |
| simd-2.C | Loading commit data... | |
| spec1.C | Loading commit data... | |
| spec2.C | Loading commit data... | |
| spec3.C | Loading commit data... | |
| spec4.C | Loading commit data... | |
| spec5.C | Loading commit data... | |
| spec6.C | Loading commit data... | |
| spec7.C | Loading commit data... | |
| stabilize.C | Loading commit data... | |
| synth1.C | Loading commit data... | |
| template1.C | Loading commit data... | |
| template2.C | Loading commit data... | |
| unexpected1.C | Loading commit data... |