This is the mail archive of the gcc-bugs@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]

[Bug target/14899] [3.5 Regression] wrong code due to change in compatibility rules for vector types


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-05-05 07:23 -------
Subject: Bug 14899

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	bonzini@gcc.gnu.org	2004-05-05 07:23:14

Modified files:
	gcc            : ChangeLog 

Log message:
	gcc/ChangeLog:
	2004-05-04  Paolo Bonzini  <bonzini@gnu.org>
	Richard Henderson  <rth@redhat.com>
	
	PR target/14899
	
	* c-common.c (vector_types_convertible_p): New function.
	* c-typeck.c (comptypes): Recurse on vector types.
	(convert_for_assignment): Use vector_types_convertible_p.
	(digest_init): Use vector_types_convertible_p to check
	validness of constant vector initializers; otherwise treat
	them as scalars.
	* tree.c (make_or_reuse_type): New.
	(build_common_tree_nodes): Use it.
	* cp/call.c (standard_conversion): Likewise.
	* cp/typeck.c (comptypes): Recurse on vector types.
	(convert_for_assignment): Use vector_types_convertible_p.
	* config/rs6000/rs6000.c (build_opaque_vector_type):
	New function.
	(rs6000_init_builtins): Use it.
	
	gcc/testsuite/ChangeLog:
	2004-05-04  Paolo Bonzini  <bonzini@gnu.org>
	
	* g++.dg/ext/spe1.C: New testcase.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.3573&r2=2.3574



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14899


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