1 2009-05-04 Richard Guenther <rguenther@suse.de>
4 * builtins.c (fold_builtin_memory_op): Do not decay to element
5 type if the size matches the whole array.
7 2009-05-04 Kazu Hirata <kazu@codesourcery.com>
9 * expmed.c (synth_mult): When trying out a shift, pass the result
12 2009-05-04 Kazu Hirata <kazu@codesourcery.com>
14 * expmed.c (shiftsub_cost): Rename to shiftsub0_cost.
15 (shiftsub1_cost): New.
16 (init_expmed): Compute shiftsub1_cost.
17 (synth_mult): Optimize multiplications by constants of the form
18 -(2^^m-1) for some constant positive integer m.
20 2009-05-03 Richard Guenther <rguenther@suse.de>
23 * c-typeck.c (array_to_pointer_conversion): Do not built
24 ADDR_EXPRs of arrays of pointer-to-element type.
25 * c-gimplify.c (c_gimplify_expr): Revert change fixing
26 up wrong ADDR_EXPRs after-the-fact.
27 * c-common.c (strict_aliasing_warning): Strip pointer
28 conversions for obtaining the original type.
29 * builtins.c (fold_builtin_memset): Handle array types.
30 (fold_builtin_memory_op): Handle folded POINTER_PLUS_EXPRs
33 2009-05-03 Richard Guenther <rguenther@suse.de>
36 * tree-ssa.c (useless_type_conversion_p_1): Use get_deref_alias_set.
37 Do not lose casts from array types with unknown extent to array
38 types with known extent.
39 * tree-ssa-copy.c (may_propagate_copy): Remove hack checking for
40 alias set compatibility.
42 2009-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
44 * flags.h (extra_warnings): Delete.
45 * toplev.c (process_options): Handle Wuninitialized here.
46 * opts.c (extra_warnings): Delete.
48 (common_handle_option): -Wextra can be handled automatically.
49 * c-opts.c (c_common_handle_option): Delete obsolete code.
50 (c_common_post_options): Simplify comment.
51 * common.opt (W): Add Var.
53 (Wuninitialized): Initialize to -1.
55 2009-05-03 Adam Nemet <anemet@caviumnetworks.com>
56 Richard Guenther <rguenther@suse.de>
58 * expr.c (get_def_for_expr): New function.
59 (expand_expr_real_1) <PLUS_EXPR, MINUS_EXPR>: Adjust to work with
60 SSA rather than trees.
61 <MULT_EXPR>: Likewise. Use subexp0 and subexp1 instead of
62 TREE_OPERAND (exp, 0) and TREE_OPERAND (exp, 1).
64 2009-05-03 Joseph Myers <joseph@codesourcery.com>
66 * c-common.c (reswords): Add _Imaginary.
67 * c-common.c (enum rid): Add RID_IMAGINARY.
69 2009-05-03 Paolo Bonzini <bonzini@gnu.org>
71 * tree.h (TYPE_VECTOR_OPAQUE): Fix documentation.
72 Patch by Richard Guenther.
74 2009-05-03 Anatoly Sokolov <aesok@post.ru>
76 * defaults.h (FRAME_POINTER_REQUIRED): Provide default.
77 * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
78 * config/alpha/alpha.h (FRAME_POINTER_REQUIRED): Delete.
79 * config/s390/s390.h (FRAME_POINTER_REQUIRED): Delete.
80 * config/spu/spu.h (FRAME_POINTER_REQUIRED): Delete.
81 * config/sh/sh.h (FRAME_POINTER_REQUIRED): Delete.
82 * config/pdp11/pdp11.h (FRAME_POINTER_REQUIRED): Delete.
83 * config/stormy16/stormy16.h (FRAME_POINTER_REQUIRED): Delete.
84 * config/m68hc11/m68hc11.h (FRAME_POINTER_REQUIRED): Delete.
85 * config/iq2000/iq2000.h (FRAME_POINTER_REQUIRED): Delete.
86 * config/mn10300/mn10300.h (FRAME_POINTER_REQUIRED): Delete.
87 * config/ia64/ia64.h (FRAME_POINTER_REQUIRED): Delete.
88 * config/m68k/m68k.h (FRAME_POINTER_REQUIRED): Delete.
89 * config/rs6000/rs6000.h (FRAME_POINTER_REQUIRED): Delete.
90 * config/picochip/picochip.h (FRAME_POINTER_REQUIRED): Delete.
91 * config/mcore/mcore.h (FRAME_POINTER_REQUIRED): Delete.
92 * config/h8300/h8300.h (FRAME_POINTER_REQUIRED): Delete.
93 * config/v850/v850.h (FRAME_POINTER_REQUIRED): Delete.
95 2009-05-02 Richard Guenther <rguenther@suse.de>
97 PR tree-optimization/39940
98 * tree-ssa-pre.c (eliminate): Make sure we may propagate before
101 2009-05-02 Richard Guenther <rguenther@suse.de>
104 * tree-ssa.c (execute_update_addresses_taken): Properly check
105 if we can mark a variable DECL_GIMPLE_REG_P.
106 * gimple.c (is_gimple_reg): Re-order check for DECL_GIMPLE_REG_P
107 back to the end of the function.
108 (is_gimple_reg_type): Remove complex type special casing.
109 * gimplify.c (gimplify_bind_expr): Do not set DECL_GIMPLE_REG_P
112 2009-05-02 Ben Elliston <bje@au.ibm.com>
114 * doc/collect2.texi (Collect2): Document search path behaviour
115 when configured with --with-ld.
117 2009-05-02 Jan Hubicka <jh@suse.cz>
119 * tree-ssa-coalesce.c (coalesce_cost): Do not take ciritical
120 parameter; update callers.
121 (coalesce_cost_edge): EH edges are costier because they needs splitting
122 even if not critical and even more costier when there are multiple
125 2009-05-02 Jan Hubicka <jh@suse.cz>
127 * except.c (remove_eh_handler_and_replace): Handle updating after
130 2009-05-02 Eric Botcazou <ebotcazou@adacore.com>
132 * store-motion.c (compute_store_table): Add ENABLE_CHECKING guard.
134 2009-05-02 Steven Bosscher <steven@gcc.gnu.org>
136 * varasm.c: Do not include c-pragma.h.
137 * attribs.c: Do not incude c-common.h.
139 2009-05-01 Michael Matz <matz@suse.de>
141 * calls.c (initialize_argument_information): Handle SSA names like
142 decls with a non MEM_P DECL_RTL.
144 2009-05-01 Steven Bosscher <steven@gcc.gnu.org>
146 * ipa-reference.c: Do not include c-common.h, include splay-tree.h.
147 * ipa-utils.c: Likewise.
148 * ipa-type-escape.c: Likewise.
149 * cgraphunit.c Do not include c-common.h.
150 * ipa-pure-const.c: Likewise.
151 * tree-if-conv.c: Likewise.
152 * matrix-reorg.c: Do not include c-common.h and c-tree.h.
153 * ipa-struct-reorg.c: Likewise.
154 * tree-nomudflap.c: Likewise.
155 * tree-ssa-structalias.c: Likewise.
157 2009-05-01 Steven Bosscher <steven@gcc.gnu.org>
159 * store-motion.c: Many cleanups to make this pass a first-class
160 citizen instead of an appendix to gcse load motion. Add TODO list
161 to make this pass faster/cleaner/better.
163 (struct ls_expr): Post gcse.c-split cleanups.
164 Rename to st_expr. Rename "loads" field to "antic_stores". Rename
165 "stores" field to "avail_stores".
166 (pre_ldst_mems): Rename to store_motion_mems.
167 (pre_ldst_table): Rename to store_motion_mems_table.
168 (pre_ldst_expr_hash): Rename to pre_st_expr_hash, update users.
169 (pre_ldst_expr_eq): Rename to pre_st_expr_eq, update users.
170 (ldst_entry): Rename to st_expr_entry, update users.
171 (free_ldst_entry): Rename to free_st_expr_entry, update users.
172 (free_ldst_mems): Rename to free_store_motion_mems, update users.
173 (enumerate_ldsts): Rename to enumerate_store_motion_mems, update caller.
174 (first_ls_expr): Rename to first_st_expr, update users.
175 (next_ls_expr): Rename to next_st_expr, update users.
176 (print_ldst_list): Rename to print_store_motion_mems. Print names of
177 fields properly for store motion instead of names inherited from load
179 (ANTIC_STORE_LIST, AVAIL_STORE_LIST): Remove.
180 (LAST_AVAIL_CHECK_FAILURE): Explain what this is. Undefine when we
183 (ae_kill): Rename to st_kill, update users.
184 (ae_gen): Rename to st_avloc, update users.
185 (transp): Rename to st_transp, update users.
186 (pre_insert_map): Rename to st_insert_map, update users.
187 (pre_delete_map): Rename to st_delete_map, update users.
188 (insert_store, build_store_vectors, free_store_memory,
189 one_store_motion_pass): Update for abovementioned changes.
191 (gcse_subst_count, gcse_create_count): Remove.
192 (one_store_motion_pass): New statistics counters "n_stores_deleted"
193 and "n_stores_created", local variables.
195 (extract_mentioned_regs, extract_mentioned_regs_1): Rewrite to
198 (regvec, compute_store_table_current_insn): Remove.
199 (reg_set_info, reg_clear_last_set): Remove.
200 (compute_store_table): Use DF caches instead of local dataflow
203 2009-05-01 Joseph Myers <joseph@codesourcery.com>
205 * c-objc-common.c (c_tree_printer): Print identifiers with
206 pp_identifier, not pp_string. Mark "({anonymous})" for
208 * c-pretty-print.c (pp_c_ws_string): New.
209 (pp_c_cv_qualifier, pp_c_type_specifier,
210 pp_c_specifier_qualifier_list, pp_c_parameter_type_list,
211 pp_c_storage_class_specifier, pp_c_function_specifier,
212 pp_c_attributes, pp_c_bool_constant, pp_c_constant,
213 pp_c_primary_expression, pp_c_postfix_expression,
214 pp_c_unary_expression, pp_c_shift_expression,
215 pp_c_relational_expression, pp_c_equality_expression,
216 pp_c_logical_and_expression, pp_c_logical_or_expression): Mostly
217 use pp_string and pp_c_ws_string in place of pp_identifier and
218 pp_c_identifier for non-identifiers. Mark English strings for
220 * c-pretty-print.h (pp_c_ws_string): Declare.
222 2009-04-30 Paul Pluzhnikov <ppluzhnikov@google.com>
223 Roland McGrath <roland@redhat.com>
225 * configure.ac (HAVE_LD_BUILDID): New check for ld --build-id
227 (ENABLE_LD_BUILDID): New configuration option.
228 * gcc.c [HAVE_LD_BUILDID and ENABLE_LD_BUILDID]
229 (LINK_BUILDID_SPEC): New macro.
230 (init_spec): If defined, prepend it between LINK_EH_SPEC and
232 * doc/install.texi: Document --enable-linker-build-id option.
233 * configure: Rebuild.
234 * config.in: Rebuild.
236 2009-04-30 Adam Nemet <anemet@caviumnetworks.com>
238 * config/mips/mips.h (FRAME_GROWS_DOWNWARD,
239 MIPS_GP_SAVE_AREA_SIZE): Define new macros.
240 (STARTING_FRAME_OFFSET): Return 0 if FRAME_GROWS_DOWNWARD. Use
241 MIPS_GP_SAVE_AREA_SIZE.
242 * config/mips/mips.c (struct mips_frame_info): Update comment
243 before arg_pointer_offset and hard_frame_pointer_offset.
244 (mips_compute_frame_info): Update diagram before function: to
245 correctly use stack_pointer_rtx for fp_sp_offset and gp_sp_offset, to
246 indicate the position of frame_pointer_rtx with -fstack-protector and
247 to show args_size. Don't allocate cprestore area for leaf functions
248 if FRAME_GROWS_DOWNWARD. Use MIPS_GP_SAVE_AREA_SIZE to set
250 (mips_initial_elimination_offset): Update for FRAME_GROWS_DOWNWARD.
252 2009-04-30 Michael Matz <matz@suse.de>
254 PR tree-optimization/39955
255 * config/rs6000/rs6000.c (rs6000_check_sdmode): Also check SSA_NAMEs.
257 2009-04-30 Dave Korn <dave.korn.cygwin@gmail.com>
259 * ira.c (setup_cover_and_important_classes): Use safe macro
260 REG_CLASS_FOR_CONSTRAINT instead of calling regclass_for_constraint
262 * genpreds.c (write_tm_preds_h): Output suitable definition of
263 REG_CLASS_FOR_CONSTRAINT.
265 2009-04-30 Rafael Avila de Espindola <espindola@google.com>
267 * alloc-pool.c (alloc_pool_descriptor): Use an insert_opion value
269 * bitmap.c (bitmap_descriptor): Likewise.
270 * ggc-common.c (loc_descriptor): Likewise.
271 * varray.c (varray_descriptor): Likewise.
272 * vec.c (vec_descriptor): Likewise.
274 2009-04-30 Eric Botcazou <ebotcazou@adacore.com>
276 * Makefile.in (dce.o): Add $(EXCEPT_H).
277 * dce.c: Include except.h and delete redundant vector definitions.
278 (deletable_insn_p): Return false for non-call insns that can throw
281 2009-04-30 Steven Bosscher <steven@gcc.gnu.org>
283 * gcse.c (ae_gen): Remove.
284 (can_assign_to_reg_p): Rename to can_assign_to_reg_without_clobbers_p
285 and make non-static function to make it available in store-motion.c.
286 Update call sites with search-and-replace.
287 (enumerate_ldsts, reg_set_info, reg_clear_last_set, store_ops_ok,
288 extract_mentioned_regs, extract_mentioned_regs_helper,
289 find_moveable_store, compute_store_table, load_kills_store, find_loads,
290 store_killed_in_insn, store_killed_after, store_killed_before,
291 build_store_vectors, insert_insn_start_basic_block, insert-store,
292 remove_reachable_equiv_notes, replace_store_insn, delete_store,
293 free_store_memory, one_store_motion_pass, gate_rtl_store_motion,
294 execute_rtl_store_motion, pass_rtl_store_motion): Move to...
295 * store-motion.c: ...new file. Also copy data structures from gcse.c
296 and clean up to remove parts not used by store motion.
297 * rtl.h (can_assign_to_reg_without_clobbers_p): Add prototype.
298 * Makefile.in (store-motion.o): New rule. Add to OBJS-common.
300 2009-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
303 * config/arm/arm.h (FUNCTION_BOUNDARY): Set to 16 for thumb
304 when optimizing for size.
306 2009-04-30 Hans-Peter Nilsson <hp@axis.com>
308 * gcse.c (gcse_constant_p): Fix typo in last change.
310 2009-04-30 Rafael Avila de Espindola <espindola@google.com>
312 * plugin.c: Include plugin-version.h only if ENABLE_PLUGIN is defined.
314 2009-04-30 Andreas Krebbel <krebbel1@de.ibm.com>
316 * gcse.c (gcse_constant_p): Make sure the constant is sharable.
318 2009-04-29 James E. Wilson <wilson@codesourcery.com>
320 * config/mips/mips.c (mips_add_offset): Use gen_int_mode for
321 CONST_HIGH_PART result.
323 2009-04-29 Anatoly Sokolov <aesok@post.ru>
325 * config/avr/avr.c (initial_elimination_offset): Rename to
326 avr_initial_elimination_offset.
327 (frame_pointer_required_p): Rename to avr_frame_pointer_required_p,
328 change return type to bool.
329 (avr_can_eliminate): New function.
330 * config/avr/avr.h (CAN_ELIMINATE): Use avr_can_eliminate.
331 (FRAME_POINTER_REQUIRED): Use avr_frame_pointer_required_p.
332 (INITIAL_ELIMINATION_OFFSET): Use avr_initial_elimination_offset.
333 * config/avr/avr-protos.h (initial_elimination_offset) : Rename to
334 avr_initial_elimination_offset.
335 (frame_pointer_required_p): Rename to avr_frame_pointer_required_p.
336 (avr_initial_elimination_offset): Define.
338 2009-04-29 Eric Botcazou <ebotcazou@adacore.com>
339 Steven Bosscher <steven@gcc.gnu.org>
341 PR rtl-optimization/39938
342 * Makefile.in (cfgrtl.o): Add $(INSN_ATTR_H).
343 * cfgrtl.c: Include insn-attr.h.
344 (rest_of_pass_free_cfg): New function.
345 (pass_free_cfg): Use rest_of_pass_free_cfg as execute function.
346 * resource.c (init_resource_info): Remove call to df_analyze.
348 2009-04-29 Richard Guenther <rguenther@suse.de>
351 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Only
352 allow conversion to signed integers.
354 2009-04-29 Richard Guenther <rguenther@suse.de>
356 * tree-cfg.c (verify_gimple_assign_binary): Allow vector
357 shifts of floating point vectors if the shift amount is
358 a constant multiple of the element size.
360 2009-04-29 Andreas Krebbel <krebbel1@de.ibm.com>
361 Michael Matz <matz@suse.de>
365 * tree-outof-ssa.c (emit_partition_copy): New function.
366 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
367 insert_part_to_rtx_on_edge): Perform the partition base var
368 copy using emit_partition_copy.
369 (insert_value_copy_on_edge): Convert constants to the right mode.
370 (insert_rtx_to_part_on_edge): Add UNSIGNEDSRCP parameter.
371 (elim_create): Pass the sign of the src to insert_rtx_to_part_on_edge.
373 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
375 * config/bfin/bfin.c (bfin_optimize_loop): If we need a scratch reg,
376 scan backwards to try to find a constant to initialize it.
378 * config/bfin/bfin.c (bfin_optimize_loop): When looking for the last
379 insn before the loop_end instruction, don't look past labels.
381 2009-04-29 Richard Guenther <rguenther@suse.de>
384 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do not
385 loose type conversions.
386 (forward_propagate_addr_expr): Fix tuplification bug. Remove
387 stmts only if there are no uses of its definition.
389 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
391 * config/bfin/bfin.h (splitting_loops): Declare.
392 * config/bfin/bfin-protos.h (WA_05000257, WA_05000283, WA_05000315):
393 Reorder bit definitions to be ascending.
394 (WA_LOAD_LCREGS, ENABLE_WA_LOAD_LCREGS): New macros.
395 * config/bfin/bfin.c (splitting_loops): New variable.
396 (bfin_cpus): Add WA_LOAD_LCREGS as needed.
397 (struct loop_info): Remove members INIT and LOOP_INIT.
398 (bfin_optimize_loop): Don't set them. Reorder the code that generates
399 the LSETUP sequence. Allow LC to be loaded from any register, but also
400 add a case to push/pop a PREG scratch if ENABLE_WA_LOAD_LCREGS.
401 (bfin_reorg_loops): When done, split all BB_ENDs with splitting_loops
403 * config/bfin/bfin.md (loop_end splitter): Use splitting_loops instead
406 * config/bfin/bfin.md (movsi_insn): Refine constraints.
408 2009-04-29 Rafael Avila de Espindola <espindola@google.com>
410 * Makefile.in (PLUGIN_VERSION_H): New.
411 (OBJS-common): Remove plugin-version.o.
412 (plugin.o): Depend on (PLUGIN_VERSION_H).
413 (plugin-version.o): Remove.
414 * configure: Regenerate
415 * configure.ac: Create plugin-version.h.
416 * gcc-plugin.h (plugin_gcc_version): Remove.
417 (plugin_default_version_check): Change signature.
418 * plugin-version.c: Remove.
419 * plugin.c: Include plugin-version.h.
420 (str_plugin_gcc_version_name): Remove.
421 (try_init_one_plugin): Pass gcc version to plugin_init.
422 (plugin_default_version_check): Both gcc and plugin versions are now
425 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
427 * config/bfin/bfin.c (bfin_optimize_loop): Unify handling of
428 problematic last insns. Test for TYPE_CALL rather than CALL_P.
429 Remove special case testing for last insn of inner loops. Don't fail if
430 the loop ends with a jump, emit an extra nop instead.
432 * config/bfin/bfin.c (bfin_register_move_cost): Test for subsets of
433 DREGS rather than comparing directly. Remove code that tries to
434 account for latencies.
436 2009-04-29 Richard Guenther <rguenther@suse.de>
438 PR tree-optimization/39941
439 * tree-ssa-pre.c (eliminate): Schedule update-ssa after
440 eliminating an indirect call.
442 2009-04-29 Richard Guenther <rguenther@suse.de>
444 * tree-cfg.c (verify_types_in_gimple_reference): Add require_lvalue
445 parameter. Allow invariants as base if !require_lvalue.
446 (verify_gimple_assign_single): Adjust.
448 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
450 * config/bfin/bfin.md (sp_or_sm, spm_string, spm_name): New macro.
451 (ss<spm_name>hi3, ss<spm_name>hi3_parts, ss<spm_name>hi3_low_parts,
452 ss<spm_name_hi3_high_parts): New patterns, replacing ssaddhi3, ssubhi3,
453 ssaddhi3_parts and sssubhi3_parts.
454 (flag_mulhi3_parts): Produce a HImode output rather than trying to set
456 * config/bfin/bfin.c (bfin_expand_builtin, case BFIN_BUILTIN_CPLX_SQU):
459 2009-04-28 Richard Guenther <rguenther@suse.de>
461 * tree-vect-loop.c (get_initial_def_for_induction): Use
462 correct types for pointer increment.
464 2009-04-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
466 * toplev.c (print_version): Update GMP version string calculation.
468 2009-04-28 Eric Botcazou <ebotcazou@adacore.com>
470 PR rtl-optimization/39938
471 * resource.c (init_resource_info): Add call to df_analyze.
473 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
475 * config/alpha/alpha.md (usegp): Cast the result of
476 alpha_find_lo_sum_using_gp to enum attr_usegp.
477 * config/alpha/alpha.c (override_options): Remove end-of-structure
478 marker element from cpu_table. Use array size of cpu_table to handle
479 -mcpu and -mtune options.
480 (tls_symbolic_operand_type): Change 0 to TLS_MODEL_NONE.
482 2009-04-28 Joseph Myers <joseph@codesourcery.com>
484 * config.gcc (powerpc*-*-* | rs6000-*-*): Add
485 rs6000/option-defaults.h to tm_file. Support cpu_32, cpu_64,
487 * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
489 * config/rs6000/rs6000.h (OPTION_DEFAULT_SPECS): Move to ...
490 * config/rs6000/option-defaults.h: ... here. New file.
491 (OPT_64, OPT_32): Define.
492 (MASK_64BIT): Define to 0 if not already defined.
493 (OPT_ARCH64, OPT_ARCH32): Define.
494 (OPTION_DEFAULT_SPECS): Add entries for cpu_32, cpu_64, tune_32
497 2009-04-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
499 * config/arm/arm.c (arm_override_options): Emit error on using
502 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
504 PR rtl-optimization/39914
505 * ira-conflicts.c (ira_build_conflicts): Prohibit call used
506 registers for allocnos created from user-defined variables only
509 2009-04-28 Richard Guenther <rguenther@suse.de>
512 * fold-const.c (fold_binary): Use distribute_real_division only
515 2009-04-28 Steve Ellcey <sje@cup.hp.com>
517 * config.gcc (hppa*64*-*-hpux11*): Set use_gcc_stdint and
518 add hpux-stdint.h to tm_file.
519 (hppa[12]*-*-hpux11*): Ditto.
520 (ia64*-*-hpux*): Ditto.
521 * config/hpux-stdint.h: New.
522 * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Set
523 __STDC_EXT__ for all compiles.
524 * config/pa/pa-hpux.h: Ditto.
525 * config/pa/pa-hpux10.h: Ditto.
526 * config/pa/pa-hpux11.h: Ditto.
528 2009-04-28 Catherine Moore <clm@codesourcery.com>
530 * debug.h (set_name): Add comment.
532 2009-04-28 Andrew Pinski <pinskia@gmail.com>
535 * config/darwin.c (machopic_gen_offset): Check
536 currently_expanding_to_rtl if current_ir_type returns IR_GIMPLE.
537 * config/arm/arm.c (require_pic_register): Likewise.
539 2009-04-28 Paolo Bonzini <bonzini@gnu.org>
541 * config/m32c/m32c.c (TARGET_PROMOTE_FUNCTION_RETURN,
542 m32c_promote_function_return, TARGET_PROMOTE_PROTOTYPES,
543 m32c_promote_prototypes): Delete.
545 2009-04-28 Michael Matz <matz@suse.de>
548 * tree-outof-ssa.c (insert_value_copy_on_edge): Don't convert
551 2009-04-28 Richard Guenther <rguenther@suse.de>
553 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Fix type error.
555 2009-04-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
557 * config/arm/arm-cores.def: Add support for arm1156t2f-s.
558 * doc/invoke.texi (ARM Options): Document support for arm1156t2f-s.
559 * config/arm/arm-tune.md: Regenerate.
561 2009-04-28 Alexander Monakov <amonakov@ispras.ru>
563 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not attempt to delete a
564 block if there are complex incoming edges.
565 (sel_merge_blocks): Remove useless assert.
566 (sel_redirect_edge_and_branch): Check that edge was redirected.
567 * sel-sched-ir.h (_eligible_successor_edge_p): Remove assert.
568 (sel_find_rgns): Delete declaration.
569 * sel-sched.c (purge_empty_blocks): Attempt to remove first block of
570 the region when it is not a preheader.
572 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
575 * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Sync with elfos.h
577 2009-04-28 Richard Guenther <rguenther@suse.de>
579 * tree.h (SSA_NAME_VALUE): Remove.
580 (struct tree_ssa_name): Remove value_handle member.
581 * tree-vrp.c (execute_vrp): Initialize/free the value-handle
582 array for jump threading.
583 * tree-ssa-propagate.c (ssa_prop_init): Do not initialize
585 * print-tree.c (print_node): Do not dump SSA_NAME_VALUEs.
586 * tree-flow.h (threadedge_initialize_values): Declare.
587 (threadedge_finalize_values): Likewise.
588 * tree-ssa-threadedge.c (ssa_name_values): New global variable.
589 (SSA_NAME_VALUE): Define.
590 (threadedge_initialize_values): New function.
591 (threadedge_finalize_values): Likewise.
592 * tree-ssa-dom.c (ssa_name_values): New global variable.
593 (SSA_NAME_VALUE): Define.
594 (tree_ssa_dominator_optimize): Initialize/free the value-handle array.
596 2009-04-28 Ira Rosen <irar@il.ibm.com>
598 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
599 Use REPORT_VECTORIZED_LOCATIONS instead
600 REPORT_VECTORIZED_LOOPS.
601 * tree-vectorizer.c (vect_verbosity_level): Make static.
602 (vect_loop_location): Rename to vect_location.
603 (vect_set_verbosity_level): Update comment.
604 (vect_set_dump_settings): Use REPORT_VECTORIZED_LOCATIONS
606 (vectorize_loops): Fix comment. Use REPORT_VECTORIZED_LOCATIONS
607 and vect_location. Use REPORT_UNVECTORIZED_LOCATIONS
608 instead REPORT_UNVECTORIZED_LOOPS.
609 * tree-vectorizer.h (enum vect_def_type): Rename vect_invariant_def and
610 vect_loop_def to vect_external_def and vect_internal_def.
611 (enum verbosity_levels): Rename REPORT_VECTORIZED_LOOPS
612 and REPORT_UNVECTORIZED_LOOPS to REPORT_VECTORIZED_LOCATIONS and
613 REPORT_UNVECTORIZED_LOCATIONS.
614 (enum vect_relevant): Update comment. Rename vect_unused_in_loop
615 and vect_used_in_loop and to vect_unused_in_scope and
617 (STMT_VINFO_RELEVANT_P): Use vect_unused_in_scope.
618 (vect_verbosity_level): Remove declaration.
619 (vect_analyze_operations): Likewise.
620 (vect_analyze_stmt): Declare.
621 * tree-vect-loop.c (vect_determine_vectorization_factor): Use
622 REPORT_UNVECTORIZED_LOCATIONS.
623 (vect_get_loop_niters): Fix indentation.
624 (vect_analyze_loop_form): Use REPORT_UNVECTORIZED_LOCATIONS.
625 (vect_analyze_loop_operations): New function.
626 (vect_analyze_loop): Call vect_analyze_loop_operations instead of
627 vect_analyze_operations.
628 (vect_is_simple_reduction): Use new names.
629 (vectorizable_live_operation, vect_transform_loop): Likewise.
630 * tree-vect-data-refs.c (vect_check_interleaving): Add a return value to
631 specify whether the data references can be a part of interleaving chain.
632 (vect_analyze_data_ref_dependence): Use new names.
633 (vect_analyze_data_refs_alignment, vect_analyze_data_refs): Likewise.
634 (vect_create_addr_base_for_vector_ref): Remove redundant code.
635 * tree-vect-patterns.c (widened_name_p): Use new names.
636 (vect_recog_dot_prod_pattern): Likewise.
637 * tree-vect-stmts.c (vect_stmt_relevant_p): Use new names.
638 (process_use, vect_mark_stmts_to_be_vectorized,
639 vect_model_simple_cost, vect_model_store_cost,
640 vect_get_vec_def_for_operand, vect_get_vec_def_for_stmt_copy,
641 vectorizable_call, vectorizable_conversion, vectorizable_assignment,
642 vectorizable_operation, vectorizable_type_demotion,
643 vectorizable_type_promotion, vectorizable_store, vectorizable_load,
644 vectorizable_condition): Likewise.
645 (vect_analyze_operations): Split into vect_analyze_loop_operations
647 (vect_analyze_stmt): ... new function.
648 (new_stmt_vec_info): Use new names.
649 (vect_is_simple_use): Use new names and fix comment.
650 * tree-vect-slp.c (vect_get_and_check_slp_defs): Use new names.
651 (vect_build_slp_tree, vect_analyze_slp, vect_schedule_slp): Likewise.
653 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
656 * config/i386/i386.c (print_operand) ['Z']: Handle floating point
657 and integer modes for x87 operands. Do not ICE for unsupported size,
658 generate error instead. Generate error for unsupported operand types.
659 ['z']: Do not handle HImode memory operands specially. Warning
660 for floating-point operands. Fallthru to 'Z' for unsupported operand
661 types. Do not ICE for unsupported size, generate error instead.
662 (output_387_binary_op): Use %Z to output operands.
663 (output_fp_compare): Ditto.
664 (output_387_reg_move): Ditto.
666 2009-04-28 Ben Elliston <bje@au.ibm.com>
671 2009-03-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
673 * builtins.c (c_strlen): Do not warn here.
674 * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
675 * c-common.c (pointer_int_sum): Take an explicit location.
676 Warn about offsets out of bounds.
677 * c-common.h (pointer_int_sum): Adjust declaration.
679 2009-04-27 Ian Lance Taylor <iant@google.com>
681 * collect2.c (is_ctor_dtor): Change type of ret field in struct
683 * dce.c (run_fast_df_dce): Change type of old_flags to int.
684 * df-core.c (df_set_flags): Change return type to int. Change
685 type of old_flags to int.
686 (df_clear_flags): Likewise.
687 * df-scan.c (df_def_record_1): Change 0 to VOIDmode.
688 (df_get_conditional_uses): Likewise.
689 * df.h (df_set_flags, df_clear_flags): Update declarations.
690 * dwarf2out.c (struct indirect_string_node): Change type of form
691 field to enum dwarf_form.
692 (AT_string_form): Change return type to enum dwarf_form.
693 * fixed-value.c (fixed_compare): Add cast to enum type.
694 * fwprop.c (update_df): Change 0 to VOIDmode.
695 * gensupport.c: Change 0 to UNKNOWN.
696 * gimple.h (gimple_cond_code): Add cast to enum type.
697 * haifa-sched.c (reemit_notes): Add cast to enum type.
698 * hooks.c (hook_int_void_no_regs): Remove function.
699 * hooks.h (hook_int_void_no_regs): Remove declaration.
700 * optabs.c (expand_widen_pattern_expr): Change 0 to VOIDmode.
701 * predict.c (combine_predictions_for_insn): Add casts to enum type.
702 * real.c (real_arithmetic): Add cast to enum type.
703 (real_compare): Likewise.
704 * target.h (struct gcc_target): Change return type of
705 branch_target_register_class to enum reg_class.
706 * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Define as
707 default_branch_target_register_class.
708 * targhooks.c (default_branch_target_register_class): New function.
709 * targhooks.h (default_branch_target_register_class): Declare.
710 * tree-data-ref.c (print_direction_vector): Add cast to enum type.
711 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Remove
713 * tree-vect-loop.c (vect_create_epilog_for_reduction): Change 0 to
715 * tree-vect-slp.c (vect_build_slp_tree): Change 0 to
716 vect_uninitialized_def. Change 0 to ERROR_MARK.
717 * tree-vect-stmts.c (supportable_widening_operation): Don't
718 initialize icode1 and icode2.
719 * tree-vectorizer.h (enum vect_def_type): Add vect_uninitialized_def.
720 * config/sol2-c.c (cmn_err_length_specs): Change 0 to FMT_LEN_none
722 (cmn_err_flag_specs): Change 0 to STD_C89.
723 (cmn_err_char_table): Likewise.
724 * config/arm/arm.c (get_arm_condition_code): Change type of code
725 to enum arm_cond_code.
726 (IWMMXT_BUILTIN): Change 0 to UNKNOWN.
727 (IWMMXT_BUILTIN2): Likewise.
728 (neon_builtin_type_bits): Don't define typedef.
729 (neon_builtin_datum): Change type of bits field to int.
730 (arm_expand_neon_args): Add cast to enum type.
731 * config/ia64/ia64.c (tls_symbolic_operand_type): Change 0 to
733 * config/i386/i386.c (bdesc_multi_arg): Change 0 to UNKNOWN. Add
735 * config/mips/mips.c (LOONGSON_BUILTIN_ALIAS): Change 0 to
737 * config/mips/mips.md (jal_macro): Return enum constant.
738 (single_insn): Likewise.
739 * config/rs6000/rs6000.c (bdesc_altivec_preds): Change 0 to
741 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
743 * config/s390/s390.c (s390_tune_flags): Change type to int.
744 (s390_arch_flags): Likewise.
745 (s390_handle_arch_option): Change flags field of struct pta to int.
746 * config/s390/s390.h (s390_tune_flags): Update declaration.
747 (s390_arch_flags): Likewise.
748 * config/sh/sh.c (prepare_move_operands): Compare
749 tls_symbolic_operand result with enum constant.
750 (sh_reorg): Change PUT_MODE to PUT_REG_NOTE_KIND.
751 (sh_expand_prologue): Add cast to enum type.
752 (sh_expand_epilogue): Likewise.
753 (tls_symbolic_operand): Change return type to enum tls_model.
754 (fpscr_set_from_mem): Add cast to enum type.
755 (legitimize_pic_address): Compare tls_symbolic_operand result with
757 (sh_target_reg_class): Change return type to enum reg_class.
758 * config/sh/sh.h (OVERRIDE_OPTIONS): Change CPU_xxx to
760 * config/sh/sh-protos.h (tls_symbolic_operand): Update declaration.
761 * config/sparc/sparc.c (sparc_override_options): Add cast to enum type.
762 * config/sparc/sparc.md (empty_delay_slot): Return enum constant.
763 (pic, calls_alloca, calls_eh_return, leaf_function): Likewise.
764 (delayed_branch, tls_call_delay): Likewise.
765 (eligible_for_sibcall_delay): Likewise.
766 (eligible_for_return_delay): Likewise.
767 * config/spu/spu.c (expand_builtin_args): Add cast to enum type.
768 (spu_expand_builtin_1): Likewise.
770 * c-typeck.c (convert_for_assignment): Issue -Wc++-compat warnings
771 for all types of conversions.
772 (output_init_element): Issue -Wc++-compat warning if needed when
773 initializing a bitfield with enum type.
774 * c-parser.c (c_parser_expression): Set original_type to
775 original_type of right hand operand of comman operator.
777 2009-04-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
779 * doc/c-tree.texi (Types, Functions, Expression trees): Fix
781 * doc/cfg.texi (Maintaining the CFG, Liveness information): Likewise.
782 * doc/cpp.texi (Standard Predefined Macros)
783 (Implementation-defined behavior): Likewise.
784 * doc/extend.texi (Function Attributes, Type Attributes): Likewise.
785 * doc/gimple.texi (GIMPLE Exception Handling)
786 (@code{GIMPLE_ASSIGN}): Likewise.
787 * doc/install.texi (Prerequisites, Configuration, Specific): Likewise.
788 * doc/invoke.texi (Warning Options, Optimize Options)
789 (AVR Options, Darwin Options): Likewise.
790 (Optimize Options): Reformulate -fwhole-program description.
791 * doc/loop.texi (Lambda): Likewise.
792 * doc/md.texi (Output Template, Define Constraints)
793 (Standard Names, Insn Splitting): Likewise.
794 * doc/options.texi (Option properties): Likewise.
795 * doc/passes.texi (Tree-SSA passes): Likewise.
796 * doc/rtl.texi (Side Effects, Assembler, Insns): Likewise.
797 * doc/tm.texi (Register Classes, Old Constraints, Scalar Return)
798 (File Names and DBX): Likewise.
799 * doc/trouble.texi (Incompatibilities): Likewise.
801 2009-04-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
803 * spu.c (spu_machine_dependent_reorg): Make sure branch label on hint
804 instruction is correct.
806 2009-04-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
808 Allow non-constant arguments to conversion intrinsics.
809 * spu-protos.h (exp2_immediate_p, spu_gen_exp2): Declare.
810 * predicates.md (spu_inv_exp2_operand, spu_exp2_operand): New.
811 * spu.c (print_operand): Handle 'v' and 'w'.
812 (exp2_immediate_p, spu_gen_exp2): Define.
813 * spu-builtins.def (spu_convts, spu_convtu, spu_convtf_0,
814 spu_convtf_1): Update parameter descriptions.
815 * spu-builtins.md (spu_csflt, spu_cuflt, spu_cflts, spu_cfltu): Update.
816 * constraints.md ('v', 'w'): New.
817 * spu.md (UNSPEC_CSFLT, UNSPEC_CFLTS, UNSPEC_CUFLT, UNSPEC_CFLTU):
819 (i2f, I2F): New define_mode_attr.
820 (floatsisf2, floatv4siv4sf2, fix_truncsfsi2, fix_truncv4sfv4si2,
821 floatunssisf2, floatunsv4siv4sf2, fixuns_truncsfsi2,
822 fixuns_truncv4sfv4si2): Update to use mode attribute.
823 (float<mode><i2f>2_mul, float<mode><i2f>2_div,
824 fix_trunc<mode><f2i>2_mul, floatuns<mode><i2f>2_mul,
825 floatuns<mode><i2f>2_div, fixuns_trunc<mode><f2i>2_mul): New
826 patterns for combine.
828 2009-04-27 Steven Bosscher <steven@gcc.gnu.org>
830 * dbgcnt.def (cprop1, cprop2, gcse, jump_bypass): Remove
831 (cprop, hoist, pre, store_motion): New debug counters.
832 * tree-pass.h (pass_tracer): Move to list of gimple passes, it
833 is not an RTL pass anymore.
834 (pass_profiling): Remove extern decl for pass removed in 2005.
835 (pass_gcse, pass_jump_bypass): Remove.
836 * final.c (rest_of_clean_state): Set flag_rerun_cse_after_global_opts
837 to 0 for clean state.
838 * toplev.h (flag_rerun_cse_after_global_opts): Add extern declaration.
839 * cse.c (gate_handle_cse_after_global_opts,
840 rest_of_handle_cse_after_global_opts): New functions.
841 (pass_cse_after_global_opts): New pass, does local CSE.
842 * timevar.def (TV_GCSE, TV_CPROP1, TV_CPROP2, TV_BYPASS): Remove.
843 (TV_CPROP): New timevar.
844 * gcse.c (flag_rerun_cse_after_global_opts): New global variable.
845 (run_jump_opt_after_gcse, max_gcse_regno): Remove global vars.
846 (gcse_main, recompute_all_luids): Remove.
847 (compute_hash_table_work): Call max_reg_num instead of reading
849 (cprop_jump): Don't set run_jump_opt_after_gcse.
850 (constprop_register): Always allow to alter jumps.
851 (cprop_insn): Likewise.
852 (do_local_cprop): Likewise.
853 (local_cprop_pass): Likewise. Return non-zero if something changed.
854 (cprop): Remove function, fold interesting bits into one_cprop_pass.
855 (find_implicit_sets): Add note about missed optimization opportunity.
856 (one_cprop_pass): Rewrite to be "the" CPROP pass, called from the
857 pass_rtl_cprop execute function.
858 Don't bother tracking the pass number, each pass gets its own dumpfile
860 Always allow to alter jumpsand bypass jumps.
861 (bypass_block): Don't ignore regno >= max_gcse_regno, find_bypass_set
862 will just find no suitable set.
863 (pre_edge_insert): Fix dumping, this function is for PRE only.
864 (one_pre_gcse_pass): Rewrite to be "the" PRE pass, called from the
865 pass_rtl_pre execute function.
866 (hoist_code): Return non-zero if something changed. Keep track of
867 substitutions and insertions for statistics gathering similar to PRE.
868 (one_code_hoisting_pass): Rewrite to be "the" code hoisting pass,
869 called from the pass_rtl_hoist execute function. Show pass statistics.
870 (compute_store_table): Use max_reg_num directly instead of using the
871 formerly global max_gcse_regno.
872 (build_store_vectors): Likewise.
873 (replace_store_insn): Fix dumping.
874 (store_motion): Rename to ...
875 (one_store_motion_pass): ... this. Rewrite to be "the" STORE_MOTION
876 pass, called from the pass_rtl_store_motion execute function. Keep
877 track of substitutions and insertions for statistics gathering similar
879 (bypass_jumps): Remove, fold interesting bits into ...
880 (one_cprop_pass): ... this. Rewrite to be "the" CPROP pass, called
881 from the pass_rtl_cprop execute function.
882 (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
883 pass_jump_bypass): Remove.
884 (gate_handle_gcse, rest_of_handle_gcse): Remove.
885 (gate_rtl_cprop, execute_rtl_cprop, pass_rtl_cprop): New.
886 (gate_rtl_pre, execute_rtl_pre, pass_rtl_pre): New.
887 (gate_rtl_hoist, execute_rtl_hoist, pass_rtl_hoist): New.
888 (gate_rtl_store_motion, execute_rtl_store_motion,
889 pass_rtl_store_motion): New.
890 * common.opt: Remove flag_cse_skip_blocks, adjust documentation to
891 make it clear that -fcse-skip-blocks is a no-op for backward compat.
892 * passes.c (init_optimization_passes): Remove pass_gcse and
893 pass_jump_bypass. Schedule cprop, pre, hoist, cprop, store_motion,
894 and cse_after_global_opts in place of pass_gcse. Schedule cprop
895 instead of pass_jump_bypass.
897 2009-04-27 Richard Guenther <rguenther@suse.de>
900 * gimplify.c (gimplify_expr): If we are required to create
901 a temporary make sure it ends up as register.
903 2009-04-27 H.J. Lu <hongjiu.lu@intel.com>
906 * config/i386/i386.c (construct_container): Don't call
907 gen_reg_or_parallel with BLKmode on X86_64_SSE_CLASS,
908 X86_64_SSESF_CLASS and X86_64_SSEDF_CLASS.
910 2009-04-27 Michael Matz <matz@suse.de>
912 * ssaexpand.h (struct ssaexpand): Member 'values' is a bitmap.
913 (get_gimple_for_ssa_name): Adjust, lookup using SSA_NAME_DEF_STMT.
914 * tree-ssa-live.h: (find_replaceable_exprs): Return a bitmap.
915 (dump_replaceable_exprs): Take a bitmap.
916 * cfgexpand.c (gimple_cond_pred_to_tree): Handle bitmap instead of
918 (expand_gimple_basic_block): Likewise.
919 * tree-ssa-ter.c (struct temp_expr_table_d): Make
920 replaceable_expressions member a bitmap.
921 (free_temp_expr_table): Pass back and deal with bitmap, not gimple*.
922 (mark_replaceable): Likewise.
923 (find_replaceable_in_bb, dump_replaceable_exprs): Likewise.
924 * tree-outof-ssa.c (remove_ssa_form): 'values' is a bitmap.
926 2009-04-27 Richard Guenther <rguenther@suse.de>
928 * tree-cfg.c (remove_useless_stmts): Verify stmts afterwards.
929 (verify_stmts): Dispatch to gimple/type verification code.
930 * tree-inline.c (remap_gimple_op_r): Work around C++ FE
931 issue with call argument types.
933 2009-04-27 Michael Matz <matz@suse.de>
935 * tree-into-ssa.c (regs_to_rename, mem_syms_to_rename): Remove.
936 (init_update_ssa, delete_update_ssa, update_ssa): Remove references
939 2009-04-27 Richard Sandiford <rdsandiford@googlemail.com>
940 Eric Botcazou <ebotcazou@adacore.com>
942 * resource.c (find_basic_block): Use BLOCK_FOR_INSN to look up
943 a label's basic block.
944 (mark_target_live_regs): Tidy and rework obsolete comments.
945 Change back DF problem to LIVE. If a label starts a basic block,
946 assume that all registers that used to be live then still are.
947 (init_resource_info): If a label starts a basic block, set its
948 BLOCK_FOR_INSN accordingly.
949 (fini_resource_info): Undo the setting of BLOCK_FOR_INSN.
951 2009-04-27 Richard Guenther <rguenther@suse.de>
953 * tree-flow-inline.h (function_ann): Remove.
954 (get_function_ann): Likewise.
955 * tree-dfa.c (create_function_ann): Remove.
956 * tree-flow.h (struct static_var_ann_d): Remove.
957 (struct function_ann_d): Likewise.
958 (union tree_ann_d): Remove fdecl member.
959 (function_ann_t): Remove.
960 (function_ann, get_function_ann, create_function_ann): Remove
963 2009-04-27 Uros Bizjak <ubizjak@gmail.com>
965 * config/alpha/alpha.c (code_for_builtin): Declare as enum insn_code.
967 2009-04-27 Jan Hubicka <jh@suse.cz>
969 * ipa-pure-const.c (struct funct_state_d): New fields
970 state_previously_known, looping_previously_known; remove
972 (analyze_function): Use new fields.
973 (propagate): Avoid assumption that state_set_in_source imply
976 * tree-ssa-loop-niter.c (finite_loop_p): New function.
977 * tree-ssa-loop-ivcanon.c (empty_loop_p): Use it.
978 * cfgloop.h (finite_loop_p): Declare.
980 2009-04-26 Michael Matz <matz@suse.de>
982 * tree-flow.h (tree_ann_common_d): Remove aux and value_handle members.
984 2009-04-26 Michael Matz <matz@suse.de>
986 * tree-pass.h (pass_del_ssa, pass_mark_used_blocks,
987 pass_free_cfg_annotations, pass_free_datastructures): Remove decls.
988 * gimple-low.c (mark_blocks_with_used_vars, mark_used_blocks,
989 pass_mark_used_blocks): Remove.
990 * tree-optimize.c (pass_free_datastructures,
991 execute_free_cfg_annotations, pass_free_cfg_annotations): Remove.
992 * passes.c (init_optimization_passes): Don't call
993 pass_mark_used_blocks, remove dead code.
995 2009-04-26 H.J. Lu <hongjiu.lu@intel.com>
997 * tree-outof-ssa.c (rewrite_trees): Add ATTRIBUTE_UNUSED.
998 * tree-ssa-live.h (register_ssa_partition): Likewise.
1000 2009-04-26 Michael Matz <matz@suse.de>
1003 * builtins.c (fold_builtin_next_arg): Handle SSA names.
1004 * tree-ssa-copyrename.c (rename_ssa_copies): Use ssa_name() directly.
1005 * tree-ssa-coalesce.c (create_outofssa_var_map): Mark only useful
1007 (compare_pairs): Swap cost comparison.
1008 (coalesce_ssa_name): Don't use change_partition_var.
1009 * tree-nrv.c (struct nrv_data): Add modified member.
1010 (finalize_nrv_r): Set it.
1011 (tree_nrv): Use it to update statements.
1012 (pass_nrv): Require PROP_ssa.
1013 * tree-mudflap.c (mf_decl_cache_locals,
1014 mf_build_check_statement_for): Use make_rename_temp.
1015 (pass_mudflap_2): Require PROP_ssa, run ssa update at finish.
1016 * alias.c (find_base_decl): Handle SSA names.
1017 * emit-rtl (set_reg_attrs_for_parm): Make non-static.
1018 (component_ref_for_mem_expr): Don't leak SSA names into RTL.
1019 * rtl.h (set_reg_attrs_for_parm): Declare.
1020 * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Rename
1021 to "optimized", remove unused locals at finish.
1022 (execute_free_datastructures): Make global, call
1023 delete_tree_cfg_annotations.
1024 (execute_free_cfg_annotations): Don't call
1025 delete_tree_cfg_annotations.
1027 * ssaexpand.h: New file.
1028 * expr.c (toplevel): Include ssaexpand.h.
1029 (expand_assignment): Handle SSA names the same as register variables.
1030 (expand_expr_real_1): Expand SSA names.
1031 * cfgexpand.c (toplevel): Include ssaexpand.h.
1032 (SA): New global variable.
1033 (gimple_cond_pred_to_tree): Fold TERed comparisons into predicates.
1034 (SSAVAR): New macro.
1035 (set_rtl): New helper function.
1036 (add_stack_var): Deal with SSA names, use set_rtl.
1037 (expand_one_stack_var_at): Likewise.
1038 (expand_one_stack_var): Deal with SSA names.
1039 (stack_var_size_cmp): Use code (SSA_NAME / DECL) as tie breaker
1040 before unique numbers.
1041 (expand_stack_vars): Use set_rtl.
1042 (expand_one_var): Accept SSA names, add asserts for them, feed them
1043 to above subroutines.
1044 (expand_used_vars): Expand all partitions (without default defs),
1045 then only the local decls (ignoring those expanded already).
1046 (expand_gimple_cond): Remove edges when jumpif() expands an
1048 (expand_gimple_basic_block): Don't clear EDGE_EXECUTABLE here,
1049 or remove abnormal edges. Ignore insns setting the LHS of a TERed
1051 (gimple_expand_cfg): Call into rewrite_out_of_ssa, initialize
1052 members of SA; deal with PARM_DECL partitions here; expand
1053 all PHI nodes, free tree datastructures and SA. Commit instructions
1054 on edges, clear EDGE_EXECUTABLE and remove abnormal edges here.
1055 (pass_expand): Require and destroy PROP_ssa, verify SSA form, flow
1056 info and statements at start, collect garbage at finish.
1057 * tree-ssa-live.h (struct _var_map): Remove partition_to_var member.
1058 (VAR_ANN_PARTITION) Remove.
1059 (change_partition_var): Don't declare.
1060 (partition_to_var): Always return SSA names.
1061 (var_to_partition): Only accept SSA names.
1062 (register_ssa_partition): Only check argument.
1063 * tree-ssa-live.c (init_var_map): Don't allocate partition_to_var
1065 (delete_var_map): Don't free it.
1066 (var_union): Only accept SSA names, simplify.
1067 (partition_view_init): Mark only useful SSA names as used.
1068 (partition_view_fini): Only deal with SSA names.
1069 (change_partition_var): Remove.
1070 (dump_var_map): Use ssa_name instead of partition_to_var member.
1071 * tree-ssa.c (delete_tree_ssa): Don't remove PHI nodes on RTL
1073 * tree-outof-ssa.c (toplevel): Include ssaexpand.h and expr.h.
1074 (struct _elim_graph): New member const_dests; nodes member vector of
1076 (set_location_for_edge): New static helper.
1077 (create_temp): Remove.
1078 (insert_partition_copy_on_edge, insert_part_to_rtx_on_edge,
1079 insert_value_copy_on_edge, insert_rtx_to_part_on_edge): New functions.
1080 (new_elim_graph): Allocate const_dests member.
1081 (clean_elim_graph): Truncate const_dests member.
1082 (delete_elim_graph): Free const_dests member.
1083 (elim_graph_size): Adapt to new type of nodes member.
1084 (elim_graph_add_node): Likewise.
1085 (eliminate_name): Likewise.
1086 (eliminate_build): Don't take basic block argument, deal only with
1087 partition numbers, not variables.
1088 (get_temp_reg): New static helper.
1089 (elim_create): Use it, deal with RTL temporaries instead of trees.
1090 (eliminate_phi): Adjust all calls to new signature.
1091 (assign_vars, replace_use_variable, replace_def_variable): Remove.
1092 (rewrite_trees): Only do checking.
1093 (edge_leader, stmt_list, leader_has_match, leader_match): Remove.
1094 (same_stmt_list_p, identical_copies_p, identical_stmt_lists_p,
1095 init_analyze_edges_for_bb, fini_analyze_edges_for_bb,
1096 contains_tree_r, MAX_STMTS_IN_LATCH,
1097 process_single_block_loop_latch, analyze_edges_for_bb,
1098 perform_edge_inserts): Remove.
1099 (expand_phi_nodes): New global function.
1100 (remove_ssa_form): Take ssaexpand parameter. Don't call removed
1101 functions, initialize new parameter, remember partitions having a
1103 (finish_out_of_ssa): New global function.
1104 (rewrite_out_of_ssa): Make global. Adjust call to remove_ssa_form,
1105 don't reset in_ssa_p here, don't disable TER when mudflap.
1106 (pass_del_ssa): Remove.
1107 * tree-flow.h (struct var_ann_d): Remove out_of_ssa_tag and
1109 (execute_free_datastructures): Declare.
1110 * Makefile.in (SSAEXPAND_H): New variable.
1111 (tree-outof-ssa.o, expr.o, cfgexpand.o): Depend on SSAEXPAND_H.
1112 * basic-block.h (commit_one_edge_insertion): Declare.
1113 * passes.c (init_optimization_passes): Move pass_nrv and
1114 pass_mudflap2 before pass_cleanup_cfg_post_optimizing, remove
1115 pass_del_ssa, pass_free_datastructures, pass_free_cfg_annotations.
1116 * cfgrtl.c (commit_one_edge_insertion): Make global, don't declare.
1117 (redirect_branch_edge): Deal with super block when expanding, split
1118 out jump patching itself into ...
1119 (patch_jump_insn): ... here, new static helper.
1121 2009-04-26 Michael Matz <matz@suse.de>
1123 * tree-ssa-copyrename.c (rename_ssa_copies): Don't iterate
1124 beyond num_ssa_names.
1125 * tree-ssa-ter.c (free_temp_expr_table): Likewise.
1126 * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
1128 2009-04-26 Jakub Jelinek <jakub@redhat.com>
1131 * fwprop.c (forward_propagate_asm): New function.
1132 (forward_propagate_and_simplify): Propagate also into __asm, if it
1133 doesn't increase the number of referenced registers.
1136 * stmt.c (warn_if_unused_value): Look through NON_LVALUE_EXPR.
1138 2009-04-26 Jakub Jelinek <jakub@redhat.com>
1140 * tree-nested.c (get_nonlocal_vla_type): If not optimizing, call
1141 note_nonlocal_vla_type for nonlocal VLAs.
1142 (note_nonlocal_vla_type, note_nonlocal_block_vlas,
1143 contains_remapped_vars, remap_vla_decls): New functions.
1144 (convert_nonlocal_reference_stmt): If not optimizing, call
1145 note_nonlocal_block_vlas on GIMPLE_BIND block vars.
1146 (nesting_copy_decl): Return {VAR,PARM,RESULT}_DECL unmodified
1147 if it wasn't found in var_map.
1148 (finalize_nesting_tree_1): Call remap_vla_decls. If outermost
1149 GIMPLE_BIND doesn't have gimple_bind_block, chain debug_var_chain
1150 to BLOCK_VARS (DECL_INITIAL (root->context)) instead of calling
1152 * gimplify.c (nonlocal_vlas): New variable.
1153 (gimplify_var_or_parm_decl): Add debug VAR_DECLs for non-local
1155 (gimplify_body): Create and destroy nonlocal_vlas.
1157 * dwarf2out.c (loc_descr_plus_const): New function.
1158 (build_cfa_aligned_loc, tls_mem_loc_descriptor,
1159 mem_loc_descriptor, loc_descriptor_from_tree_1,
1160 descr_info_loc, gen_variable_die): Use it.
1162 * tree.h (DECL_BY_REFERENCE): Note that it is also valid for
1163 !TREE_STATIC VAR_DECLs.
1164 * dwarf2out.c (loc_by_reference, gen_decl_die): Handle
1165 DECL_BY_REFERENCE on !TREE_STATIC VAR_DECLs.
1166 (gen_variable_die): Likewise. Don't look at TREE_PRIVATE if
1167 DECL_BY_REFERENCE is valid.
1168 * dbxout.c (DECL_ACCESSIBILITY_CHAR): Don't look at TREE_PRIVATE
1169 for PARM_DECLs, RESULT_DECLs or !TREE_STATIC VAR_DECLs.
1170 * tree-nested.c (get_nonlocal_debug_decl, get_local_debug_decl):
1171 Copy DECL_BY_REFERENCE.
1172 (struct nesting_copy_body_data): New type.
1173 (nesting_copy_decl): New function.
1174 (finalize_nesting_tree_1): Remap types of debug_var_chain variables,
1175 if they have variable length.
1177 2009-04-26 Michael Matz <matz@suse.de>
1179 * tree-sra.c (sra_build_assignment): Don't use into_ssa mode,
1180 mark new temporaries for renaming.
1182 2009-04-26 Joseph Myers <joseph@codesourcery.com>
1185 * c-decl.c (global_bindings_p): Return negative value.
1186 (c_variable_size): New. Based on variable_size from
1188 (grokdeclarator): Call c_variable_size not variable_size.
1190 2009-04-26 Uros Bizjak <ubizjak@gmail.com>
1192 * config/i386/i386.c (print_operand) ['z']: Fix typo.
1194 2009-04-26 Kai Tietz <kai.tietz@onevision.com>
1196 * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR):
1197 Redefine it to just use mingw/include.
1198 (ASM_SPEC): Rules for -m32 and -m64.
1199 (LINK_SPEC): Use Likewise.
1200 (SPEC_32): New define.
1201 (SPEC_64): Likewise.
1202 (SUB_LINK_SPEC): Likewise.
1203 (MULTILIB_DEFAULTS): New define.
1204 * config/i386/t-mingw-w64 (MULTILIB_OPTIONS):
1205 Add multilib options.
1206 (MULTILIB_DIRNAMES): Likewise.
1207 (MULTILIB_OSDIRNAMES): Likewise.
1209 (INSTALL_LIBGCC): Likewise.
1211 2009-04-26 Joseph Myers <joseph@codesourcery.com>
1214 * c-tree.h (enum c_inline_static_type): New.
1215 (record_inline_static): Declare.
1216 * c-decl.c (struct c_inline_static, c_inline_statics,
1217 record_inline_static, check_inline_statics): New.
1218 (pop_file_scope): Call check_inline_statics.
1219 (start_decl): Call record_inline_static instead of pedwarning
1220 directly for static in inline function.
1221 * c-typeck.c (build_external_ref): Call record_inline_static
1222 instead of pedwarning directly for static referenced in inline
1225 2009-04-26 Steven Bosscher <steven@gcc.gnu.org>
1227 * df-scan.c (df_insn_rescan): Salvage insn's LUID if the insn is
1228 not new but only being rescanned.
1229 * gcse.c (uid_cuid, max_uid, INSN_CUID, max_cuid, struct reg_set,
1230 reg_set_table, REG_SET_TABLE_SLOP, reg_set_in_block,
1231 alloc_reg_set_mem, free_reg_set_mem, record_one_set,
1232 record_set_info, compute_set, grealloc): Remove.
1233 (recompute_all_luids): New function.
1234 (gcse_main): Don't compute sets, and don't do related memory
1235 allocations/free-ing. If something changed before the end of the
1236 pass, update LUIDs using recompute_all_luids.
1237 (alloc_gcse_mem): Don't compute LUIDs. Don't allocate reg_set memory.
1238 (free_gcse_mem): Don't free it either.
1239 (oprs_unchanged_p, load_killed_in_block, record_last_reg_set_info):
1240 Use the df insn LUIDs.
1241 (load_killed_in_block): Likewise.
1242 (compute_hash_table_work): Don't compute reg_set_in_block.
1243 (compute_transp): Use DF_REG_DEF_CHAINs.
1244 (local_cprop_pass): Don't use compute_sets and related functions.
1245 (one_cprop_pass, pre_gcse, one_pre_gcse_pass, one_code_hoisting_pass):
1246 Use get_max_uid() instead of max_cuid.
1247 (insert_insn_end_basic_block, pre_insert_copy_insn,
1248 update_ld_motion_stores): Don't try to
1249 keep reg_set tables up to date.
1250 (pre_insert_copies): Use df insn LUIDs.
1251 (sbitmap pre_redundant_insns): Replace with uses of INSN_DELETED_P.
1252 (reg_set_info): Don't use extra bitmap argument.
1253 (compute_store_table): Don't compute reg_set_in_block. Use DF scan
1254 information to compute regs_set_in_block.
1255 (free_store_memory, store_motion): Don't nullify reg_set_in_block.
1256 (bypass_jumps): Don't use compute_sets and friends.
1258 2009-04-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1261 * opts.c (undocumented_msg): Do not leave blank even with
1264 2009-04-25 Joseph Myers <joseph@codesourcery.com>
1266 * c-decl.c (build_enumerator): Allow values folding to integer
1267 constants but not integer constant expressions with a pedwarn if
1270 2009-04-25 Joseph Myers <joseph@codesourcery.com>
1273 * c-typeck.c (c_expr_sizeof_type): Create a C_MAYBE_CONST_EXPR
1274 with non-null C_MAYBE_CONST_EXPR_PRE if size of a variable-length
1275 type is an integer constant.
1277 2009-04-25 Uros Bizjak <ubizjak@gmail.com>
1280 * config/i386/i386.c (print_operand) ['z']: Revert handling of
1283 2009-04-25 Joseph Myers <joseph@codesourcery.com>
1286 * c-decl.c (grokdeclarator): Diagnose declarations of functions
1287 with variably modified return type and no storage class
1288 specifiers, except for the case of nested functions. Distinguish
1289 extern declarations of functions with variably modified return
1290 types from those of objects with variably modified types.
1292 2009-04-25 Jan Hubicka <jh@suse.cz>
1294 * tree.c (list_equal_p): New function.
1295 * tree.h (list_equal_p): Declare.
1296 * coretypes.h (edge_def, edge, const_edge, basic_block_def
1297 basic_block_def, basic_block, const_basic_block): New.
1298 * tree-eh.c (make_eh_edge): EH edges are not abnormal.
1299 (redirect_eh_edge): New function.
1300 (make_eh_edge_update_phi): EH edges are not abnormal.
1301 * except.c: Include tree-flow.h.
1302 (list_match): New function.
1303 (eh_region_replaceable_by_p): New function.
1304 (replace_region): New function.
1305 (hash_type_list): New function.
1306 (hash_eh_region): New function.
1307 (eh_regions_equal_p): New function.
1308 (merge_peers): New function.
1309 (remove_unreachable_regions): Verify EH tree when checking;
1311 (copy_eh_region_1): New function.
1312 (copy_eh_region): New function.
1313 (push_reachable_handler): New function.
1314 (build_post_landing_pads, dw2_build_landing_pads): Be ready for
1315 regions without label but with live RESX.
1316 * except.h (redirect_eh_edge_to_label): New.
1317 * tree-flow.h (redirect_eh_edge): New.
1318 * coretypes.h (edge_def, edge, const_edge, basic_block_def
1319 basic_block_def, basic_block, const_basic_block): Remove.
1320 * Makefile.in (except.o): Add dependency on tree-flow.h
1321 * tree-cfg.c (gimple_redirect_edge_and_branch): Handle EH edges.
1322 * basic-block.h (edge, const_edge, basic_block, const_basic_block):
1325 2009-04-25 Eric Botcazou <ebotcazou@adacore.com>
1328 * config/sparc/sparc.c (sparc_gimplify_va_arg): Set TREE_ADDRESSABLE
1329 on the destination of memcpy.
1331 2009-04-25 Paolo Bonzini <bonzini@gnu.org>
1333 * doc/tm.texi (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
1334 REGNO_MODE_OK_FOR_REG_BASE_P, REGNO_MODE_CODE_OK_FOR_BASE_P,
1335 REGNO_OK_FOR_INDEX_P): Mention strict/nonstrict difference.
1337 2009-04-25 Jan Hubicka <jh@suse.cz>
1339 * tree-eh.c (tree_remove_unreachable_handlers): Handle shared labels.
1340 (tree_empty_eh_handler_p): Allow non-EH predecestors; allow region
1341 to be reached by different label than left.
1342 (update_eh_edges): Update comment; remove edge_to_remove if possible
1343 and return true if suceeded.
1344 (cleanup_empty_eh): Accept sharing map; handle shared regions.
1345 (cleanup_eh): Compute sharing map.
1346 * except.c (remove_eh_handler_and_replace): Add argument if we should
1348 (remove_unreachable_regions): Update for label sharing.
1349 (label_to_region_map): Likewise.
1350 (get_next_region_sharing_label): New function.
1351 (remove_eh_handler_and_replace): Add update_catch_try parameter; update
1353 (remove_eh_handler): Update.
1354 (remove_eh_region_and_replace_by_outer_of): New function.
1355 * except.h (struct eh_region): Add next_region_sharing_label.
1356 (remove_eh_region_and_replace_by_outer_of,
1357 get_next_region_sharing_label): Declare.
1358 * tree-cfgcleanup.c (tree_forwarder_block_p): Simplify.
1360 2009-04-25 Jan Hubicka <jh@suse.cz>
1362 * tree-cfg.c (split_critical_edges): Split also edges where we can't
1363 insert code even if they are not critical.
1365 2009-04-25 Jan Hubicka <jh@suse.cz>
1367 * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
1368 (gimple_can_remove_branch_p): EH edges won't remove branch by
1370 * tree-inline.c (update_ssa_across_abnormal_edges): Do handle
1371 updating of non-abnormal EH edges.
1372 * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
1373 (gimple_can_remove_branch_p): EH edges are unremovable by redirection.
1374 (split_critical_edges): Split also edges where emitting code on them
1375 will lead to splitting later.
1377 2009-04-25 Uros Bizjak <ubizjak@gmail.com>
1378 H.J. Lu <hongjiu.lu@intel.com>
1381 * configure.ac (HAVE_AS_IX86_FILDQ): On x86 targets check whether
1382 the configured assembler supports fildq and fistpq mnemonics.
1383 (HAVE_AS_IX86_FILDS): Rename from HAVE_GAS_FILDS_FISTS.
1384 * configure: Regenerated.
1387 * config/i386/i386.c (print_operand): Handle 'Z'.
1388 ['z']: Remove handling of special fild/fist suffixes.
1389 (output_fix_trunc): Use '%Z' to output suffix of fist{,p,tp} insn.
1390 * config/i386/i386.md (*floathi<mode>2_i387): Use '%Z' to output
1391 suffix of fild insn.
1392 (*floatsi<mode>2_vector_mixed): Ditto.
1393 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Ditto.
1394 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Ditto.
1395 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
1396 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387): Ditto.
1397 * config/i386/gas.h (GAS_MNEMONICS): Remove.
1399 2009-04-25 Ben Elliston <bje@au.ibm.com>
1401 * genrecog.c (validate_pattern): Do not warn for VOIDmode CALLs as
1402 the source of a set operation.
1404 2009-04-25 Anatoly Sokolov <aesok@post.ru>
1406 * target.h (struct gcc_target): Add case_values_threshold field.
1407 * target-def.h (TARGET_CASE_VALUES_THRESHOLD): New.
1408 (TARGET_INITIALIZER): Use TARGET_CASE_VALUES_THRESHOLD.
1409 * targhooks.c (default_case_values_threshold): New function.
1410 * targhooks.h (default_case_values_threshold): Declare function.
1411 * stmt.c (expand_case): Use case_values_threshold target hook.
1412 * expr.h (case_values_threshold): Remove declartation.
1413 * expr.c (case_values_threshold): Remove function.
1414 * doc/tm.texi (CASE_VALUES_THRESHOLD): Revise documentation.
1416 * config/avr/avr.h (CASE_VALUES_THRESHOLD): Remove macro.
1417 * config/avr/avr.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
1418 (avr_case_values_threshold): Declare as static.
1419 * config/avr/avr-protos.h (avr_case_values_threshold): Remove.
1421 * config/avr/mn10300.h (CASE_VALUES_THRESHOLD): Remove macro.
1422 * config/avr/mn10300.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
1423 (mn10300_case_values_threshold): New function.
1425 2009-04-24 H.J. Lu <hongjiu.lu@intel.com>
1427 * ira.c (setup_cover_and_important_classes): Add enum cast.
1429 2009-04-24 Vladimir Makarov <vmakarov@redhat.com>
1431 * genpreds.c (write_enum_constraint_num): Output definition of
1432 CONSTRAINT_NUM_DEFINED_P macro.
1433 * ira.c (setup_cover_and_important_classes): Use
1434 CONSTRAINT_NUM_DEFINED_P instead of CONSTRAINT__LIMIT in #ifdef.
1436 2009-04-24 DJ Delorie <dj@redhat.com>
1438 * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Test
1439 __SH2A_SINGLE_ONLY__ also.
1441 2009-04-24 Steve Ellcey <sje@cup.hp.com>
1443 * config/ia64/ia64.md (movfs_internal): Allow flt constants.
1444 (movdf_internal): Ditto.
1445 * config/ia64/ia64.c (ia64_legitimate_constant_p): Allow
1446 SFmode and DFmode constants.
1447 (ia64_print_operand): Add 'G' format for printing
1448 floating point constants.
1450 2009-04-24 Richard Guenther <rguenther@suse.de>
1452 * tree-vrp.c (extract_range_from_binary_expr): Handle overflow
1453 from unsigned additions.
1455 2009-04-24 Joseph Myers <joseph@codesourcery.com>
1457 * c-typeck.c (set_init_index): Allow array designators that are
1458 not integer constant expressions with a pedwarn if pedantic.
1460 2009-04-24 Bernd Schmidt <bernd.schmidt@analog.com>
1462 * simplify-rtx.c (simplify_binary_operation_1, case AND): Result is
1463 zero if no overlap in nonzero bits between the operands.
1465 2009-04-24 Ian Lance Taylor <iant@google.com>
1467 * combine.c (record_value_for_reg): Change 0 to VOIDmode, twice.
1468 (record_dead_and_set_regs): Likewise.
1469 * df.h (struct df_mw_hardreg): Change flags field to int.
1470 (struct df_base_ref): Likewise.
1471 (struct df): Change changeable_flags field to int.
1472 * df-scan.c (df_defs_record): Change clobber_flags to int.
1473 * dwarf2.h (enum dwarf_tag): Make lo_user and hi_user values enum
1474 constants rather than #define macros.
1475 (enum dwarf_attribute, enum dwarf_location_atom): Likewise.
1476 (enum dwarf_type, enum dwarf_endianity_encoding): Likewise.
1477 (enum dwarf_calling_convention): Likewise.
1478 (enum dwarf_line_number_x_ops): Likewise.
1479 (enum dwarf_call_frame_info): Likewise.
1480 (enum dwarf_source_language): Likewise.
1481 * dwarf2out.c (int_loc_descriptor): Add cast to enum type.
1482 (add_calling_convention_attribute): Likewise.
1483 * fold-const.c (fold_undefer_overflow_warnings): Add cast to enum type.
1484 (combine_comparisons): Change compcode to int. Add cast to enum type.
1485 * genrecog.c (maybe_both_true_2): Change c to int.
1486 (write_switch): Likewise. Add cast to enum type.
1487 * gimplify.c (gimplify_omp_for): Handle return values from
1488 gimplify_expr using MIN rather than bitwise or.
1489 (gimplify_expr): Add cast to enum type.
1490 * ipa-prop.c (update_jump_functions_after_inlining): Change
1491 IPA_BOTTOM to IPA_JF_UNKNOWN.
1492 * ira.c (setup_class_subset_and_memory_move_costs): Change mode to int.
1493 Add casts to enum type.
1494 (setup_cover_and_important_classes): Change cl to int. Add casts
1496 (setup_class_translate): Change cl and mode to int.
1497 (ira_init_once): Change mode to int.
1498 (free_register_move_costs): Likewise.
1499 (setup_prohibited_mode_move_regs): Add casts to enum type.
1500 * langhooks.c (add_builtin_function_common): Rework assertion that
1501 value fits bitfield.
1502 * mcf.c (add_fixup_edge): Change type parameter to edge_type.
1503 * omega.c (omega_do_elimination): Avoid math on enum types.
1504 * optabs.c (expand_vec_shift_expr): Remove casts to int.
1505 * opts.c (set_debug_level): Change 2 to enum constant. Use new
1506 int local to handle integral_argment value.
1507 * regmove.c (try_auto_increment): Change PUT_MODE to
1509 * reload.c (push_secondary_reload): Add casts to enum type.
1510 (secondary_reload_class, find_valid_class): Likewise.
1511 * reload1.c (emit_input_reload_insns): Likewise.
1512 * rtl.h (NOTE_VAR_LOCATION_STATUS): Likewise.
1513 * sel-sched.c (init_hard_regs_data): Change cur_mode to int.
1514 * sel-sched-ir.c (hash_with_unspec_callback): Change 0 to enum
1516 * tree.c (build_common_builtin_nodes): Add casts to enum type.
1517 * tree-complex.c (complex_lattice_t): Typedef to int rather than
1519 (expand_complex_libcall): Add casts to enum type.
1520 * tree-into-ssa.c (get_ssa_name_ann): Change 0 to enum constant.
1521 * tree-vect-loop.c (vect_model_reduction_cost): Compare reduc_code
1522 with ERROR_MARK, not NUM_TREE_CODES.
1523 (vect_create_epilog_for_reduction): Likewise.
1524 (vectorizable_reduction): Don't initialize epiloc_reduc_code.
1525 When not using it, set it to ERROR_MARK rather than NUM_TREE_CODES.
1526 * tree-vect-patterns.c (vect_pattern_recog_1): Change vec_mode to
1528 * tree-vect-stmts.c (new_stmt_vec_info): Change 0 to
1529 vect_unused_in_loop. Change 0 to loop_vect.
1530 * tree-vectorizer.c (vect_set_verbosity_level): Add casts to enum type.
1531 * var-tracking.c (get_init_value): Change return type to enum
1533 * vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
1534 * config/arm/arm.c (fp_model_for_fpu): Change to array to enum
1536 (arm_override_options): Add casts to enum type.
1537 (arm_emit_tls_decoration): Likewise.
1538 * config/i386/i386.c (ix86_function_specific_restore): Add casts
1540 * config/i386/i386-c.c (ix86_pragma_target_parse): Likewise.
1541 * config/ia64/ia64.c (ia64_expand_compare): Change magic to int.
1542 * config/rs6000/rs6000.c (rs6000_override_options): Add casts to
1544 * config/s390/s390.c (code_for_builtin_64): Change to array of
1546 (code_for_builtin_31): Likewise.
1547 (s390_expand_builtin): Change code_for_builtin to enum insn_code
1549 * config/sparc/sparc.c (sparc_override_options): Change value
1550 field in struct code_model to enum cmodel. In initializer change
1551 0 to NULL and add cast to enum type.
1553 * c-typeck.c (build_modify_expr): Add lhs_origtype parameter.
1554 Change all callers. Issue a -Wc++-compat warning using
1555 lhs_origtype if necessary.
1556 (convert_for_assignment): Issue -Wc++-compat warnings about
1557 invalid conversions to enum type on assignment.
1558 * c-common.h (build_modify_expr): Update declaration.
1560 2009-04-24 Nick Clifton <nickc@redhat.com>
1562 * config/iq2000/iq2000.c (function_arg): Handle TImode values.
1563 (function_arg_advance): Likewise.
1564 * config/iq2000/iq2000.md (movsi_internal2): Fix the length of the
1567 2009-04-24 Andreas Krebbel <krebbel1@de.ibm.com>
1569 * config/s390/constraints.md ('I', 'J'): Fix condition.
1571 2009-04-24 Diego Novillo <dnovillo@google.com>
1573 * gengtype-parse.c (parse_error): Add newline after message.
1575 2009-04-24 H.J. Lu <hongjiu.lu@intel.com>
1577 * config/i386/sse.md (avxmodesuffixs): Removed.
1578 (*avx_pinsr<avxmodesuffixs>): Renamed to ...
1579 (*avx_pinsr<ssevecsize>): This.
1581 2009-04-24 Bernd Schmidt <bernd.schmidt@analog.com>
1583 * loop-iv.c (replace_single_def_regs): Look for REG_EQUAL notes;
1584 follow chains of regs with a single definition, and allow expressions
1585 that are function_invariant_p.
1586 (simple_rhs_p): Allow expressions that are function_invariant_p.
1588 2009-04-24 Paolo Bonzini <bonzini@gnu.org>
1591 * fold-const.c (fold_cond_expr_with_comparison): When folding
1592 > and >= to MAX, make sure the MAX uses the same type as the
1593 comparison's operands.
1595 2009-04-24 Nick Clifton <nickc@redhat.com>
1597 * config/frv/frv.c (frv_frame_access): Do not use reg+reg
1598 addressing for DImode accesses.
1599 (frv_print_operand_address): Handle PLUS case.
1600 * config/frv/frv.h (FIXED_REGISTERS): Mark link register as fixed.
1602 2009-04-24 Jakub Jelinek <jakub@redhat.com>
1604 PR rtl-optimization/39794
1605 * alias.c (canon_true_dependence): Add x_addr argument.
1606 * rtl.h (canon_true_dependence): Adjust prototype.
1607 * cse.c (check_dependence): Adjust canon_true_dependence callers.
1608 * cselib.c (cselib_invalidate_mem): Likewise.
1609 * gcse.c (compute_transp): Likewise.
1610 * dse.c (scan_reads_nospill): Likewise.
1611 (record_store, check_mem_read_rtx): Likewise. For non-const-or-frame
1612 addresses pass base->val_rtx as mem_addr, for const-or-frame addresses
1613 canon_base_addr of the group, plus optional offset.
1614 (struct group_info): Rename canon_base_mem to
1616 (get_group_info): Set canon_base_addr to canon_rtx of base, not
1617 canon_rtx of base_mem.
1619 2009-04-23 Paolo Bonzini <bonzini@gnu.org>
1621 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
1622 Use memory_address_p instead of GO_IF_LEGITIMATE_ADDRESS.
1624 2009-04-23 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1626 * config/spu/spu-builtins.h: Delete file.
1628 * config/spu/spu.h (enum spu_builtin_type): Move here from
1630 (struct spu_builtin_description): Likewise. Add GTY marker.
1631 Do not use enum spu_function_code or enum insn_code.
1632 (spu_builtins): Add extern declaration.
1634 * config/spu/spu.c: Do not include "spu-builtins.h".
1635 (enum spu_function_code, enum spu_builtin_type_index,
1636 V16QI_type_node, V8HI_type_node, V4SI_type_node, V2DI_type_node,
1637 V4SF_type_node, V2DF_type_node, unsigned_V16QI_type_node,
1638 unsigned_V8HI_type_node, unsigned_V4SI_type_node,
1639 unsigned_V2DI_type_node): Move here from spu-builtins.h.
1640 (spu_builtin_types): Make static. Add GTY marker.
1641 (spu_builtins): Add extern declaration with GTY marker.
1644 * config/spu/spu-c.c: Do not include "spu-builtins.h".
1645 (spu_resolve_overloaded_builtin): Do not use spu_function_code.
1646 Check programmatically whether all parameters are scalar.
1648 * config/spu/t-spu-elf (spu.o, spu-c.o): Update dependencies.
1650 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
1652 * gimplify.c (gimplify_modify_expr_rhs) <VAR_DECL>: Do not do a direct
1653 assignment from the constructor either if the target is volatile.
1655 2009-04-23 Daniel Jacobowitz <dan@codesourcery.com>
1657 * config/arm/arm.md (insv): Do not share operands[0].
1659 2009-04-23 Nathan Sidwell <nathan@codesourcery.com>
1661 * config/vxlib-tls.c (active_tls_threads): Delete.
1662 (delete_hook_installed): New.
1663 (tls_delete_hook): Don't delete the delete hook.
1664 (tls_destructor): Delete it here.
1665 (__gthread_set_specific): Adjust installing the delete hook.
1666 (tls_delete_hook): Use __gthread_enter_tsd_dtor_context and
1667 __gthread_leave_tsd_dtor_context.
1669 2009-04-23 Rafael Avila de Espindola <espindola@google.com>
1671 * c-format.c (gcc_tdiag_char_table): Add support for %E.
1673 2009-04-23 Uros Bizjak <ubizjak@gmail.com>
1675 * config/alpha/alpha.c (alpha_legitimize_reload_address): Add cast to
1677 (alpha_rtx_costs): Ditto.
1678 (emit_unlikely_jump): Use add_reg_note.
1679 (emit_frame_store_1): Ditto.
1680 (alpha_expand_prologue): Ditto.
1681 (alpha_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
1682 * config/alpha/alpha.c (Unicos/Mk address splitter): Use add_reg_note.
1684 2009-04-23 Nick Clifton <nickc@redhat.com>
1686 * config/v850/v850.md (epilogue): Remove suppressed code.
1687 (return): Rename to return_simple and remove test of frame size.
1688 * config/v850/v850.c (expand_epilogue): Rename call to gen_return
1689 to gen_return_simple.
1691 2009-04-22 Jing Yu <jingyu@google.com>
1694 * config/arm/arm.h: Define HANDLE_PRAGMA_PACK_PUSH_POP.
1696 2009-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
1699 * c-typeck.c (process_init_element): Treat VECTOR_TYPE like ARRAY_TYPE
1700 and RECORD_TYPE/UNION_TYPE. When outputing the actual element and the
1701 value is a VECTOR_CST, the element type is the element type of the
1704 2009-04-22 DJ Delorie <dj@redhat.com>
1706 * config/m32c/m32c.h: Update GTY annotations to new syntax.
1708 2009-04-22 Jakub Jelinek <jakub@redhat.com>
1710 * alias.c (find_base_term): Move around LO_SUM case, so that
1711 CONST falls through into PLUS/MINUS handling.
1714 * fold-const.c (fold_binary) <case LSHIFT_EXPR>: When optimizing
1715 into 0, use omit_one_operand.
1717 2009-04-23 Ben Elliston <bje@au.ibm.com>
1719 * config/rs6000/linux-unwind.h (get_regs): Remove type
1720 puns. Change the type of `pc' to an array of unsigned ints and
1721 update all users. Constify frame24.
1723 2009-04-22 DJ Delorie <dj@redhat.com>
1725 * config/m32c/m32c.c (m32c_special_page_vector_p): Move
1726 declarations before code.
1727 (current_function_special_page_vector): Likewise.
1728 (m32c_expand_insv): Silence a warning.
1730 2009-04-21 Taras Glek <tglek@mozilla.com>
1732 * alias.c: Update GTY annotations to new syntax.
1733 * basic-block.h: Likewise.
1734 * bitmap.h: Likewise.
1735 * c-common.h: Likewise.
1736 * c-decl.c: Likewise.
1737 * c-parser.c: Likewise.
1738 * c-pragma.c: Likewise.
1739 * c-tree.h: Likewise.
1740 * cfgloop.h: Likewise.
1741 * cgraph.h: Likewise.
1742 * config/alpha/alpha.c: Likewise.
1743 * config/arm/arm.h: Likewise.
1744 * config/avr/avr.h: Likewise.
1745 * config/bfin/bfin.c: Likewise.
1746 * config/cris/cris.c: Likewise.
1747 * config/darwin.c: Likewise.
1748 * config/frv/frv.c: Likewise.
1749 * config/i386/i386.c: Likewise.
1750 * config/i386/i386.h: Likewise.
1751 * config/i386/winnt.c: Likewise.
1752 * config/ia64/ia64.h: Likewise.
1753 * config/iq2000/iq2000.c: Likewise.
1754 * config/mips/mips.c: Likewise.
1755 * config/mmix/mmix.h: Likewise.
1756 * config/pa/pa.c: Likewise.
1757 * config/pa/pa.h: Likewise.
1758 * config/rs6000/rs6000.c: Likewise.
1759 * config/s390/s390.c: Likewise.
1760 * config/sparc/sparc.c: Likewise.
1761 * config/xtensa/xtensa.c: Likewise.
1762 * cselib.h: Likewise.
1763 * dbxout.c: Likewise.
1764 * dwarf2out.c: Likewise.
1765 * except.c: Likewise.
1766 * except.h: Likewise.
1767 * fixed-value.h: Likewise.
1768 * function.c: Likewise.
1769 * function.h: Likewise.
1770 * gimple.h: Likewise.
1771 * integrate.c: Likewise.
1772 * optabs.c: Likewise.
1773 * output.h: Likewise.
1776 * stringpool.c: Likewise.
1777 * tree-data-ref.c: Likewise.
1778 * tree-flow.h: Likewise.
1779 * tree-scalar-evolution.c: Likewise.
1780 * tree-ssa-address.c: Likewise.
1781 * tree-ssa-alias.h: Likewise.
1782 * tree-ssa-operands.h: Likewise.
1785 * varasm.c: Likewise.
1786 * varray.h: Likewise.
1788 * coretypes.h: Do not define GTY macro if it is already defined.
1789 * doc/gty.texi: Update GTY documentation to new syntax.
1790 * gengtype-lex.l: Enforce attribute-like syntax for GTY
1791 annotations on structs.
1792 * gengtype-parse.c: Likewise.
1794 2009-04-22 Mark Heffernan <meheff@google.com>
1796 * gcc.c (LINK_COMMAND_SPEC): Link with gcov with -fprofile-generate=.
1798 2009-04-22 Kazu Hirata <kazu@codesourcery.com>
1800 * config/arm/arm.c (arm_rtx_costs_1): Use power_of_two_operand
1803 2009-04-22 Kazu Hirata <kazu@codesourcery.com>
1805 * config/arm/arm.c (arm_size_rtx_costs): Treat a PLUS with a shift
1806 the same as a PLUS without a shift. Increase the cost of a
1809 2009-04-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1811 * Makefile.in: Update dependencies.
1812 * errors.c (warning): Remove unused parameter 'opt'. Returns 'void'.
1813 * errors.h: Remove bogus comment about compatibility.
1814 (warning): Update declaration.
1815 * genautomata.c: Update all calls to warning.
1816 * gimple.c: Do not include errors.h. Include toplev.h.
1817 * tree-ssa-structalias.c: Do not include errors.h.
1818 * omega.c: Likewise.
1819 * tree-ssa-reassoc.c: Likewise.
1820 * config/spu/spu-c.c: Likewise.
1821 * config/spu/t-spu-elf: Update dependencies.
1823 2009-04-22 Richard Guenther <rguenther@suse.de>
1825 PR tree-optimization/39824
1826 * tree-ssa-ccp.c (fold_const_aggregate_ref): For INDIRECT_REFs
1827 make sure the types are compatible.
1829 2009-04-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1832 * c-common.c (c_parse_error): Take a token_flags parameter.
1833 Use token_type for the token type instead.
1834 Pass token_flags to cpp_type2name.
1835 * c-common.h (c_parse_error): Update declaration.
1836 * c-parser.c (c_parser_error): Pass 0 as token flags.
1838 2009-04-22 Andrey Belevantsev <abel@ispras.ru>
1840 PR rtl-optimization/39580
1841 * sel-sched-ir.c (insert_in_history_vect): Remove incorrect gcc_assert.
1843 2009-04-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1845 * function.c (expand_function_end): Do not emit a jump to the "naked"
1846 return label for fall-through returns.
1847 * except.c (sjlj_emit_function_exit): Always place the call to the
1848 unregister function at the location installed by expand_function_end.
1850 2009-04-22 Richard Guenther <rguenther@suse.de>
1852 PR tree-optimization/39845
1853 * tree-switch-conversion.c (build_arrays): Add new referenced vars.
1854 (gen_inbound_check): Likewise.
1856 2009-04-22 Nathan Sidwell <nathan@codesourcery.com>
1858 * gthr-vxworks.h (struct __gthread_once_t): Add alignment and
1860 (__GTHREAD_ONCE_INIT): Adjust ppc initializer.
1861 * config/vxlib.c (__gthread_once): Add race guard for PPC.
1863 2009-04-22 Paolo Bonzini <bonzini@gnu.org>
1865 * config/sh/sh.c (shift_insns_rtx, shiftcosts, gen_shifty_op,
1866 sh_dynamicalize_shift_p, shl_and_scr_length): Truncate
1867 shift counts to avoid out-of-bounds array accesses.
1869 2009-04-22 Paolo Bonzini <bonzini@gnu.org>
1871 * config/sparc/sparc.h (POINTER_SIZE): Fix comment.
1872 (Pmode): Move above.
1874 2009-04-22 Uros Bizjak <ubizjak@gmail.com>
1876 * config/alpha/alpha.c: Use REG_P, MEM_P, CONST_INT_P, JUMP_P,
1877 NONJUMP_INSN_P, CALL_P, LABEL_P and NOTE_P predicates instead of
1878 GET_CODE macro. Use IN_RANGE macro where appropriate.
1879 * config/alpha/alpha.h: Ditto.
1880 * config/alpha/alpha.md: Ditto.
1881 * config/alpha/constraints.md: Ditto.
1882 * config/alpha/predicates.md: Ditto.
1884 2009-04-22 Paolo Bonzini <bonzini@gnu.org>
1886 * defaults.h (GO_IF_MODE_DEPENDENT_ADDRESS): Provide empty default.
1887 * config/frv/frv.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
1888 * config/s390/s390.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
1889 * config/m32c/m32c.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
1890 * config/spu/spu.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
1891 * config/i386/i386.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
1892 * config/sh/sh.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
1893 * config/pdp11/pdp11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
1894 * config/avr/avr.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
1895 * config/crx/crx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
1896 * config/fr30/fr30.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
1897 * config/m68hc11/m68hc11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
1898 * config/cris/cris.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
1899 * config/iq2000/iq2000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
1900 * config/mn10300/mn10300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
1901 * config/ia64/ia64.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
1902 * config/m68k/m68k.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
1903 * config/picochip/picochip.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
1904 * config/arc/arc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
1905 * config/mcore/mcore.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
1906 * config/score/score.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
1907 * config/arm/arm.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
1908 * config/pa/pa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
1909 * config/mips/mips.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
1910 * config/v850/v850.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
1911 * config/mmix/mmix.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
1912 * config/bfin/bfin.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
1914 2009-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
1916 * cfghooks.c (tidy_fallthru_edges): Remove find_basic_blocks
1917 references from comments.
1918 * cfgbuild.c: (count_basic_blocks): Delete.
1919 (find_basic_blocks_1): Delete.
1920 (find_basic_blocks): Delete.
1921 * except.c (finish_eh_generation): Make static. Move comment from
1922 except.h here. Remove find_basic_blocks references from comments.
1923 * except.h (finish_eh_generation): Delete.
1924 * basic-block.h (find_basic_blocks): Delete.
1925 * config/sh/sh.c (sh_output_mi_thunk): Delete a "#if 0" block.
1927 2009-04-22 Dave Korn <dave.korn.cygwin@gmail.com>
1929 * sdbout.c (sdbout_symbol): Pass VOIDmode to eliminate_regs.
1930 (sdbout_parms): Likewise.
1932 2009-04-21 Kaz Kojima <kkojima@gcc.gnu.org>
1934 * config/sh/sh.c (prepare_cbranch_operands): Use
1935 LAST_AND_UNUSED_RTX_CODE instead of CODE_FOR_nothing.
1936 (expand_cbranchdi4): Likewise.
1937 (from_compare): Add cast to enum type.
1938 (expand_cbranchsi4): Use add_reg_note.
1939 (output_stack_adjust, push, pop, sh_expand_prologue): Likewise.
1940 (sh_insn_length_adjustment): Use sh_cpu_attr instead of sh_cpu.
1941 (sh_initialize_trampoline): Change 0 to LCT_NORMAL in function call.
1942 (sh_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
1943 * config/sh/sh.md (cbranchsi4): Use LAST_AND_UNUSED_RTX_CODE
1944 instead of CODE_FOR_nothing.
1945 (cbranchdi4): Likewise. Fix the order of arguments for
1947 (push_fpscr): Use add_reg_note.
1948 (pop_fpscr, movdf_i4+1, reload_outdf__RnFRm+3, reload_outdf__RnFRm+4,
1949 reload_outdf__RnFRm+5, fpu_switch+1, fpu_switch+2): Likewise.
1951 2009-04-21 Joseph Myers <joseph@codesourcery.com>
1953 * ABOUT-GCC-NLS, ChangeLog, ChangeLog-1997, ChangeLog-1998,
1954 ChangeLog-1999, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
1955 ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
1956 ChangeLog-2007, ChangeLog-2008, ChangeLog.dataflow, ChangeLog.lib,
1957 ChangeLog.ptr, ChangeLog.tree-ssa, ChangeLog.tuples, FSFChangeLog,
1958 FSFChangeLog.10, FSFChangeLog.11, LANGUAGES, ONEWS, acinclude.m4,
1959 config/alpha/gnu.h, config/alpha/libgcc-alpha-ldbl.ver,
1960 config/alpha/t-osf4, config/alpha/t-vms, config/alpha/va_list.h,
1961 config/alpha/x-vms, config/arc/t-arc,
1962 config/arm/README-interworking, config/arm/arm-c.c,
1963 config/arm/gentune.sh, config/arm/libgcc-bpabi.ver,
1964 config/arm/t-arm, config/arm/t-arm-elf, config/arm/t-arm-softfp,
1965 config/arm/t-bpabi, config/arm/t-linux, config/arm/t-linux-eabi,
1966 config/arm/t-netbsd, config/arm/t-pe, config/arm/t-strongarm-elf,
1967 config/arm/t-symbian, config/arm/t-vxworks, config/arm/t-wince-pe,
1968 config/avr/t-avr, config/bfin/elf.h, config/bfin/libgcc-bfin.ver,
1969 config/bfin/linux.h, config/bfin/t-bfin, config/bfin/t-bfin-elf,
1970 config/bfin/t-bfin-linux, config/bfin/t-bfin-uclinux,
1971 config/bfin/uclinux.h, config/cris/mulsi3.asm, config/cris/t-cris,
1972 config/cris/t-elfmulti, config/crx/t-crx,
1973 config/darwin-ppc-ldouble-patch.def, config/darwin-sections.def,
1974 config/divmod.c, config/fr30/t-fr30, config/frv/libgcc-frv.ver,
1975 config/frv/t-frv, config/frv/t-linux, config/h8300/genmova.sh,
1976 config/h8300/t-h8300, config/i386/athlon.md,
1977 config/i386/darwin-libgcc.10.4.ver,
1978 config/i386/darwin-libgcc.10.5.ver, config/i386/libgcc-glibc.ver,
1979 config/i386/mach.h, config/i386/netbsd.h, config/i386/t-crtpc,
1980 config/i386/t-cygming, config/i386/t-cygwin, config/i386/t-i386,
1981 config/i386/t-linux64, config/i386/t-nwld,
1982 config/i386/t-rtems-i386, config/i386/t-sol2-10,
1983 config/i386/x-mingw32, config/ia64/div.md, config/ia64/elf.h,
1984 config/ia64/ia64.opt, config/ia64/libgcc-glibc.ver,
1985 config/ia64/libgcc-ia64.ver, config/ia64/linux.h,
1986 config/ia64/sysv4.h, config/ia64/t-hpux, config/ia64/t-ia64,
1987 config/iq2000/abi, config/iq2000/lib2extra-funcs.c,
1988 config/iq2000/t-iq2000, config/libgcc-glibc.ver,
1989 config/m32r/libgcc-glibc.ver, config/m32r/t-linux,
1990 config/m32r/t-m32r, config/m68hc11/t-m68hc11,
1991 config/m68k/t-floatlib, config/m68k/t-linux, config/m68k/t-mlibs,
1992 config/m68k/t-uclinux, config/mcore/t-mcore,
1993 config/mcore/t-mcore-pe, config/mips/20kc.md, config/mips/4130.md,
1994 config/mips/5400.md, config/mips/5500.md, config/mips/crti.asm,
1995 config/mips/crtn.asm, config/mips/irix-crti.asm,
1996 config/mips/irix-crtn.asm, config/mips/libgcc-mips16.ver,
1997 config/mips/mips-dsp.md, config/mips/mips-dspr2.md,
1998 config/mips/mips-fixed.md, config/mips/sb1.md,
1999 config/mips/sr71k.md, config/mips/t-elf, config/mips/t-gofast,
2000 config/mips/t-iris6, config/mips/t-isa3264,
2001 config/mips/t-libgcc-mips16, config/mips/t-linux64,
2002 config/mips/t-mips, config/mips/t-r3900, config/mips/t-rtems,
2003 config/mips/t-sb1, config/mips/t-sde, config/mips/t-sdemtk,
2004 config/mips/t-slibgcc-irix, config/mips/t-sr71k, config/mips/t-st,
2005 config/mips/t-vr, config/mips/t-vxworks, config/mmix/t-mmix,
2006 config/mn10300/t-linux, config/mn10300/t-mn10300,
2007 config/pa/pa32-regs.h, config/pa/t-hpux-shlib, config/pa/t-linux,
2008 config/pa/t-linux64, config/pa/t-pa64, config/pdp11/t-pdp11,
2009 config/picochip/libgccExtras/clzsi2.asm,
2010 config/picochip/t-picochip, config/rs6000/darwin-ldouble-format,
2011 config/rs6000/darwin-libgcc.10.4.ver,
2012 config/rs6000/darwin-libgcc.10.5.ver,
2013 config/rs6000/libgcc-ppc-glibc.ver, config/rs6000/ppc-asm.h,
2014 config/rs6000/t-aix43, config/rs6000/t-aix52,
2015 config/rs6000/t-darwin, config/rs6000/t-fprules,
2016 config/rs6000/t-fprules-fpbit, config/rs6000/t-linux64,
2017 config/rs6000/t-lynx, config/rs6000/t-netbsd,
2018 config/rs6000/t-ppccomm, config/rs6000/t-ppcendian,
2019 config/rs6000/t-ppcgas, config/rs6000/t-rs6000,
2020 config/rs6000/t-rtems, config/rs6000/t-spe,
2021 config/rs6000/t-vxworks, config/s390/libgcc-glibc.ver,
2022 config/score/t-score-elf, config/sh/divcost-analysis,
2023 config/sh/libgcc-glibc.ver, config/sh/t-netbsd, config/sh/t-sh,
2024 config/sh/t-sh64, config/sh/t-superh, config/sh/t-symbian,
2025 config/sparc/libgcc-sparc-glibc.ver, config/sparc/sol2-bi.h,
2026 config/sparc/sol2-gas.h, config/sparc/sol2-gld-bi.h,
2027 config/sparc/t-elf, config/sparc/t-linux64, config/sparc/t-sol2,
2028 config/stormy16/stormy-abi, config/stormy16/t-stormy16,
2029 config/t-darwin, config/t-libunwind, config/t-libunwind-elf,
2030 config/t-linux, config/t-lynx, config/t-slibgcc-elf-ver,
2031 config/t-slibgcc-sld, config/t-sol2, config/t-vxworks,
2032 config/udivmod.c, config/udivmodsi4.c, config/v850/t-v850,
2033 config/v850/t-v850e, config/xtensa/t-xtensa, diagnostic.def,
2034 gdbinit.in, glimits.h, gstab.h, gsyms.h, java/ChangeLog,
2035 java/ChangeLog.ptr, java/ChangeLog.tree-ssa, libgcc-std.ver,
2036 limitx.h, version.c, xcoff.h: Add copyright and license notices.
2037 * config/h8300/genmova.sh: Include copyright and license notices
2038 in generated output.
2039 * config/h8300/mova.md: Regenerate.
2040 * doc/install.texi2html: Include word "Copyright" in copyright
2041 notice and use name "Free Software Foundation, Inc.".
2042 * ChangeLog, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
2043 ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
2044 ChangeLog-2007, ChangeLog-2008: Correct dates.
2046 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
2048 * c-common.c (c_common_truthvalue_conversion): Use LOCATION to build
2049 NE_EXPR operations as well.
2050 * c-parser.c (c_parser_condition): Do not set location information on
2052 (c_parser_conditional_expression): Likewise.
2053 (c_parser_binary_expression): Set location information on operators.
2054 * c-typeck.c (build_unary_op) <TRUTH_NOT_EXPR>: Reset the location if
2055 TRUTH_NOT_EXPR has been folded.
2056 * fold-const.c (fold_truth_not_expr): Copy location information from
2057 the incoming expression to the outgoing one.
2058 * gimplify.c (shortcut_cond_r): Add locus parameter. Pass it to
2059 recursive calls on the LHS of the operator but pass that of the
2060 operator to recursive calls on the RHS of the operator. Set it
2062 (shortcut_cond_expr): Set the locus of the operator on the second
2063 COND_EXPR and that of the expression on the first in degenerate cases.
2064 Pass the locus of the expression to calls to shortcut_cond_r.
2065 Set the locus of the 'then' block on the associated jump, if any.
2066 (gimplify_boolean_expr): Add locus parameter. Set it on the COND_EXPR.
2067 (gimplify_expr) <TRUTH_ANDIF_EXPR>: Pass the locus of the outer
2068 expression to call to gimplify_boolean_expr.
2070 2009-04-21 Kai Tietz <kai.tietz@onevision.com>
2072 * config.gcc: Add additional configuration for
2073 i686-w64-mingw* and x86_64-w64-mingw* triplet.
2074 * config/i386/mingw-w64.h: New mingw-w64 specific header.
2075 (CPP_SPEC): Redefine for allowing -municode option.
2076 (STARTFILE_SPEC): Likewise.
2077 * config/i386/t-mingw-w64: New.
2078 * config/i386/mingw-w64.opt: New.
2079 (municode): Add new target option.
2080 * doc/invoke.texi (municode): Add documentation for new option.
2082 2009-04-21 Ian Lance Taylor <iant@google.com>
2084 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
2085 Correct test for number of arguments.
2086 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
2088 2009-04-21 Andreas Schwab <schwab@linux-m68k.org>
2090 * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Use enum for second
2091 argument of emit_library_call.
2093 2009-04-21 Richard Guenther <rguenther@suse.de>
2096 * gimple.c (walk_stmt_load_store_addr_ops): Catch addresses
2097 inside VIEW_CONVERT_EXPRs.
2099 2009-04-21 Martin Jambor <mjambor@suse.cz>
2101 * tree-switch-conversion.c (build_constructors): Split a long line.
2102 (constructor_contains_same_values_p): New function.
2103 (build_one_array): Create assigns of constants if possible, do not
2104 call mark_sym_for_renaming, call update_stmt.
2105 (build_arrays): Call make_ssa_name (create_tmp_var ()) instead of
2106 make_rename_temp. Do not call mark_symbols_for_renaming, call
2108 (gen_def_assigns): Do not call mark_symbols_for_renaming or
2109 find_new_referenced_vars, call update_stmt.
2110 (gen_inbound_check): Use create_tmp_var and create ssa names manually
2111 instead of calling make_rename_temp. Do not call
2112 find_new_referenced_vars or mark_symbols_for_renaming, call
2115 2009-04-21 Richard Guenther <rguenther@suse.de>
2117 PR tree-optimization/39827
2118 * tree-ssa-phiprop.c (propagate_with_phi): Check SSA_NAME is in range.
2119 (tree_ssa_phiprop): Pass the correct array size.
2121 2009-04-21 Uros Bizjak <ubizjak@gmail.com>
2123 * config/alpha/alpha.md (tune): Add cast to enum attr_tune.
2125 2009-04-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
2128 * c-typeck.c (lvalue_p): Move declaration ...
2129 * c-common.h (lvalue_p): ... to here.
2130 * c-common.c (candidate_equal_p): New.
2131 (add_tlist): Use it.
2132 (merge_tlist): Use it.
2133 (warn_for_collisions_1): Likewise.
2134 (warning_candidate_p): Accept more candidates.
2135 (verify_tree): A warning candidate can be an expression. Use
2138 2009-04-21 Ben Elliston <bje@au.ibm.com>
2141 * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
2142 for -mcall-eabi, -mcall-aixdesc, -mcall-freebsd and -mcall-openbsd
2143 options. Remove -mcall-solaris documentation.
2145 2009-04-21 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2148 * doc/invoke.texi (-Wlong-long): Update description.
2149 * c-lex (interpret_integer): Only warn if there was no previous
2150 overflow and -Wlong-long is enabled.
2151 * c-decl.c (declspecs_add_type): Drop redundant flags.
2152 * c.opt (Wlong-long): Init to -1.
2153 * c-opts.c (sanitize_cpp_opts): Synchronize cpp's warn_long_long
2154 and front-end warn_long_long. Wlong-long only depends on other
2155 flags if it is uninitialized.
2156 * c-parser.c (disable_extension_diagnostics): warn_long_long is
2157 the same for CPP and FE.
2158 (restore_extension_diagnostics): Likewise.
2160 2009-04-20 Ian Lance Taylor <iant@google.com>
2162 Fix enum conversions which are invalid in C++:
2163 * auto-inc-dec.c (attempt_change): Change 0 to SET in function call.
2164 * calls.c (store_one_arg): Change 0 to EXPAND_NORMAL in function call.
2165 * cse.c (hash_rtx_cb): Change 0 to VOIDmode in function call.
2166 * dbgcnt.c (dbg_cnt_set_limit_by_name): Add cast to enum type.
2167 * dbxout.c (dbxout_symbol): Change 0 to VOIDmode in function call.
2168 (dbxout_parms): Likewise.
2169 * df-core.c (df_set_flags): Change changeable_flags parameter to int.
2170 (df_clear_flags): Likewise.
2171 * df-problems.c (df_rd_bb_local_compute_process_def): Change
2172 top_flag parameter to int.
2173 (df_chain_create_bb_process_use): Likewise.
2174 (df_chain_add_problem): Change chain_flags parameter to unsigned int.
2176 * df-scan.c (df_ref_create): Change ref_flags parameter to int.
2177 (df_ref_create_structure, df_def_record_1): Likewise.
2178 (df_defs_record, df_uses_record, df_get_call_refs): Likewise.
2179 (df_notes_rescan): Change 0 to VOIDmode in function call.
2180 (df_get_call_refs, df_insn_refs_collect): Likewise.
2181 (df_bb_regs_collect): Likewise.
2182 (df_entry_block_defs_collect): Likewise.
2183 (df_exit_block_uses_collect): Likewise.
2184 * df.h: Update declarations.
2185 * double-int.c (double_int_divmod): Add cast to enum type.
2186 * dse.c (replace_inc_dec): Reverse parameters to gen_int_mode.
2187 * dwarf2out.c (new_reg_loc_descr): Add casts to enum type.
2188 (based_loc_descr): Likewise.
2189 (loc_descriptor_from_tree_1): Change first_op and second_op to
2190 enum dwarf_location_atom. Add cast to enum type.
2191 * expmed.c (init_expmed): Change 0 to SET in function call.
2192 * expr.c (init_expr_target): Change 0 to VOIDmode in function call.
2193 (expand_expr_real_1): Change 0 to EXPAND_NORMAL in function call.
2194 (do_store_flag): Likewise.
2195 * fixed-value.h (struct fixed_value): Change mode to enum
2197 * function.c (assign_parms): Change 0 to VOIDmode in function call.
2198 * genautomata.c (insert_automaton_decl): Change 1 to INSERT in
2200 (insert_insn_decl, insert_decl, insert_state): Likewise.
2201 (automata_list_finish): Likewise.
2202 * genrecog.c (process_define_predicate): Add cast to enum type.
2203 * gensupport.c (init_predicate_table): Add cast to enum type.
2204 * gimple.c (gimple_build_return): Change 0 to ERROR_MARK in
2206 (gimple_build_call_1, gimple_build_label): Likewise.
2207 (gimple_build_goto, gimple_build_asm_1): Likewise.
2208 (gimple_build_switch_1, gimple_build_cdt): Likewise.
2209 * gimple.h (GIMPLE_CHECK): Change 0 to ERROR_MARK in function call.
2210 (enum fallback): Rename from enum fallback_t.
2211 (fallback_t): Typedef as int.
2212 * gimple-low.c (lower_builtin_setjmp): Change TSI_SAME_STMT to
2213 GSI_SAME_STMT in function call.
2214 * ira.c (setup_class_subset_and_memory_move_costs): Add casts to
2216 (setup_reg_class_relations): Likewise.
2217 (setup_reg_class_nregs): Change cl to int. Add casts to enum type.
2218 (setup_prohibited_class_mode_regs): Add cast to enum type.
2219 (setup_prohibited_mode_move_regs): Likewise.
2220 * ira-costs.c (record_reg_classes): Change rclass to enum reg_class.
2221 (record_address_regs): Change i to enum reg_class.
2222 * lists.c (alloc_EXPR_LIST): Add cast to enum type.
2223 * machmode.h (GET_MODE_CLASS): Cast value to enum mode_class.
2224 (GET_MODE_WIDER_MODE): Cast value to enum machine_mode.
2225 (GET_MODE_2XWIDER_MODE): Likewise.
2226 (GET_CLASS_NARROWEST_MODE): Likewise.
2227 * omp-low.c (expand_omp_for): Add cast to enum type.
2228 * optabs.c (debug_optab_libfuncs): Add casts to enum type.
2229 * opts.c (enable_warning_as_error): Change kind to diagostic_t.
2230 * postreload.c (reload_cse_simplify_operands): Change rclass local
2232 * predict.c (combine_predictions_for_insn): Change best_predictor
2233 and predictor to enum br_predictor.
2234 (combine_predictions_for_bb): Likewise.
2235 (build_predict_expr): Change assignment to PREDICT_EXPR_OUTCOME to
2236 use SET_PREDICT_EXPR_OUTCOME.
2237 * real.c (real_arithmetic): Change icode to code in function call.
2238 * reginfo.c (init_move_cost): Add casts to enum type.
2239 (init_reg_sets_1, init_fake_stack_mems): Likewise.
2240 * regmove.c (regclass_compatible_p): Change class0 and class1 to
2242 * reload.c (find_valid_class): Add casts to enum type.
2243 (push_reload): Change 0 to NO_REGS in function call.
2244 (find_reloads): Change this_alternative to array of enum
2245 reg_class. Remove some now-unnecessary casts.
2246 (make_memloc): Change 0 to VOIDmode in function call.
2247 * reload1.c (reload): Change 0 to VOIDmode in function call.
2248 (eliminate_regs_1, elimination_effects): Likewise.
2249 (eliminate_regs_in_insn): Likewise.
2250 (emit_input_reload_insns): Add cast to enum type.
2251 (delete_output_reload): Change 0 to VOIDmode in function call.
2252 * reorg.c (insn_sets_resource_p): Convert include_delayed_effects
2253 to enum type in function call.
2254 * tree.h (PREDICT_EXPR_OUTCOME): Add cast to enum type.
2255 (SET_PREDICT_EXPR_OUTCOME): Define.
2256 * tree-dump.c (get_dump_file_info): Change phase parameter to int.
2257 (get_dump_file_name, dump_begin, dump_enabled_p): Likewise.
2258 (dump_initialized_p, dump_flag_name, dump_end): Likewise.
2259 (dump_function): Likewise.
2260 * tree-dump.h: Update declarations.
2261 * tree-pass.h: Update declarations.
2262 * varasm.c (assemble_integer): Change mclass to enum mode_class.
2263 * config/arm/arm.c (thumb_legitimize_reload_address): Add cast to
2265 (arm_rtx_costs_1): Correct parenthesization.
2266 (arm_rtx_costs): Add casts to enum type.
2267 (adjacent_mem_locations): Reverse arguments to const_ok_for_op.
2268 (vfp_emit_fstmd): Use add_rg_note.
2269 (emit_multi_reg_push, emit_sfm): Likewise.
2270 (thumb_set_frame_pointer): Likewise.
2271 (arm_expand_prologue): Likewise.
2272 (arm_regno_class): Change return type to enum reg_class.
2273 (thumb1_expand_prologue): Use add_reg_note.
2274 * config/arm/arm-protos.h (arm_regno_class): Update declaration.
2275 * config/arm/arm.h (INITIALIZE_TRAMPOLINE): Change 0 to LCT_NORMAL
2277 * config/arm/gentune.sh: Add cast to enum type.
2278 * config/arm/arm-tune.md: Rebuild.
2279 * config/i386/i386.c (ix86_expand_prologue): Use add_reg_note.
2280 (ix86_split_fp_branch, predict_jump): Likewise.
2281 (ix86_expand_multi_arg_builtin): Change sub_code from enum
2282 insn_code to enum rtx_code.
2283 (ix86_builtin_vectorized_function): Add cast to enum type.
2284 * config/i386/i386.md (truncdfsf2): Change slot to enum
2286 (truncxf<mode>2, isinf<mode>2): Likewise.
2287 * config/i386/i386-c.c (ix86_pragma_target_parse): Add cast to
2289 * config/ia64/ia64.c (ia64_split_tmode_move): Use add_reg_note.
2290 (spill_restore_mem, do_spill, ia64_expand_prologue): Likewise.
2291 (insert_bundle_state): Change 1 to INSERT in function call.
2292 (ia64_add_bundle_selector_before): Likewise.
2293 * config/ia64/ia64.md (cpu attr): Add cast to enum type.
2294 (save_stack_nonlocal): Change 0 to LCT_NORMAL in function call.
2295 (restore_stack_nonlocal): Likewise.
2296 * config/mips/mips.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL in
2298 * config/mips/mips.c (mips_binary_cost): Change 0 to SET in
2300 (mips_rtx_costs): Likewise.
2301 (mips_override_options): Add casts to enum type.
2302 * config/mips/sdemtk.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL
2304 * config/pa/pa.c (legitimize_pic_address): Use add_reg_note.
2305 (store_reg, set_reg_plus_d): Likewise.
2306 (hppa_expand_prologue, hppa_profile_hook): Likewise.
2307 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
2309 (altivec_expand_vec_set_builtin): Change 0 to EXPAND_NORMAL in
2311 (emit_unlikely_jump): Use add_reg_note.
2312 (rs6000_emit_allocate_stack): Likewise.
2313 (rs6000_frame_related, rs6000_emit_prologue): Likewise.
2314 (output_toc): Change 1 to INSERT in function call.
2315 (output_profile_hook): Change 0 to LCT_NORMAL in function call.
2316 (rs6000_initialize_trampoline): Likewise.
2317 (rs6000_init_dwarf_reg_sizes_extra): Change 0 to EXPAND_NORMAL in
2319 * config/s390/s390.c (s390_rtx_costs): Add cast to enum type.
2320 (s390_expand_movmem): Change 0 to OPTAB_DIRECT in function call.
2321 (s390_expand_setmem, s390_expand_cmpmem): Likewise.
2322 (save_gprs): Use add_reg_note.
2323 (s390_emit_prologue): Likewise.
2324 (s390_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
2325 * config/sparc/sparc.c (sparc_expand_prologue): Use add_reg_note.
2326 (sparc_fold_builtin): Add cast to enum type.
2327 * config/spu/spu.c (spu_emit_branch_or_set): Change ior_code to
2329 (spu_expand_prologue): Use add_reg_note.
2330 (expand_builtin_args): Change 0 to EXPAND_NORMAL in function call.
2332 2009-04-20 Ian Lance Taylor <iant@google.com>
2334 * c-parser.c (c_parser_attributes): Change VEC back to tree list.
2335 (c_parser_postfix_expression_after_primary): Get VEC for list of
2336 arguments. Get original types of arguments. Call
2337 build_function_call_vec.
2338 (cached_expr_list_1, cached_expr_list_2): New static variables.
2339 (c_parser_expr_list): Change return type to VEC *. Add
2340 p_orig_types parameter. Change all callers.
2341 (c_parser_release_expr): New static function.
2342 (c_parser_vec_to_tree_list): New static function.
2343 * c-typeck.c (build_function_call): Rewrite to build a VEC and
2344 call build_function_call_vec.
2345 (build_function_call_vec): New function, based on old
2346 build_function_call.
2347 (convert_arguments): Remove nargs and argarray parameters. Change
2348 values to a VEC. Add origtypes parameter.
2349 (build_modify_expr): Add rhs_origtype parameter. Change all callers.
2350 (convert_for_assignment): Add origtype parameter. Change all
2351 callers. If warn_cxx_compat, check for conversion to an enum
2352 type when calling a function.
2353 (store_init_value): Add origtype parameter. Change all callers.
2354 (digest_init): Likewise.
2355 (struct init_node): Add origtype field.
2356 (add_pending_init): Add origtype parameter. Change all callers.
2357 (output_init_element): Likewise.
2358 (output_pending_init_elements): Pass origtype from init_node to
2359 output_init_element.
2360 (process_init_element): Pass origtype from c_expr to
2361 output_init_element.
2362 (c_finish_return): Add origtype parameter. Change all callers.
2363 * c-common.c (sync_resolve_size): Change params to VEC *. Change
2365 (sync_resolve_params): Likewise.
2366 (sync_resolve_return): Change params to first_param. Change caller.
2367 (resolve_overloaded_builtins): Change params to VEC *. Change
2368 callers. Save first parameter around call to build_function_call_vec.
2369 * c-decl.c (finish_decl): Add origtype parameter. Change all
2370 callers. Call build_function_call_vec rather than
2371 build_function_call for cleanup.
2372 * c-tree.h: Update declarations.
2373 * c-common.h: Update declarations.
2374 * stub-objc.c (objc_rewrite_function_call): Change parameter from
2375 params to first_param.
2376 * target.h (struct gcc_target): Change resolve_overloaded_builtin
2377 params parameter from tree to void *.
2378 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
2379 Change arglist parameter to have type void *, and to be a pointer
2381 * config/rs6000/rs6000-protos.h
2382 (altivec_resolve_overloaded_builtin): Update declaration.
2383 * config/spu/spu-c.c (spu_resolved_overloaded_builtin): Change
2384 fnargs parameter to have type void *, and to be a pointer to a
2385 VEC. Call build_function_call_vec instead of
2386 build_function_call.
2387 * config/spu/spu-protos.h (spu_expand_builtin): Update declaration.
2389 2009-04-20 Joey Ye <joey.ye@intel.com>
2390 Xuepeng Guo <xuepeng.guo@intel.com>
2391 H.J. Lu <hongjiu.lu@intel.com>
2393 * config/i386/atom.md: Add bypasses with ix86_dep_by_shift_count.
2395 * config/i386/i386.c (LEA_SEARCH_THRESHOLD): New macro.
2396 (IX86_LEA_PRIORITY): Likewise.
2397 (distance_non_agu_define): New function.
2398 (distance_agu_use): Likewise.
2399 (ix86_lea_for_add_ok): Likewise.
2400 (ix86_dep_by_shift_count): Likewise.
2402 * config/i386/i386.md: Call ix86_lea_for_add_ok to decide we
2403 should split for LEA.
2405 * config/i386/i386-protos.h (ix86_lea_for_add_ok): Declare new
2407 (ix86_dep_by_shift_count): Likewise.
2409 2009-04-20 Richard Guenther <rguenther@suse.de>
2411 * expr.c (handled_component_p): Move ...
2412 * tree.h (handled_component_p): ... here.
2413 * tree.def: Re-order BIT_FIELD_REF, COMPONENT_REF,
2414 ARRAY_REF, ARRAY_RANGE_REF, VIEW_CONVERT_EXPR, IMAGPART_EXPR
2415 and REALPART_EXPR to be in one group.
2417 2009-04-20 Richard Guenther <rguenther@suse.de>
2419 * basic-block.h (get_all_dominated_blocks): Declare.
2420 * dominance.c (get_all_dominated_blocks): New function.
2421 * tree-cfg.c (get_all_dominated_blocks): Remove.
2422 (remove_edge_and_dominated_blocks): Adjust.
2423 * tree-ssa-phiprop.c (tree_ssa_phiprop_1): Fold in ...
2424 (tree_ssa_phiprop): ... here. Use get_all_dominated_blocks
2425 instead of recursing.
2427 2009-04-20 Doug Kwan <dougkwan@google.com>
2429 * cgraph.h (cgraph_node_ptr): New type for vector functions.
2430 (struct cgraph_node_set_def): New type.
2431 (cgraph_node_set) New type. Also declare vector functions.
2432 (struct cgraph_node_set_element_def): New type.
2433 (cgraph_node_set_element): Ditto.
2434 (cgraph_node_set_iterator): New iterator type.
2435 (cgraph_node_set_new, cgraph_node_set_find, cgraph_node_set_add,
2436 cgraph_node_set_remove, dump_cgraph_node_set,
2437 debug_cgraph_node_set): New prototypes.
2438 (csi_end_p, csi_next, csi_node, csi_start, cgraph_node_in_set_p,
2439 cgraph_node_set_size): New inlines.
2440 * tree-pass.h (struct cgraph_node_set_def): New decl to avoid
2442 (struct ipa_opt_pass): Add struct cgraph_node_set_def
2443 argument to function 'write_summary'.
2444 * ipa.c: Include ggc.h.
2445 (hash_cgraph_node_set_element,
2446 eq_cgraph_node_set_element, cgraph_node_set_new,
2447 cgraph_node_set_add, cgraph_node_set_remove,
2448 cgraph_node_set_find, dump_cgraph_node_set,
2449 debug_cgraph_node_set): New functions.
2450 * Makefile.in (ipa.o): Add dependency on GGC_H.
2452 2009-04-20 Ira Rosen <irar@il.ibm.com>
2454 PR tree-optimization/39675
2455 * tree-vect-loop.c (vect_transform_loop): Remove currently redundant
2456 check of the return code of vect_schedule_slp. Check that
2457 stmt_vec_info still exists for the statement, before checking its
2460 2009-04-20 Michael Matz <matz@suse.de>
2462 * Makefile.in (generated_files): Take out $(simple_generated_c).
2464 2009-04-19 Dave Korn <dave.korn.cygwin@gmail.com>
2466 * config/i386/cygwin-stdint.h (INTPTR_TYPE): Remove "long".
2467 (UINTPTR_TYPE): Likewise.
2469 2009-04-19 Joseph Myers <joseph@codesourcery.com>
2472 * c-typeck.c (digest_init): Check for initializing an array with a
2475 2009-04-19 Joseph Myers <joseph@codesourcery.com>
2478 * c-semantics.c (pop_stmt_list): Propagate
2479 STATEMENT_LIST_HAS_LABEL to parent statement list.
2481 2009-04-19 Adam Nemet <anemet@caviumnetworks.com>
2483 * config/mips/mips.h (mips_tune_attr): New macro.
2484 * config/mips/mips.md (cpu): Use it.
2486 2009-04-19 Joseph Myers <joseph@codesourcery.com>
2489 * c-decl.c (shadow_tag_warned): Diagnose use of restrict when
2492 2009-04-19 Diego Novillo <dnovillo@google.com>
2494 * toplev.c (compile_file): Move call to coverage_finish ...
2495 * cgraphunit.c (ipa_passes): ... here.
2496 Call cgraph_process_new_functions.
2497 * ipa-utils.c (get_base_var): Handle CONSTRUCTOR.
2498 * Makefile.in (cgraphunit.o): Add dependency on COVERAGE_H.
2500 2009-04-19 Jan Hubicka <jh@suse.cz>
2502 * cgraph.c (cgraph_create_edge, cgraph_set_call_stmt): Set proper
2504 (dump_cgraph_node): Dump can throw external flag.
2505 * ipa-pure-const.c (propagate): Fix propagation of nothrow flags.
2507 2009-04-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
2511 * doc/invoke.texi: Add -Wlogical-op to -Wextra.
2512 * common.opt (Wlogical-op): Move from here...
2513 * c.opt (Wlogical-op): ... to here.
2514 * c-typeck.c (parser_build_binary_op): Update call to
2515 warn_logical_operator.
2516 * c-opts.c (c_common_post_options): Enable warn_logical_op with
2518 * c-common.c (warn_logical_op): Update.
2519 * c-common.h (warn_logical_op): Update declaration.
2521 2009-04-19 Eric Botcazou <ebotcazou@adacore.com>
2523 * tree.c (protected_set_expr_location): Fix formatting.
2525 2009-04-18 Joseph Myers <joseph@codesourcery.com>
2528 * c-typeck.c (readonly_warning): new.
2529 (build_unary_op, build_modify_expr): Use readonly_warning for
2530 storing into something readonly but not const-qualified.
2532 2009-04-18 Joseph Myers <joseph@codesourcery.com>
2535 * c-typeck.c (build_unary_op): Check for taking address of
2536 expression of type void.
2538 2009-04-18 Joseph Myers <joseph@codesourcery.com>
2541 * c-typeck.c (build_function_call): Check for calling a function
2542 with qualified void return types. Call require_complete_type when
2545 2009-04-18 Jan Hubicka <jh@suse.cz>
2547 * cgraph.c (cgraph_make_edge, dump_cgraph_node, cgraph_set_call_stmt):
2549 * cgraph.h (struct function): Reduce loop_nest to 30 bits; add
2550 can_throw_external flag.
2551 * ipa-reference.c (ipa_utils_reduced_inorder): Update call.
2552 * ipa-pure-const.c (ignore_edge): New function.
2553 (propagate): Compute order for NOTHROW computation; set NOTHROWs
2554 only over can_throw_external edges.
2555 (local_pure_const): Add nothrow flag.
2556 * ipa-utils.c (searchc): Add ignore_edge callback.
2557 (ipa_utils_reduced_inorder): Add ignore_edge callback.
2558 * ipa-utils.h (ipa_utils_reduced_inorder): Update prototype.
2559 (set_nothrow_function_flags): Update cgraph.
2560 * tree-cfg.c (verify_stmt): Relax nothrow checking when in IPA mode.
2562 2009-04-18 Richard Guenther <rguenther@suse.de>
2565 * tree-ssa-ccp.c (fold_stmt_1): New function factored from ...
2566 (fold_stmt): ... this and ...
2567 (fold_stmt_inplace): ... this.
2568 (fold_stmt_1): Fold references in calls and asms.
2569 * tree-cfg.c (remove_useless_stmts_cond): Use fold_stmt.
2571 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
2573 * tree-vrp.c (ssa_name_nonzero_p): Remove.
2574 * tree.h: Remove the prototype for ssa_name_nonzero_p.
2576 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
2578 * tree.c (function_args_count): Remove.
2579 * tree.h: Remove the prototype for function_args_count.
2581 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
2583 * tree-iterator.c (expr_only): Remove.
2584 * tree.h: Remove the prototype for expr_only.
2586 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
2588 * reginfo.c (cannot_change_mode_set_regs): Remove.
2589 * rtl.h: Remove the prototype for cannot_change_mode_set_regs.
2591 2009-04-08 Anatoly Sokolov <aesok@post.ru>
2593 * config/avr/avr.md (*rotlsi3_8, *rotlsi3_16, *rotlsi3_24 ): Check
2594 whether operands 0 and 1 overlaps.
2596 2009-04-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
2599 * tree-vrp.c (check_array_ref): Pass a location_t instead of a
2600 pointer. Use warning_at instead of warning.
2601 (search_for_addr_array): Likewise.
2602 (check_array_bounds): Likewise.
2603 (check_all_array_refs): Check that the incoming edge is not in the
2604 list of edges to be removed.
2605 (check_all_array_refs): Avoid the temporal pointer.
2606 (vrp_visit_cond_stmt): Fix typo.
2607 (simplify_switch_using_ranges): Handle the case where the switch
2608 index is an integer constant.
2610 2009-04-18 Adam Nemet <anemet@caviumnetworks.com>
2612 * config/mips/mips.c (mips_final_postscan_insn): Make it static.
2614 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
2616 * doc/extend.texi, doc/invoke.texi: Fix typos.
2618 2009-04-17 Cary Coutant <ccoutant@google.com>
2620 * tree-flow-inline.h (get_lineno): Fix inverted test.
2622 2009-04-17 Diego Novillo <dnovillo@google.com>
2624 * tree-ssa-pre.c (create_expression_by_pieces): Remove
2625 assertion for AVAIL_OUT.
2627 2009-04-17 Mike Frysinger <vapier@gentoo.org>
2630 * config/sh/lib1funcs.asm [__ELF__ && __linux__]: Add .note.GNU-stack.
2631 * config/sh/linux-atomic.asm: Likewise.
2633 2009-04-17 Diego Novillo <dnovillo@google.com>
2635 * except.c (debug_eh_tree): New.
2636 (struct eh_region, struct eh_status): Move ...
2637 * except.h: ... here.
2638 (add_type_for_runtime): Declare extern.
2639 (lookup_type_for_runtime): Likewise.
2640 (debug_eh_tree): Declare.
2641 * Makefile.in (GTFILES): List except.h before except.c
2643 2009-04-17 Diego Novillo <dnovillo@google.com>
2645 * omp-low.c (create_omp_child_function): Set DECL_CONTEXT for DECL.
2646 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
2647 * tree-dfa.c (find_referenced_vars_in): Factor out of ...
2648 (find_vars_r): ... here.
2649 * tree-flow.h (find_referenced_vars_in): Declare.
2650 * tree-ssa-pre.c (create_expression_by_pieces): Assert
2651 that AVAIL_OUT exists for BLOCK.
2652 * Makefile.in (CGRAPH_H): Add dependency on cif-code.def
2653 (tree-loop-distribution.o): Fix dependency on TREE_VECTORIZER_H.
2654 (tree-parloops.o): Likewise.
2656 2009-04-17 Simon Baldwin <simonb@google.com>
2658 * toplev.c (default_tree_printer): Add handling for %E format.
2660 2009-04-17 Diego Novillo <dnovillo@google.com>
2662 * tree-pretty-print.c (dump_generic_node): Add break after
2663 TREE_BINFO handler. Handle COMPLEX_TYPE, REAL_TYPE and
2664 FIXED_POINT_TYPE. Handle NULL TREE_TYPEs. Handle METHOD_TYPE and
2665 FUNCTION_TYPE together. Call print_struct_decl when printing
2666 structures and TDF_SLIM is not given.
2667 (print_struct_decl): Fix logic for detecting recursion.
2669 2009-04-17 Rafael Avila de Espindola <espindola@google.com>
2672 * gcc.c (create_at_file): New.
2673 (compile_input_file_p): New.
2674 (do_spec_1): Use @args files for %i. Use create_at_file for %o.
2675 * main.c (main): Update call to toplev_main.
2676 * toplev.c (toplev_main): Change signature. Call expandargv.
2677 * toplev.h (toplev_main): Change signature.
2679 2009-04-17 Eric Botcazou <ebotcazou@adacore.com>
2681 * dwarf2out.c (field_byte_offset): Use the type size as the field size
2682 if the latter is not constant.
2684 2009-04-17 David Edelsohn <edelsohn@gnu.org>
2686 * dbxout.c (xcoff_debug_hooks): Add set_name_debug_nothing.
2688 2009-04-17 Eric Botcazou <ebotcazou@adacore.com>
2690 * dbxout.c (dbxout_block): Reinstate test on TREE_USED.
2691 * tree-ssa-live.c (remove_unused_scope_block_p): Update TREE_USED bit.
2693 2009-04-17 Richard Guenther <rguenther@suse.de>
2695 * tree-ssa-structalias.c (get_constraint_for_component_ref):
2696 Handle component references view-converting an invariant address.
2698 2009-04-17 Adam Nemet <anemet@caviumnetworks.com>
2700 * doc/tm.texi (TARGET_DEFAULT_TARGET_FLAGS,
2701 TARGET_MIN_ANCHOR_OFFSET, TARGET_MAX_ANCHOR_OFFSET,
2702 TARGET_HAVE_SRODATA_SECTION, TARGET_HAVE_TLS,
2703 TARGET_UNWIND_TABLES_DEFAULT, TARGET_TERMINATE_DW2_EH_FRAME_INFO):
2704 Use @deftypevr rather than @deftypevar.
2706 2009-04-17 Richard Guenther <rguenther@suse.de>
2708 * tree-ssa-forwprop.c (get_prop_dest_stmt): Clean up tuplification.
2709 (get_prop_source_stmt): Likewise.
2710 (can_propagate_from): Likewise.
2712 2009-04-17 Andrew Stubbs <ams@codesourcery.com>
2714 * configure.ac: Add new AC_SUBST for TM_ENDIAN_CONFIG,
2715 TM_MULTILIB_CONFIG and TM_MULTILIB_EXCEPTIONS_CONFIG.
2716 (--with-multilib-list): Add default value.
2717 * configure: Regenerate.
2718 * Makefile.in (TM_ENDIAN_CONFIG): Define.
2719 (TM_MULTILIB_CONFIG, TM_MULTILIB_EXCEPTIONS_CONFIG): Define.
2720 * config.gcc (sh-*-*): Switch to using TM_ENDIAN_CONFIG,
2721 TM_MULTILIB_CONFIG, and TM_MULTILIB_EXCEPTIONS_CONFIG.
2722 Don't add default cpu to multilib list unnecessarily, but do enable
2723 the relevant compiler option..
2724 Add support for --with-multilib-list=<blank> and
2725 --with-multilib-list=!<somelib> to supress unwanted multilibs.
2726 * config/sh/t-sh (DEFAULT_ENDIAN, OTHER_ENDIAN): New variables.
2727 (MULTILIB_ENDIAN, MULTILIB_CPUS): Delete variables.
2728 (MULTILIB_OPTIONS): Redefine using OTHER_ENDIAN and
2730 (MULTILIB_EXCEPTIONS): Add TM_MULTILIB_EXCEPTIONS_CONFIG.
2731 (MULTILIB_OSDIRNAMES): New variable.
2732 * config/sh/t-1e: Delete file.
2733 * config/sh/t-mlib-sh1: Delete file.
2734 * config/sh/t-mlib-sh2: Delete file.
2735 * config/sh/t-mlib-sh2a: Delete file.
2736 * config/sh/t-mlib-sh2a-nofpu: Delete file.
2737 * config/sh/t-mlib-sh2a-single: Delete file.
2738 * config/sh/t-mlib-sh2a-single-only: Delete file.
2739 * config/sh/t-mlib-sh2e: Delete file.
2740 * config/sh/t-mlib-sh3e: Delete file.
2741 * config/sh/t-mlib-sh4: Delete file.
2742 * config/sh/t-mlib-sh4-nofpu: Delete file.
2743 * config/sh/t-mlib-sh4-single: Delete file.
2744 * config/sh/t-mlib-sh4-single-only: Delete file.
2745 * config/sh/t-mlib-sh4a: Delete file.
2746 * config/sh/t-mlib-sh4a-nofpu: Delete file.
2747 * config/sh/t-mlib-sh4a-single: Delete file.
2748 * config/sh/t-mlib-sh4a-single-only: Delete file.
2749 * config/sh/t-mlib-sh4al: Delete file.
2750 * config/sh/t-mlib-sh5-32media: Delete file.
2751 * config/sh/t-mlib-sh5-32media-nofpu: Delete file.
2752 * config/sh/t-mlib-sh5-64media: Delete file.
2753 * config/sh/t-mlib-sh5-64media-nofpu: Delete file.
2754 * config/sh/t-mlib-sh5-compact: Delete file.
2755 * config/sh/t-mlib-sh5-compact-nofpu: Delete file.
2756 * config/sh/t-linux: Don't override MULTILIB_EXCEPTIONS.
2757 * doc/install.texi (Options specification): Add
2758 --with-multilib-list and --with-endian.
2760 2009-04-17 Rafael Avila de Espindola <espindola@google.com>
2762 * Makefile.in (REVISION_s): Always include quotes. Change ifdef to use
2764 (OBJS-common): Add plugin-version.o.
2765 (plugin-version.o): New.
2766 * gcc-plugin.h (plugin_gcc_version): New.
2767 (plugin_default_version_check): New.
2768 (plugin_init_func, plugin_init): Add version argument.
2769 * plugin-version.c: New.
2770 * plugin.c (str_plugin_gcc_version_name): New.
2771 (try_init_one_plugin): Read plugin_gcc_version from the plugin and
2772 pass it to the init function.
2773 (plugin_default_version_check): New.
2775 2009-04-17 Richard Guenther <rguenther@suse.de>
2777 * tree-ssa-alias.c (refs_may_alias_p_1): Do not use TBAA
2778 for decl-vs-decl disambiguation.
2780 2009-04-17 Andreas Krebbel <krebbel1@de.ibm.com>
2782 * config/s390/s390.h (s390_tune_attr): New macro definition.
2783 * config/s390/s390.md (cpu attribute): Map to s390_tune_attr.
2785 2009-04-17 Richard Guenther <rguenther@suse.de>
2787 * tree-ssa-ccp.c (struct fold_stmt_r_data): Remove.
2788 (fold_stmt_r): Likewise.
2789 (maybe_fold_reference): New function.
2790 (fold_gimple_assign): Handle cases fold_stmt_r did.
2791 (fold_stmt): Do not use fold_stmt_r.
2792 (fold_stmt_inplace): Likewise.
2794 2009-04-17 Richard Guenther <rguenther@suse.de>
2796 * tree-ssa-dom.c (gimple_assign_unary_useless_conversion_p): Remove.
2797 (record_equivalences_from_stmt): Remove useless checks and
2799 * tree-ssa-pre.c (eliminate): Avoid converting a constant if
2800 the type is already suitable.
2802 2009-04-17 Paolo Bonzini <bonzini@gnu.org>
2804 * config/sh/sh.h (FUNCTION_VALUE): Fix call to sh_promote_prototypes.
2806 2009-04-17 Uros Bizjak <ubizjak@gmail.com>
2808 * config/arm/sfp-machine.h (__gcc_CMPtype): New typedef.
2809 (CMPtype): Define as __gcc_CMPtype.
2811 2009-04-17 Aurelien Jarno <aurelien@aurel32.net>
2813 * config.gcc: Add soft-fp/t-softfp and i386/t-linux to tmake_file
2814 for i[34567]86-*-kfreebsd*-gnu*, x86_64-*-kfreebsd*-gnu*.
2816 2009-04-17 Richard Guenther <rguenther@suse.de>
2818 PR tree-optimization/39746
2819 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Remove
2820 special-casing for builtins and static variable use/def.
2821 (call_may_clobber_ref_p_1): Likewise.
2823 2009-04-16 Ian Lance Taylor <iant@google.com>
2825 * df.h: Include "timevar.h".
2826 (struct df_problem): Change tv_id field to timevar_id_t.
2827 * tree-pass.h: Include "timevar.h".
2828 (struct opt_pass): Change tv_id field to timevar_id_t.
2829 * timevar.h (timevar_id_t): Define TV_NONE.
2830 * passes.c (execute_one_ipa_transform_pass): Check for tv_id !=
2831 TV_NONE rather than tv_id != 0.
2832 (execute_one_pass): Likewise.
2833 * Makefile.in (DF_H): Add $(TIMEVAR_H).
2834 (TREE_PASS_H): Define. Change all instances of tree-pass.h in
2835 dependencies to $(TREE_PASS_H).
2836 * bt-load.c (pass_branch_target_load_optimize1): Set tv_id field
2838 (pass_branch_target_load_optimize2): Likewise.
2839 * cfglayout.c (pass_into_cfg_layout_mode): Likewise.
2840 (pass_outof_cfg_layout_mode): Likewise.
2841 * cgraphbuild.c (pass_remove_cgraph_callee_edges): Likewise.
2842 (pass_rebuild_cgraph_edges): Likewise.
2843 (pass_remove_cgraph_callee_edges): Likewise.
2844 * df-core.c (pass_df_initialize_opt): Likewise.
2845 (pass_df_initialize_no_opt): Likewise.
2846 (pass_df_finish): Likewise.
2847 * emit-rtl.c (pass_unshare_all_rtl): Likewise.
2848 * except.c (pass_set_nothrow_function_flags): Likewise.
2849 (pass_convert_to_eh_region_ranges): Likewise.
2850 * final.c (pass_compute_alignments): Likewise.
2851 * function.c (pass_instantiate_virtual_regs): Likewise.
2852 (pass_init_function): Likewise.
2853 (pass_leaf_regs): Likewise.
2854 (pass_match_asm_constraints): Likewise.
2855 * gimple-low.c (pass_lower_cf): Likewise.
2856 (pass_mark_used_blocks): Likewise.
2857 * init-regs.c (pass_initialize_regs): Likewise.
2858 * integrate.c (pass_initial_value_sets): Likewise.
2859 * ira.c (pass_ira): Likewise.
2860 * jump.c (pass_cleanup_barriers): Likewise.
2861 * omp-low.c (pass_expand_omp): Likewise.
2862 (pass_lower_omp): Likewise.
2863 * matrix-reorg.c (pass_ipa_matrix_reorg): Likewise.
2864 * recog.c (pass_split_all_insns): Likewise.
2865 (pass_split_after_reload): Likewise.
2866 (pass_split_before_regstack): Likewise.
2867 (pass_split_before_sched2): Likewise.
2868 (pass_split_for_shorten_branches): Likewise.
2869 * reginfo.c (pass_reginfo_init): Likewise.
2870 (pass_subregs_of_mode_init): Likewise.
2871 (pass_subregs_of_mode_finish): Likewise.
2872 * passes.c (pass_postreload): Likewise.
2873 * stack-ptr-mod.c (pass_stack_ptr_mod): Likewise.
2874 * tree-cfg.c (pass_remove_useless_stmts): Likewise.
2875 (pass_warn_function_return): Likewise.
2876 (pass_warn_function_noreturn): Likewise.
2877 * tree-complex.c (pass_lower_complex): Likewise.
2878 (pass_lower_complex_O0): Likewise.
2879 * tree-if-conv.c (pass_if_conversion): Likewise.
2880 * tree-into-ssa.c (pass_build_ssa): Likewise.
2881 * tree-mudflap.c (pass_mudflap_1): Likewise.
2882 (pass_mudflap_2): Likewise.
2883 * tree-nomudflap.c (pass_mudflap_1): Likewise.
2884 (pass_mudflap_2): Likewise.
2885 * tree-nrv.c (pass_return_slot): Likewise.
2886 * tree-object-size.c (pass_object_sizes): Likewise.
2887 * tree-optimize.c (pass_all_optimizations): Likewise.
2888 (pass_early_local_passes): Likewise.
2889 (pass_all_early_optimizations): Likewise.
2890 (pass_cleanup_cfg): Likewise.
2891 (pass_cleanup_cfg_post_optimizing): Likewise.
2892 (pass_free_datastructures): Likewise.
2893 (pass_free_cfg_annotations): Likewise.
2894 (pass_fixup_cfg): Likewise.
2895 (pass_init_datastructures): Likewise.
2896 * tree-ssa.c (pass_early_warn_uninitialized): Likewise.
2897 (pass_late_warn_uninitialized): Likewise.
2898 (pass_update_address_taken): Likewise.
2899 * tree-ssa-ccp.c (pass_fold_builtins): Likewise.
2900 * tree-ssa-math-opts.c (pass_cse_reciprocals): Likewise.
2901 (pass_cse_sincos): Likewise.
2902 (pass_convert_to_rsqrt): Likewise.
2903 * tree-ssa-structalias.c (pass_build_alias): Likewise.
2904 * tree-stdarg.c (pass_stdarg): Likewise.
2905 * tree-tailcall.c (pass_tail_recursion): Likewise.
2906 (pass_tail_calls): Likewise.
2907 * tree-vect-generic.c (pass_lower_vector): Likewise.
2908 (pass_lower_vector_ssa): Likewise.
2909 * tree-vectorizer.c (pass_ipa_increase_alignment): Likewise.
2911 2009-04-16 Joseph Myers <joseph@codesourcery.com>
2913 * config/mips/mips.c (mips_rtx_cost_data): Use SOFT_FP_COSTS in
2915 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC):
2917 * config/mips/xlr.md (ir_xlr_alu): Also accept insn types move,
2918 logical and signext.
2920 2009-04-16 Kaz Kojima <kkojima@gcc.gnu.org>
2923 * config/sh/predicates.md (arith_operand): Check if the operand
2924 of TRUNCATE is a REG.
2926 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
2928 * cfgrtl.c (delete_insn_chain_and_edges): Remove.
2929 * rtl.h: Remove the prototype for delete_insn_chain_and_edges.
2931 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
2933 * tree-iterator.c (tsi_split_statement_list_after,
2934 tsi_split_statement_list_before): Remove.
2935 * tree-iterator.h: Remove the prototypes for
2936 tsi_split_statement_list_after and tsi_split_statement_list_before.
2938 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
2940 * tree-ssa-propagate.c (stmt_makes_single_load): Remove.
2941 * tree-ssa-propagate.h: Remove the prototype for
2942 stmt_makes_single_load.
2944 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
2946 * emit-rtl.c (set_mem_attrs_from_reg): Remove.
2947 * rtl.h: Remove the prototype for set_mem_attrs_from_reg.
2949 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
2951 * tree-iterator.c (EXPR_LAST_BODY): Remove.
2953 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
2955 * except.c (eh_region_outer_p): Remove.
2956 * except.h: Remove the prototype for eh_region_outer_p.
2958 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
2960 * function.c (current_function_assembler_name): Remove.
2961 * function.h: Remove the prototype for
2962 current_function_assembler_name.
2964 2009-04-16 Ian Lance Taylor <iant@google.com>
2966 * rtlanal.c (alloc_reg_note): New function, broken out of add_reg_note.
2967 (add_reg_note): Call alloc_reg_note.
2968 * rtl.h (alloc_reg_note): Declare.
2969 * combine.c (try_combine): Use alloc_reg_note.
2970 (recog_for_combine, move_deaths): Likewise.
2971 (distribute_notes): Use alloc_reg_note and add_reg_note.
2972 * haifa-sched.c (sched_create_recovery_edges): Use add_reg_note.
2973 * combine-stack-adj.c (adjust_frame_related_expr): Likewise.
2974 * reload1.c (eliminate_regs_1): Use alloc_reg_note.
2976 2009-04-16 Vladimir Makarov <vmakarov@redhat.com>
2978 PR rtl-optimization/39762
2979 * ira-int.h (ira_register_move_cost, ira_may_move_in_cost,
2980 ira_may_move_out_cost): Add comments about way of their usage.
2981 (ira_get_register_move_cost, ira_get_may_move_cost): New functions.
2983 * ira-conflicts.c (process_regs_for_copy): Use function
2984 ira_get_register_move_cost instead of global
2985 ira_register_move_cost.
2987 * ira-color.c (update_copy_costs, calculate_allocno_spill_cost,
2988 color_pass, move_spill_restore, update_curr_costs): Ditto.
2990 * ira-lives.c (process_single_reg_class_operands): Ditto.
2992 * ira-emit.c (emit_move_list): Ditto.
2994 * ira-costs.c (copy_cost): Don't call ira_init_register_move_cost.
2995 (record_reg_classes): Ditto. Use functions
2996 ira_get_register_move_cost and ira_get_may_move_cost instead of
2997 global vars ira_register_move_cost, ira_may_move_out_cost and
2998 ira_may_move_in_cost.
2999 (record_address_regs): Don't call ira_init_register_move_cost.
3000 Use function ira_get_may_move_cost instead of global
3001 ira_may_move_in_cost.
3002 (process_bb_node_for_hard_reg_moves): Use function
3003 ira_get_register_move_cost instead of global ira_register_move_cost.
3004 (ira_costs): Don't call ira_init_register_move_cost.
3006 2009-04-16 Richard Guenther <rguenther@suse.de>
3008 * tree-cfg.c (verify_gimple_assign_binary):
3009 Allow POINTER_PLUS_EXPR-like PLUS_EXPR for vectors.
3010 * ipa-struct-reorg.c (gen_size): Fold the built expressions.
3011 (create_general_new_stmt): Note that this function is broken.
3013 2009-04-16 Rafael Avila de Espindola <espindola@google.com>
3015 * common.opt (fhelp): Add Var(help_flag).
3016 * gcc-plugin.h (plugin_info): Add help.
3017 * plugin.c (plugin_name_args): Add help.
3018 (register_plugin_info): Set plugin->help.
3019 (print_help_one_plugin): New.
3020 (print_plugins_help): New.
3021 * plugin.h (print_plugins_help): New.
3022 * toplev.c (toplev_main): Call print_plugins_help if needed.
3024 2009-04-16 Richard Guenther <rguenther@suse.de>
3026 * gimple.c (gimple_copy): Do not clear addresses_taken bitmap.
3027 (gimple_ior_addresses_taken_1): New function.
3028 (gimple_ior_addresses_taken): Likewise.
3029 * gimple.h (struct gimple_statement_with_ops_base): Remove
3030 addresses_taken member.
3031 (gimple_ior_addresses_taken): Declare.
3032 (gimple_addresses_taken, gimple_addresses_taken_ptr,
3033 gimple_set_addresses_taken): Remove.
3034 * ipa-reference.c (mark_address): New function.
3035 (scan_stmt_for_static_refs): Use it for marking addresses taken.
3036 * tree-ssa-operands.c (add_to_addressable_set): Rename to ...
3037 (mark_address_taken): ... this. Just set TREE_ADDRESSABLE.
3038 (gimple_add_to_addresses_taken): Remove.
3039 (get_tmr_operands): Call mark_address_taken.
3040 (get_asm_expr_operands): Likewise.
3041 (get_expr_operands): Likewise.
3042 (build_ssa_operands): Do not clear the addresses_taken bitmap.
3043 (free_stmt_operands): Do not free it.
3044 * tree-ssa.c (delete_tree_ssa): Likewise.
3045 (execute_update_addresses_taken): Use gimple_ior_addresses_taken.
3047 2009-04-16 Richard Guenther <rguenther@suse.de>
3049 * gimple.h (walk_stmt_load_store_addr_ops): Declare.
3050 (walk_stmt_load_store_ops): Likewise.
3051 * gimple.c (get_base_loadstore): New function.
3052 (walk_stmt_load_store_addr_ops): Likewise.
3053 (walk_stmt_load_store_ops): Likewise.
3054 * ipa-pure-const.c (check_op): Simplify.
3055 (check_load, check_store): New functions.
3056 (check_stmt): Use walk_stmt_load_store_ops.
3057 * ipa-reference.c (mark_load): Adjust signature.
3058 (mark_store): Likewise.
3059 (scan_stmt_for_static_refs): Use walk_stmt_load_store_addr_ops.
3061 2009-04-16 Rafael Avila de Espindola <espindola@google.com>
3063 * gcc-plugin.h (plugin_event): Add PLUGIN_INFO.
3065 * opts.c (common_handle_option): Don't call print_version.
3066 * plugin.c (plugin_name_args): Add version.
3067 (register_plugin_info): New.
3068 (register_callback): Handle PLUGIN_INFO.
3069 (try_init_one_plugin): New.
3070 (init_one_plugin): Use try_init_one_plugin. Only free plugin_name_args
3072 (finalize_one_plugin): New.
3073 (finalize_plugins): New.
3074 (print_one_plugin): New.
3075 (print_plugins_versions): New.
3076 * plugin.h (print_plugins_versions): New.
3077 (finalize_plugins): New.
3078 * toplev.c (compile_file): Don't call initialize_plugins.
3079 (print_version): Call print_plugins_versions.
3080 (toplev_main): Call initialize_plugins. Print version if needed.
3081 Call finalize_plugins.
3083 2009-04-16 Rafael Avila de Espindola <espindola@google.com>
3085 * common.opt (fversion): New.
3086 * gcc.c (print_version): New.
3087 (process_command): Don't print the version. Just set print_version.
3088 (main): Print version. Call subprocesses if print_version and
3089 verbose_flag are set.
3090 * opts.c (common_handle_option): Handle OPT_fversion.
3092 2009-04-16 Richard Guenther <rguenther@suse.de>
3093 Ira Rosen <irar@il.ibm.com>
3095 PR tree-optimization/39698
3096 * tree-vect-loop.c (get_initial_def_for_reduction): Use the
3097 type of the reduction variable. Only generate the def if
3100 * omp-low.c (expand_omp_for_generic): When converting to a pointer
3101 make sure to first convert to an integer of the same precision.
3102 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Retain
3103 the type of the evolution correctly in computing the new
3104 induction variable base.
3106 2009-04-16 Richard Guenther <rguenther@suse.de>
3109 * tree-cfg.c (make_blocks): Split statements with to-be
3110 abnormal SSA names on the lhs.
3112 2009-04-16 Paolo Bonzini <bonzini@gnu.org>
3114 * c-common.c (vector_targets_convertible_p, vector_types_convertible_p):
3115 Use TYPE_VECTOR_OPAQUE instead of targetm.vector_opaque_p.
3116 * c-typeck.c (really_start_incremental_init): Likewise.
3117 * target-def.h (TARGET_VECTOR_OPAQUE_P): Remove.
3118 (TARGET_INITIALIZER): Remove it.
3119 * target.h (struct target): Remove vector_opaque_p.
3120 * tree.c (build_opaque_vector_type): New.
3121 * tree.h (TYPE_VECTOR_OPAQUE): New.
3122 (build_opaque_vector_type): Declare.
3123 * doc/tm.texi (TARGET_VECTOR_OPAQUE_P): Remove.
3124 * config/rs6000/rs6000.c (build_opaque_vector_type,
3125 rs6000_is_vector_type, TARGET_VECTOR_OPAQUE_P): Remove.
3126 (rs6000_init_builtins): Use build_opaque_vector_type for
3127 opaque_V4SI_type_node.
3129 2009-04-15 Catherine Moore <clm@codesourcery.com>
3131 * debug.h (set_name): Declare.
3132 * dwarf2out.c (dwarf2out_set_name): Declare.
3133 (dwarf2_debug_hooks): Add set_name.
3134 (find_AT_string): New.
3135 (add_AT_string): Call find_AT_string.
3136 (dwarf2out_set_name): New.
3137 * cp/decl.c (grokdeclarator): Call set_name.
3138 * vmsdbgout.c (vmsdbg_debug_hooks): Add set_name_debug_nothing.
3139 * debug.c (do_nothing_debug_hooks): Likewise.
3140 * dbxout.c (dbx_debug_hooks): Likewise.
3141 * sdbout.c (sdb_debug_hooks): Likewise.
3143 2009-04-15 Michael Eager <eager@eagercon.com>
3145 * config/rs6000/rs6000.c (rs6000_function_value): Set function return
3146 reg for single-precision FPU.
3147 * config/rs6000/rs6000.md (movsi_internal1): Only for
3149 (movsi_internal1_single): New. Add pattern to move SI values to/from
3150 single-precision FP regs.
3152 2009-04-15 Richard Guenther <rguenther@suse.de>
3154 * omp-low.c (lower_rec_input_clauses): Build correct address
3156 (expand_omp_for_generic): Fix multiplication type.
3157 * tree-loop-distribution.c (build_size_arg): Build a size_t argument.
3158 (generate_memset_zero): Fix types.
3159 * tree-profile.c (prepare_instrumented_value): Correctly
3162 2009-04-15 Ian Lance Taylor <iant@google.com>
3164 * c.opt (Wenum-compare): Enable for C and Objc. Initialize to -1.
3165 * c-opts.c (c_common_handle_option): For C, set warn_enum_compare
3166 for -Wall and for -Wc++-compat.
3167 (c_common_post_options): For C++, set warn_enum_compare if not
3169 * c-tree.h (struct c_expr): Add field original_type.
3170 (build_external_ref): Update declaration.
3171 * c-parser.c (c_parser_braced_init): Set original_type.
3172 (c_parser_initelt): Likewise.
3173 (c_parser_expr_no_commas): Likewise.
3174 (c_parser_conditional_expression): Likewise.
3175 (c_parser_cast_expression): Likewise.
3176 (c_parser_unary_expression): Likewise. Pull setting of
3177 original_code to top of function.
3178 (c_parser_sizeof_expression): Set original_type.
3179 (c_parser_alignof_expression): Likewise.
3180 (c_parser_postfix_expression): Likewise. Pull setting of
3181 original_code to top of function.
3182 (c_parser_postfix_expression_after_paren_type): Set original_type.
3183 (c_parser_postfix_expression_after_primary): Likewise.
3184 (c_parser_expression): Likewise.
3185 * c-typeck.c (build_external_ref): Add type parameter. Change all
3187 (c_expr_sizeof_expr): Set original_type field.
3188 (parser_build_unary_op): Likewise.
3189 (parser_build_binary_op): Likewise. Optionally warn about
3190 comparisons of enums of different types.
3191 (digest_init): Set original_type field.
3192 (really_start_incremental_init): Likewise.
3193 (push_init_level, pop_init_level): Likewise.
3194 * doc/invoke.texi (Warning Options): -Wenum-compare now
3197 2009-04-15 Richard Guenther <rguenther@suse.de>
3199 * tree-ssa-pre.c (eliminate): When replacing a PHI node carry
3200 out a necessary conversion.
3201 * tree-ssa-sccvn.c (run_scc_vn): Also assign value-ids to
3202 names we didn't value number.
3203 * tree-mudflap.c (mf_build_check_statement_for): Use correct types.
3205 2009-04-15 Richard Guenther <rguenther@suse.de>
3207 PR tree-optimization/39764
3208 * tree-ssa-ccp.c (get_value): Canonicalize value with
3209 canonicalize_float_value.
3211 2009-04-15 Jan Hubicka <jh@suse.cz>
3213 * builtins.def (va_start, va_end, va_copy): Fix my previous commit.
3214 Wrong version of patch.
3216 2009-04-15 Jan Hubicka <jh@suse.cz>
3218 * builtins.def (va_start, va_end, va_copy): Mark nothrow.
3220 2009-04-15 Nathan Sidwell <nathan@codesourcery.com>
3222 * config/rs6000/rs6000.c (rs6000_init_builtins): Set TYPE_NAME of
3223 our distinct integral and vector types.
3225 2009-04-15 Rafael Avila de Espindola <espindola@google.com>
3227 * class.c (build_vtbl_ref_1): Remove call to assemble_external.
3228 * init.c (build_vtbl_address): Remove call to assemble_external.
3230 2009-04-14 Daniel Jacobowitz <dan@codesourcery.com>
3232 * config/rs6000/rs6000.c (rs6000_dwarf_register_span): Fix debug
3233 output for other floating point modes.
3235 2009-04-14 Diego Novillo <dnovillo@google.com>
3237 * diagnostic.c (diagnostic_report_diagnostic): Do not
3238 warn about loaded plugins for DK_ERROR and DK_WARNING.
3239 * c-decl.c (declspecs_add_type): Move call to
3240 invoke_plugin_callbacks ...
3241 * c-parser.c (c_parser_declspecs): ... here.
3242 * plugin.c (dump_active_plugins): Tidy output.
3244 2009-04-14 Diego Novillo <dnovillo@google.com>
3245 Le-Chun Wu <lcwu@google.com>
3247 * configure.ac: Add --enable-plugin support.
3248 Define ENABLE_PLUGIN and PLUGINLIBS when specified.
3249 * Makefile.in (PLUGIN_H): Define.
3250 Export ENABLE_PLUGIN and GMPINC to site.exp.
3251 Add PLUGINLIBS to link command.
3252 Add/modify dependencies for plugin.o and files including plugin.h.
3254 * config.in: Regenerate.
3256 * opts.c (common_handle_option): Handle OPT_fplugin_ and
3259 2009-04-14 Le-Chun Wu <lcwu@google.com>
3261 * tree-pass.h (register_one_dump_file): Add a prototype for
3262 register_one_dump_file.
3263 * toplev.c (compile_file): Call initialize_plugins.
3264 (do_compile): Call invoke_plugin_callbacks.
3265 (toplev_main): Call invoke_plugin_callbacks.
3266 * common.opt: Add -fplugin= and -fplugin-arg-.
3267 * gcc-plugin.h: New public header file for plugins to include.
3268 * plugin.c: New source file.
3269 * plugin.h: New internal header file.
3270 * passes.c (register_one_dump_file): Make it external.
3272 * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks.
3274 2009-04-14 Diego Novillo <dnovillo@google.com>
3276 * doc/plugins.texi: New.
3277 * doc/gccint.texi: Add reference to Plugins chapter.
3278 * doc/invoke.texi: Document -fplugin and -fplugin-arg
3279 * diagnostic.c (diagnostic_report_diagnostic): Warn about
3280 loaded plugins, if any.
3281 * timevar.def (TV_PLUGIN_INIT): Define.
3282 (TV_PLUGIN_RUN): Define.
3283 * plugin.c: Include timevar.h
3284 (plugins_active_p): New.
3285 (dump_active_plugins): New.
3286 (debug_active_plugins): New.
3288 2009-04-14 Joseph Myers <joseph@codesourcery.com>
3290 * config/sol2.h (LINK_ARCH32_SPEC_BASE): Use %R with absolute
3292 * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Likewise.
3294 2009-04-14 Kazu Hirata <kazu@codesourcery.com>
3296 * config/arm/arm.c (arm_rtx_costs_1): Treat a minus with a shift
3297 the same as a minus without a shift.
3299 2009-04-14 Nick Clifton <nickc@redhat.com>
3301 * config/stormy16/stormy16.md (ineqbranch_1): Do not assume that
3302 comparisons with small integers will always produce a short
3305 2009-04-14 Rafael Avila de Espindola <espindola@google.com>
3308 2008-12-19 Diego Novillo <dnovillo@google.com>
3310 * cgraph.c (dump_cgraph_node): Show memory address of NODE.
3312 2009-04-14 Richard Guenther <rguenther@suse.de>
3314 * tree-cfg.c (verify_gimple_assign_unary): Adjust vector code
3316 (verify_gimple_assign_binary): Likewise. Handle shifts and
3318 (verify_gimple_phi): Print the mismatched argument position.
3319 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
3321 (vect_update_init_of_dr): Likewise.
3322 * matrix-reorg.c (transform_access_sites): Do what the
3324 * omp-low.c (expand_omp_atomic_pipeline): Use the correct types.
3326 2009-04-13 Michael Eager <eager@eagercon.com>
3328 * config/rs6000/rs6000-c.c: generate defines if rs6000_xilinx_fpu:
3329 _XFPU, _XFPU_SP_LITE, _XFPU_SP_FULL, _XFPU_DP_LITE, _XFPU_DP_FULL
3330 * config/rs6000/xilinx.h: New. Spec for powerpc-xilinx-eabi
3331 * config.gcc (powerpc-xilinx-eabi): add xilinx.h to tm_file,
3332 remove duplicate config
3334 2009-04-13 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
3336 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Dump
3337 file_name:line_number type locator of the call site.
3339 2009-04-13 Vladimir Makarov <vmakarov@redhat.com>
3341 * genautomata.c: Put blank after comma.
3342 (automaton_decls): New.
3343 (struct unit_usage): Add comments to member next.
3344 (store_alt_unit_usage): Keep the list ordered.
3345 (unit_present_on_list_p, equal_alternatives_p): New.
3346 (check_regexp_units_distribution): Check units distribution
3347 correctness correctly.
3348 (main): Don't write automata if error is found. Return correct
3351 * config/m68k/cf.md (cfv4_ds): Remove.
3352 (cfv4_pOEP1, cfv4_sOEP1, cfv4_pOEP2,cfv4_sOEP2, cfv4_pOEP3,
3353 cfv4_sOEP3): Assign to cfv4_oep instead of cfv4_ds.
3355 * config/rs6000/power4.md (lsuq_power4, iq_power4, fpq_power4,
3356 power4-load-ext, power4-store, power4-store-update,
3357 power4-fpstore, power4-fpstore-update, power4-two, power4-three,
3358 power4-insert, power4-compare, power4-lmul-cmp, power4-imul-cmp,
3359 power4-lmul, , power4-imul, power4-imul3, power4-sdiv,
3360 power4-sqrt, power4-isync): Modify reservation to make correct
3361 unit distribution to automata.
3363 * config/rs6000/power5.md (iq_power5, fpq_power5, power5-store,
3364 power5-store-update, power5-two, power5-three, power5-lmul,
3365 power5-imul, power5-imul3, power5-sdiv, power5-sqrt): Ditto.
3367 2009-04-13 Adam Nemet <anemet@caviumnetworks.com>
3369 * except.c (pass_set_nothrow_function_flags): Set name and add
3371 (set_nothrow_function_flags): Mention in the dump file when
3372 changing a function to nothrow.
3374 2009-04-13 Ozkan Sezer <sezeroz@gmail.com>
3377 * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Use __SIZE_TYPE__
3378 instead of unsigned long.
3380 2009-04-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3382 * config/arm/arm.c (return_used_this_function): Remove.
3383 (arm_output_function_prologue): Remove use of
3384 return_used_this_function.
3385 (output_return_instruction): Replace use of
3386 return_used_this_function
3387 by cfun->machine->return_used_this_function.
3388 (arm_output_epilogue): Likewise.
3389 (arm_output_function_epilogue): Likewise.
3390 (thumb_unexpanded_epilogue): Likewise.
3391 * config/arm/arm.h (struct machine_function):
3392 New member return_used_this_function.
3394 2009-04-12 Mark Mitchell <mark@codesourcery.com>
3396 * doc/install.texi: Correct description of default directory for
3397 --with-gxx-include-dir.
3399 2009-04-12 Eric Botcazou <ebotcazou@adacore.com>
3401 * fold-const.c (build_range_check): Properly deal with enumeral and
3404 2009-04-12 Steven Bosscher <steven@gcc.gnu.org>
3406 * doc/invoke.texi (max_gcse_passes): Remove documentation.
3407 * params.def (PARAM_MAX_GCSE_PASSES): Remove.
3408 * params.h (MAX_GCSE_PASSES): Remove.
3409 * gcse.c (gcse_main): Run CPROP1, PRE or HOIST, and CPROP2
3410 in sequence. Remove ability to run multiple passes.
3411 (bypass_jumps): Report run as third CPROP pass.
3413 2009-04-12 Adam Nemet <anemet@caviumnetworks.com>
3416 * except.c (can_throw_external): Look at each insn in a SEQUENCE
3417 when deciding whether the whole SEQUENCE can throw.
3419 2009-04-12 Uros Bizjak <ubizjak@gmail.com>
3422 * config/alpha/predicates.md (local_symbolic_operand): Return 1 for
3423 offseted label references.
3425 2009-04-11 Jan Hubicka <jh@suse.cz>
3427 * tree-ssa-pre.c (eliminate): Fix call of update_stmt.
3429 2009-04-11 Richard Guenther <rguenther@suse.de>
3432 * tree-inline.c (declare_return_variable): Mark DECL_BY_REFERENCE
3433 return variables as TREE_ADDRESSABLE.
3435 2009-04-11 Richard Guenther <rguenther@suse.de>
3437 PR tree-optimization/39713
3438 * tree-ssa-sccvn.c (vn_get_expr_for): Make sure built
3439 reference trees have SSA_NAME operands.
3441 2009-04-11 Richard Guenther <rguenther@suse.de>
3444 * c-gimplify.c (c_gimplify_expr): Adjust check for mismatched
3445 address expressions.
3447 2009-04-11 Dave Korn <dave.korn.cygwin@gmail.com>
3449 * config/i386/cygwin-stdint.h (INT_LEAST32_TYPE): Update to
3450 match changes in Cygwin 1.7
3451 (UINT_LEAST32_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE,
3452 UINT_FAST16_TYPE, UINT_FAST32_TYPE): Likewise.
3454 2009-04-10 Paolo Bonzini <bonzini@gnu.org>
3456 PR tree-optimization/39701
3457 * doc/invoke.texi (Optimization Options): Document change in
3458 meaning and initialization of -fdelete-null-pointer-checks.
3460 2009-04-10 H.J. Lu <hongjiu.lu@intel.com>
3463 * common.opt (-fdelete-null-pointer-checks): Initialize to 1.
3465 * opts.c (decode_options): Don't set flag_delete_null_pointer_checks
3468 * doc/invoke.texi: Update -fdelete-null-pointer-checks.
3470 2009-04-10 Chao-ying Fu <fu@mips.com>
3472 * doc/tm.texi (Instruction Output): Document
3473 TARGET_ASM_FINAL_POSTSCAN_INSN.
3474 * target.h (final_postscan_insn): New field in asm_out.
3475 * target-def.h (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
3476 (TARGET_ASM_OUT): Add TARGET_ASM_FINAL_POSTSCAN_INSN.
3477 * final.c (final_scan_insn): Call
3478 targetm.asm_out.final_postscan_insn after outputting
3479 an asm macro and a normal instruction.
3481 * config/mips/mips.h (FINAL_PRESCAN_INSN): New define.
3482 * config/mips/mips-protos.h (mips_final_prescan_insn): Declare.
3483 * config/mips/mips.c (mips_at_reg_p): New for_each_rtx callback.
3484 (mips_final_prescan_insn, mips_final_postscan_insn): New functions.
3485 (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
3487 2009-04-10 Paolo Bonzini <bonzini@gnu.org>
3490 * fold-const.c (tree_single_nonzero_warnv_p): Pass non-static
3491 variables as non-NULL even with -fdelete-null-pointer-checks.
3493 2009-04-10 H.J. Lu <hongjiu.lu@intel.com>
3495 * config/rs6000/darwin-vecsave.asm: Remove extra "*/".
3497 2009-04-09 H.J. Lu <hongjiu.lu@intel.com>
3500 * config/i386/i386.c (classify_argument): Handle SCmode with
3501 (bit_offset % 64) != 0.
3503 2009-04-09 Sandra Loosemore <sandra@codesourcery.com>
3505 * doc/invoke.texi (Optimize Options): Add cross-reference to
3506 -Q --help=optimizers examples.
3508 2009-04-10 Ben Elliston <bje@au.ibm.com>
3511 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Do not set
3512 regalign for the reg == fpr and TDmode case.
3514 2009-04-09 David Ayers <ayers@fsfe.org>
3517 * objc/objc-act.c (warn_with_method): Remove helper function.
3518 (check_duplicates): Call warning and inform directly.
3519 (really_start_method): Likewise.
3521 2009-04-09 Paolo Bonzini <bonzini@gnu.org>
3523 * expmed.c (expand_divmod): Always use a comparison for a division
3524 by a large unsigned integer.
3526 * fold-const.c (tree_single_nonzero_warnv_p): Always treat decls
3527 for things others than variables or functions as nonzero.
3529 2009-04-09 Nick Clifton <nickc@redhat.com>
3531 * unwind-compat.c: Change copyright header to refer to version
3532 3 of the GNU General Public License with version 3.1 of the
3533 GCC Runtime Library Exception and to point readers at the
3534 COPYING3 and COPYING3.RUNTIME files and the FSF's license web page.
3535 * config/alpha/crtfastmath.c: Likewise.
3536 * config/alpha/linux-unwind.h: Likewise.
3537 * config/alpha/qrnnd.asm: Likewise.
3538 * config/alpha/vms-crt0-64.c: Likewise.
3539 * config/alpha/vms-crt0.c: Likewise.
3540 * config/alpha/vms-dwarf2.asm: Likewise.
3541 * config/alpha/vms-dwarf2eh.asm: Likewise.
3542 * config/alpha/vms-psxcrt0-64.c: Likewise.
3543 * config/alpha/vms-psxcrt0.c: Likewise.
3544 * config/alpha/vms_tramp.asm: Likewise.
3545 * config/arc/initfini.c: Likewise.
3546 * config/arc/lib1funcs.asm: Likewise.
3547 * config/arm/bpabi-v6m.S: Likewise.
3548 * config/arm/bpabi.S: Likewise.
3549 * config/arm/bpabi.c: Likewise.
3550 * config/arm/crti.asm: Likewise.
3551 * config/arm/crtn.asm: Likewise.
3552 * config/arm/ieee754-df.S: Likewise.
3553 * config/arm/ieee754-sf.S: Likewise.
3554 * config/arm/lib1funcs.asm: Likewise.
3555 * config/arm/libunwind.S: Likewise.
3556 * config/arm/linux-atomic.c: Likewise.
3557 * config/arm/mmintrin.h: Likewise.
3558 * config/arm/pr-support.c: Likewise.
3559 * config/arm/unaligned-funcs.c: Likewise.
3560 * config/arm/unwind-arm.c: Likewise.
3561 * config/arm/unwind-arm.h: Likewise.
3562 * config/avr/libgcc.S: Likewise.
3563 * config/bfin/crti.s: Likewise.
3564 * config/bfin/crtlibid.s: Likewise.
3565 * config/bfin/crtn.s: Likewise.
3566 * config/bfin/lib1funcs.asm: Likewise.
3567 * config/bfin/linux-unwind.h: Likewise.
3568 * config/cris/arit.c: Likewise.
3569 * config/cris/cris_abi_symbol.c: Likewise.
3570 * config/darwin-64.c: Likewise.
3571 * config/darwin-crt2.c: Likewise.
3572 * config/darwin-crt3.c: Likewise.
3573 * config/darwin.h: Likewise.
3574 * config/dbxelf.h: Likewise.
3575 * config/dfp-bit.c: Likewise.
3576 * config/dfp-bit.h: Likewise.
3577 * config/elfos.h: Likewise.
3578 * config/fixed-bit.c: Likewise.
3579 * config/fixed-bit.h: Likewise.
3580 * config/fp-bit.c: Likewise.
3581 * config/fp-bit.h: Likewise.
3582 * config/fr30/crti.asm: Likewise.
3583 * config/fr30/crtn.asm: Likewise.
3584 * config/fr30/lib1funcs.asm: Likewise.
3585 * config/freebsd-spec.h: Likewise.
3586 * config/frv/cmovd.c: Likewise.
3587 * config/frv/cmovh.c: Likewise.
3588 * config/frv/cmovw.c: Likewise.
3589 * config/frv/frvbegin.c: Likewise.
3590 * config/frv/frvend.c: Likewise.
3591 * config/frv/lib1funcs.asm: Likewise.
3592 * config/glibc-stdint.h: Likewise.
3593 * config/h8300/clzhi2.c: Likewise.
3594 * config/h8300/crti.asm: Likewise.
3595 * config/h8300/crtn.asm: Likewise.
3596 * config/h8300/ctzhi2.c: Likewise.
3597 * config/h8300/fixunssfsi.c: Likewise.
3598 * config/h8300/lib1funcs.asm: Likewise.
3599 * config/h8300/parityhi2.c: Likewise.
3600 * config/h8300/popcounthi2.c: Likewise.
3601 * config/i386/ammintrin.h: Likewise.
3602 * config/i386/att.h: Likewise.
3603 * config/i386/avxintrin.h: Likewise.
3604 * config/i386/biarch64.h: Likewise.
3605 * config/i386/bmmintrin.h: Likewise.
3606 * config/i386/cpuid.h: Likewise.
3607 * config/i386/cross-stdarg.h: Likewise.
3608 * config/i386/crtfastmath.c: Likewise.
3609 * config/i386/crtprec.c: Likewise.
3610 * config/i386/cygming-crtbegin.c: Likewise.
3611 * config/i386/cygming-crtend.c: Likewise.
3612 * config/i386/cygwin.asm: Likewise.
3613 * config/i386/emmintrin.h: Likewise.
3614 * config/i386/gmm_malloc.h: Likewise.
3615 * config/i386/gthr-win32.c: Likewise.
3616 * config/i386/i386.h: Likewise.
3617 * config/i386/immintrin.h: Likewise.
3618 * config/i386/linux-unwind.h: Likewise.
3619 * config/i386/linux64.h: Likewise.
3620 * config/i386/mm3dnow.h: Likewise.
3621 * config/i386/mmintrin-common.h: Likewise.
3622 * config/i386/mmintrin.h: Likewise.
3623 * config/i386/nmmintrin.h: Likewise.
3624 * config/i386/pmm_malloc.h: Likewise.
3625 * config/i386/pmmintrin.h: Likewise.
3626 * config/i386/smmintrin.h: Likewise.
3627 * config/i386/sol2-c1.asm: Likewise.
3628 * config/i386/sol2-ci.asm: Likewise.
3629 * config/i386/sol2-cn.asm: Likewise.
3630 * config/i386/sol2-gc1.asm: Likewise.
3631 * config/i386/tmmintrin.h: Likewise.
3632 * config/i386/unix.h: Likewise.
3633 * config/i386/w32-unwind.h: Likewise.
3634 * config/i386/wmmintrin.h: Likewise.
3635 * config/i386/x86-64.h: Likewise.
3636 * config/i386/x86intrin.h: Likewise.
3637 * config/i386/xmmintrin.h: Likewise.
3638 * config/ia64/crtbegin.asm: Likewise.
3639 * config/ia64/crtend.asm: Likewise.
3640 * config/ia64/crtfastmath.c: Likewise.
3641 * config/ia64/crti.asm: Likewise.
3642 * config/ia64/crtn.asm: Likewise.
3643 * config/ia64/fde-glibc.c: Likewise.
3644 * config/ia64/lib1funcs.asm: Likewise.
3645 * config/ia64/linux-unwind.h: Likewise.
3646 * config/ia64/quadlib.c: Likewise.
3647 * config/ia64/unwind-ia64.c: Likewise.
3648 * config/linux.h: Likewise.
3649 * config/m32c/m32c-lib1.S: Likewise.
3650 * config/m32c/m32c-lib2-trapv.c: Likewise.
3651 * config/m32c/m32c-lib2.c: Likewise.
3652 * config/m32r/initfini.c: Likewise.
3653 * config/m68hc11/larith.asm: Likewise.
3654 * config/m68hc11/m68hc11-crt0.S: Likewise.
3655 * config/m68k/cf.md: Likewise.
3656 * config/m68k/crti.s: Likewise.
3657 * config/m68k/crtn.s: Likewise.
3658 * config/m68k/lb1sf68.asm: Likewise.
3659 * config/m68k/linux-unwind.h: Likewise.
3660 * config/mcore/crti.asm: Likewise.
3661 * config/mcore/crtn.asm: Likewise.
3662 * config/mcore/lib1.asm: Likewise.
3663 * config/mips/linux-unwind.h: Likewise.
3664 * config/mips/loongson.h: Likewise.
3665 * config/mips/mips16.S: Likewise.
3666 * config/mmix/crti.asm: Likewise.
3667 * config/mmix/crtn.asm: Likewise.
3668 * config/pa/fptr.c: Likewise.
3669 * config/pa/hpux-unwind.h: Likewise.
3670 * config/pa/lib2funcs.asm: Likewise.
3671 * config/pa/linux-atomic.c: Likewise.
3672 * config/pa/linux-unwind.h: Likewise.
3673 * config/pa/milli64.S: Likewise.
3674 * config/pa/quadlib.c: Likewise.
3675 * config/pa/stublib.c: Likewise.
3676 * config/picochip/libgccExtras/adddi3.asm: Likewise.
3677 * config/picochip/libgccExtras/ashlsi3.asm: Likewise.
3678 * config/picochip/libgccExtras/ashlsi3.c: Likewise.
3679 * config/picochip/libgccExtras/ashrsi3.asm: Likewise.
3680 * config/picochip/libgccExtras/ashrsi3.c: Likewise.
3681 * config/picochip/libgccExtras/cmpsi2.asm: Likewise.
3682 * config/picochip/libgccExtras/divmod15.asm: Likewise.
3683 * config/picochip/libgccExtras/divmodhi4.asm: Likewise.
3684 * config/picochip/libgccExtras/divmodsi4.asm: Likewise.
3685 * config/picochip/libgccExtras/longjmp.asm: Likewise.
3686 * config/picochip/libgccExtras/lshrsi3.asm: Likewise.
3687 * config/picochip/libgccExtras/lshrsi3.c: Likewise.
3688 * config/picochip/libgccExtras/parityhi2.asm: Likewise.
3689 * config/picochip/libgccExtras/popcounthi2.asm: Likewise.
3690 * config/picochip/libgccExtras/setjmp.asm: Likewise.
3691 * config/picochip/libgccExtras/subdi3.asm: Likewise.
3692 * config/picochip/libgccExtras/ucmpsi2.asm: Likewise.
3693 * config/picochip/libgccExtras/udivmodhi4.asm: Likewise.
3694 * config/picochip/libgccExtras/udivmodsi4.asm: Likewise.
3695 * config/rs6000/750cl.h: Likewise.
3696 * config/rs6000/altivec.h: Likewise.
3697 * config/rs6000/biarch64.h: Likewise.
3698 * config/rs6000/crtresfpr.asm: Likewise.
3699 * config/rs6000/crtresgpr.asm: Likewise.
3700 * config/rs6000/crtresxfpr.asm: Likewise.
3701 * config/rs6000/crtresxgpr.asm: Likewise.
3702 * config/rs6000/crtsavfpr.asm: Likewise.
3703 * config/rs6000/crtsavgpr.asm: Likewise.
3704 * config/rs6000/darwin-asm.h: Likewise.
3705 * config/rs6000/darwin-fallback.c: Likewise.
3706 * config/rs6000/darwin-fpsave.asm: Likewise.
3707 * config/rs6000/darwin-ldouble.c: Likewise.
3708 * config/rs6000/darwin-tramp.asm: Likewise.
3709 * config/rs6000/darwin-unwind.h: Likewise.
3710 * config/rs6000/darwin-vecsave.asm: Likewise.
3711 * config/rs6000/darwin-world.asm: Likewise.
3712 * config/rs6000/e500crtres32gpr.asm: Likewise.
3713 * config/rs6000/e500crtres64gpr.asm: Likewise.
3714 * config/rs6000/e500crtres64gprctr.asm: Likewise.
3715 * config/rs6000/e500crtrest32gpr.asm: Likewise.
3716 * config/rs6000/e500crtrest64gpr.asm: Likewise.
3717 * config/rs6000/e500crtresx32gpr.asm: Likewise.
3718 * config/rs6000/e500crtresx64gpr.asm: Likewise.
3719 * config/rs6000/e500crtsav32gpr.asm: Likewise.
3720 * config/rs6000/e500crtsav64gpr.asm: Likewise.
3721 * config/rs6000/e500crtsav64gprctr.asm: Likewise.
3722 * config/rs6000/e500crtsavg32gpr.asm: Likewise.
3723 * config/rs6000/e500crtsavg64gpr.asm: Likewise.
3724 * config/rs6000/e500crtsavg64gprctr.asm: Likewise.
3725 * config/rs6000/eabi-ci.asm: Likewise.
3726 * config/rs6000/eabi-cn.asm: Likewise.
3727 * config/rs6000/eabi.asm: Likewise.
3728 * config/rs6000/linux-unwind.h: Likewise.
3729 * config/rs6000/linux64.h: Likewise.
3730 * config/rs6000/paired.h: Likewise.
3731 * config/rs6000/paired.md: Likewise.
3732 * config/rs6000/ppc64-fp.c: Likewise.
3733 * config/rs6000/ppu_intrinsics.h: Likewise.
3734 * config/rs6000/rs6000.h: Likewise.
3735 * config/rs6000/si2vmx.h: Likewise.
3736 * config/rs6000/sol-ci.asm: Likewise.
3737 * config/rs6000/sol-cn.asm: Likewise.
3738 * config/rs6000/spe.h: Likewise.
3739 * config/rs6000/spu2vmx.h: Likewise.
3740 * config/rs6000/sysv4.h: Likewise.
3741 * config/rs6000/tramp.asm: Likewise.
3742 * config/rs6000/vec_types.h: Likewise.
3743 * config/s390/linux-unwind.h: Likewise.
3744 * config/s390/tpf-unwind.h: Likewise.
3745 * config/score/crti.asm: Likewise.
3746 * config/score/crtn.asm: Likewise.
3747 * config/sh/crt1.asm: Likewise.
3748 * config/sh/crti.asm: Likewise.
3749 * config/sh/crtn.asm: Likewise.
3750 * config/sh/divtab-sh4-300.c: Likewise.
3751 * config/sh/divtab-sh4.c: Likewise.
3752 * config/sh/divtab.c: Likewise.
3753 * config/sh/lib1funcs-4-300.asm: Likewise.
3754 * config/sh/lib1funcs-Os-4-200.asm: Likewise.
3755 * config/sh/lib1funcs.asm: Likewise.
3756 * config/sh/lib1funcs.h: Likewise.
3757 * config/sh/linux-atomic.asm: Likewise.
3758 * config/sh/linux-unwind.h: Likewise.
3759 * config/sh/shmedia.h: Likewise.
3760 * config/sh/sshmedia.h: Likewise.
3761 * config/sh/ushmedia.h: Likewise.
3762 * config/sparc/crtfastmath.c: Likewise.
3763 * config/sparc/linux-unwind.h: Likewise.
3764 * config/sparc/sol2-c1.asm: Likewise.
3765 * config/sparc/sol2-ci.asm: Likewise.
3766 * config/sparc/sol2-cn.asm: Likewise.
3767 * config/spu/divmodti4.c: Likewise.
3768 * config/spu/divv2df3.c: Likewise.
3769 * config/spu/float_disf.c: Likewise.
3770 * config/spu/float_unsdidf.c: Likewise.
3771 * config/spu/float_unsdisf.c: Likewise.
3772 * config/spu/float_unssidf.c: Likewise.
3773 * config/spu/mfc_multi_tag_release.c: Likewise.
3774 * config/spu/mfc_multi_tag_reserve.c: Likewise.
3775 * config/spu/mfc_tag_release.c: Likewise.
3776 * config/spu/mfc_tag_reserve.c: Likewise.
3777 * config/spu/mfc_tag_table.c: Likewise.
3778 * config/spu/multi3.c: Likewise.
3779 * config/spu/spu_internals.h: Likewise.
3780 * config/spu/spu_intrinsics.h: Likewise.
3781 * config/spu/spu_mfcio.h: Likewise.
3782 * config/spu/vec_types.h: Likewise.
3783 * config/spu/vmx2spu.h: Likewise.
3784 * config/stormy16/stormy16-lib2.c: Likewise.
3785 * config/svr4.h: Likewise.
3786 * config/sync.c: Likewise.
3787 * config/v850/lib1funcs.asm: Likewise.
3788 * config/vxlib-tls.c: Likewise.
3789 * config/vxlib.c: Likewise.
3790 * config/vxworks-dummy.h: Likewise.
3791 * config/xtensa/crti.asm: Likewise.
3792 * config/xtensa/crtn.asm: Likewise.
3793 * config/xtensa/ieee754-df.S: Likewise.
3794 * config/xtensa/ieee754-sf.S: Likewise.
3795 * config/xtensa/lib1funcs.asm: Likewise.
3796 * config/xtensa/lib2funcs.S: Likewise.
3797 * config/xtensa/linux-unwind.h: Likewise.
3798 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
3799 * config/xtensa/unwind-dw2-xtensa.h: Likewise.
3800 * coretypes.h: Likewise.
3801 * crtstuff.c: Likewise.
3802 * defaults.h: Likewise.
3803 * dwarf2.h: Likewise.
3804 * emutls.c: Likewise.
3805 * gbl-ctors.h: Likewise.
3806 * gcov-io.h: Likewise.
3807 * ginclude/float.h: Likewise.
3808 * ginclude/iso646.h: Likewise.
3809 * ginclude/stdarg.h: Likewise.
3810 * ginclude/stdbool.h: Likewise.
3811 * ginclude/stddef.h: Likewise.
3812 * ginclude/stdfix.h: Likewise.
3813 * ginclude/stdint-gcc.h: Likewise.
3814 * ginclude/tgmath.h: Likewise.
3815 * gthr-aix.h: Likewise.
3816 * gthr-dce.h: Likewise.
3817 * gthr-gnat.c: Likewise.
3818 * gthr-gnat.h: Likewise.
3819 * gthr-lynx.h: Likewise.
3820 * gthr-mipssde.h: Likewise.
3821 * gthr-nks.h: Likewise.
3822 * gthr-posix.c: Likewise.
3823 * gthr-posix.h: Likewise.
3824 * gthr-posix95.h: Likewise.
3825 * gthr-rtems.h: Likewise.
3826 * gthr-single.h: Likewise.
3827 * gthr-solaris.h: Likewise.
3828 * gthr-tpf.h: Likewise.
3829 * gthr-vxworks.h: Likewise.
3830 * gthr-win32.h: Likewise.
3832 * libgcc2.c: Likewise.
3833 * libgcc2.h: Likewise.
3834 * libgcov.c: Likewise.
3835 * tsystem.h: Likewise.
3836 * typeclass.h: Likewise.
3837 * unwind-c.c: Likewise.
3838 * unwind-compat.h: Likewise.
3839 * unwind-dw2-fde-compat.c: Likewise.
3840 * unwind-dw2-fde-darwin.c: Likewise.
3841 * unwind-dw2-fde-glibc.c: Likewise.
3842 * unwind-dw2-fde.c: Likewise.
3843 * unwind-dw2-fde.h: Likewise.
3844 * unwind-dw2.c: Likewise.
3845 * unwind-dw2.h: Likewise.
3846 * unwind-generic.h: Likewise.
3847 * unwind-pe.h: Likewise.
3848 * unwind-sjlj.c: Likewise.
3849 * unwind.inc: Likewise.
3850 * config/arm/neon-gen.ml: Change generated copyright header to
3851 refer to version 3 of the GNU General Public License with
3852 version 3.1 of the GCC Runtime Library Exception and to point
3853 readers at the COPYING3 and COPYING3.RUNTIME files and the
3854 FSF's license web page.
3855 * config/arm/arm_neon.h: Regenerate.
3857 2009-04-09 Jakub Jelinek <jakub@redhat.com>
3859 * config/cris/cris.md: Change copyright header to refer to version
3860 3 of the GNU General Public License.
3861 * doc/install.texi2html: Change copyright header to refer to version
3862 3 of the GNU General Public License and to point readers at the
3863 COPYING3 file and the FSF's license web page.
3864 * config/vax/linux.h: Likewise.
3866 2009-04-09 Paolo Bonzini <bonzini@gnu.org>
3868 * config/i386/i386.md (cmpcc): New.
3869 * config/i386/sync.md (sync_compare_and_swap*): Set FLAGS_REG.
3870 (sync_compare_and_swap_cc*): Delete.
3872 * config/s390/s390.c (s390_compare_emitted): Remove.
3873 (s390_emit_compare): Handle MODE_CC s390_compare_op0 like
3874 s390_compare_emitted used to be handled. Assert that modes match.
3875 (s390_emit_compare_and_swap): Use s390_emit_compare, do not
3876 refer to sync_compare_and_swap_ccsi.
3877 * config/s390/s390.h (s390_compare_emitted): Remove.
3878 * config/s390/s390.md (seq): Look for MODE_CC s390_compare_op0
3879 instead of s390_compare_emitted.
3880 (stack_protect_test, sync_compare_and_swap_cc): Set s390_compare_op0
3881 instead of s390_compare_emitted.
3882 * config/s390/s390.md (cmpcc): New.
3883 (sync_compare_and_swapqi, sync_compare_and_swaphi): Clobber
3884 CC_REGNUM, do not pretend it's set.
3885 (sync_compare_and_swap_cc*): Delete.
3886 * config/s390/predicates.md (cc_reg_operand): New.
3888 * expr.c (sync_compare_and_swap_cc): Delete.
3889 * optabs.h (sync_compare_and_swap_cc): Delete.
3890 * optabs.c (prepare_cmp_insn): Ignore which specific CCmode
3891 is being used with can_compare_p.
3892 (emit_cmp_and_jump_insn_1): Likewise when looking in the optab.
3894 (expand_bool_compare_and_swap): Do not use sync_compare_and_swap_cc,
3895 look for a MODE_CC set instead. Use emit_store_flag.
3896 (expand_compare_and_swap_loop): Likewise, with some additional
3897 complication to avoid a force_reg when useless. Use
3898 emit_cmp_and_jump_insns.
3899 * genopinit.c (optabs): Delete sync_compare_and_swap_cc.
3900 * doc/md.texi (sync_compare_and_swap_cc): Merge with
3901 sync_compare_and_swap documentation.
3903 2009-04-09 Jan Hubicka <jh@suse.cz>
3905 * except.c (find_prev_try): Break out from ....
3906 (duplicate_eh_regions): ... here; properly update prev_try pointers
3907 when duplication part of tree.
3908 (dump_eh_tree): Improve dumping.
3909 (verify_eh_region): New.
3910 (verify_eh_tree): Use it.
3912 2009-04-06 Richard Guenther <rguenther@suse.de>
3914 * c-gimplify.c (c_gimplify_expr): Fix the invalid GENERIC
3915 &ARRAY addresses by adjusting their types and prepending
3917 * tree-cfg.c (verify_gimple_assign_single): Verify that
3918 addresses are correct.
3920 2009-04-09 Richard Guenther <rguenther@suse.de>
3922 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Move non-constant
3923 indices into an array reference if possible.
3924 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
3925 Fold POINTER_PLUS_EXPR statements with invariant address.
3927 2009-04-09 Alan Modra <amodra@bigpond.net.au>
3930 * config.gcc (powerpc64-*-linux*): Always build biarch.
3932 2009-04-09 Joseph Myers <joseph@codesourcery.com>
3935 * c-typeck.c (do_case): If case label is not an INTEGER_CST, fold
3936 it and pedwarn if this results in an INTEGER_CST.
3938 2009-04-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3940 * doc/install.texi: Update minimum GMP version. Remove obsolete
3941 text in MPFR section.
3943 2009-04-08 Jakub Jelinek <jakub@redhat.com>
3945 * dwarf2out.c (class_scope_p): New static inline.
3946 (class_or_namespace_scope_p): Use it.
3947 (gen_variable_die): Use DW_TAG_member tag for static data member
3948 declarations instead of DW_TAG_variable.
3951 * omp-low.c (expand_omp_taskreg): Finalize taskreg static local_decls
3954 2009-04-08 Richard Guenther <rguenther@suse.de>
3956 * tree-ssa-sccvn.c (valueize_refs): Do not continue to
3957 valueize random data.
3959 2009-04-08 David Edelsohn <edelsohn@gnu.org>
3961 * config.gcc (aix tm_file): Add aix-stdint.h.
3962 (aix tm clause use_gcc_stdint): Set to wrap.
3963 * config/rs6000/aix-stdint.h: New file.
3965 2009-04-08 Richard Guenther <rguenther@suse.de>
3968 * tree-dfa.c (add_referenced_var): Do not recurse into
3969 global initializers.
3970 * tree-ssa-ccp.c (get_symbol_constant_value): Add newly
3972 (fold_const_aggregate_ref): Likewise.
3974 2009-04-08 Paolo Bonzini <bonzini@gnu.org>
3976 * recog.c (ordered_comparison_operator): New.
3977 * gensupport.c (std_preds): Add it.
3978 * doc/md.texi (Machine-Independent Predicates): Document it.
3980 2009-04-08 Jan Hubicka <jh@suse.cz>
3982 * tree-eh.c (cleanup_eh): When not optimizing, do not try EH merging.
3983 * function.h (rtl_eh): Remove exception_handler_label_map.
3984 * except.c (ehl_hash, ehl_eq, add_ehl_entry,
3985 remove_exception_handler_label, for_each_eh_label_1): Remove.
3986 (rtl_remove_unreachable_regions): Remove.
3987 (convert_from_eh_region_ranges): Do not remove unreachable regions.
3988 (find_exception_handler_labels): Don't build the hashtable.
3989 (maybe_remove_eh_handler): Remove.
3990 (for_each_eh_label): Rewrite to walk the tree.
3991 (rest_of_handle_eh): Do not cleanup cfg prior EH construction.
3992 * except.h (maybe_remove_eh_handler): Remove.
3993 * passes.c (init_optimization_passes): Schedule second EH cleanup
3995 * cfgrtl.c (rtl_delete_block, rtl_merge_blocks,
3996 cfg_layout_merge_blocks): Do not call maybe_remove_eh_handler.
3998 2009-04-08 Paolo Bonzini <bonzini@gnu.org>
4000 * genoutput.c (validate_optab_operands): New.
4001 (gen_insn, gen_expand): Call it.
4003 * genflags.c (gen_insn): Detect misused iterators.
4004 (main): Pass line_no to gen_insn, exit with status 1 on error.
4006 * genextract.c (line_no): Make global.
4007 (VEC_safe_set_locstr): Change assertion to error message.
4008 (main): Exit with status 1 on error.
4010 2009-04-08 Joseph Myers <joseph@codesourcery.com>
4014 * c-common.h (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
4015 C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
4016 EXPR_INT_CONST_OPERANDS): Remove duplicate definitions.
4017 * c-convert.c (convert): Do not call fold on results of conversion
4018 functions when the result is a C_MAYBE_CONST_EXPR.
4019 * c-parser.c (c_parser_postfix_expression): Do not fold condition
4020 of __builtin_choose_expr.
4021 * c-typeck.c (remove_c_maybe_const_expr): New.
4022 (build_unary_op, build_conditional_expr, build_compound_expr,
4023 build_binary_op, c_objc_common_truthvalue_conversion): Call
4024 remove_c_maybe_const_expr on any input C_MAYBE_CONST_EXPR with
4027 2009-04-08 Bingfeng Mei <bmei@broadcom.com>
4029 * fold-const.c (const_binop): Combine two VECTOR_CST under operation
4030 CODE to produce a new one. Add a prototype to use fold_convert_const
4032 2009-04-08 Danny Smith <dannysmith@users.sourceforge.net>
4035 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): Don't
4036 mix declarations and code.
4038 2009-04-08 Ben Elliston <bje@au.ibm.com>
4040 * gcc.c: Replace `CC' with `GCC' throughout.
4042 2009-04-07 H.J. Lu <hongjiu.lu@intel.com>
4044 * doc/invoke.texi: Document Atom support.
4046 2009-04-07 Jason Merrill <jason@redhat.com>
4049 * c-common.h, c-common.c: Add flag_pretty_templates.
4050 * c-opts.c (c_common_handle_option): Set it.
4051 * c.opt: Add -fno-pretty-templates.
4052 * doc/invoke.texi (C++ Dialect Options): Likewise.
4054 2009-04-07 Uros Bizjak <ubizjak@gmail.com>
4056 * config/ia64/ia64.c (ia64_builtins): Add IA64_BUILTIN_HUGE_VALQ.
4057 (ia64_init_builtins): Handle IA64_BUILTIN_HUGE_VALQ.
4058 (ia64_expand_builtin): Likewise.
4060 2009-04-07 Martin Jambor <mjambor@suse.cz>
4062 * tree-ssa-alias.c (refs_may_alias_p_1): Check for
4063 is_gimple_min_invariant rather than CONSTANT_CLASS_P so that invariant
4064 ADDR_EXPRS are include too.
4066 2009-04-07 Richard Guenther <rguenther@suse.de>
4068 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Non-aliased
4069 decls are only used if passes as parameters or if they are
4070 local statics and the call is not to a builtin.
4071 (call_may_clobber_ref_p_1): Likewise.
4073 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
4075 * expr.c (do_store_flag): Remove last argument. Simplify code
4076 to avoid duplication of tests already done by can_compare_p.
4077 (expand_expr_real_1): Adjust caller.
4079 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
4081 * optabs.c (can_compare_p): Test the predicate of a
4082 cbranch and cstore pattern.
4084 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
4086 * expr.c (convert_move): Use emit_store_flag instead of
4089 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
4091 * config/i386/i386.c (ix86_compare_emitted): Remove.
4092 (ix86_expand_compare, ix86_expand_branch): Handle MODE_CC
4093 ix86_compare_op0 like ix86_compare_emitted used to be handled.
4094 * config/i386/i386.h (ix86_compare_emitted): Remove.
4095 * config/i386/i386.md (stack_protect_test): Set ix86_compare_op0
4096 instead of ix86_compare_emitted.
4097 * config/i386/sync.md (sync_compare_and_swap_cc): Likewise.
4099 2009-04-07 Andrew Stubbs <ams@codesourcery.com>
4101 * config.gcc (sh-*-*): Add sysroot-suffix.h to tm_file.
4102 Add t-sysroot-suffix to tmake_file.
4103 * config/print-sysroot-suffix.sh: New file.
4104 * config/t-sysroot-suffix: New file.
4106 2009-04-07 Ben Elliston <bje@au.ibm.com>
4108 * libgcc2.c (INFINITY): Use __builtin_huge_val, not __builtin_inf,
4109 as the latter produces a warning when the target does not support
4112 2009-04-07 Ben Elliston <bje@au.ibm.com>
4114 * dfp.c: Replace type punning assignments with memcpy throughout.
4115 * Makefile.in (dfp.o-warn): Remove.
4117 2009-04-07 Alan Modra <amodra@bigpond.net.au>
4120 * config.gcc: Merge powerpc-*-linux* and powerpc64-*-linux*.
4121 Include soft-fp/t-softfp after rs6000/t-linux64.
4123 2009-04-06 Eric Botcazou <ebotcazou@adacore.com>
4125 * stor-layout.c (set_sizetype): Use the full precision of their
4126 machine mode for bitsize types.
4128 2009-04-06 H.J. Lu <hongjiu.lu@intel.com>
4130 * config/i386/i386.md: Revert 2 accidental checkins.
4132 2009-04-06 Joey Ye <joey.ye@intel.com>
4133 Xuepeng Guo <xuepeng.guo@intel.com>
4134 H.J. Lu <hongjiu.lu@intel.com>
4136 Atom pipeline model, tuning and insn selection.
4137 * config.gcc (atom): Add atom config options and target.
4139 * config/i386/atom.md: New.
4141 * config/i386/i386.c (atom_cost): New cost.
4142 (m_ATOM): New macro flag.
4143 (initial_ix86_tune_features): Set m_ATOM.
4144 (x86_accumulate_outgoing_args): Likewise.
4145 (x86_arch_always_fancy_math_387): Likewise.
4146 (processor_target): Add Atom cost.
4147 (cpu_names): Add Atom cpu name.
4148 (override_options): Set Atom ISA.
4149 (ix86_issue_rate): New case PROCESSOR_ATOM.
4150 (ix86_adjust_cost): Likewise.
4152 * config/i386/i386.h (TARGET_ATOM): New target macro.
4153 (ix86_tune_indices): Add X86_TUNE_OPT_AGU.
4154 (TARGET_OPT_AGU): New target option.
4155 (target_cpu_default): Add TARGET_CPU_DEFAULT_atom.
4156 (processor_type): Add PROCESSOR_ATOM.
4158 * config/i386/i386.md (cpu): Add new value "atom".
4159 (use_carry, movu): New attr.
4160 (atom.md): Include atom.md.
4161 (adddi3_carry_rex64): Set attr "use_carry".
4162 (addqi3_carry): Likewise.
4163 (addhi3_carry): Likewise.
4164 (addsi3_carry): Likewise.
4165 (*addsi3_carry_zext): Likewise.
4166 (subdi3_carry_rex64): Likewise.
4167 (subqi3_carry): Likewise.
4168 (subhi3_carry): Likewise.
4169 (subsi3_carry): Likewise.
4170 (x86_movdicc_0_m1_rex64): Likewise.
4171 (*x86_movdicc_0_m1_se): Likewise.
4172 (x86_movsicc_0_m1): Likewise.
4173 (*x86_movsicc_0_m1_se): Likewise.
4174 (*adddi_1_rex64): Emit add insn as much as possible.
4175 (*addsi_1): Likewise.
4176 (return_internal): Set atom_unit.
4177 (return_internal_long): Likewise.
4178 (return_pop_internal): Likewise.
4179 (*rcpsf2_sse): Set atom_sse_attr attr.
4180 (*qrt<mode>2_sse): Likewise.
4181 (*prefetch_sse): Likewise.
4183 * config/i386/i386-c.c (ix86_target_macros_internal): New case
4185 (ix86_target_macros_internal): Likewise.
4187 * config/i386/sse.md (cpu): Set attr "atom_sse_attr".
4188 (*prefetch_sse_rex): Likewise.
4189 (sse_rcpv4sf2): Likewise.
4190 (sse_vmrcpv4sf2): Likewise.
4191 (sse_sqrtv4sf2): Likewise.
4192 (<sse>_vmsqrt<mode>2): Likewise.
4193 (sse_ldmxcsr): Likewise.
4194 (sse_stmxcsr): Likewise.
4195 (*sse_sfence): Likewise.
4196 (sse2_clflush): Likewise.
4197 (*sse2_mfence): Likewise.
4198 (*sse2_lfence): Likewise.
4199 (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Set attr "movu".
4200 (<sse>_movup<ssemodesuffixf2c>): Likewise.
4201 (avx_movdqu<avxmodesuffix>): Likewise.
4202 (avx_lddqu<avxmodesuffix>): Likewise.
4203 (sse2_movntv2di): Change attr "type" to "ssemov".
4204 (sse2_movntsi): Likewise.
4205 (rsqrtv8sf2): Change attr "type" to "sseadd".
4206 (sse3_addsubv2df3): Set attr "atom_unit".
4207 (sse3_h<plusminus_insn>v4sf3): Likewise.
4208 (*sse2_pmaddwd): Likewise.
4209 (*vec_extractv2di_1_rex64): Likewise.
4210 (*vec_extractv2di_1_avx): Likewise.
4211 (sse2_psadbw): Likewise.
4212 (ssse3_phaddwv8hi3): Likewise.
4213 (ssse3_phaddwv4hi3): Likewise.
4214 (ssse3_phadddv4si3): Likewise.
4215 (ssse3_phadddv2si3): Likewise.
4216 (ssse3_phaddswv8hi3): Likewise.
4217 (ssse3_phaddswv4hi3): Likewise.
4218 (ssse3_phsubwv8hi3): Likewise.
4219 (ssse3_phsubwv4hi3): Likewise.
4220 (ssse3_phsubdv4si3): Likewise.
4221 (ssse3_phsubdv2si3): Likewise.
4222 (ssse3_phsubswv8hi3): Likewise.
4223 (ssse3_phsubswv4hi3): Likewise.
4224 (ssse3_pmaddubsw128): Likewise.
4225 (sse3_pmaddubsw: Likewise.
4226 (ssse3_palignrti): Likewise.
4227 (ssse3_palignrdi): Likewise.
4229 2009-04-06 Gerald Pfeifer <gerald@pfeifer.com>
4231 * doc/install.texi (Specific): Fix two cross-references to MinGW.
4233 2009-04-06 Richard Guenther <rguenther@suse.de>
4235 PR tree-optimization/28868
4236 * tree-ssa-pre.c (inserted_phi_names): New bitmap to keep track
4237 of which PHI results we inserted.
4238 (insert_into_preds_of_block): Record inserted PHIs.
4239 (eliminate): Eliminate redundant PHI nodes.
4240 (init_pre): Init inserted_phi_names.
4242 2009-04-06 Richard Guenther <rguenther@suse.de>
4244 PR tree-optimization/39643
4245 * tree-ssa-ccp.c (ccp_fold): Fold REALPART_EXPRs and
4246 IMAGPART_EXPRs of complex constants.
4247 (execute_fold_all_builtins): If we folded a call queue
4248 TODO_update_address_taken.
4250 2009-04-06 Jan Hubicka <jh@suse.cz>
4253 * except.c (remove_unreachable_regions): Propagate may_contain_throw
4256 2009-04-06 Andrew Stubbs <ams@codesourcery.com>
4258 * config/sh/lib1funcs.asm (ic_invalidate): Move ICBI out of the
4260 (ic_invalidate_array): Likewise.
4262 2009-04-06 Hariharan Sandanagobalane <hariharan@picochip.com>
4264 * calls.c (emit_library_call_value_1): Fix a problem with parameter
4265 alignment for library calls.
4267 2009-04-06 Danny Smith <dannysmith@users.sourceforge.net>
4269 * config.gcc (mingw32 tm_file): Add mingw-stdint.h.
4270 (mingw32 tm clause use_gcc_stdint): Set to wrap.
4271 * config/i386/mingw-stdint.h: New file.
4273 2009-04-05 Richard Guenther <rguenther@suse.de>
4275 PR tree-optimization/39648
4276 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Work around
4277 our &A vs. &A[0] IL deficiencies.
4279 2009-04-04 Jan Hubicka <jh@suse.cz>
4281 * except.c (sjlj_find_directly_reachable_regions): Be ready for
4282 removed toplevel regions.
4283 (sjlj_mark_call_sites): Likewise.
4285 2009-04-04 Dave Korn <dave.korn.cygwin@gmail.com>
4287 * config.gcc (cygwin tm_file): Add cygwin-stdint.h.
4288 (cygwin tm clause use_gcc_stdint): Set to wrap.
4289 * config/i386/cygwin-stdint.h: New file.
4291 2009-04-04 Richard Guenther <rguenther@suse.de>
4293 * Makefile.in (tree-ssa-copy.o): Add $(CFGLOOP_H) dependency.
4294 * tree-ssa-copy.c (init_copy_prop): Do not propagate through
4295 single-argument PHIs if we are in loop-closed SSA form.
4296 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Pass extra guards
4297 for the pre-condition.
4298 (slpeel_tree_peel_loop_to_edge): Likewise.
4299 (vect_build_loop_niters): Take an optional sequence to append stmts.
4300 (vect_generate_tmps_on_preheader): Likewise.
4301 (vect_do_peeling_for_loop_bound): Take extra guards for the
4303 (vect_do_peeling_for_alignment): Adjust. Unconditionally apply
4304 the cost model check.
4305 (vect_loop_versioning): Take stmt and stmt list to put pre-condition
4306 guards if we are going to peel. Do not apply versioning in that case.
4307 * tree-vectorizer.h (vect_loop_versioning): Adjust declaration.
4308 (vect_do_peeling_for_loop_bound): Likewise.
4309 * tree-vect-loop.c (vect_transform_loop): If we are peeling for
4310 loop bound only record extra pre-conditions, do not apply loop
4313 2009-04-04 Richard Guenther <rguenther@suse.de>
4315 * tree-ssa-operands.c (pop_stmt_changes): Remove automatic
4318 2009-04-04 Jan Hubicka <jh@suse.cz>
4320 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
4321 last_basic_block for size of bb->index indexed array.
4322 * bt-load.c (compute_defs_uses_and_gen, compute_kill,
4323 compute_out, link_btr_uses, build_btr_def_use_webs,
4324 build_btr_def_use_webs, migrate_btr_defs): Likewise.
4326 2009-04-04 Jan Hubicka <jh@suse.cz>
4328 * except.c (remove_eh_handler_and_replace): Break out from ...
4329 (remove_eh_handler): ... here.
4330 (bring_to_root): New function.
4331 (remove_unreachable_regions): Collect MUST_NOT_THROW, unify runtime
4332 handled ones, bring others to root of tree.
4334 2009-04-04 Jan Hubicka <jh@suse.cz>
4336 * tree-eh.c (tree_empty_eh_handler_p): Pattern match more curefully.
4337 (all_phis_safe_to_merge): New function.
4338 (update_info): New structure.
4339 (make_eh_edge_and_update_phi, update_eh_edges): New functions.
4340 (cleanup_empty_eh): Update SSA if possible.
4342 2009-04-04 Richard Guenther <rguenther@suse.de>
4344 * tree-ssa.c (verify_ssa): With -O0 we do not need VOPs.
4345 * tree-ssa-operands.c (append_vdef): Do not append VOPs at -O0.
4346 (append_vuse): Likewise.
4348 2009-04-04 Jakub Jelinek <jakub@redhat.com>
4350 * unwind-dw2.h (_Unwind_FrameState): Add REG_UNDEFINED enum value.
4351 * unwind-dw2.c (execute_cfa_program): Set how to REG_UNDEFINED
4352 instead of REG_UNSAVED for DW_CFA_undefined.
4353 (uw_update_context_1): Handle REG_UNDEFINED the same as REG_UNSAVED.
4354 (uw_update_context): If RA column is REG_UNDEFINED, mark it as
4357 2009-04-04 Richard Earnshaw <rearnsha@arm.com>
4360 * arm.md (movsfcc): Disable if not TARGET_HARD_FLOAT.
4361 * testsuite/gcc.c-torture/execute/pr39501.c: New file.
4362 * testsuite/gcc.c-torture/execute/pr39501.x: New file.
4364 2009-04-04 Richard Guenther <rguenther@suse.de>
4366 PR tree-optimization/8781
4367 PR tree-optimization/37892
4368 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Declare.
4369 * tree-ssa-sccvn.c (vn_reference_fold_indirect): New function.
4370 (valueize_refs): Call it for *& valueizations.
4371 (shared_reference_ops_from_ref): Rename to ...
4372 (valueize_shared_reference_ops_from_ref): ... this and valueize.
4373 (shared_reference_ops_from_call): Rename to ...
4374 (valueize_shared_reference_ops_from_call): ... this and valueize.
4375 (vn_reference_lookup): Update.
4376 (visit_reference_op_call): Likewise.
4377 * tree-ssa-pre.c (phi_translate_1): Fold *&.
4378 (eliminate): Value-replace the call address in call statements.
4380 2009-04-04 Richard Guenther <rguenther@suse.de>
4382 PR tree-optimization/39636
4383 * tree-ssa-forwprop.c
4384 (forward_propagate_addr_into_variable_array_index): Check for
4385 GIMPLE_ASSIGN before accessing the rhs code.
4387 2009-04-03 Jason Merrill <jason@redhat.com>
4389 * stor-layout.c (set_sizetype): Set TYPE_CANONICAL.
4391 2009-04-03 Steve Ellcey <sje@cup.hp.com>
4393 * config/ia64/ia64.md (extendsfdf2, extendsfxf2, extenddfxf2,
4394 truncdfsf2, truncxfsf2, truncxfdf2, floatdixf2, fix_truncsfdi2,
4395 fix_truncdfdi2, fix_truncxfdi2, fix_truncxfdi2_alts, floatunsdisf2,
4396 floatunsdidf2, floatunsdixf2, fixuns_truncsfdi2, fixuns_truncdfdi2,
4397 fixuns_truncxfdi2, fixuns_truncxfdi2_alts, divsi3_internal,
4398 smuldi3_highpart, umuldi3_highpart, ctzdi2, *getf_exp_xf,
4399 divdi3_internal_lat, divdi3_internal_thr, mulditi3, *mulditi3_internal,
4400 umulditi3, *umulditi3_internal, addsf3, mulsf3, abssf2, negsf2,
4401 *nabssf2, sminsf3, smaxsf3, *maddsf4, *msubsf4, *nmulsf3, *nmaddsf4,
4402 *nmaddsf4_alts, divsf3, *sqrt_approx, sqrtsf2, sqrtsf2_internal_thr,
4403 adddf3, *adddf3_trunc, muldf3, *muldf3_trunc, absdf2, negdf2, *nabsdf2,
4404 smindf3, smaxdf3, *madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc,
4405 *nmuldf3, *nmuldf3_trunc, *nmadddf4, *nmadddf4_alts, *nmadddf4_truncsf,
4406 *nmadddf4_truncsf_alts, divdf3, sqrtdf2, sqrtdf2_internal_thr, divxf3,
4407 sqrtxf2, sqrtxf2_internal_thr, *recip_approx):
4408 Use fr_reg_or_fp01_operand instead of fr_register_operand
4410 * config/ia64/div.md (extend<mode>rf2, truncrf<mode>2,
4411 recip_approx_rf, divsf3_internal_thr, divsf3_internal_lat,
4412 divdf3_internal_thr, divdf3_internal_lat divxf3_internal): Ditto.
4414 2009-04-03 Vladimir Makarov <vmakarov@redhat.com>
4416 PR rtl-optimization/39607
4417 PR rtl-optimization/39631
4421 2009-03-30 Vladimir Makarov <vmakarov@redhat.com>
4422 * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
4423 instead of DF_LR_OUT.
4424 * ira-lives.c (process_bb_node_lives): Ditto.
4425 * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
4426 instead of DF_LR_{OUT,IN}.
4427 * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
4428 * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
4430 2009-04-03 Steven Bosscher <steven@gcc.gnu.org>
4432 * omp-low.c (pass_expand_omp): Don't claim to provide PROP_gimple_lomp.
4433 (execute_lower_omp): Always run but take the short way out if -fopenmp
4435 (gate_lower_omp): Remove, forcing the pass manager to always run the
4436 pass and always set PROP_gimple_lomp.
4437 (pass_lower_omp): Remove gate function.
4438 * matrix-reorg.c (pass_ipa_matrix_reorg): Don't claim to provide
4439 PROP_trees. Instead, require it.
4440 * ipa-cp.c (pass_ipa_cp): Likewise.
4441 * ipa-inline.c (pass_early_inline): Don't claim to provide PROP_cfg.
4442 (pass_ipa_early_inline, pass_inline_parameters, pass_ipa_inline): Idem.
4443 * tree-profile.c (pass_tree_profile): Don't claim to provide PROP_cfg
4444 and PROP_gimple_leh.
4446 2009-04-03 Richard Guenther <rguenther@suse.de>
4449 PR tree-optimization/23940
4450 PR tree-optimization/33237
4453 PR tree-optimization/36201
4454 PR tree-optimization/36230
4455 PR tree-optimization/38049
4456 PR tree-optimization/38207
4457 PR tree-optimization/38230
4458 PR tree-optimization/38301
4459 PR tree-optimization/38585
4461 PR tree-optimization/38985
4462 PR tree-optimization/39299
4463 * tree-ssa-structalias.h: Remove.
4464 * tree-ssa-operands.h (NULL_USE_OPERAND_P): Make of type use_operand_p.
4465 (NULL_DEF_OPERAND_P): Make of type def_operand_p.
4466 (struct vuse_element_d): Remove.
4467 (struct vuse_vec_d): Likewise.
4468 (VUSE_VECT_NUM_ELEM, VUSE_VECT_ELEMENT_NC, VUSE_ELEMENT_PTR_NC,
4469 VUSE_ELEMENT_VAR_NC, VUSE_VECT_ELEMENT, VUSE_ELEMENT_PTR,
4470 SET_VUSE_VECT_ELEMENT, SET_VUSE_ELEMENT_VAR, SET_VUSE_ELEMENT_PTR,
4471 VUSE_ELEMENT_VAR): Likewise.
4472 (struct voptype_d): Likewise.
4473 (NUM_VOP_FREE_BUCKETS): Likewise.
4474 (struct ssa_operands): Remove vop_free_buckets and mpt_table fields.
4475 (struct stmt_operands_d): Remove.
4476 (VUSE_OP_PTR, VUSE_OP, SET_VUSE_OP, VUSE_NUM, VUSE_VECT,
4477 VDEF_RESULT_PTR, VDEF_RESULT, VDEF_OP_PTR, VDEF_OP, SET_VDEF_OP,
4478 VDEF_NUM, VDEF_VECT): Likewise.
4479 (copy_virtual_operands): Remove.
4480 (operand_build_cmp): Likewise.
4481 (create_ssa_artificial_load_stmt): Likewise.
4482 (enum ssa_op_iter_type): Remove ssa_op_iter_vdef.
4483 (struct ssa_operand_iterator_d): Remove vuses, vdefs, mayusesm
4484 vuse_index and mayuse_index members. Pack and move done and iter_type
4485 members to the front.
4486 (SSA_OP_VMAYUSE): Remove.
4487 (SSA_OP_VIRTUAL_USES): Adjust.
4488 (FOR_EACH_SSA_VDEF_OPERAND): Remove.
4489 (unlink_stmt_vdef): Declare.
4490 (add_to_addressable_set): Remove.
4491 * tree-vrp.c (stmt_interesting_for_vrp): Adjust.
4492 (vrp_visit_stmt): Likewise.
4493 * doc/tree-ssa.texi (Alias analysis): Update.
4494 * doc/invoke.texi (max-aliased-vops): Remove docs.
4495 (avg-aliased-vops): Likewise.
4496 * tree-into-ssa.c (syms_to_rename): Remove.
4497 (need_to_update_vops_p): Likewise.
4498 (need_to_initialize_update_ssa_p): Rename to ...
4499 (update_ssa_initialized_fn): ... this. Track function we are
4501 (symbol_marked_for_renaming): Simplify.
4502 (add_new_name_mapping): Do not set need_to_update_vops_p.
4503 (dump_currdefs): Use SYMS_TO_RENAME.
4504 (rewrite_update_stmt): Always walk all uses/defs.
4505 (dump_update_ssa): Adjust.
4506 (init_update_ssa): Take function argument. Track what we are
4508 (delete_update_ssa): Reset SYMS_TO_RENAME and update_ssa_initialized_fn.
4509 (create_new_def_for): Initialize for cfun, assert we are initialized
4511 (mark_sym_for_renaming): Simplify.
4512 (mark_set_for_renaming): Do not initialize update-ssa.
4513 (need_ssa_update_p): Simplify. Take function argument.
4514 (name_mappings_registered_p): Assert we ask for the correct function.
4515 (name_registered_for_update_p): Likewise.
4516 (ssa_names_to_replace): Likewise.
4517 (release_ssa_name_after_update_ssa): Likewise.
4518 (update_ssa): Likewise. Use SYMS_TO_RENAME.
4519 (dump_decl_set): Do not print a newline.
4520 (debug_decl_set): Do it here.
4521 (dump_update_ssa): And here.
4522 * tree-ssa-loop-im.c (move_computations): Adjust.
4523 (movement_possibility): Likewise.
4524 (determine_max_movement): Likewise.
4525 (gather_mem_refs_stmt): Likewise.
4526 * tree-dump.c (dequeue_and_dump): Do not handle SYMBOL_MEMORY_TAG
4528 * tree-complex.c (update_all_vops): Remove.
4529 (expand_complex_move): Adjust.
4530 * tree-ssa-loop-niter.c (chain_of_csts_start): Use NULL_TREE.
4531 Simplify test for memory referencing statement. Exclude
4532 non-invariant ADDR_EXPRs.
4533 * tree-pretty-print.c (dump_generic_node): Do not handle memory tags.
4534 * tree-loop-distribution.c (generate_memset_zero): Adjust.
4535 (rdg_flag_uses): Likewise.
4536 * tree-tailcall.c (suitable_for_tail_opt_p): Remove memory-tag
4538 (tree_optimize_tail_calls_1): Also split the
4539 edge from the entry block if we have degenerate PHI nodes in
4540 the first basic block.
4541 * tree.c (init_ttree): Remove memory-tag related code.
4542 (tree_code_size): Likewise.
4543 (tree_node_structure): Likewise.
4544 (build7_stat): Re-write to be build6_stat.
4545 * tree.h (MTAG_P, TREE_MEMORY_TAG_CHECK, TMR_TAG): Remove.
4546 (SSA_VAR_P): Adjust.
4547 (struct tree_memory_tag): Remove.
4548 (struct tree_memory_partition_tag): Likewise.
4549 (union tree_node): Adjust.
4550 (build7): Re-write to be build6.
4551 * tree-pass.h (pass_reset_cc_flags): Remove.
4552 (TODO_update_address_taken): New flag.
4553 (pass_simple_dse): Remove.
4554 * ipa-cp.c (ipcp_update_callgraph): Update SSA form.
4555 * params.h (MAX_ALIASED_VOPS): Remove.
4556 (AVG_ALIASED_VOPS): Likewise.
4557 * omp-low.c (expand_omp_taskreg): Update SSA form.
4558 * tree-ssa-dse.c (dse_optimize_stmt): Properly query if the rhs
4559 aliases the lhs in a copy stmt.
4560 * tree-ssa-dse.c (struct address_walk_data): Remove.
4561 (memory_ssa_name_same): Likewise.
4562 (memory_address_same): Likewise.
4563 (get_kill_of_stmt_lhs): Likewise.
4564 (dse_possible_dead_store_p): Simplify, use the oracle. Handle
4565 unused stores. Look through PHI nodes into post-dominated regions.
4566 (dse_optimize_stmt): Simplify. Properly remove stores.
4567 (tree_ssa_dse): Compute dominators.
4568 (execute_simple_dse): Remove.
4569 (pass_simple_dse): Likewise.
4570 * ipa-reference.c (scan_stmt_for_static_refs): Open-code
4571 gimple_loaded_syms and gimple_stored_syms computation.
4572 * toplev.c (dump_memory_report): Dump alias and pta stats.
4573 * tree-ssa-sccvn.c (vn_reference_compute_hash): Simplify.
4574 (vn_reference_eq): Likewise.
4575 (vuses_to_vec, copy_vuses_from_stmt, vdefs_to_vec,
4576 copy_vdefs_from_stmt, shared_lookup_vops, shared_vuses_from_stmt,
4577 valueize_vuses): Remove.
4578 (get_def_ref_stmt_vuses): Simplify. Rename to ...
4579 (get_def_ref_stmt_vuse): ... this.
4580 (vn_reference_lookup_2): New function.
4581 (vn_reference_lookup_pieces): Use walk_non_aliased_vuses for
4582 walking equivalent vuses. Simplify.
4583 (vn_reference_lookup): Likewise.
4584 (vn_reference_insert): Likewise.
4585 (vn_reference_insert_pieces): Likewise.
4586 (visit_reference_op_call): Simplify.
4587 (visit_reference_op_load): Likewise.
4588 (visit_reference_op_store): Likewise.
4589 (init_scc_vn): Remove shared_lookup_vuses initialization.
4590 (free_scc_vn): Remove shared_lookup_vuses freeing.
4591 (sort_vuses, sort_vuses_heap): Remove.
4592 (get_ref_from_reference_ops): Export.
4593 * tree-ssa-sccvn.h (struct vn_reference_s): Replace vuses
4594 vector with single vuse pointer.
4595 (vn_reference_lookup_pieces, vn_reference_lookup,
4596 vn_reference_insert, vn_reference_insert_pieces): Adjust prototypes.
4597 (shared_vuses_from_stmt): Remove.
4598 (get_ref_from_reference_ops): Declare.
4599 * tree-ssa-loop-manip.c (slpeel_can_duplicate_loop_p): Adjust.
4600 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
4601 memory-tag related code.
4602 * tree-ssa-ccp.c (get_symbol_constant_value): Remove memory-tag code.
4603 (likely_value): Add comment, skip static-chain of call statements.
4604 (surely_varying_stmt_p): Adjust.
4605 (gimplify_and_update_call_from_tree): Likewise.
4606 (execute_fold_all_builtins): Do not rebuild alias info.
4607 (gimplify_and_update_call_from_tree): Properly update VOPs.
4608 * tree-ssa-loop-ivopts.c (get_ref_tag): Remove.
4609 (copy_ref_info): Remove memory-tag related code.
4610 * tree-call-cdce.c (tree_call_cdce): Rename the VOP.
4611 * ipa-pure-const.c (check_decl): Remove memory-tag related code.
4612 (check_stmt): Open-code gimple_loaded_syms and gimple_stored_syms
4614 * tree-ssa-dom.c (gimple_p): Remove typedef.
4615 (eliminate_redundant_computations): Adjust.
4616 (record_equivalences_from_stmt): Likewise.
4617 (avail_expr_hash): Likewise.
4618 (avail_expr_eq): Likewise.
4619 * tree-ssa-propagate.c (update_call_from_tree): Properly update VOPs.
4620 (stmt_makes_single_load): Likewise.
4621 (stmt_makes_single_store): Likewise.
4622 * tree-ssa-alias.c: Rewrite completely.
4623 (debug_memory_partitions, dump_mem_ref_stats, debug_mem_ref_stats,
4624 debug_mem_sym_stats, dump_mem_sym_stats_for_var,
4625 debug_all_mem_sym_stats, debug_mp_info, update_mem_sym_stats_from_stmt,
4626 delete_mem_ref_stats, create_tag_raw, dump_points_to_info,
4627 dump_may_aliases_for, debug_may_aliases_for, new_type_alias):
4628 Remove public functions.
4629 (pass_reset_cc_flags): Remove.
4630 (pass_build_alias): Move ...
4631 * tree-ssa-structalias.c (pass_build_alias): ... here.
4632 * tree-ssa-alias.c (may_be_aliased): Move ...
4633 * tree-flow-inline.h (may_be_aliased): ... here.
4634 tree-ssa-alias.c (struct count_ptr_d, count_ptr_derefs,
4635 count_uses_and_derefs): Move ...
4636 * gimple.c: ... here.
4637 * gimple.h (count_uses_and_derefs): Declare.
4638 * tree-ssa-alias.c (dump_alias_stats, ptr_deref_may_alias_global_p,
4639 ptr_deref_may_alias_decl_p, ptr_derefs_may_alias_p,
4640 same_type_for_tbaa, nonaliasing_component_refs_p, decl_refs_may_alias_p,
4641 indirect_ref_may_alias_decl_p, indirect_refs_may_alias_p,
4642 ref_maybe_used_by_call_p, ref_maybe_used_by_stmt_p,
4643 call_may_clobber_ref_p, stmt_may_clobber_ref_p, maybe_skip_until,
4644 get_continuation_for_phi, walk_non_aliased_vuses, walk_aliased_vdefs):
4646 * tree-dfa.c (refs_may_alias_p): Move ...
4647 * tree-ssa-alias.c (refs_may_alias_p): ... here. Extend.
4648 * tree-ssa-alias.h: New file.
4649 * tree-ssa-sink.c (is_hidden_global_store): Adjust.
4650 (statement_sink_location): Likewise.
4651 * opts.c (decode_options): Do not adjust max-aliased-vops or
4652 avg-aliased-vops values.
4653 * timevar.def (TV_TREE_MAY_ALIAS): Remove.
4654 (TV_CALL_CLOBBER): Likewise.
4655 (TV_FLOW_SENSITIVE): Likewise.
4656 (TV_FLOW_INSENSITIVE): Likewise.
4657 (TV_MEMORY_PARTITIONING): Likewise.
4658 (TV_ALIAS_STMT_WALK): New timevar.
4659 * tree-ssa-loop-ivcanon.c (empty_loop_p): Adjust.
4660 * tree-ssa-address.c (create_mem_ref_raw): Use build6.
4661 (get_address_description): Remove memory-tag related code.
4662 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Adjust.
4663 * treestruct.def (TS_MEMORY_TAG, TS_MEMORY_PARTITION_TAG): Remove.
4664 * tree-eh.c (cleanup_empty_eh): Do not leave stale SSA_NAMEs
4665 and immediate uses in statements. Document.
4666 * gimple-pretty-print.c (dump_gimple_mem_ops): Adjust.
4667 (dump_symbols): Remove.
4668 (dump_gimple_mem_ops): Do not dump loaded or stored syms.
4669 * alias.c (get_deref_alias_set): New function split out from ...
4670 (get_alias_set): ... here.
4671 * alias.h (get_deref_alias_set): Declare.
4672 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove unused
4673 type parameter. Remove restrict pointer handling. Create a
4674 ref-all pointer in case type-based alias sets do not conflict.
4675 (vect_analyze_data_refs): Remove SMT related code.
4676 * tree-vect-stmts.c (vectorizable_store): Re-instantiate TBAA assert.
4677 (vectorizable_load): Likewise.
4678 * tree-data-ref.h (struct dr_alias): Remove symbol_tag field.
4679 (DR_SYMBOL_TAG, DR_VOPS): Remove.
4680 * tree-data-ref.c (dr_may_alias_p): Use the alias-oracle.
4681 Ignore vops and SMTs.
4682 (dr_analyze_alias): Likewise..
4683 (free_data_ref): Likewise.
4684 (create_data_ref): Likewise.
4685 (analyze_all_data_dependences): Likewise.
4686 (get_references_in_stmt): Adjust.
4687 * tree-flow-inline.h (gimple_aliases_computed_p,
4688 gimple_addressable_vars, gimple_call_clobbered_vars,
4689 gimple_call_used_vars, gimple_global_var, may_aliases, memory_partition,
4690 factoring_name_p, mark_call_clobbered, clear_call_clobbered,
4691 compare_ssa_operands_equal, symbol_mem_tag, set_symbol_mem_tag,
4692 gimple_mem_ref_stats): Remove.
4693 (gimple_vop): New function.
4694 (op_iter_next_use): Remove vuses and mayuses cases.
4695 (op_iter_next_def): Remove vdefs case.
4696 (op_iter_next_tree): Remove vuses, mayuses and vdefs cases.
4697 (clear_and_done_ssa_iter): Do not set removed fields.
4698 (op_iter_init): Likewise. Skip vuse and/or vdef if requested.
4699 Assert we are not iterating over vuses or vdefs if not also
4700 iterating over uses or defs.
4701 (op_iter_init_use): Likewise.
4702 (op_iter_init_def): Likewise.
4703 (op_iter_next_vdef): Remove.
4704 (op_iter_next_mustdef): Likewise.
4705 (op_iter_init_vdef): Likewise.
4706 (compare_ssa_operands_equal): Likewise.
4707 (link_use_stmts_after): Handle vuse operand.
4708 (is_call_used): Use is_call_clobbered.
4709 (is_call_clobbered): Global variables are always call clobbered,
4710 query the call-clobbers bitmap.
4711 (mark_call_clobbered): Ignore global variables.
4712 (clear_call_clobbered): Likewise.
4713 * tree-ssa-coalesce.c (create_outofssa_var_map): Adjust
4714 virtual operands sanity check.
4715 * tree.def (NAME_MEMORY_TAG, SYMBOL_MEMORY_TAG, MEMORY_PARTITION_TAG):
4717 (TARGET_MEM_REF): Remove TMR_TAG operand.
4718 * tree-dfa.c (add_referenced_var): Initialize call-clobber state.
4719 Remove call-clobber related code.
4720 (remove_referenced_var): Likewise. Do not clear mpt or symbol_mem_tag.
4721 (dump_variable): Do not dump SMTs, memory stats, may-aliases or
4722 partitions or escape reason.
4723 (get_single_def_stmt, get_single_def_stmt_from_phi,
4724 get_single_def_stmt_with_phi): Remove.
4725 (dump_referenced_vars): Tidy.
4726 (get_ref_base_and_extent): Allow bare decls.
4727 (collect_dfa_stats): Adjust.
4728 * graphite.c (rename_variables_in_stmt): Adjust.
4729 (graphite_copy_stmts_from_block): Likewise.
4730 (translate_clast): Likewise.
4731 * tree-ssa-pre.c (struct bb_bitmap_sets): Add expr_dies bitmap.
4733 (translate_vuse_through_block): Use the oracle.
4734 (phi_translate_1): Adjust.
4735 (value_dies_in_block_x): Use the oracle. Cache the outcome
4737 (valid_in_sets): Check if the VUSE for
4738 a REFERENCE is available.
4739 (eliminate): Do not remove stmts during elimination,
4740 instead queue and remove them afterwards.
4741 (do_pre): Do not rebuild alias info.
4742 (pass_pre): Run TODO_rebuild_alias before PRE.
4743 * tree-ssa-live.c (remove_unused_locals): Remove memory-tag code.
4744 * tree-sra.c (sra_walk_function): Use gimple_references_memory_p.
4745 (mark_all_v_defs_stmt): Remove.
4746 (mark_all_v_defs_seq): Adjust.
4747 (sra_replace): Likewise.
4748 (scalarize_use): Likewise.
4749 (scalarize_copy): Likewise.
4750 (scalarize_init): Likewise.
4751 (scalarize_ldst): Likewise.
4752 (todoflags): Remove.
4753 (tree_sra): Do not rebuild alias info.
4754 (tree_sra_early): Adjust.
4755 (pass_sra): Run TODO_update_address_taken before SRA.
4756 * tree-predcom.c (set_alias_info): Remove.
4757 (prepare_initializers_chain): Do not call it.
4758 (mark_virtual_ops_for_renaming): Adjust.
4759 (mark_virtual_ops_for_renaming_list): Remove.
4760 (initialize_root_vars): Adjust.
4761 (initialize_root_vars_lm): Likewise.
4762 (prepare_initializers_chain): Likewise.
4763 * tree-ssa-copy.c (may_propagate_copy): Remove memory-tag related code.
4764 (may_propagate_copy_into_stmt): Likewise.
4765 (merge_alias_info): Do nothing for now.
4766 (propagate_tree_value_into_stmt): Adjust.
4767 (stmt_may_generate_copy): Likewise.
4768 * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr): Do
4769 not mark symbols for renaming.
4770 (forward_propagate_addr_expr): Match up push/pop_stmt_changes
4771 with the same statement, make sure to update the new pointed-to one.
4772 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not copy
4773 call statements, do not mark symbols for renaming.
4774 (mark_operand_necessary): Dump something.
4775 (ref_may_be_aliased): New function.
4776 (mark_aliased_reaching_defs_necessary_1): New helper function.
4777 (mark_aliased_reaching_defs_necessary): Likewise.
4778 (mark_all_reaching_defs_necessary_1): Likewise.
4779 (mark_all_reaching_defs_necessary): Likewise.
4780 (propagate_necessity): Do not process virtual PHIs. For
4781 non-aliased loads mark all reaching definitions as necessary.
4782 For aliased loads and stores mark the immediate dominating
4783 aliased clobbers as necessary.
4784 (visited): New global static.
4785 (perform_tree_ssa_dce): Free visited bitmap after propagating
4787 (remove_dead_phis): Perform simple dead virtual PHI removal.
4788 (remove_dead_stmt): Properly unlink virtual operands when
4790 (eliminate_unnecessary_stmts): Schedule PHI removal after
4792 * tree-ssa-ter.c (is_replaceable_p): Adjust.
4793 (process_replaceable): Likewise.
4794 (find_replaceable_in_bb): Likewise.
4795 * tree-ssa.c (verify_ssa_name): Verify all VOPs are
4796 based on the single gimple vop.
4797 (verify_flow_insensitive_alias_info): Remove.
4798 (verify_flow_sensitive_alias_info): Likewise.
4799 (verify_call_clobbering): Likewise.
4800 (verify_memory_partitions): Likewise.
4801 (verify_alias_info): Likewise.
4802 (verify_ssa): Adjust..
4803 (execute_update_addresses_taken): Export. Update SSA
4804 manually. Optimize only when optimizing. Use a local bitmap.
4805 (pass_update_address_taken): Remove TODO_update_ssa, add
4807 (pass_update_address_taken): Just use TODO_update_address_taken.
4808 (init_tree_ssa): Do not initialize addressable_vars.
4809 (verify_ssa): Verify new VUSE / VDEF properties.
4810 Verify that all stmts definitions have the stmt as SSA_NAME_DEF_STMT.
4811 Do not call verify_alias_info.
4812 (delete_tree_ssa): Clear the VUSE, VDEF operands.
4813 Do not free the loaded and stored syms bitmaps. Reset the escaped
4814 and callused solutions. Do not free addressable_vars.
4815 Remove memory-tag related code.
4816 (warn_uninitialized_var): Aliases are always available.
4817 * tree-ssa-loop-prefetch.c (gather_memory_references): Adjust.
4818 * lambda-code.c (can_put_in_inner_loop): Adjust.
4819 (can_put_after_inner_loop): Likewise.
4820 (perfect_nestify): Likewise.
4821 * tree-vect-stmts.c (vect_stmt_relevant_p): Adjust.
4822 (vect_gen_widened_results_half): Remove CALL_EXPR handling.
4823 (vectorizable_conversion): Do not mark symbols for renaming.
4824 * tree-inline.c (remap_gimple_stmt): Clear VUSE/VDEF.
4825 (expand_call_inline): Unlink the calls virtual operands before
4827 (tree_function_versioning): Do not call update_ssa if we are not
4828 updating clones. Simplify.
4829 * tree-ssa-phiprop.c (phivn_valid_p): Adjust.
4830 (propagate_with_phi): Likewise..
4831 * tree-outof-ssa.c (create_temp): Remove memory tag and call
4832 clobber code. Assert we are not aliased or global.
4833 * tree-flow.h: Include tree-ssa-alias.h
4834 (enum escape_type): Remove.
4835 (struct mem_sym_stats_d): Likewise.
4836 (struct mem_ref_stats_d): Likewise.
4837 (struct gimple_df): Add vop member. Remove global_var,
4838 call_clobbered_vars, call_used_vars, addressable_vars,
4839 aliases_compted_p and mem_ref_stats members. Add syms_to_rename,
4840 escaped and callused members.
4841 (struct ptr_info_def): Remove all members, add points-to solution
4843 (struct var_ann_d): Remove in_vuse_list, in_vdef_list,
4844 call_clobbered, escape_mask, mpt and symbol_mem_tag members.
4845 * Makefile.in (TREE_FLOW_H): Add tree-ssa-alias.h.
4846 (tree-ssa-structalias.o): Remove tree-ssa-structalias.h.
4847 (tree-ssa-alias.o): Likewise.
4848 (toplev.o): Add tree-ssa-alias.h
4849 (GTFILES): Remove tree-ssa-structalias.h, add tree-ssa-alias.h.
4850 * gimple.c (gimple_set_bb): Fix off-by-one error.
4851 (is_gimple_reg): Do not handle memory tags.
4852 (gimple_copy): Also copy virtual operands.
4853 Delay updating the statement. Do not reset loaded and stored syms.
4854 (gimple_set_stored_syms): Remove.
4855 (gimple_set_loaded_syms): Likewise.
4856 (gimple_call_copy_skip_args): Copy the virtual operands
4857 and mark the new statement modified.
4858 * tree-ssa-structalias.c (may_alias_p): Remove.
4859 (set_uids_in_ptset): Take the alias set to prune with as
4860 parameter. Fold in the alias test of may_alias_p.
4861 (compute_points_to_sets): Compute whether a ptr is dereferenced
4863 (process_constraint): Deal with &ANYTHING on the lhs, reject all
4864 other ADDRESSOF constraints on the lhs.
4865 (get_constraint_for_component_ref): Assert that we don't get
4866 ADDRESSOF constraints from the base of the reference.
4867 Properly generate UNKNOWN_OFFSET for DEREF if needed.
4868 (struct variable_info): Remove collapsed_to member.
4869 (get_varinfo_fc): Remove.
4870 (new_var_info): Do not set collapsed_to.
4871 (dump_constraint): Do not follow cycles.
4872 (dump_constraint_graph): Likewise.
4873 (build_pred_graph): Likewise.
4874 (build_succ_graph): Likewise.
4875 (rewrite_constraints): Likewise.
4876 (do_simple_structure_copy): Remove.
4877 (do_rhs_deref_structure_copy): Remove.
4878 (do_lhs_deref_structure_copy): Remove.
4879 (collapse_rest_of_var): Remove.
4880 (do_structure_copy): Re-implement.
4881 (pta_stats): New global variable.
4882 (dump_pta_stats): New function.
4883 (struct constraint_expr): Make offset signed.
4884 (UNKNOWN_OFFSET): Define special value.
4885 (dump_constraint): Dump UNKNOWN_OFFSET as UNKNOWN.
4886 (solution_set_expand): New helper function split out from ...
4887 (do_sd_constraint): ... here.
4888 (solution_set_add): Handle UNKNOWN_OFFSET. Handle negative offsets.
4889 (do_ds_constraint): Likewise.
4890 (do_sd_constraint): Likewise. Do not special-case ESCAPED = *ESCAPED
4891 and CALLUSED = *CALLUSED.
4892 (set_union_with_increment): Make inc argument signed.
4893 (type_safe): Remove.
4894 (get_constraint_for_ptr_offset): Handle unknown and negative
4896 (first_vi_for_offset): Handle offsets before start. Bail
4897 out early for offsets beyond the variable extent.
4898 (first_or_preceding_vi_for_offset): New function.
4899 (init_base_vars): Add ESCAPED = ESCAPED + UNKNOWN_OFFSET constraint.
4900 Together with ESCAPED = *ESCAPED this properly computes reachability.
4901 (find_what_var_points_to): New function.
4902 (find_what_p_points_to): Implement in terms of find_what_var_points_to.
4903 (pt_solution_reset, pt_solution_empty_p, pt_solution_includes_global,
4904 pt_solution_includes_1, pt_solution_includes, pt_solutions_intersect_1,
4905 pt_solutions_intersect): New functions.
4906 (compute_call_used_vars): Remove.
4907 (compute_may_aliases): New main entry into PTA computation.
4908 * gimple.h (gimple_p): New typedef.
4909 (struct gimple_statement_base): Remove references_memory_p.
4910 (struct gimple_statement_with_memory_ops_base): Remove
4911 vdef_ops, vuse_ops, stores and loads members. Add vdef and vuse
4913 (gimple_vuse_ops, gimple_set_vuse_ops, gimple_vdef_ops,
4914 gimple_set_vdef_ops, gimple_loaded_syms, gimple_stored_syms,
4915 gimple_set_references_memory): Remove.
4916 (gimple_vuse_op, gimple_vdef_op, gimple_vuse, gimple_vdef,
4917 gimple_vuse_ptr, gimple_vdef_ptri, gimple_set_vuse, gimple_set_vdef):
4919 * tree-cfg.c (move_block_to_fn): Fix off-by-one error.
4920 (verify_expr): Allow RESULT_DECL.
4921 (gimple_duplicate_bb): Do not copy virtual operands.
4922 (gimple_duplicate_sese_region): Adjust.
4923 (gimple_duplicate_sese_tail): Likewise.
4924 (mark_virtual_ops_in_region): Remove.
4925 (move_sese_region_to_fn): Do not call it.
4926 * passes.c (init_optimization_passes): Remove pass_reset_cc_flags
4927 and pass_simple_dse.
4928 (execute_function_todo): Handle TODO_update_address_taken,
4929 call execute_update_addresses_taken for TODO_rebuild_alias.
4930 (execute_todo): Adjust.
4931 (execute_one_pass): Init dump files early.
4932 * ipa-struct-reorg.c (finalize_var_creation): Do not mark vars
4934 (create_general_new_stmt): Clear vops.
4935 * tree-ssa-reassoc.c (get_rank): Adjust.
4936 * tree-vect-slp.c (vect_create_mask_and_perm): Do not mark
4937 symbols for renaming.
4938 * params.def (PARAM_MAX_ALIASED_VOPS): Remove.
4939 (PARAM_AVG_ALIASED_VOPS): Likewise.
4940 * tree-ssanames.c (init_ssanames): Allocate SYMS_TO_RENAME.
4941 (duplicate_ssa_name_ptr_info): No need to copy the shared bitmaps.
4942 * tree-ssa-operands.c: Simplify for new virtual operand representation.
4943 (operand_build_cmp, copy_virtual_operands,
4944 create_ssa_artificial_load_stmt, add_to_addressable_set,
4945 gimple_add_to_addresses_taken): Remove public functions.
4946 (unlink_stmt_vdef): New function.
4948 2009-04-03 Alan Modra <amodra@bigpond.net.au>
4950 * config.gcc (powerpc-*-linux*): Merge variants.
4952 2009-04-02 Chao-ying Fu <fu@mips.com>
4953 James Grosbach <james.grosbach@microchip.com>
4955 * config/mips/mips.c (mips_frame_info): Add acc_mask, num_acc,
4956 num_cop0_regs, acc_save_offset, cop0_save_offset, acc_sp_offset,
4958 (machine_function): Add interrupt_handler_p, use_shadow_register_set_p,
4959 keep_interrupts_masked_p, use_debug_exception_return_p.
4960 (mips_attribute_table): Add interrupt, use_shadow_register_set,
4961 keep_interrupts_masked, use_debug_exception_return.
4962 (mips_interrupt_type_p, mips_use_shadow_register_set_p,
4963 mips_keep_interrupts_masked_p, mips_use_debug_exception_return_p):
4965 (mips_function_ok_for_sibcall): Return false for interrupt handlers.
4966 (mips_print_operand): Process COP0 registers to print $0 .. $31
4967 correctly for GAS to process.
4968 (mips_interrupt_extra_call_saved_reg_p): New function.
4969 (mips_cfun_call_saved_reg_p): For interrupt handlers, we need to check
4971 (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
4972 (mips_compute_frame_info): Add supports for interrupt context that
4973 includes doubleword accumulators and COP0 registers.
4974 (mips_for_each_saved_acc): New function.
4975 (mips_for_each_saved_gpr_and_fpr): Change the function name from
4976 mips_for_each_saved_reg.
4977 (mips_save_reg): Save accumulators.
4978 (mips_kernel_reg_p): A new for_each_rtx callback.
4979 (mips_expand_prologue): Support interrupt handlers.
4980 (mips_restore_reg): Restore accumulators.
4981 (mips_expand_epilogue): Support interrupt handlers.
4982 (mips_can_use_return_insn): Return false for interrupt handlers.
4983 (mips_epilogue_uses): New function.
4984 * config/mips/mips.md (UNSPEC_ERET, UNSPEC_DERET, UNSPEC_DI,
4985 UNSPEC_EHB, UNSPEC_RDPGPR, UNSPEC_COP0): New UNSPEC.
4986 (mips_eret, mips_deret, mips_di, mips_ehb, mips_rdpgpr,
4987 cop0_move): New instructions.
4988 * config/mips/mips-protos.h (mips_epilogue_uses): Declare.
4989 * config/mips/mips.h (K0_REG_NUM, K1_REG_NUM, KERNEL_REG_P): New
4991 (COP0_STATUS_REG_NUM, COP0_CAUSE_REG_NUM, COP0_EPC_REG_NUM):
4993 (CAUSE_IPL, SR_IPL, SR_EXL, SR_IE): New defines.
4994 (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): For
4995 interrupt handlers, we use K0 as the temporary register.
4996 (EPILOGUE_USES): Change to a function call.
4997 * config/mips/sde.h (MIPS_EPILOGUE_TEMP_REGNUM): For interrupt
4998 handlers, we use K0 as the temporary register.
5000 * doc/extend.texi (Function Attributes): Document interrupt,
5001 use_shadow_register_set, keep_interrupts_masked,
5002 use_debug_exception_return for MIPS attributes.
5004 2009-04-03 Alan Modra <amodra@bigpond.net.au>
5006 * config.gcc (powerpc64-*-gnu*): Add rs6000/default64.h to tm_file.
5007 Remove a number of t-files from tmake_file.
5008 * config/rs6000/sysv4.opt (mprototype): Name variable target_prototype.
5009 * config/rs6000/sysv4.h (TARGET_PROTOTYPE): Define.
5010 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
5011 target_prototype, not TARGET_PROTOTYPE.
5012 (LINK_OS_GNU_SPEC): Define.
5013 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Delete tramp.S
5014 and darwin-ldoubdle.c.
5016 2009-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
5019 * gcc.c (save_temps_flag): Add support for -save-temps=obj.
5020 (cpp_options): Ditto.
5021 (default_compilers): Ditto.
5022 (display_help): Ditto.
5023 (process_command): Ditto.
5025 (set_input): Use lbasename instead of duplicate code.
5026 (save_temps_prefix): New static for -save-temps=obj.
5027 (save_temps_length): Ditto.
5029 * doc/invoke.texi (-save-temps=obj): Document new variant to
5032 2009-04-02 Jeff Law <law@redhat.com>
5034 * reload1.c (fixup_eh_region_notes): Remove write-only "trap_count"
5037 2009-04-02 H.J. Lu <hongjiu.lu@intel.com>
5039 * configure.ac: Support -Bstatic/-Bdynamic for linker version > 2.
5040 * configure: Regenerated.
5042 2009-04-02 Rafael Avila de Espindola <espindola@google.com>
5044 * c-decl.c (merge_decls): Make sure newdecl and olddecl don't
5045 share the argument list.
5047 2009-04-02 Rafael Avila de Espindola <espindola@google.com>
5051 2009-02-12 Diego Novillo <dnovillo@google.com>
5053 * varpool.c (debug_varpool): New.
5054 * cgraph.h (debug_varpool): Declare.
5056 2009-04-02 Jan Hubicka <jh@suse.cz>
5058 * passes.c (init_optimization_passes): Remove two copies of ehcleanup
5061 2009-04-02 H.J. Lu <hongjiu.lu@intel.com>
5063 * config/i386/i386.c (ix86_abi): Move initialization to ...
5064 (override_options): Here.
5066 2009-04-02 Christian Bruel <christian.bruel@st.com>
5068 * config/sh/sh.c (sh_dwarf_register_span): New function.
5069 (TARGET_DWARF_REGISTER_SPAN): Define.
5070 * config/sh/sh-protos.h (sh_dwarf_register_span): Declare.
5072 2009-04-02 Ira Rosen <irar@il.ibm.com>
5074 PR tree-optimization/39595
5075 * tree-vect-slp.c (vect_build_slp_tree): Check that the size of
5076 interleaved loads group is not greater than the SLP group size.
5078 2009-04-02 Rafael Avila de Espindola <espindola@google.com>
5080 * builtins.c (is_builtin_name): New.
5081 (called_as_built_in): Use is_builtin_name.
5082 * tree.h (is_builtin_name): New.
5083 * varasm.c (incorporeal_function_p): Use is_builtin_name
5085 2009-04-02 Andrew Stubbs <ams@codesourcery.com>
5087 * config/sh/linux-unwind.h: Disable when inhibit_libc is defined.
5089 2009-04-02 Dodji Seketeli <dodji@redhat.com>
5092 * c-decl.c (clone_underlying_type): Move this ...
5093 * c-common.c (set_underlying_type): ... here.
5094 Also, make sure the function properly sets TYPE_STUB_DECL() on
5095 the newly created typedef variant type.
5096 * c-common.h (is_typedef_decl, set_underlying_type): Declare ...
5097 * c-common.c (is_typedef_decl, set_underlying_type): ... new entry
5100 2009-04-02 Richard Guenther <rguenther@suse.de>
5102 PR tree-optimization/37221
5103 * tree-flow.h (degenerate_phi_result): Declare.
5104 * tree-ssa-dom.c (degenerate_phi_result): Export.
5105 * tree-scalar-evolution.c (analyze_initial_condition): If
5106 the initial condition is defined by a degenerate PHI node
5107 use the degenerate value.
5109 2009-04-01 Eric Botcazou <ebotcazou@adacore.com>
5111 PR rtl-optimization/39588
5112 * combine.c (merge_outer_ops): Do not set the constant when this
5114 (simplify_shift_const_1): Do not modify it either in this case.
5116 2009-04-01 Steven Bosscher <steven@gcc.gnu.org>
5118 * config/ia64/ia64.c (ia64_handle_option): Inform user that Itanium1
5119 tuning is deprecated if -mtune value is set to an Itanium1 variant.
5121 2009-04-01 Janis Johnson <janis187@us.ibm.com>
5124 * c-lex.c (interpret_float): Default (no suffix) is double.
5126 2009-04-1 Xinliang David Li <davidxl@google.com>
5128 * config/i386/i386.c (legitimate_constant_p): Recognize
5129 all one vector constant.
5131 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
5133 * config/vax/vax.c: Add #includes to silence warnings.
5134 Change #include order to silence two warnings.
5136 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
5138 * config/vax/linux.h (TARGET_DEFAULT): Add the MASK_QMATH flag bit.
5139 (ASM_SPEC): Pass -k to the assembler for PIC code.
5141 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
5143 * config.gcc: Add vax-*-linux* to the switch.
5144 * config/vax/linux.h: New file. (TARGET_VERSION,
5145 TARGET_OS_CPP_BUILTINS, TARGET_DEFAULT, CPP_SPEC, LINK_SPEC): Define.
5147 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
5149 * config/vax/vax.c (vax_output_int_move, adjacent_operands_p):
5150 Use predicate macros instead of GET_CODE() == foo.
5151 * config/vax/vax.md (movsi_2, movstrictqi, and<mode>3, ashrsi3,
5152 ashlsi3, rotrsi3, <unnamed>): Likewise.
5154 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
5156 * config/vax/builtins.md (jbbssiqi, jbbssihi, jbbssisi, jbbcciqi,
5157 jbbccihi, jbbccisi): Remova trailing whitespace.
5158 * config/vax/constraints.md: Likewise.
5159 * config/vax/elf.h: (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
5160 * config/vax/openbsd1.h (OBSD_OLD_GAS): Likewise.
5161 * config/vax/predicates.md: Likewise.
5162 * config/vax/vax.c (print_operand_address, vax_output_int_move,
5163 vax_expand_addsub_di_operands, adjacent_operands_p): Likewise.
5164 * config/vax/vax.h: Likewise.
5165 * config/vax/vax.md (nonlocal_goto): Likewise.
5167 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
5169 * config/vax/vax.c (vax_float_literal, vax_output_int_move)
5170 (indirectable_address_p, adjacent_operands_p): Add spaces around
5172 * config/vax/vax-protos.h (adjacent_operands_p): Likewise.
5174 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
5176 * config/vax/vax.c (legitimate_constant_address_p,
5177 legitimate_constant_p, indirectable_address_p, nonindexed_address_p,
5178 index_term_p, reg_plus_index_p, legitimate_address_p,
5179 vax_mode_dependent_address_p): Update comments to match functions
5180 modified by the recent int->bool conversion.
5182 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
5184 * config/vax/builtins.md: Update copyright message.
5185 * config/vax/constraints.md: Likewise.
5186 * config/vax/netbsd-elf.h: Likewise.
5187 * config/vax/predicates.md: Likewise.
5188 * config/vax/vax-protos.h: Likewise.
5189 * config/vax/vax.c: Likewise.
5190 * config/vax/vax.h: Likewise.
5191 * config/vax/vax.md: Likewise.
5192 * config/vax/vax.opt: Likewise.
5194 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
5196 * config/vax/builtins.md (ffssi2, ffssi2_internal,
5197 sync_lock_test_and_set<mode>, sync_lock_release<mode>): Fix indention.
5198 * config/vax/constraints.md (B, R): Likewise.
5199 * config/vax/predicates.md (external_memory_operand,
5200 nonimmediate_addsub_di_operand): Likewise.
5201 * config/vax/vax.c (vax_output_int_add): Likewise.
5202 * config/vax/vax.md (movsi, movsi_2, mov<mode>, call_value,
5203 untyped_call): Likewise.
5205 2009-04-01 Matt Thomas <matt@3am-software.com>
5207 * config/vax/predicates.md: New file.
5208 (symbolic_operand, local_symbolic_operand, external_symbolic_operand,
5209 external_const_operand, nonsymbolic_operand, external_memory_operand,
5210 indirect_memory_operand, indexed_memory_operand,
5211 illegal_blk_memory_operand, illegal_addsub_di_memory_operand,
5212 nonimmediate_addsub_di_operand, general_addsub_di_operand): New
5214 * config/vax/constraints.md: New file.
5215 (Z0, U06, U08, U16, CN6, S08, S16, I, J, K, L, M, N, O, G, Q, B, R, T):
5217 * config/vax/builtins.md: New file.
5218 (ffssi2, ffssi2_internal, sync_lock_test_and_set<mode>, jbbssiqi,
5219 jbbssihi, jbbssisi, sync_lock_release<mode>, jbbcciqi, jbbccihi,
5221 * config/vax/vax.opt (mqmath): Add option.
5222 * config/vax/vax.md (isfx): Extend with DI.
5223 (VAXintQH, VAXintQHSD): Define.
5224 (tst<mode>, cmp<mode>, *bit<mode>, movmemhi1, truncsiqi2, truncsihi2,
5225 mulsidi3, add<mode>3, sub<mode>, mul<mode>3, div<mode>3, and<mode>,
5226 and<mode>_const_int, ior<mode>3, xor<mode>3, neg<mode>2,
5227 one_cmpl<mode>2, ashlsi3, lshrsi3, rotlsi3): Update constraints.
5228 (movdi): Update constraints and use vax_output_int_move().
5229 (movsi, movsi_2, pushlclsymreg, pushextsymreg, movlclsymreg,
5230 movextsymreg, adddi3, adcdi3, subdi3, sbcdi3, pushextsym, movextsym,
5231 pushlclsym, movlclsym, movaddr<mode>, pushaddr<mode>,
5232 nonlocal_goto): New.
5233 (mov<mode>): Extend accepted operand types.
5234 (subdi3_old): Rename from subdi3, change update constraints and use
5235 a new implementation.
5236 * config/vax/vax.h (PCC_BITFIELD_TYPE_MATTERS): Add space.
5237 (FRAME_POINTER_CFA_OFFSET, IRA_COVER_CLASSES, CLASS_MAX_NREGS,
5238 MOVE_RATIO, CLEAR_RATIO): Define.
5239 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P,
5240 CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
5241 (PRINT_OPERAND): Redefine using a function instead of inlined code.
5242 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
5243 (split_quadword_operands): Make static and really allow variable
5245 (print_operand_address): Update for PIC generation.
5246 (print_operand, vax_builtin_setjmp_frame_value, vax_output_int_subtract,
5247 indexable_address_p, fixup_mathdi_operand,
5248 vax_expand_addsub_di_operands, adjacent_operands_p): New.
5249 (vax_float_literal, legitimate_constant_p,
5250 indirectable_constant_address_p, index_term_p,
5251 reg_plus_index_p): Return bool instead of int.
5252 (vax_rtx_costs): Fix cost for CONST_INT, indent and use HOST_WIDE_INT
5254 (vax_output_int_move, vax_output_int_add): Extend to allow PIC
5256 (vax_output_conditional_branch): Indent.
5257 (legitimate_constant_address_p, indirectable_constant_address_p,
5258 indirectable_address_p, nonindexed_address_p, legitimate_address_p,
5259 vax_mode_dependent_address_p): Return bool instead of int, update for
5261 * config/vax/vax-protos.h (legitimate_constant_address_p,
5262 legitimate_constant_p, legitimate_address_p,
5263 vax_mode_dependent_address_p): Change declaration to bool.
5264 (legitimate_pic_operand_p, adjacent_operands_p, print_operand,
5265 vax_expand_addsub_di_operands, vax_output_int_subtract,
5266 vax_output_movmemsi): Declare.
5267 (split_quadword_operands, vax_float_literal): Delete declaration.
5268 * config/vax/netbsd-elf.h (CC1_SPEC, CC1PLUS_SPEC) Define.
5269 * config/vax/elf.h (NO_EXTERNAL_INDIRECT_ADDRESS,
5270 VAX_CC1_AND_CC1PLUS_SPEC, ASM_PREFERRED_EH_DATA_FORMAT,
5271 ASM_OUTPUT_DWARF_PCREL): Define.
5272 (ASM_SPEC): Change definition to allow PIC generation.
5274 2009-04-01 Steve Ellcey <sje@cup.hp.com>
5276 * doc/sourcebuild.texi: Update front-end requirements.
5278 2009-04-01 Jakub Jelinek <jakub@redhat.com>
5281 * config/rs6000/rs6000.md (andsi3_internal5_nomc,
5282 anddi3_internal2_nomc, anddi3_internal3_nomc): Removed.
5283 (booldi3_internal3): Use boolean_or_operator instead of
5286 2009-04-01 Joseph Myers <joseph@codesourcery.com>
5289 * c-decl.c (grokdeclarator): Pedwarn for file-scope array
5290 declarator whose size is not an integer constant expression but
5291 folds to an integer constant, then treat it as a constant
5294 2009-04-01 Richard Guenther <rguenther@suse.de>
5296 * fold-const.c (fold_plusminus_mult_expr): Do not fold
5297 i * 4 + 2 to (i * 2 + 1) * 2.
5299 2009-04-01 Jakub Jelinek <jakub@redhat.com>
5302 * c-parser.c (c_parser_asm_statement): Skip until close paren and
5303 return if c_parser_asm_string_literal returned NULL.
5305 2009-04-01 Nick Clifton <nickc@redhat.com>
5307 * config/m32c/m32c.h (LIBGCC2_UNITS_PER_WORD): Define if not
5309 * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Add m32c-lib2-trapv.c.
5310 * config/m32c/m32c-lib2.c: Remove unused typedefs. Rename the
5311 other typedefs to avoid conflicts with libgcc2.c. Define labels
5312 to gain 16-bit bit-manipulation functions from libgcc2.c and then
5314 * config/m32c/m32c-lib2-trapv.c: New file. Define labels
5315 to gain 16-bit trapping arithmetic functions from libgcc2.c and
5318 2009-04-01 Rafael Avila de Espindola <espindola@google.com>
5320 * varasm.c (default_function_rodata_section): Declare DOT as
5323 2009-04-01 Kai Tietz <kai.tietz@onevision.com>
5324 Andrey Galkin <agalkin@hypercom.com>
5327 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
5328 Make object_name unique for each process.
5330 2009-04-01 Jakub Jelinek <jakub@redhat.com>
5333 * omp-low.c (remove_exit_barrier): Don't optimize if there are any
5334 addressable variables in the parallel that could go out of scope while
5335 running queued tasks.
5337 2009-04-01 Anatoly Sokolov <aesok@post.ru>
5339 * config/avr/avr.h (avr_case_values_threshold): Remove declaration.
5340 (CASE_VALUES_THRESHOLD): Redefine.
5341 * config/avr/avr.c (avr_override_options): Remove initialization of
5342 avr_case_values_threshold variable.
5343 (avr_case_values_threshold): Remove variable. Add new function.
5344 * config/avr/avr-protos.h (avr_case_values_threshold): Declare.
5345 * config/avr/avr.opt (mno-tablejump): Remove option.
5346 * doc/invoke.texi (AVR Options): Remove -mno-tablejump.
5348 2009-04-01 DJ Delorie <dj@redhat.com>
5350 * varasm.c (default_function_rodata_section): Don't assume
5351 anything about where the first '.' in the section name is.
5353 2009-04-01 Alan Modra <amodra@bigpond.net.au>
5355 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete redundant
5356 rs6000_emit_stack_tie.
5358 2009-03-31 Ian Lance Taylor <iant@google.com>
5360 * tree-eh.c (tree_remove_unreachable_handlers): Compare
5361 gimple_code with GIMPLE_RESX, not RESX.
5363 2009-03-31 Joseph Myers <joseph@codesourcery.com>
5365 * c-common.c (c_get_ident): New.
5366 (c_common_nodes_and_builtins): Call it for type names that may be NULL.
5368 2009-04-01 Ben Elliston <bje@au.ibm.com>
5370 * config/rs6000/sysv4.opt (msdata): Improve option description.
5372 2009-03-31 Steve Ellcey <sje@cup.hp.com>
5374 * config/ia64/ia64.md (divsf3_internal_lat): Remove.
5375 (divdf3_internal_lat): Remove.
5376 (divxf3_internal_lat): Remove.
5377 (divxf3_internal_thr): Remove.
5378 (divxf): Use divxf3_internal.
5379 * config/ia64/div.md (divsf3_internal_lat): New.
5380 (divdf3_internal_lat): New.
5381 (divxf3_internal): New.
5383 2009-03-31 Joseph Myers <joseph@codesourcery.com>
5386 * Makefile.in (USE_GCC_STDINT): Define.
5387 (stmp-int-hdrs): Install stdint.h if applicable.
5388 * c-common.c (CHAR16_TYPE): Define in terms of UINT_LEAST16_TYPE
5390 (CHAR32_TYPE): Define in terms of UINT_LEAST32_TYPE if known.
5391 (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE,
5392 UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
5393 INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
5394 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
5395 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
5396 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
5397 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
5398 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
5399 (c_common_nodes_and_builtins): Initialize
5400 underlying_wchar_type_node. Do not initialize
5401 signed_wchar_type_node or unsigned_wchar_type_node. Initialize
5402 nodes for new types.
5403 (c_stddef_cpp_builtins): Define macros for new types.
5404 * c-common.h (CTI_SIGNED_WCHAR_TYPE, CTI_UNSIGNED_WCHAR_TYPE):
5406 (CTI_UNDERLYING_WCHAR_TYPE, CTI_SIG_ATOMIC_TYPE, CTI_INT8_TYPE,
5407 CTI_INT16_TYPE, CTI_INT32_TYPE, CTI_INT64_TYPE, CTI_UINT8_TYPE,
5408 CTI_UINT16_TYPE, CTI_UINT32_TYPE, CTI_UINT64_TYPE,
5409 CTI_INT_LEAST8_TYPE, CTI_INT_LEAST16_TYPE, CTI_INT_LEAST32_TYPE,
5410 CTI_INT_LEAST64_TYPE, CTI_UINT_LEAST8_TYPE, CTI_UINT_LEAST16_TYPE,
5411 CTI_UINT_LEAST32_TYPE, CTI_UINT_LEAST64_TYPE, CTI_INT_FAST8_TYPE,
5412 CTI_INT_FAST16_TYPE, CTI_INT_FAST32_TYPE, CTI_INT_FAST64_TYPE,
5413 CTI_UINT_FAST8_TYPE, CTI_UINT_FAST16_TYPE, CTI_UINT_FAST32_TYPE,
5414 CTI_UINT_FAST64_TYPE, CTI_INTPTR_TYPE, CTI_UINTPTR_TYPE): Define.
5415 (signed_wchar_type_node, unsigned_wchar_type_node): Remove.
5416 (underlying_wchar_type_node, sig_atomic_type_node, int8_type_node,
5417 int16_type_node, int32_type_node, int64_type_node,
5418 uint8_type_node, uint16_type_node, c_uint32_type_node,
5419 c_uint64_type_node, int_least8_type_node, int_least16_type_node,
5420 int_least32_type_node, int_least64_type_node,
5421 uint_least8_type_node, uint_least16_type_node,
5422 uint_least32_type_node, uint_least64_type_node,
5423 int_fast8_type_node, int_fast16_type_node, int_fast32_type_node,
5424 int_fast64_type_node, uint_fast8_type_node, uint_fast16_type_node,
5425 uint_fast32_type_node, uint_fast64_type_node, intptr_type_node,
5426 uintptr_type_node): Define.
5427 * c-cppbuiltin.c (builtin_define_constants,
5428 builtin_define_type_minmax): New.
5429 (builtin_define_stdint_macros): Define more macros.
5430 (c_cpp_builtins): Define more limit macros.
5432 (builtin_define_type_max): Define in terms of
5433 builtin_define_type_minmax. Remove is_long parameter. All
5435 * config.gcc (use_gcc_stdint): Define.
5436 (tm_file): Add glibc-stdint.h for targets using glibc or uClibc.
5437 Add newlib-stdint.h for generic targets.
5438 * config/glibc-stdint.h, config/newlib-stdint.h,
5439 ginclude/stdint-gcc.h, ginclude/stdint-wrap.h: New.
5440 * config/m32c/m32c.h (UINTPTR_TYPE): Define.
5441 * config/score/score.h (UINTPTR_TYPE): Define.
5442 * config/sol2.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
5443 INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
5444 UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
5445 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
5446 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
5447 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
5448 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
5449 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
5450 * config/spu/spu.h (STDINT_LONG32): Define.
5451 * configure.ac (use_gcc_stdint): Substitute.
5452 * configure: Regenerate.
5453 * doc/cpp.texi (__SIG_ATOMIC_TYPE__, __INT8_TYPE__,
5454 __INT16_TYPE__, __INT32_TYPE__, __INT64_TYPE__, __UINT8_TYPE__,
5455 __UINT16_TYPE__, __UINT32_TYPE__, __UINT64_TYPE__,
5456 __INT_LEAST8_TYPE__, __INT_LEAST16_TYPE__, __INT_LEAST32_TYPE__,
5457 __INT_LEAST64_TYPE__, __UINT_LEAST8_TYPE__, __UINT_LEAST16_TYPE__,
5458 __UINT_LEAST32_TYPE_, __UINT_LEAST64_TYPE__, __INT_FAST8_TYPE__,
5459 __INT_FAST16_TYPE__, __INT_FAST32_TYPE__, __INT_FAST64_TYPE__,
5460 __UINT_FAST8_TYPE__, __UINT_FAST16_TYPE__, __UINT_FAST32_TYPE__,
5461 __UINT_FAST64_TYPE__, __INTPTR_TYPE__, __UINTPTR_TYPE__,
5462 __WINT_MAX__, __SIZE_MAX__, __PTRDIFF_MAX__, __UINTMAX_MAX__,
5463 __SIG_ATOMIC_MAX__, __INT8_MAX__, __INT16_MAX__, __INT32_MAX__,
5464 __INT64_MAX__, __UINT8_MAX__, __UINT16_MAX__, __UINT32_MAX__,
5465 __UINT64_MAX__, __INT_LEAST8_MAX__, __INT_LEAST16_MAX__,
5466 __INT_LEAST32_MAX__, __INT_LEAST64_MAX__, __UINT_LEAST8_MAX__,
5467 __UINT_LEAST16_MAX__, __UINT_LEAST32_MAX__, __UINT_LEAST64_MAX__,
5468 __INT_FAST8_MAX__, __INT_FAST16_MAX__, __INT_FAST32_MAX__,
5469 __INT_FAST64_MAX__, __UINT_FAST8_MAX__, __UINT_FAST16_MAX__,
5470 __UINT_FAST32_MAX__, __UINT_FAST64_MAX__, __INTPTR_MAX__,
5471 __UINTPTR_MAX__, __WCHAR_MIN__, __WINT_MIN__, __SIG_ATOMIC_MIN__,
5472 __INT8_C, __INT16_C, __INT32_C, __INT64_C, __UINT8_C, __UINT16_C,
5473 __UINT32_C, __UINT64_C, __INTMAX_C, __UINTMAX_C): Document.
5474 * doc/tm.texi (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE,
5475 INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
5476 INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
5477 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
5478 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
5479 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
5480 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
5481 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Document.
5483 2009-03-31 Bernd Schmidt <bernd.schmidt@analog.com>
5485 * loop-iv.c (suitable_set_for_replacement): Renamed from
5486 simplify_using_assignment; changed to return bool and to accept new
5487 args DEST and SRC. Return true iff we find a source/destination pair
5488 that can be used to make a replacement, and fill SRC and DEST if so.
5489 Remove arg ALTERED. Don't deal with altered regs here. All callers
5491 (simplify_using_initial_values): Deal with altered regs here and track
5492 more precisely the effect they have on the validity of our expression.
5494 * loop-iv.c (simplify_using_condition): A condition of the form
5495 (EQ REG CONST) can be used to simply make a substitution.
5496 (simplify_using_initial_values): Keep track of conditions we have seen
5497 and keep using them to simplify new expressions, while applying the
5498 same substitutions to them as to the expression.
5500 * simplify-rtx.c (simplify_relational_operation_1): Simplify
5501 (LTU (PLUS a C) C) or (LTU (PLUS a C) a) to (GEU a -C); likewise with
5504 * loop-iv.c (determine_max_iter): New arg OLD_NITER. All callers
5505 changed. Use this when trying to improve the upper bound.
5506 Generate the comparison by using simplify_gen_relational.
5508 * loop-iv.c (simple_rhs_p): Allow more kinds of expressions.
5510 * loop-iv.c (replace_single_def_regs, replace_in_expr): New static
5512 (simplify_using_assignment, simplify_using_initial_values): Call
5513 replace_in_expr to make replacements. Call replace_single_def_regs
5514 once on the initial version of the expression.
5516 2009-03-31 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5519 * doc/invoke.texi (ARM Options): Update documentation for -mthumb.
5521 2009-03-31 Richard Guenther <rguenther@suse.de>
5524 * fold-const.c (fold_binary): Fold X +- Y CMP X to Y CMP 0 for
5525 equality comparisons. Fold C - X CMP X if C % 2 == 1.
5527 2009-03-31 Richard Guenther <rguenther@suse.de>
5529 * tree.h (div_if_zero_remainder): Declare.
5530 * fold-const.c (div_if_zero_remainder): Export.
5531 * tree-ssa-forwprop.c
5532 (forward_propagate_addr_into_variable_array_index): Handle
5533 constant array index addition outside of the variable index.
5535 2009-03-31 Joseph Myers <joseph@codesourcery.com>
5538 * config/i386/i386.md (*floatunssi<mode>2_1, two unnamed
5539 define_splits, floatunssi<mode>2): Require x87 conversions from
5540 DImode to be permitted.
5542 2009-03-31 Joseph Myers <joseph@codesourcery.com>
5544 PR preprocessor/15638
5545 * c-common.c (c_cpp_error): Handle CPP_DL_FATAL.
5547 2009-03-31 Richard Guenther <rguenther@suse.de>
5551 * tree.h (DECL_GIMPLE_FORMAL_TEMP_P): Remove.
5552 (struct tree_decl_with_vis): Remove gimple_formal_temp member.
5553 * tree-eh.c (lower_eh_constructs_2): Move LHS assignment to
5554 a separate statement.
5555 * gimplify.c (pop_gimplify_context): Remove formal temp handling.
5556 (lookup_tmp_var): Likewise.
5557 (is_gimple_formal_tmp_or_call_rhs): Remove.
5558 (is_gimple_reg_or_call_rhs): Rename to ...
5559 (is_gimple_reg_rhs_or_call): ... this.
5560 (is_gimple_mem_or_call_rhs): Rename to ...
5561 (is_gimple_mem_rhs_or_call): ... this.
5562 (internal_get_tmp_var): Use is_gimple_reg_rhs_or_call. Set
5563 DECL_GIMPLE_REG_P only if is_formal is true.
5564 (gimplify_compound_lval): Use is_gimple_reg. Remove workaround
5565 for non-proper post-modify expression gimplification.
5566 (gimplify_self_mod_expr): For post-modify expressions gimplify
5567 the lvalue to a minimal lvalue.
5568 (rhs_predicate_for): Remove formal temp case.
5569 (gimplify_modify_expr_rhs): Likewise.
5570 (gimplify_addr_expr): Use is_gimple_reg.
5571 (gimplify_expr): Remove formal temp cases.
5572 (gimple_regimplify_operands): Likewise.
5573 * tree-ssa-pre.c (get_or_alloc_expr_for): Treat EXC_PTR_EXPR
5574 and FILTER_EXPR like constants.
5575 * gimple.c (walk_gimple_op): Fix val_only initialization, use
5577 (is_gimple_formal_tmp_rhs): Remove.
5578 (is_gimple_reg_rhs): Remove special casing.
5579 (is_gimple_mem_rhs): Fix.
5580 (is_gimple_reg): Move DECL_GIMPLE_REG_P handling earlier.
5581 (is_gimple_formal_tmp_var): Remove.
5582 (is_gimple_formal_tmp_reg): Likewise.
5583 (is_gimple_min_lval): Allow invariant component ref parts.
5584 * gimple.h (is_gimple_formal_tmp_rhs, is_gimple_formal_tmp_var,
5585 is_gimple_formal_tmp_reg): Remove declarations.
5586 * tree-cfg.c (verify_expr): Verify that variables with address
5587 taken do not have DECL_GIMPLE_REG_P set.
5588 * tree-mudflap.c (mf_build_check_statement_for): Use
5589 force_gimple_operand instead of gimplify_expr.
5591 2009-03-31 Ayal Zaks <zaks@il.ibm.com>
5593 * modulo-sched.c (sms_schedule_by_order): Pass the actual
5594 schedulable rows to compute_split_row.
5596 2009-03-31 Ben Elliston <bje@au.ibm.com>
5599 * config/rs6000/rs6000.c (rs6000_handle_option): Handle
5602 2009-03-31 Alan Modra <amodra@bigpond.net.au>
5604 * doc/invoke.texi (RS/6000 and PowerPC Options):Document mtls-markers.
5605 * configure.ac (HAVE_AS_TLS_MARKERS): New gas feature check.
5606 * configure: Regenerate.
5607 * config.in: Regenerate.
5608 * config/rs6000/rs6000.opt (mtls-markers): Add.
5609 * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Define.
5610 * config/rs6000/rs6000.md (tls_gd_aix, tls_gd_sysv): Add splitter.
5611 (tls_ld_aix, tls_ld_sysv): Likewise.
5612 (tls_gd, tls_gd_call_aix, tls_gd_call_sysv): New insns.
5613 (tls_ld, tls_ld_call_aix, tls_ld_call_sysv): Likewise.
5615 2009-03-31 Alan Modra <amodra@bigpond.net.au>
5617 * config/spu/spu.c (spu_expand_prologue): Delete redundant code.
5619 2009-03-30 Jan Hubicka <jh@suse.cz>
5621 * tree-eh.c (make_eh_edges): Set probability 100% to first edge
5623 (tree_remove_unreachable_handlers): Cleanup EH predecestor
5624 detection and label handling.
5626 2009-03-30 Vladimir Makarov <vmakarov@redhat.com>
5628 * ira-int.h (ira_allocno): Rename left_conflicts_num to
5629 left_conflicts_size.
5630 (ALLOCNO_LEFT_CONFLICTS_NUM): Rename to
5631 ALLOCNO_LEFT_CONFLICTS_SIZE.
5633 * ira-color.c (allocno_spill_priority, push_allocno_to_stack,
5634 remove_allocno_from_bucket_and_push,
5635 allocno_spill_priority_compare, push_allocnos_to_stack,
5636 setup_allocno_available_regs_num): Use ALLOCNO_LEFT_CONFLICTS_SIZE
5637 instead of ALLOCNO_LEFT_CONFLICTS_NUM.
5638 (setup_allocno_left_conflicts_num): Ditto. Rename to
5639 setup_allocno_left_conflicts_size.
5640 (put_allocno_into_bucket): Use ALLOCNO_LEFT_CONFLICTS_SIZE
5641 instead of ALLOCNO_LEFT_CONFLICTS_NUM and
5642 setup_allocno_left_conflicts_size instead of
5643 setup_allocno_left_conflicts_num.
5645 * ira-build.c (ira_create_allocno): Use
5646 ALLOCNO_LEFT_CONFLICTS_SIZE instead of
5647 ALLOCNO_LEFT_CONFLICTS_NUM.
5649 2009-03-30 Vladimir Makarov <vmakarov@redhat.com>
5651 * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
5652 instead of DF_LR_OUT.
5654 * ira-lives.c (process_bb_node_lives): Ditto.
5656 * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
5657 instead of DF_LR_{OUT,IN}.
5659 * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
5661 * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
5663 2009-03-30 Jan Hubicka <jh@suse.cz>
5665 * except.c (label_to_region_map): Fix thinko.
5667 2009-03-30 Steve Ellcey <sje@cup.hp.com>
5670 * tree.h (tree_find_value): New declaration.
5671 * tree.c (tree_find_value): New function.
5672 * varasm.c (assemble_external): Avoid duplicate entries on lists.
5674 2009-03-30 Jakub Jelinek <jakub@redhat.com>
5677 * c-decl.c (struct c_binding): Add locus field.
5678 (bind): Add locus argument, set locus field from it.
5679 (pop_scope): For b->nested VAR_DECL or FUNCTION_DECL,
5680 add a DECL_EXTERNAL copy of b->decl to current BLOCK_VARS.
5681 (push_file_scope, pushtag, pushdecl, pushdecl_top_level,
5682 implicitly_declare, undeclared_variable, lookup_label,
5683 declare_label, c_make_fname_decl, c_builtin_function,
5684 c_builtin_function_ext_scope, store_parm_decls_newstyle): Adjust
5687 2009-03-30 H.J. Lu <hongjiu.lu@intel.com>
5690 * config/i386/i386.c (classify_argument): Check total size of
5693 2009-03-30 Martin Jambor <mjambor@suse.cz>
5695 * ipa-prop.h (jump_func_type): Rename IPA_UNKNOWN, IPA_CONST,
5696 IPA_CONST_MEMBER_PTR, and IPA_PASS_THROUGH to IPA_JF_UNKNOWN,
5697 IPA_JF_CONST, IPA_JF_CONST_MEMBER_PTR, and IPA_JF_PASS_THROUGH
5700 * tree-dfa.c (get_ref_base_and_extent): Return -1 maxsize if
5701 seen_variable_array_ref while also traversing a union.
5703 * tree-inline.c (optimize_inline_calls): Do not call
5704 cgraph_node_remove_callees.
5705 * cgraphbuild.c (remove_cgraph_callee_edges): New function.
5706 (pass_remove_cgraph_callee_edges): New variable.
5707 * passes.c (init_optimization_passes): Add
5708 pass_remove_cgraph_callee_edges after early inlining and before all
5709 late intraprocedural passes.
5711 * omp-low.c (expand_omp_taskreg): Always set current_function_decl.
5713 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
5715 * config/sparc/sparc.md (*nand<V64mode>_vis, *nand<V32mode>_vis):
5718 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
5720 * combine.c (simplify_comparison): Use have_insn_for.
5721 * dojump.c (do_jump): Likewise.
5723 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
5725 * config/sparc/sparc.c (sparc_compare_emitted): Remove.
5726 (gen_compare_reg, emit_v9_brxx_insn): Handle MODE_CC
5727 sparc_compare_op0 like sparc_compare_emitted used to be handled.
5728 (sparc_expand_compare_and_swap_12): Set sparc_compare_op0
5729 instead of sparc_compare_emitted.
5730 * config/sparc/sparc.h (sparc_compare_emitted): Remove.
5731 * config/sparc/sparc.md (stack_protect_test): Set sparc_compare_op0
5732 instead of sparc_compare_emitted.
5734 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
5736 * bb-reorder.c (partition_hot_cold_basic_blocks): Do not
5737 enter/exit cfglayout mode.
5738 (pass_partition_block): Require it.
5739 * combine.c (find_single_use, reg_dead_at_p): Use CFG.
5740 (combine_instructions): Track basic blocks instead of labels.
5741 (update_cfg_for_uncondjump): New.
5742 (try_combine): Use it. Update jumps after rescanning.
5743 (pass_combine): Require PROP_cfglayout.
5744 * passes.c (pass_outof_cfg_layout_mode): Move after regmove.
5746 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
5748 * cfglayout.c (pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode):
5749 Provide/destroy PROP_cfglayout respectively.
5750 * gcse.c (pass_jump_bypass, pass_gcse): Require it.
5751 * tree-pass.h (PROP_cfglayout): New.
5753 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
5755 * fold-const.c (const_binop, fold_convert_const_real_from_fixed,
5756 fold_convert_const_fixed_from_fixed,
5757 fold_convert_const_fixed_from_int,
5758 fold_convert_const_fixed_from_real, fold_negate_const): Do not
5759 set TREE_CONSTANT_OVERFLOW.
5760 * tree.def: Remove mention of TREE_CONSTANT_OVERFLOW.
5761 * tree.h (TREE_CONSTANT_OVERFLOW): Delete.
5763 2009-03-30 Ira Rosen <irar@il.ibm.com>
5765 * tree-vect-loop-manip.c: New file.
5766 * tree-vectorizer.c: Update documentation and included files.
5767 (vect_loop_location): Make extern.
5768 (rename_use_op): Move to tree-vect-loop-manip.c
5769 (rename_variables_in_bb, rename_variables_in_loop,
5770 slpeel_update_phis_for_duplicate_loop,
5771 slpeel_update_phi_nodes_for_guard1,
5772 slpeel_update_phi_nodes_for_guard2, slpeel_make_loop_iterate_ntimes,
5773 slpeel_tree_duplicate_loop_to_edge_cfg, slpeel_add_loop_guard,
5774 slpeel_can_duplicate_loop_p, slpeel_verify_cfg_after_peeling,
5775 set_prologue_iterations, slpeel_tree_peel_loop_to_edge,
5776 find_loop_location): Likewise.
5777 (new_stmt_vec_info): Move to tree-vect-stmts.c.
5778 (init_stmt_vec_info_vec, free_stmt_vec_info_vec, free_stmt_vec_info,
5779 get_vectype_for_scalar_type, vect_is_simple_use,
5780 supportable_widening_operation, supportable_narrowing_operation):
5782 (bb_in_loop_p): Move to tree-vect-loop.c.
5783 (new_loop_vec_info, destroy_loop_vec_info,
5784 reduction_code_for_scalar_code, report_vect_op,
5785 vect_is_simple_reduction, vect_is_simple_iv_evolution): Likewise.
5786 (vect_can_force_dr_alignment_p): Move to tree-vect-data-refs.c.
5787 (vect_supportable_dr_alignment): Likewise.
5788 * tree-vectorizer.h (tree-data-ref.h): Include.
5789 (vect_loop_location): Declare.
5790 Reorganize function declarations according to the new file structure.
5791 * tree-vect-loop.c: New file.
5792 * tree-vect-analyze.c: Remove. Move functions to tree-vect-data-refs.c,
5793 tree-vect-stmts.c, tree-vect-slp.c, tree-vect-loop.c.
5794 * tree-vect-data-refs.c: New file.
5795 * tree-vect-patterns.c (timevar.h): Don't include.
5796 * tree-vect-stmts.c: New file.
5797 * tree-vect-transform.c: Remove. Move functions to tree-vect-stmts.c,
5798 tree-vect-slp.c, tree-vect-loop.c.
5799 * Makefile.in (OBJS-common): Remove tree-vect-analyze.o and
5800 tree-vect-transform.o. Add tree-vect-data-refs.o, tree-vect-stmts.o,
5801 tree-vect-loop.o, tree-vect-loop-manip.o, tree-vect-slp.o.
5802 (tree-vect-analyze.o): Remove.
5803 (tree-vect-transform.o): Likewise.
5804 (tree-vect-data-refs.o): Add rule.
5805 (tree-vect-stmts.o, tree-vect-loop.o, tree-vect-loop-manip.o,
5806 tree-vect-slp.o): Likewise.
5807 (tree-vect-patterns.o): Remove redundant dependencies.
5808 (tree-vectorizer.o): Likewise.
5809 * tree-vect-slp.c: New file.
5811 2009-03-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5813 * optc-gen.awk: Warn if an option flag has multiple different
5816 2009-03-30 Sebastian Pop <sebastian.pop@amd.com>
5818 * doc/invoke.texi (-floop-interchange, -floop-strip-mine,
5819 -floop-block): Document dependences on PPL, CLooG and Graphite.
5821 2009-03-30 Joseph Myers <joseph@codesourcery.com>
5823 PR rtl-optimization/323
5824 * c-common.c (c_fully_fold, convert_and_check,
5825 c_common_truthvalue_conversion): Handle EXCESS_PRECISION_EXPR.
5826 (c_fully_fold_internal): Disallow EXCESS_PRECISION_EXPR.
5827 * c-common.def (EXCESS_PRECISION_EXPR): New.
5828 * c-cppbuiltin.c (builtin_define_float_constants): Define
5829 constants with enough digits for long double.
5830 * c-lex.c (interpret_float): Interpret constant with excess
5831 precision where appropriate.
5832 * c-opts.c (c_common_post_options): Set
5833 flag_excess_precision_cmdline. Give an error for
5834 -fexcess-precision=standard for C++ for processors where the
5835 option is significant.
5836 * c-parser.c (c_parser_conditional_expression): Handle excess
5837 precision in condition.
5838 * c-typeck.c (convert_arguments): Handle arguments with excess
5840 (build_unary_op): Move excess precision outside operation.
5841 (build_conditional_expr): Likewise.
5842 (build_compound_expr): Likewise.
5843 (build_c_cast): Do cast on operand of EXCESS_PRECISION_EXPR.
5844 (build_modify_expr): Handle excess precision in RHS.
5845 (convert_for_assignment): Handle excess precision in converted
5847 (digest_init, output_init_element, process_init_element): Handle
5848 excess precision in initializer.
5849 (c_finish_return): Handle excess precision in return value.
5850 (build_binary_op): Handle excess precision in operands and add
5851 excess precision as needed for operation.
5852 * common.opt (-fexcess-precision=): New option.
5853 * config/i386/i386.h (X87_ENABLE_ARITH, X87_ENABLE_FLOAT): New.
5854 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
5855 For standard excess precision, output explicit conversion to and
5856 truncation from XFmode.
5857 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1,
5858 *float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp,
5859 *float<SSEMODEI24:mode><X87MODEF:mode>2_i387, two unnamed
5860 define_splits, floatdi<X87MODEF:mode>2_i387_with_xmm, two unnamed
5861 define_splits, *floatunssi<mode>2_1, two unnamed define_splits,
5862 floatunssi<mode>2, add<mode>3, sub<mode>3, mul<mode>3, divdf3,
5863 divsf3, *fop_<mode>_comm_i387, *fop_<mode>_1_i387,
5864 *fop_<MODEF:mode>_2_i387, *fop_<MODEF:mode>_3_i387,
5865 *fop_df_4_i387, *fop_df_5_i387, *fop_df_6_i387, two unnamed
5866 define_splits, sqrt<mode>2): Disable where appropriate for
5867 standard excess precision.
5868 * convert.c (convert_to_real): Do not shorten arithmetic to type
5869 for which excess precision would be used.
5870 * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Define.
5871 * doc/invoke.texi (-fexcess-precision=): Document option.
5872 (-mfpmath=): Correct index entry.
5873 * flags.h (enum excess_precision, flag_excess_precision_cmdline,
5874 flag_excess_precision): New.
5875 * langhooks.c (lhd_post_options): Set
5876 flag_excess_precision_cmdline.
5877 * opts.c (common_handle_option): Handle -fexcess-precision=.
5878 * toplev.c (flag_excess_precision_cmdline, flag_excess_precision,
5879 init_excess_precision): New.
5880 (lang_dependent_init_target): Call init_excess_precision.
5881 * tree.c (excess_precision_type): New.
5882 * tree.h (excess_precision_type): Declare.
5884 2009-03-30 Joseph Myers <joseph@codesourcery.com>
5887 * c-typeck.c (build_component_ref): Do not copy qualifiers from
5888 non-lvalue to component.
5890 2009-03-29 Joseph Myers <joseph@codesourcery.com>
5892 PR preprocessor/34695
5893 * Makefile.in (c-opts.o): Depend on c-tree.h.
5894 * c-common.c: Move down include of diagnostic.h.
5895 (done_lexing, c_cpp_error): New.
5896 * c-common.h (done_lexing): Declare.
5897 * c-decl.c (c_write_global_declarations): Don't check cpp_errors
5899 * c-opts.c: Include c-tree.h.
5900 (c_common_init_options): Set preprocessor error callback.
5901 (c_common_handle_option): Do not set preprocessor
5902 inhibit_warnings, warnings_are_errors, warn_system_headers,
5903 pedantic_errors or inhibit_warnings flags.
5904 (c_common_post_options): Do not check cpp_errors (parse_in).
5905 (c_common_finish): Do not output dependencies if there were
5906 errors. Do not check return value of cpp_finish.
5907 * c-ppoutput.c (pp_file_change): Set input_location.
5908 * c-tree.h (c_cpp_error): Declare.
5909 * diagnostic.c (diagnostic_set_info_translated): Also initialize
5911 (diagnostic_build_prefix): Check override_column.
5912 * diagnostic.h (diagnostic_info): Add override_column field.
5913 (diagnostic_override_column): Define.
5915 2009-03-28 Paolo Bonzini <bonzini@gnu.org>
5917 * c-common.c (c_expand_expr, c_staticp): Remove.
5918 * c-common.def (COMPOUND_LITERAL_EXPR): Delete.
5919 * c-common.h (emit_local_var, c_staticp, COMPOUND_LITERAL_EXPR_DECL,
5920 COMPOUND_LITERAL_EXPR_DECL_EXPR): Remove.
5921 * c-gimplify.c (gimplify_compound_literal_expr,
5922 optimize_compound_literals_in_ctor): Remove.
5923 (c_gimplify_expr): Remove COMPOUND_LITERAL_EXPR handling.
5924 * c-objc-common.h (LANG_HOOKS_STATICP): Remove.
5925 * c-semantics.c (emit_local_var): Remove.
5927 * langhooks-def.h (lhd_expand_expr): Remove.
5928 * langhooks.c (lhd_expand_expr): Remove.
5929 * langhooks.h (LANG_HOOKS_DEF): Remove LANG_HOOKS_EXPAND_EXPR.
5931 * expr.c (expand_expr_real_1): Move COMPOUND_LITERAL_EXPR
5932 handling from c-semantics.c; don't call into langhook.
5933 (expand_expr_addr_expr_1): Check that we don't get non-GENERIC trees.
5934 * gimplify.c (gimplify_compound_literal_expr,
5935 optimize_compound_literals_in_ctor): Move from c-gimplify.c.
5936 (gimplify_init_constructor): Call optimize_compound_literals_in_ctor.
5937 (gimplify_modify_expr_rhs, gimplify_expr): Handle COMPOUND_LITERAL_EXPR
5938 as was done in c-gimplify.c.
5939 * tree.c (staticp): Move COMPOUND_LITERAL_EXPR handling from c_staticp.
5940 * tree.h (COMPOUND_LITERAL_EXPR_DECL, COMPOUND_LITERAL_EXPR_DECL_EXPR):
5941 Move from c-common.h.
5942 * tree.def (COMPOUND_LITERAL_EXPR): Move from c-common.def.
5944 * tree.c (staticp): Do not call langhook.
5945 * langhooks.c (lhd_staticp): Delete.
5946 * langhooks-def.h (lhd_staticp): Delete prototype.
5947 (LANG_HOOKS_STATICP): Delete.
5948 (LANG_HOOKS_INITIALIZER): Delete LANG_HOOKS_STATICP.
5950 * doc/c-tree.texi (Expression nodes): Refer to DECL_EXPRs
5951 instead of DECL_STMTs.
5953 2009-03-29 Joseph Myers <joseph@codesourcery.com>
5961 * builtins.c (fold_builtin_sincos): Build COMPOUND_EXPR in
5963 (fold_call_expr): Return a NOP_EXPR from folding rather than the
5964 contained expression.
5965 * c-common.c (c_fully_fold, c_fully_fold_internal, c_save_expr): New.
5966 (c_common_truthvalue_conversion): Use c_save_expr. Do not fold
5967 conditional expressions for C.
5968 (decl_constant_value_for_optimization): Move from
5969 decl_constant_value_for_broken_optimization in c-typeck.c. Check
5970 whether optimizing and that the expression is a VAR_DECL not of
5971 array type instead of doing such checks in the caller. Do not
5972 check pedantic. Call gcc_unreachable for C++.
5973 * c-common.def (C_MAYBE_CONST_EXPR): New.
5974 * c-common.h (c_fully_fold, c_save_expr,
5975 decl_constant_value_for_optimization): New prototypes.
5976 (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
5977 C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
5978 EXPR_INT_CONST_OPERANDS): Define.
5979 * c-convert.c (convert): Strip nops from expression.
5980 * c-decl.c (groktypename): Take extra parameters expr and
5981 expr_const_operands. Update call to grokdeclarator.
5982 (start_decl): Update call to grokdeclarator. Add statement for
5983 expressions used in type of decl.
5984 (grokparm): Update call to grokdeclarator.
5985 (push_parm_decl): Update call to grokdeclarator.
5986 (build_compound_literal): Add parameter non_const and build a
5987 C_MAYBE_COSNT_EXPR if applicable.
5988 (grokdeclarator): Take extra parameters expr and
5989 expr_const_operands. Track expressions used in declaration
5990 specifiers and declarators. Fold array sizes and track whether
5991 they are constant expressions and whether they are integer
5992 constant expressions.
5993 (parser_xref_tag): Set expr and expr_const_operands fields in
5995 (grokfield): Update call to grokdeclarator.
5996 (start_function): Update call to grokdeclarator.
5997 (build_null_declspecs): Set expr and expr_const_operands fields in
5999 (declspecs_add_type): Handle expressions in typeof specifiers.
6000 * c-parser.c (c_parser_declspecs): Set expr and
6001 expr_const_operands fields for declaration specifiers.
6002 (c_parser_enum_specifier): Likewise.
6003 (c_parser_struct_or_union_specifier): Likewise.
6004 (c_parser_typeof_specifier): Likewise. Update call to
6005 groktypename. Fold expression as needed. Return expressions with
6006 type instead of adding statements.
6007 (c_parser_attributes): Update calls to c_parser_expr_list.
6008 (c_parser_statement_after_labels): Fold expression before passing
6009 to objc_build_throw_stmt.
6010 (c_parser_condition): Fold expression.
6011 (c_parser_asm_operands): Fold expression.
6012 (c_parser_conditional_expression): Use c_save_expr. Update call
6013 to build_conditional_expr.
6014 (c_parser_alignof_expression): Update call to groktypename.
6015 (c_parser_postfix_expression): Preserve C_MAYBE_CONST_EXPR as
6016 original_code. Fold expression argument of va_arg. Create
6017 C_MAYBE_CONST_EXPR to preserve side effects of expressions in type
6018 argument to va_arg. Update calls to groktypename. Fold array
6019 index for offsetof. Verify that first argument to
6020 __builtin_choose_expr has integer type.
6021 (c_parser_postfix_expression_after_paren_type): Update calls to
6022 groktypename and build_compound_literal. Handle expressions with
6023 side effects in type name.
6024 (c_parser_postfix_expression_after_primary): Update call to
6025 c_parser_expr_list. Set original_code for calls to
6026 __builtin_constant_p.
6027 (c_parser_expr_list): Take extra parameter fold_p. Fold
6028 expressions if requested.
6029 (c_parser_objc_type_name): Update call to groktypename.
6030 (c_parser_objc_synchronized_statement): Fold expression.
6031 (c_parser_objc_receiver): Fold expression.
6032 (c_parser_objc_keywordexpr): Update call to c_parser_expr_list.
6033 (c_parser_omp_clause_num_threads, c_parser_omp_clause_schedule,
6034 c_parser_omp_atomic, c_parser_omp_for_loop): Fold expressions.
6035 * c-tree.h (CONSTRUCTOR_NON_CONST): Define.
6036 (struct c_typespec): Add elements expr and expr_const_operands.
6037 (struct c_declspecs): Add elements expr and expr_const_operands.
6038 (groktypename, build_conditional_expr, build_compound_literal):
6040 (in_late_binary_op): Declare.
6041 * c-typeck.c (note_integer_operands): New function.
6042 (in_late_binary_op): New variable.
6043 (decl_constant_value_for_broken_optimization): Move to c-common.c
6044 and rename to decl_constant_value_for_optimization.
6045 (default_function_array_conversion): Do not strip nops.
6046 (default_conversion): Do not call
6047 decl_constant_value_for_broken_optimization.
6048 (build_array_ref): Do not fold result.
6049 (c_expr_sizeof_expr): Fold operand. Use C_MAYBE_CONST_EXPR for
6050 result when operand is a VLA.
6051 (c_expr_sizeof_type): Update call to groktypename. Handle
6052 expressions included in type name. Use C_MAYBE_CONST_EXPR for
6053 result when operand names a VLA type.
6054 (build_function_call): Update call to build_compound_literal.
6055 Only fold result for calls to __builtin_* functions. Strip
6056 NOP_EXPR from INTEGER_CST returned from such functions. Fold
6057 the function designator.
6058 (convert_arguments): Fold arguments. Update call to
6059 convert_for_assignment.
6060 (build_unary_op): Handle increment and decrement of
6061 C_MAYBE_CONST_EXPR. Move lvalue checks for increment and
6062 decrement earlier. Fold operand of increment and decrement.
6063 Handle address of C_MAYBE_CONST_EXPR. Only fold expression being
6064 built for integer operand. Wrap returns that are INTEGER_CSTs
6065 without being integer constant expressions or that have integer
6066 constant operands without being INTEGER_CSTs.
6067 (lvalue_p): Handle C_MAYBE_CONST_EXPR.
6068 (build_conditional_expr): Add operand ifexp_bcp. Track whether
6069 result is an integer constant expression or can be used in
6070 unevaluated parts of one and avoid folding and wrap as
6071 appropriate. Fold operands before possibly doing -Wsign-compare
6073 (build_compound_expr): Wrap result for C99 if operands can be used
6074 in integer constant expressions.
6075 (build_c_cast): Update call to digest_init. Do not ignore
6076 overflow from casting floating-point constants to integers. Wrap
6077 results that could be confused with integer constant expressions,
6078 null pointer constants or floating-point constants.
6079 (c_cast_expr): Update call to groktypename. Handle expressions
6080 included in type name.
6081 (build_modify_expr): Handle modifying a C_MAYBE_CONST_EXPR. Fold
6082 lhs inside possible SAVE_EXPR. Fold RHS before assignment.
6083 Update calls to convert_for_assignment.
6084 (convert_for_assignment): Take new parameter
6085 null_pointer_constant. Do not strip nops or call
6086 decl_constant_value_for_broken_optimization. Set
6087 in_late_binary_op for conversions to boolean.
6088 (store_init_value): Update call to digest_init.
6089 (digest_init): Take new parameter null_pointer_constant. Do not
6090 call decl_constant_value_for_broken_optimization. pedwarn for
6091 initializers not constant expressions. Update calls to
6092 convert_for_assignment.
6093 (constructor_nonconst): New.
6094 (struct constructor_stack): Add nonconst element.
6095 (really_start_incremental_init, push_init_level, pop_init_level):
6096 Handle constructor_nonconst and nonconst element.
6097 (set_init_index): Call constant_expression_warning for array
6099 (output_init_element): Fold value. Set constructor_nonconst as
6100 applicable. pedwarn for initializers not constant expressions.
6101 Update call to digest_init. Call constant_expression_warning
6102 where constant initializers are required.
6103 (process_init_element): Use c_save_expr.
6104 (c_finish_goto_ptr): Fold expression.
6105 (c_finish_return): Fold return value. Update call to
6106 convert_for_assignment.
6107 (c_start_case): Fold switch expression.
6108 (c_process_expr_stmt): Fold expression.
6109 (c_finish_stmt_expr): Create C_MAYBE_CONST_EXPR as needed to
6110 ensure statement expression is not evaluated in constant expression.
6111 (build_binary_op): Track whether results are integer constant
6112 expressions or may occur in such, disable folding and wrap results
6113 as applicable. Fold operands for -Wsign-compare warnings unless
6115 (c_objc_common_truthvalue_conversion): Handle results folded to
6116 integer constants that are not integer constant expressions.
6117 * doc/extend.texi: Document when typeof operands are evaluated,
6118 that condition of __builtin_choose_expr is an integer constant
6119 expression, and more about use of __builtin_constant_p in
6122 2009-03-29 Richard Guenther <rguenther@suse.de>
6124 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
6125 propagate addresses of array references.
6127 2009-03-29 Steven Bosscher <steven@gcc.gnu.org>
6129 * regmove.c (perhaps_ends_bb_p): Remove.
6130 (optimize_reg_copy_1): Don't call perhaps_ends_bb_p. Get basic block
6131 from INSN and check that the main loop stays within that basic block.
6132 (optimize_reg_copy_1, optimize_reg_copy_3, fixup_match_2): Likewise.
6133 (regmove_forward_pass): Split out from regmove_optimize. Use
6134 FOR_EACH_BB and FOR_BB_INSNS instead of traversing the insns stream.
6135 (regmove_backward_pass): Split out from regmove_optimize. Use
6136 FOR_EACH_BB_REVERSE and FOR_BB_INSNS_REVERS_SAFE.
6137 (regmove_optimize): Simplify.
6139 2009-03-29 H.J. Lu <hongjiu.lu@intel.com>
6142 * config/i386/i386.c (classify_argument): Ignore flexible array
6143 member in struct and warn ABI change.
6145 2009-03-29 H.J. Lu <hongjiu.lu@intel.com>
6147 * config/i386/i386-protos.h (ix86_agi_dependent): New.
6149 * config/i386/i386.c (ix86_agi_dependent): Rewrite.
6150 (ix86_adjust_cost): Updated.
6152 2009-03-29 Jan Hubicka <jh@suse.cz>
6155 * tree-pass.h (pass_cleanup_eh): New function.
6156 (remove_unreachable_regions): Break code handling RTL
6157 to rtl_remove_unreachable_regions; remove ERT_MUST_NOT_THROW
6158 that can not be reached by runtime.
6159 (can_be_reached_by_runtime): New function.
6160 (label_to_region_map): New function.
6161 (num_eh_regions): New function.
6162 (rtl_remove_unreachable_regions): New function.
6163 (convert_from_eh_region_ranges): Call rtl_remove_unreachable_regions.
6164 (remove_eh_region): New function.
6165 * except.h: Include sbitmap and vecprim.
6166 (remove_eh_region, remove_unreachable_regions, label_to_region_map,
6167 num_eh_regions): Declare.
6168 * passes.c (init_optimization_passes): Schedule cleanup_eh.
6169 * Makefile.in (EXCEPT_H): New; replace all uses of except.h by it.
6170 * tree-eh.c (tree_remove_unreachable_handlers): New function.
6171 (tree_empty_eh_handler_p): New function.
6172 (cleanup_empty_eh): New function.
6173 (cleanup_eh): New function.
6174 (pass_cleanup_eh): New function.
6176 2009-03-29 Jan Hubicka <jh@suse.cz>
6178 * except.c (verify_eh_tree): Fix handling of fun!=cfun; be ready
6179 for removed regions.
6181 2009-03-29 Jan Hubicka <jh@suse.cz>
6183 * except.c (dump_eh_tree): Dump all datastructures.
6185 2009-03-29 Jan Hubicka <jh@suse.cz>
6187 * except.c (duplicate_eh_regions_0): Handle AKA bitmap.
6188 (duplicate_eh_regions_1): Likewise.
6189 (duplicate_eh_regions): Likewise; cleanup code gorwing the region
6190 vector; call EH verification.
6191 (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
6192 Be ready for region being removed.
6194 2009-03-29 Jan Hubicka <jh@suse.cz>
6196 * bitmap.c (bitmap_last_set_bit): New function.
6197 * bitmap.h (bitmap_last_set_bit): Declare.
6199 2009-03-29 David Ayers <ayers@fsfe.org>
6202 * c-typeck.c (build_conditional_expr): Emit ObjC warnings
6203 by calling objc_compare_types and surpress warnings about
6204 incompatible C pointers that are compatible ObjC pointers.
6206 2009-03-29 Adam Nemet <anemet@caviumnetworks.com>
6208 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Don't
6209 call initialize_inline_failed.
6210 (initialize_inline_failed): Move it from here ...
6211 * cgraph.c (initialize_inline_failed): ... to here.
6212 (cgraph_create_edge): Call initialize_inline_failed rather than
6213 setting inline_failed directly.
6215 2009-03-29 Ben Elliston <bje@au.ibm.com>
6218 * sysv4.opt (msdata): Improve comment.
6219 * linux64.h (ASM_SPEC32): Do not pass -memb when -msdata is given.
6220 * sysv4.h (SVR4_ASM_SPEC): Likewise.
6222 2009-03-29 Ben Elliston <bje@au.ibm.com>
6225 * config/rs6000/rs6000.md (*movti_ppc64): Correct the order of
6226 load and store attributes.
6228 2009-03-29 Ben Elliston <bje@au.ibm.com>
6230 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_HUGE_VALQ.
6231 (ix86_init_builtins): Add built-in function __builtin_huge_valq.
6232 (ix86_expand_builtin): Handle IX86_BUILTIN_HUGE_VALQ.
6233 * doc/extend.texi (X86 Built-in Functions): Add index entries for
6234 __builtin_infq and __builtin_huge_valq.
6236 2009-03-28 Anatoly Sokolov <aesok@post.ru>
6238 * config/avr/avr.c (avr_mcu_t): Add atmega8c1, atmega16c1 and
6240 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
6241 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.)
6243 2009-03-28 Xinliang David Li <davidxl@google.com>
6245 * tree-ssa-ccp.c (ccp_finalize): Add dbg_count support.
6246 (do_dbg_cnt): New function.
6248 2009-03-28 Jan Hubicka <jh@suse.cz>
6250 Merge from pretty-ipa:
6252 2009-03-27 Jan Hubicka <jh@suse.cz>
6254 * cgraph.c (dump_cgraph_node): Add replace output flag by process.
6255 * tree-pass.h (function_called_by_processed_nodes_p): Declare.
6256 * passes.c (function_called_by_processed_nodes_p): New.
6257 * ipa-pure-const.c (check_call): Fix handling of operands.
6258 (analyze_function): Dump debug output for skipped bodies.
6259 (local_pure_const): Use function_called_by_processed_nodes_p.
6260 * dwarf2out.c (reference_to_unused): Use output.
6261 * passes.c (do_per_function_toporder): Likewise.
6263 2008-11-12 Jan Hubicka <jh@suse.cz>
6265 * tree-pass.h (pass_fixup_cfg, pass_local_pure_const): Declare.
6266 * ipa-pure-const.c (funct_state_d): Add can throw field; make
6267 state_set_in_source enum
6268 (check_decl): Ignore memory tags; do not set fake looping flags;
6270 (check_operand, check_tree, check_rhs_var, check_lhs_var,
6271 get_asm_expr_operands, scan_function_op, scan_function_stmt): Remove.
6272 (check_call, analyze_function): Rewrite.
6274 (add_new_function): Update call of analyze_function.
6275 (generate_summary): Add call of analyze_function.
6276 (propagate): Propagate can_throw; handle state_set_in_source correctly.
6277 (local_pure_const): New function.
6278 (pass_local_pure_const): New pass.
6279 * ipa-inline.c (inline_transform): Set after_inlining.
6280 * tree-eh.c (stmt_can_throw_external): New.
6281 * tree-optimize.c (execute_fixup_cfg): Do not set after_inlining;
6282 work with aliasing built.
6283 * tree-flow.h (stmt_can_throw_external): New.
6284 * passes.c (init_optimization_passes): Schedule fixup_cfg pass early;
6285 and local pure/const pass in early and late optimization queue.
6287 2009-03-28 Martin Jambor <mjambor@suse.cz>
6289 * fold-const.c (get_pointer_modulus_and_residue): New parameter
6291 (fold_binary): Allow function decl aligment consideration is the
6292 second argument is integer constant one.
6293 * tree-ssa-forwprop.c (simplify_bitwise_and): New function.
6294 (tree_ssa_forward_propagate_single_use_vars): Handle assing statements
6295 with BIT_AND_EXPR on the RHS by calling simplify_bitwise_and.
6297 2009-03-28 Jan Hubicka <jh@suse.cz>
6299 * dwarf2out.c (dwarf2out_begin_prologue): Use crtl->nothrow
6300 * tree-eh.c (stmt_could_throw_p): Remove check for WEAK decls.
6301 * function.h (rtl_data): Add nothrow flag.
6302 * except.c (set_nothrow_function_flags): Use crtl->nothrow;
6303 set DECL_NOTHROW for AVAILABLE functions.
6305 2009-03-28 Jakub Jelinek <jakub@redhat.com>
6307 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If macro
6308 following vector keyword has expansion starting with pixel or bool
6309 keyword, expand vector to __vector and pixel or bool to __pixel or
6313 * opts.c (warning_disallowed_functions, warn_disallowed_functions,
6314 warn_if_disallowed_function_p): Removed.
6315 (common_handle_option): Don't handle OPT_Wdisallowed_function_list_.
6316 * c-parser.c (c_parser_postfix_expression_after_primary): Don't call
6317 warning_if_disallowed_function_p.
6318 * flags.h (warn_if_disallowed_function_p,
6319 warn_disallowed_functions): Removed.
6320 * common.opt (Wdisallowed-function-list=): Removed.
6321 * doc/invoke.texi (-Wdisallowed-function-list=): Removed.
6323 2009-03-28 Richard Guenther <rguenther@suse.de>
6325 PR tree-optimization/38723
6326 * tree-ssa-pre.c (compute_avail): Add all default definitions to
6329 2009-03-28 Jan Hubicka <jh@suse.cz>
6331 * tree-ssa-structalias.c (ipa_pta_execute): Fix bogus node->analyzed
6332 test introduced by my previous patch.
6334 2009-03-28 Richard Guenther <rguenther@suse.de>
6336 * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not leave
6337 the PHIs value undefined.
6339 2009-03-28 Jan Hubicka <jh@suse.cz>
6341 * tree-pass.h (pass_fixup_cfg): New pass.
6342 * ipa-inline.c (inline_transform): Set
6343 always_inline_functions_inlined/after_inlining.
6344 * tree-optimize.c (execute_fixup_cfg): Do not set them here.
6345 (pass_fixup_cfg): New pass.
6346 * passes.c (init_optimization_passes): Add fixup_cfg.
6348 2009-03-28 Richard Guenther <rguenther@suse.de>
6350 PR tree-optimization/38458
6351 * tree-ssa-copy.c (copy_prop_visit_phi_node): For the first
6352 argument use the arguments copy-of value.
6354 2009-03-28 Richard Guenther <rguenther@suse.de>
6356 PR tree-optimization/38180
6357 * tree-ssa-ccp.c (get_default_value): Simplify.
6358 (likely_value): Likewise.
6359 (surely_varying_stmt_p): Properly handle VOP case.
6360 (ccp_initialize): Likewise.
6361 (ccp_fold): Handle propagating through *&.
6362 (fold_const_aggregate_ref): Also handle decls.
6364 2009-03-28 Jan Hubicka <jh@suse.cz>
6366 * cgraph.c (dump_cgraph_node): Add replace output flag by process.
6367 * cgraph.h (cgraph_node): Likewise.
6368 * cgraphunit.c (cgraph_process_new_functions): Set process flag.
6369 (cgraph_reset_node): Use process flag.
6370 (cgraph_mark_functions_to_output): Likewise.
6371 (cgraph_expand_function): Likewise.
6372 (cgraph_expand_all_functions): Likewise.
6373 (cgraph_output_in_order): Likewise.
6374 * dwarf2out.c (reference_to_unused): Likewise.
6375 * passes.c do_per_function_toporder): Likewise.
6377 2009-03-28 Jan Hubicka <jh@suse.cz>
6379 Bring from lto-branch:
6381 2008-09-03 Doug Kwan <dougkwan@google.com>
6383 * cgraphbuild.c (initialize_inline_failed): Use cgraph_inline_failed_t
6384 enums instead of reason strings.
6385 * cgraph.c (cgraph_create_edge): Same.
6386 (cgraph_inline_failed_string): New function.
6387 * cgraph.h (cgraph_inline_failed_t): New enum type.
6388 (cgraph_inline_failed_string): New prototype.
6389 (struct cgraph_edge): Change type of INLINED_FAILED from constant
6390 char pointer to cgraph_inline_failed_t.
6391 (cgraph_inline_p): Adjust prototype to use cgraph_inline_failed_t.
6392 (cgraph_default_inline_p): Ditto.
6393 * cgraphunit.c (cgraph_inline_p): Change type of parameter REASON
6394 to cgraph_inline_failed_t pointer.
6395 * cif-code.def: New file.
6396 * ipa-inline.c (cgraph_mark_inline_edge): Use an enum instead of a
6398 (cgraph_check_inline_limits): Change type of REASON to pointer to
6399 cgraph_inline_failed_t. Replace reason strings with enums.
6400 (cgraph_default_inline_p): Ditto.
6401 (cgraph_recursive_inlining_p): Ditto.
6402 (update_caller_keys): Change type of FAILED_REASON to
6403 cgraph_inline_failed_t.
6404 (cgraph_set_inline_failed): Change type of REASON to pointer to
6405 cgraph_inline_failed_t. Call cgraph_inline_failed_string to
6406 convert enums to strings for text output.
6407 (cgraph_decide_inlining_of_small_function): Change FAILED_REASON
6408 to be of type cgraph_inline_failed_t. Replace reason strings with
6409 enums. Call cgraph_inline_failed_string to covert enums
6410 to strings for text output.
6411 (cgraph_decide_inlining): Replace reason strings with enums.
6412 (cgraph_decide_inlining_incrementally): Change type of FAILED_REASON
6413 to cgraph_inline_failed_t type. Call cgraph_inline_failed_string
6415 * tree-inline.c (expand_call_inline): Change type of REASON
6416 to cgraph_inline_failed_t. Replace reason strings with enums.
6417 Call cgraph_inline_failed_string for text output.
6418 * Makefile.in (CGRAPH_H): Add cif-code.def to dependencies.
6421 2009-03-28 Jan Hubicka <jh@suse.cz>
6423 * cgraph.c (cgraph_node, cgraph_remove_node, dump_cgraph_node,
6424 cgraph_clone_node): Remove master clone handling.
6425 (cgraph_is_master_clone, cgraph_master_clone): Remove.
6426 * cgraph.h (master_clone): Remove.
6427 (cgraph_is_master_clone, cgraph_master_clone): Remove.
6428 * ipa-type-escape.c (type_escape_execute): Remove use of master clone.
6429 (tree-ssa-structalias.c (ipa_pta_execute): Likewise.
6431 2009-03-28 Jan Hubicka <jh@suse.cz>
6433 * cgraph.c (cgraph_function_body_availability): Functions declared
6434 inline are always safe to assume that it is not going to be replaced.
6436 2009-03-28 Richard Guenther <rguenther@suse.de>
6438 PR tree-optimization/38513
6439 * tree-ssa-pre.c (eliminate): Remove redundant stores.
6440 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
6441 EXC_PTR_EXPR and FILTER_EXPR.
6442 (get_ref_from_reference_ops): Likewise.
6444 2009-03-28 Richard Guenther <rguenther@suse.de>
6446 PR tree-optimization/38968
6447 * tree-vect-analyze.c (vect_compute_data_ref_alignment):
6448 Use FLOOR_MOD_EXPR to compute misalignment.
6450 2009-03-28 Richard Guenther <rguenther@suse.de>
6452 PR tree-optimization/37795
6453 * tree.h (combine_comparisons): Declare.
6454 * fold-const.c (combine_comparisons): Export.
6455 * tree-ssa-ifcombine.c (ifcombine_ifandif): Optimize two successive
6457 (ifcombine_iforif): Use combine_comparisons.
6459 2009-03-28 Jan Hubicka <jh@suse.cz>
6461 * tree-eh.c (inlinable_call_p): New function.
6462 (make_eh_edges): Use it.
6463 (verify_eh_edges): Use it.
6464 (stmt_can_throw_external, stmt_can_throw_internal): Use it.
6465 * except.c (reachable_next_level): Add inlinable_function argument
6466 (sjlj_find_directly_reachable_regions): Update.
6467 (add_reachable_handler): Do not set saw_any_handlers.
6468 (reachable_next_level): Handle MUST_NOT_THROW more curefully.
6469 (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
6470 Add new inlinable call parameter.
6471 (can_throw_internal, can_throw_external): Update.
6472 * except.h (can_throw_internal_1, can_throw_external_1,
6473 foreach_reachable_handler): Update declaration.
6475 2009-03-28 Joseph Myers <joseph@codesourcery.com>
6477 * config/arm/t-arm-coff, config/h8300/coff.h,
6478 config/i386/i386-aout.h, config/i386/i386-coff.h,
6479 config/libgloss.h, config/m68k/coff.h, config/m68k/m68k-aout.h,
6480 config/pdp11/2bsd.h, config/rs6000/aix41.h,
6481 config/rs6000/aix41.opt, config/rs6000/t-newas, config/sh/coff.h,
6482 fix-header.c, fixproto, gen-protos.c, protoize.c, scan-decls.c,
6483 scan-types.sh, scan.c, scan.h, sort-protos, sys-protos.h,
6484 sys-types.h: Remove.
6485 * Makefile.in: Remove protoize and fixproto support and references
6487 (SYSCALLS.c.X-warn, TARGET_GETGROUPS_T, STMP_FIXPROTO,
6488 PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, FIXPROTO_DEFINES):
6490 (ALL_HOST_OBJS): Remove $(PROTO_OBJS).
6491 (MOSTLYCLEANFILES): Remove protoize$(exeext) and
6492 unprotoize$(exeext).
6493 (rest.encap): Don't depend on $(STMP_FIXPROTO)
6494 (.PHONY): Don't depend on proto.
6495 (libgcc-support): Don't depend on $(STMP_FIXPROTO).
6496 (proto, PROTO_OBJS, protoize$(exeext), unprotoize$(exeext),
6497 protoize.o, unprotoize.o, SYSCALLS.c.X, test-protoize-simple,
6498 deduced.h, GEN_PROTOS_OBJS, build/gen-protos$(build_exeext),
6499 build/gen-protos.o, build/scan.o, xsys-protos.h,
6500 build/fix-header$(build_exeext), build/fix-header.o,
6501 build/scan-decls.o, fixhdr.ready, stmp-fixproto,
6502 stmp-install-fixproto): Remove.
6503 (mostlyclean): Don't remove xsys-protos.hT, SYSCALLS.c.X,
6504 SYSCALLS.c or fixproto files.
6505 (install-common): Don't install protoize.
6506 (install-headers-tar, install-headers-cpio, install-headers-cp):
6507 Don't depend on $(STMP_FIXPROTO).
6508 (install-mkheaders): Don't depend on $(STMP_FIXPROTO). Don't
6509 install fixproto files or write out fixproto settings.
6510 (uninstall): Don't uninstall protoize.
6511 * config.gcc (use_fixproto): Remove.
6512 (arm-*-coff*, armel-*-coff*, h8300-*-*, i[34567]86-*-aout*,
6513 i[34567]86-*-coff*, m68k-*-aout*, m68k-*-coff*, pdp11-*-bsd,
6514 rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*, sh-*-*): Remove.
6515 * config/m32r/t-linux (STMP_FIXPROTO): Remove.
6516 * config/m68k/m68k.c: Remove M68K_TARGET_COFF-conditional code.
6517 * config/mips/t-iris (FIXPROTO_DEFINES): Remove.
6518 * config/pa/t-pa-hpux (FIXPROTO_DEFINES): Remove.
6519 * config/pdp11/pdp11.c: Remove TWO_BSD-conditional code.
6520 * config/t-svr4 (FIXPROTO_DEFINES): Remove.
6521 * config/t-vxworks (STMP_FIXPROTO): Remove.
6522 * configure.ac (AC_TYPE_GETGROUPS, TARGET_GETGROUPS_T,
6523 STMP_FIXPROTO): Remove.
6524 * config.in, configure: Regenerate.
6525 * crtstuff.c (gid_t, uid_t): Don't undefine.
6526 * doc/install.texi: Change m68k-coff to m68k-elf in example.
6527 (arm-*-coff, arm-*-aout: Remove target entries.
6528 (*-ibm-aix*): Mention removal of support for AIX 4.2 and older.
6529 Remove mention of AIX 4.1.
6530 (m68k-*-*): Remove mention of m68k-*-aout and m68k-*-coff*.
6531 * doc/invoke.texi (Running Protoize): Remove.
6532 * doc/trouble.texi (Actual Bugs): Remove mention of fixproto.
6533 (Protoize Caveats): Remove.
6534 * tsystem.h: Update comments on headers assumed to exist.
6536 2009-03-27 Vladimir Makarov <vmakarov@redhat.com>
6538 * genautomata.c: Add a new year to the copyright. Add a new
6540 (struct insn_reserv_decl): Add comments for member bypass_list.
6541 (find_bypass): Remove.
6542 (insert_bypass): New.
6543 (process_decls): Use insert_bypass.
6544 (output_internal_insn_latency_func): Output all bypasses with the
6545 same input insn in one switch case.
6547 * rtl.def (define_bypass): Describe bypass choice.
6548 * doc/md.texi (define_bypass): Ditto.
6550 2009-03-27 Richard Guenther <rguenther@suse.de>
6552 * gimplify.c (mark_addressable): Export.
6553 * tree-flow.h (mark_addressable): Declare.
6554 * tree-ssa-loop-manip.c (create_iv): Mark the base addressable.
6555 * tree-ssa.c (verify_phi_args): Verify that address taken
6556 variables have TREE_ADDRESSABLE set.
6558 2009-03-27 Richard Guenther <rguenther@suse.de>
6560 * fold-const.c (build_fold_addr_expr_with_type_1): Rename back to ...
6561 (build_fold_addr_expr_with_type): ... this. Remove in_fold handling.
6562 Do not mark decls TREE_ADDRESSABLE.
6563 (build_fold_addr_expr): Adjust.
6564 (fold_addr_expr): Remove.
6565 (fold_unary): Use build_fold_addr_expr.
6566 (fold_comparison): Likewise.
6567 (split_address_to_core_and_offset): Likewise.
6568 * coverage.c (tree_coverage_counter_addr): Mark the array decl
6570 * gimplify.c (mark_addressable): Do not exclude RESULT_DECLs.
6571 (gimplify_modify_expr_to_memcpy): Mark source and destination
6573 * omp-low.c (create_omp_child_function): Mark the object decl
6575 (lower_rec_input_clauses): Mark the var we take the address of
6577 (lower_omp_taskreg): Mark the sender decl TREE_ADDRESSABLE.
6579 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
6582 * cfgexpand.c (expand_one_stack_var_at): Change alignment
6583 limit to MAX_SUPPORTED_STACK_ALIGNMENT.
6585 2009-03-27 Richard Guenther <rguenther@suse.de>
6587 PR tree-optimization/39120
6588 * tree-ssa-structalias.c (handle_rhs_call): Fill out return
6590 (handle_lhs_call): Process return constraints. Add escape
6591 constraints if necessary.
6592 (handle_const_call): Fill out return constraints. Make nested
6593 case more precise. Avoid consttmp if possible.
6594 (handle_pure_call): Fill out return constraints. Avoid
6595 callused if possible.
6596 (find_func_aliases): Simplify call handling.
6598 2009-03-27 Richard Guenther <rguenther@suse.de>
6600 PR tree-optimization/39120
6601 * tree-ssa-structalias.c (do_sd_constraint): Do not use CALLUSED
6602 as a representative.
6603 (solve_graph): Do propagate CALLUSED.
6604 (handle_pure_call): Use a scalar constraint from CALLUSED for
6606 (find_what_p_points_to): CALLUSED shall not appear in poins-to
6609 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
6612 * c-common.c (handle_aligned_attribute): Properly check alignment
6613 overflow. Use (1U << i) instead of (1 << i).
6615 * emit-rtl.c (get_mem_align_offset): Use "unsigned int" for align.
6617 * expr.h (get_mem_align_offset): Updated.
6619 * tree.h (tree_decl_common): Change align to "unsigned int" and
6620 move it before pointer_alias_set.
6622 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
6623 Jakub Jelinek <jakub@redhat.com>
6626 * config/ia64/sync.md (cmpxchg_rel_<mode>): Replace input
6627 gr_register_operand with gr_reg_or_0_operand.
6628 (cmpxchg_rel_di): Likewise.
6629 (sync_lock_test_and_set<mode>): Likewise.
6631 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
6633 * jump.c (rtx_renumbered_equal_p): Use subreg_get_info.
6634 (true_regnum): Likewise.
6636 * rtlanal.c (subreg_info): Moved to ...
6637 * rtl.h (subreg_info): Here. New.
6638 (subreg_get_info): New.
6640 * rtlanal.c (subreg_get_info): Make it extern.
6642 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
6645 * config/i386/i386.c (ix86_abi): New.
6646 (override_options): Handle -mabi=.
6647 (ix86_function_arg_regno_p): Replace DEFAULT_ABI with ix86_abi.
6648 (ix86_call_abi_override): Likewise.
6649 (init_cumulative_args): Likewise.
6650 (function_arg_advance): Likewise.
6651 (function_arg_64): Likewise.
6652 (function_arg): Likewise.
6653 (ix86_pass_by_reference): Likewise.
6654 (ix86_function_value_regno_p): Likewise.
6655 (ix86_build_builtin_va_list_abi): Likewise.
6656 (setup_incoming_varargs_64): Likewise.
6657 (is_va_list_char_pointer): Likewise.
6658 (ix86_init_machine_status): Likewise.
6659 (ix86_reg_parm_stack_space): Use enum calling_abi on call_abi.
6660 (ix86_function_type_abi): Return enum calling_abi. Rewrite
6661 for 64bit. Replace DEFAULT_ABI with ix86_abi.
6662 (ix86_function_abi): Make it static and return enum calling_abi.
6663 (ix86_cfun_abi): Return enum calling_abi. Replace DEFAULT_ABI
6665 (ix86_fn_abi_va_list): Updated.
6667 * config/i386/i386.h (ix86_abi): New.
6668 (STACK_BOUNDARY): Replace DEFAULT_ABI with ix86_abi.
6669 (CONDITIONAL_REGISTER_USAGE): Likewise.
6670 (CUMULATIVE_ARGS): Change call_abi type to enum calling_abi.
6671 (machine_function): Likewise.
6673 * config/i386/i386.md (untyped_call): Replace DEFAULT_ABI
6675 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Likewise.
6676 (STACK_BOUNDARY): Likewise.
6677 * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Likewise.
6679 * config/i386/i386.opt (mabi=): New.
6681 * config/i386/i386-protos.h (ix86_cfun_abi): Changed to
6682 return enum calling_abi.
6683 (ix86_function_type_abi): Likewise.
6684 (ix86_function_abi): Removed.
6686 * doc/invoke.texi: Document -mabi= option for x86.
6688 2009-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6690 * builtins.c (real_dconstp): Delete.
6691 (fold_builtin_logarithm): Remove inaccurate log(e) special case.
6693 2009-03-27 Dodji Seketeli <dodji@redhat.com>
6694 Jakub Jelinek <jakub@redhat.com>
6697 * dwarf2out.c (dwarf_attr_name): Handle DW_AT_explicit attribute.
6698 (gen_subprogram_die): When a function is explicit, generate the
6699 DW_AT_explicit attribute.
6700 * langhooks.h (struct lang_hooks_for_decls): Add
6701 function_decl_explicit_p langhook.
6702 * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Define.
6703 (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P.
6705 2009-03-27 Jakub Jelinek <jakub@redhat.com>
6707 * builtins.c (fold_builtin_memory_op): Optimize memmove
6708 into memcpy if we can prove source and destination don't overlap.
6710 * tree-inline.c: Include gt-tree-inline.h.
6711 (clone_fn_id_num): New variable.
6712 (clone_function_name): New function.
6713 (tree_function_versioning): Use it.
6714 * Makefile.in (GTFILES): Add tree-inline.c.
6716 2009-03-27 Mark Mitchell <mark@codesourcery.com>
6718 * BASE-VER: Change to 4.5.0.
6720 2009-03-27 Xinliang David Li <davidxl@google.com>
6722 PR tree-optimization/39557
6723 * tree-ssa.c (warn_uninitialized_vars): free postdom info.
6725 2009-03-27 Xinliang David Li <davidxl@google.com>
6727 PR tree-optimization/39548
6728 * tree-ssa-copy.c (copy_prop_visit_phi_node): Add copy
6731 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
6733 * c-common.c (pointer_int_sum): Use %wd on return from
6736 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
6738 * c-common.c (pointer_int_sum): Use HOST_WIDE_INT_PRINT_DEC
6739 on return from tree_low_cst.
6741 2009-03-27 Andrew Pinski <andrew_pinski@playstation.sony.com>
6744 * ginclude/stdarg.h (va_copy): Define also for
6745 __GXX_EXPERIMENTAL_CXX0X__.
6747 2009-03-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6750 * builtins.h (c_strlen): Do not warn here.
6751 * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
6752 * c-common.c (pointer_int_sum): Take an explicit location.
6753 Warn about offsets out of bounds.
6754 * c-common.h (pointer_int_sum): Adjust declaration.
6756 2009-03-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6758 * doc/invoke.texi (i386 and x86-64 Windows Options): Fix texinfo
6761 2009-03-26 Jakub Jelinek <jakub@redhat.com>
6764 * opts.c (warn_if_disallowed_function_p): Don't assume
6765 get_callee_fndecl must return non-NULL.
6767 2009-03-26 Vladimir Makarov <vmakarov@redhat.com>
6769 PR rtl-optimization/39522
6770 * reload1.c (reload_as_needed): Invalidate reg_last_reload_reg too
6771 when reg_reloaded_valid is set.
6773 2009-03-26 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6775 * config/spu/divv2df3.c: New file.
6776 * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add it.
6777 (DPBIT_FUNCS): Filter out _div_df.
6779 2009-03-26 Bernd Schmidt <bernd.schmidt@analog.com>
6781 * config/bfin/bfin.c (bfin_optimize_loop): If the LSETUP goes before
6782 a jump insn, count that jump in the distance to the loop start.
6784 2009-03-25 Kaz Kojima <kkojima@gcc.gnu.org>
6787 * config/sh/sh.c (calc_live_regs): Fix condition for global
6788 registers except PIC_OFFSET_TABLE_REGNUM.
6790 2009-03-25 Kai Tietz <kai.tietz@onevision.com>
6793 * doc/invoke.texi (-mconsole): New.
6797 (-mnop-fun-dllimport): New.
6801 (sub section "i386 and x86-64 Windows Options"): New.
6803 2009-03-25 Ralf Corsépius <ralf.corsepius@rtems.org>
6805 * config/arm/rtems-elf.h: Remove LINK_GCC_C_SEQUENCE_SPEC.
6806 * config/rs6000/t-rtems: Remove MULTILIB_EXTRA_OPTS.
6808 2009-03-25 Richard Guenther <rguenther@suse.de>
6811 * Makefile.in (dfp.o-warn): Use -fno-strict-aliasing instead
6814 2009-03-25 Andrey Belevantsev <abel@ispras.ru>
6816 * config/ia64/ia64.c (ia64_set_sched_flags): Zero spec_info->mask when
6817 neither of haifa/selective schedulers are working.
6819 2009-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6821 * doc/invoke.texi (Debugging Options): Fix description of
6822 -fno-merge-debug-strings.
6824 2009-03-24 Hans-Peter Nilsson <hp@axis.com>
6826 * config/cris/libgcc.ver: New version-script.
6827 * config/cris/t-linux (SHLIB_MAPFILES): Use it.
6829 * configure.ac <GAS features, nop mnemonic>: Add pattern
6830 crisv32-*-* for "nop".
6831 <GAS features, Thread-local storage>: Add item for CRIS and CRIS v32.
6832 * configure: Regenerate.
6834 2009-03-24 Ira Rosen <irar@il.ibm.com>
6836 PR tree-optimization/39529
6837 * tree-vect-transform.c (vect_create_data_ref_ptr): Call
6838 mark_sym_for_renaming for the tag copied to the new vector
6841 2009-03-24 Arthur Loiret <aloiret@debian.org>
6843 * config.host (alpha*-*-linux*): Use driver-alpha.o and alpha/x-alpha.
6844 * config/alpha/linux.h (host_detect_local_cpu): Declare, add to
6845 EXTRA_SPEC_FUNCTIONS.
6846 (MCPU_MTUNE_NATIVE_SPECS, DRIVER_SELF_SPECS): New macros.
6847 * config/alpha/driver-alpha.c, config/alpha/x-alpha: New.
6848 * doc/invoke.texi (DEC Alpha Options): Document 'native' value for
6849 -march and -mtune options.
6851 2009-03-24 Ralf Corsépius <ralf.corsepius@rtems.org>
6853 * config/m68k/t-rtems: Add m5329 multilib.
6855 2009-03-24 Dodji Seketeli <dodji@redhat.com>
6856 Jakub Jelinek <jakub@redhat.com>
6859 * dwarf2out.c (gen_variable_die): Avoid adding duplicate declaration
6862 2009-03-23 Jakub Jelinek <jakub@redhat.com>
6865 * c-parser.c (c_parser_omp_for_loop): Call c_parser_binary_expression
6866 instead of c_parser_expression_conv, if original_code isn't one of the
6867 4 allowed comparison codes, fail.
6869 2009-03-23 Richard Guenther <rguenther@suse.de>
6871 * cgraph.h (struct cgraph_node): Reorder fields for 64-bit hosts.
6872 * tree.h (struct tree_type): Likewise.
6873 * reload.h (struct insn_chain): Likewise.
6874 * dwarf2out.c (struct dw_loc_descr_struct): Likewise.
6875 * function.h (struct function): Likewise.
6876 * tree-ssa-structalias.c (struct equiv_class_label): Likewise.
6878 2009-03-23 Jakub Jelinek <jakub@redhat.com>
6880 PR tree-optimization/39516
6881 * lambda-code.c (perfect_nestify): Fix type of the uboundvar variable.
6883 2009-03-23 Bingfeng Mei <bmei@broadcom.com>
6885 * config.gcc (need_64bit_hwint): Make clear that need_64bit_hwint
6886 should be set true if BITS_PER_WORD of target is bigger than 32
6888 2009-03-22 Hans-Peter Nilsson <hp@axis.com>
6890 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC):
6891 Translate -B-options to -rpath-link. Correct existing
6892 rpath-link and conditionalize on !nostdlib.
6894 2009-03-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6896 * doc/extend.texi (Function Attributes, Variable Attributes):
6898 * doc/invoke.texi (Debugging Options, Optimize Options)
6899 (i386 and x86-64 Options, MCore Options): Likewise.
6901 2009-03-20 Jakub Jelinek <jakub@redhat.com>
6904 * dwarf2out.c (gen_namespace_die): Add context_die argument and use
6905 it for block local namespace aliases.
6906 (gen_decl_die): Pass context_die to gen_namespace_die.
6908 2009-03-19 Jakub Jelinek <jakub@redhat.com>
6911 * c-omp.c (c_finish_omp_for): Allow NE_EXPR with TREE_TYPE (decl)'s
6912 minimum or maximum value.
6914 2009-03-19 Alexandre Oliva <aoliva@redhat.com>
6916 * reginfo.c (globalize_reg): Recompute derived reg sets.
6918 2009-03-19 Ozkan Sezer <sezeroz@gmail.com>
6921 * libgcc2.c (mprotect): Do not use signed arguments for
6922 VirtualProtect, use DWORD arguments. Also fix the 'may
6923 be used uninitialized' warning for the np variable.
6925 2009-03-19 Jakub Jelinek <jakub@redhat.com>
6928 * config/i386/i386.c (ix86_function_regparm): Don't optimize local
6929 functions using regparm calling conventions when not optimizing.
6930 (ix86_function_sseregparm): Similarly for sseregparm calling
6933 2009-03-19 Li Feng <nemokingdom@gmail.com>
6936 * tree-data-ref.c (analyze_subscript_affine_affine): There is no
6937 dependence if the first conflict is after niter iterations.
6939 2009-03-19 Hans-Peter Nilsson <hp@axis.com>
6942 * config/cris/cris.h (FRAME_POINTER_REQUIRED): Force for all
6943 functions with dynamic stack-pointer adjustments.
6945 2009-03-19 Ben Elliston <bje@au.ibm.com>
6947 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix -msdata-data
6948 option; change to -msdata=data.
6950 2009-03-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6952 * c.opt: Unify help texts for -Wdeprecated, -Wsystem-headers,
6955 2009-03-18 Eric Botcazou <ebotcazou@adacore.com>
6958 * config/sparc/sparc.md (do_builtin_setjmp_setup): Prettify asm output.
6960 2009-03-18 Sandra Loosemore <sandra@codesourcery.com>
6962 * doc/invoke.texi (Code Gen Options): Expand discussion of
6965 2009-03-18 Jakub Jelinek <jakub@redhat.com>
6967 * dse.c (struct group_info): Reorder fields for 64-bit hosts.
6968 * matrix-reorg.c (struct matrix_info): Likewise.
6969 * tree-ssa-loop-ivopts.c (struct ivopts_data): Likewise.
6970 * rtl.h (struct mem_attrs): Likewise.
6971 * df.h (struct df): Likewise.
6972 * tree-data-ref.h (struct data_dependence_relation): Likewise.
6973 * ira-int.h (struct ira_allocno): Likewise.
6974 * df-scan.c (struct df_collection_rec): Likewise.
6975 * ira.c (struct equivalence): Likewise.
6976 * function.c (struct temp_slot): Likewise.
6977 * cfgloop.h (struct loop): Likewise.
6980 * function.c (use_register_for_decl): When not optimizing, disregard
6981 register keyword for variables with types containing methods.
6983 2009-03-18 Sebastian Pop <sebastian.pop@amd.com>
6986 * graphite.c (exclude_component_ref): Renamed contains_component_ref_p.
6987 (is_simple_operand): Call contains_component_ref_p before calling data
6988 reference analysis that would fail on COMPONENT_REFs.
6990 * tree-vrp.c (search_for_addr_array): Fix formatting.
6992 2009-03-18 Richard Guenther <rguenther@suse.de>
6994 * tree-vect-transform.c (vect_loop_versioning): Fold the
6995 generated comparisons.
6996 * tree-vectorizer.c (set_prologue_iterations): Likewise.
6997 (slpeel_tree_peel_loop_to_edge): Likewise.
6999 2009-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7002 * opts.c (print_specific_help): In addition to `undocumented',
7003 accept `separate' and `joined' flags if passed alone. Describe
7004 output by the first matched one of those.
7005 (common_handle_option): Skip over empty strings.
7006 * gcc.c (display_help): Fix help string for `--help='.
7007 * doc/invoke.texi (Option Summary, Overall Options): With
7008 `--help=', classes and qualifiers can both be repeated, but
7009 only the latter can be negated. One should not pass only
7010 negated qualifiers. Fix markup and examples.
7013 2008-10-14 Jakub Jelinek <jakub@redhat.com>
7015 * opts.c (common_handle_option): Don't ICE on -fhelp=joined
7016 and -fhelp=separate.
7018 2009-03-17 Jing Yu <jingyu@google.com>
7021 * function.h (struct rtl_data): Move is_thunk from here...
7022 (struct function): ...to here.
7023 * cp/method.c (use_thunk): Change is_thunk from crtl to cfun.
7024 * varasm.c (assemble_start_function): Change is_thunk from crtl to
7026 * config/alpha/alpha.c (alpha_sa_mask): Change is_thunk from crtl to
7028 (alpha_does_function_need_gp, alpha_start_function): Likewise.
7029 (alpha_output_function_end_prologue): Likewise.
7030 (alpha_end_function, alpha_output_mi_thunk_osf): Likewise.
7031 * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likewise.
7032 (rs6000_output_function_epilogue): Likewise.
7033 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Likewise.
7035 2009-03-17 Uros Bizjak <ubizjak@gmail.com>
7038 * config/i386/i386.md (*truncdfsf_mixed): Avoid combining registers
7039 from different units in a single alternative.
7040 (*truncdfsf_i387): Ditto.
7041 (*truncxfsf2_mixed): Ditto.
7042 (*truncxfdf2_mixed): Ditto.
7044 2009-03-17 Jakub Jelinek <jakub@redhat.com>
7046 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Allow
7047 non-NAMESPACE_DECL IMPORTED_DECL_ASSOCIATED_DECL.
7050 * tree-ssa-live.c (remove_unused_locals): Don't remove local
7051 unused non-artificial variables when not optimizing.
7054 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Emit
7055 DW_TAG_imported_module even if decl is IMPORTED_DECL with
7056 NAMESPACE_DECL in its DECL_INITIAL.
7059 * optabs.c (set_user_assembler_libfunc): New function.
7060 * expr.h (set_user_assembler_libfunc): New prototype.
7061 * c-common.c: Include libfuncs.h.
7062 (set_builtin_user_assembler_name): Call set_user_assembler_libfunc
7063 for memcmp, memset, memcpy, memmove and abort.
7064 * Makefile.in (c-common.o): Depend on libfuncs.h.
7067 * dwarf2out.c (gen_inlined_enumeration_type_die,
7068 gen_inlined_structure_type_die, gen_inlined_union_type_die,
7069 gen_tagged_type_instantiation_die): Removed.
7070 (gen_decl_die): For TYPE_DECL_IS_STUB with non-NULL decl_origin
7073 2009-03-17 Janis Johnson <janis187@us.ibm.com>
7076 * Makefile.in (site.exp): Rename TEST_GCC_EXEC_PREFIX and comment
7078 (check-%): Don't set GCC_EXEC_PREFIX when invoking runtest.
7079 (check-parallel-%): Ditto.
7080 (check-consistency): Ditto.
7082 2009-03-17 Kai Tietz <kai.tietz@onevision.com>
7084 * ipa-struct-reorg.c (create_general_new_stmt): Initialize
7085 local variable rhs by NULL_TREE.
7087 2009-03-17 H.J. Lu <hongjiu.lu@intel.com>
7090 * doc/extend.texi: Correct register behavior for regparm on Intel 386.
7092 2009-03-17 H.J. Lu <hongjiu.lu@intel.com>
7095 * config/i386/i386.c (ix86_function_regparm): Rewrite for 64bit.
7097 2009-03-17 H.J. Lu <hongjiu.lu@intel.com>
7100 * config/i386/i386.c (ix86_expand_call): Check extra clobbers
7101 for ms->sysv ABI calls only in 64bit mode.
7103 * config/i386/i386.md (untyped_call): Support 32bit.
7105 2009-03-16 H.J. Lu <hongjiu.lu@intel.com>
7107 * doc/extend.texi: Replace x86_65 with x86_64.
7109 2009-03-16 Jakub Jelinek <jakub@redhat.com>
7111 PR tree-optimization/39455
7112 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Fix types
7113 mismatches for POINTER_TYPE_P (type).
7114 (number_of_iterations_le): Likewise.
7116 2009-03-16 Hariharan Sandanagobalane <hariharan@picochip.com>
7118 * config/picochip/picochip.c: Removed profiling support.
7119 * config/picochip/picochip.md: Removed profiling instruction.
7120 * config/picochip/picochip.h: Removed profiling builtin.
7122 2009-03-16 Joseph Myers <joseph@codesourcery.com>
7124 * doc/install.texi (--with-host-libstdcxx): Document.
7126 2009-03-14 Anatoly Sokolov <aesok@post.ru>
7129 * config/avr/avr.c (avr_handle_fndecl_attribute): Move code for
7130 generate a warning if the function name does not begin with
7131 "__vector" and the function has either the 'signal' or 'interrupt'
7132 attribute, from here to ...
7133 (avr_declare_function_name): ...here. New function.
7134 * config/avr/avr.h (ASM_DECLARE_FUNCTION_NAME): Redefine.
7135 * config/avr/avr-protos.h (avr_declare_function_name): Declare.
7137 2009-03-14 Jakub Jelinek <jakub@redhat.com>
7140 * cse.c (fold_rtx): Don't modify original const_arg1 when
7141 canonicalizing SHIFT_COUNT_TRUNCATED shift count, do it on a
7142 separate variable instead.
7143 * rtlanal.c (nonzero_bits1) <case ASHIFTRT>: Don't assume anything
7144 from out of range shift counts.
7145 (num_sign_bit_copies1) <case ASHIFTRT, case ASHIFT>: Similarly.
7147 2009-03-13 Catherine Moore <clm@codesourcery.com>
7149 * config/i386/x-mingw32 (host-mingw32.o): Replace
7150 diagnostic.h with $(DIAGNOSTIC_H).
7152 2009-03-12 Jakub Jelinek <jakub@redhat.com>
7155 * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): New
7157 * config/i386/sync.md (sync_compare_and_swap<mode>,
7158 sync_compare_and_swap_cc<mode>): For DImode with -m32 -fpic check
7159 if operands[1] is cmpxchg8b_pic_memory_operand, if not force address
7161 (sync_double_compare_and_swapdi_pic,
7162 sync_double_compare_and_swap_ccdi_pic): Require operand 1 to be
7163 cmpxchg8b_pic_memory_operand instead of just memory_operand.
7165 2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
7168 * config/i386/i386.c (ix86_expand_push): Don't set memory alignment.
7170 2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
7173 * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
7174 (avx_addsubv4df3): Likewise.
7175 (*avx_addsubv4sf3): Likewise.
7176 (sse3_addsubv4sf3): Likewise.
7178 2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
7181 * config/i386/i386.md: Compare REGNO on the new peephole2 patterns.
7183 2009-03-12 Vladimir Makarov <vmakarov@redhat.com>
7186 * ira-int.h (struct allocno): Fix comment for calls_crossed_num.
7187 * ira-conflicts.c (ira_build_conflicts): Prohibit call used
7188 registers for allocnos created from user-defined variables.
7190 2009-03-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7193 * config/spu/spu.c (spu_expand_mov): Handle invalid subregs
7194 of non-integer mode as well.
7196 2009-03-11 Adam Nemet <anemet@caviumnetworks.com>
7198 * gimplify.c (gimplify_call_expr): Don't set CALL_CANNOT_INLINE_P
7199 for functions for which the parameter types are unknown.
7201 2009-03-11 Jakub Jelinek <jakub@redhat.com>
7204 * cfgexpand.c (get_decl_align_unit): Use LOCAL_DECL_ALIGNMENT macro.
7205 * defaults.h (LOCAL_DECL_ALIGNMENT): Define if not yet defined.
7206 * config/i386/i386.h (LOCAL_DECL_ALIGNMENT): Define.
7207 * config/i386/i386.c (ix86_local_alignment): For
7208 -m32 -mpreferred-stack-boundary=2 use 32-bit alignment for
7209 long long variables on the stack to avoid dynamic realignment.
7210 Allow the first argument to be a decl rather than type.
7211 * doc/tm.texi (LOCAL_DECL_ALIGNMENT): Document.
7213 2009-03-11 Nick Clifton <nickc@redhat.com>
7216 * config/mcore/mcore.opt: Remove deprecated m4align and m8align
7218 Add description to mno-lsim option.
7219 * config/mcore/mcore.h: Remove comment about deprecated m4align
7221 (TARGET_DEFAULT): Remove deprecated MASK_M8ALIGN.
7222 * doc/invoke.texi: Add description of mno-lsim and
7223 mstack-increment options.
7225 * config/fr30/fr30.opt: Document the -mno-lsim option.
7226 * doc/invoke.texi: Add descriptions of the FR30's -msmall-model
7227 and -mno-lsim options.
7229 2009-03-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7231 * fold-const.c (fold_comparison): Only call fold_inf_compare
7232 if the mode supports infinities.
7234 2009-03-11 Jason Merrill <jason@redhat.com>
7237 * tree-nrv.c (tree_nrv): Don't do this optimization if the front
7238 end already did. Notice GIMPLE_CALL modifications of the result.
7239 Don't copy debug information from an ignored decl or a decl from
7242 2009-03-10 Richard Guenther <rguenther@suse.de>
7243 Nathan Froyd <froydnj@codesourcery.com>
7246 * libgcc2.c (__mulMODE3): Use explicit assignments to form the result.
7247 (__divMODE3): Likewise.
7249 2009-03-09 Jakub Jelinek <jakub@redhat.com>
7251 PR tree-optimization/39394
7252 * gimplify.c (gimplify_type_sizes): Gimplify DECL_SIZE and
7253 DECL_SIZE_UNIT of variable length FIELD_DECLs.
7255 2009-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7257 * recog.c (verfiy_changes): Disallow renaming of hard regs in
7258 inline asms for register asm ("") declarations.
7260 2009-03-09 Eric Botcazou <ebotcazou@adacore.com>
7262 * fold-const.c (fold_unary): Fix comment.
7264 2009-03-07 Jan Hubicka <jh@suse.cz>
7267 * tree-inline.c (setup_one_parameter): Do replacement of const
7268 argument by constant in SSA form.
7270 2009-03-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7273 * function.c (assign_parm_setup_stack): Use STACK_SLOT_ALIGNMENT to
7274 determine alignment passed to assign_stack_local.
7275 (assign_parms_unsplit_complex): Likewise.
7276 * except.c (sjlj_build_landing_pads): Likewise.
7278 2009-03-06 Jakub Jelinek <jakub@redhat.com>
7281 * tree-flow.h (add_referenced_var): Return bool instead of void.
7282 * tree-dfa.c (add_referenced_var): Return result of
7283 referenced_var_check_and_insert call.
7284 * tree-inline.c (expand_call_inline): Call add_referenced_var instead
7285 of referenced_var_check_and_insert.
7288 * dwarf2out.c (add_abstract_origin_attribute): Return origin_die.
7289 (gen_variable_die): Emit DW_AT_location on abstract static variable's
7290 DIE, don't emit it if abstract origin already has it.
7291 * tree-cfg.c (remove_useless_stmts_bind): GIMPLE_BINDs with any
7292 BLOCK_NONLOCALIZED_VARS in its gimple_bind_block aren't useless.
7294 2009-03-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
7296 * genpreds.c (needs_variable): Fix parentheses at variable name
7298 (write_tm_constrs_h): Indent generated code.
7300 2009-03-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7302 * doc/extend.texi (Function Attributes): Add documentation
7305 2009-03-06 Jakub Jelinek <jakub@redhat.com>
7308 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): For IMPORTED_DECL
7309 take locus from its DECL_SOURCE_LOCATION instead of input_location.
7311 2009-03-05 Bernd Schmidt <bernd.schmidt@analog.com>
7313 * config/bfin/bfin.c (bfin_discover_loop): When retrying fails, mark
7316 2009-03-05 Jakub Jelinek <jakub@redhat.com>
7319 * tree-cfg.c (remove_useless_stmts_bind): Don't remove GIMPLE_BINDs
7320 with blocks containing IMPORTED_DECLs in BLOCK_VARS.
7322 2009-03-05 Uros Bizjak <ubizjak@gmail.com>
7324 * config/i386/i386.md (R8_REG, R9_REG): New constants.
7325 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Use named
7326 constants instead of magic numbers.
7327 (HARD_REGNO_CALLER_SAVE_MODE): Ditto.
7329 * config/i386/i386.c (x86_64_int_parameter_registers): Ditto.
7330 (x86_64_ms_abi_int_parameter_registers): Ditto.
7331 (x86_64_int_return_registers): Ditto.
7332 (ix86_maybe_switch_abi): Ditto.
7333 (ix86_expand_call): Ditto for clobbered_registers array.
7334 (ix86_hard_regno_mode_ok): Ditto.
7335 (x86_extended_QIreg_mentioned_p): Ditto.
7337 2009-03-05 J"orn Rennecke <joern.rennecke@arc.com>
7339 PR tree-optimization/39349
7340 * cse.c (cse_insn): Fix loop to stop at VOIDmode.
7342 * combine.c (gen_lowpart_for_combine): Use omode when generating
7345 2009-03-04 J"orn Rennecke <joern.rennecke@arc.com>
7347 PR rtl-optimization/39235
7348 * loop-iv.c (get_simple_loop_desc): Use XCNEW.
7350 2009-03-04 Zdenek Dvorak <ook@ucw.cz>
7352 * graphite.c (nb_reductions_in_loop): Update simple_iv arguments.
7354 2009-03-04 Richard Guenther <rguenther@suse.de>
7356 PR tree-optimization/39362
7357 * tree-ssa-sccvn.c (visit_use): Stores and copies from SSA_NAMEs
7358 that occur in abnormal PHIs should be varying.
7360 2009-03-04 Zdenek Dvorak <ook@ucw.cz>
7362 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop):
7364 (simple_iv): Take loop as an argument instead of statement.
7365 * tree-scalar-evolution.h (simple_iv): Declaration changed.
7366 * tree-ssa-loop-niter.c (number_of_iterations_exit): Update calls
7368 * tree-ssa-loop-ivopts.c (determine_biv_step, find_givs_in_stmt_scev):
7370 * tree-parloops.c (loop_parallel_p, canonicalize_loop_ivs): Ditto.
7371 * matrix-reorg.c (analyze_transpose): Ditto.
7372 * tree-data-ref.c (dr_analyze_innermost): Ditto.
7373 * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
7374 * tree-predcom.c (ref_at_iteration): Ditto.
7375 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Ditto.
7377 2009-03-04 Richard Guenther <rguenther@suse.de>
7379 PR tree-optimization/39358
7380 * tree-ssa-structalias.c (do_sd_constraint): Fix check for
7381 escaped_id and callused_id.
7382 (solve_graph): Likewise.
7384 2009-03-04 Richard Guenther <rguenther@suse.de>
7386 PR tree-optimization/39339
7387 * tree-sra.c (try_instantiate_multiple_fields): Make it
7388 no longer ICE on the above.
7390 2009-03-03 Joseph Myers <joseph@codesourcery.com>
7392 * emit-rtl.c (adjust_address_1): Reduce offset to a signed value
7393 that fits within Pmode.
7395 2009-03-03 Steve Ellcey <sje@cup.hp.com>
7398 * tm.texi (LIBCALL_VALUE): Update description.
7400 2009-03-03 Steve Ellcey <sje@cup.hp.com>
7403 * doc/extend.texi (section): Update description.
7405 2009-03-03 H.J. Lu <hongjiu.lu@intel.com>
7408 * tree-inline.c (remapped_type): New.
7409 (can_be_nonlocal): Call remapped_type instead of remap_type.
7411 2009-03-03 Jakub Jelinek <jakub@redhat.com>
7414 * gimplify.c (goa_stabilize_expr): Handle tcc_comparison,
7415 TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR.
7417 2009-03-03 Richard Guenther <rguenther@suse.de>
7420 * tree.c (tree_nonartificial_location): New function.
7421 * tree.h (tree_nonartificial_location): Declare.
7422 * builtins.c (expand_builtin_memory_chk): Provide location
7423 of the call location for artificial function pieces.
7424 (maybe_emit_chk_warning): Likewise.
7425 (maybe_emit_sprintf_chk_warning): Likewise.
7426 (maybe_emit_free_warning): Likewise.
7427 * expr.c (expand_expr_real_1): Likewise.
7429 2009-03-03 Jakub Jelinek <jakub@redhat.com>
7431 PR tree-optimization/39343
7432 * tree-ssa-ccp.c (maybe_fold_offset_to_address): Don't check if
7433 COMPONENT_REF t has ARRAY_TYPE.
7435 2009-03-02 Sebastian Pop <sebastian.pop@amd.com>
7438 * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
7439 when the type precision of the induction variable should be
7440 larger than the type precision of nit.
7441 (gen_parallel_loop): Update use of canonicalize_loop_ivs.
7442 * graphite.c (graphite_loop_normal_form): Same.
7443 * tree-flow.h (canonicalize_loop_ivs): Update declaration.
7445 2009-03-02 Uros Bizjak <ubizjak@gmail.com>
7447 * config/i386/i386.md (ST?_REG, MM?_REG): New constants.
7448 (*call_1_rex64_ms_sysv): Use named constants instead of magic
7449 numbers to describe clobbered registers.
7450 (*call_value_0_rex64_ms_sysv): Ditto.
7451 * config/i386/mmx.md (mmx_emms): Ditto.
7454 2009-03-02 Richard Sandiford <rdsandiford@googlemail.com>
7456 * config/mips/mips.c (mips_mdebug_abi_name): Fix the handling
7459 2009-03-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7461 * config/spu/spu.c (TARGET_SECTION_TYPE_FLAGS): Define.
7462 (spu_section_type_flags): New function.
7464 2009-03-02 Uros Bizjak <ubizjak@gmail.com>
7466 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not copy
7467 reg_class_contents of FLOAT_REGS into a temporary.
7469 2009-03-02 Richard Guenther <rguenther@suse.de>
7470 Ira Rosen <irar@il.ibm.com>
7472 PR tree-optimization/39318
7473 * tree-vect-transform.c (vectorizable_call): Transfer the EH region
7474 information to the vectorized statement.
7476 2009-03-01 Uros Bizjak <ubizjak@gmail.com>
7478 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not shadow "i"
7479 variable. Use defined names instead of magic constants for REX SSE
7482 2009-03-01 Richard Guenther <rguenther@suse.de>
7484 PR tree-optimization/39331
7485 * omp-low.c (lower_send_shared_vars): Do not receive new
7486 values for the reference of DECL_BY_REFERENCE parms or results.
7488 2009-03-01 Jan Hubicka <jh@suse.cz>
7491 * tree.h (BLOCK_NONLOCALIZED_VARS, BLOCK_NUM_NONLOCALIZED_VARS,
7492 BLOCK_NONLOCALIZED_VAR): New macros.
7493 (tree_block): Add nonlocalized_vars.
7494 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die,
7495 gen_decl_die): Add origin argument. Allow generation of die with
7496 origin at hand only.
7497 (gen_member_die, gen_type_die_with_usage, force_decl_die,
7498 declare_in_namespace, gen_namescpace_die, dwarf2out_decl): Update use
7500 (gen_block_die): Fix checking for unused blocks.
7501 (process_scope_var): Break out from .... ; work with origins only.
7502 (decls_for_scope) ... here; process nonlocalized list.
7503 (dwarf2out_ignore_block): Look for nonlocalized vars.
7504 * tree-ssa-live.c (remove_unused_scope_block_p): Look for nonlocalized
7506 (dump_scope_block): Dump them.
7507 * tree-inline.c (remap_decls): Handle nonlocalized vars.
7508 (remap_block): Likewise.
7509 (can_be_nonlocal): New predicate.
7510 (copy_bind_expr, copy_gimple_bind): Update use of remap_block.
7512 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7514 * configure: Regenerate.
7516 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7518 * optc-gen.awk: No need to duplicate option flags twice.
7519 Reuse help texts for duplicate options which do not have any.
7521 * gcc.c (display_help): Document --version.
7523 * gcc.c (main): If print_help_list and verbose_flag, ensure
7524 driver output comes before subprocess output.
7526 * optc-gen.awk: Assign all remaining fields to help string,
7527 space-separated, for multi-line help in *.opt.
7529 * doc/invoke.texi (Warning Options): -Wsync-nand is C/C++ only.
7530 -Wno-pedantic-ms-format is for MinGW targets only.
7532 * doc/options.texi (Option file format): Fix bad indentation,
7533 restoring dropped sentence.
7535 2009-02-28 Jan Hubicka <jh@suse.cz>
7537 * tree-inline.c (tree_function_versioning): Output debug info.
7539 2009-02-28 Jan Hubicka <jh@suse.cz>
7542 * tree-inline.c (setup_one_parameter): Do not copy propagate
7543 arguments when not optimizing.
7545 2009-02-28 H.J. Lu <hongjiu.lu@intel.com>
7548 * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
7549 (avx_addsubv4df3): Likewise.
7550 (*avx_addsubv4sf3): Likewise.
7551 (sse3_addsubv4sf3): Likewise.
7552 (*avx_addsubv2df3): Likewise.
7553 (sse3_addsubv2df3): Likewise.
7554 (avx_unpckhps256): Correct item selectors.
7555 (avx_unpcklps256): Likewise.
7556 (avx_unpckhpd256): Likewise.
7557 (avx_unpcklpd256): Likewise.
7559 2009-02-28 Jan Hubicka <jh@suse.cz>
7561 * tree-inline.c (expand_call_inline): Avoid duplicate declarations of
7563 (copy_arguments_for_versioning): If var is declared don't declare it.
7564 (tree_function_versioning): First setup substitutions and then copy
7567 2009-02-27 Jan Hubicka <jh@suse.cz>
7570 * cgraph.h (varpool_output_debug_info): Remove.
7571 * cgraphunit.c (varpool_output_debug_info): Remove.
7572 * dwarf2out.c (deferred_locations_struct): New struct
7573 (deferred_locations): New type.
7574 (deferred_locations_list): New static var.
7575 (deffer_location): New function.
7576 (gen_variable_die): Use it.
7577 (decls_for_scope): Output info on local static vars.
7578 (dwarf2out_finish): Process deferred locations.
7579 * varpool.c (varpool_output_debug_info): Remove.
7581 2009-02-27 Jan Hubicka <jh@suse.cz>
7584 * tree.h (TREE_PROTECTED): Fix comment.
7585 (BLOCK_HANDLER_BLOCK): Remove.
7586 (struct tree_block): Remove handler_block add body_block.
7587 (inlined_function_outer_scope_p): New.
7588 (is_body_block): Remove.
7589 * dbxout.c (dbxout_block): Remove BLOCK_HANDLER_BLOCK.
7590 * dwarf2out.c (is_inlined_entry_point): Remove.
7591 (add_high_low_attributes): Use inlined_function_outer_scope_p.
7592 (gen_block_die): Use is_inlined_entry_point check. Remove body block
7594 * langhooks.h (struct lang_hooks): Remove no_bodu_blocks.
7595 * gimplify.c (gimplify_expr): Gimplify body blocks.
7596 * tree-ssa-live.c (remove_unused_scope_block_p): Allow removing wrapper
7597 block with multiple subblocks.
7598 (dump_scope_block): Prettier output; dump more flags and info.
7599 (dump_scope_blocks): New.
7600 (remove_unused_locals): Use dump_scope_blocks.
7601 * tree-flow.h (dump_scope_blocks): Declare.
7602 * tree-cfg.c (execute_build_cfg): Dump scope blocks.
7603 * stmt.c (is_body_block): Remove.
7604 * tree-inline.c (remap_block): Copy BODY_BLOCK info.
7605 * langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): Remove.
7607 2009-02-27 Sebastian Pop <sebastian.pop@amd.com>
7610 * graphite.c (graphite_loop_normal_form): Do not call
7611 number_of_iterations_exit from a gcc_assert.
7613 2009-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7615 * config/s390/s390.c (s390_swap_cmp): Look for conditional
7616 jumps if COND is NULL.
7617 (find_cond_jump): New function.
7618 (s390_z10_optimize_cmp): Handling for reg-reg compares added.
7619 * config/s390/s390.md: Remove z10_cobra attribute value.
7621 2009-02-26 Uros Bizjak <ubizjak@gmail.com>
7623 * config/alpha/alpha.h (alpha_expand_mov): Return false if
7624 force_const_mem returns NULL_RTX.
7626 2009-02-26 Jan Hubicka <jh@suse.cz>
7629 * cgraph.h (varpool_output_debug_info): Remove.
7630 * cgraphunit.c (varpool_output_debug_info): Remove.
7631 * dwarf2out.c (deferred_locations_struct): New struct
7632 (deferred_locations): New type.
7633 (deferred_locations_list): New static var.
7634 (deffer_location): New function.
7635 (gen_variable_die): Use it.
7636 (decls_for_scope): Output info on local static vars.
7637 (dwarf2out_finish): Process deferred locations.
7638 * varpool.c (varpool_output_debug_info): Remove.
7640 2009-02-25 H.J. Lu <hongjiu.lu@intel.com>
7642 PR rtl-optimization/39241
7643 * jump.c (rtx_renumbered_equal_p): Remove 2 superfluous calls
7644 to subreg_offset_representable_p.
7646 2009-02-25 Paolo Bonzini <bonzini@gnu.org>
7648 * regmove.c (regmove_optimize): Conform to struct rtl_opt_pass
7649 execute function prototype. Get f and nregs from max_reg_num
7650 and get_insns. Remove the first backward pass as it's dead,
7651 guard the forward pass by flag_expensive_optimizations.
7652 (rest_of_handle_regmove): Delete.
7653 (pass_regmove): Replace it with regmove_optimize.
7655 2009-02-25 Martin Jambor <mjambor@suse.cz>
7657 PR tree-optimization/39259
7658 * tree-inline.c (initialize_cfun): Remove asserts for calls_setjmp and
7659 calls_alloca function flags.
7660 (copy_bb): Set calls_setjmp and alls_alloca function flags if such
7663 2009-02-25 Paolo Bonzini <bonzini@gnu.org>
7665 * regmove.c (discover_flags_reg, flags_set_1, mark_flags_life_zones,
7666 flags_set_1_rtx, flags_set_1_set): Delete.
7667 (regmove_optimize): Do not call mark_flags_life_zones.
7669 2009-02-24 Julian Brown <julian@codesourcery.com>
7672 * config/arm/arm.c (require_pic_register): Only set
7673 cfun->machine->pic_reg once per function.
7675 2009-02-24 Sandra Loosemore <sandra@codesourcery.com>
7677 * doc/invoke.texi (Link Options): Document an easier way to pass
7678 options that take arguments to the GNU linker using -Xlinker and -Wl.
7680 2009-02-24 Steve Ellcey <sje@cup.hp.com>
7683 * doc/tm.texi (TARGET_C99_FUNCTIONS): Fix description.
7685 2009-02-24 Richard Guenther <rguenther@suse.de>
7688 * dwarf2out.c (gen_enumeration_type_die): Handle CONST_DECLs.
7690 2009-02-24 Richard Guenther <rguenther@suse.de>
7691 Zdenek Dvorak <ook@ucw.cz>
7693 PR tree-optimization/39233
7694 * tree-ssa-loop-ivopts.c (add_candidate_1): Do not except pointers
7695 from converting them to a generic type.
7697 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
7699 PR tree-optimization/39260
7700 * graphite.c (harmful_stmt_in_bb): Stop a SCoP when the basic block
7701 contains a condition with a real type.
7702 (build_scop_conditions_1): Conditions are always last_stmt of a bb.
7704 2009-02-23 Jason Merrill <jason@redhat.com>
7707 * varasm.c (initializer_constant_valid_p) [PLUS_EXPR]: Check
7708 narrowing_initializer_constant_valid_p.
7709 (narrowing_initializer_constant_valid_p): Don't return
7710 null_pointer_node for adding a pointer to itself.
7712 2009-02-23 Jan Hubicka <jh@suse.cz>
7715 * ggc.h (htab_create_ggc): Use ggc_free to free hashtable when
7718 2009-02-23 Jan Hubicka <jh@suse.cz>
7720 PR tree-optimization/37709
7721 * tree.c (block_ultimate_origin): Move here from dwarf2out.
7722 * tree.h (block_ultimate_origin): Declare.
7723 * dwarf2out.c (block_ultimate_origin): Move to tree.c
7724 * tree-ssa-live.c (remove_unused_scope_block_p):
7725 Eliminate blocks containig no instructions nor live variables nor
7727 (dump_scope_block): New function.
7728 (remove_unused_locals): Enable removal of dead blocks by default;
7729 enable dumping at TDF_DETAILS.
7731 2009-02-21 H.J. Lu <hongjiu.lu@intel.com>
7733 * config/i386/i386.c (classify_argument): Don't allow COImode
7735 (function_arg_advance_32): Don't allow OImode.
7736 (function_arg_32): Likewise.
7737 (function_value_32): Likewise.
7738 (return_in_memory_32): Likewise.
7739 (function_arg_64): Remove OImode comment.
7741 2009-02-21 H.J. Lu <hongjiu.lu@intel.com>
7744 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
7745 ix86_expand_vector_set for V4DImode in 64bit mode only.
7746 (ix86_expand_vector_init_one_var): Likewise.
7748 2009-02-21 Sebastian Pop <sebastian.pop@amd.com>
7750 * graphite.c (graphite_trans_loop_block): Adjust tile size to 51.
7752 2009-02-21 Richard Sandiford <rdsandiford@googlemail.com>
7755 * loop-iv.c: Revert last change.
7756 * emit-rtl.c: Likewise.
7758 2009-02-21 H.J. Lu <hongjiu.lu@intel.com>
7761 * config/i386/i386.c (type_natural_mode): Remove an extra
7762 space in the warning message.
7763 (function_value_32): Handle 32-byte vector modes.
7764 (return_in_memory_32): Likewise.
7766 2009-02-21 Richard Sandiford <rdsandiford@googlemail.com>
7768 * loop-iv.c (truncate_value): New function.
7769 (iv_subreg, get_iv_value, iv_number_of_iterations): Use it instead
7771 (lowpart_subreg): Move to...
7772 * emit-rtl.c: ...here.
7774 2009-02-21 Danny Smith <dannysmith@users.sourceforge.net>
7776 * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Revert
7777 accidental and undocumented change at revision 140860.
7779 2009-02-21 Joseph Myers <joseph@codesourcery.com>
7781 * config/arm/arm.c (arm_gimplify_va_arg_expr): Update prototype to
7782 take gimple_seq * arguments.
7783 (arm_mangle_type): Use CONST_CAST_TREE on type argument passed to
7784 types_compatible_p langhook.
7786 2009-02-20 Mark Mitchell <mark@codesourcery.com>
7787 Joseph Myers <joseph@codesourcery.com>
7789 * config/arm/arm.c (arm_builtin_va_list): New function.
7790 (arm_expand_builtin_va_start): Likewise.
7791 (arm_gimplify_va_arg_expr): Likewise.
7792 (TARGET_BUILD_BUILTIN_VA_LIST): Define.
7793 (TARGET_BUILD_BUILTIN_VA_START): Likewise.
7794 (TARGET_BUILD_BUILTIN_VA_ARG_EXPR): Likewise.
7795 (va_list_type): New variable.
7796 (arm_mangle_type): Mangle va_list_type appropriately.
7798 2009-02-20 Jakub Jelinek <jakub@redhat.com>
7801 * Makefile.in (loop-invariant.o): Depend on $(PARAMS_H).
7802 * params.h (LOOP_INVARIANT_MAX_BBS_IN_LOOP): Define.
7803 * params.def (loop-invariant-max-bbs-in-loop): New parameter.
7804 * opts.c (decode_options): Set loop-invariant-max-bbs-in-loop
7805 parameter to 1000 for -O1 by default.
7806 * doc/invoke.texi (loop-invariant-max-bbs-in-loop): Document new
7808 * loop-invariant.c: Include params.h.
7809 (move_loop_invariants): Don't call move_single_loop_invariants on
7812 2009-02-20 Jaka Mocnik <jaka@xlab.si>
7814 * calls.c (emit_library_call_value_1): Use slot_offset instead of
7815 offset when calculating bounds for indexing stack_usage_map. Fixes
7816 a buffer overflow with certain target setups.
7818 2009-02-20 Jakub Jelinek <jakub@redhat.com>
7821 * calls.c (expand_call): Clear try_tail_call if caller and callee
7822 disagree in promotion of function return value.
7824 2009-02-19 Jakub Jelinek <jakub@redhat.com>
7827 * c-common.c (c_determine_visibility): If visibility changed and
7828 DECL_RTL has been already set, call make_decl_rtl to update symbol
7831 2009-02-19 H.J. Lu <hongjiu.lu@intel.com>
7834 * varasm.c (assemble_variable): Don't check DECL_NAME when
7835 globalizing a variable.
7837 2009-02-19 Joseph Myers <joseph@codesourcery.com>
7840 * builtins.c (gimplify_va_arg_expr): Evaluate the va_list
7841 expression before any __builtin_trap call.
7842 * c-typeck.c (build_function_call): Convert and check function
7843 arguments before generating a call to a trap. Evaluate the
7844 function arguments before the trap.
7846 2009-02-19 Uros Bizjak <ubizjak@gmail.com>
7849 * config/i386/i386.md (isinfxf2): Split from isinf<mode>2.
7850 (UNSPEC_FXAM_MEM): New unspec.
7851 (fxam<mode>2_i387_with_temp): New insn and split pattern.
7852 (isinf<mode>2): Use MODEF mode iterator. Force operand[1] through
7853 memory using fxam<mode>2_i387_with_temp to remove excess precision.
7855 2009-02-19 Richard Guenther <rguenther@suse.de>
7857 PR tree-optimization/39207
7858 PR tree-optimization/39074
7859 * tree-ssa-structalias.c (storedanything_id, var_storedanything,
7860 storedanything_tree): New.
7861 (do_ds_constraint): Simplify ANYTHING shortcutting. Update
7862 the STOREDANYTHING solution if the lhs solution contains ANYTHING.
7863 (build_succ_graph): Add edges from STOREDANYTHING to all
7865 (init_base_vars): Initialize STOREDANYTHING.
7866 (compute_points_to_sets): Free substitution info after
7867 building the succ graph.
7868 (ipa_pta_execute): Likewise.
7870 * tree-ssa-structalias.c (struct variable_info): Add may_have_pointers
7872 (do_ds_constraint): Do not add to special var or non-pointer
7874 (type_could_have_pointers): Split out from ...
7875 (could_have_pointers): ... here. For arrays use the element type.
7876 (create_variable_info_for): Initialize may_have_pointers.
7877 (new_var_info): Likewise.
7878 (handle_lhs_call): Make the HEAP variable unknown-sized.
7879 (intra_create_variable_infos): Use a type with pointers for
7880 PARM_NOALIAS, make it unknown-sized.
7882 2009-02-18 H.J. Lu <hongjiu.lu@intel.com>
7885 * config/i386/i386.c (ix86_return_in_memory): Properly check ABI.
7887 2009-02-18 Jason Merrill <jason@redhat.com>
7890 * tree-ssa-ccp.c (get_symbol_constant_value): Don't assume zero
7891 value if DECL_EXTERNAL.
7892 * tree-sra.c (sra_walk_gimple_assign): Likewise.
7893 * target.h (gcc_target::binds_local_p): Clarify "module".
7894 * tree.h (TREE_PUBLIC): Clarify "module".
7896 2009-02-17 Xuepeng Guo <xuepeng.guo@intel.com>
7899 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move the hunk of
7900 initialization for MS_ABI prior to the hunk of !TARGET_MMX.
7902 2009-02-17 H.J. Lu <hongjiu.lu@intel.com>
7905 * c.opt (Wabi): Support C and ObjC.
7908 * c-opts.c (c_common_handle_option): Handle OPT_Wabi.
7910 * config/i386/i386.c (classify_argument): Warn once about the ABI
7911 change when passing union with long double.
7913 * doc/invoke.texi: Update -Wabi for warning psABI changes.
7915 2009-02-18 Joseph Myers <joseph@codesourcery.com>
7918 * c-parser.c (c_parser_compound_statement): Always enter and leave
7921 2009-02-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7924 * config/darwin.h (SUPPORTS_INIT_PRIORITY): Define.
7926 2009-02-18 Jakub Jelinek <jakub@redhat.com>
7928 PR tree-optimization/36922
7929 * tree-data-ref.c (initialize_matrix_A): Handle BIT_NOT_EXPR.
7930 * tree-scalar-evolution.c (interpret_rhs_expr, instantiate_scev_1):
7933 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
7935 * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
7938 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
7940 * config/mips/mips.md (type): Reclassify lui_movf as "unknown".
7942 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
7944 * config/mips/mips.c (mips_gimplify_va_arg_expr): Fix invalid
7947 2009-02-17 Ruan Beihong <ruanbeihong@gmail.com>
7948 Richard Sandiford <rdsandiford@googlemail.com>
7950 * config/mips/mips.c (CODE_FOR_loongson_biadd): Delete.
7951 * config/mips/loongson.md (reduc_uplus_<mode>): Rename to...
7952 (loongson_biadd): ...this.
7954 2009-02-17 Richard Guenther <rguenther@suse.de>
7956 PR tree-optimization/39202
7957 * tree-ssa-structalias.c (do_structure_copy): Before collapsing
7958 a var make sure to follow existing collapses.
7960 2009-02-17 Richard Guenther <rguenther@suse.de>
7963 * langhooks.c (lhd_print_error_function): Check for NULL block.
7965 2009-02-17 Richard Guenther <rguenther@suse.de>
7967 PR tree-optimization/39204
7968 * tree-ssa-pre.c (phi_translate_1): Lookup the value-number
7971 2009-02-17 Uros Bizjak <ubizjak@gmail.com>
7973 * config/soft-fp/double.h: Update from glibc CVS.
7975 2009-02-17 Richard Guenther <rguenther@suse.de>
7977 PR tree-optimization/39207
7978 * tree-ssa-structalias.c (find_what_p_points_to): Do not emit
7979 strict-aliasing warnings for pointers pointing to NULL.
7981 2009-02-16 Joseph Myers <joseph@codesourcery.com>
7984 * c-parser.c (c_parser_braced_init): Call pop_init_level when
7985 skipping until next close brace.
7987 2009-02-16 H.J. Lu <hongjiu.lu@intel.com>
7990 * config/i386/i386.c (ix86_expand_push): Set memory alignment
7991 to function argument boundary.
7993 2009-02-16 Hariharan Sandanagobalane <hariharan@picochip.com>
7995 * config/picochip/picochip.md (lea_add): Allow any nonimmediate
7996 in the lea_add. Reload eventually constraints it properly.
7997 * config/picochip/constraints.md : Remove the target constraint
7998 "b", since it is not needed anymore.
8000 2009-02-16 Jakub Jelinek <jakub@redhat.com>
8002 * gthr-dce.h: Uglify function parameter and local variable names.
8003 * gthr-gnat.h: Likewise.
8004 * gthr-mipssde.h: Likewise.
8005 * gthr-nks.h: Likewise.
8006 * gthr-posix95.h: Likewise.
8007 * gthr-posix.h: Likewise.
8008 * gthr-rtems.h: Likewise.
8009 * gthr-single.h: Likewise.
8010 * gthr-solaris.h: Likewise.
8011 * gthr-tpf.h: Likewise.
8012 * gthr-vxworks.h: Likewise.
8013 * gthr-win32.h: Likewise.
8015 2009-02-15 H.J. Lu <hongjiu.lu@intel.com>
8018 * config/i386/i386.md: Restrict the new peephole2 to move
8019 between MMX/SSE registers.
8021 2009-02-15 Richard Guenther <rguenther@suse.de>
8024 2009-02-13 Richard Guenther <rguenther@suse.de>
8026 * configure.ac: Enable LFS.
8027 * configure: Re-generate.
8028 * config.in: Likewise.
8030 2009-02-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8032 * config/spu/spu_internals.h (spu_sr, spu_sra, spu_srqw,
8033 spu_srqwbyte, spu_srqwbytebc): Define.
8034 * config/spu/spu-builtins.def (spu_sr, spu_sra, spu_srqw,
8035 spu_srqwbyte, spu_srqwbytebc): New overloaded builtins.
8036 * config/spu/spu.md ("shrqbybi_<mode>", "shrqbi_<mode>",
8037 "shrqby_<mode>"): New insn-and-split patterns.
8038 * config/spu/spu.c (expand_builtin_args): Determine and return
8039 number of operands using spu_builtin_description data.
8040 (spu_expand_builtin_1): Use it.
8042 2009-02-13 Steve Ellcey <sje@cup.hp.com>
8045 * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Check
8048 2009-02-13 H.J. Lu <hongjiu.lu@intel.com>
8051 * config/i386/i386.c (override_options): Correct warning
8052 messages for -malign-loops, -malign-jumps and -malign-functions.
8054 2009-02-13 H.J. Lu <hongjiu.lu@intel.com>
8057 * config/i386/i386.md: Restrict the new peephole2 to move
8058 between the general purpose registers.
8060 2009-02-13 H.J. Lu <hongjiu.lu@intel.com>
8063 * config/i386/i386.c (type_natural_mode): Add a new argument.
8064 Return the original mode and warn ABI change if vector size is 32byte.
8065 (function_arg_advance): Updated.
8066 (function_arg): Likewise.
8067 (ix86_function_value): Likewise.
8068 (ix86_return_in_memory): Likewise.
8069 (ix86_sol10_return_in_memory): Likewise.
8070 (ix86_gimplify_va_arg): Likewise.
8071 (function_arg_32): Don't warn ABX ABI change here.
8072 (function_arg_64): Likewise.
8074 2009-02-13 Bernd Schmidt <bernd.schmidt@analog.com>
8076 * loop-iv.c (implies_p): In the final case, test that operands 0
8077 of the two comparisons match.
8079 * config/bfin/bfin.c (find_prev_insn_start): New function.
8080 (bfin_optimize_loop): Use it in some cases instead of PREV_INSN.
8081 (find_next_insn_start): Move.
8083 2009-02-13 Richard Guenther <rguenther@suse.de>
8085 * configure.ac: Enable LFS.
8086 * configure: Re-generate.
8087 * config.in: Likewise.
8089 2009-02-13 Joseph Myers <joseph@codesourcery.com>
8092 * c-parser.c (c_parser_parms_list_declarator): Discard pending
8093 sizes on syntax error after some arguments have been parsed.
8095 2009-02-12 Jakub Jelinek <jakub@redhat.com>
8097 * doc/invoke.texi (-fira): Remove.
8099 2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
8101 * caller-save.c: Replace regclass.c with reginfo.c in comments.
8102 * recog.c: Likewise.
8105 2009-02-12 Uros Bizjak <ubizjak@gmail.com>
8107 * longlong.h (sub_ddmmss): New for ia64. Ported from GMP 4.2.
8108 (umul_ppmm): Likewise.
8109 (count_leading_zeros): Likewise.
8110 (count_trailing_zeros): Likewise.
8111 (UMUL_TIME): Likewise.
8113 2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
8115 * config.gcc (ia64*-*-linux*): Add ia64/t-fprules-softfp and
8116 soft-fp/t-softfp to tmake_file.
8118 * config/ia64/ia64.c (ia64_soft_fp_init_libfuncs): New.
8119 (ia64_expand_compare): Use HPUX library for TFmode only for HPUX.
8120 (ia64_builtins) [IA64_BUILTIN_COPYSIGNQ, IA64_BUILTIN_FABSQ,
8121 IA64_BUILTIN_INFQ]: New.
8122 (ia64_init_builtins): Initialize __builtin_infq,
8123 __builtin_fabsq and __builtin_copysignq if not HPUX.
8124 (ia64_expand_builtin): Handle IA64_BUILTIN_COPYSIGNQ,
8125 IA64_BUILTIN_FABSQ and IA64_BUILTIN_INFQ.
8127 * config/ia64/lib1funcs.asm (__divtf3): Define only if
8129 (__fixtfti): Likewise.
8130 (__fixunstfti): Likewise.
8131 (__floattitf): Likewise.
8133 * config/ia64/libgcc-glibc.ver: New.
8134 * config/ia64/t-fprules-softfp: Likewise.
8135 * config/ia64/sfp-machine.h: Likewise.
8137 * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): New.
8138 (LIBGCC2_TF_CEXT): Likewise.
8139 (TF_SIZE): Likewise.
8140 (TARGET_INIT_LIBFUNCS): Likewise.
8142 * config/ia64/t-glibc (SHLINB_MAPFILES):
8143 Add $(srcdir)/config/ia64/libgcc-glibc.ver.
8145 2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
8147 * config/i386/i386.c (construct_container): Rewrite processing
8148 BLKmode with X86_64_SSE_CLASS.
8150 2009-02-12 Paolo Bonzini <bonzini@gnu.org>
8153 * config/i386/i386.md: Replace simplify_replace_rtx with
8154 replace_rtx in the new peephole2.
8156 2009-02-12 Nathan Sidwell <nathan@codesourcery.com>
8158 * doc/invoke.texi (Optimize Options): Stop claiming inlining and
8159 loop unrolling do not happen at -O2.
8161 2009-02-12 Michael Matz <matz@suse.de>
8163 * gcc.c (ASM_DEBUG_SPEC): Check for -g0.
8165 2009-02-12 Jakub Jelinek <jakub@redhat.com>
8167 * dwarf2out.c (dwarf2out_finish): Force output of comp_unit_die
8170 2009-02-12 Ben Elliston <bje@au.ibm.com>
8172 * config/rs6000/rs6000.md (allocate_stack): Use _stack form of
8173 patterns when updating the back chain. Missed in the 2009-02-10
8176 2009-02-11 Janis Johnson <janis187@us.ibm.com>
8178 * doc/extend.texi (Decimal Floating Types): Update identifier of
8179 draft TR and list of missing support.
8181 2009-02-11 Jakub Jelinek <jakub@redhat.com>
8184 * gimplify.c (omp_notice_variable): If adding GOVD_SEEN
8185 bit to variable length decl's flags, add it also to its
8186 pointer replacement variable.
8188 2009-02-11 Uros Bizjak <ubizjak@gmail.com>
8189 Jakub Jelinek <jakub@redhat.com>
8192 * config/i386/i386.md (UNSPEC_MEMORY_BLOCKAGE): New constant.
8193 (memory_blockage): New expander.
8194 (*memory_blockage): New insn pattern.
8195 * config/i386/i386.c (ix86_expand_prologue): Use memory_blockage
8196 instead of general blockage at the end of function prologue when
8197 frame pointer is used to access red zone area. Do not emit blockage
8198 when profiling, it is emitted in generic code.
8199 (ix86_expand_epilogue): Emit memory_blockage at the beginning of
8200 function epilogue when frame pointer is used to access red zone area.
8202 2009-02-11 Paolo Bonzini <bonzini@gnu.org>
8205 * config/i386/i386.md: Add two new peephole2 to avoid mov followed
8206 by arithmetic with memory operands.
8207 * config/i386/predicates.md (commutative_operator): New.
8209 2009-02-10 Janis Johnson <janis187@us.ibm.com>
8211 * doc/extend.texi (Fixed-Point Types): Break long paragraphs into
8214 2009-02-10 Eric Botcazou <ebotcazou@adacore.com>
8216 * alias.h (record_alias_subset): Declare.
8217 * alias.c (record_alias_subset): Make global.
8219 2009-02-10 Nick Clifton <nickc@redhat.com>
8221 * tree-parloops.c: Change license to GPLv3.
8222 * ipa-struct-reorg.c: Change license to GPLv3.
8223 * ipa-struct-reorg.h: Change license to GPLv3.
8225 2009-02-10 Steve Ellcey <sje@cup.hp.com>
8228 * c-decl.c (start_struct): Return NULL on error.
8230 2009-02-10 Jakub Jelinek <jakub@redhat.com>
8233 * cfgloopmanip.c (remove_path): Call remove_bbs after
8234 cancel_loop_tree, not before it.
8237 * function.h (struct function): Add has_local_explicit_reg_vars bit.
8238 * gimplify.c (gimplify_bind_expr): Set it if local DECL_HARD_REGISTER
8239 VAR_DECLs were seen.
8240 * tree-ssa-live.c (remove_unused_locals): Recompute
8241 cfun->has_local_explicit_reg_vars.
8242 * tree-ssa-sink.c (statement_sink_location): Don't sink BLKmode
8243 copies or clearings if cfun->has_local_explicit_reg_vars.
8245 2009-02-10 Uros Bizjak <ubizjak@gmail.com>
8248 * config/i386/i386.c (expand_prologue): Emit blockage at the end
8249 of function prologue when frame pointer is used to access
8252 2009-02-10 Richard Guenther <rguenther@suse.de>
8255 * gimplify.c (gimple_regimplify_operands): Always look if
8256 we need to create a temporary.
8258 2009-02-10 Richard Guenther <rguenther@suse.de>
8260 PR tree-optimization/39132
8261 * tree-loop-distribution.c (todo): New global var.
8262 (generate_memset_zero): Trigger TODO_rebuild_alias.
8263 (tree_loop_distribution): Return todo.
8265 2009-02-10 H.J. Lu <hongjiu.lu@intel.com>
8268 * config/i386/i386.c (x86_64_reg_class): Remove X86_64_AVX_CLASS.
8269 (x86_64_reg_class_name): Removed.
8270 (classify_argument): Return 0 if bytes > 32. Return 0 if the
8271 first one isn't X86_64_SSE_CLASS or any other ones aren't
8272 X86_64_SSEUP_CLASS when size > 16bytes. Don't turn
8273 X86_64_SSEUP_CLASS into X86_64_SSE_CLASS if the preceded one
8274 is X86_64_SSEUP_CLASS. Set AVX modes to 1 X86_64_SSE_CLASS
8275 and 3 X86_64_SSEUP_CLASS.
8276 (construct_container): Remove X86_64_AVX_CLASS. Handle 4
8277 registers with 1 X86_64_SSE_CLASS and 3 X86_64_SSEUP_CLASS.
8279 2009-02-10 Ben Elliston <bje@au.ibm.com>
8281 * config/rs6000/rs6000.md (allocate_stack): Always use an update
8282 form instruction to update the stack back chain word, even if the
8283 user has disabled the generation of update instructions.
8284 (movdi_<mode>_update_stack): New.
8285 (movsi_update_stack): Likewise.
8286 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Likewise,
8287 always use an update form instruction to update the stack back
8290 2009-02-09 Sebastian Pop <sebastian.pop@amd.com>
8293 * graphite.c (if_region_set_false_region): After moving a region in
8294 the false branch of a condition, remove the empty dummy basic block.
8295 (gloog): Remove wrong fix for PR38953.
8297 2009-02-09 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8299 * config/spu/spu.c (array_to_constant): Fix (latent) wrong-code
8300 generation due to implicit sign extension.
8302 2009-02-09 Eric Botcazou <ebotcazou@adacore.com>
8305 * tree-ssa-coalesce.c (add_coalesce): Cap the costs of coalesce pairs
8306 at MUST_COALESCE_COST-1 instead of MUST_COALESCE_COST.
8308 2009-02-09 Richard Guenther <rguenther@suse.de>
8311 * convert.c (convert_to_real): Disable (float)fn((double)x)
8312 to fnf(x) conversion if errno differences may occur and
8313 -fmath-errno is set.
8315 2009-02-07 Anatoly Sokolov <aesok@post.ru>
8317 * config/avr/avr.c (avr_mcu_t): Add ata6289 device.
8318 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
8319 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
8321 2009-02-06 Joseph Myers <joseph@codesourcery.com>
8324 * c-common.c (handle_alias_attribute): Disallow attribute for
8325 anything not a FUNCTION_DECL or VAR_DECL.
8327 2009-02-06 Janis Johnson <janis187@us.ibm.com>
8330 * real.c (do_compare): Special-case compare of zero against
8331 decimal float value.
8333 2009-02-06 Joseph Myers <joseph@codesourcery.com>
8336 * c-decl.c (grokdeclarator): Don't treat [] declarators in fields
8337 as indicating flexible array members unless the field itself is
8338 being declarared as the incomplete array.
8340 2009-02-06 Jan Hubicka <jh@suse.cz>
8342 PR tree-optimization/38844
8343 * ipa-inline.c (try_inline): Stop inlining recursion when edge
8346 2009-02-06 Richard Guenther <rguenther@suse.de>
8349 * tree-cfg.c (need_fake_edge_p): Force a fake edge for
8350 fork because we may expand it as __gcov_fork.
8352 2009-02-06 Nick Clifton <nickc@redhat.com>
8354 * config/m32c/m32c.h (PCC_BITFIELD_TYPE_MATTERS): Define to zero.
8356 2009-02-06 Paolo Bonzini <bonzini@gnu.org>
8358 PR tree-optimization/35659
8359 * tree-ssa-sccvn.c (vn_constant_eq, vn_reference_eq, vn_nary_op_eq
8360 vn_phi_eq): Shortcut if hashcode does not match.
8361 (vn_reference_op_compute_hash): Do not call iterative_hash_expr for
8363 * tree-ssa-pre.c (pre_expr_hash): Look at hashcode if available,
8364 and avoid iterative_hash_expr.
8365 (FOR_EACH_VALUE_ID_IN_SET): New.
8366 (value_id_compare): Remove.
8367 (sorted_array_from_bitmap_set): Use FOR_EACH_VALUE_ID_IN_SET to
8368 sort expressions by value id.
8370 2009-02-05 Kaz Kojima <kkojima@gcc.gnu.org>
8373 * config/sh/predicates.md (general_movsrc_operand): Don't check
8374 the subreg of system registers here.
8376 2009-02-05 Jakub Jelinek <jakub@redhat.com>
8379 * cgraphunit.c (cgraph_function_versioning): Clear also DECL_VIRTUAL_P
8382 2009-02-05 Paolo Bonzini <bonzini@gnu.org>
8384 PR rtl-optimization/39110
8385 * rtlanal.c (rtx_addr_can_trap_p_1): Shortcut unaligned
8386 addresses, not aligned ones.
8388 2009-02-05 Daniel Berlin <dberlin@dberlin.org>
8389 Richard Guenther <rguenther@suse.de>
8391 PR tree-optimization/39100
8392 * tree-ssa-structalias.c (do_ds_constraint): Actually do what the
8393 comment says and add edges.
8395 2009-02-05 Joseph Myers <joseph@codesourcery.com>
8398 * c-common.c (handle_tls_model_attribute): Ignore attribute for
8399 non-VAR_DECLs without checking DECL_THREAD_LOCAL_P.
8401 2009-02-04 Tobias Grosser <grosser@fim.uni-passau.de>
8403 * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use,
8404 sese_build_livein_liveouts_bb, sese_build_livein_liveouts,
8405 register_bb_in_sese, new_sese, free_sese): Moved.
8406 (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains,
8407 outermost_loop_in_scop, build_scop_iteration_domain,
8408 expand_scalar_variables_ssa_name, get_vdef_before_scop,
8409 limit_scops): Use bb_in_sese_p instead of bb_in_scop_p.
8410 Use loop_in_sese_p instead of loop_in_scop_p.
8411 (new_graphite_bb, gloog): Do not initialize SCOP_BBS_B.
8412 (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP and SCOP_BBS_B.
8413 (scopdet_basic_block_info): Fix bug in scop detection.
8414 (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
8415 eq_loop_to_cloog_loop): Remove.
8416 (nb_loops_around_loop_in_scop, nb_loop
8417 ref_nb_loops): Moved here...
8418 * graphite.h (ref_nb_loops): ... from here.
8419 (struct scop): Remove bbs_b bitmap and loop2cloog_loop.
8420 (loop_domain_dim, loop_iteration_vector_dim): Remove.
8421 (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed.
8422 * testsuite/gcc.dg/graphite/scop-19.c: New
8424 2009-02-04 Paolo Bonzini <bonzini@gnu.org>
8425 Hans-Peter Nilsson <hp@axis.com>
8427 PR rtl-optimization/37889
8428 * rtlanal.c (rtx_addr_can_trap_p_1): Add offset and size arguments.
8429 Move offset handling from PLUS to before the switch. Use new
8430 arguments when considering SYMBOL_REFs too.
8431 (rtx_addr_can_trap_p): Pass dummy offset and size.
8432 (enum may_trap_p_flags): Remove.
8433 (may_trap_p_1): Pass size from MEM_SIZE.
8435 PR rtl-optimization/38921
8436 * loop-invariant.c (find_invariant_insn): Use may_trap_or_fault_p.
8437 * rtl.h (may_trap_after_code_motion_p): Delete prototype.
8438 * rtlanal.c (may_trap_after_code_motion_p): Delete.
8439 (may_trap_p, may_trap_or_fault_p): Pass 0/1 as flags.
8441 2009-02-04 H.J. Lu <hongjiu.lu@intel.com>
8443 AVX Programming Reference (January, 2009)
8444 * config/i386/sse.md (*vpclmulqdq): New.
8446 2009-02-04 Jakub Jelinek <jakub@redhat.com>
8448 PR tree-optimization/38977
8449 PR gcov-profile/38292
8450 * calls.c (special_function_p): Disregard __builtin_ prefix.
8452 2009-02-04 Hariharan Sandanagobalane <hariharan@picochip.com>
8454 * config/picochip/picochip.c (GO_IF_LEGITIMATE_ADDRESS): Disallow
8455 non-indexable addresses even before reload.
8457 2009-02-03 Joseph Myers <joseph@codesourcery.com>
8460 * c-decl.c (grokdeclarator): Mark [*] arrays in field declarators
8461 as having variable size. Do not give an error for unnamed
8462 parameters with [*] declarators. Give a warning for type names
8463 with [*] declarators and mark them as variable size.
8464 * c-parser.c (c_parser_sizeof_expression): Do not give an error
8465 for sizeof applied to [*] type names.
8467 2009-02-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
8470 * convert.c (convert_to_integer): Treat OFFSET_TYPE like INTEGER_TYPE.
8472 2009-02-03 Jakub Jelinek <jakub@redhat.com>
8474 * gcc.c (process_command): Update copyright notice dates.
8475 * gcov.c (print_version): Likewise.
8476 * gcov-dump.c (print_version): Likewise.
8477 * mips-tfile.c (main): Likewise.
8478 * mips-tdump.c (main): Likewise.
8480 2009-02-03 Joseph Myers <joseph@codesourcery.com>
8483 * c-typeck.c (composite_type): Set TYPE_SIZE and TYPE_SIZE_UNIT
8484 for composite type involving a zero-length array type.
8486 2009-02-03 Jakub Jelinek <jakub@redhat.com>
8489 * function.c (match_asm_constraints_1): Skip over
8490 initial optional % in the constraint.
8493 * c-parser.c (c_parser_postfix_expression): If fixed point is not
8494 supported, don't accept FIXED_CSTs.
8495 * c-decl.c (finish_declspecs): Error if fixed point is not supported
8496 and _Sat is used without _Fract/_Accum. Set specs->type to
8497 integer_type_node for cts_fract/cts_accum if fixed point is not
8500 2009-02-02 Catherine Moore <clm@codesourcery.com>
8502 * sde.h (SUBTARGET_ARM_SPEC): Don't assemble -fpic code as -mabicalls.
8504 2009-02-02 Richard Sandiford <rdsandiford@googlemail.com>
8506 * config/mips/mips.h (FILE_HAS_64BIT_SYMBOLS): New macro.
8507 (ABI_HAS_64BIT_SYMBOLS): Use it.
8508 (DWARF2_ADDR_SIZE): Use it instead of ABI_HAS_64BIT_SYMBOLS.
8510 2009-02-02 Paul Brook <paul@codesourcery.com>
8512 * config/arm/arm.md (arm_addsi3): Add r/r/k alternative.
8514 2009-02-02 Jakub Jelinek <jakub@redhat.com>
8517 * recog.h (asm_operand_ok): Add constraints argument.
8518 * recog.c (asm_operand_ok): Likewise. If it is set, for digits
8519 recurse on matching constraint.
8520 (check_asm_operands): Pass constraints as 3rd argument to
8521 asm_operand_ok. Don't look up matching constraint here.
8522 * stmt.c (expand_asm_operands): Pass NULL as 3rd argument
8525 2009-02-02 Ben Elliston <bje@au.ibm.com>
8527 * doc/tm.texi (Storage Layout): Fix TARGET_ALIGN_ANON_BITFIELD and
8528 TARGET_NARROW_VOLATILE_BITFIELD macro names.
8530 2009-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8532 * doc/install.texi (hppa*-hp-hpux*): Update binutils and linker
8533 information. Remove some obsolete information. Reorganize.
8535 * config/pa/fptr.c: Revert license to GPL 2.
8536 * config/pa/milli64.S: Likewise.
8538 2009-01-31 Dave Korn <dave.korn.cygwin@gmail.com>
8541 * mkmap-flat.awk (END): Use pe_dll command-line arg to pass
8542 LIBRARY name in, instead of hard-coding it.
8543 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add an
8544 extra target make frag to tmake_files according to EH model.
8545 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
8546 * config/i386/t-dw2-eh, config/i386/t-sjlj-eh: Add new target
8547 frags that define makefile variable EH_MODEL appropriately.
8548 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Add comment.
8549 * config/i386/cygwin.h (LIBGCC_EH_EXTN): Define to nothing or
8550 to "-sjlj" according to type of EH configured.
8551 (LIBGCC_SONAME): Concatenate it to shared library base name.
8552 * config/i386/mingw32.h (LIBGCC_EH_EXTN): Define to "_dw2" or
8553 to "_sjlj" according to type of EH configured.
8554 (LIBGCC_SONAME): Concatenate it to shared library base name.
8555 * config/i386/t-cygming (SHLIB_SONAME): Use EH_MODEL.
8556 (SHLIB_LINK): Add missing semicolon to if-else construct.
8557 (SHLIB_MKMAP_OPTS): Pass library name to mkmap-flat.awk as
8558 string value of "pe_dll" command-line option.
8559 * config/i386/t-cygwin (SHLIB_EH_EXTENSION): New helper.
8560 (SHLIB_SONAME): Use it when overriding t-cygming default.
8561 (SHLIB_IMPLIB): Override t-cygming default.
8562 (SHLIB_MKMAP_OPTS): Pass library name to mkmap-flat.awk as
8563 string value of "pe_dll" command-line option.
8565 2009-01-31 Dave Korn <dave.korn.cygwin@gmail.com>
8568 * config/i386/i386.c (ix86_builtin_setjmp_frame_value): New.
8569 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Override default to point at it.
8571 2009-01-31 Richard Guenther <rguenther@suse.de>
8573 PR tree-optimization/38937
8574 * tree-ssa-structalias.c (do_sd_constraint): Do not shortcut
8575 computing the transitive closure.
8577 2009-01-30 Richard Guenther <rguenther@suse.de>
8579 PR tree-optimization/39041
8580 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
8581 Propagate variable indices only if the types match for this stmt.
8583 2009-01-30 Jakub Jelinek <jakub@redhat.com>
8586 * c-decl.c (pop_scope): Set DECL_EXTERNAL for functions declared
8587 inline but never defined.
8589 2009-01-30 Wolfgang Gellerich <gellerich@de.ibm.com>
8591 * config/s390/s390.md (*insv<mode>_reg_extimm): Removed.
8592 (*insv_h_di_reg_extimm): New insn.
8593 (*insv_l<mode>_reg_extimm): New insn.
8595 2009-01-30 Hariharan Sandanagobalane <hariharan@picochip.com>
8597 * config/picochip/picochip.c (flag_conserve_stack): set
8598 PARAM_LARGE_STACK_FRAME and PARAM_STACK_FRAME_GROWTH to zero under
8599 fconserve-stack. Reduce call-overhead used by inliner.
8601 2009-01-30 Hariharan Sandanagobalane <hariharan@picochip.com>
8604 * common.opt (flag_conserve_stack): Initialised to zero.
8606 2009-01-30 Kai Tietz <kai.tietz@onevision.com>
8609 * config/i386/i386.c (ix86_can_use_return_insn_p): Check for nsseregs.
8610 (ix86_expand_epilogue): Take nsseregs in account to use proper restore
8613 2009-01-29 H.J. Lu <hongjiu.lu@intel.com>
8615 * ira-color.c (allocno_reload_assign): Update comments.
8616 * regmove.c (regmove_optimize): Likewise.
8620 2009-01-29 Robert Millan <rmh@aybabtu.com>
8622 * config.gcc: Recognize GNU/kOpenSolaris (*-*-kopensolaris*-gnu).
8623 * config/i386/kopensolaris-gnu.h: New file. Undefine
8624 `MD_UNWIND_SUPPORT'.
8625 * config/kopensolaris-gnu.h: New file (based on kfreebsd-gnu.h).
8627 2009-01-29 Kazu Hirata <kazu@codesourcery.com>
8629 PR tree-optimization/39007
8630 * tree-loop-distribution.c (generate_builtin): Use
8631 recompute_dominator to compute the immediate dominator of the
8632 basic block just after the loop.
8634 2009-01-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8636 * config/i386/sol2-10.h [!HAVE_AS_IX86_DIFF_SECT_DELTA]
8637 (ASM_OUTPUT_DWARF_PCREL): Define.
8639 2009-01-29 Vladimir Makarov <vmakarov@redhat.com>
8641 * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Modify description.
8642 * doc/passes.texi: Remove entries about regclass, local-alloc, and
8643 global. Modify entries about regmove and IRA.
8645 * ra-conflict.c: Remove the file.
8647 * reload.c (push_reload, find_dummy_reload): Remove flag_ira.
8649 * tree-pass.h (pass_local_alloc, pass_global_alloc): Remove.
8650 (pass_regclass_init): Rename to pass_reginfo_init.
8652 * cfgloopanal.c (estimate_reg_pressure_cost): Remove flag_ira.
8654 * toplev.h (flag_ira): Remove.
8656 * caller-save.c (setup_save_areas): Remove flag_ira.
8658 * ira-color.c (ira_reuse_stack_slot, ira_mark_new_stack_slot): Ditto.
8660 * global.c: Remove the file.
8662 * opts.c (decode_options): Remove flag_ira.
8664 * hard-reg-set.h (losing_caller_save_reg_set): Remove.
8666 * regmove.c: Modify file description.
8667 (find_use_as_address, try_auto_increment): Define them only if
8668 AUTO_INC_DEC is defined.
8669 (replacement_quality, replace_in_call_usage, fixup_match_1,
8670 stable_and_no_regs_but_for_p): Remove.
8671 (reg_set_in_bb): Make it static.
8672 (regmove_optimize): Remove flag_ira and code which worked for
8675 * local-alloc.c: Remove the file.
8677 * common.opt (fira): Remove.
8679 * ira.c: Include except.h.
8680 (eliminable_regset): Move from global.c.
8681 (mark_elimination): Ditto. Remove flag_ira.
8682 (reg_renumber, struct equivalence, reg_equiv, equiv_mem,
8683 equiv_mem_modified, validate_equiv_mem_from_store,
8684 validate_equiv_mem, equiv_init_varies_p, equiv_init_movable_p,
8685 contains_replace_regs, memref_referenced_p, memref_used_between_p,
8686 no_equiv, recorded_label_ref): Move from local-alloc.c.
8687 (update_equiv_regs): Ditto. Make it static.
8688 (print_insn_chain, print_insn_chains): Move it from global.c.
8689 (pseudo_for_reload_consideration_p): Ditto. Remove flag_ira.
8690 (build_insn_chain): Ditto. Make it static.
8691 (ra_init_live_subregs): Move from ra-conflict.c. Make it static.
8692 Rename to init_live_subregs.
8693 (gate_ira): Remove flag_ira.
8695 * regclass.c: Rename reginfo.c. Change file description.
8696 (FORBIDDEN_INC_DEC_CLASSES): Remove.
8697 (reg_class_superclasses, forbidden_inc_dec_class, in_inc_dec): Remove.
8698 (init_reg_sets_1): Remove code for evaluation of
8699 reg_class_superclasses and losing_caller_save_reg_set.
8700 (init_regs): Remove init_reg_autoinc.
8701 (struct costs, costs, init_cost, ok_for_index_p_nonstrict,
8702 ok_for_base_p_nonstrict): Remove.
8703 (regclass_init): Rename to reginfo_init. Don't initialize init_cost.
8704 (pass_regclass_init): Rename to pass_reginfo_init. Modify
8705 corresponding entries.
8706 (dump_regclass, record_operand_costs, scan_one_insn,
8707 init_reg_autoinc, regclass, record_reg_classes, copy_cost,
8708 record_address_regs, auto_inc_dec_reg_p): Remove.
8709 (gt-regclass.h): Rename to gt-reginfo.h.
8711 * rtl.h (dump_global_regs, retry_global_alloc,
8712 build_insn_chain, dump_local_alloc, update_equiv_regs): Remove.
8714 * Makefile.in (RA_H): Remove.
8715 (OBJS-common): Remove global.o, local-alloc.o, and ra-conflict.o.
8716 Rename regclass.o to reginfo.o.
8717 (regclass.o): Rename to reginfo.o. Rename gt-regclass.h to
8719 (global.o, local-alloc.o, ra-conflict.o): Remove entries.
8720 (GTFILES): Rename regclass.c to reginfo.c.
8722 * passes.c (init_optimization_passes): Remove pass_local_alloc and
8723 pass_global_alloc. Rename pass_regclass_init to pass_reginfo_init.
8725 * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
8726 count_spilled_pseudo, find_reg, alter_reg, delete_output_reload):
8728 (finish_spills): Ditto. Remove code for !flag_ira.
8730 2009-01-29 Kenneth Zadeck <zadeck@naturalbridge.com>
8733 * doc/invoke.texi (rtl debug options): Complete rewrite.
8734 * auto-inc-dec.c (pass_inc_dec): Rename pass from "auto-inc-dec"
8736 * mode-switching.c (pass_mode_switching): Rename pass from
8737 "mode-sw" to "mode_sw".
8738 * except.c (pass_convert_to_eh_ranges): Rename pass from
8739 "eh-ranges" to "eh_ranges".
8740 * lower-subreg.c (pass_lower_subreg): Renamed pass from "subreg"
8744 2009-01-29 Andrey Belevantsev <abel@ispras.ru>
8745 Alexander Monakov <amonakov@ispras.ru>
8748 * sel-sched.c (count_occurrences_1): Check that *cur_rtx is a hard
8750 (move_exprs_to_boundary): Change return type and pass through
8751 should_move from move_op. Relax assert. Update usage ...
8752 (schedule_expr_on_boundary): ... here. Use should_move instead of
8754 (move_op_orig_expr_found): Indicate that insn was disconnected from
8756 (code_motion_process_successors): Do not call after_merge_succs
8757 callback if original expression was not found when traversing any of
8759 (code_motion_path_driver): Change return type. Update prototype.
8760 (move_op): Update comment. Add a new parameter (should_move). Update
8761 prototype. Set *should_move based on indication provided by
8762 move_op_orig_expr_found.
8764 2009-01-28 Pat Haugen <pthaugen@us.ibm.com>
8766 * doc/invoke.texi (avoid-indexed-addresses): Document new option.
8767 * config/rs6000/rs6000-protos.h (avoiding_indexed_address_p): Declare.
8768 * config/rs6000/rs6000.opt (avoid-indexed-addresses): New option.
8769 * config/rs6000/rs6000.c (rs6000_override_options): Default
8770 avoid-indexed-addresses on for Power6, off for everything else.
8771 (avoiding_indexed_address_p): New function.
8772 (rs6000_legitimize_address): Use it.
8773 (rs6000_legitimate_address): Likewise.
8774 * config/rs6000/rs6000.md (movXX_updateX): Likewise
8776 2009-01-28 Kazu Hirata <kazu@codesourcery.com>
8778 PR tree-optimization/38997
8779 * tree-loop-distribution.c (generate_memset_zero): Use
8780 POINTER_PLUS_EXPR for a pointer addition.
8782 2009-01-28 Andreas Krebbel <krebbel1@de.ibm.com>
8784 * config/s390/s390.md (bswap<mode>2): New pattern added.
8786 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
8788 * config/s390/s390.md (*tls_load_31): Added type attribute.
8790 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
8792 * config/s390/s390.md: Fix a few comments.
8794 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
8796 * config/s390/s390.md (*tmsi_reg): Fixed z10prop attribute.
8797 (*tm<mode>_full): Fixed z10prop attribute.
8798 (*tst<mode>_extimm): Fixed z10prop attribute.
8799 (*tst<mode>_cconly_extimm): Fixed z10prop attribute.
8800 (*tstqiCCT_cconly): Fixed z10prop attribute.
8801 (*cmpsi_ccu_zerohi_rlsi): Fixed z10prop attribute.
8802 (*movsi_larl): Fixed z10prop attribute.
8803 (*movsi_zarch): Fixed z10prop attribute.
8804 (*movsi_eas): Fixed z10prop attribute.
8805 (*movhi): Fixed z10prop attribute.
8806 (*movqi): Fixed z10prop attribute.
8807 (*movstrictqi): Fixed z10prop attribute.
8808 (*mov<mode>): Fixed z10prop attribute.
8809 (*movcc): Fixed z10prop attribute.
8810 (*sethighpartdi_64): Fixed z10prop attribute.
8811 (*zero_extendhi<mode>2_z10): Fixed z10prop attribute.
8812 (*negdi2_sign_cc): Fixed z10prop attribute.
8813 (*negdi2_sign): Fixed z10prop attribute.
8814 (*absdi2_sign_cc): Fixed z10prop attribute.
8815 (*absdi2_sign): Fixed z10prop attribute.
8816 (*negabsdi2_sign_cc): Fixed z10prop attribute.
8817 (*negabsdi2_sign): Fixed z10prop attribute.
8818 (*cmp_and_trap_signed_int<mode>): Fixed z10prop attribute.
8819 (*cmp_and_trap_unsigned_int<mode>): Fixed z10prop attribute.
8820 (doloop_si64): Fixed z10prop attribute.
8821 (doloop_si31): Fixed z10prop attribute.
8822 (doloop_long): Fixed z10prop attribute.
8823 (indirect_jump): Fixed z10prop attribute.
8824 (nop): Fixed z10prop attribute.
8825 (main_base_64): Fixed z10prop attribute.
8826 (reload_base_64): Fixed z10prop attribute.
8828 2009-01-28 Jakub Jelinek <jakub@redhat.com>
8830 PR rtl-optimization/38740
8831 * reorg.c (gate_handle_delay_slots): Avoid dbr scheduling
8833 * config/mips/mips.c (mips_reorg): Likewise.
8835 2009-01-28 Richard Guenther <rguenther@suse.de>
8837 PR tree-optimization/38926
8838 * tree-ssa-pre.c (add_to_value): Assert we add only expressions
8839 with the correct value id to a value.
8840 (do_regular_insertion): Use the value number of edoubleprime
8841 for the value number of the expr.
8844 2008-08-21 Richard Guenther <rguenther@suse.de>
8846 * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
8847 a PHI ask VN if it is already available.
8848 * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
8849 * tree-ssa-sccvn.c (vn_phi_lookup): Export.
8851 2009-01-28 Jakub Jelinek <jakub@redhat.com>
8854 * tree-vrp.c (extract_range_from_assert): For LE_EXPR and LT_EXPR
8855 set to varying whenever max has TREE_OVERFLOW set, similarly
8856 for GE_EXPR and GT_EXPR and TREE_OVERFLOW min.
8858 2009-01-28 Richard Guenther <rguenther@suse.de>
8861 * tree-ssa.c (warn_uninitialized_var): Do not warn for seemingly
8862 uninitialized aggregate uses in call arguments.
8864 2009-01-28 Paolo Bonzini <bonzini@gnu.org>
8866 PR tree-optimization/38984
8867 * tree-ssa-structalias.c (get_constraints_for_1): Do not use
8868 the nothing_id variable if -fno-delete-null-pointer-checks.
8870 2009-01-28 Uros Bizjak <ubizjak@gmail.com>
8873 * config/i386/i386.md (set_rip_rex64): Wrap operand 1 in label_ref.
8874 (set_got_offset_rex64): Ditto.
8876 2009-01-27 H.J. Lu <hongjiu.lu@intel.com>
8879 * doc/extend.texi: Improve local variable with asm reg.
8881 2009-01-27 Adam Nemet <anemet@caviumnetworks.com>
8883 * c.opt (Wpacked-bitfield-compat): Change init value to -1.
8884 * c-opts.c (c_common_post_options): If -W*packed-bitfield-compat
8885 was not supplied then set warn_packed_bitfield_compat to the
8887 * stor-layout.c (place_field): Check warn_packed_bitfield_compat
8890 2009-01-27 Richard Guenther <rguenther@suse.de>
8892 PR tree-optimization/38503
8893 * cfgexpand.c (expand_gimple_basic_block): Ignore
8894 GIMPLE_CHANGE_DYNAMIC_TYPE during expansion.
8895 * tree-ssa-structalias.c (set_uids_in_ptset): Do not prune
8896 variables that cannot have TBAA applied.
8897 (compute_points_to_sets): Do not remove GIMPLE_CHANGE_DYNAMIC_TYPE
8900 2009-01-27 Uros Bizjak <ubizjak@gmail.com>
8903 * calls.c (initialize_argument_information): Do not wrap complex
8904 arguments in SAVE_EXPR.
8906 2009-01-26 Andreas Tobler <a.tobler@schweiz.org>
8908 * config/t-vxworks (LIBGCC2_INCLUDES): Fix typo.
8909 (INSTALL_LIBGCC): Revert typo commit.
8911 2009-01-26 Richard Guenther <rguenther@suse.de>
8913 PR tree-optimization/38745
8914 * tree-ssa-alias.c (update_alias_info_1): Exclude RESULT_DECL
8915 from special handling.
8917 2009-01-26 Richard Guenther <rguenther@suse.de>
8919 PR tree-optimization/38745
8920 * tree-ssa.c (execute_update_addresses_taken): Do not include
8921 variables that cannot possibly be a register in not_reg_needs.
8922 Do not clear TREE_ADDRESSABLE on vars that may not become
8924 * tree-ssa.c (update_alias_info_1): Include those in the set
8925 of addressable vars.
8927 2009-01-26 Richard Guenther <rguenther@suse.de>
8930 * Makefile.in (tree-ssa-dse.o): Add langhooks.h.
8931 * tree-ssa-dse.c: Include langhooks.h
8932 (execute_simple_dse): Remove stores with zero size.
8934 2009-01-24 Jakub Jelinek <jakub@redhat.com>
8937 * c-typeck.c (c_finish_return): Handle POINTER_PLUS_EXPR the same way
8940 2009-01-24 Julian Brown <julian@codesourcery.com>
8942 * config/arm/t-linux-eabi (LIB2FUNCS_STATIC_EXTRA): Add
8943 config/arm/linux-atomic.c.
8944 * config/arm/linux-atomic.c: New.
8946 2009-01-24 Eric Botcazou <ebotcazou@adacore.com>
8948 * config/sparc/linux.h (DBX_REGISTER_NUMBER): Delete.
8949 * config/sparc/linux64.h (DBX_REGISTER_NUMBER): Likewise.
8950 * config/sparc/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
8952 2009-01-24 H.J. Lu <hongjiu.lu@intel.com>
8955 * c-opts.c (c_common_handle_option): Update warn_pointer_sign
8958 2009-01-24 Sebastian Pop <sebastian.pop@amd.com>
8960 PR tree-optimization/38953
8961 * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa.
8962 (scop_adjust_phis_for_liveouts): Initialize false_i to zero.
8963 (gloog): Split the exit of the scop when the scop exit is a loop exit.
8964 (graphite_transform_loops): Only call cleanup_tree_cfg if gloog
8967 2009-01-24 Paul Brook <paul@codesourcery.com>
8969 * config/arm/neon.md (neon_type): Move to arm.md.
8970 (neon_mov<VSTRUCT>): Add neon_type attribute.
8971 * config/arm/arm.md (neon_type): Move to here.
8972 (conds): Add "unconditioal" and use as default for NEON insns.
8974 2009-01-24 Ben Elliston <bje@au.ibm.com>
8976 * bitmap.h (BITMAP_FREE): Eliminate `implicit conversion from
8977 void *' warning from -Wc++-compat.
8978 * Makefile.in (dominance.o-warn): Remove.
8980 2009-01-23 Paolo Bonzini <bonzini@gnu.org>
8982 PR tree-optimization/38932
8983 * fold-const.c (fold_unary_ignore_overflow): New.
8984 * tree.h (fold_unary_ignore_overflow): Declare.
8985 * tree-ssa-ccp.c (ccp_fold): Use fold_unary_ignore_overflow.
8986 * tree-ssa-sccvn.c (visit_reference_op_load,
8987 simplify_unary_expression): Likewise.
8989 2009-01-22 Adam Nemet <anemet@caviumnetworks.com>
8991 * c-decl.c (finish_struct): Move code to set DECL_PACKED after
8992 DECL_BIT_FIELD is alreay known. Also inherit packed for bitfields
8993 regardless of their type.
8994 * c-common.c (handle_packed_attribute): Don't ignore packed on
8996 * c.opt (Wpacked-bitfield-compat): New warning option.
8997 * stor-layout.c (place_field): Warn if offset of a field changed.
8998 * doc/extend.texi (packed): Mention the ABI change.
8999 * doc/invoke.texi (-Wpacked-bitfield-compat): Document.
9000 (Warning Options): Add it to the list.
9002 2009-01-22 H.J. Lu <hongjiu.lu@intel.com>
9004 * c-opts.c (c_common_post_options): Fix a typo in comments.
9006 2009-01-22 Steve Ellcey <sje@cup.hp.com>
9009 * gimplify.c (gimplify_init_constructor): Fix promotion of const
9010 variables to static.
9011 * doc/invoke.texi (-fmerge-all-constants): Update description.
9013 2009-01-22 Uros Bizjak <ubizjak@gmail.com>
9016 * config/i386/i386.md (*movsi_1): Use type "mmx" for alternative 2.
9017 (*movdi_1_rex64): Use type "mmx" for alternative 5.
9019 2009-01-22 Richard Earnshaw <rearnsha@arm.com>
9021 * arm.h (DATA_ALIGNMENT): Align structures, unions and arrays to
9023 (LOCAL_ALIGNMENT): Similarly.
9025 2009-01-22 Mark Shinwell <shinwell@codesourcery.com>
9026 Joseph Myers <joseph@codesourcery.com>
9028 * config/arm/arm.c (all_architectures): Add iWMMXt2 entry.
9029 * config/arm/arm-cores.def: New ARM_CORE entry for iWMMXt2.
9030 * config/arm/arm-tune.md: Regenerate.
9031 * doc/invoke.texi (ARM Options): Document -mcpu=iwmmxt2 and
9034 2009-01-22 Mark Shinwell <shinwell@codesourcery.com>
9036 * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Bump EABI
9037 version number to five.
9039 2009-01-22 Dodji Seketeli <dodji@redhat.com>
9042 * c-decl.c (clone_underlying_type): Revert PR c++/26693 changes.
9043 * c-common.c (set_underlying_type): Likewise.
9044 (is_typedef_decl ): Likewise
9046 (set_underlying_type): Likewise.
9047 (is_typedef_type): Likewise.
9049 2009-01-21 Vladimir Makarov <vmakarov@redhat.com>
9052 * ira-color.c (coalesce_spill_slots): Don't coalesce allocnos
9055 2009-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
9058 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): New helper macro.
9059 (LIBGCC_SPEC): Don't define.
9060 (REAL_LIBGCC_SPEC): Define instead, using SHARED_LIBGCC_SPEC.
9062 2009-01-21 Uros Bizjak <ubizjak@gmail.com>
9064 PR rtl-optimization/38879
9065 * alias.c (base_alias_check): Unaligned access via AND address can
9066 alias all surrounding object types except those with sizes equal
9067 or wider than the size of unaligned access.
9069 2009-01-21 Dodji Seketeli <dodji@redhat.com>
9072 * c-decl.c (clone_underlying_type): Move this ...
9073 * c-common.c (set_underlying_type): ... here.
9074 Also, make sure the function properly sets TYPE_STUB_DECL() on
9075 the newly created typedef variant type.
9076 (is_typedef_decl ): New entry point.
9077 * tree.h: Added a new member member_types_needing_access_check to
9078 struct tree_decl_non_common.
9079 (set_underlying_type): New entry point.
9080 (is_typedef_type): Likewise.
9082 2009-01-21 Bingfeng Mei <bmei@broadcom.com>
9084 * alias.c (walk_mems_1, walk_mems_2, insn_alias_sets_conflict_p):
9085 Check whether two instructions have memory references that
9086 belong to conflicting alias sets. walk_mems_1 and walk_mems_2
9087 are helper functions for traversing.
9088 * alias.h (insn_alias_sets_confilict_p): New prototypes.
9089 * ddg.c (add_inter_loop_mem_dep): Call insn_alias_sets_conflict_p
9090 not to draw dependency edge for instructions with non-conflicting
9093 2009-01-20 Joseph Myers <joseph@codesourcery.com>
9096 * longlong.h: Update copyright years. Use soft-fp license notice.
9097 Sync __clz_tab declaration with glibc.
9099 2009-01-20 Steve Ellcey <sje@cup.hp.com>
9102 * doc/extend.texi (syscall_linkage): New.
9103 (version_id): Modify.
9105 2009-01-20 Andrew Pinski <andrew_pinski@playstation.sony.com>
9106 Richard Guenther <rguenther@suse.de>
9108 PR tree-optimization/38747
9109 PR tree-optimization/38748
9110 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Disable the VCE
9111 conversion if the base address is an indirect reference and the
9112 aliasing sets could cause issues.
9114 2009-01-20 Sebastian Pop <sebastian.pop@amd.com>
9116 * common.opt (fgraphite, fgraphite-identity): Add comment for
9117 explaining why these options are not documented.
9119 2009-01-20 Sebastian Pop <sebastian.pop@amd.com>
9121 * graphite.c (stmt_simple_for_scop_p): Also handle cases when
9122 gimple_call_lhs is NULL.
9124 2009-01-20 Paolo Bonzini <bonzini@gnu.org>
9127 * emit-rtl.c (adjust_address_1): Make sure memref is never
9130 2009-01-20 Ben Elliston <bje@au.ibm.com>
9132 * libgcov.c (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
9133 const qualifier from arg parameter. Remove unnecessary cast to char *.
9134 * gcov-io.h (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
9135 const qualifier from arg 2.
9137 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
9139 * config/darwin.h: Add static-libgfortran to LINK_SPEC.
9141 2009-01-19 Vladimir Makarov <vmakarov@redhat.com>
9144 * rtl.h (reinit_regs): New prototype.
9145 * regclass.c: Include ira.h.
9147 * Makefile.in (regclass.o): Add ira.h.
9148 * config/i386/i386.c (ix86_maybe_switch_abi): Use reinit_regs.
9150 2009-01-18 H.J. Lu <hongjiu.lu@intel.com>
9153 * c-common.c (handle_aligned_attribute): Use
9154 ATTRIBUTE_ALIGNED_VALUE instead of BIGGEST_ALIGNMENT for
9155 default alignment value.
9157 * c-cppbuiltin.c (c_cpp_builtins): Define __BIGGEST_ALIGNMENT__.
9159 * defaults.h (ATTRIBUTE_ALIGNED_VALUE): New.
9160 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Likewise.
9162 * doc/extend.texi: Update __attribute__ ((aligned)). Document
9163 __BIGGEST_ALIGNMENT__.
9165 * doc/tm.texi: Document ATTRIBUTE_ALIGNED_VALUE.
9167 2009-01-18 Richard Guenther <rguenther@suse.de>
9169 PR tree-optimization/38819
9170 * tree-flow.h (operation_could_trap_helper_p): Declare.
9171 * tree-eh.c (operation_could_trap_helper_p): Export.
9172 * tree-ssa-sccvn.h (vn_nary_may_trap): Declare.
9173 * tree-ssa-sccvn.c (vn_nary_may_trap): New function.
9174 * tree-ssa-pre.c (insert_into_preds_of_block): Check if we
9175 are about to insert a possibly trapping instruction and fail
9178 2009-01-18 Andreas Schwab <schwab@suse.de>
9180 * doc/install.texi (Configuration): Remove obsolete paragraph
9181 about use of --with-gnu-ld with --with-gnu-as.
9183 2009-01-18 Kazu Hirata <kazu@codesourcery.com>
9185 * doc/extend.texi, doc/gimple.texi, doc/invoke.texi,
9186 doc/md.texi, doc/sourcebuild.texi, doc/tm.texi: Fix typos.
9187 Follow spelling conventions.
9189 2009-01-18 Ben Elliston <bje@au.ibm.com>
9191 * bitmap.c (bitmap_obstack_alloc_stat): Adjust cast to eliminate
9192 C++ warning about implicit conversion from void * to struct
9194 (bitmap_obstack_free): Likewise for bitmap_element *.
9195 * Makefile.in (bitmap.o-warn): Remove.
9197 2009-01-17 Dave Korn <dave.korn.cygwin@gmail.com>
9199 * Makefile.in (BACKENDLIBS): Reorder to match dependencies.
9201 2009-01-17 Sebastian Pop <sebastian.pop@amd.com>
9202 Tobias Grosser <tobi.grosser@amd.com>
9204 * graphite.c (graphite_trans_scop_block): Do not block single
9207 2009-01-16 Alexandre Oliva <aoliva@redhat.com>
9209 * ebitmap.h (ebitmap_iter_init): Initialize all fields.
9210 * ipa-struct-reorg.c (gen_struct_type): Replace known-true
9211 test with assertion.
9213 2009-01-16 Richard Guenther <rguenther@suse.de>
9215 PR tree-optimization/38835
9217 * fold-const.c (fold_binary): Remove PTR + INT -> (INT)(PTR p+ INT)
9218 and INT + PTR -> (INT)(PTR p+ INT) folding.
9219 * tree-ssa-address.c (create_mem_ref): Properly use POINTER_PLUS_EXPR.
9221 2009-01-16 Adam Nemet <anemet@caviumnetworks.com>
9224 * expmed.c (expand_shift): With SHIFT_COUNT_TRUNCATED, don't lift
9225 the subreg from a lowpart subreg if it is also casting the value.
9227 2009-01-16 Sebastian Pop <sebastian.pop@amd.com>
9228 Tobias Grosser <tobi.grosser@amd.com>
9230 * graphite.c (compare_prefix_loops): New.
9231 (build_scop_canonical_schedules): Rewritten.
9232 (graphite_transform_loops): Move build_scop_canonical_schedules
9233 after build_scop_iteration_domain.
9235 2009-01-16 Sebastian Pop <sebastian.pop@amd.com>
9236 Tobias Grosser <tobi.grosser@amd.com>
9238 * graphite.c (add_conditions_to_domain): Add the loops to
9239 the dimension of the iteration domain. Do copy the domain
9240 only when it exists.
9241 (build_scop_conditions_1): Do not call add_conditions_to_domain.
9242 (add_conditions_to_constraints): New.
9243 (can_generate_code_stmt, can_generate_code): Removed.
9244 (gloog): Do not call can_generate_code.
9245 (graphite_transform_loops): Call add_conditions_to_constraints
9246 after building the iteration domain.
9248 2009-01-16 Jakub Jelinek <jakub@redhat.com>
9250 PR tree-optimization/38789
9251 * tree-ssa-threadedge.c
9252 (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
9253 __builtin_constant_p.
9255 2009-01-16 Kenneth Zadeck <zadeck@naturalbridge.com>
9257 * dce.c (delete_unmarked_insns): Reversed the order that insns are
9258 examined before deleting them.
9260 2009-01-16 Richard Earnshaw <rearnsha@arm.com>
9262 * function.c (aggregate_value_p): Correctly extract the function
9263 type from CALL_EXPR_FN lookup.
9265 2009-01-16 Hariharan Sandanagobalane <hariharan@picochip.com>
9267 * config/picochip/picochip.c (picochip_override_options): Revert
9268 CFI asm flag disable commited previously.
9270 2009-01-15 Sebastian Pop <sebastian.pop@amd.com>
9271 Tobias Grosser <tobi.grosser@amd.com>
9272 Jan Sjodin <jan.sjodin@amd.com>
9274 * graphite.c (scan_tree_for_params): On substractions negate
9275 all the coefficients of the term.
9276 (clast_to_gcc_expression_red): New. Handle reduction expressions
9277 of more than two operands.
9278 (clast_to_gcc_expression): Call clast_to_gcc_expression_red.
9279 (get_vdef_before_scop): Handle also the case of default definitions.
9281 2009-01-15 Richard Sandiford <rdsandiford@googlemail.com>
9283 * caller-save.c (add_used_regs_1, add_used_regs): New functions.
9284 (insert_one_insn): Use them instead of REG_DEAD and REG_INC notes.
9285 Also use them when walking CALL_INSN_FUNCTION_USAGE.
9287 2009-01-15 H.J. Lu <hongjiu.lu@intel.com>
9288 Joey Ye <joey.ye@intel.com>
9291 * cfgexpand.c (expand_stack_alignment): Don't update stack
9292 boundary nor check incoming stack boundary here.
9293 (gimple_expand_cfg): Update stack boundary and check incoming
9294 stack boundary here.
9296 2009-01-15 Kenneth Zadeck <zadeck@naturalbridge.com>
9298 * dce.c (find_call_stack_args, delete_unmarked_insns): Fixed comments.
9300 2009-01-14 Jakub Jelinek <jakub@redhat.com>
9302 PR rtl-optimization/38245
9303 * calls.c (expand_call): Add stack arguments to
9304 CALL_INSN_FUNCTION_USAGE even for pure calls (when
9305 ACCUMULATE_OUTGOING_ARGS) and even for args partially passed
9306 in regs and partially in memory or BLKmode arguments.
9307 (emit_library_call_value_1): Add stack arguments to
9308 CALL_INSN_FUNCTION_USAGE even for pure calls (when
9309 ACCUMULATE_OUTGOING_ARGS).
9310 * dce.c: Include tm_p.h.
9311 (find_call_stack_args): New function.
9312 (deletable_insn_p): Call it for CALL_P insns. Add ARG_STORES
9314 (mark_insn): Call find_call_stack_args for CALL_Ps.
9315 (prescan_insns_for_dce): Walk insns backwards in bb rather than
9316 forwards. Allocate and free arg_stores bitmap if needed, pass it
9317 down to deletable_insn_p, don't mark stores set in arg_stores
9318 bitmap, clear the bitmap at the beginning of each bb.
9319 * Makefile.in (dce.o): Depend on $(TM_P_H).
9321 2009-01-14 Michael Meissner <gnu@the-meissners.org>
9324 * config/i386/i386.c (print_operand): Add tests for 'D', 'C', 'F', 'f'
9325 to make sure the insn is a conditional test (bug 22599). Reformat a
9328 2009-01-14 Sebastian Pop <sebastian.pop@amd.com>
9331 * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New.
9332 (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi.
9333 (gloog): Do not call cleanup_tree_cfg.
9334 (graphite_transform_loops): Call cleanup_tree_cfg after all
9335 scops have been code generated.
9337 2009-01-14 Basile Starynkevitch <basile@starynkevitch.net>
9338 * doc/gty.texi (Invoking the garbage collector): Added new node
9339 and section documenting ggc_collect.
9341 2009-01-14 Richard Guenther <rguenther@suse.de>
9343 PR tree-optimization/38826
9345 * tree-ssa-structalias.c (emit_alias_warning): Emit the pointer
9346 initialization notes only if we actually emitted a warning.
9347 (intra_create_variable_infos): Add constraints for a result decl
9348 that is passed by hidden reference.
9349 (build_pred_graph): Mark all related variables non-direct on
9352 2009-01-14 Nick Clifton <nickc@redhat.com>
9354 * ira-conflicts.c: Include addresses.h for the definition of
9356 (ira_build_conflicts): Use base_reg_class instead of BASE_REG_CLASS.
9357 * Makefile.in: Add a dependency of ira-conflicts.o on addresses.h.
9359 2009-01-13 Vladimir Makarov <vmakarov@redhat.com>
9362 * Makefile.in (ira-lives.o): Add except.h.
9364 * ira-lives.c: Include except.h.
9365 (process_bb_node_lives): Process can_throw_internal.
9367 2009-01-13 Jakub Jelinek <jakub@redhat.com>
9369 PR rtl-optimization/38774
9370 * combine.c (simplify_set): When undoing cc_use change, don't do
9371 PUT_CODE on the newly created comparison, but instead put back the
9374 2009-01-13 Joseph Myers <joseph@codesourcery.com>
9376 * doc/invoke.texi (ARM Options): Update lists of -mcpu and -march
9377 values. Remove duplicate arm8 entry.
9379 2009-01-13 Sebastian Pop <sebastian.pop@amd.com>
9381 PR tree-optimization/38786
9382 * graphite.c (expand_scalar_variables_ssa_name): New, outlined from
9383 the SSA_NAME case of expand_scalar_variables_expr.
9384 Set the type of an expression to the type of its assign statement.
9385 (expand_scalar_variables_expr): Also gather the scalar computation
9386 used to index the memory access. Do not pass loop_p.
9387 Fix comment. Stop recursion on tcc_constant or tcc_declaration.
9388 (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
9389 the gimple_stmt_iterator where it inserts new code.
9391 (copy_bb_and_scalar_dependences): Do not pass loop_p.
9392 (translate_clast): Update call to copy_bb_and_scalar_dependences.
9394 2009-01-13 Sebastian Pop <sebastian.pop@amd.com>
9396 * graphite.h (debug_value): Removed.
9397 * graphite.c (debug_value): Removed.
9399 2009-01-13 Richard Earnshaw <rearnsha@arm.com>
9401 * config/arm/arm.c (output_move_double): Don't synthesize thumb-2
9402 ldrd/strd with two 32-bit instructions.
9404 2009-01-13 Richard Earnshaw <rearnsha@arm.com>
9406 * config/arm/arm.c (struct processors): Pass for speed down into
9407 cost helper functions.
9408 (const_ok_for_op): Handle COMPARE and inequality nodes.
9409 (arm_rtx_costs_1): Rewrite.
9410 (arm_size_rtx_costs): Update prototype.
9411 (arm_rtx_costs): Pass speed down to helper functions.
9412 (arm_slowmul_rtx_costs): Rework cost calculations.
9413 (arm_fastmul_rtx_costs, arm_xscale_rtx_costs): Likewise.
9414 (arm_9e_rtx_costs): Likewise.
9416 2009-01-13 Uros Bizjak <ubizjak@gmail.com>
9418 * config/alpha/alpha.c (alpha_legitimate_address_p): Explicit
9419 relocations of local symbols wider than UNITS_PER_WORD are not valid.
9420 (alpha_legitimize_address): Do not split local symbols wider than
9421 UNITS_PER_WORD into HIGH/LO_SUM parts.
9423 2009-01-13 Danny Smith <dannysmith@users.sourceforge.net>
9426 * gcc.c (process_command): Replace call to execvp with calls
9427 to pex_one and exit.
9429 2009-01-03 Anatoly Sokolov <aesok@post.ru>
9432 * config/avr/t-avr (LIB1ASMFUNCS): Add _tablejump_elpm.
9433 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Add
9434 variant for devices with 3-byte PC.
9435 (__tablejump_elpm__): New.
9437 2009-01-12 Jakub Jelinek <jakub@redhat.com>
9440 * c-parser.c (c_parser_postfix_expression): Allow `->' in
9441 offsetof member-designator, handle it as `[0].'.
9443 2009-01-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9445 * pa.c (pa_asm_output_mi_thunk): Use pc-relative branch to thunk
9446 function when not using named sections on targets with named sections
9447 if branch distance is less than 262132.
9449 2009-01-12 Richard Earnshaw <rearnsha@arm.com>
9451 * combine.c (combine_instructions): Recompute
9452 optimize_this_for_speed_p for each BB in the main combine loop.
9454 2009-01-12 Tomas Bily <tbily@suse.cz>
9457 * tree-loop-distribution.c (prop_phis): New function.
9458 (generate_builtin): Call prop_phis.
9459 * testsuite/gcc.dg/tree-ssa/pr38385.c: New file.
9461 2009-01-12 Jakub Jelinek <jakub@redhat.com>
9463 PR tree-optimization/38807
9464 * tree-ssa-reassoc.c (remove_visited_stmt_chain): Don't look at
9465 gimple_visited_p unless stmt is GIMPLE_ASSIGN.
9467 2009-01-11 Adam Nemet <anemet@caviumnetworks.com>
9469 * expmed.c (store_bit_field_1): Properly truncate the paradoxical
9470 subreg of op0 to the original op0.
9472 2009-01-11 Laurent GUERBY <laurent@guerby.net>
9474 * doc/sourcebuild.texi (Source Tree): Move up intl and fixinc.
9476 2009-01-11 Markus Schoepflin <markus.schoepflin@comsoft.de>
9479 * mips-tfile.c (parse_def): Fix parsing of def strings
9480 starting with digits.
9482 2009-01-10 Jakub Jelinek <jakub@redhat.com>
9485 * config/arm/arm.c (arm_is_long_call_p): Don't call
9486 arm_function_in_section_p if decl isn't a FUNCTION_DECL.
9488 2009-01-09 Steven Bosscher <steven@gcc.gnu.org>
9490 * regrename.c (regrename_optimize): Fix dumping.
9491 (find_oldest_value_reg): Preserve REG_POINTER.
9492 (copy_hardreg_forward_1): Likewise.
9494 2009-01-09 Diego Novillo <dnovillo@google.com>
9496 * gimple.h (struct gimple_statement_base) <uid>: Document
9497 the restrictions on its use.
9499 (gimple_set_uid): Tidy.
9501 2009-01-09 Jakub Jelinek <jakub@redhat.com>
9503 * config/i386/i386.c (ix86_expand_movmem, ix86_expand_setmem): Add
9504 zero guard even if align_bytes != 0 and count is smaller than
9507 2009-01-09 Vladimir Makarov <vmakarov@redhat.com>
9509 PR rtl-optimization/38495
9510 * ira-emit.c (print_move_list, ira_debug_move_list): New functions.
9511 (add_range_and_copies_from_move_list): Print all added ranges.
9512 Add ranges to memory optimized destination.
9514 2009-01-09 Jakub Jelinek <jakub@redhat.com>
9518 * config/i386/i386.c (override_options): Reject
9519 -mstringop-strategy=rep_8byte with -m32.
9520 (ix86_expand_movmem): For size_needed == 1 set epilogue_size_needed
9521 to 1. Do count comparison against epilogue_size_needed at compile
9522 time even when count_exp was constant forced into register. For
9523 size_needed don't jump to epilogue, instead just avoid aligning
9524 and invoke the body algorithm. If need_zero_guard, add zero guard
9525 even if count is non-zero, but smaller than size_needed + number of
9526 bytes that could be stored for alignment.
9527 (ix86_expand_setmem): For size_needed == 1 set epilogue_size_needed
9528 to 1. If need_zero_guard, add zero guard even if count is non-zero,
9529 but smaller than size_needed + number of bytes that could be stored
9530 for alignment. Compare size_needed with epilogue_size_needed instead
9531 of desired_align - align, don't adjust size_needed, pass
9532 epilogue_size_needed to the epilogue expanders.
9535 * c-pretty-print.c (pp_c_expression): Handle GOTO_EXPR like BIND_EXPR.
9537 2009-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9539 * pa.c (last_address): Change to unsigned.
9540 (update_total_code_bytes): Change argument to unsigned. Don't
9541 check if insn addresses are set.
9542 (pa_output_function_epilogue): Set last_address to UINT_MAX if insn
9543 addresses are not set.
9544 (pa_asm_output_mi_thunk): Handle wrap when updating last_address.
9546 2009-01-09 Nick Clifton <nickc@redhat.com>
9548 * config/sh/symbian.c: Replace uses of DECL_INLINE with
9549 DECL_DECLARED_INLINE_P.
9551 2009-01-09 Jakub Jelinek <jakub@redhat.com>
9554 * dojump.c (do_jump_by_parts_zero_rtx): Use mode instead of
9555 GET_MODE (op0) in operand_subword_force calls.
9558 * fold-const.c (fold_unary): For COMPOUND_EXPR and COND_EXPR,
9559 fold_convert arg0 operands to TREE_TYPE (op0) first.
9561 2009-01-08 Vladimir Makarov <vmakarov@redhat.com>
9563 * params.def (ira-max-conflict-table-size): Decrease default value
9566 2009-01-08 Jakub Jelinek <jakub@redhat.com>
9568 PR tree-optimization/37031
9569 * lambda-code.c (lambda_collect_parameters): Call pointer_set_destroy
9571 (build_access_matrix): Reserve correct size for AM_MATRIX vector,
9572 allocate it using gc instead of heap, use VEC_quick_push instead of
9574 * graphite.c (build_access_matrix): Allocate AM_MATRIX vector using gc
9575 instead of heap, use VEC_quick_push instead of VEC_safe_push.
9576 * tree-data-ref.h (struct access_matrix): Change matrix to gc
9577 allocated vector from heap allocated.
9578 * lambda.h: Add DEF_VEC_ALLOC_P for gc allocated lambda_vector.
9579 * tree-loop-linear.c (linear_transform_loops): Allocate nest
9580 vector only after perfect_loop_nest_depth call.
9582 2009-01-08 Sebastian Pop <sebastian.pop@amd.com>
9583 Jan Sjodin <jan.sjodin@amd.com>
9585 PR tree-optimization/38559
9586 * graphite.c (debug_value, copy_constraint,
9587 swap_constraint_variables, scale_constraint_variable, ): New.
9588 (get_lower_bound, get_upper_bound): Removed.
9589 (graphite_trans_bb_strip_mine): Clean up this code that works
9590 only for constant number of iterations. Fully copy upper and
9591 lower bound constraints, not only the constant part of them.
9592 * graphite.h (debug_value): Declared.
9594 2009-01-08 Ira Rosen <irar@il.ibm.com>
9596 PR tree-optimization/37194
9597 * tree-vect-transform.c (vect_estimate_min_profitable_iters):
9598 Don't add the cost of cost model guard in prologue to scalar
9599 outside cost in case of known number of iterations.
9601 2009-01-07 Nathan Froyd <froydnj@codesourcery.com>
9602 Alan Modra <amodra@bigpond.net.au>
9604 * config/rs6000/rs6000.c (rs6000_legitimize_address): Check for
9605 non-word-aligned REG+CONST addressing.
9607 2009-01-07 Uros Bizjak <ubizjak@gmail.com>
9610 * config/alpha/alpha.c (alpha_end_function): For TARGET_ABI_OSF, call
9611 free_after_compilation when outputting a thunk.
9612 (alpha_output_mi_thunk_osf): Assert that we are processing a thunk.
9613 Do not call free_after_compilation here.
9615 2009-01-07 Uros Bizjak <ubizjak@gmail.com>
9617 * config/i386/i386.c (ix86_target_string): Use ARRAY_SIZE.
9618 (ix86_valid_target_attribute_inner_p): Ditto.
9620 2009-01-07 Jan Sjodin <jan.sjodin@amd.com>
9622 PR tree-optimization/38492
9623 PR tree-optimization/38498
9624 * tree-check.c (operator_is_linear, scev_is_linear_expression): New.
9625 * tree-chrec.h (scev_is_linear_expression): Declared.
9626 * graphite.c (graphite_cannot_represent_loop_niter): New.
9627 (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter.
9628 (graphite_loop_normal_form): Use gcc_assert.
9629 (scan_tree_for_params): Use CASE_CONVERT.
9630 (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New.
9631 (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes.
9632 Use gcc_assert. Discard scops that contain unhandled cases.
9633 (build_scop_conditions): Return a boolean status for unhandled cases.
9634 (strip_mine_profitable_p): Print the loop number, not its depth.
9635 (is_interchange_valid): Pass the depth of the loop nest, don't
9636 recompute it wrongly.
9637 (graphite_trans_bb_block): Same.
9638 (graphite_trans_bb_block): Print tentative of loop blocking.
9639 (graphite_trans_scop_block): Do not print that the loop has been
9641 (graphite_transform_loops): Do not handle scops that contain condition
9644 2009-01-07 H.J. Lu <hongjiu.lu@intel.com>
9646 AVX Programming Reference (December, 2008)
9647 * config/i386/avxintrin.h (_mm256_stream_si256): New.
9648 (_mm256_stream_pd): Likewise.
9649 (_mm256_stream_ps): Likewise.
9651 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVNTDQ256,
9652 IX86_BUILTIN_MOVNTPD256 and IX86_BUILTIN_MOVNTPS256.
9653 (ix86_special_builtin_type): Add VOID_FTYPE_PV4DI_V4DI.
9654 (bdesc_special_args): Add __builtin_ia32_movntdq256,
9655 __builtin_ia32_movntpd256 and __builtin_ia32_movntps256.
9656 (ix86_init_mmx_sse_builtins): Handle VOID_FTYPE_PV4DI_V4DI.
9657 (ix86_expand_special_args_builtin): Likewise.
9659 * config/i386/sse.md (AVXMODEDI): New.
9660 (avx_movnt<mode>): Likewise.
9661 (avx_movnt<mode>): Likewise.
9662 (<sse>_movnt<mode>): Remove AVX support.
9663 (sse2_movntv2di): Likewise.
9665 2009-01-07 Richard Guenther <rguenther@suse.de>
9668 * fold-const.c (extract_muldiv): Remove obsolete comment.
9669 (fold_plusminus_mult_expr): Undo MINUS_EXPR
9670 to PLUS_EXPR canonicalization for the canonicalization.
9672 2009-01-07 Gerald Pfeifer <gerald@pfeifer.com>
9674 * doc/install.texi (alpha*-dec-osf*): Remove note on 32-bit
9675 hosted cross-compilers generating less efficient code.
9677 2009-01-06 Richard Sandiford <rdsandiford@googlemail.com>
9679 * function.h (rtl_data): Add a dbr_scheduled_p field.
9680 * reorg.c (dbr_schedule): Set it.
9681 (gate_handle_delay_slots): Check it.
9682 * config/mips/mips.c (mips_base_delayed_branch): Delete.
9683 (mips_reorg): Check flag_delayed_branch instead of
9684 mips_base_delayed_branch.
9685 (mips_override_options): Don't set mips_base_delayed_branch
9686 or flag_delayed_branch.
9688 2009-01-06 Richard Sandiford <rdsandiford@googlemail.com>
9690 PR rtl-optimization/38426.
9691 * ira.c (ira): Set current_function_is_leaf earlier.
9693 2009-01-06 Jakub Jelinek <jakub@redhat.com>
9695 PR rtl-optimization/38722
9696 * combine.c (try_combine): Don't modify PATTERN (i3) and notes
9697 too early, only set a flag and modify after last possible
9700 2009-01-06 Janis Johnson <janis187@us.ibm.com>
9703 * ginclude/float.h: Rename DECnn_DEN to DECnn_SUBNORMAL_MIN.
9704 * real.c (decimal_single_format): Correct values of emin and emax.
9705 (decimal_double_format): Ditto.
9706 (decimal_quad_format): Ditto.
9707 * c-cppbuiltin.c (builtin_define_decimal_float_constants): Adjust
9708 computation of DECnn_MIN and DECnn_MAX for corrected values of
9709 emin and emax. Define __DECnn_SUBNORMAL_MIN__ instead of
9710 __DECnn_MIN__, and adjust its computation for the corrected value
9713 2009-01-06 Jan Hubicka <jh@suse.cz>
9716 * config/i386/i386.c (ix86_expand_call): Use ARRAY_SIZE.
9718 2009-01-06 Gerald Pfeifer <gerald@pfeifer.com>
9720 * doc/contrib.texi (Contributors): Slightly adjust the end note.
9721 Add Robert Clark to the list of testers.
9723 2009-01-06 Jan Hubicka <jh@suse.cz>
9724 Kai Tietz <kai.tietz@onevision.com>
9726 * config/i386/i386.md (*msabi_syvabi): Add SSE regs clobbers.
9727 * config/i386/i386.c (ix86_expand_call): Add clobbers.
9729 2009-01-06 Jan Hubicka <jh@suse.cz>
9730 Kai Tietz <kai.tietz@onevision.com>
9732 * config/i386/i386.h (CONDITIONAL_CALL_USAGE): SSE regs are not used
9734 * config/i386/i386.c (struct ix86_frame): Add padding0 and nsseregs.
9735 (ix86_nsaved_regs): Count only general purpose regs.
9736 (ix86_nsaved_sseregs): New.
9737 (ix86_compute_frame_layout): Update nsseregs; set preferred alignment
9738 to 16 for w64; compute padding and size of sse reg save area.
9739 (ix86_emit_save_regs, ix86_emit_save_regs_using_mov): Save only
9740 general purpose regs.
9741 (ix86_emit_save_sse_regs_using_mov): New.
9742 (ix86_expand_prologue): Save SSE regs if needed.
9743 (ix86_emit_restore_regs_using_mov): Use only general purpose regs.
9744 (ix86_emit_restore_sse_regs_using_mov): New.
9745 (ix86_expand_epilogue): Save SSE regs if needed.
9747 2009-01-06 Jan Hubicka <jh@suse.cz>
9748 Kai Tietz <kai.tietz@onevision.com>
9750 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Enable for MSABI
9751 * config/i386/i386.c (init_cumulative_args): Disallow calls of MSABI
9752 functions when accumulate outgoing args is off.
9754 2009-01-06 H.J. Lu <hongjiu.lu@intel.com>
9757 * ira-color.c (ira_reuse_stack_slot): Check ENABLE_IRA_CHECKING
9758 before using pseudos_have_intersected_live_ranges_p.
9760 * ira-int.h (ira_assert): Always define.
9762 2009-01-06 H.J. Lu <hongjiu.lu@intel.com>
9764 AVX Programming Reference (December, 2008)
9765 * config/i386/avxintrin.h (_mm_permute2_pd): Removed.
9766 (_mm256_permute2_pd): Likewise.
9767 (_mm_permute2_ps): Likewise.
9768 (_mm256_permute2_ps): Likewise.
9769 * config/i386/i386.md (UNSPEC_VPERMIL2): Likewise.
9770 * config/i386/sse.md (avx_vpermil2<mode>3): Likewise.
9772 * config/i386/i386.c (ix86_builtins): Remove
9773 IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
9774 IX86_BUILTIN_VPERMIL2PD256 and IX86_BUILTIN_VPERMIL2PS256.
9775 (ix86_builtin_type): Remove V8SF_FTYPE_V8SF_V8SF_V8SI_INT,
9776 V4DF_FTYPE_V4DF_V4DF_V4DI_INT, V4SF_FTYPE_V4SF_V4SF_V4SI_INT
9777 and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
9778 (bdesc_args): Remove __builtin_ia32_vpermil2pd,
9779 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256 and
9780 __builtin_ia32_vpermil2ps256.
9781 (ix86_init_mmx_sse_builtins): Updated.
9782 (ix86_expand_args_builtin): Likewise.
9784 2009-01-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9786 * pa.c (output_call): Relocate non-jump insns in the delay slot of
9787 long absolute calls when generating PA 2.0 code.
9789 2009-01-05 Vladimir Makarov <vmakarov@redhat.com>
9791 PR rtl-optimization/38583
9792 * params.h (IRA_MAX_CONFLICT_TABLE_SIZE): New macro.
9794 * params.def (ira-max-conflict-table-size): New.
9796 * doc/invoke.texi (ira-max-conflict-table-size): Decribe.
9798 * ira.h (ira_conflicts_p): New external definition.
9800 * ira-conflicts.c (build_conflict_bit_table): Do not build too big
9801 table. Report this. Return result of building.
9802 (ira_build_conflicts): Use ira_conflicts_p. Check result of
9803 building conflict table.
9805 * ira-color.c (fast_allocation): Use num instead of ira_allocnos_num.
9806 (ira_color): Use ira_conflicts_p.
9808 * global.c: Include ira.h.
9809 (pseudo_for_reload_consideration_p, build_insn_chain): Use
9812 * Makefile.in (global.o): Add ira.h.
9814 * ira-build.c (mark_all_loops_for_removal,
9815 propagate_some_info_from_allocno): New.
9816 (remove_unnecessary_allocnos): Call
9817 propagate_some_info_from_allocno.
9818 (remove_low_level_allocnos): New.
9819 (remove_unnecessary_regions): Add parameter. Call
9820 mark_all_loops_for_removal and remove_low_level_allocnos. Pass
9821 parameter to remove_unnecessary_regions.
9822 (ira_build): Remove all regions but root if the conflict table was
9823 not built. Update conflict hard regs for allocnos crossing calls.
9825 * ira.c (ira_conflicts_p): New global.
9826 (ira): Define and use ira_conflicts_p.
9828 * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
9829 count_spilled_pseudo, find_reg, alter_reg, finish_spills,
9830 emit_input_reload_insns, delete_output_reload): Use ira_conflicts_p.
9832 2009-01-06 Ben Elliston <bje@au.ibm.com>
9834 * gengtype-lex.l (YY_NO_INPUT): Define.
9836 2009-01-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
9839 * c-common.c (handle_vector_size_attribute): Also reject
9842 2009-01-05 Sebastian Pop <sebastian.pop@amd.com>
9844 PR tree-optimization/38492
9845 * graphite.c (rename_map_elt, debug_rename_elt,
9846 debug_rename_map_1, debug_rename_map, new_rename_map_elt,
9847 rename_map_elt_info, eq_rename_map_elts,
9848 get_new_name_from_old_name, bb_in_sese_p): Moved around.
9849 (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use.
9850 (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb.
9851 (sese_build_livein_liveouts): New.
9852 (new_sese, free_sese): New.
9853 (new_scop): Call new_sese.
9854 (free_scop): Call free_sese.
9855 (rename_variables_from_edge, rename_phis_end_scop): Removed.
9856 (register_old_new_names): Renamed register_old_and_new_names.
9857 (register_scop_liveout_renames, add_loop_exit_phis,
9858 insert_loop_close_phis, struct igp,
9859 default_liveout_before_guard, add_guard_exit_phis,
9860 insert_guard_phis, copy_renames): New.
9861 (translate_clast): Call insert_loop_close_phis and insert_guard_phis.
9862 (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge.
9863 (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts.
9864 (scop_adjust_phis_for_liveouts): New.
9865 (gloog): Call scop_adjust_phis_for_liveouts.
9867 * graphite.h (struct sese): Documented. Added fields liveout,
9869 (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New.
9870 (new_sese, free_sese, sese_build_livein_liveouts): Declared.
9871 (struct scop): Added field liveout_renames.
9872 (SCOP_LIVEOUT_RENAMES): New.
9874 2009-01-05 Harsha Jagasia <harsha.jagasia@amd.com>
9876 PR tree-optimization/38510
9877 * graphite.c (recompute_all_dominators): Call mark_irreducible_loops.
9878 (translate_clast): Call recompute_all_dominators before
9880 (gloog): Call recompute_all_dominators before graphite_verify.
9882 2009-01-05 Harsha Jagasia <harsha.jagasia@amd.com>
9883 Jan Sjodin <jan.sjodin@amd.com>
9885 PR tree-optimization/38500
9886 * graphite.c (create_sese_edges): Call fix_loop_structure after
9889 2009-01-05 Joel Sherrill <joel.sherrill@oarcorp.com>
9891 * config.gcc: Add m32r*-*-rtems*.
9892 * config/m32r/rtems.h: New file.
9894 2009-01-05 Ben Elliston <bje@au.ibm.com>
9896 * Makefile.in (.po.gmo): Use mkinstalldirs, not test -d || mkdir.
9897 (.po.pox): Likewise.
9898 (po/gcc.pot): Likewise.
9900 2009-01-04 David S. Miller <davem@davemloft.net>
9902 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED_RTX): Delete.
9903 (STARTING_FRAME_OFFSET): Always set to zero.
9905 2009-01-04 Richard Sandiford <rdsandiford@googlemail.com>
9907 * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Add commentary.
9908 * tree-cfg.c (verify_gimple_assign_binary): Allow shifts of
9909 fixed-point types, and vectors of the same.
9911 2009-01-04 Richard Sandiford <rdsandiford@googlemail.com>
9913 * config/mips/sync.md (*mb_barrier): Rename to...
9914 (*memory_barrier): ...this.
9916 2009-01-04 Jonathan Wakely <jwakely.gcc@gmail.com>
9918 * doc/extend.texi (Function Attributes): Move @cindex after @item
9919 for 'artificial' and 'flatten'. Fix grammar for 'externally_visible'
9920 and put in alphabetical order. Fix 'target' name and put in order.
9921 * doc/invoke.texi (-Wstrict-null-sentinel, -fipa-matrix-reorg): Fix
9924 2009-01-04 Uros Bizjak <ubizjak@gmail.com>
9926 * config/s390/s390.md (UNSPEC_MB): Rename from UNSPECV_MB.
9927 (memory_barrier): Expand as unspec instead of unspec_volatile.
9928 Remove mem:BLK from insn operands. Use Pmode scratch register.
9929 (*memory_barrier): Define as unspec instead of unspec_volatile.
9930 Use (match_dup 0) as input operand.
9932 * config/sparc/sparc.md (UNSPEC_MEMBAR): Rename from UNSPECV_MEMBAR.
9933 * config/sparc/sync.md (memory_barrier): Expand as unspec instead of
9934 unspec_volatile. Remove mem:BLK from insn operands. Use Pmode
9935 scratch register. Remove operand 1.
9936 (*stbar): Define as unspec instead of unspec_volatile.
9937 Use (match_dup 0) as input operand, remove (const_int 8).
9938 (*membar): Define as unspec instead of unspec_volatile.
9939 Use (match_dup 0) as input operand, remove input operand 2.
9941 * config/xtensa/xtensa.md (UNSPEC_MEMW): Rename from UNSPECV_MEMW.
9942 (memory_barrier): Expand as unspec instead of unspec_volatile.
9943 Remove mem:BLK from insn operands. Use Pmode scratch register.
9944 (*memory_barrier): Define as unspec instead of unspec_volatile.
9945 Use (match_dup 0) as input operand.
9947 * config/ia64/sync.md (memory_barrier): Redefine as expander pattern.
9948 Remove mem:BLK from insn operands. Use Pmode scratch register.
9949 Set volatile flag on operand 0.
9950 (*memory_barrier): New insn pattern.
9952 * config/rs6000/sync.md (memory_barrier): Remove mem:BLK from
9954 (*memory_barrier): Use (match_dup 0) as input operand.
9956 * config/mips/sync.md (memory_barrier): Redefine as expander pattern.
9957 Remove mem:BLK from insn operands. Use Pmode scratch register.
9958 Set volatile flag on operand 0.
9959 (*mb_internal): New insn pattern.
9961 * config/alpha/sync.md (*memory_barrier): Rename from *mb_internal.
9963 2009-01-04 Steven Bosscher <steven@gcc.gnu.org>
9966 * function.c (struct temp_slot): Move to the section of the file
9967 that deals with temp slots. Remove field 'address'.
9968 (temp_slot_address_table): New hash table of address -> temp slot.
9969 (struct temp_slot_address_entry): New struct, items for the table.
9970 (temp_slot_address_compute_hash, temp_slot_address_hash,
9971 temp_slot_address_eq, insert_temp_slot_address): Support functions
9973 (find_temp_slot_from_address): Rewrite to use the new hash table.
9974 (remove_unused_temp_slot_addresses): Remove addresses of temp
9975 slots that have been made available.
9976 (remove_unused_temp_slot_addresses_1): Call-back for htab_traverse,
9977 worker function for remove_unused_temp_slot_addresses.
9978 (assign_stack_temp_for_type): Don't clear the temp slot address list.
9979 Add the temp slot address to the address -> temp slot map.
9980 (update_temp_slot_address): Update via insert_temp_slot_address.
9981 (free_temp_slots): Call remove_unused_temp_slot_addresses.
9982 (pop_temp_slots): Likewise.
9983 (init_temp_slots): Allocate the address -> temp slot map, or empty
9984 the map if it is already allocated.
9985 (prepare_function_start): Initialize temp slot processing.
9987 2009-01-04 Steven Bosscher <steven@gcc.gnu.org>
9990 * cfgexpand.c (estimate_stack_frame_size): Simplify the estimate:
9991 Calculate the size of all stack vars assuming no packing of stack
9992 vars will happen, replacing a quadratic algorithm with a linear one.
9994 2009-01-03 Jakub Jelinek <jakub@redhat.com>
9997 * expmed.c (store_bit_field_1): Don't modify op0 if movstrict insn
10000 2009-01-03 Diego Novillo <dnovillo@google.com>
10002 * doc/contrib.texi: Update contributions.
10004 2009-01-03 Jakub Jelinek <jakub@redhat.com>
10007 * builtins.c (fold_builtin_memory_op): Give up if either operand
10008 is volatile. Set srctype or desttype to non-qualified version
10012 * builtins.c (fold_builtin_expect): Only check DECL_WEAK for VAR_DECLs
10013 and FUNCTION_DECLs.
10015 2009-01-02 Kenneth Zadeck <zadeck@naturalbridge.com>
10017 PR rtl-optimization/35805
10018 * df-problems.c (df_lr_finalize): Add recursive call to resolve lr
10019 problem if fast dce is able to remove any instructions.
10020 * dce.c (dce_process_block): Fix dump message.
10022 2009-01-02 Mark Mitchell <mark@codesourcery.com>
10025 * tree-ssa-pre.c (compute_antic): Correct loop bounds.
10027 2009-01-02 Jakub Jelinek <jakub@redhat.com>
10029 PR middle-end/38690
10030 * tree-flow.h (op_code_prio, op_prio): New prototypes.
10031 * tree-pretty-print.c (op_code_prio): New function.
10032 (op_prio): No longer static. Use op_code_prio.
10033 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs):
10034 Use op_prio and op_code_prio to determine if () should be
10035 printed around operand(s) or not.
10037 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
10038 dump_gimple_call, dump_gimple_switch, dump_gimple_cond,
10039 dump_gimple_label, dump_gimple_try, dump_symbols, dump_gimple_phi,
10040 dump_gimple_mem_ops, dump_bb_header, dump_bb_end, pp_cfg_jump): Use
10041 pp_character instead of pp_string for single letter printing.
10043 2009-01-02 Richard Sandiford <rdsandiford@googlemail.com>
10045 * doc/extend.texi: Fix '#pragma GCC option' typo.
10047 2009-01-02 Richard Guenther <rguenther@suse.de>
10049 * doc/install.texi (--enable-checking): Mention different
10050 default for stage1.
10051 (--enable-stage1-checking): Document.
10053 2009-01-01 Andrew Pinski <pinskia@gmail.com>
10055 PR middle-end/30142
10056 * tree-cfg.c (verify_expr): Add INDIRECT_REF case. Change MODIFY_EXPR
10057 case to be an error.
10059 2009-01-02 Ben Elliston <bje@au.ibm.com>
10061 * config/fp-bit.h (pack_d): Constify argument.
10062 * config/fp-bit.c (makenan): Constify return type. Remove casts.
10063 (isnan): Constify argument.
10065 (iszero): Likewise.
10066 (pack_d): Likewise.
10067 (_fpadd_parts): Constify return type.
10068 (_fpmul_parts): Likewise.
10069 (_fpdiv_parts): Likewise.
10071 2009-01-01 Jakub Jelinek <jakub@redhat.com>
10074 * c-typeck.c (add_pending_init): Add IMPLICIT argument. Only
10075 warn about overwriting initializer with side-effects or
10076 -Woverride-init if !IMPLICIT.
10077 (output_init_element): Likewise. Pass IMPLICIT down to
10079 (process_init_element): Add IMPLICIT argument. Pass it down
10080 to output_init_element.
10081 (push_init_element, pop_init_level, set_designator): Adjust
10082 process_init_element callers.
10083 (set_nonincremental_init, set_nonincremental_init_from_string):
10084 Adjust add_pending_init callers.
10085 (output_pending_init_elements): Adjust output_init_element callers.
10086 * c-tree.h (process_init_element): Adjust prototype.
10087 * c-parser.c (c_parser_initelt, c_parser_initval): Adjust
10088 process_init_element callers.
10091 Copyright (C) 2009 Free Software Foundation, Inc.
10093 Copying and distribution of this file, with or without modification,
10094 are permitted in any medium without royalty provided the copyright
10095 notice and this notice are preserved.