ChangeLog.gcc43 revision 259563
1259268Spfg2007-08-08  Andrew Haley  <aph@redhat.com> (r128087)
2255107Spfg
3259268Spfg	* config/arm/libunwind.S (UNWIND_WRAPPER _Unwind_Backtrace): New.
4259268Spfg	* config/arm/unwind-arm.h (__gnu_Unwind_Backtrace): New.
5259268Spfg	* config/arm/unwind-arm.c (__gnu_Unwind_Backtrace): New.
6259268Spfg
7259268Spfg2007-06-05  Joerg Wunsch  <j.gnu@uriah.heep.sax.de> (r125346)
8259268Spfg
9255107Spfg	PR preprocessor/23479
10255107Spfg	* doc/extend.texi: Document the 0b-prefixed binary integer
11255107Spfg	constant extension.
12255107Spfg	
13259563Spfg2007-05-31  Eric Christopher  <echristo@apple.com>
14259563Spfg
15259563Spfg	* expr.c (convert_move): Assert that we don't have a BLKmode
16259563Spfg	operand.
17259563Spfg	(store_expr): Handle BLKmode moves by calling emit_block_move.
18259563Spfg
19259268Spfg2007-05-24  Richard Sandiford  <rsandifo@nildram.co.uk> (r125037)
20259268Spfg
21259268Spfg	* postreload-gcse.c (reg_changed_after_insn_p): New function.
22259268Spfg	(oprs_unchanged_p): Use it to check all registers in a REG.
23259268Spfg	(record_opr_changes): Look for clobbers in CALL_INSN_FUNCTION_USAGE.
24259268Spfg	(reg_set_between_after_reload_p): Delete.
25259268Spfg	(reg_used_between_after_reload_p): Likewise.
26259268Spfg	(reg_set_or_used_since_bb_start): Likewise.
27259268Spfg	(eliminate_partially_redundant_load): Use reg_changed_after_insn_p
28259268Spfg	and reg_used_between_p instead of reg_set_or_used_since_bb_start.
29259268Spfg	Use reg_set_between_p instead of reg_set_between_after_reload_p.
30259268Spfg	* rtlanal.c (reg_set_p): Check whether REG overlaps
31259268Spfg	regs_invalidated_by_call, rather than just checking the
32259268Spfg	membership of REGNO (REG).
33259268Spfg
34259268Spfg2007-05-03  Ian Lance Taylor  <iant@google.com> (r124381)
35259268Spfg
36259268Spfg	* config/rs6000/rs6000.c (rs6000_override_options): Don't set
37259268Spfg	MASK_PPC_GFXOPT for 8540 or 8548.
38259268Spfg
39251212Spfg2007-05-01  Dwarakanath Rajagopal <dwarak.rajagopal@amd.com> (r124341)
40251212Spfg
41251212Spfg	* doc/invoke.texi: Fix typo, 'AMD Family 10h core' instead of 
42251212Spfg	'AMD Family 10 core'.
43251212Spfg
44221282Smm2007-05-01  Dwarakanath Rajagopal <dwarak.rajagopal@amd.com> (r124339)
45221282Smm 
46221282Smm	* config/i386/i386.c (override_options): Accept k8-sse3, opteron-sse3 
47221282Smm	and athlon64-sse3 as improved versions of k8, opteron and athlon64 
48221282Smm	with SSE3 instruction set support.
49221282Smm	* doc/invoke.texi: Likewise.
50221282Smm
51251212Spfg2007-05-01  Dwarakanath Rajagopal <dwarak.rajagopal@amd.com> (r124330)
52251212Spfg
53251212Spfg	* config/i386/i386.c (override_options): Tuning 32-byte loop
54251212Spfg	alignment for amdfam10 architecture. Increasing the max loop
55251212Spfg	alignment to 24 bytes.
56251212Spfg
57259268Spfg2007-04-16  Lawrence Crowl  <crowl@google.com>
58259268Spfg
59259268Spfg	* doc/invoke.texi (Debugging Options): Add documentation for the
60259268Spfg	-femit-struct-debug options -femit-struct-debug-baseonly,
61259268Spfg	-femit-struct-debug-reduced, and
62259268Spfg	-femit-struct-debug-detailed[=...].
63259268Spfg
64259268Spfg	* c-opts.c (c_common_handle_option): Add
65259268Spfg	OPT_femit_struct_debug_baseonly, OPT_femit_struct_debug_reduced,
66259268Spfg	and OPT_femit_struct_debug_detailed_.
67259268Spfg	* c.opt: Add specifications for
68259268Spfg	-femit-struct-debug-baseonly, -femit-struct-debug-reduced,
69259268Spfg	and -femit-struct-debug-detailed[=...].
70259268Spfg	* opts.c (set_struct_debug_option): Parse the
71259268Spfg	-femit-struct-debug-... options.
72259268Spfg	* opts.c (matches_main_base, main_input_basename,
73259268Spfg	main_input_baselength, base_of_path, matches_main_base): Add
74259268Spfg	variables and functions to compare header base name to compilation
75259268Spfg	unit base name.
76259268Spfg	* opts.c (should_emit_struct_debug): Add to determine to emit a
77259268Spfg	structure based on the option.
78259268Spfg	(dump_struct_debug) Also disabled function to debug this
79259268Spfg	function.
80259268Spfg	* opts.c (handle_options): Save the base name of the
81259268Spfg	compilation unit.
82259268Spfg
83259268Spfg	* langhooks-def.h (LANG_HOOKS_GENERIC_TYPE_P): Define.
84259268Spfg        (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add.
85259268Spfg	This hook indicates if a type is generic.  Set it by default
86259268Spfg	to "never generic".
87259268Spfg	* langhooks.h (struct lang_hooks_for_types): Add a new hook
88259268Spfg	to determine if a struct type is generic or not.
89259268Spfg	* cp/cp-tree.h (class_tmpl_impl_spec_p): Declare a C++ hook.
90259268Spfg	* cp/tree.c (class_tmpl_impl_spec_p): Implement the C++ hook.
91259268Spfg	* cp/cp-lang.c (LANG_HOOKS_GENERIC_TYPE_P): Override null C hook
92259268Spfg	with live C++ hook.
93259268Spfg
94259268Spfg	* flags.h (enum debug_info_usage): Add an enumeration to describe
95259268Spfg	a program's use of a structure type.
96259268Spfg	* dwarf2out.c (gen_struct_or_union_type_die): Add a new parameter
97259268Spfg	to indicate the program's usage of the type.  Filter structs based
98259268Spfg	on the -femit-struct-debug-... specification.
99259268Spfg	(gen_type_die): Split into two routines, gen_type_die and
100259268Spfg	gen_type_die_with_usage.  gen_type_die is now a wrapper
101259268Spfg	that assumes direct usage.
102259268Spfg	(gen_type_die_with_usage): Replace calls to gen_type_die
103259268Spfg	with gen_type_die_with_usage adding the program usage of
104259268Spfg	the referenced type.
105259268Spfg	(dwarf2out_imported_module_or_decl): Suppress struct debug
106259268Spfg	information using should_emit_struct_debug when appropriate.
107259268Spfg
108259563Spfg2007-04-16  Ian Lance Taylor  <iant@google.com> (r123906)
109259563Spfg
110259563Spfg	* tree-ssa-propagate.c (cfg_blocks_add): Insert blocks with fewer
111259563Spfg	predecessors at head rather than tail.
112259563Spfg
113259563Spfg
114237406Spfg2007-04-12  Richard Guenther  <rguenther@suse.de> (r123736)
115237406Spfg
116237406Spfg	PR tree-optimization/24689
117237406Spfg	PR tree-optimization/31307
118237406Spfg	* fold-const.c (operand_equal_p): Compare INTEGER_CST array
119237406Spfg	indices by value.
120237406Spfg	* gimplify.c (canonicalize_addr_expr): To be consistent with
121237406Spfg	gimplify_compound_lval only set operands two and three of
122237406Spfg	ARRAY_REFs if they are not gimple_min_invariant.  This makes
123237406Spfg	it never at this place.
124237406Spfg	* tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Likewise.
125237406Spfg
126221282Smm2007-04-07  H.J. Lu  <hongjiu.lu@intel.com> (r123639)
127221282Smm
128221282Smm	* config/i386/i386.c (ix86_handle_option): Handle SSSE3.
129221282Smm
130251212Spfg2007-03-28  Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com> (r123313)
131251212Spfg
132251212Spfg	* config.gcc: Accept barcelona as a variant of amdfam10.
133251212Spfg	* config/i386/i386.c (override_options): Likewise.
134251212Spfg	* doc/invoke.texi: Likewise.
135251212Spfg
136259268Spfg2007-03-12  Seongbae Park <seongbae.park@gmail.com>
137259268Spfg
138259268Spfg	* c-decl.c (warn_variable_length_array): New function.
139259268Spfg	Refactored from grokdeclarator to handle warn_vla
140259268Spfg	and handle unnamed array case.
141259268Spfg	(grokdeclarator): Refactored VLA warning case.
142259268Spfg	* c.opt (Wvla): New flag.
143259268Spfg
144259268Spfg2007-03-11  Ian Lance Taylor  <iant@google.com> (r122831 - partial)
145259268Spfg
146259268Spfg	* tree-vrp.c (vrp_int_const_binop): Handle PLUS_EXPR and
147259268Spfg	the *_DIV_EXPR codes correctly with overflow infinities.
148259268Spfg
149251212Spfg2007-02-09  Dwarakanath Rajagopal <dwarak.rajagopal@amd.com> (r121763)
150251212Spfg
151251212Spfg	* config/i386/driver-i386.c: Turn on -mtune=native for AMDFAM10.
152251212Spfg	(bit_SSE4a): New.
153251212Spfg
154221282Smm2007-02-08  Harsha Jagasia  <harsha.jagasia@amd.com> (r121726)
155221282Smm
156221282Smm	* config/i386/xmmintrin.h: Make inclusion of emmintrin.h
157221282Smm	conditional to __SSE2__.
158221282Smm	(Entries below should have been added to first ChangeLog
159221282Smm	entry for amdfam10 dated 2007-02-05)
160221282Smm	* config/i386/emmintrin.h: Generate #error if __SSE2__ is not
161221282Smm	defined.
162221282Smm	* config/i386/pmmintrin.h: Generate #error if __SSE3__ is not
163221282Smm	defined.
164221282Smm	* config/i386/tmmintrin.h: Generate #error if __SSSE3__ is not
165221282Smm	defined.
166221282Smm
167221282Smm2007-02-07  Jakub Jelinek  <jakub@redhat.com> (r121687)
168221282Smm
169221282Smm	* config/i386/i386.c (override_options): Set PTA_SSSE3 for core2.
170221282Smm
171251212Spfg2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com> (r121625)
172251212Spfg
173251212Spfg	* config/i386/athlon.md (athlon_fldxf_k8, athlon_fld_k8,
174251212Spfg	athlon_fstxf_k8, athlon_fst_k8, athlon_fist, athlon_fmov,
175251212Spfg	athlon_fadd_load, athlon_fadd_load_k8, athlon_fadd, athlon_fmul,
176251212Spfg	athlon_fmul_load, athlon_fmul_load_k8, athlon_fsgn,
177251212Spfg	athlon_fdiv_load, athlon_fdiv_load_k8, athlon_fdiv_k8,
178251212Spfg	athlon_fpspc_load, athlon_fpspc, athlon_fcmov_load,
179251212Spfg	athlon_fcmov_load_k8, athlon_fcmov_k8, athlon_fcomi_load_k8,
180251212Spfg	athlon_fcomi, athlon_fcom_load_k8, athlon_fcom): Added amdfam10.
181251212Spfg
182251212Spfg2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com> (r121625)
183251212Spfg
184251212Spfg	* config/i386/i386.md (x86_sahf_1, cmpfp_i_mixed, cmpfp_i_sse,
185251212Spfg	cmpfp_i_i387, cmpfp_iu_mixed, cmpfp_iu_sse, cmpfp_iu_387,
186251212Spfg	swapsi, swaphi_1, swapqi_1, swapdi_rex64, fix_truncsfdi_sse,
187251212Spfg	fix_truncdfdi_sse, fix_truncsfsi_sse, fix_truncdfsi_sse,
188251212Spfg	x86_fldcw_1, floatsisf2_mixed, floatsisf2_sse, floatdisf2_mixed,
189251212Spfg	floatdisf2_sse, floatsidf2_mixed, floatsidf2_sse,
190251212Spfg	floatdidf2_mixed, floatdidf2_sse, muldi3_1_rex64, mulsi3_1,
191251212Spfg	mulsi3_1_zext, mulhi3_1, mulqi3_1, umulqihi3_1, mulqihi3_insn,
192251212Spfg	umulditi3_insn, umulsidi3_insn, mulditi3_insn, mulsidi3_insn,
193251212Spfg	umuldi3_highpart_rex64, umulsi3_highpart_insn,
194251212Spfg	umulsi3_highpart_zext, smuldi3_highpart_rex64,
195251212Spfg	smulsi3_highpart_insn, smulsi3_highpart_zext, x86_64_shld,
196251212Spfg	x86_shld_1, x86_64_shrd, sqrtsf2_mixed, sqrtsf2_sse,
197251212Spfg	sqrtsf2_i387, sqrtdf2_mixed, sqrtdf2_sse, sqrtdf2_i387,
198251212Spfg	sqrtextendsfdf2_i387, sqrtxf2, sqrtextendsfxf2_i387,
199251212Spfg	sqrtextenddfxf2_i387): Added amdfam10_decode.
200251212Spfg	
201251212Spfg	* config/i386/athlon.md (athlon_idirect_amdfam10,
202251212Spfg	athlon_ivector_amdfam10, athlon_idirect_load_amdfam10,
203251212Spfg	athlon_ivector_load_amdfam10, athlon_idirect_both_amdfam10,
204251212Spfg	athlon_ivector_both_amdfam10, athlon_idirect_store_amdfam10,
205251212Spfg	athlon_ivector_store_amdfam10): New define_insn_reservation.
206251212Spfg	(athlon_idirect_loadmov, athlon_idirect_movstore): Added
207251212Spfg	amdfam10.
208251212Spfg
209251212Spfg2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com> (r121625)
210251212Spfg
211251212Spfg	* config/i386/athlon.md (athlon_call_amdfam10,
212251212Spfg	athlon_pop_amdfam10, athlon_lea_amdfam10): New
213251212Spfg	define_insn_reservation.
214251212Spfg	(athlon_branch, athlon_push, athlon_leave_k8, athlon_imul_k8,
215251212Spfg	athlon_imul_k8_DI, athlon_imul_mem_k8, athlon_imul_mem_k8_DI,
216251212Spfg	athlon_idiv, athlon_idiv_mem, athlon_str): Added amdfam10.
217251212Spfg
218251212Spfg2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com> (r121625)
219251212Spfg
220251212Spfg	* config/i386/athlon.md (athlon_sseld_amdfam10,
221251212Spfg	athlon_mmxld_amdfam10, athlon_ssest_amdfam10,
222251212Spfg	athlon_mmxssest_short_amdfam10): New define_insn_reservation.
223251212Spfg
224251212Spfg2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com> (r121625)
225251212Spfg
226251212Spfg	* config/i386/athlon.md (athlon_sseins_amdfam10): New
227251212Spfg	define_insn_reservation.
228251212Spfg	* config/i386/i386.md (sseins): Added sseins to define_attr type
229251212Spfg	and define_attr unit.
230251212Spfg	* config/i386/sse.md: Set type attribute to sseins for insertq
231251212Spfg	and insertqi.
232251212Spfg
233251212Spfg2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com> (r121625)
234251212Spfg
235251212Spfg	* config/i386/athlon.md (sselog_load_amdfam10, sselog_amdfam10,
236251212Spfg	ssecmpvector_load_amdfam10, ssecmpvector_amdfam10,
237251212Spfg	ssecomi_load_amdfam10, ssecomi_amdfam10,
238251212Spfg	sseaddvector_load_amdfam10, sseaddvector_amdfam10): New
239251212Spfg	define_insn_reservation.
240251212Spfg	(ssecmp_load_k8, ssecmp, sseadd_load_k8, seadd): Added amdfam10.
241251212Spfg
242251212Spfg2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com> (r121625)
243251212Spfg
244251212Spfg	* config/i386/athlon.md (cvtss2sd_load_amdfam10,
245251212Spfg	cvtss2sd_amdfam10, cvtps2pd_load_amdfam10, cvtps2pd_amdfam10,
246251212Spfg	cvtsi2sd_load_amdfam10, cvtsi2ss_load_amdfam10,
247251212Spfg	cvtsi2sd_amdfam10, cvtsi2ss_amdfam10, cvtsd2ss_load_amdfam10,
248251212Spfg	cvtsd2ss_amdfam10, cvtpd2ps_load_amdfam10, cvtpd2ps_amdfam10,
249251212Spfg	cvtsX2si_load_amdfam10, cvtsX2si_amdfam10): New 
250251212Spfg	define_insn_reservation.
251251212Spfg
252251212Spfg	* config/i386/sse.md (cvtsi2ss, cvtsi2ssq, cvtss2si,
253251212Spfg	cvtss2siq, cvttss2si, cvttss2siq, cvtsi2sd, cvtsi2sdq,
254251212Spfg	cvtsd2si, cvtsd2siq, cvttsd2si, cvttsd2siq,
255251212Spfg	cvtpd2dq, cvttpd2dq, cvtsd2ss, cvtss2sd,
256251212Spfg	cvtpd2ps, cvtps2pd): Added amdfam10_decode attribute.
257251212Spfg
258251212Spfg2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com> (r121625)
259251212Spfg
260251212Spfg	* config/i386/athlon.md (athlon_ssedivvector_amdfam10,
261251212Spfg	athlon_ssedivvector_load_amdfam10, athlon_ssemulvector_amdfam10,
262251212Spfg	athlon_ssemulvector_load_amdfam10): New define_insn_reservation.
263251212Spfg	(athlon_ssediv, athlon_ssediv_load_k8, athlon_ssemul,
264251212Spfg	athlon_ssemul_load_k8): Added amdfam10.
265251212Spfg
266251212Spfg2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com> (r121625)
267251212Spfg
268251212Spfg	* config/i386/i386.h (TARGET_SSE_UNALIGNED_MOVE_OPTIMAL): New macro.
269251212Spfg	(x86_sse_unaligned_move_optimal): New variable.
270251212Spfg	
271251212Spfg	* config/i386/i386.c (x86_sse_unaligned_move_optimal): Enable for  
272251212Spfg	m_AMDFAM10.
273251212Spfg	(ix86_expand_vector_move_misalign): Add code to generate movupd/movups
274251212Spfg	for unaligned vector SSE double/single precision loads for AMDFAM10.
275251212Spfg
276251212Spfg2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com> (r121625)
277251212Spfg
278251212Spfg	* config/i386/i386.h (TARGET_AMDFAM10): New macro.
279251212Spfg	(TARGET_CPU_CPP_BUILTINS): Add code for amdfam10.
280251212Spfg	Define TARGET_CPU_DEFAULT_amdfam10.
281251212Spfg	(TARGET_CPU_DEFAULT_NAMES): Add amdfam10.
282251212Spfg	(processor_type): Add PROCESSOR_AMDFAM10.	
283251212Spfg	
284251212Spfg	* config/i386/i386.md: Add amdfam10 as a new cpu attribute to match
285251212Spfg	processor_type in config/i386/i386.h.
286251212Spfg	Enable imul peepholes for TARGET_AMDFAM10.
287251212Spfg	
288251212Spfg	* config.gcc: Add support for --with-cpu option for amdfam10.
289251212Spfg	
290251212Spfg	* config/i386/i386.c (amdfam10_cost): New variable.
291251212Spfg	(m_AMDFAM10): New macro.
292251212Spfg	(m_ATHLON_K8_AMDFAM10): New macro.
293251212Spfg	(x86_use_leave, x86_push_memory, x86_movx, x86_unroll_strlen,
294251212Spfg	x86_cmove, x86_3dnow_a, x86_deep_branch, x86_use_simode_fiop,
295251212Spfg	x86_promote_QImode, x86_integer_DFmode_moves,
296251212Spfg	x86_partial_reg_dependency, x86_memory_mismatch_stall, 
297251212Spfg	x86_accumulate_outgoing_args, x86_arch_always_fancy_math_387,
298251212Spfg	x86_sse_partial_reg_dependency, x86_sse_typeless_stores,
299251212Spfg	x86_use_ffreep, x86_use_incdec, x86_four_jump_limit,
300251212Spfg	x86_schedule, x86_use_bt, x86_cmpxchg16b, x86_pad_returns):
301251212Spfg	Enable/disable for amdfam10.
302251212Spfg	(override_options): Add amdfam10_cost to processor_target_table.
303251212Spfg	Set up PROCESSOR_AMDFAM10 for amdfam10 entry in 
304251212Spfg	processor_alias_table.
305251212Spfg	(ix86_issue_rate): Add PROCESSOR_AMDFAM10.
306251212Spfg	(ix86_adjust_cost): Add code for amdfam10.
307251212Spfg
308251212Spfg2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com> (r121625)
309251212Spfg	
310251212Spfg	* config/i386/i386.opt: Add new Advanced Bit Manipulation (-mabm)
311251212Spfg	instruction set feature flag. Add new (-mpopcnt) flag for popcnt 
312251212Spfg	instruction. Add new SSE4A (-msse4a) instruction set feature flag.
313251212Spfg	* config/i386/i386.h: Add builtin definition for SSE4A.
314251212Spfg	* config/i386/i386.md: Add support for ABM instructions 
315251212Spfg	(popcnt and lzcnt).
316251212Spfg	* config/i386/sse.md: Add support for SSE4A instructions
317251212Spfg	(movntss, movntsd, extrq, insertq).
318251212Spfg	* config/i386/i386.c: Add support for ABM and SSE4A builtins.
319251212Spfg	Add -march=amdfam10 flag.
320251212Spfg	* config/i386/ammintrin.h: Add support for SSE4A intrinsics.
321251212Spfg	* doc/invoke.texi: Add documentation on flags for sse4a, abm, popcnt
322251212Spfg	and amdfam10.
323251212Spfg	* doc/extend.texi: Add documentation for SSE4A builtins.
324251212Spfg
325251212Spfg2007-01-24  Jakub Jelinek  <jakub@redhat.com> (r121140)
326251212Spfg
327251212Spfg	* config/i386/i386.h (x86_cmpxchg16b): Remove const.
328251212Spfg	(TARGET_CMPXCHG16B): Define to x86_cmpxchg16b.
329251212Spfg	* config/i386/i386.c (x86_cmpxchg16b): Remove const.
330251212Spfg	(override_options): Add PTA_CX16 flag.  Set x86_cmpxchg16b
331251212Spfg	for CPUs that have PTA_CX16 set.
332251212Spfg
333221282Smm2007-01-17  Eric Christopher  <echristo@apple.com> (r120846)
334221282Smm
335221282Smm	* config.gcc: Support core2 processor.
336221282Smm
337259268Spfg2006-12-13  Ian Lance Taylor  <iant@google.com> (r119855)
338259268Spfg
339259268Spfg	PR c++/19564
340259268Spfg	PR c++/19756
341259268Spfg	* c-typeck.c (parser_build_binary_op): Move parentheses warnings
342259268Spfg	to warn_about_parentheses in c-common.c.
343259268Spfg	* c-common.c (warn_about_parentheses): New function.
344259268Spfg	* c-common.h (warn_about_parentheses): Declare.
345259268Spfg	* doc/invoke.texi (Warning Options): Update -Wparentheses
346259268Spfg	description.
347259268Spfg
348259563Spfg2006-12-12  Geoffrey Keating  <geoffk@apple.com> (r119820)
349259563Spfg 
350259563Spfg	* mips-tdump.c: Replace CROSS_COMPILE with
351259563Spfg	CROSS_DIRECTORY_STRUCTURE.
352259563Spfg	* mips-tfile.c: Likewise.
353259563Spfg	* gcc.c: Likewise.
354259563Spfg	* configure.ac: Likewise.
355259563Spfg	* cppdefault.c: Likewise.
356259563Spfg	* Makefile.in: Likewise.
357259563Spfg	* config/alpha/osf.h: Likewise.
358259563Spfg	* config/i386/cygwin.h: Likewise.
359259563Spfg	* config/i386/beos-elf.h: Likewise.
360259563Spfg	* config/i386/nto.h: Likewise.
361259563Spfg	* config/svr4.h: Likewise.
362259563Spfg	* config/rs6000/aix.h: Likewise.
363259563Spfg	* config/rs6000/sysv4.h: Likewise.
364259563Spfg	* collect2.c: Likewise.
365259563Spfg	* configure: Regenerate.
366259563Spfg
367259563Spfg 	* doc/tm.texi (Alignment Output): Document that ASM_OUTPUT_SKIP
368259563Spfg 	actually takes an unsigned HOST_WIDE_INT for its second parameter.
369259563Spfg
370221282Smm2006-12-02  H.J. Lu  <hongjiu.lu@intel.com> (r119454 - partial)
371221282Smm
372221282Smm	PR target/30040
373221282Smm	* config/i386/driver-i386.c (bit_SSSE3): New.
374221282Smm
375251212Spfg2006-11-27  Uros Bizjak  <ubizjak@gmail.com> (r119260)
376251212Spfg
377251212Spfg	* config/i386/i386.c (x86_ext_80387_constants): Add m_K8, m_CORE2
378251212Spfg	and m_GENERIC64.
379251212Spfg
380221282Smm2006-11-18  Vladimir Makarov  <vmakarov@redhat.com> (r118973)
381221282Smm
382221282Smm	* doc/invoke.texi (core2): Add item.
383221282Smm
384221282Smm	* config/i386/i386.h (TARGET_CORE2, TARGET_CPU_DEFAULT_core2): New
385221282Smm	macros.
386221282Smm	(TARGET_CPU_CPP_BUILTINS): Add code for core2.
387221282Smm	(TARGET_CPU_DEFAULT_generic): Change value.
388221282Smm	(TARGET_CPU_DEFAULT_NAMES): Add core2.
389221282Smm	(processor_type): Add new constant PROCESSOR_CORE2.
390221282Smm
391221282Smm	* config/i386/i386.md (cpu): Add core2.
392221282Smm
393221282Smm	* config/i386/i386.c (core2_cost): New initialized variable.
394221282Smm	(m_CORE2): New macro.
395221282Smm	(x86_use_leave, x86_push_memory, x86_movx, x86_unroll_strlen,
396221282Smm	x86_deep_branch, x86_partial_reg_stall, x86_use_simode_fiop,
397221282Smm	x86_use_cltd, x86_promote_QImode, x86_sub_esp_4, x86_sub_esp_8,
398221282Smm	x86_add_esp_4, x86_add_esp_8, x86_integer_DFmode_moves,
399221282Smm	x86_partial_reg_dependency, x86_memory_mismatch_stall,
400221282Smm	x86_accumulate_outgoing_args, x86_prologue_using_move,
401221282Smm	x86_epilogue_using_move, x86_arch_always_fancy_math_387,
402221282Smm	x86_sse_partial_reg_dependency, x86_rep_movl_optimal,
403221282Smm	x86_use_incdec, x86_four_jump_limit, x86_schedule,
404221282Smm	x86_pad_returns): Add m_CORE2.
405221282Smm	(override_options): Add entries for Core2.
406221282Smm	(ix86_issue_rate): Add case for Core2.
407221282Smm	
408259563Spfg2006-11-07  Eric Christopher  <echristo@apple.com> (r118576)
409259563Spfg
410259563Spfg	* libgcc2.c (__bswapdi2): Rename from bswapDI2.
411259563Spfg	(__bswapsi2): Ditto.
412259563Spfg	* libgcc2.h: Remove transformation of bswap routines.
413259563Spfg	* config/i386/i386.md (bswapsi2): New.
414259563Spfg	(bswapdi2): Ditto.
415259563Spfg
416259563Spfg2006-10-31  Geoffrey Keating  <geoffk@apple.com> (r118360)
417259563Spfg 
418259563Spfg	* coverage.c (coverage_checksum_string): Update comment.
419259563Spfg	* dwarf2out.c (switch_to_eh_frame_section): Update for removal
420259563Spfg	of get_file_function_name.
421259563Spfg	* cgraphunit.c (cgraph_build_static_cdtor): Update for rename
422259563Spfg	of get_file_function_name_long.
423259563Spfg	* tree.c (get_file_function_name): Rename from
424259563Spfg	get_file_function_name_long; improve comment; handle 'I' and 'D'
425259563Spfg	specially when the target has ctor/dtor support; remove special
426259563Spfg	handling for 'F'.
427259563Spfg	(get_file_function_name): Remove.
428259563Spfg	* tree.h (get_file_function_name): Rename from
429259563Spfg        get_file_function_name_long.
430259563Spfg	(get_file_function_name): Remove prototype.
431259563Spfg
432259268Spfg2006-10-31  Geoffrey Keating  <geoffk@apple.com> (r118356)
433259268Spfg
434259268Spfg	* c-decl.c (grokdeclarator): Don't set DECL_EXTERNAL on
435259268Spfg	inline static functions in c99 mode.
436259268Spfg
437259268Spfg	PR 16622
438259268Spfg	* doc/extend.texi (Inline): Update.
439259268Spfg	* c-tree.h (struct language_function): Remove field 'extern_inline'.
440259268Spfg	* c-decl.c (current_extern_inline): Delete.
441259268Spfg	(pop_scope): Adjust test for an undefined nested function.
442259268Spfg	Add warning about undeclared inline function.
443259268Spfg	(diagnose_mismatched_decls): Update comments.  Disallow overriding
444259268Spfg	of inline functions in a translation unit in C99.  Allow inline
445259268Spfg	declarations in C99 at any time.
446259268Spfg	(merge_decls): Boolize variables.  Handle C99 'extern inline'
447259268Spfg	semantics.
448259268Spfg	(grokdeclarator): Set DECL_EXTERNAL here for functions.  Handle
449259268Spfg	C99 inline semantics.
450259268Spfg	(start_function): Don't clear current_extern_inline.  Don't set
451259268Spfg	DECL_EXTERNAL.
452259268Spfg	(c_push_function_context): Don't push current_extern_inline.
453259268Spfg	(c_pop_function_context): Don't restore current_extern_inline.
454259268Spfg
455259268Spfg	PR 11377
456259268Spfg	* c-typeck.c (build_external_ref): Warn about static variables
457259268Spfg	used in extern inline functions.
458259268Spfg	* c-decl.c (start_decl): Warn about static variables declared
459259268Spfg	in extern inline functions.
460259268Spfg
461221282Smm2006-10-27  Vladimir Makarov  <vmakarov@redhat.com> (r118090)
462221282Smm
463221282Smm	* config/i386/i386.h (TARGET_GEODE):
464221282Smm	(TARGET_CPU_CPP_BUILTINS): Add code for geode.
465221282Smm	(TARGET_CPU_DEFAULT_geode): New macro.
466221282Smm	(TARGET_CPU_DEFAULT_k6, TARGET_CPU_DEFAULT_k6_2,
467221282Smm	TARGET_CPU_DEFAULT_k6_3, TARGET_CPU_DEFAULT_athlon,
468221282Smm	TARGET_CPU_DEFAULT_athlon_sse, TARGET_CPU_DEFAULT_k8,
469221282Smm	TARGET_CPU_DEFAULT_pentium_m, TARGET_CPU_DEFAULT_prescott,
470221282Smm	TARGET_CPU_DEFAULT_nocona, TARGET_CPU_DEFAULT_generic): Increase
471221282Smm	the macro values.
472221282Smm	(TARGET_CPU_DEFAULT_NAMES): Add geode.
473221282Smm	(processor_type): Add PROCESSOR_GEODE.
474221282Smm
475221282Smm	* config/i386/i386.md: Include geode.md.
476221282Smm	(cpu): Add geode.
477221282Smm
478221282Smm	* config/i386/i386.c (geode_cost): New initialized global
479221282Smm	variable.
480221282Smm	(m_GEODE, m_K6_GEODE): New macros.
481221282Smm	(x86_use_leave, x86_push_memory, x86_deep_branch, x86_use_sahf,
482221282Smm	x86_use_himode_fiop, x86_promote_QImode, x86_add_esp_4,
483221282Smm	x86_add_esp_8, x86_rep_movl_optimal, x86_ext_80387_constants,
484221282Smm	x86_schedule): Use m_K6_GEODE instead of m_K6.
485221282Smm	(x86_movx, x86_cmove): Set up m_GEODE.
486221282Smm	(x86_integer_DFmode_moves): Clear m_GEODE.
487221282Smm	(processor_target_table): Add entry for geode.
488221282Smm	(processor_alias_table): Ditto.
489221282Smm
490221282Smm	* config/i386/geode.md: New file.
491221282Smm
492221282Smm	* doc/invoke.texi: Add entry about geode processor.
493237021Spfg    
494237406Spfg2006-10-24  Richard Guenther  <rguenther@suse.de> (r118001)
495228756Spfg
496228756Spfg	PR middle-end/28796
497228756Spfg	* builtins.c (fold_builtin_classify): Use HONOR_INFINITIES
498228756Spfg	and HONOR_NANS instead of MODE_HAS_INFINITIES and MODE_HAS_NANS
499228756Spfg	for deciding optimizations in consistency with fold-const.c
500228756Spfg	(fold_builtin_unordered_cmp): Likewise.
501228756Spfg
502221282Smm2006-10-22  H.J. Lu  <hongjiu.lu@intel.com> (r117958)
503221282Smm
504221282Smm	* config.gcc (i[34567]86-*-*): Add tmmintrin.h to extra_headers.
505221282Smm	(x86_64-*-*): Likewise.
506221282Smm
507221282Smm	* config/i386/i386.c (pta_flags): Add PTA_SSSE3.
508221282Smm	(override_options): Check SSSE3.
509221282Smm	(ix86_builtins): Add IX86_BUILTIN_PHADDW, IX86_BUILTIN_PHADDD,
510221282Smm	IX86_BUILTIN_PHADDSW, IX86_BUILTIN_PHSUBW, IX86_BUILTIN_PHSUBD,
511221282Smm	IX86_BUILTIN_PHSUBSW, IX86_BUILTIN_PMADDUBSW,
512221282Smm	IX86_BUILTIN_PMULHRSW, IX86_BUILTIN_PSHUFB,
513221282Smm	IX86_BUILTIN_PSIGNB, IX86_BUILTIN_PSIGNW, IX86_BUILTIN_PSIGND,
514221282Smm	IX86_BUILTIN_PALIGNR, IX86_BUILTIN_PABSB, IX86_BUILTIN_PABSW,
515221282Smm	IX86_BUILTIN_PABSD, IX86_BUILTIN_PHADDW128,
516221282Smm	IX86_BUILTIN_PHADDD128, IX86_BUILTIN_PHADDSW128,
517221282Smm	IX86_BUILTIN_PHSUBW128, IX86_BUILTIN_PHSUBD128,
518221282Smm	IX86_BUILTIN_PHSUBSW128, IX86_BUILTIN_PMADDUBSW128,
519221282Smm	IX86_BUILTIN_PMULHRSW128, IX86_BUILTIN_PSHUFB128,
520221282Smm	IX86_BUILTIN_PSIGNB128, IX86_BUILTIN_PSIGNW128,
521221282Smm	IX86_BUILTIN_PSIGND128, IX86_BUILTIN_PALIGNR128,
522221282Smm	IX86_BUILTIN_PABSB128, IX86_BUILTIN_PABSW128 and
523221282Smm	IX86_BUILTIN_PABSD128.
524221282Smm	(bdesc_2arg): Add SSSE3.
525221282Smm	(bdesc_1arg): Likewise.
526221282Smm	(ix86_init_mmx_sse_builtins): Support SSSE3.
527221282Smm	(ix86_expand_builtin): Likewise.
528221282Smm	* config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): Likewise.
529221282Smm
530221282Smm	* config/i386/i386.md (UNSPEC_PSHUFB): New.
531221282Smm	(UNSPEC_PSIGN): Likewise.
532221282Smm	(UNSPEC_PALIGNR): Likewise.
533221282Smm	Include mmx.md before sse.md.
534221282Smm
535221282Smm	* config/i386/i386.opt: Add -mssse3.
536221282Smm
537221282Smm	* config/i386/sse.md (ssse3_phaddwv8hi3): New pattern for SSSE3.
538221282Smm	(ssse3_phaddwv4hi3): Likewise.
539221282Smm	(ssse3_phadddv4si3): Likewise.
540221282Smm	(ssse3_phadddv2si3): Likewise.
541221282Smm	(ssse3_phaddswv8hi3): Likewise.
542221282Smm	(ssse3_phaddswv4hi3): Likewise.
543221282Smm	(ssse3_phsubwv8hi3): Likewise.
544221282Smm	(ssse3_phsubwv4hi3): Likewise.
545221282Smm	(ssse3_phsubdv4si3): Likewise.
546221282Smm	(ssse3_phsubdv2si3): Likewise.
547221282Smm	(ssse3_phsubswv8hi3): Likewise.
548221282Smm	(ssse3_phsubswv4hi3): Likewise.
549221282Smm	(ssse3_pmaddubswv8hi3): Likewise.
550221282Smm	(ssse3_pmaddubswv4hi3): Likewise.
551221282Smm	(ssse3_pmulhrswv8hi3): Likewise.
552221282Smm	(ssse3_pmulhrswv4hi3): Likewise.
553221282Smm	(ssse3_pshufbv16qi3): Likewise.
554221282Smm	(ssse3_pshufbv8qi3): Likewise.
555221282Smm	(ssse3_psign<mode>3): Likewise.
556221282Smm	(ssse3_psign<mode>3): Likewise.
557221282Smm	(ssse3_palignrti): Likewise.
558221282Smm	(ssse3_palignrdi): Likewise.
559221282Smm	(abs<mode>2): Likewise.
560221282Smm	(abs<mode>2): Likewise.
561221282Smm
562221282Smm	* config/i386/tmmintrin.h: New file.
563221282Smm
564221282Smm	* doc/extend.texi: Document SSSE3 built-in functions.
565221282Smm
566221282Smm	* doc/invoke.texi: Document -mssse3/-mno-ssse3 switches.
567233923Spfg
568251212Spfg2006-10-22  H.J. Lu  <hongjiu.lu@intel.com> (r117959)
569250550Spfg  	 
570250550Spfg	* config/i386/tmmintrin.h: Remove the duplicated content.
571250550Spfg
572237406Spfg2006-10-21  Richard Guenther  <rguenther@suse.de> (r117932)
573233923Spfg
574237406Spfg	PR tree-optimization/3511
575237406Spfg	* tree-ssa-pre.c (phi_translate): Fold CALL_EXPRs that
576237406Spfg	got new invariant arguments during PHI translation.
577237406Spfg
578237406Spfg2006-10-21  Richard Guenther  <rguenther@suse.de> (r117929)
579237406Spfg
580233923Spfg	* builtins.c (fold_builtin_classify): Fix typo.
581233923Spfg
582259563Spfg2006-09-07  Eric Christopher  <echristo@apple.com> (r118361)
583259563Spfg	    Falk Hueffner  <falk@debian.org>
584259563Spfg
585259563Spfg	* doc/extend.texi (__builtin_bswap32): Document.
586259563Spfg	(__builtin_bswap64): Ditto.
587259563Spfg	* doc/libgcc.texi (bswapsi2): Document.
588259563Spfg	(bswapdi2): Ditto.
589259563Spfg	* doc/rtl.texi (bswap): Document.
590259563Spfg	* optabs.c (expand_unop): Don't widen a bswap.
591259563Spfg	(init_optabs): Init bswap. Set libfuncs explicitly
592259563Spfg	for bswapsi2 and bswapdi2.
593259563Spfg	* optabs.h (OTI_bswap): New.
594259563Spfg	(bswap_optab): Ditto.
595259563Spfg	* genopinit.c (optabs): Handle bswap_optab.
596259563Spfg	* tree.h (tree_index): Add TI_UINT32_TYPE and
597259563Spfg	TI_UINT64_TYPE.
598259563Spfg	(uint32_type_node): New.
599259563Spfg	(uint64_type_node): Ditto.
600259563Spfg	* tree.c (build_common_tree_nodes_2): Initialize
601259563Spfg	uint32_type_node and uint64_type_node.
602259563Spfg	* builtins.c (expand_builtin_bswap): New.
603259563Spfg	(expand_builtin): Call.
604259563Spfg	(fold_builtin_bswap): New.
605259563Spfg	(fold_builtin_1): Call.
606259563Spfg	* fold-const.c (tree_expr_nonnegative_p): Return true
607259563Spfg	for bswap.
608259563Spfg	* builtin-types.def (BT_UINT32): New.
609259563Spfg	(BT_UINT64): Ditto.
610259563Spfg	(BT_FN_UINT32_UINT32): Ditto.
611259563Spfg	(BT_FN_UINT64_UINT64): Ditto.
612259563Spfg	* builtins.def (BUILT_IN_BSWAP32): New.
613259563Spfg	(BUILT_IN_BSWAP64): Ditto.
614259563Spfg	* rtl.def (BSWAP): New.
615259563Spfg	* genattrtab.c (check_attr_value): New.
616259563Spfg	* libgcc2.c (__bswapSI2): New.
617259563Spfg	(__bswapDI2): Ditto.
618259563Spfg	* libgcc2.h (__bswapSI2): Declare.
619259563Spfg	(__bswapDI2): Ditto.
620259563Spfg	* mklibgcc.in (lib2funcs): Add _bswapsi2 and _bswapdi2.
621259563Spfg	* simplify-rtx.c (simplify_const_unary_operation): Return
622259563Spfg	0 for BSWAP.
623259563Spfg	* libgcc-std.ver (__bwapsi2): Add.
624259563Spfg	(__bswapdi2): Ditto.
625259563Spfg	* reload1.c (eliminate_regs_1): Add bswap.
626259563Spfg	(elimination_effects): Ditto.
627259563Spfg	* config/i386/i386.h (x86_bswap): New.
628259563Spfg	(TARGET_BSWAP): Use.
629259563Spfg	* config/i386/i386.c (x86_bswap): Set.
630