1 2008-07-27 Victor Kaplansky <victork@il.ibm.com>
3 PR tree-optimization/35252
4 * tree-vect-analyze.c (vect_build_slp_tree): Make IMAGPART_EXPR and
5 REALPART_EXPR to be considered as same load operation.
7 2008-07-27 Eric Botcazou <ebotcazou@adacore.com>
9 PR tree-optimization/36830
10 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Hash operand #2.
11 (expressions_equal_p): Return false if only one operand is null.
13 2008-07-26 Gerald Pfeifer <gerald@pfeifer.com>
15 * doc/install.texi (powerpc-*-netbsd*): Remove redundant texinfo
18 2008-07-26 Olivier Hainque <hainque@adacore.com>
20 * collect2.c (symkind): New enum. Symbol kinds we care about.
21 (is_ctor_dtor): Return symkind instead of int. Adjust prototype,
22 code and head comment accordingly.
23 (scan_prog_file): Use symkind names instead of bare integers.
25 2008-07-25 Jan Hubicka <jh@suse.cz>
27 * cgraph.c (cgraph_function_possibly_inlined_p): Do not rely on DECL_INLINE.
28 * cgraphunit.c (record_cdtor_fn): Do not initialize DECL_INLINE
29 (cgraph_preserve_function_body_p): Do not rely on DECL_INLINE.
30 * dojump.c (clear_pending_stack_adjust): Likewise.
31 * print-tree.c (print_node): Ignore DECL_INLINE.
32 * tree-inline.c (inlinable_function_p): Likewise.
34 2008-07-25 Michael Meissner <gnu@the-meissners.org>
36 * doc/extend.texi (hot attribute): Document that the hot attribute
37 turns on -O3 for some ports.
38 (cold attribute): Document that the cold attribute turns on -Os
41 * doc/tm.texi (OPTIMIZATION_OPTIONS): Update documentation to
42 reflect function specific option support.
44 * target.h (struct target_option_hooks): Add fields to say whether
45 the cold attribute implies -Os and the hot attribute implies -O3.
47 * target-def.h (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION):
48 By default, do not turn on -Os for cold functions.
49 (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): By default, do
50 not turn on -O3 for hot functions.
52 * c-common.c (handle_hot_attribute): Use target hook to determine
53 if hot functions should enable -O3.
54 (handle_cold_attribute): Use target hook to determine if cold
55 functions should enable -Os.
57 * config/i386/i386.c (ix86_target_string): Add -m3dnowa support.
58 (override_options): Move disable scheduling to
60 (optimization_options): Disable scheduling here, not
62 (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
63 (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
65 * config/ia64/ia64.c (ia64_override_options): Move setting
66 scheduling flags to ia64_optimization_options.
67 (ia64_optimization_options): Disable scheduling options here, and
68 not in ia64_override_options.
69 (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
70 (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
72 2008-07-25 H.J. Lu <hongjiu.lu@intel.com>
75 * config/i386/i386.c (override_options): Don't clear TARGET_CMOVE.
77 2008-07-25 Martin Jambor <mjambor@suse.cz>
79 PR tree-optimization/36926
80 * ipa-prop.c (ipa_analyze_call_uses): Call
81 ipa_is_ssa_with_stmt_def instead of SSA_NAME_IS_DEFAULT_DEF.
83 2008-07-25 Joseph Myers <joseph@codesourcery.com>
85 * config/arm/iwmmxt.md (movv8qi_internal, movv4hi_internal,
86 movv2si_internal): Add mem = reg alternative.
88 2008-07-25 Andreas Tobler <a.tobler@schweiz.org>
91 * config/sparc/sparc.h (DEFAULT_PCC_STRUCT_RETURN): Define
92 DEFAULT_PCC_STRUCT_RETURN to 127.
94 2008-07-24 Jan Hubicka <jh@suse.cz>
96 * cgraphbuild.c (record_reference): Drop non-unit-at-a-time code.
97 (build_cgraph_edges): Likewise.
98 * cgraph.c (cgraph_node): Do not update assembler hash.
99 (cgraph_remove_node): Drop non-unit-at-a-time code.
100 * tree-pass.h (pass_O0_always_inline): Remove.
101 * ipa-reference.c (gate_reference): Remove unit-at-a-time check.
102 * toplev.c (process_options): Flag unit-at-a-time does not imply
104 * cgraphunit.c: Update comments.
105 (decide_is_function_needed): Drop non-unit-at-a-time mode.
106 (cgraph_assemble_pending_functions): Remove.
107 (cgraph_reset_node): Drop non-unit-at-a-time code.
108 (cgraph_finalize_function): Likewise.
109 (cgraph_analyze_function): Likewise.
110 (cgraph_finalize_compilation_unit): Likewise.
111 (cgraph_expand_function): Likewise.
112 (cgraph_optimize): Likesise.
113 (save_inline_function_body): Likewise.
114 * ipa-pure-const.c (gate_pure_const): Drop flag_unit_at_a_time check.
115 * tree-ssa-alias.c (maybe_be_aliased): Likewise.
116 * ipa-inline.c: Update comments.
117 (enum inlining_mode): remove INLINE_SPEED.
118 (cgraph_clone_inlined_nodes): Drop unit-at-a-time check.
119 (cgraph_mark_inline_edge): Likewise.
120 (try_inline): Likewise.
121 (cgraph_decide_inlining_incrementally): Likewise.
122 (cgraph_gate_inlining): Remove.
123 (cgraph_early_inlining): Remove flag_unit_at_a_time checks.
124 (cgraph_gate_early_inlining): Likewise.
125 (gate_inline_passes): Remove.
126 (pass_inline_parameters, pass_ipa_inline): Remove gates.
127 (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
128 pass_O0_always_inline): Remove.
129 * c-pch.c (c_pch_matching): Remove -funit-at-a-time.
130 * dwarf2out.c (reference_to_unused): Remove flag_unit_at_a_time check.
131 * opts.c (no_unit_at_a_time_default): Remove.
132 (decode_options): Remove flag_unit_at_a_time reset and warning.
133 * opts.h (no_unit_at_a_time_default): Remove.
134 * c-decl.c (diagnose_mismatched_decls): Do not require inline keyword
135 early in GNU dialect.
136 (merge_decls): Update comment; drop unit-at-a-time check.
137 (finish_decl): Likewise.
138 (grok_declaration): Remove flag_inline_trees code.
139 (finish_functions): Return on function returning non-void on all
141 * ipa-tye-escape.c (gate_type_escape_vars): Remove.
142 * cfgexpand.c (expand_one_static_var): Remove.
143 (expand_one_var): Remove expand_one_static_var call.
144 (expand_used_vars_for_block): Remove flag_unit_a_time check.
145 * c-opts.c (c_common_post_options): Remove flag_inline_trees code
146 and flag_unit_at_a-time compatibility checks.
147 * varasm.c (assemble_alias): Remove flag_unit_at_a_time check.
148 * tree-inline.c (flag_inline_trees): Remove.
149 (inlinable_function_p): Don't check it.
150 (expand_call_inline): Remove non-unit-at-a-time code.
151 * tree-inline.h (flag_inline_trees): Remove.
152 * tree-optimize.c (execute_early_local_optimizations): Remove
153 unit-at-a-time checks.
154 (tree_rest_of_compilation): Likewise.
155 * combine.c (setup_incoming_promotions): Likewise.
156 * tree-profile.c (tree_gen_ic_func_profiler): Likewise.
157 * tree-ssa-structalias.c (delete_points_to_sets): Likewise.
158 * passes.c (pass_inline_parameters): Update comments; remove
159 O0_alwaysinline pass.
160 (execute_one_ipa_transform_pass): Do not reset in_gimple_form.
161 (execute_one_pass): Likewise.
162 * i386.c (ix86_function_regparm): Remove unit-at-a-time check.
163 (ix86_function_sseregparm): Likewise.
164 * arm.c (arm_function_in_section_p): Likewise.
165 * bfin.c (bfin_load_pic_reg, bfin_function_ok_for_sibcall): Likewise.
166 * varpool.c: Update comments.
167 (decide_is_variable_needed): Remove unit-at-a-time checks.
168 (varpool_finalize_decl): Likewise.
170 2008-07-24 Kaz Kojima <kkojima@gcc.gnu.org>
172 * config/sh/sh.h (OPTIMIZATION_OPTIONS): Set flag_omit_frame_pointer
174 (OVERRIDE_OPTIONS): Check if flag_omit_frame_pointer is equal
177 2008-07-24 Kai Tietz <kai.tietz@onevision.com>
179 * config/i386/i386.c (get_dllimport_decl): Treat user_label_prefix for
180 imp symbol extension.
182 2008-07-23 Ian Lance Taylor <iant@google.com>
184 * tree-vrp.c (infer_value_range): Ignore asm statements when
185 looking for memory accesses for -fdelete-null-pointer-checks.
187 2008-07-24 Ben Elliston <bje@au.ibm.com>
189 * config/spu/spu-c.c (__vector_keyword): New variable.
190 (vector_keyword): Likewise.
191 (spu_categorize_keyword): New function.
192 (spu_macro_to_expand): Likewise.
193 (spu_cpu_cpp_builtins): Enable context-sensitive macros if not
194 compiling an ISO C dialect.
196 2008-07-24 Ben Elliston <bje@au.ibm.com>
198 * config/rs6000/rs6000-c.c: Move GTY(()) markers to match
201 2008-07-23 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
203 * configure: Regenerate.
204 * configure.ac: Require texinfo 4.7.
205 * doc/install.texi: Document texinfo 4.7 requirement.
207 2008-07-23 Martin Jambor <mjambor@suse.cz>
209 * ipa-cp.c (ipcp_print_edge_profiles): Test for node->analyzed
210 rather than for DECL_SAVED_TREE.
211 * ipa-prop.c: Include diagnostic.h.
212 (ipa_check_stmt_modifications): Check LHS of GIMPLE_MODIFY_EXPRs
214 (ipa_detect_param_modifications): Function rewritten from scratch.
215 (ipa_compute_jump_functions): Changed accesses to modification flags.
216 (ipa_free_node_params_substructures): Update flags destruction.
217 (ipa_node_duplication_hook): Update flags duplication.
218 (ipa_print_all_params_modified): Updated flag access.
219 * ipa-prop.h (struct ipa_param_flags): New structure.
220 (struct ipa_node_params): New field modification_analysis_done,
221 modified_flags changed into param_flags.
222 (ipa_is_ith_param_modified): Changed to use new flags.
223 * Makefile.in (ipa-prop.o): Add $(DIAGNOSTIC_H) to dependencies.
225 * ipa-prop.c (ipa_print_all_jump_functions): Moved here from
226 ipa-cp.c and split into two functions.
227 (ipa_print_node_jump_functions): New function.
228 (compute_scalar_jump_functions): New function.
229 (type_like_member_ptr_p): New function.
230 (compute_pass_through_member_ptrs): New function.
231 (fill_member_ptr_cst_jump_function): New function.
232 (determine_cst_member_ptr): New function.
233 (compute_cst_member_ptr_arguments): New function.
234 (ipa_compute_jump_functions): Complete rewrite.
235 * ipa-prop.h (enum jump_func_type): Make explicit that we depend
236 on IPA_UNKNOWN being zero. Added value IPA_CONST_MEMBER_PTR.
237 (struct ipa_member_ptr_cst): New structure.
238 (union jump_func_value): New field member_cst.
239 * ipa-cp.c (ipcp_lat_is_insertable): New function.
240 (ipcp_lattice_from_jfunc): Produces bottom lattices for unhandled
242 (ipcp_print_all_lattices): Slight fprintf rearrangement.
243 (ipcp_print_all_structures): Call ipa_print_all_jump_functions
244 instead of ipcp_print_all_jump_functions.
245 (ipcp_insert_stage): Use ipcp_lat_is_insertable, create replace maps
246 only for replacable scalars.
248 * doc/invoke.texi (Optimize options): Add description of
250 * common.opt (flag_indirect_inlining): New flag.
251 * opts.c (decode_options): Set flag_indirect_inlining when
254 * ipa-inline.c: Include ipa-prop.h.
255 (inline_indirect_intraprocedural_analysis): New function.
256 (inline_generate_summary): Allocate parameter and argument info
257 structures, call inline_indirect_intraprocedural_analysis on each
258 node when doing indirect inlining and deallocate indirect inlining
259 data structures in the end.
260 * ipa-prop.c (ipa_create_param_decls_array): Return if already done.
261 (free_all_ipa_structures_after_iinln): New function.
262 (free_all_ipa_structures_after_ipa_cp): Checks whether iinln will be
264 * Makefile.in (ipa-inline.o): Added $(IPA_PROP_H) to dependencies.
266 * cgraphbuild.c (compute_call_stmt_bb_frequency): New function.
267 (build_cgraph_edges): Call compute_call_stmt_bb_frequency instead
268 of computing the frequency separately.
269 (rebuild_cgraph_edges): Call compute_call_stmt_bb_frequency instead
270 of computing the frequency separately.
271 * ipa-cp.c (ipcp_print_all_structures): Replace a call to
272 ipa_print_all_param_modified with a call to ipa_print_all_param_flags.
273 * ipa-prop.c (ipa_get_member_ptr_load_param): New function.
274 (ipa_get_stmt_member_ptr_load_param): New function.
275 (ipa_is_ssa_with_stmt_def): New function.
276 (ipa_note_param_call): New function.
277 (ipa_analyze_call_uses): New function.
278 (ipa_analyze_stmt_uses): New function.
279 (ipa_analyze_params_uses): New function.
280 (ipa_free_node_params_substructures): Also free the param_calls linked
282 (ipa_node_duplication_hook): Also duplicate the param_calls linked list.
283 (ipa_print_node_param_flags): New function.
284 (ipa_print_all_params_modified): Renamed to ipa_print_all_param_flags.
285 (ipa_print_all_param_flags): Calls ipa_print_node_param_flags.
286 * ipa-prop.h (struct ipa_param_flags): New field called.
287 (struct ipa_param_call_note): New structure.
288 (struct ipa_node_params): New fields param_calls and
290 (ipa_is_ith_param_called): New function.
291 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
292 ipa_analyze_params_uses and dump parameter flags.
294 * ipa-inline.c (cgraph_decide_recursive_inlining): Call
295 ipa_propagate_indirect_call_infos if performing indirect inlining,
296 pass a new parameter new_edges to it.
297 (add_new_edges_to_heap): New fucntion.
298 (cgraph_decide_inlining_of_small_functions): New vector
299 new_indirect_edges for newly found indirect edges , call
300 ipa_propagate_indirect_call_infos after inlining.
301 (cgraph_decide_inlining): Call ipa_propagate_indirect_call_infos after
302 inlining if performing indirect inlining. Call
303 free_all_ipa_structures_after_iinln when doing so too.
304 (inline_generate_summary): Do not call
305 free_all_ipa_structures_after_iinln here.
306 * ipa-prop.c (update_jump_functions_after_inlining): New function.
307 (print_edge_addition_message): New function.
308 (update_call_notes_after_inlining): New function.
309 (propagate_info_to_inlined_callees): New function.
310 (ipa_propagate_indirect_call_infos): New function.
311 * ipa-prop.h: Include cgraph.h
312 (struct ipa_param_call_note): Fields reordered, new field processed.
313 * cgraph.h (cgraph_edge): Shrink loop_nest field to 31 bits, add a new
315 * cgraphunit.c (verify_cgraph_node): Allow indirect edges not to have
316 rediscovered call statements.
317 * cgraph.c (cgraph_create_edge): Initialize indirect_call to zero.
318 (dump_cgraph_node): Dump also the indirect_call flag.
319 (cgraph_clone_edge): Copy also the indirect_call flag.
320 * tree-inline.c (copy_bb): Do not check for fndecls from call
321 expressions, check for edge availability when moving clones.
322 (get_indirect_callee_fndecl): New function.
323 (expand_call_inline): If callee declaration is not apprent from
324 the statement, try calling get_indirect_callee_fndecl. Do not
325 issue warnings or call sorry when not inlinings an indirect edge.
326 * Makefile.in (IPA_PROP_H): Added $(CGRAPH_H) to dependencies.
328 * ipa-prop.c (ipa_print_node_param_flags): Make the dump format a
329 bit more frandly to matching.
330 * testsuite/g++.dg/ipa/iinline-1.C: New testcase.
331 * testsuite/gcc.dg/ipa/iinline-1.c: New testcase.
332 * testsuite/gcc.dg/ipa/modif-1.c: New testcase.
334 2008-07-23 Michael Meissner <gnu@the-meissners.org>
337 * opth-gen.awk: Suppress function specific features when building
339 * optc-gen.awk: Ditto.
341 2008-07-23 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
344 * diagnostic.c (pedwarn): Add opt parameter.
346 * c-tree.h (pedwarn_init): Add opt parameter.
347 (pedwarn_c90): Likewise.
348 (pedwarn_c99): Likewise.
349 * c-errors.c (pedwarn_c99): Likewise.
350 (pedwarn_c90): Likewise.
351 * toplev.h (pedwarn): Update declaration.
353 * c-lex.c: All calls to pedwarn changed.
354 * builtins.c: All calls to pedwarn changed.
355 * toplev.c: All calls to pedwarn changed.
356 * c-decl.c: All calls to pedwarn changed.
357 * c-typeck.c: All calls to pedwarn changed.
358 * c-common.c: All calls to pedwarn changed.
359 * c-parser.c: All calls to pedwarn changed.
361 2008-07-23 Michael Meissner <gnu@the-meissners.org>
362 Karthik Kumar <karthikkumar@gmail.com>
364 * attribs.c (file scope): Include c-common.h.
365 (decl_attributes): Add support for #pragma GCC optimize and
368 * targhooks.c (default_can_inline_p): New function that is the
369 default for the TARGET_CAN_INLINE_P target hook.
371 * targhooks.h (default_can_inline_p): Add declaration.
373 * tree.c (cl_optimization_node): New static tree for building
374 OPTIMIZATION_NODE tree.
375 (cl_target_option_node): New static tree for building
376 TARGET_OPTION_NODE tree.
377 (cl_option_hash_table): New hash table for hashing
378 OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
379 (cl_option_hash_hash): New function to provide the hash value for
380 OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
381 (cl_option_hash_eq): New function to provide an equality test for
382 OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
383 (tree_code_size): Add support for OPTIMIZATION_NODE and
384 TARGET_OPTION_NODE trees.
385 (tree_code_structure): Add support for OPTIMIZATION_NODE and
386 TARGET_OPTION_NODE trees.
387 (build_optimization_node): Build a tree that has all of the
388 current optimization options.
389 (build_target_option_node): Build a tree that has the target
390 options that might be changed on a per function basis.
392 * tree.h (file scope): Include options.h.
393 (DECL_FUNCTION_SPECIFIC_TARGET): New accessor macro.
394 (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
395 (TREE_OPTIMIZATION): Ditto.
396 (TREE_TARGET_SPECIFIC): Ditto.
397 (struct tree_function_decl): Add fields for remembering the
398 current optimization options and target specific options.
399 (struct tree_optimization_option): New tree variant that remembers
400 the optimization options.
401 (struct tree_target_option): New tree variant that remembers the
402 target specific flags that might change for compiling a particular
404 (union tree_node): Include tree_optimization_option and
405 tree_target_option fields.
406 (enum tree_index): Add TI_OPTIMIZATION_DEFAULT,
407 TI_OPTIMIZATION_CURRENT, TI_OPTIMIZATION_COLD,
408 TI_OPTIMIZATION_HOT, TI_TARGET_OPTION_DEFAULT,
409 TI_TARGET_OPTION_CURRENT, TI_CURRENT_OPTION_PRAGMA,
410 TI_CURRENT_OPTIMIZE_PRAGMA entries for saving function specific
411 optimization and target options.
412 (optimization_default_node): New macro to refer to global_trees
414 (optimization_current_node): Ditto.
415 (optimization_cold_node): Ditto.
416 (optimization_hot_node): Ditto.
417 (target_option_default_node): Ditto.
418 (target_option_current_node): Ditto.
419 (current_option_pragma): Ditto.
420 (current_optimize_pragma): Ditto.
422 * target.h (struct gcc_target): Add valid_option_attribute_p,
423 target_option_save, target_option_restore, target_option_print,
424 target_option_pragma_parse, and can_inline_p hooks.
426 * toplev.h (parse_optimize_options): Add declaration.
427 (fast_math_flags_struct_set_p): Ditto.
429 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): New function to
430 adjust the current __OPTIMIZE__, etc. macros when #pragma GCC
433 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Call
434 tree_can_inline_p hook to see if one function can inline another.
435 (cgraph_decide_inlining): Ditto.
436 (cgraph_decide_inlining_incrementally): Ditto.
438 * opts.c (decode_options): Add support for running multiple times
439 to allow functions with different target or optimization options
440 than was specified on the command line.
441 (fast_math_flags_struct_set_p): New function that is similar to
442 fast_math_flags_set_p, except it uses the values in the
443 cl_optimization structure instead of global variables.
445 * optc-gen.awk: Add support for TargetSave to allow a back end to
446 declare new fields that need to be saved when using function
447 specific options. Include flags.h and target.h in the options.c
448 source. Add support for Save to indicate which options can be set
449 for individual functions. Generate cl_optimize_save,
450 cl_optimize_restore, cl_optimize_print, cl_target_option_save,
451 cl_target_option_restore, cl_target_option_print functions to
452 allow functions to use different optimization or target options.
454 * opt-functions.awk (var_type_struct): Return the type used for
455 storing the field in a structure.
457 * opth-gen.awk: Add support for TargetSave to allow a back end to
458 declare new fields that need to be saved when using function
459 specific options. Add support for Save to indicate which options
460 can be set for individual functions. Only generate one extern for
461 Mask fields. Generate cl_optimization and cl_target_option
462 structures to remember optimization and target options.
464 * treestruct.def (TS_OPTIMIZATION): Add support for garbage
465 collecting new tree nodes.
466 (TS_TARGET_OPTION): Ditto.
468 * c-decl.c (merge_decls): Merge function specific target and
469 optimization options.
471 * function.c (invoke_set_current_function_hook): If the function
472 uses different optimization options, change the global variables
475 * coretypes.h (struct cl_optimization): Add forward reference.
476 (struct cl_target_option): Ditto.
478 * c-pragma.c (option_stack): New static vector to remember the
479 current #pragma GCC option stack.
480 (handle_pragma_option): New function to support #pragma GCC option
481 to change target options.
482 (optimize_stack): New static vector to remember the current
483 #pragma GCC optimize stack.
484 (handle_pragma_optimize): New function to support #pragma GCC
485 optimize to change optimization options.
486 (init_pragma): Add support for #pragma GCC optimize and #pragma
489 * tree.def (OPTIMIZATION_NODE): New tree code for remembering
490 optimization options.
491 (TARGET_OPTION_NODE): New tree code for remembering certain target
494 * print-tree.c (print_node): Add support for OPTIMIZATION_NODE and
495 TARGET_OPTION_NODE trees.
497 * common.opt (-O): Add Optimization flag.
499 (-fmath-errno): Ditto.
500 (-falign-functions): Add UInteger flag to make sure flag gets full
501 int in cl_optimization structure.
502 (-falign-jumps): Ditto.
503 (-falign-labels): Ditto.
504 (-falign-loops): Ditto.
505 (-fsched-stalled-insns): Ditto.
506 (-fsched-stalled-insns-dep): Ditto.
508 * target-def.h (TARGET_VALID_OPTION_ATTRIBUTE_P): Add default
510 (TARGET_OPTION_SAVE): Ditto.
511 (TARGET_OPTION_RESTORE): Ditto.
512 (TARGET_OPTION_PRINT): Ditto.
513 (TARGET_OPTION_PRAGMA_PARSE): Ditto.
514 (TARGET_CAN_INLINE_P): Ditto.
515 (TARGET_INITIALIZER): Add new hooks.
517 * tree-inline.c (tree_can_inline_p): New function to determine
518 whether one function can inline another. Check if the functions
519 use compatible optimization options, and also call the backend
522 * tree-inline.h (tree_can_inline_p): Add declaration.
524 * c-common.c (c_common_attribute): Add support for option and
526 (handle_option_attribute): Add support for the option attribute to
527 allow the user to specify different target options for compiling a
529 (handle_optimize_attribute): Add support for the optimize
530 attribute to allow the user to specify different optimization
531 options for compiling a specific function.
532 (handle_hot_attribute): Turn on -O3 optimization for this one
533 function if it isn't the default optimization level.
534 (handle_cold_attribute): Turn on -Os optimization for this one
535 function if it insn't the default optimization.
536 (const_char_p): New const char * typedef.
537 (optimize_args): New static vector to remember the optimization
539 (parse_optimize_options): New function to set up the optimization
540 arguments from either the optimize attribute or #pragma GCC
543 * c-common.h (c_cpp_builtins_optimize_pragma): Add declaration.
544 (builtin_define_std): Ditto.
546 * config.gcc (i[3467]86-*-*): Add i386-c.o to C/C++ languages.
547 Add t-i386 Makefile fragment to add i386-c.o and i386.o
551 * Makefile.in (TREE_H): Add options.h.
552 (options.o): Add $(TARGET_H) $(FLAGS_H) dependencies.
554 * doc/extend.texi (option attribute): Document new attribute.
555 (optimize attribute): Ditto.
556 (hot attribute): Document hot attribute sets -O3.
557 (cold attribute): Document cold attribute sets -Os.
558 (#pragma GCC option): Document new pragma.
559 (#pragma GCC optimize): Ditto.
561 * doc/options.texi (TargetSave): Document TargetSave syntax.
562 (UInteger): Document UInteger must be used for certain flags.
563 (Save): Document Save option to create target specific options
564 that can be saved/restored on a function specific context.
566 * doc/c-tree.texi (DECL_FUNCTION_SPECIFIC_TARGET): Document new
568 (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
570 * doc/tm.texi (TARGET_VALID_OPTION_ATTRIBUTE_P): Document new
572 (TARGET_OPTION_SAVE): Ditto.
573 (TARGET_OPTION_RESTORE): Ditto.
574 (TARGET_OPTION_PRINT): Ditto.
575 (TARGET_OPTION_PRAGMA_PARSE): Ditto.
576 (TARGET_CAN_INLINE_P): Ditto.
578 * doc/invoke.texi (-mfpmath=sse+387): Document as an alias for
580 (-mfpmath=both): Ditto.
582 2008-07-23 Michael Meissner <gnu@the-meissners.org>
583 Karthik Kumar <karthikkumar@gmail.com>
585 * config/i386/i386.h (TARGET_ABM): Move switch into
587 (TARGET_POPCNT): Ditto.
588 (TARGET_SAHF): Ditto.
590 (TARGET_PCLMUL): Ditto.
591 (TARGET_CMPXCHG16B): Ditto.
592 (TARGET_RECIP): Move switch into target_flags.
593 (TARGET_FUSED_MADD): Ditto.
594 (ix86_arch_features): Make an unsigned char type.
595 (ix86_tune_features): Ditto.
596 (OVERRIDE_OPTIONS): Add bool argument to override_options call.
597 (TARGET_CPU_CPP_BUILTINS): Move into ix86_target_macros.
598 (REGISTER_TARGET_PRAGMAS): Define, call ix86_register_pragmas.
600 * config/i386/i386.opt (arch): New TargetSave field to define
601 fields that need to be saved for function specific option
605 (branch_cost): Ditto.
606 (ix86_isa_flags_explicit): Ditto.
607 (tune_defaulted): Ditto.
608 (arch_specified): Ditto.
609 (-m128-long-double): Add Save flag to save option for target
610 specific option support.
612 (-maccumulate-outgoing-args): Ditto.
613 (-malign-double): Ditto.
614 (-malign-stringops): Ditto.
615 (-mfancy-math-387): Ditto.
616 (-mhard-float): Ditto.
618 (-minline-all-stringops): Ditto.
619 (-minline-stringops-dynamically): Ditto.
620 (-mms-bitfields): Ditto.
621 (-mno-align-stringops): Ditto.
622 (-mno-fancy-math-387): Ditto.
623 (-mno-push-args): Ditto.
624 (-mno-red-zone): Ditto.
625 (-mpush-args): Ditto.
628 (-msseregparm): Ditto.
629 (-mstack-arg-probe): Ditto.
644 (-mrecip): Move flag into target_flags.
646 (-mno-fused-madd): Ditto.
647 (-mfused-madd): Ditto.
648 (-mabm): Move flag into ix86_isa_flags.
655 * config/i386/i386-c.c: New file for #pragma support.
656 (ix86_target_macros_internal): New function to #define or #undef
657 target macros based when the user uses the #pragma GCC option to
658 change target options.
659 (ix86_pragma_option_parse): New function to add #pragma GCC option
661 (ix86_target_macros): Move defining the target macros here from
662 TARGET_CPU_CPP_BUILTINS in i386.h.
663 (ix86_register_pragmas): Register the #pragma GCC option hook. If
664 defined, initialize any subtarget #pragmas.
666 * config/i386/darwin.h (REGISTER_SUBTARGET_PRAGMAS): Rename from
667 REGISTER_TARGET_PRAGMAS.
669 * config/i386/t-i386: New file for x86 dependencies.
670 (i386.o): Make dependencies mirror the include files used.
671 (i386-c.o): New file, add dependencies.
673 * config/i386/i386-protos.h (override_options): Add bool
675 (ix86_valid_option_attribute_tree): Add declaration.
676 (ix86_target_macros): Ditto.
677 (ix86_register_macros): Ditto.
679 * config/i386/i386.c (ix86_tune_features): Move initialization of
680 the target masks to initial_ix86_tune_features to allow functions
681 to have different target options. Make type unsigned char,
682 instead of unsigned int.
683 (initial_ix86_tune_features): New static vector to hold processor
684 masks for the tune variables.
685 (ix86_arch_features): Move initialization of the target masks to
686 initial_ix86_arch_features to allow functions to have different
687 target options. Make type unsigned char, instead of unsigned
689 (initial_ix86_arch_features): New static vector to hold processor
690 masks for the arch variables.
691 (enum ix86_function_specific_strings): New enum to describe the
692 string options used for attribute((option(...))).
693 (ix86_target_string): New function to return a string that
694 describes the target options.
695 (ix86_debug_options): New function to print the current options in
697 (ix86_function_specific_save): New function hook to save the
698 function specific global variables in the cl_target_option
700 (ix86_function_specific_restore): New function hook to restore the
701 function specific variables from the cl_target_option structure to
702 the global variables.
703 (ix86_function_specific_print): New function hook to print the
704 target specific options in the cl_target_option structure.
705 (ix86_valid_option_attribute_p): New function hook to validate
706 attribute((option(...))) arguments.
707 (ix86_valid_option_attribute_tree): New function that is common
708 code between attribute((option(...))) and #pragma GCC option
709 support that parses the options and returns a tree holding the
711 (ix86_valid_option_attribute_inner_p): New helper function for
712 ix86_valid_option_attribute_tree.
713 (ix86_can_inline_p): New function hook to decide if one function
714 can inline another on a target specific basis.
715 (ix86_set_current_function); New function hook to switch target
716 options if the user used attribute((option(...))) or #pragma GCC
718 (ix86_tune_defaulted): Move to static file scope from
720 (ix86_arch_specified): Ditto.
721 (OPTION_MASK_ISA_AES_SET): New macro for moving switches into
723 (OPTION_MASK_ISA_PCLMUL_SET): Ditto.
724 (OPTION_MASK_ISA_ABM_SET): Ditto.
725 (OPTION_MASK_ISA_POPCNT_SET): Ditto.
726 (OPTION_MASK_ISA_CX16_SET): Ditto.
727 (OPTION_MASK_ISA_SAHF_SET): Ditto.
728 (OPTION_MASK_ISA_AES_UNSET): Ditto.
729 (OPTION_MASK_ISA_PCLMUL_UNSET): Ditto.
730 (OPTION_MASK_ISA_ABM_UNSET): Ditto.
731 (OPTION_MASK_ISA_POPCNT_UNSET): Ditto.
732 (OPTION_MASK_ISA_CX16_UNSET): Ditto.
733 (OPTION_MASK_ISA_SAHF_UNSET): Ditto.
734 (struct ptt): Move to static file scope from override_options.
735 (processor_target_table): Ditto.
737 (ix86_handle_option): Add support for options that are now isa
739 (override_options): Add support for declaring functions that
740 support different target options than were specified on the
741 command line. Move struct ptt, processor_target_table, cpu_names,
742 ix86_tune_defaulted, ix86_arch_specified to static file scope.
743 Add bool argument. Fix up error messages so the appropriate error
744 is given for either command line or attribute.
745 (ix86_previous_fndecl): New static to remember previous function
746 declaration to see if we need to change target options.
747 (ix86_builtins_isa): New array to record the ISA of each builtin
749 (def_builtin): Always create the builtin function, even if the
750 current ISA doesn't support it.
751 (ix86_init_mmx_sse_builtins): Remove TARGET_AES and TARGET_PCLMUL
752 tests for those builtins.
753 (ix86_init_builtins): Remove TARGET_MMX test for calling
754 ix86_init_mmx_sse_builtins.
755 (ix86_expand_builtin): If the current ISA doesn't support a given
756 builtin, signal an error.
757 (TARGET_VALID_OPTION_ATTRIBUTE_P): Set target hook.
758 (TARGET_SET_CURRENT_FUNCTION): Ditto.
759 (TARGET_OPTION_SAVE): Ditto.
760 (TARGET_OPTION_RESTORE): Ditto.
761 (TARGET_OPTION_PRINT): Ditto.
762 (TARGET_CAN_INLINE_P): Ditto.
764 2008-07-22 Rafael Avila de Espindola <espindola@google.com>
766 * c-typeck.c (build_external_ref): Don't call assemble_external.
767 * final.c (output_operand): Call assemble_external.
769 2008-07-21 DJ Delorie <dj@redhat.com>
771 * config/h8300/h8300.c (h8300_hard_regno_scratch_ok): New.
772 (TARGET_HARD_REGNO_SCRATCH_OK): Define.
774 2008-07-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
776 * config/spu/spu.md ("div<mode>3"): Convert into expander, move
777 original insn and splitter contents into ...
778 ("*div<mode>3_fast"): ... this new pattern. Enable only if
779 flag_unsafe_math_optimizations. Add dummy scratch register.
780 ("*div<mode>3_adjusted"): New insn and splitter. Enable only if
781 !flag_unsafe_math_optimizations. Returns number with next
782 highest magnitude if this is still less or equal to the true
783 quotient in magnitude.
785 2008-07-21 Rafael Avila de Espindola <espindola@google.com>
787 * Makefile.in: Replace toplev.h with TOPLEV_H.
788 * c-decl.c (merge_decls): Don't set DECL_IN_SYSTEM_HEADER.
789 * c-lex.c (fe_file_change): Don't set in_system_header.
790 * c-parser.c (c_token): Remove in_system_header.
791 (c_lex_one_token): Don't set in_system_header.
792 (c_parser_set_source_position_from_token): Don't set in_system_header.
793 * diagnostic.c (diagnostic_report_diagnostic): Use location from
796 * diagnostic.h (diagnostic_report_warnings_p): Add LOC argument.
797 * flags.h (in_system_header): Remove.
798 * function.c (saved_in_system_header): Remove.
799 (push_cfun): Don't set in_system_header.
800 (pop_cfun): Don't set in_system_header.
801 (push_struct_function): Don't set in_system_header.
802 * input.h (expanded_location): Add sysp.
803 (in_system_header_at): New.
804 (in_system_header): New.
805 * toplev.c (in_system_header): Remove.
806 * toplev.h: Include input.h
808 * tree-cfg.c (execute_warn_function_return): Call warning_at.
809 * tree-ssa.c (warn_uninit): Call warning_at.
810 (warn_uninitialized_var): Update calls to warn_uninit.
811 (warn_uninitialized_phi): Update calls to warn_uninit.
812 * tree.c (make_node_stat): Don't set DECL_IN_SYSTEM_HEADER.
813 (expand_location): Initialize xloc.sysp.
814 * tree.h (DECL_IN_SYSTEM_HEADER): Use in_system_header_at.
815 (tree_decl_with_vis): Remove in_system_header_flag.
817 2008-07-21 Andreas Krebbel <krebbel1@de.ibm.com>
820 * recog.c (asm_operand_ok): Change the order of the extra
821 memory constraint checks.
823 2008-07-20 Andrew Pinski <andrew_pinski@playstation.sony.com>
826 * tree-switch-conversion.c (build_one_array): Call
827 varpool_mark_needed_node and varpool_finalize_decl
828 instead of assemble_variable.
830 2008-07-19 Jan Hubicka <jh@suse.cz>
832 * cgraph.c (cgraph_add_new_function): Do early local passes.
833 * tree-nrv.c (gate_pass_return_slot): New gate.
834 (pass_nrv): Add the gate.
835 * tree-ssa-coalese.c (hash_ssa_name_by_var, eq_ssa_name_by_var): New
837 (coalesce_ssa_name): Coalesce SSA names.
838 * tree-ssa-live.c (remove_unused_locals): Be more conservative when
839 not optimizing so unused user vars remains visible.
840 * common.opt (flag_tree_ter): Always enable by default.
841 * tree-ssa-ter.c: Include flags.h
842 (is_replaceable_p): Check that locations match; when aliasing is missing
843 be conservative about loads.
844 * tree-optimize.c (gate_init_datastructures): Remove.
845 (pass_init_datastructures): New.
846 * passes.c: Reorder passes so we always go into SSA.
848 2008-07-19 Jan Hubicka <jh@suse.cz>
850 * doc/extend.texi (flatten attribute): Remove note about unit-at-a-time
851 * doc/invoke.texi (--combine): Likewise.
852 (-finline-functions-called-once): Update levels when enabled.
853 (-funit-at-a-time): Document new behaviour.
854 (-ftoplevel-reorder): Document that it is enabled -O0 and imply
855 -fno-section-anchors when disabled explicitly.
856 (inline params): They are not ignored now.
857 (precompiled headers): Remove unit-at-a-time as being incompatible.
858 * opts.c (decode_options): Handle unit-at-a-time as alias;
859 imply -fno-section-anchors when toplevel reorder is disabled
861 * common.opt (ftoplevel-reorder): Set default value to 2.
862 (funit-at-a-time): Set default value to 1.
863 * config/rs6000/rs6000.c (optimization_options): Set section anchors
866 2008-07-19 Jan Hubicka <jh@suse.cz>
868 * builtins.c (expand_builtin_int_roundingfn,
869 expand_builtin_int_roundingfn_2): Do not take subtarget argument;
872 2008-07-19 Richard Guenther <rguenther@suse.de>
875 * tree-ssa-sccvn.h (get_constant_value_id): Declare.
876 * tree-ssa-sccvn.c (get_constant_value_id): New function.
877 * tree-ssa-pre.c (get_expr_value_id): For newly created
878 constant value-ids make sure to add the expression to its
881 2008-07-19 Jakub Jelinek <jakub@redhat.com>
884 * omp-low.c (expand_omp_atomic_fetch_op): Make sure the
885 return value of the builtin is ignored.
887 2008-07-19 Olivier Hainque <hainque@adacore.com>
889 * doc/tm.texi (MALLOC_ABI_ALIGNMENT): New macro. Alignment, in
890 bits, a C conformant malloc implementation has to provide.
891 * defaults.h (MALLOC_ABI_ALIGNMENT): Default to BITS_PER_WORD.
893 2008-07-19 Joseph Myers <joseph@codesourcery.com>
897 * reload.c (find_reloads_subreg_address): Only reload address if
898 reloaded == 0, not for reloaded != 1.
901 2008-07-16 Joseph Myers <joseph@codesourcery.com>
902 * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
903 (m32c_legitimate_address_p): Handle "++rii" addresses created by
904 m32c_legitimize_reload_address.
906 2008-07-15 Kaz Kojima <kkojima@gcc.gnu.org>
907 * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
908 (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
910 2008-07-19 Olivier Hainque <hainque@adacore.com>
912 * dwarf2out.c (add_subscript_info): New explicit COLLAPSE_P
913 argument, saying whether nested array are to be collapsed
914 into a single array type DIE with multiple subscripts.
915 (gen_array_type_die): Factorize comments about the MIPS_DEBUG_INFO
916 issues, centralize the nested array types collapsing control and
917 disable the transformation for Ada.
919 2008-07-18 Uros Bizjak <ubizjak@gmail.com>
922 * config/i386/i386.md (x86_64_shift_adj_1): Rename from
924 (x86_64_shift_adj_2): New expander.
925 (x86_64_shift_adj_3): Ditto.
926 * config/i386/i386.c (ix86_split_ashr): Use gen_x86_64_shift_adj_3
927 to split TImode operands.
928 (ix86_split_ashl): Use gen_x86_64_shift_adj_2 to split TImode operands.
929 (ix86_split_lshr): Ditto.
931 2008-07-18 Kris Van Hees <kris.van.hees@oracle.com>
933 * c-common.c (c_stddef_cpp_builtins): Define __CHAR16_TYPE__
935 * c-typeck.c (digest_init): Support char16_t and char32_t.
936 (set_nonincremental_init_from_string): Idem.
938 2008-07-18 H.J. Lu <hongjiu.lu@intel.com>
941 * builtins.c (std_gimplify_va_arg_expr): Limit alignment to
942 PREFERRED_STACK_BOUNDARY.
943 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
945 2008-07-18 H.J. Lu <hongjiu.lu@intel.com>
948 * function.c (locate_and_pad_parm): Cap boundary earlier.
950 2008-07-17 Julian Brown <julian@codesourcery.com>
952 * config/arm/arm.c (arm_cxx_determine_class_data_visibility): Make
953 no-op for targets which don't use DLLs.
955 2008-07-17 Martin Jambor <mjambor@suse.cz>
957 * ipa-cp.c (ipcp_print_all_lattices): New variable info, check
958 that nodes are relevant by examining the node->analyzed flag.
959 (ipcp_init_stage): Check which nodes are relevant, assert that the
960 relevant ones are also required.
961 (ipcp_propagate_stage): Check on the side arrays are properly
963 (ipcp_print_all_jump_functions): Make sure not to touch any node
964 that is not analyzed or an edge that does not have a corresponding
965 entry in the on-the-side vectors.
966 (ipcp_function_scale_print): Likewise.
967 (ipcp_update_callgraph): Check that the node is relevant.
968 (ipcp_insert_stage): Check that the node is relevant. Check there is
969 an info for every node and edge.
970 * ipa-prop.c (ipa_init_func_list): Check the nodes are relevant.
971 (ipa_print_all_tree_maps): Likewise and a new variable info.
972 (ipa_print_all_params_modified): Likewise.
973 * ipa-prop.h (ipa_edge_args_info_available_for_edge_p): New function.
975 2008-07-17 Roman Zippel <zippel@linux-m68k.org>
978 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for __mc68000__.
980 2008-07-17 Paolo Bonzini <bonzini@gnu.org>
982 PR rtl-optimization/36753
983 * fwprop.c (use_killed_between): Don't shortcut
984 single-definition global registers.
986 2008-07-16 Jan Hubicka <jh@suse.cz>
988 * cgraph.h (varpool_empty_needed_queue): Declare.
989 * cgraphunit.c (output_in_order): Mark all variables as needed;
991 * varpool.c (varpool_assemble_node): Update debug queue.
992 (varpool_assemble_pending_decls): Don't do it here.
993 (varpool_empty_needed_queue): New function.
995 2008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
997 * recog.c (peephole2_optimize): Fix formatting.
999 2008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1001 * c-pch.c (get_ident): Avoid C++ keywords.
1002 * combine-stack-adj.c (single_set_for_csa): Likewise.
1003 * final.c (asm_insn_count, final_scan_insn, alter_subreg,
1004 output_asm_insn): Likewise.
1005 * reload.c (push_secondary_reload, find_reusable_reload,
1006 push_reload, combine_reloads, find_reloads,
1007 debug_reload_to_stream): Likewise.
1008 * reload.h (struct reload): Likewise.
1009 * reload1.c (reload_reg_class_lower, find_reg, find_reload_regs,
1010 allocate_reload_reg, choose_reload_regs, emit_input_reload_insns,
1011 emit_output_reload_insns): Likewise.
1012 * targhooks.c (default_secondary_reload): Likewise.
1013 * varasm.c (section_entry_eq, object_block_entry_eq): Likewise.
1015 2008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1017 * recog.c (validate_change_1, validate_change,
1018 validate_unshare_change, validate_replace_rtx_1, struct
1019 funny_match, constrain_operands, peephole2_optimize): Avoid C++
1021 * reload.c (push_secondary_reload, secondary_reload_class,
1022 scratch_reload_class, find_valid_class, find_reusable_reload,
1023 push_reload, find_dummy_reload, find_reloads_address_1,
1024 find_reloads_address_part, find_equiv_reg): Likewise.
1025 * reload1.c (spill_failure, eliminate_regs_1, allocate_reload_reg,
1026 choose_reload_regs): Likewise.
1027 * rtlanal.c (replace_rtx, nonzero_bits1, num_sign_bit_copies1):
1029 * rtlhooks.c (gen_lowpart_if_possible): Likewise.
1030 * sched-ebb.c (add_deps_for_risky_insns): Likewise.
1031 * sched-rgn.c (concat_INSN_LIST): Likewise.
1032 * stor-layout.c (mode_for_size, mode_for_size_tree,
1033 smallest_mode_for_size): Likewise.
1035 2008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1037 * cfg.c (dump_reg_info): Avoid C++ keywords.
1038 * dwarf2asm.c (dw2_force_const_mem,
1039 dw2_asm_output_encoded_addr_rtx): Likewise.
1040 * except.c (gen_eh_region, add_action_record, output_ttype): Likewise.
1041 * expmed.c (expand_shift): Likewise.
1042 * global.c (find_reg): Likewise.
1043 * graph.c (draw_edge): Likewise.
1044 * local-alloc.c (reg_meets_class_p, find_free_reg): Likewise.
1045 * optabs.c (expand_binop, expand_twoval_unop, expand_twoval_binop,
1046 widen_clz, widen_bswap, expand_parity, expand_unop,
1047 emit_cmp_and_jump_insn_1): Likewise.
1048 * postreload.c (reload_cse_simplify_operands): Likewise.
1049 * ra.h (add_neighbor): Likewise.
1050 * reg-stack.c (remove_regno_note, change_stack): Likewise.
1051 * regclass.c (memory_move_secondary_cost, dump_regclass, regclass,
1052 record_reg_classes, copy_cost, record_address_regs,
1053 invalid_mode_change_p): Likewise.
1054 * regrename.c (regrename_optimize, scan_rtx_reg,
1055 dump_def_use_chain, find_oldest_value_reg,
1056 replace_oldest_value_reg, copyprop_hardreg_forward_1): Likewise.
1058 2008-07-16 David Edelsohn <edelsohn@gnu.org>
1060 * config/rs6000/rs6000.c (processor_target_table): Remove duplicate
1061 MASK_POWERPC64 for power4 in previous commit.
1063 2008-07-16 Olivier Hainque <hainque@adacore.com>
1065 * collect2.c (scan_prog_file, COFF version): Use CONST_CAST
1066 instead of bare conversion to cast const-ness away.
1068 2008-07-16 Anatoly Sokolov <aesok@post.ru>
1070 * config/xtensa/xtensa.h (FUNCTION_OUTGOING_VALUE,
1071 XTENSA_FUNCTION_VALUE, XTENSA_FUNCTION_VALUE): Remove.
1072 * config/xtensa/xtensa.c (xtensa_function_value): New function.
1073 (TARGET_FUNCTION_VALUE): Define.
1075 2008-07-16 David Edelsohn <edelsohn@gnu.org>
1077 * config/rs6000/rs6000.c (processor_target_table): Add
1078 MASK_PPC_GPOPT for power4, power5, power5+, power6, and power6x.
1080 2008-07-16 Joseph Myers <joseph@codesourcery.com>
1083 * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
1084 (m32c_legitimate_address_p): Handle "++rii" addresses created by
1085 m32c_legitimize_reload_address.
1087 2007-07-16 Rafael Avila de Espindola <espindola@google.com>
1089 * c-decl.c (merge_decls): Keep DECL_SOURCE_LOCATION and
1090 DECL_IN_SYSTEM_HEADER in sync.
1092 2008-07-15 Daniel Berlin <dberlin@dberlin.org>
1094 * tree-ssa-sccvn.c (expressions_equal_p): Check type equality.
1095 * tree-ssa-pre.c (pre_expr_eq): Ditto
1096 (get_constant_for_value_id): Take a type as an argument.
1097 (fully_constant_expression): Pass in type.
1098 (find_or_generate_expression): Short circuit constant case.
1099 (create_expression_by_pieces): Remove special casing of
1101 (do_regular_insertion): Short circuit constant case.
1102 (do_partial_partial_insertion): Ditto.
1104 2008-07-15 Kaz Kojima <kkojima@gcc.gnu.org>
1107 * config/sh/sh.md (symGOT_load): Don't add REG_EQUAL note.
1109 2008-07-15 Bob Wilson <bob.wilson@acm.org>
1111 * config/xtensa/libgcc-xtensa.ver: New file.
1112 * config/xtensa/t-linux (SHLIB_MAPFILES): Append libgcc-xtensa.ver.
1114 2008-07-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1116 * df-problems.c (df_set_note): Avoid C++ keywords.
1117 * df-scan.c (df_ref_change_reg_with_loc_1): Likewise.
1118 * dse.c (record_store, remove_useless_values): Likewise.
1119 * emit-rtl.c (gen_reg_rtx, update_reg_offset, gen_rtx_REG_offset,
1120 gen_reg_rtx_offset, operand_subword, change_address_1,
1121 change_address, adjust_address_1, offset_address,
1122 widen_memory_access, emit_copy_of_insn_after): Likewise.
1123 * explow.c (round_push, allocate_dynamic_stack_space): Likewise.
1124 * fwprop.c (should_replace_address, propagate_rtx_1,
1125 propagate_rtx, try_fwprop_subst, forward_propagate_and_simplify):
1127 * gcse.c (cprop_jump, find_implicit_sets, bypass_block,
1128 gcse_emit_move_after, update_ld_motion_stores): Likewise.
1129 * lcm.c (compute_insert_delete, pre_edge_lcm,
1130 compute_rev_insert_delete, pre_edge_rev_lcm): Likewise.
1131 * lower-subreg.c (resolve_reg_notes): Likewise.
1132 * mode-switching.c (optimize_mode_switching): Likewise.
1134 2008-07-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1136 * bt-load.c (add_btr_def, migrate_btr_def,
1137 branch_target_load_optimize): Avoid C++ keywords.
1138 * caller-save.c (insert_restore, insert_save, insert_one_insn):
1140 * combine.c (subst, simplify_set, make_extraction,
1141 make_compound_operation, known_cond, simplify_shift_const_1): Likewise.
1142 * cse.c (make_regs_eqv, merge_equiv_classes, validate_canon_reg,
1143 fold_rtx, equiv_constant, cse_insn, cse_process_notes_1): Likewise.
1145 2008-07-15 Richard Guenther <rguenther@suse.de>
1148 * c-common.c (strict_aliasing_warning): Do not warn for
1149 TYPE_REF_CAN_ALIAS_ALL pointers.
1150 (c_common_get_alias_set): may_alias types are not special.
1151 * tree.c (build_pointer_type_for_mode): Look up the may_alias
1152 attribute and set can_ref_all accordingly.
1153 (build_reference_type_for_mode): Likewise.
1154 * doc/extend.texi (may_alias): Clarify.
1156 2008-07-15 Kaz Kojima <kkojima@gcc.gnu.org>
1159 * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
1160 (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
1162 2008-07-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
1165 * config/rs6000/rs6000.c (print_operand <case 'y'>): Don't use
1166 gcc_assert, instead call output_operand_lossage.
1168 2008-07-15 Kai Tietz <kai.tietz@onevision.com>
1170 * builtins.c (std_canonical_va_list): Treat structure based
1173 2008-07-15 Ben Elliston <bje@au.ibm.com>
1175 * emit-rtl.c (set_mem_attributes_minus_bitpos): Improve comment.
1177 2007-07-14 Rafael Avila de Espindola <espindola@google.com>
1179 * c-decl.c (diagnose_mismatched_decls): Don't warn if TREE_NO_WARNING
1182 2008-07-14 Jan Hubicka <jh@suse.cz>
1184 * i386.md (sse5 cmov pattern): Update call of ix86_sse5_valid_op_p
1185 * sse.md (sse5 patterns): Update call of ix86_sse5_valid_op_p;
1186 fix predicates and constraints.
1187 * i386.c (ix86_sse5_valid_op_p): Add commutative parameter.
1188 * i386-protos.h (ix86_sse5_valid_op_p): Update declaration.
1190 2008-07-14 Doug Kwan <dougkwan@google.com>
1192 * config.gcc (arm*-*-eabi*): Include arm/eabi.h and use
1193 additional option file arm/eabi.opt.
1194 * config/arm/eabi.h (File): New configuration file for EABI targets.
1195 * config/arm/elf.h (SUBTARGET_EXTRA_SPECS): Add
1196 SUBSUBTARGET_EXTRA_SPECS.
1197 (SUBSUBTARGET_EXTRA_SPECS): Provide empty default.
1198 * config/arm/unknown-elf.h (UNKNOWN_ELF_STARTFILE_SPEC): Renamed
1199 from STARTFILE_SPEC so that it can be referenced in an override.
1200 (STARTFILE_SPEC): Use UNKNOWN_ELF_STARTFILE_SPEC.
1201 (UNKNOWN_ELF_ENDFILE_SPEC): Renamed from ENDFILE_SPEC so that it
1202 can be referenced in an override.
1203 (ENDFILE_SPEC): Use UNKNOWN_ELF_ENDFILE_SPEC.
1204 * config/arm/bpabi.h (BPABI_LINK_SPEC): Renamed from LINK_SPEC
1205 so that it can be referenced in an override.
1206 (LINK_SPEC): Use BPABI_LINK_SPEC.
1207 * config/arm/eabi.opt (File): New.
1209 2008-07-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1211 * Makefile.in (TARGET_DEF_H): Add targhooks.h.
1212 (FIXED_VALUE_H): New variable.
1213 (RTL_BASE_H): Use $(INPUT_H) and $(FIXED_VALUE_H) instead of
1214 input.h, fixed-value.h.
1215 (TREE_H): Use $(INPUT_H), add $(SYMTAB_H).
1216 (BASIC_BLOCK_H): Use $(BITMAP_H).
1217 (FUNCTION_H): Add varray.h.
1218 (IPA_REFERENCE_H): Use $(BITMAP_H).
1219 (CGRAPH_H): Add $(BASIC_BLOCK_H).
1220 (DF_H): Use $(BITMAP_H).
1221 (GGC_H): Add statistics.h.
1223 (INSN_ATTR_H): Use it.
1224 (SYSTEM_H): Add safe-ctype.h, filenames.h.
1226 (SYMTAB_H): Add $(OBSTACK_H).
1227 (CPP_INTERNAL_H): New.
1228 (TREE_DUMP_H): Add tree-pass.h.
1229 (TREE_FLOW_H): Use $(BITMAP_H)
1230 (PRETTY_PRINT_H): Use $(INPUT_H).
1231 (EBITMAP_H): Rename from typo-ed EBIMAP_H.
1234 (many object files): Fix lots of header dependencies throughout.
1236 2008-07-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1238 * Makefile.in (write_entries_to_file, write_entries_to_file_split):
1240 (s-gtyp-input): Use them to write tmp-gi.list.
1241 (echo_to_gi.list): Remove.
1243 2008-07-14 Richard Guenther <rguenther@suse.de>
1245 * tree-ssa-sccvn.c (pre_info): Remove.
1246 (switch_to_PRE_table): Likewise.
1247 (free_scc_vn): Do not clear SSA_NAME_VALUE. Do not free pre_info.
1248 (set_hashtable_value_ids): Do not create value-ids for the
1250 (run_scc_vn): Remove double test. Remove bogus special-case
1251 in value-number printing.
1252 * tree-ssa-sccvn.h (switch_to_PRE_table): Remove.
1253 * tree-ssa-ccp.c (get_symbol_constant_value): Do not look at
1255 * tree-flow-inline.h (get_value_handle): Remove.
1256 * tree-flow.h (get_value_handle): Remove.
1258 2008-07-14 Martin Jambor <mjambor@suse.cz>
1260 * tree-switch-conversion.c (gen_inbound_check): Make sure the type
1261 in which we generate arithmetics is not a subrange.
1263 2008-07-14 Martin Jambor <mjambor@suse.cz>
1265 * Makefile.in (IPA_PROP_H): Added ipa-prop.h to IPA_PROP_H variable.
1267 2008-07-14 Richard Guenther <rguenther@suse.de>
1269 * tree-ssa-pre.c (insert_into_preds_of_block): Do not call convert.
1271 2008-07-14 Andreas Krebbel <krebbel1@de.ibm.com>
1274 * config/s390/s390.c: (s390_secondary_reload): Add a secondary
1275 reload for symbol refs moved to r0 with -fPIC.
1276 (legitimize_pic_address): Use the target register as temporary
1278 (emit_symbolic_move): Adjust comment.
1279 * config/s390/s390.md (reloadsi_PIC_addr, reloaddi_PIC_addr):
1282 2008-07-14 Ben Elliston <bje@au.ibm.com>
1284 * c-common.h (C_CPP_HASHNODE): New macro.
1285 * coretypes.h (struct cpp_token): Forward declare.
1286 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
1287 the context-sensitive keyword method.
1288 * config/rs6000/rs6000-c.c (__vector_keyword, vector_keyword,
1289 __pixel_keyword, pixel_keyword, __bool_keyword, bool_keyword,
1290 expand_bool_pixel): New.
1291 (altivec_categorize_keyword): New function.
1292 (init_vector_keywords): New function.
1293 (rs6000_macro_to_expand): Likewise.
1294 (rs6000_cpu_cpp_builtins): Enable context-sensitive macros if not
1295 compiling an ISO C dialect.
1297 2008-07-13 Daniel Berlin <dberlin@dberlin.org>
1299 * tree-ssa-pre.c (fully_constant_expression): Add fold_convert calls.
1300 (create_expression_by_pieces): Fix typo.
1301 (do_regular_insertion): Use debug counter here too.
1303 2008-07-14 Hans-Peter Nilsson <hp@axis.com>
1306 * config/cris/cris.h (CRIS_CONST_OK_FOR_LETTER_P): Renamed from
1307 CONST_OK_FOR_LETTER_P. All port-local users changed.
1308 (CONST_OK_FOR_CONSTRAINT_P): Define; implement Kc as old K,
1309 implement Kp matching power-of-two.
1310 (CONSTRAINT_LEN): Define to match.
1311 * config/cris/cris.md: Replace all use of constraint K with Kc.
1312 ("*btst*): Use Kp for operand 0 of last alternative.
1314 2008-07-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1317 * tree-call-cdce.c (check_target_format): Accept MIPS single, double
1320 2008-07-13 Jan Hubicka <jh@suse.cz>
1322 * tree.c (decl_assembler_name_equal): Expect assembler name of decl
1325 2008-07-13 Richard Guenther <rguenther@suse.de>
1328 * langhooks.c (lhd_print_error_function): Deal with recursive
1331 2008-07-12 Jan Hubicka <jh@suse.cz>
1333 * cgraph.c (assembler_name_hash): New static var.
1334 (hash_node_by_assembler_name, eq_assembler_name): New.
1335 (cgraph_node_for_asm): Use hashtable.
1336 (cgraph_remove_node): Maintain hashtable.
1337 (change_decl_assembler_name): Sanity check that names are not changing
1338 after aliasing was processed.
1339 * cgraph.h (varpoon_node): Add next GGC marker.
1340 * tree.c (decl_assembler_name_equal): Constify.
1341 (decl_assembler_name_hash): New.
1342 * tree.h (decl_assembler_name_equal): Constify.
1343 (decl_assembler_name_hash): Update.
1345 2008-07-12 David Daney <ddaney@avtrex.com>
1347 * config/mips/driver-native.c (host_detect_local_cpu): Handle
1350 2008-07-12 Richard Sandiford <rdsandiford@googlemail.com>
1352 * doc/md.texi: Document the MIPS "v" constraint.
1353 * config/mips/mips.h (reg_class): Revert last change.
1354 (REG_CLASS_NAMES): Likewise.
1355 (REG_CLASS_CONTENTS): Likewise.
1356 * config/mips/mips.c (mips_regno_to_class): Likewise.
1357 * config/mips/constraints.md (v): Likewise, but add documentation.
1358 Add a comment to say that this constraint should not be used in
1361 2008-07-11 DJ Delorie <dj@redhat.com>
1363 * config/h8300/h8300.md (length): Fix branch offset limit.
1365 2008-07-11 Anatoly Sokolov <aesok@post.ru>
1367 * config/avr/avr-protos.h (avr_peep2_scratch_safe): Remove prototype.
1368 * config/avr/avr.c (avr_peep2_scratch_safe): Remove.
1369 (avr_hard_regno_scratch_ok): New function.
1370 (TARGET_HARD_REGNO_SCRATCH_OK): Define.
1371 * config/avr/avr.md (all peepholes that request a scratch register):
1372 Remove avr_peep2_scratch_safe use.
1374 2008-07-11 Tom Tromey <tromey@redhat.com>
1375 Ian Lance Taylor <iant@google.com>
1377 * c-common.h (enum rid): Add RID_CXX_COMPAT_WARN.
1378 (struct c_common_resword): Define.
1379 (D_CONLY, D_CXXONLY, D_C99, D_CXX0X, D_EXT, D_EXT89): Define.
1380 (D_ASM, D_OBJC, D_CXX_OBJC, D_CXXWARN): Define.
1381 (c_common_reswords, num_c_common_reswords): Declare.
1382 * c-common.c (c_common_reswords): New global const array.
1383 (num_c_common_reswords): New const int.
1384 * c-parser.c (struct resword, reswords): Don't define.
1385 (D_C89, D_EXT, D_EXT89, D_OBJC): Don't define.
1386 (c_parse_init): Clarify mask code. Use c_common_reswords rather
1387 than reswords. If warning about C++ keywords, give them a special
1389 (c_lex_one_token): Warn about C++ keywords. Call
1390 objc_is_reserved_word rather than OBJC_IS_AT_KEYWORD.
1391 (c_parser_external_declaration): Look for RID_xxx rather than
1392 RID_AT_xxx, for ObjC++ keywords which are also C++ keywords.
1393 (c_parser_statement_after_labels): Likewise.
1394 (c_parser_objc_class_instance_variables): Likewise.
1395 (c_parser_objc_class_declaration): Likewise.
1396 (c_parser_objc_try_catch_statement): Likewise.
1397 * c-decl.c (c_print_identifier): Ignore RID_CXX_COMPAT_WARN.
1398 (declspecs_add_type): Likewise.
1400 2008-07-11 Angelo Graziosi <angelo.graziosi@alice.it>
1402 * ggc-page.c (alloc_page):
1403 Substituting xmalloc, xcalloc with
1404 XNEWVEC and XCNEWVAR macros which add the
1407 2008-07-11 Richard Guenther <rguenther@suse.de>
1409 PR tree-optimization/36765
1410 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add
1411 aliases from HEAP vars to SMTs.
1413 2008-07-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1415 * Makefile.in (LOOSE_WARN, STRICT_WARN): Update comments.
1416 * configure.ac (loose_warn): Move -Wc++-compat from here...
1417 (strict_warn): ...to here.
1418 * configure: Regenerate.
1420 2008-07-10 Joseph Myers <joseph@codesourcery.com>
1422 * config.gcc (arm-*-coff*, armel-*-coff*, h8300-*-*,
1423 i[34567]86-*-aout*, i[34567]86-*-coff*, m68k-*-aout*,
1424 m68k-*-coff*, sh-*-*, mips-sgi-irix[56]*, pdp11-*-bsd,
1425 rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*): Deprecate targets,
1426 excluding more specific h8300-*-* and sh-*-* targets.
1428 2008-07-10 Daniel Berlin <dberlin@dberlin.org>
1430 * tree-ssa-pre.c (create_expression_by_pieces): Add fold_convert calls.
1432 (execute_pre): Call loop_optimizer_finalize in early exit.
1434 2008-07-10 Jakub Jelinek <jakub@redhat.com>
1437 * omp-low.c (lower_omp_2): If task_shared_vars, test all DECL_P
1438 uids in the bitmap, not just VAR_DECL uids.
1440 PR rtl-optimization/36419
1441 * combine-stack-adj.c (adjust_frame_related_expr): New function.
1442 (combine_stack_adjustments_for_block): Call it if needed. Delete
1444 * dwarf2out.c (dwarf2out_frame_debug_expr): Adjust
1445 DW_CFA_GNU_args_size if CSA pass merged some adjustments into
1446 prologue sp adjustment.
1448 2008-07-10 Peter Maydell <pmaydell@chiark.greenend.org.uk>
1451 * opts.c (print_ignored_options): Report postponed diagnostics for
1452 unknown -Wno-* options as warnings, not errors.
1453 (postpone_unknown_option_error): Renamed to...
1454 (postpone_unknown_option_warning): ... this.
1456 2008-07-09 Doug Kwan <dougkwan@google.com>
1459 2008-07-08 Doug Kwan <dougkwan@google.com>
1461 * config/arm/arm.opt (mandroid): New option.
1462 * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
1463 (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
1465 (CC1PLUS_SPEC): Same.
1467 (STARTFILE_SPEC): Same.
1468 (ENDFILE_SPEC): Same.
1469 (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
1472 2008-07-09 Richard Sandiford <rdsandiford@googlemail.com>
1475 * config/mips/mips.h (reg_class): Remove V1_REG.
1476 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
1477 * config/mips/mips.c (mips_regno_to_class): Map $3 to M16_NA_REGS
1479 (mips_get_tp): New function.
1480 (mips_legitimize_tls_address): Use it.
1481 * config/mips/constraints.md (v): Delete.
1482 * config/mips/mips.md (TLS_GET_TP_REGNUM): New constant.
1483 (tls_get_tp_<mode>): Allow any GPR destination and clobber $3.
1484 After reload, split into a move and ...
1485 (*tls_get_tp_<mode>_split): ...this new instruction.
1487 2008-07-09 David Daney <ddaney@avtrex.com>
1489 * config/mips/driver-native.c: Include coretypes.h and tm.h.
1491 2008-07-09 Jakub Jelinek <jakub@redhat.com>
1493 * gimplify.c (struct gimplify_ctx): Move to tree-gimple.h.
1494 (push_gimplify_context): Don't allocate temp_htab nor c itself here.
1496 (pop_gimplify_context): Check c->temp_htab instead of optimize whether
1497 htab_delete should be called. Don't free c.
1498 (lookup_tmp_var): Create temp_htab lazily.
1499 (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
1500 gimplify_body, force_gimple_operand): Adjust push_gimplify_context
1502 * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
1503 lower_omp_ordered, lower_omp_critical, lower_omp_for,
1504 create_task_copyfn, lower_omp_taskreg, execute_lower_omp):
1505 * tree-ssa-ccp.c (convert_to_gimple_builtin): Likewise.
1506 * tree-sra.c (generate_element_init): Likewise.
1507 * tree-mudflap.c (execute_mudflap_function_ops,
1508 execute_mudflap_function_decls): Likewise.
1509 * tree-inline.c (setup_one_parameter, optimize_inline_calls): Likewise.
1510 * tree-gimple.h (struct gimplify_ctx): New type.
1511 (push_gimplify_context): Adjust prototype.
1513 2008-07-09 Daniel Berlin <dberlin@dberlin.org>
1515 * tree-ssa-pre.c (phi_translate_1): Update placement of
1518 2008-07-09 Anatoly Sokolov <aesok@post.ru>
1520 * target.h (struct gcc_target): Add hard_regno_scratch_ok field.
1521 * target-def.h (TARGET_HARD_REGNO_SCRATCH_OK): New.
1522 (TARGET_INITIALIZER): Use TARGET_HARD_REGNO_SCRATCH_OK.
1523 * targhooks.c (default_hard_regno_scratch_ok): New function.
1524 * targhooks.h (default_hard_regno_scratch_ok): Declare function.
1525 * doc/tm.texi: Document TARGET_HARD_REGNO_SCRATCH_OK hook.
1526 * recog.c: Include "target.h".
1527 (peep2_find_free_register): Add check for global regs. Add target
1529 * Makefile.in (recog.o): Depend on target.h.
1531 2008-07-09 Kaz Kojima <kkojima@gcc.gnu.org>
1533 * config/sh/sh.c (sh_canonical_va_list_type): New.
1534 (TARGET_CANONICAL_VA_LIST_TYPE): Define.
1536 2008-07-09 Raksit Ashok <raksit@google.com>
1538 * doc/invoke.texi (Option Summary): Mention new option
1539 -Wdisallowed-function-list=...
1540 (Warning Options): Document -Wdisallowed-function-list=...
1541 * common.opt (Wdisallowed-function-list=): New flag.
1542 * flags.h (warn_disallowed_functions): External definition of new
1543 boolean warning flag.
1544 (warn_if_disallowed_function_p): Declare new function.
1545 * opts.c (warning_disallowed_functions): New static variable.
1546 (warn_disallowed_functions): New boolean warning flag.
1547 (warn_if_disallowed_function_p): New function.
1548 (add_comma_separated_to_vector): Rename
1549 add_instrument_functions_exclude_list to this.
1550 (common_handle_option): Handle new option. Rename calls to
1551 add_instrument_functions_exclude_list into calls to
1552 add_comma_separated_to_vector.
1553 * c-parser.c (c_parser_postfix_expression_after_primary): New warning
1554 based on flag warn_disallowed_functions.
1556 2008-07-09 Christian Bruel <christian.bruel@st.com>
1558 * final.c (get_attr_length_1): Call get_attr_length_1 with fallback_fn
1559 instead of get_attr_length.
1561 2008-07-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1563 * genattrtab.c (insert_right_side, evaluate_eq_attr): Avoid C++
1565 * genemit.c (gen_insn): Likewise.
1566 * gengtype.c (note_def_vec): Likewise.
1567 * gengtype.h (note_def_vec): Likewise.
1568 * genoutput.c (struct data, output_insn_data, process_template,
1569 gen_expand, gen_split, note_constraint): Likewise.
1570 * genrecog.c (new_decision, add_to_sequence, factor_tests,
1571 make_insn_sequence): Likewise.
1572 * gensupport.c (record_insn_name): Likewise.
1574 2008-07-08 Doug Kwan <dougkwan@google.com>
1576 * config/arm/arm.opt (mandroid): New option.
1577 * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
1578 (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
1580 (CC1PLUS_SPEC): Same.
1582 (STARTFILE_SPEC): Same.
1583 (ENDFILE_SPEC): Same.
1584 (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
1587 2008-07-08 Raksit Ashok <raksit@google.com>
1589 * expr.c (emit_block_move_via_movmem): Fix expected_align parameter.
1590 (set_storage_via_setmem): Fix expected_align parameter.
1591 * doc/invoke.texi (i386 and x86-64 Options): Add a couple of options
1592 missing from the list.
1593 * doc/md.texi (movmem): Explicitly state that expected alignment is
1594 to be expressed in bytes.
1595 (setmem): Explicitly state that expected alignment is to be expressed
1598 2008-07-08 Joseph Myers <joseph@codesourcery.com>
1600 * reload.c (find_reloads_subreg_address): Do not require validity
1601 of address in original mode before reloading address.
1603 2008-07-07 Tianwei Sheng <tianweis@google.com>
1605 * df-core.c (df_remove_problem): Adjust the access to avoid out of
1606 bounds array access.
1608 2008-07-08 Jakub Jelinek <jakub@redhat.com>
1610 * tree-sra.c (sra_build_assignment): Handle CONVERT_EXPR_P dst.
1612 2008-07-05 Daniel Berlin <dberlin@dberlin.org>
1614 Fix PR tree-optimization/23455
1615 Fix PR tree-optimization/35286
1616 Fix PR tree-optimization/35287
1617 * Makefile.in (OBJS-common): Remove tree-vn.o.
1618 (tree-vn.o): Remove.
1619 * dbgcnt.def: Add treepre_insert debug counter.
1620 * gcc/tree-flow.h (add_to_value): Updated for other changes.
1621 (debug_value_expressions): Ditto.
1622 (print_value_expressions): Ditto.
1623 * tree-pretty-print.c (dump_generic_node): Updated for
1624 VALUE_HANDLE removal.
1625 * tree-ssa-dom.c (record_equality): Ditto.
1626 (cprop_operand): Ditto.
1627 (lookup_avail_expr): Ditto.
1628 * tree-ssa-threadedge.c
1629 (record_temporary_equivalences_from_stmts_at_dest): Ditto.
1630 (simplify_control_stmt_condition): Ditto.
1631 * tree.c (tree_code_size): Ditto.
1632 (tree_node_structure): Ditto.
1633 (iterative_hash_expr): Ditto.
1635 * tree.h (VALUE_HANDLE_ID): Ditto.
1636 (VALUE_HANDLE_EXPR_SET): Ditto.
1637 (struct tree_value_handle): Ditto.
1638 (union tree_node): Ditto.
1639 * treestruct.def: Ditto.
1640 * tree-vn.c: Removed.
1641 * tree-ssa-pre.c: Rewritten entirely.
1642 * tree-ssa-sccvn.c (constant_to_value_id): New hashtable.
1643 (constant_value_ids): Ditto.
1644 (vn_nary_op_t): Moved to header.
1646 (vn_reference_op_t): Ditto
1647 (vn_reference_t): Ditto.
1648 (next_value_id): New variable.
1649 (VN_INFO): Add an assert.
1650 (vn_constant_eq): New function.
1651 (vn_constant_hash): Ditto.
1652 (get_or_alloc_constant_value_id): Ditto.
1653 (value_id_constant_p): Ditto.
1654 (vn_reference_compute_hash): De-staticify.
1655 (copy_reference_ops_from_ref): Don't use get_callee_fndecl.
1656 Disable some code with a FIXME. Remove VALUE_HANDLE use.
1657 (valueize_refs): Update opcode if it changes from ssa name to constant.
1658 (vn_reference_lookup_1): Add new argument.
1659 (vn_reference_lookup): Ditto.
1660 (vn_reference_lookup_pieces): New function.
1661 (vn_reference_insert): Add return type. Modify to deal with value ids.
1662 (vn_reference_insert_pieces): New function.
1663 (vn_nary_op_compute_hash): De-staticify.
1664 (vn_nary_op_eq): Ditto.
1665 (vn_nary_op_lookup_pieces): New function.
1666 (vn_nary_op_lookup): Add new argument.
1667 (vn_nary_op_insert_pieces): New function.
1668 (vn_nary_op_insert): Add return type. Modify to deal with value ids.
1669 (vn_phi_insert): Ditto.
1670 (visit_unary_op): Update for callee changes.
1671 (visit_binary_op): Ditto.
1672 (visit_reference_op_load): Ditto.
1673 (visit_reference_op_store): Ditto.
1674 (init_scc_vn): Init next_value_id, constant_to_value_id and
1676 (free_scc_vn): Free them.
1677 (set_hashtable_value_ids): New function.
1678 (run_scc_vn): Use it.
1679 (get_max_value_id): New function.
1680 (get_next_value_id): Ditto.
1681 (expressions_equal_p): Moved from tree-vn.c
1682 (sort_vuses): Ditto.
1683 (sort_vuses_heap): Ditto.
1684 * tree-ssa-sccvn.h: Structures moved from tree-ssa-sccvn.c (noted
1686 * tree.c (iterative_hash_hashval_t): Made non-static
1687 * tree.h (iterative_hash_hashval_t): Declare it.
1689 2008-07-08 Martin Jambor <mjambor@suse.cz>
1691 * ipa-cp.c (ipcp_init_cloned_node): Call ipa_check_create_node_params
1692 instead of ipa_create_node_params.
1693 (ipcp_driver): Allocate infos with ipa_check_create_node_params and
1694 ipa_check_create_edge_args, free them with
1695 free_all_ipa_structures_after_ipa_cp, call ipa_register_cgraph_hooks.
1697 * ipa-prop.c: Include flags.h and tree-inline.h.
1698 (ipa_node_params_vector): New variable.
1699 (ipa_edge_args_vector): New variable.
1700 (edge_removal_hook_holder): New variable.
1701 (node_removal_hook_holder): New variable.
1702 (edge_duplication_hook_holder): New variable.
1703 (node_duplication_hook_holder): New variable.
1704 (ipa_detect_param_modifications): Check for presence of modified flags.
1705 (ipa_compute_jump_functions): Check for presence of jump functions.
1706 (ipa_free_edge_args_substructures): New function.
1707 (ipa_create_node_params): Removed.
1708 (ipa_free_all_edge_args): Changed to deallocate the on-the-side vector.
1709 (ipa_free_node_params_substructures): New function.
1710 (ipa_free_all_node_params): Changed to deallocate the on-the-side
1712 (ipa_edge_removal_hook): New function.
1713 (ipa_node_removal_hook): New function.
1714 (duplicate_array): New function.
1715 (ipa_edge_duplication_hook): New function.
1716 (ipa_node_duplication_hook): New function.
1717 (ipa_register_cgraph_hooks): New function.
1718 (ipa_unregister_cgraph_hooks): New function.
1719 (free_all_ipa_structures_after_ipa_cp): New function.
1721 * ipa-prop.h: Include vec.h.
1722 (ipa_node_params_t): New typedef with vector types for it.
1723 (ipa_edge_args_t): New typedef with vector types for it.
1724 (IPA_NODE_REF): Changed to access an on-the-side vector.
1725 (IPA_EDGE_REF): Changed to access an on-the-side vector.
1726 (ipa_check_create_node_params): New function.
1727 (ipa_check_create_edge_args): New function.
1729 * Makefile.in (IPA_PROP_H): New variable for ipa-prop.h. Converted
1732 2008-07-07 Tom Tromey <tromey@redhat.com>
1734 * configure, config.in: Rebuilt.
1735 * configure.ac: Don't check for scandir or alphasort.
1737 2008-07-07 Joseph Myers <joseph@codesourcery.com>
1739 * config/arm/arm.c (arm_init_neon_builtins): Register built-in
1740 types immediately after creating them.
1742 2008-07-07 Joseph Myers <joseph@codesourcery.com>
1744 * config/arm/aout.h (DOLLARS_IN_IDENTIFIERS): Remove.
1746 2008-07-07 Fernando Pereira <fernando@cs.ucla.edu>
1748 * tree-ssa-structalias.c (compute_points_to_sets): Add call to
1749 dump_constraint_graph.
1750 (dump_constraint_edge): New function.
1751 (dump_constraint_graph): New function.
1752 (debug_constraint_graph): New function.
1753 (dump_constraint): Removed useless comparison.
1754 * tree-ssa-structalias.h (dump_constraint_edge): Declare.
1755 (dump_constraint_graph): Declare.
1756 (debug_constraint_graph): Declare.
1757 * tree-dump.c (struct dump_option_value_info): Declare TDF_GRAPH.
1759 2008-07-07 Kai Tietz <kai.tietz@onevision.com>
1761 * config/i386/i386.c (is_va_list_char_pointer): New.
1762 (ix86_va_start): Replace compare with ms_va_list_type_node
1763 by is_va_list_char_pointer.
1764 (ix86_gimplify_va_arg): Likewise.
1766 2008-07-07 Martin Jambor <mjambor@suse.cz>
1768 * cgraph.c (cgraph_edge_max_uid): New variable.
1769 (struct cgraph_edge_hook_list): New type.
1770 (struct cgraph_node_hook_list): New type.
1771 (struct cgraph_2edge_hook_list): New type.
1772 (struct cgraph_2node_hook_list): New type.
1773 (first_cgraph_edge_removal_hook): New variable.
1774 (first_cgraph_node_removal_hook): New variable.
1775 (first_cgraph_edge_duplicated_hook): New variable.
1776 (first_cgraph_node_duplicated_hook): New variable.
1777 (cgraph_add_edge_removal_hook): New function.
1778 (cgraph_remove_edge_removal_hook): New function.
1779 (cgraph_call_edge_removal_hooks): New function.
1780 (cgraph_add_node_removal_hook): New function.
1781 (cgraph_remove_node_removal_hook): New function.
1782 (cgraph_call_node_removal_hooks): New function.
1783 (cgraph_add_edge_duplication_hook): New function.
1784 (cgraph_remove_edge_duplication_hook): New function.
1785 (cgraph_call_edge_duplication_hooks): New function.
1786 (cgraph_add_node_duplication_hook): New function.
1787 (cgraph_remove_node_duplication_hook): New function.
1788 (cgraph_call_node_duplication_hooks): New function.
1789 (cgraph_create_edge): Assign to edge uid.
1790 (cgraph_remove_edge): Call edge removal hooks.
1791 (cgraph_node_remove_callees): Call edge removal hooks.
1792 (cgraph_node_remove_callers): Call edge removal hooks.
1793 (cgraph_remove_node): Call node removal hooks.
1794 (cgraph_clone_edge): Call edge duplication hooks.
1795 (cgraph_clone_node): Call node duplication hooks.
1797 * cgraph.h (cgraph_edge): New field uid.
1798 (cgraph_edge_hook): New type.
1799 (cgraph_node_hook): New type.
1800 (cgraph_2edge_hook): New type.
1801 (cgraph_2node_hook): New type.
1803 2008-07-07 Andreas Tobler <a.tobler@schweiz.org>
1805 * config.in: Regenerate.
1807 2008-07-07 Vladimir Prus <vladimir@codesourcery.com>
1809 * gcc.c (print_sysroot): New.
1810 (option_map, display_help, process_command): Handle the
1811 -print-sysroot option.
1812 (main): Print the sysroot if requested.
1813 * doc/invoke.texi (Debugging Options): Document -print-sysroot.
1815 2008-07-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1818 * unwind-pe.h (size_of_encoded_value): add attribute unused.
1820 2008-07-07 Daniel Jacobowitz <dan@codesourcery.com>
1822 * function.c (assign_parm_remove_parallels): Check mode of entry_parm.
1823 (assign_parm_setup_block_p): Also check mode of entry_parm.
1825 2008-07-07 Richard Guenther <rguenther@suse.de>
1827 * tree-ssa-structalias.h (set_used_smts): Remove.
1828 * tree-ssa-structalias.c (used_smts): Likewise.
1829 (set_used_smts): Likewise.
1830 * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Remove
1831 call to set_used_smts.
1833 2008-07-07 Richard Guenther <rguenther@suse.de>
1835 * tree-ssa-structalias.c (struct variable_info): Add is_full_var flag.
1836 (new_var_info): Set it to false.
1837 (solution_set_add): Correctly handle pointers outside a var and
1839 (type_safe): Treat variables with is_full_var properly.
1840 (do_sd_constraint): Likewise.
1841 (do_ds_constraint): Likewise.
1842 (process_constraint): Remove zeroing offset for !use_field_sensitive.
1843 (get_constraint_for_ptr_offset): New function.
1844 (get_constraint_for_component_ref): For addresses at least include
1845 the last field of the variable. Handle is_full_vars properly.
1846 (get_constraint_for_1): Factor common code, handle POINTER_PLUS_EXPR.
1847 (handle_ptr_arith): Remove.
1848 (find_func_aliases): Simplify assignment handling.
1849 (create_function_info_for): For parameter and result varinfos set
1851 (create_variable_info_for): Set is_full_var flag whenever we
1852 just created a single varinfo for a decl.
1853 (init_alias_vars): Initialize use_field_sensitive from
1854 max-fields-for-field-sensitive parameter.
1856 2008-07-07 Richard Guenther <rguenther@suse.de>
1858 PR tree-optimization/36713
1859 * tree-flow-inline.h (is_call_used): New function.
1860 * tree-nrv.c (dest_safe_for_nrv_p): Use it.
1861 * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
1862 * tree-outof-ssa.c (create_temp): Set call-used flag if required.
1864 2008-07-07 Maxim Kuvyrkov <maxim@codesourcery.com>
1866 * config/m68k/m68k.c (m68k_return_in_memory): Fix arguments types.
1868 2008-07-07 Mark Shinwell <shinwell@codesourcery.com>
1870 * config/m68k/lb1sf68.asm: Add PIC macros for Linux targets.
1872 2008-07-07 Maxim Kuvyrkov <maxim@codesourcery.com>
1873 Nathan Sidwell <nathan@codesourcery.com>
1875 * config.gcc (m68k-*-linux*): Add with_arch. Add sysroot-suffix.h
1876 to tm_file. Add m68k/t-floatlib, m68k/t-linux & m68k/t-mlibs to
1878 * config/m68k/t-linux: New.
1879 * doc/install.texi: Document m68k-*-linux is now multilibbed by
1882 2008-07-07 Nathan Sidwell <nathan@codesourcery.com>
1884 * config/m68k/t-cf (MULTILIB_EXTRA_OPTS): Add no-mac.
1885 * config/m68k/m68k-devices.def: Remove multilibs that only differ
1888 2008-07-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1890 * gcc.c (execute): Fix -Wc++-compat warning.
1892 2008-07-06 H.J. Lu <hongjiu.lu@intel.com>
1895 * config/ia64/ia64.c (ia64_split_tmode): Fix typo in TImode
1896 constant for little endian.
1898 2008-07-06 Richard Sandiford <rdsandiford@googlemail.com>
1900 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Check
1901 mips_base_mips16 instead of TARGET_MIPS16.
1902 (mips_base_mips16): Declare.
1903 * config/mips/mips.c (mips_base_mips16): Make global.
1904 (was_mips16_p): Remove GTY marker.
1905 (was_mips16_pch_p): New variable.
1906 (mips_set_mips16_mode): Check both was_mips16_p and was_mips16_pch_p.
1907 (mips_override_options): Force to non-MIPS16 mode initially.
1908 Do not complain about MIPS16 PIC incompatibilities here.
1909 Only allow -mgpopt if -mexplicit-relocs is in force for
1912 2008-07-06 Andreas Tobler <a.tobler@schweiz.org>
1914 * configure.ac: Check for caddr_t, define to char * if not defined.
1915 * configure: Regenerate.
1916 * ggc-common.c (mmap_gt_pch_get_address): Fix -Wc++-compat warnings.
1917 (mmap_gt_pch_use_address): Likewise.
1918 * config/host-solaris.c (sol_gt_pch_use_address): Likewise.
1920 2008-07-06 Richard Guenther <rguenther@suse.de>
1922 * tree-ssa-structalias.c (struct variable_info): Remove has_union.
1923 (new_var_info): Deal with it.
1924 (solution_set_add): Likewise.
1925 (bitpos_of_field): Make signed, fix.
1926 (struct fieldoff): Remove type and decl fields. Make size field
1927 unsigned HOST_WIDE_INT. Add has_unknown_size and may_have_pointers
1929 (fieldoff_compare): Deal with it.
1930 (push_fields_onto_fieldstack): Remove has_union argument, glob
1931 adjacent non-pointer fields together.
1932 (create_function_info_for): Do not set has_union.
1933 (create_variable_info_for): Simplify.
1935 2008-07-06 Kai Tietz <kai.tietz@onevision.com>
1937 * config.gcc (extra_headers): Add cross-stdarg.h for target
1938 x86_64-*-* and i?86-*-*.
1939 * config/i386/cross-stdarg.h: New.
1940 * builtins.c (std_fn_abi_va_list): New.
1941 (std_canonical_va_list_type): New.
1942 (stabilize_va_list): Replace va_list_type_node use by
1943 mtarget.canonical_va_list_type.
1944 (gimplify_va_arg_expr): Likewise.
1945 (expand_builtin_va_copy): Replace va_list_type_node use by
1946 mtarget.fn_abi_va_list.
1947 * tree-sra.c (is_va_list_type): New helper.
1948 (decl_can_be_decomposed_p): Replace
1949 va_list_type_node use by is_va_list_type.
1950 * tree-ssa-ccp.c (optimize_stdarg_builtin): Likewise.
1951 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
1952 * c-common.c (c_common_nodes_and_builtins): Use TARGET_ENUM_VA_LIST.
1953 * config/i386/i386-protos.h (ix86_get_valist_type): New.
1954 (ix86_enum_va_list): New.
1955 * config/i386/i386.c (sysv_va_list_type_node): New.
1956 (ms_va_list_type_node): New.
1957 (ix86_function_type_abi): Remove sorry.
1958 (ix86_build_builtin_va_list_abi): New.
1959 (ix86_build_builtin_va_list): Call ix86_build_builtin_va_list_abi
1961 (ix86_va_start): Replace va_list_type_node by sysv_va_list_type_node.
1962 (ix86_init_builtins_va_builtins_abi): New.
1963 (ix86_init_builtins): Use ix86_init_builtins_va_builtins_abi
1965 (ix86_handle_abi_attribute): New.
1966 (attribute_spec): Add sysv_abi and ms_abi.
1967 (ix86_fn_abi_va_list): New.
1968 (ix86_canonical_va_list_type): New.
1969 (ix86_enum_va_list): New.
1970 (TARGET_FN_ABI_VA_LIST): New.
1971 (TARGET_CANONICAL_VA_LIST_TYPE): New.
1972 * config/i386/i386.h (TARGET_ENUM_VA_LIST): New.
1973 * doc/tm.texi (TARGET_FN_ABI_VA_LIST): New.
1974 (TARGET_CANONICAL_VA_LIST_TYPE): New.
1975 (TARGET_ENUM_VA_LIST): New.
1976 * expr.h (std_fn_abi_va_list): New.
1977 (std_canonical_va_list_type): New.
1978 * target-def.h (TARGET_FN_ABI_VA_LIST): New.
1979 (TARGET_CANONICAL_VA_LIST_TYPE): New.
1980 (TARGET_INITIALIZER): Add TARGET_FN_ABI_VA_LIST and
1981 TARGET_CANONICAL_VA_LIST_TYPE.
1982 * target.h (struct gcc_target): Add fn_abi_va_list hook
1983 and canonical_va_list_type hook.
1985 2008-07-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
1987 * fold-const.c (fold_convert_const): Treat OFFSET_TYPE the same as
1988 integral and pointer types.
1990 2008-07-04 Roger Sayle <roger@eyesopen.com>
1992 * config/rs6000/host-darwin.c (darwin_rs6000_extra_signals): Cast
1993 the "void*" result of xmalloc to "char*" to fix bootstrap breakage.
1995 2008-07-04 Kaz Kojima <kkojima@gcc.gnu.org>
1998 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable -fschedule-insns for PIC.
2000 2008-07-04 Jakub Jelinek <jakub@redhat.com>
2002 * tree-switch-conversion.c (build_one_array, gen_def_assigns): Use
2003 build_gimple_modify_stmt.
2004 (build_arrays, gen_inbound_check): Likewise. Force RHS to be
2005 gimple operand. Use fold_build* instead of build*.
2007 2008-07-04 Richard Guenther <rguenther@suse.de>
2009 * tree-ssa-structalias.c (lookup_vi_for_tree): Declare.
2010 (do_sd_constraint): Handle a dereference of ESCAPED and CALLUSED
2011 properly to compute the reachability set if we do field-sensitive PTA.
2012 * invoke.texi (max-fields-for-field-sensitive): Document default.
2013 * opts.c (decode_options): Set max-fields-for-field-sensitive to
2014 100 for optimize >= 2.
2016 2008-07-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2018 * ggc-zone.c (lookup_page_table_if_allocated,
2019 set_page_table_entry, zone_find_object_size, alloc_small_page,
2020 alloc_large_page, ggc_free, gt_ggc_m_S, ggc_marked_p, init_ggc,
2021 new_ggc_zone, init_ggc_pch, ggc_pch_this_base, ggc_pch_read): Fix
2022 -Wc++-compat and/or -Wcast-qual warnings.
2024 2008-07-04 Alan Modra <amodra@bigpond.net.au>
2027 * config/rs6000/rs6000.md (call, call_value): Don't arrange for
2028 pic_offset_table_rtx to be marked as used here.
2029 (call_nonlocal_sysv, call_value_nonlocal_sysv): Add split for
2030 TARGET_SECURE_PLT to "use" pic_offset_table_rtx.
2031 (call_nonlocal_sysv_secure, call_value_nonlocal_sysv_secure): New insn.
2032 (sibcall_nonlocal_sysv, sibcall_value_nonlocal_sysv): Assert
2035 2008-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2037 * alloc-pool.c (hash_descriptor, eq_descriptor,
2038 alloc_pool_descriptor): Fix -Wc++-compat warnings.
2039 * bitmap.c (hash_descriptor, eq_descriptor, bitmap_descriptor):
2041 * ggc-common.c (hash_descriptor, eq_descriptor, hash_ptr, eq_ptr,
2042 loc_descriptor, ggc_prune_ptr, ggc_free_overhead,
2043 final_cmp_statistic, cmp_statistic, dump_ggc_loc_statistics): Likewise.
2044 * varray.c (hash_descriptor, eq_descriptor, varray_descriptor):
2047 2008-07-03 Eric Botcazou <ebotcazou@adacore.com>
2049 * tree-flow.h (loop_only_exit_p): Declare.
2050 * tree-ssa-loop-niter.c (loop_only_exit_p): Make public.
2051 * tree-ssa-loop-ivopts.c (may_eliminate_iv): Reinstate direct check on
2052 the number of iterations if it is constant. Otherwise, if this is the
2053 only possible exit of the loop, use the conservative estimate on the
2054 number of iterations of the entire loop if available.
2056 2008-07-03 Richard Sandiford <rdsandiford@googlemail.com>
2058 * Makefile.in (libgcc.mvars): Add LIBGCC_SYNC and LIBGCC_SYNC_CFLAGS.
2059 * libgcc-std.ver (GCC_4.4.0): New version, inherited from GCC_4.3.0.
2060 Add synchronization functions.
2061 * config/sync.c: New file.
2062 * config/mips/t-libgcc-mips16 (LIBGCC_SYNC): Define.
2063 (LIBGCC_SYNC_CFLAGS): Likewise.
2065 2008-07-03 Uros Bizjak <ubizjak@gmail.com>
2068 * config/i386/i386.md (mode): Add TF to "mode" attribute.
2069 (*pushtf_sse): New insn pattern.
2070 (pushtf splitters): New splitters.
2072 2008-07-03 Michael Meissner <gnu@the-meissners.org>
2075 * predict.c (build_predict_expr): Use void_type_node for the tree
2076 type, instead of NULL_TREE.
2078 2008-07-03 H.J. Lu <hongjiu.lu@intel.com>
2080 * config/i386/i386.c (contains_aligned_value_p): Return true
2082 (ix86_data_alignment): Align TCmode to 128bits.
2083 (ix86_local_alignment): Likewise.
2085 2008-07-03 Andrew Haley <aph@redhat.com>
2088 * vec.h (VEC_TA): New.
2089 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_ALLOC_I, DEF_VEC_ALLOC_P,
2090 DEF_VEC_O, DEF_VEC_ALLOC_O: Use VEC_TA.
2091 * c-common.c (C_COMMON_FIXED_TYPES_SAT): New macro.
2092 (C_COMMON_FIXED_MODE_TYPES_SAT): New macro.
2093 (C_COMMON_FIXED_TYPES): Remove first arg.
2094 (C_COMMON_FIXED_MODE_TYPES): Likewise.
2095 * tree.c (MAKE_FIXED_TYPE_NODE): Break into two macros,
2096 MAKE_FIXED_TYPE_NODE and MAKE_FIXED_TYPE_NODE_WIDTH in order
2097 not to use empty macro arguments.
2099 2008-07-02 Joseph Myers <joseph@codesourcery.com>
2101 * config/alpha/vms_tramp.asm, config/arm/crti.asm,
2102 config/arm/crtn.asm, config/bfin/crti.s, config/bfin/crtlibid.s,
2103 config/bfin/crtn.s, config/fr30/crti.asm, config/fr30/crtn.asm,
2104 config/frv/lib1funcs.asm, config/i386/sol2-c1.asm,
2105 config/i386/sol2-ci.asm, config/i386/sol2-cn.asm,
2106 config/i386/sol2-gc1.asm, config/ia64/crti.asm,
2107 config/ia64/crtn.asm, config/m68hc11/larith.asm,
2108 config/m68hc11/m68hc11-crt0.S, config/m68k/crti.s,
2109 config/m68k/crtn.s, config/mcore/crti.asm, config/mcore/crtn.asm,
2110 config/rs6000/crtresfpr.asm, config/rs6000/crtresgpr.asm,
2111 config/rs6000/crtresxfpr.asm, config/rs6000/crtresxgpr.asm,
2112 config/rs6000/crtsavfpr.asm, config/rs6000/crtsavgpr.asm,
2113 config/rs6000/crtsavres.asm, config/rs6000/e500crtres32gpr.asm,
2114 config/rs6000/e500crtres64gpr.asm,
2115 config/rs6000/e500crtres64gprctr.asm,
2116 config/rs6000/e500crtrest32gpr.asm,
2117 config/rs6000/e500crtrest64gpr.asm,
2118 config/rs6000/e500crtresx32gpr.asm,
2119 config/rs6000/e500crtresx64gpr.asm,
2120 config/rs6000/e500crtsav32gpr.asm,
2121 config/rs6000/e500crtsav64gpr.asm,
2122 config/rs6000/e500crtsav64gprctr.asm,
2123 config/rs6000/e500crtsavg32gpr.asm,
2124 config/rs6000/e500crtsavg64gpr.asm,
2125 config/rs6000/e500crtsavg64gprctr.asm, config/rs6000/eabi-ci.asm,
2126 config/rs6000/eabi-cn.asm, config/rs6000/eabi.asm,
2127 config/rs6000/sol-ci.asm, config/rs6000/sol-cn.asm,
2128 config/rs6000/tramp.asm, config/sparc/sol2-ci.asm,
2129 config/sparc/sol2-cn.asm: Remove .file directives.
2131 2008-07-02 Richard Sandiford <rdsandiford@googlemail.com>
2133 * resource.c (mark_referenced_resources): Look inside
2134 UNSPEC_VOLATILEs and ASM_INPUTs.
2136 2008-07-02 Ian Lance Taylor <iant@google.com>
2138 * rtlanal.c (add_reg_note): New function.
2139 * rtl.h (add_reg_note): Declare.
2140 * auto-inc-dec.c (attempt_change): Use add_reg_note.
2141 * bb-reorder.c (add_reg_crossing_jump_notes): Likewise.
2142 * builtins.c (expand_builtin_longjmp): Likewise.
2143 (expand_builtin_nonlocal_goto): Likewise.
2144 * calls.c (emit_call_1, expand_call): Likewise.
2145 * cfgexpand.c (add_reg_br_prob_note): Likewise.
2146 * cfglayout.c (fixup_reorder_chain): Likewise.
2147 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
2148 (commit_one_edge_insertion): Likewise.
2149 * combine.c (move_deaths, distribute_notes): Likewise.
2150 * df-problems.c (df_set_note): Likewise.
2151 * emit-rtl.c (link_cc0_insns, try_split): Likewise.
2152 (set_unique_reg_note): Likewise.
2153 (emit_copy_of_insn_after): Likewise.
2154 * expr.c (expand_expr_real): Likewise.
2155 * gcse.c (add_label_notes): Likewise.
2156 * haifa-sched.c (create_check_block_twin): Likewise.
2157 * jump.c (mark_jump_label_1): Likewise.
2158 * loop-doloop.c (add_test, doloop_modify): Likewise.
2159 * loop-unswitch.c (compare_and_jump_seq): Likewise.
2160 * lower-subreg.c (move_eh_region_note): Likewise.
2161 * optabs.c (emit_libcall_block): Likewise.
2162 * predict.c (predict_insn): Likewise.
2163 (combine_predictions_for_insn): Likewise.
2164 * recog.c (peephole2_optimize): Likewise.
2165 * regmove.c (try_auto_increment): Likewise.
2166 * reg-stack.c (emit_pop_insn, move_for_stack_reg): Likewise.
2167 * reload.c (find_reloads): Likewise.
2168 * reload1.c (fixup_eh_region_note): Likewise.
2169 (reload_as_needed, add_auto_inc_notes, copy_eh_notes): Likewise.
2170 * reorg.c (delete_prior_computation): Likewise.
2171 (delete_computation, dbr_schedule): Likewise.
2172 * config/pa/pa.c (legitimize_pic_address): Likewise.
2173 * config/sh/sh.c (sh_reorg): Likewise.
2175 2008-07-02 H.J. Lu <hongjiu.lu@intel.com>
2178 * config/libgcc-glibc.ver: Add %exclude.
2179 * config/m32r/libgcc-glibc.ver: Likwise.
2180 * config/s390/libgcc-glibc.ver: Likwise.
2181 * config/sh/libgcc-glibc.ver: Likwise.
2182 * config/sparc/libgcc-sparc-glibc.ver: Likwise.
2184 * config/i386/libgcc-glibc.ver: New.
2186 * config/i386/libgcc-x86_64-glibc.ver: Removed.
2188 2008-07-02 H.J. Lu <hongjiu.lu@intel.com>
2190 * config.gcc: Remove i386/t-fprules-softfp64 soft-fp/t-softfp
2191 from tmake_file from i[34567]86-*-darwin*, x86_64-*-darwin*,
2192 i[34567]86-*-linux*, x86_64-*-linux*. Add
2193 i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file for
2194 i[34567]86-*-darwin*, x86_64-*-darwin*, i[34567]86-*-linux*,
2195 x86_64-*-linux*. Add i386/t-linux to tmake_file for
2196 i[34567]86-*-linux*, x86_64-*-linux*.
2198 * libgcc-std.ver: Add empty GCC_4.4.0.
2200 * mkmap-symver.awk: Support multiple versions per symbol.
2202 * config/i386/i386.c (ix86_init_builtins): Always define
2203 __builtin_fabsq and __builtin_copysignq with fallbacks.
2204 (ix86_expand_builtin): Emit normal call for __builtin_fabsq
2205 and __builtin_copysignq if SSE2 isn't available.
2207 * config/i386/linux.h (LIBGCC2_HAS_TF_MODE): Defined.
2208 (LIBGCC2_TF_CEXT): Likwise.
2211 * config/i386/linux64.h (LIBGCC2_HAS_TF_MODE): Defined as 1.
2213 * config/i386/sfp-machine.h: Moved to libgcc.
2215 * config/i386/sfp-machine.h: New.
2216 * config/i386/t-linux: Likwise.
2218 * config/i386/t-darwin: Remove softfp_wrap_start and
2220 * config/i386/t-darwin64: Likewise.
2222 * config/i386/t-fprules-softfp64: Renamed to ...
2223 * config/i386/t-fprules-softfp: This.
2225 * config/i386/t-linux64: Remove SHLIB_MAPFILES, softfp_wrap_start
2226 and softfp_wrap_end.
2228 2008-07-02 Jason Merrill <jason@redhat.com>
2230 * tree.c (ctor_to_list): Use FOR_EACH_CONSTRUCTOR_ELT.
2232 * tree.c (ctor_to_list): New fn.
2233 * tree.h: Declare it.
2234 (CONSTRUCTOR_ELT): New macro.
2235 (CONSTRUCTOR_NELTS): New macro.
2237 2008-07-02 Richard Guenther <rguenther@suse.de>
2239 * tree-ssa-structalias.c (struct variable_info): Reorder
2240 to fill padding on 64bit hosts. Make collapsed_to an int.
2241 (get_varinfo_fc): Deal with that.
2242 (new_var_info): Likewise.
2243 (collapse_rest_of_var): Likewise.
2245 2008-07-02 Joshua Sumali <jsumali@redhat.com>
2247 * doc/install.texi (--enable-java-home): Document.
2248 (--enable-aot-compile-rpm): Likewise.
2249 (--with-arch-directory): Likewise.
2250 (--with-os-directory): Likewise.
2251 (--with-origin-name): Likewise.
2252 (--with-arch-suffix): Likewise.
2253 (--with-jvm-root-dir): Likewise.
2254 (--with-jvm-jar-dir): Likewise.
2255 (--with-python-dir): Likewise.
2257 2008-07-02 Richard Guenther <rguenther@suse.de>
2259 * tree-ssa-forwprop.c (can_propagate_from): Exclude loads
2260 from decls explicitly. Merge operand checking from tuples.
2262 2008-07-02 Martin Jambor <mjambor@suse.cz>
2264 * tree-switch-conversion.c: Included timevar.h which I forgot before.
2266 2008-07-02 Martin Jambor <mjambor@suse.cz>
2268 * tree-switch-conversion.c: Included timevar.h
2269 (pass_convert_switch): Added a timevar id (TV_TREE_SWITCH_CONVERSION).
2271 * timevar.def: Added TV_TREE_SWITCH_CONVERSION.
2273 2008-07-02 Martin Jambor <mjambor@suse.cz>
2275 * tree-switch-conversion.c: Corrected various comments and
2277 (build_constructors): Fixed minor formatting mistakes.
2279 * invoke.texi (Optimize Options): Corrected the
2280 switch-conversion-max-branch-ratio parameter.
2282 2008-07-02 Mark Shinwell <shinwell@codesourcery.com>
2284 * final.c (asm_insn_count): Return zero for an empty asm body.
2286 2008-07-02 Richard Guenther <rguenther@suse.de>
2288 * bitmap.h (bitmap_set_bit): Return bool.
2289 (bitmap_clear_bit): Likewise.
2290 * bitmap.c (bitmap_set_bit): Return if the bit changed. Only
2291 write to the bitmap if it would.
2292 (bitmap_clear_bit): Likewise.
2293 * tree-ssa-structalias.c (add_implicit_graph_edge): Use
2294 bitmap_set_bit return value.
2295 (add_pred_graph_edge): Likewise.
2296 (add_graph_edge): Likewise.
2297 (do_sd_constraint): Likewise.
2298 (do_ds_constraint): Likewise.
2300 2008-07-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2302 * config/alpha/alpha.c (alpha_need_linkage, alpha_use_linkage):
2303 Fix -Wc++-compat and/or -Wcast-qual warnings.
2304 * config/i386/netware.c (gen_stdcall_or_fastcall_decoration,
2305 gen_regparm_prefix): Likewise.
2306 * vmsdbgout.c (write_modbeg, lookup_filename,
2307 vmsdbgout_source_line, vmsdbgout_init): Likewise.
2309 2008-07-02 Danny Smith <dannysmith@users.sourceforge.net>
2311 * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Undef to let
2312 defaults.h definition apply.
2314 2008-07-01 Daniel Jacobowitz <dan@codesourcery.com>
2316 * function.c (assign_parm_remove_parallels): New.
2317 (assign_parm_setup_block_p): Do not return true for non-BLKmode
2319 (assign_parm_setup_block): Do not handle them.
2320 (assign_parm_setup_reg, assign_parm_setup_stack): Call
2321 assign_parm_remove_parallels.
2323 2008-07-01 Daniel Jacobowitz <dan@codesourcery.com>
2325 * c-typeck.c (convert_for_assignment): Use
2326 vector_targets_convertible_p.
2327 * c-common.c (vector_targets_convertible_p): New.
2328 * c-common.h (vector_targets_convertible_p): New prototype.
2329 * config/rs6000/rs6000.c (rs6000_is_opaque_type): Do not check
2330 opaque_p_V2SI_type_node.
2332 2008-07-01 Steve Ellcey <sje@cup.hp.com>
2334 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Do not allow
2337 2008-07-01 Uros Bizjak <ubizjak@gmail.com>
2339 * config/i386/i386.c (ix86_build_signbit_mask): Generate TImode and
2340 TFmode constants via two element DImode vector for hosts with
2341 HOST_BITS_PER_WIDE_INT < 64.
2342 (ix86_init_builtins): Define __builtin_fabsq and __builtin_copysignq
2343 also for HOST_BITS_PER_WIDE_INT < 64.
2345 2008-07-01 Richard Guenther <rguenther@suse.de>
2347 PR tree-optimization/36666
2348 * tree-ssa-structalias.c (get_constraint_for_1): Declare.
2349 (get_constraint_exp_from_ssa_var): Split into ...
2350 (get_constraint_exp_for_temp): ... this ...
2351 (get_constraint_for_ssa_var): ... and that.
2352 Return constraint expressions for all touched sub-fields
2353 if the results address is not taken.
2354 (process_constraint): Remove assertion that aggregate
2355 assignments do not happen at this place.
2356 (get_constraint_for_component_ref): Add address_p argument.
2357 Return constraint expressions for all touched sub-fields
2358 if the results address is not taken.
2359 (do_deref): Use get_constraint_exp_for_temp.
2360 (get_constraint_for_1): Rename from ...
2361 (get_constraint_for): ... this. Add the old function as wrapper.
2362 (do_structure_copy): Use get_constraint_for_1.
2364 2008-07-01 Martin Jambor <mjambor@suse.cz>
2366 * Makefile.in (tree-switch-conversion.o): Add.
2367 (OBJS-common): Add tree-swtch-conversion.o.
2368 * passes.c (init_optimization_passes): Add pass_convert_switch.
2369 * tree-pass.h: (pass_convert_switch): Add.
2370 * tree-switch-conversion.c: New file.
2371 * gcc.dg/tree-ssa/cswtch.c: New testcase.
2372 * common.opt (ftree-cswtch): New option.
2373 * params.h (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
2374 * params.def (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
2375 * opts.c (decode_options): Set flag_tree_switch_conversion when
2376 optimization level is >= 2.
2377 * doc/invoke.texi (Optimize Options): Added description of
2378 -ftree-swtch-conversion and switch-conversion-max-branch-ratio.
2380 2008-06-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2382 * config/darwin-driver.c (darwin_default_min_version): Fix
2383 -Wc++-compat warnings.
2385 2008-06-30 Uros Bizjak <ubizjak@gmail.com>
2387 * config/i386/i386.md (*movti_rex64): Add "!" to "r" constraint
2390 2008-06-30 Kenneth Zadeck <zadeck@naturalbridge.com>
2392 * ifcvt.c (cond_move_process_if_block): Free vectors on false return.
2394 2008-06-30 Kenneth Zadeck <zadeck@naturalbridge.com>
2396 PR rtl-optimization/34744
2397 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): New macros.
2398 (df_scan_free_internal): Free data structures not
2399 allocated in storage pools.
2400 (df_mw_hardreg_chain_delete_eq_uses): Use df_scan_free_mws_vec.
2401 (df_refs_add_to_chains): Use df_scan_free_ref_vec and
2402 df_scan_free_mws_vec.
2403 * dse.c (dse_step6): Free offset_map_p and offset_map_n
2406 2008-06-30 H.J. Lu <hongjiu.lu@intel.com>
2408 * config/i386/i386.c (contains_aligned_value_p): Return true
2410 (ix86_function_arg_boundary): Return its natural boundary
2412 (return_in_memory_32): Don't check TDmode.
2413 (ix86_split_to_parts): Support splitting into 4 parts and
2414 support TFmode for 32bit target.
2415 (ix86_split_long_move): Support splitting into 4 parts.
2416 (bdesc_args): Enable IX86_BUILTIN_FABSQ and IX86_BUILTIN_COPYSIGNQ
2418 (ix86_init_mmx_sse_builtins): Move __float80 and __float128 to ...
2419 (ix86_init_builtins): Here.
2420 (ix86_scalar_mode_supported_p): Always return true for TFmode.
2421 (ix86_c_mode_for_suffix): Always return TFmode and XFmode for
2422 'q' and 'w', respectively.
2424 * config/i386/i386.md (movtf): Check TARGET_SSE2 instead of
2426 (movtf_internal): Likewise.
2427 (<code>tf2): Likewise.
2428 (*absnegtf2_sse): Likewise.
2429 (copysign<mode>3): Likewise.
2430 (copysign<mode>3_const): Likewise.
2431 (copysign<mode>3_var): Likewise.
2432 (define_split UNSPEC_COPYSIGN): Likewise.
2433 * config/i386/sse.md (*nandtf3): Likewise.
2434 (<code>tf3): Likewise.
2435 (*<code>tf3): Likewise.
2437 2008-06-30 Joey Ye <joey.ye@intel.com>
2438 H.J. Lu <hongjiu.lu@intel.com>
2440 * global.c (compute_regsets): Set frame_pointer_needed here.
2441 * reload1.c (init_elim_table): Don't set frame_pointer_needed here.
2443 2008-06-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
2445 * doc/install.texi (specific): Expand Windows build notes.
2447 2008-06-30 Ira Rosen <irar@il.ibm.com>
2449 PR tree-optimization/36648
2450 * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Divide
2451 number of prolog iterations by step. Fix the comment.
2453 2008-06-30 Richard Guenther <rguenther@suse.de>
2456 * tree-ssa-structalias.c (handle_lhs_call): Add flags argument,
2457 handle calls from ECF_MALLOC functions.
2458 (handle_pure_call): ECF_MALLOC functions do not return
2460 (find_func_aliases): Handle all calls, adjust calls to handle_lhs_call.
2462 2008-06-29 Andreas Schwab <schwab@suse.de>
2464 * config/m68k/m68k.c (print_operand): Always print a float
2466 * config/m68k/m68k.h (ASM_OUTPUT_FLOAT_OPERAND)
2467 (ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND):
2470 * config/rs6000/x-linux64: Remove never used file.
2472 2008-06-29 Richard Guenther <rguenther@suse.de>
2474 * tree-ssa-structalias.h (compute_points_to_sets): Adjust
2476 (struct alias_info): Move ...
2477 * tree-ssa-alias.c: ... here.
2478 (update_alias_info): Declare.
2479 (compute_may_aliases): Call it.
2480 (update_alias_info): New function.
2481 * tree-ssa-structalias.c (update_alias_info): Move ...
2482 * tree-ssa-alias.c (update_alias_info_1): ... here.
2483 * tree-ssa-structalias.c (process_constraint_1): Remove
2484 unused from_call argument. Rename to ...
2485 (process_constraint): ... this. Delete old wrapper.
2486 (make_constraint_to): Adjust callers.
2487 (handle_const_call): Likewise.
2488 (handle_pure_call): Likewise.
2489 (init_base_vars): Likewise.
2490 (handle_lhs_call): Likewise. Remove unnecessary constraint.
2491 (find_func_aliases): We don't need structure copies for
2493 (make_constraint_from_anything): Remove.
2494 (create_variable_info_for): For globals make constraints
2495 from escaped, not from anything.
2496 (compute_points_to_sets): Do not call update_alias_info.
2497 (ipa_pta_execute): Use make_constraint_from.
2499 2008-06-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2501 * Makefile.in (CXX_COMPAT_WARN, cxx_compat_warn): Delete.
2502 (bitmap.o-warn, dominance.o-warn): New.
2503 * configure.ac (cxx_compat_warn): Delete.
2504 (loose_warn): Add -Wcast-qual and -Wc++-compat.
2505 * system.h: Remove #pragma diagnostic for -Wcast-qual and
2507 * configure: Regenerate.
2509 * optabs.c (libfunc_decl_hash, libfunc_decl_eq): Fix -Wcast-qual
2512 2008-06-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2514 * alloc-pool.c (create_alloc_pool): Fix -Wc++-compat warnings.
2515 * df-scan.c (df_notes_rescan): Likewise.
2516 * ggc-page.c (set_page_table_entry): Likewise.
2517 * intl.c (gcc_gettext_width): Likewise.
2518 * varasm.c (get_unnamed_section, get_noswitch_section,
2519 get_section): Likewise.
2521 2008-06-28 Andrew Jenner <andrew@codesourcery.com>
2523 * regrename.c (build_def_use): Don't copy RTX.
2525 2008-06-28 Sandra Loosemore <sandra@codesourcery.com>
2527 * doc/extend.texi (Variable Attributes): Use @ref instead of @xref.
2528 (Type Attributes): Fix nesting of @table and @subsection. Adjust
2529 punctuation. Use @ref instead of @xref.
2530 (Function Names): Remove stray @display/@end display.
2531 (C++ Attributes): Use @ref instead of @xref.
2532 (Deprecated Features): Fix punctuation around @xref.
2533 (Backwards Compatibility): Likewise.
2534 * doc/rtl.texi (Incdec): Remove stray @table/@end table.
2536 2008-06-28 Joseph Myers <joseph@codesourcery.com>
2538 * config/rs6000/predicates.md (easy_fp_constant): Reject TFmode
2539 constants for E500 double.
2541 2008-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2543 * doc/rtl.texi (const_vector): Document const_fixed as legitimate
2544 element type of const_vector.
2546 2008-06-28 Uros Bizjak <ubizjak@gmail.com>
2548 * config/i386/i386.md (addti3, adddi3, addsi3, addhi3, addqi3):
2549 Remove FLAGS_REG clobber from expander pattern.
2550 (subti3, subdi3, subsi3, subhi3, subqi3): Ditto.
2551 (anddi3, andsi3, andhi3, andqi3): Ditto.
2552 (iordi3, iorsi3, iorhi3, iorqi3): Ditto.
2553 (xordi3, xorsi3, xorhi3, xorqi3): Ditto.
2554 (negti2, negdi2, negsi2, neghi2, negqi2): Ditto.
2555 (ashlsi3, ashlhi3, ashlqi3): Ditto.
2556 (ashrsi3, ashrhi3, ashrqi3): Ditto.
2557 (lshrsi3, lshrhi3, lshrqi3): Ditto.
2558 (rotldi3, rotlsi3, rotlhi3, rotlqi3): Ditto.
2559 (rotrdi3, rotrsi3, rotrhi3, rotrqi3): Ditto.
2561 2008-06-28 Richard Guenther <rguenther@suse.de>
2563 * tree-ssa-structalias.c (callused_id, var_callused,
2564 callused_tree): Add.
2565 (handle_pure_call): New function.
2566 (find_func_aliases): Call it.
2567 (find_what_p_points_to): Handle the call-used set.
2568 (clobber_what_escaped): Likewise.
2569 (compute_call_used_vars): New function.
2570 (init_base_vars): Init the call-used variable.
2571 (do_sd_constraint): Do not propagate the solution from CALLUSED
2572 but use CALLUSED as a placeholder.
2573 (solve_graph): Likewise.
2574 * tree-flow-inline.h (gimple_call_used_vars): New function.
2575 * tree-flow.h (struct gimple_df): Add call_used_vars bitmap.
2576 (compute_call_used_vars): Declare.
2577 * tree-ssa-alias.c (set_initial_properties): Call
2578 compute_call_used_vars.
2579 (reset_alias_info): Clear call-used variables.
2580 (add_call_clobber_ops): Assert we are not called for const/pure
2581 functions. Remove handling of them.
2582 (add_call_read_ops): Handle pure functions by adding the
2583 call-used set of variables as VUSEs.
2584 * tree-ssa.c (init_tree_ssa): Allocate call-used bitmap.
2585 (delete_tree_ssa): Free it.
2586 * tree-dfa.c (remove_referenced_var): Clear the var from the
2589 2008-06-28 Kai Tietz <kai.tietz@onevision.com>
2591 * tree.c (build_varargs_function_type_list): New.
2592 (build_function_type_list_1): New.
2593 (build_function_type_list): Use build_function_type_list_1.
2594 * tree.h (build_varargs_function_type_list): New.
2596 2008-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2599 * config/spu/spu.c (spu_builtin_splats): Do not generate
2600 invalid CONST_VECTOR expressions.
2601 (spu_expand_vector_init): Likewise.
2603 2008-06-28 Richard Sandiford <rdsandiford@googlemail.com>
2605 * optabs.c (libfunc_decls): New variable.
2606 (libfunc_decl_hash, libfunc_decl_eq): New functions.
2607 (init_one_libfunc): Reuse decls and SYMBOL_REFs when asked
2608 for the same function twice.
2610 2008-06-27 Uros Bizjak <ubizjak@gmail.com>
2612 * config/i386/i386.md (ashlti3, ashrti3, lshrti3): Expand using
2613 ix86_expand_binary_operator directly.
2614 (*ashlti3_1): Rename from ashlti3_1. Use nonmemory_operand predicate
2616 (*ashrti3_1): Ditto.
2617 (*lshrti3_1): Ditto.
2618 (*ashlti3_2, *ashrti3_2, *lshrti3_2): Remove insn patterns.
2619 (ashlti, ashrti and lshrti splitters): Handle nonmemory operand 2
2620 using only one splitter. Conditionaly execute splitter before or
2621 after peephole2 pass.
2622 (ashlti, ashrti and lshrti peephole2): Define peephole2 patterns.
2623 (x86_shld): Rename from x86_shld_1. Compress operand 2 constraints.
2624 Use only one alternative in asm template.
2625 (x86_64_shld): Compress operand 2 constraints. Use only one alternative
2627 (*ashldi3_cmp_rex64): Use const_1_to_63_operand operand predicate and
2628 "J" operand constraint for operand 2.
2629 (*ashldi3_cconly_rex64): Ditto.
2630 (*ashrdi3_cmp_rex64): Ditto.
2631 (*ashrdi3_cconly_rex64): Ditto.
2632 (*lshrdi3_cmp_rex64): Ditto.
2633 (*lshrdi3_cconly_rex64): Ditto.
2634 * config/i386/predicates.md (const_1_to_63_operand): New predicate.
2635 * config/i386/i386.md (print_operand) ['s']: Print ", " using fputs.
2636 (split_ashr, split_ashl, split_lshr): Use gen_x86_shrd instead of
2639 2008-06-27 Jakub Jelinek <jakub@redhat.com>
2641 * gimplify.c (omp_is_private): Don't return true if decl is not
2642 already private on #pragma omp for or #pragma omp parallel for.
2645 * tree-cfg.c (struct move_stmt_d): Replace block field with
2646 orig_block and new_block fields.
2647 (move_stmt_r): Only set TREE_BLOCK to p->new_block if
2648 if it used to be NULL, p->orig_block or if p->orig_block is NULL.
2649 (move_block_to_fn): Replace vars_map and new_label_map arguments
2650 with struct move_stmt_d pointer.
2651 (replace_block_vars_by_duplicates): New function.
2652 (move_sese_region_to_fn): Add ORIG_BLOCK argument. Adjust
2653 move_block_to_fn caller. If ORIG_BLOCK is non-NULL, move over
2654 all subblocks of ORIG_BLOCK to the new function. Call
2655 replace_block_vars_by_duplicates.
2656 * tree-flow.h (move_sese_region_to_fn): Adjust prototype.
2657 * omp-low.c (expand_omp_taskreg): Set TREE_USED on DECL_INITIAL
2658 BLOCK of the new function. Adjust move_sese_region_to_fn caller.
2659 Prune vars with original DECL_CONTEXT from child_cfun->local_decls.
2660 (expand_omp): Temporarily set input_location to the location of
2661 region's controlling stmt.
2662 (lower_omp_sections, lower_omp_for): Add a BLOCK into outermost
2663 BIND_EXPR, push ctx->block_vars and gimplification vars into
2664 the BIND_EXPR and its block's BLOCK_VARS instead of directly
2666 (lower_omp_single): Set TREE_USED on the BIND_EXPR's BLOCK if
2667 there are any BLOCK_VARS.
2668 (lower_omp_taskreg): Set BLOCK on a BIND_EXPR containing the
2669 OMP_PARALLEL or OMP_TASK stmt.
2670 (lower_omp): Save and restore input_location around the lower_omp_1
2673 2008-06-27 Richard Guenther <rguenther@suse.de>
2675 PR tree-optimization/36400
2676 PR tree-optimization/36373
2677 PR tree-optimization/36344
2678 * tree-ssa-structalias.c (var_escaped, escaped_tree, escaped_id,
2679 var_nonlocal, nonlocal_tree, nonlocal_id): New globals
2680 (update_alias_info): Remove call clobbering code.
2681 (make_constraint_to): New helper function.
2682 (make_escape_constraint): Likewise.
2683 (handle_rhs_call): Use it on all pointer containing arguments.
2684 Also mark the static chain escaped.
2685 (handle_lhs_call): Make constraints from NONLOCAL and ESCAPED
2686 instead of ANYTHING.
2687 (make_constraint_from): New helper split out from ...
2688 (make_constraint_from_anything): ... here.
2689 (find_func_aliases): Add constraints for escape sites.
2690 (intra_create_variable_infos): Make constraints from NONLOCAL
2692 (find_what_p_points_to): Interpret NONLOCAL and ESCAPED the same
2694 (clobber_what_p_points_to): Remove.
2695 (clobber_what_escaped): New function.
2696 (init_base_vars): Init NONLOCAL and ESCAPED.
2697 (do_sd_constraint): Do not propagate the solution from ESCAPED
2698 but use ESCAPED as a placeholder.
2699 (solve_graph): Likewise.
2700 * tree-flow.h (clobber_what_p_points_to): Remove.
2701 (clobber_what_escaped): Declare.
2702 * tree-ssa-alias.c (set_initial_properties): Call it.
2703 Remove code clobbering escaped pointers.
2705 2008-06-27 Richard Sandiford <rdsandiford@googlemail.com>
2707 * function.c (allocate_struct_function): Only allocate a unique
2708 funcdef_no if the decl is nonzero.
2710 2008-06-27 Richard Sandiford <rdsandiford@googlemail.com>
2712 * config/mips/mips-protos.h (mips_split_const_insns): Declare.
2713 * config/mips/mips.c (mips_split_const_insns): New function.
2714 * config/mips/mips.md (move_type): New attribute.
2715 (mode): Move attribute definition earlier in file. Add "TI" and "TF".
2716 (dword_mode): New attribute.
2717 (type): Avoid long line. Map "move_type"s to "type"s,
2718 choosing "multi" for doubleword moves if appropriate.
2719 Swap MTC/MFC comments to match their declaration order.
2720 (extended_mips16): Default to "yes" if "move_type" is "sll0",
2721 "type" is "branch" or "jal" is "direct".
2722 (length): Handle "extended_mips16" first. Make the default
2723 "0" for "ghost" instructions. Set the length from "move_type".
2724 (truncdisi2, truncdihi2, truncdiqi2): Use "move_type" instead
2725 of "type", with "sll0" for the register alternative. Remove the
2726 "extended_mips16" attribute.
2727 (zero_extendsidi2, *clear_upper32): Use "move_type" instead
2728 of "type", with "shift_shift" for the register alternative.
2729 Remove the "length" attribute.
2730 (*extend<SHORT:mode><GPR:mode>2, *extendqihi2): Likewise.
2731 (*zero_extend<SHORT:mode><GPR:mode>2): Use "move_type" instead
2732 of "type", with "andi" for the register alternative.
2733 (*zero_extendqihi2): Likewise.
2734 (*zero_extend<SHORT:mode><GPR:mode>2_mips16e): Use a "move_type"
2735 of "andi" instead of a "type" of "arith".
2736 (*zero_extend<SHORT:mode><GPR:mode>2_mips16): Use "move_type"
2738 (*zero_extendqihi2_mips16, mov_<load>l, mov_<load>r, mov_<store>l)
2739 (mov_<store>r, *mov<mode>_ra): Likewise.
2740 (extendsidi2): Use "move_type" instead of "type", with "move"
2741 for the register alternative.
2742 (*extend<SHORT:mode><GPR:mode>2_mips16e): Use "move_type" instead
2743 of "type", with "signext" for the register alternative.
2744 (*extend<SHORT:mode><GPR:mode>2_se<SHORT:size>): Likewise.
2745 (*extendqihi2_mips16e, *extendqihi2_seb): Likewise.
2746 (fix_truncdfsi2_insn, fix_truncsfsi2_insn, fix_truncdfdi2)
2747 (fix_truncsfdi2, floatsidf2, floatdidf2, floatsisf2, floatdisf2)
2748 (floatdisf2, *branch_equality<mode>_mips16): Likewise.
2749 (unnamed branch insn): Likewise.
2750 (*movdi_gp32_fp64): Fold into...
2751 (*movdi_32bit): ...here.
2752 (*movdf_hardfloat_64bit, *movdf_hardfloat_32bit): Combine into...
2753 (*movdf_hardfloat): ...this new pattern.
2754 (*movdf_softfloat): Remove redundant FPR alternatives.
2755 (*movti, *movti_mips16, *movtf, *movtf_mips16): Add "mode" attributes.
2756 (*movv2sf_hardfloat_64bit, *movv2sf_hardfloat_32bit): Combine into...
2757 (*movv2sf): ...this new pattern. Use "DF" rather than "SF" for
2758 the "move" attribute.
2759 (*movdi_32bit): Use "move_type" instead of "type" and remove the
2760 "length" attribute. Use "fpload" and "fpstore" instead of "load"
2761 and "store" for COP loads and stores.
2762 (*movdi_32bit_mips16, *movdi_64bit, *movsi_internal, movcc)
2763 (*movhi_internal, *movhi_mips16, *movqi_internal, *movqi_mips16)
2764 (*movsf_hardfloat, *movsf_softfloat, *movsi_mips16, *movdf_hardfloat)
2765 (*movdf_softfloat, *movdf_mips16, *movti, *movti_mips16, *movtf)
2766 (*movtf_mips16, *movv2sf): Likewise.
2767 (mfhi<GPR:mode>_<HILO:mode>, mflo<GPR:mode>_<HILO:mode>)
2768 (load_low<mode>, load_high<mode>, store_word<mode>, mthc1<mode>)
2769 (mfhc1<mode>): Use "move_type" instead of "move".
2770 (*low<mode>_mips16): Use "extended_mips16" instead of "length".
2771 (loadgp_blockage): Remove the "length" attribute.
2772 (blockage, set_got_version, update_got_version): Likewise.
2773 (call_internal): Remove the "extended_mips16" attribute.
2774 (call_value_internal, call_value_multiple_internal): Likewise.
2775 * config/mips/loongson.md (mov<mode>_internal): Use "move_type"
2777 * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Remove
2778 the "length" attribute.
2780 2008-06-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2782 * c-format.c (handle_format_attribute): Fix -Wc++-compat and/or
2783 -Wcast-qual warnings.
2784 * c-pragma.c (dpm_eq, handle_pragma_push_macro,
2785 handle_pragma_pop_macro): Likewise.
2786 * collect2.c (resolve_lib_name): Likewise.
2787 * config/arc/arc.c (arc_init): Likewise.
2788 * config/arm/arm.c (neon_builtin_compare,
2789 locate_neon_builtin_icode): Likewise.
2790 * config/arm/pe.c (arm_mark_dllexport, arm_pe_unique_section): Likewise.
2791 * config/bfin/bfin.c (bfin_init_machine_status,
2792 bfin_optimize_loop): Likewise.
2793 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
2794 * config/cris/cris.c (cris_init_expanders): Likewise.
2795 * config/darwin-c.c (frameworks_in_use, add_framework): Likewise.
2796 * config/darwin.c (machopic_indirection_eq,
2797 machopic_indirection_name, machopic_output_indirection): Likewise.
2798 * config/frv/frv.c (frv_init_machine_status, frv_compare_insns,
2799 frv_io_check_address, frv_io_handle_set, frv_io_handle_use_1,
2800 frv_optimize_membar): Likewise.
2801 * config/i386/cygwin.h (mingw_scan,
2802 GCC_DRIVER_HOST_INITIALIZATION): Likewise.
2803 * config/i386/cygwin1.c (mingw_scan): Likewise.
2804 * config/i386/i386.c (machopic_output_stub): Likewise.
2805 * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix,
2806 i386_pe_unique_section): Likewise.
2807 * config/ia64/ia64.c (ia64_init_machine_status,
2808 ia64_h_i_d_extended, get_free_bundle_state, bundling, ia64_reorg):
2810 * config/iq2000/iq2000.c, iq2000_init_machine_status): Likewise.
2811 * config/m68hc11/m68hc11.c (m68hc11_encode_label): Likewise.
2812 * config/m68k/m68k.c (m68k_handle_option,
2813 m68k_sched_md_init_global): Likewise.
2814 * config/mcore/mcore.c (mcore_mark_dllexport, mcore_mark_dllimport,
2815 mcore_unique_section): Likewise.
2816 * config/mips/mips.c (mips_block_move_straight,
2817 mips16_rewrite_pool_refs, mips_sim_wait_regs_2, mips_sim_record_set):
2819 * config/mmix/mmix.c (mmix_init_machine_status,
2820 mmix_encode_section_info): Likewise.
2821 * config/pa/pa.c (pa_init_machine_status, hppa_encode_label): Likewise.
2822 * config/rs6000/rs6000.c (rs6000_init_machine_status,
2823 print_operand_address, output_toc, redefine_groups,
2824 rs6000_elf_encode_section_info, machopic_output_stub): Likewise.
2825 * config/s390/s390.c (s390_init_machine_status): Likewise.
2826 * config/score/score.c (score_block_move_straight,
2827 score_block_move_loop_body): Likewise.
2828 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
2829 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
2830 * emit-rtl.c (find_auto_inc): Likewise.
2831 * gcc.c (translate_options, process_command): Likewise.
2832 * reorg.c (dbr_schedule): Likewise.
2833 * sdbout.c (sdbout_start_source_file, sdbout_init): Likewise.
2834 * xcoffout.c (xcoffout_declare_function): Likewise.
2836 2008-06-27 Daniel Berlin <dberlin@dberlin.org>
2838 * tree-ssa-structalias.c (find_func_aliases): Trivial fix to get
2839 ipa-pta working again.
2841 2008-06-27 David Edelsohn <edelsohn@gnu.org>
2843 * config/rs6000/t-aix52: Append large data option to LDFLAGS for
2846 2008-06-27 Edmar Wienskoski <edmar@freescale.com>
2848 * config.gcc (powerpc*-*-*): Add new core e500mc.
2849 * config/rs6000/e500mc.md: New file.
2850 * config/rs6000/rs6000.c (processor_costs): Add new costs for
2852 (rs6000_override_options): Add e500mc case to
2853 processor_target_table. Altivec and Spe options not allowed
2854 with e500mc. Add isel instruction to e500mc by
2855 default. Initialize rs6000_cost for e500mc.
2856 (rs6000_issue_rate): Set issue rate for e500mc.
2857 * config/rs6000/rs6000.h (processor_type): Add
2858 PROCESSOR_PPCE500MC.
2859 (ASM_CPU_SPEC): Add e500mc.
2860 Set TARGET_ISEL to rs6000_isel.
2861 * config/rs6000/e500.h: Remove redefinition of TARGET_ISEL.
2862 (CHECK_E500_OPTIONS): Remove TARGET_ISEL.
2863 * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce500mc.
2865 * doc/invoke.texi: Add e500mc to list of cpus.
2867 2008-06-27 Laurynas Biveinis <laurynas.biveinis@gmail.com>
2870 * c-lex.c (lex_charconst): Initialize unsignedp.
2872 2008-06-27 Olivier Hainque <hainque@adacore.com>
2874 * gimplify.c (gimplify_modify_expr_to_memset): Assert our
2875 documented assumptions.
2877 2008-06-26 H.J. Lu <hongjiu.lu@intel.com>
2879 * dwarf2out.c: Remove trailing white spaces. Break long line
2882 2008-06-26 Richard Sandiford <rdsandiford@googlemail.com>
2884 * libfuncs.h (LTI_synchronize): New libfunc_index.
2885 (synchronize_libfunc): Declare.
2886 * builtins.c (expand_builtin_synchronize): Consider using
2887 synchronize_libfunc before falling back on an asm blockage.
2888 * config/mips/mips.c: Include libfuncs.h
2889 (mips_init_libfuncs): Initialize synchronize_libfunc for TARGET_MIPS16.
2891 2008-06-26 Nathan Froyd <froydnj@codesourcery.com>
2893 * config/rs6000/rs6000.c (emit_allocate_stack): Add copy_r11
2894 parameter. Copy stack_reg to r11 where appropriate.
2895 (no_global_regs_above): Add gpr parameter.
2896 (rs6000_stack_info): Only add padding for SPE save area if we
2897 are saving SPE GPRs and CR.
2898 (saveres_routine_syms): New variable.
2899 (FIRST_SAVRES_REGISTER, LAST_SAVRES_REGISTER, N_SAVRES_REGISTERS):
2901 (rs6000_savres_routine_sym): New function.
2902 (rs6000_emit_stack_reset, rs6000_restore_saved_cr): New functions,
2904 (rs6000_emit_epilogue): ...here. Use rs6000_use_multiple_p and
2905 rs6000_savres_strategy. Restore GPRs out-of-line if appropriate.
2906 Tweak FPR out-of-line saving.
2907 (rs6000_make_savres_rtx): New function.
2908 (rs6000_use_multiple_p): New function.
2909 (rs6000_savres_strategy): New function.
2910 (rs6000_emit_prologue): Use rs6000_savres_strategy. Save GPRs
2911 out-of-line if appropriate.
2912 * config/rs6000/sysv4.h (FP_SAVE_INLINE): Save FPRs out-of-line
2913 if we are optimizing for size.
2914 (GP_SAVE_INLINE): Define.
2915 (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX): Only use _l on 64-bit targets.
2916 * config/rs6000/darwin.h (GP_SAVE_INLINE): Define.
2917 * config/rs6000/aix.h (GP_SAVE_INLINE): Define.
2918 * config/rs6000/rs6000.md (*save_gpregs_<mode>): New insn.
2919 (*save_fpregs_<mode>): Add use of r11.
2920 (*restore_gpregs_<mode>): New insn.
2921 (*return_and_restore_gpregs_<mode>): New insn.
2922 (*return_and_restore_fpregs_<mode>): Adjust to clobber LR and
2924 * config/rs6000/spe.md (*save_gpregs_spe): New insn.
2925 (*restore_gpregs_spe): New insn.
2926 (*return_and_restore_gpregs_spe): New insn.
2927 * config/rs6000/predicates.md (save_world_operation): Fix check.
2929 2008-06-26 Steven Bosscher <steven@gcc.gnu.org>
2931 * tree-into-ssa (insert_phi_nodes_for): 'var' must be a DECL at
2932 this point, so assert that.
2934 2008-06-26 Steven Bosscher <steven@gcc.gnu.org>
2936 * cfganal.c: Include vec.h and vecprim.h.
2937 (compute_idf): Import from...
2938 * tree-into-ssa (compute_idf): ...here.
2939 * basic-block.h (compute_idf): Export.
2941 2008-06-26 Joseph Myers <joseph@codesourcery.com>
2943 * c-decl.c (merge_decls): Use !current_function_decl to check for
2944 extern declaration of C99 inline function being at file scope.
2946 2008-06-25 John David Anglin <dave.anglin@gcc-cnrc.gc.ca>
2948 * config.gcc (hppa[12]*-*-hpux10*): Don't use fixproto.
2950 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2952 * alias.c (record_alias_subset, init_alias_analysis): Fix
2953 -Wc++-compat and/or -Wcast-qual warnings.
2954 * attribs.c (lookup_attribute_spec): Likewise.
2955 * bb-reorder.c (find_traces, rotate_loop, find_traces_1_round,
2956 copy_bb, connect_traces,
2957 find_rarely_executed_basic_blocks_and_cr): Likewise.
2958 * bt-load.c (find_btr_def_group, add_btr_def, new_btr_user,
2959 note_btr_set, migrate_btr_defs): Likewise.
2960 * builtins.c (result_vector, expand_builtin_memcpy,
2961 expand_builtin_mempcpy_args, expand_builtin_strncpy,
2962 builtin_memset_read_str, expand_builtin_printf,
2963 fold_builtin_memchr, rewrite_call_expr, fold_builtin_printf):
2965 * caller-save.c (mark_set_regs): Likewise.
2966 * calls.c (expand_call, emit_library_call_value_1): Likewise.
2967 * cgraph.c (cgraph_edge): Likewise.
2968 * combine.c (likely_spilled_retval_1): Likewise.
2969 * coverage.c (htab_counts_entry_hash, htab_counts_entry_eq,
2970 htab_counts_entry_del, get_coverage_counts): Likewise.
2971 * cselib.c (new_elt_list, new_elt_loc_list, entry_and_rtx_equal_p,
2972 new_cselib_val): Likewise.
2973 * dbgcnt.c (dbg_cnt_process_opt): Likewise.
2974 * dbxout.c (dbxout_init, dbxout_type, output_used_types_helper):
2976 * df-core.c (df_compact_blocks): Likewise.
2977 * df-problems.c (df_grow_bb_info, df_chain_create): Likewise.
2978 * df-scan.c (df_grow_reg_info, df_ref_create,
2979 df_insn_create_insn_record, df_insn_rescan, df_notes_rescan,
2980 df_ref_compare, df_ref_create_structure, df_bb_refs_record,
2981 df_record_entry_block_defs, df_record_exit_block_uses,
2982 df_bb_verify): Likewise.
2983 * df.h (DF_REF_EXTRACT_WIDTH_CONST, DF_REF_EXTRACT_OFFSET_CONST,
2984 DF_REF_EXTRACT_MODE_CONST): New.
2985 * dominance.c (get_immediate_dominator, get_dominated_by,
2986 nearest_common_dominator, root_of_dom_tree,
2987 iterate_fix_dominators, first_dom_son, next_dom_son): Fix
2988 -Wc++-compat and/or -Wcast-qual warnings.
2989 * dse.c (clear_alias_set_lookup, get_group_info, gen_rtx_MEM,
2990 record_store, replace_read, check_mem_read_rtx, scan_insn,
2991 dse_step1, dse_record_singleton_alias_set): Likewise.
2992 * dwarf2asm.c (dw2_force_const_mem): Likewise.
2994 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2996 * dwarf2out.c (new_cfi, queue_reg_save, dwarf2out_begin_prologue,
2997 dwarf2out_frame_init, new_loc_descr, new_die, lookup_decl_die,
2998 lookup_decl_loc, add_var_loc_to_decl, compute_section_prefix,
2999 assign_symbol_names, htab_cu_hash, htab_cu_eq, htab_cu_del,
3000 build_abbrev_table, new_loc_list, output_comp_unit, add_arange,
3001 add_ranges_num, add_ranges_by_labels, file_info_cmp,
3002 file_name_acquire, output_file_names, add_const_value_attribute,
3003 premark_used_types_helper, file_table_eq, file_table_hash,
3004 lookup_filename, dwarf2out_var_location, dwarf2out_source_line,
3005 dwarf2out_init, file_table_relative_p): Fix -Wc++-compat and/or
3006 -Wcast-qual warnings.
3007 * ebitmap.c (ebitmap_array_grow, ebitmap_array_init,
3008 ebitmap_alloc, ebitmap_ior, ebitmap_and_compl): Likewise.
3009 * emit-rtl.c (get_mem_attrs, get_reg_attrs, gen_rtvec,
3010 gen_reg_rtx, start_sequence, init_emit): Likewise.
3011 * et-forest.c (et_new_occ, et_new_tree): Likewise.
3012 * except.c (init_eh_for_function, gen_eh_region,
3013 remove_unreachable_regions, add_ehl_entry, duplicate_eh_regions_1,
3014 arh_to_landing_pad, arh_to_label, add_action_record,
3015 add_call_site, switch_to_exception_section): Likewise.
3016 * expmed.c (synth_mult): Likewise.
3017 * expr.c (gen_group_rtx, emit_group_load, emit_group_store,
3018 store_expr): Likewise.
3019 * final.c (shorten_branches, final_scan_insn, debug_queue_symbol):
3021 * function.c (assign_stack_temp_for_type,
3022 allocate_struct_function, match_asm_constraints_1): Likewise.
3023 * gcov-io.c (gcov_allocate): Likewise.
3024 * gcse.c (GNEW, GCNEW, GNEWVEC, GCNEWVEC, GRESIZEVEC, GNEWVAR,
3025 GCNEWVAR, GRESIZEVAR, GOBNEW, GOBNEWVAR): New.
3026 (gcse_main, alloc_gcse_mem, alloc_gcse_mem, alloc_reg_set_mem,
3027 record_one_set, insert_expr_in_table, insert_set_in_table,
3028 dump_hash_table, compute_hash_table_work, alloc_hash_table,
3029 pre_ldst_expr_hash, pre_ldst_expr_eq, find_rtx_in_ldst,
3030 reg_set_info, reg_clear_last_set): Fix -Wc++-compat and/or
3031 -Wcast-qual warnings.
3033 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3035 * cse.c (approx_reg_cost_1, cse_insn): Fix -Wc++-compat and/or
3036 -Wcast-qual warnings.
3037 * gcc.c (process_command): Likewise.
3038 * genattrtab.c (oballoc): Use XOBNEW.
3039 (oballocvec): Define.
3040 (attr_hash_add_rtx, attr_hash_add_string, attr_string,
3041 get_attr_value, fill_attr, make_length_attrs, gen_attr, gen_insn,
3042 gen_delay, find_attr, gen_insn_reserv, gen_bypass_1): Fix
3043 -Wc++-compat and/or -Wcast-qual warnings.
3044 * genautomata.c (XCREATENODE, XCREATENODEVEC, XCREATENODEVAR,
3045 XCOPYNODE, XCOPYNODEVEC, XCOPYNODEVAR): New.
3046 (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
3047 gen_presence_absence_set, gen_automaton, gen_regexp_el,
3048 gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
3049 gen_regexp_sequence, gen_reserv, gen_insn_reserv, process_excls,
3050 add_excls, process_presence_absence_names,
3051 process_presence_absence_patterns, add_presence_absence,
3052 process_regexp, add_advance_cycle_insn_decl, get_free_alt_state,
3053 get_free_state, add_arc, get_free_automata_list_el,
3054 form_reserv_sets_list, copy_insn_regexp, transform_1, transform_2,
3055 transform_3, cache_presence, create_ainsns, create_automata,
3056 create_state_ainsn_table, dfa_insn_code_enlarge,
3057 output_trans_func, output_min_issue_delay_func,
3058 output_dead_lock_func, output_reset_func,
3059 output_get_cpu_unit_code_func, output_dfa_start_func,
3060 expand_automata): Likewise.
3061 * genextract.c (gen_insn): Likewise.
3062 * gengtype-lex.l: Likewise.
3063 * gengtype.c (read_input_list, adjust_field_type,
3064 process_gc_options): Likewise.
3065 * genoutput.c (note_constraint): Likewise.
3066 * genpreds.c (mangle, add_constraint): Likewise.
3067 * genrecog.c (process_define_predicate, new_decision,
3068 add_to_sequence): Likewise.
3069 * gensupport.c (record_insn_name): Likewise.
3071 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3073 * config/i386/driver-i386.c (detect_caches_amd,
3074 detect_caches_intel, host_detect_local_cpu): Fix -Wc++-compat
3075 and/or -Wcast-qual warnings.
3076 *ggc-common.c (ggc_mark_roots, gt_pch_note_object,
3077 gt_pch_note_reorder, relocate_ptrs, write_pch_globals,
3078 gt_pch_save): Likewise.
3079 * ggc-page.c (push_depth, push_by_depth, alloc_anon, alloc_page,
3080 gt_ggc_m_S, clear_marks, ggc_pch_read): Likewise.
3081 * global.c (compute_regsets): Likewise.
3082 * graph.c (print_rtl_graph_with_bb, clean_graph_dump_file,
3083 finish_graph_dump_file): Likewise.
3084 * haifa-sched.c (schedule_block, extend_h_i_d, extend_ready,
3085 unlink_bb_notes): Likewise.
3086 * integrate.c (get_hard_reg_initial_val): Likewise.
3087 * ipa-prop.c (ipa_push_func_to_list): Likewise.
3088 * ipa-struct-reorg.c (gen_var_name, gen_cluster_name): Likewise.
3089 * local-alloc.c (update_equiv_regs): Likewise.
3090 * loop-invariant.c (check_invariant_table_size,
3091 hash_invariant_expr, eq_invariant_expr, find_or_insert_inv):
3093 * loop-iv.c (check_iv_ref_table_size, analyzed_for_bivness_p,
3094 altered_reg_used, mark_altered): Likewise.
3095 * loop-unroll.c (si_info_eq, ve_info_eq, allocate_basic_variable,
3096 insert_var_expansion_initialization,
3097 combine_var_copies_in_loop_exit, apply_opt_in_copies,
3098 release_var_copies): Likewise.
3099 * matrix-reorg.c (mat_acc_phi_hash, mat_acc_phi_eq, mtt_info_eq,
3100 analyze_matrix_decl, add_allocation_site, analyze_transpose,
3101 analyze_accesses_for_phi_node, check_var_notmodified_p,
3102 check_allocation_function, find_sites_in_func,
3103 record_all_accesses_in_func, transform_access_sites,
3104 transform_allocation_sites): Likewise.
3105 * omp-low.c (new_omp_region, create_omp_child_function_name,
3106 check_omp_nesting_restrictions, check_combined_parallel,
3107 lower_omp_2, diagnose_sb_1, diagnose_sb_2): Likewise.
3108 * optabs.c (no_conflict_move_test, gen_libfunc, gen_fp_libfunc,
3109 gen_intv_fp_libfunc, gen_interclass_conv_libfunc,
3110 gen_intraclass_conv_libfunc, set_optab_libfunc, set_conv_libfunc):
3112 * opts-common.c (prune_options): Likewise.
3113 * opts.c (add_input_filename, print_filtered_help,
3114 get_option_state): Likewise.
3115 * params.c (add_params): Likewise.
3116 * passes.c (set_pass_for_id, next_pass_1,
3117 do_per_function_toporder, pass_fini_dump_file): Likewise.
3118 * postreload.c (reload_cse_simplify_operands): Likewise.
3119 * predict.c (tree_predicted_by_p, tree_predict_edge,
3120 clear_bb_predictions, combine_predictions_for_bb): Likewise.
3122 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3124 * ra.h (add_neighbor): Fix -Wc++-compat and/or -Wcast-qual
3126 * recog.c (check_asm_operands, validate_change_1): Likewise.
3127 * reg-stack.c (check_asm_stack_operands, subst_asm_stack_regs,
3128 subst_asm_stack_regs): Likewise.
3129 * regclass.c (regclass, som_hash, som_eq, record_subregs_of_mode,
3130 cannot_change_mode_set_regs, invalid_mode_change_p): Likewise.
3131 * regmove.c (reg_is_remote_constant_p): Likewise.
3132 * regrename.c (regrename_optimize, scan_rtx_reg,
3133 kill_clobbered_value, kill_set_value, kill_autoinc_value):
3135 * regstat.c (regstat_init_n_sets_and_refs, regstat_compute_ri,
3136 regstat_compute_calls_crossed): Likewise.
3137 * reload1.c (init_reload, new_insn_chain,
3138 has_nonexceptional_receiver, reload, copy_reloads,
3139 calculate_needs_all_insns, init_elim_table): Likewise.
3140 * rtl-factoring.c (compute_rtx_cost, fill_hash_bucket): Likewise.
3141 * rtl.c (shallow_copy_rtx_stat): Likewise.
3142 * rtlanal.c (parms_set): Likewise.
3143 * sbitmap.c (sbitmap_alloc, sbitmap_alloc_with_popcount,
3144 sbitmap_resize, sbitmap_vector_alloc): Likewise.
3145 * sched-ebb.c (earliest_block_with_similiar_load,
3146 add_deps_for_risky_insns): Likewise.
3147 * sched-rgn.c (find_rgns, gather_region_statistics, extend_rgns,
3148 schedule_region): Likewise.
3149 * see.c (eq_descriptor_pre_extension,
3150 hash_descriptor_pre_extension, hash_del_pre_extension,
3151 eq_descriptor_properties, hash_descriptor_properties,
3152 hash_del_properties, see_seek_pre_extension_expr,
3153 see_initialize_data_structures, see_print_register_properties,
3154 see_print_pre_extension_expr, see_delete_merged_def_extension,
3155 see_delete_unmerged_def_extension, see_emit_use_extension,
3156 see_pre_delete_extension, see_map_extension, see_commit_changes,
3157 see_analyze_merged_def_local_prop,
3158 see_analyze_merged_def_local_prop,
3159 see_analyze_unmerged_def_local_prop, see_analyze_use_local_prop,
3160 see_set_prop_merged_def, see_set_prop_unmerged_def,
3161 see_set_prop_unmerged_use, see_print_one_extension,
3162 see_merge_one_use_extension, see_merge_one_def_extension,
3163 see_store_reference_and_extension, see_update_uses_relevancy,
3164 see_update_defs_relevancy): Likewise.
3165 * statistics.c (hash_statistics_hash, hash_statistics_eq,
3166 hash_statistics_free, curr_statistics_hash): Likewise.
3167 * stmt.c (parse_output_constraint, decl_overlaps_hard_reg_set_p,
3168 expand_asm_operands, expand_return, case_bit_test_cmp,
3169 expand_case): Likewise.
3170 * stor-layout.c (start_record_layout): Likewise.
3171 * stringpool.c (ggc_alloc_string, gt_pch_n_S,
3172 gt_pch_save_stringpool): Likewise.
3173 * tree-data-ref.c (hash_stmt_vertex_info,
3174 have_similar_memory_accesses_1, ref_base_address_1): Likewise.
3175 * tree-ssa-phiopt.c (name_to_bb_hash): Likewise.
3177 2008-06-25 Uros Bizjak <ubizjak@gmail.com>
3180 * config/i386/i386.md : Change constraints of HImode and QImode
3181 immediate operands from "i" to "n". Change SImode "ni" constraint to
3182 "i" and SImode "rmi" constraint to "g". Remove all constraints
3183 from const0_operand and const1_operand predicated operands.
3184 (i): Change QImode and HImode attribute from "i" to "n".
3185 (*subqi_2): Change HImode operands to QImode.
3188 2008-06-25 Olivier Hainque <hainque@adacore.com>
3190 * Makefile.in (GTFILES_H): Use | instead of ; as separator in
3193 2008-06-25 Richard Guenther <rguenther@suse.de>
3195 * tree-ssa-structalias.c (fieldoff_compare): Make sure to
3196 not overflow the result type.
3198 2008-06-25 Richard Guenther <rguenther@suse.de>
3200 * tree-vn.c (vn_add): Handle TRUTH_*_EXPR.
3201 (vn_lookup): Likewise.
3203 2008-06-25 Richard Guenther <rguenther@suse.de>
3205 PR tree-optimization/35518
3206 * fold-const.c (fold_ternary): Strip trivial BIT_FIELD_REFs.
3207 * tree-sra.c (instantiate_element): Use fold_build3 to build
3209 (try_instantiate_multiple_fields): Likewise.
3211 2008-06-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
3213 * config/rs6000/rs6000.md: Change all string instruction's clobber to
3216 2008-06-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
3218 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Set
3219 use_backchain_to_restore_sp to true
3220 if the offset of the link register save area would go over the 32k - 1
3221 offset limit of the load
3224 2008-06-25 Hans-Peter Nilsson <hp@axis.com>
3226 * doc/invoke.texi (Optimize Options) <fstrict-aliasing>: Add
3227 anchor for the type-punning blurb. Cross-reference "Structures
3228 unions enumerations and bit-fields implementation". Provide a
3229 cast-through-pointer example. Make final sentence self-contained.
3230 * doc/implement-c.texi (Structures unions enumerations and
3231 bit-fields implementation): Cross-reference the type-punning blurb
3232 in the -fstrict-aliasing documentation.
3234 2008-06-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
3237 * builtins.c (expand_builtin_nonlocal_goto): Stabilize the address of
3238 the memory instead of the memory itself for the save area.
3240 2008-06-24 Olivier Hainque <hainque@adacore.com>
3241 Nicolas Roche <roche@adacore.com>
3243 * gengtype.c (srcdir_len): size_t instead of int.
3244 (get_file_realbasename): New function. For F a filename, the real
3245 basename of F, with all the path components stripped.
3246 (get_file_srcdir_relative_path): New function. For F a filename, the
3247 relative path to F from $(srcdir).
3248 (get_file_basename): Rewrite using get_file_srcdir_relative_path and
3249 get_file_realbasename. Adjust the head comment.
3250 (get_prefix_langdir_index): New function. For F a filename, return the
3251 lang_dir_names[] relative index of the language directory that is
3253 (get_file_langdir): For F a filename, return the name of the language
3254 directory where F is located.
3255 (get_file_gtfilename): New function. The gt- output file name for an
3257 (get_output_file_with_visibility): Replace in-line computations with
3258 uses of get_file_gtfilename and get_prefix_langdir_index.
3259 * Makefile.in (GTFILES_H): Adjust to match what gengtype generates.
3261 2008-06-24 Jakub Jelinek <jakub@redhat.com>
3263 PR tree-optimization/36504
3264 * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Skip
3265 references without base address.
3267 2008-06-23 Uros Bizjak <ubizjak@gmail.com>
3270 * calls.c (expand_call): Increase alignment for recursive functions.
3272 2008-06-23 Anatoly Sokolov <aesok@post.ru>
3274 * config/avr/avr.c (avr_function_value): Add new 'outgoing' argument.
3275 (TARGET_FUNCTION_VALUE): New define.
3276 * config/avr/avr-protos.h (avr_function_value): Remove declaration.
3277 * config/avr/avr.h (FUNCTION_VALUE): Remove.
3279 2008-06-23 Uros Bizjak <ubizjak@gmail.com>
3281 * config/i386/i386.md (fmodxf3): Change sequence of move instructions.
3282 (fmod<mode>3): Ditto.
3283 (remainderxf3): Ditto.
3284 (remainder<mode>3): Ditto.
3286 2008-06-23 Jakub Jelinek <jakub@redhat.com>
3289 * emit-rtl.c (set_reg_attrs_from_value): Do nothing if
3290 REG is a hard register.
3292 PR tree-optimization/36508
3293 * tree-ssa-pre.c (compute_antic): Allow num_iterations up to
3294 499, don't check it at all in release compilers.
3296 2008-06-23 Uros Bizjak <ubizjak@gmail.com>
3298 * config/i386/i386.md (*fop_<mode>_1_i387): Use SSE_FLOAT_MODE_P
3299 together with SSE_TARGET_MATH to disable insn pattern.
3300 (*fop_<MODEF:mode>_2_i387): Ditto.
3301 (*fop_<MODEF:mode>_3_i387): Ditto.
3303 2008-06-22 Andy Hutchinson <hutchinsonandy@aim.com>
3305 * config/avr/avr.h (SUPPORTS_INIT_PRIORITY): Define.
3307 2008-06-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
3310 * gimplify.c (gimplify_asm_expr): Check the return code of
3311 parse_output_constraint call, set function return and is_inout
3314 2008-06-22 Ian Lance Taylor <iant@google.com>
3316 * c-lex.c (narrowest_unsigned_type): Change itk to int.
3317 (narrowest_signed_type): Likewise.
3318 * c-typeck.c (c_common_type): Change local variable mclass to enum
3320 (parser_build_binary_op): Compare the TREE_CODE_CLASS with
3321 tcc_comparison, not the tree code itself.
3322 * c-common.c (def_fn_type): Pass int, not an enum, to va_arg.
3323 (c_expand_expr): Cast modifier to enum expand_modifier.
3324 * c-common.h (C_RID_CODE): Add casts.
3325 (C_SET_RID_CODE): Define.
3326 * c-parser.c (c_parse_init): Use C_SET_RID_CODE.
3327 (c_lex_one_token): Add cast to avoid warning.
3328 (c_parser_objc_type_name): Rename local typename to type_name.
3329 (check_no_duplicate_clause): Change code parameter to enum
3331 (c_parser_omp_var_list_parens): Change kind parameter to enum
3333 (c_parser_omp_flush): Pass OMP_CLAUSE_ERROR, not 0, to
3334 c_parser_omp_list_var_parens.
3335 (c_parser_omp_threadprivate): Likewise.
3336 * cp/lex.c (init_reswords): Use C_SET_RID_CODE.
3337 * cp/parser.c (cp_lexer_get_preprocessor_token): Likewise.
3338 * c-format.c (NO_FMT): Define.
3339 (printf_length_specs): Use NO_FMT.
3340 (asm_fprintf_length_specs): Likewise.
3341 (gcc_diag_length_specs): Likewise.
3342 (scanf_length_specs): Likewise.
3343 (strfmon_length_specs): Likewise.
3344 (gcc_gfc_length_specs): Likewise.
3345 (printf_flag_specs): Change 0 to STD_C89.
3346 (asm_fprintf_flag_specs): Likewise.
3347 (gcc_diag_flag_specs): Likewise.
3348 (gcc_cxxdiag_flag_specs): Likewise.
3349 (scanf_flag_specs): Likewise.
3350 (strftime_flag_specs): Likewise.
3351 (strfmon_flag_specs): Likewise.
3352 (print_char_table): Likewise.
3353 (asm_fprintf_char_table): Likewise.
3354 (gcc_diag_char_table): Likewise.
3355 (gcc_tdiag_char_table): Likewise.
3356 (gcc_cdiag_char_table): Likewise.
3357 (gcc_cxxdiag_char_table): Likewise.
3358 (gcc_gfc_char_table): Likewise.
3359 (scan_char_table): Likewise.
3360 (time_char_table): Likewis.
3361 (monetary_char_table): Likewise.
3362 * c-format.h (BADLEN): Likewise.
3364 2008-06-21 Ian Lance Taylor <iant@google.com>
3366 * tree.h (enum tree_code): Include all-tree.def, not tree.def.
3367 Define END_OF_BASE_TREE_CODES around inclusion.
3368 * tree.c (tree_code_type): New global array.
3369 (tree_code_length, tree_code_name): Likewise.
3370 * Makefile.in (TREE_H): Add all-tree.def, c-common.def, and
3372 (all-tree.def, s-alltree): New targets.
3373 (gencheck.h, s-gencheck): Remove.
3374 (tree.o): Depend upon all-tree.def.
3375 (build/gencheck.o): Remove gencheck.h dependency.
3376 (mostlyclean): Don't remove gencheck.h.
3377 * c-common.h (enum c_tree_code): Remove.
3378 * c-lang.c (tree_code_type): Remove.
3379 (tree_code_length, tree_code_name): Remove.
3380 * gencheck.c (tree_codes): Include all-tree.def, rather than
3381 tree.def, c-common.def, and gencheck.h. Undefined DEFTREECODE
3383 * tree-browser.c (tb_tree_codes): Include all-tree.def, rather
3385 * cp/cp-tree.h (enum cplus_tree_code): Remove.
3386 (operator_name_info): Size to MAX_TREE_CODES.
3387 (assignment_operator_name_info): Likewise.
3388 * cp/cp-lang.c (tree_code_type): Remove.
3389 (tree_code_length, tree_code_name): Remove.
3390 * cp/lex.c (operator_name_info): Size to MAX_TREE_CODES.
3391 (assignment_operator_name_info): Likewise.
3392 * cp/decl.c (grok_op_properties): Change LAST_CPLUS_TREE_CODE to
3394 * cp/mangle.c (write_expression): Likewise.
3395 * cp/Make-lang.in (CXX_TREE_H): Remove cp/cp-tree.def.
3396 * fortran/f95-lang.c (tree_code_type): Remove.
3397 (tree_code_length, tree_code_name): Remove.
3398 * java/java-tree.h (enum java_tree_code): Remove.
3399 * java/lang.c (tree_code_type): Remove.
3400 (tree_code_length, tree_code_name): Remove.
3401 * java/Make-lang.in (JAVA_TREE_H): Remove java/java-tree.def.
3402 * objc/objc-act.h (enum objc_tree_code): Remove.
3403 * objc/objc-lang.c (tree_code_type): Remove.
3404 (tree_code_length, tree_code_name): Remove.
3405 * objcp/objcp-lang.c (tree_code_type): Remove.
3406 (tree_code_length, tree_code_name): Remove.
3407 * ada/ada-tree.h (enum gnat_tree_code): Remove.
3408 * ada/Make-lang.in (ADA_TREE_H): Remove ada/ada-tre.def.
3409 * ada/misc.c (tree_code_type): Remove.
3410 (tree_code_length, tree_code_name): Remove.
3412 2008-06-21 Bernhard Fischer <aldot@gcc.gnu.org>
3414 * tree-ssa-pre.c (fini_antic): Bitmap_sets have to be freed before
3415 the grand_bitmap_obstack.
3417 2008-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3419 * ggc.h (GGC_RESIZEVAR): New, reorder macros.
3420 * tracer.c (tail_duplicate): Fix for -Wc++-compat.
3421 * tree-affine.c (aff_combination_expand, free_name_expansion): Likewise.
3422 * tree-cfg.c (replace_by_duplicate_decl, replace_ssa_name,
3423 move_stmt_r, new_label_mapper): Likewise.
3424 * tree-complex.c (cvc_lookup): Likewise.
3425 * tree-dfa.c (create_function_ann): Likewise.
3426 * tree-dump.c (dump_register): Likewise.
3427 * tree-if-conv.c (tree_if_conversion, add_to_predicate_list,
3428 find_phi_replacement_condition): Likewise.
3429 * tree-inline.c (copy_phis_for_bb, estimate_num_insns_1,
3430 tree_function_versioning): Likewise.
3431 * tree-into-ssa.c (cmp_dfsnum): Likewise.
3432 * tree-iterator.c (tsi_link_before, tsi_link_after): Likewise.
3433 * tree-nested.c (lookup_field_for_decl, lookup_tramp_for_decl,
3434 get_nonlocal_debug_decl, convert_nonlocal_reference,
3435 convert_nonlocal_omp_clauses, get_local_debug_decl,
3436 convert_local_reference, convert_local_omp_clauses,
3437 convert_nl_goto_reference, convert_nl_goto_receiver,
3438 convert_tramp_reference, convert_call_expr): Likewise.
3439 * tree-outof-ssa.c (contains_tree_r): Likewise.
3440 * tree-parloops.c (reduction_phi, initialize_reductions,
3441 eliminate_local_variables_1, add_field_for_reduction,
3442 add_field_for_name, create_phi_for_local_result,
3443 create_call_for_reduction_1, create_loads_for_reductions,
3444 create_stores_for_reduction, create_loads_and_stores_for_name):
3446 * tree-phinodes.c (allocate_phi_node): Likewise.
3447 * tree-predcom.c (order_drefs, execute_pred_commoning_cbck): Likewise.
3448 * tree-sra.c (sra_elt_hash, sra_elt_eq, lookup_element): Likewise.
3449 * tree-ssa-alias.c (get_mem_sym_stats_for): Likewise.
3450 * tree-ssa-coalesce.c (compare_pairs): Likewise.
3451 * tree-ssa-loop-im.c (mem_ref_in_stmt, memref_hash, memref_eq,
3452 memref_free, gather_mem_refs_stmt, vtoe_hash, vtoe_eq, vtoe_free,
3453 record_vop_access, get_vop_accesses, get_vop_stores): Likewise.
3454 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
3455 * tree-ssa-sccvn.c (VN_INFO_GET, free_phi, free_reference,
3456 vn_nary_op_insert): Likewise.
3457 * tree-ssa.c (redirect_edge_var_map_add,
3458 redirect_edge_var_map_clear, redirect_edge_var_map_dup): Likewise.
3459 * tree-vectorizer.c (vectorize_loops): Likewise.
3460 * tree.c (make_node_stat, copy_node_stat, build_int_cst_wide,
3461 build_fixed, build_real, make_tree_binfo_stat, make_tree_vec_stat,
3462 tree_cons_stat, build1_stat, build_variant_type_copy,
3463 decl_init_priority_lookup, decl_fini_priority_lookup,
3464 decl_priority_info, decl_restrict_base_lookup,
3465 decl_restrict_base_insert, decl_debug_expr_lookup,
3466 decl_debug_expr_insert, decl_value_expr_lookup,
3467 decl_value_expr_insert, type_hash_eq, type_hash_lookup,
3468 type_hash_add, get_file_function_name, tree_check_failed,
3469 tree_not_check_failed, tree_range_check_failed,
3470 omp_clause_range_check_failed, build_omp_clause,
3471 build_vl_exp_stat): Likewise.
3472 * value-prof.c (gimple_histogram_value,
3473 gimple_duplicate_stmt_histograms): Likewise.
3474 * var-tracking.c (attrs_list_insert, attrs_list_copy,
3475 unshare_variable, variable_union_info_cmp_pos, variable_union,
3476 dataflow_set_different_1, dataflow_set_different_2,
3477 vt_find_locations, variable_was_changed, set_variable_part,
3478 emit_notes_for_differences_1, emit_notes_for_differences_2): Likewise.
3479 * varasm.c (prefix_name, emutls_decl, section_entry_eq,
3480 section_entry_hash, object_block_entry_eq,
3481 object_block_entry_hash, create_block_symbol,
3482 initialize_cold_section_name, default_function_rodata_section,
3483 strip_reg_name, set_user_assembler_name, const_desc_eq,
3484 build_constant_desc, output_constant_def, lookup_constant_def,
3485 const_desc_rtx_hash, const_desc_rtx_eq, const_rtx_hash_1,
3486 create_constant_pool, force_const_mem, compute_reloc_for_rtx_1,
3487 default_internal_label): Likewise.
3488 * varray.c (varray_init, varray_grow): Likewise.
3489 * vec.c (vec_gc_o_reserve_1, vec_heap_o_reserve_1): Likewise.
3491 2008-06-20 Uros Bizjak <ubizjak@gmail.com>
3493 * config/i386/i386.md (*jcc_fused_1): Handle all valid compare
3494 operators for "test" insn. Macroize insn using SWI mode macro.
3495 (*jcc_fused_2): Ditto.
3496 (*jcc_fused_3): Macroize insn using SWI mode macro.
3497 (*jcc_fused_4): Ditto.
3499 2008-06-20 Bernhard Fischer <aldot@gcc.gnu.org>
3501 * tree-ssa-pre.c: Fix typo in comment.
3502 (init_antic, fini_antic): Add explicit funtions for
3503 initializing and deinitializing ANTIC and AVAIL sets.
3504 (create_expression_by_pieces): Fix typo in comment.
3505 Remove redundant set of new_stuff and use NULL_TREE instead of NULL.
3506 (execute_pre): Eventually dump details about ANTIC_IN.
3508 2008-06-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3510 * collect2.c (main, add_to_list): Fix for -Wc++-compat.
3511 * gcc.c (translate_options, init_spec, store_arg, read_specs,
3512 add_to_obstack, file_at_path, find_a_file, execute,
3513 add_preprocessor_option, add_assembler_option, add_linker_option,
3514 process_command, insert_wrapper, do_option_spec, do_self_spec,
3515 spec_path, do_spec_1, is_directory, main, used_arg,
3516 getenv_spec_function): Likewise.
3517 * tlink.c (symbol_hash_lookup, file_hash_lookup,
3518 demangled_hash_lookup, symbol_push, file_push, frob_extension):
3521 2008-06-19 Kenneth Zadeck <zadeck@naturalbridge.com>
3523 * doc/rtl.texi: Updated subreg section.
3525 2008-06-19 Jakub Jelinek <jakub@redhat.com>
3528 * cgraphunit.c (cgraph_process_new_functions): Don't clear
3529 node->needed and node->reachable.
3530 * cgraphbuild.c (record_reference): Handle OMP_PARALLEL and OMP_TASK.
3531 * omp-low.c (delete_omp_context): Call finalize_task_copyfn.
3532 (expand_task_call): Don't call expand_task_copyfn.
3533 (expand_task_copyfn): Renamed to...
3534 (finalize_task_copyfn): ... this.
3536 2008-06-19 Jan Hubicka <jh@suse.cz>
3538 * builtins.c (expand_builtin_nonlocal_goto): Stabilize r_sp before
3539 clobbering framepointer.
3541 2008-06-19 Jan Hubicka <jh@suse.cz>
3543 * tree-optimize.c (execute_early_local_optimizations): Set
3544 cgraph_state only at first invocation.
3546 2008-06-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3548 * system.h (-Wc++-compat): Activate as a warning, no an error.
3550 2008-06-19 Uros Bizjak <ubizjak@gmail.com>
3552 * config/i386/i386.md (*jcc_fused_1): Use ASM_COMMENT_START
3553 instead of "#" in insn asm template.
3554 (*jcc_fused_2): Ditto.
3556 2008-06-19 Uros Bizjak <ubizjak@gmail.com>
3558 * config/i386/i386.h (ix86_tune_indices)
3559 [X86_TUNE_FUSE_CMP_AND_BRANCH]: New.
3560 (TARGET_FUSE_CMP_AND_BRANCH): New define.
3561 * config/i386/i386.md (*jcc_fused_1): New insn pattern
3562 (*jcc_fused_2): Ditto.
3563 * config/i386/i386.c (ix86_tune_features): Add m_CORE2 to
3564 X86_TUNE_FUSE_CMP_AND_BRANCH targets.
3565 (print operand): Handle 'E' and 'e' code.
3567 2008-06-19 Anatoly Sokolov <aesok@post.ru>
3569 * config/avr/avr.c (avr_mcu_t): Add attiny13a.
3570 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
3571 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
3573 2008-06-19 Bernhard Fischer <aldot@gcc.gnu.org>
3575 * cgraphunit.c (cgraph_finalize_function): Remove redundant setting of
3577 (cgraph_expand_function): Use local copy of decl.
3578 (cgraph_expand_all_functions): Remove redundant initialization of
3580 (cgraph_optimize): Reword internal_error message.
3582 2008-06-19 Chung-Lin Tang <ctang@marvell.com>
3584 * arm-protos.h (arm_return_in_memory): Remove public
3585 arm_return_in_memory() prototype.
3586 * arm.c (arm_return_in_memory): Add static prototype, add target
3587 hook macro, change definition and comments.
3588 * arm.h (TARGET_RETURN_IN_MEMORY): Remove.
3590 2008-06-19 Ben Elliston <bje@au.ibm.com>
3592 * dfp.h, dfp.c, config/dfp-bit.h, config/dfp-bit.c, real.h,
3593 real.c: Remove references to IEEE 754R.
3594 * doc/install.texi (Configuration): IEEE 754R -> IEEE 754-2008.
3595 * doc/libgcc.texi (Decimal float library routines): Likewise.
3597 2008-06-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3599 * targhooks.h (struct gcc_target): New member unwind_word_mode.
3600 (default_unwind_word_mode): Add prototype.
3601 * targhooks.c (default_unwind_word_mode): New function.
3602 (default_eh_return_filter_mode): Return targetm.unwind_word_mode ()
3603 instead of word_mode.
3604 * target-def.h (TARGET_UNWIND_WORD_MODE): New macro.
3605 (TARGET_INITIALIZER): Use it.
3607 * c-common.c (handle_mode_attribute): Support "unwind_word"
3609 * unwind-generic.h (_Unwind_Word, _Unwind_Sword): Use it.
3611 * except.c (init_eh): Use targetm.unwind_word_mode () instead of
3612 word_mode to access SjLj_Function_Context member "data".
3613 (sjlj_emit_dispatch_table): Likewise. Also, perform type
3614 conversion from targetm.eh_return_filter_mode () to
3615 targetm.unwind_word_mode () if they differ.
3617 * builtin-types.def (BT_UNWINDWORD): New primitive type.
3618 (BT_FN_UNWINDWORD_PTR): New function type.
3619 (BT_FN_WORD_PTR): Remove.
3620 * builtins.def (BUILT_IN_EXTEND_POINTER): Use BT_FN_UNWINDWORD_PTR.
3621 * except.c (expand_builtin_extend_pointer): Convert pointer to
3622 targetm.unwind_word_mode () instead of word_mode.
3624 * config/spu/spu-protos.h (spu_eh_return_filter_mode): Remove.
3625 * config/spu/spu.c (spu_eh_return_filter_mode): Remove.
3626 (spu_unwind_word_mode): New function.
3627 (TARGET_EH_RETURN_FILTER_MODE): Do not define.
3628 (TARGET_UNWIND_WORD_MODE): Define.
3629 * config/spu/t-spu-elf (TARGET_LIBGCC2_CFLAGS): Remove -D__word__=SI.
3631 2008-06-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3633 * config/spu/spu.c (reg_align): Remove.
3634 (regno_aligned_for_load): Also accept ARG_POINTER_REGNUM.
3635 (spu_split_load): Use regno_aligned_for_load instead of reg_align.
3636 (spu_split_store): Likewise.
3638 2008-06-18 Bernhard Fischer <aldot@gcc.gnu.org>
3640 * gcc/tree-vn.c: Fix typo in comment.
3642 2008-06-18 Jan Hubicka <jh@suse.cz>
3644 * cgraphunit.c (cgraph_optimize): Output debug info when doing
3645 toplevel reorder too.
3647 2008-06-18 Jan Hubicka <jh@suse.cz>
3649 * c-opts.c (c_common_post_options): PCH is not compatible with
3651 * opts.c (handle_options): Enable unit-at-a-time at O0 along with
3652 -fno-toplevel-reorder by default now.
3654 2008-06-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3656 PR documentation/30739
3657 * doc/install.texi (Prerequisites): Document dependency on awk.
3659 2008-06-18 Uros Bizjak <ubizjak@gmail.com>
3660 Ian Lance Taylor <iant@google.com>
3662 PR rtl-optimization/35604
3663 * jump.c (redirect_exp_1): Skip the condition of an IF_THEN_ELSE. We
3664 only want to change jump destinations, not eventual label comparisons.
3666 2008-06-16 Jan Hubicka <jh@suse.cz>
3668 * cgraphunit.c (cgraph_expand_pending_functions): Give up at
3670 (cgraph_analyze_function): Likewise.
3672 2008-06-16 Jan Hubicka <jh@suse.cz>
3674 * cgraph.h (cgraph_mark_if_needed): New function.
3675 * cgraphunit.c (cgraph_mark_if_needed): New function.
3676 * c-decl.c (duplicate_decl): Use it.
3678 2008-06-16 Jan Hubicka <jh@suse.cz>
3680 * cgraph.c (cgraph_add_new_function): When in expansion state, do
3683 2008-06-16 Jan Hubicka <jh@suse.cz>
3685 * tree-outof-ssa.c (pass_out_of_ssa): Do not depend on PROP_alias.
3687 2008-06-16 Daniel Jacobowitz <dan@codesourcery.com>
3688 Kazu Hirata <kazu@codesourcery.com>
3689 Maxim Kuvyrkov <maxim@codesourcery.com
3691 * config.gcc (mips64el-st-linux-gnu): Use mips/st.h and mips/t-st.
3692 * config.host: Use driver-native.o and mips/x-native for mips*-linux*.
3693 * config/mips/linux.h (host_detect_local_cpu): Declare, add to
3694 EXTRA_SPEC_FUNCTIONS.
3695 (MARCH_MTUNE_NATIVE_SPECS, BASE_DRIVER_SELF_SPECS): New macros.
3696 (DRIVER_SELF_SPECS): Adjust.
3697 * config/mips/linux64.h (DRIVER_SELF_SPECS): Update.
3698 * config/mips/st.h, config/mips/t-st: New.
3699 * config/mips/driver-native.c, config/mips/x-native: New.
3700 * doc/invoke.texi (MIPS): Document 'native' value for -march and
3703 2008-06-18 Maxim Kuvyrkov <maxim@codesourcery.com>
3705 * config/mips/mips.h (ISA_HAS_CONDMOVE): Slice ISA_HAS_FP_CONDMOVE
3707 (ISA_HAS_FP_CONDMOVE): New macro.
3708 (ISA_HAS_FP_MADD4_MSUB4, ISA_HAS_FP_MADD3_MSUB3): New macros.
3709 (ISA_HAS_NMADD_NMSUB): Rename to ISA_HAS_NMADD4_NMSUB4.
3710 (ISA_HAS_NMADD3_NMSUB3): New macro.
3711 * config/mips/mips.c (mips_rtx_costs): Update.
3712 * config/mips/mips.md (MOVECC): Don't use FP conditional moves when
3713 compiling for ST Loongson 2E/2F.
3714 (madd<mode>): Rename to madd4<mode>. Update.
3715 (madd3<mode>): New pattern.
3716 (msub<mode>): Rename to msub4<mode>. Update.
3717 (msub3<mode>): New pattern.
3718 (nmadd<mode>): Rename to nmadd4<mode>. Update.
3719 (nmadd3<mode>): New pattern.
3720 (nmadd<mode>_fastmath): Rename to nmadd4<mode>_fastmath. Update.
3721 (nmadd3<mode>_fastmath): New pattern.
3722 (nmsub<mode>): Rename to nmsub4<mode>. Update.
3723 (nmsub3<mode>): New pattern.
3724 (nmsub<mode>_fastmath): Rename to nmsub4<mode>_fastmath. Update.
3725 (nmsub3<mode>_fastmath): New pattern.
3726 (mov<SCALARF:mode>_on_<MOVECC:mode>, mov<mode>cc): Update.
3728 2008-06-18 Steven Bosscher <steven@gcc.gnu.org>
3730 * df.h (struct df_ref): Replace 'insn' field with 'insn_info' field.
3731 (DF_REF_INSN_INFO): New.
3732 (DF_REF_INSN, DF_REF_INSN_UID): Rewrite macros using DF_REF_INSN_INFO.
3733 (DF_REF_IS_ARTIFICIAL): Artificial refs are now identified as refs
3734 with a NULL DF_REF_INSN_INFO.
3735 (DF_INSN_INFO_GET, DF_INSN_INFO_SET): Renamed from DF_INSN_GET and
3737 (DF_INSN_INFO_LUID, DF_INSN_INFO_DEFS, DF_INSN_INFO_USES,
3738 DF_INSN_INFO_EQ_USES): New.
3739 (DF_INSN_LUID, DF_INSN_DEFS, DF_INSN_USES, DF_INSN_EQ_USES,
3740 DF_INSN_UID_LUID, DF_INSN_UID_DEFS, DF_INSN_UID_USES,
3741 DF_INSN_UID_EQ_USES): Rewrite using DF_INSN_INFO_* macros.
3742 * df-core.c: Update comment for above changes.
3743 (df_insn_debug_regno): Use DF_INSN_INFO_GET instead of INSN_UID and
3744 DF_INSN_UID_* macros.
3745 (df_ref_debug): Check for NULL DF_REF_INSN_INFO.
3746 * df-scan.c (df_ref_record): Take a df_insn_info instead of an
3747 insn rtx. Update all callers.
3748 (df_def_record_1, df_defs_record, df_uses_record, df_get_call_refs,
3749 df_ref_create_structure, df_insn_refs_collect): Likewise.
3750 (df_ref_equal_p): Compare DF_REF_INSN_INFO pointers for the refs.
3751 * df-problems.c (df_chain_dump): Test for non-NULL DF_REF_INSN_INFO.
3752 (df_live_bb_local_compute): Retrieve DF_INSN_INFO, use DF_INSN_INFO_*
3753 macros to access the insn refs.
3754 (df_chain_top_dump, df_chain_bottom_dump, df_byte_lr_alloc): Likewise.
3755 * fwprop.c (use_killed_between): Use DF_REF_INSN accessor macro.
3756 (all_uses_available): Retrieve DF_INSN_INFO for def_insn, and use it
3757 for accessing the refs.
3758 (try_fwprop_subst): Likewise.
3759 * ddg.c (add_cross_iteration_register_deps): Use DF_REF_INSN macro.
3760 * web.c (union_defs): Retrieve DF_INSN_INFO for def_insn, and use it
3761 for accessing the refs.
3762 * loop-invariant.c (invariant_for_use): Use DF_REF_BB macro.
3763 (check_dependencies): Use DF_INSN_INFO_GET, use DF_INSN_INFO_* macros
3764 to look at the insn refs.
3765 (record_uses): Likewise.
3766 * dce.c (deletable_insn_p): Don't tolerate artificial DEFs in this
3768 (mark_artificial_uses): Don't mark_insn for artificial refs.
3769 (mark_reg_rependencies): Likewise.
3771 * doc/rtl.texi: Remove documentation of ADDRESSOF.
3773 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3775 * configure: Regenerate.
3777 2008-06-17 Eric B. Weddington <eric.weddington@atmel.com>
3779 * config/avr/avr.c (avr_mcu_t): Remove atmega32hvb.
3780 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
3781 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
3783 2008-06-17 Eric B. Weddington <eric.weddington@atmel.com>
3785 * config/avr/avr.c (avr_mcu_t): Add attiny167.
3786 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
3787 * gcc/config/avr/t-avr (MULTILIB_MATCHES): Likewise.
3789 2008-06-17 Eric B. Weddington <eric.weddington@atmel.com>
3791 * config/avr/avr.c (avr_mcu_t): Add atmega32u4.
3792 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
3793 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
3795 2008-06-17 Bernhard Fischer <aldot@gcc.gnu.org>
3797 * tree-ssa-sccvn.c: Fix format of comments.
3799 2008-06-17 Bernhard Fischer <aldot@gcc.gnu.org>
3801 * cgraph.c: Remove unneeded forward declarations of eq_node()
3804 2008-06-17 Steven Bosscher <steven@gcc.gnu.org>
3806 * see.c (see_analyse_one_def): Do not look for REG_LIBCALL and
3808 (see_update_relevancy): Likewise.
3809 * fwprop.c (try_fwprop_subst): Likewise.
3810 * rtlanal.c (noop_move_p): Likewise.
3811 * builtins.c (expand_buitlin_mathfn): Don't try to add REG_EQUAL
3812 notes to non-existing libcall blocks.
3813 * cse.c (cse_insn): Change prototype. Don't update libcall notes.
3815 (cse_extended_basic_block): Don't track libcall and no-conflict notes.
3816 (dead_libcall_p): Remove.
3817 (delete_trivially_dead_insns): Don't use it.
3818 * web.c (union_defs): Remove comment about keeping nops.
3819 * gcse.c (hash_scan_insn): Don't take libcall pointers.
3820 (compute_hash_table_work): Don't track libcall notes.
3821 (do_local_cprop): Don't take libcall pointers. Don't update
3823 (adjust_libcall_notes): Deleted.
3824 (local_cprop_pass): Remove stack for nested libcalls (which shouldn't
3825 ever have existed in the first place).
3826 (replace_store_insn): Don't try to remove libcall notes.
3827 * lower-subreg.c (move_libcall_note, move_retval_note): Deleted.
3828 (resolve_reg_notes): Don't call them.
3829 (resolve_simple_move): Likewise.
3830 (decompose_multiword_subregs): Remove block handling REG_RETVAL notes.
3831 Don't remove REG_RETVAL notes.
3832 * emit-rtl.c (try_split): Don't update libcall notes.
3833 (emit_copy_of_insn_after): Dito.
3834 * cselib.c (cselib_current_insn_in_libcall): Remove.
3835 (cselib_process_insn): Don't set/clear it.
3836 (new_elt_loc_list): Don't record it.
3837 (cselib_init): Don't initialize it.
3838 * cselib.c (struct elt_loc_list): Remove in_libcall field.
3839 * loop-invariant.c (find_invariant_insn): Don't look for libcall
3841 * sched-deps.c (sched_analyze_insn): Don't group libcall blocks.
3842 (sched_analyze): Don't set up deps->libcall_block_tail_insn.
3843 (init_deps): Don't initialize it.
3844 * sched-int.h (struct deps): Rremove libcall_block_tail_insn field.
3845 * combine.c (delete_noop_moves): Don't update libcall notes.
3846 (can_combine_p): Remove now pointless #if 0 block.
3847 (try_combine): Remove another obsolete #if 0 block.
3848 (distribute_notes): Don't distribute libcall notes.
3849 * reg-notes.def (REG_LIBCALL, REG_RETVAL): Remove.
3850 * dce.c (libcall_dead_p): Remove.
3851 (delete_unmarked_insns): Don't handle libcall blocks.
3852 (preserve_libcall_for_dce): Remove.
3853 (prescan_insns_for_dce): Don't special-case libcall block insns.
3854 * reload1 (reload): Don't handle libcall notes.
3855 * doc/rtl.texi (REG_LIBCALL, REG_RETVAL, REG_LIBCALL_ID): Remove
3858 2008-06-16 Eric B. Weddington <eric.weddington@atmel.com>
3860 * config/avr/avr.c (avr_mcu_t): Add atmega32c1.
3861 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
3862 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
3864 2008-06-16 Eric B. Weddington <eric.weddington@atmel.com>
3866 * config/avr/avr.c (avr_mcu_t): Add atmega32m1.
3867 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
3868 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
3870 2008-06-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3872 * Makefile.in (FLAGS_TO_PASS): Add $(datarootdir).
3874 2008-06-16 Ira Rosen <irar@il.ibm.com>
3876 PR tree-optimization/36493
3877 * tree-vect-transform.c (vect_create_data_ref_ptr): Remove TYPE from
3878 the arguments list. Use VECTYPE to create vector pointer.
3879 (vectorizable_store): Fail if accesses through a pointer to vectype
3880 do not alias the original memory reference operands.
3881 Call vect_create_data_ref_ptr without the removed argument.
3882 (vectorizable_load): Likewise.
3883 (vect_setup_realignment): Call vect_create_data_ref_ptr without the
3886 2008-06-015 Andy Hutchinson <hutchinsonandy@aim.com>
3889 * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Add check for
3892 2008-06-15 Maxim Kuvyrkov <maxim@codesourcery.com>
3894 * config/mips/loongson2ef.md: New file.
3895 * config/mips/mips.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
3896 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
3897 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
3898 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): New constants.
3899 (define_attr "cpu"): Rename loongson2e and loongson2f to loongson_2e
3901 (loongson2ef.md): New include.
3902 * config/mips/loongson.md (vec_pack_ssat_<mode>, vec_pack_usat_<mode>)
3903 (add<mode>3, paddd, ssadd<mode>3, usadd<mode>3)
3904 (loongson_and_not_<mode>, loongson_average_<mode>, loongson_eq_<mode>)
3905 (loongson_gt_<mode>, loongson_extract_halfword)
3906 (loongson_insert_halfword_0, loongson_insert_halfword_2)
3907 (loongson_insert_halfword_3, loongson_mult_add, smax<mode>3)
3908 (umax<mode>3, smin<mode>3, umin<mode>3, loongson_move_byte_mask)
3909 (umul<mode>3_highpart, smul<mode>3_highpart, loongson_smul_lowpart)
3910 (loongson_umul_word, loongson_pasubub, reduc_uplus_<mode>)
3911 (loongson_psadbh, loongson_pshufh, loongson_psll<mode>)
3912 (loongson_psra<mode>, loongson_psrl<mode>, sub<mode>3, psubd)
3913 (sssub<mode>3, ussub<mode>3, vec_interleave_high<mode>)
3914 (vec_interleave_low<mode>): Define type attribute.
3915 * config/mips/mips.c (mips_ls2): New static variable.
3916 (mips_issue_rate): Update to handle tuning for Loongson 2E/2F.
3917 (mips_ls2_init_dfa_post_cycle_insn, mips_init_dfa_post_cycle_insn)
3918 (sched_ls2_dfa_post_advance_cycle, mips_dfa_post_advance_cycle):
3919 Implement target scheduling hooks.
3920 (mips_multipass_dfa_lookahead): Update to handle tuning for
3922 (mips_sched_init): Initialize data for Loongson scheduling.
3923 (mips_ls2_variable_issue): New static function.
3924 (mips_variable_issue): Update to handle tuning for Loongson 2E/2F.
3926 (TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN)
3927 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Override target hooks.
3928 * config/mips/mips.h (TUNE_LOONGSON_2EF): New macros.
3929 (ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY, ISA_HAS_HILO_INTERLOCKS):
3930 Handle ST Loongson 2E/2F cores.
3931 (CPU_UNITS_QUERY): Define macro to enable querying of DFA units.
3933 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3935 * omp-low.c (extract_omp_for_data): Fix comment typo.
3938 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3940 * doc/sourcebuild.texi (Config Fragments): Remove obsolete
3941 FIXME note about gcc/config.guess.
3942 * doc/options.texi (Option file format): Remove non-ASCII bytes.
3943 * doc/cpp.texi: Expand TABs, drop indentation outside examples.
3944 * doc/cppopts.texi: Likewise.
3945 * doc/extend.texi: Likewise.
3946 * doc/gcc.texi: Likewise.
3947 * doc/gccint.texi: Likewise.
3948 * doc/gcov.texi: Likewise.
3949 * doc/gty.texi: Likewise.
3950 * doc/hostconfig.texi: Likewise.
3951 * doc/install.texi: Likewise.
3952 * doc/invoke.texi: Likewise.
3953 * doc/loop.texi: Likewise.
3954 * doc/makefile.texi: Likewise.
3955 * doc/md.texi: Likewise.
3956 * doc/passes.texi: Likewise.
3957 * doc/tm.texi: Likewise.
3958 * doc/tree-ssa.texi: Likewise.
3959 * doc/trouble.texi: Likewise.
3961 2008-06-15 Mark Shinwell <shinwell@codesourcery.com>
3962 Nathan Sidwell <nathan@codesourcery.com>
3963 Maxim Kuvyrkov <maxim@codesourcery.com>
3964 Richard Sandiford <rdsandiford@googlemail.com>
3966 * config/mips/mips-modes.def: Add V8QI, V4HI and V2SI modes.
3967 * config/mips/mips-protos.h (mips_expand_vector_init): New.
3968 * config/mips/mips-ftypes.def: Add function types for Loongson-2E/2F
3970 * config/mips/mips.c (mips_split_doubleword_move): Handle new modes.
3971 (mips_hard_regno_mode_ok_p): Allow 64-bit vector modes for Loongson.
3972 (mips_vector_mode_supported_p): Add V2SImode, V4HImode and
3974 (LOONGSON_BUILTIN, LOONGSON_BUILTIN_ALIAS): New.
3975 (CODE_FOR_loongson_packsswh, CODE_FOR_loongson_packsshb,
3976 (CODE_FOR_loongson_packushb, CODE_FOR_loongson_paddw,
3977 (CODE_FOR_loongson_paddh, CODE_FOR_loongson_paddb,
3978 (CODE_FOR_loongson_paddsh, CODE_FOR_loongson_paddsb)
3979 (CODE_FOR_loongson_paddush, CODE_FOR_loongson_paddusb)
3980 (CODE_FOR_loongson_pmaxsh, CODE_FOR_loongson_pmaxub)
3981 (CODE_FOR_loongson_pminsh, CODE_FOR_loongson_pminub)
3982 (CODE_FOR_loongson_pmulhuh, CODE_FOR_loongson_pmulhh)
3983 (CODE_FOR_loongson_biadd, CODE_FOR_loongson_psubw)
3984 (CODE_FOR_loongson_psubh, CODE_FOR_loongson_psubb)
3985 (CODE_FOR_loongson_psubsh, CODE_FOR_loongson_psubsb)
3986 (CODE_FOR_loongson_psubush, CODE_FOR_loongson_psubusb)
3987 (CODE_FOR_loongson_punpckhbh, CODE_FOR_loongson_punpckhhw)
3988 (CODE_FOR_loongson_punpckhwd, CODE_FOR_loongson_punpcklbh)
3989 (CODE_FOR_loongson_punpcklhw, CODE_FOR_loongson_punpcklwd): New.
3990 (mips_builtins): Add Loongson builtins.
3991 (mips_loongson_2ef_bdesc): New.
3992 (mips_bdesc_arrays): Add mips_loongson_2ef_bdesc.
3993 (mips_builtin_vector_type): Handle unsigned versions of vector modes.
3994 (MIPS_ATYPE_UQI, MIPS_ATYPE_UDI, MIPS_ATYPE_V2SI, MIPS_ATYPE_UV2SI)
3995 (MIPS_ATYPE_V4HI, MIPS_ATYPE_UV4HI, MIPS_ATYPE_V8QI, MIPS_ATYPE_UV8QI):
3997 (mips_expand_vector_init): New.
3998 * config/mips/mips.h (HAVE_LOONGSON_VECTOR_MODES): New.
3999 (TARGET_CPU_CPP_BUILTINS): Define __mips_loongson_vector_rev
4001 * config/mips/mips.md: Add unspec numbers for Loongson
4002 builtins. Include loongson.md.
4003 (MOVE64): Include Loongson vector modes.
4004 (SPLITF): Include Loongson vector modes.
4005 (HALFMODE): Handle Loongson vector modes.
4006 * config/mips/loongson.md: New.
4007 * config/mips/loongson.h: New.
4008 * config.gcc: Add loongson.h header for mips*-*-* targets.
4009 * doc/extend.texi (MIPS Loongson Built-in Functions): New.
4011 2008-06-14 Joseph Myers <joseph@codesourcery.com>
4013 * config.gcc (arc-*-elf*, avr-*-*, fr30-*-elf, frv-*-elf,
4014 h8300-*-elf*, h8300-*-*, i[34567]86-*-elf*, x86_64-*-elf*,
4015 i[34567]86-*-aout*, i[34567]86-*-coff*, ia64*-*-elf*,
4016 iq2000*-*-elf*, m32r-*-elf*, m32rle-*-elf*, m32r-*-linux*,
4017 m32rle-*-linux*, m68hc11-*-*|m6811-*-*, m68hc12-*-*|m6812-*-*,
4018 m68k-*-coff*, mcore-*-elf, mcore-*-pe*, mipsisa64sr71k-*-elf*,
4019 mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*, mips-*-elf* |
4020 mipsel-*-elf*, mips64-*-elf* | mips64el-*-elf*, mips64vr-*-elf* |
4021 mips64vrel-*-elf*, mips64orion-*-elf* | mips64orionel-*-elf*,
4022 mipstx39-*-elf* | mipstx39el-*-elf*, mn10300-*-*, pdp11-*-,
4023 powerpc-*-elf*, powerpcle-*-elf*, sh-*-elf* | sh[12346l]*-*-elf* |
4024 sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | sh-*-linux* |
4025 sh[2346lbe]*-*-linux* | sh-*-netbsdelf* | shl*-*-netbsdelf* |
4026 sh5-*-netbsd* | sh5l*-*-netbsd* | sh64-*-netbsd* |
4027 sh64l*-*-netbsd*, sh-*-*, sparc-*-elf*, sparc64-*-elf*,
4028 v850e1-*-*, v850e-*-*, v850-*-*, xstormy16-*-elf, m32c-*-elf*):
4029 Remove use_fixproto=yes.
4030 (ia64*-*-hpux*): Remove comment about using fixproto.
4031 (m68k-*-uclinuxoldabi*, m68k-*-uclinux*): Remove use_fixproto=no.
4033 2008-06-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4035 * configure.ac: Update gthr-default.h lazily, to avoid unneeded
4037 * configure: Regenerate.
4039 2008-06-13 Eric Botcazou <ebotcazou@adacore.com>
4042 * builtins.c (get_memory_rtx): Test for the presence of DECL_SIZE_UNIT
4043 before evaluating it.
4045 2008-06-13 Jakub Jelinek <jakub@redhat.com>
4048 * c-decl.c (merge_decls): Don't clear DECL_EXTERNAL for
4049 nested inline functions.
4050 (start_decl, start_function): Don't invert DECL_EXTERNAL
4051 for nested inline functions.
4053 2008-06-13 Richard Sandiford <rdsandiford@googlemail.com>
4055 * config/mips/mips.md: Remove TARGET_DEBUG_D_MODE conditions from
4056 splits that must be made for correctness.
4058 2008-06-13 Richard Sandiford <rdsandiford@googlemail.com>
4060 * config/mips/mips.c (BUILTIN_AVAIL_NON_MIPS16): New macro.
4061 (AVAIL_NON_MIPS16): Likewise.
4062 (mips_builtin_description): Replace target_flags with a predicate.
4063 (paired_single, sb1_paired_single, mips3d, dsp, dspr2, dsp_32)
4064 (dspr2_32): New availability predicates.
4065 (MIPS_BUILTIN): New macro.
4066 (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS)
4067 (CMP_4S_BUILTINS, MOVTF_BUILTINS, CMP_BUILTINS)
4068 (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): Use it.
4069 Replace the TARGET_FLAGS parameters with AVAIL parameters.
4070 (mips_ps_bdesc, mips_sb1_bdesc, mips_dsp_bdesc)
4071 (mips_dsp_32only_bdesc): Merge into...
4072 (mips_builtins): ...this new array.
4073 (mips_bdesc_map, mips_bdesc_arrays): Delete.
4074 (mips_init_builtins): Update after above changes.
4075 (mips_expand_builtin_1): Merge into...
4076 (mips_expand_builtin): ...here and update after above changes.
4078 2008-06-12 Paul Brook <paul@codesourcery.com>
4080 * longlong.h (__arm__): Define count_leading_zeros.
4081 * config/arm/lib1funcs.asm (xxh, xxl, yyh, yyl): Define.
4082 (clzsi2, clzdi2): New functions.
4083 * config/arm/bpabi-v6m.S (xxh, xxl, yyh, yyl): Remove.
4084 * config/arm/bpabi.S (xxh, xxl, yyh, yyl): Remove.
4085 * config/arm/t-strongarm-elf (LIB1ASMFUNCS): Ditto.
4086 * config/arm/t-vxworks (LIB1ASMFUNCS): Ditto.
4087 * config/arm/t-pe (LIB1ASMFUNCS): Ditto.
4088 * config/arm/t-arm-elf (LIB1ASMFUNCS): Ditto.
4089 * config/arm/t-arm-coff (LIB1ASMFUNCS): Ditto.
4090 * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
4091 * config/arm/t-symbian (LIB1ASMFUNCS): Ditto.
4092 * config/arm/t-wince-pe (LIB1ASMFUNCS): Ditto.
4094 2008-06-12 Kazu Hirata <kazu@codesourcery.com>
4096 * config/m68k/m68k.c (m68k_tune_flags): New.
4097 (override_options): Compute m68k_tune_flags.
4098 (MULL_COST, MULW_COST): Update for various variants of CFV2.
4099 * config/m68k/m68k.h (TUNE_MAC, TUNE_EMAC): New.
4101 2008-06-12 Jakub Jelinek <jakub@redhat.com>
4104 * omp-low.c (expand_omp_sections): Initialize l2 to avoid bogus warning.
4106 2008-06-12 Eric Botcazou <ebotcazou@adacore.com>
4108 * tree-inline.c (copy_body_r): Copy TREE_SIDE_EFFECTS along with
4109 TREE_THIS_VOLATILE on INDIRECT_REF nodes.
4111 2008-06-12 Eric Botcazou <ebotcazou@adacore.com>
4113 * expr.c (store_field): Do a block copy from BLKmode to BLKmode-like.
4114 (get_inner_reference): Use BLKmode for byte-aligned BLKmode bitfields.
4116 2008-06-12 Jakub Jelinek <jakub@redhat.com>
4119 * omp-low.c (expand_omp_sections): Handle #pragma omp sections with
4122 2008-06-12 Richard Guenther <rguenther@suse.de>
4124 PR tree-optimization/36345
4125 * tree-flow.h (struct ptr_info_def): Align escape_mask,
4126 add memory_tag_needed flag.
4127 (may_alias_p): Declare.
4128 * tree-ssa-alias.c (may_alias_p): Export.
4129 (set_initial_properties): Use memory_tag_needed flag.
4130 (update_reference_counts): Likewise.
4131 (reset_alias_info): Reset memory_tag_needed flag.
4132 (create_name_tags): Check memory_tag_needed flag.
4133 (dump_points_to_info_for): Dump it.
4134 * tree-ssa-structalias.c (struct variable_info): Remove
4135 directly_dereferenced flag.
4136 (new_var_info): Do not initialize it.
4137 (process_constraint_1): Do not set it.
4138 (update_alias_info): Set is_dereferenced flag.
4139 (set_uids_in_ptset): Use may_alias_p.
4140 (set_used_smts): Check memory_tag_needed flag.
4141 (find_what_p_points_to): Likewise. Pass is_dereferenced flag.
4142 * tree-ssa-alias.c (verify_flow_sensitive_alias_info): Check
4143 memory_tag_needed flag.
4144 * tree-ssa-alias-warnings.c (dsa_named_for): Try to recover
4147 2008-06-12 Kai Tietz <kai.tietz@onevision.com>
4149 * config/i386/i386.c (ix86_compute_frame_layout): Disable
4150 red zone for w64 abi.
4151 (ix86_expand_prologue): Likewise.
4152 (ix86_force_to_memory): Likewise.
4153 (ix86_free_from_memory): Likewise.
4155 2008-06-11 Edmar Wienskoski <edmar@freescale.com>
4158 * config/rs6000/rs6000.c (rs6000_override_options): Set
4159 rs6000_isel conditionally to the absence of comand line override.
4160 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
4161 Remove duplicate rs6000_isel setting.
4162 * config/rs6000/eabispe.h: Ditto.
4164 2008-06-11 Richard Guenther <rguenther@suse.de>
4166 * alias.c (get_alias_set): Use the element alias-set for arrays.
4167 (record_component_aliases): For arrays and vectors do nothing.
4168 * c-common.c (strict_aliasing_warning): Handle the cases
4169 of alias set zero explicitly.
4170 * Makefile.in (dfp.o-warn): Add -Wno-error.
4172 2008-06-11 Joseph Myers <joseph@codesourcery.com>
4174 * config.gcc (all_defaults): Add arch_32 arch_64 cpu_32 cpu_64
4176 (i[34567]86-*-* | x86_64-*-*): Add arch_32 arch_64 cpu_32 cpu_64
4177 tune_32 tune_64 to supported_defaults. Allow values not
4178 supporting 64-bit mode for arch_32, cpu_32 and tune_32 for
4179 x86_64. Do not override cpu_32 or cpu_64 values from target name.
4180 (i[34567]86-*-linux*, i[34567]86-*-solaris2.1[0-9]*): Only default
4181 with_cpu_64 to generic for 64-bit-supporting configurations, not
4182 with_cpu. Remove FIXMEs.
4183 * doc/install.texi (--with-cpu-32, --with-cpu-64, --with-arch-32,
4184 --with-arch-64, --with-tune-32, --with-tune-64): Document.
4185 * config/i386/i386.h (OPT_ARCH32, OPT_ARCH64): Define.
4186 (OPTION_DEFAULT_SPECS): Add tune_32, tune_64, cpu_32, cpu_64,
4187 arch_32 and arch_64.
4189 2008-06-11 Eric Botcazou <ebotcazou@adacore.com>
4190 Olivier Hainque <hainque@adacore.com>
4192 * builtins.c (get_memory_rtx): Accept byte-addressable bitfields.
4193 Use DECL_SIZE_UNIT to retrieve the size of the field.
4195 2008-06-11 Joseph Myers <joseph@codesourcery.com>
4197 * config/arm/arm.c (arm_init_neon_builtins): Move initialization
4198 with function calls after declarations. Lay out
4199 neon_float_type_node before further use.
4201 2008-06-11 Richard Guenther <rguenther@suse.de>
4203 * tree-flow.h (may_point_to_global_var): Declare.
4204 * tree-ssa-alias.c (may_point_to_global_var): New function.
4205 * tree-ssa-sink.c (is_hidden_global_store): Use it.
4207 2008-06-10 Kazu Hirata <kazu@codesourcery.com>
4209 * configure.ac: Teach that fido supports .debug_line.
4210 * configure: Regenerate.
4212 2008-06-10 Tom Tromey <tromey@redhat.com>
4214 * c-lex.c (fe_file_change): Pass SOURCE_LINE to start_source_file
4217 2008-06-10 Joseph Myers <joseph@codesourcery.com>
4219 * dfp.c (WORDS_BIGENDIAN): Define to 0 if not defined.
4220 (encode_decimal64, decode_decimal64, encode_decimal128,
4221 decode_decimal128): Reverse order of 32-bit parts of value if host
4222 and target endianness differ.
4224 2008-06-10 Vinodha Ramasamy <vinodha@google.com>
4226 * value_prob.c (tree_divmod_fixed_value_transform): Use gcov_type.
4227 Avoid division by 0.
4228 (tree_mod_pow2_value_transform): Likewise.
4229 (tree_ic_transform): Likewise.
4230 (tree_stringops_transform): Likewise.
4231 (tree_mod_subtract_transform): Likewise.
4232 * tree-inline-c (copy_bb): Corrected int type to gcov_type.
4233 (copy_edges_for_bb): Likewise.
4234 (initialize_cfun): Likewise.
4236 2008-06-10 Uros Bizjak <ubizjak@gmail.com>
4238 * config/i386/i386.md (*btdi_rex64): Change operand 1 predicate to
4239 nonmemory_operand. Add "N" operand constraint.
4241 (*jcc_btdi_mask_rex64): New instruction and split pattern.
4242 (*jcc_btsi_mask): Ditto.
4243 (*jcc_btsi_mask_1): Ditto.
4245 2008-06-10 Joseph Myers <joseph@codesourcery.com>
4247 * config/rs6000/rs6000.c (build_opaque_vector_type): Set
4248 TYPE_CANONICAL for copied element type.
4250 2008-06-10 Uros Bizjak <ubizjak@gmail.com>
4253 * config/i386/i386.c (ix86_tune_features) [TUNE_USE_BT]:
4254 Add m_CORE2 and m_GENERIC.
4255 * config/i386/predicates.md (bt_comparison_operator): New predicate.
4256 * config/i386/i386.md (*btdi_rex64): New instruction pattern.
4258 (*jcc_btdi_rex64): New instruction and split pattern.
4260 (*jcc_btsi_1): Ditto.
4261 (*btsq): Fix Intel asm dialect operand order.
4265 2008-06-09 Andy Hutchinson <hutchinsonandy@aim.com>
4268 * simplify-rtx.c (simplify_subreg): Add check for shift count
4271 2008-06-09 Richard Sandiford <rdsandiford@googlemail.com>
4273 * doc/md.texi: Synchronize with later constraints.md change.
4274 * longlong.h (umul_ppmm): Replace the MIPS asm implementation
4275 with a C implementation.
4276 * config/mips/mips.c (mips_legitimize_move): Remove MFHI and
4278 (mips_subword): Assume TImode for CONST_INTs if TARGET_64BIT.
4279 (mips_split_doubleword_move): Use special MTHI and MFHI instructions
4280 when moving to and from MD_REGNUM.
4281 (mips_output_move): Don't handle moves from GPRs to HI_REGNUM.
4282 Handle moves from LO_REGNUM to GPRs using MFLO, MACC or DMACC.
4283 Handle byte and halfword moves.
4284 (mips_hard_regno_mode_ok_p): Handle MD_REGS and DSP_ACC_REGS
4286 * config/mips/constraints.md (h): Turn into NO_REGS.
4287 (l, x): Update documentation.
4288 * config/mips/mips.md (UNSPEC_MFHILO): Delete.
4289 (UNSPEC_MFHI, UNSPEC_MTHI, UNSPEC_SET_HILO): New.
4290 (UNSPEC_TLS_LDM, UNSPEC_TLS_GET_TP): Renumber.
4291 (HILO): New mode iterator.
4293 (any_div): New code iterator.
4294 (u): Extend code attribute to div and udiv.
4295 (*add<mode>3_mips16, *movdi_64bit_mips16, *movsi_mips16): Use
4296 d_operand in the splitters. Remove redundant CONST_INT checks.
4297 (mulsi3_mult3, mul<mode>3_internal, mul<mode>3_r4000, *mul_acc_si)
4298 (*macc, *msac, *msac_using_macc, *macc2, *msac2, *mul_sub_si)
4299 (*muls): Remove "=h" clobbers. Adjust peephole2s and define_splits
4300 accordingly, using normal moves instead of unspecs to move LO into
4301 a GPR. Use d_operand and lo_operand instead of *_REG_P checks.
4302 (<u>mulsidi3): Handle expansion in C code.
4303 (<u>mulsidi3_32bit_internal): Rename to...
4304 (<u>mulsidi3_32bit): ...this.
4305 (<u>mulsidi3_32bit_r4000): Fix insn separator.
4306 (*<u>mulsidi3_64bit): Rename to...
4307 (<u>mulsidi3_64bit): ...this. Combine DImode "=h" and "=l" clobbers
4308 into a TImode "=x" clobber. In the split, use an UNSPEC_SET_HILO
4309 to set LO and HI to the multiplication result. Use a normal move
4310 for MFLO and an unspec for MFHI.
4311 (*<u>mulsidi3_64bit_parts): Replace with...
4312 (<u>mulsidi3_64bit_hilo): ...this new instruction.
4313 (<su>mulsi3_highpart): Extend to TARGET_FIX_R4000.
4314 (<su>mulsi3_highpart_internal): Turn into a define_insn_and_split
4315 and extend it to TARGET_FIX_R4000. Store the destination in a GPR
4316 instead of HI. Split the instruction into a separate multiplication
4317 and MFHI if !TARGET_FIX_R4000.
4318 (<su>muldi3_highpart): Likewise.
4319 (<su>mulsi3_highpart_mulhi_internal): Remove the first alternative
4320 and the "=h" clobber.
4321 (*<su>mulsi3_highpart_neg_mulhi_internal): Likewise.
4322 (<u>mulditi3): New expander.
4323 (<u>mulditi3_internal, <u>mulditi3_r4000): New patterns.
4324 (madsi): Remove "=h" clobber.
4325 (divmod<mode>4, udivmod<mode>4): Turn into define_insn_and_splits.
4326 Force the modulus result to be a GPR and split the instruction into
4327 a division followed by an MFHI after reload.
4328 (<u>divmod<GPR:mode>4_hilo_<HILO:mode>): New instruction.
4329 (*lea_high64): Use d_operand in the define_peephole2. Likewise
4330 the MIPS16 HIGH define_split.
4331 (*movdi_32bit, *movdi_gp32_fp64, *movdi_32bit_mips16): Change type
4332 of acc<->gpr moves to "multi".
4333 (*movdi_64bit): Replace the single "x" alternative with
4334 alternatives for moving into and out of "a".
4335 (*movhi_internal, *movqi_internal): Likewise. Use mips_output_move.
4336 (*movsi_internal): Extend the "d<-A" alternative to "d<-a".
4337 (*movdi_64bit_mips16, *movsi_mips16): Add d<-a alternatives.
4338 Use d_operand in the splitters. Remove redundant CONST_INT checks.
4339 (*movhi_mips16, *movqi_mips16): Likewise. Use mips_output_move.
4340 (movti): New expander.
4341 (*movti, *movti_mips16): New insns.
4342 (mfhilo_<mode>, *mfhilo_<mode>, *mfhilo_<mode>_macc): Delete.
4343 (mfhi<GPR:mode>_<HILO:mode>): New pattern.
4344 (mthi<GPR:mode>_<HILO:mode>): Likewise.
4345 * config/mips/predicates.md (fpr_operand): Delete.
4346 (d_operand): New predicate.
4348 2008-06-09 Michael Meissner <michael.meissner@amd.com>
4350 * config.gcc (i[34567]86-*-*): Put test in quotes to prevent
4351 failure on some Bourne shells.
4352 (x86_64-*-*): Ditto.
4354 2008-06-09 Kai Tietz <kai.tietz@onevision.com>
4356 * config/i386/cygming.h (TARGET_SUBTARGET64_DEFAULT): New.
4358 2008-06-09 Eric Botcazou <ebotcazou@libertysurf.fr>
4360 * doc/install.texi (*-*-solaris2*): Remove obsolete contents.
4361 (sparc-sun-solaris2*): Likewise.
4363 2008-06-09 Arnaud Charlet <charlet@adacore.com
4365 * doc/install.texi: Update requirements to build the Ada compiler.
4367 2008-06-08 Steven Bosscher <stevenb.gcc@gmail.com>
4369 * df-scan.c (struct df_scan_problem_data): Remove the
4370 mw_link_pool alloc pool.
4371 (df_scan_free_internal): Don't free it.
4372 (df_scan_alloc): Don't allocate it.
4373 * df.h (struct df_link): Update comment.
4375 2008-06-08 Nathan Sidwell <nathan@codesourcery.com>
4377 * except.h: Correct checks for when SJLJ exceptions must be used.
4379 2008-06-08 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4381 * doc/invoke.texi (Wenum-compare): Mention that it is enabled by
4384 2008-06-08 Joseph Myers <joseph@codesourcery.com>
4386 PR tree-optimization/36218
4387 * configure.ac: Use LDFLAGS="${LDFLAGS_FOR_BUILD}" when running
4388 configure for the build system.
4389 (BUILD_LDFLAGS): Define.
4390 * configure: Regenerate.
4391 * Makefile.in (BUILD_LDFLAGS): Define to @BUILD_LDFLAGS@.
4393 2008-07-08 Anatoly Sokolov <aesok@post.ru>
4396 * config/avr/avr.h (HARD_REGNO_RENAME_OK): Define.
4397 * config/avr/avr.c (avr_hard_regno_rename_ok): New function.
4398 * config/avr/avr-protos.h (avr_hard_regno_rename_ok): New prototype.
4400 2008-06-07 Danny Smith <dannysmith@users.sourceforge.net>
4402 * config/i386/cygming.h (MAYBE_UWIN_CPP_BUILTINS): Remove.
4404 2008-06-07 Joseph Myers <joseph@codesourcery.com>
4406 * config.gcc (Obsolete configurations): Remove list of
4408 (Unsupported targets list): Add *-*-linux*aout*, *-*-linux*libc1*,
4409 *-*-solaris2.[0-6], *-*-solaris2.[0-6].*, *-*-sysv*. Remove other
4410 targets matched by those patterns.
4411 (strongarm*-*-*, ep9312*-*-*, xscale-*-*, parisc*-*-*,
4412 m680[012]0-*-*, *-*-linux*libc1*, *-*-linux*aout*,
4413 alpha*-*-unicosmk*, strongarm*-*-freebsd*, ep9312-*-elf,
4414 arm*-*-kaos*, cris-*-aout, parisc*64*-*-linux*, parisc*-*-linux*,
4415 hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
4416 i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
4417 i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-sco3.2v5*,
4418 i[34567]86-*-sysv5*, i[34567]86-*-sysv4*, i[34567]86-*-uwin*,
4419 i[34567]86-*-kaos*, m68020-*-elf*, m68010-*-netbsdelf*,
4420 mips-wrs-windiss, mt-*-elf, powerpc-*-beos*, powerpc-*-chorusos*,
4421 powerpc-wrs-windiss*, powerpcle-*-sysv*, powerpc-*-kaos*,
4422 powerpcle-*-kaos*, sh*-*-kaos*, sparc-*-sysv4*, strongarm-*-elf*,
4423 strongarm-*-pe, strongarm-*-kaos*, vax-*-bsd*, vax-*-sysv*,
4424 vax-*-ultrix*, xscale-*-elf, xscale-*-coff,
4425 i[34567]86-*-linux*aout*, i[34567]86-*-linux*libc1): Remove.
4426 Make code for Solaris 7 and greater unconditional for Solaris.
4427 (ep9312-*-*, parisc1*, m680[012]0-*-*, parisc*-*-*, mt-*-*):
4428 Remove --with-* handling.
4429 * config/rs6000/sysv4.h (-mwindiss): Remove from all specs.
4430 (LIB_WINDISS_SPEC, CPP_OS_WINDISS_SPEC, STARTFILE_WINDISS_SPEC,
4431 ENDFILE_WINDISS_SPEC, LINK_START_WINDISS_SPEC,
4432 LINK_OS_WINDISS_SPEC): Remove.
4433 * config/rs6000/sysv4.opt (mwindiss): Remove.
4434 * configure.ac (strongarm*-*-*, xscale*-*-*): Remove.
4435 * configure: Regenerate.
4436 * doc/cpp.texi: Don't mention BeOS.
4437 * doc/extend.texi (interrupt): Don't mention MS1.
4438 * doc/install.texi: (i386-@var{any}-sysv, m68k-bull-sysv,
4439 m68k-hp-hpux, m68000-hp-hpux, m68000-att-sysv,
4440 alphaev5-cray-unicosmk*, xscale-*-*, i?86-*-linux*aout,
4441 i?86-*-sco3.2v5*, i?86-*-udk, m68k-hp-hpux, powerpc-*-sysv4,
4442 powerpc-*-sysv4, powerpcle-*-sysv4, *-*-sysv*, vax-dec-ultrix):
4444 * doc/invoke.texi (MT Options): Remove.
4445 (-mwindiss): Remove.
4446 (CRIS Options): Remove cris-axis-aout references.
4447 (HPPA Options): Don't mention hppa1.1-*-pro.
4448 * doc/md.texi: (MorphoTech family): Remove.
4449 * libgcc2.c: Don't handle UWIN.
4450 * config/alpha/t-unicosmk: Remove.
4451 * config/alpha/unicosmk.h: Remove.
4452 * config/arm/kaos-arm.h: Remove.
4453 * config/arm/kaos-strongarm.h: Remove.
4454 * config/arm/strongarm-coff.h: Remove.
4455 * config/arm/strongarm-elf.h: Remove.
4456 * config/arm/strongarm-pe.h: Remove.
4457 * config/arm/t-strongarm-pe: Remove.
4458 * config/arm/t-xscale-coff: Remove.
4459 * config/arm/t-xscale-elf: Remove.
4460 * config/arm/xscale-coff.h: Remove.
4461 * config/arm/xscale-elf.h: Remove.
4462 * config/chorus.h: Remove.
4463 * config/cris/aout.h: Remove.
4464 * config/cris/aout.opt: Remove.
4465 * config/cris/t-aout: Remove.
4466 * config/i386/beos-elf.h: Remove.
4467 * config/i386/kaos-i386.h: Remove.
4468 * config/i386/ptx4-i.h: Remove.
4469 * config/i386/sco5.h: Remove.
4470 * config/i386/sco5.opt: Remove.
4471 * config/i386/sysv4-cpp.h: Remove.
4472 * config/i386/sysv5.h: Remove.
4473 * config/i386/t-beos: Remove.
4474 * config/i386/t-sco5: Remove.
4475 * config/i386/t-uwin: Remove.
4476 * config/i386/uwin.asm: Remove.
4477 * config/i386/uwin.h: Remove.
4478 * config/kaos.h: Remove.
4479 * config/mips/windiss.h: Remove.
4480 * config/mt: Remove directory.
4481 * config/pa/pa-osf.h: Remove.
4482 * config/pa/pa-pro-end.h: Remove.
4483 * config/pa/t-pro: Remove.
4484 * config/ptx4.h: Remove.
4485 * config/rs6000/beos.h: Remove.
4486 * config/rs6000/kaos-ppc.h: Remove.
4487 * config/rs6000/t-beos: Remove.
4488 * config/rs6000/windiss.h: Remove.
4489 * config/sh/kaos-sh.h: Remove.
4490 * config/sol2-6.h: Remove.
4491 * config/sparc/sol26-sld.h: Remove.
4492 * config/sparc/sysv4-only.h: Remove.
4493 * config/vax/bsd.h: Remove.
4494 * config/vax/t-memfuncs: Remove.
4495 * config/vax/ultrix.h: Remove.
4496 * config/vax/vaxv.h: Remove.
4497 * config/windiss.h: Remove.
4499 2008-06-06 Uros Bizjak <ubizjak@gmail.com>
4501 PR rtl-optimization/36438
4502 * cse.c (fold_rtx) [ASHIFT, LSHIFTRT, ASHIFTRT]: Break out early
4503 for vector shifts with constant scalar shift operands.
4505 2008-06-06 Sandip Matte <sandip@rmicorp.com>
4507 * doc/invoke.texi: Document -march=xlr.
4508 * config/mips/xlr.md: New file.
4509 * config/mips/mips.md: Include it.
4511 * config/mips/mips.h (PROCESSOR_XLR): New processor_type.
4512 * config/mips/mips.c (mips_cpu_info_table): Add an XLR entry.
4513 (mips_rtx_cost_data): Likewise.
4515 2008-06-06 Nathan Froyd <froydnj@codesourcery.com>
4517 * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Remove
4518 PRE_INC and PRE_DEC cases.
4520 2008-06-06 Jakub Jelinek <jakub@redhat.com>
4522 PR rtl-optimization/36419
4523 * except.c (expand_resx_expr): Call do_pending_stack_adjust () before
4524 the emitting jump insn.
4527 * gimplify.c (gimplify_expr) <case TRUTH_NOT_EXPR>: If *expr_p type
4528 is not bool, boolify the whole *expr_p and convert to the desired type.
4530 2008-06-06 Jakub Jelinek <jakub@redhat.com>
4532 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805.
4533 * langhooks.h (struct lang_hooks_for_decls): Add omp_finish_clause.
4534 Add omp_private_outer_ref hook, add another argument to
4535 omp_clause_default_ctor hook.
4536 * langhooks-def.h (LANG_HOOKS_OMP_FINISH_CLAUSE): Define.
4537 (LANG_HOOKS_OMP_PRIVATE_OUTER_REF): Define.
4538 (LANG_HOOKS_OMP_CLAUSE_DEFAULT_CTOR): Change to
4539 hook_tree_tree_tree_tree_null.
4540 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_FINISH_CLAUSE and
4541 LANG_HOOKS_OMP_PRIVATE_OUTER_REF.
4542 * hooks.c (hook_tree_tree_tree_tree_null): New function.
4543 * hooks.h (hook_tree_tree_tree_tree_null): New prototype.
4544 * tree.def (OMP_TASK): New tree code.
4545 * tree.h (OMP_TASK_COPYFN, OMP_TASK_ARG_SIZE, OMP_TASK_ARG_ALIGN,
4546 OMP_CLAUSE_PRIVATE_OUTER_REF, OMP_CLAUSE_LASTPRIVATE_STMT,
4547 OMP_CLAUSE_COLLAPSE_ITERVAR, OMP_CLAUSE_COLLAPSE_COUNT,
4548 OMP_TASKREG_CHECK, OMP_TASKREG_BODY, OMP_TASKREG_CLAUSES,
4549 OMP_TASKREG_FN, OMP_TASKREG_DATA_ARG, OMP_TASK_BODY,
4550 OMP_TASK_CLAUSES, OMP_TASK_FN, OMP_TASK_DATA_ARG,
4551 OMP_CLAUSE_COLLAPSE_EXPR): Define.
4552 (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
4553 (OMP_DIRECTIVE_P): Add OMP_TASK.
4554 (OMP_CLAUSE_COLLAPSE, OMP_CLAUSE_UNTIED): New clause codes.
4555 (OMP_CLAUSE_SCHEDULE_AUTO): New schedule kind.
4556 * tree.c (omp_clause_code_name): Add OMP_CLAUSE_COLLAPSE
4557 and OMP_CLAUSE_UNTIED entries.
4558 (omp_clause_num_ops): Likewise. Increase OMP_CLAUSE_LASTPRIVATE
4560 (walk_tree_1): Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
4561 Walk OMP_CLAUSE_LASTPRIVATE_STMT.
4562 * tree-pretty-print.c (dump_omp_clause): Handle
4563 OMP_CLAUSE_SCHEDULE_AUTO, OMP_CLAUSE_UNTIED, OMP_CLAUSE_COLLAPSE,
4564 OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
4565 (dump_generic_node): Handle OMP_TASK and collapsed OMP_FOR loops.
4566 * c-omp.c (c_finish_omp_for): Allow pointer iterators. Remove
4567 warning about unsigned iterators. Change decl/init/cond/incr
4568 arguments to TREE_VECs, check arguments for all collapsed loops.
4569 (c_finish_omp_taskwait): New function.
4570 (c_split_parallel_clauses): Put OMP_CLAUSE_COLLAPSE clause to
4572 * c-parser.c (c_parser_omp_for_loop): Parse collapsed loops. Call
4573 default_function_array_conversion on init. Add par_clauses argument.
4574 If decl is present in parallel's lastprivate clause, change it to
4575 shared and add lastprivate clause for decl to OMP_FOR_CLAUSES.
4576 Add clauses argument, on success set OMP_FOR_CLAUSES to it. Look up
4577 collapse count in clauses.
4578 (c_parser_omp_for, c_parser_omp_parallel): Adjust
4579 c_parser_omp_for_loop callers.
4580 (OMP_FOR_CLAUSE_MASK): Add 1 << PRAGMA_OMP_CLAUSE_COLLAPSE.
4581 (c_parser_pragma): Handle PRAGMA_OMP_TASKWAIT.
4582 (c_parser_omp_clause_name): Handle collapse and untied clauses.
4583 (c_parser_omp_clause_collapse, c_parser_omp_clause_untied): New
4585 (c_parser_omp_clause_schedule): Handle schedule(auto).
4586 Include correct location in the error message.
4587 (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_COLLAPSE
4588 and PRAGMA_OMP_CLAUSE_UNTIED.
4589 (OMP_TASK_CLAUSE_MASK): Define.
4590 (c_parser_omp_task, c_parser_omp_taskwait): New functions.
4591 (c_parser_omp_construct): Handle PRAGMA_OMP_TASK.
4592 * tree-nested.c (convert_nonlocal_omp_clauses,
4593 convert_local_omp_clauses): Handle OMP_CLAUSE_LASTPRIVATE_STMT,
4594 OMP_CLAUSE_REDUCTION_INIT, OMP_CLAUSE_REDUCTION_MERGE,
4595 OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
4596 Don't handle TREE_STATIC or DECL_EXTERNAL VAR_DECLs in
4598 (conver_nonlocal_reference, convert_local_reference,
4599 convert_call_expr): Handle OMP_TASK the same as OMP_PARALLEL. Use
4600 OMP_TASKREG_* macros rather than OMP_PARALLEL_*.
4601 (walk_omp_for): Adjust for OMP_FOR_{INIT,COND,INCR} changes.
4602 * tree-gimple.c (is_gimple_stmt): Handle OMP_TASK.
4603 * c-tree.h (c_begin_omp_task, c_finish_omp_task): New prototypes.
4604 * c-pragma.h (PRAGMA_OMP_TASK, PRAGMA_OMP_TASKWAIT): New.
4605 (PRAGMA_OMP_CLAUSE_COLLAPSE, PRAGMA_OMP_CLAUSE_UNTIED): New.
4606 * c-typeck.c (c_begin_omp_task, c_finish_omp_task): New functions.
4607 (c_finish_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
4609 * c-pragma.c (init_pragma): Init omp task and omp taskwait pragmas.
4610 * c-common.h (c_finish_omp_taskwait): New prototype.
4611 * gimple-low.c (lower_stmt): Handle OMP_TASK.
4612 * tree-parloops.c (create_parallel_loop): Create 1 entry
4613 vectors for OMP_FOR_{INIT,COND,INCR}.
4614 * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
4615 (make_edges): Handle OMP_TASK.
4616 * tree-ssa-operands.c (get_expr_operands): Handle collapsed OMP_FOR
4617 loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
4618 * tree-inline.c (estimate_num_insns_1): Handle OMP_TASK.
4619 * builtin-types.def (BT_PTR_ULONGLONG, BT_PTR_FN_VOID_PTR_PTR,
4620 BT_FN_BOOL_ULONGLONGPTR_ULONGLONGPTR,
4621 BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULLPTR_ULLPTR,
4622 BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULL_ULLPTR_ULLPTR,
4623 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): New.
4624 * omp-builtins.def (BUILT_IN_GOMP_TASK, BUILT_IN_GOMP_TASKWAIT,
4625 BUILT_IN_GOMP_LOOP_ULL_STATIC_START,
4626 BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_START,
4627 BUILT_IN_GOMP_LOOP_ULL_GUIDED_START,
4628 BUILT_IN_GOMP_LOOP_ULL_RUNTIME_START,
4629 BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_START,
4630 BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_START,
4631 BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_START,
4632 BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_START,
4633 BUILT_IN_GOMP_LOOP_ULL_STATIC_NEXT,
4634 BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_NEXT,
4635 BUILT_IN_GOMP_LOOP_ULL_GUIDED_NEXT,
4636 BUILT_IN_GOMP_LOOP_ULL_RUNTIME_NEXT,
4637 BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_NEXT,
4638 BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_NEXT,
4639 BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_NEXT,
4640 BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_NEXT): New builtins.
4641 * gimplify.c (gimplify_omp_for): Allow pointer type for decl,
4642 handle POINTER_PLUS_EXPR. If loop counter has been replaced and
4643 original iterator is present in lastprivate clause or if
4644 collapse > 1, set OMP_CLAUSE_LASTPRIVATE_STMT. Handle collapsed
4645 OMP_FOR loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
4646 (gimplify_expr): Handle OMP_SECTIONS_SWITCH and OMP_TASK.
4647 (enum gimplify_omp_var_data): Add GOVD_PRIVATE_OUTER_REF.
4648 (omp_notice_variable): Set GOVD_PRIVATE_OUTER_REF if needed,
4649 if it is set, lookup var in outer contexts too. Handle
4650 OMP_CLAUSE_DEFAULT_FIRSTPRIVATE. Handle vars that are supposed
4651 to be implicitly determined firstprivate for task regions.
4652 (gimplify_scan_omp_clauses): Set GOVD_PRIVATE_OUTER_REF if needed,
4653 if it is set, lookup var in outer contexts too. Set
4654 OMP_CLAUSE_PRIVATE_OUTER_REF if GOVD_PRIVATE_OUTER_REF is set.
4655 Handle OMP_CLAUSE_LASTPRIVATE_STMT, OMP_CLAUSE_COLLAPSE and
4656 OMP_CLAUSE_UNTIED. Take region_type as last argument
4657 instead of in_parallel and in_combined_parallel.
4658 (gimplify_omp_parallel, gimplify_omp_for, gimplify_omp_workshare):
4660 (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_PRIVATE_OUTER_REF if
4661 GOVD_PRIVATE_OUTER_REF is set. Call omp_finish_clause langhook.
4662 (new_omp_context): Set default_kind to
4663 OMP_CLAUSE_DEFAULT_UNSPECIFIED for OMP_TASK regions.
4664 (omp_region_type): New enum.
4665 (struct gimplify_omp_ctx): Remove is_parallel and is_combined_parallel
4666 fields, add region_type.
4667 (new_omp_context): Take region_type as argument instead of is_parallel
4668 and is_combined_parallel.
4669 (gimple_add_tmp_var, omp_firstprivatize_variable, omp_notice_variable,
4670 omp_is_private, omp_check_private): Adjust ctx->is_parallel and
4671 ctx->is_combined_parallel checks.
4672 (gimplify_omp_task): New function.
4673 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
4675 * omp-low.c (extract_omp_for_data): Use schedule(static)
4676 for schedule(auto). Handle pointer and unsigned iterators.
4677 Compute fd->iter_type. Handle POINTER_PLUS_EXPR increments.
4678 Add loops argument. Extract data for collapsed OMP_FOR loops.
4679 (expand_parallel_call): Assert sched_kind isn't auto,
4680 map runtime schedule to index 3.
4681 (struct omp_for_data_loop): New type.
4682 (struct omp_for_data): Remove v, n1, n2, step, cond_code fields.
4683 Add loop, loops, collapse and iter_type fields.
4684 (workshare_safe_to_combine_p): Disallow combined for if
4685 iter_type is unsigned long long. Don't combine collapse > 1 loops
4686 unless all bounds and steps are constant. Adjust extract_omp_for_data
4688 (expand_omp_for_generic): Handle pointer, unsigned and long long
4689 iterators. Handle collapsed OMP_FOR loops. Adjust
4690 for struct omp_for_data changes. If libgomp function doesn't return
4691 boolean_type_node, add comparison of the return value with 0.
4692 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk): Handle
4693 pointer, unsigned and long long iterators. Adjust for struct
4694 omp_for_data changes.
4695 (expand_omp_for): Assert sched_kind isn't auto, map runtime schedule
4696 to index 3. Use GOMP_loop_ull*{start,next} if iter_type is
4697 unsigned long long. Allocate loops array, pass it to
4698 extract_omp_for_data. For collapse > 1 loops use always
4699 expand_omp_for_generic.
4700 (omp_context): Add sfield_map and srecord_type fields.
4701 (is_task_ctx, lookup_sfield): New functions.
4702 (use_pointer_for_field): Use is_task_ctx helper. Change first
4703 argument's type from const_tree to tree. Clarify comment.
4704 In OMP_TASK disallow copy-in/out sharing.
4705 (build_sender_ref): Call lookup_sfield instead of lookup_field.
4706 (install_var_field): Add mask argument. Populate both record_type
4707 and srecord_type if needed.
4708 (delete_omp_context): Destroy sfield_map, clear DECL_ABSTRACT_ORIGIN
4710 (fixup_child_record_type): Also remap FIELD_DECL's DECL_SIZE{,_UNIT}
4711 and DECL_FIELD_OFFSET.
4712 (scan_sharing_clauses): Adjust install_var_field callers. For
4713 firstprivate clauses on explicit tasks allocate the var by value in
4714 record_type unconditionally, rather than by reference.
4715 Handle OMP_CLAUSE_PRIVATE_OUTER_REF. Scan OMP_CLAUSE_LASTPRIVATE_STMT.
4716 Use is_taskreg_ctx instead of is_parallel_ctx.
4717 Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
4718 (create_omp_child_function_name): Add task_copy argument, use
4719 *_omp_cpyfn* names if it is true.
4720 (create_omp_child_function): Add task_copy argument, if true create
4721 *_omp_cpyfn* helper function.
4722 (scan_omp_parallel): Adjust create_omp_child_function callers.
4723 Rename parallel_nesting_level to taskreg_nesting_level.
4724 (scan_omp_task): New function.
4725 (lower_rec_input_clauses): Don't run constructors for firstprivate
4726 explicit task vars which are initialized by *_omp_cpyfn*.
4727 Pass outer var ref to omp_clause_default_ctor hook if
4728 OMP_CLAUSE_PRIVATE_OUTER_REF or OMP_CLAUSE_LASTPRIVATE.
4729 Replace OMP_CLAUSE_REDUCTION_PLACEHOLDER decls in
4730 OMP_CLAUSE_REDUCTION_INIT.
4731 (lower_send_clauses): Clear DECL_ABSTRACT_ORIGIN if in task to
4732 avoid duplicate setting of fields. Handle
4733 OMP_CLAUSE_PRIVATE_OUTER_REF.
4734 (lower_send_shared_vars): Use srecord_type if non-NULL. Don't
4735 copy-out if TREE_READONLY, only copy-in.
4736 (expand_task_copyfn): New function.
4737 (expand_task_call): New function.
4738 (struct omp_taskcopy_context): New type.
4739 (task_copyfn_copy_decl, task_copyfn_remap_type, create_task_copyfn):
4741 (lower_omp_parallel): Rename to...
4742 (lower_omp_taskreg): ... this. Use OMP_TASKREG_* macros where needed.
4743 Call create_task_copyfn if srecord_type is needed. Adjust
4745 (task_shared_vars): New variable.
4746 (check_omp_nesting_restrictions): Warn if work-sharing,
4747 barrier, master or ordered region is closely nested inside OMP_TASK.
4748 Add warnings for barrier if closely nested inside of work-sharing,
4749 ordered, or master region.
4750 (scan_omp_1): Call check_omp_nesting_restrictions even for
4751 GOMP_barrier calls. Rename parallel_nesting_level to
4752 taskreg_nesting_level. Handle OMP_TASK.
4753 (lower_lastprivate_clauses): Even if some lastprivate is found on a
4754 work-sharing construct, continue looking for them on parent parallel
4756 (lower_omp_for_lastprivate): Add lastprivate clauses
4757 to the beginning of dlist rather than end. Adjust for struct
4758 omp_for_data changes.
4759 (lower_omp_for): Add rec input clauses before OMP_FOR_PRE_BODY,
4760 not after it. Handle collapsed OMP_FOR loops, adjust for
4761 OMP_FOR_{INIT,COND,INCR} changes, adjust extract_omp_for_data caller.
4762 (get_ws_args_for): Adjust extract_omp_for_data caller.
4763 (scan_omp_for): Handle collapsed OMP_FOR
4764 loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
4765 (lower_omp_single_simple): If libgomp function doesn't return
4766 boolean_type_node, add comparison of the return value with 0.
4767 (diagnose_sb_1, diagnose_sb_2): Handle collapsed OMP_FOR
4768 loops, adjust for OMP_FOR_{INIT,COND,INCR} changes. Handle OMP_TASK.
4769 (parallel_nesting_level): Rename to...
4770 (taskreg_nesting_level): ... this.
4771 (is_taskreg_ctx): New function.
4772 (build_outer_var_ref, omp_copy_decl): Use is_taskreg_ctx instead
4774 (execute_lower_omp): Rename parallel_nesting_level to
4775 taskreg_nesting_level.
4776 (expand_omp_parallel): Rename to...
4777 (expand_omp_taskreg): ... this. Use OMP_TASKREG_* macros where needed.
4778 Call omp_task_call for OMP_TASK regions.
4779 (expand_omp): Adjust caller, handle OMP_TASK.
4780 (lower_omp_1): Adjust lower_omp_taskreg caller, handle OMP_TASK.
4782 * bitmap.c (bitmap_default_obstack_depth): New variable.
4783 (bitmap_obstack_initialize, bitmap_obstack_release): Do nothing
4784 if argument is NULL and bitmap_default_obstack is already initialized.
4785 * ipa-struct-reorg.c (do_reorg_1): Call bitmap_obstack_release
4787 * matrix-reorg.c (matrix_reorg): Likewise.
4789 2008-06-06 Uros Bizjak <ubizjak@gmail.com>
4791 * config/i386/i386.md (*indirect_jump): Macroize using P
4792 mode iterator. Remove !TARGET_64BIT from insn constraints.
4793 (*tablejump_1): Ditto.
4794 (*indirect_jump_rex64): Remove insn pattern.
4795 (*tablejump_1_rex64): Ditto.
4796 (eh_return_<mode>): Macroize using P mode iterator from eh_return_di
4797 and eh_return_si insn patterns.
4799 2008-06-06 Richard Guenther <rguenther@suse.de>
4801 * tree-ssa-structalias.c (merge_smts_into): Remove.
4802 (find_what_p_points_to): Do not bother to compute the
4803 points-to set for pt_anything pointers.
4804 * tree-ssa-operands.c (get_addr_dereference_operands): No NMT
4805 for pt_anything pointers is ok.
4807 2008-06-06 Jan Hubicka <jh@suse.cz>
4809 * passes.c (execute_ipa_pass_list): Do not regenerate summaries.
4811 2008-06-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4813 * cgraph.c: Fix typos in comments.
4814 (cgraph_availability_names): Fix string typo.
4815 * fold-const.c: Fix typos in comments.
4816 (fold_binary): Fix typo in warning.
4817 * genautomata.c: Fix typos in comments.
4818 (check_presence_pattern_sets): Fix typo in local variable.
4819 (output_description): Fix typo in output.
4820 * ggc-zone.c (ggc_pch_finish): Fix typo in error message.
4821 * hwint.h: Likewise.
4822 * matrix-reorg.c (check_allocation_function): Likewise.
4823 * omega.c (smooth_weird_equations): Likewise.
4824 * auto-inc-dec.c: Fix typos in comments.
4825 * bb-reorder.c: Likewise.
4826 * builtins.c: Likewise.
4827 * c-common.c: Likewise.
4828 * c-cppbuiltin.c: Likewise.
4829 * c-parser.c: Likewise.
4830 * c-pretty-print.c: Likewise.
4831 * cfgcleanup.c: Likewise.
4832 * cfgexpand.c: Likewise.
4833 * cfghooks.c: Likewise.
4834 * cfglayout.c: Likewise.
4835 * cfgloopmanip.c: Likewise.
4836 * cgraphunit.c: Likewise.
4837 * coverage.c: Likewise.
4838 * dbxout.c: Likewise.
4839 * df-byte-scan.c: Likewise.
4840 * df-core.c: Likewise.
4841 * df-problems.c: Likewise.
4842 * df-scan.c: Likewise.
4844 * dominance.c: Likewise.
4845 * domwalk.c: Likewise.
4847 * dwarf2out.c: Likewise.
4848 * emit-rtl.c: Likewise.
4849 * et-forest.c: Likewise.
4850 * function.c: Likewise.
4851 * function.h: Likewise.
4853 * gcov-io.c: Likewise.
4856 * genattrtab.c: Likewise.
4857 * ggc-page.c: Likewise.
4858 * gimplify.c: Likewise.
4859 * gthr-lynx.h: Likewise.
4860 * haifa-sched.c: Likewise.
4861 * ipa-cp.c: Likewise.
4862 * ipa-inline.c: Likewise.
4863 * ipa-prop.h: Likewise.
4864 * ipa-pure-const.c: Likewise.
4865 * ipa-struct-reorg.c: Likewise.
4866 * ipa-struct-reorg.h: Likewise.
4867 * ipa-type-escape.c: Likewise.
4869 * loop-doloop.c: Likewise.
4870 * mips-tfile.c: Likewise.
4871 * mkmap-flat.awk: Likewise.
4872 * mkmap-symver.awk: Likewise.
4873 * modulo-sched.c: Likewise.
4874 * omp-low.c: Likewise.
4875 * optabs.c: Likewise.
4876 * optabs.h: Likewise.
4878 * passes.c: Likewise.
4879 * postreload-gcse.c: Likewise.
4880 * postreload.c: Likewise.
4881 * predict.c: Likewise.
4882 * pretty-print.h: Likewise.
4883 * profile.c: Likewise.
4884 * protoize.c: Likewise.
4885 * ra-conflict.c: Likewise.
4887 * recog.c: Likewise.
4888 * regclass.c: Likewise.
4890 * reload.c: Likewise.
4891 * rtl-error.c: Likewise.
4892 * rtlanal.c: Likewise.
4894 * sched-rgn.c: Likewise.
4897 * target.h: Likewise.
4898 * tree-dfa.c: Likewise.
4899 * tree-eh.c: Likewise.
4900 * tree-flow-inline.h: Likewise.
4901 * tree-inline.c: Likewise.
4902 * tree-into-ssa.c: Likewise.
4903 * tree-loop-distribution.c: Likewise.
4904 * tree-nested.c: Likewise.
4905 * tree-parloops.c: Likewise.
4906 * tree-pass.h: Likewise.
4907 * tree-pretty-print.c: Likewise.
4908 * tree-profile.c: Likewise.
4909 * tree-scalar-evolution.c: Likewise.
4910 * tree-sra.c: Likewise.
4911 * tree-ssa-alias-warnings.c: Likewise.
4912 * tree-ssa-ccp.c: Likewise.
4913 * tree-ssa-coalesce.c: Likewise.
4914 * tree-ssa-dom.c: Likewise.
4915 * tree-ssa-dse.c: Likewise.
4916 * tree-ssa-forwprop.c: Likewise.
4917 * tree-ssa-live.c: Likewise.
4918 * tree-ssa-live.h: Likewise.
4919 * tree-ssa-loop-im.c: Likewise.
4920 * tree-ssa-loop-ivopts.c: Likewise.
4921 * tree-ssa-loop-niter.c: Likewise.
4922 * tree-ssa-loop-prefetch.c: Likewise.
4923 * tree-ssa-phiopt.c: Likewise.
4924 * tree-ssa-phiprop.c: Likewise.
4925 * tree-ssa-sccvn.c: Likewise.
4926 * tree-ssa-ter.c: Likewise.
4927 * tree-ssa-threadupdate.c: Likewise.
4928 * tree-ssa.c: Likewise.
4929 * tree-vect-analyze.c: Likewise.
4930 * tree-vect-transform.c: Likewise.
4931 * tree-vectorizer.c: Likewise.
4932 * tree-vn.c: Likewise.
4933 * tree-vrp.c: Likewise.
4935 * tree.def: Likewise.
4937 * unwind-dw2-fde.c: Likewise.
4938 * unwind.inc: Likewise.
4939 * value-prof.c: Likewise.
4940 * vmsdbgout.c: Likewise.
4942 2008-06-05 David Edelsohn <edelsohn@gnu.org>
4944 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Do not
4945 always place FP constants in the TOC for TARGET_POWERPC64.
4946 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Same.
4948 2008-06-05 Joseph Myers <joseph@codesourcery.com>
4950 * config.gcc (powerpc-*-linux*spe*): Use t-dfprules.
4951 * config/rs6000/dfp.md (negdd2, absdd2, negtd2, abstd2): Do not
4952 enable for TARGET_E500_DOUBLE.
4953 (*movdd_softfloat32): Also enable for !TARGET_FPRS.
4954 * config/rs6000/rs6000.c (invalid_e500_subreg): Treat decimal
4955 floating-point modes like integer modes for E500 double.
4956 (rs6000_legitimate_offset_address_p): Likewise.
4957 (rs6000_legitimize_address): Likewise. Do not allow REG+REG
4958 addressing for DDmode for E500 double.
4959 (rs6000_hard_regno_nregs): Do not treat decimal floating-point
4960 modes as using 64-bits of registers for E500 double.
4961 (spe_build_register_parallel): Do not handle DDmode or TDmode.
4962 (rs6000_spe_function_arg): Do not handle DDmode or TDmode
4963 specially for E500 double.
4964 (function_arg): Do not call rs6000_spe_function_arg for DDmode or
4965 TDmode for E500 double.
4966 (rs6000_gimplify_va_arg): Only handle SDmode in registers
4967 specially if TARGET_HARD_FLOAT && TARGET_FPRS.
4968 (rs6000_split_multireg_move): Do not handle TDmode specially for
4970 (spe_func_has_64bit_regs_p): Do not treat DDmode or TDmode as
4971 using 64-bit registers for E500 double.
4972 (emit_frame_save): Do not handle DDmode specially for E500 double.
4973 (gen_frame_mem_offset): Likewise.
4974 (rs6000_function_value): Do not call spe_build_register_parallel
4975 for DDmode or TDmode.
4976 (rs6000_libcall_value): Likewise.
4977 * config/rs6000/rs6000.h (LOCAL_ALIGNMENT, MEMBER_TYPE_FORCES_BLK,
4978 DATA_ALIGNMENT, CLASS_MAX_NREGS): Do not handle DDmode specially
4981 2008-06-04 H.J. Lu <hongjiu.lu@intel.com>
4983 * config/i386/i386.c (setup_incoming_varargs_64): Fix a typo
4986 2008-06-04 Junjie Gu <jgu@tensilica.com>
4988 * config/xtensa/lib2funcs.S (__xtensa_nonlocal_goto): Use unsigned
4989 comparison for frame pointers.
4991 2008-06-04 Andy Hutchinson <hutchinsonandy@aim.com>
4994 * config/avr/avr.h (PUSH_ROUNDING): Remove.
4996 2008-06-04 Andy Hutchinson <hutchinsonandy@aim.com>
4999 * builtins.c (expand_builtin_signbit): Don't take lowpart when
5000 register is already smaller or equal to required mode.
5002 2008-06-04 Xinliang David Li <davidxl@google.com>
5004 * tree-call-cdce.c: New file.
5005 (cond_dead_built_in_calls): New static variable.
5006 (input_domain): New struct.
5007 (check_pow): New function.
5008 (check_builtin_call): Ditto.
5009 (check_target_format): Ditto.
5010 (is_call_dce_candidate): Ditto.
5011 (gen_one_condition): Ditto.
5012 (gen_conditions_for_domain): Ditto.
5013 (get_domain): Ditto.
5014 (gen_conditions_for_pow_cst_base): Ditto.
5015 (gen_conditions_for_pow_int_base): Ditto.
5016 (gen_conditions_for_pow): Ditto.
5017 (get_no_error_domain): Ditto.
5018 (gen_shrink_wrap_conditions): Ditto.
5019 (shrink_wrap_one_built_in_call): Ditto.
5020 (shink_wrap_conditional_dead_built_in_calls): Ditto.
5021 (tree_call_cdce): Ditto.
5022 (gate_call_cdce): Ditto.
5023 (pass_call_cdce): New gimple pass.
5024 * passes.c: (init_optimization_passes): New pass.
5025 * tree-pass.h: New pass declaration.
5026 * opts.c (decode_options): New flag setting.
5027 * common.opt: Add -ftree-builtin-call-dce flag.
5028 * Makefile.in: Add new source file.
5029 * tempvar.def: New tv_id.
5030 * doc/invoke.texi (-ftree-builtin-call-dce): New flag.
5032 2008-06-04 Richard Guenther <rguenther@suse.de>
5034 * tree-flow-inline.h (is_global_var): Do not check TREE_STATIC on MTAGs.
5035 (is_call_clobbered): Always check var_ann->call_clobbered.
5036 (mark_call_clobbered): Always set var_ann->call_clobbered.
5037 (clear_call_clobbered): Always clear var_ann->call_clobbered.
5038 * tree-ssa-alias.c (mark_non_addressable): Use clear_call_clobbered.
5039 (reset_alias_info): Clear call clobbering info on MTAGs and
5041 (set_pt_anything): Set pt_global_mem.
5042 (create_tag_raw): Adjust comment.
5043 (may_be_aliased): Do not check TREE_PUBLIC on MTAGs.
5045 2008-06-04 Joseph Myers <joseph@codesourcery.com>
5046 Maxim Kuvyrkov <maxim@codesourcery.com>
5048 * config/m68k/m68k.opt (mxgot): New option.
5049 * config/m68k/m68k.c (legitimize_pic_address): Handle -mxgot.
5050 (m68k_output_addr_const_extra): New.
5051 * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): New.
5052 * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Declare.
5053 * config/m68k/m68k.md (UNSPEC_GOTOFF): Define.
5054 * doc/invoke.texi (M680x0 Options): Document -mxgot.
5056 2008-06-04 Richard Guenther <rguenther@suse.de>
5058 * tree-ssa-structalias.c (handle_ptr_arith): Correctly handle
5059 negative or non-representable offsets.
5061 2008-06-03 H.J. Lu <hongjiu.lu@intel.com>
5063 * config/i386/i386.c (ix86_gen_leave): New.
5064 (ix86_gen_pop1): Likewise.
5065 (ix86_gen_add3): Likewise.
5066 (ix86_gen_sub3): Likewise.
5067 (ix86_gen_sub3_carry): Likewise.
5068 (ix86_gen_one_cmpl2): Likewise.
5069 (ix86_gen_monitor): Likewise.
5070 (override_options): Initialize ix86_gen_leave, ix86_gen_pop1,
5071 ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
5072 ix86_gen_one_cmpl2 and ix86_gen_monitor.
5073 (ix86_file_end): Use mov%z0 instead of mov{q}/mov{l}.
5074 (output_set_got): Use mov%z0, pop%z0 and add%z0 instead of
5075 mov{q}/mov{l}, pop{q}/pop{l} and add{q}/add{l}.
5076 (ix86_expand_epilogue): Updated.
5077 (print_operand): Handle integer register operand for 'z'.
5078 (ix86_expand_strlensi_unroll_1): Likewise.
5079 (ix86_expand_strlen): Likewise.
5080 (ix86_expand_builtin): Likewise.
5081 (x86_output_mi_thunk): Use mov%z1 and add%z1 instead of
5082 mov{q}/mov{l} and add{q}/add{l}.
5084 2008-06-03 Kai Tietz <kai.tietz@onevision.com>
5086 * config/i386/i386.md (P): New mode iterator.
5087 (SFmode push_operand splitter): Macroize DImode and SImode pushes
5088 using P mode iterator.
5089 (DFmode push_operand splitter): Ditto.
5090 (XFmode push_operand splitter): Ditto.
5091 (DFmode float_extend SFmode push_operand splitter): Ditto.
5092 (XFmode float_extend SFmode push_operand splitter): Do not generate
5093 SImode pushes for 64bit target. Macroize Dimode and SImode
5094 pushes using P mode iterator.
5095 (XFmode float_extend DFmode push_operand splitter): Ditto.
5097 2008-06-03 Kai Tietz <kai.tietz@onevision.com>
5099 * config/i386/i386-protos.h (ix86_reg_parm_stack_space): New.
5100 * config/i386/i386.h (ix86_reg_parm_stack_space): Removed prototype.
5101 * config/i386/i386.c (ix86_reg_parm_stack_space): Changed
5103 (ix86_call_abi_override): Remove check for call_used_regs.
5105 2008-06-03 Richard Guenther <rguenther@suse.de>
5107 * tree-ssa-structalias.c (find_func_aliases): Add constraints
5108 for the lhs of calls if the return type contains pointers.
5110 2008-06-03 Kai Tietz <kai.tietz@onevision.com>
5112 * doc/tm.texi (OVERRIDE_ABI_FORMAT): New.
5113 * doc/extend.texi (ms_abi,sysv_abi): New attribute description.
5114 * function.c (allocate_struct_function): Use of OVERRIDE_ABI_FORMAT.
5115 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Make use
5116 of cfun and DEFAULT_ABI to deceide abi mode.
5118 (REG_PARM_STACK_SPACE): Removed.
5119 (OUTGOING_REG_PARM_STACK_SPACE): Removed.
5120 (STACK_BOUNDARY): Use default target to deceide stack boundary.
5121 * config/i386/i386-protos.h (ix86_cfun_abi): New.
5122 (ix86_function_abi): Likewise.
5123 (ix86_function_type_abi): Likewise.
5124 (ix86_call_abi_override): Likewise.
5125 * confid/i386/i386.md (SSE_REGPARM_MAX): Replaced by abi
5126 specific define X86_64_SSE_REGPARM_MAX/X64_SSE_REGPARM_MAX.
5127 * config/i386/i386.c (override_options): Replace TARGET_64BIT_MS_ABI.
5128 (X86_64_VARARGS_SIZE): Replace REGPARM_MAX and SSE_REGPARM_MAX by abi
5130 (X86_64_REGPARM_MAX): New.
5131 (X86_64_SSE_REGPARM_MAX): New.
5132 (X64_REGPARM_MAX): New.
5133 (X64_SSE_REGPARM_MAX): New.
5134 (X86_32_REGPARM_MAX): New.
5135 (X86_32_SSE_REGPARM_MAX): New.
5136 (ix86_handle_cconv_attribute): Replace TARGET_64BIT_MS_ABI.
5137 (ix86_function_regparm): Handle user calling abi.
5138 (ix86_function_arg_regno_p): Replace TARGET_64BIT_MS_ABI
5139 by DEFAULT_ABI versus SYSV_ABI check.
5140 (ix86_reg_parm_stack_space): New.
5141 (ix86_function_type_abi): New.
5142 (ix86_call_abi_override): New.
5143 (ix86_function_abi): New.
5144 (ix86_cfun_abi): New.
5145 (init_cumulative_args): Call abi specific initialization.
5146 (function_arg_advance): Remove TARGET_64BIT_MS_ABI.
5147 (function_arg_64): Extend SSE_REGPARM_MAX check.
5148 (function_arg (): Remove TARGET_64BIT_MS_ABI.
5149 (ix86_pass_by_reference): Likewise.
5150 (ix86_function_value_regno_p): Likewise.
5151 (function_value_64): Replace REGPARM_MAX, and SSE_REGPARM_MAX.
5152 (ix86_function_value_1): Replace TARGET_64BIT_MS_ABI.
5153 (return_in_memory_ms_64): Replace TARGET_64BIT_MS_ABI.
5154 (ix86_build_builtin_va_list): Replace TARGET_64BIT_MS_ABI.
5155 (setup_incoming_varargs_64): Adjust regparm for call abi.
5156 (ix86_setup_incoming_varargs): Replace TARGET_64BIT_MS_ABI.
5157 (ix86_va_start): Likewise.
5158 (ix86_gimplify_va_arg): Likewise.
5159 (ix86_expand_prologue): Likewise.
5160 (output_pic_addr_const): Likewise.
5161 (ix86_init_machine_status): Initialize call_abi by DEFAULT_ABI.
5162 (x86_this_parameter): Replace TARGET_64BIT_MS_ABI.
5163 (x86_output_mi_thunk): Likewise.
5164 (x86_function_profiler): Likewise.
5165 * config/i386/i386.h (TARGET_64BIT_MS_ABI): Use ix64_cfun_abi.
5166 (SYSV_ABI, MS_ABI): New constants.
5168 (init_regs): Add prototype of function in regclass.c file.
5169 (OVERRIDE_ABI_FORMAT): New.
5170 (CONDITIONAL_REGISTER_USAGE): Remove TARGET_64BIT_MS_ABI part.
5171 (REG_PARM_STACK_SPACE): Use ix86_reg_parm_stack_space.
5172 (OUTGOING_REG_PARM_STACK_SPACE): New.
5173 (ix86_reg_parm_stack_space): New prototype.
5174 (CUMULATIVE_ARGS): Add call_abi member.
5175 (machine_function): Add call_abi member.
5176 * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Replace
5177 TARGET_64BIT_MS_ABI by DEFAULT_ABI compare to MS_ABI.
5179 2008-06-02 Andy Hutchinson <hutchinsonandy@aim.com>
5182 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Redefine.
5183 (avr_builtin_setjmp_frame_value): New function.
5184 * config/avr/avr.md (nonlocal_goto_receiver): Define.
5185 (nonlocal_goto): Define.
5187 2008-06-02 Richard Sandiford <rdsandiford@googlemail.com>
5189 * config/mips/mips.c (mips_emit_loadgp): Return early if
5190 there is nothing do to, otherwise emit a blockage if
5191 !TARGET_EXPLICIT_RELOCS || crtl->profile.
5192 * config/mips/mips.md (loadgp_blockage): Use SI rather than DI.
5194 2008-06-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5196 * configure.ac: Drop unneeded backslash ending up in config.in.
5197 * acinclude.m4: Likewise.
5198 * config.in: Regenerate.
5200 2008-05-26 Jan Hubicka <jh@suse.cz>
5202 * predict.c (maybe_hot_frequency_p): Break out of...
5203 (maybe_hot_bb_p): ... here.
5204 (maybe_hot_edge_p): New.
5205 * tree-ssa-coalesce.c (coalesce_cost_edge): Compute cost based on edge.
5206 * basic-block.h (maybe_hot_edge_p): Declare.
5208 2008-05-31 Uros Bizjak <ubizjak@gmail.com>
5210 * config/i386/i386.md (*cmpfp_<mode>): Enable for optimize_size.
5211 (*cmpfp_<mode>_cc): Ditto.
5212 (*fp_jcc_8<mode>_387): Ditto.
5213 (*fop_<MODEF:mode>_2_i387): Ditto.
5214 (*fop_<MODEF:mode>_3_i387): Ditto.
5215 (*fop_xf_2_i387): Ditto.
5216 (*fop_xf_3_i387): Ditto.
5218 2008-06-02 Tomas Bily <tbily@suse.cz>
5220 * tree-ssa-ifcombine.c (get_name_for_bit_test): Use CONVERT_EXPR_P.
5222 2008-06-01 Richard Sandiford <rdsandiford@googlemail.com>
5224 * config/mips/mips.c (mips_valid_offset_p): New function.
5225 (mips_valid_lo_sum_p): Likewise.
5226 (mips_classify_address): Use them.
5227 (mips_force_address): New function.
5228 (mips_legitimize_address): Use it.
5229 * config/mips/mips.md (MOVE128): New mode iterator.
5230 (movtf): Require TARGET_64BIT. Remove empty strings.
5231 (*movtf_internal): Rename to...
5232 (*movtf): ...this and require !TARGET_MIPS16. Use "m" instead
5233 of "R" and use {,fp}{load,store} attributes instead of "multi".
5234 Use a separate define_split.
5235 (*movtf_mips16): New pattern.
5237 2008-06-01 Richard Sandiford <rdsandiford@googlemail.com>
5239 * config/mips/mips-protos.h (mips_expand_before_return): Declare.
5240 * config/mips/mips.c (mips_expand_before_return): New function.
5241 (mips_expand_epilogue): Call it.
5242 * config/mips/mips.md (return): Turn into a define_expand.
5243 (*return): New insn.
5245 2008-06-01 Richard Sandiford <rdsandiford@googlemail.com>
5247 * rtl.h (emit_clobber, gen_clobber, emit_use, gen_use): Declare.
5248 * emit-rtl.c (emit_clobber, gen_clobber, emit_use, gen_use): New
5249 functions. Do not emit uses and clobbers of CONCATs; individually
5250 use and clobber their operands.
5251 * builtins.c (expand_builtin_setjmp_receiver): Use emit_clobber,
5252 gen_clobber, emit_use and gen_use.
5253 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
5254 (expand_builtin_return): Likewise.
5255 * cfgbuild.c (count_basic_blocks): Likewise.
5256 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
5257 * explow.c (emit_stack_restore): Likewise.
5258 * expmed.c (extract_bit_field_1): Likewise.
5259 * expr.c (convert_move, emit_move_complex_parts): Likewise.
5260 (emit_move_multi_word, store_constructor): Likewise.
5261 * function.c (do_clobber_return_reg, do_use_return_reg): Likewise.
5262 (thread_prologue_and_epilogue_insns): Likewise.
5263 * lower-subreg.c (resolve_simple_move): Likewise.
5264 * optabs.c (widen_operand, expand_binop): Likewise.
5265 (expand_doubleword_bswap, emit_no_conflict_block): Likewise.
5266 * reload.c (find_reloads): Likewise.
5267 * reload1.c (eliminate_regs_in_insn): Likewise.
5268 * stmt.c (expand_nl_goto_receiver): Likewise.
5269 * config/alpha/alpha.md (builtin_longjmp): Likewise.
5270 * config/arc/arc.md (*movdi_insn, *movdf_insn): Likewise.
5271 * config/arm/arm.c (arm_load_pic_register): Likewise.
5272 (thumb1_expand_epilogue, thumb_set_return_address): Likewise.
5273 * config/arm/arm.md (untyped_return): Likewise.
5274 * config/arm/linux-elf.h (PROFILE_HOOK): Likewise.
5275 * config/avr/avr.c (expand_prologue): Likewise.
5276 * config/bfin/bfin.c (do_unlink): Likewise.
5277 * config/bfin/bfin.md (<optab>di3, adddi3, subdi3): Likewise.
5278 * config/cris/cris.c (cris_expand_prologue): Likewise.
5279 * config/darwin.c (machopic_indirect_data_reference): Likewise.
5280 (machopic_legitimize_pic_address): Likewise.
5281 * config/frv/frv.c (frv_frame_access, frv_expand_epilogue): Likewise.
5282 (frv_ifcvt_modify_insn, frv_expand_mdpackh_builtin): Likewise.
5283 * config/i386/i386.c (ix86_expand_vector_move_misalign): Likewise.
5284 (ix86_expand_convert_uns_didf_sse): Likewise.
5285 (ix86_expand_vector_init_general): Likewise.
5286 * config/ia64/ia64.md (eh_epilogue): Likewise.
5287 * config/iq2000/iq2000.c (iq2000_expand_epilogue): Likewise.
5288 * config/m32c/m32c.c (m32c_emit_eh_epilogue): Likewise.
5289 * config/m32r/m32r.c (m32r_reload_lr): Likewise.
5290 (config/iq2000/iq2000.c): Likewise.
5291 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
5292 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
5293 (builtin_longjmp): Likewise.
5294 * config/mn10300/mn10300.md (call, call_value): Likewise.
5295 * config/pa/pa.md (nonlocal_goto, nonlocal_longjmp): Likewise.
5296 * config/pdp11/pdp11.md (abshi2): Likewise.
5297 * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
5298 * config/s390/s390.c (s390_emit_prologue): Likewise.
5299 * config/s390/s390.md (movmem_long, setmem_long): Likewise.
5300 (cmpmem_long, extendsidi2, zero_extendsidi2, udivmoddi4): Likewise.
5301 (builtin_setjmp_receiver, restore_stack_nonlocal): Likewise.
5302 * config/sh/sh.c (prepare_move_operands): Likewise.
5303 (output_stack_adjust, sh_expand_epilogue): Likewise.
5304 (sh_set_return_address, sh_expand_t_scc): Likewise.
5305 * config/sparc/sparc.c (load_pic_register): Likewise.
5306 * config/sparc/sparc.md (untyped_return, nonlocal_goto): Likewise.
5307 * config/spu/spu.c (spu_expand_epilogue): Likewise.
5308 * config/v850/v850.c (expand_epilogue): Likewise.
5310 2008-05-31 Anatoly Sokolov <aesok@post.ru>
5312 * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): New constants.
5313 (UNSPECV_WRITE_SP_IRQ_OFF): (Ditto.).
5314 (movhi_sp_r_irq_off, movhi_sp_r_irq_on): New insn.
5315 * config/avr/avr.c (expand_prologue, expand_epilogue): Use
5316 movhi_sp_r_irq_off and movhi_sp_r_irq_on insns for writing to the
5317 stack pointer register.
5318 (output_movhi): Remove code for interrupt specific writing to the
5319 stack pointer register.
5321 2008-05-31 Richard Guenther <rguenther@suse.de>
5323 PR tree-optimization/34244
5324 * fold-const.c (tree_expr_nonnegative_warnv_p): Do not ask VRP.
5325 (tree_expr_nonzero_warnv_p): Likewise.
5326 * tree-vrp.c (vrp_expr_computes_nonnegative): Call
5327 ssa_name_nonnegative_p.
5328 (vrp_expr_computes_nonzero): Call ssa_name_nonzero_p.
5329 (extract_range_from_unary_expr): Use vrp_expr_computes_nonzero,
5330 not tree_expr_nonzero_warnv_p.
5332 PR tree-optimization/36262
5334 2007-11-29 Zdenek Dvorak <ook@ucw.cz>
5336 PR tree-optimization/34244
5337 * tree-vrp.c (adjust_range_with_scev): Clear scev cache.
5338 (record_numbers_of_iterations): New function.
5339 (execute_vrp): Cache the numbers of iterations of loops.
5340 * tree-scalar-evolution.c (scev_reset_except_niters):
5342 (scev_reset): Use scev_reset_except_niters.
5343 * tree-scalar-evolution.h (scev_reset_except_niters): Declare.
5345 2008-05-31 Bernd Schmidt <bernd.schmidt@analog.com>
5347 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
5348 __WORKAROUND_RETS when appropriate.
5350 2008-05-31 Uros Bizjak <ubizjak@gmail.com>
5352 * config/i386/i386.md (*fop_<mode>_comm_mixed): Macroize from
5353 *fop_sf_comm_mixed and *fop_df_comm_mixed insn patterns using MODEF
5355 (*fop_<mode>_comm_sse): Macroize from *fop_sf_comm_sse and
5356 *fop_df_comm_sse insn patterns using MODEF mode iterator.
5357 (*fop_<mode>_comm_i387): Macroize from *fop_sf_comm_i387 and
5358 *fop_df_comm_i387 insn patterns using MODEF mode iterator.
5359 (*fop_<mode>_1_mixed): Macroize from *fop_sf_1_mixed and
5360 *fop_df_1_mixed insn patterns using MODEF mode iterator.
5361 (*fop_<mode>_1_sse): Macroize from *fop_sf_1_sse and
5362 *fop_df_1_sse insn patterns using MODEF mode iterator.
5363 (*fop_<mode>_1_i387): Macroize from *fop_sf_1_i387 and
5364 *fop_df_1_i387 insn patterns using MODEF mode iterator.
5365 (*fop_<MODEF:mode>_2_i387): Macroize from *fop_sf_2<mode>_i387 and
5366 *fop_df_2<mode>_i387 insn patterns using MODEF mode iterator.
5367 (*fop_<MODEF:mode>_3_i387): Macroize from *fop_sf_3<mode>_i387 and
5368 *fop_df_3<mode>_i387 insn patterns using MODEF mode iterator.
5369 (*fop_xf_2_i387): Rename from *fop_xf_2<mode>_i387.
5370 (*fop_xf_3_i387): Rename from *fop_xf_3<mode>_i387.
5371 (*fop_xf_4_i387): Use <MODE> for mode attribute.
5372 (*fop_xf_5_i387): Ditto.
5373 (*fop_xf_6_i387): Ditto.
5375 2008-05-30 Richard Guenther <rguenther@suse.de>
5377 * builtins.c (build_string_literal): Avoid generating
5378 a non-gimple_val result.
5380 2008-05-30 DJ Delorie <dj@redhat.com>
5382 * exec-tool.in: Use an environment variable (private) instead of a
5383 file (shared) as a semaphore, so as to not break parallel builds.
5385 2008-05-30 Steven Bosscher <stevenb.gcc@gmail.com>
5387 * optabs.c (maybe_encapsulate_block): Remove.
5388 (emit_libcall_block): Adjust accordingly.
5389 * optabs.h (maybe_encapsulate_block): Remove prototype.
5391 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address):
5392 Don't use maybe_encapsulate_block.
5394 2008-05-30 Steven Bosscher <stevenb.gcc@gmail.com>
5396 * config/rs6000/rs6000.c (rs6000_legitimize_address,
5397 rs6000_legitimize_reload_address, rs6000_emit_move): Make sure an
5398 rtx is a SYMBOL_REF before calling get_pool_constant.
5400 2008-05-30 Eric Botcazou <ebotcazou@adacore.com>
5402 * fold-const.c (fold_unary) <CASE_CONVERT>: Add ??? comment.
5404 2008-05-30 Danny Smith <dannysmith@users.sourceforge.net>
5406 * incpath.c: Use HOST_LACKS_INODE_NUMBERS conditional
5407 rather than OS names to choose INO_T_EQ definition.
5408 (DIRS_EQ) [!INO_T_EQ]: Don't worry about case in comparison.
5409 (add_path) [!INO_T_EQ]: Use lrealpath to fill canonical_name field.
5411 2008-05-29 Daniel Franke <franke.daniel@gmail.com>
5414 * config/darwin-f.c: New.
5415 * config/t-darwin: Added rule to build darwin-f.o.
5416 * config.gcc: Defined new variable, fortran_target_objs.
5417 (*-*-darwin*): Set fortran_target_objs.
5418 * Makefile.in: Defined new variable FORTRAN_TARGET_OBJS.
5419 * configure.ac: Substitute fortran_target_objs, set FORTRAN_TARGET_OBJS.
5420 * configure: Regenerated.
5422 2008-05-29 H.J. Lu <hongjiu.lu@intel.com>
5425 * config/i386/i386.c (ix86_function_arg_boundary): Convert to
5426 canonical type if needed.
5428 2008-05-29 Eric Botcazou <ebotcazou@adacore.com>
5430 * tree-nested.c (check_for_nested_with_variably_modified): Fix typo.
5432 2008-05-29 Richard Guenther <rguenther@suse.de>
5434 PR tree-optimization/36343
5435 PR tree-optimization/36346
5436 PR tree-optimization/36347
5437 * tree-flow.h (clobber_what_p_points_to): Declare.
5438 * tree-ssa-structalias.c (set_uids_in_ptset): Whether the
5439 pointed-to variable is dereferenced is irrelevant to whether
5440 the pointer can access the pointed-to variable.
5441 (clobber_what_p_points_to): New function.
5442 * tree-ssa-alias.c (set_initial_properties): Use it.
5443 * tree-ssa.c (verify_flow_sensitive_alias_info): Adjust
5444 call clobber check for NMTs.
5446 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
5448 * value-prof.c (tree_ic_transform): Use HOST_WIDEST_INT_PRINT_DEC
5449 for printing gcov_type.
5451 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
5453 * tree-ssa-propagate.c (set_rhs): Preserve the histogram
5454 and the eh region information.
5455 * value-prof.c (gimple_move_stmt_histograms): New function.
5456 * value-prof.h (gimple_move_stmt_histograms): New function declaration.
5458 2008-05-28 Andreas Tobler <a.tobler@schweiz.org>
5460 * config/pa/pa.md: Remove extern frame_pointer_needed declaration.
5462 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
5464 * value-prof.c (tree_ic_transform): Print counts.
5465 * tree-profile.c (tree_gen_ic_func_profiler):
5466 Clear __gcov_indreict_call_callee variable to avoid misattribution
5469 2008-05-28 Rafael Espindola <espindola@google.com>
5471 * see.c (see_def_extension_not_merged): Use copy_rtx_if_shared to avoid
5474 2008-05-28 Richard Guenther <rguenther@suse.de>
5476 PR tree-optimization/36339
5477 * tree-ssa-alias.c (set_initial_properties): Move pt_anything
5478 and clobbering code out of the loop.
5480 2008-05-28 Andreas Krebbel <krebbel1@de.ibm.com>
5482 * config/s390/constraints.md ('b', 'C', 'D', 'e'): New constraint
5485 * config/s390/s390.c (s390_compare_and_branch_condition_mask,
5486 s390_contiguous_bitmask_p, s390_symref_operand_p,
5487 s390_check_symref_alignment, s390_reload_larl_operand,
5488 s390_reload_symref_address): New functions.
5489 (s390_branch_condition_mnemonic): Support compare and branch
5491 (s390_mem_constraint): Avoid symrefs to accepted by the 'T'
5492 and 'W' constraints.
5493 (s390_secondary_reload): Add secondary reloads for unaligned
5494 symbol refs or symbol refs to floating point or QI/TI mode
5496 (legitimate_address_p): Accept symbol references as addresses.
5497 (s390_expand_insv): Use rotate and insert selected bits
5498 instruction for insv when building for z10.
5499 (print_operand_address): Handle symbol ref addresses.
5500 (print_operand): Output modifier 'c' added for signed byte values.
5501 (s390_encode_section_info): Mark symbol refs with
5502 SYMBOL_FLAG_NOT_NATURALLY_ALIGNED if appropriate.
5504 * config/s390/s390.md (SIL,RRS,RIS): New instruction formats added.
5505 (length attribute): RRF, RRR have 4 byte length.
5506 (FPALL, INTALL): New mode iterators added.
5507 (*tstdi_sign, *cmpdi_ccs_sign, *cmpsi_ccs_sign,
5508 *cmp<mode>_ccs, *cmpdi_ccu_zero, *cmpdi_ccu, *cmpsi_ccu, *cmphi_ccu,
5509 *movdi_64, *movsi_zarch, *movhi, movmem<mode>, *movmem_short,
5510 *extendsidi2, *extendhidi2_extimm, *extendhisi2_extimm,
5511 *zero_extendsidi2, adddi3, *adddi3_31z, *adddi3_31, addsi3,
5512 *add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry2_cc,
5513 *add<mode>3_cc, *add<mode>3_imm_cc, *muldi3_sign, muldi3,
5514 *mulsi3_sign, mulsi3, mulsidi3): Patterns enhanced with z10
5516 (*cmphi_ccs_z10, *cmpdi_ccs_signhi_rl, *cmpsi_ccu_zerohi_rlsi,
5517 *cmp<GPR:mode>_ccu_zerohi_rldi, *cmp_and_br_signed_<mode>,
5518 *cmp_and_br_unsigned_<mode>, reload<INTALL:mode><P:mode>_tomem_z10,
5519 reload<INTALL:mode><P:mode>_toreg_z10,
5520 reload<FPALL:mode><P:mode>_tomem_z10,
5521 reload<FPALL:mode><P:mode>_toreg_z10,
5522 reload<P:mode>_larl_odd_addend_z10, *execute_rl, *insv<mode>_z10,
5523 *insv<mode>_z10_noshift, *insv<mode>_or_z10_noshift,
5524 *zero_extendhi<mode>2_z10, *cmp_and_trap_signed_int<mode>,
5525 *cmp_and_trap_unsigned_int<mode>, prefetch): New pattern or expander
5527 (movmem, clrmem, cmpmem): New splitters added.
5529 * config/s390/predicates.md (larl_operand): Use
5530 SYMBOL_REF_FLAGS (op) & SYMBOL_FLAG_ALIGN1 replaced with
5531 SYMBOL_REF_ALIGN1_P.
5532 (s390_signed_integer_comparison,
5533 s390_unsigned_integer_comparison): New predicates.
5535 * config/s390/s390-protos.h (s390_check_symref_alignment,
5536 s390_contiguous_bitmask_p, s390_reload_larl_operand,
5537 s390_reload_symref_address,
5538 s390_compare_and_branch_condition_mask): Prototypes added.
5540 * config/s390/s390.h (TARGET_MEM_CONSTRAINT,
5541 SYMBOL_REF_ALIGN1_P, SYMBOL_FLAG_NOT_NATURALLY_ALIGNED,
5542 SYMBOL_REF_NOT_NATURALLY_ALIGNED_P): Macro definition added.
5544 2008-05-28 Andreas Krebbel <krebbel1@de.ibm.com>
5546 * config/s390/s390.c (z10_cost): New cost function for z10.
5547 (s390_handle_arch_option, override_options): Support -march=z10 switch.
5548 (s390_issue_rate): Adjust issue rate for z10.
5549 * config/s390/s390.h (processor_type): Add PROCESSOR_2097_Z10.
5550 (processor_flags): Add PF_Z10.
5551 (TARGET_CPU_Z10, TARGET_Z10): New macro definitions.
5552 * config/s390/s390.md (cpu, cpu_facility attributes): Add z10.
5553 * gcc/config.gcc: Add z10.
5555 2008-05-28 Richard Guenther <rguenther@suse.de>
5557 PR tree-optimization/36291
5558 * tree-flow. h (struct gimple_df): Remove var_anns member.
5559 * tree-flow-inline.h (gimple_var_anns): Remove.
5560 (var_ann): Simplify.
5561 * tree-dfa.c (create_var_ann): Simplify.
5562 (remove_referenced_var): Clear alias info from var_anns of globals.
5563 * tree-ssa.c (init_tree_ssa): Do not allocate var_anns.
5564 (delete_tree_ssa): Clear alias info from var_anns of globals.
5565 Do not free var_anns.
5566 (var_ann_eq): Remove.
5567 (var_ann_hash): Likewise.
5569 2008-05-28 Mark Shinwell <shinwell@codesourcery.com>
5571 * config/mips/mips.c (mips_cpu_info_table): Add loongson2e
5572 and loongson2f entries.
5573 (mips_rtx_cost_data): Add entries for Loongson-2E/2F.
5574 * config/mips/mips.h (processor_type): Add Loongson-2E
5575 and Loongson-2F entries.
5576 (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF): New.
5577 (MIPS_ISA_LEVEL_SPEC): Handle Loongson-2E/2F.
5578 * config/mips/mips.md (define_attr cpu): Add loongson2e and loongson2f.
5579 * doc/invoke.texi (MIPS Options): Document loongson2e
5580 and loongson2f processor names.
5582 2008-05-27 H.J. Lu <hongjiu.lu@intel.com>
5586 * config/i386/i386.c (ix86_function_arg_boundary): Use
5587 alignment of canonical type.
5588 (ix86_expand_vector_move): Check unaligned memory access for
5591 2008-05-27 H.J. Lu <hongjiu.lu@intel.com>
5593 * dwarf2out.c (current_fde): Change return type to dw_fde_ref.
5594 Moved to the front of file.
5596 2008-05-27 Xuepeng Guo <xuepeng.guo@intel.com>
5597 H.J. Lu <hongjiu.lu@intel.com>
5599 * dwarf2out.c (current_fde): New.
5601 (lookup_cfa:): Likewise.
5602 (dwarf2out_end_epilogue): Likewise.
5603 (dwarf2out_note_section_used): Likewise.
5605 2008-05-27 Michael Matz <matz@suse.de>
5608 * c.opt (Wenum-compare): New warning option.
5609 * doc/invoke.texi (Warning Options): Document -Wenum-compare.
5611 2008-05-27 Michael Matz <matz@suse.de>
5614 * tree-gimple.c (is_gimple_mem_rhs): Remove work-around for
5616 * tree-tailcall.c (find_tail_calls): Don't mark calls storing
5617 into memory as tail calls.
5619 2008-05-27 Richard Guenther <rguenther@suse.de>
5621 PR tree-optimization/36339
5622 * tree-ssa-alias.c (set_initial_properties): Escaped pt_anything
5623 pointers cause all addressable variables to be call clobbered.
5625 2008-05-27 Richard Guenther <rguenther@suse.de>
5627 PR tree-optimization/36245
5628 * tree-ssa-address.c (add_to_parts): Deal with non-pointer bases.
5630 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
5632 * config/s390/s390.md: Replace all occurences of the 'm'
5633 constraint with 'RT'.
5635 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
5637 * config/s390/s390.md ("cpu_facility", "enabled"): Attribute
5639 ("*movdi_64dfp", "*movdi_64extimm", "*movdi_64"): Merged into
5641 ("*anddi3_extimm", "*anddi3"): Merged into "*anddi3".
5642 ("*iordi3_extimm", "*iordi3"): Merged into "*iordi3".
5643 ("*xordi3_extimm", "*xordi3"): Merged into "*xordi3".
5645 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
5647 * reload.c: (find_reloads): Skip alternatives according to the
5648 "enabled" attribute. Constify the constraint variable.
5649 * recog.c (get_attr_enabled): Add default implementation.
5650 (extract_insn): Set the alternative_enabled_p array
5651 in the recog_data struct.
5652 (preprocess_constraints, constrain_operands): Skip
5653 alternatives according to the "enabled" attribute
5654 * recog.h (struct recog_data): New field alternative_enabled_p.
5655 (skip_alternative): New inline function.
5656 * regclass.c: (record_operand_costs): Check the "enabled" attribute.
5657 (record_reg_classes): Skip alternative according to the
5658 "enabled" attribute.
5660 * doc/md.texi: Add documention for the "enabled" attribute.
5662 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
5664 * defaults.h (TARGET_MEM_CONSTRAINT): New target macro added.
5665 * postreload.c (reload_cse_simplify_operands): Replace 'm'
5666 constraint with TARGET_MEM_CONSTRAINT.
5667 * recog.c (asm_operand_ok, preprocess_constraints,
5668 constrain_operands): Likewise.
5669 * regclass.c (record_reg_classes): Likewise.
5670 * reload.c (find_reloads, alternative_allows_const_pool_ref): Likewise.
5671 * reload1.c (maybe_fix_stack_asms): Likewise.
5672 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
5673 * recog.h: Adjust comment.
5674 * genpreds.c (generic_constraint_letters): Remove 'm' constraint.
5675 * genoutput.c (note_constraint): Don't emit error for 'm' constraint.
5676 * doc/md.texi: Add a note to description of 'm' constraint.
5677 * doc/tm.texi: Document the new TARGET_MEM_CONSTRAINT macro.
5679 2008-05-27 Eric Botcazou <ebotcazou@adacore.com>
5681 * tree-sra.c (sra_type_can_be_decomposed_p) <RECORD_TYPE>: Make sure
5682 that the bitfield is of integral type before testing its precision.
5684 2008-05-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
5685 Sa Liu <saliu@de.ibm.com>
5687 * config/spu/spu.c (spu_init_libfuncs): Add __multi3, __divti3,
5688 __modti3, __udivti3, __umodti3 and __udivmodti4.
5689 * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add files
5690 that implement TImode mul and div functions.
5691 * config/spu/multi3.c: New. Implement __multi3.
5692 * config/spu/divmodti4.c: New. Implement _udivmodti4 and others.
5693 * testsuite/gcc.target/spu/muldivti3.c: New. Test TImode mul and div
5696 2008-05-26 Steven Bosscher <stevenb.gcc@gmail.com>
5698 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Generate
5699 new tls_gd_* and tls_ld_* insns instead of an insn sequence.
5700 * config/rs6000/rs6000.md (TLSmode, tls_abi_suffix, tls_insn_suffix,
5701 tls_sysv_suffix): New mode and mode attribute iterators.
5702 (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64): Remove.
5703 (lts_gd_aix*, tls_gd_sysv*, tls_ld_aix*, tls_ld_sysv*): New patterns.
5704 (tls_dtprel_*, tls_dtprel_ha_*, tls_dtprel_lo_*, tls_got_dtprel_*,
5705 tls_tprel_*, tls_tprel_ha_*, tls_tprel_lo_*, tls_got_tprel_*,
5706 tls_tls_*): Merge 32 bit and 64 bit variants using aforementioned
5709 2008-05-26 Eric Botcazou <ebotcazou@adacore.com>
5711 PR tree-optimization/36329
5712 * tree.h (CALL_CANNOT_INLINE_P): Add access check.
5713 * tree-gimple.h (CALL_STMT_CANNOT_INLINE_P): New macro.
5714 * cgraphbuild.c (initialize_inline_failed): Use the latter
5715 macro in lieu of the former.
5716 * ipa-inline.c (cgraph_mark_inline): Likewise.
5717 (cgraph_decide_inlining_of_small_function): Likewise.
5718 (cgraph_decide_inlining): Likewise.
5719 (cgraph_decide_inlining_incrementally): Likewise.
5721 2008-05-26 Tristan Gingold <gingold@adacore.com>
5722 Anatoly Sokolov <aesok@post.ru>
5724 * config/avr/avr.md ("call_prologue_saves"): Use hi8(gs())/lo8(gs())
5725 instead of pm_lo8/pm_hi8 to makes this call working on avr6.
5726 * config/avr/avr.c (expand_prologue): Tune "call_prologue"
5727 optimization for 'avr6' architecture.
5729 2008-05-26 Andy Hutchinson <hutchinsonandy@aim.com>
5732 * config/avr/avr.md (*addhi3_zero_extend2): Remove.
5734 2008-05-26 Richard Guenther <rguenther@suse.de>
5736 * tree-ssa-sccvn.c (expr_has_constants): Declare.
5737 (visit_reference_op_load): Initialize VN_INFO->has_constants properly.
5739 2008-05-26 H.J. Lu <hongjiu.lu@intel.com>
5742 * caller-save.c (insert_restore): Verify alignment of spill space.
5743 (insert_save): Likewise.
5744 * cfgexpand.c (LOCAL_ALIGNMENT): Removed.
5745 * defaults.h (LOCAL_ALIGNMENT): New. Provide default.
5746 (STACK_SLOT_ALIGNMENT): Likewise.
5747 * function.c (LOCAL_ALIGNMENT): Removed.
5748 (get_stack_local_alignment): New.
5749 (assign_stack_local): Use it. Set alignment on stack slot.
5750 (assign_stack_temp_for_type): Use get_stack_local_alignment.
5751 * config/i386/i386.h (LOCAL_ALIGNMENT): Updated.
5752 (STACK_SLOT_ALIGNMENT): New.
5753 * config/i386/i386.c (ix86_local_alignment): Handle caller-save
5754 stack slot in XFmode.
5756 * doc/tm.texi (STACK_SLOT_ALIGNMENT): New.
5758 2008-05-26 Kai Tietz <kai.tietz@onevision.com>
5761 * config/i386/i386.md (allocate_stack_worker_64): Make sure
5762 argument operand in rax isn't removed.
5764 2008-05-26 Richard Guenther <rguenther@suse.de>
5767 * fold-const.c (extract_muldiv_1): Use TYPE_OVERFLOW_WRAPS,
5768 not TYPE_UNSIGNED. Use TYPE_PRECISION instead of GET_MODE_SIZE.
5770 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
5773 * c-cppbuiltin.c (define__GNUC__): Re-add definition of __GNUG__.
5775 2008-05-26 Dominique Dhumieres <dominiq@lps.ens.fr>
5777 * config/darwin-c.c: Include "incpath.h" instead of "c-incpath.h".
5778 * config/t-darwin: Use "incpath.h" instead of "c-incpath.h".
5780 2008-05-25 Eric Botcazou <ebotcazou@adacore.com>
5782 * tree-nested.c (convert_tramp_reference) <ADDR_EXPR>: Do not
5783 build a trampoline if we don't want one.
5784 * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Do not
5785 return zero for nested functions if we don't want a trampoline.
5787 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
5789 * doc/invoke.texi: Added f77, f77-cpp-input to list of file types.
5791 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
5794 * c.opt: Removed undocumented option '-lang-fortran'.
5795 * c-common.h: Removed global variable 'lang_fortran'.
5796 * c-opts.c (c_common_handle_option): Removed code to handle
5797 option '-lang-fortran'. Updated includes.
5798 * c-cppbuiltin.c (c_cpp_builtins): Removed conditional
5799 definition of '__GFORTRAN__'.
5800 (define__GNUC__): Reimplemented to use BASEVER and
5801 cpp_define_formatted.
5802 (builtin_define_with_value_n): Removed.
5803 * c-incpath.h: Renamed to ...
5804 * incpath.h: ... this.
5805 * c-incpath.c: Renamed to ...
5806 * incpath.c: ... this. Updated includes.
5807 * fix-header.c: Updated includes.
5808 * Makefile.in: Replaced c-incpath.[ch] by incpath.[ch].
5809 (c-cppbuiltin.o): Added dependency on and definition of BASEVER.
5810 (OBJ-archive): Added cppdefault.o, incpath.o and prefix.o.
5812 2008-05-25 Eric Botcazou <ebotcazou@adacore.com>
5814 * tree.h: Update the table of flags used on tree nodes.
5815 (TREE_NO_TRAMPOLINE): New accessor for static_flag.
5816 (SAVE_EXPR_RESOLVED_P): Use automatically-built access check.
5817 (FORCED_LABEL): Add access check.
5818 (CALL_EXPR_RETURN_SLOT_OPT): Likewise.
5819 (ASM_INPUT_P): Likewise.
5820 (ASM_VOLATILE_P): Likewise.
5821 (EH_FILTER_MUST_NOT_THROW): Access static_flag directly.
5822 (OMP_SECTION_LAST): Access private_flag directly.
5823 (OMP_RETURN_NOWAIT): Likewise.
5824 (OMP_PARALLEL_COMBINED): Likewise.
5825 (OMP_CLAUSE_PRIVATE_DEBUG): Access public_flag directly.
5826 (OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE): Likewise.
5827 * tree-ssa-propagate.c (STMT_IN_SSA_EDGE_WORKLIST): Access
5828 deprecated_flag directly.
5830 2008-05-25 H.J. Lu <hongjiu.lu@intel.com>
5832 * final.c (frame_pointer_needed): Removed.
5833 * flags.h (frame_pointer_needed): Likewise.
5835 * function.h (rtl_data): Add frame_pointer_needed.
5836 (frame_pointer_needed): New.
5838 2008-05-25 Arthur Loiret <arthur.loiret@u-psud.fr>
5840 * config.gcc (sh2[lbe]*-*-linux*): Allow target.
5842 2008-05-25 Steven Bosscher <stevenb.gcc@gmail.com>
5844 * gcse.c (hash_scan_set): Do not pick up a REG_EQUAL value if
5847 2008-05-25 Alan Modra <amodra@bigpond.net.au>
5849 * c-common.c (strip_array_types): Move function to..
5851 (get_inner_array_type): Delete.
5852 * c-common.h (strip_array_types): Move declaration to..
5854 (get_inner_array_type): Delete.
5855 * config/i386/i386.c (x86_field_alignment): Use strip_array_types.
5856 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
5857 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
5858 * config/pa/pa.c (emit_move_sequence): Likewise.
5860 2008-05-24 H.J. Lu <hongjiu.lu@intel.com>
5862 * config/i386/i386.md (*sse_prologue_save_insn): Set length
5865 2008-05-24 Andy Hutchinson <hutchinsonandy@aim.com>
5867 * function.c: Include target hook for nonlocal_goto frame value.
5869 2008-05-24 Richard Guenther <rguenther@suse.de>
5871 * tree-dfa.c (refs_may_alias_p): Re-instantiate case that a scalar
5872 variable can be only accessed through a pointer or a union.
5874 2008-05-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5876 * builtins.c (fold_builtin_fpclassify): Fix spelling of FP_INFINITE.
5877 * doc/extend.texi: Likewise.
5879 2008-05-23 DJ Delorie <dj@redhat.com>
5881 * config/m32c/jump.md (untyped_call): Add.
5883 * config/m32c/m32c.c (m32c_return_addr_rtx): Change pointer type
5885 (m32c_address_cost): Detail costs for indirect offsets.
5887 2008-05-23 Rafael Espindola <espindola@google.com>
5889 * see.c (see_get_extension_data): Don't use SUBREG_REG to test
5890 if a node is a SUBREG.
5891 (see_analyze_one_def): Don't use SUBREG_REG to test if a node
5894 2008-05-23 Paul Brook <paul@codesourcery.com>
5895 Carlos O'Donell <carlos@codesourcery.com>
5897 * doc/extend.texi: Clarify use of __attribute__((naked)).
5898 * doc/tm.texi: Document TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
5899 * target.h (gcc_target): Add allocate_stack_slots_for_args.
5900 * function.c (use_register_for_decl): Use
5901 targetm.calls.allocate_stack_slots_for_args.
5902 * target-def.h (TARGET_CALLS): Add TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
5903 * config/arm/arm.c (arm_allocate_stack_slots_for_args): New function.
5904 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
5906 2008-05-23 Eric Botcazou <ebotcazou@adacore.com>
5908 * expr.c (highest_pow2_factor) <BIT_AND_EXPR>: New case.
5910 2008-05-23 Steven Munroe <sjmunroe@us.ibm.com>
5912 * config/rs6000/darwin-ldouble.c (fmsub): Eliminate the full
5913 PACK/UNPACK between FP_SUB_Q and FD_TRUNC so that the result
5914 is only rounded once.
5916 2008-05-23 Richard Guenther <rguenther@suse.de>
5918 * tree-ssa-operands.c (mark_difference_for_renaming): Use bitmap_xor.
5920 2008-05-23 Uros Bizjak <ubizjak@gmail.com>
5921 Jakub Jelinek <jakub@redhat.com>
5924 * configure.ac: Handle --enable-cld.
5925 * configure: Regenerated.
5926 * config.gcc: Add USE_IX86_CLD to tm_defines for x86 targets.
5927 * config/i386/i386.h (struct machine_function): Add needs_cld field.
5928 (ix86_current_function_needs_cld): New define.
5929 * config/i386/i386.md (UNSPEC_CLD): New unspec volatile constant.
5930 (cld): New isns pattern.
5931 (strmov_singleop, rep_mov, strset_singleop, rep_stos, cmpstrnqi_nz_1,
5932 cmpstrnqi_1, strlenqi_1): Set ix86_current_function_needs_cld flag.
5933 * config/i386/i386.opt (mcld): New option.
5934 * config/i386/i386.c (ix86_expand_prologue): Emit cld insn if
5935 TARGET_CLD and ix86_current_function_needs_cld.
5936 (override_options): Use -mcld by default for 32-bit code if
5939 * doc/install.texi (Options specification): Document --enable-cld.
5940 * doc/invoke.texi (Machine Dependent Options)
5941 [i386 and x86-64 Options]: Add -mcld option.
5942 (Intel 386 and AMD x86-64 Options): Document -mcld option.
5944 2008-05-23 Kai Tietz <kai.tietz@onevison.com>
5945 * config/i386/i386.c (return_in_memory_32): Add ATTRIBUTE_UNUSED.
5946 (return_in_memory_64): Likewise.
5947 (return_in_memory_ms_64): Likewise.
5949 2008-05-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5951 * builtin-types.def (BT_FN_INT_INT_INT_INT_INT_INT_VAR): New.
5952 * builtins.c (fold_builtin_fpclassify): New.
5953 (fold_builtin_varargs): Handle BUILT_IN_FPCLASSIFY.
5954 * builtins.def (BUILT_IN_FPCLASSIFY): New.
5955 * c-common.c (handle_type_generic_attribute): Adjust to accept
5956 fixed arguments before an elipsis.
5957 (check_builtin_function_arguments): Handle BUILT_IN_FPCLASSIFY.
5958 * doc/extend.texi: Document __builtin_fpclassify.
5960 2008-05-22 Aldy Hernandez <aldyh@redhat.com>
5962 * omp-low.c (gate_expand_omp_ssa): Remove.
5963 (pass_expand_omp_ssa): Remove.
5964 (gate_expand_omp): Do not check for flag_openmp_ssa.
5965 * common.opt (-fopenmp-ssa): Remove.
5966 * passes.c (init_optimization_passes): Remove pass_expand_omp_ssa.
5968 2008-05-22 Kaz Kojima <kkojima@gcc.gnu.org>
5970 * config/sh/sh.opt (mfixed-range): New option.
5971 * config/sh/sh-protos.h (sh_fix_range): Declare.
5972 * config/sh/sh.c (sh_fix_range): New function.
5973 * config/sh/sh.h (sh_fixed_range_str): Declare.
5974 (OVERRIDE_OPTIONS): Call sh_fix_range if sh_fixed_range_str
5976 * doc/invoke.texi (SH Options): Document -mfixed-range.
5978 2008-05-22 Kai Tietz <kai.tietz@onevision.com>
5980 * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Undefine
5981 it before the redeclaration.
5983 2008-05-22 Anatoly Sokolov <aesok@post.ru>
5985 * config/avr/avr.c (get_sequence_length): Add new function.
5986 (expand_prologue, expand_epilogue): Remove duplicate code.
5988 2008-05-22 Rafael Espindola <espindola@google.com>
5990 * see.c (see_pre_insert_extensions): Use copy_rtx to avoid invalid rtx
5993 2008-05-22 H.J. Lu <hongjiu.lu@intel.com>
5995 * defaults.h (UNITS_PER_SIMD_WORD): Add scalar mode as argument.
5996 * doc/tm.texi (UNITS_PER_SIMD_WORD): Likewise.
5998 * tree-vect-analyze.c (vect_compute_data_ref_alignment): Replace
5999 UNITS_PER_SIMD_WORD with GET_MODE_SIZE (TYPE_MODE (vectype)).
6000 (vect_update_misalignment_for_peel): Likewise.
6001 (vector_alignment_reachable_p): Likewise.
6002 * tree-vect-transform.c (vectorizable_load): Likewise.
6003 * tree-vectorizer.c (vect_supportable_dr_alignment): Likewise.
6004 (get_vectype_for_scalar_type): Pass mode of scalar_type
6005 to UNITS_PER_SIMD_WORD.
6007 * config/arm/arm.h (UNITS_PER_SIMD_WORD): Updated.
6008 * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
6009 * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
6010 * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
6011 * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
6013 2008-05-22 Ira Rosen <irar@il.ibm.com>
6015 PR tree-optimization/36293
6016 * tree-vect-transform.c (vect_transform_strided_load): Don't check
6017 if the first load must be skipped because of a gap.
6019 2008-05-22 Richard Guenther <rguenther@suse.de>
6021 * tree-dfa.c (refs_may_alias_p): Exit early if possible. Handle
6022 more cases of offset disambiguation that is possible if
6023 strict-aliasing rules apply.
6024 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use refs_may_alias_p
6025 for basic offset and type-based disambiguation.
6027 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
6029 * config/i386/i386.c (ix86_expand_vector_init_one_var): Use
6030 ix86_expand_vector_set on V16QImode for SSE4.1.
6032 2008-05-21 Tom Tromey <tromey@redhat.com>
6034 * c.opt (Wimport): Mark as undocumented.
6035 * doc/invoke.texi (Option Summary): Don't mention -Wimport or
6037 (Warning Options): Likewise.
6038 * doc/cppopts.texi: Don't mention -Wimport.
6040 2008-05-21 Sebastian Pop <sebastian.pop@amd.com>
6042 PR tree-optimization/36287
6043 PR tree-optimization/36286
6044 * lambda-code.c (build_access_matrix): Do not use the loop->num
6045 for computing the number of induction variables: use the loop depth
6048 2008-05-21 Kai Tietz <kai.tietz@onevision.com>
6051 * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Honor
6052 option -f(no-)leading-underscore.
6054 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
6056 * config/i386/i386.c (ix86_expand_vector_init_general): Use
6057 GET_MODE_NUNITS (mode).
6059 2008-05-21 Peter Bergner <bergner@vnet.ibm.com>
6061 * doc/invoke.texi: Add cpu_type's 464 and 464fp.
6062 (-mmulhw): Add 464 to description.
6063 (-mdlmzb): Likewise.
6064 * config.gcc: Handle --with-cpu=464 and --with-cpu=464fp.
6065 * config/rs6000/rs6000.c (processor_target_table): Add 464 and
6067 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 464 and 464fp support.
6068 * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=464.
6069 * config/rs6000/rs6000.md: Update comments for 464.
6071 2008-05-21 Janis Johnson <janis187@us.ibm.com>
6073 * doc/sourcebuild.texi (Test Directives): Add dg-xfail-run-if.
6075 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
6077 * config/i386/sse.md (vec_extractv4sf): Removed.
6078 (vec_extractv2df): Likewise.
6079 (vec_extractv2di): Likewise.
6080 (vec_extractv4si): Likewise.
6081 (vec_extractv8hi): Likewise.
6082 (vec_extractv16qi): Likewise.
6083 (vec_extract<mode>): New.
6085 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
6087 * config/i386/sse.md (vec_setv4sf): Removed.
6088 (vec_setv2df): Likewise.
6089 (vec_setv2di): Likewise.
6090 (vec_setv4si): Likewise.
6091 (vec_setv8hi): Likewise.
6092 (vec_setv16qi): Likewise.
6093 (vec_set<mode>): New.
6095 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
6097 * config/i386/i386.c (ix86_expand_vector_init_general): Remove
6098 goto for vec_concat and vec_interleave.
6100 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
6102 * config/i386/sse.md (vec_initv4sf): Removed.
6103 (vec_initv2df): Likewise.
6104 (vec_initv2di): Likewise.
6105 (vec_initv4si): Likewise.
6106 (vec_initv8hi): Likewise.
6107 (vec_initv16qi): Likewise.
6108 (vec_init<mode>): New.
6110 2008-05-21 Joseph Myers <joseph@codesourcery.com>
6112 * collect2.c (find_a_file): Use IS_ABSOLUTE_PATH.
6114 2008-05-21 Tom Tromey <tromey@redhat.com>
6116 * ggc-zone.c (lookup_page_table_if_allocated): New function.
6117 (zone_find_object_offset): Likewise.
6118 (gt_ggc_m_S): Likewise.
6119 (highest_bit): Likewise.
6120 * ggc-page.c (gt_ggc_m_S): New function.
6121 * stringpool.c (string_stack): Remove.
6122 (init_stringpool): Update.
6123 (ggc_alloc_string): Use ggc_alloc.
6124 (maybe_delete_ident): New function.
6125 (ggc_purge_stringpool): Likewise.
6126 (gt_ggc_m_S): Remove.
6127 * ggc-common.c (ggc_protect_identifiers): New global.
6128 (ggc_mark_roots): Call ggc_purge_stringpool. Use
6129 ggc_protect_identifiers.
6130 * ggc.h (ggc_protect_identifiers): Declare.
6131 (gt_ggc_m_S): Update.
6132 (ggc_purge_stringpool): Declare.
6133 * toplev.c (compile_file): Set and reset ggc_protect_identifiers.
6134 * gengtype.c (write_types_process_field) <TYPE_STRING>: Remove
6136 (write_root): Cast gt_ggc_m_S to gt_pointer_walker.
6138 2008-05-21 David S. Miller <davem@davemloft.net>
6140 * config.gcc (sparc-*-linux*): Always include sparc/t-linux in
6143 2008-05-21 Eric Botcazou <ebotcazou@adacore.com>
6145 * cfgexpand.c (tree_expand_cfg): Zap the EH throw statement table
6148 2008-05-20 David Daney <ddaney@avtrex.com>
6150 * config/mips/mips.md (UNSPEC_SYNC_NEW_OP_12,
6151 UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE_12): New define_constants.
6152 (UNSPEC_SYNC_EXCHANGE, UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
6153 UNSPEC_UPDATE_GOT_VERSION): Renumber.
6154 (optab, insn): Add 'plus' and 'minus' to define_code_attr.
6155 (atomic_hiqi_op): New define_code_iterator.
6156 (sync_compare_and_swap<mode>): Call mips_expand_atomic_qihi instead of
6157 mips_expand_compare_and_swap_12.
6158 (compare_and_swap_12): Use MIPS_COMPARE_AND_SWAP_12 instead of
6159 MIPS_COMPARE_AND_SWAP_12_0. Pass argument to MIPS_COMPARE_AND_SWAP_12.
6160 (sync_<optab><mode>, sync_old_<optab><mode>,
6161 sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
6162 sync_new_nand<mode>): New define_expands for HI and QI mode operands.
6163 (sync_<optab>_12, sync_old_<optab>_12, sync_new_<optab>_12,
6164 sync_nand_12, sync_old_nand_12, sync_new_nand_12): New insns.
6165 (sync_lock_test_and_set<mode>): New define_expand for HI and QI modes.
6166 (test_and_set_12): New insn.
6167 (sync_old_add<mode>, sync_new_add<mode>, sync_old_<optab><mode>,
6168 sync_new_<optab><mode>, sync_old_nand<mode>,
6169 sync_new_nand<mode>, sync_lock_test_and_set<mode>): Add early
6170 clobber to operand 0 for SI and DI mode insns.
6171 * config/mips/mips-protos.h (mips_gen_fn_6, mips_gen_fn_5,
6172 mips_gen_fn_4): New typedefs.
6173 (mips_gen_fn_ptrs): Define new union type.
6174 (mips_expand_compare_and_swap_12): Remove declaration.
6175 (mips_expand_atomic_qihi): Declare function.
6176 * config/mips/mips.c (mips_expand_compare_and_swap_12): Rename to...
6177 (mips_expand_atomic_qihi): ... this. Use new generator function
6179 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): Add OPS parameter.
6180 (MIPS_COMPARE_AND_SWAP_12_0): Delete macro.
6181 (MIPS_COMPARE_AND_SWAP_12_ZERO_OP, MIPS_COMPARE_AND_SWAP_12_NONZERO_OP,
6182 MIPS_SYNC_OP_12, MIPS_SYNC_OP_12_NOT_NOP,
6183 MIPS_SYNC_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12,
6184 MIPS_SYNC_OLD_OP_12_NOT_NOP, MIPS_SYNC_OLD_OP_12_NOT_NOP_REG,
6185 MIPS_SYNC_OLD_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12_NOT_NOT_REG,
6186 MIPS_SYNC_NEW_OP_12, MIPS_SYNC_NEW_OP_12_NOT_NOP,
6187 MIPS_SYNC_NEW_OP_12_NOT_NOT, MIPS_SYNC_EXCHANGE_12,
6188 MIPS_SYNC_EXCHANGE_12_ZERO_OP, MIPS_SYNC_EXCHANGE_12_NONZERO_OP):
6191 2008-05-20 H.J. Lu <hongjiu.lu@intel.com>
6193 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Add
6196 2008-05-20 Anatoly Sokolov <aesok@post.ru>
6198 * config/avr/avr.h (machine_function): Add 'is_OS_main' field.
6199 * config/avr/avr.c (avr_OS_main_function_p): Add new function.
6200 (avr_attribute_table): Add 'OS_main' function attribute.
6201 (avr_regs_to_save, expand_prologue, expand_epilogue): Handle
6202 functions with 'OS_main' attribute.
6204 2008-05-20 Richard Guenther <rguenther@suse.de>
6206 PR tree-optimization/35204
6207 * tree-ssa-sccvn.c (extract_and_process_scc_for_name): New
6208 helper, split out from ...
6209 (DFS): ... here. Make the DFS walk non-recursive.
6211 2008-05-20 Sebastian Pop <sebastian.pop@amd.com>
6212 Jan Sjodin <jan.sjodin@amd.com>
6214 PR tree-optimization/36181
6215 * tree-parloops.c (loop_has_vector_phi_nodes): New.
6216 (parallelize_loops): Don't parallelize when the loop has vector
6219 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
6220 Sebastian Pop <sebastian.pop@amd.com>
6222 * tree-loop-linear.c (gather_interchange_stats): Look in the access
6223 matrix, and never look at the tree representation of the memory
6225 (linear_transform_loops): Computes parameters and access matrices.
6226 * tree-data-ref.c (compute_data_dependences_for_loop): Returns false
6228 (access_matrix_get_index_for_parameter): New.
6229 * tree-data-ref.h (struct access_matrix): New.
6230 (AM_LOOP_NEST_NUM, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
6231 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
6232 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT,
6233 am_vector_index_for_loop): New.
6234 (struct data_reference): Add field access_matrix.
6235 (DR_ACCESS_MATRIX): New.
6236 (compute_data_dependences_for_loop): Update declaration.
6237 (lambda_collect_parameters, lambda_compute_access_matrices): Declared.
6238 * lambda.h (lambda_vector_vec_p): Declared.
6239 * lambda-code.c: Depend on pointer-set.h.
6240 (lambda_collect_parameters_from_af, lambda_collect_parameters,
6241 av_for_af_base, av_for_af, build_access_matrix,
6242 lambda_compute_access_matrices): New.
6243 * Makefile.in (lambda-code.o): Depend on pointer-set.h.
6245 2008-05-20 Joseph Myers <joseph@codesourcery.com>
6247 * doc/install.texi2html: Generate gcc-vers.texi in $DESTDIR not
6250 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
6251 Sebastian Pop <sebastian.pop@amd.com>
6253 PR tree-optimization/36206
6254 * tree-scalar-evolution.c: Remove enum INSERT_SUPERLOOP_CHRECS,
6256 (instantiate_scev_1): Rename flags to fold_conversions.
6257 Do not check for INSERT_SUPERLOOP_CHRECS, keep SSA_NAMEs defined
6258 outeside instantiation_loop.
6259 * tree-chrec.h (evolution_function_is_affine_in_loop): New.
6260 (evolution_function_is_affine_or_constant_p): Removed.
6261 * tree-data-ref.c (dr_analyze_indices): Replace resolve_mixers with
6263 (analyze_siv_subscript): Pass in the loop nest number.
6264 Call evolution_function_is_affine_in_loop instead of
6265 evolution_function_is_affine_p.
6266 (analyze_overlapping_iterations): Pass in the loop nest number.
6268 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
6269 Sebastian Pop <sebastian.pop@amd.com>
6271 PR tree-optimization/36206
6272 * tree-chrec.h (chrec_fold_op): New.
6273 * tree-data-ref.c (initialize_matrix_A): Traverse NOP_EXPR, PLUS_EXPR,
6276 2008-05-20 Nathan Sidwell <nathan@codesourcery.com>
6278 * c-incpath.c (INO_T_EQ): Do not define on non-inode systems.
6280 (remove_duplicates): Do not set inode on non-inode systems.
6283 2008-05-20 Sandra Loosemore <sandra@codesourcery.com>
6285 * config.gcc (tm_file): Update comments about relative pathnames.
6287 2008-05-20 Richard Guenther <rguenther@suse.de>
6289 * tree-ssa-reassoc.c (fini_reassoc): Use the statistics infrastructure.
6290 * tree-ssa-sccvn.c (process_scc): Likewise.
6291 * tree-ssa-sink.c (execute_sink_code): Likewise.
6292 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
6293 * tree-vrp.c (process_assert_insertions): Likewise.
6294 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
6295 (perform_tree_ssa_dce): Likewise.
6296 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
6297 (dump_dominator_optimization_stats): Likewise.
6298 * tree-vectorizer.c (vectorize_loops): Likewise.
6300 2008-05-20 Richard Guenther <rguenther@suse.de>
6302 * tree-vn.c (vn_lookup_with_vuses): Do not use the alias oracle.
6304 2008-05-20 Kai Tietz <kai.tietz@onevision.com>
6306 * config/i386/i386-protos.h (ix86_return_in_memory): Removed.
6307 (ix86_i386elf_return_in_memory): Likewise.
6308 (ix86_i386interix_return_in_memory): Likewise.
6309 * config/i386/i386-interix.h (TARGET_RETURN_IN_MEMORY): Removed.
6310 (SUBTARGET_RETURN_IN_MEMORY): New.
6311 * config/i386/i386elf.h: Likewise.
6312 * config/i386/ptx4-i.h: Likewise.
6313 * config/i386/sol2-10.h: Likewise.
6314 * config/i386/sysv4.h: Likewise.
6315 * config/i386/vx-common.h: Likewise.
6316 * config/i386/i386.h (TARGET_RETURN_IN_MEMORY): Removed.
6317 * config/i386/i386.c (ix86_return_in_memory): Made static and
6318 make use of optional SUBTARGET_RETURN_IN_MEMORY macro.
6319 (ix86_i386elf_return_in_memory): Removed.
6320 (ix86_i386interix_return_in_memory): Removed.
6321 (TARGET_RETURN_IN_MEMORY): Declared within i386.c only.
6322 * target-def.h (TARGET_RETURN_IN_MEMORY): Remove protection #ifdef.
6324 2008-05-20 Alexandre Oliva <aoliva@redhat.com>
6326 * cselib.c (cselib_record_sets): Use correct mode for IF_THEN_ELSE.
6328 2008-05-19 Xinliang David Li <davidxl@google.com>
6330 * tree-ssa-dce.c: Revert patches of 2008-05-17 and 2008-05-18.
6332 * common.opt: Ditto.
6333 * doc/invoke.texi: Ditto.
6335 2008-05-19 Eric Botcazou <ebotcazou@adacore.com>
6337 * tree.c (substitute_in_expr) <tcc_vl_exp>: Fix thinko.
6338 (substitute_placeholder_in_expr) <tcc_vl_exp>: Minor tweak.
6340 2008-05-19 H.J. Lu <hongjiu.lu@intel.com>
6342 * config/i386/i386.c (ix86_expand_vector_init_concat): Change
6343 sizes of operand array from 8/4 to 4/2.
6344 (ix86_expand_vector_init_general): Change size of operand array
6345 from 32 to 16. Remove op0, op1 and half_mode.
6347 2008-05-19 H.J. Lu <hongjiu.lu@intel.com>
6349 * config/i386/i386.c (ix86_expand_vector_init_concat): New.
6350 (ix86_expand_vector_init_interleave): Likewise.
6351 (ix86_expand_vector_init_general): Use them. Assert
6352 word_mode == SImode when n_words == 4.
6354 2008-05-19 Uros Bizjak <ubizjak@gmail.com>
6356 * config/i386/i386.c (ix86_secondary_reload): New static function.
6357 (TARGET_SECONDARY_RELOAD): New define.
6358 * config/i386/i386.h (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
6359 * config/i386/i386.md (reload_outqi): Remove.
6361 2008-05-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6364 * builtins.c (mathfn_built_in_1): Renamed from mathfn_built_in.
6365 Add `implicit' parameter. Handle BUILT_IN_SIGNBIT.
6366 (mathfn_built_in): Rewrite in terms of mathfn_built_in_1.
6367 (fold_builtin_classify): Handle BUILT_IN_ISINF_SIGN.
6368 (fold_builtin_1): Likewise.
6369 * builtins.def (BUILT_IN_ISINF_SIGN): New.
6370 c-common.c (check_builtin_function_arguments): Handle
6371 BUILT_IN_ISINF_SIGN.
6372 * doc/extend.texi: Document __builtin_isinf_sign.
6373 * fold-const.c (operand_equal_p): Handle COND_EXPR.
6375 2008-05-18 Eric Botcazou <ebotcazou@adacore.com>
6377 * tree-ssa-dom.c (tree_ssa_dominator_optimize): If some blocks need
6378 EH cleanup at the end of the pass, search for those that have been
6379 turned into forwarder blocks and do the cleanup on their successor.
6381 2008-05-18 Richard Guenther <rguenther@suse.de>
6383 * tree-cfg.c (verify_gimple_expr): Allow conversions from
6384 pointers to sizetype and vice versa.
6386 2008-05-18 Xinliang David Li <davidxl@google.com>
6388 * gcc/tree-ssa-dce.c: Coding style fix.
6389 (check_pow): Documentation comment.
6390 (check_log): Documenation comment. Coding style fix.
6391 (is_unnecessary_except_errno_call): Ditto.
6392 (gen_conditions_for_pow): Ditto.
6393 (gen_conditions_for_log): Ditto.
6394 (gen_shrink_wrap_conditions): Ditto.
6395 (shrink_wrap_one_built_in_calls): Ditto.
6396 * gcc/doc/invoke.texi: Better documentation string.
6397 * ChangeLog: Fix wrong change log entries from
6398 May 17 checkin on function call DCE.
6400 2008-05-17 Kaz Kojima <kkojima@gcc.gnu.org>
6402 * config/sh/sh.c (sh_output_mi_thunk): Update the use of init_flow.
6404 2008-05-17 Kenneth Zadeck <zadeck@naturalbridge.com>
6406 * doc/rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P): Fixed typos.
6407 * df-problems.c (simulation routines): Fixed block comment to
6408 properly say how to add forwards scanning functions.
6410 2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
6412 * tree-inline.c (setup_one_parameter): Remove dead code.
6414 2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
6416 * fold-const.c (fold_unary) <CASE_CONVERT>: Fold the cast into
6417 a BIT_AND_EXPR only for an INTEGER_TYPE.
6419 2008-05-17 Xinliang David Li <davidxl@google.com>
6421 * gcc/tree-ssa-dce.c (cond_dead_built_in_calls): New static variable.
6422 (check_pow, check_log, is_unnecessary_except_errno_call): New
6423 functions to check for eliminating math functions that are pure
6424 except for setting errno.
6425 (gen_conditions_for_pow, gen_conditionas_for_log): New functions to
6426 general condition expressions for shrink-wrapping pow/log calls.
6427 (gen_shrink_wrap_conditions): Ditto.
6428 (shrink_wrap_one_built_in_call): Ditto.
6429 (shrink_wrap_conditional_dead_built_in_calls): Ditto.
6430 (mark_operand_necessary): If debugging, output if OP is necessary.
6431 (eliminate_unnecessary_stmts): Eliminate pow, log calls that are
6433 * gcc/opts.c (decode_options): set flag_tree_builtin_dce to 1 when
6435 * gcc/common.opt: New user flag -ftree-builtin-dce.
6436 * gcc/doc/invoke.texi (-ftree-builtin-dce): New option.
6438 2008-05-16 David S. Miller <davem@davemloft.net>
6440 * config/sparc/linux.h (NO_PROFILE_COUNTERS): Undef before overriding.
6441 * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
6443 2008-05-16 Uros Bizjak <ubizjak@gmail.com>
6446 * config/i386/i386.h (SECONDARY_MEMORY_NEEDED_MODE): New define.
6448 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
6450 * ifcvt.c (dead_or_predicable): Rename
6451 df_simulate_one_insn_backwards to df_simulate_one_insn.
6452 * recog.c (peephole2_optimize): Ditto.
6453 * rtl-factoring.c (collect_pattern_seqs, clear_regs_live_in_seq):
6455 * df.h: Rename df_simulate_one_insn_backwards to
6456 df_simulate_one_insn. and delete df_simulate_one_insn_forwards.
6457 * df-problems.c (df_simulate_artificial_refs_at_top) Reversed
6458 scanning of defs and uses.
6459 (df_simulate_one_insn_backwards): Renamed to df_simulate_one_insn.
6460 (df_simulate_one_insn_forwards): Removed.
6462 2008-05-16 Doug Kwan <dougkwan@google.com>
6464 * real.c (real_to_decimal, real_to_hexadecimal): Distinguish
6466 (real_from_string): Handle NaNs and Inf as approriate.
6468 2008-05-16 Nathan Froyd <froydnj@codesourcery.com>
6470 * doc/gty.texi (Source Files Containing Type Information): Note
6471 that headers should appear first in the gtfiles list.
6473 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
6475 * tree.def (COND_EXEC): Properly documented this code.
6477 2008-05-16 Diego Novillo <dnovillo@google.com>
6479 * dwarf2asm.c (dw2_assemble_integer): Clarify comment.
6480 * tree-nested.c (get_trampoline_type): Set DECL_CONTEXT for
6483 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
6485 * tree-ssa-dse (max_stmt_uid): Removed.
6486 (get_stmt_uid, dse_possible_dead_store_p, dse_optimize_stmt,
6487 tree_ssa_dse): Encapsulate all uses of stmt_ann->uid.
6488 * tree-ssa-sccvn.c (compare_ops, init_scc_vn): Ditto.
6489 * function.h (cfun.last_stmt_uid): New field.
6490 * tree-flow-inline.h (set_gimple_stmt_uid, gimple_stmt_uid,
6491 gimple_stmt_max_uid, set_gimple_stmt_max_uid, inc_gimple_stmt_max_uid):
6493 * tree-dfa.c (renumber_gimple_stmt_uids): New function.
6494 (create_stmt_ann): Initialize the ann->uid field.
6495 * tree-ssa-pre.c (compute_avail): Encapsulate the stmt_ann->uid
6497 * tree-flow.h (renumber_gimple_stmt_uids): New function.
6499 2008-05-16 Nathan Froyd <froydnj@codesourcery.com>
6501 * tree-flow.h (init_empty_tree_cfg_for_function): Declare.
6502 * tree-cfg.c (init_empty_tree_cfg_for_function): Define.
6503 (init_empty_tree_cfg): Call it.
6505 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
6507 * cfg.c (init_flow): Add argument THE_FUN. Use it instead of cfun.
6510 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
6512 * doc/invoke.text (-fdump-tree-*-verbose): New option.
6513 * tree-dump.c (dump_options): New verbose option.
6514 * tree-pretty-print.c (dump_phi_nodes, dump_generic_bb_buff):
6516 * tree-pass.h (TDF_VERBOSE): New dump flag.
6517 * print-tree.c (print_node): Added code to be able to print PHI_NODES.
6518 (tree-flow.h): Added include.
6519 * Makefile.in (print-tree.o): Added TREE_FLOW_H.
6521 2008-05-16 Bernd Schmidt <bernd.schmidt@analog.com>
6523 * config/bfin/bfin.c (bfin_discover_loops): Delete empty loops.
6525 From Jie Zhang <jie.zhang@analog.com>
6526 * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
6527 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Remove mcpu=bf532-0.3,
6528 mcpu=bf561-none and mcpu=bf561-0.2.
6529 * config/bfin/t-bfin-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
6530 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
6531 * config/bfin/t-bfin-linux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
6532 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
6533 * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add BFIN_CPU_UNKNOWN.
6534 * config/bfin/elf.h (STARTFILE_SPEC): Use specific CRT for BF561.
6535 (LIB_SPEC): Use proper linker script for bf561. Error if no mcpu
6537 * config/bfin/bfin.c (bfin_cpu_type): Set to BFIN_CPU_UNKNOWN.
6538 (cputype_selected): Remove.
6539 (bfin_handle_option): Don't use cputype_selected.
6540 (override_options): When no mcpu option, enable all workarounds.
6541 Don't use bfin_workarounds.
6542 * config/bfin/bfin.h (DRIVER_SELF_SPECS): Don't set default
6544 (DEFAULT_CPU_TYPE): Don't define.
6546 2008-05-16 Richard Guenther <rguenther@suse.de>
6548 * tree-ssa-propagate.c (substitute_and_fold): Fix stmt walking
6549 on deletion of the last stmt.
6551 2008-05-15 H.J. Lu <hongjiu.lu@intel.com>
6553 * config/i386/i386.c (ix86_expand_vector_init_general): Optimize
6554 V8HImode for SSE2 and V16QImode for SSE4.1.
6556 2008-05-15 Kenneth Zadeck <zadeck@naturalbridge.com>
6558 * cgraph.h (compute_inline_parameters): Made public.
6559 * tree-pass.h (ipa_opt_pass): Removed function_generate_summary,
6560 variable_generate_summary, function_write_summary,
6561 variable_write_summary, variable_read_summary. Added generate_summary,
6562 write_summary, read_summary.
6563 * cgraphunit.c (cgraph_process_new_functions): Changed call from
6564 pass_ipa_inline.function_generate_summary, to
6565 compute_inline_parameters.
6566 * ipa-inline.c (compute_inline_parameters): Made public and added
6568 (compute_inline_parameters_for_current): New function.
6569 (pass_inline_param): Now calls compute_inline_parameters_for_current.
6570 (inline_generate_summary): Removed parameter and made to loop over
6572 (pass_ipa_inline): Updated for new IPA_PASS structure.
6573 * passes.c (execute_ipa_summary_passes): Now is called once per
6574 pass rather than once per node*pass.
6576 2008-05-15 Anatoly Sokolov <aesok@post.ru>
6578 * config/avr/avr.c (avr_base_arch_macro, avr_have_movw_lpmx_p,
6579 avr_have_mul_p, avr_asm_only_p): Remove variables.
6580 (avr_override_options): Remove initialization of removed variables.
6581 (avr_file_start): Convert removed variables to fields of
6582 'struct base_arch_s *avr_current_arch'.
6583 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): (Ditto.).
6584 (AVR_HAVE_MUL): (Ditto.).
6585 (AVR_HAVE_MOVW): (Ditto.).
6586 (AVR_HAVE_LPMX): (Ditto.).
6587 (avr_base_arch_macro, avr_have_movw_lpmx_p, avr_have_mul_p,
6588 avr_asm_only_p): Remove declaration.
6590 2008-05-15 Diego Novillo <dnovillo@google.com>
6592 * config/arm/arm.c (arm_return_in_memory): Fix return type.
6593 * config/arm/arm-protos.h (arm_return_in_memory): Likewise.
6595 2008-05-15 Adam Nemet <anemet@caviumnetworks.com>
6598 * combine.c (check_conversion): Rename back to check_promoted_subreg.
6599 Don't call record_truncated_value from here.
6600 (record_truncated_value): Turn it into a for_each_rtx callback.
6601 (record_truncated_values): New function.
6602 (combine_instructions): Call note_uses with record_truncated_values.
6603 Change name of check_conversion to check_promoted_subreg.
6605 2008-05-15 Janis Johnson <janis187@us.ibm.com>
6607 * doc/sourcebuild.texi: Document support for torture tests.
6609 2008-05-15 Uros Bizjak <ubizjak@gmail.com>
6611 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Add "m" constraint
6612 to alternative 4 of operand 2.
6614 2008-05-15 Richard Guenther <rguenther@suse.de>
6616 * tree-pass.h (current_pass): Declare.
6617 (get_pass_for_id): Likewise.
6618 * passes.c (passes_by_id, passes_by_id_size): New globals.
6619 (set_pass_for_id): New function.
6620 (get_pass_for_id): Likewise.
6621 (register_one_dump_file): Use set_pass_for_id to populate passes_by_id.
6622 (execute_function_todo): Flush per function statistics.
6623 * toplev.c (compile_file): Init statistics.
6624 (general_init): Do early statistics initialization.
6625 (finalize): Finish statistics.
6626 * statistics.h (statistics_early_init): Declare.
6627 (statistics_init): Likewise.
6628 (statistics_fini): Likewise.
6629 (statistics_fini_pass): Likewise.
6630 (statistics_counter_event): Likewise.
6631 (statistics_histogram_event): Likewise.
6632 * statistics.c: New file.
6633 * Makefile.in (OBJS-common): Add statistics.o.
6634 (statistics.o): Add dependencies.
6635 * doc/invoke.texi (-fdump-statistics): Document.
6637 * tree-ssa-pre.c (compute_antic): Use statistics_histogram_event.
6639 (execute_pre): Use statistics_counter_event.
6640 * tree-ssa-propagate.c (struct prop_stats_d): Add num_dce field.
6641 (substitute_and_fold): Increment it. Use statistics_counter_event.
6643 2008-05-15 Diego Novillo <dnovillo@google.com>
6645 http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00893.html
6647 * treestruct.def (TS_STRUCT_FIELD_TAG): Remove.
6648 * tree-ssa-alias.c (new_type_alias): Remove references to
6649 sub-variables from comment.
6650 * tree-ssa-operands.c (swap_tree_operands): Likewise.
6652 2008-05-15 H.J. Lu <hongjiu.lu@intel.com>
6654 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Set prefix_extra
6655 attribute to 1 only for insertps alternative.
6657 2008-05-15 Bernd Schmidt <bernd.schmidt@analog.com>
6659 * config/bfin/bfin.md (loadbytes): New pattern.
6660 * config/bfin/bfin.c (enum bfin_builtins): Add BFIN_BUILTIN_LOADBYTES.
6661 (bfin_init_builtins): Initialize it.
6662 (bdesc_1arg): Add it.
6664 2008-05-15 Sa Liu <saliu@de.ibm.com>
6666 * testsuite/gfortran.dg/c_kind_int128_test1.f03: New.
6667 * testsuite/gfortran.dg/c_kind_int128_test2.f03: New.
6668 * testsuite/lib/target-supports.exp: Add
6669 check_effective_target_fortran_integer_16.
6671 2008-05-15 Bernd Schmidt <bernd.schmidt@analog.com>
6673 * config/bfin/bfin.h (TARGET_RETURN_IN_MEMORY): Don't define here.
6674 * config/bfin/bfin-protos.h (bfin_return_in_memory): Don't declare.
6675 * config/bfin/bfin.c (bfin_return_in_memory): Now static. Return bool.
6676 (TARGET_RETURN_IN_MEMORY): Define.
6678 2008-05-15 Richard Guenther <rguenther@suse.de>
6681 * tree-ssa-alias.c (new_type_alias): Do not set TREE_READONLY.
6682 * tree-flow-inline.h (unmodifiable_var_p): Memory tags never
6683 represent unmodifiable vars.
6685 2008-05-15 Richard Guenther <rguenther@suse.de>
6687 * tree-dfa.c (refs_may_alias_p): Allow all kinds of
6688 INDIRECT_REF and TARGET_MEM_REF.
6689 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
6692 2008-05-15 Uros Bizjak <ubizjak@gmail.com>
6693 H.J. Lu <hongjiu.lu@intel.com>
6695 * config/i386/sse.md (*vec_concatv2sf_sse4_1): New insn pattern.
6696 (*vec_concatv2si_sse4_1): Use vector_move_operand predicate
6697 for operand 2. Remove pinsr{q,d} with 0x0 immediate operand from
6698 insn alternatives. Add missing alternatives.
6699 (*vec_concatv2di_rex64_sse4_1): Likewise.
6700 (*vec_concatv2si_sse2): Use "x" register constraint instead of "Y2".
6701 (*vec_concatv2di_rex64_sse): Rename from *vec_concatv2di_rex64.
6704 2008-05-15 Richard Guenther <rguenther@suse.de>
6706 PR tree-optimization/36009
6707 PR tree-optimization/36204
6708 * tree-ssa-loop-im.c (tree-ssa-propagate.h): Include.
6709 (determine_invariantness_stmt): Record the loop a store is
6711 * Makefile.in (tree-ssa-loop-im.o): Add tree-ssa-propagate.h
6714 2008-05-15 Richard Guenther <rguenther@suse.de>
6716 PR tree-optimization/34330
6717 * tree-ssa-alias.c (get_smt_for): Only assert that accesses
6718 through the pointer will alias the SMT.
6720 2008-05-14 Andreas Tobler <a.tobler@schweiz.org>
6722 * config/sparc/sparc.h (NO_PROFILE_COUNTERS): Define as 0.
6724 2008-05-14 H.J. Lu <hongjiu.lu@intel.com>
6726 * config/i386/sse.md (*sse4_1_pinsrq): Make it 64bit only.
6728 2008-05-14 Michael Meissner <michael.meissner@amd.com>
6729 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
6731 * optabs.h (optab_index): Add OTI_vashl, OTI_vlshr, OTI_vashr,
6732 OTI_vrotl, OTI_vrotr to support vector/vector shifts.
6733 (vashl_optab): New optab for vector/vector shifts.
6734 (vashr_optab): Ditto.
6735 (vlshr_optab): Ditto.
6736 (vrotl_optab): Ditto.
6737 (vrotr_optab): Ditto.
6738 (optab_subtype): New enum for optab_for_tree_code call.
6739 (optab_for_tree_code): Add enum optab_subtype argument.
6741 * optabs.c (optab_for_tree_code): Take an additional argument to
6742 distinguish between a vector shift by a scalar and vector shift by
6743 a vector. Make lshr/ashr/ashl/rotl/rotr optabs just vector
6744 shifted by a scalar. Use vlshr/vashr/vashl/vrotl/vrotr for the
6745 vector shift by a vector.
6746 (expand_widen_pattern_expr): Pass additional argument to
6747 optab_for_tree_code.
6749 * genopinit.c (optabs): Add vashr_optab, vashl_optab, vlshr_optab,
6750 vrotl_optab, vrotr_optab.
6752 * expr.c (expand_expr_real_1): Update calls to
6753 optab_for_tree_code to distinguish between vector shifted by a
6754 scalar and vector shifted by a vector.
6755 * tree-vectorizer.c (supportable_widening_operation): Ditto.
6756 (supportable_narrowing_operation): Ditto.
6757 * tree-vect-analyze.c (vect_build_slp_tree): Ditto.
6758 * tree-vect-patterns.c (vect_pattern_recog_1): Ditto.
6759 * tree-vect-transform.c (vect_model_reduction_cost): Ditto.
6760 (vect_create_epilog_for_reduction): Ditto.
6761 (vectorizable_reduction): Ditto.
6762 (vectorizable_operation): Ditto.
6763 (vect_strided_store_supported): Ditto.
6764 (vect_strided_load_supported): Ditto.
6765 * tree-vect-generic.c (expand_vector_operations_1): Ditto.
6766 * expmed.c (expand_shift): Ditto.
6768 * doc/md.texi (ashl@var{m}3): Document that operand 2 is always a
6770 (ashr@var{m}3): Ditto.
6771 (vashl@var{m}3): Document new vector/vector shift standard name.
6772 (vashr@var{m}3): Ditto.
6773 (vlshr@var{m}3): Ditto.
6774 (vrotl@var{m}3): Ditto.
6775 (vrotr@var{m}3): Ditto.
6777 * config/i386/i386.md (PPERM_SRC): Move PPERM masks here from i386.c.
6778 (PPERM_INVERT): Ditto.
6779 (PPERM_REVERSE): Ditto.
6780 (PPERM_REV_INV): Ditto.
6781 (PPERM_ZERO): Ditto.
6782 (PPERM_ONES): Ditto.
6783 (PPERM_SIGN): Ditto.
6784 (PPERM_INV_SIGN): Ditto.
6785 (PPERM_SRC1): Ditto.
6786 (PPERM_SRC2): Ditto.
6788 * config/i386/sse.md (mulv2di3): Add SSE5 support.
6789 (sse5_pmacsdql_mem): New SSE5 define_and_split that temporarily
6790 allows a memory operand to be the value being added, and split it
6791 to improve vectorization.
6792 (sse5_pmacsdqh_mem): Ditto.
6793 (sse5_mulv2div2di3_low): SSE5 32-bit multiply and extend function.
6794 (sse5_mulv2div2di3_high): Ditto.
6795 (vec_pack_trunc_v8hi): Add SSE5 pperm support.
6796 (vec_pack_trunc_v4si): Ditto.
6797 (vec_pack_trunc_v2di): Ditto.
6798 (sse5_pcmov_<mode>): Remove code that tried to use use
6799 andps/andnps instead of pcmov.
6800 (vec_widen_smult_hi_v4si): If we have SSE5, use the pmacsdql and
6801 pmacsdqh instructions.
6802 (vec_widen_smult_lo_v4si): Ditto.
6804 * config/i386/i386.c (PPERM_SRC): Move PPERM masks to i386.md.
6805 (PPERM_INVERT): Ditto.
6806 (PPERM_REVERSE): Ditto.
6807 (PPERM_REV_INV): Ditto.
6808 (PPERM_ZERO): Ditto.
6809 (PPERM_ONES): Ditto.
6810 (PPERM_SIGN): Ditto.
6811 (PPERM_INV_SIGN): Ditto.
6812 (PPERM_SRC1): Ditto.
6813 (PPERM_SRC2): Ditto.
6814 (ix86_expand_sse_movcc): Move the SSE5 test after the if
6816 (ix86_expand_int_vcond): If SSE5 generate all possible integer
6818 (ix86_sse5_valid_op_p): Allow num_memory to be negative, which
6819 says ignore whether the last reference is a memory operand.
6821 2008-05-14 Michael Meissner <michael.meissner@amd.com>
6822 Paolo Bonzini <bonzini at gnu dot org>
6824 * config/rs6000/rs6000.c (bdesc_2arg): Change the names of vector
6827 * config/rs6000/altivec.md (vashl<mode>3): Rename from ashl<mode>3.
6828 (vlshr<mode>3): Rename from vlshr<mode>3.
6829 (vashr<mode>3): Rename from vashr<mode>3.
6830 (mulv4sf3): Change the names of vector shift patterns.
6834 * config/spu/spu.c (spu_initialize_trampoline): Rename vector
6837 * config/spu/spu-builtins.def (SI_SHLH): Rename vector shift insns.
6862 * config/spu/spu.md (v): New iterator macro to add v for vector types.
6863 (floatunssidf2_internal): Change vector/vector shift names.
6864 (floatunsdidf2_internal): Ditto.
6871 (vashl<mode>3): Rename from ashl<mode>3.
6872 (vashr<mode>3): Rename from ashr<mode>3.
6873 (vlshr<mode>3): Rename from lshr<mode>3.
6874 (vrotl<mode>3): Rename from rotl<mode>3.
6876 2008-05-14 Michael Meissner <michael.meissner@amd.com>
6879 * config/i386/sse.md (vec_widen_smult_hi_v4si): Delete, using unsigned
6880 multiply gives the wrong value when doing widening multiplies.
6881 (vec_widen_smult_lo_v4si): Ditto.
6883 2008-05-14 Kenneth Zadeck <zadeck@naturalbridge.com>
6885 * optabs.c (prepare_cmp_insn): Changed LCT_PURE_MAKE_BLOCK to
6886 LCT_PURE and LCT_CONST_MAKE_BLOCK to LCT_CONST in calls to
6887 emit_library_call_value.
6888 * builtins.c (expand_builtin_powi, expand_builtin_memcmp): Ditto.
6889 * tree.h (ECF_LIBCALL_BLOCK): Removed.
6890 * calls.c (initialize_argument_information, precompute_arguments,
6891 expand_call, emit_library_call_value_1): Remove ECF_LIBCALL_BLOCK.
6892 (precompute_arguments): Removed flags parameter.
6893 * rtl.h (LCT_CONST_MAKE_BLOCK, LCT_PURE_MAKE_BLOCK): Removed.
6895 2008-05-14 Richard Guenther <rguenther@suse.de>
6897 * tree-ssa-dse.c (dse_possible_dead_store_p): Remove dead code.
6898 Make sure to register the store if the use is a PHI_NODE.
6900 2008-05-14 Olivier Hainque <hainque@adacore.com>
6902 * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
6903 memory if the component is to be referenced in BLKmode according
6904 to get_inner_reference.
6906 2008-05-14 Adam Nemet <anemet@caviumnetworks.com>
6908 * calls.c (emit_library_call_value_1): Restore code clearing
6909 ECF_LIBCALL_BLOCK to ensure that we only call end_sequence once.
6911 2008-05-14 Olivier Hainque <hainque@adacore.com>
6912 Nicolas Roche <roche@adacore.com>
6914 * configure.ac: Add support for a "gcc_subdir" variable in
6915 config-lang.in, to denote a subdirectory where the language/GCC
6916 integration files are to be found.
6917 * configure: Regenerate.
6919 2008-05-14 Ira Rosen <irar@il.ibm.com>
6921 PR tree-optimization/36098
6922 * tree-vect-analyze.c (vect_analyze_group_access): Set the gap
6923 value for the first load in the group in case of a gap.
6924 (vect_build_slp_tree): Check that there are no gaps in loads.
6926 2008-05-14 Kenneth Zadeck <zadeck@naturalbridge.com>
6928 * doc/rtl.texi: Removed reference to REG_NO_CONFLICT notes.
6929 * optabs.c (expand_binop, expand_absneg_bit, expand_unop,
6930 expand_copysign_bit, ): Change call to emit_no_conflict_block to
6931 emit_insn and remove unneeded code to construct extra args.
6932 (emit_no_conflict_block): Removed.
6933 * optabls.h: (emit_no_conflict_block): Removed.
6934 * cse.c (cse_extended_basic_block): Remove search for
6935 REG_NO_CONFLICT note.
6936 * global.c: Removed incorrect comment added in revision 117.
6937 * expr.c (convert_move): Change call to emit_no_conflict_block to
6939 * recog.c: Change comments so that they do not mention
6941 * local_alloc.c (combine_regs): Removed last parameter.
6942 (no_conflict_p): Removed.
6943 (block_alloc): Removed note, no_conflict_combined_regno and set
6944 local vars. Removed all code to process REG_NO_CONFLICT blocks.
6945 (combine_regs): Removed already_dead and code to look for
6946 REG_NO_CONFLICT notes.
6947 * lower_subreg (remove_retval_note): Removed code to look for
6948 REG_NO_CONFLICT block.
6949 (resolve_reg_notes): Removed REG_NO_CONFLICT case.
6950 (resolve_clobber): Remove code to process libcalls that have
6951 REG_NO_CONFLICT notes.
6952 * loop_invariant.c (find_invariant_insn): Removed REG_NO_CONFLICT
6954 * combine.c (can_combine_p, distribute_notes): Removed
6955 REG_NO_CONFLICT case.
6956 * config/cris/cris.md (movdi pattern): Changed emit_no_conflict_block
6958 * config/mn10300/mn10300.md (absdf2, negdf2 patterns): Ditto.
6959 * config/m68k/m68k.md (negdf2, negxf2, absdf2, absxf2 patterns):
6961 * reg-notes.def (NO_CONFLICT): Removed.
6963 2008-05-14 David S. Miller <davem@davemloft.net>
6965 * config/sparc/sparc.c (sparc_profile_hook): If
6966 NO_PROFILE_COUNTERS, don't generate and pass a label into mcount.
6967 * config/sparc/linux.h (NO_PROFILE_COUNTERS): Define as 1.
6968 * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
6970 2008-05-14 Andreas Krebbel <krebbel1@de.ibm.com>
6972 * cse.c (cse_cc_succs): Invoke delete_insn_and_edges.
6974 2008-05-13 Uros Bizjak <ubizjak@gmail.com>
6977 * config/i386/i386.c (ix86_expand_vector_init_general): Rearrange op0
6978 and op1 expansion before vector concat to have less live pseudos.
6980 2008-05-13 H.J. Lu <hongjiu.lu@intel.com>
6982 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
6983 ix86_expand_vector_set if supported.
6985 2008-05-13 Diego Novillo <dnovillo@google.com>
6986 Kenneth Zadeck <zadeck@naturalbridge.com>
6988 http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00748.html
6990 * tree.h (init_phinodes, fini_phinodes, release_phi_node,
6991 phinodes_print_statistics, init_ssanames, fini_ssanames,
6992 make_ssa_name, duplicate_ssa_name, duplicate_ssa_name_ptr_info,
6993 release_ssa_name, release_defs, replace_ssa_name_symbol,
6994 ssanames_print_statistics): Move ...
6995 * tree-flow.h: ... here.
6996 * tree-ssanames.c (init_ssanames): Add arguments FN and SIZE.
6997 Use FN instead of cfun.
6998 (make_ssa_name_fn): Rename from make_ssa_name.
6999 (pass_release_ssa_names): Add TODO_dump_func to finish flags.
7000 * tree-flow-inline.h (make_ssa_name): Move from
7001 tree-ssanames.c. Convert to static inline. Call make_ssa_name_fn.
7002 * omp-low.c (expand_omp_parallel):
7003 * tree-flow-inline.h (redirect_edge_var_map_result):
7004 * tree-ssa.c (init_tree_ssa): Add argument FN.
7005 Use it instead of cfun. Update all users.
7007 2008-05-13 Tom Tromey <tromey@redhat.com>
7009 PR preprocessor/22168:
7010 * doc/cpp.texi (Top): Update menu.
7011 (Alternatives to Wrapper #ifndef): New node.
7012 (Other Directives): Document deprecation.
7013 (Obsolete Features): Remove menu.
7014 (Assertions): Merge node into Obsolete Features.
7015 (Obsolete once-only headers): Move earlier; rename to Alternatives
7017 * doc/cppopts.texi: Update.
7018 * c.opt (Wdeprecated): Enable for C and ObjC.
7019 * doc/invoke.texi (Option Summary): Move -Wno-deprecated.
7020 (C++ Dialect Options): Move -Wno-deprecated from here to...
7021 (Warning Options): ... here.
7023 2008-05-13 Richard Guenther <rguenther@suse.de>
7026 * fold-const.c (fold_sign_changed_comparison): Do not allow
7027 changes in pointer-ness.
7029 2008-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
7032 * config/sh/sh.c (sh_expand_prologue): Don't clear
7033 RTX_FRAME_RELATED_P for push insns.
7035 2008-05-12 Andy Hutchinson <hutchinsonandy@aim.com>
7037 * config/avr/avr.h (MAX_OFILE_ALIGNMENT): Define.
7039 2008-05-12 Anatoly Sokolov <aesok@post.ru>
7041 * config/avr/avr.h (machine_function): Add 'is_leaf' field.
7042 * config/avr/avr.c (avr_regs_to_save): Compute 'machine->is_leaf'.
7043 Use 'machine->is_leaf' instead of 'leaf_func_p'.
7045 2008-05-12 H.J. Lu <hongjiu.lu@intel.com>
7047 * config/i386/sse.md (*sse_concatv4sf): Renamed to ...
7048 (*vec_concatv4sf_sse): This.
7049 (*sse2_concatv2si): Renamed to ...
7050 (*vec_concatv2si_sse2): This.
7051 (*sse1_concatv2si): Renamed to ...
7052 (*vec_concatv2si_sse): This.
7053 (*vec_concatv2di_rex): Renamed to ...
7054 (*vec_concatv2di_rex64): This.
7055 (*vec_concatv2si_sse4_1): New.
7056 (*vec_concatv2di_rex64_sse4_1): Likewise.
7058 2008-05-12 Uros Bizjak <ubizjak@gmail.com>
7060 PR rtl-optimization/36111
7061 * recog.c (validate_replace_rtx_1): Unshare new RTL expression
7062 that was created for swappable operands.
7064 2008-05-12 Samuel Tardieu <sam@rfc1149.net>
7067 * Makefile.in: Substitute GNATMAKE and GNATBIND.
7068 * configure.ac: Add call to ACX_PROG_GNAT.
7070 2008-05-11 Volker Reichelt <v.reichelt@netcologne.de>
7072 * optc-gen.awk: Fix comment typo.
7074 2008-05-11 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
7076 * pretty-print.c (pp_integer_with_precision): Use
7077 HOST_LONG_LONG_FORMAT.
7079 2008-05-10 Kenneth Zadeck <zadeck@naturalbridge.com>
7081 * gcse.c (store_killed_in_insn): Negated call to RTL_CONST_CALL_P.
7083 2008-05-10 H.J. Lu <hongjiu.lu@intel.com>
7085 * config/i386/i386.c (bdesc_ptest): Removed.
7086 (ix86_builtin_type): Add INT_FTYPE_V2DI_V2DI_PTEST.
7087 (bdesc_args): Add __builtin_ia32_ptestz128,
7088 __builtin_ia32_ptestc128 and __builtin_ia32_ptestnzc128.
7089 (ix86_init_mmx_sse_builtins): Updated.
7090 (ix86_expand_args_builtin): Handle INT_FTYPE_V2DI_V2DI_PTEST.
7091 (ix86_expand_builtin): Updated.
7093 2008-05-10 Richard Sandiford <rdsandiford@googlemail.com>
7095 * tree-cfg.c (valid_fixed_convert_types_p): New function.
7096 (verify_gimple_expr): Handle FIXED_CONVERT_EXPR.
7098 2008-05-10 Uros Bizjak <ubizjak@gmail.com>
7100 * value-prof.c (interesting_stringop_to_profile): Do not
7101 return early for BUILT_IN_MEMPCPY.
7103 2008-05-09 H.J. Lu <hongjiu.lu@intel.com>
7105 * calls.c (expand_call): Don't use callgraph to increase
7106 preferred_stack_boundary.
7108 * cgraph.h (cgraph_rtl_info): Use unsigned on
7109 preferred_incoming_stack_boundary.
7111 * final.c (rest_of_clean_state): Use unsigned on
7112 preferred_stack_boundary.
7114 2008-05-09 Tom Tromey <tromey@redhat.com>
7116 PR preprocessor/22231:
7117 * c-opts.c (sanitize_cpp_opts): Disallow -MG if compilation is
7120 2008-05-09 Uros Bizjak <ubizjak@gmail.com>
7122 PR tree-optimization/36129
7123 * tree-ssa-ccp.c: Include value-prof.h.
7124 (execute_fold_all_builtins): Call gimple_remove_stmt_histograms if
7125 built-in function was folded to a constant.
7126 * Makefile.in (tree-ssa-ccp.c): Depend on value-prof.h
7128 2008-05-09 Jan Sjodin <jan.sjodin@amd.com>
7129 Sebastian Pop <sebastian.pop@amd.com>
7131 * tree-scalar-evolution.c: Document instantiate_scev.
7132 (instantiate_parameters_1): Renamed instantiate_scev_1.
7133 Don't use the same loop for instantiation_loop and evolution_loop.
7134 (instantiate_scev): New.
7135 (instantiate_parameters): Moved...
7136 (resolve_mixers): Update call to instantiate_scev_1 to pass the
7137 same loop twice. Maintains the semantics for this function.
7138 * tree-scalar-evolution.h (instantiate_scev): Declare.
7139 (instantiate_parameters): ...here. Now static inline.
7140 * tree-data-ref.c (dr_analyze_indices): Call instantiate_scev
7141 instead of resolve_mixers.
7143 2008-05-09 Maxim Kuvyrkov <maxim@codesourcery.com>
7145 * rtl-factoring.c (collect_pattern_seqs): Fix typo.
7147 2008-05-09 Tomas Bily <tbily@suse.cz>
7149 * config/pa/pa.c (reloc_needed): Use CASE_CONVERT.
7150 * tree-cfg.c (verify_expr, verify_gimple_expr): Likewise.
7151 * tree-ssa-structalias.c (get_constraint_for): Likewise.
7152 * c-common.c (c_common_truthvalue_conversion): Likewise.
7153 * tree-object-size.c (compute_object_offset): Likewise.
7154 * tree-inline.c (estimate_num_insns_1): Likewise.
7155 * varasm.c (const_hash_1, compare_constant, copy_constant)
7156 (compute_reloc_for_constant, output_addressed_constants)
7157 (initializer_constant_valid_p): Likewise.
7158 * c-omp.c (check_omp_for_incr_expr): Likewise.
7159 * gimplify.c (gimplify_expr): Likewise.
7160 * c-typeck.c (c_finish_return): Likewise.
7161 * tree-vectorizer.c (supportable_widening_operation)
7162 (supportable_narrowing_operation): Likewise.
7163 * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Likewise.
7164 * matrix-reorg.c (can_calculate_expr_before_stmt): Likewise.
7165 * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
7166 * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info)
7167 (descr_info_loc): Likewise.
7168 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
7169 * fold-const.c (operand_equal_p, make_range, extract_muldiv_1)
7170 (fold_unary): Likewise.
7171 * builtins.c (get_pointer_alignment): Likewise.
7172 * tree-scalar-evolution.c (interpret_rhs_modify_stmt)
7173 (instantiate_parameters_1): Likewise.
7174 * tree.c (expr_align, stabilize_reference): Likewise.
7175 * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
7176 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
7177 * convert.c (strip_float_extensions): Use CONVERT_EXPR_P.
7178 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
7179 * config/alpha/alpha.c (va_list_skip_additions): Likewise.
7180 * c-common.c (c_alignof_expr, check_function_arguments_recurse):
7182 * tree-ssa.c (tree_ssa_useless_type_conversion): Likewise.
7183 * varasm.c (initializer_constant_valid_p, output_constant): Likewise.
7184 * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
7185 (forward_propagate_addr_expr_1, forward_propagate_addr_expr)
7186 (forward_propagate_comparison)
7187 (tree_ssa_forward_propagate_single_use_vars): Likewise.
7188 * cfgexpand.c (discover_nonconstant_array_refs_r): Likewise.
7189 * emit-rtl.c (component_ref_for_mem_expr)
7190 (set_mem_attributes_minus_bitpos): Likewise.
7191 * tree-ssa-phiopt.c (conditional_replacement): Likewise.
7192 * gimplify.c (gimplify_conversion, goa_lhs_expr_p, gimplify_expr):
7194 * c-typeck.c (default_function_array_conversion, build_indirect_ref)
7195 (build_function_call, pointer_diff, build_compound_expr)
7196 (c_finish_return): Likewise.
7197 * tree-vect-analyze.c (vect_determine_vectorization_factor): Likewise.
7198 * matrix-reorg.c (get_inner_of_cast_expr, may_flatten_matrices_1):
7200 * tree-ssa-ifcombine.c (recognize_single_bit_test): Likewise.
7201 * expr.c (is_aligning_offset): Likewise.
7202 * tree-ssa-alias.c (is_escape_site): Likewise.
7203 * tree-stdarg.c (va_list_counter_bump, check_va_list_escapes)
7204 (check_all_va_list_escapes): Likewise.
7205 * tree-ssa-loop-ivopts.c (determine_base_object)
7206 (determine_common_wider_type): Likewise.
7207 * dojump.c (do_jump): Likewise.
7208 * tree-ssa-sccvn.c (simplify_unary_expression): Likewise.
7209 * tree-gimple.c (is_gimple_cast): Likewise.
7210 * fold-const.c (decode_field_reference, )
7211 (fold_sign_changed_comparison, fold_unary, fold_comparison)
7212 (fold_binary): Likewise.
7213 * tree-ssa-alias-warnings.c (find_alias_site_helper)
7214 (already_warned_in_frontend_p): Likewise.
7215 * builtins.c (get_memory_rtx, fold_builtin_next_arg): Likewise.
7216 * tree.c (really_constant_p, get_unwidened): Likewise.
7217 * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
7218 * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
7219 * tree-vrp.c (register_edge_assert_for_2, register_edge_assert_for_1):
7221 * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Use
7223 (CONVERT_EXPR_P): Define.
7224 (CASE_CONVERT): Define.
7226 2008-05-08 Kenneth Zadeck <zadeck@naturalbridge.com>
7229 * dce.c (deletable_insn_p): Do not delete calls if df_in_progress.
7230 (delete_unmarked_insns): When deleting a call, call
7231 delete_unreachable_blocks.
7232 * rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
7233 RTL_CONST_OR_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P): Fixed doc.
7235 2008-05-08 Richard Guenther <rguenther@suse.de>
7237 * doc/invoke.texi (-fdump-tree-salias): Remove documentation.
7238 (-ftree-salias): Likewise.
7239 (salias-max-implicit-fields): Remove param documentation.
7240 (salias-max-array-elements): Likewise.
7241 * tree-pass.h (pass_create_structure_vars): Remove.
7242 * params.h (SALIAS_MAX_IMPLICIT_FIELDS): Remove.
7243 (SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
7244 * tree-ssa-alias.c (create_structure_vars): Remove.
7245 (gate_structure_vars): Likewise.
7246 (pass_create_structure_vars): Likewise.
7247 (gate_build_alias): Likewise.
7248 (pass_build_alias): Adjust to run always and dump the function.
7249 * common.opt (ftree-salias): Hide.
7250 * passes.c (init_optimization_passes): Remove
7251 pass_create_structure_vars, adjust comment.
7252 * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): Remove.
7253 (PARAM_SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
7254 * opts.c (decode_options): Do not set flag_tree_salias.
7255 (common_handle_option): Add OPT_ftree_salias to the backward
7256 compatibility section.
7258 2008-05-08 Richard Guenther <rguenther@suse.de>
7260 * tree-flow-inline.h (var_can_have_subvars): Move ...
7261 * tree-ssa-structalias.c (var_can_have_subvars): ... here.
7262 * tree-flow.h (var_can_have_subvars): Remove.
7263 (push_fields_onto_fieldstack): Remove.
7264 (sort_fieldstack): Likewise.
7265 (struct fieldoff): Move ...
7266 * tree-ssa-structalias.c (struct fieldoff): ... here. Remove
7267 alias_set and base_for_components fields.
7268 (sort_fieldstack): Make static.
7269 (push_fields_onto_fieldstack): Likewise. Remove code that
7270 handles anything but RECORD_TYPEs. Remove alias_set and
7271 base_for_components handling.
7272 (create_variable_info_for): Adjust.
7274 2008-05-08 Seongbae Park <seongbae.park@gmail.com>
7276 * common.opt (Wframe-larger-than=): Shorten the help message
7278 * doc/invoke.texi (Wframe-larger-than=): Add more description.
7280 2008-05-08 Rafael Espindola <espindola@google.com>
7282 * tree-complex.c (expand_complex_div_wide): Don't create CONDs that
7284 * tree-gimple.c (is_gimple_condexpr): Check that the expression doesn't
7285 trap and that both operands are gimple values.
7286 (canonicalize_cond_expr_cond): Use is_gimple_condexpr.
7287 * gcc/tree-eh.c (tree_could_trap_p): Correctly detect if a comparison
7290 2008-05-08 Richard Sandiford <rsandifo@nildram.co.uk>
7292 * read-rtl.c (join_c_conditions): Return the first string if the
7293 two strings are equal.
7295 2008-05-08 Richard Sandiford <rsandifo@nildram.co.uk>
7297 * gensupport.h (pred_data): Add a "num_codes" field.
7298 (add_predicate_code): Declare.
7299 * gensupport.c (add_predicate_code): New function.
7300 (std_pred_table): Add an "allows_const_p" field.
7301 (std_preds): Set this field for predicates that allow RTX_CONST_OBJs.
7302 Remove the (incomplete) list of such codes from the codes field.
7303 (init_predicate_table): Use add_predicate_code. Add all
7304 RTX_CONST_OBJs if allows_const_p is true.
7305 * genrecog.c (process_define_predicate): Use add_predicate_code.
7307 2008-05-08 David Daney <ddaney@avtrex.com>
7308 Richard Sandiford <rsandifo@nildram.co.uk>
7310 * config/mips/mips.md (mips_expand_compare_and_swap_12): Handle
7311 special case of constant zero operands.
7312 * config/mips/mips.c (mips_expand_compare_and_swap_12): Zero extend
7313 old and new values. Special case constant zero values.
7314 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Skip 'sync' if compare
7316 (MIPS_COMPARE_AND_SWAP_12): Handle constant zero operands.
7317 (MIPS_COMPARE_AND_SWAP_12_0): New macro.
7319 2008-05-08 Paolo Bonzini <bonzini@gnu.org>
7322 * simplify-rtx.c (simplify_plus_minus): Create CONST of
7323 similar RTX_CONST_OBJ before CONST_INT.
7325 2008-05-08 Steve Ellcey <sje@cup.hp.com>
7327 * stmt.c (expand_stack_restore): Change sa mode if needed.
7329 2008-05-08 Richard Guenther <rguenther@suse.de>
7331 * config/i386/i386-protos.h (ix86_return_in_memory): Adjust
7332 return type to bool.
7333 (ix86_sol10_return_in_memory): Likewise.
7334 (ix86_i386elf_return_in_memory): Likewise.
7335 (ix86_i386interix_return_in_memory): Likewise.
7336 * config/i386/i386.c (ix86_return_in_memory): Likewise.
7337 (ix86_sol10_return_in_memory): Likewise.
7338 (ix86_i386elf_return_in_memory): Likewise.
7339 (ix86_i386interix_return_in_memory): Likewise.
7341 2008-05-08 Kai Tietz <kai.tietz@onevision.com>
7344 * calls.c (compute_argument_block_size ): Add ATTRIBUTE_UNUSED to
7346 (emit_library_call_value_1): Add ATTRIBUTE_UNUSED to variable fndecl.
7347 * target-def.h: Check that TARGET_RETURN_IN_MEMORY isn't
7350 2008-05-08 Richard Guenther <rguenther@suse.de>
7352 * tree-data-ref.c (dr_analyze_alias): Do not set DR_SUBVARS.
7353 * tree-data-ref.h (struct dr_alias): Remove subvars field.
7354 (DR_SUBVARS): Remove.
7355 * tree-dfa.c (dump_subvars_for): Remove.
7356 (debug_subvars_for): Likewise.
7357 (dump_variable): Do not dump subvars.
7358 (remove_referenced_var): Do not remove subvars.
7359 * tree-flow-inline.h (clear_call_clobbered): SFTs no longer exist.
7360 (lookup_subvars_for_var): Remove.
7361 (get_subvars_for_var): Likewise.
7362 (get_subvars_at): Likewise.
7363 (get_first_overlapping_subvar): Likewise.
7364 (overlap_subvar): Likewise.
7365 * tree-flow.h (subvar_t): Remove.
7366 (struct var_ann_d): Remove subvars field.
7367 * tree-ssa-alias.c (mark_aliases_call_clobbered): Remove queued
7368 argument. Remove special handling of SFTs.
7369 (compute_tag_properties): Likewise.
7370 (set_initial_properties): Likewise.
7371 (compute_call_clobbered): Likewise.
7372 (count_mem_refs): Likewise.
7373 (compute_memory_partitions): Likewise.
7374 (compute_flow_insensitive_aliasing): Likewise.
7375 (setup_pointers_and_addressables): Likewise.
7376 (new_type_alias): Likewise.
7377 (struct used_part): Remove.
7378 (used_portions): Likewise.
7379 (struct used_part_map): Likewise.
7380 (used_part_map_eq): Likewise.
7381 (used_part_map_hash): Likewise.
7382 (free_used_part_map): Likewise.
7383 (up_lookup): Likewise.
7384 (up_insert): Likewise.
7385 (get_or_create_used_part_for): Likewise.
7386 (create_sft): Likewise.
7387 (create_overlap_variables_for): Likewise.
7388 (find_used_portions): Likewise.
7389 (create_structure_vars): Likewise.
7390 * tree.def (STRUCT_FIELD_TAG): Remove.
7391 * tree.h (MTAG_P): Adjust.
7392 (struct tree_memory_tag): Remove base_for_components and
7393 unpartitionable flags.
7394 (struct tree_struct_field_tag): Remove.
7395 (SFT_PARENT_VAR): Likewise.
7396 (SFT_OFFSET): Likewise.
7397 (SFT_SIZE): Likewise.
7398 (SFT_NONADDRESSABLE_P): Likewise.
7399 (SFT_ALIAS_SET): Likewise.
7400 (SFT_UNPARTITIONABLE_P): Likewise.
7401 (SFT_BASE_FOR_COMPONENTS_P): Likewise.
7402 (union tree_node): Remove sft field.
7403 * alias.c (get_alias_set): Remove special handling of SFTs.
7404 * print-tree.c (print_node): Remove handling of SFTs.
7405 * tree-dump.c (dequeue_and_dump): Likewise.
7406 * tree-into-ssa.c (mark_sym_for_renaming): Likewise.
7407 * tree-nrv.c (dest_safe_for_nrv_p): Remove special handling of SFTs.
7408 * tree-predcom.c (set_alias_info): Do not set subvars.
7409 * tree-pretty-print.c (dump_generic_node): Do not handle SFTs.
7410 * tree-ssa-loop-ivopts.c (get_ref_tag): Likewise.
7411 * tree-ssa-operands.c (access_can_touch_variable): Likewise.
7412 (add_vars_for_offset): Remove.
7413 (add_virtual_operand): Remove special handling of SFTs.
7414 (add_call_clobber_ops): Likewise.
7415 (add_call_read_ops): Likewise.
7416 (get_asm_expr_operands): Likewise.
7417 (get_modify_stmt_operands): Likewise.
7418 (get_expr_operands): Likewise.
7419 (add_to_addressable_set): Likewise.
7420 * tree-ssa.c (verify_ssa_name): Do not handle SFTs.
7421 * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
7422 * tree-vect-transform.c (vect_create_data_ref_ptr): Do not set subvars.
7423 * tree.c (init_ttree): Remove STRUCT_FIELD_TAG initialization.
7424 (tree_code_size): Remove STRUCT_FIELD_TAG handling.
7425 (tree_node_structure): Likewise.
7426 * tree-ssa-structalias.c (set_uids_in_ptset): Remove special
7428 (find_what_p_points_to): Likewise.
7430 2008-05-08 Sa Liu <saliu@de.ibm.com>
7432 * config/spu/spu.md: Fixed subti3 pattern.
7434 2008-05-08 Richard Guenther <rguenther@suse.de>
7437 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
7438 sure to create a representative for trailing arrays for PTA.
7440 2008-05-08 Richard Guenther <rguenther@suse.de>
7443 * fold-const.c (operand_equal_p): Two objects which types
7444 differ in pointerness are not equal.
7446 2008-05-08 Kai Tietz <kai.tietz@onevision.com>
7448 * calls.c (compute_argument_block_size): Add argument tree fndecl.
7449 (OUTGOING_REG_PARM_STACK_SPACE): Add function type argument.
7450 (emit_library_call_value_1): Add new variable fndecl initialized by
7451 NULL_TREE. It should be the decl type of orgfun, but this information
7452 seems not to be available here, so it uses the default calling abi.
7453 * config/arm/arm.c (arm_return_in_memory): Add fntype argumen.
7454 * config/arm/arm.h (RETURN_IN_MEMORY): Replace RETURN_IN_MEMORY
7455 by TARGET_RETURN_IN_MEMORY.
7456 * config/i386/i386-interix.h: Likewise.
7457 * config/i386/i386.h: Likewise.
7458 * config/i386/i386elf.h: Likewise.
7459 * config/i386/ptx4-i.h: Likewise.
7460 * config/i386/sol2-10.h: Likewise.
7461 * config/i386/sysv4.h: Likewise.
7462 * config/i386/vx-common.h: Likewise.
7463 * config/cris/cris.h: Removed #if 0 clause.
7464 * config/arm/arm-protos.h (arm_return_in_memory): Add fntype argument.
7465 * config/i386/i386-protos.h (ix86_return_in_memory): Add fntype
7467 (ix86_sol10_return_in_memory): Likewise.
7468 (ix86_i386elf_return_in_memory): New.
7469 (ix86_i386interix_return_in_memory): New.
7470 * config/mt/mt-protos.h (mt_return_in_memory): New.
7471 * config/mt/mt.c: Likewise.
7472 * config/mt/mt.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
7473 (RETURN_IN_MEMORY): Replace by TARGET_RETURN_IN_MEMORY.
7474 * config/bfin/bfin.h: Likewise.
7475 * config/bfin/bfin-protos.h (bfin_return_in_memory): Add fntype
7477 * config/bfin/bfin.c: Likewise.
7478 * config/pa/pa.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
7479 * config/alpha/unicosmk.h: Likewise.
7480 * config/i386/cygming.h: Likewise.
7481 * config/iq2000/iq2000.h: Likewise.
7482 * config/mips/mips.h: Likewise.
7483 * config/mn10300/mn10300.h: Likewise.
7484 * config/rs6000/rs6000.h: Likewise.
7485 * config/score/score.h: Likewise.
7486 * config/spu/spu.h: Likewise.
7487 * config/v850/v850.h: Likewise.
7488 * defaults.h: Likewise.
7489 * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Adjust documentation.
7490 * expr.c (emit_block_move): Adjust use of
7491 OUTGOING_REG_PARM_STACK_SPACE.
7492 * function.c (STACK_DYNAMIC_OFFSET): Adjust use of
7493 OUTGOING_REG_PARM_STACK_SPACE.
7494 * targhooks.c (default_return_in_memory): Remove RETURN_IN_MEMORY.
7496 2008-05-08 Jakub Jelinek <jakub@redhat.com>
7498 * tree-parloops.c (create_parallel_loop): Set OMP_RETURN_NOWAIT
7499 on OMP_RETURN for OMP_FOR.
7502 * dwarf2out.c (dw_expand_expr, common_check): Removed.
7503 (fortran_common): New function.
7504 (gen_variable_die): Call fortran_common instead of common_check,
7505 adjust for it returning tree instead of rtx. Formatting.
7507 2008-05-07 Kenneth Zadeck <zadeck@naturalbridge.com>
7511 * see.c (see_copy_insn): Copy new pure const attributes for new call.
7512 * c-decl.c (merge_decls): Ditto.
7513 * postreload.c (record_opr_changes): Change CONST_OR_PURE_CALL_P
7514 to RTL_CONST_OR_PURE_CALL_P.
7515 * tree.c (define_local_buitin): Rename DECL_IS_PURE to DECL_PURE_P.
7516 Initialized DECL_LOOPING_CONST_PURE.
7517 (process_call_operands): Set tree_side_effects properly.
7518 * tree.h (TREE_READONLY_DECL_P): Removed.
7519 (DECL_IS_PURE): Renamed to DECL_PURE_P.
7520 (DECL_LOOPING_OR_CONST_P): New macro.
7521 (struct tree_function_decl): Added looping_const_or_pure_p.
7523 (ECF_LOOPING_OR_CONST_P): New macro.
7524 * rtlanal.c (pure_const_p): Removed.
7525 * builtins.c (expand_builtin): Rename DECL_IS_PURE to DECL_PURE_P.
7526 * reorg.c (delete_prior_computation) Changed CONST_OR_PURE_CALL_P
7527 to RTL_CONST_CALL_P.
7528 * ipa-pure-const.c (pure_const_state_e): Added looping field.
7529 (check_decl, check_tree, check_call, scan_function): Initialize
7531 (analyze_function): Rename DECL_IS_PURE to DECL_PURE_P.
7532 (static_execute): Set looping true for recursive functions.
7533 Undo setting state to IPA_NEITHER for recursive functions.
7535 * ifcvt.c (noce_can_store_speculate_p): Changed
7536 CONST_OR_PURE_CALL_P and pure_call_p to RTL_CONST_CALL_P or
7537 RTL_CONST_OR_PURE_CALL_P.
7538 * dse.c (scan_insn): Ditto.
7539 * local-alloc.c (validate_equiv_mem, memref_used_between_p): Ditto.
7540 * gcse.c (oprs_not_seen_p) Changed CONST_OR_PURE_CALL_P to
7541 RTL_CONST_OR_PURE_CALL_P.
7542 (store_killed_in_insn): Changed CONST_OR_PURE_CALL_P and
7543 pure_call_p to RTL_CONST_CALL_P.
7544 * gimplify.c (gimplify_call_expr): Clear side effects for
7545 non-looping pure and constant calls.
7546 * calls.c (emit_call_1): Set rtl flags from ecf flags.
7547 (flags_from_decl_or_type): Set ecf flags from decl flags.
7548 (initialize_argument_information): Turn off
7549 ECF_LOOPING_CONST_OR_PURE when turning off ECF_CONST.
7550 Change const to pure if callee_copies is true rather than just
7552 (expand_call): Turn off ECF_LOOPING_PURE_CONST_CALL and remove old
7553 way of marking pure calls.
7554 (emit_library_call_value_1): Turn off ECF_LOOPING_PURE_CONST_CALL.
7555 Remove hack that was supposed to fix pr7335 and remove old
7556 way of marking pure calls.
7557 * emit-rtl.c (emit_copy_of_insn_after): Copy RTL_CONST_CALL_P,
7558 RTL_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P.
7559 * cselib.c (cselib_process_insn): Changed CONST_OR_PURE_CALL_P to
7560 RTL_CONST_OR_PURE_CALL_P.
7561 * tree-ssa-pre.c (can_value_number_call): Fixed spacing.
7562 * loop-invariant.c (find_exits, find_invariant_bb): Changed
7563 CONST_OR_PURE_CALL_P to RTL_CONST_OR_PURE_CALL_P.
7564 * sched-deps.c (schedule_analyze): Ditto.
7565 * rtl.h (struct rtx_def): Use call field, unchanging field, and
7566 return_val field of calls to represent pure and const function info.
7567 (CONST_OR_PURE_CALL_P): Deleted macro.
7568 (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
7569 RTL_LOOPING_CONST_OR_PURE_CALL_P, RTL_CONST_OR_PURE_P): New macros.
7570 * tree-inline.c (copy_body_r): Changed TREE_READONLY_DECL_P to
7572 * tree-optimize.c (execute_fixup_cfg): Added test for
7573 ECF_LOOPING_CONST_OR_PURE.
7574 * c-common.c (handle_pure_attribute): Changed DECL_IS_PURE to
7576 * tree-cfg.c (update_call_expr_flags): Do not clear tree side
7577 effects for looping pure or const calls.
7578 (verify_gimple_expr): Added verification code.
7579 * config/alpha/alpha.c (alpha_legitimize_address,
7580 alpha_emit_xfloating_libcall): Changed CONST_OR_PURE_CALL_P to
7582 * config/s390/s390.c (s390_emit_tls_call_insn): Ditto.
7583 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Ditto.
7584 * config/mips/mips.c (mips_call_tls_get_addr): Ditto.
7585 * cfgrtl.c (need_fake_edge_p): Changed CONST_OR_PURE_CALL_P to
7586 RTL_CONST_OR_PURE_CALL_P.
7587 * dce.c (deletable_insn_p): Allow non looping, non sibling, pure
7588 and const calls to be deleted.
7590 2008-05-07 Uros Bizjak <ubizjak@gmail.com>
7593 * config/i386/mmx.md (mmx_subv2sf3): New expander.
7594 (*mmx_subv2sf3): Rename from mmx_subv2sf3 insn pattern.
7595 (*mmx_eqv2sf3): Rename from mmx_eqv2sf3 insn pattern.
7596 (mmx_eqv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
7597 to handle nonimmediate operands.
7598 (*mmx_paddwd): Rename from mmx_paddwd insn pattern.
7599 (mmx_paddwd): New expander. Use ix86_fixup_binary_operands_no_copy
7600 to handle nonimmediate operands.
7601 (*mmx_pmulhrwv4hi3): Rename from mmx_pmulhrwv4hi3 insn pattern.
7602 (mmx_pmulhrwv4hi3): New expander. Use
7603 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7604 (*sse2_umulv1siv1di3): Rename from sse2_umulv1siv1di3 insn pattern.
7605 (sse2_umulv1siv1di3): New expander. Use
7606 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7607 (*mmx_eq<mode>3): Rename from mmx_eq<mode>3 insn pattern.
7608 (mmx_eq<mode>3): New expander. Use
7609 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7610 (*mmx_uavgv8qi3): Rename from mmx_uavgv8qi3 insn pattern.
7611 (mmx_uavgv8qi3): New expander. Use
7612 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7613 (*mmx_uavgv4hi3): Rename from mmx_uavgv4hi3 insn pattern.
7614 (mmx_uavgv4hi3): New expander. Use
7615 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7617 * config/i386/sse.md
7618 (sse_movhlps_exp): New expander. Use ix86_fixup_binary_operands
7619 to handle nonimmediate operands.
7620 (sse_movlhps_exp): New expander. Use ix86_fixup_binary_operands
7621 to handle nonimmediate operands.
7622 (sse_loadhps_exp): New expander. Use ix86_fixup_binary_operands
7623 to handle nonimmediate operands.
7624 (sse_loadlps_exp): New expander. Use ix86_fixup_binary_operands
7625 to handle nonimmediate operands.
7626 (sse2_unpckhpd_exp): New expander. Use
7627 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7628 (sse2_unpcklpd_exp): New expander. Use
7629 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7630 (sse_loadhpd_exp): New expander. Use ix86_fixup_binary_operands
7631 to handle nonimmediate operands.
7632 (sse_loadlpd): New expander. Use ix86_fixup_binary_operands
7633 to handle nonimmediate operands.
7634 (*sse2_<plusminus_insn><mode>3): Rename from
7635 sse2_<plusminus_insn><mode>3 insn pattern.
7636 (sse2_<plusminus_insn><mode>3): New expander. Use
7637 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7638 (*sse2_umulv2siv2di3): Rename from sse2_umulv2siv2di3 insn pattern.
7639 (sse2_umulv2siv2di3): New expander. Use
7640 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7641 (*sse4_1_mulv2siv2di3): Rename from sse4_1_mulv2siv2di3 insn pattern.
7642 (sse4_1_mulv2siv2di3): New expander. Use
7643 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7644 (*sse2_pmaddwd): Rename from sse2_pmaddwd insn pattern.
7645 (sse2_pmaddwd): New expander. Use
7646 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7647 (*sse2_eq<mode>3): Rename from sse2_eq<mode>3 insn pattern.
7648 (sse2_eq<mode>3): New expander. Use
7649 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7650 (*sse4_1_eqv2di3): Rename from sse4_1_eqv2di3 insn pattern.
7651 (sse4_1_eqv2di3): New expander. Use
7652 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7653 (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
7654 (sse2_uavgv16qi3): New expander. Use
7655 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7656 (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
7657 (sse2_uavgv16qi3): New expander. Use
7658 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7659 (*sse2_uavgv8hi3): Rename from sse2_uavgv8hi3 insn pattern.
7660 (sse2_uavgv8hi3): New expander. Use
7661 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7662 (*ssse3_pmulhrswv8hi3): Rename from ssse3_pmulhrswv8hi3 insn pattern.
7663 (ssse3_pmulhrswv8hi3): New expander. Use
7664 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7665 (*ssse3_pmulhrswv4hi3): Rename from ssse3_pmulhrswv4hi3 insn pattern.
7666 (ssse3_pmulhrswv4hi3): New expander. Use
7667 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7669 (<sse>_vm<plusminus_insn><mode>3): Do not use ix86_binary_operator_ok.
7670 (<sse>_vmmul<mode>3): Ditto.
7671 (divv4sf3): Do not use ix86_fixup_binary_operands_no_copy.
7673 (ssse3_pmaddubsw128): Use register_operand for operand 1.
7674 (ssse3_pmaddubsw): Ditto.
7676 * config/i386/i386.c (struct_builtin_description)
7677 [IX86_BUILTIN_LOADHPS]: Use CODE_FOR_sse_loadhps_exp.
7678 [IX86_BUILTIN_STOREHPS]: Use CODE_FOR_sse_loadlps_exp.
7679 [IX86_BUILTIN_LOADHPD]: Use CODE_FOR_sse2_loadhpd_exp.
7680 [IX86_BUILTIN_LOADLPD]: Use CODE_FOR_sse2_loadlpd_exp.
7681 [IX86_BUILTIN_MOVHLPS]: Use CODE_FOR_sse_movhlps_exp.
7682 [IX86_BUILTIN_MOVLHPS]: Use CODE_FOR_sse_movlhps_exp.
7683 [IX86_BUILTIN_UNPCKHPD]: Use FOR_sse2_unpckhpd_exp.
7684 [IX86_BUILTIN_UNPCKLPD]: Use FOR_sse2_unpcklpd_exp.
7685 (ix86_fixup_binary_operands): Assert that src1
7686 and src2 must have the same mode when swapped.
7687 (ix86_expand_binop_builtin): Do not use ix86_fixup_binary_operands
7688 and ix86_binary_operator_ok. Do not force operands in registers
7691 2008-05-07 Jan Hubicka <jh@suse.cz>
7693 * cgraph.c (dump_cgraph_node): Update.
7694 * cgraph.h (cgraph_local_info): Break out inline summary.
7695 * cgraphunit.c (cgraph_process_new_functions): Use inliner analysis
7697 * ipa-inline (inline_summary): New accestor function.
7698 (cgraph_clone_inlined_nodes, cgraph_check_inline_limits,
7699 cgraph_decide_inlining, compute_inline_parameters): Update.
7700 * ipa.c (cgraph_remove_unreachable_nodes): Remove statistics.
7702 2008-05-07 Maxim Kuvyrkov <maxim@codesourcery.com>
7704 Cleanup ColdFire scheduling support and add V4 pipeline model.
7706 * config/m68k/m68k.md (UNSPEC_TIE): New constant.
7707 (define_attr cpu): Add cfv4 value.
7708 (define_attr type, define_attr type1): Merge into a single 'type'
7709 attribute. Update all uses.
7710 (define_attr opx_type, define_attr opy_type, define_attr opx_access):
7711 Rearrange and update. Rename value 'reg' to 'Rn', add value 'FPn'.
7713 (define_attr opx_mem, define_attr opy_mem): Remove.
7714 (define_attr op_mem): Clean up, update comment.
7715 (define_attr size): Use specific values instead of general int.
7716 (define_attr guess, define_attr split): Remove. Update all uses.
7717 (movdf_internal, tstsi_internal, tsthi_internal, tstqi_internal,
7718 tst<mode>_68881, pushexthisi_const, movsi_const0_68000_10,
7719 movsi_const0_68040_60, movsi_const0, movsi_cf, movstrictqi_cf,
7720 zero_extendhisi2_cf, zero_extendqisi2_cfv4, cfv4_extendhisi2,
7721 68k_extendhisi2, extendqihi2, cfv4_extendqisi2, 68k_extendqisi2,
7722 floatsi<mode>2_68881, ftrunc<mode>2_68881, ftrunc<mode>2_cf,
7723 fix<mode>qi2_68881, fix<mode>hi2_68881, fix<mode>si2_68881,
7724 adddi_dishl32, addsi3_5200, add<mode>3_floatsi_68881,
7725 add<mode>3_floathi_68881, add<mode>3_floatqi_68881,
7726 add<mode>3_68881, add<mode>3_cf, subdi_dishl32, subsi3,
7727 sub<mode>3_floatsi_68881, sub<mode>3_floathi_68881,
7728 sub<mode>3_floatqi_68881, sub<mode>3_68881, sub<mode>3_cf,
7729 mulhi3, mulhisi3, mulhisisi3_s, mulsi3_68020, mulsi3_cf,
7730 umulhisi3, mulhisisi3_z, mul<mode>3_floatsi_68881,
7731 mul<mode>3_floathi_68881, mul<mode>3_floatqi_68881, fmul<mode>3_cf,
7732 div<mode>3_cf, sqrt<mode>2_cf, abs<mode>2_cf, clzsi2,
7733 one_cmplsi2_5200, subreghi1ashrdi_const32, ashrsi3, lshrsi3,
7734 bsetmemqi, bsetmemqi_ext, bclrmemqi, bclrmemqi_ext,
7735 beq, bne, bgt, blt, bordered, bunordered, buneq, bunge, bungt, bunle,
7736 bunlt, bltgt, tablejump_internal, call, non_symbolic_call_value,
7737 symbolic_call_value_jsr, symbolic_call_value_bsr, link):
7738 Update or set attributes.
7739 (stack_tie): New fake instruction.
7741 * config/m68k/m68k.h (TUNE_CFV4): New macro.
7742 (m68k_sched_attr_size): Update declaration.
7743 (m68k_sched_attr_type2): Remove.
7744 (m68k_sched_address_bypass_p, m68k_sched_indexed_address_bypass_p):
7745 Declare new bypass predicates.
7747 * config/m68k/m68k.c (m68k_sched_issue_rate,
7748 m68k_sched_first_cycle_multipass_dfa_lookahead): Declare hook
7750 (TARGET_SCHED_ISSUE_RATE,
7751 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Override hooks.
7752 (override_options): Handle scheduling for ColdFire V4 core.
7753 (m68k_expand_prologue): Emit stack_tie.
7754 (enum attr_op_type): Split value 'OP_TYPE_REG' to 'OP_TYPE_RN' and
7755 'OP_TYPE_FPN'. Update all uses.
7756 (sched_guess_p): Remove.
7757 (sched_address_type): Handle symbolic addresses.
7758 (sched_get_operand): New static function.
7759 (sched_operand_type): Merge into sched_attr_op_type.
7760 (sched_attr_op_type): Handle FP registers, handle quick constants,
7762 (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type): Update.
7763 (m68k_sched_attr_size): Update. Move logic to ...
7764 (sched_get_attr_size_int): New static function.
7765 (sched_get_opxy_mem_type): New static function.
7766 (m68k_sched_attr_op_mem): Update.
7767 (m68k_sched_attr_type2): Remove.
7768 (sched_cfv4_bypass_data): New static variable.
7769 (m68k_sched_adjust_cost): Handle ColdFire V4 bypass.
7770 (m68k_sched_issue_rate): Implement scheduler hook.
7771 (struct _sched_ib: enabled_p): New field.
7772 (m68k_sched_variable_issue): Update. Handle V4.
7773 (SCHED_DUMP_TODO, SCHED_DUMP_DONE, SCHED_DUMP_NOTHING,
7774 sched_dump_class_func_t, sched_dump_split_class,
7775 sched_dump_dfa_guess_unit_code, sched_dump_dfa_state,
7776 sched_dump_dfa_class, m68k_sched_dump): Remove.
7777 (m68k_sched_first_cycle_multipass_dfa_lookahead): Implement scheduler
7779 (m68k_sched_init_global): Remove statisctics dumping, introduce
7780 sanity check that all instructions have pipeline reservations. Handle
7782 (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
7783 Handle ColdFire V4 core.
7784 (sched_mem_operand_p, sched_get_reg_operand, sched_get_mem_operand):
7785 New static functions.
7786 (m68k_sched_address_bypass_p): New bypass predicate.
7787 (sched_get_indexed_address_scale): New static function.
7788 (m68k_sched_indexed_address_bypass_p): New bypass predicate.
7790 * cf.md: Update comments.
7791 (define_attr type2): Remove. Use 'type' attribute instead.
7793 (cf_ib): Rename to cfv123_ib. Update all uses.
7794 (cf_oep): Rename to cfv123_oep. Update all uses.
7795 (cf_chr): Rename to cfv123_chr. Update all uses.
7796 (cf_mem): Rename to cfv123_mem. Update all uses.
7797 (cf_mac): Move to more appropriate place.
7798 (cfv123_guess): New automaton and cpu_unit.
7799 (cfv123_*, cfv12_*, cfv1_*, cfv2_*, cfv3_*): Use type attribute.
7800 Update uses of 'size' attribute. Handle before reload scheduling.
7801 (cfv123_guess): New dummy reservation for unhandled instructions.
7802 (cfv4_*): Pipeline description of ColdFire V4 core.
7803 (ignore): New reservation to handle 'ignore' type.
7805 2008-05-07 Ian Lance Taylor <iant@google.com>
7808 * gimplify.c (find_single_pointer_decl_1): Don't look through
7810 (find_single_pointer_decl): Adjust comments.
7812 2008-05-07 Jakub Jelinek <jakub@redhat.com>
7815 * fold-const.c (fold_binary): Use STRIP_SIGN_NOPS instead of
7816 STRIP_NOPS on arguments even for MIN_EXPR and MAX_EXPR.
7819 * omp-low.c (expand_omp_atomic_pipeline): Load value using the
7820 integral type rather than floating point, then VIEW_CONVERT_EXPR
7821 to the floating point type.
7823 2008-05-07 Uros Bizjak <ubizjak@gmail.com>
7825 * config/i386/i386.c (ix86_expand_copysign): Force non-zero constant
7826 TFmode op0 to register.
7828 2008-05-07 Alan Modra <amodra@bigpond.net.au>
7830 * c-decl.c (grokdeclarator): Comment typo.
7832 2008-05-06 Aldy Hernandez <aldyh@redhat.com>
7834 * tree-flow.h: Remove prototype for computed_goto_p.
7835 * tree-cfg.c (computed_goto_p): Make static.
7837 2008-05-06 H.J. Lu <hongjiu.lu@intel.com>
7840 * config/i386/i386.c (contains_128bit_aligned_vector_p): Renamed to ...
7841 (contains_aligned_value_p): This. Handle _Decimal128.
7842 (ix86_function_arg_boundary): Only align _Decimal128 to its
7843 natural boundary and handle it properly.
7845 2008-05-06 Martin Jambor <mjambor@suse.cz>
7847 * ipa-cp.c (ipcp_method_orig_node): Renamed to ipcp_get_orig_node.
7848 (ipcp_method_is_cloned): Renamed to ipcp_node_is_clone
7849 (ipcp_method_set_orig_node): Removed.
7850 (ipcp_cval_get_cvalue_type): Removed.
7851 (ipcp_method_get_scale): Renamed to ipcp_get_node_scale.
7852 (ipcp_method_set_scale): Renamed to ipcp_set_node_scale.
7853 (ipcp_cval_set_cvalue_type): Removed.
7854 (ipcp_cval_get_cvalue): Removed.
7855 (ipcp_cval_set_cvalue): Removed.
7856 (ipcp_type_is_const): Renamed to ipcp_lat_is_const.
7857 (ipcp_cval_equal_cvalues): Renamed to ipcp_lats_are_equal
7858 (ipcp_lats_are_equal): Changed parameters to two ipcp_lattice's
7859 (ipcp_cval_meet): Renamed to ipa_lattice_meet
7860 (ipcp_cval_changed): Changed to use ipcp_lat_is_const
7861 (ipcp_method_cval): Renamed to ipcp_get_ith_lattice
7862 (ipcp_get_ith_lattice): Changed parameters.
7863 (ipcp_cval_compute): Renamed to ipcp_lattice_from_jfunc
7864 (ipcp_lattice_from_jfunc): Changed parameters.
7865 (ipcp_redirect): Local lattice pointer instead of lattice type variable.
7866 (ipcp_method_cval_print): Added temporary variable info.
7867 (ipcp_redirect): Removed already unused local variable caller.
7868 (ipcp_redirect): New temporary variable orig_callee_info
7869 (ipcp_redirect): Removed newly unused local variable callee.
7870 (ipcp_redirect): Removed (a bit confusing) local variable type.
7871 (ipcp_insert_stage): Added local variable info.
7872 (ipcp_cval_changed): Renamed to ipcp_lattice_changed, parameters
7874 (ipcp_formal_create): Removed.
7875 (ipcp_method_cval_set): Removed.
7876 (ipcp_propagate_stage): Renamed lattice variables.
7877 (ipcp_method_cval_set_cvalue_type): Removed.
7878 (ipcp_method_cval_print): Renamed to ipcp_print_all_lattices
7879 (ipcp_print_all_lattices): Changed printed strings to refer to
7880 lattices rather than cvals.
7881 (ipcp_method_cval_init): Renamed to ipcp_initialize_node_lattices
7882 (ipcp_propagate_const): Changed formal parameters.
7883 (build_const_val): Changed formal parameters.
7884 (ipcp_insert_stage): Removed useless variable cvalue
7885 (build_const_val): Changed formal parameters.
7886 (ipcp_method_compute_scale): Renamed to ipcp_compute_node_scale
7887 (ipcp_after_propagate): Renamed to ipcp_change_tops_to_bottom
7888 (ipcp_callsite_param_print): Renamed to ipcp_print_all_jump_functions
7889 (ipcp_profile_mt_count_print): Renamed to ipcp_print_func_profile_counts
7890 (ipcp_print_func_profile_counts): Changed string from "method" to
7892 (ipcp_profile_cs_count_print): Renamed to ipcp_print_call_profile_counts
7893 (ipcp_profile_edge_print): Renamed to ipcp_print_edge_profiles
7894 (ipcp_profile_bb_print): Renamed to ipcp_print_bb_profiles
7895 (ipcp_structures_print): Renamed to ipcp_print_all_structures
7896 (ipcp_profile_print): Renamed to ipcp_print_profile_data
7897 (ipcp_lat_is_const): Changed parameters and made inline.
7898 (ipcp_replace_map_create): Renamed to ipcp_create_replace_map
7899 (ipcp_redirect): Renamed to ipcp_need_redirect_p
7900 (ipcp_need_redirect_p): Calls ipcp_lat_is_const instead of using
7901 the predicate condition directly
7902 (ipcp_propagate_stage): Added local variable args. Removed local
7903 variable callee. (Both are mere code simplifications.)
7904 (ipcp_method_dont_insert_const): Renamed to
7905 ipcp_node_not_modifiable_p.
7906 (ipcp_node_not_modifiable_p): Made inline.
7907 (ipcp_cloned_create): Renamed to ipcp_init_cloned_node
7908 (ipcp_propagate_const): Renamed to ipcp_propagate_one_const
7909 (ipcp_print_all_lattices): Removed variable cvalue
7910 (ipcp_method_scale_print): Renamed to ipcp_function_scale_print
7913 2008-05-06 Olivier Hainque <hainque@adacore.com>
7915 * tree-sra.c (try_instantiate_multiple_fields): Early return
7916 if field has POINTER_TYPE.
7918 2008-05-06 Kai Tietz <kai.tietz@onevision.com>
7920 * config/i386/i386.c (output_set_got): Fix for x86_64 output_emit_asm
7921 by using 'q' specifier for instruction.
7922 (ix86_file_end): Replaced case TARGET_64BIT_MS_ABI by TARGET_64BIT.
7924 2008-05-06 Anatoly Sokolov <aesok@post.ru>
7926 * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
7927 Change mode of zero_extract from QImode to HImode.
7928 (sign bit tests peepholes): (Ditto.).
7930 2008-05-06 Uros Bizjak <ubizjak@gmail.com>
7932 * config/i386/mmx.md: Remove double backslashes from asm templates.
7933 (*mmx_addv2sf3): Rename from mmx_addv2sf3 insn pattern.
7934 (mmx_addv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
7935 to handle nonimmediate operands.
7936 (*mmx_mulv2sf3): Rename from mmx_mulv2sf3 insn pattern.
7937 (mmx_mulv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
7938 to handle nonimmediate operands.
7939 (*mmx_<code>v2sf3_finite): New insn pattern.
7940 (*mmx_<code>v2sf3): Rename from mmx_<code>v2sf3 insn pattern.
7941 (mmx_<code>v2sf3): New expander. Use
7942 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7943 (mmx_<plusminus_insn><mode>3): New expander. Use
7944 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7945 (*mmx_<plusminus_insn><mode>3): New insn pattern.
7946 (mmx_add<mode>3): Removed.
7947 (mmx_ssadd<mode>3): Ditto.
7948 (mmx_usadd<mode>3): Ditto.
7949 (mmx_sub<mode>3): Ditto.
7950 (mmx_sssub<mode>3): Ditto.
7951 (mmx_ussub<mode>3): Ditto.
7952 (*mmx_mulv4hi3): Rename from mmx_mulv4hi3 insn pattern.
7953 (mmx_mulv4hi3): New expander. Use ix86_fixup_binary_operands_no_copy
7954 to handle nonimmediate operands.
7955 (*mmx_smulv4hi3_highpart): Rename from mmx_smulv4hi3_highpart
7957 (mmx_smulv4hi3_highpart): New expander. Use
7958 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7959 (*mmx_umulv4hi3_highpart): Rename from mmx_umulv4hi3_highpart
7961 (mmx_umulv4hi3_highpart): New expander. Use
7962 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7963 (*mmx_<code>v4hi3): Rename from mmx_<code>v4hi3 insn pattern.
7964 (mmx_<code>v4hi3): New expander. Use
7965 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7966 (*mmx_<code>v8qi3): Rename from mmx_<code>v8qi3 insn pattern.
7967 (mmx_<code>v8qi3): New expander. Use
7968 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7969 (*mmx_<code><mode>3): Rename from mmx_<code><mode>3 insn pattern.
7970 (mmx_<code><mode>3): New expander. Use
7971 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7973 2008-05-05 Jan Hubicka <jh@suse.cz>
7975 PR tree-optimization/36118
7976 * passes.c (pass_init_dump_file): Fix dump header.
7978 2008-05-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
7981 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't create
7982 VCE for function decls.
7984 2008-05-05 H.J. Lu <hongjiu.lu@intel.com>
7986 * config/i386/sse.md (sse2_<plusminus_insn><mode>3): Fix a typo.
7988 2008-05-05 H.J. Lu <hongjiu.lu@intel.com>
7990 * config/i386/i386.md (sat_plusminus): New.
7991 (plusminus_insn): Likewise.
7992 (plusminus_mnemonic): Likewise.
7994 (comm): Add ss_plus, us_plus, ss_minus and us_minus.
7995 (*<addsub><mode>3_cc_overflow): Renamed to ...
7996 (*<plusminus_insn><mode>3_cc_overflow): This.
7997 (*<addsub>si3_zext_cc_overflow): Renamed to ...
7998 (*<plusminus_insn>si3_zext_cc_overflow): This.
8000 * config/i386/sse.md (<addsub><mode>3): Renamed to ...
8001 (<plusminus_insn><mode>3): This.
8002 (*<addsub><mode>3): Renamed to ...
8003 (*<plusminus_insn><mode>3): This.
8004 (<sse>_vm<addsub><mode>3): Renamed to ...
8005 (<sse>_vm<plusminus_insn><mode>3): This.
8006 (sse3_h<addsub>v4sf3): Renamed to ...
8007 (sse3_h<plusminus_insn>v4sf3): This.
8008 (sse3_h<addsub>v2df3): Renamed to ...
8009 (sse3_h<plusminus_insn>v2df3): This.
8010 (<plusminus_insn><mode>3): New.
8011 (*<plusminus_insn><mode>3): Likewise.
8012 (sse2_<plusminus_insn><mode>3): Likewise.
8013 (add<mode>): Removed.
8014 (*add<mode>3): Likewise.
8015 (sse2_ssadd<mode>3): Likewise.
8016 (sse2_usadd<mode>3): Likewise.
8017 (sub<mode>3): Likewise.
8018 (*sub<mode>3): Likewise.
8019 (sse2_sssub<mode>3): Likewise.
8020 (sse2_ussub<mode>3): Likewise.
8022 2008-05-05 Benjamin Kosnik <bkoz@redhat.com>
8024 * gthr-single.h: Add in required interface elements as per gthr.h.
8025 Add stub types for __gthread_key_t, __gthread_once_t. Add defines
8026 for __GTHREAD_ONCE_INIT, __GTHREAD_RECURSIVE_MUTEX_INIT.
8027 Generalize UNUSED macro.
8028 (__gthread_once): Add.
8029 (__gthread_key_create): Add.
8030 (__gthread_key_delete): Add.
8031 (__gthread_getspecific): Add.
8032 (__gthread_setspecific): Add.
8034 2008-05-05 Andrew Pinski <Andrew.Pinski@playstation.sony.com>
8036 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If we have
8037 the same size types for the indirect reference on the rhs, then
8040 2008-05-05 Uros Bizjak <ubizjak@gmail.com>
8042 * config/i386/i386.md
8043 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Use only
8044 one insn template instead of template series.
8045 (*xordi_1_rex64): Ditto.
8046 (*xordi_2_rex64): Ditto.
8048 2008-05-05 Ira Rosen <irar@il.ibm.com>
8050 PR tree-optimization/36119
8051 * tree-vect-transform.c (vectorizable_assignment): Set NCOPIES to 1
8054 2008-06-04 Jan Hubicka <jh@suse.cz>
8056 tree-optimization/36100
8057 * tree-pass.h (pass_O0_always_inline): Declare.
8058 * ipa-inline.c (inline_transform): Remove dead code.
8059 (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
8060 pass_O0_always_inline): New.
8061 * passes.c (init_optimization_passes): Add pass_O0_always_inline.
8063 2008-05-04 Kai Tietz <kai.tietz@onevision.com>
8065 * config/i386/i386.c (x86_output_mi_thunk): Use movq alternative
8066 mnemonic in this_param move for TARGET_64BIT.
8068 2008-05-04 Uros Bizjak <ubizjak@gmail.com>
8070 * config/i386/i386.md (*strmovsi_1): Simplify asm alternatives.
8071 (*strmovsi_rex_1): Ditto.
8072 (*strsetsi_1): Ditto.
8073 (*strsetsi_rex_1): Ditto.
8075 (add<mode>cc): Macroize expander from addqicc, addhicc, addsicc and
8076 adddicc expanders using SWI mode iterator.
8078 2008-05-04 H.J. Lu <hongjiu.lu@intel.com>
8081 * config/i386/i386.c (ix86_expand_special_args_builtin): Remove three
8084 2008-05-04 David S. Miller <davem@davemloft.net>
8086 * config.gcc (sparc*-*-*): Always set need_64bit_hwint to yes.
8087 (sparc*-*-linux*): Use linux.h in tm_file.
8088 (sparc-*-linux*): If 'enabled_targets' is 'all', build a bi-arch
8089 compiler defaulting to 32-bit.
8090 (sparc*-*-*): Remove explicit target settings of need_64bit_hwint,
8092 * config/sparc/linux.h: Remove definitions now obtained
8093 properly from linux.h
8094 * config/sparc/linux64.h: Likewise.
8095 (ASM_CPU_DEFAULT_SPEC): Change this to ASM_CPU64_DEFAULT_SPEC, we
8096 don't want this setting for 32-bit builds in a biarch compiler.
8097 * doc/install.texi: Add sparc-linux to list of targets
8098 supporting --enable-targets=all.
8100 2008-05-03 Andrew Pinski <pinskia@gmail.com>
8102 * Makefile.in (tree-ssa-phiprop.o): Fix dependencies.
8104 2008-05-03 H.J. Lu <hongjiu.lu@intel.com>
8106 * config/i386/i386.c (ix86_builtin_type): Move V4SI_FTYPE_V4SF
8107 after V4SI_FTYPE_V8HI.
8108 (ix86_init_mmx_sse_builtins): Move case V4HI_FTYPE_V4HI after
8109 case V4SI_FTYPE_V2DF.
8111 2008-05-03 Kenneth Zadeck <zadeck@naturalbridge.com>
8113 * doc/invoke.texi (max-flow-memory-locations): Removed.
8114 * params.def (PARAM_MAX_FLOW_MEMORY_LOCATIONS): Removed.
8116 2008-05-03 Richard Guenther <rguenther@suse.de>
8119 * opts.c (set_Wstrict_aliasing): Handle the turn-off case.
8121 2008-05-02 David S. Miller <davem@davemloft.net>
8123 * config.gcc (need_64bit_hwint): Document libcpp dependency.
8125 2008-05-02 Simon Baldwin <simonb@google.com>
8128 * c-common.h (warn_array_subscript_range): Removed.
8129 * c-common.c (warn_array_subscript_range): Ditto.
8130 * tree-vrp.c (check_array_ref): Revert to ignoring arrays with size 2.
8131 * c-typeck.c (build_array_ref): Remove warn_array_subscript_range.
8133 2008-05-02 H.J. Lu <hongjiu.lu@intel.com>
8135 * config/i386/i386.c (ix86_special_builtin_type): New.
8136 (bdesc_special_args): Likewise.
8137 (ix86_expand_special_args_builtin): Likewise.
8138 (ix86_init_mmx_sse_builtins): Updated.
8139 (ix86_expand_builtin): Updated.
8140 (ix86_expand_store_builtin): Removed.
8141 (ix86_expand_unop_builtin): Likewise.
8143 * config/i386/mm3dnow.h (__v2sf): Moved to ...
8144 * config/i386/mmintrin.h (__v2sf): Here.
8146 * config/i386/xmmintrin.h (_mm_loadh_pi): Replace __v2si with
8148 (_mm_loadl_pi): Likewise.
8149 (_mm_storeh_pi): Replace __v2si with __v2sf.
8150 (_mm_storel_pi): Likewise.
8152 * doc/extend.texi: Correct __builtin_ia32_loadhps,
8153 __builtin_ia32_loadlps, __builtin_ia32_storehps,
8154 __builtin_ia32_storelps, __builtin_ia32_loadhpd and
8155 __builtin_ia32_loadlpd.
8157 2008-05-02 H.J. Lu <hongjiu.lu@intel.com>
8159 * config/i386/i386.c (ix86_builtin_type): Add FLOAT_FTYPE_FLOAT,
8160 V4SF_FTYPE_V4SF_VEC_MERGE and V2DF_FTYPE_V2DF_VEC_MERGE.
8161 (bdesc_args): Updated. Add scalar SSE builtins with vec_merge.
8162 (ix86_init_mmx_sse_builtins): Updated.
8163 (ix86_expand_args_builtin): Likewise.
8164 (ix86_expand_builtin): Likewise.
8165 (ix86_expand_unop1_builtin): Renamed to ...
8166 (ix86_expand_unop_vec_merge_builtin): This.
8168 2008-05-01 Jan Hubicka <jh@suse.cz>
8171 * ipa-inline.c (inline_generate_summary): Make static.
8172 (inline_transform): Do not call inlining at -O0; make static.
8173 * passes.c (execute_todo): Add sanity check.
8174 (execute_one_ipa_transform_pass): Execute proper flags.
8176 2008-05-01 Eric Botcazou <ebotcazou@adacore.com>
8178 * tree.h (TYPE_NONALIASED_COMPONENT): Expand comment.
8179 (DECL_NONADDRESSABLE_P): Likewise.
8180 * alias.c (record_component_aliases): Fix comment.
8182 2008-05-01 Simon Baldwin <simonb@google.com>
8184 * c-common.h (warn_array_subscript_range): New function.
8185 * c-common.c (warn_array_subscript_range): Ditto.
8186 * tree-vrp.c (check_array_ref): Corrected code to agree with
8187 comment, ignoring only arrays of size 0 or size 1.
8188 * c-typeck.c (build_array_ref): Call warn_array_subscript_range.
8190 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
8192 * config/i386/i386.c (ix86_builtin_type): Replace
8193 DI_FTYPE_DI_DI_INT with V1DI2DI_FTYPE_V1DI_V1DI_INT.
8194 (bdesc_args): Updated.
8195 (ix86_init_mmx_sse_builtins): Likewise.
8196 (ix86_expand_args_builtin): Likewise.
8198 * config/i386/tmmintrin.h (_mm_alignr_pi8): Replace long long
8201 * doc/extend.texi: Correct __builtin_ia32_palignr.
8203 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
8206 * config/i386/i386.c (bdesc_crc32): Removed.
8207 (ix86_expand_crc32): Likewise.
8208 (ix86_builtin_type): Replace V2DI2TI_FTYPE_V2DI2TI_INT with
8209 V2DI2TI_FTYPE_V2DI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT with
8210 V2DI2TI_FTYPE_V2DI_V2DI_INT. Add UINT64_FTYPE_UINT64_UINT64,
8211 UINT_FTYPE_UINT_UINT, UINT_FTYPE_UINT_USHORT and
8212 UINT_FTYPE_UINT_UCHAR.
8213 (bdesc_args): Updated. Add crc32 builtins.
8214 (ix86_init_mmx_sse_builtins): Updated.
8215 (ix86_expand_args_builtin): Updated to support subreg.
8217 * doc/extend.texi: Correct __builtin_ia32_crc32di.
8219 2008-05-01 Jan Hubicka <jh@suse.cz>
8221 * tree-pass.h (opt_pass): Add IPA_PASS.
8222 (varpool_node, cgraph_node): Forward declare.
8223 (ipa_opt_pass): Define.
8224 (pass_ipa_inline): Turn into ipa_opt_pass.
8225 (pass_apply_inline): Remove.
8226 * ipa-inline.c (pass_ipa_inline): Turn into ipa_opt_pass.
8227 (apply_inline): Turn into ....
8228 (inline_transform): ... this one.
8229 (inline_generate_summary): New function.
8230 (pass_apply_inline): Remove.
8231 * function.h (ipa_opt_pass): Forward declare structure; typedef;
8233 (struct function): Add ipa_transforms_to_apply.
8234 * passes.c (register_one_dump_file): Work on IPA_PASS.
8235 (init_optimization_passes): Remove pass_inline_parameters and
8237 (pass_init_dump_file, pass_fini_dump_file): Break out from ....
8238 (execute_one_pass) ... here; apply transforms when possible.
8239 (add_ipa_transform_pass, execute_ipa_summary_asses,
8240 execute_one_ipa_transform_pass): New.
8241 (execute_ipa_pass_list): Update for IPA_PASS type.
8243 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
8245 * config/i386/i386.c (ix86_builtin_type): Add
8246 V2DI_FTYPE_V2DI_V16QI, V2DI_FTYPE_V2DI_UINT_UINT and
8247 V2DI_FTYPE_V2DI_V2DI_UINT_UINT.
8248 (bdesc_args): Add SSE4a builtins.
8249 (ix86_init_mmx_sse_builtins): Updated.
8250 (ix86_expand_args_builtin): Likewise.
8251 (ix86_expand_builtin): Likewise.
8253 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
8255 * config/i386/i386.c (ix86_builtin_type): Add
8256 V8HI_FTYPE_V8HI_V8HI_COUNT, V8HI_FTYPE_V8HI_SI_COUNT,
8257 V4SI_FTYPE_V4SI_V4SI_COUNT, V4SI_FTYPE_V4SI_SI_COUNT,
8258 V4HI_FTYPE_V4HI_V4HI_COUNT, V4HI_FTYPE_V4HI_SI_COUNT,
8259 V2DI_FTYPE_V2DI_V2DI_COUNT, V2DI_FTYPE_V2DI_SI_COUNT,
8260 V2SI_FTYPE_V2SI_V2SI_COUNT, V2SI_FTYPE_V2SI_SI_COUNT,
8261 V1DI_FTYPE_V1DI_V1DI_COUNT, V1DI_FTYPE_V1DI_SI_COUNT,
8262 V8HI_FTYPE_V8HI_INT, V4SI_FTYPE_V4SI_INT, V4HI_FTYPE_V4HI_INT,
8263 V2DI2TI_FTYPE_V2DI2TI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT
8264 and DI_FTYPE_DI_DI_INT.
8265 (bdesc_args): Add MMX/SSE shift, shuffle and palignr builtins.
8266 (ix86_init_mmx_sse_builtins): Updated.
8267 (ix86_expand_args_builtin): Likewise.
8268 (ix86_expand_builtin): Likewise.
8269 (ix86_expand_binop_imm_builtin): Removed.
8271 * doc/extend.texi: Correct __builtin_ia32_palignr128.
8273 2008-04-30 Richard Guenther <rguenther@suse.de>
8275 PR tree-optimization/32921
8276 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Disambiguate with TBAA.
8278 2008-04-30 Richard Sandiford <rsandifo@nildram.co.uk>
8280 * config/arm/arm.c (arm_unwind_emit): Use
8281 crtl->all_throwers_are_sibcalls instead of
8282 cfun->all_throwers_are_sibcalls.
8283 (arm_output_fn_unwind): Likewise.
8284 * config/frv/frv.c (frv_stack_info): Use crtl->uses_pic_offset_table
8285 instead of cfun->uses_pic_offset_table.
8286 (frv_expand_prologue): Likewise.
8287 (frv_frame_pointer_required): Likewise.
8288 (frv_expand_fdpic_call): Likewise.
8289 (frv_emit_movsi): Likewise.
8290 * config/iq2000/iq2000.c (iq2000_expand_prologue): Use
8291 cfun->returns_pcc_struct instead of
8292 current_function_returns_pcc_struct.
8293 * config/m32c/m32c.c (need_to_save): Use crtl->calls_eh_return
8294 instead of cfun->calls_eh_return.
8295 (m32c_pushm_popm): Likewise.
8296 * config/xtensa/xtensa.h (cfun->calls_alloca): Remove bogus
8297 "extern" declaration.
8299 2008-04-30 Richard Guenther <rguenther@suse.de>
8301 PR tree-optimization/21636
8302 * tree-ssa-ccp.c (ccp_fold): Handle &p->x with p being a
8304 (evaluate_stmt): Print the likely value.
8305 (ccp_visit_stmt): Avoid excessive vertical spacing.
8307 2008-04-30 Rafael Espindola <espindola@google.com>
8309 * builtins.c (fold_call_expr): Return realret.
8310 * tree-ssa-threadedge.c
8311 (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
8312 __builtin_object_size.
8314 2008-04-30 Seongbae Park <seongbae.park@gmail.com>
8316 * gcc.c (wrapper_string): New variable.
8317 (insert_wrapper): New function.
8318 (execute): New option -wrapper.
8319 * doc/invoke.texi (Overall Options): New driver option -wrapper.
8321 2008-04-30 Nathan Froyd <froydnj@codesourcery.com>
8323 * config/rs6000/crtresgpr.asm, config/rs6000/crtresxgpr.asm,
8324 config/rs6000/crtsavgpr.asm, config/rs6000/crtresfpr.asm,
8325 config/rs6000/crtresxfpr.asm, config/rs6000/crtsavfpr.asm: Break out
8327 * config/rs6000/crtsavres.asm: ...here. Remove unneeded file.
8328 * config/rs6000/e500crtres32gpr.asm, config/rs6000/e500crtres64gpr.asm,
8329 config/rs6000/e500crtres64gprctr.asm,
8330 config/rs6000/e500crtrest32gpr.asm, config/rs6000/e500crtrest64gpr.asm,
8331 config/rs6000/e500crtresx32gpr.asm, config/rs6000/e500crtresx64gpr.asm,
8332 config/rs6000/e500crtsav32gpr.asm, config/rs6000/e500crtsav64gpr.asm,
8333 config/rs6000/e500crtsav64gprctr.asm,
8334 config/rs6000/e500crtsavg32gpr.asm, config/rs6000/e500crtsavg64gpr.asm,
8335 config/rs6000/e500crtsavg64gprctr.asm: New files.
8336 * config/rs6000/t-ppccomm: Add build rules for new files.
8337 (LIB2FUNCS_STATIC_EXTRA): Add new files.
8338 * config/rs6000/t-netbsd: Add build rules for new files.
8339 (LIB2FUNCS_STATIC_EXTRA): New variable.
8340 * config/rs6000/sysv4.h (ENDFILE_SPEC): Don't include crtsavres.o
8341 (CRTSAVRES_DEFAULT_SPEC): Likewise.
8342 * config/rs6000/netbsd.h (ENDFILE_SPEC): Likewise.
8344 2008-04-30 H.J. Lu <hongjiu.lu@intel.com>
8346 * config/i386/i386.c (ix86_builtin_type): Add
8347 FLOAT128_FTYPE_FLOAT128_FLOAT128, V16QI_FTYPE_V16QI_V16QI,
8348 V16QI_FTYPE_V8HI_V8HI, V8QI_FTYPE_V8QI_V8QI,
8349 V8QI_FTYPE_V4HI_V4HI, V8HI_FTYPE_V8HI_V8HI,
8350 V8HI_FTYPE_V16QI_V16QI, V8HI_FTYPE_V4SI_V4SI,
8351 V4SI_FTYPE_V4SI_V4SI, V4SI_FTYPE_V8HI_V8HI,
8352 V4SI_FTYPE_V4SF_V4SF, V4SI_FTYPE_V2DF_V2DF,
8353 V4HI_FTYPE_V4HI_V4HI, V4HI_FTYPE_V8QI_V8QI,
8354 V4HI_FTYPE_V2SI_V2SI, V4SF_FTYPE_V4SF_V4SF,
8355 V4SF_FTYPE_V4SF_V4SF_SWAP, V4SF_FTYPE_V4SF_V2SI,
8356 V4SF_FTYPE_V4SF_V2DF, V4SF_FTYPE_V4SF_DI,
8357 V4SF_FTYPE_V4SF_SI, V2DI_FTYPE_V2DI_V2DI,
8358 V2DI_FTYPE_V16QI_V16QI, V2DI_FTYPE_V4SI_V4SI,
8359 V2DI_FTYPE_V2DF_V2DF, V2SI_FTYPE_V2SI_V2SI,
8360 V2SI_FTYPE_V4HI_V4HI, V2SI_FTYPE_V2SF_V2SF,
8361 V2DF_FTYPE_V2DF_V2DF, V2DF_FTYPE_V2DF_V2DF_SWAP,
8362 V2DF_FTYPE_V2DF_V4SF, V2DF_FTYPE_V2DF_DI,
8363 V2DF_FTYPE_V2DF_SI, V2SF_FTYPE_V2SF_V2SF,
8364 V1DI_FTYPE_V1DI_V1DI, V1DI_FTYPE_V8QI_V8QI and
8365 V1DI_FTYPE_V2SI_V2SI.
8366 (bdesc_2arg): Moved to ...
8368 (ix86_init_mmx_sse_builtins): Updated.
8369 (ix86_expand_args_builtin): Updated. Take a pointer
8370 to const struct builtin_description. Handle comparison
8372 (ix86_expand_sse_compare): Take a new argument for swapping operands.
8373 (ix86_expand_builtin): Updated.
8375 * config/i386/sse.md (ssse3_pmaddubswv8hi3): Renamed to ...
8376 (ssse3_pmaddubsw128): This.
8377 (ssse3_pmaddubswv4hi3): Renamed to ...
8378 (ssse3_pmaddubsw): This.
8380 * doc/extend.texi (__builtin_ia32_packsswb128): Correct prototype.
8381 (__builtin_ia32_packssdw128): Likewise.
8382 (__builtin_ia32_packuswb128): Likewise.
8383 (__builtin_ia32_pmaddubsw): Likewise.
8384 (__builtin_ia32_pmaddubsw128): Likewise.
8386 2008-04-30 Richard Guenther <rguenther@suse.de>
8388 PR tree-optimization/14847
8389 * tree-ssa-ifcombine.c (get_name_for_bit_test): New helper function.
8390 (recognize_bits_test): Use it.
8391 (recognize_single_bit_test): Likewise.
8393 2008-04-30 Martin Jambor <mjambor@suse.cz>
8395 * ipa-cp.c (ipcp_init_stage): Calls ipa_set_called_with_variable_arg
8396 instead of setting number of formal parameters to zero.
8397 (ipcp_init_stage): Do not set the number of actual parameters to zero
8399 (ipcp_propagate_stage): Explicitly skipping all calls to nodes
8400 which are called with variable number of arguments.
8401 (ipcp_insert_stage): Explicitely skipping all nodes which are
8402 called with variable number of arguments.
8403 (ipcp_callsite_param_print): Skipps callsites to nodes with varaible
8404 number of parameters.
8406 * ipa-prop.h (struct ipa_node_params): Added flag
8407 called_with_var_arguments
8408 (ipa_set_param_count): Added. Changed sole setter to use it.
8409 (ipa_get_param_count): Added. All readers of param_count
8410 converted to use it instead.
8411 (ipa_set_called_with_variable_arg): Added.
8412 (ipa_is_called_with_var_arguments): Added.
8413 (ipa_get_ith_param): Added. All readers of param_decls converted
8415 (ipa_set_cs_argument_count): Added, sole writer to argument_count
8417 (ipa_get_cs_argument_count): Added, all readers of argument_count
8419 (ipa_get_ith_jump_func): Added. Accessors of jump values changed
8422 * ipa-prop.h (struct ipcp_formal): Renamed to ipcp_lattice
8423 (struct ipcp_lattice): Renamed cval_type to type
8424 (struct ipa_node_params): ipcp_cval renamed to ipcp_lattices
8426 * ipa-cp.c (ipcp_cval_get_cvalue): Changed return value to tree
8427 (ipcp_cval_set_cvalue): Changed type of parameter value to tree
8428 (ipcp_insert_stage): Changed the type of variable cvalue to tree
8429 (ipcp_replace_map_create): Changed the type of parameter cvalue to tree
8430 (build_const_val): Changed the type of parameter cvalue to tree
8431 (ipcp_propagate_const): Changed the type of parameter cvalue to tree
8432 (ipcp_method_cval_set_cvalue_type): Renamed parameter cval_type1 to type
8434 * ipa-prop.h (struct ipcp_formal): Replaced cvalue with tree called
8437 * ipa-prop.c (ipa_methodlist_init): Renamed to ipa_init_func_list
8438 (ipa_methodlist_not_empty): Removed, the sole user now checks directly
8439 (ipa_add_method): Renamed to ipa_push_func_to_list
8440 (ipa_remove_method): Renamed to ipa_pop_func_from_list
8441 (ipa_callsite_param_count): Removed.
8442 (ipa_callsite_param_count_set): Removed.
8443 (ipa_callsite_param): Removed.
8444 (ipa_callsite_callee): Removed.
8445 (ipa_callsite_compute_param): Renamed to ipa_compute_jump_functions
8446 (ipa_callsite_compute_count): Renamed to ipa_count_arguments
8447 (ipa_method_formal_count): Removed.
8448 (ipa_method_formal_count_set): Removed.
8449 (ipa_method_get_tree): Removed.
8450 (ipa_method_tree_map_create): Removed.
8451 (ipa_method_compute_tree_map): Renamed to ipa_create_param_decls_array
8452 (ipa_create_param_decls_array): Creates the array itself
8453 (ipa_create_param_decls_array): Temporary variable info instead of
8455 (ipa_method_formal_compute_count): Renamed to ipa_count_formal_params
8456 (ipa_method_compute_modify): Renamed to ipa_detect_param_modifications
8457 (get_type): Removed.
8458 (ipa_jf_get_info_type): Removed.
8459 (ipa_node_create): Renamed to ipa_create_node_params
8460 (ipa_free): Renamed to ipa_free_all_node_params
8461 (ipa_nodes_create): Renamed to ipa_create_all_node_params
8462 (ipa_edges_create): Renamed to ipa_create_all_edge_args
8463 (ipa_edges_free): Renamed to ipa_free_all_edge_args
8464 (ipa_nodes_free): Integrated into ipa_free_all_node_params and removed
8465 (ipa_free_all_node_params): Deallocation to jump_functions moved to
8466 ipa_free_all_edge_args
8467 (ipa_method_tree_print): Renamed to ipa_print_all_tree_maps
8468 (ipa_method_modify_print): Renamed to ipa_print_all_params_modified
8469 (ipa_create_methodlist_node): Removed.
8470 (ipa_methodlist_method): Removed.
8471 (ipa_methodlist_method_set): Removed.
8472 (ipa_methodlist_next_method): Removed.
8473 (ipa_methodlist_next_method_set): Removed.
8474 (ipa_method_is_modified): Removed.
8475 (ipa_method_modify_create): Removed.
8476 (ipa_method_modify_init): Temporary variable info instead of a few
8478 (ipa_detect_param_modifications): Temporary variable info instead of
8480 (ipa_compute_jump_functions): Temporary variable info instead of
8482 (ipa_method_modify_set): Removed.
8483 (ipa_method_tree_map): Renamed to ipa_get_param_decl_index
8484 (ipa_get_param_decl_index): Now accepts struct ipa_node_params rather
8485 than craph_node as the first parameter.
8486 (ipa_method_modify_stmt): Renamed to ipa_check_stmt_modifications
8487 (ipa_method_modify_init): Removed.
8488 (ipa_compute_jump_functions): Added a temp variable instead of
8489 repeatadly dereferencing the cgraph_edge.aux pointer
8490 (ipa_callsite_param_set_type): Removed.
8491 (ipa_compute_jump_functions): i renamed to index and moved to
8493 (ipa_callsite_param_set_info_type_formal): Removed.
8494 (ipa_callsite_param_set_info_type): Removed.
8495 (ipa_callsite_param_map_create): Removed.
8496 (ipa_callsite_tree): Removed.
8497 (ipa_callsite_caller): Removed.
8498 (ipa_pop_func_from_list): return_method removed to return_func
8500 * ipa-prop.h (enum cvalue_type): Renamed to ipa_lattice_type,
8501 prefixed all values with IPA_. Changed all users.
8502 (enum jump_func_type): Rnamed UNKNOWN_IPATYPE to IPA_UNKNOWN,
8503 CONST_IPATYPE to IPA_CONST, CONST_IPATYPE_REF to IPA_CONST_REF
8504 and FORMAL_IPATYPE IPA_PASS_THROUGH.
8505 (union parameter_info): Renamed to jump_func_value.
8506 (union jump_func_value): Renamed value to constant
8507 (struct ipa_jump_func): Renamed info_type to value
8508 (struct ipa_node): Renamed to ipa_node_params
8509 (struct ipa_node_params): Renamed ipa_arg_num to param_count
8510 (struct ipa_node_params): Renamed ipa_param_tree to param_decls
8511 (struct ipa_node_params): Renamed ipa_mod to modified_flags
8512 (struct ipa_edge): Renamed to ipa_edge_args
8513 (struct ipa_edge_args): Renamed ipa_param_num to argument_count
8514 (struct ipa_edge_args): Renamed ipa_param_map to jump_functions
8515 (struct ipa_methodlist): Renamed to ipa_func_list
8516 (struct ipa_func_list): method_p renamed to node, next_method
8518 (ipa_methodlist_p): Removed, switched all users to struct pointer
8519 (IS_VALID_TREE_MAP_INDEX): Renamed to IS_VALID_JUMP_FUNC_INDEX
8521 2008-04-30 Alan Modra <amodra@bigpond.net.au>
8523 * config/rs6000/rs6000.c (ALWAYS_RESTORE_ALTIVEC_BEFORE_POP): Define.
8524 (rs6000_emit_epilogue): Use backchain to restore only when we
8525 have a large frame. Make use of frame pointer to restore if we
8526 have one. Handle ALWAYS_RESTORE_ALTIVEC_BEFORE_POP.
8528 2008-04-29 Paolo Bonzini <bonzini@gnu.org>
8530 * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
8531 Add mode to zero_extract.
8532 (sign bit tests peepholes): (Ditto.).
8534 2008-04-29 H.J. Lu <hongjiu.lu@intel.com>
8536 * config/i386/i386.c (ix86_builtins): Replace Prescott New
8537 Instructions in comments with SSE3.
8538 (ix86_builtin_type): This. Add FLOAT128_FTYPE_FLOAT128,
8539 INT64_FTYPE_V4SF, INT64_FTYPE_V2DF, INT_FTYPE_V16QI,
8540 INT_FTYPE_V8QI, INT_FTYPE_V4SF, INT_FTYPE_V2DF,
8541 V16QI_FTYPE_V16QI, V8HI_FTYPE_V8HI, V8HI_FTYPE_V16QI,
8542 V8QI_FTYPE_V8QI, V4SI_FTYPE_V4SI, V4SI_FTYPE_V16QI,
8543 V4SI_FTYPE_V4SF, V4SI_FTYPE_V8HI, V4SI_FTYPE_V2DF,
8544 V4HI_FTYPE_V4HI, V4SF_FTYPE_V4SF, V4SF_FTYPE_V4SI,
8545 V4SF_FTYPE_V2DF, V2DI_FTYPE_V2DI, V2DI_FTYPE_V16QI,
8546 V2DI_FTYPE_V8HI, V2DI_FTYPE_V4SI, V2DF_FTYPE_V2DF,
8547 V2DF_FTYPE_V4SI, V2DF_FTYPE_V4SF, V2DF_FTYPE_V2SI,
8548 V2SI_FTYPE_V2SI, V2SI_FTYPE_V4SF, V2SI_FTYPE_V2SF,
8549 V2SI_FTYPE_V2DF, V2SF_FTYPE_V2SF and V2SF_FTYPE_V2SI.
8550 (bdesc_sse_args): Renamed to ...
8551 (bdesc_args): This. Add IX86_BUILTIN_PF2ID, IX86_BUILTIN_PFRCP,
8552 IX86_BUILTIN_PFRSQRT, IX86_BUILTIN_PI2FD, IX86_BUILTIN_PF2IW,
8553 IX86_BUILTIN_PSWAPDSI, IX86_BUILTIN_PSWAPDSF and
8555 (bdesc_1arg): Moved to ...
8557 (ix86_init_mmx_sse_builtins): Updated. Replace Prescott New
8558 Instructions in comments with SSE3.
8559 (ix86_expand_sse_operands_builtin): Renamed to ...
8560 (ix86_expand_args_builtin): This. Updated.
8561 (ix86_expand_unop1_builtin): Update comments.
8562 (ix86_expand_builtin): Updated.
8564 2008-04-29 Richard Guenther <rguenther@suse.de>
8566 PR tree-optimization/36078
8567 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
8568 Update virtual SSA form after cleaning up the CFG.
8570 2008-04-29 Richard Guenther <rguenther@suse.de>
8573 * fold-const.c (fold_binary): Fold (A + A) * C to A * 2*C.
8575 2008-04-29 Richard Guenther <rguenther@suse.de>
8577 * tree-ssa-alias.c (finalize_ref_all_pointers): Remove.
8578 (compute_may_aliases): Do not call finalize_ref_all_pointers.
8579 (compute_flow_insensitive_aliasing): Do not treat
8580 PTR_IS_REF_ALL pointers special.
8581 (get_smt_for): Likewise.
8582 (may_alias_p): Re-structure.
8583 (is_escape_site): A ref-all pointer conversion is not an escape site.
8584 * tree-ssa-structalias.c (find_what_p_points_to): Do not treat
8585 PTR_IS_REF_ALL pointers special.
8586 * tree-ssa-structalias.h (struct alias_info): Remove
8587 ref_all_symbol_mem_tag field.
8588 (PTR_IS_REF_ALL): Remove.
8590 2008-04-29 Richard Guenther <rguenther@suse.de>
8593 * fold-const.c (extract_muldiv_1): In combining division constants
8594 make sure to never overflow.
8596 2008-04-29 Nick Clifton <nickc@redhat.com>
8598 * doc/tm.texi (RETURN_ADDR_RTX): Fix typo.
8600 2008-04-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8603 * optc-gen.awk: Work around HP-UX/IA awk bug.
8605 2008-04-28 Danny Smith <dannysmith@users.sourceforge.net>
8607 * config/i386/cygming-crtend.c (register_frame_ctor): Revert my
8610 2008-04-28 Uros Bizjak <ubizjak@gmail.com>
8613 * config/i386/i386.md
8614 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit):
8615 Change operand 1 predicate to nonimmediate_operand.
8617 2008-04-28 Jakub Jelinek <jakub@redhat.com>
8620 * dwarf2out.c (struct die_struct): Mark as chain_circular through
8622 * gengtype.c (walk_type, write_func_for_structure): Handle
8624 * doc/gty.texi: Document chain_circular.
8626 2008-04-28 Richard Guenther <rguenther@suse.de>
8628 PR tree-optimization/36066
8629 * tree-vrp.c (execute_vrp): Cleanup the CFG only after finalizing
8632 2008-04-28 Uros Bizjak <ubizjak@gmail.com>
8635 * config/i386/i386.md
8636 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters):
8637 Use match_scratch instead of match_operand for operands 3 and 4.
8639 2008-04-27 Richard Guenther <rguenther@suse.de>
8641 PR tree-optimization/18754
8642 PR tree-optimization/34223
8643 * tree-pass.h (pass_complete_unrolli): Declare.
8644 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Print
8645 loop size before and after unconditionally of UL_NO_GROWTH in effect.
8646 Rewrite loop into loop closed SSA form if it is not already.
8647 (tree_unroll_loops_completely): Re-structure to iterate over
8648 innermost loops with intermediate CFG cleanups.
8649 Unroll outermost loops only if requested or the code does not grow
8651 * tree-ssa-loop.c (gate_tree_vectorize): Don't shortcut if no
8652 loops are available.
8653 (tree_vectorize): Instead do so here.
8654 (tree_complete_unroll): Also unroll outermost loops.
8655 (tree_complete_unroll_inner): New function.
8656 (gate_tree_complete_unroll_inner): Likewise.
8657 (pass_complete_unrolli): New pass.
8658 * tree-ssa-loop-manip.c (find_uses_to_rename_use): Only record
8659 uses outside of the loop.
8660 (tree_duplicate_loop_to_header_edge): Only verify loop-closed SSA
8661 form if it is available.
8662 * tree-flow.h (tree_unroll_loops_completely): Add extra parameter.
8663 * passes.c (init_optimization_passes): Schedule complete inner
8664 loop unrolling pass before the first CCP pass after final inlining.
8666 2008-04-27 Nathan Sidwell <nathan@codesourcery.com>
8668 * targhooks.h (default_emutls_var_fields,
8669 default_emutls_var_init): Declare.
8670 * tree.h (DECL_THREAD_LOCAL): Compare against TLS_MODEL_REAL.
8671 * target.h (struct gcc_target): Add struct emutls member.
8672 * target-def.h (TARGET_EMUTLS_GET_ADDRESS,
8673 TARGET_EMUTLS_REGISTER_COMMON, TARGET_EMUTLS_VAR_SECTION,
8674 TARGET_EMUTLS_TMPL_SECTION, TARGET_EMUTLS_VAR_PREFIX,
8675 TARGET_EMUTLS_TMPL_PREFIX, TARGET_EMUTLS_VAR_FIELDS,
8676 TARGET_EMUTLS_VAR_INIT, TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS,
8677 TARGET_EMUTLS_VAR_ALIGN_FIXED, TARGET_EMUTLS): New.
8678 (TARGET_INITIALIZER): Add TARGET_EMUTLS.
8679 * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS,
8680 BUILT_IN_EMUTLS_REGISTER_COMMON): Get name from targetm structure.
8681 * dwarf2out.c (loc_descriptor_from_tree_1): Check if emutls can
8682 emit debug information.
8683 * coretypes.h (tls_model): Add TLS_MODEL_EMULATED, TLS_MODEL_REAL.
8684 * varasm.c: Include targhooks.h.
8685 (emutls_object_section, emutls_tmpl_section): New.
8686 (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): Remove.
8687 (EMUTLS_SEPARATOR): New.
8689 (get_emutls_object_name): New.
8690 (default_emutls_var_fields): New, broken out of ...
8691 (get_emutls_object_type): ... here. Adjust to use target hooks.
8692 (get_emutls_init_templ_addr): Adjust to use target hooks.
8693 (emutls_decl): Adjust to use target hooks.
8694 (emutls_finish): Likewise.
8695 (default_emutls_var_init): New, broken out of ...
8696 (assemble_variable): ... here. Adjust to use target hooks.
8697 * output.h (enum section_category): Add SECCAT_EMUTLS_VAR,
8699 * c-common.c (handle_section_attribute): Prevent overriding
8700 sections for emulated tls with special sections.
8701 * config/i386/i386.c (x86_64_elf_select_section): Add
8702 SECCAT_EMUTLS_VAR and SECCAT_EMUTLS_TMPL.
8703 (x86_64_elf_unique_section): Likewise.
8704 * config/vxworks.c: Include tree.h.
8705 (vxworks_emutls_var_fields, vxworks_emutls_var_init): New.
8706 (vxworks_override_options): Set TLS scheme.
8707 * doc/tm.texi (Emulated TLS): New node.
8709 2008-04-26 Simon Baldwin <simonb@google.com>
8712 * builtins.c (c_strlen): Suppressed multiple warnings that can occur
8713 with propagated string constants.
8715 2008-04-26 Uros Bizjak <ubizjak@gmail.com>
8717 * config/i386/i386.md (fix_trunc<mode>_i387_fisttp_with_temp): Use 'X'
8718 constraint for operand 2 when operand 0 is memory operand.
8719 (fix_truncdi_i387_with_temp): : Use 'X' constraint for operand 4 when
8720 operand 0 is memory operand.
8721 (fix_trunc<mode>_i387_with_temp): Ditto.
8722 (*floatsi<mode>2_vector_mixed_with_temp): Use 'X' constraint for
8723 operand 2 when operand 1 is memory operand.
8724 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Ditto.
8725 (*floatsi<mode>2_vector_sse_with_temp): Ditto.
8726 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Ditto.
8727 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
8728 (floatdi<X87MODEF:mode>2_i387_with_xmm): Use 'X' constraint for
8729 operands 2,3 and 4 when operand 1 is memory operand.
8730 (fistdi2_with_temp): Use 'X' constraint for operand 2 when operand 0
8732 (fistdi2_floor_with_temp): Ditto.
8733 (fist<mode>2_floor_with_temp): Ditto.
8734 (fistdi2_ceil_with_temp): Ditto.
8735 (fist<mode>2_ceil_with_temp): Ditto.
8736 (*truncdfsf_fast_mixed): Merge alternatives 0 and 1.
8738 2008-04-26 David Daney <ddaney@avtrex.com>
8740 * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP_12): New
8742 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE,
8743 UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
8744 UNSPEC_UPDATE_GOT_VERSION): Renumber.
8745 (sync_compare_and_swap<mode>): New expand for QI and HI modes.
8746 (compare_and_swap_12): New insn.
8747 * config/mips/mips-protos.h (mips_expand_compare_and_swap_12): Declare.
8748 * config/mips/mips.c (mips_force_binary): New function.
8749 (mips_emit_int_order_test, mips_expand_synci_loop): Use it.
8750 (mips_expand_compare_and_swap_12): New function.
8751 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): New macro.
8753 2008-04-25 Jan Hubicka <jh@suse.cz>
8756 * cfgexpand.c (pass_expand): Turn into RTL pass.
8757 * passes.c (execute_one_pass): Do pass typechecking after execution.
8758 * tree-pass.h (pass_expand): Turn into RTL pass.
8760 * function.h (struct rtl_data): Move here fields
8761 accesses_prior_frames, calls_eh_return, saves_all_registers,
8762 has_nonlocal_goto, has_asm_statement, is_thunk,
8763 all_throwers_are_sibcalls, limit_stack, profile, uses_const_pool,
8764 uses_pic_offset_table, uses_eh_lsda, tail_call_emit,
8765 arg_pointer_save_area_init from struct function; turn into bool.
8766 (struct function): Move
8767 calls_eh_return, saves_all_registers, has_nonlocal_goto,
8768 has_asm_statement, is_thunk, all_throwers_are_sibcalls, limit_stack,
8769 profile, uses_const_pool, uses_pic_offset_table, uses_eh_lsda,
8770 tail_call_emit, arg_pointer_save_area_init
8771 into struct rtl_data. Remove recursive_call_emit and gimplified flags.
8772 (current_function_returns_struct, current_function_returns_pcc_struct,
8773 current_function_calls_setjmp, current_function_calls_alloca,
8774 current_function_accesses_prior_frames,
8775 current_function_calls_eh_return, current_function_is_thunk,
8776 current_function_stdarg, current_function_profile,
8777 current_function_limit_stack, current_function_uses_pic_offset_table,
8778 current_function_uses_const_pool, current_function_has_nonlocal_label,
8779 current_function_saves_all_registers,
8780 current_function_has_nonlocal_goto,
8781 current_function_has_asm_statement): Remove accesor macros.
8782 * ra-conflict.c (global_conflicts): Update.
8783 * tree-tailcall.c (suitable_for_tail_opt_p): Update.
8784 (suitable_for_tail_call_opt_p): Update.
8785 * builtins.c (expand_builtin_return_addr): Update.
8786 (expand_builtin_setjmp_setup): Update.
8787 (expand_builtin_nonlocal_goto): Update.
8788 * final.c (final_start_function): Update.
8789 (profile_function): Update.
8790 (leaf_function_p): Update.
8791 (only_leaf_regs_used): Update.
8792 * df-scan.c (df_get_exit_block_use_set): Update.
8793 * dojump.c (clear_pending_stack_adjust): Update.
8794 * tree-stdarg.c (gate_optimize_stdarg): Update.
8795 * gimple-low.c (lower_function_body): Update.
8796 * global.c (compute_regsets): Update.
8797 (global_alloc): Update.
8798 * dwarf2out.c (dwarf2out_begin_prologue): Update.
8799 * expr.c (expand_assignment): Update.
8800 * dse.c (dse_step0): Update.
8801 (dse_step1): Update.
8802 * c-decl.c (store_parm_decls): Update.
8803 * local-alloc.c (combine_regs): Update.
8804 (find_free_reg): Update.
8805 * function.c (assign_parms_augmented_arg_list): Update.
8806 (assign_parm_find_data_types): Update.
8807 (assign_parms): Update.
8808 (allocate_struct_function): Update.
8809 (expand_function_start): Update.
8810 (expand_function_end): Update.
8811 (get_arg_pointer_save_area): Update.
8812 (thread_prologue_and_epilogue_insns): Update.
8813 (rest_of_match_asm_constraints): Update.
8814 * stor-layout.c (variable_size): Update.
8815 * gcse.c (gcse_main): Update.
8816 (bypass_jumps): Update.
8817 * gimplify.c (gimplify_function_tree): Update.
8818 * calls.c (emit_call_1): Update.
8819 (expand_call): Update.
8820 * bt-load.c (compute_defs_uses_and_gen): Update.
8821 * except.c (sjlj_assign_call_site_values): Update.
8822 (sjlj_emit_function_enter): Update.
8823 (can_throw_external): Update.
8824 (set_nothrow_function_flags): Update.
8825 (expand_builtin_unwind_init): Update.
8826 (expand_eh_return): Update.
8827 (convert_to_eh_region_ranges): Update.
8828 (output_function_exception_table): Update.
8829 * emit-rtl.c (gen_tmp_stack_mem): Update.
8830 * cfgexpand.c (expand_used_vars): Update.
8831 (tree_expand_cfg): Update.
8832 * cfgcleanup.c (rest_of_handle_jump): Update.
8833 * explow.c (allocate_dynamic_stack_space): Update.
8834 * varasm.c (assemble_start_function): Update.
8835 (force_const_mem): Update.
8836 (mark_constant_pool): Update.
8837 * tree-optimize.c (tree_rest_of_compilation): Update.
8838 * stack-ptr-mod.c (notice_stack_pointer_modification): Update.
8839 * tree-cfg.c (notice_special_calls): Update.
8840 (is_ctrl_altering_stmt): Update.
8841 (tree_can_make_abnormal_goto): Update.
8842 (tree_purge_dead_abnormal_call_edges): Update.
8843 * config/alpha/predicates.md: Update.
8844 * config/alpha/alpha.c (alpha_sa_mask): Update.
8845 (alpha_sa_size): Update.
8846 (alpha_does_function_need_gp): Update.
8847 (alpha_expand_prologue): Update.
8848 (alpha_start_function): Update.
8849 (alpha_output_function_end_prologue): Update.
8850 (alpha_expand_epilogue): Update.
8851 * config/frv/frv.c (frv_stack_info): Update.
8852 (frv_expand_epilogue): Update.
8853 * config/s390/s390.c (s390_regs_ever_clobbered): Update.
8854 (s390_register_info): Update.
8855 (s390_frame_info): Update.
8856 (s390_init_frame_layout): Update.
8857 (s390_can_eliminate): Update.
8858 (save_gprs): Update.
8859 * config/spu/spu.c (spu_split_immediate): Update.
8860 (need_to_save_reg): Update.
8861 (spu_expand_prologue): Update.
8862 (spu_expand_epilogue): Update.
8863 * config/sparc/sparc.md: Update.
8864 * config/sparc/sparc.c (eligible_for_return_delay): Update.
8865 (sparc_tls_got): Update.
8866 (legitimize_pic_address): Update.
8867 (sparc_emit_call_insn): Update.
8868 (sparc_expand_prologue): Update.
8869 (output_return): Update.
8870 (print_operand): Update.
8871 (sparc_function_ok_for_sibcall): Update.
8872 * config/sparc/sparc.h (EXIT_IGNORE_STACK): Update.
8873 * config/m32r/m32r.md: Update.
8874 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Update.
8875 (m32r_compute_frame_size): Update.
8876 (m32r_expand_prologue): Update.
8877 (m32r_expand_epilogue): Update.
8878 (m32r_legitimize_pic_address): Update.
8879 * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Update.
8880 * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
8881 * config/i386/i386.c (ix86_frame_pointer_required): Update.
8883 (ix86_save_reg): Update.
8884 (ix86_compute_frame_layout): Update.
8885 (ix86_expand_prologue): Update.
8886 (ix86_expand_epilogue): Update.
8887 * config/sh/sh.c (output_stack_adjust): Update.
8888 (calc_live_regs): Update.
8889 (sh5_schedule_saves): Update.
8890 (sh_expand_prologue): Update.
8891 (sh_expand_epilogue): Update.
8892 (sh_setup_incoming_varargs): Update.
8893 (sh_allocate_initial_value): Update.
8894 (sh_get_pr_initial_val): Update.
8895 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Update.
8896 * config/sh/sh.md (label:): Update.
8897 * config/avr/avr.c (out_movhi_mr_r): Update.
8898 * config/crx/crx.h (enum): Update.
8899 * config/xtensa/xtensa.h (along): Update.
8900 * config/stormy16/stormy16.c Update.
8901 (xstormy16_compute_stack_layout): Update.
8902 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Update.
8903 (fr30_expand_prologue): Update.
8904 * config/cris/cris.c (cris_conditional_register_usage): Update.
8905 (cris_reg_saved_in_regsave_area): Update.
8906 (cris_initial_frame_pointer_offset): Update.
8907 (cris_simple_epilogue): Update.
8908 (cris_expand_prologue): Update.
8909 (cris_expand_epilogue): Update.
8910 (cris_expand_pic_call_address): Update.
8911 (cris_asm_output_symbol_ref): Update.
8912 (cris_asm_output_label_ref): Update.
8913 * config/cris/cris.md Update.
8914 * config/iq2000/iq2000.c (compute_frame_size): Update.
8915 (iq2000_expand_epilogue): Update.
8916 * config/mt/mt.h (save_direction): Update.
8917 * config/mn10300/mn10300.c (mn10300_function_value): Update.
8918 * config/ia64/ia64.c (ia64_compute_frame_size): Update.
8919 (ia64_secondary_reload_class): Update.
8920 * config/m68k/m68k.c (m68k_save_reg): Update.
8921 (m68k_expand_prologue): Update.
8922 (m68k_expand_epilogue): Update.
8923 (legitimize_pic_address): Update.
8924 * config/rs6000/rs6000.c (rs6000_got_register): Update.
8925 (first_reg_to_save): Update.
8926 (first_altivec_reg_to_save): Update.
8927 (compute_vrsave_mask): Update.
8928 (compute_save_world_info): Update.
8929 (rs6000_stack_info): Update.
8930 (spe_func_has_64bit_regs_p): Update.
8931 (rs6000_ra_ever_killed): Update.
8932 (rs6000_emit_eh_reg_restore): Update.
8933 (rs6000_emit_allocate_stack): Update.
8934 (rs6000_emit_prologue): Update.
8935 (rs6000_emit_epilogue): Update.
8936 (rs6000_output_function_epilogue): Update.
8937 (output_profile_hook): Update.
8938 (rs6000_elf_declare_function_name): Update.
8939 * config/rs6000/rs6000.h (rs6000_args): Update.
8940 * config/rs6000/rs6000.md: Update.
8941 * config/mcore/mcore.c (mcore_expand_prolog): Update.
8942 * config/arc/arc.c (arc_output_function_epilogue): Update.
8943 * config/arc/arc.h (FRAME_POINTER_REQUIRED): Update.
8944 * config/darwin.c (machopic_function_base_name): Update.
8945 * config/score/score3.c (score3_compute_frame_size): Update.
8948 (score3_epilogue): Update.
8949 * config/score/score7.c (score7_compute_frame_size): Update.
8950 (score7_prologue): Update.
8951 (score7_epilogue): Update.
8952 * config/score/score.h (FRAME_POINTER_REQUIRED): Update.
8953 * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
8954 * config/arm/arm.c (use_return_insn): Update.
8955 (require_pic_register): Update.
8956 (arm_load_pic_register): Update.
8957 (arm_compute_save_reg0_reg12_mask): Update.
8958 (arm_compute_save_reg_mask): Update.
8959 (thumb1_compute_save_reg_mask): Update.
8960 (output_return_instruction): Update.
8961 (arm_output_function_prologue): Update.
8962 (arm_output_epilogue): Update.
8963 (arm_get_frame_offsets): Update.
8964 (arm_expand_prologue): Update.
8965 (thumb_pushpop): Update.
8966 (thumb_exit): Update.
8967 (thumb1_expand_prologue): Update.
8968 (thumb1_expand_epilogue): Update.
8969 (arm_unwind_emit): Update.
8970 (arm_output_fn_unwind): Update.
8971 * config/arm/arm.h (FRAME_POINTER_REQUIRED): Update.
8972 * config/arm/arm.md: Update.
8973 * config/pa/pa.md: Update.
8974 * config/pa/pa.c (legitimize_pic_address): Update.
8975 (compute_frame_size): Update.
8976 (hppa_expand_prologue): Update.
8977 (hppa_expand_epilogue): Update.
8978 (borx_reg_operand): Update.
8979 * config/pa/pa.h (FRAME_POINTER_REQUIRED): Update.
8980 (HARD_REGNO_RENAME_OK): Update.
8981 * config/mips/mips.c (mips_global_pointer): Update.
8982 (mips_save_reg_p): Update.
8983 (mips_compute_frame_info): Update.
8984 (mips_frame_pointer_required): Update.
8985 (mips_expand_prologue): Update.
8986 (mips_expand_epilogue): Update.
8987 (mips_can_use_return_insn): Update.
8988 (mips_reorg_process_insns): Update.
8989 * config/v850/v850.c (compute_register_save_size): Update.
8990 * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Update.
8991 * config/mmix/mmix.c (along): Update.
8992 (mmix_expand_epilogue): Update.
8993 * config/bfin/bfin.c (legitimize_pic_address): Update.
8994 (must_save_p): Update.
8995 (stack_frame_needed_p): Update.
8996 (add_to_reg): Update.
8997 (bfin_expand_prologue): Update.
8998 * stmt.c (expand_asm_operands): Update.
8999 * reload1.c (reload): Update.
9000 (init_elim_table): Update.
9002 2008-04-25 Bob Wilson <bob.wilson@acm.org>
9004 * optabs.c (expand_float): Fix REG_EQUAL for UNSIGNED_FLOAT libcall.
9006 2008-04-25 H.J. Lu <hongjiu.lu@intel.com>
9008 * config/i386/sse.md (mov<mode>): Replace SSEMODEI with SSEMODE.
9009 (*mov<mode>_internal): Likewise. Support V4SF and V2DF.
9010 (mov<mode>): Removed.
9011 (*movv4sf_internal): Likewise.
9012 (*movv2df_internal): Likewise.
9014 2008-04-25 Pompapathi V Gadad <Pompapathi.V.Gadad@nsc.com>
9016 * config.gcc (crx-*-elf): Remove deprecation.
9018 2008-04-25 Danny Smith <dannysmith@users.sourceforge.net>
9020 * config/i386/cygming-crtend.c (register_frame_ctor): Register
9021 __gcc_deregister_frame with atexit.
9022 (deregister_frame_dtor): Remove.
9024 2008-04-24 Nathan Froyd <froydnj@codesourcery.com>
9025 Nathan Sidwell <nathan@codesourcery.com>
9027 * config/rs6000/rs6000.opt (mspe): Remove Var property.
9029 * config/rs6000/rs6000.h (rs6000_spe): Declare.
9030 (rs6000_isel): Likewise.
9031 * config/rs6000/rs6000.c (rs6000_spe): New variable.
9032 (rs6000_isel): New variable.
9033 (rs6000_handle_option): Handle OPT_mspe and OPT_misel.
9035 2008-04-24 Jakub Jelinek <jakub@redhat.com>
9038 * c-common.c (handle_vector_size_attribute): Call
9039 lang_hooks.types.reconstruct_complex_type instead of
9040 reconstruct_complex_type.
9041 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Likewise.
9042 * config/spu/spu.c (spu_handle_vector_attribute): Likewise.
9043 * langhooks.h (struct lang_hooks_for_types): Add
9044 reconstruct_complex_type hook.
9045 * langhooks-def.h (LANG_HOOKS_RECONSTRUCT_COMPLEX_TYPE): Define.
9046 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
9048 2008-04-24 Richard Guenther <rguenther@suse.de>
9050 * c-common.h (check_builtin_function_arguments): Declare.
9051 * c-common.c (validate_nargs): New function.
9052 (check_builtin_function_arguments): Likewise.
9053 * c-typeck.c (build_function_call): Call
9054 check_builtin_function_arguments.
9055 * builtins.c (fold_builtin_classify): Remove error reporting code.
9056 (fold_builtin_unordered_cmp): Likewise.
9057 (fold_builtin_1): Likewise.
9058 (fold_builtin_n): Likewise.
9060 2008-04-24 Jakub Jelinek <jakub@redhat.com>
9062 PR tree-optimization/36008
9063 * fold-const.c (try_move_mult_to_index): If s == NULL, divide
9064 the original op1, rather than delta by step.
9066 2008-04-22 Antoniu Pop <antoniu.pop@gmail.com>
9067 Sebastian Pop <sebastian.pop@amd.com>
9069 * tree-parloops.c (take_address_of, eliminate_local_variables_1,
9070 eliminate_local_variables_stmt, eliminate_local_variables,
9071 separate_decls_in_loop_name, separate_decls_in_loop_stmt,
9072 separate_decls_in_loop, gen_parallel_loop): Make them work on a region
9073 of code delimited by two edges in the CFG.
9074 (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
9075 (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
9076 (separate_decls_in_loop): Renamed separate_decls_in_region. Isolate
9077 the case of parallelisation of reductions.
9078 (expr_invariant_in_region_p): New.
9080 * tree-flow.h (gather_blocks_in_sese_region): Declared.
9081 * tree-cfg.c (gather_blocks_in_sese_region): Extern.
9083 2008-04-24 Ira Rosen <irar@il.ibm.com>
9084 Richard Guenther <rguenther@suse.de>
9086 PR tree-optimization/36034
9087 * tree-vect-analyze.c (vect_analyze_group_access): SLP is
9088 incapable of dealing with loads with gaps.
9090 2008-04-24 Rafael Espindola <espindola@google.com>
9092 * tree-flow.h (vrp_evaluate_conditional): Change signature.
9093 * tree-ssa-propagate.c (fold_predicate_in): Update call to
9094 vrp_evaluate_conditional.
9095 * tree-vrp.c (vrp_evaluate_conditional_warnv): Remove.
9096 (vrp_evaluate_conditional): Split the cond argument.
9097 (vrp_visit_cond_stmt): Use vrp_evaluate_conditional_warnv_with_ops.
9098 (simplify_stmt_for_jump_threading): Update call to
9099 vrp_evaluate_conditional.
9101 2008-04-24 Ira Rosen <irar@il.ibm.com>
9103 PR tree-optimization/35982
9104 * tree-vect-analyze.c (vect_check_interleaving): Check that the
9105 interleaved data-refs are of the same type.
9107 2008-04-24 Danny Smith <dannysmith@users.net>
9109 * c-format.c (check_format_info_main): Use strncmp rather than a
9110 magic prefix to handle multichar length specs.
9111 * config/i386/msformat-c.c (format_length_info ms_printf_length_specs):
9112 Don't prefix "I64" and "I32" with '\0'.
9114 2008-04-24 Jakub Jelinek <jakub@redhat.com>
9117 * config/i386/i386.c (init_cumulative_args): Don't pass anything
9118 in registers for -m32 only if stdarg_p (fntype).
9120 2008-04-24 Uros Bizjak <ubizjak@gmail.com>
9122 PR rtl-optimization/36006
9123 * expmed.c (store_fixed_bit_field): Copy op0 rtx before moving
9124 temp to op0 in order to avoid invalid rtx sharing.
9126 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
9128 * tree-cfg.c (verify_expr): Check with is_gimple_address. Don't
9129 check TREE_INVARIANT.
9130 * tree-gimple.c (is_gimple_address): New.
9131 (is_gimple_invariant_address): Simplify using decl_address_invariant_p.
9132 * tree-gimple.h (is_gimple_address): New.
9133 * tree.h (decl_address_invariant_p): New.
9134 * tree.c (make_node_stat): Don't set TREE_INVARIANT.
9135 (build_string): Likewise.
9136 (decl_address_invariant_p): New, from is_gimple_invariant_address.
9137 (tree_invariant_p_1): Likewise.
9138 (save_expr): Use it.
9139 (tree_invariant_p): New.
9140 (skip_simple_arithmetic): Use it.
9141 (stabilize_reference_1): Use it.
9142 (recompute_tree_invariant_for_addr_expr): Don't update TREE_INVARIANT,
9144 (build1_stat): Drop code to compute TREE_INVARIANT.
9145 (build2_stat): Drop code to compute TREE_INVARIANT.
9146 (build3_stat): Drop code to compute TREE_INVARIANT.
9147 (build4_stat): Drop code to compute TREE_INVARIANT.
9148 (build5_stat): Drop code to compute TREE_INVARIANT.
9149 (build7_stat): Drop code to compute TREE_INVARIANT.
9150 (merge_dllimport_decl_attributes): Don't mention TREE_INVARIANT.
9151 * tree.h (struct tree_base): Remove invariant_flag.
9152 (TREE_INVARIANT): Remove.
9153 * builtins.c (build_string_literal): Don't set TREE_INVARIANT.
9154 (fold_builtin_expect): Check TREE_CONSTANT.
9155 * tree-ssa-ccp.c (fold_stmt_r): Adjust comment.
9156 * c-tree.h (c_expr_to_decl): Drop third parameter.
9157 * c-typeck.c (build_external_ref): Don't set TREE_INVARIANT.
9158 (build_c_cast): Don't set TREE_INVARIANT.
9159 (pop_init_level): Don't set TREE_INVARIANT.
9160 (c_objc_common_truthvalue_conversion): Don't set TREE_INVARIANT.
9161 * gimplify.c (gimplify_init_ctor_preeval): Add assertion, test
9163 (gimplify_init_constructor): Don't set TREE_INVARIANT.
9164 (gimplify_addr_expr): Adjust comment.
9165 * tree-mudflap.c (mf_build_string):
9166 * print-tree.c (print_node): Don't print TREE_INVARIANT.
9167 * tree-nested.c (convert_nonlocal_reference): Adjust comment.
9168 * c-common.c (fix_string_type): Don't set TREE_INVARIANT.
9169 * langhooks-def.h (lhd_expr_to_decl): Drop third parameter.
9170 * langhooks.c (lhd_expr_to_decl): Drop third parameter.
9171 * langhooks.h (struct lang_hooks): Drop third parameter from
9174 2008-04-23 Richard Guenther <rguenther@suse.de>
9176 PR tree-optimization/27799
9177 PR tree-optimization/32921
9178 PR tree-optimization/32624
9179 * tree-ssa-structalias.c (merge_smts_into): Only merge the
9180 SMTs aliases and the tag itself into the solution.
9181 * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Do not
9182 merge the points-to solution back into the SMT aliases.
9183 (may_alias_p): Use alias_set_subset_of instead of
9184 aliases_conflict_p. A pointer which points to
9185 memory with alias set zero may access any variable.
9187 2008-04-23 Richard Guenther <rguenther@suse.de>
9189 * alias.c (alias_set_subset_of): Correctly handle asking
9190 if zero is a subset of an alias set with zero child.
9191 * tree-ssa-alias.c (have_common_aliases_p): Simplify logic.
9192 (compute_flow_insensitive_aliasing): Correctly walk all
9193 pointers. Do not unnecessarily union sets.
9195 2008-04-23 Richard Guenther <rguenther@suse.de>
9198 * c-common.c (handle_alloc_size_attribute): Use type_num_arguments.
9200 2008-04-22 Tomas Bily <tbily@suse.cz>
9202 * tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as
9204 * tree-vrp.c (extract_range_from_unary_expr): Removed unused
9206 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
9207 * tree-ssa-structalias.c (get_constraint_for): Likewise.
9208 * tree-inline.c (estimate_num_insns_1): Likewise.
9209 * varasm.c (const_hash_1, compare_constant, copy_constant)
9210 (compute_reloc_for_constant, output_addressed_constants): Likewise.
9211 * emit-rtl.c (component_ref_for_mem_expr)
9212 (set_mem_attributes_minus_bitpos): Likewise.
9213 * expr.c (highest_pow2_factor, expand_expr_real_1, )
9214 (is_aligning_offset): Likewise.
9215 * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info): Likewise.
9216 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
9217 * dojump.c (do_jump): Likewise.
9218 * builtins.c (get_pointer_alignment, get_memory_rtx)
9219 (integer_valued_real_p, fold_builtin_next_arg): Likewise.
9220 * tree-scalar-evolution.c (instantiate_parameters_1): Likewise.
9222 2008-04-23 Jakub Jelinek <jakub@redhat.com>
9224 PR rtl-optimization/36017
9225 * builtins.c (expand_errno_check): Clear CALL_EXPR_TAILCALL before
9226 expanding the library call.
9228 2008-04-22 Ian Lance Taylor <iant@google.com>
9230 * fold-const.c (pointer_may_wrap_p): Call int_size_in_bytes rather
9233 2008-04-22 Pat Haugen <pthaugen@us.ibm.com>
9235 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
9236 of LR/CTR moves for Power6.
9238 2008-04-22 Kenneth Zadeck <zadeck@naturalbridge.com>
9241 * passes.c (init_optimization_passes): Remove
9242 pass_fast_rtl_byte_dce.
9244 2008-04-22 Uros Bizjak <ubizjak@gmail.com>
9247 * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Rearrange calls to
9248 builtin functions to generate faster code.
9249 (_mm_cvtpu16_ps): Ditto.
9250 (_mm_cvtpi32x2_ps): Ditto.
9252 2008-04-22 Nick Clifton <nickc@redhat.com>
9254 * common.opt (ftree-loop-distribution): Add Optimization
9257 * config/frv/frv.c (frv_stack_info): Use crtl instead of cfun.
9258 (frv_expand_builtin_va_start): Likewise.
9260 * config/arm/arm.c (thumb_find_work_register): Fix location of
9261 argument register count.
9263 2008-04-22 Maxim Kuvyrkov <maxim@codesourcery.com>
9265 Support scheduling for ColdFire V1 and V3 microarchitecture.
9266 Improve scheduling of multiplication instructions.
9268 * config/m68k/m68k.md (cpu): Add cfv1 and cfv3. Rename cf_v2 to cfv1.
9269 (mac): New instruction attribute.
9270 * config/m68k/m68k.c (override_options): Handle cfv1, cfv3 and mac.
9271 (m68k_sched_mac): New variable.
9272 (m68k_sched_attr_type2, m68k_sched_md_init_global): Update.
9273 Handle cfv1 and cfv3.
9274 (max_insn_size): New static variable.
9275 (struct _sched_ib): New type.
9276 (sched_ib): New static variable.
9277 (sched_ib_size, sched_ib_filled, sched_ib_insn): Convert variables
9278 to fields of 'struct _sched_ib sched_ib'. Update all uses.
9279 (m68k_sched_variable_issue): Add modeling of cfv3 instruction buffer.
9281 (m68k_sched_md_init_global, m68k_sched_md_finish_global,
9282 m68k_sched_md_init, m68k_sched_md_finish): Handle cfv1 and cfv3. Init
9283 new variables. Update.
9284 (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
9285 Add modeling of cfv3 instruction buffer. Update.
9286 * config/m68k/m68k-protos.h (m68k_sched_mac): Declare.
9287 * config/m68k/m68k.h (TUNE_CFV3): New macro.
9288 * config/m68k/cf.md: Change substrings 'cf_v2' to 'cfv12' or 'cfv123'.
9289 (cf_* reservations): Rename to cfv12 or cfv123 to indicate cores
9290 a particular reservation applies to.
9291 (type2): Reorganize attribute values. Rename alu to alu_reg,
9292 alu_l to alu, move_l to omove. Join move to alu. Split mul
9294 (cf_ib_*): Simplify description of instruction buffer.
9295 (cf_ib_w0, cf_ib_w4, cf_ib_w5, cf_ib_w6): Remove.
9296 (cf_mem): Split into cf_mem1 and cf_mem2.
9297 (cf_v2_move_??): Rename to cfv12_alu_??.
9298 (cf_v2_move_l_??): Rename to cfv12_omove_??.
9299 (cf_v2_mul_??): Remove reservations.
9300 (cfv12_mul_l_??, cfv12_mul_w_??, cfv12_mac_w_??, cfv12_mac_l_??,
9301 cfv12_emac_??, cfv12_emac_w_i0): New reservations.
9302 (cfv12_rts, cfv12_call, cfv12_bcc, cfv12_bra, cfv12_jmp): Move to
9304 (cfv3_alu_10, cfv3_omove_10, cfv3_alu_i0, cfv3_omove_i0, cfv3_alu_01,
9305 cfv3_alu_0i, cfv3_alu_11, cfv3_omove_11, cfv3_alu_i1, cfv3_omove_i1,
9306 cfv3_alu_1i, cfv3_omove_1i, cfv3_pea_11, cfv3_pea_i1, cfv3_mul_w_10,
9307 cfv3_mul_l_10, cfv3_mul_w_i0, cfv3_mac_w_10, cfv3_mac_l_10,
9308 cfv3_mac_w_i0, cfv3_emac_10, cfv3_emac_w_i0, cfv3_rts, cfv3_call,
9309 cfv3_bcc, cfv3_bra, cfv3_jmp): New reservations.
9310 (cfv3_*_1, cfv3_*_2, cfv3_*_3): New instruction reservations that are
9311 expansions of the above reservations for instructions of sizes
9314 2008-04-22 Maxim Kuvyrkov <maxim@codesourcery.com>
9316 * rtl-factoring.c (collect_patterns_seqs): Handle CC0 targets.
9318 2008-04-21 Adam Nemet <anemet@caviumnetworks.com>
9320 * coverage.c: Include tree-pass.h.
9321 (coverage_counter_alloc): Print da_file_name to the dump file.
9323 2008-04-21 Kenneth Zadeck <zadeck@naturalbridge.com>
9325 * sbitmap.c (sbitmap_range_empty_p): New function.
9326 * sbitmap.h (sbitmap_range_empty_p): New function.
9327 * bitmap.h: Now includes obstack.h.
9329 2008-04-21 Richard Sandiford <rsandifo@nildram.co.uk>
9330 Kenneth Zadeck <zadeck@naturalbridge.com>
9332 * dbgcnt.def (ra_byte_scan): Added.
9333 * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
9334 when the last hit happens for a counter.
9335 * timevar.def (TV_DF_BYTE_LR): New variable.
9336 * tree-pass.h (pass_fast_rtl_byte_dce): New pass.
9337 * passes.c (pass_fast_rtl_byte_dce): New pass.
9338 * fwprop.c (update_df): Added mode to call df_ref_create.
9339 Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
9340 DF_REF_EXTRACT_OFFSET.
9341 * df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN,
9342 DF_BYTE_LR_OUT, df_byte_lr): New macro.
9344 (df_ref_extract): Added mode field.
9345 (DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
9346 DF_REF_EXTRACT_OFFSET.
9347 (DF_REF_EXTRACT_MODE): New macro.
9348 (df_byte_lr_bb_info): New structure.
9349 (df_print_byte_regset, df_compute_accessed_bytes,
9350 df_byte_lr_add_problem, df_byte_lr_get_regno_start,
9351 df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
9352 df_byte_lr_simulate_uses,
9353 df_byte_lr_simulate_artificial_refs_at_top,
9354 df_byte_lr_simulate_artificial_refs_at_end,
9355 df_compute_accessed_bytes): New function.
9356 (df_ref_create): Add parameter.
9357 (df_byte_lr_get_bb_info): New inline function.
9358 * df-scan.c (df_ref_record, df_uses_record,
9359 df_ref_create_structure): Added mode parameter.
9360 (df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1,
9361 df_defs_record, df_uses_record, df_get_conditional_uses,
9362 df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
9363 df_entry_block_defs_collect, df_exit_block_uses_collect):
9364 Added mode parameter to calls to df_ref_record, df_uses_record,
9365 df_ref_create_structure.
9366 (df_ref_equal_p, df_ref_compare): Added test for modes.
9367 (df_ref_create_structure): Added code to set mode. Renamed
9368 DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
9369 DF_REF_EXTRACT_OFFSET.
9370 * df-core.c (df_print_byte_regset): New function.
9371 * df-byte-scan.c: New file.
9372 * df-problems.c (df_rd_transfer_function): Removed unnecessary
9373 calls to BITMAP_FREE.
9374 (df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
9375 (df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
9376 df_byte_lr_set_bb_info, df_byte_lr_free_bb_info,
9377 df_byte_lr_check_regs, df_byte_lr_expand_bitmap,
9378 df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
9379 df_byte_lr_local_compute, df_byte_lr_init,
9380 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
9381 df_byte_lr_transfer_function, df_byte_lr_free,
9382 df_byte_lr_top_dump, df_byte_lr_bottom_dump,
9383 df_byte_lr_add_problem, df_byte_lr_simulate_defs,
9384 df_byte_lr_simulate_uses,
9385 df_byte_lr_simulate_artificial_refs_at_top,
9386 df_byte_lr_simulate_artificial_refs_at_end): New function.
9387 * dce.c (byte_dce_process_block): New function.
9388 (dce_process_block): au is now passed in rather than computed
9389 locally. Changed loops that look at artificial defs to not look
9390 for conditional or partial ones, because there never are any.
9391 (fast_dce): Now is able to drive byte_dce_process_block or
9392 dce_process_block depending on the kind of dce being done.
9393 (rest_of_handle_fast_dce): Add parameter to fast_dce.
9394 (rest_of_handle_fast_byte_dce): New function.
9395 (rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
9396 * Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
9398 2008-04-21 Daniel Franke <franke.daniel@gmail.com>
9401 * gcc.h: Added fortran options that take arguments to
9402 DEFAULT_SWITCH_TAKES_ARG and DEFAULT_WORD_SWITCH_TAKES_ARG
9405 2008-04-20 Eric Botcazou <ebotcazou@adacore.com>
9407 * tree-sra.c (sra_walk_expr) <VIEW_CONVERT_EXPR>: Disable
9408 scalarization if on the LHS and not a full access.
9410 2008-04-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9412 * Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing it.
9414 2008-04-18 Rafael Espindola <espindola@google.com>
9416 * tree-vrp.c (find_case_label_index): Fix the binary search.
9417 (find_case_label_range): New.
9418 (vrp_visit_switch_stmt): Use find_case_label_range.
9419 (simplify_switch_using_ranges): Use find_case_label_range.
9421 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
9423 * gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
9424 using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
9426 2008-04-18 Tom Tromey <tromey@redhat.com>
9429 * doc/cpp.texi (Implementation-defined behavior): Mention
9432 2008-04-18 Ian Lance Taylor <iant@google.com>
9434 * fold-const.c (pointer_may_wrap_p): New static function.
9435 (fold_comparison): Add another test for pointer overflow. Use
9436 pointer_may_wrap_p to disable some false positives.
9438 2008-04-18 Kris Van Hees <kris.van.hees@oracle.com>
9440 * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros.
9441 (fname_as_string): Match updated cpp_interpret_string prototype.
9442 (fix_string_type): Support char16_t* and char32_t*.
9443 (c_common_nodes_and_builtins): Add char16_t and char32_t (and
9444 derivative) nodes. Register as builtin if C++0x.
9445 (c_parse_error): Support CPP_CHAR{16,32}.
9446 * c-common.h (RID_CHAR16, RID_CHAR32): New elements.
9447 (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE,
9448 CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE,
9449 CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE,
9450 CTI_CHAR32_ARRAY_TYPE>: New elements.
9451 (char16_type_node, signed_char16_type_node, unsigned_char16_type_node,
9452 char32_type_node, signed_char32_type_node, char16_array_type_node,
9453 char32_array_type_node): New defines.
9454 * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype.
9455 (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
9456 (lex_string): Support CPP_STRING{16,32}, match updated
9457 cpp_interpret_string and cpp_interpret_string_notranslate prototypes.
9458 (lex_charconst): Support CPP_CHAR{16,32}.
9459 * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32}
9460 and CPP_STRING{16,32}.
9462 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
9465 * aclocal.m4: Regenerate.
9466 * configure: Regenerate.
9468 2008-04-18 Jan Hubicka <jh@suse.cz>
9470 * except.c (dw2_size_of_call_site_table,
9471 sjlj_size_of_call_site_table): Use vector API for call_site_record.
9473 * cgraphbuild.c (build_cgraph_edges): Update.
9474 * tree-pass.h: Update comment.
9475 * final.c (leaf_function_p): Update.
9476 (leaf_renumber_regs): Update.
9477 (rest_of_clean_state): Update.
9478 * omp-low.c (expand_omp_parallel): Update.
9479 * ipa-reference.c (analyze_function): Update.
9480 * reorg.c (find_end_label): Update.
9481 (optimize_skip): Update.
9482 (fill_simple_delay_slots): Update.
9483 (fill_simple_delay_slots): Update.
9484 (make_return_insns): Update.
9485 (dbr_schedule): Update.
9486 * gimple-low.c (record_vars_into): Update.
9487 * cfgbuild.c (make_edges): Update.
9488 * function.c (assign_stack_local): Update.
9489 (assign_parm_adjust_stack_rtl): Update.
9490 (locate_and_pad_parm): Update.
9491 (allocate_struct_function): Do not initialize stack_alignment_needed
9492 and preferred_stack_boundary here.
9493 (stack_protect_prologue): Update.
9494 (stack_protect_epilogue): Update.
9495 (expand_function_start): Initialize stack_alignment_needed,
9496 preferred_stack_boundary and max_jumptable_ents.
9497 (expand_function_end): Update.
9498 (free_after_compilation): Do not NULLify epilogue_delay_list.
9499 * function.h (struct rtl_data): Add stack_protect_guard,
9500 stack_alignment_needed,
9501 preferred_stack_boundary, epilogue_delay_list.
9502 (struct function): Remove value_histograms, stack_alignment_needed,
9503 preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
9505 unexpanded_var_list, stack_protect_guard.
9506 (current_function_epilogue_delay_list): Remove.
9507 * ipa-type-escape.c (analyze_function): Update.
9508 * gimplify.c (pop_gimplify_context): Update comment.
9509 * calls.c (expand_call): Update.
9510 (emit_library_call_value_1): Update.
9511 * except.c (set_nothrow_function_flags): Update.
9512 * cfgexpand.c (get_decl_align_unit): Update.
9513 (create_stack_guard): Update.
9514 (estimated_stack_frame_size): Update.
9515 (expand_used_vars): Update.
9516 (tree_expand_cfg): Free histogram earliers, init expansion variables.
9517 * explow.c (allocate_dynamic_stack_space): Update.
9518 * tree-ssa-live.c (remove_unused_locals): Update.
9519 * varasm.c (mark_constant_pool): Update.
9520 * tree-inline.c (remap_decls): Update.
9521 (initialize_cfun): Update.
9522 (declare_return_variable): Update.
9523 (inline_forbidden_p): Update.
9524 (expand_call_inline): Update.
9525 (declare_inline_vars): Update.
9526 (tree_function_versioning): Update.
9527 * tree-flow.h (value_histograms): New.
9528 (VALUE_HISTOGRAMS): New macro.
9529 * basic-block.h (control_flow_graph): Add max_jumptable_ents,
9531 * tree-cfg.c (set_bb_for_stmt): Update.
9532 (replace_by_duplicate_decl): Update.
9533 (move_block_to_fn): Update.
9534 (new_label_mapper): Update.
9535 (dump_function_to_file): Update.
9536 * ipa-struct-reorg.c (build_data_structure): Update.
9537 * cfgrtl.c (print_rtl_with_bb): Update.
9538 * reload1.c (reload): Update.
9540 * config/i386/i386.c (setup_incoming_varargs_64,
9541 ix86_compute_frame_layout): Update.
9542 * config/arc/arc.c (arc_output_function_epilogue): Update.
9544 2008-04-18 Marius Strobl <marius@FreeBSD.org>
9546 * gthr-posix.h (__gthread_active_p): Use the Solaris implementation
9547 for FreeBSD as well.
9548 * gthr-posix95.h: Likewise.
9550 2008-04-17 Richard Sandiford <rsandifo@nildram.co.uk>
9552 PR rtl-optimization/35838
9553 * dse.c (find_shift_sequence): Use subreg_lowpart_offset to work
9554 out the byte offset of the first subreg.
9556 2008-04-17 Uros Bizjak <ubizjak@gmail.com>
9558 * config/i386/i386.md (addti3 splitter): Pass arrays of 3 operands
9559 to split_ti instead of three separate calls with single member arrays.
9560 (subti3 splitter): Ditto.
9561 (adddi3 splitter): Ditto with split_di.
9562 (subdi3 splitter): Ditto.
9563 (negti2 splitter): Pass arrays of 2 operands to split_ti instead of
9564 two separate calls with single member arrays. Swap match_dup
9565 operands 1 and 2 to better fit into the array.
9566 (negdi2 splitter): Ditto with split_di.
9567 (movdfcc splitter): Pass arrays of 2 operands to split_di instead of
9568 two separate calls with single member arrays. Swap match_dup operands
9569 6 and 7 to better fit into the array.
9571 2008-04-17 H.J. Lu <hongjiu.lu@intel.com>
9573 * config/i386/i386.c (sse_builtin_type): New.
9574 (bdesc_sse_args): Likewise.
9575 (bdesc_sse_3arg): Removed.
9576 (bdesc_2arg): Remove IX86_BUILTIN_AESKEYGENASSIST128.
9577 (bdesc_1arg): Remove IX86_BUILTIN_ROUNDPD and
9578 IX86_BUILTIN_ROUNDPS.
9579 (ix86_init_mmx_sse_builtins): Handle bdesc_sse_args. Remove
9580 bdesc_sse_3arg. Remove IX86_BUILTIN_ROUNDPD and
9581 IX86_BUILTIN_ROUNDPS.
9582 (ix86_expand_sse_4_operands_builtin): Removed.
9583 (ix86_expand_sse_operands_builtin): New.
9584 (ix86_expand_unop_builtin): Remove CODE_FOR_sse4_1_roundpd
9585 and CODE_FOR_sse4_1_roundps.
9586 (ix86_expand_builtin): Remove IX86_BUILTIN_AESKEYGENASSIST128.
9587 Handle bdesc_sse_args. Remove bdesc_sse_3arg.
9589 2008-04-17 Alan Modra <amodra@bigpond.net.au>
9592 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Restore vr and vrsave
9593 regs before frame pop when needed. If use_backchain_to_restore_sp
9594 then load backchain into a temp reg to restore vr and vrsave. Add
9595 code to restore vr after frame pop if possible.
9597 2008-04-17 Richard Guenther <rguenther@suse.de>
9599 * tree-vn.c (expressions_equal_p): Do not check type
9600 equality or compatibility before calling operand_equal_p.
9601 * fold-const.c (operand_equal_p): Check equivalence of
9602 integer constants before bailing out due to signedness or
9603 precision differences.
9604 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
9605 spurious differences in type qualification. Ignore types
9606 for COMPONENT_REFs at all.
9608 2008-04-17 Christian Bruel <christian.bruel@st.com>
9610 * config/sh/sh.c (expand_cbranchdi4): Use original operands for
9611 msw_skip comparison.
9613 2008-04-16 Jakub Jelinek <jakub@redhat.com>
9616 * tree-nrv.c (tree_nrv): Don't optimize if result_type is GIMPLE
9619 PR tree-optimization/35899
9620 * tree-inline.c (expand_call_inline): Use GIMPLE_STMT_OPERAND
9621 rather than TREE_OPERAND.
9623 2008-04-16 Uros Bizjak <ubizjak@gmail.com>
9626 * config/i386/i386.md (fmodxf3): Copy operand 1 and operand 2 into
9627 temporary registers. Change operand predicate to general_operand.
9628 (remainderxf3): Ditto.
9630 2008-04-16 Richard Guenther <rguenther@suse.de>
9632 * Makefile.in (tree-affine.o): Add $(FLAGS_H) dependency.
9633 * tree-affine.c (aff_combination_expand): Look through some
9636 2008-04-15 Doug Kwan <dougkwan@google.com>
9638 * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
9640 * tree-pretty-print.c (dump_generic_node): Ditto.
9641 * final.c (output_addr_const): Ditto.
9642 * dwarf2out.c (output_cfi): Ditto.
9643 * c-pretty-print.c (pp_c_integer_constant): Ditto.
9644 * print-rtl.c (print_rtx): Ditto.
9645 * print-tree.c (print_node_brief, print_node): Ditto.
9646 * c-common.c (match_case_to_enum_1): Ditto.
9647 * sched-vis.c (print_value): Ditto.
9648 * config/i386/i386.c (print_operand): Cast to long unsigned int
9651 2008-04-15 Danny Smith <dannysmith@users.sourceforge.net>
9652 * libgcc2.c [L_trampoline]: Remove unnecessary prototype for
9653 MS Windows VirtualProtect function.
9655 2008-04-15 Jan Hubicka <jh@suse.cz>
9657 * gengtype.c (write_root): Param_is argument is OK.
9658 * expr.c (expand_expr_real_1): Update call of get_exception_*.
9659 * function.h: Include varray.h
9660 (rtl_eh): New stucture based on except.c one.
9661 (call_site_record): New forward declaration and vector type.
9662 * calls.c (emit_call_1): Do not call
9663 note_current_region_may_contain_throw.
9664 * except.c (eh_status): Remove cur_region, try_region since they are
9666 Move filter, exc_ptr, ttype_data, ehspec_data, action_record_data and
9667 exception_handler_label_map, ehr_stackadj, ehr_handler, ehr_label,
9668 sjlj_fc, sjlj_exit_after to rth_eh in function.h.
9669 Remove call_site_data_used, call_site_data_size.
9670 Turn call_site_record into vector in function.h.
9671 (note_current_region_may_contain_throw): Remove.
9672 (get_exception_pointer, get_exception_filter): Do not take struct
9673 function argument; update.
9674 (add_ehl_entry, find_exception_handler_labels, ehspec_filter_hash,
9675 add_ttypes_entry, add_ehspec_entry, assign_filter_values,
9676 build_post_landing_pads, dw2_build_landing_pads,
9677 sjlj_assign_call_site_values, sjlj_mark_call_sites,
9678 sjlj_emit_function_enter, sjlj_emit_function_enter,
9679 sjlj_emit_function_exit, sjlj_emit_dispatch_table,
9680 sjlj_build_landing_pads, finish_eh_generation,
9681 remove_exception_handler_label, remove_eh_handler,
9682 maybe_remove_eh_handler, add_reachable_handler,
9683 reachable_handlers, expand_builtin_eh_return, expand_eh_return,
9684 add_action_record, collect_one_action_chain, add_call_site,
9685 convert_to_eh_region_ranges, sjlj_size_of_call_site_table,
9686 sjlj_output_call_site_table, output_function_exception_table,
9687 * except.h (note_current_region_may_contain_throw): Remove
9688 (get_exception_pointer, get_exception_filter): Do not take struct
9690 * Makefile.in (GTFILES): Put varargs before struct function.
9692 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
9694 * tree-ssa-structalias.c (get_constraint_for_component_ref): Do not
9695 punt for STRING_CST.
9696 (get_constraint_for): Deal with STRING_CST here instead.
9698 2008-04-15 Richard Guenther <rguenther@suse.de>
9700 * tree-ssa-propagate.c (substitute_and_fold): Substitute
9701 statements in a basic-block with a backward walk. Do not
9702 substitute into dead statements but instead remove those.
9704 2008-04-15 Richard Guenther <rguenther@suse.de>
9706 * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Set default
9707 to zero, thus disable creation of SFTs.
9709 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
9711 * tree-predcom.c (suitable_reference_p): Return false if the
9712 reference can throw.
9714 2008-04-15 Jakub Jelinek <jakub@redhat.com>
9717 * c-decl.c (finish_decl): If extern or static var has variable
9718 size, set TREE_TYPE (decl) to error_mark_node.
9720 2008-04-15 Rafael Espindola <espindola@google.com>
9722 * fold-const.c (tree_call_nonnegative_warnv_p): Remove local
9725 2008-04-15 Richard Guenther <rguenther@suse.de>
9727 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
9728 * tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
9729 (visit_reference_op_load): Do walk vuse-vdef chains on
9730 vn_reference_lookup.
9731 (visit_reference_op_store): But do not here.
9732 * tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
9733 vn_reference_lookup.
9734 (vn_lookup_with_vuses): But do so here.
9736 2008-04-14 Ian Lance Taylor <iant@google.com>
9738 * fold-const.c (fold_overflow_warning): Remove assertion.
9740 2008-04-15 Ben Elliston <bje@au.ibm.com>
9742 * config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp,
9743 temp1 local variables.
9745 2008-04-15 Zuxy Meng <zuxy.meng@gmail.com>
9748 * config/i386/winnt.c (i386_pe_section_type_flags): Mark
9749 ".text.unlikely" section as executable.
9751 2008-04-14 James E. Wilson <wilson@tuliptree.org>
9753 * config/ia64/ia64.c (rtx_needs_barrier): Handle
9754 UNSPEC_FR_SQRT_RECIP_APPROX_RES.
9755 * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define.
9756 (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr,
9757 divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr,
9758 divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat,
9759 divxf3_internal_thr, sqrtxf2_internal_thr, recip_approx): Use it.
9761 2008-04-14 Ian Lance Taylor <iant@google.com>
9763 * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
9764 * fold-const.c (fold_comparison): If appropriate, test
9765 POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
9766 (fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
9767 reassociating a pointer type.
9768 * doc/invoke.texi (Optimize Options): Document that
9769 -fstrict-overflow applies to pointer wraparound.
9771 2008-04-13 Jan Hubicka <jh@suse.cz>
9773 * m32.c (m32c_pushm_popm): Use crtl->retrun_rtx.
9775 2008-04-12 Andrew Pinski <pinskia@gmail.com>
9777 * config/rs6000/rs6000.c (compute_save_world_info): Set lr_save_p if
9778 we are going to "save the world".
9780 2008-04-13 Hans-Peter Nilsson <hp@axis.com>
9782 * config/cris/cris.md ("*andhi_lowpart_non_v32", "*andhi_lowpart_v32")
9783 ("*andqi_lowpart_non_v32", "*andqi_lowpart_v32"): Use "+" for the
9784 operand 0 constraint, not "=".
9786 2008-04-11 James E. Wilson <wilson@tuliptree.org>
9788 * system.h: Change ASSERT_CHECKING to ENABLE_ASSERT_CHECKING.
9790 2008-04-11 H.J. Lu <hongjiu.lu@intel.com>
9792 * dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
9793 of size of positions_needed * CHAR_BIT.
9795 2008-04-11 H.J. Lu <hongjiu.lu@intel.com>
9798 * dse.c (store_info): Change positions_needed to unsigned
9800 (lowpart_bitmask): New.
9801 (record_store): Cast to unsigned HOST_WIDE_INT for
9802 positions_needed. Assert width <= size of positions_needed *
9803 CHAR_BIT. Call lowpart_bitmask to initialize positions_needed.
9804 (check_mem_read_rtx): Use unsigned HOST_WIDE_INT on mask. Call
9805 lowpart_bitmask to set mask.
9807 2008-04-11 Bernd Schmidt <bernd.schmidt@analog.com>
9809 * config/bfin/constraints.md: New file.
9810 * config/bfin/bfin.md: Include it.
9811 (adddi3): Use satisfies_constraint functions instead of the old macros.
9812 * config/bfin/bfin.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
9813 CONST_18UBIT_IMM_P, CONST_16BIT_IMM_P, CONST_16UBIT_IMM_P,
9814 CONST_7BIT_IMM_P, CONST_7NBIT_IMM_P, CONST_5UBIT_IMM_P,
9815 CONST_4BIT_IMM_P, CONST_4UBIT_IMM_P, CONST_3BIT_IMM_P,
9816 CONST_3UBIT_IMM_P, CONST_OK_FOR_K, CONST_OK_FOR_P, CONST_OK_FOR_M,
9817 CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER,
9818 EXTRA_CONSTRAINT): Delete.
9819 * config/bfin/predicates.md (highbits_operand, reg_or_7bit_operand,
9820 reg_or_neg7bit_operand): Use satisfies_constraint functions instead
9822 * config/bfin/bfin.c: Include "tm-constrs.h".
9823 (bfin_secondary_reload, split_load_immediate, bfin_rtx_costs):
9824 Use satisfies_constraint functions instead of the old macros.
9825 * doc/md.texi (Blackfin Constraints): Update file name reference.
9827 2008-04-11 Richard Guenther <rguenther@suse.de>
9829 PR tree-optimization/35869
9830 * tree-vrp.c (execute_vrp): Move switch statement update after
9831 jump threading. Schedule another cfg cleanup run.
9833 2008-04-11 Volker Reichelt <v.reichelt@netcologne.de>
9836 * attribs.c (decl_attributes): Return early on errorneous node.
9838 2008-04-10 Oleg Ryjkov <olegr@google.com>
9840 * tree.h (struct tree_base): Added a new flag default_def_flag.
9841 (SSA_NAME_IS_DEFAULT_DEF): Changed to use the new flag.
9843 2008-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
9845 * config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*.
9847 2008-04-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9850 * pa.md: Define mode iterator P. Define mode attribute dwc.
9851 (dcacheflush): Update pattern to use iterator P and attribute dwc.
9852 (icacheflush): Likewise.
9853 * pa.h (INITIALIZE_TRAMPOLINE): Use dcacheflushsi/icacheflushsi if
9854 !TARGET_64BIT, and dcacheflushdi/icacheflushdi if TARGET_64BIT.
9856 2008-04-11 Ben Elliston <bje@au.ibm.com>
9858 * config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
9860 2008-04-10 Rafael Espindola <espindola@google.com>
9862 * tree-vrp.c (extract_range_from_binary_expr): Don't handle
9863 TRUTH_ANDIF_EXPR or TRUTH_ORIF_EXPR.
9864 (extract_range_from_expr): The same.
9866 2008-04-10 Adam Nemet <anemet@caviumnetworks.com>
9868 * config/mips/mips.md (GPR2): New mode iterator.
9870 (*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
9871 *sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
9872 *slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
9873 Rewrite these to take two modes, the mode of comparison and the
9874 mode of the destination.
9875 * config/mips/mips.c (mips_expand_scc): Instead of having
9876 paradoxical subreg as destination, expand "narrowing" scc if mode
9877 of comparison is SI and target is requested in DI mode.
9878 (mips_emit_int_order_test): Update comment. Make mode of
9879 comparison match CMP0 rather than TARGET. When creating inverse
9880 target use mode of TARGET.
9882 2008-04-10 Adam Nemet <anemet@caviumnetworks.com>
9884 * gcov-dump.c (tag_summary): Only print summaries for the first
9885 GCOV_COUNTERS_SUMMABLE counters.
9887 2008-04-10 Uros Bizjak <ubizjak@gmail.com>
9889 * config/i386/i386.md (absneg): New code iterator.
9890 (absnegprefix): New code attribute.
9891 (<code><mode>2): Macroize expander from abs<mode>2 and neg<mode>2
9892 patterns using absneg code iterator.
9893 (<code>tf2): Macroize expander from abstf2 and negtf2 patterns
9894 using absneg code iterator.
9895 (*<code><mode>2_1): Macroize insn pattern from *abs<mode>2_1 and
9896 *neg<mode>2 patterns using absneg code iterator.
9897 (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
9898 *negextendsfdf2 patterns using absneg code iterator.
9899 (*<code>extendsfxf2): Macroize insn pattern from *absextendsfxf2 and
9900 *negextendsfxf2 patterns using absneg code iterator.
9901 (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
9902 *negextendsfdf2 patterns using absneg code iterator.
9903 * config/i386/sse.md (<code><mode>2): Macroize expander from
9904 abs<mode>2 and neg<mode>2 patterns using absneg code iterator.
9906 2008-04-10 Andreas Krebbel <krebbel1@de.ibm.com>
9908 * config/s390/s390.h: Remove the remains of the recent search
9909 & replace action of current_function_outgoing_args_size.
9911 2008-04-10 Ira Rosen <irar@il.ibm.com>
9913 PR tree-optimization/35821
9914 * tree-vect-transform.c (vect_create_data_ref_ptr): Add check that
9915 NEW_STMT_LIST is not NULL.
9917 2008-04-09 David Edelsohn <edelsohn@gnu.org>
9920 * toplev.c (process_options): Remove -ffunction-sections debugging
9923 2008-04-09 Peter Bergner <bergner@vnet.ibm.com>
9925 PR middle-end/PR28690
9926 * explow.c (break_out_memory_refs): Use simplify_gen_binary rather
9927 than gen_rtx_fmt_ee to perform more canonicalizations.
9929 2008-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9932 * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
9934 2008-04-09 Richard Guenther <rguenther@suse.de>
9936 * tree-cfg.c (verify_stmt): Print complete bogus stmt.
9937 (dump_function_to_file): Dump function arguments with types.
9939 2008-04-08 Richard Guenther <rguenther@suse.de>
9941 * fold-const.c (fold_widened_comparison): Do not allow
9942 sign-changes that change the result.
9944 2008-04-08 Janis Johnson <janis187@us.ibm.com>
9947 * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
9948 kinds of indirect references.
9950 2008-04-08 David Edelsohn <edelsohn@gnu.org>
9952 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
9953 GNU Fortran language string.
9955 2008-04-08 Rafael Espindola <espindola@google.com>
9957 * fold-canst.c (tree_call_nonnegative_warnv_p): New.
9958 (tree_invalid_nonnegative_warnv_p): Use tree_call_nonnegative_warnv_p.
9959 * tree.h (tree_call_nonnegative_warnv_p): New.
9961 2008-04-08 Jan Hubicka <jh@suse.cz>
9963 * function.c (free_after_compilation): Clear out regno_reg_rtx
9966 2008-04-08 Peter Bergner <bergner@vnet.ibm.com>
9969 2008-04-07 Peter Bergner <bergner@vnet.ibm.com>
9971 PR middle-end/PR28690
9972 * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
9973 same precedence as REG_POINTER and MEM_POINTER operands.
9975 2008-04-08 Richard Guenther <rguenther@suse.de>
9978 * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
9979 for adding index to base.
9981 2008-04-08 Kai Tietz <kai.tietz@onevision.com>
9983 * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
9984 (MINGW_ENABLE_EXECUTE_STACK): New.
9985 (IN_LIBGCC2): For libgcc include windows.h file for
9986 function declarations.
9988 2008-04-08 Hans-Peter Nilsson <hp@axis.com>
9990 * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
9991 and tem2 if tem1 is not a REG or MULT.
9993 2008-04-08 Jan Hubicka <jh@suse.cz>
9995 * function.h (incomming_args): Break out of struct function.
9996 (function_subsections): Break out of struct function.
9997 (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
9998 return_rtx and hard_reg_initial_vals from struct function.
9999 Kill inl_max_label_num.
10000 (current_function_pops_args, current_function_args_info,
10001 current_function_args_size, current_function_args_size,
10002 current_function_pretend_args_size,
10003 current_function_outgoing_args_size,
10004 current_function_internal_arg_pointer, current_function_return_rtx):
10005 Kill compatibility accestor macros.
10006 * builtins.c (expand_builtin_apply_args_1): Update.
10007 (expand_builtin_next_arg): Update.
10008 * df-scan.c (df_get_call_refs): Update.
10009 * dbxout.c (dbxout_function_end): Update.
10010 * dwarf2out.c (dwarf2out_switch_text_section): Update.
10011 (output_line_info): Update.
10012 (secname_for_decl): Update.
10013 (dwarf2out_var_location): Update.
10014 * function.c (free_after_compilation): Update.
10015 (assign_parm_find_stack_rtl): Update.
10016 (assign_parms): Update.
10017 (expand_dummy_function_end): Update.
10018 (expand_function_end): Update.
10019 * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
10020 (expand_call): Update.
10021 (emit_library_call_value_1): Update.
10022 (store_one_arg): Update.
10023 * varasm.c (initialize_cold_section_name): Update.
10024 (unlikely_text_section): Update.
10025 (unlikely_text_section_p): Update.
10026 (assemble_start_function): Update.
10027 (assemble_end_function): Update.
10028 (default_section_type_flags): Update.
10029 (switch_to_section): Update.
10030 * integrate.c (set_decl_abstract_flags): Update.
10031 (get_hard_reg_initial_val): Update.
10032 (has_hard_reg_initial_val): Update.
10033 (allocate_initial_values): Update.
10034 * resource.c (init_resource_info): Update.
10035 * config/alpha/alpha.c (NUM_ARGS): Update.
10036 (direct_return): Update.
10037 (alpha_va_start): Update.
10038 (alpha_sa_size): Update.
10039 (alpha_initial_elimination_offset): Update.
10040 (alpha_expand_prologue): Update.
10041 (alpha_start_function): Update.
10042 (alpha_expand_epilogue): Update.
10043 (unicosmk_initial_elimination_offset):
10044 * config/alpha/alpha.md (call expander): Update.
10045 * config/s390/s390.c (s390_register_info): Update.
10046 (s390_register_info): Update.
10047 (s390_frame_info): Update.
10048 (s390_initial_elimination_offset): Update.
10049 (s390_build_builtin_va_list): Update.
10050 (s390_va_start): Update.
10051 * config/spu/spu.c (direct_return): Update.
10052 (spu_expand_prologue): Update.
10053 (spu_initial_elimination_offset): Update.
10054 (spu_build_builtin_va_list): Update.
10055 (spu_va_start): Update.
10056 * config/sparc/sparc.c (sparc_init_modes): Update.
10057 (sparc_compute_frame_size): Update.
10058 (function_value): Update.
10059 * config/m32r/m32r.c (m32r_compute_frame_size): Update.
10060 * config/i386/i386.md (return expander): Update.
10061 * config/i386/i386.c (ix86_va_start): Update.
10062 (ix86_can_use_return_insn_p): Update.
10063 (ix86_compute_frame_layout): Update.
10064 (ix86_expand_epilogue): Update.
10065 * config/sh/sh.c (output_stack_adjust): Update.
10066 (calc_live_regs): Update.
10067 (sh_expand_prologue): Update.
10068 (sh_builtin_saveregs): Update.
10069 (sh_va_start): Update.
10070 (initial_elimination_offset): Update.
10071 (sh_allocate_initial_value): Update.
10072 (sh_function_ok_for_sibcall): Update.
10073 (sh_get_pr_initial_val): Update.
10074 * config/sh/sh.md (return expander): Update.
10075 * config/avr/avr.c (frame_pointer_required_p): UPdate.
10076 * config/crx/crx.c (crx_compute_frame): UPdate.
10077 (crx_initial_elimination_offset): UPdate.
10078 * config/xtensa/xtensa.c (compute_frame_size): Update
10079 (xtensa_builtin_saveregs): Update.
10080 (xtensa_va_start): Update.
10081 (order_regs_for_local_alloc): Update.
10082 * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
10083 (xstormy16_expand_builtin_va_start): Update.
10084 * config/fr30/fr30.c (fr30_compute_frame_size): Update.
10085 * config/m68hc11/m68hc11.md (return expanders): Update.
10086 * config/m68hc11/m68hc11.c (expand_prologue): Update.
10087 (expand_epilogue): Update.
10088 * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
10089 (cris_simple_epilogue): Update.
10090 (cris_expand_prologue): Update.
10091 (cris_expand_epilogue): Update.
10092 * config/iq2000/iq2000.c (iq2000_va_start): Update.
10093 (compute_frame_size): Update.
10094 * config/mt/mt.c (mt_compute_frame_size): Update.
10095 * config/mn10300/mn10300.c (expand_prologue): Update.
10096 (expand_epilogue): Update.
10097 (initial_offset): Update.
10098 (mn10300_builtin_saveregs):
10099 * config/mn10300/mn10300.md (return expander): Update.
10100 * config/ia64/ia64.c (ia64_compute_frame_size): Update.
10101 (ia64_initial_elimination_offset): Update.
10102 (ia64_initial_elimination_offset): Update.
10103 (ia64_expand_prologue): Update.
10104 * config/m68k/m68k.md (return expander): Update.
10105 * config/rs6000/rs6000.c (rs6000_va_start): Update.
10106 (rs6000_stack_info): Update.
10107 * config/mcore/mcore.c (layout_mcore_frame): Update.
10108 (mcore_expand_prolog): Update.
10109 * config/arc/arc.c (arc_compute_frame_size): Update.
10110 * config/score/score3.c (score3_compute_frame_size): Update.
10111 * config/score/score7.c (score7_compute_frame_size): Update.
10112 * config/arm/arm.c (use_return_insn): Update.
10113 (thumb_find_work_register): Update.
10114 (arm_compute_save_reg_mask): Update.
10115 (arm_output_function_prologue): Update.
10116 (arm_output_epilogue): Update.
10117 (arm_size_return_regs): Update.
10118 (arm_get_frame_offsets): Update.
10119 (arm_expand_prologue): Update.
10120 (thumb_exit): Update.
10121 (thumb_unexpanded_epilogue): Update.
10122 (thumb1_output_function_prologue): Update.
10123 * config/pa/pa.md (return expander): Update.
10124 * config/pa/pa.c (compute_frame_size): Update.
10125 (hppa_builtin_saveregs): Update.
10126 * config/mips/mips.c (mips_va_start): Update.
10127 (mips16_build_function_stub): Update.
10128 (mips_compute_frame_info): Update.
10129 (mips_restore_gp): Update.
10130 (mips_output_function_prologue): Update.
10131 (mips_expand_prologue): Update.
10132 * config/v850/v850.c (compute_frame_size): Update.
10133 (expand_prologue): * config/mmix/mmix.c (along): update.
10134 (mmix_initial_elimination_offset): update.
10135 (mmix_reorg): update.
10136 (mmix_use_simple_return): update.
10137 (mmix_expand_prologue): update.
10138 (mmix_expand_epilogue): Update.
10139 * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
10140 (emit_link_insn): Update.
10142 2008-04-08 Anatoly Sokolov <aesok@post.ru>
10144 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define
10145 __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL
10147 * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for
10150 2008-04-07 Jan Hubicka <jh@suse.cz>
10152 * function.h (rtl): Rename to x_rtl.
10153 (crtl): New define.
10154 (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
10155 frame_offset, stack_check_probe_note, arg_pointer_save_area,
10156 used_temp_slots avail_temp_slots, temp_slot_level,
10157 nonlocal_goto_handler_labels): Update accesstors.
10158 (rtl): New global variable.
10159 (struct function): Move some fileds to rtl_data.
10160 (get_arg_pointer_save_area): Update prototype.
10161 * builtins.c (expand_builtin_setjmp_receiver): Update call of
10162 get_arg_pointer_save_area.
10163 * expr.c (init_expr): Update
10164 * function.c (get_frame_size): Update
10165 (assign_stack_local): Update
10166 (expand_function_end): Update.
10167 (get_art_pointer_save_area): Update
10169 * emit-rtl.c (rtl): Declare.
10170 (regno_reg_rtx): Declare.
10171 (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
10173 (gen_reg_rtx): Update.
10174 * varasm.c (n_deferred_constatns): Update accestor.
10175 (init_varasm_status): Do not allocate varasm_status.
10176 (force_const_mem, get_pool_size, output_constant_pool): Update.
10177 * stmt.c (force_label_rtx): Do not use x_ prefixes.
10178 (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
10179 * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
10180 * sparc/sparc.h (INIT_EXPANDERS): Update.
10181 * ia64/ia64.h (INIT_EXPANDERS): Update.
10183 2008-04-07 James E. Wilson <wilson@tuliptree.org>
10185 * reload.c (push_secondary_reload): Add missing break to for loop.
10187 2008-04-07 Peter Bergner <bergner@vnet.ibm.com>
10189 PR middle-end/PR28690
10190 * rtlanal.c: Update copyright years.
10191 (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
10192 as REG_POINTER and MEM_POINTER operands.
10193 * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
10194 (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
10195 * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
10196 * gcse.c: Update copyright years.
10197 (pre_delete): Call gen_reg_rtx_and_attrs.
10198 (hoist_code): Likewise.
10199 (build_store_vectors): Likewise.
10200 (delete_store): Likewise.
10201 * loop-invariant.c (move_invariant_reg): Likewise.
10202 Update copyright years.
10204 2008-04-07 Uros Bizjak <ubizjak@gmail.com>
10206 * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
10207 control string instead of quoted.
10209 2008-04-07 Kenneth Zadeck <zadeck@naturalbridge.com>
10211 * doc/rtl.texi: Rewrite of subreg section.
10213 2008-04-07 Kai Tietz <kai.tietz@onevision.com>
10216 * config/i386/i386.c (legitimize_pic_address): Add treating
10217 of dllimport SYM_REF's.
10218 (legitimize_dllimport_symbol): Add prototype.
10220 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
10222 * fold-const.c (fold) <ARRAY_REF>: New case. Try to fold constant
10223 reference in constructor with non self-referential type.
10225 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
10227 Removal of Return with Depressed Stack Pointer support
10228 * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
10229 (ECF_SP_DEPRESSED): Likewise.
10230 (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
10231 * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
10232 (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
10233 (expand_call): Do not test ECF_SP_DEPRESSED.
10234 * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
10235 * function.c (keep_stack_depressed): Delete.
10236 (handle_epilogue_set): Likewise.
10237 (update_epilogue_consts): Likewise.
10238 (emit_equiv_load): Likewise.
10239 (thread_prologue_and_epilogue_insns): Remove support for Return with
10240 Depressed Stack Pointer.
10241 * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
10243 2008-04-06 Richard Guenther <rguenther@suse.de>
10245 PR tree-optimization/35400
10246 * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
10247 information from SSA_NAMEs.
10249 2008-04-06 Anatoly Sokolov <aesok@post.ru>
10251 * config/avr/avr.h (avr_mega_p): Remove declaration.
10252 (AVR_MEGA): Remove macro.
10253 * config/avr/avr.c (avr_mega_p): Remove variable.
10254 (avr_override_options): Remove inicializion of avr_mega_p.
10255 Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
10256 (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
10257 (avr_jump_mode): (Ditto.).
10258 (avr_output_progmem_section_asm_op): (Ditto.).
10259 (avr_asm_init_sections): (Ditto.).
10260 (avr_asm_init_sections): (Ditto.).
10261 (avr_rtx_costs): (Ditto.).
10262 * config/avr/avr.md: (Ditto.).
10263 * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of
10266 2008-04-06 Richard Guenther <rguenther@suse.de>
10268 PR tree-optimization/35842
10269 * tree-ssa-address.c (fixed_address_object_p): Adjust to match
10270 is_gimple_invariant_address.
10272 2008-04-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
10274 * gcc.c (default_compilers): Sync Fortran extensions list with
10275 that in fortran/lang-specs.h.
10276 * doc/invoke.texi: Likewise.
10277 * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
10278 * dwarf2out.c (gen_compile_unit_die): Likewise.
10280 2008-04-06 Tom G. Christensen <tgc@jupiterrise.com>
10282 * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
10284 2008-04-05 Uros Bizjak <ubizjak@gmail.com>
10287 * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
10288 attribute is used for nested functions.
10290 2008-04-05 Jan Hubicka <jh@suse.cz>
10292 * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
10294 * tree-dump.c (dump_enable_all): Remove prototype; do not accept
10296 (dump_files): Update.
10297 (enable_rtl_dump_file): Do not accept letter argument.
10298 * tree-pass.h (dump_file_info): Remove letter argument.
10299 * toplev.c (decode_d_option): Update -da handling.
10300 * toplev.h (enable_rtl_dump_file): Update prototype.
10301 * passes.c (register_one_dump_file): Do not accept IPA argument; work
10302 it out based on pass type.
10303 (register_dump_files_1): Likewise.
10304 (init_optimization_passes): Update register_one_dump_file calls.
10305 (execute_one_pass): Sanity check that IPA passes are called at IPA
10306 level and RTL passes at RTL level.
10307 (execute_pass_list): IPA pass can not be after or subpass of
10309 (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
10310 disallov RTL subpasses of IPA subpasses.
10312 2008-04-05 Ben Elliston <bje@au.ibm.com>
10314 * tree-cfg.c (need_fake_edge_p): Return false for calls to
10315 builtins that return exactly once and do not throw. Cache call to
10318 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
10320 PR rtl-optimization/34916
10321 PR middle-end/35519
10322 * combine.c (create_log_links): Do not create duplicate LOG_LINKS
10323 between instruction pairs.
10325 2008-04-04 Naveen.H.S <naveen.hs@kpitcummins.com>
10327 * doc/invoke.texi: Document -mbitops for SH.
10328 * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
10329 * config/sh/predicates.md (bitwise_memory_operand): New predicate.
10330 * config/sh/sh.c (print_operand): Add %t operand code.
10331 * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
10332 * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
10333 (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
10334 (extendqihi2): Likewise.
10335 (movqi_i): Likewise.
10336 (insv): Use bset, bclr and bst instructions for SH2A if possible.
10337 (extv): Use bld instruction for SH2A if possible.
10339 (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
10340 bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
10341 bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
10342 (bset.b, bclr.b): Define peepholes.
10343 * config/sh/sh.opt (mbitops): New option.
10345 2008-04-04 Janis Johnson <janis187@us.ibm.com>
10348 * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
10349 and view convert expression.
10351 2008-04-04 Jakub Jelinek <jakub@redhat.com>
10354 * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
10356 2008-04-04 H.J. Lu <hongjiu.lu@intel.com>
10358 * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
10360 * config/i386/cpuid.h (bit_AES): New.
10361 (bit_PCLMUL): Likewise.
10363 * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
10364 (override_options): Handle PTA_AES and PTA_PCLMUL. Enable
10365 SSE2 if AES or PCLMUL is enabled.
10366 (ix86_builtins): Add IX86_BUILTIN_AESENC128,
10367 IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
10368 IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
10369 IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
10370 (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
10371 (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
10372 IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
10373 IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
10374 (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
10375 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
10376 __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
10377 __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
10378 __builtin_ia32_aeskeygenassist128 and
10379 __builtin_ia32_pclmulqdq128.
10380 * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
10381 (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
10382 IX86_BUILTIN_PSRLDQI128. Handle IX86_BUILTIN_AESKEYGENASSIST128.
10384 * config/i386/i386.h (TARGET_AES): New.
10385 (TARGET_PCLMUL): Likewise.
10386 (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
10388 * config/i386/i386.md (UNSPEC_AESENC): New.
10389 (UNSPEC_AESENCLAST): Likewise.
10390 (UNSPEC_AESDEC): Likewise.
10391 (UNSPEC_AESDECLAST): Likewise.
10392 (UNSPEC_AESIMC): Likewise.
10393 (UNSPEC_AESKEYGENASSIST): Likewise.
10394 (UNSPEC_PCLMUL): Likewise.
10396 * config/i386/i386.opt (maes): New.
10397 (mpclmul): Likewise.
10399 * config/i386/sse.md (aesenc): New pattern.
10400 (aesenclast): Likewise.
10401 (aesdec): Likewise.
10402 (aesdeclast): Likewise.
10403 (aesimc): Likewise.
10404 (aeskeygenassist): Likewise.
10405 (pclmulqdq): Likewise.
10407 * config/i386/wmmintrin.h: New.
10409 * doc/extend.texi: Document AES and PCLMUL built-in function.
10411 * doc/invoke.texi: Document -maes and -mpclmul.
10413 2008-04-04 Paolo Bonzini <bonzini@gnu.org>
10415 * function.c (free_after_parsing): Replace with
10416 cxx_push_function_context from C++ front-end.
10417 (allocate_struct_function): Don't call langhook.
10418 * langhooks.h (struct lang_hooks_for_functions): Delete.
10419 (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
10421 * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
10422 (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
10423 LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
10424 LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
10425 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
10426 remove LANG_HOOKS_FUNCTION_INITIALIZER.
10427 * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
10429 * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
10430 Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
10432 2008-04-04 Jakub Jelinek <jakub@redhat.com>
10435 * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
10438 2008-04-04 Richard Guenther <rguenther@suse.de>
10440 PR middle-end/35823
10441 * fold-const.c (optimize_minmax_comparison): Use the correct
10442 type for the constant in the simplified comparison.
10444 2008-04-04 Zuxy Meng <zuxy.meng@gmail.com>
10446 * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
10447 Pass L2 size as "--param l2-cache-size" to the compiler.
10448 (decode_l2_cache): New function to decode L2 cache parameters using
10449 0x8000006 extended cpuid function.
10450 (detect_caches_amd): Determine parameters of L2 cache using
10451 decode_l2_caches function.
10452 (decode_caches_intel): Decode L2 cache parameters.
10453 (detect_caches_intel): Determine L2 cache parameters using
10454 decode_caches_intel and decode_l2_caches functions.
10456 2008-04-03 Bob Wilson <bob.wilson@acm.org>
10458 * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
10459 secondary input reload for subword loads from the constant pool.
10461 2008-04-03 Janis Johnson <janis187@us.ibm.com>
10464 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
10465 constants of the appropriate size for runtime calculations.
10468 * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
10469 decimal-float literal constant zero.
10471 2008-04-03 Jakub Jelinek <jakub@redhat.com>
10474 * c-parser.c (c_parser_omp_atomic): Call
10475 default_function_array_conversion on the RHS.
10477 PR middle-end/35818
10478 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
10479 call is_variable_sized if decl has incomplete type.
10481 2008-04-03 H.J. Lu <hongjiu.lu@intel.com>
10483 * config/i386/i386-protos.h (ix86_aligned_p): Removed.
10485 2008-04-03 Adam Nemet <anemet@caviumnetworks.com>
10487 * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
10489 (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and leu.
10490 (sgt<u>): Merge sgt and sgtu into new expander.
10491 (sgt, sgtu): Remove expanders.
10492 (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new pattern.
10493 (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
10494 (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
10495 *sgtu_<mode>_mips16 into new pattern.
10496 (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
10497 (sge<u>): Merge sge and sgeu into new expander.
10498 (sge, sgeu): Remove expanders.
10499 (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
10501 (*sge_<mode>, second *sge_<mode>): Remove patterns.
10502 (slt<u>): Merge slt and sltu into new expander.
10503 (slt, sltu): Remove expanders.
10504 (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new pattern.
10505 (*slt_<mode>, *sltu_<mode>): Remove patterns.
10506 (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
10507 *sltu_<mode>_mips16 into new pattern.
10508 (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
10509 (sle<u>): Merge sle and sleu into new expander.
10510 (sle, sleu): Remove expanders.
10511 (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new pattern.
10512 (*sle_<mode>, *sleu_<mode>): Remove patterns.
10513 (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
10514 *sleu_<mode>_mips16 into new pattern.
10515 (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
10517 2008-04-03 Jan Hubicka <jh@suse.cz>
10519 PR tree-optimization/35795
10520 * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
10521 * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
10522 * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
10523 * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
10524 * score/score3.c (score3_output_mi_thunk): Likewise.
10525 * score/score7.c (score7_output_mi_thunk): Likewise.
10526 * mips/mips.c (mips_output_mi_thunk): Likewise.
10528 2008-04-03 Richard Guenther <rguenther@suse.de>
10530 * tree-vrp.c (extract_range_from_unary_expr): Handle all
10531 conversions. Simplify code.
10533 2008-04-03 Kaz Kojima <kkojima@gcc.gnu.org>
10535 * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
10537 2008-04-03 Tom Tromey <tromey@redhat.com>
10538 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10540 * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
10541 * config/bfin/t-bfin-linux (generated_files): Add
10542 linux-sysroot-suffix.h.
10543 * doc/install.texi (Prerequisites): Require make 3.80.
10544 * doc/sourcebuild.texi (Front End Directory): Document new
10546 * Makefile.in (generated_files): New variable.
10547 (ALL_HOST_OBJS): New variable.
10548 ($(ALL_HOST_OBJS)): New target.
10550 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
10552 * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
10553 (remap_block): Call id->transform_lang_insert_block instead
10555 (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
10556 Set id.transform_lang_insert_block to NULL.
10557 (clone_body): Move to cp/optimize.c
10558 * tree-inline.h (struct copy_body_data): Change
10559 transform_lang_insert_block to function pointer.
10560 (copy_generic_body, copy_decl_no_change): Export.
10561 * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
10562 * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
10563 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
10565 * c-tree.h (insert_block): Kill.
10566 * c-decl.c (insert_block): Kill.
10568 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
10570 * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
10571 LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
10572 * c-tree.h (c_push_function_context, c_pop_function_context): Remove
10574 * c-decl.c (c_push_function_context, c_pop_function_context): Remove
10575 argument, call {push,pop}_function_context from here.
10576 * c-parser.c: Use c_{push,pop}_function_context.
10578 * function.c (push_function_context_to): Move meat ...
10579 (push_function_context): ... here. Simplify.
10580 * function.c (pop_function_context_from): Move meat ...
10581 (pop_function_context): ... here. Simplify.
10582 * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
10584 * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
10585 LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
10586 (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
10587 * tree.h (push_function_context_to, pop_function_context_from): Remove.
10589 2008-04-03 Ben Elliston <bje@au.ibm.com>
10591 * expmed.c (extract_force_align_mem_bit_field): Remove.
10593 2008-04-03 Richard Guenther <rguenther@suse.de>
10595 PR middle-end/35800
10596 * expr.h (try_casesi): Adjust prototype.
10597 * expr.c (try_casesi): Take fallback label as extra parameter.
10598 Use that for gen_casesi if default_label is NULL.
10599 * stmt.c (expand_case): Pass fallback label to try_casesi,
10600 make sure to fill gaps with a fallback label if default_label
10603 2008-04-03 Dominique d'Humieres <dominiq@lps.ens.fr>
10606 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
10608 2008-04-03 Ben Elliston <bje@au.ibm.com>
10610 * expmed.c (extract_split_bit_field): Remove if (0) code.
10611 * tree-ssa-structalias.c (do_sd_constraint): Likewise.
10612 (do_ds_constraint): Likewise.
10614 2008-04-02 Joseph Myers <joseph@codesourcery.com>
10616 * doc/cppopts.texi (-dU): Document.
10617 * c-common.h (flag_dump_macros): Update comment.
10618 * c-opts.c (handle_OPT_d): Handle -dU.
10619 * c-ppoutput.c (macro_queue, define_queue, undef_queue,
10620 dump_queued_macros, cb_used_define, cb_used_undef): New.
10621 (init_pp_output): Handle -dU.
10622 (cb_line_change): Call dump_queued_macros.
10623 * toplev.c (decode_d_option): Accept -dU as preprocessor option.
10625 2008-04-02 Anatoly Sokolov <aesok@post.ru>
10627 * config/avr/predicates.md (io_address_operand): New predicate.
10628 * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
10629 * config/avr/avr.c (avr_io_address_p): Remove function.
10630 (out_movqi_r_mr): Use 'io_address_operand' predicate instead of
10631 'avr_io_address_p' function.
10632 (out_movhi_r_mr): (Ditto.).
10633 (out_movqi_mr_r): (Ditto.).
10634 (out_movhi_mr_r): (Ditto.).
10635 (avr_address_cost): (Ditto.).
10637 2008-04-02 Uros Bizjak <ubizjak@gmail.com>
10639 * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
10640 Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
10641 in 32bit mode when XMM registers are available to avoid store
10643 (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
10644 corresponding post-reload splitters.
10646 2008-04-02 H.J. Lu <hongjiu.lu@intel.com>
10648 * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
10649 and __builtin_ia32_shufpd. Provide __builtin_ia32_roundsd and
10650 __builtin_ia32_roundss.
10651 (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
10652 __builtin_ia32_shufpd, __builtin_ia32_roundsd and
10653 __builtin_ia32_roundss.
10654 (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
10655 IX86_BUILTIN_SHUFPD here.
10657 2008-04-02 H.J. Lu <hongjiu.lu@intel.com>
10659 * config/i386/i386.md (plogic): New.
10660 (plogicprefix): Likewise.
10662 * config/i386/mmx.md (mmx_<code><mode>3): New.
10663 (mmx_and<mode>3): Removed.
10664 (mmx_ior<mode>3): Likewise.
10665 (mmx_xor<mode>3): Likewise.
10667 * config/i386/sse.md (<code><mode>3): New.
10668 (*<code><mode>3): Likewise.
10669 (*<code><mode>3): Likewise.
10670 (<code><mode>3): Likewise.
10671 (*sse_<code><mode>3): Likewise.
10672 (*sse2_<code><mode>3): Likewise.
10673 (<code>tf3): Likewise.
10674 (*<code>tf3): Likewise.
10675 (and<mode>3): Likewise.
10676 (*and<mode>3): Likewise.
10677 (ior<mode>3): Removed.
10678 (*ior<mode>3): Likewise.
10679 (xor<mode>3): Likewise.
10680 (*xor<mode>3): Likewise.
10681 (*and<mode>3): Likewise.
10682 (*ior<mode>3): Likewise.
10683 (*xor<mode>3): Likewise.
10684 (and<mode>3): Likewise.
10685 (*sse_and<mode>3): Likewise.
10686 (*sse2_and<mode>3): Likewise.
10687 (andtf3): Likewise.
10688 (*andtf3): Likewise.
10689 (ior<mode>3): Likewise.
10690 (*sse_ior<mode>3): Likewise.
10691 (*sse2_ior<mode>3): Likewise.
10692 (iortf3): Likewise.
10693 (*iortf3): Likewise.
10694 (xor<mode>3): Likewise.
10695 (*sse_xor<mode>3): Likewise.
10696 (*sse2_xor<mode>3): Likewise.
10697 (xortf3): Likewise.
10698 (*xortf3): Likewise.
10700 2008-04-02 Richard Guenther <rguenther@suse.de>
10702 PR tree-optimization/14495
10703 PR tree-optimization/34793
10704 * tree-vrp.c (struct switch_update): New structure.
10705 (to_remove_edges, to_update_switch_stmts): New VECs.
10706 (simplify_switch_using_ranges): New function. Remove not taken
10707 case labels and edges.
10708 (simplify_stmt_using_ranges): Call it.
10709 (identify_jump_threads): Mark edges we have queued for removal
10710 so we don't thread them.
10711 (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
10713 * tree-cfg.c (group_case_labels): Deal with missing default label.
10714 (tree_verify_flow_info): Allow missing default label.
10715 * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
10716 (emit_case_nodes): Likewise.
10717 (expand_case): Do not rely on the default label to be present.
10718 * expr.c (try_casesi): Deal with NULL default_label.
10719 (do_tablejump): Likewise.
10721 2008-04-02 Richard Guenther <rguenther@suse.de>
10723 PR tree-optimization/14495
10724 * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
10725 SWITCH_EXPR here ...
10726 (vrp_visit_switch_stmt): ... but here (new function).
10727 (find_case_label_index): New helper function.
10728 (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
10730 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
10732 * fwprop.c: Fix ISO-C99ism.
10734 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
10737 * Makefile.in (objdir): Set it here.
10738 * configure.ac: Not here. Find dynamic linker characteristics.
10739 * exec-tool.in: Use them.
10740 * aclocal.m4: Regenerate.
10741 * configure: Regenerate.
10743 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
10745 * expr.c (expand_var): Delete it.
10746 * expr.h (expand_var): Delete prototype.
10747 * function.c (expand_function_start): Use expand_decl instead.
10748 * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
10751 2008-04-02 Andy Hutchinson <hutchinsonamdy@aim.com>
10753 PR rtl-optimization/35542
10754 * fwprop.c (forward_propagate_and_simplify): Replace
10755 loc_reg_mentioned_in_p with reg_mentioned_p.
10757 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
10759 PR rtl-optimization/35281
10760 * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
10761 (propagate_rtx_1): Handle PR_HANDLE_MEM.
10762 (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
10763 (varying_mem_p): Move above propagate_rtx.
10764 (all_uses_available_at): Do not check MEMs.
10766 2008-04-02 Rafael Espindola <espindola@google.com>
10768 * tree-vrp.c (extract_code_and_val_from_cond): Remove.
10769 (register_edge_assert_for_2): Split the cond argument.
10770 (register_edge_assert_for_1): Adjust for the change in
10771 register_edge_assert_for_2.
10772 (register_edge_assert_for): Split the cond argument.
10773 (find_switch_asserts): Adjust for the change in
10774 register_edge_assert_for.
10776 2008-04-02 Kai Tietz <kai.tietz@onevision.com>
10778 * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
10779 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
10780 offsets for 64-bit mingw.
10781 * config/i386/i386.c (ix86_pass_by_reference): Correct calling
10782 abi for x86_64-pc-mingw.
10784 2008-04-02 Richard Guenther <rguenther@suse.de>
10786 * tree-vrp.c (extract_range_from_assert): Make sure to not
10787 produce range min/max with TREE_OVERFOW set.
10788 If merging a anti-range and a range keep the anti-range if
10789 the range covers all values of the type.
10790 (register_edge_assert_for_2): Only allow sign-changing
10791 conversions in detecting canonical range checks. Also
10792 register an assert for the unsigned name if useful.
10794 PR tree-optimization/35787
10795 * tree-vrp.c (vrp_val_max): New function.
10796 (vrp_val_min): Likewise.
10797 (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
10798 (vrp_val_is_min): Likewise.
10799 (supports_overflow_infinity): Use vrp_val_{min,max}.
10800 (negative_overflow_infinity): Likewise.
10801 (positive_overflow_infinity): Likewise.
10802 (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
10803 (is_positive_overflow_infinity): Likewise.
10804 (is_overflow_infinity): Likewise.
10805 (avoid_overflow_infinity): Use vrp_val_{min,max} and
10806 vrp_val_is_{min,max}.
10807 (set_and_canonicalize_value_range): Canonicalize anti-ranges
10808 to ranges if possible. Avoid empty ranges.
10810 2008-04-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10812 PR middle-end/35705
10813 * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
10814 the expression is a function address.
10816 2008-04-01 George Helffrich <george@gcc.gnu.org>
10818 PR fortran/35154, fortran/23057
10819 * dbxout.c: Emit .stabs debug info for Fortran COMMON block
10820 variables as base symbol name + offset using N_BCOMM/N_ECOMM.
10821 (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
10822 (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
10824 (dbxout_syms): Check for COMMON-based symbol and wrap in
10825 N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
10826 in bracket for efficiency.
10828 * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
10829 using DW_TAG_common_block + member offset.
10830 (add_pubname_string): New function.
10831 (dw_expand_expr): New function to find block name and offset for
10833 (common_check): New function to check whether symbol in Fortran COMMON.
10834 (gen_variable_die): If COMMON, use DW_TAG_common_block.
10836 2008-04-01 Volker Reichelt <v.reichelt@netcologne.de>
10839 * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
10841 2008-04-02 Ben Elliston <bje@au.ibm.com>
10843 * config/v850/v850.md (casesi): Remove if (0) code.
10844 * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
10845 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
10847 2008-04-01 Uros Bizjak <ubizjak@gmail.com>
10849 * config/i386/i386.md (rex64suffix): New mode attribute.
10850 (floathi<mode>2): Disable expander for SSE math.
10851 (*floathi<mode>2_1): New insn insn_and_split pattern.
10852 (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
10853 corresponding post-reload splitters.
10854 (*floathi<mode>2_i387): New macroized insn pattern.
10855 (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
10856 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
10857 insn_and_split pattern.
10858 (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
10859 New macroized instruction patterns and corresponding post-reload
10861 (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
10862 and corresponding post-reload splitters.
10863 (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
10864 New macroized instruction patterns.
10865 (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
10866 macroized instruction patterns and corresponding post-reload splitters.
10867 (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
10868 corresponding post-reload splitters.
10869 (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
10870 New macroized instruction patterns.
10871 (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
10872 corresponding post-reload splitters.
10873 (*floatsi<mode>2_i387): New macroized instruction patterns.
10875 2008-04-01 H.J. Lu <hongjiu.lu@intel.com>
10877 * config/i386/i386.md (smaxmin): New.
10878 (umaxmin): Likewise.
10879 (maxminiprefix): Likewise.
10880 (maxminfprefix): Likewise.
10881 (<code><mode>3): Likewise.
10882 (smin<mode>3): Removed.
10883 (smax<mode>3): Likewise.
10885 * config/i386/mmx.md (mmx_<code>v2sf3): New.
10886 (mmx_<code>v4hi3): Likewise.
10887 (mmx_<code>v8qi3): Likewise.
10888 (mmx_smaxv2sf3): Removed.
10889 (mmx_sminv2sf3): Likewise.
10890 (mmx_umaxv8qi3): Likewise.
10891 (mmx_smaxv4hi3): Likewise.
10892 (mmx_uminv8qi3): Likewise.
10893 (mmx_sminv4hi3): Likewise.
10895 * config/i386/sse.md (<addsub><mode>3): New.
10896 (*<addsub><mode>3): Likewise.
10897 (<sse>_vm<addsub><mode>3): Likewise.
10898 (<maxmin><mode>3): Likewise.
10899 (*<maxmin><mode>3_finite): Likewise.
10900 (*<maxmin><mode>3): Likewise.
10901 (<sse>_vm<maxmin><mode>3): Likewise.
10902 (sse3_h<addsub>v4sf3): Likewise.
10903 (sse3_h<addsub>v2df3): Likewise.
10904 (<maxmin>v16qi3): Likewise.
10905 (*<maxmin>v16qi3): Likewise.
10906 (<maxmin>v8hi3): Likewise.
10907 (*<maxmin>v8hi3): Likewise.
10908 (*sse4_1_<maxmin><mode>3): Likewise.
10909 (*sse4_1_<maxmin><mode>3): Likewise.
10910 (add<mode>3): Removed.
10911 (*add<mode>3): Likewise.
10912 (<sse>_vmadd<mode>3): Likewise.
10913 (sub<mode>3): Likewise.
10914 (*sub<mode>3): Likewise.
10915 (<sse>_vmsub<mode>3): Likewise.
10916 (smin<mode>3): Likewise.
10917 (*smin<mode>3_finite): Likewise.
10918 (*smin<mode>3): Likewise.
10919 (<sse>_vmsmin<mode>3): Likewise.
10920 (smax<mode>3): Likewise.
10921 (*smax<mode>3_finite): Likewise.
10922 (*smax<mode>3): Likewise.
10923 (<sse>_vmsmax<mode>3): Likewise.
10924 (sse3_haddv4sf3): Likewise.
10925 (sse3_haddv2df3): Likewise.
10926 (sse3_hsubv4sf3): Likewise.
10927 (sse3_hsubv2df3): Likewise.
10928 (umaxv16qi3): Likewise.
10929 (*umaxv16qi3): Likewise.
10930 (smaxv8hi3): Likewise.
10931 (*smaxv8hi3): Likewise.
10932 (*sse4_1_smax<mode>3): Likewise.
10933 (*sse4_1_umax<mode>3): Likewise.
10934 (uminv16qi3): Likewise.
10935 (*uminv16qi3): Likewise.
10936 (sminv8hi3): Likewise.
10937 (*sminv8hi3): Likewise.
10938 (*sse4_1_smin<mode>3): Likewise.
10939 (*sse4_1_umin<mode>3): Likewise.
10941 2008-04-01 Rafael Espindola <espindola@google.com>
10943 * tree-cfg.c (verify_expr): remove in_phi.
10944 (verify_stmt): Don't call walk_tree with verify_expr. Use
10945 is_gimple_min_invariant instead of is_gimple_val.
10947 2008-04-01 Joseph Myers <joseph@codesourcery.com>
10949 * doc/include/gpl_v3.texi: Update for manpage generation.
10950 * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
10952 * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
10953 * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
10954 gpl_v3.texi instead of gpl.texi.
10957 2008-04-01 Jakub Jelinek <jakub@redhat.com>
10960 * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
10962 2008-04-01 Rafael Espindola <espindola@google.com>
10964 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
10965 (extract_code_and_val_from_cond): Use
10966 extract_code_and_val_from_cond_with_ops.
10968 2008-04-01 Jan Hubicka <jh@suse.cz>
10970 * function.c (free_after_compilation): Free epilogue_delay_list.
10971 (prepare_function_start): Assert that previous compilation was freed.
10973 2008-04-01 Jan Hubicka <jh@suse.cz>
10974 Jim Wilson <wilson@tuliptree.org>
10975 Andreas Tobler <andreast@gcc.gnu.org>
10977 PR middle-end/35781
10978 * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
10979 rtl.emit instead cfun->emit.
10980 * sparc/sparc.h (INIT_EXPANDERS): Likewise.
10981 * ia64/ia64.h (INIT_EXPANDERS): Likewise.
10983 2008-04-01 Ben Elliston <bje@au.ibm.com>
10985 * doc/c-tree.texi (Function Basics): Fix grammatical error.
10987 2008-03-31 Seongbae Park <seongbae.park@gmail.com>
10989 * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
10991 (fprofile-use): Add var flag_profile_use
10992 * coverage.c (coverage_begin_output): Do not open a gcno file for
10993 output only if -ftest-coverage is set.
10994 Do not add getpwd() to gcda file path.
10995 (build_gcov_info): Check the new flag
10996 flag_profile_datafile_relative_path.
10997 (coverage_init): Use profile_data_prefix.
10998 Read profile counter only if flag_profile_use is set.
10999 * opts.c (common_handle_option): New option fprofile-use=,
11000 fprofile-dir=, fprofile-generate=.
11001 * toplev.c (profile_data_prefix): New variable definition.
11002 * toplev.h (profile_data_prefix): New declaration.
11003 * doc/invoke.tex (Option Summary, Optimization Options):
11006 2008-03-31 James E. Wilson <wilson@tuliptree.org>
11008 * varasm.c (output_constant_pool_1): In LABEL_REF check,
11009 use tmp consistently.
11012 * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
11013 * config/ia64/ia64.c (rtx_needs_barrier): Handle
11014 UNSPEC_FR_RECIP_APPROX_RES.
11015 * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
11017 2008-03-31 Volker Reichelt <v.reichelt@netcologne.de>
11020 * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
11022 2008-03-31 Andrew Pinski <andrew_pinski@playstation.sony.com>
11024 PR middle-end/30186
11025 * fold-const.c (fold_indirect_ref_1): Support accessing non first
11026 element of the vector via a pointer.
11028 2008-03-31 Ian Lance Taylor <iant@google.com>
11030 * tlink.c (scan_linker_output): Look for symbol name in single quotes.
11032 2008-03-31 Jan Hubicka <jh@suse.cz>
11034 * builtins.c (expand_builtin_setjmp_receiver): Update call of
11035 get_arg_pointer_save_area.
11036 * expr.c (init_expr): Just clear out rtl.expr.
11037 * function.c (free_after_compilation): Clear out whole RTL structure.
11038 (get_func_frame_size): Merge into ...
11039 (get_frame_size): ... this one.
11040 (assign_stack_local_1): Merge into ...
11041 (assign_stack_local): ... this one.
11042 (expand_function_end): Update call of get_arg_pointer_save_area.
11043 (get_art_pointer_save_area): Remove cfun argument.
11044 * function.h (emit_status): regno_pointer_align does not need length
11045 attribute. Move x_regno_reg_rtx to ...
11046 (regno_reg_rtx): ... new global array.
11047 (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
11048 (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
11049 apply_args_value, forced_labels, stack_pointer_delta):
11051 (struct varasm_status): Move here from varasm.c
11052 (struct rtl_data): New. Move here some fields from struct function.
11053 (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
11054 frame_offset, stack_check_probe_note, arg_pointer_save_area,
11055 used_temp_slots avail_temp_slots, temp_slot_level,
11056 nonlocal_goto_handler_labels): Update accesstors.
11057 (rtl): New global variable.
11058 (struct function): Move some fileds to rtl_data.
11059 (get_arg_pointer_save_area): Update prototype.
11060 * emit-rtl.c (rtl): Declare.
11061 (regno_reg_rtx): Declare.
11062 (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
11064 (gen_reg_rtx): Update.
11065 (init_virtual_regs): Do not tate emit_status argument.
11066 (init_emit): Do not allocate emit.
11067 * varasm.c (varasm_statuc): Move to function.h.
11068 (n_deferred_constatns): Update accestor.
11069 (init_varasm_status): Do not allocate varasm_status.
11070 (force_const_mem, get_pool_size, output_constant_pool): Update.
11071 * stmt.c (force_label_rtx): Do not use x_ prefixes.
11072 (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
11074 2008-03-31 Zdenek Dvorak <ook@ucw.cz>
11076 PR rtl-optimization/35729
11077 * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
11080 2008-03-31 H.J. Lu <hongjiu.lu@intel.com>
11083 * config/i386/i386.md (*movti_internal): Emit unaligned SSE
11084 load/store if memory is unaligned.
11085 (*movti_rex64): Likewise.
11087 * config/i386/predicates.md (misaligned_operand): New.
11089 2008-03-31 Andrew Pinski <pinskia@gmail.com>
11092 * tree-ssa-phiopt.c (conditional_replacement): Return early for
11095 2008-03-31 Jan Beulich <jbeulich@novell.com>
11097 * config/ia64/constraints.md: Add 'j' constraint.
11098 * config/ia64/ia64.md (movsi_internal): Add addp4 case.
11099 (movdi_internal): Likewise.
11101 2008-03-30 Volker Reichelt <v.reichelt@netcologne.de>
11104 * c-typeck.c (build_c_cast): Skip invalid fields in unions.
11106 2008-03-30 H.J. Lu <hongjiu.lu@intel.com>
11109 * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
11110 proper error message for the third argument on blendpd and
11113 * config/i386/sse.md (blendbits): New.
11114 (sse4_1_blendp<ssemodesuffixf2c>): Use it.
11116 2008-03-30 Eric Botcazou <ebotcazou@adacore.com>
11118 * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
11120 2008-03-30 Richard Guenther <rguenther@suse.de>
11122 PR middle-end/31023
11123 * fold-const.c (fold_sign_changed_comparison): Do leave
11124 conversions to base-types alone.
11126 2008-03-29 Andrew Pinski <andrew_pinski@playstation.sony.com>
11128 * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
11129 the link register if one altivec register is be saved.
11131 2008-03-30 Ben Elliston <bje@au.ibm.com>
11133 * final.c (final_scan_insn): Remove if (0) code.
11135 2008-03-28 Volker Reichelt <v.reichelt@netcologne.de>
11137 * c-parser.c (c_parser_next_token_is_keyword): Simplify.
11139 2008-03-28 H.J. Lu <hongjiu.lu@intel.com>
11141 * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
11142 of V4SFmode to ix86_binary_operator_ok.
11144 2008-03-28 Uros Bizjak <ubizjak@gmail.com>
11146 * config/i386/i386.c (override_options): Initialize
11147 ix86_veclib_handler to ix86_veclibabi_svml when
11148 -mveclibabi=svml is used.
11149 (ix86_veclibabi_svml): New function for SVML ABI style
11150 vectorization support.
11151 * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
11153 2008-03-28 Rafael Espindola <espindola@google.com>
11155 * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
11156 (tree_binary_nonnegative_warnv_p): Make it public.
11157 (tree_single_nonnegative_warnv_p): Make it public.
11158 (tree_invalid_nonnegative_warnv_p): Make it public.
11159 (tree_unary_nonzero_warnv_p): Make it public.
11160 (tree_binary_nonzero_warnv_p): Make it public
11161 (tree_single_nonzero_warnv_p): Make it public.
11162 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
11163 (extract_range_from_binary_expr): Split the expr argument.
11164 (extract_range_from_unary_expr): Split the expr argument.
11165 (extract_range_from_comparison): Split the expr argument.
11166 (extract_range_from_expr): Use the new aux functions.
11167 (vrp_evaluate_conditional_warnv): Use
11168 vrp_evaluate_conditional_warnv_with_ops.
11169 * tree.h (tree_unary_nonzero_warnv_p): Declare.
11170 (tree_binary_nonzero_warnv_p): Declare.
11171 (tree_single_nonzero_warnv_p): Declare.
11172 (tree_expr_nonzero_warnv_p): Declare.
11173 (tree_unary_nonnegative_warnv_p): Declare.
11174 (tree_binary_nonnegative_warnv_p): Declare.
11175 (tree_single_nonnegative_warnv_p): Declare.
11176 (tree_invalid_nonnegative_warnv_p): Declare.
11178 2008-03-28 Richard Guenther <rguenther@suse.de>
11180 PR tree-optimization/30317
11181 PR tree-optimization/30911
11182 PR tree-optimization/34793
11183 * tree-vrp.c (set_and_canonicalize_value_range): New function.
11184 (struct assert_locus_d): New member EXPR.
11185 (register_new_assert_for): Add EXPR parameter to support
11186 ASSERT_EXPR <name, expr OP limit>.
11187 (register_edge_assert_for_1): Adjust callers.
11188 (find_assert_locations): Likewise.
11189 (process_assert_insertions_for): Build condition from expression.
11190 (extract_range_from_assert): Handle ASSERT_EXPRs
11191 of the form ASSERT_EXPR <name, expr OP limit>.
11192 (register_edge_assert_for_2): New helper registering
11193 asserts for comparisons. Recognize range tests of the form
11194 (unsigned)i - CST1 OP CST2.
11195 (register_edge_assert_for_1): Use it.
11196 (register_edge_assert_for): Likewise.
11197 (needs_overflow_infinity): Integer sub-types
11198 do not need overflow infinities.
11199 (vrp_val_is_max): The extreme values of integer sub-types
11200 are those of the base type.
11201 (vrp_val_is_min): Likewise.
11202 * tree.def (ASSERT_EXPR): Document extra allowed conditional
11205 2008-03-28 Nick Clifton <nickc@redhat.com>
11208 * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
11209 Return GENERAL_REGS for stack adjustment reloads.
11211 2008-03-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
11214 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
11215 const_vector when all the vectors are constant.
11217 2008-03-27 Bob Wilson <bob.wilson@acm.org>
11219 * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
11221 * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
11222 (any_scc_sf): Add uneq, unlt, unle and unordered operators.
11224 (s<code>_sf): Use new scc_sf attribute for opcode names.
11226 2008-03-27 Tom Tromey <tromey@redhat.com>
11228 * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
11229 configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
11230 config/spu/t-spu-elf, config/i386/t-interix,
11231 config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
11232 config/i386/x-darwin, config/i386/x-mingw32,
11233 config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
11234 config/sh/t-sh, config/sh/t-symbian, config/x-linux,
11235 config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
11236 config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
11237 config/rs6000/x-rs6000, config/rs6000/x-darwin64,
11238 config/rs6000/x-darwin, config/rs6000/t-rs6000,
11239 config/score/t-score-elf, config/arm/t-strongarm-pe,
11240 config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
11241 config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
11242 Revert automatic dependency patch.
11244 2008-03-27 H.J. Lu <hongjiu.lu@intel.com>
11247 * config/i386/i386.c (ix86_function_arg_boundary): Align
11248 decimal floating point to its natural boundary.
11250 2008-03-27 Richard Guenther <rguenther@suse.de>
11252 PR middle-end/35716
11253 * fold-const.c (fold_comparison): Restrict distinct decl
11254 comparison folding to VAR_DECLs and PARM_DECLs. Do not
11255 solely rely on operand_equal_p.
11257 2008-03-27 Richard Guenther <rguenther@suse.de>
11260 * c-common.c (handle_weak_attribute): Reject combination of
11263 2008-03-27 Richard Guenther <rguenther@suse.de>
11265 PR tree-optimization/32810
11266 * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
11267 conversions from DECL_INITIAL.
11268 (fold_const_aggregate_ref): Likewise from constructor elements.
11270 2008-03-27 Zdenek Dvorak <ook@ucw.cz>
11272 * tree-affine.h (aff_combination_expand): Declare.
11273 (get_inner_reference_aff): Likewise.
11274 * tree-affine.c (aff_combination_expand): Split out from
11275 tree_to_aff_combination_expand.
11276 (get_inner_reference_aff): New function.
11277 * tree-parloops.c (loop_parallel_p): Free vectorizer info.
11278 * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
11279 (struct lim_aux_data): sm_done field removed.
11280 (mem_ref_loc_p, mem_ref_locs_p): New types.
11281 (struct mem_ref): Added id, stored, accesses_in_loop,
11282 indep_loop, dep_loop, indep_ref, dep_ref fields.
11283 Removed is_stored, locs and next fields.
11284 (memory_accesses): New variable.
11285 (movement_possibility): Do not allow moving statements
11286 that store to memory.
11287 (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
11289 (determine_max_movement): For statements with memory references,
11290 find the outermost loop in that the reference is independent.
11291 (move_computations_stmt): Mark the virtual operands for renaming.
11292 (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
11293 gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
11294 vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
11295 add_vop_ref_mapping, create_vop_ref_mapping_loop,
11296 create_vop_ref_mapping, analyze_memory_references,
11297 cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
11298 get_all_locs_in_loop, ref_always_accessed_p,
11299 refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
11300 ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
11301 store_motion_loop, store_motion): New functions.
11302 (struct vop_to_refs_elt): New type.
11303 (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
11304 memref_hash, memref_eq, hoist_memory_references): Rewritten.
11305 (schedule_sm): Replaced by...
11306 (execute_sm): ... this.
11307 (determine_lsm_ref, hoist_memory_references,
11308 loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
11309 find_more_ref_vops, free_mem_ref, free_mem_refs,
11310 determine_lsm_loop, determine_lsm): Removed.
11311 (tree_ssa_lim_finalize): Free data structures used by store motion.
11312 (tree_ssa_lim): Call analyze_memory_references. Use
11313 store_motion instead of determine_lsm.
11315 2008-03-27 Paolo Bonzini <bonzini@gnu.org>
11317 * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
11318 rename tmake_file to m68hc11/t-m68hc11.
11319 (mcore): Set inhibit_libc to true.
11320 * config.host (alpha*-dec-*vms*): Set extra_programs.
11321 (interix3*): Don't use host_xmake_file.
11322 * configure.ac: Let config.gcc override inhibit_libc.
11323 * configure: Regenerate.
11325 * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
11326 * config/t-openbsd-thread: Remove commented out lines.
11328 * config/x-interix: Remove.
11330 * config/m68hc11/t-m68hc11-gas: Rename to...
11331 * config/m68hc11/t-m68hc11: ... this. Remove T_CPPFLAGS.
11333 * config/mcore/t-mcore: Remove T_CFLAGS.
11334 * config/mcore/t-mcore-pe: Likewise.
11336 2008-03-27 Paolo Bonzini <bonzini@gnu.org>
11338 * configure.ac: Replace custom __GNU_SOURCE test with
11339 AC_USE_SYSTEM_EXTENSIONS. Move it earlier.
11340 * aclocal.m4: Regenerate.
11341 * configure: Regenerate.
11342 * config.in: Regenerate.
11344 2008-03-27 Richard Guenther <rguenther@suse.de>
11346 * fold-const.c (target.h): Include.
11347 (fold_comparison): Fold comparison of addresses of decls
11348 that bind locally or of constants. Consolidate address folding code.
11349 * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
11350 results from fold_binary_to_constant.
11351 (compare_values_warnv): Likewise.
11353 2008-03-27 Andrew Pinski <pinskia@gmail.com>
11355 PR middle-end/35429
11356 * fold-const.c (fold_truthop): Check for integeral types when folding
11357 a == 0 && b == 0 and a != 0 || b != 0 .
11359 2008-03-26 Eric Botcazou <ebotcazou@adacore.com>
11361 * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
11363 2008-03-26 Andreas Schwab <schwab@suse.de>
11365 * doc/invoke.texi: Fix use of @item vs. @itemx.
11367 2008-03-26 Tom Tromey <tromey@redhat.com>
11369 * Makefile.in (build/gensupport.o, build/print-rtl.o,
11370 build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
11371 build/genattrtab.o, build/genautomata.o, build/gencheck.o,
11372 build/gencodes.o, build/genconditions.o, build/genconfig.o,
11373 build/genconstants.o, build/genemit.o, build/genextract.o,
11374 build/genflags.o, build/genmddeps.o, build/genopinit.o,
11375 build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
11378 2008-03-26 Richard Guenther <rguenther@suse.de>
11381 2008-03-26 Richard Guenther <rguenther@suse.de>
11383 * fold-const.c (target.h): Include.
11384 (fold_comparison): Fold comparison of addresses of two decls
11385 that bind locally. Consolidate address folding code.
11387 2008-03-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11389 * builtins.c (expand_builtin_pow, fold_builtin_cabs,
11390 fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
11391 fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
11392 dconstsqrt2, dconstthird, dconste and/or dconst10.
11393 * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
11394 * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
11395 dconstsqrt2, dconste): Delete.
11396 (init_emit_once): Likewise. Simplify initializing dconstm1.
11398 * real.c (get_real_const): New.
11399 * real.h (dconst3, dconst10, dconstm2, dconstthird,
11400 dconstsqrt2, dconste): Delete.
11401 (real_value_const, get_real_const): New.
11403 2008-03-26 H.J. Lu <hongjiu.lu@intel.com>
11405 * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
11407 * config/i386/i386.c (ix86_function_arg_boundary): Check
11408 BIGGEST_ALIGNMENT instead of 128.
11409 (setup_incoming_varargs_64): Likewise.
11411 2008-03-26 Tom Tromey <tromey@redhat.com>
11413 * Makefile.in (DEPFILES): Add missing '/'.
11415 2008-03-26 Richard Guenther <rguenther@suse.de>
11417 * fold-const.c (target.h): Include.
11418 (fold_comparison): Fold comparison of addresses of two decls
11419 that bind locally. Consolidate address folding code.
11421 2008-03-26 Nick Clifton <nickc@redhat.com>
11424 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
11425 not allow INT+INT as a legitimate addressing mode.
11427 2008-03-26 Richard Guenther <rguenther@suse.de>
11429 * tree-flow.h (widen_bitfield): Remove declaration.
11430 * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
11431 (widen_bitfield): Remove function.
11432 * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
11435 2008-03-25 Andrew Pinski <andrew_pinski@playstation.sony.com>
11438 * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
11441 2008-03-25 Richard Sandiford <rsandifo@nildram.co.uk>
11443 PR rtl-optimization/35232
11444 * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
11445 (forget_old_reloads_1, forget_marked_reloads): Don't clear
11446 reg_reloaded_call_part_clobbered here.
11447 (reload_regs_reach_end_p): New function.
11448 (reload_reg_rtx_for_input): New variable.
11449 (reload_reg_rtx_for_output): Likewise.
11450 (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
11451 when reassigning a pseudo register. Load reloadreg from
11452 reload_reg_rtx_for_input, moving the mode and register
11454 (do_input_reload): ...here. Use the mode-adjusted reg_rtx
11455 instead of the original when deciding whether an input reload
11456 would be a no-op or whether an output reload can be deleted.
11457 (emit_output_reload_insns): Use the mode-adjusted reg_rtx
11458 when setting up new_spill_reg_store. Load it from
11459 reload_reg_rtx_for_output, moving the mode and register
11461 (do_output_reload): ...here. Use the mode-adjusted reg_rtx
11462 instead of the original when deciding whether an output reload
11463 would be a no-op. Do the same when modifying insn notes.
11464 Use rtx_equal_p instead of == to compare the registers.
11465 (inherit_piecemeal_p): Take a mode and two register numbers
11467 (emit_reload_insns): Clear new_spill_reg_store for every hard
11468 register in the reload register. Remove spill registers
11469 from reg_reloaded_valid before considering whether to record
11470 inheritance information for them. Use reload_reg_rtx_for_output
11471 instead of reg_rtx when recording output reloads. Use
11472 reload_reg_rtx_for_input instead of reg_rtx when recording
11473 input reloads. Set or clear reg_reloaded_call_part_clobbered
11474 at the same time as setting reg_reloaded_valid.
11475 (delete_output_reload): Add a new_reload_reg parameter and use it
11476 instead of rld[j].reg_rtx.
11477 (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
11480 2008-03-25 Tom Tromey <tromey@redhat.com>
11482 * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
11483 (build/genattr.o): Likewise.
11484 (build/genattrtab.o): Likewise.
11485 (build/gencodes.o): Likewise.
11486 (build/genconfig.o): Likewise.
11487 (build/genconstants.o): Likewise.
11488 (build/genemit.o): Likewise.
11489 (build/genextract.o): Likewise.
11490 (build/genflags.o): Likewise.
11492 2008-03-25 Bob Wilson <bob.wilson@acm.org>
11494 * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
11495 instead of size_int for integer types.
11496 (xtensa_gimplify_va_arg_expr): Likewise. Convert index to sizetype
11497 to match type of MINUS_EXPR.
11499 2008-03-25 Tom Tromey <tromey@redhat.com>
11501 * configure: Rebuilt.
11502 * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
11505 2008-03-25 Tom Tromey <tromey@redhat.com>
11507 * config/x-solaris (host-solaris.o): Update.
11508 * config/x-linux (host-linux.o): Update.
11509 * config/x-hpux (host-hpux.o): Update.
11510 * config/x-darwin (host-darwin.o): Update.
11511 * config/v850/t-v850e (v850-c.o): Update.
11512 * config/v850/t-v850 (v850-c.o): Update.
11513 * config/t-vxworks (vxworks.o): Update.
11514 * config/t-sol2 (sol2-c.o, sol2.o): Update.
11515 * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
11516 * config/spu/t-spu-elf (spu-c.o): Update.
11518 * config/sh/t-symbian (sh-c.o): Update.
11519 (symbian.o): Update.
11520 * config/sh/t-sh (sh-c.o): Update.
11521 * config/score/t-score-elf (score7.o, score3.o): Update.
11522 * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
11523 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
11524 * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
11525 * config/rs6000/t-rs6000 (rs6000-c.o): Update.
11526 (rs6000.o): Remove.
11527 * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
11528 * config/m32c/t-m32c (m32c-pragma.o): Update.
11529 * config/ia64/t-ia64 (ia64-c.o): Update.
11530 * config/i386/x-mingw32 (host-mingw32.o): Update.
11531 * config/i386/x-i386 (driver-i386.o): Update.
11532 * config/i386/x-darwin (host-i386-darwin.o): Update.
11533 * config/i386/x-cygwin (host-cygwin.o): Update.
11534 * config/i386/t-nwld (nwld.o): Update.
11535 * config/i386/t-netware (netware.o): Update.
11536 * config/i386/t-interix (winnt.o): Update.
11537 * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
11538 * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
11539 msformat-c.o): Update.
11540 * config/bfin/t-bfin-linux (generated_files): Add
11541 linux-sysroot-suffix.h.
11542 * config/arm/t-wince-pe (pe.o): Update.
11543 * config/arm/t-strongarm-pe (pe.o): Update.
11544 * config/arm/t-pe (pe.o): Update.
11545 * config/arm/t-arm (arm-c.o): Update.
11546 * doc/install.texi (Prerequisites): Require make 3.80.
11547 * Makefile.in: Remove .o targets.
11548 (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
11549 (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
11550 (simple_generated_h, simple_generated_c): Move earlier.
11551 (generated_files): New variable.
11552 (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
11553 TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
11554 BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
11555 ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
11556 REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
11557 CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
11558 CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
11559 INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
11560 PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
11561 TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
11562 DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
11563 VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
11565 (COMPILE.base, COMPILE): New variables.
11566 (%.o): New pattern rule.
11567 (ALL_HOST_OBJS): New variable.
11568 (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
11569 (dummy-checksum.o, cc1-checksum.o): Remove.
11570 (DRIVER_SHLIB): New variable.
11571 (DRIVER_DEFINES): Use it.
11572 (gencondmd.c): Move out of build/.
11573 (s-conditions): Update.
11574 (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
11575 (ALL_BUILD_OBJS): Likewise.
11576 (build/%.o): Use BUILDCOMPILE.
11577 (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
11578 build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
11579 build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
11580 build/gencheck.o, build/gencodes.o, build/genconditions.o,
11581 build/genconfig.o, build/genconstants.o, build/genemit.o,
11582 build/genextract.o, build/genflags.o, build/genmddeps.o,
11583 build/genopinit.o, build/genoutput.o, build/genpeep.o,
11584 build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
11585 build/gen-protos.o, build/scan.o, build/fix-header.o,
11586 build/scan-decls.o): Simplify.
11587 (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
11588 cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
11589 prefix.o, toplev.o): Reduce to variable setting.
11590 (libbackend.o): Use COMPILE. Remove most dependencies. Move later.
11591 ($(out_object_file), gcc-options.o): New targets.
11592 ($(ALL_HOST_OBJS)): New target. Include dependency files.
11593 * configure: Rebuilt.
11594 * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
11595 * doc/sourcebuild.texi (Front End Directory): Document new variable.
11597 2008-03-25 Douglas Gregor <doug.gregor@gmail.com>
11599 * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
11600 complain when we hit an error, return ERROR_MARK_NODE.
11602 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
11604 * config/sh/constraints.md (Pso, Psz): New constraints.
11605 * config/sh/sh.c (print_operand): Add %V and %W operand codes.
11606 * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
11608 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
11610 * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
11611 * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
11613 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
11615 * config/sh/sh.md (prefetch): Add condition for SH2A target.
11616 (prefetch_sh2a): New.
11618 2008-03-25 Jayant Sonar <Jayant.sonar@kpitcummins.com>
11619 Naveen.H.S <naveen.hs@kpitcummins.com>
11621 * config/sh/constraints.md (I28): New constraint.
11622 * config/sh/sh.c (broken_move): Add support for movi20s.
11623 * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
11625 2008-03-25 Anil Paranjape <anil.paranjape@kpitcummins.com>
11626 Jayant Sonar <Jayant.sonar@kpitcummins.com>
11627 Naveen.H.S <naveen.hs@kpitcummins.com>
11629 * config/sh/sh.c (SH_ATTRIBUTES): Define.
11630 (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
11631 (print_operand): Handle resbank in %@ operand code.
11632 (sh_encode_section_info): New.
11633 (push_regs): Add conditions for resbank.
11634 (sh_expand_epilogue): Likewise.
11635 (sh_insert_attributes): Likewise.
11636 (sh_attribute_table): Likewise.
11637 (sh_handle_resbank_handler_attribute): New.
11638 (sh2a_handle_function_vector_handler_attribute): New.
11639 (sh2a_is_function_vector_call): New.
11640 (sh2a_get_function_vector_number): New.
11641 (sh2a_function_vector_p): New.
11642 (sh_cfun_resbank_handler_p): New.
11643 * config/sh/sh.md (calli): Emit jsr/n if possible.
11644 (calli_tbr_rel): New.
11645 (calli_pcrel): Emit jsr/n if possible.
11646 (return_i): Emit rts/n if possible.
11647 (call_valuei_tbr_rel): New.
11648 (call_valuei_pcrel): Add condition for SH2A target.
11649 (call_value): Likewise.
11650 * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
11651 (sh2a_get_function_vector_number): Likewise.
11652 (sh2a_is_function_vector_call): Likewise.
11653 * doc/extend.texi: Document TBR relative addressing of SH2A.
11654 (resbank): Add description for SH2A.
11656 2008-03-24 Richard Guenther <rguenther@suse.de>
11659 * gimplify.c (gimplify_modify_expr): For frontend type-correct
11660 pointer assignments change conversions according to middle-end rules.
11661 (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
11662 * configure.ac: Include type checking in yes.
11663 * configure: Regenerate.
11665 2008-03-24 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
11667 * diagnostic.c (diagnostic_count_diagnostic): Delete.
11668 (diagnostic_report_diagnostic): Update. Handle ICEs here.
11670 2008-03-24 Nathan Sidwell <nathan@codesourcery.com>
11672 * gthr-vxworks.h (UNUSED): Define.
11674 2008-03-23 H.J. Lu <hongjiu.lu@intel.com>
11676 * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
11678 2008-03-23 Zuxy Meng <zuxy.meng@gmail.com>
11680 * doc/extend.texi (Function Attributes): Add missing comma in the
11681 example of the "alloc_size" attribute.
11683 2008-03-23 Uros Bizjak <ubizjak@gmail.com>
11686 2008-03-05 H.J. Lu <hongjiu.lu@intel.com>
11688 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
11691 2008-03-19 Uros Bizjak <ubizjak@gmail.com>
11694 * stor-layout.c (update_alignment_for_field): Set minimum alignment
11695 of the underlying type of a MS bitfield layout to the natural
11696 alignment of the type.
11698 2008-03-22 Uros Bizjak <ubizjak@gmail.com>
11700 * config/i386/i386.c (assign_386_stack_local): Align DImode slots
11701 to their natural alignment to avoid store forwarding stalls.
11703 2008-03-22 Richard Guenther <rguenther@suse.de>
11705 * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
11706 For PHI nodes verify the address is invariant.
11707 * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
11708 (get_symbol_constant_value): Use is_gimple_min_invariant.
11709 (maybe_fold_stmt_indirect): Likewise.
11711 2008-03-22 Richard Sandiford <rsandifo@nildram.co.uk>
11713 PR rtl-optimization/33927
11714 * Makefile.in (dse.o): Depend on $(TM_P_H).
11715 * expr.h (extract_low_bits): Declare.
11716 * expmed.c (extract_low_bits): New function.
11717 * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
11718 * dse.c: Include tm_p.h.
11719 (find_shift_sequence): Remove the read_reg argument and return the
11720 read value. Emit the instructions instead of returning them.
11721 Iterate on new_mode rather than calculating it each time.
11722 Check MODES_TIEABLE_P. Use simplify_gen_subreg to convert the
11723 source to NEW_MODE and extract_low_bits to convert the shifted
11724 value to READ_MODE.
11725 (replace_read): Allow the load and store to have different mode
11726 classes. Use extract_low_bits when SHIFT == 0. Create the shift
11727 or extraction instructions before trying the replacement. Update
11728 dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
11730 2008-03-22 Uros Bizjak <ubizjak@gmail.com>
11732 * config/i386/i386.c (assign_386_stack_local): Align DImode slots
11733 to their natural alignment to avoid store forwarding stalls.
11735 2008-03-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
11738 * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
11739 encouraging but not allowing gprs for input;
11740 change the input constraint to !f#r.
11741 (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
11743 change the output constraint to !f#r.
11745 2008-03-21 Uros Bizjak <ubizjak@gmail.com>
11748 * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
11749 corresponding post-reload splitters.
11750 ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
11751 when x87 FP math is selected.
11752 * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
11753 New function prototype.
11754 * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
11755 unreachable function to ease macroization of insn patterns.
11757 2008-03-21 Martin Jambor <mjambor@suse.cz>
11759 * tree-data-ref.c (dump_data_dependence_relation): Avoid data
11760 reference dumps if ddr is NULL or dependence is unknown.
11762 2008-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
11764 * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
11765 unsigned extension into account.
11766 (ATOMIC_COMPARE_AND_SWAP): Likewise.
11767 (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
11768 Do computations on a scratch register.
11770 2008-03-21 Richard Guenther <rguenther@suse.de>
11772 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
11773 Use is_gimple_min_invariant instead of TREE_INVARIANT.
11774 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
11775 * tree-ssa-dom.c (record_equality): Likewise.
11776 * tree-inline.c (copy_body_r): Likewise.
11777 * tree-ssa-pre.c (make_values_for_stmt): Remove test for
11780 2008-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
11782 * config/sh/sh.c (split_branches): Pass zero to redirect_jump
11783 as 'delete_unused' argument.
11785 2008-03-20 Richard Guenther <rguenther@suse.de>
11787 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
11788 special casing of constant qualifiers.
11789 * tree-ssa.c (useless_type_conversion_p_1): Instead do not
11790 care about them in general.
11791 * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
11792 regardless of their type.
11793 (fold_stmt_r): Forcefully fold *& if we end up with that.
11795 2008-03-20 Paul Brook <paul@codesourcery.com>
11797 * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
11798 * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
11800 * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
11802 (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
11803 * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
11805 2008-03-20 Volker Reichelt <v.reichelt@netcologne.de>
11807 * common.opt (Wmudflap): New option.
11808 * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
11809 (mx_register_decls): Likewise.
11810 (mudflap_finish_file): Likewise.
11811 * doc/invoke.texi: Document -Wno-mudflap.
11813 2008-03-20 Kai Tietz <kai.tietz@onevision.com>
11815 * c-format.c (replace_format_name_to_system_name): New.
11816 (cmp_attribs): New.
11817 (convert_format_name_to_system_name): New.
11818 (decode_format_attr): Add use of convert_format_name_to_system_name.
11819 (format_types_orig): Add gnu_ prefix to names.
11820 (check_format_info_main): Special treating of \0 escaped names for
11821 supporting multi-character format specifiers as I32, I64.
11822 (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
11823 (gnu_target_overrides_format_attributes): New.
11824 * c-format.h: Add structure target_ovr_attr to hold
11825 system specific formatter names.
11826 * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
11827 msformat-c.o file to c_target_objs and cxx_target_objs.
11828 * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
11829 (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
11830 (TARGET_N_FORMAT_TYPES): New.
11831 * config/i386/msformat-c.c: New.
11832 * config/i386/t-cygming: Add build rule for msformat-c.o.
11833 * doc/extend.texi: Add new format names gnu_* and ms_* and
11835 * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
11837 2008-03-20 Ira Rosen <irar@il.ibm.com>
11839 * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
11840 optimizations turned on under -O3.
11841 (ftree-vectorize): Add that the flag is turned on with -O3.
11843 2008-03-20 Ben Elliston <bje@au.ibm.com>
11845 * regmove.c (try_auto_increment): Fix spelling error in comment.
11846 * final.c (final_scan_insn): Likewise.
11848 2008-03-20 Uros Bizjak <ubizjak@gmail.com>
11851 * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
11852 allocator preferences for "y" and "r" class registers.
11853 ("*mov<mode>_internal"): Ditto.
11854 ("*movv2sf_internal_rex64"): Ditto.
11855 ("*movv2sf_internal"): Ditto.
11857 2008-03-19 Michael Matz <matz@suse.de>
11859 PR middle-end/35616
11860 * calls.c (expand_call): Check overlap of arguments with call
11861 address for sibcalls.
11863 2008-03-19 Uros Bizjak <ubizjak@gmail.com>
11866 * stor-layout.c (update_alignment_for_field): Set minimum alignment
11867 of the underlying type of a MS bitfield layout to the natural
11868 alignment of the type.
11870 2008-03-19 Jan Hubicka <jh@suse.cz>
11873 * toplev.c (decode_d_option): Handle all CPP flags.
11874 * tree-vrp.c: Update tree_pass descriptors.
11875 * regrename.c: Update tree_pass descriptors.
11876 * fwprop.c: Update tree_pass descriptors.
11877 * doc/invoke.texi: Remove documentation of dropped -d? flags.
11878 * tree-into-ssa.c: Update tree_pass descriptors.
11879 * tree-dump.c: Update tree_pass descriptors.
11880 * tree-complex.c: Update tree_pass descriptors.
11881 * tree-dump.h: Update tree_pass descriptors.
11882 * see.c: Update tree_pass descriptors.
11883 * cgraphbuild.c: Update tree_pass descriptors.
11884 * tracer.c: Update tree_pass descriptors.
11885 * tree-loop-distribution.c: Update tree_pass descriptors.
11886 * cgraph.c: Update tree_pass descriptors.
11887 * postreload-gcse.c: Update tree_pass descriptors.
11888 * postreload.c: Update tree_pass descriptors.
11889 * tree-ssa-loop-ch.c: Update tree_pass descriptors.
11890 * tree-tailcall.c: Update tree_pass descriptors.
11891 * tree-pass.h (tree_opt_pass): Rename to ...
11892 (opt_pass) ... this one; add "type" field and remove letter field.
11893 (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
11894 (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
11895 all_lowering_passes): Update declaration.
11896 * ipa-cp.c: Update tree_pass descriptors.
11897 * final.c: Update tree_pass descriptors.
11898 * omp-low.c: Update tree_pass descriptors.
11899 * tree-ssa-dse.c: Update tree_pass descriptors.
11900 * ipa-reference.c: Update tree_pass descriptors.
11901 * tree-ssa-uncprop.c: Update tree_pass descriptors.
11902 * auto-inc-dec.c: Update tree_pass descriptors.
11903 * reorg.c: Update tree_pass descriptors.
11904 * cgraphunit.c: Update tree_pass descriptors.
11905 * tree-ssa-copyrename.c: Update tree_pass descriptors.
11906 * tree-ssa-ccp.c: Update tree_pass descriptors.
11907 * df-core.c: Update tree_pass descriptors.
11908 * mode-switching.c: Update tree_pass descriptors.
11909 * tree-nomudflap.c: Update tree_pass descriptors.
11910 * modulo-sched.c: Update tree_pass descriptors.
11911 * ipa-pure-const.c: Update tree_pass descriptors.
11912 * cse.c: Update tree_pass descriptors.
11913 * web.c: Update tree_pass descriptors.
11914 * tree-stdarg.c: Update tree_pass descriptors.
11915 * tree-ssa-math-opts.c: Update tree_pass descriptors.
11916 * tree-ssa-dom.c: Update tree_pass descriptors.
11917 * tree-nrv.c: Update tree_pass descriptors.
11918 * tree-ssa-alias.c: Update tree_pass descriptors.
11919 * loop-init.c: Update tree_pass descriptors.
11920 * gimple-low.c: Update tree_pass descriptors.
11921 * ipa-inline.c: Update tree_pass descriptors.
11922 * tree-ssa-sink.c: Update tree_pass descriptors.
11923 * global.c: Update tree_pass descriptors.
11924 * ifcvt.c: Update tree_pass descriptors.
11925 * jump.c: Update tree_pass descriptors.
11926 * predict.c: Update tree_pass descriptors.
11927 * tree-ssa-loop.c: Update tree_pass descriptors.
11928 * recog.c: Update tree_pass descriptors.
11929 * dse.c: Update tree_pass descriptors.
11930 * tree-ssa-ifcombine.c: Update tree_pass descriptors.
11931 * tree-eh.c: Update tree_pass descriptors.
11932 * regmove.c: Update tree_pass descriptors.
11934 * function.c: Update tree_pass descriptors.
11935 * tree-vectorizer.c: Update tree_pass descriptors.
11936 * gcse.c: Update tree_pass descriptors.
11937 * ipa-type-escape.c: Update tree_pass descriptors.
11938 * tree-if-conv.c: Update tree_pass descriptors.
11939 * init-regs.c: Update tree_pass descriptors.
11940 * ipa.c: Update tree_pass descriptors.
11941 * tree-ssa-phiopt.c: Update tree_pass descriptors.
11942 * rtl-factoring.c: Update tree_pass descriptors.
11943 * lower-subreg.c: Update tree_pass descriptors.
11944 * bt-load.c: Update tree_pass descriptors.
11945 * tree-dfa.c: Update tree_pass descriptors.
11946 * except.c: Update tree_pass descriptors.
11947 * emit-rtl.c: Update tree_pass descriptors.
11948 * cfgexpand.c: Update tree_pass descriptors.
11949 * tree-cfgcleanup.c: Update tree_pass descriptors.
11950 * cfgcleanup.c: Update tree_pass descriptors.
11951 * tree-ssa-pre.c: Update tree_pass descriptors.
11952 * tree-sra.c: Update tree_pass descriptors.
11953 * tree-mudflap.c: Update tree_pass descriptors.
11954 * tree-ssa-copy.c: Update tree_pass descriptors.
11955 * cfglayout.c: Update tree_pass descriptors.
11956 * tree-ssa-forwprop.c: Update tree_pass descriptors.
11957 * tree-ssa-dce.c: Update tree_pass descriptors.
11958 * tree-ssa.c: Update tree_pass descriptors.
11959 * regclass.c: Update tree_pass descriptors.
11960 * integrate.c: Update tree_pass descriptors.
11961 * tree-optimize.c: Update tree_pass descriptors.
11962 * tree-ssa-phiprop.c: Update tree_pass descriptors.
11963 * tree-object-size.c: Update tree_pass descriptors.
11964 * combine.c: Update tree_pass descriptors.
11965 * tree-outof-ssa.c: Update tree_pass descriptors.
11966 * bb-reorder.c: Update tree_pass descriptors.
11967 * stack-ptr-mod.c: Update tree_pass descriptors.
11968 * var-tracking.c: Update tree_pass descriptors.
11969 * tree-profile.c: Update tree_pass descriptors.
11970 * tree-vect-generic.c: Update tree_pass descriptors.
11971 * reg-stack.c: Update tree_pass descriptors.
11972 * sched-rgn.c: Update tree_pass descriptors.
11973 * tree-ssa-structalias.c: Update tree_pass descriptors.
11974 * tree-cfg.c: Update tree_pass descriptors.
11975 * passes.c (current_pass): Update declaration.
11976 (finish_optimization_passes): Update.
11977 (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
11978 (register_one_dump_file, register_dump_files_1, next_pass_1):
11980 (init_optimization_passes): Update handling of new types.
11981 (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
11982 * ipa-struct-reorg.c: Update tree_pass descriptors.
11983 * tree-ssa-reassoc.c: Update tree_pass descriptors.
11984 * combine-stack-adj.c: Update tree_pass descriptors.
11985 * cfgrtl.c: Update tree_pass descriptors.
11986 * dce.c: Update tree_pass descriptors.
11987 * tree-ssanames.c: Update tree_pass descriptors.
11989 2008-03-19 Richard Guenther <rguenther@suse.de>
11991 PR middle-end/35609
11992 * tree-ssa.c (walk_data): New structure.
11993 (warn_uninitialized_var): If not always_executed warn with "maybe"
11995 (execute_early_warn_uninitialized): Compute post-dominators.
11996 Initialize always_executed before processing each basic block.
11998 2008-03-18 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
12001 * config/i386/i386.c (x86_this_parameter): Calculate correct location
12002 of "this" pointer when "regparm = N" or "fastcall" is in effect.
12004 2008-03-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12006 * doc/include/texinfo.tex: Update to version 2008-03-17.10.
12008 2008-03-18 Paolo Bonzini <bonzini@gnu.org>
12010 * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
12012 (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
12013 (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
12014 is true. Add "&& !ignore" condition to reduce_bit_field. Modify
12015 target after ignore has been set, and move there also the commputation
12016 of subtarget and original_target.
12017 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
12018 (LANG_HOOKS_INITIALIZER): Remove it.
12019 * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
12021 2008-03-18 Richard Guenther <rguenther@suse.de>
12023 * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
12024 found an expression with constants, note that in the VN for the lhs.
12025 * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
12026 fold them to constants if possible. Run cleanup_cfg if done so.
12027 (execute_pre): Return todo.
12028 (do_pre): Likewise.
12029 (execute_fre): Likewise.
12030 * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
12032 (get_prop_source_stmt): Look through pointer conversions.
12034 2008-03-18 Jan Hubicka <jh@suse.cz>
12036 * tree-pretty-print.c: Include predict.h.
12037 (dump_generic_node): Dump predictor.
12038 * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
12039 * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
12040 * gimple-low.c (lower_stmt): Likewise.
12041 * expr.c (expand_expr_real): Likewise.
12042 * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
12044 (build_predict_expr, build_predict_expr): New.
12045 * predict.h (predictor_name, build_predict_expr): Update.
12046 * c-typeck.c (c_finish_bc_stmt): Add prediction.
12047 * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
12048 * predict.def (PRED_CONTINUE): Update hitrate.
12049 * tree.def (PREDICT_EXPR): Define.
12050 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
12051 do not handle BIND_EXPR.
12052 * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
12053 * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
12054 * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
12057 2008-03-18 Michael Matz <matz@suse.de>
12059 * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
12061 2008-03-18 Richard Guenther <rguenther@suse.de>
12063 * tree-gimple.h (is_gimple_invariant_address): Declare.
12064 (is_gimple_constant): Likewise.
12065 * tree-gimple.c (is_gimple_constant): New function.
12066 (is_gimple_invariant_address): Likewise.
12067 (is_gimple_min_invariant): Implement in terms of is_gimple_constant
12068 and is_gimple_invariant_address.
12069 * tree-ssa-loop-niter.c (expand_simple_operations): Revert
12071 * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
12072 an addressable base.
12074 2008-03-18 Jakub Jelinek <jakub@redhat.com>
12076 PR middle-end/35611
12077 * gimplify.c (gimplify_expr): Gimplify second operand of
12080 2008-03-17 Richard Guenther <rguenther@suse.de>
12082 PR tree-optimization/19637
12083 * fold-const.c (fold_unary): Remove restrictions of removing
12084 intermediate pointer-conversions (P2)(P1)P0.
12085 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
12086 conversion to void pointer.
12087 (get_maxval_strlen): Handle addresses of the form &(*p)[0].
12089 2008-03-16 James E. Wilson <wilson@tuliptree.org>
12092 * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
12093 emulated thread local variables.
12095 2008-03-16 Richard Guenther <rguenther@suse.de>
12097 PR middle-end/35607
12098 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
12099 expand TREE_INVARIANT operations that are not gimple invariant.
12101 2008-03-16 Hans-Peter Nilsson <hp@axis.com>
12103 * doc/extend.texi (Alignment): Say that the ABI controls
12104 the __alignof__ for non-strict-alignment targets rather
12105 than being a recommendation.
12107 2008-03-15 Paul Brook <paul@codesourcery.com>
12109 * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
12111 (arm_output_fn_unwind): Mark functions that can not be unwound.
12113 2008-03-15 Paul Brook <paul@codesourcery.com>
12115 * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
12116 extension instructions.
12118 2008-03-15 Richard Guenther <rguenther@suse.de>
12120 * tree-ssa-ccp.c (ccp_fold): Also read from constant values
12121 and fold constant aggregate refs.
12122 (fold_const_aggregate_ref): Handle string constants
12123 and constructors in ARRAY_REFs. Handle INDIRECT_REF.
12124 (evaluate_stmt): Simplify now that ccp_fold folds constant
12127 2008-03-15 Paul Brook <paul@codesourcery.com>
12129 * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
12130 (extzv): Use gen_extzv_t2.
12131 (insv_t2, insv_zero, extv, extzv_t2): New patterns.
12133 2008-03-15 Richard Guenther <rguenther@suse.de>
12135 * tree-ssa-ccp.c (get_symbol_constant_value): Export.
12136 (fold_const_aggregate_ref): Likewise.
12137 (get_value): Return NULL if we don't have any values.
12138 (ccp_finalize): Set const_val to NULL after freeing it.
12139 * tree-flow.h (get_symbol_constant_value): Declare.
12140 (fold_const_aggregate_ref): Likewise.
12141 * tree-ssa-sccvn.c (try_to_simplify): Use them.
12143 2008-03-15 Richard Guenther <rguenther@suse.de>
12145 PR middle-end/35593
12146 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
12147 to not produce negative array indices if not allowed. Add
12148 parameter to indicate that.
12149 (maybe_fold_offset_to_component_ref): Allow negative array
12150 indices only for the first member of a structure.
12151 (maybe_fold_offset_to_reference): Allow negative array indices.
12152 (maybe_fold_stmt_addition): Likewise.
12154 2008-03-15 Bjoern Haase <bjoern.m.haase@web.de>
12155 Anatoly Sokolov <aesok@post.ru>
12157 * config/avr/avr.c (avr_arch_types): Add avr6 entry.
12158 (avr_arch): Add ARCH_AVR6.
12159 (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
12160 (initial_elimination_offset): Initialize and use 'avr_pc_size'
12161 instead of fixed value 2.
12162 (print_operand_address): Use gs() asm specifier instead of pm().
12163 (avr_assemble_integer): (Ditto.).
12164 (avr_output_addr_vec_elt): (Ditto.).
12165 (print_operand): Handle "!" code.
12166 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add
12167 __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
12168 (AVR_HAVE_EIJMP_EICALL): Define.
12169 (AVR_3_BYTE_PC): Redefine.
12170 (AVR_2_BYTE_PC): (Ditto.).
12171 (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
12172 (LINK_SPEC): Add atmega2560 and atmega2561.
12173 (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561
12175 * config/avr/avr.md (call_insn): Use eicall instead of icall
12176 for 3 byte PC devices.
12177 (call_value_insn): (Ditto.).
12178 (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
12179 (indirect_jump): Use only for for 2 byte PC devices.
12180 (*tablejump): (Ditto.).
12181 (*indirect_jump_avr6): Add insn.
12182 (*tablejump_rjmp): Don't use for 3 byte PC devices.
12183 * config/avr/libgcc.S (__prologue_saves__): Use eijmp
12184 instead of ijmp for 3 byte PC devices.
12185 (__tablejump2__): (Ditto.).
12186 * config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
12187 (MULITLIB_DIRNAMES): (Ditto.).
12188 (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
12190 2008-03-15 Uros Bizjak <ubizjak@gmail.com>
12192 * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
12193 "sse2_umulsidi3". Use V1DI mode for operand 0.
12194 ("mmx_psadbw"): Use V1DI mode for operand 0.
12195 * config/i386/i386-modes.def (V1SI): New vector mode.
12196 * config/i386/i386.c (struct builtin_description)
12197 [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
12198 (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
12199 (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
12200 (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
12201 v1di_ftype_v8qi_v8qi type.
12202 [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
12204 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
12205 __builtin_ia32_pmuludq]: Fix the mode of return value.
12207 2008-03-15 Richard Guenther <rguenther@suse.de>
12209 PR middle-end/35595
12210 * tree-ssa-pre.c (bitmap_find_leader): Handle expression
12213 2008-03-14 Bob Wilson <bob.wilson@acm.org>
12215 * doc/invoke.texi (Option Summary, Xtensa Options): Document
12216 -mserialize-volatile and -mno-serialize-volatile Xtensa options.
12217 * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
12218 unless TARGET_SERIALIZE_VOLATILE is enabled.
12219 * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
12220 * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
12221 * config/xtensa/xtensa.opt (mserialize_volatile): New option.
12223 2008-03-14 Richard Guenther <rguenther@suse.de>
12225 PR tree-optimization/34172
12226 * tree-flow.h (refs_may_alias_p): Declare.
12227 (get_single_def_stmt): Likewise.
12228 (get_single_def_stmt_from_phi): Likewise.
12229 (get_single_def_stmt_with_phi): Likewise.
12230 * tree-dfa.c (refs_may_alias_p): New function.
12231 (get_single_def_stmt): Likewise.
12232 (get_single_def_stmt_from_phi): Likewise.
12233 (get_single_def_stmt_with_phi): Likewise.
12234 * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
12235 (vn_reference_lookup_1): New helper function.
12236 (vn_reference_lookup): Walk the virtual use-def chain to
12237 continue searching for a match if the def does not alias the
12238 reference we are looking for.
12240 2008-03-14 David Edelsohn <edelsohn@gnu.org>
12242 * doc/install.texi (Binaries): Remove UCLA archive. Add HVCC
12243 archive and Perzl. Update The Written Word listing.
12245 2008-03-14 Richard Guenther <rguenther@suse.de>
12247 PR tree-optimization/34043
12248 PR tree-optimization/33989
12249 * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
12251 (bitmap_find_leader): Use extra argument to verify dominance
12252 relationship inside a basic-block.
12253 (can_PRE_operation): Add VIEW_CONVERT_EXPR.
12254 (find_leader_in_sets): Adjust.
12255 (create_component_ref_by_pieces): Take extra argument for
12256 dominance check, handle lookup failures.
12257 (find_or_generate_expression): Likewise.
12258 (create_expression_by_pieces): Likewise.
12259 (insert_into_preds_of_block): Adjust.
12260 (create_value_expr_from): If asked for, verify all operands
12261 are in the blocks AVAIL_OUT set.
12262 (make_values_for_stmt): Check for SSA_NAMEs that are life
12263 over an abnormal edge.
12264 (compute_avail): Remove such check.
12265 (do_SCCVN_insertion): New function.
12266 (eliminate): If we do not find a leader suitable for replacement
12267 insert a replacement expression from SCCVN if available.
12268 * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
12269 (struct vn_ssa_aux): Add needs_insertion flag.
12270 * tree-ssa-sccvn.c (may_insert): New global flag.
12271 (copy_reference_ops_from_ref): Value-number union member access
12272 based on its size, not type and member if insertion is allowed.
12273 (visit_reference_op_load): For a weak match from union type
12274 punning lookup a view-converted value and insert a SSA_NAME
12275 for that value if that is not found.
12276 (visit_use): Make dumps shorter. Do not disallow value numbering
12277 SSA_NAMEs that are life over an abnormal edge to constants.
12278 (free_scc_vn): Release inserted SSA_NAMEs.
12279 (run_scc_vn): New flag to specify whether insertion is allowed.
12280 Process SSA_NAMEs in forward order.
12281 * tree-ssa-loop-im.c (for_each_index): Handle invariant
12282 ADDR_EXPRs inside VIEW_CONVERT_EXPR.
12283 * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
12284 pointer type to/from integral types that do not change the
12285 precision to regular conversions.
12287 2008-03-13 Uros Bizjak <ubizjak@gmail.com>
12289 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
12290 __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
12291 __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
12292 __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
12293 input arguments and the mode of return value. Built-in functions
12294 that operate on whole 64-bit MMX register now use V1DI mode.
12296 2008-03-13 Alon Dayan <alond@il.ibm.com>
12297 Olga Golovanevsky <olga@il.ibm.com>
12299 PR tree-optimization/35041
12300 * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
12301 to locate the right position in a statement.
12303 2008-03-13 Uros Bizjak <ubizjak@gmail.com>
12307 * config/i386/xmmintrin.h: Change all static inline functions to
12308 extern inline and add __gnu_inline__ attribute.
12309 * config/i386/bmintrin.h: Ditto.
12310 * config/i386/smmintrin.h: Ditto.
12311 * config/i386/tmmintrin.h: Ditto.
12312 * config/i386/mmintrin-common.h: Ditto.
12313 * config/i386/ammintrin.h: Ditto.
12314 * config/i386/emmintrin.h: Ditto.
12315 * config/i386/pmmintrin.h: Ditto.
12316 * config/i386/mmintrin.h: Ditto.
12317 * config/i386/mm3dnow.h: Ditto.
12319 2008-03-13 Jakub Jelinek <jakub@redhat.com>
12321 PR middle-end/35185
12322 * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
12323 (lower_omp_2): New function.
12324 (lower_omp_1, lower_omp): Rewritten.
12326 2008-03-13 Danny Smith <dannysmith@users.sourceforge.net>
12329 * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
12330 with the phrase "Microsoft Windows compilers".
12331 (Push/Pop Macro Pragmas): New subsection. Document
12332 #pragma push_macro and pragma pop_macro.
12334 2008-03-12 Paul Brook <paul@codesourcery.com>
12336 * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
12338 2008-03-12 Paul Brook <paul@codesourcery.com>
12340 * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
12341 (thumb2_alusi3_short): Exclude PLUS and MINUS.
12342 (thumb2_addsi_shortim): Rename ...
12343 (thumb2_addsi_short): ... to this. Allow register operands.
12344 (thumb2_subsi_short): New pattern.
12345 (thumb2_one_cmplsi2_short,
12346 thumb2_negsi2_short): New patterns and peepholes.
12348 2008-03-12 Paul Brook <paul@codesourcery.com>
12350 * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
12352 2008-03-12 Uros Bizjak <ubizjak@gmail.com>
12354 * config/i386/i386.md (int_cond): New code iterator.
12356 ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
12357 sge, sgeu, sle and sleu expanders usign int_cond code iterator.
12358 ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
12359 sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
12360 ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
12361 bge, bgeu, ble and bleu expanders usign int_cond code iterator.
12362 ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
12363 bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
12365 2008-03-12 Paul Brook <paul@codesourcery.com>
12367 * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
12368 instead of {arm,thumb}_compute_save_reg_mask.
12369 (output_return_instruction): Ditto.
12370 (thumb_unexpanded_epilogue): Ditto.
12371 (thumb1_expand_prologue): Ditto.
12372 (thumb1_output_function_prologue): Ditto.
12373 (arm_set_return_address): Ditto.
12374 (thumb_set_return_address): Ditto.
12375 (arm_get_frame_offsets): Set offsets->saved_regs_mask. Push extra
12376 regs to achieve stack alignment.
12377 (thumb1_compute_save_reg_mask): Fix compiler warning.
12378 (arm_output_epilogue): Use offsets->saved_regs_mask.
12379 Adjust stack pointer by poping call clobered registers.
12380 (arm_expand_prologue): Use offsets->saved_regs_mask.
12381 Adjust stack pointer by pushing extra registers.
12382 * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
12384 2008-03-12 Paolo Bonzini <bonzini@gnu.org>
12387 * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
12388 conversion to the operands of a multiplication.
12390 2008-03-12 Richard Guenther <rguenther@suse.de>
12392 * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
12393 (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
12394 * timevar.def (TV_TREE_PHIPROP): Add.
12395 * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
12396 pass description. Use TV_TREE_PHIPROP.
12397 * tree-ssa-forwprop.c: Remove phiprop code.
12399 2008-03-12 Jakub Jelinek <jakub@redhat.com>
12401 PR middle-end/35549
12402 * omp-low.c (maybe_lookup_decl): Constify first argument.
12403 (use_pointer_for_field): Change last argument from bool to
12404 omp_context *. Disallow shared copy-in/out in nested
12405 parallel if decl is shared in outer parallel too.
12406 (build_outer_var_ref, scan_sharing_clauses,
12407 lower_rec_input_clauses, lower_copyprivate_clauses,
12408 lower_send_clauses, lower_send_shared_vars): Adjust callers.
12410 2008-03-12 Victor Kaplansky <victork@il.ibm.com>
12411 Ira Rosen <irar@il.ibm.com>
12413 * tree-vectorizer.c (free_stmt_vec_info): New function.
12414 (destroy_loop_vec_info): Move code to free_stmt_vec_info().
12415 Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
12416 * tree-vectorizer.h (free_stmt_vec_info): Declare.
12417 * tree-vect-transform.c (vectorizable_conversion): Free
12418 vec_oprnds0 if it was allocated.
12419 (vect_permute_store_chain): Remove unused VECs.
12420 (vectorizable_store): Free VECs that are allocated in the..
12422 (vect_transform_strided_load, vectorizable_load): Likewise.
12423 (vect_remove_stores): Simplify the code.
12424 (vect_transform_loop): Move code to vect_remove_stores().
12425 Call vect_remove_stores() and free_stmt_vec_info().
12427 2008-03-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12429 * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
12430 TARGET_HPUX. Revise comment.
12431 (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
12432 * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
12433 Use sr4 variant of `be' instruction when not generating PIC code.
12434 (attr_length_call): Adjust for above change.
12436 2008-03-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
12438 * ipa-reference.c (static_execute): Remove module_statics_const and
12439 associated setting code.
12441 2008-03-11 Uros Bizjak <ubizjak@gmail.com>
12444 * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
12445 predicate for operand 1.
12446 (paritysi2_cmp): Use register_operand predicate for operand 2.
12447 Use earlyclobber modifier for operand 1. Remove support for
12449 (paritydi2_cmp): Use register_operand predicate for operand 3.
12450 Use earlyclobber modifier for operand 1. Remove support for
12453 2008-03-11 Paul Brook <paul@codesourcery.com>
12454 Vladimir Prus <vladimir@codesourcery.com>
12456 * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
12457 (arm_compute_save_reg0_reg12_mask): Always
12458 check if register 11 must be saved. Always safe hard frame pointer
12459 when frame_pointer_needeed.
12460 (arm_compute_save_reg_mask): Save IP and PC
12461 only with apcs frames.
12462 (arm_output_epilogue): Adjust Thumb2 codepath to
12463 be also invoked and work for ARM non-apcs frames.
12464 (arm_expand_prologue): Don't bother saving IP
12465 for non-apcs frame, since it's not clobbered by
12466 prologue code. Implement non-apcs frame
12469 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
12471 PR rtl-optimization/35281
12472 * expr.c (convert_move): Use a new pseudo for the intermediate
12473 from_mode->word_mode result.
12475 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
12477 * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
12478 * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
12479 * toplev.c (compile_file): Don't call it.
12481 2008-03-11 Uros Bizjak <ubizjak@gmail.com>
12483 PR middle-end/35526
12484 * expr.c (store_expr): Call emit_block_move if the mode
12485 of "temp" RTX is BLKmode.
12487 2008-03-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
12488 Richard Guenther <rguenther@suse.de>
12490 PR tree-optimization/31358
12491 * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
12492 the step with a NULL_TREE.
12493 * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
12494 to sizetype if type is a pointer type.
12495 (add_candidate_1): Don't convert the base and step to
12496 the generic type if the orginal type is a pointer type.
12497 (add_iv_value_candidates): Use sizetype for the step
12498 if type is a pointer type.
12499 (cand_value_at): Likewise.
12500 * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
12502 * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
12503 Don't convert the tem affine to the type.
12504 (add_elt_to_tree): Use sizetype for the step if a pointer.
12505 Use POINTER_PLUS_EXPR for pointers.
12506 (aff_combination_to_tree): Use sizetype for the step if a
12509 2008-03-10 Vladimir Makarov <vmakarov@redhat.com>
12511 * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
12512 Remove commutativity hint.
12514 2008-03-10 Jakub Jelinek <jakub@redhat.com>
12518 * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
12519 errorneous type. Check that v is a VAR_DECL.
12521 PR middle-end/35099
12522 * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
12524 2008-03-10 H.J. Lu <hongjiu.lu@intel.com>
12526 PR tree-optimization/35494
12527 * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
12528 may be overriden at link and run time.
12530 2008-03-10 Richard Guenther <rguenther@suse.de>
12532 PR tree-optimization/34677
12533 * tree-ssa-pre.c (modify_expr_node_pool): Remove.
12534 (poolify_tree): Likewise.
12535 (modify_expr_template): Likewise.
12536 (poolify_modify_stmt): Likewise.
12537 (insert_fake_stores): Handle all component-ref style stores
12538 in addition to INDIRECT_REF. Also handle complex types.
12539 Do not poolify the inserted load.
12540 (realify_fake_stores): Do not rebuild the tree but only
12541 make it a SSA_NAME copy.
12542 (init_pre): Remove initialzation of modify_expr_template.
12543 Do not allocate modify_expr_node_pool.
12544 (fini_pre): Do not free modify_expr_node_pool.
12546 2008-03-10 Paul Brook <paul@codesourcery.com>
12548 * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
12549 to avoid conflicts.
12551 2008-03-10 Paul Brook <paul@codesourcery.com>
12552 Mark Shinwell <shinwell@codesourcery.com>
12554 * config/arm/cortex-r4.md: New.
12555 * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
12557 * config/arm/arm.md: Include cortex-r4.md.
12558 (insn): Add smmls, sdiv and udiv values.
12559 (generic_sched): Don't use generic scheduling for Cortex-R4.
12560 (arm_issue_rate): New function.
12561 (TARGET_SCHED_ISSUE_RATE): Define.
12563 2008-03-10 Sebastian Pop <sebastian.pop@amd.com>
12565 * doc/invoke.texi (-ftree-loop-distribution): Add an example.
12567 2008-03-10 Richard Guenther <rguenther@suse.de>
12569 * tree-ssa-pre.c (get_sccvn_value): Simplify.
12570 (compute_avail): Do not add stmt uses to AVAIL_OUT.
12572 2008-03-10 Paolo Bonzini <bonzini@gnu.org>
12574 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
12575 Set default to true.
12577 2008-03-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12579 * c.opt (Wsynth): Deprecate.
12580 * doc/invoke.texi (Option Summary, Warning Options): Document
12581 -Wno-format-contains-nul.
12583 2008-03-09 Uros Bizjak <ubizjak@gmail.com>
12586 * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
12587 ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
12589 2008-03-09 Ira Rosen <irar@il.ibm.com>
12591 * config/rs6000/rs6000.c (builtin_description): Rename vector
12592 left shift operations.
12593 * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
12594 (altivec_vsl<VI_char>): Rename to ...
12595 (ashl<mode>3): ... new name.
12596 (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
12598 (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
12600 2008-03-08 Richard Guenther <rguenther@suse.de>
12602 * coverage.h (tree_coverage_counter_addr): Declare.
12603 * coverage.c (tree_coverage_counter_addr): New function.
12604 * tree-profile.c (tree_gen_edge_profiler): Unshare counter
12605 before using again.
12606 (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
12607 (tree_gen_one_value_profiler): Likewise.
12608 (tree_gen_ic_profiler): Likewise.
12609 (tree_gen_average_profiler): Likewise.
12610 (tree_gen_ior_profiler): Likewise.
12612 2008-03-08 Richard Guenther <rguenther@suse.de>
12614 * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
12615 (vn_binary_op_insert): Likewise.
12616 (vn_unary_op_lookup): Likewise.
12617 (vn_unary_op_insert): Likewise.
12618 (vn_nary_op_lookup): Declare.
12619 (vn_nary_op_insert): Likewise.
12620 * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
12621 and binary hashes, use a single obstack for unary_op_pool
12622 and binary_op_pool.
12623 (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
12624 a single struct vn_nary_op_s. Store tree code length and
12625 a variable number of operands.
12626 (struct vn_reference_op_struct): Remove unused op2.
12627 (vn_reference_op_eq): Do not compare op2.
12628 (vn_reference_op_compute_hash): Do not compute hash of op2.
12629 (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
12630 (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
12631 with vn_nary_op_compute_hash.
12632 (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
12633 (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
12635 (vn_unary_op_insert, vn_binary_op_insert): Replace with
12637 (visit_unary_op): Call nary functions.
12638 (visit_binary_op): Likewise.
12639 (process_scc): Adjust for struct vn_tables_s changes.
12640 (allocate_vn_table): Likewise.
12641 (free_vn_table): Likewise.
12642 * tree-vn.c (vn_add): Call nary functions.
12643 (vn_lookup): Likewise.
12645 2008-03-08 Jakub Jelinek <jakub@redhat.com>
12648 * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
12649 wdst back after sync_compare_and_swapqhi_internal.
12651 2008-03-08 Uros Bizjak <ubizjak@gmail.com>
12654 * config/i386/i386-modes.def (V1DI): New vector mode.
12655 * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
12656 * config/i386/mmx.md (MMXMODEI8): New mode iterator.
12657 (MMXMODE248): Ditto.
12658 (MMXMODE): Add V1DI mode.
12659 (mmxvecsize): Change DI mode to V1DI mode.
12660 ("mov<mode>): Use MMXMODEI8 mode iterator.
12661 ("*mov<mode>_internal_rex64"): Ditto.
12662 ("*mov<mode>_internal"): Ditto.
12663 ("mmx_add<mode>3"): Ditto. Handle V1DImode for TARGET_SSE2.
12664 ("mmx_sub<mode>3"): Ditto.
12665 ("mmx_adddi3"): Remove insn pattern.
12666 ("mmx_subdi3"): Ditto.
12667 ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
12668 ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
12669 ("mmx_ashl<mode>3"): Ditto.
12670 ("mmx_lshrdi3"): Remove insn pattern.
12671 ("mmx_ashldi3"): Ditto.
12672 * config/i386/i386.c (classify_argument): Handle V1DImode.
12673 (function_arg_advance_32): Ditto.
12674 (function_arg_32): Ditto.
12675 (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
12676 mmx_addv1di3 insn pattern.
12677 [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
12678 [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
12679 IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
12680 IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
12681 Remove definitions of built-in functions.
12682 (V1DI_type_node): New node.
12683 (v1di_ftype_v1di_int): Ditto.
12684 (v1di_ftype_v1di_v1di): Ditto.
12685 (v2si_ftype_v2si_si): Ditto.
12686 (v4hi_ftype_v4hi_di): Remove node.
12687 (v2si_ftype_v2si_di): Ditto.
12688 (ix86_init_mmx_sse_builtins): Handle V1DImode.
12689 (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
12690 Redefine builtins using def_builtin_const with *_ftype_*_int node.
12691 (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
12692 Add new builtins using def_builtin_const.
12693 (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
12694 IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
12695 IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
12696 * config/i386/mmintrin.h (__v1di): New typedef.
12697 (_mm_add_si64): Cast arguments to __v1di type.
12698 (_mm_sub_si64): Ditto.
12699 (_mm_sll_pi16): Cast __count to __v4hi type.
12700 (_mm_sll_pi32): Cast __count to __v2si type.
12701 (_mm_sll_si64): Cast arguments to __v1di type.
12702 (_mm_srl_pi16): Cast __count to __v4hi type.
12703 (_mm_srl_pi32): Cast __count to __v2si type.
12704 (_mm_srl_si64): Cast arguments to __v1di type.
12705 (_mm_sra_pi16): Cast __count to __v4hi type.
12706 (_mm_sra_pi32): Cast __count to __v2si type.
12707 (_mm_slli_pi16): Use __builtin_ia32_psllwi.
12708 (_mm_slli_pi32): Use __builtin_ia32_pslldi.
12709 (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
12710 (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
12711 (_mm_srli_pi32): Use __builtin_ia32_psrldi.
12712 (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
12713 (_mm_srai_pi16): Use __builtin_ia32_psrawi.
12714 (_mm_srai_pi32): Use __builtin_ia32_psradi.
12715 * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
12716 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
12717 __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
12718 __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
12720 2008-03-07 Joseph Myers <joseph@codesourcery.com>
12722 * doc/include/texinfo.tex: Update to version 2008-03-07.10.
12724 2008-03-07 Peter Bergner <bergner@vnet.ibm.com>
12727 * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
12728 reg+const addressing for Altivec modes. Don't generate reg+reg
12729 addressing for TFmode or TDmode quantities.
12731 2008-03-07 Paolo Bonzini <bonzini@gnu.org>
12733 * c-common.c (vector_types_convertible_p): Call langhook
12734 instead of comptypes.
12736 2008-03-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
12739 * tree-ssa-ccp.c (get_symbol_constant_value): Handle
12740 integral and scalar float variables which have a
12743 2008-03-06 Nathan Froyd <froydnj@codesourcery.com>
12745 * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
12746 dwarf_register_span hook when emitting unwind information for
12747 register-to-memory saves.
12748 * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
12749 (rs6000_frame_related): Remove call to spe_synthesize_frame.
12751 2008-03-06 Jakub Jelinek <jakub@redhat.com>
12753 * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
12754 for the same VAR_DECL.
12756 2008-03-06 Tom Tromey <tromey@redhat.com>
12758 * treelang: Delete.
12759 * doc/standards.texi (Standards): Don't mention treelang.
12760 * doc/invoke.texi (Overall Options): Don't mention treelang.
12761 * doc/install.texi (Prerequisites): Don't mention bison or
12763 (Configuration): Don't mention treelang.
12764 (Building): Likewise.
12765 * doc/frontends.texi (G++ and GCC): Don't mention treelang.
12767 2008-03-06 Paolo Bonzini <bonzini@gnu.org>
12769 * simplify-rtx.c (simplify_subreg): Remove useless shifts from
12770 word-extractions out of a multi-word object.
12772 2008-03-06 Richard Guenther <rguenther@suse.de>
12774 * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
12775 * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
12776 result type and precision.
12777 * expr.c (get_inner_reference): Set unsignedp based on the result
12778 type of BIT_FIELD_REF.
12779 * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
12780 * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
12781 (try_instantiate_multiple_fields): Likewise. Use the correct type
12783 (sra_build_assignment): Likewise.
12784 (sra_build_elt_assignment): Likewise.
12785 (sra_explode_bitfield_assignment): Likewise.
12786 * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
12787 * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
12788 set BIT_FIELD_REF_UNSIGNED.
12789 (vectorizable_load): Likewise.
12791 2008-03-06 Andreas Krebbel <krebbel1@de.ibm.com>
12793 * cse.c (cse_extended_basic_block): Invalidate artificial defs
12796 2008-03-06 Richard Guenther <rguenther@suse.de>
12798 * alias.c (struct alias_set_entry): Move has_zero_child field
12799 to pack with alias_set.
12801 2008-03-05 H.J. Lu <hongjiu.lu@intel.com>
12803 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
12806 2008-03-05 Ian Lance Taylor <iant@google.com>
12808 * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
12810 2008-03-05 Kenneth Zadeck <zadeck@naturalbridge.com>
12812 * fwprop.c (update_df): Support width and offset parameters of
12814 * ra-conflict.c (mark_reg_store, clear_reg_in_live,
12815 global_conflicts): Change DF_REF_EXTRACT to either
12816 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
12817 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
12818 * df-scan.c (df_ref_record, df_defs_record,
12819 df_ref_create_structure, df_def_record_1, df_uses_record,
12820 df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
12821 df_bb_refs_collect, df_entry_block_defs_collect,
12822 df_exit_block_uses_collect): Support new width and offset fields.
12823 (ref_extract_pool): New storage pool.
12824 (df_free_ref): New function.
12825 (df_reg_chain_unlink, df_free_collection_rec,
12826 df_sort_and_compress_refs): Call df_free_ref.
12827 (df_ref_equal_p, df_ref_compare): Compare offset and width fields
12829 (df_ref_create_structure): Allocate df_ref_extract if offset and
12830 width fields are used.
12831 (df_def_record_1): Get offset and width from ZERO_EXTRACT.
12832 (df_uses_record): Get offset and width from ZERO_EXTRACT
12834 * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
12835 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
12836 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
12837 * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
12838 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
12839 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
12840 (df_ref_extract): New structure.
12841 (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
12842 (df_ref_create): Add width and offset parameters.
12844 2008-03-05 Richard Guenther <rguenther@suse.de>
12846 * tree-ssa-structalias.c (get_constraint_for_component_ref):
12847 Use ranges_overlap_p.
12848 (offset_overlaps_with_access): Rename
12849 to ranges_overlap_p and move ...
12850 * tree-flow-inline.h (ranges_overlap_p): ... here.
12852 * tree.h (get_inner_reference, handled_component_p): Update
12855 * tree.h (record_component_aliases, get_alias_set,
12856 alias_sets_conflict_p, alias_sets_must_conflict_p,
12857 objects_must_conflict_p): Move declarations ...
12858 * alias.h (record_component_aliases, get_alias_set,
12859 alias_sets_conflict_p, alias_sets_must_conflict_p,
12860 objects_must_conflict_p): ... here.
12861 Include coretypes.h.
12862 * Makefile.in (ALIAS_H): Add coretypes.h dependency.
12864 2008-03-05 Aldy Hernandez <aldyh@redhat.com>
12866 * cfg.c: Include tree-flow.h.
12867 (remove_edge_raw): Call redirect_edge_var_map_clear.
12868 (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
12869 * tree-flow-inline.h (redirect_edge_var_map_def): New.
12870 (redirect_edge_var_map_result): New.
12871 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
12872 PENDING_STMT use with redirect_edge_var_map_*.
12873 * tree-ssa.c (edge_var_maps): New definition.
12874 (redirect_edge_var_map_add): New.
12875 (redirect_edge_var_map_clear): New.
12876 (redirect_edge_var_map_dup): New.
12877 (redirect_edge_var_map_vector): New.
12878 (redirect_edge_var_map_destroy): New.
12879 (ssa_redirect_edge): Replace PENDING_STMT use with
12880 redirect_edge_var_map_*.
12881 (flush_pending_stmts): Same.
12882 (delete_tree_ssa): Destroy edge var map.
12883 * tree-flow.h (struct _edge_var_map): New.
12884 Define edge_var_map vector type.
12885 Declare redirect_edge_var_map_* prototypes.
12886 * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
12887 * tree-cfg.c (reinstall_phi_args): Replace
12888 PENDING_STMT use with redirect_edge_var_map_*.
12890 2008-03-05 Richard Guenther <rguenther@suse.de>
12892 PR tree-optimization/35472
12893 * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
12894 whose single use_stmt has a overlapping set of loaded and
12895 stored symbols as that use_stmt might be a noop assignment then.
12897 2008-03-05 Joel Sherrill <joel.sherrill@oarcorp.com>
12899 * gthr-rtems.h: Implement __gthread_mutex_destroy.
12901 2008-03-05 Richard Guenther <rguenther@suse.de>
12904 * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
12905 should be constants.
12906 * tree-cfg.c (verify_expr): Verify it.
12907 * fold-const.c (fold_truthop): Remove code generating
12908 BIT_FIELD_REFs of structure bases.
12909 (fold_binary): Likewise.
12910 (fold_ternary): Position and size of BIT_FIELD_REFs are
12911 always host integers.
12912 (make_bit_field_ref): Remove.
12913 (optimize_bit_field_compare): Remove.
12914 (all_ones_mask_p): Remove.
12916 2008-03-05 Gabor Loki <loki@gcc.gnu.org>
12919 * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
12920 (split_block_and_df_analyze): New. Split basic block and rebuild
12922 (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
12924 (split_pattern_seq): Likewise.
12925 (erase_matching_seqs): Likewise.
12926 (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
12928 2008-03-04 Geoff Keating <geoffk@apple.com>
12930 * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
12931 declaration and code.
12932 (tree_invalid_nonnegative_warnv_p): Likewise.
12934 2008-03-05 Serge Belyshev <belyshev@depni.sinp.msu.ru>
12936 * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
12937 examples. Truncate option-names then causing overfull hbox.
12939 2008-03-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12942 * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
12944 * configure: Rebuilt.
12946 2008-03-04 Rafael Espindola <espindola@google.com>
12948 * fold-const.c (tree_simple_nonnegative_warnv_p): New.
12949 (tree_unary_nonnegative_warnv_p): New.
12950 (tree_binary_nonnegative_warnv_p): New.
12951 (tree_single_nonnegative_warnv_p): New.
12952 (tree_invalid_nonnegative_warnv_p): New.
12953 (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
12955 2008-03-04 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
12958 * opts.c (handle_option): Postpone 'unknown option' errors only for
12961 2008-03-04 H.J. Lu <hongjiu.lu@intel.com>
12964 * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
12967 2008-03-04 Rafael Espindola <espindola@google.com>
12969 * fold-const.c (tree_unary_nonzero_warnv_p): New.
12970 (tree_binary_nonzero_warnv_p): New.
12971 (tree_single_nonzero_warnv_p): New.
12972 (tree_expr_nonzero_warnv_p): Redefine using the new functions.
12974 2008-03-04 Uros Bizjak <ubizjak@gmail.com>
12976 PR middle-end/35456
12977 * fold-const.c (fold_cond_expr_with_comparison): Prevent
12978 transformations for modes that have signed zeros.
12979 * ifcvt.c (noce_try_abs): Ditto.
12981 2008-03-04 Joseph Myers <joseph@codesourcery.com>
12983 * config/i386/i386.c (override_options): Force
12984 -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
12986 2008-03-04 Jan Hubicka <jh@suse.cz>
12989 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
12992 2008-03-04 Danny Smith <dannysmith@users.sourceforge.net>
12994 * config/i386/i386.md (allocate_stack_worker_32): Use __chkstk
12995 label to probe the stack.
12997 2008-03-04 Danny Smith <dannysmith@users.sourceforge.net>
12999 * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
13000 (__gthr_win32_mutex_destroy): Declare.
13001 [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
13002 __gthr_win32_mutex_destroy.
13003 * config/i386/gthr-win32.c (__gthr_win32_mutex_destroy): Define.
13005 2008-03-03 Jan Hubicka <jh@suse.cz>
13008 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
13009 aggressive on inlining cold calls.
13011 2008-03-03 Richard Guenther <rguenther@suse.de>
13013 * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
13014 struct copies into the expression table.
13015 (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
13016 (try_to_simplify): Likewise.
13017 * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
13018 integral and pointer arguments which do not change the
13019 precision to NOP_EXPRs.
13020 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
13021 VIEW_CONVERT_EXPR case.
13023 2008-03-02 Sebastian Pop <sebastian.pop@amd.com>
13025 * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
13026 defined in a loop at depth 0 is invariant.
13027 * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
13028 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
13029 be called at loop depth 0.
13031 2008-03-02 Jakub Jelinek <jakub@redhat.com>
13034 * gcc.c (process_command): Update copyright notice dates.
13035 * gcov.c (print_version): Likewise.
13036 * gcov-dump.c (print_version): Likewise.
13037 * mips-tfile.c (main): Likewise.
13038 * mips-tdump.c (main): Likewise.
13040 2008-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
13043 * c-common.c (flag_permissive): Delete.
13044 (constant_expression_warnings): Check flags first.
13045 (constant_expression_error): New.
13046 * c-common.h (flag_permissive): Delete.
13047 (constant_expression_error): Declare.
13048 * flags.h (flag_permissive): Declare. Update description.
13049 * diagnostic.c (pedwarn): Update.
13051 * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
13052 (permissive_error_kind): New.
13053 * toplev.c (flag_permissive): Define. Update description.
13054 * toplev.h (permissive_error_kind): Declare.
13055 * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
13056 (pedwarn_c90): Use pedantic_warning_kind.
13057 * c-opts.c (c_common_post_options): flag_permissive does not affect
13058 flag_pedantic_errors.
13060 2008-03-02 Joseph Myers <joseph@codesourcery.com>
13062 * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
13063 __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
13064 __absvsi2, __absvDI2): Use unsigned arithmetic.
13066 2008-03-02 Andi Kleen <ak@suse.de>
13067 Richard Guenther <rguenther@suse.de>
13069 * struct-equiv.c: Remove file.
13070 * cfg_cleanup.c (condjump_equiv_p): Remove.
13071 * Makefile.in (OBJS-common): Remove struct-equiv.o.
13072 (struct-equiv.o): Remove rule.
13073 * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
13074 insns_match_p, struct_equiv_block_eq, struct_equiv_init,
13075 rtx_equiv_p, condjump_equiv_p): Remove prototypes.
13077 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
13079 * ifcvt.c (noce_process_if_block): Try to handle only the then
13080 block if the else block exists but isn't suitable.
13082 2008-03-01 Janne Blomqvist <jb@gcc.gnu.org>
13085 * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
13086 * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
13087 regression from previous patch.
13089 2008-03-01 Janne Blomqvist <jb@gcc.gnu.org>
13092 * gthr.h: Add __gthread_mutex_destroy as a function that must be
13094 * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
13095 * gthr-single.h (__gthread_mutex_destroy): Likewise.
13096 * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
13097 * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
13098 * gthr-nks.h (__gthread_mutex_destroy): Likewise.
13099 * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
13100 * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
13101 (__gthread_mutex_destroy_function): Rename to
13102 __gthread_mutex_destroy.
13103 * gthr-dce.h (__gthread_mutex_destroy): Call
13104 pthread_mutex_destroy.
13105 * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
13106 * gthr-posix.h (__gthread_mutex_destroy): Likewise.
13107 * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
13109 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
13111 * df-scan.c (df_ref_chain_change_bb): Simplify.
13112 (df_insn_change_bb): Add new_bb argument. Simplify. Call
13113 set_block_for_insn if there's any change.
13114 * df.h ((df_insn_change_bb): Fix prototype.
13115 * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
13116 df_insn_change_bb, don't call set_block_for_insn.
13117 * emit-rtl.c (reorder_insns): Likewise.
13118 * haifa-sched.c (move_insn): Likewise.
13120 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
13122 * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
13124 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
13126 * tree-flow-inline.h (next_readonly_imm_use): Return
13127 NULL_USE_OPERAND_P after the end.
13129 2008-03-01 Richard Guenther <rguenther@suse.de>
13131 PR tree-optimization/35411
13132 * tree-sra.c (sra_build_assignment): Split conversion to
13133 final type to a separate statement if we are not assigning
13136 2008-02-29 Francois-Xavier Coudert <coudert@clipper.ens.fr>
13138 * fold-const.c (fold_convertible_p): Correct the logic to follow
13139 that in fold_convert().
13141 2008-02-29 Douglas Gregor <doug.gregor@gmail.com>
13144 * tree-inline.c (build_duplicate_type): When we make a
13145 duplicate type, make it unique in the canonical types system.
13147 2008-02-29 Tom Tromey <tromey@redhat.com>
13149 * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
13150 input_file_stack_history, input_file_stack_restored): Remove.
13151 (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
13152 * input.h (struct file_stack): Remove.
13153 (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
13154 (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
13156 * diagnostic.h (struct diagnostic_context) <last_module>: Change
13158 (diagnostic_last_module_changed): Add 'map' argument.
13159 (diagnostic_set_last_function): Likewise.
13160 * diagnostic.c (undiagnostic_report_current_module): Iterate using
13161 line map, not input_file_stack.
13162 * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
13164 2008-02-29 Paul Brook <paul@codesourcery.com>
13166 * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
13168 2008-02-29 Paul Brook <paul@codesourcery.com>
13170 * config/arm/ieee754-df.S (muldf3): Use RET macros.
13172 2008-02-29 Richard Guenther <rguenther@suse.de>
13174 * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
13176 * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
13177 value for comparing for a store match.
13178 (simplify_unary_expression): Do nothing for SSA_NAMEs.
13179 (try_to_simplify): Do not do a full-blown reference lookup.
13181 2008-02-29 Kaz Kojima <kkojima@gcc.gnu.org>
13183 * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
13184 (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
13186 * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
13188 2008-02-29 Sebastian Pop <sebastian.pop@amd.com>
13190 * tree-loop-linear.c (try_interchange_loops): Compare memory access
13191 strides against cache sizes.
13193 2008-02-29 Kaz Kojima <kkojima@gcc.gnu.org>
13195 * config/sh/sh.c (sh_secondary_reload): Handle loading a float
13198 2008-02-28 Richard Sandiford <rsandifo@nildram.co.uk>
13200 * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
13201 of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
13202 is smaller than the original promoted value.
13203 (simplify_subreg): If OP is a SUBREG, try to preserve its
13204 SUBREG_PROMOTED_VAR_P information.
13206 2008-02-28 Steven Bosscher <stevenb.gcc@gmail.com>
13208 * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
13209 (VN_INFO_GET): Allocate new objects on the obstack.
13210 (init_scc_vn): Initialize the obstack. Use XDELETE instead of free
13211 for rpo_numbers_temp, for consistency.
13212 (free_scc_vn): Free the obstack.
13214 2008-02-28 Sebastian Pop <sebastian.pop@amd.com>
13216 * doc/invoke.texi: Document -ftree-loop-distribution.
13217 * tree-loop-distribution.c: New.
13218 * tree-pass.h (pass_loop_distribution): New.
13219 * graphds.h (struct graph): Add htab_t indices.
13220 * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
13221 * tree-vectorizer.c (rename_variables_in_loop): Extern.
13222 (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
13223 * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
13224 * tree-data-ref.c (debug_data_dependence_relations): New.
13225 (dump_data_dependence_relation): Also print data references.
13226 (free_data_ref): Extern.
13227 (same_access_functions): Moved...
13228 (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
13229 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
13230 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
13231 struct rdg_vertex_info, rdg_vertex_for_stmt): New.
13232 (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
13233 (stmts_from_loop): Skip LABEL_EXPR.
13234 (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
13236 (build_rdg): Initialize rdg->indices htab.
13237 (free_rdg, stores_from_loop, ref_base_address,
13238 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
13239 have_similar_memory_accesses_1, ref_base_address_1,
13240 remove_similar_memory_refs): New.
13241 * tree-data-ref.h: Depend on tree-chrec.h.
13242 (debug_data_dependence_relations, free_data_ref): Declared.
13243 (same_access_functions): ... here.
13244 (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
13246 (struct rdg_vertex): Add has_mem_write and has_mem_reads.
13247 (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
13248 RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
13249 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
13250 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
13251 rdg_vertex_for_stmt): Declared.
13252 (struct rdg_edge): Add level.
13254 (free_rdg, stores_from_loop, remove_similar_memory_refs,
13255 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
13257 (rdg_has_similar_memory_accesses): New.
13258 * tree-vect-analyze.c: Remove unused static decls.
13259 * lambda.h (dependence_level): New.
13260 * common.opt (ftree-loop-distribution): New.
13261 * tree-flow.h (mark_virtual_ops_in_bb,
13262 slpeel_tree_duplicate_loop_to_edge_cfg,
13263 rename_variables_in_loop): Declared.
13264 * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
13265 (OBJS-common): Add tree-loop-distribution.o.
13266 (tree-loop-distribution.o): New rule.
13267 * tree-cfg.c (mark_virtual_ops_in_bb): New.
13268 (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
13269 * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
13271 2008-02-28 Joseph Myers <joseph@codesourcery.com>
13274 * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
13275 other than structures and unions.
13277 2008-02-28 Richard Guenther <rguenther@suse.de>
13280 2008-02-26 Richard Guenther <rguenther@suse.de>
13282 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
13283 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
13284 (lookup_decl_from_uid): Declare.
13285 (remove_decl_from_map): Likewise.
13286 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
13287 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
13288 (decl_for_uid_map): New global hashtable mapping DECL_UID
13290 (init_ttree): Allocate it.
13291 (insert_decl_to_uid_decl_map): New helper function.
13292 (make_node_stat): Insert new decls into the map.
13293 (copy_node_stat): Likewise.
13294 (lookup_decl_from_uid): New function.
13295 (remove_decl_from_map): Likewise.
13296 (print_decl_for_uid_map_statistics): New helper.
13297 (dump_tree_statistics): Call it.
13299 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
13300 (referenced_var_iterator): Adjust.
13301 (FOR_EACH_REFERENCED_VAR): Adjust.
13302 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
13303 (num_referenced_vars): Adjust.
13304 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
13305 (first_referenced_var): Remove.
13306 (end_referenced_vars_p): Likewise.
13307 (next_referenced_var): Likewise.
13308 (referenced_var_iterator_set): New helper function.
13309 * tree-dfa.c (referenced_var_lookup): Adjust.
13310 (referenced_var_check_and_insert): Likewise.
13311 (remove_referenced_var): Likewise.
13312 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
13313 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
13314 (verify_call_clobbering): Likewise.
13315 (verify_memory_partitions): Likewise.
13316 (init_tree_ssa): Allocate bitmap instead of hashtable for
13318 (delete_tree_ssa): Adjust.
13319 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
13320 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
13321 (compute_tag_properties): Likewise.
13322 (set_initial_properties): Likewise.
13323 (find_partition_for): Likewise.
13324 (update_reference_counts): Likewise.
13325 (dump_may_aliases_for): Likewise.
13326 * tree-ssa-operands.c (add_virtual_operand): Likewise.
13327 (add_call_clobber_ops): Likewise.
13328 (add_call_read_ops): Likewise.
13329 (get_asm_expr_operands): Likewise.
13330 * tree-into-ssa.c (dump_decl_set): Likewise.
13331 (update_ssa): Likewise.
13332 * tree-sra.c (scan_function): Likewise.
13333 (decide_instantiations): Likewise.
13334 (scalarize_parms): Likewise.
13335 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
13336 (dsa_named_for): Likewise.
13337 * tree-ssa-structalias.c (update_alias_info): Likewise.
13338 (merge_smts_into): Likewise.
13340 2008-02-27 David Daney <ddaney@avtrex.com>
13343 * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
13344 * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
13345 * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
13346 * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
13347 * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
13349 2008-02-27 Uros Bizjak <ubizjak@gmail.com>
13352 * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
13353 (BUILT_IN_NEXTTOWARD): Remove.
13354 (BUILT_IN_NEXTTOWARDF): Ditto.
13355 * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
13356 alloca/strcpy/strcat. Remove commented-out code. Fix whitespace.
13358 2008-02-27 Tom Tromey <tromey@redhat.com>
13360 * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
13361 DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
13363 2008-02-27 Jan Beulich <jbeulich@novell.com>
13365 * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
13366 update the respective field on newdecl.
13368 2008-02-27 Revital Eres <eres@il.ibm.com>
13370 PR rtl-optimization/34999
13371 * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
13372 crossing edges that ends with a call insn.
13373 (fix_up_fall_thru_edges): Handle crossing edges that ends with a
13374 call insn and clear the EDGE_CROSSING flag of the crossing edge
13375 when fixing fallthru edges.
13377 2008-02-27 Richard Guenther <rguenther@suse.de>
13379 PR middle-end/35390
13380 * fold-const.c (fold_unary): Return the correct argument,
13381 converted to the result type.
13383 2008-02-27 Richard Guenther <rguenther@suse.de>
13385 PR middle-end/34971
13386 * expr.c (expand_expr_real_1): Assert on rotates that operate
13388 * fold-const.c (fold_binary): Use the types precision, not the
13389 bitsize of the mode if folding rotate expressions. Build rotates
13390 only for full modes.
13392 2008-02-27 Jakub Jelinek <jakub@redhat.com>
13394 * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
13395 and CPP_PRAGMA_EOL.
13396 * c-pragma.c (pragma_ns_name): New typedef.
13397 (registered_pp_pragmas): New variable.
13398 (c_pp_lookup_pragma): New function.
13399 (c_register_pragma_1): If flag_preprocess_only, do nothing
13400 for non-expanded pragmas, for expanded ones push pragma's
13401 namespace and name into registered_pp_pragmas vector.
13402 (c_invoke_pragma_handler): Register OpenMP pragmas even when
13403 flag_preprocess_only, don't register GCC pch_preprocess
13404 pragma if flag_preprocess_only.
13405 * c-opts.c (c_common_init): Call init_pragma even if
13406 flag_preprocess_only.
13407 * c-pragma.c (c_pp_lookup_pragma): New prototype.
13408 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
13409 cpp_register_pragma if flag_preprocess_only.
13411 2008-02-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13414 * c-parser.c (c_parser_translation_unit): Warn for empty
13415 translation unit, not empty source file.
13417 2008-02-26 Paul Brook <paul@codesourcery.com>
13419 * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
13420 operand for Thumb-2.
13421 * config/arm/arm.h (reg_class): Add CORE_REGS.
13422 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
13423 (BASE_REG_CLASS): Use CORE_REGS.
13424 (PREFERRED_RELOAD_CLASS): Add STACK_REG.
13425 (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
13426 (REGNO_OK_FOR_INDEX_P): Exclude SP.
13427 (ARM_REG_OK_FOR_INDEX_P): Always define. Use
13428 ARM_REGNO_OK_FOR_INDEX_P.
13429 (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
13430 * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
13431 arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
13432 (ldm/stm peepholes): Ditto.
13433 * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
13434 * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
13435 * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
13436 * config/arm/constraints.md: Enable "k" constraint on ARM.
13438 2008-02-27 Ben Elliston <bje@au.ibm.com>
13440 * config/rs6000/rs6000.c: Annotate cache line size field in all
13441 instances of struct processor_costs.
13443 2008-02-26 David Edelsohn <edelsohn@gnu.org>
13445 * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
13446 dse2, gcse, if_conversion, if_after_combine, if_after_reload,
13447 jump_bypass): New counters.
13448 * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
13449 * dce.c (gate_ud_dce): Same.
13450 (gate_fast_dce): Same.
13451 * dse.c (gate_dse1): New function.
13452 (gate_dse2): New function.
13453 (gate_dse): Merge results of new gate functions.
13454 * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
13455 (gate_handle_jump_bypass): Add dbg_cnt.
13456 (gate_handle_gcse): Add dbg_cnt.
13457 * ifcvt.c (gate_handle_if_conversion): Same.
13458 (gate_handle_if_after_combine): Same.
13459 (gate_handle_if_after_reload): Same.
13460 * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
13462 2008-02-26 Edmar Wienskoski <edmar@freescale.com>
13464 * config/rs6000/rs6000.c (processor_costs): Update e300 cache
13466 * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
13468 2008-02-26 Jason Merrill <jason@redhat.com>
13471 * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE
13472 alone if it's the naming decl for the type's main variant.
13474 2008-02-26 Tom Tromey <tromey@redhat.com>
13476 * system.h (USE_MAPPED_LOCATION): Poison.
13477 * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
13478 * tree-cfg.c (make_cond_expr_edges): Remove old location code.
13479 (make_goto_expr_edges): Likewise.
13480 (remove_bb): Likewise.
13481 (execute_warn_function_return): Likewise.
13482 * basic-block.h (struct edge_def) <goto_locus>: Change type to
13484 * c-common.c (fname_decl): Remove old location code.
13485 * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
13487 * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
13489 (ASM_INPUT_SOURCE_LOCATION): Likewise.
13490 (gen_rtx_ASM_INPUT): Likewise.
13491 (gen_rtx_ASM_INPUT_loc): Likewise.
13492 (get_rtx_asm_OPERANDS): Remove.
13493 * cfglayout.c (insn_locators_alloc): Remove old location code.
13494 (set_curr_insn_source_location): Likewise.
13495 (curr_insn_locator): Likewise.
13496 * print-tree.c (print_node): Remove old location code.
13497 * tree-mudflap.c (mf_varname_tree): Remove old location code.
13498 (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
13499 * cfgexpand.c (expand_gimple_cond_expr): Don't use
13500 location_from_locus.
13501 (construct_exit_block): Remove old location code.
13502 * emit-rtl.c (force_next_line_note): Remove old location code.
13503 * profile.c (branch_prob): Remove old location code.
13504 * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
13505 LOC_LINE): Remove old-location variants.
13506 * langhooks.c (lhd_print_error_function): Remove old location
13508 * configure, config.in: Rebuilt.
13509 * configure.ac (--enable-mapped-location): Remove.
13510 * c-decl.c (c_init_decl_processing): Remove old location code.
13511 (finish_function): Likewise.
13512 * recog.c (decode_asm_operands): Remove old location code.
13513 * c-pch.c (c_common_read_pch): Remove old location code.
13514 * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
13516 * gimple-low.c (lower_function_body): Remove old location code.
13517 * toplev.c (unknown_location): Remove.
13518 (push_srcloc): Remove old-location variant.
13519 (process_options): Remove old location code.
13520 (lang_dependent_init): Likewise.
13521 * input.h (UNKNOWN_LOCATION): Move definition.
13522 (location_t): Undeprecate.
13523 (source_locus): Remove.
13524 (location_from_locus): Remove.
13525 (struct location_s): Remove.
13526 Remove all old-location code.
13527 (input_line, input_filename): Remove.
13528 * final.c (final_scan_insn): Remove old location code.
13529 * diagnostic.c (diagnostic_build_prefix): Remove
13530 USE_MAPPED_LOCATION test.
13531 * tree.h (gimple_stmt) <locus>: Now a location_t.
13532 (tree_exp) <locus>: Likewise.
13533 (DECL_IS_BUILTIN): Remove old-location variant.
13534 (annotate_with_file_line, annotate_with_locus): Likewise.
13535 (expr_locus, set_expr_locus): Update.
13536 * tree.c (build1_stat): Remove old location code.
13537 (last_annotated_node): Remove.
13538 (annotate_with_file_line): Remove old-location variant.
13539 (annotate_with_locus): Likewise.
13540 (expr_location): Remove old location code.
13541 (set_expr_location): Likewise.
13542 (expr_has_location): Likewise.
13543 (expr_locus): Likewise.
13544 (set_expr_locus): Likewise.
13545 (expr_filename): Don't use location_from_locus.
13546 (expr_lineno): Likewise.
13547 * rtl-error.c (location_for_asm): Remove old location code.
13548 * c-lex.c (cb_line_change): Remove old location code.
13549 (fe_file_change): Likewise.
13550 (cb_def_pragma): Likewise.
13551 (c_lex_with_flags): Likewise.
13552 * gengtype.c (do_typedef): Don't special-case location types.
13553 (define_location_structures): Remove.
13554 (main): Don't call define_location_structures.
13555 * tree-pretty-print.c (dump_implicit_edges): Remove old location
13558 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
13561 * builtins.def (BUILT_IN_STDARG_START): Remove.
13562 * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
13563 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
13564 * tree-inline.c (inline_forbidden_p_1): Likewise.
13566 2008-02-26 Richard Guenther <rguenther@suse.de>
13568 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
13569 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
13570 (lookup_decl_from_uid): Declare.
13571 (remove_decl_from_map): Likewise.
13572 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
13573 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
13574 (decl_for_uid_map): New global hashtable mapping DECL_UID
13576 (init_ttree): Allocate it.
13577 (insert_decl_to_uid_decl_map): New helper function.
13578 (make_node_stat): Insert new decls into the map.
13579 (copy_node_stat): Likewise.
13580 (lookup_decl_from_uid): New function.
13581 (remove_decl_from_map): Likewise.
13582 (print_decl_for_uid_map_statistics): New helper.
13583 (dump_tree_statistics): Call it.
13585 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
13586 (referenced_var_iterator): Adjust.
13587 (FOR_EACH_REFERENCED_VAR): Adjust.
13588 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
13589 (num_referenced_vars): Adjust.
13590 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
13591 (first_referenced_var): Remove.
13592 (end_referenced_vars_p): Likewise.
13593 (next_referenced_var): Likewise.
13594 (referenced_var_iterator_set): New helper function.
13595 * tree-dfa.c (referenced_var_lookup): Adjust.
13596 (referenced_var_check_and_insert): Likewise.
13597 (remove_referenced_var): Likewise.
13598 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
13599 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
13600 (verify_call_clobbering): Likewise.
13601 (verify_memory_partitions): Likewise.
13602 (init_tree_ssa): Allocate bitmap instead of hashtable for
13604 (delete_tree_ssa): Adjust.
13605 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
13606 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
13607 (compute_tag_properties): Likewise.
13608 (set_initial_properties): Likewise.
13609 (find_partition_for): Likewise.
13610 (update_reference_counts): Likewise.
13611 (dump_may_aliases_for): Likewise.
13612 * tree-ssa-operands.c (add_virtual_operand): Likewise.
13613 (add_call_clobber_ops): Likewise.
13614 (add_call_read_ops): Likewise.
13615 (get_asm_expr_operands): Likewise.
13616 * tree-into-ssa.c (dump_decl_set): Likewise.
13617 (update_ssa): Likewise.
13618 * tree-sra.c (scan_function): Likewise.
13619 (decide_instantiations): Likewise.
13620 (scalarize_parms): Likewise.
13621 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
13622 (dsa_named_for): Likewise.
13623 * tree-ssa-structalias.c (update_alias_info): Likewise.
13624 (merge_smts_into): Likewise.
13626 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
13629 * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
13630 * c-opts.c (c_common_handle_option): Wall enables
13631 Wvolatile-register-var.
13632 * common.opt: Move Wvolatile-register-var to...
13635 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
13637 * common.opt (Wlarger-than=): New.
13638 * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
13640 * opts.c (common_handle_option): Handle -Wlarger-than=.
13641 * optc-gen.awk: Likewise.
13642 * opth-gen.awk: Likewise.
13643 * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
13644 * tree-optimize.c (tree_rest_of_compilation): Likewise.
13646 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
13648 * c-common.c (match_case_to_enum_1): Add appropriate
13649 OPT_W* parameter to warning.
13650 (c_do_switch_warnings): Likewise.
13651 * c-typeck.c (warning_init): Add one more parameter following
13652 'warning' function.
13653 (push_init_level): Update call to warning_init.
13654 (pop_init_level): Likewise.
13655 (add_pending_init): Likewise.
13656 (output_init_element: Likewise.
13658 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
13661 * toplev.c (toplev_main): If there are warnings or error, print
13662 errors for ignored options.
13663 * opts.c (ignored_options): New static variable.
13664 (postpone_unknown_option_error): New.
13665 (print_ignored_options): New.
13666 (handle_option): Postpone errors for unknown -Wno-* options.
13667 * opts.h (print_ignored_options): Declare.
13669 2008-02-25 Richard Sandiford <rsandifo@nildram.co.uk>
13671 * config/mips/mips.md (loadgp_blockage, blockage): Change type
13674 2008-02-25 Richard Guenther <rguenther@suse.de>
13677 2008-02-25 Richard Guenther <rguenther@suse.de>
13679 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
13680 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
13681 (lookup_decl_from_uid): Declare.
13682 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
13683 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
13684 (decl_for_uid_map): New global hashtable mapping DECL_UID
13686 (init_ttree): Allocate it.
13687 (insert_decl_to_uid_decl_map): New helper function.
13688 (make_node_stat): Insert new decls into the map.
13689 (copy_node_stat): Likewise.
13690 (lookup_decl_from_uid): New function.
13691 (print_decl_for_uid_map_statistics): New helper.
13692 (dump_tree_statistics): Call it.
13694 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
13695 (referenced_var_iterator): Adjust.
13696 (FOR_EACH_REFERENCED_VAR): Adjust.
13697 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
13698 (num_referenced_vars): Adjust.
13699 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
13700 (first_referenced_var): Remove.
13701 (end_referenced_vars_p): Likewise.
13702 (next_referenced_var): Likewise.
13703 (referenced_var_iterator_set): New helper function.
13704 * tree-dfa.c (referenced_var_lookup): Adjust.
13705 (referenced_var_check_and_insert): Likewise.
13706 (remove_referenced_var): Likewise.
13707 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
13708 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
13709 (verify_call_clobbering): Likewise.
13710 (verify_memory_partitions): Likewise.
13711 (init_tree_ssa): Allocate bitmap instead of hashtable for
13713 (delete_tree_ssa): Adjust.
13714 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
13715 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
13716 (compute_tag_properties): Likewise.
13717 (set_initial_properties): Likewise.
13718 (find_partition_for): Likewise.
13719 (update_reference_counts): Likewise.
13720 (dump_may_aliases_for): Likewise.
13721 * tree-ssa-operands.c (add_virtual_operand): Likewise.
13722 (add_call_clobber_ops): Likewise.
13723 (add_call_read_ops): Likewise.
13724 (get_asm_expr_operands): Likewise.
13725 * tree-into-ssa.c (dump_decl_set): Likewise.
13726 (update_ssa): Likewise.
13727 * tree-sra.c (scan_function): Likewise.
13728 (decide_instantiations): Likewise.
13729 (scalarize_parms): Likewise.
13730 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
13731 (dsa_named_for): Likewise.
13732 * tree-ssa-structalias.c (update_alias_info): Likewise.
13733 (merge_smts_into): Likewise.
13735 2008-02-25 Janne Blomqvist <jb@gcc.gnu.org>
13738 * doc/invoke.texi (-fcx-limited-range): Document new option.
13739 * toplev.c (process_options): Handle -fcx-fortran-rules.
13740 * common.opt: Add documentation for -fcx-fortran-rules.
13742 2008-02-25 Janne Blomqvist <jb@gcc.gnu.org>
13745 * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
13746 actual behaviour and C99.
13748 2008-02-26 Ben Elliston <bje@au.ibm.com>
13750 * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
13751 (ASM_CPU_POWER6_SPEC): Likewise.
13752 (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
13753 Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
13754 (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
13756 2008-02-25 Richard Guenther <rguenther@suse.de>
13758 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
13759 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
13760 (lookup_decl_from_uid): Declare.
13761 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
13762 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
13763 (decl_for_uid_map): New global hashtable mapping DECL_UID
13765 (init_ttree): Allocate it.
13766 (insert_decl_to_uid_decl_map): New helper function.
13767 (make_node_stat): Insert new decls into the map.
13768 (copy_node_stat): Likewise.
13769 (lookup_decl_from_uid): New function.
13770 (print_decl_for_uid_map_statistics): New helper.
13771 (dump_tree_statistics): Call it.
13773 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
13774 (referenced_var_iterator): Adjust.
13775 (FOR_EACH_REFERENCED_VAR): Adjust.
13776 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
13777 (num_referenced_vars): Adjust.
13778 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
13779 (first_referenced_var): Remove.
13780 (end_referenced_vars_p): Likewise.
13781 (next_referenced_var): Likewise.
13782 (referenced_var_iterator_set): New helper function.
13783 * tree-dfa.c (referenced_var_lookup): Adjust.
13784 (referenced_var_check_and_insert): Likewise.
13785 (remove_referenced_var): Likewise.
13786 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
13787 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
13788 (verify_call_clobbering): Likewise.
13789 (verify_memory_partitions): Likewise.
13790 (init_tree_ssa): Allocate bitmap instead of hashtable for
13792 (delete_tree_ssa): Adjust.
13793 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
13794 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
13795 (compute_tag_properties): Likewise.
13796 (set_initial_properties): Likewise.
13797 (find_partition_for): Likewise.
13798 (update_reference_counts): Likewise.
13799 (dump_may_aliases_for): Likewise.
13800 * tree-ssa-operands.c (add_virtual_operand): Likewise.
13801 (add_call_clobber_ops): Likewise.
13802 (add_call_read_ops): Likewise.
13803 (get_asm_expr_operands): Likewise.
13804 * tree-into-ssa.c (dump_decl_set): Likewise.
13805 (update_ssa): Likewise.
13806 * tree-sra.c (scan_function): Likewise.
13807 (decide_instantiations): Likewise.
13808 (scalarize_parms): Likewise.
13809 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
13810 (dsa_named_for): Likewise.
13811 * tree-ssa-structalias.c (update_alias_info): Likewise.
13812 (merge_smts_into): Likewise.
13814 2008-02-25 Andreas Krebbel <krebbel1@de.ibm.com>
13817 * cse.c (cse_insn): Avoid creation of overlapping MEMs.
13818 * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
13819 * alias.h (nonoverlapping_memrefs_p): Likewise.
13821 2008-02-25 Jan Beulich <jbeulich@novell.com>
13823 * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
13824 * config/i386/netware-libgcc.exp: Add __bswap?i2,
13825 __emultls_get_address, __emultls_register_common,
13826 __floatundi?f, and _Unwind_GetIPInfo.
13827 * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
13828 Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
13829 (gen_regparm_prefix): Likewise.
13830 (i386_nlm_encode_section_info): Sync with
13831 config/i386/winnt.c:i386_pe_encode_section_info().
13832 (i386_nlm_maybe_mangle_decl_assembler_name): New.
13833 i386_nlm_mangle_decl_assembler_name): New.
13834 (netware_override_options): New.
13835 * config/i386/netware.h (netware_override_options): Declare.
13836 (OVERRIDE_OPTIONS): Re-define to netware_override_options.
13837 (i386_nlm_mangle_decl_assembler_name): Declare.
13838 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
13840 2008-02-25 Ben Elliston <bje@au.ibm.com>
13843 * c-decl.c (grokdeclarator): Remove unused local variables
13844 `typedef_type' and `type_as_written'.
13846 (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
13847 unused local variable `has_hot_blocks'.
13848 (fix_crossing_conditional_branches): Remove unused local variable
13851 2008-02-25 Uros Bizjak <ubizjak@gmail.com>
13853 PR middle-end/19984
13854 * builtins.def (BUILT_IN_NAN): Define as c99 builtin
13855 using DEF_C99_BUILTIN.
13856 (BUILT_IN_NANF): Ditto.
13857 (BUILT_IN_NANL): Ditto.
13859 2008-02-25 Ayal Zaks <zaks@il.ibm.com>
13860 Revital Eres <eres@il.ibm.com>
13862 * modulo-sched.c (calculate_must_precede_follow): Address TODO
13863 regarding the order of two dependent insns in the same row.
13865 2008-02-25 Eric Botcazou <ebotcazou@adacore.com>
13867 * stor-layout.c (layout_decl): Do not bump the alignment of a
13868 bit-field to more than byte alignment if it is packed.
13870 2008-02-24 David Edelsohn <edelsohn@gnu.org>
13872 * config/rs6000/rs6000.c (processor_costs): Add cache costs for
13875 2008-02-24 Diego Novillo <dnovillo@google.com>
13877 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
13880 * tree-vrp.c (vrp_evaluate_conditional): With
13881 -Wtype-limits, emit a warning when comparing against a
13882 constant outside the natural range of OP0's type.
13883 * c.opt (Wtype-limits): Move ...
13884 * common.opt (Wtype-limits): ... here.
13886 2008-02-24 Edmar Wienskoski <edmar@freescale.com>
13888 * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
13889 * config/rs6000/e300c2c3.md: New file.
13890 * config/rs6000/rs6000.c (processor_costs): Add new costs for
13892 (rs6000_override_options): Add e300c2 and e300c3 cases to
13893 processor_target_table. Do not allow usage of Altivec or Spe
13894 with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
13895 (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
13896 * config/rs6000/rs6000.h (processor_type): Add
13897 PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
13898 (ASM_CPU_SPEC): Add e300c2 and e300c3.
13899 * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
13900 and ppce300c3. Include e300c2c3.md.
13902 2008-02-23 David Edelsohn <edelsohn@gnu.org>
13904 * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
13905 instead of TARGET_STRICT_ALIGN.
13907 2008-02-23 Joseph Myers <joseph@codesourcery.com>
13909 * explow.c (memory_address): Assert that the generated address is
13912 2008-02-23 Francois-Xavier Coudert <coudert@clipper.ens.fr>
13915 * config/darwin-protos.h: Add darwin_patch_builtins prototype.
13916 * config/darwin-ppc-ldouble-patch.def: New file.
13917 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
13918 * config/rs6000/rs6000.c (rs6000_init_builtins): Call
13919 SUBTARGET_INIT_BUILTINS if defined.
13920 * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
13923 2008-02-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
13926 * simplify-rtx.c (simplify_binary_operation_1): Add simplification
13927 of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
13929 2008-02-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
13932 * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
13933 file" warning condtional on -Winvalid-PCH.
13935 2008-02-23 Daniel Jacobowitz <dan@codesourcery.com>
13937 * expmed.c (extract_bit_field): Always use adjust_address for MEM.
13939 2008-02-23 Uros Bizjak <ubizjak@gmail.com>
13943 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
13944 prevent reload from using MMX registers.
13945 (*mov<mode>_internal): Ditto.
13946 (*movv2sf_internal_rex64): Ditto.
13947 (*movv2sf_internal): Ditto.
13949 2008-02-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13951 PR documentation/31569
13952 * doc/install.texi2html: Use makeinfo --no-number-sections.
13954 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
13956 * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
13957 ensure that we can address an entire entity > 8 bytes. Don't
13958 generate reg+reg addressing for such data.
13960 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
13962 * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
13963 strings when optimizing for size, unless the target cares about
13966 2008-02-22 Tom Tromey <tromey@redhat.com>
13968 * regclass.c (current_pass): Remove declaration.
13970 2008-02-22 Anatoly Sokolov <aesok@post.ru>
13972 * config/avr/libgcc.S (__RAMPZ__): Define.
13973 (__do_copy_data): Add for devices with 128KB code memory.
13975 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
13977 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
13979 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
13981 2008-02-22 Hans-Peter Nilsson <hp@axis.com>
13983 * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
13986 2008-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13989 * c-typeck.c (build_binary_op): Warn about floating point
13990 comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
13992 2008-02-21 Janis Johnson <janis187@us.ibm.com>
13995 * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
13996 (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
13998 (rs6000_override_options): Set altivec_abi as default, not override,
13999 for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
14000 TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
14001 is used; use new member spe_abi.
14002 (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
14003 spe_abi and altivec_abi.
14005 2008-02-22 Tomas Bily <tbily@suse.cz>
14007 * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
14009 2008-02-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14012 * config.build (build_file_translate): Set to `CMD //c' only if
14014 * Makefile.in (build_file_translate): Improve comment.
14016 2008-02-21 Jan Hubicka <jh@suse.cz>
14018 * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
14019 PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
14020 PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
14022 2008-02-21 Michael Matz <matz@suse.de>
14025 * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
14027 2008-02-21 Uros Bizjak <ubizjak@gmail.com>
14029 * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
14030 movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
14031 as insn constraint.
14032 * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
14033 from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
14034 SSE_VEC_FLOAT_MODE_P as insn constraint.
14035 (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
14036 (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
14037 sse4a_movntdf using MODEF mode iterator.
14038 (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
14039 sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
14040 (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
14041 (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
14042 (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
14043 (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
14044 (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
14046 2008-02-21 Richard Guenther <rguenther@suse.de>
14048 * tree.def (PAREN_EXPR): New tree code.
14049 * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
14051 * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
14052 * expr.c (expand_expr_real_1): Likewise.
14053 * tree-inline.c (estimate_num_insns_1): Likewise.
14054 * tree-complex.c (expand_complex_move): Likewise.
14055 * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
14058 2008-02-20 Kaz Kojima <kkojima@gcc.gnu.org>
14061 * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
14063 2008-02-20 Kaz Kojima <kkojima@gcc.gnu.org>
14066 * config/sh/sh.md (jump_compact): Disable for crossing jumps.
14068 * config/sh/sh.c (find_barrier): Don't go past
14069 NOTE_INSN_SWITCH_TEXT_SECTIONS note.
14071 2008-02-20 DJ Delorie <dj@redhat.com>
14073 * config/h8300/h8300.md (insv): Force source operand to be a register.
14075 * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
14076 as a jump, not as a plain insn.
14078 2008-02-20 Seongbae Park <seongbae.park@gmail.com>
14080 * doc/invoke.texi (Warning Options): Add new option
14081 -Wframe-larger-than=.
14082 (-Wframe-larger-than): Document.
14084 * flags.h (warn_frame_larger_than, frame_larger_than_size):
14085 Add declarations for new option variables.
14087 * final.c (final_start_function): Check the frame size
14088 before emission and issue a Wframe-larger-than warning.
14090 * opts.c (warn_frame_larger_than, frame_larger_than_size):
14091 Add definitions for new option variables.
14092 (common_handle_option): Handle new option OPT_Wframe_larger_than_.
14094 * common.opt (Wframe-larger-than=): New option.
14096 2008-02-20 Uros Bizjak <ubizjak@gmail.com>
14098 * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
14099 (<sse>_div<mode>3): Ditto.
14100 (<sse>_vmdiv<mode>3): Ditto.
14101 (<sse>_vmsqrt<mode>2): Ditto.
14102 (*smax<mode>3): Ditto.
14103 (sse5_frcz<mode>2): Ditto.
14104 (sse5_vmfrcz<mode>2): Ditto. Use TARGET_SSE5 instead of TARGET_ROUND
14105 as insn constraint.
14107 2008-02-20 Richard Guenther <rguenther@suse.de>
14109 PR middle-end/35265
14110 * builtins.c (validate_arg): If we want an INTEGER_TYPE,
14111 be happy with INTEGRAL_TYPE_P.
14113 2008-02-20 Richard Guenther <rguenther@suse.de>
14115 * fold-const.c (split_tree): Associate floatig-point expressions
14116 if flag_associative_math is set.
14118 2008-02-20 Richard Guenther <rguenther@suse.de>
14120 * tree.h (fold_real_zero_addition_p): Declare.
14121 * fold-const.c (fold_real_zero_addition_p): Export.
14122 * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
14123 floating-point operations with zero and one.
14125 2008-02-20 Paolo Bonzini <bonzini@gnu.org>
14127 * doc/install.texi: Correct references to CFLAGS, replacing them
14128 with BOOT_CFLAGS. Document flags used during bootstrap for
14131 2008-02-20 Uros Bizjak <ubizjak@gmail.com>
14133 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
14134 * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
14135 and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
14137 (smin<mode>3): Ditto from similar patterns.
14138 (smax<mode>3): Ditto.
14139 (*ieee_smin<mode>3): Ditto.
14140 (*ieee_smax<mode>3): Ditto.
14141 * config/i386/sse.md (sse): New mode attribute.
14142 (mov<mode>): Macroize expander from movv4sf and movv2df using
14143 SSEMODEF2P mode iterator.
14144 (<sse>_movnt<mode>): Ditto from similar patterns. Use
14145 SSE_VEC_FLOAT_MODE_P as insn constraint.
14146 (storent<mode>): Ditto.
14147 (storent<mode>): Macroize expander from storentsf and storentdf using
14148 MODEF mode iterator.
14149 (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
14150 mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
14151 (abs<mode>2): Ditto from similar patterns.
14152 (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
14153 (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
14154 (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
14155 (<sse>_vmsqrt<mode>2): Ditto.
14156 (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
14157 (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
14158 (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
14159 (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
14160 (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
14161 sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
14162 mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
14164 (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
14165 iterator and SSE_FLOAT_MODE_P as insn constraint.
14166 (<sse>_ucomi): Ditto from similar patterns.
14167 (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
14168 sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
14169 SSE_VEC_FLOAT_MODE_P as insn constraint.
14170 (vcond<mode>): Ditto from similar patterns.
14171 (and<mode>3, *and<mode>3): Ditto.
14172 (<sse>_nand<mode>3): Ditto.
14173 (ior<mode>3, *ior<mode>3): Ditto.
14174 (xor<mode>3, *xor<mode>3): Ditto.
14175 (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
14176 iterator and SSE_FLOAT_MODE_P as insn constraint.
14177 (*nand<mode>3): Ditto from similar patterns.
14178 (*ior<mode>3): Ditto.
14179 (*xor<mode>3): Ditto.
14181 2008-02-20 Ira Rosen <irar@il.ibm.com>
14183 * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
14184 vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
14185 vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
14187 2008-02-19 Jan Hubicka <jh@suse.cz>
14189 * predict.c (tree_bb_level_predictions): Remove variable next
14190 mistakely introduced by previous commit.
14192 2008-02-19 Jan Hubicka <jh@suse.cz>
14194 * predict.c (predict_paths_leading_to): Rewrite.
14195 (predict_paths_for_bb): New.
14196 (tree_bb_level_predictions): Update call of predict_paths_leading_to.
14198 2008-02-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14201 * Makefile.in (build_file_translate): New.
14202 (gcc-vers.texi): Use it for translating $(abs_srcdir).
14203 * config.build (build_file_translate): Set to `CMD //c' on MinGW.
14204 * configure.ac (build_file_translate): Substitute it.
14205 * configure: Regenerate.
14207 2008-02-19 Jan Hubicka <jh@suse.cz>
14209 PR rtl-optimization/34408
14210 * see.c (see_def_extension_not_merged): Copy subreg so we don't have
14213 2008-02-19 Jan Hubicka <jh@suse.cz>
14215 PR middle-end/28779
14216 * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
14219 2008-02-19 H.J. Lu <hongjiu.lu@intel.com>
14222 * config/i386/i386-modes.def: Revert the last DI alignment
14223 change until Ada people can look into it.
14225 2008-02-19 Nick Clifton <nickc@redhat.com>
14227 * opts.c (print_specific_help): Fix typo in --help text.
14229 2008-02-19 Jakub Jelinek <jakub@redhat.com>
14232 * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
14233 32-bit inline asm without asm alternatives for host GCC < 3.0.
14235 2008-02-19 Richard Guenther <rguenther@suse.de>
14237 PR tree-optimization/34989
14238 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
14239 Allow propagation to INDIRECT_REF if we can simplify only.
14241 2008-02-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
14243 * c-common.c (warn_for_collisions_1): Use appropriate option when
14246 2008-02-19 Nick Clifton <nickc@redhat.com>
14249 * opts.c (undocumented_msg): Leave blank unless checking is enabled.
14250 (handle_options): Fix indentation.
14251 (print_filtered_help): If no language-specific options were
14252 displayed tell the user how to list all the options supported by
14253 the language's front-end.
14254 (print_specific_help): Fix indentation and remove duplicate line.
14255 (common_handle_option): Handle the -v option.
14256 For --help enable the display of undocumented options if the -v
14257 switch has been included on the command line.
14258 For --help= check for overlaps in the arguments between the option
14259 classes and the language names and issue a warning when they
14260 cannot be disambiguated.
14261 * c.opt (v): Pass on to the common option handler.
14263 2008-02-19 Revital Eres <eres@il.ibm.com>
14265 * modulo-sched.c (sms_schedule): Change dump message when
14266 create_ddg function fails.
14267 (try_scheduling_node_in_cycle): Rename row to cycle.
14268 (print_partial_schedule): Rename CYCLE to ROW.
14270 2008-02-19 Christian Bruel <christian.bruel@st.com>
14271 Zdenek Dvorak <ook@ucw.cz>
14273 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
14275 2008-02-19 Uros Bizjak <ubizjak@gmail.com>
14278 * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
14279 (*x86_movdicc_0_m1_se): Ditto.
14281 2008-02-19 Uros Bizjak <ubizjak@gmail.com>
14283 * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
14284 (CMPtype): Define as __gcc_CMPtype.
14285 * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
14286 (CMPtype): Define as __gcc_CMPtype.
14288 2008-02-19 Hans-Peter Nilsson <hp@axis.com>
14290 Support valgrind 3.3 for --enable-checking=valgrind.
14291 * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
14293 [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
14294 [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
14295 [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
14296 * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
14297 Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
14298 VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
14299 VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
14301 * ggc-zone.c: Similar.
14302 * ggc-page.c: Similar.
14304 2008-02-19 Paul Brook <paul@codesourcery.com>
14307 * config/arm/ieee754-df.S: Fix do_it typo.
14308 * config/arm/ieee754-sf.S: Fix do_it typo.
14310 2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
14313 * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
14314 (OPTION_MASK_ISA_3DNOW_SET): Likewise.
14315 (OPTION_MASK_ISA_SSE_SET): Likewise.
14316 (OPTION_MASK_ISA_SSE2_SET): Likewise.
14317 (OPTION_MASK_ISA_SSE3_SET): Likewise.
14318 (OPTION_MASK_ISA_SSSE3_SET): Likewise.
14319 (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
14320 (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
14321 (OPTION_MASK_ISA_SSE4_SET): Likewise.
14322 (OPTION_MASK_ISA_SSE4A_SET): Likewise.
14323 (OPTION_MASK_ISA_SSE5_SET): Likewise.
14324 (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
14325 (OPTION_MASK_ISA_MMX_UNSET): Updated.
14326 (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
14327 (OPTION_MASK_ISA_SSE_UNSET): Likewise.
14328 (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
14329 (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
14330 (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
14331 (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
14332 (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
14333 (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
14334 (OPTION_MASK_ISA_SSE4): Removed.
14335 (ix86_handle_option): Turn on bits in ix86_isa_flags and
14336 ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
14337 (override_options): Don't turn on implied SSE/MMX bits in
14340 2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
14342 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
14345 2008-02-18 Joey Ye <joey.ye@intel.com>
14347 PR middle-end/34921
14348 * tree-nested.c (insert_field_into_struct): Set type alignment
14349 to field alignment if the former is less than the latter.
14351 2008-02-18 Jakub Jelinek <jakub@redhat.com>
14353 * BASE-VER: Set to 4.4.0.
14355 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14357 * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
14358 * doc/cfg.texi: Likewise.
14359 * doc/extend.texi: Likewise.
14360 * doc/gty.texi: Likewise.
14361 * doc/invoke.texi: Likewise.
14362 * doc/loop.texi: Likewise.
14363 * doc/md.texi: Likewise.
14364 * doc/passes.texi: Likewise.
14365 * doc/rtl.texi: Likewise.
14366 * doc/sourcebuild.texi: Likewise.
14367 * doc/tm.texi: Likewise.
14368 * doc/tree-ssa.texi: Likewise.
14370 2008-02-17 Richard Guenther <rguenther@suse.de>
14372 PR middle-end/35227
14373 * tree-complex.c (init_parameter_lattice_values): Handle parameters
14374 without default definition.
14376 2008-02-17 Richard Guenther <rguenther@suse.de>
14378 PR tree-optimization/35231
14379 * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
14382 2008-02-17 Uros Bizjak <ubizjak@gmail.com>
14385 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
14386 * config/i386/sfp-machine.h (CMPtype): Define as typedef using
14387 libgcc_cmp_return mode.
14389 2008-02-16 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
14392 * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
14394 2008-02-16 Ralf Corsepius <ralf.corsepius@rtems.org>
14396 * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
14399 2008-02-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14401 * doc/c-tree.texi: Use `@.' where appropriate.
14402 * doc/extend.texi: Likewise.
14403 * doc/install.texi: Likewise.
14404 * doc/invoke.texi: Likewise.
14405 * doc/loop.texi: Likewise.
14406 * doc/makefile.texi: Likewise.
14407 * doc/md.texi: Likewise.
14408 * doc/passes.texi: Likewise.
14409 * doc/standards.texi: Likewise.
14410 * doc/tm.texi: Likewise.
14412 2008-02-15 Jakub Jelinek <jakub@redhat.com>
14414 PR middle-end/35196
14415 * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
14417 (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
14418 rather than in entry_bb.
14420 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
14422 * config/i386/sfp-machine.h (CMPtype): Define as typedef using
14423 libgcc_cmp_return mode.
14425 2008-02-15 Jakub Jelinek <jakub@redhat.com>
14427 PR middle-end/35130
14428 * tree-nested.c (convert_call_expr): Put FRAME.* vars into
14429 OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
14431 2008-02-15 Richard Guenther <rguenther@suse.de>
14432 Zdenek Dvorak <ook@ucw.cz>
14434 PR tree-optimization/35164
14435 * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
14436 * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
14437 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
14438 Only propagate addresses which do not have abnormal SSA_NAMEs
14441 2008-02-15 Joseph Myers <joseph@codesourcery.com>
14444 * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
14446 2008-02-15 Jan Hubicka <jh@suse.cz>
14448 PR middle-end/35149
14449 * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
14451 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
14453 PR middle-end/34621
14454 * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
14455 when calculating alignment_pad.
14457 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
14459 * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
14460 (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
14461 * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
14462 and STACK_BOUNDARY define.
14464 2008-02-14 Danny Smith <dannysmith@users.sourceforge.net>
14466 PR preprocessor/35061
14467 * c-pragma.c (handle_pragma_pop_macro): Check that
14468 pushed_macro_table has been allocated.
14470 2008-02-14 Eric Botcazou <ebotcazou@adacore.com>
14472 PR middle-end/35136
14473 * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
14474 (force_gimple_operand): Likewise.
14475 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
14476 for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
14477 Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
14478 (find_interesting_uses_address): Check addressability and alignment
14479 of the base expression only after substituting bases of IVs into it.
14481 2008-02-14 Michael Matz <matz@suse.de>
14484 * function.c (instantiate_virtual_regs_in_insn): Reload address
14485 before falling back to reloading the whole operand.
14487 2008-02-14 Andreas Krebbel <krebbel1@de.ibm.com>
14489 * config/s390/s390.c (s390_mainpool_start): Emit the pool
14490 before the first section switch note.
14492 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14494 * doc/bugreport.texi: Update copyright years.
14495 * doc/c-tree.texi: Likewise.
14496 * doc/cfg.texi: Likewise.
14497 * doc/cpp.texi: Likewise.
14498 * doc/cppinternals.texi: Likewise.
14499 * doc/fragments.texi: Likewise.
14500 * doc/frontends.texi: Likewise.
14501 * doc/gcc.texi: Likewise.
14502 * doc/gty.texi: Likewise.
14503 * doc/hostconfig.texi: Likewise.
14504 * doc/implement-c.texi: Likewise.
14505 * doc/libgcc.texi: Likewise.
14506 * doc/loop.texi: Likewise.
14507 * doc/makefile.texi: Likewise.
14508 * doc/options.texi: Likewise.
14509 * doc/passes.texi: Likewise.
14510 * doc/rtl.texi: Likewise.
14511 * doc/sourcebuild.texi: Likewise.
14512 * doc/standards.texi: Likewise.
14513 * doc/tree-ssa.texi: Likewise.
14514 * doc/trouble.texi: Likewise.
14516 * doc/extend.texi: Use @: or add comma where appropriate.
14517 * doc/invoke.texi: Likewise.
14518 * doc/tm.texi: Likewise.
14520 2008-02-14 Alan Modra <amodra@bigpond.net.au>
14523 * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
14526 2008-02-14 Jesper Nilsson <jesper.nilsson@axis.com>
14528 * doc/md.texi (clz, ctz): Add reference.
14529 * doc/rtl.texi (clz, ctz): Likewise.
14531 2008-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14534 * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
14537 2008-02-13 Andreas Krebbel <krebbel1@de.ibm.com>
14539 * config/s390/s390.c (struct constant_pool): New field
14540 emit_pool_after added.
14541 (s390_mainpool_start): Set the emit_pool_after flag according
14542 to the section switch notes.
14543 (s390_mainpool_finish): Consider emit_pool_after when emitting
14544 the literal pool at the end of the function.
14545 (s390_chunkify_start): Force literal pool splits at section
14548 2008-02-13 Michael Matz <matz@suse.de>
14551 * var-tracking.c (clobber_variable_part): Correctly traverse the
14554 2008-02-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
14557 * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
14558 Add -fdump-ipa-inline.
14559 * tree-dump.c (dump_files): Remove tree-inlined dump.
14560 * tree-pass.h (tree_dump_index): Remove TDI_inlined.
14562 2008-02-12 Richard Guenther <rguenther@suse.de>
14564 PR tree-optimization/35171
14565 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
14568 2008-02-12 Richard Guenther <rguenther@suse.de>
14570 PR middle-end/35163
14571 * fold-const.c (fold_widened_comparison): Use get_unwidened in
14572 value-preserving mode. Disallow final truncation.
14574 2008-02-12 Eric Botcazou <ebotcazou@adacore.com>
14576 PR middle-end/35136
14577 * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
14578 code from here to...
14579 (force_gimple_operand): ...here.
14581 2008-02-12 Jakub Jelinek <jakub@redhat.com>
14584 * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
14585 non-compatible pointers.
14586 (generate_element_copy): If SRC and DST are RECORD_TYPEs with
14587 different FIELD_DECLs, try harder by comparing field offsets, sizes
14590 PR inline-asm/35160
14591 * function.c (match_asm_constraints_1): Don't replace the same input
14594 2008-02-12 Anatoly Sokolov <aesok@post.ru>
14596 * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
14597 * config/avr/avr.c (expand_prologue): Save RAMPZ register.
14598 (expand_epilogue): Restore RAMPZ register.
14599 * config/avr/avr.md (RAMPZ_ADDR): New constant.
14601 2008-02-11 Kai Tietz <kai.tietz@onevision.com>
14603 * config/i386/cygwin.asm: (__alloca): Correct calling
14604 convention and alignment.
14605 (__chkstk): Force 8 byte stack alignment.
14607 2008-02-11 Uros Bizjak <ubizjak@gmail.com>
14608 Richard Guenther <rguenther@suse.de>
14610 PR tree-optimization/33992
14611 * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
14612 the zero we compare against.
14614 2008-02-10 Danny Smith <dannysmith@users.sourceforge.net>
14616 PR libfortran/35063
14617 * gthr-win32.h (__gthread_mutex_destroy_function): New function
14618 to CloseHandle after unlocking to prevent accumulation of handle
14621 2008-02-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14623 PR middle_end/34150
14624 * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
14625 pic_label_operand source. Similarly, add a REG_LABEL_OPERAND note
14626 and update LABEL_NUSES during and after reload.
14628 2008-02-08 Steven Bosscher <stevenb.gcc@gmail.com>
14630 PR middle-end/34627
14631 * combine.c (simplify_if_then_else): Make sure the comparison is
14632 against const0_rtx when simplifying to (abs x) or (neg (abs X)).
14634 2008-02-08 Richard Sandiford <rsandifo@nildram.co.uk>
14637 * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
14638 (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
14639 * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
14640 (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
14641 * tree.h (get_type_static_bounds): Likewise.
14643 2008-02-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14645 * doc/invoke.texi (Option Summary, C++ Dialect Options)
14646 (Objective-C and Objective-C++ Dialect Options, Warning Options):
14647 Make -Wfoo language annotations match what the compiler outputs.
14649 2008-02-08 Sa Liu <saliu@de.ibm.com>
14651 * config/spu/spu-builtins.def: Fixed wrong parameter type in spu
14652 intrinsics spu_convts, spu_convtu, spu_convtf.
14654 2008-02-08 Hans-Peter Nilsson <hp@axis.com>
14656 * doc/extend.texi (Function Attributes) <noinline>: Mention
14657 asm ("") as method to keep calls.
14659 2008-02-07 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
14662 * doc/options.texi (Options): Replace references to opts.sh with
14664 * opts-common.c: Likewise.
14665 * optc-gen.awk: Likewise.
14667 2008-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
14669 * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
14671 2008-02-07 Richard Henderson <rth@redhat.com>
14674 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
14675 EXPR_LIST for the REG_EQUAL instead of a comparison with a
14678 2008-02-07 Uros Bizjak <ubizjak@gmail.com>
14680 PR tree-optimization/35085
14681 * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
14682 for operand entry oe2 in addition to operand entry oe3 in order to
14683 expose more opportunities for vectorizer sum reduction.
14685 2008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14688 * Makefile.in (LIBS): Remove $(GMPLIBS).
14689 (cc1-dummy, cc1): Add $(GMPLIBS).
14691 2008-02-06 Jan Hubicka <jh@suse.cz>
14694 * i386.md (moddf_integer): Do not produce partial memory stalls for
14695 targets where it hurts.
14697 2008-02-06 Uros Bizjak <ubizjak@gmail.com>
14700 * optabs.c (expand_float): Do not check for decimal modes when
14701 expanding unsigned integer through signed conversion.
14703 2008-02-06 Nick Clifton <nickc@redhat.com>
14705 * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
14706 inside the clobber with a match_operand and duplicated operand
14707 number in the constraint.
14708 (ineqbranchsi): Delete redundant comment.
14710 2008-02-06 Ralf Corsepius <ralf.corsepius@rtems.org>
14712 * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add
14713 builtin_define ("__USE_INIT_FINI__").
14714 * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
14716 * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
14718 2008-02-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14720 PR documentation/30330
14721 * doc/invoke.texi (C++ Dialect Options)
14722 (Objective-C and Objective-C++ Dialect Options, Warning Options):
14723 For each warning option -Wfoo that allows -Wno-foo, ensure both
14724 -Wfoo and -Wno-foo are listed in the option index. Fix index
14725 entry of -Wswitch-default, index -Wnormalized= including the
14726 `=', and -Wlarger-than-@var{len} including @var{len}.
14728 2008-02-05 Uros Bizjak <ubizjak@gmail.com>
14730 * config/i386/i386.md (floatunssisf2): Use
14731 ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
14732 (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
14733 Macroize expander using MODEF mode iterator.
14735 2008-02-05 Diego Novillo <dnovillo@google.com>
14737 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
14740 * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
14742 2008-02-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14745 * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
14747 2008-02-05 H.J. Lu <hongjiu.lu@intel.com>
14750 * config/i386/i386.c (ix86_function_sseregparm): Add an arg
14751 to indicate if a message should be generated.
14752 (init_cumulative_args): Updated.
14753 (function_value_32): Likewise.
14755 2008-02-05 Joseph Myers <joseph@codesourcery.com>
14757 * doc/include/texinfo.tex: Update to version 2008-02-04.16.
14759 2008-02-05 Uros Bizjak <ubizjak@gmail.com>
14762 * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
14763 Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
14765 2008-02-04 Diego Novillo <dnovillo@google.com>
14767 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
14770 * tree-vrp.c (vrp_evaluate_conditional): With
14771 -Wtype-limits, emit a warning when comparing against a
14772 constant outside the natural range of OP0's type.
14774 2008-02-04 Richard Guenther <rguenther@suse.de>
14776 PR middle-end/33631
14777 * expr.c (count_type_elements): Give for unions instead of
14780 2008-02-04 Richard Guenther <rguenther@suse.de>
14782 PR middle-end/35043
14783 * gimplify.c (gimplify_init_ctor_eval): Convert array indices
14784 to TYPE_DOMAINs base type instead of using bitsizetype here.
14786 2008-02-03 Jason Merrill <jason@redhat.com>
14788 * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
14790 2008-02-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14793 * doc/invoke.texi (C++ Dialect Options, Optimize Options)
14794 (HPPA Options, i386 and x86-64 Options, IA-64 Options)
14795 (RS/6000 and PowerPC Options): Fix typos and markup.
14796 * doc/passes.texi (Tree-SSA passes): Likewise.
14798 2008-02-02 Michael Matz <matz@suse.de>
14801 * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
14802 from record_last_reg_set_info.
14803 (record_last_reg_set_info): Take an RTX argument, iterate over all
14804 constituent hardregs.
14805 (record_last_set_info, record_opr_changes): Change calls to
14806 new signature or to record_last_reg_set_info_regno.
14808 2008-02-02 Gerald Pfeifer <gerald@pfeifer.com>
14810 * doc/extend.texi (X86 Built-in Functions): Fix grammar.
14812 2008-02-01 Hans-Peter Nilsson <hp@axis.com>
14814 PR rtl-optimization/34773
14815 * reg-notes.def (EQUAL): Mention significance of combination of
14816 REG_EQUAL and REG_RETVAL.
14817 * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
14818 insn that has a REG_RETVAL.
14820 2008-02-01 Roger Sayle <roger@eyesopen.com>
14823 * configure.ac (--enable-fixed-point): Disable unless explicitly
14825 * configure: Regenerate.
14827 2008-02-01 Richard Guenther <rguenther@suse.de>
14830 * invoke.texi (-finline-limit): Remove no longer true parts
14831 of the documentation. Note that there is no default value.
14833 2008-02-01 Andrew Pinski <pinskia@gmail.com>
14834 Mark Mitchell <mark@codesourcery.com>
14835 Ben Elliston <bje@au.ibm.com>
14838 * doc/extend.texi (Other Builtins): Document.
14840 2008-01-31 Tom Browder <tom.browder@gmail.com>
14842 * doc/c-tree.texi (Types): Fix grammar.
14843 (Expression trees): Ditto.
14844 * doc/passes.texi (Tree-SSA passes): Ditto.
14846 * doc/configterms.texi (Configure Terms): Fix typo.
14847 * doc/cpp.texi (Common Predefined Macros): Ditto.
14848 * doc/md.texi (Machine Constraints): Ditto.
14850 * doc/makefile.texi (Makefile): Add comma.
14852 2008-01-31 Tom Browder <tom.browder@gmail.com>
14853 Gerald Pfeifer <gerald@pfeifer.com>
14855 * doc/sourcebuild.texi (Front End): Remove references to CVS
14856 and CVSROOT/modules.
14857 (Texinfo Manuals): Replace reference to CVS by one to SVN.
14858 (Back End): Remove reference to CVS.
14860 2008-01-31 Richard Sandiford <rsandifo@nildram.co.uk>
14863 * config/mips/mips.c (gen_load_const_gp): New function, taking a
14865 (mips16_gp_pseudo_reg): ...here.
14866 * config/mips/mips.md (load_const_gp): Replace with...
14867 (load_const_gp_<mode>): ...this :P-based insn.
14869 2008-01-31 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
14871 * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
14872 options. Minor fixes.
14873 (-std): Move reference to standards closer to where language
14874 standards are first mentioned.
14876 2008-01-31 Richard Sandiford <rsandifo@nildram.co.uk>
14878 PR rtl-optimization/34995
14879 * reload.c (alternative_allows_const_pool_ref): Take an rtx
14880 parameter and return a bool. If the rtx parameter is nonnull,
14881 check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
14882 (find_reloads): Update call accordingly. Pass the new operand
14883 if it needed no address reloads, otherwise pass null.
14885 2008-01-30 Richard Henderson <rth@redhat.com>
14888 * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
14889 for unbounded arrays.
14891 2008-01-30 Silvius Rus <rus@google.com>
14893 * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
14895 2008-01-30 Jan Hubicka <jh@suse.cz>
14898 * i386.c (init_cumulative_args): Use real function declaration when
14901 2008-01-30 Richard Sandiford <rsandifo@nildram.co.uk>
14903 PR rtl-optimization/34998
14904 * global.c (build_insn_chain): Treat non-subreg_lowpart
14905 SUBREGs of pseudos as clobbering all the words covered by the
14906 SUBREG, not just all the bytes.
14907 * ra-conflict.c (clear_reg_in_live): Likewise. Take the
14908 original df_ref rather than an extract parameter.
14909 (global_conflicts): Update call accordingly.
14911 2008-01-30 Andreas Krebbel <krebbel1@de.ibm.com>
14913 * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
14914 the overflow check to make it easier to read.
14915 (__fixtfdi): Change the type of the ll member in union
14916 long_double to UDItype_x.
14918 2008-01-30 Jakub Jelinek <jakub@redhat.com>
14920 PR middle-end/34969
14921 * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
14922 * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
14923 * tree-inline.c (fold_marked_statements): Call
14924 cgraph_update_edges_for_call_stmt if folding a call statement.
14925 * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
14926 debug_generic_stmt calls, reset it back afterwards.
14929 * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
14931 * c-typeck.c (build_external_ref): Don't pedwarn about
14932 static vars in current function's scope.
14934 2008-01-29 Joseph Myers <joseph@codesourcery.com>
14936 * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
14938 2008-01-29 Bernhard Fischer <aldot@gcc.gnu.org>
14941 * ipa-struct-reorg.c: Fix spelling.
14942 * params.def: Ditto.
14944 2008-01-29 Richard Guenther <rguenther@suse.de>
14946 PR middle-end/35006
14947 * tree-inline.h (struct copy_body_data): Add remapping_type_depth
14949 * tree-inline.c (remap_type): Increment remapping_type_depth
14950 around remapping types.
14951 (copy_body_r): Only add referenced variables if they are referenced
14952 from code, not types.
14954 2008-01-29 Douglas Gregor <doug.gregor@gmail.com>
14965 * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
14966 qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
14968 2008-01-28 Andy Hutchinson <hutchinsonandy@netscape.net>
14971 * config/avr/avr.c (expand_prologue): Use correct QI mode frame
14972 pointer for tiny stack.
14974 2008-01-28 Bernhard Fischer <aldot@gcc.gnu.org>
14976 * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
14978 2008-01-28 Bernhard Fischer <aldot@gcc.gnu.org>
14980 * config/vx-common.h: Fix typo in comment.
14982 2008-01-28 Ian Lance Taylor <iant@google.com>
14986 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
14987 coalesce pointers if they have different DECL_NO_TBAA_P values.
14988 * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
14989 between variables with different DECL_NO_TBAA_P values.
14991 2008-01-28 Nathan Froyd <froydnj@codesourcery.com>
14994 * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
14995 are not legitimate small data references on SPE targets.
14997 2008-01-28 David Daney <ddaney@avtrex.com>
14999 * doc/install.texi (mips-*-*): Recommend binutils 2.18.
15001 2008-01-28 David Daney <ddaney@avtrex.com>
15003 * doc/install.texi (--disable-libgcj-bc): Reword documentation.
15005 2008-01-27 Joseph Myers <joseph@codesourcery.com>
15007 * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
15008 m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
15009 *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
15010 *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
15011 hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
15012 i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
15013 i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
15014 vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
15016 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
15018 * basic-block.h (condjump_equiv_p): Fix comment.
15020 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
15022 * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
15023 print_generic_stmt_indented): Fix comment.
15025 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
15027 * configure.ac (__stack_chk_fail): Add detecion for availability
15028 of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
15029 * configure: Regenerate.
15031 2008-01-26 Maxim Kuvyrkov <maxim@codesourcery.com>
15033 PR middle-end/34688
15034 * final.c (output_addr_const): Handle TRUNCATE.
15036 2008-01-26 Zdenek Dvorak <ook@ucw.cz>
15039 * tree-ssa-loop-ivopts.c (comp_cost): New type.
15040 (zero_cost, infinite_cost): New constants.
15041 (struct cost_pair): Change type of cost to comp_cost.
15042 (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
15043 (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
15045 (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
15046 split_address_cost, ptr_difference_cost, difference_cost,
15047 get_computation_cost_at, get_computation_cost,
15048 determine_use_iv_cost_generic, determine_use_iv_cost_address,
15049 determine_use_iv_cost_condition, determine_use_iv_costs,
15050 cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
15051 iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
15052 iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
15053 Change type of cost to comp_cost.
15054 (determine_iv_cost): Increase cost of non-original ivs, instead
15055 of decreasing the cost of original ones.
15056 (get_address_cost): Indicate the complexity of the addressing mode
15058 (try_add_cand_for): Prefer using ivs not specific to some object.
15059 * tree-flow.h (force_expr_to_var_cost): Declaration removed.
15061 2008-01-26 Peter Bergner <bergner@vnet.ibm.com>
15062 Janis Johnson <janis187@us.ibm.com>
15065 * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
15066 (TARGET_INSTANTIATE_DECLS): Likewise.
15067 * target.h (expand_to_rtl_hook): New target hook.
15068 (instantiate_decls): Likewise.
15069 * function.c (instantiate_decl): Make non-static. Rename to...
15070 (instantiate_decl_rtl): ... this.
15071 (instantiate_expr): Use instantiate_decl_rtl.
15072 (instantiate_decls_1): Likewise.
15073 (instantiate_decls): Likewise.
15074 (instantiate_virtual_regs: Call new instantiate_decls taget hook.
15075 * function.h (instantiate_decl_rtl): Add prototype.
15076 * cfgexpand.c (target.h): New include.
15077 (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
15078 * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
15079 (TARGET_INSTANTIATE_DECLS): Likewise.
15080 (TARGET_INITIALIZER): New target hooks added.
15081 * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
15083 * config/rs6000/rs6000.c (tree-flow.h): New include.
15084 (machine_function): Add sdmode_stack_slot field.
15085 (rs6000_alloc_sdmode_stack_slot): New function.
15086 (rs6000_instantiate_decls): Likewise.
15087 (rs6000_secondary_memory_needed_rtx): Likewise.
15088 (rs6000_check_sdmode): Likewise.
15089 (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
15090 (TARGET_INSTANTIATE_DECLS): Likewise.
15091 (rs6000_hard_regno_mode_ok): Allow SDmode.
15092 (num_insns_constant): Likewise. Handle _Decimal32 constants.
15093 (rs6000_emit_move): Handle SDmode.
15094 (function_arg_advance): Likewise.
15095 (function_arg): Likewise.
15096 (rs6000_gimplify_va_arg): Likewise. Add special handling of
15097 SDmode var args for 32-bit compiles.
15098 (rs6000_secondary_reload_class): Handle SDmode.
15099 (rs6000_output_function_epilogue): Likewise.
15100 (rs6000_function_value): Simplify if statement.
15101 (rs6000_libcall_value): Likewise.
15102 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
15103 (SECONDARY_MEMORY_NEEDED_RTX): Add define.
15104 * config/rs6000/dfp.md (movsd): New define_expand and splitter.
15105 (movsd_hardfloat): New define_insn.
15106 (movsd_softfloat): Likewise.
15107 (movsd_store): Likewise.
15108 (movsd_load): Likewise.
15109 (extendsddd2): Likewise.
15110 (extendsdtd2): Likewise.
15111 (truncddsd2): Likewise.
15112 (movdd_hardfloat64): Fixup comment.
15113 (UNSPEC_MOVSD_LOAD): New constant.
15114 (UNSPEC_MOVSD_STORE): Likewise.
15116 2008-01-26 Jakub Jelinek <jakub@redhat.com>
15119 * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
15121 (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
15122 (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
15123 (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
15124 and TRUTH_XOR_EXPR.
15126 2008-01-26 David Edelsohn <edelsohn@gnu.org>
15129 * config.gcc: Separate AIX 5.3 from AIX 6.1.
15130 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
15131 __LONGDOUBLE128 too.
15132 * config/rs6000/aix61.h: New file.
15134 2008-01-26 Richard Sandiford <rsandifo@nildram.co.uk>
15136 PR rtl-optimization/34959
15137 * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
15138 popcount and parity rtxes the same mode as their operand.
15139 Truncate or extend the result to the return value's mode
15142 2008-01-26 Richard Sandiford <rsandifo@nildram.co.uk>
15145 * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
15146 * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
15147 to GOT_VERSION_REGNUM.
15148 (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
15149 (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
15150 * config/mips/mips.c (mips_emit_call_insn): New function.
15151 (mips_call_tls_get_addr): Call mips_expand_call directly.
15152 (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
15154 (mips16_build_call_stub): Likewise. Return the call insn or null.
15155 (mips_expand_call): Update the call to mips16_build_call_stub
15156 accordingly and a remove redundant condition. Assert that MIPS16
15157 stubs do not use lazy binding. Use mips_emit_call_insn and return
15159 (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
15161 (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
15162 (mips_avoid_hazard): Remove hazard_set handling.
15163 * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
15164 (UNSPEC_RESTORE_GP): ...this.
15165 (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
15166 (FAKE_CALL_REGNO): Rename to...
15167 (GOT_VERSION_REGNUM): ...this.
15168 (type): Add "ghost" value. Add an associated insn reservation.
15169 (hazard_set): Remove.
15170 (exception_receiver): Rename to...
15171 (restore_gp): ...this and update the unspec identifier accordingly.
15172 (exception_receiver, nonlocal_got_receiver): New expanders.
15173 (load_call<mode>): Use GOT_VERSION_REGNUM. Don't set
15174 FAKE_CALL_REGNO. Remove hazard_set attribute.
15175 (set_got_version, update_got_version): New patterns.
15177 2008-01-26 Danny Smith <dannysmith@users.sourceforge.net>
15180 * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
15182 2008-01-25 Joseph Myers <joseph@codesourcery.com>
15185 * doc/install.texi2html: Generate gcc-vers.texi.
15187 2008-01-25 DJ Delorie <dj@redhat.com>
15189 * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
15191 2008-01-25 Joseph Myers <joseph@codesourcery.com>
15193 * config/c4x: Remove directory.
15194 * config.gcc (crx-*, mt-*): Mark obsolete.
15195 (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
15196 h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
15197 sh-*-rtemscoff*): Remove cases.
15198 * defaults.h (C4X_FLOAT_FORMAT): Remove.
15199 * real.c (encode_c4x_single, decode_c4x_single,
15200 encode_c4x_extended, decode_c4x_extended, c4x_single_format,
15201 c4x_extended_format): Remove.
15202 * real.h (c4x_single_format, c4x_extended_format): Remove.
15203 * doc/extend.texi (interrupt, naked): Remove mention of attributes
15205 (Pragmas): Remove comment about c4x pragmas.
15206 * doc/install.texi (c4x): Remove target-specific instructions.
15207 * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
15208 * doc/md.texi (Machine Constraints): Remove C4x documentation.
15209 * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
15210 refer to C4x source files as examples.
15211 (C4X_FLOAT_FORMAT): Remove documentation.
15213 2008-01-25 Bernd Schmidt <bernd.schmidt@analog.com>
15215 * config/bfin/bfin.c (override_options): Reorder tests so that
15216 flag_pic gets enabled for -msep-data.
15218 2008-01-25 Richard Guenther <rguenther@suse.de>
15220 PR middle-end/32244
15221 * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
15222 to its bitfield precision if required.
15224 2008-01-25 Jakub Jelinek <jakub@redhat.com>
15226 PR middle-end/33880
15227 * tree-nested.c (walk_omp_for): New function.
15228 (convert_nonlocal_reference, convert_local_reference): Call
15229 walk_omp_for on OMP_FOR.
15230 (convert_call_expr): Call walk_body on OMP_FOR's
15231 OMP_FOR_PRE_INIT_BODY.
15233 2008-01-25 Richard Guenther <rguenther@suse.de>
15235 PR tree-optimization/34966
15236 * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
15237 default defs and PHI_NODEs we have to insert after the
15238 defining statement.
15240 2008-01-24 Nick Clifton <nickc@redhat.com>
15242 * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
15243 Provide a default definition.
15244 (LIBGCC2_UNITS_PER_WORD): Likewise.
15246 * config/stormy16/stormy16.c: Include df.h for the prototype
15247 for df_regs_ever_live_p.
15248 (xstormy16_expand_builtin_va_start): Convert the stack offset
15249 into a component_ref and then use POINTER_PLUS_EXPR to add it
15250 to the incoming_virtual_args_rtx.
15251 (xstormy16_gimplify_va_arg_expr): Rename to
15252 xstormy16_gimplify_va_arg_expr.
15253 Use POINTER_PLUS_EXPR when performing pointer arithmetic.
15254 (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
15255 xstormy16_gimplify_va_arg_expr.
15256 Fix up some formatting issues.
15258 * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
15259 Move to predicates.md.
15260 (xs_hi_general_operand): Likewise.
15261 (xs_hi_nonmemory_operand): Likewise.
15262 * config/stormy16/predicates.md:
15263 (xstormy16_carry_plus_operand): New predicate.
15264 (xs_hi_general_operand): New predicate.
15265 (xs_hi_nonmemory_operand): New predicate.
15266 * config/stormy16/stormy16-protos.h:
15267 (xstormy16_carry_plus_operand): Delete prototype.
15268 (xs_hi_general_operand): Likewise.
15269 (xs_hi_nonmemory_operand): Likewise.
15271 * config/storm16/stormy16.md (addhi3): Remove earlyclobber
15272 modifiers as they are no longer needed and they can trigger
15273 reload spill failures.
15275 * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
15276 with a match_operand in order to help reload.
15278 * config/storm16/stormy16.md (movhi_internal): Replace 'r'
15279 constraint with 'e' for the 8th alternative as this version of
15280 the mov.w instruction only accepts the lower 8 registers.
15282 2008-01-25 Uros Bizjak <ubizjak@gmail.com>
15285 * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
15286 Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
15289 2008-01-25 Jakub Jelinek <jakub@redhat.com>
15291 PR middle-end/33333
15292 * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
15294 2008-01-25 Golovanevsky Olga <olga@il.ibm.com>
15296 * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
15298 (remove_structure): Update allocations list before removing structure.
15300 2008-01-25 Golovanevsky Olga <olga@il.ibm.com>
15302 * ipa-struct-reorg.c (is_safe_cond_expr,
15303 create_new_stmts_for_cond_expr): Use integer_zerop function,
15304 that recognize not only zero-pointer, but zero-integer too.
15306 2008-01-25 Ben Elliston <bje@au.ibm.com>
15309 * fixproto: Escape "." in sed expression that strips leading "./".
15311 2008-01-24 H.J. Lu <hongjiu.lu@intel.com>
15314 * gcc.c (SWITCH_OK): Removed.
15315 (SWITCH_LIVE): Changed to bit.
15316 (SWITCH_FALSE): Likewise.
15317 (SWITCH_IGNORE): Likewise.
15318 (switchstr): Change live_cond to unsigned int.
15319 (process_command): Replace SWITCH_OK with 0.
15320 (do_self_spec): Likewise.
15321 (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
15322 (give_switch): Likewise.
15323 (used_arg): Likewise.
15324 (do_spec_1): Set the SWITCH_IGNORE bit.
15325 (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
15326 bits. Set the SWITCH_LIVE bit.
15328 2008-01-24 Andreas Krebbel <krebbel1@de.ibm.com>
15330 * config/s390/s390.h (MOVE_RATIO): Define new target macro.
15332 2008-01-24 Richard Sandiford <rsandifo@nildram.co.uk>
15334 PR tree-optimization/34472
15335 * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
15336 parameter to a "bool *" and set *DATA to false if there is
15337 an unsafe access. Do not delete the structure here.
15338 (check_cond_exprs): Delete it here instead.
15339 (check_cond_exprs, exclude_cold_structs): Do not increase
15340 I when removing a structure.
15342 2008-01-24 Uros Bizjak <ubizjak@gmail.com>
15345 * config/i386/i386.c (ix86_expand_vector_init): Consider only
15346 CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
15348 2008-01-24 Jakub Jakub Jelinek <jakub@redhat.com>
15350 PR middle-end/34934
15351 * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
15352 a fixed vector for stack.
15354 2008-01-24 Ben Elliston <bje@au.ibm.com>
15357 * doc/gcc.texi (Software development): Add a direntry for g++.
15359 2008-01-23 Hans-Peter Nilsson <hp@axis.com>
15361 * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
15362 stale and straggling -fforce-addr comments above.
15364 * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
15366 * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
15367 * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
15369 2008-01-23 Michael Matz <matz@suse.de>
15372 * dwarf2out.c (force_type_die): Use modified_type_die instead of
15375 2008-01-23 Andreas Krebbel <krebbel1@de.ibm.com>
15377 * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
15378 malloc result type.
15380 2008-01-23 Anatoly Sokolov <aesok@post.ru>
15382 * config/avr/avr.c (avr_current_arch): New variable.
15383 (avr_arch_types): Add 'avr31' and 'avr51' entries.
15384 (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
15385 (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
15386 (avr_override_options): Init 'avr_current_arch'.
15387 (base_arch_s): Move from here...
15388 * config/avr/avr.h (base_arch_s): ... here. Add new members
15389 'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename
15390 'mega' to 'have_jmp_call'.
15391 (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__",
15392 "__AVR_HAVE_RAMPZ__", "__AVR_HAVE_ELPM__" and "__AVR_HAVE_ELPMX__"
15394 (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51'
15396 * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
15397 MULTILIB_MATCHES): (Ditto.).
15399 2008-01-23 Richard Guenther <rguenther@suse.de>
15401 PR middle-end/31529
15402 * cgraphunit.c (cgraph_reset_node): Always mark the node
15403 not reachable if it is not queued already.
15405 2008-01-23 Bernd Schmidt <bernd.schmidt@analog.com>
15407 * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
15408 * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
15409 (cputype_selected): New static variable.
15410 (bfin_handle_option): Set it if -mcpu is used.
15411 (override_option): Select default set of workarounds if no cpu type
15412 selected on the command line.
15413 (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
15415 From Michael Frysinger <michael.frysinger@analog.com>
15416 * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
15417 BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
15419 * config/bfin/elf.h (LIB_SPEC): Use proper linker script
15420 for bf547, bf523, bf524, and bf526.
15421 * config/bfin/bfin.c (bfin_cpus[]): Add bf547, bf523, bf524, and
15423 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
15424 __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
15425 __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
15426 __ADSPBF547__ and __ADSPBF54x__ for bf547.
15427 * doc/invoke.texi (Blackfin Options): Document that
15428 -mcpu now accept bf547, bf523, bf524, and bf526.
15430 2008-01-22 Eric Botcazou <ebotcazou@adacore.com>
15432 PR rtl-optimization/34628
15433 * combine.c (try_combine): Stop and undo after the first combination
15434 if an autoincrement side-effect on the first insn has effectively
15437 2008-01-22 David Edelsohn <edelsohn@gnu.org>
15440 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
15441 Offset addresses are not valid for Altivec or paired float modes.
15443 2008-01-22 Jakub Jelinek <jakub@redhat.com>
15446 * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
15447 if DECL_INITIAL (decl) is error_mark_node.
15450 * c-common.c (handle_vector_size_attribute): Only allow
15451 integral, scalar float and fixed point types. Handle OFFSET_TYPE
15452 the same way as pointer, array etc. types.
15453 * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
15456 * tree.c (build_type_attribute_qual_variant): Call
15457 build_qualified_type if attributes are equal, but quals are not.
15459 2008-01-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
15462 * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
15463 * flags.h (warn_strict_aliasing): Remove.
15464 (warn_strict_overflow): Remove.
15465 * opts.c (warn_strict_aliasing): Remove.
15466 (warn_strict_overflow): Remove.
15467 * c-opts.c (c_common_handle_option): -Wall only sets
15468 -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
15469 (c_common_post_options): Give default values to -Wstrict-aliasing
15470 and -Wstrict-overflow if they are uninitialized.
15471 * common.opt (Wstrict-aliasing): Specify Var and Init.
15472 (Wstrict-overflow): Likewise.
15474 2008-01-22 Kenneth Zadeck <zadeck@naturalbridge.com>
15476 PR rtl-optimization/26854
15477 PR rtl-optimization/34400
15478 PR rtl-optimization/34884
15479 * ddg.c (create_ddg_dep_from_intra_loop_link): Use
15481 * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
15482 (df_rd_bb_info.expanded_lr_out): Deleted
15483 * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
15484 * loop_iv.c (iv_analysis_loop_init): Ditto. * df-problems.c
15485 (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
15486 df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
15487 Removed code to allocate, initialize or free expanded_lr_out.
15488 (df_rd_bb_local_compute_process_def): Restructured to make more
15490 (df_rd_confluence_n): Removed code to no apply invalidate_by_call
15491 sets if the sets are being trimmed.
15493 2008-01-22 H.J. Lu <hongjiu.lu@intel.com>
15496 * configure.ac (ld_vers): Support GNU linker version xx.xx.*
15497 (as_vers): Likewise.
15498 * configure: Regenerated.
15500 2008-01-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
15502 PR middle-end/33092
15503 * tree-pass.h (pass_build_alias): New pass.
15504 * tree-ssa-alias.c (gate_build_alias): New.
15505 (pass_build_alias): New.
15506 * passes.c (init_optimization_passes): Add pass_build_alias after
15507 pass_create_structure_vars.
15509 2008-01-22 Wolfgang Gellerich <gellerich@de.ibm.com>
15511 * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
15512 Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
15513 (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
15514 S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
15515 (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
15516 S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
15517 (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
15518 S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
15519 (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
15520 (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
15521 (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
15522 (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
15523 * config/s390/s390.md (FP_ALL): New mode iterator.
15524 (_d): New mode attribute.
15525 ("*signbit<mode>2>"): Changed mode of first operand.
15526 ("isinf<mode>2"): Changed mode of first operand.
15527 ("*TDC_insn"): Adaptation for DFP modes.
15529 2008-01-22 Ben Elliston <bje@au.ibm.com>
15531 * tree.c (check_qualified_type): Improve function description.
15533 2008-01-21 Jason Merrill <jason@redhat.com>
15536 * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
15537 * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
15540 2008-01-21 DJ Delorie <dj@redhat.com>
15542 * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
15545 2008-01-21 Richard Guenther <rguenther@suse.de>
15547 PR middle-end/34856
15548 * tree-cfg.c (verify_expr): Allow all invariant expressions
15549 instead of just constant class ones as reference argument.
15550 * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
15551 like any other constant.
15552 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
15554 2008-01-21 H.J. Lu <hongjiu.lu@intel.com>
15556 * regmove.c (fixup_match_1): Update call crossed frequencies.
15558 2008-01-21 Richard Guenther <rguenther@suse.de>
15561 * tree-inline.c (setup_one_parameter): Deal with mismatched
15562 types using a VIEW_CONVERT_EXPR.
15564 2008-01-21 Alon Dayan <alond@il.ibm.com>
15565 Olga Golovanevsky <olga@il.ibm.com>
15567 PR tree-optimization/34701
15568 * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
15569 when the structure size is not a power of 2.
15571 2008-01-20 Kenneth Zadeck <zadeck@naturalbridge.com>
15573 * doc/install.texi: Add doc for --enable-checking=df.
15575 2008-01-20 Kaz Kojima <kkojima@gcc.gnu.org>
15577 PR rtl-optimization/34808
15578 * emit-rtl.c (try_split): Handle REG_RETVAL notes.
15580 2008-01-20 Richard Sandiford <rsandifo@nildram.co.uk>
15582 * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
15585 2008-01-19 Kenneth Zadeck <zadeck@naturalbridge.com>
15587 PR rtl-optimization/26854
15588 PR rtl-optimization/34400
15589 * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
15591 * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
15592 (df_rd_bb_info.expanded_lr_out): New.
15593 * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
15594 * loop_iv.c (iv_analysis_loop_init): Ditto.
15595 * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
15596 df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
15597 Added code to allocate, initialize or free expanded_lr_out.
15598 (df_rd_bb_local_compute_process_def): Restructured to make
15599 more understandable.
15600 (df_rd_confluence_n): Add code to do nothing with fake edges and
15601 code to no apply invalidate_by_call sets if the sets are being trimmed.
15602 (df_lr_local_finalize): Renamed to df_lr_finalize.
15603 (df_live_local_finalize): Renamed to df_live_finalize.
15605 2008-01-20 Richard Sandiford <rsandifo@nildram.co.uk>
15608 * config/mips/mips.md (div<mode>3): Use <recip_condition> when
15609 deciding whether to use reciprocal instructions.
15611 2008-01-19 Uros Bizjak <ubizjak@gmail.com>
15613 * dwarf2out.c (dwarf2out_switch_text_section): Do not call
15614 dwarf2out_note_section_used if cold_text_section is NULL.
15616 2008-01-19 Jakub Jelinek <jakub@redhat.com>
15618 PR gcov-profile/34610
15619 * tree-cfg.c (make_edges): Mark both outgoing edges from
15620 OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
15621 * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
15622 from OMP_FOR and OMP_CONTINUE outgoing edges.
15624 * tree-profile.c (tree_profiling): Return early if
15625 cfun->after_tree_profile != 0. Set cfun->after_tree_profile
15627 * omp-low.c (expand_omp_parallel): Copy after_tree_profile
15628 from cfun to child_cfun.
15629 * function.h (struct function): Add after_tree_profile bit.
15631 2008-01-19 Anatoly Sokolov <aesok@post.ru>
15633 * config/avr/avr.S (_exit): Disable interrupt.
15635 2008-01-18 Kenneth Zadeck <zadeck@naturalbridge.com>
15636 Steven Bosscher <stevenb.gcc@gmail.com>
15638 PR rtl-optimization/26854
15639 PR rtl-optimization/34400
15640 * df-problems.c (df_live_scratch): New scratch bitmap.
15641 (df_live_alloc): Allocate df_live_scratch when doing df_live.
15642 (df_live_reset): Clear the proper bitmaps.
15643 (df_live_bb_local_compute): Only process the artificial defs once
15644 since the order is not important.
15645 (df_live_init): Init the df_live sets only with the variables
15646 found live by df_lr.
15647 (df_live_transfer_function): Use the df_lr sets to prune the
15648 df_live sets as they are being computed.
15649 (df_live_free): Free df_live_scratch.
15651 2008-01-18 Ian Lance Taylor <iant@google.com>
15653 * common.opt: Add fmerge-debug-strings.
15654 * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
15655 flag_merge_debug_strings rather than flag_merge_constants.
15656 * doc/invoke.texi (Option Summary): Mention
15657 -fmerge-debug-strings.
15658 (Debugging Options): Document -fmerge-debug-strings.
15660 2008-01-18 Ian Lance Taylor <iant@google.com>
15663 * tree.h (DECL_IS_OPERATOR_NEW): Define.
15664 (struct tree_function_decl): Add new field operator_new_flag.
15665 * tree-inline.c (expand_call_inline): When inlining a call to
15666 operator new, force the return value to go into a variable, and
15667 set DECL_NO_TBAA_P on that variable.
15668 * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
15670 2008-01-18 Uros Bizjak <ubizjak@gmail.com>
15673 * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
15674 DWARF2_DEBUGGING_INFO.
15675 (dwarf2out_note_section_used): Ditto. Add prototype.
15676 (have_multiple_function_sections, text_section_used,
15677 cold_text_section_used, *cold_text_sections): Move declarations
15680 2008-01-17 Bob Wilson <bob.wilson@acm.org>
15682 * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
15683 field and add signal_ra.
15684 * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
15685 assignments to frame state pc. Move end of stack check after
15686 MD_FALLBACK_FRAME_STATE_FOR.
15687 (uw_update_context_1): Use frame state signal_regs if set, instead
15688 of checking signal_frame flag.
15689 (uw_update_context): Use frame state signal_ra if set.
15690 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
15691 * config/xtensa/linux-unwind.h: New file.
15693 2008-01-18 Bernhard Fischer <aldot@gcc.gnu.org>
15695 * modulo-sched.c (get_sched_window): Fix comment typo.
15697 2008-01-17 Andrew MacLeod <amacleod@redhat.com>
15699 PR tree-optimization/34648
15700 * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
15702 2008-01-17 Anatoly Sokolov <aesok@post.ru>
15704 * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
15705 * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
15707 2008-01-17 Seongbae Park <seongbae.park@gmail.com>
15709 PR rtl-optimization/34400
15710 * df-core.c (df_worklist_dataflow_overeager,
15711 df_worklist_dataflow_doublequeue): New functions.
15712 (df_worklist_dataflow): Two different worklist solvers.
15713 * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
15716 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
15719 * doc/invoke.texi: Document the dependence on pthread for fopenmp
15720 and ftree-parallelize-loops.
15722 2008-01-17 Mircea Namolaru <namolaru@il.ibm.com>
15724 PR rtl-optimization/34826
15725 * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
15727 2008-01-17 Andreas Krebbel <krebbel1@de.ibm.com>
15729 * global.c (find_reg): Mark the eh regs as used if necessary.
15730 * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
15731 * ra.h (struct allocno): no_eh_reg field added. Changed
15732 no_stack_reg type to bitfield.
15734 2008-01-17 Eric Botcazou <ebotcazou@adacore.com>
15736 * tree.c (substitute_in_expr): Add missing 'break'.
15738 2008-01-17 Richard Guenther <rguenther@suse.de>
15740 PR tree-optimization/34825
15741 * tree-ssa-math-opts.c (is_division_by): Do not recognize
15742 x / x as division to handle.
15744 2008-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15746 * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
15747 "-pthread" is specified.
15748 * pa-hpux11.h (LIB_SPEC): Likewise.
15750 2008-01-16 Janis Johnson <janis187@us.ibm.com>
15751 Peter Bergner <bergner@vnet.ibm.com>
15753 PR rtl-optimization/33796
15754 * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
15756 2008-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15758 PR libgfortran/34699
15759 * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
15761 * pa-hpux10.h (LINK_SPEC): Likewise.
15762 * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
15764 2008-01-16 Richard Guenther <rguenther@suse.de>
15766 PR middle-end/32628
15767 * fold-const.c (fold_convert_const_int_from_int): Do not
15768 set overflow if that occured only because of a sign extension
15769 change when converting from/to a sizetype with the same
15770 precision and signedness.
15772 2008-01-16 Uros Bizjak <ubizjak@gmail.com>
15775 * dwarf2out.c (output_call_frame_info): Move output of FDE initial
15776 location address to the correct place. Update copyright year.
15778 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
15780 * lambda-code.c (lambda_transform_legal_p): Handle the case of
15781 no dependences in the dependence_relations vector.
15783 2008-01-16 Jan Hubicka <jh@suse.cz>
15785 PR rtl-optimization/31396
15786 * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
15787 * cfg.c (dump_reg_info): Print it.
15788 * regs.h (struct reg_info_t): add freq_calls_crossed.
15789 (REG_FREQ_CALLS_CROSSED): New macro.
15790 * global.c (global_alloc): Compute freq_calls_crossed for allocno.
15791 (find_reg): Update call of CALLER_SAVE_PROFITABLE.
15792 * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
15793 regmove_optimize): Update call crossed frequencies.
15794 * local-alloc.c (struct qty): Add freq_calls_crossed.
15795 (alloc_qty): Copute freq_calls_crossed.
15796 (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
15797 (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
15798 * ra.h (struct allocno): Add freq_calls_crossed.
15800 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
15802 * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
15803 libgomp when compiling with ftree-parallelize-loops.
15804 (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
15806 2008-01-16 Richard Guenther <rguenther@suse.de>
15808 PR tree-optimization/34769
15809 * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
15810 * tree.c (int_cst_value): Instead make this function more
15811 permissive in what it accepts as valid input. Document this
15812 function always sign-extends the value.
15814 2008-01-16 Jakub Jelinek <jakub@redhat.com>
15815 Richard Guenther <rguenther@suse.de>
15818 * gimplify.c (fold_indirect_ref_rhs): Rename to ...
15819 (gimple_fold_indirect_ref_rhs): ... this.
15820 (gimple_fold_indirect_ref): New function with foldings
15821 that preserve lvalueness.
15822 (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
15823 * tree-flow.h (gimple_fold_indirect_ref): Declare.
15824 * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
15825 to fold an INDIRECT_REF, fall back to the old use of
15826 fold_indirect_ref_1.
15828 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
15830 * tree-data-ref.c (subscript_dependence_tester_1): Call
15831 free_conflict_function.
15832 (compute_self_dependence): Same.
15834 2008-01-16 Uros Bizjak <ubizjak@gmail.com>
15837 * debug.h (dwarf2out_switch_text_section): Move declaration from ...
15838 * dwarf2out.c (dwarf2out_switch_text_section): ... here. Make
15840 * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
15841 Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
15842 for DWARF2_UNWIND_INFO targets.
15844 2008-01-16 Richard Guenther <rguenther@suse.de>
15847 * c-typeck.c (common_pointer_type): Do not merge inconsistent
15848 type qualifiers for function types.
15850 2008-01-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
15852 * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
15853 loop_iterator li from previous commit.
15855 2008-01-15 Sebastian Pop <sebastian.pop@amd.com>
15857 * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
15859 2008-01-12 Sebastian Pop <sebastian.pop@amd.com>
15861 * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
15862 (parallelize_loops): Don't parallelize irreducible components.
15864 2008-01-14 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
15867 * c-opts (c_common_post_options): Do not enable CPP
15868 flag_pedantic_errors by default.
15870 2008-01-14 Eric Botcazou <ebotcazou@adacore.com>
15872 PR rtl-optimization/31944
15873 * cse.c (remove_pseudo_from_table): New function.
15874 (merge_equiv_classes): Use above function to remove pseudo-registers.
15875 (invalidate): Likewise.
15877 2008-01-13 Richard Guenther <rguenther@suse.de>
15879 PR middle-end/34601
15880 * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
15881 instead of TYPE_MODE to deal with calls from expand_one_error_var.
15883 2008-01-13 Uros Bizjak <ubizjak@gmail.com>
15885 * gcse.c (cprop_jump): Call validate_unshare_change instead of
15886 validate_change to unshare the source of the PC set.
15888 2008-01-12 Jan Hubicka <jh@suse.cz>
15890 PR middle-end/32135
15891 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
15892 references above array bounds. This might trigger bounds checks for
15893 pointers to arrays.
15895 2008-01-12 Sebastian Pop <sebastian.pop@amd.com>
15897 * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
15898 new_replaceable_dependencies.
15900 2008-01-12 Doug Kwan <dougkwan@google.com>
15902 * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
15903 instead of OPT_Wreturn_type in warning due to ignored return type
15905 * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
15906 options included in -Wextra.
15907 * c.opt: New option -Wignored_qualifiers.
15908 * doc/invoke.texi (Warning Options, -Wextra): Add new option
15909 -Wignore_qualifiers.
15910 (-Wignored-qualifiers): Document.
15911 (-Wreturn-type): Remove description of functionality now handled
15912 by -Wignored-qualifiers.
15914 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
15917 * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
15918 NOP_EXPR if it is between integral types with the same precision.
15920 2008-01-12 Jan Hubicka <jh@suse.cz>
15923 * invoke.texi (max-inline-recursive-depth): Fix default value.
15925 2008-01-12 Zdenek Dvorak <ook@ucw.cz>
15927 * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
15930 2008-01-11 Bob Wilson <bob.wilson@acm.org>
15932 * config/xtensa/xtensa.c (override_options): Set flag_shlib.
15934 2008-01-11 James E. Wilson <wilson@specifix.com>
15937 * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
15939 2008-01-11 Anatoly Sokolov <aesok@post.ru>
15941 * config/avr/avr.c (expand_prologue, expand_epilogue): Don't
15942 save/restore frame pointer register and don't use 'call-prologues'
15943 optimization in function with "OS_task" attribute.
15945 2008-01-11 Eric Botcazou <ebotcazou@adacore.com>
15947 PR middle-end/31309
15948 * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
15949 when copying to memory.
15951 2008-01-11 Steven Bosscher <stevenb.gcc@gmail.com>
15953 PR rtl-optimization/30905
15954 * cfgcleanup.c: Include dce.h
15955 (crossjumps_occured): New global variable.
15956 (try_crossjump_bb): Exit loop after finding a fallthru edge.
15957 If something changed, set crossjumps_occured to true.
15958 (try_optimize_cfg): Clear crossjumps_occured at the beginning.
15959 Don't add/remove fake edges to exit here...
15960 (cleanup_cfg): ...but do it here, when crossjumping.
15961 Run a fast DCE when successful crossjumps occured in the latest
15962 iteration of try_optimize_cfg.
15964 2008-01-11 Richard Guenther <rguenther@suse.de>
15966 * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
15967 (struct vn_unary_op_s): Likewise.
15968 (vn_reference_insert): Free old reference on hash collision.
15970 2008-01-10 Raksit Ashok <raksit@google.com>
15972 PR rtl-optimization/27971
15973 * combine.c (find_split_point): Split PLUS expressions which are
15974 inside a MEM rtx, and whose first operand is complex.
15976 2008-01-10 DJ Delorie <dj@redhat.com>
15978 * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
15979 (m32c_hard_regno_nregs): ...this, which is now a wrapper.
15980 (m32c_hard_regno_ok): Call the underlying function.
15982 2008-01-10 Richard Guenther <rguenther@suse.de>
15984 PR middle-end/34683
15985 * tree-cfg.c (tree_merge_blocks): Do not go through the
15986 full-blown folding and stmt updating path if we just deal
15987 with virtual operands.
15988 * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
15989 test for abnormal SSA_NAMEs.
15991 2008-01-10 Andreas Krebbel <krebbel1@de.ibm.com>
15993 PR middle-end/34641
15994 * reload.c (push_reload): Add assertions. All constants from
15995 reg_equiv_constant should have been used for replacing the respective
15997 (find_reloads_address): Invoke find_reloads_address_part for
15998 constant taken from the reg_equiv_constant array.
16000 2008-01-10 Steven Bosscher <stevenb.gcc@gmail.com>
16002 * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
16003 field (valnum) the first in the struct. Replace bools with
16006 2008-01-10 Richard Guenther <rguenther@suse.de>
16008 PR tree-optimization/34651
16009 * tree-sra.c (sra_build_assignment): Sanitize. Use the correct
16010 types and ordering for masking and converting.
16012 2008-01-09 Sebastian Pop <sebastian.pop@amd.com>
16014 PR tree-optimization/34017
16015 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
16016 also for PHI_NODE expressions.
16018 2008-01-09 Jan Hubicka <jh@suse.cz>
16020 PR tree-optimization/34708
16021 * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
16022 based on number of case labels.
16023 (init_inline_once): Remove switch_cost.
16024 * tree-inline.h (eni_weights_d): Remove switch_cost.
16026 2008-01-09 Richard Guenther <rguenther@suse.de>
16027 Andrew Pinski <andrew_pinski@playstation.sony.com>
16029 PR middle-end/30132
16030 * gimplify.c (gimplify_cond_expr): Do not create an addressable
16031 temporary if an rvalue is ok or an lvalue is not required.
16033 2008-01-09 Richard Guenther <rguenther@suse.de>
16035 PR middle-end/34458
16036 * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
16037 adjust return type.
16039 2008-01-09 Richard Guenther <rguenther@suse.de>
16041 PR middle-end/34679
16042 * tree.c (host_integerp): Check for sizetype only if the
16043 type is an integer type.
16045 2008-01-09 Steven Bosscher <stevenb.gcc@gmail.com>
16048 * opts.c (decode_options): Disable inlining of functions called
16049 once if not in unit-at-a-time mode.
16051 2008-01-09 Alexandre Oliva <aoliva@redhat.com>
16053 * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
16055 2008-01-08 Richard Guenther <rguenther@suse.de>
16057 PR middle-end/31863
16058 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
16059 out early if the result will be unused.
16061 2008-01-08 Uros Bizjak <ubizjak@gmail.com>
16066 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
16067 * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
16070 2008-01-08 Jan Sjodin <jan.sjodin@amd.com>
16072 * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
16073 for vectorization tuned.
16075 2008-01-08 Richard Guenther <rguenther@suse.de>
16077 PR tree-optimization/34683
16078 * tree-ssa-operands.c (operand_build_cmp): Export.
16079 * tree-ssa-operands.h (operand_build_cmp): Declare.
16080 * tree-vn.c (vuses_compare): Remove.
16081 (sort_vuses): Use operand_build_cmp.
16082 (sort_vuses_heap): Likewise.
16083 * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
16084 to re-use old VEC if available. Do not sort already sorted VUSEs.
16085 (vdefs_to_vec): Do not sort already sorted VDEFs.
16087 2008-01-08 Jakub Jelinek <jakub@redhat.com>
16089 PR middle-end/34694
16090 * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
16092 2008-01-08 Uros Bizjak <ubizjak@gmail.com>
16095 * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
16096 limitations of reciprocal sequences on x86 targets.
16098 2008-01-08 Richard Guenther <rguenther@suse.de>
16100 PR tree-optimization/34683
16101 * tree-flow-inline.h (var_ann): Remove overzealous asserts.
16103 2008-01-07 Jakub Jelinek <jakub@redhat.com>
16106 * config/darwin.c (darwin_mergeable_string_section): Don't use
16107 .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
16109 2008-01-07 Uros Bizjak <ubizjak@gmail.com>
16112 * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
16113 negxf2. Macroize expander using X87MODEF mode iterator. Change
16114 predicates of op0 and op1 to register_operand.
16115 (abs<mode>2): Rename from abssf2, absdf2 and negxf2. Macroize
16116 expander using X87MODEF mode iterator. Change predicates of
16117 op0 and op1 to register_operand.
16118 ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
16119 corresponding patterns and macroize using MODEF macro. Change
16120 predicates of op0 and op1 to register_operand and remove
16121 "m" constraint. Disparage "r" alternative with "!".
16122 ("*absneg<mode>2_i387"): Rename from corresponding patterns and
16123 macroize using X87MODEF macro. Change predicates of op0 and op1
16124 to register_operand and remove "m" constraint. Disparage "r"
16125 alternative with "!".
16126 (absneg splitter with memory operands): Remove.
16127 ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
16128 patterns and macroize using X87MODEF mode iterator.
16129 * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
16130 Change predicate of op1 to register_operand.
16131 * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
16132 for memory operands.
16134 2008-01-07 Nathan Froyd <froydnj@codesourcery.com>
16136 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
16138 2008-01-07 Richard Guenther <rguenther@suse.de>
16140 * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
16143 2008-01-07 Richard Guenther <rguenther@suse.de>
16145 PR tree-optimization/34683
16146 * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
16147 VOPs of the needed size to save memory. Use VEC_quick_push
16148 to save compile-time.
16149 (vdefs_to_vec): Likewise.
16151 2008-01-07 Sa Liu <saliu@de.ibm.com>
16153 * config/spu/spu.md (divdf3): Genetate inline code for double
16154 division. The implementation doesn't handle INF or NAN, therefore it
16155 only applies when -ffinite-math-only is given.
16157 2008-01-06 Paolo Carlini <pcarlini@suse.de>
16160 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
16161 * doc/cpp.texi ([Common Predefined Macros]): Document.
16163 2008-01-06 Uros Bizjak <ubizjak@gmail.com>
16165 * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
16166 order to use commutative addition instead of subtraction.
16168 2008-01-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
16169 Mircea Namolaru <namolaru@il.ibm.com>
16170 Vladimir Yanovsky <yanov@il.ibm.com>
16171 Revital Eres <eres@il.ibm.com>
16173 PR tree-optimization/34263
16174 * tree-outof-ssa.c (process_single_block_loop_latch,
16175 contains_tree_r): New functions.
16176 (analyze_edges_for_bb): Call process_single_block_loop_latch
16177 function to empty single-basic-block latch block if possible.
16179 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
16181 * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
16183 (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
16185 2008-01-05 Richard Sandiford <rsandifo@nildram.co.uk>
16187 * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
16189 2008-01-05 Richard Sandiford <rsandifo@nildram.co.uk>
16191 * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
16193 2008-01-05 Jakub Jelinek <jakub@redhat.com>
16195 PR tree-optimization/34618
16196 * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
16199 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
16202 * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
16203 in the call to gen_rtx_NE. Remove unneeded VECTOR_MODE_P check.
16204 Update copyright year.
16206 * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
16207 Update copyright year.
16208 * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
16211 2008-01-05 Zhouyi Zhou <zhouzhouyi@FreeBSD.org>
16213 * tree-vrp.c (find_conditional_asserts): Remove redundant check that
16214 edge does not point to current bb before changing need_assert.
16216 2008-01-04 Richard Guenther <rguenther@suse.de>
16218 PR middle-end/34029
16219 * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
16220 for verifying purposes if they are is_gimple_min_invariant.
16222 2008-01-04 Aldy Hernandez <aldyh@redhat.com>
16224 PR tree-optimization/34448
16225 PR tree-optimization/34465
16226 * gimplify.c (gimplify_init_constructor): Add new parameter
16227 notify_temp_creation. Use it.
16228 (gimplify_modify_expr_rhs): Take volatiles into account when
16229 optimizing constructors.
16230 Do not optimize constructors if gimplify_init_constructor will dump to
16232 * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
16233 * gcc.c-torture/compile/pr34448.c: New.
16235 2008-01-04 Jakub Jelinek <jakub@redhat.com>
16237 PR gcov-profile/34609
16238 * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
16239 return_slot if result is TREE_ADDRESSABLE.
16241 2008-01-04 Richard Sandiford <rsandifo@nildram.co.uk>
16243 * config/mips/mips.md (sqrt_condition): Tweak comment.
16244 (recip_condition): Likewise. Require TARGET_FLOAT64 for DFmode.
16246 2008-01-03 Tom Tromey <tromey@redhat.com>
16249 * c-common.c (c_type_hash): Handle VLAs.
16251 2008-01-03 Jan Hubicka <jh@suse.cz>
16253 PR tree-optimization/31081
16254 * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
16255 0 when inlining and not inlining to first basic block.
16256 (remap_decl): When var is initialized to 0, don't set default_def.
16257 (expand_call_inline): Set entry_bb.
16258 * tree-inline.h (copy_body_data): Add entry_bb.
16260 2008-01-03 Jakub Jelinek <jakub@redhat.com>
16263 * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
16266 PR tree-optimization/29484
16267 * tree-inline.c (inline_forbidden_p_2): New function.
16268 (inline_forbidden_p): Disallow inlining if some static var
16269 has an address of a local LABEL_DECL in its initializer.
16270 * doc/extend.texi (Labels as Values): Document &&foo behaviour
16273 2008-01-03 Sebastian Pop <sebastian.pop@amd.com>
16275 PR tree-optimization/34635
16276 * tree-data-ref.c (add_other_self_distances): Make sure that the
16277 evolution step is constant.
16279 2008-01-03 Jakub Jelinek <jakub@redhat.com>
16281 PR middle-end/34608
16282 * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
16284 2008-01-02 Richard Sandiford <rsandifo@nildram.co.uk>
16286 * tree-sra.c (scalarize_init): Insert the generate_element_init
16287 statements after the generate_element_zero statements.
16289 2008-01-02 Richard Guenther <rguenther@suse.de>
16291 PR middle-end/34093
16292 PR middle-end/31976
16293 * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
16294 for very large number of operands instead of ICEing.
16296 2008-01-02 Arthur Norman <acn1@cam.ac.uk>
16299 * config/i386/i386.c (ix86_expand_prologue): Save red-zone
16300 while stack probing.
16302 2008-01-01 Douglas Gregor <doug.gregor@gmail.com>
16304 * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
16307 2008-01-01 Volker Reichelt <v.reichelt@netcologne.de>
16309 PR libmudflap/26442
16310 * tree-mudflap.c (mx_register_decls): Guard warning by
16311 !DECL_ARTIFICIAL check.
16313 2008-01-01 Jakub Jelinek <jakub@redhat.com>
16315 * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
16316 sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
16317 sse5_perm<mode>): Fix constraints.