1 2009-06-07 Paolo Bonzini <bonzini@gnu.org>
3 PR rtl-optimization/26854
4 * timevar.def: Remove TV_DF_RU, add TV_DF_MD.
5 * df-problems.c (df_rd_add_problem): Fix comment.
6 (df_md_set_bb_info, df_md_free_bb_info, df_md_alloc,
7 df_md_simulate_artificial_defs_at_top,
8 df_md_simulate_one_insn, df_md_bb_local_compute_process_def,
9 df_md_bb_local_compute, df_md_local_compute, df_md_reset,
10 df_md_transfer_function, df_md_init, df_md_confluence_0,
11 df_md_confluence_n, df_md_free, df_md_top_dump, df_md_bottom_dump,
12 problem_MD, df_md_add_problem): New.
13 * df.h (DF_MD, DF_MD_BB_INFO, struct df_md_bb_info, df_md,
14 df_md_get_bb_info): New.
15 DF_LAST_PROBLEM_PLUS1): Adjust.
17 * Makefile.in (fwprop.o): Include domwalk.h.
18 * fwprop.c: Include domwalk.h.
19 (reg_defs, reg_defs_stack): New.
20 (bitmap_only_bit_between): Remove.
22 (process_uses): Use reg_defs and local_md instead of
23 bitmap_only_bit_between and local_rd.
24 (single_def_use_enter_block): New, from build_single_def_use_links.
25 (single_def_use_leave_block): New.
26 (build_single_def_use_links): Remove code moved to
27 single_def_use_enter_block, invoke domwalk.
28 (use_killed_between): Adjust comment.
30 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
32 * bitmap.h (bitmap_ior_and_into): New.
33 * bitmap.c (bitmap_ior_and_into): New.
35 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
37 * domwalk.h (struct dom_walk_data): Remove all callbacks except
38 before_dom_children_before_stmts and after_dom_children_after_stmts.
39 Rename the two remaining callbacks to just before_dom_children and
40 after_dom_children. Remove other GIMPLE statement walking bits.
41 * domwalk.c (walk_dominator_tree): Remove now unsupported features.
42 * graphite.c: Do not include domwalk.h.
43 * tree-into-ssa.c (interesting_blocks): New global.
44 (struct mark_def_sites_global_data): Remove it and names_to_rename.
45 (mark_def_sites, rewrite_stmt, rewrite_add_phi_arguments,
46 rewrite_update_stmt, rewrite_update_phi_arguments): Simplify
47 now that they're not domwalk callbacks.
48 (rewrite_initialize_block): Rename to...
49 (rewrite_enter_block): ... this, place after called functions. Test
50 interesting_blocks, call rewrite_stmt and rewrite_add_phi_arguments.
51 (rewrite_finalize_block): Rename to...
52 (rewrite_leave_block): ... this, place after called functions.
53 (rewrite_update_init_block): Rename to...
54 (rewrite_update_enter_block): ... this, place after called functions.
55 Test interesting_blocks, call rewrite_update_stmt and
56 rewrite_update_phi_arguments.
57 (rewrite_update_fini_block): Rename to...
58 (rewrite_leave_block): ... this, place after called functions.
59 (rewrite_blocks): Remove last argument, simplify initialization of
61 (mark_def_sites_initialize_block): Rename to...
62 (mark_def_sites_block): ... this, call mark_def_sites.
63 (mark_def_sites_blocks): Remove argument, simplify initialization of
65 (rewrite_into_ssa): Adjust for interesting_blocks_being a global.
66 (update_ssa): Likewise.
67 * tree-ssa-dom.c (optimize_stmt): Simplify now that it's not a domwalk
69 (tree_ssa_dominator_optimize): Simplify initialization of walk_data.
70 (dom_opt_initialize_block): Rename to...
71 (dom_opt_enter_block): ... this, place after called functions. Walk
72 statements here, inline propagate_to_outgoing_edges.
73 (dom_opt_finalize_block): Rename to...
74 (dom_opt_leave_block): ... this, place after called functions.
75 * tree-ssa-dse.c (dse_optimize_stmt): Simplify now that it's not a
77 (dse_enter_block, dse_record_phi): New.
78 (dse_record_phis): Delete.
79 (dse_finalize_block): Rename to...
80 (dse_leave_block): ... this.
81 (tree_ssa_dse): Simplify initialization of walk_data.
82 * tree-ssa-loop-im.c (determine_invariantness, move_computations):
83 Adjust initialization of walk_data.
84 * tree-ssa-loop-unswitch.c: Do not include domwalk.h.
85 * tree-ssa-loop-phiopt.c (get_non_trapping):
86 Adjust initialization of walk_data.
87 * tree-ssa-loop-threadedge.c: Do not include domwalk.h.
88 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Simplify now that
89 it's not a domwalk callback.
90 (uncprop_initialize_block): Rename to...
91 (dse_enter_block): ... this, call uncprop_into_successor_phis.
92 (dse_finalize_block): Rename to...
93 (dse_leave_block): ... this.
94 (tree_ssa_uncprop): Simplify initialization of walk_data.
95 * Makefile.in: Adjust dependencies.
97 2009-06-27 Richard Earnshaw <rearnsha@arm.com>
99 * arm.md (casesi): Fix test for Thumb1.
100 (thumb1_casesi_internal_pic): Likewise.
101 (thumb1_casesi_dispatch): Likewise.
103 2009-06-26 Daniel Gutson <dgutson@codesourcery.com>
105 * config/arm/arm-cores.def: Added core cortex-m0.
106 * config/arm/arm-tune.md: Regenerated.
107 * doc/invoke.texi: Added entry for cpu ARM Cortex-M0.
109 2009-06-26 DJ Delorie <dj@redhat.com>
111 * config/mep/mep.opt (mfar): Remove -mfar as it doesn't do anything.
113 * config/mep/mep.c (mep_bundle_insns): Account for the fact that
114 the scheduler doesn't tag jump insns.
116 2009-06-26 H.J. Lu <hongjiu.lu@intel.com>
118 * c-decl.c (merge_decls): Re-indent.
120 2009-06-26 Janis Johnson <janis187@us.ibm.com>
123 * tree.c (real_zerop, real_onep, real_twop, real_minus_onep):
124 Special-case decimal float constants.
126 2009-06-26 Richard Henderson <rth@redhat.com>
128 * function.h (struct function): Add cannot_be_copied_reason,
129 and cannot_be_copied_set.
130 * tree-inline.c (has_label_address_in_static_1): Rename from
131 inline_forbidden_p_2; don't set inline_forbidden_reason here.
132 (cannot_copy_type_1): Rename from inline_forbidden_p_op; likewise
133 don't set inline_forbidden_reason.
134 (copy_forbidden): New function, split out of inline_forbidden_p.
135 (inline_forbidden_p_stmt): Don't check for nonlocal labels here.
136 (inline_forbidden_p): Use copy_forbidden.
137 (tree_versionable_function_p): Likewise.
138 (inlinable_function_p): Merge into tree_inlinable_function_p.
139 (tree_function_versioning): Remap cfun->nonlocal_goto_save_area.
140 * ipa-cp.c (ipcp_versionable_function_p): New function.
141 (ipcp_cloning_candidate_p): Use it.
142 (ipcp_node_modifiable_p): Likewise.
144 2009-06-26 Olatunji Ruwase <tjruwase@google.com>
146 * builtins.c (expand_builtin_alloca): Handle builtin alloca
147 that is marked not to be inlined. Remove flag_mudflap use.
148 * tree-mudflap.c: Rename mf_xform_derefs to mf_xfrom_statements.
149 (mf_xform_statements): Mark builtin alloca calls as un-inlineable.
151 2009-06-26 Steve Ellcey <sje@cup.hp.com>
154 * config/pa/t-pa-hpux10 (TARGET_LIBGCC2_CFLAGS): Add -frandom-seed.
155 * config/pa/t-pa-hpux11 (TARGET_LIBGCC2_CFLAGS): Ditto.
157 2009-06-26 Kai Tietz <kai.tietz@onevision.com>
159 * config/i386/mingw-tls.c (__mingwthr_key_dtor): Remove for none
161 (__mingwthr_remove_key_dtor): Likewise.
163 2009-06-26 Richard Guenther <rguenther@suse.de>
165 * tree-ssa-structalias.c (do_ds_constraint): Simplify escape
168 2009-06-26 Steven Bosscher <steven@gcc.gnu.org>
171 * ifcvt.c (dead_or_predicable): If predicating MERGE_BB fails,
172 try the non-cond_exec path also.
174 2009-06-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
177 * pa.c (branch_to_delay_slot_p, branch_needs_nop_p): New functions.
178 (output_cbranch): Use new functions.
179 (output_lbranch, output_bb, output_bvb, output_dbra, output_movb):
182 2009-06-25 Michael Meissner <meissner@linux.vnet.ibm.com>
183 Pat Haugen <pthaugen@us.ibm.com>
184 Revital Eres <ERES@il.ibm.com>
186 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_class):
187 Change some of the functions called by macros to being called
188 through a pointer, so debug functions can be inserted if
189 -mdebug=addr or -mdebug=cost.
190 (rs6000_preferred_reload_class_ptr): Ditto.
191 (rs6000_secondary_reload_class_ptr): Ditto.
192 (rs6000_secondary_memory_needed_ptr): Ditto.
193 (rs6000_cannot_change_mode_class_ptr): Ditto.
194 (rs6000_secondary_reload_inner): Ditto.
195 (rs6000_legitimize_reload_address): Ditto.
196 (rs6000_legitimize_reload_address_ptr): Ditto.
197 (rs6000_mode_dependent_address): Ditto.
198 (rs6000_mode_dependent_address_ptr): Ditto.
200 * config/rs6000/rs6000.c (reg_offset_addressing_ok_p): New
201 function to return true if the mode allows reg + integer
203 (virtual_stack_registers_memory_p): New function to return true if
204 the address refers to a virtual stack register.
205 (rs6000_legitimate_offset_address_p): Move code to say whether a
206 mode supports reg+int addressing to reg_offset_addressing_ok_p and
208 (rs6000_legitimate_address_p): Add checks for modes that only can
209 do reg+reg addressing. Start adding VSX support.
210 (rs6000_legitimize_reload_address): Ditto.
211 (rs6000_legitimize_address): Ditto.
212 (rs6000_debug_legitimate_address_p): New debug functions for
213 -mdebug=addr and -mdebug=cost.
214 (rs6000_debug_rtx_costs): Ditto.
215 (rs6000_debug_address_costs): Ditto.
216 (rs6000_debug_adjust_cost): Ditto.
217 (rs6000_debug_legitimize_address): Ditto.
218 (rs6000_legitimize_reload_address_ptr): Point to call normal
219 function or debug function. Make functions called via pointer
221 (rs6000_mode_dependent_address_ptr): Ditto.
222 (rs6000_secondary_reload_class_ptr): Ditto.
223 (rs6000_hard_regno_mode_ok): Add preliminary VSX support.
224 (rs6000_emit_move): Add -mdebug=addr support. Change an abort
225 into a friendlier error.
226 (rs6000_init_builtins): Add initial VSX support.
227 (rs6000_adjust_cost): Fix some spacing issues.
229 * config/rs6000/rs6000.h (enum reg_class): Add VSX_REGS.
230 (REG_CLASS_NAMES): Ditto.
231 (REG_CLASS_CONTENTS): Ditto.
232 (PREFERRED_RELOAD_CLASS): Move from a macro to calling through a
233 pointer, to add -mdebug=addr support.
234 (CANNOT_CHANGE_MODE_CLASS): Ditto.
235 (SECONDARY_RELOAD_CLASS): Call through a pointer to add
236 -mdebug=addr support.
237 (LEGITIMIZE_RELOAD_ADDRESS): Ditto.
238 (GO_IF_MODE_DEPENDENT_ADDRESS): Ditto.
239 (enum rs6000_builtins): Add RS6000_BUILTIN_BSWAP_HI.
241 * config/rs6000/rs6000.md (bswaphi*): Add support for swapping
243 (bswapsi*): Set attribute types for load/store. Add combiner
244 patterns to eliminate zero extend on 64-bit.
245 (bswapdi*): Add support for swapping 64-bit values. Use ldbrx and
246 stdbrx if the hardware supports those instructions.
248 2009-06-25 Ian Lance Taylor <iant@google.com>
250 * doc/invoke.texi (Option Summary): Mention -static-libstdc++.
251 (Link Options): Document -static-libstdc++.
253 2009-06-25 Andrew Pinski <andrew_pinski@playstation.sony.com>
256 * config/rs6000/rs6000.c (LOCAL_ALIGNMENT): Redefine to just use
257 DATA_ALIGNMENT instead.
259 2009-06-25 Richard Guenther <rguenther@suse.de>
261 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Disambiguate
262 indirect references against the callused/escaped solutions.
263 (call_may_clobber_ref_p_1): Likewise.
265 2009-06-25 Martin Jambor <mjambor@suse.cz>
267 PR tree-optimization/40493
268 * tree-sra.c (sra_modify_expr): Correct BIT_FIELD_REF argument numbers.
269 (enum unscalarized_data_handling): New type.
270 (handle_unscalarized_data_in_subtree): Return what has been done.
271 (load_assign_lhs_subreplacements): Handle left flushes differently.
272 (sra_modify_assign): Use unscalarized_data_handling, simplified
273 condition determining whether to remove the statement.
275 2009-06-25 Basile Starynkevitch <basile@starynkevitch.net>
277 * doc/plugins.texi (Building GCC plugins): Correct typo in Makefile
278 excerpt - @ should be doubled for texinfo.
280 2009-06-24 Ian Lance Taylor <iant@google.com>
282 * config/arc/arc.c: Include "df.h".
283 (arc_attribute_table): Make static. Move higher in file.
284 (arc_address_cost): Call SMALL_INT on INTVAL, not rtx.
285 (output_shift): Initialize n later to avoid warning.
286 * config/arm/arm.c (arm_attribute_table): Make static. Move
288 * config/avr/avr.c (avr_attribute_table): Make static. Move
290 (reg_class_tab): Change array type from int to enum reg_class.
291 (avr_jump_mode): Change GET_MODE to GET_CODE when checking for
293 (out_tsthi, ashlhi3_out): Don't use AS2 with "or" or "and".
294 (lshrhi3_out): Likewise.
295 (class_likely_spilled_p): Change return type to bool.
296 (avr_rtx_costs): Use local code variable with enum type.
297 * config/avr/avr.md (movmemhi): Use add_reg_note.
298 (andhi3, andsi3): Don't use AS2 with "and".
299 (iorhi3, iorsi3): Don't use AS2 with "or".
300 * config/avr/avr-protos.h (class_likely_spilled_p): Update
302 * config/crx/crx.c: Include "df.h".
303 (crx_attribute_table): Make static.
304 * config/m32r/m32r.c: Include "df.h".
305 (m32r_attribute_table): Make static. Move higher in file.
306 (pop): Use add_reg_note.
307 (block_move_call): Change 0 to LCT_NORMAL in function call.
308 * config/m32r/m32r.md (movsi_insn): Remove unused local value.
309 * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Likewise.
310 * config/m32r/m32r-protos.h (m32r_compute_function_type): Always
311 declare, not just when TREE_CODE is defined.
312 * config/m68hc11/m68hc11.c: Include "expr.h".
313 (m68hc11_attribute_table): Make static. Move higher in file.
314 (m68hc11_small_indexed_indirect_p): Change 0 to VOIDmode in
316 (m68hc11_register_indirect_p): Likewise.
317 (m68hc11_function_arg_padding): Change return type to enum
319 (emit_move_after_reload): Use add_reg_note.
320 (m68hc11_emit_logical): Change code parameter to enum rtx_code.
321 (m68hc11_split_logical): Likewise.
322 (m68hc11_rtx_costs): Add local code_and outer_code variables with
324 * config/m68hc11/predicates.md (reg_or_some_mem_operand): Change 0
325 to VOIDmode in function call.
326 * config/m68hc11/m68hc11-protos.h: Don't check TREE_CODE to see if
328 (m68hc11_split_logical): Update declaration.
329 (m68hc11_function_arg_padding): Update declaration.
330 * config/mcore/mcore.c (regno_reg_class): Change form array of int
331 to array of enum reg_class.
332 (mcore_attribute_table): Make static. Move higher in file.
333 (mcore_rtx_costs): Add cast to enum type.
334 * config/mcore/mcore.h (regno_reg_class): Update declaration.
335 (GO_IF_LEGITIMATE_INDEX): Add cast to avoid warning.
336 * config/sh/sh.c (sh_attribute_table): Make static. Move higher
338 * config/sh/predicates.md (trapping_target_operand): Rename and to
340 * config/sparc/sparc.c (sparc_attribute_table): Make static. Move
342 * config/spu/spu.c (spu_attribute_table): Make static. Move
344 * config/v850/v850.c (v850_attribute_table): Make static. Move
346 (v850_rtx_costs): Use local code with enum type.
347 (expand_epilogue): Add cast.
348 * config/v850/v850-c.c (ghs_pragma_section): Initialize repeat.
350 2009-06-23 Takashi YOSHII <yoshii.takashi@renesas.com>
353 * doc/invoke.texi (SH Options): Document -m2a, -m2a-single,
354 -m2a-single-only and -m2a-nofpu.
355 * config/sh/sh.opt: Document m2a generates FPU code.
357 2009-06-24 Anatoly Sokolov <aesok@post.ru>
359 * defaults.h (CAN_ELIMINATE): Provide default.
360 * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
361 * config/alpha/alpha.h (CAN_ELIMINATE): Delete.
362 * config/m32c/m32c.h (CAN_ELIMINATE): Delete.
363 * config/spu/spu.h (CAN_ELIMINATE): Delete.
364 * config/xtensa/xtensa.h (CAN_ELIMINATE): Delete.
365 * config/moxie/moxie.h (CAN_ELIMINATE): Delete.
366 * config/cris/cris.h (CAN_ELIMINATE): Delete.
367 * config/mn10300/mn10300.h (CAN_ELIMINATE): Delete.
368 * config/pa/pa64-linux.h (CAN_ELIMINATE): Delete.
369 * config/mmix/mmix.h (CAN_ELIMINATE): Delete.
371 2009-06-24 DJ Delorie <dj@redhat.com>
373 * mep-ext-cop.cpu: Fix copyright notice.
374 * mep-default: Fix copyright notice.
375 * mep-core: Fix copyright notice.
376 * mep: Fix copyright notice.
377 * mep-ivc2: Fix copyright notice.
378 * mep-c5: Fix copyright notice.
380 2009-06-24 Denis Chertykov <chertykov@gmail.com>
382 * doc/contrib.texi (Contributors):
384 2009-06-24 Andreas Krebbel <krebbel1@de.ibm.com>
387 * tree-ssa-math-opts.c (execute_optimize_bswap): Convert the bswap
388 src and dst operands if necessary.
390 2009-06-23 DJ Delorie <dj@redhat.com>
393 * config.gcc: Add mep support.
394 * recog.c: Resurrect validate_replace_rtx_subexp().
396 * config/mep/: Add new port:
397 * config/mep/constraints.md: New file.
398 * config/mep/default.h: New file.
399 * config/mep/intrinsics.h: New file.
400 * config/mep/intrinsics.md: New file.
401 * config/mep/ivc2-template.h: New file.
402 * config/mep/mep-c5.cpu: New file.
403 * config/mep/mep-core.cpu: New file.
404 * config/mep/mep-default.cpu: New file.
405 * config/mep/mep-ext-cop.cpu: New file.
406 * config/mep/mep-intrin.h: New file.
407 * config/mep/mep-ivc2.cpu: New file.
408 * config/mep/mep-lib1.asm: New file.
409 * config/mep/mep-lib2.c: New file.
410 * config/mep/mep-pragma.c: New file.
411 * config/mep/mep-protos.h: New file.
412 * config/mep/mep-tramp.c: New file.
413 * config/mep/mep.c: New file.
414 * config/mep/mep.cpu: New file.
415 * config/mep/mep.h: New file.
416 * config/mep/mep.md: New file.
417 * config/mep/mep.opt: New file.
418 * config/mep/predicates.md: New file.
419 * config/mep/t-mep: New file.
421 2009-06-23 Ian Lance Taylor <iant@google.com>
423 * configure.ac: Invoke AC_PROG_CXX. Separate C specific warnings
424 from loose_warn into c_loose_warn and from strict_warn into
425 c_strict_warn. Set and substitute warn_cxxflags. Check for
426 --enable-build-with-cxx. Set and substitute
427 ENABLE_BUILD_WITH_CXX. Set and substitute HOST_LIBS.
428 * Makefile.in (CXXFLAGS): New variable.
429 (C_LOOSE_WARN, C_STRICT_WARN): New variables.
430 (GCC_WARN_CFLAGS): Add $(C_LOOSE_WARN). Add $(C_STRICT_WARN) if
431 the default is the same as $(STRICT_WARN).
432 (GCC_WARN_CXXFLAGS, WARN_CXXFLAGS): New variables.
434 (COMPILER): New value if ENABLE_BUILD_WITH_CXX.
435 (COMPILER_FLAGS, LINKER, LINKER_FLAGS): Likewise.
436 (ALL_COMPILERFLAGS, ALL_LINKERFLAGS): Likewise.
437 (HOST_LIBS): New variable.
438 (GCC_CFLAGS): Add $(C_LOOSE_WARN).
439 (ALL_CXXFLAGS): New variable.
440 (LIBS, BACKENDLIBS): Add $(HOST_LIBS).
441 * doc/install.texi (Configuration): Document
442 --enable-build-with-cxx, --with-stage1-ldflags,
443 --with-stage1-libs, --with-boot-ldflags, --with-boot-libs.
444 * configure: Rebuild.
446 2009-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
448 * config/arm/arm.c (arm_override_options): Fix braces and formatting
449 from previous commit.
451 2009-06-23 Ian Lance Taylor <iant@google.com>
453 * Makefile.in ($(out_object_file)): Depend upon $(DF_H).
455 2009-06-23 Ian Lance Taylor <iant@google.com>
457 * reload.c (alternative_allows_const_pool_ref): Mark mem parameter
458 with ATTRIBUTE_UNUSED.
460 2009-06-23 Michael Meissner <meissner@linux.vnet.ibm.com>
461 Pat Haugen <pthaugen@us.ibm.com>
462 Revital Eres <eres@il.ibm.com>
464 * config.in (HAVE_AS_POPCNTD): Add default definition.
465 (HAVE_AS_LWSYNC): Ditto.
467 * configure.ac (gcc_cv_as_powerpc_mfpgpr): Provide real binutils
469 (gcc_cv_as_powerpc_cmpb): Ditto.
470 (gcc_cv_as_powerpc_dfp): Ditto.
471 (gcc_cv_as_powerpc_vsx): Ditto.
472 (gcc_cv_as_powerpc_popcntd): Add feature test for assembler
473 supporting the popcntd/lwsync instructions.
474 (gcc_cv_as_powerpc_lwsync): Ditto.
475 * configure: Regenerate.
477 * config/rs6000/aix53.h (ASM_CPU_SPEC): Add support for
478 -mcpu=native and -mcpu=power7.
479 * config/rs6000/aix61.h (ASM_CPU_SPEC): Ditto.
481 * config/rs6000/linux64.opt (-mprofile-kernel): Move switch to be
482 a variable instead of a mask to reduce the number of mask bits.
483 * config/rs6000/sysv4.opt (-mbit-align): Ditto.
486 * config/rs6000/rs6000.opt (-mupdate): Ditto.
487 (-mfused-madd): Ditto.
489 * config/rs6000/rs6000.opt (-mpopcntd): New switch for non-VSX ISA
491 (-mvsx): New switch for VSX instructions.
492 (-misel): Move from a variable to a mask to allow it to be set by
495 * config/rs6000/rs6000-protos.h (rs6000_hard_regno_nregs): Change
496 function declaration to an array declaration.
497 (rs6000_hard_regno_nregs): New external array declaration.
499 * config/rs6000/t-rs6000 (MD_INCLUDES): Define, add all of the .md
500 files included by rs6000.md.
502 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
503 SET_PROFILE_KERNEL macro to reset the -mprofile-kernel switch.
505 * config/rs6000/rs6000.c (rs6000_isel): Delete, -misel moved to be
507 (rs6000_debug_reg): New -mdebug= variables.
508 (rs6000_debug_addr): Ditto.
509 (rs6000_debug_cost): Ditto.
510 (rs6000_pmode): New variable to hold Pmode.
511 (rs6000_pointer_size): New variable to hold POINTER_SIZE.
512 (rs6000_class_max_nregs): New array to hold CLASS_MAX_NREGS
513 calculated at compiler start.
514 (rs6000_hard_regno_nregs): Change function to an array which holds
515 HARD_REGNO_NREGS calculated at compiler start.
516 (rs6000_explicit_options): Delete isel field.
517 (rs6000_vector_unit): New array to hold which vector unit
518 supports arithmetic options for a given type.
519 (rs6000_vector_mem): New array to hold which vector unit supports
520 memory reference operations for a given type.
521 (rs6000_vector_align): New array to given the alignment of each
523 (power7_cost): New basic costs for power7.
524 (SET_PROFILE_KERNEL): New macro for resetting -mprofile-kernel.
525 (rs6000_hard_regno_nregs_internal): New function, moved from
526 HARD_REGNO_NREGS, to calculate the number of registers each hard
527 register takes for each type.
528 (rs6000_debug_reg_print): New function for -mdebug=reg support.
529 (rs6000_debug_vector_unit): New array, map rs6000_vector to
531 (+rs6000_init_hard_regno_mode_ok): New function, move calculation
532 of HARD_REGNO_NREGS, CLASS_MAX_NREGS, REGNO_REG_CLASS, and vector
533 unit information here so it is calculated once at compiler startup
535 (rs6000_override_options): Make -misel a target mask. Add more
536 power7 target masks. Setup Pmode and POINTER_SIZE. Add initial
537 VSX support. Add support for -mdebug=reg, -mdebug=addr, and
539 (POWERPC_MASKS): Add MASK_POPCNTD, MASK_VSX, and MASK_ISEL.
540 (rs6000_handle_option): Move -misel from variable to target mask.
541 (rs6000_builtin_mask_for_load): Add VSX support.
542 (rs6000_conditional_register_usage): Ditto.
543 (USE_ALTIVEC_FOR_ARG_P): Ditto.
544 (function_arg_boundary): Ditto.
545 (rs6000_expand_builtin): Ditto.
546 (def_builtin): Make abort message a little friendlier.
547 (rs6000_emit_int_cmove): Add support for 64-bit isel.
549 * config/rs6000/rs6000.h (ASM_CPU_POWER7_SPEC): Depend on the
550 assembler support the popcntd instruction instead of a vsx
551 instruction to enable power7 support.
552 (ASM_CPU_SPEC): Add support for -mcpu=native and -mcpu=power7.
553 (EXTRA_SPECS): Add ASM_CPU_NATIVE_SPEC to allow passing the right
554 option to the assembler if -mcpu=native.
555 (ASM_CPU_NATIVE_SPEC): Ditto.
556 (TARGET_POPCNTD): If assembler doesn't support popcntd, turn off
558 (TARGET_LWSYNC_INSTRUCTION): Define whether it is safe to issue
559 the lwsync instruction.
560 (enum processor_type): Add PROCESSOR_POWER7.
561 (rs6000_debug_reg): New -mdebug= options.
562 (rs6000_debug_addr): Ditto.
563 (rs6000_debug_cost): Ditto.
564 (rs6000_isel): Delete.
565 (enum rs6000_vector): New enum to say what vector unit we have.
566 (VECTOR_UNIT_*): New macros to say which vector unit has
567 arithmetic operations for a given type.
568 (VECTOR_MEM_*): New macros to say which vector unit has memory
569 operations for a given type.
570 (TARGET_LDBRX): Whether the machine supports the ldbrx
572 (TARGET_ISEL): Delete, -misel moved to be a mask.
573 (TARGET_ISEL64): New macro for 64-bit isel support.
574 (UNITS_PER_VSX_WORD): New macro.
575 (POINTER_SIZE): Move to be an external variable, rather than
576 calculating whether we are generating 32 ot 64-bit code.
578 (STACK_BOUNDARY): Add VSX support.
579 (LOCAL_ALIGNMENT): Ditto.
580 (SLOW_UNALIGNED_ACCESS): Ditto.
581 (VSX_REGNO_P): New macro for VSX support.
582 (VFLOAT_REGNO_P): Ditto.
583 (VINT_REGNO_P): Ditto.
584 (VLOGICAL_REGNO_P): Ditto.
585 (VSX_VECTOR_MODE): Ditto.
586 (VSX_SCALAR_MODE): Ditto.
588 (VSX_MOVE_MODE): Ditto.
589 (VSX_REG_CLASS_P): Ditto.
590 (HARD_REGNO_NREGS): Instead of calling a function, use an array
592 (UNITS_PER_SIMD_WORD): Add VSX support.
593 (MODES_TIEABLE_P): Ditto.
594 (STARTING_FRAME_OFFSET): Ditto.
595 (STACK_DYNAMIC_OFFSET): Ditto.
596 (EPILOGUE_USES): Ditto.
597 (REGNO_REG_CLASS): Move to array lookup.
598 (CLASS_MAX_NREGS): Ditto.
599 (rs6000_vector_reg_class): Add declaration.
600 (ADDITIONAL_REGISTER_NAMES): Add VSX names for the registers that
601 overlap with the floating point and Altivec registers.
603 * config/rs6000/e500.h (CHECK_E500_OPTIONS): Disallow -mvsx.
605 * config/rs6000/driver-rs6000.c (asm_names): New static array to
606 give the appropriate asm switches if -mcpu=native.
607 (host_detect_local_cpu): Add support for "asm".
608 (host_detect_local_cpu): Follow GNU code guidelines for name.
610 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Move
611 -mbit-word to a variable instead of being a target mask.
613 * config/rs6000/sync.md (lwsync): If the assembler supports it,
614 emit the lwsync instruction instead of emitting the instruction as
617 * config/rs6000/spe.md (spe_fixuns_truncdfsi2): Rename from
618 fixuns_trundfsi2, move expander into rs6000.md.
620 * config/rs6000/rs6000.md (cpu): Add power7.
621 (sel, *ptrsize): New mode attributes for 32/64-bit isel.
622 (logical predicate patterns): Change the single instruction
623 primitives that set CR0 to be fast_compare instead of compare.
625 (popcntwsi2): Add support for ISA 2.06 popcount instructions.
627 (popcount<mode>): Ditto.
628 (floating multiply/add insns): Name the floating point
630 (isel_signed_<mode>): Add support for -misel on 64-bit systems.
631 (isel_unsigned_<mode>): Ditto.
632 (fixuns_trundfsi2): Move expander here from spe.md.
633 (smindi3): Define if we have -misel on 64-bit systems.
638 2009-06-23 Anatoly Sokolov <aesok@post.ru>
640 * config.gcc (avr-*-rtems*, avr-*-*): Set extra_gcc_objs and
642 * config/avr/avr.c (avr_current_device): New variable.
643 (avr_arch_types, avr_mcu_types): Move to avr-deveces.c.
644 (avr_arch, mcu_type_s): Move to avr.h.
645 * config/avr/avr.h (base_arch_s). Add reserved2, arch_name and
646 default_data_section_start fields.
647 (avr_arch): Moved from avr.c.
648 (mcu_type_s): Moved from avr.c. Add short_sp, data_section_start and
650 (avr_current_device, avr_mcu_types, avr_arch_types,
651 avr_device_to_arch, avr_device_to_data_start,
652 avr_device_to_startfiles, avr_device_to_devicelib): Declare.
653 (EXTRA_SPEC_FUNCTIONS): Define.
654 (LINK_SPEC): Remove device name to '-m ...' and '-Tdata ...' linker
655 options mapping. Use device_to_arch and device_to_data_start insted.
656 (STARTFILE_SPEC): Use device_to_startfile instead of crt_binutils.
657 (CRT_BINUTILS_SPECS, EXTRA_SPECS): Remove.
658 * config/avr/t-avr (driver-avr.o, avr-devices.o): New rules.
659 * config/avr/driver-avr.c: New file.
660 * config/avr/avr-devices.c: New file.
662 2009-06-23 Jakub Jelinek <jakub@redhat.com>
664 * var-tracking.c (unshare_variable): Force initialized to
665 be VAR_INIT_STATUS_INITIALIZED unless flag_var_tracking_uninit.
666 (set_variable_part): Likewise.
667 (struct variable_union_info): Remove pos_src field.
668 (vui_vec, vui_allocated): New variables.
669 (variable_union): Pass VAR_INIT_STATUS_UNKNOWN to unshare_variable
670 unconditionally. Avoid XCVECNEW/free for every sorting, for dst_l
671 == 1 use a simpler sorting algorithm. Compute pos field right
672 away, don't fill in pos_src. For dst_l == 2 avoid qsort.
673 Avoid quadratic comparison if !flag_var_tracking_uninit.
674 (variable_canonicalize): Pass VAR_INIT_STATUS_UNKNOWN to
675 unshare_variable unconditionally.
676 (dataflow_set_different_2): Removed.
677 (dataflow_set_different): Don't traverse second hash table.
678 (compute_bb_dataflow): Pass VAR_INIT_STATUS_UNINITIALIZED
679 unconditionally to var_reg_set or var_mem_set.
680 (emit_notes_in_bb): Likewise.
681 (delete_variable_part): Pass VAR_INIT_STATUS_UNKNOWN to
683 (emit_note_insn_var_location): Don't set initialized to
684 VAR_INIT_STATUS_INITIALIZED early.
685 (vt_finalize): Free vui_vec if needed, clear vui_vec and
687 * rtl.c (rtx_equal_p): Don't implement on top of rtx_equal_p_cb.
689 * tree-object-size.c (addr_object_size): Instead of checking
690 for non-NULL TREE_CHAIN of the FIELD_DECL check that there
691 are no FIELD_DECLs following it.
693 2009-06-23 Andreas Krebbel <krebbel1@de.ibm.com>
695 * tree-ssa-math-opts.c (find_bswap): Increase the search depth in
696 order to match bswaps with signed source operands.
698 2009-06-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
700 * sdbout.c (sdbout_one_type): Fix braces in switch.
702 2009-06-23 Richard Guenther <rguenther@suse.de>
704 * tree-ssa-structalias.c (struct variable_info): Add is_global_var
706 (var_anything, anything_tree, var_nothing, nothing_tree, var_readonly,
707 readonly_tree, var_escaped, escaped_tree, var_nonlocal, nonlocal_tree,
708 var_callused, callused_tree, var_storedanything, storedanything_tree,
709 var_integer, integer_tree): Remove global variables.
710 (new_var_info): Do not pass new id, append the new var to the
711 global variable vector.
712 (do_ds_constraint): Use is_global_var member of the variable-info.
713 (new_scalar_tmp_constraint_exp): Adjust.
714 (create_function_info_for): Likewise.
715 (create_variable_info_for): Likewise.
716 (find_what_var_points_to): Remove dead code.
717 (init_base_vars): Simplify.
718 (compute_points_to_sets): Adjust.
720 2009-06-22 Adam Nemet <anemet@caviumnetworks.com>
722 * combine.c (try_combine): Dump information about the insns we're
725 2009-06-22 Adam Nemet <anemet@caviumnetworks.com>
727 * combine.c (combine_simplify_rtx): Remove TRULY_NOOP_TRUNCATION
728 check when calling force_to_mode on TRUNCATE's operand.
730 2009-06-22 Ian Lance Taylor <iant@google.com>
732 * config/rs6000/rs6000.opt: Move msched-epilog before
735 2009-06-22 Steven Bosscher <steven@gcc.gnu.org>
737 * config/arm/arm.md (prologue_use): Set length of fake insn to 0.
739 2009-06-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
741 * doc/invoke.texi (Link Options): -nodefaultlibs and -nostdlib
742 override library linkage flags such as -static-libgcc or
745 2009-06-22 Maxim Kuvyrkov <maxim@codesourcery.com>
747 * config/m68k/m68k-devices.def: Add line for MCF5221x.
749 2009-06-22 Ian Lance Taylor <iant@google.com>
751 * config/linux.opt: Put mglibc ahead of muclibc.
753 * c-decl.c (diagnose_mismatched_decls): Add -Wc++-compat warning
756 2009-06-22 Matthias Klose <doko@ubuntu.com>
758 * Makefile.in (install-plugin): Remove extra `/' after $(DESTDIR).
760 2009-06-22 Steven Bosscher <steven@gcc.gnu.org>
763 * c-parser.c (c_parser_objc_message_args): Return error_mark_node
764 instead of NULL if a parser error occurs.
766 2009-06-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
768 * dwarf2out.c (dwarf2_debug_hooks): Initialize
769 non-DWARF2_DEBUGGING_INFO version.
771 2009-06-22 Kai Tietz <kai.tietz@onevision.com>
773 * config.gcc (i[34567]86-*-mingw*, x86_64-*-mingw*): Add
774 i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
776 * config/i386/mingw32.h (LIBGCC2_HAS_TF_MODE): Define.
777 (LIBGCC2_TF_CEXT): Define.
780 2009-06-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
783 * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Fix definition.
785 2009-06-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
787 * config/arm/arm.c (arm_override_options): Disable
788 -mcaller-super-interworking and -mcallee-super-interworking.
789 * doc/invoke.texi (ARM Options): Document this.
791 2009-06-22 Nathan Sidwell <nathan@codesourcery.com>
793 * config/arm/arm.c (arm_print_operand): Deal with HIGH.
794 * config/arm/constraints.md (j): New constraint for movw operands.
795 (N): Remove thumb2 meaning.
796 * config/arm/arm.md (*arm_movw): Delete.
797 (*arm_movsi_insn): Use j constraint for movw instead of N constraint.
798 * config/arm/vfp.md (*arm_movsi_vfp, *thumb2_movsi_vfp): Likewise.
799 * config/arm/thumb2.md (*thumb2_movsi_insn): Likewise.
801 2009-06-22 Martin Jambor <mjambor@suse.cz>
803 PR tree-optimization/40492
804 * tree-sra.c (sra_modify_assign): Pass zero offsets to
805 build_ref_for_offset.
807 2009-06-22 Shujing Zhao <pearly.zhao@oracle.com>
809 * alias.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P, CALL_P, NOTE_P and
810 JUMP_TABLE_DATA_P predicates where applicable.
811 * auto-inc-dec.c: Ditto.
813 * caller-save.c: Ditto.
815 * cfgcleanup.c: Ditto.
816 * cfglayout.c: Ditto.
819 * combine-stack-adj.c: Ditto.
825 * dwarf2asm.c: Ditto.
826 * dwarf2out.c: Ditto.
839 * ira-costs.c: Ditto.
840 * ira-lives.c: Ditto.
843 * lower-subreg.c: Ditto.
844 * modulo-sched.c: Ditto.
846 * postreload.c: Ditto.
847 * print-rtl.c: Ditto.
856 * sched-vis.c: Ditto.
858 * sel-sched-ir.c: Ditto.
859 * simplify-rtx.c: Ditto.
860 * targhooks.c: Ditto.
861 * var-tracking.c: Ditto.
862 * vmsdbgout.c: Ditto.
864 2009-06-22 Matthias Klose <doko@ubuntu.com>
866 * Makefile.in (install-plugin): Always use DESTDIR.
868 2009-06-22 Olivier Hainque <hainque@adacore.com>
870 * config/pa/pa.c (output_call): Don't optimize post call jumps
871 into return address adjustments if the call may throw.
873 2009-06-21 Richard Earnshaw <rearnsha@arm.com>
875 * arm.c (thumb1_output_casesi): New function.
876 * arm.h (CASE_VECTOR_PC_RELATIVE): Thumb-1 code is also relative if
877 optimizing for size or PIC.
878 (CASE_VECTOR_SHORTEN_MODE): Handle thumb-1.
879 * arm.md (UNSPEC_THUMB1_CASESI): New constant.
880 (casesi): Handle Thumb-1 when optimizing for size or PIC.
881 (thumb1_casesi_internal_pic): New expand rule.
882 (thumb1_casesi_dispatch): New pattern.
883 * aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use shortened vectors for
885 * coff.h (JUMP_TABLES_IN_TEXT_SECTION): Thumb-1 jump tables are now
886 in the text seciton when PIC or optimizing for size.
887 * elf.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
888 * lib1funcs.asm ([__ARM_EABI__]): Add an attribute describing stack
889 preservation properties of code.
890 (__gnu_thumb1_case_sqi, __gnu_thumb1_case_uqi): New functions.
891 (__gnu_thumb1_case_shi, __gnu_thumb1_case_uhi): New functions.
892 (__gnu_thumb1_case_si): New function.
893 * t-arm (LIB1ASMSRC): Define here.
894 (LIB1ASMFUNCS): Add some common functions.
895 * t-arm-elf (LIB1ASMSRC): Delete.
896 (LIB1ASMFUNCS): Append to existing set.
897 * t-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
898 * t-strongarm-elf (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
899 * t-symbian (LIB1ASMFUNCS): Likewise.
900 * t-vxworks (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
901 * t-wince-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
903 2009-06-21 Richard Guenther <rguenther@suse.de>
905 PR tree-optimization/38729
906 * tree-ssa-loop-niter.c (find_loop_niter_by_eval): Restrict
907 to loops with a single exit if -fno-expensive-optimizations.
909 2009-06-21 Jakub Jelinek <jakub@redhat.com>
911 * var-tracking.c (struct shared_hash_def, shared_hash): New types.
912 (dataflow_set): Change vars type from htab_t to shared_hash.
913 (shared_hash_pool, empty_shared_hash): New variables.
914 (vars_clear): Removed.
915 (shared_hash_shared, shared_hash_htab, shared_hash_copy,
916 shared_hash_find_slot_unshare, shared_hash_find_slot,
917 shared_hash_find_slot_noinsert, shared_hash_find): New
919 (shared_hash_unshare, shared_hash_destroy): New functions.
920 (unshare_variable): Unshare set->vars if shared, use
922 (vars_copy): Use htab_traverse_noresize instead of htab_traverse.
923 (get_init_value, find_src_set_src, dump_dataflow_set,
924 clobber_variable_part, emit_notes_for_differences): Use
926 (dataflow_set_init): Remove second argument, set vars to
927 empty_shared_hash instead of creating a new htab.
928 (dataflow_set_clear): Call shared_hash_destroy and set vars
929 to empty_shared_hash instead of calling vars_clear.
930 (dataflow_set_copy): Don't call vars_copy, instead just share
931 the src htab with dst.
932 (variable_union): Use shared_hash_*, use initially NO_INSERT
933 lookup if set->vars is shared. Don't keep slot cleared before
934 calling unshare_variable. Unshare set->vars if needed.
935 Even ->refcount == 1 vars must be unshared if set->vars is shared
936 and var needs to be modified.
937 (variable_canonicalize): New function.
938 (dataflow_set_union): If dst->vars is empty, just share src->vars
939 with dst->vars and traverse with variable_canonicalize to canonicalize
940 and unshare what is needed.
941 (dataflow_set_different): If old_set and new_set use the same shared
942 htab, they aren't different. If number of htab elements is different,
943 htabs are different. Use shared_hash_*.
944 (dataflow_set_destroy): Call shared_hash_destroy instead of
946 (compute_bb_dataflow, emit_notes_in_bb, vt_emit_notes): Don't pass
947 second argument to dataflow_set_init.
948 (vt_initialize): Likewise. Initialize shared_hash_pool and
949 empty_shared_hash, move bb in/out initialization afterwards.
950 Use variable_htab_free instead of NULL as changed_variables del hook.
951 (variable_was_changed): Change type of second argument to pointer to
952 dataflow_set. When inserting var into changed_variables, bump
953 refcount. Unshare set->vars if set is shared htab and slot needs to
955 (set_variable_part): Use shared_hash_*, use initially NO_INSERT
956 lookup if set->vars is shared. Unshare set->vars if needed.
957 Even ->refcount == 1 vars must be unshared if set->vars is shared
958 and var needs to be modified. Adjust variable_was_changed caller.
959 (delete_variable_part): Use shared_hash_*. Even ->refcount == 1
960 vars must be unshared if set->vars is shared and var needs to be
961 modified. Adjust variable_was_changed caller.
962 (emit_note_insn_var_location): Don't pool_free var.
963 (emit_notes_for_differences_1): Initialize empty_var->refcount to 0
965 (vt_finalize): Call htab_delete on empty_shared_hash->htab and
966 free_alloc_pool on shared_hash_pool.
968 2009-06-20 Anthony Green <green@moxielogic.com>
970 * config/moxie/sfp-machine.h (__gcc_CMPtype, CMPtype): Define.
971 * config/moxie/moxie.h (LOAD_EXTEND_OP): Define.
973 2009-06-20 Richard Guenther <rguenther@suse.de>
975 * tree-ssa-structalias.c (find_func_aliases): For memset use
976 a constraint from NULL if we memset to zero.
977 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Add builtins
978 we explicitly handle that do not read from memory.
979 (call_may_clobber_ref_p_1): Properly handle builtins that may
982 2009-06-20 Richard Guenther <rguenther@suse.de>
984 PR tree-optimization/40495
985 * tree-ssa-structalias.c (get_constraint_exp_for_temp): Remove.
986 (new_scalar_tmp_constraint_exp): New function.
987 (process_constraint): Do not create temporary decls.
988 (process_all_all_constraints): Likewise.
989 (handle_const_call): Likewise.
990 (create_function_info_for): Do not set decl.
992 2009-06-19 Ian Lance Taylor <iant@google.com>
994 * config/rs6000/rs6000.c (rs6000_explicit_options): Make static.
995 (rs6000_attribute_table): Make static; move before use.
997 2009-06-19 Eric Botcazou <ebotcazou@adacore.com>
999 * tree.c (substitute_in_expr) <COMPONENT_REF>: Tweak and reformat.
1000 <tcc_vl_exp>: Call process_call_operands on the new CALL_EXPR.
1001 Propagate the TREE_READONLY flag without overwriting it.
1002 (substitute_placeholder_in_expr) <tcc_vl_exp>: Likewise.
1003 Propagate the TREE_READONLY flag onto the result.
1004 (process_call_operands): Move around. Use correct constant value.
1006 2009-06-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1009 * config/arm/arm.c (thumb_shiftable_const): Truncate val to
1011 * config/arm/arm.md: Likewise.
1013 2009-06-19 Ian Lance Taylor <iant@google.com>
1015 * tree-cfg.c (gimple_redirect_edge_and_branch): Change ERROR_MARK
1016 to GIMPLE_ERROR_MARK.
1018 * c-typeck.c (build_conditional_expr): Add op1_original_type and
1019 op2_original_type parameters. Warn about using different enum
1021 * c-parser.c (c_parser_conditional_expression): Pass original
1022 types to build_conditional_expr.
1023 * c-tree.h (build_conditional_expr): Update declaration.
1025 2009-06-19 Ian Lance Taylor <iant@google.com>
1027 * config/i386/i386.c (ix86_function_specific_save): Test that
1028 fields match values, rather than testing the values are in a
1031 2009-06-19 Richard Guenther <rguenther@suse.de>
1033 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
1035 (ptr_derefs_may_alias_p): Likewise.
1036 (ptr_deref_may_alias_ref_p_1): New function.
1037 (ptr_deref_may_alias_ref_p): Likewise.
1038 (ref_maybe_used_by_call_p_1): Handle builtins that are not
1039 covered by looking at the ESCAPED solution.
1040 (call_may_clobber_ref_p_1): Likewise.
1041 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
1042 Handle NULL_TREE offset. Do not produce redundant constraints.
1043 (process_all_all_constraints): New helper function.
1044 (do_structure_copy): Use it.
1045 (handle_lhs_call): Likewise.
1046 (find_func_aliases): Handle some builtins with pointer arguments
1047 and/or return values explicitly.
1049 2009-06-19 Ian Lance Taylor <iant@google.com>
1051 * varasm.c (const_rtx_hash_1): Remove const qualifier from shift.
1053 2009-06-19 Ian Lance Taylor <iant@google.com>
1055 * rtl.h (SUBREG_PROMOTED_UNSIGNED_P): Add cast to int.
1057 2009-06-19 Ian Lance Taylor <iant@google.com>
1059 * ggc-page.c (ggc_pch_write_object): Initialize emptyBytes.
1060 * sdbout.c (sdb_debug_hooks): Initialize non-SDB_DEBUGGING_INFO
1063 * c-decl.c (finish_decl): If -Wc++-compat, warn about
1064 uninitialized const.
1066 2009-06-19 Ian Lance Taylor <iant@google.com>
1068 * dse.c (struct store_info): Rename bitmap field to bmap. Change
1071 * c-decl.c (in_struct, struct_types): Remove.
1072 (struct c_binding): Add in_struct field.
1073 (c_binding_ptr): Define type, along with VEC.
1074 (struct c_struct_parse_info): Define.
1075 (struct_parse_info): New static variable.
1076 (bind): Initialize in_struct field.
1077 (start_struct): Remove enclosing_in_struct and
1078 enclosing_struct_types parameters. Add
1079 enclosing_struct_parse_info parameter. Change all callers. Set
1080 struct_parse_info rather than in_struct and struct_types.
1081 (grokfield): If -Wc++-compat and there is a symbol binding for the
1082 field name, set the in_struct flag and push it on the
1083 struct_parse_info->fields vector.
1084 (warn_cxx_compat_finish_struct): New static function.
1085 (finish_struct): Remove enclosing_in_struct and
1086 enclosing_struct_types parameters. Add
1087 enclosing_struct_parse_info parameter. Change all callers. Don't
1088 set C_TYPE_DEFINED_IN_STRUCT here. Call
1089 warn_cxx_compat_finish_struct. Free struct_parse_info and set to
1090 parameter. Only push on struct_types if warn_cxx_compat.
1091 (finish_enum): Only push on struct_types if warn_cxx_compat.
1092 (declspecs_add_type): Add loc parameter. Change all callers.
1093 Change all error calls to error_at. Pass loc, not input_location,
1094 to pedwarn calls. Warn if -Wc++-compat and a typedef name is
1095 defined in a struct. If -Wc++-compat and parsing a struct, record
1096 that a typedef name was used.
1097 * c-parser.c (c_parser_declspecs): Get location to pass to
1099 (c_parser_struct_or_union_specifier): Update calls to start_struct
1101 * c-tree.h (struct c_struct_parse_info): Declare.
1102 (finish_struct, start_struct): Update declarations.
1103 (declspecs_add_type): Update declaration.
1105 2009-06-19 Ian Lance Taylor <iant@google.com>
1107 * c-decl.c (grokdeclarator): If -Wc++-compat, warn about a global
1108 variable with an anonymous type.
1110 2009-06-19 Uros Bizjak <ubizjak@gmail.com>
1112 * see.c: Remove for real.
1114 2009-06-19 Uros Bizjak <ubizjak@gmail.com>
1116 * optabs.h (enum optab_index): Add new OTI_significand.
1117 (significand_optab): Define corresponding macro.
1118 * optabs.c (init_optabs): Initialize significand_optab.
1119 * genopinit.c (optabs): Implement significand_optab using
1120 significand?f2 patterns.
1121 * builtins.c (expand_builtin_mathfn): Handle
1122 BUILT_IN_SIGNIFICAND{,F,L}.
1123 (expand_builtin): Expand BUILT_IN_SIGNIFICAND{,F,L} using
1124 expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
1126 * config/i386/i386.md (significandxf2, significand<mode>2): New
1127 expanders to implement significandf, significand and significandl
1128 built-ins as inline x87 intrinsics.
1130 2009-06-18 Anatoly Sokolov <aesok@post.ru>
1132 * config/avr/avr.c (avr_override_options): Remove setting value of
1133 PARAM_INLINE_CALL_COST.
1135 2009-06-18 Richard Henderson <rth@redhat.com>
1138 * tree-pass.h (TDF_ASMNAME): New.
1139 * tree-dump.c (dump_options): Add asmname.
1140 * doc/invoke.texi: Document it.
1142 * tree-pretty-print.c (maybe_dump_asm_name): Merge into...
1143 (dump_decl_name): ...here.
1144 (dump_function_name): New flags arg; mind TDF_ASMNAME.
1145 (dump_generic_node): Update dump_function_name calls.
1146 (print_call_name): New flags arg; update all dump calls.
1147 * diagnostic.h (print_call_name): Update.
1148 * gimple-pretty-print.c (dump_gimple_call): Update.
1150 2009-06-18 H.J. Lu <hongjiu.lu@intel.com>
1153 * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Add SSE_FIRST_REG.
1155 2009-06-18 Diego Novillo <dnovillo@google.com>
1157 * doc/plugins.texi: Document plugin_is_GPL_compatible.
1158 * plugin.c (str_license): Declare.
1159 (try_init_one_plugin): Assert that the symbol
1160 'plugin_is_GPL_compatible' exists.
1162 2009-06-18 Sergei Dyshel <sergeid@il.ibm.com>
1165 * Makefile.in (OBJS-common): Remove see.o.
1167 * common.opt (fsee): Mark as preserved for backward compatibility.
1168 * opts.c (common_handle_option): Add OPT_fsee to the backward
1169 compatibility section.
1170 * passes.c (init_optimization_passes, pass_see): Remove pass.
1171 * timevar.def (TV_SEE): Remove.
1172 * tree-pass.h (pass_see): Remove declaration.
1173 * doc/invoke.texi (-fsee): Remove documentation.
1175 2009-06-18 Martin Jambor <mjambor@suse.cz>
1177 * tree-sra.c: Include statistics.h
1178 (sra_stats): New variable.
1179 (sra_initialize): Clear sra_stats.
1180 (create_access_replacement): Increment sra_stats.replacements.
1181 (get_access_replacement): Do not return twice.
1182 (analyze_all_variable_accesses): Increment statistics counter by the
1183 number of scalarized aggregates.
1184 (generate_subtree_copies): Increment sra_stats.subtree_copies.
1185 (sra_modify_expr): Increment sra_stats.exprs.
1186 (load_assign_lhs_subreplacements): Increment sra_stats.subreplacements.
1187 (sra_modify_assign): Increment sra_stats.exprs,
1188 sra_stats.separate_lhs_rhs_handling and sra_stats.deleted.
1189 (perform_intra_sra): Update statistics counters.
1190 * Makefile.in (tree-sra.o): Add statistics.h to dependencies.
1192 2009-06-18 Sandra Loosemore <sandra@codesourcery.com>
1194 * config/arm/arm.c (TARGET_SCALAR_MODE_SUPPORTED_P): Redefine.
1195 (arm_scalar_mode_supported_p): New function.
1197 2009-06-18 Paul Brook <paul@codesourcery.com>
1198 Sandra Loosemore <sandra@codesourcery.com>
1200 * config/arm/sfp-machine.h (_FP_NANFRAC_H, _FP_NANSIGN_H): Define.
1201 (__extendhfsf2, __truncsfhf2): Define.
1202 * config/arm/fp16.c: New file.
1203 * config/arm/t-bpabi (LIB2FUNCS_STATIC_EXTRA): Add fp16.c.
1204 * config/arm/t-symbian (LIB2FUNCS_STATIC_EXTRA): Add fp16.c.
1206 2009-06-18 Sandra Loosemore <sandra@codesourcery.com>
1208 * doc/extend.texi (Half-Precision): New section.
1209 * doc/invoke.texi (Option Summary): List -mfp16-format.
1210 (ARM Options): List neon-fp16 as -mfpu value. Document -mfp16-format.
1211 * config/arm/arm.opt (mfp16-format=): New.
1212 * config/arm/arm.c: Include intl.h.
1213 (TARGET_INVALID_PARAMETER_TYPE): Redefine.
1214 (TARGET_INVALID_RETURN_TYPE): Redefine.
1215 (TARGET_PROMOTED_TYPE): Redefine.
1216 (TARGET_CONVERT_TO_TYPE): Redefine.
1217 (arm_fp16_format): Define.
1218 (all_fpus): Add entry for neon-fp16.
1219 (fp_model_for_fpu): Likewise.
1220 (struct fp16_format): Declare.
1221 (all_fp16_formats): Define.
1222 (arm_init_libfuncs): Add entries for HFmode conversions and arithmetic
1224 (arm_override_options): Set arm_fp16_format. Call sorry for fp16
1226 (arm_legitimate_index_p): Treat HFmode like HImode.
1227 (thumb1_legitimate_address_p): Make it recognize HFmode constants.
1228 (coproc_secondary_reload_class): Special-case HFmode.
1229 (arm_print_operand): Add 'z' specifier for vld1.16/vst1.16.
1230 (arm_hard_regno_mode_ok): Allow HFmode values in VFP registers.
1231 (arm_init_fp16_builtins): New.
1232 (arm_init_builtins): Call it.
1233 (arm_invalid_parameter_type): New.
1234 (arm_invalid_return_type): New.
1235 (arm_promoted_type): New.
1236 (arm_convert_to_type).
1237 (arm_file_start): Deal with neon-fp16 as fpu_name. Emit tag for fp16
1239 (arm_emit_fp16_const): New function.
1240 (arm_mangle_type): Mangle __fp16 as "Dh".
1241 * config/arm/arm.h (TARGET_VFPD32): Make it know about
1243 (TARGET_NEON_FP16): New.
1244 (TARGET_NEON): Make it know about FPUTYPE_NEON_FP16.
1245 (enum fputype): Add FPUTYPE_NEON_FP16.
1246 (enum arm_fp16_format_type): Declare.
1247 (arm_fp16_format): Declare.
1248 (LARGEST_EXPONENT_IS_NORMAL): Define.
1249 * config/arm/arm-protos.h (arm_emit_fp16_const): Declare.
1250 * config/arm/arm-modes.def (HFmode): Define.
1251 * config/arm/vfp.md: (*movhf_vfp): New.
1254 * config/arm/arm.md: (fpu): Add neon_fp16.
1255 (floatsihf2, floatdihf2): New.
1256 (fix_trunchfsi2, fix_trunchfdi2): New.
1260 (*arm32_movhf): New.
1261 (*thumb1_movhf): New.
1262 (consttable_2): Add check for HFmode constants.
1263 (consttable_4): Handle HFmode constants.
1265 2009-06-18 Uros Bizjak <ubizjak@gmail.com>
1267 * convert.c (convert_to_integer): Convert (int)logb() into ilogb().
1269 2009-06-17 Olivier Hainque <hainque@adacore.com>
1271 * collect2.c (main): Use CONST_CAST2 to perform char ** to
1272 const char ** conversion in AIX specific section.
1274 2009-06-17 H.J. Lu <hongjiu.lu@intel.com>
1276 * config/i386/i386.c (ix86_special_builtin_type): Remove
1277 UINT64_FTYPE_PINT. Add UINT64_FTYPE_PUNSIGNED.
1278 (bdesc_special_args): Updated.
1279 (ix86_init_mmx_sse_builtins): Likewise.
1280 (ix86_expand_special_args_builtin): Likewise.
1282 2009-06-17 Richard Henderson <rth@redhat.com>
1284 * tree-pretty-print.c (maybe_dump_asm_name): New.
1285 (dump_decl_name): Use it.
1286 (PRINT_FUNCTION_NAME): Merge into...
1287 (dump_function_name): ... here. Use maybe_dump_asm_name.
1289 2009-06-17 Cary Coutant <ccoutant@google.com>
1291 * dbxout.c (dbxout_source_line): Add is_stmt parameter.
1293 * debug.c (struct gcc_debug_hooks): Change placeholder for
1295 (debug_nothing_int_charstar_int): Replaced by...
1296 (debug_nothing_int_charstar_int_bool): ...this.
1297 * debug.h (struct gcc_debug_hooks): Add is_stmt parameter to
1298 source_line prototype.
1299 (debug_nothing_int_charstar_int): Replaced by...
1300 (debug_nothing_int_charstar_int_bool): ...this.
1301 * defaults.h (SUPPORTS_DISCRIMINATOR): New constant.
1302 * dwarf2out.c (dwarf2out_source_line): Add is_stmt parameter.
1303 Output is_stmt operand when necessary.
1304 * final.c (final_scan_insn): Pass is_stmt to source_line debug hook.
1305 (notice_source_line): Add is_stmt parameter.
1306 * sdbout.c (sdbout_source_line): Add is_stmt parameter.
1307 * vmsdbgout.c (vmsdbgout_source_line): Add is_stmt parameter.
1309 * xcoffout.c (xcoffout_source_line): Add is_stmt parameter.
1310 * xcoffout.h (xcoffout_source_line): Add is_stmt parameter.
1312 2009-06-17 Ian Lance Taylor <iant@google.com>
1314 * expr.c (struct move_by_pieces_d): Rename from move_by_pieces.
1316 (struct store_by_pieces_d): Rename from store_by_pieces. Change
1319 2009-06-17 Adam Nemet <anemet@caviumnetworks.com>
1321 * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS,
1322 STRIP_USELESS_TYPE_CONVERSION): Use tree_strip_nop_conversions,
1323 tree_strip_sign_nop_conversions and
1324 tree_ssa_strip_useless_type_conversions rather than stripping
1325 the operations here.
1326 (tree_strip_nop_conversions, tree_strip_sign_nop_conversions):
1328 * gimple.h (tree_ssa_strip_useless_type_conversions): Declare it.
1329 * tree-ssa.c (tree_ssa_strip_useless_type_conversions): New function.
1330 * tree.c (tree_nop_conversion, tree_sign_nop_conversion,
1331 tree_strip_nop_conversions, tree_strip_sign_nop_conversions): New
1334 2009-06-17 Michael Eager <eager@eagercon.com>
1336 * config/rs6000/constraints.md (register_constraint "d"): New.
1337 * config/rs6000/dfp.md (movsd_store, extendsddd2, extendsdtd2,
1338 truncddsd2, *negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
1339 *movdd_hardfloat32, *movdd_hardfloat64_mfpgpr, *movdd_hardfloat64,
1340 *negtd2_fp, *abstd2_fpr, *nabstd2_fpr, *movtd_internal, extendddtd2,
1341 trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
1342 divtd3, *cmpdd_internal1, *cmptd_internal1, floatditd2, ftruncdd2,
1343 fixdddi2, ftrunctd2, fixtddi2): replace 'f' constraint with 'd'
1344 * config/rs6000/ppu_intrinsics.h (__mffs, __mtfsf, __mtfsfi, __fabs,
1345 __fnabs, __fmadd, __fmsub, __fnmadd, __fnmsub, __fsel, __frsqrte,
1346 __fsqrt, __fmul, __fmuls, __frsp, __fcfid, __fctid, __fctidz, __fctiw,
1348 * config/rs6000/rs6000.md (*extendsfdf2_fpr, *truncdfsf2_fpr,
1349 *fseldfsf4, *negdf2_fpr, *absdf2_fpr, *nabsdf2_fpr, *adddf3_fpr,
1350 *subdf3_fpr, *muldf3_fpr, *divdf3_fpr, recipdf3, fred, sqrtdf2,
1351 *fseldfdf4, *fselsfdf4, *floatsidf2_internal, *floatunssidf2_internal,
1352 *fix_truncdfsi2_internal, fix_truncdfsi2_internal_gfxopt,
1353 fix_truncdfsi2_mfpgpr, fctiwz, btruncdf2, ceildf2, floordf2, rounddf2,
1354 stfiwx, floatdidf2, fix_truncdfdi2, floatdisf2_internal1,
1355 *movdf_hardfloat32, *movdf_hardfloat64_mfpgpr, *movdf_hardfloat64,
1356 *movtf_internal, *extenddftf2_internal, trunctfdf2_internal1,
1357 trunctfdf2_internal2, trunctfsf2_fprs, fix_trunc_helper,
1358 *fix_trunctfsi2_internal, negtf2_internal, *movdi_internal32,
1359 *movdi_mfpgpr, *movdi_internal64, *movdf_update1, *movdf_update2,
1360 *cmpdf_internal1, *cmptf_internal1, *cmptf_internal2): Same.
1361 * doc/md.texi: Describe PowerPC 'd' constraint, update 'f' constraint.
1363 2009-06-16 Ian Lance Taylor <iant@google.com>
1365 * profile.c (total_num_never_executed): Don't define.
1366 (compute_branch_probabilities): Don't count or print
1368 (init_branch_prob): Don't set total_num_never_executed.
1369 (end_branch_prob): Don't print total_num_never_executed.
1371 2009-06-17 David Daney <ddaney@caviumnetworks.com>
1373 * jump.c (cleanup_barriers): Handle case of no insns before a barrier.
1375 2009-06-17 David Edelsohn <edelsohn@gnu.org>
1377 * config/rs6000/dfp.md (nabsdd2_fpr): Correct mode.
1378 (nabstd2_fpr): Same.
1380 2009-06-17 Steve Ellcey <sje@cup.hp.com>
1382 * expr.c (expand_assignment): Change complex type check.
1384 2009-06-17 Basile Starynkevitch <basile@starynkevitch.net>
1386 * doc/plugins.texi (Building GCC plugins): Added new section.
1388 2009-06-17 Ian Lance Taylor <iant@google.com>
1390 * c-pch.c (get_ident): Don't set size of templ array.
1391 (pch_init): Don't set size of partial_pch array.
1393 * c-typeck.c (digest_init): If -Wc++-compat, warn about using a
1394 string constant to intialize an array whose size is the length of
1397 2009-06-17 Richard Guenther <rguenther@suse.de>
1399 PR tree-optimization/40389
1400 * tree-ssa-structalias.c (handle_rhs_call): Restrict NRV case
1401 to addressable types.
1402 * gimple.c (walk_stmt_load_store_addr_ops): Likewise.
1404 2009-06-17 Richard Guenther <rguenther@suse.de>
1407 * tree-chrec.h (build_polynomial_chrec): If we cannot determine
1408 if there is no evolution of left in the loop bail out.
1409 * tree-chrec.c (chrec_fold_multiply_poly_poly): CSE one
1410 chrec_fold_multiply.
1412 2009-06-16 J"orn Rennecke <joern.rennecke@arc.com>
1413 Janis Johnson <janis187@us.ibm.com>
1416 * config/rs6000/rs6000.c (rs6000_emit_move): Don't emit a USE
1417 for the symbol ref of a constant that is the source of a move
1418 - nor for any other not-obvious-label-ref constants.
1420 2009-06-16 Olatunji Ruwase <tjruwase@google.com>
1422 * plugin.c (position_pass): Skip newly inserted pass during list
1423 traversal to avoid repeated insertion.
1425 2009-06-16 Ian Lance Taylor <iant@google.com>
1427 * vec.h (VEC_stack_alloc): Define different version if
1428 GATHER_STATISTICS is defined, to accept and ignore MEM_STAT.
1429 (DEF_VEC_ALLOC_FUNC_P_STACK): Remove MEM_STAT_DECL.
1430 (DEF_VEC_ALLOC_FUNC_O_STACK): Likewise.
1431 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
1433 2009-06-16 H.J. Lu <hongjiu.lu@intel.com>
1435 * config.gcc (extra_headers): Add ia32intrin.h for x86.
1437 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_BSRSI,
1438 IX86_BUILTIN_BSRDI. IX86_BUILTIN_RDPMC, IX86_BUILTIN_RDTSC.
1439 IX86_BUILTIN_RDTSCP. IX86_BUILTIN_ROLQI, IX86_BUILTIN_ROLHI,
1440 IX86_BUILTIN_RORQI and IX86_BUILTIN_RORHI.
1441 (ix86_special_builtin_type): Add UINT64_FTYPE_VOID,
1442 UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
1443 INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
1444 (bdesc_special_args): Add __builtin_ia32_rdtsc and
1445 __builtin_ia32_rdtscp.
1446 (bdesc_args): Add __builtin_ia32_bsrsi, __builtin_ia32_bsrdi,
1447 __builtin_ia32_rolqi, __builtin_ia32_rolhi, __builtin_ia32_rorqi
1448 and __builtin_ia32_rorhi.
1449 (ix86_init_mmx_sse_builtins): Handle UINT64_FTYPE_VOID,
1450 UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
1451 INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
1452 (ix86_expand_args_builtin): Likewise.
1453 (ix86_expand_special_args_builtin): Likewise.
1455 * config/i386/i386.md (UNSPECV_RDTSCP): New.
1456 (UNSPECV_RDTSC): Likewise.
1457 (UNSPECV_RDPMC): Likewise.
1458 (*bsr): Renamed to ...
1460 (*bsr_rex64): Renamed to ...
1464 (*rdpmc_rex64): Likewise.
1467 (*rdtsc_rex64): Likewise.
1469 (*rdtscp): Likewise.
1470 (*rdtscp_rex64): Likewise.
1472 * config/i386/ia32intrin.h: New.
1474 * config/i386/x86intrin.h: Include <ia32intrin.h>.
1476 2009-06-16 Ian Lance Taylor <iant@google.com>
1478 * ira-build.c (copy_info_to_removed_store_destinations):
1479 Initialize parent_a.
1481 2009-06-16 Ian Lance Taylor <iant@google.com>
1483 * c-decl.c (grokdeclarator): Change size_varies to bool.
1485 2009-06-16 Ian Lance Taylor <iant@google.com>
1487 * sel-sched.c: Make forward declarations of move_op_hooks and
1488 fur_hooks explicitly extern.
1490 2009-06-16 Ian Lance Taylor <iant@google.com>
1492 * df-problems.c (df_byte_lr_alloc): Don't set problem_data to itself.
1493 * vec.c (vec_gc_o_reserve_1): Don't set alloc to itself.
1495 2009-06-16 Ian Lance Taylor <iant@google.com>
1497 * resource.c (mark_referenced_resources): Change
1498 include_delayed_effects parameter to bool. Change all callers.
1499 (mark_end_of_function_resources): Likewise.
1500 * reorg.c (insn_references_resource_p): Likewise.
1501 (insn_sets_resource_p): Likewise.
1502 * resource.h (mark_referenced_resources): Update declaration.
1503 (mark_end_of_function_resources): Update declaration.
1505 2009-06-16 David Edelsohn <edelsohn@gnu.org>
1507 * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove -lstdc++.
1509 2009-06-16 David Edelsohn <edelsohn@gnu.org>
1511 * doc/install.texi (*-*-aix): Update explanation of XLC bootstrap.
1512 GCC can bootstrap on AIX with GNU Binutils 2.20.
1514 2009-06-16 Ian Lance Taylor <iant@google.com>
1516 * Makefile.in (tree-vect-stmts.o): Depend upon $(TOPLEV_H).
1518 2009-06-16 Ian Lance Taylor <iant@google.com>
1520 * toplev.h (floor_log2): If GCC_VERSION >= 3004, declare as static
1521 inline, not extern inline.
1522 (exact_log2): Likewise.
1523 * toplev.c (floor_log2): Only define if GCC_VERSION < 3004. Don't
1525 (exact_log2): Likewise, but don't test CTZ_HWI.
1527 2009-06-16 Ian Lance Taylor <iant@google.com>
1529 * bitmap.c (bitmap_clear): Don't declare as inline.
1530 * gimple.c (gimplify_assign): Likewise.
1531 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
1532 * haifa-sched.c (insn_cost): Don't declare with HAIFA_INLINE.
1533 (sched_scan_info): Remove duplicate definition.
1535 2009-06-16 Ian Lance Taylor <iant@google.com>
1537 * c-common.c (skip_evaluation): Don't define.
1538 (c_inhibit_evaluation_warnings): Define global variable.
1539 (overflow_warning): Check c_inhibit_evaluation_warnings rather
1540 than skip_evaluation.
1541 (convert_and_check, warn_for_div_by_zero): Likewise.
1542 * c-common.h (skip_evaluation): Don't declare.
1543 (c_inhibit_evaluation_warnings): Declare.
1544 * c-parser.c (c_parser_typeof_specifier): Set
1545 c_inhibit_evaluation_warnings rather than skip_evaluation.
1546 (c_parser_conditional_expression): Likewise.
1547 (c_parser_binary_expression): Likewise.
1548 (c_parser_sizeof_expression): Likewise.
1549 (c_parser_alignof_expression): Likewise.
1550 * c-typeck.c (build_indirect_ref): Check
1551 c_inhibit_evaluation_warnings rather than skip_evaluation.
1552 (build_conditional_expr, build_binary_op): Likewise.
1554 2009-06-16 Richard Guenther <rguenther@suse.de>
1556 * tree-ssa-alias.c (is_escape_site): Remove.
1557 * tree-ssa-alias.h (enum escape_type): Remove.
1558 (is_escape_site): Likewise.
1559 * tree-ssa-structalias.c (find_func_aliases): Handle escapes
1560 via casts and asms without deferring to is_escape_site.
1562 2009-06-16 Jakub Jelinek <jakub@redhat.com>
1565 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: Don't
1566 use gen_lowpart if op0 has complex mode.
1568 2009-06-16 Richard Guenther <rguenther@suse.de>
1570 * tree-ssa-structalias.c (do_ds_constraint): Stores in global
1571 variables add them to ESCAPED.
1572 (find_func_aliases): Do not make all indirectly stored values escaped.
1574 2009-06-16 Rafael Avila de Espindola <espindola@google.com>
1576 * config/i386/winnt.c (i386_pe_encode_section_info): Update call to
1579 2009-06-16 Martin Jambor <mjambor@suse.cz>
1581 PR tree-optimization/40432
1582 * tree-sra.c (sra_modify_assign): When creating VIEW_CONVERT_EXPR,
1583 check whether we need to force gimple register operand.
1585 2009-06-16 Martin Jambor <mjambor@suse.cz>
1587 PR tree-optimization/40413
1588 * tree-sra.c (load_assign_lhs_subreplacements): Pass offset to
1589 build_ref_for_offset.
1590 (propagate_subacesses_accross_link): Fix a typo in a comment.
1592 2009-06-16 Ira Rosen <irar@il.ibm.com>
1594 * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
1595 with additional parameter.
1596 * tree-vectorizer.h (enum vect_def_type): Add new value
1598 (enum vect_relevant): Add comments.
1599 (vect_is_simple_reduction): Add new argument.
1600 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Add comments.
1601 Detect nested cycles.
1602 (vect_is_simple_reduction): Update documentation, add an argument to
1603 distinguish inner-loop reduction from nested cycle, detect nested
1604 cycles, fix printings and indentation, don't swap operands in case
1606 (get_initial_def_for_reduction): Handle subtraction.
1607 (vect_create_epilog_for_reduction): Add new argument to specify
1609 (vect_finalize_reduction): Handle subtraction, fix comments.
1610 (vectorizable_reduction): Handle nested cycles. In case of nested
1611 cycle keep track of the reduction variable position. Call
1612 vect_is_simple_reduction with additional parameter. Use original
1613 statement code in reduction epilogue for nested cycle. Call
1614 vect_create_epilog_for_reduction with additional parameter.
1615 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Assert
1616 inner-loop vectorization.
1617 (vect_recog_widen_sum_pattern): Likewise.
1618 * tree-vect-stmts.c (process_use): Distinguish between nested cycles
1620 (vect_mark_stmts_to_be_vectorized): Likewise.
1621 (vect_get_vec_def_for_operand): Handle nested cycles.
1623 2009-06-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1625 * doc/invoke.texi (Debugging Options): Fix option index entries
1626 for -fdump-statistics, -frandom-seed add entries for
1627 -fdump-tree-original, -fdump-tree-optimized, -frandom-seed.
1628 (FRV Options): Fix entries for -mTLS, -mtls.
1629 (HPPA Options): Fix entries for -mgnu-ld, -mhp-ld.
1630 (i386 and x86-64 Options): Fix entry for -mno-red-zone.
1631 (M68hc1x Options): Fix @itemx for -mnominmax.
1632 (MCore Options): Fix entry for -mno-lsim.
1633 (MMIX Options): Fix entry for -mabi=mmixware.
1634 (PDP-11 Options): Fix entry for -mbcopy-builtin.
1636 2009-06-16 Basile Starynkevitch <basile@starynkevitch.net>
1638 * doc/plugins.texi (Interacting with the GCC Garbage Collector):
1639 Mention the plugin mode of gengtype.
1640 * doc/gty.texi (Source Files Containing Type Information): Likewise.
1641 * gengtype.c: Updated copyright.
1642 (plugin_files, nb_plugin_files) Added new static variables.
1643 (measure_input_list) Care about plugin_files.
1644 (write_rtx_next): Added early return in plugin mode.
1645 (create_file): Updated copyright year in generated file. Added
1647 (oprintf): Added early return if NULL outf.
1648 (get_output_file_with_visibility): Care of plugin_files.
1649 (get_output_file_name): May return null.
1650 (write_local): Added early return.
1651 (put_mangled_filename): Ditto.
1652 (finish_root_table): Added check for base_files.
1653 (write_roots): Care about null when plugins.
1654 (main): Added plugin mode.
1656 2009-06-15 Ian Lance Taylor <iant@google.com>
1658 * df-problems.c (df_simulate_one_insn_forwards): Fix braces in switch.
1659 * gcov.c (read_count_file): Add braces around variables declared
1662 * c.opt (Wjump-misses-init): New warning.
1663 * c-opts.c (c_common_handle_option): Set warn_jump_misses_init for
1664 -Wall and -Wc++-compat if not already set.
1665 (c_common_post_options): Clear warn_jump_misses_init if it was not
1667 * c-decl.c (struct c_binding): Change type field to a union with
1668 new label field. Make it the first field in the struct. Update
1669 references to type to use u.type instead.
1670 (struct c_spot_bindings): Define.
1671 (struct c_goto_bindings): Define.
1672 (c_goto_bindings_p): Define, along with VECs.
1673 (struct c_label_vars): Define.
1674 (struct c_scope): Add has_label_bindings field.
1675 (bind_label, set_spot_bindings): New static functions.
1676 (decl_jump_unsafe, update_spot_bindings): New static functions.
1677 (update_label_decls): New static function.
1678 (pop_scope): Call update_label_decls. Don't call c_end_vm_scope.
1679 Update binding u.label field to shadowed field.
1680 (c_binding_start_stmt_expr): New function.
1681 (c_binding_end_stmt_expr): New function.
1682 (pushdecl): Don't call c_begin_vm_scope.
1683 (make_label): Add defining and p_label_vars parameters. Change
1685 (lookup_label): Correct test for whether a label has not yet been
1686 defined. Call bind_label rather than bind.
1687 (warn_about_goto): New static function.
1688 (lookup_label_for_goto): New function.
1689 (declare_label): Call bind_label rather than bind.
1690 (check_earlier_gotos): New static function.
1691 (define_label): Don't give errors about jumping into statement
1692 expressions or scopes of variably modified types. Call
1693 set_spot_bindings and check_earlier_gotos. Call bind_label
1694 instead of bind. Don't set label_context_stack_se or
1695 label_context_stack_vm.
1696 (c_get_switch_bindings): New function.
1697 (c_release_switch_bindings): New function.
1698 (c_check_switch_jump_warnings): New function.
1699 (start_function): Don't set label_context_stack_se or
1700 label_context_stack_vm.
1701 (finish_function): Likewise.
1702 * c-typeck.c (label_context_stack_se): Don't define.
1703 (label_context_stack_vm): Don't define.
1704 (c_finish_goto_label): Call lookup_label_for_goto rather than
1705 lookup_label. Don't give errors about jumping into a statement
1706 expression or the scope of a variably modified type. Don't set
1707 label_context_stack_se or label_context_stack_vm.
1708 (struct c_switch): Remove blocked_stmt_expr and blocked_vm
1709 fields. Add bindings field.
1710 (c_start_case): Don't set deleted fields. Set bindings field.
1711 (do_case): Rework order of tests. Don't check blocked_stmt_expr
1712 or blocked_vm. Call c_check_switch_jump_warnings.
1713 (c_finish_case): Don't test blocked_stmt_expr field. Call
1714 c_release_switch_bindings.
1715 (c_begin_stmt_expr): Don't increment blocked_stmt_expr in
1716 c_switch_stack. Don't walk label_context_stack_se labels. Don't
1717 set label_context_stack_se. Call c_bindings_start_stmt_expr.
1718 (c_finish_stmt_expr): Don't decrement blocked_stmt_expr in
1719 c_switch_stack. Don't walk label_context_stack_se labels. Don't
1720 set label_context_stack_se. Call c_bindings_end_stmt_expr.
1721 (c_begin_vm_scope, c_end_vm_scope): Don't define.
1722 * c-tree.h (C_DECL_UNJUMPABLE_STMT_EXPR): Don't define.
1723 (C_DECL_UNDEFINABLE_STMT_EXPR): Don't define.
1724 (C_DECL_UNJUMPABLE_VM): Don't define.
1725 (C_DECL_UNDEFINABLE_VM): Don't define.
1726 (struct c_label_list): Don't define.
1727 (struct c_label_context_se): Don't define.
1728 (struct c_label_context_vm): Don't define.
1729 (struct c_spot_bindings): Declare.
1730 (c_bindings_start_stmt_expr): Declare.
1731 (c_bindings_end_stmt_expr): Declare.
1732 (lookup_label_for_goto): Declare.
1733 (c_get_switch_bindings, c_release_switch_bindings): Declare.
1734 (c_check_switch_jump_warnings): Declare.
1735 (label_context_stack_se, label_context_stack_vm): Don't declare.
1736 (c_finish_goto_label): Update declaration.
1737 (c_begin_vm_scope, c_end_vm_scope): Don't declare.
1738 * doc/invoke.texi (Option Summary): Mention -Wjump-misses-init.
1739 (Warning Options): Document -Wjump-misses-init.
1741 2009-06-15 Jakub Jelinek <jakub@redhat.com>
1743 * tree-object-size.c (addr_object_size): Fix a pasto in the last
1746 2009-06-15 Rafael Avila de Espindola <espindola@google.com>
1748 * cgraph.c (cgraph_make_node_local): Use DECL_COMDAT_GROUP.
1750 2009-06-15 Aldy Hernandez <aldyh@redhat.com>
1752 * except.c (init_eh): Use BUILTINS_LOCATION when calling build_decl.
1754 2009-06-15 Aldy Hernandez <aldyh@redhat.com>
1756 * tree-eh.c (lower_try_finally_switch): Initialize tf_loc.
1758 2009-06-15 Rafael Avila de Espindola <espindola@google.com>
1760 * cgraphunit.c (cgraph_function_versioning,save_inline_function_body):
1761 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
1762 * cgraph.c (cgraph_create_virtual_clone): Use DECL_COMDAT_GROUP.
1763 * config/i386/i386.c (ix86_file_end): Compute DECL_COMDAT_GROUP.
1764 * dwarf2asm.c (dw2_force_const_mem): Update call to
1766 * langhooks-def.h (lhd_comdat_group, LANG_HOOKS_COMDAT_GROUP): Remove.
1767 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_COMDAT_GROUP.
1768 * langhooks.c (lhd_comdat_group): Remove.
1769 * langhooks.h (lang_hooks_for_decls): Remove comdat_group.
1770 * tree.h (DECL_COMDAT_GROUP): New.
1771 (DECL_ONE_ONLY): Use DECL_COMDAT_GROUP.
1772 (tree_decl_with_vis): Add comdat_group. Remove one_only.
1773 (make_decl_one_only): Change signature.
1774 * varasm.c (get_emutls_init_templ_addr, emutls_decl): Update call to
1776 (make_decl_one_only): Change signature.
1777 (default_elf_asm_named_section): Use DECL_COMDAT_GROUP.
1779 2009-06-15 Richard Guenther <rguenther@suse.de>
1782 * tree.c (widest_int_cst_value): Fix bootstrap on 32bit HWI hosts.
1784 2009-06-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1786 * tree-ssa-math-opts.c: Remove extra divide.
1788 2009-06-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1790 * config/s390/s390.md ("bswap<mode>2"): Only available on z900.
1792 2009-06-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1794 * passes.c: Add bswap pass.
1795 * tree-pass.h: Add pass_optimize_bswap declaration.
1796 * tree-ssa-math-opts.c: Include diagnostics.h for print_gimple_stmt.
1797 Include rtl.h, expr.h and optabs.h for optab_handler check.
1798 (struct symbolic_number, pass_optimize_bswap): New definition.
1799 (do_shift_rotate, verify_symbolic_number_p): New functions.
1800 (find_bswap_1, find_bswap, execute_optimize_bswap): New functions.
1801 (gate_optimize_bswap): New function.
1802 * tree.c (widest_int_cst_value): New function.
1803 * tree.h (widest_int_cst_value): Prototype added.
1805 2009-06-14 Steven Bosscher <steven@gcc.gnu.org>
1807 * cfgcleanup.c (old_insns_match_p): Remove code to substitute
1808 REG_EQUAL/REG_EQUIV notes.
1810 2009-06-14 Richard Guenther <rguenther@suse.de>
1813 * gimple.c (walk_stmt_load_store_addr_ops): The LHS of a call
1814 has its address taken if NRV was applied and it is addressable.
1815 * tree-ssa-structalias.c (get_constraint_for_address_of): New
1816 function split out from ...
1817 (get_constraint_for_1): ... here.
1818 (handle_rhs_call): Use it to mark the return slot escaped if
1819 it is addressable and NRV was applied.
1821 2009-06-13 Aldy Hernandez <aldyh@redhat.com>
1823 * config/rs6000/rs6000-protos.h (altivec_resolve_overloaded_builtin):
1824 Change first argument type to location_t.
1825 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Same.
1826 Do not set input_location.
1827 Use loc instead of input_location throughout.
1829 2009-06-13 Richard Guenther <rguenther@suse.de>
1831 PR tree-optimization/40421
1832 * tree-predcom.c (should_unroll_loop_p): Remove.
1833 (tree_predictive_commoning_loop): Use can_unroll_loop_p.
1835 2009-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
1837 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
1838 Add location argument.
1840 2009-06-13 Aldy Hernandez <aldyh@redhat.com>
1842 * config/alpha/alpha.c (alpha_build_builtin_va_list): Pass location to
1844 * config/s390/s390.c (s390_build_builtin_va_list): Same.
1845 (s390_gimplify_va_arg): Pass location to create_artificial_label.
1846 * config/spu/spu-protos.h: Add location to
1847 spu_resolve_overloaded_builtin.
1848 * config/spu/spu.c (spu_build_builtin_va_list): Pass location to
1849 spu_build_builtin_va_list.
1850 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Add location
1851 argument. Pass location to build_function_call_vec.
1852 * config/sh/sh.c (sh_build_builtin_va_list): Pass location to
1854 (emit_fpu_switch): Same.
1855 (sh_gimplify_va_arg_expr): Pass location to create_artificial_label.
1856 * config/xtensa/xtensa.c (xtensa_build_builtin_va_list): Pass location
1857 to build_decl and create_artificial_label.
1858 (xtensa_gimplify_va_arg_expr): Same.
1859 * config/stormy16/stormy16.c (xstormy16_build_builtin_va_list): Same.
1860 (xstormy16_gimplify_va_arg_expr): Same.
1861 * config/iq2000/iq2000.c (iq2000_expand_prologue): Same.
1862 * config/arm/arm.c (arm_build_builtin_va_list): Same.
1863 * config/mips/mips.c (mips_build_builtin_va_list): Same.
1864 (mips16_build_function_stub): Same.
1865 (mips16_build_call_stub): Same.
1867 2009-06-13 Richard Earnshaw <rearnsha@arm.com>
1870 * arm/constraints.md (Pa, Pb): New constraints.
1871 * arm/arm.md (thumb1_addsi3): Support more complex additions. Add a
1872 split pattern to deal with them.
1874 2009-06-13 Joerg Sonnenberger <joerg@britannica.bec.de>
1876 * doc/invoke.texi: Add missing option -Wp,OPTION in list,
1877 fix index entry for -Xpreprocessor.
1879 2009-06-12 Aldy Hernandez <aldyh@redhat.com>
1881 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
1882 Add location argument to build_decl call.
1883 * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Same.
1884 (rs6000_init_builtins): Same.
1885 (spe_init_builtins): Same.
1886 (rs6000_gimplify_va_arg): Add location argument to
1887 create_artificial_label call.
1889 2009-06-12 Steven Bosscher <steven@gcc.gnu.org>
1891 * timevar.def (TV_COMBINE_STACK_ADJUST): New timevar.
1892 * combine-stack-adj.c (pass_stack_adjustments): Use it.
1893 * Makefile.in: Fix GGC dependency for gcse.o.
1895 2009-06-12 Aldy Hernandez <aldyh@redhat.com>
1897 * tree-pretty-print.c (dump_generic_node): Dump column numbers.
1898 * gimple-pretty-print.c (dump_gimple_stmt): Same.
1899 * gimplify.c (gimplify_modify_expr): Set location for GIMPLE_ASSIGNs
1901 * c-parser.c (c_parser_binary_expression): Use current column while
1902 building binary operations.
1903 * common.opt (fshow-column): Enable by default.
1904 * tree-vrp.c (check_array_ref): Use warning_at.
1905 (check_array_bounds): Use location from call back if expr has no
1907 * tree.h: Add location argument to maybe_fold_*.
1908 * tree-ssa-ccp.c (ccp_fold): Pass location to maybe_fold_*.
1909 (maybe_fold_offset_to_array_ref): Add location argument and use it.
1910 (maybe_fold_offset_to_component_ref): Same.
1911 (maybe_fold_offset_to_reference): Same.
1912 (maybe_fold_offset_to_address): Same.
1913 (maybe_fold_stmt_indirect): Same.
1914 (maybe_fold_stmt_addition): Same.
1915 (fold_stmt_r): Pass location to maybe_fold_*.
1916 (fold_gimple_assign): Same.
1917 * c-tree.h: Add location argument to finish_decl,
1918 default_function_array_conversion, store_init_value.
1919 * c-decl.c (define_label): Use error_at.
1920 (c_make_fname_decl): Pass location to finish_decl.
1921 (finish_decl): New location argument.
1922 (build_compound_literal): Pass location to store_init_value.
1923 (grokdeclarator): Pass location to finish_decl.
1925 * c-typeck.c (array_to_pointer_conversion): New location argument.
1926 (function_to_pointer_conversion): Same.
1927 (default_function_array_conversion): Same.
1928 (parser_build_unary_op): Pass location to overflow_warning.
1929 (parser_build_binary_op): Same. Use warning_at.
1930 (build_unary_op): Pass location to array_to_pointer_conversion.
1931 (build_c_cast): Pass location to digest_init.
1932 (build_modify_expr): New location argument.
1933 (convert_for_assignment): Same.
1934 (store_init_value): Same.
1935 (digest_init): Same.
1936 (output_init_element): Pass location to digest_init and
1937 array_to_pointer_conversion.
1938 (c_finish_return): Pass location to convert_for_assignment.
1939 * gimplify.c (gimplify_conversion): Pass location to
1940 maybe_fold_offset_to_address.
1941 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Pass location
1942 to maybe_fold_stmt_addition.
1943 * c-omp.c (c_finish_omp_atomic): Pass new location to
1945 (c_finish_omp_for): Same.
1946 * c-common.c (overflow_warning): New argument.
1947 * c-common.h: New argument to build_modify_expr, overflow_warning.
1948 * c-parser.c (c_parser_declaration_or_fndef): Pass location to
1950 (c_parser_initializer): Pass location to
1951 default_function_array_conversion.
1952 (c_parser_initelt): Same.
1953 (c_parser_initval): Same.
1954 (c_parser_asm_operands): Same.
1955 (c_parser_expr_no_commas): Same. Pass location to build_modify_expr.
1956 (c_parser_conditional_expression): Same.
1957 (c_parser_binary_expression): Add location info to stack. Use it.
1958 (c_parser_unary_expression): Pass location to
1959 default_function_array_conversion, parser_build_unary_op,
1960 build_indirect_ref, c_parser_postfix_expression_after_primary.
1961 (c_parser_postfix_expression_after_primary): New location argument.
1963 (c_parser_expression_conv): Pass location to
1964 default_function_array_conversion.
1965 (c_parser_expr_list): Same.
1966 (c_parser_omp_atomic): Same.
1967 (c_parser_omp_for_loop): Same.
1968 * c-tree.h: (struct c_declarator): Add comment to id_loc.
1969 (build_array_declarator): New argument.
1970 * c-decl.c (build_array_declarator): Add location argument.
1971 (grokdeclarator): Set id_loc for cdk_array.
1972 * c-parser.c (c_parser_direct_declarator_inner): Pass location to
1973 build_array_declarator.
1974 * tree.c (build_omp_clause): Add location argument.
1975 * tree.h (OMP_CLAUSE_HAS_LOCATION): New macro.
1976 (OMP_CLAUSE_LOCATION): New macro.
1977 (struct tree_omp_clause): Add location field.
1978 (build_omp_clause): Add argument.
1979 * testsuite/gcc.dg/gomp/for-1.c: Fix column.
1980 * cp/pt.c (tsubst_omp_for_iterator): Pass location to
1982 * cp/parser.c (cp_parser_omp_var_list_no_open): Same.
1983 (cp_parser_omp_clause_collapse): Same.
1984 (cp_parser_omp_clause_default): Same.
1985 (cp_parser_omp_clause_if): Same.
1986 (cp_parser_omp_clause_nowait): Same.
1987 (cp_parser_omp_clause_num_threads): Same.
1988 (cp_parser_omp_clause_ordered): Same.
1989 (cp_parser_omp_clause_schedule): Same.
1990 (cp_parser_omp_clause_untied): Same.
1991 (cp_parser_omp_for_loop): Same.
1992 (cp_parser_omp_parallel): Pass location to c_split_parallel_clauses.
1993 * c-tree.h (c_start_case): Add location argument.
1994 (c_process_expr_stmt): Same.
1995 (c_finish_goto_*): Same.
1996 * tree-parloops.c (initialize_reductions): Pass location to
1998 (create_parallel_loop): Same.
1999 * fortran/trans-openmp.c (gfc_trans_omp_variable_list): Same.
2000 (gfc_trans_omp_reduction_list): Same.
2001 (gfc_trans_omp_clauses): Same.
2002 (gfc_trans_omp_do): Same.
2003 * c-typeck.c (c_finish_goto_label): Same.
2004 (c_finish_goto_ptr): New location argument.
2005 (c_start_case): Same.
2006 (emit_side_effect_warnings): Same.
2007 (c_process_expr_stmt): Same.
2008 (c_finish_stmt_expr): Same.
2009 (c_finish_omp_clauses): Use error_at instead of error.
2010 * gimplify.c (gimplify_adjust_omp_clauses_1): Pass location to
2012 * c-omp.c (c_split_parallel_clauses): New location argument.
2013 * tree-nested.c (convert_nonlocal_reference_stmt): Pass location
2014 to build_omp_clause.
2015 (convert_local_reference_stmt): Same.
2016 (convert_gimple_call): Same.
2017 * c-common.h (c_split_parallel_clauses): New argument.
2018 * c-parser.c (c_parser_statement_after_labels): Pass location to
2019 c_finish_goto_label.
2020 (c_parser_switch_statement): Pass location to c_start_case.
2021 (c_parser_for_statement): Pass location to c_finish_expr_stmt,
2022 and c_process_expr_stmt.
2023 (c_parser_omp_variable_list): Add location argument.
2024 (c_parser_omp_clause_collapse): Pass location to build_omp_clause.
2025 (c_parser_omp_clause_default): Same.
2026 (c_parser_omp_clause_if): Same.
2027 (c_parser_omp_clause_num_threads): Same.
2028 (-c_parser_omp_clause_ordered): Same.
2029 (c_parser_omp_clause_reduction): Pass location to
2030 c_parser_omp_variable_list.
2031 (c_parser_omp_clause_schedule): Pass location to build_omp_clause.
2032 (c_parser_omp_clause_untied): Same.
2033 (c_parser_omp_for_loop): Pass location to c_process_expr_stmt.
2034 (c_parser_omp_parallel): Pass location to c_split_parallel_clauses.
2036 * c-tree.h (check_for_loop_decls, undeclared_variable,
2037 build_component_ref, build_array_ref, build_external_ref,
2038 c_expr_sizeof_expr, c_expr_sizeof_type, parser_build_unary_op,
2039 build_conditional_expr, build_compound_expr, c_cast_expr,
2040 build_c_cast, build_asm_expr, c_end_compound_stmt, c_finish_stmt_expr,
2041 c_finish_return, c_finish_omp_parallel, c_finish_omp_task): New
2043 * c-semantics.c (build_stmt): Same.
2044 (build_case_label): Same.
2045 * c-decl.c (c_finish_incomplete_decl): Pass location on down.
2046 (undeclared_variable): New argument.
2048 (lookup_label): Pass location on down.
2049 (define_label): Same.
2050 (finish_decl): Same.
2051 (build_compound_literal): Same.
2052 (finish_struct): Same.
2053 (finish_function): Do not set location here.
2054 (check_for_loop_decls): New argument.
2055 * tree.c (save_expr): Set location.
2056 (build_empty_stmt): New argument.
2057 * tree.h (build_empty_stmt): New argument to build_empty_stmt.
2058 (CAN_HAVE_LOCATION_P): Make sure we have a non empty node.
2059 * builtins.c (gimplify_va_arg_expr): Use locations.
2060 (expand_builtin_sync_operation): Same.
2061 * c-typeck.c (build_component_ref): New argument.
2062 (build_array_ref): Same.
2063 (build_external_ref): Same.
2064 (c_expr_sizeof_expr): Same.
2065 (c_expr_sizeof_type): Same.
2066 (parser_build_unary_op): Same.
2067 (build_conditional_expr): Same.
2068 (build_compound_expr): Pass location on down.
2069 (build_compound_expr): New argument.
2070 (build_c_cast): Same.
2071 (c_cast_expr): Same.
2072 (build_asm_expr): Same.
2073 (c_finish_return): Same.
2074 (c_process_expr_stmt): Pass location on down.
2075 (c_finish_stmt_expr): New argument.
2076 (push_clenaup): Same.
2077 (c_finish_omp_parallel): Same.
2078 (c_finish_omp_task): Same.
2079 * gimplify.c (gimplify_call_expr): Pass location on down.
2080 * c-omp.c (c_finish_omp_master): New argument.
2081 (c_finish_omp_critical): Same.
2082 (c_finish_omp_ordered): Same.
2083 (c_finish_omp_barrier): Same.
2084 (-c_finish_omp_taskwait): Same.
2085 (c_finish_omp_atomic): Same.
2086 (c_finish_omp_flush): Same.
2087 * tree-inline.c (copy_tree_body_r): Pass location on down.
2088 (inline_forbidden_p): Remove use of input_location.
2089 * c-gimplify.c (c_build_bind_expr): New argument.
2090 * c-common.c (c_common_truthvalue_conversion): Pass location on down.
2091 (c_sizeof_or_alignof_type): New argument.
2092 (c_alignof_expr): Same.
2093 (build_va_arg): Same.
2094 (c_add_case_label): Same.
2095 * c-common.h (c_sizeof_or_alignof_type, c_alignof_expr,
2096 c_sizeof, c_alignof, build_va_arg, build_stmt, build_case_label,
2097 c_build_bind_expr, objc_build_selector_expr, objc_build_throw_stmt,
2098 c_finish_omp_master, c_finish_omp_critical, c_finish_omp_ordered,
2099 c_finish_omp_barrier, c_finish_omp_atomic, c_finish_omp_flush,
2100 c_finish_omp_taskwait, c_finish_omp_for, c_split_parallel_clauses):
2102 * stub-objc.c (objc_build_selector_expr): Same.
2103 (objc_build_throw_stmt): Same.
2104 * c-parser.c (c_parser_declaration_or_fndef): Pass location on down.
2105 (c_parser_initelt): Same.
2106 (c_parser_compound_statement): Same.
2107 (c_parser_compound_statement_nostart): Same.
2108 (c_parser_label): Same.
2109 (c_parser_statement_after_labels): Same.
2110 (c_parser_if_body): Same.
2111 (c_parser_else_body): Same.
2112 (c_parser_if_statement): Same.
2113 (c_parser_switch_statement): Same.
2114 (c_parser_while_statement): Same.
2115 (c_parser_do_statement): Same.
2116 (c_parser_for_statement): Same.
2117 (c_parser_asm_statement): Same.
2118 (c_parser_conditional_expression): Same.
2119 (c_parser_binary_expression): Same.
2120 (c_parser_cast_expression): Same.
2121 (c_parser_unary_expression): Same.
2122 (c_parser_sizeof_expression): Same.
2123 (c_parser_alignof_expression): Same.
2124 (c_parser_postfix_expression): Same.
2125 (c_parser_expression): Same.
2126 (c_parser_objc_receiver): Same.
2127 (c_parser_omp_variable_list): Same.
2128 (c_parser_omp_structured_block): Same.
2129 (c_parser_omp_atomic): New argument.
2130 (c_parser_omp_barrier): Same.
2131 (c_parser_omp_critical): Same.
2132 (c_parser_omp_flush): Pass location on down.
2133 (c_parser_omp_for_loop): New argument.
2134 (c_parser_omp_for): Same.
2135 (c_parser_omp_master): Same.
2136 (c_parser_omp_ordered): Same.
2137 (c_parser_omp_sections_scope): Same.
2138 (c_parser_omp_sections): Same.
2139 (c_parser_omp_parallel): Same.
2140 (c_parser_omp_single): Same.
2141 (c_parser_omp_task): Same.
2142 (c_parser_omp_taskwait): Pass location on down.
2143 (c_parser_omp_construct): Same.
2144 (c_parser_omp_threadprivate): Same.
2145 * dwarf2asm.c, targhooks.c, optabs.c, tree.c, tree.h, target.h,
2146 builtins.c, omp-low.c, cgraphunit.c, tree-call-cdce.c,
2147 tree-ssa-alias.c, gimple-low.c, c-tree.h, expr.c, tree-parloops.c,
2148 c-decl.c, tree-eh.c, langhooks.c, function.c, stor-layout.c,
2149 c-typeck.c, gimplify.c, c-pragma.c, expmed.c, except.c, coverage.c,
2150 emit-rtl.c, cfgexpand.c, tree-mudflap.c, varasm.c, tree-nested.c,
2151 rtl.h, tree-inline.c, tree-profile.c, c-common.c, c-common.h,
2152 tree-switch-conversion.c, tree-cfg.c, ipa-struct-reorg.c, c-parser.c,
2153 config/i386/i386.c, stmt.c:
2154 Add location argument to the following function definitions and/or
2155 function calls: build_decl, objcp_start_struct, objcp_finish_struct,
2156 start_struct, finish_struct, PUSH_FIELD, create_artificial_label,
2157 cp_make_fname_decl, pushtag, implicitly_declare, c_make_fname_decl,
2158 build_compound_literal, parser_xref_tag, resolve_overloaded_builtin,
2159 do_case, c_finish_bc_stmt, build_compound_literal,
2160 build_function_call.
2161 * c-decl.c (build_compound_literal): Add location argument.
2162 Make all diagnostic calls use location.
2163 (start_struct): Same.
2164 (finish_struct): Same.
2166 (build_enumerator): Same.
2167 (start_function): Same.
2168 (grokdeclarator): Make all diagnostic calls use location.
2169 (store_parm_decls_oldstyle): Same.
2170 * c-typeck.c (build_function_call): Add location argument.
2171 Make all diagnostic calls use location.
2173 (c_finish_bc_stmt): Same.
2174 * tree-nested.c (get_trampoline_type): Add argument.
2175 Pass location to build_decl.
2176 (lookup_tramp_for_decl): Pass location to get_trampoline_type.
2177 * rtl.h (RTL_LOCATION): New.
2178 * c-common.c (c_add_case_label): Add location argument.
2179 Make all diagnostic calls use location.
2180 * c-common.h: Add location argument to make_fname_decl, do_case,
2181 c_add_case_label, build_function_call, resolve_overloaded_builtin.
2182 * c-parser.c (c_parser_enum_specifier): Rename ident_loc to enum_loc.
2183 Set it appropriately for every case. Pass enum_loc to start_enum
2184 call. Pass value_loc first to build_enumerator. Pass enum_loc to
2186 (c_parser_struct_or_union_specifier): Save location. Use it for
2187 start_struct, finish_struct, and parser_xref_tag.
2189 2009-06-12 Ian Lance Taylor <iant@google.com>
2191 * fold-const.c (fold_unary): Rename local variable and to and_expr.
2193 * c-opts.c (c_common_handle_option): For -Wc++-compat set
2194 cpp_opts->warn_cxx_operator_names.
2196 2009-06-12 Andrew Pinski <andrew_pinski@playstation.sony.com>
2199 * tree-ssa-sccvn.c (visit_reference_op_load): If vn_reference_lookup
2200 is returns NULL and OP is a VCE, look through the VCE.
2202 2009-06-12 Ian Lance Taylor <iant@google.com>
2205 * collect2.c (main): Use CONST_CAST2 in code inside #if
2206 LINK_ELIMINATE_DUPLICATE_LDIRECTORIES.
2208 2009-06-12 Joey Ye <joey.ye@intel.com>
2211 * cfgexpand.c (get_decl_align_unit): Update
2212 max_used_stack_slot_alignment with align instead of
2213 stack_alignment_needed.
2215 * function.c (assign_stack_local_1): Update
2216 max_used_stack_slot_alignment with alignment_in_bits instead
2217 of stack_alignment_needed.
2218 (locate_and_pad_parm): Don't update max_used_stack_slot_alignment
2221 2009-06-12 Jakub Jelinek <jakub@redhat.com>
2223 * dwarf2out.c (last_var_location_insn): New variable.
2224 (dwarf2out_end_epilogue): Clear last_var_location_insn.
2225 (dwarf2out_var_location): Don't record anything after last real
2226 insn. Only change labels if there were any real instructions
2227 in between last note and this one, or if changed sections.
2229 2009-06-11 Richard Henderson <rth@redhat.com>
2231 * alpha.c (alpha_expand_prologue): Add a REF_CFA_REGISTER
2232 note when storing the frame pointer in a register.
2233 (FRP): Don't redefine to nothing for epilogue.
2234 (alpha_expand_epilogue): Mark register and sp restores.
2235 (unicosmk_gen_dsib): Don't mark weird frame pointer adjust.
2237 * config/alpha/alpha.c (alpha_emit_setcc): Fix test for
2238 when gen_lowpart is needed.
2240 2009-06-11 Richard Henderson <rth@redhat.com>
2242 * dwarf2out.c (def_cfa_1): Likewise for DW_CFA_cfa_offset.
2244 * dwarf2out.c (need_data_align_sf_opcode): New.
2245 (div_data_align): Move earlier.
2246 (def_cfa_1, reg_save): Use it.
2248 2009-06-11 H.J. Lu <hongjiu.lu@intel.com>
2250 * config/i386/i386.c (OPTION_MASK_ISA_CRC32_SET): New.
2251 (OPTION_MASK_ISA_CRC32_UNSET): Likewise.
2252 (ix86_handle_option): Handle OPT_mcrc32.
2253 (ix86_target_string): Add -mcrc32.
2254 (bdesc_args): Enable crc32 builtins with OPTION_MASK_ISA_CRC32.
2256 * config/i386/i386.h (TARGET_CRC32): New.
2258 * config/i386/i386.md (sse4_2_crc32<mode>): Also check TARGET_CRC32.
2259 (sse4_2_crc32di): Likewise.
2261 * config/i386/i386.opt (mcrc32): New.
2263 * doc/invoke.texi: Document -mcrc32.
2265 2009-06-11 Richard Henderson <rth@redhat.com>
2267 * common.opt (gdwarf-): Accept a version number.
2268 * doc/invoke.texi (gdwarf-): Update docs.
2269 * opth-gen.awk: Special case -gdwarf+ to OPT_gdwarfplus.
2270 * opts.c (common_handle_option) [OPT_gdwarf_]: Verify dwarf
2271 version level, and record it.
2273 * dwarf2.h (DW_CIE_VERSION): Remove.
2274 * dwarf2out.c (DWARF_VERSION): Remove.
2275 (add_fde_cfi): Skip DW_CFA_set_loc addition for dwarf3.
2276 (output_call_frame_info): Use CIE version 3 for dwarf3,
2277 or if the return register column is out of range for version 1.
2278 (dwarf_stack_op_name): Add all dwarf3 values.
2279 (DEBUG_PUBTYPES_SECTION): New.
2280 (size_of_die) [dw_val_class_die_ref]: Handle DW_FORM_ref_addr
2281 encoding change for dwarf3.
2282 (output_die) [dw_val_class_die_ref]: Likewise.
2283 (output_compilation_unit_header): Emit correct version for dwarf3.
2284 (output_line_info): Likewise.
2285 (output_pubnames): Update for DWARF_VERSION removal.
2286 (output_aranges): Likewise.
2287 (gen_subprogram_die): Emit DW_OP_call_frame_cfa if emitting dwarf3.
2288 (dwarf2out_init): Don't ifdef DEBUG_PUBTYPES_SECTION.
2289 (dwarf2out_finish): Likewise.
2291 2009-06-11 David Daney <ddaney@caviumnetworks.com>
2293 * system.h (gcc_assert, gcc_unreachable): Revert accidental commit
2296 2009-06-11 David Daney <ddaney@caviumnetworks.com>
2299 * doc/extend.texi ( __builtin_unreachable): Document new builtin.
2300 * builtins.c (expand_builtin_unreachable): New function.
2301 (expand_builtin): Handle BUILT_IN_UNREACHABLE case.
2302 * builtins.def (BUILT_IN_UNREACHABLE): Add new builtin.
2303 * cfgcleanup.c (try_optimize_cfg): Delete empty blocks with no
2305 * cfgrtl.c (rtl_verify_flow_info): Handle empty blocks when
2306 searching for missing barriers.
2308 2009-06-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2310 * config/darwin.h (LINK_COMMAND_SPEC): Adjust spec to link libcov
2311 when -fprofile-generate* was passed.
2312 * config/darwin9.h (LINK_COMMAND_SPEC): Likewise.
2314 2009-06-11 Anthony Green <green@moxielogic.com>
2316 * config/moxie/moxie.md: Define length attribute for all instructions.
2318 (*b<cond:code>): Support limited branch ranges for new PC-relative
2319 branch instructions.
2320 * config/moxie/moxie.h (HAS_LONG_UNCOND_BRANCH): Define.
2322 2009-06-11 Jakub Jelinek <jakub@redhat.com>
2324 * config/i386/i386.c (min_insn_size): Use get_attr_length
2325 for normal insns other than TYPE_MULTI, TYPE_OTHER and TYPE_FCMP.
2328 * config/i386/i386.c (ix86_pad_returns): Use emit_jump_insn_before
2329 instead of emit_insn_before.
2331 2009-06-10 Ian Lance Taylor <iant@google.com>
2334 * graphite.c (add_conditions_to_domain): Change SWITCH_EXPR to
2337 2009-06-10 Revital Eres <eres@il.ibm.com>
2339 * passes.c (init_optimization_passes): Reschedule
2340 predictive-commoning pass before complete unroll pass.
2342 2009-06-10 Martin Jambor <mjambor@suse.cz>
2344 * cgraph.c (cgraph_node_can_be_local_p): New function.
2345 (cgraph_make_node_local): New function.
2346 * cgraph.h (cgraph_node_can_be_local_p): Declare.
2347 (cgraph_make_node_local): Declare.
2349 2009-06-10 Nathan Froyd <froydnj@codesourcery.com>
2351 * tree.h (tree_base): Add packed_flag and user_align fields.
2352 Decrease size of spare field.
2353 (TYPE_USER_ALIGN): Use user_align from tree_base.
2354 (DECL_USER_ALIGN): Likewise.
2355 (TYPE_PACKED): Use packed_flag from tree_base.
2356 (DECL_PACKED): Likewise.
2357 (tree_type): Delete packed_flag and user_align fields. Widen
2358 precision field. Widen mode field and shuffle fields to align
2359 mode on an 8-bit boundary.
2360 (tree_decl_common): Delete decl_flag_1 and user_align fields.
2361 Renumber decl_flag_* fields. Fix comments. Widen
2362 decl_common_unused field.
2363 (DECL_HAS_VALUE_EXPR_P): Adjust for renumbering of decl_flag_* fields.
2364 (DECL_EXTERNAL): Likewise.
2365 (DECL_BIT_FIELD): Likewise.
2366 (DECL_NONADDRESSABLE_P): Likewise.
2367 (TYPE_DECL_SUPRESS_DEBUG): Likewise.
2368 * config/arm/arm-modes.def (XImode): Make it an INT_MODE.
2370 2009-06-10 Ian Lance Taylor <iant@google.com>
2372 * vec.h (DEF_VEC_ALLOC_I): Use DEF_VEC_NONALLOC_FUNCS_I.
2373 (DEF_VEC_ALLOC_P): Use DEF_VEC_NONALLOC_FUNCS_P.
2374 (DEF_VEC_ALLOC_O): Use DEF_VEC_NONALLOC_FUNCS_O.
2375 (DEF_VEC_ALLOC_FUNC_P): Only define VEC_OP (T,A,alloc).
2376 (DEF_VEC_NONALLOC_FUNCS_P): New macro, broken out of old
2377 DEF_VEC_ALLOC_FUNC_P.
2378 (DEF_VEC_ALLOC_FUNC_O): Only define VEC_OP (T,A,alloc).
2379 (DEF_VEC_NONALLOC_FUNCS_O): New macro, broken out of old
2380 DEF_VEC_ALLOC_FUNC_O.
2381 (DEF_VEC_ALLOC_FUNC_I): Only define VEC_OP (T,A,alloc).
2382 (DEF_VEC_NONALLOC_FUNCS_I): New macro, broken out of old
2383 DEF_VEC_ALLOC_FUNC_I.
2384 (vec_stack_p_reserve, vec_stack_p_reserve_exact): Declare.
2385 (vec_stack_p_reserve_exact_1): Declare.
2386 (vec_stack_o_reserve, vec_stack_o_reserve_exact): Declare.
2387 (vec_stack_free): Declare.
2388 (VEC_stack_alloc): Define.
2389 (DEF_VEC_ALLOC_P_STACK, DEF_VEC_ALLOC_FUNC_P_STACK): Define.
2390 (DEF_VEC_ALLOC_O_STACK, DEF_VEC_ALLOC_FUNC_O_STACK): Define.
2391 (DEF_VEC_ALLOC_I_STACK, DEF_VEC_ALLOC_FUNC_I_STACK): Define.
2392 * vec.c (void_p): New type. Call DEF_VEC_P and DEF_VEC_ALLOC_P
2394 (stack_vecs): New static variable.
2395 (vec_stack_p_reserve_exact_1): New function.
2396 (vec_stack_o_reserve_1): New static function.
2397 (vec_stack_p_reserve, vec_stack_p_reserve_exact): New functions.
2398 (vec_stack_o_reserve, vec_stack_o_reserve_exact): New functions.
2399 (vec_stack_free): New function.
2400 * df-scan.c (df_ref): Use DEF_VEC_P and DEF_VEC_ALLOC_P_STACK.
2401 (VEC_df_ref_stack_alloc): Define.
2402 (df_mw_hardreg_ptr): New type. Use DEF_VEC_P and
2403 DEF_VEC_ALLOC_P_STACK.
2404 (VEC_df_mw_hardreg_ptr_stack_alloc): Define.
2405 (struct df_collection_rec): Change _vec fields to VEC. Remove
2407 (df_free_collection_rec): Adjust for new fields.
2408 (df_insn_rescan): Use new df_collection_rec fields.
2409 (df_notes_rescan, df_canonize_collection_rec): Likewise.
2410 (df_ref_create_structure, df_ref_record): Likewise.
2411 (df_get_conditional_uses, df_get_call_refs): Likewise.
2412 (df_insn_refs_collect, df_bb_refs_collect): Likewise.
2413 (df_bb_refs_record, df_record_entry_block_defs): Likewise.
2414 (df_record_exit_block_uses, df_bb_verify): Likewise.
2415 (df_swap_refs): Change ref_vec parameter to VEC. Change all callers.
2416 (df_sort_and_compress_refs): Change ref_vec parameter to VEC.
2417 Remove count parameter. Change return type to void. Change all
2419 (df_sort_and_compress_mws): Change mw_vec parameter to VEC.
2420 Remove count parameter. Change return type to void. Change all
2422 (df_install_refs): Change old_vec parameter to VEC. Remove count
2423 parameter. Change all callers.
2424 (df_install_mws): Change old_vec parameter to VEC. Remove count
2425 parameter. Change all callers.
2426 (df_refs_verify): Change new_rec parameter to VEC. Change call
2428 (df_mws_verify): Likewise.
2430 2009-06-10 Alexandre Oliva <aoliva@redhat.com>
2432 * gcc.c (compare_files): Cast munmap argumento to caddr_t.
2434 2009-06-10 H.J. Lu <hongjiu.lu@intel.com>
2436 * doc/extend.texi: Add description for __builtin_ia32_crc32di.
2438 2009-06-10 Anthony Green <green@moxielogic.com>
2440 * config/moxie/crti.asm: New file.
2441 * config/moxie/crtn.asm: New file.
2442 * config/moxie/moxie.c: New file.
2443 * config/moxie/moxie.h: New file.
2444 * config/moxie/sfp-machine.h: New file.
2445 * config/moxie/moxie-protos.h: New file.
2446 * config/moxie/t-moxie: Created.
2447 * config/moxie/t-moxie-softfp: Created.
2448 * config/moxie/moxie.md: Created.
2449 * config/moxie/constraints.md: Created.
2450 * config.gcc: Add moxie support.
2451 * doc/md.texi (Machine Constraints): Add moxie constraints.
2452 * doc/contrib.texi (Contributors): Mention moxie port.
2453 * doc/install.texi (Specific): Mention the moxie port.
2455 2009-06-09 Ian Lance Taylor <iant@google.com>
2457 * system.h (HAVE_DESIGNATED_INITIALIZERS): Don't define if
2459 * optabs.c (optab_table): Only use designated initializers if
2460 HAVE_DESIGNATED_INITIALIZERS is defined.
2461 (convert_optab_table): Likewise.
2462 (init_optabs): Always call init_insn_codes if
2463 HAVE_DESIGNATED_INITIALIZERS is not defined.
2465 2009-06-09 Ian Lance Taylor <iant@google.com>
2467 * targhooks.c (default_builtin_vectorized_function): Change fn
2468 parameter to unsigned int.
2469 (default_builtin_vectorized_conversion): Change code parameter to
2471 (default_builtin_reciprocal): Change fn parameter to unsigned int.
2472 * targhooks.h: Update declarations.
2473 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Change code
2474 parameter to unsigned int.
2476 * c-typeck.c (comptypes_check_enum_int): New static function.
2477 (comptypes_internal): Add enum_and_int_p parameter. Change all
2479 (comp_target_types): Add location parameter. Change all callers.
2480 (tagged_types_tu_compatible_p): Add enum_and_int_p parameter.
2482 (function_types_compatible_p, type_lists_compatible_p): Likewise.
2483 (build_conditional_expr): Add colon_loc parameter. Change all
2485 (convert_for_assignment): Add location parameter. Change all callers.
2486 * c-parser.c (c_parser_conditional_expression): Pass location of
2487 colon to build_conditional_expr.
2488 * c-tree.h (build_conditional_expr): Update declaration.
2490 2009-06-09 Sebastian Pop <sebastian.pop@amd.com>
2492 * graphite.c: Revert previous patch.
2494 2009-06-09 Sebastian Pop <sebastian.pop@amd.com>
2497 * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
2499 2009-06-09 Ghassan Shobaki <ghassan.shobaki@amd.com>
2501 * tree-ssa-loop-prefetch.c
2502 (loop_prefetch_arrays): Fixed a portability problem in printf format
2505 2009-06-09 Martin Jambor <mjambor@suse.cz>
2507 PR tree-optimization/40351
2508 * tree-sra.c (propagate_subacesses_accross_link): Check that a
2509 refrence to a potential artifical subaccess can be constructed.
2511 2009-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
2513 * config/sh/sh-protos.h (sh_optimization_options): Declare.
2514 (sh_override_options): Likewise.
2515 * config/sh/sh.c: Include params.h.
2516 (sh_optimization_options): New.
2517 (sh_override_options): Likewise.
2518 * config/sh/sh.c (OPTIMIZATION_OPTIONS): Use sh_optimization_options.
2519 (OVERRIDE_OPTIONS): Use sh_override_options.
2521 2009-06-08 Jakub Jelinek <jakub@redhat.com>
2523 * dwarf2out.c (emit_cfa_remember): New variable.
2524 (add_fde_cfi): If emit_cfa_remember, recurse to add
2525 DW_CFA_remember_state first.
2526 (dwarf2out_begin_epilogue): Don't add_fde_cfi DW_CFA_remember_state,
2527 instead just set emit_cfa_remember.
2529 2009-06-08 Jan Hubicka <jh@suse.cz>
2532 * dwarf2out.c (dwarf2out_abstract_function): Free decl_loc_table.
2534 2009-06-08 Jan Hubicka <jh@suse.cz>
2537 * cgraphunit.c (save_inline_function_body): Do not copy transform
2538 hooks for saved inline bodies.
2539 * ipa-passes.c (do_per_function): Do not add the hoks multiple times
2542 2009-06-08 Adam Nemet <anemet@caviumnetworks.com>
2544 * jump.c (returnjump_p): Handle delayed branches. Add missing
2547 2009-06-08 Jan Hubicka <jh@suse.cz>
2550 * cgraph.c (cgraph_create_edge_including_clones): Also asume that the
2551 original node might've been modified.
2552 * tree-inline.c (copy_bb): Do not assume that all clones are the same.
2554 2009-06-08 Jakub Jelinek <jakub@redhat.com>
2556 * tree-object-size.c (addr_object_size): Add OSI argument.
2557 Handle also INDIRECT_REF with SSA_NAME inside of it as base address.
2558 (compute_builtin_object_size, expr_object_size): Adjust callers.
2559 (plus_stmt_object_size): Call addr_object_size instead of
2560 compute_builtin_object_size.
2562 2009-06-08 Ghassan Shobaki <ghassan.shobaki@amd.com>
2563 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
2565 * tree-ssa-loop-prefetch.c
2566 (gather_memory_references): Introduced a counter for the number of
2568 (anything_to_prefetch_p): Introduced a counter for the number of
2570 (is_loop_prefetching_profitable): New function with a cost model
2572 (loop_prefetch_arrays): Use the new cost model to determine if
2573 prefetching is profitable.
2574 * params.def (MIN_INSN_TO_PREFETCH_RATIO,
2575 PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
2576 * params.h (MIN_INSN_TO_PREFETCH_RATIO,
2577 PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
2578 * doc/invoke.texi (MIN_INSN_TO_PREFETCH_RATIO,
2579 PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
2581 2009-06-08 Michael Matz <matz@suse.de>
2584 * cfgexpand.c (set_rtl): Store place also in DECL_RTL, if all
2585 partitions use the same.
2586 (expand_one_var): Deal with DECL_RTL sometimes begin set also
2587 for basevars of SSA_NAMEs.
2588 (expand_used_vars): Reset TREE_USED for basevars of SSA_NAMEs,
2589 to not expand them twice.
2590 (gimple_expand_cfg): Clear DECL_RTL for those decls that have
2593 2009-06-08 Alexandre Oliva <aoliva@redhat.com>
2595 * common.opt (fcompare-debug=, fcompare-debug-second): New.
2596 (fdump-final-insns=, gtoggle): New.
2597 * doc/invoke.texi: Document them.
2598 * final.c (rest_of_clean_state): Dump final insn stream.
2599 * gcc.c (invoke_as): Hook in -fcompare-debug.
2600 (static_spec_functions): Add compare-debug-dump-opt,
2601 compare-debug-self-opt and compare-debug-auxbase-opt.
2602 (compare_debug, compare_debug_second, compare_debug_opt): New.
2603 (switches_debug_check, n_switches_debug_check): New.
2604 (debug_auxbase_opt, debug_check_temp_file): New.
2605 (process_command): Handle -fno-compare-debug, -fcompare-debug and
2607 (do_self_spec): Handle arguments after switches.
2608 (do_spec_1): Add .gk extension to temp file basenames for compare.
2609 (check_live_switch): Take SWITCH_IGNORE into account, and earlier.
2610 (cc1_options): Use it instead of normal auxbase computation for
2611 the second compare-debug compilation.
2612 (compare_files): New.
2613 (main): Set up and implement compare debug mode.
2614 (compare_debug_dump_opt_spec_function): New.
2615 (compare_debug_self_opt_spec_function): New.
2616 (compare_debug_auxbase_opt_spec_function): New.
2617 * toplev.c (process_options): Handle flag_gtoggle,
2618 flag_dump_final_insns.
2619 * coverage.c (coverage_begin_output): Don't overwrite .gcno file
2620 during -fcompare-debug-second compilation.
2622 2009-06-07 Ian Lance Taylor <iant@google.com>
2624 * dwarf2.h (enum dwarf_location_atom): Add INTERNAL_DW_OP_tls_addr.
2625 * dwarf2out.c (INTERNAL_DW_OP_tls_addr): Don't #define.
2627 * c-common.c (c_do_switch_warnings): Don't exit early for -Wswitch
2628 with no default node. Change warning with %H to warning_at.
2629 Don't clear warn_switch around case checking.
2630 * doc/invoke.texi (Warning Options): Clarify distinction between
2631 -Wswitch and -Wswitch-enum.
2633 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
2635 * tree-pass.h (TODO_update_ssa_any): Document internal use only.
2637 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
2639 * gbl-ctors.h: Add header guard.
2641 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
2643 * tree-flow.h (make_value_handle, set_value_handle, sort_vuses,
2644 sort_vuses_heap, vn_lookup_or_add, vn_lookup_or_add_with_stmt,
2645 vn_lookup_or_add_with_vuses, vn_add, vn_add_with_vuses,
2646 vn_lookup_with_stmt, vn_lookup, vn_lookup_with_vuses): Remove
2647 prototypes for removed functions.
2648 (expressions_equal_p): Move to ...
2649 * tree-ssa-sccvn.h: ... here and ...
2650 * matrix-reorg.c: ... adjust includes.
2652 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
2654 * ipa-struct-reorg.c (do_reorg_1): Fix whitespace in dump output.
2656 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
2658 * c-decl.c (finish_decl): Use bool for variable was_incomplete.
2659 (finish_function): Remove erroneous whitespace.
2661 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
2663 * tree-cfg.c (gimple_merge_blocks): Commentary typo fix.
2664 (verify_stmts): Print statement who's gimple_bb is set to a wrong BB
2666 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
2668 * errors.c (internal_error): Commentary typo fix.
2669 * gimple-iterator.c (gsi_insert_seq_on_edge): Ditto.
2670 * tree-ssa-pre.c: Ditto.
2672 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
2674 * basic-block.h (ENTRY_BLOCK, EXIT_BLOCK): Document that neither of
2675 them is supposed to hold actual statements.
2677 2009-06-06 Ian Lance Taylor <iant@google.com>
2679 * doc/extend.texi (Attribute Syntax): Document that C++ labels on
2680 empty statements can now have attributes.
2682 2009-06-05 Shujing Zhao <pearly.zhao@oracle.com>
2684 * config/mips/mips.c: Use REG_P and CONST_INT_P where applicable.
2685 * config/mips/mips.md: Ditto.
2687 2009-06-05 Nathan Froyd <froydnj@codesourcery.com>
2689 * config/rs6000/eabi.asm (__eabi_convert): Don't define if
2691 (__eabi_uconvert): Likewise.
2693 2009-06-05 Nathan Froyd <froydnj@codesourcery.com>
2695 * config/rs6000/ppc-asm.h: Protect auto-host.h inclusion and
2696 CFI_* definitions with IN_GCC.
2698 2009-06-05 David Edelsohn <edelsohn@gnu.org>
2700 * xcoffout.h (xcoffout_source_line): Update prototype.
2702 2009-06-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2704 * builtins.c (do_mpc_ckconv, do_mpc_arg1): Use
2705 mpc_realref/mpc_imagref instead of MPC_RE/MPC_IM.
2707 2009-06-05 Jakub Jelinek <jakub@redhat.com>
2710 * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
2711 inlined_function_outer_scope_p blocks for artificial inlines
2713 * tree.c (tree_nonartificial_location): Rewrite using
2714 block_nonartificial_location.
2716 2009-06-05 Revital Eres <eres@il.ibm.com>
2717 Leehod Baruch <leehod@il.ibm.com>
2719 * expr.c (expand_assignment): Expand MISALIGNED_INDIRECT_REF.
2720 (expand_expr_real_1): Remove comment.
2721 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
2722 Vectorize misaligned access when the target supports it.
2723 (vect_supportable_dr_alignment): Check for unaligned access support.
2724 * tree-vect-stmts.c (vectorizable_store): Generate misaligned store
2727 2009-06-05 Julian Brown <julian@codesourcery.com>
2729 * config/arm/ieee754-df.S (cmpdf2): Avoid writing below SP.
2730 * config/arm/ieee754-sf.S (cmpsf2): Likewise.
2732 2009-06-05 Richard Guenther <rguenther@suse.de>
2735 * dwarf2out.c (dwarf2out_begin_function): Mark discriminator
2738 2009-06-05 Jakub Jelinek <jakub@redhat.com>
2740 * config/s390/s390.c (global_not_special_regno_p): New static inline.
2741 (save_gprs): Don't tell unwinder when a global register is saved.
2742 (s390_emit_epilogue): Emit needed epilogue unwind info.
2744 2009-06-05 Alexandre Oliva <aoliva@redhat.com>
2746 * dwarf2out.c (deferred_asm_name): New.
2747 (add_name_and_src_coords_attributes): Defer creation of
2748 DW_AT_MIPS_linkage_name attribute if DECL_ASSEMBLER_NAME was not
2750 (move_linkage_attr): New.
2751 (dwarf2out_finish): Revisit deferrals and emit attributes at the
2754 2009-06-05 Alexandre Oliva <aoliva@redhat.com>
2756 * tree-nested.c (finalize_nesting_tree_1): Declare the
2757 frame_decl in the binding tree.
2759 2009-06-04 Cary Coutant <ccoutant@google.com>
2761 * basic-block.h (struct basic_block_def): Add discriminator field.
2762 * dbxout.c (dbxout_source_line): Add new parameter. Change all
2764 * debug.c (do_nothing_debug_hooks): Add additional entry.
2765 (debug_nothing_int_charstar_int): New function.
2766 * debug.h (struct gcc_debug_hooks): Add parameter to source_line hook.
2767 (debug_nothing_int_charstar_int): New declaration.
2768 * dwarf2out.c (dwarf2out_source_line): Add new parameter. Write
2769 discriminator value in .loc directive.
2770 * final.c (last_discriminator): New variable.
2771 (discriminator): New variable.
2772 (final_start_function): Initialize above variables, pass current
2773 discriminator to debug hook.
2774 (notice_source_line): Check for discriminator change.
2775 * gimple-pretty-print.c (dump_bb_header): Print discriminator value.
2776 * sdbout.c (sdbout_source_line): New parameter.
2777 * tree-cfg.c (struct locus_discrim_map): New structure type.
2778 (discriminator_per_locus): New hash table.
2779 (build_gimple_cfg): Allocate and free discriminator hash table.
2780 (make_edges): Call assign_discriminator.
2781 (locus_map_hash): New function.
2782 (locus_map_eq): New function.
2783 (next_discriminator_for_locus): New function.
2784 (same_line_p): New function.
2785 (assign_discriminator): New function.
2786 (make_cond_expr_edges): Call assign_discriminator.
2787 (make_gimple_switch_edges): Likewise.
2788 (first_non_label_stmt): New function.
2789 * vmsdbgout.c (vmsdbgout_source_line): Add new parameter. Change
2791 * xcoffout.c (xcoffout_source_line): Add new parameter.
2793 * configure.ac (gcc_cv_as_discriminator): New configury check for
2794 gas support for discriminator.
2795 * configure: Regenerate.
2796 * config.in: Regenerate.
2798 2009-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2800 * config/arm/arm.c (thumb2_legitimate_index_p): Initialize
2801 val after checking for integers.
2803 2009-06-04 Uros Bizjak <ubizjak@gmail.com>
2805 * config/i386/i386.h (X86_64_MS_REGPARM_MAX): Rename from
2807 (REGPARM_MAX): Use X86_64_MS_REGPARM_MAX.
2808 (X86_64_MS_SSE_REGPARM_MAX): Rename from X64_SSE_REGPARM_MAX.
2809 (SSE_REGPARM_MAX): Use X86_64_MS_SSE_REGPARM_MAX.
2810 * config/i386/i386.c: Use X86_64_MS_REGPARM_MAX instead of
2811 X64_REGPARM_MAX. Use X86_64_MS_SSE_REGPARM_MAX instead of
2812 X64_SSE_REGPARM_MAX.
2813 * config/i386/i386.md: Use X86_64_MS_SSE_REGPARM_MAX instead of
2814 X64_SSE_REGPARM_MAX.
2816 2009-06-04 Alexandre Oliva <aoliva@redhat.com>
2818 * gcc.c (report_times_to_file): New.
2819 (execute): Implement it.
2820 (process_command): Support -time=.
2821 * doc/invoke.texi: Document it.
2823 2009-06-04 Alexandre Oliva <aoliva@redhat.com>
2825 * tree-ssa-live.c (remove_unused_scope_block_p): Keep variables
2826 that have value exprs.
2828 2009-06-04 Alexandre Oliva <aoliva@redhat.com>
2830 * dwarf2asm.c (dw2_force_const_mem): Defer creation of
2831 declarations for constants until...
2832 (dw2_output_indirect_constant_1): ... this point.
2834 2009-06-04 Richard Earnshaw <rearnsha@arm.com>
2837 * arm.md (arm_addsi3): Don't try to split an add with an
2838 eliminable register until after reload has completed.
2840 2009-06-03 Ian Lance Taylor <iant@google.com>
2842 * dummy-checksum.c (executable_checksum): Use EXPORTED_CONST.
2843 * genattrtab.c (write_length_unit_log): Likewise.
2844 * genchecksum.c (dosum): Likewise.
2845 * gengtype.c (write_rtx_next): Likewise.
2846 (finish_root_table, write_roots): Likewise.
2847 * gimple.c (gimple_ops_offset_): Likewise.
2848 * tree-nomudflap.c (gt_ggc_r_gt_tree_mudflap_h): Likewise.
2849 * config/arc/arc.c (arc_attribute_table): Likewise.
2850 * config/arm/arm.c (arm_attribute_table): Likewise.
2851 * config/avr/avr.c (avr_attribute_table): Likewise.
2852 * config/crx/crx.c (crx_attribute_table): Likewise.
2853 * config/m32r/m32r.c (m32r_attribute_table): Likewise.
2854 * config/m68hc11/m68hc11.c (m68hc11_attribute_table): Likewise.
2855 * config/mcore/mcore.c (mcore_attribute_table): Likewise.
2856 * config/rs6000/rs6000.c (rs6000_attribute_table): Likewise.
2857 * config/sh/sh.c (sh_attribute_table): Likewise.
2858 * config/sparc/sparc.c (sparc_attribute_table): Likewise.
2859 * config/spu/spu.c (spu_attribute_table): Likewise.
2860 * config/v850/v850.c (v850_attribute_table): Likewise.
2862 * config/alpha/alpha.c (vms_attribute_table): Make static.
2863 * config/bfin/bfin.c (bfin_attribute_table): Likewise.
2864 * config/h8300/h8300.c (h8300_attribute_table): Likewise.
2865 * config/mips/mips.c (mips_attribute_table): Likewise.
2867 * Makefile.in (dummy-checksum.o): Depend upon $(CONFIG_H) and
2869 (cc1-checksum.o): Likewise.
2871 2009-06-03 Steve Ellcey <sje@cup.hp.com>
2873 * config/ia64/vect.md (*movv2sf_internal): Handle big endian case.
2875 2009-06-03 Jakub Jelinek <jakub@redhat.com>
2877 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Return generated
2878 insn if it is changing sp. Use gen_add3_insn instead of
2879 conditionally gen_addsi3 and gen_adddi3.
2880 (offset_below_red_zone_p): New static inline function.
2881 (rs6000_emit_epilogue): Emit needed epilogue unwind info.
2882 Use gen_add3_insn instead of conditionally gen_addsi3 and gen_adddi3.
2883 * config/rs6000/ppc-asm.h: Include auto-host.h.
2884 (CFI_STARTPROC, CFI_ENDPROC, CFI_DEF_CFA_REGISTER, CFI_OFFSET,
2885 CFI_RESTORE): Define.
2886 * config/rs6000/crtresxgpr.asm: Add unwind info.
2887 * config/rs6000/crtresxfpr.asm: Likewise.
2888 * config/rs6000/crtresgpr.asm: Likewise.
2889 * config/rs6000/crtresfpr.asm: Likewise.
2890 * config/rs6000/crtsavgpr.asm: Likewise.
2891 * config/rs6000/crtsavfpr.asm: Likewise.
2893 * dwarf2out.c (output_cfi_directive): Pass 1 instead of 0 to second
2894 argument of DWARF2_FRAME_REG_OUT macros.
2896 2009-06-03 Julian Brown <julian@codesourcery.com>
2898 * config/arm/arm.c (arm_hard_regno_mode_ok): Permit values of four
2899 words or less (including TImode) in core registers.
2901 2009-06-03 Richard Guenther <rguenther@suse.de>
2904 * fold-const.c (fold_convert): Fold the build COMPLEX_EXPR.
2906 2009-06-03 Andrey Belevantsev <abel@ispras.ru>
2908 * statistics.c (statistics_counter_event): Do not record event
2909 in pass dump if its number == -1.
2910 (curr_statistics_hash): Add assert that we never get passes
2911 with static number == -1.
2913 2009-06-03 Richard Guenther <rguenther@suse.de>
2914 Andrey Belevantsev <abel@ispras.ru>
2916 * cfgexpand.c (discover_nonconstant_array_refs_r): Make only
2917 non-BLKmode arrays addressable.
2919 2009-06-03 Maxim Kuvyrkov <maxim@codesourcery.com>
2921 * config/m68k/linux.h (HAVE_GAS_BALIGN_AND_P2ALIGN): Move to ...
2922 * config/m68k/m68k.h: ... here.
2923 * testsuite/gcc.dg/falign-labels.c (dg-options): Don't restrict for
2926 2009-06-03 Martin Jambor <mjambor@suse.cz>
2928 PR tree-optimization/40323
2929 * ipa-prop.c (get_ssa_def_if_simple_copy): Break if not single
2932 2009-06-03 Richard Guenther <rguenther@suse.de>
2934 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
2937 2009-06-03 Shujing Zhao <pearly.zhao@oracle.com>
2939 * config/sh/predicates.md: Use REG_P, MEM_P, CONST_INT_P, LABEL_P,
2940 JUMP_P, CALL_P, NONJUMP_INSN_P, NOTE_P, BARRIER_P and
2941 JUMP_TABLE_DATA_P where applicable.
2942 * config/sh/sh.c: Ditto.
2943 * config/sh/sh.h: Ditto.
2944 * config/sh/sh.md: Ditto.
2945 * config/sh/symbian.c: Ditto.
2947 2009-06-03 Uros Bizjak <ubizjak@gmail.com>
2949 * config/i386/driver-i386.c (describe_cache): Optimize
2950 concatenation of strings. Use snprintf instead of sprintf.
2951 (host_detect_local_cpu): Ditto. Ignore -march and -mtune for native
2952 target when not compiling with GCC.
2954 2009-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
2956 * config/sh/sh.c: Revert last change.
2957 (sh_expand_epilogue): Emit a blockage insn before the frame
2958 pointer adjustment unconditionally.
2960 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
2962 * config/pa/pa-hpux.h (LINK_SPEC): Remove "%<fwhole-program".
2963 * config/pa/pa-hpux10.h (LINK_SPEC): Likewise.
2964 * config/pa/pa-hpux11.h (LINK_SPEC): Likewise.
2965 * gcc.c (set_collect_gcc_options): Don't add -fwhole-program
2966 to COLLECT_GCC_OPTIONS.
2968 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
2970 * collect2.c (target_system_root): New variable.
2971 (main): Handle --sysroot=.
2972 (ignore_library): Strip the sysroot from the library path.
2974 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
2976 * Makefile.in (COLLECT2_OBJS): Add collect2-aix.o.
2977 (collect2.o): Depend on collect2-aix.h.
2978 (collect2-aix.o): New rule.
2979 * collect2-aix.h: New file.
2980 * collect2-aix.c: Likewise.
2981 * collect2.c: Include collect2-aix.h. Don't undefine
2982 OBJECT_FORMAT_COFF if CROSS_AIX_SUPPORT is defined.
2983 Guard native includes with #ifndef CROSS_DIRECTORY_STRUCTURE.
2984 Use TARGET_AIX_VERSION instead of _AIX51.
2985 * config/rs6000/aix43.h (TARGET_AIX_VERSION): Define.
2986 * config/rs6000/aix51.h (TARGET_AIX_VERSION): Likewise.
2987 * config/rs6000/aix52.h (TARGET_AIX_VERSION): Likewise.
2988 * config/rs6000/aix53.h (TARGET_AIX_VERSION): Likewise.
2989 * config/rs6000/aix61.h (TARGET_AIX_VERSION): Likewise.
2991 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
2993 * collect2.c (ignore_library): Avoid premature post-increment
2996 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
2998 * Makefile.in (libgcc.mvars): Add TARGET_SYSTEM_ROOT.
2999 * config/rs6000/aix.h (LINK_SYSCALLS_SPEC): Add %R to the
3000 !CROSS_DIRECTORY_STRUCTURE alternative and use it for
3001 CROSS_DIRECTORY_STRUCTURE too.
3002 (LINK_LIBG_SPEC): Likewise.
3003 (LIB_SPEC): Add %R to sysroot paths.
3004 * config/rs6000/aix43.h (CPP_SPEC): Add %R to sysroot paths.
3005 (CPLUSPLUS_CPP_SPEC, LIB_SPEC): Likewise.
3006 * config/rs6000/aix51.h: As for aix43.h.
3007 * config/rs6000/aix52.h: Likewise.
3008 * config/rs6000/aix53.h: Likewise.
3009 * config/rs6000/aix61.h: Likewise.
3010 * config/rs6000/t-aix52 (SHLIB_LINK): Add $(TARGET_SYSTEM_ROOT)
3011 to the beginning of sysroot paths.
3013 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
3015 * print_rtl (print_rtx): Don't print modes in EXPR_LISTs and
3016 INSN_LISTs that are out of the REG_NOTE range.
3018 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
3020 * loop-unroll.c (struct iv_to_split): Add pointer to next.
3021 (struct var_to_expand): Likewise.
3022 (struct opt_info): Add head and tail for linked lists of the above.
3023 (analyze_insn_to_expand_var): Initialize next.
3024 (analyze_iv_to_split_insn): Likewise.
3025 (analyze_insns_in_loop): Create linked lists.
3026 (allocate_basic_variable): Simplify for use without hash table.
3027 (insert_var_expansion_initialization): Likewise, make it type-safer.
3028 (combine_var_copies_in_loop_exit): Likewise.
3029 (apply_opt_in_copies): Walk lists rather than hash tables.
3030 (release_var_copies): Simplified and inlined by hand into...
3031 (free_opt_info): ... this function.
3033 2009-06-02 Richard Guenther <rguenther@suse.de>
3035 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
3038 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
3040 * cfgexpand.c (gimple_expand_cfg): Discard the source location
3041 only for builtins that are not overridden.
3043 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
3045 * gengtype.c (adjust_field_rtx_def): Add NOTE_INSN_DELETED_LABEL's
3048 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
3050 * df-core.c (df_ref_debug): Honor -fdump-noaddr.
3052 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
3054 * combine.c (move_deaths): Compare LUIDs within the same BB only.
3056 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
3058 * common.opt (fdump-unnumbered-links): New.
3059 * doc/invoke.texi (-fdump-unnumbered-links): Document it.
3060 * print-rtl.c (flag_dump_unnumbered_links): New.
3061 (print_rtx): Test it.
3063 2009-06-02 Richard Earnshaw <rearnsha@arm.com>
3065 * arm.c (arm_get_frame_offsets): Prefer using r3 for padding a
3066 push/pop multiple to 8-byte alignment.
3068 2009-06-01 Jakub Jelinek <jakub@redhat.com>
3070 * config/i386/i386.c (queued_cfa_restores): New static variable.
3071 (ix86_add_cfa_restore_note, ix86_add_queued_cfa_restore_notes): New
3073 (pro_epilogue_adjust_stack): Call ix86_add_queued_cfa_restore_notes.
3074 (ix86_emit_restore_reg_using_pop): Add RED_OFFSET argument.
3075 Set RTX_FRAME_RELATED_P immediately after adding a REG_CFA_* note.
3076 Call ix86_add_cfa_restore_note instead of adding REG_CFA_OFFSET
3077 note unconditionally.
3078 (ix86_emit_restore_regs_using_mov): Likewise.
3079 (ix86_emit_restore_sse_regs_using_mov): Likewise.
3080 (ix86_emit_restore_regs_using_pop): Add RED_OFFSET argument, pass
3081 it through to ix86_emit_restore_reg_using_pop.
3082 (ix86_emit_leave): Add RED_OFFSET argument. Call
3083 ix86_add_queued_cfa_restore_notes. Call ix86_add_cfa_restore_note
3084 instead of adding REG_CFA_OFFSET note unconditionally.
3085 (ix86_expand_epilogue): Compute RED_OFFSET, pass it down to
3086 the above functions. Call ix86_add_queued_cfa_restore_notes when
3089 * dwarf2out.c (dwarf2out_cfi_label): Add FORCE argument, if true,
3090 force output of the label even for dwarf2out_do_cfi_asm.
3091 (add_fde_cfi): If -g2 and above and cfi might change CFA,
3092 force creation of CFI label and chain DW_CFA_set_loc jumping to it
3093 for convert_cfa_to_fb_loc_list. Adjust other dwarf2out_cfi_label
3095 (dwarf2out_stack_adjust, dwarf2out_frame_debug,
3096 dwarf2out_begin_epilogue, dwarf2out_frame_debug_restore_state): Adjust
3097 dwarf2out_cfi_label callers.
3098 * tree.h (dwarf2out_cfi_label): Adjust prototype.
3099 * config/arm/arm.c (thumb_pushpop, thumb1_output_function_prologue):
3100 Adjust dwarf2out_cfi_label callers.
3101 * config/vax/vax.c (vax_output_function_prologue): Likewise.
3103 * config/i386/i386.h (struct machine_cfa_state,
3104 struct machine_function): Guard with ifndef USED_FOR_TARGET
3105 instead of not IN_LIBGCC2 and not in IN_TARGET_LIBS.
3108 * emutls.c (__emutls_get_address): Change arr->size to mean number
3109 of allocated arr->data entries instead of # of slots + 1.
3112 * recog.c (peep2_reinit_state): New function.
3113 (peephole2_init_state): Use it at the end of a basic block and also
3114 when seeing a RTX_FRAME_RELATED_P insn.
3116 2009-06-01 Steve Ellcey <sje@cup.hp.com>
3118 * ia64.md (floatdirf2, fix_truncrfdi, floatunsdirf,
3119 fixuns_truncrfdi2): New.
3120 (fix_truncxfdi2_alts, fixuns_truncxfdi2_alts,
3121 *nmaddsf4_alts, *nmadddf4_alts, *nmadddf4_truncsf_alts,
3122 *mulxf3_alts, *mulxf3_truncsf_alts, *mulxf3_truncdf_alts,
3123 *maddxf4_alts, *maddxf4_alts_truncsf, *maddxf4_alts_truncdf,
3124 *nmaddxf4_alts, *nmaddxf4_truncsf_alts, *nmaddxf4_truncdf_alts,
3125 *recip_approx): Remove.
3126 (divsi3 modsi3, udivsi3, umodsi3, divsi3_internal, divdi3,
3127 moddi3, udivdi3, umoddi3, divdi3_internal_lat, divdi3_internal_thr,
3128 divsf3, sqrtsf2, divdf3, sqrtdf2, divxf3, sqrtxf2): Modify and
3130 * div.md (fix_truncrfdi2_alts, fixuns_truncrfdi2_alt,
3133 2009-06-01 Ian Lance Taylor <iant@google.com>
3135 * attribs.c (register_attribute): Use CONST_CAST.
3136 * collect2.c (main): Use CONST_CAST2.
3137 (scan_prog_file): Likewise.
3138 * gcc.c (process_command, main): Likewise.
3139 * toplev.c (toplev_main): Likewise.
3141 * c-typeck.c (handle_warn_cast_qual): New static function,
3142 partially broken out of build_c_cast.
3143 (build_c_cast): Call handle_warn_cast_qual.
3144 * doc/invoke.texi (Warning Options): Document new effect of
3147 2009-06-01 Aldy Hernandez <aldyh@redhat.com>
3149 * diagnostic.c (diagnostic_build_prefix): Always print columns.
3150 (diagnostic_report_current_module): Print columns.
3151 * common.opt (flag_show_column): Enable by default.
3153 2009-06-01 Luis Machado <luisgpm@br.ibm.com>
3155 * alias.c (find_base_term): Check for NULL term before returning.
3157 2009-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
3159 Revert due to PR40320:
3160 2009-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
3161 * calls.c (emit_library_call_value_1): Don't force_operand for move
3164 2009-06-01 Olivier Hainque <hainque@adacore.com>
3165 Eric Botcazou <ebotcazou@adacore.com>
3167 * tree.h (CONSTRUCTOR_BITFIELD_P): True if NODE, a FIELD_DECL, is
3168 to be processed as a bitfield for constructor output purposes.
3169 * output.h (initializer_constant_valid_for_bitfield_p): Declare
3171 * varasm.c (oc_local_state): New type, output_constructor
3172 local state to support communication with helpers.
3173 (oc_outer_state): New type, output_constructor outer state of
3174 relevance in recursive calls.
3175 (output_constructor_array_range): New output_constructor helper,
3176 extracted code for an array range element.
3177 (output_constructor_regular_field): New output_constructor helper,
3178 extracted code for an element that is not a bitfield.
3179 (output_constructor_bitfield): New output_constructor helper,
3180 extracted code for a bitfield element. Accept an OUTER state
3181 argument for recursive processing. Recurse on record or array
3182 CONSTRUCTOR values, possibly past noop conversions.
3183 (initializer_constant_valid_for_bitfield_p): New predicate. Whether
3184 VALUE is a valid constant-valued expression for use in a static
3185 bit-field initializer.
3186 (output_constructor): Rework to use helpers. Accept and honor an
3187 OUTER state argument for recursive calls. Return total size. Be
3188 prepared for nested constructors initializing bitfields.
3189 (output_constant): Feed OUTER in calls to output_constructor.
3191 2009-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
3193 * calls.c (emit_library_call_value_1): Don't force_operand for move
3196 2009-06-01 Nick Clifton <nickc@redhat.com>
3198 * doc/invoke.texi (IA-64 Options): Fix typo.
3200 2009-06-01 Ira Rosen <irar@il.ibm.com>
3202 PR tree-optimization/39129
3203 * tree-vect-loop-manip.c (conservative_cost_threshold): Change the
3205 (vect_do_peeling_for_loop_bound): Use
3206 LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
3207 LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
3208 (vect_loop_versioning): Likewise.
3209 (vect_create_cond_for_alias_checks): Fix indentation.
3210 * tree-vectorizer.h (struct _loop_vec_info): Fix indentation of the
3212 (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT): Define.
3213 (LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Likewise.
3214 * tree-vect-loop.c (vect_analyze_loop_form): Change "too many BBs" to
3215 "control flow in loop".
3216 (vect_estimate_min_profitable_iters): Use
3217 LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
3218 LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
3219 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
3220 (vect_create_data_ref_ptr): Don't mention array dimension in printing.
3221 * tree-vect-stmts.c (vectorizable_store): Replace the check that the
3222 statement belongs to a group of strided accesses with the exact code
3224 (vectorizable_load): Likewise.
3225 * tree-vect-slp.c (vect_analyze_slp_instance): Spell out "basic block".
3226 (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
3228 2009-06-01 Gerald Pfeifer <gerald@pfeifer.com>
3230 * config/freebsd-stdint.h: New file.
3231 * config.gcc (*-*-freebsd): Set use_gcc_stdint=wrap.
3232 Add freebsd-stdint.h to tm_file.
3234 2009-06-01 Richard Earnshaw <rearnsha@arm.com>
3236 * arm/thumb2.md (thumb2_zero_extendhidi2): New insn and split.
3237 (thumb2_extendhidi2): Likewise.
3239 2009-05-31 Ian Lance Taylor <iant@google.com>
3241 * regstat.c (regstat_n_sets_and_refs): Remove duplicate definition.
3243 2009-05-31 Ian Lance Taylor <iant@google.com>
3245 * Makefile.in (except.o): Depend upon gt-except.h, not gt-$(EXCEPT_H).
3246 (ipa-cp.o): Depend upon $(FIBHEAP_H) and $(PARAMS_H).
3247 (ipa-reference.o): Depend upon gt-ipa-reference.h.
3249 2009-05-31 Jason Merrill <jason@redhat.com>
3251 * tree-pretty-print.c (print_call_name): Take the callee, not the
3252 call itself. Make non-static. Use dump_function_name for functions.
3253 (dump_generic_node): Adjust.
3254 * diagnostic.h: Declare print_call_name.
3255 * gimple-pretty-print.c (dump_gimple_call): Use it.
3257 2009-05-31 Kaz Kojima <kkojima@gcc.gnu.org>
3259 * config/sh/sh.md (ashldi3_std): New define_expand.
3262 2009-05-31 Kaz Kojima <kkojima@gcc.gnu.org>
3265 * config/sh/sh.c: Include debug.h.
3266 (sh_expand_epilogue): Emit a blockage insn before the frame
3267 pointer adjustment also when dwarf2out_do_frame returns true.
3269 2009-05-31 Richard Earnshaw <rearnsha@arm.com>
3271 * arm/thumb2.md (thumb2_extendsidi2): Add a split sub-pattern.
3272 (thumb2_extendqidi2): New pattern.
3274 2009-05-31 Ira Rosen <irar@il.ibm.com>
3276 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
3277 mark phis for renaming.
3278 * tree-vectorizer.c (vect_memsyms_to_rename): Remove.
3279 (vectorize_loops): Don't allocate and free vect_memsyms_to_rename.
3280 Call mark_sym_for_renaming.
3281 * tree-vectorizer.h (vect_memsyms_to_rename): Remove.
3282 * tree-vect-loop.c (vect_transform_loop): Remove
3283 vect_memsyms_to_rename initialization and a call to
3284 mark_set_for_renaming.
3286 2009-05-31 Jakub Jelinek <jakub@redhat.com>
3289 * config/i386/i386.c (pro_epilogue_adjust_stack): Mark insns
3290 frame related even if !set_cfa && style < 0.
3292 2009-05-30 Kai Tietz <kai.tietz@onevision.com>
3294 * config/i386/mingw-tls.c: New file.
3295 * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Add mingw-tls.c file.
3296 * gthr-win32.h (MINGW32_SUPPORTS_MT_EH): Define it for targets
3297 defining _WIN32 but not __CYGWIN__.
3299 2009-05-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3301 * configure.ac: Add MPC support.
3303 * config.in, configure: Regenerate.
3305 2009-05-29 Richard Henderson <rth@redhat.com>
3307 * cfgcleanup.c (try_crossjump_to_edge): Only skip past
3308 NOTE_INSN_BASIC_BLOCK.
3309 * cfglayout.c (duplicate_insn_chain): Copy epilogue insn marks.
3310 Duplicate NOTE_INSN_EPILOGUE_BEG notes.
3311 * cfgrtl.c (can_delete_note_p): Allow NOTE_INSN_EPILOGUE_BEG
3313 * dwarf2out.c (struct cfa_loc): Change indirect field to bitfield,
3315 (add_cfi): Disable check redefining cfa away from drap.
3316 (lookup_cfa_1): Add remember argument; handle remember/restore.
3317 (lookup_cfa): Pass remember argument.
3318 (cfa_remember): New.
3319 (compute_barrier_args_size_1): Remove sibcall check.
3320 (dwarf2out_frame_debug_def_cfa): New.
3321 (dwarf2out_frame_debug_adjust_cfa): New.
3322 (dwarf2out_frame_debug_cfa_offset): New.
3323 (dwarf2out_frame_debug_cfa_register): New.
3324 (dwarf2out_frame_debug_cfa_restore): New.
3325 (dwarf2out_frame_debug): Handle REG_CFA_* notes.
3326 (dwarf2out_begin_epilogue): New.
3327 (dwarf2out_frame_debug_restore_state): New.
3328 (dw_cfi_oprnd1_desc): Handle DW_CFA_remember_state,
3329 DW_CFA_restore_state.
3330 (output_cfi_directive): Likewise.
3331 (convert_cfa_to_fb_loc_list): Likewise.
3332 (dw_cfi_oprnd1_desc): Handle DW_CFA_restore.
3333 * dwarf2out.h: Update.
3334 * emit-rtl.c (try_split): Don't split RTX_FRAME_RELATED_P.
3335 (copy_insn_1): Early out for null.
3336 * final.c (final_scan_insn): Call dwarf2out_begin_epilogue
3337 and dwarf2out_frame_debug_restore_state.
3338 * function.c (prologue, epilogue, sibcall_epilogue): Remove.
3339 (prologue_insn_hash, epilogue_insn_hash): New.
3340 (free_after_compilation): Adjust freeing accordingly.
3341 (record_insns): Create hash table if needed; push insns into
3342 hash instead of array.
3343 (maybe_copy_epilogue_insn): New.
3344 (contains): Search hash table instead of array.
3345 (sibcall_epilogue_contains): Remove.
3346 (thread_prologue_and_epilogue_insns): Split eh_return insns
3347 and mark them as epilogues.
3348 (reposition_prologue_and_epilogue_notes): Rewrite epilogue
3349 scanning in terms of basic blocks.
3350 * insn-notes.def (CFA_RESTORE_STATE): New.
3351 * jump.c (returnjump_p_1): Accept EH_RETURN.
3352 (eh_returnjump_p_1, eh_returnjump_p): New.
3353 * reg-notes.def (CFA_DEF_CFA, CFA_ADJUST_CFA, CFA_OFFSET,
3354 CFA_REGISTER, CFA_RESTORE): New.
3355 * rtl.def (EH_RETURN): New.
3356 * rtl.h (eh_returnjump_p, maybe_copy_epilogue_insn): Declare.
3358 * config/bfin/bfin.md (UNSPEC_VOLATILE_EH_RETURN): Remove.
3359 (eh_return_internal): Use eh_return rtx; split w/ epilogue.
3361 * config/i386/i386.c (gen_push): Update cfa state.
3362 (pro_epilogue_adjust_stack): Add set_cfa argument. When true,
3363 add a CFA_ADJUST_CFA note.
3364 (ix86_dwarf_handle_frame_unspec): Remove.
3365 (ix86_expand_prologue): Update cfa state.
3366 (ix86_emit_restore_reg_using_pop): New.
3367 (ix86_emit_restore_regs_using_pop): New.
3368 (ix86_emit_leave): New.
3369 (ix86_emit_restore_regs_using_mov): Add CFA_RESTORE notes.
3370 (ix86_expand_epilogue): Add notes for unwinding the epilogue.
3371 * config/i386/i386.h (struct machine_cfa_state): New.
3372 (ix86_cfa_state): New.
3373 * config/i386/i386.md (UNSPEC_EH_RETURN): Remove.
3374 (eh_return_internal): Merge from eh_return_<mode>,
3375 use eh_return rtx, split w/ epilogue.
3377 2009-05-29 Ian Lance Taylor <iant@google.com>
3379 * builtins.c (validate_gimple_arglist): Don't use va_arg with
3381 * calls.c (emit_library_call_value_1): Likewise.
3383 * c-typeck.c (c_build_va_arg): New function.
3384 * c-tree.h (c_build_va_arg): Declare.
3385 * c-parser.c (c_parser_postfix_expression): Call c_build_va_arg
3386 instead of build_va_arg.
3388 2009-05-29 Eric Botcazou <ebotcazou@adacore.com>
3390 * tree-ssa-loop-ivopts.c (strip_offset_1) <MULT_EXPR>: New case.
3391 (force_expr_to_var_cost) <NEGATE_EXPR>: Likewise.
3392 (ptr_difference_cost): Use affine combinations to compute it.
3393 (difference_cost): Likewise.
3394 (get_computation_cost_at): Compute more accurate cost for addresses
3395 if the ratio is a multiplier allowed in addresses.
3396 For non-addresses, consider that an additional offset or symbol is
3399 2009-05-29 Jakub Jelinek <jakub@redhat.com>
3401 * config/i386/i386.c (ix86_decompose_address): Avoid useless
3402 0 displacement. Add 0 displacement if base is %[er]bp or %r13.
3404 * config/i386/i386.md (prefix_data16, prefix_rep): Set to 0 for
3405 TYPE_SSE{MULADD,4ARG,IADD1,CVT1} by default.
3406 (prefix_rex): For UNIT_MMX don't imply the prefix by default
3408 (prefix_extra): Default to 2 for TYPE_SSE{MULADD,4ARG} and
3409 to 1 for TYPE_SSE{IADD1,CVT1}.
3410 (prefix_vex_imm8): Removed.
3411 (length_vex): Only pass 1 as second argument to
3412 ix86_attr_length_vex_default if prefix_extra is 0.
3413 (modrm): For TYPE_INCDEC only set to 0 if not TARGET_64BIT.
3414 (length): For prefix vex computation use length_immediate
3415 attribute instead of prefix_vex_imm8.
3416 (cmpqi_ext_3_insn, cmpqi_ext_3_insn_rex64,
3417 addqi_ext_1, addqi_ext_1_rex64, *testqi_ext_0, andqi_ext_0,
3418 *andqi_ext_0_cc, *iorqi_ext_0, *xorqi_ext_0, *xorqi_cc_ext_1,
3419 *xorqi_cc_ext_1_rex64): Override modrm attribute to 1.
3420 (extendsidi2_rex64, extendhidi2, extendqidi2, extendhisi2,
3421 *extendhisi2_zext, extendqihi2, extendqisi2, *extendqisi2_zext): Emit
3422 a space in between the operands.
3423 (*anddi_1_rex64, *andsi_1): Likewise. Override prefix_rex to 1
3424 if one operand is 0xff and the other one si, di, bp or sp.
3425 (*andhi_1): Override prefix_rex to 1 if one operand is 0xff and the
3426 other one si, di, bp or sp.
3427 (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Add mode attribute.
3428 (*ffssi_1, *ffsdi_1, ctzsi2, ctzdi2): Add
3429 type and mode attributes.
3430 (*bsr, *bsr_rex64, *bsrhi): Add type attribute.
3431 (*cmpfp_i_mixed, *cmpfp_iu_mixed): For TYPE_SSECOMI, clear
3432 prefix_rep attribute and set prefix_data16 attribute iff MODE_DF.
3433 (*cmpfp_i_sse, *cmpfp_iu_sse): Clear prefix_rep attribute and set
3434 prefix_data16 attribute iff MODE_DF.
3435 (*movsi_1): For TYPE_SSEMOV MODE_SI set prefix_data16 attribute.
3436 (fix_trunc<mode>di_sse): Set prefix_rex attribute.
3437 (*adddi_4_rex64, *addsi_4): Use const128_operand instead of
3438 constm128_operand in length_immediate computation.
3439 (*addhi_4): Likewise. Fix mode attribute to MODE_HI.
3440 (anddi_1_rex64): Use movzbl/movzwl instead of movzbq/movzwq.
3441 (*avx_ashlti3, sse2_ashlti3, *avx_lshrti3, sse2_lshrti3): Set
3442 length_immediate attribute to 1.
3443 (x86_fnstsw_1, x86_fnstcw_1, x86_fldcw_1): Fix length attribute.
3444 (*movdi_1_rex64): Override prefix_rex or prefix_data16 attributes
3445 for certain alternatives.
3446 (*movdf_nointeger, *movdf_integer_rex64, *movdf_integer): Override
3447 prefix_data16 attribute if MODE_V1DF.
3448 (*avx_setcc<mode>, *sse_setcc<mode>, *sse5_setcc<mode>): Set
3449 length_immediate to 1.
3450 (set_got_rex64, set_rip_rex64): Remove length attribute, set
3451 length_address to 4, set mode attribute to MODE_DI.
3452 (set_got_offset_rex64): Likewise. Set length_immediate to 0.
3453 (fxam<mode>2_i387): Set length attribute to 4.
3454 (*prefetch_sse, *prefetch_sse_rex, *prefetch_3dnow,
3455 *prefetch_3dnow_rex): Override length_address attribute.
3456 (sse4_2_crc32<mode>): Override prefix_data16 and prefix_rex
3458 * config/i386/predicates.md (ext_QIreg_nomode_operand): New predicate.
3459 (constm128_operand): Removed.
3460 * config/i386/i386.c (memory_address_length): For
3461 disp && !index && !base in 64-bit mode account for SIB byte if
3462 print_operand_address can't optimize disp32 into disp32(%rip)
3463 and UNSPEC doesn't imply (%rip) addressing. Add 1 to length
3464 for fs: or gs: segment.
3465 (ix86_attr_length_immediate_default): When checking if shortform
3466 is possible, truncate immediate to the length of the non-shortened
3468 (ix86_attr_length_address_default): Ignore MEM_P operands
3470 (ix86_attr_length_vex_default): Only check for DImode on
3471 GENERAL_REG_P operands.
3472 * config/i386/sse.md (<sse>_comi, <sse>_ucomi): Clear
3473 prefix_rep attribute, set prefix_data16 attribute iff MODE_DF.
3474 (sse_cvttps2pi): Clear prefix_rep attribute.
3475 (sse2_cvttps2dq, *sse2_cvtpd2dq, sse2_cvtps2pd): Clear prefix_data16
3477 (*sse2_cvttpd2dq): Don't clear prefix_rep attribute.
3478 (*avx_ashr<mode>3, ashr<mode>3, *avx_lshr<mode>3, lshr<mode>3,
3479 *avx_ashl<mode>3, ashl<mode>3): Set length_immediate attribute to 1
3480 iff operand 2 is const_int_operand.
3481 (*vec_dupv4si, avx_shufpd256_1, *avx_shufpd_<mode>,
3482 sse2_shufpd_<mode>): Set length_immediate attribute to 1.
3483 (sse2_pshufd_1): Likewise. Set prefix attribute to maybe_vex
3485 (sse2_pshuflw_1, sse2_pshufhw_1): Set length_immediate to 1 and clear
3487 (sse2_unpckhpd, sse2_unpcklpd, sse2_storehpd, *vec_concatv2df): Set
3488 prefix_data16 attribute for movlpd and movhpd instructions.
3489 (sse2_loadhpd, sse2_loadlpd, sse2_movsd): Likewise. Override
3490 length_immediate for shufpd instruction.
3491 (sse2_movntsi, sse3_lddqu): Clear prefix_data16 attribute.
3492 (avx_cmpp<avxmodesuffixf2c><mode>3,
3493 avx_cmps<ssemodesuffixf2c><mode>3, *avx_maskcmp<mode>3,
3494 <sse>_maskcmp<mode>3, <sse>_vmmaskcmp<mode>3,
3495 avx_shufps256_1, *avx_shufps_<mode>, sse_shufps_<mode>,
3496 *vec_dupv4sf_avx, *vec_dupv4sf): Set length_immediate attribute to 1.
3497 (*avx_cvtsi2ssq, *avx_cvtsi2sdq): Set length_vex attribute to 4.
3498 (sse_cvtsi2ssq, sse2_cvtsi2sdq): Set prefix_rex attribute to 1.
3499 (sse2_cvtpi2pd, sse_loadlps, sse2_storelpd): Override
3500 prefix_data16 attribute for the first alternative to 1.
3501 (*avx_loadlps): Override length_immediate for the first alternative.
3502 (*vec_concatv2sf_avx): Override length_immediate and prefix_extra
3503 attributes for second alternative.
3504 (*vec_concatv2sf_sse4_1): Override length_immediate and
3505 prefix_data16 attributes for second alternative.
3506 (*vec_setv4sf_avx, *avx_insertps, vec_extract_lo_<mode>,
3507 vec_extract_hi_<mode>, vec_extract_lo_v16hi,
3508 vec_extract_hi_v16hi, vec_extract_lo_v32qi,
3509 vec_extract_hi_v32qi): Set prefix_extra and length_immediate to 1.
3510 (*vec_setv4sf_sse4_1, sse4_1_insertps, *sse4_1_extractps): Set
3511 prefix_data16 and length_immediate to 1.
3512 (*avx_mulv2siv2di3, *avx_mulv4si3, sse4_2_gtv2di3): Set prefix_extra
3514 (*avx_<code><mode>3, *avx_eq<mode>3, *avx_gt<mode>3): Set
3515 prefix_extra attribute for variants that don't have 0f prefix alone.
3516 (*avx_pinsr<ssevecsize>): Likewise. Set length_immediate to 1.
3517 (*sse4_1_pinsrb, *sse2_pinsrw, *sse4_1_pinsrd, *sse4_1_pextrb,
3518 *sse4_1_pextrb_memory, *sse2_pextrw, *sse4_1_pextrw_memory,
3519 *sse4_1_pextrd): Set length_immediate to 1.
3520 (*sse4_1_pinsrd): Likewise. Set prefix_extra to 1.
3521 (*sse4_1_pinsrq, *sse4_1_pextrq): Set prefix_rex and length_immediate
3523 (*vec_extractv2di_1_rex64_avx, *vec_extractv2di_1_rex64,
3524 *vec_extractv2di_1_avx, *vec_extractv2di_1_sse2): Override
3525 length_immediate to 1 for second alternative.
3526 (*vec_concatv2si_avx, *vec_concatv2di_rex64_avx): Override
3527 prefix_extra and length_immediate attributes for the first
3529 (vec_concatv2si_sse4_1): Override length_immediate to 1 for the
3531 (*vec_concatv2di_rex64_sse4_1): Likewise. Override prefix_rex
3532 to 1 for the first and third alternative.
3533 (*vec_concatv2di_rex64_sse): Override prefix_rex to 1 for the second
3535 (*sse2_maskmovdqu, *sse2_maskmovdqu_rex64): Override length_vex
3537 (*sse_sfence, sse2_mfence, sse2_lfence): Override length_address
3539 (*avx_phaddwv8hi3, *avx_phadddv4si3, *avx_phaddswv8hi3,
3540 *avx_phsubwv8hi3, *avx_phsubdv4si3, *avx_phsubswv8hi,
3541 *avx_pmaddubsw128, *avx_pmulhrswv8hi3, *avx_pshufbv16qi3,
3542 *avx_psign<mode>3): Set prefix_extra attribute to 1.
3543 (ssse3_phaddwv4hi3, ssse3_phadddv2si3, ssse3_phaddswv4hi3,
3544 ssse3_phsubwv4hi3, ssse3_phsubdv2si3, ssse3_phsubswv4hi3,
3545 ssse3_pmaddubsw, *ssse3_pmulhrswv4hi, ssse3_pshufbv8qi3,
3546 ssse3_psign<mode>3): Override prefix_rex attribute.
3547 (*avx_palignrti): Override prefix_extra and length_immediate to 1.
3548 (ssse3_palignrti): Override length_immediate to 1.
3549 (ssse3_palignrdi): Override length_immediate to 1, override
3550 prefix_rex attribute.
3551 (abs<mode>2): Override prefix_rep to 0, override prefix_rex attribute.
3552 (sse4a_extrqi): Override length_immediate to 2.
3553 (sse4a_insertqi): Likewise. Override prefix_data16 to 0.
3554 (sse4a_insertq): Override prefix_data16 to 0.
3555 (avx_blendp<avxmodesuffixf2c><avxmodesuffix>,
3556 avx_blendvp<avxmodesuffixf2c><avxmodesuffix>,
3557 avx_dpp<avxmodesuffixf2c><avxmodesuffix>, *avx_mpsadbw,
3558 *avx_pblendvb, *avx_pblendw, avx_roundp<avxmodesuffixf2c>256,
3559 avx_rounds<avxmodesuffixf2c>256): Override prefix_extra
3560 and length_immediate to 1.
3561 (sse4_1_blendp<ssemodesuffixf2c>, sse4_1_dpp<ssemodesuffixf2c>,
3562 sse4_2_pcmpestr, sse4_2_pcmpestri, sse4_2_pcmpestrm,
3563 sse4_2_pcmpestr_cconly, sse4_2_pcmpistr, sse4_2_pcmpistri,
3564 sse4_2_pcmpistrm, sse4_2_pcmpistr_cconly): Override prefix_data16
3565 and length_immediate to 1.
3566 (sse4_1_blendvp<ssemodesuffixf2c>): Override prefix_data16 to 1.
3567 (sse4_1_mpsadbw, sse4_1_pblendw): Override length_immediate to 1.
3568 (*avx_packusdw, avx_vtestp<avxmodesuffixf2c><avxmodesuffix>,
3569 avx_ptest256): Override prefix_extra to 1.
3570 (sse4_1_roundp<ssemodesuffixf2c>, sse4_1_rounds<ssemodesuffixf2c>):
3571 Override prefix_data16 and length_immediate to 1.
3572 (sse5_pperm_zero_v16qi_v8hi, sse5_pperm_sign_v16qi_v8hi,
3573 sse5_pperm_zero_v8hi_v4si, sse5_pperm_sign_v8hi_v4si,
3574 sse5_pperm_zero_v4si_v2di, sse5_pperm_sign_v4si_v2di,
3575 sse5_vrotl<mode>3, sse5_ashl<mode>3, sse5_lshl<mode>3): Override
3576 prefix_data16 to 0 and prefix_extra to 2.
3577 (sse5_rotl<mode>3, sse5_rotr<mode>3): Override length_immediate to 1.
3578 (sse5_frcz<mode>2, sse5_vmfrcz<mode>2): Don't override prefix_extra
3580 (*sse5_vmmaskcmp<mode>3, sse5_com_tf<mode>3,
3581 sse5_maskcmp<mode>3, sse5_maskcmp<mode>3, sse5_maskcmp_uns<mode>3):
3582 Override prefix_data16 and prefix_rep to 0, length_immediate to 1
3583 and prefix_extra to 2.
3584 (sse5_maskcmp_uns2<mode>3, sse5_pcom_tf<mode>3): Override
3585 prefix_data16 to 0, length_immediate to 1 and prefix_extra to 2.
3586 (*avx_aesenc, *avx_aesenclast, *avx_aesdec, *avx_aesdeclast,
3587 avx_vpermilvar<mode>3,
3588 avx_vbroadcasts<avxmodesuffixf2c><avxmodesuffix>,
3589 avx_vbroadcastss256, avx_vbroadcastf128_p<avxmodesuffixf2c>256,
3590 avx_maskloadp<avxmodesuffixf2c><avxmodesuffix>,
3591 avx_maskstorep<avxmodesuffixf2c><avxmodesuffix>):
3592 Override prefix_extra to 1.
3593 (aeskeygenassist, pclmulqdq): Override length_immediate to 1.
3594 (*vpclmulqdq, avx_vpermil<mode>, avx_vperm2f128<mode>3,
3595 vec_set_lo_<mode>, vec_set_hi_<mode>, vec_set_lo_v16hi,
3596 vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Override
3597 prefix_extra and length_immediate to 1.
3598 (*avx_vzeroall, avx_vzeroupper, avx_vzeroupper_rex64): Override
3600 (*vec_concat<mode>_avx): Override prefix_extra and length_immediate
3601 to 1 for the first alternative.
3602 * config/i386/mmx.md (*mov<mode>_internal_rex64): Override
3603 prefix_rep, prefix_data16 and/or prefix_rex attributes in certain
3605 (*mov<mode>_internal_avx, *movv2sf_internal_rex64,
3606 *movv2sf_internal_avx, *movv2sf_internal): Override
3607 prefix_rep attribute for certain alternatives.
3608 (*mov<mode>_internal): Override prefix_rep or prefix_data16
3609 attributes for certain alternatives.
3610 (*movv2sf_internal_rex64_avx): Override prefix_rep and length_vex
3611 attributes for certain alternatives.
3612 (*mmx_addv2sf3, *mmx_subv2sf3, *mmx_mulv2sf3,
3613 *mmx_<code>v2sf3_finite, *mmx_<code>v2sf3, mmx_rcpv2sf2,
3614 mmx_rcpit1v2sf3, mmx_rcpit2v2sf3, mmx_rsqrtv2sf2, mmx_rsqit1v2sf3,
3615 mmx_haddv2sf3, mmx_hsubv2sf3, mmx_addsubv2sf3,
3616 *mmx_eqv2sf3, mmx_gtv2sf3, mmx_gev2sf3, mmx_pf2id, mmx_pf2iw,
3617 mmx_pi2fw, mmx_floatv2si2, mmx_pswapdv2sf2, *mmx_pmulhrwv4hi3,
3618 mmx_pswapdv2si2): Set prefix_extra attribute to 1.
3619 (mmx_ashr<mode>3, mmx_lshr<mode>3, mmx_ashl<mode>3): Set
3620 length_immediate to 1 if operand 2 is const_int_operand.
3621 (*mmx_pinsrw, mmx_pextrw, mmx_pshufw_1, *vec_dupv4hi,
3622 *vec_extractv2si_1): Set length_immediate attribute to 1.
3623 (*mmx_uavgv8qi3): Override prefix_extra attribute to 1 if
3624 using old 3DNOW insn rather than SSE/3DNOW_A.
3625 (mmx_emms, mmx_femms): Clear modrm attribute.
3627 2009-05-29 Martin Jambor <mjambor@suse.cz>
3629 * tree-sra.c: New implementation of SRA.
3631 * params.def (PARAM_SRA_MAX_STRUCTURE_SIZE): Removed.
3632 (PARAM_SRA_MAX_STRUCTURE_COUNT): Removed.
3633 (PARAM_SRA_FIELD_STRUCTURE_RATIO): Removed.
3634 * params.h (SRA_MAX_STRUCTURE_SIZE): Removed.
3635 (SRA_MAX_STRUCTURE_COUNT): Removed.
3636 (SRA_FIELD_STRUCTURE_RATIO): Removed.
3637 * doc/invoke.texi (sra-max-structure-size): Removed.
3638 (sra-field-structure-ratio): Removed.
3640 2009-05-29 Jakub Jelinek <jakub@redhat.com>
3643 * builtins.c (expand_builtin_memcmp): Convert len to sizetype
3646 2009-05-29 Andrey Belevantsev <abel@ispras.ru>
3648 PR rtl-optimization/40101
3649 * sel-sched-ir.c (get_seqno_by_preds): Allow returning negative
3650 seqno. Adjust comment.
3651 * sel-sched.c (find_seqno_for_bookkeeping): Assert that when
3652 inserting bookkeeping before a jump, the jump is not scheduled.
3653 When no positive seqno found, provide a value. Add comment.
3655 2009-05-29 Richard Guenther <rguenther@suse.de>
3657 * tree-ssa-alias.c (nonaliasing_component_refs_p): Remove
3658 short-cutting on the first component.
3660 2009-05-29 Jakub Jelinek <jakub@redhat.com>
3663 * omp-low.c (scan_omp_1_op): Call remap_type on TREE_TYPE
3664 for trees other than decls/types.
3666 2009-05-29 Richard Guenther <rguenther@suse.de>
3668 * tree-ssa-operands.c (get_expr_operands): Do not handle
3669 INDIRECT_REFs in the handled-component case. Remove
3670 unused get_ref_base_and_extent case.
3671 * tree-dfa.c (get_ref_base_and_extent): Avoid calling
3672 tree_low_cst and host_integerp where possible.
3673 * tree-ssa-structalias.c (equiv_class_label_eq): Check hash
3674 codes for equivalence.
3675 * dce.c (find_call_stack_args): Avoid redundant bitmap queries.
3677 2009-05-29 David Billinghurst <billingd@gcc.gnu.org>
3679 * config.gcc: Add i386/t-fprules-softfp and soft-fp/t-softfp
3680 to tmake_file for i[34567]86-*-cygwin*.
3682 2009-05-29 Jakub Jelinek <jakub@redhat.com>
3685 * config/rs6000/rs6000-c.c (_Bool_keyword): New variable.
3686 (altivec_categorize_keyword, init_vector_keywords,
3687 rs6000_cpu_cpp_builtins): Define _Bool as conditional macro
3690 2009-05-29 Kai Tietz <kai.tietz@onevision.com>
3692 * tree.c (handle_dll_attribute): Check if node is
3693 of kind FUNCTION_DECL for DECL_DECLARED_INLINE_P check.
3695 2009-05-29 Richard Earnshaw <rearnsha@arm.com>
3697 * config/arm/thumb2.md (thumb2_zero_extendsidi2): Add a split
3699 (thumb2_zero_extendqidi2): Likewise.
3701 2009-05-28 Kaz Kojima <kkojima@gcc.gnu.org>
3703 * config/sh/sh.c (sh_expand_t_scc): Use gen_xorsi3_movrt
3704 instead of gen_movrt.
3705 * config/sh/sh.md (movrt): Remove.
3707 2009-05-28 Steve Ellcey <sje@cup.hp.com>
3709 * doc/invoke.texi (IA-64 Options):
3710 Add -msdata, -mfused-madd, -mno-inline-float-divide,
3711 -mno-inline-int-divide, -mno-inline-sqrt, -msched-spec-ldc,
3712 -msched-spec-control-ldc, -msched-prefer-non-data-spec-insns,
3713 -msched-prefer-non-control-spec-insns,
3714 -msched-stop-bits-after-every-cycle,
3715 -msched-count-spec-in-critical-path,
3716 -msel-sched-dont-check-control-spec, -msched-fp-mem-deps-zero-cost
3717 -msched-max-memory-insns-hard-limit, -msched-max-memory-insns.
3718 Remove -mt, -pthread, -msched-ldc, -mno-sched-control-ldc,
3719 and -msched-spec-verbose.
3721 2009-05-28 Joseph Myers <joseph@codesourcery.com>
3723 * config/arm/lib1funcs.asm (__clear_cache): Define if L_clear_cache.
3724 * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Define to give an
3726 * config/arm/t-linux-eabi (LIB1ASMFUNCS): Add _clear_cache.
3728 2009-05-28 Richard Guenther <rguenther@suse.de>
3730 * tree-ssa-alias.c (ao_ref_init): New function.
3731 (ao_ref_base): Likewise.
3732 (ao_ref_base_alias_set): Likewise.
3733 (ao_ref_alias_set): Likewise.
3734 (refs_may_alias_p_1): Change signature.
3735 (refs_may_alias_p): Adjust.
3736 (refs_anti_dependent_p): Likewise.
3737 (refs_output_dependent_p): Likewise.
3738 (call_may_clobber_ref_p_1): Change signature.
3739 (call_may_clobber_ref_p): Adjust.
3740 (stmt_may_clobber_ref_p_1): New function split out from ...
3741 (stmt_may_clobber_ref_p): ... here.
3742 (maybe_skip_until): Adjust signature.
3743 (get_continuation_for_phi): Likewise.
3744 (walk_non_aliased_vuses): Likewise.
3745 * tree-ssa-alias.h (struct ao_ref_s): New structure type.
3746 (ao_ref_init): Declare.
3747 (ao_ref_base): Likewise.
3748 (ao_ref_alias_set): Likewise.
3749 (stmt_may_clobber_ref_p_1): Likewise.
3750 (walk_non_aliased_vuses): Adjust.
3751 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): New function.
3752 (get_ref_from_reference_ops): remove.
3753 (vn_reference_lookup_2): Adjust signature.
3754 (vn_reference_lookup_3): Do not re-build trees. Handle unions.
3755 (vn_reference_lookup_pieces): Adjust signature, do not re-build trees.
3756 (vn_reference_lookup): Adjust.
3757 (vn_reference_insert): Likewise.
3758 (vn_reference_insert_pieces): Adjust signature.
3759 (visit_reference_op_call): Adjust.
3760 * tree-ssa-pre.c (get_expr_type): Simplify.
3761 (phi_translate_1): Adjust.
3762 (compute_avail): Likewise.
3763 (translate_vuse_through_block): Do not re-build trees.
3764 (value_dies_in_block_x): Likewise.
3765 * tree-ssa-sccvn.h (struct vn_reference_s): Add type and alias-set
3767 (vn_reference_lookup_pieces): Adjust declaration.
3768 (vn_reference_insert_pieces): Likewise.
3770 2009-05-28 Benjamin Kosnik <bkoz@redhat.com>
3772 * tree-ssa-copy.c (replace_exp_1): Move op for warning-free use
3773 with checking disabled.
3775 2009-05-28 Dave Korn <dave.korn.cygwin@gmail.com>
3779 * configure.ac (HAVE_GAS_ALIGNED_COMM): Add autoconf test and
3780 macro definition for support of three-operand format aligned
3781 .comm directive in assembler on cygwin/pe/mingw target OS.
3782 * configure: Regenerate.
3783 * config.h: Regenerate.
3785 * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Use
3786 aligned form of .comm directive if -mpe-aligned-commons is in effect.
3787 * config/i386/cygming.opt (-mpe-aligned-commons): Add new option.
3789 * doc/invoke.texi (-mpe-aligned-commons): Document new target option.
3790 * doc/tm.texi (ASM_OUTPUT_COMMON): Document zero size commons.
3792 2009-05-28 Ira Rosen <irar@il.ibm.com>
3794 PR tree-optimization/40254
3795 * tree-data-ref.c (dr_analyze_innermost): Take POFFSET into account
3796 in analysis of basic blocks.
3798 2009-05-28 Adam Nemet <anemet@caviumnetworks.com>
3801 * target.h (struct gcc_target): Fix indentation. Add const_anchor.
3802 * target-def.h (TARGET_CONST_ANCHOR): New macro.
3803 (TARGET_INITIALIZER): Use it.
3804 * cse.c (CHEAPER): Move it up to the other macros.
3805 (insert): Rename this ...
3806 (insert_with_costs): ... to this. Add cost parameters. Update
3808 (insert): New function. Call insert_with_costs.
3809 (compute_const_anchors, insert_const_anchor, insert_const_anchors,
3810 find_reg_offset_for_const, try_const_anchors): New functions.
3811 (cse_insn): Call try_const_anchors. Adjust cost of src_related
3812 when using a const-anchor. Call insert_const_anchors.
3813 * config/mips/mips.c (mips_set_mips16_mode): Set targetm.const_anchor.
3814 * doc/tm.texi (Misc): Document TARGET_CONST_ANCHOR.
3816 2009-05-28 Alexandre Oliva <aoliva@redhat.com>
3818 * tree-inline.c (remap_decls): Enable nonlocalized variables
3819 when not optimizing.
3821 2009-05-28 Alexandre Oliva <aoliva@redhat.com>
3823 * tree-ssa-live.c (remove_unused_locals): Skip when not optimizing.
3824 Simplify other tests involving optimize.
3826 2009-05-27 Tom Tromey <tromey@redhat.com>
3828 * unwind-dw2.c (_Unwind_DebugHook): New function.
3829 (uw_install_context): Call _Unwind_DebugHook.
3831 2009-05-27 Tom Tromey <tromey@redhat.com>
3833 * system.h (CONST_CAST2): Use C++ const_cast when compiled as C++
3835 2009-05-27 Ian Lance Taylor <iant@google.com>
3837 * Makefile.in (LINKER, LINKER_FLAGS): Define.
3838 (LINKER_FOR_BUILD, BUILD_LINKERFLAGS): Define.
3839 (ALL_LINKERFLAGS): Define.
3840 (xgcc$(exeext)): Change $(COMPILER) to $(LINKER).
3841 (cpp$(exeext), cc1-dummy$(exeext), cc1$(exeext)): Likewise.
3842 (collect2$(exeext), mips-tfile, mips-tdump): Likewise.
3843 (gcov$(exeext), gcov-dump$(exeext)): Likewise.
3844 (build/gen%$(build_exeext)): Change $(COMPILER_FOR_BUILD) to
3845 $(LINKER_FOR_BUILD).
3846 (build/gcov-iov$(build_exeext)): Likewise.
3848 2009-05-27 Julian Brown <julian@codesourcery.com>
3850 * gcse.c (target.h): Include.
3851 (can_assign_to_reg_without_clobbers_p): Check that the target allows
3852 copy of argument to a pseudo register.
3854 2009-05-27 Diego Novillo <dnovillo@google.com>
3856 * tree-ssa-live.c (dump_scope_block): Document arguments.
3857 (dump_scope_blocks): Document.
3858 (debug_scope_blocks): New.
3859 * tree-flow.h (debug_scope_blocks): Declare.
3861 2009-05-21 Denis Chertykov <denisc@overta.ru>
3863 * doc/contrib.texi (Contributors): Add myself to the list.
3865 2009-05-27 Olivier Hainque <hainque@adacore.com>
3867 * expr.c (target_align): New function. Alignment the TARGET of an
3868 assignment may be assume to have.
3869 (highest_pow2_factor_for_target): Use it instead of relying on
3870 immediate tree attributes of TARGET, not necessarily honored when
3871 intermediate bitfields are involved.
3873 2009-05-27 H.J. Lu <hongjiu.lu@intel.com>
3876 * config/i386/driver-i386.c (host_detect_local_cpu): Support
3877 AVX, SSE4, AES, PCLMUL and POPCNT.
3879 2009-05-27 Diego Novillo <dnovillo@google.com>
3881 * tree-pretty-print.c (dump_location): New.
3882 (dump_generic_node): Call it.
3883 Factor code to handle BLOCK nodes ...
3884 (dump_block_node): ... here.
3886 2009-05-27 Rafael Avila de Espindola <espindola@google.com>
3888 * Makefile.in (GCC_PLUGIN_H): New. Replace all uses of gcc-plugin.h
3890 * doc/plugins.texi: Document that gcc-plugin.h must be the first to be
3892 * gcc-plugin.h: Include config.h and system.h.
3893 (IN_GCC): Define if not defined.
3895 2009-05-27 Hans-Peter Nilsson <hp@axis.com>
3898 * Makefile.in (CRTSTUFF_CFLAGS): Replace -fno-inline-functions
3901 2009-05-27 Shujing Zhao <pearly.zhao@oracle.com>
3903 * config/m32r/m32r.c: Use REG_P, MEM_P and CONST_INT_P where
3905 * config/m32r/m32r.h: Ditto.
3906 * config/m32r/m32r.md: Ditto.
3907 * config/m32r/predicates.md: Ditto.
3909 2009-05-27 Alexandre Oliva <aoliva@redhat.com>
3911 * cgraph.c (dump_cgraph_node): Honor -fdump-noaddr.
3913 2009-05-26 Basile Starynkevitch <basile@starynkevitch.net>
3916 (Loading plugins): typo.
3917 (Plugin callbacks): Documented PLUGIN_INFO, PLUGIN_GGC_START,
3918 PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
3919 (Interacting with the GCC Garbage Collector): Added new section.
3920 (Giving information about a plugin): Added new section for
3922 * ggc.h (ggc_register_root_tab): Added declaration.
3923 * gcc-plugin.h (PLUGIN_GGC_START, PLUGIN_GGC_MARKING)
3924 (PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS): Added new events.
3925 (register_callback): Improved comment in declaration.
3926 * ggc-common.c (const_ggc_root_tab_t) Added new typedef for vectors.
3927 (extra_root_vec) Added static variable for dynamic roots registration.
3928 (ggc_register_root_tab) Added new routine.
3929 (ggc_mark_roots) Added iteration inside extra_root_vec, and invoke
3930 PLUGIN_GGC_MARKING event.
3931 * ggc-zone.c: Include plugin.h.
3932 (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
3933 * ggc-page.c: Include plugin.h.
3934 (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
3935 * plugin.c (plugin_event_name): added names of PLUGIN_GGC_START,
3936 PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS
3937 (register_callback): check lack of callbacks for
3938 pseudo-events. Added handling of PLUGIN_REGISTER_GGC_ROOTS,
3939 PLUGIN_GGC_START, PLUGIN_GGC_MARKING, PLUGIN_GGC_END.
3940 (invoke_plugin_callbacks): Handle PLUGIN_GGC_START,
3941 PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
3942 * Makefile.in (ggc-common.o, ggc-zone.o, ggc-page.o): Added
3943 dependency on plugin.h.
3944 (plugin.o): Added dependency on ggc.h...
3946 2009-05-26 Richard Guenther <rguenther@suse.de>
3950 * expr.c (expand_expr_real_1): Avoid calling do_store_flag
3951 with mismatched comparison modes.
3953 * expr.c (expand_expr_real_1): Expand the operand of a
3954 VIEW_CONVERT_EXPR in its natural mode.
3956 2009-05-26 Ian Lance Taylor <iant@google.com>
3958 * Makefile.in (COMPILER, COMPILER_FLAGS): Define.
3959 (COMPILER_FOR_BUILD, BUILD_COMPILERFLAGS): Define.
3960 (ALL_COMPILERFLAGS): Define.
3961 (.c.o, xgcc$(exeext), cpp$(exeext)): Use $(COMPILER).
3962 (cc1-dummy$(exeext), cc1$(exeext)): Likewise.
3963 (collect2$(exeext), collect2.o): Likewise.
3964 (c-opts.o, c-cppbuiltin.o, c-pch.o, gcc.o, gccspec.o): Likewise.
3965 (gcc-options.o, version.o, prefix.o, toplev.o): Likewise.
3966 ($(out_object_file), mips-tfile, mips-tdump): Likewise.
3967 (libbackend.o, intl.o, cppdefault.o): Likewise.
3968 (gcov$(exeext), gcov-dump$(exeext)): Likewise.
3969 (build/%.o): Use $(COMPILER_FOR_BUILD).
3970 (build/gen%$(build_exeext)): Likewise.
3971 (build/gcov-iov$(build_exeext)): LIkewise.
3972 * config/t-darwin (darwin.o): Use $(COMPILER).
3973 (darwin-c.o, darwin-f.o, darwin-driver.o): Likewise.
3974 * config/t-sol2 (sol2-c.o): Likewise.
3976 * config/t-vxworks (vxworks.o): Likewise.
3977 * config/x-darwin (host-darwin.o): Likewise.
3978 * config/x-hpux (host-hpux.o): Likewise.
3979 * config/x-linux (host-linux.o): Likewise.
3980 * config/x-solaris (host-solaris.o): Likewise.
3981 * config/alpha/x-alpha (driver-alpha.o): Likewise.
3982 * config/arm/t-arm (arm-c.o): Likewise.
3983 * config/arm/t-pe (pe.o): Likewise.
3984 * config/arm/t-wince-pe (pe.o): Likewise.
3985 * config/i386/t-cygming (winnt.o): Likewise.
3986 (winnt-cxx.o, winnt-stubs.o, msformat-c.o): Likewise.
3987 * config/i386/t-cygwin (cygwin1.o): Likewise.
3988 (cygwin2.o): Likewise.
3989 * config/i386/t-i386 (i386-c.o): Likewise.
3990 * config/i386/t-interix (winnt.o): Likewise.
3991 * config/i386/t-netware (netware.o): Likewise.
3992 * config/i386/t-nwld (nwld.o): Likewise.
3993 * config/i386/x-darwin (host-i386-darwin.o): Likewise.
3994 * config/i386/x-i386 (driver-i386.o): Likewise.
3995 * config/i386/x-cygwin (host-cygwin.o): Likewise.
3996 * config/i386/x-mingw32 (host-mingw32.o): Likewise.
3997 * config/ia64/t-ia64 (ia64-c.o): Likewise.
3998 * config/m32c/t-m32c (m32c-pragma.o): Likewise.
3999 * config/mips/x-native (driver-native.o): Likewise.
4000 * config/rs6000/t-rs6000 (rs6000-c.o): Likewise.
4001 * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
4002 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
4003 * config/rs6000/x-rs6000 (driver-rs6000.o): Likewise.
4004 * config/score/t-score-elf (score7.o): Likewise.
4005 (score3.o): Likewise.
4006 * config/sh/t-sh (sh-c.o): Likewise.
4007 * config/sh/t-symbian (sh-c.o): Likewise.
4008 (symbian.o): Likewise.
4009 * config/spu/t-spu-elf (spu-c.o): Likewise.
4010 * config/v850/t-v850 (v850-c.o): Likewise.
4011 * config/v850/t-v850e (v850-c.o): Likewise.
4013 2009-05-26 Richard Guenther <rguenther@suse.de>
4015 PR tree-optimization/40122
4016 * tree-ssa-ccp.c (ccp_fold): Fold vector CONSTRUCTORs to
4017 VECTOR_CSTs if possible.
4018 (fold_gimple_assign): Likewise.
4020 2009-05-26 Richard Guenther <rguenther@suse.de>
4023 * fold-const.c (fold_binary): Use the correct types for building
4026 2009-05-26 Richard Guenther <rguenther@suse.de>
4028 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove
4029 redundant calls to merge_alias_info.
4030 (bump_vector_ptr): Likewise.
4031 * tree-ssa-copy.c (merge_alias_info): Remove.
4032 (replace_exp_1): Remove call to merge_alias_info.
4033 (propagate_tree_value): Likewise.
4034 (fini_copy_prop): Propagate points-to info.
4035 * tree-flow.h (merge_alias_info): Remove.
4037 2009-05-07 Hariharan Sandanagobalane <hariharan@picochip.com>
4039 * config/picochip/picochip.C (PARAM_INLINE_CALL_COST): Remove.
4041 2009-05-25 Jan Hubicka <jh@suse.cz>
4043 * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
4044 * cgraph.h (struct inline_summary): New filed self_wize,
4045 size_inlining_benefit, self_time and time_inlining_benefit.
4046 (struct cgraph_global_info): Replace insns by time ans size fields.
4047 * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
4048 (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
4049 (ipcp_update_callgraph): Do not touch function bodies.
4050 * ipa-inline.c: Include except.h
4051 (MAX_TIME): New constant.
4052 (overall_insns): Remove.
4054 (overall_size, max_benefit): New static variables.
4055 (cgraph_estimate_time_after_inlining): New function.
4056 (cgraph_estimate_size_after_inlining): Rewrite using benefits.
4057 (cgraph_clone_inlined_nodes): Update size.
4058 (cgraph_mark_inline_edge): Update size.
4059 (cgraph_estimate_growth): Use size info.
4060 (cgraph_check_inline_limits): Check size.
4061 (cgraph_default_inline_p): Likewise.
4062 (cgraph_edge_badness): Compute badness based on benefit and size cost.
4063 (cgraph_decide_recursive_inlining): Check size.
4064 (cgraph_decide_inlining_of_small_function): Update size; dump sizes
4066 (cgraph_decide_inlining): Likewise.
4067 (cgraph_decide_inlining_incrementally): Likewise; honor
4068 PARAM_EARLY_INLINING_INSNS.
4069 (likely_eliminated_by_inlining_p): New predicate.
4070 (estimate_function_body_sizes): New function.
4071 (compute_inline_parameters): Use it.
4072 * except.c (must_not_throw_labels): New function.
4073 * except.h (must_not_throw_labels): Declare.
4074 * tree-inline.c (init_inline_once): Kill inlining_weigths
4075 * tree-ssa-structalias.c: Avoid uninitialized warning.
4076 * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
4077 (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
4078 (PARAM_INLINE_CALL_COST): Remove.
4079 (PARAM_EARLY_INLINING_INSNS): New.
4081 2009-05-25 Richard Guenther <rguenther@suse.de>
4083 PR tree-optimization/36327
4084 * tree-ssa-alias.c (walk_non_aliased_vuses): Add second walker
4085 callback for reference translation or lookup at the point of may-defs.
4086 * tree-ssa-alias.h (walk_non_aliased_vuses): Adjust prototype.
4087 * tree-ssa-sccvn.c (get_ref_from_reference_ops): Bail out
4088 for union COMPONENT_REFs.
4089 (vn_reference_lookup_3): New callback. Lookup from memset
4090 and CONSTRUCTOR assignment, translate through struct copies.
4091 (vn_reference_lookup_pieces): Make sure to not free the
4092 passed operands array. Adjust walk_non_aliased_vuses call.
4093 (vn_reference_lookup): Adjust walk_non_aliased_vuses call,
4094 make sure we do not leak memory.
4096 2009-05-25 Richard Guenther <rguenther@suse.de>
4098 * tree-ssa-alias.h (dump_points_to_solution): Declare.
4099 * tree-inline.c (expand_call_inline): Reset the escaped and
4101 * tree-ssa-structalias.c (pass_build_ealias): New.
4102 * tree-pass.h (pass_build_ealias): Declare.
4103 * passes.c (init_optimization_passes): Add PTA during
4104 early optimizations.
4105 * tree-ssa-alias.c (dump_alias_info): Dump the ESCAPED
4106 and CALLUSED solutions.
4107 (dump_points_to_solution): New function, split out from ...
4108 (dump_points_to_info_for): ... here.
4109 * tree-parloops.c (parallelize_loops): Reset the escaped and
4112 2009-05-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4115 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Only define if missing.
4116 * config/i386/sol2.h [!TARGET_GNU_LD] (USE_HIDDEN_LINKONCE): Define.
4118 2009-05-25 Ira Rosen <irar@il.ibm.com>
4120 PR tree-optimization/40238
4121 * tree-vect-stmts.c (vect_init_vector): Insert initialization
4122 statements after basic block's labels.
4123 * tree-vect-slp.c (vect_slp_transform_bb): Call destroy_bb_vec_info()
4124 to free the allocated memory.
4126 2009-05-24 Kaz Kojima <kkojima@gcc.gnu.org>
4128 * gcc/config/sh/sh.c (sh_set_return_address): Mark store of
4129 return address with a USE.
4131 2009-05-24 Richard Guenther <rguenther@suse.de>
4134 * tree.c (make_vector_type): Build the TYPE_DEBUG_REPRESENTATION_TYPEs
4135 array type from the main variant of the inner type.
4137 2009-05-24 Jan-Benedict Glaw <jbglaw@lug-owl.de>
4139 * config/vax/vax-protos.h (legitimate_constant_address_p): Change
4140 definition to bool (from int) to un-break build.
4141 (legitimate_constant_p, vax_mode_dependent_address_p): Likewise.
4143 2009-05-24 Paolo Bonzini <bonzini@gnu.org>
4145 * tree-ssa-operands.h (push_stmt_changes, pop_stmt_changes,
4146 discard_stmt_changes): Delete.
4147 * tree-ssa-operands.c (scb_stack): Delete.
4148 (init_ssa_operands): Do not initialize it.
4149 (fini_ssa_operands): Do not free it.
4150 (push_stmt_changes, pop_stmt_changes, discard_stmt_changes): Delete.
4152 * tree-cfg.c (replace_uses_by): Replace pop_stmt_changes with
4153 update_stmt, remove the others. Fix comments.
4154 * tree-dfa.c (optimize_stack_restore): Likewise.
4155 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Likewise.
4156 * tree-ssa-loop-ivopts.c (rewrite_use): Likewise.
4157 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
4158 * tree-ssa-ccp.c (optimize_stack_restore, execute_fold_all_builtins):
4160 * tree-ssa-propagate.c (substitute_and_fold): Likewise.
4161 * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
4162 (dom_opt_finalize_block): Likewise, adjusting access to
4164 (optimize_stmt): Likewise, adjusting access to stmts_to_rescan.
4165 (stmts_to_rescan): Change item type to gimple.
4166 (tree_ssa_dominator_optimize): Change type of stmts_to_rescan.
4168 2009-05-24 Ira Rosen <irar@il.ibm.com>
4170 * doc/passes.texi (Tree-SSA passes): Document SLP pass.
4171 * tree-pass.h (pass_slp_vectorize): New pass.
4172 * params.h (SLP_MAX_INSNS_IN_BB): Define.
4173 * timevar.def (TV_TREE_SLP_VECTORIZATION): Define.
4174 * tree-vectorizer.c (timevar.h): Include.
4175 (user_vect_verbosity_level): Declare.
4176 (vect_location): Fix comment.
4177 (vect_set_verbosity_level): Update user_vect_verbosity_level
4178 instead of vect_verbosity_level.
4179 (vect_set_dump_settings): Add an argument. Ignore user defined
4180 verbosity if dump flags require higher level of verbosity. Print to
4181 stderr only for loop vectorization.
4182 (vectorize_loops): Update call to vect_set_dump_settings.
4183 (execute_vect_slp): New function.
4184 (gate_vect_slp): Likewise.
4185 (struct gimple_opt_pass pass_slp_vectorize): New.
4186 * tree-vectorizer.h (struct _bb_vec_info): Define along macros to
4188 (vec_info_for_bb): New function.
4189 (struct _stmt_vec_info): Add bb_vinfo and a macro for its access.
4190 (VECTORIZATION_ENABLED): New macro.
4191 (SLP_ENABLED, SLP_DISABLED): Likewise.
4192 (vect_is_simple_use): Add bb_vec_info argument.
4193 (new_stmt_vec_info, vect_analyze_data_ref_dependences,
4194 vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
4195 vect_analyze_data_ref_accesses, vect_analyze_data_refs,
4196 vect_schedule_slp, vect_analyze_slp): Likewise.
4197 (vect_analyze_stmt): Add slp_tree argument.
4198 (find_bb_location): Declare.
4199 (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
4200 * tree-vect-loop.c (new_loop_vec_info): Adjust function calls.
4201 (vect_analyze_loop_operations, vect_analyze_loop,
4202 get_initial_def_for_induction, vect_create_epilog_for_reduction,
4203 vect_finalize_reduction, vectorizable_reduction,
4204 vectorizable_live_operation, vect_transform_loop): Likewise.
4205 * tree-data-ref.c (dr_analyze_innermost): Update comment,
4206 skip evolution analysis if analyzing a basic block.
4207 (dr_analyze_indices): Likewise.
4208 (initialize_data_dependence_relation): Skip the test whether the
4209 object is invariant for basic blocks.
4210 (compute_all_dependences): Skip dependence analysis for data
4211 references in basic blocks.
4212 (find_data_references_in_stmt): Don't fail in case of invariant
4213 access in basic block.
4214 (find_data_references_in_bb): New function.
4215 (find_data_references_in_loop): Move code to
4216 find_data_references_in_bb and add a call to it.
4217 (compute_data_dependences_for_bb): New function.
4218 * tree-data-ref.h (compute_data_dependences_for_bb): Declare.
4219 * tree-vect-data-refs.c (vect_check_interleaving): Adjust to the case
4221 (vect_analyze_data_ref_dependence): Check for interleaving in case of
4222 unknown dependence in basic block and fail in case of dependence in
4224 (vect_analyze_data_ref_dependences): Add bb_vinfo argument, get data
4225 dependence instances from either loop or basic block vectorization
4227 (vect_compute_data_ref_alignment): Check if it is loop vectorization
4228 before calling nested_in_vect_loop_p.
4229 (vect_compute_data_refs_alignment): Add bb_vinfo argument, get data
4230 dependence instances from either loop or basic block vectorization
4232 (vect_verify_datarefs_alignment): Likewise.
4233 (vect_enhance_data_refs_alignment): Adjust function calls.
4234 (vect_analyze_data_refs_alignment): Likewise.
4235 (vect_analyze_group_access): Fix printing. Skip different checks if
4236 DR_STEP is 0. Keep strided stores either in loop or basic block
4237 vectorization data structure. Fix indentation.
4238 (vect_analyze_data_ref_access): Fix comments, allow zero step in
4240 (vect_analyze_data_ref_accesses): Add bb_vinfo argument, get data
4241 dependence instances from either loop or basic block vectorization
4243 (vect_analyze_data_refs): Update comment. Call
4244 compute_data_dependences_for_bb to analyze basic blocks.
4245 (vect_create_addr_base_for_vector_ref): Check for outer loop only in
4246 case of loop vectorization. In case of basic block vectorization use
4247 data-ref itself as a base.
4248 (vect_create_data_ref_ptr): In case of basic block vectorization:
4249 don't advance the pointer, add new statements before the current
4250 statement. Adjust function calls.
4251 (vect_supportable_dr_alignment): Support only aligned accesses in
4252 basic block vectorization.
4253 * common.opt (ftree-slp-vectorize): New flag.
4254 * tree-vect-patterns.c (widened_name_p): Adjust function calls.
4255 (vect_pattern_recog_1): Likewise.
4256 * tree-vect-stmts.c (process_use): Likewise.
4257 (vect_init_vector): Add new statements in the beginning of the basic
4258 block in case of basic block SLP.
4259 (vect_get_vec_def_for_operand): Adjust function calls.
4260 (vect_finish_stmt_generation): Likewise.
4261 (vectorizable_call): Add assert that it is loop vectorization, adjust
4263 (vectorizable_conversion, vectorizable_assignment): Likewise.
4264 (vectorizable_operation): In case of basic block SLP, take
4265 vectorization factor from statement's type and skip the relevance
4266 check. Adjust function calls.
4267 (vectorizable_type_demotion): Add assert that it is loop
4268 vectorization, adjust function calls.
4269 (vectorizable_type_promotion): Likewise.
4270 (vectorizable_store): Check for outer loop only in case of loop
4271 vectorization. Adjust function calls. For basic blocks, skip the
4272 relevance check and don't advance pointers.
4273 (vectorizable_load): Likewise.
4274 (vectorizable_condition): Add assert that it is loop vectorization,
4275 adjust function calls.
4276 (vect_analyze_stmt): Add argument. In case of basic block SLP, check
4277 that it is not reduction, get vector type, call only supported
4278 functions, skip loop specific parts.
4279 (vect_transform_stmt): Check for outer loop only in case of loop
4281 (new_stmt_vec_info): Add new argument and initialize bb_vinfo.
4282 (vect_is_simple_use): Fix comment, add new argument, fix conditions
4283 for external definition.
4284 * passes.c (pass_slp_vectorize): New pass.
4285 * tree-vect-slp.c (find_bb_location): New function.
4286 (vect_get_and_check_slp_defs): Add argument, adjust function calls,
4287 check for patterns only in loops.
4288 (vect_build_slp_tree): Add argument, adjust function calls, fail in
4289 case of multiple types in basic block SLP.
4290 (vect_mark_slp_stmts_relevant): New function.
4291 (vect_supported_load_permutation_p): Fix comment.
4292 (vect_analyze_slp_instance): Add argument. In case of basic block
4293 SLP, take vectorization factor from statement's type, check that
4294 unrolling factor is 1. Adjust function call. Save SLP instance in
4295 either loop or basic block vectorization structure. Return FALSE,
4297 (vect_analyze_slp): Add argument. Get strided stores groups from
4298 either loop or basic block vectorization structure. Return FALSE
4299 if basic block SLP failed.
4300 (new_bb_vec_info): New function.
4301 (destroy_bb_vec_info, vect_slp_analyze_node_operations,
4302 vect_slp_analyze_operations, vect_slp_analyze_bb): Likewise.
4303 (vect_schedule_slp): Add argument. Get SLP instances from either
4304 loop or basic block vectorization structure. Set vectorization factor
4305 to be 1 for basic block SLP.
4306 (vect_slp_transform_bb): New function.
4307 * params.def (PARAM_SLP_MAX_INSNS_IN_BB): Define.
4309 2009-05-23 Mark Mitchell <mark@codesourcery.com>
4311 * final.c (shorten_branches): Do not align labels for jump tables.
4312 (final_scan_insn): Use JUMP_TABLE_DATA_P.
4314 2009-05-23 Eric Botcazou <ebotcazou@adacore.com>
4316 * doc/passes.texi: Standardize spelling of RTL, Tree and Tree SSA.
4317 Remove outdated reference to flow.c and fix nits.
4318 * doc/gccint.texi: Tweak RTL description.
4319 * doc/rtl.texi: Likewise.
4321 2009-05-23 Denis Chertykov <chertykov@gmail.com>
4323 * config/avr/avr.c: Change my email address.
4324 * config/avr/avr.h: Likewise.
4325 * config/avr/avr.md: Likewise.
4326 * config/avr/avr-protos.h: Likewise.
4327 * config/avr/libgcc.S: Likewise.
4329 2009-05-22 Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
4331 * config/spu/spu-protos.h (aligned_mem_p, spu_valid_mov): Remove.
4332 (spu_split_load, spu_split_store): Change return type to int.
4333 (spu_split_convert): Declare.
4334 * config/spu/predicates.md (spu_mem_operand): Remove.
4335 (spu_mov_operand): Update.
4336 (spu_dest_operand, shiftrt_operator, extend_operator): Define.
4337 * config/spu/spu.c (regno_aligned_for_load): Remove.
4338 (reg_aligned_for_addr, spu_expand_load): Define.
4339 (spu_expand_extv): Reimplement and handle MEM.
4340 (spu_expand_insv): Handle MEM.
4341 (spu_sched_reorder): Handle insn's with length 0.
4342 (spu_legitimate_address_p): Reimplement.
4343 (store_with_one_insn_p): Return TRUE for any mode with size
4344 larger than 16 bytes.
4345 (address_needs_split): Define.
4346 (spu_expand_mov): Call spu_split_load and spu_split_store for MEM
4348 (spu_convert_move): Define.
4349 (spu_split_load): Use spu_expand_load and change all MEM's to TImode.
4350 (spu_split_store): Change all MEM's to TImode.
4351 (spu_init_expanders): Preallocate registers that correspond to
4352 LAST_VIRTUAL_REG+1 and LAST_VIRTUAL_REG+2 and set them with
4354 (spu_split_convert): Define.
4355 * config/spu/spu.md (QHSI, QHSDI): New mode iterators.
4356 (_move<mode>, _movdi, _movti): Update predicate and condition.
4357 (load, store): Change to define_split.
4358 (extendqiti2, extendhiti2, extendsiti2, extendditi2): Simplify to
4360 (zero_extendqiti2, zero_extendhiti2, <v>lshr<mode>3_imm): Define.
4361 (lshr<mode>3, lshr<mode>3_imm, lshr<mode>3_re): Simplify to one
4362 define_insn_and_split of lshr<mode>3.
4363 (shrqbybi_<mode>, shrqby_<mode>): Simplify to define_expand.
4364 (<v>ashr<mode>3_imm): Define.
4365 (extv, extzv, insv): Allow MEM operands.
4366 (trunc_shr_ti<mode>, trunc_shr_tidi, shl_ext_<mode>ti,
4367 shl_ext_diti, sext_trunc_lshr_tiqisi, zext_trunc_lshr_tiqisi,
4368 sext_trunc_lshr_tihisi, zext_trunc_lshr_tihisi): Define for combine.
4369 (_spu_convert2): Change to define_insn_and_split and remove the
4370 corresponding define_peephole2.
4371 (stack_protect_set, stack_protect_test, stack_protect_test_si):
4372 Change predicates to memory_operand.
4374 2009-05-22 Mark Mitchell <mark@codesourcery.com>
4376 * config/arm/thumb2.md: Add 16-bit multiply instructions.
4378 2009-05-21 Michael Meissner <meissner@linux.vnet.ibm.com>
4380 PR tree-optimization/40219
4381 * tree.c (iterative_hash_expr): Make sure the builtin function is
4382 a normal builtin function and not a front end or back end builtin
4383 before indexing into the built_in_decls array.
4385 2009-05-22 Richard Guenther <rguenther@suse.de>
4388 * alias.c (write_dependence_p): Do not use TBAA for answering
4389 anti-dependence or output-dependence.
4390 * tree-ssa-structalias.c (set_uids_in_ptset): Remove TBAA pruning code.
4391 (emit_pointer_definition): Remove.
4392 (emit_alias_warning): Likewise.
4393 (find_what_var_points_to): Remove TBAA pruning code.
4394 (find_what_p_points_to): Likewise. Do not warn about strict-aliasing
4396 (compute_points_to_sets): Remove code computing the set of
4397 dereferenced pointers.
4398 * tree-data-ref.c (dr_may_alias_p): Properly use the split
4399 oracle for querying anti and output dependencies.
4400 * tree-ssa-alias.c (refs_may_alias_p_1): Add argument specifying
4401 if TBAA may be applied.
4402 (refs_anti_dependent_p): New function.
4403 (refs_output_dependent_p): Likewise.
4404 * tree-ssa-alias.h (refs_anti_dependent_p): Declare.
4405 (refs_output_dependent_p): Likewise.
4406 * doc/tree-ssa.texi (Memory model): New section.
4407 * doc/c-tree.texi (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
4408 * doc/gimple.texi (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
4409 * cfgexpand.c (expand_gimple_basic_block): Do not handle
4410 GIMPLE_CHANGE_DYNAMIC_TYPE or CHANGE_DYNAMIC_TYPE_EXPR.
4411 * expr.c (expand_expr_real_1): Likewise.
4412 * gimple-low.c (lower_stmt): Likewise.
4413 * gimple-pretty-print.c (dump_gimple_stmt): Likewise.
4414 (dump_gimple_cdt): Remove.
4415 * gimple.c (gss_for_code): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
4416 (gimple_size): Likewise.
4417 (walk_gimple_op): Likewise.
4418 (is_gimple_stmt): Likewise.
4419 (walk_stmt_load_store_addr_ops): Likewise.
4420 (gimple_build_cdt): Remove.
4421 * gimple.def (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
4422 * gimple.h (gimple_cdt_new_type): Remove.
4423 (gimple_cdt_new_type_ptr): Likewise.
4424 (gimple_cdt_set_new_type): Likewise.
4425 (gimple_cdt_location): Likewise.
4426 (gimple_cdt_location_ptr): Likewise.
4427 (gimple_cdt_set_location): Likewise.
4428 * gimplify.c (gimplify_expr): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
4429 * tree-cfg.c (remove_useless_stmts_1): Do not handle
4430 GIMPLE_CHANGE_DYNAMIC_TYPE.
4431 (verify_types_in_gimple_stmt): Likewise.
4432 * tree-inline.c (estimate_num_insns): Likewise.
4433 (expand_call_inline): Do not copy DECL_NO_TBAA_P.
4434 (copy_decl_to_var): Likewise.
4435 (copy_result_decl_to_var): Likewise.
4436 * tree-pretty-print.c (dump_generic_node): Do not handle
4437 CHANGE_DYNAMIC_TYPE_EXPR.
4438 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
4439 * tree-ssa-operands.c (get_expr_operands): Likewise.
4440 * tree-ssa-structalias.c (struct variable_info): Remove
4441 no_tbaa_pruning member.
4442 (new_var_info): Do not set it based on DECL_NO_TBAA_P.
4443 (unify_nodes): Do not copy it.
4444 (find_func_aliases): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
4445 (dump_solution_for_var): Do not dump no_tbaa_pruning state.
4446 (set_uids_in_ptset): Do not check it.
4447 (find_what_var_points_to): Likewise.
4448 (compute_tbaa_pruning): Remove.
4449 (compute_points_to_sets): Do not call it.
4450 * tree.c (walk_tree_1): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
4451 * tree.def (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
4452 * tree.h (CHANGE_DYNAMIC_TYPE_NEW_TYPE): Remove.
4453 (CHANGE_DYNAMIC_TYPE_LOCATION): Likewise.
4454 (DECL_NO_TBAA_P): Likewise.
4455 (struct tree_decl_common): Move no_tbaa_flag to unused flags section.
4456 * omp-low.c (copy_var_decl): Do not copy DECL_NO_TBAA_P.
4457 (expand_omp_atomic_pipeline): Do not set it.
4458 * print-tree.c (print_node): Do not dump it.
4459 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
4462 2009-05-22 Vladimir Makarov <vmakarov@redhat.com>
4465 * reg-stack.c (subst_stack_regs_pat): Remove gcc_assert for note
4468 2009-05-22 Mark Mitchell <mark@codesourcery.com>
4470 * tree.c (handle_dll_attribute): Mark dllexport'd inlines as
4473 2009-05-22 Ben Elliston <bje@au.ibm.com>
4475 * Makefile.in (bversion.h, s-bversion): New targets.
4476 (TOPLEV_H): Add bversion.h.
4477 * toplev.h: Include "bversion.h".
4478 (ATTRIBUTE_GCC_DIAG): When building with checking disabled, use
4479 the __format__ attribute only if compiling with the same version
4480 of GCC as the sources (the "build version").
4482 2009-05-22 Ben Elliston <bje@au.ibm.com>
4484 * c-format.c (handle_format_attribute): Fix comment typo.
4486 2009-05-21 Steve Ellcey <sje@cup.hp.com>
4489 * config/ia64/ia64.opt (mfused-madd): New.
4490 * config/ia64/ia64.h (TARGET_DEFAULT): Set MASK_FUSED_MADD.
4491 * config/ia64/hpux.h (TARGET_DEFAULT): Ditto.
4492 * config/ia64/ia64.md (maddsf4, msubsf4, nmaddsf4,
4493 madddf4, madddf4_trunc, msubdf4, msubdf4_trunc, nmadddf4,
4494 nmadddf4_truncsf, maddxf4, maddxf4_truncsf, maddxf4_truncdf,
4495 msubxf4, msubxf4_truncsf msubxf4_truncdf, nmaddxf4,
4496 nmaddxf4_truncsf, nmaddxf4_truncdf): Check TARGET_FUSED_MADD.
4497 * config/ia64/vect.md (addv2sf3, subv2sf3): Force fpma/fpms
4498 instruction if !TARGET_FUSED_MADD.
4499 (fpma, fpms): Remove colon from name.
4501 2009-05-22 Richard Guenther <rguenther@suse.de>
4503 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record
4504 TMR_ORIGINAL. Always either record TMR_SYMBOL or TMR_BASE.
4505 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
4507 (create_expression_by_pieces): Only convert if necessary.
4508 * gimplify.c (gimplify_expr): Handle TARGET_MEM_REF.
4509 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle INTEGER_CST.
4511 2009-05-21 Adam Nemet <anemet@caviumnetworks.com>
4513 * config/mips/mips.md (*extzv_trunc<mode>_exts): Turn into a
4514 regular pattern from a template and rename it ...
4515 (*extzv_truncsi_exts): ... to this.
4517 2009-05-21 Richard Guenther <rguenther@suse.de>
4519 * cgraph.h (struct cgraph_node): Remove inline_decl member.
4520 * ipa-inline.c (cgraph_mark_inline_edge): Do not check it.
4521 (cgraph_default_inline_p): Likewise.
4522 (cgraph_decide_inlining_incrementally): Likewise.
4524 2009-05-21 H.J. Lu <hongjiu.lu@intel.com>
4525 Uros Bizjak <ubizjak@gmail.com>
4527 * config/i386/cpuid.h (bit_MOVBE): New.
4529 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
4531 * config/i386/i386.c (OPTION_MASK_ISA_MOVBE_SET): New.
4532 (OPTION_MASK_ISA_MOVBE_UNSET): Likewise.
4533 (ix86_handle_option): Handle OPT_mmovbe.
4534 (ix86_target_string): Add -mmovbe.
4535 (pta_flags): Add PTA_MOVBE.
4536 (processor_alias_table): Add PTA_MOVBE to "atom".
4537 (override_options): Handle PTA_MOVBE.
4539 * config/i386/i386.h (TARGET_MOVBE): New.
4541 * config/i386/i386.md (bswapsi2): Check TARGET_MOVBE.
4542 (*bswapsi_movbe): New.
4543 (*bswapdi_movbe): Likewise.
4544 (bswapdi2): Renamed to ...
4546 (bswapdi2): New expander.
4548 * config/i386/i386.opt (mmovbe): New.
4550 * doc/invoke.texi: Document -mmovbe.
4552 2009-05-21 Taras Glek <tglek@mozilla.com>
4554 * plugin.c (try_init_one_plugin): Updated to new plugin_init API.
4555 * gcc-plugin.h (plugin_init): Updated signature.
4556 * gcc-plugin.h (plugin_name_args): Moved to this header.
4557 * doc/plugins.texi (plugin_init): Updated documention to reflect
4559 * doc/plugins.texi (plugin_name_args): Added to documention.
4561 2009-05-21 Mark Mitchell <mark@codesourcery.com>
4563 * config/arm/neon.md (*mul<mode>3add<mode>_neon): New pattern.
4564 (*mul<mode>3neg<mode>add<mode>_neon): Likewise.
4566 2009-05-21 Shujing Zhao <pearly.zhao@oracle.com>
4568 * config/i386/i386.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P and
4569 JUMP_TABLE_DATA_P predicates where applicable.
4570 * config/i386/predicates.md: Ditto.
4571 * config/i386/sse.md: Ditto.
4573 2009-05-21 Jakub Jelinek <jakub@redhat.com>
4575 * config/i386/i386.md (adddi_4_rex64, addsi_4, addhi_4): For
4576 operand2 -128 override length_immediate attribute to 1.
4577 * config/i386/predicates.md (constm128_operand): New predicate.
4579 * config/i386/i386.c (memory_address_length): Handle %r12
4580 the same as %rsp and %r13 the same as %rbp. For %rsp and %rbp
4582 (ix86_attr_length_address_default): For MODE_SI lea in 64-bit
4583 mode look through optional ZERO_EXTEND and SUBREG.
4584 * config/i386/i386.md (R12_REG): New define_constant.
4585 (prefix_data16): For sse unit set also for MODE_TI insns.
4586 (prefix_rex): For -m32 always return 0. For TYPE_IMOVX
4587 insns set if operand 1 is ext_QIreg_operand.
4588 (modrm): For TYPE_IMOV clear only if not MODE_DI. For
4589 TYPE_{ALU{,1},ICMP,TEST} insn clear if there is non-shortened
4591 (*movdi_extzv_1, zero_extendhidi2, zero_extendqidi2): Change
4592 mode from MODE_DI to MODE_SI.
4593 (movdi_1_rex64): Override modrm and length_immediate attributes
4594 only for movabs (TYPE_IMOV, alternative 2).
4595 (zero_extendsidi2_rex64): Clear prefix_0f attribute if TYPE_IMOVX.
4596 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
4597 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
4598 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
4599 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Set
4600 prefix_rex attribute if DImode.
4601 (*adddi_1_rex64, *adddi_2_rex64, *adddi_3_rex64, *adddi_5_rex64,
4602 *addsi_1, *addsi_1_zext, *addsi_2, *addsi_2_zext, *addsi_3,
4603 *addsi_3_zext, *addsi_5, *addhi_1_lea, *addhi_1, *addhi_2, *addhi_3,
4604 *addhi_5, *addqi_1_lea, *addqi_1): Override length_immediate
4605 attribute to 1 if TYPE_ALU and operand 2 is const128_operand.
4606 (pro_epilogue_adjust_stack_1, pro_epilogue_adjust_stack_rex64):
4607 Likewise. For TYPE_IMOV clear length_immediate attribute.
4608 (*ashldi3_1_rex64, *ashldi3_cmp_rex64, *ashldi3_cconly_rex64,
4609 *ashlsi3_1, *ashlsi3_1_zext, *ashlsi3_cmp, **ashlsi3_cconly,
4610 *ashlsi3_cmp_zext, *ashlhi3_1_lea, *ashlhi3_1, *ashlhi3_cmp,
4611 *ashlhi3_cconly, *ashlqi3_1_lea, *ashlqi3_1, *ashlqi3_cmp,
4612 *ashlqi3_cconly): Override length_immediate attribute to 0 if TYPE_ALU
4613 or one operand TYPE_ISHIFT.
4614 (*ashrdi3_1_one_bit_rex64, *ashrdi3_one_bit_cmp_rex64,
4615 *ashrdi3_one_bit_cconly_rex64, *ashrsi3_1_one_bit,
4616 *ashrsi3_1_one_bit_zext, *ashrsi3_one_bit_cmp,
4617 *ashrsi3_one_bit_cconly, *ashrsi3_one_bit_cmp_zext,
4618 *ashrhi3_1_one_bit, *ashrhi3_one_bit_cmp, *ashrhi3_one_bit_cconly,
4619 *ashrqi3_1_one_bit, *ashrqi3_1_one_bit_slp, *ashrqi3_one_bit_cmp,
4620 *ashrqi3_one_bit_cconly, *lshrdi3_1_one_bit_rex64,
4621 *lshrdi3_cmp_one_bit_rex64, *lshrdi3_cconly_one_bit_rex64,
4622 *lshrsi3_1_one_bit, *lshrsi3_1_one_bit_zext, *lshrsi3_one_bit_cmp,
4623 *lshrsi3_one_bit_cconly, *lshrsi3_cmp_one_bit_zext,
4624 *lshrhi3_1_one_bit, *lshrhi3_one_bit_cmp, *lshrhi3_one_bit_cconly,
4625 *lshrqi3_1_one_bit, *lshrqi3_1_one_bit_slp, *lshrqi2_one_bit_cmp,
4626 *lshrqi2_one_bit_cconly, *rotlsi3_1_one_bit_rex64, *rotlsi3_1_one_bit,
4627 *rotlsi3_1_one_bit_zext, *rotlhi3_1_one_bit, *rotlqi3_1_one_bit_slp,
4628 *rotlqi3_1_one_bit, *rotrdi3_1_one_bit_rex64, *rotrsi3_1_one_bit,
4629 *rotrsi3_1_one_bit_zext, *rotrhi3_one_bit, *rotrqi3_1_one_bit,
4630 *rotrqi3_1_one_bit_slp): Override length_immediate attribute to 0,
4631 set mode attribute, don't override length attribute.
4632 (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Set prefix_0f attribute
4634 (return_internal_long): Set length attribute to 2 instead of 1.
4635 (*strmovqi_rex_1, *strsetqi_rex_1, *rep_stosqi_rex64,
4636 *cmpstrnqi_nz_rex_1, *cmpstrnqi_rex_1, *strlenqi_rex_1): Clear
4637 prefix_rex attribute.
4638 * config/i386/predicates.md (ext_QIreg_operand, const128_operand):
4640 (memory_displacement_only_operand): Always return 0 for TARGET_64BIT.
4642 2009-05-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4644 * config/arm/thumb2.md (orsi_notsi_si): Fix typo in pattern.
4646 2009-05-20 Ian Lance Taylor <iant@google.com>
4648 * tree.c (build_tree_list_vec_stat): New function.
4649 (ctor_to_vec): New function.
4650 (build_nt_call_vec): New function.
4651 (build_call_array): Change args to be a const pointer.
4652 (build_call_vec): New function.
4653 * tree.h (build_nt_call_vec): Declare.
4654 (build_tree_list_vec_stat): Declare.
4655 (build_tree_list_vec): Define.
4656 (build_call_array): Update declaration.
4657 (build_call_vec): Declare.
4658 (ctor_to_vec): Declare.
4659 * c-common.c (tree_vector_cache): New static variable.
4660 (make_tree_vector): New function.
4661 (release_tree_vector): New function.
4662 (make_tree_vector_single): New function.
4663 (make_tree_vector_copy): New function.
4664 * c-common.h (tree_vector_cache, make_tree_vector): Declare.
4665 (make_tree_vector_single, make_tree_vector_copy): Declare.
4666 * c-parser.c (cached_expr_list_1, cached_expr_list_2): Remove.
4667 (c_parser_expr_list): Don't manage cache here, instead call
4669 (c_parser_release_expr_list): Remove static function.
4670 (c_parser_vec_to_tree_list): Remove static function.
4671 (c_parser_attributes): Call build_tree_list_vec instead of
4672 c_parser_vec_to_tree_list. Call release_tree_vector instead of
4673 c_parser_release_expr_list.
4674 (c_parser_postfix_expression_after_primary): Likewise.
4675 (c_parser_objc_keywordexpr): Likewise.
4677 2009-05-20 Sandra Loosemore <sandra@codesourcery.com>
4679 * doc/tm.texi (Misc): Document TARGET_INVALID_PARAMETER_TYPE,
4680 TARGET_INVALID_RETURN_TYPE, TARGET_PROMOTED_TYPE, and
4681 TARGET_CONVERT_TO_TYPE.
4682 * hooks.c (hook_tree_const_tree_null): Define.
4683 * hooks.h (hook_tree_const_tree_null): Declare.
4684 * target.h (struct gcc_target): Add invalid_parameter_type,
4685 invalid_return_type, promoted_type, and convert_to_type fields.
4686 * target-def.h: (TARGET_INVALID_PARAMETER_TYPE): Define.
4687 (TARGET_INVALID_RETURN_TYPE): Define.
4688 (TARGET_PROMOTED_TYPE): Define.
4689 (TARGET_CONVERT_TO_TYPE): Define.
4690 (TARGET_INITIALIZER): Update for new fields.
4691 * c-decl.c (grokdeclarator): Check targetm.invalid_return_type.
4692 (grokparms): Check targetm.invalid_parameter_type.
4693 * c-typeck.c (default_conversion): Check targetm.promoted_type.
4694 * c-convert.c (convert): Check targetm.convert_to_type.
4696 2009-05-20 Adam Nemet <anemet@caviumnetworks.com>
4698 * config/mips/mips.md (*extenddi_truncate<mode>,
4699 *extendsi_truncate<mode>): Emit exts if supported. Add attribute
4701 (*extendhi_truncateqi): New define_insn_and_sptit.
4703 2009-05-20 Jakub Jelinek <jakub@redhat.com>
4706 * fold-const.c (fold_binary) <case BIT_AND_EXPR>: Avoid infinite
4707 recursion if build_int_cst_type returns the same INTEGER_CST as arg1.
4709 2009-05-20 Eric Botcazou <ebotcazou@adacore.com>
4711 * fold-const.c (build_fold_addr_expr_with_type): Take the address of
4712 the operand of VIEW_CONVERT_EXPR.
4714 2009-05-20 H.J. Lu <hongjiu.lu@intel.com>
4716 * config/i386/driver-i386.c (host_detect_local_cpu): Check
4717 extended family and model for Intel processors. Support Intel Atom.
4719 2009-05-20 Olivier Hainque <hainque@adacore.com>
4721 * gstab.h (stab_code_type): Define, to be used instead of the
4722 __stab_debug_code enum, made anonymous. Add 2009 to the copyright
4724 * dbxout.c (STAB_CODE_TYPE): Remove #define and replace use
4725 occurrences by stab_code_type.
4726 * mips-tfile.c (STAB_CODE_TYPE): Remove #define, unused.
4728 2009-05-20 Martin Jambor <mjambor@suse.cz>
4730 * tree-flow.h (insert_edge_copies_seq): Undeclare.
4731 (sra_insert_before): Likewise.
4732 (sra_insert_after): Likewise.
4733 (sra_init_cache): Likewise.
4734 (sra_type_can_be_decomposed_p): Likewise.
4735 * tree-mudflap.c (insert_edge_copies_seq): Copied here from tree-sra.c
4736 * tree-sra.c (sra_type_can_be_decomposed_p): Made static.
4737 (sra_insert_before): Likewise.
4738 (sra_insert_after): Likewise.
4739 (sra_init_cache): Likewise.
4740 (insert_edge_copies_seq): Made static and moved upwards.
4742 * tree-complex.c (extract_component): Added VIEW_CONVERT_EXPR switch
4745 * tree-flow-inline.h (contains_view_convert_expr_p): New function.
4747 * ipa-prop.c (get_ssa_def_if_simple_copy): New function.
4748 (determine_cst_member_ptr): Call get_ssa_def_if_simple_copy to skip
4751 2009-05-20 Richard Guenther <rguenther@suse.de>
4753 * expr.c (expand_expr_real_1): Avoid calling do_store_flag
4754 with mismatched comparison modes.
4756 2009-05-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4758 * config/arm/arm.md (*arm_iorsi3): Refactored for only ARM.
4759 (peephole ior (reg, int) -> mov, ior): Refactored for only ARM.
4760 * config/arm/thumb2.md (*thumb_andsi_not_shiftsi_si): Allow bic
4761 with shifts for Thumb2.
4762 (orsi_notsi): New for orn.
4763 (*thumb_orsi_notshiftsi_si): Allow orn with shifts.
4764 (*thumb2_iorsi3): Rewrite support for iorsi for Thumb2.
4765 * config/arm/arm.c (const_ok_for_op): Split case for IOR for Thumb2.
4766 (arm_gen_constant): Set can_invert for IOR and Thumb2, Add comments.
4767 Don't invert remainder for IOR.
4769 2009-05-19 Zdenek Dvorak <ook@ucw.cz>
4771 PR tree-optimization/40087
4772 * tree-ssa-loop-niter.c (number_of_iterations_ne_max,
4773 number_of_iterations_ne): Rename never_infinite argument.
4774 (number_of_iterations_lt_to_ne, number_of_iterations_lt,
4775 number_of_iterations_le): Handle pointer-type ivs when
4776 exit_must_be_taken is false.
4777 (number_of_iterations_cond): Do not always assume that
4778 exit_must_be_taken if the control variable is a pointer.
4780 2009-05-19 Andrew Pinski <andrew_pinski@playstation.sony.com>
4782 * c-typeck.c (build_binary_op): Allow % on integal vectors.
4783 * doc/extend.texi (Vector Extension): Document that % is allowed too.
4785 2009-05-19 H.J. Lu <hongjiu.lu@intel.com>
4787 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Check
4788 ASM_OUTPUT_MAX_SKIP_PAD instead of ASM_OUTPUT_MAX_SKIP_ALIGN.
4790 2009-05-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
4793 * c.opt (Wlogical-op): Disabled by default.
4794 * c-opt (c_common_post_options): Do not enable Wlogical-op with
4796 * doc/invoke.texi (Wlogical-op): Likewise.
4798 2009-05-19 Eric Botcazou <ebotcazou@adacore.com>
4800 * tree-scalar-evolution.c (follow_ssa_edge_expr) <NOP_EXPR>: Turn
4802 <PLUS_EXPR>: Strip useless type conversions instead of type nops.
4803 Propagate the type of the first operand.
4804 <ASSERT_EXPR>: Simplify.
4805 (follow_ssa_edge_in_rhs): Use gimple_expr_type to get the type.
4806 Rewrite using the RHS code as discriminant.
4807 <NOP_EXPR>: Turn into CASE_CONVERT.
4808 <PLUS_EXPR>: Propagate the type of the first operand.
4810 2009-05-19 Steve Ellcey <sje@cup.hp.com>
4812 * config/ia64/ia64-protos.h (ia64_dconst_0_5): New.
4813 (ia64_dconst_0_375): New.
4814 * config/ia64/ia64.c (ia64_override_options): Remove
4815 -minline-sqrt-min-latency warning.
4816 (ia64_dconst_0_5_rtx, ia64_dconst_0_5): New.
4817 (ia64_dconst_0_375_rtx, ia64_dconst_0_375): New
4818 * config/ia64/ia64.md (*sqrt_approx): Remove.
4819 (sqrtsf2): Remove #if 0.
4820 (sqrtsf2_internal_thr): Rewrite and move to div.md.
4821 (sqrtdf): Remove assert.
4822 (sqrtdf2_internal_thr): Rewrite and move to div.md.
4823 (sqrtxf2): Remove #if 0.
4824 (sqrtxf2_internal_thr): Rewrite and move to div.md.
4825 * div.md (sqrt_approx_rf): New.
4826 (sqrtsf2_internal_thr): New implementation.
4827 (sqrtsf2_internal_lat): New.
4828 (sqrtdf2_internal_thr: New implementation.
4829 (sqrtxf2_internal): New implementation.
4831 2009-05-19 Francois-Xavier Coudert <fxcoudert@gmail.com>
4832 Hans-Peter Nilsson <hp@axis.com>
4834 * defaults.h (UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE)
4835 (WCHAR_TYPE, MODIFIED_WCHAR_TYPE, PTRDIFF_TYPE, WINT_TYPE)
4836 (INTMAX_TYPE, UINTMAX_TYPE, SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE)
4837 (INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE)
4838 (UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE)
4839 (INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE)
4840 (UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE)
4841 (INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE)
4842 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE)
4843 (SIZE_TYPE, PID_TYPE, CHAR16_TYPE, CHAR32_TYPE): Move defaults here...
4844 * c-common.c: ...from here.
4846 2009-05-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
4848 * c-common.c (warn_logical_operator): Remove unnecessary conditionals.
4850 2009-05-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4852 * builtins.c (do_mpc_arg1): Separate MPFR/MPC C rounding types.
4854 2009-05-19 Ben Elliston <bje@au.ibm.com>
4856 * unwind-dw2-fde.c (fde_unencoded_compare): Replace type punning
4857 assignments with memcpy calls.
4858 (add_fdes): Likewise.
4859 (binary_search_unencoded_fdes): Likewise.
4860 (linear_search_fdes): Eliminate type puns.
4862 2009-05-19 Richard Guenther <rguenther@suse.de>
4864 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do
4865 not falsely claim to have propagated into all uses.
4867 2009-05-19 Ben Elliston <bje@au.ibm.com>
4869 * doc/invoke.texi (C Dialect Options): Update OpenMP specification
4872 2009-05-18 Kaz Kojima <kkojima@gcc.gnu.org>
4874 * config/sh/sh-protos.h (sh_legitimate_address_p): Remove.
4875 * config/sh/sh.c (sh_legitimate_address_p): Make static.
4876 (TARGET_LEGITIMATE_ADDRESS_P): New.
4877 * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
4878 * config/sh/sh.md: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
4880 2009-05-18 Dodji Seketeli <dodji@redhat.com>
4883 * dwarf2out.c (gen_type_die_with_usage): Generate the DIE as a
4884 child of the containing namespace's DIE.
4886 2009-05-18 Adam Nemet <anemet@caviumnetworks.com>
4888 * config/mips/mips.md (*zero_extend<GPR:mode>_trunc<SHORT:mode>,
4889 *zero_extendhi_truncqi): Move after the zero_extend patterns.
4890 (*extenddi_truncate<mode>, *extendsi_truncate<mode>): Move after the
4893 2009-05-18 H.J. Lu <hongjiu.lu@intel.com>
4896 * config/i386/i386.c (ix86_avoid_jump_misspredicts): Replace
4897 gen_align with gen_pad.
4898 (ix86_reorg): Check ASM_OUTPUT_MAX_SKIP_PAD instead of
4899 #ifdef ASM_OUTPUT_MAX_SKIP_ALIGN.
4901 * config/i386/i386.h (ASM_OUTPUT_MAX_SKIP_PAD): New.
4902 * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_PAD): Likewise.
4904 * config/i386/i386.md (align): Renamed to ...
4905 (pad): This. Replace ASM_OUTPUT_MAX_SKIP_ALIGN with
4906 ASM_OUTPUT_MAX_SKIP_PAD.
4908 2009-05-18 Andreas Schwab <schwab@linux-m68k.org>
4910 * config.gcc: Fix variable syntax.
4913 * config/m68k/m68k.c (output_andsi3): Mask off sign bit copies
4914 before calling exact_log2.
4915 (output_iorsi3): Likewise.
4916 (output_xorsi3): Likewise.
4918 2009-05-18 Kaz Kojima <kkojima@gcc.gnu.org>
4920 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register
4921 for the none zero constant operand except for EQ and NE
4922 comprisons even when the first operand is R0.
4924 2009-05-18 Andreas Krebbel <krebbel1@de.ibm.com>
4926 * config/s390/2064.md: Remove trailing whitespaces.
4927 * config/s390/2084.md: Likewise.
4928 * config/s390/constraints.md: Likewise.
4929 * config/s390/fixdfdi.h: Likewise.
4930 * config/s390/libgcc-glibc.ver: Likewise.
4931 * config/s390/s390-modes.def: Likewise.
4932 * config/s390/s390-protos.h: Likewise.
4933 * config/s390/s390.c: Likewise.
4934 * config/s390/s390.h: Likewise.
4935 * config/s390/s390.md: Likewise.
4936 * config/s390/tpf-unwind.h: Likewise.
4938 2009-05-18 Maxim Kuvyrkov <maxim@codesourcery.com>
4940 * config/m68k/m68k.c (m68k_legitimize_address): Fix typo in signature.
4942 2009-05-18 Maxim Kuvyrkov <maxim@codesourcery.com>
4945 * configure.ac (m68k-*-*): Check if binutils support TLS.
4946 * configure: Regenerate.
4947 * config/m68k/predicates.md (symbolic_operand): Extend comment.
4948 * config/m68k/constraints.md (Cu): New constraint.
4949 * config/m68k/m68k.md (UNSPEC_GOTOFF): Remove.
4950 (UNSPEC_RELOC16, UNSPEC_RELOC32): New constants.
4951 (movsi): Handle TLS symbols.
4952 (addsi3_5200): Handle XTLS symbols, indent.
4953 * config/m68k/m68k-protos.h (m68k_legitimize_tls_address): Declare.
4954 (m68k_tls_reference_p): Declare.
4955 (m68k_legitimize_address): Declare.
4956 (m68k_unwrap_symbol): Declare.
4957 * config/m68k/m68k.opt (mxtls): New option.
4958 * config/m68k/m68k.c (ggc.h): Include.
4959 (m68k_output_dwarf_dtprel): Implement hook.
4960 (TARGET_HAVE_TLS, TARGET_ASM_OUTPUT_DWARF_DTPREL): Define.
4961 (m68k_expand_prologue): Load GOT pointer when function needs it.
4962 (m68k_illegitimate_symbolic_constant_p): Handle TLS symbols.
4963 (m68k_legitimate_constant_address_p): Same.
4964 (m68k_decompose_address): Handle TLS references.
4965 (m68k_get_gp): New static function.
4966 (enum m68k_reloc): New contants.
4967 (TLS_RELOC_P): New macro.
4968 (m68k_wrap_symbol): New static function.
4969 (m68k_unwrap_symbol): New function.
4970 (m68k_final_prescan_insn_1): New static function.
4971 (m68k_final_prescan_insn): New function.
4972 (m68k_move_to_reg, m68k_wrap_symbol_into_got_ref): New static
4974 (legitimize_pic_address): Handle TLS references..
4975 (m68k_tls_get_addr, m68k_get_tls_get_addr)
4976 (m68k_libcall_value_in_a0_p)
4977 (m68k_call_tls_get_addr, m68k_read_tp, m68k_get_m68k_read_tp)
4978 (m68k_call_m68k_read_tp): Helper variables and functions for ...
4979 (m68k_legitimize_tls_address): Handle TLS references.
4980 (m68k_tls_symbol_p, m68k_tls_reference_p_1, m68k_tls_reference_p):
4982 (m68k_legitimize_address): Handle TLS symbols.
4983 (m68k_get_reloc_decoration): New static function.
4984 (m68k_output_addr_const_extra): Handle UNSPEC_RELOC16 and
4986 (m68k_output_dwarf_dtprel): Implement hook.
4987 (print_operand_address): Handle UNSPEC_RELOC16 adn UNSPEC_RELOC32.
4988 (m68k_libcall_value): Return result in A0 instead of D0 when asked by
4989 m68k_call_* routines.
4990 (sched_attr_op_type): Handle TLS symbols.
4991 (gt-m68k.h): Include.
4992 * config/m68k/m68k.h (FINAL_PRESCAN_INSN): Define.
4993 (LEGITIMATE_PIC_OPERAND_P): Support TLS.
4995 2009-05-18 Martin Jambor <mjambor@suse.cz>
4997 * ipa-prop.c (ipa_check_stmt_modifications): Removed.
4998 (visit_store_addr_for_mod_analysis): New function.
4999 (ipa_detect_param_modifications): Use walk_stmt_load_store_addr_ops.
5000 (determine_cst_member_ptr): Use gimple_assign_single_p.
5001 (ipa_get_stmt_member_ptr_load_param): Use gimple_assign_single_p.
5002 (ipa_analyze_call_uses): Use !gimple_assign_rhs2 rather than number of
5003 operands. Don't check number of operands of a NOP_EXPR.
5005 2009-05-18 Eric Fisher <joefoxreal@gmail.com>
5007 * doc/tree-ssa.texi (SSA Operands): Fix a mistake.
5009 2009-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
5012 * c-common.c (warn_logical_operator): Don't warn if one of
5013 expression isn't always true or false.
5015 2009-05-17 Kai Tietz <kai.tietz@onevision.com>
5017 * config/i386/biarch32.h: New file.
5018 * config.gcc: Add for target i386-w64-* the biarch32.h to tm_file.
5020 2009-05-17 Adam Nemet <anemet@caviumnetworks.com>
5022 * config/mips/mips.md (*zero_extend<mode>_trunchi,
5023 *zero_extend<mode>_truncqi): Merge these into ...
5024 (*zero_extend<GPR:mode>_trunc<SHORT:mode>): ... this new pattern.
5025 Name the pattern following this as *zero_extendhi_truncqi.
5027 2009-05-16 Brad Lucier <lucier@math.purdue.edu>
5030 * hwint.h: Add macro HOST_WIDEST_INT_PRINT.
5031 * bitmap.c (bitmap_descriptor): Make fields HOST_WIDEST_INT.
5032 (output_info): Make field HOST_WIDEST_INT.
5033 (print_statistics): Use HOST_WIDEST_INT_PRINT.
5034 (dump_bitmat_statistics): Same.
5036 2009-05-16 Francois-Xavier Coudert <fxcoudert@gmail.com>
5038 * config.gcc (use_gcc_stdint): Set to wrap.
5039 * config/darwin.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
5040 INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
5041 UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
5042 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
5043 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
5044 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
5045 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
5046 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
5048 2009-05-16 Joseph Myers <joseph@codesourcery.com>
5050 * config.gcc (mips*-*-*): Support arch_32, arch_64, tune_32 and
5052 * config/mips/mips.h (MIPS_ABI_DEFAULT, MULTILIB_ABI_DEFAULT):
5053 Move definitions earlier.
5054 (OPT_ARCH64, OPT_ARCH32): Define.
5055 (OPTION_DEFAULT_SPECS): Add entries for arch_32, arch_64, tune_32
5058 2009-05-16 Richard Earnshaw <rearnsha@arm.com>
5061 * arm.md (cstoresi_nltu_thumb1): Use a neg of ltu as the pattern name
5064 2009-05-16 Richard Earnshaw <rearnsha@arm.com>
5066 * arm.md (movdi2): Copy non-reg values to DImode registers.
5068 2009-05-16 Jakub Jelinek <jakub@redhat.com>
5071 * final.c (label_to_max_skip): New function.
5072 (label_to_alignment): Only use LABEL_TO_ALIGNMENT if
5073 CODE_LABEL_NUMBER <= max_labelno.
5074 * output.h (label_to_max_skip): New prototype.
5075 * config/i386/i386.c (ix86_avoid_jump_misspredicts): Renamed to...
5076 (ix86_avoid_jump_mispredicts): ... this. Don't define if
5077 ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined. Update comment.
5078 Handle CODE_LABELs with >= 16 byte alignment or with
5079 max_skip == (1 << align) - 1.
5080 (ix86_reorg): Don't call ix86_avoid_jump_mispredicts if
5081 ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined.
5084 * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Don't emit second
5085 .p2align 3 if MAX_SKIP is smaller than 7.
5086 * config/i386/linux.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
5088 2009-05-15 Ian Lance Taylor <iant@google.com>
5090 * alias.c (struct alias_set_entry_d): Rename from struct
5091 alias_set_entry. Change all uses.
5092 * except.c (struct call_site_record_d): Rename from struct
5093 call_site_record. Change all uses.
5094 * except.h (struct eh_region_d): Rename from struct eh_region.
5096 * gcse.c (struct hash_table_d): Rename from struct hash_table.
5098 * graphite.c (struct ivtype_map_elt_d): Rename fromstruct
5099 ivtype_map_elt. Change all uses.
5100 (struct rename_map_elt_d): Rename fromstruct rename_map_elt.
5102 (struct ifsese_d): Rename fromstruct ifsese. Change all uses.
5103 * graphite.h (struct name_tree_d): Rename from struct name_tree.
5105 (struct sese_d): Rename from struct sese. Change all uses.
5106 * omega.h (struct eqn_d): Rename from struct eqn. Change all uses.
5107 (struct omega_pb_d): Rename from struct omega_pb. Change all uses.
5108 * optabs.h (struct optab_d): Rename from struct optab. Change all
5110 (struct convert_optab_d): Rename from struct convert_optab.
5112 * tree-pass.h (struct ipa_opt_pass_d): Rename fromstruct
5113 ipa_opt_pass. Change all uses.
5114 * tree-predcom.c (struct dref_d): Rename from struct dref. Change
5117 * c-decl.c (pushtag): If -Wc++-compat, warn if the tag is already
5118 defined as a typedef.
5119 (grokdeclarator): If -Wc++-compat, warn if a typedef is already
5122 2009-05-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
5125 * fold-const.c (make_range,build_range_check,merge_ranges): Move
5127 (merge_ranges): Returns bool.
5128 * tree.h (make_range): .. to here.
5129 (build_range_check): Likewise.
5130 (merge_ranges): Likewise. Renamed from merge_ranges.
5131 * c-typeck.c (parser_build_binary_op): Update calls to
5132 warn_logical_operator.
5133 * c-common.c (warn_logical_operator): Add new warning.
5134 * c-common.h (warn_logical_operator): Update declaration.
5136 2009-05-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
5138 * ira-conflicts.c (add_insn_allocno_copies): Fix wrong conditional.
5140 2009-05-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5142 * doc/install.texi: Document MPC requirements, flags etc.
5144 * builtins.c (do_mpc_arg1, fold_builtin_ccos): New.
5145 (fold_builtin_cexp): Ensure we get a complex REAL_TYPE.
5146 Evaluate constant arguments.
5147 (fold_builtin_carg): Ensure we get a complex REAL_TYPE.
5148 (fold_builtin_1): Likewise, also evaluate constant arguments.
5149 Remove superfluous break.
5150 (do_mpc_ckconv): New.
5151 * real.h: Include mpc.h.
5152 * toplev.c (print_version): Output MPC version info if available.
5154 2009-05-15 Sandra Loosemore <sandra@codesourcery.com>
5156 * fold-const.c (fold_convert_const_real_from_real): Check for overflow.
5158 2009-05-15 H.J. Lu <hongjiu.lu@intel.com>
5160 * config/i386/i386.c (ix86_reorg): Call optimize_function_for_speed_p
5163 2009-05-15 Jan Hubicka <jh@suse.cz>
5165 * doc/invoke.texi (max-early-inliner-iterations): New flag.
5166 * ipa-inline.c (enum inlining_mode): New INLINE_SIZE_NORECURSIVE.
5167 (try_inline): Fix return value.
5168 (cgraph_decide_inlining_incrementally): Honor new value.
5169 (cgraph_early_inlining): Handle indirect inlining.
5170 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): New.
5172 2009-05-15 Jan Hubicka <jh@suse.cz>
5174 * cgraph.h (struct cgraph_node): Add finalized_by_frotnend flag.
5175 * cgraphunit.c (cgraph_finalize_function): Set it.
5176 (cgraph_expand_function): Use it.
5178 2009-05-15 Sandra Loosemore <sandra@codesourcery.com>
5180 * real.c (encode_ieee_half): Define.
5181 (decode_ieee_half): Define.
5182 (ieee_half_format): Define.
5183 (arm_half_format): Define.
5184 * real.h (ieee_half_format): Declare.
5185 (arm_half_format): Declare.
5187 2009-05-15 Sandra Loosemore <sandra@codesourcery.com>
5189 * optabs.c (prepare_float_lib_cmp): Test that the comparison,
5190 swapped, and reversed optabs exist before trying to use them.
5192 2009-05-15 Paul Brook <paul@codesourcery.com>
5193 Sandra Loosemore <sandra@codesourcery.com>
5195 * config/arm/arm.c (neon_vector_mem_operand): Handle element/structure
5196 loads. Allow PRE_DEC.
5197 (output_move_neon): Handle PRE_DEC.
5198 (arm_print_operand): Add 'A' for neon structure loads.
5199 * config/arm/arm-protos.h (neon_vector_mem_operand): Update prototype.
5200 * config/arm/neon.md (neon_mov): Update comment.
5201 * config/arm/constraints.md (Un, Us): Update neon_vector_mem_operand
5203 (Um): New constraint.
5205 2009-05-15 Jan Hubicka <jh@suse.cz>
5207 Revert the following patch until testsuite fallout is fixed:
5208 * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
5209 * cgraph.h (struct inline_summary): New filed self_wize,
5210 size_inlining_benefit, self_time and time_inlining_benefit.
5211 (struct cgraph_global_info): Replace insns by time ans size fields.
5212 * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
5213 (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
5214 (ipcp_update_callgraph): Do not touch function bodies.
5215 * ipa-inline.c: Include except.h
5216 (MAX_TIME): New constant.
5217 (overall_insns): Remove
5218 (overall_size, max_benefit): New static variables.
5219 (cgraph_estimate_time_after_inlining): New function.
5220 (cgraph_estimate_size_after_inlining): Rewrite using benefits.
5221 (cgraph_clone_inlined_nodes): Update size.
5222 (cgraph_mark_inline_edge): Update size.
5223 (cgraph_estimate_growth): Use size info.
5224 (cgraph_check_inline_limits): Check size.
5225 (cgraph_default_inline_p): Likewise.
5226 (cgraph_edge_badness): Compute badness based on benefit and size cost.
5227 (cgraph_decide_recursive_inlining): Check size.
5228 (cgraph_decide_inlining_of_small_function): Update size; dump sizes
5230 (cgraph_decide_inlining): Likewise.
5231 (cgraph_decide_inlining_incrementally): Likewise; honor
5232 PARAM_EARLY_INLINING_INSNS.
5233 (likely_eliminated_by_inlining_p): New predicate.
5234 (estimate_function_body_sizes): New function.
5235 (compute_inline_parameters): Use it.
5236 * except.c (must_not_throw_labels): New function.
5237 * except.h (must_not_throw_labels): Declare.
5238 * tree-inline.c (init_inline_once): Kill inlining_weigths
5239 * tree-ssa-structalias.c: Avoid uninitialized warning.
5240 * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
5241 (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
5242 (PARAM_INLINE_CALL_COST): Remove.
5243 (PARAM_EARLY_INLINING_INSNS): New.
5245 2009-05-15 Richard Guenther <rguenther@suse.de>
5247 * tree-ssa-pre.c (eliminate): Use TODO_update_ssa_only_virtuals,
5248 not TODO_update_ssa.
5250 2009-05-15 Richard Guenther <rguenther@suse.de>
5252 PR tree-optimization/39999
5253 * gimple.h (gimple_expr_type): Use the expression type looking
5254 through useless conversions.
5255 * tree-ssa-sccvn.c (vn_nary_op_lookup_stmt): Use gimple_expr_type.
5256 (vn_nary_op_insert_stmt): Likewise.
5257 (simplify_binary_expression): Likewise.
5259 2009-05-15 Richard Guenther <rguenther@suse.de>
5261 * common.opt (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
5262 New options, enabled by default.
5263 * doc/invoke.texi (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
5265 * tree-ssa-forwprop.c (gate_forwprop): Use flag_tree_forwprop.
5266 * tree-ssa-phiprop.c (gate_phiprop): Use flag_tree_phiprop.
5267 * tree-ssa-structalias.c (gate_tree_pta): New function.
5268 (pass_build_alias): Use it.
5270 2009-05-15 Joseph Myers <joseph@codesourcery.com>
5272 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
5273 recurse on an invariant address if a conversion from a pointer
5274 type to a wider integer type is involved.
5276 2009-05-15 Jan Hubicka <jh@suse.cz>
5278 * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
5279 * cgraph.h (struct inline_summary): New filed self_wize,
5280 size_inlining_benefit, self_time and time_inlining_benefit.
5281 (struct cgraph_global_info): Replace insns by time ans size fields.
5282 * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
5283 (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
5284 (ipcp_update_callgraph): Do not touch function bodies.
5285 * ipa-inline.c: Include except.h
5286 (MAX_TIME): New constant.
5287 (overall_insns): Remove
5288 (overall_size, max_benefit): New static variables.
5289 (cgraph_estimate_time_after_inlining): New function.
5290 (cgraph_estimate_size_after_inlining): Rewrite using benefits.
5291 (cgraph_clone_inlined_nodes): Update size.
5292 (cgraph_mark_inline_edge): Update size.
5293 (cgraph_estimate_growth): Use size info.
5294 (cgraph_check_inline_limits): Check size.
5295 (cgraph_default_inline_p): Likewise.
5296 (cgraph_edge_badness): Compute badness based on benefit and size cost.
5297 (cgraph_decide_recursive_inlining): Check size.
5298 (cgraph_decide_inlining_of_small_function): Update size; dump sizes
5300 (cgraph_decide_inlining): Likewise.
5301 (cgraph_decide_inlining_incrementally): Likewise; honor
5302 PARAM_EARLY_INLINING_INSNS.
5303 (likely_eliminated_by_inlining_p): New predicate.
5304 (estimate_function_body_sizes): New function.
5305 (compute_inline_parameters): Use it.
5306 * except.c (must_not_throw_labels): New function.
5307 * except.h (must_not_throw_labels): Declare.
5308 * tree-inline.c (init_inline_once): Kill inlining_weigths
5309 * tree-ssa-structalias.c: Avoid uninitialized warning.
5310 * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
5311 (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
5312 (PARAM_INLINE_CALL_COST): Remove.
5313 (PARAM_EARLY_INLINING_INSNS): New.
5314 doc/invoke.texi (max-inline-insns-auto, early-inlining-insns): Update.
5315 (inline-call-cost): Remove.
5316 (early-inlining-insns): New.
5318 2009-05-15 Eric Botcazou <ebotcazou@adacore.com>
5320 * dbxout.c (dbxout_range_type): Add LOW and HIGH parameters. Use them
5322 (print_int_cst_bounds_in_octal_p): Likewise.
5323 (dbxout_type): Adjust calls to above functions. Be prepared to deal
5325 * dwarf2out.c (base_type_die): Likewise.
5326 (is_subrange_type): Delete.
5327 (subrange_type_die): Add LOW and HIGH parameters. Use them for bounds.
5328 (modified_type_die): Call subrange_type_for_debug_p on subtypes.
5329 * fold-const.c (fold_truth_not_expr) <CONVERT_EXPR>: Do not strip it
5330 if the destination type is boolean.
5331 (build_range_check): Do not special-case subtypes.
5332 (fold_sign_changed_comparison): Likewise.
5333 (fold_unary): Likewise.
5334 * langhooks-def.h (LANG_HOOKS_GET_SUBRANGE_BOUNDS): Define.
5335 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_GET_SUBRANGE_BOUNDS.
5336 * langhooks.h (lang_hooks_for_types): Add get_subrange_bounds.
5337 * tree.c (subrange_type_for_debug_p): New predicate based on the
5338 former is_subrange_type.
5339 * tree.h (subrange_type_for_debug_p): Declare.
5340 * tree-chrec.c (avoid_arithmetics_in_type_p): Delete.
5341 (convert_affine_scev): Remove call to above function.
5342 (chrec_convert_aggressive): Likewise.
5343 * tree-ssa.c (useless_type_conversion_p_1): Do not specifically return
5344 false for conversions involving subtypes.
5345 * tree-vrp.c (vrp_val_max): Do not special-case subtypes.
5346 (vrp_val_min): Likewise.
5347 (needs_overflow_infinity): Likewise.
5348 (extract_range_from_unary_expr): Likewise.
5350 2009-05-15 Paolo Bonzini <bonzini@gnu.org>
5352 * config/frv/frv.h: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
5353 * config/frv/frv.c: Likewise.
5354 * config/s390/s390.c: Likewise.
5355 * config/sparc/sparc.h: Likewise.
5356 * config/i386/i386.h: Likewise.
5357 * config/i386/i386.c: Likewise.
5358 * config/crx/crx.c: Likewise.
5359 * config/m68hc11/m68hc11.h: Likewise.
5360 * config/iq2000/iq2000.c: Likewise.
5361 * config/mn10300/mn10300.h: Likewise.
5362 * config/mn10300/mn10300.c: Likewise.
5363 * config/m68k/m68k.c: Likewise.
5364 * config/rs6000/rs6000.c: Likewise.
5365 * config/rs6000/xcoff.h: Likewise.
5366 * config/rs6000/linux64.h: Likewise.
5367 * config/rs6000/sysv4.h: Likewise.
5368 * config/score/score3.c: Likewise.
5369 * config/score/score7.c: Likewise.
5370 * config/score/score.c: Likewise.
5371 * config/arm/arm.md: Likewise.
5372 * config/mips/mips.c: Likewise.
5373 * config/mips/mips.md: Likewise.
5374 * config/bfin/bfin.h: Likewise.
5375 * config/pa/pa.c: Likewise.
5376 * config/pa/constraints.md: Likewise.
5378 * config/pdp11/pdp11-protos.h (legitimate_address_p): Delete.
5379 * config/pdp11/pdp11.c (legitimate_address_p): Delete.
5380 * config/pdp11/pdp11.h: Use memory_address_p instead.
5382 2009-05-14 Ian Lance Taylor <iant@google.com>
5384 * passes.c (finish_optimization_passes): Change i to int.
5385 * plugin.c (plugins_active_p): Change event to int.
5386 (dump_active_plugins): Likewise.
5387 * reginfo.c (invalid_mode_change_p): Change to to unsigned int.
5389 * tree.c (tree_range_check_failed): Change c to unsigned int.
5390 (omp_clause_range_check_failed): Likewise.
5391 (build_common_builtin_nodes): Change mode to int. Add cast.
5392 * config/ia64/ia64.c (is_emitted): Change r to unsigned int.
5393 (ia64_hard_regno_rename_ok, ia64_eh_uses): Likewise.
5395 * c-typeck.c (build_unary_op): If -Wc++-compat, warn about using
5396 ++ or -- with a variable of enum type.
5398 2009-05-14 Steven Bosscher <steven@gcc.gnu.org>
5401 * opts.c (common_handle_option): Add OPT_fcse_skip_blocks as a no-op.
5403 2009-05-14 Steven Bosscher <steven@gcc.gnu.org>
5405 * store-motion.c: Do not include params.h
5406 * Makefile.in: Fix dependencies for various files.
5408 2009-05-14 Steven Bosscher <steven@gcc.gnu.org>
5410 * auto-inc-dec.c: Fix pass description, remove apparent
5411 accidental duplication.
5413 2009-05-14 H.J. Lu <hongjiu.lu@intel.com>
5416 * ipa-utils.h (memory_identifier_string): Moved to ...
5417 * tree.h (memory_identifier_string): Here. Add GTY(()).
5419 2009-05-14 Paolo Bonzini <bonzini@gnu.org>
5421 * doc/tm.texi (TARGET_LEGITIMATE_ADDRESS_P): Refer mainly to this
5422 in the former documentation of...
5423 (GO_IF_LEGITIMATE_ADDRESS): ... this.
5424 * ira-conflicts.c (get_dup_num): Use address_operand.
5425 * targhooks.c (default_legitimate_address_p): New.
5426 * targhooks.h (default_legitimate_address_p): New.
5427 * reload.c (strict_memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]:
5429 * recog.c (memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]: Call hook.
5430 * target.h (struct target): Add legitimate_address_p.
5431 * target-def.h (TARGET_LEGITIMATE_ADDRESS_P): New.
5432 (TARGET_INITIALIZER): Include it.
5434 * config/alpha/alpha.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
5435 * config/alpha/alpha-protos.h (alpha_legitimate_address_p): Remove.
5436 * config/alpha/alpha.c (alpha_legitimate_address_p): Make static.
5437 (TARGET_LEGITIMATE_ADDRESS_P): New.
5439 * config/frv/frv.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
5440 (REG_OK_STRICT_P): Delete.
5441 * config/frv/frv-protos.h (frv_legitimate_address_p): Rename to...
5442 (frv_legitimate_address_p_1): ... this.
5443 * config/frv/frv.c (frv_legitimate_address_p): Forward to...
5444 (frv_legitimate_address_p_1): ... the renamed old
5445 frv_legitimate_address_p.
5446 * config/frv/predicates.md: Adjust calls to frv_legitimate_address_p.
5447 (TARGET_LEGITIMATE_ADDRESS_P): New.
5449 * config/s390/s390.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
5450 * config/s390/s390-protos.h (legitimate_address_p): Remove.
5451 * config/s390/s390.c (legitimate_address_p): Rename to...
5452 (s390_legitimate_address_p): ... this, make static.
5453 (legitimize_address): Adjust call.
5454 (TARGET_LEGITIMATE_ADDRESS_P): New.
5455 * config/s390/constraints.md ("e"): Call strict_memory_address_p.
5457 * config/m32c/m32c.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
5458 * config/m32c/m32c-protos.h (m32c_legitimate_address_p): Remove.
5459 * config/m32c/m32c.c (m32c_legitimate_address_p): Make static.
5460 (TARGET_LEGITIMATE_ADDRESS_P): New.
5462 * config/spu/spu.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
5463 * config/spu/spu-protos.h (spu_legitimate_address): Remove.
5464 * config/spu/spu.c (spu_legitimate_address): Rename to...
5465 (spu_legitimate_address_p): ... this, make static.
5466 (TARGET_LEGITIMATE_ADDRESS_P): New.
5468 * config/sparc/sparc.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
5469 * config/sparc/sparc-protos.h (legitimate_address_p): Remove.
5470 * config/sparc/sparc.c (legitimate_address_p): Rename to...
5471 (sparc_legitimate_address_p): ... this, make static and return bool.
5472 (legitimize_address): Adjust call.
5473 (TARGET_LEGITIMATE_ADDRESS_P): New.
5475 * config/i386/i386.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
5476 * config/i386/i386-protos.h (legitimate_address_p): Remove.
5477 * config/i386/i386.c (legitimate_address_p): Rename to...
5478 (ix86_legitimate_address_p): ... this, make static.
5479 (constant_address_p): Move after it, adjust call.
5480 (TARGET_LEGITIMATE_ADDRESS_P): New.
5482 * config/avr/avr.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
5483 * config/avr/avr-protos.h (legitimate_address_p): Remove.
5484 * config/avr/avr.c (legitimate_address_p): Rename to...
5485 (avr_legitimate_address_p): ... this, make static.
5486 (legitimize_address): Adjust call.
5487 (TARGET_LEGITIMATE_ADDRESS_P): New.
5489 * config/crx/crx.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
5490 * config/crx/crx-protos.h (crx_legitimate_address_p): Remove.
5491 * config/crx/crx.c (crx_legitimate_address_p): Make static.
5492 (TARGET_LEGITIMATE_ADDRESS_P): New.
5494 * config/xtensa/xtensa.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
5495 * config/xtensa/xtensa-protos.h (xtensa_legitimate_address_p): Remove.
5496 * config/xtensa/xtensa.c (xtensa_legitimate_address_p): Make static.
5497 (TARGET_LEGITIMATE_ADDRESS_P): New.
5499 * config/stormy16/stormy16.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
5500 * config/stormy16/stormy16-protos.h (xstormy16_legitimate_address_p):
5502 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
5504 (TARGET_LEGITIMATE_ADDRESS_P): New.
5506 * config/m68hc11/m68hc11.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
5507 * config/m68hc11/m68hc11-protos.h (m68hc11_go_if_legitimate_address):
5509 * config/m68hc11/m68hc11.c (m68hc11_go_if_legitimate_address):
5511 (m68hc11_legitimate_address_p): ... this, make static.
5512 (go_if_legitimate_address_internal): Rename to...
5513 (m68hc11_legitimate_address_p_1): ... this.
5514 (legitimize_address): Adjust call.
5515 (TARGET_LEGITIMATE_ADDRESS_P): New.
5517 * config/iq2000/iq2000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
5518 * config/iq2000/iq2000-protos.h (iq2000_legitimate_address_p): Remove.
5519 * config/iq2000/iq2000.c (iq2000_legitimate_address_p): Make static.
5520 (TARGET_LEGITIMATE_ADDRESS_P): New.
5522 * config/mn10300/mn10300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
5523 * config/mn10300/mn10300-protos.h (legitimate_address_p): Remove.
5524 * config/mn10300/mn10300.c (legitimate_address_p): Rename to...
5525 (mn10300_legitimate_address_p): ... this, make static.
5526 (TARGET_LEGITIMATE_ADDRESS_P): New.
5528 * config/m68k/m68k.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
5529 * config/m68k/m68k-protos.h (m68k_legitimate_address_p): Remove.
5530 * config/m68k/m68k.c (m68k_legitimate_address_p): Make static.
5531 (TARGET_LEGITIMATE_ADDRESS_P): New.
5533 * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
5534 (REG_OK_STRICT_FLAG, REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Delete.
5535 (INT_REG_OK_FOR_BASE_P, INT_REG_OK_FOR_INDEX_P): Move above.
5536 * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
5537 * config/rs6000/rs6000-protos.h (rs6000_legitimate_address): Remove.
5538 * config/rs6000/rs6000.c (rs6000_legitimate_address): Rename to...
5539 (rs6000_legitimate_address_p): ... this, make static.
5540 (TARGET_LEGITIMATE_ADDRESS_P): New.
5541 (REG_MODE_OK_FOR_BASE_P): Delete.
5542 (rs6000_legitimize_reload_address): Use INT_REG_OK_FOR_BASE_P.
5544 * config/picochip/picochip.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
5545 * config/picochip/picochip-protos.h (picochip_legitimate_address_p):
5547 * config/picochip/picochip.c (picochip_legitimate_address_p): Make
5548 static, adjust types.
5549 (TARGET_LEGITIMATE_ADDRESS_P): New.
5551 * config/score/score.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
5552 * config/score/score.c (score_address_p): Rename to...
5553 (score_legitimate_address_p): ... this.
5554 (TARGET_LEGITIMATE_ADDRESS_P): New.
5555 * config/score/score3.c (score3_address_p): Rename to...
5556 (score3_legitimate_address_p): ... this.
5557 * config/score/score7.c (score7_address_p): Rename to...
5558 (score7_legitimate_address_p): ... this.
5560 * config/arm/arm.h (ARM_GO_IF_LEGITIMATE_ADDRESS,
5561 THUMB2_GO_IF_LEGITIMATE_ADDRESS, THUMB1_GO_IF_LEGITIMATE_ADDRESS,
5562 GO_IF_LEGITIMATE_ADDRESS): Delete.
5563 * config/arm/arm-protos.h (thumb1_legitimate_address_p,
5564 thumb2_legitimate_address_p): Delete.
5565 (arm_legitimate_address_p): Rename to...
5566 (arm_legitimate_address_outer_p): ... this.
5567 * config/arm/constraints.md ("Uq"): Adjust call.
5568 * config/arm/predicates.md (arm_extendqisi_mem_op): Likewise.
5569 * config/arm/arm.c (arm_legitimate_address_p): New, rename old one
5571 (arm_legitimate_address_outer_p): ... this.
5572 (thumb1_legitimate_address_p, thumb2_legitimate_address_p): Make
5574 (TARGET_LEGITIMATE_ADDRESS_P): New.
5576 * config/mips/mips.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
5577 * config/mips/mips-protos.h (mips_legitimate_address_p): Remove.
5578 * config/mips/mips.c (mips_legitimate_address_p): ... Make static.
5579 (TARGET_LEGITIMATE_ADDRESS_P): New.
5581 * config/vax/vax.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
5582 * config/vax/vax-protos.h (legitimate_address_p): Remove.
5583 * config/vax/vax.c (legitimate_address_p): Rename to...
5584 (vax_legitimate_address_p): ... this, make static.
5585 (TARGET_LEGITIMATE_ADDRESS_P): New.
5587 * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
5588 * config/h8300/h8300-protos.h (h8300_legitimate_address_p): Remove.
5589 * config/h8300/h8300.c (h8300_legitimate_address_p): ... Make static.
5590 (TARGET_LEGITIMATE_ADDRESS_P): New.
5592 * config/mmix/mmix.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
5593 * config/mmix/mmix-protos.h (mmix_legitimize_address): Remove.
5594 * config/mmix/mmix.c (mmix_legitimate_address): Rename to...
5595 (mmix_legitimate_address_p): ... this, make static.
5596 (TARGET_LEGITIMATE_ADDRESS_P): New.
5598 * config/bfin/bfin.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
5599 * config/bfin/bfin-protos.h (bfin_legitimate_address_p): Remove.
5600 * config/bfin/bfin.c (bfin_legitimate_address_p): ... Make static.
5601 (TARGET_LEGITIMATE_ADDRESS_P): New.
5603 2009-05-14 Paolo Bonzini <bonzini@gnu.org>
5605 * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Remove handling
5606 of MODE_COMPLEX_INT.
5608 2009-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5610 * config/alpha/alpha.c (alpha_initialize_trampoline): Change 0 to
5611 LCT_NORMAL in function call.
5612 * mips-tdump.c (print_file_desc): Add cast to enum type.
5613 * mips-tfile.c (add_ext_symbol): Add casts to enum types.
5614 (mark_stabs): Add casts to enum types.
5615 (parse_stabs_common): Add casts to enum types.
5617 2009-05-13 Adam Nemet <anemet@caviumnetworks.com>
5619 * config/mips/mips.c (mips_print_operand) <REG, MEM, default>:
5620 Check for invalid values of LETTER.
5622 2009-05-13 Taras Glek <tglek@mozilla.com>
5624 * attribs.c (register_attribute): moved out attribute registration
5625 into register_attribute.
5626 * doc/plugins.texi: Documented register_attribute and
5628 * gcc-plugin.h: Added forward decl for register_attribute.
5629 * gcc-plugin.h (plugins_event): Added PLUGIN_ATTRIBUTES.
5630 * plugin.c (register_callback, invoke_plugin_callbacks): Added
5631 PLUGIN_ATTRIBUTES boilerplate.
5633 2009-05-14 Dave Korn <dave.korn.cygwin@gmail.com>
5635 * config/i386/msformat-c.c (ms_printf_length_specs): Use enumeration
5636 values even in sentinel and empty entries.
5637 (ms_printf_flag_specs): Likewise.
5638 (ms_scanf_flag_specs): Likewise.
5639 (ms_strftime_flag_specs): Likewise.
5640 (ms_print_char_table): Likewise.
5641 (ms_scan_char_table): Likewise.
5642 (ms_time_char_table): Likewise.
5644 2009-05-13 Doug Kwan <dougkwan@google.com>
5646 * tree-ssa-sccvn.c (compare_ops): Stabilize qsort.
5648 2009-05-13 Adam Nemet <anemet@caviumnetworks.com>
5650 * config/mips/mips.md (store): Add attributes for QI and HI.
5652 (truncdisi2, truncdihi2, truncdiqi2): Merge these into ...
5653 (truncdi<mode>2): ... this new pattern.
5655 2009-05-13 Brad Hards <bradh@kde.org>
5657 * Makefile.in (TEXI_GCCINT_FILES): Add plugins.texi.
5659 2009-05-14 Jakub Jelinek <jakub@redhat.com>
5660 Ben Elliston <bje@au.ibm.com>
5663 * dse.c (check_mem_read_rtx): Guard against width == -1.
5665 2009-05-13 Michael Matz <matz@suse.de>
5668 * tree-outof-ssa.c (maybe_renumber_stmts_bb): New function.
5669 (trivially_conflicts_p): New function.
5670 (insert_backedge_copies): Use it.
5672 2009-05-13 Janis Johnson <janis187@us.ibm.com>
5674 * c-pragma.c (enum pragma_switch_t): Prefix constants with PRAGMA_.
5675 (handle_stdc_pragma): Use new enum constant names.
5676 (handle_pragma_float_const_decimal64): Ditto.
5678 2009-05-13 Ian Lance Taylor <iant@google.com>
5680 * Makefile.in (build/gencheck.o): Depend upon all-tree.def, not
5683 2009-05-13 Nathan Sidwell <nathan@codesourcery.com>
5685 * config/m68k/t-uclinux (M68K_MLIB_CPU): Check for FL_UCLINUX.
5686 * config/m68k/m68k-devices.def: Add FL_UCLINUX to 68020 and 54455
5688 * config/m68k/m68k.h (FL_UCLINUX): Define.
5690 2009-05-13 Jan Hubicka <jh@suse.cz>
5692 * options.c (gfc_post_options): -fwhole-program imply -fwhole-file.
5694 2009-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
5696 * config/sh/sh.h (OVERRIDE_OPTIONS): Clear flag_schedule_insns
5697 unless -fschedule-insns is specified.
5699 2009-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
5702 * config/sh/sh.h (OPTIMIZATION_OPTIONS): Don't set
5703 TARGET_EXPAND_CBRANCHDI4.
5704 * config/sh/sh.md (cbranchdi4): Don't check TARGET_EXPAND_CBRANCHDI4.
5705 * config/sh/sh.opt (mexpand-cbranchdi): Remove.
5706 (cmpeqdi): Fix comment.
5708 2009-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
5710 * config/sh/sh-protos.h (sh_legitimate_index_p): Declare.
5711 (sh_legitimate_address_p): Likewise.
5712 * config/sh/sh.c (sh_legitimate_index_p): New.
5713 (sh_legitimate_address_p): Likewise.
5714 * config/sh/sh.h (REG_OK_FOR_BASE_P): Add STRICT parameter.
5715 (REG_OK_FOR_INDEX_P, SUBREG_OK_FOR_INDEX_P): Likewise.
5716 (MODE_DISP_OK_4, MODE_DISP_OK_8): Remove.
5717 (MAYBE_BASE_REGISTER_RTX_P): New macro.
5718 (MAYBE_INDEX_REGISTER_RTX_P): Likewise.
5719 (BASE_REGISTER_RTX_P): Use MAYBE_BASE_REGISTER_RTX_P.
5720 (INDEX_REGISTER_RTX_P): Use MAYBE_INDEX_REGISTER_RTX_P.
5721 (GO_IF_LEGITIMATE_INDEX): Use sh_legitimate_index_p.
5722 (GO_IF_LEGITIMATE_ADDRESS): Use sh_legitimate_address_p.
5724 2009-05-12 Jan Hubicka <jh@suse.cz>
5726 * tree-inline.c (estimate_operator_cost): Add operands;
5727 when division happens by constant, it is cheap.
5728 (estimate_num_insns): Loads and stores are not having cost of 0;
5729 EH magic stuff is cheap; when computing runtime cost of switch,
5730 use log2 base of amount of its cases; builtin_expect has cost of 0;
5731 compute cost for moving return value of call.
5732 (init_inline_once): Initialize time_based flags.
5733 * tree-inline.h (eni_weights_d): Add time_based flag.
5735 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
5737 * df-core.c: Update head documentation.
5739 2009-05-12 Michael Meissner <meissner@linux.vnet.ibm.com>
5742 * rs6000.c (rs6000_generate_compare): Use op1b instead of
5743 shadowing exisiting variable op1.
5745 2009-05-12 Uros Bizjak <ubizjak@gmail.com>
5748 * config/i386/driver-i386.c (processor_signatures): New enum.
5749 (SIG_GEODE): Move from vendor_signatures to processor_signatures.
5750 (host_detect_local_cpu): For SIG_AMD vendor, check for SIG_GEODE
5751 processor signature to detect geode processor.
5753 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
5757 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
5759 * optabs.c (prepare_cmp_insn): Temporarily disable test that
5760 causes spurious differences between trunk and cond-optab branch.
5762 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
5764 * dojump.c (compare_from_rtx): Delete.
5765 * expmed.c (emit_store_flag): Only try cstore_optab. Canonicalize
5766 any MODE_CC mode to the cstorecc4 pattern. Use prepare_operand, fail
5767 if the comparison does not satisfy the predicate; test predicates for
5768 operands 2 and 3 of a cstore pattern. Don't try cstore optab
5769 further if one existing pattern fails.
5770 * expr.h (compare_from_rtx): Delete.
5771 (prepare_operand): Declare it.
5772 * optabs.c: Change "lib call" to "libcall" throughout.
5773 (bcc_gen_fctn, setcc_gen_code, trap_rtx,
5774 HAVE_conditional_trap, emit_cmp_insn): Delete.
5775 (can_compare_p): Delete cmp_optab case.
5776 (prepare_float_lib_cmp): Return an rtx and a machine mode.
5777 Accept other parameters by value.
5778 (prepare_operand): Make non-static.
5779 (prepare_cmp_insn): Return an rtx and a machine mode. Accept
5780 other parameters by value. Try to widen operands here based on
5781 an optab_methods argument and looking at cbranch_optab.
5782 (emit_cmp_and_jump_insn_1): Accept test and mode, remove widening
5783 loop. Use cbranch_optab directly.
5784 (emit_cmp_and_jump_insns): Fix comment. Adjust call to
5785 prepare_cmp_insn and emit_cmp_and_jump_insn_1, remove obsolete
5787 (emit_conditional_move, emit_conditional_add): Inline what's needed
5788 of compare_from_rtx, using new prepare_cmp_insn for the rest.
5789 (init_optabs): Init cmp_optab with UNKNOWN, cbranch_optab
5790 with COMPARE. Move cmov_optab and cstore_optab above
5791 with cbranch_optab, move cmp_optab down with ucmp_optab,
5792 remove tst_otpab. Do not initialize trap_rtx.
5793 (gen_cond_trap): Do it here. Use ctrap_optab. Test predicate
5794 for trap code. Do not check HAVE_conditional_trap. Use
5795 prepare_cmp_insn. Accept no predicate for operand 3.
5796 * optabs.h (OTI_cmp): Mark as used only for libcalls.
5797 (OTI_ctrap, ctrap_optab): New.
5798 (tst_optab): Delete.
5799 (bcc_gen_fctn, setcc_gen_code, emit_cmp_insn): Delete.
5800 * ifcvt.c (find_if_header): Replace HAVE_conditional_trap
5801 with lookup of ctrap_optab.
5802 * genopinit.c (cmp_optab, tst_optab, bcc_gen_fctn, setcc_gen_code):
5806 * combine.c (combine_simplify_rtx, simplify_set): Do not
5807 special case comparing against zero for cc0 machines.
5808 * simplify-rtx.c (simplify_binary_operation_1): Never remove
5809 COMPARE on cc0 machines.
5810 (simplify_relational_operation): Return a new expression when
5811 a COMPARE could be removed.
5812 * final.c (final_scan_insn): Compare cc_status values
5813 against LHS of a (compare FOO (const_int 0)) cc0 source.
5814 Also check if cc_status.value is the full compare.
5816 * doc/md.texi (bCC, sCC, tstMM, cmpMM): Delete.
5817 (cstoreMM4): Document.
5818 (conditional_trap): Document ctrapMM4 instead.
5819 (sync_compare_and_swapMM): Refer to cbranchcc4.
5820 (Dependent Patterns): Eliminate obsolete information referring to
5821 the old jump optimization phase.
5822 (Canonicalization): Include cbranchcc4 case, omit canonicalization
5823 of compares with 0 on cc0 machines.
5824 (Jump Patterns): Refer to MODE_CC jump patterns preferably,
5825 avoiding references to cc0. Remove text about storing operands
5827 * doc/tm.texi (Condition Codes): Include blurb on different
5828 condition code representations, separate into subsections for
5829 CC0, MODE_CC and conditional execution.
5831 * config/alpha/alpha-protos.h (alpha_emit_conditional_branch,
5832 alpha_emit_setcc): Accept operands and a machine mode.
5833 * config/alpha/alpha.c (alpha_emit_conditional_branch):
5834 Get code/op0/op1 from operands, use machine mode argument
5835 instead of alpha_compare.fp_p. Emit the branch here.
5836 (alpha_emit_setcc): Likewise, and return boolean.
5837 (alpha_emit_conditional_move): Likewise. Assert that
5838 cmp_op_mode == cmp_mode, and simplify accordingly.
5839 * config/alpha/alpha.h (struct alpha_compare, alpha_compare): Delete.
5840 * config/alpha/alpha.md (cmpdf, cmptf, cmpdi, bCC, sCC): Delete.
5841 (cbranchdf4, cbranchtf4, cbranchdi4, cstoredf4, cstoretf4,cstoredi4):
5843 (stack probe test): Use cbranchdi4.
5844 * config/alpha/predicates.md (alpha_cbranch_operator): New.
5846 * config/arc/arc.c (gen_compare_reg): Do not emit cmp.
5847 * config/arc/arc.h (movsicc, movsfcc): Use it.
5848 (movdicc, *movdicc_insn, movdfcc, *movdfcc_insn): Remove.
5849 (cbranchsi4, cstoresi4): New.
5850 (cmpsi, bCC and sCC expanders): Remove.
5852 * config/arm/arm.c (arm_compare_op0, arm_compare_op1): Delete.
5853 * config/arm/arm.h (arm_compare_op0, arm_compare_op1): Delete.
5854 * config/arm/predicates.md (arm_comparison_operator): Only include
5855 floating-point operators if there is a hardware floating-point unit.
5856 * config/arm/arm.md (cbranchsi4, cstoresi4): Enable for TARGET_32BIT,
5857 deferring to cbranch_cc and cstore_cc respectively.
5858 (cbranchsf4, cbranchdf4, cbranchdi4, cstoresf4, cstoredf4, cstoredi4,
5859 cbranch_cc, cstore_cc): New.
5860 (movsicc, movsfcc, movdfcc): Do not use arm_compare_op0 and
5862 (bCC, sCC, cmpsi, cmpsf, cmpdf, cmpdi): Delete.
5864 * config/avr/avr-protos.h (out_tstsi, out_tsthi): Adjust prototype.
5865 * config/avr/avr.c (out_tstsi, out_tsthi): Get the tested operand
5867 (adjust_insn_length): Adjust calls.
5868 (avr_reorg): Handle (compare (foo) (const_int 0)).
5869 * config/avr/avr.md (tstqi, tsthi, tstsi): Remove.
5870 (*negated_tstqi, *negated_tsthi, *negated_tstsi): Unmacroize.
5871 (*reversed_tsthi, *reversed_tstsi): Add a scratch for simplicity.
5872 (cmpqi, cmphi, cmpsi): Prepend asterisk, fuse tst[qhs]i here.
5874 (cbranchqi4, cbranchhi4, cbranchsi4): New.
5875 (tst -> sbrc/sbrs peephole2, cpse peephole): Wrap RHS with COMPARE.
5877 * config/bfin/bfin.md (cmpbi, cmpsi, bCC, sCC): Delete.
5878 (cbranchsi4, cstorebi4, cstoresi4): New.
5879 (movbisi): This insn is duplicate, split it to zero_extend.
5880 * config/bfin/bfin.c (bfin_compare_op0, bfin_compare_op1): Delete
5881 (bfin_gen_compare): Do not use them. Emit VOIDmode SET, not BImode.
5882 (bfin_optimize_loop): Use cbranch expander.
5883 * config/bfin/bfin.h (bfin_compare_op0, bfin_compare_op1): Delete.
5884 * config/bfin/predicates.md (bfin_cbranch_operator): Rename to...
5885 (bfin_bimode_comparison_operator): ... this.
5886 (bfin_direct_comparison_operator): New.
5888 * config/cris/cris.c (cris_normal_notice_update_cc): Look
5889 inside (compare FOO (const_int 0)).
5890 (cris_rtx_costs): Handle ZERO_EXTRACT.
5891 * config/cris/cris.md (tstdi, tst<mode>, cmpdi): Delete.
5892 (*tstdi_non_v32): Fold in *cmpdi_non_v32.
5893 (*tstdi_v32): Delete.
5894 (*cmpdi_non_v32): Add M alternative for operand 1.
5895 (cmpsi, cmp<mode>): Make private.
5896 (*tstsi, *tst<mode>_cmp, *tst<mode>_non_cmp, *btst): Wrap LHS
5898 (cbranch<mode>4, cbranchdi4, cstore<mode>4): New.
5900 * config/crx/crx.md (cstore<mode>4, cbranchcc4): New.
5901 (cmp<mode>, bCOND_internal, b<code>, s<code>): Delete.
5902 (cbranch<mode>4, sCOND_internal): Use ordered_comparison_operator.
5903 (cc_reg_operand): New.
5905 * config/crx/crx.c (crx_compare_op0, crx_compare_op1,
5906 crx_expand_compare, crx_expand_branch, crx_expand_scond): Delete.
5907 * config/crx/crx.h (crx_compare_op0, crx_compare_op1): Delete.
5908 * config/crx/crx-protos.h (crx_expand_compare, crx_expand_branch,
5909 crx_expand_scond): Delete.
5911 * config/fr30/fr30.md (cmp<mode>, bCC): Delete.
5913 * config/fr30/fr30.c (fr30_compare_op0, fr30_compare_op1): Delete
5914 * config/fr30/fr30.h (fr30_compare_op0, fr30_compare_op1): Delete.
5916 * config/frv/frv.md (cbranchsi4, cbranchsf4, cbranchdf4,
5917 cstoresi4, cstoresf4, cstoredf4): New.
5918 (cmpdi, cmpsi, cmpsf, cmpdf, bCC, sCC): Remove.
5919 * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
5920 Receive the entire operands array.
5921 * config/frv/frv.h (frv_compare_op0, frv_compare_op1): Delete.
5922 * config/frv/frv.c (frv_compare_op0, frv_compare_op1): Delete.
5923 * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
5924 Get test/op0/op1 from the operands array.
5925 (frv_emit_cond_move): Get test/op0/op1 from the test_rtx.
5927 * config/h8300/h8300-protos.h (h8300_expand_branch): Accept operands.
5928 (h8300_expand_store): New.
5929 * config/h8300/h8300.c (h8300_rtx_costs): Handle (compare FOO
5931 (h8300_expand_branch): Emit compare here. Adjust for new arguments.
5932 (h8300_expand_store): New.
5933 * config/h8300/h8300.md (btst combine patterns): Wrap with COMPARE
5934 or do not try to produce (set (cc0) REG).
5935 (peepholes): Wrap arguments with COMPARE. Add a peephole to
5936 change a compare into a move to a scratch register. Disable some
5937 peepholes when comparing with zero.
5938 (tstsi, tsthi, tstsi, cmpqi): Make private.
5941 (cbranchqi4, cbranchhi4, cbranchsi4, cstoreqi4, cstorehi4,
5944 * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_int_addcc,
5945 ix86_expand_fp_movcc): Set ix86_compare_op0 and ix86_compare_op1.
5946 (ix86_emit_i387_log1p): Use gen_cbranchxf4.
5947 (ix86_emit_i387_log1p): Use cbranchxf2.
5948 (ix86_expand_setcc): Return void.
5949 * config/i386/i386-protos.h (ix86_expand_setcc): Return void.
5950 * config/i386/i386.md (cmpti, cmpdi, cmpsi, cmphi, cmpqi, cmpxf,
5951 cmp<MODEF>, cmpcc): Remove.
5952 (cbranchti4, cbranchdi4, cbranchsi4, cbranchhi4, cbranchqi4,
5953 cbranchxf4, cbranch<MODEF>4, cbranchcc4, cstoredi4, cstoresi4,
5954 cstorehi4, cstoreqi4, cstorexf4, cstore<MODEF>4, cstorecc): New.
5955 (sCC and bCC expanders): Remove.
5956 (stack_protect_test): Use cbranchcc4.
5958 * config/ia64/ia64-protos.h (ia64_compare_op0, ia64_compare_op1):
5960 (ia64_expand_compare): Accept three rtx by reference and return void.
5961 * config/ia64/ia64.c (ia64_compare_op0, ia64_compare_op1): Delete.
5962 (ia64_expand_compare): Replace op0/op1 with *op0/*op1. Get code
5963 from *expr. Update *expr with the BImode comparison to do.
5964 * config/ia64/ia64.md (cmpbi, cmpsi, cmpdi, cmpsf, cmpdf, cmpxf,
5965 cmptf, bCC, sCC, conditional_trap): Delete.
5966 (cbranchbi4, cbranchsi4, cbranchdi4, cbranchsf4, cbranchdf4,
5967 cbranchxf4, cbranchtf4, cstorebi4, cstoresi4, cstoredi4, cstoresf4,
5968 cstoredf4, cstorexf4, cstoretf4, ctrapbi4, ctrapsi4, ctrapdi4,
5969 ctrapsf4, ctrapdf4, ctrapxf4, ctraptf4): New.
5970 * config/ia64/predicates.md (ia64_cbranch_operator): New.
5972 * config/iq2000/iq2000-protos.h (gen_conditional_branch): Change
5973 type of last argument.
5974 * config/iq2000/iq2000.c (branch_cmp, branch_type): Remove.
5975 (gen_conditional_branch): Get code/cmp0/cmp1 from operands,
5976 use machine mode argument instead of branch_type. Remove dead
5977 code for floating-point comparisons.
5978 * config/iq2000/iq2000.h (branch_cmp, branch_type): Remove.
5979 * config/iq2000/iq2000.md (cmpsi, cmpdi, cmpsf, cmpdf, tstsi, bCC):
5981 (cbranchsi4, cstoresi4): New.
5982 * config/iq2000/predicates.md (reg_or_const_operand): New.
5984 * config/m32c/m32c.md (cbranch splitter): Use match_op_dup.
5985 * config/m32c/m32c.md (any_cond, gl_cond): Delete.
5986 (b<code>_op): Rewrite to...
5987 (bcc_op): ... this, using match_operator.
5988 (s<code>_op): Rewrite to...
5989 (scc_op): ... this, using match_operator.
5990 (s<code>_24_op): Rewrite to...
5991 (scc_op_24): ... this, using match_operator.
5992 (s<code>_<mode>): Rewrite to...
5993 (cstore<mode>4): ... this, using match_operator.
5994 (s<code>_<mode>_24): Rewrite to...
5995 (cstore<mode>4_24): ... this, using match_operator.
5996 * config/m32c/m32c-protos.h (m32c_cmp_flg_0, m32c_pend_compare,
5997 m32c_unpend_compare, m32c_expand_scc): Delete.
5998 * config/m32c/m32c.c (compare_op0, compare_op1, m32c_cmp_flg_0,
5999 m32c_pend_compare, m32c_unpend_compare, m32c_expand_scc): Delete.
6000 (m32c_expand_movcc): Change NE to EQ if necessary.
6001 (m32c_init_libfuncs): Modify cstore optab instead of setcc_gen_code.
6003 * config/m32r/m32r-protos.h (gen_cond_store): New.
6004 * config/m32r/m32r.c (m32r_compare_op0, m32r_compare_op1): Delete.
6005 (gen_cond_store): New, from sCC patterns.
6006 (m32r_expand_block_move): Use cbranchsi4.
6007 * config/m32r/m32r.h (m32r_compare_op0, m32r_compare_op1): Delete.
6008 * config/m32r/m32r.md (cmpsi, bCC, sCC): Delete.
6009 (cbranchsi4, cstoresi4): New.
6011 * config/m68hc11/m68hc11.c (m68hc11_compare_op0, m68hc11_compare_op1):
6013 (m68hc11_rtx_costs_1, m68hc11_rtx_costs): Handle ZERO_EXTRACT.
6014 (m68hc11_notice_update_cc): Look into a compare with 0.
6015 * config/m68hc11/m68hc11.h (m68hc11_compare_op0, m68hc11_compare_op1):
6017 * config/m68hc11/m68hc11.md (tstsi, tsthi, tstqi, cmpsi,
6018 cmphi, cmpqi, bCC): Delete.
6019 (cbranchsi4, cbranchhi4, cbranchqi4): New.
6020 (tstqi_1, tstqi_z_used, tstqi_1, bitcmpqi, bitcmpqi_z_used,
6021 bitcmpqi_12, bitcmphi, various splits and peephole2s): Wrap cc0<-reg
6024 * config/m68k/predicates.md (m68k_cstore_comparison_operator,
6025 const0_operand, const1_operand, m68k_subword_comparison_operand): New.
6026 * config/m68k/constraints.md (H): New.
6027 * config/m68k/m68k.md (tstdi): Remove define_expand, use name for
6028 the define_insn below.
6029 (tstsi, tsthi, tst<FP:mode>, cmphi, cmpqi, cmp<FP:mode>): Delete.
6030 (*tstsi_internal_68020_cf, *tstsi_internal, *tsthi_internal,
6031 *tstqi_internal, tst<mode>_6881, tst<mode>_cf, many unnamed
6032 patterns): Wrap RHS with COMPARE.
6033 (tst<FP>_68881, tst<FP>_cf): Use const0_operand.
6034 (*cmpdi_internal): Name this pattern.
6035 (cmpdi): Change to define_insn.
6036 (cbranchdi4, cstoredi4, cbranchsi4, cstoresi4, cbranchhi4, cstorehi4,
6037 cbranchqi4, cstoreqi4, cbranch<FP:mode>4, cstore<FP:mode>4): New.
6038 (scc0_di, scc0_di_5200, scc_di): Use the ordered_comparison_operator
6040 (seq, sne, sgt, sgtu, slt, sltu, sge, sgeu, sle, sleu, sordered,
6041 sunordered, suneq, sunge, sungt, sunle, sunlt, sltgt): Delete
6042 (conditional_trap): Change to...
6043 (ctrapdi4, ctrapsi4, ctraphi4, ctrapqi4): ... these.
6044 (*conditional_trap): Use the ordered_comparison_operator and
6045 const1_operand predicates.
6046 * config/m68k/m68k.c (m68k_last_compare_had_fp_operands): Delete.
6047 (m68k_expand_prologue): Use ctrapsi4 instead of cmpsi+conditional_trap.
6048 (m68k_rtx_costs): Look for ZERO_EXTRACT in a COMPARE.
6049 * config/m68k/m68k.h (m68k_last_compare_had_fp_operands): Delete.
6051 * config/mcore/mcore-protos.h (arch_compare_op0, arch_compare_op1,
6052 mcore_modify_comparison, mcore_gen_compare_reg): Remove.
6053 (mcore_gen_compare): New.
6054 * config/mcore/mcore.c (arch_compare_op0, arch_compare_op1): Delete.
6055 (mcore_modify_comparison, mcore_gen_compare_reg): Fold into...
6056 (mcore_gen_compare): ... this.
6057 * config/mcore/mcore.md (cmpsi, bCC, sCC): Remove.
6058 (cbranchsi4, cstoresi4): New, using mcore_gen_compare.
6059 (stack probe pattern): Use cbranchsi4.
6061 * config/mips/predicates.md (mips_cstore_operator): New.
6062 * config/mips/mips-ps-3d.md (movv2sfcc): Do not use cmp_operands.
6063 * config/mips/mips.md (any_cond): Delete.
6064 (conditional_trap): Rename to ctrap<GPR:mode>4. Adjust predicates,
6066 (fixuns_truncdfsi2, fixuns_truncdfdi2, fixuns_truncsfsi2,
6067 fixuns_truncsfdi2): Use cbranch patterns.
6068 (cmp<GPR:mode>, cmp<SCALARF:mode>): Delete.
6069 (b<code>): Change to cbranch<GPR:mode>4 and cbranch<SCALARF:mode>4.
6070 Adjust call to mips_expand_conditional_branch.
6071 (seq, sne, slt<u>, sle<u>, sgt<u>, sge<u>): Change to
6073 * config/mips/mips-protos.h (mips_expand_conditional_branch,
6074 mips_expand_scc, mips_expand_conditional_trap): Adjust prototypes.
6075 * config/mips/mips.c (cmp_operands): Delete.
6076 (mips_emit_compare): Get comparison operands from *op0/*op1.
6077 (mips_expand_scc): Get code/op0/op1/target from operands. Assert
6078 that it succeeds. Use op0/op1 instead of cmp_operands.
6079 (mips_expand_conditional_branch, mips_expand_conditional_move,
6080 mips_expand_conditional_trap): Likewise.
6081 (mips_block_move_loop): Use cbranch patterns.
6082 * config/mips/mips.h (cmp_operands): Delete.
6084 * config/mmix/mmix.c (mmix_valid_comparison): Delete.
6085 (mmix_gen_compare_reg): Just return a register in the right CC mode.
6086 * config/mmix/mmix.h (mmix_compare_op0, mmix_compare_op1): New.
6087 * config/mmix/mmix.md (cmpdi, cmpdf): Remove.
6088 (*cmpcc_folded): Rename to...
6089 (*cmpdi_folded): this.
6090 (*cmpcc): Rename to...
6092 (movdfcc, movdicc): Adjust for new semantics of mmix_gen_compare_reg.
6095 (cbranchdf4): New. Handle invalid comparisons here.
6096 * config/mmix/predicates.md (float_comparison_operator): New.
6098 * config/mn10300/mn10300.c (mn10300_rtx_costs): Consider 0 and
6099 zero_extract to be cheap in (compare (zero_extract) (const_int 0).
6100 * config/mn10300/mn10300.md (tst): Delete.
6101 (*tst_extqisi_am33, *tst_extqisi, *tst_exthisi_am33, *tst_exthisi):
6102 Name these patterns and wrap RHS in a compare.
6103 (*cmpsi): Make this pattern private. Include tst.
6104 (*cmpsf): Make this pattern private.
6105 (and and zero_extract cc0 set): Wrap RHS in a COMPARE.
6106 (compare with zero peepholes): Likewise.
6108 (cbranchsi4, cbranchsf4): New.
6109 (casesi): Use cbranchsi4.
6111 * config/pa/pa.c (hppa_compare_op0, hppa_compare_op1,
6112 hppa_branch_type): Delete.
6113 (return_addr_rtx): Use cbranchsi4.
6114 (emit_bcond_fp): Accept all operands. Replace CODE with NE.
6115 Emit CCFPmode comparison here.
6116 (gen_cmp_fp): Delete, now part of emit_bcond_fp.
6117 * config/pa/pa.h (enum cmp_type, hppa_compare_op0, hppa_compare_op1,
6118 hppa_branch_type): Delete.
6119 * config/pa/pa.md (cmpdi, cmpsi, cmpsf, cmpdf, sCC, bCC): Delete.
6120 (movsicc, movdicc): Remove references to hppa_compare_op0,
6121 hppa_compare_op1 and compare_from_rtx.
6122 (cbranchdi4, cbranchsi4, cbranchsf4, cbranchdf4, cstoresi4): New.
6123 (casesi): Use cbranchsi4.
6125 * config/pdp11/pdp11-protos.h (output_jump): Change prototype.
6126 * config/pdp11/pdp11.c (output_jump): Embed opcodes here.
6127 * config/pdp11/pdp11.md (register_or_const0_operand): New.
6128 (cmpdf, cmphi, cmpqi): Make private. Add tst alternatives.
6129 (cmpsi, tstsi, tstdf, tsthi, tstqi): Delete.
6131 (cbranchdf4, cbranchhi4, cbranchqi4): New.
6132 (*branch, *branch_inverted): New.
6134 * config/picochip/picochip.md (cbranchhi4): Use
6135 ordered_comparison_operator.
6136 (cmphi, bCC): Remove.
6138 * config/rs6000/predicates.md (rs6000_cbranch_operator): New.
6139 (trap_comparison_operator): Delete.
6140 * config/rs6000/rs6000-protos.h (rs6000_emit_sCOND,
6141 rs6000_emit_cbranch): Accept mode and operands.
6142 * config/rs6000/rs6000.c (rs6000_compare_op0, rs6000_compare_op1,
6143 rs6000_compare_fp_p): Delete.
6144 (rs6000_generate_compare): Accept mode and comparison. Extract code
6145 and op0/op1 from there. Replace references to rs6000_compare_op0
6146 and rs6000_compare_op1.
6147 (rs6000_emit_sCOND): Adjust call to rs6000_generate_compare and
6148 extract result from passed operands.
6149 (rs6000_emit_cbranch): Adjust call to rs6000_generate_compare and
6150 extract loc from passed operands.
6151 (rs6000_emit_cmove): Likewise.
6152 * config/rs6000/rs6000.h (rs6000_compare_op0, rs6000_compare_op1,
6153 rs6000_compare_fp_p): Delete.
6154 * config/rs6000/rs6000.md (cmp<GPR>, cmp<FP>, bCC, sCC): Delete.
6155 (cbranch<GPR>4, cbranch<FP>4): New.
6156 (cstore<mode>4): New. Consolidate here all choices about when to use
6157 portable or specialized sCC sequences.
6158 (stack_protect_test): Use cbranchsi4.
6159 (conditional_trap): Replace with ctrap<GPR>4.
6160 (conditional trap insn): Replace trap_comparison_operator with
6161 ordered_comparison_operator.
6163 * config/s390/s390.c (s390_compare_op0, s390_compare_op1): Delete.
6164 (s390_emit_prologue): Use ctrap.
6165 * config/s390/s390.h (s390_compare_op0, s390_compare_op1): Delete.
6166 * config/s390/predicates.md (s390_eqne_operator, s390_scond_operator):
6167 New predicates replacing...
6168 * config/s390/s390.md (COMPARE, SCOND): ... these iterators.
6169 (cmp<GPR>, cmp<FP>, cmpcc): Delete.
6170 (trunc patterns): Use emit_cmp_and_jump_insns instead of cmp/branch.
6171 (add<mode>cc): Do not use s390_compare_op0/op1.
6172 (s<code>): Change to...
6173 (cstore<mode>4): ... this. Do not use s390_compare_op0/op1.
6175 (cstorecc4): ... this. Handle EQ or NE equally.
6176 (*sne): Un-privatize for use in cstorecc4.
6177 (b<code>): Change to...
6178 (cbranch<GPR>4, cbranch<FP>4, cbranchcc4): ... these.
6179 (conditional_trap): Replace with...
6180 (ctrap<GPR>4, ctrap<FP>4): ... these.
6181 (stack_protect): Use cbranchcc4.
6183 * config/score/score-conv.h (cmp_op0, cmp_op1): Delete.
6184 * config/score/score-protos.h (score_gen_cmp): Delete.
6185 * config/score/score.c (cmp_op0, cmp_op1, score_gen_cmp): Delete.
6186 (score_block_move-loop): Use cbranchsi4.
6187 * config/score/score.md (cbranchsi4): New.
6188 (cmpsi, bCC): Delete.
6189 * config/score/score3.c (cmp_op0, cmp_op1, score3_gen_cmp): Delete.
6190 (score3_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
6191 * config/score/score7.c (cmp_op0, cmp_op1, score7_gen_cmp): Delete.
6192 (score7_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
6193 * config/score/score3.h (score3_gen_cmp): Delete.
6194 * config/score/score7.h (score7_gen_cmp): Delete.
6196 * config/sh/sh-protos.h (prepare_scc_operands): Rename to...
6197 (sh_emit_scc_to_t): ... this. Return void.
6198 (from_compare): Rename to...
6199 (sh_emit_compare_and_branch): ... this.
6200 (sh_emit_compare_and_set): New.
6201 (sh_expand_t_scc): Accept operands.
6202 * config/sh/predicates.md (sh_float_comparison_operator): New.
6203 * config/sh/sh.c (sh_compare_op0, sh_compare_op1): Delete.
6204 (prepare_scc_operands): Rename to...
6205 (sh_emit_scc_to_t): ... this. Return void. Get op0/op1 from
6207 (sh_emit_cheap_store_flag): New.
6208 (sh_emit_set_t_insn): New.
6209 (from_compare): Rename to...
6210 (sh_emit_compare_and_branch): ... this. Accept mode. Rewrite
6211 handling of TARGET_SH2E floating point to avoid recursive call.
6212 Generate branch here.
6213 (sh_emit_compare_and_set): New.
6214 (sh_expand_t_scc): Get op0/op1 from arguments.
6215 (sh_emit_cheap_store_flag): New.
6216 * config/sh/sh.md (cbranchdi4, cbranchsi4): Include -mno-cbranchdi
6218 (cbranchdi4_i): Use an "I08" constraint instead of an "i" constraint.
6219 (cmpsi, cmpdi, cmpsf, cmpdf): Delete.
6220 (movsicc, movdicc): Do nothing when it recreated operands from
6221 sh_compare_*. Use sh_emit_cheap_store_flag. Adjust call to
6222 prepare_scc_operands (now sh_emit_scc_to_t).
6223 (udivdi3): Use cstoresi4.
6224 (beq_media, bne_media, bge_media, bgtu_media, bgeu_media, beq,
6225 bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu, bunordered): Delete.
6226 (cbranchint4_media, cbranchfp4_media): New.
6227 (casesi): Use cbranchdi4.
6228 (seq, slt, sle, sgt, sge, sgtu, sltu, sgeu, sne, sleu, sunordered):
6230 (cstore4_media, cstoresi4, cstoredi4, cstoresf4, cstoredf4): New.
6231 (movnegt): Remove second operand.
6232 (cbranchsf4, cbranchdf4): New.
6233 (stack_protect): Use cbranchdi4/cbranchsi4.
6235 * config/sparc/sparc.c (sparc_compare_op0, sparc_compare_op1): Delete.
6236 (gen_compare_reg): Accept comparison, extract part of it to...
6237 (gen_compare_reg_1): ... this.
6238 (gen_compare_operator): Delete.
6239 (gen_v9_scc): Accept separate destination, comparison code and arms.
6240 Do not use sparc_compare_op0/sparc_compare_op1.
6241 (emit_scc_insn, emit_conditional_branch_insn): New.
6242 (emit_v9_brxx): Make static. Remove useless assertion.
6243 (sparc_emit_float_lib_cmp): Return RTL instead of calling
6245 (sparc_expand_compare_and_swap_12): Use gen_compare_reg_1+cbranchcc4.
6246 * config/sparc/sparc-protos.h (gen_compare_reg,
6247 sparc_emit_float_lib_cmp): Adjust prototype.
6248 (emit_scc_insn, emit_conditional_branch_insn): New.
6249 (gen_v9_scc, emit_v9_brxx_insn, gen_compare_operator): Delete.
6250 * config/sparc/sparc.h (sparc_compare_op0, sparc_compare_op1): Delete.
6251 * config/sparc/sparc.md (P, I, F, V32, V32I, V64, V64I): Move all
6252 iterators to the top.
6253 (cmpsi, cmpdi, cmpsf, cmpdf, cmptf, seqsi_special_extend,
6254 snesi_special_extend, sCC, bCC, seqdi_special_trunc,
6255 snedi_special_trunc): Delete.
6256 (seqdi_special, snedi_special): Use expansion of seqdi_special_trunc
6257 and snedi_special_trunc.
6258 (cstoresi4, cstoredi4, cstore<F:mode>4, cbranchcc4, cbranchsi4,
6259 cbranchdi4, cbranch<F:mode>4): New.
6260 (mov<I:mode>cc, mov<F:mode>cc): Handle sparc_emit_float_lib_cmp
6261 here. Use gen_compare_reg instead of gen_compare_operator.
6262 (conditional_trap): Replace with...
6263 (ctrapsi4, ctrapdi4): ... this.
6264 (stack_protect_test): Use cbranchcc4.
6266 * config/spu/spu-protos.h (spu_emit_branch_or_set): Change second
6268 * config/spu/spu.c (spu_compare_op0, spu_compare_op1): Remove.
6269 (spu_emit_branch_or_set): Get code/op0/op1 from second argument.
6270 Change spu_compare_op0/op1 to op0/op1 throughout. Get target
6271 from operands[0] or operands[3] depending on is_set.
6272 * config/spu/spu.h (spu_compare_op0, spu_compare_op1): Remove.
6273 * config/spu/spu.md (cmp<mode:VQHSI>, cmp<mode:DTI>, cmp<mode:VSF>,
6274 cmpdf, bCC), sCC: Remove.
6275 (cbranch<mode:VQHSI>4, cbranch<mode:DTI>, cbranch<mode:VSF>4,
6276 cbranchdf4, cstore<mode:VQHSI>4, cstore<mode:DTI>, cstore<mode:VSF>4,
6278 (mov<mode>cc): Accept ordered_comparison_operator, adjust call to
6279 spu_emit_branch_or_set.
6281 * config/stormy16/stormy16-protos.h (xstormy16_emit_cbranch):
6283 * config/stormy16/stormy16.h (xstormy16_compare_op0,
6284 xstormy16_compare_op1): Delete.
6285 * config/stormy16/stormy16.c (xstormy16_compare_op0,
6286 xstormy16_compare_op1): Delete.
6287 (xstormy16_emit_cbranch): Get op0/op1 from the new arguments.
6289 * config/stormy16/stormy16.md (cbranchsi4, cbranchhi4): New.
6290 (cmphi, cmpsi, bCC): Remove.
6292 * config/v850/v850.md (tstsi, cmpsi): Fold into...
6293 (*cmpsi): ... this one.
6294 (cbranchsi4, cstoresi4): New.
6295 (bCC expanders): Delete.
6296 (sCC insns): Fold into...
6297 (*setcc): ... this one.
6298 (casesi): Do not use gen_cmpsi and gen_bgtu.
6299 (various splits): Wrap "naked" RHS of a cc0 set with COMPARE.
6300 (movsicc): Simplify.
6301 * config/v850/v850.c (v850_rtx_costs): Handle ZERO_EXTRACT in COMPARE.
6303 * config/vax/vax-protos.h (cond_name): New.
6304 (vax_output_conditional_branch): Remove.
6305 * config/vax/vax.c (cond_name): New.
6306 (vax_output_conditional_branch): Remove.
6307 * config/vax/vax.h (PRINT_OPERAND): Dispatch %c to cond_name.
6308 * config/vax/vax.md (tst<VAXint>, tst<VAXfp>): Remove.
6309 (cmp<VAXint>, cmp<VAXfp>): Privatize. Add constraints for tst.
6310 (bit<VAXint>): Wrap source with (compare).
6311 (b<code> and following unnamed pattern): Rename to *branch and
6312 *branch_reversed. Change macroization to match_operator.
6313 (cbranch<VAXint>4, cbranch<VAXfp>4): New.
6315 * config/xtensa/predicates.md (xtensa_cstoresi_operator): New.
6316 * config/xtensa/xtensa-protos.h (xtensa_expand_conditional_branch):
6317 Change last argument to machine_mode.
6318 (xtensa_expand_scc): Add machine_mode argument.
6319 * config/xtensa/xtensa.c (branch_cmp, branch_type): Remove.
6320 (gen_conditional_move, xtensa_expand_conditional_branch,
6321 xtensa_expand_scc, xtensa_expand_conditional_move): Use mode
6322 instead of branch_type, fetch cmp0/cmp1/test_code from operands[].
6323 Adjust operand numbers.
6324 * config/xtensa/xtensa.h (enum cmp_type, branch_cmp, branch_type):
6326 * config/xtensa/xtensa.md (any_cond, any_scc): Delete.
6327 (cmpsi, cmpsf, b<code>, s<code>): Delete.
6328 (cbranchsi4, cbranchsf4, cstoresi4, cstoresf4): New.
6330 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
6332 * optabs.c (prepare_cmp_insn): Temporarily disable test that
6333 causes spurious differences between trunk and cond-optab branch.
6335 2009-05-12 Alexandre Oliva <aoliva@redhat.com>
6338 * doc/install.texi (STAGE1_TFLAGS, BUILD_CONFIG): Document.
6340 2009-05-12 Alexandre Oliva <aoliva@redhat.com>
6342 * tree.c (iterative_hash_pointer): Delete.
6343 (iterative_hash_expr): Short-circuit handling of NULL pointer.
6344 Hash UIDs and versions of SSA names. Don't special-case built-in
6345 function declarations.
6347 2009-05-11 Ian Lance Taylor <iant@google.com>
6350 * graphite.c: Force -Wc++-compat to only be a warning before
6351 #including "cloog/cloog.h".
6353 2009-05-11 Martin Jambor <mjambor@suse.cz>
6355 * ipa-cp.c (ipcp_cloning_candidate_p): Add missing return false.
6357 2009-05-11 Jan Hubicka <jh@suse.cz>
6359 * tree-ssa-loop-ivcanon.c: Include target.h
6360 (struct loop_size): new structure.
6361 (constant_after_peeling): New predicate.
6362 (tree_estimate_loop_size): New function.
6363 (estimated_unrolled_size): Rewrite for new estimates.
6364 (try_unroll_loop_completely): Use new estimates.
6365 * Makefile.in (tree-ssa-loop-ivcanon.o): Add dependenc on target.h
6367 2009-05-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
6369 * config/spu/spu-c.c (spu_categorize_keyword): Update for recent
6370 libcpp interface change.
6371 (spu_macro_to_expand): Likewise.
6373 2009-05-11 Paolo Bonzini <bonzini@gnu.org>
6375 PR tree-optimization/40026
6376 * gimplify.c (gimplify_init_constructor): Change initial conditional
6377 to assertion. Rewrite TREE_OPERAND (*expr_p, 1) after
6378 optimize_compound_literals_in_ctor.
6380 2009-05-11 Nathan Sidwell <nathan@codesourcery.com>
6382 * config/m68k/m68k-devices.def (52274, 52277, 5301x, 5225x, 51xx):
6384 * doc/invoke.texi (M680x0 Options): Document new coldfire cpus.
6386 2009-05-11 H.J. Lu <hongjiu.lu@intel.com>
6388 * tree-vect-data-refs.c (vect_analyze_group_access): Use
6389 HOST_WIDE_INT for gap.
6391 2009-05-11 Ira Rosen <irar@il.ibm.com>
6393 PR tree-optimization/40074
6394 * tree-vect-data-refs.c (vect_analyze_group_access): Take gaps into
6395 account in group size and step comparison.
6397 2009-05-11 Richard Guenther <rguenther@suse.de>
6399 * passes.c (init_optimization_passes): Strip now incorrect comment.
6400 (execute_function_todo): Do not set PROP_alias.
6401 * tree-pass.h (PROP_alias): Remove.
6402 * tree-ssa-structalias.c (pass_build_alias): Do not provide PROP_alias.
6403 * tree-if-conv.c (pass_if_conversion): Do not require PROP_alias.
6404 * tree-nrv.c (pass_return_slot): Likewise.
6405 * tree-object-size.c (pass_object_sizes): Likewise.
6406 * tree-ssa-dom.c (pass_dominator): Likewise.
6407 (pass_phi_only_cprop): Likewise.
6408 * tree-ssa-dse.c (pass_dse): Likewise.
6409 * tree-ssa-phiopt.c (pass_phiopt): Likewise.
6410 (pass_cselim): Likewise.
6411 * tree-ssa-pre.c (pass_pre): Likewise.
6412 (pass_fre): Likewise.
6413 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
6414 * tree-ssa-sink.c (pass_sink_code): Likewise.
6415 * tree-stdarg.c (pass_stdarg): Likewise.
6416 * tree-tailcall.c (pass_tail_calls): Likewise.
6417 * tree-vrp.c (pass_vrp): Likewise.
6419 2009-05-10 Ian Lance Taylor <iant@google.com>
6421 * basic-block.h (enum profile_status): Break out of struct
6423 * cgraph.h (struct inline_summary): Break out of struct
6425 * cgraphunit.c (enum cgraph_order_sort_kind): New enum, broken out
6426 of struct cgraph_order_sort.
6427 * combine.c (enum undo_kind): New enum, broken out of struct undo.
6428 * cse.c (struct branch_path): Break out of struct
6429 cse_basic_block_data.
6430 * except.h (enum eh_region_type): Break out of struct eh_region.
6431 * gcc.c (enum add_del): Break out of struct modify_target.
6432 * genrecog.c (enum decision_type): Break out of struct decision_test.
6433 * ggc-page.c (struct ggc_pch_ondisk): Break out of struct
6435 * matrix-reorg.c (struct free_info): Break out of struct matrix_info.
6436 * regmove.c (enum match_use): New enum, broken out of struct match.
6437 * sched-int.h (enum post_call_group): New enum, broken out of
6439 (struct deps_reg): Break out of struct deps.
6440 * target.h (struct asm_int_op): Break out of struct gcc_target.
6441 * tree-eh.c (struct goto_queue_node): Break out of struct
6443 * tree-inline.h (enum copy_body_cge_which): Break out of
6445 * tree-pass.h (enum opt_pass_type): Break out of struct opt_pass.
6447 * c-decl.c (in_struct, struct_types): New static variables.
6448 (pushtag): Add loc parameter. Change all callers.
6449 (lookup_tag): Add ploc parameter. Change all callers.
6450 (check_compound_literal_type): New function.
6451 (parser_xref_tag): Add loc parameter. Change all callers. If
6452 -Wc++-compat, warn about struct/union/enum types defined within a
6454 (start_struct): Add enclosing_in_struct, enclosing_struct_types,
6455 and loc parameters. Change all callers. Change error calls to
6456 error_at, using loc. For a redefinition, if the location of the
6457 original definition is known, report it. Set in_struct and
6458 struct_types. If -Wc++-compat warn if in sizeof, typeof, or alignof.
6459 (finish_struct): Add new parameters enclosing_in_struct and
6460 enclosing_struct_types. Change all callers. Set
6461 C_TYPE_DEFINED_IN_STRUCT for all struct/union/enum types defined
6462 in the struct. If in a struct, add this struct to struct_types.
6463 (start_enum): Add loc parameter. Change all callers. Use
6464 error_at for errors, using loc. For a redefinition, if the
6465 location of the original definition is known, report it. If in a
6466 struct, add this enum type to struct_types. If -Wc++-compat warn
6467 if in sizeof, typeof, or alignof.
6468 * c-parser.c (disable_extension_diagnostics): Disable -Wc++-compat.
6469 (enable_extension_diagnostics): Reenable -Wc++-compat if appropriate.
6470 (c_parser_enum_specifier): Get enum location for start_enum.
6471 (c_parser_struct_or_union_specifier): Get struct location for
6472 start_struct. Save in_struct and struct_types status between
6473 start_struct and finish_struct.
6474 (c_parser_cast_expression): Get location of cast.
6475 (c_parser_alignof_expression): Get location of type.
6476 (c_parser_postfix_expression): Likewise.
6477 (c_parser_postfix_expression_after_paren_type): Add type_loc
6478 parameter. Change all callers. Call check_compound_literal_type.
6479 Use type_loc for error about variable size type.
6480 * c-typeck.c (build_external_ref): If -Wc++-compat, warn about a use
6481 of an enum constant from an enum type defined in a struct or union.
6482 (c_cast_expr): Add loc parameter. Change all callers. If
6483 -Wc++-compat, warn about defining a type in a cast.
6484 * c-tree.h (C_TYPE_DEFINED_IN_STRUCT): Define.
6485 (start_enum, start_struct, finish_struct): Update declarations.
6486 (parser_xref_tag, c_cast_expr): Update declarations.
6487 (check_compound_literal_type): Declare.
6489 2009-05-11 Ben Elliston <bje@au.ibm.com>
6491 * config/rs6000/rs6000-c.c (altivec_categorize_keyword): Update
6492 for recent libcpp interface change.
6493 (rs6000_macro_to_expand): Likewise.
6495 2009-05-10 Michael Matz <matz@suse.de>
6498 * config/arm/arm.c (require_pic_register): Emit on entry edge,
6499 not at entry of function.
6501 2009-05-10 Richard Guenther <rguenther@suse.de>
6503 PR tree-optimization/40081
6505 * tree-sra.c (instantiate_element): Instantiate scalar replacements
6506 using the main variant of the element type. Do not fiddle with
6507 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
6509 * tree-sra.c (sra_type_can_be_decomposed_p): Do not decompose
6510 structs with volatile fields.
6512 2009-05-10 Jan Hubicka <jh@suse.cz>
6514 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Declare.
6515 (estimate_move_cost): Assert that it does not get called for
6517 (estimate_num_insns): Skip VOID types in argument handling.
6518 (optimize_inline_calls): Delete unreachable blocks and verify that
6521 2009-05-10 Jan Hubicka <jh@suse.cz>
6523 * cgraphbuild.c (record_reference): Use cgraph_mark_address_taken_node.
6524 * cgraph.c (cgraph_mark_address_taken_node): New function.
6525 (dump_cgraph_node): Dump new flag.
6526 * cgraph.h (struct cgraph_node): Add address_taken.
6527 (cgraph_mark_address_taken_node): New function.
6528 * ipa.c (cgraph_postorder): Prioritize functions with address taken
6529 since new direct calls can be born.
6531 2009-05-10 Joseph Myers <joseph@codesourcery.com>
6533 * c-lex.c (c_lex_with_flags): Expect cpp_hashnode in
6536 2009-05-10 Jan Hubicka <jh@suse.cz>
6539 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Take old_call
6541 (cgraph_update_edges_for_call_stmt): Take old_decl argument.
6542 * cgraph.h (cgraph_update_edges_for_call_stmt): Update prototype.
6543 * tree-inline.c (copy_bb): Set frequency correctly.
6544 (fold_marked_statements): Update call to
6545 cgraph_update_edges_for_call_stmt.
6547 2009-05-10 Joseph Myers <joseph@codesourcery.com>
6549 * config/arc/arc.c (arc_handle_interrupt_attribute): Use %qE for
6550 identifiers in diagnostics.
6551 * config/arm/arm.c (arm_handle_fndecl_attribute,
6552 arm_handle_isr_attribute): Likewise.
6553 * config/avr/avr.c (avr_handle_progmem_attribute,
6554 avr_handle_fndecl_attribute, avr_handle_fntype_attribute): Likewise.
6555 * config/bfin/bfin.c (handle_int_attribute,
6556 bfin_handle_longcall_attribute, bfin_handle_l1_text_attribute,
6557 bfin_handle_l1_data_attribute, bfin_handle_longcall_attribute,
6558 bfin_handle_l1_text_attribute, bfin_handle_l1_data_attribute):
6560 * config/darwin.c (darwin_handle_kext_attribute,
6561 darwin_handle_weak_import_attribute): Likewise.
6562 * config/h8300/h8300.c (h8300_handle_fndecl_attribute,
6563 h8300_handle_eightbit_data_attribute,
6564 h8300_handle_tiny_data_attribute): Likewise.
6565 * config/i386/i386.c (ix86_handle_cconv_attribute,
6566 ix86_handle_abi_attribute, ix86_handle_struct_attribute): Likewise.
6567 * config/i386/winnt.c (ix86_handle_shared_attribute,
6568 ix86_handle_selectany_attribute): Likewise.
6569 * config/ia64/ia64.c (ia64_handle_model_attribute): Likewise.
6570 * config/m32c/m32c.c (function_vector_handler): Likewise.
6571 * config/m68hc11/m68hc11.c (m68hc11_handle_page0_attribute,
6572 m68hc11_handle_fntype_attribute): Likewise.
6573 * config/m68k/m68k.c (m68k_handle_fndecl_attribute): Likewise.
6574 * config/mcore/mcore.c (mcore_handle_naked_attribute): Likewise.
6575 * config/mips/mips.c (mips_insert_attributes,
6576 mips_merge_decl_attributes, mips_expand_builtin): Likewise.
6577 * config/rs6000/rs6000.c (rs6000_handle_longcall_attribute,
6578 rs6000_handle_struct_attribute): Likewise.
6579 * config/sh/sh.c (sh_insert_attributes,
6580 sh_handle_resbank_handler_attribute,
6581 sh_handle_interrupt_handler_attribute,
6582 sh2a_handle_function_vector_handler_attribute,
6583 sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
6585 * config/sh/symbian.c (sh_symbian_mark_dllimport): Likewise.
6586 * config/spu/spu.c (spu_handle_fndecl_attribute,
6587 spu_handle_vector_attribute): Likewise.
6588 * config/stormy16/stormy16.c
6589 (xstormy16_handle_interrupt_attribute): Likewise.
6590 * config/v850/v850-c.c (ghs_pragma_section): Likewise.
6591 * config/v850/v850.c (v850_handle_interrupt_attribute): Likewise.
6593 2009-05-10 Joseph Myers <joseph@codesourcery.com>
6595 * pretty-print.h (struct pretty_print_info): Add translate_identifiers.
6596 (pp_translate_identifiers): New.
6597 (pp_identifier): Only conditionally translate identifier to locale
6599 * pretty-print.c (pp_construct): Set pp_translate_identifiers.
6600 (pp_base_tree_identifier): Only conditionally translate identifier
6601 to locale character set.
6602 * c-pretty-print.c (M_): Define.
6603 (pp_c_type_specifier, pp_c_primary_expression): Mark English
6604 fragments for conditional translation with M_.
6605 * tree-pretty-print.c (maybe_init_pretty_print): Disable
6606 identifier translation.
6608 2009-05-10 Richard Guenther <rguenther@suse.de>
6610 PR tree-optimization/40081
6611 * tree-sra.c (instantiate_element): Instantiate scalar replacements
6612 using the main variant of the element type. Do not fiddle with
6613 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
6615 2009-05-09 Jan Hubicka <jh@suse.cz>
6618 * cgraphunit.c (cgraph_materialize_all_clones): Do not redirect
6619 indirect calls; verify cgraph afterwards.
6621 2009-05-09 Jan Hubicka <jh@suse.cz>
6624 * ipa.c (update_inlined_to_pointer): New function.
6625 (cgraph_remove_unreachable_nodes): Use it.
6627 2009-05-09 Jan Hubicka <jh@suse.cz>
6629 * tree-eh.c (struct leh_state): Remove prev_try.
6630 (lower_try_finally, lower_catch, lower_eh_filter, lower_cleanup): Do
6632 * except.c (gen_eh_region_cleanup, duplicate_eh_regions,
6633 copy_eh_region_1, copy_eh_region, redirect_eh_edge_to_label,
6634 remove_eh_handler_and_replace, foreach_reachable_handler,
6635 verify_eh_region, verify_eh_tree): Remove tracking of prev_try pointer.
6636 * except.h (struct eh_region): Remove eh_region_u_cleanup.
6637 (gen_eh_region_cleanup): Update prototype.
6639 2009-05-09 Jan Hubicka <jh@suse.cz>
6642 * except.c (copy_eh_region): Always set prev_try.
6643 (redirect_eh_edge_to_label): Find outer try.
6644 (foreach_reachable_handler): When looking for prev try
6645 handle case where previous try is not going to be taken.
6647 2009-05-07 Michael Meissner <meissner@linux.vnet.ibm.com>
6649 PR tree-optimization/40049
6650 * tree-vect-stmts.c (vectorizable_operation): If the machine has
6651 only vector/vector shifts, convert the type of the constant to the
6652 appropriate type to avoid building incorrect trees, which
6653 eventually have problems with garbage collection.
6655 2009-05-08 Joseph Myers <joseph@codesourcery.com>
6657 * fold-const.c (fold_binary): Do not fold multiplication by 1 or
6658 -1 for complex floating-point types if honoring signed zeros.
6660 2009-05-08 Jan Hubicka <jh@suse.cz>
6662 * cgraphbuild.c (compute_call_stmt_bb_frequency): Accept function
6663 argument; handle correctly when profile is absent.
6664 (build_cgraph_edges): Update.
6665 (rebuild_cgraph_edges): Update.
6666 * cgraph.c: Do not include varray.h.
6667 (cgraph_set_call_stmt_including_clones): New function.
6668 (cgraph_create_edge_including_clones): Likewise
6669 (cgraph_update_edges_for_call_stmt_node): New static cfunction.
6670 (cgraph_update_edges_for_call_stmt): Handle clones.
6671 (cgraph_remove_node): Handle clone tree.
6672 (cgraph_remove_node_and_inline_clones): New function.
6673 (dump_cgraph_node): Dump clone tree.
6674 (cgraph_clone_node): Handle clone tree.
6675 (clone_function_name): Bring here from tree-inline.c.
6676 (cgraph_create_virtual_clone): New function.
6677 * cgraph.h (ipa_replace_map): Move here from ipa.h.
6678 (cgraph_clone_info): New function.
6679 (strut cgraph_node): Add clone_info and new clone tree pointers.
6680 (cgraph_remove_node_and_inline_clones,
6681 cgraph_set_call_stmt_including_clones,
6682 cgraph_create_edge_including_clones,
6683 cgraph_create_virtual_clone): Declare.
6684 (cgraph_function_versioning): Use VEC argument.
6685 (compute_call_stmt_bb_frequency): Update prototype.
6686 (cgraph_materialize_all_clones): New function.
6687 * ipa-cp.c (ipcp_update_cloned_node): Remove.
6688 (ipcp_create_replace_map): Update to VECtors.
6689 (ipcp_update_callgraph): Use virtual clones.
6690 (ipcp_update_bb_counts, ipcp_update_edges_counts): Remove.
6691 (ipcp_update_profiling): Do not update local profiling.
6692 (ipcp_insert_stage): Use VECtors and virtual clones.
6693 * cgraphunit.c (verify_cgraph_node): Verify clone tree.
6694 (clone_of_p): New function.
6695 (cgraph_preserve_function_body_p): Use clone tree.
6696 (cgraph_optimize): Materialize clones.
6697 (cgraph_function_versioning): Update for VECtors.
6698 (save_inline_function_body): Use clone tree.
6699 (cgraph_materialize_clone): New function.
6700 (cgraph_materialize_all_clones): Likewise.
6701 * ipa-inline.c (cgraph_default_inline_p): Use analyzed flags.
6702 * ipa.c: Include gimple.h.
6703 (cgraph_remove_unreachable_nodes): Use clone tree.
6704 * ipa-prop.c (ipa_note_param_call): Update call to
6705 compute_call_stmt_bb_frequencycall.
6706 * ipa-prop.h (ipa_replace_map): Move to cgraph.h.
6707 * tree-inline.c: Do not include varray.h or gt-tree-inline.h.
6708 (copy_bb): Handle updating of clone tree; add new edge when new call
6710 (expand_call_inline): Be strict about every call having edge.
6711 (clone_fn_id_num, clone_function_name): Move to cgraph.c.
6712 (delete_unreachable_blocks_update_callgraph): New function.
6713 (tree_function_versioning): Use VECtors; always remove unreachable
6714 blocks and fold conditionals.
6715 * tree-inline.h: Do not include varray.h.
6716 (tree_function_versioning): Remove.
6717 * Makefile.in (GTFILES): Remove tree-inline.c
6718 * passes.c (do_per_function): Do only functions having body.
6719 * ipa-struct-reorg.c (do_reorg_1, collect_data_accesses): Handle clone
6722 2009-05-08 H.J. Lu <hongjiu.lu@intel.com>
6723 Andrew Morrow <acm@google.com>
6726 * c-common.c (c_common_attribute_table): Permit deprecated
6727 attribute to take an optional argument.
6728 (handle_deprecated_attribute): If the optional argument to
6729 __attribute__((deprecated)) is not a string ignore the attribute
6732 * c-decl.c (grokdeclarator): Updated warn_deprecated_use call.
6733 * c-typeck.c (build_component_ref): Likewise.
6734 (build_external_ref): Likewise.
6736 * toplev.c (warn_deprecated_use): Add an attribute argument.
6737 Emit the message associated with __attribute__((deprecated)).
6739 * toplev.h (warn_deprecated_use): Updated.
6741 * doc/extend.texi: Document new optional parameter to
6742 __attribute__((deprecated))
6744 2009-05-08 Michael Eager <eager@eagercon.com>
6746 * config/rs6000/rs6000.md (*movdf_softfloat32): replace
6747 !TARGET_DOUBLE_FLOAT with TARGET_SINGLE_FLOAT.
6749 2009-05-08 Richard Guenther <rguenther@suse.de>
6751 PR tree-optimization/40062
6752 * tree-scalar-evolution.c (follow_ssa_edge_in_condition_phi):
6753 Avoid exponential behavior.
6755 2009-05-08 Paolo Bonzini <bonzini@gnu.org>
6757 PR rtl-optimization/33928
6759 * fwprop.c (use_def_ref, get_def_for_use, bitmap_only_bit_bitween,
6760 process_uses, build_single_def_use_links): New.
6761 (update_df): Update use_def_ref.
6762 (forward_propagate_into): Use get_def_for_use instead of use-def
6764 (fwprop_init): Call build_single_def_use_links and let it initialize
6766 (fwprop_done): Free use_def_ref.
6767 (fwprop_addr): Eliminate duplicate call to df_set_flags.
6768 * df-problems.c (df_rd_simulate_artificial_defs_at_top,
6769 df_rd_simulate_one_insn): New.
6770 (df_rd_bb_local_compute_process_def): Update head comment.
6771 (df_chain_create_bb): Use the new RD simulation functions.
6772 * df.h (df_rd_simulate_artificial_defs_at_top,
6773 df_rd_simulate_one_insn): New.
6774 * opts.c (decode_options): Enable fwprop at -O1.
6775 * doc/invoke.texi (-fforward-propagate): Document this.
6777 2009-05-08 Joseph Myers <joseph@codesourcery.com>
6780 * c-typeck.c (build_binary_op): Handle arithmetic between one real
6781 and one complex operand specially.
6782 * tree-complex.c (some_nonzerop): Do not identify a real value as
6783 zero if flag_signed_zeros.
6785 2009-05-08 Paolo Bonzini <bonzini@gnu.org>
6787 PR rtl-optimization/33928
6788 * loop-invariant.c (record_use): Fix && vs. || mishap.
6790 2009-05-08 Paolo Bonzini <bonzini@gnu.org>
6792 PR rtl-optimization/33928
6793 * loop-invariant.c (struct use): Add addr_use_p.
6794 (struct def): Add n_addr_uses.
6795 (struct invariant): Add cheap_address.
6796 (create_new_invariant): Set cheap_address.
6797 (record_use): Accept df_ref. Set addr_use_p and update n_addr_uses.
6798 (record_uses): Pass df_ref to record_use.
6799 (get_inv_cost): Do not add inv->cost to comp_cost for cheap addresses
6802 2009-05-08 Kaz Kojima <kkojima@gcc.gnu.org>
6804 * config/sh/sh.c: Do not include c-pragma.h.
6806 2009-05-07 Andrew Pinski <andrew_pinski@playstation.sony.com>
6808 * config/spu/spu.c: Remove include of c-common.h.
6810 2009-05-07 Janis Johnson <janis187@us.ibm.com>
6813 * c-common.h (mark_valid_location_for_stdc_pragma,
6814 valid_location_for_stdc_pragma_p, set_float_const_decimal64,
6815 clear_float_const_decimal64, float_const_decimal64_p): New.
6816 * c.opt (Wunsuffixed-float-constants): New.
6817 * c-lex.c (interpret_float): Use pragma FLOAT_CONST_DECIMAL64 for
6818 unsuffixed float constant, handle new warning.
6819 * c-cppbuiltin.c (c_cpp_builtins): Use cast for double constants.
6820 * c-decl.c (c_scope): New flag float_const_decimal64.
6821 (set_float_const_decimal64, clear_float_const_decimal64,
6822 float_const_decimal64_p): New.
6823 (push_scope): Set new flag.
6824 * c-parser.c (c_parser_translation_unit): Mark when it's valid
6825 to use STDC pragmas.
6826 (c_parser_external_declaration): Ditto.
6827 (c_parser_compound_statement_nostart): Ditto.
6828 * c-pragma.c (valid_location_for_stdc_pragma,
6829 mark_valid_location_for_stdc_pragma,
6830 valid_location_for_stdc_pragma_p, handle_stdc_pragma,
6831 handle_pragma_float_const_decimal64): New.
6832 (init_pragma): Register new pragma FLOAT_CONST_DECIMAL64.
6833 * cp/semantics.c (valid_location_for_stdc_pragma_p,
6834 set_float_const_decimal64, clear_float_const_decimal64,
6835 float_const_decimal64_p): New dummy functions.
6836 * doc/extend.texi (Decimal Float): Remove statement that the
6837 pragma, and suffix for double constants, are not supported.
6838 * doc/invoke.texi (Warning Options): List new option.
6839 (-Wunsuffixed-float-constants): New.
6841 2009-05-08 Steven Bosscher <steven@gcc.gnu.org>
6843 * config/i386/i386.c: Do not include c-common.h.
6845 2009-05-07 Mark Heffernan <meheff@google.com>
6847 * doc/invoke.texi (Debugging Options): Document change of debugging
6849 * opts.c (decode_options): Make dump_base_name relative to
6850 aux_base_name directory.
6852 2009-05-07 Hariharan Sandanagobalane <hariharan@picochip.com>
6854 * config/picochip/picochip.h (NO_DOLLAR_IN_LABEL): Added.
6855 * config/picochip/libgccExtras/divmod15.asm : Removed redefiniton.
6857 2009-05-07 Rafael Avila de Espindola <espindola@google.com>
6859 * Makefile.in (install-plugin): Simplify a bit.
6861 2009-05-07 Paolo Bonzini <bonzini@gnu.org>
6863 * Makefile.in (OBJS-common): Add regcprop.o.
6865 * timevar.def (TV_CPROP_REGISTERS): New.
6866 * regrename.c (regrename_optimize): Return 0.
6867 (rest_of_handle_regrename): Delete.
6868 (pass_rename_registers): Point to regrename_optimize.
6869 (struct value_data_entry, struct value_data,
6870 kill_value_one_regno, kill_value_regno, kill_value,
6871 set_value_regno, init_value_data, kill_clobbered_value,
6872 kill_set_value, kill_autoinc_value, copy_value,
6873 mode_change_ok, maybe_mode_change, find_oldest_value_reg,
6874 replace_oldest_value_reg, replace_oldest_value_addr,
6875 replace_oldest_value_mem, copyprop_hardreg_forward_1,
6876 debug_value_data, validate_value_data): Move...
6877 * regcprop.c: ... here.
6878 (rest_of_handle_cprop): Delete.
6879 (pass_cprop_hardreg): Point to copyprop_hardreg_forward.
6881 2009-05-07 Jakub Jelinek <jakub@redhat.com>
6884 * dojump.c (prefer_and_bit_test): Use immed_double_const instead of
6885 GEN_INT for 1 << bitnum.
6886 (do_jump) <case BIT_AND_EXPR>: Use build_int_cst_wide_type instead of
6889 2009-05-07 Uros Bizjak <ubizjak@gmail.com>
6891 * doc/md.texi (Standard Pattern Names For Generation) [sync_nand]:
6892 Remove wrong description of "nand" operation.
6894 2009-05-06 Richard Guenther <rguenther@suse.de>
6895 Adam Nemet <anemet@caviumnetworks.com>
6897 * gimple.def (GIMPLE_ASSIGN): Fix incorrect information in the
6898 comment. Add that if LHS is not a gimple register, then RHS1 has
6899 to be a single object (GIMPLE_SINGLE_RHS).
6901 2009-05-06 Adam Nemet <anemet@caviumnetworks.com>
6903 * expr.c (get_def_for_expr): Move it up in the file.
6904 (store_field): When expanding a bit-field store, look at the
6905 defining gimple stmt for the masking conversion.
6907 2009-05-06 Janis Johnson <janis187@us.ibm.com>
6910 * dfp.c (encode_decimal32, decode_decimal32, encode_decimal64,
6911 decode_decimal64, encode_decimal128, decode_decimal128): Avoid
6912 32-bit memcpy into long.
6914 2009-05-06 Jakub Jelinek <jakub@redhat.com>
6916 * dwarf2out.c (new_reg_loc_descr): Don't ever create DW_OP_regX.
6917 (one_reg_loc_descriptor): Create DW_OP_regX here instead of calling
6919 (loc_by_reference): If loc is DW_OP_regX, change it into DW_OP_bregX 0
6920 instead of appending DW_OP_deref*.
6922 2009-05-06 Michael Matz <matz@suse.de>
6925 * cfgexpand.c (maybe_cleanup_end_of_block): New static function.
6926 (expand_gimple_cond): Use it to cleanup CFG and superfluous jumps.
6928 2009-05-06 Rafael Avila de Espindola <espindola@google.com>
6930 * Makefile.in (install-plugin): Fix srcdir handling.
6932 2009-05-06 Andrey Belevantsev <abel@ispras.ru>
6934 * tree-ssa.c (execute_update_address_taken): Handle TARGET_MEM_REF
6935 when processing for not_regs_needed bitmap.
6936 * gimple.c (walk_stmt_load_store_addr_ops): When visiting address,
6937 handle TARGET_MEM_REF in lhs. Check TMR_BASE for NULL while
6938 handling it for rhs.
6940 2009-05-06 H.J. Lu <hongjiu.lu@intel.com>
6942 * config/i386/i386.md (unnamed inc/dec peephole): Use
6943 optimize_insn_for_size_p instead of optimize_size.
6944 * config/i386/predicates.md (incdec_operand): Likewise.
6945 (aligned_operand): Likewise.
6946 * config/i386/sse.md (divv8sf3): Likewise.
6947 (sqrtv8sf2): Likewise.
6949 2009-05-06 H.J. Lu <hongjiu.lu@intel.com>
6951 * config/i386/i386.c (ix86_build_signbit_mask): Make it static.
6953 * config/i386/i386-protos.h (ix86_build_signbit_mask): Removed.
6955 2009-05-06 H.J. Lu <hongjiu.lu@intel.com>
6957 * config/i386/i386.md (*avx_<code><mode>3_finite): Replace
6958 ssemodesuffixf2c with avxmodesuffixf2c.
6960 2009-05-06 Joseph Myers <joseph@codesourcery.com>
6963 * c-decl.c (grokdeclarator): Handle incomplete type of unnamed field.
6965 2009-05-05 Jakub Jelinek <jakub@redhat.com>
6967 * tree.h: Remove DECL_BY_REFERENCE from private_flag comment.
6968 (struct tree_base): Adjust spacing for 8 bit boundaries.
6969 (struct tree_decl_common): Add decl_by_reference_flag bit.
6970 (DECL_BY_REFERENCE): Adjust.
6971 * print-tree.c (print_node): For VAR_DECL, PARM_DECL or RESULT_DECL,
6972 print DECL_BY_REFERENCE bit.
6973 * dbxout.c (DECL_ACCESSIBILITY_CHAR): Revert last change.
6974 * dwarf2out.c (loc_by_reference, gen_decl_die): Check
6975 DECL_BY_REFERENCE for all VAR_DECLs, not just non-static ones.
6976 (gen_variable_die): Likewise. Check TREE_PRIVATE/TREE_PROTECTED
6980 * gimplify.c (gimplify_switch_expr): If case labels cover the whole
6981 range of the type, but default label is missing, add it with one
6982 of the existing labels instead of adding a new label for it.
6984 2009-05-05 Joseph Myers <joseph@codesourcery.com>
6988 2009-05-05 Rafael Avila de Espindola <espindola@google.com>
6990 * Makefile.in (enable_plugin, plugin_includedir): New.
6991 (install): Depend on install-plugin.
6992 (PLUGIN_HEADERS): New.
6993 (install-plugin): New.
6994 * config.gcc: Add vxworks-dummy.h to tm_file for x86 and x86-64.
6996 2009-05-05 Richard Guenther <rguenther@suse.de>
6998 PR tree-optimization/40022
6999 * tree-ssa-phiprop.c (struct phiprop_d): Exchange vop_stmt for
7001 (phivn_valid_p): Fix tuplification error, simplify.
7002 (phiprop_insert_phi): Add dumps.
7003 (propagate_with_phi): Simplify.
7005 2009-05-05 Richard Guenther <rguenther@suse.de>
7008 * builtins.c (gimplify_va_arg_expr): Properly build the address.
7010 2009-05-05 Shujing Zhao <pearly.zhao@oracle.com>
7012 * tree.h (strip_float_extensions): Remove duplicate declaration.
7013 (build_low_bits_mask, debug_fold_checksum, expand_function_end,
7014 expand_function_start, stack_protect_prologue, stack_protect_epilogue,
7015 block_ultimate_origin): Rearrange the declarations line to match the
7016 comment that indicates the .c file which the functions are defined.
7017 (dwarf2out_*, set_decl_rtl): Add comment.
7018 (get_base_address): Adjust comment.
7019 (change_decl_assembler_name, maybe_fold_*, build_addr): Rearrange the
7020 declarations line and add comment.
7021 (is_builtin_name): Add blank after function name, for clarity.
7023 2009-05-04 Joseph Myers <joseph@codesourcery.com>
7025 * attribs.c (decl_attributes): Use %qE for identifiers in
7027 * cgraphunit.c (verify_cgraph_node): Translate function names to
7028 locale character set in diagnostics.
7029 * coverage.c (get_coverage_counts): Use %qE for identifiers in
7031 * doc/invoke.texi (-finstrument-functions-exclude-function-list):
7032 Document that functions are named in UTF-8.
7033 * expr.c (expand_expr_real_1): Translate function names to locale
7034 character set in diagnostics.
7035 * gimplify.c (omp_notice_variable, omp_is_private,
7036 gimplify_scan_omp_clauses): Use %qE for identifiers in
7038 * langhooks.c (lhd_print_error_function): Translate function names
7039 to locale character set.
7040 * langhooks.h (decl_printable_name): Document that return value is
7041 in internal character set.
7042 * stmt.c: Include pretty-print.h
7043 (tree_conflicts_with_clobbers_p): Use %qE for identifiers in
7045 (resolve_operand_name_1): Translate named operand name to locale
7047 * stor-layout.c (finalize_record_size): Use %qE for identifiers in
7049 * toplev.c (announce_function): Translate function names to locale
7051 (warn_deprecated_use): Use %qE for identifiers in diagnostics.
7052 (default_tree_printer): Use pp_identifier or translate identifiers
7053 to locale character set. Mark "<anonymous>" for translation.
7054 * tree-mudflap.c (mx_register_decls, mudflap_finish_file): Use %qE
7055 for identifiers in diagnostics.
7056 * tree.c (handle_dll_attribute): Use %qE for identifiers in
7058 * varasm.c (output_constructor): Use %qE for identifiers in
7061 2009-05-04 Rafael Avila de Espindola <espindola@google.com>
7063 * configure.ac: use ` ` instead of $()
7064 * configure: Regenerate.
7066 2009-05-05 Ben Elliston <bje@au.ibm.com>
7068 * config/pa/linux-atomic.c: Eliminate conditional include of
7069 errno.h on non-LP64 systems to simplify build requirements.
7071 2009-05-04 Joseph Myers <joseph@codesourcery.com>
7073 * c-common.c (handle_mode_attribute): Use %qE for identifiers in
7075 * c-decl.c (check_bitfield_type_and_width): Make orig_name a tree
7076 and pass value to identifier_to_locale.
7077 (warn_variable_length_array): Make name a tree.
7078 (grokdeclarator): Separate diagnostic texts for named and unnamed
7079 declarators. Use %qE for named declarators.
7080 * c-parser.c (c_lex_one_token): Use %qE for identifiers in
7082 * c-pragma.c (pop_alignment, handle_pragma_pack): Use %qE for
7083 identifiers in diagnostics.
7084 * c-typeck.c (push_member_name, start_init): Pass identifiers to
7085 identifier_to_locale. Mark "anonymous" strings for translation.
7087 2009-05-04 Michael Eager <eager@eagercon.com>
7089 * config/rs6000/rs6000.c (rs6000_legitimate_address): Allow
7090 address for DImode/DFmode only if double-precision FP regs.
7092 2009-05-04 Michael Eager <eager@eagercon.com>
7094 * config/rs6000/rs6000.c (rs6000_libcall_value): Add
7095 TARGET_SINGLE_FLOAT check.
7097 2009-05-04 Michael Eager <eager@eagercon.com>
7099 * config/rs6000/xilinx.h: Add CPP_SPEC for -mxilinx-fpu options.
7101 2009-05-04 Michael Eager <eager@eagercon.com>
7103 * gcc/config.gcc: (powerpc-xilinx-eabi*): Add tm t-xilinx
7104 * config/rs6000/t-xilinx: New
7106 2009-05-04 Paolo Bonzini <bonzini@gnu.org>
7108 * doc/tm.texi (LEGITIMIZE_ADDRESS): Revise documentation.
7109 * gcc/defaults.h (LEGITIMIZE_ADDRESS): Delete.
7110 * gcc/explow.c (memory_address): Use target hook.
7111 * gcc/targhooks.c (default_legitimize_address): New.
7112 * gcc/targhooks.h (default_legitimize_address): New.
7113 * gcc/target.h (legitimize_address): New.
7114 * gcc/target-def.h (TARGET_LEGITIMIZE_ADDRESS): New.
7115 (TARGET_INITIALIZER): Include it.
7116 * gcc/system.h (LEGITIMIZE_ADDRESS): Poison.
7118 * config/bfin/bfin-protos.h (legitimize_address): Remove.
7119 * config/bfin/bfin.c (legitimize_address): Remove.
7120 * config/bfin/bfin.h (LEGITIMIZE_ADDRESS): Remove.
7121 * config/m68hc11/m68hc11-protos.h (m68hc11_legitimize_address):
7123 * config/m68hc11/m68hc11.c (m68hc11_legitimize_address): Remove.
7124 * config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Remove.
7126 * gcc/config/arm/arm.h (LEGITIMIZE_ADDRESS, ARM_LEGITIMIZE_ADDRESS,
7127 THUMB_LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS): Delete.
7128 * gcc/config/s390/s390.h (LEGITIMIZE_ADDRESS): Delete.
7129 * gcc/config/m32c/m32c.h (LEGITIMIZE_ADDRESS): Delete.
7130 * gcc/config/sparc/sparc.h (LEGITIMIZE_ADDRESS): Delete.
7131 * gcc/config/m32r/m32r.h (LEGITIMIZE_ADDRESS): Delete.
7132 * gcc/config/i386/i386.h (LEGITIMIZE_ADDRESS): Delete.
7133 * gcc/config/sh/sh.h (LEGITIMIZE_ADDRESS): Delete.
7134 * gcc/config/avr/avr.h (LEGITIMIZE_ADDRESS): Delete.
7135 * gcc/config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Delete.
7136 * gcc/config/iq2000/iq2000.h (LEGITIMIZE_ADDRESS): Delete.
7137 * gcc/config/mn10300/mn10300.h (LEGITIMIZE_ADDRESS): Delete.
7138 * gcc/config/m68k/m68k.h (LEGITIMIZE_ADDRESS): Delete.
7139 * gcc/config/score/score.h (LEGITIMIZE_ADDRESS): Delete.
7140 * gcc/config/pa/pa.h (LEGITIMIZE_ADDRESS): Delete.
7141 * gcc/config/mips/mips.h (LEGITIMIZE_ADDRESS): Delete.
7142 * gcc/config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Delete.
7143 * gcc/config/frv/frv.h (LEGITIMIZE_ADDRESS): Delete.
7144 * gcc/config/spu/spu.h (LEGITIMIZE_ADDRESS): Delete.
7145 * gcc/config/xtensa/xtensa.h (LEGITIMIZE_ADDRESS): Delete.
7146 * gcc/config/cris/cris.h (LEGITIMIZE_ADDRESS): Delete.
7147 * gcc/config/rs6000/rs6000.h (LEGITIMIZE_ADDRESS): Delete.
7148 * gcc/config/picochip/picochip.h (LEGITIMIZE_ADDRESS): Delete.
7150 * gcc/config/s390/s390-protos.h (legitimize_address): Delete.
7151 * gcc/config/m32c/m32c-protos.h (m32c_legitimize_address): Delete.
7152 * gcc/config/sparc/sparc-protos.h (legitimize_address): Delete.
7153 * gcc/config/i386/i386-protos.h (legitimize_address): Delete.
7154 * gcc/config/avr/avr-protos.h (legitimize_address): Delete.
7155 * gcc/config/mn10300/mn10300-protos.h (legitimize_address): Delete.
7156 * gcc/config/score/score-protos.h (score_legitimize_address): Delete.
7157 * gcc/config/arm/arm-protos.h (arm_legitimize_address,
7158 (thumb_legitimize_address): Delete.
7159 * gcc/config/pa/pa-protos.h (hppa_legitimize_address): Delete.
7160 * gcc/config/mips/mips-protos.h (mips_legitimize_address): Delete.
7161 * gcc/config/alpha/alpha-protos.h (alpha_legitimize_address): Delete.
7162 * gcc/config/frv/frv-protos.h (frv_legitimize_address): Delete.
7163 * gcc/config/spu/spu-protos.h (spu_legitimize_address): Delete.
7164 * gcc/config/xtensa/xtensa-protos.h (xtensa_legitimize_address):
7166 * gcc/config/rs6000/rs6000-protos.h (rs6000_legitimize_address):
7169 * config/arm/arm.c (arm_legitimize_address): Maybe call Thumb version.
7170 * config/m32c/m32c.c (m32c_legitimize_address): Standardize.
7171 * config/m32r/m32r.c (m32r_legitimize_address): New.
7172 * config/m68k/m68k.c (m68k_legitimize_address): New.
7173 * config/score/score.c (score_legitimize_address): Standardize.
7174 * config/score/score3.c (score3_legitimize_address): Standardize.
7175 * config/score/score3.h (score3_legitimize_address): Adjust.
7176 * config/score/score7.c (score7_legitimize_address): Standardize.
7177 * config/score/score7.h (score7_legitimize_address): Adjust.
7178 * config/sh/sh.c (sh_legitimize_address): New.
7179 * config/iq2000/iq2000.c (iq2000_legitimize_address): New.
7181 * gcc/config/s390/s390.c (legitimize_address): Rename to...
7182 (s390_legitimize_address): ... this.
7183 * gcc/config/sparc/sparc.c (legitimize_address): Rename to...
7184 (sparc_legitimize_address): ... this.
7185 * gcc/config/i386/i386.c (legitimize_address): Rename to...
7186 (ix86_legitimize_address): ... this.
7187 * gcc/config/avr/avr.c (legitimize_address): Rename to...
7188 (avr_legitimize_address): ... this.
7189 * gcc/config/mn10300/mn10300.c (legitimize_address): Rename to...
7190 (mn10300_legitimize_address): ... this.
7191 * config/alpha/alpha.c (alpha_legitimize_address): Wrap...
7192 (alpha_legitimize_address_1): ... the old alpha_legitimize_address.
7193 (alpha_expand_mov): Adjust call.
7195 * config/frv/frv.c (frv_legitimize_address): Return x on failure.
7196 * config/spu/spu.c (spu_legitimize_address): Likewise.
7197 * config/xtensa/xtensa.c (xtensa_legitimize_address): Likewise.
7198 * config/rs6000/rs6000.c (rs6000_legitimize_address): Likewise.
7200 2009-05-04 Joseph Myers <joseph@codesourcery.com>
7202 * intl.c (locale_encoding, locale_utf8): New.
7203 (gcc_init_libintl): Initialize locale_encoding and locale_utf8.
7204 * intl.h (locale_encoding, locale_utf8): Declare.
7205 * pretty-print.c: Include ggc.h. Include iconv.h if HAVE_ICONV.
7206 (pp_base_tree_identifier, decode_utf8_char, identifier_to_locale):
7208 * pretty-print.h (pp_identifier): Call identifier_to_locale on ID
7210 (pp_tree_identifier): Define to call pp_base_tree_identifier.
7211 (pp_base_tree_identifier): Declare as function.
7212 (identifier_to_locale): Declare.
7213 * Makefile.in (pretty-print.o): Update dependencies.
7214 * varasm.c (finish_aliases_1): Use %qE for identifiers in diagnostics.
7216 2009-05-04 Richard Guenther <rguenther@suse.de>
7219 * builtins.c (fold_builtin_memory_op): Do not decay to element
7220 type if the size matches the whole array.
7222 2009-05-04 Kazu Hirata <kazu@codesourcery.com>
7224 * expmed.c (synth_mult): When trying out a shift, pass the result
7227 2009-05-04 Kazu Hirata <kazu@codesourcery.com>
7229 * expmed.c (shiftsub_cost): Rename to shiftsub0_cost.
7230 (shiftsub1_cost): New.
7231 (init_expmed): Compute shiftsub1_cost.
7232 (synth_mult): Optimize multiplications by constants of the form
7233 -(2^^m-1) for some constant positive integer m.
7235 2009-05-03 Richard Guenther <rguenther@suse.de>
7238 * c-typeck.c (array_to_pointer_conversion): Do not built
7239 ADDR_EXPRs of arrays of pointer-to-element type.
7240 * c-gimplify.c (c_gimplify_expr): Revert change fixing
7241 up wrong ADDR_EXPRs after-the-fact.
7242 * c-common.c (strict_aliasing_warning): Strip pointer
7243 conversions for obtaining the original type.
7244 * builtins.c (fold_builtin_memset): Handle array types.
7245 (fold_builtin_memory_op): Handle folded POINTER_PLUS_EXPRs
7248 2009-05-03 Richard Guenther <rguenther@suse.de>
7251 * tree-ssa.c (useless_type_conversion_p_1): Use get_deref_alias_set.
7252 Do not lose casts from array types with unknown extent to array
7253 types with known extent.
7254 * tree-ssa-copy.c (may_propagate_copy): Remove hack checking for
7255 alias set compatibility.
7257 2009-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
7259 * flags.h (extra_warnings): Delete.
7260 * toplev.c (process_options): Handle Wuninitialized here.
7261 * opts.c (extra_warnings): Delete.
7262 (set_Wextra): Delete.
7263 (common_handle_option): -Wextra can be handled automatically.
7264 * c-opts.c (c_common_handle_option): Delete obsolete code.
7265 (c_common_post_options): Simplify comment.
7266 * common.opt (W): Add Var.
7268 (Wuninitialized): Initialize to -1.
7270 2009-05-03 Adam Nemet <anemet@caviumnetworks.com>
7271 Richard Guenther <rguenther@suse.de>
7273 * expr.c (get_def_for_expr): New function.
7274 (expand_expr_real_1) <PLUS_EXPR, MINUS_EXPR>: Adjust to work with
7275 SSA rather than trees.
7276 <MULT_EXPR>: Likewise. Use subexp0 and subexp1 instead of
7277 TREE_OPERAND (exp, 0) and TREE_OPERAND (exp, 1).
7279 2009-05-03 Joseph Myers <joseph@codesourcery.com>
7281 * c-common.c (reswords): Add _Imaginary.
7282 * c-common.c (enum rid): Add RID_IMAGINARY.
7284 2009-05-03 Paolo Bonzini <bonzini@gnu.org>
7286 * tree.h (TYPE_VECTOR_OPAQUE): Fix documentation.
7287 Patch by Richard Guenther.
7289 2009-05-03 Anatoly Sokolov <aesok@post.ru>
7291 * defaults.h (FRAME_POINTER_REQUIRED): Provide default.
7292 * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
7293 * config/alpha/alpha.h (FRAME_POINTER_REQUIRED): Delete.
7294 * config/s390/s390.h (FRAME_POINTER_REQUIRED): Delete.
7295 * config/spu/spu.h (FRAME_POINTER_REQUIRED): Delete.
7296 * config/sh/sh.h (FRAME_POINTER_REQUIRED): Delete.
7297 * config/pdp11/pdp11.h (FRAME_POINTER_REQUIRED): Delete.
7298 * config/stormy16/stormy16.h (FRAME_POINTER_REQUIRED): Delete.
7299 * config/m68hc11/m68hc11.h (FRAME_POINTER_REQUIRED): Delete.
7300 * config/iq2000/iq2000.h (FRAME_POINTER_REQUIRED): Delete.
7301 * config/mn10300/mn10300.h (FRAME_POINTER_REQUIRED): Delete.
7302 * config/ia64/ia64.h (FRAME_POINTER_REQUIRED): Delete.
7303 * config/m68k/m68k.h (FRAME_POINTER_REQUIRED): Delete.
7304 * config/rs6000/rs6000.h (FRAME_POINTER_REQUIRED): Delete.
7305 * config/picochip/picochip.h (FRAME_POINTER_REQUIRED): Delete.
7306 * config/mcore/mcore.h (FRAME_POINTER_REQUIRED): Delete.
7307 * config/h8300/h8300.h (FRAME_POINTER_REQUIRED): Delete.
7308 * config/v850/v850.h (FRAME_POINTER_REQUIRED): Delete.
7310 2009-05-02 Richard Guenther <rguenther@suse.de>
7312 PR tree-optimization/39940
7313 * tree-ssa-pre.c (eliminate): Make sure we may propagate before
7316 2009-05-02 Richard Guenther <rguenther@suse.de>
7319 * tree-ssa.c (execute_update_addresses_taken): Properly check
7320 if we can mark a variable DECL_GIMPLE_REG_P.
7321 * gimple.c (is_gimple_reg): Re-order check for DECL_GIMPLE_REG_P
7322 back to the end of the function.
7323 (is_gimple_reg_type): Remove complex type special casing.
7324 * gimplify.c (gimplify_bind_expr): Do not set DECL_GIMPLE_REG_P
7327 2009-05-02 Ben Elliston <bje@au.ibm.com>
7329 * doc/collect2.texi (Collect2): Document search path behaviour
7330 when configured with --with-ld.
7332 2009-05-02 Jan Hubicka <jh@suse.cz>
7334 * tree-ssa-coalesce.c (coalesce_cost): Do not take ciritical
7335 parameter; update callers.
7336 (coalesce_cost_edge): EH edges are costier because they needs
7337 splitting even if not critical and even more costier when there are
7338 multiple EH predecestors.
7340 2009-05-02 Jan Hubicka <jh@suse.cz>
7342 * except.c (remove_eh_handler_and_replace): Handle updating after
7343 removing TRY blocks.
7345 2009-05-02 Eric Botcazou <ebotcazou@adacore.com>
7347 * store-motion.c (compute_store_table): Add ENABLE_CHECKING guard.
7349 2009-05-02 Steven Bosscher <steven@gcc.gnu.org>
7351 * varasm.c: Do not include c-pragma.h.
7352 * attribs.c: Do not incude c-common.h.
7354 2009-05-01 Michael Matz <matz@suse.de>
7356 * calls.c (initialize_argument_information): Handle SSA names like
7357 decls with a non MEM_P DECL_RTL.
7359 2009-05-01 Steven Bosscher <steven@gcc.gnu.org>
7361 * ipa-reference.c: Do not include c-common.h, include splay-tree.h.
7362 * ipa-utils.c: Likewise.
7363 * ipa-type-escape.c: Likewise.
7364 * cgraphunit.c Do not include c-common.h.
7365 * ipa-pure-const.c: Likewise.
7366 * tree-if-conv.c: Likewise.
7367 * matrix-reorg.c: Do not include c-common.h and c-tree.h.
7368 * ipa-struct-reorg.c: Likewise.
7369 * tree-nomudflap.c: Likewise.
7370 * tree-ssa-structalias.c: Likewise.
7372 2009-05-01 Steven Bosscher <steven@gcc.gnu.org>
7374 * store-motion.c: Many cleanups to make this pass a first-class
7375 citizen instead of an appendix to gcse load motion. Add TODO list
7376 to make this pass faster/cleaner/better.
7378 (struct ls_expr): Post gcse.c-split cleanups.
7379 Rename to st_expr. Rename "loads" field to "antic_stores". Rename
7380 "stores" field to "avail_stores".
7381 (pre_ldst_mems): Rename to store_motion_mems.
7382 (pre_ldst_table): Rename to store_motion_mems_table.
7383 (pre_ldst_expr_hash): Rename to pre_st_expr_hash, update users.
7384 (pre_ldst_expr_eq): Rename to pre_st_expr_eq, update users.
7385 (ldst_entry): Rename to st_expr_entry, update users.
7386 (free_ldst_entry): Rename to free_st_expr_entry, update users.
7387 (free_ldst_mems): Rename to free_store_motion_mems, update users.
7388 (enumerate_ldsts): Rename to enumerate_store_motion_mems,
7390 (first_ls_expr): Rename to first_st_expr, update users.
7391 (next_ls_expr): Rename to next_st_expr, update users.
7392 (print_ldst_list): Rename to print_store_motion_mems. Print names of
7393 fields properly for store motion instead of names inherited from load
7395 (ANTIC_STORE_LIST, AVAIL_STORE_LIST): Remove.
7396 (LAST_AVAIL_CHECK_FAILURE): Explain what this is. Undefine when we
7399 (ae_kill): Rename to st_kill, update users.
7400 (ae_gen): Rename to st_avloc, update users.
7401 (transp): Rename to st_transp, update users.
7402 (pre_insert_map): Rename to st_insert_map, update users.
7403 (pre_delete_map): Rename to st_delete_map, update users.
7404 (insert_store, build_store_vectors, free_store_memory,
7405 one_store_motion_pass): Update for abovementioned changes.
7407 (gcse_subst_count, gcse_create_count): Remove.
7408 (one_store_motion_pass): New statistics counters "n_stores_deleted"
7409 and "n_stores_created", local variables.
7411 (extract_mentioned_regs, extract_mentioned_regs_1): Rewrite to
7414 (regvec, compute_store_table_current_insn): Remove.
7415 (reg_set_info, reg_clear_last_set): Remove.
7416 (compute_store_table): Use DF caches instead of local dataflow
7419 2009-05-01 Joseph Myers <joseph@codesourcery.com>
7421 * c-objc-common.c (c_tree_printer): Print identifiers with
7422 pp_identifier, not pp_string. Mark "({anonymous})" for
7424 * c-pretty-print.c (pp_c_ws_string): New.
7425 (pp_c_cv_qualifier, pp_c_type_specifier,
7426 pp_c_specifier_qualifier_list, pp_c_parameter_type_list,
7427 pp_c_storage_class_specifier, pp_c_function_specifier,
7428 pp_c_attributes, pp_c_bool_constant, pp_c_constant,
7429 pp_c_primary_expression, pp_c_postfix_expression,
7430 pp_c_unary_expression, pp_c_shift_expression,
7431 pp_c_relational_expression, pp_c_equality_expression,
7432 pp_c_logical_and_expression, pp_c_logical_or_expression): Mostly
7433 use pp_string and pp_c_ws_string in place of pp_identifier and
7434 pp_c_identifier for non-identifiers. Mark English strings for
7436 * c-pretty-print.h (pp_c_ws_string): Declare.
7438 2009-04-30 Paul Pluzhnikov <ppluzhnikov@google.com>
7439 Roland McGrath <roland@redhat.com>
7441 * configure.ac (HAVE_LD_BUILDID): New check for ld --build-id support.
7442 (ENABLE_LD_BUILDID): New configuration option.
7443 * gcc.c [HAVE_LD_BUILDID and ENABLE_LD_BUILDID]
7444 (LINK_BUILDID_SPEC): New macro.
7445 (init_spec): If defined, prepend it between LINK_EH_SPEC and
7447 * doc/install.texi: Document --enable-linker-build-id option.
7448 * configure: Rebuild.
7449 * config.in: Rebuild.
7451 2009-04-30 Adam Nemet <anemet@caviumnetworks.com>
7453 * config/mips/mips.h (FRAME_GROWS_DOWNWARD,
7454 MIPS_GP_SAVE_AREA_SIZE): Define new macros.
7455 (STARTING_FRAME_OFFSET): Return 0 if FRAME_GROWS_DOWNWARD. Use
7456 MIPS_GP_SAVE_AREA_SIZE.
7457 * config/mips/mips.c (struct mips_frame_info): Update comment
7458 before arg_pointer_offset and hard_frame_pointer_offset.
7459 (mips_compute_frame_info): Update diagram before function: to
7460 correctly use stack_pointer_rtx for fp_sp_offset and gp_sp_offset, to
7461 indicate the position of frame_pointer_rtx with -fstack-protector and
7462 to show args_size. Don't allocate cprestore area for leaf functions
7463 if FRAME_GROWS_DOWNWARD. Use MIPS_GP_SAVE_AREA_SIZE to set
7465 (mips_initial_elimination_offset): Update for FRAME_GROWS_DOWNWARD.
7467 2009-04-30 Michael Matz <matz@suse.de>
7469 PR tree-optimization/39955
7470 * config/rs6000/rs6000.c (rs6000_check_sdmode): Also check SSA_NAMEs.
7472 2009-04-30 Dave Korn <dave.korn.cygwin@gmail.com>
7474 * ira.c (setup_cover_and_important_classes): Use safe macro
7475 REG_CLASS_FOR_CONSTRAINT instead of calling regclass_for_constraint
7477 * genpreds.c (write_tm_preds_h): Output suitable definition of
7478 REG_CLASS_FOR_CONSTRAINT.
7480 2009-04-30 Rafael Avila de Espindola <espindola@google.com>
7482 * alloc-pool.c (alloc_pool_descriptor): Use an insert_opion value
7484 * bitmap.c (bitmap_descriptor): Likewise.
7485 * ggc-common.c (loc_descriptor): Likewise.
7486 * varray.c (varray_descriptor): Likewise.
7487 * vec.c (vec_descriptor): Likewise.
7489 2009-04-30 Eric Botcazou <ebotcazou@adacore.com>
7491 * Makefile.in (dce.o): Add $(EXCEPT_H).
7492 * dce.c: Include except.h and delete redundant vector definitions.
7493 (deletable_insn_p): Return false for non-call insns that can throw
7496 2009-04-30 Steven Bosscher <steven@gcc.gnu.org>
7498 * gcse.c (ae_gen): Remove.
7499 (can_assign_to_reg_p): Rename to can_assign_to_reg_without_clobbers_p
7500 and make non-static function to make it available in store-motion.c.
7501 Update call sites with search-and-replace.
7502 (enumerate_ldsts, reg_set_info, reg_clear_last_set, store_ops_ok,
7503 extract_mentioned_regs, extract_mentioned_regs_helper,
7504 find_moveable_store, compute_store_table, load_kills_store, find_loads,
7505 store_killed_in_insn, store_killed_after, store_killed_before,
7506 build_store_vectors, insert_insn_start_basic_block, insert-store,
7507 remove_reachable_equiv_notes, replace_store_insn, delete_store,
7508 free_store_memory, one_store_motion_pass, gate_rtl_store_motion,
7509 execute_rtl_store_motion, pass_rtl_store_motion): Move to...
7510 * store-motion.c: ...new file. Also copy data structures from gcse.c
7511 and clean up to remove parts not used by store motion.
7512 * rtl.h (can_assign_to_reg_without_clobbers_p): Add prototype.
7513 * Makefile.in (store-motion.o): New rule. Add to OBJS-common.
7515 2009-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7518 * config/arm/arm.h (FUNCTION_BOUNDARY): Set to 16 for thumb
7519 when optimizing for size.
7521 2009-04-30 Hans-Peter Nilsson <hp@axis.com>
7523 * gcse.c (gcse_constant_p): Fix typo in last change.
7525 2009-04-30 Rafael Avila de Espindola <espindola@google.com>
7527 * plugin.c: Include plugin-version.h only if ENABLE_PLUGIN is defined.
7529 2009-04-30 Andreas Krebbel <krebbel1@de.ibm.com>
7531 * gcse.c (gcse_constant_p): Make sure the constant is sharable.
7533 2009-04-29 James E. Wilson <wilson@codesourcery.com>
7535 * config/mips/mips.c (mips_add_offset): Use gen_int_mode for
7536 CONST_HIGH_PART result.
7538 2009-04-29 Anatoly Sokolov <aesok@post.ru>
7540 * config/avr/avr.c (initial_elimination_offset): Rename to
7541 avr_initial_elimination_offset.
7542 (frame_pointer_required_p): Rename to avr_frame_pointer_required_p,
7543 change return type to bool.
7544 (avr_can_eliminate): New function.
7545 * config/avr/avr.h (CAN_ELIMINATE): Use avr_can_eliminate.
7546 (FRAME_POINTER_REQUIRED): Use avr_frame_pointer_required_p.
7547 (INITIAL_ELIMINATION_OFFSET): Use avr_initial_elimination_offset.
7548 * config/avr/avr-protos.h (initial_elimination_offset): Rename to
7549 avr_initial_elimination_offset.
7550 (frame_pointer_required_p): Rename to avr_frame_pointer_required_p.
7551 (avr_initial_elimination_offset): Define.
7553 2009-04-29 Eric Botcazou <ebotcazou@adacore.com>
7554 Steven Bosscher <steven@gcc.gnu.org>
7556 PR rtl-optimization/39938
7557 * Makefile.in (cfgrtl.o): Add $(INSN_ATTR_H).
7558 * cfgrtl.c: Include insn-attr.h.
7559 (rest_of_pass_free_cfg): New function.
7560 (pass_free_cfg): Use rest_of_pass_free_cfg as execute function.
7561 * resource.c (init_resource_info): Remove call to df_analyze.
7563 2009-04-29 Richard Guenther <rguenther@suse.de>
7566 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Only
7567 allow conversion to signed integers.
7569 2009-04-29 Richard Guenther <rguenther@suse.de>
7571 * tree-cfg.c (verify_gimple_assign_binary): Allow vector
7572 shifts of floating point vectors if the shift amount is
7573 a constant multiple of the element size.
7575 2009-04-29 Andreas Krebbel <krebbel1@de.ibm.com>
7576 Michael Matz <matz@suse.de>
7580 * tree-outof-ssa.c (emit_partition_copy): New function.
7581 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
7582 insert_part_to_rtx_on_edge): Perform the partition base var
7583 copy using emit_partition_copy.
7584 (insert_value_copy_on_edge): Convert constants to the right mode.
7585 (insert_rtx_to_part_on_edge): Add UNSIGNEDSRCP parameter.
7586 (elim_create): Pass the sign of the src to insert_rtx_to_part_on_edge.
7588 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
7590 * config/bfin/bfin.c (bfin_optimize_loop): If we need a scratch reg,
7591 scan backwards to try to find a constant to initialize it.
7593 * config/bfin/bfin.c (bfin_optimize_loop): When looking for the last
7594 insn before the loop_end instruction, don't look past labels.
7596 2009-04-29 Richard Guenther <rguenther@suse.de>
7599 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do not
7600 loose type conversions.
7601 (forward_propagate_addr_expr): Fix tuplification bug. Remove
7602 stmts only if there are no uses of its definition.
7604 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
7606 * config/bfin/bfin.h (splitting_loops): Declare.
7607 * config/bfin/bfin-protos.h (WA_05000257, WA_05000283, WA_05000315):
7608 Reorder bit definitions to be ascending.
7609 (WA_LOAD_LCREGS, ENABLE_WA_LOAD_LCREGS): New macros.
7610 * config/bfin/bfin.c (splitting_loops): New variable.
7611 (bfin_cpus): Add WA_LOAD_LCREGS as needed.
7612 (struct loop_info): Remove members INIT and LOOP_INIT.
7613 (bfin_optimize_loop): Don't set them. Reorder the code that generates
7614 the LSETUP sequence. Allow LC to be loaded from any register, but
7615 also add a case to push/pop a PREG scratch if ENABLE_WA_LOAD_LCREGS.
7616 (bfin_reorg_loops): When done, split all BB_ENDs with splitting_loops
7618 * config/bfin/bfin.md (loop_end splitter): Use splitting_loops instead
7619 of reload_completed.
7622 * config/bfin/bfin.md (movsi_insn): Refine constraints.
7624 2009-04-29 Rafael Avila de Espindola <espindola@google.com>
7626 * Makefile.in (PLUGIN_VERSION_H): New.
7627 (OBJS-common): Remove plugin-version.o.
7628 (plugin.o): Depend on (PLUGIN_VERSION_H).
7629 (plugin-version.o): Remove.
7630 * configure: Regenerate
7631 * configure.ac: Create plugin-version.h.
7632 * gcc-plugin.h (plugin_gcc_version): Remove.
7633 (plugin_default_version_check): Change signature.
7634 * plugin-version.c: Remove.
7635 * plugin.c: Include plugin-version.h.
7636 (str_plugin_gcc_version_name): Remove.
7637 (try_init_one_plugin): Pass gcc version to plugin_init.
7638 (plugin_default_version_check): Both gcc and plugin versions are now
7641 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
7643 * config/bfin/bfin.c (bfin_optimize_loop): Unify handling of
7644 problematic last insns. Test for TYPE_CALL rather than CALL_P.
7645 Remove special case testing for last insn of inner loops. Don't fail
7646 if the loop ends with a jump, emit an extra nop instead.
7648 * config/bfin/bfin.c (bfin_register_move_cost): Test for subsets of
7649 DREGS rather than comparing directly. Remove code that tries to
7650 account for latencies.
7652 2009-04-29 Richard Guenther <rguenther@suse.de>
7654 PR tree-optimization/39941
7655 * tree-ssa-pre.c (eliminate): Schedule update-ssa after
7656 eliminating an indirect call.
7658 2009-04-29 Richard Guenther <rguenther@suse.de>
7660 * tree-cfg.c (verify_types_in_gimple_reference): Add require_lvalue
7661 parameter. Allow invariants as base if !require_lvalue.
7662 (verify_gimple_assign_single): Adjust.
7664 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
7666 * config/bfin/bfin.md (sp_or_sm, spm_string, spm_name): New macro.
7667 (ss<spm_name>hi3, ss<spm_name>hi3_parts, ss<spm_name>hi3_low_parts,
7668 ss<spm_name_hi3_high_parts): New patterns, replacing ssaddhi3,
7669 ssubhi3, ssaddhi3_parts and sssubhi3_parts.
7670 (flag_mulhi3_parts): Produce a HImode output rather than trying to set
7672 * config/bfin/bfin.c (bfin_expand_builtin,
7673 case BFIN_BUILTIN_CPLX_SQU): Adjust accordingly.
7675 2009-04-28 Richard Guenther <rguenther@suse.de>
7677 * tree-vect-loop.c (get_initial_def_for_induction): Use
7678 correct types for pointer increment.
7680 2009-04-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7682 * toplev.c (print_version): Update GMP version string calculation.
7684 2009-04-28 Eric Botcazou <ebotcazou@adacore.com>
7686 PR rtl-optimization/39938
7687 * resource.c (init_resource_info): Add call to df_analyze.
7689 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
7691 * config/alpha/alpha.md (usegp): Cast the result of
7692 alpha_find_lo_sum_using_gp to enum attr_usegp.
7693 * config/alpha/alpha.c (override_options): Remove end-of-structure
7694 marker element from cpu_table. Use array size of cpu_table to handle
7695 -mcpu and -mtune options.
7696 (tls_symbolic_operand_type): Change 0 to TLS_MODEL_NONE.
7698 2009-04-28 Joseph Myers <joseph@codesourcery.com>
7700 * config.gcc (powerpc*-*-* | rs6000-*-*): Add
7701 rs6000/option-defaults.h to tm_file. Support cpu_32, cpu_64,
7702 tune_32 and tune_64.
7703 * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
7705 * config/rs6000/rs6000.h (OPTION_DEFAULT_SPECS): Move to ...
7706 * config/rs6000/option-defaults.h: ... here. New file.
7707 (OPT_64, OPT_32): Define.
7708 (MASK_64BIT): Define to 0 if not already defined.
7709 (OPT_ARCH64, OPT_ARCH32): Define.
7710 (OPTION_DEFAULT_SPECS): Add entries for cpu_32, cpu_64, tune_32
7713 2009-04-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7715 * config/arm/arm.c (arm_override_options): Emit error on using
7718 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
7720 PR rtl-optimization/39914
7721 * ira-conflicts.c (ira_build_conflicts): Prohibit call used
7722 registers for allocnos created from user-defined variables only
7723 when not optimizing.
7725 2009-04-28 Richard Guenther <rguenther@suse.de>
7728 * fold-const.c (fold_binary): Use distribute_real_division only
7731 2009-04-28 Steve Ellcey <sje@cup.hp.com>
7733 * config.gcc (hppa*64*-*-hpux11*): Set use_gcc_stdint and
7734 add hpux-stdint.h to tm_file.
7735 (hppa[12]*-*-hpux11*): Ditto.
7736 (ia64*-*-hpux*): Ditto.
7737 * config/hpux-stdint.h: New.
7738 * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Set
7739 __STDC_EXT__ for all compiles.
7740 * config/pa/pa-hpux.h: Ditto.
7741 * config/pa/pa-hpux10.h: Ditto.
7742 * config/pa/pa-hpux11.h: Ditto.
7744 2009-04-28 Catherine Moore <clm@codesourcery.com>
7746 * debug.h (set_name): Add comment.
7748 2009-04-28 Andrew Pinski <pinskia@gmail.com>
7751 * config/darwin.c (machopic_gen_offset): Check
7752 currently_expanding_to_rtl if current_ir_type returns IR_GIMPLE.
7753 * config/arm/arm.c (require_pic_register): Likewise.
7755 2009-04-28 Paolo Bonzini <bonzini@gnu.org>
7757 * config/m32c/m32c.c (TARGET_PROMOTE_FUNCTION_RETURN,
7758 m32c_promote_function_return, TARGET_PROMOTE_PROTOTYPES,
7759 m32c_promote_prototypes): Delete.
7761 2009-04-28 Michael Matz <matz@suse.de>
7764 * tree-outof-ssa.c (insert_value_copy_on_edge): Don't convert
7767 2009-04-28 Richard Guenther <rguenther@suse.de>
7769 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Fix type error.
7771 2009-04-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7773 * config/arm/arm-cores.def: Add support for arm1156t2f-s.
7774 * doc/invoke.texi (ARM Options): Document support for arm1156t2f-s.
7775 * config/arm/arm-tune.md: Regenerate.
7777 2009-04-28 Alexander Monakov <amonakov@ispras.ru>
7779 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not attempt to delete a
7780 block if there are complex incoming edges.
7781 (sel_merge_blocks): Remove useless assert.
7782 (sel_redirect_edge_and_branch): Check that edge was redirected.
7783 * sel-sched-ir.h (_eligible_successor_edge_p): Remove assert.
7784 (sel_find_rgns): Delete declaration.
7785 * sel-sched.c (purge_empty_blocks): Attempt to remove first block of
7786 the region when it is not a preheader.
7788 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
7791 * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Sync with elfos.h
7793 2009-04-28 Richard Guenther <rguenther@suse.de>
7795 * tree.h (SSA_NAME_VALUE): Remove.
7796 (struct tree_ssa_name): Remove value_handle member.
7797 * tree-vrp.c (execute_vrp): Initialize/free the value-handle
7798 array for jump threading.
7799 * tree-ssa-propagate.c (ssa_prop_init): Do not initialize
7801 * print-tree.c (print_node): Do not dump SSA_NAME_VALUEs.
7802 * tree-flow.h (threadedge_initialize_values): Declare.
7803 (threadedge_finalize_values): Likewise.
7804 * tree-ssa-threadedge.c (ssa_name_values): New global variable.
7805 (SSA_NAME_VALUE): Define.
7806 (threadedge_initialize_values): New function.
7807 (threadedge_finalize_values): Likewise.
7808 * tree-ssa-dom.c (ssa_name_values): New global variable.
7809 (SSA_NAME_VALUE): Define.
7810 (tree_ssa_dominator_optimize): Initialize/free the value-handle array.
7812 2009-04-28 Ira Rosen <irar@il.ibm.com>
7814 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
7815 Use REPORT_VECTORIZED_LOCATIONS instead
7816 REPORT_VECTORIZED_LOOPS.
7817 * tree-vectorizer.c (vect_verbosity_level): Make static.
7818 (vect_loop_location): Rename to vect_location.
7819 (vect_set_verbosity_level): Update comment.
7820 (vect_set_dump_settings): Use REPORT_VECTORIZED_LOCATIONS
7822 (vectorize_loops): Fix comment. Use REPORT_VECTORIZED_LOCATIONS
7823 and vect_location. Use REPORT_UNVECTORIZED_LOCATIONS
7824 instead REPORT_UNVECTORIZED_LOOPS.
7825 * tree-vectorizer.h (enum vect_def_type): Rename vect_invariant_def
7826 and vect_loop_def to vect_external_def and vect_internal_def.
7827 (enum verbosity_levels): Rename REPORT_VECTORIZED_LOOPS
7828 and REPORT_UNVECTORIZED_LOOPS to REPORT_VECTORIZED_LOCATIONS and
7829 REPORT_UNVECTORIZED_LOCATIONS.
7830 (enum vect_relevant): Update comment. Rename vect_unused_in_loop
7831 and vect_used_in_loop and to vect_unused_in_scope and
7833 (STMT_VINFO_RELEVANT_P): Use vect_unused_in_scope.
7834 (vect_verbosity_level): Remove declaration.
7835 (vect_analyze_operations): Likewise.
7836 (vect_analyze_stmt): Declare.
7837 * tree-vect-loop.c (vect_determine_vectorization_factor): Use
7838 REPORT_UNVECTORIZED_LOCATIONS.
7839 (vect_get_loop_niters): Fix indentation.
7840 (vect_analyze_loop_form): Use REPORT_UNVECTORIZED_LOCATIONS.
7841 (vect_analyze_loop_operations): New function.
7842 (vect_analyze_loop): Call vect_analyze_loop_operations instead of
7843 vect_analyze_operations.
7844 (vect_is_simple_reduction): Use new names.
7845 (vectorizable_live_operation, vect_transform_loop): Likewise.
7846 * tree-vect-data-refs.c (vect_check_interleaving): Add a return value
7847 to specify whether the data references can be a part of interleaving
7849 (vect_analyze_data_ref_dependence): Use new names.
7850 (vect_analyze_data_refs_alignment, vect_analyze_data_refs): Likewise.
7851 (vect_create_addr_base_for_vector_ref): Remove redundant code.
7852 * tree-vect-patterns.c (widened_name_p): Use new names.
7853 (vect_recog_dot_prod_pattern): Likewise.
7854 * tree-vect-stmts.c (vect_stmt_relevant_p): Use new names.
7855 (process_use, vect_mark_stmts_to_be_vectorized,
7856 vect_model_simple_cost, vect_model_store_cost,
7857 vect_get_vec_def_for_operand, vect_get_vec_def_for_stmt_copy,
7858 vectorizable_call, vectorizable_conversion, vectorizable_assignment,
7859 vectorizable_operation, vectorizable_type_demotion,
7860 vectorizable_type_promotion, vectorizable_store, vectorizable_load,
7861 vectorizable_condition): Likewise.
7862 (vect_analyze_operations): Split into vect_analyze_loop_operations
7864 (vect_analyze_stmt): ... new function.
7865 (new_stmt_vec_info): Use new names.
7866 (vect_is_simple_use): Use new names and fix comment.
7867 * tree-vect-slp.c (vect_get_and_check_slp_defs): Use new names.
7868 (vect_build_slp_tree, vect_analyze_slp, vect_schedule_slp): Likewise.
7870 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
7873 * config/i386/i386.c (print_operand) ['Z']: Handle floating point
7874 and integer modes for x87 operands. Do not ICE for unsupported size,
7875 generate error instead. Generate error for unsupported operand types.
7876 ['z']: Do not handle HImode memory operands specially. Warning
7877 for floating-point operands. Fallthru to 'Z' for unsupported operand
7878 types. Do not ICE for unsupported size, generate error instead.
7879 (output_387_binary_op): Use %Z to output operands.
7880 (output_fp_compare): Ditto.
7881 (output_387_reg_move): Ditto.
7883 2009-04-28 Ben Elliston <bje@au.ibm.com>
7888 2009-03-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
7890 * builtins.c (c_strlen): Do not warn here.
7891 * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
7892 * c-common.c (pointer_int_sum): Take an explicit location.
7893 Warn about offsets out of bounds.
7894 * c-common.h (pointer_int_sum): Adjust declaration.
7896 2009-04-27 Ian Lance Taylor <iant@google.com>
7898 * collect2.c (is_ctor_dtor): Change type of ret field in struct
7900 * dce.c (run_fast_df_dce): Change type of old_flags to int.
7901 * df-core.c (df_set_flags): Change return type to int. Change
7902 type of old_flags to int.
7903 (df_clear_flags): Likewise.
7904 * df-scan.c (df_def_record_1): Change 0 to VOIDmode.
7905 (df_get_conditional_uses): Likewise.
7906 * df.h (df_set_flags, df_clear_flags): Update declarations.
7907 * dwarf2out.c (struct indirect_string_node): Change type of form
7908 field to enum dwarf_form.
7909 (AT_string_form): Change return type to enum dwarf_form.
7910 * fixed-value.c (fixed_compare): Add cast to enum type.
7911 * fwprop.c (update_df): Change 0 to VOIDmode.
7912 * gensupport.c: Change 0 to UNKNOWN.
7913 * gimple.h (gimple_cond_code): Add cast to enum type.
7914 * haifa-sched.c (reemit_notes): Add cast to enum type.
7915 * hooks.c (hook_int_void_no_regs): Remove function.
7916 * hooks.h (hook_int_void_no_regs): Remove declaration.
7917 * optabs.c (expand_widen_pattern_expr): Change 0 to VOIDmode.
7918 * predict.c (combine_predictions_for_insn): Add casts to enum type.
7919 * real.c (real_arithmetic): Add cast to enum type.
7920 (real_compare): Likewise.
7921 * target.h (struct gcc_target): Change return type of
7922 branch_target_register_class to enum reg_class.
7923 * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Define as
7924 default_branch_target_register_class.
7925 * targhooks.c (default_branch_target_register_class): New function.
7926 * targhooks.h (default_branch_target_register_class): Declare.
7927 * tree-data-ref.c (print_direction_vector): Add cast to enum type.
7928 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Remove
7930 * tree-vect-loop.c (vect_create_epilog_for_reduction): Change 0 to
7932 * tree-vect-slp.c (vect_build_slp_tree): Change 0 to
7933 vect_uninitialized_def. Change 0 to ERROR_MARK.
7934 * tree-vect-stmts.c (supportable_widening_operation): Don't
7935 initialize icode1 and icode2.
7936 * tree-vectorizer.h (enum vect_def_type): Add vect_uninitialized_def.
7937 * config/sol2-c.c (cmn_err_length_specs): Change 0 to FMT_LEN_none
7939 (cmn_err_flag_specs): Change 0 to STD_C89.
7940 (cmn_err_char_table): Likewise.
7941 * config/arm/arm.c (get_arm_condition_code): Change type of code
7942 to enum arm_cond_code.
7943 (IWMMXT_BUILTIN): Change 0 to UNKNOWN.
7944 (IWMMXT_BUILTIN2): Likewise.
7945 (neon_builtin_type_bits): Don't define typedef.
7946 (neon_builtin_datum): Change type of bits field to int.
7947 (arm_expand_neon_args): Add cast to enum type.
7948 * config/ia64/ia64.c (tls_symbolic_operand_type): Change 0 to
7950 * config/i386/i386.c (bdesc_multi_arg): Change 0 to UNKNOWN. Add
7952 * config/mips/mips.c (LOONGSON_BUILTIN_ALIAS): Change 0 to
7954 * config/mips/mips.md (jal_macro): Return enum constant.
7955 (single_insn): Likewise.
7956 * config/rs6000/rs6000.c (bdesc_altivec_preds): Change 0 to
7958 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
7960 * config/s390/s390.c (s390_tune_flags): Change type to int.
7961 (s390_arch_flags): Likewise.
7962 (s390_handle_arch_option): Change flags field of struct pta to int.
7963 * config/s390/s390.h (s390_tune_flags): Update declaration.
7964 (s390_arch_flags): Likewise.
7965 * config/sh/sh.c (prepare_move_operands): Compare
7966 tls_symbolic_operand result with enum constant.
7967 (sh_reorg): Change PUT_MODE to PUT_REG_NOTE_KIND.
7968 (sh_expand_prologue): Add cast to enum type.
7969 (sh_expand_epilogue): Likewise.
7970 (tls_symbolic_operand): Change return type to enum tls_model.
7971 (fpscr_set_from_mem): Add cast to enum type.
7972 (legitimize_pic_address): Compare tls_symbolic_operand result with
7974 (sh_target_reg_class): Change return type to enum reg_class.
7975 * config/sh/sh.h (OVERRIDE_OPTIONS): Change CPU_xxx to
7977 * config/sh/sh-protos.h (tls_symbolic_operand): Update declaration.
7978 * config/sparc/sparc.c (sparc_override_options): Add cast to enum type.
7979 * config/sparc/sparc.md (empty_delay_slot): Return enum constant.
7980 (pic, calls_alloca, calls_eh_return, leaf_function): Likewise.
7981 (delayed_branch, tls_call_delay): Likewise.
7982 (eligible_for_sibcall_delay): Likewise.
7983 (eligible_for_return_delay): Likewise.
7984 * config/spu/spu.c (expand_builtin_args): Add cast to enum type.
7985 (spu_expand_builtin_1): Likewise.
7987 * c-typeck.c (convert_for_assignment): Issue -Wc++-compat warnings
7988 for all types of conversions.
7989 (output_init_element): Issue -Wc++-compat warning if needed when
7990 initializing a bitfield with enum type.
7991 * c-parser.c (c_parser_expression): Set original_type to
7992 original_type of right hand operand of comman operator.
7994 2009-04-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7996 * doc/c-tree.texi (Types, Functions, Expression trees): Fix
7998 * doc/cfg.texi (Maintaining the CFG, Liveness information): Likewise.
7999 * doc/cpp.texi (Standard Predefined Macros)
8000 (Implementation-defined behavior): Likewise.
8001 * doc/extend.texi (Function Attributes, Type Attributes): Likewise.
8002 * doc/gimple.texi (GIMPLE Exception Handling)
8003 (@code{GIMPLE_ASSIGN}): Likewise.
8004 * doc/install.texi (Prerequisites, Configuration, Specific): Likewise.
8005 * doc/invoke.texi (Warning Options, Optimize Options)
8006 (AVR Options, Darwin Options): Likewise.
8007 (Optimize Options): Reformulate -fwhole-program description.
8008 * doc/loop.texi (Lambda): Likewise.
8009 * doc/md.texi (Output Template, Define Constraints)
8010 (Standard Names, Insn Splitting): Likewise.
8011 * doc/options.texi (Option properties): Likewise.
8012 * doc/passes.texi (Tree-SSA passes): Likewise.
8013 * doc/rtl.texi (Side Effects, Assembler, Insns): Likewise.
8014 * doc/tm.texi (Register Classes, Old Constraints, Scalar Return)
8015 (File Names and DBX): Likewise.
8016 * doc/trouble.texi (Incompatibilities): Likewise.
8018 2009-04-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
8020 * spu.c (spu_machine_dependent_reorg): Make sure branch label on hint
8021 instruction is correct.
8023 2009-04-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
8025 Allow non-constant arguments to conversion intrinsics.
8026 * spu-protos.h (exp2_immediate_p, spu_gen_exp2): Declare.
8027 * predicates.md (spu_inv_exp2_operand, spu_exp2_operand): New.
8028 * spu.c (print_operand): Handle 'v' and 'w'.
8029 (exp2_immediate_p, spu_gen_exp2): Define.
8030 * spu-builtins.def (spu_convts, spu_convtu, spu_convtf_0,
8031 spu_convtf_1): Update parameter descriptions.
8032 * spu-builtins.md (spu_csflt, spu_cuflt, spu_cflts, spu_cfltu): Update.
8033 * constraints.md ('v', 'w'): New.
8034 * spu.md (UNSPEC_CSFLT, UNSPEC_CFLTS, UNSPEC_CUFLT, UNSPEC_CFLTU):
8036 (i2f, I2F): New define_mode_attr.
8037 (floatsisf2, floatv4siv4sf2, fix_truncsfsi2, fix_truncv4sfv4si2,
8038 floatunssisf2, floatunsv4siv4sf2, fixuns_truncsfsi2,
8039 fixuns_truncv4sfv4si2): Update to use mode attribute.
8040 (float<mode><i2f>2_mul, float<mode><i2f>2_div,
8041 fix_trunc<mode><f2i>2_mul, floatuns<mode><i2f>2_mul,
8042 floatuns<mode><i2f>2_div, fixuns_trunc<mode><f2i>2_mul): New
8043 patterns for combine.
8045 2009-04-27 Steven Bosscher <steven@gcc.gnu.org>
8047 * dbgcnt.def (cprop1, cprop2, gcse, jump_bypass): Remove
8048 (cprop, hoist, pre, store_motion): New debug counters.
8049 * tree-pass.h (pass_tracer): Move to list of gimple passes, it
8050 is not an RTL pass anymore.
8051 (pass_profiling): Remove extern decl for pass removed in 2005.
8052 (pass_gcse, pass_jump_bypass): Remove.
8053 * final.c (rest_of_clean_state): Set flag_rerun_cse_after_global_opts
8054 to 0 for clean state.
8055 * toplev.h (flag_rerun_cse_after_global_opts): Add extern declaration.
8056 * cse.c (gate_handle_cse_after_global_opts,
8057 rest_of_handle_cse_after_global_opts): New functions.
8058 (pass_cse_after_global_opts): New pass, does local CSE.
8059 * timevar.def (TV_GCSE, TV_CPROP1, TV_CPROP2, TV_BYPASS): Remove.
8060 (TV_CPROP): New timevar.
8061 * gcse.c (flag_rerun_cse_after_global_opts): New global variable.
8062 (run_jump_opt_after_gcse, max_gcse_regno): Remove global vars.
8063 (gcse_main, recompute_all_luids): Remove.
8064 (compute_hash_table_work): Call max_reg_num instead of reading
8066 (cprop_jump): Don't set run_jump_opt_after_gcse.
8067 (constprop_register): Always allow to alter jumps.
8068 (cprop_insn): Likewise.
8069 (do_local_cprop): Likewise.
8070 (local_cprop_pass): Likewise. Return non-zero if something changed.
8071 (cprop): Remove function, fold interesting bits into one_cprop_pass.
8072 (find_implicit_sets): Add note about missed optimization opportunity.
8073 (one_cprop_pass): Rewrite to be "the" CPROP pass, called from the
8074 pass_rtl_cprop execute function.
8075 Don't bother tracking the pass number, each pass gets its own dumpfile
8077 Always allow to alter jumpsand bypass jumps.
8078 (bypass_block): Don't ignore regno >= max_gcse_regno, find_bypass_set
8079 will just find no suitable set.
8080 (pre_edge_insert): Fix dumping, this function is for PRE only.
8081 (one_pre_gcse_pass): Rewrite to be "the" PRE pass, called from the
8082 pass_rtl_pre execute function.
8083 (hoist_code): Return non-zero if something changed. Keep track of
8084 substitutions and insertions for statistics gathering similar to PRE.
8085 (one_code_hoisting_pass): Rewrite to be "the" code hoisting pass,
8086 called from the pass_rtl_hoist execute function. Show pass statistics.
8087 (compute_store_table): Use max_reg_num directly instead of using the
8088 formerly global max_gcse_regno.
8089 (build_store_vectors): Likewise.
8090 (replace_store_insn): Fix dumping.
8091 (store_motion): Rename to ...
8092 (one_store_motion_pass): ... this. Rewrite to be "the" STORE_MOTION
8093 pass, called from the pass_rtl_store_motion execute function. Keep
8094 track of substitutions and insertions for statistics gathering similar
8096 (bypass_jumps): Remove, fold interesting bits into ...
8097 (one_cprop_pass): ... this. Rewrite to be "the" CPROP pass, called
8098 from the pass_rtl_cprop execute function.
8099 (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
8100 pass_jump_bypass): Remove.
8101 (gate_handle_gcse, rest_of_handle_gcse): Remove.
8102 (gate_rtl_cprop, execute_rtl_cprop, pass_rtl_cprop): New.
8103 (gate_rtl_pre, execute_rtl_pre, pass_rtl_pre): New.
8104 (gate_rtl_hoist, execute_rtl_hoist, pass_rtl_hoist): New.
8105 (gate_rtl_store_motion, execute_rtl_store_motion,
8106 pass_rtl_store_motion): New.
8107 * common.opt: Remove flag_cse_skip_blocks, adjust documentation to
8108 make it clear that -fcse-skip-blocks is a no-op for backward compat.
8109 * passes.c (init_optimization_passes): Remove pass_gcse and
8110 pass_jump_bypass. Schedule cprop, pre, hoist, cprop, store_motion,
8111 and cse_after_global_opts in place of pass_gcse. Schedule cprop
8112 instead of pass_jump_bypass.
8114 2009-04-27 Richard Guenther <rguenther@suse.de>
8117 * gimplify.c (gimplify_expr): If we are required to create
8118 a temporary make sure it ends up as register.
8120 2009-04-27 H.J. Lu <hongjiu.lu@intel.com>
8123 * config/i386/i386.c (construct_container): Don't call
8124 gen_reg_or_parallel with BLKmode on X86_64_SSE_CLASS,
8125 X86_64_SSESF_CLASS and X86_64_SSEDF_CLASS.
8127 2009-04-27 Michael Matz <matz@suse.de>
8129 * ssaexpand.h (struct ssaexpand): Member 'values' is a bitmap.
8130 (get_gimple_for_ssa_name): Adjust, lookup using SSA_NAME_DEF_STMT.
8131 * tree-ssa-live.h: (find_replaceable_exprs): Return a bitmap.
8132 (dump_replaceable_exprs): Take a bitmap.
8133 * cfgexpand.c (gimple_cond_pred_to_tree): Handle bitmap instead of
8135 (expand_gimple_basic_block): Likewise.
8136 * tree-ssa-ter.c (struct temp_expr_table_d): Make
8137 replaceable_expressions member a bitmap.
8138 (free_temp_expr_table): Pass back and deal with bitmap, not gimple*.
8139 (mark_replaceable): Likewise.
8140 (find_replaceable_in_bb, dump_replaceable_exprs): Likewise.
8141 * tree-outof-ssa.c (remove_ssa_form): 'values' is a bitmap.
8143 2009-04-27 Richard Guenther <rguenther@suse.de>
8145 * tree-cfg.c (remove_useless_stmts): Verify stmts afterwards.
8146 (verify_stmts): Dispatch to gimple/type verification code.
8147 * tree-inline.c (remap_gimple_op_r): Work around C++ FE
8148 issue with call argument types.
8150 2009-04-27 Michael Matz <matz@suse.de>
8152 * tree-into-ssa.c (regs_to_rename, mem_syms_to_rename): Remove.
8153 (init_update_ssa, delete_update_ssa, update_ssa): Remove references
8156 2009-04-27 Richard Sandiford <rdsandiford@googlemail.com>
8157 Eric Botcazou <ebotcazou@adacore.com>
8159 * resource.c (find_basic_block): Use BLOCK_FOR_INSN to look up
8160 a label's basic block.
8161 (mark_target_live_regs): Tidy and rework obsolete comments.
8162 Change back DF problem to LIVE. If a label starts a basic block,
8163 assume that all registers that used to be live then still are.
8164 (init_resource_info): If a label starts a basic block, set its
8165 BLOCK_FOR_INSN accordingly.
8166 (fini_resource_info): Undo the setting of BLOCK_FOR_INSN.
8168 2009-04-27 Richard Guenther <rguenther@suse.de>
8170 * tree-flow-inline.h (function_ann): Remove.
8171 (get_function_ann): Likewise.
8172 * tree-dfa.c (create_function_ann): Remove.
8173 * tree-flow.h (struct static_var_ann_d): Remove.
8174 (struct function_ann_d): Likewise.
8175 (union tree_ann_d): Remove fdecl member.
8176 (function_ann_t): Remove.
8177 (function_ann, get_function_ann, create_function_ann): Remove
8180 2009-04-27 Uros Bizjak <ubizjak@gmail.com>
8182 * config/alpha/alpha.c (code_for_builtin): Declare as enum insn_code.
8184 2009-04-27 Jan Hubicka <jh@suse.cz>
8186 * ipa-pure-const.c (struct funct_state_d): New fields
8187 state_previously_known, looping_previously_known; remove
8188 state_set_in_source.
8189 (analyze_function): Use new fields.
8190 (propagate): Avoid assumption that state_set_in_source imply
8193 * tree-ssa-loop-niter.c (finite_loop_p): New function.
8194 * tree-ssa-loop-ivcanon.c (empty_loop_p): Use it.
8195 * cfgloop.h (finite_loop_p): Declare.
8197 2009-04-26 Michael Matz <matz@suse.de>
8199 * tree-flow.h (tree_ann_common_d): Remove aux and value_handle members.
8201 2009-04-26 Michael Matz <matz@suse.de>
8203 * tree-pass.h (pass_del_ssa, pass_mark_used_blocks,
8204 pass_free_cfg_annotations, pass_free_datastructures): Remove decls.
8205 * gimple-low.c (mark_blocks_with_used_vars, mark_used_blocks,
8206 pass_mark_used_blocks): Remove.
8207 * tree-optimize.c (pass_free_datastructures,
8208 execute_free_cfg_annotations, pass_free_cfg_annotations): Remove.
8209 * passes.c (init_optimization_passes): Don't call
8210 pass_mark_used_blocks, remove dead code.
8212 2009-04-26 H.J. Lu <hongjiu.lu@intel.com>
8214 * tree-outof-ssa.c (rewrite_trees): Add ATTRIBUTE_UNUSED.
8215 * tree-ssa-live.h (register_ssa_partition): Likewise.
8217 2009-04-26 Michael Matz <matz@suse.de>
8220 * builtins.c (fold_builtin_next_arg): Handle SSA names.
8221 * tree-ssa-copyrename.c (rename_ssa_copies): Use ssa_name() directly.
8222 * tree-ssa-coalesce.c (create_outofssa_var_map): Mark only useful
8224 (compare_pairs): Swap cost comparison.
8225 (coalesce_ssa_name): Don't use change_partition_var.
8226 * tree-nrv.c (struct nrv_data): Add modified member.
8227 (finalize_nrv_r): Set it.
8228 (tree_nrv): Use it to update statements.
8229 (pass_nrv): Require PROP_ssa.
8230 * tree-mudflap.c (mf_decl_cache_locals,
8231 mf_build_check_statement_for): Use make_rename_temp.
8232 (pass_mudflap_2): Require PROP_ssa, run ssa update at finish.
8233 * alias.c (find_base_decl): Handle SSA names.
8234 * emit-rtl (set_reg_attrs_for_parm): Make non-static.
8235 (component_ref_for_mem_expr): Don't leak SSA names into RTL.
8236 * rtl.h (set_reg_attrs_for_parm): Declare.
8237 * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Rename
8238 to "optimized", remove unused locals at finish.
8239 (execute_free_datastructures): Make global, call
8240 delete_tree_cfg_annotations.
8241 (execute_free_cfg_annotations): Don't call
8242 delete_tree_cfg_annotations.
8244 * ssaexpand.h: New file.
8245 * expr.c (toplevel): Include ssaexpand.h.
8246 (expand_assignment): Handle SSA names the same as register variables.
8247 (expand_expr_real_1): Expand SSA names.
8248 * cfgexpand.c (toplevel): Include ssaexpand.h.
8249 (SA): New global variable.
8250 (gimple_cond_pred_to_tree): Fold TERed comparisons into predicates.
8251 (SSAVAR): New macro.
8252 (set_rtl): New helper function.
8253 (add_stack_var): Deal with SSA names, use set_rtl.
8254 (expand_one_stack_var_at): Likewise.
8255 (expand_one_stack_var): Deal with SSA names.
8256 (stack_var_size_cmp): Use code (SSA_NAME / DECL) as tie breaker
8257 before unique numbers.
8258 (expand_stack_vars): Use set_rtl.
8259 (expand_one_var): Accept SSA names, add asserts for them, feed them
8260 to above subroutines.
8261 (expand_used_vars): Expand all partitions (without default defs),
8262 then only the local decls (ignoring those expanded already).
8263 (expand_gimple_cond): Remove edges when jumpif() expands an
8265 (expand_gimple_basic_block): Don't clear EDGE_EXECUTABLE here,
8266 or remove abnormal edges. Ignore insns setting the LHS of a TERed
8268 (gimple_expand_cfg): Call into rewrite_out_of_ssa, initialize
8269 members of SA; deal with PARM_DECL partitions here; expand
8270 all PHI nodes, free tree datastructures and SA. Commit instructions
8271 on edges, clear EDGE_EXECUTABLE and remove abnormal edges here.
8272 (pass_expand): Require and destroy PROP_ssa, verify SSA form, flow
8273 info and statements at start, collect garbage at finish.
8274 * tree-ssa-live.h (struct _var_map): Remove partition_to_var member.
8275 (VAR_ANN_PARTITION) Remove.
8276 (change_partition_var): Don't declare.
8277 (partition_to_var): Always return SSA names.
8278 (var_to_partition): Only accept SSA names.
8279 (register_ssa_partition): Only check argument.
8280 * tree-ssa-live.c (init_var_map): Don't allocate partition_to_var
8282 (delete_var_map): Don't free it.
8283 (var_union): Only accept SSA names, simplify.
8284 (partition_view_init): Mark only useful SSA names as used.
8285 (partition_view_fini): Only deal with SSA names.
8286 (change_partition_var): Remove.
8287 (dump_var_map): Use ssa_name instead of partition_to_var member.
8288 * tree-ssa.c (delete_tree_ssa): Don't remove PHI nodes on RTL
8290 * tree-outof-ssa.c (toplevel): Include ssaexpand.h and expr.h.
8291 (struct _elim_graph): New member const_dests; nodes member vector of
8293 (set_location_for_edge): New static helper.
8294 (create_temp): Remove.
8295 (insert_partition_copy_on_edge, insert_part_to_rtx_on_edge,
8296 insert_value_copy_on_edge, insert_rtx_to_part_on_edge): New functions.
8297 (new_elim_graph): Allocate const_dests member.
8298 (clean_elim_graph): Truncate const_dests member.
8299 (delete_elim_graph): Free const_dests member.
8300 (elim_graph_size): Adapt to new type of nodes member.
8301 (elim_graph_add_node): Likewise.
8302 (eliminate_name): Likewise.
8303 (eliminate_build): Don't take basic block argument, deal only with
8304 partition numbers, not variables.
8305 (get_temp_reg): New static helper.
8306 (elim_create): Use it, deal with RTL temporaries instead of trees.
8307 (eliminate_phi): Adjust all calls to new signature.
8308 (assign_vars, replace_use_variable, replace_def_variable): Remove.
8309 (rewrite_trees): Only do checking.
8310 (edge_leader, stmt_list, leader_has_match, leader_match): Remove.
8311 (same_stmt_list_p, identical_copies_p, identical_stmt_lists_p,
8312 init_analyze_edges_for_bb, fini_analyze_edges_for_bb,
8313 contains_tree_r, MAX_STMTS_IN_LATCH,
8314 process_single_block_loop_latch, analyze_edges_for_bb,
8315 perform_edge_inserts): Remove.
8316 (expand_phi_nodes): New global function.
8317 (remove_ssa_form): Take ssaexpand parameter. Don't call removed
8318 functions, initialize new parameter, remember partitions having a
8320 (finish_out_of_ssa): New global function.
8321 (rewrite_out_of_ssa): Make global. Adjust call to remove_ssa_form,
8322 don't reset in_ssa_p here, don't disable TER when mudflap.
8323 (pass_del_ssa): Remove.
8324 * tree-flow.h (struct var_ann_d): Remove out_of_ssa_tag and
8326 (execute_free_datastructures): Declare.
8327 * Makefile.in (SSAEXPAND_H): New variable.
8328 (tree-outof-ssa.o, expr.o, cfgexpand.o): Depend on SSAEXPAND_H.
8329 * basic-block.h (commit_one_edge_insertion): Declare.
8330 * passes.c (init_optimization_passes): Move pass_nrv and
8331 pass_mudflap2 before pass_cleanup_cfg_post_optimizing, remove
8332 pass_del_ssa, pass_free_datastructures, pass_free_cfg_annotations.
8333 * cfgrtl.c (commit_one_edge_insertion): Make global, don't declare.
8334 (redirect_branch_edge): Deal with super block when expanding, split
8335 out jump patching itself into ...
8336 (patch_jump_insn): ... here, new static helper.
8338 2009-04-26 Michael Matz <matz@suse.de>
8340 * tree-ssa-copyrename.c (rename_ssa_copies): Don't iterate
8341 beyond num_ssa_names.
8342 * tree-ssa-ter.c (free_temp_expr_table): Likewise.
8343 * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
8345 2009-04-26 Jakub Jelinek <jakub@redhat.com>
8348 * fwprop.c (forward_propagate_asm): New function.
8349 (forward_propagate_and_simplify): Propagate also into __asm, if it
8350 doesn't increase the number of referenced registers.
8353 * stmt.c (warn_if_unused_value): Look through NON_LVALUE_EXPR.
8355 2009-04-26 Jakub Jelinek <jakub@redhat.com>
8357 * tree-nested.c (get_nonlocal_vla_type): If not optimizing, call
8358 note_nonlocal_vla_type for nonlocal VLAs.
8359 (note_nonlocal_vla_type, note_nonlocal_block_vlas,
8360 contains_remapped_vars, remap_vla_decls): New functions.
8361 (convert_nonlocal_reference_stmt): If not optimizing, call
8362 note_nonlocal_block_vlas on GIMPLE_BIND block vars.
8363 (nesting_copy_decl): Return {VAR,PARM,RESULT}_DECL unmodified
8364 if it wasn't found in var_map.
8365 (finalize_nesting_tree_1): Call remap_vla_decls. If outermost
8366 GIMPLE_BIND doesn't have gimple_bind_block, chain debug_var_chain
8367 to BLOCK_VARS (DECL_INITIAL (root->context)) instead of calling
8369 * gimplify.c (nonlocal_vlas): New variable.
8370 (gimplify_var_or_parm_decl): Add debug VAR_DECLs for non-local
8372 (gimplify_body): Create and destroy nonlocal_vlas.
8374 * dwarf2out.c (loc_descr_plus_const): New function.
8375 (build_cfa_aligned_loc, tls_mem_loc_descriptor,
8376 mem_loc_descriptor, loc_descriptor_from_tree_1,
8377 descr_info_loc, gen_variable_die): Use it.
8379 * tree.h (DECL_BY_REFERENCE): Note that it is also valid for
8380 !TREE_STATIC VAR_DECLs.
8381 * dwarf2out.c (loc_by_reference, gen_decl_die): Handle
8382 DECL_BY_REFERENCE on !TREE_STATIC VAR_DECLs.
8383 (gen_variable_die): Likewise. Don't look at TREE_PRIVATE if
8384 DECL_BY_REFERENCE is valid.
8385 * dbxout.c (DECL_ACCESSIBILITY_CHAR): Don't look at TREE_PRIVATE
8386 for PARM_DECLs, RESULT_DECLs or !TREE_STATIC VAR_DECLs.
8387 * tree-nested.c (get_nonlocal_debug_decl, get_local_debug_decl):
8388 Copy DECL_BY_REFERENCE.
8389 (struct nesting_copy_body_data): New type.
8390 (nesting_copy_decl): New function.
8391 (finalize_nesting_tree_1): Remap types of debug_var_chain variables,
8392 if they have variable length.
8394 2009-04-26 Michael Matz <matz@suse.de>
8396 * tree-sra.c (sra_build_assignment): Don't use into_ssa mode,
8397 mark new temporaries for renaming.
8399 2009-04-26 Joseph Myers <joseph@codesourcery.com>
8402 * c-decl.c (global_bindings_p): Return negative value.
8403 (c_variable_size): New. Based on variable_size from
8405 (grokdeclarator): Call c_variable_size not variable_size.
8407 2009-04-26 Uros Bizjak <ubizjak@gmail.com>
8409 * config/i386/i386.c (print_operand) ['z']: Fix typo.
8411 2009-04-26 Kai Tietz <kai.tietz@onevision.com>
8413 * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR):
8414 Redefine it to just use mingw/include.
8415 (ASM_SPEC): Rules for -m32 and -m64.
8416 (LINK_SPEC): Use Likewise.
8417 (SPEC_32): New define.
8418 (SPEC_64): Likewise.
8419 (SUB_LINK_SPEC): Likewise.
8420 (MULTILIB_DEFAULTS): New define.
8421 * config/i386/t-mingw-w64 (MULTILIB_OPTIONS):
8422 Add multilib options.
8423 (MULTILIB_DIRNAMES): Likewise.
8424 (MULTILIB_OSDIRNAMES): Likewise.
8426 (INSTALL_LIBGCC): Likewise.
8428 2009-04-26 Joseph Myers <joseph@codesourcery.com>
8431 * c-tree.h (enum c_inline_static_type): New.
8432 (record_inline_static): Declare.
8433 * c-decl.c (struct c_inline_static, c_inline_statics,
8434 record_inline_static, check_inline_statics): New.
8435 (pop_file_scope): Call check_inline_statics.
8436 (start_decl): Call record_inline_static instead of pedwarning
8437 directly for static in inline function.
8438 * c-typeck.c (build_external_ref): Call record_inline_static
8439 instead of pedwarning directly for static referenced in inline
8442 2009-04-26 Steven Bosscher <steven@gcc.gnu.org>
8444 * df-scan.c (df_insn_rescan): Salvage insn's LUID if the insn is
8445 not new but only being rescanned.
8446 * gcse.c (uid_cuid, max_uid, INSN_CUID, max_cuid, struct reg_set,
8447 reg_set_table, REG_SET_TABLE_SLOP, reg_set_in_block,
8448 alloc_reg_set_mem, free_reg_set_mem, record_one_set,
8449 record_set_info, compute_set, grealloc): Remove.
8450 (recompute_all_luids): New function.
8451 (gcse_main): Don't compute sets, and don't do related memory
8452 allocations/free-ing. If something changed before the end of the
8453 pass, update LUIDs using recompute_all_luids.
8454 (alloc_gcse_mem): Don't compute LUIDs. Don't allocate reg_set memory.
8455 (free_gcse_mem): Don't free it either.
8456 (oprs_unchanged_p, load_killed_in_block, record_last_reg_set_info):
8457 Use the df insn LUIDs.
8458 (load_killed_in_block): Likewise.
8459 (compute_hash_table_work): Don't compute reg_set_in_block.
8460 (compute_transp): Use DF_REG_DEF_CHAINs.
8461 (local_cprop_pass): Don't use compute_sets and related functions.
8462 (one_cprop_pass, pre_gcse, one_pre_gcse_pass, one_code_hoisting_pass):
8463 Use get_max_uid() instead of max_cuid.
8464 (insert_insn_end_basic_block, pre_insert_copy_insn,
8465 update_ld_motion_stores): Don't try to
8466 keep reg_set tables up to date.
8467 (pre_insert_copies): Use df insn LUIDs.
8468 (sbitmap pre_redundant_insns): Replace with uses of INSN_DELETED_P.
8469 (reg_set_info): Don't use extra bitmap argument.
8470 (compute_store_table): Don't compute reg_set_in_block. Use DF scan
8471 information to compute regs_set_in_block.
8472 (free_store_memory, store_motion): Don't nullify reg_set_in_block.
8473 (bypass_jumps): Don't use compute_sets and friends.
8475 2009-04-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8478 * opts.c (undocumented_msg): Do not leave blank even with
8481 2009-04-25 Joseph Myers <joseph@codesourcery.com>
8483 * c-decl.c (build_enumerator): Allow values folding to integer
8484 constants but not integer constant expressions with a pedwarn if
8487 2009-04-25 Joseph Myers <joseph@codesourcery.com>
8490 * c-typeck.c (c_expr_sizeof_type): Create a C_MAYBE_CONST_EXPR
8491 with non-null C_MAYBE_CONST_EXPR_PRE if size of a variable-length
8492 type is an integer constant.
8494 2009-04-25 Uros Bizjak <ubizjak@gmail.com>
8497 * config/i386/i386.c (print_operand) ['z']: Revert handling of
8500 2009-04-25 Joseph Myers <joseph@codesourcery.com>
8503 * c-decl.c (grokdeclarator): Diagnose declarations of functions
8504 with variably modified return type and no storage class
8505 specifiers, except for the case of nested functions. Distinguish
8506 extern declarations of functions with variably modified return
8507 types from those of objects with variably modified types.
8509 2009-04-25 Jan Hubicka <jh@suse.cz>
8511 * tree.c (list_equal_p): New function.
8512 * tree.h (list_equal_p): Declare.
8513 * coretypes.h (edge_def, edge, const_edge, basic_block_def
8514 basic_block_def, basic_block, const_basic_block): New.
8515 * tree-eh.c (make_eh_edge): EH edges are not abnormal.
8516 (redirect_eh_edge): New function.
8517 (make_eh_edge_update_phi): EH edges are not abnormal.
8518 * except.c: Include tree-flow.h.
8519 (list_match): New function.
8520 (eh_region_replaceable_by_p): New function.
8521 (replace_region): New function.
8522 (hash_type_list): New function.
8523 (hash_eh_region): New function.
8524 (eh_regions_equal_p): New function.
8525 (merge_peers): New function.
8526 (remove_unreachable_regions): Verify EH tree when checking;
8528 (copy_eh_region_1): New function.
8529 (copy_eh_region): New function.
8530 (push_reachable_handler): New function.
8531 (build_post_landing_pads, dw2_build_landing_pads): Be ready for
8532 regions without label but with live RESX.
8533 * except.h (redirect_eh_edge_to_label): New.
8534 * tree-flow.h (redirect_eh_edge): New.
8535 * coretypes.h (edge_def, edge, const_edge, basic_block_def
8536 basic_block_def, basic_block, const_basic_block): Remove.
8537 * Makefile.in (except.o): Add dependency on tree-flow.h
8538 * tree-cfg.c (gimple_redirect_edge_and_branch): Handle EH edges.
8539 * basic-block.h (edge, const_edge, basic_block, const_basic_block):
8542 2009-04-25 Eric Botcazou <ebotcazou@adacore.com>
8545 * config/sparc/sparc.c (sparc_gimplify_va_arg): Set TREE_ADDRESSABLE
8546 on the destination of memcpy.
8548 2009-04-25 Paolo Bonzini <bonzini@gnu.org>
8550 * doc/tm.texi (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
8551 REGNO_MODE_OK_FOR_REG_BASE_P, REGNO_MODE_CODE_OK_FOR_BASE_P,
8552 REGNO_OK_FOR_INDEX_P): Mention strict/nonstrict difference.
8554 2009-04-25 Jan Hubicka <jh@suse.cz>
8556 * tree-eh.c (tree_remove_unreachable_handlers): Handle shared labels.
8557 (tree_empty_eh_handler_p): Allow non-EH predecestors; allow region
8558 to be reached by different label than left.
8559 (update_eh_edges): Update comment; remove edge_to_remove if possible
8560 and return true if suceeded.
8561 (cleanup_empty_eh): Accept sharing map; handle shared regions.
8562 (cleanup_eh): Compute sharing map.
8563 * except.c (remove_eh_handler_and_replace): Add argument if we should
8565 (remove_unreachable_regions): Update for label sharing.
8566 (label_to_region_map): Likewise.
8567 (get_next_region_sharing_label): New function.
8568 (remove_eh_handler_and_replace): Add update_catch_try parameter; update
8570 (remove_eh_handler): Update.
8571 (remove_eh_region_and_replace_by_outer_of): New function.
8572 * except.h (struct eh_region): Add next_region_sharing_label.
8573 (remove_eh_region_and_replace_by_outer_of,
8574 get_next_region_sharing_label): Declare.
8575 * tree-cfgcleanup.c (tree_forwarder_block_p): Simplify.
8577 2009-04-25 Jan Hubicka <jh@suse.cz>
8579 * tree-cfg.c (split_critical_edges): Split also edges where we can't
8580 insert code even if they are not critical.
8582 2009-04-25 Jan Hubicka <jh@suse.cz>
8584 * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
8585 (gimple_can_remove_branch_p): EH edges won't remove branch by
8587 * tree-inline.c (update_ssa_across_abnormal_edges): Do handle
8588 updating of non-abnormal EH edges.
8589 * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
8590 (gimple_can_remove_branch_p): EH edges are unremovable by redirection.
8591 (split_critical_edges): Split also edges where emitting code on them
8592 will lead to splitting later.
8594 2009-04-25 Uros Bizjak <ubizjak@gmail.com>
8595 H.J. Lu <hongjiu.lu@intel.com>
8598 * configure.ac (HAVE_AS_IX86_FILDQ): On x86 targets check whether
8599 the configured assembler supports fildq and fistpq mnemonics.
8600 (HAVE_AS_IX86_FILDS): Rename from HAVE_GAS_FILDS_FISTS.
8601 * configure: Regenerated.
8604 * config/i386/i386.c (print_operand): Handle 'Z'.
8605 ['z']: Remove handling of special fild/fist suffixes.
8606 (output_fix_trunc): Use '%Z' to output suffix of fist{,p,tp} insn.
8607 * config/i386/i386.md (*floathi<mode>2_i387): Use '%Z' to output
8608 suffix of fild insn.
8609 (*floatsi<mode>2_vector_mixed): Ditto.
8610 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Ditto.
8611 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Ditto.
8612 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
8613 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387): Ditto.
8614 * config/i386/gas.h (GAS_MNEMONICS): Remove.
8616 2009-04-25 Ben Elliston <bje@au.ibm.com>
8618 * genrecog.c (validate_pattern): Do not warn for VOIDmode CALLs as
8619 the source of a set operation.
8621 2009-04-25 Anatoly Sokolov <aesok@post.ru>
8623 * target.h (struct gcc_target): Add case_values_threshold field.
8624 * target-def.h (TARGET_CASE_VALUES_THRESHOLD): New.
8625 (TARGET_INITIALIZER): Use TARGET_CASE_VALUES_THRESHOLD.
8626 * targhooks.c (default_case_values_threshold): New function.
8627 * targhooks.h (default_case_values_threshold): Declare function.
8628 * stmt.c (expand_case): Use case_values_threshold target hook.
8629 * expr.h (case_values_threshold): Remove declartation.
8630 * expr.c (case_values_threshold): Remove function.
8631 * doc/tm.texi (CASE_VALUES_THRESHOLD): Revise documentation.
8633 * config/avr/avr.h (CASE_VALUES_THRESHOLD): Remove macro.
8634 * config/avr/avr.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
8635 (avr_case_values_threshold): Declare as static.
8636 * config/avr/avr-protos.h (avr_case_values_threshold): Remove.
8638 * config/avr/mn10300.h (CASE_VALUES_THRESHOLD): Remove macro.
8639 * config/avr/mn10300.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
8640 (mn10300_case_values_threshold): New function.
8642 2009-04-24 H.J. Lu <hongjiu.lu@intel.com>
8644 * ira.c (setup_cover_and_important_classes): Add enum cast.
8646 2009-04-24 Vladimir Makarov <vmakarov@redhat.com>
8648 * genpreds.c (write_enum_constraint_num): Output definition of
8649 CONSTRAINT_NUM_DEFINED_P macro.
8650 * ira.c (setup_cover_and_important_classes): Use
8651 CONSTRAINT_NUM_DEFINED_P instead of CONSTRAINT__LIMIT in #ifdef.
8653 2009-04-24 DJ Delorie <dj@redhat.com>
8655 * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Test
8656 __SH2A_SINGLE_ONLY__ also.
8658 2009-04-24 Steve Ellcey <sje@cup.hp.com>
8660 * config/ia64/ia64.md (movfs_internal): Allow flt constants.
8661 (movdf_internal): Ditto.
8662 * config/ia64/ia64.c (ia64_legitimate_constant_p): Allow
8663 SFmode and DFmode constants.
8664 (ia64_print_operand): Add 'G' format for printing
8665 floating point constants.
8667 2009-04-24 Richard Guenther <rguenther@suse.de>
8669 * tree-vrp.c (extract_range_from_binary_expr): Handle overflow
8670 from unsigned additions.
8672 2009-04-24 Joseph Myers <joseph@codesourcery.com>
8674 * c-typeck.c (set_init_index): Allow array designators that are
8675 not integer constant expressions with a pedwarn if pedantic.
8677 2009-04-24 Bernd Schmidt <bernd.schmidt@analog.com>
8679 * simplify-rtx.c (simplify_binary_operation_1, case AND): Result is
8680 zero if no overlap in nonzero bits between the operands.
8682 2009-04-24 Ian Lance Taylor <iant@google.com>
8684 * combine.c (record_value_for_reg): Change 0 to VOIDmode, twice.
8685 (record_dead_and_set_regs): Likewise.
8686 * df.h (struct df_mw_hardreg): Change flags field to int.
8687 (struct df_base_ref): Likewise.
8688 (struct df): Change changeable_flags field to int.
8689 * df-scan.c (df_defs_record): Change clobber_flags to int.
8690 * dwarf2.h (enum dwarf_tag): Make lo_user and hi_user values enum
8691 constants rather than #define macros.
8692 (enum dwarf_attribute, enum dwarf_location_atom): Likewise.
8693 (enum dwarf_type, enum dwarf_endianity_encoding): Likewise.
8694 (enum dwarf_calling_convention): Likewise.
8695 (enum dwarf_line_number_x_ops): Likewise.
8696 (enum dwarf_call_frame_info): Likewise.
8697 (enum dwarf_source_language): Likewise.
8698 * dwarf2out.c (int_loc_descriptor): Add cast to enum type.
8699 (add_calling_convention_attribute): Likewise.
8700 * fold-const.c (fold_undefer_overflow_warnings): Add cast to enum type.
8701 (combine_comparisons): Change compcode to int. Add cast to enum type.
8702 * genrecog.c (maybe_both_true_2): Change c to int.
8703 (write_switch): Likewise. Add cast to enum type.
8704 * gimplify.c (gimplify_omp_for): Handle return values from
8705 gimplify_expr using MIN rather than bitwise or.
8706 (gimplify_expr): Add cast to enum type.
8707 * ipa-prop.c (update_jump_functions_after_inlining): Change
8708 IPA_BOTTOM to IPA_JF_UNKNOWN.
8709 * ira.c (setup_class_subset_and_memory_move_costs): Change mode to int.
8710 Add casts to enum type.
8711 (setup_cover_and_important_classes): Change cl to int. Add casts
8713 (setup_class_translate): Change cl and mode to int.
8714 (ira_init_once): Change mode to int.
8715 (free_register_move_costs): Likewise.
8716 (setup_prohibited_mode_move_regs): Add casts to enum type.
8717 * langhooks.c (add_builtin_function_common): Rework assertion that
8718 value fits bitfield.
8719 * mcf.c (add_fixup_edge): Change type parameter to edge_type.
8720 * omega.c (omega_do_elimination): Avoid math on enum types.
8721 * optabs.c (expand_vec_shift_expr): Remove casts to int.
8722 * opts.c (set_debug_level): Change 2 to enum constant. Use new
8723 int local to handle integral_argment value.
8724 * regmove.c (try_auto_increment): Change PUT_MODE to
8726 * reload.c (push_secondary_reload): Add casts to enum type.
8727 (secondary_reload_class, find_valid_class): Likewise.
8728 * reload1.c (emit_input_reload_insns): Likewise.
8729 * rtl.h (NOTE_VAR_LOCATION_STATUS): Likewise.
8730 * sel-sched.c (init_hard_regs_data): Change cur_mode to int.
8731 * sel-sched-ir.c (hash_with_unspec_callback): Change 0 to enum
8733 * tree.c (build_common_builtin_nodes): Add casts to enum type.
8734 * tree-complex.c (complex_lattice_t): Typedef to int rather than
8736 (expand_complex_libcall): Add casts to enum type.
8737 * tree-into-ssa.c (get_ssa_name_ann): Change 0 to enum constant.
8738 * tree-vect-loop.c (vect_model_reduction_cost): Compare reduc_code
8739 with ERROR_MARK, not NUM_TREE_CODES.
8740 (vect_create_epilog_for_reduction): Likewise.
8741 (vectorizable_reduction): Don't initialize epiloc_reduc_code.
8742 When not using it, set it to ERROR_MARK rather than NUM_TREE_CODES.
8743 * tree-vect-patterns.c (vect_pattern_recog_1): Change vec_mode to
8745 * tree-vect-stmts.c (new_stmt_vec_info): Change 0 to
8746 vect_unused_in_loop. Change 0 to loop_vect.
8747 * tree-vectorizer.c (vect_set_verbosity_level): Add casts to enum type.
8748 * var-tracking.c (get_init_value): Change return type to enum
8750 * vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
8751 * config/arm/arm.c (fp_model_for_fpu): Change to array to enum
8753 (arm_override_options): Add casts to enum type.
8754 (arm_emit_tls_decoration): Likewise.
8755 * config/i386/i386.c (ix86_function_specific_restore): Add casts
8757 * config/i386/i386-c.c (ix86_pragma_target_parse): Likewise.
8758 * config/ia64/ia64.c (ia64_expand_compare): Change magic to int.
8759 * config/rs6000/rs6000.c (rs6000_override_options): Add casts to
8761 * config/s390/s390.c (code_for_builtin_64): Change to array of
8763 (code_for_builtin_31): Likewise.
8764 (s390_expand_builtin): Change code_for_builtin to enum insn_code
8766 * config/sparc/sparc.c (sparc_override_options): Change value
8767 field in struct code_model to enum cmodel. In initializer change
8768 0 to NULL and add cast to enum type.
8770 * c-typeck.c (build_modify_expr): Add lhs_origtype parameter.
8771 Change all callers. Issue a -Wc++-compat warning using
8772 lhs_origtype if necessary.
8773 (convert_for_assignment): Issue -Wc++-compat warnings about
8774 invalid conversions to enum type on assignment.
8775 * c-common.h (build_modify_expr): Update declaration.
8777 2009-04-24 Nick Clifton <nickc@redhat.com>
8779 * config/iq2000/iq2000.c (function_arg): Handle TImode values.
8780 (function_arg_advance): Likewise.
8781 * config/iq2000/iq2000.md (movsi_internal2): Fix the length of the
8784 2009-04-24 Andreas Krebbel <krebbel1@de.ibm.com>
8786 * config/s390/constraints.md ('I', 'J'): Fix condition.
8788 2009-04-24 Diego Novillo <dnovillo@google.com>
8790 * gengtype-parse.c (parse_error): Add newline after message.
8792 2009-04-24 H.J. Lu <hongjiu.lu@intel.com>
8794 * config/i386/sse.md (avxmodesuffixs): Removed.
8795 (*avx_pinsr<avxmodesuffixs>): Renamed to ...
8796 (*avx_pinsr<ssevecsize>): This.
8798 2009-04-24 Bernd Schmidt <bernd.schmidt@analog.com>
8800 * loop-iv.c (replace_single_def_regs): Look for REG_EQUAL notes;
8801 follow chains of regs with a single definition, and allow expressions
8802 that are function_invariant_p.
8803 (simple_rhs_p): Allow expressions that are function_invariant_p.
8805 2009-04-24 Paolo Bonzini <bonzini@gnu.org>
8808 * fold-const.c (fold_cond_expr_with_comparison): When folding
8809 > and >= to MAX, make sure the MAX uses the same type as the
8810 comparison's operands.
8812 2009-04-24 Nick Clifton <nickc@redhat.com>
8814 * config/frv/frv.c (frv_frame_access): Do not use reg+reg
8815 addressing for DImode accesses.
8816 (frv_print_operand_address): Handle PLUS case.
8817 * config/frv/frv.h (FIXED_REGISTERS): Mark link register as fixed.
8819 2009-04-24 Jakub Jelinek <jakub@redhat.com>
8821 PR rtl-optimization/39794
8822 * alias.c (canon_true_dependence): Add x_addr argument.
8823 * rtl.h (canon_true_dependence): Adjust prototype.
8824 * cse.c (check_dependence): Adjust canon_true_dependence callers.
8825 * cselib.c (cselib_invalidate_mem): Likewise.
8826 * gcse.c (compute_transp): Likewise.
8827 * dse.c (scan_reads_nospill): Likewise.
8828 (record_store, check_mem_read_rtx): Likewise. For non-const-or-frame
8829 addresses pass base->val_rtx as mem_addr, for const-or-frame addresses
8830 canon_base_addr of the group, plus optional offset.
8831 (struct group_info): Rename canon_base_mem to
8833 (get_group_info): Set canon_base_addr to canon_rtx of base, not
8834 canon_rtx of base_mem.
8836 2009-04-23 Paolo Bonzini <bonzini@gnu.org>
8838 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
8839 Use memory_address_p instead of GO_IF_LEGITIMATE_ADDRESS.
8841 2009-04-23 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8843 * config/spu/spu-builtins.h: Delete file.
8845 * config/spu/spu.h (enum spu_builtin_type): Move here from
8847 (struct spu_builtin_description): Likewise. Add GTY marker.
8848 Do not use enum spu_function_code or enum insn_code.
8849 (spu_builtins): Add extern declaration.
8851 * config/spu/spu.c: Do not include "spu-builtins.h".
8852 (enum spu_function_code, enum spu_builtin_type_index,
8853 V16QI_type_node, V8HI_type_node, V4SI_type_node, V2DI_type_node,
8854 V4SF_type_node, V2DF_type_node, unsigned_V16QI_type_node,
8855 unsigned_V8HI_type_node, unsigned_V4SI_type_node,
8856 unsigned_V2DI_type_node): Move here from spu-builtins.h.
8857 (spu_builtin_types): Make static. Add GTY marker.
8858 (spu_builtins): Add extern declaration with GTY marker.
8861 * config/spu/spu-c.c: Do not include "spu-builtins.h".
8862 (spu_resolve_overloaded_builtin): Do not use spu_function_code.
8863 Check programmatically whether all parameters are scalar.
8865 * config/spu/t-spu-elf (spu.o, spu-c.o): Update dependencies.
8867 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
8869 * gimplify.c (gimplify_modify_expr_rhs) <VAR_DECL>: Do not do a direct
8870 assignment from the constructor either if the target is volatile.
8872 2009-04-23 Daniel Jacobowitz <dan@codesourcery.com>
8874 * config/arm/arm.md (insv): Do not share operands[0].
8876 2009-04-23 Nathan Sidwell <nathan@codesourcery.com>
8878 * config/vxlib-tls.c (active_tls_threads): Delete.
8879 (delete_hook_installed): New.
8880 (tls_delete_hook): Don't delete the delete hook.
8881 (tls_destructor): Delete it here.
8882 (__gthread_set_specific): Adjust installing the delete hook.
8883 (tls_delete_hook): Use __gthread_enter_tsd_dtor_context and
8884 __gthread_leave_tsd_dtor_context.
8886 2009-04-23 Rafael Avila de Espindola <espindola@google.com>
8888 * c-format.c (gcc_tdiag_char_table): Add support for %E.
8890 2009-04-23 Uros Bizjak <ubizjak@gmail.com>
8892 * config/alpha/alpha.c (alpha_legitimize_reload_address): Add cast to
8894 (alpha_rtx_costs): Ditto.
8895 (emit_unlikely_jump): Use add_reg_note.
8896 (emit_frame_store_1): Ditto.
8897 (alpha_expand_prologue): Ditto.
8898 (alpha_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
8899 * config/alpha/alpha.c (Unicos/Mk address splitter): Use add_reg_note.
8901 2009-04-23 Nick Clifton <nickc@redhat.com>
8903 * config/v850/v850.md (epilogue): Remove suppressed code.
8904 (return): Rename to return_simple and remove test of frame size.
8905 * config/v850/v850.c (expand_epilogue): Rename call to gen_return
8906 to gen_return_simple.
8908 2009-04-22 Jing Yu <jingyu@google.com>
8911 * config/arm/arm.h: Define HANDLE_PRAGMA_PACK_PUSH_POP.
8913 2009-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
8916 * c-typeck.c (process_init_element): Treat VECTOR_TYPE like ARRAY_TYPE
8917 and RECORD_TYPE/UNION_TYPE. When outputing the actual element and the
8918 value is a VECTOR_CST, the element type is the element type of the
8921 2009-04-22 DJ Delorie <dj@redhat.com>
8923 * config/m32c/m32c.h: Update GTY annotations to new syntax.
8925 2009-04-22 Jakub Jelinek <jakub@redhat.com>
8927 * alias.c (find_base_term): Move around LO_SUM case, so that
8928 CONST falls through into PLUS/MINUS handling.
8931 * fold-const.c (fold_binary) <case LSHIFT_EXPR>: When optimizing
8932 into 0, use omit_one_operand.
8934 2009-04-23 Ben Elliston <bje@au.ibm.com>
8936 * config/rs6000/linux-unwind.h (get_regs): Remove type
8937 puns. Change the type of `pc' to an array of unsigned ints and
8938 update all users. Constify frame24.
8940 2009-04-22 DJ Delorie <dj@redhat.com>
8942 * config/m32c/m32c.c (m32c_special_page_vector_p): Move
8943 declarations before code.
8944 (current_function_special_page_vector): Likewise.
8945 (m32c_expand_insv): Silence a warning.
8947 2009-04-21 Taras Glek <tglek@mozilla.com>
8949 * alias.c: Update GTY annotations to new syntax.
8950 * basic-block.h: Likewise.
8951 * bitmap.h: Likewise.
8952 * c-common.h: Likewise.
8953 * c-decl.c: Likewise.
8954 * c-parser.c: Likewise.
8955 * c-pragma.c: Likewise.
8956 * c-tree.h: Likewise.
8957 * cfgloop.h: Likewise.
8958 * cgraph.h: Likewise.
8959 * config/alpha/alpha.c: Likewise.
8960 * config/arm/arm.h: Likewise.
8961 * config/avr/avr.h: Likewise.
8962 * config/bfin/bfin.c: Likewise.
8963 * config/cris/cris.c: Likewise.
8964 * config/darwin.c: Likewise.
8965 * config/frv/frv.c: Likewise.
8966 * config/i386/i386.c: Likewise.
8967 * config/i386/i386.h: Likewise.
8968 * config/i386/winnt.c: Likewise.
8969 * config/ia64/ia64.h: Likewise.
8970 * config/iq2000/iq2000.c: Likewise.
8971 * config/mips/mips.c: Likewise.
8972 * config/mmix/mmix.h: Likewise.
8973 * config/pa/pa.c: Likewise.
8974 * config/pa/pa.h: Likewise.
8975 * config/rs6000/rs6000.c: Likewise.
8976 * config/s390/s390.c: Likewise.
8977 * config/sparc/sparc.c: Likewise.
8978 * config/xtensa/xtensa.c: Likewise.
8979 * cselib.h: Likewise.
8980 * dbxout.c: Likewise.
8981 * dwarf2out.c: Likewise.
8982 * except.c: Likewise.
8983 * except.h: Likewise.
8984 * fixed-value.h: Likewise.
8985 * function.c: Likewise.
8986 * function.h: Likewise.
8987 * gimple.h: Likewise.
8988 * integrate.c: Likewise.
8989 * optabs.c: Likewise.
8990 * output.h: Likewise.
8993 * stringpool.c: Likewise.
8994 * tree-data-ref.c: Likewise.
8995 * tree-flow.h: Likewise.
8996 * tree-scalar-evolution.c: Likewise.
8997 * tree-ssa-address.c: Likewise.
8998 * tree-ssa-alias.h: Likewise.
8999 * tree-ssa-operands.h: Likewise.
9002 * varasm.c: Likewise.
9003 * varray.h: Likewise.
9005 * coretypes.h: Do not define GTY macro if it is already defined.
9006 * doc/gty.texi: Update GTY documentation to new syntax.
9007 * gengtype-lex.l: Enforce attribute-like syntax for GTY
9008 annotations on structs.
9009 * gengtype-parse.c: Likewise.
9011 2009-04-22 Mark Heffernan <meheff@google.com>
9013 * gcc.c (LINK_COMMAND_SPEC): Link with gcov with -fprofile-generate=.
9015 2009-04-22 Kazu Hirata <kazu@codesourcery.com>
9017 * config/arm/arm.c (arm_rtx_costs_1): Use power_of_two_operand
9020 2009-04-22 Kazu Hirata <kazu@codesourcery.com>
9022 * config/arm/arm.c (arm_size_rtx_costs): Treat a PLUS with a shift
9023 the same as a PLUS without a shift. Increase the cost of a
9026 2009-04-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
9028 * Makefile.in: Update dependencies.
9029 * errors.c (warning): Remove unused parameter 'opt'. Returns 'void'.
9030 * errors.h: Remove bogus comment about compatibility.
9031 (warning): Update declaration.
9032 * genautomata.c: Update all calls to warning.
9033 * gimple.c: Do not include errors.h. Include toplev.h.
9034 * tree-ssa-structalias.c: Do not include errors.h.
9035 * omega.c: Likewise.
9036 * tree-ssa-reassoc.c: Likewise.
9037 * config/spu/spu-c.c: Likewise.
9038 * config/spu/t-spu-elf: Update dependencies.
9040 2009-04-22 Richard Guenther <rguenther@suse.de>
9042 PR tree-optimization/39824
9043 * tree-ssa-ccp.c (fold_const_aggregate_ref): For INDIRECT_REFs
9044 make sure the types are compatible.
9046 2009-04-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
9049 * c-common.c (c_parse_error): Take a token_flags parameter.
9050 Use token_type for the token type instead.
9051 Pass token_flags to cpp_type2name.
9052 * c-common.h (c_parse_error): Update declaration.
9053 * c-parser.c (c_parser_error): Pass 0 as token flags.
9055 2009-04-22 Andrey Belevantsev <abel@ispras.ru>
9057 PR rtl-optimization/39580
9058 * sel-sched-ir.c (insert_in_history_vect): Remove incorrect gcc_assert.
9060 2009-04-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9062 * function.c (expand_function_end): Do not emit a jump to the "naked"
9063 return label for fall-through returns.
9064 * except.c (sjlj_emit_function_exit): Always place the call to the
9065 unregister function at the location installed by expand_function_end.
9067 2009-04-22 Richard Guenther <rguenther@suse.de>
9069 PR tree-optimization/39845
9070 * tree-switch-conversion.c (build_arrays): Add new referenced vars.
9071 (gen_inbound_check): Likewise.
9073 2009-04-22 Nathan Sidwell <nathan@codesourcery.com>
9075 * gthr-vxworks.h (struct __gthread_once_t): Add alignment and
9077 (__GTHREAD_ONCE_INIT): Adjust ppc initializer.
9078 * config/vxlib.c (__gthread_once): Add race guard for PPC.
9080 2009-04-22 Paolo Bonzini <bonzini@gnu.org>
9082 * config/sh/sh.c (shift_insns_rtx, shiftcosts, gen_shifty_op,
9083 sh_dynamicalize_shift_p, shl_and_scr_length): Truncate
9084 shift counts to avoid out-of-bounds array accesses.
9086 2009-04-22 Paolo Bonzini <bonzini@gnu.org>
9088 * config/sparc/sparc.h (POINTER_SIZE): Fix comment.
9089 (Pmode): Move above.
9091 2009-04-22 Uros Bizjak <ubizjak@gmail.com>
9093 * config/alpha/alpha.c: Use REG_P, MEM_P, CONST_INT_P, JUMP_P,
9094 NONJUMP_INSN_P, CALL_P, LABEL_P and NOTE_P predicates instead of
9095 GET_CODE macro. Use IN_RANGE macro where appropriate.
9096 * config/alpha/alpha.h: Ditto.
9097 * config/alpha/alpha.md: Ditto.
9098 * config/alpha/constraints.md: Ditto.
9099 * config/alpha/predicates.md: Ditto.
9101 2009-04-22 Paolo Bonzini <bonzini@gnu.org>
9103 * defaults.h (GO_IF_MODE_DEPENDENT_ADDRESS): Provide empty default.
9104 * config/frv/frv.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
9105 * config/s390/s390.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
9106 * config/m32c/m32c.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
9107 * config/spu/spu.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
9108 * config/i386/i386.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
9109 * config/sh/sh.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
9110 * config/pdp11/pdp11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
9111 * config/avr/avr.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
9112 * config/crx/crx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
9113 * config/fr30/fr30.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
9114 * config/m68hc11/m68hc11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
9115 * config/cris/cris.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
9116 * config/iq2000/iq2000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
9117 * config/mn10300/mn10300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
9118 * config/ia64/ia64.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
9119 * config/m68k/m68k.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
9120 * config/picochip/picochip.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
9121 * config/arc/arc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
9122 * config/mcore/mcore.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
9123 * config/score/score.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
9124 * config/arm/arm.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
9125 * config/pa/pa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
9126 * config/mips/mips.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
9127 * config/v850/v850.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
9128 * config/mmix/mmix.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
9129 * config/bfin/bfin.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
9131 2009-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
9133 * cfghooks.c (tidy_fallthru_edges): Remove find_basic_blocks
9134 references from comments.
9135 * cfgbuild.c: (count_basic_blocks): Delete.
9136 (find_basic_blocks_1): Delete.
9137 (find_basic_blocks): Delete.
9138 * except.c (finish_eh_generation): Make static. Move comment from
9139 except.h here. Remove find_basic_blocks references from comments.
9140 * except.h (finish_eh_generation): Delete.
9141 * basic-block.h (find_basic_blocks): Delete.
9142 * config/sh/sh.c (sh_output_mi_thunk): Delete a "#if 0" block.
9144 2009-04-22 Dave Korn <dave.korn.cygwin@gmail.com>
9146 * sdbout.c (sdbout_symbol): Pass VOIDmode to eliminate_regs.
9147 (sdbout_parms): Likewise.
9149 2009-04-21 Kaz Kojima <kkojima@gcc.gnu.org>
9151 * config/sh/sh.c (prepare_cbranch_operands): Use
9152 LAST_AND_UNUSED_RTX_CODE instead of CODE_FOR_nothing.
9153 (expand_cbranchdi4): Likewise.
9154 (from_compare): Add cast to enum type.
9155 (expand_cbranchsi4): Use add_reg_note.
9156 (output_stack_adjust, push, pop, sh_expand_prologue): Likewise.
9157 (sh_insn_length_adjustment): Use sh_cpu_attr instead of sh_cpu.
9158 (sh_initialize_trampoline): Change 0 to LCT_NORMAL in function call.
9159 (sh_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
9160 * config/sh/sh.md (cbranchsi4): Use LAST_AND_UNUSED_RTX_CODE
9161 instead of CODE_FOR_nothing.
9162 (cbranchdi4): Likewise. Fix the order of arguments for
9164 (push_fpscr): Use add_reg_note.
9165 (pop_fpscr, movdf_i4+1, reload_outdf__RnFRm+3, reload_outdf__RnFRm+4,
9166 reload_outdf__RnFRm+5, fpu_switch+1, fpu_switch+2): Likewise.
9168 2009-04-21 Joseph Myers <joseph@codesourcery.com>
9170 * ABOUT-GCC-NLS, ChangeLog, ChangeLog-1997, ChangeLog-1998,
9171 ChangeLog-1999, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
9172 ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
9173 ChangeLog-2007, ChangeLog-2008, ChangeLog.dataflow, ChangeLog.lib,
9174 ChangeLog.ptr, ChangeLog.tree-ssa, ChangeLog.tuples, FSFChangeLog,
9175 FSFChangeLog.10, FSFChangeLog.11, LANGUAGES, ONEWS, acinclude.m4,
9176 config/alpha/gnu.h, config/alpha/libgcc-alpha-ldbl.ver,
9177 config/alpha/t-osf4, config/alpha/t-vms, config/alpha/va_list.h,
9178 config/alpha/x-vms, config/arc/t-arc,
9179 config/arm/README-interworking, config/arm/arm-c.c,
9180 config/arm/gentune.sh, config/arm/libgcc-bpabi.ver,
9181 config/arm/t-arm, config/arm/t-arm-elf, config/arm/t-arm-softfp,
9182 config/arm/t-bpabi, config/arm/t-linux, config/arm/t-linux-eabi,
9183 config/arm/t-netbsd, config/arm/t-pe, config/arm/t-strongarm-elf,
9184 config/arm/t-symbian, config/arm/t-vxworks, config/arm/t-wince-pe,
9185 config/avr/t-avr, config/bfin/elf.h, config/bfin/libgcc-bfin.ver,
9186 config/bfin/linux.h, config/bfin/t-bfin, config/bfin/t-bfin-elf,
9187 config/bfin/t-bfin-linux, config/bfin/t-bfin-uclinux,
9188 config/bfin/uclinux.h, config/cris/mulsi3.asm, config/cris/t-cris,
9189 config/cris/t-elfmulti, config/crx/t-crx,
9190 config/darwin-ppc-ldouble-patch.def, config/darwin-sections.def,
9191 config/divmod.c, config/fr30/t-fr30, config/frv/libgcc-frv.ver,
9192 config/frv/t-frv, config/frv/t-linux, config/h8300/genmova.sh,
9193 config/h8300/t-h8300, config/i386/athlon.md,
9194 config/i386/darwin-libgcc.10.4.ver,
9195 config/i386/darwin-libgcc.10.5.ver, config/i386/libgcc-glibc.ver,
9196 config/i386/mach.h, config/i386/netbsd.h, config/i386/t-crtpc,
9197 config/i386/t-cygming, config/i386/t-cygwin, config/i386/t-i386,
9198 config/i386/t-linux64, config/i386/t-nwld,
9199 config/i386/t-rtems-i386, config/i386/t-sol2-10,
9200 config/i386/x-mingw32, config/ia64/div.md, config/ia64/elf.h,
9201 config/ia64/ia64.opt, config/ia64/libgcc-glibc.ver,
9202 config/ia64/libgcc-ia64.ver, config/ia64/linux.h,
9203 config/ia64/sysv4.h, config/ia64/t-hpux, config/ia64/t-ia64,
9204 config/iq2000/abi, config/iq2000/lib2extra-funcs.c,
9205 config/iq2000/t-iq2000, config/libgcc-glibc.ver,
9206 config/m32r/libgcc-glibc.ver, config/m32r/t-linux,
9207 config/m32r/t-m32r, config/m68hc11/t-m68hc11,
9208 config/m68k/t-floatlib, config/m68k/t-linux, config/m68k/t-mlibs,
9209 config/m68k/t-uclinux, config/mcore/t-mcore,
9210 config/mcore/t-mcore-pe, config/mips/20kc.md, config/mips/4130.md,
9211 config/mips/5400.md, config/mips/5500.md, config/mips/crti.asm,
9212 config/mips/crtn.asm, config/mips/irix-crti.asm,
9213 config/mips/irix-crtn.asm, config/mips/libgcc-mips16.ver,
9214 config/mips/mips-dsp.md, config/mips/mips-dspr2.md,
9215 config/mips/mips-fixed.md, config/mips/sb1.md,
9216 config/mips/sr71k.md, config/mips/t-elf, config/mips/t-gofast,
9217 config/mips/t-iris6, config/mips/t-isa3264,
9218 config/mips/t-libgcc-mips16, config/mips/t-linux64,
9219 config/mips/t-mips, config/mips/t-r3900, config/mips/t-rtems,
9220 config/mips/t-sb1, config/mips/t-sde, config/mips/t-sdemtk,
9221 config/mips/t-slibgcc-irix, config/mips/t-sr71k, config/mips/t-st,
9222 config/mips/t-vr, config/mips/t-vxworks, config/mmix/t-mmix,
9223 config/mn10300/t-linux, config/mn10300/t-mn10300,
9224 config/pa/pa32-regs.h, config/pa/t-hpux-shlib, config/pa/t-linux,
9225 config/pa/t-linux64, config/pa/t-pa64, config/pdp11/t-pdp11,
9226 config/picochip/libgccExtras/clzsi2.asm,
9227 config/picochip/t-picochip, config/rs6000/darwin-ldouble-format,
9228 config/rs6000/darwin-libgcc.10.4.ver,
9229 config/rs6000/darwin-libgcc.10.5.ver,
9230 config/rs6000/libgcc-ppc-glibc.ver, config/rs6000/ppc-asm.h,
9231 config/rs6000/t-aix43, config/rs6000/t-aix52,
9232 config/rs6000/t-darwin, config/rs6000/t-fprules,
9233 config/rs6000/t-fprules-fpbit, config/rs6000/t-linux64,
9234 config/rs6000/t-lynx, config/rs6000/t-netbsd,
9235 config/rs6000/t-ppccomm, config/rs6000/t-ppcendian,
9236 config/rs6000/t-ppcgas, config/rs6000/t-rs6000,
9237 config/rs6000/t-rtems, config/rs6000/t-spe,
9238 config/rs6000/t-vxworks, config/s390/libgcc-glibc.ver,
9239 config/score/t-score-elf, config/sh/divcost-analysis,
9240 config/sh/libgcc-glibc.ver, config/sh/t-netbsd, config/sh/t-sh,
9241 config/sh/t-sh64, config/sh/t-superh, config/sh/t-symbian,
9242 config/sparc/libgcc-sparc-glibc.ver, config/sparc/sol2-bi.h,
9243 config/sparc/sol2-gas.h, config/sparc/sol2-gld-bi.h,
9244 config/sparc/t-elf, config/sparc/t-linux64, config/sparc/t-sol2,
9245 config/stormy16/stormy-abi, config/stormy16/t-stormy16,
9246 config/t-darwin, config/t-libunwind, config/t-libunwind-elf,
9247 config/t-linux, config/t-lynx, config/t-slibgcc-elf-ver,
9248 config/t-slibgcc-sld, config/t-sol2, config/t-vxworks,
9249 config/udivmod.c, config/udivmodsi4.c, config/v850/t-v850,
9250 config/v850/t-v850e, config/xtensa/t-xtensa, diagnostic.def,
9251 gdbinit.in, glimits.h, gstab.h, gsyms.h, java/ChangeLog,
9252 java/ChangeLog.ptr, java/ChangeLog.tree-ssa, libgcc-std.ver,
9253 limitx.h, version.c, xcoff.h: Add copyright and license notices.
9254 * config/h8300/genmova.sh: Include copyright and license notices
9255 in generated output.
9256 * config/h8300/mova.md: Regenerate.
9257 * doc/install.texi2html: Include word "Copyright" in copyright
9258 notice and use name "Free Software Foundation, Inc.".
9259 * ChangeLog, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
9260 ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
9261 ChangeLog-2007, ChangeLog-2008: Correct dates.
9263 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
9265 * c-common.c (c_common_truthvalue_conversion): Use LOCATION to build
9266 NE_EXPR operations as well.
9267 * c-parser.c (c_parser_condition): Do not set location information on
9269 (c_parser_conditional_expression): Likewise.
9270 (c_parser_binary_expression): Set location information on operators.
9271 * c-typeck.c (build_unary_op) <TRUTH_NOT_EXPR>: Reset the location if
9272 TRUTH_NOT_EXPR has been folded.
9273 * fold-const.c (fold_truth_not_expr): Copy location information from
9274 the incoming expression to the outgoing one.
9275 * gimplify.c (shortcut_cond_r): Add locus parameter. Pass it to
9276 recursive calls on the LHS of the operator but pass that of the
9277 operator to recursive calls on the RHS of the operator. Set it
9279 (shortcut_cond_expr): Set the locus of the operator on the second
9280 COND_EXPR and that of the expression on the first in degenerate cases.
9281 Pass the locus of the expression to calls to shortcut_cond_r.
9282 Set the locus of the 'then' block on the associated jump, if any.
9283 (gimplify_boolean_expr): Add locus parameter. Set it on the COND_EXPR.
9284 (gimplify_expr) <TRUTH_ANDIF_EXPR>: Pass the locus of the outer
9285 expression to call to gimplify_boolean_expr.
9287 2009-04-21 Kai Tietz <kai.tietz@onevision.com>
9289 * config.gcc: Add additional configuration for
9290 i686-w64-mingw* and x86_64-w64-mingw* triplet.
9291 * config/i386/mingw-w64.h: New mingw-w64 specific header.
9292 (CPP_SPEC): Redefine for allowing -municode option.
9293 (STARTFILE_SPEC): Likewise.
9294 * config/i386/t-mingw-w64: New.
9295 * config/i386/mingw-w64.opt: New.
9296 (municode): Add new target option.
9297 * doc/invoke.texi (municode): Add documentation for new option.
9299 2009-04-21 Ian Lance Taylor <iant@google.com>
9301 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
9302 Correct test for number of arguments.
9303 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
9305 2009-04-21 Andreas Schwab <schwab@linux-m68k.org>
9307 * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Use enum for second
9308 argument of emit_library_call.
9310 2009-04-21 Richard Guenther <rguenther@suse.de>
9313 * gimple.c (walk_stmt_load_store_addr_ops): Catch addresses
9314 inside VIEW_CONVERT_EXPRs.
9316 2009-04-21 Martin Jambor <mjambor@suse.cz>
9318 * tree-switch-conversion.c (build_constructors): Split a long line.
9319 (constructor_contains_same_values_p): New function.
9320 (build_one_array): Create assigns of constants if possible, do not
9321 call mark_sym_for_renaming, call update_stmt.
9322 (build_arrays): Call make_ssa_name (create_tmp_var ()) instead of
9323 make_rename_temp. Do not call mark_symbols_for_renaming, call
9325 (gen_def_assigns): Do not call mark_symbols_for_renaming or
9326 find_new_referenced_vars, call update_stmt.
9327 (gen_inbound_check): Use create_tmp_var and create ssa names manually
9328 instead of calling make_rename_temp. Do not call
9329 find_new_referenced_vars or mark_symbols_for_renaming, call
9332 2009-04-21 Richard Guenther <rguenther@suse.de>
9334 PR tree-optimization/39827
9335 * tree-ssa-phiprop.c (propagate_with_phi): Check SSA_NAME is in range.
9336 (tree_ssa_phiprop): Pass the correct array size.
9338 2009-04-21 Uros Bizjak <ubizjak@gmail.com>
9340 * config/alpha/alpha.md (tune): Add cast to enum attr_tune.
9342 2009-04-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
9345 * c-typeck.c (lvalue_p): Move declaration ...
9346 * c-common.h (lvalue_p): ... to here.
9347 * c-common.c (candidate_equal_p): New.
9348 (add_tlist): Use it.
9349 (merge_tlist): Use it.
9350 (warn_for_collisions_1): Likewise.
9351 (warning_candidate_p): Accept more candidates.
9352 (verify_tree): A warning candidate can be an expression. Use
9355 2009-04-21 Ben Elliston <bje@au.ibm.com>
9358 * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
9359 for -mcall-eabi, -mcall-aixdesc, -mcall-freebsd and -mcall-openbsd
9360 options. Remove -mcall-solaris documentation.
9362 2009-04-21 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
9365 * doc/invoke.texi (-Wlong-long): Update description.
9366 * c-lex (interpret_integer): Only warn if there was no previous
9367 overflow and -Wlong-long is enabled.
9368 * c-decl.c (declspecs_add_type): Drop redundant flags.
9369 * c.opt (Wlong-long): Init to -1.
9370 * c-opts.c (sanitize_cpp_opts): Synchronize cpp's warn_long_long
9371 and front-end warn_long_long. Wlong-long only depends on other
9372 flags if it is uninitialized.
9373 * c-parser.c (disable_extension_diagnostics): warn_long_long is
9374 the same for CPP and FE.
9375 (restore_extension_diagnostics): Likewise.
9377 2009-04-20 Ian Lance Taylor <iant@google.com>
9379 Fix enum conversions which are invalid in C++:
9380 * auto-inc-dec.c (attempt_change): Change 0 to SET in function call.
9381 * calls.c (store_one_arg): Change 0 to EXPAND_NORMAL in function call.
9382 * cse.c (hash_rtx_cb): Change 0 to VOIDmode in function call.
9383 * dbgcnt.c (dbg_cnt_set_limit_by_name): Add cast to enum type.
9384 * dbxout.c (dbxout_symbol): Change 0 to VOIDmode in function call.
9385 (dbxout_parms): Likewise.
9386 * df-core.c (df_set_flags): Change changeable_flags parameter to int.
9387 (df_clear_flags): Likewise.
9388 * df-problems.c (df_rd_bb_local_compute_process_def): Change
9389 top_flag parameter to int.
9390 (df_chain_create_bb_process_use): Likewise.
9391 (df_chain_add_problem): Change chain_flags parameter to unsigned int.
9393 * df-scan.c (df_ref_create): Change ref_flags parameter to int.
9394 (df_ref_create_structure, df_def_record_1): Likewise.
9395 (df_defs_record, df_uses_record, df_get_call_refs): Likewise.
9396 (df_notes_rescan): Change 0 to VOIDmode in function call.
9397 (df_get_call_refs, df_insn_refs_collect): Likewise.
9398 (df_bb_regs_collect): Likewise.
9399 (df_entry_block_defs_collect): Likewise.
9400 (df_exit_block_uses_collect): Likewise.
9401 * df.h: Update declarations.
9402 * double-int.c (double_int_divmod): Add cast to enum type.
9403 * dse.c (replace_inc_dec): Reverse parameters to gen_int_mode.
9404 * dwarf2out.c (new_reg_loc_descr): Add casts to enum type.
9405 (based_loc_descr): Likewise.
9406 (loc_descriptor_from_tree_1): Change first_op and second_op to
9407 enum dwarf_location_atom. Add cast to enum type.
9408 * expmed.c (init_expmed): Change 0 to SET in function call.
9409 * expr.c (init_expr_target): Change 0 to VOIDmode in function call.
9410 (expand_expr_real_1): Change 0 to EXPAND_NORMAL in function call.
9411 (do_store_flag): Likewise.
9412 * fixed-value.h (struct fixed_value): Change mode to enum
9414 * function.c (assign_parms): Change 0 to VOIDmode in function call.
9415 * genautomata.c (insert_automaton_decl): Change 1 to INSERT in
9417 (insert_insn_decl, insert_decl, insert_state): Likewise.
9418 (automata_list_finish): Likewise.
9419 * genrecog.c (process_define_predicate): Add cast to enum type.
9420 * gensupport.c (init_predicate_table): Add cast to enum type.
9421 * gimple.c (gimple_build_return): Change 0 to ERROR_MARK in
9423 (gimple_build_call_1, gimple_build_label): Likewise.
9424 (gimple_build_goto, gimple_build_asm_1): Likewise.
9425 (gimple_build_switch_1, gimple_build_cdt): Likewise.
9426 * gimple.h (GIMPLE_CHECK): Change 0 to ERROR_MARK in function call.
9427 (enum fallback): Rename from enum fallback_t.
9428 (fallback_t): Typedef as int.
9429 * gimple-low.c (lower_builtin_setjmp): Change TSI_SAME_STMT to
9430 GSI_SAME_STMT in function call.
9431 * ira.c (setup_class_subset_and_memory_move_costs): Add casts to
9433 (setup_reg_class_relations): Likewise.
9434 (setup_reg_class_nregs): Change cl to int. Add casts to enum type.
9435 (setup_prohibited_class_mode_regs): Add cast to enum type.
9436 (setup_prohibited_mode_move_regs): Likewise.
9437 * ira-costs.c (record_reg_classes): Change rclass to enum reg_class.
9438 (record_address_regs): Change i to enum reg_class.
9439 * lists.c (alloc_EXPR_LIST): Add cast to enum type.
9440 * machmode.h (GET_MODE_CLASS): Cast value to enum mode_class.
9441 (GET_MODE_WIDER_MODE): Cast value to enum machine_mode.
9442 (GET_MODE_2XWIDER_MODE): Likewise.
9443 (GET_CLASS_NARROWEST_MODE): Likewise.
9444 * omp-low.c (expand_omp_for): Add cast to enum type.
9445 * optabs.c (debug_optab_libfuncs): Add casts to enum type.
9446 * opts.c (enable_warning_as_error): Change kind to diagostic_t.
9447 * postreload.c (reload_cse_simplify_operands): Change rclass local
9449 * predict.c (combine_predictions_for_insn): Change best_predictor
9450 and predictor to enum br_predictor.
9451 (combine_predictions_for_bb): Likewise.
9452 (build_predict_expr): Change assignment to PREDICT_EXPR_OUTCOME to
9453 use SET_PREDICT_EXPR_OUTCOME.
9454 * real.c (real_arithmetic): Change icode to code in function call.
9455 * reginfo.c (init_move_cost): Add casts to enum type.
9456 (init_reg_sets_1, init_fake_stack_mems): Likewise.
9457 * regmove.c (regclass_compatible_p): Change class0 and class1 to
9459 * reload.c (find_valid_class): Add casts to enum type.
9460 (push_reload): Change 0 to NO_REGS in function call.
9461 (find_reloads): Change this_alternative to array of enum
9462 reg_class. Remove some now-unnecessary casts.
9463 (make_memloc): Change 0 to VOIDmode in function call.
9464 * reload1.c (reload): Change 0 to VOIDmode in function call.
9465 (eliminate_regs_1, elimination_effects): Likewise.
9466 (eliminate_regs_in_insn): Likewise.
9467 (emit_input_reload_insns): Add cast to enum type.
9468 (delete_output_reload): Change 0 to VOIDmode in function call.
9469 * reorg.c (insn_sets_resource_p): Convert include_delayed_effects
9470 to enum type in function call.
9471 * tree.h (PREDICT_EXPR_OUTCOME): Add cast to enum type.
9472 (SET_PREDICT_EXPR_OUTCOME): Define.
9473 * tree-dump.c (get_dump_file_info): Change phase parameter to int.
9474 (get_dump_file_name, dump_begin, dump_enabled_p): Likewise.
9475 (dump_initialized_p, dump_flag_name, dump_end): Likewise.
9476 (dump_function): Likewise.
9477 * tree-dump.h: Update declarations.
9478 * tree-pass.h: Update declarations.
9479 * varasm.c (assemble_integer): Change mclass to enum mode_class.
9480 * config/arm/arm.c (thumb_legitimize_reload_address): Add cast to
9482 (arm_rtx_costs_1): Correct parenthesization.
9483 (arm_rtx_costs): Add casts to enum type.
9484 (adjacent_mem_locations): Reverse arguments to const_ok_for_op.
9485 (vfp_emit_fstmd): Use add_rg_note.
9486 (emit_multi_reg_push, emit_sfm): Likewise.
9487 (thumb_set_frame_pointer): Likewise.
9488 (arm_expand_prologue): Likewise.
9489 (arm_regno_class): Change return type to enum reg_class.
9490 (thumb1_expand_prologue): Use add_reg_note.
9491 * config/arm/arm-protos.h (arm_regno_class): Update declaration.
9492 * config/arm/arm.h (INITIALIZE_TRAMPOLINE): Change 0 to LCT_NORMAL
9494 * config/arm/gentune.sh: Add cast to enum type.
9495 * config/arm/arm-tune.md: Rebuild.
9496 * config/i386/i386.c (ix86_expand_prologue): Use add_reg_note.
9497 (ix86_split_fp_branch, predict_jump): Likewise.
9498 (ix86_expand_multi_arg_builtin): Change sub_code from enum
9499 insn_code to enum rtx_code.
9500 (ix86_builtin_vectorized_function): Add cast to enum type.
9501 * config/i386/i386.md (truncdfsf2): Change slot to enum
9503 (truncxf<mode>2, isinf<mode>2): Likewise.
9504 * config/i386/i386-c.c (ix86_pragma_target_parse): Add cast to
9506 * config/ia64/ia64.c (ia64_split_tmode_move): Use add_reg_note.
9507 (spill_restore_mem, do_spill, ia64_expand_prologue): Likewise.
9508 (insert_bundle_state): Change 1 to INSERT in function call.
9509 (ia64_add_bundle_selector_before): Likewise.
9510 * config/ia64/ia64.md (cpu attr): Add cast to enum type.
9511 (save_stack_nonlocal): Change 0 to LCT_NORMAL in function call.
9512 (restore_stack_nonlocal): Likewise.
9513 * config/mips/mips.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL in
9515 * config/mips/mips.c (mips_binary_cost): Change 0 to SET in
9517 (mips_rtx_costs): Likewise.
9518 (mips_override_options): Add casts to enum type.
9519 * config/mips/sdemtk.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL
9521 * config/pa/pa.c (legitimize_pic_address): Use add_reg_note.
9522 (store_reg, set_reg_plus_d): Likewise.
9523 (hppa_expand_prologue, hppa_profile_hook): Likewise.
9524 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
9526 (altivec_expand_vec_set_builtin): Change 0 to EXPAND_NORMAL in
9528 (emit_unlikely_jump): Use add_reg_note.
9529 (rs6000_emit_allocate_stack): Likewise.
9530 (rs6000_frame_related, rs6000_emit_prologue): Likewise.
9531 (output_toc): Change 1 to INSERT in function call.
9532 (output_profile_hook): Change 0 to LCT_NORMAL in function call.
9533 (rs6000_initialize_trampoline): Likewise.
9534 (rs6000_init_dwarf_reg_sizes_extra): Change 0 to EXPAND_NORMAL in
9536 * config/s390/s390.c (s390_rtx_costs): Add cast to enum type.
9537 (s390_expand_movmem): Change 0 to OPTAB_DIRECT in function call.
9538 (s390_expand_setmem, s390_expand_cmpmem): Likewise.
9539 (save_gprs): Use add_reg_note.
9540 (s390_emit_prologue): Likewise.
9541 (s390_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
9542 * config/sparc/sparc.c (sparc_expand_prologue): Use add_reg_note.
9543 (sparc_fold_builtin): Add cast to enum type.
9544 * config/spu/spu.c (spu_emit_branch_or_set): Change ior_code to
9546 (spu_expand_prologue): Use add_reg_note.
9547 (expand_builtin_args): Change 0 to EXPAND_NORMAL in function call.
9549 2009-04-20 Ian Lance Taylor <iant@google.com>
9551 * c-parser.c (c_parser_attributes): Change VEC back to tree list.
9552 (c_parser_postfix_expression_after_primary): Get VEC for list of
9553 arguments. Get original types of arguments. Call
9554 build_function_call_vec.
9555 (cached_expr_list_1, cached_expr_list_2): New static variables.
9556 (c_parser_expr_list): Change return type to VEC *. Add
9557 p_orig_types parameter. Change all callers.
9558 (c_parser_release_expr): New static function.
9559 (c_parser_vec_to_tree_list): New static function.
9560 * c-typeck.c (build_function_call): Rewrite to build a VEC and
9561 call build_function_call_vec.
9562 (build_function_call_vec): New function, based on old
9563 build_function_call.
9564 (convert_arguments): Remove nargs and argarray parameters. Change
9565 values to a VEC. Add origtypes parameter.
9566 (build_modify_expr): Add rhs_origtype parameter. Change all callers.
9567 (convert_for_assignment): Add origtype parameter. Change all
9568 callers. If warn_cxx_compat, check for conversion to an enum
9569 type when calling a function.
9570 (store_init_value): Add origtype parameter. Change all callers.
9571 (digest_init): Likewise.
9572 (struct init_node): Add origtype field.
9573 (add_pending_init): Add origtype parameter. Change all callers.
9574 (output_init_element): Likewise.
9575 (output_pending_init_elements): Pass origtype from init_node to
9576 output_init_element.
9577 (process_init_element): Pass origtype from c_expr to
9578 output_init_element.
9579 (c_finish_return): Add origtype parameter. Change all callers.
9580 * c-common.c (sync_resolve_size): Change params to VEC *. Change
9582 (sync_resolve_params): Likewise.
9583 (sync_resolve_return): Change params to first_param. Change caller.
9584 (resolve_overloaded_builtins): Change params to VEC *. Change
9585 callers. Save first parameter around call to build_function_call_vec.
9586 * c-decl.c (finish_decl): Add origtype parameter. Change all
9587 callers. Call build_function_call_vec rather than
9588 build_function_call for cleanup.
9589 * c-tree.h: Update declarations.
9590 * c-common.h: Update declarations.
9591 * stub-objc.c (objc_rewrite_function_call): Change parameter from
9592 params to first_param.
9593 * target.h (struct gcc_target): Change resolve_overloaded_builtin
9594 params parameter from tree to void *.
9595 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
9596 Change arglist parameter to have type void *, and to be a pointer
9598 * config/rs6000/rs6000-protos.h
9599 (altivec_resolve_overloaded_builtin): Update declaration.
9600 * config/spu/spu-c.c (spu_resolved_overloaded_builtin): Change
9601 fnargs parameter to have type void *, and to be a pointer to a
9602 VEC. Call build_function_call_vec instead of
9603 build_function_call.
9604 * config/spu/spu-protos.h (spu_expand_builtin): Update declaration.
9606 2009-04-20 Joey Ye <joey.ye@intel.com>
9607 Xuepeng Guo <xuepeng.guo@intel.com>
9608 H.J. Lu <hongjiu.lu@intel.com>
9610 * config/i386/atom.md: Add bypasses with ix86_dep_by_shift_count.
9612 * config/i386/i386.c (LEA_SEARCH_THRESHOLD): New macro.
9613 (IX86_LEA_PRIORITY): Likewise.
9614 (distance_non_agu_define): New function.
9615 (distance_agu_use): Likewise.
9616 (ix86_lea_for_add_ok): Likewise.
9617 (ix86_dep_by_shift_count): Likewise.
9619 * config/i386/i386.md: Call ix86_lea_for_add_ok to decide we
9620 should split for LEA.
9622 * config/i386/i386-protos.h (ix86_lea_for_add_ok): Declare new
9624 (ix86_dep_by_shift_count): Likewise.
9626 2009-04-20 Richard Guenther <rguenther@suse.de>
9628 * expr.c (handled_component_p): Move ...
9629 * tree.h (handled_component_p): ... here.
9630 * tree.def: Re-order BIT_FIELD_REF, COMPONENT_REF,
9631 ARRAY_REF, ARRAY_RANGE_REF, VIEW_CONVERT_EXPR, IMAGPART_EXPR
9632 and REALPART_EXPR to be in one group.
9634 2009-04-20 Richard Guenther <rguenther@suse.de>
9636 * basic-block.h (get_all_dominated_blocks): Declare.
9637 * dominance.c (get_all_dominated_blocks): New function.
9638 * tree-cfg.c (get_all_dominated_blocks): Remove.
9639 (remove_edge_and_dominated_blocks): Adjust.
9640 * tree-ssa-phiprop.c (tree_ssa_phiprop_1): Fold in ...
9641 (tree_ssa_phiprop): ... here. Use get_all_dominated_blocks
9642 instead of recursing.
9644 2009-04-20 Doug Kwan <dougkwan@google.com>
9646 * cgraph.h (cgraph_node_ptr): New type for vector functions.
9647 (struct cgraph_node_set_def): New type.
9648 (cgraph_node_set) New type. Also declare vector functions.
9649 (struct cgraph_node_set_element_def): New type.
9650 (cgraph_node_set_element): Ditto.
9651 (cgraph_node_set_iterator): New iterator type.
9652 (cgraph_node_set_new, cgraph_node_set_find, cgraph_node_set_add,
9653 cgraph_node_set_remove, dump_cgraph_node_set,
9654 debug_cgraph_node_set): New prototypes.
9655 (csi_end_p, csi_next, csi_node, csi_start, cgraph_node_in_set_p,
9656 cgraph_node_set_size): New inlines.
9657 * tree-pass.h (struct cgraph_node_set_def): New decl to avoid
9659 (struct ipa_opt_pass): Add struct cgraph_node_set_def
9660 argument to function 'write_summary'.
9661 * ipa.c: Include ggc.h.
9662 (hash_cgraph_node_set_element,
9663 eq_cgraph_node_set_element, cgraph_node_set_new,
9664 cgraph_node_set_add, cgraph_node_set_remove,
9665 cgraph_node_set_find, dump_cgraph_node_set,
9666 debug_cgraph_node_set): New functions.
9667 * Makefile.in (ipa.o): Add dependency on GGC_H.
9669 2009-04-20 Ira Rosen <irar@il.ibm.com>
9671 PR tree-optimization/39675
9672 * tree-vect-loop.c (vect_transform_loop): Remove currently redundant
9673 check of the return code of vect_schedule_slp. Check that
9674 stmt_vec_info still exists for the statement, before checking its
9677 2009-04-20 Michael Matz <matz@suse.de>
9679 * Makefile.in (generated_files): Take out $(simple_generated_c).
9681 2009-04-19 Dave Korn <dave.korn.cygwin@gmail.com>
9683 * config/i386/cygwin-stdint.h (INTPTR_TYPE): Remove "long".
9684 (UINTPTR_TYPE): Likewise.
9686 2009-04-19 Joseph Myers <joseph@codesourcery.com>
9689 * c-typeck.c (digest_init): Check for initializing an array with a
9692 2009-04-19 Joseph Myers <joseph@codesourcery.com>
9695 * c-semantics.c (pop_stmt_list): Propagate
9696 STATEMENT_LIST_HAS_LABEL to parent statement list.
9698 2009-04-19 Adam Nemet <anemet@caviumnetworks.com>
9700 * config/mips/mips.h (mips_tune_attr): New macro.
9701 * config/mips/mips.md (cpu): Use it.
9703 2009-04-19 Joseph Myers <joseph@codesourcery.com>
9706 * c-decl.c (shadow_tag_warned): Diagnose use of restrict when
9709 2009-04-19 Diego Novillo <dnovillo@google.com>
9711 * toplev.c (compile_file): Move call to coverage_finish ...
9712 * cgraphunit.c (ipa_passes): ... here.
9713 Call cgraph_process_new_functions.
9714 * ipa-utils.c (get_base_var): Handle CONSTRUCTOR.
9715 * Makefile.in (cgraphunit.o): Add dependency on COVERAGE_H.
9717 2009-04-19 Jan Hubicka <jh@suse.cz>
9719 * cgraph.c (cgraph_create_edge, cgraph_set_call_stmt): Set proper
9721 (dump_cgraph_node): Dump can throw external flag.
9722 * ipa-pure-const.c (propagate): Fix propagation of nothrow flags.
9724 2009-04-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
9728 * doc/invoke.texi: Add -Wlogical-op to -Wextra.
9729 * common.opt (Wlogical-op): Move from here...
9730 * c.opt (Wlogical-op): ... to here.
9731 * c-typeck.c (parser_build_binary_op): Update call to
9732 warn_logical_operator.
9733 * c-opts.c (c_common_post_options): Enable warn_logical_op with
9735 * c-common.c (warn_logical_op): Update.
9736 * c-common.h (warn_logical_op): Update declaration.
9738 2009-04-19 Eric Botcazou <ebotcazou@adacore.com>
9740 * tree.c (protected_set_expr_location): Fix formatting.
9742 2009-04-18 Joseph Myers <joseph@codesourcery.com>
9745 * c-typeck.c (readonly_warning): new.
9746 (build_unary_op, build_modify_expr): Use readonly_warning for
9747 storing into something readonly but not const-qualified.
9749 2009-04-18 Joseph Myers <joseph@codesourcery.com>
9752 * c-typeck.c (build_unary_op): Check for taking address of
9753 expression of type void.
9755 2009-04-18 Joseph Myers <joseph@codesourcery.com>
9758 * c-typeck.c (build_function_call): Check for calling a function
9759 with qualified void return types. Call require_complete_type when
9762 2009-04-18 Jan Hubicka <jh@suse.cz>
9764 * cgraph.c (cgraph_make_edge, dump_cgraph_node, cgraph_set_call_stmt):
9766 * cgraph.h (struct function): Reduce loop_nest to 30 bits; add
9767 can_throw_external flag.
9768 * ipa-reference.c (ipa_utils_reduced_inorder): Update call.
9769 * ipa-pure-const.c (ignore_edge): New function.
9770 (propagate): Compute order for NOTHROW computation; set NOTHROWs
9771 only over can_throw_external edges.
9772 (local_pure_const): Add nothrow flag.
9773 * ipa-utils.c (searchc): Add ignore_edge callback.
9774 (ipa_utils_reduced_inorder): Add ignore_edge callback.
9775 * ipa-utils.h (ipa_utils_reduced_inorder): Update prototype.
9776 (set_nothrow_function_flags): Update cgraph.
9777 * tree-cfg.c (verify_stmt): Relax nothrow checking when in IPA mode.
9779 2009-04-18 Richard Guenther <rguenther@suse.de>
9782 * tree-ssa-ccp.c (fold_stmt_1): New function factored from ...
9783 (fold_stmt): ... this and ...
9784 (fold_stmt_inplace): ... this.
9785 (fold_stmt_1): Fold references in calls and asms.
9786 * tree-cfg.c (remove_useless_stmts_cond): Use fold_stmt.
9788 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
9790 * tree-vrp.c (ssa_name_nonzero_p): Remove.
9791 * tree.h: Remove the prototype for ssa_name_nonzero_p.
9793 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
9795 * tree.c (function_args_count): Remove.
9796 * tree.h: Remove the prototype for function_args_count.
9798 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
9800 * tree-iterator.c (expr_only): Remove.
9801 * tree.h: Remove the prototype for expr_only.
9803 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
9805 * reginfo.c (cannot_change_mode_set_regs): Remove.
9806 * rtl.h: Remove the prototype for cannot_change_mode_set_regs.
9808 2009-04-08 Anatoly Sokolov <aesok@post.ru>
9810 * config/avr/avr.md (*rotlsi3_8, *rotlsi3_16, *rotlsi3_24 ): Check
9811 whether operands 0 and 1 overlaps.
9813 2009-04-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
9816 * tree-vrp.c (check_array_ref): Pass a location_t instead of a
9817 pointer. Use warning_at instead of warning.
9818 (search_for_addr_array): Likewise.
9819 (check_array_bounds): Likewise.
9820 (check_all_array_refs): Check that the incoming edge is not in the
9821 list of edges to be removed.
9822 (check_all_array_refs): Avoid the temporal pointer.
9823 (vrp_visit_cond_stmt): Fix typo.
9824 (simplify_switch_using_ranges): Handle the case where the switch
9825 index is an integer constant.
9827 2009-04-18 Adam Nemet <anemet@caviumnetworks.com>
9829 * config/mips/mips.c (mips_final_postscan_insn): Make it static.
9831 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
9833 * doc/extend.texi, doc/invoke.texi: Fix typos.
9835 2009-04-17 Cary Coutant <ccoutant@google.com>
9837 * tree-flow-inline.h (get_lineno): Fix inverted test.
9839 2009-04-17 Diego Novillo <dnovillo@google.com>
9841 * tree-ssa-pre.c (create_expression_by_pieces): Remove
9842 assertion for AVAIL_OUT.
9844 2009-04-17 Mike Frysinger <vapier@gentoo.org>
9847 * config/sh/lib1funcs.asm [__ELF__ && __linux__]: Add .note.GNU-stack.
9848 * config/sh/linux-atomic.asm: Likewise.
9850 2009-04-17 Diego Novillo <dnovillo@google.com>
9852 * except.c (debug_eh_tree): New.
9853 (struct eh_region, struct eh_status): Move ...
9854 * except.h: ... here.
9855 (add_type_for_runtime): Declare extern.
9856 (lookup_type_for_runtime): Likewise.
9857 (debug_eh_tree): Declare.
9858 * Makefile.in (GTFILES): List except.h before except.c
9860 2009-04-17 Diego Novillo <dnovillo@google.com>
9862 * omp-low.c (create_omp_child_function): Set DECL_CONTEXT for DECL.
9863 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
9864 * tree-dfa.c (find_referenced_vars_in): Factor out of ...
9865 (find_vars_r): ... here.
9866 * tree-flow.h (find_referenced_vars_in): Declare.
9867 * tree-ssa-pre.c (create_expression_by_pieces): Assert
9868 that AVAIL_OUT exists for BLOCK.
9869 * Makefile.in (CGRAPH_H): Add dependency on cif-code.def
9870 (tree-loop-distribution.o): Fix dependency on TREE_VECTORIZER_H.
9871 (tree-parloops.o): Likewise.
9873 2009-04-17 Simon Baldwin <simonb@google.com>
9875 * toplev.c (default_tree_printer): Add handling for %E format.
9877 2009-04-17 Diego Novillo <dnovillo@google.com>
9879 * tree-pretty-print.c (dump_generic_node): Add break after
9880 TREE_BINFO handler. Handle COMPLEX_TYPE, REAL_TYPE and
9881 FIXED_POINT_TYPE. Handle NULL TREE_TYPEs. Handle METHOD_TYPE and
9882 FUNCTION_TYPE together. Call print_struct_decl when printing
9883 structures and TDF_SLIM is not given.
9884 (print_struct_decl): Fix logic for detecting recursion.
9886 2009-04-17 Rafael Avila de Espindola <espindola@google.com>
9889 * gcc.c (create_at_file): New.
9890 (compile_input_file_p): New.
9891 (do_spec_1): Use @args files for %i. Use create_at_file for %o.
9892 * main.c (main): Update call to toplev_main.
9893 * toplev.c (toplev_main): Change signature. Call expandargv.
9894 * toplev.h (toplev_main): Change signature.
9896 2009-04-17 Eric Botcazou <ebotcazou@adacore.com>
9898 * dwarf2out.c (field_byte_offset): Use the type size as the field size
9899 if the latter is not constant.
9901 2009-04-17 David Edelsohn <edelsohn@gnu.org>
9903 * dbxout.c (xcoff_debug_hooks): Add set_name_debug_nothing.
9905 2009-04-17 Eric Botcazou <ebotcazou@adacore.com>
9907 * dbxout.c (dbxout_block): Reinstate test on TREE_USED.
9908 * tree-ssa-live.c (remove_unused_scope_block_p): Update TREE_USED bit.
9910 2009-04-17 Richard Guenther <rguenther@suse.de>
9912 * tree-ssa-structalias.c (get_constraint_for_component_ref):
9913 Handle component references view-converting an invariant address.
9915 2009-04-17 Adam Nemet <anemet@caviumnetworks.com>
9917 * doc/tm.texi (TARGET_DEFAULT_TARGET_FLAGS,
9918 TARGET_MIN_ANCHOR_OFFSET, TARGET_MAX_ANCHOR_OFFSET,
9919 TARGET_HAVE_SRODATA_SECTION, TARGET_HAVE_TLS,
9920 TARGET_UNWIND_TABLES_DEFAULT, TARGET_TERMINATE_DW2_EH_FRAME_INFO):
9921 Use @deftypevr rather than @deftypevar.
9923 2009-04-17 Richard Guenther <rguenther@suse.de>
9925 * tree-ssa-forwprop.c (get_prop_dest_stmt): Clean up tuplification.
9926 (get_prop_source_stmt): Likewise.
9927 (can_propagate_from): Likewise.
9929 2009-04-17 Andrew Stubbs <ams@codesourcery.com>
9931 * configure.ac: Add new AC_SUBST for TM_ENDIAN_CONFIG,
9932 TM_MULTILIB_CONFIG and TM_MULTILIB_EXCEPTIONS_CONFIG.
9933 (--with-multilib-list): Add default value.
9934 * configure: Regenerate.
9935 * Makefile.in (TM_ENDIAN_CONFIG): Define.
9936 (TM_MULTILIB_CONFIG, TM_MULTILIB_EXCEPTIONS_CONFIG): Define.
9937 * config.gcc (sh-*-*): Switch to using TM_ENDIAN_CONFIG,
9938 TM_MULTILIB_CONFIG, and TM_MULTILIB_EXCEPTIONS_CONFIG.
9939 Don't add default cpu to multilib list unnecessarily, but do enable
9940 the relevant compiler option..
9941 Add support for --with-multilib-list=<blank> and
9942 --with-multilib-list=!<somelib> to supress unwanted multilibs.
9943 * config/sh/t-sh (DEFAULT_ENDIAN, OTHER_ENDIAN): New variables.
9944 (MULTILIB_ENDIAN, MULTILIB_CPUS): Delete variables.
9945 (MULTILIB_OPTIONS): Redefine using OTHER_ENDIAN and
9947 (MULTILIB_EXCEPTIONS): Add TM_MULTILIB_EXCEPTIONS_CONFIG.
9948 (MULTILIB_OSDIRNAMES): New variable.
9949 * config/sh/t-1e: Delete file.
9950 * config/sh/t-mlib-sh1: Delete file.
9951 * config/sh/t-mlib-sh2: Delete file.
9952 * config/sh/t-mlib-sh2a: Delete file.
9953 * config/sh/t-mlib-sh2a-nofpu: Delete file.
9954 * config/sh/t-mlib-sh2a-single: Delete file.
9955 * config/sh/t-mlib-sh2a-single-only: Delete file.
9956 * config/sh/t-mlib-sh2e: Delete file.
9957 * config/sh/t-mlib-sh3e: Delete file.
9958 * config/sh/t-mlib-sh4: Delete file.
9959 * config/sh/t-mlib-sh4-nofpu: Delete file.
9960 * config/sh/t-mlib-sh4-single: Delete file.
9961 * config/sh/t-mlib-sh4-single-only: Delete file.
9962 * config/sh/t-mlib-sh4a: Delete file.
9963 * config/sh/t-mlib-sh4a-nofpu: Delete file.
9964 * config/sh/t-mlib-sh4a-single: Delete file.
9965 * config/sh/t-mlib-sh4a-single-only: Delete file.
9966 * config/sh/t-mlib-sh4al: Delete file.
9967 * config/sh/t-mlib-sh5-32media: Delete file.
9968 * config/sh/t-mlib-sh5-32media-nofpu: Delete file.
9969 * config/sh/t-mlib-sh5-64media: Delete file.
9970 * config/sh/t-mlib-sh5-64media-nofpu: Delete file.
9971 * config/sh/t-mlib-sh5-compact: Delete file.
9972 * config/sh/t-mlib-sh5-compact-nofpu: Delete file.
9973 * config/sh/t-linux: Don't override MULTILIB_EXCEPTIONS.
9974 * doc/install.texi (Options specification): Add
9975 --with-multilib-list and --with-endian.
9977 2009-04-17 Rafael Avila de Espindola <espindola@google.com>
9979 * Makefile.in (REVISION_s): Always include quotes. Change ifdef to use
9981 (OBJS-common): Add plugin-version.o.
9982 (plugin-version.o): New.
9983 * gcc-plugin.h (plugin_gcc_version): New.
9984 (plugin_default_version_check): New.
9985 (plugin_init_func, plugin_init): Add version argument.
9986 * plugin-version.c: New.
9987 * plugin.c (str_plugin_gcc_version_name): New.
9988 (try_init_one_plugin): Read plugin_gcc_version from the plugin and
9989 pass it to the init function.
9990 (plugin_default_version_check): New.
9992 2009-04-17 Richard Guenther <rguenther@suse.de>
9994 * tree-ssa-alias.c (refs_may_alias_p_1): Do not use TBAA
9995 for decl-vs-decl disambiguation.
9997 2009-04-17 Andreas Krebbel <krebbel1@de.ibm.com>
9999 * config/s390/s390.h (s390_tune_attr): New macro definition.
10000 * config/s390/s390.md (cpu attribute): Map to s390_tune_attr.
10002 2009-04-17 Richard Guenther <rguenther@suse.de>
10004 * tree-ssa-ccp.c (struct fold_stmt_r_data): Remove.
10005 (fold_stmt_r): Likewise.
10006 (maybe_fold_reference): New function.
10007 (fold_gimple_assign): Handle cases fold_stmt_r did.
10008 (fold_stmt): Do not use fold_stmt_r.
10009 (fold_stmt_inplace): Likewise.
10011 2009-04-17 Richard Guenther <rguenther@suse.de>
10013 * tree-ssa-dom.c (gimple_assign_unary_useless_conversion_p): Remove.
10014 (record_equivalences_from_stmt): Remove useless checks and
10016 * tree-ssa-pre.c (eliminate): Avoid converting a constant if
10017 the type is already suitable.
10019 2009-04-17 Paolo Bonzini <bonzini@gnu.org>
10021 * config/sh/sh.h (FUNCTION_VALUE): Fix call to sh_promote_prototypes.
10023 2009-04-17 Uros Bizjak <ubizjak@gmail.com>
10025 * config/arm/sfp-machine.h (__gcc_CMPtype): New typedef.
10026 (CMPtype): Define as __gcc_CMPtype.
10028 2009-04-17 Aurelien Jarno <aurelien@aurel32.net>
10030 * config.gcc: Add soft-fp/t-softfp and i386/t-linux to tmake_file
10031 for i[34567]86-*-kfreebsd*-gnu*, x86_64-*-kfreebsd*-gnu*.
10033 2009-04-17 Richard Guenther <rguenther@suse.de>
10035 PR tree-optimization/39746
10036 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Remove
10037 special-casing for builtins and static variable use/def.
10038 (call_may_clobber_ref_p_1): Likewise.
10040 2009-04-16 Ian Lance Taylor <iant@google.com>
10042 * df.h: Include "timevar.h".
10043 (struct df_problem): Change tv_id field to timevar_id_t.
10044 * tree-pass.h: Include "timevar.h".
10045 (struct opt_pass): Change tv_id field to timevar_id_t.
10046 * timevar.h (timevar_id_t): Define TV_NONE.
10047 * passes.c (execute_one_ipa_transform_pass): Check for tv_id !=
10048 TV_NONE rather than tv_id != 0.
10049 (execute_one_pass): Likewise.
10050 * Makefile.in (DF_H): Add $(TIMEVAR_H).
10051 (TREE_PASS_H): Define. Change all instances of tree-pass.h in
10052 dependencies to $(TREE_PASS_H).
10053 * bt-load.c (pass_branch_target_load_optimize1): Set tv_id field
10055 (pass_branch_target_load_optimize2): Likewise.
10056 * cfglayout.c (pass_into_cfg_layout_mode): Likewise.
10057 (pass_outof_cfg_layout_mode): Likewise.
10058 * cgraphbuild.c (pass_remove_cgraph_callee_edges): Likewise.
10059 (pass_rebuild_cgraph_edges): Likewise.
10060 (pass_remove_cgraph_callee_edges): Likewise.
10061 * df-core.c (pass_df_initialize_opt): Likewise.
10062 (pass_df_initialize_no_opt): Likewise.
10063 (pass_df_finish): Likewise.
10064 * emit-rtl.c (pass_unshare_all_rtl): Likewise.
10065 * except.c (pass_set_nothrow_function_flags): Likewise.
10066 (pass_convert_to_eh_region_ranges): Likewise.
10067 * final.c (pass_compute_alignments): Likewise.
10068 * function.c (pass_instantiate_virtual_regs): Likewise.
10069 (pass_init_function): Likewise.
10070 (pass_leaf_regs): Likewise.
10071 (pass_match_asm_constraints): Likewise.
10072 * gimple-low.c (pass_lower_cf): Likewise.
10073 (pass_mark_used_blocks): Likewise.
10074 * init-regs.c (pass_initialize_regs): Likewise.
10075 * integrate.c (pass_initial_value_sets): Likewise.
10076 * ira.c (pass_ira): Likewise.
10077 * jump.c (pass_cleanup_barriers): Likewise.
10078 * omp-low.c (pass_expand_omp): Likewise.
10079 (pass_lower_omp): Likewise.
10080 * matrix-reorg.c (pass_ipa_matrix_reorg): Likewise.
10081 * recog.c (pass_split_all_insns): Likewise.
10082 (pass_split_after_reload): Likewise.
10083 (pass_split_before_regstack): Likewise.
10084 (pass_split_before_sched2): Likewise.
10085 (pass_split_for_shorten_branches): Likewise.
10086 * reginfo.c (pass_reginfo_init): Likewise.
10087 (pass_subregs_of_mode_init): Likewise.
10088 (pass_subregs_of_mode_finish): Likewise.
10089 * passes.c (pass_postreload): Likewise.
10090 * stack-ptr-mod.c (pass_stack_ptr_mod): Likewise.
10091 * tree-cfg.c (pass_remove_useless_stmts): Likewise.
10092 (pass_warn_function_return): Likewise.
10093 (pass_warn_function_noreturn): Likewise.
10094 * tree-complex.c (pass_lower_complex): Likewise.
10095 (pass_lower_complex_O0): Likewise.
10096 * tree-if-conv.c (pass_if_conversion): Likewise.
10097 * tree-into-ssa.c (pass_build_ssa): Likewise.
10098 * tree-mudflap.c (pass_mudflap_1): Likewise.
10099 (pass_mudflap_2): Likewise.
10100 * tree-nomudflap.c (pass_mudflap_1): Likewise.
10101 (pass_mudflap_2): Likewise.
10102 * tree-nrv.c (pass_return_slot): Likewise.
10103 * tree-object-size.c (pass_object_sizes): Likewise.
10104 * tree-optimize.c (pass_all_optimizations): Likewise.
10105 (pass_early_local_passes): Likewise.
10106 (pass_all_early_optimizations): Likewise.
10107 (pass_cleanup_cfg): Likewise.
10108 (pass_cleanup_cfg_post_optimizing): Likewise.
10109 (pass_free_datastructures): Likewise.
10110 (pass_free_cfg_annotations): Likewise.
10111 (pass_fixup_cfg): Likewise.
10112 (pass_init_datastructures): Likewise.
10113 * tree-ssa.c (pass_early_warn_uninitialized): Likewise.
10114 (pass_late_warn_uninitialized): Likewise.
10115 (pass_update_address_taken): Likewise.
10116 * tree-ssa-ccp.c (pass_fold_builtins): Likewise.
10117 * tree-ssa-math-opts.c (pass_cse_reciprocals): Likewise.
10118 (pass_cse_sincos): Likewise.
10119 (pass_convert_to_rsqrt): Likewise.
10120 * tree-ssa-structalias.c (pass_build_alias): Likewise.
10121 * tree-stdarg.c (pass_stdarg): Likewise.
10122 * tree-tailcall.c (pass_tail_recursion): Likewise.
10123 (pass_tail_calls): Likewise.
10124 * tree-vect-generic.c (pass_lower_vector): Likewise.
10125 (pass_lower_vector_ssa): Likewise.
10126 * tree-vectorizer.c (pass_ipa_increase_alignment): Likewise.
10128 2009-04-16 Joseph Myers <joseph@codesourcery.com>
10130 * config/mips/mips.c (mips_rtx_cost_data): Use SOFT_FP_COSTS in
10132 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC):
10134 * config/mips/xlr.md (ir_xlr_alu): Also accept insn types move,
10135 logical and signext.
10137 2009-04-16 Kaz Kojima <kkojima@gcc.gnu.org>
10140 * config/sh/predicates.md (arith_operand): Check if the operand
10141 of TRUNCATE is a REG.
10143 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
10145 * cfgrtl.c (delete_insn_chain_and_edges): Remove.
10146 * rtl.h: Remove the prototype for delete_insn_chain_and_edges.
10148 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
10150 * tree-iterator.c (tsi_split_statement_list_after,
10151 tsi_split_statement_list_before): Remove.
10152 * tree-iterator.h: Remove the prototypes for
10153 tsi_split_statement_list_after and tsi_split_statement_list_before.
10155 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
10157 * tree-ssa-propagate.c (stmt_makes_single_load): Remove.
10158 * tree-ssa-propagate.h: Remove the prototype for
10159 stmt_makes_single_load.
10161 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
10163 * emit-rtl.c (set_mem_attrs_from_reg): Remove.
10164 * rtl.h: Remove the prototype for set_mem_attrs_from_reg.
10166 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
10168 * tree-iterator.c (EXPR_LAST_BODY): Remove.
10170 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
10172 * except.c (eh_region_outer_p): Remove.
10173 * except.h: Remove the prototype for eh_region_outer_p.
10175 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
10177 * function.c (current_function_assembler_name): Remove.
10178 * function.h: Remove the prototype for
10179 current_function_assembler_name.
10181 2009-04-16 Ian Lance Taylor <iant@google.com>
10183 * rtlanal.c (alloc_reg_note): New function, broken out of add_reg_note.
10184 (add_reg_note): Call alloc_reg_note.
10185 * rtl.h (alloc_reg_note): Declare.
10186 * combine.c (try_combine): Use alloc_reg_note.
10187 (recog_for_combine, move_deaths): Likewise.
10188 (distribute_notes): Use alloc_reg_note and add_reg_note.
10189 * haifa-sched.c (sched_create_recovery_edges): Use add_reg_note.
10190 * combine-stack-adj.c (adjust_frame_related_expr): Likewise.
10191 * reload1.c (eliminate_regs_1): Use alloc_reg_note.
10193 2009-04-16 Vladimir Makarov <vmakarov@redhat.com>
10195 PR rtl-optimization/39762
10196 * ira-int.h (ira_register_move_cost, ira_may_move_in_cost,
10197 ira_may_move_out_cost): Add comments about way of their usage.
10198 (ira_get_register_move_cost, ira_get_may_move_cost): New functions.
10200 * ira-conflicts.c (process_regs_for_copy): Use function
10201 ira_get_register_move_cost instead of global
10202 ira_register_move_cost.
10204 * ira-color.c (update_copy_costs, calculate_allocno_spill_cost,
10205 color_pass, move_spill_restore, update_curr_costs): Ditto.
10207 * ira-lives.c (process_single_reg_class_operands): Ditto.
10209 * ira-emit.c (emit_move_list): Ditto.
10211 * ira-costs.c (copy_cost): Don't call ira_init_register_move_cost.
10212 (record_reg_classes): Ditto. Use functions
10213 ira_get_register_move_cost and ira_get_may_move_cost instead of
10214 global vars ira_register_move_cost, ira_may_move_out_cost and
10215 ira_may_move_in_cost.
10216 (record_address_regs): Don't call ira_init_register_move_cost.
10217 Use function ira_get_may_move_cost instead of global
10218 ira_may_move_in_cost.
10219 (process_bb_node_for_hard_reg_moves): Use function
10220 ira_get_register_move_cost instead of global ira_register_move_cost.
10221 (ira_costs): Don't call ira_init_register_move_cost.
10223 2009-04-16 Richard Guenther <rguenther@suse.de>
10225 * tree-cfg.c (verify_gimple_assign_binary):
10226 Allow POINTER_PLUS_EXPR-like PLUS_EXPR for vectors.
10227 * ipa-struct-reorg.c (gen_size): Fold the built expressions.
10228 (create_general_new_stmt): Note that this function is broken.
10230 2009-04-16 Rafael Avila de Espindola <espindola@google.com>
10232 * common.opt (fhelp): Add Var(help_flag).
10233 * gcc-plugin.h (plugin_info): Add help.
10234 * plugin.c (plugin_name_args): Add help.
10235 (register_plugin_info): Set plugin->help.
10236 (print_help_one_plugin): New.
10237 (print_plugins_help): New.
10238 * plugin.h (print_plugins_help): New.
10239 * toplev.c (toplev_main): Call print_plugins_help if needed.
10241 2009-04-16 Richard Guenther <rguenther@suse.de>
10243 * gimple.c (gimple_copy): Do not clear addresses_taken bitmap.
10244 (gimple_ior_addresses_taken_1): New function.
10245 (gimple_ior_addresses_taken): Likewise.
10246 * gimple.h (struct gimple_statement_with_ops_base): Remove
10247 addresses_taken member.
10248 (gimple_ior_addresses_taken): Declare.
10249 (gimple_addresses_taken, gimple_addresses_taken_ptr,
10250 gimple_set_addresses_taken): Remove.
10251 * ipa-reference.c (mark_address): New function.
10252 (scan_stmt_for_static_refs): Use it for marking addresses taken.
10253 * tree-ssa-operands.c (add_to_addressable_set): Rename to ...
10254 (mark_address_taken): ... this. Just set TREE_ADDRESSABLE.
10255 (gimple_add_to_addresses_taken): Remove.
10256 (get_tmr_operands): Call mark_address_taken.
10257 (get_asm_expr_operands): Likewise.
10258 (get_expr_operands): Likewise.
10259 (build_ssa_operands): Do not clear the addresses_taken bitmap.
10260 (free_stmt_operands): Do not free it.
10261 * tree-ssa.c (delete_tree_ssa): Likewise.
10262 (execute_update_addresses_taken): Use gimple_ior_addresses_taken.
10264 2009-04-16 Richard Guenther <rguenther@suse.de>
10266 * gimple.h (walk_stmt_load_store_addr_ops): Declare.
10267 (walk_stmt_load_store_ops): Likewise.
10268 * gimple.c (get_base_loadstore): New function.
10269 (walk_stmt_load_store_addr_ops): Likewise.
10270 (walk_stmt_load_store_ops): Likewise.
10271 * ipa-pure-const.c (check_op): Simplify.
10272 (check_load, check_store): New functions.
10273 (check_stmt): Use walk_stmt_load_store_ops.
10274 * ipa-reference.c (mark_load): Adjust signature.
10275 (mark_store): Likewise.
10276 (scan_stmt_for_static_refs): Use walk_stmt_load_store_addr_ops.
10278 2009-04-16 Rafael Avila de Espindola <espindola@google.com>
10280 * gcc-plugin.h (plugin_event): Add PLUGIN_INFO.
10281 (plugin_info): New.
10282 * opts.c (common_handle_option): Don't call print_version.
10283 * plugin.c (plugin_name_args): Add version.
10284 (register_plugin_info): New.
10285 (register_callback): Handle PLUGIN_INFO.
10286 (try_init_one_plugin): New.
10287 (init_one_plugin): Use try_init_one_plugin. Only free plugin_name_args
10289 (finalize_one_plugin): New.
10290 (finalize_plugins): New.
10291 (print_one_plugin): New.
10292 (print_plugins_versions): New.
10293 * plugin.h (print_plugins_versions): New.
10294 (finalize_plugins): New.
10295 * toplev.c (compile_file): Don't call initialize_plugins.
10296 (print_version): Call print_plugins_versions.
10297 (toplev_main): Call initialize_plugins. Print version if needed.
10298 Call finalize_plugins.
10300 2009-04-16 Rafael Avila de Espindola <espindola@google.com>
10302 * common.opt (fversion): New.
10303 * gcc.c (print_version): New.
10304 (process_command): Don't print the version. Just set print_version.
10305 (main): Print version. Call subprocesses if print_version and
10306 verbose_flag are set.
10307 * opts.c (common_handle_option): Handle OPT_fversion.
10309 2009-04-16 Richard Guenther <rguenther@suse.de>
10310 Ira Rosen <irar@il.ibm.com>
10312 PR tree-optimization/39698
10313 * tree-vect-loop.c (get_initial_def_for_reduction): Use the
10314 type of the reduction variable. Only generate the def if
10317 * omp-low.c (expand_omp_for_generic): When converting to a pointer
10318 make sure to first convert to an integer of the same precision.
10319 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Retain
10320 the type of the evolution correctly in computing the new
10321 induction variable base.
10323 2009-04-16 Richard Guenther <rguenther@suse.de>
10325 PR middle-end/39625
10326 * tree-cfg.c (make_blocks): Split statements with to-be
10327 abnormal SSA names on the lhs.
10329 2009-04-16 Paolo Bonzini <bonzini@gnu.org>
10331 * c-common.c (vector_targets_convertible_p, vector_types_convertible_p):
10332 Use TYPE_VECTOR_OPAQUE instead of targetm.vector_opaque_p.
10333 * c-typeck.c (really_start_incremental_init): Likewise.
10334 * target-def.h (TARGET_VECTOR_OPAQUE_P): Remove.
10335 (TARGET_INITIALIZER): Remove it.
10336 * target.h (struct target): Remove vector_opaque_p.
10337 * tree.c (build_opaque_vector_type): New.
10338 * tree.h (TYPE_VECTOR_OPAQUE): New.
10339 (build_opaque_vector_type): Declare.
10340 * doc/tm.texi (TARGET_VECTOR_OPAQUE_P): Remove.
10341 * config/rs6000/rs6000.c (build_opaque_vector_type,
10342 rs6000_is_vector_type, TARGET_VECTOR_OPAQUE_P): Remove.
10343 (rs6000_init_builtins): Use build_opaque_vector_type for
10344 opaque_V4SI_type_node.
10346 2009-04-15 Catherine Moore <clm@codesourcery.com>
10348 * debug.h (set_name): Declare.
10349 * dwarf2out.c (dwarf2out_set_name): Declare.
10350 (dwarf2_debug_hooks): Add set_name.
10351 (find_AT_string): New.
10352 (add_AT_string): Call find_AT_string.
10353 (dwarf2out_set_name): New.
10354 * cp/decl.c (grokdeclarator): Call set_name.
10355 * vmsdbgout.c (vmsdbg_debug_hooks): Add set_name_debug_nothing.
10356 * debug.c (do_nothing_debug_hooks): Likewise.
10357 * dbxout.c (dbx_debug_hooks): Likewise.
10358 * sdbout.c (sdb_debug_hooks): Likewise.
10360 2009-04-15 Michael Eager <eager@eagercon.com>
10362 * config/rs6000/rs6000.c (rs6000_function_value): Set function return
10363 reg for single-precision FPU.
10364 * config/rs6000/rs6000.md (movsi_internal1): Only for
10365 !TARGET_SINGLE_FPU.
10366 (movsi_internal1_single): New. Add pattern to move SI values to/from
10367 single-precision FP regs.
10369 2009-04-15 Richard Guenther <rguenther@suse.de>
10371 * omp-low.c (lower_rec_input_clauses): Build correct address
10373 (expand_omp_for_generic): Fix multiplication type.
10374 * tree-loop-distribution.c (build_size_arg): Build a size_t argument.
10375 (generate_memset_zero): Fix types.
10376 * tree-profile.c (prepare_instrumented_value): Correctly
10379 2009-04-15 Ian Lance Taylor <iant@google.com>
10381 * c.opt (Wenum-compare): Enable for C and Objc. Initialize to -1.
10382 * c-opts.c (c_common_handle_option): For C, set warn_enum_compare
10383 for -Wall and for -Wc++-compat.
10384 (c_common_post_options): For C++, set warn_enum_compare if not
10386 * c-tree.h (struct c_expr): Add field original_type.
10387 (build_external_ref): Update declaration.
10388 * c-parser.c (c_parser_braced_init): Set original_type.
10389 (c_parser_initelt): Likewise.
10390 (c_parser_expr_no_commas): Likewise.
10391 (c_parser_conditional_expression): Likewise.
10392 (c_parser_cast_expression): Likewise.
10393 (c_parser_unary_expression): Likewise. Pull setting of
10394 original_code to top of function.
10395 (c_parser_sizeof_expression): Set original_type.
10396 (c_parser_alignof_expression): Likewise.
10397 (c_parser_postfix_expression): Likewise. Pull setting of
10398 original_code to top of function.
10399 (c_parser_postfix_expression_after_paren_type): Set original_type.
10400 (c_parser_postfix_expression_after_primary): Likewise.
10401 (c_parser_expression): Likewise.
10402 * c-typeck.c (build_external_ref): Add type parameter. Change all
10404 (c_expr_sizeof_expr): Set original_type field.
10405 (parser_build_unary_op): Likewise.
10406 (parser_build_binary_op): Likewise. Optionally warn about
10407 comparisons of enums of different types.
10408 (digest_init): Set original_type field.
10409 (really_start_incremental_init): Likewise.
10410 (push_init_level, pop_init_level): Likewise.
10411 * doc/invoke.texi (Warning Options): -Wenum-compare now
10414 2009-04-15 Richard Guenther <rguenther@suse.de>
10416 * tree-ssa-pre.c (eliminate): When replacing a PHI node carry
10417 out a necessary conversion.
10418 * tree-ssa-sccvn.c (run_scc_vn): Also assign value-ids to
10419 names we didn't value number.
10420 * tree-mudflap.c (mf_build_check_statement_for): Use correct types.
10422 2009-04-15 Richard Guenther <rguenther@suse.de>
10424 PR tree-optimization/39764
10425 * tree-ssa-ccp.c (get_value): Canonicalize value with
10426 canonicalize_float_value.
10428 2009-04-15 Jan Hubicka <jh@suse.cz>
10430 * builtins.def (va_start, va_end, va_copy): Fix my previous commit.
10431 Wrong version of patch.
10433 2009-04-15 Jan Hubicka <jh@suse.cz>
10435 * builtins.def (va_start, va_end, va_copy): Mark nothrow.
10437 2009-04-15 Nathan Sidwell <nathan@codesourcery.com>
10439 * config/rs6000/rs6000.c (rs6000_init_builtins): Set TYPE_NAME of
10440 our distinct integral and vector types.
10442 2009-04-15 Rafael Avila de Espindola <espindola@google.com>
10444 * class.c (build_vtbl_ref_1): Remove call to assemble_external.
10445 * init.c (build_vtbl_address): Remove call to assemble_external.
10447 2009-04-14 Daniel Jacobowitz <dan@codesourcery.com>
10449 * config/rs6000/rs6000.c (rs6000_dwarf_register_span): Fix debug
10450 output for other floating point modes.
10452 2009-04-14 Diego Novillo <dnovillo@google.com>
10454 * diagnostic.c (diagnostic_report_diagnostic): Do not
10455 warn about loaded plugins for DK_ERROR and DK_WARNING.
10456 * c-decl.c (declspecs_add_type): Move call to
10457 invoke_plugin_callbacks ...
10458 * c-parser.c (c_parser_declspecs): ... here.
10459 * plugin.c (dump_active_plugins): Tidy output.
10461 2009-04-14 Diego Novillo <dnovillo@google.com>
10462 Le-Chun Wu <lcwu@google.com>
10464 * configure.ac: Add --enable-plugin support.
10465 Define ENABLE_PLUGIN and PLUGINLIBS when specified.
10466 * Makefile.in (PLUGIN_H): Define.
10467 Export ENABLE_PLUGIN and GMPINC to site.exp.
10468 Add PLUGINLIBS to link command.
10469 Add/modify dependencies for plugin.o and files including plugin.h.
10471 * config.in: Regenerate.
10473 * opts.c (common_handle_option): Handle OPT_fplugin_ and
10476 2009-04-14 Le-Chun Wu <lcwu@google.com>
10478 * tree-pass.h (register_one_dump_file): Add a prototype for
10479 register_one_dump_file.
10480 * toplev.c (compile_file): Call initialize_plugins.
10481 (do_compile): Call invoke_plugin_callbacks.
10482 (toplev_main): Call invoke_plugin_callbacks.
10483 * common.opt: Add -fplugin= and -fplugin-arg-.
10484 * gcc-plugin.h: New public header file for plugins to include.
10485 * plugin.c: New source file.
10486 * plugin.h: New internal header file.
10487 * passes.c (register_one_dump_file): Make it external.
10489 * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks.
10491 2009-04-14 Diego Novillo <dnovillo@google.com>
10493 * doc/plugins.texi: New.
10494 * doc/gccint.texi: Add reference to Plugins chapter.
10495 * doc/invoke.texi: Document -fplugin and -fplugin-arg
10496 * diagnostic.c (diagnostic_report_diagnostic): Warn about
10497 loaded plugins, if any.
10498 * timevar.def (TV_PLUGIN_INIT): Define.
10499 (TV_PLUGIN_RUN): Define.
10500 * plugin.c: Include timevar.h
10501 (plugins_active_p): New.
10502 (dump_active_plugins): New.
10503 (debug_active_plugins): New.
10505 2009-04-14 Joseph Myers <joseph@codesourcery.com>
10507 * config/sol2.h (LINK_ARCH32_SPEC_BASE): Use %R with absolute
10509 * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Likewise.
10511 2009-04-14 Kazu Hirata <kazu@codesourcery.com>
10513 * config/arm/arm.c (arm_rtx_costs_1): Treat a minus with a shift
10514 the same as a minus without a shift.
10516 2009-04-14 Nick Clifton <nickc@redhat.com>
10518 * config/stormy16/stormy16.md (ineqbranch_1): Do not assume that
10519 comparisons with small integers will always produce a short
10522 2009-04-14 Rafael Avila de Espindola <espindola@google.com>
10525 2008-12-19 Diego Novillo <dnovillo@google.com>
10527 * cgraph.c (dump_cgraph_node): Show memory address of NODE.
10529 2009-04-14 Richard Guenther <rguenther@suse.de>
10531 * tree-cfg.c (verify_gimple_assign_unary): Adjust vector code
10533 (verify_gimple_assign_binary): Likewise. Handle shifts and
10535 (verify_gimple_phi): Print the mismatched argument position.
10536 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
10538 (vect_update_init_of_dr): Likewise.
10539 * matrix-reorg.c (transform_access_sites): Do what the
10541 * omp-low.c (expand_omp_atomic_pipeline): Use the correct types.
10543 2009-04-13 Michael Eager <eager@eagercon.com>
10545 * config/rs6000/rs6000-c.c: generate defines if rs6000_xilinx_fpu:
10546 _XFPU, _XFPU_SP_LITE, _XFPU_SP_FULL, _XFPU_DP_LITE, _XFPU_DP_FULL
10547 * config/rs6000/xilinx.h: New. Spec for powerpc-xilinx-eabi
10548 * config.gcc (powerpc-xilinx-eabi): add xilinx.h to tm_file,
10549 remove duplicate config
10551 2009-04-13 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
10553 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Dump
10554 file_name:line_number type locator of the call site.
10556 2009-04-13 Vladimir Makarov <vmakarov@redhat.com>
10558 * genautomata.c: Put blank after comma.
10559 (automaton_decls): New.
10560 (struct unit_usage): Add comments to member next.
10561 (store_alt_unit_usage): Keep the list ordered.
10562 (unit_present_on_list_p, equal_alternatives_p): New.
10563 (check_regexp_units_distribution): Check units distribution
10564 correctness correctly.
10565 (main): Don't write automata if error is found. Return correct
10568 * config/m68k/cf.md (cfv4_ds): Remove.
10569 (cfv4_pOEP1, cfv4_sOEP1, cfv4_pOEP2,cfv4_sOEP2, cfv4_pOEP3,
10570 cfv4_sOEP3): Assign to cfv4_oep instead of cfv4_ds.
10572 * config/rs6000/power4.md (lsuq_power4, iq_power4, fpq_power4,
10573 power4-load-ext, power4-store, power4-store-update,
10574 power4-fpstore, power4-fpstore-update, power4-two, power4-three,
10575 power4-insert, power4-compare, power4-lmul-cmp, power4-imul-cmp,
10576 power4-lmul, , power4-imul, power4-imul3, power4-sdiv,
10577 power4-sqrt, power4-isync): Modify reservation to make correct
10578 unit distribution to automata.
10580 * config/rs6000/power5.md (iq_power5, fpq_power5, power5-store,
10581 power5-store-update, power5-two, power5-three, power5-lmul,
10582 power5-imul, power5-imul3, power5-sdiv, power5-sqrt): Ditto.
10584 2009-04-13 Adam Nemet <anemet@caviumnetworks.com>
10586 * except.c (pass_set_nothrow_function_flags): Set name and add
10588 (set_nothrow_function_flags): Mention in the dump file when
10589 changing a function to nothrow.
10591 2009-04-13 Ozkan Sezer <sezeroz@gmail.com>
10594 * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Use __SIZE_TYPE__
10595 instead of unsigned long.
10597 2009-04-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10599 * config/arm/arm.c (return_used_this_function): Remove.
10600 (arm_output_function_prologue): Remove use of
10601 return_used_this_function.
10602 (output_return_instruction): Replace use of
10603 return_used_this_function
10604 by cfun->machine->return_used_this_function.
10605 (arm_output_epilogue): Likewise.
10606 (arm_output_function_epilogue): Likewise.
10607 (thumb_unexpanded_epilogue): Likewise.
10608 * config/arm/arm.h (struct machine_function):
10609 New member return_used_this_function.
10611 2009-04-12 Mark Mitchell <mark@codesourcery.com>
10613 * doc/install.texi: Correct description of default directory for
10614 --with-gxx-include-dir.
10616 2009-04-12 Eric Botcazou <ebotcazou@adacore.com>
10618 * fold-const.c (build_range_check): Properly deal with enumeral and
10619 boolean base types.
10621 2009-04-12 Steven Bosscher <steven@gcc.gnu.org>
10623 * doc/invoke.texi (max_gcse_passes): Remove documentation.
10624 * params.def (PARAM_MAX_GCSE_PASSES): Remove.
10625 * params.h (MAX_GCSE_PASSES): Remove.
10626 * gcse.c (gcse_main): Run CPROP1, PRE or HOIST, and CPROP2
10627 in sequence. Remove ability to run multiple passes.
10628 (bypass_jumps): Report run as third CPROP pass.
10630 2009-04-12 Adam Nemet <anemet@caviumnetworks.com>
10632 PR middle-end/39651
10633 * except.c (can_throw_external): Look at each insn in a SEQUENCE
10634 when deciding whether the whole SEQUENCE can throw.
10636 2009-04-12 Uros Bizjak <ubizjak@gmail.com>
10639 * config/alpha/predicates.md (local_symbolic_operand): Return 1 for
10640 offseted label references.
10642 2009-04-11 Jan Hubicka <jh@suse.cz>
10644 * tree-ssa-pre.c (eliminate): Fix call of update_stmt.
10646 2009-04-11 Richard Guenther <rguenther@suse.de>
10648 PR middle-end/39732
10649 * tree-inline.c (declare_return_variable): Mark DECL_BY_REFERENCE
10650 return variables as TREE_ADDRESSABLE.
10652 2009-04-11 Richard Guenther <rguenther@suse.de>
10654 PR tree-optimization/39713
10655 * tree-ssa-sccvn.c (vn_get_expr_for): Make sure built
10656 reference trees have SSA_NAME operands.
10658 2009-04-11 Richard Guenther <rguenther@suse.de>
10661 * c-gimplify.c (c_gimplify_expr): Adjust check for mismatched
10662 address expressions.
10664 2009-04-11 Dave Korn <dave.korn.cygwin@gmail.com>
10666 * config/i386/cygwin-stdint.h (INT_LEAST32_TYPE): Update to
10667 match changes in Cygwin 1.7
10668 (UINT_LEAST32_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE,
10669 UINT_FAST16_TYPE, UINT_FAST32_TYPE): Likewise.
10671 2009-04-10 Paolo Bonzini <bonzini@gnu.org>
10673 PR tree-optimization/39701
10674 * doc/invoke.texi (Optimization Options): Document change in
10675 meaning and initialization of -fdelete-null-pointer-checks.
10677 2009-04-10 H.J. Lu <hongjiu.lu@intel.com>
10679 PR middle-end/39701
10680 * common.opt (-fdelete-null-pointer-checks): Initialize to 1.
10682 * opts.c (decode_options): Don't set flag_delete_null_pointer_checks
10685 * doc/invoke.texi: Update -fdelete-null-pointer-checks.
10687 2009-04-10 Chao-ying Fu <fu@mips.com>
10689 * doc/tm.texi (Instruction Output): Document
10690 TARGET_ASM_FINAL_POSTSCAN_INSN.
10691 * target.h (final_postscan_insn): New field in asm_out.
10692 * target-def.h (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
10693 (TARGET_ASM_OUT): Add TARGET_ASM_FINAL_POSTSCAN_INSN.
10694 * final.c (final_scan_insn): Call
10695 targetm.asm_out.final_postscan_insn after outputting
10696 an asm macro and a normal instruction.
10698 * config/mips/mips.h (FINAL_PRESCAN_INSN): New define.
10699 * config/mips/mips-protos.h (mips_final_prescan_insn): Declare.
10700 * config/mips/mips.c (mips_at_reg_p): New for_each_rtx callback.
10701 (mips_final_prescan_insn, mips_final_postscan_insn): New functions.
10702 (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
10704 2009-04-10 Paolo Bonzini <bonzini@gnu.org>
10706 PR middle-end/39701
10707 * fold-const.c (tree_single_nonzero_warnv_p): Pass non-static
10708 variables as non-NULL even with -fdelete-null-pointer-checks.
10710 2009-04-10 H.J. Lu <hongjiu.lu@intel.com>
10712 * config/rs6000/darwin-vecsave.asm: Remove extra "*/".
10714 2009-04-09 H.J. Lu <hongjiu.lu@intel.com>
10717 * config/i386/i386.c (classify_argument): Handle SCmode with
10718 (bit_offset % 64) != 0.
10720 2009-04-09 Sandra Loosemore <sandra@codesourcery.com>
10722 * doc/invoke.texi (Optimize Options): Add cross-reference to
10723 -Q --help=optimizers examples.
10725 2009-04-10 Ben Elliston <bje@au.ibm.com>
10728 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Do not set
10729 regalign for the reg == fpr and TDmode case.
10731 2009-04-09 David Ayers <ayers@fsfe.org>
10734 * objc/objc-act.c (warn_with_method): Remove helper function.
10735 (check_duplicates): Call warning and inform directly.
10736 (really_start_method): Likewise.
10738 2009-04-09 Paolo Bonzini <bonzini@gnu.org>
10740 * expmed.c (expand_divmod): Always use a comparison for a division
10741 by a large unsigned integer.
10743 * fold-const.c (tree_single_nonzero_warnv_p): Always treat decls
10744 for things others than variables or functions as nonzero.
10746 2009-04-09 Nick Clifton <nickc@redhat.com>
10748 * unwind-compat.c: Change copyright header to refer to version
10749 3 of the GNU General Public License with version 3.1 of the
10750 GCC Runtime Library Exception and to point readers at the
10751 COPYING3 and COPYING3.RUNTIME files and the FSF's license web page.
10752 * config/alpha/crtfastmath.c: Likewise.
10753 * config/alpha/linux-unwind.h: Likewise.
10754 * config/alpha/qrnnd.asm: Likewise.
10755 * config/alpha/vms-crt0-64.c: Likewise.
10756 * config/alpha/vms-crt0.c: Likewise.
10757 * config/alpha/vms-dwarf2.asm: Likewise.
10758 * config/alpha/vms-dwarf2eh.asm: Likewise.
10759 * config/alpha/vms-psxcrt0-64.c: Likewise.
10760 * config/alpha/vms-psxcrt0.c: Likewise.
10761 * config/alpha/vms_tramp.asm: Likewise.
10762 * config/arc/initfini.c: Likewise.
10763 * config/arc/lib1funcs.asm: Likewise.
10764 * config/arm/bpabi-v6m.S: Likewise.
10765 * config/arm/bpabi.S: Likewise.
10766 * config/arm/bpabi.c: Likewise.
10767 * config/arm/crti.asm: Likewise.
10768 * config/arm/crtn.asm: Likewise.
10769 * config/arm/ieee754-df.S: Likewise.
10770 * config/arm/ieee754-sf.S: Likewise.
10771 * config/arm/lib1funcs.asm: Likewise.
10772 * config/arm/libunwind.S: Likewise.
10773 * config/arm/linux-atomic.c: Likewise.
10774 * config/arm/mmintrin.h: Likewise.
10775 * config/arm/pr-support.c: Likewise.
10776 * config/arm/unaligned-funcs.c: Likewise.
10777 * config/arm/unwind-arm.c: Likewise.
10778 * config/arm/unwind-arm.h: Likewise.
10779 * config/avr/libgcc.S: Likewise.
10780 * config/bfin/crti.s: Likewise.
10781 * config/bfin/crtlibid.s: Likewise.
10782 * config/bfin/crtn.s: Likewise.
10783 * config/bfin/lib1funcs.asm: Likewise.
10784 * config/bfin/linux-unwind.h: Likewise.
10785 * config/cris/arit.c: Likewise.
10786 * config/cris/cris_abi_symbol.c: Likewise.
10787 * config/darwin-64.c: Likewise.
10788 * config/darwin-crt2.c: Likewise.
10789 * config/darwin-crt3.c: Likewise.
10790 * config/darwin.h: Likewise.
10791 * config/dbxelf.h: Likewise.
10792 * config/dfp-bit.c: Likewise.
10793 * config/dfp-bit.h: Likewise.
10794 * config/elfos.h: Likewise.
10795 * config/fixed-bit.c: Likewise.
10796 * config/fixed-bit.h: Likewise.
10797 * config/fp-bit.c: Likewise.
10798 * config/fp-bit.h: Likewise.
10799 * config/fr30/crti.asm: Likewise.
10800 * config/fr30/crtn.asm: Likewise.
10801 * config/fr30/lib1funcs.asm: Likewise.
10802 * config/freebsd-spec.h: Likewise.
10803 * config/frv/cmovd.c: Likewise.
10804 * config/frv/cmovh.c: Likewise.
10805 * config/frv/cmovw.c: Likewise.
10806 * config/frv/frvbegin.c: Likewise.
10807 * config/frv/frvend.c: Likewise.
10808 * config/frv/lib1funcs.asm: Likewise.
10809 * config/glibc-stdint.h: Likewise.
10810 * config/h8300/clzhi2.c: Likewise.
10811 * config/h8300/crti.asm: Likewise.
10812 * config/h8300/crtn.asm: Likewise.
10813 * config/h8300/ctzhi2.c: Likewise.
10814 * config/h8300/fixunssfsi.c: Likewise.
10815 * config/h8300/lib1funcs.asm: Likewise.
10816 * config/h8300/parityhi2.c: Likewise.
10817 * config/h8300/popcounthi2.c: Likewise.
10818 * config/i386/ammintrin.h: Likewise.
10819 * config/i386/att.h: Likewise.
10820 * config/i386/avxintrin.h: Likewise.
10821 * config/i386/biarch64.h: Likewise.
10822 * config/i386/bmmintrin.h: Likewise.
10823 * config/i386/cpuid.h: Likewise.
10824 * config/i386/cross-stdarg.h: Likewise.
10825 * config/i386/crtfastmath.c: Likewise.
10826 * config/i386/crtprec.c: Likewise.
10827 * config/i386/cygming-crtbegin.c: Likewise.
10828 * config/i386/cygming-crtend.c: Likewise.
10829 * config/i386/cygwin.asm: Likewise.
10830 * config/i386/emmintrin.h: Likewise.
10831 * config/i386/gmm_malloc.h: Likewise.
10832 * config/i386/gthr-win32.c: Likewise.
10833 * config/i386/i386.h: Likewise.
10834 * config/i386/immintrin.h: Likewise.
10835 * config/i386/linux-unwind.h: Likewise.
10836 * config/i386/linux64.h: Likewise.
10837 * config/i386/mm3dnow.h: Likewise.
10838 * config/i386/mmintrin-common.h: Likewise.
10839 * config/i386/mmintrin.h: Likewise.
10840 * config/i386/nmmintrin.h: Likewise.
10841 * config/i386/pmm_malloc.h: Likewise.
10842 * config/i386/pmmintrin.h: Likewise.
10843 * config/i386/smmintrin.h: Likewise.
10844 * config/i386/sol2-c1.asm: Likewise.
10845 * config/i386/sol2-ci.asm: Likewise.
10846 * config/i386/sol2-cn.asm: Likewise.
10847 * config/i386/sol2-gc1.asm: Likewise.
10848 * config/i386/tmmintrin.h: Likewise.
10849 * config/i386/unix.h: Likewise.
10850 * config/i386/w32-unwind.h: Likewise.
10851 * config/i386/wmmintrin.h: Likewise.
10852 * config/i386/x86-64.h: Likewise.
10853 * config/i386/x86intrin.h: Likewise.
10854 * config/i386/xmmintrin.h: Likewise.
10855 * config/ia64/crtbegin.asm: Likewise.
10856 * config/ia64/crtend.asm: Likewise.
10857 * config/ia64/crtfastmath.c: Likewise.
10858 * config/ia64/crti.asm: Likewise.
10859 * config/ia64/crtn.asm: Likewise.
10860 * config/ia64/fde-glibc.c: Likewise.
10861 * config/ia64/lib1funcs.asm: Likewise.
10862 * config/ia64/linux-unwind.h: Likewise.
10863 * config/ia64/quadlib.c: Likewise.
10864 * config/ia64/unwind-ia64.c: Likewise.
10865 * config/linux.h: Likewise.
10866 * config/m32c/m32c-lib1.S: Likewise.
10867 * config/m32c/m32c-lib2-trapv.c: Likewise.
10868 * config/m32c/m32c-lib2.c: Likewise.
10869 * config/m32r/initfini.c: Likewise.
10870 * config/m68hc11/larith.asm: Likewise.
10871 * config/m68hc11/m68hc11-crt0.S: Likewise.
10872 * config/m68k/cf.md: Likewise.
10873 * config/m68k/crti.s: Likewise.
10874 * config/m68k/crtn.s: Likewise.
10875 * config/m68k/lb1sf68.asm: Likewise.
10876 * config/m68k/linux-unwind.h: Likewise.
10877 * config/mcore/crti.asm: Likewise.
10878 * config/mcore/crtn.asm: Likewise.
10879 * config/mcore/lib1.asm: Likewise.
10880 * config/mips/linux-unwind.h: Likewise.
10881 * config/mips/loongson.h: Likewise.
10882 * config/mips/mips16.S: Likewise.
10883 * config/mmix/crti.asm: Likewise.
10884 * config/mmix/crtn.asm: Likewise.
10885 * config/pa/fptr.c: Likewise.
10886 * config/pa/hpux-unwind.h: Likewise.
10887 * config/pa/lib2funcs.asm: Likewise.
10888 * config/pa/linux-atomic.c: Likewise.
10889 * config/pa/linux-unwind.h: Likewise.
10890 * config/pa/milli64.S: Likewise.
10891 * config/pa/quadlib.c: Likewise.
10892 * config/pa/stublib.c: Likewise.
10893 * config/picochip/libgccExtras/adddi3.asm: Likewise.
10894 * config/picochip/libgccExtras/ashlsi3.asm: Likewise.
10895 * config/picochip/libgccExtras/ashlsi3.c: Likewise.
10896 * config/picochip/libgccExtras/ashrsi3.asm: Likewise.
10897 * config/picochip/libgccExtras/ashrsi3.c: Likewise.
10898 * config/picochip/libgccExtras/cmpsi2.asm: Likewise.
10899 * config/picochip/libgccExtras/divmod15.asm: Likewise.
10900 * config/picochip/libgccExtras/divmodhi4.asm: Likewise.
10901 * config/picochip/libgccExtras/divmodsi4.asm: Likewise.
10902 * config/picochip/libgccExtras/longjmp.asm: Likewise.
10903 * config/picochip/libgccExtras/lshrsi3.asm: Likewise.
10904 * config/picochip/libgccExtras/lshrsi3.c: Likewise.
10905 * config/picochip/libgccExtras/parityhi2.asm: Likewise.
10906 * config/picochip/libgccExtras/popcounthi2.asm: Likewise.
10907 * config/picochip/libgccExtras/setjmp.asm: Likewise.
10908 * config/picochip/libgccExtras/subdi3.asm: Likewise.
10909 * config/picochip/libgccExtras/ucmpsi2.asm: Likewise.
10910 * config/picochip/libgccExtras/udivmodhi4.asm: Likewise.
10911 * config/picochip/libgccExtras/udivmodsi4.asm: Likewise.
10912 * config/rs6000/750cl.h: Likewise.
10913 * config/rs6000/altivec.h: Likewise.
10914 * config/rs6000/biarch64.h: Likewise.
10915 * config/rs6000/crtresfpr.asm: Likewise.
10916 * config/rs6000/crtresgpr.asm: Likewise.
10917 * config/rs6000/crtresxfpr.asm: Likewise.
10918 * config/rs6000/crtresxgpr.asm: Likewise.
10919 * config/rs6000/crtsavfpr.asm: Likewise.
10920 * config/rs6000/crtsavgpr.asm: Likewise.
10921 * config/rs6000/darwin-asm.h: Likewise.
10922 * config/rs6000/darwin-fallback.c: Likewise.
10923 * config/rs6000/darwin-fpsave.asm: Likewise.
10924 * config/rs6000/darwin-ldouble.c: Likewise.
10925 * config/rs6000/darwin-tramp.asm: Likewise.
10926 * config/rs6000/darwin-unwind.h: Likewise.
10927 * config/rs6000/darwin-vecsave.asm: Likewise.
10928 * config/rs6000/darwin-world.asm: Likewise.
10929 * config/rs6000/e500crtres32gpr.asm: Likewise.
10930 * config/rs6000/e500crtres64gpr.asm: Likewise.
10931 * config/rs6000/e500crtres64gprctr.asm: Likewise.
10932 * config/rs6000/e500crtrest32gpr.asm: Likewise.
10933 * config/rs6000/e500crtrest64gpr.asm: Likewise.
10934 * config/rs6000/e500crtresx32gpr.asm: Likewise.
10935 * config/rs6000/e500crtresx64gpr.asm: Likewise.
10936 * config/rs6000/e500crtsav32gpr.asm: Likewise.
10937 * config/rs6000/e500crtsav64gpr.asm: Likewise.
10938 * config/rs6000/e500crtsav64gprctr.asm: Likewise.
10939 * config/rs6000/e500crtsavg32gpr.asm: Likewise.
10940 * config/rs6000/e500crtsavg64gpr.asm: Likewise.
10941 * config/rs6000/e500crtsavg64gprctr.asm: Likewise.
10942 * config/rs6000/eabi-ci.asm: Likewise.
10943 * config/rs6000/eabi-cn.asm: Likewise.
10944 * config/rs6000/eabi.asm: Likewise.
10945 * config/rs6000/linux-unwind.h: Likewise.
10946 * config/rs6000/linux64.h: Likewise.
10947 * config/rs6000/paired.h: Likewise.
10948 * config/rs6000/paired.md: Likewise.
10949 * config/rs6000/ppc64-fp.c: Likewise.
10950 * config/rs6000/ppu_intrinsics.h: Likewise.
10951 * config/rs6000/rs6000.h: Likewise.
10952 * config/rs6000/si2vmx.h: Likewise.
10953 * config/rs6000/sol-ci.asm: Likewise.
10954 * config/rs6000/sol-cn.asm: Likewise.
10955 * config/rs6000/spe.h: Likewise.
10956 * config/rs6000/spu2vmx.h: Likewise.
10957 * config/rs6000/sysv4.h: Likewise.
10958 * config/rs6000/tramp.asm: Likewise.
10959 * config/rs6000/vec_types.h: Likewise.
10960 * config/s390/linux-unwind.h: Likewise.
10961 * config/s390/tpf-unwind.h: Likewise.
10962 * config/score/crti.asm: Likewise.
10963 * config/score/crtn.asm: Likewise.
10964 * config/sh/crt1.asm: Likewise.
10965 * config/sh/crti.asm: Likewise.
10966 * config/sh/crtn.asm: Likewise.
10967 * config/sh/divtab-sh4-300.c: Likewise.
10968 * config/sh/divtab-sh4.c: Likewise.
10969 * config/sh/divtab.c: Likewise.
10970 * config/sh/lib1funcs-4-300.asm: Likewise.
10971 * config/sh/lib1funcs-Os-4-200.asm: Likewise.
10972 * config/sh/lib1funcs.asm: Likewise.
10973 * config/sh/lib1funcs.h: Likewise.
10974 * config/sh/linux-atomic.asm: Likewise.
10975 * config/sh/linux-unwind.h: Likewise.
10976 * config/sh/shmedia.h: Likewise.
10977 * config/sh/sshmedia.h: Likewise.
10978 * config/sh/ushmedia.h: Likewise.
10979 * config/sparc/crtfastmath.c: Likewise.
10980 * config/sparc/linux-unwind.h: Likewise.
10981 * config/sparc/sol2-c1.asm: Likewise.
10982 * config/sparc/sol2-ci.asm: Likewise.
10983 * config/sparc/sol2-cn.asm: Likewise.
10984 * config/spu/divmodti4.c: Likewise.
10985 * config/spu/divv2df3.c: Likewise.
10986 * config/spu/float_disf.c: Likewise.
10987 * config/spu/float_unsdidf.c: Likewise.
10988 * config/spu/float_unsdisf.c: Likewise.
10989 * config/spu/float_unssidf.c: Likewise.
10990 * config/spu/mfc_multi_tag_release.c: Likewise.
10991 * config/spu/mfc_multi_tag_reserve.c: Likewise.
10992 * config/spu/mfc_tag_release.c: Likewise.
10993 * config/spu/mfc_tag_reserve.c: Likewise.
10994 * config/spu/mfc_tag_table.c: Likewise.
10995 * config/spu/multi3.c: Likewise.
10996 * config/spu/spu_internals.h: Likewise.
10997 * config/spu/spu_intrinsics.h: Likewise.
10998 * config/spu/spu_mfcio.h: Likewise.
10999 * config/spu/vec_types.h: Likewise.
11000 * config/spu/vmx2spu.h: Likewise.
11001 * config/stormy16/stormy16-lib2.c: Likewise.
11002 * config/svr4.h: Likewise.
11003 * config/sync.c: Likewise.
11004 * config/v850/lib1funcs.asm: Likewise.
11005 * config/vxlib-tls.c: Likewise.
11006 * config/vxlib.c: Likewise.
11007 * config/vxworks-dummy.h: Likewise.
11008 * config/xtensa/crti.asm: Likewise.
11009 * config/xtensa/crtn.asm: Likewise.
11010 * config/xtensa/ieee754-df.S: Likewise.
11011 * config/xtensa/ieee754-sf.S: Likewise.
11012 * config/xtensa/lib1funcs.asm: Likewise.
11013 * config/xtensa/lib2funcs.S: Likewise.
11014 * config/xtensa/linux-unwind.h: Likewise.
11015 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
11016 * config/xtensa/unwind-dw2-xtensa.h: Likewise.
11017 * coretypes.h: Likewise.
11018 * crtstuff.c: Likewise.
11019 * defaults.h: Likewise.
11020 * dwarf2.h: Likewise.
11021 * emutls.c: Likewise.
11022 * gbl-ctors.h: Likewise.
11023 * gcov-io.h: Likewise.
11024 * ginclude/float.h: Likewise.
11025 * ginclude/iso646.h: Likewise.
11026 * ginclude/stdarg.h: Likewise.
11027 * ginclude/stdbool.h: Likewise.
11028 * ginclude/stddef.h: Likewise.
11029 * ginclude/stdfix.h: Likewise.
11030 * ginclude/stdint-gcc.h: Likewise.
11031 * ginclude/tgmath.h: Likewise.
11032 * gthr-aix.h: Likewise.
11033 * gthr-dce.h: Likewise.
11034 * gthr-gnat.c: Likewise.
11035 * gthr-gnat.h: Likewise.
11036 * gthr-lynx.h: Likewise.
11037 * gthr-mipssde.h: Likewise.
11038 * gthr-nks.h: Likewise.
11039 * gthr-posix.c: Likewise.
11040 * gthr-posix.h: Likewise.
11041 * gthr-posix95.h: Likewise.
11042 * gthr-rtems.h: Likewise.
11043 * gthr-single.h: Likewise.
11044 * gthr-solaris.h: Likewise.
11045 * gthr-tpf.h: Likewise.
11046 * gthr-vxworks.h: Likewise.
11047 * gthr-win32.h: Likewise.
11048 * gthr.h: Likewise.
11049 * libgcc2.c: Likewise.
11050 * libgcc2.h: Likewise.
11051 * libgcov.c: Likewise.
11052 * tsystem.h: Likewise.
11053 * typeclass.h: Likewise.
11054 * unwind-c.c: Likewise.
11055 * unwind-compat.h: Likewise.
11056 * unwind-dw2-fde-compat.c: Likewise.
11057 * unwind-dw2-fde-darwin.c: Likewise.
11058 * unwind-dw2-fde-glibc.c: Likewise.
11059 * unwind-dw2-fde.c: Likewise.
11060 * unwind-dw2-fde.h: Likewise.
11061 * unwind-dw2.c: Likewise.
11062 * unwind-dw2.h: Likewise.
11063 * unwind-generic.h: Likewise.
11064 * unwind-pe.h: Likewise.
11065 * unwind-sjlj.c: Likewise.
11066 * unwind.inc: Likewise.
11067 * config/arm/neon-gen.ml: Change generated copyright header to
11068 refer to version 3 of the GNU General Public License with
11069 version 3.1 of the GCC Runtime Library Exception and to point
11070 readers at the COPYING3 and COPYING3.RUNTIME files and the
11071 FSF's license web page.
11072 * config/arm/arm_neon.h: Regenerate.
11074 2009-04-09 Jakub Jelinek <jakub@redhat.com>
11076 * config/cris/cris.md: Change copyright header to refer to version
11077 3 of the GNU General Public License.
11078 * doc/install.texi2html: Change copyright header to refer to version
11079 3 of the GNU General Public License and to point readers at the
11080 COPYING3 file and the FSF's license web page.
11081 * config/vax/linux.h: Likewise.
11083 2009-04-09 Paolo Bonzini <bonzini@gnu.org>
11085 * config/i386/i386.md (cmpcc): New.
11086 * config/i386/sync.md (sync_compare_and_swap*): Set FLAGS_REG.
11087 (sync_compare_and_swap_cc*): Delete.
11089 * config/s390/s390.c (s390_compare_emitted): Remove.
11090 (s390_emit_compare): Handle MODE_CC s390_compare_op0 like
11091 s390_compare_emitted used to be handled. Assert that modes match.
11092 (s390_emit_compare_and_swap): Use s390_emit_compare, do not
11093 refer to sync_compare_and_swap_ccsi.
11094 * config/s390/s390.h (s390_compare_emitted): Remove.
11095 * config/s390/s390.md (seq): Look for MODE_CC s390_compare_op0
11096 instead of s390_compare_emitted.
11097 (stack_protect_test, sync_compare_and_swap_cc): Set s390_compare_op0
11098 instead of s390_compare_emitted.
11099 * config/s390/s390.md (cmpcc): New.
11100 (sync_compare_and_swapqi, sync_compare_and_swaphi): Clobber
11101 CC_REGNUM, do not pretend it's set.
11102 (sync_compare_and_swap_cc*): Delete.
11103 * config/s390/predicates.md (cc_reg_operand): New.
11105 * expr.c (sync_compare_and_swap_cc): Delete.
11106 * optabs.h (sync_compare_and_swap_cc): Delete.
11107 * optabs.c (prepare_cmp_insn): Ignore which specific CCmode
11108 is being used with can_compare_p.
11109 (emit_cmp_and_jump_insn_1): Likewise when looking in the optab.
11110 (find_cc_set): New.
11111 (expand_bool_compare_and_swap): Do not use sync_compare_and_swap_cc,
11112 look for a MODE_CC set instead. Use emit_store_flag.
11113 (expand_compare_and_swap_loop): Likewise, with some additional
11114 complication to avoid a force_reg when useless. Use
11115 emit_cmp_and_jump_insns.
11116 * genopinit.c (optabs): Delete sync_compare_and_swap_cc.
11117 * doc/md.texi (sync_compare_and_swap_cc): Merge with
11118 sync_compare_and_swap documentation.
11120 2009-04-09 Jan Hubicka <jh@suse.cz>
11122 * except.c (find_prev_try): Break out from ....
11123 (duplicate_eh_regions): ... here; properly update prev_try pointers
11124 when duplication part of tree.
11125 (dump_eh_tree): Improve dumping.
11126 (verify_eh_region): New.
11127 (verify_eh_tree): Use it.
11129 2009-04-06 Richard Guenther <rguenther@suse.de>
11131 * c-gimplify.c (c_gimplify_expr): Fix the invalid GENERIC
11132 &ARRAY addresses by adjusting their types and prepending
11134 * tree-cfg.c (verify_gimple_assign_single): Verify that
11135 addresses are correct.
11137 2009-04-09 Richard Guenther <rguenther@suse.de>
11139 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Move non-constant
11140 indices into an array reference if possible.
11141 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
11142 Fold POINTER_PLUS_EXPR statements with invariant address.
11144 2009-04-09 Alan Modra <amodra@bigpond.net.au>
11147 * config.gcc (powerpc64-*-linux*): Always build biarch.
11149 2009-04-09 Joseph Myers <joseph@codesourcery.com>
11152 * c-typeck.c (do_case): If case label is not an INTEGER_CST, fold
11153 it and pedwarn if this results in an INTEGER_CST.
11155 2009-04-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11157 * doc/install.texi: Update minimum GMP version. Remove obsolete
11158 text in MPFR section.
11160 2009-04-08 Jakub Jelinek <jakub@redhat.com>
11162 * dwarf2out.c (class_scope_p): New static inline.
11163 (class_or_namespace_scope_p): Use it.
11164 (gen_variable_die): Use DW_TAG_member tag for static data member
11165 declarations instead of DW_TAG_variable.
11167 PR middle-end/39573
11168 * omp-low.c (expand_omp_taskreg): Finalize taskreg static local_decls
11171 2009-04-08 Richard Guenther <rguenther@suse.de>
11173 * tree-ssa-sccvn.c (valueize_refs): Do not continue to
11174 valueize random data.
11176 2009-04-08 David Edelsohn <edelsohn@gnu.org>
11178 * config.gcc (aix tm_file): Add aix-stdint.h.
11179 (aix tm clause use_gcc_stdint): Set to wrap.
11180 * config/rs6000/aix-stdint.h: New file.
11182 2009-04-08 Richard Guenther <rguenther@suse.de>
11184 PR middle-end/36291
11185 * tree-dfa.c (add_referenced_var): Do not recurse into
11186 global initializers.
11187 * tree-ssa-ccp.c (get_symbol_constant_value): Add newly
11189 (fold_const_aggregate_ref): Likewise.
11191 2009-04-08 Paolo Bonzini <bonzini@gnu.org>
11193 * recog.c (ordered_comparison_operator): New.
11194 * gensupport.c (std_preds): Add it.
11195 * doc/md.texi (Machine-Independent Predicates): Document it.
11197 2009-04-08 Jan Hubicka <jh@suse.cz>
11199 * tree-eh.c (cleanup_eh): When not optimizing, do not try EH merging.
11200 * function.h (rtl_eh): Remove exception_handler_label_map.
11201 * except.c (ehl_hash, ehl_eq, add_ehl_entry,
11202 remove_exception_handler_label, for_each_eh_label_1): Remove.
11203 (rtl_remove_unreachable_regions): Remove.
11204 (convert_from_eh_region_ranges): Do not remove unreachable regions.
11205 (find_exception_handler_labels): Don't build the hashtable.
11206 (maybe_remove_eh_handler): Remove.
11207 (for_each_eh_label): Rewrite to walk the tree.
11208 (rest_of_handle_eh): Do not cleanup cfg prior EH construction.
11209 * except.h (maybe_remove_eh_handler): Remove.
11210 * passes.c (init_optimization_passes): Schedule second EH cleanup
11212 * cfgrtl.c (rtl_delete_block, rtl_merge_blocks,
11213 cfg_layout_merge_blocks): Do not call maybe_remove_eh_handler.
11215 2009-04-08 Paolo Bonzini <bonzini@gnu.org>
11217 * genoutput.c (validate_optab_operands): New.
11218 (gen_insn, gen_expand): Call it.
11220 * genflags.c (gen_insn): Detect misused iterators.
11221 (main): Pass line_no to gen_insn, exit with status 1 on error.
11223 * genextract.c (line_no): Make global.
11224 (VEC_safe_set_locstr): Change assertion to error message.
11225 (main): Exit with status 1 on error.
11227 2009-04-08 Joseph Myers <joseph@codesourcery.com>
11231 * c-common.h (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
11232 C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
11233 EXPR_INT_CONST_OPERANDS): Remove duplicate definitions.
11234 * c-convert.c (convert): Do not call fold on results of conversion
11235 functions when the result is a C_MAYBE_CONST_EXPR.
11236 * c-parser.c (c_parser_postfix_expression): Do not fold condition
11237 of __builtin_choose_expr.
11238 * c-typeck.c (remove_c_maybe_const_expr): New.
11239 (build_unary_op, build_conditional_expr, build_compound_expr,
11240 build_binary_op, c_objc_common_truthvalue_conversion): Call
11241 remove_c_maybe_const_expr on any input C_MAYBE_CONST_EXPR with
11244 2009-04-08 Bingfeng Mei <bmei@broadcom.com>
11246 * fold-const.c (const_binop): Combine two VECTOR_CST under operation
11247 CODE to produce a new one. Add a prototype to use fold_convert_const
11249 2009-04-08 Danny Smith <dannysmith@users.sourceforge.net>
11252 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): Don't
11253 mix declarations and code.
11255 2009-04-08 Ben Elliston <bje@au.ibm.com>
11257 * gcc.c: Replace `CC' with `GCC' throughout.
11259 2009-04-07 H.J. Lu <hongjiu.lu@intel.com>
11261 * doc/invoke.texi: Document Atom support.
11263 2009-04-07 Jason Merrill <jason@redhat.com>
11266 * c-common.h, c-common.c: Add flag_pretty_templates.
11267 * c-opts.c (c_common_handle_option): Set it.
11268 * c.opt: Add -fno-pretty-templates.
11269 * doc/invoke.texi (C++ Dialect Options): Likewise.
11271 2009-04-07 Uros Bizjak <ubizjak@gmail.com>
11273 * config/ia64/ia64.c (ia64_builtins): Add IA64_BUILTIN_HUGE_VALQ.
11274 (ia64_init_builtins): Handle IA64_BUILTIN_HUGE_VALQ.
11275 (ia64_expand_builtin): Likewise.
11277 2009-04-07 Martin Jambor <mjambor@suse.cz>
11279 * tree-ssa-alias.c (refs_may_alias_p_1): Check for
11280 is_gimple_min_invariant rather than CONSTANT_CLASS_P so that invariant
11281 ADDR_EXPRS are include too.
11283 2009-04-07 Richard Guenther <rguenther@suse.de>
11285 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Non-aliased
11286 decls are only used if passes as parameters or if they are
11287 local statics and the call is not to a builtin.
11288 (call_may_clobber_ref_p_1): Likewise.
11290 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
11292 * expr.c (do_store_flag): Remove last argument. Simplify code
11293 to avoid duplication of tests already done by can_compare_p.
11294 (expand_expr_real_1): Adjust caller.
11296 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
11298 * optabs.c (can_compare_p): Test the predicate of a
11299 cbranch and cstore pattern.
11301 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
11303 * expr.c (convert_move): Use emit_store_flag instead of
11306 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
11308 * config/i386/i386.c (ix86_compare_emitted): Remove.
11309 (ix86_expand_compare, ix86_expand_branch): Handle MODE_CC
11310 ix86_compare_op0 like ix86_compare_emitted used to be handled.
11311 * config/i386/i386.h (ix86_compare_emitted): Remove.
11312 * config/i386/i386.md (stack_protect_test): Set ix86_compare_op0
11313 instead of ix86_compare_emitted.
11314 * config/i386/sync.md (sync_compare_and_swap_cc): Likewise.
11316 2009-04-07 Andrew Stubbs <ams@codesourcery.com>
11318 * config.gcc (sh-*-*): Add sysroot-suffix.h to tm_file.
11319 Add t-sysroot-suffix to tmake_file.
11320 * config/print-sysroot-suffix.sh: New file.
11321 * config/t-sysroot-suffix: New file.
11323 2009-04-07 Ben Elliston <bje@au.ibm.com>
11325 * libgcc2.c (INFINITY): Use __builtin_huge_val, not __builtin_inf,
11326 as the latter produces a warning when the target does not support
11329 2009-04-07 Ben Elliston <bje@au.ibm.com>
11331 * dfp.c: Replace type punning assignments with memcpy throughout.
11332 * Makefile.in (dfp.o-warn): Remove.
11334 2009-04-07 Alan Modra <amodra@bigpond.net.au>
11337 * config.gcc: Merge powerpc-*-linux* and powerpc64-*-linux*.
11338 Include soft-fp/t-softfp after rs6000/t-linux64.
11340 2009-04-06 Eric Botcazou <ebotcazou@adacore.com>
11342 * stor-layout.c (set_sizetype): Use the full precision of their
11343 machine mode for bitsize types.
11345 2009-04-06 H.J. Lu <hongjiu.lu@intel.com>
11347 * config/i386/i386.md: Revert 2 accidental checkins.
11349 2009-04-06 Joey Ye <joey.ye@intel.com>
11350 Xuepeng Guo <xuepeng.guo@intel.com>
11351 H.J. Lu <hongjiu.lu@intel.com>
11353 Atom pipeline model, tuning and insn selection.
11354 * config.gcc (atom): Add atom config options and target.
11356 * config/i386/atom.md: New.
11358 * config/i386/i386.c (atom_cost): New cost.
11359 (m_ATOM): New macro flag.
11360 (initial_ix86_tune_features): Set m_ATOM.
11361 (x86_accumulate_outgoing_args): Likewise.
11362 (x86_arch_always_fancy_math_387): Likewise.
11363 (processor_target): Add Atom cost.
11364 (cpu_names): Add Atom cpu name.
11365 (override_options): Set Atom ISA.
11366 (ix86_issue_rate): New case PROCESSOR_ATOM.
11367 (ix86_adjust_cost): Likewise.
11369 * config/i386/i386.h (TARGET_ATOM): New target macro.
11370 (ix86_tune_indices): Add X86_TUNE_OPT_AGU.
11371 (TARGET_OPT_AGU): New target option.
11372 (target_cpu_default): Add TARGET_CPU_DEFAULT_atom.
11373 (processor_type): Add PROCESSOR_ATOM.
11375 * config/i386/i386.md (cpu): Add new value "atom".
11376 (use_carry, movu): New attr.
11377 (atom.md): Include atom.md.
11378 (adddi3_carry_rex64): Set attr "use_carry".
11379 (addqi3_carry): Likewise.
11380 (addhi3_carry): Likewise.
11381 (addsi3_carry): Likewise.
11382 (*addsi3_carry_zext): Likewise.
11383 (subdi3_carry_rex64): Likewise.
11384 (subqi3_carry): Likewise.
11385 (subhi3_carry): Likewise.
11386 (subsi3_carry): Likewise.
11387 (x86_movdicc_0_m1_rex64): Likewise.
11388 (*x86_movdicc_0_m1_se): Likewise.
11389 (x86_movsicc_0_m1): Likewise.
11390 (*x86_movsicc_0_m1_se): Likewise.
11391 (*adddi_1_rex64): Emit add insn as much as possible.
11392 (*addsi_1): Likewise.
11393 (return_internal): Set atom_unit.
11394 (return_internal_long): Likewise.
11395 (return_pop_internal): Likewise.
11396 (*rcpsf2_sse): Set atom_sse_attr attr.
11397 (*qrt<mode>2_sse): Likewise.
11398 (*prefetch_sse): Likewise.
11400 * config/i386/i386-c.c (ix86_target_macros_internal): New case
11402 (ix86_target_macros_internal): Likewise.
11404 * config/i386/sse.md (cpu): Set attr "atom_sse_attr".
11405 (*prefetch_sse_rex): Likewise.
11406 (sse_rcpv4sf2): Likewise.
11407 (sse_vmrcpv4sf2): Likewise.
11408 (sse_sqrtv4sf2): Likewise.
11409 (<sse>_vmsqrt<mode>2): Likewise.
11410 (sse_ldmxcsr): Likewise.
11411 (sse_stmxcsr): Likewise.
11412 (*sse_sfence): Likewise.
11413 (sse2_clflush): Likewise.
11414 (*sse2_mfence): Likewise.
11415 (*sse2_lfence): Likewise.
11416 (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Set attr "movu".
11417 (<sse>_movup<ssemodesuffixf2c>): Likewise.
11418 (avx_movdqu<avxmodesuffix>): Likewise.
11419 (avx_lddqu<avxmodesuffix>): Likewise.
11420 (sse2_movntv2di): Change attr "type" to "ssemov".
11421 (sse2_movntsi): Likewise.
11422 (rsqrtv8sf2): Change attr "type" to "sseadd".
11423 (sse3_addsubv2df3): Set attr "atom_unit".
11424 (sse3_h<plusminus_insn>v4sf3): Likewise.
11425 (*sse2_pmaddwd): Likewise.
11426 (*vec_extractv2di_1_rex64): Likewise.
11427 (*vec_extractv2di_1_avx): Likewise.
11428 (sse2_psadbw): Likewise.
11429 (ssse3_phaddwv8hi3): Likewise.
11430 (ssse3_phaddwv4hi3): Likewise.
11431 (ssse3_phadddv4si3): Likewise.
11432 (ssse3_phadddv2si3): Likewise.
11433 (ssse3_phaddswv8hi3): Likewise.
11434 (ssse3_phaddswv4hi3): Likewise.
11435 (ssse3_phsubwv8hi3): Likewise.
11436 (ssse3_phsubwv4hi3): Likewise.
11437 (ssse3_phsubdv4si3): Likewise.
11438 (ssse3_phsubdv2si3): Likewise.
11439 (ssse3_phsubswv8hi3): Likewise.
11440 (ssse3_phsubswv4hi3): Likewise.
11441 (ssse3_pmaddubsw128): Likewise.
11442 (sse3_pmaddubsw: Likewise.
11443 (ssse3_palignrti): Likewise.
11444 (ssse3_palignrdi): Likewise.
11446 2009-04-06 Gerald Pfeifer <gerald@pfeifer.com>
11448 * doc/install.texi (Specific): Fix two cross-references to MinGW.
11450 2009-04-06 Richard Guenther <rguenther@suse.de>
11452 PR tree-optimization/28868
11453 * tree-ssa-pre.c (inserted_phi_names): New bitmap to keep track
11454 of which PHI results we inserted.
11455 (insert_into_preds_of_block): Record inserted PHIs.
11456 (eliminate): Eliminate redundant PHI nodes.
11457 (init_pre): Init inserted_phi_names.
11459 2009-04-06 Richard Guenther <rguenther@suse.de>
11461 PR tree-optimization/39643
11462 * tree-ssa-ccp.c (ccp_fold): Fold REALPART_EXPRs and
11463 IMAGPART_EXPRs of complex constants.
11464 (execute_fold_all_builtins): If we folded a call queue
11465 TODO_update_address_taken.
11467 2009-04-06 Jan Hubicka <jh@suse.cz>
11469 PR middle-end/39659
11470 * except.c (remove_unreachable_regions): Propagate may_contain_throw
11473 2009-04-06 Andrew Stubbs <ams@codesourcery.com>
11475 * config/sh/lib1funcs.asm (ic_invalidate): Move ICBI out of the
11477 (ic_invalidate_array): Likewise.
11479 2009-04-06 Hariharan Sandanagobalane <hariharan@picochip.com>
11481 * calls.c (emit_library_call_value_1): Fix a problem with parameter
11482 alignment for library calls.
11484 2009-04-06 Danny Smith <dannysmith@users.sourceforge.net>
11486 * config.gcc (mingw32 tm_file): Add mingw-stdint.h.
11487 (mingw32 tm clause use_gcc_stdint): Set to wrap.
11488 * config/i386/mingw-stdint.h: New file.
11490 2009-04-05 Richard Guenther <rguenther@suse.de>
11492 PR tree-optimization/39648
11493 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Work around
11494 our &A vs. &A[0] IL deficiencies.
11496 2009-04-04 Jan Hubicka <jh@suse.cz>
11498 * except.c (sjlj_find_directly_reachable_regions): Be ready for
11499 removed toplevel regions.
11500 (sjlj_mark_call_sites): Likewise.
11502 2009-04-04 Dave Korn <dave.korn.cygwin@gmail.com>
11504 * config.gcc (cygwin tm_file): Add cygwin-stdint.h.
11505 (cygwin tm clause use_gcc_stdint): Set to wrap.
11506 * config/i386/cygwin-stdint.h: New file.
11508 2009-04-04 Richard Guenther <rguenther@suse.de>
11510 * Makefile.in (tree-ssa-copy.o): Add $(CFGLOOP_H) dependency.
11511 * tree-ssa-copy.c (init_copy_prop): Do not propagate through
11512 single-argument PHIs if we are in loop-closed SSA form.
11513 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Pass extra guards
11514 for the pre-condition.
11515 (slpeel_tree_peel_loop_to_edge): Likewise.
11516 (vect_build_loop_niters): Take an optional sequence to append stmts.
11517 (vect_generate_tmps_on_preheader): Likewise.
11518 (vect_do_peeling_for_loop_bound): Take extra guards for the
11520 (vect_do_peeling_for_alignment): Adjust. Unconditionally apply
11521 the cost model check.
11522 (vect_loop_versioning): Take stmt and stmt list to put pre-condition
11523 guards if we are going to peel. Do not apply versioning in that case.
11524 * tree-vectorizer.h (vect_loop_versioning): Adjust declaration.
11525 (vect_do_peeling_for_loop_bound): Likewise.
11526 * tree-vect-loop.c (vect_transform_loop): If we are peeling for
11527 loop bound only record extra pre-conditions, do not apply loop
11530 2009-04-04 Richard Guenther <rguenther@suse.de>
11532 * tree-ssa-operands.c (pop_stmt_changes): Remove automatic
11535 2009-04-04 Jan Hubicka <jh@suse.cz>
11537 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
11538 last_basic_block for size of bb->index indexed array.
11539 * bt-load.c (compute_defs_uses_and_gen, compute_kill,
11540 compute_out, link_btr_uses, build_btr_def_use_webs,
11541 build_btr_def_use_webs, migrate_btr_defs): Likewise.
11543 2009-04-04 Jan Hubicka <jh@suse.cz>
11545 * except.c (remove_eh_handler_and_replace): Break out from ...
11546 (remove_eh_handler): ... here.
11547 (bring_to_root): New function.
11548 (remove_unreachable_regions): Collect MUST_NOT_THROW, unify runtime
11549 handled ones, bring others to root of tree.
11551 2009-04-04 Jan Hubicka <jh@suse.cz>
11553 * tree-eh.c (tree_empty_eh_handler_p): Pattern match more curefully.
11554 (all_phis_safe_to_merge): New function.
11555 (update_info): New structure.
11556 (make_eh_edge_and_update_phi, update_eh_edges): New functions.
11557 (cleanup_empty_eh): Update SSA if possible.
11559 2009-04-04 Richard Guenther <rguenther@suse.de>
11561 * tree-ssa.c (verify_ssa): With -O0 we do not need VOPs.
11562 * tree-ssa-operands.c (append_vdef): Do not append VOPs at -O0.
11563 (append_vuse): Likewise.
11565 2009-04-04 Jakub Jelinek <jakub@redhat.com>
11567 * unwind-dw2.h (_Unwind_FrameState): Add REG_UNDEFINED enum value.
11568 * unwind-dw2.c (execute_cfa_program): Set how to REG_UNDEFINED
11569 instead of REG_UNSAVED for DW_CFA_undefined.
11570 (uw_update_context_1): Handle REG_UNDEFINED the same as REG_UNSAVED.
11571 (uw_update_context): If RA column is REG_UNDEFINED, mark it as
11574 2009-04-04 Richard Earnshaw <rearnsha@arm.com>
11577 * arm.md (movsfcc): Disable if not TARGET_HARD_FLOAT.
11578 * testsuite/gcc.c-torture/execute/pr39501.c: New file.
11579 * testsuite/gcc.c-torture/execute/pr39501.x: New file.
11581 2009-04-04 Richard Guenther <rguenther@suse.de>
11583 PR tree-optimization/8781
11584 PR tree-optimization/37892
11585 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Declare.
11586 * tree-ssa-sccvn.c (vn_reference_fold_indirect): New function.
11587 (valueize_refs): Call it for *& valueizations.
11588 (shared_reference_ops_from_ref): Rename to ...
11589 (valueize_shared_reference_ops_from_ref): ... this and valueize.
11590 (shared_reference_ops_from_call): Rename to ...
11591 (valueize_shared_reference_ops_from_call): ... this and valueize.
11592 (vn_reference_lookup): Update.
11593 (visit_reference_op_call): Likewise.
11594 * tree-ssa-pre.c (phi_translate_1): Fold *&.
11595 (eliminate): Value-replace the call address in call statements.
11597 2009-04-04 Richard Guenther <rguenther@suse.de>
11599 PR tree-optimization/39636
11600 * tree-ssa-forwprop.c
11601 (forward_propagate_addr_into_variable_array_index): Check for
11602 GIMPLE_ASSIGN before accessing the rhs code.
11604 2009-04-03 Jason Merrill <jason@redhat.com>
11606 * stor-layout.c (set_sizetype): Set TYPE_CANONICAL.
11608 2009-04-03 Steve Ellcey <sje@cup.hp.com>
11610 * config/ia64/ia64.md (extendsfdf2, extendsfxf2, extenddfxf2,
11611 truncdfsf2, truncxfsf2, truncxfdf2, floatdixf2, fix_truncsfdi2,
11612 fix_truncdfdi2, fix_truncxfdi2, fix_truncxfdi2_alts, floatunsdisf2,
11613 floatunsdidf2, floatunsdixf2, fixuns_truncsfdi2, fixuns_truncdfdi2,
11614 fixuns_truncxfdi2, fixuns_truncxfdi2_alts, divsi3_internal,
11615 smuldi3_highpart, umuldi3_highpart, ctzdi2, *getf_exp_xf,
11616 divdi3_internal_lat, divdi3_internal_thr, mulditi3, *mulditi3_internal,
11617 umulditi3, *umulditi3_internal, addsf3, mulsf3, abssf2, negsf2,
11618 *nabssf2, sminsf3, smaxsf3, *maddsf4, *msubsf4, *nmulsf3, *nmaddsf4,
11619 *nmaddsf4_alts, divsf3, *sqrt_approx, sqrtsf2, sqrtsf2_internal_thr,
11620 adddf3, *adddf3_trunc, muldf3, *muldf3_trunc, absdf2, negdf2, *nabsdf2,
11621 smindf3, smaxdf3, *madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc,
11622 *nmuldf3, *nmuldf3_trunc, *nmadddf4, *nmadddf4_alts, *nmadddf4_truncsf,
11623 *nmadddf4_truncsf_alts, divdf3, sqrtdf2, sqrtdf2_internal_thr, divxf3,
11624 sqrtxf2, sqrtxf2_internal_thr, *recip_approx):
11625 Use fr_reg_or_fp01_operand instead of fr_register_operand
11627 * config/ia64/div.md (extend<mode>rf2, truncrf<mode>2,
11628 recip_approx_rf, divsf3_internal_thr, divsf3_internal_lat,
11629 divdf3_internal_thr, divdf3_internal_lat divxf3_internal): Ditto.
11631 2009-04-03 Vladimir Makarov <vmakarov@redhat.com>
11633 PR rtl-optimization/39607
11634 PR rtl-optimization/39631
11638 2009-03-30 Vladimir Makarov <vmakarov@redhat.com>
11639 * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
11640 instead of DF_LR_OUT.
11641 * ira-lives.c (process_bb_node_lives): Ditto.
11642 * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
11643 instead of DF_LR_{OUT,IN}.
11644 * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
11645 * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
11647 2009-04-03 Steven Bosscher <steven@gcc.gnu.org>
11649 * omp-low.c (pass_expand_omp): Don't claim to provide PROP_gimple_lomp.
11650 (execute_lower_omp): Always run but take the short way out if -fopenmp
11652 (gate_lower_omp): Remove, forcing the pass manager to always run the
11653 pass and always set PROP_gimple_lomp.
11654 (pass_lower_omp): Remove gate function.
11655 * matrix-reorg.c (pass_ipa_matrix_reorg): Don't claim to provide
11656 PROP_trees. Instead, require it.
11657 * ipa-cp.c (pass_ipa_cp): Likewise.
11658 * ipa-inline.c (pass_early_inline): Don't claim to provide PROP_cfg.
11659 (pass_ipa_early_inline, pass_inline_parameters, pass_ipa_inline): Idem.
11660 * tree-profile.c (pass_tree_profile): Don't claim to provide PROP_cfg
11661 and PROP_gimple_leh.
11663 2009-04-03 Richard Guenther <rguenther@suse.de>
11665 PR middle-end/13146
11666 PR tree-optimization/23940
11667 PR tree-optimization/33237
11668 PR middle-end/33974
11669 PR middle-end/34093
11670 PR tree-optimization/36201
11671 PR tree-optimization/36230
11672 PR tree-optimization/38049
11673 PR tree-optimization/38207
11674 PR tree-optimization/38230
11675 PR tree-optimization/38301
11676 PR tree-optimization/38585
11677 PR middle-end/38895
11678 PR tree-optimization/38985
11679 PR tree-optimization/39299
11680 * tree-ssa-structalias.h: Remove.
11681 * tree-ssa-operands.h (NULL_USE_OPERAND_P): Make of type use_operand_p.
11682 (NULL_DEF_OPERAND_P): Make of type def_operand_p.
11683 (struct vuse_element_d): Remove.
11684 (struct vuse_vec_d): Likewise.
11685 (VUSE_VECT_NUM_ELEM, VUSE_VECT_ELEMENT_NC, VUSE_ELEMENT_PTR_NC,
11686 VUSE_ELEMENT_VAR_NC, VUSE_VECT_ELEMENT, VUSE_ELEMENT_PTR,
11687 SET_VUSE_VECT_ELEMENT, SET_VUSE_ELEMENT_VAR, SET_VUSE_ELEMENT_PTR,
11688 VUSE_ELEMENT_VAR): Likewise.
11689 (struct voptype_d): Likewise.
11690 (NUM_VOP_FREE_BUCKETS): Likewise.
11691 (struct ssa_operands): Remove vop_free_buckets and mpt_table fields.
11692 (struct stmt_operands_d): Remove.
11693 (VUSE_OP_PTR, VUSE_OP, SET_VUSE_OP, VUSE_NUM, VUSE_VECT,
11694 VDEF_RESULT_PTR, VDEF_RESULT, VDEF_OP_PTR, VDEF_OP, SET_VDEF_OP,
11695 VDEF_NUM, VDEF_VECT): Likewise.
11696 (copy_virtual_operands): Remove.
11697 (operand_build_cmp): Likewise.
11698 (create_ssa_artificial_load_stmt): Likewise.
11699 (enum ssa_op_iter_type): Remove ssa_op_iter_vdef.
11700 (struct ssa_operand_iterator_d): Remove vuses, vdefs, mayusesm
11701 vuse_index and mayuse_index members. Pack and move done and iter_type
11702 members to the front.
11703 (SSA_OP_VMAYUSE): Remove.
11704 (SSA_OP_VIRTUAL_USES): Adjust.
11705 (FOR_EACH_SSA_VDEF_OPERAND): Remove.
11706 (unlink_stmt_vdef): Declare.
11707 (add_to_addressable_set): Remove.
11708 * tree-vrp.c (stmt_interesting_for_vrp): Adjust.
11709 (vrp_visit_stmt): Likewise.
11710 * doc/tree-ssa.texi (Alias analysis): Update.
11711 * doc/invoke.texi (max-aliased-vops): Remove docs.
11712 (avg-aliased-vops): Likewise.
11713 * tree-into-ssa.c (syms_to_rename): Remove.
11714 (need_to_update_vops_p): Likewise.
11715 (need_to_initialize_update_ssa_p): Rename to ...
11716 (update_ssa_initialized_fn): ... this. Track function we are
11718 (symbol_marked_for_renaming): Simplify.
11719 (add_new_name_mapping): Do not set need_to_update_vops_p.
11720 (dump_currdefs): Use SYMS_TO_RENAME.
11721 (rewrite_update_stmt): Always walk all uses/defs.
11722 (dump_update_ssa): Adjust.
11723 (init_update_ssa): Take function argument. Track what we are
11725 (delete_update_ssa): Reset SYMS_TO_RENAME and update_ssa_initialized_fn.
11726 (create_new_def_for): Initialize for cfun, assert we are initialized
11728 (mark_sym_for_renaming): Simplify.
11729 (mark_set_for_renaming): Do not initialize update-ssa.
11730 (need_ssa_update_p): Simplify. Take function argument.
11731 (name_mappings_registered_p): Assert we ask for the correct function.
11732 (name_registered_for_update_p): Likewise.
11733 (ssa_names_to_replace): Likewise.
11734 (release_ssa_name_after_update_ssa): Likewise.
11735 (update_ssa): Likewise. Use SYMS_TO_RENAME.
11736 (dump_decl_set): Do not print a newline.
11737 (debug_decl_set): Do it here.
11738 (dump_update_ssa): And here.
11739 * tree-ssa-loop-im.c (move_computations): Adjust.
11740 (movement_possibility): Likewise.
11741 (determine_max_movement): Likewise.
11742 (gather_mem_refs_stmt): Likewise.
11743 * tree-dump.c (dequeue_and_dump): Do not handle SYMBOL_MEMORY_TAG
11744 or NAME_MEMORY_TAG.
11745 * tree-complex.c (update_all_vops): Remove.
11746 (expand_complex_move): Adjust.
11747 * tree-ssa-loop-niter.c (chain_of_csts_start): Use NULL_TREE.
11748 Simplify test for memory referencing statement. Exclude
11749 non-invariant ADDR_EXPRs.
11750 * tree-pretty-print.c (dump_generic_node): Do not handle memory tags.
11751 * tree-loop-distribution.c (generate_memset_zero): Adjust.
11752 (rdg_flag_uses): Likewise.
11753 * tree-tailcall.c (suitable_for_tail_opt_p): Remove memory-tag
11755 (tree_optimize_tail_calls_1): Also split the
11756 edge from the entry block if we have degenerate PHI nodes in
11757 the first basic block.
11758 * tree.c (init_ttree): Remove memory-tag related code.
11759 (tree_code_size): Likewise.
11760 (tree_node_structure): Likewise.
11761 (build7_stat): Re-write to be build6_stat.
11762 * tree.h (MTAG_P, TREE_MEMORY_TAG_CHECK, TMR_TAG): Remove.
11763 (SSA_VAR_P): Adjust.
11764 (struct tree_memory_tag): Remove.
11765 (struct tree_memory_partition_tag): Likewise.
11766 (union tree_node): Adjust.
11767 (build7): Re-write to be build6.
11768 * tree-pass.h (pass_reset_cc_flags): Remove.
11769 (TODO_update_address_taken): New flag.
11770 (pass_simple_dse): Remove.
11771 * ipa-cp.c (ipcp_update_callgraph): Update SSA form.
11772 * params.h (MAX_ALIASED_VOPS): Remove.
11773 (AVG_ALIASED_VOPS): Likewise.
11774 * omp-low.c (expand_omp_taskreg): Update SSA form.
11775 * tree-ssa-dse.c (dse_optimize_stmt): Properly query if the rhs
11776 aliases the lhs in a copy stmt.
11777 * tree-ssa-dse.c (struct address_walk_data): Remove.
11778 (memory_ssa_name_same): Likewise.
11779 (memory_address_same): Likewise.
11780 (get_kill_of_stmt_lhs): Likewise.
11781 (dse_possible_dead_store_p): Simplify, use the oracle. Handle
11782 unused stores. Look through PHI nodes into post-dominated regions.
11783 (dse_optimize_stmt): Simplify. Properly remove stores.
11784 (tree_ssa_dse): Compute dominators.
11785 (execute_simple_dse): Remove.
11786 (pass_simple_dse): Likewise.
11787 * ipa-reference.c (scan_stmt_for_static_refs): Open-code
11788 gimple_loaded_syms and gimple_stored_syms computation.
11789 * toplev.c (dump_memory_report): Dump alias and pta stats.
11790 * tree-ssa-sccvn.c (vn_reference_compute_hash): Simplify.
11791 (vn_reference_eq): Likewise.
11792 (vuses_to_vec, copy_vuses_from_stmt, vdefs_to_vec,
11793 copy_vdefs_from_stmt, shared_lookup_vops, shared_vuses_from_stmt,
11794 valueize_vuses): Remove.
11795 (get_def_ref_stmt_vuses): Simplify. Rename to ...
11796 (get_def_ref_stmt_vuse): ... this.
11797 (vn_reference_lookup_2): New function.
11798 (vn_reference_lookup_pieces): Use walk_non_aliased_vuses for
11799 walking equivalent vuses. Simplify.
11800 (vn_reference_lookup): Likewise.
11801 (vn_reference_insert): Likewise.
11802 (vn_reference_insert_pieces): Likewise.
11803 (visit_reference_op_call): Simplify.
11804 (visit_reference_op_load): Likewise.
11805 (visit_reference_op_store): Likewise.
11806 (init_scc_vn): Remove shared_lookup_vuses initialization.
11807 (free_scc_vn): Remove shared_lookup_vuses freeing.
11808 (sort_vuses, sort_vuses_heap): Remove.
11809 (get_ref_from_reference_ops): Export.
11810 * tree-ssa-sccvn.h (struct vn_reference_s): Replace vuses
11811 vector with single vuse pointer.
11812 (vn_reference_lookup_pieces, vn_reference_lookup,
11813 vn_reference_insert, vn_reference_insert_pieces): Adjust prototypes.
11814 (shared_vuses_from_stmt): Remove.
11815 (get_ref_from_reference_ops): Declare.
11816 * tree-ssa-loop-manip.c (slpeel_can_duplicate_loop_p): Adjust.
11817 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
11818 memory-tag related code.
11819 * tree-ssa-ccp.c (get_symbol_constant_value): Remove memory-tag code.
11820 (likely_value): Add comment, skip static-chain of call statements.
11821 (surely_varying_stmt_p): Adjust.
11822 (gimplify_and_update_call_from_tree): Likewise.
11823 (execute_fold_all_builtins): Do not rebuild alias info.
11824 (gimplify_and_update_call_from_tree): Properly update VOPs.
11825 * tree-ssa-loop-ivopts.c (get_ref_tag): Remove.
11826 (copy_ref_info): Remove memory-tag related code.
11827 * tree-call-cdce.c (tree_call_cdce): Rename the VOP.
11828 * ipa-pure-const.c (check_decl): Remove memory-tag related code.
11829 (check_stmt): Open-code gimple_loaded_syms and gimple_stored_syms
11831 * tree-ssa-dom.c (gimple_p): Remove typedef.
11832 (eliminate_redundant_computations): Adjust.
11833 (record_equivalences_from_stmt): Likewise.
11834 (avail_expr_hash): Likewise.
11835 (avail_expr_eq): Likewise.
11836 * tree-ssa-propagate.c (update_call_from_tree): Properly update VOPs.
11837 (stmt_makes_single_load): Likewise.
11838 (stmt_makes_single_store): Likewise.
11839 * tree-ssa-alias.c: Rewrite completely.
11840 (debug_memory_partitions, dump_mem_ref_stats, debug_mem_ref_stats,
11841 debug_mem_sym_stats, dump_mem_sym_stats_for_var,
11842 debug_all_mem_sym_stats, debug_mp_info, update_mem_sym_stats_from_stmt,
11843 delete_mem_ref_stats, create_tag_raw, dump_points_to_info,
11844 dump_may_aliases_for, debug_may_aliases_for, new_type_alias):
11845 Remove public functions.
11846 (pass_reset_cc_flags): Remove.
11847 (pass_build_alias): Move ...
11848 * tree-ssa-structalias.c (pass_build_alias): ... here.
11849 * tree-ssa-alias.c (may_be_aliased): Move ...
11850 * tree-flow-inline.h (may_be_aliased): ... here.
11851 tree-ssa-alias.c (struct count_ptr_d, count_ptr_derefs,
11852 count_uses_and_derefs): Move ...
11853 * gimple.c: ... here.
11854 * gimple.h (count_uses_and_derefs): Declare.
11855 * tree-ssa-alias.c (dump_alias_stats, ptr_deref_may_alias_global_p,
11856 ptr_deref_may_alias_decl_p, ptr_derefs_may_alias_p,
11857 same_type_for_tbaa, nonaliasing_component_refs_p, decl_refs_may_alias_p,
11858 indirect_ref_may_alias_decl_p, indirect_refs_may_alias_p,
11859 ref_maybe_used_by_call_p, ref_maybe_used_by_stmt_p,
11860 call_may_clobber_ref_p, stmt_may_clobber_ref_p, maybe_skip_until,
11861 get_continuation_for_phi, walk_non_aliased_vuses, walk_aliased_vdefs):
11863 * tree-dfa.c (refs_may_alias_p): Move ...
11864 * tree-ssa-alias.c (refs_may_alias_p): ... here. Extend.
11865 * tree-ssa-alias.h: New file.
11866 * tree-ssa-sink.c (is_hidden_global_store): Adjust.
11867 (statement_sink_location): Likewise.
11868 * opts.c (decode_options): Do not adjust max-aliased-vops or
11869 avg-aliased-vops values.
11870 * timevar.def (TV_TREE_MAY_ALIAS): Remove.
11871 (TV_CALL_CLOBBER): Likewise.
11872 (TV_FLOW_SENSITIVE): Likewise.
11873 (TV_FLOW_INSENSITIVE): Likewise.
11874 (TV_MEMORY_PARTITIONING): Likewise.
11875 (TV_ALIAS_STMT_WALK): New timevar.
11876 * tree-ssa-loop-ivcanon.c (empty_loop_p): Adjust.
11877 * tree-ssa-address.c (create_mem_ref_raw): Use build6.
11878 (get_address_description): Remove memory-tag related code.
11879 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Adjust.
11880 * treestruct.def (TS_MEMORY_TAG, TS_MEMORY_PARTITION_TAG): Remove.
11881 * tree-eh.c (cleanup_empty_eh): Do not leave stale SSA_NAMEs
11882 and immediate uses in statements. Document.
11883 * gimple-pretty-print.c (dump_gimple_mem_ops): Adjust.
11884 (dump_symbols): Remove.
11885 (dump_gimple_mem_ops): Do not dump loaded or stored syms.
11886 * alias.c (get_deref_alias_set): New function split out from ...
11887 (get_alias_set): ... here.
11888 * alias.h (get_deref_alias_set): Declare.
11889 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove unused
11890 type parameter. Remove restrict pointer handling. Create a
11891 ref-all pointer in case type-based alias sets do not conflict.
11892 (vect_analyze_data_refs): Remove SMT related code.
11893 * tree-vect-stmts.c (vectorizable_store): Re-instantiate TBAA assert.
11894 (vectorizable_load): Likewise.
11895 * tree-data-ref.h (struct dr_alias): Remove symbol_tag field.
11896 (DR_SYMBOL_TAG, DR_VOPS): Remove.
11897 * tree-data-ref.c (dr_may_alias_p): Use the alias-oracle.
11898 Ignore vops and SMTs.
11899 (dr_analyze_alias): Likewise..
11900 (free_data_ref): Likewise.
11901 (create_data_ref): Likewise.
11902 (analyze_all_data_dependences): Likewise.
11903 (get_references_in_stmt): Adjust.
11904 * tree-flow-inline.h (gimple_aliases_computed_p,
11905 gimple_addressable_vars, gimple_call_clobbered_vars,
11906 gimple_call_used_vars, gimple_global_var, may_aliases, memory_partition,
11907 factoring_name_p, mark_call_clobbered, clear_call_clobbered,
11908 compare_ssa_operands_equal, symbol_mem_tag, set_symbol_mem_tag,
11909 gimple_mem_ref_stats): Remove.
11910 (gimple_vop): New function.
11911 (op_iter_next_use): Remove vuses and mayuses cases.
11912 (op_iter_next_def): Remove vdefs case.
11913 (op_iter_next_tree): Remove vuses, mayuses and vdefs cases.
11914 (clear_and_done_ssa_iter): Do not set removed fields.
11915 (op_iter_init): Likewise. Skip vuse and/or vdef if requested.
11916 Assert we are not iterating over vuses or vdefs if not also
11917 iterating over uses or defs.
11918 (op_iter_init_use): Likewise.
11919 (op_iter_init_def): Likewise.
11920 (op_iter_next_vdef): Remove.
11921 (op_iter_next_mustdef): Likewise.
11922 (op_iter_init_vdef): Likewise.
11923 (compare_ssa_operands_equal): Likewise.
11924 (link_use_stmts_after): Handle vuse operand.
11925 (is_call_used): Use is_call_clobbered.
11926 (is_call_clobbered): Global variables are always call clobbered,
11927 query the call-clobbers bitmap.
11928 (mark_call_clobbered): Ignore global variables.
11929 (clear_call_clobbered): Likewise.
11930 * tree-ssa-coalesce.c (create_outofssa_var_map): Adjust
11931 virtual operands sanity check.
11932 * tree.def (NAME_MEMORY_TAG, SYMBOL_MEMORY_TAG, MEMORY_PARTITION_TAG):
11934 (TARGET_MEM_REF): Remove TMR_TAG operand.
11935 * tree-dfa.c (add_referenced_var): Initialize call-clobber state.
11936 Remove call-clobber related code.
11937 (remove_referenced_var): Likewise. Do not clear mpt or symbol_mem_tag.
11938 (dump_variable): Do not dump SMTs, memory stats, may-aliases or
11939 partitions or escape reason.
11940 (get_single_def_stmt, get_single_def_stmt_from_phi,
11941 get_single_def_stmt_with_phi): Remove.
11942 (dump_referenced_vars): Tidy.
11943 (get_ref_base_and_extent): Allow bare decls.
11944 (collect_dfa_stats): Adjust.
11945 * graphite.c (rename_variables_in_stmt): Adjust.
11946 (graphite_copy_stmts_from_block): Likewise.
11947 (translate_clast): Likewise.
11948 * tree-ssa-pre.c (struct bb_bitmap_sets): Add expr_dies bitmap.
11950 (translate_vuse_through_block): Use the oracle.
11951 (phi_translate_1): Adjust.
11952 (value_dies_in_block_x): Use the oracle. Cache the outcome
11954 (valid_in_sets): Check if the VUSE for
11955 a REFERENCE is available.
11956 (eliminate): Do not remove stmts during elimination,
11957 instead queue and remove them afterwards.
11958 (do_pre): Do not rebuild alias info.
11959 (pass_pre): Run TODO_rebuild_alias before PRE.
11960 * tree-ssa-live.c (remove_unused_locals): Remove memory-tag code.
11961 * tree-sra.c (sra_walk_function): Use gimple_references_memory_p.
11962 (mark_all_v_defs_stmt): Remove.
11963 (mark_all_v_defs_seq): Adjust.
11964 (sra_replace): Likewise.
11965 (scalarize_use): Likewise.
11966 (scalarize_copy): Likewise.
11967 (scalarize_init): Likewise.
11968 (scalarize_ldst): Likewise.
11969 (todoflags): Remove.
11970 (tree_sra): Do not rebuild alias info.
11971 (tree_sra_early): Adjust.
11972 (pass_sra): Run TODO_update_address_taken before SRA.
11973 * tree-predcom.c (set_alias_info): Remove.
11974 (prepare_initializers_chain): Do not call it.
11975 (mark_virtual_ops_for_renaming): Adjust.
11976 (mark_virtual_ops_for_renaming_list): Remove.
11977 (initialize_root_vars): Adjust.
11978 (initialize_root_vars_lm): Likewise.
11979 (prepare_initializers_chain): Likewise.
11980 * tree-ssa-copy.c (may_propagate_copy): Remove memory-tag related code.
11981 (may_propagate_copy_into_stmt): Likewise.
11982 (merge_alias_info): Do nothing for now.
11983 (propagate_tree_value_into_stmt): Adjust.
11984 (stmt_may_generate_copy): Likewise.
11985 * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr): Do
11986 not mark symbols for renaming.
11987 (forward_propagate_addr_expr): Match up push/pop_stmt_changes
11988 with the same statement, make sure to update the new pointed-to one.
11989 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not copy
11990 call statements, do not mark symbols for renaming.
11991 (mark_operand_necessary): Dump something.
11992 (ref_may_be_aliased): New function.
11993 (mark_aliased_reaching_defs_necessary_1): New helper function.
11994 (mark_aliased_reaching_defs_necessary): Likewise.
11995 (mark_all_reaching_defs_necessary_1): Likewise.
11996 (mark_all_reaching_defs_necessary): Likewise.
11997 (propagate_necessity): Do not process virtual PHIs. For
11998 non-aliased loads mark all reaching definitions as necessary.
11999 For aliased loads and stores mark the immediate dominating
12000 aliased clobbers as necessary.
12001 (visited): New global static.
12002 (perform_tree_ssa_dce): Free visited bitmap after propagating
12004 (remove_dead_phis): Perform simple dead virtual PHI removal.
12005 (remove_dead_stmt): Properly unlink virtual operands when
12007 (eliminate_unnecessary_stmts): Schedule PHI removal after
12009 * tree-ssa-ter.c (is_replaceable_p): Adjust.
12010 (process_replaceable): Likewise.
12011 (find_replaceable_in_bb): Likewise.
12012 * tree-ssa.c (verify_ssa_name): Verify all VOPs are
12013 based on the single gimple vop.
12014 (verify_flow_insensitive_alias_info): Remove.
12015 (verify_flow_sensitive_alias_info): Likewise.
12016 (verify_call_clobbering): Likewise.
12017 (verify_memory_partitions): Likewise.
12018 (verify_alias_info): Likewise.
12019 (verify_ssa): Adjust..
12020 (execute_update_addresses_taken): Export. Update SSA
12021 manually. Optimize only when optimizing. Use a local bitmap.
12022 (pass_update_address_taken): Remove TODO_update_ssa, add
12024 (pass_update_address_taken): Just use TODO_update_address_taken.
12025 (init_tree_ssa): Do not initialize addressable_vars.
12026 (verify_ssa): Verify new VUSE / VDEF properties.
12027 Verify that all stmts definitions have the stmt as SSA_NAME_DEF_STMT.
12028 Do not call verify_alias_info.
12029 (delete_tree_ssa): Clear the VUSE, VDEF operands.
12030 Do not free the loaded and stored syms bitmaps. Reset the escaped
12031 and callused solutions. Do not free addressable_vars.
12032 Remove memory-tag related code.
12033 (warn_uninitialized_var): Aliases are always available.
12034 * tree-ssa-loop-prefetch.c (gather_memory_references): Adjust.
12035 * lambda-code.c (can_put_in_inner_loop): Adjust.
12036 (can_put_after_inner_loop): Likewise.
12037 (perfect_nestify): Likewise.
12038 * tree-vect-stmts.c (vect_stmt_relevant_p): Adjust.
12039 (vect_gen_widened_results_half): Remove CALL_EXPR handling.
12040 (vectorizable_conversion): Do not mark symbols for renaming.
12041 * tree-inline.c (remap_gimple_stmt): Clear VUSE/VDEF.
12042 (expand_call_inline): Unlink the calls virtual operands before
12044 (tree_function_versioning): Do not call update_ssa if we are not
12045 updating clones. Simplify.
12046 * tree-ssa-phiprop.c (phivn_valid_p): Adjust.
12047 (propagate_with_phi): Likewise..
12048 * tree-outof-ssa.c (create_temp): Remove memory tag and call
12049 clobber code. Assert we are not aliased or global.
12050 * tree-flow.h: Include tree-ssa-alias.h
12051 (enum escape_type): Remove.
12052 (struct mem_sym_stats_d): Likewise.
12053 (struct mem_ref_stats_d): Likewise.
12054 (struct gimple_df): Add vop member. Remove global_var,
12055 call_clobbered_vars, call_used_vars, addressable_vars,
12056 aliases_compted_p and mem_ref_stats members. Add syms_to_rename,
12057 escaped and callused members.
12058 (struct ptr_info_def): Remove all members, add points-to solution
12060 (struct var_ann_d): Remove in_vuse_list, in_vdef_list,
12061 call_clobbered, escape_mask, mpt and symbol_mem_tag members.
12062 * Makefile.in (TREE_FLOW_H): Add tree-ssa-alias.h.
12063 (tree-ssa-structalias.o): Remove tree-ssa-structalias.h.
12064 (tree-ssa-alias.o): Likewise.
12065 (toplev.o): Add tree-ssa-alias.h
12066 (GTFILES): Remove tree-ssa-structalias.h, add tree-ssa-alias.h.
12067 * gimple.c (gimple_set_bb): Fix off-by-one error.
12068 (is_gimple_reg): Do not handle memory tags.
12069 (gimple_copy): Also copy virtual operands.
12070 Delay updating the statement. Do not reset loaded and stored syms.
12071 (gimple_set_stored_syms): Remove.
12072 (gimple_set_loaded_syms): Likewise.
12073 (gimple_call_copy_skip_args): Copy the virtual operands
12074 and mark the new statement modified.
12075 * tree-ssa-structalias.c (may_alias_p): Remove.
12076 (set_uids_in_ptset): Take the alias set to prune with as
12077 parameter. Fold in the alias test of may_alias_p.
12078 (compute_points_to_sets): Compute whether a ptr is dereferenced
12079 in a local sbitmap.
12080 (process_constraint): Deal with &ANYTHING on the lhs, reject all
12081 other ADDRESSOF constraints on the lhs.
12082 (get_constraint_for_component_ref): Assert that we don't get
12083 ADDRESSOF constraints from the base of the reference.
12084 Properly generate UNKNOWN_OFFSET for DEREF if needed.
12085 (struct variable_info): Remove collapsed_to member.
12086 (get_varinfo_fc): Remove.
12087 (new_var_info): Do not set collapsed_to.
12088 (dump_constraint): Do not follow cycles.
12089 (dump_constraint_graph): Likewise.
12090 (build_pred_graph): Likewise.
12091 (build_succ_graph): Likewise.
12092 (rewrite_constraints): Likewise.
12093 (do_simple_structure_copy): Remove.
12094 (do_rhs_deref_structure_copy): Remove.
12095 (do_lhs_deref_structure_copy): Remove.
12096 (collapse_rest_of_var): Remove.
12097 (do_structure_copy): Re-implement.
12098 (pta_stats): New global variable.
12099 (dump_pta_stats): New function.
12100 (struct constraint_expr): Make offset signed.
12101 (UNKNOWN_OFFSET): Define special value.
12102 (dump_constraint): Dump UNKNOWN_OFFSET as UNKNOWN.
12103 (solution_set_expand): New helper function split out from ...
12104 (do_sd_constraint): ... here.
12105 (solution_set_add): Handle UNKNOWN_OFFSET. Handle negative offsets.
12106 (do_ds_constraint): Likewise.
12107 (do_sd_constraint): Likewise. Do not special-case ESCAPED = *ESCAPED
12108 and CALLUSED = *CALLUSED.
12109 (set_union_with_increment): Make inc argument signed.
12110 (type_safe): Remove.
12111 (get_constraint_for_ptr_offset): Handle unknown and negative
12113 (first_vi_for_offset): Handle offsets before start. Bail
12114 out early for offsets beyond the variable extent.
12115 (first_or_preceding_vi_for_offset): New function.
12116 (init_base_vars): Add ESCAPED = ESCAPED + UNKNOWN_OFFSET constraint.
12117 Together with ESCAPED = *ESCAPED this properly computes reachability.
12118 (find_what_var_points_to): New function.
12119 (find_what_p_points_to): Implement in terms of find_what_var_points_to.
12120 (pt_solution_reset, pt_solution_empty_p, pt_solution_includes_global,
12121 pt_solution_includes_1, pt_solution_includes, pt_solutions_intersect_1,
12122 pt_solutions_intersect): New functions.
12123 (compute_call_used_vars): Remove.
12124 (compute_may_aliases): New main entry into PTA computation.
12125 * gimple.h (gimple_p): New typedef.
12126 (struct gimple_statement_base): Remove references_memory_p.
12127 (struct gimple_statement_with_memory_ops_base): Remove
12128 vdef_ops, vuse_ops, stores and loads members. Add vdef and vuse
12130 (gimple_vuse_ops, gimple_set_vuse_ops, gimple_vdef_ops,
12131 gimple_set_vdef_ops, gimple_loaded_syms, gimple_stored_syms,
12132 gimple_set_references_memory): Remove.
12133 (gimple_vuse_op, gimple_vdef_op, gimple_vuse, gimple_vdef,
12134 gimple_vuse_ptr, gimple_vdef_ptri, gimple_set_vuse, gimple_set_vdef):
12136 * tree-cfg.c (move_block_to_fn): Fix off-by-one error.
12137 (verify_expr): Allow RESULT_DECL.
12138 (gimple_duplicate_bb): Do not copy virtual operands.
12139 (gimple_duplicate_sese_region): Adjust.
12140 (gimple_duplicate_sese_tail): Likewise.
12141 (mark_virtual_ops_in_region): Remove.
12142 (move_sese_region_to_fn): Do not call it.
12143 * passes.c (init_optimization_passes): Remove pass_reset_cc_flags
12144 and pass_simple_dse.
12145 (execute_function_todo): Handle TODO_update_address_taken,
12146 call execute_update_addresses_taken for TODO_rebuild_alias.
12147 (execute_todo): Adjust.
12148 (execute_one_pass): Init dump files early.
12149 * ipa-struct-reorg.c (finalize_var_creation): Do not mark vars
12151 (create_general_new_stmt): Clear vops.
12152 * tree-ssa-reassoc.c (get_rank): Adjust.
12153 * tree-vect-slp.c (vect_create_mask_and_perm): Do not mark
12154 symbols for renaming.
12155 * params.def (PARAM_MAX_ALIASED_VOPS): Remove.
12156 (PARAM_AVG_ALIASED_VOPS): Likewise.
12157 * tree-ssanames.c (init_ssanames): Allocate SYMS_TO_RENAME.
12158 (duplicate_ssa_name_ptr_info): No need to copy the shared bitmaps.
12159 * tree-ssa-operands.c: Simplify for new virtual operand representation.
12160 (operand_build_cmp, copy_virtual_operands,
12161 create_ssa_artificial_load_stmt, add_to_addressable_set,
12162 gimple_add_to_addresses_taken): Remove public functions.
12163 (unlink_stmt_vdef): New function.
12165 2009-04-03 Alan Modra <amodra@bigpond.net.au>
12167 * config.gcc (powerpc-*-linux*): Merge variants.
12169 2009-04-02 Chao-ying Fu <fu@mips.com>
12170 James Grosbach <james.grosbach@microchip.com>
12172 * config/mips/mips.c (mips_frame_info): Add acc_mask, num_acc,
12173 num_cop0_regs, acc_save_offset, cop0_save_offset, acc_sp_offset,
12175 (machine_function): Add interrupt_handler_p, use_shadow_register_set_p,
12176 keep_interrupts_masked_p, use_debug_exception_return_p.
12177 (mips_attribute_table): Add interrupt, use_shadow_register_set,
12178 keep_interrupts_masked, use_debug_exception_return.
12179 (mips_interrupt_type_p, mips_use_shadow_register_set_p,
12180 mips_keep_interrupts_masked_p, mips_use_debug_exception_return_p):
12182 (mips_function_ok_for_sibcall): Return false for interrupt handlers.
12183 (mips_print_operand): Process COP0 registers to print $0 .. $31
12184 correctly for GAS to process.
12185 (mips_interrupt_extra_call_saved_reg_p): New function.
12186 (mips_cfun_call_saved_reg_p): For interrupt handlers, we need to check
12188 (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
12189 (mips_compute_frame_info): Add supports for interrupt context that
12190 includes doubleword accumulators and COP0 registers.
12191 (mips_for_each_saved_acc): New function.
12192 (mips_for_each_saved_gpr_and_fpr): Change the function name from
12193 mips_for_each_saved_reg.
12194 (mips_save_reg): Save accumulators.
12195 (mips_kernel_reg_p): A new for_each_rtx callback.
12196 (mips_expand_prologue): Support interrupt handlers.
12197 (mips_restore_reg): Restore accumulators.
12198 (mips_expand_epilogue): Support interrupt handlers.
12199 (mips_can_use_return_insn): Return false for interrupt handlers.
12200 (mips_epilogue_uses): New function.
12201 * config/mips/mips.md (UNSPEC_ERET, UNSPEC_DERET, UNSPEC_DI,
12202 UNSPEC_EHB, UNSPEC_RDPGPR, UNSPEC_COP0): New UNSPEC.
12203 (mips_eret, mips_deret, mips_di, mips_ehb, mips_rdpgpr,
12204 cop0_move): New instructions.
12205 * config/mips/mips-protos.h (mips_epilogue_uses): Declare.
12206 * config/mips/mips.h (K0_REG_NUM, K1_REG_NUM, KERNEL_REG_P): New
12208 (COP0_STATUS_REG_NUM, COP0_CAUSE_REG_NUM, COP0_EPC_REG_NUM):
12210 (CAUSE_IPL, SR_IPL, SR_EXL, SR_IE): New defines.
12211 (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): For
12212 interrupt handlers, we use K0 as the temporary register.
12213 (EPILOGUE_USES): Change to a function call.
12214 * config/mips/sde.h (MIPS_EPILOGUE_TEMP_REGNUM): For interrupt
12215 handlers, we use K0 as the temporary register.
12217 * doc/extend.texi (Function Attributes): Document interrupt,
12218 use_shadow_register_set, keep_interrupts_masked,
12219 use_debug_exception_return for MIPS attributes.
12221 2009-04-03 Alan Modra <amodra@bigpond.net.au>
12223 * config.gcc (powerpc64-*-gnu*): Add rs6000/default64.h to tm_file.
12224 Remove a number of t-files from tmake_file.
12225 * config/rs6000/sysv4.opt (mprototype): Name variable target_prototype.
12226 * config/rs6000/sysv4.h (TARGET_PROTOTYPE): Define.
12227 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
12228 target_prototype, not TARGET_PROTOTYPE.
12229 (LINK_OS_GNU_SPEC): Define.
12230 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Delete tramp.S
12231 and darwin-ldoubdle.c.
12233 2009-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
12236 * gcc.c (save_temps_flag): Add support for -save-temps=obj.
12237 (cpp_options): Ditto.
12238 (default_compilers): Ditto.
12239 (display_help): Ditto.
12240 (process_command): Ditto.
12241 (do_spec_1): Ditto.
12242 (set_input): Use lbasename instead of duplicate code.
12243 (save_temps_prefix): New static for -save-temps=obj.
12244 (save_temps_length): Ditto.
12246 * doc/invoke.texi (-save-temps=obj): Document new variant to
12247 -save-temps switch.
12249 2009-04-02 Jeff Law <law@redhat.com>
12251 * reload1.c (fixup_eh_region_notes): Remove write-only "trap_count"
12254 2009-04-02 H.J. Lu <hongjiu.lu@intel.com>
12256 * configure.ac: Support -Bstatic/-Bdynamic for linker version > 2.
12257 * configure: Regenerated.
12259 2009-04-02 Rafael Avila de Espindola <espindola@google.com>
12261 * c-decl.c (merge_decls): Make sure newdecl and olddecl don't
12262 share the argument list.
12264 2009-04-02 Rafael Avila de Espindola <espindola@google.com>
12268 2009-02-12 Diego Novillo <dnovillo@google.com>
12270 * varpool.c (debug_varpool): New.
12271 * cgraph.h (debug_varpool): Declare.
12273 2009-04-02 Jan Hubicka <jh@suse.cz>
12275 * passes.c (init_optimization_passes): Remove two copies of ehcleanup
12278 2009-04-02 H.J. Lu <hongjiu.lu@intel.com>
12280 * config/i386/i386.c (ix86_abi): Move initialization to ...
12281 (override_options): Here.
12283 2009-04-02 Christian Bruel <christian.bruel@st.com>
12285 * config/sh/sh.c (sh_dwarf_register_span): New function.
12286 (TARGET_DWARF_REGISTER_SPAN): Define.
12287 * config/sh/sh-protos.h (sh_dwarf_register_span): Declare.
12289 2009-04-02 Ira Rosen <irar@il.ibm.com>
12291 PR tree-optimization/39595
12292 * tree-vect-slp.c (vect_build_slp_tree): Check that the size of
12293 interleaved loads group is not greater than the SLP group size.
12295 2009-04-02 Rafael Avila de Espindola <espindola@google.com>
12297 * builtins.c (is_builtin_name): New.
12298 (called_as_built_in): Use is_builtin_name.
12299 * tree.h (is_builtin_name): New.
12300 * varasm.c (incorporeal_function_p): Use is_builtin_name
12302 2009-04-02 Andrew Stubbs <ams@codesourcery.com>
12304 * config/sh/linux-unwind.h: Disable when inhibit_libc is defined.
12306 2009-04-02 Dodji Seketeli <dodji@redhat.com>
12309 * c-decl.c (clone_underlying_type): Move this ...
12310 * c-common.c (set_underlying_type): ... here.
12311 Also, make sure the function properly sets TYPE_STUB_DECL() on
12312 the newly created typedef variant type.
12313 * c-common.h (is_typedef_decl, set_underlying_type): Declare ...
12314 * c-common.c (is_typedef_decl, set_underlying_type): ... new entry
12317 2009-04-02 Richard Guenther <rguenther@suse.de>
12319 PR tree-optimization/37221
12320 * tree-flow.h (degenerate_phi_result): Declare.
12321 * tree-ssa-dom.c (degenerate_phi_result): Export.
12322 * tree-scalar-evolution.c (analyze_initial_condition): If
12323 the initial condition is defined by a degenerate PHI node
12324 use the degenerate value.
12326 2009-04-01 Eric Botcazou <ebotcazou@adacore.com>
12328 PR rtl-optimization/39588
12329 * combine.c (merge_outer_ops): Do not set the constant when this
12331 (simplify_shift_const_1): Do not modify it either in this case.
12333 2009-04-01 Steven Bosscher <steven@gcc.gnu.org>
12335 * config/ia64/ia64.c (ia64_handle_option): Inform user that Itanium1
12336 tuning is deprecated if -mtune value is set to an Itanium1 variant.
12338 2009-04-01 Janis Johnson <janis187@us.ibm.com>
12341 * c-lex.c (interpret_float): Default (no suffix) is double.
12343 2009-04-1 Xinliang David Li <davidxl@google.com>
12345 * config/i386/i386.c (legitimate_constant_p): Recognize
12346 all one vector constant.
12348 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
12350 * config/vax/vax.c: Add #includes to silence warnings.
12351 Change #include order to silence two warnings.
12353 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
12355 * config/vax/linux.h (TARGET_DEFAULT): Add the MASK_QMATH flag bit.
12356 (ASM_SPEC): Pass -k to the assembler for PIC code.
12358 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
12360 * config.gcc: Add vax-*-linux* to the switch.
12361 * config/vax/linux.h: New file. (TARGET_VERSION,
12362 TARGET_OS_CPP_BUILTINS, TARGET_DEFAULT, CPP_SPEC, LINK_SPEC): Define.
12364 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
12366 * config/vax/vax.c (vax_output_int_move, adjacent_operands_p):
12367 Use predicate macros instead of GET_CODE() == foo.
12368 * config/vax/vax.md (movsi_2, movstrictqi, and<mode>3, ashrsi3,
12369 ashlsi3, rotrsi3, <unnamed>): Likewise.
12371 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
12373 * config/vax/builtins.md (jbbssiqi, jbbssihi, jbbssisi, jbbcciqi,
12374 jbbccihi, jbbccisi): Remova trailing whitespace.
12375 * config/vax/constraints.md: Likewise.
12376 * config/vax/elf.h: (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
12377 * config/vax/openbsd1.h (OBSD_OLD_GAS): Likewise.
12378 * config/vax/predicates.md: Likewise.
12379 * config/vax/vax.c (print_operand_address, vax_output_int_move,
12380 vax_expand_addsub_di_operands, adjacent_operands_p): Likewise.
12381 * config/vax/vax.h: Likewise.
12382 * config/vax/vax.md (nonlocal_goto): Likewise.
12384 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
12386 * config/vax/vax.c (vax_float_literal, vax_output_int_move)
12387 (indirectable_address_p, adjacent_operands_p): Add spaces around
12389 * config/vax/vax-protos.h (adjacent_operands_p): Likewise.
12391 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
12393 * config/vax/vax.c (legitimate_constant_address_p,
12394 legitimate_constant_p, indirectable_address_p, nonindexed_address_p,
12395 index_term_p, reg_plus_index_p, legitimate_address_p,
12396 vax_mode_dependent_address_p): Update comments to match functions
12397 modified by the recent int->bool conversion.
12399 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
12401 * config/vax/builtins.md: Update copyright message.
12402 * config/vax/constraints.md: Likewise.
12403 * config/vax/netbsd-elf.h: Likewise.
12404 * config/vax/predicates.md: Likewise.
12405 * config/vax/vax-protos.h: Likewise.
12406 * config/vax/vax.c: Likewise.
12407 * config/vax/vax.h: Likewise.
12408 * config/vax/vax.md: Likewise.
12409 * config/vax/vax.opt: Likewise.
12411 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
12413 * config/vax/builtins.md (ffssi2, ffssi2_internal,
12414 sync_lock_test_and_set<mode>, sync_lock_release<mode>): Fix indention.
12415 * config/vax/constraints.md (B, R): Likewise.
12416 * config/vax/predicates.md (external_memory_operand,
12417 nonimmediate_addsub_di_operand): Likewise.
12418 * config/vax/vax.c (vax_output_int_add): Likewise.
12419 * config/vax/vax.md (movsi, movsi_2, mov<mode>, call_value,
12420 untyped_call): Likewise.
12422 2009-04-01 Matt Thomas <matt@3am-software.com>
12424 * config/vax/predicates.md: New file.
12425 (symbolic_operand, local_symbolic_operand, external_symbolic_operand,
12426 external_const_operand, nonsymbolic_operand, external_memory_operand,
12427 indirect_memory_operand, indexed_memory_operand,
12428 illegal_blk_memory_operand, illegal_addsub_di_memory_operand,
12429 nonimmediate_addsub_di_operand, general_addsub_di_operand): New
12431 * config/vax/constraints.md: New file.
12432 (Z0, U06, U08, U16, CN6, S08, S16, I, J, K, L, M, N, O, G, Q, B, R, T):
12434 * config/vax/builtins.md: New file.
12435 (ffssi2, ffssi2_internal, sync_lock_test_and_set<mode>, jbbssiqi,
12436 jbbssihi, jbbssisi, sync_lock_release<mode>, jbbcciqi, jbbccihi,
12438 * config/vax/vax.opt (mqmath): Add option.
12439 * config/vax/vax.md (isfx): Extend with DI.
12440 (VAXintQH, VAXintQHSD): Define.
12441 (tst<mode>, cmp<mode>, *bit<mode>, movmemhi1, truncsiqi2, truncsihi2,
12442 mulsidi3, add<mode>3, sub<mode>, mul<mode>3, div<mode>3, and<mode>,
12443 and<mode>_const_int, ior<mode>3, xor<mode>3, neg<mode>2,
12444 one_cmpl<mode>2, ashlsi3, lshrsi3, rotlsi3): Update constraints.
12445 (movdi): Update constraints and use vax_output_int_move().
12446 (movsi, movsi_2, pushlclsymreg, pushextsymreg, movlclsymreg,
12447 movextsymreg, adddi3, adcdi3, subdi3, sbcdi3, pushextsym, movextsym,
12448 pushlclsym, movlclsym, movaddr<mode>, pushaddr<mode>,
12449 nonlocal_goto): New.
12450 (mov<mode>): Extend accepted operand types.
12451 (subdi3_old): Rename from subdi3, change update constraints and use
12452 a new implementation.
12453 * config/vax/vax.h (PCC_BITFIELD_TYPE_MATTERS): Add space.
12454 (FRAME_POINTER_CFA_OFFSET, IRA_COVER_CLASSES, CLASS_MAX_NREGS,
12455 MOVE_RATIO, CLEAR_RATIO): Define.
12456 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P,
12457 CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
12458 (PRINT_OPERAND): Redefine using a function instead of inlined code.
12459 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
12460 (split_quadword_operands): Make static and really allow variable
12462 (print_operand_address): Update for PIC generation.
12463 (print_operand, vax_builtin_setjmp_frame_value, vax_output_int_subtract,
12464 indexable_address_p, fixup_mathdi_operand,
12465 vax_expand_addsub_di_operands, adjacent_operands_p): New.
12466 (vax_float_literal, legitimate_constant_p,
12467 indirectable_constant_address_p, index_term_p,
12468 reg_plus_index_p): Return bool instead of int.
12469 (vax_rtx_costs): Fix cost for CONST_INT, indent and use HOST_WIDE_INT
12471 (vax_output_int_move, vax_output_int_add): Extend to allow PIC
12473 (vax_output_conditional_branch): Indent.
12474 (legitimate_constant_address_p, indirectable_constant_address_p,
12475 indirectable_address_p, nonindexed_address_p, legitimate_address_p,
12476 vax_mode_dependent_address_p): Return bool instead of int, update for
12478 * config/vax/vax-protos.h (legitimate_constant_address_p,
12479 legitimate_constant_p, legitimate_address_p,
12480 vax_mode_dependent_address_p): Change declaration to bool.
12481 (legitimate_pic_operand_p, adjacent_operands_p, print_operand,
12482 vax_expand_addsub_di_operands, vax_output_int_subtract,
12483 vax_output_movmemsi): Declare.
12484 (split_quadword_operands, vax_float_literal): Delete declaration.
12485 * config/vax/netbsd-elf.h (CC1_SPEC, CC1PLUS_SPEC) Define.
12486 * config/vax/elf.h (NO_EXTERNAL_INDIRECT_ADDRESS,
12487 VAX_CC1_AND_CC1PLUS_SPEC, ASM_PREFERRED_EH_DATA_FORMAT,
12488 ASM_OUTPUT_DWARF_PCREL): Define.
12489 (ASM_SPEC): Change definition to allow PIC generation.
12491 2009-04-01 Steve Ellcey <sje@cup.hp.com>
12493 * doc/sourcebuild.texi: Update front-end requirements.
12495 2009-04-01 Jakub Jelinek <jakub@redhat.com>
12498 * config/rs6000/rs6000.md (andsi3_internal5_nomc,
12499 anddi3_internal2_nomc, anddi3_internal3_nomc): Removed.
12500 (booldi3_internal3): Use boolean_or_operator instead of
12503 2009-04-01 Joseph Myers <joseph@codesourcery.com>
12506 * c-decl.c (grokdeclarator): Pedwarn for file-scope array
12507 declarator whose size is not an integer constant expression but
12508 folds to an integer constant, then treat it as a constant
12511 2009-04-01 Richard Guenther <rguenther@suse.de>
12513 * fold-const.c (fold_plusminus_mult_expr): Do not fold
12514 i * 4 + 2 to (i * 2 + 1) * 2.
12516 2009-04-01 Jakub Jelinek <jakub@redhat.com>
12519 * c-parser.c (c_parser_asm_statement): Skip until close paren and
12520 return if c_parser_asm_string_literal returned NULL.
12522 2009-04-01 Nick Clifton <nickc@redhat.com>
12524 * config/m32c/m32c.h (LIBGCC2_UNITS_PER_WORD): Define if not
12526 * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Add m32c-lib2-trapv.c.
12527 * config/m32c/m32c-lib2.c: Remove unused typedefs. Rename the
12528 other typedefs to avoid conflicts with libgcc2.c. Define labels
12529 to gain 16-bit bit-manipulation functions from libgcc2.c and then
12531 * config/m32c/m32c-lib2-trapv.c: New file. Define labels
12532 to gain 16-bit trapping arithmetic functions from libgcc2.c and
12535 2009-04-01 Rafael Avila de Espindola <espindola@google.com>
12537 * varasm.c (default_function_rodata_section): Declare DOT as
12540 2009-04-01 Kai Tietz <kai.tietz@onevision.com>
12541 Andrey Galkin <agalkin@hypercom.com>
12544 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
12545 Make object_name unique for each process.
12547 2009-04-01 Jakub Jelinek <jakub@redhat.com>
12550 * omp-low.c (remove_exit_barrier): Don't optimize if there are any
12551 addressable variables in the parallel that could go out of scope while
12552 running queued tasks.
12554 2009-04-01 Anatoly Sokolov <aesok@post.ru>
12556 * config/avr/avr.h (avr_case_values_threshold): Remove declaration.
12557 (CASE_VALUES_THRESHOLD): Redefine.
12558 * config/avr/avr.c (avr_override_options): Remove initialization of
12559 avr_case_values_threshold variable.
12560 (avr_case_values_threshold): Remove variable. Add new function.
12561 * config/avr/avr-protos.h (avr_case_values_threshold): Declare.
12562 * config/avr/avr.opt (mno-tablejump): Remove option.
12563 * doc/invoke.texi (AVR Options): Remove -mno-tablejump.
12565 2009-04-01 DJ Delorie <dj@redhat.com>
12567 * varasm.c (default_function_rodata_section): Don't assume
12568 anything about where the first '.' in the section name is.
12570 2009-04-01 Alan Modra <amodra@bigpond.net.au>
12572 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete redundant
12573 rs6000_emit_stack_tie.
12575 2009-03-31 Ian Lance Taylor <iant@google.com>
12577 * tree-eh.c (tree_remove_unreachable_handlers): Compare
12578 gimple_code with GIMPLE_RESX, not RESX.
12580 2009-03-31 Joseph Myers <joseph@codesourcery.com>
12582 * c-common.c (c_get_ident): New.
12583 (c_common_nodes_and_builtins): Call it for type names that may be NULL.
12585 2009-04-01 Ben Elliston <bje@au.ibm.com>
12587 * config/rs6000/sysv4.opt (msdata): Improve option description.
12589 2009-03-31 Steve Ellcey <sje@cup.hp.com>
12591 * config/ia64/ia64.md (divsf3_internal_lat): Remove.
12592 (divdf3_internal_lat): Remove.
12593 (divxf3_internal_lat): Remove.
12594 (divxf3_internal_thr): Remove.
12595 (divxf): Use divxf3_internal.
12596 * config/ia64/div.md (divsf3_internal_lat): New.
12597 (divdf3_internal_lat): New.
12598 (divxf3_internal): New.
12600 2009-03-31 Joseph Myers <joseph@codesourcery.com>
12603 * Makefile.in (USE_GCC_STDINT): Define.
12604 (stmp-int-hdrs): Install stdint.h if applicable.
12605 * c-common.c (CHAR16_TYPE): Define in terms of UINT_LEAST16_TYPE
12607 (CHAR32_TYPE): Define in terms of UINT_LEAST32_TYPE if known.
12608 (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE,
12609 UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
12610 INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
12611 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
12612 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
12613 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
12614 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
12615 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
12616 (c_common_nodes_and_builtins): Initialize
12617 underlying_wchar_type_node. Do not initialize
12618 signed_wchar_type_node or unsigned_wchar_type_node. Initialize
12619 nodes for new types.
12620 (c_stddef_cpp_builtins): Define macros for new types.
12621 * c-common.h (CTI_SIGNED_WCHAR_TYPE, CTI_UNSIGNED_WCHAR_TYPE):
12623 (CTI_UNDERLYING_WCHAR_TYPE, CTI_SIG_ATOMIC_TYPE, CTI_INT8_TYPE,
12624 CTI_INT16_TYPE, CTI_INT32_TYPE, CTI_INT64_TYPE, CTI_UINT8_TYPE,
12625 CTI_UINT16_TYPE, CTI_UINT32_TYPE, CTI_UINT64_TYPE,
12626 CTI_INT_LEAST8_TYPE, CTI_INT_LEAST16_TYPE, CTI_INT_LEAST32_TYPE,
12627 CTI_INT_LEAST64_TYPE, CTI_UINT_LEAST8_TYPE, CTI_UINT_LEAST16_TYPE,
12628 CTI_UINT_LEAST32_TYPE, CTI_UINT_LEAST64_TYPE, CTI_INT_FAST8_TYPE,
12629 CTI_INT_FAST16_TYPE, CTI_INT_FAST32_TYPE, CTI_INT_FAST64_TYPE,
12630 CTI_UINT_FAST8_TYPE, CTI_UINT_FAST16_TYPE, CTI_UINT_FAST32_TYPE,
12631 CTI_UINT_FAST64_TYPE, CTI_INTPTR_TYPE, CTI_UINTPTR_TYPE): Define.
12632 (signed_wchar_type_node, unsigned_wchar_type_node): Remove.
12633 (underlying_wchar_type_node, sig_atomic_type_node, int8_type_node,
12634 int16_type_node, int32_type_node, int64_type_node,
12635 uint8_type_node, uint16_type_node, c_uint32_type_node,
12636 c_uint64_type_node, int_least8_type_node, int_least16_type_node,
12637 int_least32_type_node, int_least64_type_node,
12638 uint_least8_type_node, uint_least16_type_node,
12639 uint_least32_type_node, uint_least64_type_node,
12640 int_fast8_type_node, int_fast16_type_node, int_fast32_type_node,
12641 int_fast64_type_node, uint_fast8_type_node, uint_fast16_type_node,
12642 uint_fast32_type_node, uint_fast64_type_node, intptr_type_node,
12643 uintptr_type_node): Define.
12644 * c-cppbuiltin.c (builtin_define_constants,
12645 builtin_define_type_minmax): New.
12646 (builtin_define_stdint_macros): Define more macros.
12647 (c_cpp_builtins): Define more limit macros.
12648 (type_suffix): New.
12649 (builtin_define_type_max): Define in terms of
12650 builtin_define_type_minmax. Remove is_long parameter. All
12652 * config.gcc (use_gcc_stdint): Define.
12653 (tm_file): Add glibc-stdint.h for targets using glibc or uClibc.
12654 Add newlib-stdint.h for generic targets.
12655 * config/glibc-stdint.h, config/newlib-stdint.h,
12656 ginclude/stdint-gcc.h, ginclude/stdint-wrap.h: New.
12657 * config/m32c/m32c.h (UINTPTR_TYPE): Define.
12658 * config/score/score.h (UINTPTR_TYPE): Define.
12659 * config/sol2.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
12660 INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
12661 UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
12662 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
12663 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
12664 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
12665 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
12666 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
12667 * config/spu/spu.h (STDINT_LONG32): Define.
12668 * configure.ac (use_gcc_stdint): Substitute.
12669 * configure: Regenerate.
12670 * doc/cpp.texi (__SIG_ATOMIC_TYPE__, __INT8_TYPE__,
12671 __INT16_TYPE__, __INT32_TYPE__, __INT64_TYPE__, __UINT8_TYPE__,
12672 __UINT16_TYPE__, __UINT32_TYPE__, __UINT64_TYPE__,
12673 __INT_LEAST8_TYPE__, __INT_LEAST16_TYPE__, __INT_LEAST32_TYPE__,
12674 __INT_LEAST64_TYPE__, __UINT_LEAST8_TYPE__, __UINT_LEAST16_TYPE__,
12675 __UINT_LEAST32_TYPE_, __UINT_LEAST64_TYPE__, __INT_FAST8_TYPE__,
12676 __INT_FAST16_TYPE__, __INT_FAST32_TYPE__, __INT_FAST64_TYPE__,
12677 __UINT_FAST8_TYPE__, __UINT_FAST16_TYPE__, __UINT_FAST32_TYPE__,
12678 __UINT_FAST64_TYPE__, __INTPTR_TYPE__, __UINTPTR_TYPE__,
12679 __WINT_MAX__, __SIZE_MAX__, __PTRDIFF_MAX__, __UINTMAX_MAX__,
12680 __SIG_ATOMIC_MAX__, __INT8_MAX__, __INT16_MAX__, __INT32_MAX__,
12681 __INT64_MAX__, __UINT8_MAX__, __UINT16_MAX__, __UINT32_MAX__,
12682 __UINT64_MAX__, __INT_LEAST8_MAX__, __INT_LEAST16_MAX__,
12683 __INT_LEAST32_MAX__, __INT_LEAST64_MAX__, __UINT_LEAST8_MAX__,
12684 __UINT_LEAST16_MAX__, __UINT_LEAST32_MAX__, __UINT_LEAST64_MAX__,
12685 __INT_FAST8_MAX__, __INT_FAST16_MAX__, __INT_FAST32_MAX__,
12686 __INT_FAST64_MAX__, __UINT_FAST8_MAX__, __UINT_FAST16_MAX__,
12687 __UINT_FAST32_MAX__, __UINT_FAST64_MAX__, __INTPTR_MAX__,
12688 __UINTPTR_MAX__, __WCHAR_MIN__, __WINT_MIN__, __SIG_ATOMIC_MIN__,
12689 __INT8_C, __INT16_C, __INT32_C, __INT64_C, __UINT8_C, __UINT16_C,
12690 __UINT32_C, __UINT64_C, __INTMAX_C, __UINTMAX_C): Document.
12691 * doc/tm.texi (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE,
12692 INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
12693 INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
12694 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
12695 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
12696 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
12697 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
12698 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Document.
12700 2009-03-31 Bernd Schmidt <bernd.schmidt@analog.com>
12702 * loop-iv.c (suitable_set_for_replacement): Renamed from
12703 simplify_using_assignment; changed to return bool and to accept new
12704 args DEST and SRC. Return true iff we find a source/destination pair
12705 that can be used to make a replacement, and fill SRC and DEST if so.
12706 Remove arg ALTERED. Don't deal with altered regs here. All callers
12708 (simplify_using_initial_values): Deal with altered regs here and track
12709 more precisely the effect they have on the validity of our expression.
12711 * loop-iv.c (simplify_using_condition): A condition of the form
12712 (EQ REG CONST) can be used to simply make a substitution.
12713 (simplify_using_initial_values): Keep track of conditions we have seen
12714 and keep using them to simplify new expressions, while applying the
12715 same substitutions to them as to the expression.
12717 * simplify-rtx.c (simplify_relational_operation_1): Simplify
12718 (LTU (PLUS a C) C) or (LTU (PLUS a C) a) to (GEU a -C); likewise with
12721 * loop-iv.c (determine_max_iter): New arg OLD_NITER. All callers
12722 changed. Use this when trying to improve the upper bound.
12723 Generate the comparison by using simplify_gen_relational.
12725 * loop-iv.c (simple_rhs_p): Allow more kinds of expressions.
12727 * loop-iv.c (replace_single_def_regs, replace_in_expr): New static
12729 (simplify_using_assignment, simplify_using_initial_values): Call
12730 replace_in_expr to make replacements. Call replace_single_def_regs
12731 once on the initial version of the expression.
12733 2009-03-31 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12736 * doc/invoke.texi (ARM Options): Update documentation for -mthumb.
12738 2009-03-31 Richard Guenther <rguenther@suse.de>
12740 PR middle-end/31029
12741 * fold-const.c (fold_binary): Fold X +- Y CMP X to Y CMP 0 for
12742 equality comparisons. Fold C - X CMP X if C % 2 == 1.
12744 2009-03-31 Richard Guenther <rguenther@suse.de>
12746 * tree.h (div_if_zero_remainder): Declare.
12747 * fold-const.c (div_if_zero_remainder): Export.
12748 * tree-ssa-forwprop.c
12749 (forward_propagate_addr_into_variable_array_index): Handle
12750 constant array index addition outside of the variable index.
12752 2009-03-31 Joseph Myers <joseph@codesourcery.com>
12755 * config/i386/i386.md (*floatunssi<mode>2_1, two unnamed
12756 define_splits, floatunssi<mode>2): Require x87 conversions from
12757 DImode to be permitted.
12759 2009-03-31 Joseph Myers <joseph@codesourcery.com>
12761 PR preprocessor/15638
12762 * c-common.c (c_cpp_error): Handle CPP_DL_FATAL.
12764 2009-03-31 Richard Guenther <rguenther@suse.de>
12766 PR middle-end/23401
12767 PR middle-end/27810
12768 * tree.h (DECL_GIMPLE_FORMAL_TEMP_P): Remove.
12769 (struct tree_decl_with_vis): Remove gimple_formal_temp member.
12770 * tree-eh.c (lower_eh_constructs_2): Move LHS assignment to
12771 a separate statement.
12772 * gimplify.c (pop_gimplify_context): Remove formal temp handling.
12773 (lookup_tmp_var): Likewise.
12774 (is_gimple_formal_tmp_or_call_rhs): Remove.
12775 (is_gimple_reg_or_call_rhs): Rename to ...
12776 (is_gimple_reg_rhs_or_call): ... this.
12777 (is_gimple_mem_or_call_rhs): Rename to ...
12778 (is_gimple_mem_rhs_or_call): ... this.
12779 (internal_get_tmp_var): Use is_gimple_reg_rhs_or_call. Set
12780 DECL_GIMPLE_REG_P only if is_formal is true.
12781 (gimplify_compound_lval): Use is_gimple_reg. Remove workaround
12782 for non-proper post-modify expression gimplification.
12783 (gimplify_self_mod_expr): For post-modify expressions gimplify
12784 the lvalue to a minimal lvalue.
12785 (rhs_predicate_for): Remove formal temp case.
12786 (gimplify_modify_expr_rhs): Likewise.
12787 (gimplify_addr_expr): Use is_gimple_reg.
12788 (gimplify_expr): Remove formal temp cases.
12789 (gimple_regimplify_operands): Likewise.
12790 * tree-ssa-pre.c (get_or_alloc_expr_for): Treat EXC_PTR_EXPR
12791 and FILTER_EXPR like constants.
12792 * gimple.c (walk_gimple_op): Fix val_only initialization, use
12794 (is_gimple_formal_tmp_rhs): Remove.
12795 (is_gimple_reg_rhs): Remove special casing.
12796 (is_gimple_mem_rhs): Fix.
12797 (is_gimple_reg): Move DECL_GIMPLE_REG_P handling earlier.
12798 (is_gimple_formal_tmp_var): Remove.
12799 (is_gimple_formal_tmp_reg): Likewise.
12800 (is_gimple_min_lval): Allow invariant component ref parts.
12801 * gimple.h (is_gimple_formal_tmp_rhs, is_gimple_formal_tmp_var,
12802 is_gimple_formal_tmp_reg): Remove declarations.
12803 * tree-cfg.c (verify_expr): Verify that variables with address
12804 taken do not have DECL_GIMPLE_REG_P set.
12805 * tree-mudflap.c (mf_build_check_statement_for): Use
12806 force_gimple_operand instead of gimplify_expr.
12808 2009-03-31 Ayal Zaks <zaks@il.ibm.com>
12810 * modulo-sched.c (sms_schedule_by_order): Pass the actual
12811 schedulable rows to compute_split_row.
12813 2009-03-31 Ben Elliston <bje@au.ibm.com>
12816 * config/rs6000/rs6000.c (rs6000_handle_option): Handle
12819 2009-03-31 Alan Modra <amodra@bigpond.net.au>
12821 * doc/invoke.texi (RS/6000 and PowerPC Options):Document mtls-markers.
12822 * configure.ac (HAVE_AS_TLS_MARKERS): New gas feature check.
12823 * configure: Regenerate.
12824 * config.in: Regenerate.
12825 * config/rs6000/rs6000.opt (mtls-markers): Add.
12826 * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Define.
12827 * config/rs6000/rs6000.md (tls_gd_aix, tls_gd_sysv): Add splitter.
12828 (tls_ld_aix, tls_ld_sysv): Likewise.
12829 (tls_gd, tls_gd_call_aix, tls_gd_call_sysv): New insns.
12830 (tls_ld, tls_ld_call_aix, tls_ld_call_sysv): Likewise.
12832 2009-03-31 Alan Modra <amodra@bigpond.net.au>
12834 * config/spu/spu.c (spu_expand_prologue): Delete redundant code.
12836 2009-03-30 Jan Hubicka <jh@suse.cz>
12838 * tree-eh.c (make_eh_edges): Set probability 100% to first edge
12840 (tree_remove_unreachable_handlers): Cleanup EH predecestor
12841 detection and label handling.
12843 2009-03-30 Vladimir Makarov <vmakarov@redhat.com>
12845 * ira-int.h (ira_allocno): Rename left_conflicts_num to
12846 left_conflicts_size.
12847 (ALLOCNO_LEFT_CONFLICTS_NUM): Rename to
12848 ALLOCNO_LEFT_CONFLICTS_SIZE.
12850 * ira-color.c (allocno_spill_priority, push_allocno_to_stack,
12851 remove_allocno_from_bucket_and_push,
12852 allocno_spill_priority_compare, push_allocnos_to_stack,
12853 setup_allocno_available_regs_num): Use ALLOCNO_LEFT_CONFLICTS_SIZE
12854 instead of ALLOCNO_LEFT_CONFLICTS_NUM.
12855 (setup_allocno_left_conflicts_num): Ditto. Rename to
12856 setup_allocno_left_conflicts_size.
12857 (put_allocno_into_bucket): Use ALLOCNO_LEFT_CONFLICTS_SIZE
12858 instead of ALLOCNO_LEFT_CONFLICTS_NUM and
12859 setup_allocno_left_conflicts_size instead of
12860 setup_allocno_left_conflicts_num.
12862 * ira-build.c (ira_create_allocno): Use
12863 ALLOCNO_LEFT_CONFLICTS_SIZE instead of
12864 ALLOCNO_LEFT_CONFLICTS_NUM.
12866 2009-03-30 Vladimir Makarov <vmakarov@redhat.com>
12868 * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
12869 instead of DF_LR_OUT.
12871 * ira-lives.c (process_bb_node_lives): Ditto.
12873 * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
12874 instead of DF_LR_{OUT,IN}.
12876 * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
12878 * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
12880 2009-03-30 Jan Hubicka <jh@suse.cz>
12882 * except.c (label_to_region_map): Fix thinko.
12884 2009-03-30 Steve Ellcey <sje@cup.hp.com>
12886 PR middle-end/38237
12887 * tree.h (tree_find_value): New declaration.
12888 * tree.c (tree_find_value): New function.
12889 * varasm.c (assemble_external): Avoid duplicate entries on lists.
12891 2009-03-30 Jakub Jelinek <jakub@redhat.com>
12894 * c-decl.c (struct c_binding): Add locus field.
12895 (bind): Add locus argument, set locus field from it.
12896 (pop_scope): For b->nested VAR_DECL or FUNCTION_DECL,
12897 add a DECL_EXTERNAL copy of b->decl to current BLOCK_VARS.
12898 (push_file_scope, pushtag, pushdecl, pushdecl_top_level,
12899 implicitly_declare, undeclared_variable, lookup_label,
12900 declare_label, c_make_fname_decl, c_builtin_function,
12901 c_builtin_function_ext_scope, store_parm_decls_newstyle): Adjust
12904 2009-03-30 H.J. Lu <hongjiu.lu@intel.com>
12907 * config/i386/i386.c (classify_argument): Check total size of
12910 2009-03-30 Martin Jambor <mjambor@suse.cz>
12912 * ipa-prop.h (jump_func_type): Rename IPA_UNKNOWN, IPA_CONST,
12913 IPA_CONST_MEMBER_PTR, and IPA_PASS_THROUGH to IPA_JF_UNKNOWN,
12914 IPA_JF_CONST, IPA_JF_CONST_MEMBER_PTR, and IPA_JF_PASS_THROUGH
12917 * tree-dfa.c (get_ref_base_and_extent): Return -1 maxsize if
12918 seen_variable_array_ref while also traversing a union.
12920 * tree-inline.c (optimize_inline_calls): Do not call
12921 cgraph_node_remove_callees.
12922 * cgraphbuild.c (remove_cgraph_callee_edges): New function.
12923 (pass_remove_cgraph_callee_edges): New variable.
12924 * passes.c (init_optimization_passes): Add
12925 pass_remove_cgraph_callee_edges after early inlining and before all
12926 late intraprocedural passes.
12928 * omp-low.c (expand_omp_taskreg): Always set current_function_decl.
12930 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
12932 * config/sparc/sparc.md (*nand<V64mode>_vis, *nand<V32mode>_vis):
12933 Fix typos in names.
12935 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
12937 * combine.c (simplify_comparison): Use have_insn_for.
12938 * dojump.c (do_jump): Likewise.
12940 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
12942 * config/sparc/sparc.c (sparc_compare_emitted): Remove.
12943 (gen_compare_reg, emit_v9_brxx_insn): Handle MODE_CC
12944 sparc_compare_op0 like sparc_compare_emitted used to be handled.
12945 (sparc_expand_compare_and_swap_12): Set sparc_compare_op0
12946 instead of sparc_compare_emitted.
12947 * config/sparc/sparc.h (sparc_compare_emitted): Remove.
12948 * config/sparc/sparc.md (stack_protect_test): Set sparc_compare_op0
12949 instead of sparc_compare_emitted.
12951 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
12953 * bb-reorder.c (partition_hot_cold_basic_blocks): Do not
12954 enter/exit cfglayout mode.
12955 (pass_partition_block): Require it.
12956 * combine.c (find_single_use, reg_dead_at_p): Use CFG.
12957 (combine_instructions): Track basic blocks instead of labels.
12958 (update_cfg_for_uncondjump): New.
12959 (try_combine): Use it. Update jumps after rescanning.
12960 (pass_combine): Require PROP_cfglayout.
12961 * passes.c (pass_outof_cfg_layout_mode): Move after regmove.
12963 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
12965 * cfglayout.c (pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode):
12966 Provide/destroy PROP_cfglayout respectively.
12967 * gcse.c (pass_jump_bypass, pass_gcse): Require it.
12968 * tree-pass.h (PROP_cfglayout): New.
12970 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
12972 * fold-const.c (const_binop, fold_convert_const_real_from_fixed,
12973 fold_convert_const_fixed_from_fixed,
12974 fold_convert_const_fixed_from_int,
12975 fold_convert_const_fixed_from_real, fold_negate_const): Do not
12976 set TREE_CONSTANT_OVERFLOW.
12977 * tree.def: Remove mention of TREE_CONSTANT_OVERFLOW.
12978 * tree.h (TREE_CONSTANT_OVERFLOW): Delete.
12980 2009-03-30 Ira Rosen <irar@il.ibm.com>
12982 * tree-vect-loop-manip.c: New file.
12983 * tree-vectorizer.c: Update documentation and included files.
12984 (vect_loop_location): Make extern.
12985 (rename_use_op): Move to tree-vect-loop-manip.c
12986 (rename_variables_in_bb, rename_variables_in_loop,
12987 slpeel_update_phis_for_duplicate_loop,
12988 slpeel_update_phi_nodes_for_guard1,
12989 slpeel_update_phi_nodes_for_guard2, slpeel_make_loop_iterate_ntimes,
12990 slpeel_tree_duplicate_loop_to_edge_cfg, slpeel_add_loop_guard,
12991 slpeel_can_duplicate_loop_p, slpeel_verify_cfg_after_peeling,
12992 set_prologue_iterations, slpeel_tree_peel_loop_to_edge,
12993 find_loop_location): Likewise.
12994 (new_stmt_vec_info): Move to tree-vect-stmts.c.
12995 (init_stmt_vec_info_vec, free_stmt_vec_info_vec, free_stmt_vec_info,
12996 get_vectype_for_scalar_type, vect_is_simple_use,
12997 supportable_widening_operation, supportable_narrowing_operation):
12999 (bb_in_loop_p): Move to tree-vect-loop.c.
13000 (new_loop_vec_info, destroy_loop_vec_info,
13001 reduction_code_for_scalar_code, report_vect_op,
13002 vect_is_simple_reduction, vect_is_simple_iv_evolution): Likewise.
13003 (vect_can_force_dr_alignment_p): Move to tree-vect-data-refs.c.
13004 (vect_supportable_dr_alignment): Likewise.
13005 * tree-vectorizer.h (tree-data-ref.h): Include.
13006 (vect_loop_location): Declare.
13007 Reorganize function declarations according to the new file structure.
13008 * tree-vect-loop.c: New file.
13009 * tree-vect-analyze.c: Remove. Move functions to tree-vect-data-refs.c,
13010 tree-vect-stmts.c, tree-vect-slp.c, tree-vect-loop.c.
13011 * tree-vect-data-refs.c: New file.
13012 * tree-vect-patterns.c (timevar.h): Don't include.
13013 * tree-vect-stmts.c: New file.
13014 * tree-vect-transform.c: Remove. Move functions to tree-vect-stmts.c,
13015 tree-vect-slp.c, tree-vect-loop.c.
13016 * Makefile.in (OBJS-common): Remove tree-vect-analyze.o and
13017 tree-vect-transform.o. Add tree-vect-data-refs.o, tree-vect-stmts.o,
13018 tree-vect-loop.o, tree-vect-loop-manip.o, tree-vect-slp.o.
13019 (tree-vect-analyze.o): Remove.
13020 (tree-vect-transform.o): Likewise.
13021 (tree-vect-data-refs.o): Add rule.
13022 (tree-vect-stmts.o, tree-vect-loop.o, tree-vect-loop-manip.o,
13023 tree-vect-slp.o): Likewise.
13024 (tree-vect-patterns.o): Remove redundant dependencies.
13025 (tree-vectorizer.o): Likewise.
13026 * tree-vect-slp.c: New file.
13028 2009-03-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13030 * optc-gen.awk: Warn if an option flag has multiple different
13033 2009-03-30 Sebastian Pop <sebastian.pop@amd.com>
13035 * doc/invoke.texi (-floop-interchange, -floop-strip-mine,
13036 -floop-block): Document dependences on PPL, CLooG and Graphite.
13038 2009-03-30 Joseph Myers <joseph@codesourcery.com>
13040 PR rtl-optimization/323
13041 * c-common.c (c_fully_fold, convert_and_check,
13042 c_common_truthvalue_conversion): Handle EXCESS_PRECISION_EXPR.
13043 (c_fully_fold_internal): Disallow EXCESS_PRECISION_EXPR.
13044 * c-common.def (EXCESS_PRECISION_EXPR): New.
13045 * c-cppbuiltin.c (builtin_define_float_constants): Define
13046 constants with enough digits for long double.
13047 * c-lex.c (interpret_float): Interpret constant with excess
13048 precision where appropriate.
13049 * c-opts.c (c_common_post_options): Set
13050 flag_excess_precision_cmdline. Give an error for
13051 -fexcess-precision=standard for C++ for processors where the
13052 option is significant.
13053 * c-parser.c (c_parser_conditional_expression): Handle excess
13054 precision in condition.
13055 * c-typeck.c (convert_arguments): Handle arguments with excess
13057 (build_unary_op): Move excess precision outside operation.
13058 (build_conditional_expr): Likewise.
13059 (build_compound_expr): Likewise.
13060 (build_c_cast): Do cast on operand of EXCESS_PRECISION_EXPR.
13061 (build_modify_expr): Handle excess precision in RHS.
13062 (convert_for_assignment): Handle excess precision in converted
13064 (digest_init, output_init_element, process_init_element): Handle
13065 excess precision in initializer.
13066 (c_finish_return): Handle excess precision in return value.
13067 (build_binary_op): Handle excess precision in operands and add
13068 excess precision as needed for operation.
13069 * common.opt (-fexcess-precision=): New option.
13070 * config/i386/i386.h (X87_ENABLE_ARITH, X87_ENABLE_FLOAT): New.
13071 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
13072 For standard excess precision, output explicit conversion to and
13073 truncation from XFmode.
13074 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1,
13075 *float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp,
13076 *float<SSEMODEI24:mode><X87MODEF:mode>2_i387, two unnamed
13077 define_splits, floatdi<X87MODEF:mode>2_i387_with_xmm, two unnamed
13078 define_splits, *floatunssi<mode>2_1, two unnamed define_splits,
13079 floatunssi<mode>2, add<mode>3, sub<mode>3, mul<mode>3, divdf3,
13080 divsf3, *fop_<mode>_comm_i387, *fop_<mode>_1_i387,
13081 *fop_<MODEF:mode>_2_i387, *fop_<MODEF:mode>_3_i387,
13082 *fop_df_4_i387, *fop_df_5_i387, *fop_df_6_i387, two unnamed
13083 define_splits, sqrt<mode>2): Disable where appropriate for
13084 standard excess precision.
13085 * convert.c (convert_to_real): Do not shorten arithmetic to type
13086 for which excess precision would be used.
13087 * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Define.
13088 * doc/invoke.texi (-fexcess-precision=): Document option.
13089 (-mfpmath=): Correct index entry.
13090 * flags.h (enum excess_precision, flag_excess_precision_cmdline,
13091 flag_excess_precision): New.
13092 * langhooks.c (lhd_post_options): Set
13093 flag_excess_precision_cmdline.
13094 * opts.c (common_handle_option): Handle -fexcess-precision=.
13095 * toplev.c (flag_excess_precision_cmdline, flag_excess_precision,
13096 init_excess_precision): New.
13097 (lang_dependent_init_target): Call init_excess_precision.
13098 * tree.c (excess_precision_type): New.
13099 * tree.h (excess_precision_type): Declare.
13101 2009-03-30 Joseph Myers <joseph@codesourcery.com>
13104 * c-typeck.c (build_component_ref): Do not copy qualifiers from
13105 non-lvalue to component.
13107 2009-03-29 Joseph Myers <joseph@codesourcery.com>
13109 PR preprocessor/34695
13110 * Makefile.in (c-opts.o): Depend on c-tree.h.
13111 * c-common.c: Move down include of diagnostic.h.
13112 (done_lexing, c_cpp_error): New.
13113 * c-common.h (done_lexing): Declare.
13114 * c-decl.c (c_write_global_declarations): Don't check cpp_errors
13116 * c-opts.c: Include c-tree.h.
13117 (c_common_init_options): Set preprocessor error callback.
13118 (c_common_handle_option): Do not set preprocessor
13119 inhibit_warnings, warnings_are_errors, warn_system_headers,
13120 pedantic_errors or inhibit_warnings flags.
13121 (c_common_post_options): Do not check cpp_errors (parse_in).
13122 (c_common_finish): Do not output dependencies if there were
13123 errors. Do not check return value of cpp_finish.
13124 * c-ppoutput.c (pp_file_change): Set input_location.
13125 * c-tree.h (c_cpp_error): Declare.
13126 * diagnostic.c (diagnostic_set_info_translated): Also initialize
13128 (diagnostic_build_prefix): Check override_column.
13129 * diagnostic.h (diagnostic_info): Add override_column field.
13130 (diagnostic_override_column): Define.
13132 2009-03-28 Paolo Bonzini <bonzini@gnu.org>
13134 * c-common.c (c_expand_expr, c_staticp): Remove.
13135 * c-common.def (COMPOUND_LITERAL_EXPR): Delete.
13136 * c-common.h (emit_local_var, c_staticp, COMPOUND_LITERAL_EXPR_DECL,
13137 COMPOUND_LITERAL_EXPR_DECL_EXPR): Remove.
13138 * c-gimplify.c (gimplify_compound_literal_expr,
13139 optimize_compound_literals_in_ctor): Remove.
13140 (c_gimplify_expr): Remove COMPOUND_LITERAL_EXPR handling.
13141 * c-objc-common.h (LANG_HOOKS_STATICP): Remove.
13142 * c-semantics.c (emit_local_var): Remove.
13144 * langhooks-def.h (lhd_expand_expr): Remove.
13145 * langhooks.c (lhd_expand_expr): Remove.
13146 * langhooks.h (LANG_HOOKS_DEF): Remove LANG_HOOKS_EXPAND_EXPR.
13148 * expr.c (expand_expr_real_1): Move COMPOUND_LITERAL_EXPR
13149 handling from c-semantics.c; don't call into langhook.
13150 (expand_expr_addr_expr_1): Check that we don't get non-GENERIC trees.
13151 * gimplify.c (gimplify_compound_literal_expr,
13152 optimize_compound_literals_in_ctor): Move from c-gimplify.c.
13153 (gimplify_init_constructor): Call optimize_compound_literals_in_ctor.
13154 (gimplify_modify_expr_rhs, gimplify_expr): Handle COMPOUND_LITERAL_EXPR
13155 as was done in c-gimplify.c.
13156 * tree.c (staticp): Move COMPOUND_LITERAL_EXPR handling from c_staticp.
13157 * tree.h (COMPOUND_LITERAL_EXPR_DECL, COMPOUND_LITERAL_EXPR_DECL_EXPR):
13158 Move from c-common.h.
13159 * tree.def (COMPOUND_LITERAL_EXPR): Move from c-common.def.
13161 * tree.c (staticp): Do not call langhook.
13162 * langhooks.c (lhd_staticp): Delete.
13163 * langhooks-def.h (lhd_staticp): Delete prototype.
13164 (LANG_HOOKS_STATICP): Delete.
13165 (LANG_HOOKS_INITIALIZER): Delete LANG_HOOKS_STATICP.
13167 * doc/c-tree.texi (Expression nodes): Refer to DECL_EXPRs
13168 instead of DECL_STMTs.
13170 2009-03-29 Joseph Myers <joseph@codesourcery.com>
13178 * builtins.c (fold_builtin_sincos): Build COMPOUND_EXPR in
13180 (fold_call_expr): Return a NOP_EXPR from folding rather than the
13181 contained expression.
13182 * c-common.c (c_fully_fold, c_fully_fold_internal, c_save_expr): New.
13183 (c_common_truthvalue_conversion): Use c_save_expr. Do not fold
13184 conditional expressions for C.
13185 (decl_constant_value_for_optimization): Move from
13186 decl_constant_value_for_broken_optimization in c-typeck.c. Check
13187 whether optimizing and that the expression is a VAR_DECL not of
13188 array type instead of doing such checks in the caller. Do not
13189 check pedantic. Call gcc_unreachable for C++.
13190 * c-common.def (C_MAYBE_CONST_EXPR): New.
13191 * c-common.h (c_fully_fold, c_save_expr,
13192 decl_constant_value_for_optimization): New prototypes.
13193 (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
13194 C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
13195 EXPR_INT_CONST_OPERANDS): Define.
13196 * c-convert.c (convert): Strip nops from expression.
13197 * c-decl.c (groktypename): Take extra parameters expr and
13198 expr_const_operands. Update call to grokdeclarator.
13199 (start_decl): Update call to grokdeclarator. Add statement for
13200 expressions used in type of decl.
13201 (grokparm): Update call to grokdeclarator.
13202 (push_parm_decl): Update call to grokdeclarator.
13203 (build_compound_literal): Add parameter non_const and build a
13204 C_MAYBE_COSNT_EXPR if applicable.
13205 (grokdeclarator): Take extra parameters expr and
13206 expr_const_operands. Track expressions used in declaration
13207 specifiers and declarators. Fold array sizes and track whether
13208 they are constant expressions and whether they are integer
13209 constant expressions.
13210 (parser_xref_tag): Set expr and expr_const_operands fields in
13212 (grokfield): Update call to grokdeclarator.
13213 (start_function): Update call to grokdeclarator.
13214 (build_null_declspecs): Set expr and expr_const_operands fields in
13216 (declspecs_add_type): Handle expressions in typeof specifiers.
13217 * c-parser.c (c_parser_declspecs): Set expr and
13218 expr_const_operands fields for declaration specifiers.
13219 (c_parser_enum_specifier): Likewise.
13220 (c_parser_struct_or_union_specifier): Likewise.
13221 (c_parser_typeof_specifier): Likewise. Update call to
13222 groktypename. Fold expression as needed. Return expressions with
13223 type instead of adding statements.
13224 (c_parser_attributes): Update calls to c_parser_expr_list.
13225 (c_parser_statement_after_labels): Fold expression before passing
13226 to objc_build_throw_stmt.
13227 (c_parser_condition): Fold expression.
13228 (c_parser_asm_operands): Fold expression.
13229 (c_parser_conditional_expression): Use c_save_expr. Update call
13230 to build_conditional_expr.
13231 (c_parser_alignof_expression): Update call to groktypename.
13232 (c_parser_postfix_expression): Preserve C_MAYBE_CONST_EXPR as
13233 original_code. Fold expression argument of va_arg. Create
13234 C_MAYBE_CONST_EXPR to preserve side effects of expressions in type
13235 argument to va_arg. Update calls to groktypename. Fold array
13236 index for offsetof. Verify that first argument to
13237 __builtin_choose_expr has integer type.
13238 (c_parser_postfix_expression_after_paren_type): Update calls to
13239 groktypename and build_compound_literal. Handle expressions with
13240 side effects in type name.
13241 (c_parser_postfix_expression_after_primary): Update call to
13242 c_parser_expr_list. Set original_code for calls to
13243 __builtin_constant_p.
13244 (c_parser_expr_list): Take extra parameter fold_p. Fold
13245 expressions if requested.
13246 (c_parser_objc_type_name): Update call to groktypename.
13247 (c_parser_objc_synchronized_statement): Fold expression.
13248 (c_parser_objc_receiver): Fold expression.
13249 (c_parser_objc_keywordexpr): Update call to c_parser_expr_list.
13250 (c_parser_omp_clause_num_threads, c_parser_omp_clause_schedule,
13251 c_parser_omp_atomic, c_parser_omp_for_loop): Fold expressions.
13252 * c-tree.h (CONSTRUCTOR_NON_CONST): Define.
13253 (struct c_typespec): Add elements expr and expr_const_operands.
13254 (struct c_declspecs): Add elements expr and expr_const_operands.
13255 (groktypename, build_conditional_expr, build_compound_literal):
13257 (in_late_binary_op): Declare.
13258 * c-typeck.c (note_integer_operands): New function.
13259 (in_late_binary_op): New variable.
13260 (decl_constant_value_for_broken_optimization): Move to c-common.c
13261 and rename to decl_constant_value_for_optimization.
13262 (default_function_array_conversion): Do not strip nops.
13263 (default_conversion): Do not call
13264 decl_constant_value_for_broken_optimization.
13265 (build_array_ref): Do not fold result.
13266 (c_expr_sizeof_expr): Fold operand. Use C_MAYBE_CONST_EXPR for
13267 result when operand is a VLA.
13268 (c_expr_sizeof_type): Update call to groktypename. Handle
13269 expressions included in type name. Use C_MAYBE_CONST_EXPR for
13270 result when operand names a VLA type.
13271 (build_function_call): Update call to build_compound_literal.
13272 Only fold result for calls to __builtin_* functions. Strip
13273 NOP_EXPR from INTEGER_CST returned from such functions. Fold
13274 the function designator.
13275 (convert_arguments): Fold arguments. Update call to
13276 convert_for_assignment.
13277 (build_unary_op): Handle increment and decrement of
13278 C_MAYBE_CONST_EXPR. Move lvalue checks for increment and
13279 decrement earlier. Fold operand of increment and decrement.
13280 Handle address of C_MAYBE_CONST_EXPR. Only fold expression being
13281 built for integer operand. Wrap returns that are INTEGER_CSTs
13282 without being integer constant expressions or that have integer
13283 constant operands without being INTEGER_CSTs.
13284 (lvalue_p): Handle C_MAYBE_CONST_EXPR.
13285 (build_conditional_expr): Add operand ifexp_bcp. Track whether
13286 result is an integer constant expression or can be used in
13287 unevaluated parts of one and avoid folding and wrap as
13288 appropriate. Fold operands before possibly doing -Wsign-compare
13290 (build_compound_expr): Wrap result for C99 if operands can be used
13291 in integer constant expressions.
13292 (build_c_cast): Update call to digest_init. Do not ignore
13293 overflow from casting floating-point constants to integers. Wrap
13294 results that could be confused with integer constant expressions,
13295 null pointer constants or floating-point constants.
13296 (c_cast_expr): Update call to groktypename. Handle expressions
13297 included in type name.
13298 (build_modify_expr): Handle modifying a C_MAYBE_CONST_EXPR. Fold
13299 lhs inside possible SAVE_EXPR. Fold RHS before assignment.
13300 Update calls to convert_for_assignment.
13301 (convert_for_assignment): Take new parameter
13302 null_pointer_constant. Do not strip nops or call
13303 decl_constant_value_for_broken_optimization. Set
13304 in_late_binary_op for conversions to boolean.
13305 (store_init_value): Update call to digest_init.
13306 (digest_init): Take new parameter null_pointer_constant. Do not
13307 call decl_constant_value_for_broken_optimization. pedwarn for
13308 initializers not constant expressions. Update calls to
13309 convert_for_assignment.
13310 (constructor_nonconst): New.
13311 (struct constructor_stack): Add nonconst element.
13312 (really_start_incremental_init, push_init_level, pop_init_level):
13313 Handle constructor_nonconst and nonconst element.
13314 (set_init_index): Call constant_expression_warning for array
13316 (output_init_element): Fold value. Set constructor_nonconst as
13317 applicable. pedwarn for initializers not constant expressions.
13318 Update call to digest_init. Call constant_expression_warning
13319 where constant initializers are required.
13320 (process_init_element): Use c_save_expr.
13321 (c_finish_goto_ptr): Fold expression.
13322 (c_finish_return): Fold return value. Update call to
13323 convert_for_assignment.
13324 (c_start_case): Fold switch expression.
13325 (c_process_expr_stmt): Fold expression.
13326 (c_finish_stmt_expr): Create C_MAYBE_CONST_EXPR as needed to
13327 ensure statement expression is not evaluated in constant expression.
13328 (build_binary_op): Track whether results are integer constant
13329 expressions or may occur in such, disable folding and wrap results
13330 as applicable. Fold operands for -Wsign-compare warnings unless
13332 (c_objc_common_truthvalue_conversion): Handle results folded to
13333 integer constants that are not integer constant expressions.
13334 * doc/extend.texi: Document when typeof operands are evaluated,
13335 that condition of __builtin_choose_expr is an integer constant
13336 expression, and more about use of __builtin_constant_p in
13339 2009-03-29 Richard Guenther <rguenther@suse.de>
13341 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
13342 propagate addresses of array references.
13344 2009-03-29 Steven Bosscher <steven@gcc.gnu.org>
13346 * regmove.c (perhaps_ends_bb_p): Remove.
13347 (optimize_reg_copy_1): Don't call perhaps_ends_bb_p. Get basic block
13348 from INSN and check that the main loop stays within that basic block.
13349 (optimize_reg_copy_1, optimize_reg_copy_3, fixup_match_2): Likewise.
13350 (regmove_forward_pass): Split out from regmove_optimize. Use
13351 FOR_EACH_BB and FOR_BB_INSNS instead of traversing the insns stream.
13352 (regmove_backward_pass): Split out from regmove_optimize. Use
13353 FOR_EACH_BB_REVERSE and FOR_BB_INSNS_REVERS_SAFE.
13354 (regmove_optimize): Simplify.
13356 2009-03-29 H.J. Lu <hongjiu.lu@intel.com>
13359 * config/i386/i386.c (classify_argument): Ignore flexible array
13360 member in struct and warn ABI change.
13362 2009-03-29 H.J. Lu <hongjiu.lu@intel.com>
13364 * config/i386/i386-protos.h (ix86_agi_dependent): New.
13366 * config/i386/i386.c (ix86_agi_dependent): Rewrite.
13367 (ix86_adjust_cost): Updated.
13369 2009-03-29 Jan Hubicka <jh@suse.cz>
13371 PR middle-end/28850
13372 * tree-pass.h (pass_cleanup_eh): New function.
13373 (remove_unreachable_regions): Break code handling RTL
13374 to rtl_remove_unreachable_regions; remove ERT_MUST_NOT_THROW
13375 that can not be reached by runtime.
13376 (can_be_reached_by_runtime): New function.
13377 (label_to_region_map): New function.
13378 (num_eh_regions): New function.
13379 (rtl_remove_unreachable_regions): New function.
13380 (convert_from_eh_region_ranges): Call rtl_remove_unreachable_regions.
13381 (remove_eh_region): New function.
13382 * except.h: Include sbitmap and vecprim.
13383 (remove_eh_region, remove_unreachable_regions, label_to_region_map,
13384 num_eh_regions): Declare.
13385 * passes.c (init_optimization_passes): Schedule cleanup_eh.
13386 * Makefile.in (EXCEPT_H): New; replace all uses of except.h by it.
13387 * tree-eh.c (tree_remove_unreachable_handlers): New function.
13388 (tree_empty_eh_handler_p): New function.
13389 (cleanup_empty_eh): New function.
13390 (cleanup_eh): New function.
13391 (pass_cleanup_eh): New function.
13393 2009-03-29 Jan Hubicka <jh@suse.cz>
13395 * except.c (verify_eh_tree): Fix handling of fun!=cfun; be ready
13396 for removed regions.
13398 2009-03-29 Jan Hubicka <jh@suse.cz>
13400 * except.c (dump_eh_tree): Dump all datastructures.
13402 2009-03-29 Jan Hubicka <jh@suse.cz>
13404 * except.c (duplicate_eh_regions_0): Handle AKA bitmap.
13405 (duplicate_eh_regions_1): Likewise.
13406 (duplicate_eh_regions): Likewise; cleanup code gorwing the region
13407 vector; call EH verification.
13408 (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
13409 Be ready for region being removed.
13411 2009-03-29 Jan Hubicka <jh@suse.cz>
13413 * bitmap.c (bitmap_last_set_bit): New function.
13414 * bitmap.h (bitmap_last_set_bit): Declare.
13416 2009-03-29 David Ayers <ayers@fsfe.org>
13419 * c-typeck.c (build_conditional_expr): Emit ObjC warnings
13420 by calling objc_compare_types and surpress warnings about
13421 incompatible C pointers that are compatible ObjC pointers.
13423 2009-03-29 Adam Nemet <anemet@caviumnetworks.com>
13425 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Don't
13426 call initialize_inline_failed.
13427 (initialize_inline_failed): Move it from here ...
13428 * cgraph.c (initialize_inline_failed): ... to here.
13429 (cgraph_create_edge): Call initialize_inline_failed rather than
13430 setting inline_failed directly.
13432 2009-03-29 Ben Elliston <bje@au.ibm.com>
13435 * sysv4.opt (msdata): Improve comment.
13436 * linux64.h (ASM_SPEC32): Do not pass -memb when -msdata is given.
13437 * sysv4.h (SVR4_ASM_SPEC): Likewise.
13439 2009-03-29 Ben Elliston <bje@au.ibm.com>
13442 * config/rs6000/rs6000.md (*movti_ppc64): Correct the order of
13443 load and store attributes.
13445 2009-03-29 Ben Elliston <bje@au.ibm.com>
13447 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_HUGE_VALQ.
13448 (ix86_init_builtins): Add built-in function __builtin_huge_valq.
13449 (ix86_expand_builtin): Handle IX86_BUILTIN_HUGE_VALQ.
13450 * doc/extend.texi (X86 Built-in Functions): Add index entries for
13451 __builtin_infq and __builtin_huge_valq.
13453 2009-03-28 Anatoly Sokolov <aesok@post.ru>
13455 * config/avr/avr.c (avr_mcu_t): Add atmega8c1, atmega16c1 and
13457 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
13458 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.)
13460 2009-03-28 Xinliang David Li <davidxl@google.com>
13462 * tree-ssa-ccp.c (ccp_finalize): Add dbg_count support.
13463 (do_dbg_cnt): New function.
13465 2009-03-28 Jan Hubicka <jh@suse.cz>
13467 Merge from pretty-ipa:
13469 2009-03-27 Jan Hubicka <jh@suse.cz>
13471 * cgraph.c (dump_cgraph_node): Add replace output flag by process.
13472 * tree-pass.h (function_called_by_processed_nodes_p): Declare.
13473 * passes.c (function_called_by_processed_nodes_p): New.
13474 * ipa-pure-const.c (check_call): Fix handling of operands.
13475 (analyze_function): Dump debug output for skipped bodies.
13476 (local_pure_const): Use function_called_by_processed_nodes_p.
13477 * dwarf2out.c (reference_to_unused): Use output.
13478 * passes.c (do_per_function_toporder): Likewise.
13480 2008-11-12 Jan Hubicka <jh@suse.cz>
13482 * tree-pass.h (pass_fixup_cfg, pass_local_pure_const): Declare.
13483 * ipa-pure-const.c (funct_state_d): Add can throw field; make
13484 state_set_in_source enum
13485 (check_decl): Ignore memory tags; do not set fake looping flags;
13487 (check_operand, check_tree, check_rhs_var, check_lhs_var,
13488 get_asm_expr_operands, scan_function_op, scan_function_stmt): Remove.
13489 (check_call, analyze_function): Rewrite.
13491 (add_new_function): Update call of analyze_function.
13492 (generate_summary): Add call of analyze_function.
13493 (propagate): Propagate can_throw; handle state_set_in_source correctly.
13494 (local_pure_const): New function.
13495 (pass_local_pure_const): New pass.
13496 * ipa-inline.c (inline_transform): Set after_inlining.
13497 * tree-eh.c (stmt_can_throw_external): New.
13498 * tree-optimize.c (execute_fixup_cfg): Do not set after_inlining;
13499 work with aliasing built.
13500 * tree-flow.h (stmt_can_throw_external): New.
13501 * passes.c (init_optimization_passes): Schedule fixup_cfg pass early;
13502 and local pure/const pass in early and late optimization queue.
13504 2009-03-28 Martin Jambor <mjambor@suse.cz>
13506 * fold-const.c (get_pointer_modulus_and_residue): New parameter
13508 (fold_binary): Allow function decl aligment consideration is the
13509 second argument is integer constant one.
13510 * tree-ssa-forwprop.c (simplify_bitwise_and): New function.
13511 (tree_ssa_forward_propagate_single_use_vars): Handle assing statements
13512 with BIT_AND_EXPR on the RHS by calling simplify_bitwise_and.
13514 2009-03-28 Jan Hubicka <jh@suse.cz>
13516 * dwarf2out.c (dwarf2out_begin_prologue): Use crtl->nothrow
13517 * tree-eh.c (stmt_could_throw_p): Remove check for WEAK decls.
13518 * function.h (rtl_data): Add nothrow flag.
13519 * except.c (set_nothrow_function_flags): Use crtl->nothrow;
13520 set DECL_NOTHROW for AVAILABLE functions.
13522 2009-03-28 Jakub Jelinek <jakub@redhat.com>
13524 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If macro
13525 following vector keyword has expansion starting with pixel or bool
13526 keyword, expand vector to __vector and pixel or bool to __pixel or
13530 * opts.c (warning_disallowed_functions, warn_disallowed_functions,
13531 warn_if_disallowed_function_p): Removed.
13532 (common_handle_option): Don't handle OPT_Wdisallowed_function_list_.
13533 * c-parser.c (c_parser_postfix_expression_after_primary): Don't call
13534 warning_if_disallowed_function_p.
13535 * flags.h (warn_if_disallowed_function_p,
13536 warn_disallowed_functions): Removed.
13537 * common.opt (Wdisallowed-function-list=): Removed.
13538 * doc/invoke.texi (-Wdisallowed-function-list=): Removed.
13540 2009-03-28 Richard Guenther <rguenther@suse.de>
13542 PR tree-optimization/38723
13543 * tree-ssa-pre.c (compute_avail): Add all default definitions to
13546 2009-03-28 Jan Hubicka <jh@suse.cz>
13548 * tree-ssa-structalias.c (ipa_pta_execute): Fix bogus node->analyzed
13549 test introduced by my previous patch.
13551 2009-03-28 Richard Guenther <rguenther@suse.de>
13553 * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not leave
13554 the PHIs value undefined.
13556 2009-03-28 Jan Hubicka <jh@suse.cz>
13558 * tree-pass.h (pass_fixup_cfg): New pass.
13559 * ipa-inline.c (inline_transform): Set
13560 always_inline_functions_inlined/after_inlining.
13561 * tree-optimize.c (execute_fixup_cfg): Do not set them here.
13562 (pass_fixup_cfg): New pass.
13563 * passes.c (init_optimization_passes): Add fixup_cfg.
13565 2009-03-28 Richard Guenther <rguenther@suse.de>
13567 PR tree-optimization/38458
13568 * tree-ssa-copy.c (copy_prop_visit_phi_node): For the first
13569 argument use the arguments copy-of value.
13571 2009-03-28 Richard Guenther <rguenther@suse.de>
13573 PR tree-optimization/38180
13574 * tree-ssa-ccp.c (get_default_value): Simplify.
13575 (likely_value): Likewise.
13576 (surely_varying_stmt_p): Properly handle VOP case.
13577 (ccp_initialize): Likewise.
13578 (ccp_fold): Handle propagating through *&.
13579 (fold_const_aggregate_ref): Also handle decls.
13581 2009-03-28 Jan Hubicka <jh@suse.cz>
13583 * cgraph.c (dump_cgraph_node): Add replace output flag by process.
13584 * cgraph.h (cgraph_node): Likewise.
13585 * cgraphunit.c (cgraph_process_new_functions): Set process flag.
13586 (cgraph_reset_node): Use process flag.
13587 (cgraph_mark_functions_to_output): Likewise.
13588 (cgraph_expand_function): Likewise.
13589 (cgraph_expand_all_functions): Likewise.
13590 (cgraph_output_in_order): Likewise.
13591 * dwarf2out.c (reference_to_unused): Likewise.
13592 * passes.c do_per_function_toporder): Likewise.
13594 2009-03-28 Jan Hubicka <jh@suse.cz>
13596 Bring from lto-branch:
13598 2008-09-03 Doug Kwan <dougkwan@google.com>
13600 * cgraphbuild.c (initialize_inline_failed): Use cgraph_inline_failed_t
13601 enums instead of reason strings.
13602 * cgraph.c (cgraph_create_edge): Same.
13603 (cgraph_inline_failed_string): New function.
13604 * cgraph.h (cgraph_inline_failed_t): New enum type.
13605 (cgraph_inline_failed_string): New prototype.
13606 (struct cgraph_edge): Change type of INLINED_FAILED from constant
13607 char pointer to cgraph_inline_failed_t.
13608 (cgraph_inline_p): Adjust prototype to use cgraph_inline_failed_t.
13609 (cgraph_default_inline_p): Ditto.
13610 * cgraphunit.c (cgraph_inline_p): Change type of parameter REASON
13611 to cgraph_inline_failed_t pointer.
13612 * cif-code.def: New file.
13613 * ipa-inline.c (cgraph_mark_inline_edge): Use an enum instead of a
13615 (cgraph_check_inline_limits): Change type of REASON to pointer to
13616 cgraph_inline_failed_t. Replace reason strings with enums.
13617 (cgraph_default_inline_p): Ditto.
13618 (cgraph_recursive_inlining_p): Ditto.
13619 (update_caller_keys): Change type of FAILED_REASON to
13620 cgraph_inline_failed_t.
13621 (cgraph_set_inline_failed): Change type of REASON to pointer to
13622 cgraph_inline_failed_t. Call cgraph_inline_failed_string to
13623 convert enums to strings for text output.
13624 (cgraph_decide_inlining_of_small_function): Change FAILED_REASON
13625 to be of type cgraph_inline_failed_t. Replace reason strings with
13626 enums. Call cgraph_inline_failed_string to covert enums
13627 to strings for text output.
13628 (cgraph_decide_inlining): Replace reason strings with enums.
13629 (cgraph_decide_inlining_incrementally): Change type of FAILED_REASON
13630 to cgraph_inline_failed_t type. Call cgraph_inline_failed_string
13632 * tree-inline.c (expand_call_inline): Change type of REASON
13633 to cgraph_inline_failed_t. Replace reason strings with enums.
13634 Call cgraph_inline_failed_string for text output.
13635 * Makefile.in (CGRAPH_H): Add cif-code.def to dependencies.
13638 2009-03-28 Jan Hubicka <jh@suse.cz>
13640 * cgraph.c (cgraph_node, cgraph_remove_node, dump_cgraph_node,
13641 cgraph_clone_node): Remove master clone handling.
13642 (cgraph_is_master_clone, cgraph_master_clone): Remove.
13643 * cgraph.h (master_clone): Remove.
13644 (cgraph_is_master_clone, cgraph_master_clone): Remove.
13645 * ipa-type-escape.c (type_escape_execute): Remove use of master clone.
13646 (tree-ssa-structalias.c (ipa_pta_execute): Likewise.
13648 2009-03-28 Jan Hubicka <jh@suse.cz>
13650 * cgraph.c (cgraph_function_body_availability): Functions declared
13651 inline are always safe to assume that it is not going to be replaced.
13653 2009-03-28 Richard Guenther <rguenther@suse.de>
13655 PR tree-optimization/38513
13656 * tree-ssa-pre.c (eliminate): Remove redundant stores.
13657 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
13658 EXC_PTR_EXPR and FILTER_EXPR.
13659 (get_ref_from_reference_ops): Likewise.
13661 2009-03-28 Richard Guenther <rguenther@suse.de>
13663 PR tree-optimization/38968
13664 * tree-vect-analyze.c (vect_compute_data_ref_alignment):
13665 Use FLOOR_MOD_EXPR to compute misalignment.
13667 2009-03-28 Richard Guenther <rguenther@suse.de>
13669 PR tree-optimization/37795
13670 * tree.h (combine_comparisons): Declare.
13671 * fold-const.c (combine_comparisons): Export.
13672 * tree-ssa-ifcombine.c (ifcombine_ifandif): Optimize two successive
13674 (ifcombine_iforif): Use combine_comparisons.
13676 2009-03-28 Jan Hubicka <jh@suse.cz>
13678 * tree-eh.c (inlinable_call_p): New function.
13679 (make_eh_edges): Use it.
13680 (verify_eh_edges): Use it.
13681 (stmt_can_throw_external, stmt_can_throw_internal): Use it.
13682 * except.c (reachable_next_level): Add inlinable_function argument
13683 (sjlj_find_directly_reachable_regions): Update.
13684 (add_reachable_handler): Do not set saw_any_handlers.
13685 (reachable_next_level): Handle MUST_NOT_THROW more curefully.
13686 (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
13687 Add new inlinable call parameter.
13688 (can_throw_internal, can_throw_external): Update.
13689 * except.h (can_throw_internal_1, can_throw_external_1,
13690 foreach_reachable_handler): Update declaration.
13692 2009-03-28 Joseph Myers <joseph@codesourcery.com>
13694 * config/arm/t-arm-coff, config/h8300/coff.h,
13695 config/i386/i386-aout.h, config/i386/i386-coff.h,
13696 config/libgloss.h, config/m68k/coff.h, config/m68k/m68k-aout.h,
13697 config/pdp11/2bsd.h, config/rs6000/aix41.h,
13698 config/rs6000/aix41.opt, config/rs6000/t-newas, config/sh/coff.h,
13699 fix-header.c, fixproto, gen-protos.c, protoize.c, scan-decls.c,
13700 scan-types.sh, scan.c, scan.h, sort-protos, sys-protos.h,
13701 sys-types.h: Remove.
13702 * Makefile.in: Remove protoize and fixproto support and references
13704 (SYSCALLS.c.X-warn, TARGET_GETGROUPS_T, STMP_FIXPROTO,
13705 PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, FIXPROTO_DEFINES):
13707 (ALL_HOST_OBJS): Remove $(PROTO_OBJS).
13708 (MOSTLYCLEANFILES): Remove protoize$(exeext) and
13709 unprotoize$(exeext).
13710 (rest.encap): Don't depend on $(STMP_FIXPROTO)
13711 (.PHONY): Don't depend on proto.
13712 (libgcc-support): Don't depend on $(STMP_FIXPROTO).
13713 (proto, PROTO_OBJS, protoize$(exeext), unprotoize$(exeext),
13714 protoize.o, unprotoize.o, SYSCALLS.c.X, test-protoize-simple,
13715 deduced.h, GEN_PROTOS_OBJS, build/gen-protos$(build_exeext),
13716 build/gen-protos.o, build/scan.o, xsys-protos.h,
13717 build/fix-header$(build_exeext), build/fix-header.o,
13718 build/scan-decls.o, fixhdr.ready, stmp-fixproto,
13719 stmp-install-fixproto): Remove.
13720 (mostlyclean): Don't remove xsys-protos.hT, SYSCALLS.c.X,
13721 SYSCALLS.c or fixproto files.
13722 (install-common): Don't install protoize.
13723 (install-headers-tar, install-headers-cpio, install-headers-cp):
13724 Don't depend on $(STMP_FIXPROTO).
13725 (install-mkheaders): Don't depend on $(STMP_FIXPROTO). Don't
13726 install fixproto files or write out fixproto settings.
13727 (uninstall): Don't uninstall protoize.
13728 * config.gcc (use_fixproto): Remove.
13729 (arm-*-coff*, armel-*-coff*, h8300-*-*, i[34567]86-*-aout*,
13730 i[34567]86-*-coff*, m68k-*-aout*, m68k-*-coff*, pdp11-*-bsd,
13731 rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*, sh-*-*): Remove.
13732 * config/m32r/t-linux (STMP_FIXPROTO): Remove.
13733 * config/m68k/m68k.c: Remove M68K_TARGET_COFF-conditional code.
13734 * config/mips/t-iris (FIXPROTO_DEFINES): Remove.
13735 * config/pa/t-pa-hpux (FIXPROTO_DEFINES): Remove.
13736 * config/pdp11/pdp11.c: Remove TWO_BSD-conditional code.
13737 * config/t-svr4 (FIXPROTO_DEFINES): Remove.
13738 * config/t-vxworks (STMP_FIXPROTO): Remove.
13739 * configure.ac (AC_TYPE_GETGROUPS, TARGET_GETGROUPS_T,
13740 STMP_FIXPROTO): Remove.
13741 * config.in, configure: Regenerate.
13742 * crtstuff.c (gid_t, uid_t): Don't undefine.
13743 * doc/install.texi: Change m68k-coff to m68k-elf in example.
13744 (arm-*-coff, arm-*-aout: Remove target entries.
13745 (*-ibm-aix*): Mention removal of support for AIX 4.2 and older.
13746 Remove mention of AIX 4.1.
13747 (m68k-*-*): Remove mention of m68k-*-aout and m68k-*-coff*.
13748 * doc/invoke.texi (Running Protoize): Remove.
13749 * doc/trouble.texi (Actual Bugs): Remove mention of fixproto.
13750 (Protoize Caveats): Remove.
13751 * tsystem.h: Update comments on headers assumed to exist.
13753 2009-03-27 Vladimir Makarov <vmakarov@redhat.com>
13755 * genautomata.c: Add a new year to the copyright. Add a new
13757 (struct insn_reserv_decl): Add comments for member bypass_list.
13758 (find_bypass): Remove.
13759 (insert_bypass): New.
13760 (process_decls): Use insert_bypass.
13761 (output_internal_insn_latency_func): Output all bypasses with the
13762 same input insn in one switch case.
13764 * rtl.def (define_bypass): Describe bypass choice.
13765 * doc/md.texi (define_bypass): Ditto.
13767 2009-03-27 Richard Guenther <rguenther@suse.de>
13769 * gimplify.c (mark_addressable): Export.
13770 * tree-flow.h (mark_addressable): Declare.
13771 * tree-ssa-loop-manip.c (create_iv): Mark the base addressable.
13772 * tree-ssa.c (verify_phi_args): Verify that address taken
13773 variables have TREE_ADDRESSABLE set.
13775 2009-03-27 Richard Guenther <rguenther@suse.de>
13777 * fold-const.c (build_fold_addr_expr_with_type_1): Rename back to ...
13778 (build_fold_addr_expr_with_type): ... this. Remove in_fold handling.
13779 Do not mark decls TREE_ADDRESSABLE.
13780 (build_fold_addr_expr): Adjust.
13781 (fold_addr_expr): Remove.
13782 (fold_unary): Use build_fold_addr_expr.
13783 (fold_comparison): Likewise.
13784 (split_address_to_core_and_offset): Likewise.
13785 * coverage.c (tree_coverage_counter_addr): Mark the array decl
13787 * gimplify.c (mark_addressable): Do not exclude RESULT_DECLs.
13788 (gimplify_modify_expr_to_memcpy): Mark source and destination
13790 * omp-low.c (create_omp_child_function): Mark the object decl
13792 (lower_rec_input_clauses): Mark the var we take the address of
13794 (lower_omp_taskreg): Mark the sender decl TREE_ADDRESSABLE.
13796 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
13798 PR middle-end/39315
13799 * cfgexpand.c (expand_one_stack_var_at): Change alignment
13800 limit to MAX_SUPPORTED_STACK_ALIGNMENT.
13802 2009-03-27 Richard Guenther <rguenther@suse.de>
13804 PR tree-optimization/39120
13805 * tree-ssa-structalias.c (handle_rhs_call): Fill out return
13807 (handle_lhs_call): Process return constraints. Add escape
13808 constraints if necessary.
13809 (handle_const_call): Fill out return constraints. Make nested
13810 case more precise. Avoid consttmp if possible.
13811 (handle_pure_call): Fill out return constraints. Avoid
13812 callused if possible.
13813 (find_func_aliases): Simplify call handling.
13815 2009-03-27 Richard Guenther <rguenther@suse.de>
13817 PR tree-optimization/39120
13818 * tree-ssa-structalias.c (do_sd_constraint): Do not use CALLUSED
13819 as a representative.
13820 (solve_graph): Do propagate CALLUSED.
13821 (handle_pure_call): Use a scalar constraint from CALLUSED for
13823 (find_what_p_points_to): CALLUSED shall not appear in poins-to
13826 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
13829 * c-common.c (handle_aligned_attribute): Properly check alignment
13830 overflow. Use (1U << i) instead of (1 << i).
13832 * emit-rtl.c (get_mem_align_offset): Use "unsigned int" for align.
13834 * expr.h (get_mem_align_offset): Updated.
13836 * tree.h (tree_decl_common): Change align to "unsigned int" and
13837 move it before pointer_alias_set.
13839 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
13840 Jakub Jelinek <jakub@redhat.com>
13843 * config/ia64/sync.md (cmpxchg_rel_<mode>): Replace input
13844 gr_register_operand with gr_reg_or_0_operand.
13845 (cmpxchg_rel_di): Likewise.
13846 (sync_lock_test_and_set<mode>): Likewise.
13848 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
13850 * jump.c (rtx_renumbered_equal_p): Use subreg_get_info.
13851 (true_regnum): Likewise.
13853 * rtlanal.c (subreg_info): Moved to ...
13854 * rtl.h (subreg_info): Here. New.
13855 (subreg_get_info): New.
13857 * rtlanal.c (subreg_get_info): Make it extern.
13859 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
13862 * config/i386/i386.c (ix86_abi): New.
13863 (override_options): Handle -mabi=.
13864 (ix86_function_arg_regno_p): Replace DEFAULT_ABI with ix86_abi.
13865 (ix86_call_abi_override): Likewise.
13866 (init_cumulative_args): Likewise.
13867 (function_arg_advance): Likewise.
13868 (function_arg_64): Likewise.
13869 (function_arg): Likewise.
13870 (ix86_pass_by_reference): Likewise.
13871 (ix86_function_value_regno_p): Likewise.
13872 (ix86_build_builtin_va_list_abi): Likewise.
13873 (setup_incoming_varargs_64): Likewise.
13874 (is_va_list_char_pointer): Likewise.
13875 (ix86_init_machine_status): Likewise.
13876 (ix86_reg_parm_stack_space): Use enum calling_abi on call_abi.
13877 (ix86_function_type_abi): Return enum calling_abi. Rewrite
13878 for 64bit. Replace DEFAULT_ABI with ix86_abi.
13879 (ix86_function_abi): Make it static and return enum calling_abi.
13880 (ix86_cfun_abi): Return enum calling_abi. Replace DEFAULT_ABI
13882 (ix86_fn_abi_va_list): Updated.
13884 * config/i386/i386.h (ix86_abi): New.
13885 (STACK_BOUNDARY): Replace DEFAULT_ABI with ix86_abi.
13886 (CONDITIONAL_REGISTER_USAGE): Likewise.
13887 (CUMULATIVE_ARGS): Change call_abi type to enum calling_abi.
13888 (machine_function): Likewise.
13890 * config/i386/i386.md (untyped_call): Replace DEFAULT_ABI
13892 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Likewise.
13893 (STACK_BOUNDARY): Likewise.
13894 * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Likewise.
13896 * config/i386/i386.opt (mabi=): New.
13898 * config/i386/i386-protos.h (ix86_cfun_abi): Changed to
13899 return enum calling_abi.
13900 (ix86_function_type_abi): Likewise.
13901 (ix86_function_abi): Removed.
13903 * doc/invoke.texi: Document -mabi= option for x86.
13905 2009-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13907 * builtins.c (real_dconstp): Delete.
13908 (fold_builtin_logarithm): Remove inaccurate log(e) special case.
13910 2009-03-27 Dodji Seketeli <dodji@redhat.com>
13911 Jakub Jelinek <jakub@redhat.com>
13914 * dwarf2out.c (dwarf_attr_name): Handle DW_AT_explicit attribute.
13915 (gen_subprogram_die): When a function is explicit, generate the
13916 DW_AT_explicit attribute.
13917 * langhooks.h (struct lang_hooks_for_decls): Add
13918 function_decl_explicit_p langhook.
13919 * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Define.
13920 (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P.
13922 2009-03-27 Jakub Jelinek <jakub@redhat.com>
13924 * builtins.c (fold_builtin_memory_op): Optimize memmove
13925 into memcpy if we can prove source and destination don't overlap.
13927 * tree-inline.c: Include gt-tree-inline.h.
13928 (clone_fn_id_num): New variable.
13929 (clone_function_name): New function.
13930 (tree_function_versioning): Use it.
13931 * Makefile.in (GTFILES): Add tree-inline.c.
13933 2009-03-27 Mark Mitchell <mark@codesourcery.com>
13935 * BASE-VER: Change to 4.5.0.
13937 2009-03-27 Xinliang David Li <davidxl@google.com>
13939 PR tree-optimization/39557
13940 * tree-ssa.c (warn_uninitialized_vars): free postdom info.
13942 2009-03-27 Xinliang David Li <davidxl@google.com>
13944 PR tree-optimization/39548
13945 * tree-ssa-copy.c (copy_prop_visit_phi_node): Add copy
13948 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
13950 * c-common.c (pointer_int_sum): Use %wd on return from
13953 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
13955 * c-common.c (pointer_int_sum): Use HOST_WIDE_INT_PRINT_DEC
13956 on return from tree_low_cst.
13958 2009-03-27 Andrew Pinski <andrew_pinski@playstation.sony.com>
13961 * ginclude/stdarg.h (va_copy): Define also for
13962 __GXX_EXPERIMENTAL_CXX0X__.
13964 2009-03-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
13967 * builtins.h (c_strlen): Do not warn here.
13968 * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
13969 * c-common.c (pointer_int_sum): Take an explicit location.
13970 Warn about offsets out of bounds.
13971 * c-common.h (pointer_int_sum): Adjust declaration.
13973 2009-03-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13975 * doc/invoke.texi (i386 and x86-64 Windows Options): Fix texinfo
13978 2009-03-26 Jakub Jelinek <jakub@redhat.com>
13981 * opts.c (warn_if_disallowed_function_p): Don't assume
13982 get_callee_fndecl must return non-NULL.
13984 2009-03-26 Vladimir Makarov <vmakarov@redhat.com>
13986 PR rtl-optimization/39522
13987 * reload1.c (reload_as_needed): Invalidate reg_last_reload_reg too
13988 when reg_reloaded_valid is set.
13990 2009-03-26 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13992 * config/spu/divv2df3.c: New file.
13993 * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add it.
13994 (DPBIT_FUNCS): Filter out _div_df.
13996 2009-03-26 Bernd Schmidt <bernd.schmidt@analog.com>
13998 * config/bfin/bfin.c (bfin_optimize_loop): If the LSETUP goes before
13999 a jump insn, count that jump in the distance to the loop start.
14001 2009-03-25 Kaz Kojima <kkojima@gcc.gnu.org>
14004 * config/sh/sh.c (calc_live_regs): Fix condition for global
14005 registers except PIC_OFFSET_TABLE_REGNUM.
14007 2009-03-25 Kai Tietz <kai.tietz@onevision.com>
14010 * doc/invoke.texi (-mconsole): New.
14012 (-mno-cygwin): New.
14014 (-mnop-fun-dllimport): New.
14018 (sub section "i386 and x86-64 Windows Options"): New.
14020 2009-03-25 Ralf Corsépius <ralf.corsepius@rtems.org>
14022 * config/arm/rtems-elf.h: Remove LINK_GCC_C_SEQUENCE_SPEC.
14023 * config/rs6000/t-rtems: Remove MULTILIB_EXTRA_OPTS.
14025 2009-03-25 Richard Guenther <rguenther@suse.de>
14027 PR middle-end/39497
14028 * Makefile.in (dfp.o-warn): Use -fno-strict-aliasing instead
14031 2009-03-25 Andrey Belevantsev <abel@ispras.ru>
14033 * config/ia64/ia64.c (ia64_set_sched_flags): Zero spec_info->mask when
14034 neither of haifa/selective schedulers are working.
14036 2009-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14038 * doc/invoke.texi (Debugging Options): Fix description of
14039 -fno-merge-debug-strings.
14041 2009-03-24 Hans-Peter Nilsson <hp@axis.com>
14043 * config/cris/libgcc.ver: New version-script.
14044 * config/cris/t-linux (SHLIB_MAPFILES): Use it.
14046 * configure.ac <GAS features, nop mnemonic>: Add pattern
14047 crisv32-*-* for "nop".
14048 <GAS features, Thread-local storage>: Add item for CRIS and CRIS v32.
14049 * configure: Regenerate.
14051 2009-03-24 Ira Rosen <irar@il.ibm.com>
14053 PR tree-optimization/39529
14054 * tree-vect-transform.c (vect_create_data_ref_ptr): Call
14055 mark_sym_for_renaming for the tag copied to the new vector
14058 2009-03-24 Arthur Loiret <aloiret@debian.org>
14060 * config.host (alpha*-*-linux*): Use driver-alpha.o and alpha/x-alpha.
14061 * config/alpha/linux.h (host_detect_local_cpu): Declare, add to
14062 EXTRA_SPEC_FUNCTIONS.
14063 (MCPU_MTUNE_NATIVE_SPECS, DRIVER_SELF_SPECS): New macros.
14064 * config/alpha/driver-alpha.c, config/alpha/x-alpha: New.
14065 * doc/invoke.texi (DEC Alpha Options): Document 'native' value for
14066 -march and -mtune options.
14068 2009-03-24 Ralf Corsépius <ralf.corsepius@rtems.org>
14070 * config/m68k/t-rtems: Add m5329 multilib.
14072 2009-03-24 Dodji Seketeli <dodji@redhat.com>
14073 Jakub Jelinek <jakub@redhat.com>
14076 * dwarf2out.c (gen_variable_die): Avoid adding duplicate declaration
14079 2009-03-23 Jakub Jelinek <jakub@redhat.com>
14082 * c-parser.c (c_parser_omp_for_loop): Call c_parser_binary_expression
14083 instead of c_parser_expression_conv, if original_code isn't one of the
14084 4 allowed comparison codes, fail.
14086 2009-03-23 Richard Guenther <rguenther@suse.de>
14088 * cgraph.h (struct cgraph_node): Reorder fields for 64-bit hosts.
14089 * tree.h (struct tree_type): Likewise.
14090 * reload.h (struct insn_chain): Likewise.
14091 * dwarf2out.c (struct dw_loc_descr_struct): Likewise.
14092 * function.h (struct function): Likewise.
14093 * tree-ssa-structalias.c (struct equiv_class_label): Likewise.
14095 2009-03-23 Jakub Jelinek <jakub@redhat.com>
14097 PR tree-optimization/39516
14098 * lambda-code.c (perfect_nestify): Fix type of the uboundvar variable.
14100 2009-03-23 Bingfeng Mei <bmei@broadcom.com>
14102 * config.gcc (need_64bit_hwint): Make clear that need_64bit_hwint
14103 should be set true if BITS_PER_WORD of target is bigger than 32
14105 2009-03-22 Hans-Peter Nilsson <hp@axis.com>
14107 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC):
14108 Translate -B-options to -rpath-link. Correct existing
14109 rpath-link and conditionalize on !nostdlib.
14111 2009-03-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14113 * doc/extend.texi (Function Attributes, Variable Attributes):
14115 * doc/invoke.texi (Debugging Options, Optimize Options)
14116 (i386 and x86-64 Options, MCore Options): Likewise.
14118 2009-03-20 Jakub Jelinek <jakub@redhat.com>
14121 * dwarf2out.c (gen_namespace_die): Add context_die argument and use
14122 it for block local namespace aliases.
14123 (gen_decl_die): Pass context_die to gen_namespace_die.
14125 2009-03-19 Jakub Jelinek <jakub@redhat.com>
14128 * c-omp.c (c_finish_omp_for): Allow NE_EXPR with TREE_TYPE (decl)'s
14129 minimum or maximum value.
14131 2009-03-19 Alexandre Oliva <aoliva@redhat.com>
14133 * reginfo.c (globalize_reg): Recompute derived reg sets.
14135 2009-03-19 Ozkan Sezer <sezeroz@gmail.com>
14138 * libgcc2.c (mprotect): Do not use signed arguments for
14139 VirtualProtect, use DWORD arguments. Also fix the 'may
14140 be used uninitialized' warning for the np variable.
14142 2009-03-19 Jakub Jelinek <jakub@redhat.com>
14145 * config/i386/i386.c (ix86_function_regparm): Don't optimize local
14146 functions using regparm calling conventions when not optimizing.
14147 (ix86_function_sseregparm): Similarly for sseregparm calling
14150 2009-03-19 Li Feng <nemokingdom@gmail.com>
14152 PR middle-end/39500
14153 * tree-data-ref.c (analyze_subscript_affine_affine): There is no
14154 dependence if the first conflict is after niter iterations.
14156 2009-03-19 Hans-Peter Nilsson <hp@axis.com>
14158 PR middle-end/38609
14159 * config/cris/cris.h (FRAME_POINTER_REQUIRED): Force for all
14160 functions with dynamic stack-pointer adjustments.
14162 2009-03-19 Ben Elliston <bje@au.ibm.com>
14164 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix -msdata-data
14165 option; change to -msdata=data.
14167 2009-03-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14169 * c.opt: Unify help texts for -Wdeprecated, -Wsystem-headers,
14172 2009-03-18 Eric Botcazou <ebotcazou@adacore.com>
14175 * config/sparc/sparc.md (do_builtin_setjmp_setup): Prettify asm output.
14177 2009-03-18 Sandra Loosemore <sandra@codesourcery.com>
14179 * doc/invoke.texi (Code Gen Options): Expand discussion of
14182 2009-03-18 Jakub Jelinek <jakub@redhat.com>
14184 * dse.c (struct group_info): Reorder fields for 64-bit hosts.
14185 * matrix-reorg.c (struct matrix_info): Likewise.
14186 * tree-ssa-loop-ivopts.c (struct ivopts_data): Likewise.
14187 * rtl.h (struct mem_attrs): Likewise.
14188 * df.h (struct df): Likewise.
14189 * tree-data-ref.h (struct data_dependence_relation): Likewise.
14190 * ira-int.h (struct ira_allocno): Likewise.
14191 * df-scan.c (struct df_collection_rec): Likewise.
14192 * ira.c (struct equivalence): Likewise.
14193 * function.c (struct temp_slot): Likewise.
14194 * cfgloop.h (struct loop): Likewise.
14197 * function.c (use_register_for_decl): When not optimizing, disregard
14198 register keyword for variables with types containing methods.
14200 2009-03-18 Sebastian Pop <sebastian.pop@amd.com>
14202 PR middle-end/39447
14203 * graphite.c (exclude_component_ref): Renamed contains_component_ref_p.
14204 (is_simple_operand): Call contains_component_ref_p before calling data
14205 reference analysis that would fail on COMPONENT_REFs.
14207 * tree-vrp.c (search_for_addr_array): Fix formatting.
14209 2009-03-18 Richard Guenther <rguenther@suse.de>
14211 * tree-vect-transform.c (vect_loop_versioning): Fold the
14212 generated comparisons.
14213 * tree-vectorizer.c (set_prologue_iterations): Likewise.
14214 (slpeel_tree_peel_loop_to_edge): Likewise.
14216 2009-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14218 PR middle-end/37805
14219 * opts.c (print_specific_help): In addition to `undocumented',
14220 accept `separate' and `joined' flags if passed alone. Describe
14221 output by the first matched one of those.
14222 (common_handle_option): Skip over empty strings.
14223 * gcc.c (display_help): Fix help string for `--help='.
14224 * doc/invoke.texi (Option Summary, Overall Options): With
14225 `--help=', classes and qualifiers can both be repeated, but
14226 only the latter can be negated. One should not pass only
14227 negated qualifiers. Fix markup and examples.
14230 2008-10-14 Jakub Jelinek <jakub@redhat.com>
14231 PR middle-end/37805
14232 * opts.c (common_handle_option): Don't ICE on -fhelp=joined
14233 and -fhelp=separate.
14235 2009-03-17 Jing Yu <jingyu@google.com>
14237 PR middle-end/39378
14238 * function.h (struct rtl_data): Move is_thunk from here...
14239 (struct function): ...to here.
14240 * cp/method.c (use_thunk): Change is_thunk from crtl to cfun.
14241 * varasm.c (assemble_start_function): Change is_thunk from crtl to
14243 * config/alpha/alpha.c (alpha_sa_mask): Change is_thunk from crtl to
14245 (alpha_does_function_need_gp, alpha_start_function): Likewise.
14246 (alpha_output_function_end_prologue): Likewise.
14247 (alpha_end_function, alpha_output_mi_thunk_osf): Likewise.
14248 * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likewise.
14249 (rs6000_output_function_epilogue): Likewise.
14250 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Likewise.
14252 2009-03-17 Uros Bizjak <ubizjak@gmail.com>
14255 * config/i386/i386.md (*truncdfsf_mixed): Avoid combining registers
14256 from different units in a single alternative.
14257 (*truncdfsf_i387): Ditto.
14258 (*truncxfsf2_mixed): Ditto.
14259 (*truncxfdf2_mixed): Ditto.
14261 2009-03-17 Jakub Jelinek <jakub@redhat.com>
14263 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Allow
14264 non-NAMESPACE_DECL IMPORTED_DECL_ASSOCIATED_DECL.
14267 * tree-ssa-live.c (remove_unused_locals): Don't remove local
14268 unused non-artificial variables when not optimizing.
14271 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Emit
14272 DW_TAG_imported_module even if decl is IMPORTED_DECL with
14273 NAMESPACE_DECL in its DECL_INITIAL.
14275 PR middle-end/39443
14276 * optabs.c (set_user_assembler_libfunc): New function.
14277 * expr.h (set_user_assembler_libfunc): New prototype.
14278 * c-common.c: Include libfuncs.h.
14279 (set_builtin_user_assembler_name): Call set_user_assembler_libfunc
14280 for memcmp, memset, memcpy, memmove and abort.
14281 * Makefile.in (c-common.o): Depend on libfuncs.h.
14284 * dwarf2out.c (gen_inlined_enumeration_type_die,
14285 gen_inlined_structure_type_die, gen_inlined_union_type_die,
14286 gen_tagged_type_instantiation_die): Removed.
14287 (gen_decl_die): For TYPE_DECL_IS_STUB with non-NULL decl_origin
14290 2009-03-17 Janis Johnson <janis187@us.ibm.com>
14293 * Makefile.in (site.exp): Rename TEST_GCC_EXEC_PREFIX and comment
14295 (check-%): Don't set GCC_EXEC_PREFIX when invoking runtest.
14296 (check-parallel-%): Ditto.
14297 (check-consistency): Ditto.
14299 2009-03-17 Kai Tietz <kai.tietz@onevision.com>
14301 * ipa-struct-reorg.c (create_general_new_stmt): Initialize
14302 local variable rhs by NULL_TREE.
14304 2009-03-17 H.J. Lu <hongjiu.lu@intel.com>
14307 * doc/extend.texi: Correct register behavior for regparm on Intel 386.
14309 2009-03-17 H.J. Lu <hongjiu.lu@intel.com>
14312 * config/i386/i386.c (ix86_function_regparm): Rewrite for 64bit.
14314 2009-03-17 H.J. Lu <hongjiu.lu@intel.com>
14317 * config/i386/i386.c (ix86_expand_call): Check extra clobbers
14318 for ms->sysv ABI calls only in 64bit mode.
14320 * config/i386/i386.md (untyped_call): Support 32bit.
14322 2009-03-16 H.J. Lu <hongjiu.lu@intel.com>
14324 * doc/extend.texi: Replace x86_65 with x86_64.
14326 2009-03-16 Jakub Jelinek <jakub@redhat.com>
14328 PR tree-optimization/39455
14329 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Fix types
14330 mismatches for POINTER_TYPE_P (type).
14331 (number_of_iterations_le): Likewise.
14333 2009-03-16 Hariharan Sandanagobalane <hariharan@picochip.com>
14335 * config/picochip/picochip.c: Removed profiling support.
14336 * config/picochip/picochip.md: Removed profiling instruction.
14337 * config/picochip/picochip.h: Removed profiling builtin.
14339 2009-03-16 Joseph Myers <joseph@codesourcery.com>
14341 * doc/install.texi (--with-host-libstdcxx): Document.
14343 2009-03-14 Anatoly Sokolov <aesok@post.ru>
14346 * config/avr/avr.c (avr_handle_fndecl_attribute): Move code for
14347 generate a warning if the function name does not begin with
14348 "__vector" and the function has either the 'signal' or 'interrupt'
14349 attribute, from here to ...
14350 (avr_declare_function_name): ...here. New function.
14351 * config/avr/avr.h (ASM_DECLARE_FUNCTION_NAME): Redefine.
14352 * config/avr/avr-protos.h (avr_declare_function_name): Declare.
14354 2009-03-14 Jakub Jelinek <jakub@redhat.com>
14357 * cse.c (fold_rtx): Don't modify original const_arg1 when
14358 canonicalizing SHIFT_COUNT_TRUNCATED shift count, do it on a
14359 separate variable instead.
14360 * rtlanal.c (nonzero_bits1) <case ASHIFTRT>: Don't assume anything
14361 from out of range shift counts.
14362 (num_sign_bit_copies1) <case ASHIFTRT, case ASHIFT>: Similarly.
14364 2009-03-13 Catherine Moore <clm@codesourcery.com>
14366 * config/i386/x-mingw32 (host-mingw32.o): Replace
14367 diagnostic.h with $(DIAGNOSTIC_H).
14369 2009-03-12 Jakub Jelinek <jakub@redhat.com>
14372 * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): New
14374 * config/i386/sync.md (sync_compare_and_swap<mode>,
14375 sync_compare_and_swap_cc<mode>): For DImode with -m32 -fpic check
14376 if operands[1] is cmpxchg8b_pic_memory_operand, if not force address
14378 (sync_double_compare_and_swapdi_pic,
14379 sync_double_compare_and_swap_ccdi_pic): Require operand 1 to be
14380 cmpxchg8b_pic_memory_operand instead of just memory_operand.
14382 2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
14385 * config/i386/i386.c (ix86_expand_push): Don't set memory alignment.
14387 2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
14390 * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
14391 (avx_addsubv4df3): Likewise.
14392 (*avx_addsubv4sf3): Likewise.
14393 (sse3_addsubv4sf3): Likewise.
14395 2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
14398 * config/i386/i386.md: Compare REGNO on the new peephole2 patterns.
14400 2009-03-12 Vladimir Makarov <vmakarov@redhat.com>
14403 * ira-int.h (struct allocno): Fix comment for calls_crossed_num.
14404 * ira-conflicts.c (ira_build_conflicts): Prohibit call used
14405 registers for allocnos created from user-defined variables.
14407 2009-03-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14410 * config/spu/spu.c (spu_expand_mov): Handle invalid subregs
14411 of non-integer mode as well.
14413 2009-03-11 Adam Nemet <anemet@caviumnetworks.com>
14415 * gimplify.c (gimplify_call_expr): Don't set CALL_CANNOT_INLINE_P
14416 for functions for which the parameter types are unknown.
14418 2009-03-11 Jakub Jelinek <jakub@redhat.com>
14421 * cfgexpand.c (get_decl_align_unit): Use LOCAL_DECL_ALIGNMENT macro.
14422 * defaults.h (LOCAL_DECL_ALIGNMENT): Define if not yet defined.
14423 * config/i386/i386.h (LOCAL_DECL_ALIGNMENT): Define.
14424 * config/i386/i386.c (ix86_local_alignment): For
14425 -m32 -mpreferred-stack-boundary=2 use 32-bit alignment for
14426 long long variables on the stack to avoid dynamic realignment.
14427 Allow the first argument to be a decl rather than type.
14428 * doc/tm.texi (LOCAL_DECL_ALIGNMENT): Document.
14430 2009-03-11 Nick Clifton <nickc@redhat.com>
14433 * config/mcore/mcore.opt: Remove deprecated m4align and m8align
14435 Add description to mno-lsim option.
14436 * config/mcore/mcore.h: Remove comment about deprecated m4align
14438 (TARGET_DEFAULT): Remove deprecated MASK_M8ALIGN.
14439 * doc/invoke.texi: Add description of mno-lsim and
14440 mstack-increment options.
14442 * config/fr30/fr30.opt: Document the -mno-lsim option.
14443 * doc/invoke.texi: Add descriptions of the FR30's -msmall-model
14444 and -mno-lsim options.
14446 2009-03-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14448 * fold-const.c (fold_comparison): Only call fold_inf_compare
14449 if the mode supports infinities.
14451 2009-03-11 Jason Merrill <jason@redhat.com>
14454 * tree-nrv.c (tree_nrv): Don't do this optimization if the front
14455 end already did. Notice GIMPLE_CALL modifications of the result.
14456 Don't copy debug information from an ignored decl or a decl from
14459 2009-03-10 Richard Guenther <rguenther@suse.de>
14460 Nathan Froyd <froydnj@codesourcery.com>
14462 PR middle-end/37850
14463 * libgcc2.c (__mulMODE3): Use explicit assignments to form the result.
14464 (__divMODE3): Likewise.
14466 2009-03-09 Jakub Jelinek <jakub@redhat.com>
14468 PR tree-optimization/39394
14469 * gimplify.c (gimplify_type_sizes): Gimplify DECL_SIZE and
14470 DECL_SIZE_UNIT of variable length FIELD_DECLs.
14472 2009-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14474 * recog.c (verfiy_changes): Disallow renaming of hard regs in
14475 inline asms for register asm ("") declarations.
14477 2009-03-09 Eric Botcazou <ebotcazou@adacore.com>
14479 * fold-const.c (fold_unary): Fix comment.
14481 2009-03-07 Jan Hubicka <jh@suse.cz>
14484 * tree-inline.c (setup_one_parameter): Do replacement of const
14485 argument by constant in SSA form.
14487 2009-03-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14489 PR middle-end/38028
14490 * function.c (assign_parm_setup_stack): Use STACK_SLOT_ALIGNMENT to
14491 determine alignment passed to assign_stack_local.
14492 (assign_parms_unsplit_complex): Likewise.
14493 * except.c (sjlj_build_landing_pads): Likewise.
14495 2009-03-06 Jakub Jelinek <jakub@redhat.com>
14497 PR middle-end/39360
14498 * tree-flow.h (add_referenced_var): Return bool instead of void.
14499 * tree-dfa.c (add_referenced_var): Return result of
14500 referenced_var_check_and_insert call.
14501 * tree-inline.c (expand_call_inline): Call add_referenced_var instead
14502 of referenced_var_check_and_insert.
14505 * dwarf2out.c (add_abstract_origin_attribute): Return origin_die.
14506 (gen_variable_die): Emit DW_AT_location on abstract static variable's
14507 DIE, don't emit it if abstract origin already has it.
14508 * tree-cfg.c (remove_useless_stmts_bind): GIMPLE_BINDs with any
14509 BLOCK_NONLOCALIZED_VARS in its gimple_bind_block aren't useless.
14511 2009-03-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
14513 * genpreds.c (needs_variable): Fix parentheses at variable name
14515 (write_tm_constrs_h): Indent generated code.
14517 2009-03-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14519 * doc/extend.texi (Function Attributes): Add documentation
14520 for isr attributes.
14522 2009-03-06 Jakub Jelinek <jakub@redhat.com>
14525 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): For IMPORTED_DECL
14526 take locus from its DECL_SOURCE_LOCATION instead of input_location.
14528 2009-03-05 Bernd Schmidt <bernd.schmidt@analog.com>
14530 * config/bfin/bfin.c (bfin_discover_loop): When retrying fails, mark
14533 2009-03-05 Jakub Jelinek <jakub@redhat.com>
14536 * tree-cfg.c (remove_useless_stmts_bind): Don't remove GIMPLE_BINDs
14537 with blocks containing IMPORTED_DECLs in BLOCK_VARS.
14539 2009-03-05 Uros Bizjak <ubizjak@gmail.com>
14541 * config/i386/i386.md (R8_REG, R9_REG): New constants.
14542 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Use named
14543 constants instead of magic numbers.
14544 (HARD_REGNO_CALLER_SAVE_MODE): Ditto.
14546 * config/i386/i386.c (x86_64_int_parameter_registers): Ditto.
14547 (x86_64_ms_abi_int_parameter_registers): Ditto.
14548 (x86_64_int_return_registers): Ditto.
14549 (ix86_maybe_switch_abi): Ditto.
14550 (ix86_expand_call): Ditto for clobbered_registers array.
14551 (ix86_hard_regno_mode_ok): Ditto.
14552 (x86_extended_QIreg_mentioned_p): Ditto.
14554 2009-03-05 J"orn Rennecke <joern.rennecke@arc.com>
14556 PR tree-optimization/39349
14557 * cse.c (cse_insn): Fix loop to stop at VOIDmode.
14559 * combine.c (gen_lowpart_for_combine): Use omode when generating
14562 2009-03-04 J"orn Rennecke <joern.rennecke@arc.com>
14564 PR rtl-optimization/39235
14565 * loop-iv.c (get_simple_loop_desc): Use XCNEW.
14567 2009-03-04 Zdenek Dvorak <ook@ucw.cz>
14569 * graphite.c (nb_reductions_in_loop): Update simple_iv arguments.
14571 2009-03-04 Richard Guenther <rguenther@suse.de>
14573 PR tree-optimization/39362
14574 * tree-ssa-sccvn.c (visit_use): Stores and copies from SSA_NAMEs
14575 that occur in abnormal PHIs should be varying.
14577 2009-03-04 Zdenek Dvorak <ook@ucw.cz>
14579 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop):
14581 (simple_iv): Take loop as an argument instead of statement.
14582 * tree-scalar-evolution.h (simple_iv): Declaration changed.
14583 * tree-ssa-loop-niter.c (number_of_iterations_exit): Update calls
14585 * tree-ssa-loop-ivopts.c (determine_biv_step, find_givs_in_stmt_scev):
14587 * tree-parloops.c (loop_parallel_p, canonicalize_loop_ivs): Ditto.
14588 * matrix-reorg.c (analyze_transpose): Ditto.
14589 * tree-data-ref.c (dr_analyze_innermost): Ditto.
14590 * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
14591 * tree-predcom.c (ref_at_iteration): Ditto.
14592 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Ditto.
14594 2009-03-04 Richard Guenther <rguenther@suse.de>
14596 PR tree-optimization/39358
14597 * tree-ssa-structalias.c (do_sd_constraint): Fix check for
14598 escaped_id and callused_id.
14599 (solve_graph): Likewise.
14601 2009-03-04 Richard Guenther <rguenther@suse.de>
14603 PR tree-optimization/39339
14604 * tree-sra.c (try_instantiate_multiple_fields): Make it
14605 no longer ICE on the above.
14607 2009-03-03 Joseph Myers <joseph@codesourcery.com>
14609 * emit-rtl.c (adjust_address_1): Reduce offset to a signed value
14610 that fits within Pmode.
14612 2009-03-03 Steve Ellcey <sje@cup.hp.com>
14614 PR middle-end/10109
14615 * tm.texi (LIBCALL_VALUE): Update description.
14617 2009-03-03 Steve Ellcey <sje@cup.hp.com>
14619 PR middle-end/34443
14620 * doc/extend.texi (section): Update description.
14622 2009-03-03 H.J. Lu <hongjiu.lu@intel.com>
14624 PR middle-end/39345
14625 * tree-inline.c (remapped_type): New.
14626 (can_be_nonlocal): Call remapped_type instead of remap_type.
14628 2009-03-03 Jakub Jelinek <jakub@redhat.com>
14631 * gimplify.c (goa_stabilize_expr): Handle tcc_comparison,
14632 TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR.
14634 2009-03-03 Richard Guenther <rguenther@suse.de>
14636 PR middle-end/39272
14637 * tree.c (tree_nonartificial_location): New function.
14638 * tree.h (tree_nonartificial_location): Declare.
14639 * builtins.c (expand_builtin_memory_chk): Provide location
14640 of the call location for artificial function pieces.
14641 (maybe_emit_chk_warning): Likewise.
14642 (maybe_emit_sprintf_chk_warning): Likewise.
14643 (maybe_emit_free_warning): Likewise.
14644 * expr.c (expand_expr_real_1): Likewise.
14646 2009-03-03 Jakub Jelinek <jakub@redhat.com>
14648 PR tree-optimization/39343
14649 * tree-ssa-ccp.c (maybe_fold_offset_to_address): Don't check if
14650 COMPONENT_REF t has ARRAY_TYPE.
14652 2009-03-02 Sebastian Pop <sebastian.pop@amd.com>
14654 PR middle-end/39335
14655 * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
14656 when the type precision of the induction variable should be
14657 larger than the type precision of nit.
14658 (gen_parallel_loop): Update use of canonicalize_loop_ivs.
14659 * graphite.c (graphite_loop_normal_form): Same.
14660 * tree-flow.h (canonicalize_loop_ivs): Update declaration.
14662 2009-03-02 Uros Bizjak <ubizjak@gmail.com>
14664 * config/i386/i386.md (ST?_REG, MM?_REG): New constants.
14665 (*call_1_rex64_ms_sysv): Use named constants instead of magic
14666 numbers to describe clobbered registers.
14667 (*call_value_0_rex64_ms_sysv): Ditto.
14668 * config/i386/mmx.md (mmx_emms): Ditto.
14669 (mmx_femms): Ditto.
14671 2009-03-02 Richard Sandiford <rdsandiford@googlemail.com>
14673 * config/mips/mips.c (mips_mdebug_abi_name): Fix the handling
14676 2009-03-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14678 * config/spu/spu.c (TARGET_SECTION_TYPE_FLAGS): Define.
14679 (spu_section_type_flags): New function.
14681 2009-03-02 Uros Bizjak <ubizjak@gmail.com>
14683 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not copy
14684 reg_class_contents of FLOAT_REGS into a temporary.
14686 2009-03-02 Richard Guenther <rguenther@suse.de>
14687 Ira Rosen <irar@il.ibm.com>
14689 PR tree-optimization/39318
14690 * tree-vect-transform.c (vectorizable_call): Transfer the EH region
14691 information to the vectorized statement.
14693 2009-03-01 Uros Bizjak <ubizjak@gmail.com>
14695 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not shadow "i"
14696 variable. Use defined names instead of magic constants for REX SSE
14699 2009-03-01 Richard Guenther <rguenther@suse.de>
14701 PR tree-optimization/39331
14702 * omp-low.c (lower_send_shared_vars): Do not receive new
14703 values for the reference of DECL_BY_REFERENCE parms or results.
14705 2009-03-01 Jan Hubicka <jh@suse.cz>
14708 * tree.h (BLOCK_NONLOCALIZED_VARS, BLOCK_NUM_NONLOCALIZED_VARS,
14709 BLOCK_NONLOCALIZED_VAR): New macros.
14710 (tree_block): Add nonlocalized_vars.
14711 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die,
14712 gen_decl_die): Add origin argument. Allow generation of die with
14713 origin at hand only.
14714 (gen_member_die, gen_type_die_with_usage, force_decl_die,
14715 declare_in_namespace, gen_namescpace_die, dwarf2out_decl): Update use
14717 (gen_block_die): Fix checking for unused blocks.
14718 (process_scope_var): Break out from .... ; work with origins only.
14719 (decls_for_scope) ... here; process nonlocalized list.
14720 (dwarf2out_ignore_block): Look for nonlocalized vars.
14721 * tree-ssa-live.c (remove_unused_scope_block_p): Look for nonlocalized
14723 (dump_scope_block): Dump them.
14724 * tree-inline.c (remap_decls): Handle nonlocalized vars.
14725 (remap_block): Likewise.
14726 (can_be_nonlocal): New predicate.
14727 (copy_bind_expr, copy_gimple_bind): Update use of remap_block.
14729 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14731 * configure: Regenerate.
14733 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14735 * optc-gen.awk: No need to duplicate option flags twice.
14736 Reuse help texts for duplicate options which do not have any.
14738 * gcc.c (display_help): Document --version.
14740 * gcc.c (main): If print_help_list and verbose_flag, ensure
14741 driver output comes before subprocess output.
14743 * optc-gen.awk: Assign all remaining fields to help string,
14744 space-separated, for multi-line help in *.opt.
14746 * doc/invoke.texi (Warning Options): -Wsync-nand is C/C++ only.
14747 -Wno-pedantic-ms-format is for MinGW targets only.
14749 * doc/options.texi (Option file format): Fix bad indentation,
14750 restoring dropped sentence.
14752 2009-02-28 Jan Hubicka <jh@suse.cz>
14754 * tree-inline.c (tree_function_versioning): Output debug info.
14756 2009-02-28 Jan Hubicka <jh@suse.cz>
14759 * tree-inline.c (setup_one_parameter): Do not copy propagate
14760 arguments when not optimizing.
14762 2009-02-28 H.J. Lu <hongjiu.lu@intel.com>
14765 * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
14766 (avx_addsubv4df3): Likewise.
14767 (*avx_addsubv4sf3): Likewise.
14768 (sse3_addsubv4sf3): Likewise.
14769 (*avx_addsubv2df3): Likewise.
14770 (sse3_addsubv2df3): Likewise.
14771 (avx_unpckhps256): Correct item selectors.
14772 (avx_unpcklps256): Likewise.
14773 (avx_unpckhpd256): Likewise.
14774 (avx_unpcklpd256): Likewise.
14776 2009-02-28 Jan Hubicka <jh@suse.cz>
14778 * tree-inline.c (expand_call_inline): Avoid duplicate declarations of
14780 (copy_arguments_for_versioning): If var is declared don't declare it.
14781 (tree_function_versioning): First setup substitutions and then copy
14784 2009-02-27 Jan Hubicka <jh@suse.cz>
14787 * cgraph.h (varpool_output_debug_info): Remove.
14788 * cgraphunit.c (varpool_output_debug_info): Remove.
14789 * dwarf2out.c (deferred_locations_struct): New struct
14790 (deferred_locations): New type.
14791 (deferred_locations_list): New static var.
14792 (deffer_location): New function.
14793 (gen_variable_die): Use it.
14794 (decls_for_scope): Output info on local static vars.
14795 (dwarf2out_finish): Process deferred locations.
14796 * varpool.c (varpool_output_debug_info): Remove.
14798 2009-02-27 Jan Hubicka <jh@suse.cz>
14801 * tree.h (TREE_PROTECTED): Fix comment.
14802 (BLOCK_HANDLER_BLOCK): Remove.
14803 (struct tree_block): Remove handler_block add body_block.
14804 (inlined_function_outer_scope_p): New.
14805 (is_body_block): Remove.
14806 * dbxout.c (dbxout_block): Remove BLOCK_HANDLER_BLOCK.
14807 * dwarf2out.c (is_inlined_entry_point): Remove.
14808 (add_high_low_attributes): Use inlined_function_outer_scope_p.
14809 (gen_block_die): Use is_inlined_entry_point check. Remove body block
14811 * langhooks.h (struct lang_hooks): Remove no_bodu_blocks.
14812 * gimplify.c (gimplify_expr): Gimplify body blocks.
14813 * tree-ssa-live.c (remove_unused_scope_block_p): Allow removing wrapper
14814 block with multiple subblocks.
14815 (dump_scope_block): Prettier output; dump more flags and info.
14816 (dump_scope_blocks): New.
14817 (remove_unused_locals): Use dump_scope_blocks.
14818 * tree-flow.h (dump_scope_blocks): Declare.
14819 * tree-cfg.c (execute_build_cfg): Dump scope blocks.
14820 * stmt.c (is_body_block): Remove.
14821 * tree-inline.c (remap_block): Copy BODY_BLOCK info.
14822 * langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): Remove.
14824 2009-02-27 Sebastian Pop <sebastian.pop@amd.com>
14826 PR middle-end/39308
14827 * graphite.c (graphite_loop_normal_form): Do not call
14828 number_of_iterations_exit from a gcc_assert.
14830 2009-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14832 * config/s390/s390.c (s390_swap_cmp): Look for conditional
14833 jumps if COND is NULL.
14834 (find_cond_jump): New function.
14835 (s390_z10_optimize_cmp): Handling for reg-reg compares added.
14836 * config/s390/s390.md: Remove z10_cobra attribute value.
14838 2009-02-26 Uros Bizjak <ubizjak@gmail.com>
14840 * config/alpha/alpha.h (alpha_expand_mov): Return false if
14841 force_const_mem returns NULL_RTX.
14843 2009-02-26 Jan Hubicka <jh@suse.cz>
14846 * cgraph.h (varpool_output_debug_info): Remove.
14847 * cgraphunit.c (varpool_output_debug_info): Remove.
14848 * dwarf2out.c (deferred_locations_struct): New struct
14849 (deferred_locations): New type.
14850 (deferred_locations_list): New static var.
14851 (deffer_location): New function.
14852 (gen_variable_die): Use it.
14853 (decls_for_scope): Output info on local static vars.
14854 (dwarf2out_finish): Process deferred locations.
14855 * varpool.c (varpool_output_debug_info): Remove.
14857 2009-02-25 H.J. Lu <hongjiu.lu@intel.com>
14859 PR rtl-optimization/39241
14860 * jump.c (rtx_renumbered_equal_p): Remove 2 superfluous calls
14861 to subreg_offset_representable_p.
14863 2009-02-25 Paolo Bonzini <bonzini@gnu.org>
14865 * regmove.c (regmove_optimize): Conform to struct rtl_opt_pass
14866 execute function prototype. Get f and nregs from max_reg_num
14867 and get_insns. Remove the first backward pass as it's dead,
14868 guard the forward pass by flag_expensive_optimizations.
14869 (rest_of_handle_regmove): Delete.
14870 (pass_regmove): Replace it with regmove_optimize.
14872 2009-02-25 Martin Jambor <mjambor@suse.cz>
14874 PR tree-optimization/39259
14875 * tree-inline.c (initialize_cfun): Remove asserts for calls_setjmp and
14876 calls_alloca function flags.
14877 (copy_bb): Set calls_setjmp and alls_alloca function flags if such
14878 calls are detected.
14880 2009-02-25 Paolo Bonzini <bonzini@gnu.org>
14882 * regmove.c (discover_flags_reg, flags_set_1, mark_flags_life_zones,
14883 flags_set_1_rtx, flags_set_1_set): Delete.
14884 (regmove_optimize): Do not call mark_flags_life_zones.
14886 2009-02-24 Julian Brown <julian@codesourcery.com>
14889 * config/arm/arm.c (require_pic_register): Only set
14890 cfun->machine->pic_reg once per function.
14892 2009-02-24 Sandra Loosemore <sandra@codesourcery.com>
14894 * doc/invoke.texi (Link Options): Document an easier way to pass
14895 options that take arguments to the GNU linker using -Xlinker and -Wl.
14897 2009-02-24 Steve Ellcey <sje@cup.hp.com>
14900 * doc/tm.texi (TARGET_C99_FUNCTIONS): Fix description.
14902 2009-02-24 Richard Guenther <rguenther@suse.de>
14905 * dwarf2out.c (gen_enumeration_type_die): Handle CONST_DECLs.
14907 2009-02-24 Richard Guenther <rguenther@suse.de>
14908 Zdenek Dvorak <ook@ucw.cz>
14910 PR tree-optimization/39233
14911 * tree-ssa-loop-ivopts.c (add_candidate_1): Do not except pointers
14912 from converting them to a generic type.
14914 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
14916 PR tree-optimization/39260
14917 * graphite.c (harmful_stmt_in_bb): Stop a SCoP when the basic block
14918 contains a condition with a real type.
14919 (build_scop_conditions_1): Conditions are always last_stmt of a bb.
14921 2009-02-23 Jason Merrill <jason@redhat.com>
14924 * varasm.c (initializer_constant_valid_p) [PLUS_EXPR]: Check
14925 narrowing_initializer_constant_valid_p.
14926 (narrowing_initializer_constant_valid_p): Don't return
14927 null_pointer_node for adding a pointer to itself.
14929 2009-02-23 Jan Hubicka <jh@suse.cz>
14932 * ggc.h (htab_create_ggc): Use ggc_free to free hashtable when
14935 2009-02-23 Jan Hubicka <jh@suse.cz>
14937 PR tree-optimization/37709
14938 * tree.c (block_ultimate_origin): Move here from dwarf2out.
14939 * tree.h (block_ultimate_origin): Declare.
14940 * dwarf2out.c (block_ultimate_origin): Move to tree.c
14941 * tree-ssa-live.c (remove_unused_scope_block_p):
14942 Eliminate blocks containig no instructions nor live variables nor
14944 (dump_scope_block): New function.
14945 (remove_unused_locals): Enable removal of dead blocks by default;
14946 enable dumping at TDF_DETAILS.
14948 2009-02-21 H.J. Lu <hongjiu.lu@intel.com>
14950 * config/i386/i386.c (classify_argument): Don't allow COImode
14952 (function_arg_advance_32): Don't allow OImode.
14953 (function_arg_32): Likewise.
14954 (function_value_32): Likewise.
14955 (return_in_memory_32): Likewise.
14956 (function_arg_64): Remove OImode comment.
14958 2009-02-21 H.J. Lu <hongjiu.lu@intel.com>
14961 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
14962 ix86_expand_vector_set for V4DImode in 64bit mode only.
14963 (ix86_expand_vector_init_one_var): Likewise.
14965 2009-02-21 Sebastian Pop <sebastian.pop@amd.com>
14967 * graphite.c (graphite_trans_loop_block): Adjust tile size to 51.
14969 2009-02-21 Richard Sandiford <rdsandiford@googlemail.com>
14972 * loop-iv.c: Revert last change.
14973 * emit-rtl.c: Likewise.
14975 2009-02-21 H.J. Lu <hongjiu.lu@intel.com>
14978 * config/i386/i386.c (type_natural_mode): Remove an extra
14979 space in the warning message.
14980 (function_value_32): Handle 32-byte vector modes.
14981 (return_in_memory_32): Likewise.
14983 2009-02-21 Richard Sandiford <rdsandiford@googlemail.com>
14985 * loop-iv.c (truncate_value): New function.
14986 (iv_subreg, get_iv_value, iv_number_of_iterations): Use it instead
14988 (lowpart_subreg): Move to...
14989 * emit-rtl.c: ...here.
14991 2009-02-21 Danny Smith <dannysmith@users.sourceforge.net>
14993 * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Revert
14994 accidental and undocumented change at revision 140860.
14996 2009-02-21 Joseph Myers <joseph@codesourcery.com>
14998 * config/arm/arm.c (arm_gimplify_va_arg_expr): Update prototype to
14999 take gimple_seq * arguments.
15000 (arm_mangle_type): Use CONST_CAST_TREE on type argument passed to
15001 types_compatible_p langhook.
15003 2009-02-20 Mark Mitchell <mark@codesourcery.com>
15004 Joseph Myers <joseph@codesourcery.com>
15006 * config/arm/arm.c (arm_builtin_va_list): New function.
15007 (arm_expand_builtin_va_start): Likewise.
15008 (arm_gimplify_va_arg_expr): Likewise.
15009 (TARGET_BUILD_BUILTIN_VA_LIST): Define.
15010 (TARGET_BUILD_BUILTIN_VA_START): Likewise.
15011 (TARGET_BUILD_BUILTIN_VA_ARG_EXPR): Likewise.
15012 (va_list_type): New variable.
15013 (arm_mangle_type): Mangle va_list_type appropriately.
15015 2009-02-20 Jakub Jelinek <jakub@redhat.com>
15017 PR middle-end/39157
15018 * Makefile.in (loop-invariant.o): Depend on $(PARAMS_H).
15019 * params.h (LOOP_INVARIANT_MAX_BBS_IN_LOOP): Define.
15020 * params.def (loop-invariant-max-bbs-in-loop): New parameter.
15021 * opts.c (decode_options): Set loop-invariant-max-bbs-in-loop
15022 parameter to 1000 for -O1 by default.
15023 * doc/invoke.texi (loop-invariant-max-bbs-in-loop): Document new
15025 * loop-invariant.c: Include params.h.
15026 (move_loop_invariants): Don't call move_single_loop_invariants on
15029 2009-02-20 Jaka Mocnik <jaka@xlab.si>
15031 * calls.c (emit_library_call_value_1): Use slot_offset instead of
15032 offset when calculating bounds for indexing stack_usage_map. Fixes
15033 a buffer overflow with certain target setups.
15035 2009-02-20 Jakub Jelinek <jakub@redhat.com>
15038 * calls.c (expand_call): Clear try_tail_call if caller and callee
15039 disagree in promotion of function return value.
15041 2009-02-19 Jakub Jelinek <jakub@redhat.com>
15044 * c-common.c (c_determine_visibility): If visibility changed and
15045 DECL_RTL has been already set, call make_decl_rtl to update symbol
15048 2009-02-19 H.J. Lu <hongjiu.lu@intel.com>
15051 * varasm.c (assemble_variable): Don't check DECL_NAME when
15052 globalizing a variable.
15054 2009-02-19 Joseph Myers <joseph@codesourcery.com>
15057 * builtins.c (gimplify_va_arg_expr): Evaluate the va_list
15058 expression before any __builtin_trap call.
15059 * c-typeck.c (build_function_call): Convert and check function
15060 arguments before generating a call to a trap. Evaluate the
15061 function arguments before the trap.
15063 2009-02-19 Uros Bizjak <ubizjak@gmail.com>
15066 * config/i386/i386.md (isinfxf2): Split from isinf<mode>2.
15067 (UNSPEC_FXAM_MEM): New unspec.
15068 (fxam<mode>2_i387_with_temp): New insn and split pattern.
15069 (isinf<mode>2): Use MODEF mode iterator. Force operand[1] through
15070 memory using fxam<mode>2_i387_with_temp to remove excess precision.
15072 2009-02-19 Richard Guenther <rguenther@suse.de>
15074 PR tree-optimization/39207
15075 PR tree-optimization/39074
15076 * tree-ssa-structalias.c (storedanything_id, var_storedanything,
15077 storedanything_tree): New.
15078 (do_ds_constraint): Simplify ANYTHING shortcutting. Update
15079 the STOREDANYTHING solution if the lhs solution contains ANYTHING.
15080 (build_succ_graph): Add edges from STOREDANYTHING to all
15082 (init_base_vars): Initialize STOREDANYTHING.
15083 (compute_points_to_sets): Free substitution info after
15084 building the succ graph.
15085 (ipa_pta_execute): Likewise.
15087 * tree-ssa-structalias.c (struct variable_info): Add may_have_pointers
15089 (do_ds_constraint): Do not add to special var or non-pointer
15091 (type_could_have_pointers): Split out from ...
15092 (could_have_pointers): ... here. For arrays use the element type.
15093 (create_variable_info_for): Initialize may_have_pointers.
15094 (new_var_info): Likewise.
15095 (handle_lhs_call): Make the HEAP variable unknown-sized.
15096 (intra_create_variable_infos): Use a type with pointers for
15097 PARM_NOALIAS, make it unknown-sized.
15099 2009-02-18 H.J. Lu <hongjiu.lu@intel.com>
15102 * config/i386/i386.c (ix86_return_in_memory): Properly check ABI.
15104 2009-02-18 Jason Merrill <jason@redhat.com>
15107 * tree-ssa-ccp.c (get_symbol_constant_value): Don't assume zero
15108 value if DECL_EXTERNAL.
15109 * tree-sra.c (sra_walk_gimple_assign): Likewise.
15110 * target.h (gcc_target::binds_local_p): Clarify "module".
15111 * tree.h (TREE_PUBLIC): Clarify "module".
15113 2009-02-17 Xuepeng Guo <xuepeng.guo@intel.com>
15116 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move the hunk of
15117 initialization for MS_ABI prior to the hunk of !TARGET_MMX.
15119 2009-02-17 H.J. Lu <hongjiu.lu@intel.com>
15122 * c.opt (Wabi): Support C and ObjC.
15125 * c-opts.c (c_common_handle_option): Handle OPT_Wabi.
15127 * config/i386/i386.c (classify_argument): Warn once about the ABI
15128 change when passing union with long double.
15130 * doc/invoke.texi: Update -Wabi for warning psABI changes.
15132 2009-02-18 Joseph Myers <joseph@codesourcery.com>
15135 * c-parser.c (c_parser_compound_statement): Always enter and leave
15138 2009-02-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15141 * config/darwin.h (SUPPORTS_INIT_PRIORITY): Define.
15143 2009-02-18 Jakub Jelinek <jakub@redhat.com>
15145 PR tree-optimization/36922
15146 * tree-data-ref.c (initialize_matrix_A): Handle BIT_NOT_EXPR.
15147 * tree-scalar-evolution.c (interpret_rhs_expr, instantiate_scev_1):
15150 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
15152 * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
15155 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
15157 * config/mips/mips.md (type): Reclassify lui_movf as "unknown".
15159 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
15161 * config/mips/mips.c (mips_gimplify_va_arg_expr): Fix invalid
15164 2009-02-17 Ruan Beihong <ruanbeihong@gmail.com>
15165 Richard Sandiford <rdsandiford@googlemail.com>
15167 * config/mips/mips.c (CODE_FOR_loongson_biadd): Delete.
15168 * config/mips/loongson.md (reduc_uplus_<mode>): Rename to...
15169 (loongson_biadd): ...this.
15171 2009-02-17 Richard Guenther <rguenther@suse.de>
15173 PR tree-optimization/39202
15174 * tree-ssa-structalias.c (do_structure_copy): Before collapsing
15175 a var make sure to follow existing collapses.
15177 2009-02-17 Richard Guenther <rguenther@suse.de>
15179 PR middle-end/39214
15180 * langhooks.c (lhd_print_error_function): Check for NULL block.
15182 2009-02-17 Richard Guenther <rguenther@suse.de>
15184 PR tree-optimization/39204
15185 * tree-ssa-pre.c (phi_translate_1): Lookup the value-number
15188 2009-02-17 Uros Bizjak <ubizjak@gmail.com>
15190 * config/soft-fp/double.h: Update from glibc CVS.
15192 2009-02-17 Richard Guenther <rguenther@suse.de>
15194 PR tree-optimization/39207
15195 * tree-ssa-structalias.c (find_what_p_points_to): Do not emit
15196 strict-aliasing warnings for pointers pointing to NULL.
15198 2009-02-16 Joseph Myers <joseph@codesourcery.com>
15201 * c-parser.c (c_parser_braced_init): Call pop_init_level when
15202 skipping until next close brace.
15204 2009-02-16 H.J. Lu <hongjiu.lu@intel.com>
15207 * config/i386/i386.c (ix86_expand_push): Set memory alignment
15208 to function argument boundary.
15210 2009-02-16 Hariharan Sandanagobalane <hariharan@picochip.com>
15212 * config/picochip/picochip.md (lea_add): Allow any nonimmediate
15213 in the lea_add. Reload eventually constraints it properly.
15214 * config/picochip/constraints.md: Remove the target constraint
15215 "b", since it is not needed anymore.
15217 2009-02-16 Jakub Jelinek <jakub@redhat.com>
15219 * gthr-dce.h: Uglify function parameter and local variable names.
15220 * gthr-gnat.h: Likewise.
15221 * gthr-mipssde.h: Likewise.
15222 * gthr-nks.h: Likewise.
15223 * gthr-posix95.h: Likewise.
15224 * gthr-posix.h: Likewise.
15225 * gthr-rtems.h: Likewise.
15226 * gthr-single.h: Likewise.
15227 * gthr-solaris.h: Likewise.
15228 * gthr-tpf.h: Likewise.
15229 * gthr-vxworks.h: Likewise.
15230 * gthr-win32.h: Likewise.
15232 2009-02-15 H.J. Lu <hongjiu.lu@intel.com>
15235 * config/i386/i386.md: Restrict the new peephole2 to move
15236 between MMX/SSE registers.
15238 2009-02-15 Richard Guenther <rguenther@suse.de>
15241 2009-02-13 Richard Guenther <rguenther@suse.de>
15243 * configure.ac: Enable LFS.
15244 * configure: Re-generate.
15245 * config.in: Likewise.
15247 2009-02-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15249 * config/spu/spu_internals.h (spu_sr, spu_sra, spu_srqw,
15250 spu_srqwbyte, spu_srqwbytebc): Define.
15251 * config/spu/spu-builtins.def (spu_sr, spu_sra, spu_srqw,
15252 spu_srqwbyte, spu_srqwbytebc): New overloaded builtins.
15253 * config/spu/spu.md ("shrqbybi_<mode>", "shrqbi_<mode>",
15254 "shrqby_<mode>"): New insn-and-split patterns.
15255 * config/spu/spu.c (expand_builtin_args): Determine and return
15256 number of operands using spu_builtin_description data.
15257 (spu_expand_builtin_1): Use it.
15259 2009-02-13 Steve Ellcey <sje@cup.hp.com>
15262 * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Check
15265 2009-02-13 H.J. Lu <hongjiu.lu@intel.com>
15268 * config/i386/i386.c (override_options): Correct warning
15269 messages for -malign-loops, -malign-jumps and -malign-functions.
15271 2009-02-13 H.J. Lu <hongjiu.lu@intel.com>
15274 * config/i386/i386.md: Restrict the new peephole2 to move
15275 between the general purpose registers.
15277 2009-02-13 H.J. Lu <hongjiu.lu@intel.com>
15280 * config/i386/i386.c (type_natural_mode): Add a new argument.
15281 Return the original mode and warn ABI change if vector size is 32byte.
15282 (function_arg_advance): Updated.
15283 (function_arg): Likewise.
15284 (ix86_function_value): Likewise.
15285 (ix86_return_in_memory): Likewise.
15286 (ix86_sol10_return_in_memory): Likewise.
15287 (ix86_gimplify_va_arg): Likewise.
15288 (function_arg_32): Don't warn ABX ABI change here.
15289 (function_arg_64): Likewise.
15291 2009-02-13 Bernd Schmidt <bernd.schmidt@analog.com>
15293 * loop-iv.c (implies_p): In the final case, test that operands 0
15294 of the two comparisons match.
15296 * config/bfin/bfin.c (find_prev_insn_start): New function.
15297 (bfin_optimize_loop): Use it in some cases instead of PREV_INSN.
15298 (find_next_insn_start): Move.
15300 2009-02-13 Richard Guenther <rguenther@suse.de>
15302 * configure.ac: Enable LFS.
15303 * configure: Re-generate.
15304 * config.in: Likewise.
15306 2009-02-13 Joseph Myers <joseph@codesourcery.com>
15309 * c-parser.c (c_parser_parms_list_declarator): Discard pending
15310 sizes on syntax error after some arguments have been parsed.
15312 2009-02-12 Jakub Jelinek <jakub@redhat.com>
15314 * doc/invoke.texi (-fira): Remove.
15316 2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
15318 * caller-save.c: Replace regclass.c with reginfo.c in comments.
15319 * recog.c: Likewise.
15322 2009-02-12 Uros Bizjak <ubizjak@gmail.com>
15324 * longlong.h (sub_ddmmss): New for ia64. Ported from GMP 4.2.
15325 (umul_ppmm): Likewise.
15326 (count_leading_zeros): Likewise.
15327 (count_trailing_zeros): Likewise.
15328 (UMUL_TIME): Likewise.
15330 2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
15332 * config.gcc (ia64*-*-linux*): Add ia64/t-fprules-softfp and
15333 soft-fp/t-softfp to tmake_file.
15335 * config/ia64/ia64.c (ia64_soft_fp_init_libfuncs): New.
15336 (ia64_expand_compare): Use HPUX library for TFmode only for HPUX.
15337 (ia64_builtins) [IA64_BUILTIN_COPYSIGNQ, IA64_BUILTIN_FABSQ,
15338 IA64_BUILTIN_INFQ]: New.
15339 (ia64_init_builtins): Initialize __builtin_infq,
15340 __builtin_fabsq and __builtin_copysignq if not HPUX.
15341 (ia64_expand_builtin): Handle IA64_BUILTIN_COPYSIGNQ,
15342 IA64_BUILTIN_FABSQ and IA64_BUILTIN_INFQ.
15344 * config/ia64/lib1funcs.asm (__divtf3): Define only if
15346 (__fixtfti): Likewise.
15347 (__fixunstfti): Likewise.
15348 (__floattitf): Likewise.
15350 * config/ia64/libgcc-glibc.ver: New.
15351 * config/ia64/t-fprules-softfp: Likewise.
15352 * config/ia64/sfp-machine.h: Likewise.
15354 * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): New.
15355 (LIBGCC2_TF_CEXT): Likewise.
15356 (TF_SIZE): Likewise.
15357 (TARGET_INIT_LIBFUNCS): Likewise.
15359 * config/ia64/t-glibc (SHLINB_MAPFILES):
15360 Add $(srcdir)/config/ia64/libgcc-glibc.ver.
15362 2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
15364 * config/i386/i386.c (construct_container): Rewrite processing
15365 BLKmode with X86_64_SSE_CLASS.
15367 2009-02-12 Paolo Bonzini <bonzini@gnu.org>
15370 * config/i386/i386.md: Replace simplify_replace_rtx with
15371 replace_rtx in the new peephole2.
15373 2009-02-12 Nathan Sidwell <nathan@codesourcery.com>
15375 * doc/invoke.texi (Optimize Options): Stop claiming inlining and
15376 loop unrolling do not happen at -O2.
15378 2009-02-12 Michael Matz <matz@suse.de>
15380 * gcc.c (ASM_DEBUG_SPEC): Check for -g0.
15382 2009-02-12 Jakub Jelinek <jakub@redhat.com>
15384 * dwarf2out.c (dwarf2out_finish): Force output of comp_unit_die
15387 2009-02-12 Ben Elliston <bje@au.ibm.com>
15389 * config/rs6000/rs6000.md (allocate_stack): Use _stack form of
15390 patterns when updating the back chain. Missed in the 2009-02-10
15393 2009-02-11 Janis Johnson <janis187@us.ibm.com>
15395 * doc/extend.texi (Decimal Floating Types): Update identifier of
15396 draft TR and list of missing support.
15398 2009-02-11 Jakub Jelinek <jakub@redhat.com>
15400 PR middle-end/39154
15401 * gimplify.c (omp_notice_variable): If adding GOVD_SEEN
15402 bit to variable length decl's flags, add it also to its
15403 pointer replacement variable.
15405 2009-02-11 Uros Bizjak <ubizjak@gmail.com>
15406 Jakub Jelinek <jakub@redhat.com>
15409 * config/i386/i386.md (UNSPEC_MEMORY_BLOCKAGE): New constant.
15410 (memory_blockage): New expander.
15411 (*memory_blockage): New insn pattern.
15412 * config/i386/i386.c (ix86_expand_prologue): Use memory_blockage
15413 instead of general blockage at the end of function prologue when
15414 frame pointer is used to access red zone area. Do not emit blockage
15415 when profiling, it is emitted in generic code.
15416 (ix86_expand_epilogue): Emit memory_blockage at the beginning of
15417 function epilogue when frame pointer is used to access red zone area.
15419 2009-02-11 Paolo Bonzini <bonzini@gnu.org>
15422 * config/i386/i386.md: Add two new peephole2 to avoid mov followed
15423 by arithmetic with memory operands.
15424 * config/i386/predicates.md (commutative_operator): New.
15426 2009-02-10 Janis Johnson <janis187@us.ibm.com>
15428 * doc/extend.texi (Fixed-Point Types): Break long paragraphs into
15431 2009-02-10 Eric Botcazou <ebotcazou@adacore.com>
15433 * alias.h (record_alias_subset): Declare.
15434 * alias.c (record_alias_subset): Make global.
15436 2009-02-10 Nick Clifton <nickc@redhat.com>
15438 * tree-parloops.c: Change license to GPLv3.
15439 * ipa-struct-reorg.c: Change license to GPLv3.
15440 * ipa-struct-reorg.h: Change license to GPLv3.
15442 2009-02-10 Steve Ellcey <sje@cup.hp.com>
15445 * c-decl.c (start_struct): Return NULL on error.
15447 2009-02-10 Jakub Jelinek <jakub@redhat.com>
15449 PR middle-end/39124
15450 * cfgloopmanip.c (remove_path): Call remove_bbs after
15451 cancel_loop_tree, not before it.
15454 * function.h (struct function): Add has_local_explicit_reg_vars bit.
15455 * gimplify.c (gimplify_bind_expr): Set it if local DECL_HARD_REGISTER
15456 VAR_DECLs were seen.
15457 * tree-ssa-live.c (remove_unused_locals): Recompute
15458 cfun->has_local_explicit_reg_vars.
15459 * tree-ssa-sink.c (statement_sink_location): Don't sink BLKmode
15460 copies or clearings if cfun->has_local_explicit_reg_vars.
15462 2009-02-10 Uros Bizjak <ubizjak@gmail.com>
15465 * config/i386/i386.c (expand_prologue): Emit blockage at the end
15466 of function prologue when frame pointer is used to access
15469 2009-02-10 Richard Guenther <rguenther@suse.de>
15471 PR middle-end/39127
15472 * gimplify.c (gimple_regimplify_operands): Always look if
15473 we need to create a temporary.
15475 2009-02-10 Richard Guenther <rguenther@suse.de>
15477 PR tree-optimization/39132
15478 * tree-loop-distribution.c (todo): New global var.
15479 (generate_memset_zero): Trigger TODO_rebuild_alias.
15480 (tree_loop_distribution): Return todo.
15482 2009-02-10 H.J. Lu <hongjiu.lu@intel.com>
15485 * config/i386/i386.c (x86_64_reg_class): Remove X86_64_AVX_CLASS.
15486 (x86_64_reg_class_name): Removed.
15487 (classify_argument): Return 0 if bytes > 32. Return 0 if the
15488 first one isn't X86_64_SSE_CLASS or any other ones aren't
15489 X86_64_SSEUP_CLASS when size > 16bytes. Don't turn
15490 X86_64_SSEUP_CLASS into X86_64_SSE_CLASS if the preceded one
15491 is X86_64_SSEUP_CLASS. Set AVX modes to 1 X86_64_SSE_CLASS
15492 and 3 X86_64_SSEUP_CLASS.
15493 (construct_container): Remove X86_64_AVX_CLASS. Handle 4
15494 registers with 1 X86_64_SSE_CLASS and 3 X86_64_SSEUP_CLASS.
15496 2009-02-10 Ben Elliston <bje@au.ibm.com>
15498 * config/rs6000/rs6000.md (allocate_stack): Always use an update
15499 form instruction to update the stack back chain word, even if the
15500 user has disabled the generation of update instructions.
15501 (movdi_<mode>_update_stack): New.
15502 (movsi_update_stack): Likewise.
15503 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Likewise,
15504 always use an update form instruction to update the stack back
15507 2009-02-09 Sebastian Pop <sebastian.pop@amd.com>
15509 PR middle-end/38953
15510 * graphite.c (if_region_set_false_region): After moving a region in
15511 the false branch of a condition, remove the empty dummy basic block.
15512 (gloog): Remove wrong fix for PR38953.
15514 2009-02-09 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15516 * config/spu/spu.c (array_to_constant): Fix (latent) wrong-code
15517 generation due to implicit sign extension.
15519 2009-02-09 Eric Botcazou <ebotcazou@adacore.com>
15521 PR middle-end/38981
15522 * tree-ssa-coalesce.c (add_coalesce): Cap the costs of coalesce pairs
15523 at MUST_COALESCE_COST-1 instead of MUST_COALESCE_COST.
15525 2009-02-09 Richard Guenther <rguenther@suse.de>
15527 PR middle-end/35202
15528 * convert.c (convert_to_real): Disable (float)fn((double)x)
15529 to fnf(x) conversion if errno differences may occur and
15530 -fmath-errno is set.
15532 2009-02-07 Anatoly Sokolov <aesok@post.ru>
15534 * config/avr/avr.c (avr_mcu_t): Add ata6289 device.
15535 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
15536 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
15538 2009-02-06 Joseph Myers <joseph@codesourcery.com>
15541 * c-common.c (handle_alias_attribute): Disallow attribute for
15542 anything not a FUNCTION_DECL or VAR_DECL.
15544 2009-02-06 Janis Johnson <janis187@us.ibm.com>
15547 * real.c (do_compare): Special-case compare of zero against
15548 decimal float value.
15550 2009-02-06 Joseph Myers <joseph@codesourcery.com>
15553 * c-decl.c (grokdeclarator): Don't treat [] declarators in fields
15554 as indicating flexible array members unless the field itself is
15555 being declarared as the incomplete array.
15557 2009-02-06 Jan Hubicka <jh@suse.cz>
15559 PR tree-optimization/38844
15560 * ipa-inline.c (try_inline): Stop inlining recursion when edge
15561 is already inlined.
15563 2009-02-06 Richard Guenther <rguenther@suse.de>
15565 PR middle-end/38977
15566 * tree-cfg.c (need_fake_edge_p): Force a fake edge for
15567 fork because we may expand it as __gcov_fork.
15569 2009-02-06 Nick Clifton <nickc@redhat.com>
15571 * config/m32c/m32c.h (PCC_BITFIELD_TYPE_MATTERS): Define to zero.
15573 2009-02-06 Paolo Bonzini <bonzini@gnu.org>
15575 PR tree-optimization/35659
15576 * tree-ssa-sccvn.c (vn_constant_eq, vn_reference_eq, vn_nary_op_eq
15577 vn_phi_eq): Shortcut if hashcode does not match.
15578 (vn_reference_op_compute_hash): Do not call iterative_hash_expr for
15580 * tree-ssa-pre.c (pre_expr_hash): Look at hashcode if available,
15581 and avoid iterative_hash_expr.
15582 (FOR_EACH_VALUE_ID_IN_SET): New.
15583 (value_id_compare): Remove.
15584 (sorted_array_from_bitmap_set): Use FOR_EACH_VALUE_ID_IN_SET to
15585 sort expressions by value id.
15587 2009-02-05 Kaz Kojima <kkojima@gcc.gnu.org>
15590 * config/sh/predicates.md (general_movsrc_operand): Don't check
15591 the subreg of system registers here.
15593 2009-02-05 Jakub Jelinek <jakub@redhat.com>
15596 * cgraphunit.c (cgraph_function_versioning): Clear also DECL_VIRTUAL_P
15597 on the copied decl.
15599 2009-02-05 Paolo Bonzini <bonzini@gnu.org>
15601 PR rtl-optimization/39110
15602 * rtlanal.c (rtx_addr_can_trap_p_1): Shortcut unaligned
15603 addresses, not aligned ones.
15605 2009-02-05 Daniel Berlin <dberlin@dberlin.org>
15606 Richard Guenther <rguenther@suse.de>
15608 PR tree-optimization/39100
15609 * tree-ssa-structalias.c (do_ds_constraint): Actually do what the
15610 comment says and add edges.
15612 2009-02-05 Joseph Myers <joseph@codesourcery.com>
15615 * c-common.c (handle_tls_model_attribute): Ignore attribute for
15616 non-VAR_DECLs without checking DECL_THREAD_LOCAL_P.
15618 2009-02-04 Tobias Grosser <grosser@fim.uni-passau.de>
15620 * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use,
15621 sese_build_livein_liveouts_bb, sese_build_livein_liveouts,
15622 register_bb_in_sese, new_sese, free_sese): Moved.
15623 (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains,
15624 outermost_loop_in_scop, build_scop_iteration_domain,
15625 expand_scalar_variables_ssa_name, get_vdef_before_scop,
15626 limit_scops): Use bb_in_sese_p instead of bb_in_scop_p.
15627 Use loop_in_sese_p instead of loop_in_scop_p.
15628 (new_graphite_bb, gloog): Do not initialize SCOP_BBS_B.
15629 (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP and SCOP_BBS_B.
15630 (scopdet_basic_block_info): Fix bug in scop detection.
15631 (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
15632 eq_loop_to_cloog_loop): Remove.
15633 (nb_loops_around_loop_in_scop, nb_loop
15634 ref_nb_loops): Moved here...
15635 * graphite.h (ref_nb_loops): ... from here.
15636 (struct scop): Remove bbs_b bitmap and loop2cloog_loop.
15637 (loop_domain_dim, loop_iteration_vector_dim): Remove.
15638 (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed.
15639 * testsuite/gcc.dg/graphite/scop-19.c: New
15641 2009-02-04 Paolo Bonzini <bonzini@gnu.org>
15642 Hans-Peter Nilsson <hp@axis.com>
15644 PR rtl-optimization/37889
15645 * rtlanal.c (rtx_addr_can_trap_p_1): Add offset and size arguments.
15646 Move offset handling from PLUS to before the switch. Use new
15647 arguments when considering SYMBOL_REFs too.
15648 (rtx_addr_can_trap_p): Pass dummy offset and size.
15649 (enum may_trap_p_flags): Remove.
15650 (may_trap_p_1): Pass size from MEM_SIZE.
15652 PR rtl-optimization/38921
15653 * loop-invariant.c (find_invariant_insn): Use may_trap_or_fault_p.
15654 * rtl.h (may_trap_after_code_motion_p): Delete prototype.
15655 * rtlanal.c (may_trap_after_code_motion_p): Delete.
15656 (may_trap_p, may_trap_or_fault_p): Pass 0/1 as flags.
15658 2009-02-04 H.J. Lu <hongjiu.lu@intel.com>
15660 AVX Programming Reference (January, 2009)
15661 * config/i386/sse.md (*vpclmulqdq): New.
15663 2009-02-04 Jakub Jelinek <jakub@redhat.com>
15665 PR tree-optimization/38977
15666 PR gcov-profile/38292
15667 * calls.c (special_function_p): Disregard __builtin_ prefix.
15669 2009-02-04 Hariharan Sandanagobalane <hariharan@picochip.com>
15671 * config/picochip/picochip.c (GO_IF_LEGITIMATE_ADDRESS): Disallow
15672 non-indexable addresses even before reload.
15674 2009-02-03 Joseph Myers <joseph@codesourcery.com>
15677 * c-decl.c (grokdeclarator): Mark [*] arrays in field declarators
15678 as having variable size. Do not give an error for unnamed
15679 parameters with [*] declarators. Give a warning for type names
15680 with [*] declarators and mark them as variable size.
15681 * c-parser.c (c_parser_sizeof_expression): Do not give an error
15682 for sizeof applied to [*] type names.
15684 2009-02-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
15687 * convert.c (convert_to_integer): Treat OFFSET_TYPE like INTEGER_TYPE.
15689 2009-02-03 Jakub Jelinek <jakub@redhat.com>
15691 * gcc.c (process_command): Update copyright notice dates.
15692 * gcov.c (print_version): Likewise.
15693 * gcov-dump.c (print_version): Likewise.
15694 * mips-tfile.c (main): Likewise.
15695 * mips-tdump.c (main): Likewise.
15697 2009-02-03 Joseph Myers <joseph@codesourcery.com>
15700 * c-typeck.c (composite_type): Set TYPE_SIZE and TYPE_SIZE_UNIT
15701 for composite type involving a zero-length array type.
15703 2009-02-03 Jakub Jelinek <jakub@redhat.com>
15706 * function.c (match_asm_constraints_1): Skip over
15707 initial optional % in the constraint.
15709 PR inline-asm/39059
15710 * c-parser.c (c_parser_postfix_expression): If fixed point is not
15711 supported, don't accept FIXED_CSTs.
15712 * c-decl.c (finish_declspecs): Error if fixed point is not supported
15713 and _Sat is used without _Fract/_Accum. Set specs->type to
15714 integer_type_node for cts_fract/cts_accum if fixed point is not
15717 2009-02-02 Catherine Moore <clm@codesourcery.com>
15719 * sde.h (SUBTARGET_ARM_SPEC): Don't assemble -fpic code as -mabicalls.
15721 2009-02-02 Richard Sandiford <rdsandiford@googlemail.com>
15723 * config/mips/mips.h (FILE_HAS_64BIT_SYMBOLS): New macro.
15724 (ABI_HAS_64BIT_SYMBOLS): Use it.
15725 (DWARF2_ADDR_SIZE): Use it instead of ABI_HAS_64BIT_SYMBOLS.
15727 2009-02-02 Paul Brook <paul@codesourcery.com>
15729 * config/arm/arm.md (arm_addsi3): Add r/r/k alternative.
15731 2009-02-02 Jakub Jelinek <jakub@redhat.com>
15733 PR inline-asm/39058
15734 * recog.h (asm_operand_ok): Add constraints argument.
15735 * recog.c (asm_operand_ok): Likewise. If it is set, for digits
15736 recurse on matching constraint.
15737 (check_asm_operands): Pass constraints as 3rd argument to
15738 asm_operand_ok. Don't look up matching constraint here.
15739 * stmt.c (expand_asm_operands): Pass NULL as 3rd argument
15742 2009-02-02 Ben Elliston <bje@au.ibm.com>
15744 * doc/tm.texi (Storage Layout): Fix TARGET_ALIGN_ANON_BITFIELD and
15745 TARGET_NARROW_VOLATILE_BITFIELD macro names.
15747 2009-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15749 * doc/install.texi (hppa*-hp-hpux*): Update binutils and linker
15750 information. Remove some obsolete information. Reorganize.
15752 * config/pa/fptr.c: Revert license to GPL 2.
15753 * config/pa/milli64.S: Likewise.
15755 2009-01-31 Dave Korn <dave.korn.cygwin@gmail.com>
15758 * mkmap-flat.awk (END): Use pe_dll command-line arg to pass
15759 LIBRARY name in, instead of hard-coding it.
15760 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add an
15761 extra target make frag to tmake_files according to EH model.
15762 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
15763 * config/i386/t-dw2-eh, config/i386/t-sjlj-eh: Add new target
15764 frags that define makefile variable EH_MODEL appropriately.
15765 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Add comment.
15766 * config/i386/cygwin.h (LIBGCC_EH_EXTN): Define to nothing or
15767 to "-sjlj" according to type of EH configured.
15768 (LIBGCC_SONAME): Concatenate it to shared library base name.
15769 * config/i386/mingw32.h (LIBGCC_EH_EXTN): Define to "_dw2" or
15770 to "_sjlj" according to type of EH configured.
15771 (LIBGCC_SONAME): Concatenate it to shared library base name.
15772 * config/i386/t-cygming (SHLIB_SONAME): Use EH_MODEL.
15773 (SHLIB_LINK): Add missing semicolon to if-else construct.
15774 (SHLIB_MKMAP_OPTS): Pass library name to mkmap-flat.awk as
15775 string value of "pe_dll" command-line option.
15776 * config/i386/t-cygwin (SHLIB_EH_EXTENSION): New helper.
15777 (SHLIB_SONAME): Use it when overriding t-cygming default.
15778 (SHLIB_IMPLIB): Override t-cygming default.
15779 (SHLIB_MKMAP_OPTS): Pass library name to mkmap-flat.awk as
15780 string value of "pe_dll" command-line option.
15782 2009-01-31 Dave Korn <dave.korn.cygwin@gmail.com>
15785 * config/i386/i386.c (ix86_builtin_setjmp_frame_value): New.
15786 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Override default to point at it.
15788 2009-01-31 Richard Guenther <rguenther@suse.de>
15790 PR tree-optimization/38937
15791 * tree-ssa-structalias.c (do_sd_constraint): Do not shortcut
15792 computing the transitive closure.
15794 2009-01-30 Richard Guenther <rguenther@suse.de>
15796 PR tree-optimization/39041
15797 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
15798 Propagate variable indices only if the types match for this stmt.
15800 2009-01-30 Jakub Jelinek <jakub@redhat.com>
15803 * c-decl.c (pop_scope): Set DECL_EXTERNAL for functions declared
15804 inline but never defined.
15806 2009-01-30 Wolfgang Gellerich <gellerich@de.ibm.com>
15808 * config/s390/s390.md (*insv<mode>_reg_extimm): Removed.
15809 (*insv_h_di_reg_extimm): New insn.
15810 (*insv_l<mode>_reg_extimm): New insn.
15812 2009-01-30 Hariharan Sandanagobalane <hariharan@picochip.com>
15814 * config/picochip/picochip.c (flag_conserve_stack): set
15815 PARAM_LARGE_STACK_FRAME and PARAM_STACK_FRAME_GROWTH to zero under
15816 fconserve-stack. Reduce call-overhead used by inliner.
15818 2009-01-30 Hariharan Sandanagobalane <hariharan@picochip.com>
15821 * common.opt (flag_conserve_stack): Initialised to zero.
15823 2009-01-30 Kai Tietz <kai.tietz@onevision.com>
15826 * config/i386/i386.c (ix86_can_use_return_insn_p): Check for nsseregs.
15827 (ix86_expand_epilogue): Take nsseregs in account to use proper restore
15830 2009-01-29 H.J. Lu <hongjiu.lu@intel.com>
15832 * ira-color.c (allocno_reload_assign): Update comments.
15833 * regmove.c (regmove_optimize): Likewise.
15837 2009-01-29 Robert Millan <rmh@aybabtu.com>
15839 * config.gcc: Recognize GNU/kOpenSolaris (*-*-kopensolaris*-gnu).
15840 * config/i386/kopensolaris-gnu.h: New file. Undefine
15841 `MD_UNWIND_SUPPORT'.
15842 * config/kopensolaris-gnu.h: New file (based on kfreebsd-gnu.h).
15844 2009-01-29 Kazu Hirata <kazu@codesourcery.com>
15846 PR tree-optimization/39007
15847 * tree-loop-distribution.c (generate_builtin): Use
15848 recompute_dominator to compute the immediate dominator of the
15849 basic block just after the loop.
15851 2009-01-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
15853 * config/i386/sol2-10.h [!HAVE_AS_IX86_DIFF_SECT_DELTA]
15854 (ASM_OUTPUT_DWARF_PCREL): Define.
15856 2009-01-29 Vladimir Makarov <vmakarov@redhat.com>
15858 * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Modify description.
15859 * doc/passes.texi: Remove entries about regclass, local-alloc, and
15860 global. Modify entries about regmove and IRA.
15862 * ra-conflict.c: Remove the file.
15864 * reload.c (push_reload, find_dummy_reload): Remove flag_ira.
15866 * tree-pass.h (pass_local_alloc, pass_global_alloc): Remove.
15867 (pass_regclass_init): Rename to pass_reginfo_init.
15869 * cfgloopanal.c (estimate_reg_pressure_cost): Remove flag_ira.
15871 * toplev.h (flag_ira): Remove.
15873 * caller-save.c (setup_save_areas): Remove flag_ira.
15875 * ira-color.c (ira_reuse_stack_slot, ira_mark_new_stack_slot): Ditto.
15877 * global.c: Remove the file.
15879 * opts.c (decode_options): Remove flag_ira.
15881 * hard-reg-set.h (losing_caller_save_reg_set): Remove.
15883 * regmove.c: Modify file description.
15884 (find_use_as_address, try_auto_increment): Define them only if
15885 AUTO_INC_DEC is defined.
15886 (replacement_quality, replace_in_call_usage, fixup_match_1,
15887 stable_and_no_regs_but_for_p): Remove.
15888 (reg_set_in_bb): Make it static.
15889 (regmove_optimize): Remove flag_ira and code which worked for
15892 * local-alloc.c: Remove the file.
15894 * common.opt (fira): Remove.
15896 * ira.c: Include except.h.
15897 (eliminable_regset): Move from global.c.
15898 (mark_elimination): Ditto. Remove flag_ira.
15899 (reg_renumber, struct equivalence, reg_equiv, equiv_mem,
15900 equiv_mem_modified, validate_equiv_mem_from_store,
15901 validate_equiv_mem, equiv_init_varies_p, equiv_init_movable_p,
15902 contains_replace_regs, memref_referenced_p, memref_used_between_p,
15903 no_equiv, recorded_label_ref): Move from local-alloc.c.
15904 (update_equiv_regs): Ditto. Make it static.
15905 (print_insn_chain, print_insn_chains): Move it from global.c.
15906 (pseudo_for_reload_consideration_p): Ditto. Remove flag_ira.
15907 (build_insn_chain): Ditto. Make it static.
15908 (ra_init_live_subregs): Move from ra-conflict.c. Make it static.
15909 Rename to init_live_subregs.
15910 (gate_ira): Remove flag_ira.
15912 * regclass.c: Rename reginfo.c. Change file description.
15913 (FORBIDDEN_INC_DEC_CLASSES): Remove.
15914 (reg_class_superclasses, forbidden_inc_dec_class, in_inc_dec): Remove.
15915 (init_reg_sets_1): Remove code for evaluation of
15916 reg_class_superclasses and losing_caller_save_reg_set.
15917 (init_regs): Remove init_reg_autoinc.
15918 (struct costs, costs, init_cost, ok_for_index_p_nonstrict,
15919 ok_for_base_p_nonstrict): Remove.
15920 (regclass_init): Rename to reginfo_init. Don't initialize init_cost.
15921 (pass_regclass_init): Rename to pass_reginfo_init. Modify
15922 corresponding entries.
15923 (dump_regclass, record_operand_costs, scan_one_insn,
15924 init_reg_autoinc, regclass, record_reg_classes, copy_cost,
15925 record_address_regs, auto_inc_dec_reg_p): Remove.
15926 (gt-regclass.h): Rename to gt-reginfo.h.
15928 * rtl.h (dump_global_regs, retry_global_alloc,
15929 build_insn_chain, dump_local_alloc, update_equiv_regs): Remove.
15931 * Makefile.in (RA_H): Remove.
15932 (OBJS-common): Remove global.o, local-alloc.o, and ra-conflict.o.
15933 Rename regclass.o to reginfo.o.
15934 (regclass.o): Rename to reginfo.o. Rename gt-regclass.h to
15936 (global.o, local-alloc.o, ra-conflict.o): Remove entries.
15937 (GTFILES): Rename regclass.c to reginfo.c.
15939 * passes.c (init_optimization_passes): Remove pass_local_alloc and
15940 pass_global_alloc. Rename pass_regclass_init to pass_reginfo_init.
15942 * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
15943 count_spilled_pseudo, find_reg, alter_reg, delete_output_reload):
15945 (finish_spills): Ditto. Remove code for !flag_ira.
15947 2009-01-29 Kenneth Zadeck <zadeck@naturalbridge.com>
15949 PR middle-end/35854
15950 * doc/invoke.texi (rtl debug options): Complete rewrite.
15951 * auto-inc-dec.c (pass_inc_dec): Rename pass from "auto-inc-dec"
15953 * mode-switching.c (pass_mode_switching): Rename pass from
15954 "mode-sw" to "mode_sw".
15955 * except.c (pass_convert_to_eh_ranges): Rename pass from
15956 "eh-ranges" to "eh_ranges".
15957 * lower-subreg.c (pass_lower_subreg): Renamed pass from "subreg"
15961 2009-01-29 Andrey Belevantsev <abel@ispras.ru>
15962 Alexander Monakov <amonakov@ispras.ru>
15964 PR middle-end/38857
15965 * sel-sched.c (count_occurrences_1): Check that *cur_rtx is a hard
15967 (move_exprs_to_boundary): Change return type and pass through
15968 should_move from move_op. Relax assert. Update usage ...
15969 (schedule_expr_on_boundary): ... here. Use should_move instead of
15971 (move_op_orig_expr_found): Indicate that insn was disconnected from
15973 (code_motion_process_successors): Do not call after_merge_succs
15974 callback if original expression was not found when traversing any of
15976 (code_motion_path_driver): Change return type. Update prototype.
15977 (move_op): Update comment. Add a new parameter (should_move). Update
15978 prototype. Set *should_move based on indication provided by
15979 move_op_orig_expr_found.
15981 2009-01-28 Pat Haugen <pthaugen@us.ibm.com>
15983 * doc/invoke.texi (avoid-indexed-addresses): Document new option.
15984 * config/rs6000/rs6000-protos.h (avoiding_indexed_address_p): Declare.
15985 * config/rs6000/rs6000.opt (avoid-indexed-addresses): New option.
15986 * config/rs6000/rs6000.c (rs6000_override_options): Default
15987 avoid-indexed-addresses on for Power6, off for everything else.
15988 (avoiding_indexed_address_p): New function.
15989 (rs6000_legitimize_address): Use it.
15990 (rs6000_legitimate_address): Likewise.
15991 * config/rs6000/rs6000.md (movXX_updateX): Likewise
15993 2009-01-28 Kazu Hirata <kazu@codesourcery.com>
15995 PR tree-optimization/38997
15996 * tree-loop-distribution.c (generate_memset_zero): Use
15997 POINTER_PLUS_EXPR for a pointer addition.
15999 2009-01-28 Andreas Krebbel <krebbel1@de.ibm.com>
16001 * config/s390/s390.md (bswap<mode>2): New pattern added.
16003 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
16005 * config/s390/s390.md (*tls_load_31): Added type attribute.
16007 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
16009 * config/s390/s390.md: Fix a few comments.
16011 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
16013 * config/s390/s390.md (*tmsi_reg): Fixed z10prop attribute.
16014 (*tm<mode>_full): Fixed z10prop attribute.
16015 (*tst<mode>_extimm): Fixed z10prop attribute.
16016 (*tst<mode>_cconly_extimm): Fixed z10prop attribute.
16017 (*tstqiCCT_cconly): Fixed z10prop attribute.
16018 (*cmpsi_ccu_zerohi_rlsi): Fixed z10prop attribute.
16019 (*movsi_larl): Fixed z10prop attribute.
16020 (*movsi_zarch): Fixed z10prop attribute.
16021 (*movsi_eas): Fixed z10prop attribute.
16022 (*movhi): Fixed z10prop attribute.
16023 (*movqi): Fixed z10prop attribute.
16024 (*movstrictqi): Fixed z10prop attribute.
16025 (*mov<mode>): Fixed z10prop attribute.
16026 (*movcc): Fixed z10prop attribute.
16027 (*sethighpartdi_64): Fixed z10prop attribute.
16028 (*zero_extendhi<mode>2_z10): Fixed z10prop attribute.
16029 (*negdi2_sign_cc): Fixed z10prop attribute.
16030 (*negdi2_sign): Fixed z10prop attribute.
16031 (*absdi2_sign_cc): Fixed z10prop attribute.
16032 (*absdi2_sign): Fixed z10prop attribute.
16033 (*negabsdi2_sign_cc): Fixed z10prop attribute.
16034 (*negabsdi2_sign): Fixed z10prop attribute.
16035 (*cmp_and_trap_signed_int<mode>): Fixed z10prop attribute.
16036 (*cmp_and_trap_unsigned_int<mode>): Fixed z10prop attribute.
16037 (doloop_si64): Fixed z10prop attribute.
16038 (doloop_si31): Fixed z10prop attribute.
16039 (doloop_long): Fixed z10prop attribute.
16040 (indirect_jump): Fixed z10prop attribute.
16041 (nop): Fixed z10prop attribute.
16042 (main_base_64): Fixed z10prop attribute.
16043 (reload_base_64): Fixed z10prop attribute.
16045 2009-01-28 Jakub Jelinek <jakub@redhat.com>
16047 PR rtl-optimization/38740
16048 * reorg.c (gate_handle_delay_slots): Avoid dbr scheduling
16050 * config/mips/mips.c (mips_reorg): Likewise.
16052 2009-01-28 Richard Guenther <rguenther@suse.de>
16054 PR tree-optimization/38926
16055 * tree-ssa-pre.c (add_to_value): Assert we add only expressions
16056 with the correct value id to a value.
16057 (do_regular_insertion): Use the value number of edoubleprime
16058 for the value number of the expr.
16061 2008-08-21 Richard Guenther <rguenther@suse.de>
16063 * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
16064 a PHI ask VN if it is already available.
16065 * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
16066 * tree-ssa-sccvn.c (vn_phi_lookup): Export.
16068 2009-01-28 Jakub Jelinek <jakub@redhat.com>
16070 PR middle-end/38934
16071 * tree-vrp.c (extract_range_from_assert): For LE_EXPR and LT_EXPR
16072 set to varying whenever max has TREE_OVERFLOW set, similarly
16073 for GE_EXPR and GT_EXPR and TREE_OVERFLOW min.
16075 2009-01-28 Richard Guenther <rguenther@suse.de>
16077 PR middle-end/38908
16078 * tree-ssa.c (warn_uninitialized_var): Do not warn for seemingly
16079 uninitialized aggregate uses in call arguments.
16081 2009-01-28 Paolo Bonzini <bonzini@gnu.org>
16083 PR tree-optimization/38984
16084 * tree-ssa-structalias.c (get_constraints_for_1): Do not use
16085 the nothing_id variable if -fno-delete-null-pointer-checks.
16087 2009-01-28 Uros Bizjak <ubizjak@gmail.com>
16090 * config/i386/i386.md (set_rip_rex64): Wrap operand 1 in label_ref.
16091 (set_got_offset_rex64): Ditto.
16093 2009-01-27 H.J. Lu <hongjiu.lu@intel.com>
16096 * doc/extend.texi: Improve local variable with asm reg.
16098 2009-01-27 Adam Nemet <anemet@caviumnetworks.com>
16100 * c.opt (Wpacked-bitfield-compat): Change init value to -1.
16101 * c-opts.c (c_common_post_options): If -W*packed-bitfield-compat
16102 was not supplied then set warn_packed_bitfield_compat to the
16103 default value of 1.
16104 * stor-layout.c (place_field): Check warn_packed_bitfield_compat
16107 2009-01-27 Richard Guenther <rguenther@suse.de>
16109 PR tree-optimization/38503
16110 * cfgexpand.c (expand_gimple_basic_block): Ignore
16111 GIMPLE_CHANGE_DYNAMIC_TYPE during expansion.
16112 * tree-ssa-structalias.c (set_uids_in_ptset): Do not prune
16113 variables that cannot have TBAA applied.
16114 (compute_points_to_sets): Do not remove GIMPLE_CHANGE_DYNAMIC_TYPE
16117 2009-01-27 Uros Bizjak <ubizjak@gmail.com>
16119 PR middle-end/38969
16120 * calls.c (initialize_argument_information): Do not wrap complex
16121 arguments in SAVE_EXPR.
16123 2009-01-26 Andreas Tobler <a.tobler@schweiz.org>
16125 * config/t-vxworks (LIBGCC2_INCLUDES): Fix typo.
16126 (INSTALL_LIBGCC): Revert typo commit.
16128 2009-01-26 Richard Guenther <rguenther@suse.de>
16130 PR tree-optimization/38745
16131 * tree-ssa-alias.c (update_alias_info_1): Exclude RESULT_DECL
16132 from special handling.
16134 2009-01-26 Richard Guenther <rguenther@suse.de>
16136 PR tree-optimization/38745
16137 * tree-ssa.c (execute_update_addresses_taken): Do not include
16138 variables that cannot possibly be a register in not_reg_needs.
16139 Do not clear TREE_ADDRESSABLE on vars that may not become
16141 * tree-ssa.c (update_alias_info_1): Include those in the set
16142 of addressable vars.
16144 2009-01-26 Richard Guenther <rguenther@suse.de>
16146 PR middle-end/38851
16147 * Makefile.in (tree-ssa-dse.o): Add langhooks.h.
16148 * tree-ssa-dse.c: Include langhooks.h
16149 (execute_simple_dse): Remove stores with zero size.
16151 2009-01-24 Jakub Jelinek <jakub@redhat.com>
16154 * c-typeck.c (c_finish_return): Handle POINTER_PLUS_EXPR the same way
16157 2009-01-24 Julian Brown <julian@codesourcery.com>
16159 * config/arm/t-linux-eabi (LIB2FUNCS_STATIC_EXTRA): Add
16160 config/arm/linux-atomic.c.
16161 * config/arm/linux-atomic.c: New.
16163 2009-01-24 Eric Botcazou <ebotcazou@adacore.com>
16165 * config/sparc/linux.h (DBX_REGISTER_NUMBER): Delete.
16166 * config/sparc/linux64.h (DBX_REGISTER_NUMBER): Likewise.
16167 * config/sparc/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
16169 2009-01-24 H.J. Lu <hongjiu.lu@intel.com>
16172 * c-opts.c (c_common_handle_option): Update warn_pointer_sign
16175 2009-01-24 Sebastian Pop <sebastian.pop@amd.com>
16177 PR tree-optimization/38953
16178 * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa.
16179 (scop_adjust_phis_for_liveouts): Initialize false_i to zero.
16180 (gloog): Split the exit of the scop when the scop exit is a loop exit.
16181 (graphite_transform_loops): Only call cleanup_tree_cfg if gloog
16184 2009-01-24 Paul Brook <paul@codesourcery.com>
16186 * config/arm/neon.md (neon_type): Move to arm.md.
16187 (neon_mov<VSTRUCT>): Add neon_type attribute.
16188 * config/arm/arm.md (neon_type): Move to here.
16189 (conds): Add "unconditioal" and use as default for NEON insns.
16191 2009-01-24 Ben Elliston <bje@au.ibm.com>
16193 * bitmap.h (BITMAP_FREE): Eliminate `implicit conversion from
16194 void *' warning from -Wc++-compat.
16195 * Makefile.in (dominance.o-warn): Remove.
16197 2009-01-23 Paolo Bonzini <bonzini@gnu.org>
16199 PR tree-optimization/38932
16200 * fold-const.c (fold_unary_ignore_overflow): New.
16201 * tree.h (fold_unary_ignore_overflow): Declare.
16202 * tree-ssa-ccp.c (ccp_fold): Use fold_unary_ignore_overflow.
16203 * tree-ssa-sccvn.c (visit_reference_op_load,
16204 simplify_unary_expression): Likewise.
16206 2009-01-22 Adam Nemet <anemet@caviumnetworks.com>
16208 * c-decl.c (finish_struct): Move code to set DECL_PACKED after
16209 DECL_BIT_FIELD is alreay known. Also inherit packed for bitfields
16210 regardless of their type.
16211 * c-common.c (handle_packed_attribute): Don't ignore packed on
16213 * c.opt (Wpacked-bitfield-compat): New warning option.
16214 * stor-layout.c (place_field): Warn if offset of a field changed.
16215 * doc/extend.texi (packed): Mention the ABI change.
16216 * doc/invoke.texi (-Wpacked-bitfield-compat): Document.
16217 (Warning Options): Add it to the list.
16219 2009-01-22 H.J. Lu <hongjiu.lu@intel.com>
16221 * c-opts.c (c_common_post_options): Fix a typo in comments.
16223 2009-01-22 Steve Ellcey <sje@cup.hp.com>
16225 PR middle-end/38615
16226 * gimplify.c (gimplify_init_constructor): Fix promotion of const
16227 variables to static.
16228 * doc/invoke.texi (-fmerge-all-constants): Update description.
16230 2009-01-22 Uros Bizjak <ubizjak@gmail.com>
16233 * config/i386/i386.md (*movsi_1): Use type "mmx" for alternative 2.
16234 (*movdi_1_rex64): Use type "mmx" for alternative 5.
16236 2009-01-22 Richard Earnshaw <rearnsha@arm.com>
16238 * arm.h (DATA_ALIGNMENT): Align structures, unions and arrays to
16240 (LOCAL_ALIGNMENT): Similarly.
16242 2009-01-22 Mark Shinwell <shinwell@codesourcery.com>
16243 Joseph Myers <joseph@codesourcery.com>
16245 * config/arm/arm.c (all_architectures): Add iWMMXt2 entry.
16246 * config/arm/arm-cores.def: New ARM_CORE entry for iWMMXt2.
16247 * config/arm/arm-tune.md: Regenerate.
16248 * doc/invoke.texi (ARM Options): Document -mcpu=iwmmxt2 and
16251 2009-01-22 Mark Shinwell <shinwell@codesourcery.com>
16253 * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Bump EABI
16254 version number to five.
16256 2009-01-22 Dodji Seketeli <dodji@redhat.com>
16259 * c-decl.c (clone_underlying_type): Revert PR c++/26693 changes.
16260 * c-common.c (set_underlying_type): Likewise.
16261 (is_typedef_decl ): Likewise
16263 (set_underlying_type): Likewise.
16264 (is_typedef_type): Likewise.
16266 2009-01-21 Vladimir Makarov <vmakarov@redhat.com>
16268 PR middle-end/38587
16269 * ira-color.c (coalesce_spill_slots): Don't coalesce allocnos
16272 2009-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
16275 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): New helper macro.
16276 (LIBGCC_SPEC): Don't define.
16277 (REAL_LIBGCC_SPEC): Define instead, using SHARED_LIBGCC_SPEC.
16279 2009-01-21 Uros Bizjak <ubizjak@gmail.com>
16281 PR rtl-optimization/38879
16282 * alias.c (base_alias_check): Unaligned access via AND address can
16283 alias all surrounding object types except those with sizes equal
16284 or wider than the size of unaligned access.
16286 2009-01-21 Dodji Seketeli <dodji@redhat.com>
16289 * c-decl.c (clone_underlying_type): Move this ...
16290 * c-common.c (set_underlying_type): ... here.
16291 Also, make sure the function properly sets TYPE_STUB_DECL() on
16292 the newly created typedef variant type.
16293 (is_typedef_decl ): New entry point.
16294 * tree.h: Added a new member member_types_needing_access_check to
16295 struct tree_decl_non_common.
16296 (set_underlying_type): New entry point.
16297 (is_typedef_type): Likewise.
16299 2009-01-21 Bingfeng Mei <bmei@broadcom.com>
16301 * alias.c (walk_mems_1, walk_mems_2, insn_alias_sets_conflict_p):
16302 Check whether two instructions have memory references that
16303 belong to conflicting alias sets. walk_mems_1 and walk_mems_2
16304 are helper functions for traversing.
16305 * alias.h (insn_alias_sets_confilict_p): New prototypes.
16306 * ddg.c (add_inter_loop_mem_dep): Call insn_alias_sets_conflict_p
16307 not to draw dependency edge for instructions with non-conflicting
16310 2009-01-20 Joseph Myers <joseph@codesourcery.com>
16313 * longlong.h: Update copyright years. Use soft-fp license notice.
16314 Sync __clz_tab declaration with glibc.
16316 2009-01-20 Steve Ellcey <sje@cup.hp.com>
16319 * doc/extend.texi (syscall_linkage): New.
16320 (version_id): Modify.
16322 2009-01-20 Andrew Pinski <andrew_pinski@playstation.sony.com>
16323 Richard Guenther <rguenther@suse.de>
16325 PR tree-optimization/38747
16326 PR tree-optimization/38748
16327 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Disable the VCE
16328 conversion if the base address is an indirect reference and the
16329 aliasing sets could cause issues.
16331 2009-01-20 Sebastian Pop <sebastian.pop@amd.com>
16333 * common.opt (fgraphite, fgraphite-identity): Add comment for
16334 explaining why these options are not documented.
16336 2009-01-20 Sebastian Pop <sebastian.pop@amd.com>
16338 * graphite.c (stmt_simple_for_scop_p): Also handle cases when
16339 gimple_call_lhs is NULL.
16341 2009-01-20 Paolo Bonzini <bonzini@gnu.org>
16344 * emit-rtl.c (adjust_address_1): Make sure memref is never
16347 2009-01-20 Ben Elliston <bje@au.ibm.com>
16349 * libgcov.c (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
16350 const qualifier from arg parameter. Remove unnecessary cast to char *.
16351 * gcov-io.h (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
16352 const qualifier from arg 2.
16354 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
16356 * config/darwin.h: Add static-libgfortran to LINK_SPEC.
16358 2009-01-19 Vladimir Makarov <vmakarov@redhat.com>
16361 * rtl.h (reinit_regs): New prototype.
16362 * regclass.c: Include ira.h.
16363 (reinit_regs): New.
16364 * Makefile.in (regclass.o): Add ira.h.
16365 * config/i386/i386.c (ix86_maybe_switch_abi): Use reinit_regs.
16367 2009-01-18 H.J. Lu <hongjiu.lu@intel.com>
16370 * c-common.c (handle_aligned_attribute): Use
16371 ATTRIBUTE_ALIGNED_VALUE instead of BIGGEST_ALIGNMENT for
16372 default alignment value.
16374 * c-cppbuiltin.c (c_cpp_builtins): Define __BIGGEST_ALIGNMENT__.
16376 * defaults.h (ATTRIBUTE_ALIGNED_VALUE): New.
16377 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Likewise.
16379 * doc/extend.texi: Update __attribute__ ((aligned)). Document
16380 __BIGGEST_ALIGNMENT__.
16382 * doc/tm.texi: Document ATTRIBUTE_ALIGNED_VALUE.
16384 2009-01-18 Richard Guenther <rguenther@suse.de>
16386 PR tree-optimization/38819
16387 * tree-flow.h (operation_could_trap_helper_p): Declare.
16388 * tree-eh.c (operation_could_trap_helper_p): Export.
16389 * tree-ssa-sccvn.h (vn_nary_may_trap): Declare.
16390 * tree-ssa-sccvn.c (vn_nary_may_trap): New function.
16391 * tree-ssa-pre.c (insert_into_preds_of_block): Check if we
16392 are about to insert a possibly trapping instruction and fail
16395 2009-01-18 Andreas Schwab <schwab@suse.de>
16397 * doc/install.texi (Configuration): Remove obsolete paragraph
16398 about use of --with-gnu-ld with --with-gnu-as.
16400 2009-01-18 Kazu Hirata <kazu@codesourcery.com>
16402 * doc/extend.texi, doc/gimple.texi, doc/invoke.texi,
16403 doc/md.texi, doc/sourcebuild.texi, doc/tm.texi: Fix typos.
16404 Follow spelling conventions.
16406 2009-01-18 Ben Elliston <bje@au.ibm.com>
16408 * bitmap.c (bitmap_obstack_alloc_stat): Adjust cast to eliminate
16409 C++ warning about implicit conversion from void * to struct
16411 (bitmap_obstack_free): Likewise for bitmap_element *.
16412 * Makefile.in (bitmap.o-warn): Remove.
16414 2009-01-17 Dave Korn <dave.korn.cygwin@gmail.com>
16416 * Makefile.in (BACKENDLIBS): Reorder to match dependencies.
16418 2009-01-17 Sebastian Pop <sebastian.pop@amd.com>
16419 Tobias Grosser <tobi.grosser@amd.com>
16421 * graphite.c (graphite_trans_scop_block): Do not block single
16424 2009-01-16 Alexandre Oliva <aoliva@redhat.com>
16426 * ebitmap.h (ebitmap_iter_init): Initialize all fields.
16427 * ipa-struct-reorg.c (gen_struct_type): Replace known-true
16428 test with assertion.
16430 2009-01-16 Richard Guenther <rguenther@suse.de>
16432 PR tree-optimization/38835
16433 PR middle-end/36227
16434 * fold-const.c (fold_binary): Remove PTR + INT -> (INT)(PTR p+ INT)
16435 and INT + PTR -> (INT)(PTR p+ INT) folding.
16436 * tree-ssa-address.c (create_mem_ref): Properly use POINTER_PLUS_EXPR.
16438 2009-01-16 Adam Nemet <anemet@caviumnetworks.com>
16441 * expmed.c (expand_shift): With SHIFT_COUNT_TRUNCATED, don't lift
16442 the subreg from a lowpart subreg if it is also casting the value.
16444 2009-01-16 Sebastian Pop <sebastian.pop@amd.com>
16445 Tobias Grosser <tobi.grosser@amd.com>
16447 * graphite.c (compare_prefix_loops): New.
16448 (build_scop_canonical_schedules): Rewritten.
16449 (graphite_transform_loops): Move build_scop_canonical_schedules
16450 after build_scop_iteration_domain.
16452 2009-01-16 Sebastian Pop <sebastian.pop@amd.com>
16453 Tobias Grosser <tobi.grosser@amd.com>
16455 * graphite.c (add_conditions_to_domain): Add the loops to
16456 the dimension of the iteration domain. Do copy the domain
16457 only when it exists.
16458 (build_scop_conditions_1): Do not call add_conditions_to_domain.
16459 (add_conditions_to_constraints): New.
16460 (can_generate_code_stmt, can_generate_code): Removed.
16461 (gloog): Do not call can_generate_code.
16462 (graphite_transform_loops): Call add_conditions_to_constraints
16463 after building the iteration domain.
16465 2009-01-16 Jakub Jelinek <jakub@redhat.com>
16467 PR tree-optimization/38789
16468 * tree-ssa-threadedge.c
16469 (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
16470 __builtin_constant_p.
16472 2009-01-16 Kenneth Zadeck <zadeck@naturalbridge.com>
16474 * dce.c (delete_unmarked_insns): Reversed the order that insns are
16475 examined before deleting them.
16477 2009-01-16 Richard Earnshaw <rearnsha@arm.com>
16479 * function.c (aggregate_value_p): Correctly extract the function
16480 type from CALL_EXPR_FN lookup.
16482 2009-01-16 Hariharan Sandanagobalane <hariharan@picochip.com>
16484 * config/picochip/picochip.c (picochip_override_options): Revert
16485 CFI asm flag disable commited previously.
16487 2009-01-15 Sebastian Pop <sebastian.pop@amd.com>
16488 Tobias Grosser <tobi.grosser@amd.com>
16489 Jan Sjodin <jan.sjodin@amd.com>
16491 * graphite.c (scan_tree_for_params): On substractions negate
16492 all the coefficients of the term.
16493 (clast_to_gcc_expression_red): New. Handle reduction expressions
16494 of more than two operands.
16495 (clast_to_gcc_expression): Call clast_to_gcc_expression_red.
16496 (get_vdef_before_scop): Handle also the case of default definitions.
16498 2009-01-15 Richard Sandiford <rdsandiford@googlemail.com>
16500 * caller-save.c (add_used_regs_1, add_used_regs): New functions.
16501 (insert_one_insn): Use them instead of REG_DEAD and REG_INC notes.
16502 Also use them when walking CALL_INSN_FUNCTION_USAGE.
16504 2009-01-15 H.J. Lu <hongjiu.lu@intel.com>
16505 Joey Ye <joey.ye@intel.com>
16507 PR middle-end/37843
16508 * cfgexpand.c (expand_stack_alignment): Don't update stack
16509 boundary nor check incoming stack boundary here.
16510 (gimple_expand_cfg): Update stack boundary and check incoming
16511 stack boundary here.
16513 2009-01-15 Kenneth Zadeck <zadeck@naturalbridge.com>
16515 * dce.c (find_call_stack_args, delete_unmarked_insns): Fixed comments.
16517 2009-01-14 Jakub Jelinek <jakub@redhat.com>
16519 PR rtl-optimization/38245
16520 * calls.c (expand_call): Add stack arguments to
16521 CALL_INSN_FUNCTION_USAGE even for pure calls (when
16522 ACCUMULATE_OUTGOING_ARGS) and even for args partially passed
16523 in regs and partially in memory or BLKmode arguments.
16524 (emit_library_call_value_1): Add stack arguments to
16525 CALL_INSN_FUNCTION_USAGE even for pure calls (when
16526 ACCUMULATE_OUTGOING_ARGS).
16527 * dce.c: Include tm_p.h.
16528 (find_call_stack_args): New function.
16529 (deletable_insn_p): Call it for CALL_P insns. Add ARG_STORES
16531 (mark_insn): Call find_call_stack_args for CALL_Ps.
16532 (prescan_insns_for_dce): Walk insns backwards in bb rather than
16533 forwards. Allocate and free arg_stores bitmap if needed, pass it
16534 down to deletable_insn_p, don't mark stores set in arg_stores
16535 bitmap, clear the bitmap at the beginning of each bb.
16536 * Makefile.in (dce.o): Depend on $(TM_P_H).
16538 2009-01-14 Michael Meissner <gnu@the-meissners.org>
16541 * config/i386/i386.c (print_operand): Add tests for 'D', 'C', 'F', 'f'
16542 to make sure the insn is a conditional test (bug 22599). Reformat a
16545 2009-01-14 Sebastian Pop <sebastian.pop@amd.com>
16547 PR middle-end/38431
16548 * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New.
16549 (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi.
16550 (gloog): Do not call cleanup_tree_cfg.
16551 (graphite_transform_loops): Call cleanup_tree_cfg after all
16552 scops have been code generated.
16554 2009-01-14 Basile Starynkevitch <basile@starynkevitch.net>
16555 * doc/gty.texi (Invoking the garbage collector): Added new node
16556 and section documenting ggc_collect.
16558 2009-01-14 Richard Guenther <rguenther@suse.de>
16560 PR tree-optimization/38826
16561 PR middle-end/38477
16562 * tree-ssa-structalias.c (emit_alias_warning): Emit the pointer
16563 initialization notes only if we actually emitted a warning.
16564 (intra_create_variable_infos): Add constraints for a result decl
16565 that is passed by hidden reference.
16566 (build_pred_graph): Mark all related variables non-direct on
16569 2009-01-14 Nick Clifton <nickc@redhat.com>
16571 * ira-conflicts.c: Include addresses.h for the definition of
16573 (ira_build_conflicts): Use base_reg_class instead of BASE_REG_CLASS.
16574 * Makefile.in: Add a dependency of ira-conflicts.o on addresses.h.
16576 2009-01-13 Vladimir Makarov <vmakarov@redhat.com>
16579 * Makefile.in (ira-lives.o): Add except.h.
16581 * ira-lives.c: Include except.h.
16582 (process_bb_node_lives): Process can_throw_internal.
16584 2009-01-13 Jakub Jelinek <jakub@redhat.com>
16586 PR rtl-optimization/38774
16587 * combine.c (simplify_set): When undoing cc_use change, don't do
16588 PUT_CODE on the newly created comparison, but instead put back the
16591 2009-01-13 Joseph Myers <joseph@codesourcery.com>
16593 * doc/invoke.texi (ARM Options): Update lists of -mcpu and -march
16594 values. Remove duplicate arm8 entry.
16596 2009-01-13 Sebastian Pop <sebastian.pop@amd.com>
16598 PR tree-optimization/38786
16599 * graphite.c (expand_scalar_variables_ssa_name): New, outlined from
16600 the SSA_NAME case of expand_scalar_variables_expr.
16601 Set the type of an expression to the type of its assign statement.
16602 (expand_scalar_variables_expr): Also gather the scalar computation
16603 used to index the memory access. Do not pass loop_p.
16604 Fix comment. Stop recursion on tcc_constant or tcc_declaration.
16605 (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
16606 the gimple_stmt_iterator where it inserts new code.
16607 Do not pass loop_p.
16608 (copy_bb_and_scalar_dependences): Do not pass loop_p.
16609 (translate_clast): Update call to copy_bb_and_scalar_dependences.
16611 2009-01-13 Sebastian Pop <sebastian.pop@amd.com>
16613 * graphite.h (debug_value): Removed.
16614 * graphite.c (debug_value): Removed.
16616 2009-01-13 Richard Earnshaw <rearnsha@arm.com>
16618 * config/arm/arm.c (output_move_double): Don't synthesize thumb-2
16619 ldrd/strd with two 32-bit instructions.
16621 2009-01-13 Richard Earnshaw <rearnsha@arm.com>
16623 * config/arm/arm.c (struct processors): Pass for speed down into
16624 cost helper functions.
16625 (const_ok_for_op): Handle COMPARE and inequality nodes.
16626 (arm_rtx_costs_1): Rewrite.
16627 (arm_size_rtx_costs): Update prototype.
16628 (arm_rtx_costs): Pass speed down to helper functions.
16629 (arm_slowmul_rtx_costs): Rework cost calculations.
16630 (arm_fastmul_rtx_costs, arm_xscale_rtx_costs): Likewise.
16631 (arm_9e_rtx_costs): Likewise.
16633 2009-01-13 Uros Bizjak <ubizjak@gmail.com>
16635 * config/alpha/alpha.c (alpha_legitimate_address_p): Explicit
16636 relocations of local symbols wider than UNITS_PER_WORD are not valid.
16637 (alpha_legitimize_address): Do not split local symbols wider than
16638 UNITS_PER_WORD into HIGH/LO_SUM parts.
16640 2009-01-13 Danny Smith <dannysmith@users.sourceforge.net>
16643 * gcc.c (process_command): Replace call to execvp with calls
16644 to pex_one and exit.
16646 2009-01-03 Anatoly Sokolov <aesok@post.ru>
16649 * config/avr/t-avr (LIB1ASMFUNCS): Add _tablejump_elpm.
16650 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Add
16651 variant for devices with 3-byte PC.
16652 (__tablejump_elpm__): New.
16654 2009-01-12 Jakub Jelinek <jakub@redhat.com>
16657 * c-parser.c (c_parser_postfix_expression): Allow `->' in
16658 offsetof member-designator, handle it as `[0].'.
16660 2009-01-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16662 * pa.c (pa_asm_output_mi_thunk): Use pc-relative branch to thunk
16663 function when not using named sections on targets with named sections
16664 if branch distance is less than 262132.
16666 2009-01-12 Richard Earnshaw <rearnsha@arm.com>
16668 * combine.c (combine_instructions): Recompute
16669 optimize_this_for_speed_p for each BB in the main combine loop.
16671 2009-01-12 Tomas Bily <tbily@suse.cz>
16674 * tree-loop-distribution.c (prop_phis): New function.
16675 (generate_builtin): Call prop_phis.
16676 * testsuite/gcc.dg/tree-ssa/pr38385.c: New file.
16678 2009-01-12 Jakub Jelinek <jakub@redhat.com>
16680 PR tree-optimization/38807
16681 * tree-ssa-reassoc.c (remove_visited_stmt_chain): Don't look at
16682 gimple_visited_p unless stmt is GIMPLE_ASSIGN.
16684 2009-01-11 Adam Nemet <anemet@caviumnetworks.com>
16686 * expmed.c (store_bit_field_1): Properly truncate the paradoxical
16687 subreg of op0 to the original op0.
16689 2009-01-11 Laurent GUERBY <laurent@guerby.net>
16691 * doc/sourcebuild.texi (Source Tree): Move up intl and fixinc.
16693 2009-01-11 Markus Schoepflin <markus.schoepflin@comsoft.de>
16696 * mips-tfile.c (parse_def): Fix parsing of def strings
16697 starting with digits.
16699 2009-01-10 Jakub Jelinek <jakub@redhat.com>
16702 * config/arm/arm.c (arm_is_long_call_p): Don't call
16703 arm_function_in_section_p if decl isn't a FUNCTION_DECL.
16705 2009-01-09 Steven Bosscher <steven@gcc.gnu.org>
16707 * regrename.c (regrename_optimize): Fix dumping.
16708 (find_oldest_value_reg): Preserve REG_POINTER.
16709 (copy_hardreg_forward_1): Likewise.
16711 2009-01-09 Diego Novillo <dnovillo@google.com>
16713 * gimple.h (struct gimple_statement_base) <uid>: Document
16714 the restrictions on its use.
16715 (gimple_uid): Tidy.
16716 (gimple_set_uid): Tidy.
16718 2009-01-09 Jakub Jelinek <jakub@redhat.com>
16720 * config/i386/i386.c (ix86_expand_movmem, ix86_expand_setmem): Add
16721 zero guard even if align_bytes != 0 and count is smaller than
16724 2009-01-09 Vladimir Makarov <vmakarov@redhat.com>
16726 PR rtl-optimization/38495
16727 * ira-emit.c (print_move_list, ira_debug_move_list): New functions.
16728 (add_range_and_copies_from_move_list): Print all added ranges.
16729 Add ranges to memory optimized destination.
16731 2009-01-09 Jakub Jelinek <jakub@redhat.com>
16735 * config/i386/i386.c (override_options): Reject
16736 -mstringop-strategy=rep_8byte with -m32.
16737 (ix86_expand_movmem): For size_needed == 1 set epilogue_size_needed
16738 to 1. Do count comparison against epilogue_size_needed at compile
16739 time even when count_exp was constant forced into register. For
16740 size_needed don't jump to epilogue, instead just avoid aligning
16741 and invoke the body algorithm. If need_zero_guard, add zero guard
16742 even if count is non-zero, but smaller than size_needed + number of
16743 bytes that could be stored for alignment.
16744 (ix86_expand_setmem): For size_needed == 1 set epilogue_size_needed
16745 to 1. If need_zero_guard, add zero guard even if count is non-zero,
16746 but smaller than size_needed + number of bytes that could be stored
16747 for alignment. Compare size_needed with epilogue_size_needed instead
16748 of desired_align - align, don't adjust size_needed, pass
16749 epilogue_size_needed to the epilogue expanders.
16752 * c-pretty-print.c (pp_c_expression): Handle GOTO_EXPR like BIND_EXPR.
16754 2009-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16756 * pa.c (last_address): Change to unsigned.
16757 (update_total_code_bytes): Change argument to unsigned. Don't
16758 check if insn addresses are set.
16759 (pa_output_function_epilogue): Set last_address to UINT_MAX if insn
16760 addresses are not set.
16761 (pa_asm_output_mi_thunk): Handle wrap when updating last_address.
16763 2009-01-09 Nick Clifton <nickc@redhat.com>
16765 * config/sh/symbian.c: Replace uses of DECL_INLINE with
16766 DECL_DECLARED_INLINE_P.
16768 2009-01-09 Jakub Jelinek <jakub@redhat.com>
16770 PR middle-end/38347
16771 * dojump.c (do_jump_by_parts_zero_rtx): Use mode instead of
16772 GET_MODE (op0) in operand_subword_force calls.
16774 PR middle-end/38771
16775 * fold-const.c (fold_unary): For COMPOUND_EXPR and COND_EXPR,
16776 fold_convert arg0 operands to TREE_TYPE (op0) first.
16778 2009-01-08 Vladimir Makarov <vmakarov@redhat.com>
16780 * params.def (ira-max-conflict-table-size): Decrease default value
16783 2009-01-08 Jakub Jelinek <jakub@redhat.com>
16785 PR tree-optimization/37031
16786 * lambda-code.c (lambda_collect_parameters): Call pointer_set_destroy
16788 (build_access_matrix): Reserve correct size for AM_MATRIX vector,
16789 allocate it using gc instead of heap, use VEC_quick_push instead of
16791 * graphite.c (build_access_matrix): Allocate AM_MATRIX vector using gc
16792 instead of heap, use VEC_quick_push instead of VEC_safe_push.
16793 * tree-data-ref.h (struct access_matrix): Change matrix to gc
16794 allocated vector from heap allocated.
16795 * lambda.h: Add DEF_VEC_ALLOC_P for gc allocated lambda_vector.
16796 * tree-loop-linear.c (linear_transform_loops): Allocate nest
16797 vector only after perfect_loop_nest_depth call.
16799 2009-01-08 Sebastian Pop <sebastian.pop@amd.com>
16800 Jan Sjodin <jan.sjodin@amd.com>
16802 PR tree-optimization/38559
16803 * graphite.c (debug_value, copy_constraint,
16804 swap_constraint_variables, scale_constraint_variable, ): New.
16805 (get_lower_bound, get_upper_bound): Removed.
16806 (graphite_trans_bb_strip_mine): Clean up this code that works
16807 only for constant number of iterations. Fully copy upper and
16808 lower bound constraints, not only the constant part of them.
16809 * graphite.h (debug_value): Declared.
16811 2009-01-08 Ira Rosen <irar@il.ibm.com>
16813 PR tree-optimization/37194
16814 * tree-vect-transform.c (vect_estimate_min_profitable_iters):
16815 Don't add the cost of cost model guard in prologue to scalar
16816 outside cost in case of known number of iterations.
16818 2009-01-07 Nathan Froyd <froydnj@codesourcery.com>
16819 Alan Modra <amodra@bigpond.net.au>
16821 * config/rs6000/rs6000.c (rs6000_legitimize_address): Check for
16822 non-word-aligned REG+CONST addressing.
16824 2009-01-07 Uros Bizjak <ubizjak@gmail.com>
16827 * config/alpha/alpha.c (alpha_end_function): For TARGET_ABI_OSF, call
16828 free_after_compilation when outputting a thunk.
16829 (alpha_output_mi_thunk_osf): Assert that we are processing a thunk.
16830 Do not call free_after_compilation here.
16832 2009-01-07 Uros Bizjak <ubizjak@gmail.com>
16834 * config/i386/i386.c (ix86_target_string): Use ARRAY_SIZE.
16835 (ix86_valid_target_attribute_inner_p): Ditto.
16837 2009-01-07 Jan Sjodin <jan.sjodin@amd.com>
16839 PR tree-optimization/38492
16840 PR tree-optimization/38498
16841 * tree-check.c (operator_is_linear, scev_is_linear_expression): New.
16842 * tree-chrec.h (scev_is_linear_expression): Declared.
16843 * graphite.c (graphite_cannot_represent_loop_niter): New.
16844 (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter.
16845 (graphite_loop_normal_form): Use gcc_assert.
16846 (scan_tree_for_params): Use CASE_CONVERT.
16847 (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New.
16848 (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes.
16849 Use gcc_assert. Discard scops that contain unhandled cases.
16850 (build_scop_conditions): Return a boolean status for unhandled cases.
16851 (strip_mine_profitable_p): Print the loop number, not its depth.
16852 (is_interchange_valid): Pass the depth of the loop nest, don't
16853 recompute it wrongly.
16854 (graphite_trans_bb_block): Same.
16855 (graphite_trans_bb_block): Print tentative of loop blocking.
16856 (graphite_trans_scop_block): Do not print that the loop has been
16858 (graphite_transform_loops): Do not handle scops that contain condition
16861 2009-01-07 H.J. Lu <hongjiu.lu@intel.com>
16863 AVX Programming Reference (December, 2008)
16864 * config/i386/avxintrin.h (_mm256_stream_si256): New.
16865 (_mm256_stream_pd): Likewise.
16866 (_mm256_stream_ps): Likewise.
16868 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVNTDQ256,
16869 IX86_BUILTIN_MOVNTPD256 and IX86_BUILTIN_MOVNTPS256.
16870 (ix86_special_builtin_type): Add VOID_FTYPE_PV4DI_V4DI.
16871 (bdesc_special_args): Add __builtin_ia32_movntdq256,
16872 __builtin_ia32_movntpd256 and __builtin_ia32_movntps256.
16873 (ix86_init_mmx_sse_builtins): Handle VOID_FTYPE_PV4DI_V4DI.
16874 (ix86_expand_special_args_builtin): Likewise.
16876 * config/i386/sse.md (AVXMODEDI): New.
16877 (avx_movnt<mode>): Likewise.
16878 (avx_movnt<mode>): Likewise.
16879 (<sse>_movnt<mode>): Remove AVX support.
16880 (sse2_movntv2di): Likewise.
16882 2009-01-07 Richard Guenther <rguenther@suse.de>
16884 PR middle-end/38751
16885 * fold-const.c (extract_muldiv): Remove obsolete comment.
16886 (fold_plusminus_mult_expr): Undo MINUS_EXPR
16887 to PLUS_EXPR canonicalization for the canonicalization.
16889 2009-01-07 Gerald Pfeifer <gerald@pfeifer.com>
16891 * doc/install.texi (alpha*-dec-osf*): Remove note on 32-bit
16892 hosted cross-compilers generating less efficient code.
16894 2009-01-06 Richard Sandiford <rdsandiford@googlemail.com>
16896 * function.h (rtl_data): Add a dbr_scheduled_p field.
16897 * reorg.c (dbr_schedule): Set it.
16898 (gate_handle_delay_slots): Check it.
16899 * config/mips/mips.c (mips_base_delayed_branch): Delete.
16900 (mips_reorg): Check flag_delayed_branch instead of
16901 mips_base_delayed_branch.
16902 (mips_override_options): Don't set mips_base_delayed_branch
16903 or flag_delayed_branch.
16905 2009-01-06 Richard Sandiford <rdsandiford@googlemail.com>
16907 PR rtl-optimization/38426.
16908 * ira.c (ira): Set current_function_is_leaf earlier.
16910 2009-01-06 Jakub Jelinek <jakub@redhat.com>
16912 PR rtl-optimization/38722
16913 * combine.c (try_combine): Don't modify PATTERN (i3) and notes
16914 too early, only set a flag and modify after last possible
16917 2009-01-06 Janis Johnson <janis187@us.ibm.com>
16920 * ginclude/float.h: Rename DECnn_DEN to DECnn_SUBNORMAL_MIN.
16921 * real.c (decimal_single_format): Correct values of emin and emax.
16922 (decimal_double_format): Ditto.
16923 (decimal_quad_format): Ditto.
16924 * c-cppbuiltin.c (builtin_define_decimal_float_constants): Adjust
16925 computation of DECnn_MIN and DECnn_MAX for corrected values of
16926 emin and emax. Define __DECnn_SUBNORMAL_MIN__ instead of
16927 __DECnn_MIN__, and adjust its computation for the corrected value
16930 2009-01-06 Jan Hubicka <jh@suse.cz>
16933 * config/i386/i386.c (ix86_expand_call): Use ARRAY_SIZE.
16935 2009-01-06 Gerald Pfeifer <gerald@pfeifer.com>
16937 * doc/contrib.texi (Contributors): Slightly adjust the end note.
16938 Add Robert Clark to the list of testers.
16940 2009-01-06 Jan Hubicka <jh@suse.cz>
16941 Kai Tietz <kai.tietz@onevision.com>
16943 * config/i386/i386.md (*msabi_syvabi): Add SSE regs clobbers.
16944 * config/i386/i386.c (ix86_expand_call): Add clobbers.
16946 2009-01-06 Jan Hubicka <jh@suse.cz>
16947 Kai Tietz <kai.tietz@onevision.com>
16949 * config/i386/i386.h (CONDITIONAL_CALL_USAGE): SSE regs are not used
16951 * config/i386/i386.c (struct ix86_frame): Add padding0 and nsseregs.
16952 (ix86_nsaved_regs): Count only general purpose regs.
16953 (ix86_nsaved_sseregs): New.
16954 (ix86_compute_frame_layout): Update nsseregs; set preferred alignment
16955 to 16 for w64; compute padding and size of sse reg save area.
16956 (ix86_emit_save_regs, ix86_emit_save_regs_using_mov): Save only
16957 general purpose regs.
16958 (ix86_emit_save_sse_regs_using_mov): New.
16959 (ix86_expand_prologue): Save SSE regs if needed.
16960 (ix86_emit_restore_regs_using_mov): Use only general purpose regs.
16961 (ix86_emit_restore_sse_regs_using_mov): New.
16962 (ix86_expand_epilogue): Save SSE regs if needed.
16964 2009-01-06 Jan Hubicka <jh@suse.cz>
16965 Kai Tietz <kai.tietz@onevision.com>
16967 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Enable for MSABI
16968 * config/i386/i386.c (init_cumulative_args): Disallow calls of MSABI
16969 functions when accumulate outgoing args is off.
16971 2009-01-06 H.J. Lu <hongjiu.lu@intel.com>
16974 * ira-color.c (ira_reuse_stack_slot): Check ENABLE_IRA_CHECKING
16975 before using pseudos_have_intersected_live_ranges_p.
16977 * ira-int.h (ira_assert): Always define.
16979 2009-01-06 H.J. Lu <hongjiu.lu@intel.com>
16981 AVX Programming Reference (December, 2008)
16982 * config/i386/avxintrin.h (_mm_permute2_pd): Removed.
16983 (_mm256_permute2_pd): Likewise.
16984 (_mm_permute2_ps): Likewise.
16985 (_mm256_permute2_ps): Likewise.
16986 * config/i386/i386.md (UNSPEC_VPERMIL2): Likewise.
16987 * config/i386/sse.md (avx_vpermil2<mode>3): Likewise.
16989 * config/i386/i386.c (ix86_builtins): Remove
16990 IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
16991 IX86_BUILTIN_VPERMIL2PD256 and IX86_BUILTIN_VPERMIL2PS256.
16992 (ix86_builtin_type): Remove V8SF_FTYPE_V8SF_V8SF_V8SI_INT,
16993 V4DF_FTYPE_V4DF_V4DF_V4DI_INT, V4SF_FTYPE_V4SF_V4SF_V4SI_INT
16994 and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
16995 (bdesc_args): Remove __builtin_ia32_vpermil2pd,
16996 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256 and
16997 __builtin_ia32_vpermil2ps256.
16998 (ix86_init_mmx_sse_builtins): Updated.
16999 (ix86_expand_args_builtin): Likewise.
17001 2009-01-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17003 * pa.c (output_call): Relocate non-jump insns in the delay slot of
17004 long absolute calls when generating PA 2.0 code.
17006 2009-01-05 Vladimir Makarov <vmakarov@redhat.com>
17008 PR rtl-optimization/38583
17009 * params.h (IRA_MAX_CONFLICT_TABLE_SIZE): New macro.
17011 * params.def (ira-max-conflict-table-size): New.
17013 * doc/invoke.texi (ira-max-conflict-table-size): Decribe.
17015 * ira.h (ira_conflicts_p): New external definition.
17017 * ira-conflicts.c (build_conflict_bit_table): Do not build too big
17018 table. Report this. Return result of building.
17019 (ira_build_conflicts): Use ira_conflicts_p. Check result of
17020 building conflict table.
17022 * ira-color.c (fast_allocation): Use num instead of ira_allocnos_num.
17023 (ira_color): Use ira_conflicts_p.
17025 * global.c: Include ira.h.
17026 (pseudo_for_reload_consideration_p, build_insn_chain): Use
17029 * Makefile.in (global.o): Add ira.h.
17031 * ira-build.c (mark_all_loops_for_removal,
17032 propagate_some_info_from_allocno): New.
17033 (remove_unnecessary_allocnos): Call
17034 propagate_some_info_from_allocno.
17035 (remove_low_level_allocnos): New.
17036 (remove_unnecessary_regions): Add parameter. Call
17037 mark_all_loops_for_removal and remove_low_level_allocnos. Pass
17038 parameter to remove_unnecessary_regions.
17039 (ira_build): Remove all regions but root if the conflict table was
17040 not built. Update conflict hard regs for allocnos crossing calls.
17042 * ira.c (ira_conflicts_p): New global.
17043 (ira): Define and use ira_conflicts_p.
17045 * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
17046 count_spilled_pseudo, find_reg, alter_reg, finish_spills,
17047 emit_input_reload_insns, delete_output_reload): Use ira_conflicts_p.
17049 2009-01-06 Ben Elliston <bje@au.ibm.com>
17051 * gengtype-lex.l (YY_NO_INPUT): Define.
17053 2009-01-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
17056 * c-common.c (handle_vector_size_attribute): Also reject
17057 BOOLEAN_TYPE types.
17059 2009-01-05 Sebastian Pop <sebastian.pop@amd.com>
17061 PR tree-optimization/38492
17062 * graphite.c (rename_map_elt, debug_rename_elt,
17063 debug_rename_map_1, debug_rename_map, new_rename_map_elt,
17064 rename_map_elt_info, eq_rename_map_elts,
17065 get_new_name_from_old_name, bb_in_sese_p): Moved around.
17066 (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use.
17067 (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb.
17068 (sese_build_livein_liveouts): New.
17069 (new_sese, free_sese): New.
17070 (new_scop): Call new_sese.
17071 (free_scop): Call free_sese.
17072 (rename_variables_from_edge, rename_phis_end_scop): Removed.
17073 (register_old_new_names): Renamed register_old_and_new_names.
17074 (register_scop_liveout_renames, add_loop_exit_phis,
17075 insert_loop_close_phis, struct igp,
17076 default_liveout_before_guard, add_guard_exit_phis,
17077 insert_guard_phis, copy_renames): New.
17078 (translate_clast): Call insert_loop_close_phis and insert_guard_phis.
17079 (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge.
17080 (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts.
17081 (scop_adjust_phis_for_liveouts): New.
17082 (gloog): Call scop_adjust_phis_for_liveouts.
17084 * graphite.h (struct sese): Documented. Added fields liveout,
17085 num_ver and livein.
17086 (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New.
17087 (new_sese, free_sese, sese_build_livein_liveouts): Declared.
17088 (struct scop): Added field liveout_renames.
17089 (SCOP_LIVEOUT_RENAMES): New.
17091 2009-01-05 Harsha Jagasia <harsha.jagasia@amd.com>
17093 PR tree-optimization/38510
17094 * graphite.c (recompute_all_dominators): Call mark_irreducible_loops.
17095 (translate_clast): Call recompute_all_dominators before
17097 (gloog): Call recompute_all_dominators before graphite_verify.
17099 2009-01-05 Harsha Jagasia <harsha.jagasia@amd.com>
17100 Jan Sjodin <jan.sjodin@amd.com>
17102 PR tree-optimization/38500
17103 * graphite.c (create_sese_edges): Call fix_loop_structure after
17106 2009-01-05 Joel Sherrill <joel.sherrill@oarcorp.com>
17108 * config.gcc: Add m32r*-*-rtems*.
17109 * config/m32r/rtems.h: New file.
17111 2009-01-05 Ben Elliston <bje@au.ibm.com>
17113 * Makefile.in (.po.gmo): Use mkinstalldirs, not test -d || mkdir.
17114 (.po.pox): Likewise.
17115 (po/gcc.pot): Likewise.
17117 2009-01-04 David S. Miller <davem@davemloft.net>
17119 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED_RTX): Delete.
17120 (STARTING_FRAME_OFFSET): Always set to zero.
17122 2009-01-04 Richard Sandiford <rdsandiford@googlemail.com>
17124 * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Add commentary.
17125 * tree-cfg.c (verify_gimple_assign_binary): Allow shifts of
17126 fixed-point types, and vectors of the same.
17128 2009-01-04 Richard Sandiford <rdsandiford@googlemail.com>
17130 * config/mips/sync.md (*mb_barrier): Rename to...
17131 (*memory_barrier): ...this.
17133 2009-01-04 Jonathan Wakely <jwakely.gcc@gmail.com>
17135 * doc/extend.texi (Function Attributes): Move @cindex after @item
17136 for 'artificial' and 'flatten'. Fix grammar for 'externally_visible'
17137 and put in alphabetical order. Fix 'target' name and put in order.
17138 * doc/invoke.texi (-Wstrict-null-sentinel, -fipa-matrix-reorg): Fix
17141 2009-01-04 Uros Bizjak <ubizjak@gmail.com>
17143 * config/s390/s390.md (UNSPEC_MB): Rename from UNSPECV_MB.
17144 (memory_barrier): Expand as unspec instead of unspec_volatile.
17145 Remove mem:BLK from insn operands. Use Pmode scratch register.
17146 (*memory_barrier): Define as unspec instead of unspec_volatile.
17147 Use (match_dup 0) as input operand.
17149 * config/sparc/sparc.md (UNSPEC_MEMBAR): Rename from UNSPECV_MEMBAR.
17150 * config/sparc/sync.md (memory_barrier): Expand as unspec instead of
17151 unspec_volatile. Remove mem:BLK from insn operands. Use Pmode
17152 scratch register. Remove operand 1.
17153 (*stbar): Define as unspec instead of unspec_volatile.
17154 Use (match_dup 0) as input operand, remove (const_int 8).
17155 (*membar): Define as unspec instead of unspec_volatile.
17156 Use (match_dup 0) as input operand, remove input operand 2.
17158 * config/xtensa/xtensa.md (UNSPEC_MEMW): Rename from UNSPECV_MEMW.
17159 (memory_barrier): Expand as unspec instead of unspec_volatile.
17160 Remove mem:BLK from insn operands. Use Pmode scratch register.
17161 (*memory_barrier): Define as unspec instead of unspec_volatile.
17162 Use (match_dup 0) as input operand.
17164 * config/ia64/sync.md (memory_barrier): Redefine as expander pattern.
17165 Remove mem:BLK from insn operands. Use Pmode scratch register.
17166 Set volatile flag on operand 0.
17167 (*memory_barrier): New insn pattern.
17169 * config/rs6000/sync.md (memory_barrier): Remove mem:BLK from
17171 (*memory_barrier): Use (match_dup 0) as input operand.
17173 * config/mips/sync.md (memory_barrier): Redefine as expander pattern.
17174 Remove mem:BLK from insn operands. Use Pmode scratch register.
17175 Set volatile flag on operand 0.
17176 (*mb_internal): New insn pattern.
17178 * config/alpha/sync.md (*memory_barrier): Rename from *mb_internal.
17180 2009-01-04 Steven Bosscher <steven@gcc.gnu.org>
17182 PR middle-end/38586
17183 * function.c (struct temp_slot): Move to the section of the file
17184 that deals with temp slots. Remove field 'address'.
17185 (temp_slot_address_table): New hash table of address -> temp slot.
17186 (struct temp_slot_address_entry): New struct, items for the table.
17187 (temp_slot_address_compute_hash, temp_slot_address_hash,
17188 temp_slot_address_eq, insert_temp_slot_address): Support functions
17190 (find_temp_slot_from_address): Rewrite to use the new hash table.
17191 (remove_unused_temp_slot_addresses): Remove addresses of temp
17192 slots that have been made available.
17193 (remove_unused_temp_slot_addresses_1): Call-back for htab_traverse,
17194 worker function for remove_unused_temp_slot_addresses.
17195 (assign_stack_temp_for_type): Don't clear the temp slot address list.
17196 Add the temp slot address to the address -> temp slot map.
17197 (update_temp_slot_address): Update via insert_temp_slot_address.
17198 (free_temp_slots): Call remove_unused_temp_slot_addresses.
17199 (pop_temp_slots): Likewise.
17200 (init_temp_slots): Allocate the address -> temp slot map, or empty
17201 the map if it is already allocated.
17202 (prepare_function_start): Initialize temp slot processing.
17204 2009-01-04 Steven Bosscher <steven@gcc.gnu.org>
17206 PR middle-end/38584
17207 * cfgexpand.c (estimate_stack_frame_size): Simplify the estimate:
17208 Calculate the size of all stack vars assuming no packing of stack
17209 vars will happen, replacing a quadratic algorithm with a linear one.
17211 2009-01-03 Jakub Jelinek <jakub@redhat.com>
17214 * expmed.c (store_bit_field_1): Don't modify op0 if movstrict insn
17217 2009-01-03 Diego Novillo <dnovillo@google.com>
17219 * doc/contrib.texi: Update contributions.
17221 2009-01-03 Jakub Jelinek <jakub@redhat.com>
17224 * builtins.c (fold_builtin_memory_op): Give up if either operand
17225 is volatile. Set srctype or desttype to non-qualified version
17229 * builtins.c (fold_builtin_expect): Only check DECL_WEAK for VAR_DECLs
17230 and FUNCTION_DECLs.
17232 2009-01-02 Kenneth Zadeck <zadeck@naturalbridge.com>
17234 PR rtl-optimization/35805
17235 * df-problems.c (df_lr_finalize): Add recursive call to resolve lr
17236 problem if fast dce is able to remove any instructions.
17237 * dce.c (dce_process_block): Fix dump message.
17239 2009-01-02 Mark Mitchell <mark@codesourcery.com>
17242 * tree-ssa-pre.c (compute_antic): Correct loop bounds.
17244 2009-01-02 Jakub Jelinek <jakub@redhat.com>
17246 PR middle-end/38690
17247 * tree-flow.h (op_code_prio, op_prio): New prototypes.
17248 * tree-pretty-print.c (op_code_prio): New function.
17249 (op_prio): No longer static. Use op_code_prio.
17250 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs):
17251 Use op_prio and op_code_prio to determine if () should be
17252 printed around operand(s) or not.
17254 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
17255 dump_gimple_call, dump_gimple_switch, dump_gimple_cond,
17256 dump_gimple_label, dump_gimple_try, dump_symbols, dump_gimple_phi,
17257 dump_gimple_mem_ops, dump_bb_header, dump_bb_end, pp_cfg_jump): Use
17258 pp_character instead of pp_string for single letter printing.
17260 2009-01-02 Richard Sandiford <rdsandiford@googlemail.com>
17262 * doc/extend.texi: Fix '#pragma GCC option' typo.
17264 2009-01-02 Richard Guenther <rguenther@suse.de>
17266 * doc/install.texi (--enable-checking): Mention different
17267 default for stage1.
17268 (--enable-stage1-checking): Document.
17270 2009-01-01 Andrew Pinski <pinskia@gmail.com>
17272 PR middle-end/30142
17273 * tree-cfg.c (verify_expr): Add INDIRECT_REF case. Change MODIFY_EXPR
17274 case to be an error.
17276 2009-01-02 Ben Elliston <bje@au.ibm.com>
17278 * config/fp-bit.h (pack_d): Constify argument.
17279 * config/fp-bit.c (makenan): Constify return type. Remove casts.
17280 (isnan): Constify argument.
17282 (iszero): Likewise.
17283 (pack_d): Likewise.
17284 (_fpadd_parts): Constify return type.
17285 (_fpmul_parts): Likewise.
17286 (_fpdiv_parts): Likewise.
17288 2009-01-01 Jakub Jelinek <jakub@redhat.com>
17291 * c-typeck.c (add_pending_init): Add IMPLICIT argument. Only
17292 warn about overwriting initializer with side-effects or
17293 -Woverride-init if !IMPLICIT.
17294 (output_init_element): Likewise. Pass IMPLICIT down to
17296 (process_init_element): Add IMPLICIT argument. Pass it down
17297 to output_init_element.
17298 (push_init_element, pop_init_level, set_designator): Adjust
17299 process_init_element callers.
17300 (set_nonincremental_init, set_nonincremental_init_from_string):
17301 Adjust add_pending_init callers.
17302 (output_pending_init_elements): Adjust output_init_element callers.
17303 * c-tree.h (process_init_element): Adjust prototype.
17304 * c-parser.c (c_parser_initelt, c_parser_initval): Adjust
17305 process_init_element callers.
17308 Copyright (C) 2009 Free Software Foundation, Inc.
17310 Copying and distribution of this file, with or without modification,
17311 are permitted in any medium without royalty provided the copyright
17312 notice and this notice are preserved.