]> gcc.gnu.org Git - gcc.git/blob - gcc/ChangeLog
re PR tree-optimization/43879 (-fipa-pta causes various miscompilations)
[gcc.git] / gcc / ChangeLog
1 2010-05-04 Richard Guenther <rguenther@suse.de>
2
3 PR tree-optimization/43879
4 * tree-ssa-structalias.c (alias_get_name): Use
5 DECL_ASSEMBLER_NAME if available.
6 (create_function_info_for): Return the varinfo node.
7 (ipa_pta_execute): Associate same-body aliases and extra names
8 with their origin nodes varinfo. Dump DECL_ASSEMBLER_NAME.
9
10 2010-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
11
12 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove
13 static.
14
15 2010-05-04 Mikael Pettersson <mikpe@it.uu.se>
16
17 PR bootstrap/43964
18 * ira-color.c (assign_hard_reg): Declare rclass and add_cost
19 only if HONOR_REG_ALLOC_ORDER is not defined.
20
21 2010-05-04 Richard Guenther <rguenther@suse.de>
22
23 PR tree-optimization/43949
24 * tree-vrp.c (extract_range_from_binary_expr): Only handle
25 TRUNC_MOD_EXPR.
26
27 2010-04-26 Jason Merrill <jason@redhat.com>
28
29 * c.opt (-fstrict-enums): New.
30 * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
31
32 2010-05-03 David Ung <davidu@mips.com>
33 James E. Wilson <wilson@codesourcery.com>
34
35 * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
36 emit the trap instruction before the divide for TUNE_74K.
37
38 2010-05-03 Steven Bosscher <steven@gcc.gnu.org>
39
40 * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
41 (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
42 based on the above, for new target hook.
43
44 * hooks.c (hook_bool_mode_true): New generic hook.
45 * hooks.h (hook_bool_mode_true): Add prototype.
46
47 * target.h (struct gcc_target): Add small_register_classes_for_mode_p
48 target hook.
49 * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
50 target hook, set to hook_bool_mode_false.
51 * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
52 * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
53 with targetm.small_register_classes_for_mode_p.
54 (find_reusable_reload): Likewise.
55 (combine_reloads): Likewise.
56 * reload1.c (reload_as_needed): Likewise.
57 * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
58 * ifcvt.c (noce_process_if_block, check_cond_move_block,
59 dead_or_predicable): Likewise.
60 * regmove.c (optimize_reg_copy_1): Likewise.
61 * calls.c (prepare_call_address): Likewise.
62 (precompute_register_parameters): Likewise.
63
64 * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
65 hook definition.
66 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
67 implementation of the hook that considers all register classes
68 small except for SH64.
69 (sh_override_options): Use the new hook.
70 * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
71 Add prototype.
72
73 * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
74 hook definition.
75 * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
76 implementation of the hook that considers all register classes
77 small for THUMB1.
78 * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
79 Add prototype.
80
81 * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
82 hook definition.
83 * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
84 implementation of the hook that considers all register classes
85 small for MIPS16.
86 * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
87 Add prototype.
88
89 * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
90 hook definition.
91 * config/m32c/m32c.h: Likewise.
92 * config/pdp11/pdp11.h: Likewise.
93 * config/avr/avr.h: Likewise.
94 * config/xtensa/xtensa.h: Likewise.
95 * config/m68hc11/m68hc11.h: Likewise.
96 * config/mn10300/mn10300.h: Likewise.
97 * config/mcore/mcore.h: Likewise.
98 * config/h8300/h8300.h: Likewise.
99 * config/bfin/bfin.h: Likewise.
100
101 * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
102 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
103
104 2010-05-03 Anatoly Sokolov <aesok@post.ru>
105
106 * double-int.h (tree_to_double_int): Remove macro.
107 (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
108 * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
109 (tree_to_double_int): New function.
110 * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
111 Move ...
112 * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
113
114 2010-05-03 Richard Guenther <rguenther@suse.de>
115
116 PR tree-optimization/43971
117 * tree-ssa-structalias.c (get_constraint_for_1): Fix
118 constraints in the !flag_delete_null_pointer_checks case.
119
120 2010-05-03 Jakub Jelinek <jakub@redhat.com>
121
122 PR debug/43972
123 * config/i386/i386.c (ix86_delegitimize_address): Make sure the
124 result mode matches original rtl mode.
125
126 2010-05-03 Dave Korn <dave.korn.cygwin@gmail.com>
127
128 PR target/43888
129 * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
130
131 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
132
133 * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
134 when processing flag options.
135
136 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
137
138 * gcov-iov.c (main): Change format string placeholder
139 from %#08x to 0x%08x.
140 * genchecksum.c (dosum): Change format string placeholder
141 from %#02x to 0x%02x.
142
143 2010-05-02 Richard Guenther <rguenther@suse.de>
144
145 PR tree-optimization/43879
146 * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
147
148 2010-05-02 Bruno Haible <bruno@clisp.org>
149
150 * doc/extend.texi (Function Attributes): Fix a typo.
151
152 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
153
154 Revert:
155 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
156 placeholder from 0x%x to %#x.
157 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
158 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
159 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
160 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
161 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
162 * config/i386/i386.c (ix86_target_string): Ditto.
163 * config/i386/i386.c (output_pic_addr_const): Ditto.
164 (print_operand): Ditto.
165
166 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
167
168 * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
169 placeholder from 0x%x to %#x.
170 (ASM_OUTPUT_DEBUG_DATA1): Ditto.
171 (ASM_OUTPUT_DEBUG_DATA4): Ditto.
172 (ASM_OUTPUT_DEBUG_DATA): Ditto.
173 (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
174 (ASM_OUTPUT_DEBUG_DATA8): Ditto.
175 * optc-gen.awk: Ditto.
176 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
177 (HOST_WIDE_INT_PRINT_HEX): Ditto.
178 (HOST_WIDEST_INT_PRINT_HEX): Ditto.
179 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
180
181 2010-05-01 Anatoly Sokolov <aesok@post.ru>
182
183 * target.h (struct calls): Add function_value_regno_p field.
184 * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
185 (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
186 * targhooks.c (default_function_value_regno_p): New function.
187 * targhooks.h (default_function_value_regno_p): Declare function.
188 * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
189 * builtins.c. (apply_result_size): (Ditto.).
190 * combine.c. (likely_spilled_retval_p): (Ditto.).
191 * mode-switching.c. Include 'target.h'.
192 (create_pre_exit): Use function_value_regno_p hook.
193 * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
194 * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
195 TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
196
197 * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
198 * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
199 (ix86_function_value_regno_p): Declare as static, change argument
200 type to const unsigned int.
201 * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
202
203 2010-05-01 Richard Guenther <rguenther@suse.de>
204
205 PR tree-optimization/43949
206 * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
207 types.
208 (extract_range_from_binary_expr): Handle *_MOD_EXPR.
209
210 2010-05-01 Anatoly Sokolov <aesok@post.ru>
211
212 * rtl.h (CONST_DOUBLE_P): Define.
213 (rtx_to_double_int): Declare.
214 * emit-rtl.c (rtx_to_double_int): New function.
215 * dwarf2out.c (insert_double): New function.
216 (loc_descriptor, add_const_value_attribute): Clean up, use
217 rtx_to_double_int and insert_double functions.
218
219 2010-05-01 Jonathan Wakely <jwakely.gcc@gmail.com>
220
221 * doc/extend.texi (Inline): Add missing return keyword to examples.
222 (Function Attributes, Variable Attributes, Pragmas): Hyphenate
223 "command-line".
224
225 2010-04-30 Eric Botcazou <ebotcazou@adacore.com>
226
227 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
228 the variable part of the offset as well. Use highest_pow2_factor for
229 all alignment checks.
230
231 2010-04-30 Richard Guenther <rguenther@suse.de>
232
233 PR tree-optimization/43879
234 * tree-ssa-structalias.c (type_could_have_pointers): Functions
235 can have pointers.
236
237 2010-04-30 Jan Hubicka <jh@suse.cz>
238
239 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
240 varpool.
241 (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
242
243 2010-04-30 Jan Hubicka <jh@suse.cz>
244
245 * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
246 New.
247 * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
248 * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
249 (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
250 cgraph_node_set_needs_ltrans_p): Remove.
251
252 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
253
254 * sdbout.c: Include vec.h, do not include varray.h.
255 (deferred_global_decls, sdbout_global_decl,
256 sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
257 * toplev.c: Do not include varray.h.
258 (dump_memory_report): Do not dump VARRAY statistics.
259 * gengtype.c (open_base_file): Ignore varray.h.
260 * Makefile.in: Update for abovementioned changes.
261 Remove all traces of varray.c and varray.h.
262 * varray.c: Remove file.
263 * varray.h: Remove file.
264
265 2010-04-30 Jan Hubicka <jh@suse.cz>
266
267 * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
268 references.
269
270 2010-04-30 Jan Hubicka <jh@suse.cz>
271
272 * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
273 needed.
274
275 2010-04-30 Richard Guenther <rguenther@suse.de>
276
277 * tree-ssa-structalias.c (get_constraint_for_1): Generate
278 constraints for CONSTRUCTOR.
279
280 2010-04-30 Richard Guenther <rguenther@suse.de>
281
282 PR lto/43946
283 * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
284 first after all lowering passes.
285
286 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
287
288 * toplev.c: Include varray.h for statistics dumping.
289 * tree.h: Do not declare varray_head_tag.
290 * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
291 regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
292 c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
293 gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
294 lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
295 tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
296 c-common.c, c-common.h, reg-stack.c, basic-block.h,
297 tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
298 include varray.h.
299 * Makefile.in: Update for abovementioned changes.
300
301 2010-04-30 Jakub Jelinek <jakub@redhat.com>
302
303 PR debug/43942
304 * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
305
306 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
307
308 * config/picochip/picochip.c (picochip_legitimize_address): Define.
309 Use this function to do machine-specific conversion.
310 (picochip_legitimize_reload_address): Likewise.
311 (picochip_legitimate_address_p): Check valid base register only if
312 strict.
313 (picochip_check_conditional_copy): Check for modw only if opnd is
314 register.
315 * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
316 to call the function in c.
317 * config/picochip/picochip-protos.h
318 (picochip_legitimize_reload_address): Define.
319 * config/picochip/picochip.md (supported_compare1): Define.
320
321 2010-04-30 Jan Hubicka <jh@suse.cz>
322
323 * cgraph.h (cgraph_local_info): Remove for_functions_valid.
324 (cgraph_global_info): Remove inlined.
325 (LTO_cgraph_tag_names): Remove.
326 (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
327 * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
328 simplify cgraph tags and document.
329 (lto_output_node): Use only LTO_cgraph_unavail_node and
330 LTO_cgraph_analyzed_node; Do not save analzed, reachable,
331 for_functions_valid, global info, process and output flags.
332 (input_overwrite_node): Initialize estimated stack size and
333 estimated growth. Do not read flags we no longer store.
334 (input_node): Likewise do not read info no longer stored.
335 * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
336 flag.
337
338 2010-04-30 Richard Guenther <rguenther@suse.de>
339
340 PR tree-optimization/43879
341 * tree-ssa-structalias.c (get_constraint_for_1): Properly
342 handle non-zero initializers.
343
344 2010-04-30 Richard Guenther <rguenther@suse.de>
345
346 * builtins.c (fold_builtin_1): Delete free (0).
347
348 2010-04-29 Jan Hubicka <jh@suse.cz>
349
350 * gengtype.c (open_base_files): Add lto-streamer.h
351 * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
352 (pass_ipa_cp): GGC collect.
353 * toplev. (compile_file): Do not output symbols.
354 * ipa-inline.c (pass_ipa_inline): Add ggc collect.
355 * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
356 TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
357 * lto-section-in.c: Include ggc.h
358 (lto_new_in_decl_state): Alloc in GGC.
359 (lto_delete_in_decl_state): Likewise.
360 * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
361 Collect.
362
363 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
364
365 PR target/42895
366 * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
367 ORDER_REGS_FOR_LOCAL_ALLOC. All instances of this macro changed.
368 (HONOR_REG_ALLOC_ORDER): Describe new macro.
369 * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
370 * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
371 account only if HONOR_REG_ALLOC_ORDER is not defined.
372 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
373 * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
374
375 2010-04-29 Jon Grant <04@jguk.org>
376
377 * collect2.c (vflag): Change type from int to bool.
378 (debug): Likewise.
379 (helpflag): New global bool.
380 (main): Set vflag and debug with boolean, not integer truth values.
381 Accept new "--help" option and output usage text if found.
382 * collect2.h (vflag): Update prototype.
383 (debug): Likewise.
384
385 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
386
387 PR bootstrap/43936
388 * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
389
390 2010-04-29 Richard Guenther <rguenther@suse.de>
391
392 PR bootstrap/43935
393 * plugin.h (invoke_plugin_callbacks): Annotate arguments
394 with ATTRIBUTE_UNUSED.
395
396 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
397
398 PR target/43921
399 * config/i386/i386.c (get_some_local_dynamic_name): Replace
400 INSN_P with NONDEBUG_INSN_P.
401 (distance_non_agu_define): Likewise.
402 (distance_agu_use): Likewise.
403
404 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
405
406 From Dominique d'Humieres <dominiq@lps.ens.fr>
407 PR bootstrap/43858
408 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
409 test_set.
410
411 2010-04-29 Brian Hackett <bhackett1024@gmail.com>
412
413 * plugin.h (invoke_plugin_callbacks): New inline function.
414 * plugin.c (flag_plugin_added): New global flag.
415 (add_new_plugin): Initialize above flag.
416 (invoke_plugin_callbacks): Rename to ...
417 (invoke_plugin_callbacks_full): ... this.
418
419 2010-04-28 Jan Hubicka <jh@suse.cz>
420
421 * lto-symtab.c (lto_symtab_entry_def) Add vnode.
422 (lto_varpool_replace_node): New.
423 (lto_symtab_resolve_symbols): Resolve varpool nodes.
424 (lto_symtab_merge_decls_1): Prefer decls with varpool node.
425 (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
426 * cgraph.h (varpool_node_ptr): New type.
427 (varpool_node_ptr): New vector.
428 (varpool_node_set_def): New structure.
429 (varpool_node_set): New type.
430 (varpool_node_set): New vector.
431 (varpool_node_set_element_def): New structure.
432 (varpool_node_set_element, const_varpool_node_set_element): New types.
433 (varpool_node_set_iterator): New type.
434 (varpool_node): Add prev pointers, add used_from_other_partition,
435 in_other_partition.
436 (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
437 varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
438 varpool_get_node, varpool_remove_node): Declare.
439 (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
440 varpool_node_set_size): New inlines.
441 * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
442 * tree-pass.h (varpool_node_set_def): Forward declare.
443 (ipa_opt_pass_d): Summary writting takes vnode sets too.
444 (ipa_write_optimization_summaries): Update prototype.
445 * ipa-cp.c (ipcp_write_summary): Update.
446 * ipa-reference.c (ipa_reference_write_summary): Update.
447 * lto-cgraph.c (lto_output_varpool_node): New static function.
448 (output_varpool): New function.
449 (input_varpool_node): New static function.
450 (input_varpool_1): New function.
451 (input_cgraph): Input varpool.
452 * ipa-pure-const.c (pure_const_write_summary): Update.
453 * lto-streamer-out.c (lto_output): Update, output varpool too.
454 (write_global_stream): Kill WPA hack.
455 (produce_asm_for_decls): Update.
456 (output_alias_pair_p): Handle variables.
457 (output_unreferenced_globals): Output only needed partition of varpool.
458 * ipa-inline.c (inline_write_summary): Update.
459 * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
460 cgraph.
461 * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
462 * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
463 varpool_node_set_new, varpool_node_set_add,
464 varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
465 debug_varpool_node_set): New functions.
466 * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
467 (execute_one_pass): Process new decls too.
468 (ipa_write_summaries_2): Pass around vsets.
469 (ipa_write_summaries_1): Likewise.
470 (ipa_write_summaries): Build vset; be more selective about cgraph nodes
471 to add.
472 (ipa_write_optimization_summaries_1): Pass around vsets.
473 (ipa_write_optimization_summaries): Likewise.
474 * varpool.c (varpool_get_node): New.
475 (varpool_node): Update doubly linked lists.
476 (varpool_remove_node): New.
477 (dump_varpool_node): More dumping.
478 (varpool_enqueue_needed_node): Update doubly linked lists.
479 (decide_is_variable_needed): Kill ltrans hack.
480 (varpool_finalize_decl): Kill lto hack.
481 (varpool_assemble_decl): Skip decls in other partitions.
482 (varpool_assemble_pending_decls): Update doubly linkes lists.
483 (varpool_empty_needed_queue): Likewise.
484 (varpool_extra_name_alias): Likewise.
485 * lto-streamer.c (lto_get_section_name): Add vars section.
486 * lto-streamer.h (lto_section_type): Update.
487 (output_varpool, input_varpool): Declare.
488
489 2010-04-28 Mike Stump <mikestump@comcast.net>
490
491 * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
492
493 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
494
495 * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
496 record or union type with RECORD_OR_UNION_TYPE_P predicate.
497 (lto_input_ts_type_tree_pointers): Likewise.
498 * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
499 (lto_output_ts_type_tree_pointers): Likewise.
500
501 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
502
503 Uniquization of constants at the Tree level
504 * tree.h (DECL_IN_CONSTANT_POOL): New macro.
505 (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
506 bit to the end.
507 (tree_output_constant_def): Declare.
508 * gimplify.c (gimplify_init_constructor): When using block copy, first
509 uniquize the constant constructor on the RHS.
510 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
511 DECL_IN_CONSTANT_POOL flag.
512 * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
513 * varasm.c (make_decl_rtl): Deal with variables belonging to the global
514 constant pool.
515 (assemble_variable): Deal with symbols belonging to the tree constant
516 pool.
517 (get_constant_section): Add ALIGN parameter and simplify.
518 (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
519 (assemble_constant_contents): Use the expression of the VAR_DECL.
520 (output_constant_def_contents): Use the alignment of the VAR_DECL.
521 (tree_output_constant_def): New global function.
522 (mark_constant): Use the expression of the VAR_DECL.
523 (place_block_symbol): Use the alignment of the VAR_DECL and the size of
524 its expression.
525 (output_object_block): Likewise and assemble the expression.
526
527 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
528
529 * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
530 hash_tree, eq_tree): New tree hash table.
531 (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
532 [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
533 lto_orig_address_remove): Reimplement.
534
535 2010-04-28 Xinliang David Li <davidxl@google.com>
536
537 PR c/42643
538 * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
539 (compute_uninit_opnds_pos): New function.
540 (is_non_loop_exit_postdominating): New function.
541 (compute_control_dep_chain): New function.
542 (find_pdom): New function.
543 (convert_control_dep_chain_into_preds): New function.
544 (find_predicates): New function.
545 (find_control_equiv_block): New function.
546 (collect_phi_def_edges): New function.
547 (find_def_preds): New function.
548 (find_dom): New function.
549 (dump_predicates): New function.
550 (get_cmp_code): New function.
551 (is_value_included_in): New function.
552 (find_matching_predicate_in_rest_chains): New function.
553 (use_pred_not_overlap_with_undef_path_pred): New function.
554 (is_use_properly_guarded): New function.
555 (normalize_cond_1): New function.
556 (is_and_or_or): New function.
557 (normalize_cond): New function.
558 (is_gcond_subset_of): New function.
559 (is_subset_of_any): New function.
560 (is_or_set_subset_of): New function.
561 (is_and_set_subset_of): New function.
562 (is_norm_cond_subset_of): New function.
563 (is_pred_expr_subset_of): New function.
564 (is_pred_chain_subset_of): New function.
565 (is_included_in): New function.
566 (is_superset_of): New function.
567 (find_uninit_use): New function.
568 (warn_uninitialized_phi): New function.
569 (compute_possibly_undefined_names): New function.
570 (ssa_undefined_value_p): New function.
571 (execute_late_warn_uninitialized): New function.
572 * tree-ssa.c (ssa_undefined_value_p): Removed.
573 (warn_uninit): Changed to extern.
574 (warn_uninitialized_phi): Removed.
575 (warn_uninitialized_vars): Changed to extern.
576 (execute_late_warn_uninitialized): Removed
577 * tree-flow.h: Add new prototypes.
578 * timevar.def: Add new time variable.
579 * Makefile.in: Add new build file.
580
581 2010-04-28 Uros Bizjak <ubizjak@gmail.com>
582
583 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
584 type if available.
585
586 2010-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
587
588 PR target/22224
589 * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
590
591 2010-04-28 Martin Jambor <mjambor@suse.cz>
592
593 * cgraph.h (struct cgraph_node): New field indirect_calls.
594 (struct cgraph_indirect_call_info): New type.
595 (struct cgraph_edge): Removed field indirect_call. New fields
596 indirect_info, indirect_inlining_edge and indirect_unknown_callee.
597 (cgraph_create_indirect_edge): Declare.
598 (cgraph_make_edge_direct): Likewise.
599 (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
600 * ipa-prop.h (struct ipa_param_call_note): Removed.
601 (struct ipa_node_params): Removed field param_calls.
602 (ipa_create_all_structures_for_iinln): Declare.
603 * cgraph.c: Described indirect edges and uids in initial comment.
604 (cgraph_add_edge_to_call_site_hash): New function.
605 (cgraph_edge): Search also among the indirect edges, use
606 cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
607 (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
608 one, use cgraph_add_edge_to_call_site_hash to add edges to the call
609 site hash.
610 (initialize_inline_failed): Assign a reason to indirect edges.
611 (cgraph_create_edge_1): New function.
612 (cgraph_create_edge): Moved some functionality to
613 cgraph_create_edge_1.
614 (cgraph_create_indirect_edge): New function.
615 (cgraph_edge_remove_callee): Add an assert checking for
616 non-indirectness.
617 (cgraph_edge_remove_caller): Special-case indirect edges.
618 (cgraph_remove_edge): Likewise.
619 (cgraph_set_edge_callee): New function.
620 (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
621 (cgraph_make_edge_direct): New function.
622 (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
623 the declaration of the call statement matches.
624 (cgraph_node_remove_callees): Special-case indirect edges.
625 (cgraph_clone_edge): Likewise.
626 (cgraph_clone_node): Clone also the indirect edges.
627 (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
628 indirect_call, dump count of indirect_calls edges.
629 * ipa-prop.c (iinlining_processed_edges): New variable.
630 (ipa_note_param_call): Create indirect edges instead of
631 creating notes. New parameter node.
632 (ipa_analyze_call_uses): New parameter node, pass it on to
633 ipa_note_param_call.
634 (ipa_analyze_stmt_uses): Likewise.
635 (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
636 (print_edge_addition_message): Work on edges rather than on notes.
637 (update_call_notes_after_inlining): Likewise, renamed to
638 update_indirect_edges_after_inlining.
639 (ipa_create_all_structures_for_iinln): New function.
640 (ipa_free_node_params_substructures): Do not free notes.
641 (ipa_edge_duplication_hook): Propagate bits within
642 iinlining_processed_edges bitmap.
643 (ipa_node_duplication_hook): Do not duplicate notes.
644 (free_all_ipa_structures_after_ipa_cp): Renamed to
645 ipa_free_all_structures_after_ipa_cp.
646 (free_all_ipa_structures_after_iinln): Renamed to
647 ipa_free_all_structures_after_iinln.g
648 (ipa_write_param_call_note): Removed.
649 (ipa_read_param_call_note): Removed.
650 (ipa_write_indirect_edge_info): New function.
651 (ipa_read_indirect_edge_info): Likewise.
652 (ipa_write_node_info): Do not stream notes, do stream information
653 in indirect edges.
654 (ipa_read_node_info): Likewise.
655 (lto_ipa_fixup_call_notes): Removed.
656 * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
657 * ipa-inline.c (pass_ipa_inline): Likewise.
658 * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
659 * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
660 * tree-inline.c (copy_bb): Removed an unnecessary double check for
661 is_gimple_call.
662 * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
663 edges.
664 * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
665 (output_cgraph): Stream also indirect edges.
666 (lto_output_edge): Added capability to stream indirect edges.
667 (input_edge): Likewise.
668 (input_cgraph_1): Likewise.
669 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
670 of indirect edges.
671
672 2010-04-28 Richard Guenther <rguenther@suse.de>
673
674 PR tree-optimization/43879
675 PR tree-optimization/43909
676 * tree-ssa-structalias.c (struct variable_info): Add
677 only_restrict_pointers flag.
678 (new_var_info): Initialize it. Increment stats.total_vars here.
679 (create_function_info_for): Do not increment stats.total_vars
680 here.
681 (get_function_part_constraint): Fix build with C++.
682 (insert_into_field_list): Remove.
683 (push_fields_onto_fieldstack): Properly merge fields.
684 (create_variable_info_for): Split and simplify.
685 (create_variable_info_for_1): New piece.
686 (intra_create_variable_infos): Properly make restrict constraints
687 from parameters.
688
689 2010-04-28 Richard Guenther <rguenther@suse.de>
690
691 PR c++/43880
692 * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
693
694 2010-04-27 Manuel López-Ibáñez <manu@gcc.gnu.org>
695 Jan Hubicka <hubicka@ucw.cz>
696
697 * doc/invoke.texi (-Wsuggest-attribute=const,
698 -Wsuggest-attribute=pure): Document.
699 * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
700 (function_always_visible_to_compiler_p,
701 suggest_attribute, warn_function_pure, warn_function_const):
702 New functions.
703 (check_call): Improve debug info.
704 (analyze_function): Do not check availability.
705 (add_new_function): Check availability.
706 (propagate): Output warnings.
707 (skip_function_for_local_pure_const): New function.
708 (local_pure_const): Use it; output warnings.
709 * common.opt (Wsuggest-attribute=const,
710 Wsuggest-attribute=pure): New.
711
712 2010-04-27 Jakub Jelinek <jakub@redhat.com>
713
714 * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
715 force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
716 or DW_CFA_def_cfa_offset{,_sf}.
717
718 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
719
720 * tree.h: Fix truncated long macros.
721
722 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
723
724 * collect2.c (TARGET_64BIT): Redefine to target's default.
725 * tlink.c: Likewise.
726 * config/i386/cygming.h (USER_LABEL_PREFIX): Define
727 dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
728 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
729 for underscoring __USER_LABEL_PREFIX__.
730 * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
731 (SUB_LINK_ENTRY32): New.
732 (SUB_LINK_ENTRY64): New.
733 (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
734 * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
735 (SUB_LINK_ENTRY64): New.
736 (SUB_LINK_ENTRY): New.
737 (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
738 (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
739 x64 target is choosen.
740 * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
741 * configure: Regenerated.
742 * configure.ac (leading-mingw64-underscores): Option added.
743
744 2010-04-27 Jan Hubicka <jh@suse.cz>
745
746 * doc/invoke.texi (-fipa-profile): Document.
747 * opts.c (decode_options): Enable ipa-profile at -O1.
748 * timevar.def (TV_IPA_PROFILE): Define.
749 * common.opt (fipa-profile): Add.
750 * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
751 flag for clones.
752 (cgraph_propagate_frequency): Handle only local ones.
753 * tree-pass.h (pass_ipa_profile): Declare.
754 * ipa-profile.c (gate_profile): Use flag_ipa_profile.
755 (pass_ipa_profile): Use TV_IPA_PROFILE.
756 * ipa.c (ipa_profile): New function.
757 (gate_ipa_profile): Likewise.
758 (pass_ipa_profile): New global variable.
759 * passes.c (pass_ipa_profile): New.
760
761 2010-04-27 Nathan Froyd <froydnj@codesourcery.com>
762
763 * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
764
765 2010-04-27 Martin Jambor <mjambor@suse.cz>
766
767 PR middle-end/43812
768 * ipa.c (dissolve_same_comdat_group_list): New function.
769 (function_and_variable_visibility): Call
770 dissolve_same_comdat_group_list when comdat group contains external or
771 newly local nodes.
772 * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
773 lists are circular and that they contain only DECL_ONE_ONLY nodes.
774
775 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
776
777 * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
778 (const_hash_1) <VECTOR_CST>: New case.
779 (compare_constant) <VECTOR_CST>: Likewise.
780 <ADDR_EXPR>: Deal with LABEL_REFs.
781 (copy_constant) <VECTOR_CST>: New case.
782
783 2010-04-27 Jan Hubicka <jh@suse.cz>
784
785 * cgraph.c (cgraph_propagate_frequency): New function.
786 * cgraph.h (cgraph_propagate_frequency): Declare.
787 * ipa-inline.c (cgraph_clone_inlined_nodes): Call
788 cgraph_propagate_frequency.
789
790 2010-04-27 Jakub Jelinek <jakub@redhat.com>
791
792 * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
793
794 2010-04-27 Bernd Schmidt <bernds@codesourcery.com>
795
796 PR target/40657
797 * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
798 (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
799 here to determine which regs to push and how much stack to reserve.
800
801 2010-04-27 Jie Zhang <jie@codesourcery.com>
802
803 * doc/gimple.texi (gimple_statement_with_ops): Remove
804 addresses_taken field.
805 (gimple_statement_with_memory_ops): Likewise.
806
807 2010-04-27 Jan Hubicka <jh@suse.cz>
808
809 * tree-inline.c (eni_inlining_weights): Remove.
810 (estimate_num_insns): Special case more builtins.
811
812 2010-04-27 Shujing Zhao <pearly.zhao@oracle.com>
813
814 PR c/32207
815 * c-typeck.c (build_binary_op): Move forward check for comparison
816 pointer with null pointer constant and adjust the diagnostic message.
817
818 2010-04-27 Dave Korn <dave.korn.cygwin@gmail.com>
819
820 PR lto/42776
821 * configure.ac (gcc_cv_as_section_has_align): Set if installed
822 binutils supports extended .section directive needed by LTO, or
823 warn if older binutils found.
824 (LTO_BINARY_READER): New AC_SUBST'd variable.
825 (LTO_USE_LIBELF): Likewise.
826 * gcc/config.gcc (lto_binary_reader): New target-specific configure
827 variable.
828 * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
829 (LTO_USE_LIBELF): Likewise.
830 * configure: Regenerate.
831
832 * collect2.c (is_elf): Rename from this ...
833 (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
834 object files in addition to ELF-formatted ones.
835 (scan_prog_file): Caller updated. Also allow for LTO info marker
836 symbol to be prefixed or not by an extra underscore.
837
838 * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
839 * config/i386/winnt.c: Also #include lto-streamer.h
840 (i386_pe_asm_named_section): Specify 1-byte section alignment for
841 LTO named sections.
842 (i386_pe_asm_output_aligned_decl_common): Add comment.
843 (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
844
845 2010-04-27 Hans-Peter Nilsson <hp@bitrange.com>
846
847 PR target/43889
848 * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
849 Add missing earlyclobber for second alternative.
850
851 2010-04-26 Bernd Schmidt <bernds@codesourcery.com>
852
853 * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
854 bits for artificial defs at the top of the block.
855 * fwprop.c (single_def_use_enter_block): Don't call it.
856
857 2010-04-26 Jack Howarth <howarth@bromo.med.uc.edu>
858
859 PR 43715
860 * gcc/configure.ac: Use "$gcc_cv_nm -g" on darwin
861 instead of "$gcc_cv_objdump -T".
862 Use "-undefined dynamic_lookup" on darwin.
863 * gcc/configure: Regenerate.
864
865 2010-04-26 Jakub Jelinek <jakub@redhat.com>
866
867 PR c/43893
868 * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
869
870 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
871
872 * c-parser.c (struct c_token): Move location field up.
873 * c-tree.h (struct c_typespec): Move expr_const_operands field up.
874 (struct c_declspecs): Convert typespec_word, storage_class, and
875 default_int_p into bitfields.
876 (struct c_declarator): Move loc field up.
877
878 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
879
880 * cfgloop.h (struct loop): Move can_be_parallel field up.
881 * ipa-prop.h (struct ip_node_params): Move bitfields up.
882 * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
883 down.
884 (struct iv_cand): Convert pos field into a bitfield.
885 * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
886 field up.
887 (struct _stmt_vec_info): Shuffle fields for better packing.
888
889 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
890
891 * varasm.c (IN_NAMED_SECTION): Remove guard.
892 * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
893 (IN_NAMED_SECTION_P): ...this.
894 (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
895 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
896
897 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
898
899 * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
900 Use VOID_TYPE_P for all void type tests. Adjust TYPE variable instead
901 of shadowing it. Fix comments.
902
903 2010-04-26 Jan Hubicka <jh@suse.cz>
904
905 * cgraph.c (cgraph_create_node): Set node frequency to normal.
906 (cgraph_clone_node): Copy function frequency.
907 * cgraph.h (node_frequency): New enum
908 (struct cgraph_node): Add.
909 * final.c (rest_of_clean_state): Update.
910 * lto-cgraph.c (lto_output_node): Output node frequency.
911 (input_overwrite_node): Input node frequency.
912 * tre-ssa-loop-ivopts (computation_cost): Update.
913 * lto-streamer-out.c (output_function): Do not output function
914 frequency.
915 * predict.c (maybe_hot_frequency_p): Update and handle functions
916 executed once.
917 (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
918 attribute lookup.
919 (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
920 (compute_function_frequency): Set noreturn functions to be executed
921 once.
922 (choose_function_section): Update.
923 * lto-streamer-in.c (input_function): Do not input function frequency.
924 * function.c (allocate_struct_function): Do not initialize function
925 frequency.
926 * function.h (function_frequency): Remove.
927 (struct function): Remove function frequency.
928 * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
929 (try_update): Update.
930 * tree-inline.c (initialize_cfun): Do not update function frequency.
931 * passes.c (pass_init_dump_file): Update.
932 * i386.c (ix86_compute_frame_layout): Update.
933 (ix86_pad_returns): Update.
934
935 2010-04-26 Jie Zhang <jie@codesourcery.com>
936
937 PR tree-optimization/43833
938 * tree-vrp.c (range_int_cst_p): New.
939 (range_int_cst_singleton_p): New.
940 (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
941 when both operands are constants. Use range_int_cst_p in
942 BIT_IOR_EXPR case.
943
944 2010-04-26 Jan Hubicka <jh@suse.cz>
945
946 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
947
948 2010-04-26 Richard Guenther <rguenther@suse.de>
949
950 PR lto/43080
951 * gimple.c (gimple_decl_printable_name): Deal gracefully
952 with a NULL DECL_NAME.
953
954 2010-04-26 Richard Guenther <rguenther@suse.de>
955
956 PR lto/42425
957 * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
958 if emitting debug information and it is either a function
959 or a namespace decl.
960
961 2010-04-26 Ira Rosen <irar@il.ibm.com>
962
963 * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
964 determine if the statement is vectorizable, and a macro to access it.
965 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
966 Skip statements that can't be vectorized. If the analysis fails,
967 mark the statement as unvectorizable if vectorizing basic block.
968 (vect_compute_data_refs_alignment): Likewise.
969 (vect_verify_datarefs_alignment): Skip statements marked as
970 unvectorizable. Add print.
971 (vect_analyze_group_access): Skip statements that can't be
972 vectorized. If the analysis fails, mark the statement as
973 unvectorizable if vectorizing basic block.
974 (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
975 * tree-vect-stmts.c (vectorizable_store): Fix the number of
976 generated stmts for SLP.
977 (new_stmt_vec_info): Initialize the new field.
978 * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
979 statements marked as unvectorizable.
980
981 2010-04-25 Joseph Myers <joseph@codesourcery.com>
982
983 * c-common.c (flag_isoc1x): New.
984 (flag_isoc99): Update comment.
985 * c-common.h (flag_isoc1x): New.
986 (flag_isoc99): Update comment.
987 * c-cppbuiltin.c (builtin_define_float_constants): Also define
988 __<type>_DECIMAL_DIG__.
989 * c-opts.c (set_std_c1x): New.
990 (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
991 (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
992 * c.opt (-std=c1x, -std=gnu1x): New options.
993 * doc/cpp.texi: Mention -std=c1x.
994 * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
995 * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
996 * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
997 * doc/standards.texi: Mention C1X.
998 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
999 LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
1000 LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
1001 Define for C1X.
1002
1003 2010-04-25 Uros Bizjak <ubizjak@gmail.com>
1004
1005 * config/i386/gmon-sol2.c (_mcleanup): Change format string
1006 placeholder from 0x%x to %#x.
1007 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
1008 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
1009 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
1010 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
1011 * config/i386/i386.c (ix86_target_string): Ditto.
1012 (output_pic_addr_const): Ditto.
1013 (print_operand): Ditto.
1014
1015 2010-04-25 Paolo Bonzini <bonzini@gnu.org>
1016
1017 * combine.c (find_split_point): Add third argument. Use it
1018 to find nested multiply-accumulate instructions. Adjust calls.
1019 (try_combine): Adjust call to find_split_point.
1020
1021 2010-04-24 Gerald Pfeifer <gerald@pfeifer.com>
1022
1023 * doc/contrib.texi (Contributors): Add Dodji Seketeli.
1024
1025 2010-04-24 Bernd Schmidt <bernds@codesourcery.com>
1026
1027 PR tree-optimization/41442
1028 * fold-const.c (merge_truthop_with_opposite_arm): New function.
1029 (fold_binary_loc): Call it.
1030
1031 2010-04-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
1032
1033 * toplev.c (general_init): Set default for fdiagnostics-show-option.
1034 * opts.c (common_handle_option): Allow disabling it.
1035 * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
1036
1037 2010-04-23 Eric Botcazou <ebotcazou@adacore.com>
1038
1039 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
1040 between modes if both types are integral.
1041
1042 2010-04-23 Richard Guenther <rguenther@suse.de>
1043
1044 PR tree-optimization/43572
1045 * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
1046
1047 2010-04-23 Richard Guenther <rguenther@suse.de>
1048
1049 PR lto/43455
1050 * tree-inline.c (tree_can_inline_p): Also check compatibility
1051 of return types.
1052
1053 2010-04-23 Martin Jambor <mjambor@suse.cz>
1054
1055 PR tree-optimization/43846
1056 * tree-sra.c (struct access): New flag grp_assignment_read.
1057 (build_accesses_from_assign): Set grp_assignment_read.
1058 (sort_and_splice_var_accesses): Propagate grp_assignment_read.
1059 (enum mark_read_status): New type.
1060 (analyze_access_subtree): Propagate grp_assignment_read, create
1061 accesses also if both direct_read and root->grp_assignment_read.
1062
1063 2010-04-23 Martin Jambor <mjambor@suse.cz>
1064
1065 PR middle-end/43835
1066 * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
1067 function does not have type attributes.
1068
1069 2010-04-23 Richard Guenther <rguenther@suse.de>
1070
1071 PR lto/42653
1072 * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
1073 of FUNCTION_DECLs.
1074
1075 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
1076
1077 * sese.h (create_if_region_on_edge): Remove.
1078
1079 * sese.c (create_if_region_on_edge): Make static.
1080
1081 * tree-inline.c: Do not include ggc.h.
1082
1083 * expr.c: Do not include ggc.h.
1084
1085 * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
1086 dependencies.
1087
1088 2010-04-22 Kaz Kojima <kkojima@gcc.gnu.org>
1089
1090 PR target/43744
1091 * config/sh/sh.c (find_barrier): Don't emit a constant pool
1092 in the middle of insns for casesi_worker_2.
1093
1094 2010-04-22 David Edelsohn <edelsohn@gnu.org>
1095
1096 * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
1097
1098 2010-04-22 Ira Rosen <irar@il.ibm.com>
1099
1100 PR tree-optimization/43842
1101 * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
1102 loop unrolling in update of exit phis. Fix comment.
1103 * tree-vect-slp.c (vect_analyze_slp): Check that there are at
1104 least two reduction statements in the loop before starting SLP
1105 analysis.
1106
1107 2010-04-22 Nick Clifton <nickc@redhat.com>
1108
1109 * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
1110
1111 2010-04-22 Alexander Monakov <amonakov@ispras.ru>
1112
1113 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
1114 to simplify a + ~a.
1115
1116 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
1117
1118 * tree-parloops.c (loop_parallel_p): New argument
1119 parloop_obstack. Pass it down.
1120 (parallelize_loops): New variable parloop_obstack. Initialize it,
1121 pass it down, free it.
1122
1123 * tree-loop-linear.c (linear_transform_loops): Pass down
1124 lambda_obstack.
1125
1126 * tree-data-ref.h (lambda_compute_access_matrices): New argument
1127 of type struct obstack *.
1128
1129 * tree-data-ref.c (analyze_subscript_affine_affine): New variable
1130 scratch_obstack. Initialize it, pass down, free it.
1131
1132 * lambda.h (lambda_loop_new): Remove.
1133 (lambda_matrix_new, lambda_matrix_inverse)
1134 (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
1135 argument of type struct obstack *.
1136
1137 * lambda-trans.c (lambda_trans_matrix_new): New argument
1138 lambda_obstack. Pass it down, use obstack allocation for ret.
1139 (lambda_trans_matrix_inverse): New argument lambda_obstack. Pass
1140 it down.
1141
1142 * lambda-mat.c (lambda_matrix_get_column)
1143 (lambda_matrix_project_to_null): Remove.
1144 (lambda_matrix_new): New argument lambda_obstack. Use obstack
1145 allocation for mat.
1146 (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
1147 lambda_obstack.
1148
1149 * lambda-code.c (lambda_loop_new): New function.
1150 (lambda_lattice_new, compute_nest_using_fourier_motzkin)
1151 (lambda_compute_auxillary_space, lambda_compute_target_space)
1152 (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
1153 (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
1154 (build_access_matrix): New argument lambda_obstack. Use obstack
1155 allocation for am.
1156 (lambda_compute_step_signs, lambda_compute_access_matrices): New
1157 argument lambda_obstack. Pass it down.
1158
1159 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
1160
1161 * optabs.h (expand_widening_mult): Declare.
1162
1163 2010-04-22 Richard Guenther <rguenther@suse.de>
1164
1165 PR tree-optimization/43845
1166 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
1167 lookup the CALL_EXPR function and arguments.
1168
1169 2010-04-22 Nick Clifton <nickc@redhat.com>
1170
1171 * config/stormy16/stormy16.c
1172 (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
1173 * config/stormy16/stormy16.h: Tidy up formatting.
1174 (DONT_USE_BUILTIN_SETJMP): Remove definition.
1175 * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
1176 (ineqbranchsi): Delete pattern.
1177 * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
1178 * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
1179 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
1180 stormy16-lib2-ucmpsi2.c.
1181
1182 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
1183
1184 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
1185 df_simulate_find_noclobber_defs as appropriate. Keep track of an
1186 extra set merge_set_noclobber, and use it to relax the final test
1187 slightly.
1188 * df.h (df_simulate_find_noclobber_defs): Declare.
1189 * df-problems.c (df_simulate_find_defs): Don't ignore partial or
1190 conditional defs.
1191 (df_simulate_find_noclobber_defs): New function.
1192
1193 2010-04-22 Uros Bizjak <ubizjak@gmail.com>
1194
1195 * config/i386/i386.md: Use {} around multi-line preparation statements.
1196
1197 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
1198
1199 * c-tree.h (push_init_level, pop_init_level, set_init_index)
1200 (process_init_element): New argument of type struct obstack *.
1201
1202 * c-typeck.c (push_init_level, pop_init_level, set_designator)
1203 (set_init_index, set_init_label, set_nonincremental_init)
1204 (set_nonincremental_init_from_string, find_init_member)
1205 (output_init_element, output_pending_init_elements)
1206 (process_init_element): New argument braced_init_obstack. Pass it
1207 down.
1208 (push_range_stack, add_pending_init): New argument
1209 braced_init_obstack. Use obstack allocation.
1210
1211 * c-parser.c (c_parser_initelt, c_parser_initval): New argument
1212 braced_init_obstack. Pass it down.
1213 (c_parser_braced_init): New variables ret, braced_init_obstack.
1214 Initialize obstack, pass it down and finally free it.
1215
1216 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
1217
1218 PR middle-end/29274
1219 * tree-pass.h (pass_optimize_widening_mul): Declare.
1220 * tree-ssa-math-opts.c (execute_optimize_widening_mul,
1221 gate_optimize_widening_mul): New static functions.
1222 (pass_optimize_widening_mul): New.
1223 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
1224 <case MULT_EXPR>: Remove support for widening multiplies.
1225 * tree.def (WIDEN_MULT_EXPR): Tweak comment.
1226 * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
1227 simplify_gen_unary rather than directly building extensions.
1228 * tree-cfg.c (verify_gimple_assign_binary): Add tests for
1229 WIDEN_MULT_EXPR.
1230 * expmed.c (expand_widening_mult): New function.
1231 * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
1232
1233 2010-04-21 Jan Hubicka <jh@suse.cz>
1234
1235 * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
1236 * lto-section-in.c (lto_section_name): Remove wpa_fixup.
1237 * lto-wpa-fixup.c: Remove.
1238 * Makefile.in (lto-wpa-fixup.o): Remove.
1239 * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
1240 (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
1241 * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
1242
1243 2010-04-21 Jan Hubicka <jh@suse.cz>
1244
1245 * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
1246 add write_optimization_summary, read_optimization_summary.
1247 (ipa_write_summaries_of_cgraph_node_set): Remove.
1248 (ipa_write_optimization_summaries): Declare.
1249 (ipa_read_optimization_summaries): Declare.
1250 * ipa-cp.c (pass_ipa_cp): Update.
1251 * ipa-reference.c (pass_ipa_reference): Update.
1252 * ipa-pure-const.c (pass_ipa_pure_const): Update.
1253 * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
1254 Update.
1255 * ipa-inline.c (pass_ipa_inline): Update.
1256 * ipa.c (pass_ipa_whole_program): Update.
1257 * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
1258 * passes.c (ipa_write_summaries_1): Do not test wpa.
1259 (ipa_write_optimization_summaries_1): New.
1260 (ipa_write_optimization_summaries): New.
1261 (ipa_read_summaries): Do not test ltrans.
1262 (ipa_read_optimization_summaries_1): New.
1263 (ipa_read_optimization_summaries): New.
1264
1265 2010-04-21 Jan Hubicka <jh@suse.cz>
1266
1267 * lto-cgraph.c (lto_output_node): Do not output comdat groups
1268 for boundary nodes.
1269 (output_cgraph): Do not arrange comdat groups for boundary nodes.
1270
1271 2010-04-21 Jakub Jelinek <jakub@redhat.com>
1272
1273 PR debug/40040
1274 * dwarf2out.c (add_name_and_src_coords_attributes): Add
1275 DW_AT_{,MIPS_}linkage_name even for Fortran decls.
1276
1277 2010-04-21 Jan Hubicka <jh@suse.cz>
1278
1279 * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
1280
1281 2010-04-21 Jan Hubicka <jh@suse.cz>
1282
1283 * varpool.c (decide_is_variable_needed): Variable is always needed
1284 during ltrans.
1285
1286 2010-04-21 Jan Hubicka <jh@suse.cz>
1287
1288 * opts.c (decode_options): Enable pure-const pass for whopr.
1289
1290 2010-04-21 Jan Hubicka <jh@suse.cz>
1291
1292 * cgraph.c (dump_cgraph_node): Dump also assembler name.
1293 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
1294 at WPA dumping.
1295 (cgraph_decide_inlining): Do not expect callee to be removed in all
1296 cases.
1297
1298 2010-04-21 Eric B. Weddington <eric.weddington@atmel.com>
1299
1300 * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
1301
1302 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
1303
1304 * config/i386/i386.md (x86_shrd): Add athlon_decode and
1305 amdfam10_decode attributes.
1306
1307 2010-04-21 Jakub Jelinek <jakub@redhat.com>
1308
1309 PR middle-end/43570
1310 * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
1311 OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
1312 (lower_copyprivate_clauses): Use private var in outer
1313 context instead of original var. Make sure the types
1314 are correct for VLAs.
1315
1316 2010-04-21 Richard Guenther <rguenther@suse.de>
1317
1318 * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
1319 to non-pointer objects.
1320
1321 2010-04-21 Jakub Jelinek <jakub@redhat.com>
1322
1323 * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument. Drop
1324 last chain entry if it starts with the still current label.
1325 (add_location_or_const_value_attribute): Check that
1326 loc_list->first->next is NULL instead of comparing ->first with ->last.
1327 (dwarf2out_var_location): Pass last_label resp. last_postcall_label
1328 to add_var_loc_to_decl.
1329
1330 * dwarf2out.c (output_call_frame_info): For dw_cie_version
1331 >= 4 add also address size and segment size fields into CIE header.
1332
1333 * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
1334 long as address size is the same as sizeof (void *) and
1335 segment size is 0.
1336 * unwind-dw2-fde.c (get_cie_encoding): Likewise. If
1337 address size or segment size is unexpected, return DW_EH_PE_omit.
1338 (classify_object_over_fdes): If get_cie_encoding returned
1339 DW_EH_PE_omit, return -1.
1340 (init_object): If classify_object_over_fdes returned -1,
1341 pretend there were no FDEs at all.
1342
1343 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
1344
1345 * config/i386/i386.md (bswap<mode>2): Macroize expander from
1346 bswap{si,di}2 using SWI48 mode iterator.
1347 (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
1348 SWI48 mode iterator. Set type attribute of bswap insn to bitmanip,
1349 set modrm attribute of bswap insn to 0 and remove length attribute.
1350 (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
1351 iterator. Set type attribute to bitmanip, set modrm attribute to 0,
1352 set mode attribute to <MODE> and remove length attribute.
1353
1354 2010-04-20 James E. Wilson <wilson@codesourcery.com>
1355
1356 PR rtl-optimization/43520
1357 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
1358 zero available registers.
1359
1360 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1361
1362 * builtins.c (fold_builtin_cproj): Fold more cases.
1363
1364 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1365
1366 * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
1367 (fold_builtin_1): Fold builtin cproj.
1368 * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
1369 Use ATTR_CONST_NOTHROW_LIST.
1370
1371 2010-04-20 Uros Bizjak <ubizjak@gmail.com>
1372
1373 * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
1374 and ffsdi2 using SWI48 mode iterator. Expand SImode insn through
1375 ffsi2_no_cmove for !TARGET_CMOVE.
1376 (ffssi2_no_cmove): Rename from *ffs_no_cmove. Make public.
1377 (ffssi2): Remove expander.
1378 (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
1379 mode iterator.
1380 (ctz<mode>2): Ditto from ctz{si,di}2.
1381 (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
1382 mode iterator.
1383 (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
1384 mode iterator.
1385
1386 2010-04-20 Jakub Jelinek <jakub@redhat.com>
1387
1388 * dwarf2out.c (AT_linkage_name): Define.
1389 (clone_as_declaration): Handle DW_AT_linkage_name.
1390 (add_name_and_src_coords_attributes): Use AT_linkage_name instead
1391 of DW_AT_MIPS_linkage_name.
1392 (move_linkage_attr): Likewise.
1393 (dwarf2out_finish): Likewise.
1394
1395 2010-04-20 Xinliang David Li <davidxl@gcc.gnu.org>
1396
1397 PR middle-end/41952
1398 * fold-const.c (fold_comparison): New folding rule.
1399
1400 2010-04-20 Anatoly Sokolov <aesok@post.ru>
1401
1402 * double-int.h (double_int_setbit): Declare.
1403 * double-int.c (double_int_setbit): New function.
1404 * rtl.h (immed_double_int_const): Declare.
1405 * emit-rtl.c (immed_double_int_const): New function.
1406 * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
1407 and immed_double_int_const functions.
1408 * optabs.c (expand_absneg_bit, expand_copysign_absneg,
1409 expand_copysign_bit): (Ditto.).
1410 * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
1411 * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
1412 * dojump.c (prefer_and_bit_test): (Ditto.).
1413 * expr.c (convert_modes, reduce_to_bit_field_precision,
1414 const_vector_from_tree): (Ditto.).
1415 * expmed.c (mask_rtx, lshift_value): (Ditto.).
1416
1417 2010-04-20 Jan Hubicka <jh@suse.cz>
1418
1419 * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
1420 (dump_cgraph_node): Dump new flags.
1421 * cgraph.h (struct cgraph_node): Add flags
1422 reachable_from_other_partition and in_other_partition.
1423 (cgraph_can_remove_if_no_direct_calls_p): Functions used by
1424 other partition can not be removed.
1425 * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
1426 the other partition must be output; silence sanity checking on
1427 leaking functions bodies from other paritition.
1428 * lto-cgraph.c (reachable_from_other_partition_p): New function.
1429 (lto_output_node): Output new flags; do not sanity check that inline
1430 clones are output; drop lto_forced_extern_inline_p code; do not mock
1431 visibility flags at partition boundaries.
1432 (add_node_to): New function.
1433 (output_cgraph): Use it to sort functions so masters appear before
1434 clones.
1435 (input_overwrite_node): Input new flags.
1436 * passes.c (ipa_write_summaries): Do not call
1437 lto_new_extern_inline_states.
1438 * lto-section-out.c (forced_extern_inline,
1439 lto_new_extern_inline_states lto_delete_extern_inline_states,
1440 lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
1441 * lto-streamer.h (lto_new_extern_inline_states,
1442 * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
1443 lto_forced_extern_inline_p): Kill.
1444
1445 2010-04-20 Richard Guenther <rguenther@suse.de>
1446
1447 * tree-ssa-structalias.c (do_sd_constraint): Add edges only
1448 from vars that can have pointers.
1449 (process_constraint): Dump useless constraints.
1450
1451 2010-04-20 Richard Guenther <rguenther@suse.de>
1452
1453 * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
1454 (dump_sa_points_to_info): Remove asserts.
1455 (init_base_vars): nothing_id isn't an escape point nor does it
1456 have pointers.
1457
1458 2010-04-20 Jakub Jelinek <jakub@redhat.com>
1459
1460 * tree.h (TYPE_REF_IS_RVALUE): Define.
1461 * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
1462 should_move_die_to_comdat, prune_unused_types_walk): Handle
1463 DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
1464 (modified_type_die, gen_reference_type_die): Emit
1465 DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
1466 if TYPE_REF_IS_RVALUE and -gdwarf-4.
1467
1468 2010-04-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1469
1470 PR target/43635
1471 * config/s390/s390.c (s390_emit_call): Turn direct into indirect
1472 calls for -fpic -m31 if they have been sibcall optimized.
1473
1474 2010-04-19 James E. Wilson <wilson@codesourcery.com>
1475
1476 * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
1477 ar.lc fixed and call-used.
1478
1479 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
1480
1481 2010-04-19 Jan Hubicka <jh@suse.cz>
1482
1483 * opts.c (decode_options): Disable whpr incompatible passes.
1484 * lto/lto.c (lto_1_to_1_map): Skip clones.
1485 (read_cgraph_and_symbols): Do not mark everything as needed.
1486 (do_whole_program_analysis): Do map only after optimizing;
1487 set proper cgraph_state; use passmanager.
1488
1489 2010-04-19 DJ Delorie <dj@redhat.com>
1490
1491 * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
1492 POINTER_PLUS_EXPR and fix them.
1493
1494 2010-04-19 Eric B. Weddington <eric.weddington@atmel.com>
1495
1496 * config/avr/avr-devices.c (avr_mcu_types): Add support for new
1497 devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
1498 attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
1499 atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
1500 atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
1501 atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
1502 atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
1503 atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
1504 m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
1505 atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
1506 * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
1507
1508 2010-04-19 Eric Botcazou <ebotcazou@adacore.com>
1509
1510 * ifcvt.c (noce_try_cmove_arith): Fix long lines.
1511 (check_cond_move_block): Likewise.
1512 (cond_move_process_if_block): Likewise.
1513 (noce_find_if_block): Improve formatting.
1514 (find_if_header): Pass 0 to memset and tweak conditions.
1515 (cond_exec_find_if_block): Fix long lines and tweak conditions.
1516
1517 2010-04-19 Jakub Jelinek <jakub@redhat.com>
1518
1519 * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
1520 for -gdwarf-4.
1521
1522 PR middle-end/43337
1523 * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
1524 with non-local decl doesn't need chain.
1525
1526 2010-04-19 Vladimir Makarov <vmakarov@redhat.com>
1527
1528 * ira-color.c (allocno_reload_assign): Avoid accumulating
1529 reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
1530
1531 2010-04-19 Martin Jambor <mjambor@suse.cz>
1532
1533 * gimple.h (create_tmp_reg): Declare.
1534 * gimplify.c (create_tmp_reg): New function.
1535 (gimplify_return_expr): Use create_tmp_reg.
1536 (gimplify_omp_atomic): Likewise.
1537 (gimple_regimplify_operands): Likewise.
1538 * tree-dfa.c (make_rename_temp): Likewise.
1539 * tree-predcom.c (predcom_tmp_var): Likewise.
1540 (reassociate_to_the_same_stmt): Likewise.
1541 * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
1542 (get_replaced_param_substitute): Likewise.
1543 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
1544 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
1545 * tree-ssa-pre.c (get_representative_for): Likewise.
1546 (create_expression_by_pieces): Likewise.
1547 * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
1548 (create_tailcall_accumulator): Likewise.
1549
1550 2010-04-19 Martin Jambor <mjambor@suse.cz>
1551
1552 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
1553 new_stmt.
1554 (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
1555
1556 2010-04-19 Richard Guenther <rguenther@suse.de>
1557
1558 PR tree-optimization/43796
1559 * tree-vrp.c (adjust_range_with_scev): Lookup init and step
1560 from SCEV in the lattice.
1561 (vrp_visit_phi_node): Dump change.
1562
1563 2010-04-19 Richard Guenther <rguenther@suse.de>
1564
1565 * configure.ac: Fix quoting around elf_getshstrndx ABI check.
1566 * configure: Re-generated.
1567
1568 2010-04-19 Richard Guenther <rguenther@suse.de>
1569
1570 PR tree-optimization/43783
1571 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
1572 constant ARRAY_REF operands two and three if possible.
1573
1574 2010-04-19 Uros Bizjak <ubizjak@gmail.com>
1575
1576 PR target/43766
1577 * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
1578
1579 2010-04-19 Jie Zhang <jie@codesourcery.com>
1580
1581 PR target/43662
1582 * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
1583
1584 2010-04-19 Ira Rosen <irar@il.ibm.com>
1585
1586 PR tree-optimization/37027
1587 * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
1588 and macro to access it.
1589 (vectorizable_reduction): Add argument.
1590 (vect_get_slp_defs): Likewise.
1591 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
1592 statements for possible use in SLP.
1593 (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
1594 (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
1595 (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
1596 add new argument.
1597 (vectorizable_reduction): Likewise.
1598 * tree-vect-stmts.c (vect_get_vec_defs): Update call to
1599 vect_get_slp_defs.
1600 (vectorizable_type_demotion, vectorizable_type_promotion,
1601 vectorizable_store): Likewise.
1602 (vect_analyze_stmt): Update call to vectorizable_reduction.
1603 (vect_transform_stmt): Likewise.
1604 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
1605 (vect_build_slp_tree): Fix indentation. Check that there are no loads
1606 from different interleaving chains in same node.
1607 (vect_slp_rearrange_stmts): New function.
1608 (vect_supported_load_permutation_p): Allow load permutations for
1609 reductions. Call vect_slp_rearrange_stmts() to rearrange statements
1610 inside SLP nodes if necessary.
1611 (vect_analyze_slp_instance): Handle reductions.
1612 (vect_analyze_slp): Try to build SLP instances originating from groups
1613 of reductions.
1614 (vect_detect_hybrid_slp_stmts): Skip reduction statements.
1615 (vect_get_constant_vectors): Create initial vectors for reductions
1616 according to reduction code. Add new argument.
1617 (vect_get_slp_defs): Add new argument, pass it to
1618 vect_get_constant_vectors.
1619 (vect_schedule_slp_instance): Remove SLP tree root statements.
1620
1621 2010-04-19 Jakub Jelinek <jakub@redhat.com>
1622
1623 * tree.h (ENUM_IS_SCOPED): Define.
1624 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
1625 for ENUM_IS_SCOPED enums.
1626
1627 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
1628
1629 * fold-const.c (fold_comparison): Use ssizetype.
1630 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
1631 * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
1632 * tree-loop-distribution.c (build_size_arg_loc): Likewise.
1633 * tree-object-size.c (compute_object_sizes): Use size_type_node.
1634
1635 * tree.h (initialize_sizetypes): Remove parameter.
1636 (build_common_tree_nodes): Remove second parameter.
1637 * stor-layout.c (initialize_sizetypes): Remove parameter.
1638 Always create an unsigned type.
1639 (set_sizetype): Assert that the passed type is unsigned and simplify.
1640 * tree.c (build_common_tree_nodes): Remove second parameter.
1641 Adjust call to initialize_sizetypes.
1642 * c-decl.c (c_init_decl_processing): Remove second argument in call to
1643 build_common_tree_nodes.
1644
1645 2010-04-18 Matthias Klose <doko@ubuntu.com>
1646
1647 * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
1648
1649 2010-04-18 Ira Rosen <irar@il.ibm.com>
1650
1651 PR tree-optimization/43771
1652 * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
1653 load permutation doesn't have gaps.
1654
1655 2010-04-18 Jan Hubicka <jh@suse.cz>
1656
1657 * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
1658 (sse_prologue_save_insn expander): Use new pattern.
1659 (sse_prologue_save_insn1): New pattern and splitter.
1660 (sse_prologue_save_insn): Update to deal also with 64bit aligned
1661 blocks.
1662 * i386.c (setup_incoming_varargs_64): Do not compute jump
1663 destination here.
1664 (ix86_gimplify_va_arg): Update alignment needed.
1665 (ix86_local_alignment): Do not align all local arrays to 128bit.
1666
1667 2010-04-17 Jan Hubicka <jh@suse.cz>
1668
1669 * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
1670
1671 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
1672
1673 * arm.md (negdi2): Remove redundant code to force values into a
1674 register.
1675
1676 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
1677
1678 * arm/bpabi.S: Add EABI alignment attributes to objects.
1679 * arm/bpabi-v6m.S: Likewise.
1680 * arm/crti.asm: Likewise.
1681 * arm/crtn.asm: Likewise.
1682 * arm/lib1funcs.asm: Likewise.
1683 * arm/libunwind.S: Likewise.
1684
1685 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
1686
1687 * arm-protos.h (tune_params): New structure.
1688 * arm.c (current_tune): New variable.
1689 (arm_constant_limit): Delete.
1690 (struct processors): Add pointer to the tune parameters.
1691 (arm_slowmul_tune): New tuning option.
1692 (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
1693 (all_cores): Adjust to pick up the tuning model.
1694 (arm_constant_limit): New function.
1695 (arm_override_options): Select the appropriate tuning model. Delete
1696 initialization of arm_const_limit.
1697 (arm_split_constant): Use the new constant-limit model.
1698 (arm_rtx_costs): Pick up the current tuning model.
1699 * arm.md (is_strongarm, is_xscale): Delete.
1700 * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
1701 for Xscale variant architectures.
1702 (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
1703
1704 2010-04-17 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1705
1706 * config/arm/arm.c (arm_gen_constant): Remove unused variable
1707 can_shift.
1708 (arm_rtx_costs_1): Remove unused variable extra_cost.
1709 (arm_unwind_emit_set): Use variable offset.
1710 (thumb1_output_casesi): Remove unused variable flags.
1711
1712 2010-04-16 Jeff Law <law@redhat.com>
1713
1714 * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
1715 needing assignment rather than doing a two-phase assignment. Remove
1716 unused variable 'm'.
1717
1718 2010-04-16 Jakub Jelinek <jakub@redhat.com>
1719
1720 PR bootstrap/43767
1721 * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
1722
1723 2010-04-16 Doug Kwan <dougkwan@google.com>
1724
1725 * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
1726 (next_operand_entry_id): New static variable.
1727 (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
1728 (add_to_ops_vec): Assigned unique ID to operand entry.
1729 (struct oecount_s): New field ID.
1730 (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
1731 (undistribute_ops_list): Assign unique IDs to oecounts.
1732 (init_reassoc): reset next_operand_entry_id.
1733
1734 2010-04-16 Doug Kwan <dougkwan@google.com>
1735
1736 * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
1737 missing left parenthesis.
1738
1739 2010-04-16 Uros Bizjak <ubizjak@gmail.com>
1740
1741 * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
1742 *btdi_rex64 using SWI48 mode iterator.
1743 (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
1744 (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
1745 *jcc_btdi_mask_rex64.
1746
1747 2010-04-16 Anatoly Sokolov <aesok@post.ru>
1748
1749 * double-int.h (tree_to_double_int): Convert to macro.
1750 * double-int.c (tree_to_double_int): Remove.
1751
1752 2010-04-16 Jakub Jelinek <jakub@redhat.com>
1753
1754 PR debug/43762
1755 * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
1756 with want_address 2 and in case a single element list might be
1757 possible, call it again with want_address 0.
1758
1759 2010-04-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
1760
1761 * config/h8300/h8300.c (print_operand) : Modify case 'V' and
1762 case 'W' print operands for HI mode.
1763 * config/h8300/h8300.h (Y0, Y2) : New constraints.
1764 * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
1765 (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
1766 * config/h8300/predicate.md (bit_register_indirect_operand): New.
1767
1768 * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
1769
1770 * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
1771 cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
1772 #xx:3 and #xx:4 mode.
1773
1774 * config/h8300/h8300.md (inverted load with HImode dest): Add
1775 support for H8300SX.
1776
1777 * config/h8300/predicate.md (bit_operand): Allow immediate values that
1778 satisfy 'U' constraint.
1779
1780 2010-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1781
1782 * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
1783 * configure: Regenerate.
1784 * config.in: Regenerate.
1785 * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
1786 works.
1787
1788 2010-04-16 Richard Guenther <rguenther@suse.de>
1789
1790 * tree.h (struct tree_decl_minimal): Move pt_uid ...
1791 (struct tree_decl_common): ... here.
1792 (DECL_PT_UID): Adjust.
1793 (SET_DECL_PT_UID): Likewise.
1794 (DECL_PT_UID_SET_P): Likewise.
1795
1796 2010-04-16 Richard Guenther <rguenther@suse.de>
1797
1798 PR tree-optimization/43572
1799 * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
1800 * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
1801 * tree-flow.h (is_call_clobbered): Remove.
1802 * tree-flow-inline.h (is_call_clobbered): Likewise.
1803 * tree-dfa.c (dump_variable): Do not dump call clobber state.
1804 * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
1805 (execute_return_slot_opt): Adjust.
1806 * tree-tailcall.c (suitable_for_tail_opt_p): Remove
1807 check for call clobbered vars here.
1808 (find_tail_calls): Move tailcall verification to the
1809 proper place.
1810
1811 2010-04-16 Diego Novillo <dnovillo@google.com>
1812
1813 * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
1814
1815 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
1816
1817 PR target/40603
1818 * config/arm/arm.md (cbranchqi4): New pattern.
1819 * config/arm/predicates.md (const0_operand,
1820 cbranchqi4_comparison_operator): New predicates.
1821
1822 2010-04-16 Richard Guenther <rguenther@suse.de>
1823
1824 * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
1825 (dump_gimple_stmt): Likewise.
1826
1827 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
1828
1829 * recog.h (struct recog_data): New field is_operator.
1830 (struct insn_operand_data): New field is_operator.
1831 * recog.c (extract_insn): Set recog_data.is_operator.
1832 * genoutput.c (output_operand_data): Emit code to set the
1833 is_operator field.
1834 * reload.c (find_reloads): Use it rather than testing for an
1835 empty constraint string.
1836
1837 PR target/41514
1838 * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
1839 If the previous insn is a cbranchsi4_insn with the same arguments,
1840 omit the compare instruction.
1841
1842 * config/arm/arm.md (addsi3_cbranch): If destination is a high
1843 register, inputs must be low registers and we need a low register
1844 scratch. Handle alternative 2 like alternative 3.
1845
1846 2010-04-16 Jakub Jelinek <jakub@redhat.com>
1847
1848 * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
1849 don't call get_addr on both. If one expression is a VALUE and
1850 the other a REG, check VALUE's locs if the REG isn't among them.
1851
1852 2010-04-16 Christian Bruel <christian.bruel@st.com>
1853
1854 * config/sh/sh.h (sh_frame_pointer_required): New function.
1855 * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
1856 (flag_omit_frame_pointer) Set.
1857 (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
1858 (rounded_frame_size): Adjust size with outgoing_args_size.
1859 (sh_set_return_address): Must return from stack pointer.
1860 * gcc/config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
1861 (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
1862 (ACCUMULATE_OUTGOING_ARGS): Define.
1863 * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
1864 * gcc/config/sh/sh.opt: (maccumulate-outgoing-args): New option.
1865
1866 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
1867
1868 PR target/43471
1869 * config/sh/sh.c (sh_legitimize_reload_address): Use
1870 MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
1871 Remove a unneeded check for offset_base.
1872
1873 2010-04-15 H.J. Lu <hongjiu.lu@intel.com>
1874
1875 * configure: Regenerated.
1876
1877 2010-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1878
1879 * config/s390/s390.c (s390_call_save_register_used): Switch back
1880 to HARD_REGNO_NREGS.
1881
1882 2010-04-15 Richard Guenther <rguenther@suse.de>
1883
1884 * alias.c (alias_set_subset_of): Handle alias-set zero
1885 child properly.
1886
1887 2010-04-15 Mark Shinwell <shinwell@codesourcery.com>
1888 Julian Brown <julian@codesourcery.com>
1889
1890 * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
1891 alternatives according to use of high and low regs.
1892 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
1893 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
1894 optimizing for size on Thumb-2.
1895
1896 2010-04-15 Thomas Schwinge <tschwinge@gnu.org>
1897
1898 * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
1899
1900 2010-04-15 Richard Guenther <rguenther@suse.de>
1901
1902 * tree-ssa-structalias.c (struct variable_info): Add
1903 is_fn_info flag.
1904 (new_var_info): Initialize it.
1905 (dump_constraints): Support printing last added constraints.
1906 (debug_constraints): Adjust.
1907 (dump_constraint_graph): Likewise.
1908 (make_heapvar_for): Check for NULL cfun.
1909 (get_function_part_constraint): New function.
1910 (get_fi_for_callee): Likewise.
1911 (find_func_aliases): Properly implement IPA PTA constraints.
1912 (process_ipa_clobber): New function.
1913 (find_func_clobbers): Likewise.
1914 (insert_into_field_list_sorted): Remove.
1915 (create_function_info_for): Properly allocate vars for IPA mode.
1916 Do not use insert_into_field_list_sorted.
1917 (create_variable_info_for): Properly generate constraints for
1918 global vars in IPA mode.
1919 (dump_solution_for_var): Always dump the solution.
1920 (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
1921 (find_what_var_points_to): Adjust.
1922 (pt_solution_set): Change.
1923 (pt_solution_ior_into): New function.
1924 (pt_solution_empty_p): Export.
1925 (pt_solution_includes_global): Adjust.
1926 (pt_solution_includes_1): Likewise.
1927 (pt_solutions_intersect_1): Likewise.
1928 (dump_sa_points_to_info): Check some invariants.
1929 (solve_constraints): Move constraint dumping ...
1930 (compute_points_to_sets): ... here.
1931 (ipa_pta_execute): ... and here.
1932 (compute_may_aliases): Do not re-compute points-to info
1933 locally if IPA info is available.
1934 (ipa_escaped_pt): New global var.
1935 (ipa_pta_execute): Properly implement IPA PTA.
1936 * tree-into-ssa.c (dump_decl_set): Support dumping
1937 decls not in referenced-vars.
1938 * tree-flow.h (struct gimple_df): Add ipa_pta flag.
1939 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
1940 (dump_points_to_solution): Likewise.
1941 * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
1942 * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
1943 (remap_gimple_stmt): Reset call clobber/use information if necessary.
1944 (copy_decl_to_var): Copy DECL_PT_UID.
1945 (copy_result_decl_to_var): Likewise.
1946 * tree.c (make_node_stat): Initialize DECL_PT_UID.
1947 (copy_node_stat): Copy it.
1948 * tree.h (DECL_PT_UID): New macro.
1949 (SET_DECL_PT_UID): Likewise.
1950 (DECL_PT_UID_SET_P): Likewise.
1951 (struct tree_decl_minimal): Add pt_uid member.
1952 * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
1953 (pt_solution_empty_p): Declare.
1954 (pt_solution_set): Adjust.
1955 (ipa_escaped_pt): Declare.
1956 * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
1957 * gimple-pretty-print.c (pp_points_to_solution): New function.
1958 (dump_gimple_call): Dump call clobber/use information.
1959 * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
1960 * tree-pass.h (TDF_ALIAS): New dump option.
1961 * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
1962 * doc/invoke.texi (-fipa-pta): Update documentation.
1963
1964 2010-04-15 Richard Guenther <rguenther@suse.de>
1965
1966 * Makefile.in (OBJS-common): Add gimple-fold.o.
1967 (gimple-fold.o): New rule.
1968 * tree.h (maybe_fold_offset_to_reference,
1969 maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
1970 prototypes ...
1971 * gimple.h: ... here.
1972 * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
1973 may_propagate_address_into_dereference): Move prototypes ...
1974 * gimple.h: ... here.
1975 * tree-ssa-ccp.c (get_symbol_constant_value,
1976 may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
1977 maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
1978 maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
1979 maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
1980 ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
1981 fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
1982 gimplify_and_update_call_from_tree): Move ...
1983 * gimple-fold.c: ... here. New file.
1984 (ccp_fold_builtin): Rename to ...
1985 (gimple_fold_builtin): ... this.
1986 * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
1987
1988 2010-04-15 Richard Guenther <rguenther@suse.de>
1989
1990 * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
1991 fit_double_type, force_fit_type_double, add_double_with_sign,
1992 neg_double, mul_double_with_sign, lshift_double, rshift_double,
1993 lrotate_double, rrotate_double, div_and_round_double): Move ...
1994 * double-int.c: ... here.
1995 * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
1996 add_double, neg_double, mul_double_with_sign, mul_double,
1997 lshift_double, rshift_double, lrotate_double, rrotate_double,
1998 div_and_round_double): Move prototypes ...
1999 * double-int.h: ... here.
2000
2001 2010-04-15 Bernd Schmidt <bernds@codesourcery.com>
2002
2003 PR target/43742
2004 * config/sh/sh.md (doloop_end_split, dect): Undo previous patch. Use
2005 matching constraints to ensure inputs match the output.
2006
2007 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
2008
2009 PR target/43742
2010 * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
2011 in an input-only operand.
2012
2013 2010-04-15 Anatoly Sokolov <aesok@post.ru>
2014
2015 * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
2016 (double_int_not, double_int_lshift, double_int_rshift): Declare.
2017 (double_int_negative_p): Convert to static inline function.
2018 * double-int.c (double_int_lshift, double_int_lshift): New functions.
2019 (double_int_negative_p): Remove.
2020 * tree.h (lshift_double, rshift_double):
2021 * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
2022 * fold-const.c (fold_convert_const_int_from_real,
2023 fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
2024 (lshift_double): Change type of arith argument to bool.
2025 (rshift_double): Change type of arith argument to bool. Correct
2026 comment.
2027 * expmed.c (mask_rtx, lshift_value): (Ditto.).
2028
2029 2010-04-14 Bernd Schmidt <bernds@codesourcery.com>
2030
2031 PR target/21803
2032 * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
2033 at the start and end of the then/else blocks, and omit them from the
2034 conversion.
2035 * cfgcleanup.c (flow_find_cross_jump): No longer static. Remove MODE
2036 argument; all callers changed. Pass zero to old_insns_match_p instead.
2037 (flow_find_head_matching_sequence): New function.
2038 (old_insns_match_p): Check REG_EH_REGION notes for calls.
2039 * basic-block.h (flow_find_cross_jump,
2040 flow_find_head_matching_sequence): Declare functions.
2041
2042 2010-04-14 Jason Merrill <jason@redhat.com>
2043
2044 PR c++/36625
2045 * c-common.c (attribute_takes_identifier_p): New fn.
2046 * c-common.h: Declare it.
2047
2048 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
2049
2050 * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
2051 splitter condition.
2052 (*udivmod<mode>4): Ditto.
2053
2054 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
2055
2056 * config/i386/i386.md (maxmin_int): Rename code attribute from
2057 maxminiprefix and update all users.
2058 (maxmin_float): Ditto from maxminfprefix.
2059 (logic): Ditto from logicprefix.
2060 (absneg_mnemonic): Ditto from absnegprefix.
2061 * config/i386/mmx.md: Update all users of maxminiprefix,
2062 maxminfprefix and logicprefix for rename.
2063 * config/i386/sse.md: Ditto.
2064 * config/i386/sync.md (sync_<code><mode>): Update for
2065 logicprefix rename.
2066
2067 2010-04-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
2068
2069 PR 42966
2070 * diagnostics.c (diagnostic_report_diagnostic): Mark specially
2071 warnings converted to errors.
2072
2073 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
2074
2075 * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
2076 used insn_type variable.
2077 (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
2078 to avoid set-but-not-used warning.
2079
2080 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
2081
2082 * df-core.c (df_ref_debug): Change format string placeholder
2083 from 0x%x to %#x.
2084 * dwarf2asm.c (dw2_asm_output_data_raw,
2085 dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
2086 dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
2087 * dwarf2out.c (output_cfi, output_cfi_directive,
2088 dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
2089 output_cfa_loc_raw, output_die, output_ranges, output_file_names):
2090 Ditto.
2091 * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
2092 * print-rtl.c (print_rtx): Ditto.
2093
2094 2010-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
2095
2096 PR middle-end/42694
2097 * builtins.c (expand_builtin_pow_root): New function to expand pow
2098 calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
2099 series of sqrt and cbrt calls under -ffast-math.
2100 (expand_builtin_pow): Call it.
2101
2102 2010-04-14 Michael Matz <matz@suse.de>
2103
2104 PR tree-optimization/42963
2105 * tree-cfg.c (touched_switch_bbs): New static variable.
2106 (group_case_labels_stmt): New function broken out from ...
2107 (group_case_labels): ... here, use the above.
2108 (start_recording_case_labels): Allocate touched_switch_bbs.
2109 (end_recording_case_labels): Deallocate it, call
2110 group_case_labels_stmt.
2111 (gimple_redirect_edge_and_branch): Remember index of affected BB.
2112
2113 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
2114
2115 * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
2116 from insn template.
2117
2118 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
2119
2120 * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
2121
2122 2010-04-13 Jan Hubicka <jh@suse.cz>
2123
2124 * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
2125 of optimized out static functions.
2126 (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
2127 cost computation. Also sanity check for overflows.
2128 (update_caller_keys): Update cgraph_edge_badness call; properly
2129 update fibheap and sanity check that it is up to date.
2130 (add_new_edges_to_heap): Update cgraph_edge_badness.
2131 (cgraph_decide_inlining_of_small_function): Likewise;
2132 add sanity checking that badness in heap is up to date;
2133 improve dumping of reason; Update badness of calls to the
2134 offline copy of function currently inlined; dump badness
2135 of functions not inlined because of unit growth limits.
2136
2137 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
2138
2139 PR middle-end/32628
2140 * c-common.c (pointer_int_sum): Disregard overflow that occured only
2141 because of sign-extension change when converting to sizetype here...
2142 * fold-const.c (fold_convert_const_int_from_int): ...and not here.
2143
2144 * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
2145 the folding to constants. Remove redundant final conversion.
2146 (fold_binary) <associate>: Do not associate if the re-association of
2147 constants alone overflows.
2148 (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
2149 to the end of the list.
2150 (multiple_of_p) <COND_EXPR>: New case.
2151
2152 2010-04-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
2153
2154 * opt-functions.awk (opt_sanitized_name): New.
2155 (opt_enum): New.
2156 * optc-gen.awk: Use it
2157 * opth-gen.awk: Use it.
2158
2159 2010-04-13 Martin Jambor <mjambor@suse.cz>
2160
2161 * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
2162 (sra_modify_assign): Delete stmts loading dead data even if racc has no
2163 children. Call replace_uses_with_default_def_ssa_name to handle
2164 SSA_NAES on lhs.
2165
2166 2010-04-13 Michael Matz <matz@suse.de>
2167
2168 PR middle-end/43730
2169 * builtins.c (expand_builtin_interclass_mathfn): Also create
2170 a register if the predicate doesn't match.
2171
2172 2010-04-13 Diego Novillo <dnovillo@google.com>
2173
2174 * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
2175 * c-pch.c: Include timevar.h.
2176 (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
2177 (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
2178 * ggc-common.c: Include timevar.h.
2179 (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
2180 * timevar.def (TV_PCH_SAVE): Define.
2181 (TV_PCH_CPP_SAVE): Define.
2182 (TV_PCH_PTR_REALLOC): Define.
2183 (TV_PCH_PTR_SORT): Define.
2184 (TV_PCH_RESTORE): Define.
2185 (TV_PCH_CPP_RESTORE): Define.
2186
2187 2010-04-13 Michael Matz <matz@suse.de>
2188
2189 * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
2190 into MINUS_EXPRs.
2191 (can_reassociate_p): New function.
2192 (break_up_subtract_bb, reassociate_bb): Use it.
2193
2194 2010-04-13 Richard Guenther <rguenther@suse.de>
2195
2196 PR bootstrap/43737
2197 * builtins.c (c_readstr): Fix assert.
2198
2199 2010-04-13 Uros Bizjak <ubizjak@gmail.com>
2200
2201 * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
2202 when generating cltd insn.
2203
2204 (*ashl<mode>3_1): Remove special handling for register operand 2.
2205 (*ashlsi3_1_zext): Ditto.
2206 (*ashlhi3_1): Ditto.
2207 (*ashlhi3_1_lea): Ditto.
2208 (*ashlqi3_1): Ditto.
2209 (*ashlqi3_1_lea): Ditto.
2210 (*<shiftrt_insn><mode>3_1): Ditto.
2211 (*<shiftrt_insn>si3_1_zext): Ditto.
2212 (*<shiftrt_insn>qi3_1_slp): Ditto.
2213 (*<rotate_insn><mode>3_1): Ditto.
2214 (*<rotate_insn>si3_1_zext): Ditto.
2215 (*<rotate_insn>qi3_1_slp): Ditto.
2216
2217 2010-04-13 Richard Guenther <rguenther@suse.de>
2218
2219 * tree-ssa-structalias.c (callused_id): Remove.
2220 (call_stmt_vars): New.
2221 (get_call_vi): Likewise.
2222 (lookup_call_use_vi): Likewise.
2223 (lookup_call_clobber_vi): Likewise.
2224 (get_call_use_vi): Likewise.
2225 (get_call_clobber_vi): Likewise.
2226 (make_transitive_closure_constraints): Likewise.
2227 (handle_const_call): Adjust to do per-call call-used handling.
2228 (handle_pure_call): Likewise.
2229 (find_what_var_points_to): Remove general callused handling.
2230 (init_base_vars): Likewise.
2231 (init_alias_vars): Initialize call_stmt_vars.
2232 (compute_points_to_sets): Process call-used and call-clobbered
2233 vars for call statements.
2234 (delete_points_to_sets): Free call_stmt_vars.
2235
2236 2010-04-13 Richard Guenther <rguenther@suse.de>
2237
2238 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
2239 Only add RW dependence for dependence distance zero.
2240 Adjust maximal vectorization factor according to dependences.
2241 Move alignment handling ...
2242 (vect_find_same_alignment_drs): ... here. New function.
2243 (vect_analyze_data_ref_dependences): Adjust.
2244 (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
2245 (vect_analyze_data_refs): Adjust minimal vectorization factor
2246 according to data references.
2247 * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
2248 dependences before determining the vectorization factor.
2249 Analyze alignment after determining the vectorization factor.
2250 * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
2251 dependences before alignment.
2252 * tree-vectorizer.h (vect_analyze_data_ref_dependences):
2253 Adjust prototype.
2254 (vect_analyze_data_refs): Likewise.
2255 (MAX_VECTORIZATION_FACTOR): New define.
2256
2257 2010-04-13 Duncan Sands <baldrick@free.fr>
2258
2259 * except.h (lang_eh_type_covers): Remove.
2260 * except.c (lang_eh_type_covers): Likewise.
2261
2262 2010-04-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2263 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2264
2265 * gcc/config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
2266 * gcc/config/s390/s390.c: Replace UNTIS_PER_WORD with
2267 UNITS_PER_LONG where it is ABI relevant.
2268 (s390_return_addr_rtx): Likewise.
2269 (s390_back_chain_rtx): Likewise.
2270 (s390_frame_area): Likewise.
2271 (s390_frame_info): Likewise.
2272 (s390_initial_elimination_offset): Likewise.
2273 (save_gprs): Likewise.
2274 (s390_emit_prologue): Likewise.
2275 (s390_emit_epilogue): Likewise.
2276 (s390_function_arg_advance): Likewise.
2277 (s390_function_arg): Likewise.
2278 (s390_va_start): Likewise.
2279 (s390_gimplify_va_arg): Likewise.
2280 (s390_function_profiler): Likewise.
2281 (s390_optimize_prologue): Likewise.
2282 (s390_rtx_costs): Likewise.
2283 (s390_secondary_reload): Likewise.
2284 (s390_promote_function_mode): Likewise.
2285 (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
2286 (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
2287 registers available.
2288 (s390_unwind_word_mode): New function.
2289 (s390_function_value): Split 64 bit values into register pair if
2290 used as return value.
2291 (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
2292 function call parameters. Handle parallels.
2293 (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
2294 (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
2295 (DWARF_CIE_DATA_ALIGNMENT): New macro.
2296 (s390_expand_setmem): Remove unused variable src_addr.
2297 * gcc/longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
2298 deal with 64 bit registers.
2299 * gcc/config/s390/s390.h: Define __zarch__ predefined macro.
2300 Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
2301 (UNITS_PER_LONG): New macro.
2302 * libjava/include/s390-signal.h: Define extended ucontext
2303 structure containing the upper halfs of the 64 bit registers.
2304
2305 2010-04-13 Simon Baldwin <simonb@google.com>
2306
2307 * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
2308
2309 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
2310
2311 * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
2312 rvalue on the RHS if the LHS is of a non-renamable type.
2313 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
2314
2315 2010-04-13 Matthias Klose <doko@ubuntu.com>
2316
2317 * gcc.c (cc1_options): Handle -iplugindir before processing
2318 the cc1 spec. Only add -iplugindir once.
2319 (cpp_unique_options): Add -iplugindir option if -fplugin* options
2320 found.
2321 * common.opt (iplugindir): Remove `Separate' property, initialize.
2322 * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
2323 option.
2324 * Makefile.in (check-%, check-parallel-%): Create plugin dir.
2325 (distclean): Remove plugin dir.
2326 * doc/invoke.texi: Document -iplugindir.
2327
2328 2010-04-13 Basile Starynkevitch <basile@starynkevitch.net>
2329
2330 * doc/plugins.texi (Loading Plugins): Document short
2331 -fplugin=foo option.
2332 (Plugin API): Mention default_plugin_dir_name function.
2333
2334 * gcc.c (find_file_spec_function): Add new declaration.
2335 (static_spec_func): Use it for "find-file".
2336 (find_file_spec_function): Add new function.
2337 (cc1_options): Add -iplugindir option if -fplugin* options found.
2338
2339 * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
2340
2341 * plugin.c (add_new_plugin): Updated comment, and handle short
2342 plugin name.
2343 (default_plugin_dir_name): Added new function.
2344
2345 * common.opt (iplugindir): New option to set the plugin directory.
2346
2347 2010-04-12 Uros Bizjak <ubizjak@gmail.com>
2348
2349 * config/i386/i386.md (any_rotate): New code iterator.
2350 (rotate_insn): New code attribute.
2351 (rotate): Ditto.
2352 (SWIM124): New mode iterator.
2353 (<rotate_insn>ti3): New expander.
2354 (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
2355 any_rotate code iterator.
2356 (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
2357 using any_rotate code iterator and SWIM124 mode iterator.
2358 (ix86_rotlti3): New insn_and_split pattern.
2359 (ix86_rotrti3): Ditto.
2360 (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
2361 ix86_rotl{di,ti}3 patterns.
2362 (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
2363 (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
2364 and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
2365 *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
2366 code iterator and SWI mode iterator.
2367 (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
2368 Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
2369 code iterator.
2370 (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
2371 Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
2372 (bswap rotatert splitter): Add splitter.
2373 (bswap splitter): Macroize splitter using any_rotate code iterator.
2374 Add insn predicate to split only for TARGET_USE_XCHGB or when
2375 optimizing function for size.
2376
2377 2010-04-12 Steve Ellcey <sje@cup.hp.com>
2378
2379 * config/pa/pa.c (emit_move_sequence): Remove use of
2380 deleted variable flag_argument_noalias.
2381
2382 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2383
2384 * config.gcc: Removed *-*-solaris2.7* from list of obsolete
2385 configurations.
2386 Add to unsupported targets list.
2387 * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
2388 sparc*-sun-solaris2.[567]* from target lists.
2389 * configure: Regenerate.
2390 * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
2391 removal.
2392 Remove Solaris 7 patch references.
2393 (Specific, sparc-sun-solaris2.7): Removed.
2394 (sparc-sun-solaris2*): Update Solaris 7 example.
2395 (sparc64-*-solaris2*): Likewise.
2396
2397 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2398
2399 * config.build (alpha*-dec-osf4*): Remove.
2400 * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
2401 of obsolete configurations.
2402 (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
2403 support.
2404 * config/alpha/t-osf4: Renamed to ...
2405 * config/alpha/t-osf5: ... this.
2406 * config/alpha/osf.h: Renamed to ...
2407 * config/alpha/osf5.h: ... this.
2408 Merged old osf5.h contents.
2409 Update comments.
2410 (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
2411 (EXTRA_SPECS): Removed.
2412 * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
2413 reflect removal of Tru64 UNIX V4.0/V5.0 support.
2414 Document that.
2415
2416 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2417
2418 * doc/contrib.texi (Contributors, Rainer Orth): Update.
2419
2420 2010-04-12 Kai Tietz <kai.tietz@onevision.com>
2421
2422 PR/43702
2423 * config/i386/i386.c (x86_this_parameter): Handle aggregate for
2424 __thiscall convention.
2425
2426 2010-04-12 Steve Ellcey <sje@cup.hp.com>
2427
2428 * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
2429 orig_base.
2430 * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
2431
2432 2010-04-12 Steve Ellcey <sje@cup.hp.com>
2433
2434 * function.c (assign_parms_initialize_all): Add unused attribute
2435 to fntype.
2436
2437 2010-04-12 Richard Guenther <rguenther@suse.de>
2438
2439 * gsstruct.def (GSS_CALL): New.
2440 * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
2441 * gimple.h: Include tree-ssa-alias.h.
2442 (struct gimple_statement_call): New.
2443 (union gimple_statement_struct_d): Add gimple_call member.
2444 (gimple_call_reset_alias_info): Declare.
2445 (gimple_call_use_set): New function.
2446 (gimple_call_clobber_set): Likewise.
2447 * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
2448 * gimple.c (gimple_call_reset_alias_info): New function.
2449 (gimple_build_call_1): Call it.
2450 * lto-streamer-in.c (input_gimple_stmt): Likewise.
2451 * tree-inline.c (remap_gimple_stmt): Likewise.
2452 (expand_call_inline): Remove callused handling.
2453 * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
2454 * tree-dfa.c (dump_variable): Likewise.
2455 * tree-parloops.c (parallelize_loops): Likewise.
2456 * tree-ssa.c (init_tree_ssa): Likewise.
2457 (delete_tree_ssa): Likewise.
2458 * tree-flow-inline.h (is_call_used): Remove.
2459 * tree-flow.h (struct gimple_df): Remove callused member.
2460 * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
2461 * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
2462 (ref_maybe_used_by_call_p_1): Simplify.
2463 (call_may_clobber_ref_p_1): Likewise.
2464 * tree-ssa-structalias.c (compute_points_to_sets): Set
2465 the call stmt used and clobbered sets.
2466 * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
2467 (find_tail_calls): Verify the tail call.
2468
2469 2010-04-12 Richard Guenther <rguenther@suse.de>
2470
2471 * ipa.c (cgraph_postorder): Adjust postorder to guarantee
2472 single-iteration always-inline inlining.
2473 * ipa-inline.c (cgraph_mark_inline): Do not return anything.
2474 (cgraph_decide_inlining): Do not handle always-inline specially.
2475 (try_inline): Remove always-inline cycle detection special case.
2476 Do not recurse on always-inlines.
2477 (cgraph_early_inlining): Do not iterate if not optimizing.
2478 (cgraph_gate_early_inlining): remove.
2479 (pass_early_inline): Run unconditionally.
2480 (gate_cgraph_decide_inlining): New function.
2481 (pass_ipa_inline): Use it. Do not run the IPA inliner if
2482 not inlining or optimizing.
2483 (cgraph_decide_inlining_of_small_functions): Also consider
2484 always-inline functions.
2485 (cgraph_default_inline_p): Return true for nodes which should
2486 disregard inline limits.
2487 (estimate_function_body_sizes): Assume zero size and time for
2488 nodes which are marked as disregarding inline limits.
2489 (cgraph_decide_recursive_inlining): Do not perform recursive
2490 inlining on always-inline nodes.
2491
2492 2010-04-12 Jakub Jelinek <jakub@redhat.com>
2493
2494 PR bootstrap/43699
2495 * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
2496 for exprs satisfying handled_component_p.
2497
2498 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
2499
2500 * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
2501 non-constant aggregate elements.
2502
2503 * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
2504 is a real initialization.
2505
2506 2010-04-12 Shujing Zhao <pearly.zhao@oracle.com>
2507
2508 PR c/36774
2509 * c-decl.c (start_function): Move forward check for nested function.
2510
2511 2010-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
2512
2513 * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
2514 * config/sh/sh.c: Include reload.h.
2515 (sh_legitimize_reload_address): New.
2516 * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
2517 sh_legitimize_reload_address.
2518
2519 2010-04-11 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
2520
2521 * config/sh/sh.md (*movqi_pop): New insn pattern.
2522 * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
2523
2524 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
2525
2526 * config/i386/i386.md (any_shiftrt): New code iterator.
2527 (shiftrt_insn): New code attribute.
2528 (shiftrt): Ditto.
2529 (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
2530 using any_shiftrt code iterator.
2531 (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
2532 *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
2533 (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
2534 pattern from corresponding peephole2 patterns.
2535 (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
2536 using any_shiftrt code iterator.
2537 (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
2538 (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
2539 (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
2540 (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
2541 *{ashr,lshr}<mode>3_cmp_zext.
2542 (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
2543
2544 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
2545
2546 * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
2547 scratch register.
2548 (*lshr<mode>3_cconly): Ditto.
2549
2550 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
2551
2552 * config/i386/i386.md (lshr<mode>3): Macroize expander from
2553 lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
2554 (*lshr<mode>3_doubleword): New insn_and_split_pattern. Macroize
2555 pattern from *lshr{di,ti}3_1 and corresponding splitters using
2556 DWI mode iterator.
2557 (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
2558 from corresponding peephole2 patterns.
2559 (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
2560 *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
2561 and *lshrdi3_1_rex64 using SWI mode iterator.
2562 (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
2563 (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
2564 (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
2565 *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
2566 and *lshrdi3_cmp_rex64 using SWI mode iterator.
2567 (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
2568 (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
2569 *lshrdi3_one_bit_cconly_rex64. Macroize insn from
2570 *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
2571 SWI mode iterator.
2572
2573 2010-04-10 Uros Bizjak <ubizjak@gmail.com>
2574
2575 * config/i386/i386.md (ashr<mode>3): Macroize expander from
2576 ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
2577 (*ashr<mode>3_doubleword): New insn_and_split_pattern. Macroize
2578 pattern from *ashr{di,ti}3_1 and corresponding splitters using
2579 DWI mode iterator.
2580 (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
2581 from corresponding peephole2 patterns.
2582 (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
2583 (ashrsi3_cvt): Rename from ashrsi3_31.
2584 (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
2585 (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
2586 and x86_64_shift_adj_3 using SWI48 mode iterator.
2587 (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
2588 *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
2589 and *ashrdi3_1_rex64 using SWI mode iterator.
2590 (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
2591 (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
2592 (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
2593 *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
2594 and *ashrdi3_cmp_rex64 using SWI mode iterator.
2595 (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
2596 (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
2597 *ashrdi3_one_bit_cconly_rex64. Macroize insn from
2598 *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
2599 SWI mode iterator.
2600 (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
2601 * config/i386/i386.c (ix86_split_ashr): Update for renamed
2602 x86_shift<mode>_adj_3 expanders.
2603
2604 2010-04-10 Wei Guozhi <carrot@google.com>
2605
2606 PR target/42601
2607 * config/arm/arm.c (arm_pic_static_addr): New function.
2608 (legitimize_pic_address): Call arm_pic_static_addr when it detects
2609 a static symbol.
2610 (arm_output_addr_const_extra): Output expression for new pattern.
2611 * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
2612
2613 2010-04-10 Bernd Schmidt <bernds@codesourcery.com>
2614
2615 * ira-costs.c (record_reg_classes): Ignore alternatives that are
2616 not enabled.
2617
2618 * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
2619 * web.c: Include "insn-config.h" and "recog.h".
2620 (union_match_dups): New function.
2621 (web_main): Call it.
2622 (union_defs): Don't try to recognize match_dups.
2623
2624 * reload1.c (eliminate_regs_in_insn): Don't restore an operand
2625 if doing so would replace the entire pattern.
2626
2627 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
2628
2629 PR target/43707
2630 PR target/43709
2631 * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
2632 and splitter pattern. Change splitter operand 1 predicate to
2633 nonmemory_operand.
2634
2635 2010-04-09 Martin Jambor <mjambor@suse.cz>
2636
2637 * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
2638 lattices are addresses of CONST_DECLs with the same initial value.
2639 (ipcp_print_all_lattices): Print values of CONST_DECLs.
2640 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
2641
2642 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
2643 Bernd Schmidt <bernds@codesourcery.com>
2644
2645 * loop-invariant.c (replace_uses): New static function.
2646 (move_invariant_reg): Use it to ensure we can replace the uses.
2647
2648 2010-04-09 Hariharan Sandanagobalane <hariharan@picochip.com>
2649
2650 * config/picochip/picochip.c (picochip_rtx_costs): Use correct
2651 function template.
2652 (picochip_override_options): Enable section anchors only above -O1.
2653 (picochip_reorg): Fixed a couple of build warnings.
2654
2655 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2656
2657 * configure.ac (plugin -rdynamic test): Log result.
2658 * configure: Regenerate.
2659 * config/sol2.h (LINK_SPEC): Handle -rdynamic.
2660 (RDYNAMIC_SPEC): Define.
2661 * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
2662
2663 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2664
2665 * configure.ac: Determine Sun ld version numbers.
2666 (comdat_group): Restrict GNU ld version checks to gld.
2667 (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
2668 (enable_comdat): Support --enable-comdat.
2669 * configure: Regenerate.
2670 * doc/install.texi (Configuration): Document --enable-comdat.
2671
2672 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2673
2674 * config/sparc/sol2-gld.h: Remove SPARC reference. Rename ...
2675 * config/sol2-gld.h: ... here.
2676 * config.gcc (sparc*-*-solaris2*): Reflect this.
2677 (i[34567]86-*-solaris2*): Use it.
2678
2679 2010-04-09 Steve Ellcey <sje@cup.hp.com>
2680
2681 * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
2682 setup_clocks_p.
2683 (final_emit_insn_group_barriers): Remove unused variable prev_insn.
2684
2685 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
2686
2687 PR 42965
2688 * diagnostic.c (diagnostic_initialize): Initialize
2689 some_warnings_are_errors.
2690 (diagnostic_finish): New.
2691 (diagnostic_action_after_output): Call it before exiting.
2692 (diagnostic_report_diagnostic): Do not print message here. Set
2693 some_warnings_are_errors.
2694 * diagnostic.h (diagnostic_context): Delete
2695 issue_warnings_are_errors_message. Add some_warnings_are_errors.
2696 (diagnostic_finish): Declare.
2697 * toplev.c (toplev_main): Call it before exit.
2698
2699 2010-04-09 Jason Merrill <jason@redhat.com>
2700
2701 PR c++/42623
2702 * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
2703 for incomplete type.
2704
2705 PR c++/41788
2706 * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
2707 based on a warning flag.
2708
2709 2010-04-09 Richard Guenther <rguenther@suse.de>
2710
2711 * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
2712
2713 2010-04-09 Iain Sandoe <iains@gcc.gnu.org>
2714
2715 PR bootstrap/43684
2716 * varasm.c (default_assemble_visibility): Wrap vars that are
2717 set, but unused, by targets without GAS.
2718 * config/rs6000/rs6000.c: (paired_emit_vector_compare):
2719 Remove set, but unused, vars.
2720 (rs6000_legitimize_tls_address): Likewise.
2721 (altivec_expand_dst_builtin): Likewise.
2722 * config/darwin.c (machopic_classify_symbol): Likewise.
2723 (machopic_indirection_name): Likewise.
2724
2725 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
2726
2727 * config/i386/i386.md (DWI): New mode iterator.
2728 (S): New mode attribute.
2729 (shift_operand): Ditto.
2730 (shift_immediate_operand): Ditto.
2731 (ashl_input_operand): Ditto.
2732 (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
2733 using SDWIM mode iterator.
2734 (*ashl<mode>3_doubleword): New insn_and_split_pattern. Macroize
2735 pattern from *ashl{di,ti}3_1 and corresponding splitters using
2736 DWI mode iterator.
2737 (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
2738 from corresponding peephole2 patterns.
2739 (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
2740 and x86_64_shift_adj_1 using SWI48 mode iterator.
2741 (x86_shift<mode>_adj_2): Ditto.
2742 (*ashldi3_1_rex64): Split TYPE_LEA pattern.
2743 (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
2744 using SWI48 mode iterator.
2745 (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
2746 *ashldi3_cmp_rex64 using SWI mode iterator.
2747 (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
2748 *ashldi3_cconly_rex64 using SWI mode iterator.
2749 * config/i386/i386.c (ix86_split_ashl): Update for renamed
2750 x86_shift<mode>_adj_{1,2}.
2751 (ix86_split_ashr): Ditto.
2752 (ix86_split_lshr): Ditto.
2753
2754 2010-04-09 Richard Guenther <rguenther@suse.de>
2755
2756 * target.h (builtin_conversion): Pass in input and output types.
2757 * targhooks.c (default_builtin_vectorized_conversion): Adjust.
2758 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
2759 * tree-vect-stmts.c (vectorizable_conversion): Adjust.
2760 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
2761
2762 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
2763 Handle AVX modes.
2764 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
2765
2766 2010-04-09 Richard Guenther <rguenther@suse.de>
2767
2768 PR target/43152
2769 * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
2770
2771 2010-04-09 Richard Guenther <rguenther@suse.de>
2772
2773 * tree-vectorizer.h (struct _stmt_vec_info): Document
2774 that vectype is the type of the LHS.
2775 (supportable_widening_operation, supportable_narrowing_operation):
2776 Get both input and output vector types as arguments.
2777 (vect_is_simple_use_1): Declare.
2778 (get_same_sized_vectype): Likewise.
2779 * tree-vect-loop.c (vect_determine_vectorization_factor):
2780 Set STMT_VINFO_VECTYPE to the vector type of the def.
2781 (vectorizable_reduction): Adjust.
2782 * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
2783 Adjust. Specify the output vector type.
2784 (vect_pattern_recog_1): Adjust.
2785 * tree-vect-stmts.c (get_same_sized_vectype): New function.
2786 (vectorizable_call): Adjust.
2787 (vectorizable_conversion): Likewise.
2788 (vectorizable_operation): Likewise.
2789 (vectorizable_type_demotion): Likewise.
2790 (vectorizable_type_promotion): Likewise.
2791 (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
2792 the def.
2793 (vect_is_simple_use_1): New function.
2794 (supportable_widening_operation): Get both input and output
2795 vector types.
2796 (supportable_narrowing_operation): Likewise.
2797 * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
2798
2799 2010-04-09 Kai Tietz <kai.tietz@onevision.com>
2800
2801 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
2802 __thiscall and _thiscall as predefined macros.
2803 * config/i386/i386.c (ix86_handle_cconv_attribute): Add
2804 thiscall attribute handling.
2805 (ix86_comp_type_attributes): Likewise.
2806 (ix86_function_regparm): Likewise.
2807 (ix86_return_pops_args): Likewise.
2808 (init_cumulative_args): Likewise.
2809 (find_drap_reg): Likewise.
2810 (ix86_static_chain): Likewise.
2811 (x86_this_parameter): Likewise.
2812 (x86_output_mi_thunk): Likewise.
2813 (ix86_attribute_table): Add description for thiscall attribute.
2814 * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
2815 * doc/extend.texi: Add documentation for thiscall.
2816
2817 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
2818
2819 PR c++/28584
2820 * c.opt (Wint-to-pointer-cast): Available in C++.
2821 * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
2822
2823 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
2824
2825 * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
2826 * calls.c (expand_call): Pass the function type to aggregate_value_p.
2827 * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
2828 the target function of a CALL_EXPR. Honor TREE_ADDRESSABLE on the
2829 function type instead. Reorder and simplify checks.
2830
2831 * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
2832
2833 2010-04-08 Jing Yu <jingyu@google.com>
2834 Zdenek Dvorak <ook@ucw.cz>
2835
2836 PR tree-optimization/42720
2837 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
2838 loop unswitch conditions here from ...
2839 (tree_unswitch_single_loop): ... here.
2840
2841 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
2842
2843 * tree-if-conv.c: Fix comments and simplify logic.
2844
2845 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
2846
2847 * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
2848 (tree_if_conversion): Same. Update call to if_convertible_loop_p.
2849 (main_tree_if_conversion): Update call to tree_if_conversion.
2850
2851 2010-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
2852
2853 PR 42485
2854 * doc/invoke.texi (-b,-V): Delete.
2855 * doc/tm.texi: Do not mention -b.
2856 * gcc.c (display_help): Delete -b and -V.
2857 (process_command): Delete -b and -V.
2858 * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
2859
2860 2010-04-08 Christian Borntraeger <borntraeger@de.ibm.com>
2861 Wolfgang Gellerich <gellerich@de.ibm.com>
2862
2863 Implement target hook for loop unrolling
2864 * target.h (loop_unroll_adjust): Add a new target hook function.
2865 * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
2866 * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
2867 * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
2868 (s390_loop_unroll_adjust): Implement the new target hook for s390.
2869 * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
2870 target hook.
2871 (decide_unroll_stupid): Likewise.
2872
2873 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2874
2875 PR target/43643
2876 * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
2877
2878 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2879
2880 * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
2881 (Specific, *-*-solaris2*): Likewise.
2882 Don't prefer Sun as over GNU as.
2883
2884 2010-04-08 Wolfgang Gellerich <gellerich@de.ibm.com>
2885
2886 * config/s390/s390.c (override_options): Adjust the z10
2887 defaults for max-unroll-times, max-completely-peeled-insns
2888 and max-completely-peel-times.
2889
2890 2010-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2891
2892 * config/s390/s390.c (s390_expand_movmem): Issue prefetch
2893 instructions for z10.
2894 (s390_expand_setmem): Likewise.
2895 (s390_expand_cmpmem): Likewise.
2896
2897 2010-04-08 Richard Guenther <rguenther@suse.de>
2898
2899 PR tree-optimization/43679
2900 * tree-ssa-pre.c (eliminate): Only propagate copies.
2901
2902 2010-04-08 Jakub Jelinek <jakub@redhat.com>
2903
2904 PR bootstrap/43681
2905 * expr.c (block_move_libcall_safe_for_call_parm): Avoid
2906 set but not used variable warning.
2907
2908 2010-04-08 Wei Guozhi <carrot@google.com>
2909
2910 PR target/41653
2911 * config/arm/arm.c (thumb1_size_rtx_costs): New function.
2912 (arm_size_rtx_costs): Call the new function when optimized for size.
2913
2914 2010-04-08 Jakub Jelinek <jakub@redhat.com>
2915
2916 PR debug/43670
2917 * cfgexpand.c (expand_debug_expr): If for non-NULL offset
2918 op0 is not a MEM, just return NULL instead of assertion
2919 failure.
2920 (discover_nonconstant_array_refs): Don't walk debug stmts.
2921
2922 2010-04-08 Doug Kwan <dougkwan@google.com>
2923
2924 * configure.ac: Recognize gold and do not use its version number
2925 to test ld features.
2926 * configure: Regenerate.
2927
2928 2010-04-08 Maxim Kuvyrkov <maxim@codesourcery.com>
2929
2930 PR middle-end/40815
2931 * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
2932 (negate_value): Move code to push elements to broken_up_substracts ...
2933 (eliminate_plus_minus_pair): ... here. Push operands that have no
2934 negative pair to plus_negates.
2935 (repropagate_negates, init_reassoc, fini_reassoc): Update.
2936
2937 2010-04-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2938
2939 * doc/install.texi (Configuration): Move description of
2940 --enable-lto, --with-libelf*, --enable-gold from Java section to
2941 general section.
2942
2943 * doc/generic.texi (Working with declarations)
2944 (Function Properties, C and C++ Trees): Fix typos.
2945 * doc/sourcebuild.texi (Top Level): Likewise.
2946
2947 2010-04-07 Jakub Jelinek <jakub@redhat.com>
2948
2949 PR c/18624
2950 * tree.h (DECL_READ_P): Define.
2951 (struct tree_decl_common): Add decl_read_flag.
2952 * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
2953 a set but not used warning.
2954 (merge_decls): Merge DECL_READ_P flag.
2955 (finish_decl, build_compound_literal): Set DECL_READ_P flag.
2956 (finish_function): Issue -Wunused-but-set-parameter diagnostics.
2957 * c-common.c (handle_used_attribute, handle_unused_attribute):
2958 Likewise.
2959 * c-tree.h (default_function_array_read_conversion, mark_exp_read):
2960 New prototypes.
2961 * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
2962 New functions.
2963 (default_conversion, c_process_expr_stmt): Call mark_exp_read.
2964 * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
2965 c_parser_binary_expression, c_parser_cast_expression,
2966 c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
2967 Call default_function_array_read_conversion instead of
2968 default_function_array_conversion where needed.
2969 (c_parser_unary_expression, c_parser_conditional_expression,
2970 c_parser_postfix_expression_after_primary, c_parser_initelt):
2971 Likewise. Call mark_exp_read where needed.
2972 (c_parser_statement_after_labels, c_parser_asm_operands,
2973 c_parser_typeof_specifier, c_parser_sizeof_expression,
2974 c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
2975 where needed.
2976 * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
2977 New.
2978 * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
2979 (warn_unused_but_set_parameter): Default to warn_unused
2980 && extra_warnings.
2981 * doc/invoke.texi: Document -Wunused-but-set-variable and
2982 -Wunused-but-set-parameter.
2983
2984 * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
2985 used count variable.
2986 * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
2987 when operandN variables aren't used in the body of the expander
2988 or splitter.
2989 * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
2990 FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
2991 * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
2992 * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
2993 FOR_EACH_IMM_USE_ON_STMT): Likewise.
2994 * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
2995 * tree.c (PROCESS_ARG): Likewise.
2996
2997 2010-04-07 Simon Baldwin <simonb@google.com>
2998
2999 * diagnostic.h (diagnostic_override_option_index): New macro to
3000 set a diagnostic's option_index.
3001 * c-tree.h (c_cpp_error): Add warning reason argument.
3002 * opts.c (_warning_as_error_callback): New.
3003 (register_warning_as_error_callback): Store callback for
3004 warnings enabled via enable_warning_as_error.
3005 (enable_warning_as_error): Call callback, minor code tidy.
3006 * opts.h (register_warning_as_error_callback): Declare.
3007 * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
3008 response to -Werror=.
3009 (c_common_init_options): Register warning_as_error_callback in opts.c.
3010 * common.opt: Add -Wno-cpp option.
3011 * c-common.c (struct reason_option_codes_t): Map cpp warning
3012 reason codes to gcc option indexes.
3013 * (c_option_controlling_cpp_error): New function, lookup the gcc
3014 option index for a cpp warning reason code.
3015 * (c_cpp_error): Add warning reason argument, call
3016 c_option_controlling_cpp_error for diagnostic_override_option_index.
3017 * doc/invoke.texi: Document -Wno-cpp.
3018
3019 2010-04-07 Richard Guenther <rguenther@suse.de>
3020
3021 * ipa-reference.c (mark_load): Use get_base_address.
3022 (mark_store): Likewise.
3023
3024 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
3025 inserting GIMPLE_NOPs into the IL.
3026 * tree-ssa-structalias.c (get_constraint_for_component_ref):
3027 Explicitly strip handled components and indirect references.
3028
3029 * fold-const.c (fold_unary_loc): Do not strip qualifiers when
3030 folding address expressions.
3031 * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
3032 * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
3033 operand_equal_p to compare decls.
3034 (ptr_deref_may_alias_decl_p): Likewise.
3035 * tree-ssa-operands.c (get_asm_expr_operands): Simplify
3036 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
3037 Handle reversed comparison ops.
3038 * tree-sra.c (asm_visit_addr): Use get_base_address.
3039 * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
3040 * ipa-reference.c (mark_address): Use get_base_address.
3041
3042 2010-04-07 Richard Guenther <rguenther@suse.de>
3043
3044 * tree-ssa-forwprop.c (forward_propagate_addr_expr):
3045 Propagate constants everywhere.
3046
3047 2010-04-07 Jakub Jelinek <jakub@redhat.com>
3048
3049 PR debug/43516
3050 * tree.c (MAX_INT_CACHED_PREC): Define.
3051 (nonstandard_integer_type_cache): New array.
3052 (build_nonstandard_integer_type): Cache results for precision
3053 <= MAX_INT_CACHED_PREC.
3054
3055 2010-04-07 Richard Guenther <rguenther@suse.de>
3056
3057 * doc/invoke.texi (-fargument-alias, -fargument-noalias,
3058 -fargument-noalias-global, -fargument-noalias-anything): Remove.
3059 * common.opt: Likewise.
3060 * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
3061 * alias.c (base_alias_check): Remove flag_argument_noalias handling.
3062 (nonoverlapping_memrefs_p): Likewise.
3063 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
3064 * opts.c (common_handle_option): Handle OPT_fargument_alias,
3065 OPT_fargument_noalias, OPT_fargument_noalias_anything and
3066 OPT_fargument_noalias_global for backward compatibility.
3067
3068 2010-04-07 Richard Guenther <rguenther@suse.de>
3069
3070 PR tree-optimization/43270
3071 * tree-vrp.c (check_array_ref): Fix flexible array member detection.
3072 * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
3073 * tree-ssa-pre.c (phi_translate_1): Adjust.
3074 (fully_constant_expression): Split out vn_reference handling to ...
3075 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
3076 Fold reads from constant strings.
3077 (vn_reference_lookup): Handle fully constant references.
3078 (vn_reference_lookup_pieces): Likewise.
3079 * Makefile.in (expmed.o-warn): Add -Wno-error.
3080
3081 2010-04-07 Martin Jambor <mjambor@suse.cz>
3082
3083 * tree-sra.c (find_param_candidates): Allow scalar va_list types.
3084
3085 2010-04-07 Iain Sandoe <iains@gcc.gnu.org>
3086
3087 PR driver/41594
3088 * gcc.c: Add -static-libstdc++ to list of recognized options.
3089
3090 2010-04-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3091
3092 * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
3093
3094 2010-04-07 Richard Guenther <rguenther@suse.de>
3095
3096 PR middle-end/42617
3097 * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
3098 bases build simple mem attributes to retain points-to information.
3099
3100 2010-04-07 Richard Guenther <rguenther@suse.de>
3101
3102 PR middle-end/42617
3103 * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
3104 preserve points-to related information.
3105
3106 2010-04-07 Richard Guenther <rguenther@suse.de>
3107
3108 PR middle-end/42617
3109 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
3110 discard plain indirect references.
3111 * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
3112 * tree.c (tree_nop_conversion): Likewise.
3113
3114 2010-04-07 Dodji Seketeli <dodji@redhat.com>
3115
3116 PR debug/43628
3117 * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
3118
3119 2010-04-06 Kai Tietz <kai.tietz@onevision.com>
3120
3121 * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
3122 calling convention attributes on METHOD_TYPEs for w64 ABI, too.
3123
3124 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
3125
3126 * tree-if-conv.c: Fix indentation and comments.
3127
3128 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
3129
3130 * tree-if-conv.c: Sort static functions in topological order.
3131
3132 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
3133
3134 * tree-if-conv.c: Fix indentation and comments.
3135
3136 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
3137
3138 PR middle-end/43519
3139 * graphite-clast-to-gimple.c (max_signed_precision_type): Use
3140 lang_hooks.types.type_for_size instead of
3141 build_nonstandard_integer_type.
3142 When converting an unsigned type to signed, double its precision.
3143 (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
3144 (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
3145 (graphite_create_new_loop_guard): When ub + 1 wraps around,
3146 use lb <= ub.
3147
3148 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
3149
3150 PR middle-end/43519
3151 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
3152 POINTER_PLUS_EXPR for pointer types.
3153
3154 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
3155
3156 PR middle-end/43519
3157 * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
3158 * graphite-clast-to-gimple.c: Include langhooks.h.
3159 (max_signed_precision_type): New.
3160 (max_precision_type): Takes two types as arguments.
3161 (precision_for_value): New.
3162 (precision_for_interval): New.
3163 (gcc_type_for_interval): New.
3164 (gcc_type_for_value): New.
3165 (gcc_type_for_clast_term): New.
3166 (gcc_type_for_clast_red): New.
3167 (gcc_type_for_clast_bin): New.
3168 (gcc_type_for_clast_expr): Split up into several functions.
3169 (gcc_type_for_clast_eq): Rewritten.
3170 (compute_bounds_for_level): New.
3171 (compute_type_for_level_1): New.
3172 (compute_type_for_level): New.
3173 (gcc_type_for_cloog_iv): Removed.
3174 (gcc_type_for_iv_of_clast_loop): Rewritten.
3175 (graphite_create_new_loop): Compute the lower and upper bound types
3176 with gcc_type_for_clast_expr.
3177 (graphite_create_new_loop_guard): Same.
3178 (find_cloog_iv_in_expr): Removed.
3179 (compute_cloog_iv_types_1): Removed.
3180 (compute_cloog_iv_types): Removed.
3181 (gloog): Do not call compute_cloog_iv_types.
3182 * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
3183 GBB_CLOOG_IV_TYPES.
3184 (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
3185 * sese.h (struct gimple_bb): Removed field cloog_iv_types.
3186 (GBB_CLOOG_IV_TYPES): Removed.
3187
3188 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
3189
3190 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
3191 gimple_phi_num_args of the loop close SSA phi node is equal to 1.
3192 (detect_commutative_reduction): Same.
3193
3194 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
3195
3196 * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
3197 call to verify_ssa. Invoke verify_loop_closed_ssa with an extra
3198 argument.
3199 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
3200 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
3201 (rewrite_commutative_reductions_out_of_ssa): Same.
3202 * passes.c (execute_function_todo): Call verify_ssa for every pass
3203 in the LNO. Invoke verify_loop_closed_ssa with an extra argument.
3204 * tree-flow.h (verify_loop_closed_ssa): Update declaration.
3205 * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
3206 with an extra argument.
3207 * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same. Call
3208 verify_ssa only when the extra argument is true.
3209 (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
3210 with an extra argument.
3211 (tree_transform_and_unroll_loop): Same.
3212
3213 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
3214
3215 * passes.c (execute_function_todo): Call verify_loop_closed_ssa
3216 for all the passes of the LNO having LOOP_CLOSED_SSA.
3217 * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
3218 * tree-loop-distribution.c (pass_loop_distribution): Same.
3219 * tree-pass.h (TODO_verify_loops): Removed.
3220 * tree-ssa-loop.c (pass_tree_loop_init): Same.
3221 (pass_lim): Same.
3222 (pass_tree_unswitch): Same.
3223 (pass_predcom): Same.
3224 (pass_vectorize): Same.
3225 (pass_linear_transform): Same.
3226 (pass_graphite_transforms): Same.
3227 (pass_iv_canon): Same.
3228 (pass_complete_unroll): Same.
3229 (pass_complete_unrolli): Same.
3230 (pass_parallelize_loops): Same.
3231 (pass_loop_prefetch): Same.
3232 (pass_iv_optimize): Same.
3233
3234 2010-04-06 Changpeng Fang <changpeng.fang@amd.com>
3235
3236 PR middle-end/32824
3237 * passes.c (init_optimization_passes): Move pass_lim before
3238 pass_copy_prop and pass_dce_loop.
3239
3240 2010-04-06 Jakub Jelinek <jakub@redhat.com>
3241
3242 PR target/43667
3243 * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
3244 instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
3245 (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
3246 MULTI_* defines for 4 argument vpermil2p* builtins.
3247
3248 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
3249
3250 * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
3251 * config/i386/i386.c (x86_maybe_negate_const_int): New.
3252 (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
3253 * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
3254 *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
3255 *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
3256 *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
3257 Use x86_maybe_negate_const_int to output insn mnemonic.
3258 (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto. Remove overflow
3259 check from instruction predicate. Update comments.
3260 * config/i386/sync.md (sync_add<mode>): Use
3261 x86_maybe_negate_const_int to output insn mnemonic.
3262
3263 2010-04-06 Jan Hubicka <jh@suse.cz>
3264
3265 PR tree-optimization/42906
3266 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
3267 IGNORE_SELF argument. Set visited_control_parents for fully
3268 processed BBs.
3269 (find_obviously_necessary_stmts): Update call of
3270 mark_control_dependent_edges_necessary.
3271 (propagate_necessity): Likewise. Handle PHI edges more curefully.
3272
3273 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
3274
3275 * config/i386/i386.md: Remove comment about 'e' and 'E'
3276 operand modifier.
3277
3278 2010-04-06 Richard Guenther <rguenther@suse.de>
3279
3280 PR tree-optimization/43627
3281 * tree-vrp.c (extract_range_from_unary_expr): Widenings
3282 of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
3283 not varying.
3284
3285 2010-04-06 Jakub Jelinek <jakub@redhat.com>
3286
3287 * BASE-VER: Change to 4.6.0.
3288
3289 PR target/43638
3290 * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
3291 handling.
3292
3293 2010-04-06 Richard Guenther <rguenther@suse.de>
3294
3295 PR middle-end/43661
3296 * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
3297
3298 2010-04-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3299
3300 * doc/invoke.texi (Optimize Options): Document that LTO
3301 won't remove object access purely due to incompatible
3302 declarations.
3303
3304 2010-04-04 Matthias Klose <doko@ubuntu.com>
3305
3306 * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
3307 Initialize variable.
3308
3309 2010-04-03 Richard Guenther <rguenther@suse.de>
3310
3311 PR middle-end/42509
3312 * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
3313 require a non-NULL MEM_OFFSET.
3314
3315 2010-04-02 Steven Bosscher <steven@gcc.gnu.org>
3316
3317 * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
3318 basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
3319 collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
3320 config/alpha/predicates.md, config/arm/arm.md,
3321 config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
3322 config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
3323 config/darwin9.h, config/darwin.c, config/darwin.h,
3324 config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
3325 config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
3326 config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
3327 config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
3328 config/mips/mips.md, config/mn10300/mn10300.c,
3329 config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
3330 config/rs6000/aix.h, config/rs6000/dfp.md,
3331 config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
3332 config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
3333 config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
3334 config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
3335 config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
3336 config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
3337 c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
3338 diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
3339 doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
3340 doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
3341 fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
3342 gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
3343 graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
3344 graphite-dependences.c, graphite-poly.c, graphite-poly.h,
3345 graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
3346 graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
3347 intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
3348 ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
3349 ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
3350 loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
3351 objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
3352 opt-functions.awk, opth-gen.awk, params.def, passes.c,
3353 postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
3354 rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
3355 store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
3356 tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
3357 tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
3358 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
3359 tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
3360 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
3361 tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
3362 tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
3363 tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
3364 tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
3365 tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
3366 unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
3367
3368 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3369
3370 PR other/43620
3371 * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
3372 * aclocal.m4: Regenerate.
3373
3374 2010-04-02 Richard Guenther <rguenther@suse.de>
3375
3376 PR tree-optimization/43629
3377 * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
3378 if we have seen a constant value.
3379
3380 2010-04-02 Joseph Myers <joseph@codesourcery.com>
3381
3382 * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
3383
3384 2010-04-02 Richard Earnshaw <rearnsha@arm.com>
3385
3386 PR target/43469
3387 * arm.c (legitimize_tls_address): Adjust call to
3388 gen_tls_load_dot_plus_four.
3389 (arm_note_pic_base): New function.
3390 (arm_cannot_copy_insn_p): Use it.
3391 * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
3392 constraint.
3393
3394 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3395
3396 PR bootstrap/43531
3397
3398 Revert:
3399 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3400
3401 * Makefile.in ($(out_object_file)): Depend on
3402 gt-$(basename $(notdir $(out_file))).h.
3403
3404 2010-04-01 Ralf Corsépius <ralf.corsepius@rtems.org>
3405
3406 * config.gcc (lm32-*-rtems*): Add t-lm32.
3407
3408 2010-04-01 Joel Sherrill <joel.sherrill@oarcorp.com>
3409
3410 * config.gcc: Add lm32-*-rtems*.
3411 * config/lm32/rtems.h: New file.
3412
3413 2010-04-01 Dave Korn <dave.korn.cygwin@gmail.com>
3414
3415 PR target/42609
3416 * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
3417
3418 2010-04-01 Jakub Jelinek <jakub@redhat.com>
3419
3420 * dwarf2out.c (output_compilation_unit_header): For
3421 -gdwarf-4 use version 4 instead of version 3.
3422 (output_line_info): For version 4 and above emit additional
3423 maximum ops per insn header field.
3424 (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
3425
3426 * dwarf2out.c (is_c_family, is_java): Remove.
3427 (lower_bound_default): New function.
3428 (add_bound_info, gen_descr_array_type_die): Use it.
3429
3430 2010-04-01 Dodji Seketeli <dodji@redhat.com>
3431
3432 PR debug/43325
3433 * dwarf2out.c (gen_variable_die): Allow debug info for variable
3434 re-declaration when it happens in a function.
3435
3436 2010-04-01 Aldy Hernandez <aldyh@redhat.com>
3437
3438 * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
3439 (cgraph_remove_function_insertion_hook): Same.
3440 (cgraph_call_function_insertion_hooks): Same.
3441
3442 2010-04-01 Richard Guenther <rguenther@suse.de>
3443
3444 PR middle-end/43614
3445 * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
3446 and TREE_THIS_VOLATILE.
3447 (copy_ref_info): Likewise.
3448 * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
3449 * tree.c (build6_stat): Ignore side-effects of all but arg5
3450 for TARGET_MEM_REF. Set TREE_THIS_VOLATILE from arg5 of
3451 TARGET_MEM_REF.
3452
3453 2010-04-01 Richard Guenther <rguenther@suse.de>
3454
3455 PR tree-optimization/43607
3456 * ipa-type-escape.c (check_call): Do not access non-existing
3457 arguments.
3458
3459 2010-04-01 Richard Guenther <rguenther@suse.de>
3460
3461 PR middle-end/43602
3462 Revert
3463 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
3464 Jack Howarth <howarth@bromo.med.uc.edu>
3465
3466 * tree-profile.c (tree_init_ic_make_global_vars): Make static
3467 variables TLS.
3468
3469 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3470
3471 * doc/install.texi (Prerequisites): Document libelf usability on
3472 IRIX 5/6 and Solaris 2.
3473 (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
3474 Update GNU as, GNU ld requirements.
3475 (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
3476 Document Sun Studio compiler download.
3477 Update and simplify as, ld recommendations.
3478 (Specific, *-*-solaris2.7): Note obsoletion, removal.
3479
3480 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3481
3482 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
3483 with_tune_32 to pentium4.
3484
3485 2010-04-01 Uros Bizjak <ubizjak@gmail.com>
3486
3487 * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
3488
3489 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3490
3491 * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
3492 obsoletion, removal.
3493 Update IDO URL.
3494 Document GNU as requirement.
3495 Update configure requirements.
3496 (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
3497 Recomment IRIX 6.5.18+.
3498 Document IDF/IDL requirement.
3499 Document GNU as requirement.
3500 Document GNU ld bootstrap failure.
3501 Remove freeware.sgi.com reference.
3502
3503 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3504
3505 * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
3506 UNIX V4.0, V5.0 obsoletion, removal.
3507 Remove --with-gc=simple reference.
3508 Update VM requirements during bootstrap.
3509 Remove -oldas bootstrap description.
3510 Update binutils reference.
3511 Remove comparison failure note.
3512
3513 2010-03-31 Richard Guenther <rguenther@suse.de>
3514 Zdenek Dvorak <ook@ucw.cz>
3515 Sebastian Pop <sebastian.pop@amd.com>
3516
3517 PR middle-end/43464
3518 * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
3519 with multiple arguments.
3520 (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
3521
3522 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
3523
3524 * graphite-dependences.c (print_pddr): Call print_pdr with an
3525 extra argument.
3526 * graphite-poly.c (debug_pdr): Add an extra argument for the
3527 verbosity level.
3528 (print_pdr): Same.
3529 (print_pbb_domain): Same.
3530 (print_pbb): Same.
3531 (print_scop_context): Same.
3532 (print_scop): Same.
3533 (print_cloog): Same.
3534 (debug_pbb_domain): Same.
3535 (debug_pbb): Same.
3536 (print_pdrs): Same.
3537 (debug_pdrs): Same.
3538 (debug_scop_context): Same.
3539 (debug_scop): Same.
3540 (debug_cloog): Same.
3541 (print_scop_params): Same.
3542 (debug_scop_params): Same.
3543 (print_iteration_domain): Same.
3544 (print_iteration_domains): Same.
3545 (debug_iteration_domain): Same.
3546 (debug_iteration_domains): Same.
3547 (print_scattering_function): Same.
3548 (print_scattering_functions): Same.
3549 (debug_scattering_function): Same.
3550 (debug_scattering_functions): Same.
3551 * graphite-poly.h (debug_pdr): Update declaration.
3552 (print_pdr): Same.
3553 (print_pbb_domain): Same.
3554 (print_pbb): Same.
3555 (print_scop_context): Same.
3556 (print_scop): Same.
3557 (print_cloog): Same.
3558 (debug_pbb_domain): Same.
3559 (debug_pbb): Same.
3560 (print_pdrs): Same.
3561 (debug_pdrs): Same.
3562 (debug_scop_context): Same.
3563 (debug_scop): Same.
3564 (debug_cloog): Same.
3565 (print_scop_params): Same.
3566 (debug_scop_params): Same.
3567 (print_iteration_domain): Same.
3568 (print_iteration_domains): Same.
3569 (debug_iteration_domain): Same.
3570 (debug_iteration_domains): Same.
3571 (print_scattering_function): Same.
3572 (print_scattering_functions): Same.
3573 (debug_scattering_function): Same.
3574 (debug_scattering_functions): Same.
3575
3576 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
3577
3578 * graphite-poly.c (print_scattering_function_1): New.
3579 (print_scattering_function): Call it.
3580 (print_scop_params): Remove spaces at the end of lines.
3581 (print_cloog): New.
3582 (debug_cloog): New.
3583 * graphite-poly.h (print_cloog): Declared.
3584 (debug_cloog): Declared.
3585
3586 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
3587
3588 * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
3589 in loop->header.
3590 * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
3591 * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
3592 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
3593 to switch between adding the IV bump in loop->latch or in loop->header.
3594
3595 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
3596
3597 * graphite-poly.c (print_scattering_function): Pretty print following
3598 the scoplib format.
3599 (print_pdr): Same.
3600 (print_pbb_domain): Same.
3601 (dump_gbb_cases): Same.
3602 (dump_gbb_conditions): Same.
3603 (print_pdrs): Same.
3604 (print_pbb): Same.
3605 (print_scop_params): Same.
3606 (print_scop_context): Same.
3607 (print_scop): Same.
3608 (print_pbb_body): New.
3609 (lst_indent_to): New.
3610 (print_lst): Start new lines with a #.
3611 * graphite-poly.h (pbb_bb): New.
3612 (pbb_index): Use pbb_bb.
3613 * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
3614 disjuncts.
3615 * tree-data-ref.c (dump_data_reference): Start new lines with a #.
3616
3617 2010-03-31 Jakub Jelinek <jakub@redhat.com>
3618
3619 * dwarf2out.c (size_of_die): For -gdwarf-4 use
3620 uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
3621 and 0 instead of 1 for dw_val_class_flag.
3622 (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
3623 dw_val_class_range_list, dw_val_class_loc_list,
3624 dw_val_class_lineptr and dw_val_class_macptr, use
3625 DW_FORM_flag_present for dw_val_class_flag and
3626 DW_FORM_exprloc for dw_val_class_loc.
3627 (output_die): For -gdwarf-4 print dw_val_class_loc
3628 size as uleb128 instead of 1 or 2 bytes and don't print
3629 anything for dw_val_class_flag.
3630
3631 * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
3632 instead of cselib_lookup following by tweaking locs->setting_insn.
3633
3634 PR bootstrap/43596
3635 * cselib.c (cselib_process_insn): Clear cselib_current_insn
3636 even before returning from label, setjmp call or volatile asm
3637 handling.
3638
3639 2010-03-31 Richard Guenther <rguenther@suse.de>
3640
3641 PR middle-end/43600
3642 * cgraphunit.c (cgraph_output_in_order): Do not allocate
3643 temporary data on stack.
3644
3645 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3646
3647 * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
3648 (PUSHSECTION_ASM_OP): Remove.
3649 (POPSECTION_ASM_OP): Remove.
3650 (PUSHSECTION_FORMAT): Remove.
3651 * config/sol2.h (PUSHSECTION_FORMAT): Define.
3652 * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
3653 * config/sol2.c (solaris_output_init_fini): Use it.
3654
3655 2010-03-31 Jie Zhang <jie@codesourcery.com>
3656
3657 PR 43574
3658 * opt-functions.awk (var_type_struct): Use signed char type
3659 for simple variables.
3660
3661 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3662
3663 * config/sol2.c: Include output.h.
3664 (solaris_assemble_visibility): New function.
3665 * config/t-sol2 (sol2.o): Add output.h dependency.
3666 * config/sol2-protos.h (solaris_assemble_visibility): Declare.
3667 * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
3668 Redefine.
3669
3670 2010-03-31 Jakub Jelinek <jakub@redhat.com>
3671
3672 PR target/43580
3673 * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
3674 V2SImode or XFmode on PRE_DEC.
3675
3676 PR debug/43557
3677 * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
3678 BLKmode.
3679
3680 2010-03-31 Jie Zhang <jie@codesourcery.com>
3681
3682 PR 43562
3683 * reload.h (caller_save_initialized_p): Declare.
3684 * toplev.c (backend_init_target): Don't call
3685 init_caller_save but set caller_save_initialized_p to false.
3686 * caller-save.c (caller_save_initialized_p): Define.
3687 (init_caller_save): Check caller_save_initialized_p.
3688 * ira.c (ira): Call init_caller_save if flag_caller_saves.
3689
3690 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3691
3692 PR target/39048
3693 * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
3694 and soft-fp/t-softfp to tmake_file.
3695 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
3696 (LIBGCC2_TF_CEXT): Define.
3697 (TF_SIZE): Define.
3698
3699 2010-03-30 Alexandre Oliva <aoliva@redhat.com>
3700
3701 PR debug/42977
3702 * cselib.c (n_useless_values): Document handling of debug locs.
3703 (n_useless_debug_values, n_debug_values): New variables.
3704 (new_elt_loc_list): Don't add to debug values, keep count.
3705 (promote_debug_loc): New.
3706 (cselib_reset_table): Zero new variables.
3707 (entry_and_rtx_equal_p): Promote debug locs.
3708 (discard_useless_locs): Increment n_useless_debug_values for
3709 debug values.
3710 (remove_useless_values): Adjust n_useless_values and n_debug_values
3711 with n_useless_debug_values.
3712 (add_mem_for_addr): Promote debug locs.
3713 (cselib_lookup_mem): Likewise.
3714 (cselib_lookup_addr): Renamed to...
3715 (cselib_lookup_addr_1): ... this. Promote debug locs. Don't call...
3716 (cselib_log_lookup): ... this. Turn into...
3717 (cselib_lookup_addr): ... new wrapper.
3718 (cselib_lookup_from_insn): New.
3719 (cselib_invalidate_regno): Increment n_useless_debug_values for
3720 debug values.
3721 (cselib_invalidate_mem): Likewise.
3722 (cselib_process_insn): Take n_deleted and n_debug_values into
3723 account to guard remove_useless_value call.
3724 (cselib_finish): Zero n_useless_debug_values.
3725 * cselib.h (cselib_lookup_from_insn): Declare.
3726 * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
3727 (sched_analyze_2): Likewise.
3728
3729 2010-03-30 Jakub Jelinek <jakub@redhat.com>
3730
3731 * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
3732 functions.
3733 (adjust_mems): Replace narrowing SUBREG of expression containing
3734 just PLUS, MINUS, MULT and ASHIFT of registers and constants
3735 with operations in the narrower mode.
3736
3737 PR debug/43593
3738 * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
3739 regs_invalidated_by_call instead all call_used_reg_set registers.
3740
3741 2010-03-30 Sebastian Pop <sebastian.pop@amd.com>
3742
3743 PR middle-end/43430
3744 * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
3745 pointer comparisons with types_compatible_p.
3746 * tree-vect-stmts.c (vectorizable_call): Same.
3747 (vectorizable_condition): Same.
3748
3749 2010-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3750
3751 * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
3752 stack check if the mask would be zero.
3753
3754 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
3755 Jack Howarth <howarth@bromo.med.uc.edu>
3756
3757 * tree-profile.c (tree_init_ic_make_global_vars): Make static
3758 variables TLS.
3759
3760 2010-03-30 Joseph Myers <joseph@codesourcery.com>
3761
3762 PR other/25232
3763 * libgcc-std.ver (GCC_4.5.0): Define version. Include __unordxf2
3764 and __unordtf2.
3765 * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
3766 Include ___unordxf2 and ___unordtf2.
3767 * config/i386/libgcc-glibc.ver: Do not define inheritance from
3768 GCC_4.4.0 here.
3769
3770 2010-03-30 Tarik Graba <tarik.graba@telecom-paristech.fr>
3771
3772 * config/lm32/t-lm32: New file.
3773 * config.gcc: Use the above file when targetting lm32.
3774
3775 2010-03-28 Duncan Sands <baldrick@free.fr>
3776
3777 * Makefile.in (PLUGIN_HEADERS): Add except.h.
3778
3779 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
3780
3781 PR middle-end/43431
3782 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
3783 Improve vectorization cost model diagnostic.
3784
3785 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
3786
3787 PR middle-end/43436
3788 * tree-vect-data-refs.c (vect_analyze_data_refs): When
3789 compute_data_dependences_for_loop returns false, early exit
3790 and output an extra diagnostic for the failed data reference
3791 analysis.
3792
3793 2010-03-29 Richard Guenther <rguenther@suse.de>
3794
3795 PR tree-optimization/43560
3796 * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
3797 (can_sm_ref_p): Treat stores to readonly locations as trapping.
3798
3799 2010-03-29 Jie Zhang <jie@codesourcery.com>
3800
3801 PR 43564
3802 * toplev.c (process_options): Set optimization_default_node
3803 and optimization_current_node.
3804 * opts.c (decode_options): Don't set optimization_default_node
3805 and optimization_current_node.
3806
3807 2010-03-29 Ralf Corsépius <ralf.corsepius@rtems.org>
3808
3809 * config/rtems.h: Abandon -qrtems_debug.
3810
3811 2010-03-28 Jan Hubicka <jh@suse.cz>
3812
3813 PR tree-optimization/43505
3814 * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
3815 map should not be copied.
3816
3817 2010-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3818
3819 PR middle-end/41674
3820 * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
3821 cdtors, set DECL_PRESERVE_P.
3822 * ipa.c (cgraph_externally_visible_p): Return true if declaration
3823 should be preseved.
3824
3825 2010-03-27 Uros Bizjak <ubizjak@gmail.com>
3826
3827 PR tree-optimization/43528
3828 * stor-layout.c (place_field): Check that constant fits into
3829 unsigned HWI when skipping calculation of MS bitfield layout.
3830
3831 2010-03-27 Jan Hubicka <jh@suse.cz>
3832
3833 PR middle-end/43391
3834 * varasm.c (make_decl_rtl): Deal with COMMON flag to make
3835 notice_global_symbol work.
3836
3837 2010-03-27 Jakub Jelinek <jakub@redhat.com>
3838
3839 * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
3840 instead of dwarf2out_decl.
3841 (struct var_loc_node): Remove section_label field.
3842 (dwarf2out_function_decl): New function.
3843 (dwarf2out_var_location): Don't set section_label field.
3844 (dwarf2out_begin_function): Don't empty decl_loc_table here.
3845
3846 2010-03-26 Michael Meissner <meissner@linux.vnet.ibm.com>
3847
3848 PR tree-optimization/43544
3849 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
3850 First argument for builtin vectorized function hook is now a
3851 tree to be able to distinguish between machine specific and
3852 standard builtins.
3853 * targhooks.c (default_builtin_vectorized_function): Ditto.
3854 * targhooks.h (default_builtin_vectorized_function): Ditto.
3855 * target.h (struct gcc_target): Ditto.
3856 * tree-vect-stmts.c (vectorizable_function): Ditto.
3857 * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
3858 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
3859 Ditto.
3860
3861 2010-03-26 Joseph Myers <joseph@codesourcery.com>
3862
3863 PR c/43381
3864 * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
3865 nested binding iff it is a FUNCTION_DECL.
3866 (store_parm_decls_newstyle): Pass nested=true to bind for
3867 FUNCTION_DECLs amongst parameters.
3868
3869 2010-03-26 Jakub Jelinek <jakub@redhat.com>
3870
3871 * var-tracking.c (vt_expand_loc_callback): Don't run
3872 cselib_expand_value_rtx_cb in dummy mode if
3873 cselib_dummy_expand_value_rtx_cb returned false.
3874
3875 * var-tracking.c (emit_note_insn_var_location): For one part
3876 notes with offset 0, don't add EXPR_LIST around the location.
3877 * dwarf2out.c (loc_descriptor, dw_loc_list_1,
3878 add_location_or_const_value_attribute): Adjust for that change.
3879
3880 PR debug/43540
3881 * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
3882 into first operand and location into second.
3883 (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
3884 dw_cfi_oprnd_loc for DW_CFA_expression.
3885 (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
3886 (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
3887 assume first argument is regnum and second argument is location.
3888
3889 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
3890
3891 PR target/42113
3892 * config/alpha/alpha.md (*cmp_sadd_si): Change mode
3893 of scratch register to DImode. Split to DImode comparison operator.
3894 Use SImode subreg of scratch register in the multiplication.
3895 (*cmp_sadd_sidi): Ditto.
3896 (*cmp_ssub_si): Ditto.
3897 (*cmp_ssub_sidi): Ditto.
3898
3899 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
3900
3901 PR target/43524
3902 * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
3903 Remove invalid assert and wrong comment.
3904
3905 2010-03-26 Jakub Jelinek <jakub@redhat.com>
3906
3907 PR debug/43516
3908 * flags.h (final_insns_dump_p): New extern.
3909 * final.c (final_insns_dump_p): New variable.
3910 (rest_of_clean_state): Set it before -fdump-final-insns=
3911 dumping, clear afterwards.
3912 * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
3913 MEM_ALIAS_SET on MEMs.
3914
3915 2010-03-26 David S. Miller <davem@davemloft.net>
3916
3917 * configure.ac: Fix sparc GOTDATA_OP bug check.
3918 * configure: Rebuild.
3919
3920 2010-03-26 Alan Modra <amodra@gmail.com>
3921
3922 * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
3923
3924 2010-03-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3925
3926 * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
3927 TLS_SECTION_ASM_FLAG.
3928
3929 2010-03-25 Jakub Jelinek <jakub@redhat.com>
3930
3931 PR bootstrap/43511
3932 * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
3933 Clear first_function_block_is_cold.
3934
3935 PR c/43385
3936 * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
3937 argument if the argument is truth_value_p.
3938
3939 2010-03-24 Michael Meissner <meissner@linux.vnet.ibm.com>
3940
3941 * config/rs6000/constraints.md: Update copyright year for my changes.
3942
3943 PR target/43484
3944 * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
3945 used in reg+reg addressing, swap registers.
3946
3947 2010-03-24 Jakub Jelinek <jakub@redhat.com>
3948
3949 PR debug/43293
3950 * target.h (struct gcc_target): Add code_end hook.
3951 * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
3952 if not yet defined.
3953 (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
3954 * toplev.c (compile_file): Call targetm.asm_out.code_end
3955 hook before unwind info/debug info output.
3956 * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
3957 * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
3958 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
3959 * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
3960 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
3961 * config/i386/i386.c (ix86_file_end): Renamed to...
3962 (ix86_code_end): ... this. Make static. Don't call
3963 file_end_indicate_exec_stack. Emit unwind info using
3964 final_start_function/final_end_function.
3965 (darwin_x86_file_end): Remove.
3966 (TARGET_ASM_CODE_END): Define.
3967 * config/i386/i386.h (TARGET_ASM_FILE_END,
3968 NEED_INDICATE_EXEC_STACK): Don't define.
3969 * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
3970 (TARGET_ASM_FILE_END): Define to darwin_file_end.
3971 * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
3972 * doc/tm.texi (TARGET_ASM_CODE_END): Document.
3973
3974 PR target/43498
3975 * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
3976 at the beginning and final_end_function at the end.
3977 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
3978
3979 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3980
3981 * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
3982 and Sun as TLS syntax.
3983 (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
3984 * configure: Regenerate.
3985 * config.in: Regenerate.
3986 * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
3987 (default_elf_asm_named_section): Use it.
3988 * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
3989 (i386_output_dwarf_dtprel): Likewise.
3990 (output_addr_const_extra): Likewise.
3991 (output_pic_addr_const): Lowercase @GOTTPOFF.
3992 (output_addr_const_extra): Likewise.
3993 (output_pic_addr_const): Lowercase @GOTNTPOFF.
3994 (output_addr_const_extra): Likewise.
3995 (output_pic_addr_const): Lowercase @INDNTPOFF.
3996 (output_addr_const_extra): Likewise.
3997 (output_pic_addr_const): Lowercase @NTPOFF.
3998 (output_addr_const_extra): Likewise.
3999 (output_pic_addr_const): Lowercase @TPOFF.
4000 (output_addr_const_extra): Likewise.
4001 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
4002 (*tls_global_dynamic_64): Likewise.
4003 (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
4004 (*tls_local_dynamic_base_64): Lowercase @TLSLD.
4005
4006 * defaults.h (TLS_COMMON_ASM_OP): Provide default.
4007 (ASM_OUTPUT_TLS_COMMON): Use it.
4008 * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
4009
4010 PR target/38118
4011 * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
4012 * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
4013 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
4014 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
4015 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
4016 (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
4017
4018 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4019
4020 * config/i386/i386.c (override_options): Don't accept
4021 -mtls-dialect=sun any longer.
4022 * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
4023 * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
4024 (*tls_local_dynamic_base_32_sun): Likewise.
4025 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
4026
4027 2010-03-24 Jakub Jelinek <jakub@redhat.com>
4028
4029 PR debug/43508
4030 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
4031 VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
4032
4033 PR debug/43479
4034 * ira.c (adjust_cleared_regs): New function.
4035 (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
4036
4037 PR debug/19192
4038 PR debug/43479
4039 * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
4040 from gimple_block.
4041 * expr.c (expand_expr_real): Restore previous
4042 curr_insn_source_location and curr_insn_block after
4043 expand_expr_real_1 call.
4044 (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
4045 instead of expand_expr_real_1.
4046
4047 2010-03-23 Vladimir Makarov <vmakarov@redhat.com>
4048
4049 PR rtl-optimization/43413
4050 * ira-color.c (setup_allocno_available_regs_num): Count prohibited
4051 hard regs too.
4052
4053 2010-03-22 James E. Wilson <wilson@codesourcery.com>
4054
4055 PR target/43348
4056 * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
4057 call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
4058
4059 2010-03-22 H.J. Lu <hongjiu.lu@intel.com>
4060
4061 * config/i386/i386.c (ix86_target_string): Add -mfma.
4062 Fix a typo in comment.
4063
4064 2010-03-22 Mike Stump <mikestump@comcast.net>
4065
4066 PR target/23071
4067 * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
4068 Don't overly align based upon packed packed fields.
4069
4070 2010-03-22 Jason Merrill <jason@redhat.com>
4071
4072 * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
4073 Use () rather than [], and move before the element type.
4074
4075 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4076
4077 * doc/configfiles.texi (Configuration Files): Removed
4078 fixinc/Makefile*, intl/Makefile.*.
4079 * doc/makefile.texi: Fixed markup. Abstract from version
4080 control system used.
4081 (Makefile): Removed obsolete gcc/java/parse.y example.
4082 * doc/sourcebuild.texi: Likewise.
4083 (Top Level): Added config, gnattools, libdecnumber, libgcc,
4084 libgomp, libssp. Removed fastjar.
4085 (Miscellaneous Docs): Clarify location.
4086 Added COPYING3, COPYING3.LIB.
4087 (Front End Directory): Moved Make-lang.in entry to new subsubsection.
4088
4089 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4090
4091 PR target/38085
4092 * config/i386/i386.c (x86_function_profiler)
4093 [!NO_PROFILE_COUNTERS]: Fix typo.
4094 * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
4095 instead of callq.
4096
4097 2010-03-22 Janis Johnson <janis187@us.ibm.com>
4098 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4099
4100 * doc/sourcebuild.texi (Test Directives): Split into six
4101 subsections, with most of the current text in new subsections
4102 Directives, Selectors, and Final Actions.
4103 (Directives): Split list of test directives into multiple
4104 subsubsections.
4105 (Selectors): Describe use and syntax of selectors.
4106 (Effective-Target Keywords): Describe all existing keywords.
4107 (Add Options): Describe features for dg-add-options.
4108 (Require Support): Describe variants of dg-require-support.
4109 (Final Actions): Describe commands to use in dg-final.
4110
4111 2010-03-22 Michael Matz <matz@suse.de>
4112
4113 PR middle-end/43475
4114 * recog.c (validate_replace_rtx_group): Replace also in
4115 REG_EQUAL and REG_EQUIV notes.
4116
4117 2010-03-22 Richard Guenther <rguenther@suse.de>
4118
4119 PR tree-optimization/43390
4120 * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
4121 sure vector extracts are type correct.
4122
4123 2010-03-22 Richard Guenther <rguenther@suse.de>
4124
4125 PR middle-end/40106
4126 * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
4127 x * sqrt (x) even when optimizing for size if the target
4128 has native support for sqrt.
4129
4130 2010-03-22 Jakub Jelinek <jakub@redhat.com>
4131
4132 * varasm.c (make_decl_rtl_for_debug): Also clear
4133 flag_mudflap for the duration of make_decl_rtl call.
4134
4135 PR debug/43443
4136 * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
4137 locs from preserved VALUEs.
4138
4139 2010-03-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4140
4141 PR middle-end/42718
4142 * pa.md (movmemsi): Set align to one if zero.
4143 (movmemdi): Likewise.
4144
4145 2010-03-21 Richard Earnshaw <rearnsha@arm.com>
4146
4147 PR target/42321
4148 * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
4149 with their corresponding prologue pushes.
4150
4151 2010-03-20 Andrew Pinski <pinskia@gmail.com>
4152
4153 PR target/43156
4154 * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
4155 at the begining or end.
4156 (spu_expand_epilogue): Likewise.
4157
4158 2010-03-20 Richard Guenther <rguenther@suse.de>
4159
4160 PR rtl-optimization/43438
4161 * combine.c (make_extraction): Properly zero-/sign-extend an
4162 extraction of the low part of a CONST_INT. Also handle
4163 CONST_DOUBLE.
4164
4165 2010-03-19 Mike Stump <mikestump@comcast.net>
4166
4167 * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
4168 * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
4169 (override_options): Use SUBTARGET32_DEFAULT_CPU.
4170
4171 2010-03-19 Andrew Pinski <andrew_pinski@caviumnetworks.com>
4172
4173 PR c/43211
4174 * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
4175 an error.
4176
4177 2010-03-19 Bernd Schmidt <bernds@codesourcery.com>
4178
4179 PR rtl-optimization/42258
4180 * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
4181 use that may match DEF.
4182
4183 PR target/40697
4184 * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
4185 the cost of loading the constant rather than assuming
4186 COSTS_N_INSNS (1).
4187 * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
4188 outer code is AND, do the same tests as the andsi3 expander and
4189 return COSTS_N_INSNS (1) if and is cheap.
4190
4191 * optabs.c (avoid_expensive_constant): Fix formatting.
4192
4193 2010-03-19 Michael Matz <matz@suse.de>
4194
4195 PR c++/43116
4196 * attribs.c (decl_attributes): When rebuilding a function pointer
4197 type use the same qualifiers as the original pointer type.
4198
4199 2010-03-19 Martin Jambor <mjambor@suse.cz>
4200
4201 * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
4202 and is_gimple_ip_invariant_address.
4203
4204 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4205
4206 Revert
4207 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4208
4209 * config/arm/arm.c (arm_override_options): Turn off
4210 flag_dwarf2_cfi_asm for AAPCS variants.
4211
4212 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4213
4214 PR target/43399
4215 * config/arm/arm.c (emit_multi_reg_push): Update comments.
4216 Use PRE_MODIFY instead of PRE_DEC.
4217 (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
4218 (vfp_emit_fstmd): Likewise.
4219
4220 2010-03-19 Michael Matz <matz@suse.de>
4221
4222 PR target/43305
4223 * builtins.c (expand_builtin_interclass_mathfn,
4224 expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
4225 if that fails.
4226
4227 2010-03-19 Richard Guenther <rguenther@suse.de>
4228
4229 PR tree-optimization/43415
4230 * tree-ssa-pre.c (phi_translate): Split out worker to ...
4231 (phi_translate_1): ... this.
4232 (phi_translate): Move all caching here. Cache all NARY
4233 and REFERENCE translations.
4234
4235 2010-03-19 David S. Miller <davem@davemloft.net>
4236
4237 With help from Eric Botcazou.
4238 * config/sparc/sparc.c: Include dwarf2out.h.
4239 (emit_pic_helper): Delete.
4240 (pic_helper_symbol_name): Delete.
4241 (pic_helper_emitted_p): Delete.
4242 (pic_helper_needed): New.
4243 (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
4244 (get_pc_thunk_name): New.
4245 (load_pic_register): Remove 'delay_pic_helper' arg. Use
4246 get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
4247 Set pic_helper_needed to true. Don't call emit_pic_helper.
4248 (sparc_expand_prologue): Update load_pic_register call.
4249 (sparc_output_mi_thunk): Likewise.
4250 (sparc_file_end): Emit a hidden comdat symbol for the PIC
4251 thunk if possible. Output CFI information as needed.
4252
4253 2010-03-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4254 Jack Howarth <howarth@bromo.med.uc.edu>
4255
4256 PR target/36399
4257 * config/i386/i386.h: Fix ABI on darwin x86-32.
4258
4259 2010-03-18 Aldy Hernandez <aldyh@redhat.com>
4260
4261 * tree.h: Declare make_decl_rtl_for_debug.
4262 * varasm.c (make_decl_rtl_for_debug): New.
4263 * dwarf2out.c (rtl_for_decl_location): Call it.
4264 * cfgexpand.c (expand_debug_expr): Call it.
4265
4266 2010-03-18 Jakub Jelinek <jakub@redhat.com>
4267
4268 PR bootstrap/43399
4269 * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
4270 mem_mode.
4271
4272 PR bootstrap/43403
4273 * var-tracking.c (vt_init_cfa_base): Do nothing if
4274 cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
4275
4276 2010-03-18 Alexandre Oliva <aoliva@redhat.com>
4277
4278 PR debug/42873
4279 * var-tracking.c (canonicalize_vars_star): New.
4280 (dataflow_post_merge_adjust): Use it.
4281
4282 2010-03-18 Jakub Jelinek <jakub@redhat.com>
4283
4284 PR debug/43058
4285 * var-tracking.c (non_suitable_const): New function.
4286 (add_uses): For DEBUG_INSNs with constants, don't record any
4287 value, instead just the constant value itself.
4288 (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
4289 is not VAR_LOC_UNKNOWN_P, set var to the constant.
4290 (emit_notes_in_bb): Likewise.
4291 (emit_note_insn_var_location): For onepart variables if
4292 cur_loc is a VOIDmode constant, use DECL_MODE.
4293
4294 2010-03-18 Martin Jambor <mjambor@suse.cz>
4295
4296 PR middle-end/42450
4297 * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
4298 * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
4299 all non-clones. Moved call redirection...
4300 (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
4301 (cgraph_materialize_all_clones): Dispose of all
4302 combined_args_to_skip bitmaps.
4303 (verify_cgraph_node): Do not check for edges pointing to wrong
4304 nodes in inline clones.
4305 * tree-inline.c (copy_bb): Call
4306 cgraph_redirect_edge_call_stmt_to_callee.
4307 * ipa.c (cgraph_remove_unreachable_nodes): Call
4308 cgraph_node_remove_callees even when there are used clones.
4309
4310 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
4311
4312 * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
4313
4314 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
4315
4316 PR target/43383
4317 * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
4318 for 32bit.
4319
4320 2010-03-18 Michael Matz <matz@suse.de>
4321
4322 PR middle-end/43419
4323 * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
4324 into sqrt(x) if we need to preserve signed zeros.
4325
4326 2010-03-18 Steven Bosscher <steven@gcc.gnu.org>
4327 Eric Botcazou <ebotcazou@adacore.com>
4328
4329 PR rtl-optimization/43360
4330 * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
4331 note if we don't know its invariant status.
4332
4333 2010-03-18 Michael Matz <matz@suse.de>
4334
4335 PR tree-optimization/43402
4336 * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
4337 PHI chains of ssa names registered for update.
4338
4339 2010-03-17 Peter Bergner <bergner@vnet.ibm.com>
4340
4341 PR target/42427
4342 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
4343 non-offsettable and pre_modify update addressing.
4344 * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
4345 and "2" alternatives "#".
4346 (*movdd_softfloat32): Make all alternatives "#";
4347 * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
4348 (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
4349 (*movdf_softfloat32): Make all alternatives "#";
4350 (movdi): Use the new DIFD mode iterator to create a common splitter
4351 for movdi, movdf and movdd patterns.
4352
4353 2010-03-18 Shujing Zhao <pearly.zhao@oracle.com>
4354
4355 * common.opt (dumpdir): Remove redundant tab.
4356
4357 2010-03-17 Martin Jambor <mjambor@suse.cz>
4358
4359 PR tree-optimization/43347
4360 * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
4361 original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
4362
4363 2010-03-17 Bernd Schmidt <bernd.schmidt@analog.com>
4364
4365 PR rtl-optimization/42216
4366 * regrename.c (create_new_chain): New function, broken out from...
4367 (scan_rtx_reg): ... here. Call it. Handle the case where we are
4368 appending a use to an empty chain.
4369 (build_def_use): Remove previous changes that convert OP_INOUT to
4370 OP_OUT operands; instead detect the case where an OP_INOUT operand
4371 uses a previously untracked register and create an empty chain for it.
4372
4373 2010-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4374
4375 * doc/extend.texi (Function Attributes): Rewrite unfinished
4376 sentence in ms_abi documentation.
4377
4378 2010-03-17 Alan Modra <amodra@gmail.com>
4379
4380 * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
4381 * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
4382 (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
4383 * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
4384
4385 2010-03-16 Richard Henderson <rth@redhat.com>
4386
4387 PR middle-end/43365
4388 * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
4389 (lower_try_finally): Save and restore eh_seq around the expansion
4390 of the try-finally.
4391
4392 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
4393
4394 * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
4395 statements before splitting block.
4396
4397 2010-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4398
4399 * doc/sourcebuild.texi (Testsuites): Fix markup.
4400 Use pathnames relative to gcc/testsuite.
4401 (Test Directives): Move description of how timeout is determined.
4402 (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
4403 (C Tests): Correct gcc.misc-tests directory.
4404 Framework tests now live in gcc.test-framework.
4405
4406 2010-03-16 Richard Guenther <rguenther@suse.de>
4407
4408 PR middle-end/43379
4409 * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
4410 operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
4411
4412 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
4413 Alexandre Oliva <aoliva@redhat.com>
4414
4415 PR tree-optimization/42917
4416 * lambda-code.c (remove_iv): Skip debug statements.
4417 (lambda_loopnest_to_gcc_loopnest): Likewise.
4418 (not_interesting_stmt): Debug statements are not interesting.
4419
4420 2010-03-16 Jakub Jelinek <jakub@redhat.com>
4421
4422 PR debug/43051
4423 PR debug/43092
4424 * cselib.c (cselib_preserve_constants,
4425 cfa_base_preserved_val): New static variables.
4426 (preserve_only_constants): New function.
4427 (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
4428 clear its REG_VALUES. If cselib_preserve_constants, don't
4429 empty the whole hash table, but preserve there VALUEs with constants,
4430 cfa_base_preserved_val and cfa_base_preserved_val plus constant.
4431 (cselib_preserve_cfa_base_value): New function.
4432 (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
4433 (cselib_init): Change argument to int bitfield. Set
4434 cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
4435 is in it.
4436 (cselib_finish): Clear cselib_preserve_constants and
4437 cfa_base_preserved_val.
4438 * cselib.h (enum cselib_record_what): New enum.
4439 (cselib_init): Change argument to int.
4440 (cselib_preserve_cfa_base_value): New prototype.
4441 * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
4442 * dse.c (dse_step1): Likewise.
4443 * cfgcleanup.c (thread_jump): Likewise.
4444 * sched-deps.c (sched_analyze): Likewise.
4445 * gcse.c (local_cprop_pass): Likewise.
4446 * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
4447 If FN is non-NULL, call the callback always and whenever it returns
4448 non-NULL just return that. Only do rtx_equal_p if FN is NULL.
4449 * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
4450 * combine.c (propagate_for_debug_subst): Add old_rtx argument,
4451 compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
4452 * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
4453 * var-tracking.c: Include recog.h.
4454 (bb_stack_adjust_offset): Remove.
4455 (vt_stack_adjustments): Don't call it, instead just gather the
4456 adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
4457 (adjust_stack_reference): Remove.
4458 (compute_cfa_pointer): New function.
4459 (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
4460 (struct adjust_mem_data): New type.
4461 (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
4462 functions.
4463 (get_address_mode): New function.
4464 (replace_expr_with_values): Use it.
4465 (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
4466 Use get_address_mode. For cfa_base_rtx return MO_CLOBBER.
4467 (adjust_sets): Remove.
4468 (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
4469 Use get_address_mode.
4470 (get_adjusted_src): Remove.
4471 (add_stores): Don't call it. Never reuse expr SET. Don't add extra
4472 MO_VAL_USE for cfa_base_rtx plus constant. Use get_address_mode.
4473 (add_with_sets): Don't call adjust_sets.
4474 (fp_setter, vt_init_cfa_base): New functions.
4475 (vt_initialize): Change return type to bool. Move most of pool etc.
4476 initialization to the beginning of the function from end. Pass
4477 CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
4478 If !frame_pointer_needed, call vt_stack_adjustment before mos
4479 vector is filled, call vt_init_cfa_base if argp/framep has been
4480 eliminated to sp. If frame_pointer_needed and argp/framep has
4481 been eliminated to hard frame pointer, set
4482 hard_frame_pointer_adjustment and call vt_init_cfa_base after
4483 encountering fp setter in the prologue. For MO_ADJUST, call
4484 log_op_type before pusing the op into mos vector, not afterwards.
4485 Call adjust_insn before cselib_process_insn/add_with_sets,
4486 call cancel_changes (0) afterwards.
4487 (variable_tracking_main_1): Adjust for vt_initialize calling
4488 vt_stack_adjustments and returning whether it succeeded or not.
4489
4490 2010-03-15 Aldy Hernandez <aldyh@redhat.com>
4491
4492 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
4493 debug statements.
4494
4495 2010-03-15 Jakub Jelinek <jakub@redhat.com>
4496
4497 * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
4498 has been set.
4499 (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
4500 drap_reg has not been set.
4501
4502 2010-03-15 Michael Matz <matz@suse.de>
4503
4504 PR middle-end/43300
4505 * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
4506 use it to expand block copies.
4507 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
4508 insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
4509 (insert_value_copy_on_edge): Use store_expr for BLKmode values.
4510
4511 2010-03-15 Richard Guenther <rguenther@suse.de>
4512
4513 PR tree-optimization/43367
4514 * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
4515 elimination check.
4516
4517 2010-03-15 Richard Guenther <rguenther@suse.de>
4518
4519 PR tree-optimization/43317
4520 * ipa-struct-reorg.c (create_new_general_access): Update stmt.
4521
4522 2010-03-15 Martin Jambor <mjambor@suse.cz>
4523
4524 PR tree-optimization/43141
4525 * tree-sra.c (create_abstract_origin): New function.
4526 (modify_function): Call create_abstract_origin.
4527
4528 2010-03-15 Chris Demetriou <cgd@google.com>
4529
4530 * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
4531 wasn't copied.
4532
4533 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
4534
4535 PR middle-end/43354
4536 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
4537 call insert_out_of_ssa_copy for default definitions.
4538
4539 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
4540
4541 * graphite-clast-to-gimple.c (my_long_long): Defined.
4542 (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
4543 * graphite-sese-to-poly.c (my_long_long): Defined.
4544 (scop_ivs_can_be_represented): Use it.
4545
4546 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
4547
4548 * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
4549 graphite-max-bbs-per-function, and loop-block-tile-size.
4550 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
4551 with "maximum".
4552 (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
4553
4554 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
4555
4556 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
4557 forward declaration.
4558 * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
4559 (add_upper_bounds_from_estimated_nit): New.
4560 (build_loop_iteration_domains): Use it.
4561
4562 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
4563
4564 * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
4565
4566 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
4567
4568 PR middle-end/43306
4569 * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
4570 should be an INTEGER_CST. Also handle CASE_CONVERT.
4571
4572 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
4573
4574 * graphite.c (graphite_initialize): To bound the number of bbs per
4575 function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
4576 * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
4577 * doc/invoke.texi: Document it.
4578
4579 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
4580
4581 * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
4582 * graphite-sese-to-poly.h (build_poly_scop): Same.
4583
4584 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
4585
4586 * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
4587 the number of parameters in the scop. Use as an upper bound
4588 PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
4589 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
4590 * doc/invoke.texi: Document it.
4591
4592 2010-03-13 Jerry Quinn <jlquinn@optonline.net>
4593
4594 * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
4595 * doc/c-tree.texi: Remove.
4596 * doc/generic.texi: Merge c-tree.texi here.
4597 * doc/gccint.texi (Trees): Remove menu entry.
4598 (c-tree.texi): Remove @include.
4599 * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
4600 * doc/languages.texi (Reading RTL): Ditto.
4601
4602 2010-03-12 Steve Ellcey <sje@cup.hp.com>
4603
4604 PR target/42869
4605 * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
4606
4607 2010-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
4608
4609 PR middle-end/42431
4610 * gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
4611 code added to work around reload clobbering CONST insns.
4612
4613 2010-03-12 Jakub Jelinek <jakub@redhat.com>
4614
4615 * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
4616 (cselib_preserve_definitely, cselib_clear_preserve): Remove.
4617 (cselib_preserve_only_values): Remove retain argument, don't
4618 traverse hash table with cselib_{preserve_definitely,clear_preserve}.
4619 * cselib.h (cselib_preserve_only_values): Remove retain argument.
4620 * var-tracking.c (micro_operation): Move insn field before union.
4621 Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
4622 (struct variable_tracking_info_def): Remove n_mos field, change
4623 mos into a vector of micro_operations.
4624 (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
4625 (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
4626 compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
4627 changing into a vector.
4628 (add_with_sets): Likewise. Ensure MO_VAL_USE uops from add_stores
4629 come before all other uops generated by add_stores.
4630 (vt_add_function_parameters): Adjust for cselib_preserve_only_values
4631 argument removal.
4632 (vt_initialize): Likewise. Adjust for VTI (bb)->mos changing into
4633 a vector. Run just one pass over the bbs instead of separate counting
4634 and computation phase.
4635 (vt_finalize): Free VTI (bb)->mos vector instead of array.
4636
4637 PR debug/43329
4638 * tree-inline.c (remap_decls): Put old_var rather than origin_var
4639 into *nonlocalized_list vector.
4640 * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
4641 even if origin is non-NULL.
4642 (gen_variable_die): Likewise.
4643 (process_scope_var): Don't change origin.
4644 (gen_decl_die): Likewise.
4645 * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
4646 before adding new edges instead of after it, fix moving over
4647 debug stmts.
4648
4649 2010-03-11 David S. Miller <davem@davemloft.net>
4650
4651 * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
4652 of four.
4653 * configure: Rebuild.
4654
4655 2010-03-11 Martin Jambor <mjambor@suse.cz>
4656
4657 PR tree-optimization/43257
4658 * tree.c (assign_assembler_name_if_neeeded): New function.
4659 (free_lang_data_in_cgraph): Assembler name assignment moved to the
4660 above new function.
4661 * tree.h (assign_assembler_name_if_neeeded): Declare.
4662 * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
4663 the function if needed.
4664
4665 2010-03-11 Chris Demetriou <cgd@google.com>
4666
4667 * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
4668 include/stdint-gcc.h, and include/stdint.h world-readable.
4669
4670 2010-03-11 Richard Guenther <rguenther@suse.de>
4671
4672 PR tree-optimization/43255
4673 * tree-vrp.c (process_assert_insertions_for): Do not insert
4674 asserts for trivial conditions.
4675
4676 2010-03-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4677
4678 PR tree-optimization/43280
4679 * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
4680 generation. Move calculation of size out of the if branch.
4681 (find_bswap): Modify compare number generation.
4682
4683 2010-03-11 Richard Guenther <rguenther@suse.de>
4684
4685 PR lto/43200
4686 * lto-streamer-in.c (maybe_fixup_decls): Simplify.
4687 (input_gimple_stmt): Fixup handled component types during
4688 operand read. Also fix up decls in ADDR_EXPRs.
4689
4690 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
4691
4692 * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
4693 * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
4694
4695 2010-03-10 Jan Hubicka <jh@suse.cz>
4696
4697 PR c/43288
4698 * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
4699 * varasm.c (get_variable_section): Don't do that here...
4700 (make_decl_rtl): ... and here.
4701 (do_assemble_alias): Produce decl RTL.
4702 (assemble_alias): Likewise.
4703
4704 2010-03-10 Jakub Jelinek <jakub@redhat.com>
4705
4706 PR debug/43290
4707 * reg-notes.def (REG_CFA_SET_VDRAP): New note.
4708 * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
4709 of fde->vdrap_reg.
4710 (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
4711 (based_loc_descr): Only express drap or vdrap regno based expressions
4712 using DW_OP_fbreg when not optimizing.
4713 * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
4714 make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
4715 REG_CFA_SET_VDRAP note.
4716
4717 2010-03-10 Alexander Monakov <amonakov@ispras.ru>
4718
4719 PR tree-optimization/43236
4720 * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
4721 error in calculation of base address in reverse iteration case.
4722 (generate_builtin): Take number of latch executions if the statement
4723 is in the latch.
4724
4725 2010-03-10 Andrey Belevantsev <abel@ispras.ru>
4726
4727 PR middle-end/42859
4728 * tree-eh.c: Include pointer-set.h.
4729 (lower_eh_dispatch): Filter out duplicate case labels and
4730 remove the unneeded edge when the label is unused. Return
4731 true when some edges are removed.
4732 (execute_lower_eh_dispatch): When any lowering resulted in
4733 removing an edge, also delete unreachable blocks.
4734
4735 2010-03-10 Jakub Jelinek <jakub@redhat.com>
4736
4737 PR bootstrap/43287
4738 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
4739 UNSPEC_MACHOPIC_OFFSET.
4740
4741 2010-03-09 Andreas Schwab <schwab@linux-m68k.org>
4742
4743 PR target/43294
4744 * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
4745 (m68k_delegitimize_address): New function.
4746
4747 2010-03-09 Jakub Jelinek <jakub@redhat.com>
4748
4749 PR debug/43299
4750 * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
4751
4752 PR debug/43299
4753 * var-tracking.c (adjust_sets): New function.
4754 (count_with_sets, add_with_sets): Use it.
4755 (get_adjusted_src): New inline function.
4756 (add_stores): Use it.
4757
4758 PR debug/43304
4759 * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
4760 call cselib_dummy_expand_value_rtx_cb instead of
4761 cselib_expand_value_rtx_cb.
4762
4763 PR debug/43293
4764 * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
4765 * config/i386/i386.c: Include debug.h and dwarf2out.h.
4766 (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
4767 and .cfi_endproc around the pic thunks.
4768 (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
4769 all queued unwind info register saves are saved before the call.
4770 For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
4771 considered as sp-=4 for unwind info and the pop as sp+=4 which
4772 also clobbers dest, but doesn't actually restore it.
4773
4774 PR debug/43290
4775 * config/i386/i386.c (ix86_get_drap_rtx): Don't set
4776 RTX_FRAME_RELATED_P.
4777
4778 2010-03-09 Jie Zhang <jie@codesourcery.com>
4779
4780 * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
4781 whitespaces in output template.
4782
4783 2010-03-09 Jie Zhang <jie@codesourcery.com>
4784
4785 * ira-lives.c (check_and_make_def_use_conflict): Don't fall
4786 out array boundary.
4787
4788 2010-03-08 Jakub Jelinek <jakub@redhat.com>
4789
4790 * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
4791 builtins.exp in a separate job.
4792
4793 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
4794
4795 * graphite-sese-to-poly.c (add_param_constraints): Use
4796 lower_bound_in_type and upper_bound_in_type.
4797
4798 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
4799
4800 * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
4801 instead of unsigned_type_node.
4802
4803 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
4804 Reza Yazdani <reza.yazdani@amd.com>
4805
4806 PR middle-end/43065
4807 * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
4808 on pointer type parameters.
4809
4810 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
4811
4812 PR middle-end/42644
4813 PR middle-end/42130
4814 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
4815 handle conversions from pointer to integers.
4816 (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
4817 induction variable, to be able to work with code generated by CLooG.
4818 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
4819 (build_poly_scop): Bail out if we cannot codegen a loop.
4820
4821 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
4822
4823 * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
4824 code generation with gloog_error.
4825
4826 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
4827
4828 * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
4829 Call fold_convert on all the returned values.
4830 (expand_scalar_variables_expr): Pass to
4831 expand_scalar_variables_ssa_name the type of the resulting expression.
4832
4833 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
4834
4835 * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
4836 ppl_min_for_le_pointset.
4837 Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
4838 * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
4839
4840 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
4841
4842 * graphite-dependences.c (map_into_dep_poly): Removed.
4843 (dependence_polyhedron_1): Use combine_context_id_scat.
4844
4845 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
4846
4847 * graphite-poly.h (struct poly_scattering): Add layout documentation.
4848 (struct poly_bb): Same.
4849 (combine_context_id_scat): New.
4850
4851 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
4852
4853 PR middle-end/42326
4854 * sese.c (name_defined_in_loop_p): Return false for default
4855 definitions.
4856
4857 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
4858
4859 * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
4860 and clean up the logic.
4861
4862 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
4863
4864 * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
4865 early return.
4866
4867 2010-03-08 Jakub Jelinek <jakub@redhat.com>
4868
4869 * var-tracking.c (remove_cselib_value_chains): Define only for
4870 ENABLE_CHECKING.
4871 (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
4872 delete_slot_part, emit_notes_for_differences_1): Don't call
4873 remove_cselib_value_chains here.
4874 (set_slot_part, emit_notes_for_differences_2): Don't call
4875 add_cselib_value_chains here.
4876 (preserved_values): New vector.
4877 (preserve_value): New function.
4878 (add_uses, add_stores, vt_add_function_parameters): Use it
4879 instead of cselib_preserve_value.
4880 (changed_values_stack): New vector.
4881 (check_changed_vars_0): New function.
4882 (check_changed_vars_1, check_changed_vars_2): Use it.
4883 (emit_notes_for_changes): Call set_dv_changed (*, false) on all
4884 changed_values_stack VALUEs.
4885 (vt_emit_notes): For all preserved_values call
4886 add_cselib_value_chains. If ENABLE_CHECKING call
4887 remove_cselib_value_chains before verifying value_chains is empty.
4888 Initialize and free changed_values_stack.
4889 (vt_initialize): Initialize preserved_values.
4890 (vt_finalize): Free preserved_values.
4891
4892 2010-03-08 Richard Guenther <rguenther@suse.de>
4893
4894 PR tree-optimization/43269
4895 * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
4896 region detection.
4897
4898 2010-03-08 Martin Jambor <mjambor@suse.cz>
4899
4900 * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
4901 (ipa_is_param_called): Removed.
4902 * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
4903 (ipa_print_node_params): Do not print the called flag.
4904 (ipa_write_node_info): Do not stream the called flag.
4905 (ipa_read_node_info): Likewise.
4906
4907 2010-03-07 Jakub Jelinek <jakub@redhat.com>
4908
4909 PR debug/43176
4910 * Makefile.in (var-tracking.o): Depend on pointer-set.h.
4911 * cselib.c (struct expand_value_data): Add dummy field.
4912 (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
4913 dummy to false.
4914 (cselib_dummy_expand_value_rtx_cb): New function.
4915 (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
4916 any rtl.
4917 * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
4918 * var-tracking.c: Include pointer-set.h.
4919 (variable): Change n_var_parts to char from int. Add
4920 cur_loc_changed and in_changed_variables fields.
4921 (variable_canonicalize): Remove.
4922 (shared_var_p): New inline function.
4923 (unshare_variable): Maintain cur_loc_changed and
4924 in_changed_variables fields. If var was in changed_variables,
4925 replace it there with new_var. Just copy cur_loc instead of
4926 resetting it to something else.
4927 (variable_union): Don't recompute cur_loc. Use shared_var_p.
4928 (dataflow_set_union): Don't call variable_canonicalize.
4929 (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
4930 of their DEBUG_EXPR_TREE_DECLs.
4931 (canonicalize_loc_order_check): Verify that cur_loc is NULL
4932 and in_changed_variables and cur_loc_changed is false.
4933 (variable_merge_over_cur): Clear cur_loc, in_changed_variables
4934 and cur_loc_changed. Don't update cur_loc here.
4935 (variable_merge_over_src): Don't call variable_canonicalize.
4936 (dataflow_set_preserve_mem_locs): Use shared_var_p. When
4937 removing loc that is equal to cur_loc, clear cur_loc,
4938 set cur_loc_changed and ensure variable_was_changed is called.
4939 (dataflow_set_remove_mem_locs): Use shared_var_p. Only
4940 compare pointers in cur_loc check, if it is equal to loc,
4941 clear cur_loc and set cur_loc_changed. Don't recompute cur_loc here.
4942 (variable_different_p): Remove compare_current_location argument,
4943 don't compare cur_loc.
4944 (dataflow_set_different_1): Adjust variable_different_p caller.
4945 (variable_was_changed): If dv had some var in changed_variables
4946 already, reset in_changed_variables flag for it and propagate
4947 cur_loc_changed over to the new variable. On empty var
4948 always set cur_loc_changed. Set in_changed_variables on whatever
4949 var is added to changed_variables.
4950 (set_slot_part): Clear cur_loc_changed and in_changed_variables.
4951 Use shared_var_p. When removing loc that is equal to cur_loc,
4952 clear cur_loc and set cur_loc_changed. If cur_loc is NULL at the
4953 end, don't set it to something else, just call variable_was_changed.
4954 (delete_slot_part): Use shared_var_p. When cur_loc equals to
4955 loc being removed, clear cur_loc and set cur_loc_changed.
4956 Set cur_loc_changed if all locations have been removed.
4957 (struct expand_loc_callback_data): New type.
4958 (vt_expand_loc_callback): Add dummy mode in which no rtxes are
4959 allocated. Always create SUBREGs if simplify_subreg failed.
4960 Prefer to use cur_loc, when that fails and still in
4961 changed_variables (and seen first time) recompute it. Set
4962 cur_loc_changed of variables which had to change cur_loc and
4963 compute elcd->cur_loc_changed if any of the subexpressions used
4964 had to change cur_loc.
4965 (vt_expand_loc): Adjust to pass arguments in
4966 expand_loc_callback_data structure.
4967 (vt_expand_loc_dummy): New function.
4968 (emitted_notes): New variable.
4969 (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
4970 that weren't used for any other decl in current
4971 emit_notes_for_changes call call vt_expand_loc_dummy to update
4972 cur_loc. For -fno-var-tracking-assignments, set cur_loc to
4973 first loc_chain location if NULL before. Always use just
4974 cur_loc instead of first loc_chain location. When cur_loc_changed
4975 is false, when not --enable-checking=rtl just don't emit any note.
4976 When rtl checking, compute the note and assert it is the same
4977 as previous note. Clear cur_loc_changed and in_changed_variables
4978 at the end before removing from changed_variables.
4979 (check_changed_vars_3): New function.
4980 (emit_notes_for_changes): Traverse changed_vars to call
4981 check_changed_vars_3 on each changed var.
4982 (emit_notes_for_differences_1): Clear cur_loc_changed and
4983 in_changed_variables. Recompute cur_loc of new_var.
4984 (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
4985 (vt_emit_notes): Initialize and destroy emitted_notes.
4986
4987 2010-03-07 Bernd Schmidt <bernd.schmidt@analog.com>
4988
4989 PR rtl-optimization/42220
4990 * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
4991 Use verify_reg_tracked to determine if we should use OP_OUT rather
4992 than OP_INOUT.
4993 (build_def_use): If we see an in-out operand for a register that we
4994 know nothing about, treat is an output if possible, fail the block if
4995 not.
4996
4997 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
4998
4999 PR debug/42897
5000 * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
5001 permanently.
5002
5003 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
5004
5005 PR debug/42897
5006 * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
5007 uses of relevant DEFs that are dead outside the loop too.
5008
5009 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
5010
5011 * var-tracking.c (dataflow_set_merge): Swap src and src2.
5012 Reverted:
5013 2010-01-13 Jakub Jelinek <jakub@redhat.com>
5014 PR debug/41371
5015 * var-tracking.c (values_to_unmark): New variable.
5016 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
5017 values_to_unmark vector. Moved body to...
5018 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
5019 instead queue it into values_to_unmark vector.
5020 (vt_find_locations): Free values_to_unmark vector.
5021
5022 2010-03-05 Eric Botcazou <ebotcazou@adacore.com>
5023
5024 * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
5025 (site.exp): Export them when plugins are enabled.
5026
5027 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
5028
5029 PR middle-end/42326
5030 * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
5031 that contain scevs.
5032 (chrec_fold_multiply): Same.
5033
5034 2010-03-04 Andrew Pinski <andrew_pinski@caviumnetworks.com>
5035
5036 PR c/43248
5037 * c-decl.c (build_compound_literal): Return early if init is
5038 an error_mark_node.
5039
5040 2010-03-04 Martin Jambor <mjambor@suse.cz>
5041
5042 PR tree-optimization/43164
5043 PR tree-optimization/43191
5044 * tree-sra.c (type_consists_of_records_p): Reject records with
5045 zero-size bit-fields at the end.
5046
5047 2010-03-04 Mike Stump <mikestump@comcast.net>
5048
5049 * Makefile.in (TAGS): Remove *.y.
5050
5051 2010-03-04 Richard Guenther <rguenther@suse.de>
5052
5053 PR tree-optimization/40761
5054 * tree-ssa-pre.c (compute_antic): Walk reverse postorder
5055 in reverse order.
5056 (my_rev_post_order_compute): New function.
5057 (init_pre): Call it.
5058
5059 2010-03-04 Changpeng Fang <changpeng.fang@amd.com>
5060
5061 PR middle-end/43209
5062 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
5063 decrease the cost of an IV candidate when the cost is infinite.
5064
5065 2010-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5066
5067 * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
5068 Use '3DNow!' for the extension of that name, ensure normal space
5069 after the string.
5070 * doc/invoke.texi (i386 and x86-64 Options): Likewise.
5071
5072 2010-03-03 Jeff Law <law@redhat.com>
5073
5074 * PR middle-end/32693
5075 * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
5076 than gen_rtx_SUBREG.
5077 (extract_bit_field_1): Likewise.
5078
5079 2010-03-03 Janis Johnson <janis187@us.ibm.com>
5080
5081 * doc/sourcebuild.texi (Test directives): Document that arguments
5082 include-opts and exclude-opts are now optional for dg-skip-if,
5083 dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
5084
5085 2010-03-03 Jason Merrill <jason@redhat.com>
5086
5087 PR c++/12909
5088 * cgraph.h (varpool_node): Add extra_name field.
5089 * varpool.c (varpool_extra_name_alias): New.
5090 (varpool_assemble_decl): Emit extra name aliases.
5091 (varpool_mark_needed_node): Look past an extra name alias.
5092 * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
5093 * lto-streamer-in.c (lto_input_tree): Read it.
5094 * lto-streamer-out.c (output_unreferenced_globals): Write it.
5095
5096 2010-03-03 Eric Botcazou <ebotcazou@adacore.com>
5097
5098 * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
5099 (sparc*-*-solaris2*): ...this.
5100
5101 2010-03-03 Jakub Jelinek <jakub@redhat.com>
5102
5103 PR debug/43229
5104 * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
5105 WIDEN_MULT_EXPR and WIDEN_SUM_EXPR. Return NULL without
5106 ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
5107 FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
5108
5109 PR debug/43237
5110 * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
5111 fallthrough to default handling, just with want_address 0 instead of 2.
5112 For single element lists, add_AT_loc directly, otherwise create an
5113 artificial variable DIE and stick location list to it.
5114
5115 PR debug/43177
5116 * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
5117 (VAL_EXPR_HAS_REVERSE): Define.
5118 (reverse_op): New function.
5119 (add_stores): For reversible operations add an extra MO_VAL_USE.
5120
5121 2010-03-02 Jason Merrill <jason@redhat.com>
5122
5123 * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
5124
5125 2010-03-02 Eric Botcazou <ebotcazou@adacore.com>
5126
5127 * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
5128 (sparc64-*-linux*): Likewise.
5129 (sparc64-*-solaris2*): Include assembler files before linker ones.
5130 (sparc-*-solaris2*): Simplify and reorder to match previous case.
5131 * config/sparc/gas.h: Delete.
5132 * config/sparc/sol2-64.h: Add copyright notice.
5133 * config/sparc/sol2-gas-bi.h: Likewise.
5134 * config/sparc/sol2-gld.h: Likewise.
5135 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
5136 * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
5137 * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
5138 * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
5139 (sparc_elf_asm_named_section): Rename into...
5140 (sparc_solaris_elf_asm_named_section): ...this. Always define.
5141
5142 2010-03-02 Uros Bizjak <ubizjak@gmail.com>
5143
5144 * config/alpha/alpha.c (override_options): Fix -mtune error message.
5145
5146 2010-03-02 Jeff Law <law@redhat.com>
5147
5148 PR middle-end/42431
5149 * reload1.c (rtx_p, substitute_stack): Declare.
5150 (substitute): Record addresses of changed rtxs.
5151 (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
5152 Restore the original rtx when complete.
5153 (reload): Free subsitute_stack when complete.
5154
5155 2010-03-02 Janis Johnson <janis187@us.ibm.com>
5156
5157 * doc/gccint.texi (menu): Add Testsuites as a chapter.
5158 * doc/sourcebuild.texi (Testsuites): Move up a level to be a
5159 new chapter.
5160 (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
5161 LTO Testing, gcov Testing, profopt Testing, compat Testing,
5162 Torture Tests): Change from subsection to section.
5163
5164 2010-03-02 Jakub Jelinek <jakub@redhat.com>
5165 Steven Bosscher <steven@gcc.gnu.org>
5166
5167 * var-tracking.c (vt_initialize): Scan insns in ebb chunks
5168 instead of bb.
5169
5170 2010-03-02 Reza Yazdani <reza.yazdani@amd.com>
5171
5172 PR middle-end/42640
5173 * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
5174 the assignment from the new induction variable to the assignment
5175 of the value from the original loop PHI function.
5176
5177 2010-03-01 Janis Johnson <janis187@us.ibm.com>
5178 Daniel Jacobowitz <dan@codesourcery.com>
5179
5180 * doc/sourcebuild.texi (Test directives): Clarify options to
5181 dg-skip-if.
5182
5183 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5184
5185 * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
5186 Disable cfi directives unless GCC and gas agree on using read-only
5187 .eh_frame sections for 64-bit.
5188 * configure: Regenerate.
5189
5190 2010-03-01 Richard Guenther <rguenther@suse.de>
5191
5192 PR tree-optimization/43220
5193 * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
5194 BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
5195
5196 2010-03-01 Richard Guenther <rguenther@suse.de>
5197 Martin Jambor <mjambor@suse.cz>
5198
5199 PR middle-end/41250
5200 * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
5201 gimplified parameters.
5202
5203 2010-03-01 Christian Bruel <christian.bruel@st.com>
5204
5205 * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
5206
5207 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
5208
5209 * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
5210
5211 2010-03-01 Richard Guenther <rguenther@suse.de>
5212
5213 PR middle-end/43213
5214 * expr.c (expand_assignment): Use the alias-oracle to tell
5215 if the rhs aliases the result decl.
5216
5217 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5218
5219 PR pch/14940
5220 * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
5221 to sol_gt_pch_get_address.
5222 (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
5223 64-bit, SPARC and x86.
5224 (sol_gt_pch_get_address): New function.
5225
5226 2010-03-01 Marco Poletti <poletti.marco@gmail.com>
5227
5228 * toplev.h (inform_n, error_n): Declare.
5229 * diagnostic.c (inform_n, error_n): New function.
5230
5231 2010-03-01 Jakub Jelinek <jakub@redhat.com>
5232
5233 * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
5234 has no rtl yet when processing local_decls, queue it and recheck
5235 if deferred stack allocation hasn't assigned it rtl.
5236
5237 2010-02-28 Kaz Kojima <kkojima@gcc.gnu.org>
5238
5239 * config/sh/sh.c (unspec_bbr_uid): New.
5240 (gen_block_redirect): Use it instead of INSN_UID.
5241 (gen_far_branch): Likewise.
5242
5243 2010-02-28 H.J. Lu <hongjiu.lu@intel.com>
5244
5245 * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
5246 it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
5247
5248 2010-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5249
5250 * doc/invoke.texi (Warning Options, RX Options): Fix typos.
5251 (Warning Options): -Wno-conversion-null is valid for
5252 Objective-C++ as well.
5253 * doc/tm.texi (Named Address Spaces): Likewise.
5254 * doc/plugins.texi (Plugins): Replace TABs with spaces.
5255 * doc/tree-ssa.texi (Tree SSA): Likewise.
5256
5257 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
5258
5259 PR bootstrap/43202
5260 * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
5261 by default. Don't set the default arch for
5262 i[34567]86-*-darwin*|x86_64-*-darwin*.
5263
5264 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
5265
5266 PR bootstrap/43202
5267 * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
5268 default. Set the default 32bit/64bit archs with $with_arch
5269 instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
5270
5271 2010-02-27 Richard Guenther <rguenther@suse.de>
5272
5273 PR tree-optimization/43186
5274 * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
5275 * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
5276 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
5277 unroller iterations.
5278
5279 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
5280
5281 * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
5282 required and i[34567]86-*-* targets don't support 64bit ISA.
5283
5284 2010-02-26 Eric Botcazou <ebotcazou@adacore.com>
5285
5286 PR ada/43096
5287 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
5288 the same alias set.
5289
5290 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
5291
5292 * config.gcc: Set the default arch at least to Prescott for
5293 i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
5294 if SSE math is enabled.
5295
5296 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
5297
5298 * diagnostic.c (diagnostic_initialize): Update.
5299 (diagnostic_report_diagnostic): Test inhibit_notes_p for
5300 informative notes.
5301 * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
5302 (diagnostic_inhibit_notes): New.
5303 * toplev.c (process_options): inhibit notes with -fcompare-debug.
5304
5305 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
5306
5307 PR c/20631
5308 * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
5309 * doc/standards.texi: Likewise.
5310 * doc/extend.texi: Likewise.
5311 * doc/trouble.texi: Likewise.
5312 * doc/cppopts.texi: Likewise.
5313 * doc/install.texi: Likewise.
5314 * c.opt (std=c90,std=gnu90): New options.
5315 * c-opts.c (c_common_handle_option): Handle them.
5316
5317 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
5318
5319 PR c/24577
5320 * c-decl.c (undeclared_variable): Use an informative note.
5321
5322 2010-02-26 Richard Guenther <rguenther@suse.de>
5323
5324 PR tree-optimization/43186
5325 * gimple.h (gimple_fold): Remove.
5326 * gimple.c (gimple_fold): Remove. Inline into single user ...
5327 * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
5328 Try harder for conditions.
5329
5330 2010-02-26 Jakub Jelinek <jakub@redhat.com>
5331
5332 PR debug/43190
5333 * function.c (used_types_insert): Don't skip through named pointer
5334 types. Don't use TYPE_MAIN_VARIANT if the original type has a name
5335 and it is different from the main variant's type.
5336
5337 2010-02-26 Nick Clifton <nickc@redhat.com>
5338
5339 * config/rx/rx.md (sminsi3): Remove bogus alternative.
5340
5341 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
5342
5343 * config.gcc: Support --with-fpmath=sse for x86.
5344
5345 * config/i386/ssemath.h: New.
5346
5347 * doc/install.texi (--with-fpmath=sse): Documented.
5348
5349 2010-02-26 Richard Guenther <rguenther@suse.de>
5350
5351 PR tree-optimization/43188
5352 * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
5353 vector types of over-aligned element type.
5354
5355 2010-02-26 Uros Bizjak <ubizjak@gmail.com>
5356
5357 PR target/43175
5358 * config/i386/i386.c (expand_vec_perm_blend): Use correct
5359 operands in V8HImode subregs. Fix operand order in VEC_MERGE rtx.
5360
5361 2010-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
5362
5363 * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
5364
5365 2010-02-26 Jakub Jelinek <jakub@redhat.com>
5366
5367 * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
5368 * var-tracking.c: Include diagnostic.h.
5369 (debug_dv): New function.
5370 (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
5371
5372 PR debug/43160
5373 * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
5374 (add_value_chain, add_value_chains, remove_value_chain,
5375 remove_value_chains): Handle DEBUG_EXPRs.
5376 (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
5377
5378 PR debug/43161
5379 * regcprop.c (struct queued_debug_insn_change): New type.
5380 (struct value_data_entry): Add debug_insn_changes field.
5381 (struct value_data): Add n_debug_insn_changes field.
5382 (debug_insn_changes_pool): New variable.
5383 (free_debug_insn_changes, apply_debug_insn_changes,
5384 cprop_find_used_regs_1, cprop_find_used_regs): New functions.
5385 (kill_value_one_regno): Call free_debug_insn_changes if needed.
5386 (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
5387 fields.
5388 (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
5389 changes for them.
5390 (copyprop_hardreg_forward_1): Don't call apply_change_group for
5391 DEBUG_INSNs. For a real insn, if there are queued DEBUG_INSN
5392 changes, call cprop_find_used_regs via note_stores.
5393 (copyprop_hardreg_forward): When copying vd from predecessor
5394 which has any queued DEBUG_INSN changes, make sure the pointers are
5395 cleared. At the end call df_analyze and then if there are any
5396 DEBUG_INSN changes queued at the end of some basic block for still
5397 live registers, apply them.
5398 (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
5399
5400 2010-02-25 Uros Bizjak <ubizjak@gmail.com>
5401
5402 * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
5403 (arm*-*-*): Ditto.
5404
5405 2010-02-25 H.J. Lu <hongjiu.lu@intel.com>
5406
5407 * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
5408 targets. Set the default with_cpu/with_arch from arch/cpu.
5409 Allow x86-64 and native for with_cpu/with_arch.
5410
5411 2010-02-25 Nicolas Benoit <nbenoit@tuxfamily.org>
5412
5413 * ebitmap.c: Change calls to verify_popcount with calls to
5414 sbitmap_verify_popcount.
5415 (ebitmap_clear_bit): Fixed map->cacheindex test and
5416 map>cache update when bit clearing results in an empty
5417 element.
5418
5419 2010-02-25 Michael Meissner <meissner@linux.vnet.ibm.com>
5420
5421 PR target/43154
5422 * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
5423 (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
5424 and support both V2DF and V2DI modes.
5425 (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
5426 support both V2DF and V2DI modes.
5427 (general): Delete trailing whitespace from a few patterns.
5428
5429 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
5430 V2DF/V2DI interleave high/low builtins.
5431
5432 * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
5433 new VSX builtins.
5434
5435 * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
5436 interleave high/low functions.
5437
5438 2010-02-25 Gerald Pfeifer <gerald@pfeifer.com>
5439
5440 * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
5441 #pragma extern_prefix.
5442
5443 2010-02-25 Jakub Jelinek <jakub@redhat.com>
5444
5445 PR debug/43166
5446 * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
5447 BLKmode, assert op0 is a MEM and just adjust its mode.
5448
5449 PR debug/43165
5450 * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
5451 if bitpos isn't multiple of mode's bitsize.
5452
5453 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
5454
5455 * c.opt (-ftemplate-depth=): New.
5456 (-ftemplate-depth-): Deprecate.
5457 * optc-gen.awk: Handle -ftemplate-depth=.
5458 * opth-gen.awk: Likewise.
5459 * c-opts.c (c_common_handle_option): Likewise.
5460 * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
5461
5462 2010-02-24 Jason Merrill <jason@redhat.com>
5463
5464 * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
5465
5466 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5467
5468 * cfg.c (alloc_aux_for_block): Remove inline.
5469 (alloc_aux_for_edge): Likewise.
5470
5471 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5472
5473 * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
5474
5475 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5476
5477 * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
5478 * config/i386/sol2-gas.h: New file.
5479 * config.gcc (i[34567]86-*-solaris2*): Use it.
5480
5481 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
5482
5483 PR c/43128
5484 * c-typeck.c (ep_convert_and_check): New.
5485 (build_conditional_expr): Use it.
5486 (build_binary_op): Likewise.
5487
5488 2010-02-24 Jakub Jelinek <jakub@redhat.com>
5489
5490 * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
5491
5492 PR debug/43150
5493 * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
5494 bounds even for -O+.
5495 * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
5496 expr needs to have DECL_NAME set.
5497
5498 2010-02-24 Nick Clifton <nickc@redhat.com>
5499
5500 * config/mep/mep.c: Include gimple.h.
5501 (mep_function_uses_sp): Delete unused function.
5502 (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
5503 parameters. Use unsigned integers to count args. Return a
5504 NULL_RTX instead of an error_mark_node. Toidy up formatting.
5505
5506 2010-02-23 Jakub Jelinek <jakub@redhat.com>
5507
5508 PR target/43107
5509 * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
5510 greater or equal to nelt instead of 2 * nelt.
5511 (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
5512 with nelt - 1.
5513
5514 2010-02-23 Jason Merrill <jason@redhat.com>
5515
5516 PR debug/42800
5517 * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
5518 in cfun->local_decls even if they have register types.
5519
5520 PR c++/42837
5521 * stor-layout.c (place_field): Don't warn about unnecessary
5522 DECL_PACKED if the type is packed.
5523
5524 2010-02-23 Jakub Jelinek <jakub@redhat.com>
5525
5526 PR target/43139
5527 * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
5528 GOTOFF relocs, even when the base reg isn't pic pointer.
5529
5530 2010-02-23 Michael Matz <matz@suse.de>
5531
5532 PR debug/43077
5533 * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
5534 (expand_gimple_basic_block): Generate and use debug temps if there
5535 are debug uses left after the last real use of TERed ssa names.
5536 Unlink debug immediate uses when they are expanded.
5537
5538 2010-02-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
5539
5540 PR 43123
5541 * config/i386/i386.c (override_options): Reorganise to provide
5542 better error messages.
5543
5544 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
5545
5546 PR middle-end/43083
5547 * graphite-scop-detection.c (create_single_exit_edge): Move
5548 the call to find_single_exit_edge to....
5549 (create_sese_edges): ...here. Don't handle multiple edges
5550 exiting the function.
5551 (build_graphite_scops): Don't handle multiple edges
5552 exiting the function.
5553
5554 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
5555
5556 PR middle-end/43097
5557 * sese.c (get_rename): Assert that old_name is an SSA_NAME.
5558 (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
5559
5560 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
5561
5562 PR middle-end/43026
5563 * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
5564
5565 2010-02-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
5566
5567 PR c++/43126
5568 * c-typeck.c (convert_arguments): Print declaration location.
5569 * c-common.c (validate_nargs): Rename as
5570 builtin_function_validate_nargs.
5571 (check_builtin_function_arguments): Update.
5572
5573 2010-02-22 Richard Guenther <rguenther@suse.de>
5574
5575 PR lto/43045
5576 * tree-inline.c (declare_return_variable): Use the type of
5577 the call stmt lhs if available.
5578
5579 2010-02-22 Duncan Sands <baldrick@free.fr>
5580
5581 * passes.c (register_pass): Always consider all pass lists when
5582 ref_pass_instance_number is zero.
5583
5584 2010-02-22 Richard Guenther <rguenther@suse.de>
5585
5586 PR tree-optimization/42749
5587 * tree-tailcall.c (adjust_return_value_with_ops): Drop update
5588 parameter. Do arithmetic in the original type.
5589 (update_accumulator_with_ops): Likewise.
5590 (adjust_accumulator_values): Adjust.
5591
5592 2010-02-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5593
5594 * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
5595 (QI to BLKmode splitter): New splitter.
5596
5597 2010-02-22 H.J. Lu <hongjiu.lu@intel.com>
5598
5599 * config/i386/i386.c (initial_ix86_tune_features): Turn on
5600 X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
5601
5602 2010-02-22 Richard Guenther <rguenther@suse.de>
5603
5604 * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
5605
5606 2010-02-22 Hans-Peter Nilsson <hp@bitrange.com>
5607
5608 Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
5609 * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
5610 ($(T)crti.o, $(T)crtn.o): Remove rules.
5611
5612 2010-02-21 Tobias Burnus <burnus@net-b.de>
5613
5614 PR fortran/35259
5615 * doc/invoke.texi (-fassociative-math): Document that this
5616 option is automatically enabled for Fortran.
5617
5618 2010-02-20 David S. Miller <davem@davemloft.net>
5619
5620 * configure.ac: Test if linker and assembler properly support
5621 GOTDATA_OP relocations.
5622 * configure: Rebuild.
5623 * config.in: Likewise.
5624 * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
5625 (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
5626 (movsi_high_pic): Likewise.
5627 (movdi_lo_sum_pic): Likewise.
5628 (movdi_high_pic): Likewise.
5629 (movsi_pic_gotdata_op): New pattern.
5630 (movdi_pic_gotdata_op): Likewise.
5631 * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
5632 emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
5633
5634 2010-02-20 Uros Bizjak <ubizjak@gmail.com>
5635
5636 PR target/43067
5637 * config/i386/sse.md (xop_mulv2div2di3_low): Change type
5638 attribute to ssemul.
5639 (xop_mulv2div2di3_high): Ditto.
5640
5641 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
5642
5643 PR c++/35669
5644 * c.opt (Wconversion-null): New option.
5645 * doc/invoke.texi (Wconversion-null): Document.
5646
5647 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
5648
5649 * common.opt (Wlarger-than-): Add Undocumented.
5650
5651 2010-02-19 Mike Stump <mikestump@comcast.net>
5652
5653 * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
5654
5655 2010-02-19 Jason Merrill <jason@redhat.com>
5656
5657 PR target/40332
5658 * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
5659 * configure: Likewise.
5660
5661 2010-02-20 Alan Modra <amodra@gmail.com>
5662
5663 PR middle-end/42344
5664 * cgraph.h (cgraph_make_decl_local): Declare.
5665 * cgraph.c (cgraph_make_decl_local): New function.
5666 (cgraph_make_node_local): Use it.
5667 * cgraphunit.c (cgraph_function_versioning): Likewise.
5668 * ipa.c (function_and_variable_visibility): Likewise.
5669
5670 2010-02-19 Jakub Jelinek <jakub@redhat.com>
5671
5672 PR bootstrap/43121
5673 * except.c (sjlj_emit_function_enter): Don't call
5674 add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
5675 directly.
5676 * rtl.h (add_reg_br_prob_note): Remove prototype.
5677
5678 2010-02-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
5679
5680 PR 41779
5681 * c-common.c (conversion_warning): Remove widening conversions
5682 before checking the conversion of integers to reals.
5683
5684 2010-02-19 Mike Stump <mikestump@comcast.net>
5685
5686 PR middle-end/43125
5687 * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
5688
5689 PR objc/43061
5690 * cgraphunit.c (process_function_and_variable_attributes): Check
5691 DECL_PRESERVE_P instead of looking up attribute "used".
5692 * ipa-pure-const.c (check_decl): Likewise.
5693 * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
5694 * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
5695 * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
5696 instead of attribute "used".
5697 * config/sol2-c.c (solaris_pragma_init): Likewise.
5698 (solaris_pragma_fini): Likewise.
5699
5700 2010-02-19 Jakub Jelinek <jakub@redhat.com>
5701
5702 * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
5703 Use XCNEW instead of xcalloc.
5704 (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
5705 XNEW instead of xmalloc.
5706 (get_fields): Use XNEWVEC instead of xmalloc.
5707
5708 PR debug/43084
5709 * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
5710 populate vars array.
5711 (create_new_general_access): For debug stmts just reset value.
5712 (get_stmt_accesses): For accesses within debug stmts just record them
5713 using add_access_to_acc_sites instead of preventing the peeling or
5714 counting them as accesses.
5715
5716 PR middle-end/42233
5717 * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
5718
5719 2010-02-19 Richard Guenther <rguenther@suse.de>
5720
5721 PR tree-optimization/42916
5722 * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
5723 instructions.
5724
5725 2010-02-19 Andreas Schwab <schwab@linux-m68k.org>
5726
5727 * configure.ac: Replace all uses of changequote in macro arguments
5728 with proper quoting.
5729
5730 2010-02-19 Jakub Jelinek <jakub@redhat.com>
5731
5732 PR middle-end/42233
5733 * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
5734
5735 2010-02-19 Richard Guenther <rguenther@suse.de>
5736
5737 PR tree-optimization/42944
5738 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
5739 test for aliasing with errno.
5740
5741 2010-02-19 Jakub Jelinek <jakub@redhat.com>
5742
5743 PR middle-end/42233
5744 * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
5745 do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
5746 * dojump.c: Include output.h.
5747 (inv): New inline function.
5748 (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
5749 do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
5750 do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
5751 do_jump_by_parts_equality, do_compare_and_jump): Add PROB
5752 argument, pass it down to other calls.
5753 (do_compare_rtx_and_jump): Likewise. If PROB is not -1,
5754 add REG_BR_PROB note to the conditional jump.
5755 * cfgexpand.c (add_reg_br_prob_note): Removed.
5756 (expand_gimple_cond): Don't call it, add the probability
5757 as last argument to jumpif_1/jumpifnot_1.
5758 * Makefile.in (dojump.o): Depend on output.h.
5759 * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
5760 callers.
5761 * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
5762 * stmt.c (do_jump_if_equal): Likewise.
5763 * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
5764 * loop-unswitch.c (compare_and_jump_seq): Likewise.
5765 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
5766 Likewise.
5767 * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
5768 * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
5769 jumpifnot_1 callers.
5770 (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
5771 callers.
5772 (store_expr): Adjust jumpifnot caller.
5773 (store_constructor): Adjust jumpif caller.
5774
5775 PR middle-end/42233
5776 * gimplify.c (gimple_boolify): For __builtin_expect call
5777 gimple_boolify also on its first argument.
5778
5779 2010-02-18 Uros Bizjak <ubizjak@gmail.com>
5780
5781 * configure.ac (gnu-unique-object): Wrap regexps using [] in
5782 changequote block.
5783 (__stack_chk_fail): Ditto. Remove quadrigraphs.
5784 * configure: Regenerated.
5785
5786 2010-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5787
5788 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
5789 lang_hooks.types_compatible_p instead of comptypes.
5790
5791 2010-02-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
5792
5793 * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
5794 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
5795 if __prefer_thumb__ is defined.
5796
5797 2010-02-18 Martin Jambor <mjambor@suse.cz>
5798
5799 PR tree-optimization/43066
5800 * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
5801 array with zero-sized element type.
5802
5803 2010-02-18 Jakub Jelinek <jakub@redhat.com>
5804
5805 * dwarf2out.c (add_var_loc_to_decl): Change last argument to
5806 rtx, allocate struct var_loc_node here and return it to the
5807 caller, and only if it is actually needed.
5808 (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
5809 move it earlier and return immediately if it returns NULL.
5810
5811 2010-02-17 Mikael Pettersson <mikpe@it.uu.se>
5812
5813 * config/sparc/gas.h: New file. Restore
5814 TARGET_ASM_NAMED_SECTION to its ELF default.
5815 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
5816 check !HAVE_GNU_AS.
5817 * config/sparc/sparc.c (sparc_elf_asm_named_section):
5818 Likewise. Add ATTRIBUTE_UNUSED to prototype.
5819 * config.gcc (sparc*-*-linux*): Include sparc/gas.h
5820 after sparc/sysv4.h.
5821
5822 2010-02-17 Dave Korn <dave.korn.cygwin@gmail.com>
5823
5824 * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
5825
5826 2010-02-17 Steven Bosscher <steven@gcc.gnu.org>
5827
5828 * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
5829 patterns from predicated pattern.
5830
5831 2010-02-17 Uros Bizjak <ubizjak@gmail.com>
5832
5833 PR target/43103
5834 * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
5835 for insn mnemonic suffix.
5836
5837 2010-02-17 Richard Guenther <rguenther@suse.de>
5838
5839 * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
5840 to loop PHI nodes.
5841
5842 2010-02-17 Jakub Jelinek <jakub@redhat.com>
5843
5844 PR debug/42918
5845 * caller-save.c (save_call_clobbered_regs): If BB ends with
5846 a DEBUG_INSN, move any notes in between last real insn and the last
5847 DEBUG_INSN after the last DEBUG_INSN.
5848
5849 2010-02-16 Joern Rennecke <joern.rennecke@embecosm.com>
5850
5851 * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
5852 Fix return type. Fix argument type. Explain meaning of return value.
5853
5854 2010-02-16 Richard Guenther <rguenther@suse.de>
5855
5856 PR tree-optimization/41043
5857 * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
5858 (vrp_visit_assignment_or_call): Do not ask SCEV for regular
5859 statements ...
5860 (vrp_visit_phi_node): ... but only for loop PHI nodes.
5861
5862 2010-02-16 Ira Rosen <irar@il.ibm.com>
5863
5864 PR tree-optimization/43074
5865 * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
5866 * tree-vect-loop.c (vect_analyze_loop_operations): Add
5867 vectorizable cycles in hybrid SLP check.
5868 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
5869
5870 2010-02-16 Richard Guenther <rguenther@suse.de>
5871
5872 * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
5873 (true_dependence): If memrefs_conflict_p computes must-alias
5874 trust it. Move TBAA check after offset-based disambiguation.
5875 (canon_true_dependence): Likewise.
5876
5877 2010-02-16 Alexandre Oliva <aoliva@redhat.com>
5878
5879 * params.def (PARAM_MAX_VARTRACK_SIZE): New.
5880 * doc/invoke.texi: Document it.
5881 * var-tracking.c: Include toplev.h and params.h.
5882 (vt_find_locations): Return bool indicating success. Compute
5883 hash sizes unconditionally. Check new parameter, report.
5884 (variable_tracking_main_1): Check vt_find_locations results and
5885 retry. Renamed from...
5886 (variable_tracking_main): ... this. New wrapper to preserve
5887 flag_var_tracking_assignments.
5888 * Makefile.in (var-tracking.o): Adjust dependencies.
5889
5890 2010-02-16 Jack Howarth <howarth@bromo.med.uc.edu>
5891 Jakub Jelinek <jakub@redhat.com>
5892
5893 PR target/42854
5894 * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
5895 if weak_import attribute is present.
5896 * config/darwin.c (machopic_select_section): Likewise.
5897
5898 2010-02-15 Joern Rennecke <joern.rennecke@embecosm.com>
5899
5900 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
5901 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
5902 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
5903 (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
5904
5905 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
5906 types.
5907
5908 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
5909 Fix argument types.
5910
5911 * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
5912 Rewrite text to refer to the names.
5913
5914 2010-02-15 Sebastian Pop <sebastian.pop@amd.com>
5915
5916 * config/i386/i386-builtin-types.def
5917 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
5918 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
5919 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
5920 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
5921 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
5922 IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
5923 IX86_BUILTIN_VPERMIL2PS256.
5924 (MULTI_ARG_4_DF2_DI_I): Defined.
5925 (MULTI_ARG_4_DF2_DI_I1): Defined.
5926 (MULTI_ARG_4_SF2_SI_I): Defined.
5927 (MULTI_ARG_4_SF2_SI_I1): Defined.
5928 (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
5929 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
5930 __builtin_ia32_vpermil2ps256.
5931 (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
5932 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
5933 MULTI_ARG_4_SF2_SI_I1. Handle builtins with 4 arguments.
5934 (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
5935 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
5936 MULTI_ARG_4_SF2_SI_I1. Handle CODE_FOR_xop_vpermil2v2df3,
5937 CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
5938 CODE_FOR_xop_vpermil2v8sf3.
5939 * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
5940 * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
5941 * config/i386/xopintrin.h (_mm_permute2_pd): New.
5942 (_mm256_permute2_pd): New.
5943 (_mm_permute2_ps): New.
5944 (_mm256_permute2_ps): New.
5945
5946 2010-02-15 Nick Clifton <nickc@redhat.com>
5947
5948 * config/h8300/h8300.c (h8300_push_pop): Use bool type for
5949 boolean parameters. Use emit_jump_insn when emitting a pop
5950 instruction containing a return insn.
5951 (push): Use 'true' rather than '1' as second parameter to F.
5952 (h8300_expand_prologue): Likewise.
5953 Use 'true' and 'false' for boolean parameters to h8300_push_pop.
5954 (h8300_expand_epilogue): Likewise.
5955
5956 2010-02-15 Richard Guenther <rguenther@suse.de>
5957
5958 PR middle-end/43068
5959 * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
5960 if that is zero.
5961
5962 2010-02-15 Nick Clifton <nickc@redhat.com>
5963
5964 * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
5965 delta.
5966
5967 2010-02-14 Marco Poletti <poletti.marco@gmail.com>
5968
5969 * intl.c (fake_ngettext): New function.
5970 * intl.h (fake_ngettext): Declare.
5971 (ngettext): Define macro.
5972 * collect2.c (notice_translated): New function.
5973 (main): Use notice_translated and ngettext.
5974 * collect2.h (notice_translated): Declare.
5975
5976 2010-02-14 Steven Bosscher <steven@gcc.gnu.org>
5977
5978 * reorg.c (delete_computation): Comment fixes.
5979 * caller-save.c (setup_save_areas): Idem.
5980 * sel-sched-dump.c (dump_lv_set): Idem.
5981 * rtl.def: Idem.
5982
5983 2010-02-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5984
5985 * config/s390/s390.c (s390_sched_init): New function.
5986 (TARGET_SCHED_INIT): Target hook defined.
5987
5988 2010-02-12 Dave Korn <dave.korn.cygwin@gmail.com>
5989 Jack Howarth <howarth@bromo.med.uc.edu>
5990 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
5991
5992 PR target/42982
5993 Partial revert of unintended change in fix for PR41605.
5994 * config/darwin.h: Fix typo.
5995 * config/darwin9.h: Same.
5996
5997 2010-02-11 Jakub Jelinek <jakub@redhat.com>
5998
5999 * c-pch.c (pch_init): Clear v.
6000
6001 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
6002
6003 PR middle-end/42930
6004 * graphite-scop-detection.c (graphite_can_represent_scev): Call
6005 graphite_can_represent_init for MULT_EXPR.
6006
6007 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
6008
6009 PR middle-end/42914
6010 PR middle-end/42530
6011 * graphite-sese-to-poly.c (remove_phi): New.
6012 (translate_scalar_reduction_to_array): Call remove_phi.
6013
6014 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
6015
6016 PR middle-end/42771
6017 * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
6018 * graphite-clast-to-gimple.h (gloog): Update declaration.
6019 * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
6020 * graphite-poly.h (struct poly_bb): Add missing comments.
6021 (struct scop): Add poly_scop_p field.
6022 (POLY_SCOP_P): New.
6023 * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
6024 * graphite.c (graphite_transform_loops): Build the polyhedral
6025 representation for each scop before code generation.
6026 * sese.c (rename_variables_in_operand): Removed.
6027 (rename_variables_in_expr): Return the renamed expression.
6028 (rename_sese_parameters): New.
6029 * sese.h (rename_sese_parameters): Declared.
6030
6031 2010-02-11 Richard Guenther <rguenther@suse.de>
6032
6033 PR tree-optimization/42998
6034 * tree-ssa-pre.c (create_expression_by_pieces): Treat
6035 POINTER_PLUS_EXPR properly.
6036
6037 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
6038 Changpeng Fang <changpeng.fang@amd.com>
6039
6040 PR middle-end/40886
6041 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
6042 the cost of an IV candidate when the IV is used in a test against zero.
6043
6044 * gcc.dg/tree-ssa/ivopts-3.c: New.
6045
6046 2010-02-11 Richard Guenther <rguenther@suse.de>
6047
6048 PR lto/41664
6049 * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
6050 pointer-vs-decl case by swapping refs. Handle some cases
6051 of pointer-vs-decl disambiguations more conservatively.
6052 * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
6053 to false after expanding.
6054
6055 2010-02-11 Richard Guenther <rguenther@suse.de>
6056
6057 PR driver/43021
6058 * gcc.c (process_command): Handle LTO file@offset case more
6059 appropriately.
6060
6061 2010-02-11 Jakub Jelinek <jakub@redhat.com>
6062
6063 * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
6064 modifications outside of the DEBUG_INSN. Accept CLOBBERs inside
6065 of DEBUG_INSNs.
6066 (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
6067
6068 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
6069 if MEM's mode size isn't DWARF2_ADDR_SIZE.
6070 (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
6071 Optimize eq/ne comparisons when both arguments are known to be
6072 zero-extended.
6073 (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
6074 Don't mask operands unnecessarily if they are known to be already
6075 zero-extended.
6076
6077 2010-02-10 Vladimir Makarov <vmakarov@redhat.com>
6078
6079 * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
6080 instead of loop.
6081
6082 2010-02-10 Richard Guenther <rguenther@suse.de>
6083
6084 PR tree-optimization/43017
6085 * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
6086 for wrapping signed arithmetic.
6087
6088 2010-02-10 Jakub Jelinek <jakub@redhat.com>
6089
6090 PR debug/43010
6091 * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
6092 if no debug info should be emitted for it.
6093
6094 2010-02-10 Kaz Kojima <kkojima@gcc.gnu.org>
6095
6096 * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
6097 note when flag_exceptions is set.
6098
6099 2010-02-10 Duncan Sands <baldrick@free.fr>
6100
6101 * Makefile.in (PLUGIN_HEADERS): Add debug.h.
6102
6103 2010-02-10 Richard Guenther <rguenther@suse.de>
6104
6105 PR c/43007
6106 * tree.c (get_unwidened): Handle constants.
6107 * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
6108
6109 2010-02-10 Martin Jambor <mjambor@suse.cz>
6110
6111 PR lto/42985
6112 * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
6113 check for variable argument counts independently.
6114
6115 2010-02-10 Christian Bruel <christian.bruel@st.com>
6116
6117 PR target/42841
6118 * config/sh/sh.c (find_barrier): Increase length for non delayed
6119 conditional branches.
6120
6121 2010-02-10 Christian Bruel <christian.bruel@st.com>
6122
6123 * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
6124
6125 2010-02-10 Jakub Jelinek <jakub@redhat.com>
6126
6127 * builtins.c (set_builtin_user_assembler_name): Also handle
6128 ffs if int is smaller than word.
6129
6130 2010-02-09 Vladimir Makarov <vmakarov@redhat.com>
6131
6132 PR middle-end/42973
6133 * ira-conflicts.c (get_dup): Remove.
6134 (process_reg_shuffles): Add new parameter. Use it as an
6135 additional guard for copy generation.
6136 (add_insn_allocno_copies): Rewrite.
6137
6138 2010-02-09 Alexander Monakov <amonakov@ispras.ru>
6139
6140 * common.opt (fsched2-use-traces): Preserved for backward
6141 compatibility.
6142 * doc/invoke.texi: Remove the documentation about option
6143 -fsched2-use-traces.
6144 * sched-rgn.c (rest_of_handle_sched2): Remove usage of
6145 flag_sched2_use_traces.
6146 * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
6147 the backward compatibility flag section.
6148
6149 2010-02-09 Richard Guenther <rguenther@suse.de>
6150
6151 PR tree-optimization/43008
6152 * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
6153 make HEAP variables initialized from global memory if they
6154 are not known builtin functions.
6155 (find_func_aliases): Adjust.
6156
6157 2010-02-09 Richard Guenther <rguenther@suse.de>
6158
6159 PR tree-optimization/43000
6160 * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
6161 arithmetic manually.
6162
6163 2010-02-08 Jakub Jelinek <jakub@redhat.com>
6164
6165 PR tree-optimization/42931
6166 * tree-loop-linear.c (try_interchange_loops): Don't call
6167 double_int_mul if estimated_loop_iterations failed.
6168
6169 2010-02-08 Martin Jambor <mjambor@suse.cz>
6170
6171 PR middle-end/42898
6172 * tree-sra.c (build_accesses_from_assign): Do not mark in
6173 should_scalarize_away_bitmap if stmt has volatile ops.
6174 (sra_modify_assign): Do not process assigns piecemeal if if stmt
6175 has volatile ops.
6176
6177 2010-02-08 Joern Rennecke <joern.rennecke@embecosm.com>
6178
6179 * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
6180
6181 2010-02-07 Adam Nemet <adambnmet@gmail.com>
6182
6183 * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
6184 before the pattern.
6185
6186 2010-02-07 Andrew Pinski <pinskia@gmail.com>
6187
6188 PR middle-end/42946
6189 * df-core.c (df_finish_pass): Change type of saved_flags to int.
6190
6191 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
6192
6193 PR middle-end/42988
6194 * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
6195 to unknown_dependence.
6196 (graphite_legal_transform_dr): Handle the unknown_dependence.
6197 (graphite_carried_dependence_level_k): Same.
6198
6199 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
6200
6201 * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
6202
6203 2010-02-07 Richard Guenther <rguenther@suse.de>
6204
6205 PR middle-end/42991
6206 * expr.c (get_inner_reference): Always initialize *pbitsize.
6207
6208 2010-02-07 Richard Guenther <rguenther@suse.de>
6209
6210 PR middle-end/42956
6211 * gimplify.c (gimple_fold_indirect_ref): Avoid generating
6212 new ARRAY_REFs on variable size element or minimal index arrays.
6213 Complete.
6214 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
6215 gimple_fold_indirect_ref.
6216
6217 2010-02-06 Richard Earnshaw <rearnsha@arm.com>
6218
6219 PR target/42957
6220 * arm.c (arm_override_options): Just return if the user has specified
6221 an invalid fpu name.
6222
6223 2010-02-03 Jason Merrill <jason@redhat.com>
6224
6225 PR c++/42870
6226 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
6227 i386_pe_maybe_record_exported_symbol.
6228
6229 2010-02-05 Steve Ellcey <sje@cup.hp.com>
6230
6231 PR target/42924
6232 * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
6233 (pa_delegitimize_address): New function.
6234
6235 2010-02-05 Ozkan Sezer <sezeroz@gmail.com>
6236
6237 * config/i386/msformat-c.c (ms_printf_length_specs): Set the
6238 scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
6239
6240 2010-02-05 Richard Guenther <rguenther@suse.de>
6241
6242 PR lto/42762
6243 * lto-streamer-in.c (get_resolution): Deal with references
6244 to undefined functions.
6245
6246 2010-02-05 Richard Guenther <rguenther@suse.de>
6247
6248 * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
6249 (fold_const_aggregate_ref): Likewise.
6250 (ccp_fold_stmt): Substitute loads.
6251 (maybe_fold_reference): Verify types before substituting.
6252 Unshare properly.
6253 (fold_gimple_assign): Unshare properly.
6254 (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
6255
6256 2010-02-05 Nathan Froyd <froydnj@codesourcery.com>
6257
6258 * config/rs6000/rs6000.c (rs6000_override_options): Invert check
6259 for rs6000_gen_cell_microcode.
6260
6261 2010-02-04 Richard Guenther <rguenther@suse.de>
6262
6263 PR rtl-optimization/42952
6264 * dse.c (const_or_frame_p): Remove MEM handling.
6265
6266 2010-02-04 Nick Clifton <nickc@redhat.com>
6267
6268 * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
6269 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
6270 (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
6271 (mn10300_asm_output_mi_thunk): New function.
6272 (mn10300_can_output_mu_thunk): New function.
6273 * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
6274 (FUNCTION_ARG_REGNO_P): Fix comment. Accept d0 and d1.
6275 (FUNCTION_ARG): Delete incorrect comment.
6276
6277 2010-02-03 Jason Merrill <jason@redhat.com>
6278
6279 PR c++/40138
6280 * fold-const.c (operand_equal_p): Handle erroneous types.
6281
6282 2010-02-03 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
6283
6284 * config/h8300/h8300.md (can_delay): Fix attibute condition.
6285
6286 2010-02-03 Vladimir Makarov <vmakarov@redhat.com>
6287
6288 PR rtl-optimization/42941
6289 * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
6290 of xmalloc.
6291
6292 2010-02-03 Jason Merrill <jason@redhat.com>
6293
6294 PR c++/35652
6295 * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
6296
6297 2010-02-03 Alexandre Oliva <aoliva@redhat.com>
6298
6299 PR debug/42896
6300 * cselib.h (struct cselib_val_struct): Add uid. Rename value to hash.
6301 (cselib_reset_table): Renamed from...
6302 (cselib_reset_table_with_next_value): ... this.
6303 (cselib_get_next_uid): Renamed from...
6304 (cselib_get_next_unknown_value): ... this.
6305 * cselib.c (next_uid): Renamed from...
6306 (next_unknown_value): ... this.
6307 (cselib_clear_table): Adjust.
6308 (cselib_reset_table): Adjust. Renamed from...
6309 (cselib_reset_table_with_next_value): ... this.
6310 (cselib_get_next_uid): Adjust. Renamed from...
6311 (cselib_get_next_unknown_value): ... this.
6312 (get_value_hash): Use hash.
6313 (cselib_hash_rtx): Likewise.
6314 (new_cselib_val): Adjust. Set and dump uid.
6315 (cselib_lookup_mem): Pass next_uid as hash.
6316 (cselib_subst_to_values): Likewise.
6317 (cselib_log_lookup): Dump uid.
6318 (cselib_lookup): Pass next_uid as hash. Adjust.
6319 (cselib_process_insn): Adjust.
6320 (cselib_init): Initialize next_uid.
6321 (cselib_finish): Adjust.
6322 (dump_cselib_table): Likewise.
6323 * dse.c (canon_address): Dump value uid.
6324 * print-rtl.c (print_rtx): Print value uid.
6325 * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
6326 (dvuid): New type.
6327 (dv_uid): New function, sort of renamed from...
6328 (dv_htab_hash): ... this, reimplemented in terms of it and...
6329 (dv_uid2hash): ... this. New.
6330 (variable_htab_eq): Drop excess assertions.
6331 (tie_break_pointers): Removed.
6332 (canon_value_cmp): Compare uids.
6333 (variable_post_merge_New_vals): Print uids.
6334 (vt_add_function_parameters): Adjust.
6335 (vt_initialize): Reset table. Adjust.
6336
6337 2010-02-03 Richard Guenther <rguenther@suse.de>
6338
6339 PR tree-optimization/42944
6340 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
6341 (call_may_clobber_ref_p_1): Likewise. Properly handle
6342 malloc and calloc clobbering errno.
6343
6344 2010-02-03 Steven Bosscher <steven@gcc.gnu.org>
6345
6346 * doc/invoke.texi: Fix name of sched1 dump.
6347
6348 * opts.c (decode_options): Set flag_tree_switch_conversion
6349 only conditionally on optimize >= 2.
6350
6351 * gcse.c: Assorted comment fixes in pass description.
6352
6353 2010-02-03 Anthony Green <green@moxielogic.com>
6354
6355 * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
6356 nop padding in order to maintain alignment of storage location of
6357 target function address.
6358 (moxie_trampoline_init): Store target function address at newly
6359 aligned location.
6360 * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
6361 to 32.
6362 (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
6363
6364 2010-02-03 Richard Guenther <rguenther@suse.de>
6365
6366 PR middle-end/42927
6367 * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
6368
6369 2010-02-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6370
6371 * config.gcc: Reenable check for obsolete targets.
6372 Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
6373 mips-sgi-irix6.[0-4]*.
6374
6375 2010-02-02 Nick Clifton <nickc@redhat.com>
6376
6377 * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
6378 constant size of 4 as being the same as 0.
6379 * doc/invoke.texi (RX Options): Document that -mmax-constant-size
6380 can take values in the range 0..4.
6381
6382 2010-02-02 Jack Howarth <howarth@bromo.med.uc.edu>
6383
6384 PR java/41991
6385 * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
6386 as _darwin10_Unwind_FindEnclosingFunction().
6387 * libgcc-libsystem.ver: New.
6388
6389 2010-02-01 Vladimir Makarov <vmakarov@redhat.com>
6390
6391 PR target/41399
6392 * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
6393 implicitly set registers.
6394
6395 2010-02-01 Richard Earnshaw <rearnsha@arm.com>
6396
6397 * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
6398 (arm_override_options): Allow automatic selection of the thread
6399 pointer register if thumb2.
6400 (legitimize_pic_address): Improve code sequences for Thumb2.
6401 (arm_call_tls_get_addr): Likewise.
6402 (legitimize_tls_address): Likewise.
6403 * arm.md (pic_load_addr_arm): Delete. Replace with ...
6404 (pic_load_addr_32bit): ... this. New named pattern.
6405 * thumb2.md (pic_load_addr_thumb2): Delete.
6406 (pic_load_dot_plus_four): Delete.
6407 (tls_load_dot_plus_four): New named pattern.
6408
6409 2010-02-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6410
6411 PR libgomp/29986
6412 * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
6413 Document fix for TLS bug.
6414
6415 2010-01-31 Richard Guenther <rguenther@suse.de>
6416
6417 * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
6418 conservatively correct.
6419
6420 2010-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6421
6422 PR target/42850
6423 Revert:
6424 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6425
6426 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
6427
6428 2010-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6429
6430 * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
6431
6432 2010-01-31 Kai Tietz <kai.tietz@onevision.com>
6433
6434 * config.gcc: Adjust order of makefile fragments for mingw targets.
6435
6436 2010-01-31 Richard Guenther <rguenther@suse.de>
6437
6438 PR middle-end/42898
6439 * gimplify.c (gimplify_init_constructor): For volatile LHS
6440 initialize a temporary.
6441
6442 2010-01-31 Matthias Klose <doko@ubuntu.com>
6443
6444 * configure.ac: Fix __stack_chk_fail check for cross builds configured
6445 --with-headers
6446 * configure: Regenerate.
6447
6448 2010-01-29 Eric Botcazou <ebotcazou@adacore.com>
6449
6450 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
6451 the same alias set and their sizes different constantness.
6452 (aliasing_component_refs_p): Revert 2009-10-24 change.
6453
6454 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6455
6456 * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
6457 unused.
6458
6459 2010-01-29 Richard Guenther <rguenther@suse.de>
6460
6461 * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
6462 Assert we successfully updated the call.
6463
6464 2010-01-29 Jakub Jelinek <jakub@redhat.com>
6465
6466 PR rtl-optimization/42889
6467 * df.h (df_set_bb_dirty_nonlr): New prototype.
6468 * df-core.c (df_set_bb_dirty_nonlr): New function.
6469 * df-scan.c (df_insn_rescan): Call it instead of
6470 df_set_bb_dirty for DEBUG_INSNs.
6471
6472 2010-01-29 Richard Guenther <rguenther@suse.de>
6473
6474 PR middle-end/37448
6475 * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
6476 quadratic behavior in most cases.
6477
6478 2010-01-28 Uros Bizjak <ubizjak@gmail.com>
6479
6480 PR target/42891
6481 * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
6482 in the call to gen_x86_movsicc_0_m1.
6483
6484 2010-01-28 Richard Guenther <rguenther@suse.de>
6485
6486 PR tree-optimization/42871
6487 * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
6488
6489 2010-01-28 Richard Guenther <rguenther@suse.de>
6490
6491 * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
6492 into call arguments.
6493
6494 2010-01-28 Richard Guenther <rguenther@suse.de>
6495
6496 PR middle-end/42883
6497 * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
6498 the forwarder if the destination is an EH landing pad.
6499
6500 2010-01-28 Razya Ladelsky <razya@il.ibm.com>
6501
6502 * tree-parloops.c (transform_to_exit_first_loop): Update the basic
6503 block list passed to gimple_duplicate_sese_tail.
6504 (parallelize_loops): Avoid parallelization when the function
6505 has_nonlocal_label.
6506 Avoid parallelization when the preheader is IRREDUCIBLE.
6507 Try to optimize when estimated_loop_iterations_int is unresolved.
6508 Add the loop's location to the dump file.
6509 * tree-cfg.c (add_phi_args_after_redirect): Remove.
6510 (gimple_duplicate_sese_tail): Remove the check for the latch.
6511 Redirect nexits to the exit block.
6512 Remove handling of the incoming edges to the latch.
6513 Redirect the backedge from the copied latch to the exit bb.
6514
6515 2010-01-28 Michael Matz <matz@suse.de>
6516
6517 PR target/42881
6518 * config/i386/i386.c (ix86_expand_vector_init_duplicate):
6519 Wrap force_reg into a sequence, emit it before user.
6520
6521 2010-01-28 Stephen Thomas <stephen.thomas@arm.com>
6522
6523 * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
6524 (arm_rev): New.
6525 (arm_legacy_rev): Likewise.
6526 (thumb_legacy_rev): Likewise.
6527
6528 2010-01-27 Jakub Jelinek <jakub@redhat.com>
6529
6530 * dwarf2out.c (mem_loc_descriptor): Remove special casing of
6531 CONSTANT_POOL_ADDRESS_P SYMBOL_REFs. If for MEM recursive call
6532 on MEM's address failed, try avoid_constant_pool_reference and
6533 recurse if it returned something different.
6534 (loc_descriptor): If for MEM mem_loc_descriptor failed on the
6535 address, try avoid_constant_pool_reference and recurse if it
6536 returned something different.
6537 (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
6538 address and avoid_constant_pool_reference returned something
6539 different, don't set have_address.
6540
6541 2010-01-27 Alexandre Oliva <aoliva@redhat.com>
6542
6543 PR debug/42861
6544 * var-tracking.c (val_store): Add modified argument, obey it.
6545 Adjust callers.
6546 (count_uses): Move down logging of main.
6547 (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
6548 don't need resolution.
6549 (emit_notes_in_bb): Likewise.
6550
6551 2010-01-27 Richard Guenther <rguenther@suse.de>
6552
6553 PR middle-end/42878
6554 * tree-inline.c (remap_decl): Delay remapping of SSA name
6555 default definitions until we need them.
6556
6557 2010-01-27 Jakub Jelinek <jakub@redhat.com>
6558
6559 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
6560 (rs6000_delegitimize_address): New function.
6561
6562 * config/s390/s390.c (s390_delegitimize_address): Call
6563 delegitimize_mem_from_attrs.
6564
6565 PR middle-end/42874
6566 * tree-inline.c (cannot_copy_type_1): Removed.
6567 (copy_forbidden): Don't forbid copying of functions containing
6568 records/unions with variable length fields.
6569
6570 2010-01-27 Christian Bruel <christian.bruel@st.com>
6571
6572 Revert:
6573 PR target/42841
6574 * config/sh/sh.c (find_barrier): Increase length for non delayed
6575 conditional branches.
6576
6577 2010-01-27 Matthias Klose <doko@ubuntu.com>
6578
6579 * configure.ac (gnu-unique-object): Fix ldd version check.
6580 * configure: Regenerate.
6581
6582 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6583
6584 * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
6585 HAVE_GNU_AS value.
6586 * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
6587 Test for HAVE_GNU_AS value.
6588
6589 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6590
6591 * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
6592 * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
6593 INT64_TYPE): Define.
6594 (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
6595 (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
6596 INT_LEAST64_TYPE): Define.
6597 (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
6598 UINT_LEAST64_TYPE): Define.
6599 (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
6600 INT_FAST64_TYPE): Define.
6601 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
6602 UINT_FAST64_TYPE): Define.
6603 (INTMAX_TYPE, UINTMAX_TYPE): Define.
6604 (INTPTR_TYPE, UINTPTR_TYPE): Define.
6605 (SIG_ATOMIC_TYPE): Define.
6606
6607 2010-01-26 Richard Guenther <rguenther@suse.de>
6608
6609 * df-scan.c (df_scan_set_bb_info): Remove assert.
6610 (df_insn_rescan_debug_internal): Merge asserts.
6611 (df_install_ref): Likewise.
6612 (df_mark_reg): Use bitmap_set_range.
6613 (df_hard_reg_used_p): Remove assert.
6614 (df_hard_reg_used_count): Likewise.
6615
6616 2010-01-26 Richard Guenther <rguenther@suse.de>
6617
6618 PR rtl-optimization/42685
6619 * web.c (web_main): Ignore DEBUG_INSNs.
6620
6621 2010-01-26 Joern Rennecke <amylaar@spamcop.net>
6622
6623 * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
6624
6625 (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
6626 Fix types of fndecl and arglist parameters.
6627
6628 2010-01-26 Richard Guenther <rguenther@suse.de>
6629
6630 PR middle-end/42806
6631 * tree-eh.c (unsplit_eh): Skip debug insns.
6632
6633 2010-01-26 Richard Guenther <rguenther@suse.de>
6634
6635 PR tree-optimization/42250
6636 * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
6637
6638 2010-01-26 Jakub Jelinek <jakub@redhat.com>
6639
6640 PR fortran/42866
6641 * omp-low.c (expand_omp_sections): Only use single_pred if
6642 l2_bb is single_pred_p.
6643
6644 2010-01-25 Christian Bruel <christian.bruel@st.com>
6645
6646 PR target/42841
6647 * config/sh/sh.c (find_barrier): Increase length for non delayed
6648 conditional branches.
6649 (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
6650
6651 2010-01-24 David S. Miller <davem@davemloft.net>
6652
6653 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
6654 define if not using GAS.
6655 * config/sparc/sparc.c (sparc_elf_asm_named_section):
6656 Likewise. Delete SECTION_MERGE code, which is only applicable
6657 when using GAS.
6658
6659 2010-01-24 Mark Mitchell <mark@codesourcery.com>
6660
6661 PR c++/42748
6662 * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
6663 mangling of va_list in system headers.
6664
6665 2010-01-23 Toon Moene <toon@moene.org>
6666
6667 * tree-predcom.c (combine_chains): Return NULL, not false.
6668
6669 2010-01-23 Joern Rennecke <amylaar@spamcop.net>
6670
6671 * tree-loop-distribution.c (distribute_loop): Fix declaration and
6672 initialization of variable res to agree with return type.
6673
6674 2010-01-22 Steve Ellcey <sje@cup.hp.com>
6675
6676 * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
6677 * tree-sra.c: Add include of expr.h.
6678
6679 2010-01-22 Jakub Jelinek <jakub@redhat.com>
6680
6681 * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
6682 insert the debug stmt on the single non-EH edge from the stmt.
6683
6684 2010-01-22 Richard Henderson <rth@redhat.com>
6685
6686 PR tree-opt/42833
6687 * tree-sra.c (sra_modify_assign): Delay re-gimplification of
6688 the RHS until after generate_subtree_copies has insertted its
6689 code before the current statement.
6690
6691 2010-01-22 Joern Rennecke <amylaar@spamcop.net>
6692
6693 * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
6694
6695 * gcc-plugin.h (plugin_init): Use "C" likage for c++.
6696
6697 2010-01-21 Martin Jambor <mjambor@suse.cz>
6698
6699 PR tree-optimization/42585
6700 * tree-sra.c (struct access): New field grp_total_scalarization.
6701 (dump_access): Dump the new field.
6702 (should_scalarize_away_bitmap): New variable.
6703 (cannot_scalarize_away_bitmap): Likewise.
6704 (sra_initialize): Allocate new bitmaps.
6705 (sra_deinitialize): Free new bitmaps.
6706 (create_access_1): New function.
6707 (create_access): Parts moved to create_access_1.
6708 (type_consists_of_records_p): New function.
6709 (completely_scalarize_record): Likewise.
6710 (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
6711 (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
6712 (sort_and_splice_var_accesses): Hint groups with a total_scalarization
6713 access.
6714 (analyze_all_variable_accesses): Completely scalarize small eligible
6715 records.
6716
6717 2010-01-21 Martin Jambor <mjambor@suse.cz>
6718
6719 * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
6720
6721 2010-01-21 Andrew Haley <aph@redhat.com>
6722
6723 * gcc.c (process_command): Move lang_specific_driver before
6724 setting cc_libexec_prefix.
6725
6726 2010-01-21 Richard Guenther <rguenther@suse.de>
6727
6728 PR middle-end/19988
6729 * fold-const.c (negate_expr_p): Pretend only negative
6730 real constants are easily negatable.
6731
6732 2010-01-20 Janis Johnson <janis187@us.ibm.com>
6733 Jason Merrill <jason@redhat.com>
6734
6735 * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
6736 (TYPE_TRANSPARENT_AGGR): this, for union and record.
6737 * calls.c (initialize argument_information): Handle it.
6738 * c-common.c (handle_transparent_union_attribute): Use new name.
6739 * c-decl.c (finish_struct): Ditto.
6740 * c-typeck.c (type_lists_compatible_p): Ditto.
6741 (convert_for_assignment): Use new name and also handle record.
6742 * function.c (aggregate_value_p): Handle it.
6743 (pass_by_reference): Ditto.
6744 (assign_parm_data_types): Ditto.
6745 * print-tree.c (print_node): Ditto.
6746 * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
6747 * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
6748 * tree.c (first_field): New fn.
6749
6750 2010-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
6751
6752 PR target/42818
6753 * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
6754 even when linking statically, for now.
6755
6756 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
6757
6758 PR debug/42715
6759 * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
6760 without a cselib val.
6761 (count_uses): Accept MO_VAL_SET with no val on stores.
6762 (add_stores): Likewise.
6763
6764 2010-01-20 Jakub Jelinek <jakub@redhat.com>
6765
6766 * var-tracking.c (check_value_val): Add a compile time assertion.
6767 (dv_is_decl_p): Simplify.
6768 (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
6769 gcc_assert if ENABLE_CHECKING.
6770
6771 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
6772
6773 PR debug/42782
6774 * var-tracking.c: Include tree-flow.h.
6775 (mem_dies_at_call): New.
6776 (dataflow_set_preserve_mem_locs): Use it.
6777 (dataflow_set_remove_mem_locs): Likewise.
6778 (dump_var): Renamed from dump_variable. Adjust all callers.
6779 (dump_var_slot): Renamed from dump_variable_slot. Likewise.
6780 * Makefile.in (var-tracking.o): Adjust deps.
6781
6782 2010-01-20 Joern Rennecke <amylaar@spamcop.net>
6783
6784 * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
6785
6786 2010-01-20 Richard Guenther <rguenther@suse.de>
6787
6788 PR tree-optimization/42717
6789 * tree-ssa-dce.c (get_live_post_dom): Remove.
6790 (forward_edge_to_pdom): Take an arbitrary edge to copy
6791 degenerate PHI args from.
6792 (remove_dead_stmt): Use the first post-dominator even if it
6793 does not contain live statements as redirection destination.
6794
6795 2010-01-20 Richard Guenther <rguenther@suse.de>
6796
6797 * tree-inline.c (estimate_num_insns): Handle EH builtins.
6798
6799 2010-01-20 Jakub Jelinek <jakub@redhat.com>
6800
6801 * sel-sched.c (create_speculation_check): Remove set but not used
6802 variable twin.
6803 (try_transformation_cache): Remove set but not used variable ds.
6804 (calculate_privileged_insns): Remove set but not used variables
6805 cur_insn and min_spec_insn.
6806 (find_best_expr): Remove set but not used variable avail_n.
6807 * tree-predcom.c (base_names_in_chain_on): Remove set but not used
6808 variable e.
6809 * cgraphunit.c (assemble_thunk): Remove set but not used variable
6810 false_label.
6811 * haifa-sched.c (remove_notes): Remove set but not used variable prev.
6812 * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
6813 new_scop_exit_edge.
6814
6815 2010-01-20 Felyza Wishbringer <fwishbringer@gmail.com>
6816
6817 PR bootstrap/42786
6818 * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
6819 cpu types. Add support for *-sse3 cpu types.
6820 (x86_64-*-*): Ditto.
6821
6822 2010-01-20 Jakub Jelinek <jakub@redhat.com>
6823
6824 PR middle-end/42803
6825 * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
6826 argument, call initializer_constant_valid_p_1 instead of
6827 initializer_constant_valid_p, pass CACHE to it, return NULL
6828 immediately if first call returns NULL.
6829 (initializer_constant_valid_p_1): New function.
6830 (initializer_constant_valid_p): Use it.
6831
6832 2010-01-20 Thomas Quinot <quinot@adacore.com>
6833
6834 * tree.def (PLACEHOLDER_EXPR): Fix comment.
6835
6836 2010-01-20 Jakub Jelinek <jakub@redhat.com>
6837
6838 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
6839 of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
6840 (loc_list_from_tree): Don't handle unsigned division. Handle
6841 signed modulo using DW_OP_{over,over,div,mul,minus}.
6842 * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
6843 modulo instead of signed.
6844
6845 2010-01-20 DJ Delorie <dj@redhat.com>
6846
6847 * config/h8300/h8300.c (F): Add "in_epilogue" flag.
6848 (Fpa): Pass it
6849 (h8300_emit_stack_adjustment): Propogate it.
6850 (push): Pass it.
6851 (h8300_expand_prologue): Likewise.
6852 (h8300_expand_epilogue): Likewise.
6853
6854 2010-01-19 Michael Matz <matz@suse.de>
6855
6856 PR tree-optimization/41783
6857 * tree-data-ref.c (toplevel): Include flags.h.
6858 (dump_data_dependence_relation): Also dump the inputs if the
6859 result will be unknown.
6860 (split_constant_offset_1): Look through some conversions.
6861 * tree-predcom.c (determine_roots_comp): Restart a new chain if
6862 the offset from last element is too large.
6863 (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
6864 (reassociate_to_the_same_stmt): Handle vector registers.
6865 * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
6866 (e.g. conversions).
6867 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
6868 wide_prolog_niters argument, emit widening instructions.
6869 (vect_do_peeling_for_alignment): Adjust caller, use widened
6870 variant of the iteration cound.
6871 * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
6872
6873 2010-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6874
6875 PR target/38697
6876 * config/arm/neon-testgen.m (emit_automatics): New parameter
6877 features. Adjust for Fixed_return_reg feature.
6878 (test_intrinsic): Call emit_automatics with new feature.
6879 * config/arm/neon.ml: Update copyright years.
6880 (features): New Fixed_return_reg feature.
6881 (ops): Update feature for Vget_low.
6882
6883 2010-01-19 Jakub Jelinek <jakub@redhat.com>
6884
6885 PR tree-optimization/42719
6886 * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
6887 stmt uses.
6888
6889 PR debug/42728
6890 * fwprop.c (all_uses_available_at): Return false if def_set dest
6891 is a REG that is used in def_insn.
6892
6893 2010-01-19 Joern Rennecke <amylaar@spamcop.net>
6894
6895 * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
6896
6897 (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
6898 Add argument names.
6899
6900 (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
6901
6902 * target.h (struct gcc_target) <secondary_reload>: Change type
6903 of last argument to secondary_reload_info *.
6904
6905 2010-01-18 Uros Bizjak <ubizjak@gmail.com>
6906
6907 PR target/42774
6908 * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
6909 memory references with unaligned offsets. Remove CQImode handling.
6910 (unaligned_memory_operand): Return 1 for memory references with
6911 unaligned offsets. Remove CQImode handling.
6912
6913 2010-01-18 Richard Guenther <rguenther@suse.de>
6914
6915 PR middle-end/39954
6916 * cfgexpand.c (expand_call_stmt): TER pointer arguments in
6917 builtin calls.
6918
6919 2010-01-18 Richard Guenther <rguenther@suse.de>
6920
6921 PR tree-optimization/42781
6922 * tree-ssa-structalias.c (find_what_var_points_to): Skip
6923 restrict processing only if the original variable was artificial.
6924
6925 2010-01-18 Joern Rennecke <amylaar@spamcop.net>
6926
6927 * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
6928 find number of popped argument bytes.
6929
6930 (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
6931 Fix the text that describes the return value for invalid insns.
6932
6933 (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type. Fix argument list.
6934
6935 (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
6936 Clarify what 'cost of the -dependence' is. Fix quoting.
6937
6938 * toplev.c (default_get_pch_validity): Rename argument to "sz".
6939 * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
6940
6941 2010-01-17 Jakub Jelinek <jakub@redhat.com>
6942
6943 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
6944 {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
6945
6946 2010-01-17 Richard Guenther <rguenther@suse.de>
6947
6948 PR middle-end/42248
6949 * function.c (split_complex_args): Take a VEC to modify.
6950 (assign_parms_augmented_arg_list): Build a VEC instead of
6951 a chain of PARM_DECLs.
6952 (assign_parms_unsplit_complex): Take a VEC of arguments.
6953 Do not fixup unmodified parms.
6954 (assign_parms): Deal with the VEC.
6955 (gimplify_parameters): Likewise.
6956
6957 2010-01-17 Richard Guenther <rguenther@suse.de>
6958
6959 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
6960 node existence check.
6961 * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
6962 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
6963 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
6964 * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
6965 (gimple_execute_on_growing_pred): Likewise.
6966
6967 2010-01-17 Richard Guenther <rguenther@suse.de>
6968
6969 PR tree-optimization/42773
6970 * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
6971 (compute_antic_aux): Likewise.
6972 (compute_partial_antic_aux): Likewise.
6973
6974 2010-01-17 Jie Zhang <jie.zhang@analog.com>
6975
6976 PR debug/42767
6977 * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
6978 and US_TRUNCATE.
6979
6980 2010-01-17 Joern Rennecke <amylaar@spamcop.net>
6981
6982 * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
6983 appearance.
6984
6985 (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
6986 Fix markup for strict argument.
6987
6988 (TARGET_SCHED_REORDER2): Fix argument types.
6989
6990 (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
6991 (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
6992
6993 (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
6994 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
6995
6996 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
6997 Add argument name.
6998
6999 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
7000 (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
7001 (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
7002 (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
7003 (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
7004
7005 (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
7006
7007 (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
7008
7009 (TARGET_ASM_RELOC_RW_MASK): Add return type.
7010 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
7011
7012 (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
7013
7014 (TARGET_ASM_FILE_START): Put @findex before paragraph start.
7015 Use prototype.
7016
7017 (TARGET_ASM_NAMED_SECTION): Fix argument list.
7018
7019 (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
7020 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
7021
7022 (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
7023
7024 (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
7025
7026 (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
7027 referring to it. Fix language.
7028
7029 (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
7030
7031 (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
7032
7033 (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
7034
7035 (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
7036
7037 (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
7038 '@var{stream}. Remove stray 'and'.
7039
7040 (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
7041
7042 (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
7043
7044 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
7045
7046 (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
7047 misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
7048
7049 (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
7050 Fix description of return value.
7051 Rename argument "sz" to "len."
7052
7053 (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
7054 Clarify meaning of 'true' return value.
7055
7056 (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
7057
7058 (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
7059 rep_mode versus mode_rep.
7060
7061 (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
7062
7063 (TARGET_BUILTIN_DECL): Fix name.
7064
7065 (TARGET_COMMUTATIVE_P): Fix type of first argument.
7066
7067 (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
7068
7069 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
7070
7071 (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
7072
7073 (TARGET_RELAXED_ORDERING): Use @deftypevr.
7074
7075 (TARGET_GET_DRAP_RTX): Note that this is a hook.
7076 Clarify language.
7077
7078 (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
7079 Rename argument tm_fn to md_fn.
7080
7081 (TARGET_OPTION_PRINT): Fix argument list.
7082
7083 2010-01-16 Harsha Jagasia <harsha.jagasia@amd.com>
7084
7085 PR target/42664
7086 * config/i386/i386.c (ix86_fixup_binary_operands):
7087 Revert FMA4 fixup of operands.
7088
7089 2010-01-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7090
7091 PR gcc/42525
7092 * Makefile.in (write_entries_to_file, install-plugin):
7093 Use \012 instead of \n with tr.
7094
7095 2010-01-16 Richard Sandiford <r.sandiford@uk.ibm.com>
7096
7097 * configure.ac (HAVE_AS_REF): New C macro.
7098 * configure: Regenerate.
7099 * config.in: Likewise.
7100 * collect2.c (main): Only postpone SCAN_DWEH to the second pass
7101 if HAVE_AS_REF.
7102 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
7103 if HAVE_AS_REF.
7104
7105 2010-01-16 Joern Rennecke <amylaar@spamcop.net>
7106
7107 * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
7108
7109 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
7110
7111 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
7112
7113 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
7114
7115 (TARGET_IN_SMALL_DATA_P): Fix argument type.
7116
7117 (TARGET_BINDS_LOCAL_P): Fix argument type.
7118
7119 (TARGET_ASM_FILE_END): Use prototype.
7120
7121 (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
7122
7123 (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
7124
7125 (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
7126
7127 (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
7128
7129 (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
7130 (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
7131
7132 (TARGET_PCH_VALID_P): Put 'const char *' in braces.
7133 (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
7134
7135 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
7136 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
7137 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
7138 (TARGET_ADDR_SPACE_CONVERT): Likewise.
7139
7140 (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
7141
7142 (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
7143
7144 (TARGET_INIT_BUILTINS): Use prototype.
7145
7146 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
7147 Put 'const char *' in braces. Fix parameter types.
7148 (TARGET_INVALID_CONVERSION): Fix parameter types.
7149 (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
7150 (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
7151
7152 (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
7153 Fix argument type.
7154
7155 (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
7156
7157 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
7158
7159 2010-01-15 Joern Rennecke <amylaar@spamcop.net>
7160
7161 * doc/tm.texi (TARGET_HELP): Fix return type.
7162
7163 (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
7164 in braces. Fix argument types.
7165
7166 (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
7167
7168 (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
7169
7170 (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
7171
7172 (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
7173 (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
7174
7175 (TARGET_MANGLE_TYPE): Fix argument types.
7176
7177 (TARGET_IRA_COVER_CLASSES): Use prototype.
7178
7179 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type. Use prototype.
7180
7181 (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
7182
7183 (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
7184
7185 (TARGET_MUST_PASS_IN_STACK): Fix argument type.
7186
7187 (TARGET_CALLEE_COPIES): Fix argument types.
7188
7189 (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
7190
7191 (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
7192
7193 (TARGET_FUNCTION_VALUE): Fix argument types.
7194
7195 (TARGET_RETURN_IN_MSB): Fix argument type.
7196
7197 (TARGET_RETURN_IN_MEMORY): Fix argument types.
7198
7199 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
7200
7201 (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
7202
7203 (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
7204 agree with return type.
7205
7206 (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
7207
7208 2010-01-15 Jing Yu <jingyu@google.com>
7209
7210 PR rtl-optimization/42691
7211 * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
7212 a pseudo to a constant and are merged, and adjust comments.
7213
7214 2010-01-15 Eric Botcazou <ebotcazou@adacore.com>
7215
7216 * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
7217
7218 2010-01-15 Richard Guenther <rguenther@suse.de>
7219
7220 PR middle-end/42739
7221 * tree-cfgcleanup.c (remove_forwarder_block): Move destination
7222 labels of computed or non-local gotos to the destination.
7223 * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
7224 landing pad label is the first label.
7225
7226 2010-01-15 Richard Guenther <rguenther@suse.de>
7227
7228 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
7229
7230 2010-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
7231
7232 PR target/42747
7233 * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
7234 to allow generation of the xssqrtdp instruction on power7.
7235 (sqrtdf2_fpr): Ditto.
7236
7237 2010-01-14 Jakub Jelinek <jakub@redhat.com>
7238
7239 PR middle-end/42674
7240 * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
7241 functions with noreturn attribute.
7242
7243 PR c++/42608
7244 * varasm.c (declare_weak): Add weak attribute to decl if it
7245 doesn't have one already.
7246 (assemble_external): Only add decls to weak_decls if they also
7247 have weak attribute.
7248
7249 2010-01-14 Alexandre Oliva <aoliva@redhat.com>
7250
7251 * var-tracking.c (var_reg_delete): Don't delete the association
7252 between REGs and values or one-part variables if the register
7253 isn't clobbered.
7254
7255 2010-01-14 Jakub Jelinek <jakub@redhat.com>
7256
7257 PR debug/42657
7258 * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
7259 because its first operand is a non-localized variable.
7260
7261 2010-01-14 Martin Jambor <mjambor@suse.cz>
7262
7263 PR tree-optimization/42706
7264 * tree-sra.c (encountered_recursive_call): New variable.
7265 (encountered_unchangable_recursive_call): Likewise.
7266 (sra_initialize): Initialize both new variables.
7267 (callsite_has_enough_arguments_p): New function.
7268 (scan_function): Call decl and flags check only for IPA-SRA, check
7269 whether there is a recursive call and whether it has enough arguments.
7270 (all_callers_have_enough_arguments_p): New function.
7271 (convert_callers): Look for recursive calls only when
7272 encountered_recursive_call is set.
7273 (ipa_early_sra): Bail out either if
7274 !all_callers_have_enough_arguments_p or
7275 encountered_unchangable_recursive_call.
7276
7277 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
7278
7279 * sel-sched.c: Add 2010 to copyright years.
7280 * sel-sched-ir.c: Likewise.
7281 * sel-sched-ir.h: Likewise.
7282
7283 2010-01-14 Martin Jambor <mjambor@suse.cz>
7284
7285 PR tree-optimization/42714
7286 * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
7287 constructors specially.
7288
7289 2010-01-14 Andi Kleen <ak@linux.intel.com>
7290
7291 * config/i386/drivers-i386.c (detect_caches_intel):
7292 Add l2sizekb parameter and fill in.
7293 (host_detect_local_cpu): Add l2sizekb, fill in.
7294 Add Atom small cache heuristic.
7295
7296 2010-01-14 Andi Kleen <ak@linux.intel.com>
7297
7298 * config/i386/drivers-i386.c (detect_caches_cpuid4):
7299 Add level3 parameter and fill in.
7300 (detect_caches_intel): Handle level3 cache.
7301
7302 2010-01-14 Andi Kleen <ak@linux.intel.com>
7303
7304 * config/i386/drivers-i386.c (host_detect_local_cpu):
7305 Fix core duo detection.
7306
7307 2010-01-14 Andi Kleen <ak@linux.intel.com>
7308
7309 * config/i386/drivers-i386.c (host_detect_local_cpu):
7310 Fix Atom detection.
7311
7312 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
7313
7314 * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
7315 (rs6000_variable_issue_1): this. Use...
7316 (rs6000_variable_issue): here. Reimplement. Print debug info.
7317
7318 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
7319
7320 * sel-sched-ir.c (sel_restore_other_notes): Rename to
7321 sel_restore_notes. Update all callers. Call reemit_notes
7322 for all insns.
7323
7324 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
7325
7326 PR rtl-optimization/42246
7327 * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
7328 loops.
7329
7330 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
7331
7332 * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
7333 all successors is the same as number of successors in current region.
7334
7335 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
7336
7337 * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
7338 to rename is not separable. Otherwise check that its LHS is not NULL.
7339
7340 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
7341
7342 * sel-sched.c (choose_best_reg_1): Loop over all regs for mode.
7343
7344 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
7345
7346 * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
7347 available registers when failed to discover LHS register class.
7348 Fix indentation. Update comment.
7349
7350 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
7351 Alexander Monakov <amonakov@ispras.ru>
7352
7353 PR rtl-optimization/42389
7354 * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
7355 to can_issue_more.
7356 (advance_state_on_fence): Likewise.
7357 (sel_target_adjust_priority): Print debug output only when
7358 sched_verbose >= 4, not 2.
7359 (get_expr_cost): Do not issue all unique insns on the next cycle.
7360 (fill_insns): Initialize can_issue_more from the value saved
7361 with the fence.
7362 * sel-sched-ir.c (flist_add): New parameter issue_more.
7363 Init FENCE_ISSUE_MORE with it.
7364 (merge_fences): Likewise.
7365 (init_fences): Update call to flist_add.
7366 (add_to_fences, add_clean_fence_to_fences)
7367 (add_dirty_fence_to_fences): Likewise.
7368 (move_fence_to_fences): Update call to merge_fences.
7369 (invoke_reorder_hooks): Do not reset can_issue_more on insns from
7370 sched groups.
7371 * sel-sched-ir.h (struct _fence): New field issue_more.
7372 (FENCE_ISSUE_MORE): New accessor macro.
7373
7374 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
7375
7376 PR rtl-optimization/42388
7377 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
7378 that have no predecessors nor successors. Do not call move_bb_info
7379 for empty blocks outside of current region.
7380
7381 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
7382
7383 PR rtl-optimization/42294
7384 * sel-sched-ir.h (struct _sel_insn_data): Update comment.
7385 * sel-sched.c (move_exprs_to_boundary): Transitively add all
7386 originators' originators.
7387
7388 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
7389
7390 PR rtl-optimization/39453
7391 PR rtl-optimization/42246
7392 * sel-sched-ir.c (considered_for_pipelining_p): Do not test
7393 for pipelining_p.
7394 (sel_add_loop_preheaders): Add preheader to last_added_blocks.
7395
7396 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
7397 Alexander Monakov <amonakov@ispras.ru>
7398
7399 PR middle-end/42245
7400 * sel-sched-ir.c (sel_recompute_toporder): New. Use it...
7401 (maybe_tidy_empty_bb): ... here. Make static. Add new
7402 argument. Update all callers.
7403 (tidy_control_flow): ... and here. Recompute topological order
7404 of basic blocks in region if necessary.
7405 (sel_redirect_edge_and_branch): Change return type. Return true
7406 if topological order might have been invalidated.
7407 (purge_empty_blocks): Export and move from...
7408 * sel-sched.c (purge_empty_blocks): ... here.
7409 * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
7410 (maybe_tidy_empty_bb): Delete prototype.
7411 (purge_empty_blocks): Declare.
7412
7413 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
7414
7415 PR rtl-optimization/42249
7416 * sel-sched.c (try_replace_dest_reg): When chosen register
7417 and original register is the same, do not bail out early, but
7418 still check all original insns for validity of replacing destination
7419 register. Set EXPR_TARGET_AVAILABLE to 1 before leaving function
7420 in this case.
7421
7422 2010-01-14 Jakub Jelinek <jakub@redhat.com>
7423
7424 PR c/42721
7425 Port from no-undefined-overflow branch:
7426 2009-03-09 Richard Guenther <rguenther@suse.de>
7427
7428 * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
7429
7430 2010-01-14 Richard Guenther <rguenther@suse.de>
7431
7432 PR lto/42665
7433 * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
7434
7435 2010-01-14 Ira Rosen <irar@il.ibm.com>
7436
7437 PR tree-optimization/42709
7438 * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
7439 as scalar type in creation of constant vector operand.
7440
7441 2010-01-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7442
7443 PR testsuite/42414
7444 * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
7445 (check-parallel-%): Match `testsuite' directory component only
7446 at the end.
7447
7448 2010-01-14 Shujing Zhao <pearly.zhao@oracle.com>
7449
7450 PR translation/39521
7451 * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
7452 strings with _().
7453
7454 2010-01-13 Richard Guenther <rguenther@suse.de>
7455
7456 PR tree-optimization/42730
7457 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
7458 offset zero.
7459
7460 2010-01-13 Steve Ellcey <sje@cup.hp.com>
7461
7462 PR target/pr42542
7463 * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
7464 for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
7465 them signed.
7466
7467 2010-01-13 Bernd Schmidt <bernd.schmidt@analog.com>
7468
7469 * config/bfin/libgcc-bfin.ver: Regenerate based on current
7470 libgcc-std.ver. Add entries for ___smulsi3_highpart and
7471 ___umulsi3_highpart.
7472
7473 * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
7474 rather than schedule_insns if the pass is enabled.
7475
7476 2010-01-13 Martin Jambor <mjambor@suse.cz>
7477
7478 PR tree-optimization/42704
7479 * tree-sra.c (sra_modify_assign): Do not delete assignments to
7480 SSA_NAMEs.
7481
7482 2010-01-13 Martin Jambor <mjambor@suse.cz>
7483
7484 PR tree-optimization/42703
7485 * tree-sra.c (analyze_access_subtree): Check that we can build a
7486 reference to the original data within the aggregate.
7487
7488 2010-01-13 Richard Guenther <rguenther@suse.de>
7489
7490 PR tree-optimization/42705
7491 * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
7492
7493 2010-01-13 Richard Guenther <rguenther@suse.de>
7494
7495 PR middle-end/42716
7496 * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
7497
7498 2010-01-13 Jakub Jelinek <jakub@redhat.com>
7499
7500 PR debug/41371
7501 * var-tracking.c (values_to_unmark): New variable.
7502 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
7503 values_to_unmark vector. Moved body to...
7504 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
7505 instead queue it into values_to_unmark vector.
7506 (vt_find_locations): Free values_to_unmark vector.
7507
7508 2010-01-13 Wolfgang Gellerich <gellerich@de.ibm.com>
7509
7510 * config/s390/s390.c (override_options): Set
7511 default of max-pending-list-length to 256
7512
7513 2010-01-13 Richard Guenther <rguenther@suse.de>
7514
7515 PR lto/42678
7516 * tree-pass.h (PROP_gimple_lcx): New.
7517 * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
7518 * passes.c (init_optimization_passes): Move pass_lower_complex_O0
7519 before the final cleanup_eh.
7520 (dump_properties): Dump PROP_gimple_lcx.
7521 * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
7522 (tree_lower_complex_O0): Remove.
7523 (gate_no_optimization): Run if PROP_gimple_lcx is not set.
7524 (pass_lower_complex_O0): Provide PROP_gimple_lcx. Run
7525 tree_lower_complex, schedule TODO_update_ssa.
7526 * lto-streamer-out.c (output_function): Stream the functions
7527 properties.
7528 * lto-streamer-in.c (input_function): Likewise.
7529 (lto_read_body): Do not override them here.
7530
7531 2010-01-12 Joseph Myers <joseph@codesourcery.com>
7532
7533 PR c/42708
7534 * c-typeck.c (build_c_cast): Fold value cast to union type before
7535 wrapping it in a CONSTRUCTOR.
7536
7537 2010-01-12 Jakub Jelinek <jakub@redhat.com>
7538
7539 PR rtl-optimization/42699
7540 * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
7541 involved.
7542
7543 2010-01-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7544
7545 * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
7546 SUBTARGET_WARN_UNUSED_SPEC): Move ...
7547 config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
7548 SUBTARGET_WARN_UNUSED_SPEC): ... here
7549 * config/mips/iris5.h (LIBGCC_SPEC): Define.
7550
7551 2010-01-12 Julian Brown <julian@codesourcery.com>
7552
7553 * config/arm/neon-schedgen.ml (Utils): Don't try to
7554 open missing module.
7555 (find_with_result): New.
7556
7557 2010-01-12 Jakub Jelinek <jakub@redhat.com>
7558
7559 PR debug/42662
7560 * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
7561 sharing when canonicalizing ({lt,ge}u (plus a b) b).
7562
7563 PR tree-optimization/42645
7564 * tree-inline.c (processing_debug_stmt): Move earlier. Make static.
7565 (remap_ssa_name): If processing_debug_stmt and name wasn't found in
7566 decl_map, set processing_debug_stmt to -1 and return name without
7567 any remapping.
7568
7569 2010-01-11 Dave Korn <dave.korn.cygwin@gmail.com>
7570
7571 * doc/install.texi (Specific#x-x-cygwin): Document minimum required
7572 binutils version, and reword target configuration description.
7573
7574 2010-01-11 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
7575
7576 * config/avr/avr.h (LINKER_NAME): Remove.
7577
7578 2010-01-11 Janis Johnson <janis187@us.ibm.com>
7579
7580 PR target/42416
7581 * config/rs6000/rs6000.c (rs6000_override_options): On targets
7582 that support VSX, warn for -mno-altivec if vsx is not disabled,
7583 and disable vsx.
7584
7585 2010-01-11 Joseph Myers <joseph@codesourcery.com>
7586 Shujing Zhao <pearly.zhao@oracle.com>
7587
7588 PR translation/42469
7589 * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
7590 fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
7591 character between option name and help text.
7592 * c.opt (imultilib): Likewise.
7593
7594 2010-01-10 Rafael Avila de Espindola <espindola@google.com>
7595
7596 * lto-streamer-out.c (output_unreferenced_globals): Output static
7597 variables.
7598
7599 2010-01-10 Steven Bosscher <steven@gcc.gnu.org>
7600
7601 PR rtl-optimization/42621
7602 * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
7603 optimizing for size.
7604 (duplicate_computed_gotos): Remove now-redundant check.
7605
7606 2010-01-10 Steve Ellcey <sje@cup.hp.com>
7607
7608 PR target/37454
7609 * configure.ac: Save and restore LDFLAGS and LIBS
7610 * configure: Regenerate.
7611
7612 2010-01-10 Richard Guenther <rguenther@suse.de>
7613
7614 PR middle-end/42667
7615 * builtins.c (fold_builtin_strlen): Add type argument and
7616 convert the resulting length to it.
7617 (fold_builtin_1): Adjust.
7618
7619 2010-01-09 Jakub Jelinek <jakub@redhat.com>
7620
7621 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
7622 sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
7623 1 insn.
7624 (num_insns_constant_wide): Adjust for that change.
7625
7626 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
7627
7628 PR debug/42631
7629 * web.c (union_defs): Add used argument, to combine uses of
7630 uninitialized regs.
7631 (entry_register): Adjust type and tests of used argument.
7632 (web_main): Widen used for new use. Pass it to union_defs.
7633 * df.h (union_defs): Adjust prototype.
7634
7635 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
7636
7637 PR debug/42630
7638 * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
7639 uses in new incoming argument. Free body.
7640 (reset_debug_uses_in_loop): New.
7641 (analyze_insn_to_expand_var): Call the latter if the former found
7642 anything. Fix whitespace. Reject invalid dest overlaps before
7643 going through all insns in the loop.
7644
7645 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
7646
7647 PR debug/42629
7648 * haifa-sched.c (dying_use_p): Debug insns don't count.
7649
7650 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
7651
7652 PR middle-end/42363
7653 * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
7654 * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
7655 (verify_gimple_call): Reject LHS in noreturn calls.
7656
7657 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
7658
7659 PR debug/42604
7660 PR debug/42395
7661 * tree-vect-loop-manip.c (adjust_info): New type.
7662 (adjust_vec): New pointer to vector.
7663 (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
7664 (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
7665 (slpeel_update_phis_for_duplicate_loop): Use them.
7666 (slpeel_update_phi_nodes_for_guard1): Likewise.
7667 (slpeel_update_phi_nodes_for_guard2): Likewise.
7668 (slpeel_tree_peel_loop_to_edge): Likewise.
7669 (vect_update_ivs_after_vectorizer): Likewise.
7670
7671 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
7672
7673 * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
7674 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
7675
7676 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
7677
7678 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
7679 bogus uninitialized warning.
7680
7681 2010-01-09 Richard Guenther <rguenther@suse.de>
7682
7683 PR middle-end/42512
7684 * tree-scalar-evolution.c (interpret_loop_phi): Make sure
7685 the evolution is compatible with the initial condition.
7686
7687 2010-01-09 Jakub Jelinek <jakub@redhat.com>
7688
7689 * gcc.c (process_command): Update copyright notice dates.
7690 * gcov.c (print_version): Likewise.
7691 * gcov-dump.c (print_version): Likewise.
7692 * mips-tfile.c (main): Likewise.
7693 * mips-tdump.c (main): Likewise.
7694
7695 2010-01-08 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
7696
7697 PR target/41885
7698 * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
7699 (rotlhi3): Delete.
7700 (rotlhi3_8): Delete.
7701 (rotlsi3): Delete.
7702 (rotlsi3_8): Delete.
7703 (rotlsi3_16): Delete.
7704 (rotlsi3_24): Delete.
7705 (rotl<mode>3): New.
7706 (*rotw<mode>3): New.
7707 (*rotb<mode>3): New.
7708 * config/avr/avr.c (avr_rotate_bytes): New function.
7709 * config/avr/avr-proto.h (avr_rotate_bytes): New function.
7710
7711 2010-01-08 Steve Ellcey <sje@cup.hp.com>
7712
7713 PR target/37454
7714 * configure.ac: Modify -rdynamic check.
7715 * configure: Regenerate.
7716
7717 2010-01-08 DJ Delorie <dj@redhat.com>
7718
7719 * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
7720 register popping order.
7721
7722 2010-01-08 Richard Guenther <rguenther@suse.de>
7723
7724 PR lto/42528
7725 * c.opt (fsigned-char): Also let LTO handle this option.
7726 (funsigned-char): Likewise.
7727
7728 2010-01-07 Richard Guenther <rguenther@suse.de>
7729
7730 * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
7731 (gimple_op): Likewise.
7732 (gimple_op_ptr): Likewise.
7733 (gimple_assign_set_lhs): Remove gcc_assert.
7734 (gimple_assign_set_rhs1): Likewise.
7735 (gimple_assign_set_rhs2): Likewise.
7736 (gimple_call_set_lhs): Likewise.
7737 (gimple_call_set_fn): Likewise.
7738 (gimple_call_set_fndecl): Likewise.
7739 (gimple_call_fndecl): Likewise.
7740 (gimple_call_return_type): Likewise.
7741 (gimple_call_set_chain): Likewise.
7742 (gimple_call_num_args): Likewise.
7743 (gimple_call_set_arg): Likewise.
7744 (gimple_cond_set_code): Likewise.
7745 (gimple_cond_set_lhs): Likewise.
7746 (gimple_cond_set_rhs): Likewise.
7747 (gimple_cond_set_true_label): Likewise.
7748 (gimple_cond_set_false_label): Likewise.
7749 (gimple_label_set_label): Likewise.
7750 (gimple_goto_set_dest): Likewise.
7751 (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
7752 (gimple_debug_bind_get_value): Likewise.
7753 (gimple_debug_bind_get_value_ptr): Likewise.
7754 (gimple_debug_bind_set_var): Likewise.
7755 (gimple_debug_bind_set_value): Likewise.
7756 (gimple_debug_bind_reset_value): Likewise.
7757 (gimple_debug_bind_has_value_p): Likewise.
7758 (gimple_return_retval_ptr): Remove gcc_assert.
7759 (gimple_return_retval): Likewise.
7760 (gimple_return_set_retval): Likewise.
7761 * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
7762 (safe_referenced_var_iterator): Remove.
7763 (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
7764 * tree-flow-inline.h (gimple_nonlocal_all): Remove.
7765 (fill_referenced_var_vec): Remove.
7766 (first_readonly_imm_use): Remove redundant gcc_assert.
7767 (phi_arg_index_from_use): Combine gcc_asserts.
7768 (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
7769 (first_imm_use_stmt): Remove redundant gcc_assert.
7770 * tree-cfg.c (verify_gimple_call): Verify function and chain
7771 operands. Verify arguments.
7772 (verify_types_in_gimple_stmt): Verify condition code and labels.
7773
7774 2010-01-07 Richard Guenther <rguenther@suse.de>
7775
7776 PR tree-optimization/42641
7777 * sese.c (rename_map_elt_info): Use the SSA name version, do
7778 not hash pointers.
7779
7780 2010-01-07 Jakub Jelinek <jakub@redhat.com>
7781
7782 PR tree-optimization/42625
7783 * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
7784 TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
7785
7786 2010-01-07 Duncan Sands <baldrick@free.fr>
7787
7788 * Makefile.in (PLUGIN_HEADERS): Add version.h.
7789
7790 2010-01-07 Uros Bizjak <ubizjak@gmail.com>
7791
7792 PR target/42511
7793 * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
7794 note itself is not function_invariant_p.
7795
7796 2009-01-07 Steven Bosscher <steven@gcc.gnu.org>
7797
7798 * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
7799 Do not add the DF_NOTE problem.
7800 * store-motion.c (execute_rtl_store_motion): Likewise.
7801
7802 2010-01-07 Martin Jambor <mjambor@suse.cz>
7803
7804 PR tree-optimization/42157
7805 * tree-sra.c (compare_access_positions): Stabilize sort if both
7806 accesses have integer types, return zero immediately if they are the
7807 same.
7808
7809 2010-01-06 Richard Henderson <rth@redhat.com>
7810
7811 PR middle-end/41883
7812 * haifa-sched.c (add_to_note_list): Merge into ...
7813 (concat_note_lists): ... here, and ...
7814 (unlink_other_notes, rm_other_notes): Merge into...
7815 (remove_notes): ... here. Create REG_SAVE_NOTEs for
7816 NOTE_INSN_EPILOGUE_BEG.
7817
7818 2010-01-06 Richard Guenther <rguenther@suse.de>
7819
7820 * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
7821 not inline regular functions into always-inline functions.
7822
7823 2010-01-06 Nick Clifton <nickc@redhat.com>
7824
7825 * config/rx/rx.h (enum rx_cpu_type): Add RX200.
7826 (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
7827 used together.
7828 (OVERRIDE_OPTIONS): Delete.
7829 (OPTIMIZATION_OPTIONS): Define.
7830 (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
7831 * config/rx/rx.c (rx_handle_option): Issue an error message if
7832 -mcpu=rx200 and -fpu are used together.
7833 (rx_set_optimization_options): New function. Issue an error
7834 message if an optimization attribute attempts to reset the FPU/
7835 math optimization pairing.
7836 * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
7837 * config/rx/rx.opt: Set the default to 32-bit doubles.
7838 * config/rx/t-rx: Add multilibs for -nofpu option.
7839 * doc/invoke.texi: Update documentation of RX options.
7840
7841 2010-01-06 Richard Guenther <rguenther@suse.de>
7842
7843 * tree-ssa-pre.c (name_to_id): New global.
7844 (alloc_expression_id): Simplify SSA name handling.
7845 (lookup_expression_id): Likewise.
7846 (init_pre): Zero name_to_id.
7847 (fini_pre): Free it.
7848
7849 2010-01-06 Uros Bizjak <ubizjak@gmail.com>
7850
7851 * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
7852
7853 2010-01-05 H.J. Lu <hongjiu.lu@intel.com>
7854
7855 PR target/42542
7856 * config/i386/sse.md (smaxv2di3): New.
7857 (umaxv2di3): Likewise.
7858 (sminv2di3): Likewise.
7859 (uminv2di3): Likewise.
7860
7861 2010-01-05 Eric Botcazou <ebotcazou@adacore.com>
7862
7863 PR target/42564
7864 * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
7865 * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
7866 (legitimize_tls_address): Likewise.
7867 (sparc_tls_referenced_p): Likewise.
7868 * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
7869 and adjust calls to legitimize_pic_address.
7870 (legitimate_constant_p) Use sparc_tls_referenced_p.
7871 (legitimate_pic_operand_p): Likewise.
7872 (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
7873 (sparc_tls_symbol_ref_1): Delete.
7874 (sparc_tls_referenced_p): Make static, recognize specific patterns.
7875 (legitimize_tls_address): Make static, handle CONST patterns.
7876 (legitimize_pic_address): Make static, remove unused parameter and
7877 adjust recursive calls.
7878 (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
7879 and adjust call to legitimize_pic_address.
7880 (sparc_output_mi_thunk): Likewise.
7881
7882 2010-01-05 Paolo Bonzini <bonzini@gnu.rg>
7883 H.J. Lu <hongjiu.lu@intel.com>
7884
7885 PR target/42542
7886 * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
7887 for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
7888 operands to make them signed.
7889
7890 Revert:
7891 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
7892
7893 PR target/42542
7894 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
7895 GTU to GT for V4SI and V2DI.
7896
7897 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
7898 (umin<mode>3): Removed.
7899 (uminv8hi3): New.
7900 (uminv4si3): Likewise.
7901
7902 2010-01-05 Martin Jambor <mjambor@suse.cz>
7903
7904 PR tree-optimization/42462
7905 * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
7906 current_function_decl to helper functions and macros.
7907
7908 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7909
7910 PR bootstrap/41771
7911 * flags.h: Don't include real.h.
7912 (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
7913 HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
7914 * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
7915 HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
7916 * dominance.c: Update copyright.
7917 * gimple.c (walk_gimple_op): Remove inline.
7918 * tree-ssa-reassoc.c: Include real.h.
7919 * Makefile.in (FLAGS_H): Remove $(REAL_H).
7920 (tree-ssa-reassoc.o): Depend on $(REAL_H).
7921
7922 2010-01-05 Nick Clifton <nickc@redhat.com>
7923
7924 * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
7925 register to push into the stack frame when the accumulator has to
7926 be saved during interrupts.
7927
7928 2010-01-05 Eric Fisher <joefoxreal@gmail.com>
7929
7930 * doc/invoke.texi: Remove the documentation about option
7931 -Wunreachable-code.
7932 * common.opt (Wunreachable-code): Preserved for backward
7933 compatibility.
7934 * tree-cfg.c: Remove the implementation of -Wunreachable-code.
7935 * opts.c (common_handle_option): Add OPT_Wunreachable_code to
7936 the backward compatibility flag section.
7937
7938 2010-01-05 Richard Guenther <rguenther@suse.de>
7939
7940 * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
7941
7942 2010-01-05 Jakub Jelinek <jakub@redhat.com>
7943
7944 PR other/42611
7945 * cfgexpand.c (expand_one_var): Diagnose too large variables.
7946
7947 PR tree-optimization/42508
7948 * tree-sra.c (convert_callers): Check for recursive call
7949 by comparing cgraph nodes instead of decls.
7950 (modify_function): Call ipa_modify_formal_parameters also
7951 on all same_body aliases.
7952
7953 * cgraphunit.c (cgraph_materialize_all_clones): Compare
7954 cgraph nodes when checking for same_body aliases.
7955
7956 2010-01-05 Richard Guenther <rguenther@suse.de>
7957
7958 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
7959 allocation and lookup.
7960 (get_or_alloc_expr_for_constant): Likewise.
7961 (phi_translate): Sink allocation.
7962
7963 2010-01-04 Richard Guenther <rguenther@suse.de>
7964
7965 * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
7966 a new entry only if needed.
7967 * tree-ssa-dom.c (lookup_avail_expr): Likewise.
7968 * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
7969 hashtable lookup.
7970 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
7971 the result array.
7972 (phi_translate): Handle CONSTANTs early.
7973
7974 2010-01-04 Martin Jambor <mjambor@suse.cz>
7975
7976 PR tree-optimization/42398
7977 * tree-sra.c (struct access): Removed flag grp_different_types.
7978 (dump_access): Do not dump the removed flag.
7979 (sort_and_splice_var_accesses): Do not set the removed flag.
7980 (sra_modify_expr): Check for type compatibility directly.
7981
7982 2010-01-04 Martin Jambor <mjambor@suse.cz>
7983
7984 PR tree-optimization/42366
7985 * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
7986 edges with variable number of parameters.
7987 * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
7988 flag instead of asserting it.
7989 (ipa_read_node_info): Read uses_analysis_done flag.
7990
7991 2010-01-04 Richard Guenther <rguenther@suse.de>
7992
7993 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
7994 iterative_hash_* as intended.
7995 (vn_reference_compute_hash): Likewise. Simplify hashing
7996 SSA names.
7997 (vn_reference_lookup_2): Likewise.
7998 (vn_nary_op_compute_hash): Likewise.
7999 (vn_phi_compute_hash): Likewise.
8000 (expressions_equal_p): Remove strange code.
8001 * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
8002 (pre_expr_hash): Likewise. Simplify hashing SSA names.
8003 (bitmap_insert_into_set_1): Take value-id as parameter.
8004 (add_to_value): Pass it.
8005 (bitmap_insert_into_set): Likewise.
8006 (bitmap_value_insert_into_set): Likewise. Remove redundant check.
8007
8008 2010-01-04 Jakub Jelinek <jakub@redhat.com>
8009
8010 PR driver/42442
8011 * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
8012 (do_self_spec): For switches with SWITCH_IGNORE set set also
8013 SWITCH_IGNORE_PERMANENTLY.
8014 (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
8015 of SWITCH_IGNORE.
8016
8017 2010-01-04 Rafael Avila de Espindola <espindola@google.com>
8018
8019 * lto-streamer-out.c (output_unreferenced_globals): Output the full
8020 tree of an unreferenced global var.
8021
8022 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
8023
8024 PR target/42542
8025 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
8026 GTU to GT for V4SI and V2DI.
8027
8028 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
8029 (umin<mode>3): Removed.
8030 (uminv8hi3): New.
8031 (uminv4si3): Likewise.
8032
8033 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
8034
8035 PR lto/42581
8036 * collect2.c (main): Turn on trace in collect2 if -v is passed
8037 to gcc with LTO.
8038
8039 2010-01-03 Jerry Quinn <jlquinn@optonline.net>
8040
8041 * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR. Update
8042 description of expression operand.
8043
8044 2010-01-03 Andrew Jenner <andrew@codesourcery.com>
8045
8046 * configure.ac: Add install-html to target_list for Make-hooks.
8047 * configure: Regenerate.
8048 * fortran/Make-lang.in (F95_HTMLFILES): New.
8049 (fortran.html): Use it.
8050 (fortran.install-html): New.
8051 * Makefile.in (install-html): Add lang.install-html.
8052 * java/Make-lang.in (JAVA_HTMLFILES): New.
8053 (java.html): Use it.
8054 (java.install-html): New.
8055 * objc/Make-lang.in (objc.install-html): New.
8056 * objcp/Make-lang.in (obj-c++.install-html): New.
8057 * cp/Make-lang.in (c++.install-html): New.
8058 * ada/gcc-interface/Make-lang.in (ada.install-html): New.
8059 * lto/Make-lang.in (lto.install-html): New.
8060
8061 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
8062
8063 PR lto/42520
8064 * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
8065
8066 2009-01-03 Steven Bosscher <steven@gcc.gnu.org>
8067
8068 PR rtl-optimization/41862
8069 * store-motion.c (store_killed_in_insn, compute_store_table,
8070 remove_reachable_equiv_notes, replace_store_insn,
8071 build_store_vectors): Ignore all DEBUG_INSNs.
8072
8073 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
8074
8075 PR lto/41564
8076 * common.opt: Add dumpdir.
8077
8078 * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
8079 isn't specified.
8080 (option_map): Add --dumpdir.
8081
8082 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
8083
8084 * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
8085
8086 * opts.c (decode_options): Try dump_dir_name first if
8087 dump_base_name isn't an absolute path.
8088 (common_handle_option): Handle OPT_dumpdir.
8089
8090 * toplev.c (dump_dir_name): New.
8091 (print_switch_values): Also ignore -dumpdir.
8092
8093 * toplev.h (dump_dir_name): New.
8094
8095 2010-01-03 Richard Guenther <rguenther@suse.de>
8096
8097 PR tree-optimization/42589
8098 * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
8099 double-word expansion of bswap32.
8100
8101 2010-01-03 Steven Bosscher <steven@gcc.gnu.org>
8102
8103 * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
8104 with BLOCK_FOR_INSN.
8105 * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
8106 * ifcvt.c (noce_get_alt_condition, noce_try_abs,
8107 noce_process_if_block): Likewise.
8108 * gcse.c (compute_local_properties, insert_expr_in_table,
8109 insert_set_in_table, canon_list_insert, find_avail_set,
8110 pre_insert_copy_insn): Likewise.
8111
8112 * basic-block.h (BLOCK_NUM): Move from here...
8113 * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
8114
8115 2010-01-03 Richard Guenther <rguenther@suse.de>
8116
8117 PR tree-optimization/42438
8118 * tree-ssa-pre.c (struct bb_bitmap_sets): Add
8119 contains_may_not_return_call flag.
8120 (BB_MAY_NOTRETURN): New.
8121 (valid_in_sets): Trapping nary operations are not valid
8122 in blocks that may not return.
8123 (insert_into_preds_of_block): Remove check for trapping expressions.
8124 (compute_avail): Compute also BB_MAY_NOTRETURN.
8125
8126 2010-01-03 Gerald Pfeifer <gerald@pfeifer.com>
8127
8128 * doc/invoke.texi: Add 2010 to copyright years.
8129
8130 2010-01-03 Eric Botcazou <ebotcazou@adacore.com>
8131
8132 * config/sparc/sparc.c: Fix formatting nits.
8133
8134 2010-01-02 Gerald Pfeifer <gerald@pfeifer.com>
8135 Alexander Monakov <amonakov@ispras.ru>
8136
8137 * doc/invoke.texi (Optimize Options): Reword introduction a bit.
8138
8139 2010-01-02 Richard Guenther <rguenther@suse.de>
8140
8141 PR middle-end/42577
8142 * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
8143 (simplify_switch_using_ranges): Mark to be removed edges
8144 as non-executable.
8145
8146 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8147
8148 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
8149
8150 * collect2.c (scan_libraries): Add missing argument in call to
8151 scan_prog_file.
8152
8153 2010-01-02 Uros Bizjak <ubizjak@gmail.com>
8154
8155 PR target/42448
8156 * config/alpha/predicates.md (aligned_memory_operand): Return false
8157 for CQImode.
8158 (unaligned_memory_operand): Return true for CQImode.
8159 * config/alpha/alpha.c (get_aligned_mem): Assert that location
8160 doesn not cross aligned SImode word boundary.
8161
8162 2010-01-02 Anatoly Sokolov <aesok@post.ru>
8163
8164 * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
8165 Remove.
8166 * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
8167 avr_change_section, avr_reg_class_from_letter) : Remove declaration.
8168
8169 2010-01-02 Richard Guenther <rguenther@suse.de>
8170
8171 PR lto/41597
8172 * toplev.c (compile_file): Emit LTO marker properly. Change
8173 it to __gnu_lto_v1.
8174 * collect2.c (scan_prog_file): Adjust for changed LTO marker.
8175
8176 2010-01-01 Richard Guenther <rguenther@suse.de>
8177
8178 PR debug/42455
8179 * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
8180
8181 2010-01-01 Richard Guenther <rguenther@suse.de>
8182
8183 PR c/42570
8184 * c-decl.c (grokdeclarator): For zero-size arrays force
8185 structural equality checks as layout_type does.
8186
8187 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
8188
8189 * builtins.c: Update copyright to 2010.
8190
8191 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
8192
8193 PR lto/42531
8194 * lto-streamer-out.c (produce_asm): Revert the last change.
8195 (copy_function): Likewise.
8196
8197 * lto-streamer.c (lto_get_section_name): Skip any leading
8198 asterisk in name.
8199
8200 2010-01-01 Richard Guenther <rguenther@suse.de>
8201
8202 PR middle-end/42559
8203 * builtins.c (get_object_alignment): Do not use DECL_ALIGN
8204 for LABEL_DECLs.
8205
8206 \f
8207 Copyright (C) 2010 Free Software Foundation, Inc.
8208
8209 Copying and distribution of this file, with or without modification,
8210 are permitted in any medium without royalty provided the copyright
8211 notice and this notice are preserved.
This page took 0.403071 seconds and 5 git commands to generate.