ChangeLog.gcc43 revision 260396
12007-08-08  Andrew Haley  <aph@redhat.com> (r128087)
2
3	* config/arm/libunwind.S (UNWIND_WRAPPER _Unwind_Backtrace): New.
4	* config/arm/unwind-arm.h (__gnu_Unwind_Backtrace): New.
5	* config/arm/unwind-arm.c (__gnu_Unwind_Backtrace): New.
6
72007-07-12  Geoffrey Keating  <geoffk@apple.com> (r126588)
8
9	* builtins.c (get_pointer_alignment): Honor DECL_ALIGN on a
10	FUNCTION_DECL.
11	* tree.c (build_decl_stat): Move code from here...
12	(make_node_stat): ... to here.  Don't uselessly clear DECL_USER_ALIGN.
13	(expr_align): Honor DECL_ALIGN on a FUNCTION_DECL.  Add comment
14	about using DECL_ALIGN of LABEL_DECL and CONST_DECL.
15	* tree.h (DECL_USER_ALIGN): Fix misplaced comment.
16	* varasm.c (assemble_start_function): Use DECL_ALIGN instead of
17	FUNCTION_BOUNDARY.
18
192007-07-09  Geoffrey Keating  <geoffk@apple.com> (r126529)
20
21	PR 32617
22	* c-common.c (c_alignof_expr): Look at DECL_ALIGN of
23	FUNCTION_DECLs.
24	(handle_aligned_attribute): Allow use on FUNCTION_DECLs.
25	* varasm.c (assemble_start_function): Honor DECL_ALIGN
26	for FUNCTION_DECLs.  Don't use align_functions_log if
27	DECL_USER_ALIGN.
28	* print-tree.c (print_node): Print DECL_ALIGN and DECL_USER_ALIGN
29	even for FUNCTION_DECLs.
30	* c-decl.c (merge_decls): Propagate DECL_ALIGN even for
31	FUNCTION_DECLs.
32	* tree.h (DECL_ALIGN): Update for new location of 'align'.
33	(DECL_FUNCTION_CODE): Update for new location and name of
34	'function_code'.
35	(DECL_OFFSET_ALIGN): Update for new location of 'off_align'.
36	(struct tree_decl_common): Move 'align' and 'off_align' out
37	of union, ensure they're still on a 32-bit boundary.  Remove
38	other fields in union 'u1'.
39	(struct tree_function_decl): Add field 'function_code' replacing
40	'u1.f' in tree_decl_common.
41	* tree.c (build_decl_stat): Set initial value of DECL_ALIGN.
42	* doc/extend.texi (Function Attributes): Add 'aligned' attribute.
43	(Variable Attributes): Cross-reference 'aligned' attribute
44	to Function Attributes.
45	* flags.h (force_align_functions_log): Delete.
46	* toplev.c (force_align_functions_log): Delete.
47
482007-07-06  Josh Conner  <jconner@apple.com> (r126422)
49
50	PR middle-end/32602
51	PR middle-end/32603
52	* calls.c (store_one_arg): Handle arguments which are partially
53	on the stack when detecting argument overlap.
54
552007-07-03  Eric Christopher  <echristo@apple.com> (r126278)
56
57	* doc/cppopts.texi: Add conflicting option note to -dM.
58	* doc/invoke.texi: Add note about possible conflicts with
59	-E for -dCHARS and note that -dM will not produce
60	any results if there is no machine dependent reorg.
61	
622007-06-28  Geoffrey Keating  <geoffk@apple.com> (r126088)
63
64	* doc/invoke.texi (C++ Dialect Options): Document
65	fvisibility-ms-compat.
66	* c.opt (fvisibility-ms-compat): New.
67
682007-06-05  Joerg Wunsch  <j.gnu@uriah.heep.sax.de> (r125346)
69
70	PR preprocessor/23479
71	* doc/extend.texi: Document the 0b-prefixed binary integer
72	constant extension.
73	
742007-05-31  Daniel Berlin  <dberlin@dberlin.org> (r125239)
75
76	* c-typeck.c (build_indirect_ref): Include type in error message.
77	(build_binary_op): Pass types to binary_op_error.
78	* c-common.c (binary_op_error): Take two type arguments, print out
79	types with error.
80	* c-common.h (binary_op_error): Update prototype.
81
822007-05-27  Eric Christopher  <echristo@apple.com> (r125116)
83
84	* config/rs6000/rs6000.c (rs6000_emit_prologue): Update
85	sp_offset depending on stack size. Save r12 depending
86	on registers we're saving later.
87	(rs6000_emit_epilogue): Update sp_offset depending only
88	on stack size.
89
902007-05-24  Richard Sandiford  <rsandifo@nildram.co.uk> (r125037)
91
92	* postreload-gcse.c (reg_changed_after_insn_p): New function.
93	(oprs_unchanged_p): Use it to check all registers in a REG.
94	(record_opr_changes): Look for clobbers in CALL_INSN_FUNCTION_USAGE.
95	(reg_set_between_after_reload_p): Delete.
96	(reg_used_between_after_reload_p): Likewise.
97	(reg_set_or_used_since_bb_start): Likewise.
98	(eliminate_partially_redundant_load): Use reg_changed_after_insn_p
99	and reg_used_between_p instead of reg_set_or_used_since_bb_start.
100	Use reg_set_between_p instead of reg_set_between_after_reload_p.
101	* rtlanal.c (reg_set_p): Check whether REG overlaps
102	regs_invalidated_by_call, rather than just checking the
103	membership of REGNO (REG).
104
1052007-05-18  Geoffrey Keating  <geoffk@apple.com> (r124839)
106 
107	* dwarf2out.c (print_die): Use '%ld' not '%lu' to print a 'long'.
108	(output_die): Use 'unsigned long' with %x.
109	* sched-vis.c (print_value): Use 'unsigned HOST_WIDE_INT' and
110	HOST_WIDE_INT_PRINT_HEX to print HOST_WIDE_INT.
111	* tree-dump.c (dump_pointer): Use 'unsigned long' for %lx.
112
1132007-05-16  Eric Christopher  <echristo@apple.com> (r124763)
114
115       * config/rs6000/rs6000.c (rs6000_emit_prologue): Move altivec register
116        saving after stack push. Set sp_offset whenever we push.
117        (rs6000_emit_epilogue): Move altivec register restore before stack push.
118
1192007-05-03  Ian Lance Taylor  <iant@google.com> (r124381)
120
121	* config/rs6000/rs6000.c (rs6000_override_options): Don't set
122	MASK_PPC_GFXOPT for 8540 or 8548.
123
1242007-05-01  Dwarakanath Rajagopal <dwarak.rajagopal@amd.com> (r124341)
125
126	* doc/invoke.texi: Fix typo, 'AMD Family 10h core' instead of 
127	'AMD Family 10 core'.
128
1292007-05-01  Dwarakanath Rajagopal <dwarak.rajagopal@amd.com> (r124339)
130 
131	* config/i386/i386.c (override_options): Accept k8-sse3, opteron-sse3 
132	and athlon64-sse3 as improved versions of k8, opteron and athlon64 
133	with SSE3 instruction set support.
134	* doc/invoke.texi: Likewise.
135
1362007-05-01  Dwarakanath Rajagopal <dwarak.rajagopal@amd.com> (r124330)
137
138	* config/i386/i386.c (override_options): Tuning 32-byte loop
139	alignment for amdfam10 architecture. Increasing the max loop
140	alignment to 24 bytes.
141
1422007-04-24  Hui-May Chang <hm.chang@apple.com> (r124115)
143
144	* reload1.c (merge_assigned_reloads) : Do not merge a RELOAD_OTHER
145	instruction with a RELOAD_FOR_OPERAND_ADDRESS instruction.
146
1472007-04-16  Lawrence Crowl  <crowl@google.com> (r123909)
148
149	* doc/invoke.texi (Debugging Options): Add documentation for the
150	-femit-struct-debug options -femit-struct-debug-baseonly,
151	-femit-struct-debug-reduced, and
152	-femit-struct-debug-detailed[=...].
153
154	* c-opts.c (c_common_handle_option): Add
155	OPT_femit_struct_debug_baseonly, OPT_femit_struct_debug_reduced,
156	and OPT_femit_struct_debug_detailed_.
157	* c.opt: Add specifications for
158	-femit-struct-debug-baseonly, -femit-struct-debug-reduced,
159	and -femit-struct-debug-detailed[=...].
160	* opts.c (set_struct_debug_option): Parse the
161	-femit-struct-debug-... options.
162	* opts.c (matches_main_base, main_input_basename,
163	main_input_baselength, base_of_path, matches_main_base): Add
164	variables and functions to compare header base name to compilation
165	unit base name.
166	* opts.c (should_emit_struct_debug): Add to determine to emit a
167	structure based on the option.
168	(dump_struct_debug) Also disabled function to debug this
169	function.
170	* opts.c (handle_options): Save the base name of the
171	compilation unit.
172
173	* langhooks-def.h (LANG_HOOKS_GENERIC_TYPE_P): Define.
174        (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add.
175	This hook indicates if a type is generic.  Set it by default
176	to "never generic".
177	* langhooks.h (struct lang_hooks_for_types): Add a new hook
178	to determine if a struct type is generic or not.
179	* cp/cp-tree.h (class_tmpl_impl_spec_p): Declare a C++ hook.
180	* cp/tree.c (class_tmpl_impl_spec_p): Implement the C++ hook.
181	* cp/cp-lang.c (LANG_HOOKS_GENERIC_TYPE_P): Override null C hook
182	with live C++ hook.
183
184	* flags.h (enum debug_info_usage): Add an enumeration to describe
185	a program's use of a structure type.
186	* dwarf2out.c (gen_struct_or_union_type_die): Add a new parameter
187	to indicate the program's usage of the type.  Filter structs based
188	on the -femit-struct-debug-... specification.
189	(gen_type_die): Split into two routines, gen_type_die and
190	gen_type_die_with_usage.  gen_type_die is now a wrapper
191	that assumes direct usage.
192	(gen_type_die_with_usage): Replace calls to gen_type_die
193	with gen_type_die_with_usage adding the program usage of
194	the referenced type.
195	(dwarf2out_imported_module_or_decl): Suppress struct debug
196	information using should_emit_struct_debug when appropriate.
197
1982007-04-12  Richard Guenther  <rguenther@suse.de> (r123736)
199
200	PR tree-optimization/24689
201	PR tree-optimization/31307
202	* fold-const.c (operand_equal_p): Compare INTEGER_CST array
203	indices by value.
204	* gimplify.c (canonicalize_addr_expr): To be consistent with
205	gimplify_compound_lval only set operands two and three of
206	ARRAY_REFs if they are not gimple_min_invariant.  This makes
207	it never at this place.
208	* tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Likewise.
209
2102007-04-07  H.J. Lu  <hongjiu.lu@intel.com> (r123639)
211
212	* config/i386/i386.c (ix86_handle_option): Handle SSSE3.
213
2142007-03-28  Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com> (r123313)
215
216	* config.gcc: Accept barcelona as a variant of amdfam10.
217	* config/i386/i386.c (override_options): Likewise.
218	* doc/invoke.texi: Likewise.
219
2202007-03-12  Seongbae Park <seongbae.park@gmail.com> (r122851)
221
222	* c-decl.c (warn_variable_length_array): New function.
223	Refactored from grokdeclarator to handle warn_vla
224	and handle unnamed array case.
225	(grokdeclarator): Refactored VLA warning case.
226	* c.opt (Wvla): New flag.
227
2282007-03-11  Ian Lance Taylor  <iant@google.com> (r122831 - partial)
229
230	* tree-vrp.c (vrp_int_const_binop): Handle PLUS_EXPR and
231	the *_DIV_EXPR codes correctly with overflow infinities.
232
2332007-02-09  Dwarakanath Rajagopal <dwarak.rajagopal@amd.com> (r121763)
234
235	* config/i386/driver-i386.c: Turn on -mtune=native for AMDFAM10.
236	(bit_SSE4a): New.
237
2382007-02-08  Harsha Jagasia  <harsha.jagasia@amd.com> (r121726)
239
240	* config/i386/xmmintrin.h: Make inclusion of emmintrin.h
241	conditional to __SSE2__.
242	(Entries below should have been added to first ChangeLog
243	entry for amdfam10 dated 2007-02-05)
244	* config/i386/emmintrin.h: Generate #error if __SSE2__ is not
245	defined.
246	* config/i386/pmmintrin.h: Generate #error if __SSE3__ is not
247	defined.
248	* config/i386/tmmintrin.h: Generate #error if __SSSE3__ is not
249	defined.
250
2512007-02-07  Jakub Jelinek  <jakub@redhat.com> (r121687)
252
253	* config/i386/i386.c (override_options): Set PTA_SSSE3 for core2.
254
2552007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com> (r121625)
256
257	* config/i386/athlon.md (athlon_fldxf_k8, athlon_fld_k8,
258	athlon_fstxf_k8, athlon_fst_k8, athlon_fist, athlon_fmov,
259	athlon_fadd_load, athlon_fadd_load_k8, athlon_fadd, athlon_fmul,
260	athlon_fmul_load, athlon_fmul_load_k8, athlon_fsgn,
261	athlon_fdiv_load, athlon_fdiv_load_k8, athlon_fdiv_k8,
262	athlon_fpspc_load, athlon_fpspc, athlon_fcmov_load,
263	athlon_fcmov_load_k8, athlon_fcmov_k8, athlon_fcomi_load_k8,
264	athlon_fcomi, athlon_fcom_load_k8, athlon_fcom): Added amdfam10.
265
2662007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com> (r121625)
267
268	* config/i386/i386.md (x86_sahf_1, cmpfp_i_mixed, cmpfp_i_sse,
269	cmpfp_i_i387, cmpfp_iu_mixed, cmpfp_iu_sse, cmpfp_iu_387,
270	swapsi, swaphi_1, swapqi_1, swapdi_rex64, fix_truncsfdi_sse,
271	fix_truncdfdi_sse, fix_truncsfsi_sse, fix_truncdfsi_sse,
272	x86_fldcw_1, floatsisf2_mixed, floatsisf2_sse, floatdisf2_mixed,
273	floatdisf2_sse, floatsidf2_mixed, floatsidf2_sse,
274	floatdidf2_mixed, floatdidf2_sse, muldi3_1_rex64, mulsi3_1,
275	mulsi3_1_zext, mulhi3_1, mulqi3_1, umulqihi3_1, mulqihi3_insn,
276	umulditi3_insn, umulsidi3_insn, mulditi3_insn, mulsidi3_insn,
277	umuldi3_highpart_rex64, umulsi3_highpart_insn,
278	umulsi3_highpart_zext, smuldi3_highpart_rex64,
279	smulsi3_highpart_insn, smulsi3_highpart_zext, x86_64_shld,
280	x86_shld_1, x86_64_shrd, sqrtsf2_mixed, sqrtsf2_sse,
281	sqrtsf2_i387, sqrtdf2_mixed, sqrtdf2_sse, sqrtdf2_i387,
282	sqrtextendsfdf2_i387, sqrtxf2, sqrtextendsfxf2_i387,
283	sqrtextenddfxf2_i387): Added amdfam10_decode.
284	
285	* config/i386/athlon.md (athlon_idirect_amdfam10,
286	athlon_ivector_amdfam10, athlon_idirect_load_amdfam10,
287	athlon_ivector_load_amdfam10, athlon_idirect_both_amdfam10,
288	athlon_ivector_both_amdfam10, athlon_idirect_store_amdfam10,
289	athlon_ivector_store_amdfam10): New define_insn_reservation.
290	(athlon_idirect_loadmov, athlon_idirect_movstore): Added
291	amdfam10.
292
2932007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com> (r121625)
294
295	* config/i386/athlon.md (athlon_call_amdfam10,
296	athlon_pop_amdfam10, athlon_lea_amdfam10): New
297	define_insn_reservation.
298	(athlon_branch, athlon_push, athlon_leave_k8, athlon_imul_k8,
299	athlon_imul_k8_DI, athlon_imul_mem_k8, athlon_imul_mem_k8_DI,
300	athlon_idiv, athlon_idiv_mem, athlon_str): Added amdfam10.
301
3022007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com> (r121625)
303
304	* config/i386/athlon.md (athlon_sseld_amdfam10,
305	athlon_mmxld_amdfam10, athlon_ssest_amdfam10,
306	athlon_mmxssest_short_amdfam10): New define_insn_reservation.
307
3082007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com> (r121625)
309
310	* config/i386/athlon.md (athlon_sseins_amdfam10): New
311	define_insn_reservation.
312	* config/i386/i386.md (sseins): Added sseins to define_attr type
313	and define_attr unit.
314	* config/i386/sse.md: Set type attribute to sseins for insertq
315	and insertqi.
316
3172007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com> (r121625)
318
319	* config/i386/athlon.md (sselog_load_amdfam10, sselog_amdfam10,
320	ssecmpvector_load_amdfam10, ssecmpvector_amdfam10,
321	ssecomi_load_amdfam10, ssecomi_amdfam10,
322	sseaddvector_load_amdfam10, sseaddvector_amdfam10): New
323	define_insn_reservation.
324	(ssecmp_load_k8, ssecmp, sseadd_load_k8, seadd): Added amdfam10.
325
3262007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com> (r121625)
327
328	* config/i386/athlon.md (cvtss2sd_load_amdfam10,
329	cvtss2sd_amdfam10, cvtps2pd_load_amdfam10, cvtps2pd_amdfam10,
330	cvtsi2sd_load_amdfam10, cvtsi2ss_load_amdfam10,
331	cvtsi2sd_amdfam10, cvtsi2ss_amdfam10, cvtsd2ss_load_amdfam10,
332	cvtsd2ss_amdfam10, cvtpd2ps_load_amdfam10, cvtpd2ps_amdfam10,
333	cvtsX2si_load_amdfam10, cvtsX2si_amdfam10): New 
334	define_insn_reservation.
335
336	* config/i386/sse.md (cvtsi2ss, cvtsi2ssq, cvtss2si,
337	cvtss2siq, cvttss2si, cvttss2siq, cvtsi2sd, cvtsi2sdq,
338	cvtsd2si, cvtsd2siq, cvttsd2si, cvttsd2siq,
339	cvtpd2dq, cvttpd2dq, cvtsd2ss, cvtss2sd,
340	cvtpd2ps, cvtps2pd): Added amdfam10_decode attribute.
341
3422007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com> (r121625)
343
344	* config/i386/athlon.md (athlon_ssedivvector_amdfam10,
345	athlon_ssedivvector_load_amdfam10, athlon_ssemulvector_amdfam10,
346	athlon_ssemulvector_load_amdfam10): New define_insn_reservation.
347	(athlon_ssediv, athlon_ssediv_load_k8, athlon_ssemul,
348	athlon_ssemul_load_k8): Added amdfam10.
349
3502007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com> (r121625)
351
352	* config/i386/i386.h (TARGET_SSE_UNALIGNED_MOVE_OPTIMAL): New macro.
353	(x86_sse_unaligned_move_optimal): New variable.
354	
355	* config/i386/i386.c (x86_sse_unaligned_move_optimal): Enable for  
356	m_AMDFAM10.
357	(ix86_expand_vector_move_misalign): Add code to generate movupd/movups
358	for unaligned vector SSE double/single precision loads for AMDFAM10.
359
3602007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com> (r121625)
361
362	* config/i386/i386.h (TARGET_AMDFAM10): New macro.
363	(TARGET_CPU_CPP_BUILTINS): Add code for amdfam10.
364	Define TARGET_CPU_DEFAULT_amdfam10.
365	(TARGET_CPU_DEFAULT_NAMES): Add amdfam10.
366	(processor_type): Add PROCESSOR_AMDFAM10.	
367	
368	* config/i386/i386.md: Add amdfam10 as a new cpu attribute to match
369	processor_type in config/i386/i386.h.
370	Enable imul peepholes for TARGET_AMDFAM10.
371	
372	* config.gcc: Add support for --with-cpu option for amdfam10.
373	
374	* config/i386/i386.c (amdfam10_cost): New variable.
375	(m_AMDFAM10): New macro.
376	(m_ATHLON_K8_AMDFAM10): New macro.
377	(x86_use_leave, x86_push_memory, x86_movx, x86_unroll_strlen,
378	x86_cmove, x86_3dnow_a, x86_deep_branch, x86_use_simode_fiop,
379	x86_promote_QImode, x86_integer_DFmode_moves,
380	x86_partial_reg_dependency, x86_memory_mismatch_stall, 
381	x86_accumulate_outgoing_args, x86_arch_always_fancy_math_387,
382	x86_sse_partial_reg_dependency, x86_sse_typeless_stores,
383	x86_use_ffreep, x86_use_incdec, x86_four_jump_limit,
384	x86_schedule, x86_use_bt, x86_cmpxchg16b, x86_pad_returns):
385	Enable/disable for amdfam10.
386	(override_options): Add amdfam10_cost to processor_target_table.
387	Set up PROCESSOR_AMDFAM10 for amdfam10 entry in 
388	processor_alias_table.
389	(ix86_issue_rate): Add PROCESSOR_AMDFAM10.
390	(ix86_adjust_cost): Add code for amdfam10.
391
3922007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com> (r121625)
393	
394	* config/i386/i386.opt: Add new Advanced Bit Manipulation (-mabm)
395	instruction set feature flag. Add new (-mpopcnt) flag for popcnt 
396	instruction. Add new SSE4A (-msse4a) instruction set feature flag.
397	* config/i386/i386.h: Add builtin definition for SSE4A.
398	* config/i386/i386.md: Add support for ABM instructions 
399	(popcnt and lzcnt).
400	* config/i386/sse.md: Add support for SSE4A instructions
401	(movntss, movntsd, extrq, insertq).
402	* config/i386/i386.c: Add support for ABM and SSE4A builtins.
403	Add -march=amdfam10 flag.
404	* config/i386/ammintrin.h: Add support for SSE4A intrinsics.
405	* doc/invoke.texi: Add documentation on flags for sse4a, abm, popcnt
406	and amdfam10.
407	* doc/extend.texi: Add documentation for SSE4A builtins.
408
4092007-01-24  Jakub Jelinek  <jakub@redhat.com> (r121140)
410
411	* config/i386/i386.h (x86_cmpxchg16b): Remove const.
412	(TARGET_CMPXCHG16B): Define to x86_cmpxchg16b.
413	* config/i386/i386.c (x86_cmpxchg16b): Remove const.
414	(override_options): Add PTA_CX16 flag.  Set x86_cmpxchg16b
415	for CPUs that have PTA_CX16 set.
416
4172007-01-18  Josh Conner  <jconner@apple.com> (r120902)
418
419	PR target/30485
420	* config/rs6000/rs6000.c (rs6000_emit_vector_compare): Add
421	support for UNLE, UNLT, UNGE, and UNGT.
422
4232007-01-17  Eric Christopher  <echristo@apple.com> (r120846)
424
425	* config.gcc: Support core2 processor.
426
4272007-01-11  Joseph Myers  <joseph@codesourcery.com> (r120688)
428
429	* c-common.c (vector_types_convertible_p): Treat opaque types as
430	always convertible if they have the same size, but not otherwise.
431
4322007-01-11  Joseph Myers  <joseph@codesourcery.com> (r120688)
433
434	* c-common.c (vector_types_convertible_p): Treat opaque types as
435	always convertible if they have the same size, but not otherwise.
436
4372007-01-08  Geoffrey Keating  <geoffk@apple.com> (r120611)
438 
439	* target.h (struct gcc_target): New field library_rtti_comdat.
440	* target-def.h (TARGET_CXX_LIBRARY_RTTI_COMDAT): New.
441	(TARGET_CXX): Add TARGET_CXX_LIBRARY_RTTI_COMDAT.
442	* doc/tm.texi (C++ ABI): Document TARGET_CXX_LIBRARY_RTTI_COMDAT.
443	* config/darwin.h (TARGET_CXX_LIBRARY_RTTI_COMDAT): Define.
444
4452007-01-08  Mark Shinwell  <shinwell@codesourcery.com> (r120572)
446
447	* c.opt: Add -flax-vector-conversions.
448	* c-typeck.c (convert_for_assignment): Pass flag to
449	vector_types_convertible_p to allow emission of note.
450	(digest_init): Likewise.
451	* c-opts.c: Handle -flax-vector-conversions.
452	* c-common.c (flag_lax_vector_conversions): New.
453	(vector_types_convertible_p): Unless -flax-vector conversions
454	has been passed, disallow conversions between vectors with
455	differing numbers of subparts and/or element types.  If such
456	a conversion is disallowed, possibly emit a note on the first
457	occasion only to inform the user of -flax-vector-conversions.
458	The new last argument specifies this.
459	* c-common.h (flag_lax_vector_conversions): New.
460	(vector_types_convertible_p): Add extra argument.
461	* config/i386/i386.c (ix86_init_mmx_sse_builtins): Use
462	char_type_node for V*QI type vectors.
463	* config/rs6000/rs6000-c.c (altivec_overloaded_builtins):
464	Update to satisfy new typechecking rules.
465	* config/rs6000/altivec.h (vec_cmple): Use vec_cmpge, for both
466	C and C++ variants.
467	* doc/invoke.texi (C Dialect Options): Document
468	-flax-vector-conversions.
469
4702007-01-05  Manuel Lopez-Ibanez  <manu@gcc.gnu.org> (r120505)
471
472	PR c/19978
473	* tree.h (TREE_OVERFLOW_P): New.
474	* c-typeck.c (parser_build_unary_op): Warn only if result
475	overflowed and operands did not.
476	(parser_build_binary_op): Likewise.
477	(convert_for_assignment): Remove redundant overflow_warning.
478	* c-common.c (overflow_warning): Don't check or set TREE_OVERFLOW.
479
4802006-12-13  Ian Lance Taylor  <iant@google.com> (r119855)
481
482	PR c++/19564
483	PR c++/19756
484	* c-typeck.c (parser_build_binary_op): Move parentheses warnings
485	to warn_about_parentheses in c-common.c.
486	* c-common.c (warn_about_parentheses): New function.
487	* c-common.h (warn_about_parentheses): Declare.
488	* doc/invoke.texi (Warning Options): Update -Wparentheses
489	description.
490
4912006-12-02  H.J. Lu  <hongjiu.lu@intel.com> (r119454 - partial)
492
493	PR target/30040
494	* config/i386/driver-i386.c (bit_SSSE3): New.
495
4962006-11-27  Uros Bizjak  <ubizjak@gmail.com> (r119260)
497
498	* config/i386/i386.c (x86_ext_80387_constants): Add m_K8, m_CORE2
499	and m_GENERIC64.
500
5012006-11-18  Vladimir Makarov  <vmakarov@redhat.com> (r118973)
502
503	* doc/invoke.texi (core2): Add item.
504
505	* config/i386/i386.h (TARGET_CORE2, TARGET_CPU_DEFAULT_core2): New
506	macros.
507	(TARGET_CPU_CPP_BUILTINS): Add code for core2.
508	(TARGET_CPU_DEFAULT_generic): Change value.
509	(TARGET_CPU_DEFAULT_NAMES): Add core2.
510	(processor_type): Add new constant PROCESSOR_CORE2.
511
512	* config/i386/i386.md (cpu): Add core2.
513
514	* config/i386/i386.c (core2_cost): New initialized variable.
515	(m_CORE2): New macro.
516	(x86_use_leave, x86_push_memory, x86_movx, x86_unroll_strlen,
517	x86_deep_branch, x86_partial_reg_stall, x86_use_simode_fiop,
518	x86_use_cltd, x86_promote_QImode, x86_sub_esp_4, x86_sub_esp_8,
519	x86_add_esp_4, x86_add_esp_8, x86_integer_DFmode_moves,
520	x86_partial_reg_dependency, x86_memory_mismatch_stall,
521	x86_accumulate_outgoing_args, x86_prologue_using_move,
522	x86_epilogue_using_move, x86_arch_always_fancy_math_387,
523	x86_sse_partial_reg_dependency, x86_rep_movl_optimal,
524	x86_use_incdec, x86_four_jump_limit, x86_schedule,
525	x86_pad_returns): Add m_CORE2.
526	(override_options): Add entries for Core2.
527	(ix86_issue_rate): Add case for Core2.
528	
5292006-11-14  Caroline Tice  <ctice@apple.com> (r118826)
530		
531	* dwarf2out.c (debug_pubtypes_section): New static global variable.
532	(pubname_entry):  Add DEF_VEC_O and DEF_VEC_ALLOC_O statements for
533	this type.
534	(pubname_table):  Redefine as a vector.
535	(pubtype_table):  New static global variable, defined as a vector.
536	(pubname_table_allocated): Remove static global variable.
537	(pubname_table_in_use): Remove static global variable.
538	(PUBNAME_TABLE_INCREMENT): Remove constant.
539	(size_of_pubnames): Add parameter to deal with either pubnames or 
540	pubtypes, and change code to deal with table being a vector.
541	(add_pubname):  Change to deal with table being a vector.
542	(add_pubtype):  New function.
543	(output_pubnames): Add parameter to deal with either pubnames or 
544	pubtypes, and change code to deal with table being a vector.
545	(gen_array_type_die):  Add call to add_pubtype.
546	(gen_enumeration_type_die): Add call to add_pubtype.
547	(gen_struct_or_union_type_die): Add call to add_pubtype.
548	(gen_subroutine_type_die): Add call to add_pubtype.
549	(gen_typedef_die):  Add call to add_pubtype.
550	(dwarf2out_init): Add code to initialize pubname_table and 
551	pubtype_table vectors; also initialize debug_pubtypes_section.
552	(prune_unused_types):  Change to deal with pubnames being a vector.
553	(dwarf2out_finish): Change to deal with pubnames being a vector; add 
554	pubnames table to call to output_pubnames;  Add code to output pubtypes 
555	table if DEBUG_PUBTYPES_SECTION is defined.
556	* config/darwin.c (darwin_file_start):  Add DEBUG_PUBTYPES_SECTION to 
557	debugnames.
558	* config/darwin.h (DEBUG_PUBTYPES_SECTION): Define new global variable.
559
5602006-10-31  Geoffrey Keating  <geoffk@apple.com> (r118356)
561
562	* c-decl.c (grokdeclarator): Don't set DECL_EXTERNAL on
563	inline static functions in c99 mode.
564
565	PR 16622
566	* doc/extend.texi (Inline): Update.
567	* c-tree.h (struct language_function): Remove field 'extern_inline'.
568	* c-decl.c (current_extern_inline): Delete.
569	(pop_scope): Adjust test for an undefined nested function.
570	Add warning about undeclared inline function.
571	(diagnose_mismatched_decls): Update comments.  Disallow overriding
572	of inline functions in a translation unit in C99.  Allow inline
573	declarations in C99 at any time.
574	(merge_decls): Boolize variables.  Handle C99 'extern inline'
575	semantics.
576	(grokdeclarator): Set DECL_EXTERNAL here for functions.  Handle
577	C99 inline semantics.
578	(start_function): Don't clear current_extern_inline.  Don't set
579	DECL_EXTERNAL.
580	(c_push_function_context): Don't push current_extern_inline.
581	(c_pop_function_context): Don't restore current_extern_inline.
582
583	PR 11377
584	* c-typeck.c (build_external_ref): Warn about static variables
585	used in extern inline functions.
586	* c-decl.c (start_decl): Warn about static variables declared
587	in extern inline functions.
588
5892006-10-27  Vladimir Makarov  <vmakarov@redhat.com> (r118090)
590
591	* config/i386/i386.h (TARGET_GEODE):
592	(TARGET_CPU_CPP_BUILTINS): Add code for geode.
593	(TARGET_CPU_DEFAULT_geode): New macro.
594	(TARGET_CPU_DEFAULT_k6, TARGET_CPU_DEFAULT_k6_2,
595	TARGET_CPU_DEFAULT_k6_3, TARGET_CPU_DEFAULT_athlon,
596	TARGET_CPU_DEFAULT_athlon_sse, TARGET_CPU_DEFAULT_k8,
597	TARGET_CPU_DEFAULT_pentium_m, TARGET_CPU_DEFAULT_prescott,
598	TARGET_CPU_DEFAULT_nocona, TARGET_CPU_DEFAULT_generic): Increase
599	the macro values.
600	(TARGET_CPU_DEFAULT_NAMES): Add geode.
601	(processor_type): Add PROCESSOR_GEODE.
602
603	* config/i386/i386.md: Include geode.md.
604	(cpu): Add geode.
605
606	* config/i386/i386.c (geode_cost): New initialized global
607	variable.
608	(m_GEODE, m_K6_GEODE): New macros.
609	(x86_use_leave, x86_push_memory, x86_deep_branch, x86_use_sahf,
610	x86_use_himode_fiop, x86_promote_QImode, x86_add_esp_4,
611	x86_add_esp_8, x86_rep_movl_optimal, x86_ext_80387_constants,
612	x86_schedule): Use m_K6_GEODE instead of m_K6.
613	(x86_movx, x86_cmove): Set up m_GEODE.
614	(x86_integer_DFmode_moves): Clear m_GEODE.
615	(processor_target_table): Add entry for geode.
616	(processor_alias_table): Ditto.
617
618	* config/i386/geode.md: New file.
619
620	* doc/invoke.texi: Add entry about geode processor.
621    
6222006-10-24  Richard Guenther  <rguenther@suse.de> (r118001)
623
624	PR middle-end/28796
625	* builtins.c (fold_builtin_classify): Use HONOR_INFINITIES
626	and HONOR_NANS instead of MODE_HAS_INFINITIES and MODE_HAS_NANS
627	for deciding optimizations in consistency with fold-const.c
628	(fold_builtin_unordered_cmp): Likewise.
629
6302006-10-22  H.J. Lu  <hongjiu.lu@intel.com> (r117958)
631
632	* config.gcc (i[34567]86-*-*): Add tmmintrin.h to extra_headers.
633	(x86_64-*-*): Likewise.
634
635	* config/i386/i386.c (pta_flags): Add PTA_SSSE3.
636	(override_options): Check SSSE3.
637	(ix86_builtins): Add IX86_BUILTIN_PHADDW, IX86_BUILTIN_PHADDD,
638	IX86_BUILTIN_PHADDSW, IX86_BUILTIN_PHSUBW, IX86_BUILTIN_PHSUBD,
639	IX86_BUILTIN_PHSUBSW, IX86_BUILTIN_PMADDUBSW,
640	IX86_BUILTIN_PMULHRSW, IX86_BUILTIN_PSHUFB,
641	IX86_BUILTIN_PSIGNB, IX86_BUILTIN_PSIGNW, IX86_BUILTIN_PSIGND,
642	IX86_BUILTIN_PALIGNR, IX86_BUILTIN_PABSB, IX86_BUILTIN_PABSW,
643	IX86_BUILTIN_PABSD, IX86_BUILTIN_PHADDW128,
644	IX86_BUILTIN_PHADDD128, IX86_BUILTIN_PHADDSW128,
645	IX86_BUILTIN_PHSUBW128, IX86_BUILTIN_PHSUBD128,
646	IX86_BUILTIN_PHSUBSW128, IX86_BUILTIN_PMADDUBSW128,
647	IX86_BUILTIN_PMULHRSW128, IX86_BUILTIN_PSHUFB128,
648	IX86_BUILTIN_PSIGNB128, IX86_BUILTIN_PSIGNW128,
649	IX86_BUILTIN_PSIGND128, IX86_BUILTIN_PALIGNR128,
650	IX86_BUILTIN_PABSB128, IX86_BUILTIN_PABSW128 and
651	IX86_BUILTIN_PABSD128.
652	(bdesc_2arg): Add SSSE3.
653	(bdesc_1arg): Likewise.
654	(ix86_init_mmx_sse_builtins): Support SSSE3.
655	(ix86_expand_builtin): Likewise.
656	* config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): Likewise.
657
658	* config/i386/i386.md (UNSPEC_PSHUFB): New.
659	(UNSPEC_PSIGN): Likewise.
660	(UNSPEC_PALIGNR): Likewise.
661	Include mmx.md before sse.md.
662
663	* config/i386/i386.opt: Add -mssse3.
664
665	* config/i386/sse.md (ssse3_phaddwv8hi3): New pattern for SSSE3.
666	(ssse3_phaddwv4hi3): Likewise.
667	(ssse3_phadddv4si3): Likewise.
668	(ssse3_phadddv2si3): Likewise.
669	(ssse3_phaddswv8hi3): Likewise.
670	(ssse3_phaddswv4hi3): Likewise.
671	(ssse3_phsubwv8hi3): Likewise.
672	(ssse3_phsubwv4hi3): Likewise.
673	(ssse3_phsubdv4si3): Likewise.
674	(ssse3_phsubdv2si3): Likewise.
675	(ssse3_phsubswv8hi3): Likewise.
676	(ssse3_phsubswv4hi3): Likewise.
677	(ssse3_pmaddubswv8hi3): Likewise.
678	(ssse3_pmaddubswv4hi3): Likewise.
679	(ssse3_pmulhrswv8hi3): Likewise.
680	(ssse3_pmulhrswv4hi3): Likewise.
681	(ssse3_pshufbv16qi3): Likewise.
682	(ssse3_pshufbv8qi3): Likewise.
683	(ssse3_psign<mode>3): Likewise.
684	(ssse3_psign<mode>3): Likewise.
685	(ssse3_palignrti): Likewise.
686	(ssse3_palignrdi): Likewise.
687	(abs<mode>2): Likewise.
688	(abs<mode>2): Likewise.
689
690	* config/i386/tmmintrin.h: New file.
691
692	* doc/extend.texi: Document SSSE3 built-in functions.
693
694	* doc/invoke.texi: Document -mssse3/-mno-ssse3 switches.
695
6962006-10-22  H.J. Lu  <hongjiu.lu@intel.com> (r117959)
697  	 
698	* config/i386/tmmintrin.h: Remove the duplicated content.
699
7002006-10-21  Richard Guenther  <rguenther@suse.de> (r117932)
701
702	PR tree-optimization/3511
703	* tree-ssa-pre.c (phi_translate): Fold CALL_EXPRs that
704	got new invariant arguments during PHI translation.
705
7062006-10-21  Richard Guenther  <rguenther@suse.de> (r117929)
707
708	* builtins.c (fold_builtin_classify): Fix typo.
709
710