gcc/gcc/doc
Mark Shinwell 00c8e9f613 c.opt: Add -flax-vector-conversions.
gcc/
	* c.opt: Add -flax-vector-conversions.
	* c-typeck.c (convert_for_assignment): Pass flag to
	vector_types_convertible_p to allow emission of note.
	(digest_init): Likewise.
	(comptypes_internal): Use vector_types_convertible_p.
	* c-opts.c: Handle -flax-vector-conversions.
	* c-common.c (flag_lax_vector_conversions): New.
	(vector_types_convertible_p): Unless -flax-vector conversions
	has been passed, disallow conversions between vectors with
	differing numbers of subparts and/or element types.  If such
	a conversion is disallowed, possibly emit a note on the first
	occasion only to inform the user of -flax-vector-conversions.
	The new last argument specifies this.
	* c-common.h (flag_lax_vector_conversions): New.
	(vector_types_convertible_p): Add extra argument.
	* config/i386/i386.c (ix86_init_mmx_sse_builtins): Use
	char_type_node for V*QI type vectors.
	* config/rs6000/rs6000-c.c (altivec_overloaded_builtins):
	Update to satisfy new typechecking rules.
	* config/rs6000/altivec.h (vec_cmple): Use vec_cmpge.
	* doc/invoke.texi (C Dialect Options): Document
	-flax-vector-conversions.

	gcc/cp/
	* call.c (standard_conversion): Pass flag to
	vector_types_convertible_p to disallow emission of note.
	* typeck.c (convert_for_assignment): Pass flag to
	vector_types_convertible_p to allow emission of note.
	(ptr_reasonably_similar): Pass flag to vector_types_convertible_p
	to disallow emission of note.

	gcc/testsuite/
	* gcc.target/i386/20020531-1.c: Use "char" not "unsigned char"
	in __v8qi typedef.
	* gcc.target/powerpc/altivec-vec-merge.c (foo): Add casts.
	* gcc.dg/simd-1.c: Update dg-error directives to reflect new
	compiler behaviour.
	* gcc.dg/simd-5.c: Likewise.
	* gcc.dg/simd-6.c: Likewise.
	* g++.dg/conversion/simd1.C: Likewise.
	* g++.dg/conversion/simd3.C: Likewise.
	* g++.dg/ext/attribute-test-2.C (data): Add "vs" member.
	(main): Use it.

From-SVN: r120572
2007-01-08 09:25:07 +00:00
..
include * doc/include/texinfo.tex: Update to version 2006-11-08.17. 2006-12-05 10:50:57 -08:00
bugreport.texi
c-tree.texi c-common.c (c_common_nodes_and_builtins): Since variants of void_type_node get built before it is given a name... 2007-01-02 14:23:26 +00:00
cfg.texi
collect2.texi
compat.texi
configfiles.texi Makefile.def (target_modules): Add libgcc. 2007-01-04 04:22:37 +00:00
configterms.texi
contrib.texi configure.in (skipdirs): Don't build target-libiberty for SPU. 2006-11-21 01:35:42 +00:00
contribute.texi contribute.texi: Change CVS to SVN and update the corresponding URL. 2006-01-22 04:51:39 +00:00
cpp.texi c-cppbuiltin.c (c_cpp_builtins): __GXX_EXPERIMENTAL_CPP0X__ to __GXX_EXPERIMENTAL_CXX0X__. 2007-01-05 21:24:16 +00:00
cppenv.texi
cppinternals.texi cpp.texi, [...] (@dircategory): Use "Software development" instead of "Programming"... 2006-06-17 23:25:16 +00:00
cppopts.texi invoke.texi (-Wno-deprecated-declarations): Fixup use of pxref. 2006-08-16 20:36:23 +00:00
extend.texi arm.c, [...]: Fix comment typos. 2007-01-08 01:17:57 +00:00
fragments.texi
frontends.texi
gcc.texi cpp.texi, [...] (@dircategory): Use "Software development" instead of "Programming"... 2006-06-17 23:25:16 +00:00
gccint.texi loop.texi: New file. 2006-09-28 12:02:11 +00:00
gcov.texi gcov.texi: Add formatting to "Invoking gcov" section head. 2006-10-04 15:40:45 -07:00
gnu.texi
gty.texi gty.texi: Remove instructions for adding a dependency on s-gtype. 2005-12-07 21:52:18 +10:30
headerdirs.texi
hostconfig.texi re PR driver/20425 (-print-search-dirs doesn't honor mutil-os/multilib settings) 2005-12-16 20:16:22 +10:30
implement-c.texi re PR middle-end/26306 (ICE on volatile array with non-constant bounds) 2006-11-16 21:25:16 +00:00
install-old.texi
install.texi install.texi (Final install): Document the fact that the GNAT runtime should not be stripped. 2007-01-05 14:40:05 +00:00
install.texi2html * doc/install.texi2html: Use set -e. 2006-02-21 12:06:31 +00:00
interface.texi
invoke.texi c.opt: Add -flax-vector-conversions. 2007-01-08 09:25:07 +00:00
languages.texi
libgcc.texi extend.texi (__builtin_bswap32): Document. 2006-11-01 05:14:40 +00:00
loop.texi loop.texi: Document number_of_latch_executions and number_of_cond_exit_executions. 2006-12-10 23:34:20 +00:00
makefile.texi sourcebuild.texi, [...]: Added mention of "make pdf" target, and Texinfo requirements for same. 2006-10-16 12:51:55 -07:00
md.texi * doc/extend.texi, doc/invoke.texi, doc/md.texi: Fix typos. 2006-12-02 02:06:52 +00:00
objc.texi * doc/objc.texi (Type encoding): Fix typo. 2005-12-18 09:49:15 +00:00
options.texi arm.opt (target_fpe_name): Remove VarExists. 2006-05-17 12:19:02 -07:00
passes.texi passes.texi: remove docs about "redundant PHI removal". 2006-12-12 21:09:46 +01:00
portability.texi
rtl.texi cfgexpand.c (construct_exit_block): Don't disturb end of last BB. 2006-11-27 15:07:10 +00:00
service.texi
sourcebuild.texi sourcebuild.texi (Test Directives): Add output-exists and output-exists-not. 2006-11-07 00:08:32 +00:00
standards.texi contrib.texi, [...]: Standardize on "GNU Fortran" as the official name of the Fortran compiler. 2006-10-16 13:00:56 -07:00
tm.texi rtlanal.c (struct subreg_info, [...]): New. 2006-12-20 16:25:00 +00:00
tree-ssa.texi [multiple changes] 2006-12-11 20:48:51 -05:00
trouble.texi re PR c/9072 (-Wconversion should be split into two distinct flags) 2006-11-23 18:39:32 +00:00