1 2008-05-05 Jan Hubicka <jh@suse.cz>
3 PR tree-optimization/36118
4 * passes.c (pass_init_dump_file): Fix dump header.
6 2008-05-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
9 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't create VCE
12 2008-05-05 H.J. Lu <hongjiu.lu@intel.com>
14 * config/i386/sse.md (sse2_<plusminus_insn><mode>3): Fix a typo.
16 2008-05-05 H.J. Lu <hongjiu.lu@intel.com>
18 * config/i386/i386.md (sat_plusminus): New.
19 (plusminus_insn): Likewise.
20 (plusminus_mnemonic): Likewise.
22 (comm): Add ss_plus, us_plus, ss_minus and us_minus.
23 (*<addsub><mode>3_cc_overflow): Renamed to ...
24 (*<plusminus_insn><mode>3_cc_overflow): This.
25 (*<addsub>si3_zext_cc_overflow): Renamed to ...
26 (*<plusminus_insn>si3_zext_cc_overflow): This.
28 * config/i386/sse.md (<addsub><mode>3): Renamed to ...
29 (<plusminus_insn><mode>3): This.
30 (*<addsub><mode>3): Renamed to ...
31 (*<plusminus_insn><mode>3): This.
32 (<sse>_vm<addsub><mode>3): Renamed to ...
33 (<sse>_vm<plusminus_insn><mode>3): This.
34 (sse3_h<addsub>v4sf3): Renamed to ...
35 (sse3_h<plusminus_insn>v4sf3): This.
36 (sse3_h<addsub>v2df3): Renamed to ...
37 (sse3_h<plusminus_insn>v2df3): This.
38 (<plusminus_insn><mode>3): New.
39 (*<plusminus_insn><mode>3): Likewise.
40 (sse2_<plusminus_insn><mode>3): Likewise.
42 (*add<mode>3): Likewise.
43 (sse2_ssadd<mode>3): Likewise.
44 (sse2_usadd<mode>3): Likewise.
45 (sub<mode>3): Likewise.
46 (*sub<mode>3): Likewise.
47 (sse2_sssub<mode>3): Likewise.
48 (sse2_ussub<mode>3): Likewise.
50 2008-05-05 Benjamin Kosnik <bkoz@redhat.com>
52 * gthr-single.h: Add in required interface elements as per gthr.h.
53 Add stub types for __gthread_key_t, __gthread_once_t. Add defines
54 for __GTHREAD_ONCE_INIT, __GTHREAD_RECURSIVE_MUTEX_INIT.
55 Generalize UNUSED macro.
56 (__gthread_once): Add.
57 (__gthread_key_create): Add.
58 (__gthread_key_delete): Add.
59 (__gthread_getspecific): Add.
60 (__gthread_setspecific): Add.
62 2008-05-05 Andrew Pinski <Andrew.Pinski@playstation.sony.com>
64 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If we have
65 the same size types for the indirect reference on the rhs, then
68 2008-05-05 Uros Bizjak <ubizjak@gmail.com>
71 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Use only
72 one insn template instead of template series.
73 (*xordi_1_rex64): Ditto.
74 (*xordi_2_rex64): Ditto.
76 2008-05-05 Ira Rosen <irar@il.ibm.com>
78 PR tree-optimization/36119
79 * tree-vect-transform.c (vectorizable_assignment): Set NCOPIES to 1
82 2008-06-04 Jan Hubicka <jh@suse.cz>
84 tree-optimization/36100
85 * tree-pass.h (pass_O0_always_inline): Declare.
86 * ipa-inline.c (inline_transform): Remove dead code.
87 (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
88 pass_O0_always_inline): New.
89 * passes.c (init_optimization_passes): Add pass_O0_always_inline.
91 2008-05-04 Kai Tietz <kai.tietz@onevision.com>
93 * config/i386/i386.c (x86_output_mi_thunk): Use movq alternative
94 mnemonic in this_param move for TARGET_64BIT.
96 2008-05-04 Uros Bizjak <ubizjak@gmail.com>
98 * config/i386/i386.md (*strmovsi_1): Simplify asm alternatives.
99 (*strmovsi_rex_1): Ditto.
100 (*strsetsi_1): Ditto.
101 (*strsetsi_rex_1): Ditto.
103 (add<mode>cc): Macroize expander from addqicc, addhicc, addsicc and
104 adddicc expanders using SWI mode iterator.
106 2008-05-04 H.J. Lu <hongjiu.lu@intel.com>
109 * config/i386/i386.c (ix86_expand_special_args_builtin): Remove three
112 2008-05-04 David S. Miller <davem@davemloft.net>
114 * config.gcc (sparc*-*-*): Always set need_64bit_hwint to yes.
115 (sparc*-*-linux*): Use linux.h in tm_file.
116 (sparc-*-linux*): If 'enabled_targets' is 'all', build a bi-arch
117 compiler defaulting to 32-bit.
118 (sparc*-*-*): Remove explicit target settings of need_64bit_hwint,
120 * config/sparc/linux.h: Remove definitions now obtained
121 properly from linux.h
122 * config/sparc/linux64.h: Likewise.
123 (ASM_CPU_DEFAULT_SPEC): Change this to ASM_CPU64_DEFAULT_SPEC, we
124 don't want this setting for 32-bit builds in a biarch compiler.
125 * doc/install.texi: Add sparc-linux to list of targets
126 supporting --enable-targets=all.
128 2008-05-03 Andrew Pinski <pinskia@gmail.com>
130 * Makefile.in (tree-ssa-phiprop.o): Fix dependencies.
132 2008-05-03 H.J. Lu <hongjiu.lu@intel.com>
134 * config/i386/i386.c (ix86_builtin_type): Move V4SI_FTYPE_V4SF
135 after V4SI_FTYPE_V8HI.
136 (ix86_init_mmx_sse_builtins): Move case V4HI_FTYPE_V4HI after
137 case V4SI_FTYPE_V2DF.
139 2008-05-03 Kenneth Zadeck <zadeck@naturalbridge.com>
141 * doc/invoke.texi (max-flow-memory-locations): Removed.
142 * params.def (PARAM_MAX_FLOW_MEMORY_LOCATIONS): Removed.
144 2008-05-03 Richard Guenther <rguenther@suse.de>
147 * opts.c (set_Wstrict_aliasing): Handle the turn-off case.
149 2008-05-02 David S. Miller <davem@davemloft.net>
151 * config.gcc (need_64bit_hwint): Document libcpp dependency.
153 2008-05-02 Simon Baldwin <simonb@google.com>
156 * c-common.h (warn_array_subscript_range): Removed.
157 * c-common.c (warn_array_subscript_range): Ditto.
158 * tree-vrp.c (check_array_ref): Revert to ignoring arrays with size 2.
159 * c-typeck.c (build_array_ref): Remove warn_array_subscript_range.
161 2008-05-02 H.J. Lu <hongjiu.lu@intel.com>
163 * config/i386/i386.c (ix86_special_builtin_type): New.
164 (bdesc_special_args): Likewise.
165 (ix86_expand_special_args_builtin): Likewise.
166 (ix86_init_mmx_sse_builtins): Updated.
167 (ix86_expand_builtin): Updated.
168 (ix86_expand_store_builtin): Removed.
169 (ix86_expand_unop_builtin): Likewise.
171 * config/i386/mm3dnow.h (__v2sf): Moved to ...
172 * config/i386/mmintrin.h (__v2sf): Here.
174 * config/i386/xmmintrin.h (_mm_loadh_pi): Replace __v2si with
176 (_mm_loadl_pi): Likewise.
177 (_mm_storeh_pi): Replace __v2si with __v2sf.
178 (_mm_storel_pi): Likewise.
180 * doc/extend.texi: Correct __builtin_ia32_loadhps,
181 __builtin_ia32_loadlps, __builtin_ia32_storehps,
182 __builtin_ia32_storelps, __builtin_ia32_loadhpd and
183 __builtin_ia32_loadlpd.
185 2008-05-02 H.J. Lu <hongjiu.lu@intel.com>
187 * config/i386/i386.c (ix86_builtin_type): Add FLOAT_FTYPE_FLOAT,
188 V4SF_FTYPE_V4SF_VEC_MERGE and V2DF_FTYPE_V2DF_VEC_MERGE.
189 (bdesc_args): Updated. Add scalar SSE builtins with vec_merge.
190 (ix86_init_mmx_sse_builtins): Updated.
191 (ix86_expand_args_builtin): Likewise.
192 (ix86_expand_builtin): Likewise.
193 (ix86_expand_unop1_builtin): Renamed to ...
194 (ix86_expand_unop_vec_merge_builtin): This.
196 2008-05-01 Jan Hubicka <jh@suse.cz>
199 * ipa-inline.c (inline_generate_summary): Make static.
200 (inline_transform): Do not call inlining at -O0; make static.
201 * passes.c (execute_todo): Add sanity check.
202 (execute_one_ipa_transform_pass): Execute proper flags.
204 2008-05-01 Eric Botcazou <ebotcazou@adacore.com>
206 * tree.h (TYPE_NONALIASED_COMPONENT): Expand comment.
207 (DECL_NONADDRESSABLE_P): Likewise.
208 * alias.c (record_component_aliases): Fix comment.
210 2008-05-01 Simon Baldwin <simonb@google.com>
212 * c-common.h (warn_array_subscript_range): New function.
213 * c-common.c (warn_array_subscript_range): Ditto.
214 * tree-vrp.c (check_array_ref): Corrected code to agree with
215 comment, ignoring only arrays of size 0 or size 1.
216 * c-typeck.c (build_array_ref): Call warn_array_subscript_range.
218 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
220 * config/i386/i386.c (ix86_builtin_type): Replace
221 DI_FTYPE_DI_DI_INT with V1DI2DI_FTYPE_V1DI_V1DI_INT.
222 (bdesc_args): Updated.
223 (ix86_init_mmx_sse_builtins): Likewise.
224 (ix86_expand_args_builtin): Likewise.
226 * config/i386/tmmintrin.h (_mm_alignr_pi8): Replace long long
229 * doc/extend.texi: Correct __builtin_ia32_palignr.
231 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
234 * config/i386/i386.c (bdesc_crc32): Removed.
235 (ix86_expand_crc32): Likewise.
236 (ix86_builtin_type): Replace V2DI2TI_FTYPE_V2DI2TI_INT with
237 V2DI2TI_FTYPE_V2DI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT with
238 V2DI2TI_FTYPE_V2DI_V2DI_INT. Add UINT64_FTYPE_UINT64_UINT64,
239 UINT_FTYPE_UINT_UINT, UINT_FTYPE_UINT_USHORT and
240 UINT_FTYPE_UINT_UCHAR.
241 (bdesc_args): Updated. Add crc32 builtins.
242 (ix86_init_mmx_sse_builtins): Updated.
243 (ix86_expand_args_builtin): Updated to support subreg.
245 * doc/extend.texi: Correct __builtin_ia32_crc32di.
247 2008-05-01 Jan Hubicka <jh@suse.cz>
249 * tree-pass.h (opt_pass): Add IPA_PASS.
250 (varpool_node, cgraph_node): Forward declare.
251 (ipa_opt_pass): Define.
252 (pass_ipa_inline): Turn into ipa_opt_pass.
253 (pass_apply_inline): Remove.
254 * ipa-inline.c (pass_ipa_inline): Turn into ipa_opt_pass.
255 (apply_inline): Turn into ....
256 (inline_transform): ... this one.
257 (inline_generate_summary): New function.
258 (pass_apply_inline): Remove.
259 * function.h (ipa_opt_pass): Forward declare structure; typedef;
261 (struct function): Add ipa_transforms_to_apply.
262 * passes.c (register_one_dump_file): Work on IPA_PASS.
263 (init_optimization_passes): Remove pass_inline_parameters and
265 (pass_init_dump_file, pass_fini_dump_file): Break out from ....
266 (execute_one_pass) ... here; apply transforms when possible.
267 (add_ipa_transform_pass, execute_ipa_summary_asses,
268 execute_one_ipa_transform_pass): New.
269 (execute_ipa_pass_list): Update for IPA_PASS type.
271 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
273 * config/i386/i386.c (ix86_builtin_type): Add
274 V2DI_FTYPE_V2DI_V16QI, V2DI_FTYPE_V2DI_UINT_UINT and
275 V2DI_FTYPE_V2DI_V2DI_UINT_UINT.
276 (bdesc_args): Add SSE4a builtins.
277 (ix86_init_mmx_sse_builtins): Updated.
278 (ix86_expand_args_builtin): Likewise.
279 (ix86_expand_builtin): Likewise.
281 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
283 * config/i386/i386.c (ix86_builtin_type): Add
284 V8HI_FTYPE_V8HI_V8HI_COUNT, V8HI_FTYPE_V8HI_SI_COUNT,
285 V4SI_FTYPE_V4SI_V4SI_COUNT, V4SI_FTYPE_V4SI_SI_COUNT,
286 V4HI_FTYPE_V4HI_V4HI_COUNT, V4HI_FTYPE_V4HI_SI_COUNT,
287 V2DI_FTYPE_V2DI_V2DI_COUNT, V2DI_FTYPE_V2DI_SI_COUNT,
288 V2SI_FTYPE_V2SI_V2SI_COUNT, V2SI_FTYPE_V2SI_SI_COUNT,
289 V1DI_FTYPE_V1DI_V1DI_COUNT, V1DI_FTYPE_V1DI_SI_COUNT,
290 V8HI_FTYPE_V8HI_INT, V4SI_FTYPE_V4SI_INT, V4HI_FTYPE_V4HI_INT,
291 V2DI2TI_FTYPE_V2DI2TI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT
292 and DI_FTYPE_DI_DI_INT.
293 (bdesc_args): Add MMX/SSE shift, shuffle and palignr builtins.
294 (ix86_init_mmx_sse_builtins): Updated.
295 (ix86_expand_args_builtin): Likewise.
296 (ix86_expand_builtin): Likewise.
297 (ix86_expand_binop_imm_builtin): Removed.
299 * doc/extend.texi: Correct __builtin_ia32_palignr128.
301 2008-04-30 Richard Guenther <rguenther@suse.de>
303 PR tree-optimization/32921
304 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Disambiguate with TBAA.
306 2008-04-30 Richard Sandiford <rsandifo@nildram.co.uk>
308 * config/arm/arm.c (arm_unwind_emit): Use
309 crtl->all_throwers_are_sibcalls instead of
310 cfun->all_throwers_are_sibcalls.
311 (arm_output_fn_unwind): Likewise.
312 * config/frv/frv.c (frv_stack_info): Use crtl->uses_pic_offset_table
313 instead of cfun->uses_pic_offset_table.
314 (frv_expand_prologue): Likewise.
315 (frv_frame_pointer_required): Likewise.
316 (frv_expand_fdpic_call): Likewise.
317 (frv_emit_movsi): Likewise.
318 * config/iq2000/iq2000.c (iq2000_expand_prologue): Use
319 cfun->returns_pcc_struct instead of
320 current_function_returns_pcc_struct.
321 * config/m32c/m32c.c (need_to_save): Use crtl->calls_eh_return
322 instead of cfun->calls_eh_return.
323 (m32c_pushm_popm): Likewise.
324 * config/xtensa/xtensa.h (cfun->calls_alloca): Remove bogus
325 "extern" declaration.
327 2008-04-30 Richard Guenther <rguenther@suse.de>
329 PR tree-optimization/21636
330 * tree-ssa-ccp.c (ccp_fold): Handle &p->x with p being a
332 (evaluate_stmt): Print the likely value.
333 (ccp_visit_stmt): Avoid excessive vertical spacing.
335 2008-04-30 Rafael Espindola <espindola@google.com>
337 * builtins.c (fold_call_expr): Return realret.
338 * tree-ssa-threadedge.c
339 (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
340 __builtin_object_size.
342 2008-04-30 Seongbae Park <seongbae.park@gmail.com>
344 * gcc.c (wrapper_string): New variable.
345 (insert_wrapper): New function.
346 (execute): New option -wrapper.
347 * doc/invoke.texi (Overall Options): New driver option -wrapper.
349 2008-04-30 Nathan Froyd <froydnj@codesourcery.com>
351 * config/rs6000/crtresgpr.asm, config/rs6000/crtresxgpr.asm,
352 config/rs6000/crtsavgpr.asm, config/rs6000/crtresfpr.asm,
353 config/rs6000/crtresxfpr.asm, config/rs6000/crtsavfpr.asm: Break out
355 * config/rs6000/crtsavres.asm: ...here. Remove unneeded file.
356 * config/rs6000/e500crtres32gpr.asm, config/rs6000/e500crtres64gpr.asm,
357 config/rs6000/e500crtres64gprctr.asm,
358 config/rs6000/e500crtrest32gpr.asm, config/rs6000/e500crtrest64gpr.asm,
359 config/rs6000/e500crtresx32gpr.asm, config/rs6000/e500crtresx64gpr.asm,
360 config/rs6000/e500crtsav32gpr.asm, config/rs6000/e500crtsav64gpr.asm,
361 config/rs6000/e500crtsav64gprctr.asm,
362 config/rs6000/e500crtsavg32gpr.asm, config/rs6000/e500crtsavg64gpr.asm,
363 config/rs6000/e500crtsavg64gprctr.asm: New files.
364 * config/rs6000/t-ppccomm: Add build rules for new files.
365 (LIB2FUNCS_STATIC_EXTRA): Add new files.
366 * config/rs6000/t-netbsd: Add build rules for new files.
367 (LIB2FUNCS_STATIC_EXTRA): New variable.
368 * config/rs6000/sysv4.h (ENDFILE_SPEC): Don't include crtsavres.o
369 (CRTSAVRES_DEFAULT_SPEC): Likewise.
370 * config/rs6000/netbsd.h (ENDFILE_SPEC): Likewise.
372 2008-04-30 H.J. Lu <hongjiu.lu@intel.com>
374 * config/i386/i386.c (ix86_builtin_type): Add
375 FLOAT128_FTYPE_FLOAT128_FLOAT128, V16QI_FTYPE_V16QI_V16QI,
376 V16QI_FTYPE_V8HI_V8HI, V8QI_FTYPE_V8QI_V8QI,
377 V8QI_FTYPE_V4HI_V4HI, V8HI_FTYPE_V8HI_V8HI,
378 V8HI_FTYPE_V16QI_V16QI, V8HI_FTYPE_V4SI_V4SI,
379 V4SI_FTYPE_V4SI_V4SI, V4SI_FTYPE_V8HI_V8HI,
380 V4SI_FTYPE_V4SF_V4SF, V4SI_FTYPE_V2DF_V2DF,
381 V4HI_FTYPE_V4HI_V4HI, V4HI_FTYPE_V8QI_V8QI,
382 V4HI_FTYPE_V2SI_V2SI, V4SF_FTYPE_V4SF_V4SF,
383 V4SF_FTYPE_V4SF_V4SF_SWAP, V4SF_FTYPE_V4SF_V2SI,
384 V4SF_FTYPE_V4SF_V2DF, V4SF_FTYPE_V4SF_DI,
385 V4SF_FTYPE_V4SF_SI, V2DI_FTYPE_V2DI_V2DI,
386 V2DI_FTYPE_V16QI_V16QI, V2DI_FTYPE_V4SI_V4SI,
387 V2DI_FTYPE_V2DF_V2DF, V2SI_FTYPE_V2SI_V2SI,
388 V2SI_FTYPE_V4HI_V4HI, V2SI_FTYPE_V2SF_V2SF,
389 V2DF_FTYPE_V2DF_V2DF, V2DF_FTYPE_V2DF_V2DF_SWAP,
390 V2DF_FTYPE_V2DF_V4SF, V2DF_FTYPE_V2DF_DI,
391 V2DF_FTYPE_V2DF_SI, V2SF_FTYPE_V2SF_V2SF,
392 V1DI_FTYPE_V1DI_V1DI, V1DI_FTYPE_V8QI_V8QI and
393 V1DI_FTYPE_V2SI_V2SI.
394 (bdesc_2arg): Moved to ...
396 (ix86_init_mmx_sse_builtins): Updated.
397 (ix86_expand_args_builtin): Updated. Take a pointer
398 to const struct builtin_description. Handle comparison
400 (ix86_expand_sse_compare): Take a new argument for swapping operands.
401 (ix86_expand_builtin): Updated.
403 * config/i386/sse.md (ssse3_pmaddubswv8hi3): Renamed to ...
404 (ssse3_pmaddubsw128): This.
405 (ssse3_pmaddubswv4hi3): Renamed to ...
406 (ssse3_pmaddubsw): This.
408 * doc/extend.texi (__builtin_ia32_packsswb128): Correct prototype.
409 (__builtin_ia32_packssdw128): Likewise.
410 (__builtin_ia32_packuswb128): Likewise.
411 (__builtin_ia32_pmaddubsw): Likewise.
412 (__builtin_ia32_pmaddubsw128): Likewise.
414 2008-04-30 Richard Guenther <rguenther@suse.de>
416 PR tree-optimization/14847
417 * tree-ssa-ifcombine.c (get_name_for_bit_test): New helper function.
418 (recognize_bits_test): Use it.
419 (recognize_single_bit_test): Likewise.
421 2008-04-30 Martin Jambor <mjambor@suse.cz>
423 * ipa-cp.c (ipcp_init_stage): Calls ipa_set_called_with_variable_arg
424 instead of setting number of formal parameters to zero.
425 (ipcp_init_stage): Do not set the number of actual parameters to zero
427 (ipcp_propagate_stage): Explicitly skipping all calls to nodes
428 which are called with variable number of arguments.
429 (ipcp_insert_stage): Explicitely skipping all nodes which are
430 called with variable number of arguments.
431 (ipcp_callsite_param_print): Skipps callsites to nodes with varaible
432 number of parameters.
434 * ipa-prop.h (struct ipa_node_params): Added flag
435 called_with_var_arguments
436 (ipa_set_param_count): Added. Changed sole setter to use it.
437 (ipa_get_param_count): Added. All readers of param_count
438 converted to use it instead.
439 (ipa_set_called_with_variable_arg): Added.
440 (ipa_is_called_with_var_arguments): Added.
441 (ipa_get_ith_param): Added. All readers of param_decls converted
443 (ipa_set_cs_argument_count): Added, sole writer to argument_count
445 (ipa_get_cs_argument_count): Added, all readers of argument_count
447 (ipa_get_ith_jump_func): Added. Accessors of jump values changed
450 * ipa-prop.h (struct ipcp_formal): Renamed to ipcp_lattice
451 (struct ipcp_lattice): Renamed cval_type to type
452 (struct ipa_node_params): ipcp_cval renamed to ipcp_lattices
454 * ipa-cp.c (ipcp_cval_get_cvalue): Changed return value to tree
455 (ipcp_cval_set_cvalue): Changed type of parameter value to tree
456 (ipcp_insert_stage): Changed the type of variable cvalue to tree
457 (ipcp_replace_map_create): Changed the type of parameter cvalue to tree
458 (build_const_val): Changed the type of parameter cvalue to tree
459 (ipcp_propagate_const): Changed the type of parameter cvalue to tree
460 (ipcp_method_cval_set_cvalue_type): Renamed parameter cval_type1 to type
462 * ipa-prop.h (struct ipcp_formal): Replaced cvalue with tree called
465 * ipa-prop.c (ipa_methodlist_init): Renamed to ipa_init_func_list
466 (ipa_methodlist_not_empty): Removed, the sole user now checks directly
467 (ipa_add_method): Renamed to ipa_push_func_to_list
468 (ipa_remove_method): Renamed to ipa_pop_func_from_list
469 (ipa_callsite_param_count): Removed.
470 (ipa_callsite_param_count_set): Removed.
471 (ipa_callsite_param): Removed.
472 (ipa_callsite_callee): Removed.
473 (ipa_callsite_compute_param): Renamed to ipa_compute_jump_functions
474 (ipa_callsite_compute_count): Renamed to ipa_count_arguments
475 (ipa_method_formal_count): Removed.
476 (ipa_method_formal_count_set): Removed.
477 (ipa_method_get_tree): Removed.
478 (ipa_method_tree_map_create): Removed.
479 (ipa_method_compute_tree_map): Renamed to ipa_create_param_decls_array
480 (ipa_create_param_decls_array): Creates the array itself
481 (ipa_create_param_decls_array): Temporary variable info instead of
483 (ipa_method_formal_compute_count): Renamed to ipa_count_formal_params
484 (ipa_method_compute_modify): Renamed to ipa_detect_param_modifications
486 (ipa_jf_get_info_type): Removed.
487 (ipa_node_create): Renamed to ipa_create_node_params
488 (ipa_free): Renamed to ipa_free_all_node_params
489 (ipa_nodes_create): Renamed to ipa_create_all_node_params
490 (ipa_edges_create): Renamed to ipa_create_all_edge_args
491 (ipa_edges_free): Renamed to ipa_free_all_edge_args
492 (ipa_nodes_free): Integrated into ipa_free_all_node_params and removed
493 (ipa_free_all_node_params): Deallocation to jump_functions moved to
494 ipa_free_all_edge_args
495 (ipa_method_tree_print): Renamed to ipa_print_all_tree_maps
496 (ipa_method_modify_print): Renamed to ipa_print_all_params_modified
497 (ipa_create_methodlist_node): Removed.
498 (ipa_methodlist_method): Removed.
499 (ipa_methodlist_method_set): Removed.
500 (ipa_methodlist_next_method): Removed.
501 (ipa_methodlist_next_method_set): Removed.
502 (ipa_method_is_modified): Removed.
503 (ipa_method_modify_create): Removed.
504 (ipa_method_modify_init): Temporary variable info instead of a few
506 (ipa_detect_param_modifications): Temporary variable info instead of
508 (ipa_compute_jump_functions): Temporary variable info instead of
510 (ipa_method_modify_set): Removed.
511 (ipa_method_tree_map): Renamed to ipa_get_param_decl_index
512 (ipa_get_param_decl_index): Now accepts struct ipa_node_params rather
513 than craph_node as the first parameter.
514 (ipa_method_modify_stmt): Renamed to ipa_check_stmt_modifications
515 (ipa_method_modify_init): Removed.
516 (ipa_compute_jump_functions): Added a temp variable instead of
517 repeatadly dereferencing the cgraph_edge.aux pointer
518 (ipa_callsite_param_set_type): Removed.
519 (ipa_compute_jump_functions): i renamed to index and moved to
521 (ipa_callsite_param_set_info_type_formal): Removed.
522 (ipa_callsite_param_set_info_type): Removed.
523 (ipa_callsite_param_map_create): Removed.
524 (ipa_callsite_tree): Removed.
525 (ipa_callsite_caller): Removed.
526 (ipa_pop_func_from_list): return_method removed to return_func
528 * ipa-prop.h (enum cvalue_type): Renamed to ipa_lattice_type,
529 prefixed all values with IPA_. Changed all users.
530 (enum jump_func_type): Rnamed UNKNOWN_IPATYPE to IPA_UNKNOWN,
531 CONST_IPATYPE to IPA_CONST, CONST_IPATYPE_REF to IPA_CONST_REF
532 and FORMAL_IPATYPE IPA_PASS_THROUGH.
533 (union parameter_info): Renamed to jump_func_value.
534 (union jump_func_value): Renamed value to constant
535 (struct ipa_jump_func): Renamed info_type to value
536 (struct ipa_node): Renamed to ipa_node_params
537 (struct ipa_node_params): Renamed ipa_arg_num to param_count
538 (struct ipa_node_params): Renamed ipa_param_tree to param_decls
539 (struct ipa_node_params): Renamed ipa_mod to modified_flags
540 (struct ipa_edge): Renamed to ipa_edge_args
541 (struct ipa_edge_args): Renamed ipa_param_num to argument_count
542 (struct ipa_edge_args): Renamed ipa_param_map to jump_functions
543 (struct ipa_methodlist): Renamed to ipa_func_list
544 (struct ipa_func_list): method_p renamed to node, next_method
546 (ipa_methodlist_p): Removed, switched all users to struct pointer
547 (IS_VALID_TREE_MAP_INDEX): Renamed to IS_VALID_JUMP_FUNC_INDEX
549 2008-04-30 Alan Modra <amodra@bigpond.net.au>
551 * config/rs6000/rs6000.c (ALWAYS_RESTORE_ALTIVEC_BEFORE_POP): Define.
552 (rs6000_emit_epilogue): Use backchain to restore only when we
553 have a large frame. Make use of frame pointer to restore if we
554 have one. Handle ALWAYS_RESTORE_ALTIVEC_BEFORE_POP.
556 2008-04-29 Paolo Bonzini <bonzini@gnu.org>
558 * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
559 Add mode to zero_extract.
560 (sign bit tests peepholes): (Ditto.).
562 2008-04-29 H.J. Lu <hongjiu.lu@intel.com>
564 * config/i386/i386.c (ix86_builtins): Replace Prescott New
565 Instructions in comments with SSE3.
566 (ix86_builtin_type): This. Add FLOAT128_FTYPE_FLOAT128,
567 INT64_FTYPE_V4SF, INT64_FTYPE_V2DF, INT_FTYPE_V16QI,
568 INT_FTYPE_V8QI, INT_FTYPE_V4SF, INT_FTYPE_V2DF,
569 V16QI_FTYPE_V16QI, V8HI_FTYPE_V8HI, V8HI_FTYPE_V16QI,
570 V8QI_FTYPE_V8QI, V4SI_FTYPE_V4SI, V4SI_FTYPE_V16QI,
571 V4SI_FTYPE_V4SF, V4SI_FTYPE_V8HI, V4SI_FTYPE_V2DF,
572 V4HI_FTYPE_V4HI, V4SF_FTYPE_V4SF, V4SF_FTYPE_V4SI,
573 V4SF_FTYPE_V2DF, V2DI_FTYPE_V2DI, V2DI_FTYPE_V16QI,
574 V2DI_FTYPE_V8HI, V2DI_FTYPE_V4SI, V2DF_FTYPE_V2DF,
575 V2DF_FTYPE_V4SI, V2DF_FTYPE_V4SF, V2DF_FTYPE_V2SI,
576 V2SI_FTYPE_V2SI, V2SI_FTYPE_V4SF, V2SI_FTYPE_V2SF,
577 V2SI_FTYPE_V2DF, V2SF_FTYPE_V2SF and V2SF_FTYPE_V2SI.
578 (bdesc_sse_args): Renamed to ...
579 (bdesc_args): This. Add IX86_BUILTIN_PF2ID, IX86_BUILTIN_PFRCP,
580 IX86_BUILTIN_PFRSQRT, IX86_BUILTIN_PI2FD, IX86_BUILTIN_PF2IW,
581 IX86_BUILTIN_PSWAPDSI, IX86_BUILTIN_PSWAPDSF and
583 (bdesc_1arg): Moved to ...
585 (ix86_init_mmx_sse_builtins): Updated. Replace Prescott New
586 Instructions in comments with SSE3.
587 (ix86_expand_sse_operands_builtin): Renamed to ...
588 (ix86_expand_args_builtin): This. Updated.
589 (ix86_expand_unop1_builtin): Update comments.
590 (ix86_expand_builtin): Updated.
592 2008-04-29 Richard Guenther <rguenther@suse.de>
594 PR tree-optimization/36078
595 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
596 Update virtual SSA form after cleaning up the CFG.
598 2008-04-29 Richard Guenther <rguenther@suse.de>
601 * fold-const.c (fold_binary): Fold (A + A) * C to A * 2*C.
603 2008-04-29 Richard Guenther <rguenther@suse.de>
605 * tree-ssa-alias.c (finalize_ref_all_pointers): Remove.
606 (compute_may_aliases): Do not call finalize_ref_all_pointers.
607 (compute_flow_insensitive_aliasing): Do not treat
608 PTR_IS_REF_ALL pointers special.
609 (get_smt_for): Likewise.
610 (may_alias_p): Re-structure.
611 (is_escape_site): A ref-all pointer conversion is not an escape site.
612 * tree-ssa-structalias.c (find_what_p_points_to): Do not treat
613 PTR_IS_REF_ALL pointers special.
614 * tree-ssa-structalias.h (struct alias_info): Remove
615 ref_all_symbol_mem_tag field.
616 (PTR_IS_REF_ALL): Remove.
618 2008-04-29 Richard Guenther <rguenther@suse.de>
621 * fold-const.c (extract_muldiv_1): In combining division constants
622 make sure to never overflow.
624 2008-04-29 Nick Clifton <nickc@redhat.com>
626 * doc/tm.texi (RETURN_ADDR_RTX): Fix typo.
628 2008-04-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
631 * optc-gen.awk: Work around HP-UX/IA awk bug.
633 2008-04-28 Danny Smith <dannysmith@users.sourceforge.net>
635 * config/i386/cygming-crtend.c (register_frame_ctor): Revert my
638 2008-04-28 Uros Bizjak <ubizjak@gmail.com>
641 * config/i386/i386.md
642 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit):
643 Change operand 1 predicate to nonimmediate_operand.
645 2008-04-28 Jakub Jelinek <jakub@redhat.com>
648 * dwarf2out.c (struct die_struct): Mark as chain_circular through
650 * gengtype.c (walk_type, write_func_for_structure): Handle
652 * doc/gty.texi: Document chain_circular.
654 2008-04-28 Richard Guenther <rguenther@suse.de>
656 PR tree-optimization/36066
657 * tree-vrp.c (execute_vrp): Cleanup the CFG only after finalizing
660 2008-04-28 Uros Bizjak <ubizjak@gmail.com>
663 * config/i386/i386.md
664 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters):
665 Use match_scratch instead of match_operand for operands 3 and 4.
667 2008-04-27 Richard Guenther <rguenther@suse.de>
669 PR tree-optimization/18754
670 PR tree-optimization/34223
671 * tree-pass.h (pass_complete_unrolli): Declare.
672 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Print
673 loop size before and after unconditionally of UL_NO_GROWTH in effect.
674 Rewrite loop into loop closed SSA form if it is not already.
675 (tree_unroll_loops_completely): Re-structure to iterate over
676 innermost loops with intermediate CFG cleanups.
677 Unroll outermost loops only if requested or the code does not grow
679 * tree-ssa-loop.c (gate_tree_vectorize): Don't shortcut if no
681 (tree_vectorize): Instead do so here.
682 (tree_complete_unroll): Also unroll outermost loops.
683 (tree_complete_unroll_inner): New function.
684 (gate_tree_complete_unroll_inner): Likewise.
685 (pass_complete_unrolli): New pass.
686 * tree-ssa-loop-manip.c (find_uses_to_rename_use): Only record
687 uses outside of the loop.
688 (tree_duplicate_loop_to_header_edge): Only verify loop-closed SSA
689 form if it is available.
690 * tree-flow.h (tree_unroll_loops_completely): Add extra parameter.
691 * passes.c (init_optimization_passes): Schedule complete inner
692 loop unrolling pass before the first CCP pass after final inlining.
694 2008-04-27 Nathan Sidwell <nathan@codesourcery.com>
696 * targhooks.h (default_emutls_var_fields,
697 default_emutls_var_init): Declare.
698 * tree.h (DECL_THREAD_LOCAL): Compare against TLS_MODEL_REAL.
699 * target.h (struct gcc_target): Add struct emutls member.
700 * target-def.h (TARGET_EMUTLS_GET_ADDRESS,
701 TARGET_EMUTLS_REGISTER_COMMON, TARGET_EMUTLS_VAR_SECTION,
702 TARGET_EMUTLS_TMPL_SECTION, TARGET_EMUTLS_VAR_PREFIX,
703 TARGET_EMUTLS_TMPL_PREFIX, TARGET_EMUTLS_VAR_FIELDS,
704 TARGET_EMUTLS_VAR_INIT, TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS,
705 TARGET_EMUTLS_VAR_ALIGN_FIXED, TARGET_EMUTLS): New.
706 (TARGET_INITIALIZER): Add TARGET_EMUTLS.
707 * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS,
708 BUILT_IN_EMUTLS_REGISTER_COMMON): Get name from targetm structure.
709 * dwarf2out.c (loc_descriptor_from_tree_1): Check if emutls can
710 emit debug information.
711 * coretypes.h (tls_model): Add TLS_MODEL_EMULATED, TLS_MODEL_REAL.
712 * varasm.c: Include targhooks.h.
713 (emutls_object_section, emutls_tmpl_section): New.
714 (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): Remove.
715 (EMUTLS_SEPARATOR): New.
717 (get_emutls_object_name): New.
718 (default_emutls_var_fields): New, broken out of ...
719 (get_emutls_object_type): ... here. Adjust to use target hooks.
720 (get_emutls_init_templ_addr): Adjust to use target hooks.
721 (emutls_decl): Adjust to use target hooks.
722 (emutls_finish): Likewise.
723 (default_emutls_var_init): New, broken out of ...
724 (assemble_variable): ... here. Adjust to use target hooks.
725 * output.h (enum section_category): Add SECCAT_EMUTLS_VAR,
727 * c-common.c (handle_section_attribute): Prevent overriding
728 sections for emulated tls with special sections.
729 * config/i386/i386.c (x86_64_elf_select_section): Add
730 SECCAT_EMUTLS_VAR and SECCAT_EMUTLS_TMPL.
731 (x86_64_elf_unique_section): Likewise.
732 * config/vxworks.c: Include tree.h.
733 (vxworks_emutls_var_fields, vxworks_emutls_var_init): New.
734 (vxworks_override_options): Set TLS scheme.
735 * doc/tm.texi (Emulated TLS): New node.
737 2008-04-26 Simon Baldwin <simonb@google.com>
740 * builtins.c (c_strlen): Suppressed multiple warnings that can occur
741 with propagated string constants.
743 2008-04-26 Uros Bizjak <ubizjak@gmail.com>
745 * config/i386/i386.md (fix_trunc<mode>_i387_fisttp_with_temp): Use 'X'
746 constraint for operand 2 when operand 0 is memory operand.
747 (fix_truncdi_i387_with_temp): : Use 'X' constraint for operand 4 when
748 operand 0 is memory operand.
749 (fix_trunc<mode>_i387_with_temp): Ditto.
750 (*floatsi<mode>2_vector_mixed_with_temp): Use 'X' constraint for
751 operand 2 when operand 1 is memory operand.
752 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Ditto.
753 (*floatsi<mode>2_vector_sse_with_temp): Ditto.
754 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Ditto.
755 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
756 (floatdi<X87MODEF:mode>2_i387_with_xmm): Use 'X' constraint for
757 operands 2,3 and 4 when operand 1 is memory operand.
758 (fistdi2_with_temp): Use 'X' constraint for operand 2 when operand 0
760 (fistdi2_floor_with_temp): Ditto.
761 (fist<mode>2_floor_with_temp): Ditto.
762 (fistdi2_ceil_with_temp): Ditto.
763 (fist<mode>2_ceil_with_temp): Ditto.
764 (*truncdfsf_fast_mixed): Merge alternatives 0 and 1.
766 2008-04-26 David Daney <ddaney@avtrex.com>
768 * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP_12): New
770 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE,
771 UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
772 UNSPEC_UPDATE_GOT_VERSION): Renumber.
773 (sync_compare_and_swap<mode>): New expand for QI and HI modes.
774 (compare_and_swap_12): New insn.
775 * config/mips/mips-protos.h (mips_expand_compare_and_swap_12): Declare.
776 * config/mips/mips.c (mips_force_binary): New function.
777 (mips_emit_int_order_test, mips_expand_synci_loop): Use it.
778 (mips_expand_compare_and_swap_12): New function.
779 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): New macro.
781 2008-04-25 Jan Hubicka <jh@suse.cz>
784 * cfgexpand.c (pass_expand): Turn into RTL pass.
785 * passes.c (execute_one_pass): Do pass typechecking after execution.
786 * tree-pass.h (pass_expand): Turn into RTL pass.
788 * function.h (struct rtl_data): Move here fields
789 accesses_prior_frames, calls_eh_return, saves_all_registers,
790 has_nonlocal_goto, has_asm_statement, is_thunk,
791 all_throwers_are_sibcalls, limit_stack, profile, uses_const_pool,
792 uses_pic_offset_table, uses_eh_lsda, tail_call_emit,
793 arg_pointer_save_area_init from struct function; turn into bool.
794 (struct function): Move
795 calls_eh_return, saves_all_registers, has_nonlocal_goto,
796 has_asm_statement, is_thunk, all_throwers_are_sibcalls, limit_stack,
797 profile, uses_const_pool, uses_pic_offset_table, uses_eh_lsda,
798 tail_call_emit, arg_pointer_save_area_init
799 into struct rtl_data. Remove recursive_call_emit and gimplified flags.
800 (current_function_returns_struct, current_function_returns_pcc_struct,
801 current_function_calls_setjmp, current_function_calls_alloca,
802 current_function_accesses_prior_frames,
803 current_function_calls_eh_return, current_function_is_thunk,
804 current_function_stdarg, current_function_profile,
805 current_function_limit_stack, current_function_uses_pic_offset_table,
806 current_function_uses_const_pool, current_function_has_nonlocal_label,
807 current_function_saves_all_registers,
808 current_function_has_nonlocal_goto,
809 current_function_has_asm_statement): Remove accesor macros.
810 * ra-conflict.c (global_conflicts): Update.
811 * tree-tailcall.c (suitable_for_tail_opt_p): Update.
812 (suitable_for_tail_call_opt_p): Update.
813 * builtins.c (expand_builtin_return_addr): Update.
814 (expand_builtin_setjmp_setup): Update.
815 (expand_builtin_nonlocal_goto): Update.
816 * final.c (final_start_function): Update.
817 (profile_function): Update.
818 (leaf_function_p): Update.
819 (only_leaf_regs_used): Update.
820 * df-scan.c (df_get_exit_block_use_set): Update.
821 * dojump.c (clear_pending_stack_adjust): Update.
822 * tree-stdarg.c (gate_optimize_stdarg): Update.
823 * gimple-low.c (lower_function_body): Update.
824 * global.c (compute_regsets): Update.
825 (global_alloc): Update.
826 * dwarf2out.c (dwarf2out_begin_prologue): Update.
827 * expr.c (expand_assignment): Update.
828 * dse.c (dse_step0): Update.
830 * c-decl.c (store_parm_decls): Update.
831 * local-alloc.c (combine_regs): Update.
832 (find_free_reg): Update.
833 * function.c (assign_parms_augmented_arg_list): Update.
834 (assign_parm_find_data_types): Update.
835 (assign_parms): Update.
836 (allocate_struct_function): Update.
837 (expand_function_start): Update.
838 (expand_function_end): Update.
839 (get_arg_pointer_save_area): Update.
840 (thread_prologue_and_epilogue_insns): Update.
841 (rest_of_match_asm_constraints): Update.
842 * stor-layout.c (variable_size): Update.
843 * gcse.c (gcse_main): Update.
844 (bypass_jumps): Update.
845 * gimplify.c (gimplify_function_tree): Update.
846 * calls.c (emit_call_1): Update.
847 (expand_call): Update.
848 * bt-load.c (compute_defs_uses_and_gen): Update.
849 * except.c (sjlj_assign_call_site_values): Update.
850 (sjlj_emit_function_enter): Update.
851 (can_throw_external): Update.
852 (set_nothrow_function_flags): Update.
853 (expand_builtin_unwind_init): Update.
854 (expand_eh_return): Update.
855 (convert_to_eh_region_ranges): Update.
856 (output_function_exception_table): Update.
857 * emit-rtl.c (gen_tmp_stack_mem): Update.
858 * cfgexpand.c (expand_used_vars): Update.
859 (tree_expand_cfg): Update.
860 * cfgcleanup.c (rest_of_handle_jump): Update.
861 * explow.c (allocate_dynamic_stack_space): Update.
862 * varasm.c (assemble_start_function): Update.
863 (force_const_mem): Update.
864 (mark_constant_pool): Update.
865 * tree-optimize.c (tree_rest_of_compilation): Update.
866 * stack-ptr-mod.c (notice_stack_pointer_modification): Update.
867 * tree-cfg.c (notice_special_calls): Update.
868 (is_ctrl_altering_stmt): Update.
869 (tree_can_make_abnormal_goto): Update.
870 (tree_purge_dead_abnormal_call_edges): Update.
871 * config/alpha/predicates.md: Update.
872 * config/alpha/alpha.c (alpha_sa_mask): Update.
873 (alpha_sa_size): Update.
874 (alpha_does_function_need_gp): Update.
875 (alpha_expand_prologue): Update.
876 (alpha_start_function): Update.
877 (alpha_output_function_end_prologue): Update.
878 (alpha_expand_epilogue): Update.
879 * config/frv/frv.c (frv_stack_info): Update.
880 (frv_expand_epilogue): Update.
881 * config/s390/s390.c (s390_regs_ever_clobbered): Update.
882 (s390_register_info): Update.
883 (s390_frame_info): Update.
884 (s390_init_frame_layout): Update.
885 (s390_can_eliminate): Update.
887 * config/spu/spu.c (spu_split_immediate): Update.
888 (need_to_save_reg): Update.
889 (spu_expand_prologue): Update.
890 (spu_expand_epilogue): Update.
891 * config/sparc/sparc.md: Update.
892 * config/sparc/sparc.c (eligible_for_return_delay): Update.
893 (sparc_tls_got): Update.
894 (legitimize_pic_address): Update.
895 (sparc_emit_call_insn): Update.
896 (sparc_expand_prologue): Update.
897 (output_return): Update.
898 (print_operand): Update.
899 (sparc_function_ok_for_sibcall): Update.
900 * config/sparc/sparc.h (EXIT_IGNORE_STACK): Update.
901 * config/m32r/m32r.md: Update.
902 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Update.
903 (m32r_compute_frame_size): Update.
904 (m32r_expand_prologue): Update.
905 (m32r_expand_epilogue): Update.
906 (m32r_legitimize_pic_address): Update.
907 * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Update.
908 * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
909 * config/i386/i386.c (ix86_frame_pointer_required): Update.
911 (ix86_save_reg): Update.
912 (ix86_compute_frame_layout): Update.
913 (ix86_expand_prologue): Update.
914 (ix86_expand_epilogue): Update.
915 * config/sh/sh.c (output_stack_adjust): Update.
916 (calc_live_regs): Update.
917 (sh5_schedule_saves): Update.
918 (sh_expand_prologue): Update.
919 (sh_expand_epilogue): Update.
920 (sh_setup_incoming_varargs): Update.
921 (sh_allocate_initial_value): Update.
922 (sh_get_pr_initial_val): Update.
923 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Update.
924 * config/sh/sh.md (label:): Update.
925 * config/avr/avr.c (out_movhi_mr_r): Update.
926 * config/crx/crx.h (enum): Update.
927 * config/xtensa/xtensa.h (along): Update.
928 * config/stormy16/stormy16.c Update.
929 (xstormy16_compute_stack_layout): Update.
930 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Update.
931 (fr30_expand_prologue): Update.
932 * config/cris/cris.c (cris_conditional_register_usage): Update.
933 (cris_reg_saved_in_regsave_area): Update.
934 (cris_initial_frame_pointer_offset): Update.
935 (cris_simple_epilogue): Update.
936 (cris_expand_prologue): Update.
937 (cris_expand_epilogue): Update.
938 (cris_expand_pic_call_address): Update.
939 (cris_asm_output_symbol_ref): Update.
940 (cris_asm_output_label_ref): Update.
941 * config/cris/cris.md Update.
942 * config/iq2000/iq2000.c (compute_frame_size): Update.
943 (iq2000_expand_epilogue): Update.
944 * config/mt/mt.h (save_direction): Update.
945 * config/mn10300/mn10300.c (mn10300_function_value): Update.
946 * config/ia64/ia64.c (ia64_compute_frame_size): Update.
947 (ia64_secondary_reload_class): Update.
948 * config/m68k/m68k.c (m68k_save_reg): Update.
949 (m68k_expand_prologue): Update.
950 (m68k_expand_epilogue): Update.
951 (legitimize_pic_address): Update.
952 * config/rs6000/rs6000.c (rs6000_got_register): Update.
953 (first_reg_to_save): Update.
954 (first_altivec_reg_to_save): Update.
955 (compute_vrsave_mask): Update.
956 (compute_save_world_info): Update.
957 (rs6000_stack_info): Update.
958 (spe_func_has_64bit_regs_p): Update.
959 (rs6000_ra_ever_killed): Update.
960 (rs6000_emit_eh_reg_restore): Update.
961 (rs6000_emit_allocate_stack): Update.
962 (rs6000_emit_prologue): Update.
963 (rs6000_emit_epilogue): Update.
964 (rs6000_output_function_epilogue): Update.
965 (output_profile_hook): Update.
966 (rs6000_elf_declare_function_name): Update.
967 * config/rs6000/rs6000.h (rs6000_args): Update.
968 * config/rs6000/rs6000.md: Update.
969 * config/mcore/mcore.c (mcore_expand_prolog): Update.
970 * config/arc/arc.c (arc_output_function_epilogue): Update.
971 * config/arc/arc.h (FRAME_POINTER_REQUIRED): Update.
972 * config/darwin.c (machopic_function_base_name): Update.
973 * config/score/score3.c (score3_compute_frame_size): Update.
976 (score3_epilogue): Update.
977 * config/score/score7.c (score7_compute_frame_size): Update.
978 (score7_prologue): Update.
979 (score7_epilogue): Update.
980 * config/score/score.h (FRAME_POINTER_REQUIRED): Update.
981 * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
982 * config/arm/arm.c (use_return_insn): Update.
983 (require_pic_register): Update.
984 (arm_load_pic_register): Update.
985 (arm_compute_save_reg0_reg12_mask): Update.
986 (arm_compute_save_reg_mask): Update.
987 (thumb1_compute_save_reg_mask): Update.
988 (output_return_instruction): Update.
989 (arm_output_function_prologue): Update.
990 (arm_output_epilogue): Update.
991 (arm_get_frame_offsets): Update.
992 (arm_expand_prologue): Update.
993 (thumb_pushpop): Update.
994 (thumb_exit): Update.
995 (thumb1_expand_prologue): Update.
996 (thumb1_expand_epilogue): Update.
997 (arm_unwind_emit): Update.
998 (arm_output_fn_unwind): Update.
999 * config/arm/arm.h (FRAME_POINTER_REQUIRED): Update.
1000 * config/arm/arm.md: Update.
1001 * config/pa/pa.md: Update.
1002 * config/pa/pa.c (legitimize_pic_address): Update.
1003 (compute_frame_size): Update.
1004 (hppa_expand_prologue): Update.
1005 (hppa_expand_epilogue): Update.
1006 (borx_reg_operand): Update.
1007 * config/pa/pa.h (FRAME_POINTER_REQUIRED): Update.
1008 (HARD_REGNO_RENAME_OK): Update.
1009 * config/mips/mips.c (mips_global_pointer): Update.
1010 (mips_save_reg_p): Update.
1011 (mips_compute_frame_info): Update.
1012 (mips_frame_pointer_required): Update.
1013 (mips_expand_prologue): Update.
1014 (mips_expand_epilogue): Update.
1015 (mips_can_use_return_insn): Update.
1016 (mips_reorg_process_insns): Update.
1017 * config/v850/v850.c (compute_register_save_size): Update.
1018 * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Update.
1019 * config/mmix/mmix.c (along): Update.
1020 (mmix_expand_epilogue): Update.
1021 * config/bfin/bfin.c (legitimize_pic_address): Update.
1022 (must_save_p): Update.
1023 (stack_frame_needed_p): Update.
1024 (add_to_reg): Update.
1025 (bfin_expand_prologue): Update.
1026 * stmt.c (expand_asm_operands): Update.
1027 * reload1.c (reload): Update.
1028 (init_elim_table): Update.
1030 2008-04-25 Bob Wilson <bob.wilson@acm.org>
1032 * optabs.c (expand_float): Fix REG_EQUAL for UNSIGNED_FLOAT libcall.
1034 2008-04-25 H.J. Lu <hongjiu.lu@intel.com>
1036 * config/i386/sse.md (mov<mode>): Replace SSEMODEI with SSEMODE.
1037 (*mov<mode>_internal): Likewise. Support V4SF and V2DF.
1038 (mov<mode>): Removed.
1039 (*movv4sf_internal): Likewise.
1040 (*movv2df_internal): Likewise.
1042 2008-04-25 Pompapathi V Gadad <Pompapathi.V.Gadad@nsc.com>
1044 * config.gcc (crx-*-elf): Remove deprecation.
1046 2008-04-25 Danny Smith <dannysmith@users.sourceforge.net>
1048 * config/i386/cygming-crtend.c (register_frame_ctor): Register
1049 __gcc_deregister_frame with atexit.
1050 (deregister_frame_dtor): Remove.
1052 2008-04-24 Nathan Froyd <froydnj@codesourcery.com>
1053 Nathan Sidwell <nathan@codesourcery.com>
1055 * config/rs6000/rs6000.opt (mspe): Remove Var property.
1057 * config/rs6000/rs6000.h (rs6000_spe): Declare.
1058 (rs6000_isel): Likewise.
1059 * config/rs6000/rs6000.c (rs6000_spe): New variable.
1060 (rs6000_isel): New variable.
1061 (rs6000_handle_option): Handle OPT_mspe and OPT_misel.
1063 2008-04-24 Jakub Jelinek <jakub@redhat.com>
1066 * c-common.c (handle_vector_size_attribute): Call
1067 lang_hooks.types.reconstruct_complex_type instead of
1068 reconstruct_complex_type.
1069 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Likewise.
1070 * config/spu/spu.c (spu_handle_vector_attribute): Likewise.
1071 * langhooks.h (struct lang_hooks_for_types): Add
1072 reconstruct_complex_type hook.
1073 * langhooks-def.h (LANG_HOOKS_RECONSTRUCT_COMPLEX_TYPE): Define.
1074 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
1076 2008-04-24 Richard Guenther <rguenther@suse.de>
1078 * c-common.h (check_builtin_function_arguments): Declare.
1079 * c-common.c (validate_nargs): New function.
1080 (check_builtin_function_arguments): Likewise.
1081 * c-typeck.c (build_function_call): Call
1082 check_builtin_function_arguments.
1083 * builtins.c (fold_builtin_classify): Remove error reporting code.
1084 (fold_builtin_unordered_cmp): Likewise.
1085 (fold_builtin_1): Likewise.
1086 (fold_builtin_n): Likewise.
1088 2008-04-24 Jakub Jelinek <jakub@redhat.com>
1090 PR tree-optimization/36008
1091 * fold-const.c (try_move_mult_to_index): If s == NULL, divide
1092 the original op1, rather than delta by step.
1094 2008-04-22 Antoniu Pop <antoniu.pop@gmail.com>
1095 Sebastian Pop <sebastian.pop@amd.com>
1097 * tree-parloops.c (take_address_of, eliminate_local_variables_1,
1098 eliminate_local_variables_stmt, eliminate_local_variables,
1099 separate_decls_in_loop_name, separate_decls_in_loop_stmt,
1100 separate_decls_in_loop, gen_parallel_loop): Make them work on a region
1101 of code delimited by two edges in the CFG.
1102 (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
1103 (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
1104 (separate_decls_in_loop): Renamed separate_decls_in_region. Isolate
1105 the case of parallelisation of reductions.
1106 (expr_invariant_in_region_p): New.
1108 * tree-flow.h (gather_blocks_in_sese_region): Declared.
1109 * tree-cfg.c (gather_blocks_in_sese_region): Extern.
1111 2008-04-24 Ira Rosen <irar@il.ibm.com>
1112 Richard Guenther <rguenther@suse.de>
1114 PR tree-optimization/36034
1115 * tree-vect-analyze.c (vect_analyze_group_access): SLP is
1116 incapable of dealing with loads with gaps.
1118 2008-04-24 Rafael Espindola <espindola@google.com>
1120 * tree-flow.h (vrp_evaluate_conditional): Change signature.
1121 * tree-ssa-propagate.c (fold_predicate_in): Update call to
1122 vrp_evaluate_conditional.
1123 * tree-vrp.c (vrp_evaluate_conditional_warnv): Remove.
1124 (vrp_evaluate_conditional): Split the cond argument.
1125 (vrp_visit_cond_stmt): Use vrp_evaluate_conditional_warnv_with_ops.
1126 (simplify_stmt_for_jump_threading): Update call to
1127 vrp_evaluate_conditional.
1129 2008-04-24 Ira Rosen <irar@il.ibm.com>
1131 PR tree-optimization/35982
1132 * tree-vect-analyze.c (vect_check_interleaving): Check that the
1133 interleaved data-refs are of the same type.
1135 2008-04-24 Danny Smith <dannysmith@users.net>
1137 * c-format.c (check_format_info_main): Use strncmp rather than a
1138 magic prefix to handle multichar length specs.
1139 * config/i386/msformat-c.c (format_length_info ms_printf_length_specs):
1140 Don't prefix "I64" and "I32" with '\0'.
1142 2008-04-24 Jakub Jelinek <jakub@redhat.com>
1145 * config/i386/i386.c (init_cumulative_args): Don't pass anything
1146 in registers for -m32 only if stdarg_p (fntype).
1148 2008-04-24 Uros Bizjak <ubizjak@gmail.com>
1150 PR rtl-optimization/36006
1151 * expmed.c (store_fixed_bit_field): Copy op0 rtx before moving
1152 temp to op0 in order to avoid invalid rtx sharing.
1154 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
1156 * tree-cfg.c (verify_expr): Check with is_gimple_address. Don't
1157 check TREE_INVARIANT.
1158 * tree-gimple.c (is_gimple_address): New.
1159 (is_gimple_invariant_address): Simplify using decl_address_invariant_p.
1160 * tree-gimple.h (is_gimple_address): New.
1161 * tree.h (decl_address_invariant_p): New.
1162 * tree.c (make_node_stat): Don't set TREE_INVARIANT.
1163 (build_string): Likewise.
1164 (decl_address_invariant_p): New, from is_gimple_invariant_address.
1165 (tree_invariant_p_1): Likewise.
1166 (save_expr): Use it.
1167 (tree_invariant_p): New.
1168 (skip_simple_arithmetic): Use it.
1169 (stabilize_reference_1): Use it.
1170 (recompute_tree_invariant_for_addr_expr): Don't update TREE_INVARIANT,
1172 (build1_stat): Drop code to compute TREE_INVARIANT.
1173 (build2_stat): Drop code to compute TREE_INVARIANT.
1174 (build3_stat): Drop code to compute TREE_INVARIANT.
1175 (build4_stat): Drop code to compute TREE_INVARIANT.
1176 (build5_stat): Drop code to compute TREE_INVARIANT.
1177 (build7_stat): Drop code to compute TREE_INVARIANT.
1178 (merge_dllimport_decl_attributes): Don't mention TREE_INVARIANT.
1179 * tree.h (struct tree_base): Remove invariant_flag.
1180 (TREE_INVARIANT): Remove.
1181 * builtins.c (build_string_literal): Don't set TREE_INVARIANT.
1182 (fold_builtin_expect): Check TREE_CONSTANT.
1183 * tree-ssa-ccp.c (fold_stmt_r): Adjust comment.
1184 * c-tree.h (c_expr_to_decl): Drop third parameter.
1185 * c-typeck.c (build_external_ref): Don't set TREE_INVARIANT.
1186 (build_c_cast): Don't set TREE_INVARIANT.
1187 (pop_init_level): Don't set TREE_INVARIANT.
1188 (c_objc_common_truthvalue_conversion): Don't set TREE_INVARIANT.
1189 * gimplify.c (gimplify_init_ctor_preeval): Add assertion, test
1191 (gimplify_init_constructor): Don't set TREE_INVARIANT.
1192 (gimplify_addr_expr): Adjust comment.
1193 * tree-mudflap.c (mf_build_string):
1194 * print-tree.c (print_node): Don't print TREE_INVARIANT.
1195 * tree-nested.c (convert_nonlocal_reference): Adjust comment.
1196 * c-common.c (fix_string_type): Don't set TREE_INVARIANT.
1197 * langhooks-def.h (lhd_expr_to_decl): Drop third parameter.
1198 * langhooks.c (lhd_expr_to_decl): Drop third parameter.
1199 * langhooks.h (struct lang_hooks): Drop third parameter from
1202 2008-04-23 Richard Guenther <rguenther@suse.de>
1204 PR tree-optimization/27799
1205 PR tree-optimization/32921
1206 PR tree-optimization/32624
1207 * tree-ssa-structalias.c (merge_smts_into): Only merge the
1208 SMTs aliases and the tag itself into the solution.
1209 * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Do not
1210 merge the points-to solution back into the SMT aliases.
1211 (may_alias_p): Use alias_set_subset_of instead of
1212 aliases_conflict_p. A pointer which points to
1213 memory with alias set zero may access any variable.
1215 2008-04-23 Richard Guenther <rguenther@suse.de>
1217 * alias.c (alias_set_subset_of): Correctly handle asking
1218 if zero is a subset of an alias set with zero child.
1219 * tree-ssa-alias.c (have_common_aliases_p): Simplify logic.
1220 (compute_flow_insensitive_aliasing): Correctly walk all
1221 pointers. Do not unnecessarily union sets.
1223 2008-04-23 Richard Guenther <rguenther@suse.de>
1226 * c-common.c (handle_alloc_size_attribute): Use type_num_arguments.
1228 2008-04-22 Tomas Bily <tbily@suse.cz>
1230 * tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as
1232 * tree-vrp.c (extract_range_from_unary_expr): Removed unused
1234 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
1235 * tree-ssa-structalias.c (get_constraint_for): Likewise.
1236 * tree-inline.c (estimate_num_insns_1): Likewise.
1237 * varasm.c (const_hash_1, compare_constant, copy_constant)
1238 (compute_reloc_for_constant, output_addressed_constants): Likewise.
1239 * emit-rtl.c (component_ref_for_mem_expr)
1240 (set_mem_attributes_minus_bitpos): Likewise.
1241 * expr.c (highest_pow2_factor, expand_expr_real_1, )
1242 (is_aligning_offset): Likewise.
1243 * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info): Likewise.
1244 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
1245 * dojump.c (do_jump): Likewise.
1246 * builtins.c (get_pointer_alignment, get_memory_rtx)
1247 (integer_valued_real_p, fold_builtin_next_arg): Likewise.
1248 * tree-scalar-evolution.c (instantiate_parameters_1): Likewise.
1250 2008-04-23 Jakub Jelinek <jakub@redhat.com>
1252 PR rtl-optimization/36017
1253 * builtins.c (expand_errno_check): Clear CALL_EXPR_TAILCALL before
1254 expanding the library call.
1256 2008-04-22 Ian Lance Taylor <iant@google.com>
1258 * fold-const.c (pointer_may_wrap_p): Call int_size_in_bytes rather
1261 2008-04-22 Pat Haugen <pthaugen@us.ibm.com>
1263 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
1264 of LR/CTR moves for Power6.
1266 2008-04-22 Kenneth Zadeck <zadeck@naturalbridge.com>
1269 * passes.c (init_optimization_passes): Remove
1270 pass_fast_rtl_byte_dce.
1272 2008-04-22 Uros Bizjak <ubizjak@gmail.com>
1275 * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Rearrange calls to
1276 builtin functions to generate faster code.
1277 (_mm_cvtpu16_ps): Ditto.
1278 (_mm_cvtpi32x2_ps): Ditto.
1280 2008-04-22 Nick Clifton <nickc@redhat.com>
1282 * common.opt (ftree-loop-distribution): Add Optimization
1285 * config/frv/frv.c (frv_stack_info): Use crtl instead of cfun.
1286 (frv_expand_builtin_va_start): Likewise.
1288 * config/arm/arm.c (thumb_find_work_register): Fix location of
1289 argument register count.
1291 2008-04-22 Maxim Kuvyrkov <maxim@codesourcery.com>
1293 Support scheduling for ColdFire V1 and V3 microarchitecture.
1294 Improve scheduling of multiplication instructions.
1296 * config/m68k/m68k.md (cpu): Add cfv1 and cfv3. Rename cf_v2 to cfv1.
1297 (mac): New instruction attribute.
1298 * config/m68k/m68k.c (override_options): Handle cfv1, cfv3 and mac.
1299 (m68k_sched_mac): New variable.
1300 (m68k_sched_attr_type2, m68k_sched_md_init_global): Update.
1301 Handle cfv1 and cfv3.
1302 (max_insn_size): New static variable.
1303 (struct _sched_ib): New type.
1304 (sched_ib): New static variable.
1305 (sched_ib_size, sched_ib_filled, sched_ib_insn): Convert variables
1306 to fields of 'struct _sched_ib sched_ib'. Update all uses.
1307 (m68k_sched_variable_issue): Add modeling of cfv3 instruction buffer.
1309 (m68k_sched_md_init_global, m68k_sched_md_finish_global,
1310 m68k_sched_md_init, m68k_sched_md_finish): Handle cfv1 and cfv3. Init
1311 new variables. Update.
1312 (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
1313 Add modeling of cfv3 instruction buffer. Update.
1314 * config/m68k/m68k-protos.h (m68k_sched_mac): Declare.
1315 * config/m68k/m68k.h (TUNE_CFV3): New macro.
1316 * config/m68k/cf.md: Change substrings 'cf_v2' to 'cfv12' or 'cfv123'.
1317 (cf_* reservations): Rename to cfv12 or cfv123 to indicate cores
1318 a particular reservation applies to.
1319 (type2): Reorganize attribute values. Rename alu to alu_reg,
1320 alu_l to alu, move_l to omove. Join move to alu. Split mul
1322 (cf_ib_*): Simplify description of instruction buffer.
1323 (cf_ib_w0, cf_ib_w4, cf_ib_w5, cf_ib_w6): Remove.
1324 (cf_mem): Split into cf_mem1 and cf_mem2.
1325 (cf_v2_move_??): Rename to cfv12_alu_??.
1326 (cf_v2_move_l_??): Rename to cfv12_omove_??.
1327 (cf_v2_mul_??): Remove reservations.
1328 (cfv12_mul_l_??, cfv12_mul_w_??, cfv12_mac_w_??, cfv12_mac_l_??,
1329 cfv12_emac_??, cfv12_emac_w_i0): New reservations.
1330 (cfv12_rts, cfv12_call, cfv12_bcc, cfv12_bra, cfv12_jmp): Move to
1332 (cfv3_alu_10, cfv3_omove_10, cfv3_alu_i0, cfv3_omove_i0, cfv3_alu_01,
1333 cfv3_alu_0i, cfv3_alu_11, cfv3_omove_11, cfv3_alu_i1, cfv3_omove_i1,
1334 cfv3_alu_1i, cfv3_omove_1i, cfv3_pea_11, cfv3_pea_i1, cfv3_mul_w_10,
1335 cfv3_mul_l_10, cfv3_mul_w_i0, cfv3_mac_w_10, cfv3_mac_l_10,
1336 cfv3_mac_w_i0, cfv3_emac_10, cfv3_emac_w_i0, cfv3_rts, cfv3_call,
1337 cfv3_bcc, cfv3_bra, cfv3_jmp): New reservations.
1338 (cfv3_*_1, cfv3_*_2, cfv3_*_3): New instruction reservations that are
1339 expansions of the above reservations for instructions of sizes
1342 2008-04-22 Maxim Kuvyrkov <maxim@codesourcery.com>
1344 * rtl-factoring.c (collect_patterns_seqs): Handle CC0 targets.
1346 2008-04-21 Adam Nemet <anemet@caviumnetworks.com>
1348 * coverage.c: Include tree-pass.h.
1349 (coverage_counter_alloc): Print da_file_name to the dump file.
1351 2008-04-21 Kenneth Zadeck <zadeck@naturalbridge.com>
1353 * sbitmap.c (sbitmap_range_empty_p): New function.
1354 * sbitmap.h (sbitmap_range_empty_p): New function.
1355 * bitmap.h: Now includes obstack.h.
1357 2008-04-21 Richard Sandiford <rsandifo@nildram.co.uk>
1358 Kenneth Zadeck <zadeck@naturalbridge.com>
1360 * dbgcnt.def (ra_byte_scan): Added.
1361 * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
1362 when the last hit happens for a counter.
1363 * timevar.def (TV_DF_BYTE_LR): New variable.
1364 * tree-pass.h (pass_fast_rtl_byte_dce): New pass.
1365 * passes.c (pass_fast_rtl_byte_dce): New pass.
1366 * fwprop.c (update_df): Added mode to call df_ref_create.
1367 Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
1368 DF_REF_EXTRACT_OFFSET.
1369 * df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN,
1370 DF_BYTE_LR_OUT, df_byte_lr): New macro.
1372 (df_ref_extract): Added mode field.
1373 (DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
1374 DF_REF_EXTRACT_OFFSET.
1375 (DF_REF_EXTRACT_MODE): New macro.
1376 (df_byte_lr_bb_info): New structure.
1377 (df_print_byte_regset, df_compute_accessed_bytes,
1378 df_byte_lr_add_problem, df_byte_lr_get_regno_start,
1379 df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
1380 df_byte_lr_simulate_uses,
1381 df_byte_lr_simulate_artificial_refs_at_top,
1382 df_byte_lr_simulate_artificial_refs_at_end,
1383 df_compute_accessed_bytes): New function.
1384 (df_ref_create): Add parameter.
1385 (df_byte_lr_get_bb_info): New inline function.
1386 * df-scan.c (df_ref_record, df_uses_record,
1387 df_ref_create_structure): Added mode parameter.
1388 (df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1,
1389 df_defs_record, df_uses_record, df_get_conditional_uses,
1390 df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
1391 df_entry_block_defs_collect, df_exit_block_uses_collect):
1392 Added mode parameter to calls to df_ref_record, df_uses_record,
1393 df_ref_create_structure.
1394 (df_ref_equal_p, df_ref_compare): Added test for modes.
1395 (df_ref_create_structure): Added code to set mode. Renamed
1396 DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
1397 DF_REF_EXTRACT_OFFSET.
1398 * df-core.c (df_print_byte_regset): New function.
1399 * df-byte-scan.c: New file.
1400 * df-problems.c (df_rd_transfer_function): Removed unnecessary
1401 calls to BITMAP_FREE.
1402 (df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
1403 (df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
1404 df_byte_lr_set_bb_info, df_byte_lr_free_bb_info,
1405 df_byte_lr_check_regs, df_byte_lr_expand_bitmap,
1406 df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
1407 df_byte_lr_local_compute, df_byte_lr_init,
1408 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
1409 df_byte_lr_transfer_function, df_byte_lr_free,
1410 df_byte_lr_top_dump, df_byte_lr_bottom_dump,
1411 df_byte_lr_add_problem, df_byte_lr_simulate_defs,
1412 df_byte_lr_simulate_uses,
1413 df_byte_lr_simulate_artificial_refs_at_top,
1414 df_byte_lr_simulate_artificial_refs_at_end): New function.
1415 * dce.c (byte_dce_process_block): New function.
1416 (dce_process_block): au is now passed in rather than computed
1417 locally. Changed loops that look at artificial defs to not look
1418 for conditional or partial ones, because there never are any.
1419 (fast_dce): Now is able to drive byte_dce_process_block or
1420 dce_process_block depending on the kind of dce being done.
1421 (rest_of_handle_fast_dce): Add parameter to fast_dce.
1422 (rest_of_handle_fast_byte_dce): New function.
1423 (rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
1424 * Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
1426 2008-04-21 Daniel Franke <franke.daniel@gmail.com>
1429 * gcc.h: Added fortran options that take arguments to
1430 DEFAULT_SWITCH_TAKES_ARG and DEFAULT_WORD_SWITCH_TAKES_ARG
1433 2008-04-20 Eric Botcazou <ebotcazou@adacore.com>
1435 * tree-sra.c (sra_walk_expr) <VIEW_CONVERT_EXPR>: Disable
1436 scalarization if on the LHS and not a full access.
1438 2008-04-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1440 * Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing it.
1442 2008-04-18 Rafael Espindola <espindola@google.com>
1444 * tree-vrp.c (find_case_label_index): Fix the binary search.
1445 (find_case_label_range): New.
1446 (vrp_visit_switch_stmt): Use find_case_label_range.
1447 (simplify_switch_using_ranges): Use find_case_label_range.
1449 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
1451 * gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
1452 using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
1454 2008-04-18 Tom Tromey <tromey@redhat.com>
1457 * doc/cpp.texi (Implementation-defined behavior): Mention
1460 2008-04-18 Ian Lance Taylor <iant@google.com>
1462 * fold-const.c (pointer_may_wrap_p): New static function.
1463 (fold_comparison): Add another test for pointer overflow. Use
1464 pointer_may_wrap_p to disable some false positives.
1466 2008-04-18 Kris Van Hees <kris.van.hees@oracle.com>
1468 * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros.
1469 (fname_as_string): Match updated cpp_interpret_string prototype.
1470 (fix_string_type): Support char16_t* and char32_t*.
1471 (c_common_nodes_and_builtins): Add char16_t and char32_t (and
1472 derivative) nodes. Register as builtin if C++0x.
1473 (c_parse_error): Support CPP_CHAR{16,32}.
1474 * c-common.h (RID_CHAR16, RID_CHAR32): New elements.
1475 (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE,
1476 CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE,
1477 CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE,
1478 CTI_CHAR32_ARRAY_TYPE>: New elements.
1479 (char16_type_node, signed_char16_type_node, unsigned_char16_type_node,
1480 char32_type_node, signed_char32_type_node, char16_array_type_node,
1481 char32_array_type_node): New defines.
1482 * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype.
1483 (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
1484 (lex_string): Support CPP_STRING{16,32}, match updated
1485 cpp_interpret_string and cpp_interpret_string_notranslate prototypes.
1486 (lex_charconst): Support CPP_CHAR{16,32}.
1487 * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32}
1488 and CPP_STRING{16,32}.
1490 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
1493 * aclocal.m4: Regenerate.
1494 * configure: Regenerate.
1496 2008-04-18 Jan Hubicka <jh@suse.cz>
1498 * except.c (dw2_size_of_call_site_table,
1499 sjlj_size_of_call_site_table): Use vector API for call_site_record.
1501 * cgraphbuild.c (build_cgraph_edges): Update.
1502 * tree-pass.h: Update comment.
1503 * final.c (leaf_function_p): Update.
1504 (leaf_renumber_regs): Update.
1505 (rest_of_clean_state): Update.
1506 * omp-low.c (expand_omp_parallel): Update.
1507 * ipa-reference.c (analyze_function): Update.
1508 * reorg.c (find_end_label): Update.
1509 (optimize_skip): Update.
1510 (fill_simple_delay_slots): Update.
1511 (fill_simple_delay_slots): Update.
1512 (make_return_insns): Update.
1513 (dbr_schedule): Update.
1514 * gimple-low.c (record_vars_into): Update.
1515 * cfgbuild.c (make_edges): Update.
1516 * function.c (assign_stack_local): Update.
1517 (assign_parm_adjust_stack_rtl): Update.
1518 (locate_and_pad_parm): Update.
1519 (allocate_struct_function): Do not initialize stack_alignment_needed
1520 and preferred_stack_boundary here.
1521 (stack_protect_prologue): Update.
1522 (stack_protect_epilogue): Update.
1523 (expand_function_start): Initialize stack_alignment_needed,
1524 preferred_stack_boundary and max_jumptable_ents.
1525 (expand_function_end): Update.
1526 (free_after_compilation): Do not NULLify epilogue_delay_list.
1527 * function.h (struct rtl_data): Add stack_protect_guard,
1528 stack_alignment_needed,
1529 preferred_stack_boundary, epilogue_delay_list.
1530 (struct function): Remove value_histograms, stack_alignment_needed,
1531 preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
1533 unexpanded_var_list, stack_protect_guard.
1534 (current_function_epilogue_delay_list): Remove.
1535 * ipa-type-escape.c (analyze_function): Update.
1536 * gimplify.c (pop_gimplify_context): Update comment.
1537 * calls.c (expand_call): Update.
1538 (emit_library_call_value_1): Update.
1539 * except.c (set_nothrow_function_flags): Update.
1540 * cfgexpand.c (get_decl_align_unit): Update.
1541 (create_stack_guard): Update.
1542 (estimated_stack_frame_size): Update.
1543 (expand_used_vars): Update.
1544 (tree_expand_cfg): Free histogram earliers, init expansion variables.
1545 * explow.c (allocate_dynamic_stack_space): Update.
1546 * tree-ssa-live.c (remove_unused_locals): Update.
1547 * varasm.c (mark_constant_pool): Update.
1548 * tree-inline.c (remap_decls): Update.
1549 (initialize_cfun): Update.
1550 (declare_return_variable): Update.
1551 (inline_forbidden_p): Update.
1552 (expand_call_inline): Update.
1553 (declare_inline_vars): Update.
1554 (tree_function_versioning): Update.
1555 * tree-flow.h (value_histograms): New.
1556 (VALUE_HISTOGRAMS): New macro.
1557 * basic-block.h (control_flow_graph): Add max_jumptable_ents,
1559 * tree-cfg.c (set_bb_for_stmt): Update.
1560 (replace_by_duplicate_decl): Update.
1561 (move_block_to_fn): Update.
1562 (new_label_mapper): Update.
1563 (dump_function_to_file): Update.
1564 * ipa-struct-reorg.c (build_data_structure): Update.
1565 * cfgrtl.c (print_rtl_with_bb): Update.
1566 * reload1.c (reload): Update.
1568 * config/i386/i386.c (setup_incoming_varargs_64,
1569 ix86_compute_frame_layout): Update.
1570 * config/arc/arc.c (arc_output_function_epilogue): Update.
1572 2008-04-18 Marius Strobl <marius@FreeBSD.org>
1574 * gthr-posix.h (__gthread_active_p): Use the Solaris implementation
1575 for FreeBSD as well.
1576 * gthr-posix95.h: Likewise.
1578 2008-04-17 Richard Sandiford <rsandifo@nildram.co.uk>
1580 PR rtl-optimization/35838
1581 * dse.c (find_shift_sequence): Use subreg_lowpart_offset to work
1582 out the byte offset of the first subreg.
1584 2008-04-17 Uros Bizjak <ubizjak@gmail.com>
1586 * config/i386/i386.md (addti3 splitter): Pass arrays of 3 operands
1587 to split_ti instead of three separate calls with single member arrays.
1588 (subti3 splitter): Ditto.
1589 (adddi3 splitter): Ditto with split_di.
1590 (subdi3 splitter): Ditto.
1591 (negti2 splitter): Pass arrays of 2 operands to split_ti instead of
1592 two separate calls with single member arrays. Swap match_dup
1593 operands 1 and 2 to better fit into the array.
1594 (negdi2 splitter): Ditto with split_di.
1595 (movdfcc splitter): Pass arrays of 2 operands to split_di instead of
1596 two separate calls with single member arrays. Swap match_dup operands
1597 6 and 7 to better fit into the array.
1599 2008-04-17 H.J. Lu <hongjiu.lu@intel.com>
1601 * config/i386/i386.c (sse_builtin_type): New.
1602 (bdesc_sse_args): Likewise.
1603 (bdesc_sse_3arg): Removed.
1604 (bdesc_2arg): Remove IX86_BUILTIN_AESKEYGENASSIST128.
1605 (bdesc_1arg): Remove IX86_BUILTIN_ROUNDPD and
1606 IX86_BUILTIN_ROUNDPS.
1607 (ix86_init_mmx_sse_builtins): Handle bdesc_sse_args. Remove
1608 bdesc_sse_3arg. Remove IX86_BUILTIN_ROUNDPD and
1609 IX86_BUILTIN_ROUNDPS.
1610 (ix86_expand_sse_4_operands_builtin): Removed.
1611 (ix86_expand_sse_operands_builtin): New.
1612 (ix86_expand_unop_builtin): Remove CODE_FOR_sse4_1_roundpd
1613 and CODE_FOR_sse4_1_roundps.
1614 (ix86_expand_builtin): Remove IX86_BUILTIN_AESKEYGENASSIST128.
1615 Handle bdesc_sse_args. Remove bdesc_sse_3arg.
1617 2008-04-17 Alan Modra <amodra@bigpond.net.au>
1620 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Restore vr and vrsave
1621 regs before frame pop when needed. If use_backchain_to_restore_sp
1622 then load backchain into a temp reg to restore vr and vrsave. Add
1623 code to restore vr after frame pop if possible.
1625 2008-04-17 Richard Guenther <rguenther@suse.de>
1627 * tree-vn.c (expressions_equal_p): Do not check type
1628 equality or compatibility before calling operand_equal_p.
1629 * fold-const.c (operand_equal_p): Check equivalence of
1630 integer constants before bailing out due to signedness or
1631 precision differences.
1632 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
1633 spurious differences in type qualification. Ignore types
1634 for COMPONENT_REFs at all.
1636 2008-04-17 Christian Bruel <christian.bruel@st.com>
1638 * config/sh/sh.c (expand_cbranchdi4): Use original operands for
1639 msw_skip comparison.
1641 2008-04-16 Jakub Jelinek <jakub@redhat.com>
1644 * tree-nrv.c (tree_nrv): Don't optimize if result_type is GIMPLE
1647 PR tree-optimization/35899
1648 * tree-inline.c (expand_call_inline): Use GIMPLE_STMT_OPERAND
1649 rather than TREE_OPERAND.
1651 2008-04-16 Uros Bizjak <ubizjak@gmail.com>
1654 * config/i386/i386.md (fmodxf3): Copy operand 1 and operand 2 into
1655 temporary registers. Change operand predicate to general_operand.
1656 (remainderxf3): Ditto.
1658 2008-04-16 Richard Guenther <rguenther@suse.de>
1660 * Makefile.in (tree-affine.o): Add $(FLAGS_H) dependency.
1661 * tree-affine.c (aff_combination_expand): Look through some
1664 2008-04-15 Doug Kwan <dougkwan@google.com>
1666 * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
1668 * tree-pretty-print.c (dump_generic_node): Ditto.
1669 * final.c (output_addr_const): Ditto.
1670 * dwarf2out.c (output_cfi): Ditto.
1671 * c-pretty-print.c (pp_c_integer_constant): Ditto.
1672 * print-rtl.c (print_rtx): Ditto.
1673 * print-tree.c (print_node_brief, print_node): Ditto.
1674 * c-common.c (match_case_to_enum_1): Ditto.
1675 * sched-vis.c (print_value): Ditto.
1676 * config/i386/i386.c (print_operand): Cast to long unsigned int
1679 2008-04-15 Danny Smith <dannysmith@users.sourceforge.net>
1680 * libgcc2.c [L_trampoline]: Remove unnecessary prototype for
1681 MS Windows VirtualProtect function.
1683 2008-04-15 Jan Hubicka <jh@suse.cz>
1685 * gengtype.c (write_root): Param_is argument is OK.
1686 * expr.c (expand_expr_real_1): Update call of get_exception_*.
1687 * function.h: Include varray.h
1688 (rtl_eh): New stucture based on except.c one.
1689 (call_site_record): New forward declaration and vector type.
1690 * calls.c (emit_call_1): Do not call
1691 note_current_region_may_contain_throw.
1692 * except.c (eh_status): Remove cur_region, try_region since they are
1694 Move filter, exc_ptr, ttype_data, ehspec_data, action_record_data and
1695 exception_handler_label_map, ehr_stackadj, ehr_handler, ehr_label,
1696 sjlj_fc, sjlj_exit_after to rth_eh in function.h.
1697 Remove call_site_data_used, call_site_data_size.
1698 Turn call_site_record into vector in function.h.
1699 (note_current_region_may_contain_throw): Remove.
1700 (get_exception_pointer, get_exception_filter): Do not take struct
1701 function argument; update.
1702 (add_ehl_entry, find_exception_handler_labels, ehspec_filter_hash,
1703 add_ttypes_entry, add_ehspec_entry, assign_filter_values,
1704 build_post_landing_pads, dw2_build_landing_pads,
1705 sjlj_assign_call_site_values, sjlj_mark_call_sites,
1706 sjlj_emit_function_enter, sjlj_emit_function_enter,
1707 sjlj_emit_function_exit, sjlj_emit_dispatch_table,
1708 sjlj_build_landing_pads, finish_eh_generation,
1709 remove_exception_handler_label, remove_eh_handler,
1710 maybe_remove_eh_handler, add_reachable_handler,
1711 reachable_handlers, expand_builtin_eh_return, expand_eh_return,
1712 add_action_record, collect_one_action_chain, add_call_site,
1713 convert_to_eh_region_ranges, sjlj_size_of_call_site_table,
1714 sjlj_output_call_site_table, output_function_exception_table,
1715 * except.h (note_current_region_may_contain_throw): Remove
1716 (get_exception_pointer, get_exception_filter): Do not take struct
1718 * Makefile.in (GTFILES): Put varargs before struct function.
1720 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
1722 * tree-ssa-structalias.c (get_constraint_for_component_ref): Do not
1723 punt for STRING_CST.
1724 (get_constraint_for): Deal with STRING_CST here instead.
1726 2008-04-15 Richard Guenther <rguenther@suse.de>
1728 * tree-ssa-propagate.c (substitute_and_fold): Substitute
1729 statements in a basic-block with a backward walk. Do not
1730 substitute into dead statements but instead remove those.
1732 2008-04-15 Richard Guenther <rguenther@suse.de>
1734 * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Set default
1735 to zero, thus disable creation of SFTs.
1737 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
1739 * tree-predcom.c (suitable_reference_p): Return false if the
1740 reference can throw.
1742 2008-04-15 Jakub Jelinek <jakub@redhat.com>
1745 * c-decl.c (finish_decl): If extern or static var has variable
1746 size, set TREE_TYPE (decl) to error_mark_node.
1748 2008-04-15 Rafael Espindola <espindola@google.com>
1750 * fold-const.c (tree_call_nonnegative_warnv_p): Remove local
1753 2008-04-15 Richard Guenther <rguenther@suse.de>
1755 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
1756 * tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
1757 (visit_reference_op_load): Do walk vuse-vdef chains on
1758 vn_reference_lookup.
1759 (visit_reference_op_store): But do not here.
1760 * tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
1761 vn_reference_lookup.
1762 (vn_lookup_with_vuses): But do so here.
1764 2008-04-14 Ian Lance Taylor <iant@google.com>
1766 * fold-const.c (fold_overflow_warning): Remove assertion.
1768 2008-04-15 Ben Elliston <bje@au.ibm.com>
1770 * config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp,
1771 temp1 local variables.
1773 2008-04-15 Zuxy Meng <zuxy.meng@gmail.com>
1776 * config/i386/winnt.c (i386_pe_section_type_flags): Mark
1777 ".text.unlikely" section as executable.
1779 2008-04-14 James E. Wilson <wilson@tuliptree.org>
1781 * config/ia64/ia64.c (rtx_needs_barrier): Handle
1782 UNSPEC_FR_SQRT_RECIP_APPROX_RES.
1783 * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define.
1784 (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr,
1785 divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr,
1786 divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat,
1787 divxf3_internal_thr, sqrtxf2_internal_thr, recip_approx): Use it.
1789 2008-04-14 Ian Lance Taylor <iant@google.com>
1791 * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
1792 * fold-const.c (fold_comparison): If appropriate, test
1793 POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
1794 (fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
1795 reassociating a pointer type.
1796 * doc/invoke.texi (Optimize Options): Document that
1797 -fstrict-overflow applies to pointer wraparound.
1799 2008-04-13 Jan Hubicka <jh@suse.cz>
1801 * m32.c (m32c_pushm_popm): Use crtl->retrun_rtx.
1803 2008-04-12 Andrew Pinski <pinskia@gmail.com>
1805 * config/rs6000/rs6000.c (compute_save_world_info): Set lr_save_p if
1806 we are going to "save the world".
1808 2008-04-13 Hans-Peter Nilsson <hp@axis.com>
1810 * config/cris/cris.md ("*andhi_lowpart_non_v32", "*andhi_lowpart_v32")
1811 ("*andqi_lowpart_non_v32", "*andqi_lowpart_v32"): Use "+" for the
1812 operand 0 constraint, not "=".
1814 2008-04-11 James E. Wilson <wilson@tuliptree.org>
1816 * system.h: Change ASSERT_CHECKING to ENABLE_ASSERT_CHECKING.
1818 2008-04-11 H.J. Lu <hongjiu.lu@intel.com>
1820 * dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
1821 of size of positions_needed * CHAR_BIT.
1823 2008-04-11 H.J. Lu <hongjiu.lu@intel.com>
1826 * dse.c (store_info): Change positions_needed to unsigned
1828 (lowpart_bitmask): New.
1829 (record_store): Cast to unsigned HOST_WIDE_INT for
1830 positions_needed. Assert width <= size of positions_needed *
1831 CHAR_BIT. Call lowpart_bitmask to initialize positions_needed.
1832 (check_mem_read_rtx): Use unsigned HOST_WIDE_INT on mask. Call
1833 lowpart_bitmask to set mask.
1835 2008-04-11 Bernd Schmidt <bernd.schmidt@analog.com>
1837 * config/bfin/constraints.md: New file.
1838 * config/bfin/bfin.md: Include it.
1839 (adddi3): Use satisfies_constraint functions instead of the old macros.
1840 * config/bfin/bfin.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
1841 CONST_18UBIT_IMM_P, CONST_16BIT_IMM_P, CONST_16UBIT_IMM_P,
1842 CONST_7BIT_IMM_P, CONST_7NBIT_IMM_P, CONST_5UBIT_IMM_P,
1843 CONST_4BIT_IMM_P, CONST_4UBIT_IMM_P, CONST_3BIT_IMM_P,
1844 CONST_3UBIT_IMM_P, CONST_OK_FOR_K, CONST_OK_FOR_P, CONST_OK_FOR_M,
1845 CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER,
1846 EXTRA_CONSTRAINT): Delete.
1847 * config/bfin/predicates.md (highbits_operand, reg_or_7bit_operand,
1848 reg_or_neg7bit_operand): Use satisfies_constraint functions instead
1850 * config/bfin/bfin.c: Include "tm-constrs.h".
1851 (bfin_secondary_reload, split_load_immediate, bfin_rtx_costs):
1852 Use satisfies_constraint functions instead of the old macros.
1853 * doc/md.texi (Blackfin Constraints): Update file name reference.
1855 2008-04-11 Richard Guenther <rguenther@suse.de>
1857 PR tree-optimization/35869
1858 * tree-vrp.c (execute_vrp): Move switch statement update after
1859 jump threading. Schedule another cfg cleanup run.
1861 2008-04-11 Volker Reichelt <v.reichelt@netcologne.de>
1864 * attribs.c (decl_attributes): Return early on errorneous node.
1866 2008-04-10 Oleg Ryjkov <olegr@google.com>
1868 * tree.h (struct tree_base): Added a new flag default_def_flag.
1869 (SSA_NAME_IS_DEFAULT_DEF): Changed to use the new flag.
1871 2008-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
1873 * config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*.
1875 2008-04-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1878 * pa.md: Define mode iterator P. Define mode attribute dwc.
1879 (dcacheflush): Update pattern to use iterator P and attribute dwc.
1880 (icacheflush): Likewise.
1881 * pa.h (INITIALIZE_TRAMPOLINE): Use dcacheflushsi/icacheflushsi if
1882 !TARGET_64BIT, and dcacheflushdi/icacheflushdi if TARGET_64BIT.
1884 2008-04-11 Ben Elliston <bje@au.ibm.com>
1886 * config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
1888 2008-04-10 Rafael Espindola <espindola@google.com>
1890 * tree-vrp.c (extract_range_from_binary_expr): Don't handle
1891 TRUTH_ANDIF_EXPR or TRUTH_ORIF_EXPR.
1892 (extract_range_from_expr): The same.
1894 2008-04-10 Adam Nemet <anemet@caviumnetworks.com>
1896 * config/mips/mips.md (GPR2): New mode iterator.
1898 (*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
1899 *sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
1900 *slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
1901 Rewrite these to take two modes, the mode of comparison and the
1902 mode of the destination.
1903 * config/mips/mips.c (mips_expand_scc): Instead of having
1904 paradoxical subreg as destination, expand "narrowing" scc if mode
1905 of comparison is SI and target is requested in DI mode.
1906 (mips_emit_int_order_test): Update comment. Make mode of
1907 comparison match CMP0 rather than TARGET. When creating inverse
1908 target use mode of TARGET.
1910 2008-04-10 Adam Nemet <anemet@caviumnetworks.com>
1912 * gcov-dump.c (tag_summary): Only print summaries for the first
1913 GCOV_COUNTERS_SUMMABLE counters.
1915 2008-04-10 Uros Bizjak <ubizjak@gmail.com>
1917 * config/i386/i386.md (absneg): New code iterator.
1918 (absnegprefix): New code attribute.
1919 (<code><mode>2): Macroize expander from abs<mode>2 and neg<mode>2
1920 patterns using absneg code iterator.
1921 (<code>tf2): Macroize expander from abstf2 and negtf2 patterns
1922 using absneg code iterator.
1923 (*<code><mode>2_1): Macroize insn pattern from *abs<mode>2_1 and
1924 *neg<mode>2 patterns using absneg code iterator.
1925 (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
1926 *negextendsfdf2 patterns using absneg code iterator.
1927 (*<code>extendsfxf2): Macroize insn pattern from *absextendsfxf2 and
1928 *negextendsfxf2 patterns using absneg code iterator.
1929 (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
1930 *negextendsfdf2 patterns using absneg code iterator.
1931 * config/i386/sse.md (<code><mode>2): Macroize expander from
1932 abs<mode>2 and neg<mode>2 patterns using absneg code iterator.
1934 2008-04-10 Andreas Krebbel <krebbel1@de.ibm.com>
1936 * config/s390/s390.h: Remove the remains of the recent search
1937 & replace action of current_function_outgoing_args_size.
1939 2008-04-10 Ira Rosen <irar@il.ibm.com>
1941 PR tree-optimization/35821
1942 * tree-vect-transform.c (vect_create_data_ref_ptr): Add check that
1943 NEW_STMT_LIST is not NULL.
1945 2008-04-09 David Edelsohn <edelsohn@gnu.org>
1948 * toplev.c (process_options): Remove -ffunction-sections debugging
1951 2008-04-09 Peter Bergner <bergner@vnet.ibm.com>
1953 PR middle-end/PR28690
1954 * explow.c (break_out_memory_refs): Use simplify_gen_binary rather
1955 than gen_rtx_fmt_ee to perform more canonicalizations.
1957 2008-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1960 * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
1962 2008-04-09 Richard Guenther <rguenther@suse.de>
1964 * tree-cfg.c (verify_stmt): Print complete bogus stmt.
1965 (dump_function_to_file): Dump function arguments with types.
1967 2008-04-08 Richard Guenther <rguenther@suse.de>
1969 * fold-const.c (fold_widened_comparison): Do not allow
1970 sign-changes that change the result.
1972 2008-04-08 Janis Johnson <janis187@us.ibm.com>
1975 * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
1976 kinds of indirect references.
1978 2008-04-08 David Edelsohn <edelsohn@gnu.org>
1980 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
1981 GNU Fortran language string.
1983 2008-04-08 Rafael Espindola <espindola@google.com>
1985 * fold-canst.c (tree_call_nonnegative_warnv_p): New.
1986 (tree_invalid_nonnegative_warnv_p): Use tree_call_nonnegative_warnv_p.
1987 * tree.h (tree_call_nonnegative_warnv_p): New.
1989 2008-04-08 Jan Hubicka <jh@suse.cz>
1991 * function.c (free_after_compilation): Clear out regno_reg_rtx
1994 2008-04-08 Peter Bergner <bergner@vnet.ibm.com>
1997 2008-04-07 Peter Bergner <bergner@vnet.ibm.com>
1999 PR middle-end/PR28690
2000 * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
2001 same precedence as REG_POINTER and MEM_POINTER operands.
2003 2008-04-08 Richard Guenther <rguenther@suse.de>
2006 * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
2007 for adding index to base.
2009 2008-04-08 Kai Tietz <kai.tietz@onevision.com>
2011 * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
2012 (MINGW_ENABLE_EXECUTE_STACK): New.
2013 (IN_LIBGCC2): For libgcc include windows.h file for
2014 function declarations.
2016 2008-04-08 Hans-Peter Nilsson <hp@axis.com>
2018 * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
2019 and tem2 if tem1 is not a REG or MULT.
2021 2008-04-08 Jan Hubicka <jh@suse.cz>
2023 * function.h (incomming_args): Break out of struct function.
2024 (function_subsections): Break out of struct function.
2025 (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
2026 return_rtx and hard_reg_initial_vals from struct function.
2027 Kill inl_max_label_num.
2028 (current_function_pops_args, current_function_args_info,
2029 current_function_args_size, current_function_args_size,
2030 current_function_pretend_args_size,
2031 current_function_outgoing_args_size,
2032 current_function_internal_arg_pointer, current_function_return_rtx):
2033 Kill compatibility accestor macros.
2034 * builtins.c (expand_builtin_apply_args_1): Update.
2035 (expand_builtin_next_arg): Update.
2036 * df-scan.c (df_get_call_refs): Update.
2037 * dbxout.c (dbxout_function_end): Update.
2038 * dwarf2out.c (dwarf2out_switch_text_section): Update.
2039 (output_line_info): Update.
2040 (secname_for_decl): Update.
2041 (dwarf2out_var_location): Update.
2042 * function.c (free_after_compilation): Update.
2043 (assign_parm_find_stack_rtl): Update.
2044 (assign_parms): Update.
2045 (expand_dummy_function_end): Update.
2046 (expand_function_end): Update.
2047 * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
2048 (expand_call): Update.
2049 (emit_library_call_value_1): Update.
2050 (store_one_arg): Update.
2051 * varasm.c (initialize_cold_section_name): Update.
2052 (unlikely_text_section): Update.
2053 (unlikely_text_section_p): Update.
2054 (assemble_start_function): Update.
2055 (assemble_end_function): Update.
2056 (default_section_type_flags): Update.
2057 (switch_to_section): Update.
2058 * integrate.c (set_decl_abstract_flags): Update.
2059 (get_hard_reg_initial_val): Update.
2060 (has_hard_reg_initial_val): Update.
2061 (allocate_initial_values): Update.
2062 * resource.c (init_resource_info): Update.
2063 * config/alpha/alpha.c (NUM_ARGS): Update.
2064 (direct_return): Update.
2065 (alpha_va_start): Update.
2066 (alpha_sa_size): Update.
2067 (alpha_initial_elimination_offset): Update.
2068 (alpha_expand_prologue): Update.
2069 (alpha_start_function): Update.
2070 (alpha_expand_epilogue): Update.
2071 (unicosmk_initial_elimination_offset):
2072 * config/alpha/alpha.md (call expander): Update.
2073 * config/s390/s390.c (s390_register_info): Update.
2074 (s390_register_info): Update.
2075 (s390_frame_info): Update.
2076 (s390_initial_elimination_offset): Update.
2077 (s390_build_builtin_va_list): Update.
2078 (s390_va_start): Update.
2079 * config/spu/spu.c (direct_return): Update.
2080 (spu_expand_prologue): Update.
2081 (spu_initial_elimination_offset): Update.
2082 (spu_build_builtin_va_list): Update.
2083 (spu_va_start): Update.
2084 * config/sparc/sparc.c (sparc_init_modes): Update.
2085 (sparc_compute_frame_size): Update.
2086 (function_value): Update.
2087 * config/m32r/m32r.c (m32r_compute_frame_size): Update.
2088 * config/i386/i386.md (return expander): Update.
2089 * config/i386/i386.c (ix86_va_start): Update.
2090 (ix86_can_use_return_insn_p): Update.
2091 (ix86_compute_frame_layout): Update.
2092 (ix86_expand_epilogue): Update.
2093 * config/sh/sh.c (output_stack_adjust): Update.
2094 (calc_live_regs): Update.
2095 (sh_expand_prologue): Update.
2096 (sh_builtin_saveregs): Update.
2097 (sh_va_start): Update.
2098 (initial_elimination_offset): Update.
2099 (sh_allocate_initial_value): Update.
2100 (sh_function_ok_for_sibcall): Update.
2101 (sh_get_pr_initial_val): Update.
2102 * config/sh/sh.md (return expander): Update.
2103 * config/avr/avr.c (frame_pointer_required_p): UPdate.
2104 * config/crx/crx.c (crx_compute_frame): UPdate.
2105 (crx_initial_elimination_offset): UPdate.
2106 * config/xtensa/xtensa.c (compute_frame_size): Update
2107 (xtensa_builtin_saveregs): Update.
2108 (xtensa_va_start): Update.
2109 (order_regs_for_local_alloc): Update.
2110 * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
2111 (xstormy16_expand_builtin_va_start): Update.
2112 * config/fr30/fr30.c (fr30_compute_frame_size): Update.
2113 * config/m68hc11/m68hc11.md (return expanders): Update.
2114 * config/m68hc11/m68hc11.c (expand_prologue): Update.
2115 (expand_epilogue): Update.
2116 * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
2117 (cris_simple_epilogue): Update.
2118 (cris_expand_prologue): Update.
2119 (cris_expand_epilogue): Update.
2120 * config/iq2000/iq2000.c (iq2000_va_start): Update.
2121 (compute_frame_size): Update.
2122 * config/mt/mt.c (mt_compute_frame_size): Update.
2123 * config/mn10300/mn10300.c (expand_prologue): Update.
2124 (expand_epilogue): Update.
2125 (initial_offset): Update.
2126 (mn10300_builtin_saveregs):
2127 * config/mn10300/mn10300.md (return expander): Update.
2128 * config/ia64/ia64.c (ia64_compute_frame_size): Update.
2129 (ia64_initial_elimination_offset): Update.
2130 (ia64_initial_elimination_offset): Update.
2131 (ia64_expand_prologue): Update.
2132 * config/m68k/m68k.md (return expander): Update.
2133 * config/rs6000/rs6000.c (rs6000_va_start): Update.
2134 (rs6000_stack_info): Update.
2135 * config/mcore/mcore.c (layout_mcore_frame): Update.
2136 (mcore_expand_prolog): Update.
2137 * config/arc/arc.c (arc_compute_frame_size): Update.
2138 * config/score/score3.c (score3_compute_frame_size): Update.
2139 * config/score/score7.c (score7_compute_frame_size): Update.
2140 * config/arm/arm.c (use_return_insn): Update.
2141 (thumb_find_work_register): Update.
2142 (arm_compute_save_reg_mask): Update.
2143 (arm_output_function_prologue): Update.
2144 (arm_output_epilogue): Update.
2145 (arm_size_return_regs): Update.
2146 (arm_get_frame_offsets): Update.
2147 (arm_expand_prologue): Update.
2148 (thumb_exit): Update.
2149 (thumb_unexpanded_epilogue): Update.
2150 (thumb1_output_function_prologue): Update.
2151 * config/pa/pa.md (return expander): Update.
2152 * config/pa/pa.c (compute_frame_size): Update.
2153 (hppa_builtin_saveregs): Update.
2154 * config/mips/mips.c (mips_va_start): Update.
2155 (mips16_build_function_stub): Update.
2156 (mips_compute_frame_info): Update.
2157 (mips_restore_gp): Update.
2158 (mips_output_function_prologue): Update.
2159 (mips_expand_prologue): Update.
2160 * config/v850/v850.c (compute_frame_size): Update.
2161 (expand_prologue): * config/mmix/mmix.c (along): update.
2162 (mmix_initial_elimination_offset): update.
2163 (mmix_reorg): update.
2164 (mmix_use_simple_return): update.
2165 (mmix_expand_prologue): update.
2166 (mmix_expand_epilogue): Update.
2167 * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
2168 (emit_link_insn): Update.
2170 2008-04-08 Anatoly Sokolov <aesok@post.ru>
2172 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define
2173 __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL
2175 * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for
2178 2008-04-07 Jan Hubicka <jh@suse.cz>
2180 * function.h (rtl): Rename to x_rtl.
2182 (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
2183 frame_offset, stack_check_probe_note, arg_pointer_save_area,
2184 used_temp_slots avail_temp_slots, temp_slot_level,
2185 nonlocal_goto_handler_labels): Update accesstors.
2186 (rtl): New global variable.
2187 (struct function): Move some fileds to rtl_data.
2188 (get_arg_pointer_save_area): Update prototype.
2189 * builtins.c (expand_builtin_setjmp_receiver): Update call of
2190 get_arg_pointer_save_area.
2191 * expr.c (init_expr): Update
2192 * function.c (get_frame_size): Update
2193 (assign_stack_local): Update
2194 (expand_function_end): Update.
2195 (get_art_pointer_save_area): Update
2197 * emit-rtl.c (rtl): Declare.
2198 (regno_reg_rtx): Declare.
2199 (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
2201 (gen_reg_rtx): Update.
2202 * varasm.c (n_deferred_constatns): Update accestor.
2203 (init_varasm_status): Do not allocate varasm_status.
2204 (force_const_mem, get_pool_size, output_constant_pool): Update.
2205 * stmt.c (force_label_rtx): Do not use x_ prefixes.
2206 (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
2207 * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
2208 * sparc/sparc.h (INIT_EXPANDERS): Update.
2209 * ia64/ia64.h (INIT_EXPANDERS): Update.
2211 2008-04-07 James E. Wilson <wilson@tuliptree.org>
2213 * reload.c (push_secondary_reload): Add missing break to for loop.
2215 2008-04-07 Peter Bergner <bergner@vnet.ibm.com>
2217 PR middle-end/PR28690
2218 * rtlanal.c: Update copyright years.
2219 (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
2220 as REG_POINTER and MEM_POINTER operands.
2221 * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
2222 (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
2223 * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
2224 * gcse.c: Update copyright years.
2225 (pre_delete): Call gen_reg_rtx_and_attrs.
2226 (hoist_code): Likewise.
2227 (build_store_vectors): Likewise.
2228 (delete_store): Likewise.
2229 * loop-invariant.c (move_invariant_reg): Likewise.
2230 Update copyright years.
2232 2008-04-07 Uros Bizjak <ubizjak@gmail.com>
2234 * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
2235 control string instead of quoted.
2237 2008-04-07 Kenneth Zadeck <zadeck@naturalbridge.com>
2239 * doc/rtl.texi: Rewrite of subreg section.
2241 2008-04-07 Kai Tietz <kai.tietz@onevision.com>
2244 * config/i386/i386.c (legitimize_pic_address): Add treating
2245 of dllimport SYM_REF's.
2246 (legitimize_dllimport_symbol): Add prototype.
2248 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
2250 * fold-const.c (fold) <ARRAY_REF>: New case. Try to fold constant
2251 reference in constructor with non self-referential type.
2253 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
2255 Removal of Return with Depressed Stack Pointer support
2256 * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
2257 (ECF_SP_DEPRESSED): Likewise.
2258 (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
2259 * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
2260 (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
2261 (expand_call): Do not test ECF_SP_DEPRESSED.
2262 * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
2263 * function.c (keep_stack_depressed): Delete.
2264 (handle_epilogue_set): Likewise.
2265 (update_epilogue_consts): Likewise.
2266 (emit_equiv_load): Likewise.
2267 (thread_prologue_and_epilogue_insns): Remove support for Return with
2268 Depressed Stack Pointer.
2269 * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
2271 2008-04-06 Richard Guenther <rguenther@suse.de>
2273 PR tree-optimization/35400
2274 * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
2275 information from SSA_NAMEs.
2277 2008-04-06 Anatoly Sokolov <aesok@post.ru>
2279 * config/avr/avr.h (avr_mega_p): Remove declaration.
2280 (AVR_MEGA): Remove macro.
2281 * config/avr/avr.c (avr_mega_p): Remove variable.
2282 (avr_override_options): Remove inicializion of avr_mega_p.
2283 Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
2284 (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
2285 (avr_jump_mode): (Ditto.).
2286 (avr_output_progmem_section_asm_op): (Ditto.).
2287 (avr_asm_init_sections): (Ditto.).
2288 (avr_asm_init_sections): (Ditto.).
2289 (avr_rtx_costs): (Ditto.).
2290 * config/avr/avr.md: (Ditto.).
2291 * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of
2294 2008-04-06 Richard Guenther <rguenther@suse.de>
2296 PR tree-optimization/35842
2297 * tree-ssa-address.c (fixed_address_object_p): Adjust to match
2298 is_gimple_invariant_address.
2300 2008-04-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2302 * gcc.c (default_compilers): Sync Fortran extensions list with
2303 that in fortran/lang-specs.h.
2304 * doc/invoke.texi: Likewise.
2305 * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
2306 * dwarf2out.c (gen_compile_unit_die): Likewise.
2308 2008-04-06 Tom G. Christensen <tgc@jupiterrise.com>
2310 * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
2312 2008-04-05 Uros Bizjak <ubizjak@gmail.com>
2315 * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
2316 attribute is used for nested functions.
2318 2008-04-05 Jan Hubicka <jh@suse.cz>
2320 * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
2322 * tree-dump.c (dump_enable_all): Remove prototype; do not accept
2324 (dump_files): Update.
2325 (enable_rtl_dump_file): Do not accept letter argument.
2326 * tree-pass.h (dump_file_info): Remove letter argument.
2327 * toplev.c (decode_d_option): Update -da handling.
2328 * toplev.h (enable_rtl_dump_file): Update prototype.
2329 * passes.c (register_one_dump_file): Do not accept IPA argument; work
2330 it out based on pass type.
2331 (register_dump_files_1): Likewise.
2332 (init_optimization_passes): Update register_one_dump_file calls.
2333 (execute_one_pass): Sanity check that IPA passes are called at IPA
2334 level and RTL passes at RTL level.
2335 (execute_pass_list): IPA pass can not be after or subpass of
2337 (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
2338 disallov RTL subpasses of IPA subpasses.
2340 2008-04-05 Ben Elliston <bje@au.ibm.com>
2342 * tree-cfg.c (need_fake_edge_p): Return false for calls to
2343 builtins that return exactly once and do not throw. Cache call to
2346 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
2348 PR rtl-optimization/34916
2350 * combine.c (create_log_links): Do not create duplicate LOG_LINKS
2351 between instruction pairs.
2353 2008-04-04 Naveen.H.S <naveen.hs@kpitcummins.com>
2355 * doc/invoke.texi: Document -mbitops for SH.
2356 * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
2357 * config/sh/predicates.md (bitwise_memory_operand): New predicate.
2358 * config/sh/sh.c (print_operand): Add %t operand code.
2359 * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
2360 * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
2361 (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
2362 (extendqihi2): Likewise.
2363 (movqi_i): Likewise.
2364 (insv): Use bset, bclr and bst instructions for SH2A if possible.
2365 (extv): Use bld instruction for SH2A if possible.
2367 (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
2368 bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
2369 bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
2370 (bset.b, bclr.b): Define peepholes.
2371 * config/sh/sh.opt (mbitops): New option.
2373 2008-04-04 Janis Johnson <janis187@us.ibm.com>
2376 * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
2377 and view convert expression.
2379 2008-04-04 Jakub Jelinek <jakub@redhat.com>
2382 * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
2384 2008-04-04 H.J. Lu <hongjiu.lu@intel.com>
2386 * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
2388 * config/i386/cpuid.h (bit_AES): New.
2389 (bit_PCLMUL): Likewise.
2391 * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
2392 (override_options): Handle PTA_AES and PTA_PCLMUL. Enable
2393 SSE2 if AES or PCLMUL is enabled.
2394 (ix86_builtins): Add IX86_BUILTIN_AESENC128,
2395 IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
2396 IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
2397 IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
2398 (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
2399 (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
2400 IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
2401 IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
2402 (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
2403 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
2404 __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
2405 __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
2406 __builtin_ia32_aeskeygenassist128 and
2407 __builtin_ia32_pclmulqdq128.
2408 * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
2409 (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
2410 IX86_BUILTIN_PSRLDQI128. Handle IX86_BUILTIN_AESKEYGENASSIST128.
2412 * config/i386/i386.h (TARGET_AES): New.
2413 (TARGET_PCLMUL): Likewise.
2414 (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
2416 * config/i386/i386.md (UNSPEC_AESENC): New.
2417 (UNSPEC_AESENCLAST): Likewise.
2418 (UNSPEC_AESDEC): Likewise.
2419 (UNSPEC_AESDECLAST): Likewise.
2420 (UNSPEC_AESIMC): Likewise.
2421 (UNSPEC_AESKEYGENASSIST): Likewise.
2422 (UNSPEC_PCLMUL): Likewise.
2424 * config/i386/i386.opt (maes): New.
2425 (mpclmul): Likewise.
2427 * config/i386/sse.md (aesenc): New pattern.
2428 (aesenclast): Likewise.
2430 (aesdeclast): Likewise.
2432 (aeskeygenassist): Likewise.
2433 (pclmulqdq): Likewise.
2435 * config/i386/wmmintrin.h: New.
2437 * doc/extend.texi: Document AES and PCLMUL built-in function.
2439 * doc/invoke.texi: Document -maes and -mpclmul.
2441 2008-04-04 Paolo Bonzini <bonzini@gnu.org>
2443 * function.c (free_after_parsing): Replace with
2444 cxx_push_function_context from C++ front-end.
2445 (allocate_struct_function): Don't call langhook.
2446 * langhooks.h (struct lang_hooks_for_functions): Delete.
2447 (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
2449 * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
2450 (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
2451 LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
2452 LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
2453 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
2454 remove LANG_HOOKS_FUNCTION_INITIALIZER.
2455 * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
2457 * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
2458 Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
2460 2008-04-04 Jakub Jelinek <jakub@redhat.com>
2463 * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
2466 2008-04-04 Richard Guenther <rguenther@suse.de>
2469 * fold-const.c (optimize_minmax_comparison): Use the correct
2470 type for the constant in the simplified comparison.
2472 2008-04-04 Zuxy Meng <zuxy.meng@gmail.com>
2474 * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
2475 Pass L2 size as "--param l2-cache-size" to the compiler.
2476 (decode_l2_cache): New function to decode L2 cache parameters using
2477 0x8000006 extended cpuid function.
2478 (detect_caches_amd): Determine parameters of L2 cache using
2479 decode_l2_caches function.
2480 (decode_caches_intel): Decode L2 cache parameters.
2481 (detect_caches_intel): Determine L2 cache parameters using
2482 decode_caches_intel and decode_l2_caches functions.
2484 2008-04-03 Bob Wilson <bob.wilson@acm.org>
2486 * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
2487 secondary input reload for subword loads from the constant pool.
2489 2008-04-03 Janis Johnson <janis187@us.ibm.com>
2492 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
2493 constants of the appropriate size for runtime calculations.
2496 * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
2497 decimal-float literal constant zero.
2499 2008-04-03 Jakub Jelinek <jakub@redhat.com>
2502 * c-parser.c (c_parser_omp_atomic): Call
2503 default_function_array_conversion on the RHS.
2506 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
2507 call is_variable_sized if decl has incomplete type.
2509 2008-04-03 H.J. Lu <hongjiu.lu@intel.com>
2511 * config/i386/i386-protos.h (ix86_aligned_p): Removed.
2513 2008-04-03 Adam Nemet <anemet@caviumnetworks.com>
2515 * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
2517 (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and leu.
2518 (sgt<u>): Merge sgt and sgtu into new expander.
2519 (sgt, sgtu): Remove expanders.
2520 (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new pattern.
2521 (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
2522 (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
2523 *sgtu_<mode>_mips16 into new pattern.
2524 (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
2525 (sge<u>): Merge sge and sgeu into new expander.
2526 (sge, sgeu): Remove expanders.
2527 (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
2529 (*sge_<mode>, second *sge_<mode>): Remove patterns.
2530 (slt<u>): Merge slt and sltu into new expander.
2531 (slt, sltu): Remove expanders.
2532 (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new pattern.
2533 (*slt_<mode>, *sltu_<mode>): Remove patterns.
2534 (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
2535 *sltu_<mode>_mips16 into new pattern.
2536 (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
2537 (sle<u>): Merge sle and sleu into new expander.
2538 (sle, sleu): Remove expanders.
2539 (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new pattern.
2540 (*sle_<mode>, *sleu_<mode>): Remove patterns.
2541 (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
2542 *sleu_<mode>_mips16 into new pattern.
2543 (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
2545 2008-04-03 Jan Hubicka <jh@suse.cz>
2547 PR tree-optimization/35795
2548 * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
2549 * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
2550 * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
2551 * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
2552 * score/score3.c (score3_output_mi_thunk): Likewise.
2553 * score/score7.c (score7_output_mi_thunk): Likewise.
2554 * mips/mips.c (mips_output_mi_thunk): Likewise.
2556 2008-04-03 Richard Guenther <rguenther@suse.de>
2558 * tree-vrp.c (extract_range_from_unary_expr): Handle all
2559 conversions. Simplify code.
2561 2008-04-03 Kaz Kojima <kkojima@gcc.gnu.org>
2563 * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
2565 2008-04-03 Tom Tromey <tromey@redhat.com>
2566 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2568 * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
2569 * config/bfin/t-bfin-linux (generated_files): Add
2570 linux-sysroot-suffix.h.
2571 * doc/install.texi (Prerequisites): Require make 3.80.
2572 * doc/sourcebuild.texi (Front End Directory): Document new
2574 * Makefile.in (generated_files): New variable.
2575 (ALL_HOST_OBJS): New variable.
2576 ($(ALL_HOST_OBJS)): New target.
2578 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
2580 * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
2581 (remap_block): Call id->transform_lang_insert_block instead
2583 (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
2584 Set id.transform_lang_insert_block to NULL.
2585 (clone_body): Move to cp/optimize.c
2586 * tree-inline.h (struct copy_body_data): Change
2587 transform_lang_insert_block to function pointer.
2588 (copy_generic_body, copy_decl_no_change): Export.
2589 * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
2590 * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
2591 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
2593 * c-tree.h (insert_block): Kill.
2594 * c-decl.c (insert_block): Kill.
2596 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
2598 * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
2599 LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
2600 * c-tree.h (c_push_function_context, c_pop_function_context): Remove
2602 * c-decl.c (c_push_function_context, c_pop_function_context): Remove
2603 argument, call {push,pop}_function_context from here.
2604 * c-parser.c: Use c_{push,pop}_function_context.
2606 * function.c (push_function_context_to): Move meat ...
2607 (push_function_context): ... here. Simplify.
2608 * function.c (pop_function_context_from): Move meat ...
2609 (pop_function_context): ... here. Simplify.
2610 * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
2612 * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
2613 LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
2614 (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
2615 * tree.h (push_function_context_to, pop_function_context_from): Remove.
2617 2008-04-03 Ben Elliston <bje@au.ibm.com>
2619 * expmed.c (extract_force_align_mem_bit_field): Remove.
2621 2008-04-03 Richard Guenther <rguenther@suse.de>
2624 * expr.h (try_casesi): Adjust prototype.
2625 * expr.c (try_casesi): Take fallback label as extra parameter.
2626 Use that for gen_casesi if default_label is NULL.
2627 * stmt.c (expand_case): Pass fallback label to try_casesi,
2628 make sure to fill gaps with a fallback label if default_label
2631 2008-04-03 Dominique d'Humieres <dominiq@lps.ens.fr>
2634 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
2636 2008-04-03 Ben Elliston <bje@au.ibm.com>
2638 * expmed.c (extract_split_bit_field): Remove if (0) code.
2639 * tree-ssa-structalias.c (do_sd_constraint): Likewise.
2640 (do_ds_constraint): Likewise.
2642 2008-04-02 Joseph Myers <joseph@codesourcery.com>
2644 * doc/cppopts.texi (-dU): Document.
2645 * c-common.h (flag_dump_macros): Update comment.
2646 * c-opts.c (handle_OPT_d): Handle -dU.
2647 * c-ppoutput.c (macro_queue, define_queue, undef_queue,
2648 dump_queued_macros, cb_used_define, cb_used_undef): New.
2649 (init_pp_output): Handle -dU.
2650 (cb_line_change): Call dump_queued_macros.
2651 * toplev.c (decode_d_option): Accept -dU as preprocessor option.
2653 2008-04-02 Anatoly Sokolov <aesok@post.ru>
2655 * config/avr/predicates.md (io_address_operand): New predicate.
2656 * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
2657 * config/avr/avr.c (avr_io_address_p): Remove function.
2658 (out_movqi_r_mr): Use 'io_address_operand' predicate instead of
2659 'avr_io_address_p' function.
2660 (out_movhi_r_mr): (Ditto.).
2661 (out_movqi_mr_r): (Ditto.).
2662 (out_movhi_mr_r): (Ditto.).
2663 (avr_address_cost): (Ditto.).
2665 2008-04-02 Uros Bizjak <ubizjak@gmail.com>
2667 * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
2668 Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
2669 in 32bit mode when XMM registers are available to avoid store
2671 (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
2672 corresponding post-reload splitters.
2674 2008-04-02 H.J. Lu <hongjiu.lu@intel.com>
2676 * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
2677 and __builtin_ia32_shufpd. Provide __builtin_ia32_roundsd and
2678 __builtin_ia32_roundss.
2679 (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
2680 __builtin_ia32_shufpd, __builtin_ia32_roundsd and
2681 __builtin_ia32_roundss.
2682 (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
2683 IX86_BUILTIN_SHUFPD here.
2685 2008-04-02 H.J. Lu <hongjiu.lu@intel.com>
2687 * config/i386/i386.md (plogic): New.
2688 (plogicprefix): Likewise.
2690 * config/i386/mmx.md (mmx_<code><mode>3): New.
2691 (mmx_and<mode>3): Removed.
2692 (mmx_ior<mode>3): Likewise.
2693 (mmx_xor<mode>3): Likewise.
2695 * config/i386/sse.md (<code><mode>3): New.
2696 (*<code><mode>3): Likewise.
2697 (*<code><mode>3): Likewise.
2698 (<code><mode>3): Likewise.
2699 (*sse_<code><mode>3): Likewise.
2700 (*sse2_<code><mode>3): Likewise.
2701 (<code>tf3): Likewise.
2702 (*<code>tf3): Likewise.
2703 (and<mode>3): Likewise.
2704 (*and<mode>3): Likewise.
2705 (ior<mode>3): Removed.
2706 (*ior<mode>3): Likewise.
2707 (xor<mode>3): Likewise.
2708 (*xor<mode>3): Likewise.
2709 (*and<mode>3): Likewise.
2710 (*ior<mode>3): Likewise.
2711 (*xor<mode>3): Likewise.
2712 (and<mode>3): Likewise.
2713 (*sse_and<mode>3): Likewise.
2714 (*sse2_and<mode>3): Likewise.
2716 (*andtf3): Likewise.
2717 (ior<mode>3): Likewise.
2718 (*sse_ior<mode>3): Likewise.
2719 (*sse2_ior<mode>3): Likewise.
2721 (*iortf3): Likewise.
2722 (xor<mode>3): Likewise.
2723 (*sse_xor<mode>3): Likewise.
2724 (*sse2_xor<mode>3): Likewise.
2726 (*xortf3): Likewise.
2728 2008-04-02 Richard Guenther <rguenther@suse.de>
2730 PR tree-optimization/14495
2731 PR tree-optimization/34793
2732 * tree-vrp.c (struct switch_update): New structure.
2733 (to_remove_edges, to_update_switch_stmts): New VECs.
2734 (simplify_switch_using_ranges): New function. Remove not taken
2735 case labels and edges.
2736 (simplify_stmt_using_ranges): Call it.
2737 (identify_jump_threads): Mark edges we have queued for removal
2738 so we don't thread them.
2739 (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
2741 * tree-cfg.c (group_case_labels): Deal with missing default label.
2742 (tree_verify_flow_info): Allow missing default label.
2743 * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
2744 (emit_case_nodes): Likewise.
2745 (expand_case): Do not rely on the default label to be present.
2746 * expr.c (try_casesi): Deal with NULL default_label.
2747 (do_tablejump): Likewise.
2749 2008-04-02 Richard Guenther <rguenther@suse.de>
2751 PR tree-optimization/14495
2752 * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
2753 SWITCH_EXPR here ...
2754 (vrp_visit_switch_stmt): ... but here (new function).
2755 (find_case_label_index): New helper function.
2756 (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
2758 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
2760 * fwprop.c: Fix ISO-C99ism.
2762 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
2765 * Makefile.in (objdir): Set it here.
2766 * configure.ac: Not here. Find dynamic linker characteristics.
2767 * exec-tool.in: Use them.
2768 * aclocal.m4: Regenerate.
2769 * configure: Regenerate.
2771 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
2773 * expr.c (expand_var): Delete it.
2774 * expr.h (expand_var): Delete prototype.
2775 * function.c (expand_function_start): Use expand_decl instead.
2776 * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
2779 2008-04-02 Andy Hutchinson <hutchinsonamdy@aim.com>
2781 PR rtl-optimization/35542
2782 * fwprop.c (forward_propagate_and_simplify): Replace
2783 loc_reg_mentioned_in_p with reg_mentioned_p.
2785 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
2787 PR rtl-optimization/35281
2788 * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
2789 (propagate_rtx_1): Handle PR_HANDLE_MEM.
2790 (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
2791 (varying_mem_p): Move above propagate_rtx.
2792 (all_uses_available_at): Do not check MEMs.
2794 2008-04-02 Rafael Espindola <espindola@google.com>
2796 * tree-vrp.c (extract_code_and_val_from_cond): Remove.
2797 (register_edge_assert_for_2): Split the cond argument.
2798 (register_edge_assert_for_1): Adjust for the change in
2799 register_edge_assert_for_2.
2800 (register_edge_assert_for): Split the cond argument.
2801 (find_switch_asserts): Adjust for the change in
2802 register_edge_assert_for.
2804 2008-04-02 Kai Tietz <kai.tietz@onevision.com>
2806 * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
2807 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
2808 offsets for 64-bit mingw.
2809 * config/i386/i386.c (ix86_pass_by_reference): Correct calling
2810 abi for x86_64-pc-mingw.
2812 2008-04-02 Richard Guenther <rguenther@suse.de>
2814 * tree-vrp.c (extract_range_from_assert): Make sure to not
2815 produce range min/max with TREE_OVERFOW set.
2816 If merging a anti-range and a range keep the anti-range if
2817 the range covers all values of the type.
2818 (register_edge_assert_for_2): Only allow sign-changing
2819 conversions in detecting canonical range checks. Also
2820 register an assert for the unsigned name if useful.
2822 PR tree-optimization/35787
2823 * tree-vrp.c (vrp_val_max): New function.
2824 (vrp_val_min): Likewise.
2825 (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
2826 (vrp_val_is_min): Likewise.
2827 (supports_overflow_infinity): Use vrp_val_{min,max}.
2828 (negative_overflow_infinity): Likewise.
2829 (positive_overflow_infinity): Likewise.
2830 (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
2831 (is_positive_overflow_infinity): Likewise.
2832 (is_overflow_infinity): Likewise.
2833 (avoid_overflow_infinity): Use vrp_val_{min,max} and
2834 vrp_val_is_{min,max}.
2835 (set_and_canonicalize_value_range): Canonicalize anti-ranges
2836 to ranges if possible. Avoid empty ranges.
2838 2008-04-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2841 * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
2842 the expression is a function address.
2844 2008-04-01 George Helffrich <george@gcc.gnu.org>
2846 PR fortran/35154, fortran/23057
2847 * dbxout.c: Emit .stabs debug info for Fortran COMMON block
2848 variables as base symbol name + offset using N_BCOMM/N_ECOMM.
2849 (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
2850 (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
2852 (dbxout_syms): Check for COMMON-based symbol and wrap in
2853 N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
2854 in bracket for efficiency.
2856 * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
2857 using DW_TAG_common_block + member offset.
2858 (add_pubname_string): New function.
2859 (dw_expand_expr): New function to find block name and offset for
2861 (common_check): New function to check whether symbol in Fortran COMMON.
2862 (gen_variable_die): If COMMON, use DW_TAG_common_block.
2864 2008-04-01 Volker Reichelt <v.reichelt@netcologne.de>
2867 * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
2869 2008-04-02 Ben Elliston <bje@au.ibm.com>
2871 * config/v850/v850.md (casesi): Remove if (0) code.
2872 * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
2873 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
2875 2008-04-01 Uros Bizjak <ubizjak@gmail.com>
2877 * config/i386/i386.md (rex64suffix): New mode attribute.
2878 (floathi<mode>2): Disable expander for SSE math.
2879 (*floathi<mode>2_1): New insn insn_and_split pattern.
2880 (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
2881 corresponding post-reload splitters.
2882 (*floathi<mode>2_i387): New macroized insn pattern.
2883 (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
2884 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
2885 insn_and_split pattern.
2886 (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
2887 New macroized instruction patterns and corresponding post-reload
2889 (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
2890 and corresponding post-reload splitters.
2891 (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
2892 New macroized instruction patterns.
2893 (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
2894 macroized instruction patterns and corresponding post-reload splitters.
2895 (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
2896 corresponding post-reload splitters.
2897 (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
2898 New macroized instruction patterns.
2899 (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
2900 corresponding post-reload splitters.
2901 (*floatsi<mode>2_i387): New macroized instruction patterns.
2903 2008-04-01 H.J. Lu <hongjiu.lu@intel.com>
2905 * config/i386/i386.md (smaxmin): New.
2906 (umaxmin): Likewise.
2907 (maxminiprefix): Likewise.
2908 (maxminfprefix): Likewise.
2909 (<code><mode>3): Likewise.
2910 (smin<mode>3): Removed.
2911 (smax<mode>3): Likewise.
2913 * config/i386/mmx.md (mmx_<code>v2sf3): New.
2914 (mmx_<code>v4hi3): Likewise.
2915 (mmx_<code>v8qi3): Likewise.
2916 (mmx_smaxv2sf3): Removed.
2917 (mmx_sminv2sf3): Likewise.
2918 (mmx_umaxv8qi3): Likewise.
2919 (mmx_smaxv4hi3): Likewise.
2920 (mmx_uminv8qi3): Likewise.
2921 (mmx_sminv4hi3): Likewise.
2923 * config/i386/sse.md (<addsub><mode>3): New.
2924 (*<addsub><mode>3): Likewise.
2925 (<sse>_vm<addsub><mode>3): Likewise.
2926 (<maxmin><mode>3): Likewise.
2927 (*<maxmin><mode>3_finite): Likewise.
2928 (*<maxmin><mode>3): Likewise.
2929 (<sse>_vm<maxmin><mode>3): Likewise.
2930 (sse3_h<addsub>v4sf3): Likewise.
2931 (sse3_h<addsub>v2df3): Likewise.
2932 (<maxmin>v16qi3): Likewise.
2933 (*<maxmin>v16qi3): Likewise.
2934 (<maxmin>v8hi3): Likewise.
2935 (*<maxmin>v8hi3): Likewise.
2936 (*sse4_1_<maxmin><mode>3): Likewise.
2937 (*sse4_1_<maxmin><mode>3): Likewise.
2938 (add<mode>3): Removed.
2939 (*add<mode>3): Likewise.
2940 (<sse>_vmadd<mode>3): Likewise.
2941 (sub<mode>3): Likewise.
2942 (*sub<mode>3): Likewise.
2943 (<sse>_vmsub<mode>3): Likewise.
2944 (smin<mode>3): Likewise.
2945 (*smin<mode>3_finite): Likewise.
2946 (*smin<mode>3): Likewise.
2947 (<sse>_vmsmin<mode>3): Likewise.
2948 (smax<mode>3): Likewise.
2949 (*smax<mode>3_finite): Likewise.
2950 (*smax<mode>3): Likewise.
2951 (<sse>_vmsmax<mode>3): Likewise.
2952 (sse3_haddv4sf3): Likewise.
2953 (sse3_haddv2df3): Likewise.
2954 (sse3_hsubv4sf3): Likewise.
2955 (sse3_hsubv2df3): Likewise.
2956 (umaxv16qi3): Likewise.
2957 (*umaxv16qi3): Likewise.
2958 (smaxv8hi3): Likewise.
2959 (*smaxv8hi3): Likewise.
2960 (*sse4_1_smax<mode>3): Likewise.
2961 (*sse4_1_umax<mode>3): Likewise.
2962 (uminv16qi3): Likewise.
2963 (*uminv16qi3): Likewise.
2964 (sminv8hi3): Likewise.
2965 (*sminv8hi3): Likewise.
2966 (*sse4_1_smin<mode>3): Likewise.
2967 (*sse4_1_umin<mode>3): Likewise.
2969 2008-04-01 Rafael Espindola <espindola@google.com>
2971 * tree-cfg.c (verify_expr): remove in_phi.
2972 (verify_stmt): Don't call walk_tree with verify_expr. Use
2973 is_gimple_min_invariant instead of is_gimple_val.
2975 2008-04-01 Joseph Myers <joseph@codesourcery.com>
2977 * doc/include/gpl_v3.texi: Update for manpage generation.
2978 * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
2980 * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
2981 * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
2982 gpl_v3.texi instead of gpl.texi.
2985 2008-04-01 Jakub Jelinek <jakub@redhat.com>
2988 * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
2990 2008-04-01 Rafael Espindola <espindola@google.com>
2992 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
2993 (extract_code_and_val_from_cond): Use
2994 extract_code_and_val_from_cond_with_ops.
2996 2008-04-01 Jan Hubicka <jh@suse.cz>
2998 * function.c (free_after_compilation): Free epilogue_delay_list.
2999 (prepare_function_start): Assert that previous compilation was freed.
3001 2008-04-01 Jan Hubicka <jh@suse.cz>
3002 Jim Wilson <wilson@tuliptree.org>
3003 Andreas Tobler <andreast@gcc.gnu.org>
3006 * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
3007 rtl.emit instead cfun->emit.
3008 * sparc/sparc.h (INIT_EXPANDERS): Likewise.
3009 * ia64/ia64.h (INIT_EXPANDERS): Likewise.
3011 2008-04-01 Ben Elliston <bje@au.ibm.com>
3013 * doc/c-tree.texi (Function Basics): Fix grammatical error.
3015 2008-03-31 Seongbae Park <seongbae.park@gmail.com>
3017 * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
3019 (fprofile-use): Add var flag_profile_use
3020 * coverage.c (coverage_begin_output): Do not open a gcno file for
3021 output only if -ftest-coverage is set.
3022 Do not add getpwd() to gcda file path.
3023 (build_gcov_info): Check the new flag
3024 flag_profile_datafile_relative_path.
3025 (coverage_init): Use profile_data_prefix.
3026 Read profile counter only if flag_profile_use is set.
3027 * opts.c (common_handle_option): New option fprofile-use=,
3028 fprofile-dir=, fprofile-generate=.
3029 * toplev.c (profile_data_prefix): New variable definition.
3030 * toplev.h (profile_data_prefix): New declaration.
3031 * doc/invoke.tex (Option Summary, Optimization Options):
3034 2008-03-31 James E. Wilson <wilson@tuliptree.org>
3036 * varasm.c (output_constant_pool_1): In LABEL_REF check,
3037 use tmp consistently.
3040 * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
3041 * config/ia64/ia64.c (rtx_needs_barrier): Handle
3042 UNSPEC_FR_RECIP_APPROX_RES.
3043 * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
3045 2008-03-31 Volker Reichelt <v.reichelt@netcologne.de>
3048 * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
3050 2008-03-31 Andrew Pinski <andrew_pinski@playstation.sony.com>
3053 * fold-const.c (fold_indirect_ref_1): Support accessing non first
3054 element of the vector via a pointer.
3056 2008-03-31 Ian Lance Taylor <iant@google.com>
3058 * tlink.c (scan_linker_output): Look for symbol name in single quotes.
3060 2008-03-31 Jan Hubicka <jh@suse.cz>
3062 * builtins.c (expand_builtin_setjmp_receiver): Update call of
3063 get_arg_pointer_save_area.
3064 * expr.c (init_expr): Just clear out rtl.expr.
3065 * function.c (free_after_compilation): Clear out whole RTL structure.
3066 (get_func_frame_size): Merge into ...
3067 (get_frame_size): ... this one.
3068 (assign_stack_local_1): Merge into ...
3069 (assign_stack_local): ... this one.
3070 (expand_function_end): Update call of get_arg_pointer_save_area.
3071 (get_art_pointer_save_area): Remove cfun argument.
3072 * function.h (emit_status): regno_pointer_align does not need length
3073 attribute. Move x_regno_reg_rtx to ...
3074 (regno_reg_rtx): ... new global array.
3075 (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
3076 (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
3077 apply_args_value, forced_labels, stack_pointer_delta):
3079 (struct varasm_status): Move here from varasm.c
3080 (struct rtl_data): New. Move here some fields from struct function.
3081 (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
3082 frame_offset, stack_check_probe_note, arg_pointer_save_area,
3083 used_temp_slots avail_temp_slots, temp_slot_level,
3084 nonlocal_goto_handler_labels): Update accesstors.
3085 (rtl): New global variable.
3086 (struct function): Move some fileds to rtl_data.
3087 (get_arg_pointer_save_area): Update prototype.
3088 * emit-rtl.c (rtl): Declare.
3089 (regno_reg_rtx): Declare.
3090 (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
3092 (gen_reg_rtx): Update.
3093 (init_virtual_regs): Do not tate emit_status argument.
3094 (init_emit): Do not allocate emit.
3095 * varasm.c (varasm_statuc): Move to function.h.
3096 (n_deferred_constatns): Update accestor.
3097 (init_varasm_status): Do not allocate varasm_status.
3098 (force_const_mem, get_pool_size, output_constant_pool): Update.
3099 * stmt.c (force_label_rtx): Do not use x_ prefixes.
3100 (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
3102 2008-03-31 Zdenek Dvorak <ook@ucw.cz>
3104 PR rtl-optimization/35729
3105 * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
3108 2008-03-31 H.J. Lu <hongjiu.lu@intel.com>
3111 * config/i386/i386.md (*movti_internal): Emit unaligned SSE
3112 load/store if memory is unaligned.
3113 (*movti_rex64): Likewise.
3115 * config/i386/predicates.md (misaligned_operand): New.
3117 2008-03-31 Andrew Pinski <pinskia@gmail.com>
3120 * tree-ssa-phiopt.c (conditional_replacement): Return early for
3123 2008-03-31 Jan Beulich <jbeulich@novell.com>
3125 * config/ia64/constraints.md: Add 'j' constraint.
3126 * config/ia64/ia64.md (movsi_internal): Add addp4 case.
3127 (movdi_internal): Likewise.
3129 2008-03-30 Volker Reichelt <v.reichelt@netcologne.de>
3132 * c-typeck.c (build_c_cast): Skip invalid fields in unions.
3134 2008-03-30 H.J. Lu <hongjiu.lu@intel.com>
3137 * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
3138 proper error message for the third argument on blendpd and
3141 * config/i386/sse.md (blendbits): New.
3142 (sse4_1_blendp<ssemodesuffixf2c>): Use it.
3144 2008-03-30 Eric Botcazou <ebotcazou@adacore.com>
3146 * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
3148 2008-03-30 Richard Guenther <rguenther@suse.de>
3151 * fold-const.c (fold_sign_changed_comparison): Do leave
3152 conversions to base-types alone.
3154 2008-03-29 Andrew Pinski <andrew_pinski@playstation.sony.com>
3156 * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
3157 the link register if one altivec register is be saved.
3159 2008-03-30 Ben Elliston <bje@au.ibm.com>
3161 * final.c (final_scan_insn): Remove if (0) code.
3163 2008-03-28 Volker Reichelt <v.reichelt@netcologne.de>
3165 * c-parser.c (c_parser_next_token_is_keyword): Simplify.
3167 2008-03-28 H.J. Lu <hongjiu.lu@intel.com>
3169 * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
3170 of V4SFmode to ix86_binary_operator_ok.
3172 2008-03-28 Uros Bizjak <ubizjak@gmail.com>
3174 * config/i386/i386.c (override_options): Initialize
3175 ix86_veclib_handler to ix86_veclibabi_svml when
3176 -mveclibabi=svml is used.
3177 (ix86_veclibabi_svml): New function for SVML ABI style
3178 vectorization support.
3179 * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
3181 2008-03-28 Rafael Espindola <espindola@google.com>
3183 * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
3184 (tree_binary_nonnegative_warnv_p): Make it public.
3185 (tree_single_nonnegative_warnv_p): Make it public.
3186 (tree_invalid_nonnegative_warnv_p): Make it public.
3187 (tree_unary_nonzero_warnv_p): Make it public.
3188 (tree_binary_nonzero_warnv_p): Make it public
3189 (tree_single_nonzero_warnv_p): Make it public.
3190 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
3191 (extract_range_from_binary_expr): Split the expr argument.
3192 (extract_range_from_unary_expr): Split the expr argument.
3193 (extract_range_from_comparison): Split the expr argument.
3194 (extract_range_from_expr): Use the new aux functions.
3195 (vrp_evaluate_conditional_warnv): Use
3196 vrp_evaluate_conditional_warnv_with_ops.
3197 * tree.h (tree_unary_nonzero_warnv_p): Declare.
3198 (tree_binary_nonzero_warnv_p): Declare.
3199 (tree_single_nonzero_warnv_p): Declare.
3200 (tree_expr_nonzero_warnv_p): Declare.
3201 (tree_unary_nonnegative_warnv_p): Declare.
3202 (tree_binary_nonnegative_warnv_p): Declare.
3203 (tree_single_nonnegative_warnv_p): Declare.
3204 (tree_invalid_nonnegative_warnv_p): Declare.
3206 2008-03-28 Richard Guenther <rguenther@suse.de>
3208 PR tree-optimization/30317
3209 PR tree-optimization/30911
3210 PR tree-optimization/34793
3211 * tree-vrp.c (set_and_canonicalize_value_range): New function.
3212 (struct assert_locus_d): New member EXPR.
3213 (register_new_assert_for): Add EXPR parameter to support
3214 ASSERT_EXPR <name, expr OP limit>.
3215 (register_edge_assert_for_1): Adjust callers.
3216 (find_assert_locations): Likewise.
3217 (process_assert_insertions_for): Build condition from expression.
3218 (extract_range_from_assert): Handle ASSERT_EXPRs
3219 of the form ASSERT_EXPR <name, expr OP limit>.
3220 (register_edge_assert_for_2): New helper registering
3221 asserts for comparisons. Recognize range tests of the form
3222 (unsigned)i - CST1 OP CST2.
3223 (register_edge_assert_for_1): Use it.
3224 (register_edge_assert_for): Likewise.
3225 (needs_overflow_infinity): Integer sub-types
3226 do not need overflow infinities.
3227 (vrp_val_is_max): The extreme values of integer sub-types
3228 are those of the base type.
3229 (vrp_val_is_min): Likewise.
3230 * tree.def (ASSERT_EXPR): Document extra allowed conditional
3233 2008-03-28 Nick Clifton <nickc@redhat.com>
3236 * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
3237 Return GENERAL_REGS for stack adjustment reloads.
3239 2008-03-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
3242 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
3243 const_vector when all the vectors are constant.
3245 2008-03-27 Bob Wilson <bob.wilson@acm.org>
3247 * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
3249 * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
3250 (any_scc_sf): Add uneq, unlt, unle and unordered operators.
3252 (s<code>_sf): Use new scc_sf attribute for opcode names.
3254 2008-03-27 Tom Tromey <tromey@redhat.com>
3256 * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
3257 configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
3258 config/spu/t-spu-elf, config/i386/t-interix,
3259 config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
3260 config/i386/x-darwin, config/i386/x-mingw32,
3261 config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
3262 config/sh/t-sh, config/sh/t-symbian, config/x-linux,
3263 config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
3264 config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
3265 config/rs6000/x-rs6000, config/rs6000/x-darwin64,
3266 config/rs6000/x-darwin, config/rs6000/t-rs6000,
3267 config/score/t-score-elf, config/arm/t-strongarm-pe,
3268 config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
3269 config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
3270 Revert automatic dependency patch.
3272 2008-03-27 H.J. Lu <hongjiu.lu@intel.com>
3275 * config/i386/i386.c (ix86_function_arg_boundary): Align
3276 decimal floating point to its natural boundary.
3278 2008-03-27 Richard Guenther <rguenther@suse.de>
3281 * fold-const.c (fold_comparison): Restrict distinct decl
3282 comparison folding to VAR_DECLs and PARM_DECLs. Do not
3283 solely rely on operand_equal_p.
3285 2008-03-27 Richard Guenther <rguenther@suse.de>
3288 * c-common.c (handle_weak_attribute): Reject combination of
3291 2008-03-27 Richard Guenther <rguenther@suse.de>
3293 PR tree-optimization/32810
3294 * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
3295 conversions from DECL_INITIAL.
3296 (fold_const_aggregate_ref): Likewise from constructor elements.
3298 2008-03-27 Zdenek Dvorak <ook@ucw.cz>
3300 * tree-affine.h (aff_combination_expand): Declare.
3301 (get_inner_reference_aff): Likewise.
3302 * tree-affine.c (aff_combination_expand): Split out from
3303 tree_to_aff_combination_expand.
3304 (get_inner_reference_aff): New function.
3305 * tree-parloops.c (loop_parallel_p): Free vectorizer info.
3306 * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
3307 (struct lim_aux_data): sm_done field removed.
3308 (mem_ref_loc_p, mem_ref_locs_p): New types.
3309 (struct mem_ref): Added id, stored, accesses_in_loop,
3310 indep_loop, dep_loop, indep_ref, dep_ref fields.
3311 Removed is_stored, locs and next fields.
3312 (memory_accesses): New variable.
3313 (movement_possibility): Do not allow moving statements
3314 that store to memory.
3315 (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
3317 (determine_max_movement): For statements with memory references,
3318 find the outermost loop in that the reference is independent.
3319 (move_computations_stmt): Mark the virtual operands for renaming.
3320 (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
3321 gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
3322 vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
3323 add_vop_ref_mapping, create_vop_ref_mapping_loop,
3324 create_vop_ref_mapping, analyze_memory_references,
3325 cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
3326 get_all_locs_in_loop, ref_always_accessed_p,
3327 refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
3328 ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
3329 store_motion_loop, store_motion): New functions.
3330 (struct vop_to_refs_elt): New type.
3331 (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
3332 memref_hash, memref_eq, hoist_memory_references): Rewritten.
3333 (schedule_sm): Replaced by...
3334 (execute_sm): ... this.
3335 (determine_lsm_ref, hoist_memory_references,
3336 loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
3337 find_more_ref_vops, free_mem_ref, free_mem_refs,
3338 determine_lsm_loop, determine_lsm): Removed.
3339 (tree_ssa_lim_finalize): Free data structures used by store motion.
3340 (tree_ssa_lim): Call analyze_memory_references. Use
3341 store_motion instead of determine_lsm.
3343 2008-03-27 Paolo Bonzini <bonzini@gnu.org>
3345 * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
3346 rename tmake_file to m68hc11/t-m68hc11.
3347 (mcore): Set inhibit_libc to true.
3348 * config.host (alpha*-dec-*vms*): Set extra_programs.
3349 (interix3*): Don't use host_xmake_file.
3350 * configure.ac: Let config.gcc override inhibit_libc.
3351 * configure: Regenerate.
3353 * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
3354 * config/t-openbsd-thread: Remove commented out lines.
3356 * config/x-interix: Remove.
3358 * config/m68hc11/t-m68hc11-gas: Rename to...
3359 * config/m68hc11/t-m68hc11: ... this. Remove T_CPPFLAGS.
3361 * config/mcore/t-mcore: Remove T_CFLAGS.
3362 * config/mcore/t-mcore-pe: Likewise.
3364 2008-03-27 Paolo Bonzini <bonzini@gnu.org>
3366 * configure.ac: Replace custom __GNU_SOURCE test with
3367 AC_USE_SYSTEM_EXTENSIONS. Move it earlier.
3368 * aclocal.m4: Regenerate.
3369 * configure: Regenerate.
3370 * config.in: Regenerate.
3372 2008-03-27 Richard Guenther <rguenther@suse.de>
3374 * fold-const.c (target.h): Include.
3375 (fold_comparison): Fold comparison of addresses of decls
3376 that bind locally or of constants. Consolidate address folding code.
3377 * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
3378 results from fold_binary_to_constant.
3379 (compare_values_warnv): Likewise.
3381 2008-03-27 Andrew Pinski <pinskia@gmail.com>
3384 * fold-const.c (fold_truthop): Check for integeral types when folding
3385 a == 0 && b == 0 and a != 0 || b != 0 .
3387 2008-03-26 Eric Botcazou <ebotcazou@adacore.com>
3389 * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
3391 2008-03-26 Andreas Schwab <schwab@suse.de>
3393 * doc/invoke.texi: Fix use of @item vs. @itemx.
3395 2008-03-26 Tom Tromey <tromey@redhat.com>
3397 * Makefile.in (build/gensupport.o, build/print-rtl.o,
3398 build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
3399 build/genattrtab.o, build/genautomata.o, build/gencheck.o,
3400 build/gencodes.o, build/genconditions.o, build/genconfig.o,
3401 build/genconstants.o, build/genemit.o, build/genextract.o,
3402 build/genflags.o, build/genmddeps.o, build/genopinit.o,
3403 build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
3406 2008-03-26 Richard Guenther <rguenther@suse.de>
3409 2008-03-26 Richard Guenther <rguenther@suse.de>
3411 * fold-const.c (target.h): Include.
3412 (fold_comparison): Fold comparison of addresses of two decls
3413 that bind locally. Consolidate address folding code.
3415 2008-03-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3417 * builtins.c (expand_builtin_pow, fold_builtin_cabs,
3418 fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
3419 fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
3420 dconstsqrt2, dconstthird, dconste and/or dconst10.
3421 * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
3422 * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
3423 dconstsqrt2, dconste): Delete.
3424 (init_emit_once): Likewise. Simplify initializing dconstm1.
3426 * real.c (get_real_const): New.
3427 * real.h (dconst3, dconst10, dconstm2, dconstthird,
3428 dconstsqrt2, dconste): Delete.
3429 (real_value_const, get_real_const): New.
3431 2008-03-26 H.J. Lu <hongjiu.lu@intel.com>
3433 * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
3435 * config/i386/i386.c (ix86_function_arg_boundary): Check
3436 BIGGEST_ALIGNMENT instead of 128.
3437 (setup_incoming_varargs_64): Likewise.
3439 2008-03-26 Tom Tromey <tromey@redhat.com>
3441 * Makefile.in (DEPFILES): Add missing '/'.
3443 2008-03-26 Richard Guenther <rguenther@suse.de>
3445 * fold-const.c (target.h): Include.
3446 (fold_comparison): Fold comparison of addresses of two decls
3447 that bind locally. Consolidate address folding code.
3449 2008-03-26 Nick Clifton <nickc@redhat.com>
3452 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
3453 not allow INT+INT as a legitimate addressing mode.
3455 2008-03-26 Richard Guenther <rguenther@suse.de>
3457 * tree-flow.h (widen_bitfield): Remove declaration.
3458 * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
3459 (widen_bitfield): Remove function.
3460 * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
3463 2008-03-25 Andrew Pinski <andrew_pinski@playstation.sony.com>
3466 * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
3469 2008-03-25 Richard Sandiford <rsandifo@nildram.co.uk>
3471 PR rtl-optimization/35232
3472 * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
3473 (forget_old_reloads_1, forget_marked_reloads): Don't clear
3474 reg_reloaded_call_part_clobbered here.
3475 (reload_regs_reach_end_p): New function.
3476 (reload_reg_rtx_for_input): New variable.
3477 (reload_reg_rtx_for_output): Likewise.
3478 (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
3479 when reassigning a pseudo register. Load reloadreg from
3480 reload_reg_rtx_for_input, moving the mode and register
3482 (do_input_reload): ...here. Use the mode-adjusted reg_rtx
3483 instead of the original when deciding whether an input reload
3484 would be a no-op or whether an output reload can be deleted.
3485 (emit_output_reload_insns): Use the mode-adjusted reg_rtx
3486 when setting up new_spill_reg_store. Load it from
3487 reload_reg_rtx_for_output, moving the mode and register
3489 (do_output_reload): ...here. Use the mode-adjusted reg_rtx
3490 instead of the original when deciding whether an output reload
3491 would be a no-op. Do the same when modifying insn notes.
3492 Use rtx_equal_p instead of == to compare the registers.
3493 (inherit_piecemeal_p): Take a mode and two register numbers
3495 (emit_reload_insns): Clear new_spill_reg_store for every hard
3496 register in the reload register. Remove spill registers
3497 from reg_reloaded_valid before considering whether to record
3498 inheritance information for them. Use reload_reg_rtx_for_output
3499 instead of reg_rtx when recording output reloads. Use
3500 reload_reg_rtx_for_input instead of reg_rtx when recording
3501 input reloads. Set or clear reg_reloaded_call_part_clobbered
3502 at the same time as setting reg_reloaded_valid.
3503 (delete_output_reload): Add a new_reload_reg parameter and use it
3504 instead of rld[j].reg_rtx.
3505 (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
3508 2008-03-25 Tom Tromey <tromey@redhat.com>
3510 * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
3511 (build/genattr.o): Likewise.
3512 (build/genattrtab.o): Likewise.
3513 (build/gencodes.o): Likewise.
3514 (build/genconfig.o): Likewise.
3515 (build/genconstants.o): Likewise.
3516 (build/genemit.o): Likewise.
3517 (build/genextract.o): Likewise.
3518 (build/genflags.o): Likewise.
3520 2008-03-25 Bob Wilson <bob.wilson@acm.org>
3522 * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
3523 instead of size_int for integer types.
3524 (xtensa_gimplify_va_arg_expr): Likewise. Convert index to sizetype
3525 to match type of MINUS_EXPR.
3527 2008-03-25 Tom Tromey <tromey@redhat.com>
3529 * configure: Rebuilt.
3530 * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
3533 2008-03-25 Tom Tromey <tromey@redhat.com>
3535 * config/x-solaris (host-solaris.o): Update.
3536 * config/x-linux (host-linux.o): Update.
3537 * config/x-hpux (host-hpux.o): Update.
3538 * config/x-darwin (host-darwin.o): Update.
3539 * config/v850/t-v850e (v850-c.o): Update.
3540 * config/v850/t-v850 (v850-c.o): Update.
3541 * config/t-vxworks (vxworks.o): Update.
3542 * config/t-sol2 (sol2-c.o, sol2.o): Update.
3543 * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
3544 * config/spu/t-spu-elf (spu-c.o): Update.
3546 * config/sh/t-symbian (sh-c.o): Update.
3547 (symbian.o): Update.
3548 * config/sh/t-sh (sh-c.o): Update.
3549 * config/score/t-score-elf (score7.o, score3.o): Update.
3550 * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
3551 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
3552 * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
3553 * config/rs6000/t-rs6000 (rs6000-c.o): Update.
3555 * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
3556 * config/m32c/t-m32c (m32c-pragma.o): Update.
3557 * config/ia64/t-ia64 (ia64-c.o): Update.
3558 * config/i386/x-mingw32 (host-mingw32.o): Update.
3559 * config/i386/x-i386 (driver-i386.o): Update.
3560 * config/i386/x-darwin (host-i386-darwin.o): Update.
3561 * config/i386/x-cygwin (host-cygwin.o): Update.
3562 * config/i386/t-nwld (nwld.o): Update.
3563 * config/i386/t-netware (netware.o): Update.
3564 * config/i386/t-interix (winnt.o): Update.
3565 * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
3566 * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
3567 msformat-c.o): Update.
3568 * config/bfin/t-bfin-linux (generated_files): Add
3569 linux-sysroot-suffix.h.
3570 * config/arm/t-wince-pe (pe.o): Update.
3571 * config/arm/t-strongarm-pe (pe.o): Update.
3572 * config/arm/t-pe (pe.o): Update.
3573 * config/arm/t-arm (arm-c.o): Update.
3574 * doc/install.texi (Prerequisites): Require make 3.80.
3575 * Makefile.in: Remove .o targets.
3576 (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
3577 (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
3578 (simple_generated_h, simple_generated_c): Move earlier.
3579 (generated_files): New variable.
3580 (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
3581 TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
3582 BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
3583 ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
3584 REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
3585 CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
3586 CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
3587 INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
3588 PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
3589 TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
3590 DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
3591 VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
3593 (COMPILE.base, COMPILE): New variables.
3594 (%.o): New pattern rule.
3595 (ALL_HOST_OBJS): New variable.
3596 (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
3597 (dummy-checksum.o, cc1-checksum.o): Remove.
3598 (DRIVER_SHLIB): New variable.
3599 (DRIVER_DEFINES): Use it.
3600 (gencondmd.c): Move out of build/.
3601 (s-conditions): Update.
3602 (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
3603 (ALL_BUILD_OBJS): Likewise.
3604 (build/%.o): Use BUILDCOMPILE.
3605 (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
3606 build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
3607 build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
3608 build/gencheck.o, build/gencodes.o, build/genconditions.o,
3609 build/genconfig.o, build/genconstants.o, build/genemit.o,
3610 build/genextract.o, build/genflags.o, build/genmddeps.o,
3611 build/genopinit.o, build/genoutput.o, build/genpeep.o,
3612 build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
3613 build/gen-protos.o, build/scan.o, build/fix-header.o,
3614 build/scan-decls.o): Simplify.
3615 (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
3616 cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
3617 prefix.o, toplev.o): Reduce to variable setting.
3618 (libbackend.o): Use COMPILE. Remove most dependencies. Move later.
3619 ($(out_object_file), gcc-options.o): New targets.
3620 ($(ALL_HOST_OBJS)): New target. Include dependency files.
3621 * configure: Rebuilt.
3622 * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
3623 * doc/sourcebuild.texi (Front End Directory): Document new variable.
3625 2008-03-25 Douglas Gregor <doug.gregor@gmail.com>
3627 * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
3628 complain when we hit an error, return ERROR_MARK_NODE.
3630 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
3632 * config/sh/constraints.md (Pso, Psz): New constraints.
3633 * config/sh/sh.c (print_operand): Add %V and %W operand codes.
3634 * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
3636 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
3638 * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
3639 * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
3641 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
3643 * config/sh/sh.md (prefetch): Add condition for SH2A target.
3644 (prefetch_sh2a): New.
3646 2008-03-25 Jayant Sonar <Jayant.sonar@kpitcummins.com>
3647 Naveen.H.S <naveen.hs@kpitcummins.com>
3649 * config/sh/constraints.md (I28): New constraint.
3650 * config/sh/sh.c (broken_move): Add support for movi20s.
3651 * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
3653 2008-03-25 Anil Paranjape <anil.paranjape@kpitcummins.com>
3654 Jayant Sonar <Jayant.sonar@kpitcummins.com>
3655 Naveen.H.S <naveen.hs@kpitcummins.com>
3657 * config/sh/sh.c (SH_ATTRIBUTES): Define.
3658 (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
3659 (print_operand): Handle resbank in %@ operand code.
3660 (sh_encode_section_info): New.
3661 (push_regs): Add conditions for resbank.
3662 (sh_expand_epilogue): Likewise.
3663 (sh_insert_attributes): Likewise.
3664 (sh_attribute_table): Likewise.
3665 (sh_handle_resbank_handler_attribute): New.
3666 (sh2a_handle_function_vector_handler_attribute): New.
3667 (sh2a_is_function_vector_call): New.
3668 (sh2a_get_function_vector_number): New.
3669 (sh2a_function_vector_p): New.
3670 (sh_cfun_resbank_handler_p): New.
3671 * config/sh/sh.md (calli): Emit jsr/n if possible.
3672 (calli_tbr_rel): New.
3673 (calli_pcrel): Emit jsr/n if possible.
3674 (return_i): Emit rts/n if possible.
3675 (call_valuei_tbr_rel): New.
3676 (call_valuei_pcrel): Add condition for SH2A target.
3677 (call_value): Likewise.
3678 * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
3679 (sh2a_get_function_vector_number): Likewise.
3680 (sh2a_is_function_vector_call): Likewise.
3681 * doc/extend.texi: Document TBR relative addressing of SH2A.
3682 (resbank): Add description for SH2A.
3684 2008-03-24 Richard Guenther <rguenther@suse.de>
3687 * gimplify.c (gimplify_modify_expr): For frontend type-correct
3688 pointer assignments change conversions according to middle-end rules.
3689 (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
3690 * configure.ac: Include type checking in yes.
3691 * configure: Regenerate.
3693 2008-03-24 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3695 * diagnostic.c (diagnostic_count_diagnostic): Delete.
3696 (diagnostic_report_diagnostic): Update. Handle ICEs here.
3698 2008-03-24 Nathan Sidwell <nathan@codesourcery.com>
3700 * gthr-vxworks.h (UNUSED): Define.
3702 2008-03-23 H.J. Lu <hongjiu.lu@intel.com>
3704 * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
3706 2008-03-23 Zuxy Meng <zuxy.meng@gmail.com>
3708 * doc/extend.texi (Function Attributes): Add missing comma in the
3709 example of the "alloc_size" attribute.
3711 2008-03-23 Uros Bizjak <ubizjak@gmail.com>
3714 2008-03-05 H.J. Lu <hongjiu.lu@intel.com>
3716 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
3719 2008-03-19 Uros Bizjak <ubizjak@gmail.com>
3722 * stor-layout.c (update_alignment_for_field): Set minimum alignment
3723 of the underlying type of a MS bitfield layout to the natural
3724 alignment of the type.
3726 2008-03-22 Uros Bizjak <ubizjak@gmail.com>
3728 * config/i386/i386.c (assign_386_stack_local): Align DImode slots
3729 to their natural alignment to avoid store forwarding stalls.
3731 2008-03-22 Richard Guenther <rguenther@suse.de>
3733 * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
3734 For PHI nodes verify the address is invariant.
3735 * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
3736 (get_symbol_constant_value): Use is_gimple_min_invariant.
3737 (maybe_fold_stmt_indirect): Likewise.
3739 2008-03-22 Richard Sandiford <rsandifo@nildram.co.uk>
3741 PR rtl-optimization/33927
3742 * Makefile.in (dse.o): Depend on $(TM_P_H).
3743 * expr.h (extract_low_bits): Declare.
3744 * expmed.c (extract_low_bits): New function.
3745 * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
3746 * dse.c: Include tm_p.h.
3747 (find_shift_sequence): Remove the read_reg argument and return the
3748 read value. Emit the instructions instead of returning them.
3749 Iterate on new_mode rather than calculating it each time.
3750 Check MODES_TIEABLE_P. Use simplify_gen_subreg to convert the
3751 source to NEW_MODE and extract_low_bits to convert the shifted
3753 (replace_read): Allow the load and store to have different mode
3754 classes. Use extract_low_bits when SHIFT == 0. Create the shift
3755 or extraction instructions before trying the replacement. Update
3756 dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
3758 2008-03-22 Uros Bizjak <ubizjak@gmail.com>
3760 * config/i386/i386.c (assign_386_stack_local): Align DImode slots
3761 to their natural alignment to avoid store forwarding stalls.
3763 2008-03-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
3766 * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
3767 encouraging but not allowing gprs for input;
3768 change the input constraint to !f#r.
3769 (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
3771 change the output constraint to !f#r.
3773 2008-03-21 Uros Bizjak <ubizjak@gmail.com>
3776 * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
3777 corresponding post-reload splitters.
3778 ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
3779 when x87 FP math is selected.
3780 * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
3781 New function prototype.
3782 * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
3783 unreachable function to ease macroization of insn patterns.
3785 2008-03-21 Martin Jambor <mjambor@suse.cz>
3787 * tree-data-ref.c (dump_data_dependence_relation): Avoid data
3788 reference dumps if ddr is NULL or dependence is unknown.
3790 2008-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
3792 * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
3793 unsigned extension into account.
3794 (ATOMIC_COMPARE_AND_SWAP): Likewise.
3795 (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
3796 Do computations on a scratch register.
3798 2008-03-21 Richard Guenther <rguenther@suse.de>
3800 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
3801 Use is_gimple_min_invariant instead of TREE_INVARIANT.
3802 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
3803 * tree-ssa-dom.c (record_equality): Likewise.
3804 * tree-inline.c (copy_body_r): Likewise.
3805 * tree-ssa-pre.c (make_values_for_stmt): Remove test for
3808 2008-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
3810 * config/sh/sh.c (split_branches): Pass zero to redirect_jump
3811 as 'delete_unused' argument.
3813 2008-03-20 Richard Guenther <rguenther@suse.de>
3815 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
3816 special casing of constant qualifiers.
3817 * tree-ssa.c (useless_type_conversion_p_1): Instead do not
3818 care about them in general.
3819 * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
3820 regardless of their type.
3821 (fold_stmt_r): Forcefully fold *& if we end up with that.
3823 2008-03-20 Paul Brook <paul@codesourcery.com>
3825 * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
3826 * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
3828 * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
3830 (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
3831 * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
3833 2008-03-20 Volker Reichelt <v.reichelt@netcologne.de>
3835 * common.opt (Wmudflap): New option.
3836 * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
3837 (mx_register_decls): Likewise.
3838 (mudflap_finish_file): Likewise.
3839 * doc/invoke.texi: Document -Wno-mudflap.
3841 2008-03-20 Kai Tietz <kai.tietz@onevision.com>
3843 * c-format.c (replace_format_name_to_system_name): New.
3845 (convert_format_name_to_system_name): New.
3846 (decode_format_attr): Add use of convert_format_name_to_system_name.
3847 (format_types_orig): Add gnu_ prefix to names.
3848 (check_format_info_main): Special treating of \0 escaped names for
3849 supporting multi-character format specifiers as I32, I64.
3850 (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
3851 (gnu_target_overrides_format_attributes): New.
3852 * c-format.h: Add structure target_ovr_attr to hold
3853 system specific formatter names.
3854 * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
3855 msformat-c.o file to c_target_objs and cxx_target_objs.
3856 * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
3857 (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
3858 (TARGET_N_FORMAT_TYPES): New.
3859 * config/i386/msformat-c.c: New.
3860 * config/i386/t-cygming: Add build rule for msformat-c.o.
3861 * doc/extend.texi: Add new format names gnu_* and ms_* and
3863 * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
3865 2008-03-20 Ira Rosen <irar@il.ibm.com>
3867 * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
3868 optimizations turned on under -O3.
3869 (ftree-vectorize): Add that the flag is turned on with -O3.
3871 2008-03-20 Ben Elliston <bje@au.ibm.com>
3873 * regmove.c (try_auto_increment): Fix spelling error in comment.
3874 * final.c (final_scan_insn): Likewise.
3876 2008-03-20 Uros Bizjak <ubizjak@gmail.com>
3879 * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
3880 allocator preferences for "y" and "r" class registers.
3881 ("*mov<mode>_internal"): Ditto.
3882 ("*movv2sf_internal_rex64"): Ditto.
3883 ("*movv2sf_internal"): Ditto.
3885 2008-03-19 Michael Matz <matz@suse.de>
3888 * calls.c (expand_call): Check overlap of arguments with call
3889 address for sibcalls.
3891 2008-03-19 Uros Bizjak <ubizjak@gmail.com>
3894 * stor-layout.c (update_alignment_for_field): Set minimum alignment
3895 of the underlying type of a MS bitfield layout to the natural
3896 alignment of the type.
3898 2008-03-19 Jan Hubicka <jh@suse.cz>
3901 * toplev.c (decode_d_option): Handle all CPP flags.
3902 * tree-vrp.c: Update tree_pass descriptors.
3903 * regrename.c: Update tree_pass descriptors.
3904 * fwprop.c: Update tree_pass descriptors.
3905 * doc/invoke.texi: Remove documentation of dropped -d? flags.
3906 * tree-into-ssa.c: Update tree_pass descriptors.
3907 * tree-dump.c: Update tree_pass descriptors.
3908 * tree-complex.c: Update tree_pass descriptors.
3909 * tree-dump.h: Update tree_pass descriptors.
3910 * see.c: Update tree_pass descriptors.
3911 * cgraphbuild.c: Update tree_pass descriptors.
3912 * tracer.c: Update tree_pass descriptors.
3913 * tree-loop-distribution.c: Update tree_pass descriptors.
3914 * cgraph.c: Update tree_pass descriptors.
3915 * postreload-gcse.c: Update tree_pass descriptors.
3916 * postreload.c: Update tree_pass descriptors.
3917 * tree-ssa-loop-ch.c: Update tree_pass descriptors.
3918 * tree-tailcall.c: Update tree_pass descriptors.
3919 * tree-pass.h (tree_opt_pass): Rename to ...
3920 (opt_pass) ... this one; add "type" field and remove letter field.
3921 (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
3922 (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
3923 all_lowering_passes): Update declaration.
3924 * ipa-cp.c: Update tree_pass descriptors.
3925 * final.c: Update tree_pass descriptors.
3926 * omp-low.c: Update tree_pass descriptors.
3927 * tree-ssa-dse.c: Update tree_pass descriptors.
3928 * ipa-reference.c: Update tree_pass descriptors.
3929 * tree-ssa-uncprop.c: Update tree_pass descriptors.
3930 * auto-inc-dec.c: Update tree_pass descriptors.
3931 * reorg.c: Update tree_pass descriptors.
3932 * cgraphunit.c: Update tree_pass descriptors.
3933 * tree-ssa-copyrename.c: Update tree_pass descriptors.
3934 * tree-ssa-ccp.c: Update tree_pass descriptors.
3935 * df-core.c: Update tree_pass descriptors.
3936 * mode-switching.c: Update tree_pass descriptors.
3937 * tree-nomudflap.c: Update tree_pass descriptors.
3938 * modulo-sched.c: Update tree_pass descriptors.
3939 * ipa-pure-const.c: Update tree_pass descriptors.
3940 * cse.c: Update tree_pass descriptors.
3941 * web.c: Update tree_pass descriptors.
3942 * tree-stdarg.c: Update tree_pass descriptors.
3943 * tree-ssa-math-opts.c: Update tree_pass descriptors.
3944 * tree-ssa-dom.c: Update tree_pass descriptors.
3945 * tree-nrv.c: Update tree_pass descriptors.
3946 * tree-ssa-alias.c: Update tree_pass descriptors.
3947 * loop-init.c: Update tree_pass descriptors.
3948 * gimple-low.c: Update tree_pass descriptors.
3949 * ipa-inline.c: Update tree_pass descriptors.
3950 * tree-ssa-sink.c: Update tree_pass descriptors.
3951 * global.c: Update tree_pass descriptors.
3952 * ifcvt.c: Update tree_pass descriptors.
3953 * jump.c: Update tree_pass descriptors.
3954 * predict.c: Update tree_pass descriptors.
3955 * tree-ssa-loop.c: Update tree_pass descriptors.
3956 * recog.c: Update tree_pass descriptors.
3957 * dse.c: Update tree_pass descriptors.
3958 * tree-ssa-ifcombine.c: Update tree_pass descriptors.
3959 * tree-eh.c: Update tree_pass descriptors.
3960 * regmove.c: Update tree_pass descriptors.
3962 * function.c: Update tree_pass descriptors.
3963 * tree-vectorizer.c: Update tree_pass descriptors.
3964 * gcse.c: Update tree_pass descriptors.
3965 * ipa-type-escape.c: Update tree_pass descriptors.
3966 * tree-if-conv.c: Update tree_pass descriptors.
3967 * init-regs.c: Update tree_pass descriptors.
3968 * ipa.c: Update tree_pass descriptors.
3969 * tree-ssa-phiopt.c: Update tree_pass descriptors.
3970 * rtl-factoring.c: Update tree_pass descriptors.
3971 * lower-subreg.c: Update tree_pass descriptors.
3972 * bt-load.c: Update tree_pass descriptors.
3973 * tree-dfa.c: Update tree_pass descriptors.
3974 * except.c: Update tree_pass descriptors.
3975 * emit-rtl.c: Update tree_pass descriptors.
3976 * cfgexpand.c: Update tree_pass descriptors.
3977 * tree-cfgcleanup.c: Update tree_pass descriptors.
3978 * cfgcleanup.c: Update tree_pass descriptors.
3979 * tree-ssa-pre.c: Update tree_pass descriptors.
3980 * tree-sra.c: Update tree_pass descriptors.
3981 * tree-mudflap.c: Update tree_pass descriptors.
3982 * tree-ssa-copy.c: Update tree_pass descriptors.
3983 * cfglayout.c: Update tree_pass descriptors.
3984 * tree-ssa-forwprop.c: Update tree_pass descriptors.
3985 * tree-ssa-dce.c: Update tree_pass descriptors.
3986 * tree-ssa.c: Update tree_pass descriptors.
3987 * regclass.c: Update tree_pass descriptors.
3988 * integrate.c: Update tree_pass descriptors.
3989 * tree-optimize.c: Update tree_pass descriptors.
3990 * tree-ssa-phiprop.c: Update tree_pass descriptors.
3991 * tree-object-size.c: Update tree_pass descriptors.
3992 * combine.c: Update tree_pass descriptors.
3993 * tree-outof-ssa.c: Update tree_pass descriptors.
3994 * bb-reorder.c: Update tree_pass descriptors.
3995 * stack-ptr-mod.c: Update tree_pass descriptors.
3996 * var-tracking.c: Update tree_pass descriptors.
3997 * tree-profile.c: Update tree_pass descriptors.
3998 * tree-vect-generic.c: Update tree_pass descriptors.
3999 * reg-stack.c: Update tree_pass descriptors.
4000 * sched-rgn.c: Update tree_pass descriptors.
4001 * tree-ssa-structalias.c: Update tree_pass descriptors.
4002 * tree-cfg.c: Update tree_pass descriptors.
4003 * passes.c (current_pass): Update declaration.
4004 (finish_optimization_passes): Update.
4005 (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
4006 (register_one_dump_file, register_dump_files_1, next_pass_1):
4008 (init_optimization_passes): Update handling of new types.
4009 (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
4010 * ipa-struct-reorg.c: Update tree_pass descriptors.
4011 * tree-ssa-reassoc.c: Update tree_pass descriptors.
4012 * combine-stack-adj.c: Update tree_pass descriptors.
4013 * cfgrtl.c: Update tree_pass descriptors.
4014 * dce.c: Update tree_pass descriptors.
4015 * tree-ssanames.c: Update tree_pass descriptors.
4017 2008-03-19 Richard Guenther <rguenther@suse.de>
4020 * tree-ssa.c (walk_data): New structure.
4021 (warn_uninitialized_var): If not always_executed warn with "maybe"
4023 (execute_early_warn_uninitialized): Compute post-dominators.
4024 Initialize always_executed before processing each basic block.
4026 2008-03-18 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
4029 * config/i386/i386.c (x86_this_parameter): Calculate correct location
4030 of "this" pointer when "regparm = N" or "fastcall" is in effect.
4032 2008-03-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4034 * doc/include/texinfo.tex: Update to version 2008-03-17.10.
4036 2008-03-18 Paolo Bonzini <bonzini@gnu.org>
4038 * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
4040 (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
4041 (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
4042 is true. Add "&& !ignore" condition to reduce_bit_field. Modify
4043 target after ignore has been set, and move there also the commputation
4044 of subtarget and original_target.
4045 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
4046 (LANG_HOOKS_INITIALIZER): Remove it.
4047 * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
4049 2008-03-18 Richard Guenther <rguenther@suse.de>
4051 * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
4052 found an expression with constants, note that in the VN for the lhs.
4053 * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
4054 fold them to constants if possible. Run cleanup_cfg if done so.
4055 (execute_pre): Return todo.
4057 (execute_fre): Likewise.
4058 * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
4060 (get_prop_source_stmt): Look through pointer conversions.
4062 2008-03-18 Jan Hubicka <jh@suse.cz>
4064 * tree-pretty-print.c: Include predict.h.
4065 (dump_generic_node): Dump predictor.
4066 * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
4067 * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
4068 * gimple-low.c (lower_stmt): Likewise.
4069 * expr.c (expand_expr_real): Likewise.
4070 * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
4072 (build_predict_expr, build_predict_expr): New.
4073 * predict.h (predictor_name, build_predict_expr): Update.
4074 * c-typeck.c (c_finish_bc_stmt): Add prediction.
4075 * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
4076 * predict.def (PRED_CONTINUE): Update hitrate.
4077 * tree.def (PREDICT_EXPR): Define.
4078 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
4079 do not handle BIND_EXPR.
4080 * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
4081 * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
4082 * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
4085 2008-03-18 Michael Matz <matz@suse.de>
4087 * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
4089 2008-03-18 Richard Guenther <rguenther@suse.de>
4091 * tree-gimple.h (is_gimple_invariant_address): Declare.
4092 (is_gimple_constant): Likewise.
4093 * tree-gimple.c (is_gimple_constant): New function.
4094 (is_gimple_invariant_address): Likewise.
4095 (is_gimple_min_invariant): Implement in terms of is_gimple_constant
4096 and is_gimple_invariant_address.
4097 * tree-ssa-loop-niter.c (expand_simple_operations): Revert
4099 * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
4100 an addressable base.
4102 2008-03-18 Jakub Jelinek <jakub@redhat.com>
4105 * gimplify.c (gimplify_expr): Gimplify second operand of
4108 2008-03-17 Richard Guenther <rguenther@suse.de>
4110 PR tree-optimization/19637
4111 * fold-const.c (fold_unary): Remove restrictions of removing
4112 intermediate pointer-conversions (P2)(P1)P0.
4113 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
4114 conversion to void pointer.
4115 (get_maxval_strlen): Handle addresses of the form &(*p)[0].
4117 2008-03-16 James E. Wilson <wilson@tuliptree.org>
4120 * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
4121 emulated thread local variables.
4123 2008-03-16 Richard Guenther <rguenther@suse.de>
4126 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
4127 expand TREE_INVARIANT operations that are not gimple invariant.
4129 2008-03-16 Hans-Peter Nilsson <hp@axis.com>
4131 * doc/extend.texi (Alignment): Say that the ABI controls
4132 the __alignof__ for non-strict-alignment targets rather
4133 than being a recommendation.
4135 2008-03-15 Paul Brook <paul@codesourcery.com>
4137 * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
4139 (arm_output_fn_unwind): Mark functions that can not be unwound.
4141 2008-03-15 Paul Brook <paul@codesourcery.com>
4143 * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
4144 extension instructions.
4146 2008-03-15 Richard Guenther <rguenther@suse.de>
4148 * tree-ssa-ccp.c (ccp_fold): Also read from constant values
4149 and fold constant aggregate refs.
4150 (fold_const_aggregate_ref): Handle string constants
4151 and constructors in ARRAY_REFs. Handle INDIRECT_REF.
4152 (evaluate_stmt): Simplify now that ccp_fold folds constant
4155 2008-03-15 Paul Brook <paul@codesourcery.com>
4157 * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
4158 (extzv): Use gen_extzv_t2.
4159 (insv_t2, insv_zero, extv, extzv_t2): New patterns.
4161 2008-03-15 Richard Guenther <rguenther@suse.de>
4163 * tree-ssa-ccp.c (get_symbol_constant_value): Export.
4164 (fold_const_aggregate_ref): Likewise.
4165 (get_value): Return NULL if we don't have any values.
4166 (ccp_finalize): Set const_val to NULL after freeing it.
4167 * tree-flow.h (get_symbol_constant_value): Declare.
4168 (fold_const_aggregate_ref): Likewise.
4169 * tree-ssa-sccvn.c (try_to_simplify): Use them.
4171 2008-03-15 Richard Guenther <rguenther@suse.de>
4174 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
4175 to not produce negative array indices if not allowed. Add
4176 parameter to indicate that.
4177 (maybe_fold_offset_to_component_ref): Allow negative array
4178 indices only for the first member of a structure.
4179 (maybe_fold_offset_to_reference): Allow negative array indices.
4180 (maybe_fold_stmt_addition): Likewise.
4182 2008-03-15 Bjoern Haase <bjoern.m.haase@web.de>
4183 Anatoly Sokolov <aesok@post.ru>
4185 * config/avr/avr.c (avr_arch_types): Add avr6 entry.
4186 (avr_arch): Add ARCH_AVR6.
4187 (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
4188 (initial_elimination_offset): Initialize and use 'avr_pc_size'
4189 instead of fixed value 2.
4190 (print_operand_address): Use gs() asm specifier instead of pm().
4191 (avr_assemble_integer): (Ditto.).
4192 (avr_output_addr_vec_elt): (Ditto.).
4193 (print_operand): Handle "!" code.
4194 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add
4195 __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
4196 (AVR_HAVE_EIJMP_EICALL): Define.
4197 (AVR_3_BYTE_PC): Redefine.
4198 (AVR_2_BYTE_PC): (Ditto.).
4199 (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
4200 (LINK_SPEC): Add atmega2560 and atmega2561.
4201 (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561
4203 * config/avr/avr.md (call_insn): Use eicall instead of icall
4204 for 3 byte PC devices.
4205 (call_value_insn): (Ditto.).
4206 (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
4207 (indirect_jump): Use only for for 2 byte PC devices.
4208 (*tablejump): (Ditto.).
4209 (*indirect_jump_avr6): Add insn.
4210 (*tablejump_rjmp): Don't use for 3 byte PC devices.
4211 * config/avr/libgcc.S (__prologue_saves__): Use eijmp
4212 instead of ijmp for 3 byte PC devices.
4213 (__tablejump2__): (Ditto.).
4214 * config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
4215 (MULITLIB_DIRNAMES): (Ditto.).
4216 (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
4218 2008-03-15 Uros Bizjak <ubizjak@gmail.com>
4220 * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
4221 "sse2_umulsidi3". Use V1DI mode for operand 0.
4222 ("mmx_psadbw"): Use V1DI mode for operand 0.
4223 * config/i386/i386-modes.def (V1SI): New vector mode.
4224 * config/i386/i386.c (struct builtin_description)
4225 [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
4226 (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
4227 (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
4228 (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
4229 v1di_ftype_v8qi_v8qi type.
4230 [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
4232 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
4233 __builtin_ia32_pmuludq]: Fix the mode of return value.
4235 2008-03-15 Richard Guenther <rguenther@suse.de>
4238 * tree-ssa-pre.c (bitmap_find_leader): Handle expression
4241 2008-03-14 Bob Wilson <bob.wilson@acm.org>
4243 * doc/invoke.texi (Option Summary, Xtensa Options): Document
4244 -mserialize-volatile and -mno-serialize-volatile Xtensa options.
4245 * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
4246 unless TARGET_SERIALIZE_VOLATILE is enabled.
4247 * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
4248 * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
4249 * config/xtensa/xtensa.opt (mserialize_volatile): New option.
4251 2008-03-14 Richard Guenther <rguenther@suse.de>
4253 PR tree-optimization/34172
4254 * tree-flow.h (refs_may_alias_p): Declare.
4255 (get_single_def_stmt): Likewise.
4256 (get_single_def_stmt_from_phi): Likewise.
4257 (get_single_def_stmt_with_phi): Likewise.
4258 * tree-dfa.c (refs_may_alias_p): New function.
4259 (get_single_def_stmt): Likewise.
4260 (get_single_def_stmt_from_phi): Likewise.
4261 (get_single_def_stmt_with_phi): Likewise.
4262 * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
4263 (vn_reference_lookup_1): New helper function.
4264 (vn_reference_lookup): Walk the virtual use-def chain to
4265 continue searching for a match if the def does not alias the
4266 reference we are looking for.
4268 2008-03-14 David Edelsohn <edelsohn@gnu.org>
4270 * doc/install.texi (Binaries): Remove UCLA archive. Add HVCC
4271 archive and Perzl. Update The Written Word listing.
4273 2008-03-14 Richard Guenther <rguenther@suse.de>
4275 PR tree-optimization/34043
4276 PR tree-optimization/33989
4277 * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
4279 (bitmap_find_leader): Use extra argument to verify dominance
4280 relationship inside a basic-block.
4281 (can_PRE_operation): Add VIEW_CONVERT_EXPR.
4282 (find_leader_in_sets): Adjust.
4283 (create_component_ref_by_pieces): Take extra argument for
4284 dominance check, handle lookup failures.
4285 (find_or_generate_expression): Likewise.
4286 (create_expression_by_pieces): Likewise.
4287 (insert_into_preds_of_block): Adjust.
4288 (create_value_expr_from): If asked for, verify all operands
4289 are in the blocks AVAIL_OUT set.
4290 (make_values_for_stmt): Check for SSA_NAMEs that are life
4291 over an abnormal edge.
4292 (compute_avail): Remove such check.
4293 (do_SCCVN_insertion): New function.
4294 (eliminate): If we do not find a leader suitable for replacement
4295 insert a replacement expression from SCCVN if available.
4296 * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
4297 (struct vn_ssa_aux): Add needs_insertion flag.
4298 * tree-ssa-sccvn.c (may_insert): New global flag.
4299 (copy_reference_ops_from_ref): Value-number union member access
4300 based on its size, not type and member if insertion is allowed.
4301 (visit_reference_op_load): For a weak match from union type
4302 punning lookup a view-converted value and insert a SSA_NAME
4303 for that value if that is not found.
4304 (visit_use): Make dumps shorter. Do not disallow value numbering
4305 SSA_NAMEs that are life over an abnormal edge to constants.
4306 (free_scc_vn): Release inserted SSA_NAMEs.
4307 (run_scc_vn): New flag to specify whether insertion is allowed.
4308 Process SSA_NAMEs in forward order.
4309 * tree-ssa-loop-im.c (for_each_index): Handle invariant
4310 ADDR_EXPRs inside VIEW_CONVERT_EXPR.
4311 * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
4312 pointer type to/from integral types that do not change the
4313 precision to regular conversions.
4315 2008-03-13 Uros Bizjak <ubizjak@gmail.com>
4317 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
4318 __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
4319 __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
4320 __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
4321 input arguments and the mode of return value. Built-in functions
4322 that operate on whole 64-bit MMX register now use V1DI mode.
4324 2008-03-13 Alon Dayan <alond@il.ibm.com>
4325 Olga Golovanevsky <olga@il.ibm.com>
4327 PR tree-optimization/35041
4328 * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
4329 to locate the right position in a statement.
4331 2008-03-13 Uros Bizjak <ubizjak@gmail.com>
4335 * config/i386/xmmintrin.h: Change all static inline functions to
4336 extern inline and add __gnu_inline__ attribute.
4337 * config/i386/bmintrin.h: Ditto.
4338 * config/i386/smmintrin.h: Ditto.
4339 * config/i386/tmmintrin.h: Ditto.
4340 * config/i386/mmintrin-common.h: Ditto.
4341 * config/i386/ammintrin.h: Ditto.
4342 * config/i386/emmintrin.h: Ditto.
4343 * config/i386/pmmintrin.h: Ditto.
4344 * config/i386/mmintrin.h: Ditto.
4345 * config/i386/mm3dnow.h: Ditto.
4347 2008-03-13 Jakub Jelinek <jakub@redhat.com>
4350 * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
4351 (lower_omp_2): New function.
4352 (lower_omp_1, lower_omp): Rewritten.
4354 2008-03-13 Danny Smith <dannysmith@users.sourceforge.net>
4357 * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
4358 with the phrase "Microsoft Windows compilers".
4359 (Push/Pop Macro Pragmas): New subsection. Document
4360 #pragma push_macro and pragma pop_macro.
4362 2008-03-12 Paul Brook <paul@codesourcery.com>
4364 * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
4366 2008-03-12 Paul Brook <paul@codesourcery.com>
4368 * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
4369 (thumb2_alusi3_short): Exclude PLUS and MINUS.
4370 (thumb2_addsi_shortim): Rename ...
4371 (thumb2_addsi_short): ... to this. Allow register operands.
4372 (thumb2_subsi_short): New pattern.
4373 (thumb2_one_cmplsi2_short,
4374 thumb2_negsi2_short): New patterns and peepholes.
4376 2008-03-12 Paul Brook <paul@codesourcery.com>
4378 * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
4380 2008-03-12 Uros Bizjak <ubizjak@gmail.com>
4382 * config/i386/i386.md (int_cond): New code iterator.
4384 ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
4385 sge, sgeu, sle and sleu expanders usign int_cond code iterator.
4386 ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
4387 sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
4388 ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
4389 bge, bgeu, ble and bleu expanders usign int_cond code iterator.
4390 ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
4391 bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
4393 2008-03-12 Paul Brook <paul@codesourcery.com>
4395 * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
4396 instead of {arm,thumb}_compute_save_reg_mask.
4397 (output_return_instruction): Ditto.
4398 (thumb_unexpanded_epilogue): Ditto.
4399 (thumb1_expand_prologue): Ditto.
4400 (thumb1_output_function_prologue): Ditto.
4401 (arm_set_return_address): Ditto.
4402 (thumb_set_return_address): Ditto.
4403 (arm_get_frame_offsets): Set offsets->saved_regs_mask. Push extra
4404 regs to achieve stack alignment.
4405 (thumb1_compute_save_reg_mask): Fix compiler warning.
4406 (arm_output_epilogue): Use offsets->saved_regs_mask.
4407 Adjust stack pointer by poping call clobered registers.
4408 (arm_expand_prologue): Use offsets->saved_regs_mask.
4409 Adjust stack pointer by pushing extra registers.
4410 * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
4412 2008-03-12 Paolo Bonzini <bonzini@gnu.org>
4415 * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
4416 conversion to the operands of a multiplication.
4418 2008-03-12 Richard Guenther <rguenther@suse.de>
4420 * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
4421 (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
4422 * timevar.def (TV_TREE_PHIPROP): Add.
4423 * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
4424 pass description. Use TV_TREE_PHIPROP.
4425 * tree-ssa-forwprop.c: Remove phiprop code.
4427 2008-03-12 Jakub Jelinek <jakub@redhat.com>
4430 * omp-low.c (maybe_lookup_decl): Constify first argument.
4431 (use_pointer_for_field): Change last argument from bool to
4432 omp_context *. Disallow shared copy-in/out in nested
4433 parallel if decl is shared in outer parallel too.
4434 (build_outer_var_ref, scan_sharing_clauses,
4435 lower_rec_input_clauses, lower_copyprivate_clauses,
4436 lower_send_clauses, lower_send_shared_vars): Adjust callers.
4438 2008-03-12 Victor Kaplansky <victork@il.ibm.com>
4439 Ira Rosen <irar@il.ibm.com>
4441 * tree-vectorizer.c (free_stmt_vec_info): New function.
4442 (destroy_loop_vec_info): Move code to free_stmt_vec_info().
4443 Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
4444 * tree-vectorizer.h (free_stmt_vec_info): Declare.
4445 * tree-vect-transform.c (vectorizable_conversion): Free
4446 vec_oprnds0 if it was allocated.
4447 (vect_permute_store_chain): Remove unused VECs.
4448 (vectorizable_store): Free VECs that are allocated in the..
4450 (vect_transform_strided_load, vectorizable_load): Likewise.
4451 (vect_remove_stores): Simplify the code.
4452 (vect_transform_loop): Move code to vect_remove_stores().
4453 Call vect_remove_stores() and free_stmt_vec_info().
4455 2008-03-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4457 * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
4458 TARGET_HPUX. Revise comment.
4459 (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
4460 * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
4461 Use sr4 variant of `be' instruction when not generating PIC code.
4462 (attr_length_call): Adjust for above change.
4464 2008-03-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
4466 * ipa-reference.c (static_execute): Remove module_statics_const and
4467 associated setting code.
4469 2008-03-11 Uros Bizjak <ubizjak@gmail.com>
4472 * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
4473 predicate for operand 1.
4474 (paritysi2_cmp): Use register_operand predicate for operand 2.
4475 Use earlyclobber modifier for operand 1. Remove support for
4477 (paritydi2_cmp): Use register_operand predicate for operand 3.
4478 Use earlyclobber modifier for operand 1. Remove support for
4481 2008-03-11 Paul Brook <paul@codesourcery.com>
4482 Vladimir Prus <vladimir@codesourcery.com>
4484 * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
4485 (arm_compute_save_reg0_reg12_mask): Always
4486 check if register 11 must be saved. Always safe hard frame pointer
4487 when frame_pointer_needeed.
4488 (arm_compute_save_reg_mask): Save IP and PC
4489 only with apcs frames.
4490 (arm_output_epilogue): Adjust Thumb2 codepath to
4491 be also invoked and work for ARM non-apcs frames.
4492 (arm_expand_prologue): Don't bother saving IP
4493 for non-apcs frame, since it's not clobbered by
4494 prologue code. Implement non-apcs frame
4497 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
4499 PR rtl-optimization/35281
4500 * expr.c (convert_move): Use a new pseudo for the intermediate
4501 from_mode->word_mode result.
4503 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
4505 * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
4506 * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
4507 * toplev.c (compile_file): Don't call it.
4509 2008-03-11 Uros Bizjak <ubizjak@gmail.com>
4512 * expr.c (store_expr): Call emit_block_move if the mode
4513 of "temp" RTX is BLKmode.
4515 2008-03-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
4516 Richard Guenther <rguenther@suse.de>
4518 PR tree-optimization/31358
4519 * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
4520 the step with a NULL_TREE.
4521 * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
4522 to sizetype if type is a pointer type.
4523 (add_candidate_1): Don't convert the base and step to
4524 the generic type if the orginal type is a pointer type.
4525 (add_iv_value_candidates): Use sizetype for the step
4526 if type is a pointer type.
4527 (cand_value_at): Likewise.
4528 * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
4530 * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
4531 Don't convert the tem affine to the type.
4532 (add_elt_to_tree): Use sizetype for the step if a pointer.
4533 Use POINTER_PLUS_EXPR for pointers.
4534 (aff_combination_to_tree): Use sizetype for the step if a
4537 2008-03-10 Vladimir Makarov <vmakarov@redhat.com>
4539 * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
4540 Remove commutativity hint.
4542 2008-03-10 Jakub Jelinek <jakub@redhat.com>
4546 * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
4547 errorneous type. Check that v is a VAR_DECL.
4550 * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
4552 2008-03-10 H.J. Lu <hongjiu.lu@intel.com>
4554 PR tree-optimization/35494
4555 * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
4556 may be overriden at link and run time.
4558 2008-03-10 Richard Guenther <rguenther@suse.de>
4560 PR tree-optimization/34677
4561 * tree-ssa-pre.c (modify_expr_node_pool): Remove.
4562 (poolify_tree): Likewise.
4563 (modify_expr_template): Likewise.
4564 (poolify_modify_stmt): Likewise.
4565 (insert_fake_stores): Handle all component-ref style stores
4566 in addition to INDIRECT_REF. Also handle complex types.
4567 Do not poolify the inserted load.
4568 (realify_fake_stores): Do not rebuild the tree but only
4569 make it a SSA_NAME copy.
4570 (init_pre): Remove initialzation of modify_expr_template.
4571 Do not allocate modify_expr_node_pool.
4572 (fini_pre): Do not free modify_expr_node_pool.
4574 2008-03-10 Paul Brook <paul@codesourcery.com>
4576 * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
4579 2008-03-10 Paul Brook <paul@codesourcery.com>
4580 Mark Shinwell <shinwell@codesourcery.com>
4582 * config/arm/cortex-r4.md: New.
4583 * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
4585 * config/arm/arm.md: Include cortex-r4.md.
4586 (insn): Add smmls, sdiv and udiv values.
4587 (generic_sched): Don't use generic scheduling for Cortex-R4.
4588 (arm_issue_rate): New function.
4589 (TARGET_SCHED_ISSUE_RATE): Define.
4591 2008-03-10 Sebastian Pop <sebastian.pop@amd.com>
4593 * doc/invoke.texi (-ftree-loop-distribution): Add an example.
4595 2008-03-10 Richard Guenther <rguenther@suse.de>
4597 * tree-ssa-pre.c (get_sccvn_value): Simplify.
4598 (compute_avail): Do not add stmt uses to AVAIL_OUT.
4600 2008-03-10 Paolo Bonzini <bonzini@gnu.org>
4602 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
4603 Set default to true.
4605 2008-03-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4607 * c.opt (Wsynth): Deprecate.
4608 * doc/invoke.texi (Option Summary, Warning Options): Document
4609 -Wno-format-contains-nul.
4611 2008-03-09 Uros Bizjak <ubizjak@gmail.com>
4614 * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
4615 ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
4617 2008-03-09 Ira Rosen <irar@il.ibm.com>
4619 * config/rs6000/rs6000.c (builtin_description): Rename vector
4620 left shift operations.
4621 * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
4622 (altivec_vsl<VI_char>): Rename to ...
4623 (ashl<mode>3): ... new name.
4624 (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
4626 (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
4628 2008-03-08 Richard Guenther <rguenther@suse.de>
4630 * coverage.h (tree_coverage_counter_addr): Declare.
4631 * coverage.c (tree_coverage_counter_addr): New function.
4632 * tree-profile.c (tree_gen_edge_profiler): Unshare counter
4634 (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
4635 (tree_gen_one_value_profiler): Likewise.
4636 (tree_gen_ic_profiler): Likewise.
4637 (tree_gen_average_profiler): Likewise.
4638 (tree_gen_ior_profiler): Likewise.
4640 2008-03-08 Richard Guenther <rguenther@suse.de>
4642 * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
4643 (vn_binary_op_insert): Likewise.
4644 (vn_unary_op_lookup): Likewise.
4645 (vn_unary_op_insert): Likewise.
4646 (vn_nary_op_lookup): Declare.
4647 (vn_nary_op_insert): Likewise.
4648 * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
4649 and binary hashes, use a single obstack for unary_op_pool
4651 (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
4652 a single struct vn_nary_op_s. Store tree code length and
4653 a variable number of operands.
4654 (struct vn_reference_op_struct): Remove unused op2.
4655 (vn_reference_op_eq): Do not compare op2.
4656 (vn_reference_op_compute_hash): Do not compute hash of op2.
4657 (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
4658 (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
4659 with vn_nary_op_compute_hash.
4660 (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
4661 (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
4663 (vn_unary_op_insert, vn_binary_op_insert): Replace with
4665 (visit_unary_op): Call nary functions.
4666 (visit_binary_op): Likewise.
4667 (process_scc): Adjust for struct vn_tables_s changes.
4668 (allocate_vn_table): Likewise.
4669 (free_vn_table): Likewise.
4670 * tree-vn.c (vn_add): Call nary functions.
4671 (vn_lookup): Likewise.
4673 2008-03-08 Jakub Jelinek <jakub@redhat.com>
4676 * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
4677 wdst back after sync_compare_and_swapqhi_internal.
4679 2008-03-08 Uros Bizjak <ubizjak@gmail.com>
4682 * config/i386/i386-modes.def (V1DI): New vector mode.
4683 * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
4684 * config/i386/mmx.md (MMXMODEI8): New mode iterator.
4685 (MMXMODE248): Ditto.
4686 (MMXMODE): Add V1DI mode.
4687 (mmxvecsize): Change DI mode to V1DI mode.
4688 ("mov<mode>): Use MMXMODEI8 mode iterator.
4689 ("*mov<mode>_internal_rex64"): Ditto.
4690 ("*mov<mode>_internal"): Ditto.
4691 ("mmx_add<mode>3"): Ditto. Handle V1DImode for TARGET_SSE2.
4692 ("mmx_sub<mode>3"): Ditto.
4693 ("mmx_adddi3"): Remove insn pattern.
4694 ("mmx_subdi3"): Ditto.
4695 ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
4696 ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
4697 ("mmx_ashl<mode>3"): Ditto.
4698 ("mmx_lshrdi3"): Remove insn pattern.
4699 ("mmx_ashldi3"): Ditto.
4700 * config/i386/i386.c (classify_argument): Handle V1DImode.
4701 (function_arg_advance_32): Ditto.
4702 (function_arg_32): Ditto.
4703 (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
4704 mmx_addv1di3 insn pattern.
4705 [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
4706 [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
4707 IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
4708 IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
4709 Remove definitions of built-in functions.
4710 (V1DI_type_node): New node.
4711 (v1di_ftype_v1di_int): Ditto.
4712 (v1di_ftype_v1di_v1di): Ditto.
4713 (v2si_ftype_v2si_si): Ditto.
4714 (v4hi_ftype_v4hi_di): Remove node.
4715 (v2si_ftype_v2si_di): Ditto.
4716 (ix86_init_mmx_sse_builtins): Handle V1DImode.
4717 (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
4718 Redefine builtins using def_builtin_const with *_ftype_*_int node.
4719 (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
4720 Add new builtins using def_builtin_const.
4721 (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
4722 IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
4723 IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
4724 * config/i386/mmintrin.h (__v1di): New typedef.
4725 (_mm_add_si64): Cast arguments to __v1di type.
4726 (_mm_sub_si64): Ditto.
4727 (_mm_sll_pi16): Cast __count to __v4hi type.
4728 (_mm_sll_pi32): Cast __count to __v2si type.
4729 (_mm_sll_si64): Cast arguments to __v1di type.
4730 (_mm_srl_pi16): Cast __count to __v4hi type.
4731 (_mm_srl_pi32): Cast __count to __v2si type.
4732 (_mm_srl_si64): Cast arguments to __v1di type.
4733 (_mm_sra_pi16): Cast __count to __v4hi type.
4734 (_mm_sra_pi32): Cast __count to __v2si type.
4735 (_mm_slli_pi16): Use __builtin_ia32_psllwi.
4736 (_mm_slli_pi32): Use __builtin_ia32_pslldi.
4737 (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
4738 (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
4739 (_mm_srli_pi32): Use __builtin_ia32_psrldi.
4740 (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
4741 (_mm_srai_pi16): Use __builtin_ia32_psrawi.
4742 (_mm_srai_pi32): Use __builtin_ia32_psradi.
4743 * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
4744 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
4745 __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
4746 __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
4748 2008-03-07 Joseph Myers <joseph@codesourcery.com>
4750 * doc/include/texinfo.tex: Update to version 2008-03-07.10.
4752 2008-03-07 Peter Bergner <bergner@vnet.ibm.com>
4755 * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
4756 reg+const addressing for Altivec modes. Don't generate reg+reg
4757 addressing for TFmode or TDmode quantities.
4759 2008-03-07 Paolo Bonzini <bonzini@gnu.org>
4761 * c-common.c (vector_types_convertible_p): Call langhook
4762 instead of comptypes.
4764 2008-03-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
4767 * tree-ssa-ccp.c (get_symbol_constant_value): Handle
4768 integral and scalar float variables which have a
4771 2008-03-06 Nathan Froyd <froydnj@codesourcery.com>
4773 * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
4774 dwarf_register_span hook when emitting unwind information for
4775 register-to-memory saves.
4776 * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
4777 (rs6000_frame_related): Remove call to spe_synthesize_frame.
4779 2008-03-06 Jakub Jelinek <jakub@redhat.com>
4781 * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
4782 for the same VAR_DECL.
4784 2008-03-06 Tom Tromey <tromey@redhat.com>
4787 * doc/standards.texi (Standards): Don't mention treelang.
4788 * doc/invoke.texi (Overall Options): Don't mention treelang.
4789 * doc/install.texi (Prerequisites): Don't mention bison or
4791 (Configuration): Don't mention treelang.
4792 (Building): Likewise.
4793 * doc/frontends.texi (G++ and GCC): Don't mention treelang.
4795 2008-03-06 Paolo Bonzini <bonzini@gnu.org>
4797 * simplify-rtx.c (simplify_subreg): Remove useless shifts from
4798 word-extractions out of a multi-word object.
4800 2008-03-06 Richard Guenther <rguenther@suse.de>
4802 * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
4803 * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
4804 result type and precision.
4805 * expr.c (get_inner_reference): Set unsignedp based on the result
4806 type of BIT_FIELD_REF.
4807 * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
4808 * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
4809 (try_instantiate_multiple_fields): Likewise. Use the correct type
4811 (sra_build_assignment): Likewise.
4812 (sra_build_elt_assignment): Likewise.
4813 (sra_explode_bitfield_assignment): Likewise.
4814 * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
4815 * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
4816 set BIT_FIELD_REF_UNSIGNED.
4817 (vectorizable_load): Likewise.
4819 2008-03-06 Andreas Krebbel <krebbel1@de.ibm.com>
4821 * cse.c (cse_extended_basic_block): Invalidate artificial defs
4824 2008-03-06 Richard Guenther <rguenther@suse.de>
4826 * alias.c (struct alias_set_entry): Move has_zero_child field
4827 to pack with alias_set.
4829 2008-03-05 H.J. Lu <hongjiu.lu@intel.com>
4831 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
4834 2008-03-05 Ian Lance Taylor <iant@google.com>
4836 * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
4838 2008-03-05 Kenneth Zadeck <zadeck@naturalbridge.com>
4840 * fwprop.c (update_df): Support width and offset parameters of
4842 * ra-conflict.c (mark_reg_store, clear_reg_in_live,
4843 global_conflicts): Change DF_REF_EXTRACT to either
4844 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
4845 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
4846 * df-scan.c (df_ref_record, df_defs_record,
4847 df_ref_create_structure, df_def_record_1, df_uses_record,
4848 df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
4849 df_bb_refs_collect, df_entry_block_defs_collect,
4850 df_exit_block_uses_collect): Support new width and offset fields.
4851 (ref_extract_pool): New storage pool.
4852 (df_free_ref): New function.
4853 (df_reg_chain_unlink, df_free_collection_rec,
4854 df_sort_and_compress_refs): Call df_free_ref.
4855 (df_ref_equal_p, df_ref_compare): Compare offset and width fields
4857 (df_ref_create_structure): Allocate df_ref_extract if offset and
4858 width fields are used.
4859 (df_def_record_1): Get offset and width from ZERO_EXTRACT.
4860 (df_uses_record): Get offset and width from ZERO_EXTRACT
4862 * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
4863 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
4864 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
4865 * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
4866 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
4867 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
4868 (df_ref_extract): New structure.
4869 (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
4870 (df_ref_create): Add width and offset parameters.
4872 2008-03-05 Richard Guenther <rguenther@suse.de>
4874 * tree-ssa-structalias.c (get_constraint_for_component_ref):
4875 Use ranges_overlap_p.
4876 (offset_overlaps_with_access): Rename
4877 to ranges_overlap_p and move ...
4878 * tree-flow-inline.h (ranges_overlap_p): ... here.
4880 * tree.h (get_inner_reference, handled_component_p): Update
4883 * tree.h (record_component_aliases, get_alias_set,
4884 alias_sets_conflict_p, alias_sets_must_conflict_p,
4885 objects_must_conflict_p): Move declarations ...
4886 * alias.h (record_component_aliases, get_alias_set,
4887 alias_sets_conflict_p, alias_sets_must_conflict_p,
4888 objects_must_conflict_p): ... here.
4889 Include coretypes.h.
4890 * Makefile.in (ALIAS_H): Add coretypes.h dependency.
4892 2008-03-05 Aldy Hernandez <aldyh@redhat.com>
4894 * cfg.c: Include tree-flow.h.
4895 (remove_edge_raw): Call redirect_edge_var_map_clear.
4896 (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
4897 * tree-flow-inline.h (redirect_edge_var_map_def): New.
4898 (redirect_edge_var_map_result): New.
4899 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
4900 PENDING_STMT use with redirect_edge_var_map_*.
4901 * tree-ssa.c (edge_var_maps): New definition.
4902 (redirect_edge_var_map_add): New.
4903 (redirect_edge_var_map_clear): New.
4904 (redirect_edge_var_map_dup): New.
4905 (redirect_edge_var_map_vector): New.
4906 (redirect_edge_var_map_destroy): New.
4907 (ssa_redirect_edge): Replace PENDING_STMT use with
4908 redirect_edge_var_map_*.
4909 (flush_pending_stmts): Same.
4910 (delete_tree_ssa): Destroy edge var map.
4911 * tree-flow.h (struct _edge_var_map): New.
4912 Define edge_var_map vector type.
4913 Declare redirect_edge_var_map_* prototypes.
4914 * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
4915 * tree-cfg.c (reinstall_phi_args): Replace
4916 PENDING_STMT use with redirect_edge_var_map_*.
4918 2008-03-05 Richard Guenther <rguenther@suse.de>
4920 PR tree-optimization/35472
4921 * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
4922 whose single use_stmt has a overlapping set of loaded and
4923 stored symbols as that use_stmt might be a noop assignment then.
4925 2008-03-05 Joel Sherrill <joel.sherrill@oarcorp.com>
4927 * gthr-rtems.h: Implement __gthread_mutex_destroy.
4929 2008-03-05 Richard Guenther <rguenther@suse.de>
4932 * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
4933 should be constants.
4934 * tree-cfg.c (verify_expr): Verify it.
4935 * fold-const.c (fold_truthop): Remove code generating
4936 BIT_FIELD_REFs of structure bases.
4937 (fold_binary): Likewise.
4938 (fold_ternary): Position and size of BIT_FIELD_REFs are
4939 always host integers.
4940 (make_bit_field_ref): Remove.
4941 (optimize_bit_field_compare): Remove.
4942 (all_ones_mask_p): Remove.
4944 2008-03-05 Gabor Loki <loki@gcc.gnu.org>
4947 * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
4948 (split_block_and_df_analyze): New. Split basic block and rebuild
4950 (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
4952 (split_pattern_seq): Likewise.
4953 (erase_matching_seqs): Likewise.
4954 (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
4956 2008-03-04 Geoff Keating <geoffk@apple.com>
4958 * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
4959 declaration and code.
4960 (tree_invalid_nonnegative_warnv_p): Likewise.
4962 2008-03-05 Serge Belyshev <belyshev@depni.sinp.msu.ru>
4964 * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
4965 examples. Truncate option-names then causing overfull hbox.
4967 2008-03-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4970 * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
4972 * configure: Rebuilt.
4974 2008-03-04 Rafael Espindola <espindola@google.com>
4976 * fold-const.c (tree_simple_nonnegative_warnv_p): New.
4977 (tree_unary_nonnegative_warnv_p): New.
4978 (tree_binary_nonnegative_warnv_p): New.
4979 (tree_single_nonnegative_warnv_p): New.
4980 (tree_invalid_nonnegative_warnv_p): New.
4981 (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
4983 2008-03-04 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4986 * opts.c (handle_option): Postpone 'unknown option' errors only for
4989 2008-03-04 H.J. Lu <hongjiu.lu@intel.com>
4992 * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
4995 2008-03-04 Rafael Espindola <espindola@google.com>
4997 * fold-const.c (tree_unary_nonzero_warnv_p): New.
4998 (tree_binary_nonzero_warnv_p): New.
4999 (tree_single_nonzero_warnv_p): New.
5000 (tree_expr_nonzero_warnv_p): Redefine using the new functions.
5002 2008-03-04 Uros Bizjak <ubizjak@gmail.com>
5005 * fold-const.c (fold_cond_expr_with_comparison): Prevent
5006 transformations for modes that have signed zeros.
5007 * ifcvt.c (noce_try_abs): Ditto.
5009 2008-03-04 Joseph Myers <joseph@codesourcery.com>
5011 * config/i386/i386.c (override_options): Force
5012 -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
5014 2008-03-04 Jan Hubicka <jh@suse.cz>
5017 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
5020 2008-03-04 Danny Smith <dannysmith@users.sourceforge.net>
5022 * config/i386/i386.md (allocate_stack_worker_32): Use __chkstk
5023 label to probe the stack.
5025 2008-03-04 Danny Smith <dannysmith@users.sourceforge.net>
5027 * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
5028 (__gthr_win32_mutex_destroy): Declare.
5029 [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
5030 __gthr_win32_mutex_destroy.
5031 * config/i386/gthr-win32.c (__gthr_win32_mutex_destroy): Define.
5033 2008-03-03 Jan Hubicka <jh@suse.cz>
5036 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
5037 aggressive on inlining cold calls.
5039 2008-03-03 Richard Guenther <rguenther@suse.de>
5041 * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
5042 struct copies into the expression table.
5043 (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
5044 (try_to_simplify): Likewise.
5045 * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
5046 integral and pointer arguments which do not change the
5047 precision to NOP_EXPRs.
5048 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
5049 VIEW_CONVERT_EXPR case.
5051 2008-03-02 Sebastian Pop <sebastian.pop@amd.com>
5053 * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
5054 defined in a loop at depth 0 is invariant.
5055 * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
5056 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
5057 be called at loop depth 0.
5059 2008-03-02 Jakub Jelinek <jakub@redhat.com>
5062 * gcc.c (process_command): Update copyright notice dates.
5063 * gcov.c (print_version): Likewise.
5064 * gcov-dump.c (print_version): Likewise.
5065 * mips-tfile.c (main): Likewise.
5066 * mips-tdump.c (main): Likewise.
5068 2008-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5071 * c-common.c (flag_permissive): Delete.
5072 (constant_expression_warnings): Check flags first.
5073 (constant_expression_error): New.
5074 * c-common.h (flag_permissive): Delete.
5075 (constant_expression_error): Declare.
5076 * flags.h (flag_permissive): Declare. Update description.
5077 * diagnostic.c (pedwarn): Update.
5079 * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
5080 (permissive_error_kind): New.
5081 * toplev.c (flag_permissive): Define. Update description.
5082 * toplev.h (permissive_error_kind): Declare.
5083 * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
5084 (pedwarn_c90): Use pedantic_warning_kind.
5085 * c-opts.c (c_common_post_options): flag_permissive does not affect
5086 flag_pedantic_errors.
5088 2008-03-02 Joseph Myers <joseph@codesourcery.com>
5090 * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
5091 __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
5092 __absvsi2, __absvDI2): Use unsigned arithmetic.
5094 2008-03-02 Andi Kleen <ak@suse.de>
5095 Richard Guenther <rguenther@suse.de>
5097 * struct-equiv.c: Remove file.
5098 * cfg_cleanup.c (condjump_equiv_p): Remove.
5099 * Makefile.in (OBJS-common): Remove struct-equiv.o.
5100 (struct-equiv.o): Remove rule.
5101 * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
5102 insns_match_p, struct_equiv_block_eq, struct_equiv_init,
5103 rtx_equiv_p, condjump_equiv_p): Remove prototypes.
5105 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
5107 * ifcvt.c (noce_process_if_block): Try to handle only the then
5108 block if the else block exists but isn't suitable.
5110 2008-03-01 Janne Blomqvist <jb@gcc.gnu.org>
5113 * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
5114 * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
5115 regression from previous patch.
5117 2008-03-01 Janne Blomqvist <jb@gcc.gnu.org>
5120 * gthr.h: Add __gthread_mutex_destroy as a function that must be
5122 * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
5123 * gthr-single.h (__gthread_mutex_destroy): Likewise.
5124 * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
5125 * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
5126 * gthr-nks.h (__gthread_mutex_destroy): Likewise.
5127 * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
5128 * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
5129 (__gthread_mutex_destroy_function): Rename to
5130 __gthread_mutex_destroy.
5131 * gthr-dce.h (__gthread_mutex_destroy): Call
5132 pthread_mutex_destroy.
5133 * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
5134 * gthr-posix.h (__gthread_mutex_destroy): Likewise.
5135 * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
5137 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
5139 * df-scan.c (df_ref_chain_change_bb): Simplify.
5140 (df_insn_change_bb): Add new_bb argument. Simplify. Call
5141 set_block_for_insn if there's any change.
5142 * df.h ((df_insn_change_bb): Fix prototype.
5143 * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
5144 df_insn_change_bb, don't call set_block_for_insn.
5145 * emit-rtl.c (reorder_insns): Likewise.
5146 * haifa-sched.c (move_insn): Likewise.
5148 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
5150 * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
5152 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
5154 * tree-flow-inline.h (next_readonly_imm_use): Return
5155 NULL_USE_OPERAND_P after the end.
5157 2008-03-01 Richard Guenther <rguenther@suse.de>
5159 PR tree-optimization/35411
5160 * tree-sra.c (sra_build_assignment): Split conversion to
5161 final type to a separate statement if we are not assigning
5164 2008-02-29 Francois-Xavier Coudert <coudert@clipper.ens.fr>
5166 * fold-const.c (fold_convertible_p): Correct the logic to follow
5167 that in fold_convert().
5169 2008-02-29 Douglas Gregor <doug.gregor@gmail.com>
5172 * tree-inline.c (build_duplicate_type): When we make a
5173 duplicate type, make it unique in the canonical types system.
5175 2008-02-29 Tom Tromey <tromey@redhat.com>
5177 * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
5178 input_file_stack_history, input_file_stack_restored): Remove.
5179 (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
5180 * input.h (struct file_stack): Remove.
5181 (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
5182 (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
5184 * diagnostic.h (struct diagnostic_context) <last_module>: Change
5186 (diagnostic_last_module_changed): Add 'map' argument.
5187 (diagnostic_set_last_function): Likewise.
5188 * diagnostic.c (undiagnostic_report_current_module): Iterate using
5189 line map, not input_file_stack.
5190 * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
5192 2008-02-29 Paul Brook <paul@codesourcery.com>
5194 * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
5196 2008-02-29 Paul Brook <paul@codesourcery.com>
5198 * config/arm/ieee754-df.S (muldf3): Use RET macros.
5200 2008-02-29 Richard Guenther <rguenther@suse.de>
5202 * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
5204 * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
5205 value for comparing for a store match.
5206 (simplify_unary_expression): Do nothing for SSA_NAMEs.
5207 (try_to_simplify): Do not do a full-blown reference lookup.
5209 2008-02-29 Kaz Kojima <kkojima@gcc.gnu.org>
5211 * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
5212 (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
5214 * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
5216 2008-02-29 Sebastian Pop <sebastian.pop@amd.com>
5218 * tree-loop-linear.c (try_interchange_loops): Compare memory access
5219 strides against cache sizes.
5221 2008-02-29 Kaz Kojima <kkojima@gcc.gnu.org>
5223 * config/sh/sh.c (sh_secondary_reload): Handle loading a float
5226 2008-02-28 Richard Sandiford <rsandifo@nildram.co.uk>
5228 * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
5229 of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
5230 is smaller than the original promoted value.
5231 (simplify_subreg): If OP is a SUBREG, try to preserve its
5232 SUBREG_PROMOTED_VAR_P information.
5234 2008-02-28 Steven Bosscher <stevenb.gcc@gmail.com>
5236 * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
5237 (VN_INFO_GET): Allocate new objects on the obstack.
5238 (init_scc_vn): Initialize the obstack. Use XDELETE instead of free
5239 for rpo_numbers_temp, for consistency.
5240 (free_scc_vn): Free the obstack.
5242 2008-02-28 Sebastian Pop <sebastian.pop@amd.com>
5244 * doc/invoke.texi: Document -ftree-loop-distribution.
5245 * tree-loop-distribution.c: New.
5246 * tree-pass.h (pass_loop_distribution): New.
5247 * graphds.h (struct graph): Add htab_t indices.
5248 * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
5249 * tree-vectorizer.c (rename_variables_in_loop): Extern.
5250 (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
5251 * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
5252 * tree-data-ref.c (debug_data_dependence_relations): New.
5253 (dump_data_dependence_relation): Also print data references.
5254 (free_data_ref): Extern.
5255 (same_access_functions): Moved...
5256 (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
5257 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
5258 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
5259 struct rdg_vertex_info, rdg_vertex_for_stmt): New.
5260 (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
5261 (stmts_from_loop): Skip LABEL_EXPR.
5262 (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
5264 (build_rdg): Initialize rdg->indices htab.
5265 (free_rdg, stores_from_loop, ref_base_address,
5266 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
5267 have_similar_memory_accesses_1, ref_base_address_1,
5268 remove_similar_memory_refs): New.
5269 * tree-data-ref.h: Depend on tree-chrec.h.
5270 (debug_data_dependence_relations, free_data_ref): Declared.
5271 (same_access_functions): ... here.
5272 (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
5274 (struct rdg_vertex): Add has_mem_write and has_mem_reads.
5275 (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
5276 RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
5277 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
5278 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
5279 rdg_vertex_for_stmt): Declared.
5280 (struct rdg_edge): Add level.
5282 (free_rdg, stores_from_loop, remove_similar_memory_refs,
5283 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
5285 (rdg_has_similar_memory_accesses): New.
5286 * tree-vect-analyze.c: Remove unused static decls.
5287 * lambda.h (dependence_level): New.
5288 * common.opt (ftree-loop-distribution): New.
5289 * tree-flow.h (mark_virtual_ops_in_bb,
5290 slpeel_tree_duplicate_loop_to_edge_cfg,
5291 rename_variables_in_loop): Declared.
5292 * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
5293 (OBJS-common): Add tree-loop-distribution.o.
5294 (tree-loop-distribution.o): New rule.
5295 * tree-cfg.c (mark_virtual_ops_in_bb): New.
5296 (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
5297 * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
5299 2008-02-28 Joseph Myers <joseph@codesourcery.com>
5302 * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
5303 other than structures and unions.
5305 2008-02-28 Richard Guenther <rguenther@suse.de>
5308 2008-02-26 Richard Guenther <rguenther@suse.de>
5310 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
5311 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
5312 (lookup_decl_from_uid): Declare.
5313 (remove_decl_from_map): Likewise.
5314 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
5315 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
5316 (decl_for_uid_map): New global hashtable mapping DECL_UID
5318 (init_ttree): Allocate it.
5319 (insert_decl_to_uid_decl_map): New helper function.
5320 (make_node_stat): Insert new decls into the map.
5321 (copy_node_stat): Likewise.
5322 (lookup_decl_from_uid): New function.
5323 (remove_decl_from_map): Likewise.
5324 (print_decl_for_uid_map_statistics): New helper.
5325 (dump_tree_statistics): Call it.
5327 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
5328 (referenced_var_iterator): Adjust.
5329 (FOR_EACH_REFERENCED_VAR): Adjust.
5330 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
5331 (num_referenced_vars): Adjust.
5332 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
5333 (first_referenced_var): Remove.
5334 (end_referenced_vars_p): Likewise.
5335 (next_referenced_var): Likewise.
5336 (referenced_var_iterator_set): New helper function.
5337 * tree-dfa.c (referenced_var_lookup): Adjust.
5338 (referenced_var_check_and_insert): Likewise.
5339 (remove_referenced_var): Likewise.
5340 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
5341 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
5342 (verify_call_clobbering): Likewise.
5343 (verify_memory_partitions): Likewise.
5344 (init_tree_ssa): Allocate bitmap instead of hashtable for
5346 (delete_tree_ssa): Adjust.
5347 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
5348 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
5349 (compute_tag_properties): Likewise.
5350 (set_initial_properties): Likewise.
5351 (find_partition_for): Likewise.
5352 (update_reference_counts): Likewise.
5353 (dump_may_aliases_for): Likewise.
5354 * tree-ssa-operands.c (add_virtual_operand): Likewise.
5355 (add_call_clobber_ops): Likewise.
5356 (add_call_read_ops): Likewise.
5357 (get_asm_expr_operands): Likewise.
5358 * tree-into-ssa.c (dump_decl_set): Likewise.
5359 (update_ssa): Likewise.
5360 * tree-sra.c (scan_function): Likewise.
5361 (decide_instantiations): Likewise.
5362 (scalarize_parms): Likewise.
5363 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
5364 (dsa_named_for): Likewise.
5365 * tree-ssa-structalias.c (update_alias_info): Likewise.
5366 (merge_smts_into): Likewise.
5368 2008-02-27 David Daney <ddaney@avtrex.com>
5371 * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
5372 * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
5373 * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
5374 * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
5375 * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
5377 2008-02-27 Uros Bizjak <ubizjak@gmail.com>
5380 * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
5381 (BUILT_IN_NEXTTOWARD): Remove.
5382 (BUILT_IN_NEXTTOWARDF): Ditto.
5383 * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
5384 alloca/strcpy/strcat. Remove commented-out code. Fix whitespace.
5386 2008-02-27 Tom Tromey <tromey@redhat.com>
5388 * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
5389 DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
5391 2008-02-27 Jan Beulich <jbeulich@novell.com>
5393 * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
5394 update the respective field on newdecl.
5396 2008-02-27 Revital Eres <eres@il.ibm.com>
5398 PR rtl-optimization/34999
5399 * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
5400 crossing edges that ends with a call insn.
5401 (fix_up_fall_thru_edges): Handle crossing edges that ends with a
5402 call insn and clear the EDGE_CROSSING flag of the crossing edge
5403 when fixing fallthru edges.
5405 2008-02-27 Richard Guenther <rguenther@suse.de>
5408 * fold-const.c (fold_unary): Return the correct argument,
5409 converted to the result type.
5411 2008-02-27 Richard Guenther <rguenther@suse.de>
5414 * expr.c (expand_expr_real_1): Assert on rotates that operate
5416 * fold-const.c (fold_binary): Use the types precision, not the
5417 bitsize of the mode if folding rotate expressions. Build rotates
5418 only for full modes.
5420 2008-02-27 Jakub Jelinek <jakub@redhat.com>
5422 * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
5424 * c-pragma.c (pragma_ns_name): New typedef.
5425 (registered_pp_pragmas): New variable.
5426 (c_pp_lookup_pragma): New function.
5427 (c_register_pragma_1): If flag_preprocess_only, do nothing
5428 for non-expanded pragmas, for expanded ones push pragma's
5429 namespace and name into registered_pp_pragmas vector.
5430 (c_invoke_pragma_handler): Register OpenMP pragmas even when
5431 flag_preprocess_only, don't register GCC pch_preprocess
5432 pragma if flag_preprocess_only.
5433 * c-opts.c (c_common_init): Call init_pragma even if
5434 flag_preprocess_only.
5435 * c-pragma.c (c_pp_lookup_pragma): New prototype.
5436 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
5437 cpp_register_pragma if flag_preprocess_only.
5439 2008-02-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5442 * c-parser.c (c_parser_translation_unit): Warn for empty
5443 translation unit, not empty source file.
5445 2008-02-26 Paul Brook <paul@codesourcery.com>
5447 * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
5448 operand for Thumb-2.
5449 * config/arm/arm.h (reg_class): Add CORE_REGS.
5450 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
5451 (BASE_REG_CLASS): Use CORE_REGS.
5452 (PREFERRED_RELOAD_CLASS): Add STACK_REG.
5453 (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
5454 (REGNO_OK_FOR_INDEX_P): Exclude SP.
5455 (ARM_REG_OK_FOR_INDEX_P): Always define. Use
5456 ARM_REGNO_OK_FOR_INDEX_P.
5457 (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
5458 * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
5459 arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
5460 (ldm/stm peepholes): Ditto.
5461 * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
5462 * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
5463 * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
5464 * config/arm/constraints.md: Enable "k" constraint on ARM.
5466 2008-02-27 Ben Elliston <bje@au.ibm.com>
5468 * config/rs6000/rs6000.c: Annotate cache line size field in all
5469 instances of struct processor_costs.
5471 2008-02-26 David Edelsohn <edelsohn@gnu.org>
5473 * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
5474 dse2, gcse, if_conversion, if_after_combine, if_after_reload,
5475 jump_bypass): New counters.
5476 * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
5477 * dce.c (gate_ud_dce): Same.
5478 (gate_fast_dce): Same.
5479 * dse.c (gate_dse1): New function.
5480 (gate_dse2): New function.
5481 (gate_dse): Merge results of new gate functions.
5482 * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
5483 (gate_handle_jump_bypass): Add dbg_cnt.
5484 (gate_handle_gcse): Add dbg_cnt.
5485 * ifcvt.c (gate_handle_if_conversion): Same.
5486 (gate_handle_if_after_combine): Same.
5487 (gate_handle_if_after_reload): Same.
5488 * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
5490 2008-02-26 Edmar Wienskoski <edmar@freescale.com>
5492 * config/rs6000/rs6000.c (processor_costs): Update e300 cache
5494 * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
5496 2008-02-26 Jason Merrill <jason@redhat.com>
5499 * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE
5500 alone if it's the naming decl for the type's main variant.
5502 2008-02-26 Tom Tromey <tromey@redhat.com>
5504 * system.h (USE_MAPPED_LOCATION): Poison.
5505 * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
5506 * tree-cfg.c (make_cond_expr_edges): Remove old location code.
5507 (make_goto_expr_edges): Likewise.
5508 (remove_bb): Likewise.
5509 (execute_warn_function_return): Likewise.
5510 * basic-block.h (struct edge_def) <goto_locus>: Change type to
5512 * c-common.c (fname_decl): Remove old location code.
5513 * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
5515 * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
5517 (ASM_INPUT_SOURCE_LOCATION): Likewise.
5518 (gen_rtx_ASM_INPUT): Likewise.
5519 (gen_rtx_ASM_INPUT_loc): Likewise.
5520 (get_rtx_asm_OPERANDS): Remove.
5521 * cfglayout.c (insn_locators_alloc): Remove old location code.
5522 (set_curr_insn_source_location): Likewise.
5523 (curr_insn_locator): Likewise.
5524 * print-tree.c (print_node): Remove old location code.
5525 * tree-mudflap.c (mf_varname_tree): Remove old location code.
5526 (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
5527 * cfgexpand.c (expand_gimple_cond_expr): Don't use
5528 location_from_locus.
5529 (construct_exit_block): Remove old location code.
5530 * emit-rtl.c (force_next_line_note): Remove old location code.
5531 * profile.c (branch_prob): Remove old location code.
5532 * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
5533 LOC_LINE): Remove old-location variants.
5534 * langhooks.c (lhd_print_error_function): Remove old location
5536 * configure, config.in: Rebuilt.
5537 * configure.ac (--enable-mapped-location): Remove.
5538 * c-decl.c (c_init_decl_processing): Remove old location code.
5539 (finish_function): Likewise.
5540 * recog.c (decode_asm_operands): Remove old location code.
5541 * c-pch.c (c_common_read_pch): Remove old location code.
5542 * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
5544 * gimple-low.c (lower_function_body): Remove old location code.
5545 * toplev.c (unknown_location): Remove.
5546 (push_srcloc): Remove old-location variant.
5547 (process_options): Remove old location code.
5548 (lang_dependent_init): Likewise.
5549 * input.h (UNKNOWN_LOCATION): Move definition.
5550 (location_t): Undeprecate.
5551 (source_locus): Remove.
5552 (location_from_locus): Remove.
5553 (struct location_s): Remove.
5554 Remove all old-location code.
5555 (input_line, input_filename): Remove.
5556 * final.c (final_scan_insn): Remove old location code.
5557 * diagnostic.c (diagnostic_build_prefix): Remove
5558 USE_MAPPED_LOCATION test.
5559 * tree.h (gimple_stmt) <locus>: Now a location_t.
5560 (tree_exp) <locus>: Likewise.
5561 (DECL_IS_BUILTIN): Remove old-location variant.
5562 (annotate_with_file_line, annotate_with_locus): Likewise.
5563 (expr_locus, set_expr_locus): Update.
5564 * tree.c (build1_stat): Remove old location code.
5565 (last_annotated_node): Remove.
5566 (annotate_with_file_line): Remove old-location variant.
5567 (annotate_with_locus): Likewise.
5568 (expr_location): Remove old location code.
5569 (set_expr_location): Likewise.
5570 (expr_has_location): Likewise.
5571 (expr_locus): Likewise.
5572 (set_expr_locus): Likewise.
5573 (expr_filename): Don't use location_from_locus.
5574 (expr_lineno): Likewise.
5575 * rtl-error.c (location_for_asm): Remove old location code.
5576 * c-lex.c (cb_line_change): Remove old location code.
5577 (fe_file_change): Likewise.
5578 (cb_def_pragma): Likewise.
5579 (c_lex_with_flags): Likewise.
5580 * gengtype.c (do_typedef): Don't special-case location types.
5581 (define_location_structures): Remove.
5582 (main): Don't call define_location_structures.
5583 * tree-pretty-print.c (dump_implicit_edges): Remove old location
5586 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5589 * builtins.def (BUILT_IN_STDARG_START): Remove.
5590 * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
5591 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
5592 * tree-inline.c (inline_forbidden_p_1): Likewise.
5594 2008-02-26 Richard Guenther <rguenther@suse.de>
5596 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
5597 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
5598 (lookup_decl_from_uid): Declare.
5599 (remove_decl_from_map): Likewise.
5600 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
5601 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
5602 (decl_for_uid_map): New global hashtable mapping DECL_UID
5604 (init_ttree): Allocate it.
5605 (insert_decl_to_uid_decl_map): New helper function.
5606 (make_node_stat): Insert new decls into the map.
5607 (copy_node_stat): Likewise.
5608 (lookup_decl_from_uid): New function.
5609 (remove_decl_from_map): Likewise.
5610 (print_decl_for_uid_map_statistics): New helper.
5611 (dump_tree_statistics): Call it.
5613 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
5614 (referenced_var_iterator): Adjust.
5615 (FOR_EACH_REFERENCED_VAR): Adjust.
5616 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
5617 (num_referenced_vars): Adjust.
5618 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
5619 (first_referenced_var): Remove.
5620 (end_referenced_vars_p): Likewise.
5621 (next_referenced_var): Likewise.
5622 (referenced_var_iterator_set): New helper function.
5623 * tree-dfa.c (referenced_var_lookup): Adjust.
5624 (referenced_var_check_and_insert): Likewise.
5625 (remove_referenced_var): Likewise.
5626 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
5627 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
5628 (verify_call_clobbering): Likewise.
5629 (verify_memory_partitions): Likewise.
5630 (init_tree_ssa): Allocate bitmap instead of hashtable for
5632 (delete_tree_ssa): Adjust.
5633 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
5634 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
5635 (compute_tag_properties): Likewise.
5636 (set_initial_properties): Likewise.
5637 (find_partition_for): Likewise.
5638 (update_reference_counts): Likewise.
5639 (dump_may_aliases_for): Likewise.
5640 * tree-ssa-operands.c (add_virtual_operand): Likewise.
5641 (add_call_clobber_ops): Likewise.
5642 (add_call_read_ops): Likewise.
5643 (get_asm_expr_operands): Likewise.
5644 * tree-into-ssa.c (dump_decl_set): Likewise.
5645 (update_ssa): Likewise.
5646 * tree-sra.c (scan_function): Likewise.
5647 (decide_instantiations): Likewise.
5648 (scalarize_parms): Likewise.
5649 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
5650 (dsa_named_for): Likewise.
5651 * tree-ssa-structalias.c (update_alias_info): Likewise.
5652 (merge_smts_into): Likewise.
5654 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5657 * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
5658 * c-opts.c (c_common_handle_option): Wall enables
5659 Wvolatile-register-var.
5660 * common.opt: Move Wvolatile-register-var to...
5663 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5665 * common.opt (Wlarger-than=): New.
5666 * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
5668 * opts.c (common_handle_option): Handle -Wlarger-than=.
5669 * optc-gen.awk: Likewise.
5670 * opth-gen.awk: Likewise.
5671 * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
5672 * tree-optimize.c (tree_rest_of_compilation): Likewise.
5674 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5676 * c-common.c (match_case_to_enum_1): Add appropriate
5677 OPT_W* parameter to warning.
5678 (c_do_switch_warnings): Likewise.
5679 * c-typeck.c (warning_init): Add one more parameter following
5681 (push_init_level): Update call to warning_init.
5682 (pop_init_level): Likewise.
5683 (add_pending_init): Likewise.
5684 (output_init_element: Likewise.
5686 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5689 * toplev.c (toplev_main): If there are warnings or error, print
5690 errors for ignored options.
5691 * opts.c (ignored_options): New static variable.
5692 (postpone_unknown_option_error): New.
5693 (print_ignored_options): New.
5694 (handle_option): Postpone errors for unknown -Wno-* options.
5695 * opts.h (print_ignored_options): Declare.
5697 2008-02-25 Richard Sandiford <rsandifo@nildram.co.uk>
5699 * config/mips/mips.md (loadgp_blockage, blockage): Change type
5702 2008-02-25 Richard Guenther <rguenther@suse.de>
5705 2008-02-25 Richard Guenther <rguenther@suse.de>
5707 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
5708 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
5709 (lookup_decl_from_uid): Declare.
5710 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
5711 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
5712 (decl_for_uid_map): New global hashtable mapping DECL_UID
5714 (init_ttree): Allocate it.
5715 (insert_decl_to_uid_decl_map): New helper function.
5716 (make_node_stat): Insert new decls into the map.
5717 (copy_node_stat): Likewise.
5718 (lookup_decl_from_uid): New function.
5719 (print_decl_for_uid_map_statistics): New helper.
5720 (dump_tree_statistics): Call it.
5722 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
5723 (referenced_var_iterator): Adjust.
5724 (FOR_EACH_REFERENCED_VAR): Adjust.
5725 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
5726 (num_referenced_vars): Adjust.
5727 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
5728 (first_referenced_var): Remove.
5729 (end_referenced_vars_p): Likewise.
5730 (next_referenced_var): Likewise.
5731 (referenced_var_iterator_set): New helper function.
5732 * tree-dfa.c (referenced_var_lookup): Adjust.
5733 (referenced_var_check_and_insert): Likewise.
5734 (remove_referenced_var): Likewise.
5735 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
5736 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
5737 (verify_call_clobbering): Likewise.
5738 (verify_memory_partitions): Likewise.
5739 (init_tree_ssa): Allocate bitmap instead of hashtable for
5741 (delete_tree_ssa): Adjust.
5742 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
5743 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
5744 (compute_tag_properties): Likewise.
5745 (set_initial_properties): Likewise.
5746 (find_partition_for): Likewise.
5747 (update_reference_counts): Likewise.
5748 (dump_may_aliases_for): Likewise.
5749 * tree-ssa-operands.c (add_virtual_operand): Likewise.
5750 (add_call_clobber_ops): Likewise.
5751 (add_call_read_ops): Likewise.
5752 (get_asm_expr_operands): Likewise.
5753 * tree-into-ssa.c (dump_decl_set): Likewise.
5754 (update_ssa): Likewise.
5755 * tree-sra.c (scan_function): Likewise.
5756 (decide_instantiations): Likewise.
5757 (scalarize_parms): Likewise.
5758 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
5759 (dsa_named_for): Likewise.
5760 * tree-ssa-structalias.c (update_alias_info): Likewise.
5761 (merge_smts_into): Likewise.
5763 2008-02-25 Janne Blomqvist <jb@gcc.gnu.org>
5766 * doc/invoke.texi (-fcx-limited-range): Document new option.
5767 * toplev.c (process_options): Handle -fcx-fortran-rules.
5768 * common.opt: Add documentation for -fcx-fortran-rules.
5770 2008-02-25 Janne Blomqvist <jb@gcc.gnu.org>
5773 * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
5774 actual behaviour and C99.
5776 2008-02-26 Ben Elliston <bje@au.ibm.com>
5778 * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
5779 (ASM_CPU_POWER6_SPEC): Likewise.
5780 (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
5781 Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
5782 (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
5784 2008-02-25 Richard Guenther <rguenther@suse.de>
5786 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
5787 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
5788 (lookup_decl_from_uid): Declare.
5789 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
5790 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
5791 (decl_for_uid_map): New global hashtable mapping DECL_UID
5793 (init_ttree): Allocate it.
5794 (insert_decl_to_uid_decl_map): New helper function.
5795 (make_node_stat): Insert new decls into the map.
5796 (copy_node_stat): Likewise.
5797 (lookup_decl_from_uid): New function.
5798 (print_decl_for_uid_map_statistics): New helper.
5799 (dump_tree_statistics): Call it.
5801 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
5802 (referenced_var_iterator): Adjust.
5803 (FOR_EACH_REFERENCED_VAR): Adjust.
5804 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
5805 (num_referenced_vars): Adjust.
5806 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
5807 (first_referenced_var): Remove.
5808 (end_referenced_vars_p): Likewise.
5809 (next_referenced_var): Likewise.
5810 (referenced_var_iterator_set): New helper function.
5811 * tree-dfa.c (referenced_var_lookup): Adjust.
5812 (referenced_var_check_and_insert): Likewise.
5813 (remove_referenced_var): Likewise.
5814 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
5815 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
5816 (verify_call_clobbering): Likewise.
5817 (verify_memory_partitions): Likewise.
5818 (init_tree_ssa): Allocate bitmap instead of hashtable for
5820 (delete_tree_ssa): Adjust.
5821 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
5822 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
5823 (compute_tag_properties): Likewise.
5824 (set_initial_properties): Likewise.
5825 (find_partition_for): Likewise.
5826 (update_reference_counts): Likewise.
5827 (dump_may_aliases_for): Likewise.
5828 * tree-ssa-operands.c (add_virtual_operand): Likewise.
5829 (add_call_clobber_ops): Likewise.
5830 (add_call_read_ops): Likewise.
5831 (get_asm_expr_operands): Likewise.
5832 * tree-into-ssa.c (dump_decl_set): Likewise.
5833 (update_ssa): Likewise.
5834 * tree-sra.c (scan_function): Likewise.
5835 (decide_instantiations): Likewise.
5836 (scalarize_parms): Likewise.
5837 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
5838 (dsa_named_for): Likewise.
5839 * tree-ssa-structalias.c (update_alias_info): Likewise.
5840 (merge_smts_into): Likewise.
5842 2008-02-25 Andreas Krebbel <krebbel1@de.ibm.com>
5845 * cse.c (cse_insn): Avoid creation of overlapping MEMs.
5846 * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
5847 * alias.h (nonoverlapping_memrefs_p): Likewise.
5849 2008-02-25 Jan Beulich <jbeulich@novell.com>
5851 * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
5852 * config/i386/netware-libgcc.exp: Add __bswap?i2,
5853 __emultls_get_address, __emultls_register_common,
5854 __floatundi?f, and _Unwind_GetIPInfo.
5855 * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
5856 Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
5857 (gen_regparm_prefix): Likewise.
5858 (i386_nlm_encode_section_info): Sync with
5859 config/i386/winnt.c:i386_pe_encode_section_info().
5860 (i386_nlm_maybe_mangle_decl_assembler_name): New.
5861 i386_nlm_mangle_decl_assembler_name): New.
5862 (netware_override_options): New.
5863 * config/i386/netware.h (netware_override_options): Declare.
5864 (OVERRIDE_OPTIONS): Re-define to netware_override_options.
5865 (i386_nlm_mangle_decl_assembler_name): Declare.
5866 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
5868 2008-02-25 Ben Elliston <bje@au.ibm.com>
5871 * c-decl.c (grokdeclarator): Remove unused local variables
5872 `typedef_type' and `type_as_written'.
5874 (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
5875 unused local variable `has_hot_blocks'.
5876 (fix_crossing_conditional_branches): Remove unused local variable
5879 2008-02-25 Uros Bizjak <ubizjak@gmail.com>
5882 * builtins.def (BUILT_IN_NAN): Define as c99 builtin
5883 using DEF_C99_BUILTIN.
5884 (BUILT_IN_NANF): Ditto.
5885 (BUILT_IN_NANL): Ditto.
5887 2008-02-25 Ayal Zaks <zaks@il.ibm.com>
5888 Revital Eres <eres@il.ibm.com>
5890 * modulo-sched.c (calculate_must_precede_follow): Address TODO
5891 regarding the order of two dependent insns in the same row.
5893 2008-02-25 Eric Botcazou <ebotcazou@adacore.com>
5895 * stor-layout.c (layout_decl): Do not bump the alignment of a
5896 bit-field to more than byte alignment if it is packed.
5898 2008-02-24 David Edelsohn <edelsohn@gnu.org>
5900 * config/rs6000/rs6000.c (processor_costs): Add cache costs for
5903 2008-02-24 Diego Novillo <dnovillo@google.com>
5905 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
5908 * tree-vrp.c (vrp_evaluate_conditional): With
5909 -Wtype-limits, emit a warning when comparing against a
5910 constant outside the natural range of OP0's type.
5911 * c.opt (Wtype-limits): Move ...
5912 * common.opt (Wtype-limits): ... here.
5914 2008-02-24 Edmar Wienskoski <edmar@freescale.com>
5916 * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
5917 * config/rs6000/e300c2c3.md: New file.
5918 * config/rs6000/rs6000.c (processor_costs): Add new costs for
5920 (rs6000_override_options): Add e300c2 and e300c3 cases to
5921 processor_target_table. Do not allow usage of Altivec or Spe
5922 with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
5923 (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
5924 * config/rs6000/rs6000.h (processor_type): Add
5925 PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
5926 (ASM_CPU_SPEC): Add e300c2 and e300c3.
5927 * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
5928 and ppce300c3. Include e300c2c3.md.
5930 2008-02-23 David Edelsohn <edelsohn@gnu.org>
5932 * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
5933 instead of TARGET_STRICT_ALIGN.
5935 2008-02-23 Joseph Myers <joseph@codesourcery.com>
5937 * explow.c (memory_address): Assert that the generated address is
5940 2008-02-23 Francois-Xavier Coudert <coudert@clipper.ens.fr>
5943 * config/darwin-protos.h: Add darwin_patch_builtins prototype.
5944 * config/darwin-ppc-ldouble-patch.def: New file.
5945 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
5946 * config/rs6000/rs6000.c (rs6000_init_builtins): Call
5947 SUBTARGET_INIT_BUILTINS if defined.
5948 * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
5951 2008-02-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
5954 * simplify-rtx.c (simplify_binary_operation_1): Add simplification
5955 of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
5957 2008-02-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
5960 * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
5961 file" warning condtional on -Winvalid-PCH.
5963 2008-02-23 Daniel Jacobowitz <dan@codesourcery.com>
5965 * expmed.c (extract_bit_field): Always use adjust_address for MEM.
5967 2008-02-23 Uros Bizjak <ubizjak@gmail.com>
5971 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
5972 prevent reload from using MMX registers.
5973 (*mov<mode>_internal): Ditto.
5974 (*movv2sf_internal_rex64): Ditto.
5975 (*movv2sf_internal): Ditto.
5977 2008-02-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5979 PR documentation/31569
5980 * doc/install.texi2html: Use makeinfo --no-number-sections.
5982 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
5984 * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
5985 ensure that we can address an entire entity > 8 bytes. Don't
5986 generate reg+reg addressing for such data.
5988 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
5990 * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
5991 strings when optimizing for size, unless the target cares about
5994 2008-02-22 Tom Tromey <tromey@redhat.com>
5996 * regclass.c (current_pass): Remove declaration.
5998 2008-02-22 Anatoly Sokolov <aesok@post.ru>
6000 * config/avr/libgcc.S (__RAMPZ__): Define.
6001 (__do_copy_data): Add for devices with 128KB code memory.
6003 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
6005 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
6007 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
6009 2008-02-22 Hans-Peter Nilsson <hp@axis.com>
6011 * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
6014 2008-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6017 * c-typeck.c (build_binary_op): Warn about floating point
6018 comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
6020 2008-02-21 Janis Johnson <janis187@us.ibm.com>
6023 * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
6024 (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
6026 (rs6000_override_options): Set altivec_abi as default, not override,
6027 for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
6028 TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
6029 is used; use new member spe_abi.
6030 (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
6031 spe_abi and altivec_abi.
6033 2008-02-22 Tomas Bily <tbily@suse.cz>
6035 * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
6037 2008-02-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6040 * config.build (build_file_translate): Set to `CMD //c' only if
6042 * Makefile.in (build_file_translate): Improve comment.
6044 2008-02-21 Jan Hubicka <jh@suse.cz>
6046 * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
6047 PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
6048 PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
6050 2008-02-21 Michael Matz <matz@suse.de>
6053 * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
6055 2008-02-21 Uros Bizjak <ubizjak@gmail.com>
6057 * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
6058 movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
6060 * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
6061 from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
6062 SSE_VEC_FLOAT_MODE_P as insn constraint.
6063 (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
6064 (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
6065 sse4a_movntdf using MODEF mode iterator.
6066 (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
6067 sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
6068 (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
6069 (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
6070 (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
6071 (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
6072 (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
6074 2008-02-21 Richard Guenther <rguenther@suse.de>
6076 * tree.def (PAREN_EXPR): New tree code.
6077 * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
6079 * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
6080 * expr.c (expand_expr_real_1): Likewise.
6081 * tree-inline.c (estimate_num_insns_1): Likewise.
6082 * tree-complex.c (expand_complex_move): Likewise.
6083 * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
6086 2008-02-20 Kaz Kojima <kkojima@gcc.gnu.org>
6089 * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
6091 2008-02-20 Kaz Kojima <kkojima@gcc.gnu.org>
6094 * config/sh/sh.md (jump_compact): Disable for crossing jumps.
6096 * config/sh/sh.c (find_barrier): Don't go past
6097 NOTE_INSN_SWITCH_TEXT_SECTIONS note.
6099 2008-02-20 DJ Delorie <dj@redhat.com>
6101 * config/h8300/h8300.md (insv): Force source operand to be a register.
6103 * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
6104 as a jump, not as a plain insn.
6106 2008-02-20 Seongbae Park <seongbae.park@gmail.com>
6108 * doc/invoke.texi (Warning Options): Add new option
6109 -Wframe-larger-than=.
6110 (-Wframe-larger-than): Document.
6112 * flags.h (warn_frame_larger_than, frame_larger_than_size):
6113 Add declarations for new option variables.
6115 * final.c (final_start_function): Check the frame size
6116 before emission and issue a Wframe-larger-than warning.
6118 * opts.c (warn_frame_larger_than, frame_larger_than_size):
6119 Add definitions for new option variables.
6120 (common_handle_option): Handle new option OPT_Wframe_larger_than_.
6122 * common.opt (Wframe-larger-than=): New option.
6124 2008-02-20 Uros Bizjak <ubizjak@gmail.com>
6126 * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
6127 (<sse>_div<mode>3): Ditto.
6128 (<sse>_vmdiv<mode>3): Ditto.
6129 (<sse>_vmsqrt<mode>2): Ditto.
6130 (*smax<mode>3): Ditto.
6131 (sse5_frcz<mode>2): Ditto.
6132 (sse5_vmfrcz<mode>2): Ditto. Use TARGET_SSE5 instead of TARGET_ROUND
6135 2008-02-20 Richard Guenther <rguenther@suse.de>
6138 * builtins.c (validate_arg): If we want an INTEGER_TYPE,
6139 be happy with INTEGRAL_TYPE_P.
6141 2008-02-20 Richard Guenther <rguenther@suse.de>
6143 * fold-const.c (split_tree): Associate floatig-point expressions
6144 if flag_associative_math is set.
6146 2008-02-20 Richard Guenther <rguenther@suse.de>
6148 * tree.h (fold_real_zero_addition_p): Declare.
6149 * fold-const.c (fold_real_zero_addition_p): Export.
6150 * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
6151 floating-point operations with zero and one.
6153 2008-02-20 Paolo Bonzini <bonzini@gnu.org>
6155 * doc/install.texi: Correct references to CFLAGS, replacing them
6156 with BOOT_CFLAGS. Document flags used during bootstrap for
6159 2008-02-20 Uros Bizjak <ubizjak@gmail.com>
6161 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
6162 * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
6163 and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
6165 (smin<mode>3): Ditto from similar patterns.
6166 (smax<mode>3): Ditto.
6167 (*ieee_smin<mode>3): Ditto.
6168 (*ieee_smax<mode>3): Ditto.
6169 * config/i386/sse.md (sse): New mode attribute.
6170 (mov<mode>): Macroize expander from movv4sf and movv2df using
6171 SSEMODEF2P mode iterator.
6172 (<sse>_movnt<mode>): Ditto from similar patterns. Use
6173 SSE_VEC_FLOAT_MODE_P as insn constraint.
6174 (storent<mode>): Ditto.
6175 (storent<mode>): Macroize expander from storentsf and storentdf using
6176 MODEF mode iterator.
6177 (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
6178 mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
6179 (abs<mode>2): Ditto from similar patterns.
6180 (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
6181 (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
6182 (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
6183 (<sse>_vmsqrt<mode>2): Ditto.
6184 (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
6185 (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
6186 (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
6187 (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
6188 (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
6189 sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
6190 mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
6192 (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
6193 iterator and SSE_FLOAT_MODE_P as insn constraint.
6194 (<sse>_ucomi): Ditto from similar patterns.
6195 (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
6196 sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
6197 SSE_VEC_FLOAT_MODE_P as insn constraint.
6198 (vcond<mode>): Ditto from similar patterns.
6199 (and<mode>3, *and<mode>3): Ditto.
6200 (<sse>_nand<mode>3): Ditto.
6201 (ior<mode>3, *ior<mode>3): Ditto.
6202 (xor<mode>3, *xor<mode>3): Ditto.
6203 (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
6204 iterator and SSE_FLOAT_MODE_P as insn constraint.
6205 (*nand<mode>3): Ditto from similar patterns.
6206 (*ior<mode>3): Ditto.
6207 (*xor<mode>3): Ditto.
6209 2008-02-20 Ira Rosen <irar@il.ibm.com>
6211 * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
6212 vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
6213 vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
6215 2008-02-19 Jan Hubicka <jh@suse.cz>
6217 * predict.c (tree_bb_level_predictions): Remove variable next
6218 mistakely introduced by previous commit.
6220 2008-02-19 Jan Hubicka <jh@suse.cz>
6222 * predict.c (predict_paths_leading_to): Rewrite.
6223 (predict_paths_for_bb): New.
6224 (tree_bb_level_predictions): Update call of predict_paths_leading_to.
6226 2008-02-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6229 * Makefile.in (build_file_translate): New.
6230 (gcc-vers.texi): Use it for translating $(abs_srcdir).
6231 * config.build (build_file_translate): Set to `CMD //c' on MinGW.
6232 * configure.ac (build_file_translate): Substitute it.
6233 * configure: Regenerate.
6235 2008-02-19 Jan Hubicka <jh@suse.cz>
6237 PR rtl-optimization/34408
6238 * see.c (see_def_extension_not_merged): Copy subreg so we don't have
6241 2008-02-19 Jan Hubicka <jh@suse.cz>
6244 * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
6247 2008-02-19 H.J. Lu <hongjiu.lu@intel.com>
6250 * config/i386/i386-modes.def: Revert the last DI alignment
6251 change until Ada people can look into it.
6253 2008-02-19 Nick Clifton <nickc@redhat.com>
6255 * opts.c (print_specific_help): Fix typo in --help text.
6257 2008-02-19 Jakub Jelinek <jakub@redhat.com>
6260 * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
6261 32-bit inline asm without asm alternatives for host GCC < 3.0.
6263 2008-02-19 Richard Guenther <rguenther@suse.de>
6265 PR tree-optimization/34989
6266 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
6267 Allow propagation to INDIRECT_REF if we can simplify only.
6269 2008-02-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6271 * c-common.c (warn_for_collisions_1): Use appropriate option when
6274 2008-02-19 Nick Clifton <nickc@redhat.com>
6277 * opts.c (undocumented_msg): Leave blank unless checking is enabled.
6278 (handle_options): Fix indentation.
6279 (print_filtered_help): If no language-specific options were
6280 displayed tell the user how to list all the options supported by
6281 the language's front-end.
6282 (print_specific_help): Fix indentation and remove duplicate line.
6283 (common_handle_option): Handle the -v option.
6284 For --help enable the display of undocumented options if the -v
6285 switch has been included on the command line.
6286 For --help= check for overlaps in the arguments between the option
6287 classes and the language names and issue a warning when they
6288 cannot be disambiguated.
6289 * c.opt (v): Pass on to the common option handler.
6291 2008-02-19 Revital Eres <eres@il.ibm.com>
6293 * modulo-sched.c (sms_schedule): Change dump message when
6294 create_ddg function fails.
6295 (try_scheduling_node_in_cycle): Rename row to cycle.
6296 (print_partial_schedule): Rename CYCLE to ROW.
6298 2008-02-19 Christian Bruel <christian.bruel@st.com>
6299 Zdenek Dvorak <ook@ucw.cz>
6301 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
6303 2008-02-19 Uros Bizjak <ubizjak@gmail.com>
6306 * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
6307 (*x86_movdicc_0_m1_se): Ditto.
6309 2008-02-19 Uros Bizjak <ubizjak@gmail.com>
6311 * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
6312 (CMPtype): Define as __gcc_CMPtype.
6313 * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
6314 (CMPtype): Define as __gcc_CMPtype.
6316 2008-02-19 Hans-Peter Nilsson <hp@axis.com>
6318 Support valgrind 3.3 for --enable-checking=valgrind.
6319 * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
6321 [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
6322 [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
6323 [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
6324 * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
6325 Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
6326 VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
6327 VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
6329 * ggc-zone.c: Similar.
6330 * ggc-page.c: Similar.
6332 2008-02-19 Paul Brook <paul@codesourcery.com>
6335 * config/arm/ieee754-df.S: Fix do_it typo.
6336 * config/arm/ieee754-sf.S: Fix do_it typo.
6338 2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
6341 * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
6342 (OPTION_MASK_ISA_3DNOW_SET): Likewise.
6343 (OPTION_MASK_ISA_SSE_SET): Likewise.
6344 (OPTION_MASK_ISA_SSE2_SET): Likewise.
6345 (OPTION_MASK_ISA_SSE3_SET): Likewise.
6346 (OPTION_MASK_ISA_SSSE3_SET): Likewise.
6347 (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
6348 (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
6349 (OPTION_MASK_ISA_SSE4_SET): Likewise.
6350 (OPTION_MASK_ISA_SSE4A_SET): Likewise.
6351 (OPTION_MASK_ISA_SSE5_SET): Likewise.
6352 (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
6353 (OPTION_MASK_ISA_MMX_UNSET): Updated.
6354 (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
6355 (OPTION_MASK_ISA_SSE_UNSET): Likewise.
6356 (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
6357 (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
6358 (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
6359 (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
6360 (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
6361 (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
6362 (OPTION_MASK_ISA_SSE4): Removed.
6363 (ix86_handle_option): Turn on bits in ix86_isa_flags and
6364 ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
6365 (override_options): Don't turn on implied SSE/MMX bits in
6368 2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
6370 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
6373 2008-02-18 Joey Ye <joey.ye@intel.com>
6376 * tree-nested.c (insert_field_into_struct): Set type alignment
6377 to field alignment if the former is less than the latter.
6379 2008-02-18 Jakub Jelinek <jakub@redhat.com>
6381 * BASE-VER: Set to 4.4.0.
6383 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6385 * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
6386 * doc/cfg.texi: Likewise.
6387 * doc/extend.texi: Likewise.
6388 * doc/gty.texi: Likewise.
6389 * doc/invoke.texi: Likewise.
6390 * doc/loop.texi: Likewise.
6391 * doc/md.texi: Likewise.
6392 * doc/passes.texi: Likewise.
6393 * doc/rtl.texi: Likewise.
6394 * doc/sourcebuild.texi: Likewise.
6395 * doc/tm.texi: Likewise.
6396 * doc/tree-ssa.texi: Likewise.
6398 2008-02-17 Richard Guenther <rguenther@suse.de>
6401 * tree-complex.c (init_parameter_lattice_values): Handle parameters
6402 without default definition.
6404 2008-02-17 Richard Guenther <rguenther@suse.de>
6406 PR tree-optimization/35231
6407 * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
6410 2008-02-17 Uros Bizjak <ubizjak@gmail.com>
6413 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
6414 * config/i386/sfp-machine.h (CMPtype): Define as typedef using
6415 libgcc_cmp_return mode.
6417 2008-02-16 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6420 * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
6422 2008-02-16 Ralf Corsepius <ralf.corsepius@rtems.org>
6424 * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
6427 2008-02-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6429 * doc/c-tree.texi: Use `@.' where appropriate.
6430 * doc/extend.texi: Likewise.
6431 * doc/install.texi: Likewise.
6432 * doc/invoke.texi: Likewise.
6433 * doc/loop.texi: Likewise.
6434 * doc/makefile.texi: Likewise.
6435 * doc/md.texi: Likewise.
6436 * doc/passes.texi: Likewise.
6437 * doc/standards.texi: Likewise.
6438 * doc/tm.texi: Likewise.
6440 2008-02-15 Jakub Jelinek <jakub@redhat.com>
6443 * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
6445 (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
6446 rather than in entry_bb.
6448 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
6450 * config/i386/sfp-machine.h (CMPtype): Define as typedef using
6451 libgcc_cmp_return mode.
6453 2008-02-15 Jakub Jelinek <jakub@redhat.com>
6456 * tree-nested.c (convert_call_expr): Put FRAME.* vars into
6457 OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
6459 2008-02-15 Richard Guenther <rguenther@suse.de>
6460 Zdenek Dvorak <ook@ucw.cz>
6462 PR tree-optimization/35164
6463 * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
6464 * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
6465 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
6466 Only propagate addresses which do not have abnormal SSA_NAMEs
6469 2008-02-15 Joseph Myers <joseph@codesourcery.com>
6472 * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
6474 2008-02-15 Jan Hubicka <jh@suse.cz>
6477 * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
6479 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
6482 * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
6483 when calculating alignment_pad.
6485 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
6487 * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
6488 (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
6489 * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
6490 and STACK_BOUNDARY define.
6492 2008-02-14 Danny Smith <dannysmith@users.sourceforge.net>
6494 PR preprocessor/35061
6495 * c-pragma.c (handle_pragma_pop_macro): Check that
6496 pushed_macro_table has been allocated.
6498 2008-02-14 Eric Botcazou <ebotcazou@adacore.com>
6501 * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
6502 (force_gimple_operand): Likewise.
6503 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
6504 for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
6505 Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
6506 (find_interesting_uses_address): Check addressability and alignment
6507 of the base expression only after substituting bases of IVs into it.
6509 2008-02-14 Michael Matz <matz@suse.de>
6512 * function.c (instantiate_virtual_regs_in_insn): Reload address
6513 before falling back to reloading the whole operand.
6515 2008-02-14 Andreas Krebbel <krebbel1@de.ibm.com>
6517 * config/s390/s390.c (s390_mainpool_start): Emit the pool
6518 before the first section switch note.
6520 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6522 * doc/bugreport.texi: Update copyright years.
6523 * doc/c-tree.texi: Likewise.
6524 * doc/cfg.texi: Likewise.
6525 * doc/cpp.texi: Likewise.
6526 * doc/cppinternals.texi: Likewise.
6527 * doc/fragments.texi: Likewise.
6528 * doc/frontends.texi: Likewise.
6529 * doc/gcc.texi: Likewise.
6530 * doc/gty.texi: Likewise.
6531 * doc/hostconfig.texi: Likewise.
6532 * doc/implement-c.texi: Likewise.
6533 * doc/libgcc.texi: Likewise.
6534 * doc/loop.texi: Likewise.
6535 * doc/makefile.texi: Likewise.
6536 * doc/options.texi: Likewise.
6537 * doc/passes.texi: Likewise.
6538 * doc/rtl.texi: Likewise.
6539 * doc/sourcebuild.texi: Likewise.
6540 * doc/standards.texi: Likewise.
6541 * doc/tree-ssa.texi: Likewise.
6542 * doc/trouble.texi: Likewise.
6544 * doc/extend.texi: Use @: or add comma where appropriate.
6545 * doc/invoke.texi: Likewise.
6546 * doc/tm.texi: Likewise.
6548 2008-02-14 Alan Modra <amodra@bigpond.net.au>
6551 * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
6554 2008-02-14 Jesper Nilsson <jesper.nilsson@axis.com>
6556 * doc/md.texi (clz, ctz): Add reference.
6557 * doc/rtl.texi (clz, ctz): Likewise.
6559 2008-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6562 * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
6565 2008-02-13 Andreas Krebbel <krebbel1@de.ibm.com>
6567 * config/s390/s390.c (struct constant_pool): New field
6568 emit_pool_after added.
6569 (s390_mainpool_start): Set the emit_pool_after flag according
6570 to the section switch notes.
6571 (s390_mainpool_finish): Consider emit_pool_after when emitting
6572 the literal pool at the end of the function.
6573 (s390_chunkify_start): Force literal pool splits at section
6576 2008-02-13 Michael Matz <matz@suse.de>
6579 * var-tracking.c (clobber_variable_part): Correctly traverse the
6582 2008-02-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6585 * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
6586 Add -fdump-ipa-inline.
6587 * tree-dump.c (dump_files): Remove tree-inlined dump.
6588 * tree-pass.h (tree_dump_index): Remove TDI_inlined.
6590 2008-02-12 Richard Guenther <rguenther@suse.de>
6592 PR tree-optimization/35171
6593 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
6596 2008-02-12 Richard Guenther <rguenther@suse.de>
6599 * fold-const.c (fold_widened_comparison): Use get_unwidened in
6600 value-preserving mode. Disallow final truncation.
6602 2008-02-12 Eric Botcazou <ebotcazou@adacore.com>
6605 * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
6606 code from here to...
6607 (force_gimple_operand): ...here.
6609 2008-02-12 Jakub Jelinek <jakub@redhat.com>
6612 * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
6613 non-compatible pointers.
6614 (generate_element_copy): If SRC and DST are RECORD_TYPEs with
6615 different FIELD_DECLs, try harder by comparing field offsets, sizes
6619 * function.c (match_asm_constraints_1): Don't replace the same input
6622 2008-02-12 Anatoly Sokolov <aesok@post.ru>
6624 * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
6625 * config/avr/avr.c (expand_prologue): Save RAMPZ register.
6626 (expand_epilogue): Restore RAMPZ register.
6627 * config/avr/avr.md (RAMPZ_ADDR): New constant.
6629 2008-02-11 Kai Tietz <kai.tietz@onevision.com>
6631 * config/i386/cygwin.asm: (__alloca): Correct calling
6632 convention and alignment.
6633 (__chkstk): Force 8 byte stack alignment.
6635 2008-02-11 Uros Bizjak <ubizjak@gmail.com>
6636 Richard Guenther <rguenther@suse.de>
6638 PR tree-optimization/33992
6639 * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
6640 the zero we compare against.
6642 2008-02-10 Danny Smith <dannysmith@users.sourceforge.net>
6645 * gthr-win32.h (__gthread_mutex_destroy_function): New function
6646 to CloseHandle after unlocking to prevent accumulation of handle
6649 2008-02-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6652 * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
6653 pic_label_operand source. Similarly, add a REG_LABEL_OPERAND note
6654 and update LABEL_NUSES during and after reload.
6656 2008-02-08 Steven Bosscher <stevenb.gcc@gmail.com>
6659 * combine.c (simplify_if_then_else): Make sure the comparison is
6660 against const0_rtx when simplifying to (abs x) or (neg (abs X)).
6662 2008-02-08 Richard Sandiford <rsandifo@nildram.co.uk>
6665 * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
6666 (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
6667 * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
6668 (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
6669 * tree.h (get_type_static_bounds): Likewise.
6671 2008-02-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6673 * doc/invoke.texi (Option Summary, C++ Dialect Options)
6674 (Objective-C and Objective-C++ Dialect Options, Warning Options):
6675 Make -Wfoo language annotations match what the compiler outputs.
6677 2008-02-08 Sa Liu <saliu@de.ibm.com>
6679 * config/spu/spu-builtins.def: Fixed wrong parameter type in spu
6680 intrinsics spu_convts, spu_convtu, spu_convtf.
6682 2008-02-08 Hans-Peter Nilsson <hp@axis.com>
6684 * doc/extend.texi (Function Attributes) <noinline>: Mention
6685 asm ("") as method to keep calls.
6687 2008-02-07 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6690 * doc/options.texi (Options): Replace references to opts.sh with
6692 * opts-common.c: Likewise.
6693 * optc-gen.awk: Likewise.
6695 2008-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
6697 * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
6699 2008-02-07 Richard Henderson <rth@redhat.com>
6702 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
6703 EXPR_LIST for the REG_EQUAL instead of a comparison with a
6706 2008-02-07 Uros Bizjak <ubizjak@gmail.com>
6708 PR tree-optimization/35085
6709 * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
6710 for operand entry oe2 in addition to operand entry oe3 in order to
6711 expose more opportunities for vectorizer sum reduction.
6713 2008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6716 * Makefile.in (LIBS): Remove $(GMPLIBS).
6717 (cc1-dummy, cc1): Add $(GMPLIBS).
6719 2008-02-06 Jan Hubicka <jh@suse.cz>
6722 * i386.md (moddf_integer): Do not produce partial memory stalls for
6723 targets where it hurts.
6725 2008-02-06 Uros Bizjak <ubizjak@gmail.com>
6728 * optabs.c (expand_float): Do not check for decimal modes when
6729 expanding unsigned integer through signed conversion.
6731 2008-02-06 Nick Clifton <nickc@redhat.com>
6733 * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
6734 inside the clobber with a match_operand and duplicated operand
6735 number in the constraint.
6736 (ineqbranchsi): Delete redundant comment.
6738 2008-02-06 Ralf Corsepius <ralf.corsepius@rtems.org>
6740 * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add
6741 builtin_define ("__USE_INIT_FINI__").
6742 * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
6744 * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
6746 2008-02-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6748 PR documentation/30330
6749 * doc/invoke.texi (C++ Dialect Options)
6750 (Objective-C and Objective-C++ Dialect Options, Warning Options):
6751 For each warning option -Wfoo that allows -Wno-foo, ensure both
6752 -Wfoo and -Wno-foo are listed in the option index. Fix index
6753 entry of -Wswitch-default, index -Wnormalized= including the
6754 `=', and -Wlarger-than-@var{len} including @var{len}.
6756 2008-02-05 Uros Bizjak <ubizjak@gmail.com>
6758 * config/i386/i386.md (floatunssisf2): Use
6759 ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
6760 (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
6761 Macroize expander using MODEF mode iterator.
6763 2008-02-05 Diego Novillo <dnovillo@google.com>
6765 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
6768 * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
6770 2008-02-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6773 * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
6775 2008-02-05 H.J. Lu <hongjiu.lu@intel.com>
6778 * config/i386/i386.c (ix86_function_sseregparm): Add an arg
6779 to indicate if a message should be generated.
6780 (init_cumulative_args): Updated.
6781 (function_value_32): Likewise.
6783 2008-02-05 Joseph Myers <joseph@codesourcery.com>
6785 * doc/include/texinfo.tex: Update to version 2008-02-04.16.
6787 2008-02-05 Uros Bizjak <ubizjak@gmail.com>
6790 * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
6791 Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
6793 2008-02-04 Diego Novillo <dnovillo@google.com>
6795 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
6798 * tree-vrp.c (vrp_evaluate_conditional): With
6799 -Wtype-limits, emit a warning when comparing against a
6800 constant outside the natural range of OP0's type.
6802 2008-02-04 Richard Guenther <rguenther@suse.de>
6805 * expr.c (count_type_elements): Give for unions instead of
6808 2008-02-04 Richard Guenther <rguenther@suse.de>
6811 * gimplify.c (gimplify_init_ctor_eval): Convert array indices
6812 to TYPE_DOMAINs base type instead of using bitsizetype here.
6814 2008-02-03 Jason Merrill <jason@redhat.com>
6816 * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
6818 2008-02-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6821 * doc/invoke.texi (C++ Dialect Options, Optimize Options)
6822 (HPPA Options, i386 and x86-64 Options, IA-64 Options)
6823 (RS/6000 and PowerPC Options): Fix typos and markup.
6824 * doc/passes.texi (Tree-SSA passes): Likewise.
6826 2008-02-02 Michael Matz <matz@suse.de>
6829 * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
6830 from record_last_reg_set_info.
6831 (record_last_reg_set_info): Take an RTX argument, iterate over all
6832 constituent hardregs.
6833 (record_last_set_info, record_opr_changes): Change calls to
6834 new signature or to record_last_reg_set_info_regno.
6836 2008-02-02 Gerald Pfeifer <gerald@pfeifer.com>
6838 * doc/extend.texi (X86 Built-in Functions): Fix grammar.
6840 2008-02-01 Hans-Peter Nilsson <hp@axis.com>
6842 PR rtl-optimization/34773
6843 * reg-notes.def (EQUAL): Mention significance of combination of
6844 REG_EQUAL and REG_RETVAL.
6845 * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
6846 insn that has a REG_RETVAL.
6848 2008-02-01 Roger Sayle <roger@eyesopen.com>
6851 * configure.ac (--enable-fixed-point): Disable unless explicitly
6853 * configure: Regenerate.
6855 2008-02-01 Richard Guenther <rguenther@suse.de>
6858 * invoke.texi (-finline-limit): Remove no longer true parts
6859 of the documentation. Note that there is no default value.
6861 2008-02-01 Andrew Pinski <pinskia@gmail.com>
6862 Mark Mitchell <mark@codesourcery.com>
6863 Ben Elliston <bje@au.ibm.com>
6866 * doc/extend.texi (Other Builtins): Document.
6868 2008-01-31 Tom Browder <tom.browder@gmail.com>
6870 * doc/c-tree.texi (Types): Fix grammar.
6871 (Expression trees): Ditto.
6872 * doc/passes.texi (Tree-SSA passes): Ditto.
6874 * doc/configterms.texi (Configure Terms): Fix typo.
6875 * doc/cpp.texi (Common Predefined Macros): Ditto.
6876 * doc/md.texi (Machine Constraints): Ditto.
6878 * doc/makefile.texi (Makefile): Add comma.
6880 2008-01-31 Tom Browder <tom.browder@gmail.com>
6881 Gerald Pfeifer <gerald@pfeifer.com>
6883 * doc/sourcebuild.texi (Front End): Remove references to CVS
6884 and CVSROOT/modules.
6885 (Texinfo Manuals): Replace reference to CVS by one to SVN.
6886 (Back End): Remove reference to CVS.
6888 2008-01-31 Richard Sandiford <rsandifo@nildram.co.uk>
6891 * config/mips/mips.c (gen_load_const_gp): New function, taking a
6893 (mips16_gp_pseudo_reg): ...here.
6894 * config/mips/mips.md (load_const_gp): Replace with...
6895 (load_const_gp_<mode>): ...this :P-based insn.
6897 2008-01-31 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6899 * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
6900 options. Minor fixes.
6901 (-std): Move reference to standards closer to where language
6902 standards are first mentioned.
6904 2008-01-31 Richard Sandiford <rsandifo@nildram.co.uk>
6906 PR rtl-optimization/34995
6907 * reload.c (alternative_allows_const_pool_ref): Take an rtx
6908 parameter and return a bool. If the rtx parameter is nonnull,
6909 check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
6910 (find_reloads): Update call accordingly. Pass the new operand
6911 if it needed no address reloads, otherwise pass null.
6913 2008-01-30 Richard Henderson <rth@redhat.com>
6916 * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
6917 for unbounded arrays.
6919 2008-01-30 Silvius Rus <rus@google.com>
6921 * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
6923 2008-01-30 Jan Hubicka <jh@suse.cz>
6926 * i386.c (init_cumulative_args): Use real function declaration when
6929 2008-01-30 Richard Sandiford <rsandifo@nildram.co.uk>
6931 PR rtl-optimization/34998
6932 * global.c (build_insn_chain): Treat non-subreg_lowpart
6933 SUBREGs of pseudos as clobbering all the words covered by the
6934 SUBREG, not just all the bytes.
6935 * ra-conflict.c (clear_reg_in_live): Likewise. Take the
6936 original df_ref rather than an extract parameter.
6937 (global_conflicts): Update call accordingly.
6939 2008-01-30 Andreas Krebbel <krebbel1@de.ibm.com>
6941 * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
6942 the overflow check to make it easier to read.
6943 (__fixtfdi): Change the type of the ll member in union
6944 long_double to UDItype_x.
6946 2008-01-30 Jakub Jelinek <jakub@redhat.com>
6949 * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
6950 * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
6951 * tree-inline.c (fold_marked_statements): Call
6952 cgraph_update_edges_for_call_stmt if folding a call statement.
6953 * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
6954 debug_generic_stmt calls, reset it back afterwards.
6957 * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
6959 * c-typeck.c (build_external_ref): Don't pedwarn about
6960 static vars in current function's scope.
6962 2008-01-29 Joseph Myers <joseph@codesourcery.com>
6964 * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
6966 2008-01-29 Bernhard Fischer <aldot@gcc.gnu.org>
6969 * ipa-struct-reorg.c: Fix spelling.
6970 * params.def: Ditto.
6972 2008-01-29 Richard Guenther <rguenther@suse.de>
6975 * tree-inline.h (struct copy_body_data): Add remapping_type_depth
6977 * tree-inline.c (remap_type): Increment remapping_type_depth
6978 around remapping types.
6979 (copy_body_r): Only add referenced variables if they are referenced
6980 from code, not types.
6982 2008-01-29 Douglas Gregor <doug.gregor@gmail.com>
6993 * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
6994 qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
6996 2008-01-28 Andy Hutchinson <hutchinsonandy@netscape.net>
6999 * config/avr/avr.c (expand_prologue): Use correct QI mode frame
7000 pointer for tiny stack.
7002 2008-01-28 Bernhard Fischer <aldot@gcc.gnu.org>
7004 * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
7006 2008-01-28 Bernhard Fischer <aldot@gcc.gnu.org>
7008 * config/vx-common.h: Fix typo in comment.
7010 2008-01-28 Ian Lance Taylor <iant@google.com>
7014 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
7015 coalesce pointers if they have different DECL_NO_TBAA_P values.
7016 * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
7017 between variables with different DECL_NO_TBAA_P values.
7019 2008-01-28 Nathan Froyd <froydnj@codesourcery.com>
7022 * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
7023 are not legitimate small data references on SPE targets.
7025 2008-01-28 David Daney <ddaney@avtrex.com>
7027 * doc/install.texi (mips-*-*): Recommend binutils 2.18.
7029 2008-01-28 David Daney <ddaney@avtrex.com>
7031 * doc/install.texi (--disable-libgcj-bc): Reword documentation.
7033 2008-01-27 Joseph Myers <joseph@codesourcery.com>
7035 * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
7036 m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
7037 *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
7038 *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
7039 hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
7040 i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
7041 i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
7042 vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
7044 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
7046 * basic-block.h (condjump_equiv_p): Fix comment.
7048 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
7050 * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
7051 print_generic_stmt_indented): Fix comment.
7053 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
7055 * configure.ac (__stack_chk_fail): Add detecion for availability
7056 of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
7057 * configure: Regenerate.
7059 2008-01-26 Maxim Kuvyrkov <maxim@codesourcery.com>
7062 * final.c (output_addr_const): Handle TRUNCATE.
7064 2008-01-26 Zdenek Dvorak <ook@ucw.cz>
7067 * tree-ssa-loop-ivopts.c (comp_cost): New type.
7068 (zero_cost, infinite_cost): New constants.
7069 (struct cost_pair): Change type of cost to comp_cost.
7070 (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
7071 (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
7073 (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
7074 split_address_cost, ptr_difference_cost, difference_cost,
7075 get_computation_cost_at, get_computation_cost,
7076 determine_use_iv_cost_generic, determine_use_iv_cost_address,
7077 determine_use_iv_cost_condition, determine_use_iv_costs,
7078 cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
7079 iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
7080 iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
7081 Change type of cost to comp_cost.
7082 (determine_iv_cost): Increase cost of non-original ivs, instead
7083 of decreasing the cost of original ones.
7084 (get_address_cost): Indicate the complexity of the addressing mode
7086 (try_add_cand_for): Prefer using ivs not specific to some object.
7087 * tree-flow.h (force_expr_to_var_cost): Declaration removed.
7089 2008-01-26 Peter Bergner <bergner@vnet.ibm.com>
7090 Janis Johnson <janis187@us.ibm.com>
7093 * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
7094 (TARGET_INSTANTIATE_DECLS): Likewise.
7095 * target.h (expand_to_rtl_hook): New target hook.
7096 (instantiate_decls): Likewise.
7097 * function.c (instantiate_decl): Make non-static. Rename to...
7098 (instantiate_decl_rtl): ... this.
7099 (instantiate_expr): Use instantiate_decl_rtl.
7100 (instantiate_decls_1): Likewise.
7101 (instantiate_decls): Likewise.
7102 (instantiate_virtual_regs: Call new instantiate_decls taget hook.
7103 * function.h (instantiate_decl_rtl): Add prototype.
7104 * cfgexpand.c (target.h): New include.
7105 (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
7106 * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
7107 (TARGET_INSTANTIATE_DECLS): Likewise.
7108 (TARGET_INITIALIZER): New target hooks added.
7109 * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
7111 * config/rs6000/rs6000.c (tree-flow.h): New include.
7112 (machine_function): Add sdmode_stack_slot field.
7113 (rs6000_alloc_sdmode_stack_slot): New function.
7114 (rs6000_instantiate_decls): Likewise.
7115 (rs6000_secondary_memory_needed_rtx): Likewise.
7116 (rs6000_check_sdmode): Likewise.
7117 (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
7118 (TARGET_INSTANTIATE_DECLS): Likewise.
7119 (rs6000_hard_regno_mode_ok): Allow SDmode.
7120 (num_insns_constant): Likewise. Handle _Decimal32 constants.
7121 (rs6000_emit_move): Handle SDmode.
7122 (function_arg_advance): Likewise.
7123 (function_arg): Likewise.
7124 (rs6000_gimplify_va_arg): Likewise. Add special handling of
7125 SDmode var args for 32-bit compiles.
7126 (rs6000_secondary_reload_class): Handle SDmode.
7127 (rs6000_output_function_epilogue): Likewise.
7128 (rs6000_function_value): Simplify if statement.
7129 (rs6000_libcall_value): Likewise.
7130 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
7131 (SECONDARY_MEMORY_NEEDED_RTX): Add define.
7132 * config/rs6000/dfp.md (movsd): New define_expand and splitter.
7133 (movsd_hardfloat): New define_insn.
7134 (movsd_softfloat): Likewise.
7135 (movsd_store): Likewise.
7136 (movsd_load): Likewise.
7137 (extendsddd2): Likewise.
7138 (extendsdtd2): Likewise.
7139 (truncddsd2): Likewise.
7140 (movdd_hardfloat64): Fixup comment.
7141 (UNSPEC_MOVSD_LOAD): New constant.
7142 (UNSPEC_MOVSD_STORE): Likewise.
7144 2008-01-26 Jakub Jelinek <jakub@redhat.com>
7147 * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
7149 (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
7150 (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
7151 (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
7154 2008-01-26 David Edelsohn <edelsohn@gnu.org>
7157 * config.gcc: Separate AIX 5.3 from AIX 6.1.
7158 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
7159 __LONGDOUBLE128 too.
7160 * config/rs6000/aix61.h: New file.
7162 2008-01-26 Richard Sandiford <rsandifo@nildram.co.uk>
7164 PR rtl-optimization/34959
7165 * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
7166 popcount and parity rtxes the same mode as their operand.
7167 Truncate or extend the result to the return value's mode
7170 2008-01-26 Richard Sandiford <rsandifo@nildram.co.uk>
7173 * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
7174 * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
7175 to GOT_VERSION_REGNUM.
7176 (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
7177 (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
7178 * config/mips/mips.c (mips_emit_call_insn): New function.
7179 (mips_call_tls_get_addr): Call mips_expand_call directly.
7180 (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
7182 (mips16_build_call_stub): Likewise. Return the call insn or null.
7183 (mips_expand_call): Update the call to mips16_build_call_stub
7184 accordingly and a remove redundant condition. Assert that MIPS16
7185 stubs do not use lazy binding. Use mips_emit_call_insn and return
7187 (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
7189 (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
7190 (mips_avoid_hazard): Remove hazard_set handling.
7191 * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
7192 (UNSPEC_RESTORE_GP): ...this.
7193 (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
7194 (FAKE_CALL_REGNO): Rename to...
7195 (GOT_VERSION_REGNUM): ...this.
7196 (type): Add "ghost" value. Add an associated insn reservation.
7197 (hazard_set): Remove.
7198 (exception_receiver): Rename to...
7199 (restore_gp): ...this and update the unspec identifier accordingly.
7200 (exception_receiver, nonlocal_got_receiver): New expanders.
7201 (load_call<mode>): Use GOT_VERSION_REGNUM. Don't set
7202 FAKE_CALL_REGNO. Remove hazard_set attribute.
7203 (set_got_version, update_got_version): New patterns.
7205 2008-01-26 Danny Smith <dannysmith@users.sourceforge.net>
7208 * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
7210 2008-01-25 Joseph Myers <joseph@codesourcery.com>
7213 * doc/install.texi2html: Generate gcc-vers.texi.
7215 2008-01-25 DJ Delorie <dj@redhat.com>
7217 * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
7219 2008-01-25 Joseph Myers <joseph@codesourcery.com>
7221 * config/c4x: Remove directory.
7222 * config.gcc (crx-*, mt-*): Mark obsolete.
7223 (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
7224 h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
7225 sh-*-rtemscoff*): Remove cases.
7226 * defaults.h (C4X_FLOAT_FORMAT): Remove.
7227 * real.c (encode_c4x_single, decode_c4x_single,
7228 encode_c4x_extended, decode_c4x_extended, c4x_single_format,
7229 c4x_extended_format): Remove.
7230 * real.h (c4x_single_format, c4x_extended_format): Remove.
7231 * doc/extend.texi (interrupt, naked): Remove mention of attributes
7233 (Pragmas): Remove comment about c4x pragmas.
7234 * doc/install.texi (c4x): Remove target-specific instructions.
7235 * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
7236 * doc/md.texi (Machine Constraints): Remove C4x documentation.
7237 * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
7238 refer to C4x source files as examples.
7239 (C4X_FLOAT_FORMAT): Remove documentation.
7241 2008-01-25 Bernd Schmidt <bernd.schmidt@analog.com>
7243 * config/bfin/bfin.c (override_options): Reorder tests so that
7244 flag_pic gets enabled for -msep-data.
7246 2008-01-25 Richard Guenther <rguenther@suse.de>
7249 * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
7250 to its bitfield precision if required.
7252 2008-01-25 Jakub Jelinek <jakub@redhat.com>
7255 * tree-nested.c (walk_omp_for): New function.
7256 (convert_nonlocal_reference, convert_local_reference): Call
7257 walk_omp_for on OMP_FOR.
7258 (convert_call_expr): Call walk_body on OMP_FOR's
7259 OMP_FOR_PRE_INIT_BODY.
7261 2008-01-25 Richard Guenther <rguenther@suse.de>
7263 PR tree-optimization/34966
7264 * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
7265 default defs and PHI_NODEs we have to insert after the
7268 2008-01-24 Nick Clifton <nickc@redhat.com>
7270 * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
7271 Provide a default definition.
7272 (LIBGCC2_UNITS_PER_WORD): Likewise.
7274 * config/stormy16/stormy16.c: Include df.h for the prototype
7275 for df_regs_ever_live_p.
7276 (xstormy16_expand_builtin_va_start): Convert the stack offset
7277 into a component_ref and then use POINTER_PLUS_EXPR to add it
7278 to the incoming_virtual_args_rtx.
7279 (xstormy16_gimplify_va_arg_expr): Rename to
7280 xstormy16_gimplify_va_arg_expr.
7281 Use POINTER_PLUS_EXPR when performing pointer arithmetic.
7282 (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
7283 xstormy16_gimplify_va_arg_expr.
7284 Fix up some formatting issues.
7286 * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
7287 Move to predicates.md.
7288 (xs_hi_general_operand): Likewise.
7289 (xs_hi_nonmemory_operand): Likewise.
7290 * config/stormy16/predicates.md:
7291 (xstormy16_carry_plus_operand): New predicate.
7292 (xs_hi_general_operand): New predicate.
7293 (xs_hi_nonmemory_operand): New predicate.
7294 * config/stormy16/stormy16-protos.h:
7295 (xstormy16_carry_plus_operand): Delete prototype.
7296 (xs_hi_general_operand): Likewise.
7297 (xs_hi_nonmemory_operand): Likewise.
7299 * config/storm16/stormy16.md (addhi3): Remove earlyclobber
7300 modifiers as they are no longer needed and they can trigger
7301 reload spill failures.
7303 * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
7304 with a match_operand in order to help reload.
7306 * config/storm16/stormy16.md (movhi_internal): Replace 'r'
7307 constraint with 'e' for the 8th alternative as this version of
7308 the mov.w instruction only accepts the lower 8 registers.
7310 2008-01-25 Uros Bizjak <ubizjak@gmail.com>
7313 * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
7314 Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
7317 2008-01-25 Jakub Jelinek <jakub@redhat.com>
7320 * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
7322 2008-01-25 Golovanevsky Olga <olga@il.ibm.com>
7324 * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
7326 (remove_structure): Update allocations list before removing structure.
7328 2008-01-25 Golovanevsky Olga <olga@il.ibm.com>
7330 * ipa-struct-reorg.c (is_safe_cond_expr,
7331 create_new_stmts_for_cond_expr): Use integer_zerop function,
7332 that recognize not only zero-pointer, but zero-integer too.
7334 2008-01-25 Ben Elliston <bje@au.ibm.com>
7337 * fixproto: Escape "." in sed expression that strips leading "./".
7339 2008-01-24 H.J. Lu <hongjiu.lu@intel.com>
7342 * gcc.c (SWITCH_OK): Removed.
7343 (SWITCH_LIVE): Changed to bit.
7344 (SWITCH_FALSE): Likewise.
7345 (SWITCH_IGNORE): Likewise.
7346 (switchstr): Change live_cond to unsigned int.
7347 (process_command): Replace SWITCH_OK with 0.
7348 (do_self_spec): Likewise.
7349 (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
7350 (give_switch): Likewise.
7351 (used_arg): Likewise.
7352 (do_spec_1): Set the SWITCH_IGNORE bit.
7353 (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
7354 bits. Set the SWITCH_LIVE bit.
7356 2008-01-24 Andreas Krebbel <krebbel1@de.ibm.com>
7358 * config/s390/s390.h (MOVE_RATIO): Define new target macro.
7360 2008-01-24 Richard Sandiford <rsandifo@nildram.co.uk>
7362 PR tree-optimization/34472
7363 * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
7364 parameter to a "bool *" and set *DATA to false if there is
7365 an unsafe access. Do not delete the structure here.
7366 (check_cond_exprs): Delete it here instead.
7367 (check_cond_exprs, exclude_cold_structs): Do not increase
7368 I when removing a structure.
7370 2008-01-24 Uros Bizjak <ubizjak@gmail.com>
7373 * config/i386/i386.c (ix86_expand_vector_init): Consider only
7374 CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
7376 2008-01-24 Jakub Jakub Jelinek <jakub@redhat.com>
7379 * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
7380 a fixed vector for stack.
7382 2008-01-24 Ben Elliston <bje@au.ibm.com>
7385 * doc/gcc.texi (Software development): Add a direntry for g++.
7387 2008-01-23 Hans-Peter Nilsson <hp@axis.com>
7389 * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
7390 stale and straggling -fforce-addr comments above.
7392 * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
7394 * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
7395 * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
7397 2008-01-23 Michael Matz <matz@suse.de>
7400 * dwarf2out.c (force_type_die): Use modified_type_die instead of
7403 2008-01-23 Andreas Krebbel <krebbel1@de.ibm.com>
7405 * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
7408 2008-01-23 Anatoly Sokolov <aesok@post.ru>
7410 * config/avr/avr.c (avr_current_arch): New variable.
7411 (avr_arch_types): Add 'avr31' and 'avr51' entries.
7412 (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
7413 (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
7414 (avr_override_options): Init 'avr_current_arch'.
7415 (base_arch_s): Move from here...
7416 * config/avr/avr.h (base_arch_s): ... here. Add new members
7417 'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename
7418 'mega' to 'have_jmp_call'.
7419 (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__",
7420 "__AVR_HAVE_RAMPZ__", "__AVR_HAVE_ELPM__" and "__AVR_HAVE_ELPMX__"
7422 (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51'
7424 * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
7425 MULTILIB_MATCHES): (Ditto.).
7427 2008-01-23 Richard Guenther <rguenther@suse.de>
7430 * cgraphunit.c (cgraph_reset_node): Always mark the node
7431 not reachable if it is not queued already.
7433 2008-01-23 Bernd Schmidt <bernd.schmidt@analog.com>
7435 * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
7436 * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
7437 (cputype_selected): New static variable.
7438 (bfin_handle_option): Set it if -mcpu is used.
7439 (override_option): Select default set of workarounds if no cpu type
7440 selected on the command line.
7441 (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
7443 From Michael Frysinger <michael.frysinger@analog.com>
7444 * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
7445 BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
7447 * config/bfin/elf.h (LIB_SPEC): Use proper linker script
7448 for bf547, bf523, bf524, and bf526.
7449 * config/bfin/bfin.c (bfin_cpus[]): Add bf547, bf523, bf524, and
7451 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
7452 __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
7453 __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
7454 __ADSPBF547__ and __ADSPBF54x__ for bf547.
7455 * doc/invoke.texi (Blackfin Options): Document that
7456 -mcpu now accept bf547, bf523, bf524, and bf526.
7458 2008-01-22 Eric Botcazou <ebotcazou@adacore.com>
7460 PR rtl-optimization/34628
7461 * combine.c (try_combine): Stop and undo after the first combination
7462 if an autoincrement side-effect on the first insn has effectively
7465 2008-01-22 David Edelsohn <edelsohn@gnu.org>
7468 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
7469 Offset addresses are not valid for Altivec or paired float modes.
7471 2008-01-22 Jakub Jelinek <jakub@redhat.com>
7474 * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
7475 if DECL_INITIAL (decl) is error_mark_node.
7478 * c-common.c (handle_vector_size_attribute): Only allow
7479 integral, scalar float and fixed point types. Handle OFFSET_TYPE
7480 the same way as pointer, array etc. types.
7481 * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
7484 * tree.c (build_type_attribute_qual_variant): Call
7485 build_qualified_type if attributes are equal, but quals are not.
7487 2008-01-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
7490 * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
7491 * flags.h (warn_strict_aliasing): Remove.
7492 (warn_strict_overflow): Remove.
7493 * opts.c (warn_strict_aliasing): Remove.
7494 (warn_strict_overflow): Remove.
7495 * c-opts.c (c_common_handle_option): -Wall only sets
7496 -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
7497 (c_common_post_options): Give default values to -Wstrict-aliasing
7498 and -Wstrict-overflow if they are uninitialized.
7499 * common.opt (Wstrict-aliasing): Specify Var and Init.
7500 (Wstrict-overflow): Likewise.
7502 2008-01-22 Kenneth Zadeck <zadeck@naturalbridge.com>
7504 PR rtl-optimization/26854
7505 PR rtl-optimization/34400
7506 PR rtl-optimization/34884
7507 * ddg.c (create_ddg_dep_from_intra_loop_link): Use
7509 * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
7510 (df_rd_bb_info.expanded_lr_out): Deleted
7511 * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
7512 * loop_iv.c (iv_analysis_loop_init): Ditto. * df-problems.c
7513 (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
7514 df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
7515 Removed code to allocate, initialize or free expanded_lr_out.
7516 (df_rd_bb_local_compute_process_def): Restructured to make more
7518 (df_rd_confluence_n): Removed code to no apply invalidate_by_call
7519 sets if the sets are being trimmed.
7521 2008-01-22 H.J. Lu <hongjiu.lu@intel.com>
7524 * configure.ac (ld_vers): Support GNU linker version xx.xx.*
7525 (as_vers): Likewise.
7526 * configure: Regenerated.
7528 2008-01-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
7531 * tree-pass.h (pass_build_alias): New pass.
7532 * tree-ssa-alias.c (gate_build_alias): New.
7533 (pass_build_alias): New.
7534 * passes.c (init_optimization_passes): Add pass_build_alias after
7535 pass_create_structure_vars.
7537 2008-01-22 Wolfgang Gellerich <gellerich@de.ibm.com>
7539 * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
7540 Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
7541 (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
7542 S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
7543 (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
7544 S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
7545 (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
7546 S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
7547 (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
7548 (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
7549 (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
7550 (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
7551 * config/s390/s390.md (FP_ALL): New mode iterator.
7552 (_d): New mode attribute.
7553 ("*signbit<mode>2>"): Changed mode of first operand.
7554 ("isinf<mode>2"): Changed mode of first operand.
7555 ("*TDC_insn"): Adaptation for DFP modes.
7557 2008-01-22 Ben Elliston <bje@au.ibm.com>
7559 * tree.c (check_qualified_type): Improve function description.
7561 2008-01-21 Jason Merrill <jason@redhat.com>
7564 * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
7565 * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
7568 2008-01-21 DJ Delorie <dj@redhat.com>
7570 * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
7573 2008-01-21 Richard Guenther <rguenther@suse.de>
7576 * tree-cfg.c (verify_expr): Allow all invariant expressions
7577 instead of just constant class ones as reference argument.
7578 * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
7579 like any other constant.
7580 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
7582 2008-01-21 H.J. Lu <hongjiu.lu@intel.com>
7584 * regmove.c (fixup_match_1): Update call crossed frequencies.
7586 2008-01-21 Richard Guenther <rguenther@suse.de>
7589 * tree-inline.c (setup_one_parameter): Deal with mismatched
7590 types using a VIEW_CONVERT_EXPR.
7592 2008-01-21 Alon Dayan <alond@il.ibm.com>
7593 Olga Golovanevsky <olga@il.ibm.com>
7595 PR tree-optimization/34701
7596 * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
7597 when the structure size is not a power of 2.
7599 2008-01-20 Kenneth Zadeck <zadeck@naturalbridge.com>
7601 * doc/install.texi: Add doc for --enable-checking=df.
7603 2008-01-20 Kaz Kojima <kkojima@gcc.gnu.org>
7605 PR rtl-optimization/34808
7606 * emit-rtl.c (try_split): Handle REG_RETVAL notes.
7608 2008-01-20 Richard Sandiford <rsandifo@nildram.co.uk>
7610 * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
7613 2008-01-19 Kenneth Zadeck <zadeck@naturalbridge.com>
7615 PR rtl-optimization/26854
7616 PR rtl-optimization/34400
7617 * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
7619 * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
7620 (df_rd_bb_info.expanded_lr_out): New.
7621 * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
7622 * loop_iv.c (iv_analysis_loop_init): Ditto.
7623 * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
7624 df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
7625 Added code to allocate, initialize or free expanded_lr_out.
7626 (df_rd_bb_local_compute_process_def): Restructured to make
7627 more understandable.
7628 (df_rd_confluence_n): Add code to do nothing with fake edges and
7629 code to no apply invalidate_by_call sets if the sets are being trimmed.
7630 (df_lr_local_finalize): Renamed to df_lr_finalize.
7631 (df_live_local_finalize): Renamed to df_live_finalize.
7633 2008-01-20 Richard Sandiford <rsandifo@nildram.co.uk>
7636 * config/mips/mips.md (div<mode>3): Use <recip_condition> when
7637 deciding whether to use reciprocal instructions.
7639 2008-01-19 Uros Bizjak <ubizjak@gmail.com>
7641 * dwarf2out.c (dwarf2out_switch_text_section): Do not call
7642 dwarf2out_note_section_used if cold_text_section is NULL.
7644 2008-01-19 Jakub Jelinek <jakub@redhat.com>
7646 PR gcov-profile/34610
7647 * tree-cfg.c (make_edges): Mark both outgoing edges from
7648 OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
7649 * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
7650 from OMP_FOR and OMP_CONTINUE outgoing edges.
7652 * tree-profile.c (tree_profiling): Return early if
7653 cfun->after_tree_profile != 0. Set cfun->after_tree_profile
7655 * omp-low.c (expand_omp_parallel): Copy after_tree_profile
7656 from cfun to child_cfun.
7657 * function.h (struct function): Add after_tree_profile bit.
7659 2008-01-19 Anatoly Sokolov <aesok@post.ru>
7661 * config/avr/avr.S (_exit): Disable interrupt.
7663 2008-01-18 Kenneth Zadeck <zadeck@naturalbridge.com>
7664 Steven Bosscher <stevenb.gcc@gmail.com>
7666 PR rtl-optimization/26854
7667 PR rtl-optimization/34400
7668 * df-problems.c (df_live_scratch): New scratch bitmap.
7669 (df_live_alloc): Allocate df_live_scratch when doing df_live.
7670 (df_live_reset): Clear the proper bitmaps.
7671 (df_live_bb_local_compute): Only process the artificial defs once
7672 since the order is not important.
7673 (df_live_init): Init the df_live sets only with the variables
7674 found live by df_lr.
7675 (df_live_transfer_function): Use the df_lr sets to prune the
7676 df_live sets as they are being computed.
7677 (df_live_free): Free df_live_scratch.
7679 2008-01-18 Ian Lance Taylor <iant@google.com>
7681 * common.opt: Add fmerge-debug-strings.
7682 * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
7683 flag_merge_debug_strings rather than flag_merge_constants.
7684 * doc/invoke.texi (Option Summary): Mention
7685 -fmerge-debug-strings.
7686 (Debugging Options): Document -fmerge-debug-strings.
7688 2008-01-18 Ian Lance Taylor <iant@google.com>
7691 * tree.h (DECL_IS_OPERATOR_NEW): Define.
7692 (struct tree_function_decl): Add new field operator_new_flag.
7693 * tree-inline.c (expand_call_inline): When inlining a call to
7694 operator new, force the return value to go into a variable, and
7695 set DECL_NO_TBAA_P on that variable.
7696 * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
7698 2008-01-18 Uros Bizjak <ubizjak@gmail.com>
7701 * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
7702 DWARF2_DEBUGGING_INFO.
7703 (dwarf2out_note_section_used): Ditto. Add prototype.
7704 (have_multiple_function_sections, text_section_used,
7705 cold_text_section_used, *cold_text_sections): Move declarations
7708 2008-01-17 Bob Wilson <bob.wilson@acm.org>
7710 * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
7711 field and add signal_ra.
7712 * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
7713 assignments to frame state pc. Move end of stack check after
7714 MD_FALLBACK_FRAME_STATE_FOR.
7715 (uw_update_context_1): Use frame state signal_regs if set, instead
7716 of checking signal_frame flag.
7717 (uw_update_context): Use frame state signal_ra if set.
7718 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
7719 * config/xtensa/linux-unwind.h: New file.
7721 2008-01-18 Bernhard Fischer <aldot@gcc.gnu.org>
7723 * modulo-sched.c (get_sched_window): Fix comment typo.
7725 2008-01-17 Andrew MacLeod <amacleod@redhat.com>
7727 PR tree-optimization/34648
7728 * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
7730 2008-01-17 Anatoly Sokolov <aesok@post.ru>
7732 * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
7733 * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
7735 2008-01-17 Seongbae Park <seongbae.park@gmail.com>
7737 PR rtl-optimization/34400
7738 * df-core.c (df_worklist_dataflow_overeager,
7739 df_worklist_dataflow_doublequeue): New functions.
7740 (df_worklist_dataflow): Two different worklist solvers.
7741 * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
7744 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
7747 * doc/invoke.texi: Document the dependence on pthread for fopenmp
7748 and ftree-parallelize-loops.
7750 2008-01-17 Mircea Namolaru <namolaru@il.ibm.com>
7752 PR rtl-optimization/34826
7753 * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
7755 2008-01-17 Andreas Krebbel <krebbel1@de.ibm.com>
7757 * global.c (find_reg): Mark the eh regs as used if necessary.
7758 * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
7759 * ra.h (struct allocno): no_eh_reg field added. Changed
7760 no_stack_reg type to bitfield.
7762 2008-01-17 Eric Botcazou <ebotcazou@adacore.com>
7764 * tree.c (substitute_in_expr): Add missing 'break'.
7766 2008-01-17 Richard Guenther <rguenther@suse.de>
7768 PR tree-optimization/34825
7769 * tree-ssa-math-opts.c (is_division_by): Do not recognize
7770 x / x as division to handle.
7772 2008-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7774 * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
7775 "-pthread" is specified.
7776 * pa-hpux11.h (LIB_SPEC): Likewise.
7778 2008-01-16 Janis Johnson <janis187@us.ibm.com>
7779 Peter Bergner <bergner@vnet.ibm.com>
7781 PR rtl-optimization/33796
7782 * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
7784 2008-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7786 PR libgfortran/34699
7787 * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
7789 * pa-hpux10.h (LINK_SPEC): Likewise.
7790 * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
7792 2008-01-16 Richard Guenther <rguenther@suse.de>
7795 * fold-const.c (fold_convert_const_int_from_int): Do not
7796 set overflow if that occured only because of a sign extension
7797 change when converting from/to a sizetype with the same
7798 precision and signedness.
7800 2008-01-16 Uros Bizjak <ubizjak@gmail.com>
7803 * dwarf2out.c (output_call_frame_info): Move output of FDE initial
7804 location address to the correct place. Update copyright year.
7806 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
7808 * lambda-code.c (lambda_transform_legal_p): Handle the case of
7809 no dependences in the dependence_relations vector.
7811 2008-01-16 Jan Hubicka <jh@suse.cz>
7813 PR rtl-optimization/31396
7814 * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
7815 * cfg.c (dump_reg_info): Print it.
7816 * regs.h (struct reg_info_t): add freq_calls_crossed.
7817 (REG_FREQ_CALLS_CROSSED): New macro.
7818 * global.c (global_alloc): Compute freq_calls_crossed for allocno.
7819 (find_reg): Update call of CALLER_SAVE_PROFITABLE.
7820 * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
7821 regmove_optimize): Update call crossed frequencies.
7822 * local-alloc.c (struct qty): Add freq_calls_crossed.
7823 (alloc_qty): Copute freq_calls_crossed.
7824 (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
7825 (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
7826 * ra.h (struct allocno): Add freq_calls_crossed.
7828 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
7830 * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
7831 libgomp when compiling with ftree-parallelize-loops.
7832 (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
7834 2008-01-16 Richard Guenther <rguenther@suse.de>
7836 PR tree-optimization/34769
7837 * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
7838 * tree.c (int_cst_value): Instead make this function more
7839 permissive in what it accepts as valid input. Document this
7840 function always sign-extends the value.
7842 2008-01-16 Jakub Jelinek <jakub@redhat.com>
7843 Richard Guenther <rguenther@suse.de>
7846 * gimplify.c (fold_indirect_ref_rhs): Rename to ...
7847 (gimple_fold_indirect_ref_rhs): ... this.
7848 (gimple_fold_indirect_ref): New function with foldings
7849 that preserve lvalueness.
7850 (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
7851 * tree-flow.h (gimple_fold_indirect_ref): Declare.
7852 * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
7853 to fold an INDIRECT_REF, fall back to the old use of
7854 fold_indirect_ref_1.
7856 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
7858 * tree-data-ref.c (subscript_dependence_tester_1): Call
7859 free_conflict_function.
7860 (compute_self_dependence): Same.
7862 2008-01-16 Uros Bizjak <ubizjak@gmail.com>
7865 * debug.h (dwarf2out_switch_text_section): Move declaration from ...
7866 * dwarf2out.c (dwarf2out_switch_text_section): ... here. Make
7868 * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
7869 Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
7870 for DWARF2_UNWIND_INFO targets.
7872 2008-01-16 Richard Guenther <rguenther@suse.de>
7875 * c-typeck.c (common_pointer_type): Do not merge inconsistent
7876 type qualifiers for function types.
7878 2008-01-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
7880 * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
7881 loop_iterator li from previous commit.
7883 2008-01-15 Sebastian Pop <sebastian.pop@amd.com>
7885 * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
7887 2008-01-12 Sebastian Pop <sebastian.pop@amd.com>
7889 * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
7890 (parallelize_loops): Don't parallelize irreducible components.
7892 2008-01-14 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
7895 * c-opts (c_common_post_options): Do not enable CPP
7896 flag_pedantic_errors by default.
7898 2008-01-14 Eric Botcazou <ebotcazou@adacore.com>
7900 PR rtl-optimization/31944
7901 * cse.c (remove_pseudo_from_table): New function.
7902 (merge_equiv_classes): Use above function to remove pseudo-registers.
7903 (invalidate): Likewise.
7905 2008-01-13 Richard Guenther <rguenther@suse.de>
7908 * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
7909 instead of TYPE_MODE to deal with calls from expand_one_error_var.
7911 2008-01-13 Uros Bizjak <ubizjak@gmail.com>
7913 * gcse.c (cprop_jump): Call validate_unshare_change instead of
7914 validate_change to unshare the source of the PC set.
7916 2008-01-12 Jan Hubicka <jh@suse.cz>
7919 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
7920 references above array bounds. This might trigger bounds checks for
7923 2008-01-12 Sebastian Pop <sebastian.pop@amd.com>
7925 * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
7926 new_replaceable_dependencies.
7928 2008-01-12 Doug Kwan <dougkwan@google.com>
7930 * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
7931 instead of OPT_Wreturn_type in warning due to ignored return type
7933 * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
7934 options included in -Wextra.
7935 * c.opt: New option -Wignored_qualifiers.
7936 * doc/invoke.texi (Warning Options, -Wextra): Add new option
7937 -Wignore_qualifiers.
7938 (-Wignored-qualifiers): Document.
7939 (-Wreturn-type): Remove description of functionality now handled
7940 by -Wignored-qualifiers.
7942 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
7945 * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
7946 NOP_EXPR if it is between integral types with the same precision.
7948 2008-01-12 Jan Hubicka <jh@suse.cz>
7951 * invoke.texi (max-inline-recursive-depth): Fix default value.
7953 2008-01-12 Zdenek Dvorak <ook@ucw.cz>
7955 * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
7958 2008-01-11 Bob Wilson <bob.wilson@acm.org>
7960 * config/xtensa/xtensa.c (override_options): Set flag_shlib.
7962 2008-01-11 James E. Wilson <wilson@specifix.com>
7965 * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
7967 2008-01-11 Anatoly Sokolov <aesok@post.ru>
7969 * config/avr/avr.c (expand_prologue, expand_epilogue): Don't
7970 save/restore frame pointer register and don't use 'call-prologues'
7971 optimization in function with "OS_task" attribute.
7973 2008-01-11 Eric Botcazou <ebotcazou@adacore.com>
7976 * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
7977 when copying to memory.
7979 2008-01-11 Steven Bosscher <stevenb.gcc@gmail.com>
7981 PR rtl-optimization/30905
7982 * cfgcleanup.c: Include dce.h
7983 (crossjumps_occured): New global variable.
7984 (try_crossjump_bb): Exit loop after finding a fallthru edge.
7985 If something changed, set crossjumps_occured to true.
7986 (try_optimize_cfg): Clear crossjumps_occured at the beginning.
7987 Don't add/remove fake edges to exit here...
7988 (cleanup_cfg): ...but do it here, when crossjumping.
7989 Run a fast DCE when successful crossjumps occured in the latest
7990 iteration of try_optimize_cfg.
7992 2008-01-11 Richard Guenther <rguenther@suse.de>
7994 * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
7995 (struct vn_unary_op_s): Likewise.
7996 (vn_reference_insert): Free old reference on hash collision.
7998 2008-01-10 Raksit Ashok <raksit@google.com>
8000 PR rtl-optimization/27971
8001 * combine.c (find_split_point): Split PLUS expressions which are
8002 inside a MEM rtx, and whose first operand is complex.
8004 2008-01-10 DJ Delorie <dj@redhat.com>
8006 * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
8007 (m32c_hard_regno_nregs): ...this, which is now a wrapper.
8008 (m32c_hard_regno_ok): Call the underlying function.
8010 2008-01-10 Richard Guenther <rguenther@suse.de>
8013 * tree-cfg.c (tree_merge_blocks): Do not go through the
8014 full-blown folding and stmt updating path if we just deal
8015 with virtual operands.
8016 * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
8017 test for abnormal SSA_NAMEs.
8019 2008-01-10 Andreas Krebbel <krebbel1@de.ibm.com>
8022 * reload.c (push_reload): Add assertions. All constants from
8023 reg_equiv_constant should have been used for replacing the respective
8025 (find_reloads_address): Invoke find_reloads_address_part for
8026 constant taken from the reg_equiv_constant array.
8028 2008-01-10 Steven Bosscher <stevenb.gcc@gmail.com>
8030 * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
8031 field (valnum) the first in the struct. Replace bools with
8034 2008-01-10 Richard Guenther <rguenther@suse.de>
8036 PR tree-optimization/34651
8037 * tree-sra.c (sra_build_assignment): Sanitize. Use the correct
8038 types and ordering for masking and converting.
8040 2008-01-09 Sebastian Pop <sebastian.pop@amd.com>
8042 PR tree-optimization/34017
8043 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
8044 also for PHI_NODE expressions.
8046 2008-01-09 Jan Hubicka <jh@suse.cz>
8048 PR tree-optimization/34708
8049 * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
8050 based on number of case labels.
8051 (init_inline_once): Remove switch_cost.
8052 * tree-inline.h (eni_weights_d): Remove switch_cost.
8054 2008-01-09 Richard Guenther <rguenther@suse.de>
8055 Andrew Pinski <andrew_pinski@playstation.sony.com>
8058 * gimplify.c (gimplify_cond_expr): Do not create an addressable
8059 temporary if an rvalue is ok or an lvalue is not required.
8061 2008-01-09 Richard Guenther <rguenther@suse.de>
8064 * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
8067 2008-01-09 Richard Guenther <rguenther@suse.de>
8070 * tree.c (host_integerp): Check for sizetype only if the
8071 type is an integer type.
8073 2008-01-09 Steven Bosscher <stevenb.gcc@gmail.com>
8076 * opts.c (decode_options): Disable inlining of functions called
8077 once if not in unit-at-a-time mode.
8079 2008-01-09 Alexandre Oliva <aoliva@redhat.com>
8081 * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
8083 2008-01-08 Richard Guenther <rguenther@suse.de>
8086 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
8087 out early if the result will be unused.
8089 2008-01-08 Uros Bizjak <ubizjak@gmail.com>
8094 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
8095 * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
8098 2008-01-08 Jan Sjodin <jan.sjodin@amd.com>
8100 * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
8101 for vectorization tuned.
8103 2008-01-08 Richard Guenther <rguenther@suse.de>
8105 PR tree-optimization/34683
8106 * tree-ssa-operands.c (operand_build_cmp): Export.
8107 * tree-ssa-operands.h (operand_build_cmp): Declare.
8108 * tree-vn.c (vuses_compare): Remove.
8109 (sort_vuses): Use operand_build_cmp.
8110 (sort_vuses_heap): Likewise.
8111 * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
8112 to re-use old VEC if available. Do not sort already sorted VUSEs.
8113 (vdefs_to_vec): Do not sort already sorted VDEFs.
8115 2008-01-08 Jakub Jelinek <jakub@redhat.com>
8118 * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
8120 2008-01-08 Uros Bizjak <ubizjak@gmail.com>
8123 * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
8124 limitations of reciprocal sequences on x86 targets.
8126 2008-01-08 Richard Guenther <rguenther@suse.de>
8128 PR tree-optimization/34683
8129 * tree-flow-inline.h (var_ann): Remove overzealous asserts.
8131 2008-01-07 Jakub Jelinek <jakub@redhat.com>
8134 * config/darwin.c (darwin_mergeable_string_section): Don't use
8135 .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
8137 2008-01-07 Uros Bizjak <ubizjak@gmail.com>
8140 * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
8141 negxf2. Macroize expander using X87MODEF mode iterator. Change
8142 predicates of op0 and op1 to register_operand.
8143 (abs<mode>2): Rename from abssf2, absdf2 and negxf2. Macroize
8144 expander using X87MODEF mode iterator. Change predicates of
8145 op0 and op1 to register_operand.
8146 ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
8147 corresponding patterns and macroize using MODEF macro. Change
8148 predicates of op0 and op1 to register_operand and remove
8149 "m" constraint. Disparage "r" alternative with "!".
8150 ("*absneg<mode>2_i387"): Rename from corresponding patterns and
8151 macroize using X87MODEF macro. Change predicates of op0 and op1
8152 to register_operand and remove "m" constraint. Disparage "r"
8153 alternative with "!".
8154 (absneg splitter with memory operands): Remove.
8155 ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
8156 patterns and macroize using X87MODEF mode iterator.
8157 * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
8158 Change predicate of op1 to register_operand.
8159 * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
8160 for memory operands.
8162 2008-01-07 Nathan Froyd <froydnj@codesourcery.com>
8164 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
8166 2008-01-07 Richard Guenther <rguenther@suse.de>
8168 * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
8171 2008-01-07 Richard Guenther <rguenther@suse.de>
8173 PR tree-optimization/34683
8174 * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
8175 VOPs of the needed size to save memory. Use VEC_quick_push
8176 to save compile-time.
8177 (vdefs_to_vec): Likewise.
8179 2008-01-07 Sa Liu <saliu@de.ibm.com>
8181 * config/spu/spu.md (divdf3): Genetate inline code for double
8182 division. The implementation doesn't handle INF or NAN, therefore it
8183 only applies when -ffinite-math-only is given.
8185 2008-01-06 Paolo Carlini <pcarlini@suse.de>
8188 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
8189 * doc/cpp.texi ([Common Predefined Macros]): Document.
8191 2008-01-06 Uros Bizjak <ubizjak@gmail.com>
8193 * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
8194 order to use commutative addition instead of subtraction.
8196 2008-01-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
8197 Mircea Namolaru <namolaru@il.ibm.com>
8198 Vladimir Yanovsky <yanov@il.ibm.com>
8199 Revital Eres <eres@il.ibm.com>
8201 PR tree-optimization/34263
8202 * tree-outof-ssa.c (process_single_block_loop_latch,
8203 contains_tree_r): New functions.
8204 (analyze_edges_for_bb): Call process_single_block_loop_latch
8205 function to empty single-basic-block latch block if possible.
8207 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
8209 * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
8211 (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
8213 2008-01-05 Richard Sandiford <rsandifo@nildram.co.uk>
8215 * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
8217 2008-01-05 Richard Sandiford <rsandifo@nildram.co.uk>
8219 * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
8221 2008-01-05 Jakub Jelinek <jakub@redhat.com>
8223 PR tree-optimization/34618
8224 * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
8227 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
8230 * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
8231 in the call to gen_rtx_NE. Remove unneeded VECTOR_MODE_P check.
8232 Update copyright year.
8234 * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
8235 Update copyright year.
8236 * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
8239 2008-01-05 Zhouyi Zhou <zhouzhouyi@FreeBSD.org>
8241 * tree-vrp.c (find_conditional_asserts): Remove redundant check that
8242 edge does not point to current bb before changing need_assert.
8244 2008-01-04 Richard Guenther <rguenther@suse.de>
8247 * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
8248 for verifying purposes if they are is_gimple_min_invariant.
8250 2008-01-04 Aldy Hernandez <aldyh@redhat.com>
8252 PR tree-optimization/34448
8253 PR tree-optimization/34465
8254 * gimplify.c (gimplify_init_constructor): Add new parameter
8255 notify_temp_creation. Use it.
8256 (gimplify_modify_expr_rhs): Take volatiles into account when
8257 optimizing constructors.
8258 Do not optimize constructors if gimplify_init_constructor will dump to
8260 * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
8261 * gcc.c-torture/compile/pr34448.c: New.
8263 2008-01-04 Jakub Jelinek <jakub@redhat.com>
8265 PR gcov-profile/34609
8266 * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
8267 return_slot if result is TREE_ADDRESSABLE.
8269 2008-01-04 Richard Sandiford <rsandifo@nildram.co.uk>
8271 * config/mips/mips.md (sqrt_condition): Tweak comment.
8272 (recip_condition): Likewise. Require TARGET_FLOAT64 for DFmode.
8274 2008-01-03 Tom Tromey <tromey@redhat.com>
8277 * c-common.c (c_type_hash): Handle VLAs.
8279 2008-01-03 Jan Hubicka <jh@suse.cz>
8281 PR tree-optimization/31081
8282 * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
8283 0 when inlining and not inlining to first basic block.
8284 (remap_decl): When var is initialized to 0, don't set default_def.
8285 (expand_call_inline): Set entry_bb.
8286 * tree-inline.h (copy_body_data): Add entry_bb.
8288 2008-01-03 Jakub Jelinek <jakub@redhat.com>
8291 * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
8294 PR tree-optimization/29484
8295 * tree-inline.c (inline_forbidden_p_2): New function.
8296 (inline_forbidden_p): Disallow inlining if some static var
8297 has an address of a local LABEL_DECL in its initializer.
8298 * doc/extend.texi (Labels as Values): Document &&foo behaviour
8301 2008-01-03 Sebastian Pop <sebastian.pop@amd.com>
8303 PR tree-optimization/34635
8304 * tree-data-ref.c (add_other_self_distances): Make sure that the
8305 evolution step is constant.
8307 2008-01-03 Jakub Jelinek <jakub@redhat.com>
8310 * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
8312 2008-01-02 Richard Sandiford <rsandifo@nildram.co.uk>
8314 * tree-sra.c (scalarize_init): Insert the generate_element_init
8315 statements after the generate_element_zero statements.
8317 2008-01-02 Richard Guenther <rguenther@suse.de>
8321 * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
8322 for very large number of operands instead of ICEing.
8324 2008-01-02 Arthur Norman <acn1@cam.ac.uk>
8327 * config/i386/i386.c (ix86_expand_prologue): Save red-zone
8328 while stack probing.
8330 2008-01-01 Douglas Gregor <doug.gregor@gmail.com>
8332 * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
8335 2008-01-01 Volker Reichelt <v.reichelt@netcologne.de>
8338 * tree-mudflap.c (mx_register_decls): Guard warning by
8339 !DECL_ARTIFICIAL check.
8341 2008-01-01 Jakub Jelinek <jakub@redhat.com>
8343 * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
8344 sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
8345 sse5_perm<mode>): Fix constraints.