152419Sjulian2007-08-08  Andrew Haley  <aph@redhat.com> (r128087)
252419Sjulian
3139823Simp	* config/arm/libunwind.S (UNWIND_WRAPPER _Unwind_Backtrace): New.
4139823Simp	* config/arm/unwind-arm.h (__gnu_Unwind_Backtrace): New.
5139823Simp	* config/arm/unwind-arm.c (__gnu_Unwind_Backtrace): New.
652419Sjulian
752419Sjulian2007-07-12  Geoffrey Keating  <geoffk@apple.com> (r126588)
852419Sjulian
952419Sjulian	* builtins.c (get_pointer_alignment): Honor DECL_ALIGN on a
1052419Sjulian	FUNCTION_DECL.
1152419Sjulian	* tree.c (build_decl_stat): Move code from here...
1252419Sjulian	(make_node_stat): ... to here.  Don't uselessly clear DECL_USER_ALIGN.
1352419Sjulian	(expr_align): Honor DECL_ALIGN on a FUNCTION_DECL.  Add comment
1452419Sjulian	about using DECL_ALIGN of LABEL_DECL and CONST_DECL.
1552419Sjulian	* tree.h (DECL_USER_ALIGN): Fix misplaced comment.
1652419Sjulian	* varasm.c (assemble_start_function): Use DECL_ALIGN instead of
1752419Sjulian	FUNCTION_BOUNDARY.
1852419Sjulian
1952419Sjulian2007-07-09  Geoffrey Keating  <geoffk@apple.com> (r126529)
2052419Sjulian
2152419Sjulian	PR 32617
2252419Sjulian	* c-common.c (c_alignof_expr): Look at DECL_ALIGN of
2352419Sjulian	FUNCTION_DECLs.
2452419Sjulian	(handle_aligned_attribute): Allow use on FUNCTION_DECLs.
2552419Sjulian	* varasm.c (assemble_start_function): Honor DECL_ALIGN
2652419Sjulian	for FUNCTION_DECLs.  Don't use align_functions_log if
2752419Sjulian	DECL_USER_ALIGN.
2852419Sjulian	* print-tree.c (print_node): Print DECL_ALIGN and DECL_USER_ALIGN
2952419Sjulian	even for FUNCTION_DECLs.
3052419Sjulian	* c-decl.c (merge_decls): Propagate DECL_ALIGN even for
3152419Sjulian	FUNCTION_DECLs.
3252419Sjulian	* tree.h (DECL_ALIGN): Update for new location of 'align'.
3352419Sjulian	(DECL_FUNCTION_CODE): Update for new location and name of
3452419Sjulian	'function_code'.
3552419Sjulian	(DECL_OFFSET_ALIGN): Update for new location of 'off_align'.
3652419Sjulian	(struct tree_decl_common): Move 'align' and 'off_align' out
3752419Sjulian	of union, ensure they're still on a 32-bit boundary.  Remove
3867506Sjulian	other fields in union 'u1'.
3952419Sjulian	(struct tree_function_decl): Add field 'function_code' replacing
4052419Sjulian	'u1.f' in tree_decl_common.
4152419Sjulian	* tree.c (build_decl_stat): Set initial value of DECL_ALIGN.
4252419Sjulian	* doc/extend.texi (Function Attributes): Add 'aligned' attribute.
4352419Sjulian	(Variable Attributes): Cross-reference 'aligned' attribute
44122481Sru	to Function Attributes.
45122481Sru	* flags.h (force_align_functions_log): Delete.
4652419Sjulian	* toplev.c (force_align_functions_log): Delete.
4752419Sjulian
4852419Sjulian2007-07-06  Josh Conner  <jconner@apple.com> (r126422)
49130413Sjulian
5052419Sjulian	PR middle-end/32602
5152419Sjulian	PR middle-end/32603
5252419Sjulian	* calls.c (store_one_arg): Handle arguments which are partially
5352419Sjulian	on the stack when detecting argument overlap.
5452419Sjulian
55124506Sgreen2007-07-03  Eric Christopher  <echristo@apple.com> (r126278)
5652419Sjulian
57130413Sjulian	* doc/cppopts.texi: Add conflicting option note to -dM.
58130413Sjulian	* doc/invoke.texi: Add note about possible conflicts with
59130413Sjulian	-E for -dCHARS and note that -dM will not produce
60130413Sjulian	any results if there is no machine dependent reorg.
61130413Sjulian	
62130413Sjulian2007-06-28  Geoffrey Keating  <geoffk@apple.com> (r126088)
63122481Sru
64	* doc/invoke.texi (C++ Dialect Options): Document
65	fvisibility-ms-compat.
66	* c.opt (fvisibility-ms-compat): New.
67
682007-06-23  Richard Earnshaw  <rearnsha@arm.com> (r125973)
69
70	PR target/31152
71	* arm.md (negscc): Match the correct operand for optimized LT0 test.
72	Remove optimization for GT.
73
742007-06-05  Joerg Wunsch  <j.gnu@uriah.heep.sax.de> (r125346)
75
76	PR preprocessor/23479
77	* doc/extend.texi: Document the 0b-prefixed binary integer
78	constant extension.
79	
802007-05-31  Eric Christopher  <echristo@apple.com> (r125246)
81
82	* expr.c (convert_move): Assert that we don't have a BLKmode
83	operand.
84	(store_expr): Handle BLKmode moves by calling emit_block_move.
85
862007-05-31  Daniel Berlin  <dberlin@dberlin.org> (r125239)
87
88	* c-typeck.c (build_indirect_ref): Include type in error message.
89	(build_binary_op): Pass types to binary_op_error.
90	* c-common.c (binary_op_error): Take two type arguments, print out
91	types with error.
92	* c-common.h (binary_op_error): Update prototype.
93
942007-05-27  Eric Christopher  <echristo@apple.com> (r125116)
95
96	* config/rs6000/rs6000.c (rs6000_emit_prologue): Update
97	sp_offset depending on stack size. Save r12 depending
98	on registers we're saving later.
99	(rs6000_emit_epilogue): Update sp_offset depending only
100	on stack size.
101
1022007-05-24  Richard Sandiford  <rsandifo@nildram.co.uk> (r125037)
103
104	* postreload-gcse.c (reg_changed_after_insn_p): New function.
105	(oprs_unchanged_p): Use it to check all registers in a REG.
106	(record_opr_changes): Look for clobbers in CALL_INSN_FUNCTION_USAGE.
107	(reg_set_between_after_reload_p): Delete.
108	(reg_used_between_after_reload_p): Likewise.
109	(reg_set_or_used_since_bb_start): Likewise.
110	(eliminate_partially_redundant_load): Use reg_changed_after_insn_p
111	and reg_used_between_p instead of reg_set_or_used_since_bb_start.
112	Use reg_set_between_p instead of reg_set_between_after_reload_p.
113	* rtlanal.c (reg_set_p): Check whether REG overlaps
114	regs_invalidated_by_call, rather than just checking the
115	membership of REGNO (REG).
116
1172007-05-18  Geoffrey Keating  <geoffk@apple.com> (r124839)
118 
119	* dwarf2out.c (print_die): Use '%ld' not '%lu' to print a 'long'.
120	(output_die): Use 'unsigned long' with %x.
121	* sched-vis.c (print_value): Use 'unsigned HOST_WIDE_INT' and
122	HOST_WIDE_INT_PRINT_HEX to print HOST_WIDE_INT.
123	* tree-dump.c (dump_pointer): Use 'unsigned long' for %lx.
124
1252007-05-16  Eric Christopher  <echristo@apple.com> (r124763)
126
127       * config/rs6000/rs6000.c (rs6000_emit_prologue): Move altivec register
128        saving after stack push. Set sp_offset whenever we push.
129        (rs6000_emit_epilogue): Move altivec register restore before stack push.
130
1312007-05-03  Ian Lance Taylor  <iant@google.com> (r124381)
132
133	* config/rs6000/rs6000.c (rs6000_override_options): Don't set
134	MASK_PPC_GFXOPT for 8540 or 8548.
135
1362007-05-01  Dwarakanath Rajagopal <dwarak.rajagopal@amd.com> (r124341)
137
138	* doc/invoke.texi: Fix typo, 'AMD Family 10h core' instead of 
139	'AMD Family 10 core'.
140
1412007-05-01  Dwarakanath Rajagopal <dwarak.rajagopal@amd.com> (r124339)
142 
143	* config/i386/i386.c (override_options): Accept k8-sse3, opteron-sse3 
144	and athlon64-sse3 as improved versions of k8, opteron and athlon64 
145	with SSE3 instruction set support.
146	* doc/invoke.texi: Likewise.
147
1482007-05-01  Dwarakanath Rajagopal <dwarak.rajagopal@amd.com> (r124330)
149
150	* config/i386/i386.c (override_options): Tuning 32-byte loop
151	alignment for amdfam10 architecture. Increasing the max loop
152	alignment to 24 bytes.
153
1542007-04-24  Hui-May Chang <hm.chang@apple.com> (r124115)
155
156	* reload1.c (merge_assigned_reloads) : Do not merge a RELOAD_OTHER
157	instruction with a RELOAD_FOR_OPERAND_ADDRESS instruction.
158
1592007-04-16  Lawrence Crowl  <crowl@google.com> (r123909)
160
161	* doc/invoke.texi (Debugging Options): Add documentation for the
162	-femit-struct-debug options -femit-struct-debug-baseonly,
163	-femit-struct-debug-reduced, and
164	-femit-struct-debug-detailed[=...].
165
166	* c-opts.c (c_common_handle_option): Add
167	OPT_femit_struct_debug_baseonly, OPT_femit_struct_debug_reduced,
168	and OPT_femit_struct_debug_detailed_.
169	* c.opt: Add specifications for
170	-femit-struct-debug-baseonly, -femit-struct-debug-reduced,
171	and -femit-struct-debug-detailed[=...].
172	* opts.c (set_struct_debug_option): Parse the
173	-femit-struct-debug-... options.
174	* opts.c (matches_main_base, main_input_basename,
175	main_input_baselength, base_of_path, matches_main_base): Add
176	variables and functions to compare header base name to compilation
177	unit base name.
178	* opts.c (should_emit_struct_debug): Add to determine to emit a
179	structure based on the option.
180	(dump_struct_debug) Also disabled function to debug this
181	function.
182	* opts.c (handle_options): Save the base name of the
183	compilation unit.
184
185	* langhooks-def.h (LANG_HOOKS_GENERIC_TYPE_P): Define.
186        (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add.
187	This hook indicates if a type is generic.  Set it by default
188	to "never generic".
189	* langhooks.h (struct lang_hooks_for_types): Add a new hook
190	to determine if a struct type is generic or not.
191	* cp/cp-tree.h (class_tmpl_impl_spec_p): Declare a C++ hook.
192	* cp/tree.c (class_tmpl_impl_spec_p): Implement the C++ hook.
193	* cp/cp-lang.c (LANG_HOOKS_GENERIC_TYPE_P): Override null C hook
194	with live C++ hook.
195
196	* flags.h (enum debug_info_usage): Add an enumeration to describe
197	a program's use of a structure type.
198	* dwarf2out.c (gen_struct_or_union_type_die): Add a new parameter
199	to indicate the program's usage of the type.  Filter structs based
200	on the -femit-struct-debug-... specification.
201	(gen_type_die): Split into two routines, gen_type_die and
202	gen_type_die_with_usage.  gen_type_die is now a wrapper
203	that assumes direct usage.
204	(gen_type_die_with_usage): Replace calls to gen_type_die
205	with gen_type_die_with_usage adding the program usage of
206	the referenced type.
207	(dwarf2out_imported_module_or_decl): Suppress struct debug
208	information using should_emit_struct_debug when appropriate.
209
2102007-04-16  Ian Lance Taylor  <iant@google.com> (r123906)
211
212	* tree-ssa-propagate.c (cfg_blocks_add): Insert blocks with fewer
213	predecessors at head rather than tail.
214
215
2162007-04-12  Richard Guenther  <rguenther@suse.de> (r123736)
217
218	PR tree-optimization/24689
219	PR tree-optimization/31307
220	* fold-const.c (operand_equal_p): Compare INTEGER_CST array
221	indices by value.
222	* gimplify.c (canonicalize_addr_expr): To be consistent with
223	gimplify_compound_lval only set operands two and three of
224	ARRAY_REFs if they are not gimple_min_invariant.  This makes
225	it never at this place.
226	* tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Likewise.
227
2282007-04-07  H.J. Lu  <hongjiu.lu@intel.com> (r123639)
229
230	* config/i386/i386.c (ix86_handle_option): Handle SSSE3.
231
2322007-03-28  Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com> (r123313)
233
234	* config.gcc: Accept barcelona as a variant of amdfam10.
235	* config/i386/i386.c (override_options): Likewise.
236	* doc/invoke.texi: Likewise.
237
2382007-03-12  Seongbae Park <seongbae.park@gmail.com> (r122851)
239
240	* c-decl.c (warn_variable_length_array): New function.
241	Refactored from grokdeclarator to handle warn_vla
242	and handle unnamed array case.
243	(grokdeclarator): Refactored VLA warning case.
244	* c.opt (Wvla): New flag.
245
2462007-03-11  Ian Lance Taylor  <iant@google.com> (r122831 - partial)
247
248	* tree-vrp.c (vrp_int_const_binop): Handle PLUS_EXPR and
249	the *_DIV_EXPR codes correctly with overflow infinities.
250
2512007-02-09  Dwarakanath Rajagopal <dwarak.rajagopal@amd.com> (r121763)
252
253	* config/i386/driver-i386.c: Turn on -mtune=native for AMDFAM10.
254	(bit_SSE4a): New.
255
2562007-02-08  Harsha Jagasia  <harsha.jagasia@amd.com> (r121726)
257
258	* config/i386/xmmintrin.h: Make inclusion of emmintrin.h
259	conditional to __SSE2__.
260	(Entries below should have been added to first ChangeLog
261	entry for amdfam10 dated 2007-02-05)
262	* config/i386/emmintrin.h: Generate #error if __SSE2__ is not
263	defined.
264	* config/i386/pmmintrin.h: Generate #error if __SSE3__ is not
265	defined.
266	* config/i386/tmmintrin.h: Generate #error if __SSSE3__ is not
267	defined.
268
2692007-02-07  Jakub Jelinek  <jakub@redhat.com> (r121687)
270
271	* config/i386/i386.c (override_options): Set PTA_SSSE3 for core2.
272
2732007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com> (r121625)
274
275	* config/i386/athlon.md (athlon_fldxf_k8, athlon_fld_k8,
276	athlon_fstxf_k8, athlon_fst_k8, athlon_fist, athlon_fmov,
277	athlon_fadd_load, athlon_fadd_load_k8, athlon_fadd, athlon_fmul,
278	athlon_fmul_load, athlon_fmul_load_k8, athlon_fsgn,
279	athlon_fdiv_load, athlon_fdiv_load_k8, athlon_fdiv_k8,
280	athlon_fpspc_load, athlon_fpspc, athlon_fcmov_load,
281	athlon_fcmov_load_k8, athlon_fcmov_k8, athlon_fcomi_load_k8,
282	athlon_fcomi, athlon_fcom_load_k8, athlon_fcom): Added amdfam10.
283
2842007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com> (r121625)
285
286	* config/i386/i386.md (x86_sahf_1, cmpfp_i_mixed, cmpfp_i_sse,
287	cmpfp_i_i387, cmpfp_iu_mixed, cmpfp_iu_sse, cmpfp_iu_387,
288	swapsi, swaphi_1, swapqi_1, swapdi_rex64, fix_truncsfdi_sse,
289	fix_truncdfdi_sse, fix_truncsfsi_sse, fix_truncdfsi_sse,
290	x86_fldcw_1, floatsisf2_mixed, floatsisf2_sse, floatdisf2_mixed,
291	floatdisf2_sse, floatsidf2_mixed, floatsidf2_sse,
292	floatdidf2_mixed, floatdidf2_sse, muldi3_1_rex64, mulsi3_1,
293	mulsi3_1_zext, mulhi3_1, mulqi3_1, umulqihi3_1, mulqihi3_insn,
294	umulditi3_insn, umulsidi3_insn, mulditi3_insn, mulsidi3_insn,
295	umuldi3_highpart_rex64, umulsi3_highpart_insn,
296	umulsi3_highpart_zext, smuldi3_highpart_rex64,
297	smulsi3_highpart_insn, smulsi3_highpart_zext, x86_64_shld,
298	x86_shld_1, x86_64_shrd, sqrtsf2_mixed, sqrtsf2_sse,
299	sqrtsf2_i387, sqrtdf2_mixed, sqrtdf2_sse, sqrtdf2_i387,
300	sqrtextendsfdf2_i387, sqrtxf2, sqrtextendsfxf2_i387,
301	sqrtextenddfxf2_i387): Added amdfam10_decode.
302	
303	* config/i386/athlon.md (athlon_idirect_amdfam10,
304	athlon_ivector_amdfam10, athlon_idirect_load_amdfam10,
305	athlon_ivector_load_amdfam10, athlon_idirect_both_amdfam10,
306	athlon_ivector_both_amdfam10, athlon_idirect_store_amdfam10,
307	athlon_ivector_store_amdfam10): New define_insn_reservation.
308	(athlon_idirect_loadmov, athlon_idirect_movstore): Added
309	amdfam10.
310
3112007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com> (r121625)
312
313	* config/i386/athlon.md (athlon_call_amdfam10,
314	athlon_pop_amdfam10, athlon_lea_amdfam10): New
315	define_insn_reservation.
316	(athlon_branch, athlon_push, athlon_leave_k8, athlon_imul_k8,
317	athlon_imul_k8_DI, athlon_imul_mem_k8, athlon_imul_mem_k8_DI,
318	athlon_idiv, athlon_idiv_mem, athlon_str): Added amdfam10.
319
3202007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com> (r121625)
321
322	* config/i386/athlon.md (athlon_sseld_amdfam10,
323	athlon_mmxld_amdfam10, athlon_ssest_amdfam10,
324	athlon_mmxssest_short_amdfam10): New define_insn_reservation.
325
3262007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com> (r121625)
327
328	* config/i386/athlon.md (athlon_sseins_amdfam10): New
329	define_insn_reservation.
330	* config/i386/i386.md (sseins): Added sseins to define_attr type
331	and define_attr unit.
332	* config/i386/sse.md: Set type attribute to sseins for insertq
333	and insertqi.
334
3352007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com> (r121625)
336
337	* config/i386/athlon.md (sselog_load_amdfam10, sselog_amdfam10,
338	ssecmpvector_load_amdfam10, ssecmpvector_amdfam10,
339	ssecomi_load_amdfam10, ssecomi_amdfam10,
340	sseaddvector_load_amdfam10, sseaddvector_amdfam10): New
341	define_insn_reservation.
342	(ssecmp_load_k8, ssecmp, sseadd_load_k8, seadd): Added amdfam10.
343
3442007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com> (r121625)
345
346	* config/i386/athlon.md (cvtss2sd_load_amdfam10,
347	cvtss2sd_amdfam10, cvtps2pd_load_amdfam10, cvtps2pd_amdfam10,
348	cvtsi2sd_load_amdfam10, cvtsi2ss_load_amdfam10,
349	cvtsi2sd_amdfam10, cvtsi2ss_amdfam10, cvtsd2ss_load_amdfam10,
350	cvtsd2ss_amdfam10, cvtpd2ps_load_amdfam10, cvtpd2ps_amdfam10,
351	cvtsX2si_load_amdfam10, cvtsX2si_amdfam10): New 
352	define_insn_reservation.
353
354	* config/i386/sse.md (cvtsi2ss, cvtsi2ssq, cvtss2si,
355	cvtss2siq, cvttss2si, cvttss2siq, cvtsi2sd, cvtsi2sdq,
356	cvtsd2si, cvtsd2siq, cvttsd2si, cvttsd2siq,
357	cvtpd2dq, cvttpd2dq, cvtsd2ss, cvtss2sd,
358	cvtpd2ps, cvtps2pd): Added amdfam10_decode attribute.
359
3602007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com> (r121625)
361
362	* config/i386/athlon.md (athlon_ssedivvector_amdfam10,
363	athlon_ssedivvector_load_amdfam10, athlon_ssemulvector_amdfam10,
364	athlon_ssemulvector_load_amdfam10): New define_insn_reservation.
365	(athlon_ssediv, athlon_ssediv_load_k8, athlon_ssemul,
366	athlon_ssemul_load_k8): Added amdfam10.
367
3682007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com> (r121625)
369
370	* config/i386/i386.h (TARGET_SSE_UNALIGNED_MOVE_OPTIMAL): New macro.
371	(x86_sse_unaligned_move_optimal): New variable.
372	
373	* config/i386/i386.c (x86_sse_unaligned_move_optimal): Enable for  
374	m_AMDFAM10.
375	(ix86_expand_vector_move_misalign): Add code to generate movupd/movups
376	for unaligned vector SSE double/single precision loads for AMDFAM10.
377
3782007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com> (r121625)
379
380	* config/i386/i386.h (TARGET_AMDFAM10): New macro.
381	(TARGET_CPU_CPP_BUILTINS): Add code for amdfam10.
382	Define TARGET_CPU_DEFAULT_amdfam10.
383	(TARGET_CPU_DEFAULT_NAMES): Add amdfam10.
384	(processor_type): Add PROCESSOR_AMDFAM10.	
385	
386	* config/i386/i386.md: Add amdfam10 as a new cpu attribute to match
387	processor_type in config/i386/i386.h.
388	Enable imul peepholes for TARGET_AMDFAM10.
389	
390	* config.gcc: Add support for --with-cpu option for amdfam10.
391	
392	* config/i386/i386.c (amdfam10_cost): New variable.
393	(m_AMDFAM10): New macro.
394	(m_ATHLON_K8_AMDFAM10): New macro.
395	(x86_use_leave, x86_push_memory, x86_movx, x86_unroll_strlen,
396	x86_cmove, x86_3dnow_a, x86_deep_branch, x86_use_simode_fiop,
397	x86_promote_QImode, x86_integer_DFmode_moves,
398	x86_partial_reg_dependency, x86_memory_mismatch_stall, 
399	x86_accumulate_outgoing_args, x86_arch_always_fancy_math_387,
400	x86_sse_partial_reg_dependency, x86_sse_typeless_stores,
401	x86_use_ffreep, x86_use_incdec, x86_four_jump_limit,
402	x86_schedule, x86_use_bt, x86_cmpxchg16b, x86_pad_returns):
403	Enable/disable for amdfam10.
404	(override_options): Add amdfam10_cost to processor_target_table.
405	Set up PROCESSOR_AMDFAM10 for amdfam10 entry in 
406	processor_alias_table.
407	(ix86_issue_rate): Add PROCESSOR_AMDFAM10.
408	(ix86_adjust_cost): Add code for amdfam10.
409
4102007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com> (r121625)
411	
412	* config/i386/i386.opt: Add new Advanced Bit Manipulation (-mabm)
413	instruction set feature flag. Add new (-mpopcnt) flag for popcnt 
414	instruction. Add new SSE4A (-msse4a) instruction set feature flag.
415	* config/i386/i386.h: Add builtin definition for SSE4A.
416	* config/i386/i386.md: Add support for ABM instructions 
417	(popcnt and lzcnt).
418	* config/i386/sse.md: Add support for SSE4A instructions
419	(movntss, movntsd, extrq, insertq).
420	* config/i386/i386.c: Add support for ABM and SSE4A builtins.
421	Add -march=amdfam10 flag.
422	* config/i386/ammintrin.h: Add support for SSE4A intrinsics.
423	* doc/invoke.texi: Add documentation on flags for sse4a, abm, popcnt
424	and amdfam10.
425	* doc/extend.texi: Add documentation for SSE4A builtins.
426
4272007-01-24  Jakub Jelinek  <jakub@redhat.com> (r121140)
428
429	* config/i386/i386.h (x86_cmpxchg16b): Remove const.
430	(TARGET_CMPXCHG16B): Define to x86_cmpxchg16b.
431	* config/i386/i386.c (x86_cmpxchg16b): Remove const.
432	(override_options): Add PTA_CX16 flag.  Set x86_cmpxchg16b
433	for CPUs that have PTA_CX16 set.
434
4352007-01-18  Josh Conner  <jconner@apple.com> (r120902)
436
437	PR target/30485
438	* config/rs6000/rs6000.c (rs6000_emit_vector_compare): Add
439	support for UNLE, UNLT, UNGE, and UNGT.
440
4412007-01-17  Eric Christopher  <echristo@apple.com> (r120846)
442
443	* config.gcc: Support core2 processor.
444
4452007-01-11  Joseph Myers  <joseph@codesourcery.com> (r120688)
446
447	* c-common.c (vector_types_convertible_p): Treat opaque types as
448	always convertible if they have the same size, but not otherwise.
449
4502007-01-08  Geoffrey Keating  <geoffk@apple.com> (r120611)
451 
452	* target.h (struct gcc_target): New field library_rtti_comdat.
453	* target-def.h (TARGET_CXX_LIBRARY_RTTI_COMDAT): New.
454	(TARGET_CXX): Add TARGET_CXX_LIBRARY_RTTI_COMDAT.
455	* doc/tm.texi (C++ ABI): Document TARGET_CXX_LIBRARY_RTTI_COMDAT.
456	* config/darwin.h (TARGET_CXX_LIBRARY_RTTI_COMDAT): Define.
457
4582007-01-08  Mark Shinwell  <shinwell@codesourcery.com> (r120572)
459
460	* c.opt: Add -flax-vector-conversions.
461	* c-typeck.c (convert_for_assignment): Pass flag to
462	vector_types_convertible_p to allow emission of note.
463	(digest_init): Likewise.
464	* c-opts.c: Handle -flax-vector-conversions.
465	* c-common.c (flag_lax_vector_conversions): New.
466	(vector_types_convertible_p): Unless -flax-vector conversions
467	has been passed, disallow conversions between vectors with
468	differing numbers of subparts and/or element types.  If such
469	a conversion is disallowed, possibly emit a note on the first
470	occasion only to inform the user of -flax-vector-conversions.
471	The new last argument specifies this.
472	* c-common.h (flag_lax_vector_conversions): New.
473	(vector_types_convertible_p): Add extra argument.
474	* config/i386/i386.c (ix86_init_mmx_sse_builtins): Use
475	char_type_node for V*QI type vectors.
476	* config/rs6000/rs6000-c.c (altivec_overloaded_builtins):
477	Update to satisfy new typechecking rules.
478	* config/rs6000/altivec.h (vec_cmple): Use vec_cmpge, for both
479	C and C++ variants.
480	* doc/invoke.texi (C Dialect Options): Document
481	-flax-vector-conversions.
482
4832007-01-05  Manuel Lopez-Ibanez  <manu@gcc.gnu.org> (r120505)
484
485	PR c/19978
486	* tree.h (TREE_OVERFLOW_P): New.
487	* c-typeck.c (parser_build_unary_op): Warn only if result
488	overflowed and operands did not.
489	(parser_build_binary_op): Likewise.
490	(convert_for_assignment): Remove redundant overflow_warning.
491	* c-common.c (overflow_warning): Don't check or set TREE_OVERFLOW.
492
4932006-12-13  Ian Lance Taylor  <iant@google.com> (r119855)
494
495	PR c++/19564
496	PR c++/19756
497	* c-typeck.c (parser_build_binary_op): Move parentheses warnings
498	to warn_about_parentheses in c-common.c.
499	* c-common.c (warn_about_parentheses): New function.
500	* c-common.h (warn_about_parentheses): Declare.
501	* doc/invoke.texi (Warning Options): Update -Wparentheses
502	description.
503
5042006-12-12  Geoffrey Keating  <geoffk@apple.com> (r119820)
505 
506	* mips-tdump.c: Replace CROSS_COMPILE with
507	CROSS_DIRECTORY_STRUCTURE.
508	* mips-tfile.c: Likewise.
509	* gcc.c: Likewise.
510	* configure.ac: Likewise.
511	* cppdefault.c: Likewise.
512	* Makefile.in: Likewise.
513	* config/alpha/osf.h: Likewise.
514	* config/i386/cygwin.h: Likewise.
515	* config/i386/beos-elf.h: Likewise.
516	* config/i386/nto.h: Likewise.
517	* config/svr4.h: Likewise.
518	* config/rs6000/aix.h: Likewise.
519	* config/rs6000/sysv4.h: Likewise.
520	* collect2.c: Likewise.
521	* configure: Regenerate.
522
523 	* doc/tm.texi (Alignment Output): Document that ASM_OUTPUT_SKIP
524 	actually takes an unsigned HOST_WIDE_INT for its second parameter.
525
5262006-12-02  H.J. Lu  <hongjiu.lu@intel.com> (r119454 - partial)
527
528	PR target/30040
529	* config/i386/driver-i386.c (bit_SSSE3): New.
530
5312006-11-27  Uros Bizjak  <ubizjak@gmail.com> (r119260)
532
533	* config/i386/i386.c (x86_ext_80387_constants): Add m_K8, m_CORE2
534	and m_GENERIC64.
535
5362006-11-18  Vladimir Makarov  <vmakarov@redhat.com> (r118973)
537
538	* doc/invoke.texi (core2): Add item.
539
540	* config/i386/i386.h (TARGET_CORE2, TARGET_CPU_DEFAULT_core2): New
541	macros.
542	(TARGET_CPU_CPP_BUILTINS): Add code for core2.
543	(TARGET_CPU_DEFAULT_generic): Change value.
544	(TARGET_CPU_DEFAULT_NAMES): Add core2.
545	(processor_type): Add new constant PROCESSOR_CORE2.
546
547	* config/i386/i386.md (cpu): Add core2.
548
549	* config/i386/i386.c (core2_cost): New initialized variable.
550	(m_CORE2): New macro.
551	(x86_use_leave, x86_push_memory, x86_movx, x86_unroll_strlen,
552	x86_deep_branch, x86_partial_reg_stall, x86_use_simode_fiop,
553	x86_use_cltd, x86_promote_QImode, x86_sub_esp_4, x86_sub_esp_8,
554	x86_add_esp_4, x86_add_esp_8, x86_integer_DFmode_moves,
555	x86_partial_reg_dependency, x86_memory_mismatch_stall,
556	x86_accumulate_outgoing_args, x86_prologue_using_move,
557	x86_epilogue_using_move, x86_arch_always_fancy_math_387,
558	x86_sse_partial_reg_dependency, x86_rep_movl_optimal,
559	x86_use_incdec, x86_four_jump_limit, x86_schedule,
560	x86_pad_returns): Add m_CORE2.
561	(override_options): Add entries for Core2.
562	(ix86_issue_rate): Add case for Core2.
563	
5642006-11-14  Caroline Tice  <ctice@apple.com> (r118826)
565		
566	* dwarf2out.c (debug_pubtypes_section): New static global variable.
567	(pubname_entry):  Add DEF_VEC_O and DEF_VEC_ALLOC_O statements for
568	this type.
569	(pubname_table):  Redefine as a vector.
570	(pubtype_table):  New static global variable, defined as a vector.
571	(pubname_table_allocated): Remove static global variable.
572	(pubname_table_in_use): Remove static global variable.
573	(PUBNAME_TABLE_INCREMENT): Remove constant.
574	(size_of_pubnames): Add parameter to deal with either pubnames or 
575	pubtypes, and change code to deal with table being a vector.
576	(add_pubname):  Change to deal with table being a vector.
577	(add_pubtype):  New function.
578	(output_pubnames): Add parameter to deal with either pubnames or 
579	pubtypes, and change code to deal with table being a vector.
580	(gen_array_type_die):  Add call to add_pubtype.
581	(gen_enumeration_type_die): Add call to add_pubtype.
582	(gen_struct_or_union_type_die): Add call to add_pubtype.
583	(gen_subroutine_type_die): Add call to add_pubtype.
584	(gen_typedef_die):  Add call to add_pubtype.
585	(dwarf2out_init): Add code to initialize pubname_table and 
586	pubtype_table vectors; also initialize debug_pubtypes_section.
587	(prune_unused_types):  Change to deal with pubnames being a vector.
588	(dwarf2out_finish): Change to deal with pubnames being a vector; add 
589	pubnames table to call to output_pubnames;  Add code to output pubtypes 
590	table if DEBUG_PUBTYPES_SECTION is defined.
591	* config/darwin.c (darwin_file_start):  Add DEBUG_PUBTYPES_SECTION to 
592	debugnames.
593	* config/darwin.h (DEBUG_PUBTYPES_SECTION): Define new global variable.
594
5952006-11-07  Eric Christopher  <echristo@apple.com> (r118576)
596
597	* libgcc2.c (__bswapdi2): Rename from bswapDI2.
598	(__bswapsi2): Ditto.
599	* libgcc2.h: Remove transformation of bswap routines.
600	* config/i386/i386.md (bswapsi2): New.
601	(bswapdi2): Ditto.
602
6032006-11-03  Paul Brook  <paul@codesourcery.com> (r118461)
604
605	gcc/
606	* config/arm/arm.c (arm_file_start): New function.
607	(TARGET_ASM_FILE_START): Define.
608	(arm_default_cpu): New variable.
609	(arm_override_options): Set arm_default_cpu.
610
6112006-10-31  Geoffrey Keating  <geoffk@apple.com> (r118360)
612 
613	* coverage.c (coverage_checksum_string): Update comment.
614	* dwarf2out.c (switch_to_eh_frame_section): Update for removal
615	of get_file_function_name.
616	* cgraphunit.c (cgraph_build_static_cdtor): Update for rename
617	of get_file_function_name_long.
618	* tree.c (get_file_function_name): Rename from
619	get_file_function_name_long; improve comment; handle 'I' and 'D'
620	specially when the target has ctor/dtor support; remove special
621	handling for 'F'.
622	(get_file_function_name): Remove.
623	* tree.h (get_file_function_name): Rename from
624        get_file_function_name_long.
625	(get_file_function_name): Remove prototype.
626
6272006-10-31  Geoffrey Keating  <geoffk@apple.com> (r118356)
628
629	* c-decl.c (grokdeclarator): Don't set DECL_EXTERNAL on
630	inline static functions in c99 mode.
631
632	PR 16622
633	* doc/extend.texi (Inline): Update.
634	* c-tree.h (struct language_function): Remove field 'extern_inline'.
635	* c-decl.c (current_extern_inline): Delete.
636	(pop_scope): Adjust test for an undefined nested function.
637	Add warning about undeclared inline function.
638	(diagnose_mismatched_decls): Update comments.  Disallow overriding
639	of inline functions in a translation unit in C99.  Allow inline
640	declarations in C99 at any time.
641	(merge_decls): Boolize variables.  Handle C99 'extern inline'
642	semantics.
643	(grokdeclarator): Set DECL_EXTERNAL here for functions.  Handle
644	C99 inline semantics.
645	(start_function): Don't clear current_extern_inline.  Don't set
646	DECL_EXTERNAL.
647	(c_push_function_context): Don't push current_extern_inline.
648	(c_pop_function_context): Don't restore current_extern_inline.
649
650	PR 11377
651	* c-typeck.c (build_external_ref): Warn about static variables
652	used in extern inline functions.
653	* c-decl.c (start_decl): Warn about static variables declared
654	in extern inline functions.
655
6562006-10-27  Vladimir Makarov  <vmakarov@redhat.com> (r118090)
657
658	* config/i386/i386.h (TARGET_GEODE):
659	(TARGET_CPU_CPP_BUILTINS): Add code for geode.
660	(TARGET_CPU_DEFAULT_geode): New macro.
661	(TARGET_CPU_DEFAULT_k6, TARGET_CPU_DEFAULT_k6_2,
662	TARGET_CPU_DEFAULT_k6_3, TARGET_CPU_DEFAULT_athlon,
663	TARGET_CPU_DEFAULT_athlon_sse, TARGET_CPU_DEFAULT_k8,
664	TARGET_CPU_DEFAULT_pentium_m, TARGET_CPU_DEFAULT_prescott,
665	TARGET_CPU_DEFAULT_nocona, TARGET_CPU_DEFAULT_generic): Increase
666	the macro values.
667	(TARGET_CPU_DEFAULT_NAMES): Add geode.
668	(processor_type): Add PROCESSOR_GEODE.
669
670	* config/i386/i386.md: Include geode.md.
671	(cpu): Add geode.
672
673	* config/i386/i386.c (geode_cost): New initialized global
674	variable.
675	(m_GEODE, m_K6_GEODE): New macros.
676	(x86_use_leave, x86_push_memory, x86_deep_branch, x86_use_sahf,
677	x86_use_himode_fiop, x86_promote_QImode, x86_add_esp_4,
678	x86_add_esp_8, x86_rep_movl_optimal, x86_ext_80387_constants,
679	x86_schedule): Use m_K6_GEODE instead of m_K6.
680	(x86_movx, x86_cmove): Set up m_GEODE.
681	(x86_integer_DFmode_moves): Clear m_GEODE.
682	(processor_target_table): Add entry for geode.
683	(processor_alias_table): Ditto.
684
685	* config/i386/geode.md: New file.
686
687	* doc/invoke.texi: Add entry about geode processor.
688    
6892006-10-24  Richard Guenther  <rguenther@suse.de> (r118001)
690
691	PR middle-end/28796
692	* builtins.c (fold_builtin_classify): Use HONOR_INFINITIES
693	and HONOR_NANS instead of MODE_HAS_INFINITIES and MODE_HAS_NANS
694	for deciding optimizations in consistency with fold-const.c
695	(fold_builtin_unordered_cmp): Likewise.
696
6972006-10-22  H.J. Lu  <hongjiu.lu@intel.com> (r117958)
698
699	* config.gcc (i[34567]86-*-*): Add tmmintrin.h to extra_headers.
700	(x86_64-*-*): Likewise.
701
702	* config/i386/i386.c (pta_flags): Add PTA_SSSE3.
703	(override_options): Check SSSE3.
704	(ix86_builtins): Add IX86_BUILTIN_PHADDW, IX86_BUILTIN_PHADDD,
705	IX86_BUILTIN_PHADDSW, IX86_BUILTIN_PHSUBW, IX86_BUILTIN_PHSUBD,
706	IX86_BUILTIN_PHSUBSW, IX86_BUILTIN_PMADDUBSW,
707	IX86_BUILTIN_PMULHRSW, IX86_BUILTIN_PSHUFB,
708	IX86_BUILTIN_PSIGNB, IX86_BUILTIN_PSIGNW, IX86_BUILTIN_PSIGND,
709	IX86_BUILTIN_PALIGNR, IX86_BUILTIN_PABSB, IX86_BUILTIN_PABSW,
710	IX86_BUILTIN_PABSD, IX86_BUILTIN_PHADDW128,
711	IX86_BUILTIN_PHADDD128, IX86_BUILTIN_PHADDSW128,
712	IX86_BUILTIN_PHSUBW128, IX86_BUILTIN_PHSUBD128,
713	IX86_BUILTIN_PHSUBSW128, IX86_BUILTIN_PMADDUBSW128,
714	IX86_BUILTIN_PMULHRSW128, IX86_BUILTIN_PSHUFB128,
715	IX86_BUILTIN_PSIGNB128, IX86_BUILTIN_PSIGNW128,
716	IX86_BUILTIN_PSIGND128, IX86_BUILTIN_PALIGNR128,
717	IX86_BUILTIN_PABSB128, IX86_BUILTIN_PABSW128 and
718	IX86_BUILTIN_PABSD128.
719	(bdesc_2arg): Add SSSE3.
720	(bdesc_1arg): Likewise.
721	(ix86_init_mmx_sse_builtins): Support SSSE3.
722	(ix86_expand_builtin): Likewise.
723	* config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): Likewise.
724
725	* config/i386/i386.md (UNSPEC_PSHUFB): New.
726	(UNSPEC_PSIGN): Likewise.
727	(UNSPEC_PALIGNR): Likewise.
728	Include mmx.md before sse.md.
729
730	* config/i386/i386.opt: Add -mssse3.
731
732	* config/i386/sse.md (ssse3_phaddwv8hi3): New pattern for SSSE3.
733	(ssse3_phaddwv4hi3): Likewise.
734	(ssse3_phadddv4si3): Likewise.
735	(ssse3_phadddv2si3): Likewise.
736	(ssse3_phaddswv8hi3): Likewise.
737	(ssse3_phaddswv4hi3): Likewise.
738	(ssse3_phsubwv8hi3): Likewise.
739	(ssse3_phsubwv4hi3): Likewise.
740	(ssse3_phsubdv4si3): Likewise.
741	(ssse3_phsubdv2si3): Likewise.
742	(ssse3_phsubswv8hi3): Likewise.
743	(ssse3_phsubswv4hi3): Likewise.
744	(ssse3_pmaddubswv8hi3): Likewise.
745	(ssse3_pmaddubswv4hi3): Likewise.
746	(ssse3_pmulhrswv8hi3): Likewise.
747	(ssse3_pmulhrswv4hi3): Likewise.
748	(ssse3_pshufbv16qi3): Likewise.
749	(ssse3_pshufbv8qi3): Likewise.
750	(ssse3_psign<mode>3): Likewise.
751	(ssse3_psign<mode>3): Likewise.
752	(ssse3_palignrti): Likewise.
753	(ssse3_palignrdi): Likewise.
754	(abs<mode>2): Likewise.
755	(abs<mode>2): Likewise.
756
757	* config/i386/tmmintrin.h: New file.
758
759	* doc/extend.texi: Document SSSE3 built-in functions.
760
761	* doc/invoke.texi: Document -mssse3/-mno-ssse3 switches.
762
7632006-10-22  H.J. Lu  <hongjiu.lu@intel.com> (r117959)
764  	 
765	* config/i386/tmmintrin.h: Remove the duplicated content.
766
7672006-10-21  Richard Guenther  <rguenther@suse.de> (r117932)
768
769	PR tree-optimization/3511
770	* tree-ssa-pre.c (phi_translate): Fold CALL_EXPRs that
771	got new invariant arguments during PHI translation.
772
7732006-10-21  Richard Guenther  <rguenther@suse.de> (r117929)
774
775	* builtins.c (fold_builtin_classify): Fix typo.
776
7772006-09-07  Eric Christopher  <echristo@apple.com> (r118361)
778	    Falk Hueffner  <falk@debian.org>
779
780	* doc/extend.texi (__builtin_bswap32): Document.
781	(__builtin_bswap64): Ditto.
782	* doc/libgcc.texi (bswapsi2): Document.
783	(bswapdi2): Ditto.
784	* doc/rtl.texi (bswap): Document.
785	* optabs.c (expand_unop): Don't widen a bswap.
786	(init_optabs): Init bswap. Set libfuncs explicitly
787	for bswapsi2 and bswapdi2.
788	* optabs.h (OTI_bswap): New.
789	(bswap_optab): Ditto.
790	* genopinit.c (optabs): Handle bswap_optab.
791	* tree.h (tree_index): Add TI_UINT32_TYPE and
792	TI_UINT64_TYPE.
793	(uint32_type_node): New.
794	(uint64_type_node): Ditto.
795	* tree.c (build_common_tree_nodes_2): Initialize
796	uint32_type_node and uint64_type_node.
797	* builtins.c (expand_builtin_bswap): New.
798	(expand_builtin): Call.
799	(fold_builtin_bswap): New.
800	(fold_builtin_1): Call.
801	* fold-const.c (tree_expr_nonnegative_p): Return true
802	for bswap.
803	* builtin-types.def (BT_UINT32): New.
804	(BT_UINT64): Ditto.
805	(BT_FN_UINT32_UINT32): Ditto.
806	(BT_FN_UINT64_UINT64): Ditto.
807	* builtins.def (BUILT_IN_BSWAP32): New.
808	(BUILT_IN_BSWAP64): Ditto.
809	* rtl.def (BSWAP): New.
810	* genattrtab.c (check_attr_value): New.
811	* libgcc2.c (__bswapSI2): New.
812	(__bswapDI2): Ditto.
813	* libgcc2.h (__bswapSI2): Declare.
814	(__bswapDI2): Ditto.
815	* mklibgcc.in (lib2funcs): Add _bswapsi2 and _bswapdi2.
816	* simplify-rtx.c (simplify_const_unary_operation): Return
817	0 for BSWAP.
818	* libgcc-std.ver (__bwapsi2): Add.
819	(__bswapdi2): Ditto.
820	* reload1.c (eliminate_regs_1): Add bswap.
821	(elimination_effects): Ditto.
822	* config/i386/i386.h (x86_bswap): New.
823	(TARGET_BSWAP): Use.
824	* config/i386/i386.c (x86_bswap): Set.
825