1 2008-07-26 Olivier Hainque <hainque@adacore.com>
3 * collect2.c (symkind): New enum. Symbol kinds we care about.
4 (is_ctor_dtor): Return symkind instead of int. Adjust prototype,
5 code and head comment accordingly.
6 (scan_prog_file): Use symkind names instead of bare integers.
8 2008-07-25 Jan Hubicka <jh@suse.cz>
10 * cgraph.c (cgraph_function_possibly_inlined_p): Do not rely on DECL_INLINE.
11 * cgraphunit.c (record_cdtor_fn): Do not initialize DECL_INLINE
12 (cgraph_preserve_function_body_p): Do not rely on DECL_INLINE.
13 * dojump.c (clear_pending_stack_adjust): Likewise.
14 * print-tree.c (print_node): Ignore DECL_INLINE.
15 * tree-inline.c (inlinable_function_p): Likewise.
17 2008-07-25 Michael Meissner <gnu@the-meissners.org>
19 * doc/extend.texi (hot attribute): Document that the hot attribute
20 turns on -O3 for some ports.
21 (cold attribute): Document that the cold attribute turns on -Os
24 * doc/tm.texi (OPTIMIZATION_OPTIONS): Update documentation to
25 reflect function specific option support.
27 * target.h (struct target_option_hooks): Add fields to say whether
28 the cold attribute implies -Os and the hot attribute implies -O3.
30 * target-def.h (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION):
31 By default, do not turn on -Os for cold functions.
32 (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): By default, do
33 not turn on -O3 for hot functions.
35 * c-common.c (handle_hot_attribute): Use target hook to determine
36 if hot functions should enable -O3.
37 (handle_cold_attribute): Use target hook to determine if cold
38 functions should enable -Os.
40 * config/i386/i386.c (ix86_target_string): Add -m3dnowa support.
41 (override_options): Move disable scheduling to
43 (optimization_options): Disable scheduling here, not
45 (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
46 (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
48 * config/ia64/ia64.c (ia64_override_options): Move setting
49 scheduling flags to ia64_optimization_options.
50 (ia64_optimization_options): Disable scheduling options here, and
51 not in ia64_override_options.
52 (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
53 (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
55 2008-07-25 H.J. Lu <hongjiu.lu@intel.com>
58 * config/i386/i386.c (override_options): Don't clear TARGET_CMOVE.
60 2008-07-25 Martin Jambor <mjambor@suse.cz>
62 PR tree-optimization/36926
63 * ipa-prop.c (ipa_analyze_call_uses): Call
64 ipa_is_ssa_with_stmt_def instead of SSA_NAME_IS_DEFAULT_DEF.
66 2008-07-25 Joseph Myers <joseph@codesourcery.com>
68 * config/arm/iwmmxt.md (movv8qi_internal, movv4hi_internal,
69 movv2si_internal): Add mem = reg alternative.
71 2008-07-25 Andreas Tobler <a.tobler@schweiz.org>
74 * config/sparc/sparc.h (DEFAULT_PCC_STRUCT_RETURN): Define
75 DEFAULT_PCC_STRUCT_RETURN to 127.
77 2008-07-24 Jan Hubicka <jh@suse.cz>
79 * cgraphbuild.c (record_reference): Drop non-unit-at-a-time code.
80 (build_cgraph_edges): Likewise.
81 * cgraph.c (cgraph_node): Do not update assembler hash.
82 (cgraph_remove_node): Drop non-unit-at-a-time code.
83 * tree-pass.h (pass_O0_always_inline): Remove.
84 * ipa-reference.c (gate_reference): Remove unit-at-a-time check.
85 * toplev.c (process_options): Flag unit-at-a-time does not imply
87 * cgraphunit.c: Update comments.
88 (decide_is_function_needed): Drop non-unit-at-a-time mode.
89 (cgraph_assemble_pending_functions): Remove.
90 (cgraph_reset_node): Drop non-unit-at-a-time code.
91 (cgraph_finalize_function): Likewise.
92 (cgraph_analyze_function): Likewise.
93 (cgraph_finalize_compilation_unit): Likewise.
94 (cgraph_expand_function): Likewise.
95 (cgraph_optimize): Likesise.
96 (save_inline_function_body): Likewise.
97 * ipa-pure-const.c (gate_pure_const): Drop flag_unit_at_a_time check.
98 * tree-ssa-alias.c (maybe_be_aliased): Likewise.
99 * ipa-inline.c: Update comments.
100 (enum inlining_mode): remove INLINE_SPEED.
101 (cgraph_clone_inlined_nodes): Drop unit-at-a-time check.
102 (cgraph_mark_inline_edge): Likewise.
103 (try_inline): Likewise.
104 (cgraph_decide_inlining_incrementally): Likewise.
105 (cgraph_gate_inlining): Remove.
106 (cgraph_early_inlining): Remove flag_unit_at_a_time checks.
107 (cgraph_gate_early_inlining): Likewise.
108 (gate_inline_passes): Remove.
109 (pass_inline_parameters, pass_ipa_inline): Remove gates.
110 (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
111 pass_O0_always_inline): Remove.
112 * c-pch.c (c_pch_matching): Remove -funit-at-a-time.
113 * dwarf2out.c (reference_to_unused): Remove flag_unit_at_a_time check.
114 * opts.c (no_unit_at_a_time_default): Remove.
115 (decode_options): Remove flag_unit_at_a_time reset and warning.
116 * opts.h (no_unit_at_a_time_default): Remove.
117 * c-decl.c (diagnose_mismatched_decls): Do not require inline keyword
118 early in GNU dialect.
119 (merge_decls): Update comment; drop unit-at-a-time check.
120 (finish_decl): Likewise.
121 (grok_declaration): Remove flag_inline_trees code.
122 (finish_functions): Return on function returning non-void on all
124 * ipa-tye-escape.c (gate_type_escape_vars): Remove.
125 * cfgexpand.c (expand_one_static_var): Remove.
126 (expand_one_var): Remove expand_one_static_var call.
127 (expand_used_vars_for_block): Remove flag_unit_a_time check.
128 * c-opts.c (c_common_post_options): Remove flag_inline_trees code
129 and flag_unit_at_a-time compatibility checks.
130 * varasm.c (assemble_alias): Remove flag_unit_at_a_time check.
131 * tree-inline.c (flag_inline_trees): Remove.
132 (inlinable_function_p): Don't check it.
133 (expand_call_inline): Remove non-unit-at-a-time code.
134 * tree-inline.h (flag_inline_trees): Remove.
135 * tree-optimize.c (execute_early_local_optimizations): Remove
136 unit-at-a-time checks.
137 (tree_rest_of_compilation): Likewise.
138 * combine.c (setup_incoming_promotions): Likewise.
139 * tree-profile.c (tree_gen_ic_func_profiler): Likewise.
140 * tree-ssa-structalias.c (delete_points_to_sets): Likewise.
141 * passes.c (pass_inline_parameters): Update comments; remove
142 O0_alwaysinline pass.
143 (execute_one_ipa_transform_pass): Do not reset in_gimple_form.
144 (execute_one_pass): Likewise.
145 * i386.c (ix86_function_regparm): Remove unit-at-a-time check.
146 (ix86_function_sseregparm): Likewise.
147 * arm.c (arm_function_in_section_p): Likewise.
148 * bfin.c (bfin_load_pic_reg, bfin_function_ok_for_sibcall): Likewise.
149 * varpool.c: Update comments.
150 (decide_is_variable_needed): Remove unit-at-a-time checks.
151 (varpool_finalize_decl): Likewise.
153 2008-07-24 Kaz Kojima <kkojima@gcc.gnu.org>
155 * config/sh/sh.h (OPTIMIZATION_OPTIONS): Set flag_omit_frame_pointer
157 (OVERRIDE_OPTIONS): Check if flag_omit_frame_pointer is equal
160 2008-07-24 Kai Tietz <kai.tietz@onevision.com>
162 * config/i386/i386.c (get_dllimport_decl): Treat user_label_prefix for
163 imp symbol extension.
165 2008-07-23 Ian Lance Taylor <iant@google.com>
167 * tree-vrp.c (infer_value_range): Ignore asm statements when
168 looking for memory accesses for -fdelete-null-pointer-checks.
170 2008-07-24 Ben Elliston <bje@au.ibm.com>
172 * config/spu/spu-c.c (__vector_keyword): New variable.
173 (vector_keyword): Likewise.
174 (spu_categorize_keyword): New function.
175 (spu_macro_to_expand): Likewise.
176 (spu_cpu_cpp_builtins): Enable context-sensitive macros if not
177 compiling an ISO C dialect.
179 2008-07-24 Ben Elliston <bje@au.ibm.com>
181 * config/rs6000/rs6000-c.c: Move GTY(()) markers to match
184 2008-07-23 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
186 * configure: Regenerate.
187 * configure.ac: Require texinfo 4.7.
188 * doc/install.texi: Document texinfo 4.7 requirement.
190 2008-07-23 Martin Jambor <mjambor@suse.cz>
192 * ipa-cp.c (ipcp_print_edge_profiles): Test for node->analyzed
193 rather than for DECL_SAVED_TREE.
194 * ipa-prop.c: Include diagnostic.h.
195 (ipa_check_stmt_modifications): Check LHS of GIMPLE_MODIFY_EXPRs
197 (ipa_detect_param_modifications): Function rewritten from scratch.
198 (ipa_compute_jump_functions): Changed accesses to modification flags.
199 (ipa_free_node_params_substructures): Update flags destruction.
200 (ipa_node_duplication_hook): Update flags duplication.
201 (ipa_print_all_params_modified): Updated flag access.
202 * ipa-prop.h (struct ipa_param_flags): New structure.
203 (struct ipa_node_params): New field modification_analysis_done,
204 modified_flags changed into param_flags.
205 (ipa_is_ith_param_modified): Changed to use new flags.
206 * Makefile.in (ipa-prop.o): Add $(DIAGNOSTIC_H) to dependencies.
208 * ipa-prop.c (ipa_print_all_jump_functions): Moved here from
209 ipa-cp.c and split into two functions.
210 (ipa_print_node_jump_functions): New function.
211 (compute_scalar_jump_functions): New function.
212 (type_like_member_ptr_p): New function.
213 (compute_pass_through_member_ptrs): New function.
214 (fill_member_ptr_cst_jump_function): New function.
215 (determine_cst_member_ptr): New function.
216 (compute_cst_member_ptr_arguments): New function.
217 (ipa_compute_jump_functions): Complete rewrite.
218 * ipa-prop.h (enum jump_func_type): Make explicit that we depend
219 on IPA_UNKNOWN being zero. Added value IPA_CONST_MEMBER_PTR.
220 (struct ipa_member_ptr_cst): New structure.
221 (union jump_func_value): New field member_cst.
222 * ipa-cp.c (ipcp_lat_is_insertable): New function.
223 (ipcp_lattice_from_jfunc): Produces bottom lattices for unhandled
225 (ipcp_print_all_lattices): Slight fprintf rearrangement.
226 (ipcp_print_all_structures): Call ipa_print_all_jump_functions
227 instead of ipcp_print_all_jump_functions.
228 (ipcp_insert_stage): Use ipcp_lat_is_insertable, create replace maps
229 only for replacable scalars.
231 * doc/invoke.texi (Optimize options): Add description of
233 * common.opt (flag_indirect_inlining): New flag.
234 * opts.c (decode_options): Set flag_indirect_inlining when
237 * ipa-inline.c: Include ipa-prop.h.
238 (inline_indirect_intraprocedural_analysis): New function.
239 (inline_generate_summary): Allocate parameter and argument info
240 structures, call inline_indirect_intraprocedural_analysis on each
241 node when doing indirect inlining and deallocate indirect inlining
242 data structures in the end.
243 * ipa-prop.c (ipa_create_param_decls_array): Return if already done.
244 (free_all_ipa_structures_after_iinln): New function.
245 (free_all_ipa_structures_after_ipa_cp): Checks whether iinln will be
247 * Makefile.in (ipa-inline.o): Added $(IPA_PROP_H) to dependencies.
249 * cgraphbuild.c (compute_call_stmt_bb_frequency): New function.
250 (build_cgraph_edges): Call compute_call_stmt_bb_frequency instead
251 of computing the frequency separately.
252 (rebuild_cgraph_edges): Call compute_call_stmt_bb_frequency instead
253 of computing the frequency separately.
254 * ipa-cp.c (ipcp_print_all_structures): Replace a call to
255 ipa_print_all_param_modified with a call to ipa_print_all_param_flags.
256 * ipa-prop.c (ipa_get_member_ptr_load_param): New function.
257 (ipa_get_stmt_member_ptr_load_param): New function.
258 (ipa_is_ssa_with_stmt_def): New function.
259 (ipa_note_param_call): New function.
260 (ipa_analyze_call_uses): New function.
261 (ipa_analyze_stmt_uses): New function.
262 (ipa_analyze_params_uses): New function.
263 (ipa_free_node_params_substructures): Also free the param_calls linked
265 (ipa_node_duplication_hook): Also duplicate the param_calls linked list.
266 (ipa_print_node_param_flags): New function.
267 (ipa_print_all_params_modified): Renamed to ipa_print_all_param_flags.
268 (ipa_print_all_param_flags): Calls ipa_print_node_param_flags.
269 * ipa-prop.h (struct ipa_param_flags): New field called.
270 (struct ipa_param_call_note): New structure.
271 (struct ipa_node_params): New fields param_calls and
273 (ipa_is_ith_param_called): New function.
274 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
275 ipa_analyze_params_uses and dump parameter flags.
277 * ipa-inline.c (cgraph_decide_recursive_inlining): Call
278 ipa_propagate_indirect_call_infos if performing indirect inlining,
279 pass a new parameter new_edges to it.
280 (add_new_edges_to_heap): New fucntion.
281 (cgraph_decide_inlining_of_small_functions): New vector
282 new_indirect_edges for newly found indirect edges , call
283 ipa_propagate_indirect_call_infos after inlining.
284 (cgraph_decide_inlining): Call ipa_propagate_indirect_call_infos after
285 inlining if performing indirect inlining. Call
286 free_all_ipa_structures_after_iinln when doing so too.
287 (inline_generate_summary): Do not call
288 free_all_ipa_structures_after_iinln here.
289 * ipa-prop.c (update_jump_functions_after_inlining): New function.
290 (print_edge_addition_message): New function.
291 (update_call_notes_after_inlining): New function.
292 (propagate_info_to_inlined_callees): New function.
293 (ipa_propagate_indirect_call_infos): New function.
294 * ipa-prop.h: Include cgraph.h
295 (struct ipa_param_call_note): Fields reordered, new field processed.
296 * cgraph.h (cgraph_edge): Shrink loop_nest field to 31 bits, add a new
298 * cgraphunit.c (verify_cgraph_node): Allow indirect edges not to have
299 rediscovered call statements.
300 * cgraph.c (cgraph_create_edge): Initialize indirect_call to zero.
301 (dump_cgraph_node): Dump also the indirect_call flag.
302 (cgraph_clone_edge): Copy also the indirect_call flag.
303 * tree-inline.c (copy_bb): Do not check for fndecls from call
304 expressions, check for edge availability when moving clones.
305 (get_indirect_callee_fndecl): New function.
306 (expand_call_inline): If callee declaration is not apprent from
307 the statement, try calling get_indirect_callee_fndecl. Do not
308 issue warnings or call sorry when not inlinings an indirect edge.
309 * Makefile.in (IPA_PROP_H): Added $(CGRAPH_H) to dependencies.
311 * ipa-prop.c (ipa_print_node_param_flags): Make the dump format a
312 bit more frandly to matching.
313 * testsuite/g++.dg/ipa/iinline-1.C: New testcase.
314 * testsuite/gcc.dg/ipa/iinline-1.c: New testcase.
315 * testsuite/gcc.dg/ipa/modif-1.c: New testcase.
317 2008-07-23 Michael Meissner <gnu@the-meissners.org>
320 * opth-gen.awk: Suppress function specific features when building
322 * optc-gen.awk: Ditto.
324 2008-07-23 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
327 * diagnostic.c (pedwarn): Add opt parameter.
329 * c-tree.h (pedwarn_init): Add opt parameter.
330 (pedwarn_c90): Likewise.
331 (pedwarn_c99): Likewise.
332 * c-errors.c (pedwarn_c99): Likewise.
333 (pedwarn_c90): Likewise.
334 * toplev.h (pedwarn): Update declaration.
336 * c-lex.c: All calls to pedwarn changed.
337 * builtins.c: All calls to pedwarn changed.
338 * toplev.c: All calls to pedwarn changed.
339 * c-decl.c: All calls to pedwarn changed.
340 * c-typeck.c: All calls to pedwarn changed.
341 * c-common.c: All calls to pedwarn changed.
342 * c-parser.c: All calls to pedwarn changed.
344 2008-07-23 Michael Meissner <gnu@the-meissners.org>
345 Karthik Kumar <karthikkumar@gmail.com>
347 * attribs.c (file scope): Include c-common.h.
348 (decl_attributes): Add support for #pragma GCC optimize and
351 * targhooks.c (default_can_inline_p): New function that is the
352 default for the TARGET_CAN_INLINE_P target hook.
354 * targhooks.h (default_can_inline_p): Add declaration.
356 * tree.c (cl_optimization_node): New static tree for building
357 OPTIMIZATION_NODE tree.
358 (cl_target_option_node): New static tree for building
359 TARGET_OPTION_NODE tree.
360 (cl_option_hash_table): New hash table for hashing
361 OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
362 (cl_option_hash_hash): New function to provide the hash value for
363 OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
364 (cl_option_hash_eq): New function to provide an equality test for
365 OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
366 (tree_code_size): Add support for OPTIMIZATION_NODE and
367 TARGET_OPTION_NODE trees.
368 (tree_code_structure): Add support for OPTIMIZATION_NODE and
369 TARGET_OPTION_NODE trees.
370 (build_optimization_node): Build a tree that has all of the
371 current optimization options.
372 (build_target_option_node): Build a tree that has the target
373 options that might be changed on a per function basis.
375 * tree.h (file scope): Include options.h.
376 (DECL_FUNCTION_SPECIFIC_TARGET): New accessor macro.
377 (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
378 (TREE_OPTIMIZATION): Ditto.
379 (TREE_TARGET_SPECIFIC): Ditto.
380 (struct tree_function_decl): Add fields for remembering the
381 current optimization options and target specific options.
382 (struct tree_optimization_option): New tree variant that remembers
383 the optimization options.
384 (struct tree_target_option): New tree variant that remembers the
385 target specific flags that might change for compiling a particular
387 (union tree_node): Include tree_optimization_option and
388 tree_target_option fields.
389 (enum tree_index): Add TI_OPTIMIZATION_DEFAULT,
390 TI_OPTIMIZATION_CURRENT, TI_OPTIMIZATION_COLD,
391 TI_OPTIMIZATION_HOT, TI_TARGET_OPTION_DEFAULT,
392 TI_TARGET_OPTION_CURRENT, TI_CURRENT_OPTION_PRAGMA,
393 TI_CURRENT_OPTIMIZE_PRAGMA entries for saving function specific
394 optimization and target options.
395 (optimization_default_node): New macro to refer to global_trees
397 (optimization_current_node): Ditto.
398 (optimization_cold_node): Ditto.
399 (optimization_hot_node): Ditto.
400 (target_option_default_node): Ditto.
401 (target_option_current_node): Ditto.
402 (current_option_pragma): Ditto.
403 (current_optimize_pragma): Ditto.
405 * target.h (struct gcc_target): Add valid_option_attribute_p,
406 target_option_save, target_option_restore, target_option_print,
407 target_option_pragma_parse, and can_inline_p hooks.
409 * toplev.h (parse_optimize_options): Add declaration.
410 (fast_math_flags_struct_set_p): Ditto.
412 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): New function to
413 adjust the current __OPTIMIZE__, etc. macros when #pragma GCC
416 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Call
417 tree_can_inline_p hook to see if one function can inline another.
418 (cgraph_decide_inlining): Ditto.
419 (cgraph_decide_inlining_incrementally): Ditto.
421 * opts.c (decode_options): Add support for running multiple times
422 to allow functions with different target or optimization options
423 than was specified on the command line.
424 (fast_math_flags_struct_set_p): New function that is similar to
425 fast_math_flags_set_p, except it uses the values in the
426 cl_optimization structure instead of global variables.
428 * optc-gen.awk: Add support for TargetSave to allow a back end to
429 declare new fields that need to be saved when using function
430 specific options. Include flags.h and target.h in the options.c
431 source. Add support for Save to indicate which options can be set
432 for individual functions. Generate cl_optimize_save,
433 cl_optimize_restore, cl_optimize_print, cl_target_option_save,
434 cl_target_option_restore, cl_target_option_print functions to
435 allow functions to use different optimization or target options.
437 * opt-functions.awk (var_type_struct): Return the type used for
438 storing the field in a structure.
440 * opth-gen.awk: Add support for TargetSave to allow a back end to
441 declare new fields that need to be saved when using function
442 specific options. Add support for Save to indicate which options
443 can be set for individual functions. Only generate one extern for
444 Mask fields. Generate cl_optimization and cl_target_option
445 structures to remember optimization and target options.
447 * treestruct.def (TS_OPTIMIZATION): Add support for garbage
448 collecting new tree nodes.
449 (TS_TARGET_OPTION): Ditto.
451 * c-decl.c (merge_decls): Merge function specific target and
452 optimization options.
454 * function.c (invoke_set_current_function_hook): If the function
455 uses different optimization options, change the global variables
458 * coretypes.h (struct cl_optimization): Add forward reference.
459 (struct cl_target_option): Ditto.
461 * c-pragma.c (option_stack): New static vector to remember the
462 current #pragma GCC option stack.
463 (handle_pragma_option): New function to support #pragma GCC option
464 to change target options.
465 (optimize_stack): New static vector to remember the current
466 #pragma GCC optimize stack.
467 (handle_pragma_optimize): New function to support #pragma GCC
468 optimize to change optimization options.
469 (init_pragma): Add support for #pragma GCC optimize and #pragma
472 * tree.def (OPTIMIZATION_NODE): New tree code for remembering
473 optimization options.
474 (TARGET_OPTION_NODE): New tree code for remembering certain target
477 * print-tree.c (print_node): Add support for OPTIMIZATION_NODE and
478 TARGET_OPTION_NODE trees.
480 * common.opt (-O): Add Optimization flag.
482 (-fmath-errno): Ditto.
483 (-falign-functions): Add UInteger flag to make sure flag gets full
484 int in cl_optimization structure.
485 (-falign-jumps): Ditto.
486 (-falign-labels): Ditto.
487 (-falign-loops): Ditto.
488 (-fsched-stalled-insns): Ditto.
489 (-fsched-stalled-insns-dep): Ditto.
491 * target-def.h (TARGET_VALID_OPTION_ATTRIBUTE_P): Add default
493 (TARGET_OPTION_SAVE): Ditto.
494 (TARGET_OPTION_RESTORE): Ditto.
495 (TARGET_OPTION_PRINT): Ditto.
496 (TARGET_OPTION_PRAGMA_PARSE): Ditto.
497 (TARGET_CAN_INLINE_P): Ditto.
498 (TARGET_INITIALIZER): Add new hooks.
500 * tree-inline.c (tree_can_inline_p): New function to determine
501 whether one function can inline another. Check if the functions
502 use compatible optimization options, and also call the backend
505 * tree-inline.h (tree_can_inline_p): Add declaration.
507 * c-common.c (c_common_attribute): Add support for option and
509 (handle_option_attribute): Add support for the option attribute to
510 allow the user to specify different target options for compiling a
512 (handle_optimize_attribute): Add support for the optimize
513 attribute to allow the user to specify different optimization
514 options for compiling a specific function.
515 (handle_hot_attribute): Turn on -O3 optimization for this one
516 function if it isn't the default optimization level.
517 (handle_cold_attribute): Turn on -Os optimization for this one
518 function if it insn't the default optimization.
519 (const_char_p): New const char * typedef.
520 (optimize_args): New static vector to remember the optimization
522 (parse_optimize_options): New function to set up the optimization
523 arguments from either the optimize attribute or #pragma GCC
526 * c-common.h (c_cpp_builtins_optimize_pragma): Add declaration.
527 (builtin_define_std): Ditto.
529 * config.gcc (i[3467]86-*-*): Add i386-c.o to C/C++ languages.
530 Add t-i386 Makefile fragment to add i386-c.o and i386.o
534 * Makefile.in (TREE_H): Add options.h.
535 (options.o): Add $(TARGET_H) $(FLAGS_H) dependencies.
537 * doc/extend.texi (option attribute): Document new attribute.
538 (optimize attribute): Ditto.
539 (hot attribute): Document hot attribute sets -O3.
540 (cold attribute): Document cold attribute sets -Os.
541 (#pragma GCC option): Document new pragma.
542 (#pragma GCC optimize): Ditto.
544 * doc/options.texi (TargetSave): Document TargetSave syntax.
545 (UInteger): Document UInteger must be used for certain flags.
546 (Save): Document Save option to create target specific options
547 that can be saved/restored on a function specific context.
549 * doc/c-tree.texi (DECL_FUNCTION_SPECIFIC_TARGET): Document new
551 (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
553 * doc/tm.texi (TARGET_VALID_OPTION_ATTRIBUTE_P): Document new
555 (TARGET_OPTION_SAVE): Ditto.
556 (TARGET_OPTION_RESTORE): Ditto.
557 (TARGET_OPTION_PRINT): Ditto.
558 (TARGET_OPTION_PRAGMA_PARSE): Ditto.
559 (TARGET_CAN_INLINE_P): Ditto.
561 * doc/invoke.texi (-mfpmath=sse+387): Document as an alias for
563 (-mfpmath=both): Ditto.
565 2008-07-23 Michael Meissner <gnu@the-meissners.org>
566 Karthik Kumar <karthikkumar@gmail.com>
568 * config/i386/i386.h (TARGET_ABM): Move switch into
570 (TARGET_POPCNT): Ditto.
571 (TARGET_SAHF): Ditto.
573 (TARGET_PCLMUL): Ditto.
574 (TARGET_CMPXCHG16B): Ditto.
575 (TARGET_RECIP): Move switch into target_flags.
576 (TARGET_FUSED_MADD): Ditto.
577 (ix86_arch_features): Make an unsigned char type.
578 (ix86_tune_features): Ditto.
579 (OVERRIDE_OPTIONS): Add bool argument to override_options call.
580 (TARGET_CPU_CPP_BUILTINS): Move into ix86_target_macros.
581 (REGISTER_TARGET_PRAGMAS): Define, call ix86_register_pragmas.
583 * config/i386/i386.opt (arch): New TargetSave field to define
584 fields that need to be saved for function specific option
588 (branch_cost): Ditto.
589 (ix86_isa_flags_explicit): Ditto.
590 (tune_defaulted): Ditto.
591 (arch_specified): Ditto.
592 (-m128-long-double): Add Save flag to save option for target
593 specific option support.
595 (-maccumulate-outgoing-args): Ditto.
596 (-malign-double): Ditto.
597 (-malign-stringops): Ditto.
598 (-mfancy-math-387): Ditto.
599 (-mhard-float): Ditto.
601 (-minline-all-stringops): Ditto.
602 (-minline-stringops-dynamically): Ditto.
603 (-mms-bitfields): Ditto.
604 (-mno-align-stringops): Ditto.
605 (-mno-fancy-math-387): Ditto.
606 (-mno-push-args): Ditto.
607 (-mno-red-zone): Ditto.
608 (-mpush-args): Ditto.
611 (-msseregparm): Ditto.
612 (-mstack-arg-probe): Ditto.
627 (-mrecip): Move flag into target_flags.
629 (-mno-fused-madd): Ditto.
630 (-mfused-madd): Ditto.
631 (-mabm): Move flag into ix86_isa_flags.
638 * config/i386/i386-c.c: New file for #pragma support.
639 (ix86_target_macros_internal): New function to #define or #undef
640 target macros based when the user uses the #pragma GCC option to
641 change target options.
642 (ix86_pragma_option_parse): New function to add #pragma GCC option
644 (ix86_target_macros): Move defining the target macros here from
645 TARGET_CPU_CPP_BUILTINS in i386.h.
646 (ix86_register_pragmas): Register the #pragma GCC option hook. If
647 defined, initialize any subtarget #pragmas.
649 * config/i386/darwin.h (REGISTER_SUBTARGET_PRAGMAS): Rename from
650 REGISTER_TARGET_PRAGMAS.
652 * config/i386/t-i386: New file for x86 dependencies.
653 (i386.o): Make dependencies mirror the include files used.
654 (i386-c.o): New file, add dependencies.
656 * config/i386/i386-protos.h (override_options): Add bool
658 (ix86_valid_option_attribute_tree): Add declaration.
659 (ix86_target_macros): Ditto.
660 (ix86_register_macros): Ditto.
662 * config/i386/i386.c (ix86_tune_features): Move initialization of
663 the target masks to initial_ix86_tune_features to allow functions
664 to have different target options. Make type unsigned char,
665 instead of unsigned int.
666 (initial_ix86_tune_features): New static vector to hold processor
667 masks for the tune variables.
668 (ix86_arch_features): Move initialization of the target masks to
669 initial_ix86_arch_features to allow functions to have different
670 target options. Make type unsigned char, instead of unsigned
672 (initial_ix86_arch_features): New static vector to hold processor
673 masks for the arch variables.
674 (enum ix86_function_specific_strings): New enum to describe the
675 string options used for attribute((option(...))).
676 (ix86_target_string): New function to return a string that
677 describes the target options.
678 (ix86_debug_options): New function to print the current options in
680 (ix86_function_specific_save): New function hook to save the
681 function specific global variables in the cl_target_option
683 (ix86_function_specific_restore): New function hook to restore the
684 function specific variables from the cl_target_option structure to
685 the global variables.
686 (ix86_function_specific_print): New function hook to print the
687 target specific options in the cl_target_option structure.
688 (ix86_valid_option_attribute_p): New function hook to validate
689 attribute((option(...))) arguments.
690 (ix86_valid_option_attribute_tree): New function that is common
691 code between attribute((option(...))) and #pragma GCC option
692 support that parses the options and returns a tree holding the
694 (ix86_valid_option_attribute_inner_p): New helper function for
695 ix86_valid_option_attribute_tree.
696 (ix86_can_inline_p): New function hook to decide if one function
697 can inline another on a target specific basis.
698 (ix86_set_current_function); New function hook to switch target
699 options if the user used attribute((option(...))) or #pragma GCC
701 (ix86_tune_defaulted): Move to static file scope from
703 (ix86_arch_specified): Ditto.
704 (OPTION_MASK_ISA_AES_SET): New macro for moving switches into
706 (OPTION_MASK_ISA_PCLMUL_SET): Ditto.
707 (OPTION_MASK_ISA_ABM_SET): Ditto.
708 (OPTION_MASK_ISA_POPCNT_SET): Ditto.
709 (OPTION_MASK_ISA_CX16_SET): Ditto.
710 (OPTION_MASK_ISA_SAHF_SET): Ditto.
711 (OPTION_MASK_ISA_AES_UNSET): Ditto.
712 (OPTION_MASK_ISA_PCLMUL_UNSET): Ditto.
713 (OPTION_MASK_ISA_ABM_UNSET): Ditto.
714 (OPTION_MASK_ISA_POPCNT_UNSET): Ditto.
715 (OPTION_MASK_ISA_CX16_UNSET): Ditto.
716 (OPTION_MASK_ISA_SAHF_UNSET): Ditto.
717 (struct ptt): Move to static file scope from override_options.
718 (processor_target_table): Ditto.
720 (ix86_handle_option): Add support for options that are now isa
722 (override_options): Add support for declaring functions that
723 support different target options than were specified on the
724 command line. Move struct ptt, processor_target_table, cpu_names,
725 ix86_tune_defaulted, ix86_arch_specified to static file scope.
726 Add bool argument. Fix up error messages so the appropriate error
727 is given for either command line or attribute.
728 (ix86_previous_fndecl): New static to remember previous function
729 declaration to see if we need to change target options.
730 (ix86_builtins_isa): New array to record the ISA of each builtin
732 (def_builtin): Always create the builtin function, even if the
733 current ISA doesn't support it.
734 (ix86_init_mmx_sse_builtins): Remove TARGET_AES and TARGET_PCLMUL
735 tests for those builtins.
736 (ix86_init_builtins): Remove TARGET_MMX test for calling
737 ix86_init_mmx_sse_builtins.
738 (ix86_expand_builtin): If the current ISA doesn't support a given
739 builtin, signal an error.
740 (TARGET_VALID_OPTION_ATTRIBUTE_P): Set target hook.
741 (TARGET_SET_CURRENT_FUNCTION): Ditto.
742 (TARGET_OPTION_SAVE): Ditto.
743 (TARGET_OPTION_RESTORE): Ditto.
744 (TARGET_OPTION_PRINT): Ditto.
745 (TARGET_CAN_INLINE_P): Ditto.
747 2008-07-22 Rafael Avila de Espindola <espindola@google.com>
749 * c-typeck.c (build_external_ref): Don't call assemble_external.
750 * final.c (output_operand): Call assemble_external.
752 2008-07-21 DJ Delorie <dj@redhat.com>
754 * config/h8300/h8300.c (h8300_hard_regno_scratch_ok): New.
755 (TARGET_HARD_REGNO_SCRATCH_OK): Define.
757 2008-07-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
759 * config/spu/spu.md ("div<mode>3"): Convert into expander, move
760 original insn and splitter contents into ...
761 ("*div<mode>3_fast"): ... this new pattern. Enable only if
762 flag_unsafe_math_optimizations. Add dummy scratch register.
763 ("*div<mode>3_adjusted"): New insn and splitter. Enable only if
764 !flag_unsafe_math_optimizations. Returns number with next
765 highest magnitude if this is still less or equal to the true
766 quotient in magnitude.
768 2008-07-21 Rafael Avila de Espindola <espindola@google.com>
770 * Makefile.in: Replace toplev.h with TOPLEV_H.
771 * c-decl.c (merge_decls): Don't set DECL_IN_SYSTEM_HEADER.
772 * c-lex.c (fe_file_change): Don't set in_system_header.
773 * c-parser.c (c_token): Remove in_system_header.
774 (c_lex_one_token): Don't set in_system_header.
775 (c_parser_set_source_position_from_token): Don't set in_system_header.
776 * diagnostic.c (diagnostic_report_diagnostic): Use location from
779 * diagnostic.h (diagnostic_report_warnings_p): Add LOC argument.
780 * flags.h (in_system_header): Remove.
781 * function.c (saved_in_system_header): Remove.
782 (push_cfun): Don't set in_system_header.
783 (pop_cfun): Don't set in_system_header.
784 (push_struct_function): Don't set in_system_header.
785 * input.h (expanded_location): Add sysp.
786 (in_system_header_at): New.
787 (in_system_header): New.
788 * toplev.c (in_system_header): Remove.
789 * toplev.h: Include input.h
791 * tree-cfg.c (execute_warn_function_return): Call warning_at.
792 * tree-ssa.c (warn_uninit): Call warning_at.
793 (warn_uninitialized_var): Update calls to warn_uninit.
794 (warn_uninitialized_phi): Update calls to warn_uninit.
795 * tree.c (make_node_stat): Don't set DECL_IN_SYSTEM_HEADER.
796 (expand_location): Initialize xloc.sysp.
797 * tree.h (DECL_IN_SYSTEM_HEADER): Use in_system_header_at.
798 (tree_decl_with_vis): Remove in_system_header_flag.
800 2008-07-21 Andreas Krebbel <krebbel1@de.ibm.com>
803 * recog.c (asm_operand_ok): Change the order of the extra
804 memory constraint checks.
806 2008-07-20 Andrew Pinski <andrew_pinski@playstation.sony.com>
809 * tree-switch-conversion.c (build_one_array): Call
810 varpool_mark_needed_node and varpool_finalize_decl
811 instead of assemble_variable.
813 2008-07-19 Jan Hubicka <jh@suse.cz>
815 * cgraph.c (cgraph_add_new_function): Do early local passes.
816 * tree-nrv.c (gate_pass_return_slot): New gate.
817 (pass_nrv): Add the gate.
818 * tree-ssa-coalese.c (hash_ssa_name_by_var, eq_ssa_name_by_var): New
820 (coalesce_ssa_name): Coalesce SSA names.
821 * tree-ssa-live.c (remove_unused_locals): Be more conservative when
822 not optimizing so unused user vars remains visible.
823 * common.opt (flag_tree_ter): Always enable by default.
824 * tree-ssa-ter.c: Include flags.h
825 (is_replaceable_p): Check that locations match; when aliasing is missing
826 be conservative about loads.
827 * tree-optimize.c (gate_init_datastructures): Remove.
828 (pass_init_datastructures): New.
829 * passes.c: Reorder passes so we always go into SSA.
831 2008-07-19 Jan Hubicka <jh@suse.cz>
833 * doc/extend.texi (flatten attribute): Remove note about unit-at-a-time
834 * doc/invoke.texi (--combine): Likewise.
835 (-finline-functions-called-once): Update levels when enabled.
836 (-funit-at-a-time): Document new behaviour.
837 (-ftoplevel-reorder): Document that it is enabled -O0 and imply
838 -fno-section-anchors when disabled explicitly.
839 (inline params): They are not ignored now.
840 (precompiled headers): Remove unit-at-a-time as being incompatible.
841 * opts.c (decode_options): Handle unit-at-a-time as alias;
842 imply -fno-section-anchors when toplevel reorder is disabled
844 * common.opt (ftoplevel-reorder): Set default value to 2.
845 (funit-at-a-time): Set default value to 1.
846 * config/rs6000/rs6000.c (optimization_options): Set section anchors
849 2008-07-19 Jan Hubicka <jh@suse.cz>
851 * builtins.c (expand_builtin_int_roundingfn,
852 expand_builtin_int_roundingfn_2): Do not take subtarget argument;
855 2008-07-19 Richard Guenther <rguenther@suse.de>
858 * tree-ssa-sccvn.h (get_constant_value_id): Declare.
859 * tree-ssa-sccvn.c (get_constant_value_id): New function.
860 * tree-ssa-pre.c (get_expr_value_id): For newly created
861 constant value-ids make sure to add the expression to its
864 2008-07-19 Jakub Jelinek <jakub@redhat.com>
867 * omp-low.c (expand_omp_atomic_fetch_op): Make sure the
868 return value of the builtin is ignored.
870 2008-07-19 Olivier Hainque <hainque@adacore.com>
872 * doc/tm.texi (MALLOC_ABI_ALIGNMENT): New macro. Alignment, in
873 bits, a C conformant malloc implementation has to provide.
874 * defaults.h (MALLOC_ABI_ALIGNMENT): Default to BITS_PER_WORD.
876 2008-07-19 Joseph Myers <joseph@codesourcery.com>
880 * reload.c (find_reloads_subreg_address): Only reload address if
881 reloaded == 0, not for reloaded != 1.
884 2008-07-16 Joseph Myers <joseph@codesourcery.com>
885 * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
886 (m32c_legitimate_address_p): Handle "++rii" addresses created by
887 m32c_legitimize_reload_address.
889 2008-07-15 Kaz Kojima <kkojima@gcc.gnu.org>
890 * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
891 (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
893 2008-07-19 Olivier Hainque <hainque@adacore.com>
895 * dwarf2out.c (add_subscript_info): New explicit COLLAPSE_P
896 argument, saying whether nested array are to be collapsed
897 into a single array type DIE with multiple subscripts.
898 (gen_array_type_die): Factorize comments about the MIPS_DEBUG_INFO
899 issues, centralize the nested array types collapsing control and
900 disable the transformation for Ada.
902 2008-07-18 Uros Bizjak <ubizjak@gmail.com>
905 * config/i386/i386.md (x86_64_shift_adj_1): Rename from
907 (x86_64_shift_adj_2): New expander.
908 (x86_64_shift_adj_3): Ditto.
909 * config/i386/i386.c (ix86_split_ashr): Use gen_x86_64_shift_adj_3
910 to split TImode operands.
911 (ix86_split_ashl): Use gen_x86_64_shift_adj_2 to split TImode operands.
912 (ix86_split_lshr): Ditto.
914 2008-07-18 Kris Van Hees <kris.van.hees@oracle.com>
916 * c-common.c (c_stddef_cpp_builtins): Define __CHAR16_TYPE__
918 * c-typeck.c (digest_init): Support char16_t and char32_t.
919 (set_nonincremental_init_from_string): Idem.
921 2008-07-18 H.J. Lu <hongjiu.lu@intel.com>
924 * builtins.c (std_gimplify_va_arg_expr): Limit alignment to
925 PREFERRED_STACK_BOUNDARY.
926 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
928 2008-07-18 H.J. Lu <hongjiu.lu@intel.com>
931 * function.c (locate_and_pad_parm): Cap boundary earlier.
933 2008-07-17 Julian Brown <julian@codesourcery.com>
935 * config/arm/arm.c (arm_cxx_determine_class_data_visibility): Make
936 no-op for targets which don't use DLLs.
938 2008-07-17 Martin Jambor <mjambor@suse.cz>
940 * ipa-cp.c (ipcp_print_all_lattices): New variable info, check
941 that nodes are relevant by examining the node->analyzed flag.
942 (ipcp_init_stage): Check which nodes are relevant, assert that the
943 relevant ones are also required.
944 (ipcp_propagate_stage): Check on the side arrays are properly
946 (ipcp_print_all_jump_functions): Make sure not to touch any node
947 that is not analyzed or an edge that does not have a corresponding
948 entry in the on-the-side vectors.
949 (ipcp_function_scale_print): Likewise.
950 (ipcp_update_callgraph): Check that the node is relevant.
951 (ipcp_insert_stage): Check that the node is relevant. Check there is
952 an info for every node and edge.
953 * ipa-prop.c (ipa_init_func_list): Check the nodes are relevant.
954 (ipa_print_all_tree_maps): Likewise and a new variable info.
955 (ipa_print_all_params_modified): Likewise.
956 * ipa-prop.h (ipa_edge_args_info_available_for_edge_p): New function.
958 2008-07-17 Roman Zippel <zippel@linux-m68k.org>
961 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for __mc68000__.
963 2008-07-17 Paolo Bonzini <bonzini@gnu.org>
965 PR rtl-optimization/36753
966 * fwprop.c (use_killed_between): Don't shortcut
967 single-definition global registers.
969 2008-07-16 Jan Hubicka <jh@suse.cz>
971 * cgraph.h (varpool_empty_needed_queue): Declare.
972 * cgraphunit.c (output_in_order): Mark all variables as needed;
974 * varpool.c (varpool_assemble_node): Update debug queue.
975 (varpool_assemble_pending_decls): Don't do it here.
976 (varpool_empty_needed_queue): New function.
978 2008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
980 * recog.c (peephole2_optimize): Fix formatting.
982 2008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
984 * c-pch.c (get_ident): Avoid C++ keywords.
985 * combine-stack-adj.c (single_set_for_csa): Likewise.
986 * final.c (asm_insn_count, final_scan_insn, alter_subreg,
987 output_asm_insn): Likewise.
988 * reload.c (push_secondary_reload, find_reusable_reload,
989 push_reload, combine_reloads, find_reloads,
990 debug_reload_to_stream): Likewise.
991 * reload.h (struct reload): Likewise.
992 * reload1.c (reload_reg_class_lower, find_reg, find_reload_regs,
993 allocate_reload_reg, choose_reload_regs, emit_input_reload_insns,
994 emit_output_reload_insns): Likewise.
995 * targhooks.c (default_secondary_reload): Likewise.
996 * varasm.c (section_entry_eq, object_block_entry_eq): Likewise.
998 2008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1000 * recog.c (validate_change_1, validate_change,
1001 validate_unshare_change, validate_replace_rtx_1, struct
1002 funny_match, constrain_operands, peephole2_optimize): Avoid C++
1004 * reload.c (push_secondary_reload, secondary_reload_class,
1005 scratch_reload_class, find_valid_class, find_reusable_reload,
1006 push_reload, find_dummy_reload, find_reloads_address_1,
1007 find_reloads_address_part, find_equiv_reg): Likewise.
1008 * reload1.c (spill_failure, eliminate_regs_1, allocate_reload_reg,
1009 choose_reload_regs): Likewise.
1010 * rtlanal.c (replace_rtx, nonzero_bits1, num_sign_bit_copies1):
1012 * rtlhooks.c (gen_lowpart_if_possible): Likewise.
1013 * sched-ebb.c (add_deps_for_risky_insns): Likewise.
1014 * sched-rgn.c (concat_INSN_LIST): Likewise.
1015 * stor-layout.c (mode_for_size, mode_for_size_tree,
1016 smallest_mode_for_size): Likewise.
1018 2008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1020 * cfg.c (dump_reg_info): Avoid C++ keywords.
1021 * dwarf2asm.c (dw2_force_const_mem,
1022 dw2_asm_output_encoded_addr_rtx): Likewise.
1023 * except.c (gen_eh_region, add_action_record, output_ttype): Likewise.
1024 * expmed.c (expand_shift): Likewise.
1025 * global.c (find_reg): Likewise.
1026 * graph.c (draw_edge): Likewise.
1027 * local-alloc.c (reg_meets_class_p, find_free_reg): Likewise.
1028 * optabs.c (expand_binop, expand_twoval_unop, expand_twoval_binop,
1029 widen_clz, widen_bswap, expand_parity, expand_unop,
1030 emit_cmp_and_jump_insn_1): Likewise.
1031 * postreload.c (reload_cse_simplify_operands): Likewise.
1032 * ra.h (add_neighbor): Likewise.
1033 * reg-stack.c (remove_regno_note, change_stack): Likewise.
1034 * regclass.c (memory_move_secondary_cost, dump_regclass, regclass,
1035 record_reg_classes, copy_cost, record_address_regs,
1036 invalid_mode_change_p): Likewise.
1037 * regrename.c (regrename_optimize, scan_rtx_reg,
1038 dump_def_use_chain, find_oldest_value_reg,
1039 replace_oldest_value_reg, copyprop_hardreg_forward_1): Likewise.
1041 2008-07-16 David Edelsohn <edelsohn@gnu.org>
1043 * config/rs6000/rs6000.c (processor_target_table): Remove duplicate
1044 MASK_POWERPC64 for power4 in previous commit.
1046 2008-07-16 Olivier Hainque <hainque@adacore.com>
1048 * collect2.c (scan_prog_file, COFF version): Use CONST_CAST
1049 instead of bare conversion to cast const-ness away.
1051 2008-07-16 Anatoly Sokolov <aesok@post.ru>
1053 * config/xtensa/xtensa.h (FUNCTION_OUTGOING_VALUE,
1054 XTENSA_FUNCTION_VALUE, XTENSA_FUNCTION_VALUE): Remove.
1055 * config/xtensa/xtensa.c (xtensa_function_value): New function.
1056 (TARGET_FUNCTION_VALUE): Define.
1058 2008-07-16 David Edelsohn <edelsohn@gnu.org>
1060 * config/rs6000/rs6000.c (processor_target_table): Add
1061 MASK_PPC_GPOPT for power4, power5, power5+, power6, and power6x.
1063 2008-07-16 Joseph Myers <joseph@codesourcery.com>
1066 * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
1067 (m32c_legitimate_address_p): Handle "++rii" addresses created by
1068 m32c_legitimize_reload_address.
1070 2007-07-16 Rafael Avila de Espindola <espindola@google.com>
1072 * c-decl.c (merge_decls): Keep DECL_SOURCE_LOCATION and
1073 DECL_IN_SYSTEM_HEADER in sync.
1075 2008-07-15 Daniel Berlin <dberlin@dberlin.org>
1077 * tree-ssa-sccvn.c (expressions_equal_p): Check type equality.
1078 * tree-ssa-pre.c (pre_expr_eq): Ditto
1079 (get_constant_for_value_id): Take a type as an argument.
1080 (fully_constant_expression): Pass in type.
1081 (find_or_generate_expression): Short circuit constant case.
1082 (create_expression_by_pieces): Remove special casing of
1084 (do_regular_insertion): Short circuit constant case.
1085 (do_partial_partial_insertion): Ditto.
1087 2008-07-15 Kaz Kojima <kkojima@gcc.gnu.org>
1090 * config/sh/sh.md (symGOT_load): Don't add REG_EQUAL note.
1092 2008-07-15 Bob Wilson <bob.wilson@acm.org>
1094 * config/xtensa/libgcc-xtensa.ver: New file.
1095 * config/xtensa/t-linux (SHLIB_MAPFILES): Append libgcc-xtensa.ver.
1097 2008-07-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1099 * df-problems.c (df_set_note): Avoid C++ keywords.
1100 * df-scan.c (df_ref_change_reg_with_loc_1): Likewise.
1101 * dse.c (record_store, remove_useless_values): Likewise.
1102 * emit-rtl.c (gen_reg_rtx, update_reg_offset, gen_rtx_REG_offset,
1103 gen_reg_rtx_offset, operand_subword, change_address_1,
1104 change_address, adjust_address_1, offset_address,
1105 widen_memory_access, emit_copy_of_insn_after): Likewise.
1106 * explow.c (round_push, allocate_dynamic_stack_space): Likewise.
1107 * fwprop.c (should_replace_address, propagate_rtx_1,
1108 propagate_rtx, try_fwprop_subst, forward_propagate_and_simplify):
1110 * gcse.c (cprop_jump, find_implicit_sets, bypass_block,
1111 gcse_emit_move_after, update_ld_motion_stores): Likewise.
1112 * lcm.c (compute_insert_delete, pre_edge_lcm,
1113 compute_rev_insert_delete, pre_edge_rev_lcm): Likewise.
1114 * lower-subreg.c (resolve_reg_notes): Likewise.
1115 * mode-switching.c (optimize_mode_switching): Likewise.
1117 2008-07-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1119 * bt-load.c (add_btr_def, migrate_btr_def,
1120 branch_target_load_optimize): Avoid C++ keywords.
1121 * caller-save.c (insert_restore, insert_save, insert_one_insn):
1123 * combine.c (subst, simplify_set, make_extraction,
1124 make_compound_operation, known_cond, simplify_shift_const_1): Likewise.
1125 * cse.c (make_regs_eqv, merge_equiv_classes, validate_canon_reg,
1126 fold_rtx, equiv_constant, cse_insn, cse_process_notes_1): Likewise.
1128 2008-07-15 Richard Guenther <rguenther@suse.de>
1131 * c-common.c (strict_aliasing_warning): Do not warn for
1132 TYPE_REF_CAN_ALIAS_ALL pointers.
1133 (c_common_get_alias_set): may_alias types are not special.
1134 * tree.c (build_pointer_type_for_mode): Look up the may_alias
1135 attribute and set can_ref_all accordingly.
1136 (build_reference_type_for_mode): Likewise.
1137 * doc/extend.texi (may_alias): Clarify.
1139 2008-07-15 Kaz Kojima <kkojima@gcc.gnu.org>
1142 * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
1143 (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
1145 2008-07-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
1148 * config/rs6000/rs6000.c (print_operand <case 'y'>): Don't use
1149 gcc_assert, instead call output_operand_lossage.
1151 2008-07-15 Kai Tietz <kai.tietz@onevision.com>
1153 * builtins.c (std_canonical_va_list): Treat structure based
1156 2008-07-15 Ben Elliston <bje@au.ibm.com>
1158 * emit-rtl.c (set_mem_attributes_minus_bitpos): Improve comment.
1160 2007-07-14 Rafael Avila de Espindola <espindola@google.com>
1162 * c-decl.c (diagnose_mismatched_decls): Don't warn if TREE_NO_WARNING
1165 2008-07-14 Jan Hubicka <jh@suse.cz>
1167 * i386.md (sse5 cmov pattern): Update call of ix86_sse5_valid_op_p
1168 * sse.md (sse5 patterns): Update call of ix86_sse5_valid_op_p;
1169 fix predicates and constraints.
1170 * i386.c (ix86_sse5_valid_op_p): Add commutative parameter.
1171 * i386-protos.h (ix86_sse5_valid_op_p): Update declaration.
1173 2008-07-14 Doug Kwan <dougkwan@google.com>
1175 * config.gcc (arm*-*-eabi*): Include arm/eabi.h and use
1176 additional option file arm/eabi.opt.
1177 * config/arm/eabi.h (File): New configuration file for EABI targets.
1178 * config/arm/elf.h (SUBTARGET_EXTRA_SPECS): Add
1179 SUBSUBTARGET_EXTRA_SPECS.
1180 (SUBSUBTARGET_EXTRA_SPECS): Provide empty default.
1181 * config/arm/unknown-elf.h (UNKNOWN_ELF_STARTFILE_SPEC): Renamed
1182 from STARTFILE_SPEC so that it can be referenced in an override.
1183 (STARTFILE_SPEC): Use UNKNOWN_ELF_STARTFILE_SPEC.
1184 (UNKNOWN_ELF_ENDFILE_SPEC): Renamed from ENDFILE_SPEC so that it
1185 can be referenced in an override.
1186 (ENDFILE_SPEC): Use UNKNOWN_ELF_ENDFILE_SPEC.
1187 * config/arm/bpabi.h (BPABI_LINK_SPEC): Renamed from LINK_SPEC
1188 so that it can be referenced in an override.
1189 (LINK_SPEC): Use BPABI_LINK_SPEC.
1190 * config/arm/eabi.opt (File): New.
1192 2008-07-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1194 * Makefile.in (TARGET_DEF_H): Add targhooks.h.
1195 (FIXED_VALUE_H): New variable.
1196 (RTL_BASE_H): Use $(INPUT_H) and $(FIXED_VALUE_H) instead of
1197 input.h, fixed-value.h.
1198 (TREE_H): Use $(INPUT_H), add $(SYMTAB_H).
1199 (BASIC_BLOCK_H): Use $(BITMAP_H).
1200 (FUNCTION_H): Add varray.h.
1201 (IPA_REFERENCE_H): Use $(BITMAP_H).
1202 (CGRAPH_H): Add $(BASIC_BLOCK_H).
1203 (DF_H): Use $(BITMAP_H).
1204 (GGC_H): Add statistics.h.
1206 (INSN_ATTR_H): Use it.
1207 (SYSTEM_H): Add safe-ctype.h, filenames.h.
1209 (SYMTAB_H): Add $(OBSTACK_H).
1210 (CPP_INTERNAL_H): New.
1211 (TREE_DUMP_H): Add tree-pass.h.
1212 (TREE_FLOW_H): Use $(BITMAP_H)
1213 (PRETTY_PRINT_H): Use $(INPUT_H).
1214 (EBITMAP_H): Rename from typo-ed EBIMAP_H.
1217 (many object files): Fix lots of header dependencies throughout.
1219 2008-07-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1221 * Makefile.in (write_entries_to_file, write_entries_to_file_split):
1223 (s-gtyp-input): Use them to write tmp-gi.list.
1224 (echo_to_gi.list): Remove.
1226 2008-07-14 Richard Guenther <rguenther@suse.de>
1228 * tree-ssa-sccvn.c (pre_info): Remove.
1229 (switch_to_PRE_table): Likewise.
1230 (free_scc_vn): Do not clear SSA_NAME_VALUE. Do not free pre_info.
1231 (set_hashtable_value_ids): Do not create value-ids for the
1233 (run_scc_vn): Remove double test. Remove bogus special-case
1234 in value-number printing.
1235 * tree-ssa-sccvn.h (switch_to_PRE_table): Remove.
1236 * tree-ssa-ccp.c (get_symbol_constant_value): Do not look at
1238 * tree-flow-inline.h (get_value_handle): Remove.
1239 * tree-flow.h (get_value_handle): Remove.
1241 2008-07-14 Martin Jambor <mjambor@suse.cz>
1243 * tree-switch-conversion.c (gen_inbound_check): Make sure the type
1244 in which we generate arithmetics is not a subrange.
1246 2008-07-14 Martin Jambor <mjambor@suse.cz>
1248 * Makefile.in (IPA_PROP_H): Added ipa-prop.h to IPA_PROP_H variable.
1250 2008-07-14 Richard Guenther <rguenther@suse.de>
1252 * tree-ssa-pre.c (insert_into_preds_of_block): Do not call convert.
1254 2008-07-14 Andreas Krebbel <krebbel1@de.ibm.com>
1257 * config/s390/s390.c: (s390_secondary_reload): Add a secondary
1258 reload for symbol refs moved to r0 with -fPIC.
1259 (legitimize_pic_address): Use the target register as temporary
1261 (emit_symbolic_move): Adjust comment.
1262 * config/s390/s390.md (reloadsi_PIC_addr, reloaddi_PIC_addr):
1265 2008-07-14 Ben Elliston <bje@au.ibm.com>
1267 * c-common.h (C_CPP_HASHNODE): New macro.
1268 * coretypes.h (struct cpp_token): Forward declare.
1269 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
1270 the context-sensitive keyword method.
1271 * config/rs6000/rs6000-c.c (__vector_keyword, vector_keyword,
1272 __pixel_keyword, pixel_keyword, __bool_keyword, bool_keyword,
1273 expand_bool_pixel): New.
1274 (altivec_categorize_keyword): New function.
1275 (init_vector_keywords): New function.
1276 (rs6000_macro_to_expand): Likewise.
1277 (rs6000_cpu_cpp_builtins): Enable context-sensitive macros if not
1278 compiling an ISO C dialect.
1280 2008-07-13 Daniel Berlin <dberlin@dberlin.org>
1282 * tree-ssa-pre.c (fully_constant_expression): Add fold_convert calls.
1283 (create_expression_by_pieces): Fix typo.
1284 (do_regular_insertion): Use debug counter here too.
1286 2008-07-14 Hans-Peter Nilsson <hp@axis.com>
1289 * config/cris/cris.h (CRIS_CONST_OK_FOR_LETTER_P): Renamed from
1290 CONST_OK_FOR_LETTER_P. All port-local users changed.
1291 (CONST_OK_FOR_CONSTRAINT_P): Define; implement Kc as old K,
1292 implement Kp matching power-of-two.
1293 (CONSTRAINT_LEN): Define to match.
1294 * config/cris/cris.md: Replace all use of constraint K with Kc.
1295 ("*btst*): Use Kp for operand 0 of last alternative.
1297 2008-07-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1300 * tree-call-cdce.c (check_target_format): Accept MIPS single, double
1303 2008-07-13 Jan Hubicka <jh@suse.cz>
1305 * tree.c (decl_assembler_name_equal): Expect assembler name of decl
1308 2008-07-13 Richard Guenther <rguenther@suse.de>
1311 * langhooks.c (lhd_print_error_function): Deal with recursive
1314 2008-07-12 Jan Hubicka <jh@suse.cz>
1316 * cgraph.c (assembler_name_hash): New static var.
1317 (hash_node_by_assembler_name, eq_assembler_name): New.
1318 (cgraph_node_for_asm): Use hashtable.
1319 (cgraph_remove_node): Maintain hashtable.
1320 (change_decl_assembler_name): Sanity check that names are not changing
1321 after aliasing was processed.
1322 * cgraph.h (varpoon_node): Add next GGC marker.
1323 * tree.c (decl_assembler_name_equal): Constify.
1324 (decl_assembler_name_hash): New.
1325 * tree.h (decl_assembler_name_equal): Constify.
1326 (decl_assembler_name_hash): Update.
1328 2008-07-12 David Daney <ddaney@avtrex.com>
1330 * config/mips/driver-native.c (host_detect_local_cpu): Handle
1333 2008-07-12 Richard Sandiford <rdsandiford@googlemail.com>
1335 * doc/md.texi: Document the MIPS "v" constraint.
1336 * config/mips/mips.h (reg_class): Revert last change.
1337 (REG_CLASS_NAMES): Likewise.
1338 (REG_CLASS_CONTENTS): Likewise.
1339 * config/mips/mips.c (mips_regno_to_class): Likewise.
1340 * config/mips/constraints.md (v): Likewise, but add documentation.
1341 Add a comment to say that this constraint should not be used in
1344 2008-07-11 DJ Delorie <dj@redhat.com>
1346 * config/h8300/h8300.md (length): Fix branch offset limit.
1348 2008-07-11 Anatoly Sokolov <aesok@post.ru>
1350 * config/avr/avr-protos.h (avr_peep2_scratch_safe): Remove prototype.
1351 * config/avr/avr.c (avr_peep2_scratch_safe): Remove.
1352 (avr_hard_regno_scratch_ok): New function.
1353 (TARGET_HARD_REGNO_SCRATCH_OK): Define.
1354 * config/avr/avr.md (all peepholes that request a scratch register):
1355 Remove avr_peep2_scratch_safe use.
1357 2008-07-11 Tom Tromey <tromey@redhat.com>
1358 Ian Lance Taylor <iant@google.com>
1360 * c-common.h (enum rid): Add RID_CXX_COMPAT_WARN.
1361 (struct c_common_resword): Define.
1362 (D_CONLY, D_CXXONLY, D_C99, D_CXX0X, D_EXT, D_EXT89): Define.
1363 (D_ASM, D_OBJC, D_CXX_OBJC, D_CXXWARN): Define.
1364 (c_common_reswords, num_c_common_reswords): Declare.
1365 * c-common.c (c_common_reswords): New global const array.
1366 (num_c_common_reswords): New const int.
1367 * c-parser.c (struct resword, reswords): Don't define.
1368 (D_C89, D_EXT, D_EXT89, D_OBJC): Don't define.
1369 (c_parse_init): Clarify mask code. Use c_common_reswords rather
1370 than reswords. If warning about C++ keywords, give them a special
1372 (c_lex_one_token): Warn about C++ keywords. Call
1373 objc_is_reserved_word rather than OBJC_IS_AT_KEYWORD.
1374 (c_parser_external_declaration): Look for RID_xxx rather than
1375 RID_AT_xxx, for ObjC++ keywords which are also C++ keywords.
1376 (c_parser_statement_after_labels): Likewise.
1377 (c_parser_objc_class_instance_variables): Likewise.
1378 (c_parser_objc_class_declaration): Likewise.
1379 (c_parser_objc_try_catch_statement): Likewise.
1380 * c-decl.c (c_print_identifier): Ignore RID_CXX_COMPAT_WARN.
1381 (declspecs_add_type): Likewise.
1383 2008-07-11 Angelo Graziosi <angelo.graziosi@alice.it>
1385 * ggc-page.c (alloc_page):
1386 Substituting xmalloc, xcalloc with
1387 XNEWVEC and XCNEWVAR macros which add the
1390 2008-07-11 Richard Guenther <rguenther@suse.de>
1392 PR tree-optimization/36765
1393 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add
1394 aliases from HEAP vars to SMTs.
1396 2008-07-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1398 * Makefile.in (LOOSE_WARN, STRICT_WARN): Update comments.
1399 * configure.ac (loose_warn): Move -Wc++-compat from here...
1400 (strict_warn): ...to here.
1401 * configure: Regenerate.
1403 2008-07-10 Joseph Myers <joseph@codesourcery.com>
1405 * config.gcc (arm-*-coff*, armel-*-coff*, h8300-*-*,
1406 i[34567]86-*-aout*, i[34567]86-*-coff*, m68k-*-aout*,
1407 m68k-*-coff*, sh-*-*, mips-sgi-irix[56]*, pdp11-*-bsd,
1408 rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*): Deprecate targets,
1409 excluding more specific h8300-*-* and sh-*-* targets.
1411 2008-07-10 Daniel Berlin <dberlin@dberlin.org>
1413 * tree-ssa-pre.c (create_expression_by_pieces): Add fold_convert calls.
1415 (execute_pre): Call loop_optimizer_finalize in early exit.
1417 2008-07-10 Jakub Jelinek <jakub@redhat.com>
1420 * omp-low.c (lower_omp_2): If task_shared_vars, test all DECL_P
1421 uids in the bitmap, not just VAR_DECL uids.
1423 PR rtl-optimization/36419
1424 * combine-stack-adj.c (adjust_frame_related_expr): New function.
1425 (combine_stack_adjustments_for_block): Call it if needed. Delete
1427 * dwarf2out.c (dwarf2out_frame_debug_expr): Adjust
1428 DW_CFA_GNU_args_size if CSA pass merged some adjustments into
1429 prologue sp adjustment.
1431 2008-07-10 Peter Maydell <pmaydell@chiark.greenend.org.uk>
1434 * opts.c (print_ignored_options): Report postponed diagnostics for
1435 unknown -Wno-* options as warnings, not errors.
1436 (postpone_unknown_option_error): Renamed to...
1437 (postpone_unknown_option_warning): ... this.
1439 2008-07-09 Doug Kwan <dougkwan@google.com>
1442 2008-07-08 Doug Kwan <dougkwan@google.com>
1444 * config/arm/arm.opt (mandroid): New option.
1445 * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
1446 (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
1448 (CC1PLUS_SPEC): Same.
1450 (STARTFILE_SPEC): Same.
1451 (ENDFILE_SPEC): Same.
1452 (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
1455 2008-07-09 Richard Sandiford <rdsandiford@googlemail.com>
1458 * config/mips/mips.h (reg_class): Remove V1_REG.
1459 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
1460 * config/mips/mips.c (mips_regno_to_class): Map $3 to M16_NA_REGS
1462 (mips_get_tp): New function.
1463 (mips_legitimize_tls_address): Use it.
1464 * config/mips/constraints.md (v): Delete.
1465 * config/mips/mips.md (TLS_GET_TP_REGNUM): New constant.
1466 (tls_get_tp_<mode>): Allow any GPR destination and clobber $3.
1467 After reload, split into a move and ...
1468 (*tls_get_tp_<mode>_split): ...this new instruction.
1470 2008-07-09 David Daney <ddaney@avtrex.com>
1472 * config/mips/driver-native.c: Include coretypes.h and tm.h.
1474 2008-07-09 Jakub Jelinek <jakub@redhat.com>
1476 * gimplify.c (struct gimplify_ctx): Move to tree-gimple.h.
1477 (push_gimplify_context): Don't allocate temp_htab nor c itself here.
1479 (pop_gimplify_context): Check c->temp_htab instead of optimize whether
1480 htab_delete should be called. Don't free c.
1481 (lookup_tmp_var): Create temp_htab lazily.
1482 (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
1483 gimplify_body, force_gimple_operand): Adjust push_gimplify_context
1485 * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
1486 lower_omp_ordered, lower_omp_critical, lower_omp_for,
1487 create_task_copyfn, lower_omp_taskreg, execute_lower_omp):
1488 * tree-ssa-ccp.c (convert_to_gimple_builtin): Likewise.
1489 * tree-sra.c (generate_element_init): Likewise.
1490 * tree-mudflap.c (execute_mudflap_function_ops,
1491 execute_mudflap_function_decls): Likewise.
1492 * tree-inline.c (setup_one_parameter, optimize_inline_calls): Likewise.
1493 * tree-gimple.h (struct gimplify_ctx): New type.
1494 (push_gimplify_context): Adjust prototype.
1496 2008-07-09 Daniel Berlin <dberlin@dberlin.org>
1498 * tree-ssa-pre.c (phi_translate_1): Update placement of
1501 2008-07-09 Anatoly Sokolov <aesok@post.ru>
1503 * target.h (struct gcc_target): Add hard_regno_scratch_ok field.
1504 * target-def.h (TARGET_HARD_REGNO_SCRATCH_OK): New.
1505 (TARGET_INITIALIZER): Use TARGET_HARD_REGNO_SCRATCH_OK.
1506 * targhooks.c (default_hard_regno_scratch_ok): New function.
1507 * targhooks.h (default_hard_regno_scratch_ok): Declare function.
1508 * doc/tm.texi: Document TARGET_HARD_REGNO_SCRATCH_OK hook.
1509 * recog.c: Include "target.h".
1510 (peep2_find_free_register): Add check for global regs. Add target
1512 * Makefile.in (recog.o): Depend on target.h.
1514 2008-07-09 Kaz Kojima <kkojima@gcc.gnu.org>
1516 * config/sh/sh.c (sh_canonical_va_list_type): New.
1517 (TARGET_CANONICAL_VA_LIST_TYPE): Define.
1519 2008-07-09 Raksit Ashok <raksit@google.com>
1521 * doc/invoke.texi (Option Summary): Mention new option
1522 -Wdisallowed-function-list=...
1523 (Warning Options): Document -Wdisallowed-function-list=...
1524 * common.opt (Wdisallowed-function-list=): New flag.
1525 * flags.h (warn_disallowed_functions): External definition of new
1526 boolean warning flag.
1527 (warn_if_disallowed_function_p): Declare new function.
1528 * opts.c (warning_disallowed_functions): New static variable.
1529 (warn_disallowed_functions): New boolean warning flag.
1530 (warn_if_disallowed_function_p): New function.
1531 (add_comma_separated_to_vector): Rename
1532 add_instrument_functions_exclude_list to this.
1533 (common_handle_option): Handle new option. Rename calls to
1534 add_instrument_functions_exclude_list into calls to
1535 add_comma_separated_to_vector.
1536 * c-parser.c (c_parser_postfix_expression_after_primary): New warning
1537 based on flag warn_disallowed_functions.
1539 2008-07-09 Christian Bruel <christian.bruel@st.com>
1541 * final.c (get_attr_length_1): Call get_attr_length_1 with fallback_fn
1542 instead of get_attr_length.
1544 2008-07-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1546 * genattrtab.c (insert_right_side, evaluate_eq_attr): Avoid C++
1548 * genemit.c (gen_insn): Likewise.
1549 * gengtype.c (note_def_vec): Likewise.
1550 * gengtype.h (note_def_vec): Likewise.
1551 * genoutput.c (struct data, output_insn_data, process_template,
1552 gen_expand, gen_split, note_constraint): Likewise.
1553 * genrecog.c (new_decision, add_to_sequence, factor_tests,
1554 make_insn_sequence): Likewise.
1555 * gensupport.c (record_insn_name): Likewise.
1557 2008-07-08 Doug Kwan <dougkwan@google.com>
1559 * config/arm/arm.opt (mandroid): New option.
1560 * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
1561 (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
1563 (CC1PLUS_SPEC): Same.
1565 (STARTFILE_SPEC): Same.
1566 (ENDFILE_SPEC): Same.
1567 (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
1570 2008-07-08 Raksit Ashok <raksit@google.com>
1572 * expr.c (emit_block_move_via_movmem): Fix expected_align parameter.
1573 (set_storage_via_setmem): Fix expected_align parameter.
1574 * doc/invoke.texi (i386 and x86-64 Options): Add a couple of options
1575 missing from the list.
1576 * doc/md.texi (movmem): Explicitly state that expected alignment is
1577 to be expressed in bytes.
1578 (setmem): Explicitly state that expected alignment is to be expressed
1581 2008-07-08 Joseph Myers <joseph@codesourcery.com>
1583 * reload.c (find_reloads_subreg_address): Do not require validity
1584 of address in original mode before reloading address.
1586 2008-07-07 Tianwei Sheng <tianweis@google.com>
1588 * df-core.c (df_remove_problem): Adjust the access to avoid out of
1589 bounds array access.
1591 2008-07-08 Jakub Jelinek <jakub@redhat.com>
1593 * tree-sra.c (sra_build_assignment): Handle CONVERT_EXPR_P dst.
1595 2008-07-05 Daniel Berlin <dberlin@dberlin.org>
1597 Fix PR tree-optimization/23455
1598 Fix PR tree-optimization/35286
1599 Fix PR tree-optimization/35287
1600 * Makefile.in (OBJS-common): Remove tree-vn.o.
1601 (tree-vn.o): Remove.
1602 * dbgcnt.def: Add treepre_insert debug counter.
1603 * gcc/tree-flow.h (add_to_value): Updated for other changes.
1604 (debug_value_expressions): Ditto.
1605 (print_value_expressions): Ditto.
1606 * tree-pretty-print.c (dump_generic_node): Updated for
1607 VALUE_HANDLE removal.
1608 * tree-ssa-dom.c (record_equality): Ditto.
1609 (cprop_operand): Ditto.
1610 (lookup_avail_expr): Ditto.
1611 * tree-ssa-threadedge.c
1612 (record_temporary_equivalences_from_stmts_at_dest): Ditto.
1613 (simplify_control_stmt_condition): Ditto.
1614 * tree.c (tree_code_size): Ditto.
1615 (tree_node_structure): Ditto.
1616 (iterative_hash_expr): Ditto.
1618 * tree.h (VALUE_HANDLE_ID): Ditto.
1619 (VALUE_HANDLE_EXPR_SET): Ditto.
1620 (struct tree_value_handle): Ditto.
1621 (union tree_node): Ditto.
1622 * treestruct.def: Ditto.
1623 * tree-vn.c: Removed.
1624 * tree-ssa-pre.c: Rewritten entirely.
1625 * tree-ssa-sccvn.c (constant_to_value_id): New hashtable.
1626 (constant_value_ids): Ditto.
1627 (vn_nary_op_t): Moved to header.
1629 (vn_reference_op_t): Ditto
1630 (vn_reference_t): Ditto.
1631 (next_value_id): New variable.
1632 (VN_INFO): Add an assert.
1633 (vn_constant_eq): New function.
1634 (vn_constant_hash): Ditto.
1635 (get_or_alloc_constant_value_id): Ditto.
1636 (value_id_constant_p): Ditto.
1637 (vn_reference_compute_hash): De-staticify.
1638 (copy_reference_ops_from_ref): Don't use get_callee_fndecl.
1639 Disable some code with a FIXME. Remove VALUE_HANDLE use.
1640 (valueize_refs): Update opcode if it changes from ssa name to constant.
1641 (vn_reference_lookup_1): Add new argument.
1642 (vn_reference_lookup): Ditto.
1643 (vn_reference_lookup_pieces): New function.
1644 (vn_reference_insert): Add return type. Modify to deal with value ids.
1645 (vn_reference_insert_pieces): New function.
1646 (vn_nary_op_compute_hash): De-staticify.
1647 (vn_nary_op_eq): Ditto.
1648 (vn_nary_op_lookup_pieces): New function.
1649 (vn_nary_op_lookup): Add new argument.
1650 (vn_nary_op_insert_pieces): New function.
1651 (vn_nary_op_insert): Add return type. Modify to deal with value ids.
1652 (vn_phi_insert): Ditto.
1653 (visit_unary_op): Update for callee changes.
1654 (visit_binary_op): Ditto.
1655 (visit_reference_op_load): Ditto.
1656 (visit_reference_op_store): Ditto.
1657 (init_scc_vn): Init next_value_id, constant_to_value_id and
1659 (free_scc_vn): Free them.
1660 (set_hashtable_value_ids): New function.
1661 (run_scc_vn): Use it.
1662 (get_max_value_id): New function.
1663 (get_next_value_id): Ditto.
1664 (expressions_equal_p): Moved from tree-vn.c
1665 (sort_vuses): Ditto.
1666 (sort_vuses_heap): Ditto.
1667 * tree-ssa-sccvn.h: Structures moved from tree-ssa-sccvn.c (noted
1669 * tree.c (iterative_hash_hashval_t): Made non-static
1670 * tree.h (iterative_hash_hashval_t): Declare it.
1672 2008-07-08 Martin Jambor <mjambor@suse.cz>
1674 * ipa-cp.c (ipcp_init_cloned_node): Call ipa_check_create_node_params
1675 instead of ipa_create_node_params.
1676 (ipcp_driver): Allocate infos with ipa_check_create_node_params and
1677 ipa_check_create_edge_args, free them with
1678 free_all_ipa_structures_after_ipa_cp, call ipa_register_cgraph_hooks.
1680 * ipa-prop.c: Include flags.h and tree-inline.h.
1681 (ipa_node_params_vector): New variable.
1682 (ipa_edge_args_vector): New variable.
1683 (edge_removal_hook_holder): New variable.
1684 (node_removal_hook_holder): New variable.
1685 (edge_duplication_hook_holder): New variable.
1686 (node_duplication_hook_holder): New variable.
1687 (ipa_detect_param_modifications): Check for presence of modified flags.
1688 (ipa_compute_jump_functions): Check for presence of jump functions.
1689 (ipa_free_edge_args_substructures): New function.
1690 (ipa_create_node_params): Removed.
1691 (ipa_free_all_edge_args): Changed to deallocate the on-the-side vector.
1692 (ipa_free_node_params_substructures): New function.
1693 (ipa_free_all_node_params): Changed to deallocate the on-the-side
1695 (ipa_edge_removal_hook): New function.
1696 (ipa_node_removal_hook): New function.
1697 (duplicate_array): New function.
1698 (ipa_edge_duplication_hook): New function.
1699 (ipa_node_duplication_hook): New function.
1700 (ipa_register_cgraph_hooks): New function.
1701 (ipa_unregister_cgraph_hooks): New function.
1702 (free_all_ipa_structures_after_ipa_cp): New function.
1704 * ipa-prop.h: Include vec.h.
1705 (ipa_node_params_t): New typedef with vector types for it.
1706 (ipa_edge_args_t): New typedef with vector types for it.
1707 (IPA_NODE_REF): Changed to access an on-the-side vector.
1708 (IPA_EDGE_REF): Changed to access an on-the-side vector.
1709 (ipa_check_create_node_params): New function.
1710 (ipa_check_create_edge_args): New function.
1712 * Makefile.in (IPA_PROP_H): New variable for ipa-prop.h. Converted
1715 2008-07-07 Tom Tromey <tromey@redhat.com>
1717 * configure, config.in: Rebuilt.
1718 * configure.ac: Don't check for scandir or alphasort.
1720 2008-07-07 Joseph Myers <joseph@codesourcery.com>
1722 * config/arm/arm.c (arm_init_neon_builtins): Register built-in
1723 types immediately after creating them.
1725 2008-07-07 Joseph Myers <joseph@codesourcery.com>
1727 * config/arm/aout.h (DOLLARS_IN_IDENTIFIERS): Remove.
1729 2008-07-07 Fernando Pereira <fernando@cs.ucla.edu>
1731 * tree-ssa-structalias.c (compute_points_to_sets): Add call to
1732 dump_constraint_graph.
1733 (dump_constraint_edge): New function.
1734 (dump_constraint_graph): New function.
1735 (debug_constraint_graph): New function.
1736 (dump_constraint): Removed useless comparison.
1737 * tree-ssa-structalias.h (dump_constraint_edge): Declare.
1738 (dump_constraint_graph): Declare.
1739 (debug_constraint_graph): Declare.
1740 * tree-dump.c (struct dump_option_value_info): Declare TDF_GRAPH.
1742 2008-07-07 Kai Tietz <kai.tietz@onevision.com>
1744 * config/i386/i386.c (is_va_list_char_pointer): New.
1745 (ix86_va_start): Replace compare with ms_va_list_type_node
1746 by is_va_list_char_pointer.
1747 (ix86_gimplify_va_arg): Likewise.
1749 2008-07-07 Martin Jambor <mjambor@suse.cz>
1751 * cgraph.c (cgraph_edge_max_uid): New variable.
1752 (struct cgraph_edge_hook_list): New type.
1753 (struct cgraph_node_hook_list): New type.
1754 (struct cgraph_2edge_hook_list): New type.
1755 (struct cgraph_2node_hook_list): New type.
1756 (first_cgraph_edge_removal_hook): New variable.
1757 (first_cgraph_node_removal_hook): New variable.
1758 (first_cgraph_edge_duplicated_hook): New variable.
1759 (first_cgraph_node_duplicated_hook): New variable.
1760 (cgraph_add_edge_removal_hook): New function.
1761 (cgraph_remove_edge_removal_hook): New function.
1762 (cgraph_call_edge_removal_hooks): New function.
1763 (cgraph_add_node_removal_hook): New function.
1764 (cgraph_remove_node_removal_hook): New function.
1765 (cgraph_call_node_removal_hooks): New function.
1766 (cgraph_add_edge_duplication_hook): New function.
1767 (cgraph_remove_edge_duplication_hook): New function.
1768 (cgraph_call_edge_duplication_hooks): New function.
1769 (cgraph_add_node_duplication_hook): New function.
1770 (cgraph_remove_node_duplication_hook): New function.
1771 (cgraph_call_node_duplication_hooks): New function.
1772 (cgraph_create_edge): Assign to edge uid.
1773 (cgraph_remove_edge): Call edge removal hooks.
1774 (cgraph_node_remove_callees): Call edge removal hooks.
1775 (cgraph_node_remove_callers): Call edge removal hooks.
1776 (cgraph_remove_node): Call node removal hooks.
1777 (cgraph_clone_edge): Call edge duplication hooks.
1778 (cgraph_clone_node): Call node duplication hooks.
1780 * cgraph.h (cgraph_edge): New field uid.
1781 (cgraph_edge_hook): New type.
1782 (cgraph_node_hook): New type.
1783 (cgraph_2edge_hook): New type.
1784 (cgraph_2node_hook): New type.
1786 2008-07-07 Andreas Tobler <a.tobler@schweiz.org>
1788 * config.in: Regenerate.
1790 2008-07-07 Vladimir Prus <vladimir@codesourcery.com>
1792 * gcc.c (print_sysroot): New.
1793 (option_map, display_help, process_command): Handle the
1794 -print-sysroot option.
1795 (main): Print the sysroot if requested.
1796 * doc/invoke.texi (Debugging Options): Document -print-sysroot.
1798 2008-07-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1801 * unwind-pe.h (size_of_encoded_value): add attribute unused.
1803 2008-07-07 Daniel Jacobowitz <dan@codesourcery.com>
1805 * function.c (assign_parm_remove_parallels): Check mode of entry_parm.
1806 (assign_parm_setup_block_p): Also check mode of entry_parm.
1808 2008-07-07 Richard Guenther <rguenther@suse.de>
1810 * tree-ssa-structalias.h (set_used_smts): Remove.
1811 * tree-ssa-structalias.c (used_smts): Likewise.
1812 (set_used_smts): Likewise.
1813 * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Remove
1814 call to set_used_smts.
1816 2008-07-07 Richard Guenther <rguenther@suse.de>
1818 * tree-ssa-structalias.c (struct variable_info): Add is_full_var flag.
1819 (new_var_info): Set it to false.
1820 (solution_set_add): Correctly handle pointers outside a var and
1822 (type_safe): Treat variables with is_full_var properly.
1823 (do_sd_constraint): Likewise.
1824 (do_ds_constraint): Likewise.
1825 (process_constraint): Remove zeroing offset for !use_field_sensitive.
1826 (get_constraint_for_ptr_offset): New function.
1827 (get_constraint_for_component_ref): For addresses at least include
1828 the last field of the variable. Handle is_full_vars properly.
1829 (get_constraint_for_1): Factor common code, handle POINTER_PLUS_EXPR.
1830 (handle_ptr_arith): Remove.
1831 (find_func_aliases): Simplify assignment handling.
1832 (create_function_info_for): For parameter and result varinfos set
1834 (create_variable_info_for): Set is_full_var flag whenever we
1835 just created a single varinfo for a decl.
1836 (init_alias_vars): Initialize use_field_sensitive from
1837 max-fields-for-field-sensitive parameter.
1839 2008-07-07 Richard Guenther <rguenther@suse.de>
1841 PR tree-optimization/36713
1842 * tree-flow-inline.h (is_call_used): New function.
1843 * tree-nrv.c (dest_safe_for_nrv_p): Use it.
1844 * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
1845 * tree-outof-ssa.c (create_temp): Set call-used flag if required.
1847 2008-07-07 Maxim Kuvyrkov <maxim@codesourcery.com>
1849 * config/m68k/m68k.c (m68k_return_in_memory): Fix arguments types.
1851 2008-07-07 Mark Shinwell <shinwell@codesourcery.com>
1853 * config/m68k/lb1sf68.asm: Add PIC macros for Linux targets.
1855 2008-07-07 Maxim Kuvyrkov <maxim@codesourcery.com>
1856 Nathan Sidwell <nathan@codesourcery.com>
1858 * config.gcc (m68k-*-linux*): Add with_arch. Add sysroot-suffix.h
1859 to tm_file. Add m68k/t-floatlib, m68k/t-linux & m68k/t-mlibs to
1861 * config/m68k/t-linux: New.
1862 * doc/install.texi: Document m68k-*-linux is now multilibbed by
1865 2008-07-07 Nathan Sidwell <nathan@codesourcery.com>
1867 * config/m68k/t-cf (MULTILIB_EXTRA_OPTS): Add no-mac.
1868 * config/m68k/m68k-devices.def: Remove multilibs that only differ
1871 2008-07-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1873 * gcc.c (execute): Fix -Wc++-compat warning.
1875 2008-07-06 H.J. Lu <hongjiu.lu@intel.com>
1878 * config/ia64/ia64.c (ia64_split_tmode): Fix typo in TImode
1879 constant for little endian.
1881 2008-07-06 Richard Sandiford <rdsandiford@googlemail.com>
1883 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Check
1884 mips_base_mips16 instead of TARGET_MIPS16.
1885 (mips_base_mips16): Declare.
1886 * config/mips/mips.c (mips_base_mips16): Make global.
1887 (was_mips16_p): Remove GTY marker.
1888 (was_mips16_pch_p): New variable.
1889 (mips_set_mips16_mode): Check both was_mips16_p and was_mips16_pch_p.
1890 (mips_override_options): Force to non-MIPS16 mode initially.
1891 Do not complain about MIPS16 PIC incompatibilities here.
1892 Only allow -mgpopt if -mexplicit-relocs is in force for
1895 2008-07-06 Andreas Tobler <a.tobler@schweiz.org>
1897 * configure.ac: Check for caddr_t, define to char * if not defined.
1898 * configure: Regenerate.
1899 * ggc-common.c (mmap_gt_pch_get_address): Fix -Wc++-compat warnings.
1900 (mmap_gt_pch_use_address): Likewise.
1901 * config/host-solaris.c (sol_gt_pch_use_address): Likewise.
1903 2008-07-06 Richard Guenther <rguenther@suse.de>
1905 * tree-ssa-structalias.c (struct variable_info): Remove has_union.
1906 (new_var_info): Deal with it.
1907 (solution_set_add): Likewise.
1908 (bitpos_of_field): Make signed, fix.
1909 (struct fieldoff): Remove type and decl fields. Make size field
1910 unsigned HOST_WIDE_INT. Add has_unknown_size and may_have_pointers
1912 (fieldoff_compare): Deal with it.
1913 (push_fields_onto_fieldstack): Remove has_union argument, glob
1914 adjacent non-pointer fields together.
1915 (create_function_info_for): Do not set has_union.
1916 (create_variable_info_for): Simplify.
1918 2008-07-06 Kai Tietz <kai.tietz@onevision.com>
1920 * config.gcc (extra_headers): Add cross-stdarg.h for target
1921 x86_64-*-* and i?86-*-*.
1922 * config/i386/cross-stdarg.h: New.
1923 * builtins.c (std_fn_abi_va_list): New.
1924 (std_canonical_va_list_type): New.
1925 (stabilize_va_list): Replace va_list_type_node use by
1926 mtarget.canonical_va_list_type.
1927 (gimplify_va_arg_expr): Likewise.
1928 (expand_builtin_va_copy): Replace va_list_type_node use by
1929 mtarget.fn_abi_va_list.
1930 * tree-sra.c (is_va_list_type): New helper.
1931 (decl_can_be_decomposed_p): Replace
1932 va_list_type_node use by is_va_list_type.
1933 * tree-ssa-ccp.c (optimize_stdarg_builtin): Likewise.
1934 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
1935 * c-common.c (c_common_nodes_and_builtins): Use TARGET_ENUM_VA_LIST.
1936 * config/i386/i386-protos.h (ix86_get_valist_type): New.
1937 (ix86_enum_va_list): New.
1938 * config/i386/i386.c (sysv_va_list_type_node): New.
1939 (ms_va_list_type_node): New.
1940 (ix86_function_type_abi): Remove sorry.
1941 (ix86_build_builtin_va_list_abi): New.
1942 (ix86_build_builtin_va_list): Call ix86_build_builtin_va_list_abi
1944 (ix86_va_start): Replace va_list_type_node by sysv_va_list_type_node.
1945 (ix86_init_builtins_va_builtins_abi): New.
1946 (ix86_init_builtins): Use ix86_init_builtins_va_builtins_abi
1948 (ix86_handle_abi_attribute): New.
1949 (attribute_spec): Add sysv_abi and ms_abi.
1950 (ix86_fn_abi_va_list): New.
1951 (ix86_canonical_va_list_type): New.
1952 (ix86_enum_va_list): New.
1953 (TARGET_FN_ABI_VA_LIST): New.
1954 (TARGET_CANONICAL_VA_LIST_TYPE): New.
1955 * config/i386/i386.h (TARGET_ENUM_VA_LIST): New.
1956 * doc/tm.texi (TARGET_FN_ABI_VA_LIST): New.
1957 (TARGET_CANONICAL_VA_LIST_TYPE): New.
1958 (TARGET_ENUM_VA_LIST): New.
1959 * expr.h (std_fn_abi_va_list): New.
1960 (std_canonical_va_list_type): New.
1961 * target-def.h (TARGET_FN_ABI_VA_LIST): New.
1962 (TARGET_CANONICAL_VA_LIST_TYPE): New.
1963 (TARGET_INITIALIZER): Add TARGET_FN_ABI_VA_LIST and
1964 TARGET_CANONICAL_VA_LIST_TYPE.
1965 * target.h (struct gcc_target): Add fn_abi_va_list hook
1966 and canonical_va_list_type hook.
1968 2008-07-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
1970 * fold-const.c (fold_convert_const): Treat OFFSET_TYPE the same as
1971 integral and pointer types.
1973 2008-07-04 Roger Sayle <roger@eyesopen.com>
1975 * config/rs6000/host-darwin.c (darwin_rs6000_extra_signals): Cast
1976 the "void*" result of xmalloc to "char*" to fix bootstrap breakage.
1978 2008-07-04 Kaz Kojima <kkojima@gcc.gnu.org>
1981 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable -fschedule-insns for PIC.
1983 2008-07-04 Jakub Jelinek <jakub@redhat.com>
1985 * tree-switch-conversion.c (build_one_array, gen_def_assigns): Use
1986 build_gimple_modify_stmt.
1987 (build_arrays, gen_inbound_check): Likewise. Force RHS to be
1988 gimple operand. Use fold_build* instead of build*.
1990 2008-07-04 Richard Guenther <rguenther@suse.de>
1992 * tree-ssa-structalias.c (lookup_vi_for_tree): Declare.
1993 (do_sd_constraint): Handle a dereference of ESCAPED and CALLUSED
1994 properly to compute the reachability set if we do field-sensitive PTA.
1995 * invoke.texi (max-fields-for-field-sensitive): Document default.
1996 * opts.c (decode_options): Set max-fields-for-field-sensitive to
1997 100 for optimize >= 2.
1999 2008-07-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2001 * ggc-zone.c (lookup_page_table_if_allocated,
2002 set_page_table_entry, zone_find_object_size, alloc_small_page,
2003 alloc_large_page, ggc_free, gt_ggc_m_S, ggc_marked_p, init_ggc,
2004 new_ggc_zone, init_ggc_pch, ggc_pch_this_base, ggc_pch_read): Fix
2005 -Wc++-compat and/or -Wcast-qual warnings.
2007 2008-07-04 Alan Modra <amodra@bigpond.net.au>
2010 * config/rs6000/rs6000.md (call, call_value): Don't arrange for
2011 pic_offset_table_rtx to be marked as used here.
2012 (call_nonlocal_sysv, call_value_nonlocal_sysv): Add split for
2013 TARGET_SECURE_PLT to "use" pic_offset_table_rtx.
2014 (call_nonlocal_sysv_secure, call_value_nonlocal_sysv_secure): New insn.
2015 (sibcall_nonlocal_sysv, sibcall_value_nonlocal_sysv): Assert
2018 2008-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2020 * alloc-pool.c (hash_descriptor, eq_descriptor,
2021 alloc_pool_descriptor): Fix -Wc++-compat warnings.
2022 * bitmap.c (hash_descriptor, eq_descriptor, bitmap_descriptor):
2024 * ggc-common.c (hash_descriptor, eq_descriptor, hash_ptr, eq_ptr,
2025 loc_descriptor, ggc_prune_ptr, ggc_free_overhead,
2026 final_cmp_statistic, cmp_statistic, dump_ggc_loc_statistics): Likewise.
2027 * varray.c (hash_descriptor, eq_descriptor, varray_descriptor):
2030 2008-07-03 Eric Botcazou <ebotcazou@adacore.com>
2032 * tree-flow.h (loop_only_exit_p): Declare.
2033 * tree-ssa-loop-niter.c (loop_only_exit_p): Make public.
2034 * tree-ssa-loop-ivopts.c (may_eliminate_iv): Reinstate direct check on
2035 the number of iterations if it is constant. Otherwise, if this is the
2036 only possible exit of the loop, use the conservative estimate on the
2037 number of iterations of the entire loop if available.
2039 2008-07-03 Richard Sandiford <rdsandiford@googlemail.com>
2041 * Makefile.in (libgcc.mvars): Add LIBGCC_SYNC and LIBGCC_SYNC_CFLAGS.
2042 * libgcc-std.ver (GCC_4.4.0): New version, inherited from GCC_4.3.0.
2043 Add synchronization functions.
2044 * config/sync.c: New file.
2045 * config/mips/t-libgcc-mips16 (LIBGCC_SYNC): Define.
2046 (LIBGCC_SYNC_CFLAGS): Likewise.
2048 2008-07-03 Uros Bizjak <ubizjak@gmail.com>
2051 * config/i386/i386.md (mode): Add TF to "mode" attribute.
2052 (*pushtf_sse): New insn pattern.
2053 (pushtf splitters): New splitters.
2055 2008-07-03 Michael Meissner <gnu@the-meissners.org>
2058 * predict.c (build_predict_expr): Use void_type_node for the tree
2059 type, instead of NULL_TREE.
2061 2008-07-03 H.J. Lu <hongjiu.lu@intel.com>
2063 * config/i386/i386.c (contains_aligned_value_p): Return true
2065 (ix86_data_alignment): Align TCmode to 128bits.
2066 (ix86_local_alignment): Likewise.
2068 2008-07-03 Andrew Haley <aph@redhat.com>
2071 * vec.h (VEC_TA): New.
2072 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_ALLOC_I, DEF_VEC_ALLOC_P,
2073 DEF_VEC_O, DEF_VEC_ALLOC_O: Use VEC_TA.
2074 * c-common.c (C_COMMON_FIXED_TYPES_SAT): New macro.
2075 (C_COMMON_FIXED_MODE_TYPES_SAT): New macro.
2076 (C_COMMON_FIXED_TYPES): Remove first arg.
2077 (C_COMMON_FIXED_MODE_TYPES): Likewise.
2078 * tree.c (MAKE_FIXED_TYPE_NODE): Break into two macros,
2079 MAKE_FIXED_TYPE_NODE and MAKE_FIXED_TYPE_NODE_WIDTH in order
2080 not to use empty macro arguments.
2082 2008-07-02 Joseph Myers <joseph@codesourcery.com>
2084 * config/alpha/vms_tramp.asm, config/arm/crti.asm,
2085 config/arm/crtn.asm, config/bfin/crti.s, config/bfin/crtlibid.s,
2086 config/bfin/crtn.s, config/fr30/crti.asm, config/fr30/crtn.asm,
2087 config/frv/lib1funcs.asm, config/i386/sol2-c1.asm,
2088 config/i386/sol2-ci.asm, config/i386/sol2-cn.asm,
2089 config/i386/sol2-gc1.asm, config/ia64/crti.asm,
2090 config/ia64/crtn.asm, config/m68hc11/larith.asm,
2091 config/m68hc11/m68hc11-crt0.S, config/m68k/crti.s,
2092 config/m68k/crtn.s, config/mcore/crti.asm, config/mcore/crtn.asm,
2093 config/rs6000/crtresfpr.asm, config/rs6000/crtresgpr.asm,
2094 config/rs6000/crtresxfpr.asm, config/rs6000/crtresxgpr.asm,
2095 config/rs6000/crtsavfpr.asm, config/rs6000/crtsavgpr.asm,
2096 config/rs6000/crtsavres.asm, config/rs6000/e500crtres32gpr.asm,
2097 config/rs6000/e500crtres64gpr.asm,
2098 config/rs6000/e500crtres64gprctr.asm,
2099 config/rs6000/e500crtrest32gpr.asm,
2100 config/rs6000/e500crtrest64gpr.asm,
2101 config/rs6000/e500crtresx32gpr.asm,
2102 config/rs6000/e500crtresx64gpr.asm,
2103 config/rs6000/e500crtsav32gpr.asm,
2104 config/rs6000/e500crtsav64gpr.asm,
2105 config/rs6000/e500crtsav64gprctr.asm,
2106 config/rs6000/e500crtsavg32gpr.asm,
2107 config/rs6000/e500crtsavg64gpr.asm,
2108 config/rs6000/e500crtsavg64gprctr.asm, config/rs6000/eabi-ci.asm,
2109 config/rs6000/eabi-cn.asm, config/rs6000/eabi.asm,
2110 config/rs6000/sol-ci.asm, config/rs6000/sol-cn.asm,
2111 config/rs6000/tramp.asm, config/sparc/sol2-ci.asm,
2112 config/sparc/sol2-cn.asm: Remove .file directives.
2114 2008-07-02 Richard Sandiford <rdsandiford@googlemail.com>
2116 * resource.c (mark_referenced_resources): Look inside
2117 UNSPEC_VOLATILEs and ASM_INPUTs.
2119 2008-07-02 Ian Lance Taylor <iant@google.com>
2121 * rtlanal.c (add_reg_note): New function.
2122 * rtl.h (add_reg_note): Declare.
2123 * auto-inc-dec.c (attempt_change): Use add_reg_note.
2124 * bb-reorder.c (add_reg_crossing_jump_notes): Likewise.
2125 * builtins.c (expand_builtin_longjmp): Likewise.
2126 (expand_builtin_nonlocal_goto): Likewise.
2127 * calls.c (emit_call_1, expand_call): Likewise.
2128 * cfgexpand.c (add_reg_br_prob_note): Likewise.
2129 * cfglayout.c (fixup_reorder_chain): Likewise.
2130 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
2131 (commit_one_edge_insertion): Likewise.
2132 * combine.c (move_deaths, distribute_notes): Likewise.
2133 * df-problems.c (df_set_note): Likewise.
2134 * emit-rtl.c (link_cc0_insns, try_split): Likewise.
2135 (set_unique_reg_note): Likewise.
2136 (emit_copy_of_insn_after): Likewise.
2137 * expr.c (expand_expr_real): Likewise.
2138 * gcse.c (add_label_notes): Likewise.
2139 * haifa-sched.c (create_check_block_twin): Likewise.
2140 * jump.c (mark_jump_label_1): Likewise.
2141 * loop-doloop.c (add_test, doloop_modify): Likewise.
2142 * loop-unswitch.c (compare_and_jump_seq): Likewise.
2143 * lower-subreg.c (move_eh_region_note): Likewise.
2144 * optabs.c (emit_libcall_block): Likewise.
2145 * predict.c (predict_insn): Likewise.
2146 (combine_predictions_for_insn): Likewise.
2147 * recog.c (peephole2_optimize): Likewise.
2148 * regmove.c (try_auto_increment): Likewise.
2149 * reg-stack.c (emit_pop_insn, move_for_stack_reg): Likewise.
2150 * reload.c (find_reloads): Likewise.
2151 * reload1.c (fixup_eh_region_note): Likewise.
2152 (reload_as_needed, add_auto_inc_notes, copy_eh_notes): Likewise.
2153 * reorg.c (delete_prior_computation): Likewise.
2154 (delete_computation, dbr_schedule): Likewise.
2155 * config/pa/pa.c (legitimize_pic_address): Likewise.
2156 * config/sh/sh.c (sh_reorg): Likewise.
2158 2008-07-02 H.J. Lu <hongjiu.lu@intel.com>
2161 * config/libgcc-glibc.ver: Add %exclude.
2162 * config/m32r/libgcc-glibc.ver: Likwise.
2163 * config/s390/libgcc-glibc.ver: Likwise.
2164 * config/sh/libgcc-glibc.ver: Likwise.
2165 * config/sparc/libgcc-sparc-glibc.ver: Likwise.
2167 * config/i386/libgcc-glibc.ver: New.
2169 * config/i386/libgcc-x86_64-glibc.ver: Removed.
2171 2008-07-02 H.J. Lu <hongjiu.lu@intel.com>
2173 * config.gcc: Remove i386/t-fprules-softfp64 soft-fp/t-softfp
2174 from tmake_file from i[34567]86-*-darwin*, x86_64-*-darwin*,
2175 i[34567]86-*-linux*, x86_64-*-linux*. Add
2176 i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file for
2177 i[34567]86-*-darwin*, x86_64-*-darwin*, i[34567]86-*-linux*,
2178 x86_64-*-linux*. Add i386/t-linux to tmake_file for
2179 i[34567]86-*-linux*, x86_64-*-linux*.
2181 * libgcc-std.ver: Add empty GCC_4.4.0.
2183 * mkmap-symver.awk: Support multiple versions per symbol.
2185 * config/i386/i386.c (ix86_init_builtins): Always define
2186 __builtin_fabsq and __builtin_copysignq with fallbacks.
2187 (ix86_expand_builtin): Emit normal call for __builtin_fabsq
2188 and __builtin_copysignq if SSE2 isn't available.
2190 * config/i386/linux.h (LIBGCC2_HAS_TF_MODE): Defined.
2191 (LIBGCC2_TF_CEXT): Likwise.
2194 * config/i386/linux64.h (LIBGCC2_HAS_TF_MODE): Defined as 1.
2196 * config/i386/sfp-machine.h: Moved to libgcc.
2198 * config/i386/sfp-machine.h: New.
2199 * config/i386/t-linux: Likwise.
2201 * config/i386/t-darwin: Remove softfp_wrap_start and
2203 * config/i386/t-darwin64: Likewise.
2205 * config/i386/t-fprules-softfp64: Renamed to ...
2206 * config/i386/t-fprules-softfp: This.
2208 * config/i386/t-linux64: Remove SHLIB_MAPFILES, softfp_wrap_start
2209 and softfp_wrap_end.
2211 2008-07-02 Jason Merrill <jason@redhat.com>
2213 * tree.c (ctor_to_list): Use FOR_EACH_CONSTRUCTOR_ELT.
2215 * tree.c (ctor_to_list): New fn.
2216 * tree.h: Declare it.
2217 (CONSTRUCTOR_ELT): New macro.
2218 (CONSTRUCTOR_NELTS): New macro.
2220 2008-07-02 Richard Guenther <rguenther@suse.de>
2222 * tree-ssa-structalias.c (struct variable_info): Reorder
2223 to fill padding on 64bit hosts. Make collapsed_to an int.
2224 (get_varinfo_fc): Deal with that.
2225 (new_var_info): Likewise.
2226 (collapse_rest_of_var): Likewise.
2228 2008-07-02 Joshua Sumali <jsumali@redhat.com>
2230 * doc/install.texi (--enable-java-home): Document.
2231 (--enable-aot-compile-rpm): Likewise.
2232 (--with-arch-directory): Likewise.
2233 (--with-os-directory): Likewise.
2234 (--with-origin-name): Likewise.
2235 (--with-arch-suffix): Likewise.
2236 (--with-jvm-root-dir): Likewise.
2237 (--with-jvm-jar-dir): Likewise.
2238 (--with-python-dir): Likewise.
2240 2008-07-02 Richard Guenther <rguenther@suse.de>
2242 * tree-ssa-forwprop.c (can_propagate_from): Exclude loads
2243 from decls explicitly. Merge operand checking from tuples.
2245 2008-07-02 Martin Jambor <mjambor@suse.cz>
2247 * tree-switch-conversion.c: Included timevar.h which I forgot before.
2249 2008-07-02 Martin Jambor <mjambor@suse.cz>
2251 * tree-switch-conversion.c: Included timevar.h
2252 (pass_convert_switch): Added a timevar id (TV_TREE_SWITCH_CONVERSION).
2254 * timevar.def: Added TV_TREE_SWITCH_CONVERSION.
2256 2008-07-02 Martin Jambor <mjambor@suse.cz>
2258 * tree-switch-conversion.c: Corrected various comments and
2260 (build_constructors): Fixed minor formatting mistakes.
2262 * invoke.texi (Optimize Options): Corrected the
2263 switch-conversion-max-branch-ratio parameter.
2265 2008-07-02 Mark Shinwell <shinwell@codesourcery.com>
2267 * final.c (asm_insn_count): Return zero for an empty asm body.
2269 2008-07-02 Richard Guenther <rguenther@suse.de>
2271 * bitmap.h (bitmap_set_bit): Return bool.
2272 (bitmap_clear_bit): Likewise.
2273 * bitmap.c (bitmap_set_bit): Return if the bit changed. Only
2274 write to the bitmap if it would.
2275 (bitmap_clear_bit): Likewise.
2276 * tree-ssa-structalias.c (add_implicit_graph_edge): Use
2277 bitmap_set_bit return value.
2278 (add_pred_graph_edge): Likewise.
2279 (add_graph_edge): Likewise.
2280 (do_sd_constraint): Likewise.
2281 (do_ds_constraint): Likewise.
2283 2008-07-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2285 * config/alpha/alpha.c (alpha_need_linkage, alpha_use_linkage):
2286 Fix -Wc++-compat and/or -Wcast-qual warnings.
2287 * config/i386/netware.c (gen_stdcall_or_fastcall_decoration,
2288 gen_regparm_prefix): Likewise.
2289 * vmsdbgout.c (write_modbeg, lookup_filename,
2290 vmsdbgout_source_line, vmsdbgout_init): Likewise.
2292 2008-07-02 Danny Smith <dannysmith@users.sourceforge.net>
2294 * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Undef to let
2295 defaults.h definition apply.
2297 2008-07-01 Daniel Jacobowitz <dan@codesourcery.com>
2299 * function.c (assign_parm_remove_parallels): New.
2300 (assign_parm_setup_block_p): Do not return true for non-BLKmode
2302 (assign_parm_setup_block): Do not handle them.
2303 (assign_parm_setup_reg, assign_parm_setup_stack): Call
2304 assign_parm_remove_parallels.
2306 2008-07-01 Daniel Jacobowitz <dan@codesourcery.com>
2308 * c-typeck.c (convert_for_assignment): Use
2309 vector_targets_convertible_p.
2310 * c-common.c (vector_targets_convertible_p): New.
2311 * c-common.h (vector_targets_convertible_p): New prototype.
2312 * config/rs6000/rs6000.c (rs6000_is_opaque_type): Do not check
2313 opaque_p_V2SI_type_node.
2315 2008-07-01 Steve Ellcey <sje@cup.hp.com>
2317 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Do not allow
2320 2008-07-01 Uros Bizjak <ubizjak@gmail.com>
2322 * config/i386/i386.c (ix86_build_signbit_mask): Generate TImode and
2323 TFmode constants via two element DImode vector for hosts with
2324 HOST_BITS_PER_WIDE_INT < 64.
2325 (ix86_init_builtins): Define __builtin_fabsq and __builtin_copysignq
2326 also for HOST_BITS_PER_WIDE_INT < 64.
2328 2008-07-01 Richard Guenther <rguenther@suse.de>
2330 PR tree-optimization/36666
2331 * tree-ssa-structalias.c (get_constraint_for_1): Declare.
2332 (get_constraint_exp_from_ssa_var): Split into ...
2333 (get_constraint_exp_for_temp): ... this ...
2334 (get_constraint_for_ssa_var): ... and that.
2335 Return constraint expressions for all touched sub-fields
2336 if the results address is not taken.
2337 (process_constraint): Remove assertion that aggregate
2338 assignments do not happen at this place.
2339 (get_constraint_for_component_ref): Add address_p argument.
2340 Return constraint expressions for all touched sub-fields
2341 if the results address is not taken.
2342 (do_deref): Use get_constraint_exp_for_temp.
2343 (get_constraint_for_1): Rename from ...
2344 (get_constraint_for): ... this. Add the old function as wrapper.
2345 (do_structure_copy): Use get_constraint_for_1.
2347 2008-07-01 Martin Jambor <mjambor@suse.cz>
2349 * Makefile.in (tree-switch-conversion.o): Add.
2350 (OBJS-common): Add tree-swtch-conversion.o.
2351 * passes.c (init_optimization_passes): Add pass_convert_switch.
2352 * tree-pass.h: (pass_convert_switch): Add.
2353 * tree-switch-conversion.c: New file.
2354 * gcc.dg/tree-ssa/cswtch.c: New testcase.
2355 * common.opt (ftree-cswtch): New option.
2356 * params.h (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
2357 * params.def (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
2358 * opts.c (decode_options): Set flag_tree_switch_conversion when
2359 optimization level is >= 2.
2360 * doc/invoke.texi (Optimize Options): Added description of
2361 -ftree-swtch-conversion and switch-conversion-max-branch-ratio.
2363 2008-06-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2365 * config/darwin-driver.c (darwin_default_min_version): Fix
2366 -Wc++-compat warnings.
2368 2008-06-30 Uros Bizjak <ubizjak@gmail.com>
2370 * config/i386/i386.md (*movti_rex64): Add "!" to "r" constraint
2373 2008-06-30 Kenneth Zadeck <zadeck@naturalbridge.com>
2375 * ifcvt.c (cond_move_process_if_block): Free vectors on false return.
2377 2008-06-30 Kenneth Zadeck <zadeck@naturalbridge.com>
2379 PR rtl-optimization/34744
2380 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): New macros.
2381 (df_scan_free_internal): Free data structures not
2382 allocated in storage pools.
2383 (df_mw_hardreg_chain_delete_eq_uses): Use df_scan_free_mws_vec.
2384 (df_refs_add_to_chains): Use df_scan_free_ref_vec and
2385 df_scan_free_mws_vec.
2386 * dse.c (dse_step6): Free offset_map_p and offset_map_n
2389 2008-06-30 H.J. Lu <hongjiu.lu@intel.com>
2391 * config/i386/i386.c (contains_aligned_value_p): Return true
2393 (ix86_function_arg_boundary): Return its natural boundary
2395 (return_in_memory_32): Don't check TDmode.
2396 (ix86_split_to_parts): Support splitting into 4 parts and
2397 support TFmode for 32bit target.
2398 (ix86_split_long_move): Support splitting into 4 parts.
2399 (bdesc_args): Enable IX86_BUILTIN_FABSQ and IX86_BUILTIN_COPYSIGNQ
2401 (ix86_init_mmx_sse_builtins): Move __float80 and __float128 to ...
2402 (ix86_init_builtins): Here.
2403 (ix86_scalar_mode_supported_p): Always return true for TFmode.
2404 (ix86_c_mode_for_suffix): Always return TFmode and XFmode for
2405 'q' and 'w', respectively.
2407 * config/i386/i386.md (movtf): Check TARGET_SSE2 instead of
2409 (movtf_internal): Likewise.
2410 (<code>tf2): Likewise.
2411 (*absnegtf2_sse): Likewise.
2412 (copysign<mode>3): Likewise.
2413 (copysign<mode>3_const): Likewise.
2414 (copysign<mode>3_var): Likewise.
2415 (define_split UNSPEC_COPYSIGN): Likewise.
2416 * config/i386/sse.md (*nandtf3): Likewise.
2417 (<code>tf3): Likewise.
2418 (*<code>tf3): Likewise.
2420 2008-06-30 Joey Ye <joey.ye@intel.com>
2421 H.J. Lu <hongjiu.lu@intel.com>
2423 * global.c (compute_regsets): Set frame_pointer_needed here.
2424 * reload1.c (init_elim_table): Don't set frame_pointer_needed here.
2426 2008-06-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
2428 * doc/install.texi (specific): Expand Windows build notes.
2430 2008-06-30 Ira Rosen <irar@il.ibm.com>
2432 PR tree-optimization/36648
2433 * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Divide
2434 number of prolog iterations by step. Fix the comment.
2436 2008-06-30 Richard Guenther <rguenther@suse.de>
2439 * tree-ssa-structalias.c (handle_lhs_call): Add flags argument,
2440 handle calls from ECF_MALLOC functions.
2441 (handle_pure_call): ECF_MALLOC functions do not return
2443 (find_func_aliases): Handle all calls, adjust calls to handle_lhs_call.
2445 2008-06-29 Andreas Schwab <schwab@suse.de>
2447 * config/m68k/m68k.c (print_operand): Always print a float
2449 * config/m68k/m68k.h (ASM_OUTPUT_FLOAT_OPERAND)
2450 (ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND):
2453 * config/rs6000/x-linux64: Remove never used file.
2455 2008-06-29 Richard Guenther <rguenther@suse.de>
2457 * tree-ssa-structalias.h (compute_points_to_sets): Adjust
2459 (struct alias_info): Move ...
2460 * tree-ssa-alias.c: ... here.
2461 (update_alias_info): Declare.
2462 (compute_may_aliases): Call it.
2463 (update_alias_info): New function.
2464 * tree-ssa-structalias.c (update_alias_info): Move ...
2465 * tree-ssa-alias.c (update_alias_info_1): ... here.
2466 * tree-ssa-structalias.c (process_constraint_1): Remove
2467 unused from_call argument. Rename to ...
2468 (process_constraint): ... this. Delete old wrapper.
2469 (make_constraint_to): Adjust callers.
2470 (handle_const_call): Likewise.
2471 (handle_pure_call): Likewise.
2472 (init_base_vars): Likewise.
2473 (handle_lhs_call): Likewise. Remove unnecessary constraint.
2474 (find_func_aliases): We don't need structure copies for
2476 (make_constraint_from_anything): Remove.
2477 (create_variable_info_for): For globals make constraints
2478 from escaped, not from anything.
2479 (compute_points_to_sets): Do not call update_alias_info.
2480 (ipa_pta_execute): Use make_constraint_from.
2482 2008-06-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2484 * Makefile.in (CXX_COMPAT_WARN, cxx_compat_warn): Delete.
2485 (bitmap.o-warn, dominance.o-warn): New.
2486 * configure.ac (cxx_compat_warn): Delete.
2487 (loose_warn): Add -Wcast-qual and -Wc++-compat.
2488 * system.h: Remove #pragma diagnostic for -Wcast-qual and
2490 * configure: Regenerate.
2492 * optabs.c (libfunc_decl_hash, libfunc_decl_eq): Fix -Wcast-qual
2495 2008-06-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2497 * alloc-pool.c (create_alloc_pool): Fix -Wc++-compat warnings.
2498 * df-scan.c (df_notes_rescan): Likewise.
2499 * ggc-page.c (set_page_table_entry): Likewise.
2500 * intl.c (gcc_gettext_width): Likewise.
2501 * varasm.c (get_unnamed_section, get_noswitch_section,
2502 get_section): Likewise.
2504 2008-06-28 Andrew Jenner <andrew@codesourcery.com>
2506 * regrename.c (build_def_use): Don't copy RTX.
2508 2008-06-28 Sandra Loosemore <sandra@codesourcery.com>
2510 * doc/extend.texi (Variable Attributes): Use @ref instead of @xref.
2511 (Type Attributes): Fix nesting of @table and @subsection. Adjust
2512 punctuation. Use @ref instead of @xref.
2513 (Function Names): Remove stray @display/@end display.
2514 (C++ Attributes): Use @ref instead of @xref.
2515 (Deprecated Features): Fix punctuation around @xref.
2516 (Backwards Compatibility): Likewise.
2517 * doc/rtl.texi (Incdec): Remove stray @table/@end table.
2519 2008-06-28 Joseph Myers <joseph@codesourcery.com>
2521 * config/rs6000/predicates.md (easy_fp_constant): Reject TFmode
2522 constants for E500 double.
2524 2008-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2526 * doc/rtl.texi (const_vector): Document const_fixed as legitimate
2527 element type of const_vector.
2529 2008-06-28 Uros Bizjak <ubizjak@gmail.com>
2531 * config/i386/i386.md (addti3, adddi3, addsi3, addhi3, addqi3):
2532 Remove FLAGS_REG clobber from expander pattern.
2533 (subti3, subdi3, subsi3, subhi3, subqi3): Ditto.
2534 (anddi3, andsi3, andhi3, andqi3): Ditto.
2535 (iordi3, iorsi3, iorhi3, iorqi3): Ditto.
2536 (xordi3, xorsi3, xorhi3, xorqi3): Ditto.
2537 (negti2, negdi2, negsi2, neghi2, negqi2): Ditto.
2538 (ashlsi3, ashlhi3, ashlqi3): Ditto.
2539 (ashrsi3, ashrhi3, ashrqi3): Ditto.
2540 (lshrsi3, lshrhi3, lshrqi3): Ditto.
2541 (rotldi3, rotlsi3, rotlhi3, rotlqi3): Ditto.
2542 (rotrdi3, rotrsi3, rotrhi3, rotrqi3): Ditto.
2544 2008-06-28 Richard Guenther <rguenther@suse.de>
2546 * tree-ssa-structalias.c (callused_id, var_callused,
2547 callused_tree): Add.
2548 (handle_pure_call): New function.
2549 (find_func_aliases): Call it.
2550 (find_what_p_points_to): Handle the call-used set.
2551 (clobber_what_escaped): Likewise.
2552 (compute_call_used_vars): New function.
2553 (init_base_vars): Init the call-used variable.
2554 (do_sd_constraint): Do not propagate the solution from CALLUSED
2555 but use CALLUSED as a placeholder.
2556 (solve_graph): Likewise.
2557 * tree-flow-inline.h (gimple_call_used_vars): New function.
2558 * tree-flow.h (struct gimple_df): Add call_used_vars bitmap.
2559 (compute_call_used_vars): Declare.
2560 * tree-ssa-alias.c (set_initial_properties): Call
2561 compute_call_used_vars.
2562 (reset_alias_info): Clear call-used variables.
2563 (add_call_clobber_ops): Assert we are not called for const/pure
2564 functions. Remove handling of them.
2565 (add_call_read_ops): Handle pure functions by adding the
2566 call-used set of variables as VUSEs.
2567 * tree-ssa.c (init_tree_ssa): Allocate call-used bitmap.
2568 (delete_tree_ssa): Free it.
2569 * tree-dfa.c (remove_referenced_var): Clear the var from the
2572 2008-06-28 Kai Tietz <kai.tietz@onevision.com>
2574 * tree.c (build_varargs_function_type_list): New.
2575 (build_function_type_list_1): New.
2576 (build_function_type_list): Use build_function_type_list_1.
2577 * tree.h (build_varargs_function_type_list): New.
2579 2008-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2582 * config/spu/spu.c (spu_builtin_splats): Do not generate
2583 invalid CONST_VECTOR expressions.
2584 (spu_expand_vector_init): Likewise.
2586 2008-06-28 Richard Sandiford <rdsandiford@googlemail.com>
2588 * optabs.c (libfunc_decls): New variable.
2589 (libfunc_decl_hash, libfunc_decl_eq): New functions.
2590 (init_one_libfunc): Reuse decls and SYMBOL_REFs when asked
2591 for the same function twice.
2593 2008-06-27 Uros Bizjak <ubizjak@gmail.com>
2595 * config/i386/i386.md (ashlti3, ashrti3, lshrti3): Expand using
2596 ix86_expand_binary_operator directly.
2597 (*ashlti3_1): Rename from ashlti3_1. Use nonmemory_operand predicate
2599 (*ashrti3_1): Ditto.
2600 (*lshrti3_1): Ditto.
2601 (*ashlti3_2, *ashrti3_2, *lshrti3_2): Remove insn patterns.
2602 (ashlti, ashrti and lshrti splitters): Handle nonmemory operand 2
2603 using only one splitter. Conditionaly execute splitter before or
2604 after peephole2 pass.
2605 (ashlti, ashrti and lshrti peephole2): Define peephole2 patterns.
2606 (x86_shld): Rename from x86_shld_1. Compress operand 2 constraints.
2607 Use only one alternative in asm template.
2608 (x86_64_shld): Compress operand 2 constraints. Use only one alternative
2610 (*ashldi3_cmp_rex64): Use const_1_to_63_operand operand predicate and
2611 "J" operand constraint for operand 2.
2612 (*ashldi3_cconly_rex64): Ditto.
2613 (*ashrdi3_cmp_rex64): Ditto.
2614 (*ashrdi3_cconly_rex64): Ditto.
2615 (*lshrdi3_cmp_rex64): Ditto.
2616 (*lshrdi3_cconly_rex64): Ditto.
2617 * config/i386/predicates.md (const_1_to_63_operand): New predicate.
2618 * config/i386/i386.md (print_operand) ['s']: Print ", " using fputs.
2619 (split_ashr, split_ashl, split_lshr): Use gen_x86_shrd instead of
2622 2008-06-27 Jakub Jelinek <jakub@redhat.com>
2624 * gimplify.c (omp_is_private): Don't return true if decl is not
2625 already private on #pragma omp for or #pragma omp parallel for.
2628 * tree-cfg.c (struct move_stmt_d): Replace block field with
2629 orig_block and new_block fields.
2630 (move_stmt_r): Only set TREE_BLOCK to p->new_block if
2631 if it used to be NULL, p->orig_block or if p->orig_block is NULL.
2632 (move_block_to_fn): Replace vars_map and new_label_map arguments
2633 with struct move_stmt_d pointer.
2634 (replace_block_vars_by_duplicates): New function.
2635 (move_sese_region_to_fn): Add ORIG_BLOCK argument. Adjust
2636 move_block_to_fn caller. If ORIG_BLOCK is non-NULL, move over
2637 all subblocks of ORIG_BLOCK to the new function. Call
2638 replace_block_vars_by_duplicates.
2639 * tree-flow.h (move_sese_region_to_fn): Adjust prototype.
2640 * omp-low.c (expand_omp_taskreg): Set TREE_USED on DECL_INITIAL
2641 BLOCK of the new function. Adjust move_sese_region_to_fn caller.
2642 Prune vars with original DECL_CONTEXT from child_cfun->local_decls.
2643 (expand_omp): Temporarily set input_location to the location of
2644 region's controlling stmt.
2645 (lower_omp_sections, lower_omp_for): Add a BLOCK into outermost
2646 BIND_EXPR, push ctx->block_vars and gimplification vars into
2647 the BIND_EXPR and its block's BLOCK_VARS instead of directly
2649 (lower_omp_single): Set TREE_USED on the BIND_EXPR's BLOCK if
2650 there are any BLOCK_VARS.
2651 (lower_omp_taskreg): Set BLOCK on a BIND_EXPR containing the
2652 OMP_PARALLEL or OMP_TASK stmt.
2653 (lower_omp): Save and restore input_location around the lower_omp_1
2656 2008-06-27 Richard Guenther <rguenther@suse.de>
2658 PR tree-optimization/36400
2659 PR tree-optimization/36373
2660 PR tree-optimization/36344
2661 * tree-ssa-structalias.c (var_escaped, escaped_tree, escaped_id,
2662 var_nonlocal, nonlocal_tree, nonlocal_id): New globals
2663 (update_alias_info): Remove call clobbering code.
2664 (make_constraint_to): New helper function.
2665 (make_escape_constraint): Likewise.
2666 (handle_rhs_call): Use it on all pointer containing arguments.
2667 Also mark the static chain escaped.
2668 (handle_lhs_call): Make constraints from NONLOCAL and ESCAPED
2669 instead of ANYTHING.
2670 (make_constraint_from): New helper split out from ...
2671 (make_constraint_from_anything): ... here.
2672 (find_func_aliases): Add constraints for escape sites.
2673 (intra_create_variable_infos): Make constraints from NONLOCAL
2675 (find_what_p_points_to): Interpret NONLOCAL and ESCAPED the same
2677 (clobber_what_p_points_to): Remove.
2678 (clobber_what_escaped): New function.
2679 (init_base_vars): Init NONLOCAL and ESCAPED.
2680 (do_sd_constraint): Do not propagate the solution from ESCAPED
2681 but use ESCAPED as a placeholder.
2682 (solve_graph): Likewise.
2683 * tree-flow.h (clobber_what_p_points_to): Remove.
2684 (clobber_what_escaped): Declare.
2685 * tree-ssa-alias.c (set_initial_properties): Call it.
2686 Remove code clobbering escaped pointers.
2688 2008-06-27 Richard Sandiford <rdsandiford@googlemail.com>
2690 * function.c (allocate_struct_function): Only allocate a unique
2691 funcdef_no if the decl is nonzero.
2693 2008-06-27 Richard Sandiford <rdsandiford@googlemail.com>
2695 * config/mips/mips-protos.h (mips_split_const_insns): Declare.
2696 * config/mips/mips.c (mips_split_const_insns): New function.
2697 * config/mips/mips.md (move_type): New attribute.
2698 (mode): Move attribute definition earlier in file. Add "TI" and "TF".
2699 (dword_mode): New attribute.
2700 (type): Avoid long line. Map "move_type"s to "type"s,
2701 choosing "multi" for doubleword moves if appropriate.
2702 Swap MTC/MFC comments to match their declaration order.
2703 (extended_mips16): Default to "yes" if "move_type" is "sll0",
2704 "type" is "branch" or "jal" is "direct".
2705 (length): Handle "extended_mips16" first. Make the default
2706 "0" for "ghost" instructions. Set the length from "move_type".
2707 (truncdisi2, truncdihi2, truncdiqi2): Use "move_type" instead
2708 of "type", with "sll0" for the register alternative. Remove the
2709 "extended_mips16" attribute.
2710 (zero_extendsidi2, *clear_upper32): Use "move_type" instead
2711 of "type", with "shift_shift" for the register alternative.
2712 Remove the "length" attribute.
2713 (*extend<SHORT:mode><GPR:mode>2, *extendqihi2): Likewise.
2714 (*zero_extend<SHORT:mode><GPR:mode>2): Use "move_type" instead
2715 of "type", with "andi" for the register alternative.
2716 (*zero_extendqihi2): Likewise.
2717 (*zero_extend<SHORT:mode><GPR:mode>2_mips16e): Use a "move_type"
2718 of "andi" instead of a "type" of "arith".
2719 (*zero_extend<SHORT:mode><GPR:mode>2_mips16): Use "move_type"
2721 (*zero_extendqihi2_mips16, mov_<load>l, mov_<load>r, mov_<store>l)
2722 (mov_<store>r, *mov<mode>_ra): Likewise.
2723 (extendsidi2): Use "move_type" instead of "type", with "move"
2724 for the register alternative.
2725 (*extend<SHORT:mode><GPR:mode>2_mips16e): Use "move_type" instead
2726 of "type", with "signext" for the register alternative.
2727 (*extend<SHORT:mode><GPR:mode>2_se<SHORT:size>): Likewise.
2728 (*extendqihi2_mips16e, *extendqihi2_seb): Likewise.
2729 (fix_truncdfsi2_insn, fix_truncsfsi2_insn, fix_truncdfdi2)
2730 (fix_truncsfdi2, floatsidf2, floatdidf2, floatsisf2, floatdisf2)
2731 (floatdisf2, *branch_equality<mode>_mips16): Likewise.
2732 (unnamed branch insn): Likewise.
2733 (*movdi_gp32_fp64): Fold into...
2734 (*movdi_32bit): ...here.
2735 (*movdf_hardfloat_64bit, *movdf_hardfloat_32bit): Combine into...
2736 (*movdf_hardfloat): ...this new pattern.
2737 (*movdf_softfloat): Remove redundant FPR alternatives.
2738 (*movti, *movti_mips16, *movtf, *movtf_mips16): Add "mode" attributes.
2739 (*movv2sf_hardfloat_64bit, *movv2sf_hardfloat_32bit): Combine into...
2740 (*movv2sf): ...this new pattern. Use "DF" rather than "SF" for
2741 the "move" attribute.
2742 (*movdi_32bit): Use "move_type" instead of "type" and remove the
2743 "length" attribute. Use "fpload" and "fpstore" instead of "load"
2744 and "store" for COP loads and stores.
2745 (*movdi_32bit_mips16, *movdi_64bit, *movsi_internal, movcc)
2746 (*movhi_internal, *movhi_mips16, *movqi_internal, *movqi_mips16)
2747 (*movsf_hardfloat, *movsf_softfloat, *movsi_mips16, *movdf_hardfloat)
2748 (*movdf_softfloat, *movdf_mips16, *movti, *movti_mips16, *movtf)
2749 (*movtf_mips16, *movv2sf): Likewise.
2750 (mfhi<GPR:mode>_<HILO:mode>, mflo<GPR:mode>_<HILO:mode>)
2751 (load_low<mode>, load_high<mode>, store_word<mode>, mthc1<mode>)
2752 (mfhc1<mode>): Use "move_type" instead of "move".
2753 (*low<mode>_mips16): Use "extended_mips16" instead of "length".
2754 (loadgp_blockage): Remove the "length" attribute.
2755 (blockage, set_got_version, update_got_version): Likewise.
2756 (call_internal): Remove the "extended_mips16" attribute.
2757 (call_value_internal, call_value_multiple_internal): Likewise.
2758 * config/mips/loongson.md (mov<mode>_internal): Use "move_type"
2760 * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Remove
2761 the "length" attribute.
2763 2008-06-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2765 * c-format.c (handle_format_attribute): Fix -Wc++-compat and/or
2766 -Wcast-qual warnings.
2767 * c-pragma.c (dpm_eq, handle_pragma_push_macro,
2768 handle_pragma_pop_macro): Likewise.
2769 * collect2.c (resolve_lib_name): Likewise.
2770 * config/arc/arc.c (arc_init): Likewise.
2771 * config/arm/arm.c (neon_builtin_compare,
2772 locate_neon_builtin_icode): Likewise.
2773 * config/arm/pe.c (arm_mark_dllexport, arm_pe_unique_section): Likewise.
2774 * config/bfin/bfin.c (bfin_init_machine_status,
2775 bfin_optimize_loop): Likewise.
2776 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
2777 * config/cris/cris.c (cris_init_expanders): Likewise.
2778 * config/darwin-c.c (frameworks_in_use, add_framework): Likewise.
2779 * config/darwin.c (machopic_indirection_eq,
2780 machopic_indirection_name, machopic_output_indirection): Likewise.
2781 * config/frv/frv.c (frv_init_machine_status, frv_compare_insns,
2782 frv_io_check_address, frv_io_handle_set, frv_io_handle_use_1,
2783 frv_optimize_membar): Likewise.
2784 * config/i386/cygwin.h (mingw_scan,
2785 GCC_DRIVER_HOST_INITIALIZATION): Likewise.
2786 * config/i386/cygwin1.c (mingw_scan): Likewise.
2787 * config/i386/i386.c (machopic_output_stub): Likewise.
2788 * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix,
2789 i386_pe_unique_section): Likewise.
2790 * config/ia64/ia64.c (ia64_init_machine_status,
2791 ia64_h_i_d_extended, get_free_bundle_state, bundling, ia64_reorg):
2793 * config/iq2000/iq2000.c, iq2000_init_machine_status): Likewise.
2794 * config/m68hc11/m68hc11.c (m68hc11_encode_label): Likewise.
2795 * config/m68k/m68k.c (m68k_handle_option,
2796 m68k_sched_md_init_global): Likewise.
2797 * config/mcore/mcore.c (mcore_mark_dllexport, mcore_mark_dllimport,
2798 mcore_unique_section): Likewise.
2799 * config/mips/mips.c (mips_block_move_straight,
2800 mips16_rewrite_pool_refs, mips_sim_wait_regs_2, mips_sim_record_set):
2802 * config/mmix/mmix.c (mmix_init_machine_status,
2803 mmix_encode_section_info): Likewise.
2804 * config/pa/pa.c (pa_init_machine_status, hppa_encode_label): Likewise.
2805 * config/rs6000/rs6000.c (rs6000_init_machine_status,
2806 print_operand_address, output_toc, redefine_groups,
2807 rs6000_elf_encode_section_info, machopic_output_stub): Likewise.
2808 * config/s390/s390.c (s390_init_machine_status): Likewise.
2809 * config/score/score.c (score_block_move_straight,
2810 score_block_move_loop_body): Likewise.
2811 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
2812 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
2813 * emit-rtl.c (find_auto_inc): Likewise.
2814 * gcc.c (translate_options, process_command): Likewise.
2815 * reorg.c (dbr_schedule): Likewise.
2816 * sdbout.c (sdbout_start_source_file, sdbout_init): Likewise.
2817 * xcoffout.c (xcoffout_declare_function): Likewise.
2819 2008-06-27 Daniel Berlin <dberlin@dberlin.org>
2821 * tree-ssa-structalias.c (find_func_aliases): Trivial fix to get
2822 ipa-pta working again.
2824 2008-06-27 David Edelsohn <edelsohn@gnu.org>
2826 * config/rs6000/t-aix52: Append large data option to LDFLAGS for
2829 2008-06-27 Edmar Wienskoski <edmar@freescale.com>
2831 * config.gcc (powerpc*-*-*): Add new core e500mc.
2832 * config/rs6000/e500mc.md: New file.
2833 * config/rs6000/rs6000.c (processor_costs): Add new costs for
2835 (rs6000_override_options): Add e500mc case to
2836 processor_target_table. Altivec and Spe options not allowed
2837 with e500mc. Add isel instruction to e500mc by
2838 default. Initialize rs6000_cost for e500mc.
2839 (rs6000_issue_rate): Set issue rate for e500mc.
2840 * config/rs6000/rs6000.h (processor_type): Add
2841 PROCESSOR_PPCE500MC.
2842 (ASM_CPU_SPEC): Add e500mc.
2843 Set TARGET_ISEL to rs6000_isel.
2844 * config/rs6000/e500.h: Remove redefinition of TARGET_ISEL.
2845 (CHECK_E500_OPTIONS): Remove TARGET_ISEL.
2846 * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce500mc.
2848 * doc/invoke.texi: Add e500mc to list of cpus.
2850 2008-06-27 Laurynas Biveinis <laurynas.biveinis@gmail.com>
2853 * c-lex.c (lex_charconst): Initialize unsignedp.
2855 2008-06-27 Olivier Hainque <hainque@adacore.com>
2857 * gimplify.c (gimplify_modify_expr_to_memset): Assert our
2858 documented assumptions.
2860 2008-06-26 H.J. Lu <hongjiu.lu@intel.com>
2862 * dwarf2out.c: Remove trailing white spaces. Break long line
2865 2008-06-26 Richard Sandiford <rdsandiford@googlemail.com>
2867 * libfuncs.h (LTI_synchronize): New libfunc_index.
2868 (synchronize_libfunc): Declare.
2869 * builtins.c (expand_builtin_synchronize): Consider using
2870 synchronize_libfunc before falling back on an asm blockage.
2871 * config/mips/mips.c: Include libfuncs.h
2872 (mips_init_libfuncs): Initialize synchronize_libfunc for TARGET_MIPS16.
2874 2008-06-26 Nathan Froyd <froydnj@codesourcery.com>
2876 * config/rs6000/rs6000.c (emit_allocate_stack): Add copy_r11
2877 parameter. Copy stack_reg to r11 where appropriate.
2878 (no_global_regs_above): Add gpr parameter.
2879 (rs6000_stack_info): Only add padding for SPE save area if we
2880 are saving SPE GPRs and CR.
2881 (saveres_routine_syms): New variable.
2882 (FIRST_SAVRES_REGISTER, LAST_SAVRES_REGISTER, N_SAVRES_REGISTERS):
2884 (rs6000_savres_routine_sym): New function.
2885 (rs6000_emit_stack_reset, rs6000_restore_saved_cr): New functions,
2887 (rs6000_emit_epilogue): ...here. Use rs6000_use_multiple_p and
2888 rs6000_savres_strategy. Restore GPRs out-of-line if appropriate.
2889 Tweak FPR out-of-line saving.
2890 (rs6000_make_savres_rtx): New function.
2891 (rs6000_use_multiple_p): New function.
2892 (rs6000_savres_strategy): New function.
2893 (rs6000_emit_prologue): Use rs6000_savres_strategy. Save GPRs
2894 out-of-line if appropriate.
2895 * config/rs6000/sysv4.h (FP_SAVE_INLINE): Save FPRs out-of-line
2896 if we are optimizing for size.
2897 (GP_SAVE_INLINE): Define.
2898 (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX): Only use _l on 64-bit targets.
2899 * config/rs6000/darwin.h (GP_SAVE_INLINE): Define.
2900 * config/rs6000/aix.h (GP_SAVE_INLINE): Define.
2901 * config/rs6000/rs6000.md (*save_gpregs_<mode>): New insn.
2902 (*save_fpregs_<mode>): Add use of r11.
2903 (*restore_gpregs_<mode>): New insn.
2904 (*return_and_restore_gpregs_<mode>): New insn.
2905 (*return_and_restore_fpregs_<mode>): Adjust to clobber LR and
2907 * config/rs6000/spe.md (*save_gpregs_spe): New insn.
2908 (*restore_gpregs_spe): New insn.
2909 (*return_and_restore_gpregs_spe): New insn.
2910 * config/rs6000/predicates.md (save_world_operation): Fix check.
2912 2008-06-26 Steven Bosscher <steven@gcc.gnu.org>
2914 * tree-into-ssa (insert_phi_nodes_for): 'var' must be a DECL at
2915 this point, so assert that.
2917 2008-06-26 Steven Bosscher <steven@gcc.gnu.org>
2919 * cfganal.c: Include vec.h and vecprim.h.
2920 (compute_idf): Import from...
2921 * tree-into-ssa (compute_idf): ...here.
2922 * basic-block.h (compute_idf): Export.
2924 2008-06-26 Joseph Myers <joseph@codesourcery.com>
2926 * c-decl.c (merge_decls): Use !current_function_decl to check for
2927 extern declaration of C99 inline function being at file scope.
2929 2008-06-25 John David Anglin <dave.anglin@gcc-cnrc.gc.ca>
2931 * config.gcc (hppa[12]*-*-hpux10*): Don't use fixproto.
2933 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2935 * alias.c (record_alias_subset, init_alias_analysis): Fix
2936 -Wc++-compat and/or -Wcast-qual warnings.
2937 * attribs.c (lookup_attribute_spec): Likewise.
2938 * bb-reorder.c (find_traces, rotate_loop, find_traces_1_round,
2939 copy_bb, connect_traces,
2940 find_rarely_executed_basic_blocks_and_cr): Likewise.
2941 * bt-load.c (find_btr_def_group, add_btr_def, new_btr_user,
2942 note_btr_set, migrate_btr_defs): Likewise.
2943 * builtins.c (result_vector, expand_builtin_memcpy,
2944 expand_builtin_mempcpy_args, expand_builtin_strncpy,
2945 builtin_memset_read_str, expand_builtin_printf,
2946 fold_builtin_memchr, rewrite_call_expr, fold_builtin_printf):
2948 * caller-save.c (mark_set_regs): Likewise.
2949 * calls.c (expand_call, emit_library_call_value_1): Likewise.
2950 * cgraph.c (cgraph_edge): Likewise.
2951 * combine.c (likely_spilled_retval_1): Likewise.
2952 * coverage.c (htab_counts_entry_hash, htab_counts_entry_eq,
2953 htab_counts_entry_del, get_coverage_counts): Likewise.
2954 * cselib.c (new_elt_list, new_elt_loc_list, entry_and_rtx_equal_p,
2955 new_cselib_val): Likewise.
2956 * dbgcnt.c (dbg_cnt_process_opt): Likewise.
2957 * dbxout.c (dbxout_init, dbxout_type, output_used_types_helper):
2959 * df-core.c (df_compact_blocks): Likewise.
2960 * df-problems.c (df_grow_bb_info, df_chain_create): Likewise.
2961 * df-scan.c (df_grow_reg_info, df_ref_create,
2962 df_insn_create_insn_record, df_insn_rescan, df_notes_rescan,
2963 df_ref_compare, df_ref_create_structure, df_bb_refs_record,
2964 df_record_entry_block_defs, df_record_exit_block_uses,
2965 df_bb_verify): Likewise.
2966 * df.h (DF_REF_EXTRACT_WIDTH_CONST, DF_REF_EXTRACT_OFFSET_CONST,
2967 DF_REF_EXTRACT_MODE_CONST): New.
2968 * dominance.c (get_immediate_dominator, get_dominated_by,
2969 nearest_common_dominator, root_of_dom_tree,
2970 iterate_fix_dominators, first_dom_son, next_dom_son): Fix
2971 -Wc++-compat and/or -Wcast-qual warnings.
2972 * dse.c (clear_alias_set_lookup, get_group_info, gen_rtx_MEM,
2973 record_store, replace_read, check_mem_read_rtx, scan_insn,
2974 dse_step1, dse_record_singleton_alias_set): Likewise.
2975 * dwarf2asm.c (dw2_force_const_mem): Likewise.
2977 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2979 * dwarf2out.c (new_cfi, queue_reg_save, dwarf2out_begin_prologue,
2980 dwarf2out_frame_init, new_loc_descr, new_die, lookup_decl_die,
2981 lookup_decl_loc, add_var_loc_to_decl, compute_section_prefix,
2982 assign_symbol_names, htab_cu_hash, htab_cu_eq, htab_cu_del,
2983 build_abbrev_table, new_loc_list, output_comp_unit, add_arange,
2984 add_ranges_num, add_ranges_by_labels, file_info_cmp,
2985 file_name_acquire, output_file_names, add_const_value_attribute,
2986 premark_used_types_helper, file_table_eq, file_table_hash,
2987 lookup_filename, dwarf2out_var_location, dwarf2out_source_line,
2988 dwarf2out_init, file_table_relative_p): Fix -Wc++-compat and/or
2989 -Wcast-qual warnings.
2990 * ebitmap.c (ebitmap_array_grow, ebitmap_array_init,
2991 ebitmap_alloc, ebitmap_ior, ebitmap_and_compl): Likewise.
2992 * emit-rtl.c (get_mem_attrs, get_reg_attrs, gen_rtvec,
2993 gen_reg_rtx, start_sequence, init_emit): Likewise.
2994 * et-forest.c (et_new_occ, et_new_tree): Likewise.
2995 * except.c (init_eh_for_function, gen_eh_region,
2996 remove_unreachable_regions, add_ehl_entry, duplicate_eh_regions_1,
2997 arh_to_landing_pad, arh_to_label, add_action_record,
2998 add_call_site, switch_to_exception_section): Likewise.
2999 * expmed.c (synth_mult): Likewise.
3000 * expr.c (gen_group_rtx, emit_group_load, emit_group_store,
3001 store_expr): Likewise.
3002 * final.c (shorten_branches, final_scan_insn, debug_queue_symbol):
3004 * function.c (assign_stack_temp_for_type,
3005 allocate_struct_function, match_asm_constraints_1): Likewise.
3006 * gcov-io.c (gcov_allocate): Likewise.
3007 * gcse.c (GNEW, GCNEW, GNEWVEC, GCNEWVEC, GRESIZEVEC, GNEWVAR,
3008 GCNEWVAR, GRESIZEVAR, GOBNEW, GOBNEWVAR): New.
3009 (gcse_main, alloc_gcse_mem, alloc_gcse_mem, alloc_reg_set_mem,
3010 record_one_set, insert_expr_in_table, insert_set_in_table,
3011 dump_hash_table, compute_hash_table_work, alloc_hash_table,
3012 pre_ldst_expr_hash, pre_ldst_expr_eq, find_rtx_in_ldst,
3013 reg_set_info, reg_clear_last_set): Fix -Wc++-compat and/or
3014 -Wcast-qual warnings.
3016 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3018 * cse.c (approx_reg_cost_1, cse_insn): Fix -Wc++-compat and/or
3019 -Wcast-qual warnings.
3020 * gcc.c (process_command): Likewise.
3021 * genattrtab.c (oballoc): Use XOBNEW.
3022 (oballocvec): Define.
3023 (attr_hash_add_rtx, attr_hash_add_string, attr_string,
3024 get_attr_value, fill_attr, make_length_attrs, gen_attr, gen_insn,
3025 gen_delay, find_attr, gen_insn_reserv, gen_bypass_1): Fix
3026 -Wc++-compat and/or -Wcast-qual warnings.
3027 * genautomata.c (XCREATENODE, XCREATENODEVEC, XCREATENODEVAR,
3028 XCOPYNODE, XCOPYNODEVEC, XCOPYNODEVAR): New.
3029 (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
3030 gen_presence_absence_set, gen_automaton, gen_regexp_el,
3031 gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
3032 gen_regexp_sequence, gen_reserv, gen_insn_reserv, process_excls,
3033 add_excls, process_presence_absence_names,
3034 process_presence_absence_patterns, add_presence_absence,
3035 process_regexp, add_advance_cycle_insn_decl, get_free_alt_state,
3036 get_free_state, add_arc, get_free_automata_list_el,
3037 form_reserv_sets_list, copy_insn_regexp, transform_1, transform_2,
3038 transform_3, cache_presence, create_ainsns, create_automata,
3039 create_state_ainsn_table, dfa_insn_code_enlarge,
3040 output_trans_func, output_min_issue_delay_func,
3041 output_dead_lock_func, output_reset_func,
3042 output_get_cpu_unit_code_func, output_dfa_start_func,
3043 expand_automata): Likewise.
3044 * genextract.c (gen_insn): Likewise.
3045 * gengtype-lex.l: Likewise.
3046 * gengtype.c (read_input_list, adjust_field_type,
3047 process_gc_options): Likewise.
3048 * genoutput.c (note_constraint): Likewise.
3049 * genpreds.c (mangle, add_constraint): Likewise.
3050 * genrecog.c (process_define_predicate, new_decision,
3051 add_to_sequence): Likewise.
3052 * gensupport.c (record_insn_name): Likewise.
3054 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3056 * config/i386/driver-i386.c (detect_caches_amd,
3057 detect_caches_intel, host_detect_local_cpu): Fix -Wc++-compat
3058 and/or -Wcast-qual warnings.
3059 *ggc-common.c (ggc_mark_roots, gt_pch_note_object,
3060 gt_pch_note_reorder, relocate_ptrs, write_pch_globals,
3061 gt_pch_save): Likewise.
3062 * ggc-page.c (push_depth, push_by_depth, alloc_anon, alloc_page,
3063 gt_ggc_m_S, clear_marks, ggc_pch_read): Likewise.
3064 * global.c (compute_regsets): Likewise.
3065 * graph.c (print_rtl_graph_with_bb, clean_graph_dump_file,
3066 finish_graph_dump_file): Likewise.
3067 * haifa-sched.c (schedule_block, extend_h_i_d, extend_ready,
3068 unlink_bb_notes): Likewise.
3069 * integrate.c (get_hard_reg_initial_val): Likewise.
3070 * ipa-prop.c (ipa_push_func_to_list): Likewise.
3071 * ipa-struct-reorg.c (gen_var_name, gen_cluster_name): Likewise.
3072 * local-alloc.c (update_equiv_regs): Likewise.
3073 * loop-invariant.c (check_invariant_table_size,
3074 hash_invariant_expr, eq_invariant_expr, find_or_insert_inv):
3076 * loop-iv.c (check_iv_ref_table_size, analyzed_for_bivness_p,
3077 altered_reg_used, mark_altered): Likewise.
3078 * loop-unroll.c (si_info_eq, ve_info_eq, allocate_basic_variable,
3079 insert_var_expansion_initialization,
3080 combine_var_copies_in_loop_exit, apply_opt_in_copies,
3081 release_var_copies): Likewise.
3082 * matrix-reorg.c (mat_acc_phi_hash, mat_acc_phi_eq, mtt_info_eq,
3083 analyze_matrix_decl, add_allocation_site, analyze_transpose,
3084 analyze_accesses_for_phi_node, check_var_notmodified_p,
3085 check_allocation_function, find_sites_in_func,
3086 record_all_accesses_in_func, transform_access_sites,
3087 transform_allocation_sites): Likewise.
3088 * omp-low.c (new_omp_region, create_omp_child_function_name,
3089 check_omp_nesting_restrictions, check_combined_parallel,
3090 lower_omp_2, diagnose_sb_1, diagnose_sb_2): Likewise.
3091 * optabs.c (no_conflict_move_test, gen_libfunc, gen_fp_libfunc,
3092 gen_intv_fp_libfunc, gen_interclass_conv_libfunc,
3093 gen_intraclass_conv_libfunc, set_optab_libfunc, set_conv_libfunc):
3095 * opts-common.c (prune_options): Likewise.
3096 * opts.c (add_input_filename, print_filtered_help,
3097 get_option_state): Likewise.
3098 * params.c (add_params): Likewise.
3099 * passes.c (set_pass_for_id, next_pass_1,
3100 do_per_function_toporder, pass_fini_dump_file): Likewise.
3101 * postreload.c (reload_cse_simplify_operands): Likewise.
3102 * predict.c (tree_predicted_by_p, tree_predict_edge,
3103 clear_bb_predictions, combine_predictions_for_bb): Likewise.
3105 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3107 * ra.h (add_neighbor): Fix -Wc++-compat and/or -Wcast-qual
3109 * recog.c (check_asm_operands, validate_change_1): Likewise.
3110 * reg-stack.c (check_asm_stack_operands, subst_asm_stack_regs,
3111 subst_asm_stack_regs): Likewise.
3112 * regclass.c (regclass, som_hash, som_eq, record_subregs_of_mode,
3113 cannot_change_mode_set_regs, invalid_mode_change_p): Likewise.
3114 * regmove.c (reg_is_remote_constant_p): Likewise.
3115 * regrename.c (regrename_optimize, scan_rtx_reg,
3116 kill_clobbered_value, kill_set_value, kill_autoinc_value):
3118 * regstat.c (regstat_init_n_sets_and_refs, regstat_compute_ri,
3119 regstat_compute_calls_crossed): Likewise.
3120 * reload1.c (init_reload, new_insn_chain,
3121 has_nonexceptional_receiver, reload, copy_reloads,
3122 calculate_needs_all_insns, init_elim_table): Likewise.
3123 * rtl-factoring.c (compute_rtx_cost, fill_hash_bucket): Likewise.
3124 * rtl.c (shallow_copy_rtx_stat): Likewise.
3125 * rtlanal.c (parms_set): Likewise.
3126 * sbitmap.c (sbitmap_alloc, sbitmap_alloc_with_popcount,
3127 sbitmap_resize, sbitmap_vector_alloc): Likewise.
3128 * sched-ebb.c (earliest_block_with_similiar_load,
3129 add_deps_for_risky_insns): Likewise.
3130 * sched-rgn.c (find_rgns, gather_region_statistics, extend_rgns,
3131 schedule_region): Likewise.
3132 * see.c (eq_descriptor_pre_extension,
3133 hash_descriptor_pre_extension, hash_del_pre_extension,
3134 eq_descriptor_properties, hash_descriptor_properties,
3135 hash_del_properties, see_seek_pre_extension_expr,
3136 see_initialize_data_structures, see_print_register_properties,
3137 see_print_pre_extension_expr, see_delete_merged_def_extension,
3138 see_delete_unmerged_def_extension, see_emit_use_extension,
3139 see_pre_delete_extension, see_map_extension, see_commit_changes,
3140 see_analyze_merged_def_local_prop,
3141 see_analyze_merged_def_local_prop,
3142 see_analyze_unmerged_def_local_prop, see_analyze_use_local_prop,
3143 see_set_prop_merged_def, see_set_prop_unmerged_def,
3144 see_set_prop_unmerged_use, see_print_one_extension,
3145 see_merge_one_use_extension, see_merge_one_def_extension,
3146 see_store_reference_and_extension, see_update_uses_relevancy,
3147 see_update_defs_relevancy): Likewise.
3148 * statistics.c (hash_statistics_hash, hash_statistics_eq,
3149 hash_statistics_free, curr_statistics_hash): Likewise.
3150 * stmt.c (parse_output_constraint, decl_overlaps_hard_reg_set_p,
3151 expand_asm_operands, expand_return, case_bit_test_cmp,
3152 expand_case): Likewise.
3153 * stor-layout.c (start_record_layout): Likewise.
3154 * stringpool.c (ggc_alloc_string, gt_pch_n_S,
3155 gt_pch_save_stringpool): Likewise.
3156 * tree-data-ref.c (hash_stmt_vertex_info,
3157 have_similar_memory_accesses_1, ref_base_address_1): Likewise.
3158 * tree-ssa-phiopt.c (name_to_bb_hash): Likewise.
3160 2008-06-25 Uros Bizjak <ubizjak@gmail.com>
3163 * config/i386/i386.md : Change constraints of HImode and QImode
3164 immediate operands from "i" to "n". Change SImode "ni" constraint to
3165 "i" and SImode "rmi" constraint to "g". Remove all constraints
3166 from const0_operand and const1_operand predicated operands.
3167 (i): Change QImode and HImode attribute from "i" to "n".
3168 (*subqi_2): Change HImode operands to QImode.
3171 2008-06-25 Olivier Hainque <hainque@adacore.com>
3173 * Makefile.in (GTFILES_H): Use | instead of ; as separator in
3176 2008-06-25 Richard Guenther <rguenther@suse.de>
3178 * tree-ssa-structalias.c (fieldoff_compare): Make sure to
3179 not overflow the result type.
3181 2008-06-25 Richard Guenther <rguenther@suse.de>
3183 * tree-vn.c (vn_add): Handle TRUTH_*_EXPR.
3184 (vn_lookup): Likewise.
3186 2008-06-25 Richard Guenther <rguenther@suse.de>
3188 PR tree-optimization/35518
3189 * fold-const.c (fold_ternary): Strip trivial BIT_FIELD_REFs.
3190 * tree-sra.c (instantiate_element): Use fold_build3 to build
3192 (try_instantiate_multiple_fields): Likewise.
3194 2008-06-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
3196 * config/rs6000/rs6000.md: Change all string instruction's clobber to
3199 2008-06-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
3201 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Set
3202 use_backchain_to_restore_sp to true
3203 if the offset of the link register save area would go over the 32k - 1
3204 offset limit of the load
3207 2008-06-25 Hans-Peter Nilsson <hp@axis.com>
3209 * doc/invoke.texi (Optimize Options) <fstrict-aliasing>: Add
3210 anchor for the type-punning blurb. Cross-reference "Structures
3211 unions enumerations and bit-fields implementation". Provide a
3212 cast-through-pointer example. Make final sentence self-contained.
3213 * doc/implement-c.texi (Structures unions enumerations and
3214 bit-fields implementation): Cross-reference the type-punning blurb
3215 in the -fstrict-aliasing documentation.
3217 2008-06-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
3220 * builtins.c (expand_builtin_nonlocal_goto): Stabilize the address of
3221 the memory instead of the memory itself for the save area.
3223 2008-06-24 Olivier Hainque <hainque@adacore.com>
3224 Nicolas Roche <roche@adacore.com>
3226 * gengtype.c (srcdir_len): size_t instead of int.
3227 (get_file_realbasename): New function. For F a filename, the real
3228 basename of F, with all the path components stripped.
3229 (get_file_srcdir_relative_path): New function. For F a filename, the
3230 relative path to F from $(srcdir).
3231 (get_file_basename): Rewrite using get_file_srcdir_relative_path and
3232 get_file_realbasename. Adjust the head comment.
3233 (get_prefix_langdir_index): New function. For F a filename, return the
3234 lang_dir_names[] relative index of the language directory that is
3236 (get_file_langdir): For F a filename, return the name of the language
3237 directory where F is located.
3238 (get_file_gtfilename): New function. The gt- output file name for an
3240 (get_output_file_with_visibility): Replace in-line computations with
3241 uses of get_file_gtfilename and get_prefix_langdir_index.
3242 * Makefile.in (GTFILES_H): Adjust to match what gengtype generates.
3244 2008-06-24 Jakub Jelinek <jakub@redhat.com>
3246 PR tree-optimization/36504
3247 * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Skip
3248 references without base address.
3250 2008-06-23 Uros Bizjak <ubizjak@gmail.com>
3253 * calls.c (expand_call): Increase alignment for recursive functions.
3255 2008-06-23 Anatoly Sokolov <aesok@post.ru>
3257 * config/avr/avr.c (avr_function_value): Add new 'outgoing' argument.
3258 (TARGET_FUNCTION_VALUE): New define.
3259 * config/avr/avr-protos.h (avr_function_value): Remove declaration.
3260 * config/avr/avr.h (FUNCTION_VALUE): Remove.
3262 2008-06-23 Uros Bizjak <ubizjak@gmail.com>
3264 * config/i386/i386.md (fmodxf3): Change sequence of move instructions.
3265 (fmod<mode>3): Ditto.
3266 (remainderxf3): Ditto.
3267 (remainder<mode>3): Ditto.
3269 2008-06-23 Jakub Jelinek <jakub@redhat.com>
3272 * emit-rtl.c (set_reg_attrs_from_value): Do nothing if
3273 REG is a hard register.
3275 PR tree-optimization/36508
3276 * tree-ssa-pre.c (compute_antic): Allow num_iterations up to
3277 499, don't check it at all in release compilers.
3279 2008-06-23 Uros Bizjak <ubizjak@gmail.com>
3281 * config/i386/i386.md (*fop_<mode>_1_i387): Use SSE_FLOAT_MODE_P
3282 together with SSE_TARGET_MATH to disable insn pattern.
3283 (*fop_<MODEF:mode>_2_i387): Ditto.
3284 (*fop_<MODEF:mode>_3_i387): Ditto.
3286 2008-06-22 Andy Hutchinson <hutchinsonandy@aim.com>
3288 * config/avr/avr.h (SUPPORTS_INIT_PRIORITY): Define.
3290 2008-06-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
3293 * gimplify.c (gimplify_asm_expr): Check the return code of
3294 parse_output_constraint call, set function return and is_inout
3297 2008-06-22 Ian Lance Taylor <iant@google.com>
3299 * c-lex.c (narrowest_unsigned_type): Change itk to int.
3300 (narrowest_signed_type): Likewise.
3301 * c-typeck.c (c_common_type): Change local variable mclass to enum
3303 (parser_build_binary_op): Compare the TREE_CODE_CLASS with
3304 tcc_comparison, not the tree code itself.
3305 * c-common.c (def_fn_type): Pass int, not an enum, to va_arg.
3306 (c_expand_expr): Cast modifier to enum expand_modifier.
3307 * c-common.h (C_RID_CODE): Add casts.
3308 (C_SET_RID_CODE): Define.
3309 * c-parser.c (c_parse_init): Use C_SET_RID_CODE.
3310 (c_lex_one_token): Add cast to avoid warning.
3311 (c_parser_objc_type_name): Rename local typename to type_name.
3312 (check_no_duplicate_clause): Change code parameter to enum
3314 (c_parser_omp_var_list_parens): Change kind parameter to enum
3316 (c_parser_omp_flush): Pass OMP_CLAUSE_ERROR, not 0, to
3317 c_parser_omp_list_var_parens.
3318 (c_parser_omp_threadprivate): Likewise.
3319 * cp/lex.c (init_reswords): Use C_SET_RID_CODE.
3320 * cp/parser.c (cp_lexer_get_preprocessor_token): Likewise.
3321 * c-format.c (NO_FMT): Define.
3322 (printf_length_specs): Use NO_FMT.
3323 (asm_fprintf_length_specs): Likewise.
3324 (gcc_diag_length_specs): Likewise.
3325 (scanf_length_specs): Likewise.
3326 (strfmon_length_specs): Likewise.
3327 (gcc_gfc_length_specs): Likewise.
3328 (printf_flag_specs): Change 0 to STD_C89.
3329 (asm_fprintf_flag_specs): Likewise.
3330 (gcc_diag_flag_specs): Likewise.
3331 (gcc_cxxdiag_flag_specs): Likewise.
3332 (scanf_flag_specs): Likewise.
3333 (strftime_flag_specs): Likewise.
3334 (strfmon_flag_specs): Likewise.
3335 (print_char_table): Likewise.
3336 (asm_fprintf_char_table): Likewise.
3337 (gcc_diag_char_table): Likewise.
3338 (gcc_tdiag_char_table): Likewise.
3339 (gcc_cdiag_char_table): Likewise.
3340 (gcc_cxxdiag_char_table): Likewise.
3341 (gcc_gfc_char_table): Likewise.
3342 (scan_char_table): Likewise.
3343 (time_char_table): Likewis.
3344 (monetary_char_table): Likewise.
3345 * c-format.h (BADLEN): Likewise.
3347 2008-06-21 Ian Lance Taylor <iant@google.com>
3349 * tree.h (enum tree_code): Include all-tree.def, not tree.def.
3350 Define END_OF_BASE_TREE_CODES around inclusion.
3351 * tree.c (tree_code_type): New global array.
3352 (tree_code_length, tree_code_name): Likewise.
3353 * Makefile.in (TREE_H): Add all-tree.def, c-common.def, and
3355 (all-tree.def, s-alltree): New targets.
3356 (gencheck.h, s-gencheck): Remove.
3357 (tree.o): Depend upon all-tree.def.
3358 (build/gencheck.o): Remove gencheck.h dependency.
3359 (mostlyclean): Don't remove gencheck.h.
3360 * c-common.h (enum c_tree_code): Remove.
3361 * c-lang.c (tree_code_type): Remove.
3362 (tree_code_length, tree_code_name): Remove.
3363 * gencheck.c (tree_codes): Include all-tree.def, rather than
3364 tree.def, c-common.def, and gencheck.h. Undefined DEFTREECODE
3366 * tree-browser.c (tb_tree_codes): Include all-tree.def, rather
3368 * cp/cp-tree.h (enum cplus_tree_code): Remove.
3369 (operator_name_info): Size to MAX_TREE_CODES.
3370 (assignment_operator_name_info): Likewise.
3371 * cp/cp-lang.c (tree_code_type): Remove.
3372 (tree_code_length, tree_code_name): Remove.
3373 * cp/lex.c (operator_name_info): Size to MAX_TREE_CODES.
3374 (assignment_operator_name_info): Likewise.
3375 * cp/decl.c (grok_op_properties): Change LAST_CPLUS_TREE_CODE to
3377 * cp/mangle.c (write_expression): Likewise.
3378 * cp/Make-lang.in (CXX_TREE_H): Remove cp/cp-tree.def.
3379 * fortran/f95-lang.c (tree_code_type): Remove.
3380 (tree_code_length, tree_code_name): Remove.
3381 * java/java-tree.h (enum java_tree_code): Remove.
3382 * java/lang.c (tree_code_type): Remove.
3383 (tree_code_length, tree_code_name): Remove.
3384 * java/Make-lang.in (JAVA_TREE_H): Remove java/java-tree.def.
3385 * objc/objc-act.h (enum objc_tree_code): Remove.
3386 * objc/objc-lang.c (tree_code_type): Remove.
3387 (tree_code_length, tree_code_name): Remove.
3388 * objcp/objcp-lang.c (tree_code_type): Remove.
3389 (tree_code_length, tree_code_name): Remove.
3390 * ada/ada-tree.h (enum gnat_tree_code): Remove.
3391 * ada/Make-lang.in (ADA_TREE_H): Remove ada/ada-tre.def.
3392 * ada/misc.c (tree_code_type): Remove.
3393 (tree_code_length, tree_code_name): Remove.
3395 2008-06-21 Bernhard Fischer <aldot@gcc.gnu.org>
3397 * tree-ssa-pre.c (fini_antic): Bitmap_sets have to be freed before
3398 the grand_bitmap_obstack.
3400 2008-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3402 * ggc.h (GGC_RESIZEVAR): New, reorder macros.
3403 * tracer.c (tail_duplicate): Fix for -Wc++-compat.
3404 * tree-affine.c (aff_combination_expand, free_name_expansion): Likewise.
3405 * tree-cfg.c (replace_by_duplicate_decl, replace_ssa_name,
3406 move_stmt_r, new_label_mapper): Likewise.
3407 * tree-complex.c (cvc_lookup): Likewise.
3408 * tree-dfa.c (create_function_ann): Likewise.
3409 * tree-dump.c (dump_register): Likewise.
3410 * tree-if-conv.c (tree_if_conversion, add_to_predicate_list,
3411 find_phi_replacement_condition): Likewise.
3412 * tree-inline.c (copy_phis_for_bb, estimate_num_insns_1,
3413 tree_function_versioning): Likewise.
3414 * tree-into-ssa.c (cmp_dfsnum): Likewise.
3415 * tree-iterator.c (tsi_link_before, tsi_link_after): Likewise.
3416 * tree-nested.c (lookup_field_for_decl, lookup_tramp_for_decl,
3417 get_nonlocal_debug_decl, convert_nonlocal_reference,
3418 convert_nonlocal_omp_clauses, get_local_debug_decl,
3419 convert_local_reference, convert_local_omp_clauses,
3420 convert_nl_goto_reference, convert_nl_goto_receiver,
3421 convert_tramp_reference, convert_call_expr): Likewise.
3422 * tree-outof-ssa.c (contains_tree_r): Likewise.
3423 * tree-parloops.c (reduction_phi, initialize_reductions,
3424 eliminate_local_variables_1, add_field_for_reduction,
3425 add_field_for_name, create_phi_for_local_result,
3426 create_call_for_reduction_1, create_loads_for_reductions,
3427 create_stores_for_reduction, create_loads_and_stores_for_name):
3429 * tree-phinodes.c (allocate_phi_node): Likewise.
3430 * tree-predcom.c (order_drefs, execute_pred_commoning_cbck): Likewise.
3431 * tree-sra.c (sra_elt_hash, sra_elt_eq, lookup_element): Likewise.
3432 * tree-ssa-alias.c (get_mem_sym_stats_for): Likewise.
3433 * tree-ssa-coalesce.c (compare_pairs): Likewise.
3434 * tree-ssa-loop-im.c (mem_ref_in_stmt, memref_hash, memref_eq,
3435 memref_free, gather_mem_refs_stmt, vtoe_hash, vtoe_eq, vtoe_free,
3436 record_vop_access, get_vop_accesses, get_vop_stores): Likewise.
3437 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
3438 * tree-ssa-sccvn.c (VN_INFO_GET, free_phi, free_reference,
3439 vn_nary_op_insert): Likewise.
3440 * tree-ssa.c (redirect_edge_var_map_add,
3441 redirect_edge_var_map_clear, redirect_edge_var_map_dup): Likewise.
3442 * tree-vectorizer.c (vectorize_loops): Likewise.
3443 * tree.c (make_node_stat, copy_node_stat, build_int_cst_wide,
3444 build_fixed, build_real, make_tree_binfo_stat, make_tree_vec_stat,
3445 tree_cons_stat, build1_stat, build_variant_type_copy,
3446 decl_init_priority_lookup, decl_fini_priority_lookup,
3447 decl_priority_info, decl_restrict_base_lookup,
3448 decl_restrict_base_insert, decl_debug_expr_lookup,
3449 decl_debug_expr_insert, decl_value_expr_lookup,
3450 decl_value_expr_insert, type_hash_eq, type_hash_lookup,
3451 type_hash_add, get_file_function_name, tree_check_failed,
3452 tree_not_check_failed, tree_range_check_failed,
3453 omp_clause_range_check_failed, build_omp_clause,
3454 build_vl_exp_stat): Likewise.
3455 * value-prof.c (gimple_histogram_value,
3456 gimple_duplicate_stmt_histograms): Likewise.
3457 * var-tracking.c (attrs_list_insert, attrs_list_copy,
3458 unshare_variable, variable_union_info_cmp_pos, variable_union,
3459 dataflow_set_different_1, dataflow_set_different_2,
3460 vt_find_locations, variable_was_changed, set_variable_part,
3461 emit_notes_for_differences_1, emit_notes_for_differences_2): Likewise.
3462 * varasm.c (prefix_name, emutls_decl, section_entry_eq,
3463 section_entry_hash, object_block_entry_eq,
3464 object_block_entry_hash, create_block_symbol,
3465 initialize_cold_section_name, default_function_rodata_section,
3466 strip_reg_name, set_user_assembler_name, const_desc_eq,
3467 build_constant_desc, output_constant_def, lookup_constant_def,
3468 const_desc_rtx_hash, const_desc_rtx_eq, const_rtx_hash_1,
3469 create_constant_pool, force_const_mem, compute_reloc_for_rtx_1,
3470 default_internal_label): Likewise.
3471 * varray.c (varray_init, varray_grow): Likewise.
3472 * vec.c (vec_gc_o_reserve_1, vec_heap_o_reserve_1): Likewise.
3474 2008-06-20 Uros Bizjak <ubizjak@gmail.com>
3476 * config/i386/i386.md (*jcc_fused_1): Handle all valid compare
3477 operators for "test" insn. Macroize insn using SWI mode macro.
3478 (*jcc_fused_2): Ditto.
3479 (*jcc_fused_3): Macroize insn using SWI mode macro.
3480 (*jcc_fused_4): Ditto.
3482 2008-06-20 Bernhard Fischer <aldot@gcc.gnu.org>
3484 * tree-ssa-pre.c: Fix typo in comment.
3485 (init_antic, fini_antic): Add explicit funtions for
3486 initializing and deinitializing ANTIC and AVAIL sets.
3487 (create_expression_by_pieces): Fix typo in comment.
3488 Remove redundant set of new_stuff and use NULL_TREE instead of NULL.
3489 (execute_pre): Eventually dump details about ANTIC_IN.
3491 2008-06-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3493 * collect2.c (main, add_to_list): Fix for -Wc++-compat.
3494 * gcc.c (translate_options, init_spec, store_arg, read_specs,
3495 add_to_obstack, file_at_path, find_a_file, execute,
3496 add_preprocessor_option, add_assembler_option, add_linker_option,
3497 process_command, insert_wrapper, do_option_spec, do_self_spec,
3498 spec_path, do_spec_1, is_directory, main, used_arg,
3499 getenv_spec_function): Likewise.
3500 * tlink.c (symbol_hash_lookup, file_hash_lookup,
3501 demangled_hash_lookup, symbol_push, file_push, frob_extension):
3504 2008-06-19 Kenneth Zadeck <zadeck@naturalbridge.com>
3506 * doc/rtl.texi: Updated subreg section.
3508 2008-06-19 Jakub Jelinek <jakub@redhat.com>
3511 * cgraphunit.c (cgraph_process_new_functions): Don't clear
3512 node->needed and node->reachable.
3513 * cgraphbuild.c (record_reference): Handle OMP_PARALLEL and OMP_TASK.
3514 * omp-low.c (delete_omp_context): Call finalize_task_copyfn.
3515 (expand_task_call): Don't call expand_task_copyfn.
3516 (expand_task_copyfn): Renamed to...
3517 (finalize_task_copyfn): ... this.
3519 2008-06-19 Jan Hubicka <jh@suse.cz>
3521 * builtins.c (expand_builtin_nonlocal_goto): Stabilize r_sp before
3522 clobbering framepointer.
3524 2008-06-19 Jan Hubicka <jh@suse.cz>
3526 * tree-optimize.c (execute_early_local_optimizations): Set
3527 cgraph_state only at first invocation.
3529 2008-06-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3531 * system.h (-Wc++-compat): Activate as a warning, no an error.
3533 2008-06-19 Uros Bizjak <ubizjak@gmail.com>
3535 * config/i386/i386.md (*jcc_fused_1): Use ASM_COMMENT_START
3536 instead of "#" in insn asm template.
3537 (*jcc_fused_2): Ditto.
3539 2008-06-19 Uros Bizjak <ubizjak@gmail.com>
3541 * config/i386/i386.h (ix86_tune_indices)
3542 [X86_TUNE_FUSE_CMP_AND_BRANCH]: New.
3543 (TARGET_FUSE_CMP_AND_BRANCH): New define.
3544 * config/i386/i386.md (*jcc_fused_1): New insn pattern
3545 (*jcc_fused_2): Ditto.
3546 * config/i386/i386.c (ix86_tune_features): Add m_CORE2 to
3547 X86_TUNE_FUSE_CMP_AND_BRANCH targets.
3548 (print operand): Handle 'E' and 'e' code.
3550 2008-06-19 Anatoly Sokolov <aesok@post.ru>
3552 * config/avr/avr.c (avr_mcu_t): Add attiny13a.
3553 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
3554 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
3556 2008-06-19 Bernhard Fischer <aldot@gcc.gnu.org>
3558 * cgraphunit.c (cgraph_finalize_function): Remove redundant setting of
3560 (cgraph_expand_function): Use local copy of decl.
3561 (cgraph_expand_all_functions): Remove redundant initialization of
3563 (cgraph_optimize): Reword internal_error message.
3565 2008-06-19 Chung-Lin Tang <ctang@marvell.com>
3567 * arm-protos.h (arm_return_in_memory): Remove public
3568 arm_return_in_memory() prototype.
3569 * arm.c (arm_return_in_memory): Add static prototype, add target
3570 hook macro, change definition and comments.
3571 * arm.h (TARGET_RETURN_IN_MEMORY): Remove.
3573 2008-06-19 Ben Elliston <bje@au.ibm.com>
3575 * dfp.h, dfp.c, config/dfp-bit.h, config/dfp-bit.c, real.h,
3576 real.c: Remove references to IEEE 754R.
3577 * doc/install.texi (Configuration): IEEE 754R -> IEEE 754-2008.
3578 * doc/libgcc.texi (Decimal float library routines): Likewise.
3580 2008-06-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3582 * targhooks.h (struct gcc_target): New member unwind_word_mode.
3583 (default_unwind_word_mode): Add prototype.
3584 * targhooks.c (default_unwind_word_mode): New function.
3585 (default_eh_return_filter_mode): Return targetm.unwind_word_mode ()
3586 instead of word_mode.
3587 * target-def.h (TARGET_UNWIND_WORD_MODE): New macro.
3588 (TARGET_INITIALIZER): Use it.
3590 * c-common.c (handle_mode_attribute): Support "unwind_word"
3592 * unwind-generic.h (_Unwind_Word, _Unwind_Sword): Use it.
3594 * except.c (init_eh): Use targetm.unwind_word_mode () instead of
3595 word_mode to access SjLj_Function_Context member "data".
3596 (sjlj_emit_dispatch_table): Likewise. Also, perform type
3597 conversion from targetm.eh_return_filter_mode () to
3598 targetm.unwind_word_mode () if they differ.
3600 * builtin-types.def (BT_UNWINDWORD): New primitive type.
3601 (BT_FN_UNWINDWORD_PTR): New function type.
3602 (BT_FN_WORD_PTR): Remove.
3603 * builtins.def (BUILT_IN_EXTEND_POINTER): Use BT_FN_UNWINDWORD_PTR.
3604 * except.c (expand_builtin_extend_pointer): Convert pointer to
3605 targetm.unwind_word_mode () instead of word_mode.
3607 * config/spu/spu-protos.h (spu_eh_return_filter_mode): Remove.
3608 * config/spu/spu.c (spu_eh_return_filter_mode): Remove.
3609 (spu_unwind_word_mode): New function.
3610 (TARGET_EH_RETURN_FILTER_MODE): Do not define.
3611 (TARGET_UNWIND_WORD_MODE): Define.
3612 * config/spu/t-spu-elf (TARGET_LIBGCC2_CFLAGS): Remove -D__word__=SI.
3614 2008-06-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3616 * config/spu/spu.c (reg_align): Remove.
3617 (regno_aligned_for_load): Also accept ARG_POINTER_REGNUM.
3618 (spu_split_load): Use regno_aligned_for_load instead of reg_align.
3619 (spu_split_store): Likewise.
3621 2008-06-18 Bernhard Fischer <aldot@gcc.gnu.org>
3623 * gcc/tree-vn.c: Fix typo in comment.
3625 2008-06-18 Jan Hubicka <jh@suse.cz>
3627 * cgraphunit.c (cgraph_optimize): Output debug info when doing
3628 toplevel reorder too.
3630 2008-06-18 Jan Hubicka <jh@suse.cz>
3632 * c-opts.c (c_common_post_options): PCH is not compatible with
3634 * opts.c (handle_options): Enable unit-at-a-time at O0 along with
3635 -fno-toplevel-reorder by default now.
3637 2008-06-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3639 PR documentation/30739
3640 * doc/install.texi (Prerequisites): Document dependency on awk.
3642 2008-06-18 Uros Bizjak <ubizjak@gmail.com>
3643 Ian Lance Taylor <iant@google.com>
3645 PR rtl-optimization/35604
3646 * jump.c (redirect_exp_1): Skip the condition of an IF_THEN_ELSE. We
3647 only want to change jump destinations, not eventual label comparisons.
3649 2008-06-16 Jan Hubicka <jh@suse.cz>
3651 * cgraphunit.c (cgraph_expand_pending_functions): Give up at
3653 (cgraph_analyze_function): Likewise.
3655 2008-06-16 Jan Hubicka <jh@suse.cz>
3657 * cgraph.h (cgraph_mark_if_needed): New function.
3658 * cgraphunit.c (cgraph_mark_if_needed): New function.
3659 * c-decl.c (duplicate_decl): Use it.
3661 2008-06-16 Jan Hubicka <jh@suse.cz>
3663 * cgraph.c (cgraph_add_new_function): When in expansion state, do
3666 2008-06-16 Jan Hubicka <jh@suse.cz>
3668 * tree-outof-ssa.c (pass_out_of_ssa): Do not depend on PROP_alias.
3670 2008-06-16 Daniel Jacobowitz <dan@codesourcery.com>
3671 Kazu Hirata <kazu@codesourcery.com>
3672 Maxim Kuvyrkov <maxim@codesourcery.com
3674 * config.gcc (mips64el-st-linux-gnu): Use mips/st.h and mips/t-st.
3675 * config.host: Use driver-native.o and mips/x-native for mips*-linux*.
3676 * config/mips/linux.h (host_detect_local_cpu): Declare, add to
3677 EXTRA_SPEC_FUNCTIONS.
3678 (MARCH_MTUNE_NATIVE_SPECS, BASE_DRIVER_SELF_SPECS): New macros.
3679 (DRIVER_SELF_SPECS): Adjust.
3680 * config/mips/linux64.h (DRIVER_SELF_SPECS): Update.
3681 * config/mips/st.h, config/mips/t-st: New.
3682 * config/mips/driver-native.c, config/mips/x-native: New.
3683 * doc/invoke.texi (MIPS): Document 'native' value for -march and
3686 2008-06-18 Maxim Kuvyrkov <maxim@codesourcery.com>
3688 * config/mips/mips.h (ISA_HAS_CONDMOVE): Slice ISA_HAS_FP_CONDMOVE
3690 (ISA_HAS_FP_CONDMOVE): New macro.
3691 (ISA_HAS_FP_MADD4_MSUB4, ISA_HAS_FP_MADD3_MSUB3): New macros.
3692 (ISA_HAS_NMADD_NMSUB): Rename to ISA_HAS_NMADD4_NMSUB4.
3693 (ISA_HAS_NMADD3_NMSUB3): New macro.
3694 * config/mips/mips.c (mips_rtx_costs): Update.
3695 * config/mips/mips.md (MOVECC): Don't use FP conditional moves when
3696 compiling for ST Loongson 2E/2F.
3697 (madd<mode>): Rename to madd4<mode>. Update.
3698 (madd3<mode>): New pattern.
3699 (msub<mode>): Rename to msub4<mode>. Update.
3700 (msub3<mode>): New pattern.
3701 (nmadd<mode>): Rename to nmadd4<mode>. Update.
3702 (nmadd3<mode>): New pattern.
3703 (nmadd<mode>_fastmath): Rename to nmadd4<mode>_fastmath. Update.
3704 (nmadd3<mode>_fastmath): New pattern.
3705 (nmsub<mode>): Rename to nmsub4<mode>. Update.
3706 (nmsub3<mode>): New pattern.
3707 (nmsub<mode>_fastmath): Rename to nmsub4<mode>_fastmath. Update.
3708 (nmsub3<mode>_fastmath): New pattern.
3709 (mov<SCALARF:mode>_on_<MOVECC:mode>, mov<mode>cc): Update.
3711 2008-06-18 Steven Bosscher <steven@gcc.gnu.org>
3713 * df.h (struct df_ref): Replace 'insn' field with 'insn_info' field.
3714 (DF_REF_INSN_INFO): New.
3715 (DF_REF_INSN, DF_REF_INSN_UID): Rewrite macros using DF_REF_INSN_INFO.
3716 (DF_REF_IS_ARTIFICIAL): Artificial refs are now identified as refs
3717 with a NULL DF_REF_INSN_INFO.
3718 (DF_INSN_INFO_GET, DF_INSN_INFO_SET): Renamed from DF_INSN_GET and
3720 (DF_INSN_INFO_LUID, DF_INSN_INFO_DEFS, DF_INSN_INFO_USES,
3721 DF_INSN_INFO_EQ_USES): New.
3722 (DF_INSN_LUID, DF_INSN_DEFS, DF_INSN_USES, DF_INSN_EQ_USES,
3723 DF_INSN_UID_LUID, DF_INSN_UID_DEFS, DF_INSN_UID_USES,
3724 DF_INSN_UID_EQ_USES): Rewrite using DF_INSN_INFO_* macros.
3725 * df-core.c: Update comment for above changes.
3726 (df_insn_debug_regno): Use DF_INSN_INFO_GET instead of INSN_UID and
3727 DF_INSN_UID_* macros.
3728 (df_ref_debug): Check for NULL DF_REF_INSN_INFO.
3729 * df-scan.c (df_ref_record): Take a df_insn_info instead of an
3730 insn rtx. Update all callers.
3731 (df_def_record_1, df_defs_record, df_uses_record, df_get_call_refs,
3732 df_ref_create_structure, df_insn_refs_collect): Likewise.
3733 (df_ref_equal_p): Compare DF_REF_INSN_INFO pointers for the refs.
3734 * df-problems.c (df_chain_dump): Test for non-NULL DF_REF_INSN_INFO.
3735 (df_live_bb_local_compute): Retrieve DF_INSN_INFO, use DF_INSN_INFO_*
3736 macros to access the insn refs.
3737 (df_chain_top_dump, df_chain_bottom_dump, df_byte_lr_alloc): Likewise.
3738 * fwprop.c (use_killed_between): Use DF_REF_INSN accessor macro.
3739 (all_uses_available): Retrieve DF_INSN_INFO for def_insn, and use it
3740 for accessing the refs.
3741 (try_fwprop_subst): Likewise.
3742 * ddg.c (add_cross_iteration_register_deps): Use DF_REF_INSN macro.
3743 * web.c (union_defs): Retrieve DF_INSN_INFO for def_insn, and use it
3744 for accessing the refs.
3745 * loop-invariant.c (invariant_for_use): Use DF_REF_BB macro.
3746 (check_dependencies): Use DF_INSN_INFO_GET, use DF_INSN_INFO_* macros
3747 to look at the insn refs.
3748 (record_uses): Likewise.
3749 * dce.c (deletable_insn_p): Don't tolerate artificial DEFs in this
3751 (mark_artificial_uses): Don't mark_insn for artificial refs.
3752 (mark_reg_rependencies): Likewise.
3754 * doc/rtl.texi: Remove documentation of ADDRESSOF.
3756 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3758 * configure: Regenerate.
3760 2008-06-17 Eric B. Weddington <eric.weddington@atmel.com>
3762 * config/avr/avr.c (avr_mcu_t): Remove atmega32hvb.
3763 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
3764 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
3766 2008-06-17 Eric B. Weddington <eric.weddington@atmel.com>
3768 * config/avr/avr.c (avr_mcu_t): Add attiny167.
3769 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
3770 * gcc/config/avr/t-avr (MULTILIB_MATCHES): Likewise.
3772 2008-06-17 Eric B. Weddington <eric.weddington@atmel.com>
3774 * config/avr/avr.c (avr_mcu_t): Add atmega32u4.
3775 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
3776 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
3778 2008-06-17 Bernhard Fischer <aldot@gcc.gnu.org>
3780 * tree-ssa-sccvn.c: Fix format of comments.
3782 2008-06-17 Bernhard Fischer <aldot@gcc.gnu.org>
3784 * cgraph.c: Remove unneeded forward declarations of eq_node()
3787 2008-06-17 Steven Bosscher <steven@gcc.gnu.org>
3789 * see.c (see_analyse_one_def): Do not look for REG_LIBCALL and
3791 (see_update_relevancy): Likewise.
3792 * fwprop.c (try_fwprop_subst): Likewise.
3793 * rtlanal.c (noop_move_p): Likewise.
3794 * builtins.c (expand_buitlin_mathfn): Don't try to add REG_EQUAL
3795 notes to non-existing libcall blocks.
3796 * cse.c (cse_insn): Change prototype. Don't update libcall notes.
3798 (cse_extended_basic_block): Don't track libcall and no-conflict notes.
3799 (dead_libcall_p): Remove.
3800 (delete_trivially_dead_insns): Don't use it.
3801 * web.c (union_defs): Remove comment about keeping nops.
3802 * gcse.c (hash_scan_insn): Don't take libcall pointers.
3803 (compute_hash_table_work): Don't track libcall notes.
3804 (do_local_cprop): Don't take libcall pointers. Don't update
3806 (adjust_libcall_notes): Deleted.
3807 (local_cprop_pass): Remove stack for nested libcalls (which shouldn't
3808 ever have existed in the first place).
3809 (replace_store_insn): Don't try to remove libcall notes.
3810 * lower-subreg.c (move_libcall_note, move_retval_note): Deleted.
3811 (resolve_reg_notes): Don't call them.
3812 (resolve_simple_move): Likewise.
3813 (decompose_multiword_subregs): Remove block handling REG_RETVAL notes.
3814 Don't remove REG_RETVAL notes.
3815 * emit-rtl.c (try_split): Don't update libcall notes.
3816 (emit_copy_of_insn_after): Dito.
3817 * cselib.c (cselib_current_insn_in_libcall): Remove.
3818 (cselib_process_insn): Don't set/clear it.
3819 (new_elt_loc_list): Don't record it.
3820 (cselib_init): Don't initialize it.
3821 * cselib.c (struct elt_loc_list): Remove in_libcall field.
3822 * loop-invariant.c (find_invariant_insn): Don't look for libcall
3824 * sched-deps.c (sched_analyze_insn): Don't group libcall blocks.
3825 (sched_analyze): Don't set up deps->libcall_block_tail_insn.
3826 (init_deps): Don't initialize it.
3827 * sched-int.h (struct deps): Rremove libcall_block_tail_insn field.
3828 * combine.c (delete_noop_moves): Don't update libcall notes.
3829 (can_combine_p): Remove now pointless #if 0 block.
3830 (try_combine): Remove another obsolete #if 0 block.
3831 (distribute_notes): Don't distribute libcall notes.
3832 * reg-notes.def (REG_LIBCALL, REG_RETVAL): Remove.
3833 * dce.c (libcall_dead_p): Remove.
3834 (delete_unmarked_insns): Don't handle libcall blocks.
3835 (preserve_libcall_for_dce): Remove.
3836 (prescan_insns_for_dce): Don't special-case libcall block insns.
3837 * reload1 (reload): Don't handle libcall notes.
3838 * doc/rtl.texi (REG_LIBCALL, REG_RETVAL, REG_LIBCALL_ID): Remove
3841 2008-06-16 Eric B. Weddington <eric.weddington@atmel.com>
3843 * config/avr/avr.c (avr_mcu_t): Add atmega32c1.
3844 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
3845 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
3847 2008-06-16 Eric B. Weddington <eric.weddington@atmel.com>
3849 * config/avr/avr.c (avr_mcu_t): Add atmega32m1.
3850 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
3851 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
3853 2008-06-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3855 * Makefile.in (FLAGS_TO_PASS): Add $(datarootdir).
3857 2008-06-16 Ira Rosen <irar@il.ibm.com>
3859 PR tree-optimization/36493
3860 * tree-vect-transform.c (vect_create_data_ref_ptr): Remove TYPE from
3861 the arguments list. Use VECTYPE to create vector pointer.
3862 (vectorizable_store): Fail if accesses through a pointer to vectype
3863 do not alias the original memory reference operands.
3864 Call vect_create_data_ref_ptr without the removed argument.
3865 (vectorizable_load): Likewise.
3866 (vect_setup_realignment): Call vect_create_data_ref_ptr without the
3869 2008-06-015 Andy Hutchinson <hutchinsonandy@aim.com>
3872 * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Add check for
3875 2008-06-15 Maxim Kuvyrkov <maxim@codesourcery.com>
3877 * config/mips/loongson2ef.md: New file.
3878 * config/mips/mips.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
3879 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
3880 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
3881 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): New constants.
3882 (define_attr "cpu"): Rename loongson2e and loongson2f to loongson_2e
3884 (loongson2ef.md): New include.
3885 * config/mips/loongson.md (vec_pack_ssat_<mode>, vec_pack_usat_<mode>)
3886 (add<mode>3, paddd, ssadd<mode>3, usadd<mode>3)
3887 (loongson_and_not_<mode>, loongson_average_<mode>, loongson_eq_<mode>)
3888 (loongson_gt_<mode>, loongson_extract_halfword)
3889 (loongson_insert_halfword_0, loongson_insert_halfword_2)
3890 (loongson_insert_halfword_3, loongson_mult_add, smax<mode>3)
3891 (umax<mode>3, smin<mode>3, umin<mode>3, loongson_move_byte_mask)
3892 (umul<mode>3_highpart, smul<mode>3_highpart, loongson_smul_lowpart)
3893 (loongson_umul_word, loongson_pasubub, reduc_uplus_<mode>)
3894 (loongson_psadbh, loongson_pshufh, loongson_psll<mode>)
3895 (loongson_psra<mode>, loongson_psrl<mode>, sub<mode>3, psubd)
3896 (sssub<mode>3, ussub<mode>3, vec_interleave_high<mode>)
3897 (vec_interleave_low<mode>): Define type attribute.
3898 * config/mips/mips.c (mips_ls2): New static variable.
3899 (mips_issue_rate): Update to handle tuning for Loongson 2E/2F.
3900 (mips_ls2_init_dfa_post_cycle_insn, mips_init_dfa_post_cycle_insn)
3901 (sched_ls2_dfa_post_advance_cycle, mips_dfa_post_advance_cycle):
3902 Implement target scheduling hooks.
3903 (mips_multipass_dfa_lookahead): Update to handle tuning for
3905 (mips_sched_init): Initialize data for Loongson scheduling.
3906 (mips_ls2_variable_issue): New static function.
3907 (mips_variable_issue): Update to handle tuning for Loongson 2E/2F.
3909 (TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN)
3910 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Override target hooks.
3911 * config/mips/mips.h (TUNE_LOONGSON_2EF): New macros.
3912 (ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY, ISA_HAS_HILO_INTERLOCKS):
3913 Handle ST Loongson 2E/2F cores.
3914 (CPU_UNITS_QUERY): Define macro to enable querying of DFA units.
3916 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3918 * omp-low.c (extract_omp_for_data): Fix comment typo.
3921 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3923 * doc/sourcebuild.texi (Config Fragments): Remove obsolete
3924 FIXME note about gcc/config.guess.
3925 * doc/options.texi (Option file format): Remove non-ASCII bytes.
3926 * doc/cpp.texi: Expand TABs, drop indentation outside examples.
3927 * doc/cppopts.texi: Likewise.
3928 * doc/extend.texi: Likewise.
3929 * doc/gcc.texi: Likewise.
3930 * doc/gccint.texi: Likewise.
3931 * doc/gcov.texi: Likewise.
3932 * doc/gty.texi: Likewise.
3933 * doc/hostconfig.texi: Likewise.
3934 * doc/install.texi: Likewise.
3935 * doc/invoke.texi: Likewise.
3936 * doc/loop.texi: Likewise.
3937 * doc/makefile.texi: Likewise.
3938 * doc/md.texi: Likewise.
3939 * doc/passes.texi: Likewise.
3940 * doc/tm.texi: Likewise.
3941 * doc/tree-ssa.texi: Likewise.
3942 * doc/trouble.texi: Likewise.
3944 2008-06-15 Mark Shinwell <shinwell@codesourcery.com>
3945 Nathan Sidwell <nathan@codesourcery.com>
3946 Maxim Kuvyrkov <maxim@codesourcery.com>
3947 Richard Sandiford <rdsandiford@googlemail.com>
3949 * config/mips/mips-modes.def: Add V8QI, V4HI and V2SI modes.
3950 * config/mips/mips-protos.h (mips_expand_vector_init): New.
3951 * config/mips/mips-ftypes.def: Add function types for Loongson-2E/2F
3953 * config/mips/mips.c (mips_split_doubleword_move): Handle new modes.
3954 (mips_hard_regno_mode_ok_p): Allow 64-bit vector modes for Loongson.
3955 (mips_vector_mode_supported_p): Add V2SImode, V4HImode and
3957 (LOONGSON_BUILTIN, LOONGSON_BUILTIN_ALIAS): New.
3958 (CODE_FOR_loongson_packsswh, CODE_FOR_loongson_packsshb,
3959 (CODE_FOR_loongson_packushb, CODE_FOR_loongson_paddw,
3960 (CODE_FOR_loongson_paddh, CODE_FOR_loongson_paddb,
3961 (CODE_FOR_loongson_paddsh, CODE_FOR_loongson_paddsb)
3962 (CODE_FOR_loongson_paddush, CODE_FOR_loongson_paddusb)
3963 (CODE_FOR_loongson_pmaxsh, CODE_FOR_loongson_pmaxub)
3964 (CODE_FOR_loongson_pminsh, CODE_FOR_loongson_pminub)
3965 (CODE_FOR_loongson_pmulhuh, CODE_FOR_loongson_pmulhh)
3966 (CODE_FOR_loongson_biadd, CODE_FOR_loongson_psubw)
3967 (CODE_FOR_loongson_psubh, CODE_FOR_loongson_psubb)
3968 (CODE_FOR_loongson_psubsh, CODE_FOR_loongson_psubsb)
3969 (CODE_FOR_loongson_psubush, CODE_FOR_loongson_psubusb)
3970 (CODE_FOR_loongson_punpckhbh, CODE_FOR_loongson_punpckhhw)
3971 (CODE_FOR_loongson_punpckhwd, CODE_FOR_loongson_punpcklbh)
3972 (CODE_FOR_loongson_punpcklhw, CODE_FOR_loongson_punpcklwd): New.
3973 (mips_builtins): Add Loongson builtins.
3974 (mips_loongson_2ef_bdesc): New.
3975 (mips_bdesc_arrays): Add mips_loongson_2ef_bdesc.
3976 (mips_builtin_vector_type): Handle unsigned versions of vector modes.
3977 (MIPS_ATYPE_UQI, MIPS_ATYPE_UDI, MIPS_ATYPE_V2SI, MIPS_ATYPE_UV2SI)
3978 (MIPS_ATYPE_V4HI, MIPS_ATYPE_UV4HI, MIPS_ATYPE_V8QI, MIPS_ATYPE_UV8QI):
3980 (mips_expand_vector_init): New.
3981 * config/mips/mips.h (HAVE_LOONGSON_VECTOR_MODES): New.
3982 (TARGET_CPU_CPP_BUILTINS): Define __mips_loongson_vector_rev
3984 * config/mips/mips.md: Add unspec numbers for Loongson
3985 builtins. Include loongson.md.
3986 (MOVE64): Include Loongson vector modes.
3987 (SPLITF): Include Loongson vector modes.
3988 (HALFMODE): Handle Loongson vector modes.
3989 * config/mips/loongson.md: New.
3990 * config/mips/loongson.h: New.
3991 * config.gcc: Add loongson.h header for mips*-*-* targets.
3992 * doc/extend.texi (MIPS Loongson Built-in Functions): New.
3994 2008-06-14 Joseph Myers <joseph@codesourcery.com>
3996 * config.gcc (arc-*-elf*, avr-*-*, fr30-*-elf, frv-*-elf,
3997 h8300-*-elf*, h8300-*-*, i[34567]86-*-elf*, x86_64-*-elf*,
3998 i[34567]86-*-aout*, i[34567]86-*-coff*, ia64*-*-elf*,
3999 iq2000*-*-elf*, m32r-*-elf*, m32rle-*-elf*, m32r-*-linux*,
4000 m32rle-*-linux*, m68hc11-*-*|m6811-*-*, m68hc12-*-*|m6812-*-*,
4001 m68k-*-coff*, mcore-*-elf, mcore-*-pe*, mipsisa64sr71k-*-elf*,
4002 mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*, mips-*-elf* |
4003 mipsel-*-elf*, mips64-*-elf* | mips64el-*-elf*, mips64vr-*-elf* |
4004 mips64vrel-*-elf*, mips64orion-*-elf* | mips64orionel-*-elf*,
4005 mipstx39-*-elf* | mipstx39el-*-elf*, mn10300-*-*, pdp11-*-,
4006 powerpc-*-elf*, powerpcle-*-elf*, sh-*-elf* | sh[12346l]*-*-elf* |
4007 sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | sh-*-linux* |
4008 sh[2346lbe]*-*-linux* | sh-*-netbsdelf* | shl*-*-netbsdelf* |
4009 sh5-*-netbsd* | sh5l*-*-netbsd* | sh64-*-netbsd* |
4010 sh64l*-*-netbsd*, sh-*-*, sparc-*-elf*, sparc64-*-elf*,
4011 v850e1-*-*, v850e-*-*, v850-*-*, xstormy16-*-elf, m32c-*-elf*):
4012 Remove use_fixproto=yes.
4013 (ia64*-*-hpux*): Remove comment about using fixproto.
4014 (m68k-*-uclinuxoldabi*, m68k-*-uclinux*): Remove use_fixproto=no.
4016 2008-06-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4018 * configure.ac: Update gthr-default.h lazily, to avoid unneeded
4020 * configure: Regenerate.
4022 2008-06-13 Eric Botcazou <ebotcazou@adacore.com>
4025 * builtins.c (get_memory_rtx): Test for the presence of DECL_SIZE_UNIT
4026 before evaluating it.
4028 2008-06-13 Jakub Jelinek <jakub@redhat.com>
4031 * c-decl.c (merge_decls): Don't clear DECL_EXTERNAL for
4032 nested inline functions.
4033 (start_decl, start_function): Don't invert DECL_EXTERNAL
4034 for nested inline functions.
4036 2008-06-13 Richard Sandiford <rdsandiford@googlemail.com>
4038 * config/mips/mips.md: Remove TARGET_DEBUG_D_MODE conditions from
4039 splits that must be made for correctness.
4041 2008-06-13 Richard Sandiford <rdsandiford@googlemail.com>
4043 * config/mips/mips.c (BUILTIN_AVAIL_NON_MIPS16): New macro.
4044 (AVAIL_NON_MIPS16): Likewise.
4045 (mips_builtin_description): Replace target_flags with a predicate.
4046 (paired_single, sb1_paired_single, mips3d, dsp, dspr2, dsp_32)
4047 (dspr2_32): New availability predicates.
4048 (MIPS_BUILTIN): New macro.
4049 (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS)
4050 (CMP_4S_BUILTINS, MOVTF_BUILTINS, CMP_BUILTINS)
4051 (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): Use it.
4052 Replace the TARGET_FLAGS parameters with AVAIL parameters.
4053 (mips_ps_bdesc, mips_sb1_bdesc, mips_dsp_bdesc)
4054 (mips_dsp_32only_bdesc): Merge into...
4055 (mips_builtins): ...this new array.
4056 (mips_bdesc_map, mips_bdesc_arrays): Delete.
4057 (mips_init_builtins): Update after above changes.
4058 (mips_expand_builtin_1): Merge into...
4059 (mips_expand_builtin): ...here and update after above changes.
4061 2008-06-12 Paul Brook <paul@codesourcery.com>
4063 * longlong.h (__arm__): Define count_leading_zeros.
4064 * config/arm/lib1funcs.asm (xxh, xxl, yyh, yyl): Define.
4065 (clzsi2, clzdi2): New functions.
4066 * config/arm/bpabi-v6m.S (xxh, xxl, yyh, yyl): Remove.
4067 * config/arm/bpabi.S (xxh, xxl, yyh, yyl): Remove.
4068 * config/arm/t-strongarm-elf (LIB1ASMFUNCS): Ditto.
4069 * config/arm/t-vxworks (LIB1ASMFUNCS): Ditto.
4070 * config/arm/t-pe (LIB1ASMFUNCS): Ditto.
4071 * config/arm/t-arm-elf (LIB1ASMFUNCS): Ditto.
4072 * config/arm/t-arm-coff (LIB1ASMFUNCS): Ditto.
4073 * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
4074 * config/arm/t-symbian (LIB1ASMFUNCS): Ditto.
4075 * config/arm/t-wince-pe (LIB1ASMFUNCS): Ditto.
4077 2008-06-12 Kazu Hirata <kazu@codesourcery.com>
4079 * config/m68k/m68k.c (m68k_tune_flags): New.
4080 (override_options): Compute m68k_tune_flags.
4081 (MULL_COST, MULW_COST): Update for various variants of CFV2.
4082 * config/m68k/m68k.h (TUNE_MAC, TUNE_EMAC): New.
4084 2008-06-12 Jakub Jelinek <jakub@redhat.com>
4087 * omp-low.c (expand_omp_sections): Initialize l2 to avoid bogus warning.
4089 2008-06-12 Eric Botcazou <ebotcazou@adacore.com>
4091 * tree-inline.c (copy_body_r): Copy TREE_SIDE_EFFECTS along with
4092 TREE_THIS_VOLATILE on INDIRECT_REF nodes.
4094 2008-06-12 Eric Botcazou <ebotcazou@adacore.com>
4096 * expr.c (store_field): Do a block copy from BLKmode to BLKmode-like.
4097 (get_inner_reference): Use BLKmode for byte-aligned BLKmode bitfields.
4099 2008-06-12 Jakub Jelinek <jakub@redhat.com>
4102 * omp-low.c (expand_omp_sections): Handle #pragma omp sections with
4105 2008-06-12 Richard Guenther <rguenther@suse.de>
4107 PR tree-optimization/36345
4108 * tree-flow.h (struct ptr_info_def): Align escape_mask,
4109 add memory_tag_needed flag.
4110 (may_alias_p): Declare.
4111 * tree-ssa-alias.c (may_alias_p): Export.
4112 (set_initial_properties): Use memory_tag_needed flag.
4113 (update_reference_counts): Likewise.
4114 (reset_alias_info): Reset memory_tag_needed flag.
4115 (create_name_tags): Check memory_tag_needed flag.
4116 (dump_points_to_info_for): Dump it.
4117 * tree-ssa-structalias.c (struct variable_info): Remove
4118 directly_dereferenced flag.
4119 (new_var_info): Do not initialize it.
4120 (process_constraint_1): Do not set it.
4121 (update_alias_info): Set is_dereferenced flag.
4122 (set_uids_in_ptset): Use may_alias_p.
4123 (set_used_smts): Check memory_tag_needed flag.
4124 (find_what_p_points_to): Likewise. Pass is_dereferenced flag.
4125 * tree-ssa-alias.c (verify_flow_sensitive_alias_info): Check
4126 memory_tag_needed flag.
4127 * tree-ssa-alias-warnings.c (dsa_named_for): Try to recover
4130 2008-06-12 Kai Tietz <kai.tietz@onevision.com>
4132 * config/i386/i386.c (ix86_compute_frame_layout): Disable
4133 red zone for w64 abi.
4134 (ix86_expand_prologue): Likewise.
4135 (ix86_force_to_memory): Likewise.
4136 (ix86_free_from_memory): Likewise.
4138 2008-06-11 Edmar Wienskoski <edmar@freescale.com>
4141 * config/rs6000/rs6000.c (rs6000_override_options): Set
4142 rs6000_isel conditionally to the absence of comand line override.
4143 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
4144 Remove duplicate rs6000_isel setting.
4145 * config/rs6000/eabispe.h: Ditto.
4147 2008-06-11 Richard Guenther <rguenther@suse.de>
4149 * alias.c (get_alias_set): Use the element alias-set for arrays.
4150 (record_component_aliases): For arrays and vectors do nothing.
4151 * c-common.c (strict_aliasing_warning): Handle the cases
4152 of alias set zero explicitly.
4153 * Makefile.in (dfp.o-warn): Add -Wno-error.
4155 2008-06-11 Joseph Myers <joseph@codesourcery.com>
4157 * config.gcc (all_defaults): Add arch_32 arch_64 cpu_32 cpu_64
4159 (i[34567]86-*-* | x86_64-*-*): Add arch_32 arch_64 cpu_32 cpu_64
4160 tune_32 tune_64 to supported_defaults. Allow values not
4161 supporting 64-bit mode for arch_32, cpu_32 and tune_32 for
4162 x86_64. Do not override cpu_32 or cpu_64 values from target name.
4163 (i[34567]86-*-linux*, i[34567]86-*-solaris2.1[0-9]*): Only default
4164 with_cpu_64 to generic for 64-bit-supporting configurations, not
4165 with_cpu. Remove FIXMEs.
4166 * doc/install.texi (--with-cpu-32, --with-cpu-64, --with-arch-32,
4167 --with-arch-64, --with-tune-32, --with-tune-64): Document.
4168 * config/i386/i386.h (OPT_ARCH32, OPT_ARCH64): Define.
4169 (OPTION_DEFAULT_SPECS): Add tune_32, tune_64, cpu_32, cpu_64,
4170 arch_32 and arch_64.
4172 2008-06-11 Eric Botcazou <ebotcazou@adacore.com>
4173 Olivier Hainque <hainque@adacore.com>
4175 * builtins.c (get_memory_rtx): Accept byte-addressable bitfields.
4176 Use DECL_SIZE_UNIT to retrieve the size of the field.
4178 2008-06-11 Joseph Myers <joseph@codesourcery.com>
4180 * config/arm/arm.c (arm_init_neon_builtins): Move initialization
4181 with function calls after declarations. Lay out
4182 neon_float_type_node before further use.
4184 2008-06-11 Richard Guenther <rguenther@suse.de>
4186 * tree-flow.h (may_point_to_global_var): Declare.
4187 * tree-ssa-alias.c (may_point_to_global_var): New function.
4188 * tree-ssa-sink.c (is_hidden_global_store): Use it.
4190 2008-06-10 Kazu Hirata <kazu@codesourcery.com>
4192 * configure.ac: Teach that fido supports .debug_line.
4193 * configure: Regenerate.
4195 2008-06-10 Tom Tromey <tromey@redhat.com>
4197 * c-lex.c (fe_file_change): Pass SOURCE_LINE to start_source_file
4200 2008-06-10 Joseph Myers <joseph@codesourcery.com>
4202 * dfp.c (WORDS_BIGENDIAN): Define to 0 if not defined.
4203 (encode_decimal64, decode_decimal64, encode_decimal128,
4204 decode_decimal128): Reverse order of 32-bit parts of value if host
4205 and target endianness differ.
4207 2008-06-10 Vinodha Ramasamy <vinodha@google.com>
4209 * value_prob.c (tree_divmod_fixed_value_transform): Use gcov_type.
4210 Avoid division by 0.
4211 (tree_mod_pow2_value_transform): Likewise.
4212 (tree_ic_transform): Likewise.
4213 (tree_stringops_transform): Likewise.
4214 (tree_mod_subtract_transform): Likewise.
4215 * tree-inline-c (copy_bb): Corrected int type to gcov_type.
4216 (copy_edges_for_bb): Likewise.
4217 (initialize_cfun): Likewise.
4219 2008-06-10 Uros Bizjak <ubizjak@gmail.com>
4221 * config/i386/i386.md (*btdi_rex64): Change operand 1 predicate to
4222 nonmemory_operand. Add "N" operand constraint.
4224 (*jcc_btdi_mask_rex64): New instruction and split pattern.
4225 (*jcc_btsi_mask): Ditto.
4226 (*jcc_btsi_mask_1): Ditto.
4228 2008-06-10 Joseph Myers <joseph@codesourcery.com>
4230 * config/rs6000/rs6000.c (build_opaque_vector_type): Set
4231 TYPE_CANONICAL for copied element type.
4233 2008-06-10 Uros Bizjak <ubizjak@gmail.com>
4236 * config/i386/i386.c (ix86_tune_features) [TUNE_USE_BT]:
4237 Add m_CORE2 and m_GENERIC.
4238 * config/i386/predicates.md (bt_comparison_operator): New predicate.
4239 * config/i386/i386.md (*btdi_rex64): New instruction pattern.
4241 (*jcc_btdi_rex64): New instruction and split pattern.
4243 (*jcc_btsi_1): Ditto.
4244 (*btsq): Fix Intel asm dialect operand order.
4248 2008-06-09 Andy Hutchinson <hutchinsonandy@aim.com>
4251 * simplify-rtx.c (simplify_subreg): Add check for shift count
4254 2008-06-09 Richard Sandiford <rdsandiford@googlemail.com>
4256 * doc/md.texi: Synchronize with later constraints.md change.
4257 * longlong.h (umul_ppmm): Replace the MIPS asm implementation
4258 with a C implementation.
4259 * config/mips/mips.c (mips_legitimize_move): Remove MFHI and
4261 (mips_subword): Assume TImode for CONST_INTs if TARGET_64BIT.
4262 (mips_split_doubleword_move): Use special MTHI and MFHI instructions
4263 when moving to and from MD_REGNUM.
4264 (mips_output_move): Don't handle moves from GPRs to HI_REGNUM.
4265 Handle moves from LO_REGNUM to GPRs using MFLO, MACC or DMACC.
4266 Handle byte and halfword moves.
4267 (mips_hard_regno_mode_ok_p): Handle MD_REGS and DSP_ACC_REGS
4269 * config/mips/constraints.md (h): Turn into NO_REGS.
4270 (l, x): Update documentation.
4271 * config/mips/mips.md (UNSPEC_MFHILO): Delete.
4272 (UNSPEC_MFHI, UNSPEC_MTHI, UNSPEC_SET_HILO): New.
4273 (UNSPEC_TLS_LDM, UNSPEC_TLS_GET_TP): Renumber.
4274 (HILO): New mode iterator.
4276 (any_div): New code iterator.
4277 (u): Extend code attribute to div and udiv.
4278 (*add<mode>3_mips16, *movdi_64bit_mips16, *movsi_mips16): Use
4279 d_operand in the splitters. Remove redundant CONST_INT checks.
4280 (mulsi3_mult3, mul<mode>3_internal, mul<mode>3_r4000, *mul_acc_si)
4281 (*macc, *msac, *msac_using_macc, *macc2, *msac2, *mul_sub_si)
4282 (*muls): Remove "=h" clobbers. Adjust peephole2s and define_splits
4283 accordingly, using normal moves instead of unspecs to move LO into
4284 a GPR. Use d_operand and lo_operand instead of *_REG_P checks.
4285 (<u>mulsidi3): Handle expansion in C code.
4286 (<u>mulsidi3_32bit_internal): Rename to...
4287 (<u>mulsidi3_32bit): ...this.
4288 (<u>mulsidi3_32bit_r4000): Fix insn separator.
4289 (*<u>mulsidi3_64bit): Rename to...
4290 (<u>mulsidi3_64bit): ...this. Combine DImode "=h" and "=l" clobbers
4291 into a TImode "=x" clobber. In the split, use an UNSPEC_SET_HILO
4292 to set LO and HI to the multiplication result. Use a normal move
4293 for MFLO and an unspec for MFHI.
4294 (*<u>mulsidi3_64bit_parts): Replace with...
4295 (<u>mulsidi3_64bit_hilo): ...this new instruction.
4296 (<su>mulsi3_highpart): Extend to TARGET_FIX_R4000.
4297 (<su>mulsi3_highpart_internal): Turn into a define_insn_and_split
4298 and extend it to TARGET_FIX_R4000. Store the destination in a GPR
4299 instead of HI. Split the instruction into a separate multiplication
4300 and MFHI if !TARGET_FIX_R4000.
4301 (<su>muldi3_highpart): Likewise.
4302 (<su>mulsi3_highpart_mulhi_internal): Remove the first alternative
4303 and the "=h" clobber.
4304 (*<su>mulsi3_highpart_neg_mulhi_internal): Likewise.
4305 (<u>mulditi3): New expander.
4306 (<u>mulditi3_internal, <u>mulditi3_r4000): New patterns.
4307 (madsi): Remove "=h" clobber.
4308 (divmod<mode>4, udivmod<mode>4): Turn into define_insn_and_splits.
4309 Force the modulus result to be a GPR and split the instruction into
4310 a division followed by an MFHI after reload.
4311 (<u>divmod<GPR:mode>4_hilo_<HILO:mode>): New instruction.
4312 (*lea_high64): Use d_operand in the define_peephole2. Likewise
4313 the MIPS16 HIGH define_split.
4314 (*movdi_32bit, *movdi_gp32_fp64, *movdi_32bit_mips16): Change type
4315 of acc<->gpr moves to "multi".
4316 (*movdi_64bit): Replace the single "x" alternative with
4317 alternatives for moving into and out of "a".
4318 (*movhi_internal, *movqi_internal): Likewise. Use mips_output_move.
4319 (*movsi_internal): Extend the "d<-A" alternative to "d<-a".
4320 (*movdi_64bit_mips16, *movsi_mips16): Add d<-a alternatives.
4321 Use d_operand in the splitters. Remove redundant CONST_INT checks.
4322 (*movhi_mips16, *movqi_mips16): Likewise. Use mips_output_move.
4323 (movti): New expander.
4324 (*movti, *movti_mips16): New insns.
4325 (mfhilo_<mode>, *mfhilo_<mode>, *mfhilo_<mode>_macc): Delete.
4326 (mfhi<GPR:mode>_<HILO:mode>): New pattern.
4327 (mthi<GPR:mode>_<HILO:mode>): Likewise.
4328 * config/mips/predicates.md (fpr_operand): Delete.
4329 (d_operand): New predicate.
4331 2008-06-09 Michael Meissner <michael.meissner@amd.com>
4333 * config.gcc (i[34567]86-*-*): Put test in quotes to prevent
4334 failure on some Bourne shells.
4335 (x86_64-*-*): Ditto.
4337 2008-06-09 Kai Tietz <kai.tietz@onevision.com>
4339 * config/i386/cygming.h (TARGET_SUBTARGET64_DEFAULT): New.
4341 2008-06-09 Eric Botcazou <ebotcazou@libertysurf.fr>
4343 * doc/install.texi (*-*-solaris2*): Remove obsolete contents.
4344 (sparc-sun-solaris2*): Likewise.
4346 2008-06-09 Arnaud Charlet <charlet@adacore.com
4348 * doc/install.texi: Update requirements to build the Ada compiler.
4350 2008-06-08 Steven Bosscher <stevenb.gcc@gmail.com>
4352 * df-scan.c (struct df_scan_problem_data): Remove the
4353 mw_link_pool alloc pool.
4354 (df_scan_free_internal): Don't free it.
4355 (df_scan_alloc): Don't allocate it.
4356 * df.h (struct df_link): Update comment.
4358 2008-06-08 Nathan Sidwell <nathan@codesourcery.com>
4360 * except.h: Correct checks for when SJLJ exceptions must be used.
4362 2008-06-08 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4364 * doc/invoke.texi (Wenum-compare): Mention that it is enabled by
4367 2008-06-08 Joseph Myers <joseph@codesourcery.com>
4369 PR tree-optimization/36218
4370 * configure.ac: Use LDFLAGS="${LDFLAGS_FOR_BUILD}" when running
4371 configure for the build system.
4372 (BUILD_LDFLAGS): Define.
4373 * configure: Regenerate.
4374 * Makefile.in (BUILD_LDFLAGS): Define to @BUILD_LDFLAGS@.
4376 2008-07-08 Anatoly Sokolov <aesok@post.ru>
4379 * config/avr/avr.h (HARD_REGNO_RENAME_OK): Define.
4380 * config/avr/avr.c (avr_hard_regno_rename_ok): New function.
4381 * config/avr/avr-protos.h (avr_hard_regno_rename_ok): New prototype.
4383 2008-06-07 Danny Smith <dannysmith@users.sourceforge.net>
4385 * config/i386/cygming.h (MAYBE_UWIN_CPP_BUILTINS): Remove.
4387 2008-06-07 Joseph Myers <joseph@codesourcery.com>
4389 * config.gcc (Obsolete configurations): Remove list of
4391 (Unsupported targets list): Add *-*-linux*aout*, *-*-linux*libc1*,
4392 *-*-solaris2.[0-6], *-*-solaris2.[0-6].*, *-*-sysv*. Remove other
4393 targets matched by those patterns.
4394 (strongarm*-*-*, ep9312*-*-*, xscale-*-*, parisc*-*-*,
4395 m680[012]0-*-*, *-*-linux*libc1*, *-*-linux*aout*,
4396 alpha*-*-unicosmk*, strongarm*-*-freebsd*, ep9312-*-elf,
4397 arm*-*-kaos*, cris-*-aout, parisc*64*-*-linux*, parisc*-*-linux*,
4398 hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
4399 i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
4400 i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-sco3.2v5*,
4401 i[34567]86-*-sysv5*, i[34567]86-*-sysv4*, i[34567]86-*-uwin*,
4402 i[34567]86-*-kaos*, m68020-*-elf*, m68010-*-netbsdelf*,
4403 mips-wrs-windiss, mt-*-elf, powerpc-*-beos*, powerpc-*-chorusos*,
4404 powerpc-wrs-windiss*, powerpcle-*-sysv*, powerpc-*-kaos*,
4405 powerpcle-*-kaos*, sh*-*-kaos*, sparc-*-sysv4*, strongarm-*-elf*,
4406 strongarm-*-pe, strongarm-*-kaos*, vax-*-bsd*, vax-*-sysv*,
4407 vax-*-ultrix*, xscale-*-elf, xscale-*-coff,
4408 i[34567]86-*-linux*aout*, i[34567]86-*-linux*libc1): Remove.
4409 Make code for Solaris 7 and greater unconditional for Solaris.
4410 (ep9312-*-*, parisc1*, m680[012]0-*-*, parisc*-*-*, mt-*-*):
4411 Remove --with-* handling.
4412 * config/rs6000/sysv4.h (-mwindiss): Remove from all specs.
4413 (LIB_WINDISS_SPEC, CPP_OS_WINDISS_SPEC, STARTFILE_WINDISS_SPEC,
4414 ENDFILE_WINDISS_SPEC, LINK_START_WINDISS_SPEC,
4415 LINK_OS_WINDISS_SPEC): Remove.
4416 * config/rs6000/sysv4.opt (mwindiss): Remove.
4417 * configure.ac (strongarm*-*-*, xscale*-*-*): Remove.
4418 * configure: Regenerate.
4419 * doc/cpp.texi: Don't mention BeOS.
4420 * doc/extend.texi (interrupt): Don't mention MS1.
4421 * doc/install.texi: (i386-@var{any}-sysv, m68k-bull-sysv,
4422 m68k-hp-hpux, m68000-hp-hpux, m68000-att-sysv,
4423 alphaev5-cray-unicosmk*, xscale-*-*, i?86-*-linux*aout,
4424 i?86-*-sco3.2v5*, i?86-*-udk, m68k-hp-hpux, powerpc-*-sysv4,
4425 powerpc-*-sysv4, powerpcle-*-sysv4, *-*-sysv*, vax-dec-ultrix):
4427 * doc/invoke.texi (MT Options): Remove.
4428 (-mwindiss): Remove.
4429 (CRIS Options): Remove cris-axis-aout references.
4430 (HPPA Options): Don't mention hppa1.1-*-pro.
4431 * doc/md.texi: (MorphoTech family): Remove.
4432 * libgcc2.c: Don't handle UWIN.
4433 * config/alpha/t-unicosmk: Remove.
4434 * config/alpha/unicosmk.h: Remove.
4435 * config/arm/kaos-arm.h: Remove.
4436 * config/arm/kaos-strongarm.h: Remove.
4437 * config/arm/strongarm-coff.h: Remove.
4438 * config/arm/strongarm-elf.h: Remove.
4439 * config/arm/strongarm-pe.h: Remove.
4440 * config/arm/t-strongarm-pe: Remove.
4441 * config/arm/t-xscale-coff: Remove.
4442 * config/arm/t-xscale-elf: Remove.
4443 * config/arm/xscale-coff.h: Remove.
4444 * config/arm/xscale-elf.h: Remove.
4445 * config/chorus.h: Remove.
4446 * config/cris/aout.h: Remove.
4447 * config/cris/aout.opt: Remove.
4448 * config/cris/t-aout: Remove.
4449 * config/i386/beos-elf.h: Remove.
4450 * config/i386/kaos-i386.h: Remove.
4451 * config/i386/ptx4-i.h: Remove.
4452 * config/i386/sco5.h: Remove.
4453 * config/i386/sco5.opt: Remove.
4454 * config/i386/sysv4-cpp.h: Remove.
4455 * config/i386/sysv5.h: Remove.
4456 * config/i386/t-beos: Remove.
4457 * config/i386/t-sco5: Remove.
4458 * config/i386/t-uwin: Remove.
4459 * config/i386/uwin.asm: Remove.
4460 * config/i386/uwin.h: Remove.
4461 * config/kaos.h: Remove.
4462 * config/mips/windiss.h: Remove.
4463 * config/mt: Remove directory.
4464 * config/pa/pa-osf.h: Remove.
4465 * config/pa/pa-pro-end.h: Remove.
4466 * config/pa/t-pro: Remove.
4467 * config/ptx4.h: Remove.
4468 * config/rs6000/beos.h: Remove.
4469 * config/rs6000/kaos-ppc.h: Remove.
4470 * config/rs6000/t-beos: Remove.
4471 * config/rs6000/windiss.h: Remove.
4472 * config/sh/kaos-sh.h: Remove.
4473 * config/sol2-6.h: Remove.
4474 * config/sparc/sol26-sld.h: Remove.
4475 * config/sparc/sysv4-only.h: Remove.
4476 * config/vax/bsd.h: Remove.
4477 * config/vax/t-memfuncs: Remove.
4478 * config/vax/ultrix.h: Remove.
4479 * config/vax/vaxv.h: Remove.
4480 * config/windiss.h: Remove.
4482 2008-06-06 Uros Bizjak <ubizjak@gmail.com>
4484 PR rtl-optimization/36438
4485 * cse.c (fold_rtx) [ASHIFT, LSHIFTRT, ASHIFTRT]: Break out early
4486 for vector shifts with constant scalar shift operands.
4488 2008-06-06 Sandip Matte <sandip@rmicorp.com>
4490 * doc/invoke.texi: Document -march=xlr.
4491 * config/mips/xlr.md: New file.
4492 * config/mips/mips.md: Include it.
4494 * config/mips/mips.h (PROCESSOR_XLR): New processor_type.
4495 * config/mips/mips.c (mips_cpu_info_table): Add an XLR entry.
4496 (mips_rtx_cost_data): Likewise.
4498 2008-06-06 Nathan Froyd <froydnj@codesourcery.com>
4500 * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Remove
4501 PRE_INC and PRE_DEC cases.
4503 2008-06-06 Jakub Jelinek <jakub@redhat.com>
4505 PR rtl-optimization/36419
4506 * except.c (expand_resx_expr): Call do_pending_stack_adjust () before
4507 the emitting jump insn.
4510 * gimplify.c (gimplify_expr) <case TRUTH_NOT_EXPR>: If *expr_p type
4511 is not bool, boolify the whole *expr_p and convert to the desired type.
4513 2008-06-06 Jakub Jelinek <jakub@redhat.com>
4515 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805.
4516 * langhooks.h (struct lang_hooks_for_decls): Add omp_finish_clause.
4517 Add omp_private_outer_ref hook, add another argument to
4518 omp_clause_default_ctor hook.
4519 * langhooks-def.h (LANG_HOOKS_OMP_FINISH_CLAUSE): Define.
4520 (LANG_HOOKS_OMP_PRIVATE_OUTER_REF): Define.
4521 (LANG_HOOKS_OMP_CLAUSE_DEFAULT_CTOR): Change to
4522 hook_tree_tree_tree_tree_null.
4523 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_FINISH_CLAUSE and
4524 LANG_HOOKS_OMP_PRIVATE_OUTER_REF.
4525 * hooks.c (hook_tree_tree_tree_tree_null): New function.
4526 * hooks.h (hook_tree_tree_tree_tree_null): New prototype.
4527 * tree.def (OMP_TASK): New tree code.
4528 * tree.h (OMP_TASK_COPYFN, OMP_TASK_ARG_SIZE, OMP_TASK_ARG_ALIGN,
4529 OMP_CLAUSE_PRIVATE_OUTER_REF, OMP_CLAUSE_LASTPRIVATE_STMT,
4530 OMP_CLAUSE_COLLAPSE_ITERVAR, OMP_CLAUSE_COLLAPSE_COUNT,
4531 OMP_TASKREG_CHECK, OMP_TASKREG_BODY, OMP_TASKREG_CLAUSES,
4532 OMP_TASKREG_FN, OMP_TASKREG_DATA_ARG, OMP_TASK_BODY,
4533 OMP_TASK_CLAUSES, OMP_TASK_FN, OMP_TASK_DATA_ARG,
4534 OMP_CLAUSE_COLLAPSE_EXPR): Define.
4535 (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
4536 (OMP_DIRECTIVE_P): Add OMP_TASK.
4537 (OMP_CLAUSE_COLLAPSE, OMP_CLAUSE_UNTIED): New clause codes.
4538 (OMP_CLAUSE_SCHEDULE_AUTO): New schedule kind.
4539 * tree.c (omp_clause_code_name): Add OMP_CLAUSE_COLLAPSE
4540 and OMP_CLAUSE_UNTIED entries.
4541 (omp_clause_num_ops): Likewise. Increase OMP_CLAUSE_LASTPRIVATE
4543 (walk_tree_1): Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
4544 Walk OMP_CLAUSE_LASTPRIVATE_STMT.
4545 * tree-pretty-print.c (dump_omp_clause): Handle
4546 OMP_CLAUSE_SCHEDULE_AUTO, OMP_CLAUSE_UNTIED, OMP_CLAUSE_COLLAPSE,
4547 OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
4548 (dump_generic_node): Handle OMP_TASK and collapsed OMP_FOR loops.
4549 * c-omp.c (c_finish_omp_for): Allow pointer iterators. Remove
4550 warning about unsigned iterators. Change decl/init/cond/incr
4551 arguments to TREE_VECs, check arguments for all collapsed loops.
4552 (c_finish_omp_taskwait): New function.
4553 (c_split_parallel_clauses): Put OMP_CLAUSE_COLLAPSE clause to
4555 * c-parser.c (c_parser_omp_for_loop): Parse collapsed loops. Call
4556 default_function_array_conversion on init. Add par_clauses argument.
4557 If decl is present in parallel's lastprivate clause, change it to
4558 shared and add lastprivate clause for decl to OMP_FOR_CLAUSES.
4559 Add clauses argument, on success set OMP_FOR_CLAUSES to it. Look up
4560 collapse count in clauses.
4561 (c_parser_omp_for, c_parser_omp_parallel): Adjust
4562 c_parser_omp_for_loop callers.
4563 (OMP_FOR_CLAUSE_MASK): Add 1 << PRAGMA_OMP_CLAUSE_COLLAPSE.
4564 (c_parser_pragma): Handle PRAGMA_OMP_TASKWAIT.
4565 (c_parser_omp_clause_name): Handle collapse and untied clauses.
4566 (c_parser_omp_clause_collapse, c_parser_omp_clause_untied): New
4568 (c_parser_omp_clause_schedule): Handle schedule(auto).
4569 Include correct location in the error message.
4570 (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_COLLAPSE
4571 and PRAGMA_OMP_CLAUSE_UNTIED.
4572 (OMP_TASK_CLAUSE_MASK): Define.
4573 (c_parser_omp_task, c_parser_omp_taskwait): New functions.
4574 (c_parser_omp_construct): Handle PRAGMA_OMP_TASK.
4575 * tree-nested.c (convert_nonlocal_omp_clauses,
4576 convert_local_omp_clauses): Handle OMP_CLAUSE_LASTPRIVATE_STMT,
4577 OMP_CLAUSE_REDUCTION_INIT, OMP_CLAUSE_REDUCTION_MERGE,
4578 OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
4579 Don't handle TREE_STATIC or DECL_EXTERNAL VAR_DECLs in
4581 (conver_nonlocal_reference, convert_local_reference,
4582 convert_call_expr): Handle OMP_TASK the same as OMP_PARALLEL. Use
4583 OMP_TASKREG_* macros rather than OMP_PARALLEL_*.
4584 (walk_omp_for): Adjust for OMP_FOR_{INIT,COND,INCR} changes.
4585 * tree-gimple.c (is_gimple_stmt): Handle OMP_TASK.
4586 * c-tree.h (c_begin_omp_task, c_finish_omp_task): New prototypes.
4587 * c-pragma.h (PRAGMA_OMP_TASK, PRAGMA_OMP_TASKWAIT): New.
4588 (PRAGMA_OMP_CLAUSE_COLLAPSE, PRAGMA_OMP_CLAUSE_UNTIED): New.
4589 * c-typeck.c (c_begin_omp_task, c_finish_omp_task): New functions.
4590 (c_finish_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
4592 * c-pragma.c (init_pragma): Init omp task and omp taskwait pragmas.
4593 * c-common.h (c_finish_omp_taskwait): New prototype.
4594 * gimple-low.c (lower_stmt): Handle OMP_TASK.
4595 * tree-parloops.c (create_parallel_loop): Create 1 entry
4596 vectors for OMP_FOR_{INIT,COND,INCR}.
4597 * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
4598 (make_edges): Handle OMP_TASK.
4599 * tree-ssa-operands.c (get_expr_operands): Handle collapsed OMP_FOR
4600 loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
4601 * tree-inline.c (estimate_num_insns_1): Handle OMP_TASK.
4602 * builtin-types.def (BT_PTR_ULONGLONG, BT_PTR_FN_VOID_PTR_PTR,
4603 BT_FN_BOOL_ULONGLONGPTR_ULONGLONGPTR,
4604 BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULLPTR_ULLPTR,
4605 BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULL_ULLPTR_ULLPTR,
4606 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): New.
4607 * omp-builtins.def (BUILT_IN_GOMP_TASK, BUILT_IN_GOMP_TASKWAIT,
4608 BUILT_IN_GOMP_LOOP_ULL_STATIC_START,
4609 BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_START,
4610 BUILT_IN_GOMP_LOOP_ULL_GUIDED_START,
4611 BUILT_IN_GOMP_LOOP_ULL_RUNTIME_START,
4612 BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_START,
4613 BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_START,
4614 BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_START,
4615 BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_START,
4616 BUILT_IN_GOMP_LOOP_ULL_STATIC_NEXT,
4617 BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_NEXT,
4618 BUILT_IN_GOMP_LOOP_ULL_GUIDED_NEXT,
4619 BUILT_IN_GOMP_LOOP_ULL_RUNTIME_NEXT,
4620 BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_NEXT,
4621 BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_NEXT,
4622 BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_NEXT,
4623 BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_NEXT): New builtins.
4624 * gimplify.c (gimplify_omp_for): Allow pointer type for decl,
4625 handle POINTER_PLUS_EXPR. If loop counter has been replaced and
4626 original iterator is present in lastprivate clause or if
4627 collapse > 1, set OMP_CLAUSE_LASTPRIVATE_STMT. Handle collapsed
4628 OMP_FOR loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
4629 (gimplify_expr): Handle OMP_SECTIONS_SWITCH and OMP_TASK.
4630 (enum gimplify_omp_var_data): Add GOVD_PRIVATE_OUTER_REF.
4631 (omp_notice_variable): Set GOVD_PRIVATE_OUTER_REF if needed,
4632 if it is set, lookup var in outer contexts too. Handle
4633 OMP_CLAUSE_DEFAULT_FIRSTPRIVATE. Handle vars that are supposed
4634 to be implicitly determined firstprivate for task regions.
4635 (gimplify_scan_omp_clauses): Set GOVD_PRIVATE_OUTER_REF if needed,
4636 if it is set, lookup var in outer contexts too. Set
4637 OMP_CLAUSE_PRIVATE_OUTER_REF if GOVD_PRIVATE_OUTER_REF is set.
4638 Handle OMP_CLAUSE_LASTPRIVATE_STMT, OMP_CLAUSE_COLLAPSE and
4639 OMP_CLAUSE_UNTIED. Take region_type as last argument
4640 instead of in_parallel and in_combined_parallel.
4641 (gimplify_omp_parallel, gimplify_omp_for, gimplify_omp_workshare):
4643 (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_PRIVATE_OUTER_REF if
4644 GOVD_PRIVATE_OUTER_REF is set. Call omp_finish_clause langhook.
4645 (new_omp_context): Set default_kind to
4646 OMP_CLAUSE_DEFAULT_UNSPECIFIED for OMP_TASK regions.
4647 (omp_region_type): New enum.
4648 (struct gimplify_omp_ctx): Remove is_parallel and is_combined_parallel
4649 fields, add region_type.
4650 (new_omp_context): Take region_type as argument instead of is_parallel
4651 and is_combined_parallel.
4652 (gimple_add_tmp_var, omp_firstprivatize_variable, omp_notice_variable,
4653 omp_is_private, omp_check_private): Adjust ctx->is_parallel and
4654 ctx->is_combined_parallel checks.
4655 (gimplify_omp_task): New function.
4656 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
4658 * omp-low.c (extract_omp_for_data): Use schedule(static)
4659 for schedule(auto). Handle pointer and unsigned iterators.
4660 Compute fd->iter_type. Handle POINTER_PLUS_EXPR increments.
4661 Add loops argument. Extract data for collapsed OMP_FOR loops.
4662 (expand_parallel_call): Assert sched_kind isn't auto,
4663 map runtime schedule to index 3.
4664 (struct omp_for_data_loop): New type.
4665 (struct omp_for_data): Remove v, n1, n2, step, cond_code fields.
4666 Add loop, loops, collapse and iter_type fields.
4667 (workshare_safe_to_combine_p): Disallow combined for if
4668 iter_type is unsigned long long. Don't combine collapse > 1 loops
4669 unless all bounds and steps are constant. Adjust extract_omp_for_data
4671 (expand_omp_for_generic): Handle pointer, unsigned and long long
4672 iterators. Handle collapsed OMP_FOR loops. Adjust
4673 for struct omp_for_data changes. If libgomp function doesn't return
4674 boolean_type_node, add comparison of the return value with 0.
4675 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk): Handle
4676 pointer, unsigned and long long iterators. Adjust for struct
4677 omp_for_data changes.
4678 (expand_omp_for): Assert sched_kind isn't auto, map runtime schedule
4679 to index 3. Use GOMP_loop_ull*{start,next} if iter_type is
4680 unsigned long long. Allocate loops array, pass it to
4681 extract_omp_for_data. For collapse > 1 loops use always
4682 expand_omp_for_generic.
4683 (omp_context): Add sfield_map and srecord_type fields.
4684 (is_task_ctx, lookup_sfield): New functions.
4685 (use_pointer_for_field): Use is_task_ctx helper. Change first
4686 argument's type from const_tree to tree. Clarify comment.
4687 In OMP_TASK disallow copy-in/out sharing.
4688 (build_sender_ref): Call lookup_sfield instead of lookup_field.
4689 (install_var_field): Add mask argument. Populate both record_type
4690 and srecord_type if needed.
4691 (delete_omp_context): Destroy sfield_map, clear DECL_ABSTRACT_ORIGIN
4693 (fixup_child_record_type): Also remap FIELD_DECL's DECL_SIZE{,_UNIT}
4694 and DECL_FIELD_OFFSET.
4695 (scan_sharing_clauses): Adjust install_var_field callers. For
4696 firstprivate clauses on explicit tasks allocate the var by value in
4697 record_type unconditionally, rather than by reference.
4698 Handle OMP_CLAUSE_PRIVATE_OUTER_REF. Scan OMP_CLAUSE_LASTPRIVATE_STMT.
4699 Use is_taskreg_ctx instead of is_parallel_ctx.
4700 Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
4701 (create_omp_child_function_name): Add task_copy argument, use
4702 *_omp_cpyfn* names if it is true.
4703 (create_omp_child_function): Add task_copy argument, if true create
4704 *_omp_cpyfn* helper function.
4705 (scan_omp_parallel): Adjust create_omp_child_function callers.
4706 Rename parallel_nesting_level to taskreg_nesting_level.
4707 (scan_omp_task): New function.
4708 (lower_rec_input_clauses): Don't run constructors for firstprivate
4709 explicit task vars which are initialized by *_omp_cpyfn*.
4710 Pass outer var ref to omp_clause_default_ctor hook if
4711 OMP_CLAUSE_PRIVATE_OUTER_REF or OMP_CLAUSE_LASTPRIVATE.
4712 Replace OMP_CLAUSE_REDUCTION_PLACEHOLDER decls in
4713 OMP_CLAUSE_REDUCTION_INIT.
4714 (lower_send_clauses): Clear DECL_ABSTRACT_ORIGIN if in task to
4715 avoid duplicate setting of fields. Handle
4716 OMP_CLAUSE_PRIVATE_OUTER_REF.
4717 (lower_send_shared_vars): Use srecord_type if non-NULL. Don't
4718 copy-out if TREE_READONLY, only copy-in.
4719 (expand_task_copyfn): New function.
4720 (expand_task_call): New function.
4721 (struct omp_taskcopy_context): New type.
4722 (task_copyfn_copy_decl, task_copyfn_remap_type, create_task_copyfn):
4724 (lower_omp_parallel): Rename to...
4725 (lower_omp_taskreg): ... this. Use OMP_TASKREG_* macros where needed.
4726 Call create_task_copyfn if srecord_type is needed. Adjust
4728 (task_shared_vars): New variable.
4729 (check_omp_nesting_restrictions): Warn if work-sharing,
4730 barrier, master or ordered region is closely nested inside OMP_TASK.
4731 Add warnings for barrier if closely nested inside of work-sharing,
4732 ordered, or master region.
4733 (scan_omp_1): Call check_omp_nesting_restrictions even for
4734 GOMP_barrier calls. Rename parallel_nesting_level to
4735 taskreg_nesting_level. Handle OMP_TASK.
4736 (lower_lastprivate_clauses): Even if some lastprivate is found on a
4737 work-sharing construct, continue looking for them on parent parallel
4739 (lower_omp_for_lastprivate): Add lastprivate clauses
4740 to the beginning of dlist rather than end. Adjust for struct
4741 omp_for_data changes.
4742 (lower_omp_for): Add rec input clauses before OMP_FOR_PRE_BODY,
4743 not after it. Handle collapsed OMP_FOR loops, adjust for
4744 OMP_FOR_{INIT,COND,INCR} changes, adjust extract_omp_for_data caller.
4745 (get_ws_args_for): Adjust extract_omp_for_data caller.
4746 (scan_omp_for): Handle collapsed OMP_FOR
4747 loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
4748 (lower_omp_single_simple): If libgomp function doesn't return
4749 boolean_type_node, add comparison of the return value with 0.
4750 (diagnose_sb_1, diagnose_sb_2): Handle collapsed OMP_FOR
4751 loops, adjust for OMP_FOR_{INIT,COND,INCR} changes. Handle OMP_TASK.
4752 (parallel_nesting_level): Rename to...
4753 (taskreg_nesting_level): ... this.
4754 (is_taskreg_ctx): New function.
4755 (build_outer_var_ref, omp_copy_decl): Use is_taskreg_ctx instead
4757 (execute_lower_omp): Rename parallel_nesting_level to
4758 taskreg_nesting_level.
4759 (expand_omp_parallel): Rename to...
4760 (expand_omp_taskreg): ... this. Use OMP_TASKREG_* macros where needed.
4761 Call omp_task_call for OMP_TASK regions.
4762 (expand_omp): Adjust caller, handle OMP_TASK.
4763 (lower_omp_1): Adjust lower_omp_taskreg caller, handle OMP_TASK.
4765 * bitmap.c (bitmap_default_obstack_depth): New variable.
4766 (bitmap_obstack_initialize, bitmap_obstack_release): Do nothing
4767 if argument is NULL and bitmap_default_obstack is already initialized.
4768 * ipa-struct-reorg.c (do_reorg_1): Call bitmap_obstack_release
4770 * matrix-reorg.c (matrix_reorg): Likewise.
4772 2008-06-06 Uros Bizjak <ubizjak@gmail.com>
4774 * config/i386/i386.md (*indirect_jump): Macroize using P
4775 mode iterator. Remove !TARGET_64BIT from insn constraints.
4776 (*tablejump_1): Ditto.
4777 (*indirect_jump_rex64): Remove insn pattern.
4778 (*tablejump_1_rex64): Ditto.
4779 (eh_return_<mode>): Macroize using P mode iterator from eh_return_di
4780 and eh_return_si insn patterns.
4782 2008-06-06 Richard Guenther <rguenther@suse.de>
4784 * tree-ssa-structalias.c (merge_smts_into): Remove.
4785 (find_what_p_points_to): Do not bother to compute the
4786 points-to set for pt_anything pointers.
4787 * tree-ssa-operands.c (get_addr_dereference_operands): No NMT
4788 for pt_anything pointers is ok.
4790 2008-06-06 Jan Hubicka <jh@suse.cz>
4792 * passes.c (execute_ipa_pass_list): Do not regenerate summaries.
4794 2008-06-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4796 * cgraph.c: Fix typos in comments.
4797 (cgraph_availability_names): Fix string typo.
4798 * fold-const.c: Fix typos in comments.
4799 (fold_binary): Fix typo in warning.
4800 * genautomata.c: Fix typos in comments.
4801 (check_presence_pattern_sets): Fix typo in local variable.
4802 (output_description): Fix typo in output.
4803 * ggc-zone.c (ggc_pch_finish): Fix typo in error message.
4804 * hwint.h: Likewise.
4805 * matrix-reorg.c (check_allocation_function): Likewise.
4806 * omega.c (smooth_weird_equations): Likewise.
4807 * auto-inc-dec.c: Fix typos in comments.
4808 * bb-reorder.c: Likewise.
4809 * builtins.c: Likewise.
4810 * c-common.c: Likewise.
4811 * c-cppbuiltin.c: Likewise.
4812 * c-parser.c: Likewise.
4813 * c-pretty-print.c: Likewise.
4814 * cfgcleanup.c: Likewise.
4815 * cfgexpand.c: Likewise.
4816 * cfghooks.c: Likewise.
4817 * cfglayout.c: Likewise.
4818 * cfgloopmanip.c: Likewise.
4819 * cgraphunit.c: Likewise.
4820 * coverage.c: Likewise.
4821 * dbxout.c: Likewise.
4822 * df-byte-scan.c: Likewise.
4823 * df-core.c: Likewise.
4824 * df-problems.c: Likewise.
4825 * df-scan.c: Likewise.
4827 * dominance.c: Likewise.
4828 * domwalk.c: Likewise.
4830 * dwarf2out.c: Likewise.
4831 * emit-rtl.c: Likewise.
4832 * et-forest.c: Likewise.
4833 * function.c: Likewise.
4834 * function.h: Likewise.
4836 * gcov-io.c: Likewise.
4839 * genattrtab.c: Likewise.
4840 * ggc-page.c: Likewise.
4841 * gimplify.c: Likewise.
4842 * gthr-lynx.h: Likewise.
4843 * haifa-sched.c: Likewise.
4844 * ipa-cp.c: Likewise.
4845 * ipa-inline.c: Likewise.
4846 * ipa-prop.h: Likewise.
4847 * ipa-pure-const.c: Likewise.
4848 * ipa-struct-reorg.c: Likewise.
4849 * ipa-struct-reorg.h: Likewise.
4850 * ipa-type-escape.c: Likewise.
4852 * loop-doloop.c: Likewise.
4853 * mips-tfile.c: Likewise.
4854 * mkmap-flat.awk: Likewise.
4855 * mkmap-symver.awk: Likewise.
4856 * modulo-sched.c: Likewise.
4857 * omp-low.c: Likewise.
4858 * optabs.c: Likewise.
4859 * optabs.h: Likewise.
4861 * passes.c: Likewise.
4862 * postreload-gcse.c: Likewise.
4863 * postreload.c: Likewise.
4864 * predict.c: Likewise.
4865 * pretty-print.h: Likewise.
4866 * profile.c: Likewise.
4867 * protoize.c: Likewise.
4868 * ra-conflict.c: Likewise.
4870 * recog.c: Likewise.
4871 * regclass.c: Likewise.
4873 * reload.c: Likewise.
4874 * rtl-error.c: Likewise.
4875 * rtlanal.c: Likewise.
4877 * sched-rgn.c: Likewise.
4880 * target.h: Likewise.
4881 * tree-dfa.c: Likewise.
4882 * tree-eh.c: Likewise.
4883 * tree-flow-inline.h: Likewise.
4884 * tree-inline.c: Likewise.
4885 * tree-into-ssa.c: Likewise.
4886 * tree-loop-distribution.c: Likewise.
4887 * tree-nested.c: Likewise.
4888 * tree-parloops.c: Likewise.
4889 * tree-pass.h: Likewise.
4890 * tree-pretty-print.c: Likewise.
4891 * tree-profile.c: Likewise.
4892 * tree-scalar-evolution.c: Likewise.
4893 * tree-sra.c: Likewise.
4894 * tree-ssa-alias-warnings.c: Likewise.
4895 * tree-ssa-ccp.c: Likewise.
4896 * tree-ssa-coalesce.c: Likewise.
4897 * tree-ssa-dom.c: Likewise.
4898 * tree-ssa-dse.c: Likewise.
4899 * tree-ssa-forwprop.c: Likewise.
4900 * tree-ssa-live.c: Likewise.
4901 * tree-ssa-live.h: Likewise.
4902 * tree-ssa-loop-im.c: Likewise.
4903 * tree-ssa-loop-ivopts.c: Likewise.
4904 * tree-ssa-loop-niter.c: Likewise.
4905 * tree-ssa-loop-prefetch.c: Likewise.
4906 * tree-ssa-phiopt.c: Likewise.
4907 * tree-ssa-phiprop.c: Likewise.
4908 * tree-ssa-sccvn.c: Likewise.
4909 * tree-ssa-ter.c: Likewise.
4910 * tree-ssa-threadupdate.c: Likewise.
4911 * tree-ssa.c: Likewise.
4912 * tree-vect-analyze.c: Likewise.
4913 * tree-vect-transform.c: Likewise.
4914 * tree-vectorizer.c: Likewise.
4915 * tree-vn.c: Likewise.
4916 * tree-vrp.c: Likewise.
4918 * tree.def: Likewise.
4920 * unwind-dw2-fde.c: Likewise.
4921 * unwind.inc: Likewise.
4922 * value-prof.c: Likewise.
4923 * vmsdbgout.c: Likewise.
4925 2008-06-05 David Edelsohn <edelsohn@gnu.org>
4927 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Do not
4928 always place FP constants in the TOC for TARGET_POWERPC64.
4929 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Same.
4931 2008-06-05 Joseph Myers <joseph@codesourcery.com>
4933 * config.gcc (powerpc-*-linux*spe*): Use t-dfprules.
4934 * config/rs6000/dfp.md (negdd2, absdd2, negtd2, abstd2): Do not
4935 enable for TARGET_E500_DOUBLE.
4936 (*movdd_softfloat32): Also enable for !TARGET_FPRS.
4937 * config/rs6000/rs6000.c (invalid_e500_subreg): Treat decimal
4938 floating-point modes like integer modes for E500 double.
4939 (rs6000_legitimate_offset_address_p): Likewise.
4940 (rs6000_legitimize_address): Likewise. Do not allow REG+REG
4941 addressing for DDmode for E500 double.
4942 (rs6000_hard_regno_nregs): Do not treat decimal floating-point
4943 modes as using 64-bits of registers for E500 double.
4944 (spe_build_register_parallel): Do not handle DDmode or TDmode.
4945 (rs6000_spe_function_arg): Do not handle DDmode or TDmode
4946 specially for E500 double.
4947 (function_arg): Do not call rs6000_spe_function_arg for DDmode or
4948 TDmode for E500 double.
4949 (rs6000_gimplify_va_arg): Only handle SDmode in registers
4950 specially if TARGET_HARD_FLOAT && TARGET_FPRS.
4951 (rs6000_split_multireg_move): Do not handle TDmode specially for
4953 (spe_func_has_64bit_regs_p): Do not treat DDmode or TDmode as
4954 using 64-bit registers for E500 double.
4955 (emit_frame_save): Do not handle DDmode specially for E500 double.
4956 (gen_frame_mem_offset): Likewise.
4957 (rs6000_function_value): Do not call spe_build_register_parallel
4958 for DDmode or TDmode.
4959 (rs6000_libcall_value): Likewise.
4960 * config/rs6000/rs6000.h (LOCAL_ALIGNMENT, MEMBER_TYPE_FORCES_BLK,
4961 DATA_ALIGNMENT, CLASS_MAX_NREGS): Do not handle DDmode specially
4964 2008-06-04 H.J. Lu <hongjiu.lu@intel.com>
4966 * config/i386/i386.c (setup_incoming_varargs_64): Fix a typo
4969 2008-06-04 Junjie Gu <jgu@tensilica.com>
4971 * config/xtensa/lib2funcs.S (__xtensa_nonlocal_goto): Use unsigned
4972 comparison for frame pointers.
4974 2008-06-04 Andy Hutchinson <hutchinsonandy@aim.com>
4977 * config/avr/avr.h (PUSH_ROUNDING): Remove.
4979 2008-06-04 Andy Hutchinson <hutchinsonandy@aim.com>
4982 * builtins.c (expand_builtin_signbit): Don't take lowpart when
4983 register is already smaller or equal to required mode.
4985 2008-06-04 Xinliang David Li <davidxl@google.com>
4987 * tree-call-cdce.c: New file.
4988 (cond_dead_built_in_calls): New static variable.
4989 (input_domain): New struct.
4990 (check_pow): New function.
4991 (check_builtin_call): Ditto.
4992 (check_target_format): Ditto.
4993 (is_call_dce_candidate): Ditto.
4994 (gen_one_condition): Ditto.
4995 (gen_conditions_for_domain): Ditto.
4996 (get_domain): Ditto.
4997 (gen_conditions_for_pow_cst_base): Ditto.
4998 (gen_conditions_for_pow_int_base): Ditto.
4999 (gen_conditions_for_pow): Ditto.
5000 (get_no_error_domain): Ditto.
5001 (gen_shrink_wrap_conditions): Ditto.
5002 (shrink_wrap_one_built_in_call): Ditto.
5003 (shink_wrap_conditional_dead_built_in_calls): Ditto.
5004 (tree_call_cdce): Ditto.
5005 (gate_call_cdce): Ditto.
5006 (pass_call_cdce): New gimple pass.
5007 * passes.c: (init_optimization_passes): New pass.
5008 * tree-pass.h: New pass declaration.
5009 * opts.c (decode_options): New flag setting.
5010 * common.opt: Add -ftree-builtin-call-dce flag.
5011 * Makefile.in: Add new source file.
5012 * tempvar.def: New tv_id.
5013 * doc/invoke.texi (-ftree-builtin-call-dce): New flag.
5015 2008-06-04 Richard Guenther <rguenther@suse.de>
5017 * tree-flow-inline.h (is_global_var): Do not check TREE_STATIC on MTAGs.
5018 (is_call_clobbered): Always check var_ann->call_clobbered.
5019 (mark_call_clobbered): Always set var_ann->call_clobbered.
5020 (clear_call_clobbered): Always clear var_ann->call_clobbered.
5021 * tree-ssa-alias.c (mark_non_addressable): Use clear_call_clobbered.
5022 (reset_alias_info): Clear call clobbering info on MTAGs and
5024 (set_pt_anything): Set pt_global_mem.
5025 (create_tag_raw): Adjust comment.
5026 (may_be_aliased): Do not check TREE_PUBLIC on MTAGs.
5028 2008-06-04 Joseph Myers <joseph@codesourcery.com>
5029 Maxim Kuvyrkov <maxim@codesourcery.com>
5031 * config/m68k/m68k.opt (mxgot): New option.
5032 * config/m68k/m68k.c (legitimize_pic_address): Handle -mxgot.
5033 (m68k_output_addr_const_extra): New.
5034 * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): New.
5035 * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Declare.
5036 * config/m68k/m68k.md (UNSPEC_GOTOFF): Define.
5037 * doc/invoke.texi (M680x0 Options): Document -mxgot.
5039 2008-06-04 Richard Guenther <rguenther@suse.de>
5041 * tree-ssa-structalias.c (handle_ptr_arith): Correctly handle
5042 negative or non-representable offsets.
5044 2008-06-03 H.J. Lu <hongjiu.lu@intel.com>
5046 * config/i386/i386.c (ix86_gen_leave): New.
5047 (ix86_gen_pop1): Likewise.
5048 (ix86_gen_add3): Likewise.
5049 (ix86_gen_sub3): Likewise.
5050 (ix86_gen_sub3_carry): Likewise.
5051 (ix86_gen_one_cmpl2): Likewise.
5052 (ix86_gen_monitor): Likewise.
5053 (override_options): Initialize ix86_gen_leave, ix86_gen_pop1,
5054 ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
5055 ix86_gen_one_cmpl2 and ix86_gen_monitor.
5056 (ix86_file_end): Use mov%z0 instead of mov{q}/mov{l}.
5057 (output_set_got): Use mov%z0, pop%z0 and add%z0 instead of
5058 mov{q}/mov{l}, pop{q}/pop{l} and add{q}/add{l}.
5059 (ix86_expand_epilogue): Updated.
5060 (print_operand): Handle integer register operand for 'z'.
5061 (ix86_expand_strlensi_unroll_1): Likewise.
5062 (ix86_expand_strlen): Likewise.
5063 (ix86_expand_builtin): Likewise.
5064 (x86_output_mi_thunk): Use mov%z1 and add%z1 instead of
5065 mov{q}/mov{l} and add{q}/add{l}.
5067 2008-06-03 Kai Tietz <kai.tietz@onevision.com>
5069 * config/i386/i386.md (P): New mode iterator.
5070 (SFmode push_operand splitter): Macroize DImode and SImode pushes
5071 using P mode iterator.
5072 (DFmode push_operand splitter): Ditto.
5073 (XFmode push_operand splitter): Ditto.
5074 (DFmode float_extend SFmode push_operand splitter): Ditto.
5075 (XFmode float_extend SFmode push_operand splitter): Do not generate
5076 SImode pushes for 64bit target. Macroize Dimode and SImode
5077 pushes using P mode iterator.
5078 (XFmode float_extend DFmode push_operand splitter): Ditto.
5080 2008-06-03 Kai Tietz <kai.tietz@onevision.com>
5082 * config/i386/i386-protos.h (ix86_reg_parm_stack_space): New.
5083 * config/i386/i386.h (ix86_reg_parm_stack_space): Removed prototype.
5084 * config/i386/i386.c (ix86_reg_parm_stack_space): Changed
5086 (ix86_call_abi_override): Remove check for call_used_regs.
5088 2008-06-03 Richard Guenther <rguenther@suse.de>
5090 * tree-ssa-structalias.c (find_func_aliases): Add constraints
5091 for the lhs of calls if the return type contains pointers.
5093 2008-06-03 Kai Tietz <kai.tietz@onevision.com>
5095 * doc/tm.texi (OVERRIDE_ABI_FORMAT): New.
5096 * doc/extend.texi (ms_abi,sysv_abi): New attribute description.
5097 * function.c (allocate_struct_function): Use of OVERRIDE_ABI_FORMAT.
5098 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Make use
5099 of cfun and DEFAULT_ABI to deceide abi mode.
5101 (REG_PARM_STACK_SPACE): Removed.
5102 (OUTGOING_REG_PARM_STACK_SPACE): Removed.
5103 (STACK_BOUNDARY): Use default target to deceide stack boundary.
5104 * config/i386/i386-protos.h (ix86_cfun_abi): New.
5105 (ix86_function_abi): Likewise.
5106 (ix86_function_type_abi): Likewise.
5107 (ix86_call_abi_override): Likewise.
5108 * confid/i386/i386.md (SSE_REGPARM_MAX): Replaced by abi
5109 specific define X86_64_SSE_REGPARM_MAX/X64_SSE_REGPARM_MAX.
5110 * config/i386/i386.c (override_options): Replace TARGET_64BIT_MS_ABI.
5111 (X86_64_VARARGS_SIZE): Replace REGPARM_MAX and SSE_REGPARM_MAX by abi
5113 (X86_64_REGPARM_MAX): New.
5114 (X86_64_SSE_REGPARM_MAX): New.
5115 (X64_REGPARM_MAX): New.
5116 (X64_SSE_REGPARM_MAX): New.
5117 (X86_32_REGPARM_MAX): New.
5118 (X86_32_SSE_REGPARM_MAX): New.
5119 (ix86_handle_cconv_attribute): Replace TARGET_64BIT_MS_ABI.
5120 (ix86_function_regparm): Handle user calling abi.
5121 (ix86_function_arg_regno_p): Replace TARGET_64BIT_MS_ABI
5122 by DEFAULT_ABI versus SYSV_ABI check.
5123 (ix86_reg_parm_stack_space): New.
5124 (ix86_function_type_abi): New.
5125 (ix86_call_abi_override): New.
5126 (ix86_function_abi): New.
5127 (ix86_cfun_abi): New.
5128 (init_cumulative_args): Call abi specific initialization.
5129 (function_arg_advance): Remove TARGET_64BIT_MS_ABI.
5130 (function_arg_64): Extend SSE_REGPARM_MAX check.
5131 (function_arg (): Remove TARGET_64BIT_MS_ABI.
5132 (ix86_pass_by_reference): Likewise.
5133 (ix86_function_value_regno_p): Likewise.
5134 (function_value_64): Replace REGPARM_MAX, and SSE_REGPARM_MAX.
5135 (ix86_function_value_1): Replace TARGET_64BIT_MS_ABI.
5136 (return_in_memory_ms_64): Replace TARGET_64BIT_MS_ABI.
5137 (ix86_build_builtin_va_list): Replace TARGET_64BIT_MS_ABI.
5138 (setup_incoming_varargs_64): Adjust regparm for call abi.
5139 (ix86_setup_incoming_varargs): Replace TARGET_64BIT_MS_ABI.
5140 (ix86_va_start): Likewise.
5141 (ix86_gimplify_va_arg): Likewise.
5142 (ix86_expand_prologue): Likewise.
5143 (output_pic_addr_const): Likewise.
5144 (ix86_init_machine_status): Initialize call_abi by DEFAULT_ABI.
5145 (x86_this_parameter): Replace TARGET_64BIT_MS_ABI.
5146 (x86_output_mi_thunk): Likewise.
5147 (x86_function_profiler): Likewise.
5148 * config/i386/i386.h (TARGET_64BIT_MS_ABI): Use ix64_cfun_abi.
5149 (SYSV_ABI, MS_ABI): New constants.
5151 (init_regs): Add prototype of function in regclass.c file.
5152 (OVERRIDE_ABI_FORMAT): New.
5153 (CONDITIONAL_REGISTER_USAGE): Remove TARGET_64BIT_MS_ABI part.
5154 (REG_PARM_STACK_SPACE): Use ix86_reg_parm_stack_space.
5155 (OUTGOING_REG_PARM_STACK_SPACE): New.
5156 (ix86_reg_parm_stack_space): New prototype.
5157 (CUMULATIVE_ARGS): Add call_abi member.
5158 (machine_function): Add call_abi member.
5159 * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Replace
5160 TARGET_64BIT_MS_ABI by DEFAULT_ABI compare to MS_ABI.
5162 2008-06-02 Andy Hutchinson <hutchinsonandy@aim.com>
5165 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Redefine.
5166 (avr_builtin_setjmp_frame_value): New function.
5167 * config/avr/avr.md (nonlocal_goto_receiver): Define.
5168 (nonlocal_goto): Define.
5170 2008-06-02 Richard Sandiford <rdsandiford@googlemail.com>
5172 * config/mips/mips.c (mips_emit_loadgp): Return early if
5173 there is nothing do to, otherwise emit a blockage if
5174 !TARGET_EXPLICIT_RELOCS || crtl->profile.
5175 * config/mips/mips.md (loadgp_blockage): Use SI rather than DI.
5177 2008-06-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5179 * configure.ac: Drop unneeded backslash ending up in config.in.
5180 * acinclude.m4: Likewise.
5181 * config.in: Regenerate.
5183 2008-05-26 Jan Hubicka <jh@suse.cz>
5185 * predict.c (maybe_hot_frequency_p): Break out of...
5186 (maybe_hot_bb_p): ... here.
5187 (maybe_hot_edge_p): New.
5188 * tree-ssa-coalesce.c (coalesce_cost_edge): Compute cost based on edge.
5189 * basic-block.h (maybe_hot_edge_p): Declare.
5191 2008-05-31 Uros Bizjak <ubizjak@gmail.com>
5193 * config/i386/i386.md (*cmpfp_<mode>): Enable for optimize_size.
5194 (*cmpfp_<mode>_cc): Ditto.
5195 (*fp_jcc_8<mode>_387): Ditto.
5196 (*fop_<MODEF:mode>_2_i387): Ditto.
5197 (*fop_<MODEF:mode>_3_i387): Ditto.
5198 (*fop_xf_2_i387): Ditto.
5199 (*fop_xf_3_i387): Ditto.
5201 2008-06-02 Tomas Bily <tbily@suse.cz>
5203 * tree-ssa-ifcombine.c (get_name_for_bit_test): Use CONVERT_EXPR_P.
5205 2008-06-01 Richard Sandiford <rdsandiford@googlemail.com>
5207 * config/mips/mips.c (mips_valid_offset_p): New function.
5208 (mips_valid_lo_sum_p): Likewise.
5209 (mips_classify_address): Use them.
5210 (mips_force_address): New function.
5211 (mips_legitimize_address): Use it.
5212 * config/mips/mips.md (MOVE128): New mode iterator.
5213 (movtf): Require TARGET_64BIT. Remove empty strings.
5214 (*movtf_internal): Rename to...
5215 (*movtf): ...this and require !TARGET_MIPS16. Use "m" instead
5216 of "R" and use {,fp}{load,store} attributes instead of "multi".
5217 Use a separate define_split.
5218 (*movtf_mips16): New pattern.
5220 2008-06-01 Richard Sandiford <rdsandiford@googlemail.com>
5222 * config/mips/mips-protos.h (mips_expand_before_return): Declare.
5223 * config/mips/mips.c (mips_expand_before_return): New function.
5224 (mips_expand_epilogue): Call it.
5225 * config/mips/mips.md (return): Turn into a define_expand.
5226 (*return): New insn.
5228 2008-06-01 Richard Sandiford <rdsandiford@googlemail.com>
5230 * rtl.h (emit_clobber, gen_clobber, emit_use, gen_use): Declare.
5231 * emit-rtl.c (emit_clobber, gen_clobber, emit_use, gen_use): New
5232 functions. Do not emit uses and clobbers of CONCATs; individually
5233 use and clobber their operands.
5234 * builtins.c (expand_builtin_setjmp_receiver): Use emit_clobber,
5235 gen_clobber, emit_use and gen_use.
5236 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
5237 (expand_builtin_return): Likewise.
5238 * cfgbuild.c (count_basic_blocks): Likewise.
5239 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
5240 * explow.c (emit_stack_restore): Likewise.
5241 * expmed.c (extract_bit_field_1): Likewise.
5242 * expr.c (convert_move, emit_move_complex_parts): Likewise.
5243 (emit_move_multi_word, store_constructor): Likewise.
5244 * function.c (do_clobber_return_reg, do_use_return_reg): Likewise.
5245 (thread_prologue_and_epilogue_insns): Likewise.
5246 * lower-subreg.c (resolve_simple_move): Likewise.
5247 * optabs.c (widen_operand, expand_binop): Likewise.
5248 (expand_doubleword_bswap, emit_no_conflict_block): Likewise.
5249 * reload.c (find_reloads): Likewise.
5250 * reload1.c (eliminate_regs_in_insn): Likewise.
5251 * stmt.c (expand_nl_goto_receiver): Likewise.
5252 * config/alpha/alpha.md (builtin_longjmp): Likewise.
5253 * config/arc/arc.md (*movdi_insn, *movdf_insn): Likewise.
5254 * config/arm/arm.c (arm_load_pic_register): Likewise.
5255 (thumb1_expand_epilogue, thumb_set_return_address): Likewise.
5256 * config/arm/arm.md (untyped_return): Likewise.
5257 * config/arm/linux-elf.h (PROFILE_HOOK): Likewise.
5258 * config/avr/avr.c (expand_prologue): Likewise.
5259 * config/bfin/bfin.c (do_unlink): Likewise.
5260 * config/bfin/bfin.md (<optab>di3, adddi3, subdi3): Likewise.
5261 * config/cris/cris.c (cris_expand_prologue): Likewise.
5262 * config/darwin.c (machopic_indirect_data_reference): Likewise.
5263 (machopic_legitimize_pic_address): Likewise.
5264 * config/frv/frv.c (frv_frame_access, frv_expand_epilogue): Likewise.
5265 (frv_ifcvt_modify_insn, frv_expand_mdpackh_builtin): Likewise.
5266 * config/i386/i386.c (ix86_expand_vector_move_misalign): Likewise.
5267 (ix86_expand_convert_uns_didf_sse): Likewise.
5268 (ix86_expand_vector_init_general): Likewise.
5269 * config/ia64/ia64.md (eh_epilogue): Likewise.
5270 * config/iq2000/iq2000.c (iq2000_expand_epilogue): Likewise.
5271 * config/m32c/m32c.c (m32c_emit_eh_epilogue): Likewise.
5272 * config/m32r/m32r.c (m32r_reload_lr): Likewise.
5273 (config/iq2000/iq2000.c): Likewise.
5274 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
5275 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
5276 (builtin_longjmp): Likewise.
5277 * config/mn10300/mn10300.md (call, call_value): Likewise.
5278 * config/pa/pa.md (nonlocal_goto, nonlocal_longjmp): Likewise.
5279 * config/pdp11/pdp11.md (abshi2): Likewise.
5280 * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
5281 * config/s390/s390.c (s390_emit_prologue): Likewise.
5282 * config/s390/s390.md (movmem_long, setmem_long): Likewise.
5283 (cmpmem_long, extendsidi2, zero_extendsidi2, udivmoddi4): Likewise.
5284 (builtin_setjmp_receiver, restore_stack_nonlocal): Likewise.
5285 * config/sh/sh.c (prepare_move_operands): Likewise.
5286 (output_stack_adjust, sh_expand_epilogue): Likewise.
5287 (sh_set_return_address, sh_expand_t_scc): Likewise.
5288 * config/sparc/sparc.c (load_pic_register): Likewise.
5289 * config/sparc/sparc.md (untyped_return, nonlocal_goto): Likewise.
5290 * config/spu/spu.c (spu_expand_epilogue): Likewise.
5291 * config/v850/v850.c (expand_epilogue): Likewise.
5293 2008-05-31 Anatoly Sokolov <aesok@post.ru>
5295 * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): New constants.
5296 (UNSPECV_WRITE_SP_IRQ_OFF): (Ditto.).
5297 (movhi_sp_r_irq_off, movhi_sp_r_irq_on): New insn.
5298 * config/avr/avr.c (expand_prologue, expand_epilogue): Use
5299 movhi_sp_r_irq_off and movhi_sp_r_irq_on insns for writing to the
5300 stack pointer register.
5301 (output_movhi): Remove code for interrupt specific writing to the
5302 stack pointer register.
5304 2008-05-31 Richard Guenther <rguenther@suse.de>
5306 PR tree-optimization/34244
5307 * fold-const.c (tree_expr_nonnegative_warnv_p): Do not ask VRP.
5308 (tree_expr_nonzero_warnv_p): Likewise.
5309 * tree-vrp.c (vrp_expr_computes_nonnegative): Call
5310 ssa_name_nonnegative_p.
5311 (vrp_expr_computes_nonzero): Call ssa_name_nonzero_p.
5312 (extract_range_from_unary_expr): Use vrp_expr_computes_nonzero,
5313 not tree_expr_nonzero_warnv_p.
5315 PR tree-optimization/36262
5317 2007-11-29 Zdenek Dvorak <ook@ucw.cz>
5319 PR tree-optimization/34244
5320 * tree-vrp.c (adjust_range_with_scev): Clear scev cache.
5321 (record_numbers_of_iterations): New function.
5322 (execute_vrp): Cache the numbers of iterations of loops.
5323 * tree-scalar-evolution.c (scev_reset_except_niters):
5325 (scev_reset): Use scev_reset_except_niters.
5326 * tree-scalar-evolution.h (scev_reset_except_niters): Declare.
5328 2008-05-31 Bernd Schmidt <bernd.schmidt@analog.com>
5330 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
5331 __WORKAROUND_RETS when appropriate.
5333 2008-05-31 Uros Bizjak <ubizjak@gmail.com>
5335 * config/i386/i386.md (*fop_<mode>_comm_mixed): Macroize from
5336 *fop_sf_comm_mixed and *fop_df_comm_mixed insn patterns using MODEF
5338 (*fop_<mode>_comm_sse): Macroize from *fop_sf_comm_sse and
5339 *fop_df_comm_sse insn patterns using MODEF mode iterator.
5340 (*fop_<mode>_comm_i387): Macroize from *fop_sf_comm_i387 and
5341 *fop_df_comm_i387 insn patterns using MODEF mode iterator.
5342 (*fop_<mode>_1_mixed): Macroize from *fop_sf_1_mixed and
5343 *fop_df_1_mixed insn patterns using MODEF mode iterator.
5344 (*fop_<mode>_1_sse): Macroize from *fop_sf_1_sse and
5345 *fop_df_1_sse insn patterns using MODEF mode iterator.
5346 (*fop_<mode>_1_i387): Macroize from *fop_sf_1_i387 and
5347 *fop_df_1_i387 insn patterns using MODEF mode iterator.
5348 (*fop_<MODEF:mode>_2_i387): Macroize from *fop_sf_2<mode>_i387 and
5349 *fop_df_2<mode>_i387 insn patterns using MODEF mode iterator.
5350 (*fop_<MODEF:mode>_3_i387): Macroize from *fop_sf_3<mode>_i387 and
5351 *fop_df_3<mode>_i387 insn patterns using MODEF mode iterator.
5352 (*fop_xf_2_i387): Rename from *fop_xf_2<mode>_i387.
5353 (*fop_xf_3_i387): Rename from *fop_xf_3<mode>_i387.
5354 (*fop_xf_4_i387): Use <MODE> for mode attribute.
5355 (*fop_xf_5_i387): Ditto.
5356 (*fop_xf_6_i387): Ditto.
5358 2008-05-30 Richard Guenther <rguenther@suse.de>
5360 * builtins.c (build_string_literal): Avoid generating
5361 a non-gimple_val result.
5363 2008-05-30 DJ Delorie <dj@redhat.com>
5365 * exec-tool.in: Use an environment variable (private) instead of a
5366 file (shared) as a semaphore, so as to not break parallel builds.
5368 2008-05-30 Steven Bosscher <stevenb.gcc@gmail.com>
5370 * optabs.c (maybe_encapsulate_block): Remove.
5371 (emit_libcall_block): Adjust accordingly.
5372 * optabs.h (maybe_encapsulate_block): Remove prototype.
5374 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address):
5375 Don't use maybe_encapsulate_block.
5377 2008-05-30 Steven Bosscher <stevenb.gcc@gmail.com>
5379 * config/rs6000/rs6000.c (rs6000_legitimize_address,
5380 rs6000_legitimize_reload_address, rs6000_emit_move): Make sure an
5381 rtx is a SYMBOL_REF before calling get_pool_constant.
5383 2008-05-30 Eric Botcazou <ebotcazou@adacore.com>
5385 * fold-const.c (fold_unary) <CASE_CONVERT>: Add ??? comment.
5387 2008-05-30 Danny Smith <dannysmith@users.sourceforge.net>
5389 * incpath.c: Use HOST_LACKS_INODE_NUMBERS conditional
5390 rather than OS names to choose INO_T_EQ definition.
5391 (DIRS_EQ) [!INO_T_EQ]: Don't worry about case in comparison.
5392 (add_path) [!INO_T_EQ]: Use lrealpath to fill canonical_name field.
5394 2008-05-29 Daniel Franke <franke.daniel@gmail.com>
5397 * config/darwin-f.c: New.
5398 * config/t-darwin: Added rule to build darwin-f.o.
5399 * config.gcc: Defined new variable, fortran_target_objs.
5400 (*-*-darwin*): Set fortran_target_objs.
5401 * Makefile.in: Defined new variable FORTRAN_TARGET_OBJS.
5402 * configure.ac: Substitute fortran_target_objs, set FORTRAN_TARGET_OBJS.
5403 * configure: Regenerated.
5405 2008-05-29 H.J. Lu <hongjiu.lu@intel.com>
5408 * config/i386/i386.c (ix86_function_arg_boundary): Convert to
5409 canonical type if needed.
5411 2008-05-29 Eric Botcazou <ebotcazou@adacore.com>
5413 * tree-nested.c (check_for_nested_with_variably_modified): Fix typo.
5415 2008-05-29 Richard Guenther <rguenther@suse.de>
5417 PR tree-optimization/36343
5418 PR tree-optimization/36346
5419 PR tree-optimization/36347
5420 * tree-flow.h (clobber_what_p_points_to): Declare.
5421 * tree-ssa-structalias.c (set_uids_in_ptset): Whether the
5422 pointed-to variable is dereferenced is irrelevant to whether
5423 the pointer can access the pointed-to variable.
5424 (clobber_what_p_points_to): New function.
5425 * tree-ssa-alias.c (set_initial_properties): Use it.
5426 * tree-ssa.c (verify_flow_sensitive_alias_info): Adjust
5427 call clobber check for NMTs.
5429 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
5431 * value-prof.c (tree_ic_transform): Use HOST_WIDEST_INT_PRINT_DEC
5432 for printing gcov_type.
5434 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
5436 * tree-ssa-propagate.c (set_rhs): Preserve the histogram
5437 and the eh region information.
5438 * value-prof.c (gimple_move_stmt_histograms): New function.
5439 * value-prof.h (gimple_move_stmt_histograms): New function declaration.
5441 2008-05-28 Andreas Tobler <a.tobler@schweiz.org>
5443 * config/pa/pa.md: Remove extern frame_pointer_needed declaration.
5445 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
5447 * value-prof.c (tree_ic_transform): Print counts.
5448 * tree-profile.c (tree_gen_ic_func_profiler):
5449 Clear __gcov_indreict_call_callee variable to avoid misattribution
5452 2008-05-28 Rafael Espindola <espindola@google.com>
5454 * see.c (see_def_extension_not_merged): Use copy_rtx_if_shared to avoid
5457 2008-05-28 Richard Guenther <rguenther@suse.de>
5459 PR tree-optimization/36339
5460 * tree-ssa-alias.c (set_initial_properties): Move pt_anything
5461 and clobbering code out of the loop.
5463 2008-05-28 Andreas Krebbel <krebbel1@de.ibm.com>
5465 * config/s390/constraints.md ('b', 'C', 'D', 'e'): New constraint
5468 * config/s390/s390.c (s390_compare_and_branch_condition_mask,
5469 s390_contiguous_bitmask_p, s390_symref_operand_p,
5470 s390_check_symref_alignment, s390_reload_larl_operand,
5471 s390_reload_symref_address): New functions.
5472 (s390_branch_condition_mnemonic): Support compare and branch
5474 (s390_mem_constraint): Avoid symrefs to accepted by the 'T'
5475 and 'W' constraints.
5476 (s390_secondary_reload): Add secondary reloads for unaligned
5477 symbol refs or symbol refs to floating point or QI/TI mode
5479 (legitimate_address_p): Accept symbol references as addresses.
5480 (s390_expand_insv): Use rotate and insert selected bits
5481 instruction for insv when building for z10.
5482 (print_operand_address): Handle symbol ref addresses.
5483 (print_operand): Output modifier 'c' added for signed byte values.
5484 (s390_encode_section_info): Mark symbol refs with
5485 SYMBOL_FLAG_NOT_NATURALLY_ALIGNED if appropriate.
5487 * config/s390/s390.md (SIL,RRS,RIS): New instruction formats added.
5488 (length attribute): RRF, RRR have 4 byte length.
5489 (FPALL, INTALL): New mode iterators added.
5490 (*tstdi_sign, *cmpdi_ccs_sign, *cmpsi_ccs_sign,
5491 *cmp<mode>_ccs, *cmpdi_ccu_zero, *cmpdi_ccu, *cmpsi_ccu, *cmphi_ccu,
5492 *movdi_64, *movsi_zarch, *movhi, movmem<mode>, *movmem_short,
5493 *extendsidi2, *extendhidi2_extimm, *extendhisi2_extimm,
5494 *zero_extendsidi2, adddi3, *adddi3_31z, *adddi3_31, addsi3,
5495 *add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry2_cc,
5496 *add<mode>3_cc, *add<mode>3_imm_cc, *muldi3_sign, muldi3,
5497 *mulsi3_sign, mulsi3, mulsidi3): Patterns enhanced with z10
5499 (*cmphi_ccs_z10, *cmpdi_ccs_signhi_rl, *cmpsi_ccu_zerohi_rlsi,
5500 *cmp<GPR:mode>_ccu_zerohi_rldi, *cmp_and_br_signed_<mode>,
5501 *cmp_and_br_unsigned_<mode>, reload<INTALL:mode><P:mode>_tomem_z10,
5502 reload<INTALL:mode><P:mode>_toreg_z10,
5503 reload<FPALL:mode><P:mode>_tomem_z10,
5504 reload<FPALL:mode><P:mode>_toreg_z10,
5505 reload<P:mode>_larl_odd_addend_z10, *execute_rl, *insv<mode>_z10,
5506 *insv<mode>_z10_noshift, *insv<mode>_or_z10_noshift,
5507 *zero_extendhi<mode>2_z10, *cmp_and_trap_signed_int<mode>,
5508 *cmp_and_trap_unsigned_int<mode>, prefetch): New pattern or expander
5510 (movmem, clrmem, cmpmem): New splitters added.
5512 * config/s390/predicates.md (larl_operand): Use
5513 SYMBOL_REF_FLAGS (op) & SYMBOL_FLAG_ALIGN1 replaced with
5514 SYMBOL_REF_ALIGN1_P.
5515 (s390_signed_integer_comparison,
5516 s390_unsigned_integer_comparison): New predicates.
5518 * config/s390/s390-protos.h (s390_check_symref_alignment,
5519 s390_contiguous_bitmask_p, s390_reload_larl_operand,
5520 s390_reload_symref_address,
5521 s390_compare_and_branch_condition_mask): Prototypes added.
5523 * config/s390/s390.h (TARGET_MEM_CONSTRAINT,
5524 SYMBOL_REF_ALIGN1_P, SYMBOL_FLAG_NOT_NATURALLY_ALIGNED,
5525 SYMBOL_REF_NOT_NATURALLY_ALIGNED_P): Macro definition added.
5527 2008-05-28 Andreas Krebbel <krebbel1@de.ibm.com>
5529 * config/s390/s390.c (z10_cost): New cost function for z10.
5530 (s390_handle_arch_option, override_options): Support -march=z10 switch.
5531 (s390_issue_rate): Adjust issue rate for z10.
5532 * config/s390/s390.h (processor_type): Add PROCESSOR_2097_Z10.
5533 (processor_flags): Add PF_Z10.
5534 (TARGET_CPU_Z10, TARGET_Z10): New macro definitions.
5535 * config/s390/s390.md (cpu, cpu_facility attributes): Add z10.
5536 * gcc/config.gcc: Add z10.
5538 2008-05-28 Richard Guenther <rguenther@suse.de>
5540 PR tree-optimization/36291
5541 * tree-flow. h (struct gimple_df): Remove var_anns member.
5542 * tree-flow-inline.h (gimple_var_anns): Remove.
5543 (var_ann): Simplify.
5544 * tree-dfa.c (create_var_ann): Simplify.
5545 (remove_referenced_var): Clear alias info from var_anns of globals.
5546 * tree-ssa.c (init_tree_ssa): Do not allocate var_anns.
5547 (delete_tree_ssa): Clear alias info from var_anns of globals.
5548 Do not free var_anns.
5549 (var_ann_eq): Remove.
5550 (var_ann_hash): Likewise.
5552 2008-05-28 Mark Shinwell <shinwell@codesourcery.com>
5554 * config/mips/mips.c (mips_cpu_info_table): Add loongson2e
5555 and loongson2f entries.
5556 (mips_rtx_cost_data): Add entries for Loongson-2E/2F.
5557 * config/mips/mips.h (processor_type): Add Loongson-2E
5558 and Loongson-2F entries.
5559 (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF): New.
5560 (MIPS_ISA_LEVEL_SPEC): Handle Loongson-2E/2F.
5561 * config/mips/mips.md (define_attr cpu): Add loongson2e and loongson2f.
5562 * doc/invoke.texi (MIPS Options): Document loongson2e
5563 and loongson2f processor names.
5565 2008-05-27 H.J. Lu <hongjiu.lu@intel.com>
5569 * config/i386/i386.c (ix86_function_arg_boundary): Use
5570 alignment of canonical type.
5571 (ix86_expand_vector_move): Check unaligned memory access for
5574 2008-05-27 H.J. Lu <hongjiu.lu@intel.com>
5576 * dwarf2out.c (current_fde): Change return type to dw_fde_ref.
5577 Moved to the front of file.
5579 2008-05-27 Xuepeng Guo <xuepeng.guo@intel.com>
5580 H.J. Lu <hongjiu.lu@intel.com>
5582 * dwarf2out.c (current_fde): New.
5584 (lookup_cfa:): Likewise.
5585 (dwarf2out_end_epilogue): Likewise.
5586 (dwarf2out_note_section_used): Likewise.
5588 2008-05-27 Michael Matz <matz@suse.de>
5591 * c.opt (Wenum-compare): New warning option.
5592 * doc/invoke.texi (Warning Options): Document -Wenum-compare.
5594 2008-05-27 Michael Matz <matz@suse.de>
5597 * tree-gimple.c (is_gimple_mem_rhs): Remove work-around for
5599 * tree-tailcall.c (find_tail_calls): Don't mark calls storing
5600 into memory as tail calls.
5602 2008-05-27 Richard Guenther <rguenther@suse.de>
5604 PR tree-optimization/36339
5605 * tree-ssa-alias.c (set_initial_properties): Escaped pt_anything
5606 pointers cause all addressable variables to be call clobbered.
5608 2008-05-27 Richard Guenther <rguenther@suse.de>
5610 PR tree-optimization/36245
5611 * tree-ssa-address.c (add_to_parts): Deal with non-pointer bases.
5613 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
5615 * config/s390/s390.md: Replace all occurences of the 'm'
5616 constraint with 'RT'.
5618 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
5620 * config/s390/s390.md ("cpu_facility", "enabled"): Attribute
5622 ("*movdi_64dfp", "*movdi_64extimm", "*movdi_64"): Merged into
5624 ("*anddi3_extimm", "*anddi3"): Merged into "*anddi3".
5625 ("*iordi3_extimm", "*iordi3"): Merged into "*iordi3".
5626 ("*xordi3_extimm", "*xordi3"): Merged into "*xordi3".
5628 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
5630 * reload.c: (find_reloads): Skip alternatives according to the
5631 "enabled" attribute. Constify the constraint variable.
5632 * recog.c (get_attr_enabled): Add default implementation.
5633 (extract_insn): Set the alternative_enabled_p array
5634 in the recog_data struct.
5635 (preprocess_constraints, constrain_operands): Skip
5636 alternatives according to the "enabled" attribute
5637 * recog.h (struct recog_data): New field alternative_enabled_p.
5638 (skip_alternative): New inline function.
5639 * regclass.c: (record_operand_costs): Check the "enabled" attribute.
5640 (record_reg_classes): Skip alternative according to the
5641 "enabled" attribute.
5643 * doc/md.texi: Add documention for the "enabled" attribute.
5645 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
5647 * defaults.h (TARGET_MEM_CONSTRAINT): New target macro added.
5648 * postreload.c (reload_cse_simplify_operands): Replace 'm'
5649 constraint with TARGET_MEM_CONSTRAINT.
5650 * recog.c (asm_operand_ok, preprocess_constraints,
5651 constrain_operands): Likewise.
5652 * regclass.c (record_reg_classes): Likewise.
5653 * reload.c (find_reloads, alternative_allows_const_pool_ref): Likewise.
5654 * reload1.c (maybe_fix_stack_asms): Likewise.
5655 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
5656 * recog.h: Adjust comment.
5657 * genpreds.c (generic_constraint_letters): Remove 'm' constraint.
5658 * genoutput.c (note_constraint): Don't emit error for 'm' constraint.
5659 * doc/md.texi: Add a note to description of 'm' constraint.
5660 * doc/tm.texi: Document the new TARGET_MEM_CONSTRAINT macro.
5662 2008-05-27 Eric Botcazou <ebotcazou@adacore.com>
5664 * tree-sra.c (sra_type_can_be_decomposed_p) <RECORD_TYPE>: Make sure
5665 that the bitfield is of integral type before testing its precision.
5667 2008-05-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
5668 Sa Liu <saliu@de.ibm.com>
5670 * config/spu/spu.c (spu_init_libfuncs): Add __multi3, __divti3,
5671 __modti3, __udivti3, __umodti3 and __udivmodti4.
5672 * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add files
5673 that implement TImode mul and div functions.
5674 * config/spu/multi3.c: New. Implement __multi3.
5675 * config/spu/divmodti4.c: New. Implement _udivmodti4 and others.
5676 * testsuite/gcc.target/spu/muldivti3.c: New. Test TImode mul and div
5679 2008-05-26 Steven Bosscher <stevenb.gcc@gmail.com>
5681 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Generate
5682 new tls_gd_* and tls_ld_* insns instead of an insn sequence.
5683 * config/rs6000/rs6000.md (TLSmode, tls_abi_suffix, tls_insn_suffix,
5684 tls_sysv_suffix): New mode and mode attribute iterators.
5685 (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64): Remove.
5686 (lts_gd_aix*, tls_gd_sysv*, tls_ld_aix*, tls_ld_sysv*): New patterns.
5687 (tls_dtprel_*, tls_dtprel_ha_*, tls_dtprel_lo_*, tls_got_dtprel_*,
5688 tls_tprel_*, tls_tprel_ha_*, tls_tprel_lo_*, tls_got_tprel_*,
5689 tls_tls_*): Merge 32 bit and 64 bit variants using aforementioned
5692 2008-05-26 Eric Botcazou <ebotcazou@adacore.com>
5694 PR tree-optimization/36329
5695 * tree.h (CALL_CANNOT_INLINE_P): Add access check.
5696 * tree-gimple.h (CALL_STMT_CANNOT_INLINE_P): New macro.
5697 * cgraphbuild.c (initialize_inline_failed): Use the latter
5698 macro in lieu of the former.
5699 * ipa-inline.c (cgraph_mark_inline): Likewise.
5700 (cgraph_decide_inlining_of_small_function): Likewise.
5701 (cgraph_decide_inlining): Likewise.
5702 (cgraph_decide_inlining_incrementally): Likewise.
5704 2008-05-26 Tristan Gingold <gingold@adacore.com>
5705 Anatoly Sokolov <aesok@post.ru>
5707 * config/avr/avr.md ("call_prologue_saves"): Use hi8(gs())/lo8(gs())
5708 instead of pm_lo8/pm_hi8 to makes this call working on avr6.
5709 * config/avr/avr.c (expand_prologue): Tune "call_prologue"
5710 optimization for 'avr6' architecture.
5712 2008-05-26 Andy Hutchinson <hutchinsonandy@aim.com>
5715 * config/avr/avr.md (*addhi3_zero_extend2): Remove.
5717 2008-05-26 Richard Guenther <rguenther@suse.de>
5719 * tree-ssa-sccvn.c (expr_has_constants): Declare.
5720 (visit_reference_op_load): Initialize VN_INFO->has_constants properly.
5722 2008-05-26 H.J. Lu <hongjiu.lu@intel.com>
5725 * caller-save.c (insert_restore): Verify alignment of spill space.
5726 (insert_save): Likewise.
5727 * cfgexpand.c (LOCAL_ALIGNMENT): Removed.
5728 * defaults.h (LOCAL_ALIGNMENT): New. Provide default.
5729 (STACK_SLOT_ALIGNMENT): Likewise.
5730 * function.c (LOCAL_ALIGNMENT): Removed.
5731 (get_stack_local_alignment): New.
5732 (assign_stack_local): Use it. Set alignment on stack slot.
5733 (assign_stack_temp_for_type): Use get_stack_local_alignment.
5734 * config/i386/i386.h (LOCAL_ALIGNMENT): Updated.
5735 (STACK_SLOT_ALIGNMENT): New.
5736 * config/i386/i386.c (ix86_local_alignment): Handle caller-save
5737 stack slot in XFmode.
5739 * doc/tm.texi (STACK_SLOT_ALIGNMENT): New.
5741 2008-05-26 Kai Tietz <kai.tietz@onevision.com>
5744 * config/i386/i386.md (allocate_stack_worker_64): Make sure
5745 argument operand in rax isn't removed.
5747 2008-05-26 Richard Guenther <rguenther@suse.de>
5750 * fold-const.c (extract_muldiv_1): Use TYPE_OVERFLOW_WRAPS,
5751 not TYPE_UNSIGNED. Use TYPE_PRECISION instead of GET_MODE_SIZE.
5753 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
5756 * c-cppbuiltin.c (define__GNUC__): Re-add definition of __GNUG__.
5758 2008-05-26 Dominique Dhumieres <dominiq@lps.ens.fr>
5760 * config/darwin-c.c: Include "incpath.h" instead of "c-incpath.h".
5761 * config/t-darwin: Use "incpath.h" instead of "c-incpath.h".
5763 2008-05-25 Eric Botcazou <ebotcazou@adacore.com>
5765 * tree-nested.c (convert_tramp_reference) <ADDR_EXPR>: Do not
5766 build a trampoline if we don't want one.
5767 * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Do not
5768 return zero for nested functions if we don't want a trampoline.
5770 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
5772 * doc/invoke.texi: Added f77, f77-cpp-input to list of file types.
5774 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
5777 * c.opt: Removed undocumented option '-lang-fortran'.
5778 * c-common.h: Removed global variable 'lang_fortran'.
5779 * c-opts.c (c_common_handle_option): Removed code to handle
5780 option '-lang-fortran'. Updated includes.
5781 * c-cppbuiltin.c (c_cpp_builtins): Removed conditional
5782 definition of '__GFORTRAN__'.
5783 (define__GNUC__): Reimplemented to use BASEVER and
5784 cpp_define_formatted.
5785 (builtin_define_with_value_n): Removed.
5786 * c-incpath.h: Renamed to ...
5787 * incpath.h: ... this.
5788 * c-incpath.c: Renamed to ...
5789 * incpath.c: ... this. Updated includes.
5790 * fix-header.c: Updated includes.
5791 * Makefile.in: Replaced c-incpath.[ch] by incpath.[ch].
5792 (c-cppbuiltin.o): Added dependency on and definition of BASEVER.
5793 (OBJ-archive): Added cppdefault.o, incpath.o and prefix.o.
5795 2008-05-25 Eric Botcazou <ebotcazou@adacore.com>
5797 * tree.h: Update the table of flags used on tree nodes.
5798 (TREE_NO_TRAMPOLINE): New accessor for static_flag.
5799 (SAVE_EXPR_RESOLVED_P): Use automatically-built access check.
5800 (FORCED_LABEL): Add access check.
5801 (CALL_EXPR_RETURN_SLOT_OPT): Likewise.
5802 (ASM_INPUT_P): Likewise.
5803 (ASM_VOLATILE_P): Likewise.
5804 (EH_FILTER_MUST_NOT_THROW): Access static_flag directly.
5805 (OMP_SECTION_LAST): Access private_flag directly.
5806 (OMP_RETURN_NOWAIT): Likewise.
5807 (OMP_PARALLEL_COMBINED): Likewise.
5808 (OMP_CLAUSE_PRIVATE_DEBUG): Access public_flag directly.
5809 (OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE): Likewise.
5810 * tree-ssa-propagate.c (STMT_IN_SSA_EDGE_WORKLIST): Access
5811 deprecated_flag directly.
5813 2008-05-25 H.J. Lu <hongjiu.lu@intel.com>
5815 * final.c (frame_pointer_needed): Removed.
5816 * flags.h (frame_pointer_needed): Likewise.
5818 * function.h (rtl_data): Add frame_pointer_needed.
5819 (frame_pointer_needed): New.
5821 2008-05-25 Arthur Loiret <arthur.loiret@u-psud.fr>
5823 * config.gcc (sh2[lbe]*-*-linux*): Allow target.
5825 2008-05-25 Steven Bosscher <stevenb.gcc@gmail.com>
5827 * gcse.c (hash_scan_set): Do not pick up a REG_EQUAL value if
5830 2008-05-25 Alan Modra <amodra@bigpond.net.au>
5832 * c-common.c (strip_array_types): Move function to..
5834 (get_inner_array_type): Delete.
5835 * c-common.h (strip_array_types): Move declaration to..
5837 (get_inner_array_type): Delete.
5838 * config/i386/i386.c (x86_field_alignment): Use strip_array_types.
5839 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
5840 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
5841 * config/pa/pa.c (emit_move_sequence): Likewise.
5843 2008-05-24 H.J. Lu <hongjiu.lu@intel.com>
5845 * config/i386/i386.md (*sse_prologue_save_insn): Set length
5848 2008-05-24 Andy Hutchinson <hutchinsonandy@aim.com>
5850 * function.c: Include target hook for nonlocal_goto frame value.
5852 2008-05-24 Richard Guenther <rguenther@suse.de>
5854 * tree-dfa.c (refs_may_alias_p): Re-instantiate case that a scalar
5855 variable can be only accessed through a pointer or a union.
5857 2008-05-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5859 * builtins.c (fold_builtin_fpclassify): Fix spelling of FP_INFINITE.
5860 * doc/extend.texi: Likewise.
5862 2008-05-23 DJ Delorie <dj@redhat.com>
5864 * config/m32c/jump.md (untyped_call): Add.
5866 * config/m32c/m32c.c (m32c_return_addr_rtx): Change pointer type
5868 (m32c_address_cost): Detail costs for indirect offsets.
5870 2008-05-23 Rafael Espindola <espindola@google.com>
5872 * see.c (see_get_extension_data): Don't use SUBREG_REG to test
5873 if a node is a SUBREG.
5874 (see_analyze_one_def): Don't use SUBREG_REG to test if a node
5877 2008-05-23 Paul Brook <paul@codesourcery.com>
5878 Carlos O'Donell <carlos@codesourcery.com>
5880 * doc/extend.texi: Clarify use of __attribute__((naked)).
5881 * doc/tm.texi: Document TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
5882 * target.h (gcc_target): Add allocate_stack_slots_for_args.
5883 * function.c (use_register_for_decl): Use
5884 targetm.calls.allocate_stack_slots_for_args.
5885 * target-def.h (TARGET_CALLS): Add TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
5886 * config/arm/arm.c (arm_allocate_stack_slots_for_args): New function.
5887 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
5889 2008-05-23 Eric Botcazou <ebotcazou@adacore.com>
5891 * expr.c (highest_pow2_factor) <BIT_AND_EXPR>: New case.
5893 2008-05-23 Steven Munroe <sjmunroe@us.ibm.com>
5895 * config/rs6000/darwin-ldouble.c (fmsub): Eliminate the full
5896 PACK/UNPACK between FP_SUB_Q and FD_TRUNC so that the result
5897 is only rounded once.
5899 2008-05-23 Richard Guenther <rguenther@suse.de>
5901 * tree-ssa-operands.c (mark_difference_for_renaming): Use bitmap_xor.
5903 2008-05-23 Uros Bizjak <ubizjak@gmail.com>
5904 Jakub Jelinek <jakub@redhat.com>
5907 * configure.ac: Handle --enable-cld.
5908 * configure: Regenerated.
5909 * config.gcc: Add USE_IX86_CLD to tm_defines for x86 targets.
5910 * config/i386/i386.h (struct machine_function): Add needs_cld field.
5911 (ix86_current_function_needs_cld): New define.
5912 * config/i386/i386.md (UNSPEC_CLD): New unspec volatile constant.
5913 (cld): New isns pattern.
5914 (strmov_singleop, rep_mov, strset_singleop, rep_stos, cmpstrnqi_nz_1,
5915 cmpstrnqi_1, strlenqi_1): Set ix86_current_function_needs_cld flag.
5916 * config/i386/i386.opt (mcld): New option.
5917 * config/i386/i386.c (ix86_expand_prologue): Emit cld insn if
5918 TARGET_CLD and ix86_current_function_needs_cld.
5919 (override_options): Use -mcld by default for 32-bit code if
5922 * doc/install.texi (Options specification): Document --enable-cld.
5923 * doc/invoke.texi (Machine Dependent Options)
5924 [i386 and x86-64 Options]: Add -mcld option.
5925 (Intel 386 and AMD x86-64 Options): Document -mcld option.
5927 2008-05-23 Kai Tietz <kai.tietz@onevison.com>
5928 * config/i386/i386.c (return_in_memory_32): Add ATTRIBUTE_UNUSED.
5929 (return_in_memory_64): Likewise.
5930 (return_in_memory_ms_64): Likewise.
5932 2008-05-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5934 * builtin-types.def (BT_FN_INT_INT_INT_INT_INT_INT_VAR): New.
5935 * builtins.c (fold_builtin_fpclassify): New.
5936 (fold_builtin_varargs): Handle BUILT_IN_FPCLASSIFY.
5937 * builtins.def (BUILT_IN_FPCLASSIFY): New.
5938 * c-common.c (handle_type_generic_attribute): Adjust to accept
5939 fixed arguments before an elipsis.
5940 (check_builtin_function_arguments): Handle BUILT_IN_FPCLASSIFY.
5941 * doc/extend.texi: Document __builtin_fpclassify.
5943 2008-05-22 Aldy Hernandez <aldyh@redhat.com>
5945 * omp-low.c (gate_expand_omp_ssa): Remove.
5946 (pass_expand_omp_ssa): Remove.
5947 (gate_expand_omp): Do not check for flag_openmp_ssa.
5948 * common.opt (-fopenmp-ssa): Remove.
5949 * passes.c (init_optimization_passes): Remove pass_expand_omp_ssa.
5951 2008-05-22 Kaz Kojima <kkojima@gcc.gnu.org>
5953 * config/sh/sh.opt (mfixed-range): New option.
5954 * config/sh/sh-protos.h (sh_fix_range): Declare.
5955 * config/sh/sh.c (sh_fix_range): New function.
5956 * config/sh/sh.h (sh_fixed_range_str): Declare.
5957 (OVERRIDE_OPTIONS): Call sh_fix_range if sh_fixed_range_str
5959 * doc/invoke.texi (SH Options): Document -mfixed-range.
5961 2008-05-22 Kai Tietz <kai.tietz@onevision.com>
5963 * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Undefine
5964 it before the redeclaration.
5966 2008-05-22 Anatoly Sokolov <aesok@post.ru>
5968 * config/avr/avr.c (get_sequence_length): Add new function.
5969 (expand_prologue, expand_epilogue): Remove duplicate code.
5971 2008-05-22 Rafael Espindola <espindola@google.com>
5973 * see.c (see_pre_insert_extensions): Use copy_rtx to avoid invalid rtx
5976 2008-05-22 H.J. Lu <hongjiu.lu@intel.com>
5978 * defaults.h (UNITS_PER_SIMD_WORD): Add scalar mode as argument.
5979 * doc/tm.texi (UNITS_PER_SIMD_WORD): Likewise.
5981 * tree-vect-analyze.c (vect_compute_data_ref_alignment): Replace
5982 UNITS_PER_SIMD_WORD with GET_MODE_SIZE (TYPE_MODE (vectype)).
5983 (vect_update_misalignment_for_peel): Likewise.
5984 (vector_alignment_reachable_p): Likewise.
5985 * tree-vect-transform.c (vectorizable_load): Likewise.
5986 * tree-vectorizer.c (vect_supportable_dr_alignment): Likewise.
5987 (get_vectype_for_scalar_type): Pass mode of scalar_type
5988 to UNITS_PER_SIMD_WORD.
5990 * config/arm/arm.h (UNITS_PER_SIMD_WORD): Updated.
5991 * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
5992 * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
5993 * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
5994 * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
5996 2008-05-22 Ira Rosen <irar@il.ibm.com>
5998 PR tree-optimization/36293
5999 * tree-vect-transform.c (vect_transform_strided_load): Don't check
6000 if the first load must be skipped because of a gap.
6002 2008-05-22 Richard Guenther <rguenther@suse.de>
6004 * tree-dfa.c (refs_may_alias_p): Exit early if possible. Handle
6005 more cases of offset disambiguation that is possible if
6006 strict-aliasing rules apply.
6007 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use refs_may_alias_p
6008 for basic offset and type-based disambiguation.
6010 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
6012 * config/i386/i386.c (ix86_expand_vector_init_one_var): Use
6013 ix86_expand_vector_set on V16QImode for SSE4.1.
6015 2008-05-21 Tom Tromey <tromey@redhat.com>
6017 * c.opt (Wimport): Mark as undocumented.
6018 * doc/invoke.texi (Option Summary): Don't mention -Wimport or
6020 (Warning Options): Likewise.
6021 * doc/cppopts.texi: Don't mention -Wimport.
6023 2008-05-21 Sebastian Pop <sebastian.pop@amd.com>
6025 PR tree-optimization/36287
6026 PR tree-optimization/36286
6027 * lambda-code.c (build_access_matrix): Do not use the loop->num
6028 for computing the number of induction variables: use the loop depth
6031 2008-05-21 Kai Tietz <kai.tietz@onevision.com>
6034 * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Honor
6035 option -f(no-)leading-underscore.
6037 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
6039 * config/i386/i386.c (ix86_expand_vector_init_general): Use
6040 GET_MODE_NUNITS (mode).
6042 2008-05-21 Peter Bergner <bergner@vnet.ibm.com>
6044 * doc/invoke.texi: Add cpu_type's 464 and 464fp.
6045 (-mmulhw): Add 464 to description.
6046 (-mdlmzb): Likewise.
6047 * config.gcc: Handle --with-cpu=464 and --with-cpu=464fp.
6048 * config/rs6000/rs6000.c (processor_target_table): Add 464 and
6050 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 464 and 464fp support.
6051 * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=464.
6052 * config/rs6000/rs6000.md: Update comments for 464.
6054 2008-05-21 Janis Johnson <janis187@us.ibm.com>
6056 * doc/sourcebuild.texi (Test Directives): Add dg-xfail-run-if.
6058 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
6060 * config/i386/sse.md (vec_extractv4sf): Removed.
6061 (vec_extractv2df): Likewise.
6062 (vec_extractv2di): Likewise.
6063 (vec_extractv4si): Likewise.
6064 (vec_extractv8hi): Likewise.
6065 (vec_extractv16qi): Likewise.
6066 (vec_extract<mode>): New.
6068 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
6070 * config/i386/sse.md (vec_setv4sf): Removed.
6071 (vec_setv2df): Likewise.
6072 (vec_setv2di): Likewise.
6073 (vec_setv4si): Likewise.
6074 (vec_setv8hi): Likewise.
6075 (vec_setv16qi): Likewise.
6076 (vec_set<mode>): New.
6078 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
6080 * config/i386/i386.c (ix86_expand_vector_init_general): Remove
6081 goto for vec_concat and vec_interleave.
6083 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
6085 * config/i386/sse.md (vec_initv4sf): Removed.
6086 (vec_initv2df): Likewise.
6087 (vec_initv2di): Likewise.
6088 (vec_initv4si): Likewise.
6089 (vec_initv8hi): Likewise.
6090 (vec_initv16qi): Likewise.
6091 (vec_init<mode>): New.
6093 2008-05-21 Joseph Myers <joseph@codesourcery.com>
6095 * collect2.c (find_a_file): Use IS_ABSOLUTE_PATH.
6097 2008-05-21 Tom Tromey <tromey@redhat.com>
6099 * ggc-zone.c (lookup_page_table_if_allocated): New function.
6100 (zone_find_object_offset): Likewise.
6101 (gt_ggc_m_S): Likewise.
6102 (highest_bit): Likewise.
6103 * ggc-page.c (gt_ggc_m_S): New function.
6104 * stringpool.c (string_stack): Remove.
6105 (init_stringpool): Update.
6106 (ggc_alloc_string): Use ggc_alloc.
6107 (maybe_delete_ident): New function.
6108 (ggc_purge_stringpool): Likewise.
6109 (gt_ggc_m_S): Remove.
6110 * ggc-common.c (ggc_protect_identifiers): New global.
6111 (ggc_mark_roots): Call ggc_purge_stringpool. Use
6112 ggc_protect_identifiers.
6113 * ggc.h (ggc_protect_identifiers): Declare.
6114 (gt_ggc_m_S): Update.
6115 (ggc_purge_stringpool): Declare.
6116 * toplev.c (compile_file): Set and reset ggc_protect_identifiers.
6117 * gengtype.c (write_types_process_field) <TYPE_STRING>: Remove
6119 (write_root): Cast gt_ggc_m_S to gt_pointer_walker.
6121 2008-05-21 David S. Miller <davem@davemloft.net>
6123 * config.gcc (sparc-*-linux*): Always include sparc/t-linux in
6126 2008-05-21 Eric Botcazou <ebotcazou@adacore.com>
6128 * cfgexpand.c (tree_expand_cfg): Zap the EH throw statement table
6131 2008-05-20 David Daney <ddaney@avtrex.com>
6133 * config/mips/mips.md (UNSPEC_SYNC_NEW_OP_12,
6134 UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE_12): New define_constants.
6135 (UNSPEC_SYNC_EXCHANGE, UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
6136 UNSPEC_UPDATE_GOT_VERSION): Renumber.
6137 (optab, insn): Add 'plus' and 'minus' to define_code_attr.
6138 (atomic_hiqi_op): New define_code_iterator.
6139 (sync_compare_and_swap<mode>): Call mips_expand_atomic_qihi instead of
6140 mips_expand_compare_and_swap_12.
6141 (compare_and_swap_12): Use MIPS_COMPARE_AND_SWAP_12 instead of
6142 MIPS_COMPARE_AND_SWAP_12_0. Pass argument to MIPS_COMPARE_AND_SWAP_12.
6143 (sync_<optab><mode>, sync_old_<optab><mode>,
6144 sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
6145 sync_new_nand<mode>): New define_expands for HI and QI mode operands.
6146 (sync_<optab>_12, sync_old_<optab>_12, sync_new_<optab>_12,
6147 sync_nand_12, sync_old_nand_12, sync_new_nand_12): New insns.
6148 (sync_lock_test_and_set<mode>): New define_expand for HI and QI modes.
6149 (test_and_set_12): New insn.
6150 (sync_old_add<mode>, sync_new_add<mode>, sync_old_<optab><mode>,
6151 sync_new_<optab><mode>, sync_old_nand<mode>,
6152 sync_new_nand<mode>, sync_lock_test_and_set<mode>): Add early
6153 clobber to operand 0 for SI and DI mode insns.
6154 * config/mips/mips-protos.h (mips_gen_fn_6, mips_gen_fn_5,
6155 mips_gen_fn_4): New typedefs.
6156 (mips_gen_fn_ptrs): Define new union type.
6157 (mips_expand_compare_and_swap_12): Remove declaration.
6158 (mips_expand_atomic_qihi): Declare function.
6159 * config/mips/mips.c (mips_expand_compare_and_swap_12): Rename to...
6160 (mips_expand_atomic_qihi): ... this. Use new generator function
6162 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): Add OPS parameter.
6163 (MIPS_COMPARE_AND_SWAP_12_0): Delete macro.
6164 (MIPS_COMPARE_AND_SWAP_12_ZERO_OP, MIPS_COMPARE_AND_SWAP_12_NONZERO_OP,
6165 MIPS_SYNC_OP_12, MIPS_SYNC_OP_12_NOT_NOP,
6166 MIPS_SYNC_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12,
6167 MIPS_SYNC_OLD_OP_12_NOT_NOP, MIPS_SYNC_OLD_OP_12_NOT_NOP_REG,
6168 MIPS_SYNC_OLD_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12_NOT_NOT_REG,
6169 MIPS_SYNC_NEW_OP_12, MIPS_SYNC_NEW_OP_12_NOT_NOP,
6170 MIPS_SYNC_NEW_OP_12_NOT_NOT, MIPS_SYNC_EXCHANGE_12,
6171 MIPS_SYNC_EXCHANGE_12_ZERO_OP, MIPS_SYNC_EXCHANGE_12_NONZERO_OP):
6174 2008-05-20 H.J. Lu <hongjiu.lu@intel.com>
6176 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Add
6179 2008-05-20 Anatoly Sokolov <aesok@post.ru>
6181 * config/avr/avr.h (machine_function): Add 'is_OS_main' field.
6182 * config/avr/avr.c (avr_OS_main_function_p): Add new function.
6183 (avr_attribute_table): Add 'OS_main' function attribute.
6184 (avr_regs_to_save, expand_prologue, expand_epilogue): Handle
6185 functions with 'OS_main' attribute.
6187 2008-05-20 Richard Guenther <rguenther@suse.de>
6189 PR tree-optimization/35204
6190 * tree-ssa-sccvn.c (extract_and_process_scc_for_name): New
6191 helper, split out from ...
6192 (DFS): ... here. Make the DFS walk non-recursive.
6194 2008-05-20 Sebastian Pop <sebastian.pop@amd.com>
6195 Jan Sjodin <jan.sjodin@amd.com>
6197 PR tree-optimization/36181
6198 * tree-parloops.c (loop_has_vector_phi_nodes): New.
6199 (parallelize_loops): Don't parallelize when the loop has vector
6202 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
6203 Sebastian Pop <sebastian.pop@amd.com>
6205 * tree-loop-linear.c (gather_interchange_stats): Look in the access
6206 matrix, and never look at the tree representation of the memory
6208 (linear_transform_loops): Computes parameters and access matrices.
6209 * tree-data-ref.c (compute_data_dependences_for_loop): Returns false
6211 (access_matrix_get_index_for_parameter): New.
6212 * tree-data-ref.h (struct access_matrix): New.
6213 (AM_LOOP_NEST_NUM, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
6214 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
6215 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT,
6216 am_vector_index_for_loop): New.
6217 (struct data_reference): Add field access_matrix.
6218 (DR_ACCESS_MATRIX): New.
6219 (compute_data_dependences_for_loop): Update declaration.
6220 (lambda_collect_parameters, lambda_compute_access_matrices): Declared.
6221 * lambda.h (lambda_vector_vec_p): Declared.
6222 * lambda-code.c: Depend on pointer-set.h.
6223 (lambda_collect_parameters_from_af, lambda_collect_parameters,
6224 av_for_af_base, av_for_af, build_access_matrix,
6225 lambda_compute_access_matrices): New.
6226 * Makefile.in (lambda-code.o): Depend on pointer-set.h.
6228 2008-05-20 Joseph Myers <joseph@codesourcery.com>
6230 * doc/install.texi2html: Generate gcc-vers.texi in $DESTDIR not
6233 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
6234 Sebastian Pop <sebastian.pop@amd.com>
6236 PR tree-optimization/36206
6237 * tree-scalar-evolution.c: Remove enum INSERT_SUPERLOOP_CHRECS,
6239 (instantiate_scev_1): Rename flags to fold_conversions.
6240 Do not check for INSERT_SUPERLOOP_CHRECS, keep SSA_NAMEs defined
6241 outeside instantiation_loop.
6242 * tree-chrec.h (evolution_function_is_affine_in_loop): New.
6243 (evolution_function_is_affine_or_constant_p): Removed.
6244 * tree-data-ref.c (dr_analyze_indices): Replace resolve_mixers with
6246 (analyze_siv_subscript): Pass in the loop nest number.
6247 Call evolution_function_is_affine_in_loop instead of
6248 evolution_function_is_affine_p.
6249 (analyze_overlapping_iterations): Pass in the loop nest number.
6251 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
6252 Sebastian Pop <sebastian.pop@amd.com>
6254 PR tree-optimization/36206
6255 * tree-chrec.h (chrec_fold_op): New.
6256 * tree-data-ref.c (initialize_matrix_A): Traverse NOP_EXPR, PLUS_EXPR,
6259 2008-05-20 Nathan Sidwell <nathan@codesourcery.com>
6261 * c-incpath.c (INO_T_EQ): Do not define on non-inode systems.
6263 (remove_duplicates): Do not set inode on non-inode systems.
6266 2008-05-20 Sandra Loosemore <sandra@codesourcery.com>
6268 * config.gcc (tm_file): Update comments about relative pathnames.
6270 2008-05-20 Richard Guenther <rguenther@suse.de>
6272 * tree-ssa-reassoc.c (fini_reassoc): Use the statistics infrastructure.
6273 * tree-ssa-sccvn.c (process_scc): Likewise.
6274 * tree-ssa-sink.c (execute_sink_code): Likewise.
6275 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
6276 * tree-vrp.c (process_assert_insertions): Likewise.
6277 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
6278 (perform_tree_ssa_dce): Likewise.
6279 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
6280 (dump_dominator_optimization_stats): Likewise.
6281 * tree-vectorizer.c (vectorize_loops): Likewise.
6283 2008-05-20 Richard Guenther <rguenther@suse.de>
6285 * tree-vn.c (vn_lookup_with_vuses): Do not use the alias oracle.
6287 2008-05-20 Kai Tietz <kai.tietz@onevision.com>
6289 * config/i386/i386-protos.h (ix86_return_in_memory): Removed.
6290 (ix86_i386elf_return_in_memory): Likewise.
6291 (ix86_i386interix_return_in_memory): Likewise.
6292 * config/i386/i386-interix.h (TARGET_RETURN_IN_MEMORY): Removed.
6293 (SUBTARGET_RETURN_IN_MEMORY): New.
6294 * config/i386/i386elf.h: Likewise.
6295 * config/i386/ptx4-i.h: Likewise.
6296 * config/i386/sol2-10.h: Likewise.
6297 * config/i386/sysv4.h: Likewise.
6298 * config/i386/vx-common.h: Likewise.
6299 * config/i386/i386.h (TARGET_RETURN_IN_MEMORY): Removed.
6300 * config/i386/i386.c (ix86_return_in_memory): Made static and
6301 make use of optional SUBTARGET_RETURN_IN_MEMORY macro.
6302 (ix86_i386elf_return_in_memory): Removed.
6303 (ix86_i386interix_return_in_memory): Removed.
6304 (TARGET_RETURN_IN_MEMORY): Declared within i386.c only.
6305 * target-def.h (TARGET_RETURN_IN_MEMORY): Remove protection #ifdef.
6307 2008-05-20 Alexandre Oliva <aoliva@redhat.com>
6309 * cselib.c (cselib_record_sets): Use correct mode for IF_THEN_ELSE.
6311 2008-05-19 Xinliang David Li <davidxl@google.com>
6313 * tree-ssa-dce.c: Revert patches of 2008-05-17 and 2008-05-18.
6315 * common.opt: Ditto.
6316 * doc/invoke.texi: Ditto.
6318 2008-05-19 Eric Botcazou <ebotcazou@adacore.com>
6320 * tree.c (substitute_in_expr) <tcc_vl_exp>: Fix thinko.
6321 (substitute_placeholder_in_expr) <tcc_vl_exp>: Minor tweak.
6323 2008-05-19 H.J. Lu <hongjiu.lu@intel.com>
6325 * config/i386/i386.c (ix86_expand_vector_init_concat): Change
6326 sizes of operand array from 8/4 to 4/2.
6327 (ix86_expand_vector_init_general): Change size of operand array
6328 from 32 to 16. Remove op0, op1 and half_mode.
6330 2008-05-19 H.J. Lu <hongjiu.lu@intel.com>
6332 * config/i386/i386.c (ix86_expand_vector_init_concat): New.
6333 (ix86_expand_vector_init_interleave): Likewise.
6334 (ix86_expand_vector_init_general): Use them. Assert
6335 word_mode == SImode when n_words == 4.
6337 2008-05-19 Uros Bizjak <ubizjak@gmail.com>
6339 * config/i386/i386.c (ix86_secondary_reload): New static function.
6340 (TARGET_SECONDARY_RELOAD): New define.
6341 * config/i386/i386.h (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
6342 * config/i386/i386.md (reload_outqi): Remove.
6344 2008-05-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6347 * builtins.c (mathfn_built_in_1): Renamed from mathfn_built_in.
6348 Add `implicit' parameter. Handle BUILT_IN_SIGNBIT.
6349 (mathfn_built_in): Rewrite in terms of mathfn_built_in_1.
6350 (fold_builtin_classify): Handle BUILT_IN_ISINF_SIGN.
6351 (fold_builtin_1): Likewise.
6352 * builtins.def (BUILT_IN_ISINF_SIGN): New.
6353 c-common.c (check_builtin_function_arguments): Handle
6354 BUILT_IN_ISINF_SIGN.
6355 * doc/extend.texi: Document __builtin_isinf_sign.
6356 * fold-const.c (operand_equal_p): Handle COND_EXPR.
6358 2008-05-18 Eric Botcazou <ebotcazou@adacore.com>
6360 * tree-ssa-dom.c (tree_ssa_dominator_optimize): If some blocks need
6361 EH cleanup at the end of the pass, search for those that have been
6362 turned into forwarder blocks and do the cleanup on their successor.
6364 2008-05-18 Richard Guenther <rguenther@suse.de>
6366 * tree-cfg.c (verify_gimple_expr): Allow conversions from
6367 pointers to sizetype and vice versa.
6369 2008-05-18 Xinliang David Li <davidxl@google.com>
6371 * gcc/tree-ssa-dce.c: Coding style fix.
6372 (check_pow): Documentation comment.
6373 (check_log): Documenation comment. Coding style fix.
6374 (is_unnecessary_except_errno_call): Ditto.
6375 (gen_conditions_for_pow): Ditto.
6376 (gen_conditions_for_log): Ditto.
6377 (gen_shrink_wrap_conditions): Ditto.
6378 (shrink_wrap_one_built_in_calls): Ditto.
6379 * gcc/doc/invoke.texi: Better documentation string.
6380 * ChangeLog: Fix wrong change log entries from
6381 May 17 checkin on function call DCE.
6383 2008-05-17 Kaz Kojima <kkojima@gcc.gnu.org>
6385 * config/sh/sh.c (sh_output_mi_thunk): Update the use of init_flow.
6387 2008-05-17 Kenneth Zadeck <zadeck@naturalbridge.com>
6389 * doc/rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P): Fixed typos.
6390 * df-problems.c (simulation routines): Fixed block comment to
6391 properly say how to add forwards scanning functions.
6393 2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
6395 * tree-inline.c (setup_one_parameter): Remove dead code.
6397 2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
6399 * fold-const.c (fold_unary) <CASE_CONVERT>: Fold the cast into
6400 a BIT_AND_EXPR only for an INTEGER_TYPE.
6402 2008-05-17 Xinliang David Li <davidxl@google.com>
6404 * gcc/tree-ssa-dce.c (cond_dead_built_in_calls): New static variable.
6405 (check_pow, check_log, is_unnecessary_except_errno_call): New
6406 functions to check for eliminating math functions that are pure
6407 except for setting errno.
6408 (gen_conditions_for_pow, gen_conditionas_for_log): New functions to
6409 general condition expressions for shrink-wrapping pow/log calls.
6410 (gen_shrink_wrap_conditions): Ditto.
6411 (shrink_wrap_one_built_in_call): Ditto.
6412 (shrink_wrap_conditional_dead_built_in_calls): Ditto.
6413 (mark_operand_necessary): If debugging, output if OP is necessary.
6414 (eliminate_unnecessary_stmts): Eliminate pow, log calls that are
6416 * gcc/opts.c (decode_options): set flag_tree_builtin_dce to 1 when
6418 * gcc/common.opt: New user flag -ftree-builtin-dce.
6419 * gcc/doc/invoke.texi (-ftree-builtin-dce): New option.
6421 2008-05-16 David S. Miller <davem@davemloft.net>
6423 * config/sparc/linux.h (NO_PROFILE_COUNTERS): Undef before overriding.
6424 * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
6426 2008-05-16 Uros Bizjak <ubizjak@gmail.com>
6429 * config/i386/i386.h (SECONDARY_MEMORY_NEEDED_MODE): New define.
6431 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
6433 * ifcvt.c (dead_or_predicable): Rename
6434 df_simulate_one_insn_backwards to df_simulate_one_insn.
6435 * recog.c (peephole2_optimize): Ditto.
6436 * rtl-factoring.c (collect_pattern_seqs, clear_regs_live_in_seq):
6438 * df.h: Rename df_simulate_one_insn_backwards to
6439 df_simulate_one_insn. and delete df_simulate_one_insn_forwards.
6440 * df-problems.c (df_simulate_artificial_refs_at_top) Reversed
6441 scanning of defs and uses.
6442 (df_simulate_one_insn_backwards): Renamed to df_simulate_one_insn.
6443 (df_simulate_one_insn_forwards): Removed.
6445 2008-05-16 Doug Kwan <dougkwan@google.com>
6447 * real.c (real_to_decimal, real_to_hexadecimal): Distinguish
6449 (real_from_string): Handle NaNs and Inf as approriate.
6451 2008-05-16 Nathan Froyd <froydnj@codesourcery.com>
6453 * doc/gty.texi (Source Files Containing Type Information): Note
6454 that headers should appear first in the gtfiles list.
6456 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
6458 * tree.def (COND_EXEC): Properly documented this code.
6460 2008-05-16 Diego Novillo <dnovillo@google.com>
6462 * dwarf2asm.c (dw2_assemble_integer): Clarify comment.
6463 * tree-nested.c (get_trampoline_type): Set DECL_CONTEXT for
6466 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
6468 * tree-ssa-dse (max_stmt_uid): Removed.
6469 (get_stmt_uid, dse_possible_dead_store_p, dse_optimize_stmt,
6470 tree_ssa_dse): Encapsulate all uses of stmt_ann->uid.
6471 * tree-ssa-sccvn.c (compare_ops, init_scc_vn): Ditto.
6472 * function.h (cfun.last_stmt_uid): New field.
6473 * tree-flow-inline.h (set_gimple_stmt_uid, gimple_stmt_uid,
6474 gimple_stmt_max_uid, set_gimple_stmt_max_uid, inc_gimple_stmt_max_uid):
6476 * tree-dfa.c (renumber_gimple_stmt_uids): New function.
6477 (create_stmt_ann): Initialize the ann->uid field.
6478 * tree-ssa-pre.c (compute_avail): Encapsulate the stmt_ann->uid
6480 * tree-flow.h (renumber_gimple_stmt_uids): New function.
6482 2008-05-16 Nathan Froyd <froydnj@codesourcery.com>
6484 * tree-flow.h (init_empty_tree_cfg_for_function): Declare.
6485 * tree-cfg.c (init_empty_tree_cfg_for_function): Define.
6486 (init_empty_tree_cfg): Call it.
6488 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
6490 * cfg.c (init_flow): Add argument THE_FUN. Use it instead of cfun.
6493 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
6495 * doc/invoke.text (-fdump-tree-*-verbose): New option.
6496 * tree-dump.c (dump_options): New verbose option.
6497 * tree-pretty-print.c (dump_phi_nodes, dump_generic_bb_buff):
6499 * tree-pass.h (TDF_VERBOSE): New dump flag.
6500 * print-tree.c (print_node): Added code to be able to print PHI_NODES.
6501 (tree-flow.h): Added include.
6502 * Makefile.in (print-tree.o): Added TREE_FLOW_H.
6504 2008-05-16 Bernd Schmidt <bernd.schmidt@analog.com>
6506 * config/bfin/bfin.c (bfin_discover_loops): Delete empty loops.
6508 From Jie Zhang <jie.zhang@analog.com>
6509 * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
6510 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Remove mcpu=bf532-0.3,
6511 mcpu=bf561-none and mcpu=bf561-0.2.
6512 * config/bfin/t-bfin-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
6513 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
6514 * config/bfin/t-bfin-linux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
6515 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
6516 * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add BFIN_CPU_UNKNOWN.
6517 * config/bfin/elf.h (STARTFILE_SPEC): Use specific CRT for BF561.
6518 (LIB_SPEC): Use proper linker script for bf561. Error if no mcpu
6520 * config/bfin/bfin.c (bfin_cpu_type): Set to BFIN_CPU_UNKNOWN.
6521 (cputype_selected): Remove.
6522 (bfin_handle_option): Don't use cputype_selected.
6523 (override_options): When no mcpu option, enable all workarounds.
6524 Don't use bfin_workarounds.
6525 * config/bfin/bfin.h (DRIVER_SELF_SPECS): Don't set default
6527 (DEFAULT_CPU_TYPE): Don't define.
6529 2008-05-16 Richard Guenther <rguenther@suse.de>
6531 * tree-ssa-propagate.c (substitute_and_fold): Fix stmt walking
6532 on deletion of the last stmt.
6534 2008-05-15 H.J. Lu <hongjiu.lu@intel.com>
6536 * config/i386/i386.c (ix86_expand_vector_init_general): Optimize
6537 V8HImode for SSE2 and V16QImode for SSE4.1.
6539 2008-05-15 Kenneth Zadeck <zadeck@naturalbridge.com>
6541 * cgraph.h (compute_inline_parameters): Made public.
6542 * tree-pass.h (ipa_opt_pass): Removed function_generate_summary,
6543 variable_generate_summary, function_write_summary,
6544 variable_write_summary, variable_read_summary. Added generate_summary,
6545 write_summary, read_summary.
6546 * cgraphunit.c (cgraph_process_new_functions): Changed call from
6547 pass_ipa_inline.function_generate_summary, to
6548 compute_inline_parameters.
6549 * ipa-inline.c (compute_inline_parameters): Made public and added
6551 (compute_inline_parameters_for_current): New function.
6552 (pass_inline_param): Now calls compute_inline_parameters_for_current.
6553 (inline_generate_summary): Removed parameter and made to loop over
6555 (pass_ipa_inline): Updated for new IPA_PASS structure.
6556 * passes.c (execute_ipa_summary_passes): Now is called once per
6557 pass rather than once per node*pass.
6559 2008-05-15 Anatoly Sokolov <aesok@post.ru>
6561 * config/avr/avr.c (avr_base_arch_macro, avr_have_movw_lpmx_p,
6562 avr_have_mul_p, avr_asm_only_p): Remove variables.
6563 (avr_override_options): Remove initialization of removed variables.
6564 (avr_file_start): Convert removed variables to fields of
6565 'struct base_arch_s *avr_current_arch'.
6566 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): (Ditto.).
6567 (AVR_HAVE_MUL): (Ditto.).
6568 (AVR_HAVE_MOVW): (Ditto.).
6569 (AVR_HAVE_LPMX): (Ditto.).
6570 (avr_base_arch_macro, avr_have_movw_lpmx_p, avr_have_mul_p,
6571 avr_asm_only_p): Remove declaration.
6573 2008-05-15 Diego Novillo <dnovillo@google.com>
6575 * config/arm/arm.c (arm_return_in_memory): Fix return type.
6576 * config/arm/arm-protos.h (arm_return_in_memory): Likewise.
6578 2008-05-15 Adam Nemet <anemet@caviumnetworks.com>
6581 * combine.c (check_conversion): Rename back to check_promoted_subreg.
6582 Don't call record_truncated_value from here.
6583 (record_truncated_value): Turn it into a for_each_rtx callback.
6584 (record_truncated_values): New function.
6585 (combine_instructions): Call note_uses with record_truncated_values.
6586 Change name of check_conversion to check_promoted_subreg.
6588 2008-05-15 Janis Johnson <janis187@us.ibm.com>
6590 * doc/sourcebuild.texi: Document support for torture tests.
6592 2008-05-15 Uros Bizjak <ubizjak@gmail.com>
6594 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Add "m" constraint
6595 to alternative 4 of operand 2.
6597 2008-05-15 Richard Guenther <rguenther@suse.de>
6599 * tree-pass.h (current_pass): Declare.
6600 (get_pass_for_id): Likewise.
6601 * passes.c (passes_by_id, passes_by_id_size): New globals.
6602 (set_pass_for_id): New function.
6603 (get_pass_for_id): Likewise.
6604 (register_one_dump_file): Use set_pass_for_id to populate passes_by_id.
6605 (execute_function_todo): Flush per function statistics.
6606 * toplev.c (compile_file): Init statistics.
6607 (general_init): Do early statistics initialization.
6608 (finalize): Finish statistics.
6609 * statistics.h (statistics_early_init): Declare.
6610 (statistics_init): Likewise.
6611 (statistics_fini): Likewise.
6612 (statistics_fini_pass): Likewise.
6613 (statistics_counter_event): Likewise.
6614 (statistics_histogram_event): Likewise.
6615 * statistics.c: New file.
6616 * Makefile.in (OBJS-common): Add statistics.o.
6617 (statistics.o): Add dependencies.
6618 * doc/invoke.texi (-fdump-statistics): Document.
6620 * tree-ssa-pre.c (compute_antic): Use statistics_histogram_event.
6622 (execute_pre): Use statistics_counter_event.
6623 * tree-ssa-propagate.c (struct prop_stats_d): Add num_dce field.
6624 (substitute_and_fold): Increment it. Use statistics_counter_event.
6626 2008-05-15 Diego Novillo <dnovillo@google.com>
6628 http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00893.html
6630 * treestruct.def (TS_STRUCT_FIELD_TAG): Remove.
6631 * tree-ssa-alias.c (new_type_alias): Remove references to
6632 sub-variables from comment.
6633 * tree-ssa-operands.c (swap_tree_operands): Likewise.
6635 2008-05-15 H.J. Lu <hongjiu.lu@intel.com>
6637 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Set prefix_extra
6638 attribute to 1 only for insertps alternative.
6640 2008-05-15 Bernd Schmidt <bernd.schmidt@analog.com>
6642 * config/bfin/bfin.md (loadbytes): New pattern.
6643 * config/bfin/bfin.c (enum bfin_builtins): Add BFIN_BUILTIN_LOADBYTES.
6644 (bfin_init_builtins): Initialize it.
6645 (bdesc_1arg): Add it.
6647 2008-05-15 Sa Liu <saliu@de.ibm.com>
6649 * testsuite/gfortran.dg/c_kind_int128_test1.f03: New.
6650 * testsuite/gfortran.dg/c_kind_int128_test2.f03: New.
6651 * testsuite/lib/target-supports.exp: Add
6652 check_effective_target_fortran_integer_16.
6654 2008-05-15 Bernd Schmidt <bernd.schmidt@analog.com>
6656 * config/bfin/bfin.h (TARGET_RETURN_IN_MEMORY): Don't define here.
6657 * config/bfin/bfin-protos.h (bfin_return_in_memory): Don't declare.
6658 * config/bfin/bfin.c (bfin_return_in_memory): Now static. Return bool.
6659 (TARGET_RETURN_IN_MEMORY): Define.
6661 2008-05-15 Richard Guenther <rguenther@suse.de>
6664 * tree-ssa-alias.c (new_type_alias): Do not set TREE_READONLY.
6665 * tree-flow-inline.h (unmodifiable_var_p): Memory tags never
6666 represent unmodifiable vars.
6668 2008-05-15 Richard Guenther <rguenther@suse.de>
6670 * tree-dfa.c (refs_may_alias_p): Allow all kinds of
6671 INDIRECT_REF and TARGET_MEM_REF.
6672 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
6675 2008-05-15 Uros Bizjak <ubizjak@gmail.com>
6676 H.J. Lu <hongjiu.lu@intel.com>
6678 * config/i386/sse.md (*vec_concatv2sf_sse4_1): New insn pattern.
6679 (*vec_concatv2si_sse4_1): Use vector_move_operand predicate
6680 for operand 2. Remove pinsr{q,d} with 0x0 immediate operand from
6681 insn alternatives. Add missing alternatives.
6682 (*vec_concatv2di_rex64_sse4_1): Likewise.
6683 (*vec_concatv2si_sse2): Use "x" register constraint instead of "Y2".
6684 (*vec_concatv2di_rex64_sse): Rename from *vec_concatv2di_rex64.
6687 2008-05-15 Richard Guenther <rguenther@suse.de>
6689 PR tree-optimization/36009
6690 PR tree-optimization/36204
6691 * tree-ssa-loop-im.c (tree-ssa-propagate.h): Include.
6692 (determine_invariantness_stmt): Record the loop a store is
6694 * Makefile.in (tree-ssa-loop-im.o): Add tree-ssa-propagate.h
6697 2008-05-15 Richard Guenther <rguenther@suse.de>
6699 PR tree-optimization/34330
6700 * tree-ssa-alias.c (get_smt_for): Only assert that accesses
6701 through the pointer will alias the SMT.
6703 2008-05-14 Andreas Tobler <a.tobler@schweiz.org>
6705 * config/sparc/sparc.h (NO_PROFILE_COUNTERS): Define as 0.
6707 2008-05-14 H.J. Lu <hongjiu.lu@intel.com>
6709 * config/i386/sse.md (*sse4_1_pinsrq): Make it 64bit only.
6711 2008-05-14 Michael Meissner <michael.meissner@amd.com>
6712 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
6714 * optabs.h (optab_index): Add OTI_vashl, OTI_vlshr, OTI_vashr,
6715 OTI_vrotl, OTI_vrotr to support vector/vector shifts.
6716 (vashl_optab): New optab for vector/vector shifts.
6717 (vashr_optab): Ditto.
6718 (vlshr_optab): Ditto.
6719 (vrotl_optab): Ditto.
6720 (vrotr_optab): Ditto.
6721 (optab_subtype): New enum for optab_for_tree_code call.
6722 (optab_for_tree_code): Add enum optab_subtype argument.
6724 * optabs.c (optab_for_tree_code): Take an additional argument to
6725 distinguish between a vector shift by a scalar and vector shift by
6726 a vector. Make lshr/ashr/ashl/rotl/rotr optabs just vector
6727 shifted by a scalar. Use vlshr/vashr/vashl/vrotl/vrotr for the
6728 vector shift by a vector.
6729 (expand_widen_pattern_expr): Pass additional argument to
6730 optab_for_tree_code.
6732 * genopinit.c (optabs): Add vashr_optab, vashl_optab, vlshr_optab,
6733 vrotl_optab, vrotr_optab.
6735 * expr.c (expand_expr_real_1): Update calls to
6736 optab_for_tree_code to distinguish between vector shifted by a
6737 scalar and vector shifted by a vector.
6738 * tree-vectorizer.c (supportable_widening_operation): Ditto.
6739 (supportable_narrowing_operation): Ditto.
6740 * tree-vect-analyze.c (vect_build_slp_tree): Ditto.
6741 * tree-vect-patterns.c (vect_pattern_recog_1): Ditto.
6742 * tree-vect-transform.c (vect_model_reduction_cost): Ditto.
6743 (vect_create_epilog_for_reduction): Ditto.
6744 (vectorizable_reduction): Ditto.
6745 (vectorizable_operation): Ditto.
6746 (vect_strided_store_supported): Ditto.
6747 (vect_strided_load_supported): Ditto.
6748 * tree-vect-generic.c (expand_vector_operations_1): Ditto.
6749 * expmed.c (expand_shift): Ditto.
6751 * doc/md.texi (ashl@var{m}3): Document that operand 2 is always a
6753 (ashr@var{m}3): Ditto.
6754 (vashl@var{m}3): Document new vector/vector shift standard name.
6755 (vashr@var{m}3): Ditto.
6756 (vlshr@var{m}3): Ditto.
6757 (vrotl@var{m}3): Ditto.
6758 (vrotr@var{m}3): Ditto.
6760 * config/i386/i386.md (PPERM_SRC): Move PPERM masks here from i386.c.
6761 (PPERM_INVERT): Ditto.
6762 (PPERM_REVERSE): Ditto.
6763 (PPERM_REV_INV): Ditto.
6764 (PPERM_ZERO): Ditto.
6765 (PPERM_ONES): Ditto.
6766 (PPERM_SIGN): Ditto.
6767 (PPERM_INV_SIGN): Ditto.
6768 (PPERM_SRC1): Ditto.
6769 (PPERM_SRC2): Ditto.
6771 * config/i386/sse.md (mulv2di3): Add SSE5 support.
6772 (sse5_pmacsdql_mem): New SSE5 define_and_split that temporarily
6773 allows a memory operand to be the value being added, and split it
6774 to improve vectorization.
6775 (sse5_pmacsdqh_mem): Ditto.
6776 (sse5_mulv2div2di3_low): SSE5 32-bit multiply and extend function.
6777 (sse5_mulv2div2di3_high): Ditto.
6778 (vec_pack_trunc_v8hi): Add SSE5 pperm support.
6779 (vec_pack_trunc_v4si): Ditto.
6780 (vec_pack_trunc_v2di): Ditto.
6781 (sse5_pcmov_<mode>): Remove code that tried to use use
6782 andps/andnps instead of pcmov.
6783 (vec_widen_smult_hi_v4si): If we have SSE5, use the pmacsdql and
6784 pmacsdqh instructions.
6785 (vec_widen_smult_lo_v4si): Ditto.
6787 * config/i386/i386.c (PPERM_SRC): Move PPERM masks to i386.md.
6788 (PPERM_INVERT): Ditto.
6789 (PPERM_REVERSE): Ditto.
6790 (PPERM_REV_INV): Ditto.
6791 (PPERM_ZERO): Ditto.
6792 (PPERM_ONES): Ditto.
6793 (PPERM_SIGN): Ditto.
6794 (PPERM_INV_SIGN): Ditto.
6795 (PPERM_SRC1): Ditto.
6796 (PPERM_SRC2): Ditto.
6797 (ix86_expand_sse_movcc): Move the SSE5 test after the if
6799 (ix86_expand_int_vcond): If SSE5 generate all possible integer
6801 (ix86_sse5_valid_op_p): Allow num_memory to be negative, which
6802 says ignore whether the last reference is a memory operand.
6804 2008-05-14 Michael Meissner <michael.meissner@amd.com>
6805 Paolo Bonzini <bonzini at gnu dot org>
6807 * config/rs6000/rs6000.c (bdesc_2arg): Change the names of vector
6810 * config/rs6000/altivec.md (vashl<mode>3): Rename from ashl<mode>3.
6811 (vlshr<mode>3): Rename from vlshr<mode>3.
6812 (vashr<mode>3): Rename from vashr<mode>3.
6813 (mulv4sf3): Change the names of vector shift patterns.
6817 * config/spu/spu.c (spu_initialize_trampoline): Rename vector
6820 * config/spu/spu-builtins.def (SI_SHLH): Rename vector shift insns.
6845 * config/spu/spu.md (v): New iterator macro to add v for vector types.
6846 (floatunssidf2_internal): Change vector/vector shift names.
6847 (floatunsdidf2_internal): Ditto.
6854 (vashl<mode>3): Rename from ashl<mode>3.
6855 (vashr<mode>3): Rename from ashr<mode>3.
6856 (vlshr<mode>3): Rename from lshr<mode>3.
6857 (vrotl<mode>3): Rename from rotl<mode>3.
6859 2008-05-14 Michael Meissner <michael.meissner@amd.com>
6862 * config/i386/sse.md (vec_widen_smult_hi_v4si): Delete, using unsigned
6863 multiply gives the wrong value when doing widening multiplies.
6864 (vec_widen_smult_lo_v4si): Ditto.
6866 2008-05-14 Kenneth Zadeck <zadeck@naturalbridge.com>
6868 * optabs.c (prepare_cmp_insn): Changed LCT_PURE_MAKE_BLOCK to
6869 LCT_PURE and LCT_CONST_MAKE_BLOCK to LCT_CONST in calls to
6870 emit_library_call_value.
6871 * builtins.c (expand_builtin_powi, expand_builtin_memcmp): Ditto.
6872 * tree.h (ECF_LIBCALL_BLOCK): Removed.
6873 * calls.c (initialize_argument_information, precompute_arguments,
6874 expand_call, emit_library_call_value_1): Remove ECF_LIBCALL_BLOCK.
6875 (precompute_arguments): Removed flags parameter.
6876 * rtl.h (LCT_CONST_MAKE_BLOCK, LCT_PURE_MAKE_BLOCK): Removed.
6878 2008-05-14 Richard Guenther <rguenther@suse.de>
6880 * tree-ssa-dse.c (dse_possible_dead_store_p): Remove dead code.
6881 Make sure to register the store if the use is a PHI_NODE.
6883 2008-05-14 Olivier Hainque <hainque@adacore.com>
6885 * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
6886 memory if the component is to be referenced in BLKmode according
6887 to get_inner_reference.
6889 2008-05-14 Adam Nemet <anemet@caviumnetworks.com>
6891 * calls.c (emit_library_call_value_1): Restore code clearing
6892 ECF_LIBCALL_BLOCK to ensure that we only call end_sequence once.
6894 2008-05-14 Olivier Hainque <hainque@adacore.com>
6895 Nicolas Roche <roche@adacore.com>
6897 * configure.ac: Add support for a "gcc_subdir" variable in
6898 config-lang.in, to denote a subdirectory where the language/GCC
6899 integration files are to be found.
6900 * configure: Regenerate.
6902 2008-05-14 Ira Rosen <irar@il.ibm.com>
6904 PR tree-optimization/36098
6905 * tree-vect-analyze.c (vect_analyze_group_access): Set the gap
6906 value for the first load in the group in case of a gap.
6907 (vect_build_slp_tree): Check that there are no gaps in loads.
6909 2008-05-14 Kenneth Zadeck <zadeck@naturalbridge.com>
6911 * doc/rtl.texi: Removed reference to REG_NO_CONFLICT notes.
6912 * optabs.c (expand_binop, expand_absneg_bit, expand_unop,
6913 expand_copysign_bit, ): Change call to emit_no_conflict_block to
6914 emit_insn and remove unneeded code to construct extra args.
6915 (emit_no_conflict_block): Removed.
6916 * optabls.h: (emit_no_conflict_block): Removed.
6917 * cse.c (cse_extended_basic_block): Remove search for
6918 REG_NO_CONFLICT note.
6919 * global.c: Removed incorrect comment added in revision 117.
6920 * expr.c (convert_move): Change call to emit_no_conflict_block to
6922 * recog.c: Change comments so that they do not mention
6924 * local_alloc.c (combine_regs): Removed last parameter.
6925 (no_conflict_p): Removed.
6926 (block_alloc): Removed note, no_conflict_combined_regno and set
6927 local vars. Removed all code to process REG_NO_CONFLICT blocks.
6928 (combine_regs): Removed already_dead and code to look for
6929 REG_NO_CONFLICT notes.
6930 * lower_subreg (remove_retval_note): Removed code to look for
6931 REG_NO_CONFLICT block.
6932 (resolve_reg_notes): Removed REG_NO_CONFLICT case.
6933 (resolve_clobber): Remove code to process libcalls that have
6934 REG_NO_CONFLICT notes.
6935 * loop_invariant.c (find_invariant_insn): Removed REG_NO_CONFLICT
6937 * combine.c (can_combine_p, distribute_notes): Removed
6938 REG_NO_CONFLICT case.
6939 * config/cris/cris.md (movdi pattern): Changed emit_no_conflict_block
6941 * config/mn10300/mn10300.md (absdf2, negdf2 patterns): Ditto.
6942 * config/m68k/m68k.md (negdf2, negxf2, absdf2, absxf2 patterns):
6944 * reg-notes.def (NO_CONFLICT): Removed.
6946 2008-05-14 David S. Miller <davem@davemloft.net>
6948 * config/sparc/sparc.c (sparc_profile_hook): If
6949 NO_PROFILE_COUNTERS, don't generate and pass a label into mcount.
6950 * config/sparc/linux.h (NO_PROFILE_COUNTERS): Define as 1.
6951 * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
6953 2008-05-14 Andreas Krebbel <krebbel1@de.ibm.com>
6955 * cse.c (cse_cc_succs): Invoke delete_insn_and_edges.
6957 2008-05-13 Uros Bizjak <ubizjak@gmail.com>
6960 * config/i386/i386.c (ix86_expand_vector_init_general): Rearrange op0
6961 and op1 expansion before vector concat to have less live pseudos.
6963 2008-05-13 H.J. Lu <hongjiu.lu@intel.com>
6965 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
6966 ix86_expand_vector_set if supported.
6968 2008-05-13 Diego Novillo <dnovillo@google.com>
6969 Kenneth Zadeck <zadeck@naturalbridge.com>
6971 http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00748.html
6973 * tree.h (init_phinodes, fini_phinodes, release_phi_node,
6974 phinodes_print_statistics, init_ssanames, fini_ssanames,
6975 make_ssa_name, duplicate_ssa_name, duplicate_ssa_name_ptr_info,
6976 release_ssa_name, release_defs, replace_ssa_name_symbol,
6977 ssanames_print_statistics): Move ...
6978 * tree-flow.h: ... here.
6979 * tree-ssanames.c (init_ssanames): Add arguments FN and SIZE.
6980 Use FN instead of cfun.
6981 (make_ssa_name_fn): Rename from make_ssa_name.
6982 (pass_release_ssa_names): Add TODO_dump_func to finish flags.
6983 * tree-flow-inline.h (make_ssa_name): Move from
6984 tree-ssanames.c. Convert to static inline. Call make_ssa_name_fn.
6985 * omp-low.c (expand_omp_parallel):
6986 * tree-flow-inline.h (redirect_edge_var_map_result):
6987 * tree-ssa.c (init_tree_ssa): Add argument FN.
6988 Use it instead of cfun. Update all users.
6990 2008-05-13 Tom Tromey <tromey@redhat.com>
6992 PR preprocessor/22168:
6993 * doc/cpp.texi (Top): Update menu.
6994 (Alternatives to Wrapper #ifndef): New node.
6995 (Other Directives): Document deprecation.
6996 (Obsolete Features): Remove menu.
6997 (Assertions): Merge node into Obsolete Features.
6998 (Obsolete once-only headers): Move earlier; rename to Alternatives
7000 * doc/cppopts.texi: Update.
7001 * c.opt (Wdeprecated): Enable for C and ObjC.
7002 * doc/invoke.texi (Option Summary): Move -Wno-deprecated.
7003 (C++ Dialect Options): Move -Wno-deprecated from here to...
7004 (Warning Options): ... here.
7006 2008-05-13 Richard Guenther <rguenther@suse.de>
7009 * fold-const.c (fold_sign_changed_comparison): Do not allow
7010 changes in pointer-ness.
7012 2008-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
7015 * config/sh/sh.c (sh_expand_prologue): Don't clear
7016 RTX_FRAME_RELATED_P for push insns.
7018 2008-05-12 Andy Hutchinson <hutchinsonandy@aim.com>
7020 * config/avr/avr.h (MAX_OFILE_ALIGNMENT): Define.
7022 2008-05-12 Anatoly Sokolov <aesok@post.ru>
7024 * config/avr/avr.h (machine_function): Add 'is_leaf' field.
7025 * config/avr/avr.c (avr_regs_to_save): Compute 'machine->is_leaf'.
7026 Use 'machine->is_leaf' instead of 'leaf_func_p'.
7028 2008-05-12 H.J. Lu <hongjiu.lu@intel.com>
7030 * config/i386/sse.md (*sse_concatv4sf): Renamed to ...
7031 (*vec_concatv4sf_sse): This.
7032 (*sse2_concatv2si): Renamed to ...
7033 (*vec_concatv2si_sse2): This.
7034 (*sse1_concatv2si): Renamed to ...
7035 (*vec_concatv2si_sse): This.
7036 (*vec_concatv2di_rex): Renamed to ...
7037 (*vec_concatv2di_rex64): This.
7038 (*vec_concatv2si_sse4_1): New.
7039 (*vec_concatv2di_rex64_sse4_1): Likewise.
7041 2008-05-12 Uros Bizjak <ubizjak@gmail.com>
7043 PR rtl-optimization/36111
7044 * recog.c (validate_replace_rtx_1): Unshare new RTL expression
7045 that was created for swappable operands.
7047 2008-05-12 Samuel Tardieu <sam@rfc1149.net>
7050 * Makefile.in: Substitute GNATMAKE and GNATBIND.
7051 * configure.ac: Add call to ACX_PROG_GNAT.
7053 2008-05-11 Volker Reichelt <v.reichelt@netcologne.de>
7055 * optc-gen.awk: Fix comment typo.
7057 2008-05-11 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
7059 * pretty-print.c (pp_integer_with_precision): Use
7060 HOST_LONG_LONG_FORMAT.
7062 2008-05-10 Kenneth Zadeck <zadeck@naturalbridge.com>
7064 * gcse.c (store_killed_in_insn): Negated call to RTL_CONST_CALL_P.
7066 2008-05-10 H.J. Lu <hongjiu.lu@intel.com>
7068 * config/i386/i386.c (bdesc_ptest): Removed.
7069 (ix86_builtin_type): Add INT_FTYPE_V2DI_V2DI_PTEST.
7070 (bdesc_args): Add __builtin_ia32_ptestz128,
7071 __builtin_ia32_ptestc128 and __builtin_ia32_ptestnzc128.
7072 (ix86_init_mmx_sse_builtins): Updated.
7073 (ix86_expand_args_builtin): Handle INT_FTYPE_V2DI_V2DI_PTEST.
7074 (ix86_expand_builtin): Updated.
7076 2008-05-10 Richard Sandiford <rdsandiford@googlemail.com>
7078 * tree-cfg.c (valid_fixed_convert_types_p): New function.
7079 (verify_gimple_expr): Handle FIXED_CONVERT_EXPR.
7081 2008-05-10 Uros Bizjak <ubizjak@gmail.com>
7083 * value-prof.c (interesting_stringop_to_profile): Do not
7084 return early for BUILT_IN_MEMPCPY.
7086 2008-05-09 H.J. Lu <hongjiu.lu@intel.com>
7088 * calls.c (expand_call): Don't use callgraph to increase
7089 preferred_stack_boundary.
7091 * cgraph.h (cgraph_rtl_info): Use unsigned on
7092 preferred_incoming_stack_boundary.
7094 * final.c (rest_of_clean_state): Use unsigned on
7095 preferred_stack_boundary.
7097 2008-05-09 Tom Tromey <tromey@redhat.com>
7099 PR preprocessor/22231:
7100 * c-opts.c (sanitize_cpp_opts): Disallow -MG if compilation is
7103 2008-05-09 Uros Bizjak <ubizjak@gmail.com>
7105 PR tree-optimization/36129
7106 * tree-ssa-ccp.c: Include value-prof.h.
7107 (execute_fold_all_builtins): Call gimple_remove_stmt_histograms if
7108 built-in function was folded to a constant.
7109 * Makefile.in (tree-ssa-ccp.c): Depend on value-prof.h
7111 2008-05-09 Jan Sjodin <jan.sjodin@amd.com>
7112 Sebastian Pop <sebastian.pop@amd.com>
7114 * tree-scalar-evolution.c: Document instantiate_scev.
7115 (instantiate_parameters_1): Renamed instantiate_scev_1.
7116 Don't use the same loop for instantiation_loop and evolution_loop.
7117 (instantiate_scev): New.
7118 (instantiate_parameters): Moved...
7119 (resolve_mixers): Update call to instantiate_scev_1 to pass the
7120 same loop twice. Maintains the semantics for this function.
7121 * tree-scalar-evolution.h (instantiate_scev): Declare.
7122 (instantiate_parameters): ...here. Now static inline.
7123 * tree-data-ref.c (dr_analyze_indices): Call instantiate_scev
7124 instead of resolve_mixers.
7126 2008-05-09 Maxim Kuvyrkov <maxim@codesourcery.com>
7128 * rtl-factoring.c (collect_pattern_seqs): Fix typo.
7130 2008-05-09 Tomas Bily <tbily@suse.cz>
7132 * config/pa/pa.c (reloc_needed): Use CASE_CONVERT.
7133 * tree-cfg.c (verify_expr, verify_gimple_expr): Likewise.
7134 * tree-ssa-structalias.c (get_constraint_for): Likewise.
7135 * c-common.c (c_common_truthvalue_conversion): Likewise.
7136 * tree-object-size.c (compute_object_offset): Likewise.
7137 * tree-inline.c (estimate_num_insns_1): Likewise.
7138 * varasm.c (const_hash_1, compare_constant, copy_constant)
7139 (compute_reloc_for_constant, output_addressed_constants)
7140 (initializer_constant_valid_p): Likewise.
7141 * c-omp.c (check_omp_for_incr_expr): Likewise.
7142 * gimplify.c (gimplify_expr): Likewise.
7143 * c-typeck.c (c_finish_return): Likewise.
7144 * tree-vectorizer.c (supportable_widening_operation)
7145 (supportable_narrowing_operation): Likewise.
7146 * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Likewise.
7147 * matrix-reorg.c (can_calculate_expr_before_stmt): Likewise.
7148 * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
7149 * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info)
7150 (descr_info_loc): Likewise.
7151 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
7152 * fold-const.c (operand_equal_p, make_range, extract_muldiv_1)
7153 (fold_unary): Likewise.
7154 * builtins.c (get_pointer_alignment): Likewise.
7155 * tree-scalar-evolution.c (interpret_rhs_modify_stmt)
7156 (instantiate_parameters_1): Likewise.
7157 * tree.c (expr_align, stabilize_reference): Likewise.
7158 * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
7159 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
7160 * convert.c (strip_float_extensions): Use CONVERT_EXPR_P.
7161 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
7162 * config/alpha/alpha.c (va_list_skip_additions): Likewise.
7163 * c-common.c (c_alignof_expr, check_function_arguments_recurse):
7165 * tree-ssa.c (tree_ssa_useless_type_conversion): Likewise.
7166 * varasm.c (initializer_constant_valid_p, output_constant): Likewise.
7167 * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
7168 (forward_propagate_addr_expr_1, forward_propagate_addr_expr)
7169 (forward_propagate_comparison)
7170 (tree_ssa_forward_propagate_single_use_vars): Likewise.
7171 * cfgexpand.c (discover_nonconstant_array_refs_r): Likewise.
7172 * emit-rtl.c (component_ref_for_mem_expr)
7173 (set_mem_attributes_minus_bitpos): Likewise.
7174 * tree-ssa-phiopt.c (conditional_replacement): Likewise.
7175 * gimplify.c (gimplify_conversion, goa_lhs_expr_p, gimplify_expr):
7177 * c-typeck.c (default_function_array_conversion, build_indirect_ref)
7178 (build_function_call, pointer_diff, build_compound_expr)
7179 (c_finish_return): Likewise.
7180 * tree-vect-analyze.c (vect_determine_vectorization_factor): Likewise.
7181 * matrix-reorg.c (get_inner_of_cast_expr, may_flatten_matrices_1):
7183 * tree-ssa-ifcombine.c (recognize_single_bit_test): Likewise.
7184 * expr.c (is_aligning_offset): Likewise.
7185 * tree-ssa-alias.c (is_escape_site): Likewise.
7186 * tree-stdarg.c (va_list_counter_bump, check_va_list_escapes)
7187 (check_all_va_list_escapes): Likewise.
7188 * tree-ssa-loop-ivopts.c (determine_base_object)
7189 (determine_common_wider_type): Likewise.
7190 * dojump.c (do_jump): Likewise.
7191 * tree-ssa-sccvn.c (simplify_unary_expression): Likewise.
7192 * tree-gimple.c (is_gimple_cast): Likewise.
7193 * fold-const.c (decode_field_reference, )
7194 (fold_sign_changed_comparison, fold_unary, fold_comparison)
7195 (fold_binary): Likewise.
7196 * tree-ssa-alias-warnings.c (find_alias_site_helper)
7197 (already_warned_in_frontend_p): Likewise.
7198 * builtins.c (get_memory_rtx, fold_builtin_next_arg): Likewise.
7199 * tree.c (really_constant_p, get_unwidened): Likewise.
7200 * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
7201 * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
7202 * tree-vrp.c (register_edge_assert_for_2, register_edge_assert_for_1):
7204 * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Use
7206 (CONVERT_EXPR_P): Define.
7207 (CASE_CONVERT): Define.
7209 2008-05-08 Kenneth Zadeck <zadeck@naturalbridge.com>
7212 * dce.c (deletable_insn_p): Do not delete calls if df_in_progress.
7213 (delete_unmarked_insns): When deleting a call, call
7214 delete_unreachable_blocks.
7215 * rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
7216 RTL_CONST_OR_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P): Fixed doc.
7218 2008-05-08 Richard Guenther <rguenther@suse.de>
7220 * doc/invoke.texi (-fdump-tree-salias): Remove documentation.
7221 (-ftree-salias): Likewise.
7222 (salias-max-implicit-fields): Remove param documentation.
7223 (salias-max-array-elements): Likewise.
7224 * tree-pass.h (pass_create_structure_vars): Remove.
7225 * params.h (SALIAS_MAX_IMPLICIT_FIELDS): Remove.
7226 (SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
7227 * tree-ssa-alias.c (create_structure_vars): Remove.
7228 (gate_structure_vars): Likewise.
7229 (pass_create_structure_vars): Likewise.
7230 (gate_build_alias): Likewise.
7231 (pass_build_alias): Adjust to run always and dump the function.
7232 * common.opt (ftree-salias): Hide.
7233 * passes.c (init_optimization_passes): Remove
7234 pass_create_structure_vars, adjust comment.
7235 * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): Remove.
7236 (PARAM_SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
7237 * opts.c (decode_options): Do not set flag_tree_salias.
7238 (common_handle_option): Add OPT_ftree_salias to the backward
7239 compatibility section.
7241 2008-05-08 Richard Guenther <rguenther@suse.de>
7243 * tree-flow-inline.h (var_can_have_subvars): Move ...
7244 * tree-ssa-structalias.c (var_can_have_subvars): ... here.
7245 * tree-flow.h (var_can_have_subvars): Remove.
7246 (push_fields_onto_fieldstack): Remove.
7247 (sort_fieldstack): Likewise.
7248 (struct fieldoff): Move ...
7249 * tree-ssa-structalias.c (struct fieldoff): ... here. Remove
7250 alias_set and base_for_components fields.
7251 (sort_fieldstack): Make static.
7252 (push_fields_onto_fieldstack): Likewise. Remove code that
7253 handles anything but RECORD_TYPEs. Remove alias_set and
7254 base_for_components handling.
7255 (create_variable_info_for): Adjust.
7257 2008-05-08 Seongbae Park <seongbae.park@gmail.com>
7259 * common.opt (Wframe-larger-than=): Shorten the help message
7261 * doc/invoke.texi (Wframe-larger-than=): Add more description.
7263 2008-05-08 Rafael Espindola <espindola@google.com>
7265 * tree-complex.c (expand_complex_div_wide): Don't create CONDs that
7267 * tree-gimple.c (is_gimple_condexpr): Check that the expression doesn't
7268 trap and that both operands are gimple values.
7269 (canonicalize_cond_expr_cond): Use is_gimple_condexpr.
7270 * gcc/tree-eh.c (tree_could_trap_p): Correctly detect if a comparison
7273 2008-05-08 Richard Sandiford <rsandifo@nildram.co.uk>
7275 * read-rtl.c (join_c_conditions): Return the first string if the
7276 two strings are equal.
7278 2008-05-08 Richard Sandiford <rsandifo@nildram.co.uk>
7280 * gensupport.h (pred_data): Add a "num_codes" field.
7281 (add_predicate_code): Declare.
7282 * gensupport.c (add_predicate_code): New function.
7283 (std_pred_table): Add an "allows_const_p" field.
7284 (std_preds): Set this field for predicates that allow RTX_CONST_OBJs.
7285 Remove the (incomplete) list of such codes from the codes field.
7286 (init_predicate_table): Use add_predicate_code. Add all
7287 RTX_CONST_OBJs if allows_const_p is true.
7288 * genrecog.c (process_define_predicate): Use add_predicate_code.
7290 2008-05-08 David Daney <ddaney@avtrex.com>
7291 Richard Sandiford <rsandifo@nildram.co.uk>
7293 * config/mips/mips.md (mips_expand_compare_and_swap_12): Handle
7294 special case of constant zero operands.
7295 * config/mips/mips.c (mips_expand_compare_and_swap_12): Zero extend
7296 old and new values. Special case constant zero values.
7297 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Skip 'sync' if compare
7299 (MIPS_COMPARE_AND_SWAP_12): Handle constant zero operands.
7300 (MIPS_COMPARE_AND_SWAP_12_0): New macro.
7302 2008-05-08 Paolo Bonzini <bonzini@gnu.org>
7305 * simplify-rtx.c (simplify_plus_minus): Create CONST of
7306 similar RTX_CONST_OBJ before CONST_INT.
7308 2008-05-08 Steve Ellcey <sje@cup.hp.com>
7310 * stmt.c (expand_stack_restore): Change sa mode if needed.
7312 2008-05-08 Richard Guenther <rguenther@suse.de>
7314 * config/i386/i386-protos.h (ix86_return_in_memory): Adjust
7315 return type to bool.
7316 (ix86_sol10_return_in_memory): Likewise.
7317 (ix86_i386elf_return_in_memory): Likewise.
7318 (ix86_i386interix_return_in_memory): Likewise.
7319 * config/i386/i386.c (ix86_return_in_memory): Likewise.
7320 (ix86_sol10_return_in_memory): Likewise.
7321 (ix86_i386elf_return_in_memory): Likewise.
7322 (ix86_i386interix_return_in_memory): Likewise.
7324 2008-05-08 Kai Tietz <kai.tietz@onevision.com>
7327 * calls.c (compute_argument_block_size ): Add ATTRIBUTE_UNUSED to
7329 (emit_library_call_value_1): Add ATTRIBUTE_UNUSED to variable fndecl.
7330 * target-def.h: Check that TARGET_RETURN_IN_MEMORY isn't
7333 2008-05-08 Richard Guenther <rguenther@suse.de>
7335 * tree-data-ref.c (dr_analyze_alias): Do not set DR_SUBVARS.
7336 * tree-data-ref.h (struct dr_alias): Remove subvars field.
7337 (DR_SUBVARS): Remove.
7338 * tree-dfa.c (dump_subvars_for): Remove.
7339 (debug_subvars_for): Likewise.
7340 (dump_variable): Do not dump subvars.
7341 (remove_referenced_var): Do not remove subvars.
7342 * tree-flow-inline.h (clear_call_clobbered): SFTs no longer exist.
7343 (lookup_subvars_for_var): Remove.
7344 (get_subvars_for_var): Likewise.
7345 (get_subvars_at): Likewise.
7346 (get_first_overlapping_subvar): Likewise.
7347 (overlap_subvar): Likewise.
7348 * tree-flow.h (subvar_t): Remove.
7349 (struct var_ann_d): Remove subvars field.
7350 * tree-ssa-alias.c (mark_aliases_call_clobbered): Remove queued
7351 argument. Remove special handling of SFTs.
7352 (compute_tag_properties): Likewise.
7353 (set_initial_properties): Likewise.
7354 (compute_call_clobbered): Likewise.
7355 (count_mem_refs): Likewise.
7356 (compute_memory_partitions): Likewise.
7357 (compute_flow_insensitive_aliasing): Likewise.
7358 (setup_pointers_and_addressables): Likewise.
7359 (new_type_alias): Likewise.
7360 (struct used_part): Remove.
7361 (used_portions): Likewise.
7362 (struct used_part_map): Likewise.
7363 (used_part_map_eq): Likewise.
7364 (used_part_map_hash): Likewise.
7365 (free_used_part_map): Likewise.
7366 (up_lookup): Likewise.
7367 (up_insert): Likewise.
7368 (get_or_create_used_part_for): Likewise.
7369 (create_sft): Likewise.
7370 (create_overlap_variables_for): Likewise.
7371 (find_used_portions): Likewise.
7372 (create_structure_vars): Likewise.
7373 * tree.def (STRUCT_FIELD_TAG): Remove.
7374 * tree.h (MTAG_P): Adjust.
7375 (struct tree_memory_tag): Remove base_for_components and
7376 unpartitionable flags.
7377 (struct tree_struct_field_tag): Remove.
7378 (SFT_PARENT_VAR): Likewise.
7379 (SFT_OFFSET): Likewise.
7380 (SFT_SIZE): Likewise.
7381 (SFT_NONADDRESSABLE_P): Likewise.
7382 (SFT_ALIAS_SET): Likewise.
7383 (SFT_UNPARTITIONABLE_P): Likewise.
7384 (SFT_BASE_FOR_COMPONENTS_P): Likewise.
7385 (union tree_node): Remove sft field.
7386 * alias.c (get_alias_set): Remove special handling of SFTs.
7387 * print-tree.c (print_node): Remove handling of SFTs.
7388 * tree-dump.c (dequeue_and_dump): Likewise.
7389 * tree-into-ssa.c (mark_sym_for_renaming): Likewise.
7390 * tree-nrv.c (dest_safe_for_nrv_p): Remove special handling of SFTs.
7391 * tree-predcom.c (set_alias_info): Do not set subvars.
7392 * tree-pretty-print.c (dump_generic_node): Do not handle SFTs.
7393 * tree-ssa-loop-ivopts.c (get_ref_tag): Likewise.
7394 * tree-ssa-operands.c (access_can_touch_variable): Likewise.
7395 (add_vars_for_offset): Remove.
7396 (add_virtual_operand): Remove special handling of SFTs.
7397 (add_call_clobber_ops): Likewise.
7398 (add_call_read_ops): Likewise.
7399 (get_asm_expr_operands): Likewise.
7400 (get_modify_stmt_operands): Likewise.
7401 (get_expr_operands): Likewise.
7402 (add_to_addressable_set): Likewise.
7403 * tree-ssa.c (verify_ssa_name): Do not handle SFTs.
7404 * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
7405 * tree-vect-transform.c (vect_create_data_ref_ptr): Do not set subvars.
7406 * tree.c (init_ttree): Remove STRUCT_FIELD_TAG initialization.
7407 (tree_code_size): Remove STRUCT_FIELD_TAG handling.
7408 (tree_node_structure): Likewise.
7409 * tree-ssa-structalias.c (set_uids_in_ptset): Remove special
7411 (find_what_p_points_to): Likewise.
7413 2008-05-08 Sa Liu <saliu@de.ibm.com>
7415 * config/spu/spu.md: Fixed subti3 pattern.
7417 2008-05-08 Richard Guenther <rguenther@suse.de>
7420 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
7421 sure to create a representative for trailing arrays for PTA.
7423 2008-05-08 Richard Guenther <rguenther@suse.de>
7426 * fold-const.c (operand_equal_p): Two objects which types
7427 differ in pointerness are not equal.
7429 2008-05-08 Kai Tietz <kai.tietz@onevision.com>
7431 * calls.c (compute_argument_block_size): Add argument tree fndecl.
7432 (OUTGOING_REG_PARM_STACK_SPACE): Add function type argument.
7433 (emit_library_call_value_1): Add new variable fndecl initialized by
7434 NULL_TREE. It should be the decl type of orgfun, but this information
7435 seems not to be available here, so it uses the default calling abi.
7436 * config/arm/arm.c (arm_return_in_memory): Add fntype argumen.
7437 * config/arm/arm.h (RETURN_IN_MEMORY): Replace RETURN_IN_MEMORY
7438 by TARGET_RETURN_IN_MEMORY.
7439 * config/i386/i386-interix.h: Likewise.
7440 * config/i386/i386.h: Likewise.
7441 * config/i386/i386elf.h: Likewise.
7442 * config/i386/ptx4-i.h: Likewise.
7443 * config/i386/sol2-10.h: Likewise.
7444 * config/i386/sysv4.h: Likewise.
7445 * config/i386/vx-common.h: Likewise.
7446 * config/cris/cris.h: Removed #if 0 clause.
7447 * config/arm/arm-protos.h (arm_return_in_memory): Add fntype argument.
7448 * config/i386/i386-protos.h (ix86_return_in_memory): Add fntype
7450 (ix86_sol10_return_in_memory): Likewise.
7451 (ix86_i386elf_return_in_memory): New.
7452 (ix86_i386interix_return_in_memory): New.
7453 * config/mt/mt-protos.h (mt_return_in_memory): New.
7454 * config/mt/mt.c: Likewise.
7455 * config/mt/mt.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
7456 (RETURN_IN_MEMORY): Replace by TARGET_RETURN_IN_MEMORY.
7457 * config/bfin/bfin.h: Likewise.
7458 * config/bfin/bfin-protos.h (bfin_return_in_memory): Add fntype
7460 * config/bfin/bfin.c: Likewise.
7461 * config/pa/pa.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
7462 * config/alpha/unicosmk.h: Likewise.
7463 * config/i386/cygming.h: Likewise.
7464 * config/iq2000/iq2000.h: Likewise.
7465 * config/mips/mips.h: Likewise.
7466 * config/mn10300/mn10300.h: Likewise.
7467 * config/rs6000/rs6000.h: Likewise.
7468 * config/score/score.h: Likewise.
7469 * config/spu/spu.h: Likewise.
7470 * config/v850/v850.h: Likewise.
7471 * defaults.h: Likewise.
7472 * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Adjust documentation.
7473 * expr.c (emit_block_move): Adjust use of
7474 OUTGOING_REG_PARM_STACK_SPACE.
7475 * function.c (STACK_DYNAMIC_OFFSET): Adjust use of
7476 OUTGOING_REG_PARM_STACK_SPACE.
7477 * targhooks.c (default_return_in_memory): Remove RETURN_IN_MEMORY.
7479 2008-05-08 Jakub Jelinek <jakub@redhat.com>
7481 * tree-parloops.c (create_parallel_loop): Set OMP_RETURN_NOWAIT
7482 on OMP_RETURN for OMP_FOR.
7485 * dwarf2out.c (dw_expand_expr, common_check): Removed.
7486 (fortran_common): New function.
7487 (gen_variable_die): Call fortran_common instead of common_check,
7488 adjust for it returning tree instead of rtx. Formatting.
7490 2008-05-07 Kenneth Zadeck <zadeck@naturalbridge.com>
7494 * see.c (see_copy_insn): Copy new pure const attributes for new call.
7495 * c-decl.c (merge_decls): Ditto.
7496 * postreload.c (record_opr_changes): Change CONST_OR_PURE_CALL_P
7497 to RTL_CONST_OR_PURE_CALL_P.
7498 * tree.c (define_local_buitin): Rename DECL_IS_PURE to DECL_PURE_P.
7499 Initialized DECL_LOOPING_CONST_PURE.
7500 (process_call_operands): Set tree_side_effects properly.
7501 * tree.h (TREE_READONLY_DECL_P): Removed.
7502 (DECL_IS_PURE): Renamed to DECL_PURE_P.
7503 (DECL_LOOPING_OR_CONST_P): New macro.
7504 (struct tree_function_decl): Added looping_const_or_pure_p.
7506 (ECF_LOOPING_OR_CONST_P): New macro.
7507 * rtlanal.c (pure_const_p): Removed.
7508 * builtins.c (expand_builtin): Rename DECL_IS_PURE to DECL_PURE_P.
7509 * reorg.c (delete_prior_computation) Changed CONST_OR_PURE_CALL_P
7510 to RTL_CONST_CALL_P.
7511 * ipa-pure-const.c (pure_const_state_e): Added looping field.
7512 (check_decl, check_tree, check_call, scan_function): Initialize
7514 (analyze_function): Rename DECL_IS_PURE to DECL_PURE_P.
7515 (static_execute): Set looping true for recursive functions.
7516 Undo setting state to IPA_NEITHER for recursive functions.
7518 * ifcvt.c (noce_can_store_speculate_p): Changed
7519 CONST_OR_PURE_CALL_P and pure_call_p to RTL_CONST_CALL_P or
7520 RTL_CONST_OR_PURE_CALL_P.
7521 * dse.c (scan_insn): Ditto.
7522 * local-alloc.c (validate_equiv_mem, memref_used_between_p): Ditto.
7523 * gcse.c (oprs_not_seen_p) Changed CONST_OR_PURE_CALL_P to
7524 RTL_CONST_OR_PURE_CALL_P.
7525 (store_killed_in_insn): Changed CONST_OR_PURE_CALL_P and
7526 pure_call_p to RTL_CONST_CALL_P.
7527 * gimplify.c (gimplify_call_expr): Clear side effects for
7528 non-looping pure and constant calls.
7529 * calls.c (emit_call_1): Set rtl flags from ecf flags.
7530 (flags_from_decl_or_type): Set ecf flags from decl flags.
7531 (initialize_argument_information): Turn off
7532 ECF_LOOPING_CONST_OR_PURE when turning off ECF_CONST.
7533 Change const to pure if callee_copies is true rather than just
7535 (expand_call): Turn off ECF_LOOPING_PURE_CONST_CALL and remove old
7536 way of marking pure calls.
7537 (emit_library_call_value_1): Turn off ECF_LOOPING_PURE_CONST_CALL.
7538 Remove hack that was supposed to fix pr7335 and remove old
7539 way of marking pure calls.
7540 * emit-rtl.c (emit_copy_of_insn_after): Copy RTL_CONST_CALL_P,
7541 RTL_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P.
7542 * cselib.c (cselib_process_insn): Changed CONST_OR_PURE_CALL_P to
7543 RTL_CONST_OR_PURE_CALL_P.
7544 * tree-ssa-pre.c (can_value_number_call): Fixed spacing.
7545 * loop-invariant.c (find_exits, find_invariant_bb): Changed
7546 CONST_OR_PURE_CALL_P to RTL_CONST_OR_PURE_CALL_P.
7547 * sched-deps.c (schedule_analyze): Ditto.
7548 * rtl.h (struct rtx_def): Use call field, unchanging field, and
7549 return_val field of calls to represent pure and const function info.
7550 (CONST_OR_PURE_CALL_P): Deleted macro.
7551 (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
7552 RTL_LOOPING_CONST_OR_PURE_CALL_P, RTL_CONST_OR_PURE_P): New macros.
7553 * tree-inline.c (copy_body_r): Changed TREE_READONLY_DECL_P to
7555 * tree-optimize.c (execute_fixup_cfg): Added test for
7556 ECF_LOOPING_CONST_OR_PURE.
7557 * c-common.c (handle_pure_attribute): Changed DECL_IS_PURE to
7559 * tree-cfg.c (update_call_expr_flags): Do not clear tree side
7560 effects for looping pure or const calls.
7561 (verify_gimple_expr): Added verification code.
7562 * config/alpha/alpha.c (alpha_legitimize_address,
7563 alpha_emit_xfloating_libcall): Changed CONST_OR_PURE_CALL_P to
7565 * config/s390/s390.c (s390_emit_tls_call_insn): Ditto.
7566 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Ditto.
7567 * config/mips/mips.c (mips_call_tls_get_addr): Ditto.
7568 * cfgrtl.c (need_fake_edge_p): Changed CONST_OR_PURE_CALL_P to
7569 RTL_CONST_OR_PURE_CALL_P.
7570 * dce.c (deletable_insn_p): Allow non looping, non sibling, pure
7571 and const calls to be deleted.
7573 2008-05-07 Uros Bizjak <ubizjak@gmail.com>
7576 * config/i386/mmx.md (mmx_subv2sf3): New expander.
7577 (*mmx_subv2sf3): Rename from mmx_subv2sf3 insn pattern.
7578 (*mmx_eqv2sf3): Rename from mmx_eqv2sf3 insn pattern.
7579 (mmx_eqv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
7580 to handle nonimmediate operands.
7581 (*mmx_paddwd): Rename from mmx_paddwd insn pattern.
7582 (mmx_paddwd): New expander. Use ix86_fixup_binary_operands_no_copy
7583 to handle nonimmediate operands.
7584 (*mmx_pmulhrwv4hi3): Rename from mmx_pmulhrwv4hi3 insn pattern.
7585 (mmx_pmulhrwv4hi3): New expander. Use
7586 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7587 (*sse2_umulv1siv1di3): Rename from sse2_umulv1siv1di3 insn pattern.
7588 (sse2_umulv1siv1di3): New expander. Use
7589 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7590 (*mmx_eq<mode>3): Rename from mmx_eq<mode>3 insn pattern.
7591 (mmx_eq<mode>3): New expander. Use
7592 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7593 (*mmx_uavgv8qi3): Rename from mmx_uavgv8qi3 insn pattern.
7594 (mmx_uavgv8qi3): New expander. Use
7595 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7596 (*mmx_uavgv4hi3): Rename from mmx_uavgv4hi3 insn pattern.
7597 (mmx_uavgv4hi3): New expander. Use
7598 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7600 * config/i386/sse.md
7601 (sse_movhlps_exp): New expander. Use ix86_fixup_binary_operands
7602 to handle nonimmediate operands.
7603 (sse_movlhps_exp): New expander. Use ix86_fixup_binary_operands
7604 to handle nonimmediate operands.
7605 (sse_loadhps_exp): New expander. Use ix86_fixup_binary_operands
7606 to handle nonimmediate operands.
7607 (sse_loadlps_exp): New expander. Use ix86_fixup_binary_operands
7608 to handle nonimmediate operands.
7609 (sse2_unpckhpd_exp): New expander. Use
7610 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7611 (sse2_unpcklpd_exp): New expander. Use
7612 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7613 (sse_loadhpd_exp): New expander. Use ix86_fixup_binary_operands
7614 to handle nonimmediate operands.
7615 (sse_loadlpd): New expander. Use ix86_fixup_binary_operands
7616 to handle nonimmediate operands.
7617 (*sse2_<plusminus_insn><mode>3): Rename from
7618 sse2_<plusminus_insn><mode>3 insn pattern.
7619 (sse2_<plusminus_insn><mode>3): New expander. Use
7620 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7621 (*sse2_umulv2siv2di3): Rename from sse2_umulv2siv2di3 insn pattern.
7622 (sse2_umulv2siv2di3): New expander. Use
7623 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7624 (*sse4_1_mulv2siv2di3): Rename from sse4_1_mulv2siv2di3 insn pattern.
7625 (sse4_1_mulv2siv2di3): New expander. Use
7626 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7627 (*sse2_pmaddwd): Rename from sse2_pmaddwd insn pattern.
7628 (sse2_pmaddwd): New expander. Use
7629 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7630 (*sse2_eq<mode>3): Rename from sse2_eq<mode>3 insn pattern.
7631 (sse2_eq<mode>3): New expander. Use
7632 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7633 (*sse4_1_eqv2di3): Rename from sse4_1_eqv2di3 insn pattern.
7634 (sse4_1_eqv2di3): New expander. Use
7635 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7636 (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
7637 (sse2_uavgv16qi3): New expander. Use
7638 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7639 (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
7640 (sse2_uavgv16qi3): New expander. Use
7641 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7642 (*sse2_uavgv8hi3): Rename from sse2_uavgv8hi3 insn pattern.
7643 (sse2_uavgv8hi3): New expander. Use
7644 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7645 (*ssse3_pmulhrswv8hi3): Rename from ssse3_pmulhrswv8hi3 insn pattern.
7646 (ssse3_pmulhrswv8hi3): New expander. Use
7647 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7648 (*ssse3_pmulhrswv4hi3): Rename from ssse3_pmulhrswv4hi3 insn pattern.
7649 (ssse3_pmulhrswv4hi3): New expander. Use
7650 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7652 (<sse>_vm<plusminus_insn><mode>3): Do not use ix86_binary_operator_ok.
7653 (<sse>_vmmul<mode>3): Ditto.
7654 (divv4sf3): Do not use ix86_fixup_binary_operands_no_copy.
7656 (ssse3_pmaddubsw128): Use register_operand for operand 1.
7657 (ssse3_pmaddubsw): Ditto.
7659 * config/i386/i386.c (struct_builtin_description)
7660 [IX86_BUILTIN_LOADHPS]: Use CODE_FOR_sse_loadhps_exp.
7661 [IX86_BUILTIN_STOREHPS]: Use CODE_FOR_sse_loadlps_exp.
7662 [IX86_BUILTIN_LOADHPD]: Use CODE_FOR_sse2_loadhpd_exp.
7663 [IX86_BUILTIN_LOADLPD]: Use CODE_FOR_sse2_loadlpd_exp.
7664 [IX86_BUILTIN_MOVHLPS]: Use CODE_FOR_sse_movhlps_exp.
7665 [IX86_BUILTIN_MOVLHPS]: Use CODE_FOR_sse_movlhps_exp.
7666 [IX86_BUILTIN_UNPCKHPD]: Use FOR_sse2_unpckhpd_exp.
7667 [IX86_BUILTIN_UNPCKLPD]: Use FOR_sse2_unpcklpd_exp.
7668 (ix86_fixup_binary_operands): Assert that src1
7669 and src2 must have the same mode when swapped.
7670 (ix86_expand_binop_builtin): Do not use ix86_fixup_binary_operands
7671 and ix86_binary_operator_ok. Do not force operands in registers
7674 2008-05-07 Jan Hubicka <jh@suse.cz>
7676 * cgraph.c (dump_cgraph_node): Update.
7677 * cgraph.h (cgraph_local_info): Break out inline summary.
7678 * cgraphunit.c (cgraph_process_new_functions): Use inliner analysis
7680 * ipa-inline (inline_summary): New accestor function.
7681 (cgraph_clone_inlined_nodes, cgraph_check_inline_limits,
7682 cgraph_decide_inlining, compute_inline_parameters): Update.
7683 * ipa.c (cgraph_remove_unreachable_nodes): Remove statistics.
7685 2008-05-07 Maxim Kuvyrkov <maxim@codesourcery.com>
7687 Cleanup ColdFire scheduling support and add V4 pipeline model.
7689 * config/m68k/m68k.md (UNSPEC_TIE): New constant.
7690 (define_attr cpu): Add cfv4 value.
7691 (define_attr type, define_attr type1): Merge into a single 'type'
7692 attribute. Update all uses.
7693 (define_attr opx_type, define_attr opy_type, define_attr opx_access):
7694 Rearrange and update. Rename value 'reg' to 'Rn', add value 'FPn'.
7696 (define_attr opx_mem, define_attr opy_mem): Remove.
7697 (define_attr op_mem): Clean up, update comment.
7698 (define_attr size): Use specific values instead of general int.
7699 (define_attr guess, define_attr split): Remove. Update all uses.
7700 (movdf_internal, tstsi_internal, tsthi_internal, tstqi_internal,
7701 tst<mode>_68881, pushexthisi_const, movsi_const0_68000_10,
7702 movsi_const0_68040_60, movsi_const0, movsi_cf, movstrictqi_cf,
7703 zero_extendhisi2_cf, zero_extendqisi2_cfv4, cfv4_extendhisi2,
7704 68k_extendhisi2, extendqihi2, cfv4_extendqisi2, 68k_extendqisi2,
7705 floatsi<mode>2_68881, ftrunc<mode>2_68881, ftrunc<mode>2_cf,
7706 fix<mode>qi2_68881, fix<mode>hi2_68881, fix<mode>si2_68881,
7707 adddi_dishl32, addsi3_5200, add<mode>3_floatsi_68881,
7708 add<mode>3_floathi_68881, add<mode>3_floatqi_68881,
7709 add<mode>3_68881, add<mode>3_cf, subdi_dishl32, subsi3,
7710 sub<mode>3_floatsi_68881, sub<mode>3_floathi_68881,
7711 sub<mode>3_floatqi_68881, sub<mode>3_68881, sub<mode>3_cf,
7712 mulhi3, mulhisi3, mulhisisi3_s, mulsi3_68020, mulsi3_cf,
7713 umulhisi3, mulhisisi3_z, mul<mode>3_floatsi_68881,
7714 mul<mode>3_floathi_68881, mul<mode>3_floatqi_68881, fmul<mode>3_cf,
7715 div<mode>3_cf, sqrt<mode>2_cf, abs<mode>2_cf, clzsi2,
7716 one_cmplsi2_5200, subreghi1ashrdi_const32, ashrsi3, lshrsi3,
7717 bsetmemqi, bsetmemqi_ext, bclrmemqi, bclrmemqi_ext,
7718 beq, bne, bgt, blt, bordered, bunordered, buneq, bunge, bungt, bunle,
7719 bunlt, bltgt, tablejump_internal, call, non_symbolic_call_value,
7720 symbolic_call_value_jsr, symbolic_call_value_bsr, link):
7721 Update or set attributes.
7722 (stack_tie): New fake instruction.
7724 * config/m68k/m68k.h (TUNE_CFV4): New macro.
7725 (m68k_sched_attr_size): Update declaration.
7726 (m68k_sched_attr_type2): Remove.
7727 (m68k_sched_address_bypass_p, m68k_sched_indexed_address_bypass_p):
7728 Declare new bypass predicates.
7730 * config/m68k/m68k.c (m68k_sched_issue_rate,
7731 m68k_sched_first_cycle_multipass_dfa_lookahead): Declare hook
7733 (TARGET_SCHED_ISSUE_RATE,
7734 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Override hooks.
7735 (override_options): Handle scheduling for ColdFire V4 core.
7736 (m68k_expand_prologue): Emit stack_tie.
7737 (enum attr_op_type): Split value 'OP_TYPE_REG' to 'OP_TYPE_RN' and
7738 'OP_TYPE_FPN'. Update all uses.
7739 (sched_guess_p): Remove.
7740 (sched_address_type): Handle symbolic addresses.
7741 (sched_get_operand): New static function.
7742 (sched_operand_type): Merge into sched_attr_op_type.
7743 (sched_attr_op_type): Handle FP registers, handle quick constants,
7745 (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type): Update.
7746 (m68k_sched_attr_size): Update. Move logic to ...
7747 (sched_get_attr_size_int): New static function.
7748 (sched_get_opxy_mem_type): New static function.
7749 (m68k_sched_attr_op_mem): Update.
7750 (m68k_sched_attr_type2): Remove.
7751 (sched_cfv4_bypass_data): New static variable.
7752 (m68k_sched_adjust_cost): Handle ColdFire V4 bypass.
7753 (m68k_sched_issue_rate): Implement scheduler hook.
7754 (struct _sched_ib: enabled_p): New field.
7755 (m68k_sched_variable_issue): Update. Handle V4.
7756 (SCHED_DUMP_TODO, SCHED_DUMP_DONE, SCHED_DUMP_NOTHING,
7757 sched_dump_class_func_t, sched_dump_split_class,
7758 sched_dump_dfa_guess_unit_code, sched_dump_dfa_state,
7759 sched_dump_dfa_class, m68k_sched_dump): Remove.
7760 (m68k_sched_first_cycle_multipass_dfa_lookahead): Implement scheduler
7762 (m68k_sched_init_global): Remove statisctics dumping, introduce
7763 sanity check that all instructions have pipeline reservations. Handle
7765 (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
7766 Handle ColdFire V4 core.
7767 (sched_mem_operand_p, sched_get_reg_operand, sched_get_mem_operand):
7768 New static functions.
7769 (m68k_sched_address_bypass_p): New bypass predicate.
7770 (sched_get_indexed_address_scale): New static function.
7771 (m68k_sched_indexed_address_bypass_p): New bypass predicate.
7773 * cf.md: Update comments.
7774 (define_attr type2): Remove. Use 'type' attribute instead.
7776 (cf_ib): Rename to cfv123_ib. Update all uses.
7777 (cf_oep): Rename to cfv123_oep. Update all uses.
7778 (cf_chr): Rename to cfv123_chr. Update all uses.
7779 (cf_mem): Rename to cfv123_mem. Update all uses.
7780 (cf_mac): Move to more appropriate place.
7781 (cfv123_guess): New automaton and cpu_unit.
7782 (cfv123_*, cfv12_*, cfv1_*, cfv2_*, cfv3_*): Use type attribute.
7783 Update uses of 'size' attribute. Handle before reload scheduling.
7784 (cfv123_guess): New dummy reservation for unhandled instructions.
7785 (cfv4_*): Pipeline description of ColdFire V4 core.
7786 (ignore): New reservation to handle 'ignore' type.
7788 2008-05-07 Ian Lance Taylor <iant@google.com>
7791 * gimplify.c (find_single_pointer_decl_1): Don't look through
7793 (find_single_pointer_decl): Adjust comments.
7795 2008-05-07 Jakub Jelinek <jakub@redhat.com>
7798 * fold-const.c (fold_binary): Use STRIP_SIGN_NOPS instead of
7799 STRIP_NOPS on arguments even for MIN_EXPR and MAX_EXPR.
7802 * omp-low.c (expand_omp_atomic_pipeline): Load value using the
7803 integral type rather than floating point, then VIEW_CONVERT_EXPR
7804 to the floating point type.
7806 2008-05-07 Uros Bizjak <ubizjak@gmail.com>
7808 * config/i386/i386.c (ix86_expand_copysign): Force non-zero constant
7809 TFmode op0 to register.
7811 2008-05-07 Alan Modra <amodra@bigpond.net.au>
7813 * c-decl.c (grokdeclarator): Comment typo.
7815 2008-05-06 Aldy Hernandez <aldyh@redhat.com>
7817 * tree-flow.h: Remove prototype for computed_goto_p.
7818 * tree-cfg.c (computed_goto_p): Make static.
7820 2008-05-06 H.J. Lu <hongjiu.lu@intel.com>
7823 * config/i386/i386.c (contains_128bit_aligned_vector_p): Renamed to ...
7824 (contains_aligned_value_p): This. Handle _Decimal128.
7825 (ix86_function_arg_boundary): Only align _Decimal128 to its
7826 natural boundary and handle it properly.
7828 2008-05-06 Martin Jambor <mjambor@suse.cz>
7830 * ipa-cp.c (ipcp_method_orig_node): Renamed to ipcp_get_orig_node.
7831 (ipcp_method_is_cloned): Renamed to ipcp_node_is_clone
7832 (ipcp_method_set_orig_node): Removed.
7833 (ipcp_cval_get_cvalue_type): Removed.
7834 (ipcp_method_get_scale): Renamed to ipcp_get_node_scale.
7835 (ipcp_method_set_scale): Renamed to ipcp_set_node_scale.
7836 (ipcp_cval_set_cvalue_type): Removed.
7837 (ipcp_cval_get_cvalue): Removed.
7838 (ipcp_cval_set_cvalue): Removed.
7839 (ipcp_type_is_const): Renamed to ipcp_lat_is_const.
7840 (ipcp_cval_equal_cvalues): Renamed to ipcp_lats_are_equal
7841 (ipcp_lats_are_equal): Changed parameters to two ipcp_lattice's
7842 (ipcp_cval_meet): Renamed to ipa_lattice_meet
7843 (ipcp_cval_changed): Changed to use ipcp_lat_is_const
7844 (ipcp_method_cval): Renamed to ipcp_get_ith_lattice
7845 (ipcp_get_ith_lattice): Changed parameters.
7846 (ipcp_cval_compute): Renamed to ipcp_lattice_from_jfunc
7847 (ipcp_lattice_from_jfunc): Changed parameters.
7848 (ipcp_redirect): Local lattice pointer instead of lattice type variable.
7849 (ipcp_method_cval_print): Added temporary variable info.
7850 (ipcp_redirect): Removed already unused local variable caller.
7851 (ipcp_redirect): New temporary variable orig_callee_info
7852 (ipcp_redirect): Removed newly unused local variable callee.
7853 (ipcp_redirect): Removed (a bit confusing) local variable type.
7854 (ipcp_insert_stage): Added local variable info.
7855 (ipcp_cval_changed): Renamed to ipcp_lattice_changed, parameters
7857 (ipcp_formal_create): Removed.
7858 (ipcp_method_cval_set): Removed.
7859 (ipcp_propagate_stage): Renamed lattice variables.
7860 (ipcp_method_cval_set_cvalue_type): Removed.
7861 (ipcp_method_cval_print): Renamed to ipcp_print_all_lattices
7862 (ipcp_print_all_lattices): Changed printed strings to refer to
7863 lattices rather than cvals.
7864 (ipcp_method_cval_init): Renamed to ipcp_initialize_node_lattices
7865 (ipcp_propagate_const): Changed formal parameters.
7866 (build_const_val): Changed formal parameters.
7867 (ipcp_insert_stage): Removed useless variable cvalue
7868 (build_const_val): Changed formal parameters.
7869 (ipcp_method_compute_scale): Renamed to ipcp_compute_node_scale
7870 (ipcp_after_propagate): Renamed to ipcp_change_tops_to_bottom
7871 (ipcp_callsite_param_print): Renamed to ipcp_print_all_jump_functions
7872 (ipcp_profile_mt_count_print): Renamed to ipcp_print_func_profile_counts
7873 (ipcp_print_func_profile_counts): Changed string from "method" to
7875 (ipcp_profile_cs_count_print): Renamed to ipcp_print_call_profile_counts
7876 (ipcp_profile_edge_print): Renamed to ipcp_print_edge_profiles
7877 (ipcp_profile_bb_print): Renamed to ipcp_print_bb_profiles
7878 (ipcp_structures_print): Renamed to ipcp_print_all_structures
7879 (ipcp_profile_print): Renamed to ipcp_print_profile_data
7880 (ipcp_lat_is_const): Changed parameters and made inline.
7881 (ipcp_replace_map_create): Renamed to ipcp_create_replace_map
7882 (ipcp_redirect): Renamed to ipcp_need_redirect_p
7883 (ipcp_need_redirect_p): Calls ipcp_lat_is_const instead of using
7884 the predicate condition directly
7885 (ipcp_propagate_stage): Added local variable args. Removed local
7886 variable callee. (Both are mere code simplifications.)
7887 (ipcp_method_dont_insert_const): Renamed to
7888 ipcp_node_not_modifiable_p.
7889 (ipcp_node_not_modifiable_p): Made inline.
7890 (ipcp_cloned_create): Renamed to ipcp_init_cloned_node
7891 (ipcp_propagate_const): Renamed to ipcp_propagate_one_const
7892 (ipcp_print_all_lattices): Removed variable cvalue
7893 (ipcp_method_scale_print): Renamed to ipcp_function_scale_print
7896 2008-05-06 Olivier Hainque <hainque@adacore.com>
7898 * tree-sra.c (try_instantiate_multiple_fields): Early return
7899 if field has POINTER_TYPE.
7901 2008-05-06 Kai Tietz <kai.tietz@onevision.com>
7903 * config/i386/i386.c (output_set_got): Fix for x86_64 output_emit_asm
7904 by using 'q' specifier for instruction.
7905 (ix86_file_end): Replaced case TARGET_64BIT_MS_ABI by TARGET_64BIT.
7907 2008-05-06 Anatoly Sokolov <aesok@post.ru>
7909 * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
7910 Change mode of zero_extract from QImode to HImode.
7911 (sign bit tests peepholes): (Ditto.).
7913 2008-05-06 Uros Bizjak <ubizjak@gmail.com>
7915 * config/i386/mmx.md: Remove double backslashes from asm templates.
7916 (*mmx_addv2sf3): Rename from mmx_addv2sf3 insn pattern.
7917 (mmx_addv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
7918 to handle nonimmediate operands.
7919 (*mmx_mulv2sf3): Rename from mmx_mulv2sf3 insn pattern.
7920 (mmx_mulv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
7921 to handle nonimmediate operands.
7922 (*mmx_<code>v2sf3_finite): New insn pattern.
7923 (*mmx_<code>v2sf3): Rename from mmx_<code>v2sf3 insn pattern.
7924 (mmx_<code>v2sf3): New expander. Use
7925 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7926 (mmx_<plusminus_insn><mode>3): New expander. Use
7927 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7928 (*mmx_<plusminus_insn><mode>3): New insn pattern.
7929 (mmx_add<mode>3): Removed.
7930 (mmx_ssadd<mode>3): Ditto.
7931 (mmx_usadd<mode>3): Ditto.
7932 (mmx_sub<mode>3): Ditto.
7933 (mmx_sssub<mode>3): Ditto.
7934 (mmx_ussub<mode>3): Ditto.
7935 (*mmx_mulv4hi3): Rename from mmx_mulv4hi3 insn pattern.
7936 (mmx_mulv4hi3): New expander. Use ix86_fixup_binary_operands_no_copy
7937 to handle nonimmediate operands.
7938 (*mmx_smulv4hi3_highpart): Rename from mmx_smulv4hi3_highpart
7940 (mmx_smulv4hi3_highpart): New expander. Use
7941 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7942 (*mmx_umulv4hi3_highpart): Rename from mmx_umulv4hi3_highpart
7944 (mmx_umulv4hi3_highpart): New expander. Use
7945 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7946 (*mmx_<code>v4hi3): Rename from mmx_<code>v4hi3 insn pattern.
7947 (mmx_<code>v4hi3): New expander. Use
7948 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7949 (*mmx_<code>v8qi3): Rename from mmx_<code>v8qi3 insn pattern.
7950 (mmx_<code>v8qi3): New expander. Use
7951 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7952 (*mmx_<code><mode>3): Rename from mmx_<code><mode>3 insn pattern.
7953 (mmx_<code><mode>3): New expander. Use
7954 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7956 2008-05-05 Jan Hubicka <jh@suse.cz>
7958 PR tree-optimization/36118
7959 * passes.c (pass_init_dump_file): Fix dump header.
7961 2008-05-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
7964 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't create
7965 VCE for function decls.
7967 2008-05-05 H.J. Lu <hongjiu.lu@intel.com>
7969 * config/i386/sse.md (sse2_<plusminus_insn><mode>3): Fix a typo.
7971 2008-05-05 H.J. Lu <hongjiu.lu@intel.com>
7973 * config/i386/i386.md (sat_plusminus): New.
7974 (plusminus_insn): Likewise.
7975 (plusminus_mnemonic): Likewise.
7977 (comm): Add ss_plus, us_plus, ss_minus and us_minus.
7978 (*<addsub><mode>3_cc_overflow): Renamed to ...
7979 (*<plusminus_insn><mode>3_cc_overflow): This.
7980 (*<addsub>si3_zext_cc_overflow): Renamed to ...
7981 (*<plusminus_insn>si3_zext_cc_overflow): This.
7983 * config/i386/sse.md (<addsub><mode>3): Renamed to ...
7984 (<plusminus_insn><mode>3): This.
7985 (*<addsub><mode>3): Renamed to ...
7986 (*<plusminus_insn><mode>3): This.
7987 (<sse>_vm<addsub><mode>3): Renamed to ...
7988 (<sse>_vm<plusminus_insn><mode>3): This.
7989 (sse3_h<addsub>v4sf3): Renamed to ...
7990 (sse3_h<plusminus_insn>v4sf3): This.
7991 (sse3_h<addsub>v2df3): Renamed to ...
7992 (sse3_h<plusminus_insn>v2df3): This.
7993 (<plusminus_insn><mode>3): New.
7994 (*<plusminus_insn><mode>3): Likewise.
7995 (sse2_<plusminus_insn><mode>3): Likewise.
7996 (add<mode>): Removed.
7997 (*add<mode>3): Likewise.
7998 (sse2_ssadd<mode>3): Likewise.
7999 (sse2_usadd<mode>3): Likewise.
8000 (sub<mode>3): Likewise.
8001 (*sub<mode>3): Likewise.
8002 (sse2_sssub<mode>3): Likewise.
8003 (sse2_ussub<mode>3): Likewise.
8005 2008-05-05 Benjamin Kosnik <bkoz@redhat.com>
8007 * gthr-single.h: Add in required interface elements as per gthr.h.
8008 Add stub types for __gthread_key_t, __gthread_once_t. Add defines
8009 for __GTHREAD_ONCE_INIT, __GTHREAD_RECURSIVE_MUTEX_INIT.
8010 Generalize UNUSED macro.
8011 (__gthread_once): Add.
8012 (__gthread_key_create): Add.
8013 (__gthread_key_delete): Add.
8014 (__gthread_getspecific): Add.
8015 (__gthread_setspecific): Add.
8017 2008-05-05 Andrew Pinski <Andrew.Pinski@playstation.sony.com>
8019 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If we have
8020 the same size types for the indirect reference on the rhs, then
8023 2008-05-05 Uros Bizjak <ubizjak@gmail.com>
8025 * config/i386/i386.md
8026 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Use only
8027 one insn template instead of template series.
8028 (*xordi_1_rex64): Ditto.
8029 (*xordi_2_rex64): Ditto.
8031 2008-05-05 Ira Rosen <irar@il.ibm.com>
8033 PR tree-optimization/36119
8034 * tree-vect-transform.c (vectorizable_assignment): Set NCOPIES to 1
8037 2008-06-04 Jan Hubicka <jh@suse.cz>
8039 tree-optimization/36100
8040 * tree-pass.h (pass_O0_always_inline): Declare.
8041 * ipa-inline.c (inline_transform): Remove dead code.
8042 (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
8043 pass_O0_always_inline): New.
8044 * passes.c (init_optimization_passes): Add pass_O0_always_inline.
8046 2008-05-04 Kai Tietz <kai.tietz@onevision.com>
8048 * config/i386/i386.c (x86_output_mi_thunk): Use movq alternative
8049 mnemonic in this_param move for TARGET_64BIT.
8051 2008-05-04 Uros Bizjak <ubizjak@gmail.com>
8053 * config/i386/i386.md (*strmovsi_1): Simplify asm alternatives.
8054 (*strmovsi_rex_1): Ditto.
8055 (*strsetsi_1): Ditto.
8056 (*strsetsi_rex_1): Ditto.
8058 (add<mode>cc): Macroize expander from addqicc, addhicc, addsicc and
8059 adddicc expanders using SWI mode iterator.
8061 2008-05-04 H.J. Lu <hongjiu.lu@intel.com>
8064 * config/i386/i386.c (ix86_expand_special_args_builtin): Remove three
8067 2008-05-04 David S. Miller <davem@davemloft.net>
8069 * config.gcc (sparc*-*-*): Always set need_64bit_hwint to yes.
8070 (sparc*-*-linux*): Use linux.h in tm_file.
8071 (sparc-*-linux*): If 'enabled_targets' is 'all', build a bi-arch
8072 compiler defaulting to 32-bit.
8073 (sparc*-*-*): Remove explicit target settings of need_64bit_hwint,
8075 * config/sparc/linux.h: Remove definitions now obtained
8076 properly from linux.h
8077 * config/sparc/linux64.h: Likewise.
8078 (ASM_CPU_DEFAULT_SPEC): Change this to ASM_CPU64_DEFAULT_SPEC, we
8079 don't want this setting for 32-bit builds in a biarch compiler.
8080 * doc/install.texi: Add sparc-linux to list of targets
8081 supporting --enable-targets=all.
8083 2008-05-03 Andrew Pinski <pinskia@gmail.com>
8085 * Makefile.in (tree-ssa-phiprop.o): Fix dependencies.
8087 2008-05-03 H.J. Lu <hongjiu.lu@intel.com>
8089 * config/i386/i386.c (ix86_builtin_type): Move V4SI_FTYPE_V4SF
8090 after V4SI_FTYPE_V8HI.
8091 (ix86_init_mmx_sse_builtins): Move case V4HI_FTYPE_V4HI after
8092 case V4SI_FTYPE_V2DF.
8094 2008-05-03 Kenneth Zadeck <zadeck@naturalbridge.com>
8096 * doc/invoke.texi (max-flow-memory-locations): Removed.
8097 * params.def (PARAM_MAX_FLOW_MEMORY_LOCATIONS): Removed.
8099 2008-05-03 Richard Guenther <rguenther@suse.de>
8102 * opts.c (set_Wstrict_aliasing): Handle the turn-off case.
8104 2008-05-02 David S. Miller <davem@davemloft.net>
8106 * config.gcc (need_64bit_hwint): Document libcpp dependency.
8108 2008-05-02 Simon Baldwin <simonb@google.com>
8111 * c-common.h (warn_array_subscript_range): Removed.
8112 * c-common.c (warn_array_subscript_range): Ditto.
8113 * tree-vrp.c (check_array_ref): Revert to ignoring arrays with size 2.
8114 * c-typeck.c (build_array_ref): Remove warn_array_subscript_range.
8116 2008-05-02 H.J. Lu <hongjiu.lu@intel.com>
8118 * config/i386/i386.c (ix86_special_builtin_type): New.
8119 (bdesc_special_args): Likewise.
8120 (ix86_expand_special_args_builtin): Likewise.
8121 (ix86_init_mmx_sse_builtins): Updated.
8122 (ix86_expand_builtin): Updated.
8123 (ix86_expand_store_builtin): Removed.
8124 (ix86_expand_unop_builtin): Likewise.
8126 * config/i386/mm3dnow.h (__v2sf): Moved to ...
8127 * config/i386/mmintrin.h (__v2sf): Here.
8129 * config/i386/xmmintrin.h (_mm_loadh_pi): Replace __v2si with
8131 (_mm_loadl_pi): Likewise.
8132 (_mm_storeh_pi): Replace __v2si with __v2sf.
8133 (_mm_storel_pi): Likewise.
8135 * doc/extend.texi: Correct __builtin_ia32_loadhps,
8136 __builtin_ia32_loadlps, __builtin_ia32_storehps,
8137 __builtin_ia32_storelps, __builtin_ia32_loadhpd and
8138 __builtin_ia32_loadlpd.
8140 2008-05-02 H.J. Lu <hongjiu.lu@intel.com>
8142 * config/i386/i386.c (ix86_builtin_type): Add FLOAT_FTYPE_FLOAT,
8143 V4SF_FTYPE_V4SF_VEC_MERGE and V2DF_FTYPE_V2DF_VEC_MERGE.
8144 (bdesc_args): Updated. Add scalar SSE builtins with vec_merge.
8145 (ix86_init_mmx_sse_builtins): Updated.
8146 (ix86_expand_args_builtin): Likewise.
8147 (ix86_expand_builtin): Likewise.
8148 (ix86_expand_unop1_builtin): Renamed to ...
8149 (ix86_expand_unop_vec_merge_builtin): This.
8151 2008-05-01 Jan Hubicka <jh@suse.cz>
8154 * ipa-inline.c (inline_generate_summary): Make static.
8155 (inline_transform): Do not call inlining at -O0; make static.
8156 * passes.c (execute_todo): Add sanity check.
8157 (execute_one_ipa_transform_pass): Execute proper flags.
8159 2008-05-01 Eric Botcazou <ebotcazou@adacore.com>
8161 * tree.h (TYPE_NONALIASED_COMPONENT): Expand comment.
8162 (DECL_NONADDRESSABLE_P): Likewise.
8163 * alias.c (record_component_aliases): Fix comment.
8165 2008-05-01 Simon Baldwin <simonb@google.com>
8167 * c-common.h (warn_array_subscript_range): New function.
8168 * c-common.c (warn_array_subscript_range): Ditto.
8169 * tree-vrp.c (check_array_ref): Corrected code to agree with
8170 comment, ignoring only arrays of size 0 or size 1.
8171 * c-typeck.c (build_array_ref): Call warn_array_subscript_range.
8173 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
8175 * config/i386/i386.c (ix86_builtin_type): Replace
8176 DI_FTYPE_DI_DI_INT with V1DI2DI_FTYPE_V1DI_V1DI_INT.
8177 (bdesc_args): Updated.
8178 (ix86_init_mmx_sse_builtins): Likewise.
8179 (ix86_expand_args_builtin): Likewise.
8181 * config/i386/tmmintrin.h (_mm_alignr_pi8): Replace long long
8184 * doc/extend.texi: Correct __builtin_ia32_palignr.
8186 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
8189 * config/i386/i386.c (bdesc_crc32): Removed.
8190 (ix86_expand_crc32): Likewise.
8191 (ix86_builtin_type): Replace V2DI2TI_FTYPE_V2DI2TI_INT with
8192 V2DI2TI_FTYPE_V2DI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT with
8193 V2DI2TI_FTYPE_V2DI_V2DI_INT. Add UINT64_FTYPE_UINT64_UINT64,
8194 UINT_FTYPE_UINT_UINT, UINT_FTYPE_UINT_USHORT and
8195 UINT_FTYPE_UINT_UCHAR.
8196 (bdesc_args): Updated. Add crc32 builtins.
8197 (ix86_init_mmx_sse_builtins): Updated.
8198 (ix86_expand_args_builtin): Updated to support subreg.
8200 * doc/extend.texi: Correct __builtin_ia32_crc32di.
8202 2008-05-01 Jan Hubicka <jh@suse.cz>
8204 * tree-pass.h (opt_pass): Add IPA_PASS.
8205 (varpool_node, cgraph_node): Forward declare.
8206 (ipa_opt_pass): Define.
8207 (pass_ipa_inline): Turn into ipa_opt_pass.
8208 (pass_apply_inline): Remove.
8209 * ipa-inline.c (pass_ipa_inline): Turn into ipa_opt_pass.
8210 (apply_inline): Turn into ....
8211 (inline_transform): ... this one.
8212 (inline_generate_summary): New function.
8213 (pass_apply_inline): Remove.
8214 * function.h (ipa_opt_pass): Forward declare structure; typedef;
8216 (struct function): Add ipa_transforms_to_apply.
8217 * passes.c (register_one_dump_file): Work on IPA_PASS.
8218 (init_optimization_passes): Remove pass_inline_parameters and
8220 (pass_init_dump_file, pass_fini_dump_file): Break out from ....
8221 (execute_one_pass) ... here; apply transforms when possible.
8222 (add_ipa_transform_pass, execute_ipa_summary_asses,
8223 execute_one_ipa_transform_pass): New.
8224 (execute_ipa_pass_list): Update for IPA_PASS type.
8226 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
8228 * config/i386/i386.c (ix86_builtin_type): Add
8229 V2DI_FTYPE_V2DI_V16QI, V2DI_FTYPE_V2DI_UINT_UINT and
8230 V2DI_FTYPE_V2DI_V2DI_UINT_UINT.
8231 (bdesc_args): Add SSE4a builtins.
8232 (ix86_init_mmx_sse_builtins): Updated.
8233 (ix86_expand_args_builtin): Likewise.
8234 (ix86_expand_builtin): Likewise.
8236 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
8238 * config/i386/i386.c (ix86_builtin_type): Add
8239 V8HI_FTYPE_V8HI_V8HI_COUNT, V8HI_FTYPE_V8HI_SI_COUNT,
8240 V4SI_FTYPE_V4SI_V4SI_COUNT, V4SI_FTYPE_V4SI_SI_COUNT,
8241 V4HI_FTYPE_V4HI_V4HI_COUNT, V4HI_FTYPE_V4HI_SI_COUNT,
8242 V2DI_FTYPE_V2DI_V2DI_COUNT, V2DI_FTYPE_V2DI_SI_COUNT,
8243 V2SI_FTYPE_V2SI_V2SI_COUNT, V2SI_FTYPE_V2SI_SI_COUNT,
8244 V1DI_FTYPE_V1DI_V1DI_COUNT, V1DI_FTYPE_V1DI_SI_COUNT,
8245 V8HI_FTYPE_V8HI_INT, V4SI_FTYPE_V4SI_INT, V4HI_FTYPE_V4HI_INT,
8246 V2DI2TI_FTYPE_V2DI2TI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT
8247 and DI_FTYPE_DI_DI_INT.
8248 (bdesc_args): Add MMX/SSE shift, shuffle and palignr builtins.
8249 (ix86_init_mmx_sse_builtins): Updated.
8250 (ix86_expand_args_builtin): Likewise.
8251 (ix86_expand_builtin): Likewise.
8252 (ix86_expand_binop_imm_builtin): Removed.
8254 * doc/extend.texi: Correct __builtin_ia32_palignr128.
8256 2008-04-30 Richard Guenther <rguenther@suse.de>
8258 PR tree-optimization/32921
8259 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Disambiguate with TBAA.
8261 2008-04-30 Richard Sandiford <rsandifo@nildram.co.uk>
8263 * config/arm/arm.c (arm_unwind_emit): Use
8264 crtl->all_throwers_are_sibcalls instead of
8265 cfun->all_throwers_are_sibcalls.
8266 (arm_output_fn_unwind): Likewise.
8267 * config/frv/frv.c (frv_stack_info): Use crtl->uses_pic_offset_table
8268 instead of cfun->uses_pic_offset_table.
8269 (frv_expand_prologue): Likewise.
8270 (frv_frame_pointer_required): Likewise.
8271 (frv_expand_fdpic_call): Likewise.
8272 (frv_emit_movsi): Likewise.
8273 * config/iq2000/iq2000.c (iq2000_expand_prologue): Use
8274 cfun->returns_pcc_struct instead of
8275 current_function_returns_pcc_struct.
8276 * config/m32c/m32c.c (need_to_save): Use crtl->calls_eh_return
8277 instead of cfun->calls_eh_return.
8278 (m32c_pushm_popm): Likewise.
8279 * config/xtensa/xtensa.h (cfun->calls_alloca): Remove bogus
8280 "extern" declaration.
8282 2008-04-30 Richard Guenther <rguenther@suse.de>
8284 PR tree-optimization/21636
8285 * tree-ssa-ccp.c (ccp_fold): Handle &p->x with p being a
8287 (evaluate_stmt): Print the likely value.
8288 (ccp_visit_stmt): Avoid excessive vertical spacing.
8290 2008-04-30 Rafael Espindola <espindola@google.com>
8292 * builtins.c (fold_call_expr): Return realret.
8293 * tree-ssa-threadedge.c
8294 (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
8295 __builtin_object_size.
8297 2008-04-30 Seongbae Park <seongbae.park@gmail.com>
8299 * gcc.c (wrapper_string): New variable.
8300 (insert_wrapper): New function.
8301 (execute): New option -wrapper.
8302 * doc/invoke.texi (Overall Options): New driver option -wrapper.
8304 2008-04-30 Nathan Froyd <froydnj@codesourcery.com>
8306 * config/rs6000/crtresgpr.asm, config/rs6000/crtresxgpr.asm,
8307 config/rs6000/crtsavgpr.asm, config/rs6000/crtresfpr.asm,
8308 config/rs6000/crtresxfpr.asm, config/rs6000/crtsavfpr.asm: Break out
8310 * config/rs6000/crtsavres.asm: ...here. Remove unneeded file.
8311 * config/rs6000/e500crtres32gpr.asm, config/rs6000/e500crtres64gpr.asm,
8312 config/rs6000/e500crtres64gprctr.asm,
8313 config/rs6000/e500crtrest32gpr.asm, config/rs6000/e500crtrest64gpr.asm,
8314 config/rs6000/e500crtresx32gpr.asm, config/rs6000/e500crtresx64gpr.asm,
8315 config/rs6000/e500crtsav32gpr.asm, config/rs6000/e500crtsav64gpr.asm,
8316 config/rs6000/e500crtsav64gprctr.asm,
8317 config/rs6000/e500crtsavg32gpr.asm, config/rs6000/e500crtsavg64gpr.asm,
8318 config/rs6000/e500crtsavg64gprctr.asm: New files.
8319 * config/rs6000/t-ppccomm: Add build rules for new files.
8320 (LIB2FUNCS_STATIC_EXTRA): Add new files.
8321 * config/rs6000/t-netbsd: Add build rules for new files.
8322 (LIB2FUNCS_STATIC_EXTRA): New variable.
8323 * config/rs6000/sysv4.h (ENDFILE_SPEC): Don't include crtsavres.o
8324 (CRTSAVRES_DEFAULT_SPEC): Likewise.
8325 * config/rs6000/netbsd.h (ENDFILE_SPEC): Likewise.
8327 2008-04-30 H.J. Lu <hongjiu.lu@intel.com>
8329 * config/i386/i386.c (ix86_builtin_type): Add
8330 FLOAT128_FTYPE_FLOAT128_FLOAT128, V16QI_FTYPE_V16QI_V16QI,
8331 V16QI_FTYPE_V8HI_V8HI, V8QI_FTYPE_V8QI_V8QI,
8332 V8QI_FTYPE_V4HI_V4HI, V8HI_FTYPE_V8HI_V8HI,
8333 V8HI_FTYPE_V16QI_V16QI, V8HI_FTYPE_V4SI_V4SI,
8334 V4SI_FTYPE_V4SI_V4SI, V4SI_FTYPE_V8HI_V8HI,
8335 V4SI_FTYPE_V4SF_V4SF, V4SI_FTYPE_V2DF_V2DF,
8336 V4HI_FTYPE_V4HI_V4HI, V4HI_FTYPE_V8QI_V8QI,
8337 V4HI_FTYPE_V2SI_V2SI, V4SF_FTYPE_V4SF_V4SF,
8338 V4SF_FTYPE_V4SF_V4SF_SWAP, V4SF_FTYPE_V4SF_V2SI,
8339 V4SF_FTYPE_V4SF_V2DF, V4SF_FTYPE_V4SF_DI,
8340 V4SF_FTYPE_V4SF_SI, V2DI_FTYPE_V2DI_V2DI,
8341 V2DI_FTYPE_V16QI_V16QI, V2DI_FTYPE_V4SI_V4SI,
8342 V2DI_FTYPE_V2DF_V2DF, V2SI_FTYPE_V2SI_V2SI,
8343 V2SI_FTYPE_V4HI_V4HI, V2SI_FTYPE_V2SF_V2SF,
8344 V2DF_FTYPE_V2DF_V2DF, V2DF_FTYPE_V2DF_V2DF_SWAP,
8345 V2DF_FTYPE_V2DF_V4SF, V2DF_FTYPE_V2DF_DI,
8346 V2DF_FTYPE_V2DF_SI, V2SF_FTYPE_V2SF_V2SF,
8347 V1DI_FTYPE_V1DI_V1DI, V1DI_FTYPE_V8QI_V8QI and
8348 V1DI_FTYPE_V2SI_V2SI.
8349 (bdesc_2arg): Moved to ...
8351 (ix86_init_mmx_sse_builtins): Updated.
8352 (ix86_expand_args_builtin): Updated. Take a pointer
8353 to const struct builtin_description. Handle comparison
8355 (ix86_expand_sse_compare): Take a new argument for swapping operands.
8356 (ix86_expand_builtin): Updated.
8358 * config/i386/sse.md (ssse3_pmaddubswv8hi3): Renamed to ...
8359 (ssse3_pmaddubsw128): This.
8360 (ssse3_pmaddubswv4hi3): Renamed to ...
8361 (ssse3_pmaddubsw): This.
8363 * doc/extend.texi (__builtin_ia32_packsswb128): Correct prototype.
8364 (__builtin_ia32_packssdw128): Likewise.
8365 (__builtin_ia32_packuswb128): Likewise.
8366 (__builtin_ia32_pmaddubsw): Likewise.
8367 (__builtin_ia32_pmaddubsw128): Likewise.
8369 2008-04-30 Richard Guenther <rguenther@suse.de>
8371 PR tree-optimization/14847
8372 * tree-ssa-ifcombine.c (get_name_for_bit_test): New helper function.
8373 (recognize_bits_test): Use it.
8374 (recognize_single_bit_test): Likewise.
8376 2008-04-30 Martin Jambor <mjambor@suse.cz>
8378 * ipa-cp.c (ipcp_init_stage): Calls ipa_set_called_with_variable_arg
8379 instead of setting number of formal parameters to zero.
8380 (ipcp_init_stage): Do not set the number of actual parameters to zero
8382 (ipcp_propagate_stage): Explicitly skipping all calls to nodes
8383 which are called with variable number of arguments.
8384 (ipcp_insert_stage): Explicitely skipping all nodes which are
8385 called with variable number of arguments.
8386 (ipcp_callsite_param_print): Skipps callsites to nodes with varaible
8387 number of parameters.
8389 * ipa-prop.h (struct ipa_node_params): Added flag
8390 called_with_var_arguments
8391 (ipa_set_param_count): Added. Changed sole setter to use it.
8392 (ipa_get_param_count): Added. All readers of param_count
8393 converted to use it instead.
8394 (ipa_set_called_with_variable_arg): Added.
8395 (ipa_is_called_with_var_arguments): Added.
8396 (ipa_get_ith_param): Added. All readers of param_decls converted
8398 (ipa_set_cs_argument_count): Added, sole writer to argument_count
8400 (ipa_get_cs_argument_count): Added, all readers of argument_count
8402 (ipa_get_ith_jump_func): Added. Accessors of jump values changed
8405 * ipa-prop.h (struct ipcp_formal): Renamed to ipcp_lattice
8406 (struct ipcp_lattice): Renamed cval_type to type
8407 (struct ipa_node_params): ipcp_cval renamed to ipcp_lattices
8409 * ipa-cp.c (ipcp_cval_get_cvalue): Changed return value to tree
8410 (ipcp_cval_set_cvalue): Changed type of parameter value to tree
8411 (ipcp_insert_stage): Changed the type of variable cvalue to tree
8412 (ipcp_replace_map_create): Changed the type of parameter cvalue to tree
8413 (build_const_val): Changed the type of parameter cvalue to tree
8414 (ipcp_propagate_const): Changed the type of parameter cvalue to tree
8415 (ipcp_method_cval_set_cvalue_type): Renamed parameter cval_type1 to type
8417 * ipa-prop.h (struct ipcp_formal): Replaced cvalue with tree called
8420 * ipa-prop.c (ipa_methodlist_init): Renamed to ipa_init_func_list
8421 (ipa_methodlist_not_empty): Removed, the sole user now checks directly
8422 (ipa_add_method): Renamed to ipa_push_func_to_list
8423 (ipa_remove_method): Renamed to ipa_pop_func_from_list
8424 (ipa_callsite_param_count): Removed.
8425 (ipa_callsite_param_count_set): Removed.
8426 (ipa_callsite_param): Removed.
8427 (ipa_callsite_callee): Removed.
8428 (ipa_callsite_compute_param): Renamed to ipa_compute_jump_functions
8429 (ipa_callsite_compute_count): Renamed to ipa_count_arguments
8430 (ipa_method_formal_count): Removed.
8431 (ipa_method_formal_count_set): Removed.
8432 (ipa_method_get_tree): Removed.
8433 (ipa_method_tree_map_create): Removed.
8434 (ipa_method_compute_tree_map): Renamed to ipa_create_param_decls_array
8435 (ipa_create_param_decls_array): Creates the array itself
8436 (ipa_create_param_decls_array): Temporary variable info instead of
8438 (ipa_method_formal_compute_count): Renamed to ipa_count_formal_params
8439 (ipa_method_compute_modify): Renamed to ipa_detect_param_modifications
8440 (get_type): Removed.
8441 (ipa_jf_get_info_type): Removed.
8442 (ipa_node_create): Renamed to ipa_create_node_params
8443 (ipa_free): Renamed to ipa_free_all_node_params
8444 (ipa_nodes_create): Renamed to ipa_create_all_node_params
8445 (ipa_edges_create): Renamed to ipa_create_all_edge_args
8446 (ipa_edges_free): Renamed to ipa_free_all_edge_args
8447 (ipa_nodes_free): Integrated into ipa_free_all_node_params and removed
8448 (ipa_free_all_node_params): Deallocation to jump_functions moved to
8449 ipa_free_all_edge_args
8450 (ipa_method_tree_print): Renamed to ipa_print_all_tree_maps
8451 (ipa_method_modify_print): Renamed to ipa_print_all_params_modified
8452 (ipa_create_methodlist_node): Removed.
8453 (ipa_methodlist_method): Removed.
8454 (ipa_methodlist_method_set): Removed.
8455 (ipa_methodlist_next_method): Removed.
8456 (ipa_methodlist_next_method_set): Removed.
8457 (ipa_method_is_modified): Removed.
8458 (ipa_method_modify_create): Removed.
8459 (ipa_method_modify_init): Temporary variable info instead of a few
8461 (ipa_detect_param_modifications): Temporary variable info instead of
8463 (ipa_compute_jump_functions): Temporary variable info instead of
8465 (ipa_method_modify_set): Removed.
8466 (ipa_method_tree_map): Renamed to ipa_get_param_decl_index
8467 (ipa_get_param_decl_index): Now accepts struct ipa_node_params rather
8468 than craph_node as the first parameter.
8469 (ipa_method_modify_stmt): Renamed to ipa_check_stmt_modifications
8470 (ipa_method_modify_init): Removed.
8471 (ipa_compute_jump_functions): Added a temp variable instead of
8472 repeatadly dereferencing the cgraph_edge.aux pointer
8473 (ipa_callsite_param_set_type): Removed.
8474 (ipa_compute_jump_functions): i renamed to index and moved to
8476 (ipa_callsite_param_set_info_type_formal): Removed.
8477 (ipa_callsite_param_set_info_type): Removed.
8478 (ipa_callsite_param_map_create): Removed.
8479 (ipa_callsite_tree): Removed.
8480 (ipa_callsite_caller): Removed.
8481 (ipa_pop_func_from_list): return_method removed to return_func
8483 * ipa-prop.h (enum cvalue_type): Renamed to ipa_lattice_type,
8484 prefixed all values with IPA_. Changed all users.
8485 (enum jump_func_type): Rnamed UNKNOWN_IPATYPE to IPA_UNKNOWN,
8486 CONST_IPATYPE to IPA_CONST, CONST_IPATYPE_REF to IPA_CONST_REF
8487 and FORMAL_IPATYPE IPA_PASS_THROUGH.
8488 (union parameter_info): Renamed to jump_func_value.
8489 (union jump_func_value): Renamed value to constant
8490 (struct ipa_jump_func): Renamed info_type to value
8491 (struct ipa_node): Renamed to ipa_node_params
8492 (struct ipa_node_params): Renamed ipa_arg_num to param_count
8493 (struct ipa_node_params): Renamed ipa_param_tree to param_decls
8494 (struct ipa_node_params): Renamed ipa_mod to modified_flags
8495 (struct ipa_edge): Renamed to ipa_edge_args
8496 (struct ipa_edge_args): Renamed ipa_param_num to argument_count
8497 (struct ipa_edge_args): Renamed ipa_param_map to jump_functions
8498 (struct ipa_methodlist): Renamed to ipa_func_list
8499 (struct ipa_func_list): method_p renamed to node, next_method
8501 (ipa_methodlist_p): Removed, switched all users to struct pointer
8502 (IS_VALID_TREE_MAP_INDEX): Renamed to IS_VALID_JUMP_FUNC_INDEX
8504 2008-04-30 Alan Modra <amodra@bigpond.net.au>
8506 * config/rs6000/rs6000.c (ALWAYS_RESTORE_ALTIVEC_BEFORE_POP): Define.
8507 (rs6000_emit_epilogue): Use backchain to restore only when we
8508 have a large frame. Make use of frame pointer to restore if we
8509 have one. Handle ALWAYS_RESTORE_ALTIVEC_BEFORE_POP.
8511 2008-04-29 Paolo Bonzini <bonzini@gnu.org>
8513 * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
8514 Add mode to zero_extract.
8515 (sign bit tests peepholes): (Ditto.).
8517 2008-04-29 H.J. Lu <hongjiu.lu@intel.com>
8519 * config/i386/i386.c (ix86_builtins): Replace Prescott New
8520 Instructions in comments with SSE3.
8521 (ix86_builtin_type): This. Add FLOAT128_FTYPE_FLOAT128,
8522 INT64_FTYPE_V4SF, INT64_FTYPE_V2DF, INT_FTYPE_V16QI,
8523 INT_FTYPE_V8QI, INT_FTYPE_V4SF, INT_FTYPE_V2DF,
8524 V16QI_FTYPE_V16QI, V8HI_FTYPE_V8HI, V8HI_FTYPE_V16QI,
8525 V8QI_FTYPE_V8QI, V4SI_FTYPE_V4SI, V4SI_FTYPE_V16QI,
8526 V4SI_FTYPE_V4SF, V4SI_FTYPE_V8HI, V4SI_FTYPE_V2DF,
8527 V4HI_FTYPE_V4HI, V4SF_FTYPE_V4SF, V4SF_FTYPE_V4SI,
8528 V4SF_FTYPE_V2DF, V2DI_FTYPE_V2DI, V2DI_FTYPE_V16QI,
8529 V2DI_FTYPE_V8HI, V2DI_FTYPE_V4SI, V2DF_FTYPE_V2DF,
8530 V2DF_FTYPE_V4SI, V2DF_FTYPE_V4SF, V2DF_FTYPE_V2SI,
8531 V2SI_FTYPE_V2SI, V2SI_FTYPE_V4SF, V2SI_FTYPE_V2SF,
8532 V2SI_FTYPE_V2DF, V2SF_FTYPE_V2SF and V2SF_FTYPE_V2SI.
8533 (bdesc_sse_args): Renamed to ...
8534 (bdesc_args): This. Add IX86_BUILTIN_PF2ID, IX86_BUILTIN_PFRCP,
8535 IX86_BUILTIN_PFRSQRT, IX86_BUILTIN_PI2FD, IX86_BUILTIN_PF2IW,
8536 IX86_BUILTIN_PSWAPDSI, IX86_BUILTIN_PSWAPDSF and
8538 (bdesc_1arg): Moved to ...
8540 (ix86_init_mmx_sse_builtins): Updated. Replace Prescott New
8541 Instructions in comments with SSE3.
8542 (ix86_expand_sse_operands_builtin): Renamed to ...
8543 (ix86_expand_args_builtin): This. Updated.
8544 (ix86_expand_unop1_builtin): Update comments.
8545 (ix86_expand_builtin): Updated.
8547 2008-04-29 Richard Guenther <rguenther@suse.de>
8549 PR tree-optimization/36078
8550 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
8551 Update virtual SSA form after cleaning up the CFG.
8553 2008-04-29 Richard Guenther <rguenther@suse.de>
8556 * fold-const.c (fold_binary): Fold (A + A) * C to A * 2*C.
8558 2008-04-29 Richard Guenther <rguenther@suse.de>
8560 * tree-ssa-alias.c (finalize_ref_all_pointers): Remove.
8561 (compute_may_aliases): Do not call finalize_ref_all_pointers.
8562 (compute_flow_insensitive_aliasing): Do not treat
8563 PTR_IS_REF_ALL pointers special.
8564 (get_smt_for): Likewise.
8565 (may_alias_p): Re-structure.
8566 (is_escape_site): A ref-all pointer conversion is not an escape site.
8567 * tree-ssa-structalias.c (find_what_p_points_to): Do not treat
8568 PTR_IS_REF_ALL pointers special.
8569 * tree-ssa-structalias.h (struct alias_info): Remove
8570 ref_all_symbol_mem_tag field.
8571 (PTR_IS_REF_ALL): Remove.
8573 2008-04-29 Richard Guenther <rguenther@suse.de>
8576 * fold-const.c (extract_muldiv_1): In combining division constants
8577 make sure to never overflow.
8579 2008-04-29 Nick Clifton <nickc@redhat.com>
8581 * doc/tm.texi (RETURN_ADDR_RTX): Fix typo.
8583 2008-04-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8586 * optc-gen.awk: Work around HP-UX/IA awk bug.
8588 2008-04-28 Danny Smith <dannysmith@users.sourceforge.net>
8590 * config/i386/cygming-crtend.c (register_frame_ctor): Revert my
8593 2008-04-28 Uros Bizjak <ubizjak@gmail.com>
8596 * config/i386/i386.md
8597 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit):
8598 Change operand 1 predicate to nonimmediate_operand.
8600 2008-04-28 Jakub Jelinek <jakub@redhat.com>
8603 * dwarf2out.c (struct die_struct): Mark as chain_circular through
8605 * gengtype.c (walk_type, write_func_for_structure): Handle
8607 * doc/gty.texi: Document chain_circular.
8609 2008-04-28 Richard Guenther <rguenther@suse.de>
8611 PR tree-optimization/36066
8612 * tree-vrp.c (execute_vrp): Cleanup the CFG only after finalizing
8615 2008-04-28 Uros Bizjak <ubizjak@gmail.com>
8618 * config/i386/i386.md
8619 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters):
8620 Use match_scratch instead of match_operand for operands 3 and 4.
8622 2008-04-27 Richard Guenther <rguenther@suse.de>
8624 PR tree-optimization/18754
8625 PR tree-optimization/34223
8626 * tree-pass.h (pass_complete_unrolli): Declare.
8627 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Print
8628 loop size before and after unconditionally of UL_NO_GROWTH in effect.
8629 Rewrite loop into loop closed SSA form if it is not already.
8630 (tree_unroll_loops_completely): Re-structure to iterate over
8631 innermost loops with intermediate CFG cleanups.
8632 Unroll outermost loops only if requested or the code does not grow
8634 * tree-ssa-loop.c (gate_tree_vectorize): Don't shortcut if no
8635 loops are available.
8636 (tree_vectorize): Instead do so here.
8637 (tree_complete_unroll): Also unroll outermost loops.
8638 (tree_complete_unroll_inner): New function.
8639 (gate_tree_complete_unroll_inner): Likewise.
8640 (pass_complete_unrolli): New pass.
8641 * tree-ssa-loop-manip.c (find_uses_to_rename_use): Only record
8642 uses outside of the loop.
8643 (tree_duplicate_loop_to_header_edge): Only verify loop-closed SSA
8644 form if it is available.
8645 * tree-flow.h (tree_unroll_loops_completely): Add extra parameter.
8646 * passes.c (init_optimization_passes): Schedule complete inner
8647 loop unrolling pass before the first CCP pass after final inlining.
8649 2008-04-27 Nathan Sidwell <nathan@codesourcery.com>
8651 * targhooks.h (default_emutls_var_fields,
8652 default_emutls_var_init): Declare.
8653 * tree.h (DECL_THREAD_LOCAL): Compare against TLS_MODEL_REAL.
8654 * target.h (struct gcc_target): Add struct emutls member.
8655 * target-def.h (TARGET_EMUTLS_GET_ADDRESS,
8656 TARGET_EMUTLS_REGISTER_COMMON, TARGET_EMUTLS_VAR_SECTION,
8657 TARGET_EMUTLS_TMPL_SECTION, TARGET_EMUTLS_VAR_PREFIX,
8658 TARGET_EMUTLS_TMPL_PREFIX, TARGET_EMUTLS_VAR_FIELDS,
8659 TARGET_EMUTLS_VAR_INIT, TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS,
8660 TARGET_EMUTLS_VAR_ALIGN_FIXED, TARGET_EMUTLS): New.
8661 (TARGET_INITIALIZER): Add TARGET_EMUTLS.
8662 * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS,
8663 BUILT_IN_EMUTLS_REGISTER_COMMON): Get name from targetm structure.
8664 * dwarf2out.c (loc_descriptor_from_tree_1): Check if emutls can
8665 emit debug information.
8666 * coretypes.h (tls_model): Add TLS_MODEL_EMULATED, TLS_MODEL_REAL.
8667 * varasm.c: Include targhooks.h.
8668 (emutls_object_section, emutls_tmpl_section): New.
8669 (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): Remove.
8670 (EMUTLS_SEPARATOR): New.
8672 (get_emutls_object_name): New.
8673 (default_emutls_var_fields): New, broken out of ...
8674 (get_emutls_object_type): ... here. Adjust to use target hooks.
8675 (get_emutls_init_templ_addr): Adjust to use target hooks.
8676 (emutls_decl): Adjust to use target hooks.
8677 (emutls_finish): Likewise.
8678 (default_emutls_var_init): New, broken out of ...
8679 (assemble_variable): ... here. Adjust to use target hooks.
8680 * output.h (enum section_category): Add SECCAT_EMUTLS_VAR,
8682 * c-common.c (handle_section_attribute): Prevent overriding
8683 sections for emulated tls with special sections.
8684 * config/i386/i386.c (x86_64_elf_select_section): Add
8685 SECCAT_EMUTLS_VAR and SECCAT_EMUTLS_TMPL.
8686 (x86_64_elf_unique_section): Likewise.
8687 * config/vxworks.c: Include tree.h.
8688 (vxworks_emutls_var_fields, vxworks_emutls_var_init): New.
8689 (vxworks_override_options): Set TLS scheme.
8690 * doc/tm.texi (Emulated TLS): New node.
8692 2008-04-26 Simon Baldwin <simonb@google.com>
8695 * builtins.c (c_strlen): Suppressed multiple warnings that can occur
8696 with propagated string constants.
8698 2008-04-26 Uros Bizjak <ubizjak@gmail.com>
8700 * config/i386/i386.md (fix_trunc<mode>_i387_fisttp_with_temp): Use 'X'
8701 constraint for operand 2 when operand 0 is memory operand.
8702 (fix_truncdi_i387_with_temp): : Use 'X' constraint for operand 4 when
8703 operand 0 is memory operand.
8704 (fix_trunc<mode>_i387_with_temp): Ditto.
8705 (*floatsi<mode>2_vector_mixed_with_temp): Use 'X' constraint for
8706 operand 2 when operand 1 is memory operand.
8707 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Ditto.
8708 (*floatsi<mode>2_vector_sse_with_temp): Ditto.
8709 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Ditto.
8710 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
8711 (floatdi<X87MODEF:mode>2_i387_with_xmm): Use 'X' constraint for
8712 operands 2,3 and 4 when operand 1 is memory operand.
8713 (fistdi2_with_temp): Use 'X' constraint for operand 2 when operand 0
8715 (fistdi2_floor_with_temp): Ditto.
8716 (fist<mode>2_floor_with_temp): Ditto.
8717 (fistdi2_ceil_with_temp): Ditto.
8718 (fist<mode>2_ceil_with_temp): Ditto.
8719 (*truncdfsf_fast_mixed): Merge alternatives 0 and 1.
8721 2008-04-26 David Daney <ddaney@avtrex.com>
8723 * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP_12): New
8725 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE,
8726 UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
8727 UNSPEC_UPDATE_GOT_VERSION): Renumber.
8728 (sync_compare_and_swap<mode>): New expand for QI and HI modes.
8729 (compare_and_swap_12): New insn.
8730 * config/mips/mips-protos.h (mips_expand_compare_and_swap_12): Declare.
8731 * config/mips/mips.c (mips_force_binary): New function.
8732 (mips_emit_int_order_test, mips_expand_synci_loop): Use it.
8733 (mips_expand_compare_and_swap_12): New function.
8734 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): New macro.
8736 2008-04-25 Jan Hubicka <jh@suse.cz>
8739 * cfgexpand.c (pass_expand): Turn into RTL pass.
8740 * passes.c (execute_one_pass): Do pass typechecking after execution.
8741 * tree-pass.h (pass_expand): Turn into RTL pass.
8743 * function.h (struct rtl_data): Move here fields
8744 accesses_prior_frames, calls_eh_return, saves_all_registers,
8745 has_nonlocal_goto, has_asm_statement, is_thunk,
8746 all_throwers_are_sibcalls, limit_stack, profile, uses_const_pool,
8747 uses_pic_offset_table, uses_eh_lsda, tail_call_emit,
8748 arg_pointer_save_area_init from struct function; turn into bool.
8749 (struct function): Move
8750 calls_eh_return, saves_all_registers, has_nonlocal_goto,
8751 has_asm_statement, is_thunk, all_throwers_are_sibcalls, limit_stack,
8752 profile, uses_const_pool, uses_pic_offset_table, uses_eh_lsda,
8753 tail_call_emit, arg_pointer_save_area_init
8754 into struct rtl_data. Remove recursive_call_emit and gimplified flags.
8755 (current_function_returns_struct, current_function_returns_pcc_struct,
8756 current_function_calls_setjmp, current_function_calls_alloca,
8757 current_function_accesses_prior_frames,
8758 current_function_calls_eh_return, current_function_is_thunk,
8759 current_function_stdarg, current_function_profile,
8760 current_function_limit_stack, current_function_uses_pic_offset_table,
8761 current_function_uses_const_pool, current_function_has_nonlocal_label,
8762 current_function_saves_all_registers,
8763 current_function_has_nonlocal_goto,
8764 current_function_has_asm_statement): Remove accesor macros.
8765 * ra-conflict.c (global_conflicts): Update.
8766 * tree-tailcall.c (suitable_for_tail_opt_p): Update.
8767 (suitable_for_tail_call_opt_p): Update.
8768 * builtins.c (expand_builtin_return_addr): Update.
8769 (expand_builtin_setjmp_setup): Update.
8770 (expand_builtin_nonlocal_goto): Update.
8771 * final.c (final_start_function): Update.
8772 (profile_function): Update.
8773 (leaf_function_p): Update.
8774 (only_leaf_regs_used): Update.
8775 * df-scan.c (df_get_exit_block_use_set): Update.
8776 * dojump.c (clear_pending_stack_adjust): Update.
8777 * tree-stdarg.c (gate_optimize_stdarg): Update.
8778 * gimple-low.c (lower_function_body): Update.
8779 * global.c (compute_regsets): Update.
8780 (global_alloc): Update.
8781 * dwarf2out.c (dwarf2out_begin_prologue): Update.
8782 * expr.c (expand_assignment): Update.
8783 * dse.c (dse_step0): Update.
8784 (dse_step1): Update.
8785 * c-decl.c (store_parm_decls): Update.
8786 * local-alloc.c (combine_regs): Update.
8787 (find_free_reg): Update.
8788 * function.c (assign_parms_augmented_arg_list): Update.
8789 (assign_parm_find_data_types): Update.
8790 (assign_parms): Update.
8791 (allocate_struct_function): Update.
8792 (expand_function_start): Update.
8793 (expand_function_end): Update.
8794 (get_arg_pointer_save_area): Update.
8795 (thread_prologue_and_epilogue_insns): Update.
8796 (rest_of_match_asm_constraints): Update.
8797 * stor-layout.c (variable_size): Update.
8798 * gcse.c (gcse_main): Update.
8799 (bypass_jumps): Update.
8800 * gimplify.c (gimplify_function_tree): Update.
8801 * calls.c (emit_call_1): Update.
8802 (expand_call): Update.
8803 * bt-load.c (compute_defs_uses_and_gen): Update.
8804 * except.c (sjlj_assign_call_site_values): Update.
8805 (sjlj_emit_function_enter): Update.
8806 (can_throw_external): Update.
8807 (set_nothrow_function_flags): Update.
8808 (expand_builtin_unwind_init): Update.
8809 (expand_eh_return): Update.
8810 (convert_to_eh_region_ranges): Update.
8811 (output_function_exception_table): Update.
8812 * emit-rtl.c (gen_tmp_stack_mem): Update.
8813 * cfgexpand.c (expand_used_vars): Update.
8814 (tree_expand_cfg): Update.
8815 * cfgcleanup.c (rest_of_handle_jump): Update.
8816 * explow.c (allocate_dynamic_stack_space): Update.
8817 * varasm.c (assemble_start_function): Update.
8818 (force_const_mem): Update.
8819 (mark_constant_pool): Update.
8820 * tree-optimize.c (tree_rest_of_compilation): Update.
8821 * stack-ptr-mod.c (notice_stack_pointer_modification): Update.
8822 * tree-cfg.c (notice_special_calls): Update.
8823 (is_ctrl_altering_stmt): Update.
8824 (tree_can_make_abnormal_goto): Update.
8825 (tree_purge_dead_abnormal_call_edges): Update.
8826 * config/alpha/predicates.md: Update.
8827 * config/alpha/alpha.c (alpha_sa_mask): Update.
8828 (alpha_sa_size): Update.
8829 (alpha_does_function_need_gp): Update.
8830 (alpha_expand_prologue): Update.
8831 (alpha_start_function): Update.
8832 (alpha_output_function_end_prologue): Update.
8833 (alpha_expand_epilogue): Update.
8834 * config/frv/frv.c (frv_stack_info): Update.
8835 (frv_expand_epilogue): Update.
8836 * config/s390/s390.c (s390_regs_ever_clobbered): Update.
8837 (s390_register_info): Update.
8838 (s390_frame_info): Update.
8839 (s390_init_frame_layout): Update.
8840 (s390_can_eliminate): Update.
8841 (save_gprs): Update.
8842 * config/spu/spu.c (spu_split_immediate): Update.
8843 (need_to_save_reg): Update.
8844 (spu_expand_prologue): Update.
8845 (spu_expand_epilogue): Update.
8846 * config/sparc/sparc.md: Update.
8847 * config/sparc/sparc.c (eligible_for_return_delay): Update.
8848 (sparc_tls_got): Update.
8849 (legitimize_pic_address): Update.
8850 (sparc_emit_call_insn): Update.
8851 (sparc_expand_prologue): Update.
8852 (output_return): Update.
8853 (print_operand): Update.
8854 (sparc_function_ok_for_sibcall): Update.
8855 * config/sparc/sparc.h (EXIT_IGNORE_STACK): Update.
8856 * config/m32r/m32r.md: Update.
8857 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Update.
8858 (m32r_compute_frame_size): Update.
8859 (m32r_expand_prologue): Update.
8860 (m32r_expand_epilogue): Update.
8861 (m32r_legitimize_pic_address): Update.
8862 * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Update.
8863 * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
8864 * config/i386/i386.c (ix86_frame_pointer_required): Update.
8866 (ix86_save_reg): Update.
8867 (ix86_compute_frame_layout): Update.
8868 (ix86_expand_prologue): Update.
8869 (ix86_expand_epilogue): Update.
8870 * config/sh/sh.c (output_stack_adjust): Update.
8871 (calc_live_regs): Update.
8872 (sh5_schedule_saves): Update.
8873 (sh_expand_prologue): Update.
8874 (sh_expand_epilogue): Update.
8875 (sh_setup_incoming_varargs): Update.
8876 (sh_allocate_initial_value): Update.
8877 (sh_get_pr_initial_val): Update.
8878 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Update.
8879 * config/sh/sh.md (label:): Update.
8880 * config/avr/avr.c (out_movhi_mr_r): Update.
8881 * config/crx/crx.h (enum): Update.
8882 * config/xtensa/xtensa.h (along): Update.
8883 * config/stormy16/stormy16.c Update.
8884 (xstormy16_compute_stack_layout): Update.
8885 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Update.
8886 (fr30_expand_prologue): Update.
8887 * config/cris/cris.c (cris_conditional_register_usage): Update.
8888 (cris_reg_saved_in_regsave_area): Update.
8889 (cris_initial_frame_pointer_offset): Update.
8890 (cris_simple_epilogue): Update.
8891 (cris_expand_prologue): Update.
8892 (cris_expand_epilogue): Update.
8893 (cris_expand_pic_call_address): Update.
8894 (cris_asm_output_symbol_ref): Update.
8895 (cris_asm_output_label_ref): Update.
8896 * config/cris/cris.md Update.
8897 * config/iq2000/iq2000.c (compute_frame_size): Update.
8898 (iq2000_expand_epilogue): Update.
8899 * config/mt/mt.h (save_direction): Update.
8900 * config/mn10300/mn10300.c (mn10300_function_value): Update.
8901 * config/ia64/ia64.c (ia64_compute_frame_size): Update.
8902 (ia64_secondary_reload_class): Update.
8903 * config/m68k/m68k.c (m68k_save_reg): Update.
8904 (m68k_expand_prologue): Update.
8905 (m68k_expand_epilogue): Update.
8906 (legitimize_pic_address): Update.
8907 * config/rs6000/rs6000.c (rs6000_got_register): Update.
8908 (first_reg_to_save): Update.
8909 (first_altivec_reg_to_save): Update.
8910 (compute_vrsave_mask): Update.
8911 (compute_save_world_info): Update.
8912 (rs6000_stack_info): Update.
8913 (spe_func_has_64bit_regs_p): Update.
8914 (rs6000_ra_ever_killed): Update.
8915 (rs6000_emit_eh_reg_restore): Update.
8916 (rs6000_emit_allocate_stack): Update.
8917 (rs6000_emit_prologue): Update.
8918 (rs6000_emit_epilogue): Update.
8919 (rs6000_output_function_epilogue): Update.
8920 (output_profile_hook): Update.
8921 (rs6000_elf_declare_function_name): Update.
8922 * config/rs6000/rs6000.h (rs6000_args): Update.
8923 * config/rs6000/rs6000.md: Update.
8924 * config/mcore/mcore.c (mcore_expand_prolog): Update.
8925 * config/arc/arc.c (arc_output_function_epilogue): Update.
8926 * config/arc/arc.h (FRAME_POINTER_REQUIRED): Update.
8927 * config/darwin.c (machopic_function_base_name): Update.
8928 * config/score/score3.c (score3_compute_frame_size): Update.
8931 (score3_epilogue): Update.
8932 * config/score/score7.c (score7_compute_frame_size): Update.
8933 (score7_prologue): Update.
8934 (score7_epilogue): Update.
8935 * config/score/score.h (FRAME_POINTER_REQUIRED): Update.
8936 * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
8937 * config/arm/arm.c (use_return_insn): Update.
8938 (require_pic_register): Update.
8939 (arm_load_pic_register): Update.
8940 (arm_compute_save_reg0_reg12_mask): Update.
8941 (arm_compute_save_reg_mask): Update.
8942 (thumb1_compute_save_reg_mask): Update.
8943 (output_return_instruction): Update.
8944 (arm_output_function_prologue): Update.
8945 (arm_output_epilogue): Update.
8946 (arm_get_frame_offsets): Update.
8947 (arm_expand_prologue): Update.
8948 (thumb_pushpop): Update.
8949 (thumb_exit): Update.
8950 (thumb1_expand_prologue): Update.
8951 (thumb1_expand_epilogue): Update.
8952 (arm_unwind_emit): Update.
8953 (arm_output_fn_unwind): Update.
8954 * config/arm/arm.h (FRAME_POINTER_REQUIRED): Update.
8955 * config/arm/arm.md: Update.
8956 * config/pa/pa.md: Update.
8957 * config/pa/pa.c (legitimize_pic_address): Update.
8958 (compute_frame_size): Update.
8959 (hppa_expand_prologue): Update.
8960 (hppa_expand_epilogue): Update.
8961 (borx_reg_operand): Update.
8962 * config/pa/pa.h (FRAME_POINTER_REQUIRED): Update.
8963 (HARD_REGNO_RENAME_OK): Update.
8964 * config/mips/mips.c (mips_global_pointer): Update.
8965 (mips_save_reg_p): Update.
8966 (mips_compute_frame_info): Update.
8967 (mips_frame_pointer_required): Update.
8968 (mips_expand_prologue): Update.
8969 (mips_expand_epilogue): Update.
8970 (mips_can_use_return_insn): Update.
8971 (mips_reorg_process_insns): Update.
8972 * config/v850/v850.c (compute_register_save_size): Update.
8973 * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Update.
8974 * config/mmix/mmix.c (along): Update.
8975 (mmix_expand_epilogue): Update.
8976 * config/bfin/bfin.c (legitimize_pic_address): Update.
8977 (must_save_p): Update.
8978 (stack_frame_needed_p): Update.
8979 (add_to_reg): Update.
8980 (bfin_expand_prologue): Update.
8981 * stmt.c (expand_asm_operands): Update.
8982 * reload1.c (reload): Update.
8983 (init_elim_table): Update.
8985 2008-04-25 Bob Wilson <bob.wilson@acm.org>
8987 * optabs.c (expand_float): Fix REG_EQUAL for UNSIGNED_FLOAT libcall.
8989 2008-04-25 H.J. Lu <hongjiu.lu@intel.com>
8991 * config/i386/sse.md (mov<mode>): Replace SSEMODEI with SSEMODE.
8992 (*mov<mode>_internal): Likewise. Support V4SF and V2DF.
8993 (mov<mode>): Removed.
8994 (*movv4sf_internal): Likewise.
8995 (*movv2df_internal): Likewise.
8997 2008-04-25 Pompapathi V Gadad <Pompapathi.V.Gadad@nsc.com>
8999 * config.gcc (crx-*-elf): Remove deprecation.
9001 2008-04-25 Danny Smith <dannysmith@users.sourceforge.net>
9003 * config/i386/cygming-crtend.c (register_frame_ctor): Register
9004 __gcc_deregister_frame with atexit.
9005 (deregister_frame_dtor): Remove.
9007 2008-04-24 Nathan Froyd <froydnj@codesourcery.com>
9008 Nathan Sidwell <nathan@codesourcery.com>
9010 * config/rs6000/rs6000.opt (mspe): Remove Var property.
9012 * config/rs6000/rs6000.h (rs6000_spe): Declare.
9013 (rs6000_isel): Likewise.
9014 * config/rs6000/rs6000.c (rs6000_spe): New variable.
9015 (rs6000_isel): New variable.
9016 (rs6000_handle_option): Handle OPT_mspe and OPT_misel.
9018 2008-04-24 Jakub Jelinek <jakub@redhat.com>
9021 * c-common.c (handle_vector_size_attribute): Call
9022 lang_hooks.types.reconstruct_complex_type instead of
9023 reconstruct_complex_type.
9024 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Likewise.
9025 * config/spu/spu.c (spu_handle_vector_attribute): Likewise.
9026 * langhooks.h (struct lang_hooks_for_types): Add
9027 reconstruct_complex_type hook.
9028 * langhooks-def.h (LANG_HOOKS_RECONSTRUCT_COMPLEX_TYPE): Define.
9029 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
9031 2008-04-24 Richard Guenther <rguenther@suse.de>
9033 * c-common.h (check_builtin_function_arguments): Declare.
9034 * c-common.c (validate_nargs): New function.
9035 (check_builtin_function_arguments): Likewise.
9036 * c-typeck.c (build_function_call): Call
9037 check_builtin_function_arguments.
9038 * builtins.c (fold_builtin_classify): Remove error reporting code.
9039 (fold_builtin_unordered_cmp): Likewise.
9040 (fold_builtin_1): Likewise.
9041 (fold_builtin_n): Likewise.
9043 2008-04-24 Jakub Jelinek <jakub@redhat.com>
9045 PR tree-optimization/36008
9046 * fold-const.c (try_move_mult_to_index): If s == NULL, divide
9047 the original op1, rather than delta by step.
9049 2008-04-22 Antoniu Pop <antoniu.pop@gmail.com>
9050 Sebastian Pop <sebastian.pop@amd.com>
9052 * tree-parloops.c (take_address_of, eliminate_local_variables_1,
9053 eliminate_local_variables_stmt, eliminate_local_variables,
9054 separate_decls_in_loop_name, separate_decls_in_loop_stmt,
9055 separate_decls_in_loop, gen_parallel_loop): Make them work on a region
9056 of code delimited by two edges in the CFG.
9057 (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
9058 (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
9059 (separate_decls_in_loop): Renamed separate_decls_in_region. Isolate
9060 the case of parallelisation of reductions.
9061 (expr_invariant_in_region_p): New.
9063 * tree-flow.h (gather_blocks_in_sese_region): Declared.
9064 * tree-cfg.c (gather_blocks_in_sese_region): Extern.
9066 2008-04-24 Ira Rosen <irar@il.ibm.com>
9067 Richard Guenther <rguenther@suse.de>
9069 PR tree-optimization/36034
9070 * tree-vect-analyze.c (vect_analyze_group_access): SLP is
9071 incapable of dealing with loads with gaps.
9073 2008-04-24 Rafael Espindola <espindola@google.com>
9075 * tree-flow.h (vrp_evaluate_conditional): Change signature.
9076 * tree-ssa-propagate.c (fold_predicate_in): Update call to
9077 vrp_evaluate_conditional.
9078 * tree-vrp.c (vrp_evaluate_conditional_warnv): Remove.
9079 (vrp_evaluate_conditional): Split the cond argument.
9080 (vrp_visit_cond_stmt): Use vrp_evaluate_conditional_warnv_with_ops.
9081 (simplify_stmt_for_jump_threading): Update call to
9082 vrp_evaluate_conditional.
9084 2008-04-24 Ira Rosen <irar@il.ibm.com>
9086 PR tree-optimization/35982
9087 * tree-vect-analyze.c (vect_check_interleaving): Check that the
9088 interleaved data-refs are of the same type.
9090 2008-04-24 Danny Smith <dannysmith@users.net>
9092 * c-format.c (check_format_info_main): Use strncmp rather than a
9093 magic prefix to handle multichar length specs.
9094 * config/i386/msformat-c.c (format_length_info ms_printf_length_specs):
9095 Don't prefix "I64" and "I32" with '\0'.
9097 2008-04-24 Jakub Jelinek <jakub@redhat.com>
9100 * config/i386/i386.c (init_cumulative_args): Don't pass anything
9101 in registers for -m32 only if stdarg_p (fntype).
9103 2008-04-24 Uros Bizjak <ubizjak@gmail.com>
9105 PR rtl-optimization/36006
9106 * expmed.c (store_fixed_bit_field): Copy op0 rtx before moving
9107 temp to op0 in order to avoid invalid rtx sharing.
9109 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
9111 * tree-cfg.c (verify_expr): Check with is_gimple_address. Don't
9112 check TREE_INVARIANT.
9113 * tree-gimple.c (is_gimple_address): New.
9114 (is_gimple_invariant_address): Simplify using decl_address_invariant_p.
9115 * tree-gimple.h (is_gimple_address): New.
9116 * tree.h (decl_address_invariant_p): New.
9117 * tree.c (make_node_stat): Don't set TREE_INVARIANT.
9118 (build_string): Likewise.
9119 (decl_address_invariant_p): New, from is_gimple_invariant_address.
9120 (tree_invariant_p_1): Likewise.
9121 (save_expr): Use it.
9122 (tree_invariant_p): New.
9123 (skip_simple_arithmetic): Use it.
9124 (stabilize_reference_1): Use it.
9125 (recompute_tree_invariant_for_addr_expr): Don't update TREE_INVARIANT,
9127 (build1_stat): Drop code to compute TREE_INVARIANT.
9128 (build2_stat): Drop code to compute TREE_INVARIANT.
9129 (build3_stat): Drop code to compute TREE_INVARIANT.
9130 (build4_stat): Drop code to compute TREE_INVARIANT.
9131 (build5_stat): Drop code to compute TREE_INVARIANT.
9132 (build7_stat): Drop code to compute TREE_INVARIANT.
9133 (merge_dllimport_decl_attributes): Don't mention TREE_INVARIANT.
9134 * tree.h (struct tree_base): Remove invariant_flag.
9135 (TREE_INVARIANT): Remove.
9136 * builtins.c (build_string_literal): Don't set TREE_INVARIANT.
9137 (fold_builtin_expect): Check TREE_CONSTANT.
9138 * tree-ssa-ccp.c (fold_stmt_r): Adjust comment.
9139 * c-tree.h (c_expr_to_decl): Drop third parameter.
9140 * c-typeck.c (build_external_ref): Don't set TREE_INVARIANT.
9141 (build_c_cast): Don't set TREE_INVARIANT.
9142 (pop_init_level): Don't set TREE_INVARIANT.
9143 (c_objc_common_truthvalue_conversion): Don't set TREE_INVARIANT.
9144 * gimplify.c (gimplify_init_ctor_preeval): Add assertion, test
9146 (gimplify_init_constructor): Don't set TREE_INVARIANT.
9147 (gimplify_addr_expr): Adjust comment.
9148 * tree-mudflap.c (mf_build_string):
9149 * print-tree.c (print_node): Don't print TREE_INVARIANT.
9150 * tree-nested.c (convert_nonlocal_reference): Adjust comment.
9151 * c-common.c (fix_string_type): Don't set TREE_INVARIANT.
9152 * langhooks-def.h (lhd_expr_to_decl): Drop third parameter.
9153 * langhooks.c (lhd_expr_to_decl): Drop third parameter.
9154 * langhooks.h (struct lang_hooks): Drop third parameter from
9157 2008-04-23 Richard Guenther <rguenther@suse.de>
9159 PR tree-optimization/27799
9160 PR tree-optimization/32921
9161 PR tree-optimization/32624
9162 * tree-ssa-structalias.c (merge_smts_into): Only merge the
9163 SMTs aliases and the tag itself into the solution.
9164 * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Do not
9165 merge the points-to solution back into the SMT aliases.
9166 (may_alias_p): Use alias_set_subset_of instead of
9167 aliases_conflict_p. A pointer which points to
9168 memory with alias set zero may access any variable.
9170 2008-04-23 Richard Guenther <rguenther@suse.de>
9172 * alias.c (alias_set_subset_of): Correctly handle asking
9173 if zero is a subset of an alias set with zero child.
9174 * tree-ssa-alias.c (have_common_aliases_p): Simplify logic.
9175 (compute_flow_insensitive_aliasing): Correctly walk all
9176 pointers. Do not unnecessarily union sets.
9178 2008-04-23 Richard Guenther <rguenther@suse.de>
9181 * c-common.c (handle_alloc_size_attribute): Use type_num_arguments.
9183 2008-04-22 Tomas Bily <tbily@suse.cz>
9185 * tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as
9187 * tree-vrp.c (extract_range_from_unary_expr): Removed unused
9189 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
9190 * tree-ssa-structalias.c (get_constraint_for): Likewise.
9191 * tree-inline.c (estimate_num_insns_1): Likewise.
9192 * varasm.c (const_hash_1, compare_constant, copy_constant)
9193 (compute_reloc_for_constant, output_addressed_constants): Likewise.
9194 * emit-rtl.c (component_ref_for_mem_expr)
9195 (set_mem_attributes_minus_bitpos): Likewise.
9196 * expr.c (highest_pow2_factor, expand_expr_real_1, )
9197 (is_aligning_offset): Likewise.
9198 * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info): Likewise.
9199 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
9200 * dojump.c (do_jump): Likewise.
9201 * builtins.c (get_pointer_alignment, get_memory_rtx)
9202 (integer_valued_real_p, fold_builtin_next_arg): Likewise.
9203 * tree-scalar-evolution.c (instantiate_parameters_1): Likewise.
9205 2008-04-23 Jakub Jelinek <jakub@redhat.com>
9207 PR rtl-optimization/36017
9208 * builtins.c (expand_errno_check): Clear CALL_EXPR_TAILCALL before
9209 expanding the library call.
9211 2008-04-22 Ian Lance Taylor <iant@google.com>
9213 * fold-const.c (pointer_may_wrap_p): Call int_size_in_bytes rather
9216 2008-04-22 Pat Haugen <pthaugen@us.ibm.com>
9218 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
9219 of LR/CTR moves for Power6.
9221 2008-04-22 Kenneth Zadeck <zadeck@naturalbridge.com>
9224 * passes.c (init_optimization_passes): Remove
9225 pass_fast_rtl_byte_dce.
9227 2008-04-22 Uros Bizjak <ubizjak@gmail.com>
9230 * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Rearrange calls to
9231 builtin functions to generate faster code.
9232 (_mm_cvtpu16_ps): Ditto.
9233 (_mm_cvtpi32x2_ps): Ditto.
9235 2008-04-22 Nick Clifton <nickc@redhat.com>
9237 * common.opt (ftree-loop-distribution): Add Optimization
9240 * config/frv/frv.c (frv_stack_info): Use crtl instead of cfun.
9241 (frv_expand_builtin_va_start): Likewise.
9243 * config/arm/arm.c (thumb_find_work_register): Fix location of
9244 argument register count.
9246 2008-04-22 Maxim Kuvyrkov <maxim@codesourcery.com>
9248 Support scheduling for ColdFire V1 and V3 microarchitecture.
9249 Improve scheduling of multiplication instructions.
9251 * config/m68k/m68k.md (cpu): Add cfv1 and cfv3. Rename cf_v2 to cfv1.
9252 (mac): New instruction attribute.
9253 * config/m68k/m68k.c (override_options): Handle cfv1, cfv3 and mac.
9254 (m68k_sched_mac): New variable.
9255 (m68k_sched_attr_type2, m68k_sched_md_init_global): Update.
9256 Handle cfv1 and cfv3.
9257 (max_insn_size): New static variable.
9258 (struct _sched_ib): New type.
9259 (sched_ib): New static variable.
9260 (sched_ib_size, sched_ib_filled, sched_ib_insn): Convert variables
9261 to fields of 'struct _sched_ib sched_ib'. Update all uses.
9262 (m68k_sched_variable_issue): Add modeling of cfv3 instruction buffer.
9264 (m68k_sched_md_init_global, m68k_sched_md_finish_global,
9265 m68k_sched_md_init, m68k_sched_md_finish): Handle cfv1 and cfv3. Init
9266 new variables. Update.
9267 (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
9268 Add modeling of cfv3 instruction buffer. Update.
9269 * config/m68k/m68k-protos.h (m68k_sched_mac): Declare.
9270 * config/m68k/m68k.h (TUNE_CFV3): New macro.
9271 * config/m68k/cf.md: Change substrings 'cf_v2' to 'cfv12' or 'cfv123'.
9272 (cf_* reservations): Rename to cfv12 or cfv123 to indicate cores
9273 a particular reservation applies to.
9274 (type2): Reorganize attribute values. Rename alu to alu_reg,
9275 alu_l to alu, move_l to omove. Join move to alu. Split mul
9277 (cf_ib_*): Simplify description of instruction buffer.
9278 (cf_ib_w0, cf_ib_w4, cf_ib_w5, cf_ib_w6): Remove.
9279 (cf_mem): Split into cf_mem1 and cf_mem2.
9280 (cf_v2_move_??): Rename to cfv12_alu_??.
9281 (cf_v2_move_l_??): Rename to cfv12_omove_??.
9282 (cf_v2_mul_??): Remove reservations.
9283 (cfv12_mul_l_??, cfv12_mul_w_??, cfv12_mac_w_??, cfv12_mac_l_??,
9284 cfv12_emac_??, cfv12_emac_w_i0): New reservations.
9285 (cfv12_rts, cfv12_call, cfv12_bcc, cfv12_bra, cfv12_jmp): Move to
9287 (cfv3_alu_10, cfv3_omove_10, cfv3_alu_i0, cfv3_omove_i0, cfv3_alu_01,
9288 cfv3_alu_0i, cfv3_alu_11, cfv3_omove_11, cfv3_alu_i1, cfv3_omove_i1,
9289 cfv3_alu_1i, cfv3_omove_1i, cfv3_pea_11, cfv3_pea_i1, cfv3_mul_w_10,
9290 cfv3_mul_l_10, cfv3_mul_w_i0, cfv3_mac_w_10, cfv3_mac_l_10,
9291 cfv3_mac_w_i0, cfv3_emac_10, cfv3_emac_w_i0, cfv3_rts, cfv3_call,
9292 cfv3_bcc, cfv3_bra, cfv3_jmp): New reservations.
9293 (cfv3_*_1, cfv3_*_2, cfv3_*_3): New instruction reservations that are
9294 expansions of the above reservations for instructions of sizes
9297 2008-04-22 Maxim Kuvyrkov <maxim@codesourcery.com>
9299 * rtl-factoring.c (collect_patterns_seqs): Handle CC0 targets.
9301 2008-04-21 Adam Nemet <anemet@caviumnetworks.com>
9303 * coverage.c: Include tree-pass.h.
9304 (coverage_counter_alloc): Print da_file_name to the dump file.
9306 2008-04-21 Kenneth Zadeck <zadeck@naturalbridge.com>
9308 * sbitmap.c (sbitmap_range_empty_p): New function.
9309 * sbitmap.h (sbitmap_range_empty_p): New function.
9310 * bitmap.h: Now includes obstack.h.
9312 2008-04-21 Richard Sandiford <rsandifo@nildram.co.uk>
9313 Kenneth Zadeck <zadeck@naturalbridge.com>
9315 * dbgcnt.def (ra_byte_scan): Added.
9316 * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
9317 when the last hit happens for a counter.
9318 * timevar.def (TV_DF_BYTE_LR): New variable.
9319 * tree-pass.h (pass_fast_rtl_byte_dce): New pass.
9320 * passes.c (pass_fast_rtl_byte_dce): New pass.
9321 * fwprop.c (update_df): Added mode to call df_ref_create.
9322 Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
9323 DF_REF_EXTRACT_OFFSET.
9324 * df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN,
9325 DF_BYTE_LR_OUT, df_byte_lr): New macro.
9327 (df_ref_extract): Added mode field.
9328 (DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
9329 DF_REF_EXTRACT_OFFSET.
9330 (DF_REF_EXTRACT_MODE): New macro.
9331 (df_byte_lr_bb_info): New structure.
9332 (df_print_byte_regset, df_compute_accessed_bytes,
9333 df_byte_lr_add_problem, df_byte_lr_get_regno_start,
9334 df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
9335 df_byte_lr_simulate_uses,
9336 df_byte_lr_simulate_artificial_refs_at_top,
9337 df_byte_lr_simulate_artificial_refs_at_end,
9338 df_compute_accessed_bytes): New function.
9339 (df_ref_create): Add parameter.
9340 (df_byte_lr_get_bb_info): New inline function.
9341 * df-scan.c (df_ref_record, df_uses_record,
9342 df_ref_create_structure): Added mode parameter.
9343 (df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1,
9344 df_defs_record, df_uses_record, df_get_conditional_uses,
9345 df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
9346 df_entry_block_defs_collect, df_exit_block_uses_collect):
9347 Added mode parameter to calls to df_ref_record, df_uses_record,
9348 df_ref_create_structure.
9349 (df_ref_equal_p, df_ref_compare): Added test for modes.
9350 (df_ref_create_structure): Added code to set mode. Renamed
9351 DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
9352 DF_REF_EXTRACT_OFFSET.
9353 * df-core.c (df_print_byte_regset): New function.
9354 * df-byte-scan.c: New file.
9355 * df-problems.c (df_rd_transfer_function): Removed unnecessary
9356 calls to BITMAP_FREE.
9357 (df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
9358 (df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
9359 df_byte_lr_set_bb_info, df_byte_lr_free_bb_info,
9360 df_byte_lr_check_regs, df_byte_lr_expand_bitmap,
9361 df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
9362 df_byte_lr_local_compute, df_byte_lr_init,
9363 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
9364 df_byte_lr_transfer_function, df_byte_lr_free,
9365 df_byte_lr_top_dump, df_byte_lr_bottom_dump,
9366 df_byte_lr_add_problem, df_byte_lr_simulate_defs,
9367 df_byte_lr_simulate_uses,
9368 df_byte_lr_simulate_artificial_refs_at_top,
9369 df_byte_lr_simulate_artificial_refs_at_end): New function.
9370 * dce.c (byte_dce_process_block): New function.
9371 (dce_process_block): au is now passed in rather than computed
9372 locally. Changed loops that look at artificial defs to not look
9373 for conditional or partial ones, because there never are any.
9374 (fast_dce): Now is able to drive byte_dce_process_block or
9375 dce_process_block depending on the kind of dce being done.
9376 (rest_of_handle_fast_dce): Add parameter to fast_dce.
9377 (rest_of_handle_fast_byte_dce): New function.
9378 (rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
9379 * Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
9381 2008-04-21 Daniel Franke <franke.daniel@gmail.com>
9384 * gcc.h: Added fortran options that take arguments to
9385 DEFAULT_SWITCH_TAKES_ARG and DEFAULT_WORD_SWITCH_TAKES_ARG
9388 2008-04-20 Eric Botcazou <ebotcazou@adacore.com>
9390 * tree-sra.c (sra_walk_expr) <VIEW_CONVERT_EXPR>: Disable
9391 scalarization if on the LHS and not a full access.
9393 2008-04-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9395 * Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing it.
9397 2008-04-18 Rafael Espindola <espindola@google.com>
9399 * tree-vrp.c (find_case_label_index): Fix the binary search.
9400 (find_case_label_range): New.
9401 (vrp_visit_switch_stmt): Use find_case_label_range.
9402 (simplify_switch_using_ranges): Use find_case_label_range.
9404 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
9406 * gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
9407 using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
9409 2008-04-18 Tom Tromey <tromey@redhat.com>
9412 * doc/cpp.texi (Implementation-defined behavior): Mention
9415 2008-04-18 Ian Lance Taylor <iant@google.com>
9417 * fold-const.c (pointer_may_wrap_p): New static function.
9418 (fold_comparison): Add another test for pointer overflow. Use
9419 pointer_may_wrap_p to disable some false positives.
9421 2008-04-18 Kris Van Hees <kris.van.hees@oracle.com>
9423 * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros.
9424 (fname_as_string): Match updated cpp_interpret_string prototype.
9425 (fix_string_type): Support char16_t* and char32_t*.
9426 (c_common_nodes_and_builtins): Add char16_t and char32_t (and
9427 derivative) nodes. Register as builtin if C++0x.
9428 (c_parse_error): Support CPP_CHAR{16,32}.
9429 * c-common.h (RID_CHAR16, RID_CHAR32): New elements.
9430 (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE,
9431 CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE,
9432 CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE,
9433 CTI_CHAR32_ARRAY_TYPE>: New elements.
9434 (char16_type_node, signed_char16_type_node, unsigned_char16_type_node,
9435 char32_type_node, signed_char32_type_node, char16_array_type_node,
9436 char32_array_type_node): New defines.
9437 * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype.
9438 (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
9439 (lex_string): Support CPP_STRING{16,32}, match updated
9440 cpp_interpret_string and cpp_interpret_string_notranslate prototypes.
9441 (lex_charconst): Support CPP_CHAR{16,32}.
9442 * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32}
9443 and CPP_STRING{16,32}.
9445 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
9448 * aclocal.m4: Regenerate.
9449 * configure: Regenerate.
9451 2008-04-18 Jan Hubicka <jh@suse.cz>
9453 * except.c (dw2_size_of_call_site_table,
9454 sjlj_size_of_call_site_table): Use vector API for call_site_record.
9456 * cgraphbuild.c (build_cgraph_edges): Update.
9457 * tree-pass.h: Update comment.
9458 * final.c (leaf_function_p): Update.
9459 (leaf_renumber_regs): Update.
9460 (rest_of_clean_state): Update.
9461 * omp-low.c (expand_omp_parallel): Update.
9462 * ipa-reference.c (analyze_function): Update.
9463 * reorg.c (find_end_label): Update.
9464 (optimize_skip): Update.
9465 (fill_simple_delay_slots): Update.
9466 (fill_simple_delay_slots): Update.
9467 (make_return_insns): Update.
9468 (dbr_schedule): Update.
9469 * gimple-low.c (record_vars_into): Update.
9470 * cfgbuild.c (make_edges): Update.
9471 * function.c (assign_stack_local): Update.
9472 (assign_parm_adjust_stack_rtl): Update.
9473 (locate_and_pad_parm): Update.
9474 (allocate_struct_function): Do not initialize stack_alignment_needed
9475 and preferred_stack_boundary here.
9476 (stack_protect_prologue): Update.
9477 (stack_protect_epilogue): Update.
9478 (expand_function_start): Initialize stack_alignment_needed,
9479 preferred_stack_boundary and max_jumptable_ents.
9480 (expand_function_end): Update.
9481 (free_after_compilation): Do not NULLify epilogue_delay_list.
9482 * function.h (struct rtl_data): Add stack_protect_guard,
9483 stack_alignment_needed,
9484 preferred_stack_boundary, epilogue_delay_list.
9485 (struct function): Remove value_histograms, stack_alignment_needed,
9486 preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
9488 unexpanded_var_list, stack_protect_guard.
9489 (current_function_epilogue_delay_list): Remove.
9490 * ipa-type-escape.c (analyze_function): Update.
9491 * gimplify.c (pop_gimplify_context): Update comment.
9492 * calls.c (expand_call): Update.
9493 (emit_library_call_value_1): Update.
9494 * except.c (set_nothrow_function_flags): Update.
9495 * cfgexpand.c (get_decl_align_unit): Update.
9496 (create_stack_guard): Update.
9497 (estimated_stack_frame_size): Update.
9498 (expand_used_vars): Update.
9499 (tree_expand_cfg): Free histogram earliers, init expansion variables.
9500 * explow.c (allocate_dynamic_stack_space): Update.
9501 * tree-ssa-live.c (remove_unused_locals): Update.
9502 * varasm.c (mark_constant_pool): Update.
9503 * tree-inline.c (remap_decls): Update.
9504 (initialize_cfun): Update.
9505 (declare_return_variable): Update.
9506 (inline_forbidden_p): Update.
9507 (expand_call_inline): Update.
9508 (declare_inline_vars): Update.
9509 (tree_function_versioning): Update.
9510 * tree-flow.h (value_histograms): New.
9511 (VALUE_HISTOGRAMS): New macro.
9512 * basic-block.h (control_flow_graph): Add max_jumptable_ents,
9514 * tree-cfg.c (set_bb_for_stmt): Update.
9515 (replace_by_duplicate_decl): Update.
9516 (move_block_to_fn): Update.
9517 (new_label_mapper): Update.
9518 (dump_function_to_file): Update.
9519 * ipa-struct-reorg.c (build_data_structure): Update.
9520 * cfgrtl.c (print_rtl_with_bb): Update.
9521 * reload1.c (reload): Update.
9523 * config/i386/i386.c (setup_incoming_varargs_64,
9524 ix86_compute_frame_layout): Update.
9525 * config/arc/arc.c (arc_output_function_epilogue): Update.
9527 2008-04-18 Marius Strobl <marius@FreeBSD.org>
9529 * gthr-posix.h (__gthread_active_p): Use the Solaris implementation
9530 for FreeBSD as well.
9531 * gthr-posix95.h: Likewise.
9533 2008-04-17 Richard Sandiford <rsandifo@nildram.co.uk>
9535 PR rtl-optimization/35838
9536 * dse.c (find_shift_sequence): Use subreg_lowpart_offset to work
9537 out the byte offset of the first subreg.
9539 2008-04-17 Uros Bizjak <ubizjak@gmail.com>
9541 * config/i386/i386.md (addti3 splitter): Pass arrays of 3 operands
9542 to split_ti instead of three separate calls with single member arrays.
9543 (subti3 splitter): Ditto.
9544 (adddi3 splitter): Ditto with split_di.
9545 (subdi3 splitter): Ditto.
9546 (negti2 splitter): Pass arrays of 2 operands to split_ti instead of
9547 two separate calls with single member arrays. Swap match_dup
9548 operands 1 and 2 to better fit into the array.
9549 (negdi2 splitter): Ditto with split_di.
9550 (movdfcc splitter): Pass arrays of 2 operands to split_di instead of
9551 two separate calls with single member arrays. Swap match_dup operands
9552 6 and 7 to better fit into the array.
9554 2008-04-17 H.J. Lu <hongjiu.lu@intel.com>
9556 * config/i386/i386.c (sse_builtin_type): New.
9557 (bdesc_sse_args): Likewise.
9558 (bdesc_sse_3arg): Removed.
9559 (bdesc_2arg): Remove IX86_BUILTIN_AESKEYGENASSIST128.
9560 (bdesc_1arg): Remove IX86_BUILTIN_ROUNDPD and
9561 IX86_BUILTIN_ROUNDPS.
9562 (ix86_init_mmx_sse_builtins): Handle bdesc_sse_args. Remove
9563 bdesc_sse_3arg. Remove IX86_BUILTIN_ROUNDPD and
9564 IX86_BUILTIN_ROUNDPS.
9565 (ix86_expand_sse_4_operands_builtin): Removed.
9566 (ix86_expand_sse_operands_builtin): New.
9567 (ix86_expand_unop_builtin): Remove CODE_FOR_sse4_1_roundpd
9568 and CODE_FOR_sse4_1_roundps.
9569 (ix86_expand_builtin): Remove IX86_BUILTIN_AESKEYGENASSIST128.
9570 Handle bdesc_sse_args. Remove bdesc_sse_3arg.
9572 2008-04-17 Alan Modra <amodra@bigpond.net.au>
9575 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Restore vr and vrsave
9576 regs before frame pop when needed. If use_backchain_to_restore_sp
9577 then load backchain into a temp reg to restore vr and vrsave. Add
9578 code to restore vr after frame pop if possible.
9580 2008-04-17 Richard Guenther <rguenther@suse.de>
9582 * tree-vn.c (expressions_equal_p): Do not check type
9583 equality or compatibility before calling operand_equal_p.
9584 * fold-const.c (operand_equal_p): Check equivalence of
9585 integer constants before bailing out due to signedness or
9586 precision differences.
9587 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
9588 spurious differences in type qualification. Ignore types
9589 for COMPONENT_REFs at all.
9591 2008-04-17 Christian Bruel <christian.bruel@st.com>
9593 * config/sh/sh.c (expand_cbranchdi4): Use original operands for
9594 msw_skip comparison.
9596 2008-04-16 Jakub Jelinek <jakub@redhat.com>
9599 * tree-nrv.c (tree_nrv): Don't optimize if result_type is GIMPLE
9602 PR tree-optimization/35899
9603 * tree-inline.c (expand_call_inline): Use GIMPLE_STMT_OPERAND
9604 rather than TREE_OPERAND.
9606 2008-04-16 Uros Bizjak <ubizjak@gmail.com>
9609 * config/i386/i386.md (fmodxf3): Copy operand 1 and operand 2 into
9610 temporary registers. Change operand predicate to general_operand.
9611 (remainderxf3): Ditto.
9613 2008-04-16 Richard Guenther <rguenther@suse.de>
9615 * Makefile.in (tree-affine.o): Add $(FLAGS_H) dependency.
9616 * tree-affine.c (aff_combination_expand): Look through some
9619 2008-04-15 Doug Kwan <dougkwan@google.com>
9621 * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
9623 * tree-pretty-print.c (dump_generic_node): Ditto.
9624 * final.c (output_addr_const): Ditto.
9625 * dwarf2out.c (output_cfi): Ditto.
9626 * c-pretty-print.c (pp_c_integer_constant): Ditto.
9627 * print-rtl.c (print_rtx): Ditto.
9628 * print-tree.c (print_node_brief, print_node): Ditto.
9629 * c-common.c (match_case_to_enum_1): Ditto.
9630 * sched-vis.c (print_value): Ditto.
9631 * config/i386/i386.c (print_operand): Cast to long unsigned int
9634 2008-04-15 Danny Smith <dannysmith@users.sourceforge.net>
9635 * libgcc2.c [L_trampoline]: Remove unnecessary prototype for
9636 MS Windows VirtualProtect function.
9638 2008-04-15 Jan Hubicka <jh@suse.cz>
9640 * gengtype.c (write_root): Param_is argument is OK.
9641 * expr.c (expand_expr_real_1): Update call of get_exception_*.
9642 * function.h: Include varray.h
9643 (rtl_eh): New stucture based on except.c one.
9644 (call_site_record): New forward declaration and vector type.
9645 * calls.c (emit_call_1): Do not call
9646 note_current_region_may_contain_throw.
9647 * except.c (eh_status): Remove cur_region, try_region since they are
9649 Move filter, exc_ptr, ttype_data, ehspec_data, action_record_data and
9650 exception_handler_label_map, ehr_stackadj, ehr_handler, ehr_label,
9651 sjlj_fc, sjlj_exit_after to rth_eh in function.h.
9652 Remove call_site_data_used, call_site_data_size.
9653 Turn call_site_record into vector in function.h.
9654 (note_current_region_may_contain_throw): Remove.
9655 (get_exception_pointer, get_exception_filter): Do not take struct
9656 function argument; update.
9657 (add_ehl_entry, find_exception_handler_labels, ehspec_filter_hash,
9658 add_ttypes_entry, add_ehspec_entry, assign_filter_values,
9659 build_post_landing_pads, dw2_build_landing_pads,
9660 sjlj_assign_call_site_values, sjlj_mark_call_sites,
9661 sjlj_emit_function_enter, sjlj_emit_function_enter,
9662 sjlj_emit_function_exit, sjlj_emit_dispatch_table,
9663 sjlj_build_landing_pads, finish_eh_generation,
9664 remove_exception_handler_label, remove_eh_handler,
9665 maybe_remove_eh_handler, add_reachable_handler,
9666 reachable_handlers, expand_builtin_eh_return, expand_eh_return,
9667 add_action_record, collect_one_action_chain, add_call_site,
9668 convert_to_eh_region_ranges, sjlj_size_of_call_site_table,
9669 sjlj_output_call_site_table, output_function_exception_table,
9670 * except.h (note_current_region_may_contain_throw): Remove
9671 (get_exception_pointer, get_exception_filter): Do not take struct
9673 * Makefile.in (GTFILES): Put varargs before struct function.
9675 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
9677 * tree-ssa-structalias.c (get_constraint_for_component_ref): Do not
9678 punt for STRING_CST.
9679 (get_constraint_for): Deal with STRING_CST here instead.
9681 2008-04-15 Richard Guenther <rguenther@suse.de>
9683 * tree-ssa-propagate.c (substitute_and_fold): Substitute
9684 statements in a basic-block with a backward walk. Do not
9685 substitute into dead statements but instead remove those.
9687 2008-04-15 Richard Guenther <rguenther@suse.de>
9689 * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Set default
9690 to zero, thus disable creation of SFTs.
9692 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
9694 * tree-predcom.c (suitable_reference_p): Return false if the
9695 reference can throw.
9697 2008-04-15 Jakub Jelinek <jakub@redhat.com>
9700 * c-decl.c (finish_decl): If extern or static var has variable
9701 size, set TREE_TYPE (decl) to error_mark_node.
9703 2008-04-15 Rafael Espindola <espindola@google.com>
9705 * fold-const.c (tree_call_nonnegative_warnv_p): Remove local
9708 2008-04-15 Richard Guenther <rguenther@suse.de>
9710 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
9711 * tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
9712 (visit_reference_op_load): Do walk vuse-vdef chains on
9713 vn_reference_lookup.
9714 (visit_reference_op_store): But do not here.
9715 * tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
9716 vn_reference_lookup.
9717 (vn_lookup_with_vuses): But do so here.
9719 2008-04-14 Ian Lance Taylor <iant@google.com>
9721 * fold-const.c (fold_overflow_warning): Remove assertion.
9723 2008-04-15 Ben Elliston <bje@au.ibm.com>
9725 * config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp,
9726 temp1 local variables.
9728 2008-04-15 Zuxy Meng <zuxy.meng@gmail.com>
9731 * config/i386/winnt.c (i386_pe_section_type_flags): Mark
9732 ".text.unlikely" section as executable.
9734 2008-04-14 James E. Wilson <wilson@tuliptree.org>
9736 * config/ia64/ia64.c (rtx_needs_barrier): Handle
9737 UNSPEC_FR_SQRT_RECIP_APPROX_RES.
9738 * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define.
9739 (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr,
9740 divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr,
9741 divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat,
9742 divxf3_internal_thr, sqrtxf2_internal_thr, recip_approx): Use it.
9744 2008-04-14 Ian Lance Taylor <iant@google.com>
9746 * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
9747 * fold-const.c (fold_comparison): If appropriate, test
9748 POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
9749 (fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
9750 reassociating a pointer type.
9751 * doc/invoke.texi (Optimize Options): Document that
9752 -fstrict-overflow applies to pointer wraparound.
9754 2008-04-13 Jan Hubicka <jh@suse.cz>
9756 * m32.c (m32c_pushm_popm): Use crtl->retrun_rtx.
9758 2008-04-12 Andrew Pinski <pinskia@gmail.com>
9760 * config/rs6000/rs6000.c (compute_save_world_info): Set lr_save_p if
9761 we are going to "save the world".
9763 2008-04-13 Hans-Peter Nilsson <hp@axis.com>
9765 * config/cris/cris.md ("*andhi_lowpart_non_v32", "*andhi_lowpart_v32")
9766 ("*andqi_lowpart_non_v32", "*andqi_lowpart_v32"): Use "+" for the
9767 operand 0 constraint, not "=".
9769 2008-04-11 James E. Wilson <wilson@tuliptree.org>
9771 * system.h: Change ASSERT_CHECKING to ENABLE_ASSERT_CHECKING.
9773 2008-04-11 H.J. Lu <hongjiu.lu@intel.com>
9775 * dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
9776 of size of positions_needed * CHAR_BIT.
9778 2008-04-11 H.J. Lu <hongjiu.lu@intel.com>
9781 * dse.c (store_info): Change positions_needed to unsigned
9783 (lowpart_bitmask): New.
9784 (record_store): Cast to unsigned HOST_WIDE_INT for
9785 positions_needed. Assert width <= size of positions_needed *
9786 CHAR_BIT. Call lowpart_bitmask to initialize positions_needed.
9787 (check_mem_read_rtx): Use unsigned HOST_WIDE_INT on mask. Call
9788 lowpart_bitmask to set mask.
9790 2008-04-11 Bernd Schmidt <bernd.schmidt@analog.com>
9792 * config/bfin/constraints.md: New file.
9793 * config/bfin/bfin.md: Include it.
9794 (adddi3): Use satisfies_constraint functions instead of the old macros.
9795 * config/bfin/bfin.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
9796 CONST_18UBIT_IMM_P, CONST_16BIT_IMM_P, CONST_16UBIT_IMM_P,
9797 CONST_7BIT_IMM_P, CONST_7NBIT_IMM_P, CONST_5UBIT_IMM_P,
9798 CONST_4BIT_IMM_P, CONST_4UBIT_IMM_P, CONST_3BIT_IMM_P,
9799 CONST_3UBIT_IMM_P, CONST_OK_FOR_K, CONST_OK_FOR_P, CONST_OK_FOR_M,
9800 CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER,
9801 EXTRA_CONSTRAINT): Delete.
9802 * config/bfin/predicates.md (highbits_operand, reg_or_7bit_operand,
9803 reg_or_neg7bit_operand): Use satisfies_constraint functions instead
9805 * config/bfin/bfin.c: Include "tm-constrs.h".
9806 (bfin_secondary_reload, split_load_immediate, bfin_rtx_costs):
9807 Use satisfies_constraint functions instead of the old macros.
9808 * doc/md.texi (Blackfin Constraints): Update file name reference.
9810 2008-04-11 Richard Guenther <rguenther@suse.de>
9812 PR tree-optimization/35869
9813 * tree-vrp.c (execute_vrp): Move switch statement update after
9814 jump threading. Schedule another cfg cleanup run.
9816 2008-04-11 Volker Reichelt <v.reichelt@netcologne.de>
9819 * attribs.c (decl_attributes): Return early on errorneous node.
9821 2008-04-10 Oleg Ryjkov <olegr@google.com>
9823 * tree.h (struct tree_base): Added a new flag default_def_flag.
9824 (SSA_NAME_IS_DEFAULT_DEF): Changed to use the new flag.
9826 2008-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
9828 * config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*.
9830 2008-04-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9833 * pa.md: Define mode iterator P. Define mode attribute dwc.
9834 (dcacheflush): Update pattern to use iterator P and attribute dwc.
9835 (icacheflush): Likewise.
9836 * pa.h (INITIALIZE_TRAMPOLINE): Use dcacheflushsi/icacheflushsi if
9837 !TARGET_64BIT, and dcacheflushdi/icacheflushdi if TARGET_64BIT.
9839 2008-04-11 Ben Elliston <bje@au.ibm.com>
9841 * config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
9843 2008-04-10 Rafael Espindola <espindola@google.com>
9845 * tree-vrp.c (extract_range_from_binary_expr): Don't handle
9846 TRUTH_ANDIF_EXPR or TRUTH_ORIF_EXPR.
9847 (extract_range_from_expr): The same.
9849 2008-04-10 Adam Nemet <anemet@caviumnetworks.com>
9851 * config/mips/mips.md (GPR2): New mode iterator.
9853 (*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
9854 *sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
9855 *slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
9856 Rewrite these to take two modes, the mode of comparison and the
9857 mode of the destination.
9858 * config/mips/mips.c (mips_expand_scc): Instead of having
9859 paradoxical subreg as destination, expand "narrowing" scc if mode
9860 of comparison is SI and target is requested in DI mode.
9861 (mips_emit_int_order_test): Update comment. Make mode of
9862 comparison match CMP0 rather than TARGET. When creating inverse
9863 target use mode of TARGET.
9865 2008-04-10 Adam Nemet <anemet@caviumnetworks.com>
9867 * gcov-dump.c (tag_summary): Only print summaries for the first
9868 GCOV_COUNTERS_SUMMABLE counters.
9870 2008-04-10 Uros Bizjak <ubizjak@gmail.com>
9872 * config/i386/i386.md (absneg): New code iterator.
9873 (absnegprefix): New code attribute.
9874 (<code><mode>2): Macroize expander from abs<mode>2 and neg<mode>2
9875 patterns using absneg code iterator.
9876 (<code>tf2): Macroize expander from abstf2 and negtf2 patterns
9877 using absneg code iterator.
9878 (*<code><mode>2_1): Macroize insn pattern from *abs<mode>2_1 and
9879 *neg<mode>2 patterns using absneg code iterator.
9880 (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
9881 *negextendsfdf2 patterns using absneg code iterator.
9882 (*<code>extendsfxf2): Macroize insn pattern from *absextendsfxf2 and
9883 *negextendsfxf2 patterns using absneg code iterator.
9884 (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
9885 *negextendsfdf2 patterns using absneg code iterator.
9886 * config/i386/sse.md (<code><mode>2): Macroize expander from
9887 abs<mode>2 and neg<mode>2 patterns using absneg code iterator.
9889 2008-04-10 Andreas Krebbel <krebbel1@de.ibm.com>
9891 * config/s390/s390.h: Remove the remains of the recent search
9892 & replace action of current_function_outgoing_args_size.
9894 2008-04-10 Ira Rosen <irar@il.ibm.com>
9896 PR tree-optimization/35821
9897 * tree-vect-transform.c (vect_create_data_ref_ptr): Add check that
9898 NEW_STMT_LIST is not NULL.
9900 2008-04-09 David Edelsohn <edelsohn@gnu.org>
9903 * toplev.c (process_options): Remove -ffunction-sections debugging
9906 2008-04-09 Peter Bergner <bergner@vnet.ibm.com>
9908 PR middle-end/PR28690
9909 * explow.c (break_out_memory_refs): Use simplify_gen_binary rather
9910 than gen_rtx_fmt_ee to perform more canonicalizations.
9912 2008-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9915 * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
9917 2008-04-09 Richard Guenther <rguenther@suse.de>
9919 * tree-cfg.c (verify_stmt): Print complete bogus stmt.
9920 (dump_function_to_file): Dump function arguments with types.
9922 2008-04-08 Richard Guenther <rguenther@suse.de>
9924 * fold-const.c (fold_widened_comparison): Do not allow
9925 sign-changes that change the result.
9927 2008-04-08 Janis Johnson <janis187@us.ibm.com>
9930 * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
9931 kinds of indirect references.
9933 2008-04-08 David Edelsohn <edelsohn@gnu.org>
9935 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
9936 GNU Fortran language string.
9938 2008-04-08 Rafael Espindola <espindola@google.com>
9940 * fold-canst.c (tree_call_nonnegative_warnv_p): New.
9941 (tree_invalid_nonnegative_warnv_p): Use tree_call_nonnegative_warnv_p.
9942 * tree.h (tree_call_nonnegative_warnv_p): New.
9944 2008-04-08 Jan Hubicka <jh@suse.cz>
9946 * function.c (free_after_compilation): Clear out regno_reg_rtx
9949 2008-04-08 Peter Bergner <bergner@vnet.ibm.com>
9952 2008-04-07 Peter Bergner <bergner@vnet.ibm.com>
9954 PR middle-end/PR28690
9955 * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
9956 same precedence as REG_POINTER and MEM_POINTER operands.
9958 2008-04-08 Richard Guenther <rguenther@suse.de>
9961 * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
9962 for adding index to base.
9964 2008-04-08 Kai Tietz <kai.tietz@onevision.com>
9966 * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
9967 (MINGW_ENABLE_EXECUTE_STACK): New.
9968 (IN_LIBGCC2): For libgcc include windows.h file for
9969 function declarations.
9971 2008-04-08 Hans-Peter Nilsson <hp@axis.com>
9973 * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
9974 and tem2 if tem1 is not a REG or MULT.
9976 2008-04-08 Jan Hubicka <jh@suse.cz>
9978 * function.h (incomming_args): Break out of struct function.
9979 (function_subsections): Break out of struct function.
9980 (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
9981 return_rtx and hard_reg_initial_vals from struct function.
9982 Kill inl_max_label_num.
9983 (current_function_pops_args, current_function_args_info,
9984 current_function_args_size, current_function_args_size,
9985 current_function_pretend_args_size,
9986 current_function_outgoing_args_size,
9987 current_function_internal_arg_pointer, current_function_return_rtx):
9988 Kill compatibility accestor macros.
9989 * builtins.c (expand_builtin_apply_args_1): Update.
9990 (expand_builtin_next_arg): Update.
9991 * df-scan.c (df_get_call_refs): Update.
9992 * dbxout.c (dbxout_function_end): Update.
9993 * dwarf2out.c (dwarf2out_switch_text_section): Update.
9994 (output_line_info): Update.
9995 (secname_for_decl): Update.
9996 (dwarf2out_var_location): Update.
9997 * function.c (free_after_compilation): Update.
9998 (assign_parm_find_stack_rtl): Update.
9999 (assign_parms): Update.
10000 (expand_dummy_function_end): Update.
10001 (expand_function_end): Update.
10002 * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
10003 (expand_call): Update.
10004 (emit_library_call_value_1): Update.
10005 (store_one_arg): Update.
10006 * varasm.c (initialize_cold_section_name): Update.
10007 (unlikely_text_section): Update.
10008 (unlikely_text_section_p): Update.
10009 (assemble_start_function): Update.
10010 (assemble_end_function): Update.
10011 (default_section_type_flags): Update.
10012 (switch_to_section): Update.
10013 * integrate.c (set_decl_abstract_flags): Update.
10014 (get_hard_reg_initial_val): Update.
10015 (has_hard_reg_initial_val): Update.
10016 (allocate_initial_values): Update.
10017 * resource.c (init_resource_info): Update.
10018 * config/alpha/alpha.c (NUM_ARGS): Update.
10019 (direct_return): Update.
10020 (alpha_va_start): Update.
10021 (alpha_sa_size): Update.
10022 (alpha_initial_elimination_offset): Update.
10023 (alpha_expand_prologue): Update.
10024 (alpha_start_function): Update.
10025 (alpha_expand_epilogue): Update.
10026 (unicosmk_initial_elimination_offset):
10027 * config/alpha/alpha.md (call expander): Update.
10028 * config/s390/s390.c (s390_register_info): Update.
10029 (s390_register_info): Update.
10030 (s390_frame_info): Update.
10031 (s390_initial_elimination_offset): Update.
10032 (s390_build_builtin_va_list): Update.
10033 (s390_va_start): Update.
10034 * config/spu/spu.c (direct_return): Update.
10035 (spu_expand_prologue): Update.
10036 (spu_initial_elimination_offset): Update.
10037 (spu_build_builtin_va_list): Update.
10038 (spu_va_start): Update.
10039 * config/sparc/sparc.c (sparc_init_modes): Update.
10040 (sparc_compute_frame_size): Update.
10041 (function_value): Update.
10042 * config/m32r/m32r.c (m32r_compute_frame_size): Update.
10043 * config/i386/i386.md (return expander): Update.
10044 * config/i386/i386.c (ix86_va_start): Update.
10045 (ix86_can_use_return_insn_p): Update.
10046 (ix86_compute_frame_layout): Update.
10047 (ix86_expand_epilogue): Update.
10048 * config/sh/sh.c (output_stack_adjust): Update.
10049 (calc_live_regs): Update.
10050 (sh_expand_prologue): Update.
10051 (sh_builtin_saveregs): Update.
10052 (sh_va_start): Update.
10053 (initial_elimination_offset): Update.
10054 (sh_allocate_initial_value): Update.
10055 (sh_function_ok_for_sibcall): Update.
10056 (sh_get_pr_initial_val): Update.
10057 * config/sh/sh.md (return expander): Update.
10058 * config/avr/avr.c (frame_pointer_required_p): UPdate.
10059 * config/crx/crx.c (crx_compute_frame): UPdate.
10060 (crx_initial_elimination_offset): UPdate.
10061 * config/xtensa/xtensa.c (compute_frame_size): Update
10062 (xtensa_builtin_saveregs): Update.
10063 (xtensa_va_start): Update.
10064 (order_regs_for_local_alloc): Update.
10065 * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
10066 (xstormy16_expand_builtin_va_start): Update.
10067 * config/fr30/fr30.c (fr30_compute_frame_size): Update.
10068 * config/m68hc11/m68hc11.md (return expanders): Update.
10069 * config/m68hc11/m68hc11.c (expand_prologue): Update.
10070 (expand_epilogue): Update.
10071 * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
10072 (cris_simple_epilogue): Update.
10073 (cris_expand_prologue): Update.
10074 (cris_expand_epilogue): Update.
10075 * config/iq2000/iq2000.c (iq2000_va_start): Update.
10076 (compute_frame_size): Update.
10077 * config/mt/mt.c (mt_compute_frame_size): Update.
10078 * config/mn10300/mn10300.c (expand_prologue): Update.
10079 (expand_epilogue): Update.
10080 (initial_offset): Update.
10081 (mn10300_builtin_saveregs):
10082 * config/mn10300/mn10300.md (return expander): Update.
10083 * config/ia64/ia64.c (ia64_compute_frame_size): Update.
10084 (ia64_initial_elimination_offset): Update.
10085 (ia64_initial_elimination_offset): Update.
10086 (ia64_expand_prologue): Update.
10087 * config/m68k/m68k.md (return expander): Update.
10088 * config/rs6000/rs6000.c (rs6000_va_start): Update.
10089 (rs6000_stack_info): Update.
10090 * config/mcore/mcore.c (layout_mcore_frame): Update.
10091 (mcore_expand_prolog): Update.
10092 * config/arc/arc.c (arc_compute_frame_size): Update.
10093 * config/score/score3.c (score3_compute_frame_size): Update.
10094 * config/score/score7.c (score7_compute_frame_size): Update.
10095 * config/arm/arm.c (use_return_insn): Update.
10096 (thumb_find_work_register): Update.
10097 (arm_compute_save_reg_mask): Update.
10098 (arm_output_function_prologue): Update.
10099 (arm_output_epilogue): Update.
10100 (arm_size_return_regs): Update.
10101 (arm_get_frame_offsets): Update.
10102 (arm_expand_prologue): Update.
10103 (thumb_exit): Update.
10104 (thumb_unexpanded_epilogue): Update.
10105 (thumb1_output_function_prologue): Update.
10106 * config/pa/pa.md (return expander): Update.
10107 * config/pa/pa.c (compute_frame_size): Update.
10108 (hppa_builtin_saveregs): Update.
10109 * config/mips/mips.c (mips_va_start): Update.
10110 (mips16_build_function_stub): Update.
10111 (mips_compute_frame_info): Update.
10112 (mips_restore_gp): Update.
10113 (mips_output_function_prologue): Update.
10114 (mips_expand_prologue): Update.
10115 * config/v850/v850.c (compute_frame_size): Update.
10116 (expand_prologue): * config/mmix/mmix.c (along): update.
10117 (mmix_initial_elimination_offset): update.
10118 (mmix_reorg): update.
10119 (mmix_use_simple_return): update.
10120 (mmix_expand_prologue): update.
10121 (mmix_expand_epilogue): Update.
10122 * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
10123 (emit_link_insn): Update.
10125 2008-04-08 Anatoly Sokolov <aesok@post.ru>
10127 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define
10128 __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL
10130 * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for
10133 2008-04-07 Jan Hubicka <jh@suse.cz>
10135 * function.h (rtl): Rename to x_rtl.
10136 (crtl): New define.
10137 (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
10138 frame_offset, stack_check_probe_note, arg_pointer_save_area,
10139 used_temp_slots avail_temp_slots, temp_slot_level,
10140 nonlocal_goto_handler_labels): Update accesstors.
10141 (rtl): New global variable.
10142 (struct function): Move some fileds to rtl_data.
10143 (get_arg_pointer_save_area): Update prototype.
10144 * builtins.c (expand_builtin_setjmp_receiver): Update call of
10145 get_arg_pointer_save_area.
10146 * expr.c (init_expr): Update
10147 * function.c (get_frame_size): Update
10148 (assign_stack_local): Update
10149 (expand_function_end): Update.
10150 (get_art_pointer_save_area): Update
10152 * emit-rtl.c (rtl): Declare.
10153 (regno_reg_rtx): Declare.
10154 (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
10156 (gen_reg_rtx): Update.
10157 * varasm.c (n_deferred_constatns): Update accestor.
10158 (init_varasm_status): Do not allocate varasm_status.
10159 (force_const_mem, get_pool_size, output_constant_pool): Update.
10160 * stmt.c (force_label_rtx): Do not use x_ prefixes.
10161 (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
10162 * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
10163 * sparc/sparc.h (INIT_EXPANDERS): Update.
10164 * ia64/ia64.h (INIT_EXPANDERS): Update.
10166 2008-04-07 James E. Wilson <wilson@tuliptree.org>
10168 * reload.c (push_secondary_reload): Add missing break to for loop.
10170 2008-04-07 Peter Bergner <bergner@vnet.ibm.com>
10172 PR middle-end/PR28690
10173 * rtlanal.c: Update copyright years.
10174 (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
10175 as REG_POINTER and MEM_POINTER operands.
10176 * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
10177 (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
10178 * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
10179 * gcse.c: Update copyright years.
10180 (pre_delete): Call gen_reg_rtx_and_attrs.
10181 (hoist_code): Likewise.
10182 (build_store_vectors): Likewise.
10183 (delete_store): Likewise.
10184 * loop-invariant.c (move_invariant_reg): Likewise.
10185 Update copyright years.
10187 2008-04-07 Uros Bizjak <ubizjak@gmail.com>
10189 * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
10190 control string instead of quoted.
10192 2008-04-07 Kenneth Zadeck <zadeck@naturalbridge.com>
10194 * doc/rtl.texi: Rewrite of subreg section.
10196 2008-04-07 Kai Tietz <kai.tietz@onevision.com>
10199 * config/i386/i386.c (legitimize_pic_address): Add treating
10200 of dllimport SYM_REF's.
10201 (legitimize_dllimport_symbol): Add prototype.
10203 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
10205 * fold-const.c (fold) <ARRAY_REF>: New case. Try to fold constant
10206 reference in constructor with non self-referential type.
10208 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
10210 Removal of Return with Depressed Stack Pointer support
10211 * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
10212 (ECF_SP_DEPRESSED): Likewise.
10213 (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
10214 * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
10215 (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
10216 (expand_call): Do not test ECF_SP_DEPRESSED.
10217 * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
10218 * function.c (keep_stack_depressed): Delete.
10219 (handle_epilogue_set): Likewise.
10220 (update_epilogue_consts): Likewise.
10221 (emit_equiv_load): Likewise.
10222 (thread_prologue_and_epilogue_insns): Remove support for Return with
10223 Depressed Stack Pointer.
10224 * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
10226 2008-04-06 Richard Guenther <rguenther@suse.de>
10228 PR tree-optimization/35400
10229 * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
10230 information from SSA_NAMEs.
10232 2008-04-06 Anatoly Sokolov <aesok@post.ru>
10234 * config/avr/avr.h (avr_mega_p): Remove declaration.
10235 (AVR_MEGA): Remove macro.
10236 * config/avr/avr.c (avr_mega_p): Remove variable.
10237 (avr_override_options): Remove inicializion of avr_mega_p.
10238 Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
10239 (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
10240 (avr_jump_mode): (Ditto.).
10241 (avr_output_progmem_section_asm_op): (Ditto.).
10242 (avr_asm_init_sections): (Ditto.).
10243 (avr_asm_init_sections): (Ditto.).
10244 (avr_rtx_costs): (Ditto.).
10245 * config/avr/avr.md: (Ditto.).
10246 * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of
10249 2008-04-06 Richard Guenther <rguenther@suse.de>
10251 PR tree-optimization/35842
10252 * tree-ssa-address.c (fixed_address_object_p): Adjust to match
10253 is_gimple_invariant_address.
10255 2008-04-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
10257 * gcc.c (default_compilers): Sync Fortran extensions list with
10258 that in fortran/lang-specs.h.
10259 * doc/invoke.texi: Likewise.
10260 * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
10261 * dwarf2out.c (gen_compile_unit_die): Likewise.
10263 2008-04-06 Tom G. Christensen <tgc@jupiterrise.com>
10265 * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
10267 2008-04-05 Uros Bizjak <ubizjak@gmail.com>
10270 * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
10271 attribute is used for nested functions.
10273 2008-04-05 Jan Hubicka <jh@suse.cz>
10275 * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
10277 * tree-dump.c (dump_enable_all): Remove prototype; do not accept
10279 (dump_files): Update.
10280 (enable_rtl_dump_file): Do not accept letter argument.
10281 * tree-pass.h (dump_file_info): Remove letter argument.
10282 * toplev.c (decode_d_option): Update -da handling.
10283 * toplev.h (enable_rtl_dump_file): Update prototype.
10284 * passes.c (register_one_dump_file): Do not accept IPA argument; work
10285 it out based on pass type.
10286 (register_dump_files_1): Likewise.
10287 (init_optimization_passes): Update register_one_dump_file calls.
10288 (execute_one_pass): Sanity check that IPA passes are called at IPA
10289 level and RTL passes at RTL level.
10290 (execute_pass_list): IPA pass can not be after or subpass of
10292 (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
10293 disallov RTL subpasses of IPA subpasses.
10295 2008-04-05 Ben Elliston <bje@au.ibm.com>
10297 * tree-cfg.c (need_fake_edge_p): Return false for calls to
10298 builtins that return exactly once and do not throw. Cache call to
10301 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
10303 PR rtl-optimization/34916
10304 PR middle-end/35519
10305 * combine.c (create_log_links): Do not create duplicate LOG_LINKS
10306 between instruction pairs.
10308 2008-04-04 Naveen.H.S <naveen.hs@kpitcummins.com>
10310 * doc/invoke.texi: Document -mbitops for SH.
10311 * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
10312 * config/sh/predicates.md (bitwise_memory_operand): New predicate.
10313 * config/sh/sh.c (print_operand): Add %t operand code.
10314 * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
10315 * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
10316 (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
10317 (extendqihi2): Likewise.
10318 (movqi_i): Likewise.
10319 (insv): Use bset, bclr and bst instructions for SH2A if possible.
10320 (extv): Use bld instruction for SH2A if possible.
10322 (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
10323 bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
10324 bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
10325 (bset.b, bclr.b): Define peepholes.
10326 * config/sh/sh.opt (mbitops): New option.
10328 2008-04-04 Janis Johnson <janis187@us.ibm.com>
10331 * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
10332 and view convert expression.
10334 2008-04-04 Jakub Jelinek <jakub@redhat.com>
10337 * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
10339 2008-04-04 H.J. Lu <hongjiu.lu@intel.com>
10341 * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
10343 * config/i386/cpuid.h (bit_AES): New.
10344 (bit_PCLMUL): Likewise.
10346 * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
10347 (override_options): Handle PTA_AES and PTA_PCLMUL. Enable
10348 SSE2 if AES or PCLMUL is enabled.
10349 (ix86_builtins): Add IX86_BUILTIN_AESENC128,
10350 IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
10351 IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
10352 IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
10353 (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
10354 (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
10355 IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
10356 IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
10357 (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
10358 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
10359 __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
10360 __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
10361 __builtin_ia32_aeskeygenassist128 and
10362 __builtin_ia32_pclmulqdq128.
10363 * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
10364 (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
10365 IX86_BUILTIN_PSRLDQI128. Handle IX86_BUILTIN_AESKEYGENASSIST128.
10367 * config/i386/i386.h (TARGET_AES): New.
10368 (TARGET_PCLMUL): Likewise.
10369 (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
10371 * config/i386/i386.md (UNSPEC_AESENC): New.
10372 (UNSPEC_AESENCLAST): Likewise.
10373 (UNSPEC_AESDEC): Likewise.
10374 (UNSPEC_AESDECLAST): Likewise.
10375 (UNSPEC_AESIMC): Likewise.
10376 (UNSPEC_AESKEYGENASSIST): Likewise.
10377 (UNSPEC_PCLMUL): Likewise.
10379 * config/i386/i386.opt (maes): New.
10380 (mpclmul): Likewise.
10382 * config/i386/sse.md (aesenc): New pattern.
10383 (aesenclast): Likewise.
10384 (aesdec): Likewise.
10385 (aesdeclast): Likewise.
10386 (aesimc): Likewise.
10387 (aeskeygenassist): Likewise.
10388 (pclmulqdq): Likewise.
10390 * config/i386/wmmintrin.h: New.
10392 * doc/extend.texi: Document AES and PCLMUL built-in function.
10394 * doc/invoke.texi: Document -maes and -mpclmul.
10396 2008-04-04 Paolo Bonzini <bonzini@gnu.org>
10398 * function.c (free_after_parsing): Replace with
10399 cxx_push_function_context from C++ front-end.
10400 (allocate_struct_function): Don't call langhook.
10401 * langhooks.h (struct lang_hooks_for_functions): Delete.
10402 (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
10404 * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
10405 (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
10406 LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
10407 LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
10408 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
10409 remove LANG_HOOKS_FUNCTION_INITIALIZER.
10410 * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
10412 * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
10413 Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
10415 2008-04-04 Jakub Jelinek <jakub@redhat.com>
10418 * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
10421 2008-04-04 Richard Guenther <rguenther@suse.de>
10423 PR middle-end/35823
10424 * fold-const.c (optimize_minmax_comparison): Use the correct
10425 type for the constant in the simplified comparison.
10427 2008-04-04 Zuxy Meng <zuxy.meng@gmail.com>
10429 * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
10430 Pass L2 size as "--param l2-cache-size" to the compiler.
10431 (decode_l2_cache): New function to decode L2 cache parameters using
10432 0x8000006 extended cpuid function.
10433 (detect_caches_amd): Determine parameters of L2 cache using
10434 decode_l2_caches function.
10435 (decode_caches_intel): Decode L2 cache parameters.
10436 (detect_caches_intel): Determine L2 cache parameters using
10437 decode_caches_intel and decode_l2_caches functions.
10439 2008-04-03 Bob Wilson <bob.wilson@acm.org>
10441 * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
10442 secondary input reload for subword loads from the constant pool.
10444 2008-04-03 Janis Johnson <janis187@us.ibm.com>
10447 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
10448 constants of the appropriate size for runtime calculations.
10451 * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
10452 decimal-float literal constant zero.
10454 2008-04-03 Jakub Jelinek <jakub@redhat.com>
10457 * c-parser.c (c_parser_omp_atomic): Call
10458 default_function_array_conversion on the RHS.
10460 PR middle-end/35818
10461 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
10462 call is_variable_sized if decl has incomplete type.
10464 2008-04-03 H.J. Lu <hongjiu.lu@intel.com>
10466 * config/i386/i386-protos.h (ix86_aligned_p): Removed.
10468 2008-04-03 Adam Nemet <anemet@caviumnetworks.com>
10470 * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
10472 (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and leu.
10473 (sgt<u>): Merge sgt and sgtu into new expander.
10474 (sgt, sgtu): Remove expanders.
10475 (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new pattern.
10476 (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
10477 (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
10478 *sgtu_<mode>_mips16 into new pattern.
10479 (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
10480 (sge<u>): Merge sge and sgeu into new expander.
10481 (sge, sgeu): Remove expanders.
10482 (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
10484 (*sge_<mode>, second *sge_<mode>): Remove patterns.
10485 (slt<u>): Merge slt and sltu into new expander.
10486 (slt, sltu): Remove expanders.
10487 (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new pattern.
10488 (*slt_<mode>, *sltu_<mode>): Remove patterns.
10489 (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
10490 *sltu_<mode>_mips16 into new pattern.
10491 (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
10492 (sle<u>): Merge sle and sleu into new expander.
10493 (sle, sleu): Remove expanders.
10494 (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new pattern.
10495 (*sle_<mode>, *sleu_<mode>): Remove patterns.
10496 (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
10497 *sleu_<mode>_mips16 into new pattern.
10498 (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
10500 2008-04-03 Jan Hubicka <jh@suse.cz>
10502 PR tree-optimization/35795
10503 * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
10504 * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
10505 * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
10506 * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
10507 * score/score3.c (score3_output_mi_thunk): Likewise.
10508 * score/score7.c (score7_output_mi_thunk): Likewise.
10509 * mips/mips.c (mips_output_mi_thunk): Likewise.
10511 2008-04-03 Richard Guenther <rguenther@suse.de>
10513 * tree-vrp.c (extract_range_from_unary_expr): Handle all
10514 conversions. Simplify code.
10516 2008-04-03 Kaz Kojima <kkojima@gcc.gnu.org>
10518 * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
10520 2008-04-03 Tom Tromey <tromey@redhat.com>
10521 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10523 * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
10524 * config/bfin/t-bfin-linux (generated_files): Add
10525 linux-sysroot-suffix.h.
10526 * doc/install.texi (Prerequisites): Require make 3.80.
10527 * doc/sourcebuild.texi (Front End Directory): Document new
10529 * Makefile.in (generated_files): New variable.
10530 (ALL_HOST_OBJS): New variable.
10531 ($(ALL_HOST_OBJS)): New target.
10533 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
10535 * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
10536 (remap_block): Call id->transform_lang_insert_block instead
10538 (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
10539 Set id.transform_lang_insert_block to NULL.
10540 (clone_body): Move to cp/optimize.c
10541 * tree-inline.h (struct copy_body_data): Change
10542 transform_lang_insert_block to function pointer.
10543 (copy_generic_body, copy_decl_no_change): Export.
10544 * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
10545 * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
10546 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
10548 * c-tree.h (insert_block): Kill.
10549 * c-decl.c (insert_block): Kill.
10551 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
10553 * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
10554 LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
10555 * c-tree.h (c_push_function_context, c_pop_function_context): Remove
10557 * c-decl.c (c_push_function_context, c_pop_function_context): Remove
10558 argument, call {push,pop}_function_context from here.
10559 * c-parser.c: Use c_{push,pop}_function_context.
10561 * function.c (push_function_context_to): Move meat ...
10562 (push_function_context): ... here. Simplify.
10563 * function.c (pop_function_context_from): Move meat ...
10564 (pop_function_context): ... here. Simplify.
10565 * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
10567 * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
10568 LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
10569 (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
10570 * tree.h (push_function_context_to, pop_function_context_from): Remove.
10572 2008-04-03 Ben Elliston <bje@au.ibm.com>
10574 * expmed.c (extract_force_align_mem_bit_field): Remove.
10576 2008-04-03 Richard Guenther <rguenther@suse.de>
10578 PR middle-end/35800
10579 * expr.h (try_casesi): Adjust prototype.
10580 * expr.c (try_casesi): Take fallback label as extra parameter.
10581 Use that for gen_casesi if default_label is NULL.
10582 * stmt.c (expand_case): Pass fallback label to try_casesi,
10583 make sure to fill gaps with a fallback label if default_label
10586 2008-04-03 Dominique d'Humieres <dominiq@lps.ens.fr>
10589 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
10591 2008-04-03 Ben Elliston <bje@au.ibm.com>
10593 * expmed.c (extract_split_bit_field): Remove if (0) code.
10594 * tree-ssa-structalias.c (do_sd_constraint): Likewise.
10595 (do_ds_constraint): Likewise.
10597 2008-04-02 Joseph Myers <joseph@codesourcery.com>
10599 * doc/cppopts.texi (-dU): Document.
10600 * c-common.h (flag_dump_macros): Update comment.
10601 * c-opts.c (handle_OPT_d): Handle -dU.
10602 * c-ppoutput.c (macro_queue, define_queue, undef_queue,
10603 dump_queued_macros, cb_used_define, cb_used_undef): New.
10604 (init_pp_output): Handle -dU.
10605 (cb_line_change): Call dump_queued_macros.
10606 * toplev.c (decode_d_option): Accept -dU as preprocessor option.
10608 2008-04-02 Anatoly Sokolov <aesok@post.ru>
10610 * config/avr/predicates.md (io_address_operand): New predicate.
10611 * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
10612 * config/avr/avr.c (avr_io_address_p): Remove function.
10613 (out_movqi_r_mr): Use 'io_address_operand' predicate instead of
10614 'avr_io_address_p' function.
10615 (out_movhi_r_mr): (Ditto.).
10616 (out_movqi_mr_r): (Ditto.).
10617 (out_movhi_mr_r): (Ditto.).
10618 (avr_address_cost): (Ditto.).
10620 2008-04-02 Uros Bizjak <ubizjak@gmail.com>
10622 * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
10623 Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
10624 in 32bit mode when XMM registers are available to avoid store
10626 (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
10627 corresponding post-reload splitters.
10629 2008-04-02 H.J. Lu <hongjiu.lu@intel.com>
10631 * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
10632 and __builtin_ia32_shufpd. Provide __builtin_ia32_roundsd and
10633 __builtin_ia32_roundss.
10634 (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
10635 __builtin_ia32_shufpd, __builtin_ia32_roundsd and
10636 __builtin_ia32_roundss.
10637 (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
10638 IX86_BUILTIN_SHUFPD here.
10640 2008-04-02 H.J. Lu <hongjiu.lu@intel.com>
10642 * config/i386/i386.md (plogic): New.
10643 (plogicprefix): Likewise.
10645 * config/i386/mmx.md (mmx_<code><mode>3): New.
10646 (mmx_and<mode>3): Removed.
10647 (mmx_ior<mode>3): Likewise.
10648 (mmx_xor<mode>3): Likewise.
10650 * config/i386/sse.md (<code><mode>3): New.
10651 (*<code><mode>3): Likewise.
10652 (*<code><mode>3): Likewise.
10653 (<code><mode>3): Likewise.
10654 (*sse_<code><mode>3): Likewise.
10655 (*sse2_<code><mode>3): Likewise.
10656 (<code>tf3): Likewise.
10657 (*<code>tf3): Likewise.
10658 (and<mode>3): Likewise.
10659 (*and<mode>3): Likewise.
10660 (ior<mode>3): Removed.
10661 (*ior<mode>3): Likewise.
10662 (xor<mode>3): Likewise.
10663 (*xor<mode>3): Likewise.
10664 (*and<mode>3): Likewise.
10665 (*ior<mode>3): Likewise.
10666 (*xor<mode>3): Likewise.
10667 (and<mode>3): Likewise.
10668 (*sse_and<mode>3): Likewise.
10669 (*sse2_and<mode>3): Likewise.
10670 (andtf3): Likewise.
10671 (*andtf3): Likewise.
10672 (ior<mode>3): Likewise.
10673 (*sse_ior<mode>3): Likewise.
10674 (*sse2_ior<mode>3): Likewise.
10675 (iortf3): Likewise.
10676 (*iortf3): Likewise.
10677 (xor<mode>3): Likewise.
10678 (*sse_xor<mode>3): Likewise.
10679 (*sse2_xor<mode>3): Likewise.
10680 (xortf3): Likewise.
10681 (*xortf3): Likewise.
10683 2008-04-02 Richard Guenther <rguenther@suse.de>
10685 PR tree-optimization/14495
10686 PR tree-optimization/34793
10687 * tree-vrp.c (struct switch_update): New structure.
10688 (to_remove_edges, to_update_switch_stmts): New VECs.
10689 (simplify_switch_using_ranges): New function. Remove not taken
10690 case labels and edges.
10691 (simplify_stmt_using_ranges): Call it.
10692 (identify_jump_threads): Mark edges we have queued for removal
10693 so we don't thread them.
10694 (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
10696 * tree-cfg.c (group_case_labels): Deal with missing default label.
10697 (tree_verify_flow_info): Allow missing default label.
10698 * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
10699 (emit_case_nodes): Likewise.
10700 (expand_case): Do not rely on the default label to be present.
10701 * expr.c (try_casesi): Deal with NULL default_label.
10702 (do_tablejump): Likewise.
10704 2008-04-02 Richard Guenther <rguenther@suse.de>
10706 PR tree-optimization/14495
10707 * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
10708 SWITCH_EXPR here ...
10709 (vrp_visit_switch_stmt): ... but here (new function).
10710 (find_case_label_index): New helper function.
10711 (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
10713 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
10715 * fwprop.c: Fix ISO-C99ism.
10717 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
10720 * Makefile.in (objdir): Set it here.
10721 * configure.ac: Not here. Find dynamic linker characteristics.
10722 * exec-tool.in: Use them.
10723 * aclocal.m4: Regenerate.
10724 * configure: Regenerate.
10726 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
10728 * expr.c (expand_var): Delete it.
10729 * expr.h (expand_var): Delete prototype.
10730 * function.c (expand_function_start): Use expand_decl instead.
10731 * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
10734 2008-04-02 Andy Hutchinson <hutchinsonamdy@aim.com>
10736 PR rtl-optimization/35542
10737 * fwprop.c (forward_propagate_and_simplify): Replace
10738 loc_reg_mentioned_in_p with reg_mentioned_p.
10740 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
10742 PR rtl-optimization/35281
10743 * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
10744 (propagate_rtx_1): Handle PR_HANDLE_MEM.
10745 (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
10746 (varying_mem_p): Move above propagate_rtx.
10747 (all_uses_available_at): Do not check MEMs.
10749 2008-04-02 Rafael Espindola <espindola@google.com>
10751 * tree-vrp.c (extract_code_and_val_from_cond): Remove.
10752 (register_edge_assert_for_2): Split the cond argument.
10753 (register_edge_assert_for_1): Adjust for the change in
10754 register_edge_assert_for_2.
10755 (register_edge_assert_for): Split the cond argument.
10756 (find_switch_asserts): Adjust for the change in
10757 register_edge_assert_for.
10759 2008-04-02 Kai Tietz <kai.tietz@onevision.com>
10761 * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
10762 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
10763 offsets for 64-bit mingw.
10764 * config/i386/i386.c (ix86_pass_by_reference): Correct calling
10765 abi for x86_64-pc-mingw.
10767 2008-04-02 Richard Guenther <rguenther@suse.de>
10769 * tree-vrp.c (extract_range_from_assert): Make sure to not
10770 produce range min/max with TREE_OVERFOW set.
10771 If merging a anti-range and a range keep the anti-range if
10772 the range covers all values of the type.
10773 (register_edge_assert_for_2): Only allow sign-changing
10774 conversions in detecting canonical range checks. Also
10775 register an assert for the unsigned name if useful.
10777 PR tree-optimization/35787
10778 * tree-vrp.c (vrp_val_max): New function.
10779 (vrp_val_min): Likewise.
10780 (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
10781 (vrp_val_is_min): Likewise.
10782 (supports_overflow_infinity): Use vrp_val_{min,max}.
10783 (negative_overflow_infinity): Likewise.
10784 (positive_overflow_infinity): Likewise.
10785 (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
10786 (is_positive_overflow_infinity): Likewise.
10787 (is_overflow_infinity): Likewise.
10788 (avoid_overflow_infinity): Use vrp_val_{min,max} and
10789 vrp_val_is_{min,max}.
10790 (set_and_canonicalize_value_range): Canonicalize anti-ranges
10791 to ranges if possible. Avoid empty ranges.
10793 2008-04-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10795 PR middle-end/35705
10796 * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
10797 the expression is a function address.
10799 2008-04-01 George Helffrich <george@gcc.gnu.org>
10801 PR fortran/35154, fortran/23057
10802 * dbxout.c: Emit .stabs debug info for Fortran COMMON block
10803 variables as base symbol name + offset using N_BCOMM/N_ECOMM.
10804 (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
10805 (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
10807 (dbxout_syms): Check for COMMON-based symbol and wrap in
10808 N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
10809 in bracket for efficiency.
10811 * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
10812 using DW_TAG_common_block + member offset.
10813 (add_pubname_string): New function.
10814 (dw_expand_expr): New function to find block name and offset for
10816 (common_check): New function to check whether symbol in Fortran COMMON.
10817 (gen_variable_die): If COMMON, use DW_TAG_common_block.
10819 2008-04-01 Volker Reichelt <v.reichelt@netcologne.de>
10822 * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
10824 2008-04-02 Ben Elliston <bje@au.ibm.com>
10826 * config/v850/v850.md (casesi): Remove if (0) code.
10827 * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
10828 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
10830 2008-04-01 Uros Bizjak <ubizjak@gmail.com>
10832 * config/i386/i386.md (rex64suffix): New mode attribute.
10833 (floathi<mode>2): Disable expander for SSE math.
10834 (*floathi<mode>2_1): New insn insn_and_split pattern.
10835 (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
10836 corresponding post-reload splitters.
10837 (*floathi<mode>2_i387): New macroized insn pattern.
10838 (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
10839 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
10840 insn_and_split pattern.
10841 (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
10842 New macroized instruction patterns and corresponding post-reload
10844 (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
10845 and corresponding post-reload splitters.
10846 (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
10847 New macroized instruction patterns.
10848 (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
10849 macroized instruction patterns and corresponding post-reload splitters.
10850 (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
10851 corresponding post-reload splitters.
10852 (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
10853 New macroized instruction patterns.
10854 (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
10855 corresponding post-reload splitters.
10856 (*floatsi<mode>2_i387): New macroized instruction patterns.
10858 2008-04-01 H.J. Lu <hongjiu.lu@intel.com>
10860 * config/i386/i386.md (smaxmin): New.
10861 (umaxmin): Likewise.
10862 (maxminiprefix): Likewise.
10863 (maxminfprefix): Likewise.
10864 (<code><mode>3): Likewise.
10865 (smin<mode>3): Removed.
10866 (smax<mode>3): Likewise.
10868 * config/i386/mmx.md (mmx_<code>v2sf3): New.
10869 (mmx_<code>v4hi3): Likewise.
10870 (mmx_<code>v8qi3): Likewise.
10871 (mmx_smaxv2sf3): Removed.
10872 (mmx_sminv2sf3): Likewise.
10873 (mmx_umaxv8qi3): Likewise.
10874 (mmx_smaxv4hi3): Likewise.
10875 (mmx_uminv8qi3): Likewise.
10876 (mmx_sminv4hi3): Likewise.
10878 * config/i386/sse.md (<addsub><mode>3): New.
10879 (*<addsub><mode>3): Likewise.
10880 (<sse>_vm<addsub><mode>3): Likewise.
10881 (<maxmin><mode>3): Likewise.
10882 (*<maxmin><mode>3_finite): Likewise.
10883 (*<maxmin><mode>3): Likewise.
10884 (<sse>_vm<maxmin><mode>3): Likewise.
10885 (sse3_h<addsub>v4sf3): Likewise.
10886 (sse3_h<addsub>v2df3): Likewise.
10887 (<maxmin>v16qi3): Likewise.
10888 (*<maxmin>v16qi3): Likewise.
10889 (<maxmin>v8hi3): Likewise.
10890 (*<maxmin>v8hi3): Likewise.
10891 (*sse4_1_<maxmin><mode>3): Likewise.
10892 (*sse4_1_<maxmin><mode>3): Likewise.
10893 (add<mode>3): Removed.
10894 (*add<mode>3): Likewise.
10895 (<sse>_vmadd<mode>3): Likewise.
10896 (sub<mode>3): Likewise.
10897 (*sub<mode>3): Likewise.
10898 (<sse>_vmsub<mode>3): Likewise.
10899 (smin<mode>3): Likewise.
10900 (*smin<mode>3_finite): Likewise.
10901 (*smin<mode>3): Likewise.
10902 (<sse>_vmsmin<mode>3): Likewise.
10903 (smax<mode>3): Likewise.
10904 (*smax<mode>3_finite): Likewise.
10905 (*smax<mode>3): Likewise.
10906 (<sse>_vmsmax<mode>3): Likewise.
10907 (sse3_haddv4sf3): Likewise.
10908 (sse3_haddv2df3): Likewise.
10909 (sse3_hsubv4sf3): Likewise.
10910 (sse3_hsubv2df3): Likewise.
10911 (umaxv16qi3): Likewise.
10912 (*umaxv16qi3): Likewise.
10913 (smaxv8hi3): Likewise.
10914 (*smaxv8hi3): Likewise.
10915 (*sse4_1_smax<mode>3): Likewise.
10916 (*sse4_1_umax<mode>3): Likewise.
10917 (uminv16qi3): Likewise.
10918 (*uminv16qi3): Likewise.
10919 (sminv8hi3): Likewise.
10920 (*sminv8hi3): Likewise.
10921 (*sse4_1_smin<mode>3): Likewise.
10922 (*sse4_1_umin<mode>3): Likewise.
10924 2008-04-01 Rafael Espindola <espindola@google.com>
10926 * tree-cfg.c (verify_expr): remove in_phi.
10927 (verify_stmt): Don't call walk_tree with verify_expr. Use
10928 is_gimple_min_invariant instead of is_gimple_val.
10930 2008-04-01 Joseph Myers <joseph@codesourcery.com>
10932 * doc/include/gpl_v3.texi: Update for manpage generation.
10933 * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
10935 * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
10936 * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
10937 gpl_v3.texi instead of gpl.texi.
10940 2008-04-01 Jakub Jelinek <jakub@redhat.com>
10943 * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
10945 2008-04-01 Rafael Espindola <espindola@google.com>
10947 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
10948 (extract_code_and_val_from_cond): Use
10949 extract_code_and_val_from_cond_with_ops.
10951 2008-04-01 Jan Hubicka <jh@suse.cz>
10953 * function.c (free_after_compilation): Free epilogue_delay_list.
10954 (prepare_function_start): Assert that previous compilation was freed.
10956 2008-04-01 Jan Hubicka <jh@suse.cz>
10957 Jim Wilson <wilson@tuliptree.org>
10958 Andreas Tobler <andreast@gcc.gnu.org>
10960 PR middle-end/35781
10961 * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
10962 rtl.emit instead cfun->emit.
10963 * sparc/sparc.h (INIT_EXPANDERS): Likewise.
10964 * ia64/ia64.h (INIT_EXPANDERS): Likewise.
10966 2008-04-01 Ben Elliston <bje@au.ibm.com>
10968 * doc/c-tree.texi (Function Basics): Fix grammatical error.
10970 2008-03-31 Seongbae Park <seongbae.park@gmail.com>
10972 * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
10974 (fprofile-use): Add var flag_profile_use
10975 * coverage.c (coverage_begin_output): Do not open a gcno file for
10976 output only if -ftest-coverage is set.
10977 Do not add getpwd() to gcda file path.
10978 (build_gcov_info): Check the new flag
10979 flag_profile_datafile_relative_path.
10980 (coverage_init): Use profile_data_prefix.
10981 Read profile counter only if flag_profile_use is set.
10982 * opts.c (common_handle_option): New option fprofile-use=,
10983 fprofile-dir=, fprofile-generate=.
10984 * toplev.c (profile_data_prefix): New variable definition.
10985 * toplev.h (profile_data_prefix): New declaration.
10986 * doc/invoke.tex (Option Summary, Optimization Options):
10989 2008-03-31 James E. Wilson <wilson@tuliptree.org>
10991 * varasm.c (output_constant_pool_1): In LABEL_REF check,
10992 use tmp consistently.
10995 * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
10996 * config/ia64/ia64.c (rtx_needs_barrier): Handle
10997 UNSPEC_FR_RECIP_APPROX_RES.
10998 * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
11000 2008-03-31 Volker Reichelt <v.reichelt@netcologne.de>
11003 * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
11005 2008-03-31 Andrew Pinski <andrew_pinski@playstation.sony.com>
11007 PR middle-end/30186
11008 * fold-const.c (fold_indirect_ref_1): Support accessing non first
11009 element of the vector via a pointer.
11011 2008-03-31 Ian Lance Taylor <iant@google.com>
11013 * tlink.c (scan_linker_output): Look for symbol name in single quotes.
11015 2008-03-31 Jan Hubicka <jh@suse.cz>
11017 * builtins.c (expand_builtin_setjmp_receiver): Update call of
11018 get_arg_pointer_save_area.
11019 * expr.c (init_expr): Just clear out rtl.expr.
11020 * function.c (free_after_compilation): Clear out whole RTL structure.
11021 (get_func_frame_size): Merge into ...
11022 (get_frame_size): ... this one.
11023 (assign_stack_local_1): Merge into ...
11024 (assign_stack_local): ... this one.
11025 (expand_function_end): Update call of get_arg_pointer_save_area.
11026 (get_art_pointer_save_area): Remove cfun argument.
11027 * function.h (emit_status): regno_pointer_align does not need length
11028 attribute. Move x_regno_reg_rtx to ...
11029 (regno_reg_rtx): ... new global array.
11030 (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
11031 (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
11032 apply_args_value, forced_labels, stack_pointer_delta):
11034 (struct varasm_status): Move here from varasm.c
11035 (struct rtl_data): New. Move here some fields from struct function.
11036 (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
11037 frame_offset, stack_check_probe_note, arg_pointer_save_area,
11038 used_temp_slots avail_temp_slots, temp_slot_level,
11039 nonlocal_goto_handler_labels): Update accesstors.
11040 (rtl): New global variable.
11041 (struct function): Move some fileds to rtl_data.
11042 (get_arg_pointer_save_area): Update prototype.
11043 * emit-rtl.c (rtl): Declare.
11044 (regno_reg_rtx): Declare.
11045 (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
11047 (gen_reg_rtx): Update.
11048 (init_virtual_regs): Do not tate emit_status argument.
11049 (init_emit): Do not allocate emit.
11050 * varasm.c (varasm_statuc): Move to function.h.
11051 (n_deferred_constatns): Update accestor.
11052 (init_varasm_status): Do not allocate varasm_status.
11053 (force_const_mem, get_pool_size, output_constant_pool): Update.
11054 * stmt.c (force_label_rtx): Do not use x_ prefixes.
11055 (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
11057 2008-03-31 Zdenek Dvorak <ook@ucw.cz>
11059 PR rtl-optimization/35729
11060 * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
11063 2008-03-31 H.J. Lu <hongjiu.lu@intel.com>
11066 * config/i386/i386.md (*movti_internal): Emit unaligned SSE
11067 load/store if memory is unaligned.
11068 (*movti_rex64): Likewise.
11070 * config/i386/predicates.md (misaligned_operand): New.
11072 2008-03-31 Andrew Pinski <pinskia@gmail.com>
11075 * tree-ssa-phiopt.c (conditional_replacement): Return early for
11078 2008-03-31 Jan Beulich <jbeulich@novell.com>
11080 * config/ia64/constraints.md: Add 'j' constraint.
11081 * config/ia64/ia64.md (movsi_internal): Add addp4 case.
11082 (movdi_internal): Likewise.
11084 2008-03-30 Volker Reichelt <v.reichelt@netcologne.de>
11087 * c-typeck.c (build_c_cast): Skip invalid fields in unions.
11089 2008-03-30 H.J. Lu <hongjiu.lu@intel.com>
11092 * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
11093 proper error message for the third argument on blendpd and
11096 * config/i386/sse.md (blendbits): New.
11097 (sse4_1_blendp<ssemodesuffixf2c>): Use it.
11099 2008-03-30 Eric Botcazou <ebotcazou@adacore.com>
11101 * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
11103 2008-03-30 Richard Guenther <rguenther@suse.de>
11105 PR middle-end/31023
11106 * fold-const.c (fold_sign_changed_comparison): Do leave
11107 conversions to base-types alone.
11109 2008-03-29 Andrew Pinski <andrew_pinski@playstation.sony.com>
11111 * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
11112 the link register if one altivec register is be saved.
11114 2008-03-30 Ben Elliston <bje@au.ibm.com>
11116 * final.c (final_scan_insn): Remove if (0) code.
11118 2008-03-28 Volker Reichelt <v.reichelt@netcologne.de>
11120 * c-parser.c (c_parser_next_token_is_keyword): Simplify.
11122 2008-03-28 H.J. Lu <hongjiu.lu@intel.com>
11124 * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
11125 of V4SFmode to ix86_binary_operator_ok.
11127 2008-03-28 Uros Bizjak <ubizjak@gmail.com>
11129 * config/i386/i386.c (override_options): Initialize
11130 ix86_veclib_handler to ix86_veclibabi_svml when
11131 -mveclibabi=svml is used.
11132 (ix86_veclibabi_svml): New function for SVML ABI style
11133 vectorization support.
11134 * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
11136 2008-03-28 Rafael Espindola <espindola@google.com>
11138 * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
11139 (tree_binary_nonnegative_warnv_p): Make it public.
11140 (tree_single_nonnegative_warnv_p): Make it public.
11141 (tree_invalid_nonnegative_warnv_p): Make it public.
11142 (tree_unary_nonzero_warnv_p): Make it public.
11143 (tree_binary_nonzero_warnv_p): Make it public
11144 (tree_single_nonzero_warnv_p): Make it public.
11145 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
11146 (extract_range_from_binary_expr): Split the expr argument.
11147 (extract_range_from_unary_expr): Split the expr argument.
11148 (extract_range_from_comparison): Split the expr argument.
11149 (extract_range_from_expr): Use the new aux functions.
11150 (vrp_evaluate_conditional_warnv): Use
11151 vrp_evaluate_conditional_warnv_with_ops.
11152 * tree.h (tree_unary_nonzero_warnv_p): Declare.
11153 (tree_binary_nonzero_warnv_p): Declare.
11154 (tree_single_nonzero_warnv_p): Declare.
11155 (tree_expr_nonzero_warnv_p): Declare.
11156 (tree_unary_nonnegative_warnv_p): Declare.
11157 (tree_binary_nonnegative_warnv_p): Declare.
11158 (tree_single_nonnegative_warnv_p): Declare.
11159 (tree_invalid_nonnegative_warnv_p): Declare.
11161 2008-03-28 Richard Guenther <rguenther@suse.de>
11163 PR tree-optimization/30317
11164 PR tree-optimization/30911
11165 PR tree-optimization/34793
11166 * tree-vrp.c (set_and_canonicalize_value_range): New function.
11167 (struct assert_locus_d): New member EXPR.
11168 (register_new_assert_for): Add EXPR parameter to support
11169 ASSERT_EXPR <name, expr OP limit>.
11170 (register_edge_assert_for_1): Adjust callers.
11171 (find_assert_locations): Likewise.
11172 (process_assert_insertions_for): Build condition from expression.
11173 (extract_range_from_assert): Handle ASSERT_EXPRs
11174 of the form ASSERT_EXPR <name, expr OP limit>.
11175 (register_edge_assert_for_2): New helper registering
11176 asserts for comparisons. Recognize range tests of the form
11177 (unsigned)i - CST1 OP CST2.
11178 (register_edge_assert_for_1): Use it.
11179 (register_edge_assert_for): Likewise.
11180 (needs_overflow_infinity): Integer sub-types
11181 do not need overflow infinities.
11182 (vrp_val_is_max): The extreme values of integer sub-types
11183 are those of the base type.
11184 (vrp_val_is_min): Likewise.
11185 * tree.def (ASSERT_EXPR): Document extra allowed conditional
11188 2008-03-28 Nick Clifton <nickc@redhat.com>
11191 * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
11192 Return GENERAL_REGS for stack adjustment reloads.
11194 2008-03-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
11197 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
11198 const_vector when all the vectors are constant.
11200 2008-03-27 Bob Wilson <bob.wilson@acm.org>
11202 * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
11204 * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
11205 (any_scc_sf): Add uneq, unlt, unle and unordered operators.
11207 (s<code>_sf): Use new scc_sf attribute for opcode names.
11209 2008-03-27 Tom Tromey <tromey@redhat.com>
11211 * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
11212 configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
11213 config/spu/t-spu-elf, config/i386/t-interix,
11214 config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
11215 config/i386/x-darwin, config/i386/x-mingw32,
11216 config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
11217 config/sh/t-sh, config/sh/t-symbian, config/x-linux,
11218 config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
11219 config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
11220 config/rs6000/x-rs6000, config/rs6000/x-darwin64,
11221 config/rs6000/x-darwin, config/rs6000/t-rs6000,
11222 config/score/t-score-elf, config/arm/t-strongarm-pe,
11223 config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
11224 config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
11225 Revert automatic dependency patch.
11227 2008-03-27 H.J. Lu <hongjiu.lu@intel.com>
11230 * config/i386/i386.c (ix86_function_arg_boundary): Align
11231 decimal floating point to its natural boundary.
11233 2008-03-27 Richard Guenther <rguenther@suse.de>
11235 PR middle-end/35716
11236 * fold-const.c (fold_comparison): Restrict distinct decl
11237 comparison folding to VAR_DECLs and PARM_DECLs. Do not
11238 solely rely on operand_equal_p.
11240 2008-03-27 Richard Guenther <rguenther@suse.de>
11243 * c-common.c (handle_weak_attribute): Reject combination of
11246 2008-03-27 Richard Guenther <rguenther@suse.de>
11248 PR tree-optimization/32810
11249 * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
11250 conversions from DECL_INITIAL.
11251 (fold_const_aggregate_ref): Likewise from constructor elements.
11253 2008-03-27 Zdenek Dvorak <ook@ucw.cz>
11255 * tree-affine.h (aff_combination_expand): Declare.
11256 (get_inner_reference_aff): Likewise.
11257 * tree-affine.c (aff_combination_expand): Split out from
11258 tree_to_aff_combination_expand.
11259 (get_inner_reference_aff): New function.
11260 * tree-parloops.c (loop_parallel_p): Free vectorizer info.
11261 * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
11262 (struct lim_aux_data): sm_done field removed.
11263 (mem_ref_loc_p, mem_ref_locs_p): New types.
11264 (struct mem_ref): Added id, stored, accesses_in_loop,
11265 indep_loop, dep_loop, indep_ref, dep_ref fields.
11266 Removed is_stored, locs and next fields.
11267 (memory_accesses): New variable.
11268 (movement_possibility): Do not allow moving statements
11269 that store to memory.
11270 (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
11272 (determine_max_movement): For statements with memory references,
11273 find the outermost loop in that the reference is independent.
11274 (move_computations_stmt): Mark the virtual operands for renaming.
11275 (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
11276 gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
11277 vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
11278 add_vop_ref_mapping, create_vop_ref_mapping_loop,
11279 create_vop_ref_mapping, analyze_memory_references,
11280 cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
11281 get_all_locs_in_loop, ref_always_accessed_p,
11282 refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
11283 ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
11284 store_motion_loop, store_motion): New functions.
11285 (struct vop_to_refs_elt): New type.
11286 (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
11287 memref_hash, memref_eq, hoist_memory_references): Rewritten.
11288 (schedule_sm): Replaced by...
11289 (execute_sm): ... this.
11290 (determine_lsm_ref, hoist_memory_references,
11291 loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
11292 find_more_ref_vops, free_mem_ref, free_mem_refs,
11293 determine_lsm_loop, determine_lsm): Removed.
11294 (tree_ssa_lim_finalize): Free data structures used by store motion.
11295 (tree_ssa_lim): Call analyze_memory_references. Use
11296 store_motion instead of determine_lsm.
11298 2008-03-27 Paolo Bonzini <bonzini@gnu.org>
11300 * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
11301 rename tmake_file to m68hc11/t-m68hc11.
11302 (mcore): Set inhibit_libc to true.
11303 * config.host (alpha*-dec-*vms*): Set extra_programs.
11304 (interix3*): Don't use host_xmake_file.
11305 * configure.ac: Let config.gcc override inhibit_libc.
11306 * configure: Regenerate.
11308 * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
11309 * config/t-openbsd-thread: Remove commented out lines.
11311 * config/x-interix: Remove.
11313 * config/m68hc11/t-m68hc11-gas: Rename to...
11314 * config/m68hc11/t-m68hc11: ... this. Remove T_CPPFLAGS.
11316 * config/mcore/t-mcore: Remove T_CFLAGS.
11317 * config/mcore/t-mcore-pe: Likewise.
11319 2008-03-27 Paolo Bonzini <bonzini@gnu.org>
11321 * configure.ac: Replace custom __GNU_SOURCE test with
11322 AC_USE_SYSTEM_EXTENSIONS. Move it earlier.
11323 * aclocal.m4: Regenerate.
11324 * configure: Regenerate.
11325 * config.in: Regenerate.
11327 2008-03-27 Richard Guenther <rguenther@suse.de>
11329 * fold-const.c (target.h): Include.
11330 (fold_comparison): Fold comparison of addresses of decls
11331 that bind locally or of constants. Consolidate address folding code.
11332 * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
11333 results from fold_binary_to_constant.
11334 (compare_values_warnv): Likewise.
11336 2008-03-27 Andrew Pinski <pinskia@gmail.com>
11338 PR middle-end/35429
11339 * fold-const.c (fold_truthop): Check for integeral types when folding
11340 a == 0 && b == 0 and a != 0 || b != 0 .
11342 2008-03-26 Eric Botcazou <ebotcazou@adacore.com>
11344 * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
11346 2008-03-26 Andreas Schwab <schwab@suse.de>
11348 * doc/invoke.texi: Fix use of @item vs. @itemx.
11350 2008-03-26 Tom Tromey <tromey@redhat.com>
11352 * Makefile.in (build/gensupport.o, build/print-rtl.o,
11353 build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
11354 build/genattrtab.o, build/genautomata.o, build/gencheck.o,
11355 build/gencodes.o, build/genconditions.o, build/genconfig.o,
11356 build/genconstants.o, build/genemit.o, build/genextract.o,
11357 build/genflags.o, build/genmddeps.o, build/genopinit.o,
11358 build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
11361 2008-03-26 Richard Guenther <rguenther@suse.de>
11364 2008-03-26 Richard Guenther <rguenther@suse.de>
11366 * fold-const.c (target.h): Include.
11367 (fold_comparison): Fold comparison of addresses of two decls
11368 that bind locally. Consolidate address folding code.
11370 2008-03-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11372 * builtins.c (expand_builtin_pow, fold_builtin_cabs,
11373 fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
11374 fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
11375 dconstsqrt2, dconstthird, dconste and/or dconst10.
11376 * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
11377 * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
11378 dconstsqrt2, dconste): Delete.
11379 (init_emit_once): Likewise. Simplify initializing dconstm1.
11381 * real.c (get_real_const): New.
11382 * real.h (dconst3, dconst10, dconstm2, dconstthird,
11383 dconstsqrt2, dconste): Delete.
11384 (real_value_const, get_real_const): New.
11386 2008-03-26 H.J. Lu <hongjiu.lu@intel.com>
11388 * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
11390 * config/i386/i386.c (ix86_function_arg_boundary): Check
11391 BIGGEST_ALIGNMENT instead of 128.
11392 (setup_incoming_varargs_64): Likewise.
11394 2008-03-26 Tom Tromey <tromey@redhat.com>
11396 * Makefile.in (DEPFILES): Add missing '/'.
11398 2008-03-26 Richard Guenther <rguenther@suse.de>
11400 * fold-const.c (target.h): Include.
11401 (fold_comparison): Fold comparison of addresses of two decls
11402 that bind locally. Consolidate address folding code.
11404 2008-03-26 Nick Clifton <nickc@redhat.com>
11407 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
11408 not allow INT+INT as a legitimate addressing mode.
11410 2008-03-26 Richard Guenther <rguenther@suse.de>
11412 * tree-flow.h (widen_bitfield): Remove declaration.
11413 * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
11414 (widen_bitfield): Remove function.
11415 * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
11418 2008-03-25 Andrew Pinski <andrew_pinski@playstation.sony.com>
11421 * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
11424 2008-03-25 Richard Sandiford <rsandifo@nildram.co.uk>
11426 PR rtl-optimization/35232
11427 * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
11428 (forget_old_reloads_1, forget_marked_reloads): Don't clear
11429 reg_reloaded_call_part_clobbered here.
11430 (reload_regs_reach_end_p): New function.
11431 (reload_reg_rtx_for_input): New variable.
11432 (reload_reg_rtx_for_output): Likewise.
11433 (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
11434 when reassigning a pseudo register. Load reloadreg from
11435 reload_reg_rtx_for_input, moving the mode and register
11437 (do_input_reload): ...here. Use the mode-adjusted reg_rtx
11438 instead of the original when deciding whether an input reload
11439 would be a no-op or whether an output reload can be deleted.
11440 (emit_output_reload_insns): Use the mode-adjusted reg_rtx
11441 when setting up new_spill_reg_store. Load it from
11442 reload_reg_rtx_for_output, moving the mode and register
11444 (do_output_reload): ...here. Use the mode-adjusted reg_rtx
11445 instead of the original when deciding whether an output reload
11446 would be a no-op. Do the same when modifying insn notes.
11447 Use rtx_equal_p instead of == to compare the registers.
11448 (inherit_piecemeal_p): Take a mode and two register numbers
11450 (emit_reload_insns): Clear new_spill_reg_store for every hard
11451 register in the reload register. Remove spill registers
11452 from reg_reloaded_valid before considering whether to record
11453 inheritance information for them. Use reload_reg_rtx_for_output
11454 instead of reg_rtx when recording output reloads. Use
11455 reload_reg_rtx_for_input instead of reg_rtx when recording
11456 input reloads. Set or clear reg_reloaded_call_part_clobbered
11457 at the same time as setting reg_reloaded_valid.
11458 (delete_output_reload): Add a new_reload_reg parameter and use it
11459 instead of rld[j].reg_rtx.
11460 (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
11463 2008-03-25 Tom Tromey <tromey@redhat.com>
11465 * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
11466 (build/genattr.o): Likewise.
11467 (build/genattrtab.o): Likewise.
11468 (build/gencodes.o): Likewise.
11469 (build/genconfig.o): Likewise.
11470 (build/genconstants.o): Likewise.
11471 (build/genemit.o): Likewise.
11472 (build/genextract.o): Likewise.
11473 (build/genflags.o): Likewise.
11475 2008-03-25 Bob Wilson <bob.wilson@acm.org>
11477 * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
11478 instead of size_int for integer types.
11479 (xtensa_gimplify_va_arg_expr): Likewise. Convert index to sizetype
11480 to match type of MINUS_EXPR.
11482 2008-03-25 Tom Tromey <tromey@redhat.com>
11484 * configure: Rebuilt.
11485 * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
11488 2008-03-25 Tom Tromey <tromey@redhat.com>
11490 * config/x-solaris (host-solaris.o): Update.
11491 * config/x-linux (host-linux.o): Update.
11492 * config/x-hpux (host-hpux.o): Update.
11493 * config/x-darwin (host-darwin.o): Update.
11494 * config/v850/t-v850e (v850-c.o): Update.
11495 * config/v850/t-v850 (v850-c.o): Update.
11496 * config/t-vxworks (vxworks.o): Update.
11497 * config/t-sol2 (sol2-c.o, sol2.o): Update.
11498 * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
11499 * config/spu/t-spu-elf (spu-c.o): Update.
11501 * config/sh/t-symbian (sh-c.o): Update.
11502 (symbian.o): Update.
11503 * config/sh/t-sh (sh-c.o): Update.
11504 * config/score/t-score-elf (score7.o, score3.o): Update.
11505 * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
11506 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
11507 * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
11508 * config/rs6000/t-rs6000 (rs6000-c.o): Update.
11509 (rs6000.o): Remove.
11510 * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
11511 * config/m32c/t-m32c (m32c-pragma.o): Update.
11512 * config/ia64/t-ia64 (ia64-c.o): Update.
11513 * config/i386/x-mingw32 (host-mingw32.o): Update.
11514 * config/i386/x-i386 (driver-i386.o): Update.
11515 * config/i386/x-darwin (host-i386-darwin.o): Update.
11516 * config/i386/x-cygwin (host-cygwin.o): Update.
11517 * config/i386/t-nwld (nwld.o): Update.
11518 * config/i386/t-netware (netware.o): Update.
11519 * config/i386/t-interix (winnt.o): Update.
11520 * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
11521 * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
11522 msformat-c.o): Update.
11523 * config/bfin/t-bfin-linux (generated_files): Add
11524 linux-sysroot-suffix.h.
11525 * config/arm/t-wince-pe (pe.o): Update.
11526 * config/arm/t-strongarm-pe (pe.o): Update.
11527 * config/arm/t-pe (pe.o): Update.
11528 * config/arm/t-arm (arm-c.o): Update.
11529 * doc/install.texi (Prerequisites): Require make 3.80.
11530 * Makefile.in: Remove .o targets.
11531 (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
11532 (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
11533 (simple_generated_h, simple_generated_c): Move earlier.
11534 (generated_files): New variable.
11535 (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
11536 TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
11537 BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
11538 ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
11539 REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
11540 CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
11541 CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
11542 INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
11543 PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
11544 TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
11545 DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
11546 VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
11548 (COMPILE.base, COMPILE): New variables.
11549 (%.o): New pattern rule.
11550 (ALL_HOST_OBJS): New variable.
11551 (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
11552 (dummy-checksum.o, cc1-checksum.o): Remove.
11553 (DRIVER_SHLIB): New variable.
11554 (DRIVER_DEFINES): Use it.
11555 (gencondmd.c): Move out of build/.
11556 (s-conditions): Update.
11557 (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
11558 (ALL_BUILD_OBJS): Likewise.
11559 (build/%.o): Use BUILDCOMPILE.
11560 (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
11561 build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
11562 build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
11563 build/gencheck.o, build/gencodes.o, build/genconditions.o,
11564 build/genconfig.o, build/genconstants.o, build/genemit.o,
11565 build/genextract.o, build/genflags.o, build/genmddeps.o,
11566 build/genopinit.o, build/genoutput.o, build/genpeep.o,
11567 build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
11568 build/gen-protos.o, build/scan.o, build/fix-header.o,
11569 build/scan-decls.o): Simplify.
11570 (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
11571 cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
11572 prefix.o, toplev.o): Reduce to variable setting.
11573 (libbackend.o): Use COMPILE. Remove most dependencies. Move later.
11574 ($(out_object_file), gcc-options.o): New targets.
11575 ($(ALL_HOST_OBJS)): New target. Include dependency files.
11576 * configure: Rebuilt.
11577 * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
11578 * doc/sourcebuild.texi (Front End Directory): Document new variable.
11580 2008-03-25 Douglas Gregor <doug.gregor@gmail.com>
11582 * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
11583 complain when we hit an error, return ERROR_MARK_NODE.
11585 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
11587 * config/sh/constraints.md (Pso, Psz): New constraints.
11588 * config/sh/sh.c (print_operand): Add %V and %W operand codes.
11589 * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
11591 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
11593 * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
11594 * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
11596 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
11598 * config/sh/sh.md (prefetch): Add condition for SH2A target.
11599 (prefetch_sh2a): New.
11601 2008-03-25 Jayant Sonar <Jayant.sonar@kpitcummins.com>
11602 Naveen.H.S <naveen.hs@kpitcummins.com>
11604 * config/sh/constraints.md (I28): New constraint.
11605 * config/sh/sh.c (broken_move): Add support for movi20s.
11606 * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
11608 2008-03-25 Anil Paranjape <anil.paranjape@kpitcummins.com>
11609 Jayant Sonar <Jayant.sonar@kpitcummins.com>
11610 Naveen.H.S <naveen.hs@kpitcummins.com>
11612 * config/sh/sh.c (SH_ATTRIBUTES): Define.
11613 (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
11614 (print_operand): Handle resbank in %@ operand code.
11615 (sh_encode_section_info): New.
11616 (push_regs): Add conditions for resbank.
11617 (sh_expand_epilogue): Likewise.
11618 (sh_insert_attributes): Likewise.
11619 (sh_attribute_table): Likewise.
11620 (sh_handle_resbank_handler_attribute): New.
11621 (sh2a_handle_function_vector_handler_attribute): New.
11622 (sh2a_is_function_vector_call): New.
11623 (sh2a_get_function_vector_number): New.
11624 (sh2a_function_vector_p): New.
11625 (sh_cfun_resbank_handler_p): New.
11626 * config/sh/sh.md (calli): Emit jsr/n if possible.
11627 (calli_tbr_rel): New.
11628 (calli_pcrel): Emit jsr/n if possible.
11629 (return_i): Emit rts/n if possible.
11630 (call_valuei_tbr_rel): New.
11631 (call_valuei_pcrel): Add condition for SH2A target.
11632 (call_value): Likewise.
11633 * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
11634 (sh2a_get_function_vector_number): Likewise.
11635 (sh2a_is_function_vector_call): Likewise.
11636 * doc/extend.texi: Document TBR relative addressing of SH2A.
11637 (resbank): Add description for SH2A.
11639 2008-03-24 Richard Guenther <rguenther@suse.de>
11642 * gimplify.c (gimplify_modify_expr): For frontend type-correct
11643 pointer assignments change conversions according to middle-end rules.
11644 (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
11645 * configure.ac: Include type checking in yes.
11646 * configure: Regenerate.
11648 2008-03-24 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
11650 * diagnostic.c (diagnostic_count_diagnostic): Delete.
11651 (diagnostic_report_diagnostic): Update. Handle ICEs here.
11653 2008-03-24 Nathan Sidwell <nathan@codesourcery.com>
11655 * gthr-vxworks.h (UNUSED): Define.
11657 2008-03-23 H.J. Lu <hongjiu.lu@intel.com>
11659 * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
11661 2008-03-23 Zuxy Meng <zuxy.meng@gmail.com>
11663 * doc/extend.texi (Function Attributes): Add missing comma in the
11664 example of the "alloc_size" attribute.
11666 2008-03-23 Uros Bizjak <ubizjak@gmail.com>
11669 2008-03-05 H.J. Lu <hongjiu.lu@intel.com>
11671 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
11674 2008-03-19 Uros Bizjak <ubizjak@gmail.com>
11677 * stor-layout.c (update_alignment_for_field): Set minimum alignment
11678 of the underlying type of a MS bitfield layout to the natural
11679 alignment of the type.
11681 2008-03-22 Uros Bizjak <ubizjak@gmail.com>
11683 * config/i386/i386.c (assign_386_stack_local): Align DImode slots
11684 to their natural alignment to avoid store forwarding stalls.
11686 2008-03-22 Richard Guenther <rguenther@suse.de>
11688 * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
11689 For PHI nodes verify the address is invariant.
11690 * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
11691 (get_symbol_constant_value): Use is_gimple_min_invariant.
11692 (maybe_fold_stmt_indirect): Likewise.
11694 2008-03-22 Richard Sandiford <rsandifo@nildram.co.uk>
11696 PR rtl-optimization/33927
11697 * Makefile.in (dse.o): Depend on $(TM_P_H).
11698 * expr.h (extract_low_bits): Declare.
11699 * expmed.c (extract_low_bits): New function.
11700 * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
11701 * dse.c: Include tm_p.h.
11702 (find_shift_sequence): Remove the read_reg argument and return the
11703 read value. Emit the instructions instead of returning them.
11704 Iterate on new_mode rather than calculating it each time.
11705 Check MODES_TIEABLE_P. Use simplify_gen_subreg to convert the
11706 source to NEW_MODE and extract_low_bits to convert the shifted
11707 value to READ_MODE.
11708 (replace_read): Allow the load and store to have different mode
11709 classes. Use extract_low_bits when SHIFT == 0. Create the shift
11710 or extraction instructions before trying the replacement. Update
11711 dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
11713 2008-03-22 Uros Bizjak <ubizjak@gmail.com>
11715 * config/i386/i386.c (assign_386_stack_local): Align DImode slots
11716 to their natural alignment to avoid store forwarding stalls.
11718 2008-03-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
11721 * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
11722 encouraging but not allowing gprs for input;
11723 change the input constraint to !f#r.
11724 (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
11726 change the output constraint to !f#r.
11728 2008-03-21 Uros Bizjak <ubizjak@gmail.com>
11731 * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
11732 corresponding post-reload splitters.
11733 ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
11734 when x87 FP math is selected.
11735 * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
11736 New function prototype.
11737 * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
11738 unreachable function to ease macroization of insn patterns.
11740 2008-03-21 Martin Jambor <mjambor@suse.cz>
11742 * tree-data-ref.c (dump_data_dependence_relation): Avoid data
11743 reference dumps if ddr is NULL or dependence is unknown.
11745 2008-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
11747 * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
11748 unsigned extension into account.
11749 (ATOMIC_COMPARE_AND_SWAP): Likewise.
11750 (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
11751 Do computations on a scratch register.
11753 2008-03-21 Richard Guenther <rguenther@suse.de>
11755 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
11756 Use is_gimple_min_invariant instead of TREE_INVARIANT.
11757 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
11758 * tree-ssa-dom.c (record_equality): Likewise.
11759 * tree-inline.c (copy_body_r): Likewise.
11760 * tree-ssa-pre.c (make_values_for_stmt): Remove test for
11763 2008-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
11765 * config/sh/sh.c (split_branches): Pass zero to redirect_jump
11766 as 'delete_unused' argument.
11768 2008-03-20 Richard Guenther <rguenther@suse.de>
11770 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
11771 special casing of constant qualifiers.
11772 * tree-ssa.c (useless_type_conversion_p_1): Instead do not
11773 care about them in general.
11774 * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
11775 regardless of their type.
11776 (fold_stmt_r): Forcefully fold *& if we end up with that.
11778 2008-03-20 Paul Brook <paul@codesourcery.com>
11780 * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
11781 * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
11783 * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
11785 (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
11786 * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
11788 2008-03-20 Volker Reichelt <v.reichelt@netcologne.de>
11790 * common.opt (Wmudflap): New option.
11791 * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
11792 (mx_register_decls): Likewise.
11793 (mudflap_finish_file): Likewise.
11794 * doc/invoke.texi: Document -Wno-mudflap.
11796 2008-03-20 Kai Tietz <kai.tietz@onevision.com>
11798 * c-format.c (replace_format_name_to_system_name): New.
11799 (cmp_attribs): New.
11800 (convert_format_name_to_system_name): New.
11801 (decode_format_attr): Add use of convert_format_name_to_system_name.
11802 (format_types_orig): Add gnu_ prefix to names.
11803 (check_format_info_main): Special treating of \0 escaped names for
11804 supporting multi-character format specifiers as I32, I64.
11805 (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
11806 (gnu_target_overrides_format_attributes): New.
11807 * c-format.h: Add structure target_ovr_attr to hold
11808 system specific formatter names.
11809 * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
11810 msformat-c.o file to c_target_objs and cxx_target_objs.
11811 * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
11812 (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
11813 (TARGET_N_FORMAT_TYPES): New.
11814 * config/i386/msformat-c.c: New.
11815 * config/i386/t-cygming: Add build rule for msformat-c.o.
11816 * doc/extend.texi: Add new format names gnu_* and ms_* and
11818 * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
11820 2008-03-20 Ira Rosen <irar@il.ibm.com>
11822 * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
11823 optimizations turned on under -O3.
11824 (ftree-vectorize): Add that the flag is turned on with -O3.
11826 2008-03-20 Ben Elliston <bje@au.ibm.com>
11828 * regmove.c (try_auto_increment): Fix spelling error in comment.
11829 * final.c (final_scan_insn): Likewise.
11831 2008-03-20 Uros Bizjak <ubizjak@gmail.com>
11834 * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
11835 allocator preferences for "y" and "r" class registers.
11836 ("*mov<mode>_internal"): Ditto.
11837 ("*movv2sf_internal_rex64"): Ditto.
11838 ("*movv2sf_internal"): Ditto.
11840 2008-03-19 Michael Matz <matz@suse.de>
11842 PR middle-end/35616
11843 * calls.c (expand_call): Check overlap of arguments with call
11844 address for sibcalls.
11846 2008-03-19 Uros Bizjak <ubizjak@gmail.com>
11849 * stor-layout.c (update_alignment_for_field): Set minimum alignment
11850 of the underlying type of a MS bitfield layout to the natural
11851 alignment of the type.
11853 2008-03-19 Jan Hubicka <jh@suse.cz>
11856 * toplev.c (decode_d_option): Handle all CPP flags.
11857 * tree-vrp.c: Update tree_pass descriptors.
11858 * regrename.c: Update tree_pass descriptors.
11859 * fwprop.c: Update tree_pass descriptors.
11860 * doc/invoke.texi: Remove documentation of dropped -d? flags.
11861 * tree-into-ssa.c: Update tree_pass descriptors.
11862 * tree-dump.c: Update tree_pass descriptors.
11863 * tree-complex.c: Update tree_pass descriptors.
11864 * tree-dump.h: Update tree_pass descriptors.
11865 * see.c: Update tree_pass descriptors.
11866 * cgraphbuild.c: Update tree_pass descriptors.
11867 * tracer.c: Update tree_pass descriptors.
11868 * tree-loop-distribution.c: Update tree_pass descriptors.
11869 * cgraph.c: Update tree_pass descriptors.
11870 * postreload-gcse.c: Update tree_pass descriptors.
11871 * postreload.c: Update tree_pass descriptors.
11872 * tree-ssa-loop-ch.c: Update tree_pass descriptors.
11873 * tree-tailcall.c: Update tree_pass descriptors.
11874 * tree-pass.h (tree_opt_pass): Rename to ...
11875 (opt_pass) ... this one; add "type" field and remove letter field.
11876 (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
11877 (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
11878 all_lowering_passes): Update declaration.
11879 * ipa-cp.c: Update tree_pass descriptors.
11880 * final.c: Update tree_pass descriptors.
11881 * omp-low.c: Update tree_pass descriptors.
11882 * tree-ssa-dse.c: Update tree_pass descriptors.
11883 * ipa-reference.c: Update tree_pass descriptors.
11884 * tree-ssa-uncprop.c: Update tree_pass descriptors.
11885 * auto-inc-dec.c: Update tree_pass descriptors.
11886 * reorg.c: Update tree_pass descriptors.
11887 * cgraphunit.c: Update tree_pass descriptors.
11888 * tree-ssa-copyrename.c: Update tree_pass descriptors.
11889 * tree-ssa-ccp.c: Update tree_pass descriptors.
11890 * df-core.c: Update tree_pass descriptors.
11891 * mode-switching.c: Update tree_pass descriptors.
11892 * tree-nomudflap.c: Update tree_pass descriptors.
11893 * modulo-sched.c: Update tree_pass descriptors.
11894 * ipa-pure-const.c: Update tree_pass descriptors.
11895 * cse.c: Update tree_pass descriptors.
11896 * web.c: Update tree_pass descriptors.
11897 * tree-stdarg.c: Update tree_pass descriptors.
11898 * tree-ssa-math-opts.c: Update tree_pass descriptors.
11899 * tree-ssa-dom.c: Update tree_pass descriptors.
11900 * tree-nrv.c: Update tree_pass descriptors.
11901 * tree-ssa-alias.c: Update tree_pass descriptors.
11902 * loop-init.c: Update tree_pass descriptors.
11903 * gimple-low.c: Update tree_pass descriptors.
11904 * ipa-inline.c: Update tree_pass descriptors.
11905 * tree-ssa-sink.c: Update tree_pass descriptors.
11906 * global.c: Update tree_pass descriptors.
11907 * ifcvt.c: Update tree_pass descriptors.
11908 * jump.c: Update tree_pass descriptors.
11909 * predict.c: Update tree_pass descriptors.
11910 * tree-ssa-loop.c: Update tree_pass descriptors.
11911 * recog.c: Update tree_pass descriptors.
11912 * dse.c: Update tree_pass descriptors.
11913 * tree-ssa-ifcombine.c: Update tree_pass descriptors.
11914 * tree-eh.c: Update tree_pass descriptors.
11915 * regmove.c: Update tree_pass descriptors.
11917 * function.c: Update tree_pass descriptors.
11918 * tree-vectorizer.c: Update tree_pass descriptors.
11919 * gcse.c: Update tree_pass descriptors.
11920 * ipa-type-escape.c: Update tree_pass descriptors.
11921 * tree-if-conv.c: Update tree_pass descriptors.
11922 * init-regs.c: Update tree_pass descriptors.
11923 * ipa.c: Update tree_pass descriptors.
11924 * tree-ssa-phiopt.c: Update tree_pass descriptors.
11925 * rtl-factoring.c: Update tree_pass descriptors.
11926 * lower-subreg.c: Update tree_pass descriptors.
11927 * bt-load.c: Update tree_pass descriptors.
11928 * tree-dfa.c: Update tree_pass descriptors.
11929 * except.c: Update tree_pass descriptors.
11930 * emit-rtl.c: Update tree_pass descriptors.
11931 * cfgexpand.c: Update tree_pass descriptors.
11932 * tree-cfgcleanup.c: Update tree_pass descriptors.
11933 * cfgcleanup.c: Update tree_pass descriptors.
11934 * tree-ssa-pre.c: Update tree_pass descriptors.
11935 * tree-sra.c: Update tree_pass descriptors.
11936 * tree-mudflap.c: Update tree_pass descriptors.
11937 * tree-ssa-copy.c: Update tree_pass descriptors.
11938 * cfglayout.c: Update tree_pass descriptors.
11939 * tree-ssa-forwprop.c: Update tree_pass descriptors.
11940 * tree-ssa-dce.c: Update tree_pass descriptors.
11941 * tree-ssa.c: Update tree_pass descriptors.
11942 * regclass.c: Update tree_pass descriptors.
11943 * integrate.c: Update tree_pass descriptors.
11944 * tree-optimize.c: Update tree_pass descriptors.
11945 * tree-ssa-phiprop.c: Update tree_pass descriptors.
11946 * tree-object-size.c: Update tree_pass descriptors.
11947 * combine.c: Update tree_pass descriptors.
11948 * tree-outof-ssa.c: Update tree_pass descriptors.
11949 * bb-reorder.c: Update tree_pass descriptors.
11950 * stack-ptr-mod.c: Update tree_pass descriptors.
11951 * var-tracking.c: Update tree_pass descriptors.
11952 * tree-profile.c: Update tree_pass descriptors.
11953 * tree-vect-generic.c: Update tree_pass descriptors.
11954 * reg-stack.c: Update tree_pass descriptors.
11955 * sched-rgn.c: Update tree_pass descriptors.
11956 * tree-ssa-structalias.c: Update tree_pass descriptors.
11957 * tree-cfg.c: Update tree_pass descriptors.
11958 * passes.c (current_pass): Update declaration.
11959 (finish_optimization_passes): Update.
11960 (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
11961 (register_one_dump_file, register_dump_files_1, next_pass_1):
11963 (init_optimization_passes): Update handling of new types.
11964 (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
11965 * ipa-struct-reorg.c: Update tree_pass descriptors.
11966 * tree-ssa-reassoc.c: Update tree_pass descriptors.
11967 * combine-stack-adj.c: Update tree_pass descriptors.
11968 * cfgrtl.c: Update tree_pass descriptors.
11969 * dce.c: Update tree_pass descriptors.
11970 * tree-ssanames.c: Update tree_pass descriptors.
11972 2008-03-19 Richard Guenther <rguenther@suse.de>
11974 PR middle-end/35609
11975 * tree-ssa.c (walk_data): New structure.
11976 (warn_uninitialized_var): If not always_executed warn with "maybe"
11978 (execute_early_warn_uninitialized): Compute post-dominators.
11979 Initialize always_executed before processing each basic block.
11981 2008-03-18 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
11984 * config/i386/i386.c (x86_this_parameter): Calculate correct location
11985 of "this" pointer when "regparm = N" or "fastcall" is in effect.
11987 2008-03-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11989 * doc/include/texinfo.tex: Update to version 2008-03-17.10.
11991 2008-03-18 Paolo Bonzini <bonzini@gnu.org>
11993 * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
11995 (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
11996 (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
11997 is true. Add "&& !ignore" condition to reduce_bit_field. Modify
11998 target after ignore has been set, and move there also the commputation
11999 of subtarget and original_target.
12000 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
12001 (LANG_HOOKS_INITIALIZER): Remove it.
12002 * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
12004 2008-03-18 Richard Guenther <rguenther@suse.de>
12006 * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
12007 found an expression with constants, note that in the VN for the lhs.
12008 * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
12009 fold them to constants if possible. Run cleanup_cfg if done so.
12010 (execute_pre): Return todo.
12011 (do_pre): Likewise.
12012 (execute_fre): Likewise.
12013 * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
12015 (get_prop_source_stmt): Look through pointer conversions.
12017 2008-03-18 Jan Hubicka <jh@suse.cz>
12019 * tree-pretty-print.c: Include predict.h.
12020 (dump_generic_node): Dump predictor.
12021 * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
12022 * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
12023 * gimple-low.c (lower_stmt): Likewise.
12024 * expr.c (expand_expr_real): Likewise.
12025 * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
12027 (build_predict_expr, build_predict_expr): New.
12028 * predict.h (predictor_name, build_predict_expr): Update.
12029 * c-typeck.c (c_finish_bc_stmt): Add prediction.
12030 * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
12031 * predict.def (PRED_CONTINUE): Update hitrate.
12032 * tree.def (PREDICT_EXPR): Define.
12033 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
12034 do not handle BIND_EXPR.
12035 * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
12036 * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
12037 * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
12040 2008-03-18 Michael Matz <matz@suse.de>
12042 * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
12044 2008-03-18 Richard Guenther <rguenther@suse.de>
12046 * tree-gimple.h (is_gimple_invariant_address): Declare.
12047 (is_gimple_constant): Likewise.
12048 * tree-gimple.c (is_gimple_constant): New function.
12049 (is_gimple_invariant_address): Likewise.
12050 (is_gimple_min_invariant): Implement in terms of is_gimple_constant
12051 and is_gimple_invariant_address.
12052 * tree-ssa-loop-niter.c (expand_simple_operations): Revert
12054 * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
12055 an addressable base.
12057 2008-03-18 Jakub Jelinek <jakub@redhat.com>
12059 PR middle-end/35611
12060 * gimplify.c (gimplify_expr): Gimplify second operand of
12063 2008-03-17 Richard Guenther <rguenther@suse.de>
12065 PR tree-optimization/19637
12066 * fold-const.c (fold_unary): Remove restrictions of removing
12067 intermediate pointer-conversions (P2)(P1)P0.
12068 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
12069 conversion to void pointer.
12070 (get_maxval_strlen): Handle addresses of the form &(*p)[0].
12072 2008-03-16 James E. Wilson <wilson@tuliptree.org>
12075 * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
12076 emulated thread local variables.
12078 2008-03-16 Richard Guenther <rguenther@suse.de>
12080 PR middle-end/35607
12081 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
12082 expand TREE_INVARIANT operations that are not gimple invariant.
12084 2008-03-16 Hans-Peter Nilsson <hp@axis.com>
12086 * doc/extend.texi (Alignment): Say that the ABI controls
12087 the __alignof__ for non-strict-alignment targets rather
12088 than being a recommendation.
12090 2008-03-15 Paul Brook <paul@codesourcery.com>
12092 * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
12094 (arm_output_fn_unwind): Mark functions that can not be unwound.
12096 2008-03-15 Paul Brook <paul@codesourcery.com>
12098 * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
12099 extension instructions.
12101 2008-03-15 Richard Guenther <rguenther@suse.de>
12103 * tree-ssa-ccp.c (ccp_fold): Also read from constant values
12104 and fold constant aggregate refs.
12105 (fold_const_aggregate_ref): Handle string constants
12106 and constructors in ARRAY_REFs. Handle INDIRECT_REF.
12107 (evaluate_stmt): Simplify now that ccp_fold folds constant
12110 2008-03-15 Paul Brook <paul@codesourcery.com>
12112 * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
12113 (extzv): Use gen_extzv_t2.
12114 (insv_t2, insv_zero, extv, extzv_t2): New patterns.
12116 2008-03-15 Richard Guenther <rguenther@suse.de>
12118 * tree-ssa-ccp.c (get_symbol_constant_value): Export.
12119 (fold_const_aggregate_ref): Likewise.
12120 (get_value): Return NULL if we don't have any values.
12121 (ccp_finalize): Set const_val to NULL after freeing it.
12122 * tree-flow.h (get_symbol_constant_value): Declare.
12123 (fold_const_aggregate_ref): Likewise.
12124 * tree-ssa-sccvn.c (try_to_simplify): Use them.
12126 2008-03-15 Richard Guenther <rguenther@suse.de>
12128 PR middle-end/35593
12129 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
12130 to not produce negative array indices if not allowed. Add
12131 parameter to indicate that.
12132 (maybe_fold_offset_to_component_ref): Allow negative array
12133 indices only for the first member of a structure.
12134 (maybe_fold_offset_to_reference): Allow negative array indices.
12135 (maybe_fold_stmt_addition): Likewise.
12137 2008-03-15 Bjoern Haase <bjoern.m.haase@web.de>
12138 Anatoly Sokolov <aesok@post.ru>
12140 * config/avr/avr.c (avr_arch_types): Add avr6 entry.
12141 (avr_arch): Add ARCH_AVR6.
12142 (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
12143 (initial_elimination_offset): Initialize and use 'avr_pc_size'
12144 instead of fixed value 2.
12145 (print_operand_address): Use gs() asm specifier instead of pm().
12146 (avr_assemble_integer): (Ditto.).
12147 (avr_output_addr_vec_elt): (Ditto.).
12148 (print_operand): Handle "!" code.
12149 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add
12150 __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
12151 (AVR_HAVE_EIJMP_EICALL): Define.
12152 (AVR_3_BYTE_PC): Redefine.
12153 (AVR_2_BYTE_PC): (Ditto.).
12154 (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
12155 (LINK_SPEC): Add atmega2560 and atmega2561.
12156 (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561
12158 * config/avr/avr.md (call_insn): Use eicall instead of icall
12159 for 3 byte PC devices.
12160 (call_value_insn): (Ditto.).
12161 (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
12162 (indirect_jump): Use only for for 2 byte PC devices.
12163 (*tablejump): (Ditto.).
12164 (*indirect_jump_avr6): Add insn.
12165 (*tablejump_rjmp): Don't use for 3 byte PC devices.
12166 * config/avr/libgcc.S (__prologue_saves__): Use eijmp
12167 instead of ijmp for 3 byte PC devices.
12168 (__tablejump2__): (Ditto.).
12169 * config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
12170 (MULITLIB_DIRNAMES): (Ditto.).
12171 (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
12173 2008-03-15 Uros Bizjak <ubizjak@gmail.com>
12175 * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
12176 "sse2_umulsidi3". Use V1DI mode for operand 0.
12177 ("mmx_psadbw"): Use V1DI mode for operand 0.
12178 * config/i386/i386-modes.def (V1SI): New vector mode.
12179 * config/i386/i386.c (struct builtin_description)
12180 [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
12181 (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
12182 (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
12183 (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
12184 v1di_ftype_v8qi_v8qi type.
12185 [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
12187 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
12188 __builtin_ia32_pmuludq]: Fix the mode of return value.
12190 2008-03-15 Richard Guenther <rguenther@suse.de>
12192 PR middle-end/35595
12193 * tree-ssa-pre.c (bitmap_find_leader): Handle expression
12196 2008-03-14 Bob Wilson <bob.wilson@acm.org>
12198 * doc/invoke.texi (Option Summary, Xtensa Options): Document
12199 -mserialize-volatile and -mno-serialize-volatile Xtensa options.
12200 * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
12201 unless TARGET_SERIALIZE_VOLATILE is enabled.
12202 * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
12203 * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
12204 * config/xtensa/xtensa.opt (mserialize_volatile): New option.
12206 2008-03-14 Richard Guenther <rguenther@suse.de>
12208 PR tree-optimization/34172
12209 * tree-flow.h (refs_may_alias_p): Declare.
12210 (get_single_def_stmt): Likewise.
12211 (get_single_def_stmt_from_phi): Likewise.
12212 (get_single_def_stmt_with_phi): Likewise.
12213 * tree-dfa.c (refs_may_alias_p): New function.
12214 (get_single_def_stmt): Likewise.
12215 (get_single_def_stmt_from_phi): Likewise.
12216 (get_single_def_stmt_with_phi): Likewise.
12217 * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
12218 (vn_reference_lookup_1): New helper function.
12219 (vn_reference_lookup): Walk the virtual use-def chain to
12220 continue searching for a match if the def does not alias the
12221 reference we are looking for.
12223 2008-03-14 David Edelsohn <edelsohn@gnu.org>
12225 * doc/install.texi (Binaries): Remove UCLA archive. Add HVCC
12226 archive and Perzl. Update The Written Word listing.
12228 2008-03-14 Richard Guenther <rguenther@suse.de>
12230 PR tree-optimization/34043
12231 PR tree-optimization/33989
12232 * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
12234 (bitmap_find_leader): Use extra argument to verify dominance
12235 relationship inside a basic-block.
12236 (can_PRE_operation): Add VIEW_CONVERT_EXPR.
12237 (find_leader_in_sets): Adjust.
12238 (create_component_ref_by_pieces): Take extra argument for
12239 dominance check, handle lookup failures.
12240 (find_or_generate_expression): Likewise.
12241 (create_expression_by_pieces): Likewise.
12242 (insert_into_preds_of_block): Adjust.
12243 (create_value_expr_from): If asked for, verify all operands
12244 are in the blocks AVAIL_OUT set.
12245 (make_values_for_stmt): Check for SSA_NAMEs that are life
12246 over an abnormal edge.
12247 (compute_avail): Remove such check.
12248 (do_SCCVN_insertion): New function.
12249 (eliminate): If we do not find a leader suitable for replacement
12250 insert a replacement expression from SCCVN if available.
12251 * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
12252 (struct vn_ssa_aux): Add needs_insertion flag.
12253 * tree-ssa-sccvn.c (may_insert): New global flag.
12254 (copy_reference_ops_from_ref): Value-number union member access
12255 based on its size, not type and member if insertion is allowed.
12256 (visit_reference_op_load): For a weak match from union type
12257 punning lookup a view-converted value and insert a SSA_NAME
12258 for that value if that is not found.
12259 (visit_use): Make dumps shorter. Do not disallow value numbering
12260 SSA_NAMEs that are life over an abnormal edge to constants.
12261 (free_scc_vn): Release inserted SSA_NAMEs.
12262 (run_scc_vn): New flag to specify whether insertion is allowed.
12263 Process SSA_NAMEs in forward order.
12264 * tree-ssa-loop-im.c (for_each_index): Handle invariant
12265 ADDR_EXPRs inside VIEW_CONVERT_EXPR.
12266 * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
12267 pointer type to/from integral types that do not change the
12268 precision to regular conversions.
12270 2008-03-13 Uros Bizjak <ubizjak@gmail.com>
12272 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
12273 __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
12274 __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
12275 __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
12276 input arguments and the mode of return value. Built-in functions
12277 that operate on whole 64-bit MMX register now use V1DI mode.
12279 2008-03-13 Alon Dayan <alond@il.ibm.com>
12280 Olga Golovanevsky <olga@il.ibm.com>
12282 PR tree-optimization/35041
12283 * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
12284 to locate the right position in a statement.
12286 2008-03-13 Uros Bizjak <ubizjak@gmail.com>
12290 * config/i386/xmmintrin.h: Change all static inline functions to
12291 extern inline and add __gnu_inline__ attribute.
12292 * config/i386/bmintrin.h: Ditto.
12293 * config/i386/smmintrin.h: Ditto.
12294 * config/i386/tmmintrin.h: Ditto.
12295 * config/i386/mmintrin-common.h: Ditto.
12296 * config/i386/ammintrin.h: Ditto.
12297 * config/i386/emmintrin.h: Ditto.
12298 * config/i386/pmmintrin.h: Ditto.
12299 * config/i386/mmintrin.h: Ditto.
12300 * config/i386/mm3dnow.h: Ditto.
12302 2008-03-13 Jakub Jelinek <jakub@redhat.com>
12304 PR middle-end/35185
12305 * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
12306 (lower_omp_2): New function.
12307 (lower_omp_1, lower_omp): Rewritten.
12309 2008-03-13 Danny Smith <dannysmith@users.sourceforge.net>
12312 * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
12313 with the phrase "Microsoft Windows compilers".
12314 (Push/Pop Macro Pragmas): New subsection. Document
12315 #pragma push_macro and pragma pop_macro.
12317 2008-03-12 Paul Brook <paul@codesourcery.com>
12319 * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
12321 2008-03-12 Paul Brook <paul@codesourcery.com>
12323 * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
12324 (thumb2_alusi3_short): Exclude PLUS and MINUS.
12325 (thumb2_addsi_shortim): Rename ...
12326 (thumb2_addsi_short): ... to this. Allow register operands.
12327 (thumb2_subsi_short): New pattern.
12328 (thumb2_one_cmplsi2_short,
12329 thumb2_negsi2_short): New patterns and peepholes.
12331 2008-03-12 Paul Brook <paul@codesourcery.com>
12333 * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
12335 2008-03-12 Uros Bizjak <ubizjak@gmail.com>
12337 * config/i386/i386.md (int_cond): New code iterator.
12339 ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
12340 sge, sgeu, sle and sleu expanders usign int_cond code iterator.
12341 ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
12342 sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
12343 ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
12344 bge, bgeu, ble and bleu expanders usign int_cond code iterator.
12345 ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
12346 bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
12348 2008-03-12 Paul Brook <paul@codesourcery.com>
12350 * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
12351 instead of {arm,thumb}_compute_save_reg_mask.
12352 (output_return_instruction): Ditto.
12353 (thumb_unexpanded_epilogue): Ditto.
12354 (thumb1_expand_prologue): Ditto.
12355 (thumb1_output_function_prologue): Ditto.
12356 (arm_set_return_address): Ditto.
12357 (thumb_set_return_address): Ditto.
12358 (arm_get_frame_offsets): Set offsets->saved_regs_mask. Push extra
12359 regs to achieve stack alignment.
12360 (thumb1_compute_save_reg_mask): Fix compiler warning.
12361 (arm_output_epilogue): Use offsets->saved_regs_mask.
12362 Adjust stack pointer by poping call clobered registers.
12363 (arm_expand_prologue): Use offsets->saved_regs_mask.
12364 Adjust stack pointer by pushing extra registers.
12365 * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
12367 2008-03-12 Paolo Bonzini <bonzini@gnu.org>
12370 * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
12371 conversion to the operands of a multiplication.
12373 2008-03-12 Richard Guenther <rguenther@suse.de>
12375 * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
12376 (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
12377 * timevar.def (TV_TREE_PHIPROP): Add.
12378 * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
12379 pass description. Use TV_TREE_PHIPROP.
12380 * tree-ssa-forwprop.c: Remove phiprop code.
12382 2008-03-12 Jakub Jelinek <jakub@redhat.com>
12384 PR middle-end/35549
12385 * omp-low.c (maybe_lookup_decl): Constify first argument.
12386 (use_pointer_for_field): Change last argument from bool to
12387 omp_context *. Disallow shared copy-in/out in nested
12388 parallel if decl is shared in outer parallel too.
12389 (build_outer_var_ref, scan_sharing_clauses,
12390 lower_rec_input_clauses, lower_copyprivate_clauses,
12391 lower_send_clauses, lower_send_shared_vars): Adjust callers.
12393 2008-03-12 Victor Kaplansky <victork@il.ibm.com>
12394 Ira Rosen <irar@il.ibm.com>
12396 * tree-vectorizer.c (free_stmt_vec_info): New function.
12397 (destroy_loop_vec_info): Move code to free_stmt_vec_info().
12398 Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
12399 * tree-vectorizer.h (free_stmt_vec_info): Declare.
12400 * tree-vect-transform.c (vectorizable_conversion): Free
12401 vec_oprnds0 if it was allocated.
12402 (vect_permute_store_chain): Remove unused VECs.
12403 (vectorizable_store): Free VECs that are allocated in the..
12405 (vect_transform_strided_load, vectorizable_load): Likewise.
12406 (vect_remove_stores): Simplify the code.
12407 (vect_transform_loop): Move code to vect_remove_stores().
12408 Call vect_remove_stores() and free_stmt_vec_info().
12410 2008-03-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12412 * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
12413 TARGET_HPUX. Revise comment.
12414 (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
12415 * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
12416 Use sr4 variant of `be' instruction when not generating PIC code.
12417 (attr_length_call): Adjust for above change.
12419 2008-03-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
12421 * ipa-reference.c (static_execute): Remove module_statics_const and
12422 associated setting code.
12424 2008-03-11 Uros Bizjak <ubizjak@gmail.com>
12427 * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
12428 predicate for operand 1.
12429 (paritysi2_cmp): Use register_operand predicate for operand 2.
12430 Use earlyclobber modifier for operand 1. Remove support for
12432 (paritydi2_cmp): Use register_operand predicate for operand 3.
12433 Use earlyclobber modifier for operand 1. Remove support for
12436 2008-03-11 Paul Brook <paul@codesourcery.com>
12437 Vladimir Prus <vladimir@codesourcery.com>
12439 * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
12440 (arm_compute_save_reg0_reg12_mask): Always
12441 check if register 11 must be saved. Always safe hard frame pointer
12442 when frame_pointer_needeed.
12443 (arm_compute_save_reg_mask): Save IP and PC
12444 only with apcs frames.
12445 (arm_output_epilogue): Adjust Thumb2 codepath to
12446 be also invoked and work for ARM non-apcs frames.
12447 (arm_expand_prologue): Don't bother saving IP
12448 for non-apcs frame, since it's not clobbered by
12449 prologue code. Implement non-apcs frame
12452 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
12454 PR rtl-optimization/35281
12455 * expr.c (convert_move): Use a new pseudo for the intermediate
12456 from_mode->word_mode result.
12458 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
12460 * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
12461 * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
12462 * toplev.c (compile_file): Don't call it.
12464 2008-03-11 Uros Bizjak <ubizjak@gmail.com>
12466 PR middle-end/35526
12467 * expr.c (store_expr): Call emit_block_move if the mode
12468 of "temp" RTX is BLKmode.
12470 2008-03-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
12471 Richard Guenther <rguenther@suse.de>
12473 PR tree-optimization/31358
12474 * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
12475 the step with a NULL_TREE.
12476 * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
12477 to sizetype if type is a pointer type.
12478 (add_candidate_1): Don't convert the base and step to
12479 the generic type if the orginal type is a pointer type.
12480 (add_iv_value_candidates): Use sizetype for the step
12481 if type is a pointer type.
12482 (cand_value_at): Likewise.
12483 * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
12485 * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
12486 Don't convert the tem affine to the type.
12487 (add_elt_to_tree): Use sizetype for the step if a pointer.
12488 Use POINTER_PLUS_EXPR for pointers.
12489 (aff_combination_to_tree): Use sizetype for the step if a
12492 2008-03-10 Vladimir Makarov <vmakarov@redhat.com>
12494 * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
12495 Remove commutativity hint.
12497 2008-03-10 Jakub Jelinek <jakub@redhat.com>
12501 * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
12502 errorneous type. Check that v is a VAR_DECL.
12504 PR middle-end/35099
12505 * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
12507 2008-03-10 H.J. Lu <hongjiu.lu@intel.com>
12509 PR tree-optimization/35494
12510 * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
12511 may be overriden at link and run time.
12513 2008-03-10 Richard Guenther <rguenther@suse.de>
12515 PR tree-optimization/34677
12516 * tree-ssa-pre.c (modify_expr_node_pool): Remove.
12517 (poolify_tree): Likewise.
12518 (modify_expr_template): Likewise.
12519 (poolify_modify_stmt): Likewise.
12520 (insert_fake_stores): Handle all component-ref style stores
12521 in addition to INDIRECT_REF. Also handle complex types.
12522 Do not poolify the inserted load.
12523 (realify_fake_stores): Do not rebuild the tree but only
12524 make it a SSA_NAME copy.
12525 (init_pre): Remove initialzation of modify_expr_template.
12526 Do not allocate modify_expr_node_pool.
12527 (fini_pre): Do not free modify_expr_node_pool.
12529 2008-03-10 Paul Brook <paul@codesourcery.com>
12531 * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
12532 to avoid conflicts.
12534 2008-03-10 Paul Brook <paul@codesourcery.com>
12535 Mark Shinwell <shinwell@codesourcery.com>
12537 * config/arm/cortex-r4.md: New.
12538 * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
12540 * config/arm/arm.md: Include cortex-r4.md.
12541 (insn): Add smmls, sdiv and udiv values.
12542 (generic_sched): Don't use generic scheduling for Cortex-R4.
12543 (arm_issue_rate): New function.
12544 (TARGET_SCHED_ISSUE_RATE): Define.
12546 2008-03-10 Sebastian Pop <sebastian.pop@amd.com>
12548 * doc/invoke.texi (-ftree-loop-distribution): Add an example.
12550 2008-03-10 Richard Guenther <rguenther@suse.de>
12552 * tree-ssa-pre.c (get_sccvn_value): Simplify.
12553 (compute_avail): Do not add stmt uses to AVAIL_OUT.
12555 2008-03-10 Paolo Bonzini <bonzini@gnu.org>
12557 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
12558 Set default to true.
12560 2008-03-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12562 * c.opt (Wsynth): Deprecate.
12563 * doc/invoke.texi (Option Summary, Warning Options): Document
12564 -Wno-format-contains-nul.
12566 2008-03-09 Uros Bizjak <ubizjak@gmail.com>
12569 * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
12570 ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
12572 2008-03-09 Ira Rosen <irar@il.ibm.com>
12574 * config/rs6000/rs6000.c (builtin_description): Rename vector
12575 left shift operations.
12576 * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
12577 (altivec_vsl<VI_char>): Rename to ...
12578 (ashl<mode>3): ... new name.
12579 (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
12581 (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
12583 2008-03-08 Richard Guenther <rguenther@suse.de>
12585 * coverage.h (tree_coverage_counter_addr): Declare.
12586 * coverage.c (tree_coverage_counter_addr): New function.
12587 * tree-profile.c (tree_gen_edge_profiler): Unshare counter
12588 before using again.
12589 (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
12590 (tree_gen_one_value_profiler): Likewise.
12591 (tree_gen_ic_profiler): Likewise.
12592 (tree_gen_average_profiler): Likewise.
12593 (tree_gen_ior_profiler): Likewise.
12595 2008-03-08 Richard Guenther <rguenther@suse.de>
12597 * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
12598 (vn_binary_op_insert): Likewise.
12599 (vn_unary_op_lookup): Likewise.
12600 (vn_unary_op_insert): Likewise.
12601 (vn_nary_op_lookup): Declare.
12602 (vn_nary_op_insert): Likewise.
12603 * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
12604 and binary hashes, use a single obstack for unary_op_pool
12605 and binary_op_pool.
12606 (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
12607 a single struct vn_nary_op_s. Store tree code length and
12608 a variable number of operands.
12609 (struct vn_reference_op_struct): Remove unused op2.
12610 (vn_reference_op_eq): Do not compare op2.
12611 (vn_reference_op_compute_hash): Do not compute hash of op2.
12612 (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
12613 (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
12614 with vn_nary_op_compute_hash.
12615 (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
12616 (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
12618 (vn_unary_op_insert, vn_binary_op_insert): Replace with
12620 (visit_unary_op): Call nary functions.
12621 (visit_binary_op): Likewise.
12622 (process_scc): Adjust for struct vn_tables_s changes.
12623 (allocate_vn_table): Likewise.
12624 (free_vn_table): Likewise.
12625 * tree-vn.c (vn_add): Call nary functions.
12626 (vn_lookup): Likewise.
12628 2008-03-08 Jakub Jelinek <jakub@redhat.com>
12631 * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
12632 wdst back after sync_compare_and_swapqhi_internal.
12634 2008-03-08 Uros Bizjak <ubizjak@gmail.com>
12637 * config/i386/i386-modes.def (V1DI): New vector mode.
12638 * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
12639 * config/i386/mmx.md (MMXMODEI8): New mode iterator.
12640 (MMXMODE248): Ditto.
12641 (MMXMODE): Add V1DI mode.
12642 (mmxvecsize): Change DI mode to V1DI mode.
12643 ("mov<mode>): Use MMXMODEI8 mode iterator.
12644 ("*mov<mode>_internal_rex64"): Ditto.
12645 ("*mov<mode>_internal"): Ditto.
12646 ("mmx_add<mode>3"): Ditto. Handle V1DImode for TARGET_SSE2.
12647 ("mmx_sub<mode>3"): Ditto.
12648 ("mmx_adddi3"): Remove insn pattern.
12649 ("mmx_subdi3"): Ditto.
12650 ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
12651 ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
12652 ("mmx_ashl<mode>3"): Ditto.
12653 ("mmx_lshrdi3"): Remove insn pattern.
12654 ("mmx_ashldi3"): Ditto.
12655 * config/i386/i386.c (classify_argument): Handle V1DImode.
12656 (function_arg_advance_32): Ditto.
12657 (function_arg_32): Ditto.
12658 (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
12659 mmx_addv1di3 insn pattern.
12660 [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
12661 [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
12662 IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
12663 IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
12664 Remove definitions of built-in functions.
12665 (V1DI_type_node): New node.
12666 (v1di_ftype_v1di_int): Ditto.
12667 (v1di_ftype_v1di_v1di): Ditto.
12668 (v2si_ftype_v2si_si): Ditto.
12669 (v4hi_ftype_v4hi_di): Remove node.
12670 (v2si_ftype_v2si_di): Ditto.
12671 (ix86_init_mmx_sse_builtins): Handle V1DImode.
12672 (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
12673 Redefine builtins using def_builtin_const with *_ftype_*_int node.
12674 (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
12675 Add new builtins using def_builtin_const.
12676 (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
12677 IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
12678 IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
12679 * config/i386/mmintrin.h (__v1di): New typedef.
12680 (_mm_add_si64): Cast arguments to __v1di type.
12681 (_mm_sub_si64): Ditto.
12682 (_mm_sll_pi16): Cast __count to __v4hi type.
12683 (_mm_sll_pi32): Cast __count to __v2si type.
12684 (_mm_sll_si64): Cast arguments to __v1di type.
12685 (_mm_srl_pi16): Cast __count to __v4hi type.
12686 (_mm_srl_pi32): Cast __count to __v2si type.
12687 (_mm_srl_si64): Cast arguments to __v1di type.
12688 (_mm_sra_pi16): Cast __count to __v4hi type.
12689 (_mm_sra_pi32): Cast __count to __v2si type.
12690 (_mm_slli_pi16): Use __builtin_ia32_psllwi.
12691 (_mm_slli_pi32): Use __builtin_ia32_pslldi.
12692 (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
12693 (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
12694 (_mm_srli_pi32): Use __builtin_ia32_psrldi.
12695 (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
12696 (_mm_srai_pi16): Use __builtin_ia32_psrawi.
12697 (_mm_srai_pi32): Use __builtin_ia32_psradi.
12698 * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
12699 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
12700 __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
12701 __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
12703 2008-03-07 Joseph Myers <joseph@codesourcery.com>
12705 * doc/include/texinfo.tex: Update to version 2008-03-07.10.
12707 2008-03-07 Peter Bergner <bergner@vnet.ibm.com>
12710 * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
12711 reg+const addressing for Altivec modes. Don't generate reg+reg
12712 addressing for TFmode or TDmode quantities.
12714 2008-03-07 Paolo Bonzini <bonzini@gnu.org>
12716 * c-common.c (vector_types_convertible_p): Call langhook
12717 instead of comptypes.
12719 2008-03-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
12722 * tree-ssa-ccp.c (get_symbol_constant_value): Handle
12723 integral and scalar float variables which have a
12726 2008-03-06 Nathan Froyd <froydnj@codesourcery.com>
12728 * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
12729 dwarf_register_span hook when emitting unwind information for
12730 register-to-memory saves.
12731 * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
12732 (rs6000_frame_related): Remove call to spe_synthesize_frame.
12734 2008-03-06 Jakub Jelinek <jakub@redhat.com>
12736 * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
12737 for the same VAR_DECL.
12739 2008-03-06 Tom Tromey <tromey@redhat.com>
12741 * treelang: Delete.
12742 * doc/standards.texi (Standards): Don't mention treelang.
12743 * doc/invoke.texi (Overall Options): Don't mention treelang.
12744 * doc/install.texi (Prerequisites): Don't mention bison or
12746 (Configuration): Don't mention treelang.
12747 (Building): Likewise.
12748 * doc/frontends.texi (G++ and GCC): Don't mention treelang.
12750 2008-03-06 Paolo Bonzini <bonzini@gnu.org>
12752 * simplify-rtx.c (simplify_subreg): Remove useless shifts from
12753 word-extractions out of a multi-word object.
12755 2008-03-06 Richard Guenther <rguenther@suse.de>
12757 * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
12758 * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
12759 result type and precision.
12760 * expr.c (get_inner_reference): Set unsignedp based on the result
12761 type of BIT_FIELD_REF.
12762 * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
12763 * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
12764 (try_instantiate_multiple_fields): Likewise. Use the correct type
12766 (sra_build_assignment): Likewise.
12767 (sra_build_elt_assignment): Likewise.
12768 (sra_explode_bitfield_assignment): Likewise.
12769 * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
12770 * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
12771 set BIT_FIELD_REF_UNSIGNED.
12772 (vectorizable_load): Likewise.
12774 2008-03-06 Andreas Krebbel <krebbel1@de.ibm.com>
12776 * cse.c (cse_extended_basic_block): Invalidate artificial defs
12779 2008-03-06 Richard Guenther <rguenther@suse.de>
12781 * alias.c (struct alias_set_entry): Move has_zero_child field
12782 to pack with alias_set.
12784 2008-03-05 H.J. Lu <hongjiu.lu@intel.com>
12786 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
12789 2008-03-05 Ian Lance Taylor <iant@google.com>
12791 * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
12793 2008-03-05 Kenneth Zadeck <zadeck@naturalbridge.com>
12795 * fwprop.c (update_df): Support width and offset parameters of
12797 * ra-conflict.c (mark_reg_store, clear_reg_in_live,
12798 global_conflicts): Change DF_REF_EXTRACT to either
12799 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
12800 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
12801 * df-scan.c (df_ref_record, df_defs_record,
12802 df_ref_create_structure, df_def_record_1, df_uses_record,
12803 df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
12804 df_bb_refs_collect, df_entry_block_defs_collect,
12805 df_exit_block_uses_collect): Support new width and offset fields.
12806 (ref_extract_pool): New storage pool.
12807 (df_free_ref): New function.
12808 (df_reg_chain_unlink, df_free_collection_rec,
12809 df_sort_and_compress_refs): Call df_free_ref.
12810 (df_ref_equal_p, df_ref_compare): Compare offset and width fields
12812 (df_ref_create_structure): Allocate df_ref_extract if offset and
12813 width fields are used.
12814 (df_def_record_1): Get offset and width from ZERO_EXTRACT.
12815 (df_uses_record): Get offset and width from ZERO_EXTRACT
12817 * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
12818 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
12819 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
12820 * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
12821 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
12822 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
12823 (df_ref_extract): New structure.
12824 (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
12825 (df_ref_create): Add width and offset parameters.
12827 2008-03-05 Richard Guenther <rguenther@suse.de>
12829 * tree-ssa-structalias.c (get_constraint_for_component_ref):
12830 Use ranges_overlap_p.
12831 (offset_overlaps_with_access): Rename
12832 to ranges_overlap_p and move ...
12833 * tree-flow-inline.h (ranges_overlap_p): ... here.
12835 * tree.h (get_inner_reference, handled_component_p): Update
12838 * tree.h (record_component_aliases, get_alias_set,
12839 alias_sets_conflict_p, alias_sets_must_conflict_p,
12840 objects_must_conflict_p): Move declarations ...
12841 * alias.h (record_component_aliases, get_alias_set,
12842 alias_sets_conflict_p, alias_sets_must_conflict_p,
12843 objects_must_conflict_p): ... here.
12844 Include coretypes.h.
12845 * Makefile.in (ALIAS_H): Add coretypes.h dependency.
12847 2008-03-05 Aldy Hernandez <aldyh@redhat.com>
12849 * cfg.c: Include tree-flow.h.
12850 (remove_edge_raw): Call redirect_edge_var_map_clear.
12851 (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
12852 * tree-flow-inline.h (redirect_edge_var_map_def): New.
12853 (redirect_edge_var_map_result): New.
12854 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
12855 PENDING_STMT use with redirect_edge_var_map_*.
12856 * tree-ssa.c (edge_var_maps): New definition.
12857 (redirect_edge_var_map_add): New.
12858 (redirect_edge_var_map_clear): New.
12859 (redirect_edge_var_map_dup): New.
12860 (redirect_edge_var_map_vector): New.
12861 (redirect_edge_var_map_destroy): New.
12862 (ssa_redirect_edge): Replace PENDING_STMT use with
12863 redirect_edge_var_map_*.
12864 (flush_pending_stmts): Same.
12865 (delete_tree_ssa): Destroy edge var map.
12866 * tree-flow.h (struct _edge_var_map): New.
12867 Define edge_var_map vector type.
12868 Declare redirect_edge_var_map_* prototypes.
12869 * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
12870 * tree-cfg.c (reinstall_phi_args): Replace
12871 PENDING_STMT use with redirect_edge_var_map_*.
12873 2008-03-05 Richard Guenther <rguenther@suse.de>
12875 PR tree-optimization/35472
12876 * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
12877 whose single use_stmt has a overlapping set of loaded and
12878 stored symbols as that use_stmt might be a noop assignment then.
12880 2008-03-05 Joel Sherrill <joel.sherrill@oarcorp.com>
12882 * gthr-rtems.h: Implement __gthread_mutex_destroy.
12884 2008-03-05 Richard Guenther <rguenther@suse.de>
12887 * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
12888 should be constants.
12889 * tree-cfg.c (verify_expr): Verify it.
12890 * fold-const.c (fold_truthop): Remove code generating
12891 BIT_FIELD_REFs of structure bases.
12892 (fold_binary): Likewise.
12893 (fold_ternary): Position and size of BIT_FIELD_REFs are
12894 always host integers.
12895 (make_bit_field_ref): Remove.
12896 (optimize_bit_field_compare): Remove.
12897 (all_ones_mask_p): Remove.
12899 2008-03-05 Gabor Loki <loki@gcc.gnu.org>
12902 * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
12903 (split_block_and_df_analyze): New. Split basic block and rebuild
12905 (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
12907 (split_pattern_seq): Likewise.
12908 (erase_matching_seqs): Likewise.
12909 (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
12911 2008-03-04 Geoff Keating <geoffk@apple.com>
12913 * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
12914 declaration and code.
12915 (tree_invalid_nonnegative_warnv_p): Likewise.
12917 2008-03-05 Serge Belyshev <belyshev@depni.sinp.msu.ru>
12919 * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
12920 examples. Truncate option-names then causing overfull hbox.
12922 2008-03-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12925 * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
12927 * configure: Rebuilt.
12929 2008-03-04 Rafael Espindola <espindola@google.com>
12931 * fold-const.c (tree_simple_nonnegative_warnv_p): New.
12932 (tree_unary_nonnegative_warnv_p): New.
12933 (tree_binary_nonnegative_warnv_p): New.
12934 (tree_single_nonnegative_warnv_p): New.
12935 (tree_invalid_nonnegative_warnv_p): New.
12936 (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
12938 2008-03-04 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
12941 * opts.c (handle_option): Postpone 'unknown option' errors only for
12944 2008-03-04 H.J. Lu <hongjiu.lu@intel.com>
12947 * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
12950 2008-03-04 Rafael Espindola <espindola@google.com>
12952 * fold-const.c (tree_unary_nonzero_warnv_p): New.
12953 (tree_binary_nonzero_warnv_p): New.
12954 (tree_single_nonzero_warnv_p): New.
12955 (tree_expr_nonzero_warnv_p): Redefine using the new functions.
12957 2008-03-04 Uros Bizjak <ubizjak@gmail.com>
12959 PR middle-end/35456
12960 * fold-const.c (fold_cond_expr_with_comparison): Prevent
12961 transformations for modes that have signed zeros.
12962 * ifcvt.c (noce_try_abs): Ditto.
12964 2008-03-04 Joseph Myers <joseph@codesourcery.com>
12966 * config/i386/i386.c (override_options): Force
12967 -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
12969 2008-03-04 Jan Hubicka <jh@suse.cz>
12972 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
12975 2008-03-04 Danny Smith <dannysmith@users.sourceforge.net>
12977 * config/i386/i386.md (allocate_stack_worker_32): Use __chkstk
12978 label to probe the stack.
12980 2008-03-04 Danny Smith <dannysmith@users.sourceforge.net>
12982 * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
12983 (__gthr_win32_mutex_destroy): Declare.
12984 [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
12985 __gthr_win32_mutex_destroy.
12986 * config/i386/gthr-win32.c (__gthr_win32_mutex_destroy): Define.
12988 2008-03-03 Jan Hubicka <jh@suse.cz>
12991 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
12992 aggressive on inlining cold calls.
12994 2008-03-03 Richard Guenther <rguenther@suse.de>
12996 * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
12997 struct copies into the expression table.
12998 (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
12999 (try_to_simplify): Likewise.
13000 * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
13001 integral and pointer arguments which do not change the
13002 precision to NOP_EXPRs.
13003 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
13004 VIEW_CONVERT_EXPR case.
13006 2008-03-02 Sebastian Pop <sebastian.pop@amd.com>
13008 * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
13009 defined in a loop at depth 0 is invariant.
13010 * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
13011 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
13012 be called at loop depth 0.
13014 2008-03-02 Jakub Jelinek <jakub@redhat.com>
13017 * gcc.c (process_command): Update copyright notice dates.
13018 * gcov.c (print_version): Likewise.
13019 * gcov-dump.c (print_version): Likewise.
13020 * mips-tfile.c (main): Likewise.
13021 * mips-tdump.c (main): Likewise.
13023 2008-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
13026 * c-common.c (flag_permissive): Delete.
13027 (constant_expression_warnings): Check flags first.
13028 (constant_expression_error): New.
13029 * c-common.h (flag_permissive): Delete.
13030 (constant_expression_error): Declare.
13031 * flags.h (flag_permissive): Declare. Update description.
13032 * diagnostic.c (pedwarn): Update.
13034 * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
13035 (permissive_error_kind): New.
13036 * toplev.c (flag_permissive): Define. Update description.
13037 * toplev.h (permissive_error_kind): Declare.
13038 * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
13039 (pedwarn_c90): Use pedantic_warning_kind.
13040 * c-opts.c (c_common_post_options): flag_permissive does not affect
13041 flag_pedantic_errors.
13043 2008-03-02 Joseph Myers <joseph@codesourcery.com>
13045 * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
13046 __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
13047 __absvsi2, __absvDI2): Use unsigned arithmetic.
13049 2008-03-02 Andi Kleen <ak@suse.de>
13050 Richard Guenther <rguenther@suse.de>
13052 * struct-equiv.c: Remove file.
13053 * cfg_cleanup.c (condjump_equiv_p): Remove.
13054 * Makefile.in (OBJS-common): Remove struct-equiv.o.
13055 (struct-equiv.o): Remove rule.
13056 * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
13057 insns_match_p, struct_equiv_block_eq, struct_equiv_init,
13058 rtx_equiv_p, condjump_equiv_p): Remove prototypes.
13060 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
13062 * ifcvt.c (noce_process_if_block): Try to handle only the then
13063 block if the else block exists but isn't suitable.
13065 2008-03-01 Janne Blomqvist <jb@gcc.gnu.org>
13068 * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
13069 * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
13070 regression from previous patch.
13072 2008-03-01 Janne Blomqvist <jb@gcc.gnu.org>
13075 * gthr.h: Add __gthread_mutex_destroy as a function that must be
13077 * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
13078 * gthr-single.h (__gthread_mutex_destroy): Likewise.
13079 * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
13080 * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
13081 * gthr-nks.h (__gthread_mutex_destroy): Likewise.
13082 * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
13083 * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
13084 (__gthread_mutex_destroy_function): Rename to
13085 __gthread_mutex_destroy.
13086 * gthr-dce.h (__gthread_mutex_destroy): Call
13087 pthread_mutex_destroy.
13088 * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
13089 * gthr-posix.h (__gthread_mutex_destroy): Likewise.
13090 * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
13092 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
13094 * df-scan.c (df_ref_chain_change_bb): Simplify.
13095 (df_insn_change_bb): Add new_bb argument. Simplify. Call
13096 set_block_for_insn if there's any change.
13097 * df.h ((df_insn_change_bb): Fix prototype.
13098 * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
13099 df_insn_change_bb, don't call set_block_for_insn.
13100 * emit-rtl.c (reorder_insns): Likewise.
13101 * haifa-sched.c (move_insn): Likewise.
13103 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
13105 * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
13107 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
13109 * tree-flow-inline.h (next_readonly_imm_use): Return
13110 NULL_USE_OPERAND_P after the end.
13112 2008-03-01 Richard Guenther <rguenther@suse.de>
13114 PR tree-optimization/35411
13115 * tree-sra.c (sra_build_assignment): Split conversion to
13116 final type to a separate statement if we are not assigning
13119 2008-02-29 Francois-Xavier Coudert <coudert@clipper.ens.fr>
13121 * fold-const.c (fold_convertible_p): Correct the logic to follow
13122 that in fold_convert().
13124 2008-02-29 Douglas Gregor <doug.gregor@gmail.com>
13127 * tree-inline.c (build_duplicate_type): When we make a
13128 duplicate type, make it unique in the canonical types system.
13130 2008-02-29 Tom Tromey <tromey@redhat.com>
13132 * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
13133 input_file_stack_history, input_file_stack_restored): Remove.
13134 (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
13135 * input.h (struct file_stack): Remove.
13136 (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
13137 (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
13139 * diagnostic.h (struct diagnostic_context) <last_module>: Change
13141 (diagnostic_last_module_changed): Add 'map' argument.
13142 (diagnostic_set_last_function): Likewise.
13143 * diagnostic.c (undiagnostic_report_current_module): Iterate using
13144 line map, not input_file_stack.
13145 * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
13147 2008-02-29 Paul Brook <paul@codesourcery.com>
13149 * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
13151 2008-02-29 Paul Brook <paul@codesourcery.com>
13153 * config/arm/ieee754-df.S (muldf3): Use RET macros.
13155 2008-02-29 Richard Guenther <rguenther@suse.de>
13157 * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
13159 * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
13160 value for comparing for a store match.
13161 (simplify_unary_expression): Do nothing for SSA_NAMEs.
13162 (try_to_simplify): Do not do a full-blown reference lookup.
13164 2008-02-29 Kaz Kojima <kkojima@gcc.gnu.org>
13166 * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
13167 (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
13169 * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
13171 2008-02-29 Sebastian Pop <sebastian.pop@amd.com>
13173 * tree-loop-linear.c (try_interchange_loops): Compare memory access
13174 strides against cache sizes.
13176 2008-02-29 Kaz Kojima <kkojima@gcc.gnu.org>
13178 * config/sh/sh.c (sh_secondary_reload): Handle loading a float
13181 2008-02-28 Richard Sandiford <rsandifo@nildram.co.uk>
13183 * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
13184 of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
13185 is smaller than the original promoted value.
13186 (simplify_subreg): If OP is a SUBREG, try to preserve its
13187 SUBREG_PROMOTED_VAR_P information.
13189 2008-02-28 Steven Bosscher <stevenb.gcc@gmail.com>
13191 * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
13192 (VN_INFO_GET): Allocate new objects on the obstack.
13193 (init_scc_vn): Initialize the obstack. Use XDELETE instead of free
13194 for rpo_numbers_temp, for consistency.
13195 (free_scc_vn): Free the obstack.
13197 2008-02-28 Sebastian Pop <sebastian.pop@amd.com>
13199 * doc/invoke.texi: Document -ftree-loop-distribution.
13200 * tree-loop-distribution.c: New.
13201 * tree-pass.h (pass_loop_distribution): New.
13202 * graphds.h (struct graph): Add htab_t indices.
13203 * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
13204 * tree-vectorizer.c (rename_variables_in_loop): Extern.
13205 (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
13206 * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
13207 * tree-data-ref.c (debug_data_dependence_relations): New.
13208 (dump_data_dependence_relation): Also print data references.
13209 (free_data_ref): Extern.
13210 (same_access_functions): Moved...
13211 (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
13212 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
13213 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
13214 struct rdg_vertex_info, rdg_vertex_for_stmt): New.
13215 (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
13216 (stmts_from_loop): Skip LABEL_EXPR.
13217 (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
13219 (build_rdg): Initialize rdg->indices htab.
13220 (free_rdg, stores_from_loop, ref_base_address,
13221 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
13222 have_similar_memory_accesses_1, ref_base_address_1,
13223 remove_similar_memory_refs): New.
13224 * tree-data-ref.h: Depend on tree-chrec.h.
13225 (debug_data_dependence_relations, free_data_ref): Declared.
13226 (same_access_functions): ... here.
13227 (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
13229 (struct rdg_vertex): Add has_mem_write and has_mem_reads.
13230 (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
13231 RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
13232 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
13233 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
13234 rdg_vertex_for_stmt): Declared.
13235 (struct rdg_edge): Add level.
13237 (free_rdg, stores_from_loop, remove_similar_memory_refs,
13238 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
13240 (rdg_has_similar_memory_accesses): New.
13241 * tree-vect-analyze.c: Remove unused static decls.
13242 * lambda.h (dependence_level): New.
13243 * common.opt (ftree-loop-distribution): New.
13244 * tree-flow.h (mark_virtual_ops_in_bb,
13245 slpeel_tree_duplicate_loop_to_edge_cfg,
13246 rename_variables_in_loop): Declared.
13247 * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
13248 (OBJS-common): Add tree-loop-distribution.o.
13249 (tree-loop-distribution.o): New rule.
13250 * tree-cfg.c (mark_virtual_ops_in_bb): New.
13251 (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
13252 * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
13254 2008-02-28 Joseph Myers <joseph@codesourcery.com>
13257 * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
13258 other than structures and unions.
13260 2008-02-28 Richard Guenther <rguenther@suse.de>
13263 2008-02-26 Richard Guenther <rguenther@suse.de>
13265 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
13266 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
13267 (lookup_decl_from_uid): Declare.
13268 (remove_decl_from_map): Likewise.
13269 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
13270 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
13271 (decl_for_uid_map): New global hashtable mapping DECL_UID
13273 (init_ttree): Allocate it.
13274 (insert_decl_to_uid_decl_map): New helper function.
13275 (make_node_stat): Insert new decls into the map.
13276 (copy_node_stat): Likewise.
13277 (lookup_decl_from_uid): New function.
13278 (remove_decl_from_map): Likewise.
13279 (print_decl_for_uid_map_statistics): New helper.
13280 (dump_tree_statistics): Call it.
13282 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
13283 (referenced_var_iterator): Adjust.
13284 (FOR_EACH_REFERENCED_VAR): Adjust.
13285 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
13286 (num_referenced_vars): Adjust.
13287 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
13288 (first_referenced_var): Remove.
13289 (end_referenced_vars_p): Likewise.
13290 (next_referenced_var): Likewise.
13291 (referenced_var_iterator_set): New helper function.
13292 * tree-dfa.c (referenced_var_lookup): Adjust.
13293 (referenced_var_check_and_insert): Likewise.
13294 (remove_referenced_var): Likewise.
13295 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
13296 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
13297 (verify_call_clobbering): Likewise.
13298 (verify_memory_partitions): Likewise.
13299 (init_tree_ssa): Allocate bitmap instead of hashtable for
13301 (delete_tree_ssa): Adjust.
13302 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
13303 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
13304 (compute_tag_properties): Likewise.
13305 (set_initial_properties): Likewise.
13306 (find_partition_for): Likewise.
13307 (update_reference_counts): Likewise.
13308 (dump_may_aliases_for): Likewise.
13309 * tree-ssa-operands.c (add_virtual_operand): Likewise.
13310 (add_call_clobber_ops): Likewise.
13311 (add_call_read_ops): Likewise.
13312 (get_asm_expr_operands): Likewise.
13313 * tree-into-ssa.c (dump_decl_set): Likewise.
13314 (update_ssa): Likewise.
13315 * tree-sra.c (scan_function): Likewise.
13316 (decide_instantiations): Likewise.
13317 (scalarize_parms): Likewise.
13318 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
13319 (dsa_named_for): Likewise.
13320 * tree-ssa-structalias.c (update_alias_info): Likewise.
13321 (merge_smts_into): Likewise.
13323 2008-02-27 David Daney <ddaney@avtrex.com>
13326 * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
13327 * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
13328 * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
13329 * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
13330 * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
13332 2008-02-27 Uros Bizjak <ubizjak@gmail.com>
13335 * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
13336 (BUILT_IN_NEXTTOWARD): Remove.
13337 (BUILT_IN_NEXTTOWARDF): Ditto.
13338 * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
13339 alloca/strcpy/strcat. Remove commented-out code. Fix whitespace.
13341 2008-02-27 Tom Tromey <tromey@redhat.com>
13343 * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
13344 DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
13346 2008-02-27 Jan Beulich <jbeulich@novell.com>
13348 * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
13349 update the respective field on newdecl.
13351 2008-02-27 Revital Eres <eres@il.ibm.com>
13353 PR rtl-optimization/34999
13354 * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
13355 crossing edges that ends with a call insn.
13356 (fix_up_fall_thru_edges): Handle crossing edges that ends with a
13357 call insn and clear the EDGE_CROSSING flag of the crossing edge
13358 when fixing fallthru edges.
13360 2008-02-27 Richard Guenther <rguenther@suse.de>
13362 PR middle-end/35390
13363 * fold-const.c (fold_unary): Return the correct argument,
13364 converted to the result type.
13366 2008-02-27 Richard Guenther <rguenther@suse.de>
13368 PR middle-end/34971
13369 * expr.c (expand_expr_real_1): Assert on rotates that operate
13371 * fold-const.c (fold_binary): Use the types precision, not the
13372 bitsize of the mode if folding rotate expressions. Build rotates
13373 only for full modes.
13375 2008-02-27 Jakub Jelinek <jakub@redhat.com>
13377 * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
13378 and CPP_PRAGMA_EOL.
13379 * c-pragma.c (pragma_ns_name): New typedef.
13380 (registered_pp_pragmas): New variable.
13381 (c_pp_lookup_pragma): New function.
13382 (c_register_pragma_1): If flag_preprocess_only, do nothing
13383 for non-expanded pragmas, for expanded ones push pragma's
13384 namespace and name into registered_pp_pragmas vector.
13385 (c_invoke_pragma_handler): Register OpenMP pragmas even when
13386 flag_preprocess_only, don't register GCC pch_preprocess
13387 pragma if flag_preprocess_only.
13388 * c-opts.c (c_common_init): Call init_pragma even if
13389 flag_preprocess_only.
13390 * c-pragma.c (c_pp_lookup_pragma): New prototype.
13391 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
13392 cpp_register_pragma if flag_preprocess_only.
13394 2008-02-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13397 * c-parser.c (c_parser_translation_unit): Warn for empty
13398 translation unit, not empty source file.
13400 2008-02-26 Paul Brook <paul@codesourcery.com>
13402 * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
13403 operand for Thumb-2.
13404 * config/arm/arm.h (reg_class): Add CORE_REGS.
13405 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
13406 (BASE_REG_CLASS): Use CORE_REGS.
13407 (PREFERRED_RELOAD_CLASS): Add STACK_REG.
13408 (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
13409 (REGNO_OK_FOR_INDEX_P): Exclude SP.
13410 (ARM_REG_OK_FOR_INDEX_P): Always define. Use
13411 ARM_REGNO_OK_FOR_INDEX_P.
13412 (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
13413 * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
13414 arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
13415 (ldm/stm peepholes): Ditto.
13416 * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
13417 * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
13418 * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
13419 * config/arm/constraints.md: Enable "k" constraint on ARM.
13421 2008-02-27 Ben Elliston <bje@au.ibm.com>
13423 * config/rs6000/rs6000.c: Annotate cache line size field in all
13424 instances of struct processor_costs.
13426 2008-02-26 David Edelsohn <edelsohn@gnu.org>
13428 * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
13429 dse2, gcse, if_conversion, if_after_combine, if_after_reload,
13430 jump_bypass): New counters.
13431 * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
13432 * dce.c (gate_ud_dce): Same.
13433 (gate_fast_dce): Same.
13434 * dse.c (gate_dse1): New function.
13435 (gate_dse2): New function.
13436 (gate_dse): Merge results of new gate functions.
13437 * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
13438 (gate_handle_jump_bypass): Add dbg_cnt.
13439 (gate_handle_gcse): Add dbg_cnt.
13440 * ifcvt.c (gate_handle_if_conversion): Same.
13441 (gate_handle_if_after_combine): Same.
13442 (gate_handle_if_after_reload): Same.
13443 * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
13445 2008-02-26 Edmar Wienskoski <edmar@freescale.com>
13447 * config/rs6000/rs6000.c (processor_costs): Update e300 cache
13449 * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
13451 2008-02-26 Jason Merrill <jason@redhat.com>
13454 * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE
13455 alone if it's the naming decl for the type's main variant.
13457 2008-02-26 Tom Tromey <tromey@redhat.com>
13459 * system.h (USE_MAPPED_LOCATION): Poison.
13460 * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
13461 * tree-cfg.c (make_cond_expr_edges): Remove old location code.
13462 (make_goto_expr_edges): Likewise.
13463 (remove_bb): Likewise.
13464 (execute_warn_function_return): Likewise.
13465 * basic-block.h (struct edge_def) <goto_locus>: Change type to
13467 * c-common.c (fname_decl): Remove old location code.
13468 * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
13470 * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
13472 (ASM_INPUT_SOURCE_LOCATION): Likewise.
13473 (gen_rtx_ASM_INPUT): Likewise.
13474 (gen_rtx_ASM_INPUT_loc): Likewise.
13475 (get_rtx_asm_OPERANDS): Remove.
13476 * cfglayout.c (insn_locators_alloc): Remove old location code.
13477 (set_curr_insn_source_location): Likewise.
13478 (curr_insn_locator): Likewise.
13479 * print-tree.c (print_node): Remove old location code.
13480 * tree-mudflap.c (mf_varname_tree): Remove old location code.
13481 (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
13482 * cfgexpand.c (expand_gimple_cond_expr): Don't use
13483 location_from_locus.
13484 (construct_exit_block): Remove old location code.
13485 * emit-rtl.c (force_next_line_note): Remove old location code.
13486 * profile.c (branch_prob): Remove old location code.
13487 * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
13488 LOC_LINE): Remove old-location variants.
13489 * langhooks.c (lhd_print_error_function): Remove old location
13491 * configure, config.in: Rebuilt.
13492 * configure.ac (--enable-mapped-location): Remove.
13493 * c-decl.c (c_init_decl_processing): Remove old location code.
13494 (finish_function): Likewise.
13495 * recog.c (decode_asm_operands): Remove old location code.
13496 * c-pch.c (c_common_read_pch): Remove old location code.
13497 * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
13499 * gimple-low.c (lower_function_body): Remove old location code.
13500 * toplev.c (unknown_location): Remove.
13501 (push_srcloc): Remove old-location variant.
13502 (process_options): Remove old location code.
13503 (lang_dependent_init): Likewise.
13504 * input.h (UNKNOWN_LOCATION): Move definition.
13505 (location_t): Undeprecate.
13506 (source_locus): Remove.
13507 (location_from_locus): Remove.
13508 (struct location_s): Remove.
13509 Remove all old-location code.
13510 (input_line, input_filename): Remove.
13511 * final.c (final_scan_insn): Remove old location code.
13512 * diagnostic.c (diagnostic_build_prefix): Remove
13513 USE_MAPPED_LOCATION test.
13514 * tree.h (gimple_stmt) <locus>: Now a location_t.
13515 (tree_exp) <locus>: Likewise.
13516 (DECL_IS_BUILTIN): Remove old-location variant.
13517 (annotate_with_file_line, annotate_with_locus): Likewise.
13518 (expr_locus, set_expr_locus): Update.
13519 * tree.c (build1_stat): Remove old location code.
13520 (last_annotated_node): Remove.
13521 (annotate_with_file_line): Remove old-location variant.
13522 (annotate_with_locus): Likewise.
13523 (expr_location): Remove old location code.
13524 (set_expr_location): Likewise.
13525 (expr_has_location): Likewise.
13526 (expr_locus): Likewise.
13527 (set_expr_locus): Likewise.
13528 (expr_filename): Don't use location_from_locus.
13529 (expr_lineno): Likewise.
13530 * rtl-error.c (location_for_asm): Remove old location code.
13531 * c-lex.c (cb_line_change): Remove old location code.
13532 (fe_file_change): Likewise.
13533 (cb_def_pragma): Likewise.
13534 (c_lex_with_flags): Likewise.
13535 * gengtype.c (do_typedef): Don't special-case location types.
13536 (define_location_structures): Remove.
13537 (main): Don't call define_location_structures.
13538 * tree-pretty-print.c (dump_implicit_edges): Remove old location
13541 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
13544 * builtins.def (BUILT_IN_STDARG_START): Remove.
13545 * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
13546 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
13547 * tree-inline.c (inline_forbidden_p_1): Likewise.
13549 2008-02-26 Richard Guenther <rguenther@suse.de>
13551 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
13552 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
13553 (lookup_decl_from_uid): Declare.
13554 (remove_decl_from_map): Likewise.
13555 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
13556 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
13557 (decl_for_uid_map): New global hashtable mapping DECL_UID
13559 (init_ttree): Allocate it.
13560 (insert_decl_to_uid_decl_map): New helper function.
13561 (make_node_stat): Insert new decls into the map.
13562 (copy_node_stat): Likewise.
13563 (lookup_decl_from_uid): New function.
13564 (remove_decl_from_map): Likewise.
13565 (print_decl_for_uid_map_statistics): New helper.
13566 (dump_tree_statistics): Call it.
13568 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
13569 (referenced_var_iterator): Adjust.
13570 (FOR_EACH_REFERENCED_VAR): Adjust.
13571 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
13572 (num_referenced_vars): Adjust.
13573 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
13574 (first_referenced_var): Remove.
13575 (end_referenced_vars_p): Likewise.
13576 (next_referenced_var): Likewise.
13577 (referenced_var_iterator_set): New helper function.
13578 * tree-dfa.c (referenced_var_lookup): Adjust.
13579 (referenced_var_check_and_insert): Likewise.
13580 (remove_referenced_var): Likewise.
13581 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
13582 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
13583 (verify_call_clobbering): Likewise.
13584 (verify_memory_partitions): Likewise.
13585 (init_tree_ssa): Allocate bitmap instead of hashtable for
13587 (delete_tree_ssa): Adjust.
13588 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
13589 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
13590 (compute_tag_properties): Likewise.
13591 (set_initial_properties): Likewise.
13592 (find_partition_for): Likewise.
13593 (update_reference_counts): Likewise.
13594 (dump_may_aliases_for): Likewise.
13595 * tree-ssa-operands.c (add_virtual_operand): Likewise.
13596 (add_call_clobber_ops): Likewise.
13597 (add_call_read_ops): Likewise.
13598 (get_asm_expr_operands): Likewise.
13599 * tree-into-ssa.c (dump_decl_set): Likewise.
13600 (update_ssa): Likewise.
13601 * tree-sra.c (scan_function): Likewise.
13602 (decide_instantiations): Likewise.
13603 (scalarize_parms): Likewise.
13604 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
13605 (dsa_named_for): Likewise.
13606 * tree-ssa-structalias.c (update_alias_info): Likewise.
13607 (merge_smts_into): Likewise.
13609 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
13612 * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
13613 * c-opts.c (c_common_handle_option): Wall enables
13614 Wvolatile-register-var.
13615 * common.opt: Move Wvolatile-register-var to...
13618 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
13620 * common.opt (Wlarger-than=): New.
13621 * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
13623 * opts.c (common_handle_option): Handle -Wlarger-than=.
13624 * optc-gen.awk: Likewise.
13625 * opth-gen.awk: Likewise.
13626 * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
13627 * tree-optimize.c (tree_rest_of_compilation): Likewise.
13629 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
13631 * c-common.c (match_case_to_enum_1): Add appropriate
13632 OPT_W* parameter to warning.
13633 (c_do_switch_warnings): Likewise.
13634 * c-typeck.c (warning_init): Add one more parameter following
13635 'warning' function.
13636 (push_init_level): Update call to warning_init.
13637 (pop_init_level): Likewise.
13638 (add_pending_init): Likewise.
13639 (output_init_element: Likewise.
13641 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
13644 * toplev.c (toplev_main): If there are warnings or error, print
13645 errors for ignored options.
13646 * opts.c (ignored_options): New static variable.
13647 (postpone_unknown_option_error): New.
13648 (print_ignored_options): New.
13649 (handle_option): Postpone errors for unknown -Wno-* options.
13650 * opts.h (print_ignored_options): Declare.
13652 2008-02-25 Richard Sandiford <rsandifo@nildram.co.uk>
13654 * config/mips/mips.md (loadgp_blockage, blockage): Change type
13657 2008-02-25 Richard Guenther <rguenther@suse.de>
13660 2008-02-25 Richard Guenther <rguenther@suse.de>
13662 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
13663 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
13664 (lookup_decl_from_uid): Declare.
13665 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
13666 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
13667 (decl_for_uid_map): New global hashtable mapping DECL_UID
13669 (init_ttree): Allocate it.
13670 (insert_decl_to_uid_decl_map): New helper function.
13671 (make_node_stat): Insert new decls into the map.
13672 (copy_node_stat): Likewise.
13673 (lookup_decl_from_uid): New function.
13674 (print_decl_for_uid_map_statistics): New helper.
13675 (dump_tree_statistics): Call it.
13677 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
13678 (referenced_var_iterator): Adjust.
13679 (FOR_EACH_REFERENCED_VAR): Adjust.
13680 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
13681 (num_referenced_vars): Adjust.
13682 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
13683 (first_referenced_var): Remove.
13684 (end_referenced_vars_p): Likewise.
13685 (next_referenced_var): Likewise.
13686 (referenced_var_iterator_set): New helper function.
13687 * tree-dfa.c (referenced_var_lookup): Adjust.
13688 (referenced_var_check_and_insert): Likewise.
13689 (remove_referenced_var): Likewise.
13690 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
13691 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
13692 (verify_call_clobbering): Likewise.
13693 (verify_memory_partitions): Likewise.
13694 (init_tree_ssa): Allocate bitmap instead of hashtable for
13696 (delete_tree_ssa): Adjust.
13697 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
13698 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
13699 (compute_tag_properties): Likewise.
13700 (set_initial_properties): Likewise.
13701 (find_partition_for): Likewise.
13702 (update_reference_counts): Likewise.
13703 (dump_may_aliases_for): Likewise.
13704 * tree-ssa-operands.c (add_virtual_operand): Likewise.
13705 (add_call_clobber_ops): Likewise.
13706 (add_call_read_ops): Likewise.
13707 (get_asm_expr_operands): Likewise.
13708 * tree-into-ssa.c (dump_decl_set): Likewise.
13709 (update_ssa): Likewise.
13710 * tree-sra.c (scan_function): Likewise.
13711 (decide_instantiations): Likewise.
13712 (scalarize_parms): Likewise.
13713 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
13714 (dsa_named_for): Likewise.
13715 * tree-ssa-structalias.c (update_alias_info): Likewise.
13716 (merge_smts_into): Likewise.
13718 2008-02-25 Janne Blomqvist <jb@gcc.gnu.org>
13721 * doc/invoke.texi (-fcx-limited-range): Document new option.
13722 * toplev.c (process_options): Handle -fcx-fortran-rules.
13723 * common.opt: Add documentation for -fcx-fortran-rules.
13725 2008-02-25 Janne Blomqvist <jb@gcc.gnu.org>
13728 * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
13729 actual behaviour and C99.
13731 2008-02-26 Ben Elliston <bje@au.ibm.com>
13733 * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
13734 (ASM_CPU_POWER6_SPEC): Likewise.
13735 (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
13736 Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
13737 (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
13739 2008-02-25 Richard Guenther <rguenther@suse.de>
13741 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
13742 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
13743 (lookup_decl_from_uid): Declare.
13744 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
13745 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
13746 (decl_for_uid_map): New global hashtable mapping DECL_UID
13748 (init_ttree): Allocate it.
13749 (insert_decl_to_uid_decl_map): New helper function.
13750 (make_node_stat): Insert new decls into the map.
13751 (copy_node_stat): Likewise.
13752 (lookup_decl_from_uid): New function.
13753 (print_decl_for_uid_map_statistics): New helper.
13754 (dump_tree_statistics): Call it.
13756 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
13757 (referenced_var_iterator): Adjust.
13758 (FOR_EACH_REFERENCED_VAR): Adjust.
13759 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
13760 (num_referenced_vars): Adjust.
13761 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
13762 (first_referenced_var): Remove.
13763 (end_referenced_vars_p): Likewise.
13764 (next_referenced_var): Likewise.
13765 (referenced_var_iterator_set): New helper function.
13766 * tree-dfa.c (referenced_var_lookup): Adjust.
13767 (referenced_var_check_and_insert): Likewise.
13768 (remove_referenced_var): Likewise.
13769 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
13770 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
13771 (verify_call_clobbering): Likewise.
13772 (verify_memory_partitions): Likewise.
13773 (init_tree_ssa): Allocate bitmap instead of hashtable for
13775 (delete_tree_ssa): Adjust.
13776 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
13777 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
13778 (compute_tag_properties): Likewise.
13779 (set_initial_properties): Likewise.
13780 (find_partition_for): Likewise.
13781 (update_reference_counts): Likewise.
13782 (dump_may_aliases_for): Likewise.
13783 * tree-ssa-operands.c (add_virtual_operand): Likewise.
13784 (add_call_clobber_ops): Likewise.
13785 (add_call_read_ops): Likewise.
13786 (get_asm_expr_operands): Likewise.
13787 * tree-into-ssa.c (dump_decl_set): Likewise.
13788 (update_ssa): Likewise.
13789 * tree-sra.c (scan_function): Likewise.
13790 (decide_instantiations): Likewise.
13791 (scalarize_parms): Likewise.
13792 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
13793 (dsa_named_for): Likewise.
13794 * tree-ssa-structalias.c (update_alias_info): Likewise.
13795 (merge_smts_into): Likewise.
13797 2008-02-25 Andreas Krebbel <krebbel1@de.ibm.com>
13800 * cse.c (cse_insn): Avoid creation of overlapping MEMs.
13801 * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
13802 * alias.h (nonoverlapping_memrefs_p): Likewise.
13804 2008-02-25 Jan Beulich <jbeulich@novell.com>
13806 * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
13807 * config/i386/netware-libgcc.exp: Add __bswap?i2,
13808 __emultls_get_address, __emultls_register_common,
13809 __floatundi?f, and _Unwind_GetIPInfo.
13810 * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
13811 Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
13812 (gen_regparm_prefix): Likewise.
13813 (i386_nlm_encode_section_info): Sync with
13814 config/i386/winnt.c:i386_pe_encode_section_info().
13815 (i386_nlm_maybe_mangle_decl_assembler_name): New.
13816 i386_nlm_mangle_decl_assembler_name): New.
13817 (netware_override_options): New.
13818 * config/i386/netware.h (netware_override_options): Declare.
13819 (OVERRIDE_OPTIONS): Re-define to netware_override_options.
13820 (i386_nlm_mangle_decl_assembler_name): Declare.
13821 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
13823 2008-02-25 Ben Elliston <bje@au.ibm.com>
13826 * c-decl.c (grokdeclarator): Remove unused local variables
13827 `typedef_type' and `type_as_written'.
13829 (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
13830 unused local variable `has_hot_blocks'.
13831 (fix_crossing_conditional_branches): Remove unused local variable
13834 2008-02-25 Uros Bizjak <ubizjak@gmail.com>
13836 PR middle-end/19984
13837 * builtins.def (BUILT_IN_NAN): Define as c99 builtin
13838 using DEF_C99_BUILTIN.
13839 (BUILT_IN_NANF): Ditto.
13840 (BUILT_IN_NANL): Ditto.
13842 2008-02-25 Ayal Zaks <zaks@il.ibm.com>
13843 Revital Eres <eres@il.ibm.com>
13845 * modulo-sched.c (calculate_must_precede_follow): Address TODO
13846 regarding the order of two dependent insns in the same row.
13848 2008-02-25 Eric Botcazou <ebotcazou@adacore.com>
13850 * stor-layout.c (layout_decl): Do not bump the alignment of a
13851 bit-field to more than byte alignment if it is packed.
13853 2008-02-24 David Edelsohn <edelsohn@gnu.org>
13855 * config/rs6000/rs6000.c (processor_costs): Add cache costs for
13858 2008-02-24 Diego Novillo <dnovillo@google.com>
13860 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
13863 * tree-vrp.c (vrp_evaluate_conditional): With
13864 -Wtype-limits, emit a warning when comparing against a
13865 constant outside the natural range of OP0's type.
13866 * c.opt (Wtype-limits): Move ...
13867 * common.opt (Wtype-limits): ... here.
13869 2008-02-24 Edmar Wienskoski <edmar@freescale.com>
13871 * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
13872 * config/rs6000/e300c2c3.md: New file.
13873 * config/rs6000/rs6000.c (processor_costs): Add new costs for
13875 (rs6000_override_options): Add e300c2 and e300c3 cases to
13876 processor_target_table. Do not allow usage of Altivec or Spe
13877 with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
13878 (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
13879 * config/rs6000/rs6000.h (processor_type): Add
13880 PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
13881 (ASM_CPU_SPEC): Add e300c2 and e300c3.
13882 * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
13883 and ppce300c3. Include e300c2c3.md.
13885 2008-02-23 David Edelsohn <edelsohn@gnu.org>
13887 * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
13888 instead of TARGET_STRICT_ALIGN.
13890 2008-02-23 Joseph Myers <joseph@codesourcery.com>
13892 * explow.c (memory_address): Assert that the generated address is
13895 2008-02-23 Francois-Xavier Coudert <coudert@clipper.ens.fr>
13898 * config/darwin-protos.h: Add darwin_patch_builtins prototype.
13899 * config/darwin-ppc-ldouble-patch.def: New file.
13900 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
13901 * config/rs6000/rs6000.c (rs6000_init_builtins): Call
13902 SUBTARGET_INIT_BUILTINS if defined.
13903 * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
13906 2008-02-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
13909 * simplify-rtx.c (simplify_binary_operation_1): Add simplification
13910 of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
13912 2008-02-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
13915 * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
13916 file" warning condtional on -Winvalid-PCH.
13918 2008-02-23 Daniel Jacobowitz <dan@codesourcery.com>
13920 * expmed.c (extract_bit_field): Always use adjust_address for MEM.
13922 2008-02-23 Uros Bizjak <ubizjak@gmail.com>
13926 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
13927 prevent reload from using MMX registers.
13928 (*mov<mode>_internal): Ditto.
13929 (*movv2sf_internal_rex64): Ditto.
13930 (*movv2sf_internal): Ditto.
13932 2008-02-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13934 PR documentation/31569
13935 * doc/install.texi2html: Use makeinfo --no-number-sections.
13937 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
13939 * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
13940 ensure that we can address an entire entity > 8 bytes. Don't
13941 generate reg+reg addressing for such data.
13943 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
13945 * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
13946 strings when optimizing for size, unless the target cares about
13949 2008-02-22 Tom Tromey <tromey@redhat.com>
13951 * regclass.c (current_pass): Remove declaration.
13953 2008-02-22 Anatoly Sokolov <aesok@post.ru>
13955 * config/avr/libgcc.S (__RAMPZ__): Define.
13956 (__do_copy_data): Add for devices with 128KB code memory.
13958 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
13960 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
13962 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
13964 2008-02-22 Hans-Peter Nilsson <hp@axis.com>
13966 * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
13969 2008-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13972 * c-typeck.c (build_binary_op): Warn about floating point
13973 comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
13975 2008-02-21 Janis Johnson <janis187@us.ibm.com>
13978 * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
13979 (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
13981 (rs6000_override_options): Set altivec_abi as default, not override,
13982 for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
13983 TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
13984 is used; use new member spe_abi.
13985 (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
13986 spe_abi and altivec_abi.
13988 2008-02-22 Tomas Bily <tbily@suse.cz>
13990 * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
13992 2008-02-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13995 * config.build (build_file_translate): Set to `CMD //c' only if
13997 * Makefile.in (build_file_translate): Improve comment.
13999 2008-02-21 Jan Hubicka <jh@suse.cz>
14001 * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
14002 PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
14003 PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
14005 2008-02-21 Michael Matz <matz@suse.de>
14008 * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
14010 2008-02-21 Uros Bizjak <ubizjak@gmail.com>
14012 * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
14013 movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
14014 as insn constraint.
14015 * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
14016 from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
14017 SSE_VEC_FLOAT_MODE_P as insn constraint.
14018 (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
14019 (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
14020 sse4a_movntdf using MODEF mode iterator.
14021 (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
14022 sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
14023 (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
14024 (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
14025 (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
14026 (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
14027 (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
14029 2008-02-21 Richard Guenther <rguenther@suse.de>
14031 * tree.def (PAREN_EXPR): New tree code.
14032 * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
14034 * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
14035 * expr.c (expand_expr_real_1): Likewise.
14036 * tree-inline.c (estimate_num_insns_1): Likewise.
14037 * tree-complex.c (expand_complex_move): Likewise.
14038 * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
14041 2008-02-20 Kaz Kojima <kkojima@gcc.gnu.org>
14044 * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
14046 2008-02-20 Kaz Kojima <kkojima@gcc.gnu.org>
14049 * config/sh/sh.md (jump_compact): Disable for crossing jumps.
14051 * config/sh/sh.c (find_barrier): Don't go past
14052 NOTE_INSN_SWITCH_TEXT_SECTIONS note.
14054 2008-02-20 DJ Delorie <dj@redhat.com>
14056 * config/h8300/h8300.md (insv): Force source operand to be a register.
14058 * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
14059 as a jump, not as a plain insn.
14061 2008-02-20 Seongbae Park <seongbae.park@gmail.com>
14063 * doc/invoke.texi (Warning Options): Add new option
14064 -Wframe-larger-than=.
14065 (-Wframe-larger-than): Document.
14067 * flags.h (warn_frame_larger_than, frame_larger_than_size):
14068 Add declarations for new option variables.
14070 * final.c (final_start_function): Check the frame size
14071 before emission and issue a Wframe-larger-than warning.
14073 * opts.c (warn_frame_larger_than, frame_larger_than_size):
14074 Add definitions for new option variables.
14075 (common_handle_option): Handle new option OPT_Wframe_larger_than_.
14077 * common.opt (Wframe-larger-than=): New option.
14079 2008-02-20 Uros Bizjak <ubizjak@gmail.com>
14081 * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
14082 (<sse>_div<mode>3): Ditto.
14083 (<sse>_vmdiv<mode>3): Ditto.
14084 (<sse>_vmsqrt<mode>2): Ditto.
14085 (*smax<mode>3): Ditto.
14086 (sse5_frcz<mode>2): Ditto.
14087 (sse5_vmfrcz<mode>2): Ditto. Use TARGET_SSE5 instead of TARGET_ROUND
14088 as insn constraint.
14090 2008-02-20 Richard Guenther <rguenther@suse.de>
14092 PR middle-end/35265
14093 * builtins.c (validate_arg): If we want an INTEGER_TYPE,
14094 be happy with INTEGRAL_TYPE_P.
14096 2008-02-20 Richard Guenther <rguenther@suse.de>
14098 * fold-const.c (split_tree): Associate floatig-point expressions
14099 if flag_associative_math is set.
14101 2008-02-20 Richard Guenther <rguenther@suse.de>
14103 * tree.h (fold_real_zero_addition_p): Declare.
14104 * fold-const.c (fold_real_zero_addition_p): Export.
14105 * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
14106 floating-point operations with zero and one.
14108 2008-02-20 Paolo Bonzini <bonzini@gnu.org>
14110 * doc/install.texi: Correct references to CFLAGS, replacing them
14111 with BOOT_CFLAGS. Document flags used during bootstrap for
14114 2008-02-20 Uros Bizjak <ubizjak@gmail.com>
14116 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
14117 * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
14118 and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
14120 (smin<mode>3): Ditto from similar patterns.
14121 (smax<mode>3): Ditto.
14122 (*ieee_smin<mode>3): Ditto.
14123 (*ieee_smax<mode>3): Ditto.
14124 * config/i386/sse.md (sse): New mode attribute.
14125 (mov<mode>): Macroize expander from movv4sf and movv2df using
14126 SSEMODEF2P mode iterator.
14127 (<sse>_movnt<mode>): Ditto from similar patterns. Use
14128 SSE_VEC_FLOAT_MODE_P as insn constraint.
14129 (storent<mode>): Ditto.
14130 (storent<mode>): Macroize expander from storentsf and storentdf using
14131 MODEF mode iterator.
14132 (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
14133 mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
14134 (abs<mode>2): Ditto from similar patterns.
14135 (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
14136 (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
14137 (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
14138 (<sse>_vmsqrt<mode>2): Ditto.
14139 (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
14140 (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
14141 (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
14142 (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
14143 (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
14144 sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
14145 mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
14147 (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
14148 iterator and SSE_FLOAT_MODE_P as insn constraint.
14149 (<sse>_ucomi): Ditto from similar patterns.
14150 (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
14151 sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
14152 SSE_VEC_FLOAT_MODE_P as insn constraint.
14153 (vcond<mode>): Ditto from similar patterns.
14154 (and<mode>3, *and<mode>3): Ditto.
14155 (<sse>_nand<mode>3): Ditto.
14156 (ior<mode>3, *ior<mode>3): Ditto.
14157 (xor<mode>3, *xor<mode>3): Ditto.
14158 (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
14159 iterator and SSE_FLOAT_MODE_P as insn constraint.
14160 (*nand<mode>3): Ditto from similar patterns.
14161 (*ior<mode>3): Ditto.
14162 (*xor<mode>3): Ditto.
14164 2008-02-20 Ira Rosen <irar@il.ibm.com>
14166 * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
14167 vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
14168 vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
14170 2008-02-19 Jan Hubicka <jh@suse.cz>
14172 * predict.c (tree_bb_level_predictions): Remove variable next
14173 mistakely introduced by previous commit.
14175 2008-02-19 Jan Hubicka <jh@suse.cz>
14177 * predict.c (predict_paths_leading_to): Rewrite.
14178 (predict_paths_for_bb): New.
14179 (tree_bb_level_predictions): Update call of predict_paths_leading_to.
14181 2008-02-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14184 * Makefile.in (build_file_translate): New.
14185 (gcc-vers.texi): Use it for translating $(abs_srcdir).
14186 * config.build (build_file_translate): Set to `CMD //c' on MinGW.
14187 * configure.ac (build_file_translate): Substitute it.
14188 * configure: Regenerate.
14190 2008-02-19 Jan Hubicka <jh@suse.cz>
14192 PR rtl-optimization/34408
14193 * see.c (see_def_extension_not_merged): Copy subreg so we don't have
14196 2008-02-19 Jan Hubicka <jh@suse.cz>
14198 PR middle-end/28779
14199 * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
14202 2008-02-19 H.J. Lu <hongjiu.lu@intel.com>
14205 * config/i386/i386-modes.def: Revert the last DI alignment
14206 change until Ada people can look into it.
14208 2008-02-19 Nick Clifton <nickc@redhat.com>
14210 * opts.c (print_specific_help): Fix typo in --help text.
14212 2008-02-19 Jakub Jelinek <jakub@redhat.com>
14215 * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
14216 32-bit inline asm without asm alternatives for host GCC < 3.0.
14218 2008-02-19 Richard Guenther <rguenther@suse.de>
14220 PR tree-optimization/34989
14221 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
14222 Allow propagation to INDIRECT_REF if we can simplify only.
14224 2008-02-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
14226 * c-common.c (warn_for_collisions_1): Use appropriate option when
14229 2008-02-19 Nick Clifton <nickc@redhat.com>
14232 * opts.c (undocumented_msg): Leave blank unless checking is enabled.
14233 (handle_options): Fix indentation.
14234 (print_filtered_help): If no language-specific options were
14235 displayed tell the user how to list all the options supported by
14236 the language's front-end.
14237 (print_specific_help): Fix indentation and remove duplicate line.
14238 (common_handle_option): Handle the -v option.
14239 For --help enable the display of undocumented options if the -v
14240 switch has been included on the command line.
14241 For --help= check for overlaps in the arguments between the option
14242 classes and the language names and issue a warning when they
14243 cannot be disambiguated.
14244 * c.opt (v): Pass on to the common option handler.
14246 2008-02-19 Revital Eres <eres@il.ibm.com>
14248 * modulo-sched.c (sms_schedule): Change dump message when
14249 create_ddg function fails.
14250 (try_scheduling_node_in_cycle): Rename row to cycle.
14251 (print_partial_schedule): Rename CYCLE to ROW.
14253 2008-02-19 Christian Bruel <christian.bruel@st.com>
14254 Zdenek Dvorak <ook@ucw.cz>
14256 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
14258 2008-02-19 Uros Bizjak <ubizjak@gmail.com>
14261 * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
14262 (*x86_movdicc_0_m1_se): Ditto.
14264 2008-02-19 Uros Bizjak <ubizjak@gmail.com>
14266 * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
14267 (CMPtype): Define as __gcc_CMPtype.
14268 * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
14269 (CMPtype): Define as __gcc_CMPtype.
14271 2008-02-19 Hans-Peter Nilsson <hp@axis.com>
14273 Support valgrind 3.3 for --enable-checking=valgrind.
14274 * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
14276 [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
14277 [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
14278 [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
14279 * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
14280 Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
14281 VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
14282 VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
14284 * ggc-zone.c: Similar.
14285 * ggc-page.c: Similar.
14287 2008-02-19 Paul Brook <paul@codesourcery.com>
14290 * config/arm/ieee754-df.S: Fix do_it typo.
14291 * config/arm/ieee754-sf.S: Fix do_it typo.
14293 2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
14296 * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
14297 (OPTION_MASK_ISA_3DNOW_SET): Likewise.
14298 (OPTION_MASK_ISA_SSE_SET): Likewise.
14299 (OPTION_MASK_ISA_SSE2_SET): Likewise.
14300 (OPTION_MASK_ISA_SSE3_SET): Likewise.
14301 (OPTION_MASK_ISA_SSSE3_SET): Likewise.
14302 (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
14303 (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
14304 (OPTION_MASK_ISA_SSE4_SET): Likewise.
14305 (OPTION_MASK_ISA_SSE4A_SET): Likewise.
14306 (OPTION_MASK_ISA_SSE5_SET): Likewise.
14307 (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
14308 (OPTION_MASK_ISA_MMX_UNSET): Updated.
14309 (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
14310 (OPTION_MASK_ISA_SSE_UNSET): Likewise.
14311 (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
14312 (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
14313 (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
14314 (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
14315 (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
14316 (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
14317 (OPTION_MASK_ISA_SSE4): Removed.
14318 (ix86_handle_option): Turn on bits in ix86_isa_flags and
14319 ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
14320 (override_options): Don't turn on implied SSE/MMX bits in
14323 2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
14325 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
14328 2008-02-18 Joey Ye <joey.ye@intel.com>
14330 PR middle-end/34921
14331 * tree-nested.c (insert_field_into_struct): Set type alignment
14332 to field alignment if the former is less than the latter.
14334 2008-02-18 Jakub Jelinek <jakub@redhat.com>
14336 * BASE-VER: Set to 4.4.0.
14338 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14340 * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
14341 * doc/cfg.texi: Likewise.
14342 * doc/extend.texi: Likewise.
14343 * doc/gty.texi: Likewise.
14344 * doc/invoke.texi: Likewise.
14345 * doc/loop.texi: Likewise.
14346 * doc/md.texi: Likewise.
14347 * doc/passes.texi: Likewise.
14348 * doc/rtl.texi: Likewise.
14349 * doc/sourcebuild.texi: Likewise.
14350 * doc/tm.texi: Likewise.
14351 * doc/tree-ssa.texi: Likewise.
14353 2008-02-17 Richard Guenther <rguenther@suse.de>
14355 PR middle-end/35227
14356 * tree-complex.c (init_parameter_lattice_values): Handle parameters
14357 without default definition.
14359 2008-02-17 Richard Guenther <rguenther@suse.de>
14361 PR tree-optimization/35231
14362 * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
14365 2008-02-17 Uros Bizjak <ubizjak@gmail.com>
14368 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
14369 * config/i386/sfp-machine.h (CMPtype): Define as typedef using
14370 libgcc_cmp_return mode.
14372 2008-02-16 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
14375 * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
14377 2008-02-16 Ralf Corsepius <ralf.corsepius@rtems.org>
14379 * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
14382 2008-02-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14384 * doc/c-tree.texi: Use `@.' where appropriate.
14385 * doc/extend.texi: Likewise.
14386 * doc/install.texi: Likewise.
14387 * doc/invoke.texi: Likewise.
14388 * doc/loop.texi: Likewise.
14389 * doc/makefile.texi: Likewise.
14390 * doc/md.texi: Likewise.
14391 * doc/passes.texi: Likewise.
14392 * doc/standards.texi: Likewise.
14393 * doc/tm.texi: Likewise.
14395 2008-02-15 Jakub Jelinek <jakub@redhat.com>
14397 PR middle-end/35196
14398 * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
14400 (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
14401 rather than in entry_bb.
14403 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
14405 * config/i386/sfp-machine.h (CMPtype): Define as typedef using
14406 libgcc_cmp_return mode.
14408 2008-02-15 Jakub Jelinek <jakub@redhat.com>
14410 PR middle-end/35130
14411 * tree-nested.c (convert_call_expr): Put FRAME.* vars into
14412 OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
14414 2008-02-15 Richard Guenther <rguenther@suse.de>
14415 Zdenek Dvorak <ook@ucw.cz>
14417 PR tree-optimization/35164
14418 * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
14419 * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
14420 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
14421 Only propagate addresses which do not have abnormal SSA_NAMEs
14424 2008-02-15 Joseph Myers <joseph@codesourcery.com>
14427 * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
14429 2008-02-15 Jan Hubicka <jh@suse.cz>
14431 PR middle-end/35149
14432 * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
14434 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
14436 PR middle-end/34621
14437 * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
14438 when calculating alignment_pad.
14440 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
14442 * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
14443 (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
14444 * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
14445 and STACK_BOUNDARY define.
14447 2008-02-14 Danny Smith <dannysmith@users.sourceforge.net>
14449 PR preprocessor/35061
14450 * c-pragma.c (handle_pragma_pop_macro): Check that
14451 pushed_macro_table has been allocated.
14453 2008-02-14 Eric Botcazou <ebotcazou@adacore.com>
14455 PR middle-end/35136
14456 * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
14457 (force_gimple_operand): Likewise.
14458 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
14459 for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
14460 Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
14461 (find_interesting_uses_address): Check addressability and alignment
14462 of the base expression only after substituting bases of IVs into it.
14464 2008-02-14 Michael Matz <matz@suse.de>
14467 * function.c (instantiate_virtual_regs_in_insn): Reload address
14468 before falling back to reloading the whole operand.
14470 2008-02-14 Andreas Krebbel <krebbel1@de.ibm.com>
14472 * config/s390/s390.c (s390_mainpool_start): Emit the pool
14473 before the first section switch note.
14475 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14477 * doc/bugreport.texi: Update copyright years.
14478 * doc/c-tree.texi: Likewise.
14479 * doc/cfg.texi: Likewise.
14480 * doc/cpp.texi: Likewise.
14481 * doc/cppinternals.texi: Likewise.
14482 * doc/fragments.texi: Likewise.
14483 * doc/frontends.texi: Likewise.
14484 * doc/gcc.texi: Likewise.
14485 * doc/gty.texi: Likewise.
14486 * doc/hostconfig.texi: Likewise.
14487 * doc/implement-c.texi: Likewise.
14488 * doc/libgcc.texi: Likewise.
14489 * doc/loop.texi: Likewise.
14490 * doc/makefile.texi: Likewise.
14491 * doc/options.texi: Likewise.
14492 * doc/passes.texi: Likewise.
14493 * doc/rtl.texi: Likewise.
14494 * doc/sourcebuild.texi: Likewise.
14495 * doc/standards.texi: Likewise.
14496 * doc/tree-ssa.texi: Likewise.
14497 * doc/trouble.texi: Likewise.
14499 * doc/extend.texi: Use @: or add comma where appropriate.
14500 * doc/invoke.texi: Likewise.
14501 * doc/tm.texi: Likewise.
14503 2008-02-14 Alan Modra <amodra@bigpond.net.au>
14506 * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
14509 2008-02-14 Jesper Nilsson <jesper.nilsson@axis.com>
14511 * doc/md.texi (clz, ctz): Add reference.
14512 * doc/rtl.texi (clz, ctz): Likewise.
14514 2008-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14517 * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
14520 2008-02-13 Andreas Krebbel <krebbel1@de.ibm.com>
14522 * config/s390/s390.c (struct constant_pool): New field
14523 emit_pool_after added.
14524 (s390_mainpool_start): Set the emit_pool_after flag according
14525 to the section switch notes.
14526 (s390_mainpool_finish): Consider emit_pool_after when emitting
14527 the literal pool at the end of the function.
14528 (s390_chunkify_start): Force literal pool splits at section
14531 2008-02-13 Michael Matz <matz@suse.de>
14534 * var-tracking.c (clobber_variable_part): Correctly traverse the
14537 2008-02-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
14540 * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
14541 Add -fdump-ipa-inline.
14542 * tree-dump.c (dump_files): Remove tree-inlined dump.
14543 * tree-pass.h (tree_dump_index): Remove TDI_inlined.
14545 2008-02-12 Richard Guenther <rguenther@suse.de>
14547 PR tree-optimization/35171
14548 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
14551 2008-02-12 Richard Guenther <rguenther@suse.de>
14553 PR middle-end/35163
14554 * fold-const.c (fold_widened_comparison): Use get_unwidened in
14555 value-preserving mode. Disallow final truncation.
14557 2008-02-12 Eric Botcazou <ebotcazou@adacore.com>
14559 PR middle-end/35136
14560 * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
14561 code from here to...
14562 (force_gimple_operand): ...here.
14564 2008-02-12 Jakub Jelinek <jakub@redhat.com>
14567 * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
14568 non-compatible pointers.
14569 (generate_element_copy): If SRC and DST are RECORD_TYPEs with
14570 different FIELD_DECLs, try harder by comparing field offsets, sizes
14573 PR inline-asm/35160
14574 * function.c (match_asm_constraints_1): Don't replace the same input
14577 2008-02-12 Anatoly Sokolov <aesok@post.ru>
14579 * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
14580 * config/avr/avr.c (expand_prologue): Save RAMPZ register.
14581 (expand_epilogue): Restore RAMPZ register.
14582 * config/avr/avr.md (RAMPZ_ADDR): New constant.
14584 2008-02-11 Kai Tietz <kai.tietz@onevision.com>
14586 * config/i386/cygwin.asm: (__alloca): Correct calling
14587 convention and alignment.
14588 (__chkstk): Force 8 byte stack alignment.
14590 2008-02-11 Uros Bizjak <ubizjak@gmail.com>
14591 Richard Guenther <rguenther@suse.de>
14593 PR tree-optimization/33992
14594 * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
14595 the zero we compare against.
14597 2008-02-10 Danny Smith <dannysmith@users.sourceforge.net>
14599 PR libfortran/35063
14600 * gthr-win32.h (__gthread_mutex_destroy_function): New function
14601 to CloseHandle after unlocking to prevent accumulation of handle
14604 2008-02-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14606 PR middle_end/34150
14607 * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
14608 pic_label_operand source. Similarly, add a REG_LABEL_OPERAND note
14609 and update LABEL_NUSES during and after reload.
14611 2008-02-08 Steven Bosscher <stevenb.gcc@gmail.com>
14613 PR middle-end/34627
14614 * combine.c (simplify_if_then_else): Make sure the comparison is
14615 against const0_rtx when simplifying to (abs x) or (neg (abs X)).
14617 2008-02-08 Richard Sandiford <rsandifo@nildram.co.uk>
14620 * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
14621 (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
14622 * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
14623 (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
14624 * tree.h (get_type_static_bounds): Likewise.
14626 2008-02-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14628 * doc/invoke.texi (Option Summary, C++ Dialect Options)
14629 (Objective-C and Objective-C++ Dialect Options, Warning Options):
14630 Make -Wfoo language annotations match what the compiler outputs.
14632 2008-02-08 Sa Liu <saliu@de.ibm.com>
14634 * config/spu/spu-builtins.def: Fixed wrong parameter type in spu
14635 intrinsics spu_convts, spu_convtu, spu_convtf.
14637 2008-02-08 Hans-Peter Nilsson <hp@axis.com>
14639 * doc/extend.texi (Function Attributes) <noinline>: Mention
14640 asm ("") as method to keep calls.
14642 2008-02-07 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
14645 * doc/options.texi (Options): Replace references to opts.sh with
14647 * opts-common.c: Likewise.
14648 * optc-gen.awk: Likewise.
14650 2008-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
14652 * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
14654 2008-02-07 Richard Henderson <rth@redhat.com>
14657 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
14658 EXPR_LIST for the REG_EQUAL instead of a comparison with a
14661 2008-02-07 Uros Bizjak <ubizjak@gmail.com>
14663 PR tree-optimization/35085
14664 * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
14665 for operand entry oe2 in addition to operand entry oe3 in order to
14666 expose more opportunities for vectorizer sum reduction.
14668 2008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14671 * Makefile.in (LIBS): Remove $(GMPLIBS).
14672 (cc1-dummy, cc1): Add $(GMPLIBS).
14674 2008-02-06 Jan Hubicka <jh@suse.cz>
14677 * i386.md (moddf_integer): Do not produce partial memory stalls for
14678 targets where it hurts.
14680 2008-02-06 Uros Bizjak <ubizjak@gmail.com>
14683 * optabs.c (expand_float): Do not check for decimal modes when
14684 expanding unsigned integer through signed conversion.
14686 2008-02-06 Nick Clifton <nickc@redhat.com>
14688 * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
14689 inside the clobber with a match_operand and duplicated operand
14690 number in the constraint.
14691 (ineqbranchsi): Delete redundant comment.
14693 2008-02-06 Ralf Corsepius <ralf.corsepius@rtems.org>
14695 * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add
14696 builtin_define ("__USE_INIT_FINI__").
14697 * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
14699 * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
14701 2008-02-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14703 PR documentation/30330
14704 * doc/invoke.texi (C++ Dialect Options)
14705 (Objective-C and Objective-C++ Dialect Options, Warning Options):
14706 For each warning option -Wfoo that allows -Wno-foo, ensure both
14707 -Wfoo and -Wno-foo are listed in the option index. Fix index
14708 entry of -Wswitch-default, index -Wnormalized= including the
14709 `=', and -Wlarger-than-@var{len} including @var{len}.
14711 2008-02-05 Uros Bizjak <ubizjak@gmail.com>
14713 * config/i386/i386.md (floatunssisf2): Use
14714 ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
14715 (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
14716 Macroize expander using MODEF mode iterator.
14718 2008-02-05 Diego Novillo <dnovillo@google.com>
14720 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
14723 * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
14725 2008-02-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14728 * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
14730 2008-02-05 H.J. Lu <hongjiu.lu@intel.com>
14733 * config/i386/i386.c (ix86_function_sseregparm): Add an arg
14734 to indicate if a message should be generated.
14735 (init_cumulative_args): Updated.
14736 (function_value_32): Likewise.
14738 2008-02-05 Joseph Myers <joseph@codesourcery.com>
14740 * doc/include/texinfo.tex: Update to version 2008-02-04.16.
14742 2008-02-05 Uros Bizjak <ubizjak@gmail.com>
14745 * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
14746 Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
14748 2008-02-04 Diego Novillo <dnovillo@google.com>
14750 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
14753 * tree-vrp.c (vrp_evaluate_conditional): With
14754 -Wtype-limits, emit a warning when comparing against a
14755 constant outside the natural range of OP0's type.
14757 2008-02-04 Richard Guenther <rguenther@suse.de>
14759 PR middle-end/33631
14760 * expr.c (count_type_elements): Give for unions instead of
14763 2008-02-04 Richard Guenther <rguenther@suse.de>
14765 PR middle-end/35043
14766 * gimplify.c (gimplify_init_ctor_eval): Convert array indices
14767 to TYPE_DOMAINs base type instead of using bitsizetype here.
14769 2008-02-03 Jason Merrill <jason@redhat.com>
14771 * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
14773 2008-02-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14776 * doc/invoke.texi (C++ Dialect Options, Optimize Options)
14777 (HPPA Options, i386 and x86-64 Options, IA-64 Options)
14778 (RS/6000 and PowerPC Options): Fix typos and markup.
14779 * doc/passes.texi (Tree-SSA passes): Likewise.
14781 2008-02-02 Michael Matz <matz@suse.de>
14784 * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
14785 from record_last_reg_set_info.
14786 (record_last_reg_set_info): Take an RTX argument, iterate over all
14787 constituent hardregs.
14788 (record_last_set_info, record_opr_changes): Change calls to
14789 new signature or to record_last_reg_set_info_regno.
14791 2008-02-02 Gerald Pfeifer <gerald@pfeifer.com>
14793 * doc/extend.texi (X86 Built-in Functions): Fix grammar.
14795 2008-02-01 Hans-Peter Nilsson <hp@axis.com>
14797 PR rtl-optimization/34773
14798 * reg-notes.def (EQUAL): Mention significance of combination of
14799 REG_EQUAL and REG_RETVAL.
14800 * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
14801 insn that has a REG_RETVAL.
14803 2008-02-01 Roger Sayle <roger@eyesopen.com>
14806 * configure.ac (--enable-fixed-point): Disable unless explicitly
14808 * configure: Regenerate.
14810 2008-02-01 Richard Guenther <rguenther@suse.de>
14813 * invoke.texi (-finline-limit): Remove no longer true parts
14814 of the documentation. Note that there is no default value.
14816 2008-02-01 Andrew Pinski <pinskia@gmail.com>
14817 Mark Mitchell <mark@codesourcery.com>
14818 Ben Elliston <bje@au.ibm.com>
14821 * doc/extend.texi (Other Builtins): Document.
14823 2008-01-31 Tom Browder <tom.browder@gmail.com>
14825 * doc/c-tree.texi (Types): Fix grammar.
14826 (Expression trees): Ditto.
14827 * doc/passes.texi (Tree-SSA passes): Ditto.
14829 * doc/configterms.texi (Configure Terms): Fix typo.
14830 * doc/cpp.texi (Common Predefined Macros): Ditto.
14831 * doc/md.texi (Machine Constraints): Ditto.
14833 * doc/makefile.texi (Makefile): Add comma.
14835 2008-01-31 Tom Browder <tom.browder@gmail.com>
14836 Gerald Pfeifer <gerald@pfeifer.com>
14838 * doc/sourcebuild.texi (Front End): Remove references to CVS
14839 and CVSROOT/modules.
14840 (Texinfo Manuals): Replace reference to CVS by one to SVN.
14841 (Back End): Remove reference to CVS.
14843 2008-01-31 Richard Sandiford <rsandifo@nildram.co.uk>
14846 * config/mips/mips.c (gen_load_const_gp): New function, taking a
14848 (mips16_gp_pseudo_reg): ...here.
14849 * config/mips/mips.md (load_const_gp): Replace with...
14850 (load_const_gp_<mode>): ...this :P-based insn.
14852 2008-01-31 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
14854 * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
14855 options. Minor fixes.
14856 (-std): Move reference to standards closer to where language
14857 standards are first mentioned.
14859 2008-01-31 Richard Sandiford <rsandifo@nildram.co.uk>
14861 PR rtl-optimization/34995
14862 * reload.c (alternative_allows_const_pool_ref): Take an rtx
14863 parameter and return a bool. If the rtx parameter is nonnull,
14864 check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
14865 (find_reloads): Update call accordingly. Pass the new operand
14866 if it needed no address reloads, otherwise pass null.
14868 2008-01-30 Richard Henderson <rth@redhat.com>
14871 * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
14872 for unbounded arrays.
14874 2008-01-30 Silvius Rus <rus@google.com>
14876 * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
14878 2008-01-30 Jan Hubicka <jh@suse.cz>
14881 * i386.c (init_cumulative_args): Use real function declaration when
14884 2008-01-30 Richard Sandiford <rsandifo@nildram.co.uk>
14886 PR rtl-optimization/34998
14887 * global.c (build_insn_chain): Treat non-subreg_lowpart
14888 SUBREGs of pseudos as clobbering all the words covered by the
14889 SUBREG, not just all the bytes.
14890 * ra-conflict.c (clear_reg_in_live): Likewise. Take the
14891 original df_ref rather than an extract parameter.
14892 (global_conflicts): Update call accordingly.
14894 2008-01-30 Andreas Krebbel <krebbel1@de.ibm.com>
14896 * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
14897 the overflow check to make it easier to read.
14898 (__fixtfdi): Change the type of the ll member in union
14899 long_double to UDItype_x.
14901 2008-01-30 Jakub Jelinek <jakub@redhat.com>
14903 PR middle-end/34969
14904 * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
14905 * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
14906 * tree-inline.c (fold_marked_statements): Call
14907 cgraph_update_edges_for_call_stmt if folding a call statement.
14908 * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
14909 debug_generic_stmt calls, reset it back afterwards.
14912 * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
14914 * c-typeck.c (build_external_ref): Don't pedwarn about
14915 static vars in current function's scope.
14917 2008-01-29 Joseph Myers <joseph@codesourcery.com>
14919 * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
14921 2008-01-29 Bernhard Fischer <aldot@gcc.gnu.org>
14924 * ipa-struct-reorg.c: Fix spelling.
14925 * params.def: Ditto.
14927 2008-01-29 Richard Guenther <rguenther@suse.de>
14929 PR middle-end/35006
14930 * tree-inline.h (struct copy_body_data): Add remapping_type_depth
14932 * tree-inline.c (remap_type): Increment remapping_type_depth
14933 around remapping types.
14934 (copy_body_r): Only add referenced variables if they are referenced
14935 from code, not types.
14937 2008-01-29 Douglas Gregor <doug.gregor@gmail.com>
14948 * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
14949 qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
14951 2008-01-28 Andy Hutchinson <hutchinsonandy@netscape.net>
14954 * config/avr/avr.c (expand_prologue): Use correct QI mode frame
14955 pointer for tiny stack.
14957 2008-01-28 Bernhard Fischer <aldot@gcc.gnu.org>
14959 * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
14961 2008-01-28 Bernhard Fischer <aldot@gcc.gnu.org>
14963 * config/vx-common.h: Fix typo in comment.
14965 2008-01-28 Ian Lance Taylor <iant@google.com>
14969 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
14970 coalesce pointers if they have different DECL_NO_TBAA_P values.
14971 * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
14972 between variables with different DECL_NO_TBAA_P values.
14974 2008-01-28 Nathan Froyd <froydnj@codesourcery.com>
14977 * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
14978 are not legitimate small data references on SPE targets.
14980 2008-01-28 David Daney <ddaney@avtrex.com>
14982 * doc/install.texi (mips-*-*): Recommend binutils 2.18.
14984 2008-01-28 David Daney <ddaney@avtrex.com>
14986 * doc/install.texi (--disable-libgcj-bc): Reword documentation.
14988 2008-01-27 Joseph Myers <joseph@codesourcery.com>
14990 * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
14991 m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
14992 *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
14993 *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
14994 hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
14995 i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
14996 i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
14997 vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
14999 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
15001 * basic-block.h (condjump_equiv_p): Fix comment.
15003 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
15005 * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
15006 print_generic_stmt_indented): Fix comment.
15008 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
15010 * configure.ac (__stack_chk_fail): Add detecion for availability
15011 of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
15012 * configure: Regenerate.
15014 2008-01-26 Maxim Kuvyrkov <maxim@codesourcery.com>
15016 PR middle-end/34688
15017 * final.c (output_addr_const): Handle TRUNCATE.
15019 2008-01-26 Zdenek Dvorak <ook@ucw.cz>
15022 * tree-ssa-loop-ivopts.c (comp_cost): New type.
15023 (zero_cost, infinite_cost): New constants.
15024 (struct cost_pair): Change type of cost to comp_cost.
15025 (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
15026 (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
15028 (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
15029 split_address_cost, ptr_difference_cost, difference_cost,
15030 get_computation_cost_at, get_computation_cost,
15031 determine_use_iv_cost_generic, determine_use_iv_cost_address,
15032 determine_use_iv_cost_condition, determine_use_iv_costs,
15033 cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
15034 iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
15035 iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
15036 Change type of cost to comp_cost.
15037 (determine_iv_cost): Increase cost of non-original ivs, instead
15038 of decreasing the cost of original ones.
15039 (get_address_cost): Indicate the complexity of the addressing mode
15041 (try_add_cand_for): Prefer using ivs not specific to some object.
15042 * tree-flow.h (force_expr_to_var_cost): Declaration removed.
15044 2008-01-26 Peter Bergner <bergner@vnet.ibm.com>
15045 Janis Johnson <janis187@us.ibm.com>
15048 * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
15049 (TARGET_INSTANTIATE_DECLS): Likewise.
15050 * target.h (expand_to_rtl_hook): New target hook.
15051 (instantiate_decls): Likewise.
15052 * function.c (instantiate_decl): Make non-static. Rename to...
15053 (instantiate_decl_rtl): ... this.
15054 (instantiate_expr): Use instantiate_decl_rtl.
15055 (instantiate_decls_1): Likewise.
15056 (instantiate_decls): Likewise.
15057 (instantiate_virtual_regs: Call new instantiate_decls taget hook.
15058 * function.h (instantiate_decl_rtl): Add prototype.
15059 * cfgexpand.c (target.h): New include.
15060 (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
15061 * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
15062 (TARGET_INSTANTIATE_DECLS): Likewise.
15063 (TARGET_INITIALIZER): New target hooks added.
15064 * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
15066 * config/rs6000/rs6000.c (tree-flow.h): New include.
15067 (machine_function): Add sdmode_stack_slot field.
15068 (rs6000_alloc_sdmode_stack_slot): New function.
15069 (rs6000_instantiate_decls): Likewise.
15070 (rs6000_secondary_memory_needed_rtx): Likewise.
15071 (rs6000_check_sdmode): Likewise.
15072 (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
15073 (TARGET_INSTANTIATE_DECLS): Likewise.
15074 (rs6000_hard_regno_mode_ok): Allow SDmode.
15075 (num_insns_constant): Likewise. Handle _Decimal32 constants.
15076 (rs6000_emit_move): Handle SDmode.
15077 (function_arg_advance): Likewise.
15078 (function_arg): Likewise.
15079 (rs6000_gimplify_va_arg): Likewise. Add special handling of
15080 SDmode var args for 32-bit compiles.
15081 (rs6000_secondary_reload_class): Handle SDmode.
15082 (rs6000_output_function_epilogue): Likewise.
15083 (rs6000_function_value): Simplify if statement.
15084 (rs6000_libcall_value): Likewise.
15085 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
15086 (SECONDARY_MEMORY_NEEDED_RTX): Add define.
15087 * config/rs6000/dfp.md (movsd): New define_expand and splitter.
15088 (movsd_hardfloat): New define_insn.
15089 (movsd_softfloat): Likewise.
15090 (movsd_store): Likewise.
15091 (movsd_load): Likewise.
15092 (extendsddd2): Likewise.
15093 (extendsdtd2): Likewise.
15094 (truncddsd2): Likewise.
15095 (movdd_hardfloat64): Fixup comment.
15096 (UNSPEC_MOVSD_LOAD): New constant.
15097 (UNSPEC_MOVSD_STORE): Likewise.
15099 2008-01-26 Jakub Jelinek <jakub@redhat.com>
15102 * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
15104 (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
15105 (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
15106 (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
15107 and TRUTH_XOR_EXPR.
15109 2008-01-26 David Edelsohn <edelsohn@gnu.org>
15112 * config.gcc: Separate AIX 5.3 from AIX 6.1.
15113 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
15114 __LONGDOUBLE128 too.
15115 * config/rs6000/aix61.h: New file.
15117 2008-01-26 Richard Sandiford <rsandifo@nildram.co.uk>
15119 PR rtl-optimization/34959
15120 * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
15121 popcount and parity rtxes the same mode as their operand.
15122 Truncate or extend the result to the return value's mode
15125 2008-01-26 Richard Sandiford <rsandifo@nildram.co.uk>
15128 * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
15129 * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
15130 to GOT_VERSION_REGNUM.
15131 (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
15132 (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
15133 * config/mips/mips.c (mips_emit_call_insn): New function.
15134 (mips_call_tls_get_addr): Call mips_expand_call directly.
15135 (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
15137 (mips16_build_call_stub): Likewise. Return the call insn or null.
15138 (mips_expand_call): Update the call to mips16_build_call_stub
15139 accordingly and a remove redundant condition. Assert that MIPS16
15140 stubs do not use lazy binding. Use mips_emit_call_insn and return
15142 (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
15144 (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
15145 (mips_avoid_hazard): Remove hazard_set handling.
15146 * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
15147 (UNSPEC_RESTORE_GP): ...this.
15148 (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
15149 (FAKE_CALL_REGNO): Rename to...
15150 (GOT_VERSION_REGNUM): ...this.
15151 (type): Add "ghost" value. Add an associated insn reservation.
15152 (hazard_set): Remove.
15153 (exception_receiver): Rename to...
15154 (restore_gp): ...this and update the unspec identifier accordingly.
15155 (exception_receiver, nonlocal_got_receiver): New expanders.
15156 (load_call<mode>): Use GOT_VERSION_REGNUM. Don't set
15157 FAKE_CALL_REGNO. Remove hazard_set attribute.
15158 (set_got_version, update_got_version): New patterns.
15160 2008-01-26 Danny Smith <dannysmith@users.sourceforge.net>
15163 * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
15165 2008-01-25 Joseph Myers <joseph@codesourcery.com>
15168 * doc/install.texi2html: Generate gcc-vers.texi.
15170 2008-01-25 DJ Delorie <dj@redhat.com>
15172 * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
15174 2008-01-25 Joseph Myers <joseph@codesourcery.com>
15176 * config/c4x: Remove directory.
15177 * config.gcc (crx-*, mt-*): Mark obsolete.
15178 (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
15179 h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
15180 sh-*-rtemscoff*): Remove cases.
15181 * defaults.h (C4X_FLOAT_FORMAT): Remove.
15182 * real.c (encode_c4x_single, decode_c4x_single,
15183 encode_c4x_extended, decode_c4x_extended, c4x_single_format,
15184 c4x_extended_format): Remove.
15185 * real.h (c4x_single_format, c4x_extended_format): Remove.
15186 * doc/extend.texi (interrupt, naked): Remove mention of attributes
15188 (Pragmas): Remove comment about c4x pragmas.
15189 * doc/install.texi (c4x): Remove target-specific instructions.
15190 * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
15191 * doc/md.texi (Machine Constraints): Remove C4x documentation.
15192 * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
15193 refer to C4x source files as examples.
15194 (C4X_FLOAT_FORMAT): Remove documentation.
15196 2008-01-25 Bernd Schmidt <bernd.schmidt@analog.com>
15198 * config/bfin/bfin.c (override_options): Reorder tests so that
15199 flag_pic gets enabled for -msep-data.
15201 2008-01-25 Richard Guenther <rguenther@suse.de>
15203 PR middle-end/32244
15204 * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
15205 to its bitfield precision if required.
15207 2008-01-25 Jakub Jelinek <jakub@redhat.com>
15209 PR middle-end/33880
15210 * tree-nested.c (walk_omp_for): New function.
15211 (convert_nonlocal_reference, convert_local_reference): Call
15212 walk_omp_for on OMP_FOR.
15213 (convert_call_expr): Call walk_body on OMP_FOR's
15214 OMP_FOR_PRE_INIT_BODY.
15216 2008-01-25 Richard Guenther <rguenther@suse.de>
15218 PR tree-optimization/34966
15219 * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
15220 default defs and PHI_NODEs we have to insert after the
15221 defining statement.
15223 2008-01-24 Nick Clifton <nickc@redhat.com>
15225 * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
15226 Provide a default definition.
15227 (LIBGCC2_UNITS_PER_WORD): Likewise.
15229 * config/stormy16/stormy16.c: Include df.h for the prototype
15230 for df_regs_ever_live_p.
15231 (xstormy16_expand_builtin_va_start): Convert the stack offset
15232 into a component_ref and then use POINTER_PLUS_EXPR to add it
15233 to the incoming_virtual_args_rtx.
15234 (xstormy16_gimplify_va_arg_expr): Rename to
15235 xstormy16_gimplify_va_arg_expr.
15236 Use POINTER_PLUS_EXPR when performing pointer arithmetic.
15237 (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
15238 xstormy16_gimplify_va_arg_expr.
15239 Fix up some formatting issues.
15241 * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
15242 Move to predicates.md.
15243 (xs_hi_general_operand): Likewise.
15244 (xs_hi_nonmemory_operand): Likewise.
15245 * config/stormy16/predicates.md:
15246 (xstormy16_carry_plus_operand): New predicate.
15247 (xs_hi_general_operand): New predicate.
15248 (xs_hi_nonmemory_operand): New predicate.
15249 * config/stormy16/stormy16-protos.h:
15250 (xstormy16_carry_plus_operand): Delete prototype.
15251 (xs_hi_general_operand): Likewise.
15252 (xs_hi_nonmemory_operand): Likewise.
15254 * config/storm16/stormy16.md (addhi3): Remove earlyclobber
15255 modifiers as they are no longer needed and they can trigger
15256 reload spill failures.
15258 * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
15259 with a match_operand in order to help reload.
15261 * config/storm16/stormy16.md (movhi_internal): Replace 'r'
15262 constraint with 'e' for the 8th alternative as this version of
15263 the mov.w instruction only accepts the lower 8 registers.
15265 2008-01-25 Uros Bizjak <ubizjak@gmail.com>
15268 * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
15269 Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
15272 2008-01-25 Jakub Jelinek <jakub@redhat.com>
15274 PR middle-end/33333
15275 * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
15277 2008-01-25 Golovanevsky Olga <olga@il.ibm.com>
15279 * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
15281 (remove_structure): Update allocations list before removing structure.
15283 2008-01-25 Golovanevsky Olga <olga@il.ibm.com>
15285 * ipa-struct-reorg.c (is_safe_cond_expr,
15286 create_new_stmts_for_cond_expr): Use integer_zerop function,
15287 that recognize not only zero-pointer, but zero-integer too.
15289 2008-01-25 Ben Elliston <bje@au.ibm.com>
15292 * fixproto: Escape "." in sed expression that strips leading "./".
15294 2008-01-24 H.J. Lu <hongjiu.lu@intel.com>
15297 * gcc.c (SWITCH_OK): Removed.
15298 (SWITCH_LIVE): Changed to bit.
15299 (SWITCH_FALSE): Likewise.
15300 (SWITCH_IGNORE): Likewise.
15301 (switchstr): Change live_cond to unsigned int.
15302 (process_command): Replace SWITCH_OK with 0.
15303 (do_self_spec): Likewise.
15304 (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
15305 (give_switch): Likewise.
15306 (used_arg): Likewise.
15307 (do_spec_1): Set the SWITCH_IGNORE bit.
15308 (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
15309 bits. Set the SWITCH_LIVE bit.
15311 2008-01-24 Andreas Krebbel <krebbel1@de.ibm.com>
15313 * config/s390/s390.h (MOVE_RATIO): Define new target macro.
15315 2008-01-24 Richard Sandiford <rsandifo@nildram.co.uk>
15317 PR tree-optimization/34472
15318 * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
15319 parameter to a "bool *" and set *DATA to false if there is
15320 an unsafe access. Do not delete the structure here.
15321 (check_cond_exprs): Delete it here instead.
15322 (check_cond_exprs, exclude_cold_structs): Do not increase
15323 I when removing a structure.
15325 2008-01-24 Uros Bizjak <ubizjak@gmail.com>
15328 * config/i386/i386.c (ix86_expand_vector_init): Consider only
15329 CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
15331 2008-01-24 Jakub Jakub Jelinek <jakub@redhat.com>
15333 PR middle-end/34934
15334 * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
15335 a fixed vector for stack.
15337 2008-01-24 Ben Elliston <bje@au.ibm.com>
15340 * doc/gcc.texi (Software development): Add a direntry for g++.
15342 2008-01-23 Hans-Peter Nilsson <hp@axis.com>
15344 * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
15345 stale and straggling -fforce-addr comments above.
15347 * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
15349 * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
15350 * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
15352 2008-01-23 Michael Matz <matz@suse.de>
15355 * dwarf2out.c (force_type_die): Use modified_type_die instead of
15358 2008-01-23 Andreas Krebbel <krebbel1@de.ibm.com>
15360 * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
15361 malloc result type.
15363 2008-01-23 Anatoly Sokolov <aesok@post.ru>
15365 * config/avr/avr.c (avr_current_arch): New variable.
15366 (avr_arch_types): Add 'avr31' and 'avr51' entries.
15367 (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
15368 (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
15369 (avr_override_options): Init 'avr_current_arch'.
15370 (base_arch_s): Move from here...
15371 * config/avr/avr.h (base_arch_s): ... here. Add new members
15372 'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename
15373 'mega' to 'have_jmp_call'.
15374 (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__",
15375 "__AVR_HAVE_RAMPZ__", "__AVR_HAVE_ELPM__" and "__AVR_HAVE_ELPMX__"
15377 (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51'
15379 * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
15380 MULTILIB_MATCHES): (Ditto.).
15382 2008-01-23 Richard Guenther <rguenther@suse.de>
15384 PR middle-end/31529
15385 * cgraphunit.c (cgraph_reset_node): Always mark the node
15386 not reachable if it is not queued already.
15388 2008-01-23 Bernd Schmidt <bernd.schmidt@analog.com>
15390 * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
15391 * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
15392 (cputype_selected): New static variable.
15393 (bfin_handle_option): Set it if -mcpu is used.
15394 (override_option): Select default set of workarounds if no cpu type
15395 selected on the command line.
15396 (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
15398 From Michael Frysinger <michael.frysinger@analog.com>
15399 * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
15400 BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
15402 * config/bfin/elf.h (LIB_SPEC): Use proper linker script
15403 for bf547, bf523, bf524, and bf526.
15404 * config/bfin/bfin.c (bfin_cpus[]): Add bf547, bf523, bf524, and
15406 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
15407 __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
15408 __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
15409 __ADSPBF547__ and __ADSPBF54x__ for bf547.
15410 * doc/invoke.texi (Blackfin Options): Document that
15411 -mcpu now accept bf547, bf523, bf524, and bf526.
15413 2008-01-22 Eric Botcazou <ebotcazou@adacore.com>
15415 PR rtl-optimization/34628
15416 * combine.c (try_combine): Stop and undo after the first combination
15417 if an autoincrement side-effect on the first insn has effectively
15420 2008-01-22 David Edelsohn <edelsohn@gnu.org>
15423 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
15424 Offset addresses are not valid for Altivec or paired float modes.
15426 2008-01-22 Jakub Jelinek <jakub@redhat.com>
15429 * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
15430 if DECL_INITIAL (decl) is error_mark_node.
15433 * c-common.c (handle_vector_size_attribute): Only allow
15434 integral, scalar float and fixed point types. Handle OFFSET_TYPE
15435 the same way as pointer, array etc. types.
15436 * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
15439 * tree.c (build_type_attribute_qual_variant): Call
15440 build_qualified_type if attributes are equal, but quals are not.
15442 2008-01-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
15445 * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
15446 * flags.h (warn_strict_aliasing): Remove.
15447 (warn_strict_overflow): Remove.
15448 * opts.c (warn_strict_aliasing): Remove.
15449 (warn_strict_overflow): Remove.
15450 * c-opts.c (c_common_handle_option): -Wall only sets
15451 -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
15452 (c_common_post_options): Give default values to -Wstrict-aliasing
15453 and -Wstrict-overflow if they are uninitialized.
15454 * common.opt (Wstrict-aliasing): Specify Var and Init.
15455 (Wstrict-overflow): Likewise.
15457 2008-01-22 Kenneth Zadeck <zadeck@naturalbridge.com>
15459 PR rtl-optimization/26854
15460 PR rtl-optimization/34400
15461 PR rtl-optimization/34884
15462 * ddg.c (create_ddg_dep_from_intra_loop_link): Use
15464 * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
15465 (df_rd_bb_info.expanded_lr_out): Deleted
15466 * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
15467 * loop_iv.c (iv_analysis_loop_init): Ditto. * df-problems.c
15468 (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
15469 df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
15470 Removed code to allocate, initialize or free expanded_lr_out.
15471 (df_rd_bb_local_compute_process_def): Restructured to make more
15473 (df_rd_confluence_n): Removed code to no apply invalidate_by_call
15474 sets if the sets are being trimmed.
15476 2008-01-22 H.J. Lu <hongjiu.lu@intel.com>
15479 * configure.ac (ld_vers): Support GNU linker version xx.xx.*
15480 (as_vers): Likewise.
15481 * configure: Regenerated.
15483 2008-01-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
15485 PR middle-end/33092
15486 * tree-pass.h (pass_build_alias): New pass.
15487 * tree-ssa-alias.c (gate_build_alias): New.
15488 (pass_build_alias): New.
15489 * passes.c (init_optimization_passes): Add pass_build_alias after
15490 pass_create_structure_vars.
15492 2008-01-22 Wolfgang Gellerich <gellerich@de.ibm.com>
15494 * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
15495 Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
15496 (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
15497 S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
15498 (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
15499 S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
15500 (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
15501 S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
15502 (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
15503 (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
15504 (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
15505 (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
15506 * config/s390/s390.md (FP_ALL): New mode iterator.
15507 (_d): New mode attribute.
15508 ("*signbit<mode>2>"): Changed mode of first operand.
15509 ("isinf<mode>2"): Changed mode of first operand.
15510 ("*TDC_insn"): Adaptation for DFP modes.
15512 2008-01-22 Ben Elliston <bje@au.ibm.com>
15514 * tree.c (check_qualified_type): Improve function description.
15516 2008-01-21 Jason Merrill <jason@redhat.com>
15519 * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
15520 * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
15523 2008-01-21 DJ Delorie <dj@redhat.com>
15525 * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
15528 2008-01-21 Richard Guenther <rguenther@suse.de>
15530 PR middle-end/34856
15531 * tree-cfg.c (verify_expr): Allow all invariant expressions
15532 instead of just constant class ones as reference argument.
15533 * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
15534 like any other constant.
15535 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
15537 2008-01-21 H.J. Lu <hongjiu.lu@intel.com>
15539 * regmove.c (fixup_match_1): Update call crossed frequencies.
15541 2008-01-21 Richard Guenther <rguenther@suse.de>
15544 * tree-inline.c (setup_one_parameter): Deal with mismatched
15545 types using a VIEW_CONVERT_EXPR.
15547 2008-01-21 Alon Dayan <alond@il.ibm.com>
15548 Olga Golovanevsky <olga@il.ibm.com>
15550 PR tree-optimization/34701
15551 * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
15552 when the structure size is not a power of 2.
15554 2008-01-20 Kenneth Zadeck <zadeck@naturalbridge.com>
15556 * doc/install.texi: Add doc for --enable-checking=df.
15558 2008-01-20 Kaz Kojima <kkojima@gcc.gnu.org>
15560 PR rtl-optimization/34808
15561 * emit-rtl.c (try_split): Handle REG_RETVAL notes.
15563 2008-01-20 Richard Sandiford <rsandifo@nildram.co.uk>
15565 * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
15568 2008-01-19 Kenneth Zadeck <zadeck@naturalbridge.com>
15570 PR rtl-optimization/26854
15571 PR rtl-optimization/34400
15572 * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
15574 * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
15575 (df_rd_bb_info.expanded_lr_out): New.
15576 * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
15577 * loop_iv.c (iv_analysis_loop_init): Ditto.
15578 * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
15579 df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
15580 Added code to allocate, initialize or free expanded_lr_out.
15581 (df_rd_bb_local_compute_process_def): Restructured to make
15582 more understandable.
15583 (df_rd_confluence_n): Add code to do nothing with fake edges and
15584 code to no apply invalidate_by_call sets if the sets are being trimmed.
15585 (df_lr_local_finalize): Renamed to df_lr_finalize.
15586 (df_live_local_finalize): Renamed to df_live_finalize.
15588 2008-01-20 Richard Sandiford <rsandifo@nildram.co.uk>
15591 * config/mips/mips.md (div<mode>3): Use <recip_condition> when
15592 deciding whether to use reciprocal instructions.
15594 2008-01-19 Uros Bizjak <ubizjak@gmail.com>
15596 * dwarf2out.c (dwarf2out_switch_text_section): Do not call
15597 dwarf2out_note_section_used if cold_text_section is NULL.
15599 2008-01-19 Jakub Jelinek <jakub@redhat.com>
15601 PR gcov-profile/34610
15602 * tree-cfg.c (make_edges): Mark both outgoing edges from
15603 OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
15604 * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
15605 from OMP_FOR and OMP_CONTINUE outgoing edges.
15607 * tree-profile.c (tree_profiling): Return early if
15608 cfun->after_tree_profile != 0. Set cfun->after_tree_profile
15610 * omp-low.c (expand_omp_parallel): Copy after_tree_profile
15611 from cfun to child_cfun.
15612 * function.h (struct function): Add after_tree_profile bit.
15614 2008-01-19 Anatoly Sokolov <aesok@post.ru>
15616 * config/avr/avr.S (_exit): Disable interrupt.
15618 2008-01-18 Kenneth Zadeck <zadeck@naturalbridge.com>
15619 Steven Bosscher <stevenb.gcc@gmail.com>
15621 PR rtl-optimization/26854
15622 PR rtl-optimization/34400
15623 * df-problems.c (df_live_scratch): New scratch bitmap.
15624 (df_live_alloc): Allocate df_live_scratch when doing df_live.
15625 (df_live_reset): Clear the proper bitmaps.
15626 (df_live_bb_local_compute): Only process the artificial defs once
15627 since the order is not important.
15628 (df_live_init): Init the df_live sets only with the variables
15629 found live by df_lr.
15630 (df_live_transfer_function): Use the df_lr sets to prune the
15631 df_live sets as they are being computed.
15632 (df_live_free): Free df_live_scratch.
15634 2008-01-18 Ian Lance Taylor <iant@google.com>
15636 * common.opt: Add fmerge-debug-strings.
15637 * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
15638 flag_merge_debug_strings rather than flag_merge_constants.
15639 * doc/invoke.texi (Option Summary): Mention
15640 -fmerge-debug-strings.
15641 (Debugging Options): Document -fmerge-debug-strings.
15643 2008-01-18 Ian Lance Taylor <iant@google.com>
15646 * tree.h (DECL_IS_OPERATOR_NEW): Define.
15647 (struct tree_function_decl): Add new field operator_new_flag.
15648 * tree-inline.c (expand_call_inline): When inlining a call to
15649 operator new, force the return value to go into a variable, and
15650 set DECL_NO_TBAA_P on that variable.
15651 * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
15653 2008-01-18 Uros Bizjak <ubizjak@gmail.com>
15656 * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
15657 DWARF2_DEBUGGING_INFO.
15658 (dwarf2out_note_section_used): Ditto. Add prototype.
15659 (have_multiple_function_sections, text_section_used,
15660 cold_text_section_used, *cold_text_sections): Move declarations
15663 2008-01-17 Bob Wilson <bob.wilson@acm.org>
15665 * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
15666 field and add signal_ra.
15667 * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
15668 assignments to frame state pc. Move end of stack check after
15669 MD_FALLBACK_FRAME_STATE_FOR.
15670 (uw_update_context_1): Use frame state signal_regs if set, instead
15671 of checking signal_frame flag.
15672 (uw_update_context): Use frame state signal_ra if set.
15673 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
15674 * config/xtensa/linux-unwind.h: New file.
15676 2008-01-18 Bernhard Fischer <aldot@gcc.gnu.org>
15678 * modulo-sched.c (get_sched_window): Fix comment typo.
15680 2008-01-17 Andrew MacLeod <amacleod@redhat.com>
15682 PR tree-optimization/34648
15683 * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
15685 2008-01-17 Anatoly Sokolov <aesok@post.ru>
15687 * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
15688 * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
15690 2008-01-17 Seongbae Park <seongbae.park@gmail.com>
15692 PR rtl-optimization/34400
15693 * df-core.c (df_worklist_dataflow_overeager,
15694 df_worklist_dataflow_doublequeue): New functions.
15695 (df_worklist_dataflow): Two different worklist solvers.
15696 * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
15699 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
15702 * doc/invoke.texi: Document the dependence on pthread for fopenmp
15703 and ftree-parallelize-loops.
15705 2008-01-17 Mircea Namolaru <namolaru@il.ibm.com>
15707 PR rtl-optimization/34826
15708 * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
15710 2008-01-17 Andreas Krebbel <krebbel1@de.ibm.com>
15712 * global.c (find_reg): Mark the eh regs as used if necessary.
15713 * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
15714 * ra.h (struct allocno): no_eh_reg field added. Changed
15715 no_stack_reg type to bitfield.
15717 2008-01-17 Eric Botcazou <ebotcazou@adacore.com>
15719 * tree.c (substitute_in_expr): Add missing 'break'.
15721 2008-01-17 Richard Guenther <rguenther@suse.de>
15723 PR tree-optimization/34825
15724 * tree-ssa-math-opts.c (is_division_by): Do not recognize
15725 x / x as division to handle.
15727 2008-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15729 * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
15730 "-pthread" is specified.
15731 * pa-hpux11.h (LIB_SPEC): Likewise.
15733 2008-01-16 Janis Johnson <janis187@us.ibm.com>
15734 Peter Bergner <bergner@vnet.ibm.com>
15736 PR rtl-optimization/33796
15737 * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
15739 2008-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15741 PR libgfortran/34699
15742 * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
15744 * pa-hpux10.h (LINK_SPEC): Likewise.
15745 * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
15747 2008-01-16 Richard Guenther <rguenther@suse.de>
15749 PR middle-end/32628
15750 * fold-const.c (fold_convert_const_int_from_int): Do not
15751 set overflow if that occured only because of a sign extension
15752 change when converting from/to a sizetype with the same
15753 precision and signedness.
15755 2008-01-16 Uros Bizjak <ubizjak@gmail.com>
15758 * dwarf2out.c (output_call_frame_info): Move output of FDE initial
15759 location address to the correct place. Update copyright year.
15761 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
15763 * lambda-code.c (lambda_transform_legal_p): Handle the case of
15764 no dependences in the dependence_relations vector.
15766 2008-01-16 Jan Hubicka <jh@suse.cz>
15768 PR rtl-optimization/31396
15769 * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
15770 * cfg.c (dump_reg_info): Print it.
15771 * regs.h (struct reg_info_t): add freq_calls_crossed.
15772 (REG_FREQ_CALLS_CROSSED): New macro.
15773 * global.c (global_alloc): Compute freq_calls_crossed for allocno.
15774 (find_reg): Update call of CALLER_SAVE_PROFITABLE.
15775 * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
15776 regmove_optimize): Update call crossed frequencies.
15777 * local-alloc.c (struct qty): Add freq_calls_crossed.
15778 (alloc_qty): Copute freq_calls_crossed.
15779 (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
15780 (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
15781 * ra.h (struct allocno): Add freq_calls_crossed.
15783 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
15785 * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
15786 libgomp when compiling with ftree-parallelize-loops.
15787 (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
15789 2008-01-16 Richard Guenther <rguenther@suse.de>
15791 PR tree-optimization/34769
15792 * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
15793 * tree.c (int_cst_value): Instead make this function more
15794 permissive in what it accepts as valid input. Document this
15795 function always sign-extends the value.
15797 2008-01-16 Jakub Jelinek <jakub@redhat.com>
15798 Richard Guenther <rguenther@suse.de>
15801 * gimplify.c (fold_indirect_ref_rhs): Rename to ...
15802 (gimple_fold_indirect_ref_rhs): ... this.
15803 (gimple_fold_indirect_ref): New function with foldings
15804 that preserve lvalueness.
15805 (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
15806 * tree-flow.h (gimple_fold_indirect_ref): Declare.
15807 * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
15808 to fold an INDIRECT_REF, fall back to the old use of
15809 fold_indirect_ref_1.
15811 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
15813 * tree-data-ref.c (subscript_dependence_tester_1): Call
15814 free_conflict_function.
15815 (compute_self_dependence): Same.
15817 2008-01-16 Uros Bizjak <ubizjak@gmail.com>
15820 * debug.h (dwarf2out_switch_text_section): Move declaration from ...
15821 * dwarf2out.c (dwarf2out_switch_text_section): ... here. Make
15823 * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
15824 Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
15825 for DWARF2_UNWIND_INFO targets.
15827 2008-01-16 Richard Guenther <rguenther@suse.de>
15830 * c-typeck.c (common_pointer_type): Do not merge inconsistent
15831 type qualifiers for function types.
15833 2008-01-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
15835 * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
15836 loop_iterator li from previous commit.
15838 2008-01-15 Sebastian Pop <sebastian.pop@amd.com>
15840 * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
15842 2008-01-12 Sebastian Pop <sebastian.pop@amd.com>
15844 * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
15845 (parallelize_loops): Don't parallelize irreducible components.
15847 2008-01-14 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
15850 * c-opts (c_common_post_options): Do not enable CPP
15851 flag_pedantic_errors by default.
15853 2008-01-14 Eric Botcazou <ebotcazou@adacore.com>
15855 PR rtl-optimization/31944
15856 * cse.c (remove_pseudo_from_table): New function.
15857 (merge_equiv_classes): Use above function to remove pseudo-registers.
15858 (invalidate): Likewise.
15860 2008-01-13 Richard Guenther <rguenther@suse.de>
15862 PR middle-end/34601
15863 * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
15864 instead of TYPE_MODE to deal with calls from expand_one_error_var.
15866 2008-01-13 Uros Bizjak <ubizjak@gmail.com>
15868 * gcse.c (cprop_jump): Call validate_unshare_change instead of
15869 validate_change to unshare the source of the PC set.
15871 2008-01-12 Jan Hubicka <jh@suse.cz>
15873 PR middle-end/32135
15874 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
15875 references above array bounds. This might trigger bounds checks for
15876 pointers to arrays.
15878 2008-01-12 Sebastian Pop <sebastian.pop@amd.com>
15880 * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
15881 new_replaceable_dependencies.
15883 2008-01-12 Doug Kwan <dougkwan@google.com>
15885 * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
15886 instead of OPT_Wreturn_type in warning due to ignored return type
15888 * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
15889 options included in -Wextra.
15890 * c.opt: New option -Wignored_qualifiers.
15891 * doc/invoke.texi (Warning Options, -Wextra): Add new option
15892 -Wignore_qualifiers.
15893 (-Wignored-qualifiers): Document.
15894 (-Wreturn-type): Remove description of functionality now handled
15895 by -Wignored-qualifiers.
15897 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
15900 * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
15901 NOP_EXPR if it is between integral types with the same precision.
15903 2008-01-12 Jan Hubicka <jh@suse.cz>
15906 * invoke.texi (max-inline-recursive-depth): Fix default value.
15908 2008-01-12 Zdenek Dvorak <ook@ucw.cz>
15910 * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
15913 2008-01-11 Bob Wilson <bob.wilson@acm.org>
15915 * config/xtensa/xtensa.c (override_options): Set flag_shlib.
15917 2008-01-11 James E. Wilson <wilson@specifix.com>
15920 * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
15922 2008-01-11 Anatoly Sokolov <aesok@post.ru>
15924 * config/avr/avr.c (expand_prologue, expand_epilogue): Don't
15925 save/restore frame pointer register and don't use 'call-prologues'
15926 optimization in function with "OS_task" attribute.
15928 2008-01-11 Eric Botcazou <ebotcazou@adacore.com>
15930 PR middle-end/31309
15931 * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
15932 when copying to memory.
15934 2008-01-11 Steven Bosscher <stevenb.gcc@gmail.com>
15936 PR rtl-optimization/30905
15937 * cfgcleanup.c: Include dce.h
15938 (crossjumps_occured): New global variable.
15939 (try_crossjump_bb): Exit loop after finding a fallthru edge.
15940 If something changed, set crossjumps_occured to true.
15941 (try_optimize_cfg): Clear crossjumps_occured at the beginning.
15942 Don't add/remove fake edges to exit here...
15943 (cleanup_cfg): ...but do it here, when crossjumping.
15944 Run a fast DCE when successful crossjumps occured in the latest
15945 iteration of try_optimize_cfg.
15947 2008-01-11 Richard Guenther <rguenther@suse.de>
15949 * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
15950 (struct vn_unary_op_s): Likewise.
15951 (vn_reference_insert): Free old reference on hash collision.
15953 2008-01-10 Raksit Ashok <raksit@google.com>
15955 PR rtl-optimization/27971
15956 * combine.c (find_split_point): Split PLUS expressions which are
15957 inside a MEM rtx, and whose first operand is complex.
15959 2008-01-10 DJ Delorie <dj@redhat.com>
15961 * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
15962 (m32c_hard_regno_nregs): ...this, which is now a wrapper.
15963 (m32c_hard_regno_ok): Call the underlying function.
15965 2008-01-10 Richard Guenther <rguenther@suse.de>
15967 PR middle-end/34683
15968 * tree-cfg.c (tree_merge_blocks): Do not go through the
15969 full-blown folding and stmt updating path if we just deal
15970 with virtual operands.
15971 * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
15972 test for abnormal SSA_NAMEs.
15974 2008-01-10 Andreas Krebbel <krebbel1@de.ibm.com>
15976 PR middle-end/34641
15977 * reload.c (push_reload): Add assertions. All constants from
15978 reg_equiv_constant should have been used for replacing the respective
15980 (find_reloads_address): Invoke find_reloads_address_part for
15981 constant taken from the reg_equiv_constant array.
15983 2008-01-10 Steven Bosscher <stevenb.gcc@gmail.com>
15985 * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
15986 field (valnum) the first in the struct. Replace bools with
15989 2008-01-10 Richard Guenther <rguenther@suse.de>
15991 PR tree-optimization/34651
15992 * tree-sra.c (sra_build_assignment): Sanitize. Use the correct
15993 types and ordering for masking and converting.
15995 2008-01-09 Sebastian Pop <sebastian.pop@amd.com>
15997 PR tree-optimization/34017
15998 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
15999 also for PHI_NODE expressions.
16001 2008-01-09 Jan Hubicka <jh@suse.cz>
16003 PR tree-optimization/34708
16004 * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
16005 based on number of case labels.
16006 (init_inline_once): Remove switch_cost.
16007 * tree-inline.h (eni_weights_d): Remove switch_cost.
16009 2008-01-09 Richard Guenther <rguenther@suse.de>
16010 Andrew Pinski <andrew_pinski@playstation.sony.com>
16012 PR middle-end/30132
16013 * gimplify.c (gimplify_cond_expr): Do not create an addressable
16014 temporary if an rvalue is ok or an lvalue is not required.
16016 2008-01-09 Richard Guenther <rguenther@suse.de>
16018 PR middle-end/34458
16019 * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
16020 adjust return type.
16022 2008-01-09 Richard Guenther <rguenther@suse.de>
16024 PR middle-end/34679
16025 * tree.c (host_integerp): Check for sizetype only if the
16026 type is an integer type.
16028 2008-01-09 Steven Bosscher <stevenb.gcc@gmail.com>
16031 * opts.c (decode_options): Disable inlining of functions called
16032 once if not in unit-at-a-time mode.
16034 2008-01-09 Alexandre Oliva <aoliva@redhat.com>
16036 * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
16038 2008-01-08 Richard Guenther <rguenther@suse.de>
16040 PR middle-end/31863
16041 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
16042 out early if the result will be unused.
16044 2008-01-08 Uros Bizjak <ubizjak@gmail.com>
16049 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
16050 * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
16053 2008-01-08 Jan Sjodin <jan.sjodin@amd.com>
16055 * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
16056 for vectorization tuned.
16058 2008-01-08 Richard Guenther <rguenther@suse.de>
16060 PR tree-optimization/34683
16061 * tree-ssa-operands.c (operand_build_cmp): Export.
16062 * tree-ssa-operands.h (operand_build_cmp): Declare.
16063 * tree-vn.c (vuses_compare): Remove.
16064 (sort_vuses): Use operand_build_cmp.
16065 (sort_vuses_heap): Likewise.
16066 * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
16067 to re-use old VEC if available. Do not sort already sorted VUSEs.
16068 (vdefs_to_vec): Do not sort already sorted VDEFs.
16070 2008-01-08 Jakub Jelinek <jakub@redhat.com>
16072 PR middle-end/34694
16073 * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
16075 2008-01-08 Uros Bizjak <ubizjak@gmail.com>
16078 * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
16079 limitations of reciprocal sequences on x86 targets.
16081 2008-01-08 Richard Guenther <rguenther@suse.de>
16083 PR tree-optimization/34683
16084 * tree-flow-inline.h (var_ann): Remove overzealous asserts.
16086 2008-01-07 Jakub Jelinek <jakub@redhat.com>
16089 * config/darwin.c (darwin_mergeable_string_section): Don't use
16090 .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
16092 2008-01-07 Uros Bizjak <ubizjak@gmail.com>
16095 * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
16096 negxf2. Macroize expander using X87MODEF mode iterator. Change
16097 predicates of op0 and op1 to register_operand.
16098 (abs<mode>2): Rename from abssf2, absdf2 and negxf2. Macroize
16099 expander using X87MODEF mode iterator. Change predicates of
16100 op0 and op1 to register_operand.
16101 ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
16102 corresponding patterns and macroize using MODEF macro. Change
16103 predicates of op0 and op1 to register_operand and remove
16104 "m" constraint. Disparage "r" alternative with "!".
16105 ("*absneg<mode>2_i387"): Rename from corresponding patterns and
16106 macroize using X87MODEF macro. Change predicates of op0 and op1
16107 to register_operand and remove "m" constraint. Disparage "r"
16108 alternative with "!".
16109 (absneg splitter with memory operands): Remove.
16110 ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
16111 patterns and macroize using X87MODEF mode iterator.
16112 * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
16113 Change predicate of op1 to register_operand.
16114 * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
16115 for memory operands.
16117 2008-01-07 Nathan Froyd <froydnj@codesourcery.com>
16119 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
16121 2008-01-07 Richard Guenther <rguenther@suse.de>
16123 * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
16126 2008-01-07 Richard Guenther <rguenther@suse.de>
16128 PR tree-optimization/34683
16129 * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
16130 VOPs of the needed size to save memory. Use VEC_quick_push
16131 to save compile-time.
16132 (vdefs_to_vec): Likewise.
16134 2008-01-07 Sa Liu <saliu@de.ibm.com>
16136 * config/spu/spu.md (divdf3): Genetate inline code for double
16137 division. The implementation doesn't handle INF or NAN, therefore it
16138 only applies when -ffinite-math-only is given.
16140 2008-01-06 Paolo Carlini <pcarlini@suse.de>
16143 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
16144 * doc/cpp.texi ([Common Predefined Macros]): Document.
16146 2008-01-06 Uros Bizjak <ubizjak@gmail.com>
16148 * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
16149 order to use commutative addition instead of subtraction.
16151 2008-01-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
16152 Mircea Namolaru <namolaru@il.ibm.com>
16153 Vladimir Yanovsky <yanov@il.ibm.com>
16154 Revital Eres <eres@il.ibm.com>
16156 PR tree-optimization/34263
16157 * tree-outof-ssa.c (process_single_block_loop_latch,
16158 contains_tree_r): New functions.
16159 (analyze_edges_for_bb): Call process_single_block_loop_latch
16160 function to empty single-basic-block latch block if possible.
16162 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
16164 * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
16166 (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
16168 2008-01-05 Richard Sandiford <rsandifo@nildram.co.uk>
16170 * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
16172 2008-01-05 Richard Sandiford <rsandifo@nildram.co.uk>
16174 * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
16176 2008-01-05 Jakub Jelinek <jakub@redhat.com>
16178 PR tree-optimization/34618
16179 * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
16182 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
16185 * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
16186 in the call to gen_rtx_NE. Remove unneeded VECTOR_MODE_P check.
16187 Update copyright year.
16189 * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
16190 Update copyright year.
16191 * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
16194 2008-01-05 Zhouyi Zhou <zhouzhouyi@FreeBSD.org>
16196 * tree-vrp.c (find_conditional_asserts): Remove redundant check that
16197 edge does not point to current bb before changing need_assert.
16199 2008-01-04 Richard Guenther <rguenther@suse.de>
16201 PR middle-end/34029
16202 * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
16203 for verifying purposes if they are is_gimple_min_invariant.
16205 2008-01-04 Aldy Hernandez <aldyh@redhat.com>
16207 PR tree-optimization/34448
16208 PR tree-optimization/34465
16209 * gimplify.c (gimplify_init_constructor): Add new parameter
16210 notify_temp_creation. Use it.
16211 (gimplify_modify_expr_rhs): Take volatiles into account when
16212 optimizing constructors.
16213 Do not optimize constructors if gimplify_init_constructor will dump to
16215 * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
16216 * gcc.c-torture/compile/pr34448.c: New.
16218 2008-01-04 Jakub Jelinek <jakub@redhat.com>
16220 PR gcov-profile/34609
16221 * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
16222 return_slot if result is TREE_ADDRESSABLE.
16224 2008-01-04 Richard Sandiford <rsandifo@nildram.co.uk>
16226 * config/mips/mips.md (sqrt_condition): Tweak comment.
16227 (recip_condition): Likewise. Require TARGET_FLOAT64 for DFmode.
16229 2008-01-03 Tom Tromey <tromey@redhat.com>
16232 * c-common.c (c_type_hash): Handle VLAs.
16234 2008-01-03 Jan Hubicka <jh@suse.cz>
16236 PR tree-optimization/31081
16237 * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
16238 0 when inlining and not inlining to first basic block.
16239 (remap_decl): When var is initialized to 0, don't set default_def.
16240 (expand_call_inline): Set entry_bb.
16241 * tree-inline.h (copy_body_data): Add entry_bb.
16243 2008-01-03 Jakub Jelinek <jakub@redhat.com>
16246 * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
16249 PR tree-optimization/29484
16250 * tree-inline.c (inline_forbidden_p_2): New function.
16251 (inline_forbidden_p): Disallow inlining if some static var
16252 has an address of a local LABEL_DECL in its initializer.
16253 * doc/extend.texi (Labels as Values): Document &&foo behaviour
16256 2008-01-03 Sebastian Pop <sebastian.pop@amd.com>
16258 PR tree-optimization/34635
16259 * tree-data-ref.c (add_other_self_distances): Make sure that the
16260 evolution step is constant.
16262 2008-01-03 Jakub Jelinek <jakub@redhat.com>
16264 PR middle-end/34608
16265 * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
16267 2008-01-02 Richard Sandiford <rsandifo@nildram.co.uk>
16269 * tree-sra.c (scalarize_init): Insert the generate_element_init
16270 statements after the generate_element_zero statements.
16272 2008-01-02 Richard Guenther <rguenther@suse.de>
16274 PR middle-end/34093
16275 PR middle-end/31976
16276 * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
16277 for very large number of operands instead of ICEing.
16279 2008-01-02 Arthur Norman <acn1@cam.ac.uk>
16282 * config/i386/i386.c (ix86_expand_prologue): Save red-zone
16283 while stack probing.
16285 2008-01-01 Douglas Gregor <doug.gregor@gmail.com>
16287 * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
16290 2008-01-01 Volker Reichelt <v.reichelt@netcologne.de>
16292 PR libmudflap/26442
16293 * tree-mudflap.c (mx_register_decls): Guard warning by
16294 !DECL_ARTIFICIAL check.
16296 2008-01-01 Jakub Jelinek <jakub@redhat.com>
16298 * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
16299 sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
16300 sse5_perm<mode>): Fix constraints.