1 2009-07-12 Kai Tietz <kai.tietz@onevision.com>
3 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Define _X86_
6 2009-07-12 Jan Hubicka <jh@suse.cz>
8 PR tree-optimization/40585
9 * except.c (expand_resx_expr): When there already is resume
10 instruction, produce linked list.
11 (build_post_landing_pads): Assert that resume is empty.
12 (connect_post_landing_pads): Handle resume lists.
13 (dump_eh_tree): Dump resume list.
15 2009-07-12 Ira Rosen <irar@il.ibm.com>
17 * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
18 with additional argument.
19 * tree-vectorizer.h (enum vect_def_type): Add
20 vect_double_reduction_def.
21 (vect_is_simple_reduction): Add argument.
22 * tree-vect-loop.c (vect_determine_vectorization_factor): Fix
24 (vect_analyze_scalar_cycles_1): Detect double reduction. Call
25 vect_is_simple_reduction with additional argument.
26 (vect_analyze_loop_operations): Handle exit phi nodes in case of
28 (reduction_code_for_scalar_code): Handle additional codes by
29 returning ERROR_MARK for them. Fix comment and indentation.
30 (vect_is_simple_reduction): Fix comment, add argument to specify
31 double reduction. Detect double reduction.
32 (get_initial_def_for_induction): Fix indentation.
33 (get_initial_def_for_reduction): Fix comment and indentation.
34 Handle double reduction. Create initial definitions that do not
35 require adjustment if ADJUSTMENT_DEF is NULL. Handle additional cases.
36 (vect_create_epilog_for_reduction): Fix comment, add argument to
37 handle double reduction. Use PLUS_EXPR in case of MINUS_EXPR in
38 epilogue result extraction. Create double reduction phi node and
39 replace relevant uses.
40 (vectorizable_reduction): Call vect_is_simple_reduction with
41 additional argument. Fix indentation. Update epilogue code treatment
42 according to the changes in reduction_code_for_scalar_code. Check
43 for double reduction. Call vect_create_epilog_for_reduction with
45 * tree-vect-stmts.c (process_use): Handle double reduction, update
47 (vect_mark_stmts_to_be_vectorized): Handle double reduction.
48 (vect_get_vec_def_for_operand): Likewise.
50 2009-07-12 Danny Smith <dansmister@gmail.com>
52 * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't
53 dllexport if !TREE_PUBLIC.
54 (i386_pe_maybe_record_exported_symbol): Assert TREE_PUBLIC.
56 2009-07-11 Anatoly Sokolov <aesok@post.ru>
58 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Redefine.
59 (avr_extra_arch_macro) Remove declatation.
60 * config/avr/avr.c (avr_cpu_cpp_builtins): New function.
61 (avr_extra_arch_macro) Declare as static.
62 * config/avr/avr-protos.h (avr_cpu_cpp_builtins): Dclare.
64 2009-07-11 Jan Hubicka <jh@suse.cz>
67 * except.c (can_be_reached_by_runtime): Test for NULL aka bitmap.
69 2009-07-11 Jakub Jelinek <jakub@redhat.com>
72 * dwarf2out.c (dw_fde_struct): Add in_std_section and
73 cold_in_std_section bits.
74 (dwarf2out_begin_prologue): Initialize them.
75 (dwarf2out_finish): Don't emit FDE range into .debug_ranges
76 if already covered by text_section or cold_text_section range.
78 PR rtl-optimization/40667
79 * defaults.h (MINIMUM_ALIGNMENT): Define if not defined.
80 * doc/tm.texi (MINIMUM_ALIGNMENT): Document it.
81 * config/i386/i386.h (MINIMUM_ALIGNMENT): Define.
82 * config/i386/i386.c (ix86_minimum_alignment): New function.
83 * config/i386/i386-protos.h (ix86_minimum_alignment): New prototype.
84 * cfgexpand.c (expand_one_var): Use MINIMIM_ALIGNMENT.
85 * emit-rtl.c (gen_reg_rtx): Likewise.
86 * function.c (assign_parms): Likewise. If nominal_type needs
87 bigger alignment than FUNCTION_ARG_BOUNDARY, use its alignment
88 rather than passed_type's alignment.
91 * function.c (assign_parm_setup_stack): Adjust
92 MEM_OFFSET (data->stack_parm) if promoted_mode is different
93 from nominal_mode on big endian.
95 2009-07-11 Paolo Bonzini <bonzini@gnu.org>
97 * expmed.c (emit_store_flag_1): Fix choice of zero vs. sign extension.
99 2009-07-10 DJ Delorie <dj@redhat.com>
101 * config/mep/mep.c (mep_can_inline_p): Correct logic, and simplify.
103 2009-07-10 Mark Mitchell <mark@codesourcery.com>
105 * config/arm/thumb2.md (thumb2_cbz): Correct computation of length
107 (thumb2_cbnz): Likewise.
109 2009-07-10 David Daney <ddaney@caviumnetworks.com>
112 * config.gcc (supported_defaults): Add synci.
113 (with_synci): Add validation.
114 (all_defaults): Add synci.
115 * config/mips/mips.md (clear_cache): Use TARGET_SYNCI instead of
118 * config/mips/mips.opt (msynci): New option.
119 * config/mips/mips.c (mips_override_options): Warn on use of
120 -msynci for targets that do now support it.
121 * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
123 * gcc/doc/invoke.texi (-msynci): Document the new option.
124 * doc/install.texi (--with-synci): Document the new option.
126 2009-07-10 Richard Guenther <rguenther@suse.de>
128 PR tree-optimization/40496
129 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Create
130 the PHI result with a compatible type.
132 2009-07-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
136 * c.opt (Wunused-result): New.
137 * doc/invoke.texi: Document it.
138 * c-common.c (c_warn_unused_result): Use it.
140 2009-07-09 DJ Delorie <dj@redhat.com>
142 * targhooks.c (default_target_can_inline_p): Rename from
143 default_target_option_can_inline_p.
144 * targhooks.h (default_target_can_inline_p): Likewise.
145 * target-def.h (TARGET_CAN_INLINE_P): Rename from
146 TARGET_OPTION_CAN_INLINE_P.
147 * config/i386/i386.c (TARGET_CAN_INLINE_P): Likewise.
148 * config/mep/mep.c (TARGET_CAN_INLINE_P): Likewise.
149 (mep_target_can_inline_p): Rename from
150 mep_target_option_can_inline_p.
153 * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Add coprocessor
154 registers used to pass vectors.
156 * config/mep/mep.c (mep_option_can_inline_p): Remove error call.
158 2009-07-09 Tom Tromey <tromey@redhat.com>
160 * unwind-dw2-fde-darwin.c: Include dwarf2.h.
161 * config/mmix/mmix.c: Include dwarf2.h.
162 * config/rs6000/darwin-fallback.c: Include dwarf2.h.
163 * config/xtensa/unwind-dw2-xtensa.c: Include dwarf2.h.
164 * config/sh/sh.c: Include dwarf2.h.
165 * config/i386/i386.c: Include dwarf2.h.
166 * Makefile.in (DWARF2_H): Remove 'elf'.
167 * except.c: Include dwarf2.h.
168 * unwind-dw2.c: Include dwarf2.h.
169 * dwarf2out.c: Include dwarf2.h.
170 * unwind-dw2-fde-glibc.c: Include dwarf2.h.
171 * unwind-dw2-fde.c: Include dwarf2.h.
172 * dwarf2asm.c: Include dwarf2.h.
174 2009-07-09 Maxim Kuvyrkov <maxim@codesourcery.com>
176 * haifa-sched.c (insn_finishes_cycle_p): New static function.
178 * sched-int.h (struct sched_info: insn_finishes_block_p): New
180 * sched-rgn.c (rgn_insn_finishes_block_p): Implement it.
181 (region_sched_info): Update.
182 * sched-ebb.c (ebb_sched_info): Update.
183 * modulo-sched.c (sms_sched_info): Update.
184 * sel-sched-ir.c (sched_sel_haifa_sched_info): Update.
186 2009-07-09 Maxim Kuvyrkov <maxim@codesourcery.com>
188 * varasm.c (build_constant_desc): Don't share RTL in pool entries.
190 2009-07-09 Basile Starynkevitch <basile@starynkevitch.net>
192 * plugin.c (try_init_one_plugin): passes RTLD_GLOBAL to dlopen.
194 2009-07-09 Jakub Jelinek <jakub@redhat.com>
197 * fold-const.c (fold_cond_expr_with_comparison): Don't replace
198 arg1 with arg01 if arg1 is already INTEGER_CST.
200 2009-07-08 Adam Nemet <anemet@caviumnetworks.com>
202 * simplify-rtx.c (simplify_binary_operation_1) <AND>: Transform (and
203 (truncate)) into (truncate (and)).
205 2009-07-08 Adam Nemet <anemet@caviumnetworks.com>
207 * combine.c (make_extraction): Check TRULY_NOOP_TRUNCATION before
208 creating LHS paradoxical subregs. Fix surrounding returns to
209 use NULL_RTX rather than 0.
211 2009-07-08 DJ Delorie <dj@redhat.com>
213 * config/mep/mep.c: (mep_option_can_inline_p): New.
214 (TARGET_OPTION_CAN_INLINE_P): Define.
216 2009-07-08 Mark Wielaard <mjw@redhat.com>
219 * dwarf2out.c (add_data_member_location_attribute): When we have
220 only a constant offset don't emit a new location description using
221 DW_OP_plus_uconst, but just add the constant with add_AT_int, when
224 2009-07-08 Richard Henderson <rth@redhat.com>
227 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move to i386.c.
228 (enum reg_class): Add CLOBBERED_REGS.
229 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Likewise.
230 * config/i386/i386.c (ix86_conditional_register_usage): Moved
231 from CONDITIONAL_REGISTER_USAGE; build CLOBBERED_REGS for 64-bit.
232 (ix86_function_ok_for_sibcall): Tidy. Disallow MS->SYSV sibcalls.
233 (ix86_expand_call): Use sibcall_insn_operand when needed. Don't
234 force 64-bit sibcalls into R11.
235 * config/i386/constraints.md (U): New constraint.
236 * config/i386/i386.md (sibcall_1, sibcall_value_1): Use it.
237 (sibcall_1_rex64, sibcall_value_1_rex64): Likewise.
238 (sibcall_1_rex64_v, sibcall_value_1_rex64_v): Remove.
240 2009-07-08 Shujing Zhao <pearly.zhao@oracle.com>
242 * basic-block.h (dump_regset, debug_regset): Remove duplicate
244 * c-objc-common.h (c_initialize_diagnostics): Ditto.
245 * ebitmap.h (dump_ebitmap): Ditto.
246 * optabs.h (optab_libfunc): Ditto.
247 * tree.h (tree_expr_nonzero_warnv_p): Ditto.
248 * tree-flow.h (vect_can_force_dr_alignment_p,
249 get_vectype_for_scalar_type): Ditto.
250 (vectorize_loops): Move prototype to ...
251 * tree-vectorizer.h: ... here. Also, adjust comment.
252 (vect_set_verbosity_level): Remove duplicate prototype.
253 * tree-ssa-loop.c: Include tree-vectorizer.h.
254 * Makefile.in (tree-ssa-loop.o): Depend on tree-vectorizer.h.
256 2009-07-08 Nick Clifton <nickc@redhat.com>
258 * config/i386/unix.h (ASM_COMMENT_START): Add a space after the
261 2009-07-08 DJ Delorie <dj@redhat.com>
263 * config/mep/mep-ivc2.cpu (cpmovtocsar0_C3, cpmovtocsar1_C3,
264 cpmovtocc_C3, cpmovtocsar0_P0S_P1, cpmovtocsar1_P0S_P1,
265 cpmovtocc_P0S_P1): Mark volatile. Note which registers are
267 * config/mep/intrinsics.md: Regenerated.
268 * config/mep/mep.c (mep_interrupt_saved_reg): Save IVC2 control
269 registers when asm() or calls are detected.
271 2009-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
274 * gimplify.c (gimplify_expr): Propagate no_warning flag when
276 * gimple (gimple_build_call_from_tree): Likewise.
277 * tree-cfg.c (remove_useless_stmts_warn_notreached): Check
278 no_warning flag before warning.
280 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
282 * tree.c (set_expr_locus): Remove.
283 * tree.h (EXPR_LOCUS,SET_EXPR_LOCUS,set_expr_locus): Remove.
284 * c-typeck.c (c_finish_stmt_expr): Replace EXPR_LOCUS by
286 * gimplify.c (internal_get_tmp_var): Likewise.
287 (gimplify_call_expr): Likewise.
288 (gimplify_one_sizepos): Likewise.
290 2009-07-07 Eric Botcazou <ebotcazou@adacore.com>
293 * dbxout.c (dbxout_symbol) <PARM_DECL>: Deal with parameters pointing
294 to variables for debugging purposes.
296 2009-06-23 Mark Loeser <mark@halcy0n.com>
299 * Makefile.in (gcc.pod): Depend on gcc-vers.texi.
301 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
303 * pretty-print.c (pp_base_format): Remove %J.
304 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
305 gcc_cxxdiag_char_table): Likewise.
306 (init_dynamic_diag_info): Likewise.
308 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
310 * pretty-print.c (pp_base_format): Remove %H.
311 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
312 gcc_cxxdiag_char_table): Likewise.
313 (init_dynamic_diag_info): Likewise.
314 * config/mep/mep.c (mep_select_section): Likewise.
316 2009-07-07 Duncan Sands <baldrick@free.fr>
318 * final.c (pass_clean_state): Give the pass a name.
319 * passes.c (pass_rest_of_compilation): Likewise.
320 * tree-optimize.c (pass_all_optimizations): Likewise.
322 2009-07-07 H.J. Lu <hongjiu.lu@intel.com>
324 * config/ia64/ia64.c (ia64_handle_model_attribute): Remove
325 an extra 'decl' for error_at.
327 2009-07-07 Jakub Jelinek <jakub@redhat.com>
330 * tree-tailcall.c (adjust_return_value_with_ops,
331 create_tailcall_accumulator): Set DECL_GIMPLE_REG_P on the temporary
332 if it has complex or vector type.
334 2009-07-07 Olivier Hainque <hainque@adacore.com>
336 * config/alpha/t-osf4 (SHLIB_LINK): Do not hide the dummy weak
339 2009-07-07 Basile Starynkevitch <basile@starynkevitch.net>
341 * Makefile.in: added more lists of includes to PLUGIN_HEADERS.
343 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
345 * cgraphunit.c: Replace %J by an explicit location. Update all
347 * c-decl.c: Likewise.
348 * function.c: Likewise.
349 * varasm.c: Likewise.
350 * tree-ssa.c: Likewise.
351 * c-common.c: Likewise.
352 * tree-cfg.c: Likewise.
353 * config/spu/spu.c: Likewise.
354 * config/ia64/ia64.c: Likewise.
355 * config/v850/v850.c: Likewise.
357 2009-07-06 DJ Delorie <dj@redhat.com>
359 * config/mep/mep-core.cpu (fsft, ssarb): Mark as VOLATILE.
360 * config/mep/mep-ivc2.cpu (many): Add VOLATILE to more insns that make
361 unspecified accesses to control registers.
362 * config/mep/intrinsics.md: Regenerate.
363 * config/mep/intrinsics.h: Regenerate.
364 * config/mep/mep-intrin.h: Regenerate.
366 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
368 * c-lex.c: Replace %H by an explicit location. Update all calls.
369 * c-common.c: Likewise.
370 * c-decl.c: Likewise.
371 * c-typeck.c: Likewise.
372 * fold-const.c: Likewise.
373 * gimplify.c: Likewise.
375 * tree-cfg.c: Likewise.
376 * tree-ssa-loop-niter.c: Likewise.
377 * tree-vrp.c: Likewise.
378 * value-prof.c: Likewise.
380 2009-07-06 Diego Novillo <dnovillo@google.com>
382 * tree-dfa.c (dump_variable): Write DECL_INITIAL for VAR
383 if it has one. Handle cases where VAR does not have an
384 annotation or cfun is NULL.
386 2009-07-06 Diego Novillo <dnovillo@google.com>
388 * tree.c: Include debug.h.
389 (initialize_tree_contains_struct): New.
390 (init_ttree): Call it.
391 (tree_node_structure_for_code): Factor out of ...
392 (tree_node_structure): ... here.
393 * treestruct.def (TS_PHI_NODE): Remove.
394 (TS_GIMPLE_STATEMENT): Remove.
396 2009-07-06 Diego Novillo <dnovillo@google.com>
398 * tree-pretty-print.c (dump_generic_node): Protect
400 (debug_tree_chain): Handle cycles.
402 2009-07-06 Nick Clifton <nickc@redhat.com>
403 DJ Delorie <dj@redhat.com>
405 * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
406 __FMOVD_ENABLED__ is defined.
408 (TARGET_FMOVD): Provide a default definition.
409 (MASK_FMOVD): Likewise.
410 (TARGET_CPU_CPP_BUILTINS): Define
411 __FMOVD_ENABLED__ if TARGET_FMOVD is true.
412 * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
413 two fmov instructions depending upon whether TARGET_FMOVD is
415 (split for DF load from memory into register): Also handle
416 MEMs which consist of REG+DISP addressing.
417 (split for DF store from register to memory): Likewise.
418 (movsf_ie): Always use single fp_mode.
419 * config/sh/sh.c (sh_override_options): Do not automatically
420 enable TARGET_MOVD for the SH2A when supporting doubles - leave
421 that to the -mfmovd command line switch.
422 (broken_move): Do not restrict fldi test to only the SH4 and SH4A.
423 (fldi_ok): Always allow.
424 * config/sh/sh.opt (mfmovd): Remove this switch.
425 * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
427 2009-07-06 J"orn Rennecke <joern.rennecke@arc.com>
428 Kaz Kojima <kkojima@gcc.gnu.org>
430 PR rtl-optimization/30807
431 * postreload.c (reload_combine): For every new use of REG_SUM,
432 record the use of BASE.
434 2009-07-06 Jan Hubicka <jh@suse.cz>
436 * params.def: Revert my accidental commit at 2009-06-30.
438 2009-07-04 Ian Lance Taylor <iant@google.com>
441 * config/i386/msformat-c.c (mingw_format_attributes): Declare as
443 (mingw_format_attribute_overrides): Likewise.
445 2009-07-04 Jakub Jelinek <jakub@redhat.com>
448 * dwarf2out.c (based_loc_descr): For crtl->stack_realign_tried
449 don't check cfa.reg. Instead of cfa.indirect use
450 fde && fde->drap_reg != INVALID_REGNUM test.
452 2009-07-04 Eric Botcazou <ebotcazou@adacore.com>
454 * postreload.c (reload_combine): Replace CONST_REG with INDEX_REG.
456 2009-07-03 Vladimir Makarov <vmakarov@redhat.com>
459 * ira.c (build_insn_chain): Use DF_LR_OUT instead of
462 2009-07-03 Richard Guenther <rguenther@suse.de>
464 PR tree-optimization/40640
465 * tree-switch-conversion.c (build_arrays): Perform arithmetic
468 2009-07-03 Jan Hubicka <jh@suse.cz>
470 * ipa-inline.c (cgraph_decide_inlining_incrementally): When optimizing
471 for size, reduce amount of inlining.
473 2009-07-03 Richard Guenther <rguenther@suse.de>
476 * tree-chrec.c (chrec_convert_1): Fold (T2)(t +- x) to
477 (T2)t +- (T2)x if t +- x is known to not overflow and
478 the conversion widens the operation.
479 * Makefile.in (tree-chrec.o): Add $(FLAGS_H) dependency.
481 2009-07-03 Jan Hubicka <jh@suse.cz>
483 * ipa-pure-const.c (analyze): Update loop optimizer init.
484 * tree-ssa-loop-iv-canon.c (empty_loop_p, remove_empty_loop,
485 try_remove_empty_loop, remove_empty_loops): Remove.
486 * tree-ssa-loop.c (tree_ssa_empty_loop, pass_empty_loop): Remove.
487 * tree-ssa-dce.c (find_obviously_necessary_stmts): Use finiteness info
488 to mark regular loops as neccesary.
489 (degenerate_phi_p): New function.
490 (propagate_necessity, remove_dead_phis): Use it.
491 (forward_edge_to_pdom): Likewise.
492 (eliminate_unnecessary_stmts): Take care to remove uses of results of
493 virtual PHI nodes that became unreachable.
494 (perform_tree_ssa_dce): Initialize/deinitialize loop optimizer.
495 * tree-flow.h (remove_empty_loops): Remove.
496 * passes.c (init_optimization_passes): Remove.
498 2009-07-03 Uros Bizjak <ubizjak@gmail.com>
500 * config/i386/i386.md (fix_trunc<mode>_fisttp_i387_1): Use
502 (*fix_trunc<mode>_i387_1): Ditto.
503 (*floathi<mode>2_1): Ditto.
504 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): Ditto.
506 (*fist<mode>2_1): Ditto.
507 (frndintxf2_floor): Ditto.
508 (*fist<mode>2_floor_1): Ditto.
509 (frndintxf2_ceil): Ditto.
510 (*fist<mode>2_ceil_1): Ditto.
511 (frndintxf2_trunc): Ditto.
512 (frndintxf2_mask_pm): Ditto.
513 (fxam<mode>2_i387_with_temp): Ditto.
514 * config/i386/sse.md (mulv16qi3): Ditto.
515 (*sse2_mulv4si3): Ditto.
517 (sse4_2_pcmpestr): Ditto.
518 (sse4_2_pcmpistr): Ditto.
520 2009-07-03 Jan Hubicka <jh@suse.cz>
522 * tree-ssa-dce.c (bb_contains_live_stmts): New bitmap.
523 (mark_stmt_necessary): Set it.
524 (mark_operand_necessary): Set it.
525 (mark_control_dependent_edges_necessary): Set it.
526 (mark_virtual_phi_result_for_renaming): New function.
527 (get_live_post_dom): New function.
528 (forward_edge_to_pdom): New function.
529 (remove_dead_stmt): Fix handling of control dependences.
530 (tree_dce_init): Init new bitmap.
531 (tree_dce_done): Free it.
533 2009-07-02 Richard Guenther <rguenther@suse.de>
536 * tree-ssa-structalias.c (new_var_info): Initialize
539 2009-07-02 Jan Hubicka <jh@suse.cz>
541 * ipa-pure-const.c (check_op): Use PTA info to see if indirect_ref is
544 2009-07-02 Paolo Bonzini <bonzini@gnu.org>
546 * expmed.c (emit_cstore, emit_store_flag_1): Accept target_mode
547 instead of recomputing it. Adjust calls.
548 (emit_store_flag): Adjust recursive calls.
550 2009-07-02 Richard Guenther <rguenther@suse.de>
552 * tree-ssa-live.c (remove_unused_locals): Do not remove
554 * tree-ssa-structalias.c (handle_lhs_call): Delay setting
555 of DECL_EXTERNAL for HEAP variables.
556 (compute_points_to_sets): Set DECL_EXTERNAL for escaped
557 HEAP variables. Do not adjust RESTRICT vars.
558 (find_what_var_points_to): Nobody cares if something
561 2009-07-02 Ben Elliston <bje@au.ibm.com>
563 * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Move
564 pc_low and pc_high declarations to the top of the function.
566 2009-07-01 DJ Delorie <dj@redhat.com>
568 * config/mep/mep.c (mep_handle_option): Leave IVC2 control
570 (mep_interrupt_saved_reg): Save appropriate IVC2 control registers.
571 * config/mep/mep-ivc2.cpu: Add VOLATILE to insns that make
572 unspecified accesses to control registers.
573 * config/mep/intrinsics.md: Regenerate.
574 * config/mep/intrinsics.h: Regenerate.
575 * config/mep/mep-intrin.h: Regenerate.
577 2009-07-01 Anthony Green <green@moxielogic.com>
579 * config/moxie/moxie.c (moxie_expand_prologue): Use dec
580 instruction when possible.
581 (moxie_expand_prologue): Ditto. Also, save an instruction and
582 some complexity by popping off of $r12 instead of $sp.
583 * config/moxie/moxie.md (movsi_pop): Don't assume $sp. Take two
586 2009-07-01 Richard Henderson <rth@redhat.com>
589 * function.c (reposition_prologue_and_epilogue_notes): If epilogue
590 contained no insns, reposition note before last insn.
592 2009-07-01 Richard Henderson <rth@redhat.com>
595 * dwarf2out.c (def_cfa_1): Revert 2009-06-11 change for
596 DW_CFA_def_cfa_offset and DW_CFA_def_cfa.
598 2009-07-01 Michael Meissner <meissner@linux.vnet.ibm.com>
601 * config/rs6000/rs6000.c (print_operand): Undo change that breaks
602 darwin9 for printing reg addresses with %y.
604 2009-07-01 Adam Nemet <anemet@caviumnetworks.com>
606 * combine.c (force_to_mode): Handle TRUNCATE. Factor out
607 truncation from operands in binary operations.
609 2009-07-01 Adam Nemet <anemet@caviumnetworks.com>
612 2009-01-11 Adam Nemet <anemet@caviumnetworks.com>
613 * expmed.c (store_bit_field_1): Properly truncate the paradoxical
614 subreg of op0 to the original op0.
616 * expmed.c (store_bit_field_1): Use a temporary as the destination
617 instead of a paradoxical subreg when we need to truncate the result.
619 2009-07-01 DJ Delorie <dj@redhat.com>
621 * config/mep/mep-ivc2.cpu (cmov, cmovc, cmovh): Add intrinsic
622 names to VLIW variants.
623 (ivc2rm, ivc2crn): Make data type consistent with non-VLIW variants.
624 * config/mep/intrinsics.md: Regenerate.
625 * config/mep/intrinsics.h: Regenerate.
626 * config/mep/mep-intrin.h: Regenerate.
628 2009-07-01 Jakub Jelinek <jakub@redhat.com>
631 * jump.c (returnjump_p): Revert last patch.
632 * dwarf2out.c (dwarf2out_begin_epilogue): Handle SEQUENCEs.
634 2009-07-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
637 * pa.md (casesi32p): Use jump table label to determine the offset
639 (casesi64p): Likewise.
641 * pa.c (forward_branch_p): Return bool type. Use instruction
642 addresses when available. Assert that INSN has a jump label.
643 (pa_adjust_insn_length): Don't call forward_branch_p if INSN doesn't
646 2009-07-01 Richard Guenther <rguenther@suse.de>
648 PR tree-optimization/19831
649 * tree-ssa-dce.c (propagate_necessity): Calls to functions
650 that only act as barriers do not make any previous stores necessary.
651 * tree-ssa-structalias.c (handle_lhs_call): Delay making
652 HEAP variables global, do not add a constraint from nonlocal.
653 (find_func_aliases): Handle escapes through return statements.
654 (compute_points_to_sets): Make escaped HEAP variables global.
656 2009-07-01 Paolo Bonzini <bonzini@gnu.org>
659 * expmed.c (emit_store_flag): Perform a conversion if necessary,
660 after reducing a DImode cstore to SImode.
662 2009-07-01 Paolo Bonzini <bonzini@gnu.org>
664 * expr.c (expand_expr_real_1): Reinstate fallthrough to
665 TRUTH_ANDIF_EXPR if do_store_flag returns NULL.
667 2009-07-01 Maciej W. Rozycki <macro@linux-mips.org>
669 * config/vax/vax.h (TARGET_BSD_DIVMOD): New macro. Set to 1.
670 * config/vax/linux.h (TARGET_BSD_DIVMOD): New macro. Redefine the
672 * config/vax/vax.c (vax_init_libfuncs): Only redefine udiv_optab
673 and umod_optab if TARGET_BSD_DIVMOD.
674 * config/vax/lib1funcs.asm: New file.
675 * config/vax/t-linux: New file.
676 * config.gcc (vax-*-linux*): Set tmake_file to vax/t-linux.
678 2009-06-30 Jakub Jelinek <jakub@redhat.com>
681 * convert.c (convert_to_integer) <case COND_EXPR>: Don't convert
682 to type arguments that have void type.
685 * dwarf2out.c (gen_formal_parameter_die): Call
686 equate_decl_number_to_die if node is different from origin.
688 2009-06-30 Anthony Green <green@moxielogic.com>
690 Clean up moxie port for --enable-build-with-cxx.
691 * config/moxie/moxie.c (moxie_function_value): First two
692 parameters are const_tree, not tree.
693 * config/moxie/moxie.h (enum reg_class): Rename CC_REG to CC_REGS.
694 (REG_CLASS_NAMES): Ditto.
695 (REGNO_REG_CLASS): Ditto.
696 * config/moxie/moxie-protos.h (moxie_override_options): Declare.
697 (moxie_function_value): Fix constyness of arguments.
699 2009-06-30 Eric Botcazou <ebotcazou@adacore.com>
701 * cgraphunit.c (cgraph_finalize_compilation_unit): Call
702 finalize_size_functions before further processing.
703 * stor-layout.c: Include cgraph.h, tree-inline.h and tree-dump.h.
704 (variable_size): Call self_referential_size on size expressions
705 that contain a PLACEHOLDER_EXPR.
706 (size_functions): New static variable.
707 (copy_self_referential_tree_r): New static function.
708 (self_referential_size): Likewise.
709 (finalize_size_functions): New global function.
710 * tree.c: Include tree-inline.h.
711 (push_without_duplicates): New static function.
712 (find_placeholder_in_expr): New global function.
713 (substitute_in_expr) <tcc_declaration>: Return the replacement object
715 <tcc_expression>: Likewise.
716 <tcc_vl_exp>: If the replacement object is a constant, try to inline
717 the call in the expression.
718 * tree.h (finalize_size_functions): Declare.
719 (find_placeholder_in_expr): Likewise.
720 (FIND_PLACEHOLDER_IN_EXPR): New macro.
721 (substitute_placeholder_in_expr): Update comment.
722 * tree-inline.c (remap_decl): Do not unshare trees if do_not_unshare
724 (copy_tree_body_r): Likewise.
725 (copy_tree_body): New static function.
726 (maybe_inline_call_in_expr): New global function.
727 * tree-inline.h (struct copy_body_data): Add do_not_unshare field.
728 (maybe_inline_call_in_expr): Declare.
729 * Makefile.in (tree.o): Depend on TREE_INLINE_H.
730 (stor-layout.o): Depend on CGRAPH_H, TREE_INLINE_H, TREE_DUMP_H and
733 2009-06-30 Richard Guenther <rguenther@suse.de>
735 * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Always
737 (propagate_necessity): Do not mark reaching defs of stores
740 2009-06-30 Jan Hubicka <jh@suse.cz>
742 * cfgloopanal.c (check_irred): Move into ...
743 (mark_irreducible_loops): ... here; return true if ireducible
745 * ipa-pure-const.c: Include cfgloop.h and tree-scalar-evolution.h
746 (analyze_function): Try to prove loop finiteness.
747 * cfgloop.h (mark_irreducible_loops): Update prototype.
748 * Makefile.in (ipa-pure-const.o): Add dependency on SCEV and CFGLOOP.
750 2009-06-30 Basile Starynkevitch <basile@starynkevitch.net>
752 * Makefile.in (PLUGIN_HEADERS): added ggc, tree-dump, pretty-print.
754 2009-06-30 Ira Rosen <irar@il.ibm.com>
756 PR tree-optimization/40542
757 * tree-vect-stmts.c (vect_analyze_stmt): Don't vectorize volatile
760 2009-06-30 Martin Jambor <mjambor@suse.cz>
762 PR tree-optimization/40582
763 * tree-sra.c (build_ref_for_offset_1): Use types_compatible_p rather
764 than useless_type_conversion_p.
765 (generate_subtree_copies): Increment sra_stats.subtree_copies at a
768 2009-06-30 Martin Jambor <mjambor@suse.cz>
771 * tree-sra.c (sra_modify_expr): Add access->offset to start_offset.
773 2009-06-30 Richard Guenther <rguenther@suse.de>
775 * tree-ssa-alias.c (walk_aliased_vdefs_1): Change interface to
776 use ao_ref references.
777 (walk_aliased_vdefs): Likewise.
778 * tree-ssa-alias.h (walk_aliased_vdefs): Adjust prototype.
779 * tree-ssa-dce.c (struct ref_data): Remove.
780 (mark_aliased_reaching_defs_necessary_1): Use the ao_ref argument.
781 (mark_aliased_reaching_defs_necessary): Adjust.
782 (mark_all_reaching_defs_necessary_1): Likewise.
784 2009-06-30 Paolo Bonzini <bonzini@gnu.org>
787 * expmed.c (emit_cstore): New name of emit_store_flag_1.
788 (emit_store_flag_1): Extract from emit_store_flag, adjust
789 calls to (what now is) emit_cstore.
790 (emit_store_flag): Call emit_store_flag_1 and also use it
791 for what used to be recursive calls.
793 2009-06-30 Wei Guozhi <carrot@google.com>
796 * tree-ssa-sink.c (statement_sink_location): Stop sinking expression
797 if the target bb post dominates from bb.
798 * config/i386/i386.c (memory_address_length): Check existence of base
799 register before using it.
801 2009-06-30 Nick Clifton <nickc@redhat.com>
802 DJ Delorie <dj@redhat.com>
804 * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
805 __FMOVD_ENABLED__ is defined.
807 (TARGET_FMOVD): Provide a default definition.
808 (MASK_FMOVD): Likewise.
809 (TARGET_CPU_CPP_BUILTINS): Define
810 __FMOVD_ENABLED__ if TARGET_FMOVD is true.
811 * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
812 two fmov instructions depending upon whether TARGET_FMOVD is
814 (split for DF load from memory into register): Also handle
815 MEMs which consist of REG+DISP addressing.
816 (split for DF store from register to memory): Likewise.
817 * config/sh/sh.opt (mfmovd): Remove this switch.
818 * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
819 * config/sh/sh.c (sh_override_options): Do not automatically
820 enable TARGET_MOVD for the SH2A when supporting doubles - leave
821 that to the -mfmovd command line switch.
823 * config/sh/sh.c (broken_move): Do not restrict fldi test to only
825 (fldi_ok): Always allow.
826 * config/sh/sh.md (movsf_ie): Always use single fp_mode.
828 2009-06-29 DJ Delorie <dj@redhat.com>
830 * doc/install.texi (mep-x-elf): Correct chip's full name.
832 2009-06-29 H.J. Lu <hongjiu.lu@intel.com>
834 * doc/extend.texi: Fix typo.
836 2009-06-29 Tom Tromey <tromey@redhat.com>
839 * Makefile.in (DWARF2_H): New variable.
841 (dwarf2out.o): Likewise.
842 (dwarf2asm.o): Likewise.
843 * config/i386/t-i386: Use DWARF2_H.
844 * except.c: Include elf/dwarf2.h.
845 * unwind-dw2.c: Include elf/dwarf2.h.
846 * dwarf2out.c: Include elf/dwarf2.h.
847 (dw_loc_descr_struct) <dw_loc_opc>: Now a bitfield.
849 (dwarf_stack_op_name): Don't handle INTERNAL_DW_OP_tls_addr.
850 (size_of_loc_descr): Likewise.
851 (output_loc_operands_raw): Likewise.
852 (output_loc_operands): Handle new dtprel field.
853 (loc_checksum): Update.
854 (loc_descriptor_from_tree_1) <VAR_DDECL>: Set dtprel field.
855 * unwind-dw2-fde-glibc.c: Include elf/dwarf2.h.
856 * unwind-dw2-fde.c: Include elf/dwarf2.h.
857 * dwarf2asm.c: Include elf/dwarf2.h.
858 * unwind-dw2-fde-darwin.c: Include elf/dwarf2.h.
859 * config/mmix/mmix.c: Include elf/dwarf2.h.
860 * config/rs6000/darwin-fallback.c: Include elf/dwarf2.h.
861 * config/xtensa/unwind-dw2-xtensa.c: Include elf/dwarf2.h.
862 * config/sh/sh.c: Include elf/dwarf2.h.
863 * config/i386/i386.c: Include elf/dwarf2.h.
865 2009-06-29 DJ Delorie <dj@redhat.com>
867 * config/mep/mep.h (CPP_SPEC): Remove __cop macro.
869 * doc/extend.texi: Add MeP attributes and pragmas.
870 * doc/invoke.text: Add MeP Options.
871 * doc/contrib.texi: Add MeP contribution.
872 * doc/md.texi: Add MeP constraints.
873 * doc/install.texi: Add MeP target.
875 2009-06-30 Anatoly Sokolov <aesok@post.ru>
877 * target.h (struct gcc_target): Add frame_pointer_required field.
878 * target-def.h (TARGET_FRAME_POINTER_REQUIRED): New.
879 (TARGET_INITIALIZER): Use TARGET_FRAME_POINTER_REQUIRED.
880 * ira.c (setup_eliminable_regset): Use frame_pointer_required target
882 * reload1.c (update_eliminables): (Ditto.).
883 * gcc/system.h (FRAME_POINTER_REQUIRED): Poison.
884 * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
885 (INITIAL_FRAME_POINTER_OFFSET): (Ditto.).
887 * config/arc/arc.h (FRAME_POINTER_REQUIRED): Remove macro.
889 * config/arm/arm.h (FRAME_POINTER_REQUIRED): Remove macro.
890 * config/arm/arm.c (TARGET_FRAME_POINTER_REQUIRED): Define.
891 (arm_frame_pointer_required): New function.
893 * config/avr/avr.h (FRAME_POINTER_REQUIRED): Remove macro.
894 * config/avr/avr.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
895 (avr_frame_pointer_required_p): Declare as static.
896 * config/avr/avr-protos.h (avr_frame_pointer_required_p): Remove.
898 * config/bfin/bfin.h (FRAME_POINTER_REQUIRED): Remove macro.
899 * config/bfin/bfin.c (TARGET_FRAME_POINTER_REQUIRED): Define.
900 (bfin_frame_pointer_required): Make as static, change return type
902 * config/bfin/bfin-protos.h (bfin_frame_pointer_required): Remove.
904 * config/cris/cris.h (FRAME_POINTER_REQUIRED): Remove macro.
905 * config/cris/cris.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
906 (cris_frame_pointer_required): New function.
908 * config/crx/crx.h (FRAME_POINTER_REQUIRED): Remove macro.
910 * config/fr30/fr30.h (FRAME_POINTER_REQUIRED): Remove macro.
911 * config/fr30/fr30.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
912 (fr30_frame_pointer_required): New function.
914 * config/frv/frv.h (FRAME_POINTER_REQUIRED): Remove macro.
915 * config/frv/frv.c (TARGET_FRAME_POINTER_REQUIRED): Define.
916 (frv_frame_pointer_required): Make as static, change return type
918 * config/bfin/bfin-protos.h (frv_frame_pointer_required): Remove.
920 * config/i386/i386.h (FRAME_POINTER_REQUIRED): Remove macro.
921 * config/i386/i386.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
922 (ix86_frame_pointer_required): Make as static, change return type to
924 * config/i386/i386-protos.h (ix86_frame_pointer_required): Remove.
926 * config/m32c/m32c.h (FRAME_POINTER_REQUIRED): Remove macro.
927 * config/m32c/m32c.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
929 * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Remove macro.
931 * config/mcore/mcore.h (CAN_ELIMINATE): Remove macro.
933 * config/mep/mep.h (FRAME_POINTER_REQUIRED): Remove macro.
935 * config/mips/mips.h (FRAME_POINTER_REQUIRED): Remove macro.
936 * config/mips/mips.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
937 (mips_frame_pointer_required): Make as static.
938 * config/mips/mips-protos.h (mips_frame_pointer_required): Remove.
940 * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Remove macro.
941 * config/mmix/mmix.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
942 (mmix_frame_pointer_required): Mew function.
944 * config/moxie/moxie.h (FRAME_POINTER_REQUIRED): Remove macro.
945 * config/moxie/moxie.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
947 * config/pa/pa.h (FRAME_POINTER_REQUIRED): Remove macro.
949 * config/score/score.h (FRAME_POINTER_REQUIRED): Remove macro.
951 * config/sh/sh.h (CAN_ELIMINATE): Remove macro.
953 * config/sparc/sparc.h (FRAME_POINTER_REQUIRED): Remove macro.
954 (CAN_ELIMINATE): Redefine.
955 * config/sparc/sparc.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
956 (sparc_frame_pointer_required): New function.
957 (sparc_can_eliminate): New function.
958 * config/sparc/sparc-protos.h (sparc_can_eliminate): Declare.
960 * config/vax/vax.h (FRAME_POINTER_REQUIRED): Remove macro.
961 * config/vax/vax.c (TARGET_FRAME_POINTER_REQUIRED): Define.
963 * config/xtensa/xtensa.h (FRAME_POINTER_REQUIRED): Remove macro.
964 * config/xtensa/xtensa.c (TARGET_FRAME_POINTER_REQUIRED): Define.
965 (xtensa_frame_pointer_required): Make as static, change return type
967 * config/xtensa/xtensa-protos.h (xtensa_frame_pointer_required):
970 2009-06-29 Olatunji Ruwase <tjruwase@google.com>
972 * doc/plugins.texi: Document PLUGIN_START_UNIT.
973 * toplev.c (compile_file): Call PLUGIN_START_UNIT.
974 * gcc-plugin.h (PLUGIN_START_UNIT): Added new event.
975 * plugin.c (plugin_event_name): Added PLUGIN_START_UNIT.
976 (register_callback): Handle PLUGIN_START_UNIT.
977 (invoke_plugin_callbacks): Handle PLUGIN_START_UNIT.
979 2009-06-29 Eric Botcazou <ebotcazou@adacore.com>
981 * tree.c (process_call_operands): Propagate TREE_READONLY from the
983 (PROCESS_ARG): Do not clear TREE_READONLY if CONSTANT_CLASS_P.
984 (build3_stat): Propagate TREE_READONLY for COND_EXPR.
986 2009-06-29 Daniel Jacobowitz <dan@codesourcery.com>
988 * config/arm/arm.h (REGISTER_MOVE_COST): Increase VFP register
991 2009-06-29 Uros Bizjak <ubizjak@gmail.com>
993 * doc/extend.texi (Additional Floating Types): __float128 is also
994 supported on i386 targets.
996 2009-06-29 Richard Guenther <rguenther@suse.de>
999 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
1001 (pt_solutions_same_restrict_base): Declare.
1002 * tree-ssa-structalias.c (struct variable_info): Add is_restrict_var
1004 (new_var_info): Initialize is_global_var properly for SSA_NAMEs.
1005 (make_constraint_from, make_copy_constraint): Move earlier.
1006 (make_constraint_from_heapvar): New function.
1007 (make_constraint_from_restrict): Likewise.
1008 (handle_lhs_call): Use it.
1009 (find_func_aliases): Use it to track conversions to restrict
1011 (struct fieldoff): Add only_restrict_pointers flag.
1012 (push_fields_onto_fieldstack): Initialize it.
1013 (create_variable_info_for): Track global restrict qualified pointers.
1014 (intra_create_variable_infos): Use make_constraint_from_heapvar.
1015 Track restrict qualified pointer arguments.
1016 (set_uids_in_ptset): Use varinfo is_global_var flag.
1017 (find_what_var_points_to): Set the vars_contains_restrict flag.
1018 Always create the points-to solution for sets including restrict tags.
1019 (pt_solutions_same_restrict_base): New function.
1020 * tree-ssa-alias.c (ptr_derefs_may_alias_p): For two restrict
1021 qualified pointers use pt_solutions_same_restrict_base as
1022 additional source for disambiguation.
1024 2009-06-29 Richard Guenther <rguenther@suse.de>
1027 * alias.c (find_base_decl): Remove.
1028 (get_deref_alias_set_1): Remove restrict handling.
1029 * c-common.c (c_apply_type_quals_to_decl): Do not set
1030 DECL_POINTER_ALIAS_SET.
1031 * gimplify.c (find_single_pointer_decl_1): Remove.
1032 (find_single_pointer_decl): Likewise.
1033 (internal_get_tmp_var): Remove restrict handling.
1034 (gimple_regimplify_operands): Likewise.
1035 * omp-low.c (expand_omp_atomic_pipeline): Do not set
1036 DECL_POINTER_ALIAS_SET. Use ref-all pointers.
1037 * print-tree.c (print_node): Do not print DECL_POINTER_ALIAS_SET.
1038 * tree.c (restrict_base_for_decl): Remove.
1039 (init_ttree): Do not allocate it.
1040 (make_node_stat): Do not set DECL_POINTER_ALIAS_SET. Set
1041 LABEL_DECL_UID for label decls.
1042 (copy_node_stat): Do not copy restrict information.
1043 (decl_restrict_base_lookup): Remove.
1044 (decl_restrict_base_insert): Likewise.
1045 (print_restrict_base_statistics): Likewise.
1046 (dump_tree_statistics): Do not call print_restrict_base_statistics.
1047 * tree.h (DECL_POINTER_ALIAS_SET): Remove.
1048 (DECL_POINTER_ALIAS_SET_KNOWN_P): Likewise.
1049 (struct tree_decl_common): Rename pointer_alias_set to label_decl_uid.
1050 (LABEL_DECL_UID): Adjust.
1051 (DECL_BASED_ON_RESTRICT_P): Remove.
1052 (DECL_GET_RESTRICT_BASE): Likewise.
1053 (SET_DECL_RESTRICT_BASE): Likewise.
1054 (struct tree_decl_with_vis): Remove based_on_restrict_p flag.
1056 * config/i386/i386.c (ix86_gimplify_va_arg): Use ref-all pointers
1057 instead of DECL_POINTER_ALIAS_SET.
1058 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
1059 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
1060 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
1062 2009-06-29 Richard Guenther <rguenther@suse.de>
1064 PR tree-optimization/40579
1065 * tree-vrp.c (vrp_evaluate_conditional): Bail out early if
1066 the IL to simplify has constants that overflowed.
1068 2009-06-28 Uros Bizjak <ubizjak@gmail.com>
1070 PR tree-optimization/40550
1071 * tree-vect-generic.c (expand_vector_operations_1): Compute in
1072 vector_compute_type only when the size of vector_compute_type is
1073 less than the size of type.
1075 2009-06-28 Eric Botcazou <ebotcazou@adacore.com>
1077 * fold-const.c (contains_label_1): Fix comments.
1078 (contains_label_p): Do not walk trees multiple time.
1080 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
1082 * config/i386/i386.h (enum ix86_fpcmp_strategy): New.
1083 * config/i386/i386.md (cbranchxf4, cstorexf4, cbranch<MODEF>4,
1084 cstore<MODEF>4, mov<X87MODEF>cc): Change predicate to
1085 ix86_fp_comparison_operator.
1086 (*fp_jcc_1_mixed, *fp_jcc_1_sse, *fp_jcc_1_387, *fp_jcc_2_mixed,
1087 *fp_jcc_2_sse, *fp_jcc_2_387): Delete
1088 (*fp_jcc_3_387, *fp_jcc_4_387, *fp_jcc_5_387, *fp_jcc_6_387,
1089 *fp_jcc_7_387, *fp_jcc_8<MODEF>_387): Eliminate call to
1090 !ix86_use_fcomi_compare, change ix86_fp_jump_nontrivial_p call
1091 to !TARGET_CMOVE, change predicate to ix86_fp_comparison_operator.
1092 (related splits): Change predicate to ix86_fp_comparison_operator.
1093 * config/i386/predicates.md: Use ix86_trivial_fp_comparison_operator
1094 instead of ix86_fp_comparison_codes.
1095 (ix86_trivial_fp_comparison_operator,
1096 ix86_fp_comparison_operator): New.
1097 * config/i386/i386-protos.h (ix86_fp_comparison_strategy): New.
1098 (ix86_expand_compare): Eliminate last two parameters.
1099 (ix86_fp_jump_nontrivial_p): Kill.
1100 * config/i386/i386.c (put_condition_code): Eliminate call to
1101 ix86_fp_comparison_codes and subsequent assertion.
1102 (ix86_fp_comparison_codes): Eliminate.
1103 (ix86_fp_swap_condition): New.
1104 (ix86_fp_comparison_arithmetics_cost, ix86_fp_comparison_fcomi_cost,
1105 ix86_fp_comparison_sahf_cost, ix86_use_fcomi_compare): Consolidate
1106 into ix86_fp_comparison_cost and ix86_fp_comparison_strategy.
1107 (ix86_prepare_fp_compare_args): Use ix86_fp_comparison_strategy
1108 and ix86_fp_swap_condition.
1109 (ix86_expand_fp_compare): Eliminate code for second jump/bypass jump.
1110 Use ix86_fp_comparison_strategy.
1111 (ix86_expand_compare): Likewise. Eliminate last two arguments.
1112 (ix86_fp_jump_nontrivial_p): Eliminate.
1113 (ix86_expand_branch): Treat SFmode/DFmode/XFmode as simple. Adjust
1114 call to ix86_expand_compare.
1115 (ix86_split_fp_branch, ix86_expand_setcc,
1116 ix86_expand_carry_flag_compare, ix86_expand_int_movcc,
1117 ix86_expand_fp_movcc): Eliminate code for second jump/bypass jump.
1119 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
1121 * config/arm/arm.c (arm_final_prescan_ins): Eliminate code
1122 related to jump_clobbers.
1123 * config/arm/arm.md (conds): Remove jump_clob case.
1124 (addsi3_cbranch, addsi3_cbranch_scratch, subsi3_cbranch, two
1125 splits): Change comparison_operator to arm_comparison_operator.
1126 (*arm_buneq, *arm_bltgt, *arm_buneq_reversed, *arm_bltgt_reversed):
1129 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
1131 * dojump.c (do_compare_rtx_and_jump): Try swapping the
1132 condition for floating point modes.
1133 * expmed.c (emit_store_flag_1): Move here a bigger part
1135 (emit_store_flag): Try swapping the condition for floating point
1137 * optabs.c (emit_cmp_and_jump_insns): Cope with constant op0 better.
1139 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
1141 * expr.c (expand_expr_real_1): Just use do_store_flag.
1142 (do_store_flag): Drop support for TRUTH_NOT_EXPR. Use
1143 emit_store_flag_force.
1144 * expmed.c (emit_store_flag_force): Copy here trick
1145 previously in expand_expr_real_1. Try reversing the comparison.
1146 (emit_store_flag_1): Work if target is NULL.
1147 (emit_store_flag): Work if target is NULL, using the result mode
1148 from the comparison. Use split_comparison, restructure final part
1149 to simplify conditionals.
1151 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
1153 * builtins.c (expand_errno_check): Use do_compare_rtx_and_jump.
1154 * dojump.c (do_jump): Change handling of floating-point
1155 ops to use just do_compare_and_jump.
1156 (split_comparison): New.
1157 (do_compare_rtx_and_jump): Add here logic coming previously
1158 in do_jump, using split_comparison.
1160 2009-06-27 H.J. Lu <hongjiu.lu@intel.com>
1163 * config/ia64/ia64.c (ia64_reorg): Check NULL insn.
1165 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
1167 * tree-ssa-alias.c: Fix unintentional commit.
1169 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
1171 * passes.c (execute_one_pass): Fix unintentional commit.
1173 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
1175 * df-problems.c (df_set_seen, df_unset_seen): Delete.
1176 (df_rd_local_compute, df_md_local_compute): Inline them.
1178 (df_md_scratch): New.
1179 (df_md_alloc, df_md_free): Allocate/free it.
1180 (df_md_local_compute): Only include live registers in init.
1181 (df_md_transfer_function): Prune the in-set computed by
1182 the confluence function, and the gen-set too.
1184 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
1186 PR rtl-optimization/26854
1187 * timevar.def: Remove TV_DF_RU, add TV_DF_MD.
1188 * df-problems.c (df_rd_add_problem): Fix comment.
1189 (df_md_set_bb_info, df_md_free_bb_info, df_md_alloc,
1190 df_md_simulate_artificial_defs_at_top,
1191 df_md_simulate_one_insn, df_md_bb_local_compute_process_def,
1192 df_md_bb_local_compute, df_md_local_compute, df_md_reset,
1193 df_md_transfer_function, df_md_init, df_md_confluence_0,
1194 df_md_confluence_n, df_md_free, df_md_top_dump, df_md_bottom_dump,
1195 problem_MD, df_md_add_problem): New.
1196 * df.h (DF_MD, DF_MD_BB_INFO, struct df_md_bb_info, df_md,
1197 df_md_get_bb_info): New.
1198 (DF_LAST_PROBLEM_PLUS1): Adjust.
1200 * Makefile.in (fwprop.o): Include domwalk.h.
1201 * fwprop.c: Include domwalk.h.
1202 (reg_defs, reg_defs_stack): New.
1203 (bitmap_only_bit_between): Remove.
1204 (process_defs): New.
1205 (process_uses): Use reg_defs and local_md instead of
1206 bitmap_only_bit_between and local_rd.
1207 (single_def_use_enter_block): New, from build_single_def_use_links.
1208 (single_def_use_leave_block): New.
1209 (build_single_def_use_links): Remove code moved to
1210 single_def_use_enter_block, invoke domwalk.
1211 (use_killed_between): Adjust comment.
1213 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
1215 * bitmap.h (bitmap_ior_and_into): New.
1216 * bitmap.c (bitmap_ior_and_into): New.
1218 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
1220 * domwalk.h (struct dom_walk_data): Remove all callbacks except
1221 before_dom_children_before_stmts and after_dom_children_after_stmts.
1222 Rename the two remaining callbacks to just before_dom_children and
1223 after_dom_children. Remove other GIMPLE statement walking bits.
1224 * domwalk.c (walk_dominator_tree): Remove now unsupported features.
1225 * graphite.c: Do not include domwalk.h.
1226 * tree-into-ssa.c (interesting_blocks): New global.
1227 (struct mark_def_sites_global_data): Remove it and names_to_rename.
1228 (mark_def_sites, rewrite_stmt, rewrite_add_phi_arguments,
1229 rewrite_update_stmt, rewrite_update_phi_arguments): Simplify
1230 now that they're not domwalk callbacks.
1231 (rewrite_initialize_block): Rename to...
1232 (rewrite_enter_block): ... this, place after called functions. Test
1233 interesting_blocks, call rewrite_stmt and rewrite_add_phi_arguments.
1234 (rewrite_finalize_block): Rename to...
1235 (rewrite_leave_block): ... this, place after called functions.
1236 (rewrite_update_init_block): Rename to...
1237 (rewrite_update_enter_block): ... this, place after called functions.
1238 Test interesting_blocks, call rewrite_update_stmt and
1239 rewrite_update_phi_arguments.
1240 (rewrite_update_fini_block): Rename to...
1241 (rewrite_leave_block): ... this, place after called functions.
1242 (rewrite_blocks): Remove last argument, simplify initialization of
1244 (mark_def_sites_initialize_block): Rename to...
1245 (mark_def_sites_block): ... this, call mark_def_sites.
1246 (mark_def_sites_blocks): Remove argument, simplify initialization of
1248 (rewrite_into_ssa): Adjust for interesting_blocks_being a global.
1249 (update_ssa): Likewise.
1250 * tree-ssa-dom.c (optimize_stmt): Simplify now that it's not a domwalk
1252 (tree_ssa_dominator_optimize): Simplify initialization of walk_data.
1253 (dom_opt_initialize_block): Rename to...
1254 (dom_opt_enter_block): ... this, place after called functions. Walk
1255 statements here, inline propagate_to_outgoing_edges.
1256 (dom_opt_finalize_block): Rename to...
1257 (dom_opt_leave_block): ... this, place after called functions.
1258 * tree-ssa-dse.c (dse_optimize_stmt): Simplify now that it's not a
1260 (dse_enter_block, dse_record_phi): New.
1261 (dse_record_phis): Delete.
1262 (dse_finalize_block): Rename to...
1263 (dse_leave_block): ... this.
1264 (tree_ssa_dse): Simplify initialization of walk_data.
1265 * tree-ssa-loop-im.c (determine_invariantness, move_computations):
1266 Adjust initialization of walk_data.
1267 * tree-ssa-loop-unswitch.c: Do not include domwalk.h.
1268 * tree-ssa-loop-phiopt.c (get_non_trapping):
1269 Adjust initialization of walk_data.
1270 * tree-ssa-loop-threadedge.c: Do not include domwalk.h.
1271 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Simplify now that
1272 it's not a domwalk callback.
1273 (uncprop_initialize_block): Rename to...
1274 (dse_enter_block): ... this, call uncprop_into_successor_phis.
1275 (dse_finalize_block): Rename to...
1276 (dse_leave_block): ... this.
1277 (tree_ssa_uncprop): Simplify initialization of walk_data.
1278 * Makefile.in: Adjust dependencies.
1280 2009-06-27 Richard Earnshaw <rearnsha@arm.com>
1282 * arm.md (casesi): Fix test for Thumb1.
1283 (thumb1_casesi_internal_pic): Likewise.
1284 (thumb1_casesi_dispatch): Likewise.
1286 2009-06-26 Daniel Gutson <dgutson@codesourcery.com>
1288 * config/arm/arm-cores.def: Added core cortex-m0.
1289 * config/arm/arm-tune.md: Regenerated.
1290 * doc/invoke.texi: Added entry for cpu ARM Cortex-M0.
1292 2009-06-26 DJ Delorie <dj@redhat.com>
1294 * config/mep/mep.opt (mfar): Remove -mfar as it doesn't do anything.
1296 * config/mep/mep.c (mep_bundle_insns): Account for the fact that
1297 the scheduler doesn't tag jump insns.
1299 2009-06-26 H.J. Lu <hongjiu.lu@intel.com>
1301 * c-decl.c (merge_decls): Re-indent.
1303 2009-06-26 Janis Johnson <janis187@us.ibm.com>
1306 * tree.c (real_zerop, real_onep, real_twop, real_minus_onep):
1307 Special-case decimal float constants.
1309 2009-06-26 Richard Henderson <rth@redhat.com>
1311 * function.h (struct function): Add cannot_be_copied_reason,
1312 and cannot_be_copied_set.
1313 * tree-inline.c (has_label_address_in_static_1): Rename from
1314 inline_forbidden_p_2; don't set inline_forbidden_reason here.
1315 (cannot_copy_type_1): Rename from inline_forbidden_p_op; likewise
1316 don't set inline_forbidden_reason.
1317 (copy_forbidden): New function, split out of inline_forbidden_p.
1318 (inline_forbidden_p_stmt): Don't check for nonlocal labels here.
1319 (inline_forbidden_p): Use copy_forbidden.
1320 (tree_versionable_function_p): Likewise.
1321 (inlinable_function_p): Merge into tree_inlinable_function_p.
1322 (tree_function_versioning): Remap cfun->nonlocal_goto_save_area.
1323 * ipa-cp.c (ipcp_versionable_function_p): New function.
1324 (ipcp_cloning_candidate_p): Use it.
1325 (ipcp_node_modifiable_p): Likewise.
1327 2009-06-26 Olatunji Ruwase <tjruwase@google.com>
1329 * builtins.c (expand_builtin_alloca): Handle builtin alloca
1330 that is marked not to be inlined. Remove flag_mudflap use.
1331 * tree-mudflap.c: Rename mf_xform_derefs to mf_xfrom_statements.
1332 (mf_xform_statements): Mark builtin alloca calls as un-inlineable.
1334 2009-06-26 Steve Ellcey <sje@cup.hp.com>
1337 * config/pa/t-pa-hpux10 (TARGET_LIBGCC2_CFLAGS): Add -frandom-seed.
1338 * config/pa/t-pa-hpux11 (TARGET_LIBGCC2_CFLAGS): Ditto.
1340 2009-06-26 Kai Tietz <kai.tietz@onevision.com>
1342 * config/i386/mingw-tls.c (__mingwthr_key_dtor): Remove for none
1344 (__mingwthr_remove_key_dtor): Likewise.
1346 2009-06-26 Richard Guenther <rguenther@suse.de>
1348 * tree-ssa-structalias.c (do_ds_constraint): Simplify escape handling.
1350 2009-06-26 Steven Bosscher <steven@gcc.gnu.org>
1353 * ifcvt.c (dead_or_predicable): If predicating MERGE_BB fails,
1354 try the non-cond_exec path also.
1356 2009-06-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1359 * pa.c (branch_to_delay_slot_p, branch_needs_nop_p): New functions.
1360 (output_cbranch): Use new functions.
1361 (output_lbranch, output_bb, output_bvb, output_dbra, output_movb):
1364 2009-06-25 Michael Meissner <meissner@linux.vnet.ibm.com>
1365 Pat Haugen <pthaugen@us.ibm.com>
1366 Revital Eres <ERES@il.ibm.com>
1368 * config/rs6000/rs6000.c (print_operand): Correct lossage message
1369 for %c error. Add %x support to print VSX registers as a unified
1370 register set, instead of separate float and altivec registers.
1371 Switch to use VECTOR_MEM_ALTIVEC_P instead of TARGET_ALTIVEC for
1372 %y case, and add support for VSX pre-modify addresses.
1373 (output_toc): Add assert for CONST containing an integer constant
1375 (rs6000_adjust_cost): Add POWER7 support.
1376 (insn_must_be_first_in_group): Ditto.
1377 (insn_must_be_last_in_group): Ditto.
1378 (rs6000_emit_popcount): Ditto.
1379 (rs6000_vector_mode_supported_p): Ditto.
1381 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_class):
1382 Change some of the functions called by macros to being called
1383 through a pointer, so debug functions can be inserted if
1384 -mdebug=addr or -mdebug=cost.
1385 (rs6000_preferred_reload_class_ptr): Ditto.
1386 (rs6000_secondary_reload_class_ptr): Ditto.
1387 (rs6000_secondary_memory_needed_ptr): Ditto.
1388 (rs6000_cannot_change_mode_class_ptr): Ditto.
1389 (rs6000_secondary_reload_inner): Ditto.
1390 (rs6000_legitimize_reload_address): Ditto.
1391 (rs6000_legitimize_reload_address_ptr): Ditto.
1392 (rs6000_mode_dependent_address): Ditto.
1393 (rs6000_mode_dependent_address_ptr): Ditto.
1395 * config/rs6000/rs6000.c (reg_offset_addressing_ok_p): New
1396 function to return true if the mode allows reg + integer
1398 (virtual_stack_registers_memory_p): New function to return true if
1399 the address refers to a virtual stack register.
1400 (rs6000_legitimate_offset_address_p): Move code to say whether a
1401 mode supports reg+int addressing to reg_offset_addressing_ok_p and
1403 (rs6000_legitimate_address_p): Add checks for modes that only can
1404 do reg+reg addressing. Start adding VSX support.
1405 (rs6000_legitimize_reload_address): Ditto.
1406 (rs6000_legitimize_address): Ditto.
1407 (rs6000_debug_legitimate_address_p): New debug functions for
1408 -mdebug=addr and -mdebug=cost.
1409 (rs6000_debug_rtx_costs): Ditto.
1410 (rs6000_debug_address_costs): Ditto.
1411 (rs6000_debug_adjust_cost): Ditto.
1412 (rs6000_debug_legitimize_address): Ditto.
1413 (rs6000_legitimize_reload_address_ptr): Point to call normal
1414 function or debug function. Make functions called via pointer
1416 (rs6000_mode_dependent_address_ptr): Ditto.
1417 (rs6000_secondary_reload_class_ptr): Ditto.
1418 (rs6000_hard_regno_mode_ok): Add preliminary VSX support.
1419 (rs6000_emit_move): Add -mdebug=addr support. Change an abort
1420 into a friendlier error.
1421 (rs6000_init_builtins): Add initial VSX support.
1422 (rs6000_adjust_cost): Fix some spacing issues.
1424 * config/rs6000/rs6000.h (enum reg_class): Add VSX_REGS.
1425 (REG_CLASS_NAMES): Ditto.
1426 (REG_CLASS_CONTENTS): Ditto.
1427 (PREFERRED_RELOAD_CLASS): Move from a macro to calling through a
1428 pointer, to add -mdebug=addr support.
1429 (CANNOT_CHANGE_MODE_CLASS): Ditto.
1430 (SECONDARY_RELOAD_CLASS): Call through a pointer to add
1431 -mdebug=addr support.
1432 (LEGITIMIZE_RELOAD_ADDRESS): Ditto.
1433 (GO_IF_MODE_DEPENDENT_ADDRESS): Ditto.
1434 (enum rs6000_builtins): Add RS6000_BUILTIN_BSWAP_HI.
1436 * config/rs6000/rs6000.md (bswaphi*): Add support for swapping
1438 (bswapsi*): Set attribute types for load/store. Add combiner
1439 patterns to eliminate zero extend on 64-bit.
1440 (bswapdi*): Add support for swapping 64-bit values. Use ldbrx and
1441 stdbrx if the hardware supports those instructions.
1443 2009-06-25 Ian Lance Taylor <iant@google.com>
1445 * doc/invoke.texi (Option Summary): Mention -static-libstdc++.
1446 (Link Options): Document -static-libstdc++.
1448 2009-06-25 Andrew Pinski <andrew_pinski@playstation.sony.com>
1451 * config/rs6000/rs6000.c (LOCAL_ALIGNMENT): Redefine to just use
1452 DATA_ALIGNMENT instead.
1454 2009-06-25 Richard Guenther <rguenther@suse.de>
1456 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Disambiguate
1457 indirect references against the callused/escaped solutions.
1458 (call_may_clobber_ref_p_1): Likewise.
1460 2009-06-25 Martin Jambor <mjambor@suse.cz>
1462 PR tree-optimization/40493
1463 * tree-sra.c (sra_modify_expr): Correct BIT_FIELD_REF argument numbers.
1464 (enum unscalarized_data_handling): New type.
1465 (handle_unscalarized_data_in_subtree): Return what has been done.
1466 (load_assign_lhs_subreplacements): Handle left flushes differently.
1467 (sra_modify_assign): Use unscalarized_data_handling, simplified
1468 condition determining whether to remove the statement.
1470 2009-06-25 Basile Starynkevitch <basile@starynkevitch.net>
1472 * doc/plugins.texi (Building GCC plugins): Correct typo in Makefile
1473 excerpt - @ should be doubled for texinfo.
1475 2009-06-24 Ian Lance Taylor <iant@google.com>
1477 * config/arc/arc.c: Include "df.h".
1478 (arc_attribute_table): Make static. Move higher in file.
1479 (arc_address_cost): Call SMALL_INT on INTVAL, not rtx.
1480 (output_shift): Initialize n later to avoid warning.
1481 * config/arm/arm.c (arm_attribute_table): Make static. Move
1483 * config/avr/avr.c (avr_attribute_table): Make static. Move
1485 (reg_class_tab): Change array type from int to enum reg_class.
1486 (avr_jump_mode): Change GET_MODE to GET_CODE when checking for
1488 (out_tsthi, ashlhi3_out): Don't use AS2 with "or" or "and".
1489 (lshrhi3_out): Likewise.
1490 (class_likely_spilled_p): Change return type to bool.
1491 (avr_rtx_costs): Use local code variable with enum type.
1492 * config/avr/avr.md (movmemhi): Use add_reg_note.
1493 (andhi3, andsi3): Don't use AS2 with "and".
1494 (iorhi3, iorsi3): Don't use AS2 with "or".
1495 * config/avr/avr-protos.h (class_likely_spilled_p): Update declaration.
1496 * config/crx/crx.c: Include "df.h".
1497 (crx_attribute_table): Make static.
1498 * config/m32r/m32r.c: Include "df.h".
1499 (m32r_attribute_table): Make static. Move higher in file.
1500 (pop): Use add_reg_note.
1501 (block_move_call): Change 0 to LCT_NORMAL in function call.
1502 * config/m32r/m32r.md (movsi_insn): Remove unused local value.
1503 * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Likewise.
1504 * config/m32r/m32r-protos.h (m32r_compute_function_type): Always
1505 declare, not just when TREE_CODE is defined.
1506 * config/m68hc11/m68hc11.c: Include "expr.h".
1507 (m68hc11_attribute_table): Make static. Move higher in file.
1508 (m68hc11_small_indexed_indirect_p): Change 0 to VOIDmode in
1510 (m68hc11_register_indirect_p): Likewise.
1511 (m68hc11_function_arg_padding): Change return type to enum
1513 (emit_move_after_reload): Use add_reg_note.
1514 (m68hc11_emit_logical): Change code parameter to enum rtx_code.
1515 (m68hc11_split_logical): Likewise.
1516 (m68hc11_rtx_costs): Add local code_and outer_code variables with
1518 * config/m68hc11/predicates.md (reg_or_some_mem_operand): Change 0
1519 to VOIDmode in function call.
1520 * config/m68hc11/m68hc11-protos.h: Don't check TREE_CODE to see if
1522 (m68hc11_split_logical): Update declaration.
1523 (m68hc11_function_arg_padding): Update declaration.
1524 * config/mcore/mcore.c (regno_reg_class): Change form array of int
1525 to array of enum reg_class.
1526 (mcore_attribute_table): Make static. Move higher in file.
1527 (mcore_rtx_costs): Add cast to enum type.
1528 * config/mcore/mcore.h (regno_reg_class): Update declaration.
1529 (GO_IF_LEGITIMATE_INDEX): Add cast to avoid warning.
1530 * config/sh/sh.c (sh_attribute_table): Make static. Move higher
1532 * config/sh/predicates.md (trapping_target_operand): Rename and to
1534 * config/sparc/sparc.c (sparc_attribute_table): Make static. Move
1536 * config/spu/spu.c (spu_attribute_table): Make static. Move
1538 * config/v850/v850.c (v850_attribute_table): Make static. Move
1540 (v850_rtx_costs): Use local code with enum type.
1541 (expand_epilogue): Add cast.
1542 * config/v850/v850-c.c (ghs_pragma_section): Initialize repeat.
1544 2009-06-23 Takashi YOSHII <yoshii.takashi@renesas.com>
1547 * doc/invoke.texi (SH Options): Document -m2a, -m2a-single,
1548 -m2a-single-only and -m2a-nofpu.
1549 * config/sh/sh.opt: Document m2a generates FPU code.
1551 2009-06-24 Anatoly Sokolov <aesok@post.ru>
1553 * defaults.h (CAN_ELIMINATE): Provide default.
1554 * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
1555 * config/alpha/alpha.h (CAN_ELIMINATE): Delete.
1556 * config/m32c/m32c.h (CAN_ELIMINATE): Delete.
1557 * config/spu/spu.h (CAN_ELIMINATE): Delete.
1558 * config/xtensa/xtensa.h (CAN_ELIMINATE): Delete.
1559 * config/moxie/moxie.h (CAN_ELIMINATE): Delete.
1560 * config/cris/cris.h (CAN_ELIMINATE): Delete.
1561 * config/mn10300/mn10300.h (CAN_ELIMINATE): Delete.
1562 * config/pa/pa64-linux.h (CAN_ELIMINATE): Delete.
1563 * config/mmix/mmix.h (CAN_ELIMINATE): Delete.
1565 2009-06-24 DJ Delorie <dj@redhat.com>
1567 * mep-ext-cop.cpu: Fix copyright notice.
1568 * mep-default: Fix copyright notice.
1569 * mep-core: Fix copyright notice.
1570 * mep: Fix copyright notice.
1571 * mep-ivc2: Fix copyright notice.
1572 * mep-c5: Fix copyright notice.
1574 2009-06-24 Denis Chertykov <chertykov@gmail.com>
1576 * doc/contrib.texi (Contributors):
1578 2009-06-24 Andreas Krebbel <krebbel1@de.ibm.com>
1581 * tree-ssa-math-opts.c (execute_optimize_bswap): Convert the bswap
1582 src and dst operands if necessary.
1584 2009-06-23 DJ Delorie <dj@redhat.com>
1587 * config.gcc: Add mep support.
1588 * recog.c: Resurrect validate_replace_rtx_subexp().
1589 * recog.h: Likewise.
1590 * config/mep/: Add new port:
1591 * config/mep/constraints.md: New file.
1592 * config/mep/default.h: New file.
1593 * config/mep/intrinsics.h: New file.
1594 * config/mep/intrinsics.md: New file.
1595 * config/mep/ivc2-template.h: New file.
1596 * config/mep/mep-c5.cpu: New file.
1597 * config/mep/mep-core.cpu: New file.
1598 * config/mep/mep-default.cpu: New file.
1599 * config/mep/mep-ext-cop.cpu: New file.
1600 * config/mep/mep-intrin.h: New file.
1601 * config/mep/mep-ivc2.cpu: New file.
1602 * config/mep/mep-lib1.asm: New file.
1603 * config/mep/mep-lib2.c: New file.
1604 * config/mep/mep-pragma.c: New file.
1605 * config/mep/mep-protos.h: New file.
1606 * config/mep/mep-tramp.c: New file.
1607 * config/mep/mep.c: New file.
1608 * config/mep/mep.cpu: New file.
1609 * config/mep/mep.h: New file.
1610 * config/mep/mep.md: New file.
1611 * config/mep/mep.opt: New file.
1612 * config/mep/predicates.md: New file.
1613 * config/mep/t-mep: New file.
1615 2009-06-23 Ian Lance Taylor <iant@google.com>
1617 * configure.ac: Invoke AC_PROG_CXX. Separate C specific warnings
1618 from loose_warn into c_loose_warn and from strict_warn into
1619 c_strict_warn. Set and substitute warn_cxxflags. Check for
1620 --enable-build-with-cxx. Set and substitute
1621 ENABLE_BUILD_WITH_CXX. Set and substitute HOST_LIBS.
1622 * Makefile.in (CXXFLAGS): New variable.
1623 (C_LOOSE_WARN, C_STRICT_WARN): New variables.
1624 (GCC_WARN_CFLAGS): Add $(C_LOOSE_WARN). Add $(C_STRICT_WARN) if
1625 the default is the same as $(STRICT_WARN).
1626 (GCC_WARN_CXXFLAGS, WARN_CXXFLAGS): New variables.
1627 (CXX): New variable.
1628 (COMPILER): New value if ENABLE_BUILD_WITH_CXX.
1629 (COMPILER_FLAGS, LINKER, LINKER_FLAGS): Likewise.
1630 (ALL_COMPILERFLAGS, ALL_LINKERFLAGS): Likewise.
1631 (HOST_LIBS): New variable.
1632 (GCC_CFLAGS): Add $(C_LOOSE_WARN).
1633 (ALL_CXXFLAGS): New variable.
1634 (LIBS, BACKENDLIBS): Add $(HOST_LIBS).
1635 * doc/install.texi (Configuration): Document
1636 --enable-build-with-cxx, --with-stage1-ldflags,
1637 --with-stage1-libs, --with-boot-ldflags, --with-boot-libs.
1638 * configure: Rebuild.
1640 2009-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1642 * config/arm/arm.c (arm_override_options): Fix braces and formatting
1643 from previous commit.
1645 2009-06-23 Ian Lance Taylor <iant@google.com>
1647 * Makefile.in ($(out_object_file)): Depend upon $(DF_H).
1649 2009-06-23 Ian Lance Taylor <iant@google.com>
1651 * reload.c (alternative_allows_const_pool_ref): Mark mem parameter
1652 with ATTRIBUTE_UNUSED.
1654 2009-06-23 Michael Meissner <meissner@linux.vnet.ibm.com>
1655 Pat Haugen <pthaugen@us.ibm.com>
1656 Revital Eres <eres@il.ibm.com>
1658 * config.in (HAVE_AS_POPCNTD): Add default definition.
1659 (HAVE_AS_LWSYNC): Ditto.
1661 * configure.ac (gcc_cv_as_powerpc_mfpgpr): Provide real binutils
1663 (gcc_cv_as_powerpc_cmpb): Ditto.
1664 (gcc_cv_as_powerpc_dfp): Ditto.
1665 (gcc_cv_as_powerpc_vsx): Ditto.
1666 (gcc_cv_as_powerpc_popcntd): Add feature test for assembler
1667 supporting the popcntd/lwsync instructions.
1668 (gcc_cv_as_powerpc_lwsync): Ditto.
1669 * configure: Regenerate.
1671 * config/rs6000/aix53.h (ASM_CPU_SPEC): Add support for
1672 -mcpu=native and -mcpu=power7.
1673 * config/rs6000/aix61.h (ASM_CPU_SPEC): Ditto.
1675 * config/rs6000/linux64.opt (-mprofile-kernel): Move switch to be
1676 a variable instead of a mask to reduce the number of mask bits.
1677 * config/rs6000/sysv4.opt (-mbit-align): Ditto.
1678 (-mbit-word): Ditto.
1679 (-mregnames): Ditto.
1680 * config/rs6000/rs6000.opt (-mupdate): Ditto.
1681 (-mfused-madd): Ditto.
1683 * config/rs6000/rs6000.opt (-mpopcntd): New switch for non-VSX ISA
1685 (-mvsx): New switch for VSX instructions.
1686 (-misel): Move from a variable to a mask to allow it to be set by
1689 * config/rs6000/rs6000-protos.h (rs6000_hard_regno_nregs): Change
1690 function declaration to an array declaration.
1691 (rs6000_hard_regno_nregs): New external array declaration.
1693 * config/rs6000/t-rs6000 (MD_INCLUDES): Define, add all of the .md
1694 files included by rs6000.md.
1696 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
1697 SET_PROFILE_KERNEL macro to reset the -mprofile-kernel switch.
1699 * config/rs6000/rs6000.c (rs6000_isel): Delete, -misel moved to be
1701 (rs6000_debug_reg): New -mdebug= variables.
1702 (rs6000_debug_addr): Ditto.
1703 (rs6000_debug_cost): Ditto.
1704 (rs6000_pmode): New variable to hold Pmode.
1705 (rs6000_pointer_size): New variable to hold POINTER_SIZE.
1706 (rs6000_class_max_nregs): New array to hold CLASS_MAX_NREGS
1707 calculated at compiler start.
1708 (rs6000_hard_regno_nregs): Change function to an array which holds
1709 HARD_REGNO_NREGS calculated at compiler start.
1710 (rs6000_explicit_options): Delete isel field.
1711 (rs6000_vector_unit): New array to hold which vector unit
1712 supports arithmetic options for a given type.
1713 (rs6000_vector_mem): New array to hold which vector unit supports
1714 memory reference operations for a given type.
1715 (rs6000_vector_align): New array to given the alignment of each
1717 (power7_cost): New basic costs for power7.
1718 (SET_PROFILE_KERNEL): New macro for resetting -mprofile-kernel.
1719 (rs6000_hard_regno_nregs_internal): New function, moved from
1720 HARD_REGNO_NREGS, to calculate the number of registers each hard
1721 register takes for each type.
1722 (rs6000_debug_reg_print): New function for -mdebug=reg support.
1723 (rs6000_debug_vector_unit): New array, map rs6000_vector to string.
1724 (+rs6000_init_hard_regno_mode_ok): New function, move calculation
1725 of HARD_REGNO_NREGS, CLASS_MAX_NREGS, REGNO_REG_CLASS, and vector
1726 unit information here so it is calculated once at compiler startup
1728 (rs6000_override_options): Make -misel a target mask. Add more
1729 power7 target masks. Setup Pmode and POINTER_SIZE. Add initial
1730 VSX support. Add support for -mdebug=reg, -mdebug=addr, and
1732 (POWERPC_MASKS): Add MASK_POPCNTD, MASK_VSX, and MASK_ISEL.
1733 (rs6000_handle_option): Move -misel from variable to target mask.
1734 (rs6000_builtin_mask_for_load): Add VSX support.
1735 (rs6000_conditional_register_usage): Ditto.
1736 (USE_ALTIVEC_FOR_ARG_P): Ditto.
1737 (function_arg_boundary): Ditto.
1738 (rs6000_expand_builtin): Ditto.
1739 (def_builtin): Make abort message a little friendlier.
1740 (rs6000_emit_int_cmove): Add support for 64-bit isel.
1742 * config/rs6000/rs6000.h (ASM_CPU_POWER7_SPEC): Depend on the
1743 assembler support the popcntd instruction instead of a vsx
1744 instruction to enable power7 support.
1745 (ASM_CPU_SPEC): Add support for -mcpu=native and -mcpu=power7.
1746 (EXTRA_SPECS): Add ASM_CPU_NATIVE_SPEC to allow passing the right
1747 option to the assembler if -mcpu=native.
1748 (ASM_CPU_NATIVE_SPEC): Ditto.
1749 (TARGET_POPCNTD): If assembler doesn't support popcntd, turn off
1751 (TARGET_LWSYNC_INSTRUCTION): Define whether it is safe to issue
1752 the lwsync instruction.
1753 (enum processor_type): Add PROCESSOR_POWER7.
1754 (rs6000_debug_reg): New -mdebug= options.
1755 (rs6000_debug_addr): Ditto.
1756 (rs6000_debug_cost): Ditto.
1757 (rs6000_isel): Delete.
1758 (enum rs6000_vector): New enum to say what vector unit we have.
1759 (VECTOR_UNIT_*): New macros to say which vector unit has
1760 arithmetic operations for a given type.
1761 (VECTOR_MEM_*): New macros to say which vector unit has memory
1762 operations for a given type.
1763 (TARGET_LDBRX): Whether the machine supports the ldbrx
1765 (TARGET_ISEL): Delete, -misel moved to be a mask.
1766 (TARGET_ISEL64): New macro for 64-bit isel support.
1767 (UNITS_PER_VSX_WORD): New macro.
1768 (POINTER_SIZE): Move to be an external variable, rather than
1769 calculating whether we are generating 32 ot 64-bit code.
1771 (STACK_BOUNDARY): Add VSX support.
1772 (LOCAL_ALIGNMENT): Ditto.
1773 (SLOW_UNALIGNED_ACCESS): Ditto.
1774 (VSX_REGNO_P): New macro for VSX support.
1775 (VFLOAT_REGNO_P): Ditto.
1776 (VINT_REGNO_P): Ditto.
1777 (VLOGICAL_REGNO_P): Ditto.
1778 (VSX_VECTOR_MODE): Ditto.
1779 (VSX_SCALAR_MODE): Ditto.
1781 (VSX_MOVE_MODE): Ditto.
1782 (VSX_REG_CLASS_P): Ditto.
1783 (HARD_REGNO_NREGS): Instead of calling a function, use an array
1785 (UNITS_PER_SIMD_WORD): Add VSX support.
1786 (MODES_TIEABLE_P): Ditto.
1787 (STARTING_FRAME_OFFSET): Ditto.
1788 (STACK_DYNAMIC_OFFSET): Ditto.
1789 (EPILOGUE_USES): Ditto.
1790 (REGNO_REG_CLASS): Move to array lookup.
1791 (CLASS_MAX_NREGS): Ditto.
1792 (rs6000_vector_reg_class): Add declaration.
1793 (ADDITIONAL_REGISTER_NAMES): Add VSX names for the registers that
1794 overlap with the floating point and Altivec registers.
1796 * config/rs6000/e500.h (CHECK_E500_OPTIONS): Disallow -mvsx.
1798 * config/rs6000/driver-rs6000.c (asm_names): New static array to
1799 give the appropriate asm switches if -mcpu=native.
1800 (host_detect_local_cpu): Add support for "asm".
1801 (host_detect_local_cpu): Follow GNU code guidelines for name.
1803 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Move
1804 -mbit-word to a variable instead of being a target mask.
1806 * config/rs6000/sync.md (lwsync): If the assembler supports it,
1807 emit the lwsync instruction instead of emitting the instruction as
1808 an integer constant.
1810 * config/rs6000/spe.md (spe_fixuns_truncdfsi2): Rename from
1811 fixuns_trundfsi2, move expander into rs6000.md.
1813 * config/rs6000/rs6000.md (cpu): Add power7.
1814 (sel, *ptrsize): New mode attributes for 32/64-bit isel.
1815 (logical predicate patterns): Change the single instruction
1816 primitives that set CR0 to be fast_compare instead of compare.
1818 (popcntwsi2): Add support for ISA 2.06 popcount instructions.
1819 (popcntddi2): Ditto.
1820 (popcount<mode>): Ditto.
1821 (floating multiply/add insns): Name the floating point
1823 (isel_signed_<mode>): Add support for -misel on 64-bit systems.
1824 (isel_unsigned_<mode>): Ditto.
1825 (fixuns_trundfsi2): Move expander here from spe.md.
1826 (smindi3): Define if we have -misel on 64-bit systems.
1831 2009-06-23 Anatoly Sokolov <aesok@post.ru>
1833 * config.gcc (avr-*-rtems*, avr-*-*): Set extra_gcc_objs and
1835 * config/avr/avr.c (avr_current_device): New variable.
1836 (avr_arch_types, avr_mcu_types): Move to avr-deveces.c.
1837 (avr_arch, mcu_type_s): Move to avr.h.
1838 * config/avr/avr.h (base_arch_s). Add reserved2, arch_name and
1839 default_data_section_start fields.
1840 (avr_arch): Moved from avr.c.
1841 (mcu_type_s): Moved from avr.c. Add short_sp, data_section_start and
1842 library_name fields.
1843 (avr_current_device, avr_mcu_types, avr_arch_types,
1844 avr_device_to_arch, avr_device_to_data_start,
1845 avr_device_to_startfiles, avr_device_to_devicelib): Declare.
1846 (EXTRA_SPEC_FUNCTIONS): Define.
1847 (LINK_SPEC): Remove device name to '-m ...' and '-Tdata ...' linker
1848 options mapping. Use device_to_arch and device_to_data_start insted.
1849 (STARTFILE_SPEC): Use device_to_startfile instead of crt_binutils.
1850 (CRT_BINUTILS_SPECS, EXTRA_SPECS): Remove.
1851 * config/avr/t-avr (driver-avr.o, avr-devices.o): New rules.
1852 * config/avr/driver-avr.c: New file.
1853 * config/avr/avr-devices.c: New file.
1855 2009-06-23 Jakub Jelinek <jakub@redhat.com>
1857 * var-tracking.c (unshare_variable): Force initialized to
1858 be VAR_INIT_STATUS_INITIALIZED unless flag_var_tracking_uninit.
1859 (set_variable_part): Likewise.
1860 (struct variable_union_info): Remove pos_src field.
1861 (vui_vec, vui_allocated): New variables.
1862 (variable_union): Pass VAR_INIT_STATUS_UNKNOWN to unshare_variable
1863 unconditionally. Avoid XCVECNEW/free for every sorting, for dst_l
1864 == 1 use a simpler sorting algorithm. Compute pos field right
1865 away, don't fill in pos_src. For dst_l == 2 avoid qsort.
1866 Avoid quadratic comparison if !flag_var_tracking_uninit.
1867 (variable_canonicalize): Pass VAR_INIT_STATUS_UNKNOWN to
1868 unshare_variable unconditionally.
1869 (dataflow_set_different_2): Removed.
1870 (dataflow_set_different): Don't traverse second hash table.
1871 (compute_bb_dataflow): Pass VAR_INIT_STATUS_UNINITIALIZED
1872 unconditionally to var_reg_set or var_mem_set.
1873 (emit_notes_in_bb): Likewise.
1874 (delete_variable_part): Pass VAR_INIT_STATUS_UNKNOWN to
1876 (emit_note_insn_var_location): Don't set initialized to
1877 VAR_INIT_STATUS_INITIALIZED early.
1878 (vt_finalize): Free vui_vec if needed, clear vui_vec and
1880 * rtl.c (rtx_equal_p): Don't implement on top of rtx_equal_p_cb.
1882 * tree-object-size.c (addr_object_size): Instead of checking
1883 for non-NULL TREE_CHAIN of the FIELD_DECL check that there
1884 are no FIELD_DECLs following it.
1886 2009-06-23 Andreas Krebbel <krebbel1@de.ibm.com>
1888 * tree-ssa-math-opts.c (find_bswap): Increase the search depth in
1889 order to match bswaps with signed source operands.
1891 2009-06-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1893 * sdbout.c (sdbout_one_type): Fix braces in switch.
1895 2009-06-23 Richard Guenther <rguenther@suse.de>
1897 * tree-ssa-structalias.c (struct variable_info): Add is_global_var
1899 (var_anything, anything_tree, var_nothing, nothing_tree, var_readonly,
1900 readonly_tree, var_escaped, escaped_tree, var_nonlocal, nonlocal_tree,
1901 var_callused, callused_tree, var_storedanything, storedanything_tree,
1902 var_integer, integer_tree): Remove global variables.
1903 (new_var_info): Do not pass new id, append the new var to the
1904 global variable vector.
1905 (do_ds_constraint): Use is_global_var member of the variable-info.
1906 (new_scalar_tmp_constraint_exp): Adjust.
1907 (create_function_info_for): Likewise.
1908 (create_variable_info_for): Likewise.
1909 (find_what_var_points_to): Remove dead code.
1910 (init_base_vars): Simplify.
1911 (compute_points_to_sets): Adjust.
1913 2009-06-22 Adam Nemet <anemet@caviumnetworks.com>
1915 * combine.c (try_combine): Dump information about the insns we're
1918 2009-06-22 Adam Nemet <anemet@caviumnetworks.com>
1920 * combine.c (combine_simplify_rtx): Remove TRULY_NOOP_TRUNCATION
1921 check when calling force_to_mode on TRUNCATE's operand.
1923 2009-06-22 Ian Lance Taylor <iant@google.com>
1925 * config/rs6000/rs6000.opt: Move msched-epilog before msched-prolog.
1927 2009-06-22 Steven Bosscher <steven@gcc.gnu.org>
1929 * config/arm/arm.md (prologue_use): Set length of fake insn to 0.
1931 2009-06-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1933 * doc/invoke.texi (Link Options): -nodefaultlibs and -nostdlib
1934 override library linkage flags such as -static-libgcc or
1937 2009-06-22 Maxim Kuvyrkov <maxim@codesourcery.com>
1939 * config/m68k/m68k-devices.def: Add line for MCF5221x.
1941 2009-06-22 Ian Lance Taylor <iant@google.com>
1943 * config/linux.opt: Put mglibc ahead of muclibc.
1945 * c-decl.c (diagnose_mismatched_decls): Add -Wc++-compat warning
1946 for duplicate decls.
1948 2009-06-22 Matthias Klose <doko@ubuntu.com>
1950 * Makefile.in (install-plugin): Remove extra `/' after $(DESTDIR).
1952 2009-06-22 Steven Bosscher <steven@gcc.gnu.org>
1955 * c-parser.c (c_parser_objc_message_args): Return error_mark_node
1956 instead of NULL if a parser error occurs.
1958 2009-06-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1960 * dwarf2out.c (dwarf2_debug_hooks): Initialize
1961 non-DWARF2_DEBUGGING_INFO version.
1963 2009-06-22 Kai Tietz <kai.tietz@onevision.com>
1965 * config.gcc (i[34567]86-*-mingw*, x86_64-*-mingw*): Add
1966 i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
1968 * config/i386/mingw32.h (LIBGCC2_HAS_TF_MODE): Define.
1969 (LIBGCC2_TF_CEXT): Define.
1972 2009-06-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1975 * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Fix definition.
1977 2009-06-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1979 * config/arm/arm.c (arm_override_options): Disable
1980 -mcaller-super-interworking and -mcallee-super-interworking.
1981 * doc/invoke.texi (ARM Options): Document this.
1983 2009-06-22 Nathan Sidwell <nathan@codesourcery.com>
1985 * config/arm/arm.c (arm_print_operand): Deal with HIGH.
1986 * config/arm/constraints.md (j): New constraint for movw operands.
1987 (N): Remove thumb2 meaning.
1988 * config/arm/arm.md (*arm_movw): Delete.
1989 (*arm_movsi_insn): Use j constraint for movw instead of N constraint.
1990 * config/arm/vfp.md (*arm_movsi_vfp, *thumb2_movsi_vfp): Likewise.
1991 * config/arm/thumb2.md (*thumb2_movsi_insn): Likewise.
1993 2009-06-22 Martin Jambor <mjambor@suse.cz>
1995 PR tree-optimization/40492
1996 * tree-sra.c (sra_modify_assign): Pass zero offsets to
1997 build_ref_for_offset.
1999 2009-06-22 Shujing Zhao <pearly.zhao@oracle.com>
2001 * alias.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P, CALL_P, NOTE_P and
2002 JUMP_TABLE_DATA_P predicates where applicable.
2003 * auto-inc-dec.c: Ditto.
2004 * builtins.c: Ditto.
2005 * caller-save.c: Ditto.
2007 * cfgcleanup.c: Ditto.
2008 * cfglayout.c: Ditto.
2011 * combine-stack-adj.c: Ditto.
2017 * dwarf2asm.c: Ditto.
2018 * dwarf2out.c: Ditto.
2019 * emit-rtl.c: Ditto.
2025 * function.c: Ditto.
2028 * genpreds.c: Ditto.
2029 * genrecog.c: Ditto.
2031 * ira-costs.c: Ditto.
2032 * ira-lives.c: Ditto.
2035 * lower-subreg.c: Ditto.
2036 * modulo-sched.c: Ditto.
2038 * postreload.c: Ditto.
2039 * print-rtl.c: Ditto.
2048 * sched-vis.c: Ditto.
2050 * sel-sched-ir.c: Ditto.
2051 * simplify-rtx.c: Ditto.
2052 * targhooks.c: Ditto.
2053 * var-tracking.c: Ditto.
2054 * vmsdbgout.c: Ditto.
2056 2009-06-22 Matthias Klose <doko@ubuntu.com>
2058 * Makefile.in (install-plugin): Always use DESTDIR.
2060 2009-06-22 Olivier Hainque <hainque@adacore.com>
2062 * config/pa/pa.c (output_call): Don't optimize post call jumps
2063 into return address adjustments if the call may throw.
2065 2009-06-21 Richard Earnshaw <rearnsha@arm.com>
2067 * arm.c (thumb1_output_casesi): New function.
2068 * arm.h (CASE_VECTOR_PC_RELATIVE): Thumb-1 code is also relative if
2069 optimizing for size or PIC.
2070 (CASE_VECTOR_SHORTEN_MODE): Handle thumb-1.
2071 * arm.md (UNSPEC_THUMB1_CASESI): New constant.
2072 (casesi): Handle Thumb-1 when optimizing for size or PIC.
2073 (thumb1_casesi_internal_pic): New expand rule.
2074 (thumb1_casesi_dispatch): New pattern.
2075 * aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use shortened vectors for
2077 * coff.h (JUMP_TABLES_IN_TEXT_SECTION): Thumb-1 jump tables are now
2078 in the text seciton when PIC or optimizing for size.
2079 * elf.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
2080 * lib1funcs.asm ([__ARM_EABI__]): Add an attribute describing stack
2081 preservation properties of code.
2082 (__gnu_thumb1_case_sqi, __gnu_thumb1_case_uqi): New functions.
2083 (__gnu_thumb1_case_shi, __gnu_thumb1_case_uhi): New functions.
2084 (__gnu_thumb1_case_si): New function.
2085 * t-arm (LIB1ASMSRC): Define here.
2086 (LIB1ASMFUNCS): Add some common functions.
2087 * t-arm-elf (LIB1ASMSRC): Delete.
2088 (LIB1ASMFUNCS): Append to existing set.
2089 * t-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
2090 * t-strongarm-elf (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
2091 * t-symbian (LIB1ASMFUNCS): Likewise.
2092 * t-vxworks (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
2093 * t-wince-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
2095 2009-06-21 Richard Guenther <rguenther@suse.de>
2097 PR tree-optimization/38729
2098 * tree-ssa-loop-niter.c (find_loop_niter_by_eval): Restrict
2099 to loops with a single exit if -fno-expensive-optimizations.
2101 2009-06-21 Jakub Jelinek <jakub@redhat.com>
2103 * var-tracking.c (struct shared_hash_def, shared_hash): New types.
2104 (dataflow_set): Change vars type from htab_t to shared_hash.
2105 (shared_hash_pool, empty_shared_hash): New variables.
2106 (vars_clear): Removed.
2107 (shared_hash_shared, shared_hash_htab, shared_hash_copy,
2108 shared_hash_find_slot_unshare, shared_hash_find_slot,
2109 shared_hash_find_slot_noinsert, shared_hash_find): New
2111 (shared_hash_unshare, shared_hash_destroy): New functions.
2112 (unshare_variable): Unshare set->vars if shared, use
2114 (vars_copy): Use htab_traverse_noresize instead of htab_traverse.
2115 (get_init_value, find_src_set_src, dump_dataflow_set,
2116 clobber_variable_part, emit_notes_for_differences): Use
2118 (dataflow_set_init): Remove second argument, set vars to
2119 empty_shared_hash instead of creating a new htab.
2120 (dataflow_set_clear): Call shared_hash_destroy and set vars
2121 to empty_shared_hash instead of calling vars_clear.
2122 (dataflow_set_copy): Don't call vars_copy, instead just share
2123 the src htab with dst.
2124 (variable_union): Use shared_hash_*, use initially NO_INSERT
2125 lookup if set->vars is shared. Don't keep slot cleared before
2126 calling unshare_variable. Unshare set->vars if needed.
2127 Even ->refcount == 1 vars must be unshared if set->vars is shared
2128 and var needs to be modified.
2129 (variable_canonicalize): New function.
2130 (dataflow_set_union): If dst->vars is empty, just share src->vars
2131 with dst->vars and traverse with variable_canonicalize to canonicalize
2132 and unshare what is needed.
2133 (dataflow_set_different): If old_set and new_set use the same shared
2134 htab, they aren't different. If number of htab elements is different,
2135 htabs are different. Use shared_hash_*.
2136 (dataflow_set_destroy): Call shared_hash_destroy instead of
2138 (compute_bb_dataflow, emit_notes_in_bb, vt_emit_notes): Don't pass
2139 second argument to dataflow_set_init.
2140 (vt_initialize): Likewise. Initialize shared_hash_pool and
2141 empty_shared_hash, move bb in/out initialization afterwards.
2142 Use variable_htab_free instead of NULL as changed_variables del hook.
2143 (variable_was_changed): Change type of second argument to pointer to
2144 dataflow_set. When inserting var into changed_variables, bump
2145 refcount. Unshare set->vars if set is shared htab and slot needs to
2147 (set_variable_part): Use shared_hash_*, use initially NO_INSERT
2148 lookup if set->vars is shared. Unshare set->vars if needed.
2149 Even ->refcount == 1 vars must be unshared if set->vars is shared
2150 and var needs to be modified. Adjust variable_was_changed caller.
2151 (delete_variable_part): Use shared_hash_*. Even ->refcount == 1
2152 vars must be unshared if set->vars is shared and var needs to be
2153 modified. Adjust variable_was_changed caller.
2154 (emit_note_insn_var_location): Don't pool_free var.
2155 (emit_notes_for_differences_1): Initialize empty_var->refcount to 0
2157 (vt_finalize): Call htab_delete on empty_shared_hash->htab and
2158 free_alloc_pool on shared_hash_pool.
2160 2009-06-20 Anthony Green <green@moxielogic.com>
2162 * config/moxie/sfp-machine.h (__gcc_CMPtype, CMPtype): Define.
2163 * config/moxie/moxie.h (LOAD_EXTEND_OP): Define.
2165 2009-06-20 Richard Guenther <rguenther@suse.de>
2167 * tree-ssa-structalias.c (find_func_aliases): For memset use
2168 a constraint from NULL if we memset to zero.
2169 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Add builtins
2170 we explicitly handle that do not read from memory.
2171 (call_may_clobber_ref_p_1): Properly handle builtins that may
2174 2009-06-20 Richard Guenther <rguenther@suse.de>
2176 PR tree-optimization/40495
2177 * tree-ssa-structalias.c (get_constraint_exp_for_temp): Remove.
2178 (new_scalar_tmp_constraint_exp): New function.
2179 (process_constraint): Do not create temporary decls.
2180 (process_all_all_constraints): Likewise.
2181 (handle_const_call): Likewise.
2182 (create_function_info_for): Do not set decl.
2184 2009-06-19 Ian Lance Taylor <iant@google.com>
2186 * config/rs6000/rs6000.c (rs6000_explicit_options): Make static.
2187 (rs6000_attribute_table): Make static; move before use.
2189 2009-06-19 Eric Botcazou <ebotcazou@adacore.com>
2191 * tree.c (substitute_in_expr) <COMPONENT_REF>: Tweak and reformat.
2192 <tcc_vl_exp>: Call process_call_operands on the new CALL_EXPR.
2193 Propagate the TREE_READONLY flag without overwriting it.
2194 (substitute_placeholder_in_expr) <tcc_vl_exp>: Likewise.
2195 Propagate the TREE_READONLY flag onto the result.
2196 (process_call_operands): Move around. Use correct constant value.
2198 2009-06-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2201 * config/arm/arm.c (thumb_shiftable_const): Truncate val to 32 bits.
2202 * config/arm/arm.md: Likewise.
2204 2009-06-19 Ian Lance Taylor <iant@google.com>
2206 * tree-cfg.c (gimple_redirect_edge_and_branch): Change ERROR_MARK
2207 to GIMPLE_ERROR_MARK.
2209 * c-typeck.c (build_conditional_expr): Add op1_original_type and
2210 op2_original_type parameters. Warn about using different enum types.
2211 * c-parser.c (c_parser_conditional_expression): Pass original
2212 types to build_conditional_expr.
2213 * c-tree.h (build_conditional_expr): Update declaration.
2215 2009-06-19 Ian Lance Taylor <iant@google.com>
2217 * config/i386/i386.c (ix86_function_specific_save): Test that
2218 fields match values, rather than testing the values are in a
2221 2009-06-19 Richard Guenther <rguenther@suse.de>
2223 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
2225 (ptr_derefs_may_alias_p): Likewise.
2226 (ptr_deref_may_alias_ref_p_1): New function.
2227 (ptr_deref_may_alias_ref_p): Likewise.
2228 (ref_maybe_used_by_call_p_1): Handle builtins that are not
2229 covered by looking at the ESCAPED solution.
2230 (call_may_clobber_ref_p_1): Likewise.
2231 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
2232 Handle NULL_TREE offset. Do not produce redundant constraints.
2233 (process_all_all_constraints): New helper function.
2234 (do_structure_copy): Use it.
2235 (handle_lhs_call): Likewise.
2236 (find_func_aliases): Handle some builtins with pointer arguments
2237 and/or return values explicitly.
2239 2009-06-19 Ian Lance Taylor <iant@google.com>
2241 * varasm.c (const_rtx_hash_1): Remove const qualifier from shift.
2243 2009-06-19 Ian Lance Taylor <iant@google.com>
2245 * rtl.h (SUBREG_PROMOTED_UNSIGNED_P): Add cast to int.
2247 2009-06-19 Ian Lance Taylor <iant@google.com>
2249 * ggc-page.c (ggc_pch_write_object): Initialize emptyBytes.
2250 * sdbout.c (sdb_debug_hooks): Initialize non-SDB_DEBUGGING_INFO
2253 * c-decl.c (finish_decl): If -Wc++-compat, warn about
2254 uninitialized const.
2256 2009-06-19 Ian Lance Taylor <iant@google.com>
2258 * dse.c (struct store_info): Rename bitmap field to bmap. Change
2261 * c-decl.c (in_struct, struct_types): Remove.
2262 (struct c_binding): Add in_struct field.
2263 (c_binding_ptr): Define type, along with VEC.
2264 (struct c_struct_parse_info): Define.
2265 (struct_parse_info): New static variable.
2266 (bind): Initialize in_struct field.
2267 (start_struct): Remove enclosing_in_struct and
2268 enclosing_struct_types parameters. Add
2269 enclosing_struct_parse_info parameter. Change all callers. Set
2270 struct_parse_info rather than in_struct and struct_types.
2271 (grokfield): If -Wc++-compat and there is a symbol binding for the
2272 field name, set the in_struct flag and push it on the
2273 struct_parse_info->fields vector.
2274 (warn_cxx_compat_finish_struct): New static function.
2275 (finish_struct): Remove enclosing_in_struct and
2276 enclosing_struct_types parameters. Add
2277 enclosing_struct_parse_info parameter. Change all callers. Don't
2278 set C_TYPE_DEFINED_IN_STRUCT here. Call
2279 warn_cxx_compat_finish_struct. Free struct_parse_info and set to
2280 parameter. Only push on struct_types if warn_cxx_compat.
2281 (finish_enum): Only push on struct_types if warn_cxx_compat.
2282 (declspecs_add_type): Add loc parameter. Change all callers.
2283 Change all error calls to error_at. Pass loc, not input_location,
2284 to pedwarn calls. Warn if -Wc++-compat and a typedef name is
2285 defined in a struct. If -Wc++-compat and parsing a struct, record
2286 that a typedef name was used.
2287 * c-parser.c (c_parser_declspecs): Get location to pass to
2289 (c_parser_struct_or_union_specifier): Update calls to start_struct
2291 * c-tree.h (struct c_struct_parse_info): Declare.
2292 (finish_struct, start_struct): Update declarations.
2293 (declspecs_add_type): Update declaration.
2295 2009-06-19 Ian Lance Taylor <iant@google.com>
2297 * c-decl.c (grokdeclarator): If -Wc++-compat, warn about a global
2298 variable with an anonymous type.
2300 2009-06-19 Uros Bizjak <ubizjak@gmail.com>
2302 * see.c: Remove for real.
2304 2009-06-19 Uros Bizjak <ubizjak@gmail.com>
2306 * optabs.h (enum optab_index): Add new OTI_significand.
2307 (significand_optab): Define corresponding macro.
2308 * optabs.c (init_optabs): Initialize significand_optab.
2309 * genopinit.c (optabs): Implement significand_optab using
2310 significand?f2 patterns.
2311 * builtins.c (expand_builtin_mathfn): Handle
2312 BUILT_IN_SIGNIFICAND{,F,L}.
2313 (expand_builtin): Expand BUILT_IN_SIGNIFICAND{,F,L} using
2314 expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
2316 * config/i386/i386.md (significandxf2, significand<mode>2): New
2317 expanders to implement significandf, significand and significandl
2318 built-ins as inline x87 intrinsics.
2320 2009-06-18 Anatoly Sokolov <aesok@post.ru>
2322 * config/avr/avr.c (avr_override_options): Remove setting value of
2323 PARAM_INLINE_CALL_COST.
2325 2009-06-18 Richard Henderson <rth@redhat.com>
2328 * tree-pass.h (TDF_ASMNAME): New.
2329 * tree-dump.c (dump_options): Add asmname.
2330 * doc/invoke.texi: Document it.
2332 * tree-pretty-print.c (maybe_dump_asm_name): Merge into...
2333 (dump_decl_name): ...here.
2334 (dump_function_name): New flags arg; mind TDF_ASMNAME.
2335 (dump_generic_node): Update dump_function_name calls.
2336 (print_call_name): New flags arg; update all dump calls.
2337 * diagnostic.h (print_call_name): Update.
2338 * gimple-pretty-print.c (dump_gimple_call): Update.
2340 2009-06-18 H.J. Lu <hongjiu.lu@intel.com>
2343 * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Add SSE_FIRST_REG.
2345 2009-06-18 Diego Novillo <dnovillo@google.com>
2347 * doc/plugins.texi: Document plugin_is_GPL_compatible.
2348 * plugin.c (str_license): Declare.
2349 (try_init_one_plugin): Assert that the symbol
2350 'plugin_is_GPL_compatible' exists.
2352 2009-06-18 Sergei Dyshel <sergeid@il.ibm.com>
2355 * Makefile.in (OBJS-common): Remove see.o.
2357 * common.opt (fsee): Mark as preserved for backward compatibility.
2358 * opts.c (common_handle_option): Add OPT_fsee to the backward
2359 compatibility section.
2360 * passes.c (init_optimization_passes, pass_see): Remove pass.
2361 * timevar.def (TV_SEE): Remove.
2362 * tree-pass.h (pass_see): Remove declaration.
2363 * doc/invoke.texi (-fsee): Remove documentation.
2365 2009-06-18 Martin Jambor <mjambor@suse.cz>
2367 * tree-sra.c: Include statistics.h
2368 (sra_stats): New variable.
2369 (sra_initialize): Clear sra_stats.
2370 (create_access_replacement): Increment sra_stats.replacements.
2371 (get_access_replacement): Do not return twice.
2372 (analyze_all_variable_accesses): Increment statistics counter by the
2373 number of scalarized aggregates.
2374 (generate_subtree_copies): Increment sra_stats.subtree_copies.
2375 (sra_modify_expr): Increment sra_stats.exprs.
2376 (load_assign_lhs_subreplacements): Increment sra_stats.subreplacements.
2377 (sra_modify_assign): Increment sra_stats.exprs,
2378 sra_stats.separate_lhs_rhs_handling and sra_stats.deleted.
2379 (perform_intra_sra): Update statistics counters.
2380 * Makefile.in (tree-sra.o): Add statistics.h to dependencies.
2382 2009-06-18 Sandra Loosemore <sandra@codesourcery.com>
2384 * config/arm/arm.c (TARGET_SCALAR_MODE_SUPPORTED_P): Redefine.
2385 (arm_scalar_mode_supported_p): New function.
2387 2009-06-18 Paul Brook <paul@codesourcery.com>
2388 Sandra Loosemore <sandra@codesourcery.com>
2390 * config/arm/sfp-machine.h (_FP_NANFRAC_H, _FP_NANSIGN_H): Define.
2391 (__extendhfsf2, __truncsfhf2): Define.
2392 * config/arm/fp16.c: New file.
2393 * config/arm/t-bpabi (LIB2FUNCS_STATIC_EXTRA): Add fp16.c.
2394 * config/arm/t-symbian (LIB2FUNCS_STATIC_EXTRA): Add fp16.c.
2396 2009-06-18 Sandra Loosemore <sandra@codesourcery.com>
2398 * doc/extend.texi (Half-Precision): New section.
2399 * doc/invoke.texi (Option Summary): List -mfp16-format.
2400 (ARM Options): List neon-fp16 as -mfpu value. Document -mfp16-format.
2401 * config/arm/arm.opt (mfp16-format=): New.
2402 * config/arm/arm.c: Include intl.h.
2403 (TARGET_INVALID_PARAMETER_TYPE): Redefine.
2404 (TARGET_INVALID_RETURN_TYPE): Redefine.
2405 (TARGET_PROMOTED_TYPE): Redefine.
2406 (TARGET_CONVERT_TO_TYPE): Redefine.
2407 (arm_fp16_format): Define.
2408 (all_fpus): Add entry for neon-fp16.
2409 (fp_model_for_fpu): Likewise.
2410 (struct fp16_format): Declare.
2411 (all_fp16_formats): Define.
2412 (arm_init_libfuncs): Add entries for HFmode conversions and arithmetic
2414 (arm_override_options): Set arm_fp16_format. Call sorry for fp16
2416 (arm_legitimate_index_p): Treat HFmode like HImode.
2417 (thumb1_legitimate_address_p): Make it recognize HFmode constants.
2418 (coproc_secondary_reload_class): Special-case HFmode.
2419 (arm_print_operand): Add 'z' specifier for vld1.16/vst1.16.
2420 (arm_hard_regno_mode_ok): Allow HFmode values in VFP registers.
2421 (arm_init_fp16_builtins): New.
2422 (arm_init_builtins): Call it.
2423 (arm_invalid_parameter_type): New.
2424 (arm_invalid_return_type): New.
2425 (arm_promoted_type): New.
2426 (arm_convert_to_type).
2427 (arm_file_start): Deal with neon-fp16 as fpu_name. Emit tag for fp16
2429 (arm_emit_fp16_const): New function.
2430 (arm_mangle_type): Mangle __fp16 as "Dh".
2431 * config/arm/arm.h (TARGET_VFPD32): Make it know about
2433 (TARGET_NEON_FP16): New.
2434 (TARGET_NEON): Make it know about FPUTYPE_NEON_FP16.
2435 (enum fputype): Add FPUTYPE_NEON_FP16.
2436 (enum arm_fp16_format_type): Declare.
2437 (arm_fp16_format): Declare.
2438 (LARGEST_EXPONENT_IS_NORMAL): Define.
2439 * config/arm/arm-protos.h (arm_emit_fp16_const): Declare.
2440 * config/arm/arm-modes.def (HFmode): Define.
2441 * config/arm/vfp.md: (*movhf_vfp): New.
2444 * config/arm/arm.md: (fpu): Add neon_fp16.
2445 (floatsihf2, floatdihf2): New.
2446 (fix_trunchfsi2, fix_trunchfdi2): New.
2450 (*arm32_movhf): New.
2451 (*thumb1_movhf): New.
2452 (consttable_2): Add check for HFmode constants.
2453 (consttable_4): Handle HFmode constants.
2455 2009-06-18 Uros Bizjak <ubizjak@gmail.com>
2457 * convert.c (convert_to_integer): Convert (int)logb() into ilogb().
2459 2009-06-17 Olivier Hainque <hainque@adacore.com>
2461 * collect2.c (main): Use CONST_CAST2 to perform char ** to
2462 const char ** conversion in AIX specific section.
2464 2009-06-17 H.J. Lu <hongjiu.lu@intel.com>
2466 * config/i386/i386.c (ix86_special_builtin_type): Remove
2467 UINT64_FTYPE_PINT. Add UINT64_FTYPE_PUNSIGNED.
2468 (bdesc_special_args): Updated.
2469 (ix86_init_mmx_sse_builtins): Likewise.
2470 (ix86_expand_special_args_builtin): Likewise.
2472 2009-06-17 Richard Henderson <rth@redhat.com>
2474 * tree-pretty-print.c (maybe_dump_asm_name): New.
2475 (dump_decl_name): Use it.
2476 (PRINT_FUNCTION_NAME): Merge into...
2477 (dump_function_name): ... here. Use maybe_dump_asm_name.
2479 2009-06-17 Cary Coutant <ccoutant@google.com>
2481 * dbxout.c (dbxout_source_line): Add is_stmt parameter.
2483 * debug.c (struct gcc_debug_hooks): Change placeholder for
2485 (debug_nothing_int_charstar_int): Replaced by...
2486 (debug_nothing_int_charstar_int_bool): ...this.
2487 * debug.h (struct gcc_debug_hooks): Add is_stmt parameter to
2488 source_line prototype.
2489 (debug_nothing_int_charstar_int): Replaced by...
2490 (debug_nothing_int_charstar_int_bool): ...this.
2491 * defaults.h (SUPPORTS_DISCRIMINATOR): New constant.
2492 * dwarf2out.c (dwarf2out_source_line): Add is_stmt parameter.
2493 Output is_stmt operand when necessary.
2494 * final.c (final_scan_insn): Pass is_stmt to source_line debug hook.
2495 (notice_source_line): Add is_stmt parameter.
2496 * sdbout.c (sdbout_source_line): Add is_stmt parameter.
2497 * vmsdbgout.c (vmsdbgout_source_line): Add is_stmt parameter.
2499 * xcoffout.c (xcoffout_source_line): Add is_stmt parameter.
2500 * xcoffout.h (xcoffout_source_line): Add is_stmt parameter.
2502 2009-06-17 Ian Lance Taylor <iant@google.com>
2504 * expr.c (struct move_by_pieces_d): Rename from move_by_pieces.
2506 (struct store_by_pieces_d): Rename from store_by_pieces. Change
2509 2009-06-17 Adam Nemet <anemet@caviumnetworks.com>
2511 * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS,
2512 STRIP_USELESS_TYPE_CONVERSION): Use tree_strip_nop_conversions,
2513 tree_strip_sign_nop_conversions and
2514 tree_ssa_strip_useless_type_conversions rather than stripping
2515 the operations here.
2516 (tree_strip_nop_conversions, tree_strip_sign_nop_conversions):
2518 * gimple.h (tree_ssa_strip_useless_type_conversions): Declare it.
2519 * tree-ssa.c (tree_ssa_strip_useless_type_conversions): New function.
2520 * tree.c (tree_nop_conversion, tree_sign_nop_conversion,
2521 tree_strip_nop_conversions, tree_strip_sign_nop_conversions): New
2524 2009-06-17 Michael Eager <eager@eagercon.com>
2526 * config/rs6000/constraints.md (register_constraint "d"): New.
2527 * config/rs6000/dfp.md (movsd_store, extendsddd2, extendsdtd2,
2528 truncddsd2, *negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
2529 *movdd_hardfloat32, *movdd_hardfloat64_mfpgpr, *movdd_hardfloat64,
2530 *negtd2_fp, *abstd2_fpr, *nabstd2_fpr, *movtd_internal, extendddtd2,
2531 trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
2532 divtd3, *cmpdd_internal1, *cmptd_internal1, floatditd2, ftruncdd2,
2533 fixdddi2, ftrunctd2, fixtddi2): replace 'f' constraint with 'd'
2534 * config/rs6000/ppu_intrinsics.h (__mffs, __mtfsf, __mtfsfi, __fabs,
2535 __fnabs, __fmadd, __fmsub, __fnmadd, __fnmsub, __fsel, __frsqrte,
2536 __fsqrt, __fmul, __fmuls, __frsp, __fcfid, __fctid, __fctidz, __fctiw,
2538 * config/rs6000/rs6000.md (*extendsfdf2_fpr, *truncdfsf2_fpr,
2539 *fseldfsf4, *negdf2_fpr, *absdf2_fpr, *nabsdf2_fpr, *adddf3_fpr,
2540 *subdf3_fpr, *muldf3_fpr, *divdf3_fpr, recipdf3, fred, sqrtdf2,
2541 *fseldfdf4, *fselsfdf4, *floatsidf2_internal, *floatunssidf2_internal,
2542 *fix_truncdfsi2_internal, fix_truncdfsi2_internal_gfxopt,
2543 fix_truncdfsi2_mfpgpr, fctiwz, btruncdf2, ceildf2, floordf2, rounddf2,
2544 stfiwx, floatdidf2, fix_truncdfdi2, floatdisf2_internal1,
2545 *movdf_hardfloat32, *movdf_hardfloat64_mfpgpr, *movdf_hardfloat64,
2546 *movtf_internal, *extenddftf2_internal, trunctfdf2_internal1,
2547 trunctfdf2_internal2, trunctfsf2_fprs, fix_trunc_helper,
2548 *fix_trunctfsi2_internal, negtf2_internal, *movdi_internal32,
2549 *movdi_mfpgpr, *movdi_internal64, *movdf_update1, *movdf_update2,
2550 *cmpdf_internal1, *cmptf_internal1, *cmptf_internal2): Same.
2551 * doc/md.texi: Describe PowerPC 'd' constraint, update 'f' constraint.
2553 2009-06-16 Ian Lance Taylor <iant@google.com>
2555 * profile.c (total_num_never_executed): Don't define.
2556 (compute_branch_probabilities): Don't count or print
2558 (init_branch_prob): Don't set total_num_never_executed.
2559 (end_branch_prob): Don't print total_num_never_executed.
2561 2009-06-17 David Daney <ddaney@caviumnetworks.com>
2563 * jump.c (cleanup_barriers): Handle case of no insns before a barrier.
2565 2009-06-17 David Edelsohn <edelsohn@gnu.org>
2567 * config/rs6000/dfp.md (nabsdd2_fpr): Correct mode.
2568 (nabstd2_fpr): Same.
2570 2009-06-17 Steve Ellcey <sje@cup.hp.com>
2572 * expr.c (expand_assignment): Change complex type check.
2574 2009-06-17 Basile Starynkevitch <basile@starynkevitch.net>
2576 * doc/plugins.texi (Building GCC plugins): Added new section.
2578 2009-06-17 Ian Lance Taylor <iant@google.com>
2580 * c-pch.c (get_ident): Don't set size of templ array.
2581 (pch_init): Don't set size of partial_pch array.
2583 * c-typeck.c (digest_init): If -Wc++-compat, warn about using a
2584 string constant to intialize an array whose size is the length of
2587 2009-06-17 Richard Guenther <rguenther@suse.de>
2589 PR tree-optimization/40389
2590 * tree-ssa-structalias.c (handle_rhs_call): Restrict NRV case
2591 to addressable types.
2592 * gimple.c (walk_stmt_load_store_addr_ops): Likewise.
2594 2009-06-17 Richard Guenther <rguenther@suse.de>
2597 * tree-chrec.h (build_polynomial_chrec): If we cannot determine
2598 if there is no evolution of left in the loop bail out.
2599 * tree-chrec.c (chrec_fold_multiply_poly_poly): CSE one
2600 chrec_fold_multiply.
2602 2009-06-16 J"orn Rennecke <joern.rennecke@arc.com>
2603 Janis Johnson <janis187@us.ibm.com>
2606 * config/rs6000/rs6000.c (rs6000_emit_move): Don't emit a USE
2607 for the symbol ref of a constant that is the source of a move
2608 - nor for any other not-obvious-label-ref constants.
2610 2009-06-16 Olatunji Ruwase <tjruwase@google.com>
2612 * plugin.c (position_pass): Skip newly inserted pass during list
2613 traversal to avoid repeated insertion.
2615 2009-06-16 Ian Lance Taylor <iant@google.com>
2617 * vec.h (VEC_stack_alloc): Define different version if
2618 GATHER_STATISTICS is defined, to accept and ignore MEM_STAT.
2619 (DEF_VEC_ALLOC_FUNC_P_STACK): Remove MEM_STAT_DECL.
2620 (DEF_VEC_ALLOC_FUNC_O_STACK): Likewise.
2621 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
2623 2009-06-16 H.J. Lu <hongjiu.lu@intel.com>
2625 * config.gcc (extra_headers): Add ia32intrin.h for x86.
2627 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_BSRSI,
2628 IX86_BUILTIN_BSRDI. IX86_BUILTIN_RDPMC, IX86_BUILTIN_RDTSC.
2629 IX86_BUILTIN_RDTSCP. IX86_BUILTIN_ROLQI, IX86_BUILTIN_ROLHI,
2630 IX86_BUILTIN_RORQI and IX86_BUILTIN_RORHI.
2631 (ix86_special_builtin_type): Add UINT64_FTYPE_VOID,
2632 UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
2633 INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
2634 (bdesc_special_args): Add __builtin_ia32_rdtsc and
2635 __builtin_ia32_rdtscp.
2636 (bdesc_args): Add __builtin_ia32_bsrsi, __builtin_ia32_bsrdi,
2637 __builtin_ia32_rolqi, __builtin_ia32_rolhi, __builtin_ia32_rorqi
2638 and __builtin_ia32_rorhi.
2639 (ix86_init_mmx_sse_builtins): Handle UINT64_FTYPE_VOID,
2640 UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
2641 INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
2642 (ix86_expand_args_builtin): Likewise.
2643 (ix86_expand_special_args_builtin): Likewise.
2645 * config/i386/i386.md (UNSPECV_RDTSCP): New.
2646 (UNSPECV_RDTSC): Likewise.
2647 (UNSPECV_RDPMC): Likewise.
2648 (*bsr): Renamed to ...
2650 (*bsr_rex64): Renamed to ...
2654 (*rdpmc_rex64): Likewise.
2657 (*rdtsc_rex64): Likewise.
2659 (*rdtscp): Likewise.
2660 (*rdtscp_rex64): Likewise.
2662 * config/i386/ia32intrin.h: New.
2664 * config/i386/x86intrin.h: Include <ia32intrin.h>.
2666 2009-06-16 Ian Lance Taylor <iant@google.com>
2668 * ira-build.c (copy_info_to_removed_store_destinations):
2669 Initialize parent_a.
2671 2009-06-16 Ian Lance Taylor <iant@google.com>
2673 * c-decl.c (grokdeclarator): Change size_varies to bool.
2675 2009-06-16 Ian Lance Taylor <iant@google.com>
2677 * sel-sched.c: Make forward declarations of move_op_hooks and
2678 fur_hooks explicitly extern.
2680 2009-06-16 Ian Lance Taylor <iant@google.com>
2682 * df-problems.c (df_byte_lr_alloc): Don't set problem_data to itself.
2683 * vec.c (vec_gc_o_reserve_1): Don't set alloc to itself.
2685 2009-06-16 Ian Lance Taylor <iant@google.com>
2687 * resource.c (mark_referenced_resources): Change
2688 include_delayed_effects parameter to bool. Change all callers.
2689 (mark_end_of_function_resources): Likewise.
2690 * reorg.c (insn_references_resource_p): Likewise.
2691 (insn_sets_resource_p): Likewise.
2692 * resource.h (mark_referenced_resources): Update declaration.
2693 (mark_end_of_function_resources): Update declaration.
2695 2009-06-16 David Edelsohn <edelsohn@gnu.org>
2697 * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove -lstdc++.
2699 2009-06-16 David Edelsohn <edelsohn@gnu.org>
2701 * doc/install.texi (*-*-aix): Update explanation of XLC bootstrap.
2702 GCC can bootstrap on AIX with GNU Binutils 2.20.
2704 2009-06-16 Ian Lance Taylor <iant@google.com>
2706 * Makefile.in (tree-vect-stmts.o): Depend upon $(TOPLEV_H).
2708 2009-06-16 Ian Lance Taylor <iant@google.com>
2710 * toplev.h (floor_log2): If GCC_VERSION >= 3004, declare as static
2711 inline, not extern inline.
2712 (exact_log2): Likewise.
2713 * toplev.c (floor_log2): Only define if GCC_VERSION < 3004. Don't
2715 (exact_log2): Likewise, but don't test CTZ_HWI.
2717 2009-06-16 Ian Lance Taylor <iant@google.com>
2719 * bitmap.c (bitmap_clear): Don't declare as inline.
2720 * gimple.c (gimplify_assign): Likewise.
2721 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
2722 * haifa-sched.c (insn_cost): Don't declare with HAIFA_INLINE.
2723 (sched_scan_info): Remove duplicate definition.
2725 2009-06-16 Ian Lance Taylor <iant@google.com>
2727 * c-common.c (skip_evaluation): Don't define.
2728 (c_inhibit_evaluation_warnings): Define global variable.
2729 (overflow_warning): Check c_inhibit_evaluation_warnings rather
2730 than skip_evaluation.
2731 (convert_and_check, warn_for_div_by_zero): Likewise.
2732 * c-common.h (skip_evaluation): Don't declare.
2733 (c_inhibit_evaluation_warnings): Declare.
2734 * c-parser.c (c_parser_typeof_specifier): Set
2735 c_inhibit_evaluation_warnings rather than skip_evaluation.
2736 (c_parser_conditional_expression): Likewise.
2737 (c_parser_binary_expression): Likewise.
2738 (c_parser_sizeof_expression): Likewise.
2739 (c_parser_alignof_expression): Likewise.
2740 * c-typeck.c (build_indirect_ref): Check
2741 c_inhibit_evaluation_warnings rather than skip_evaluation.
2742 (build_conditional_expr, build_binary_op): Likewise.
2744 2009-06-16 Richard Guenther <rguenther@suse.de>
2746 * tree-ssa-alias.c (is_escape_site): Remove.
2747 * tree-ssa-alias.h (enum escape_type): Remove.
2748 (is_escape_site): Likewise.
2749 * tree-ssa-structalias.c (find_func_aliases): Handle escapes
2750 via casts and asms without deferring to is_escape_site.
2752 2009-06-16 Jakub Jelinek <jakub@redhat.com>
2755 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: Don't
2756 use gen_lowpart if op0 has complex mode.
2758 2009-06-16 Richard Guenther <rguenther@suse.de>
2760 * tree-ssa-structalias.c (do_ds_constraint): Stores in global
2761 variables add them to ESCAPED.
2762 (find_func_aliases): Do not make all indirectly stored values escaped.
2764 2009-06-16 Rafael Avila de Espindola <espindola@google.com>
2766 * config/i386/winnt.c (i386_pe_encode_section_info): Update call to
2769 2009-06-16 Martin Jambor <mjambor@suse.cz>
2771 PR tree-optimization/40432
2772 * tree-sra.c (sra_modify_assign): When creating VIEW_CONVERT_EXPR,
2773 check whether we need to force gimple register operand.
2775 2009-06-16 Martin Jambor <mjambor@suse.cz>
2777 PR tree-optimization/40413
2778 * tree-sra.c (load_assign_lhs_subreplacements): Pass offset to
2779 build_ref_for_offset.
2780 (propagate_subacesses_accross_link): Fix a typo in a comment.
2782 2009-06-16 Ira Rosen <irar@il.ibm.com>
2784 * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
2785 with additional parameter.
2786 * tree-vectorizer.h (enum vect_def_type): Add new value
2788 (enum vect_relevant): Add comments.
2789 (vect_is_simple_reduction): Add new argument.
2790 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Add comments.
2791 Detect nested cycles.
2792 (vect_is_simple_reduction): Update documentation, add an argument to
2793 distinguish inner-loop reduction from nested cycle, detect nested
2794 cycles, fix printings and indentation, don't swap operands in case
2796 (get_initial_def_for_reduction): Handle subtraction.
2797 (vect_create_epilog_for_reduction): Add new argument to specify
2799 (vect_finalize_reduction): Handle subtraction, fix comments.
2800 (vectorizable_reduction): Handle nested cycles. In case of nested
2801 cycle keep track of the reduction variable position. Call
2802 vect_is_simple_reduction with additional parameter. Use original
2803 statement code in reduction epilogue for nested cycle. Call
2804 vect_create_epilog_for_reduction with additional parameter.
2805 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Assert
2806 inner-loop vectorization.
2807 (vect_recog_widen_sum_pattern): Likewise.
2808 * tree-vect-stmts.c (process_use): Distinguish between nested cycles
2810 (vect_mark_stmts_to_be_vectorized): Likewise.
2811 (vect_get_vec_def_for_operand): Handle nested cycles.
2813 2009-06-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2815 * doc/invoke.texi (Debugging Options): Fix option index entries
2816 for -fdump-statistics, -frandom-seed add entries for
2817 -fdump-tree-original, -fdump-tree-optimized, -frandom-seed.
2818 (FRV Options): Fix entries for -mTLS, -mtls.
2819 (HPPA Options): Fix entries for -mgnu-ld, -mhp-ld.
2820 (i386 and x86-64 Options): Fix entry for -mno-red-zone.
2821 (M68hc1x Options): Fix @itemx for -mnominmax.
2822 (MCore Options): Fix entry for -mno-lsim.
2823 (MMIX Options): Fix entry for -mabi=mmixware.
2824 (PDP-11 Options): Fix entry for -mbcopy-builtin.
2826 2009-06-16 Basile Starynkevitch <basile@starynkevitch.net>
2828 * doc/plugins.texi (Interacting with the GCC Garbage Collector):
2829 Mention the plugin mode of gengtype.
2830 * doc/gty.texi (Source Files Containing Type Information): Likewise.
2831 * gengtype.c: Updated copyright.
2832 (plugin_files, nb_plugin_files) Added new static variables.
2833 (measure_input_list) Care about plugin_files.
2834 (write_rtx_next): Added early return in plugin mode.
2835 (create_file): Updated copyright year in generated file. Added
2837 (oprintf): Added early return if NULL outf.
2838 (get_output_file_with_visibility): Care of plugin_files.
2839 (get_output_file_name): May return null.
2840 (write_local): Added early return.
2841 (put_mangled_filename): Ditto.
2842 (finish_root_table): Added check for base_files.
2843 (write_roots): Care about null when plugins.
2844 (main): Added plugin mode.
2846 2009-06-15 Ian Lance Taylor <iant@google.com>
2848 * df-problems.c (df_simulate_one_insn_forwards): Fix braces in switch.
2849 * gcov.c (read_count_file): Add braces around variables declared
2852 * c.opt (Wjump-misses-init): New warning.
2853 * c-opts.c (c_common_handle_option): Set warn_jump_misses_init for
2854 -Wall and -Wc++-compat if not already set.
2855 (c_common_post_options): Clear warn_jump_misses_init if it was not
2857 * c-decl.c (struct c_binding): Change type field to a union with
2858 new label field. Make it the first field in the struct. Update
2859 references to type to use u.type instead.
2860 (struct c_spot_bindings): Define.
2861 (struct c_goto_bindings): Define.
2862 (c_goto_bindings_p): Define, along with VECs.
2863 (struct c_label_vars): Define.
2864 (struct c_scope): Add has_label_bindings field.
2865 (bind_label, set_spot_bindings): New static functions.
2866 (decl_jump_unsafe, update_spot_bindings): New static functions.
2867 (update_label_decls): New static function.
2868 (pop_scope): Call update_label_decls. Don't call c_end_vm_scope.
2869 Update binding u.label field to shadowed field.
2870 (c_binding_start_stmt_expr): New function.
2871 (c_binding_end_stmt_expr): New function.
2872 (pushdecl): Don't call c_begin_vm_scope.
2873 (make_label): Add defining and p_label_vars parameters. Change
2875 (lookup_label): Correct test for whether a label has not yet been
2876 defined. Call bind_label rather than bind.
2877 (warn_about_goto): New static function.
2878 (lookup_label_for_goto): New function.
2879 (declare_label): Call bind_label rather than bind.
2880 (check_earlier_gotos): New static function.
2881 (define_label): Don't give errors about jumping into statement
2882 expressions or scopes of variably modified types. Call
2883 set_spot_bindings and check_earlier_gotos. Call bind_label
2884 instead of bind. Don't set label_context_stack_se or
2885 label_context_stack_vm.
2886 (c_get_switch_bindings): New function.
2887 (c_release_switch_bindings): New function.
2888 (c_check_switch_jump_warnings): New function.
2889 (start_function): Don't set label_context_stack_se or
2890 label_context_stack_vm.
2891 (finish_function): Likewise.
2892 * c-typeck.c (label_context_stack_se): Don't define.
2893 (label_context_stack_vm): Don't define.
2894 (c_finish_goto_label): Call lookup_label_for_goto rather than
2895 lookup_label. Don't give errors about jumping into a statement
2896 expression or the scope of a variably modified type. Don't set
2897 label_context_stack_se or label_context_stack_vm.
2898 (struct c_switch): Remove blocked_stmt_expr and blocked_vm
2899 fields. Add bindings field.
2900 (c_start_case): Don't set deleted fields. Set bindings field.
2901 (do_case): Rework order of tests. Don't check blocked_stmt_expr
2902 or blocked_vm. Call c_check_switch_jump_warnings.
2903 (c_finish_case): Don't test blocked_stmt_expr field. Call
2904 c_release_switch_bindings.
2905 (c_begin_stmt_expr): Don't increment blocked_stmt_expr in
2906 c_switch_stack. Don't walk label_context_stack_se labels. Don't
2907 set label_context_stack_se. Call c_bindings_start_stmt_expr.
2908 (c_finish_stmt_expr): Don't decrement blocked_stmt_expr in
2909 c_switch_stack. Don't walk label_context_stack_se labels. Don't
2910 set label_context_stack_se. Call c_bindings_end_stmt_expr.
2911 (c_begin_vm_scope, c_end_vm_scope): Don't define.
2912 * c-tree.h (C_DECL_UNJUMPABLE_STMT_EXPR): Don't define.
2913 (C_DECL_UNDEFINABLE_STMT_EXPR): Don't define.
2914 (C_DECL_UNJUMPABLE_VM): Don't define.
2915 (C_DECL_UNDEFINABLE_VM): Don't define.
2916 (struct c_label_list): Don't define.
2917 (struct c_label_context_se): Don't define.
2918 (struct c_label_context_vm): Don't define.
2919 (struct c_spot_bindings): Declare.
2920 (c_bindings_start_stmt_expr): Declare.
2921 (c_bindings_end_stmt_expr): Declare.
2922 (lookup_label_for_goto): Declare.
2923 (c_get_switch_bindings, c_release_switch_bindings): Declare.
2924 (c_check_switch_jump_warnings): Declare.
2925 (label_context_stack_se, label_context_stack_vm): Don't declare.
2926 (c_finish_goto_label): Update declaration.
2927 (c_begin_vm_scope, c_end_vm_scope): Don't declare.
2928 * doc/invoke.texi (Option Summary): Mention -Wjump-misses-init.
2929 (Warning Options): Document -Wjump-misses-init.
2931 2009-06-15 Jakub Jelinek <jakub@redhat.com>
2933 * tree-object-size.c (addr_object_size): Fix a pasto in the last
2936 2009-06-15 Rafael Avila de Espindola <espindola@google.com>
2938 * cgraph.c (cgraph_make_node_local): Use DECL_COMDAT_GROUP.
2940 2009-06-15 Aldy Hernandez <aldyh@redhat.com>
2942 * except.c (init_eh): Use BUILTINS_LOCATION when calling build_decl.
2944 2009-06-15 Aldy Hernandez <aldyh@redhat.com>
2946 * tree-eh.c (lower_try_finally_switch): Initialize tf_loc.
2948 2009-06-15 Rafael Avila de Espindola <espindola@google.com>
2950 * cgraphunit.c (cgraph_function_versioning,save_inline_function_body):
2951 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
2952 * cgraph.c (cgraph_create_virtual_clone): Use DECL_COMDAT_GROUP.
2953 * config/i386/i386.c (ix86_file_end): Compute DECL_COMDAT_GROUP.
2954 * dwarf2asm.c (dw2_force_const_mem): Update call to
2956 * langhooks-def.h (lhd_comdat_group, LANG_HOOKS_COMDAT_GROUP): Remove.
2957 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_COMDAT_GROUP.
2958 * langhooks.c (lhd_comdat_group): Remove.
2959 * langhooks.h (lang_hooks_for_decls): Remove comdat_group.
2960 * tree.h (DECL_COMDAT_GROUP): New.
2961 (DECL_ONE_ONLY): Use DECL_COMDAT_GROUP.
2962 (tree_decl_with_vis): Add comdat_group. Remove one_only.
2963 (make_decl_one_only): Change signature.
2964 * varasm.c (get_emutls_init_templ_addr, emutls_decl): Update call to
2966 (make_decl_one_only): Change signature.
2967 (default_elf_asm_named_section): Use DECL_COMDAT_GROUP.
2969 2009-06-15 Richard Guenther <rguenther@suse.de>
2972 * tree.c (widest_int_cst_value): Fix bootstrap on 32bit HWI hosts.
2974 2009-06-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2976 * tree-ssa-math-opts.c: Remove extra divide.
2978 2009-06-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2980 * config/s390/s390.md ("bswap<mode>2"): Only available on z900.
2982 2009-06-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2984 * passes.c: Add bswap pass.
2985 * tree-pass.h: Add pass_optimize_bswap declaration.
2986 * tree-ssa-math-opts.c: Include diagnostics.h for print_gimple_stmt.
2987 Include rtl.h, expr.h and optabs.h for optab_handler check.
2988 (struct symbolic_number, pass_optimize_bswap): New definition.
2989 (do_shift_rotate, verify_symbolic_number_p): New functions.
2990 (find_bswap_1, find_bswap, execute_optimize_bswap): New functions.
2991 (gate_optimize_bswap): New function.
2992 * tree.c (widest_int_cst_value): New function.
2993 * tree.h (widest_int_cst_value): Prototype added.
2995 2009-06-14 Steven Bosscher <steven@gcc.gnu.org>
2997 * cfgcleanup.c (old_insns_match_p): Remove code to substitute
2998 REG_EQUAL/REG_EQUIV notes.
3000 2009-06-14 Richard Guenther <rguenther@suse.de>
3003 * gimple.c (walk_stmt_load_store_addr_ops): The LHS of a call
3004 has its address taken if NRV was applied and it is addressable.
3005 * tree-ssa-structalias.c (get_constraint_for_address_of): New
3006 function split out from ...
3007 (get_constraint_for_1): ... here.
3008 (handle_rhs_call): Use it to mark the return slot escaped if
3009 it is addressable and NRV was applied.
3011 2009-06-13 Aldy Hernandez <aldyh@redhat.com>
3013 * config/rs6000/rs6000-protos.h (altivec_resolve_overloaded_builtin):
3014 Change first argument type to location_t.
3015 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Same.
3016 Do not set input_location.
3017 Use loc instead of input_location throughout.
3019 2009-06-13 Richard Guenther <rguenther@suse.de>
3021 PR tree-optimization/40421
3022 * tree-predcom.c (should_unroll_loop_p): Remove.
3023 (tree_predictive_commoning_loop): Use can_unroll_loop_p.
3025 2009-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
3027 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
3028 Add location argument.
3030 2009-06-13 Aldy Hernandez <aldyh@redhat.com>
3032 * config/alpha/alpha.c (alpha_build_builtin_va_list): Pass location to
3034 * config/s390/s390.c (s390_build_builtin_va_list): Same.
3035 (s390_gimplify_va_arg): Pass location to create_artificial_label.
3036 * config/spu/spu-protos.h: Add location to
3037 spu_resolve_overloaded_builtin.
3038 * config/spu/spu.c (spu_build_builtin_va_list): Pass location to
3039 spu_build_builtin_va_list.
3040 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Add location
3041 argument. Pass location to build_function_call_vec.
3042 * config/sh/sh.c (sh_build_builtin_va_list): Pass location to
3044 (emit_fpu_switch): Same.
3045 (sh_gimplify_va_arg_expr): Pass location to create_artificial_label.
3046 * config/xtensa/xtensa.c (xtensa_build_builtin_va_list): Pass location
3047 to build_decl and create_artificial_label.
3048 (xtensa_gimplify_va_arg_expr): Same.
3049 * config/stormy16/stormy16.c (xstormy16_build_builtin_va_list): Same.
3050 (xstormy16_gimplify_va_arg_expr): Same.
3051 * config/iq2000/iq2000.c (iq2000_expand_prologue): Same.
3052 * config/arm/arm.c (arm_build_builtin_va_list): Same.
3053 * config/mips/mips.c (mips_build_builtin_va_list): Same.
3054 (mips16_build_function_stub): Same.
3055 (mips16_build_call_stub): Same.
3057 2009-06-13 Richard Earnshaw <rearnsha@arm.com>
3060 * arm/constraints.md (Pa, Pb): New constraints.
3061 * arm/arm.md (thumb1_addsi3): Support more complex additions. Add a
3062 split pattern to deal with them.
3064 2009-06-13 Joerg Sonnenberger <joerg@britannica.bec.de>
3066 * doc/invoke.texi: Add missing option -Wp,OPTION in list,
3067 fix index entry for -Xpreprocessor.
3069 2009-06-12 Aldy Hernandez <aldyh@redhat.com>
3071 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
3072 Add location argument to build_decl call.
3073 * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Same.
3074 (rs6000_init_builtins): Same.
3075 (spe_init_builtins): Same.
3076 (rs6000_gimplify_va_arg): Add location argument to
3077 create_artificial_label call.
3079 2009-06-12 Steven Bosscher <steven@gcc.gnu.org>
3081 * timevar.def (TV_COMBINE_STACK_ADJUST): New timevar.
3082 * combine-stack-adj.c (pass_stack_adjustments): Use it.
3083 * Makefile.in: Fix GGC dependency for gcse.o.
3085 2009-06-12 Aldy Hernandez <aldyh@redhat.com>
3087 * tree-pretty-print.c (dump_generic_node): Dump column numbers.
3088 * gimple-pretty-print.c (dump_gimple_stmt): Same.
3089 * gimplify.c (gimplify_modify_expr): Set location for GIMPLE_ASSIGNs
3091 * c-parser.c (c_parser_binary_expression): Use current column while
3092 building binary operations.
3093 * common.opt (fshow-column): Enable by default.
3094 * tree-vrp.c (check_array_ref): Use warning_at.
3095 (check_array_bounds): Use location from call back if expr has no
3097 * tree.h: Add location argument to maybe_fold_*.
3098 * tree-ssa-ccp.c (ccp_fold): Pass location to maybe_fold_*.
3099 (maybe_fold_offset_to_array_ref): Add location argument and use it.
3100 (maybe_fold_offset_to_component_ref): Same.
3101 (maybe_fold_offset_to_reference): Same.
3102 (maybe_fold_offset_to_address): Same.
3103 (maybe_fold_stmt_indirect): Same.
3104 (maybe_fold_stmt_addition): Same.
3105 (fold_stmt_r): Pass location to maybe_fold_*.
3106 (fold_gimple_assign): Same.
3107 * c-tree.h: Add location argument to finish_decl,
3108 default_function_array_conversion, store_init_value.
3109 * c-decl.c (define_label): Use error_at.
3110 (c_make_fname_decl): Pass location to finish_decl.
3111 (finish_decl): New location argument.
3112 (build_compound_literal): Pass location to store_init_value.
3113 (grokdeclarator): Pass location to finish_decl.
3115 * c-typeck.c (array_to_pointer_conversion): New location argument.
3116 (function_to_pointer_conversion): Same.
3117 (default_function_array_conversion): Same.
3118 (parser_build_unary_op): Pass location to overflow_warning.
3119 (parser_build_binary_op): Same. Use warning_at.
3120 (build_unary_op): Pass location to array_to_pointer_conversion.
3121 (build_c_cast): Pass location to digest_init.
3122 (build_modify_expr): New location argument.
3123 (convert_for_assignment): Same.
3124 (store_init_value): Same.
3125 (digest_init): Same.
3126 (output_init_element): Pass location to digest_init and
3127 array_to_pointer_conversion.
3128 (c_finish_return): Pass location to convert_for_assignment.
3129 * gimplify.c (gimplify_conversion): Pass location to
3130 maybe_fold_offset_to_address.
3131 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Pass location
3132 to maybe_fold_stmt_addition.
3133 * c-omp.c (c_finish_omp_atomic): Pass new location to
3135 (c_finish_omp_for): Same.
3136 * c-common.c (overflow_warning): New argument.
3137 * c-common.h: New argument to build_modify_expr, overflow_warning.
3138 * c-parser.c (c_parser_declaration_or_fndef): Pass location to
3140 (c_parser_initializer): Pass location to
3141 default_function_array_conversion.
3142 (c_parser_initelt): Same.
3143 (c_parser_initval): Same.
3144 (c_parser_asm_operands): Same.
3145 (c_parser_expr_no_commas): Same. Pass location to build_modify_expr.
3146 (c_parser_conditional_expression): Same.
3147 (c_parser_binary_expression): Add location info to stack. Use it.
3148 (c_parser_unary_expression): Pass location to
3149 default_function_array_conversion, parser_build_unary_op,
3150 build_indirect_ref, c_parser_postfix_expression_after_primary.
3151 (c_parser_postfix_expression_after_primary): New location argument.
3153 (c_parser_expression_conv): Pass location to
3154 default_function_array_conversion.
3155 (c_parser_expr_list): Same.
3156 (c_parser_omp_atomic): Same.
3157 (c_parser_omp_for_loop): Same.
3158 * c-tree.h: (struct c_declarator): Add comment to id_loc.
3159 (build_array_declarator): New argument.
3160 * c-decl.c (build_array_declarator): Add location argument.
3161 (grokdeclarator): Set id_loc for cdk_array.
3162 * c-parser.c (c_parser_direct_declarator_inner): Pass location to
3163 build_array_declarator.
3164 * tree.c (build_omp_clause): Add location argument.
3165 * tree.h (OMP_CLAUSE_HAS_LOCATION): New macro.
3166 (OMP_CLAUSE_LOCATION): New macro.
3167 (struct tree_omp_clause): Add location field.
3168 (build_omp_clause): Add argument.
3169 * testsuite/gcc.dg/gomp/for-1.c: Fix column.
3170 * cp/pt.c (tsubst_omp_for_iterator): Pass location to
3172 * cp/parser.c (cp_parser_omp_var_list_no_open): Same.
3173 (cp_parser_omp_clause_collapse): Same.
3174 (cp_parser_omp_clause_default): Same.
3175 (cp_parser_omp_clause_if): Same.
3176 (cp_parser_omp_clause_nowait): Same.
3177 (cp_parser_omp_clause_num_threads): Same.
3178 (cp_parser_omp_clause_ordered): Same.
3179 (cp_parser_omp_clause_schedule): Same.
3180 (cp_parser_omp_clause_untied): Same.
3181 (cp_parser_omp_for_loop): Same.
3182 (cp_parser_omp_parallel): Pass location to c_split_parallel_clauses.
3183 * c-tree.h (c_start_case): Add location argument.
3184 (c_process_expr_stmt): Same.
3185 (c_finish_goto_*): Same.
3186 * tree-parloops.c (initialize_reductions): Pass location to
3188 (create_parallel_loop): Same.
3189 * fortran/trans-openmp.c (gfc_trans_omp_variable_list): Same.
3190 (gfc_trans_omp_reduction_list): Same.
3191 (gfc_trans_omp_clauses): Same.
3192 (gfc_trans_omp_do): Same.
3193 * c-typeck.c (c_finish_goto_label): Same.
3194 (c_finish_goto_ptr): New location argument.
3195 (c_start_case): Same.
3196 (emit_side_effect_warnings): Same.
3197 (c_process_expr_stmt): Same.
3198 (c_finish_stmt_expr): Same.
3199 (c_finish_omp_clauses): Use error_at instead of error.
3200 * gimplify.c (gimplify_adjust_omp_clauses_1): Pass location to
3202 * c-omp.c (c_split_parallel_clauses): New location argument.
3203 * tree-nested.c (convert_nonlocal_reference_stmt): Pass location
3204 to build_omp_clause.
3205 (convert_local_reference_stmt): Same.
3206 (convert_gimple_call): Same.
3207 * c-common.h (c_split_parallel_clauses): New argument.
3208 * c-parser.c (c_parser_statement_after_labels): Pass location to
3209 c_finish_goto_label.
3210 (c_parser_switch_statement): Pass location to c_start_case.
3211 (c_parser_for_statement): Pass location to c_finish_expr_stmt,
3212 and c_process_expr_stmt.
3213 (c_parser_omp_variable_list): Add location argument.
3214 (c_parser_omp_clause_collapse): Pass location to build_omp_clause.
3215 (c_parser_omp_clause_default): Same.
3216 (c_parser_omp_clause_if): Same.
3217 (c_parser_omp_clause_num_threads): Same.
3218 (-c_parser_omp_clause_ordered): Same.
3219 (c_parser_omp_clause_reduction): Pass location to
3220 c_parser_omp_variable_list.
3221 (c_parser_omp_clause_schedule): Pass location to build_omp_clause.
3222 (c_parser_omp_clause_untied): Same.
3223 (c_parser_omp_for_loop): Pass location to c_process_expr_stmt.
3224 (c_parser_omp_parallel): Pass location to c_split_parallel_clauses.
3226 * c-tree.h (check_for_loop_decls, undeclared_variable,
3227 build_component_ref, build_array_ref, build_external_ref,
3228 c_expr_sizeof_expr, c_expr_sizeof_type, parser_build_unary_op,
3229 build_conditional_expr, build_compound_expr, c_cast_expr,
3230 build_c_cast, build_asm_expr, c_end_compound_stmt, c_finish_stmt_expr,
3231 c_finish_return, c_finish_omp_parallel, c_finish_omp_task): New
3233 * c-semantics.c (build_stmt): Same.
3234 (build_case_label): Same.
3235 * c-decl.c (c_finish_incomplete_decl): Pass location on down.
3236 (undeclared_variable): New argument.
3238 (lookup_label): Pass location on down.
3239 (define_label): Same.
3240 (finish_decl): Same.
3241 (build_compound_literal): Same.
3242 (finish_struct): Same.
3243 (finish_function): Do not set location here.
3244 (check_for_loop_decls): New argument.
3245 * tree.c (save_expr): Set location.
3246 (build_empty_stmt): New argument.
3247 * tree.h (build_empty_stmt): New argument to build_empty_stmt.
3248 (CAN_HAVE_LOCATION_P): Make sure we have a non empty node.
3249 * builtins.c (gimplify_va_arg_expr): Use locations.
3250 (expand_builtin_sync_operation): Same.
3251 * c-typeck.c (build_component_ref): New argument.
3252 (build_array_ref): Same.
3253 (build_external_ref): Same.
3254 (c_expr_sizeof_expr): Same.
3255 (c_expr_sizeof_type): Same.
3256 (parser_build_unary_op): Same.
3257 (build_conditional_expr): Same.
3258 (build_compound_expr): Pass location on down.
3259 (build_compound_expr): New argument.
3260 (build_c_cast): Same.
3261 (c_cast_expr): Same.
3262 (build_asm_expr): Same.
3263 (c_finish_return): Same.
3264 (c_process_expr_stmt): Pass location on down.
3265 (c_finish_stmt_expr): New argument.
3266 (push_clenaup): Same.
3267 (c_finish_omp_parallel): Same.
3268 (c_finish_omp_task): Same.
3269 * gimplify.c (gimplify_call_expr): Pass location on down.
3270 * c-omp.c (c_finish_omp_master): New argument.
3271 (c_finish_omp_critical): Same.
3272 (c_finish_omp_ordered): Same.
3273 (c_finish_omp_barrier): Same.
3274 (-c_finish_omp_taskwait): Same.
3275 (c_finish_omp_atomic): Same.
3276 (c_finish_omp_flush): Same.
3277 * tree-inline.c (copy_tree_body_r): Pass location on down.
3278 (inline_forbidden_p): Remove use of input_location.
3279 * c-gimplify.c (c_build_bind_expr): New argument.
3280 * c-common.c (c_common_truthvalue_conversion): Pass location on down.
3281 (c_sizeof_or_alignof_type): New argument.
3282 (c_alignof_expr): Same.
3283 (build_va_arg): Same.
3284 (c_add_case_label): Same.
3285 * c-common.h (c_sizeof_or_alignof_type, c_alignof_expr,
3286 c_sizeof, c_alignof, build_va_arg, build_stmt, build_case_label,
3287 c_build_bind_expr, objc_build_selector_expr, objc_build_throw_stmt,
3288 c_finish_omp_master, c_finish_omp_critical, c_finish_omp_ordered,
3289 c_finish_omp_barrier, c_finish_omp_atomic, c_finish_omp_flush,
3290 c_finish_omp_taskwait, c_finish_omp_for, c_split_parallel_clauses):
3292 * stub-objc.c (objc_build_selector_expr): Same.
3293 (objc_build_throw_stmt): Same.
3294 * c-parser.c (c_parser_declaration_or_fndef): Pass location on down.
3295 (c_parser_initelt): Same.
3296 (c_parser_compound_statement): Same.
3297 (c_parser_compound_statement_nostart): Same.
3298 (c_parser_label): Same.
3299 (c_parser_statement_after_labels): Same.
3300 (c_parser_if_body): Same.
3301 (c_parser_else_body): Same.
3302 (c_parser_if_statement): Same.
3303 (c_parser_switch_statement): Same.
3304 (c_parser_while_statement): Same.
3305 (c_parser_do_statement): Same.
3306 (c_parser_for_statement): Same.
3307 (c_parser_asm_statement): Same.
3308 (c_parser_conditional_expression): Same.
3309 (c_parser_binary_expression): Same.
3310 (c_parser_cast_expression): Same.
3311 (c_parser_unary_expression): Same.
3312 (c_parser_sizeof_expression): Same.
3313 (c_parser_alignof_expression): Same.
3314 (c_parser_postfix_expression): Same.
3315 (c_parser_expression): Same.
3316 (c_parser_objc_receiver): Same.
3317 (c_parser_omp_variable_list): Same.
3318 (c_parser_omp_structured_block): Same.
3319 (c_parser_omp_atomic): New argument.
3320 (c_parser_omp_barrier): Same.
3321 (c_parser_omp_critical): Same.
3322 (c_parser_omp_flush): Pass location on down.
3323 (c_parser_omp_for_loop): New argument.
3324 (c_parser_omp_for): Same.
3325 (c_parser_omp_master): Same.
3326 (c_parser_omp_ordered): Same.
3327 (c_parser_omp_sections_scope): Same.
3328 (c_parser_omp_sections): Same.
3329 (c_parser_omp_parallel): Same.
3330 (c_parser_omp_single): Same.
3331 (c_parser_omp_task): Same.
3332 (c_parser_omp_taskwait): Pass location on down.
3333 (c_parser_omp_construct): Same.
3334 (c_parser_omp_threadprivate): Same.
3335 * dwarf2asm.c, targhooks.c, optabs.c, tree.c, tree.h, target.h,
3336 builtins.c, omp-low.c, cgraphunit.c, tree-call-cdce.c,
3337 tree-ssa-alias.c, gimple-low.c, c-tree.h, expr.c, tree-parloops.c,
3338 c-decl.c, tree-eh.c, langhooks.c, function.c, stor-layout.c,
3339 c-typeck.c, gimplify.c, c-pragma.c, expmed.c, except.c, coverage.c,
3340 emit-rtl.c, cfgexpand.c, tree-mudflap.c, varasm.c, tree-nested.c,
3341 rtl.h, tree-inline.c, tree-profile.c, c-common.c, c-common.h,
3342 tree-switch-conversion.c, tree-cfg.c, ipa-struct-reorg.c, c-parser.c,
3343 config/i386/i386.c, stmt.c:
3344 Add location argument to the following function definitions and/or
3345 function calls: build_decl, objcp_start_struct, objcp_finish_struct,
3346 start_struct, finish_struct, PUSH_FIELD, create_artificial_label,
3347 cp_make_fname_decl, pushtag, implicitly_declare, c_make_fname_decl,
3348 build_compound_literal, parser_xref_tag, resolve_overloaded_builtin,
3349 do_case, c_finish_bc_stmt, build_compound_literal,
3350 build_function_call.
3351 * c-decl.c (build_compound_literal): Add location argument.
3352 Make all diagnostic calls use location.
3353 (start_struct): Same.
3354 (finish_struct): Same.
3356 (build_enumerator): Same.
3357 (start_function): Same.
3358 (grokdeclarator): Make all diagnostic calls use location.
3359 (store_parm_decls_oldstyle): Same.
3360 * c-typeck.c (build_function_call): Add location argument.
3361 Make all diagnostic calls use location.
3363 (c_finish_bc_stmt): Same.
3364 * tree-nested.c (get_trampoline_type): Add argument.
3365 Pass location to build_decl.
3366 (lookup_tramp_for_decl): Pass location to get_trampoline_type.
3367 * rtl.h (RTL_LOCATION): New.
3368 * c-common.c (c_add_case_label): Add location argument.
3369 Make all diagnostic calls use location.
3370 * c-common.h: Add location argument to make_fname_decl, do_case,
3371 c_add_case_label, build_function_call, resolve_overloaded_builtin.
3372 * c-parser.c (c_parser_enum_specifier): Rename ident_loc to enum_loc.
3373 Set it appropriately for every case. Pass enum_loc to start_enum
3374 call. Pass value_loc first to build_enumerator. Pass enum_loc to
3376 (c_parser_struct_or_union_specifier): Save location. Use it for
3377 start_struct, finish_struct, and parser_xref_tag.
3379 2009-06-12 Ian Lance Taylor <iant@google.com>
3381 * fold-const.c (fold_unary): Rename local variable and to and_expr.
3383 * c-opts.c (c_common_handle_option): For -Wc++-compat set
3384 cpp_opts->warn_cxx_operator_names.
3386 2009-06-12 Andrew Pinski <andrew_pinski@playstation.sony.com>
3389 * tree-ssa-sccvn.c (visit_reference_op_load): If vn_reference_lookup
3390 is returns NULL and OP is a VCE, look through the VCE.
3392 2009-06-12 Ian Lance Taylor <iant@google.com>