1 2008-07-26 Gerald Pfeifer <gerald@pfeifer.com>
3 * doc/install.texi (powerpc-*-netbsd*): Remove redundant texinfo
6 2008-07-26 Olivier Hainque <hainque@adacore.com>
8 * collect2.c (symkind): New enum. Symbol kinds we care about.
9 (is_ctor_dtor): Return symkind instead of int. Adjust prototype,
10 code and head comment accordingly.
11 (scan_prog_file): Use symkind names instead of bare integers.
13 2008-07-25 Jan Hubicka <jh@suse.cz>
15 * cgraph.c (cgraph_function_possibly_inlined_p): Do not rely on DECL_INLINE.
16 * cgraphunit.c (record_cdtor_fn): Do not initialize DECL_INLINE
17 (cgraph_preserve_function_body_p): Do not rely on DECL_INLINE.
18 * dojump.c (clear_pending_stack_adjust): Likewise.
19 * print-tree.c (print_node): Ignore DECL_INLINE.
20 * tree-inline.c (inlinable_function_p): Likewise.
22 2008-07-25 Michael Meissner <gnu@the-meissners.org>
24 * doc/extend.texi (hot attribute): Document that the hot attribute
25 turns on -O3 for some ports.
26 (cold attribute): Document that the cold attribute turns on -Os
29 * doc/tm.texi (OPTIMIZATION_OPTIONS): Update documentation to
30 reflect function specific option support.
32 * target.h (struct target_option_hooks): Add fields to say whether
33 the cold attribute implies -Os and the hot attribute implies -O3.
35 * target-def.h (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION):
36 By default, do not turn on -Os for cold functions.
37 (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): By default, do
38 not turn on -O3 for hot functions.
40 * c-common.c (handle_hot_attribute): Use target hook to determine
41 if hot functions should enable -O3.
42 (handle_cold_attribute): Use target hook to determine if cold
43 functions should enable -Os.
45 * config/i386/i386.c (ix86_target_string): Add -m3dnowa support.
46 (override_options): Move disable scheduling to
48 (optimization_options): Disable scheduling here, not
50 (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
51 (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
53 * config/ia64/ia64.c (ia64_override_options): Move setting
54 scheduling flags to ia64_optimization_options.
55 (ia64_optimization_options): Disable scheduling options here, and
56 not in ia64_override_options.
57 (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
58 (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
60 2008-07-25 H.J. Lu <hongjiu.lu@intel.com>
63 * config/i386/i386.c (override_options): Don't clear TARGET_CMOVE.
65 2008-07-25 Martin Jambor <mjambor@suse.cz>
67 PR tree-optimization/36926
68 * ipa-prop.c (ipa_analyze_call_uses): Call
69 ipa_is_ssa_with_stmt_def instead of SSA_NAME_IS_DEFAULT_DEF.
71 2008-07-25 Joseph Myers <joseph@codesourcery.com>
73 * config/arm/iwmmxt.md (movv8qi_internal, movv4hi_internal,
74 movv2si_internal): Add mem = reg alternative.
76 2008-07-25 Andreas Tobler <a.tobler@schweiz.org>
79 * config/sparc/sparc.h (DEFAULT_PCC_STRUCT_RETURN): Define
80 DEFAULT_PCC_STRUCT_RETURN to 127.
82 2008-07-24 Jan Hubicka <jh@suse.cz>
84 * cgraphbuild.c (record_reference): Drop non-unit-at-a-time code.
85 (build_cgraph_edges): Likewise.
86 * cgraph.c (cgraph_node): Do not update assembler hash.
87 (cgraph_remove_node): Drop non-unit-at-a-time code.
88 * tree-pass.h (pass_O0_always_inline): Remove.
89 * ipa-reference.c (gate_reference): Remove unit-at-a-time check.
90 * toplev.c (process_options): Flag unit-at-a-time does not imply
92 * cgraphunit.c: Update comments.
93 (decide_is_function_needed): Drop non-unit-at-a-time mode.
94 (cgraph_assemble_pending_functions): Remove.
95 (cgraph_reset_node): Drop non-unit-at-a-time code.
96 (cgraph_finalize_function): Likewise.
97 (cgraph_analyze_function): Likewise.
98 (cgraph_finalize_compilation_unit): Likewise.
99 (cgraph_expand_function): Likewise.
100 (cgraph_optimize): Likesise.
101 (save_inline_function_body): Likewise.
102 * ipa-pure-const.c (gate_pure_const): Drop flag_unit_at_a_time check.
103 * tree-ssa-alias.c (maybe_be_aliased): Likewise.
104 * ipa-inline.c: Update comments.
105 (enum inlining_mode): remove INLINE_SPEED.
106 (cgraph_clone_inlined_nodes): Drop unit-at-a-time check.
107 (cgraph_mark_inline_edge): Likewise.
108 (try_inline): Likewise.
109 (cgraph_decide_inlining_incrementally): Likewise.
110 (cgraph_gate_inlining): Remove.
111 (cgraph_early_inlining): Remove flag_unit_at_a_time checks.
112 (cgraph_gate_early_inlining): Likewise.
113 (gate_inline_passes): Remove.
114 (pass_inline_parameters, pass_ipa_inline): Remove gates.
115 (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
116 pass_O0_always_inline): Remove.
117 * c-pch.c (c_pch_matching): Remove -funit-at-a-time.
118 * dwarf2out.c (reference_to_unused): Remove flag_unit_at_a_time check.
119 * opts.c (no_unit_at_a_time_default): Remove.
120 (decode_options): Remove flag_unit_at_a_time reset and warning.
121 * opts.h (no_unit_at_a_time_default): Remove.
122 * c-decl.c (diagnose_mismatched_decls): Do not require inline keyword
123 early in GNU dialect.
124 (merge_decls): Update comment; drop unit-at-a-time check.
125 (finish_decl): Likewise.
126 (grok_declaration): Remove flag_inline_trees code.
127 (finish_functions): Return on function returning non-void on all
129 * ipa-tye-escape.c (gate_type_escape_vars): Remove.
130 * cfgexpand.c (expand_one_static_var): Remove.
131 (expand_one_var): Remove expand_one_static_var call.
132 (expand_used_vars_for_block): Remove flag_unit_a_time check.
133 * c-opts.c (c_common_post_options): Remove flag_inline_trees code
134 and flag_unit_at_a-time compatibility checks.
135 * varasm.c (assemble_alias): Remove flag_unit_at_a_time check.
136 * tree-inline.c (flag_inline_trees): Remove.
137 (inlinable_function_p): Don't check it.
138 (expand_call_inline): Remove non-unit-at-a-time code.
139 * tree-inline.h (flag_inline_trees): Remove.
140 * tree-optimize.c (execute_early_local_optimizations): Remove
141 unit-at-a-time checks.
142 (tree_rest_of_compilation): Likewise.
143 * combine.c (setup_incoming_promotions): Likewise.
144 * tree-profile.c (tree_gen_ic_func_profiler): Likewise.
145 * tree-ssa-structalias.c (delete_points_to_sets): Likewise.
146 * passes.c (pass_inline_parameters): Update comments; remove
147 O0_alwaysinline pass.
148 (execute_one_ipa_transform_pass): Do not reset in_gimple_form.
149 (execute_one_pass): Likewise.
150 * i386.c (ix86_function_regparm): Remove unit-at-a-time check.
151 (ix86_function_sseregparm): Likewise.
152 * arm.c (arm_function_in_section_p): Likewise.
153 * bfin.c (bfin_load_pic_reg, bfin_function_ok_for_sibcall): Likewise.
154 * varpool.c: Update comments.
155 (decide_is_variable_needed): Remove unit-at-a-time checks.
156 (varpool_finalize_decl): Likewise.
158 2008-07-24 Kaz Kojima <kkojima@gcc.gnu.org>
160 * config/sh/sh.h (OPTIMIZATION_OPTIONS): Set flag_omit_frame_pointer
162 (OVERRIDE_OPTIONS): Check if flag_omit_frame_pointer is equal
165 2008-07-24 Kai Tietz <kai.tietz@onevision.com>
167 * config/i386/i386.c (get_dllimport_decl): Treat user_label_prefix for
168 imp symbol extension.
170 2008-07-23 Ian Lance Taylor <iant@google.com>
172 * tree-vrp.c (infer_value_range): Ignore asm statements when
173 looking for memory accesses for -fdelete-null-pointer-checks.
175 2008-07-24 Ben Elliston <bje@au.ibm.com>
177 * config/spu/spu-c.c (__vector_keyword): New variable.
178 (vector_keyword): Likewise.
179 (spu_categorize_keyword): New function.
180 (spu_macro_to_expand): Likewise.
181 (spu_cpu_cpp_builtins): Enable context-sensitive macros if not
182 compiling an ISO C dialect.
184 2008-07-24 Ben Elliston <bje@au.ibm.com>
186 * config/rs6000/rs6000-c.c: Move GTY(()) markers to match
189 2008-07-23 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
191 * configure: Regenerate.
192 * configure.ac: Require texinfo 4.7.
193 * doc/install.texi: Document texinfo 4.7 requirement.
195 2008-07-23 Martin Jambor <mjambor@suse.cz>
197 * ipa-cp.c (ipcp_print_edge_profiles): Test for node->analyzed
198 rather than for DECL_SAVED_TREE.
199 * ipa-prop.c: Include diagnostic.h.
200 (ipa_check_stmt_modifications): Check LHS of GIMPLE_MODIFY_EXPRs
202 (ipa_detect_param_modifications): Function rewritten from scratch.
203 (ipa_compute_jump_functions): Changed accesses to modification flags.
204 (ipa_free_node_params_substructures): Update flags destruction.
205 (ipa_node_duplication_hook): Update flags duplication.
206 (ipa_print_all_params_modified): Updated flag access.
207 * ipa-prop.h (struct ipa_param_flags): New structure.
208 (struct ipa_node_params): New field modification_analysis_done,
209 modified_flags changed into param_flags.
210 (ipa_is_ith_param_modified): Changed to use new flags.
211 * Makefile.in (ipa-prop.o): Add $(DIAGNOSTIC_H) to dependencies.
213 * ipa-prop.c (ipa_print_all_jump_functions): Moved here from
214 ipa-cp.c and split into two functions.
215 (ipa_print_node_jump_functions): New function.
216 (compute_scalar_jump_functions): New function.
217 (type_like_member_ptr_p): New function.
218 (compute_pass_through_member_ptrs): New function.
219 (fill_member_ptr_cst_jump_function): New function.
220 (determine_cst_member_ptr): New function.
221 (compute_cst_member_ptr_arguments): New function.
222 (ipa_compute_jump_functions): Complete rewrite.
223 * ipa-prop.h (enum jump_func_type): Make explicit that we depend
224 on IPA_UNKNOWN being zero. Added value IPA_CONST_MEMBER_PTR.
225 (struct ipa_member_ptr_cst): New structure.
226 (union jump_func_value): New field member_cst.
227 * ipa-cp.c (ipcp_lat_is_insertable): New function.
228 (ipcp_lattice_from_jfunc): Produces bottom lattices for unhandled
230 (ipcp_print_all_lattices): Slight fprintf rearrangement.
231 (ipcp_print_all_structures): Call ipa_print_all_jump_functions
232 instead of ipcp_print_all_jump_functions.
233 (ipcp_insert_stage): Use ipcp_lat_is_insertable, create replace maps
234 only for replacable scalars.
236 * doc/invoke.texi (Optimize options): Add description of
238 * common.opt (flag_indirect_inlining): New flag.
239 * opts.c (decode_options): Set flag_indirect_inlining when
242 * ipa-inline.c: Include ipa-prop.h.
243 (inline_indirect_intraprocedural_analysis): New function.
244 (inline_generate_summary): Allocate parameter and argument info
245 structures, call inline_indirect_intraprocedural_analysis on each
246 node when doing indirect inlining and deallocate indirect inlining
247 data structures in the end.
248 * ipa-prop.c (ipa_create_param_decls_array): Return if already done.
249 (free_all_ipa_structures_after_iinln): New function.
250 (free_all_ipa_structures_after_ipa_cp): Checks whether iinln will be
252 * Makefile.in (ipa-inline.o): Added $(IPA_PROP_H) to dependencies.
254 * cgraphbuild.c (compute_call_stmt_bb_frequency): New function.
255 (build_cgraph_edges): Call compute_call_stmt_bb_frequency instead
256 of computing the frequency separately.
257 (rebuild_cgraph_edges): Call compute_call_stmt_bb_frequency instead
258 of computing the frequency separately.
259 * ipa-cp.c (ipcp_print_all_structures): Replace a call to
260 ipa_print_all_param_modified with a call to ipa_print_all_param_flags.
261 * ipa-prop.c (ipa_get_member_ptr_load_param): New function.
262 (ipa_get_stmt_member_ptr_load_param): New function.
263 (ipa_is_ssa_with_stmt_def): New function.
264 (ipa_note_param_call): New function.
265 (ipa_analyze_call_uses): New function.
266 (ipa_analyze_stmt_uses): New function.
267 (ipa_analyze_params_uses): New function.
268 (ipa_free_node_params_substructures): Also free the param_calls linked
270 (ipa_node_duplication_hook): Also duplicate the param_calls linked list.
271 (ipa_print_node_param_flags): New function.
272 (ipa_print_all_params_modified): Renamed to ipa_print_all_param_flags.
273 (ipa_print_all_param_flags): Calls ipa_print_node_param_flags.
274 * ipa-prop.h (struct ipa_param_flags): New field called.
275 (struct ipa_param_call_note): New structure.
276 (struct ipa_node_params): New fields param_calls and
278 (ipa_is_ith_param_called): New function.
279 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
280 ipa_analyze_params_uses and dump parameter flags.
282 * ipa-inline.c (cgraph_decide_recursive_inlining): Call
283 ipa_propagate_indirect_call_infos if performing indirect inlining,
284 pass a new parameter new_edges to it.
285 (add_new_edges_to_heap): New fucntion.
286 (cgraph_decide_inlining_of_small_functions): New vector
287 new_indirect_edges for newly found indirect edges , call
288 ipa_propagate_indirect_call_infos after inlining.
289 (cgraph_decide_inlining): Call ipa_propagate_indirect_call_infos after
290 inlining if performing indirect inlining. Call
291 free_all_ipa_structures_after_iinln when doing so too.
292 (inline_generate_summary): Do not call
293 free_all_ipa_structures_after_iinln here.
294 * ipa-prop.c (update_jump_functions_after_inlining): New function.
295 (print_edge_addition_message): New function.
296 (update_call_notes_after_inlining): New function.
297 (propagate_info_to_inlined_callees): New function.
298 (ipa_propagate_indirect_call_infos): New function.
299 * ipa-prop.h: Include cgraph.h
300 (struct ipa_param_call_note): Fields reordered, new field processed.
301 * cgraph.h (cgraph_edge): Shrink loop_nest field to 31 bits, add a new
303 * cgraphunit.c (verify_cgraph_node): Allow indirect edges not to have
304 rediscovered call statements.
305 * cgraph.c (cgraph_create_edge): Initialize indirect_call to zero.
306 (dump_cgraph_node): Dump also the indirect_call flag.
307 (cgraph_clone_edge): Copy also the indirect_call flag.
308 * tree-inline.c (copy_bb): Do not check for fndecls from call
309 expressions, check for edge availability when moving clones.
310 (get_indirect_callee_fndecl): New function.
311 (expand_call_inline): If callee declaration is not apprent from
312 the statement, try calling get_indirect_callee_fndecl. Do not
313 issue warnings or call sorry when not inlinings an indirect edge.
314 * Makefile.in (IPA_PROP_H): Added $(CGRAPH_H) to dependencies.
316 * ipa-prop.c (ipa_print_node_param_flags): Make the dump format a
317 bit more frandly to matching.
318 * testsuite/g++.dg/ipa/iinline-1.C: New testcase.
319 * testsuite/gcc.dg/ipa/iinline-1.c: New testcase.
320 * testsuite/gcc.dg/ipa/modif-1.c: New testcase.
322 2008-07-23 Michael Meissner <gnu@the-meissners.org>
325 * opth-gen.awk: Suppress function specific features when building
327 * optc-gen.awk: Ditto.
329 2008-07-23 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
332 * diagnostic.c (pedwarn): Add opt parameter.
334 * c-tree.h (pedwarn_init): Add opt parameter.
335 (pedwarn_c90): Likewise.
336 (pedwarn_c99): Likewise.
337 * c-errors.c (pedwarn_c99): Likewise.
338 (pedwarn_c90): Likewise.
339 * toplev.h (pedwarn): Update declaration.
341 * c-lex.c: All calls to pedwarn changed.
342 * builtins.c: All calls to pedwarn changed.
343 * toplev.c: All calls to pedwarn changed.
344 * c-decl.c: All calls to pedwarn changed.
345 * c-typeck.c: All calls to pedwarn changed.
346 * c-common.c: All calls to pedwarn changed.
347 * c-parser.c: All calls to pedwarn changed.
349 2008-07-23 Michael Meissner <gnu@the-meissners.org>
350 Karthik Kumar <karthikkumar@gmail.com>
352 * attribs.c (file scope): Include c-common.h.
353 (decl_attributes): Add support for #pragma GCC optimize and
356 * targhooks.c (default_can_inline_p): New function that is the
357 default for the TARGET_CAN_INLINE_P target hook.
359 * targhooks.h (default_can_inline_p): Add declaration.
361 * tree.c (cl_optimization_node): New static tree for building
362 OPTIMIZATION_NODE tree.
363 (cl_target_option_node): New static tree for building
364 TARGET_OPTION_NODE tree.
365 (cl_option_hash_table): New hash table for hashing
366 OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
367 (cl_option_hash_hash): New function to provide the hash value for
368 OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
369 (cl_option_hash_eq): New function to provide an equality test for
370 OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
371 (tree_code_size): Add support for OPTIMIZATION_NODE and
372 TARGET_OPTION_NODE trees.
373 (tree_code_structure): Add support for OPTIMIZATION_NODE and
374 TARGET_OPTION_NODE trees.
375 (build_optimization_node): Build a tree that has all of the
376 current optimization options.
377 (build_target_option_node): Build a tree that has the target
378 options that might be changed on a per function basis.
380 * tree.h (file scope): Include options.h.
381 (DECL_FUNCTION_SPECIFIC_TARGET): New accessor macro.
382 (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
383 (TREE_OPTIMIZATION): Ditto.
384 (TREE_TARGET_SPECIFIC): Ditto.
385 (struct tree_function_decl): Add fields for remembering the
386 current optimization options and target specific options.
387 (struct tree_optimization_option): New tree variant that remembers
388 the optimization options.
389 (struct tree_target_option): New tree variant that remembers the
390 target specific flags that might change for compiling a particular
392 (union tree_node): Include tree_optimization_option and
393 tree_target_option fields.
394 (enum tree_index): Add TI_OPTIMIZATION_DEFAULT,
395 TI_OPTIMIZATION_CURRENT, TI_OPTIMIZATION_COLD,
396 TI_OPTIMIZATION_HOT, TI_TARGET_OPTION_DEFAULT,
397 TI_TARGET_OPTION_CURRENT, TI_CURRENT_OPTION_PRAGMA,
398 TI_CURRENT_OPTIMIZE_PRAGMA entries for saving function specific
399 optimization and target options.
400 (optimization_default_node): New macro to refer to global_trees
402 (optimization_current_node): Ditto.
403 (optimization_cold_node): Ditto.
404 (optimization_hot_node): Ditto.
405 (target_option_default_node): Ditto.
406 (target_option_current_node): Ditto.
407 (current_option_pragma): Ditto.
408 (current_optimize_pragma): Ditto.
410 * target.h (struct gcc_target): Add valid_option_attribute_p,
411 target_option_save, target_option_restore, target_option_print,
412 target_option_pragma_parse, and can_inline_p hooks.
414 * toplev.h (parse_optimize_options): Add declaration.
415 (fast_math_flags_struct_set_p): Ditto.
417 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): New function to
418 adjust the current __OPTIMIZE__, etc. macros when #pragma GCC
421 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Call
422 tree_can_inline_p hook to see if one function can inline another.
423 (cgraph_decide_inlining): Ditto.
424 (cgraph_decide_inlining_incrementally): Ditto.
426 * opts.c (decode_options): Add support for running multiple times
427 to allow functions with different target or optimization options
428 than was specified on the command line.
429 (fast_math_flags_struct_set_p): New function that is similar to
430 fast_math_flags_set_p, except it uses the values in the
431 cl_optimization structure instead of global variables.
433 * optc-gen.awk: Add support for TargetSave to allow a back end to
434 declare new fields that need to be saved when using function
435 specific options. Include flags.h and target.h in the options.c
436 source. Add support for Save to indicate which options can be set
437 for individual functions. Generate cl_optimize_save,
438 cl_optimize_restore, cl_optimize_print, cl_target_option_save,
439 cl_target_option_restore, cl_target_option_print functions to
440 allow functions to use different optimization or target options.
442 * opt-functions.awk (var_type_struct): Return the type used for
443 storing the field in a structure.
445 * opth-gen.awk: Add support for TargetSave to allow a back end to
446 declare new fields that need to be saved when using function
447 specific options. Add support for Save to indicate which options
448 can be set for individual functions. Only generate one extern for
449 Mask fields. Generate cl_optimization and cl_target_option
450 structures to remember optimization and target options.
452 * treestruct.def (TS_OPTIMIZATION): Add support for garbage
453 collecting new tree nodes.
454 (TS_TARGET_OPTION): Ditto.
456 * c-decl.c (merge_decls): Merge function specific target and
457 optimization options.
459 * function.c (invoke_set_current_function_hook): If the function
460 uses different optimization options, change the global variables
463 * coretypes.h (struct cl_optimization): Add forward reference.
464 (struct cl_target_option): Ditto.
466 * c-pragma.c (option_stack): New static vector to remember the
467 current #pragma GCC option stack.
468 (handle_pragma_option): New function to support #pragma GCC option
469 to change target options.
470 (optimize_stack): New static vector to remember the current
471 #pragma GCC optimize stack.
472 (handle_pragma_optimize): New function to support #pragma GCC
473 optimize to change optimization options.
474 (init_pragma): Add support for #pragma GCC optimize and #pragma
477 * tree.def (OPTIMIZATION_NODE): New tree code for remembering
478 optimization options.
479 (TARGET_OPTION_NODE): New tree code for remembering certain target
482 * print-tree.c (print_node): Add support for OPTIMIZATION_NODE and
483 TARGET_OPTION_NODE trees.
485 * common.opt (-O): Add Optimization flag.
487 (-fmath-errno): Ditto.
488 (-falign-functions): Add UInteger flag to make sure flag gets full
489 int in cl_optimization structure.
490 (-falign-jumps): Ditto.
491 (-falign-labels): Ditto.
492 (-falign-loops): Ditto.
493 (-fsched-stalled-insns): Ditto.
494 (-fsched-stalled-insns-dep): Ditto.
496 * target-def.h (TARGET_VALID_OPTION_ATTRIBUTE_P): Add default
498 (TARGET_OPTION_SAVE): Ditto.
499 (TARGET_OPTION_RESTORE): Ditto.
500 (TARGET_OPTION_PRINT): Ditto.
501 (TARGET_OPTION_PRAGMA_PARSE): Ditto.
502 (TARGET_CAN_INLINE_P): Ditto.
503 (TARGET_INITIALIZER): Add new hooks.
505 * tree-inline.c (tree_can_inline_p): New function to determine
506 whether one function can inline another. Check if the functions
507 use compatible optimization options, and also call the backend
510 * tree-inline.h (tree_can_inline_p): Add declaration.
512 * c-common.c (c_common_attribute): Add support for option and
514 (handle_option_attribute): Add support for the option attribute to
515 allow the user to specify different target options for compiling a
517 (handle_optimize_attribute): Add support for the optimize
518 attribute to allow the user to specify different optimization
519 options for compiling a specific function.
520 (handle_hot_attribute): Turn on -O3 optimization for this one
521 function if it isn't the default optimization level.
522 (handle_cold_attribute): Turn on -Os optimization for this one
523 function if it insn't the default optimization.
524 (const_char_p): New const char * typedef.
525 (optimize_args): New static vector to remember the optimization
527 (parse_optimize_options): New function to set up the optimization
528 arguments from either the optimize attribute or #pragma GCC
531 * c-common.h (c_cpp_builtins_optimize_pragma): Add declaration.
532 (builtin_define_std): Ditto.
534 * config.gcc (i[3467]86-*-*): Add i386-c.o to C/C++ languages.
535 Add t-i386 Makefile fragment to add i386-c.o and i386.o
539 * Makefile.in (TREE_H): Add options.h.
540 (options.o): Add $(TARGET_H) $(FLAGS_H) dependencies.
542 * doc/extend.texi (option attribute): Document new attribute.
543 (optimize attribute): Ditto.
544 (hot attribute): Document hot attribute sets -O3.
545 (cold attribute): Document cold attribute sets -Os.
546 (#pragma GCC option): Document new pragma.
547 (#pragma GCC optimize): Ditto.
549 * doc/options.texi (TargetSave): Document TargetSave syntax.
550 (UInteger): Document UInteger must be used for certain flags.
551 (Save): Document Save option to create target specific options
552 that can be saved/restored on a function specific context.
554 * doc/c-tree.texi (DECL_FUNCTION_SPECIFIC_TARGET): Document new
556 (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
558 * doc/tm.texi (TARGET_VALID_OPTION_ATTRIBUTE_P): Document new
560 (TARGET_OPTION_SAVE): Ditto.
561 (TARGET_OPTION_RESTORE): Ditto.
562 (TARGET_OPTION_PRINT): Ditto.
563 (TARGET_OPTION_PRAGMA_PARSE): Ditto.
564 (TARGET_CAN_INLINE_P): Ditto.
566 * doc/invoke.texi (-mfpmath=sse+387): Document as an alias for
568 (-mfpmath=both): Ditto.
570 2008-07-23 Michael Meissner <gnu@the-meissners.org>
571 Karthik Kumar <karthikkumar@gmail.com>
573 * config/i386/i386.h (TARGET_ABM): Move switch into
575 (TARGET_POPCNT): Ditto.
576 (TARGET_SAHF): Ditto.
578 (TARGET_PCLMUL): Ditto.
579 (TARGET_CMPXCHG16B): Ditto.
580 (TARGET_RECIP): Move switch into target_flags.
581 (TARGET_FUSED_MADD): Ditto.
582 (ix86_arch_features): Make an unsigned char type.
583 (ix86_tune_features): Ditto.
584 (OVERRIDE_OPTIONS): Add bool argument to override_options call.
585 (TARGET_CPU_CPP_BUILTINS): Move into ix86_target_macros.
586 (REGISTER_TARGET_PRAGMAS): Define, call ix86_register_pragmas.
588 * config/i386/i386.opt (arch): New TargetSave field to define
589 fields that need to be saved for function specific option
593 (branch_cost): Ditto.
594 (ix86_isa_flags_explicit): Ditto.
595 (tune_defaulted): Ditto.
596 (arch_specified): Ditto.
597 (-m128-long-double): Add Save flag to save option for target
598 specific option support.
600 (-maccumulate-outgoing-args): Ditto.
601 (-malign-double): Ditto.
602 (-malign-stringops): Ditto.
603 (-mfancy-math-387): Ditto.
604 (-mhard-float): Ditto.
606 (-minline-all-stringops): Ditto.
607 (-minline-stringops-dynamically): Ditto.
608 (-mms-bitfields): Ditto.
609 (-mno-align-stringops): Ditto.
610 (-mno-fancy-math-387): Ditto.
611 (-mno-push-args): Ditto.
612 (-mno-red-zone): Ditto.
613 (-mpush-args): Ditto.
616 (-msseregparm): Ditto.
617 (-mstack-arg-probe): Ditto.
632 (-mrecip): Move flag into target_flags.
634 (-mno-fused-madd): Ditto.
635 (-mfused-madd): Ditto.
636 (-mabm): Move flag into ix86_isa_flags.
643 * config/i386/i386-c.c: New file for #pragma support.
644 (ix86_target_macros_internal): New function to #define or #undef
645 target macros based when the user uses the #pragma GCC option to
646 change target options.
647 (ix86_pragma_option_parse): New function to add #pragma GCC option
649 (ix86_target_macros): Move defining the target macros here from
650 TARGET_CPU_CPP_BUILTINS in i386.h.
651 (ix86_register_pragmas): Register the #pragma GCC option hook. If
652 defined, initialize any subtarget #pragmas.
654 * config/i386/darwin.h (REGISTER_SUBTARGET_PRAGMAS): Rename from
655 REGISTER_TARGET_PRAGMAS.
657 * config/i386/t-i386: New file for x86 dependencies.
658 (i386.o): Make dependencies mirror the include files used.
659 (i386-c.o): New file, add dependencies.
661 * config/i386/i386-protos.h (override_options): Add bool
663 (ix86_valid_option_attribute_tree): Add declaration.
664 (ix86_target_macros): Ditto.
665 (ix86_register_macros): Ditto.
667 * config/i386/i386.c (ix86_tune_features): Move initialization of
668 the target masks to initial_ix86_tune_features to allow functions
669 to have different target options. Make type unsigned char,
670 instead of unsigned int.
671 (initial_ix86_tune_features): New static vector to hold processor
672 masks for the tune variables.
673 (ix86_arch_features): Move initialization of the target masks to
674 initial_ix86_arch_features to allow functions to have different
675 target options. Make type unsigned char, instead of unsigned
677 (initial_ix86_arch_features): New static vector to hold processor
678 masks for the arch variables.
679 (enum ix86_function_specific_strings): New enum to describe the
680 string options used for attribute((option(...))).
681 (ix86_target_string): New function to return a string that
682 describes the target options.
683 (ix86_debug_options): New function to print the current options in
685 (ix86_function_specific_save): New function hook to save the
686 function specific global variables in the cl_target_option
688 (ix86_function_specific_restore): New function hook to restore the
689 function specific variables from the cl_target_option structure to
690 the global variables.
691 (ix86_function_specific_print): New function hook to print the
692 target specific options in the cl_target_option structure.
693 (ix86_valid_option_attribute_p): New function hook to validate
694 attribute((option(...))) arguments.
695 (ix86_valid_option_attribute_tree): New function that is common
696 code between attribute((option(...))) and #pragma GCC option
697 support that parses the options and returns a tree holding the
699 (ix86_valid_option_attribute_inner_p): New helper function for
700 ix86_valid_option_attribute_tree.
701 (ix86_can_inline_p): New function hook to decide if one function
702 can inline another on a target specific basis.
703 (ix86_set_current_function); New function hook to switch target
704 options if the user used attribute((option(...))) or #pragma GCC
706 (ix86_tune_defaulted): Move to static file scope from
708 (ix86_arch_specified): Ditto.
709 (OPTION_MASK_ISA_AES_SET): New macro for moving switches into
711 (OPTION_MASK_ISA_PCLMUL_SET): Ditto.
712 (OPTION_MASK_ISA_ABM_SET): Ditto.
713 (OPTION_MASK_ISA_POPCNT_SET): Ditto.
714 (OPTION_MASK_ISA_CX16_SET): Ditto.
715 (OPTION_MASK_ISA_SAHF_SET): Ditto.
716 (OPTION_MASK_ISA_AES_UNSET): Ditto.
717 (OPTION_MASK_ISA_PCLMUL_UNSET): Ditto.
718 (OPTION_MASK_ISA_ABM_UNSET): Ditto.
719 (OPTION_MASK_ISA_POPCNT_UNSET): Ditto.
720 (OPTION_MASK_ISA_CX16_UNSET): Ditto.
721 (OPTION_MASK_ISA_SAHF_UNSET): Ditto.
722 (struct ptt): Move to static file scope from override_options.
723 (processor_target_table): Ditto.
725 (ix86_handle_option): Add support for options that are now isa
727 (override_options): Add support for declaring functions that
728 support different target options than were specified on the
729 command line. Move struct ptt, processor_target_table, cpu_names,
730 ix86_tune_defaulted, ix86_arch_specified to static file scope.
731 Add bool argument. Fix up error messages so the appropriate error
732 is given for either command line or attribute.
733 (ix86_previous_fndecl): New static to remember previous function
734 declaration to see if we need to change target options.
735 (ix86_builtins_isa): New array to record the ISA of each builtin
737 (def_builtin): Always create the builtin function, even if the
738 current ISA doesn't support it.
739 (ix86_init_mmx_sse_builtins): Remove TARGET_AES and TARGET_PCLMUL
740 tests for those builtins.
741 (ix86_init_builtins): Remove TARGET_MMX test for calling
742 ix86_init_mmx_sse_builtins.
743 (ix86_expand_builtin): If the current ISA doesn't support a given
744 builtin, signal an error.
745 (TARGET_VALID_OPTION_ATTRIBUTE_P): Set target hook.
746 (TARGET_SET_CURRENT_FUNCTION): Ditto.
747 (TARGET_OPTION_SAVE): Ditto.
748 (TARGET_OPTION_RESTORE): Ditto.
749 (TARGET_OPTION_PRINT): Ditto.
750 (TARGET_CAN_INLINE_P): Ditto.
752 2008-07-22 Rafael Avila de Espindola <espindola@google.com>
754 * c-typeck.c (build_external_ref): Don't call assemble_external.
755 * final.c (output_operand): Call assemble_external.
757 2008-07-21 DJ Delorie <dj@redhat.com>
759 * config/h8300/h8300.c (h8300_hard_regno_scratch_ok): New.
760 (TARGET_HARD_REGNO_SCRATCH_OK): Define.
762 2008-07-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
764 * config/spu/spu.md ("div<mode>3"): Convert into expander, move
765 original insn and splitter contents into ...
766 ("*div<mode>3_fast"): ... this new pattern. Enable only if
767 flag_unsafe_math_optimizations. Add dummy scratch register.
768 ("*div<mode>3_adjusted"): New insn and splitter. Enable only if
769 !flag_unsafe_math_optimizations. Returns number with next
770 highest magnitude if this is still less or equal to the true
771 quotient in magnitude.
773 2008-07-21 Rafael Avila de Espindola <espindola@google.com>
775 * Makefile.in: Replace toplev.h with TOPLEV_H.
776 * c-decl.c (merge_decls): Don't set DECL_IN_SYSTEM_HEADER.
777 * c-lex.c (fe_file_change): Don't set in_system_header.
778 * c-parser.c (c_token): Remove in_system_header.
779 (c_lex_one_token): Don't set in_system_header.
780 (c_parser_set_source_position_from_token): Don't set in_system_header.
781 * diagnostic.c (diagnostic_report_diagnostic): Use location from
784 * diagnostic.h (diagnostic_report_warnings_p): Add LOC argument.
785 * flags.h (in_system_header): Remove.
786 * function.c (saved_in_system_header): Remove.
787 (push_cfun): Don't set in_system_header.
788 (pop_cfun): Don't set in_system_header.
789 (push_struct_function): Don't set in_system_header.
790 * input.h (expanded_location): Add sysp.
791 (in_system_header_at): New.
792 (in_system_header): New.
793 * toplev.c (in_system_header): Remove.
794 * toplev.h: Include input.h
796 * tree-cfg.c (execute_warn_function_return): Call warning_at.
797 * tree-ssa.c (warn_uninit): Call warning_at.
798 (warn_uninitialized_var): Update calls to warn_uninit.
799 (warn_uninitialized_phi): Update calls to warn_uninit.
800 * tree.c (make_node_stat): Don't set DECL_IN_SYSTEM_HEADER.
801 (expand_location): Initialize xloc.sysp.
802 * tree.h (DECL_IN_SYSTEM_HEADER): Use in_system_header_at.
803 (tree_decl_with_vis): Remove in_system_header_flag.
805 2008-07-21 Andreas Krebbel <krebbel1@de.ibm.com>
808 * recog.c (asm_operand_ok): Change the order of the extra
809 memory constraint checks.
811 2008-07-20 Andrew Pinski <andrew_pinski@playstation.sony.com>
814 * tree-switch-conversion.c (build_one_array): Call
815 varpool_mark_needed_node and varpool_finalize_decl
816 instead of assemble_variable.
818 2008-07-19 Jan Hubicka <jh@suse.cz>
820 * cgraph.c (cgraph_add_new_function): Do early local passes.
821 * tree-nrv.c (gate_pass_return_slot): New gate.
822 (pass_nrv): Add the gate.
823 * tree-ssa-coalese.c (hash_ssa_name_by_var, eq_ssa_name_by_var): New
825 (coalesce_ssa_name): Coalesce SSA names.
826 * tree-ssa-live.c (remove_unused_locals): Be more conservative when
827 not optimizing so unused user vars remains visible.
828 * common.opt (flag_tree_ter): Always enable by default.
829 * tree-ssa-ter.c: Include flags.h
830 (is_replaceable_p): Check that locations match; when aliasing is missing
831 be conservative about loads.
832 * tree-optimize.c (gate_init_datastructures): Remove.
833 (pass_init_datastructures): New.
834 * passes.c: Reorder passes so we always go into SSA.
836 2008-07-19 Jan Hubicka <jh@suse.cz>
838 * doc/extend.texi (flatten attribute): Remove note about unit-at-a-time
839 * doc/invoke.texi (--combine): Likewise.
840 (-finline-functions-called-once): Update levels when enabled.
841 (-funit-at-a-time): Document new behaviour.
842 (-ftoplevel-reorder): Document that it is enabled -O0 and imply
843 -fno-section-anchors when disabled explicitly.
844 (inline params): They are not ignored now.
845 (precompiled headers): Remove unit-at-a-time as being incompatible.
846 * opts.c (decode_options): Handle unit-at-a-time as alias;
847 imply -fno-section-anchors when toplevel reorder is disabled
849 * common.opt (ftoplevel-reorder): Set default value to 2.
850 (funit-at-a-time): Set default value to 1.
851 * config/rs6000/rs6000.c (optimization_options): Set section anchors
854 2008-07-19 Jan Hubicka <jh@suse.cz>
856 * builtins.c (expand_builtin_int_roundingfn,
857 expand_builtin_int_roundingfn_2): Do not take subtarget argument;
860 2008-07-19 Richard Guenther <rguenther@suse.de>
863 * tree-ssa-sccvn.h (get_constant_value_id): Declare.
864 * tree-ssa-sccvn.c (get_constant_value_id): New function.
865 * tree-ssa-pre.c (get_expr_value_id): For newly created
866 constant value-ids make sure to add the expression to its
869 2008-07-19 Jakub Jelinek <jakub@redhat.com>
872 * omp-low.c (expand_omp_atomic_fetch_op): Make sure the
873 return value of the builtin is ignored.
875 2008-07-19 Olivier Hainque <hainque@adacore.com>
877 * doc/tm.texi (MALLOC_ABI_ALIGNMENT): New macro. Alignment, in
878 bits, a C conformant malloc implementation has to provide.
879 * defaults.h (MALLOC_ABI_ALIGNMENT): Default to BITS_PER_WORD.
881 2008-07-19 Joseph Myers <joseph@codesourcery.com>
885 * reload.c (find_reloads_subreg_address): Only reload address if
886 reloaded == 0, not for reloaded != 1.
889 2008-07-16 Joseph Myers <joseph@codesourcery.com>
890 * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
891 (m32c_legitimate_address_p): Handle "++rii" addresses created by
892 m32c_legitimize_reload_address.
894 2008-07-15 Kaz Kojima <kkojima@gcc.gnu.org>
895 * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
896 (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
898 2008-07-19 Olivier Hainque <hainque@adacore.com>
900 * dwarf2out.c (add_subscript_info): New explicit COLLAPSE_P
901 argument, saying whether nested array are to be collapsed
902 into a single array type DIE with multiple subscripts.
903 (gen_array_type_die): Factorize comments about the MIPS_DEBUG_INFO
904 issues, centralize the nested array types collapsing control and
905 disable the transformation for Ada.
907 2008-07-18 Uros Bizjak <ubizjak@gmail.com>
910 * config/i386/i386.md (x86_64_shift_adj_1): Rename from
912 (x86_64_shift_adj_2): New expander.
913 (x86_64_shift_adj_3): Ditto.
914 * config/i386/i386.c (ix86_split_ashr): Use gen_x86_64_shift_adj_3
915 to split TImode operands.
916 (ix86_split_ashl): Use gen_x86_64_shift_adj_2 to split TImode operands.
917 (ix86_split_lshr): Ditto.
919 2008-07-18 Kris Van Hees <kris.van.hees@oracle.com>
921 * c-common.c (c_stddef_cpp_builtins): Define __CHAR16_TYPE__
923 * c-typeck.c (digest_init): Support char16_t and char32_t.
924 (set_nonincremental_init_from_string): Idem.
926 2008-07-18 H.J. Lu <hongjiu.lu@intel.com>
929 * builtins.c (std_gimplify_va_arg_expr): Limit alignment to
930 PREFERRED_STACK_BOUNDARY.
931 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
933 2008-07-18 H.J. Lu <hongjiu.lu@intel.com>
936 * function.c (locate_and_pad_parm): Cap boundary earlier.
938 2008-07-17 Julian Brown <julian@codesourcery.com>
940 * config/arm/arm.c (arm_cxx_determine_class_data_visibility): Make
941 no-op for targets which don't use DLLs.
943 2008-07-17 Martin Jambor <mjambor@suse.cz>
945 * ipa-cp.c (ipcp_print_all_lattices): New variable info, check
946 that nodes are relevant by examining the node->analyzed flag.
947 (ipcp_init_stage): Check which nodes are relevant, assert that the
948 relevant ones are also required.
949 (ipcp_propagate_stage): Check on the side arrays are properly
951 (ipcp_print_all_jump_functions): Make sure not to touch any node
952 that is not analyzed or an edge that does not have a corresponding
953 entry in the on-the-side vectors.
954 (ipcp_function_scale_print): Likewise.
955 (ipcp_update_callgraph): Check that the node is relevant.
956 (ipcp_insert_stage): Check that the node is relevant. Check there is
957 an info for every node and edge.
958 * ipa-prop.c (ipa_init_func_list): Check the nodes are relevant.
959 (ipa_print_all_tree_maps): Likewise and a new variable info.
960 (ipa_print_all_params_modified): Likewise.
961 * ipa-prop.h (ipa_edge_args_info_available_for_edge_p): New function.
963 2008-07-17 Roman Zippel <zippel@linux-m68k.org>
966 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for __mc68000__.
968 2008-07-17 Paolo Bonzini <bonzini@gnu.org>
970 PR rtl-optimization/36753
971 * fwprop.c (use_killed_between): Don't shortcut
972 single-definition global registers.
974 2008-07-16 Jan Hubicka <jh@suse.cz>
976 * cgraph.h (varpool_empty_needed_queue): Declare.
977 * cgraphunit.c (output_in_order): Mark all variables as needed;
979 * varpool.c (varpool_assemble_node): Update debug queue.
980 (varpool_assemble_pending_decls): Don't do it here.
981 (varpool_empty_needed_queue): New function.
983 2008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
985 * recog.c (peephole2_optimize): Fix formatting.
987 2008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
989 * c-pch.c (get_ident): Avoid C++ keywords.
990 * combine-stack-adj.c (single_set_for_csa): Likewise.
991 * final.c (asm_insn_count, final_scan_insn, alter_subreg,
992 output_asm_insn): Likewise.
993 * reload.c (push_secondary_reload, find_reusable_reload,
994 push_reload, combine_reloads, find_reloads,
995 debug_reload_to_stream): Likewise.
996 * reload.h (struct reload): Likewise.
997 * reload1.c (reload_reg_class_lower, find_reg, find_reload_regs,
998 allocate_reload_reg, choose_reload_regs, emit_input_reload_insns,
999 emit_output_reload_insns): Likewise.
1000 * targhooks.c (default_secondary_reload): Likewise.
1001 * varasm.c (section_entry_eq, object_block_entry_eq): Likewise.
1003 2008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1005 * recog.c (validate_change_1, validate_change,
1006 validate_unshare_change, validate_replace_rtx_1, struct
1007 funny_match, constrain_operands, peephole2_optimize): Avoid C++
1009 * reload.c (push_secondary_reload, secondary_reload_class,
1010 scratch_reload_class, find_valid_class, find_reusable_reload,
1011 push_reload, find_dummy_reload, find_reloads_address_1,
1012 find_reloads_address_part, find_equiv_reg): Likewise.
1013 * reload1.c (spill_failure, eliminate_regs_1, allocate_reload_reg,
1014 choose_reload_regs): Likewise.
1015 * rtlanal.c (replace_rtx, nonzero_bits1, num_sign_bit_copies1):
1017 * rtlhooks.c (gen_lowpart_if_possible): Likewise.
1018 * sched-ebb.c (add_deps_for_risky_insns): Likewise.
1019 * sched-rgn.c (concat_INSN_LIST): Likewise.
1020 * stor-layout.c (mode_for_size, mode_for_size_tree,
1021 smallest_mode_for_size): Likewise.
1023 2008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1025 * cfg.c (dump_reg_info): Avoid C++ keywords.
1026 * dwarf2asm.c (dw2_force_const_mem,
1027 dw2_asm_output_encoded_addr_rtx): Likewise.
1028 * except.c (gen_eh_region, add_action_record, output_ttype): Likewise.
1029 * expmed.c (expand_shift): Likewise.
1030 * global.c (find_reg): Likewise.
1031 * graph.c (draw_edge): Likewise.
1032 * local-alloc.c (reg_meets_class_p, find_free_reg): Likewise.
1033 * optabs.c (expand_binop, expand_twoval_unop, expand_twoval_binop,
1034 widen_clz, widen_bswap, expand_parity, expand_unop,
1035 emit_cmp_and_jump_insn_1): Likewise.
1036 * postreload.c (reload_cse_simplify_operands): Likewise.
1037 * ra.h (add_neighbor): Likewise.
1038 * reg-stack.c (remove_regno_note, change_stack): Likewise.
1039 * regclass.c (memory_move_secondary_cost, dump_regclass, regclass,
1040 record_reg_classes, copy_cost, record_address_regs,
1041 invalid_mode_change_p): Likewise.
1042 * regrename.c (regrename_optimize, scan_rtx_reg,
1043 dump_def_use_chain, find_oldest_value_reg,
1044 replace_oldest_value_reg, copyprop_hardreg_forward_1): Likewise.
1046 2008-07-16 David Edelsohn <edelsohn@gnu.org>
1048 * config/rs6000/rs6000.c (processor_target_table): Remove duplicate
1049 MASK_POWERPC64 for power4 in previous commit.
1051 2008-07-16 Olivier Hainque <hainque@adacore.com>
1053 * collect2.c (scan_prog_file, COFF version): Use CONST_CAST
1054 instead of bare conversion to cast const-ness away.
1056 2008-07-16 Anatoly Sokolov <aesok@post.ru>
1058 * config/xtensa/xtensa.h (FUNCTION_OUTGOING_VALUE,
1059 XTENSA_FUNCTION_VALUE, XTENSA_FUNCTION_VALUE): Remove.
1060 * config/xtensa/xtensa.c (xtensa_function_value): New function.
1061 (TARGET_FUNCTION_VALUE): Define.
1063 2008-07-16 David Edelsohn <edelsohn@gnu.org>
1065 * config/rs6000/rs6000.c (processor_target_table): Add
1066 MASK_PPC_GPOPT for power4, power5, power5+, power6, and power6x.
1068 2008-07-16 Joseph Myers <joseph@codesourcery.com>
1071 * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
1072 (m32c_legitimate_address_p): Handle "++rii" addresses created by
1073 m32c_legitimize_reload_address.
1075 2007-07-16 Rafael Avila de Espindola <espindola@google.com>
1077 * c-decl.c (merge_decls): Keep DECL_SOURCE_LOCATION and
1078 DECL_IN_SYSTEM_HEADER in sync.
1080 2008-07-15 Daniel Berlin <dberlin@dberlin.org>
1082 * tree-ssa-sccvn.c (expressions_equal_p): Check type equality.
1083 * tree-ssa-pre.c (pre_expr_eq): Ditto
1084 (get_constant_for_value_id): Take a type as an argument.
1085 (fully_constant_expression): Pass in type.
1086 (find_or_generate_expression): Short circuit constant case.
1087 (create_expression_by_pieces): Remove special casing of
1089 (do_regular_insertion): Short circuit constant case.
1090 (do_partial_partial_insertion): Ditto.
1092 2008-07-15 Kaz Kojima <kkojima@gcc.gnu.org>
1095 * config/sh/sh.md (symGOT_load): Don't add REG_EQUAL note.
1097 2008-07-15 Bob Wilson <bob.wilson@acm.org>
1099 * config/xtensa/libgcc-xtensa.ver: New file.
1100 * config/xtensa/t-linux (SHLIB_MAPFILES): Append libgcc-xtensa.ver.
1102 2008-07-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1104 * df-problems.c (df_set_note): Avoid C++ keywords.
1105 * df-scan.c (df_ref_change_reg_with_loc_1): Likewise.
1106 * dse.c (record_store, remove_useless_values): Likewise.
1107 * emit-rtl.c (gen_reg_rtx, update_reg_offset, gen_rtx_REG_offset,
1108 gen_reg_rtx_offset, operand_subword, change_address_1,
1109 change_address, adjust_address_1, offset_address,
1110 widen_memory_access, emit_copy_of_insn_after): Likewise.
1111 * explow.c (round_push, allocate_dynamic_stack_space): Likewise.
1112 * fwprop.c (should_replace_address, propagate_rtx_1,
1113 propagate_rtx, try_fwprop_subst, forward_propagate_and_simplify):
1115 * gcse.c (cprop_jump, find_implicit_sets, bypass_block,
1116 gcse_emit_move_after, update_ld_motion_stores): Likewise.
1117 * lcm.c (compute_insert_delete, pre_edge_lcm,
1118 compute_rev_insert_delete, pre_edge_rev_lcm): Likewise.
1119 * lower-subreg.c (resolve_reg_notes): Likewise.
1120 * mode-switching.c (optimize_mode_switching): Likewise.
1122 2008-07-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1124 * bt-load.c (add_btr_def, migrate_btr_def,
1125 branch_target_load_optimize): Avoid C++ keywords.
1126 * caller-save.c (insert_restore, insert_save, insert_one_insn):
1128 * combine.c (subst, simplify_set, make_extraction,
1129 make_compound_operation, known_cond, simplify_shift_const_1): Likewise.
1130 * cse.c (make_regs_eqv, merge_equiv_classes, validate_canon_reg,
1131 fold_rtx, equiv_constant, cse_insn, cse_process_notes_1): Likewise.
1133 2008-07-15 Richard Guenther <rguenther@suse.de>
1136 * c-common.c (strict_aliasing_warning): Do not warn for
1137 TYPE_REF_CAN_ALIAS_ALL pointers.
1138 (c_common_get_alias_set): may_alias types are not special.
1139 * tree.c (build_pointer_type_for_mode): Look up the may_alias
1140 attribute and set can_ref_all accordingly.
1141 (build_reference_type_for_mode): Likewise.
1142 * doc/extend.texi (may_alias): Clarify.
1144 2008-07-15 Kaz Kojima <kkojima@gcc.gnu.org>
1147 * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
1148 (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
1150 2008-07-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
1153 * config/rs6000/rs6000.c (print_operand <case 'y'>): Don't use
1154 gcc_assert, instead call output_operand_lossage.
1156 2008-07-15 Kai Tietz <kai.tietz@onevision.com>
1158 * builtins.c (std_canonical_va_list): Treat structure based
1161 2008-07-15 Ben Elliston <bje@au.ibm.com>
1163 * emit-rtl.c (set_mem_attributes_minus_bitpos): Improve comment.
1165 2007-07-14 Rafael Avila de Espindola <espindola@google.com>
1167 * c-decl.c (diagnose_mismatched_decls): Don't warn if TREE_NO_WARNING
1170 2008-07-14 Jan Hubicka <jh@suse.cz>
1172 * i386.md (sse5 cmov pattern): Update call of ix86_sse5_valid_op_p
1173 * sse.md (sse5 patterns): Update call of ix86_sse5_valid_op_p;
1174 fix predicates and constraints.
1175 * i386.c (ix86_sse5_valid_op_p): Add commutative parameter.
1176 * i386-protos.h (ix86_sse5_valid_op_p): Update declaration.
1178 2008-07-14 Doug Kwan <dougkwan@google.com>
1180 * config.gcc (arm*-*-eabi*): Include arm/eabi.h and use
1181 additional option file arm/eabi.opt.
1182 * config/arm/eabi.h (File): New configuration file for EABI targets.
1183 * config/arm/elf.h (SUBTARGET_EXTRA_SPECS): Add
1184 SUBSUBTARGET_EXTRA_SPECS.
1185 (SUBSUBTARGET_EXTRA_SPECS): Provide empty default.
1186 * config/arm/unknown-elf.h (UNKNOWN_ELF_STARTFILE_SPEC): Renamed
1187 from STARTFILE_SPEC so that it can be referenced in an override.
1188 (STARTFILE_SPEC): Use UNKNOWN_ELF_STARTFILE_SPEC.
1189 (UNKNOWN_ELF_ENDFILE_SPEC): Renamed from ENDFILE_SPEC so that it
1190 can be referenced in an override.
1191 (ENDFILE_SPEC): Use UNKNOWN_ELF_ENDFILE_SPEC.
1192 * config/arm/bpabi.h (BPABI_LINK_SPEC): Renamed from LINK_SPEC
1193 so that it can be referenced in an override.
1194 (LINK_SPEC): Use BPABI_LINK_SPEC.
1195 * config/arm/eabi.opt (File): New.
1197 2008-07-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1199 * Makefile.in (TARGET_DEF_H): Add targhooks.h.
1200 (FIXED_VALUE_H): New variable.
1201 (RTL_BASE_H): Use $(INPUT_H) and $(FIXED_VALUE_H) instead of
1202 input.h, fixed-value.h.
1203 (TREE_H): Use $(INPUT_H), add $(SYMTAB_H).
1204 (BASIC_BLOCK_H): Use $(BITMAP_H).
1205 (FUNCTION_H): Add varray.h.
1206 (IPA_REFERENCE_H): Use $(BITMAP_H).
1207 (CGRAPH_H): Add $(BASIC_BLOCK_H).
1208 (DF_H): Use $(BITMAP_H).
1209 (GGC_H): Add statistics.h.
1211 (INSN_ATTR_H): Use it.
1212 (SYSTEM_H): Add safe-ctype.h, filenames.h.
1214 (SYMTAB_H): Add $(OBSTACK_H).
1215 (CPP_INTERNAL_H): New.
1216 (TREE_DUMP_H): Add tree-pass.h.
1217 (TREE_FLOW_H): Use $(BITMAP_H)
1218 (PRETTY_PRINT_H): Use $(INPUT_H).
1219 (EBITMAP_H): Rename from typo-ed EBIMAP_H.
1222 (many object files): Fix lots of header dependencies throughout.
1224 2008-07-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1226 * Makefile.in (write_entries_to_file, write_entries_to_file_split):
1228 (s-gtyp-input): Use them to write tmp-gi.list.
1229 (echo_to_gi.list): Remove.
1231 2008-07-14 Richard Guenther <rguenther@suse.de>
1233 * tree-ssa-sccvn.c (pre_info): Remove.
1234 (switch_to_PRE_table): Likewise.
1235 (free_scc_vn): Do not clear SSA_NAME_VALUE. Do not free pre_info.
1236 (set_hashtable_value_ids): Do not create value-ids for the
1238 (run_scc_vn): Remove double test. Remove bogus special-case
1239 in value-number printing.
1240 * tree-ssa-sccvn.h (switch_to_PRE_table): Remove.
1241 * tree-ssa-ccp.c (get_symbol_constant_value): Do not look at
1243 * tree-flow-inline.h (get_value_handle): Remove.
1244 * tree-flow.h (get_value_handle): Remove.
1246 2008-07-14 Martin Jambor <mjambor@suse.cz>
1248 * tree-switch-conversion.c (gen_inbound_check): Make sure the type
1249 in which we generate arithmetics is not a subrange.
1251 2008-07-14 Martin Jambor <mjambor@suse.cz>
1253 * Makefile.in (IPA_PROP_H): Added ipa-prop.h to IPA_PROP_H variable.
1255 2008-07-14 Richard Guenther <rguenther@suse.de>
1257 * tree-ssa-pre.c (insert_into_preds_of_block): Do not call convert.
1259 2008-07-14 Andreas Krebbel <krebbel1@de.ibm.com>
1262 * config/s390/s390.c: (s390_secondary_reload): Add a secondary
1263 reload for symbol refs moved to r0 with -fPIC.
1264 (legitimize_pic_address): Use the target register as temporary
1266 (emit_symbolic_move): Adjust comment.
1267 * config/s390/s390.md (reloadsi_PIC_addr, reloaddi_PIC_addr):
1270 2008-07-14 Ben Elliston <bje@au.ibm.com>
1272 * c-common.h (C_CPP_HASHNODE): New macro.
1273 * coretypes.h (struct cpp_token): Forward declare.
1274 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
1275 the context-sensitive keyword method.
1276 * config/rs6000/rs6000-c.c (__vector_keyword, vector_keyword,
1277 __pixel_keyword, pixel_keyword, __bool_keyword, bool_keyword,
1278 expand_bool_pixel): New.
1279 (altivec_categorize_keyword): New function.
1280 (init_vector_keywords): New function.
1281 (rs6000_macro_to_expand): Likewise.
1282 (rs6000_cpu_cpp_builtins): Enable context-sensitive macros if not
1283 compiling an ISO C dialect.
1285 2008-07-13 Daniel Berlin <dberlin@dberlin.org>
1287 * tree-ssa-pre.c (fully_constant_expression): Add fold_convert calls.
1288 (create_expression_by_pieces): Fix typo.
1289 (do_regular_insertion): Use debug counter here too.
1291 2008-07-14 Hans-Peter Nilsson <hp@axis.com>
1294 * config/cris/cris.h (CRIS_CONST_OK_FOR_LETTER_P): Renamed from
1295 CONST_OK_FOR_LETTER_P. All port-local users changed.
1296 (CONST_OK_FOR_CONSTRAINT_P): Define; implement Kc as old K,
1297 implement Kp matching power-of-two.
1298 (CONSTRAINT_LEN): Define to match.
1299 * config/cris/cris.md: Replace all use of constraint K with Kc.
1300 ("*btst*): Use Kp for operand 0 of last alternative.
1302 2008-07-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1305 * tree-call-cdce.c (check_target_format): Accept MIPS single, double
1308 2008-07-13 Jan Hubicka <jh@suse.cz>
1310 * tree.c (decl_assembler_name_equal): Expect assembler name of decl
1313 2008-07-13 Richard Guenther <rguenther@suse.de>
1316 * langhooks.c (lhd_print_error_function): Deal with recursive
1319 2008-07-12 Jan Hubicka <jh@suse.cz>
1321 * cgraph.c (assembler_name_hash): New static var.
1322 (hash_node_by_assembler_name, eq_assembler_name): New.
1323 (cgraph_node_for_asm): Use hashtable.
1324 (cgraph_remove_node): Maintain hashtable.
1325 (change_decl_assembler_name): Sanity check that names are not changing
1326 after aliasing was processed.
1327 * cgraph.h (varpoon_node): Add next GGC marker.
1328 * tree.c (decl_assembler_name_equal): Constify.
1329 (decl_assembler_name_hash): New.
1330 * tree.h (decl_assembler_name_equal): Constify.
1331 (decl_assembler_name_hash): Update.
1333 2008-07-12 David Daney <ddaney@avtrex.com>
1335 * config/mips/driver-native.c (host_detect_local_cpu): Handle
1338 2008-07-12 Richard Sandiford <rdsandiford@googlemail.com>
1340 * doc/md.texi: Document the MIPS "v" constraint.
1341 * config/mips/mips.h (reg_class): Revert last change.
1342 (REG_CLASS_NAMES): Likewise.
1343 (REG_CLASS_CONTENTS): Likewise.
1344 * config/mips/mips.c (mips_regno_to_class): Likewise.
1345 * config/mips/constraints.md (v): Likewise, but add documentation.
1346 Add a comment to say that this constraint should not be used in
1349 2008-07-11 DJ Delorie <dj@redhat.com>
1351 * config/h8300/h8300.md (length): Fix branch offset limit.
1353 2008-07-11 Anatoly Sokolov <aesok@post.ru>
1355 * config/avr/avr-protos.h (avr_peep2_scratch_safe): Remove prototype.
1356 * config/avr/avr.c (avr_peep2_scratch_safe): Remove.
1357 (avr_hard_regno_scratch_ok): New function.
1358 (TARGET_HARD_REGNO_SCRATCH_OK): Define.
1359 * config/avr/avr.md (all peepholes that request a scratch register):
1360 Remove avr_peep2_scratch_safe use.
1362 2008-07-11 Tom Tromey <tromey@redhat.com>
1363 Ian Lance Taylor <iant@google.com>
1365 * c-common.h (enum rid): Add RID_CXX_COMPAT_WARN.
1366 (struct c_common_resword): Define.
1367 (D_CONLY, D_CXXONLY, D_C99, D_CXX0X, D_EXT, D_EXT89): Define.
1368 (D_ASM, D_OBJC, D_CXX_OBJC, D_CXXWARN): Define.
1369 (c_common_reswords, num_c_common_reswords): Declare.
1370 * c-common.c (c_common_reswords): New global const array.
1371 (num_c_common_reswords): New const int.
1372 * c-parser.c (struct resword, reswords): Don't define.
1373 (D_C89, D_EXT, D_EXT89, D_OBJC): Don't define.
1374 (c_parse_init): Clarify mask code. Use c_common_reswords rather
1375 than reswords. If warning about C++ keywords, give them a special
1377 (c_lex_one_token): Warn about C++ keywords. Call
1378 objc_is_reserved_word rather than OBJC_IS_AT_KEYWORD.
1379 (c_parser_external_declaration): Look for RID_xxx rather than
1380 RID_AT_xxx, for ObjC++ keywords which are also C++ keywords.
1381 (c_parser_statement_after_labels): Likewise.
1382 (c_parser_objc_class_instance_variables): Likewise.
1383 (c_parser_objc_class_declaration): Likewise.
1384 (c_parser_objc_try_catch_statement): Likewise.
1385 * c-decl.c (c_print_identifier): Ignore RID_CXX_COMPAT_WARN.
1386 (declspecs_add_type): Likewise.
1388 2008-07-11 Angelo Graziosi <angelo.graziosi@alice.it>
1390 * ggc-page.c (alloc_page):
1391 Substituting xmalloc, xcalloc with
1392 XNEWVEC and XCNEWVAR macros which add the
1395 2008-07-11 Richard Guenther <rguenther@suse.de>
1397 PR tree-optimization/36765
1398 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add
1399 aliases from HEAP vars to SMTs.
1401 2008-07-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1403 * Makefile.in (LOOSE_WARN, STRICT_WARN): Update comments.
1404 * configure.ac (loose_warn): Move -Wc++-compat from here...
1405 (strict_warn): ...to here.
1406 * configure: Regenerate.
1408 2008-07-10 Joseph Myers <joseph@codesourcery.com>
1410 * config.gcc (arm-*-coff*, armel-*-coff*, h8300-*-*,
1411 i[34567]86-*-aout*, i[34567]86-*-coff*, m68k-*-aout*,
1412 m68k-*-coff*, sh-*-*, mips-sgi-irix[56]*, pdp11-*-bsd,
1413 rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*): Deprecate targets,
1414 excluding more specific h8300-*-* and sh-*-* targets.
1416 2008-07-10 Daniel Berlin <dberlin@dberlin.org>
1418 * tree-ssa-pre.c (create_expression_by_pieces): Add fold_convert calls.
1420 (execute_pre): Call loop_optimizer_finalize in early exit.
1422 2008-07-10 Jakub Jelinek <jakub@redhat.com>
1425 * omp-low.c (lower_omp_2): If task_shared_vars, test all DECL_P
1426 uids in the bitmap, not just VAR_DECL uids.
1428 PR rtl-optimization/36419
1429 * combine-stack-adj.c (adjust_frame_related_expr): New function.
1430 (combine_stack_adjustments_for_block): Call it if needed. Delete
1432 * dwarf2out.c (dwarf2out_frame_debug_expr): Adjust
1433 DW_CFA_GNU_args_size if CSA pass merged some adjustments into
1434 prologue sp adjustment.
1436 2008-07-10 Peter Maydell <pmaydell@chiark.greenend.org.uk>
1439 * opts.c (print_ignored_options): Report postponed diagnostics for
1440 unknown -Wno-* options as warnings, not errors.
1441 (postpone_unknown_option_error): Renamed to...
1442 (postpone_unknown_option_warning): ... this.
1444 2008-07-09 Doug Kwan <dougkwan@google.com>
1447 2008-07-08 Doug Kwan <dougkwan@google.com>
1449 * config/arm/arm.opt (mandroid): New option.
1450 * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
1451 (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
1453 (CC1PLUS_SPEC): Same.
1455 (STARTFILE_SPEC): Same.
1456 (ENDFILE_SPEC): Same.
1457 (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
1460 2008-07-09 Richard Sandiford <rdsandiford@googlemail.com>
1463 * config/mips/mips.h (reg_class): Remove V1_REG.
1464 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
1465 * config/mips/mips.c (mips_regno_to_class): Map $3 to M16_NA_REGS
1467 (mips_get_tp): New function.
1468 (mips_legitimize_tls_address): Use it.
1469 * config/mips/constraints.md (v): Delete.
1470 * config/mips/mips.md (TLS_GET_TP_REGNUM): New constant.
1471 (tls_get_tp_<mode>): Allow any GPR destination and clobber $3.
1472 After reload, split into a move and ...
1473 (*tls_get_tp_<mode>_split): ...this new instruction.
1475 2008-07-09 David Daney <ddaney@avtrex.com>
1477 * config/mips/driver-native.c: Include coretypes.h and tm.h.
1479 2008-07-09 Jakub Jelinek <jakub@redhat.com>
1481 * gimplify.c (struct gimplify_ctx): Move to tree-gimple.h.
1482 (push_gimplify_context): Don't allocate temp_htab nor c itself here.
1484 (pop_gimplify_context): Check c->temp_htab instead of optimize whether
1485 htab_delete should be called. Don't free c.
1486 (lookup_tmp_var): Create temp_htab lazily.
1487 (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
1488 gimplify_body, force_gimple_operand): Adjust push_gimplify_context
1490 * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
1491 lower_omp_ordered, lower_omp_critical, lower_omp_for,
1492 create_task_copyfn, lower_omp_taskreg, execute_lower_omp):
1493 * tree-ssa-ccp.c (convert_to_gimple_builtin): Likewise.
1494 * tree-sra.c (generate_element_init): Likewise.
1495 * tree-mudflap.c (execute_mudflap_function_ops,
1496 execute_mudflap_function_decls): Likewise.
1497 * tree-inline.c (setup_one_parameter, optimize_inline_calls): Likewise.
1498 * tree-gimple.h (struct gimplify_ctx): New type.
1499 (push_gimplify_context): Adjust prototype.
1501 2008-07-09 Daniel Berlin <dberlin@dberlin.org>
1503 * tree-ssa-pre.c (phi_translate_1): Update placement of
1506 2008-07-09 Anatoly Sokolov <aesok@post.ru>
1508 * target.h (struct gcc_target): Add hard_regno_scratch_ok field.
1509 * target-def.h (TARGET_HARD_REGNO_SCRATCH_OK): New.
1510 (TARGET_INITIALIZER): Use TARGET_HARD_REGNO_SCRATCH_OK.
1511 * targhooks.c (default_hard_regno_scratch_ok): New function.
1512 * targhooks.h (default_hard_regno_scratch_ok): Declare function.
1513 * doc/tm.texi: Document TARGET_HARD_REGNO_SCRATCH_OK hook.
1514 * recog.c: Include "target.h".
1515 (peep2_find_free_register): Add check for global regs. Add target
1517 * Makefile.in (recog.o): Depend on target.h.
1519 2008-07-09 Kaz Kojima <kkojima@gcc.gnu.org>
1521 * config/sh/sh.c (sh_canonical_va_list_type): New.
1522 (TARGET_CANONICAL_VA_LIST_TYPE): Define.
1524 2008-07-09 Raksit Ashok <raksit@google.com>
1526 * doc/invoke.texi (Option Summary): Mention new option
1527 -Wdisallowed-function-list=...
1528 (Warning Options): Document -Wdisallowed-function-list=...
1529 * common.opt (Wdisallowed-function-list=): New flag.
1530 * flags.h (warn_disallowed_functions): External definition of new
1531 boolean warning flag.
1532 (warn_if_disallowed_function_p): Declare new function.
1533 * opts.c (warning_disallowed_functions): New static variable.
1534 (warn_disallowed_functions): New boolean warning flag.
1535 (warn_if_disallowed_function_p): New function.
1536 (add_comma_separated_to_vector): Rename
1537 add_instrument_functions_exclude_list to this.
1538 (common_handle_option): Handle new option. Rename calls to
1539 add_instrument_functions_exclude_list into calls to
1540 add_comma_separated_to_vector.
1541 * c-parser.c (c_parser_postfix_expression_after_primary): New warning
1542 based on flag warn_disallowed_functions.
1544 2008-07-09 Christian Bruel <christian.bruel@st.com>
1546 * final.c (get_attr_length_1): Call get_attr_length_1 with fallback_fn
1547 instead of get_attr_length.
1549 2008-07-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1551 * genattrtab.c (insert_right_side, evaluate_eq_attr): Avoid C++
1553 * genemit.c (gen_insn): Likewise.
1554 * gengtype.c (note_def_vec): Likewise.
1555 * gengtype.h (note_def_vec): Likewise.
1556 * genoutput.c (struct data, output_insn_data, process_template,
1557 gen_expand, gen_split, note_constraint): Likewise.
1558 * genrecog.c (new_decision, add_to_sequence, factor_tests,
1559 make_insn_sequence): Likewise.
1560 * gensupport.c (record_insn_name): Likewise.
1562 2008-07-08 Doug Kwan <dougkwan@google.com>
1564 * config/arm/arm.opt (mandroid): New option.
1565 * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
1566 (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
1568 (CC1PLUS_SPEC): Same.
1570 (STARTFILE_SPEC): Same.
1571 (ENDFILE_SPEC): Same.
1572 (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
1575 2008-07-08 Raksit Ashok <raksit@google.com>
1577 * expr.c (emit_block_move_via_movmem): Fix expected_align parameter.
1578 (set_storage_via_setmem): Fix expected_align parameter.
1579 * doc/invoke.texi (i386 and x86-64 Options): Add a couple of options
1580 missing from the list.
1581 * doc/md.texi (movmem): Explicitly state that expected alignment is
1582 to be expressed in bytes.
1583 (setmem): Explicitly state that expected alignment is to be expressed
1586 2008-07-08 Joseph Myers <joseph@codesourcery.com>
1588 * reload.c (find_reloads_subreg_address): Do not require validity
1589 of address in original mode before reloading address.
1591 2008-07-07 Tianwei Sheng <tianweis@google.com>
1593 * df-core.c (df_remove_problem): Adjust the access to avoid out of
1594 bounds array access.
1596 2008-07-08 Jakub Jelinek <jakub@redhat.com>
1598 * tree-sra.c (sra_build_assignment): Handle CONVERT_EXPR_P dst.
1600 2008-07-05 Daniel Berlin <dberlin@dberlin.org>
1602 Fix PR tree-optimization/23455
1603 Fix PR tree-optimization/35286
1604 Fix PR tree-optimization/35287
1605 * Makefile.in (OBJS-common): Remove tree-vn.o.
1606 (tree-vn.o): Remove.
1607 * dbgcnt.def: Add treepre_insert debug counter.
1608 * gcc/tree-flow.h (add_to_value): Updated for other changes.
1609 (debug_value_expressions): Ditto.
1610 (print_value_expressions): Ditto.
1611 * tree-pretty-print.c (dump_generic_node): Updated for
1612 VALUE_HANDLE removal.
1613 * tree-ssa-dom.c (record_equality): Ditto.
1614 (cprop_operand): Ditto.
1615 (lookup_avail_expr): Ditto.
1616 * tree-ssa-threadedge.c
1617 (record_temporary_equivalences_from_stmts_at_dest): Ditto.
1618 (simplify_control_stmt_condition): Ditto.
1619 * tree.c (tree_code_size): Ditto.
1620 (tree_node_structure): Ditto.
1621 (iterative_hash_expr): Ditto.
1623 * tree.h (VALUE_HANDLE_ID): Ditto.
1624 (VALUE_HANDLE_EXPR_SET): Ditto.
1625 (struct tree_value_handle): Ditto.
1626 (union tree_node): Ditto.
1627 * treestruct.def: Ditto.
1628 * tree-vn.c: Removed.
1629 * tree-ssa-pre.c: Rewritten entirely.
1630 * tree-ssa-sccvn.c (constant_to_value_id): New hashtable.
1631 (constant_value_ids): Ditto.
1632 (vn_nary_op_t): Moved to header.
1634 (vn_reference_op_t): Ditto
1635 (vn_reference_t): Ditto.
1636 (next_value_id): New variable.
1637 (VN_INFO): Add an assert.
1638 (vn_constant_eq): New function.
1639 (vn_constant_hash): Ditto.
1640 (get_or_alloc_constant_value_id): Ditto.
1641 (value_id_constant_p): Ditto.
1642 (vn_reference_compute_hash): De-staticify.
1643 (copy_reference_ops_from_ref): Don't use get_callee_fndecl.
1644 Disable some code with a FIXME. Remove VALUE_HANDLE use.
1645 (valueize_refs): Update opcode if it changes from ssa name to constant.
1646 (vn_reference_lookup_1): Add new argument.
1647 (vn_reference_lookup): Ditto.
1648 (vn_reference_lookup_pieces): New function.
1649 (vn_reference_insert): Add return type. Modify to deal with value ids.
1650 (vn_reference_insert_pieces): New function.
1651 (vn_nary_op_compute_hash): De-staticify.
1652 (vn_nary_op_eq): Ditto.
1653 (vn_nary_op_lookup_pieces): New function.
1654 (vn_nary_op_lookup): Add new argument.
1655 (vn_nary_op_insert_pieces): New function.
1656 (vn_nary_op_insert): Add return type. Modify to deal with value ids.
1657 (vn_phi_insert): Ditto.
1658 (visit_unary_op): Update for callee changes.
1659 (visit_binary_op): Ditto.
1660 (visit_reference_op_load): Ditto.
1661 (visit_reference_op_store): Ditto.
1662 (init_scc_vn): Init next_value_id, constant_to_value_id and
1664 (free_scc_vn): Free them.
1665 (set_hashtable_value_ids): New function.
1666 (run_scc_vn): Use it.
1667 (get_max_value_id): New function.
1668 (get_next_value_id): Ditto.
1669 (expressions_equal_p): Moved from tree-vn.c
1670 (sort_vuses): Ditto.
1671 (sort_vuses_heap): Ditto.
1672 * tree-ssa-sccvn.h: Structures moved from tree-ssa-sccvn.c (noted
1674 * tree.c (iterative_hash_hashval_t): Made non-static
1675 * tree.h (iterative_hash_hashval_t): Declare it.
1677 2008-07-08 Martin Jambor <mjambor@suse.cz>
1679 * ipa-cp.c (ipcp_init_cloned_node): Call ipa_check_create_node_params
1680 instead of ipa_create_node_params.
1681 (ipcp_driver): Allocate infos with ipa_check_create_node_params and
1682 ipa_check_create_edge_args, free them with
1683 free_all_ipa_structures_after_ipa_cp, call ipa_register_cgraph_hooks.
1685 * ipa-prop.c: Include flags.h and tree-inline.h.
1686 (ipa_node_params_vector): New variable.
1687 (ipa_edge_args_vector): New variable.
1688 (edge_removal_hook_holder): New variable.
1689 (node_removal_hook_holder): New variable.
1690 (edge_duplication_hook_holder): New variable.
1691 (node_duplication_hook_holder): New variable.
1692 (ipa_detect_param_modifications): Check for presence of modified flags.
1693 (ipa_compute_jump_functions): Check for presence of jump functions.
1694 (ipa_free_edge_args_substructures): New function.
1695 (ipa_create_node_params): Removed.
1696 (ipa_free_all_edge_args): Changed to deallocate the on-the-side vector.
1697 (ipa_free_node_params_substructures): New function.
1698 (ipa_free_all_node_params): Changed to deallocate the on-the-side
1700 (ipa_edge_removal_hook): New function.
1701 (ipa_node_removal_hook): New function.
1702 (duplicate_array): New function.
1703 (ipa_edge_duplication_hook): New function.
1704 (ipa_node_duplication_hook): New function.
1705 (ipa_register_cgraph_hooks): New function.
1706 (ipa_unregister_cgraph_hooks): New function.
1707 (free_all_ipa_structures_after_ipa_cp): New function.
1709 * ipa-prop.h: Include vec.h.
1710 (ipa_node_params_t): New typedef with vector types for it.
1711 (ipa_edge_args_t): New typedef with vector types for it.
1712 (IPA_NODE_REF): Changed to access an on-the-side vector.
1713 (IPA_EDGE_REF): Changed to access an on-the-side vector.
1714 (ipa_check_create_node_params): New function.
1715 (ipa_check_create_edge_args): New function.
1717 * Makefile.in (IPA_PROP_H): New variable for ipa-prop.h. Converted
1720 2008-07-07 Tom Tromey <tromey@redhat.com>
1722 * configure, config.in: Rebuilt.
1723 * configure.ac: Don't check for scandir or alphasort.
1725 2008-07-07 Joseph Myers <joseph@codesourcery.com>
1727 * config/arm/arm.c (arm_init_neon_builtins): Register built-in
1728 types immediately after creating them.
1730 2008-07-07 Joseph Myers <joseph@codesourcery.com>
1732 * config/arm/aout.h (DOLLARS_IN_IDENTIFIERS): Remove.
1734 2008-07-07 Fernando Pereira <fernando@cs.ucla.edu>
1736 * tree-ssa-structalias.c (compute_points_to_sets): Add call to
1737 dump_constraint_graph.
1738 (dump_constraint_edge): New function.
1739 (dump_constraint_graph): New function.
1740 (debug_constraint_graph): New function.
1741 (dump_constraint): Removed useless comparison.
1742 * tree-ssa-structalias.h (dump_constraint_edge): Declare.
1743 (dump_constraint_graph): Declare.
1744 (debug_constraint_graph): Declare.
1745 * tree-dump.c (struct dump_option_value_info): Declare TDF_GRAPH.
1747 2008-07-07 Kai Tietz <kai.tietz@onevision.com>
1749 * config/i386/i386.c (is_va_list_char_pointer): New.
1750 (ix86_va_start): Replace compare with ms_va_list_type_node
1751 by is_va_list_char_pointer.
1752 (ix86_gimplify_va_arg): Likewise.
1754 2008-07-07 Martin Jambor <mjambor@suse.cz>
1756 * cgraph.c (cgraph_edge_max_uid): New variable.
1757 (struct cgraph_edge_hook_list): New type.
1758 (struct cgraph_node_hook_list): New type.
1759 (struct cgraph_2edge_hook_list): New type.
1760 (struct cgraph_2node_hook_list): New type.
1761 (first_cgraph_edge_removal_hook): New variable.
1762 (first_cgraph_node_removal_hook): New variable.
1763 (first_cgraph_edge_duplicated_hook): New variable.
1764 (first_cgraph_node_duplicated_hook): New variable.
1765 (cgraph_add_edge_removal_hook): New function.
1766 (cgraph_remove_edge_removal_hook): New function.
1767 (cgraph_call_edge_removal_hooks): New function.
1768 (cgraph_add_node_removal_hook): New function.
1769 (cgraph_remove_node_removal_hook): New function.
1770 (cgraph_call_node_removal_hooks): New function.
1771 (cgraph_add_edge_duplication_hook): New function.
1772 (cgraph_remove_edge_duplication_hook): New function.
1773 (cgraph_call_edge_duplication_hooks): New function.
1774 (cgraph_add_node_duplication_hook): New function.
1775 (cgraph_remove_node_duplication_hook): New function.
1776 (cgraph_call_node_duplication_hooks): New function.
1777 (cgraph_create_edge): Assign to edge uid.
1778 (cgraph_remove_edge): Call edge removal hooks.
1779 (cgraph_node_remove_callees): Call edge removal hooks.
1780 (cgraph_node_remove_callers): Call edge removal hooks.
1781 (cgraph_remove_node): Call node removal hooks.
1782 (cgraph_clone_edge): Call edge duplication hooks.
1783 (cgraph_clone_node): Call node duplication hooks.
1785 * cgraph.h (cgraph_edge): New field uid.
1786 (cgraph_edge_hook): New type.
1787 (cgraph_node_hook): New type.
1788 (cgraph_2edge_hook): New type.
1789 (cgraph_2node_hook): New type.
1791 2008-07-07 Andreas Tobler <a.tobler@schweiz.org>
1793 * config.in: Regenerate.
1795 2008-07-07 Vladimir Prus <vladimir@codesourcery.com>
1797 * gcc.c (print_sysroot): New.
1798 (option_map, display_help, process_command): Handle the
1799 -print-sysroot option.
1800 (main): Print the sysroot if requested.
1801 * doc/invoke.texi (Debugging Options): Document -print-sysroot.
1803 2008-07-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1806 * unwind-pe.h (size_of_encoded_value): add attribute unused.
1808 2008-07-07 Daniel Jacobowitz <dan@codesourcery.com>
1810 * function.c (assign_parm_remove_parallels): Check mode of entry_parm.
1811 (assign_parm_setup_block_p): Also check mode of entry_parm.
1813 2008-07-07 Richard Guenther <rguenther@suse.de>
1815 * tree-ssa-structalias.h (set_used_smts): Remove.
1816 * tree-ssa-structalias.c (used_smts): Likewise.
1817 (set_used_smts): Likewise.
1818 * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Remove
1819 call to set_used_smts.
1821 2008-07-07 Richard Guenther <rguenther@suse.de>
1823 * tree-ssa-structalias.c (struct variable_info): Add is_full_var flag.
1824 (new_var_info): Set it to false.
1825 (solution_set_add): Correctly handle pointers outside a var and
1827 (type_safe): Treat variables with is_full_var properly.
1828 (do_sd_constraint): Likewise.
1829 (do_ds_constraint): Likewise.
1830 (process_constraint): Remove zeroing offset for !use_field_sensitive.
1831 (get_constraint_for_ptr_offset): New function.
1832 (get_constraint_for_component_ref): For addresses at least include
1833 the last field of the variable. Handle is_full_vars properly.
1834 (get_constraint_for_1): Factor common code, handle POINTER_PLUS_EXPR.
1835 (handle_ptr_arith): Remove.
1836 (find_func_aliases): Simplify assignment handling.
1837 (create_function_info_for): For parameter and result varinfos set
1839 (create_variable_info_for): Set is_full_var flag whenever we
1840 just created a single varinfo for a decl.
1841 (init_alias_vars): Initialize use_field_sensitive from
1842 max-fields-for-field-sensitive parameter.
1844 2008-07-07 Richard Guenther <rguenther@suse.de>
1846 PR tree-optimization/36713
1847 * tree-flow-inline.h (is_call_used): New function.
1848 * tree-nrv.c (dest_safe_for_nrv_p): Use it.
1849 * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
1850 * tree-outof-ssa.c (create_temp): Set call-used flag if required.
1852 2008-07-07 Maxim Kuvyrkov <maxim@codesourcery.com>
1854 * config/m68k/m68k.c (m68k_return_in_memory): Fix arguments types.
1856 2008-07-07 Mark Shinwell <shinwell@codesourcery.com>
1858 * config/m68k/lb1sf68.asm: Add PIC macros for Linux targets.
1860 2008-07-07 Maxim Kuvyrkov <maxim@codesourcery.com>
1861 Nathan Sidwell <nathan@codesourcery.com>
1863 * config.gcc (m68k-*-linux*): Add with_arch. Add sysroot-suffix.h
1864 to tm_file. Add m68k/t-floatlib, m68k/t-linux & m68k/t-mlibs to
1866 * config/m68k/t-linux: New.
1867 * doc/install.texi: Document m68k-*-linux is now multilibbed by
1870 2008-07-07 Nathan Sidwell <nathan@codesourcery.com>
1872 * config/m68k/t-cf (MULTILIB_EXTRA_OPTS): Add no-mac.
1873 * config/m68k/m68k-devices.def: Remove multilibs that only differ
1876 2008-07-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1878 * gcc.c (execute): Fix -Wc++-compat warning.
1880 2008-07-06 H.J. Lu <hongjiu.lu@intel.com>
1883 * config/ia64/ia64.c (ia64_split_tmode): Fix typo in TImode
1884 constant for little endian.
1886 2008-07-06 Richard Sandiford <rdsandiford@googlemail.com>
1888 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Check
1889 mips_base_mips16 instead of TARGET_MIPS16.
1890 (mips_base_mips16): Declare.
1891 * config/mips/mips.c (mips_base_mips16): Make global.
1892 (was_mips16_p): Remove GTY marker.
1893 (was_mips16_pch_p): New variable.
1894 (mips_set_mips16_mode): Check both was_mips16_p and was_mips16_pch_p.
1895 (mips_override_options): Force to non-MIPS16 mode initially.
1896 Do not complain about MIPS16 PIC incompatibilities here.
1897 Only allow -mgpopt if -mexplicit-relocs is in force for
1900 2008-07-06 Andreas Tobler <a.tobler@schweiz.org>
1902 * configure.ac: Check for caddr_t, define to char * if not defined.
1903 * configure: Regenerate.
1904 * ggc-common.c (mmap_gt_pch_get_address): Fix -Wc++-compat warnings.
1905 (mmap_gt_pch_use_address): Likewise.
1906 * config/host-solaris.c (sol_gt_pch_use_address): Likewise.
1908 2008-07-06 Richard Guenther <rguenther@suse.de>
1910 * tree-ssa-structalias.c (struct variable_info): Remove has_union.
1911 (new_var_info): Deal with it.
1912 (solution_set_add): Likewise.
1913 (bitpos_of_field): Make signed, fix.
1914 (struct fieldoff): Remove type and decl fields. Make size field
1915 unsigned HOST_WIDE_INT. Add has_unknown_size and may_have_pointers
1917 (fieldoff_compare): Deal with it.
1918 (push_fields_onto_fieldstack): Remove has_union argument, glob
1919 adjacent non-pointer fields together.
1920 (create_function_info_for): Do not set has_union.
1921 (create_variable_info_for): Simplify.
1923 2008-07-06 Kai Tietz <kai.tietz@onevision.com>
1925 * config.gcc (extra_headers): Add cross-stdarg.h for target
1926 x86_64-*-* and i?86-*-*.
1927 * config/i386/cross-stdarg.h: New.
1928 * builtins.c (std_fn_abi_va_list): New.
1929 (std_canonical_va_list_type): New.
1930 (stabilize_va_list): Replace va_list_type_node use by
1931 mtarget.canonical_va_list_type.
1932 (gimplify_va_arg_expr): Likewise.
1933 (expand_builtin_va_copy): Replace va_list_type_node use by
1934 mtarget.fn_abi_va_list.
1935 * tree-sra.c (is_va_list_type): New helper.
1936 (decl_can_be_decomposed_p): Replace
1937 va_list_type_node use by is_va_list_type.
1938 * tree-ssa-ccp.c (optimize_stdarg_builtin): Likewise.
1939 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
1940 * c-common.c (c_common_nodes_and_builtins): Use TARGET_ENUM_VA_LIST.
1941 * config/i386/i386-protos.h (ix86_get_valist_type): New.
1942 (ix86_enum_va_list): New.
1943 * config/i386/i386.c (sysv_va_list_type_node): New.
1944 (ms_va_list_type_node): New.
1945 (ix86_function_type_abi): Remove sorry.
1946 (ix86_build_builtin_va_list_abi): New.
1947 (ix86_build_builtin_va_list): Call ix86_build_builtin_va_list_abi
1949 (ix86_va_start): Replace va_list_type_node by sysv_va_list_type_node.
1950 (ix86_init_builtins_va_builtins_abi): New.
1951 (ix86_init_builtins): Use ix86_init_builtins_va_builtins_abi
1953 (ix86_handle_abi_attribute): New.
1954 (attribute_spec): Add sysv_abi and ms_abi.
1955 (ix86_fn_abi_va_list): New.
1956 (ix86_canonical_va_list_type): New.
1957 (ix86_enum_va_list): New.
1958 (TARGET_FN_ABI_VA_LIST): New.
1959 (TARGET_CANONICAL_VA_LIST_TYPE): New.
1960 * config/i386/i386.h (TARGET_ENUM_VA_LIST): New.
1961 * doc/tm.texi (TARGET_FN_ABI_VA_LIST): New.
1962 (TARGET_CANONICAL_VA_LIST_TYPE): New.
1963 (TARGET_ENUM_VA_LIST): New.
1964 * expr.h (std_fn_abi_va_list): New.
1965 (std_canonical_va_list_type): New.
1966 * target-def.h (TARGET_FN_ABI_VA_LIST): New.
1967 (TARGET_CANONICAL_VA_LIST_TYPE): New.
1968 (TARGET_INITIALIZER): Add TARGET_FN_ABI_VA_LIST and
1969 TARGET_CANONICAL_VA_LIST_TYPE.
1970 * target.h (struct gcc_target): Add fn_abi_va_list hook
1971 and canonical_va_list_type hook.
1973 2008-07-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
1975 * fold-const.c (fold_convert_const): Treat OFFSET_TYPE the same as
1976 integral and pointer types.
1978 2008-07-04 Roger Sayle <roger@eyesopen.com>
1980 * config/rs6000/host-darwin.c (darwin_rs6000_extra_signals): Cast
1981 the "void*" result of xmalloc to "char*" to fix bootstrap breakage.
1983 2008-07-04 Kaz Kojima <kkojima@gcc.gnu.org>
1986 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable -fschedule-insns for PIC.
1988 2008-07-04 Jakub Jelinek <jakub@redhat.com>
1990 * tree-switch-conversion.c (build_one_array, gen_def_assigns): Use
1991 build_gimple_modify_stmt.
1992 (build_arrays, gen_inbound_check): Likewise. Force RHS to be
1993 gimple operand. Use fold_build* instead of build*.
1995 2008-07-04 Richard Guenther <rguenther@suse.de>
1997 * tree-ssa-structalias.c (lookup_vi_for_tree): Declare.
1998 (do_sd_constraint): Handle a dereference of ESCAPED and CALLUSED
1999 properly to compute the reachability set if we do field-sensitive PTA.
2000 * invoke.texi (max-fields-for-field-sensitive): Document default.
2001 * opts.c (decode_options): Set max-fields-for-field-sensitive to
2002 100 for optimize >= 2.
2004 2008-07-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2006 * ggc-zone.c (lookup_page_table_if_allocated,
2007 set_page_table_entry, zone_find_object_size, alloc_small_page,
2008 alloc_large_page, ggc_free, gt_ggc_m_S, ggc_marked_p, init_ggc,
2009 new_ggc_zone, init_ggc_pch, ggc_pch_this_base, ggc_pch_read): Fix
2010 -Wc++-compat and/or -Wcast-qual warnings.
2012 2008-07-04 Alan Modra <amodra@bigpond.net.au>
2015 * config/rs6000/rs6000.md (call, call_value): Don't arrange for
2016 pic_offset_table_rtx to be marked as used here.
2017 (call_nonlocal_sysv, call_value_nonlocal_sysv): Add split for
2018 TARGET_SECURE_PLT to "use" pic_offset_table_rtx.
2019 (call_nonlocal_sysv_secure, call_value_nonlocal_sysv_secure): New insn.
2020 (sibcall_nonlocal_sysv, sibcall_value_nonlocal_sysv): Assert
2023 2008-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2025 * alloc-pool.c (hash_descriptor, eq_descriptor,
2026 alloc_pool_descriptor): Fix -Wc++-compat warnings.
2027 * bitmap.c (hash_descriptor, eq_descriptor, bitmap_descriptor):
2029 * ggc-common.c (hash_descriptor, eq_descriptor, hash_ptr, eq_ptr,
2030 loc_descriptor, ggc_prune_ptr, ggc_free_overhead,
2031 final_cmp_statistic, cmp_statistic, dump_ggc_loc_statistics): Likewise.
2032 * varray.c (hash_descriptor, eq_descriptor, varray_descriptor):
2035 2008-07-03 Eric Botcazou <ebotcazou@adacore.com>
2037 * tree-flow.h (loop_only_exit_p): Declare.
2038 * tree-ssa-loop-niter.c (loop_only_exit_p): Make public.
2039 * tree-ssa-loop-ivopts.c (may_eliminate_iv): Reinstate direct check on
2040 the number of iterations if it is constant. Otherwise, if this is the
2041 only possible exit of the loop, use the conservative estimate on the
2042 number of iterations of the entire loop if available.
2044 2008-07-03 Richard Sandiford <rdsandiford@googlemail.com>
2046 * Makefile.in (libgcc.mvars): Add LIBGCC_SYNC and LIBGCC_SYNC_CFLAGS.
2047 * libgcc-std.ver (GCC_4.4.0): New version, inherited from GCC_4.3.0.
2048 Add synchronization functions.
2049 * config/sync.c: New file.
2050 * config/mips/t-libgcc-mips16 (LIBGCC_SYNC): Define.
2051 (LIBGCC_SYNC_CFLAGS): Likewise.
2053 2008-07-03 Uros Bizjak <ubizjak@gmail.com>
2056 * config/i386/i386.md (mode): Add TF to "mode" attribute.
2057 (*pushtf_sse): New insn pattern.
2058 (pushtf splitters): New splitters.
2060 2008-07-03 Michael Meissner <gnu@the-meissners.org>
2063 * predict.c (build_predict_expr): Use void_type_node for the tree
2064 type, instead of NULL_TREE.
2066 2008-07-03 H.J. Lu <hongjiu.lu@intel.com>
2068 * config/i386/i386.c (contains_aligned_value_p): Return true
2070 (ix86_data_alignment): Align TCmode to 128bits.
2071 (ix86_local_alignment): Likewise.
2073 2008-07-03 Andrew Haley <aph@redhat.com>
2076 * vec.h (VEC_TA): New.
2077 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_ALLOC_I, DEF_VEC_ALLOC_P,
2078 DEF_VEC_O, DEF_VEC_ALLOC_O: Use VEC_TA.
2079 * c-common.c (C_COMMON_FIXED_TYPES_SAT): New macro.
2080 (C_COMMON_FIXED_MODE_TYPES_SAT): New macro.
2081 (C_COMMON_FIXED_TYPES): Remove first arg.
2082 (C_COMMON_FIXED_MODE_TYPES): Likewise.
2083 * tree.c (MAKE_FIXED_TYPE_NODE): Break into two macros,
2084 MAKE_FIXED_TYPE_NODE and MAKE_FIXED_TYPE_NODE_WIDTH in order
2085 not to use empty macro arguments.
2087 2008-07-02 Joseph Myers <joseph@codesourcery.com>
2089 * config/alpha/vms_tramp.asm, config/arm/crti.asm,
2090 config/arm/crtn.asm, config/bfin/crti.s, config/bfin/crtlibid.s,
2091 config/bfin/crtn.s, config/fr30/crti.asm, config/fr30/crtn.asm,
2092 config/frv/lib1funcs.asm, config/i386/sol2-c1.asm,
2093 config/i386/sol2-ci.asm, config/i386/sol2-cn.asm,
2094 config/i386/sol2-gc1.asm, config/ia64/crti.asm,
2095 config/ia64/crtn.asm, config/m68hc11/larith.asm,
2096 config/m68hc11/m68hc11-crt0.S, config/m68k/crti.s,
2097 config/m68k/crtn.s, config/mcore/crti.asm, config/mcore/crtn.asm,
2098 config/rs6000/crtresfpr.asm, config/rs6000/crtresgpr.asm,
2099 config/rs6000/crtresxfpr.asm, config/rs6000/crtresxgpr.asm,
2100 config/rs6000/crtsavfpr.asm, config/rs6000/crtsavgpr.asm,
2101 config/rs6000/crtsavres.asm, config/rs6000/e500crtres32gpr.asm,
2102 config/rs6000/e500crtres64gpr.asm,
2103 config/rs6000/e500crtres64gprctr.asm,
2104 config/rs6000/e500crtrest32gpr.asm,
2105 config/rs6000/e500crtrest64gpr.asm,
2106 config/rs6000/e500crtresx32gpr.asm,
2107 config/rs6000/e500crtresx64gpr.asm,
2108 config/rs6000/e500crtsav32gpr.asm,
2109 config/rs6000/e500crtsav64gpr.asm,
2110 config/rs6000/e500crtsav64gprctr.asm,
2111 config/rs6000/e500crtsavg32gpr.asm,
2112 config/rs6000/e500crtsavg64gpr.asm,
2113 config/rs6000/e500crtsavg64gprctr.asm, config/rs6000/eabi-ci.asm,
2114 config/rs6000/eabi-cn.asm, config/rs6000/eabi.asm,
2115 config/rs6000/sol-ci.asm, config/rs6000/sol-cn.asm,
2116 config/rs6000/tramp.asm, config/sparc/sol2-ci.asm,
2117 config/sparc/sol2-cn.asm: Remove .file directives.
2119 2008-07-02 Richard Sandiford <rdsandiford@googlemail.com>
2121 * resource.c (mark_referenced_resources): Look inside
2122 UNSPEC_VOLATILEs and ASM_INPUTs.
2124 2008-07-02 Ian Lance Taylor <iant@google.com>
2126 * rtlanal.c (add_reg_note): New function.
2127 * rtl.h (add_reg_note): Declare.
2128 * auto-inc-dec.c (attempt_change): Use add_reg_note.
2129 * bb-reorder.c (add_reg_crossing_jump_notes): Likewise.
2130 * builtins.c (expand_builtin_longjmp): Likewise.
2131 (expand_builtin_nonlocal_goto): Likewise.
2132 * calls.c (emit_call_1, expand_call): Likewise.
2133 * cfgexpand.c (add_reg_br_prob_note): Likewise.
2134 * cfglayout.c (fixup_reorder_chain): Likewise.
2135 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
2136 (commit_one_edge_insertion): Likewise.
2137 * combine.c (move_deaths, distribute_notes): Likewise.
2138 * df-problems.c (df_set_note): Likewise.
2139 * emit-rtl.c (link_cc0_insns, try_split): Likewise.
2140 (set_unique_reg_note): Likewise.
2141 (emit_copy_of_insn_after): Likewise.
2142 * expr.c (expand_expr_real): Likewise.
2143 * gcse.c (add_label_notes): Likewise.
2144 * haifa-sched.c (create_check_block_twin): Likewise.
2145 * jump.c (mark_jump_label_1): Likewise.
2146 * loop-doloop.c (add_test, doloop_modify): Likewise.
2147 * loop-unswitch.c (compare_and_jump_seq): Likewise.
2148 * lower-subreg.c (move_eh_region_note): Likewise.
2149 * optabs.c (emit_libcall_block): Likewise.
2150 * predict.c (predict_insn): Likewise.
2151 (combine_predictions_for_insn): Likewise.
2152 * recog.c (peephole2_optimize): Likewise.
2153 * regmove.c (try_auto_increment): Likewise.
2154 * reg-stack.c (emit_pop_insn, move_for_stack_reg): Likewise.
2155 * reload.c (find_reloads): Likewise.
2156 * reload1.c (fixup_eh_region_note): Likewise.
2157 (reload_as_needed, add_auto_inc_notes, copy_eh_notes): Likewise.
2158 * reorg.c (delete_prior_computation): Likewise.
2159 (delete_computation, dbr_schedule): Likewise.
2160 * config/pa/pa.c (legitimize_pic_address): Likewise.
2161 * config/sh/sh.c (sh_reorg): Likewise.
2163 2008-07-02 H.J. Lu <hongjiu.lu@intel.com>
2166 * config/libgcc-glibc.ver: Add %exclude.
2167 * config/m32r/libgcc-glibc.ver: Likwise.
2168 * config/s390/libgcc-glibc.ver: Likwise.
2169 * config/sh/libgcc-glibc.ver: Likwise.
2170 * config/sparc/libgcc-sparc-glibc.ver: Likwise.
2172 * config/i386/libgcc-glibc.ver: New.
2174 * config/i386/libgcc-x86_64-glibc.ver: Removed.
2176 2008-07-02 H.J. Lu <hongjiu.lu@intel.com>
2178 * config.gcc: Remove i386/t-fprules-softfp64 soft-fp/t-softfp
2179 from tmake_file from i[34567]86-*-darwin*, x86_64-*-darwin*,
2180 i[34567]86-*-linux*, x86_64-*-linux*. Add
2181 i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file for
2182 i[34567]86-*-darwin*, x86_64-*-darwin*, i[34567]86-*-linux*,
2183 x86_64-*-linux*. Add i386/t-linux to tmake_file for
2184 i[34567]86-*-linux*, x86_64-*-linux*.
2186 * libgcc-std.ver: Add empty GCC_4.4.0.
2188 * mkmap-symver.awk: Support multiple versions per symbol.
2190 * config/i386/i386.c (ix86_init_builtins): Always define
2191 __builtin_fabsq and __builtin_copysignq with fallbacks.
2192 (ix86_expand_builtin): Emit normal call for __builtin_fabsq
2193 and __builtin_copysignq if SSE2 isn't available.
2195 * config/i386/linux.h (LIBGCC2_HAS_TF_MODE): Defined.
2196 (LIBGCC2_TF_CEXT): Likwise.
2199 * config/i386/linux64.h (LIBGCC2_HAS_TF_MODE): Defined as 1.
2201 * config/i386/sfp-machine.h: Moved to libgcc.
2203 * config/i386/sfp-machine.h: New.
2204 * config/i386/t-linux: Likwise.
2206 * config/i386/t-darwin: Remove softfp_wrap_start and
2208 * config/i386/t-darwin64: Likewise.
2210 * config/i386/t-fprules-softfp64: Renamed to ...
2211 * config/i386/t-fprules-softfp: This.
2213 * config/i386/t-linux64: Remove SHLIB_MAPFILES, softfp_wrap_start
2214 and softfp_wrap_end.
2216 2008-07-02 Jason Merrill <jason@redhat.com>
2218 * tree.c (ctor_to_list): Use FOR_EACH_CONSTRUCTOR_ELT.
2220 * tree.c (ctor_to_list): New fn.
2221 * tree.h: Declare it.
2222 (CONSTRUCTOR_ELT): New macro.
2223 (CONSTRUCTOR_NELTS): New macro.
2225 2008-07-02 Richard Guenther <rguenther@suse.de>
2227 * tree-ssa-structalias.c (struct variable_info): Reorder
2228 to fill padding on 64bit hosts. Make collapsed_to an int.
2229 (get_varinfo_fc): Deal with that.
2230 (new_var_info): Likewise.
2231 (collapse_rest_of_var): Likewise.
2233 2008-07-02 Joshua Sumali <jsumali@redhat.com>
2235 * doc/install.texi (--enable-java-home): Document.
2236 (--enable-aot-compile-rpm): Likewise.
2237 (--with-arch-directory): Likewise.
2238 (--with-os-directory): Likewise.
2239 (--with-origin-name): Likewise.
2240 (--with-arch-suffix): Likewise.
2241 (--with-jvm-root-dir): Likewise.
2242 (--with-jvm-jar-dir): Likewise.
2243 (--with-python-dir): Likewise.
2245 2008-07-02 Richard Guenther <rguenther@suse.de>
2247 * tree-ssa-forwprop.c (can_propagate_from): Exclude loads
2248 from decls explicitly. Merge operand checking from tuples.
2250 2008-07-02 Martin Jambor <mjambor@suse.cz>
2252 * tree-switch-conversion.c: Included timevar.h which I forgot before.
2254 2008-07-02 Martin Jambor <mjambor@suse.cz>
2256 * tree-switch-conversion.c: Included timevar.h
2257 (pass_convert_switch): Added a timevar id (TV_TREE_SWITCH_CONVERSION).
2259 * timevar.def: Added TV_TREE_SWITCH_CONVERSION.
2261 2008-07-02 Martin Jambor <mjambor@suse.cz>
2263 * tree-switch-conversion.c: Corrected various comments and
2265 (build_constructors): Fixed minor formatting mistakes.
2267 * invoke.texi (Optimize Options): Corrected the
2268 switch-conversion-max-branch-ratio parameter.
2270 2008-07-02 Mark Shinwell <shinwell@codesourcery.com>
2272 * final.c (asm_insn_count): Return zero for an empty asm body.
2274 2008-07-02 Richard Guenther <rguenther@suse.de>
2276 * bitmap.h (bitmap_set_bit): Return bool.
2277 (bitmap_clear_bit): Likewise.
2278 * bitmap.c (bitmap_set_bit): Return if the bit changed. Only
2279 write to the bitmap if it would.
2280 (bitmap_clear_bit): Likewise.
2281 * tree-ssa-structalias.c (add_implicit_graph_edge): Use
2282 bitmap_set_bit return value.
2283 (add_pred_graph_edge): Likewise.
2284 (add_graph_edge): Likewise.
2285 (do_sd_constraint): Likewise.
2286 (do_ds_constraint): Likewise.
2288 2008-07-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2290 * config/alpha/alpha.c (alpha_need_linkage, alpha_use_linkage):
2291 Fix -Wc++-compat and/or -Wcast-qual warnings.
2292 * config/i386/netware.c (gen_stdcall_or_fastcall_decoration,
2293 gen_regparm_prefix): Likewise.
2294 * vmsdbgout.c (write_modbeg, lookup_filename,
2295 vmsdbgout_source_line, vmsdbgout_init): Likewise.
2297 2008-07-02 Danny Smith <dannysmith@users.sourceforge.net>
2299 * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Undef to let
2300 defaults.h definition apply.
2302 2008-07-01 Daniel Jacobowitz <dan@codesourcery.com>
2304 * function.c (assign_parm_remove_parallels): New.
2305 (assign_parm_setup_block_p): Do not return true for non-BLKmode
2307 (assign_parm_setup_block): Do not handle them.
2308 (assign_parm_setup_reg, assign_parm_setup_stack): Call
2309 assign_parm_remove_parallels.
2311 2008-07-01 Daniel Jacobowitz <dan@codesourcery.com>
2313 * c-typeck.c (convert_for_assignment): Use
2314 vector_targets_convertible_p.
2315 * c-common.c (vector_targets_convertible_p): New.
2316 * c-common.h (vector_targets_convertible_p): New prototype.
2317 * config/rs6000/rs6000.c (rs6000_is_opaque_type): Do not check
2318 opaque_p_V2SI_type_node.
2320 2008-07-01 Steve Ellcey <sje@cup.hp.com>
2322 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Do not allow
2325 2008-07-01 Uros Bizjak <ubizjak@gmail.com>
2327 * config/i386/i386.c (ix86_build_signbit_mask): Generate TImode and
2328 TFmode constants via two element DImode vector for hosts with
2329 HOST_BITS_PER_WIDE_INT < 64.
2330 (ix86_init_builtins): Define __builtin_fabsq and __builtin_copysignq
2331 also for HOST_BITS_PER_WIDE_INT < 64.
2333 2008-07-01 Richard Guenther <rguenther@suse.de>
2335 PR tree-optimization/36666
2336 * tree-ssa-structalias.c (get_constraint_for_1): Declare.
2337 (get_constraint_exp_from_ssa_var): Split into ...
2338 (get_constraint_exp_for_temp): ... this ...
2339 (get_constraint_for_ssa_var): ... and that.
2340 Return constraint expressions for all touched sub-fields
2341 if the results address is not taken.
2342 (process_constraint): Remove assertion that aggregate
2343 assignments do not happen at this place.
2344 (get_constraint_for_component_ref): Add address_p argument.
2345 Return constraint expressions for all touched sub-fields
2346 if the results address is not taken.
2347 (do_deref): Use get_constraint_exp_for_temp.
2348 (get_constraint_for_1): Rename from ...
2349 (get_constraint_for): ... this. Add the old function as wrapper.
2350 (do_structure_copy): Use get_constraint_for_1.
2352 2008-07-01 Martin Jambor <mjambor@suse.cz>
2354 * Makefile.in (tree-switch-conversion.o): Add.
2355 (OBJS-common): Add tree-swtch-conversion.o.
2356 * passes.c (init_optimization_passes): Add pass_convert_switch.
2357 * tree-pass.h: (pass_convert_switch): Add.
2358 * tree-switch-conversion.c: New file.
2359 * gcc.dg/tree-ssa/cswtch.c: New testcase.
2360 * common.opt (ftree-cswtch): New option.
2361 * params.h (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
2362 * params.def (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
2363 * opts.c (decode_options): Set flag_tree_switch_conversion when
2364 optimization level is >= 2.
2365 * doc/invoke.texi (Optimize Options): Added description of
2366 -ftree-swtch-conversion and switch-conversion-max-branch-ratio.
2368 2008-06-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2370 * config/darwin-driver.c (darwin_default_min_version): Fix
2371 -Wc++-compat warnings.
2373 2008-06-30 Uros Bizjak <ubizjak@gmail.com>
2375 * config/i386/i386.md (*movti_rex64): Add "!" to "r" constraint
2378 2008-06-30 Kenneth Zadeck <zadeck@naturalbridge.com>
2380 * ifcvt.c (cond_move_process_if_block): Free vectors on false return.
2382 2008-06-30 Kenneth Zadeck <zadeck@naturalbridge.com>
2384 PR rtl-optimization/34744
2385 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): New macros.
2386 (df_scan_free_internal): Free data structures not
2387 allocated in storage pools.
2388 (df_mw_hardreg_chain_delete_eq_uses): Use df_scan_free_mws_vec.
2389 (df_refs_add_to_chains): Use df_scan_free_ref_vec and
2390 df_scan_free_mws_vec.
2391 * dse.c (dse_step6): Free offset_map_p and offset_map_n
2394 2008-06-30 H.J. Lu <hongjiu.lu@intel.com>
2396 * config/i386/i386.c (contains_aligned_value_p): Return true
2398 (ix86_function_arg_boundary): Return its natural boundary
2400 (return_in_memory_32): Don't check TDmode.
2401 (ix86_split_to_parts): Support splitting into 4 parts and
2402 support TFmode for 32bit target.
2403 (ix86_split_long_move): Support splitting into 4 parts.
2404 (bdesc_args): Enable IX86_BUILTIN_FABSQ and IX86_BUILTIN_COPYSIGNQ
2406 (ix86_init_mmx_sse_builtins): Move __float80 and __float128 to ...
2407 (ix86_init_builtins): Here.
2408 (ix86_scalar_mode_supported_p): Always return true for TFmode.
2409 (ix86_c_mode_for_suffix): Always return TFmode and XFmode for
2410 'q' and 'w', respectively.
2412 * config/i386/i386.md (movtf): Check TARGET_SSE2 instead of
2414 (movtf_internal): Likewise.
2415 (<code>tf2): Likewise.
2416 (*absnegtf2_sse): Likewise.
2417 (copysign<mode>3): Likewise.
2418 (copysign<mode>3_const): Likewise.
2419 (copysign<mode>3_var): Likewise.
2420 (define_split UNSPEC_COPYSIGN): Likewise.
2421 * config/i386/sse.md (*nandtf3): Likewise.
2422 (<code>tf3): Likewise.
2423 (*<code>tf3): Likewise.
2425 2008-06-30 Joey Ye <joey.ye@intel.com>
2426 H.J. Lu <hongjiu.lu@intel.com>
2428 * global.c (compute_regsets): Set frame_pointer_needed here.
2429 * reload1.c (init_elim_table): Don't set frame_pointer_needed here.
2431 2008-06-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
2433 * doc/install.texi (specific): Expand Windows build notes.
2435 2008-06-30 Ira Rosen <irar@il.ibm.com>
2437 PR tree-optimization/36648
2438 * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Divide
2439 number of prolog iterations by step. Fix the comment.
2441 2008-06-30 Richard Guenther <rguenther@suse.de>
2444 * tree-ssa-structalias.c (handle_lhs_call): Add flags argument,
2445 handle calls from ECF_MALLOC functions.
2446 (handle_pure_call): ECF_MALLOC functions do not return
2448 (find_func_aliases): Handle all calls, adjust calls to handle_lhs_call.
2450 2008-06-29 Andreas Schwab <schwab@suse.de>
2452 * config/m68k/m68k.c (print_operand): Always print a float
2454 * config/m68k/m68k.h (ASM_OUTPUT_FLOAT_OPERAND)
2455 (ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND):
2458 * config/rs6000/x-linux64: Remove never used file.
2460 2008-06-29 Richard Guenther <rguenther@suse.de>
2462 * tree-ssa-structalias.h (compute_points_to_sets): Adjust
2464 (struct alias_info): Move ...
2465 * tree-ssa-alias.c: ... here.
2466 (update_alias_info): Declare.
2467 (compute_may_aliases): Call it.
2468 (update_alias_info): New function.
2469 * tree-ssa-structalias.c (update_alias_info): Move ...
2470 * tree-ssa-alias.c (update_alias_info_1): ... here.
2471 * tree-ssa-structalias.c (process_constraint_1): Remove
2472 unused from_call argument. Rename to ...
2473 (process_constraint): ... this. Delete old wrapper.
2474 (make_constraint_to): Adjust callers.
2475 (handle_const_call): Likewise.
2476 (handle_pure_call): Likewise.
2477 (init_base_vars): Likewise.
2478 (handle_lhs_call): Likewise. Remove unnecessary constraint.
2479 (find_func_aliases): We don't need structure copies for
2481 (make_constraint_from_anything): Remove.
2482 (create_variable_info_for): For globals make constraints
2483 from escaped, not from anything.
2484 (compute_points_to_sets): Do not call update_alias_info.
2485 (ipa_pta_execute): Use make_constraint_from.
2487 2008-06-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2489 * Makefile.in (CXX_COMPAT_WARN, cxx_compat_warn): Delete.
2490 (bitmap.o-warn, dominance.o-warn): New.
2491 * configure.ac (cxx_compat_warn): Delete.
2492 (loose_warn): Add -Wcast-qual and -Wc++-compat.
2493 * system.h: Remove #pragma diagnostic for -Wcast-qual and
2495 * configure: Regenerate.
2497 * optabs.c (libfunc_decl_hash, libfunc_decl_eq): Fix -Wcast-qual
2500 2008-06-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2502 * alloc-pool.c (create_alloc_pool): Fix -Wc++-compat warnings.
2503 * df-scan.c (df_notes_rescan): Likewise.
2504 * ggc-page.c (set_page_table_entry): Likewise.
2505 * intl.c (gcc_gettext_width): Likewise.
2506 * varasm.c (get_unnamed_section, get_noswitch_section,
2507 get_section): Likewise.
2509 2008-06-28 Andrew Jenner <andrew@codesourcery.com>
2511 * regrename.c (build_def_use): Don't copy RTX.
2513 2008-06-28 Sandra Loosemore <sandra@codesourcery.com>
2515 * doc/extend.texi (Variable Attributes): Use @ref instead of @xref.
2516 (Type Attributes): Fix nesting of @table and @subsection. Adjust
2517 punctuation. Use @ref instead of @xref.
2518 (Function Names): Remove stray @display/@end display.
2519 (C++ Attributes): Use @ref instead of @xref.
2520 (Deprecated Features): Fix punctuation around @xref.
2521 (Backwards Compatibility): Likewise.
2522 * doc/rtl.texi (Incdec): Remove stray @table/@end table.
2524 2008-06-28 Joseph Myers <joseph@codesourcery.com>
2526 * config/rs6000/predicates.md (easy_fp_constant): Reject TFmode
2527 constants for E500 double.
2529 2008-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2531 * doc/rtl.texi (const_vector): Document const_fixed as legitimate
2532 element type of const_vector.
2534 2008-06-28 Uros Bizjak <ubizjak@gmail.com>
2536 * config/i386/i386.md (addti3, adddi3, addsi3, addhi3, addqi3):
2537 Remove FLAGS_REG clobber from expander pattern.
2538 (subti3, subdi3, subsi3, subhi3, subqi3): Ditto.
2539 (anddi3, andsi3, andhi3, andqi3): Ditto.
2540 (iordi3, iorsi3, iorhi3, iorqi3): Ditto.
2541 (xordi3, xorsi3, xorhi3, xorqi3): Ditto.
2542 (negti2, negdi2, negsi2, neghi2, negqi2): Ditto.
2543 (ashlsi3, ashlhi3, ashlqi3): Ditto.
2544 (ashrsi3, ashrhi3, ashrqi3): Ditto.
2545 (lshrsi3, lshrhi3, lshrqi3): Ditto.
2546 (rotldi3, rotlsi3, rotlhi3, rotlqi3): Ditto.
2547 (rotrdi3, rotrsi3, rotrhi3, rotrqi3): Ditto.
2549 2008-06-28 Richard Guenther <rguenther@suse.de>
2551 * tree-ssa-structalias.c (callused_id, var_callused,
2552 callused_tree): Add.
2553 (handle_pure_call): New function.
2554 (find_func_aliases): Call it.
2555 (find_what_p_points_to): Handle the call-used set.
2556 (clobber_what_escaped): Likewise.
2557 (compute_call_used_vars): New function.
2558 (init_base_vars): Init the call-used variable.
2559 (do_sd_constraint): Do not propagate the solution from CALLUSED
2560 but use CALLUSED as a placeholder.
2561 (solve_graph): Likewise.
2562 * tree-flow-inline.h (gimple_call_used_vars): New function.
2563 * tree-flow.h (struct gimple_df): Add call_used_vars bitmap.
2564 (compute_call_used_vars): Declare.
2565 * tree-ssa-alias.c (set_initial_properties): Call
2566 compute_call_used_vars.
2567 (reset_alias_info): Clear call-used variables.
2568 (add_call_clobber_ops): Assert we are not called for const/pure
2569 functions. Remove handling of them.
2570 (add_call_read_ops): Handle pure functions by adding the
2571 call-used set of variables as VUSEs.
2572 * tree-ssa.c (init_tree_ssa): Allocate call-used bitmap.
2573 (delete_tree_ssa): Free it.
2574 * tree-dfa.c (remove_referenced_var): Clear the var from the
2577 2008-06-28 Kai Tietz <kai.tietz@onevision.com>
2579 * tree.c (build_varargs_function_type_list): New.
2580 (build_function_type_list_1): New.
2581 (build_function_type_list): Use build_function_type_list_1.
2582 * tree.h (build_varargs_function_type_list): New.
2584 2008-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2587 * config/spu/spu.c (spu_builtin_splats): Do not generate
2588 invalid CONST_VECTOR expressions.
2589 (spu_expand_vector_init): Likewise.
2591 2008-06-28 Richard Sandiford <rdsandiford@googlemail.com>
2593 * optabs.c (libfunc_decls): New variable.
2594 (libfunc_decl_hash, libfunc_decl_eq): New functions.
2595 (init_one_libfunc): Reuse decls and SYMBOL_REFs when asked
2596 for the same function twice.
2598 2008-06-27 Uros Bizjak <ubizjak@gmail.com>
2600 * config/i386/i386.md (ashlti3, ashrti3, lshrti3): Expand using
2601 ix86_expand_binary_operator directly.
2602 (*ashlti3_1): Rename from ashlti3_1. Use nonmemory_operand predicate
2604 (*ashrti3_1): Ditto.
2605 (*lshrti3_1): Ditto.
2606 (*ashlti3_2, *ashrti3_2, *lshrti3_2): Remove insn patterns.
2607 (ashlti, ashrti and lshrti splitters): Handle nonmemory operand 2
2608 using only one splitter. Conditionaly execute splitter before or
2609 after peephole2 pass.
2610 (ashlti, ashrti and lshrti peephole2): Define peephole2 patterns.
2611 (x86_shld): Rename from x86_shld_1. Compress operand 2 constraints.
2612 Use only one alternative in asm template.
2613 (x86_64_shld): Compress operand 2 constraints. Use only one alternative
2615 (*ashldi3_cmp_rex64): Use const_1_to_63_operand operand predicate and
2616 "J" operand constraint for operand 2.
2617 (*ashldi3_cconly_rex64): Ditto.
2618 (*ashrdi3_cmp_rex64): Ditto.
2619 (*ashrdi3_cconly_rex64): Ditto.
2620 (*lshrdi3_cmp_rex64): Ditto.
2621 (*lshrdi3_cconly_rex64): Ditto.
2622 * config/i386/predicates.md (const_1_to_63_operand): New predicate.
2623 * config/i386/i386.md (print_operand) ['s']: Print ", " using fputs.
2624 (split_ashr, split_ashl, split_lshr): Use gen_x86_shrd instead of
2627 2008-06-27 Jakub Jelinek <jakub@redhat.com>
2629 * gimplify.c (omp_is_private): Don't return true if decl is not
2630 already private on #pragma omp for or #pragma omp parallel for.
2633 * tree-cfg.c (struct move_stmt_d): Replace block field with
2634 orig_block and new_block fields.
2635 (move_stmt_r): Only set TREE_BLOCK to p->new_block if
2636 if it used to be NULL, p->orig_block or if p->orig_block is NULL.
2637 (move_block_to_fn): Replace vars_map and new_label_map arguments
2638 with struct move_stmt_d pointer.
2639 (replace_block_vars_by_duplicates): New function.
2640 (move_sese_region_to_fn): Add ORIG_BLOCK argument. Adjust
2641 move_block_to_fn caller. If ORIG_BLOCK is non-NULL, move over
2642 all subblocks of ORIG_BLOCK to the new function. Call
2643 replace_block_vars_by_duplicates.
2644 * tree-flow.h (move_sese_region_to_fn): Adjust prototype.
2645 * omp-low.c (expand_omp_taskreg): Set TREE_USED on DECL_INITIAL
2646 BLOCK of the new function. Adjust move_sese_region_to_fn caller.
2647 Prune vars with original DECL_CONTEXT from child_cfun->local_decls.
2648 (expand_omp): Temporarily set input_location to the location of
2649 region's controlling stmt.
2650 (lower_omp_sections, lower_omp_for): Add a BLOCK into outermost
2651 BIND_EXPR, push ctx->block_vars and gimplification vars into
2652 the BIND_EXPR and its block's BLOCK_VARS instead of directly
2654 (lower_omp_single): Set TREE_USED on the BIND_EXPR's BLOCK if
2655 there are any BLOCK_VARS.
2656 (lower_omp_taskreg): Set BLOCK on a BIND_EXPR containing the
2657 OMP_PARALLEL or OMP_TASK stmt.
2658 (lower_omp): Save and restore input_location around the lower_omp_1
2661 2008-06-27 Richard Guenther <rguenther@suse.de>
2663 PR tree-optimization/36400
2664 PR tree-optimization/36373
2665 PR tree-optimization/36344
2666 * tree-ssa-structalias.c (var_escaped, escaped_tree, escaped_id,
2667 var_nonlocal, nonlocal_tree, nonlocal_id): New globals
2668 (update_alias_info): Remove call clobbering code.
2669 (make_constraint_to): New helper function.
2670 (make_escape_constraint): Likewise.
2671 (handle_rhs_call): Use it on all pointer containing arguments.
2672 Also mark the static chain escaped.
2673 (handle_lhs_call): Make constraints from NONLOCAL and ESCAPED
2674 instead of ANYTHING.
2675 (make_constraint_from): New helper split out from ...
2676 (make_constraint_from_anything): ... here.
2677 (find_func_aliases): Add constraints for escape sites.
2678 (intra_create_variable_infos): Make constraints from NONLOCAL
2680 (find_what_p_points_to): Interpret NONLOCAL and ESCAPED the same
2682 (clobber_what_p_points_to): Remove.
2683 (clobber_what_escaped): New function.
2684 (init_base_vars): Init NONLOCAL and ESCAPED.
2685 (do_sd_constraint): Do not propagate the solution from ESCAPED
2686 but use ESCAPED as a placeholder.
2687 (solve_graph): Likewise.
2688 * tree-flow.h (clobber_what_p_points_to): Remove.
2689 (clobber_what_escaped): Declare.
2690 * tree-ssa-alias.c (set_initial_properties): Call it.
2691 Remove code clobbering escaped pointers.
2693 2008-06-27 Richard Sandiford <rdsandiford@googlemail.com>
2695 * function.c (allocate_struct_function): Only allocate a unique
2696 funcdef_no if the decl is nonzero.
2698 2008-06-27 Richard Sandiford <rdsandiford@googlemail.com>
2700 * config/mips/mips-protos.h (mips_split_const_insns): Declare.
2701 * config/mips/mips.c (mips_split_const_insns): New function.
2702 * config/mips/mips.md (move_type): New attribute.
2703 (mode): Move attribute definition earlier in file. Add "TI" and "TF".
2704 (dword_mode): New attribute.
2705 (type): Avoid long line. Map "move_type"s to "type"s,
2706 choosing "multi" for doubleword moves if appropriate.
2707 Swap MTC/MFC comments to match their declaration order.
2708 (extended_mips16): Default to "yes" if "move_type" is "sll0",
2709 "type" is "branch" or "jal" is "direct".
2710 (length): Handle "extended_mips16" first. Make the default
2711 "0" for "ghost" instructions. Set the length from "move_type".
2712 (truncdisi2, truncdihi2, truncdiqi2): Use "move_type" instead
2713 of "type", with "sll0" for the register alternative. Remove the
2714 "extended_mips16" attribute.
2715 (zero_extendsidi2, *clear_upper32): Use "move_type" instead
2716 of "type", with "shift_shift" for the register alternative.
2717 Remove the "length" attribute.
2718 (*extend<SHORT:mode><GPR:mode>2, *extendqihi2): Likewise.
2719 (*zero_extend<SHORT:mode><GPR:mode>2): Use "move_type" instead
2720 of "type", with "andi" for the register alternative.
2721 (*zero_extendqihi2): Likewise.
2722 (*zero_extend<SHORT:mode><GPR:mode>2_mips16e): Use a "move_type"
2723 of "andi" instead of a "type" of "arith".
2724 (*zero_extend<SHORT:mode><GPR:mode>2_mips16): Use "move_type"
2726 (*zero_extendqihi2_mips16, mov_<load>l, mov_<load>r, mov_<store>l)
2727 (mov_<store>r, *mov<mode>_ra): Likewise.
2728 (extendsidi2): Use "move_type" instead of "type", with "move"
2729 for the register alternative.
2730 (*extend<SHORT:mode><GPR:mode>2_mips16e): Use "move_type" instead
2731 of "type", with "signext" for the register alternative.
2732 (*extend<SHORT:mode><GPR:mode>2_se<SHORT:size>): Likewise.
2733 (*extendqihi2_mips16e, *extendqihi2_seb): Likewise.
2734 (fix_truncdfsi2_insn, fix_truncsfsi2_insn, fix_truncdfdi2)
2735 (fix_truncsfdi2, floatsidf2, floatdidf2, floatsisf2, floatdisf2)
2736 (floatdisf2, *branch_equality<mode>_mips16): Likewise.
2737 (unnamed branch insn): Likewise.
2738 (*movdi_gp32_fp64): Fold into...
2739 (*movdi_32bit): ...here.
2740 (*movdf_hardfloat_64bit, *movdf_hardfloat_32bit): Combine into...
2741 (*movdf_hardfloat): ...this new pattern.
2742 (*movdf_softfloat): Remove redundant FPR alternatives.
2743 (*movti, *movti_mips16, *movtf, *movtf_mips16): Add "mode" attributes.
2744 (*movv2sf_hardfloat_64bit, *movv2sf_hardfloat_32bit): Combine into...
2745 (*movv2sf): ...this new pattern. Use "DF" rather than "SF" for
2746 the "move" attribute.
2747 (*movdi_32bit): Use "move_type" instead of "type" and remove the
2748 "length" attribute. Use "fpload" and "fpstore" instead of "load"
2749 and "store" for COP loads and stores.
2750 (*movdi_32bit_mips16, *movdi_64bit, *movsi_internal, movcc)
2751 (*movhi_internal, *movhi_mips16, *movqi_internal, *movqi_mips16)
2752 (*movsf_hardfloat, *movsf_softfloat, *movsi_mips16, *movdf_hardfloat)
2753 (*movdf_softfloat, *movdf_mips16, *movti, *movti_mips16, *movtf)
2754 (*movtf_mips16, *movv2sf): Likewise.
2755 (mfhi<GPR:mode>_<HILO:mode>, mflo<GPR:mode>_<HILO:mode>)
2756 (load_low<mode>, load_high<mode>, store_word<mode>, mthc1<mode>)
2757 (mfhc1<mode>): Use "move_type" instead of "move".
2758 (*low<mode>_mips16): Use "extended_mips16" instead of "length".
2759 (loadgp_blockage): Remove the "length" attribute.
2760 (blockage, set_got_version, update_got_version): Likewise.
2761 (call_internal): Remove the "extended_mips16" attribute.
2762 (call_value_internal, call_value_multiple_internal): Likewise.
2763 * config/mips/loongson.md (mov<mode>_internal): Use "move_type"
2765 * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Remove
2766 the "length" attribute.
2768 2008-06-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2770 * c-format.c (handle_format_attribute): Fix -Wc++-compat and/or
2771 -Wcast-qual warnings.
2772 * c-pragma.c (dpm_eq, handle_pragma_push_macro,
2773 handle_pragma_pop_macro): Likewise.
2774 * collect2.c (resolve_lib_name): Likewise.
2775 * config/arc/arc.c (arc_init): Likewise.
2776 * config/arm/arm.c (neon_builtin_compare,
2777 locate_neon_builtin_icode): Likewise.
2778 * config/arm/pe.c (arm_mark_dllexport, arm_pe_unique_section): Likewise.
2779 * config/bfin/bfin.c (bfin_init_machine_status,
2780 bfin_optimize_loop): Likewise.
2781 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
2782 * config/cris/cris.c (cris_init_expanders): Likewise.
2783 * config/darwin-c.c (frameworks_in_use, add_framework): Likewise.
2784 * config/darwin.c (machopic_indirection_eq,
2785 machopic_indirection_name, machopic_output_indirection): Likewise.
2786 * config/frv/frv.c (frv_init_machine_status, frv_compare_insns,
2787 frv_io_check_address, frv_io_handle_set, frv_io_handle_use_1,
2788 frv_optimize_membar): Likewise.
2789 * config/i386/cygwin.h (mingw_scan,
2790 GCC_DRIVER_HOST_INITIALIZATION): Likewise.
2791 * config/i386/cygwin1.c (mingw_scan): Likewise.
2792 * config/i386/i386.c (machopic_output_stub): Likewise.
2793 * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix,
2794 i386_pe_unique_section): Likewise.
2795 * config/ia64/ia64.c (ia64_init_machine_status,
2796 ia64_h_i_d_extended, get_free_bundle_state, bundling, ia64_reorg):
2798 * config/iq2000/iq2000.c, iq2000_init_machine_status): Likewise.
2799 * config/m68hc11/m68hc11.c (m68hc11_encode_label): Likewise.
2800 * config/m68k/m68k.c (m68k_handle_option,
2801 m68k_sched_md_init_global): Likewise.
2802 * config/mcore/mcore.c (mcore_mark_dllexport, mcore_mark_dllimport,
2803 mcore_unique_section): Likewise.
2804 * config/mips/mips.c (mips_block_move_straight,
2805 mips16_rewrite_pool_refs, mips_sim_wait_regs_2, mips_sim_record_set):
2807 * config/mmix/mmix.c (mmix_init_machine_status,
2808 mmix_encode_section_info): Likewise.
2809 * config/pa/pa.c (pa_init_machine_status, hppa_encode_label): Likewise.
2810 * config/rs6000/rs6000.c (rs6000_init_machine_status,
2811 print_operand_address, output_toc, redefine_groups,
2812 rs6000_elf_encode_section_info, machopic_output_stub): Likewise.
2813 * config/s390/s390.c (s390_init_machine_status): Likewise.
2814 * config/score/score.c (score_block_move_straight,
2815 score_block_move_loop_body): Likewise.
2816 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
2817 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
2818 * emit-rtl.c (find_auto_inc): Likewise.
2819 * gcc.c (translate_options, process_command): Likewise.
2820 * reorg.c (dbr_schedule): Likewise.
2821 * sdbout.c (sdbout_start_source_file, sdbout_init): Likewise.
2822 * xcoffout.c (xcoffout_declare_function): Likewise.
2824 2008-06-27 Daniel Berlin <dberlin@dberlin.org>
2826 * tree-ssa-structalias.c (find_func_aliases): Trivial fix to get
2827 ipa-pta working again.
2829 2008-06-27 David Edelsohn <edelsohn@gnu.org>
2831 * config/rs6000/t-aix52: Append large data option to LDFLAGS for
2834 2008-06-27 Edmar Wienskoski <edmar@freescale.com>
2836 * config.gcc (powerpc*-*-*): Add new core e500mc.
2837 * config/rs6000/e500mc.md: New file.
2838 * config/rs6000/rs6000.c (processor_costs): Add new costs for
2840 (rs6000_override_options): Add e500mc case to
2841 processor_target_table. Altivec and Spe options not allowed
2842 with e500mc. Add isel instruction to e500mc by
2843 default. Initialize rs6000_cost for e500mc.
2844 (rs6000_issue_rate): Set issue rate for e500mc.
2845 * config/rs6000/rs6000.h (processor_type): Add
2846 PROCESSOR_PPCE500MC.
2847 (ASM_CPU_SPEC): Add e500mc.
2848 Set TARGET_ISEL to rs6000_isel.
2849 * config/rs6000/e500.h: Remove redefinition of TARGET_ISEL.
2850 (CHECK_E500_OPTIONS): Remove TARGET_ISEL.
2851 * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce500mc.
2853 * doc/invoke.texi: Add e500mc to list of cpus.
2855 2008-06-27 Laurynas Biveinis <laurynas.biveinis@gmail.com>
2858 * c-lex.c (lex_charconst): Initialize unsignedp.
2860 2008-06-27 Olivier Hainque <hainque@adacore.com>
2862 * gimplify.c (gimplify_modify_expr_to_memset): Assert our
2863 documented assumptions.
2865 2008-06-26 H.J. Lu <hongjiu.lu@intel.com>
2867 * dwarf2out.c: Remove trailing white spaces. Break long line
2870 2008-06-26 Richard Sandiford <rdsandiford@googlemail.com>
2872 * libfuncs.h (LTI_synchronize): New libfunc_index.
2873 (synchronize_libfunc): Declare.
2874 * builtins.c (expand_builtin_synchronize): Consider using
2875 synchronize_libfunc before falling back on an asm blockage.
2876 * config/mips/mips.c: Include libfuncs.h
2877 (mips_init_libfuncs): Initialize synchronize_libfunc for TARGET_MIPS16.
2879 2008-06-26 Nathan Froyd <froydnj@codesourcery.com>
2881 * config/rs6000/rs6000.c (emit_allocate_stack): Add copy_r11
2882 parameter. Copy stack_reg to r11 where appropriate.
2883 (no_global_regs_above): Add gpr parameter.
2884 (rs6000_stack_info): Only add padding for SPE save area if we
2885 are saving SPE GPRs and CR.
2886 (saveres_routine_syms): New variable.
2887 (FIRST_SAVRES_REGISTER, LAST_SAVRES_REGISTER, N_SAVRES_REGISTERS):
2889 (rs6000_savres_routine_sym): New function.
2890 (rs6000_emit_stack_reset, rs6000_restore_saved_cr): New functions,
2892 (rs6000_emit_epilogue): ...here. Use rs6000_use_multiple_p and
2893 rs6000_savres_strategy. Restore GPRs out-of-line if appropriate.
2894 Tweak FPR out-of-line saving.
2895 (rs6000_make_savres_rtx): New function.
2896 (rs6000_use_multiple_p): New function.
2897 (rs6000_savres_strategy): New function.
2898 (rs6000_emit_prologue): Use rs6000_savres_strategy. Save GPRs
2899 out-of-line if appropriate.
2900 * config/rs6000/sysv4.h (FP_SAVE_INLINE): Save FPRs out-of-line
2901 if we are optimizing for size.
2902 (GP_SAVE_INLINE): Define.
2903 (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX): Only use _l on 64-bit targets.
2904 * config/rs6000/darwin.h (GP_SAVE_INLINE): Define.
2905 * config/rs6000/aix.h (GP_SAVE_INLINE): Define.
2906 * config/rs6000/rs6000.md (*save_gpregs_<mode>): New insn.
2907 (*save_fpregs_<mode>): Add use of r11.
2908 (*restore_gpregs_<mode>): New insn.
2909 (*return_and_restore_gpregs_<mode>): New insn.
2910 (*return_and_restore_fpregs_<mode>): Adjust to clobber LR and
2912 * config/rs6000/spe.md (*save_gpregs_spe): New insn.
2913 (*restore_gpregs_spe): New insn.
2914 (*return_and_restore_gpregs_spe): New insn.
2915 * config/rs6000/predicates.md (save_world_operation): Fix check.
2917 2008-06-26 Steven Bosscher <steven@gcc.gnu.org>
2919 * tree-into-ssa (insert_phi_nodes_for): 'var' must be a DECL at
2920 this point, so assert that.
2922 2008-06-26 Steven Bosscher <steven@gcc.gnu.org>
2924 * cfganal.c: Include vec.h and vecprim.h.
2925 (compute_idf): Import from...
2926 * tree-into-ssa (compute_idf): ...here.
2927 * basic-block.h (compute_idf): Export.
2929 2008-06-26 Joseph Myers <joseph@codesourcery.com>
2931 * c-decl.c (merge_decls): Use !current_function_decl to check for
2932 extern declaration of C99 inline function being at file scope.
2934 2008-06-25 John David Anglin <dave.anglin@gcc-cnrc.gc.ca>
2936 * config.gcc (hppa[12]*-*-hpux10*): Don't use fixproto.
2938 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2940 * alias.c (record_alias_subset, init_alias_analysis): Fix
2941 -Wc++-compat and/or -Wcast-qual warnings.
2942 * attribs.c (lookup_attribute_spec): Likewise.
2943 * bb-reorder.c (find_traces, rotate_loop, find_traces_1_round,
2944 copy_bb, connect_traces,
2945 find_rarely_executed_basic_blocks_and_cr): Likewise.
2946 * bt-load.c (find_btr_def_group, add_btr_def, new_btr_user,
2947 note_btr_set, migrate_btr_defs): Likewise.
2948 * builtins.c (result_vector, expand_builtin_memcpy,
2949 expand_builtin_mempcpy_args, expand_builtin_strncpy,
2950 builtin_memset_read_str, expand_builtin_printf,
2951 fold_builtin_memchr, rewrite_call_expr, fold_builtin_printf):
2953 * caller-save.c (mark_set_regs): Likewise.
2954 * calls.c (expand_call, emit_library_call_value_1): Likewise.
2955 * cgraph.c (cgraph_edge): Likewise.
2956 * combine.c (likely_spilled_retval_1): Likewise.
2957 * coverage.c (htab_counts_entry_hash, htab_counts_entry_eq,
2958 htab_counts_entry_del, get_coverage_counts): Likewise.
2959 * cselib.c (new_elt_list, new_elt_loc_list, entry_and_rtx_equal_p,
2960 new_cselib_val): Likewise.
2961 * dbgcnt.c (dbg_cnt_process_opt): Likewise.
2962 * dbxout.c (dbxout_init, dbxout_type, output_used_types_helper):
2964 * df-core.c (df_compact_blocks): Likewise.
2965 * df-problems.c (df_grow_bb_info, df_chain_create): Likewise.
2966 * df-scan.c (df_grow_reg_info, df_ref_create,
2967 df_insn_create_insn_record, df_insn_rescan, df_notes_rescan,
2968 df_ref_compare, df_ref_create_structure, df_bb_refs_record,
2969 df_record_entry_block_defs, df_record_exit_block_uses,
2970 df_bb_verify): Likewise.
2971 * df.h (DF_REF_EXTRACT_WIDTH_CONST, DF_REF_EXTRACT_OFFSET_CONST,
2972 DF_REF_EXTRACT_MODE_CONST): New.
2973 * dominance.c (get_immediate_dominator, get_dominated_by,
2974 nearest_common_dominator, root_of_dom_tree,
2975 iterate_fix_dominators, first_dom_son, next_dom_son): Fix
2976 -Wc++-compat and/or -Wcast-qual warnings.
2977 * dse.c (clear_alias_set_lookup, get_group_info, gen_rtx_MEM,
2978 record_store, replace_read, check_mem_read_rtx, scan_insn,
2979 dse_step1, dse_record_singleton_alias_set): Likewise.
2980 * dwarf2asm.c (dw2_force_const_mem): Likewise.
2982 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2984 * dwarf2out.c (new_cfi, queue_reg_save, dwarf2out_begin_prologue,
2985 dwarf2out_frame_init, new_loc_descr, new_die, lookup_decl_die,
2986 lookup_decl_loc, add_var_loc_to_decl, compute_section_prefix,
2987 assign_symbol_names, htab_cu_hash, htab_cu_eq, htab_cu_del,
2988 build_abbrev_table, new_loc_list, output_comp_unit, add_arange,
2989 add_ranges_num, add_ranges_by_labels, file_info_cmp,
2990 file_name_acquire, output_file_names, add_const_value_attribute,
2991 premark_used_types_helper, file_table_eq, file_table_hash,
2992 lookup_filename, dwarf2out_var_location, dwarf2out_source_line,
2993 dwarf2out_init, file_table_relative_p): Fix -Wc++-compat and/or
2994 -Wcast-qual warnings.
2995 * ebitmap.c (ebitmap_array_grow, ebitmap_array_init,
2996 ebitmap_alloc, ebitmap_ior, ebitmap_and_compl): Likewise.
2997 * emit-rtl.c (get_mem_attrs, get_reg_attrs, gen_rtvec,
2998 gen_reg_rtx, start_sequence, init_emit): Likewise.
2999 * et-forest.c (et_new_occ, et_new_tree): Likewise.
3000 * except.c (init_eh_for_function, gen_eh_region,
3001 remove_unreachable_regions, add_ehl_entry, duplicate_eh_regions_1,
3002 arh_to_landing_pad, arh_to_label, add_action_record,
3003 add_call_site, switch_to_exception_section): Likewise.
3004 * expmed.c (synth_mult): Likewise.
3005 * expr.c (gen_group_rtx, emit_group_load, emit_group_store,
3006 store_expr): Likewise.
3007 * final.c (shorten_branches, final_scan_insn, debug_queue_symbol):
3009 * function.c (assign_stack_temp_for_type,
3010 allocate_struct_function, match_asm_constraints_1): Likewise.
3011 * gcov-io.c (gcov_allocate): Likewise.
3012 * gcse.c (GNEW, GCNEW, GNEWVEC, GCNEWVEC, GRESIZEVEC, GNEWVAR,
3013 GCNEWVAR, GRESIZEVAR, GOBNEW, GOBNEWVAR): New.
3014 (gcse_main, alloc_gcse_mem, alloc_gcse_mem, alloc_reg_set_mem,
3015 record_one_set, insert_expr_in_table, insert_set_in_table,
3016 dump_hash_table, compute_hash_table_work, alloc_hash_table,
3017 pre_ldst_expr_hash, pre_ldst_expr_eq, find_rtx_in_ldst,
3018 reg_set_info, reg_clear_last_set): Fix -Wc++-compat and/or
3019 -Wcast-qual warnings.
3021 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3023 * cse.c (approx_reg_cost_1, cse_insn): Fix -Wc++-compat and/or
3024 -Wcast-qual warnings.
3025 * gcc.c (process_command): Likewise.
3026 * genattrtab.c (oballoc): Use XOBNEW.
3027 (oballocvec): Define.
3028 (attr_hash_add_rtx, attr_hash_add_string, attr_string,
3029 get_attr_value, fill_attr, make_length_attrs, gen_attr, gen_insn,
3030 gen_delay, find_attr, gen_insn_reserv, gen_bypass_1): Fix
3031 -Wc++-compat and/or -Wcast-qual warnings.
3032 * genautomata.c (XCREATENODE, XCREATENODEVEC, XCREATENODEVAR,
3033 XCOPYNODE, XCOPYNODEVEC, XCOPYNODEVAR): New.
3034 (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
3035 gen_presence_absence_set, gen_automaton, gen_regexp_el,
3036 gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
3037 gen_regexp_sequence, gen_reserv, gen_insn_reserv, process_excls,
3038 add_excls, process_presence_absence_names,
3039 process_presence_absence_patterns, add_presence_absence,
3040 process_regexp, add_advance_cycle_insn_decl, get_free_alt_state,
3041 get_free_state, add_arc, get_free_automata_list_el,
3042 form_reserv_sets_list, copy_insn_regexp, transform_1, transform_2,
3043 transform_3, cache_presence, create_ainsns, create_automata,
3044 create_state_ainsn_table, dfa_insn_code_enlarge,
3045 output_trans_func, output_min_issue_delay_func,
3046 output_dead_lock_func, output_reset_func,
3047 output_get_cpu_unit_code_func, output_dfa_start_func,
3048 expand_automata): Likewise.
3049 * genextract.c (gen_insn): Likewise.
3050 * gengtype-lex.l: Likewise.
3051 * gengtype.c (read_input_list, adjust_field_type,
3052 process_gc_options): Likewise.
3053 * genoutput.c (note_constraint): Likewise.
3054 * genpreds.c (mangle, add_constraint): Likewise.
3055 * genrecog.c (process_define_predicate, new_decision,
3056 add_to_sequence): Likewise.
3057 * gensupport.c (record_insn_name): Likewise.
3059 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3061 * config/i386/driver-i386.c (detect_caches_amd,
3062 detect_caches_intel, host_detect_local_cpu): Fix -Wc++-compat
3063 and/or -Wcast-qual warnings.
3064 *ggc-common.c (ggc_mark_roots, gt_pch_note_object,
3065 gt_pch_note_reorder, relocate_ptrs, write_pch_globals,
3066 gt_pch_save): Likewise.
3067 * ggc-page.c (push_depth, push_by_depth, alloc_anon, alloc_page,
3068 gt_ggc_m_S, clear_marks, ggc_pch_read): Likewise.
3069 * global.c (compute_regsets): Likewise.
3070 * graph.c (print_rtl_graph_with_bb, clean_graph_dump_file,
3071 finish_graph_dump_file): Likewise.
3072 * haifa-sched.c (schedule_block, extend_h_i_d, extend_ready,
3073 unlink_bb_notes): Likewise.
3074 * integrate.c (get_hard_reg_initial_val): Likewise.
3075 * ipa-prop.c (ipa_push_func_to_list): Likewise.
3076 * ipa-struct-reorg.c (gen_var_name, gen_cluster_name): Likewise.
3077 * local-alloc.c (update_equiv_regs): Likewise.
3078 * loop-invariant.c (check_invariant_table_size,
3079 hash_invariant_expr, eq_invariant_expr, find_or_insert_inv):
3081 * loop-iv.c (check_iv_ref_table_size, analyzed_for_bivness_p,
3082 altered_reg_used, mark_altered): Likewise.
3083 * loop-unroll.c (si_info_eq, ve_info_eq, allocate_basic_variable,
3084 insert_var_expansion_initialization,
3085 combine_var_copies_in_loop_exit, apply_opt_in_copies,
3086 release_var_copies): Likewise.
3087 * matrix-reorg.c (mat_acc_phi_hash, mat_acc_phi_eq, mtt_info_eq,
3088 analyze_matrix_decl, add_allocation_site, analyze_transpose,
3089 analyze_accesses_for_phi_node, check_var_notmodified_p,
3090 check_allocation_function, find_sites_in_func,
3091 record_all_accesses_in_func, transform_access_sites,
3092 transform_allocation_sites): Likewise.
3093 * omp-low.c (new_omp_region, create_omp_child_function_name,
3094 check_omp_nesting_restrictions, check_combined_parallel,
3095 lower_omp_2, diagnose_sb_1, diagnose_sb_2): Likewise.
3096 * optabs.c (no_conflict_move_test, gen_libfunc, gen_fp_libfunc,
3097 gen_intv_fp_libfunc, gen_interclass_conv_libfunc,
3098 gen_intraclass_conv_libfunc, set_optab_libfunc, set_conv_libfunc):
3100 * opts-common.c (prune_options): Likewise.
3101 * opts.c (add_input_filename, print_filtered_help,
3102 get_option_state): Likewise.
3103 * params.c (add_params): Likewise.
3104 * passes.c (set_pass_for_id, next_pass_1,
3105 do_per_function_toporder, pass_fini_dump_file): Likewise.
3106 * postreload.c (reload_cse_simplify_operands): Likewise.
3107 * predict.c (tree_predicted_by_p, tree_predict_edge,
3108 clear_bb_predictions, combine_predictions_for_bb): Likewise.
3110 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3112 * ra.h (add_neighbor): Fix -Wc++-compat and/or -Wcast-qual
3114 * recog.c (check_asm_operands, validate_change_1): Likewise.
3115 * reg-stack.c (check_asm_stack_operands, subst_asm_stack_regs,
3116 subst_asm_stack_regs): Likewise.
3117 * regclass.c (regclass, som_hash, som_eq, record_subregs_of_mode,
3118 cannot_change_mode_set_regs, invalid_mode_change_p): Likewise.
3119 * regmove.c (reg_is_remote_constant_p): Likewise.
3120 * regrename.c (regrename_optimize, scan_rtx_reg,
3121 kill_clobbered_value, kill_set_value, kill_autoinc_value):
3123 * regstat.c (regstat_init_n_sets_and_refs, regstat_compute_ri,
3124 regstat_compute_calls_crossed): Likewise.
3125 * reload1.c (init_reload, new_insn_chain,
3126 has_nonexceptional_receiver, reload, copy_reloads,
3127 calculate_needs_all_insns, init_elim_table): Likewise.
3128 * rtl-factoring.c (compute_rtx_cost, fill_hash_bucket): Likewise.
3129 * rtl.c (shallow_copy_rtx_stat): Likewise.
3130 * rtlanal.c (parms_set): Likewise.
3131 * sbitmap.c (sbitmap_alloc, sbitmap_alloc_with_popcount,
3132 sbitmap_resize, sbitmap_vector_alloc): Likewise.
3133 * sched-ebb.c (earliest_block_with_similiar_load,
3134 add_deps_for_risky_insns): Likewise.
3135 * sched-rgn.c (find_rgns, gather_region_statistics, extend_rgns,
3136 schedule_region): Likewise.
3137 * see.c (eq_descriptor_pre_extension,
3138 hash_descriptor_pre_extension, hash_del_pre_extension,
3139 eq_descriptor_properties, hash_descriptor_properties,
3140 hash_del_properties, see_seek_pre_extension_expr,
3141 see_initialize_data_structures, see_print_register_properties,
3142 see_print_pre_extension_expr, see_delete_merged_def_extension,
3143 see_delete_unmerged_def_extension, see_emit_use_extension,
3144 see_pre_delete_extension, see_map_extension, see_commit_changes,
3145 see_analyze_merged_def_local_prop,
3146 see_analyze_merged_def_local_prop,
3147 see_analyze_unmerged_def_local_prop, see_analyze_use_local_prop,
3148 see_set_prop_merged_def, see_set_prop_unmerged_def,
3149 see_set_prop_unmerged_use, see_print_one_extension,
3150 see_merge_one_use_extension, see_merge_one_def_extension,
3151 see_store_reference_and_extension, see_update_uses_relevancy,
3152 see_update_defs_relevancy): Likewise.
3153 * statistics.c (hash_statistics_hash, hash_statistics_eq,
3154 hash_statistics_free, curr_statistics_hash): Likewise.
3155 * stmt.c (parse_output_constraint, decl_overlaps_hard_reg_set_p,
3156 expand_asm_operands, expand_return, case_bit_test_cmp,
3157 expand_case): Likewise.
3158 * stor-layout.c (start_record_layout): Likewise.
3159 * stringpool.c (ggc_alloc_string, gt_pch_n_S,
3160 gt_pch_save_stringpool): Likewise.
3161 * tree-data-ref.c (hash_stmt_vertex_info,
3162 have_similar_memory_accesses_1, ref_base_address_1): Likewise.
3163 * tree-ssa-phiopt.c (name_to_bb_hash): Likewise.
3165 2008-06-25 Uros Bizjak <ubizjak@gmail.com>
3168 * config/i386/i386.md : Change constraints of HImode and QImode
3169 immediate operands from "i" to "n". Change SImode "ni" constraint to
3170 "i" and SImode "rmi" constraint to "g". Remove all constraints
3171 from const0_operand and const1_operand predicated operands.
3172 (i): Change QImode and HImode attribute from "i" to "n".
3173 (*subqi_2): Change HImode operands to QImode.
3176 2008-06-25 Olivier Hainque <hainque@adacore.com>
3178 * Makefile.in (GTFILES_H): Use | instead of ; as separator in
3181 2008-06-25 Richard Guenther <rguenther@suse.de>
3183 * tree-ssa-structalias.c (fieldoff_compare): Make sure to
3184 not overflow the result type.
3186 2008-06-25 Richard Guenther <rguenther@suse.de>
3188 * tree-vn.c (vn_add): Handle TRUTH_*_EXPR.
3189 (vn_lookup): Likewise.
3191 2008-06-25 Richard Guenther <rguenther@suse.de>
3193 PR tree-optimization/35518
3194 * fold-const.c (fold_ternary): Strip trivial BIT_FIELD_REFs.
3195 * tree-sra.c (instantiate_element): Use fold_build3 to build
3197 (try_instantiate_multiple_fields): Likewise.
3199 2008-06-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
3201 * config/rs6000/rs6000.md: Change all string instruction's clobber to
3204 2008-06-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
3206 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Set
3207 use_backchain_to_restore_sp to true
3208 if the offset of the link register save area would go over the 32k - 1
3209 offset limit of the load
3212 2008-06-25 Hans-Peter Nilsson <hp@axis.com>
3214 * doc/invoke.texi (Optimize Options) <fstrict-aliasing>: Add
3215 anchor for the type-punning blurb. Cross-reference "Structures
3216 unions enumerations and bit-fields implementation". Provide a
3217 cast-through-pointer example. Make final sentence self-contained.
3218 * doc/implement-c.texi (Structures unions enumerations and
3219 bit-fields implementation): Cross-reference the type-punning blurb
3220 in the -fstrict-aliasing documentation.
3222 2008-06-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
3225 * builtins.c (expand_builtin_nonlocal_goto): Stabilize the address of
3226 the memory instead of the memory itself for the save area.
3228 2008-06-24 Olivier Hainque <hainque@adacore.com>
3229 Nicolas Roche <roche@adacore.com>
3231 * gengtype.c (srcdir_len): size_t instead of int.
3232 (get_file_realbasename): New function. For F a filename, the real
3233 basename of F, with all the path components stripped.
3234 (get_file_srcdir_relative_path): New function. For F a filename, the
3235 relative path to F from $(srcdir).
3236 (get_file_basename): Rewrite using get_file_srcdir_relative_path and
3237 get_file_realbasename. Adjust the head comment.
3238 (get_prefix_langdir_index): New function. For F a filename, return the
3239 lang_dir_names[] relative index of the language directory that is
3241 (get_file_langdir): For F a filename, return the name of the language
3242 directory where F is located.
3243 (get_file_gtfilename): New function. The gt- output file name for an
3245 (get_output_file_with_visibility): Replace in-line computations with
3246 uses of get_file_gtfilename and get_prefix_langdir_index.
3247 * Makefile.in (GTFILES_H): Adjust to match what gengtype generates.
3249 2008-06-24 Jakub Jelinek <jakub@redhat.com>
3251 PR tree-optimization/36504
3252 * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Skip
3253 references without base address.
3255 2008-06-23 Uros Bizjak <ubizjak@gmail.com>
3258 * calls.c (expand_call): Increase alignment for recursive functions.
3260 2008-06-23 Anatoly Sokolov <aesok@post.ru>
3262 * config/avr/avr.c (avr_function_value): Add new 'outgoing' argument.
3263 (TARGET_FUNCTION_VALUE): New define.
3264 * config/avr/avr-protos.h (avr_function_value): Remove declaration.
3265 * config/avr/avr.h (FUNCTION_VALUE): Remove.
3267 2008-06-23 Uros Bizjak <ubizjak@gmail.com>
3269 * config/i386/i386.md (fmodxf3): Change sequence of move instructions.
3270 (fmod<mode>3): Ditto.
3271 (remainderxf3): Ditto.
3272 (remainder<mode>3): Ditto.
3274 2008-06-23 Jakub Jelinek <jakub@redhat.com>
3277 * emit-rtl.c (set_reg_attrs_from_value): Do nothing if
3278 REG is a hard register.
3280 PR tree-optimization/36508
3281 * tree-ssa-pre.c (compute_antic): Allow num_iterations up to
3282 499, don't check it at all in release compilers.
3284 2008-06-23 Uros Bizjak <ubizjak@gmail.com>
3286 * config/i386/i386.md (*fop_<mode>_1_i387): Use SSE_FLOAT_MODE_P
3287 together with SSE_TARGET_MATH to disable insn pattern.
3288 (*fop_<MODEF:mode>_2_i387): Ditto.
3289 (*fop_<MODEF:mode>_3_i387): Ditto.
3291 2008-06-22 Andy Hutchinson <hutchinsonandy@aim.com>
3293 * config/avr/avr.h (SUPPORTS_INIT_PRIORITY): Define.
3295 2008-06-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
3298 * gimplify.c (gimplify_asm_expr): Check the return code of
3299 parse_output_constraint call, set function return and is_inout
3302 2008-06-22 Ian Lance Taylor <iant@google.com>
3304 * c-lex.c (narrowest_unsigned_type): Change itk to int.
3305 (narrowest_signed_type): Likewise.
3306 * c-typeck.c (c_common_type): Change local variable mclass to enum
3308 (parser_build_binary_op): Compare the TREE_CODE_CLASS with
3309 tcc_comparison, not the tree code itself.
3310 * c-common.c (def_fn_type): Pass int, not an enum, to va_arg.
3311 (c_expand_expr): Cast modifier to enum expand_modifier.
3312 * c-common.h (C_RID_CODE): Add casts.
3313 (C_SET_RID_CODE): Define.
3314 * c-parser.c (c_parse_init): Use C_SET_RID_CODE.
3315 (c_lex_one_token): Add cast to avoid warning.
3316 (c_parser_objc_type_name): Rename local typename to type_name.
3317 (check_no_duplicate_clause): Change code parameter to enum
3319 (c_parser_omp_var_list_parens): Change kind parameter to enum
3321 (c_parser_omp_flush): Pass OMP_CLAUSE_ERROR, not 0, to
3322 c_parser_omp_list_var_parens.
3323 (c_parser_omp_threadprivate): Likewise.
3324 * cp/lex.c (init_reswords): Use C_SET_RID_CODE.
3325 * cp/parser.c (cp_lexer_get_preprocessor_token): Likewise.
3326 * c-format.c (NO_FMT): Define.
3327 (printf_length_specs): Use NO_FMT.
3328 (asm_fprintf_length_specs): Likewise.
3329 (gcc_diag_length_specs): Likewise.
3330 (scanf_length_specs): Likewise.
3331 (strfmon_length_specs): Likewise.
3332 (gcc_gfc_length_specs): Likewise.
3333 (printf_flag_specs): Change 0 to STD_C89.
3334 (asm_fprintf_flag_specs): Likewise.
3335 (gcc_diag_flag_specs): Likewise.
3336 (gcc_cxxdiag_flag_specs): Likewise.
3337 (scanf_flag_specs): Likewise.
3338 (strftime_flag_specs): Likewise.
3339 (strfmon_flag_specs): Likewise.
3340 (print_char_table): Likewise.
3341 (asm_fprintf_char_table): Likewise.
3342 (gcc_diag_char_table): Likewise.
3343 (gcc_tdiag_char_table): Likewise.
3344 (gcc_cdiag_char_table): Likewise.
3345 (gcc_cxxdiag_char_table): Likewise.
3346 (gcc_gfc_char_table): Likewise.
3347 (scan_char_table): Likewise.
3348 (time_char_table): Likewis.
3349 (monetary_char_table): Likewise.
3350 * c-format.h (BADLEN): Likewise.
3352 2008-06-21 Ian Lance Taylor <iant@google.com>
3354 * tree.h (enum tree_code): Include all-tree.def, not tree.def.
3355 Define END_OF_BASE_TREE_CODES around inclusion.
3356 * tree.c (tree_code_type): New global array.
3357 (tree_code_length, tree_code_name): Likewise.
3358 * Makefile.in (TREE_H): Add all-tree.def, c-common.def, and
3360 (all-tree.def, s-alltree): New targets.
3361 (gencheck.h, s-gencheck): Remove.
3362 (tree.o): Depend upon all-tree.def.
3363 (build/gencheck.o): Remove gencheck.h dependency.
3364 (mostlyclean): Don't remove gencheck.h.
3365 * c-common.h (enum c_tree_code): Remove.
3366 * c-lang.c (tree_code_type): Remove.
3367 (tree_code_length, tree_code_name): Remove.
3368 * gencheck.c (tree_codes): Include all-tree.def, rather than
3369 tree.def, c-common.def, and gencheck.h. Undefined DEFTREECODE
3371 * tree-browser.c (tb_tree_codes): Include all-tree.def, rather
3373 * cp/cp-tree.h (enum cplus_tree_code): Remove.
3374 (operator_name_info): Size to MAX_TREE_CODES.
3375 (assignment_operator_name_info): Likewise.
3376 * cp/cp-lang.c (tree_code_type): Remove.
3377 (tree_code_length, tree_code_name): Remove.
3378 * cp/lex.c (operator_name_info): Size to MAX_TREE_CODES.
3379 (assignment_operator_name_info): Likewise.
3380 * cp/decl.c (grok_op_properties): Change LAST_CPLUS_TREE_CODE to
3382 * cp/mangle.c (write_expression): Likewise.
3383 * cp/Make-lang.in (CXX_TREE_H): Remove cp/cp-tree.def.
3384 * fortran/f95-lang.c (tree_code_type): Remove.
3385 (tree_code_length, tree_code_name): Remove.
3386 * java/java-tree.h (enum java_tree_code): Remove.
3387 * java/lang.c (tree_code_type): Remove.
3388 (tree_code_length, tree_code_name): Remove.
3389 * java/Make-lang.in (JAVA_TREE_H): Remove java/java-tree.def.
3390 * objc/objc-act.h (enum objc_tree_code): Remove.
3391 * objc/objc-lang.c (tree_code_type): Remove.
3392 (tree_code_length, tree_code_name): Remove.
3393 * objcp/objcp-lang.c (tree_code_type): Remove.
3394 (tree_code_length, tree_code_name): Remove.
3395 * ada/ada-tree.h (enum gnat_tree_code): Remove.
3396 * ada/Make-lang.in (ADA_TREE_H): Remove ada/ada-tre.def.
3397 * ada/misc.c (tree_code_type): Remove.
3398 (tree_code_length, tree_code_name): Remove.
3400 2008-06-21 Bernhard Fischer <aldot@gcc.gnu.org>
3402 * tree-ssa-pre.c (fini_antic): Bitmap_sets have to be freed before
3403 the grand_bitmap_obstack.
3405 2008-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3407 * ggc.h (GGC_RESIZEVAR): New, reorder macros.
3408 * tracer.c (tail_duplicate): Fix for -Wc++-compat.
3409 * tree-affine.c (aff_combination_expand, free_name_expansion): Likewise.
3410 * tree-cfg.c (replace_by_duplicate_decl, replace_ssa_name,
3411 move_stmt_r, new_label_mapper): Likewise.
3412 * tree-complex.c (cvc_lookup): Likewise.
3413 * tree-dfa.c (create_function_ann): Likewise.
3414 * tree-dump.c (dump_register): Likewise.
3415 * tree-if-conv.c (tree_if_conversion, add_to_predicate_list,
3416 find_phi_replacement_condition): Likewise.
3417 * tree-inline.c (copy_phis_for_bb, estimate_num_insns_1,
3418 tree_function_versioning): Likewise.
3419 * tree-into-ssa.c (cmp_dfsnum): Likewise.
3420 * tree-iterator.c (tsi_link_before, tsi_link_after): Likewise.
3421 * tree-nested.c (lookup_field_for_decl, lookup_tramp_for_decl,
3422 get_nonlocal_debug_decl, convert_nonlocal_reference,
3423 convert_nonlocal_omp_clauses, get_local_debug_decl,
3424 convert_local_reference, convert_local_omp_clauses,
3425 convert_nl_goto_reference, convert_nl_goto_receiver,
3426 convert_tramp_reference, convert_call_expr): Likewise.
3427 * tree-outof-ssa.c (contains_tree_r): Likewise.
3428 * tree-parloops.c (reduction_phi, initialize_reductions,
3429 eliminate_local_variables_1, add_field_for_reduction,
3430 add_field_for_name, create_phi_for_local_result,
3431 create_call_for_reduction_1, create_loads_for_reductions,
3432 create_stores_for_reduction, create_loads_and_stores_for_name):
3434 * tree-phinodes.c (allocate_phi_node): Likewise.
3435 * tree-predcom.c (order_drefs, execute_pred_commoning_cbck): Likewise.
3436 * tree-sra.c (sra_elt_hash, sra_elt_eq, lookup_element): Likewise.
3437 * tree-ssa-alias.c (get_mem_sym_stats_for): Likewise.
3438 * tree-ssa-coalesce.c (compare_pairs): Likewise.
3439 * tree-ssa-loop-im.c (mem_ref_in_stmt, memref_hash, memref_eq,
3440 memref_free, gather_mem_refs_stmt, vtoe_hash, vtoe_eq, vtoe_free,
3441 record_vop_access, get_vop_accesses, get_vop_stores): Likewise.
3442 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
3443 * tree-ssa-sccvn.c (VN_INFO_GET, free_phi, free_reference,
3444 vn_nary_op_insert): Likewise.
3445 * tree-ssa.c (redirect_edge_var_map_add,
3446 redirect_edge_var_map_clear, redirect_edge_var_map_dup): Likewise.
3447 * tree-vectorizer.c (vectorize_loops): Likewise.
3448 * tree.c (make_node_stat, copy_node_stat, build_int_cst_wide,
3449 build_fixed, build_real, make_tree_binfo_stat, make_tree_vec_stat,
3450 tree_cons_stat, build1_stat, build_variant_type_copy,
3451 decl_init_priority_lookup, decl_fini_priority_lookup,
3452 decl_priority_info, decl_restrict_base_lookup,
3453 decl_restrict_base_insert, decl_debug_expr_lookup,
3454 decl_debug_expr_insert, decl_value_expr_lookup,
3455 decl_value_expr_insert, type_hash_eq, type_hash_lookup,
3456 type_hash_add, get_file_function_name, tree_check_failed,
3457 tree_not_check_failed, tree_range_check_failed,
3458 omp_clause_range_check_failed, build_omp_clause,
3459 build_vl_exp_stat): Likewise.
3460 * value-prof.c (gimple_histogram_value,
3461 gimple_duplicate_stmt_histograms): Likewise.
3462 * var-tracking.c (attrs_list_insert, attrs_list_copy,
3463 unshare_variable, variable_union_info_cmp_pos, variable_union,
3464 dataflow_set_different_1, dataflow_set_different_2,
3465 vt_find_locations, variable_was_changed, set_variable_part,
3466 emit_notes_for_differences_1, emit_notes_for_differences_2): Likewise.
3467 * varasm.c (prefix_name, emutls_decl, section_entry_eq,
3468 section_entry_hash, object_block_entry_eq,
3469 object_block_entry_hash, create_block_symbol,
3470 initialize_cold_section_name, default_function_rodata_section,
3471 strip_reg_name, set_user_assembler_name, const_desc_eq,
3472 build_constant_desc, output_constant_def, lookup_constant_def,
3473 const_desc_rtx_hash, const_desc_rtx_eq, const_rtx_hash_1,
3474 create_constant_pool, force_const_mem, compute_reloc_for_rtx_1,
3475 default_internal_label): Likewise.
3476 * varray.c (varray_init, varray_grow): Likewise.
3477 * vec.c (vec_gc_o_reserve_1, vec_heap_o_reserve_1): Likewise.
3479 2008-06-20 Uros Bizjak <ubizjak@gmail.com>
3481 * config/i386/i386.md (*jcc_fused_1): Handle all valid compare
3482 operators for "test" insn. Macroize insn using SWI mode macro.
3483 (*jcc_fused_2): Ditto.
3484 (*jcc_fused_3): Macroize insn using SWI mode macro.
3485 (*jcc_fused_4): Ditto.
3487 2008-06-20 Bernhard Fischer <aldot@gcc.gnu.org>
3489 * tree-ssa-pre.c: Fix typo in comment.
3490 (init_antic, fini_antic): Add explicit funtions for
3491 initializing and deinitializing ANTIC and AVAIL sets.
3492 (create_expression_by_pieces): Fix typo in comment.
3493 Remove redundant set of new_stuff and use NULL_TREE instead of NULL.
3494 (execute_pre): Eventually dump details about ANTIC_IN.
3496 2008-06-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3498 * collect2.c (main, add_to_list): Fix for -Wc++-compat.
3499 * gcc.c (translate_options, init_spec, store_arg, read_specs,
3500 add_to_obstack, file_at_path, find_a_file, execute,
3501 add_preprocessor_option, add_assembler_option, add_linker_option,
3502 process_command, insert_wrapper, do_option_spec, do_self_spec,
3503 spec_path, do_spec_1, is_directory, main, used_arg,
3504 getenv_spec_function): Likewise.
3505 * tlink.c (symbol_hash_lookup, file_hash_lookup,
3506 demangled_hash_lookup, symbol_push, file_push, frob_extension):
3509 2008-06-19 Kenneth Zadeck <zadeck@naturalbridge.com>
3511 * doc/rtl.texi: Updated subreg section.
3513 2008-06-19 Jakub Jelinek <jakub@redhat.com>
3516 * cgraphunit.c (cgraph_process_new_functions): Don't clear
3517 node->needed and node->reachable.
3518 * cgraphbuild.c (record_reference): Handle OMP_PARALLEL and OMP_TASK.
3519 * omp-low.c (delete_omp_context): Call finalize_task_copyfn.
3520 (expand_task_call): Don't call expand_task_copyfn.
3521 (expand_task_copyfn): Renamed to...
3522 (finalize_task_copyfn): ... this.
3524 2008-06-19 Jan Hubicka <jh@suse.cz>
3526 * builtins.c (expand_builtin_nonlocal_goto): Stabilize r_sp before
3527 clobbering framepointer.
3529 2008-06-19 Jan Hubicka <jh@suse.cz>
3531 * tree-optimize.c (execute_early_local_optimizations): Set
3532 cgraph_state only at first invocation.
3534 2008-06-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3536 * system.h (-Wc++-compat): Activate as a warning, no an error.
3538 2008-06-19 Uros Bizjak <ubizjak@gmail.com>
3540 * config/i386/i386.md (*jcc_fused_1): Use ASM_COMMENT_START
3541 instead of "#" in insn asm template.
3542 (*jcc_fused_2): Ditto.
3544 2008-06-19 Uros Bizjak <ubizjak@gmail.com>
3546 * config/i386/i386.h (ix86_tune_indices)
3547 [X86_TUNE_FUSE_CMP_AND_BRANCH]: New.
3548 (TARGET_FUSE_CMP_AND_BRANCH): New define.
3549 * config/i386/i386.md (*jcc_fused_1): New insn pattern
3550 (*jcc_fused_2): Ditto.
3551 * config/i386/i386.c (ix86_tune_features): Add m_CORE2 to
3552 X86_TUNE_FUSE_CMP_AND_BRANCH targets.
3553 (print operand): Handle 'E' and 'e' code.
3555 2008-06-19 Anatoly Sokolov <aesok@post.ru>
3557 * config/avr/avr.c (avr_mcu_t): Add attiny13a.
3558 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
3559 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
3561 2008-06-19 Bernhard Fischer <aldot@gcc.gnu.org>
3563 * cgraphunit.c (cgraph_finalize_function): Remove redundant setting of
3565 (cgraph_expand_function): Use local copy of decl.
3566 (cgraph_expand_all_functions): Remove redundant initialization of
3568 (cgraph_optimize): Reword internal_error message.
3570 2008-06-19 Chung-Lin Tang <ctang@marvell.com>
3572 * arm-protos.h (arm_return_in_memory): Remove public
3573 arm_return_in_memory() prototype.
3574 * arm.c (arm_return_in_memory): Add static prototype, add target
3575 hook macro, change definition and comments.
3576 * arm.h (TARGET_RETURN_IN_MEMORY): Remove.
3578 2008-06-19 Ben Elliston <bje@au.ibm.com>
3580 * dfp.h, dfp.c, config/dfp-bit.h, config/dfp-bit.c, real.h,
3581 real.c: Remove references to IEEE 754R.
3582 * doc/install.texi (Configuration): IEEE 754R -> IEEE 754-2008.
3583 * doc/libgcc.texi (Decimal float library routines): Likewise.
3585 2008-06-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3587 * targhooks.h (struct gcc_target): New member unwind_word_mode.
3588 (default_unwind_word_mode): Add prototype.
3589 * targhooks.c (default_unwind_word_mode): New function.
3590 (default_eh_return_filter_mode): Return targetm.unwind_word_mode ()
3591 instead of word_mode.
3592 * target-def.h (TARGET_UNWIND_WORD_MODE): New macro.
3593 (TARGET_INITIALIZER): Use it.
3595 * c-common.c (handle_mode_attribute): Support "unwind_word"
3597 * unwind-generic.h (_Unwind_Word, _Unwind_Sword): Use it.
3599 * except.c (init_eh): Use targetm.unwind_word_mode () instead of
3600 word_mode to access SjLj_Function_Context member "data".
3601 (sjlj_emit_dispatch_table): Likewise. Also, perform type
3602 conversion from targetm.eh_return_filter_mode () to
3603 targetm.unwind_word_mode () if they differ.
3605 * builtin-types.def (BT_UNWINDWORD): New primitive type.
3606 (BT_FN_UNWINDWORD_PTR): New function type.
3607 (BT_FN_WORD_PTR): Remove.
3608 * builtins.def (BUILT_IN_EXTEND_POINTER): Use BT_FN_UNWINDWORD_PTR.
3609 * except.c (expand_builtin_extend_pointer): Convert pointer to
3610 targetm.unwind_word_mode () instead of word_mode.
3612 * config/spu/spu-protos.h (spu_eh_return_filter_mode): Remove.
3613 * config/spu/spu.c (spu_eh_return_filter_mode): Remove.
3614 (spu_unwind_word_mode): New function.
3615 (TARGET_EH_RETURN_FILTER_MODE): Do not define.
3616 (TARGET_UNWIND_WORD_MODE): Define.
3617 * config/spu/t-spu-elf (TARGET_LIBGCC2_CFLAGS): Remove -D__word__=SI.
3619 2008-06-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3621 * config/spu/spu.c (reg_align): Remove.
3622 (regno_aligned_for_load): Also accept ARG_POINTER_REGNUM.
3623 (spu_split_load): Use regno_aligned_for_load instead of reg_align.
3624 (spu_split_store): Likewise.
3626 2008-06-18 Bernhard Fischer <aldot@gcc.gnu.org>
3628 * gcc/tree-vn.c: Fix typo in comment.
3630 2008-06-18 Jan Hubicka <jh@suse.cz>
3632 * cgraphunit.c (cgraph_optimize): Output debug info when doing
3633 toplevel reorder too.
3635 2008-06-18 Jan Hubicka <jh@suse.cz>
3637 * c-opts.c (c_common_post_options): PCH is not compatible with
3639 * opts.c (handle_options): Enable unit-at-a-time at O0 along with
3640 -fno-toplevel-reorder by default now.
3642 2008-06-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3644 PR documentation/30739
3645 * doc/install.texi (Prerequisites): Document dependency on awk.
3647 2008-06-18 Uros Bizjak <ubizjak@gmail.com>
3648 Ian Lance Taylor <iant@google.com>
3650 PR rtl-optimization/35604
3651 * jump.c (redirect_exp_1): Skip the condition of an IF_THEN_ELSE. We
3652 only want to change jump destinations, not eventual label comparisons.
3654 2008-06-16 Jan Hubicka <jh@suse.cz>
3656 * cgraphunit.c (cgraph_expand_pending_functions): Give up at
3658 (cgraph_analyze_function): Likewise.
3660 2008-06-16 Jan Hubicka <jh@suse.cz>
3662 * cgraph.h (cgraph_mark_if_needed): New function.
3663 * cgraphunit.c (cgraph_mark_if_needed): New function.
3664 * c-decl.c (duplicate_decl): Use it.
3666 2008-06-16 Jan Hubicka <jh@suse.cz>
3668 * cgraph.c (cgraph_add_new_function): When in expansion state, do
3671 2008-06-16 Jan Hubicka <jh@suse.cz>
3673 * tree-outof-ssa.c (pass_out_of_ssa): Do not depend on PROP_alias.
3675 2008-06-16 Daniel Jacobowitz <dan@codesourcery.com>
3676 Kazu Hirata <kazu@codesourcery.com>
3677 Maxim Kuvyrkov <maxim@codesourcery.com
3679 * config.gcc (mips64el-st-linux-gnu): Use mips/st.h and mips/t-st.
3680 * config.host: Use driver-native.o and mips/x-native for mips*-linux*.
3681 * config/mips/linux.h (host_detect_local_cpu): Declare, add to
3682 EXTRA_SPEC_FUNCTIONS.
3683 (MARCH_MTUNE_NATIVE_SPECS, BASE_DRIVER_SELF_SPECS): New macros.
3684 (DRIVER_SELF_SPECS): Adjust.
3685 * config/mips/linux64.h (DRIVER_SELF_SPECS): Update.
3686 * config/mips/st.h, config/mips/t-st: New.
3687 * config/mips/driver-native.c, config/mips/x-native: New.
3688 * doc/invoke.texi (MIPS): Document 'native' value for -march and
3691 2008-06-18 Maxim Kuvyrkov <maxim@codesourcery.com>
3693 * config/mips/mips.h (ISA_HAS_CONDMOVE): Slice ISA_HAS_FP_CONDMOVE
3695 (ISA_HAS_FP_CONDMOVE): New macro.
3696 (ISA_HAS_FP_MADD4_MSUB4, ISA_HAS_FP_MADD3_MSUB3): New macros.
3697 (ISA_HAS_NMADD_NMSUB): Rename to ISA_HAS_NMADD4_NMSUB4.
3698 (ISA_HAS_NMADD3_NMSUB3): New macro.
3699 * config/mips/mips.c (mips_rtx_costs): Update.
3700 * config/mips/mips.md (MOVECC): Don't use FP conditional moves when
3701 compiling for ST Loongson 2E/2F.
3702 (madd<mode>): Rename to madd4<mode>. Update.
3703 (madd3<mode>): New pattern.
3704 (msub<mode>): Rename to msub4<mode>. Update.
3705 (msub3<mode>): New pattern.
3706 (nmadd<mode>): Rename to nmadd4<mode>. Update.
3707 (nmadd3<mode>): New pattern.
3708 (nmadd<mode>_fastmath): Rename to nmadd4<mode>_fastmath. Update.
3709 (nmadd3<mode>_fastmath): New pattern.
3710 (nmsub<mode>): Rename to nmsub4<mode>. Update.
3711 (nmsub3<mode>): New pattern.
3712 (nmsub<mode>_fastmath): Rename to nmsub4<mode>_fastmath. Update.
3713 (nmsub3<mode>_fastmath): New pattern.
3714 (mov<SCALARF:mode>_on_<MOVECC:mode>, mov<mode>cc): Update.
3716 2008-06-18 Steven Bosscher <steven@gcc.gnu.org>
3718 * df.h (struct df_ref): Replace 'insn' field with 'insn_info' field.
3719 (DF_REF_INSN_INFO): New.
3720 (DF_REF_INSN, DF_REF_INSN_UID): Rewrite macros using DF_REF_INSN_INFO.
3721 (DF_REF_IS_ARTIFICIAL): Artificial refs are now identified as refs
3722 with a NULL DF_REF_INSN_INFO.
3723 (DF_INSN_INFO_GET, DF_INSN_INFO_SET): Renamed from DF_INSN_GET and
3725 (DF_INSN_INFO_LUID, DF_INSN_INFO_DEFS, DF_INSN_INFO_USES,
3726 DF_INSN_INFO_EQ_USES): New.
3727 (DF_INSN_LUID, DF_INSN_DEFS, DF_INSN_USES, DF_INSN_EQ_USES,
3728 DF_INSN_UID_LUID, DF_INSN_UID_DEFS, DF_INSN_UID_USES,
3729 DF_INSN_UID_EQ_USES): Rewrite using DF_INSN_INFO_* macros.
3730 * df-core.c: Update comment for above changes.
3731 (df_insn_debug_regno): Use DF_INSN_INFO_GET instead of INSN_UID and
3732 DF_INSN_UID_* macros.
3733 (df_ref_debug): Check for NULL DF_REF_INSN_INFO.
3734 * df-scan.c (df_ref_record): Take a df_insn_info instead of an
3735 insn rtx. Update all callers.
3736 (df_def_record_1, df_defs_record, df_uses_record, df_get_call_refs,
3737 df_ref_create_structure, df_insn_refs_collect): Likewise.
3738 (df_ref_equal_p): Compare DF_REF_INSN_INFO pointers for the refs.
3739 * df-problems.c (df_chain_dump): Test for non-NULL DF_REF_INSN_INFO.
3740 (df_live_bb_local_compute): Retrieve DF_INSN_INFO, use DF_INSN_INFO_*
3741 macros to access the insn refs.
3742 (df_chain_top_dump, df_chain_bottom_dump, df_byte_lr_alloc): Likewise.
3743 * fwprop.c (use_killed_between): Use DF_REF_INSN accessor macro.
3744 (all_uses_available): Retrieve DF_INSN_INFO for def_insn, and use it
3745 for accessing the refs.
3746 (try_fwprop_subst): Likewise.
3747 * ddg.c (add_cross_iteration_register_deps): Use DF_REF_INSN macro.
3748 * web.c (union_defs): Retrieve DF_INSN_INFO for def_insn, and use it
3749 for accessing the refs.
3750 * loop-invariant.c (invariant_for_use): Use DF_REF_BB macro.
3751 (check_dependencies): Use DF_INSN_INFO_GET, use DF_INSN_INFO_* macros
3752 to look at the insn refs.
3753 (record_uses): Likewise.
3754 * dce.c (deletable_insn_p): Don't tolerate artificial DEFs in this
3756 (mark_artificial_uses): Don't mark_insn for artificial refs.
3757 (mark_reg_rependencies): Likewise.
3759 * doc/rtl.texi: Remove documentation of ADDRESSOF.
3761 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3763 * configure: Regenerate.
3765 2008-06-17 Eric B. Weddington <eric.weddington@atmel.com>
3767 * config/avr/avr.c (avr_mcu_t): Remove atmega32hvb.
3768 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
3769 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
3771 2008-06-17 Eric B. Weddington <eric.weddington@atmel.com>
3773 * config/avr/avr.c (avr_mcu_t): Add attiny167.
3774 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
3775 * gcc/config/avr/t-avr (MULTILIB_MATCHES): Likewise.
3777 2008-06-17 Eric B. Weddington <eric.weddington@atmel.com>
3779 * config/avr/avr.c (avr_mcu_t): Add atmega32u4.
3780 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
3781 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
3783 2008-06-17 Bernhard Fischer <aldot@gcc.gnu.org>
3785 * tree-ssa-sccvn.c: Fix format of comments.
3787 2008-06-17 Bernhard Fischer <aldot@gcc.gnu.org>
3789 * cgraph.c: Remove unneeded forward declarations of eq_node()
3792 2008-06-17 Steven Bosscher <steven@gcc.gnu.org>
3794 * see.c (see_analyse_one_def): Do not look for REG_LIBCALL and
3796 (see_update_relevancy): Likewise.
3797 * fwprop.c (try_fwprop_subst): Likewise.
3798 * rtlanal.c (noop_move_p): Likewise.
3799 * builtins.c (expand_buitlin_mathfn): Don't try to add REG_EQUAL
3800 notes to non-existing libcall blocks.
3801 * cse.c (cse_insn): Change prototype. Don't update libcall notes.
3803 (cse_extended_basic_block): Don't track libcall and no-conflict notes.
3804 (dead_libcall_p): Remove.
3805 (delete_trivially_dead_insns): Don't use it.
3806 * web.c (union_defs): Remove comment about keeping nops.
3807 * gcse.c (hash_scan_insn): Don't take libcall pointers.
3808 (compute_hash_table_work): Don't track libcall notes.
3809 (do_local_cprop): Don't take libcall pointers. Don't update
3811 (adjust_libcall_notes): Deleted.
3812 (local_cprop_pass): Remove stack for nested libcalls (which shouldn't
3813 ever have existed in the first place).
3814 (replace_store_insn): Don't try to remove libcall notes.
3815 * lower-subreg.c (move_libcall_note, move_retval_note): Deleted.
3816 (resolve_reg_notes): Don't call them.
3817 (resolve_simple_move): Likewise.
3818 (decompose_multiword_subregs): Remove block handling REG_RETVAL notes.
3819 Don't remove REG_RETVAL notes.
3820 * emit-rtl.c (try_split): Don't update libcall notes.
3821 (emit_copy_of_insn_after): Dito.
3822 * cselib.c (cselib_current_insn_in_libcall): Remove.
3823 (cselib_process_insn): Don't set/clear it.
3824 (new_elt_loc_list): Don't record it.
3825 (cselib_init): Don't initialize it.
3826 * cselib.c (struct elt_loc_list): Remove in_libcall field.
3827 * loop-invariant.c (find_invariant_insn): Don't look for libcall
3829 * sched-deps.c (sched_analyze_insn): Don't group libcall blocks.
3830 (sched_analyze): Don't set up deps->libcall_block_tail_insn.
3831 (init_deps): Don't initialize it.
3832 * sched-int.h (struct deps): Rremove libcall_block_tail_insn field.
3833 * combine.c (delete_noop_moves): Don't update libcall notes.
3834 (can_combine_p): Remove now pointless #if 0 block.
3835 (try_combine): Remove another obsolete #if 0 block.
3836 (distribute_notes): Don't distribute libcall notes.
3837 * reg-notes.def (REG_LIBCALL, REG_RETVAL): Remove.
3838 * dce.c (libcall_dead_p): Remove.
3839 (delete_unmarked_insns): Don't handle libcall blocks.
3840 (preserve_libcall_for_dce): Remove.
3841 (prescan_insns_for_dce): Don't special-case libcall block insns.
3842 * reload1 (reload): Don't handle libcall notes.
3843 * doc/rtl.texi (REG_LIBCALL, REG_RETVAL, REG_LIBCALL_ID): Remove
3846 2008-06-16 Eric B. Weddington <eric.weddington@atmel.com>
3848 * config/avr/avr.c (avr_mcu_t): Add atmega32c1.
3849 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
3850 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
3852 2008-06-16 Eric B. Weddington <eric.weddington@atmel.com>
3854 * config/avr/avr.c (avr_mcu_t): Add atmega32m1.
3855 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
3856 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
3858 2008-06-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3860 * Makefile.in (FLAGS_TO_PASS): Add $(datarootdir).
3862 2008-06-16 Ira Rosen <irar@il.ibm.com>
3864 PR tree-optimization/36493
3865 * tree-vect-transform.c (vect_create_data_ref_ptr): Remove TYPE from
3866 the arguments list. Use VECTYPE to create vector pointer.
3867 (vectorizable_store): Fail if accesses through a pointer to vectype
3868 do not alias the original memory reference operands.
3869 Call vect_create_data_ref_ptr without the removed argument.
3870 (vectorizable_load): Likewise.
3871 (vect_setup_realignment): Call vect_create_data_ref_ptr without the
3874 2008-06-015 Andy Hutchinson <hutchinsonandy@aim.com>
3877 * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Add check for
3880 2008-06-15 Maxim Kuvyrkov <maxim@codesourcery.com>
3882 * config/mips/loongson2ef.md: New file.
3883 * config/mips/mips.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
3884 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
3885 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
3886 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): New constants.
3887 (define_attr "cpu"): Rename loongson2e and loongson2f to loongson_2e
3889 (loongson2ef.md): New include.
3890 * config/mips/loongson.md (vec_pack_ssat_<mode>, vec_pack_usat_<mode>)
3891 (add<mode>3, paddd, ssadd<mode>3, usadd<mode>3)
3892 (loongson_and_not_<mode>, loongson_average_<mode>, loongson_eq_<mode>)
3893 (loongson_gt_<mode>, loongson_extract_halfword)
3894 (loongson_insert_halfword_0, loongson_insert_halfword_2)
3895 (loongson_insert_halfword_3, loongson_mult_add, smax<mode>3)
3896 (umax<mode>3, smin<mode>3, umin<mode>3, loongson_move_byte_mask)
3897 (umul<mode>3_highpart, smul<mode>3_highpart, loongson_smul_lowpart)
3898 (loongson_umul_word, loongson_pasubub, reduc_uplus_<mode>)
3899 (loongson_psadbh, loongson_pshufh, loongson_psll<mode>)
3900 (loongson_psra<mode>, loongson_psrl<mode>, sub<mode>3, psubd)
3901 (sssub<mode>3, ussub<mode>3, vec_interleave_high<mode>)
3902 (vec_interleave_low<mode>): Define type attribute.
3903 * config/mips/mips.c (mips_ls2): New static variable.
3904 (mips_issue_rate): Update to handle tuning for Loongson 2E/2F.
3905 (mips_ls2_init_dfa_post_cycle_insn, mips_init_dfa_post_cycle_insn)
3906 (sched_ls2_dfa_post_advance_cycle, mips_dfa_post_advance_cycle):
3907 Implement target scheduling hooks.
3908 (mips_multipass_dfa_lookahead): Update to handle tuning for
3910 (mips_sched_init): Initialize data for Loongson scheduling.
3911 (mips_ls2_variable_issue): New static function.
3912 (mips_variable_issue): Update to handle tuning for Loongson 2E/2F.
3914 (TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN)
3915 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Override target hooks.
3916 * config/mips/mips.h (TUNE_LOONGSON_2EF): New macros.
3917 (ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY, ISA_HAS_HILO_INTERLOCKS):
3918 Handle ST Loongson 2E/2F cores.
3919 (CPU_UNITS_QUERY): Define macro to enable querying of DFA units.
3921 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3923 * omp-low.c (extract_omp_for_data): Fix comment typo.
3926 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3928 * doc/sourcebuild.texi (Config Fragments): Remove obsolete
3929 FIXME note about gcc/config.guess.
3930 * doc/options.texi (Option file format): Remove non-ASCII bytes.
3931 * doc/cpp.texi: Expand TABs, drop indentation outside examples.
3932 * doc/cppopts.texi: Likewise.
3933 * doc/extend.texi: Likewise.
3934 * doc/gcc.texi: Likewise.
3935 * doc/gccint.texi: Likewise.
3936 * doc/gcov.texi: Likewise.
3937 * doc/gty.texi: Likewise.
3938 * doc/hostconfig.texi: Likewise.
3939 * doc/install.texi: Likewise.
3940 * doc/invoke.texi: Likewise.
3941 * doc/loop.texi: Likewise.
3942 * doc/makefile.texi: Likewise.
3943 * doc/md.texi: Likewise.
3944 * doc/passes.texi: Likewise.
3945 * doc/tm.texi: Likewise.
3946 * doc/tree-ssa.texi: Likewise.
3947 * doc/trouble.texi: Likewise.
3949 2008-06-15 Mark Shinwell <shinwell@codesourcery.com>
3950 Nathan Sidwell <nathan@codesourcery.com>
3951 Maxim Kuvyrkov <maxim@codesourcery.com>
3952 Richard Sandiford <rdsandiford@googlemail.com>
3954 * config/mips/mips-modes.def: Add V8QI, V4HI and V2SI modes.
3955 * config/mips/mips-protos.h (mips_expand_vector_init): New.
3956 * config/mips/mips-ftypes.def: Add function types for Loongson-2E/2F
3958 * config/mips/mips.c (mips_split_doubleword_move): Handle new modes.
3959 (mips_hard_regno_mode_ok_p): Allow 64-bit vector modes for Loongson.
3960 (mips_vector_mode_supported_p): Add V2SImode, V4HImode and
3962 (LOONGSON_BUILTIN, LOONGSON_BUILTIN_ALIAS): New.
3963 (CODE_FOR_loongson_packsswh, CODE_FOR_loongson_packsshb,
3964 (CODE_FOR_loongson_packushb, CODE_FOR_loongson_paddw,
3965 (CODE_FOR_loongson_paddh, CODE_FOR_loongson_paddb,
3966 (CODE_FOR_loongson_paddsh, CODE_FOR_loongson_paddsb)
3967 (CODE_FOR_loongson_paddush, CODE_FOR_loongson_paddusb)
3968 (CODE_FOR_loongson_pmaxsh, CODE_FOR_loongson_pmaxub)
3969 (CODE_FOR_loongson_pminsh, CODE_FOR_loongson_pminub)
3970 (CODE_FOR_loongson_pmulhuh, CODE_FOR_loongson_pmulhh)
3971 (CODE_FOR_loongson_biadd, CODE_FOR_loongson_psubw)
3972 (CODE_FOR_loongson_psubh, CODE_FOR_loongson_psubb)
3973 (CODE_FOR_loongson_psubsh, CODE_FOR_loongson_psubsb)
3974 (CODE_FOR_loongson_psubush, CODE_FOR_loongson_psubusb)
3975 (CODE_FOR_loongson_punpckhbh, CODE_FOR_loongson_punpckhhw)
3976 (CODE_FOR_loongson_punpckhwd, CODE_FOR_loongson_punpcklbh)
3977 (CODE_FOR_loongson_punpcklhw, CODE_FOR_loongson_punpcklwd): New.
3978 (mips_builtins): Add Loongson builtins.
3979 (mips_loongson_2ef_bdesc): New.
3980 (mips_bdesc_arrays): Add mips_loongson_2ef_bdesc.
3981 (mips_builtin_vector_type): Handle unsigned versions of vector modes.
3982 (MIPS_ATYPE_UQI, MIPS_ATYPE_UDI, MIPS_ATYPE_V2SI, MIPS_ATYPE_UV2SI)
3983 (MIPS_ATYPE_V4HI, MIPS_ATYPE_UV4HI, MIPS_ATYPE_V8QI, MIPS_ATYPE_UV8QI):
3985 (mips_expand_vector_init): New.
3986 * config/mips/mips.h (HAVE_LOONGSON_VECTOR_MODES): New.
3987 (TARGET_CPU_CPP_BUILTINS): Define __mips_loongson_vector_rev
3989 * config/mips/mips.md: Add unspec numbers for Loongson
3990 builtins. Include loongson.md.
3991 (MOVE64): Include Loongson vector modes.
3992 (SPLITF): Include Loongson vector modes.
3993 (HALFMODE): Handle Loongson vector modes.
3994 * config/mips/loongson.md: New.
3995 * config/mips/loongson.h: New.
3996 * config.gcc: Add loongson.h header for mips*-*-* targets.
3997 * doc/extend.texi (MIPS Loongson Built-in Functions): New.
3999 2008-06-14 Joseph Myers <joseph@codesourcery.com>
4001 * config.gcc (arc-*-elf*, avr-*-*, fr30-*-elf, frv-*-elf,
4002 h8300-*-elf*, h8300-*-*, i[34567]86-*-elf*, x86_64-*-elf*,
4003 i[34567]86-*-aout*, i[34567]86-*-coff*, ia64*-*-elf*,
4004 iq2000*-*-elf*, m32r-*-elf*, m32rle-*-elf*, m32r-*-linux*,
4005 m32rle-*-linux*, m68hc11-*-*|m6811-*-*, m68hc12-*-*|m6812-*-*,
4006 m68k-*-coff*, mcore-*-elf, mcore-*-pe*, mipsisa64sr71k-*-elf*,
4007 mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*, mips-*-elf* |
4008 mipsel-*-elf*, mips64-*-elf* | mips64el-*-elf*, mips64vr-*-elf* |
4009 mips64vrel-*-elf*, mips64orion-*-elf* | mips64orionel-*-elf*,
4010 mipstx39-*-elf* | mipstx39el-*-elf*, mn10300-*-*, pdp11-*-,
4011 powerpc-*-elf*, powerpcle-*-elf*, sh-*-elf* | sh[12346l]*-*-elf* |
4012 sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | sh-*-linux* |
4013 sh[2346lbe]*-*-linux* | sh-*-netbsdelf* | shl*-*-netbsdelf* |
4014 sh5-*-netbsd* | sh5l*-*-netbsd* | sh64-*-netbsd* |
4015 sh64l*-*-netbsd*, sh-*-*, sparc-*-elf*, sparc64-*-elf*,
4016 v850e1-*-*, v850e-*-*, v850-*-*, xstormy16-*-elf, m32c-*-elf*):
4017 Remove use_fixproto=yes.
4018 (ia64*-*-hpux*): Remove comment about using fixproto.
4019 (m68k-*-uclinuxoldabi*, m68k-*-uclinux*): Remove use_fixproto=no.
4021 2008-06-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4023 * configure.ac: Update gthr-default.h lazily, to avoid unneeded
4025 * configure: Regenerate.
4027 2008-06-13 Eric Botcazou <ebotcazou@adacore.com>
4030 * builtins.c (get_memory_rtx): Test for the presence of DECL_SIZE_UNIT
4031 before evaluating it.
4033 2008-06-13 Jakub Jelinek <jakub@redhat.com>
4036 * c-decl.c (merge_decls): Don't clear DECL_EXTERNAL for
4037 nested inline functions.
4038 (start_decl, start_function): Don't invert DECL_EXTERNAL
4039 for nested inline functions.
4041 2008-06-13 Richard Sandiford <rdsandiford@googlemail.com>
4043 * config/mips/mips.md: Remove TARGET_DEBUG_D_MODE conditions from
4044 splits that must be made for correctness.
4046 2008-06-13 Richard Sandiford <rdsandiford@googlemail.com>
4048 * config/mips/mips.c (BUILTIN_AVAIL_NON_MIPS16): New macro.
4049 (AVAIL_NON_MIPS16): Likewise.
4050 (mips_builtin_description): Replace target_flags with a predicate.
4051 (paired_single, sb1_paired_single, mips3d, dsp, dspr2, dsp_32)
4052 (dspr2_32): New availability predicates.
4053 (MIPS_BUILTIN): New macro.
4054 (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS)
4055 (CMP_4S_BUILTINS, MOVTF_BUILTINS, CMP_BUILTINS)
4056 (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): Use it.
4057 Replace the TARGET_FLAGS parameters with AVAIL parameters.
4058 (mips_ps_bdesc, mips_sb1_bdesc, mips_dsp_bdesc)
4059 (mips_dsp_32only_bdesc): Merge into...
4060 (mips_builtins): ...this new array.
4061 (mips_bdesc_map, mips_bdesc_arrays): Delete.
4062 (mips_init_builtins): Update after above changes.
4063 (mips_expand_builtin_1): Merge into...
4064 (mips_expand_builtin): ...here and update after above changes.
4066 2008-06-12 Paul Brook <paul@codesourcery.com>
4068 * longlong.h (__arm__): Define count_leading_zeros.
4069 * config/arm/lib1funcs.asm (xxh, xxl, yyh, yyl): Define.
4070 (clzsi2, clzdi2): New functions.
4071 * config/arm/bpabi-v6m.S (xxh, xxl, yyh, yyl): Remove.
4072 * config/arm/bpabi.S (xxh, xxl, yyh, yyl): Remove.
4073 * config/arm/t-strongarm-elf (LIB1ASMFUNCS): Ditto.
4074 * config/arm/t-vxworks (LIB1ASMFUNCS): Ditto.
4075 * config/arm/t-pe (LIB1ASMFUNCS): Ditto.
4076 * config/arm/t-arm-elf (LIB1ASMFUNCS): Ditto.
4077 * config/arm/t-arm-coff (LIB1ASMFUNCS): Ditto.
4078 * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
4079 * config/arm/t-symbian (LIB1ASMFUNCS): Ditto.
4080 * config/arm/t-wince-pe (LIB1ASMFUNCS): Ditto.
4082 2008-06-12 Kazu Hirata <kazu@codesourcery.com>
4084 * config/m68k/m68k.c (m68k_tune_flags): New.
4085 (override_options): Compute m68k_tune_flags.
4086 (MULL_COST, MULW_COST): Update for various variants of CFV2.
4087 * config/m68k/m68k.h (TUNE_MAC, TUNE_EMAC): New.
4089 2008-06-12 Jakub Jelinek <jakub@redhat.com>
4092 * omp-low.c (expand_omp_sections): Initialize l2 to avoid bogus warning.
4094 2008-06-12 Eric Botcazou <ebotcazou@adacore.com>
4096 * tree-inline.c (copy_body_r): Copy TREE_SIDE_EFFECTS along with
4097 TREE_THIS_VOLATILE on INDIRECT_REF nodes.
4099 2008-06-12 Eric Botcazou <ebotcazou@adacore.com>
4101 * expr.c (store_field): Do a block copy from BLKmode to BLKmode-like.
4102 (get_inner_reference): Use BLKmode for byte-aligned BLKmode bitfields.
4104 2008-06-12 Jakub Jelinek <jakub@redhat.com>
4107 * omp-low.c (expand_omp_sections): Handle #pragma omp sections with
4110 2008-06-12 Richard Guenther <rguenther@suse.de>
4112 PR tree-optimization/36345
4113 * tree-flow.h (struct ptr_info_def): Align escape_mask,
4114 add memory_tag_needed flag.
4115 (may_alias_p): Declare.
4116 * tree-ssa-alias.c (may_alias_p): Export.
4117 (set_initial_properties): Use memory_tag_needed flag.
4118 (update_reference_counts): Likewise.
4119 (reset_alias_info): Reset memory_tag_needed flag.
4120 (create_name_tags): Check memory_tag_needed flag.
4121 (dump_points_to_info_for): Dump it.
4122 * tree-ssa-structalias.c (struct variable_info): Remove
4123 directly_dereferenced flag.
4124 (new_var_info): Do not initialize it.
4125 (process_constraint_1): Do not set it.
4126 (update_alias_info): Set is_dereferenced flag.
4127 (set_uids_in_ptset): Use may_alias_p.
4128 (set_used_smts): Check memory_tag_needed flag.
4129 (find_what_p_points_to): Likewise. Pass is_dereferenced flag.
4130 * tree-ssa-alias.c (verify_flow_sensitive_alias_info): Check
4131 memory_tag_needed flag.
4132 * tree-ssa-alias-warnings.c (dsa_named_for): Try to recover
4135 2008-06-12 Kai Tietz <kai.tietz@onevision.com>
4137 * config/i386/i386.c (ix86_compute_frame_layout): Disable
4138 red zone for w64 abi.
4139 (ix86_expand_prologue): Likewise.
4140 (ix86_force_to_memory): Likewise.
4141 (ix86_free_from_memory): Likewise.
4143 2008-06-11 Edmar Wienskoski <edmar@freescale.com>
4146 * config/rs6000/rs6000.c (rs6000_override_options): Set
4147 rs6000_isel conditionally to the absence of comand line override.
4148 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
4149 Remove duplicate rs6000_isel setting.
4150 * config/rs6000/eabispe.h: Ditto.
4152 2008-06-11 Richard Guenther <rguenther@suse.de>
4154 * alias.c (get_alias_set): Use the element alias-set for arrays.
4155 (record_component_aliases): For arrays and vectors do nothing.
4156 * c-common.c (strict_aliasing_warning): Handle the cases
4157 of alias set zero explicitly.
4158 * Makefile.in (dfp.o-warn): Add -Wno-error.
4160 2008-06-11 Joseph Myers <joseph@codesourcery.com>
4162 * config.gcc (all_defaults): Add arch_32 arch_64 cpu_32 cpu_64
4164 (i[34567]86-*-* | x86_64-*-*): Add arch_32 arch_64 cpu_32 cpu_64
4165 tune_32 tune_64 to supported_defaults. Allow values not
4166 supporting 64-bit mode for arch_32, cpu_32 and tune_32 for
4167 x86_64. Do not override cpu_32 or cpu_64 values from target name.
4168 (i[34567]86-*-linux*, i[34567]86-*-solaris2.1[0-9]*): Only default
4169 with_cpu_64 to generic for 64-bit-supporting configurations, not
4170 with_cpu. Remove FIXMEs.
4171 * doc/install.texi (--with-cpu-32, --with-cpu-64, --with-arch-32,
4172 --with-arch-64, --with-tune-32, --with-tune-64): Document.
4173 * config/i386/i386.h (OPT_ARCH32, OPT_ARCH64): Define.
4174 (OPTION_DEFAULT_SPECS): Add tune_32, tune_64, cpu_32, cpu_64,
4175 arch_32 and arch_64.
4177 2008-06-11 Eric Botcazou <ebotcazou@adacore.com>
4178 Olivier Hainque <hainque@adacore.com>
4180 * builtins.c (get_memory_rtx): Accept byte-addressable bitfields.
4181 Use DECL_SIZE_UNIT to retrieve the size of the field.
4183 2008-06-11 Joseph Myers <joseph@codesourcery.com>
4185 * config/arm/arm.c (arm_init_neon_builtins): Move initialization
4186 with function calls after declarations. Lay out
4187 neon_float_type_node before further use.
4189 2008-06-11 Richard Guenther <rguenther@suse.de>
4191 * tree-flow.h (may_point_to_global_var): Declare.
4192 * tree-ssa-alias.c (may_point_to_global_var): New function.
4193 * tree-ssa-sink.c (is_hidden_global_store): Use it.
4195 2008-06-10 Kazu Hirata <kazu@codesourcery.com>
4197 * configure.ac: Teach that fido supports .debug_line.
4198 * configure: Regenerate.
4200 2008-06-10 Tom Tromey <tromey@redhat.com>
4202 * c-lex.c (fe_file_change): Pass SOURCE_LINE to start_source_file
4205 2008-06-10 Joseph Myers <joseph@codesourcery.com>
4207 * dfp.c (WORDS_BIGENDIAN): Define to 0 if not defined.
4208 (encode_decimal64, decode_decimal64, encode_decimal128,
4209 decode_decimal128): Reverse order of 32-bit parts of value if host
4210 and target endianness differ.
4212 2008-06-10 Vinodha Ramasamy <vinodha@google.com>
4214 * value_prob.c (tree_divmod_fixed_value_transform): Use gcov_type.
4215 Avoid division by 0.
4216 (tree_mod_pow2_value_transform): Likewise.
4217 (tree_ic_transform): Likewise.
4218 (tree_stringops_transform): Likewise.
4219 (tree_mod_subtract_transform): Likewise.
4220 * tree-inline-c (copy_bb): Corrected int type to gcov_type.
4221 (copy_edges_for_bb): Likewise.
4222 (initialize_cfun): Likewise.
4224 2008-06-10 Uros Bizjak <ubizjak@gmail.com>
4226 * config/i386/i386.md (*btdi_rex64): Change operand 1 predicate to
4227 nonmemory_operand. Add "N" operand constraint.
4229 (*jcc_btdi_mask_rex64): New instruction and split pattern.
4230 (*jcc_btsi_mask): Ditto.
4231 (*jcc_btsi_mask_1): Ditto.
4233 2008-06-10 Joseph Myers <joseph@codesourcery.com>
4235 * config/rs6000/rs6000.c (build_opaque_vector_type): Set
4236 TYPE_CANONICAL for copied element type.
4238 2008-06-10 Uros Bizjak <ubizjak@gmail.com>
4241 * config/i386/i386.c (ix86_tune_features) [TUNE_USE_BT]:
4242 Add m_CORE2 and m_GENERIC.
4243 * config/i386/predicates.md (bt_comparison_operator): New predicate.
4244 * config/i386/i386.md (*btdi_rex64): New instruction pattern.
4246 (*jcc_btdi_rex64): New instruction and split pattern.
4248 (*jcc_btsi_1): Ditto.
4249 (*btsq): Fix Intel asm dialect operand order.
4253 2008-06-09 Andy Hutchinson <hutchinsonandy@aim.com>
4256 * simplify-rtx.c (simplify_subreg): Add check for shift count
4259 2008-06-09 Richard Sandiford <rdsandiford@googlemail.com>
4261 * doc/md.texi: Synchronize with later constraints.md change.
4262 * longlong.h (umul_ppmm): Replace the MIPS asm implementation
4263 with a C implementation.
4264 * config/mips/mips.c (mips_legitimize_move): Remove MFHI and
4266 (mips_subword): Assume TImode for CONST_INTs if TARGET_64BIT.
4267 (mips_split_doubleword_move): Use special MTHI and MFHI instructions
4268 when moving to and from MD_REGNUM.
4269 (mips_output_move): Don't handle moves from GPRs to HI_REGNUM.
4270 Handle moves from LO_REGNUM to GPRs using MFLO, MACC or DMACC.
4271 Handle byte and halfword moves.
4272 (mips_hard_regno_mode_ok_p): Handle MD_REGS and DSP_ACC_REGS
4274 * config/mips/constraints.md (h): Turn into NO_REGS.
4275 (l, x): Update documentation.
4276 * config/mips/mips.md (UNSPEC_MFHILO): Delete.
4277 (UNSPEC_MFHI, UNSPEC_MTHI, UNSPEC_SET_HILO): New.
4278 (UNSPEC_TLS_LDM, UNSPEC_TLS_GET_TP): Renumber.
4279 (HILO): New mode iterator.
4281 (any_div): New code iterator.
4282 (u): Extend code attribute to div and udiv.
4283 (*add<mode>3_mips16, *movdi_64bit_mips16, *movsi_mips16): Use
4284 d_operand in the splitters. Remove redundant CONST_INT checks.
4285 (mulsi3_mult3, mul<mode>3_internal, mul<mode>3_r4000, *mul_acc_si)
4286 (*macc, *msac, *msac_using_macc, *macc2, *msac2, *mul_sub_si)
4287 (*muls): Remove "=h" clobbers. Adjust peephole2s and define_splits
4288 accordingly, using normal moves instead of unspecs to move LO into
4289 a GPR. Use d_operand and lo_operand instead of *_REG_P checks.
4290 (<u>mulsidi3): Handle expansion in C code.
4291 (<u>mulsidi3_32bit_internal): Rename to...
4292 (<u>mulsidi3_32bit): ...this.
4293 (<u>mulsidi3_32bit_r4000): Fix insn separator.
4294 (*<u>mulsidi3_64bit): Rename to...
4295 (<u>mulsidi3_64bit): ...this. Combine DImode "=h" and "=l" clobbers
4296 into a TImode "=x" clobber. In the split, use an UNSPEC_SET_HILO
4297 to set LO and HI to the multiplication result. Use a normal move
4298 for MFLO and an unspec for MFHI.
4299 (*<u>mulsidi3_64bit_parts): Replace with...
4300 (<u>mulsidi3_64bit_hilo): ...this new instruction.
4301 (<su>mulsi3_highpart): Extend to TARGET_FIX_R4000.
4302 (<su>mulsi3_highpart_internal): Turn into a define_insn_and_split
4303 and extend it to TARGET_FIX_R4000. Store the destination in a GPR
4304 instead of HI. Split the instruction into a separate multiplication
4305 and MFHI if !TARGET_FIX_R4000.
4306 (<su>muldi3_highpart): Likewise.
4307 (<su>mulsi3_highpart_mulhi_internal): Remove the first alternative
4308 and the "=h" clobber.
4309 (*<su>mulsi3_highpart_neg_mulhi_internal): Likewise.
4310 (<u>mulditi3): New expander.
4311 (<u>mulditi3_internal, <u>mulditi3_r4000): New patterns.
4312 (madsi): Remove "=h" clobber.
4313 (divmod<mode>4, udivmod<mode>4): Turn into define_insn_and_splits.
4314 Force the modulus result to be a GPR and split the instruction into
4315 a division followed by an MFHI after reload.
4316 (<u>divmod<GPR:mode>4_hilo_<HILO:mode>): New instruction.
4317 (*lea_high64): Use d_operand in the define_peephole2. Likewise
4318 the MIPS16 HIGH define_split.
4319 (*movdi_32bit, *movdi_gp32_fp64, *movdi_32bit_mips16): Change type
4320 of acc<->gpr moves to "multi".
4321 (*movdi_64bit): Replace the single "x" alternative with
4322 alternatives for moving into and out of "a".
4323 (*movhi_internal, *movqi_internal): Likewise. Use mips_output_move.
4324 (*movsi_internal): Extend the "d<-A" alternative to "d<-a".
4325 (*movdi_64bit_mips16, *movsi_mips16): Add d<-a alternatives.
4326 Use d_operand in the splitters. Remove redundant CONST_INT checks.
4327 (*movhi_mips16, *movqi_mips16): Likewise. Use mips_output_move.
4328 (movti): New expander.
4329 (*movti, *movti_mips16): New insns.
4330 (mfhilo_<mode>, *mfhilo_<mode>, *mfhilo_<mode>_macc): Delete.
4331 (mfhi<GPR:mode>_<HILO:mode>): New pattern.
4332 (mthi<GPR:mode>_<HILO:mode>): Likewise.
4333 * config/mips/predicates.md (fpr_operand): Delete.
4334 (d_operand): New predicate.
4336 2008-06-09 Michael Meissner <michael.meissner@amd.com>
4338 * config.gcc (i[34567]86-*-*): Put test in quotes to prevent
4339 failure on some Bourne shells.
4340 (x86_64-*-*): Ditto.
4342 2008-06-09 Kai Tietz <kai.tietz@onevision.com>
4344 * config/i386/cygming.h (TARGET_SUBTARGET64_DEFAULT): New.
4346 2008-06-09 Eric Botcazou <ebotcazou@libertysurf.fr>
4348 * doc/install.texi (*-*-solaris2*): Remove obsolete contents.
4349 (sparc-sun-solaris2*): Likewise.
4351 2008-06-09 Arnaud Charlet <charlet@adacore.com
4353 * doc/install.texi: Update requirements to build the Ada compiler.
4355 2008-06-08 Steven Bosscher <stevenb.gcc@gmail.com>
4357 * df-scan.c (struct df_scan_problem_data): Remove the
4358 mw_link_pool alloc pool.
4359 (df_scan_free_internal): Don't free it.
4360 (df_scan_alloc): Don't allocate it.
4361 * df.h (struct df_link): Update comment.
4363 2008-06-08 Nathan Sidwell <nathan@codesourcery.com>
4365 * except.h: Correct checks for when SJLJ exceptions must be used.
4367 2008-06-08 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4369 * doc/invoke.texi (Wenum-compare): Mention that it is enabled by
4372 2008-06-08 Joseph Myers <joseph@codesourcery.com>
4374 PR tree-optimization/36218
4375 * configure.ac: Use LDFLAGS="${LDFLAGS_FOR_BUILD}" when running
4376 configure for the build system.
4377 (BUILD_LDFLAGS): Define.
4378 * configure: Regenerate.
4379 * Makefile.in (BUILD_LDFLAGS): Define to @BUILD_LDFLAGS@.
4381 2008-07-08 Anatoly Sokolov <aesok@post.ru>
4384 * config/avr/avr.h (HARD_REGNO_RENAME_OK): Define.
4385 * config/avr/avr.c (avr_hard_regno_rename_ok): New function.
4386 * config/avr/avr-protos.h (avr_hard_regno_rename_ok): New prototype.
4388 2008-06-07 Danny Smith <dannysmith@users.sourceforge.net>
4390 * config/i386/cygming.h (MAYBE_UWIN_CPP_BUILTINS): Remove.
4392 2008-06-07 Joseph Myers <joseph@codesourcery.com>
4394 * config.gcc (Obsolete configurations): Remove list of
4396 (Unsupported targets list): Add *-*-linux*aout*, *-*-linux*libc1*,
4397 *-*-solaris2.[0-6], *-*-solaris2.[0-6].*, *-*-sysv*. Remove other
4398 targets matched by those patterns.
4399 (strongarm*-*-*, ep9312*-*-*, xscale-*-*, parisc*-*-*,
4400 m680[012]0-*-*, *-*-linux*libc1*, *-*-linux*aout*,
4401 alpha*-*-unicosmk*, strongarm*-*-freebsd*, ep9312-*-elf,
4402 arm*-*-kaos*, cris-*-aout, parisc*64*-*-linux*, parisc*-*-linux*,
4403 hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
4404 i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
4405 i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-sco3.2v5*,
4406 i[34567]86-*-sysv5*, i[34567]86-*-sysv4*, i[34567]86-*-uwin*,
4407 i[34567]86-*-kaos*, m68020-*-elf*, m68010-*-netbsdelf*,
4408 mips-wrs-windiss, mt-*-elf, powerpc-*-beos*, powerpc-*-chorusos*,
4409 powerpc-wrs-windiss*, powerpcle-*-sysv*, powerpc-*-kaos*,
4410 powerpcle-*-kaos*, sh*-*-kaos*, sparc-*-sysv4*, strongarm-*-elf*,
4411 strongarm-*-pe, strongarm-*-kaos*, vax-*-bsd*, vax-*-sysv*,
4412 vax-*-ultrix*, xscale-*-elf, xscale-*-coff,
4413 i[34567]86-*-linux*aout*, i[34567]86-*-linux*libc1): Remove.
4414 Make code for Solaris 7 and greater unconditional for Solaris.
4415 (ep9312-*-*, parisc1*, m680[012]0-*-*, parisc*-*-*, mt-*-*):
4416 Remove --with-* handling.
4417 * config/rs6000/sysv4.h (-mwindiss): Remove from all specs.
4418 (LIB_WINDISS_SPEC, CPP_OS_WINDISS_SPEC, STARTFILE_WINDISS_SPEC,
4419 ENDFILE_WINDISS_SPEC, LINK_START_WINDISS_SPEC,
4420 LINK_OS_WINDISS_SPEC): Remove.
4421 * config/rs6000/sysv4.opt (mwindiss): Remove.
4422 * configure.ac (strongarm*-*-*, xscale*-*-*): Remove.
4423 * configure: Regenerate.
4424 * doc/cpp.texi: Don't mention BeOS.
4425 * doc/extend.texi (interrupt): Don't mention MS1.
4426 * doc/install.texi: (i386-@var{any}-sysv, m68k-bull-sysv,
4427 m68k-hp-hpux, m68000-hp-hpux, m68000-att-sysv,
4428 alphaev5-cray-unicosmk*, xscale-*-*, i?86-*-linux*aout,
4429 i?86-*-sco3.2v5*, i?86-*-udk, m68k-hp-hpux, powerpc-*-sysv4,
4430 powerpc-*-sysv4, powerpcle-*-sysv4, *-*-sysv*, vax-dec-ultrix):
4432 * doc/invoke.texi (MT Options): Remove.
4433 (-mwindiss): Remove.
4434 (CRIS Options): Remove cris-axis-aout references.
4435 (HPPA Options): Don't mention hppa1.1-*-pro.
4436 * doc/md.texi: (MorphoTech family): Remove.
4437 * libgcc2.c: Don't handle UWIN.
4438 * config/alpha/t-unicosmk: Remove.
4439 * config/alpha/unicosmk.h: Remove.
4440 * config/arm/kaos-arm.h: Remove.
4441 * config/arm/kaos-strongarm.h: Remove.
4442 * config/arm/strongarm-coff.h: Remove.
4443 * config/arm/strongarm-elf.h: Remove.
4444 * config/arm/strongarm-pe.h: Remove.
4445 * config/arm/t-strongarm-pe: Remove.
4446 * config/arm/t-xscale-coff: Remove.
4447 * config/arm/t-xscale-elf: Remove.
4448 * config/arm/xscale-coff.h: Remove.
4449 * config/arm/xscale-elf.h: Remove.
4450 * config/chorus.h: Remove.
4451 * config/cris/aout.h: Remove.
4452 * config/cris/aout.opt: Remove.
4453 * config/cris/t-aout: Remove.
4454 * config/i386/beos-elf.h: Remove.
4455 * config/i386/kaos-i386.h: Remove.
4456 * config/i386/ptx4-i.h: Remove.
4457 * config/i386/sco5.h: Remove.
4458 * config/i386/sco5.opt: Remove.
4459 * config/i386/sysv4-cpp.h: Remove.
4460 * config/i386/sysv5.h: Remove.
4461 * config/i386/t-beos: Remove.
4462 * config/i386/t-sco5: Remove.
4463 * config/i386/t-uwin: Remove.
4464 * config/i386/uwin.asm: Remove.
4465 * config/i386/uwin.h: Remove.
4466 * config/kaos.h: Remove.
4467 * config/mips/windiss.h: Remove.
4468 * config/mt: Remove directory.
4469 * config/pa/pa-osf.h: Remove.
4470 * config/pa/pa-pro-end.h: Remove.
4471 * config/pa/t-pro: Remove.
4472 * config/ptx4.h: Remove.
4473 * config/rs6000/beos.h: Remove.
4474 * config/rs6000/kaos-ppc.h: Remove.
4475 * config/rs6000/t-beos: Remove.
4476 * config/rs6000/windiss.h: Remove.
4477 * config/sh/kaos-sh.h: Remove.
4478 * config/sol2-6.h: Remove.
4479 * config/sparc/sol26-sld.h: Remove.
4480 * config/sparc/sysv4-only.h: Remove.
4481 * config/vax/bsd.h: Remove.
4482 * config/vax/t-memfuncs: Remove.
4483 * config/vax/ultrix.h: Remove.
4484 * config/vax/vaxv.h: Remove.
4485 * config/windiss.h: Remove.
4487 2008-06-06 Uros Bizjak <ubizjak@gmail.com>
4489 PR rtl-optimization/36438
4490 * cse.c (fold_rtx) [ASHIFT, LSHIFTRT, ASHIFTRT]: Break out early
4491 for vector shifts with constant scalar shift operands.
4493 2008-06-06 Sandip Matte <sandip@rmicorp.com>
4495 * doc/invoke.texi: Document -march=xlr.
4496 * config/mips/xlr.md: New file.
4497 * config/mips/mips.md: Include it.
4499 * config/mips/mips.h (PROCESSOR_XLR): New processor_type.
4500 * config/mips/mips.c (mips_cpu_info_table): Add an XLR entry.
4501 (mips_rtx_cost_data): Likewise.
4503 2008-06-06 Nathan Froyd <froydnj@codesourcery.com>
4505 * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Remove
4506 PRE_INC and PRE_DEC cases.
4508 2008-06-06 Jakub Jelinek <jakub@redhat.com>
4510 PR rtl-optimization/36419
4511 * except.c (expand_resx_expr): Call do_pending_stack_adjust () before
4512 the emitting jump insn.
4515 * gimplify.c (gimplify_expr) <case TRUTH_NOT_EXPR>: If *expr_p type
4516 is not bool, boolify the whole *expr_p and convert to the desired type.
4518 2008-06-06 Jakub Jelinek <jakub@redhat.com>
4520 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805.
4521 * langhooks.h (struct lang_hooks_for_decls): Add omp_finish_clause.
4522 Add omp_private_outer_ref hook, add another argument to
4523 omp_clause_default_ctor hook.
4524 * langhooks-def.h (LANG_HOOKS_OMP_FINISH_CLAUSE): Define.
4525 (LANG_HOOKS_OMP_PRIVATE_OUTER_REF): Define.
4526 (LANG_HOOKS_OMP_CLAUSE_DEFAULT_CTOR): Change to
4527 hook_tree_tree_tree_tree_null.
4528 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_FINISH_CLAUSE and
4529 LANG_HOOKS_OMP_PRIVATE_OUTER_REF.
4530 * hooks.c (hook_tree_tree_tree_tree_null): New function.
4531 * hooks.h (hook_tree_tree_tree_tree_null): New prototype.
4532 * tree.def (OMP_TASK): New tree code.
4533 * tree.h (OMP_TASK_COPYFN, OMP_TASK_ARG_SIZE, OMP_TASK_ARG_ALIGN,
4534 OMP_CLAUSE_PRIVATE_OUTER_REF, OMP_CLAUSE_LASTPRIVATE_STMT,
4535 OMP_CLAUSE_COLLAPSE_ITERVAR, OMP_CLAUSE_COLLAPSE_COUNT,
4536 OMP_TASKREG_CHECK, OMP_TASKREG_BODY, OMP_TASKREG_CLAUSES,
4537 OMP_TASKREG_FN, OMP_TASKREG_DATA_ARG, OMP_TASK_BODY,
4538 OMP_TASK_CLAUSES, OMP_TASK_FN, OMP_TASK_DATA_ARG,
4539 OMP_CLAUSE_COLLAPSE_EXPR): Define.
4540 (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
4541 (OMP_DIRECTIVE_P): Add OMP_TASK.
4542 (OMP_CLAUSE_COLLAPSE, OMP_CLAUSE_UNTIED): New clause codes.
4543 (OMP_CLAUSE_SCHEDULE_AUTO): New schedule kind.
4544 * tree.c (omp_clause_code_name): Add OMP_CLAUSE_COLLAPSE
4545 and OMP_CLAUSE_UNTIED entries.
4546 (omp_clause_num_ops): Likewise. Increase OMP_CLAUSE_LASTPRIVATE
4548 (walk_tree_1): Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
4549 Walk OMP_CLAUSE_LASTPRIVATE_STMT.
4550 * tree-pretty-print.c (dump_omp_clause): Handle
4551 OMP_CLAUSE_SCHEDULE_AUTO, OMP_CLAUSE_UNTIED, OMP_CLAUSE_COLLAPSE,
4552 OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
4553 (dump_generic_node): Handle OMP_TASK and collapsed OMP_FOR loops.
4554 * c-omp.c (c_finish_omp_for): Allow pointer iterators. Remove
4555 warning about unsigned iterators. Change decl/init/cond/incr
4556 arguments to TREE_VECs, check arguments for all collapsed loops.
4557 (c_finish_omp_taskwait): New function.
4558 (c_split_parallel_clauses): Put OMP_CLAUSE_COLLAPSE clause to
4560 * c-parser.c (c_parser_omp_for_loop): Parse collapsed loops. Call
4561 default_function_array_conversion on init. Add par_clauses argument.
4562 If decl is present in parallel's lastprivate clause, change it to
4563 shared and add lastprivate clause for decl to OMP_FOR_CLAUSES.
4564 Add clauses argument, on success set OMP_FOR_CLAUSES to it. Look up
4565 collapse count in clauses.
4566 (c_parser_omp_for, c_parser_omp_parallel): Adjust
4567 c_parser_omp_for_loop callers.
4568 (OMP_FOR_CLAUSE_MASK): Add 1 << PRAGMA_OMP_CLAUSE_COLLAPSE.
4569 (c_parser_pragma): Handle PRAGMA_OMP_TASKWAIT.
4570 (c_parser_omp_clause_name): Handle collapse and untied clauses.
4571 (c_parser_omp_clause_collapse, c_parser_omp_clause_untied): New
4573 (c_parser_omp_clause_schedule): Handle schedule(auto).
4574 Include correct location in the error message.
4575 (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_COLLAPSE
4576 and PRAGMA_OMP_CLAUSE_UNTIED.
4577 (OMP_TASK_CLAUSE_MASK): Define.
4578 (c_parser_omp_task, c_parser_omp_taskwait): New functions.
4579 (c_parser_omp_construct): Handle PRAGMA_OMP_TASK.
4580 * tree-nested.c (convert_nonlocal_omp_clauses,
4581 convert_local_omp_clauses): Handle OMP_CLAUSE_LASTPRIVATE_STMT,
4582 OMP_CLAUSE_REDUCTION_INIT, OMP_CLAUSE_REDUCTION_MERGE,
4583 OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
4584 Don't handle TREE_STATIC or DECL_EXTERNAL VAR_DECLs in
4586 (conver_nonlocal_reference, convert_local_reference,
4587 convert_call_expr): Handle OMP_TASK the same as OMP_PARALLEL. Use
4588 OMP_TASKREG_* macros rather than OMP_PARALLEL_*.
4589 (walk_omp_for): Adjust for OMP_FOR_{INIT,COND,INCR} changes.
4590 * tree-gimple.c (is_gimple_stmt): Handle OMP_TASK.
4591 * c-tree.h (c_begin_omp_task, c_finish_omp_task): New prototypes.
4592 * c-pragma.h (PRAGMA_OMP_TASK, PRAGMA_OMP_TASKWAIT): New.
4593 (PRAGMA_OMP_CLAUSE_COLLAPSE, PRAGMA_OMP_CLAUSE_UNTIED): New.
4594 * c-typeck.c (c_begin_omp_task, c_finish_omp_task): New functions.
4595 (c_finish_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
4597 * c-pragma.c (init_pragma): Init omp task and omp taskwait pragmas.
4598 * c-common.h (c_finish_omp_taskwait): New prototype.
4599 * gimple-low.c (lower_stmt): Handle OMP_TASK.
4600 * tree-parloops.c (create_parallel_loop): Create 1 entry
4601 vectors for OMP_FOR_{INIT,COND,INCR}.
4602 * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
4603 (make_edges): Handle OMP_TASK.
4604 * tree-ssa-operands.c (get_expr_operands): Handle collapsed OMP_FOR
4605 loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
4606 * tree-inline.c (estimate_num_insns_1): Handle OMP_TASK.
4607 * builtin-types.def (BT_PTR_ULONGLONG, BT_PTR_FN_VOID_PTR_PTR,
4608 BT_FN_BOOL_ULONGLONGPTR_ULONGLONGPTR,
4609 BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULLPTR_ULLPTR,
4610 BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULL_ULLPTR_ULLPTR,
4611 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): New.
4612 * omp-builtins.def (BUILT_IN_GOMP_TASK, BUILT_IN_GOMP_TASKWAIT,
4613 BUILT_IN_GOMP_LOOP_ULL_STATIC_START,
4614 BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_START,
4615 BUILT_IN_GOMP_LOOP_ULL_GUIDED_START,
4616 BUILT_IN_GOMP_LOOP_ULL_RUNTIME_START,
4617 BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_START,
4618 BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_START,
4619 BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_START,
4620 BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_START,
4621 BUILT_IN_GOMP_LOOP_ULL_STATIC_NEXT,
4622 BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_NEXT,
4623 BUILT_IN_GOMP_LOOP_ULL_GUIDED_NEXT,
4624 BUILT_IN_GOMP_LOOP_ULL_RUNTIME_NEXT,
4625 BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_NEXT,
4626 BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_NEXT,
4627 BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_NEXT,
4628 BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_NEXT): New builtins.
4629 * gimplify.c (gimplify_omp_for): Allow pointer type for decl,
4630 handle POINTER_PLUS_EXPR. If loop counter has been replaced and
4631 original iterator is present in lastprivate clause or if
4632 collapse > 1, set OMP_CLAUSE_LASTPRIVATE_STMT. Handle collapsed
4633 OMP_FOR loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
4634 (gimplify_expr): Handle OMP_SECTIONS_SWITCH and OMP_TASK.
4635 (enum gimplify_omp_var_data): Add GOVD_PRIVATE_OUTER_REF.
4636 (omp_notice_variable): Set GOVD_PRIVATE_OUTER_REF if needed,
4637 if it is set, lookup var in outer contexts too. Handle
4638 OMP_CLAUSE_DEFAULT_FIRSTPRIVATE. Handle vars that are supposed
4639 to be implicitly determined firstprivate for task regions.
4640 (gimplify_scan_omp_clauses): Set GOVD_PRIVATE_OUTER_REF if needed,
4641 if it is set, lookup var in outer contexts too. Set
4642 OMP_CLAUSE_PRIVATE_OUTER_REF if GOVD_PRIVATE_OUTER_REF is set.
4643 Handle OMP_CLAUSE_LASTPRIVATE_STMT, OMP_CLAUSE_COLLAPSE and
4644 OMP_CLAUSE_UNTIED. Take region_type as last argument
4645 instead of in_parallel and in_combined_parallel.
4646 (gimplify_omp_parallel, gimplify_omp_for, gimplify_omp_workshare):
4648 (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_PRIVATE_OUTER_REF if
4649 GOVD_PRIVATE_OUTER_REF is set. Call omp_finish_clause langhook.
4650 (new_omp_context): Set default_kind to
4651 OMP_CLAUSE_DEFAULT_UNSPECIFIED for OMP_TASK regions.
4652 (omp_region_type): New enum.
4653 (struct gimplify_omp_ctx): Remove is_parallel and is_combined_parallel
4654 fields, add region_type.
4655 (new_omp_context): Take region_type as argument instead of is_parallel
4656 and is_combined_parallel.
4657 (gimple_add_tmp_var, omp_firstprivatize_variable, omp_notice_variable,
4658 omp_is_private, omp_check_private): Adjust ctx->is_parallel and
4659 ctx->is_combined_parallel checks.
4660 (gimplify_omp_task): New function.
4661 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
4663 * omp-low.c (extract_omp_for_data): Use schedule(static)
4664 for schedule(auto). Handle pointer and unsigned iterators.
4665 Compute fd->iter_type. Handle POINTER_PLUS_EXPR increments.
4666 Add loops argument. Extract data for collapsed OMP_FOR loops.
4667 (expand_parallel_call): Assert sched_kind isn't auto,
4668 map runtime schedule to index 3.
4669 (struct omp_for_data_loop): New type.
4670 (struct omp_for_data): Remove v, n1, n2, step, cond_code fields.
4671 Add loop, loops, collapse and iter_type fields.
4672 (workshare_safe_to_combine_p): Disallow combined for if
4673 iter_type is unsigned long long. Don't combine collapse > 1 loops
4674 unless all bounds and steps are constant. Adjust extract_omp_for_data
4676 (expand_omp_for_generic): Handle pointer, unsigned and long long
4677 iterators. Handle collapsed OMP_FOR loops. Adjust
4678 for struct omp_for_data changes. If libgomp function doesn't return
4679 boolean_type_node, add comparison of the return value with 0.
4680 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk): Handle
4681 pointer, unsigned and long long iterators. Adjust for struct
4682 omp_for_data changes.
4683 (expand_omp_for): Assert sched_kind isn't auto, map runtime schedule
4684 to index 3. Use GOMP_loop_ull*{start,next} if iter_type is
4685 unsigned long long. Allocate loops array, pass it to
4686 extract_omp_for_data. For collapse > 1 loops use always
4687 expand_omp_for_generic.
4688 (omp_context): Add sfield_map and srecord_type fields.
4689 (is_task_ctx, lookup_sfield): New functions.
4690 (use_pointer_for_field): Use is_task_ctx helper. Change first
4691 argument's type from const_tree to tree. Clarify comment.
4692 In OMP_TASK disallow copy-in/out sharing.
4693 (build_sender_ref): Call lookup_sfield instead of lookup_field.
4694 (install_var_field): Add mask argument. Populate both record_type
4695 and srecord_type if needed.
4696 (delete_omp_context): Destroy sfield_map, clear DECL_ABSTRACT_ORIGIN
4698 (fixup_child_record_type): Also remap FIELD_DECL's DECL_SIZE{,_UNIT}
4699 and DECL_FIELD_OFFSET.
4700 (scan_sharing_clauses): Adjust install_var_field callers. For
4701 firstprivate clauses on explicit tasks allocate the var by value in
4702 record_type unconditionally, rather than by reference.
4703 Handle OMP_CLAUSE_PRIVATE_OUTER_REF. Scan OMP_CLAUSE_LASTPRIVATE_STMT.
4704 Use is_taskreg_ctx instead of is_parallel_ctx.
4705 Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
4706 (create_omp_child_function_name): Add task_copy argument, use
4707 *_omp_cpyfn* names if it is true.
4708 (create_omp_child_function): Add task_copy argument, if true create
4709 *_omp_cpyfn* helper function.
4710 (scan_omp_parallel): Adjust create_omp_child_function callers.
4711 Rename parallel_nesting_level to taskreg_nesting_level.
4712 (scan_omp_task): New function.
4713 (lower_rec_input_clauses): Don't run constructors for firstprivate
4714 explicit task vars which are initialized by *_omp_cpyfn*.
4715 Pass outer var ref to omp_clause_default_ctor hook if
4716 OMP_CLAUSE_PRIVATE_OUTER_REF or OMP_CLAUSE_LASTPRIVATE.
4717 Replace OMP_CLAUSE_REDUCTION_PLACEHOLDER decls in
4718 OMP_CLAUSE_REDUCTION_INIT.
4719 (lower_send_clauses): Clear DECL_ABSTRACT_ORIGIN if in task to
4720 avoid duplicate setting of fields. Handle
4721 OMP_CLAUSE_PRIVATE_OUTER_REF.
4722 (lower_send_shared_vars): Use srecord_type if non-NULL. Don't
4723 copy-out if TREE_READONLY, only copy-in.
4724 (expand_task_copyfn): New function.
4725 (expand_task_call): New function.
4726 (struct omp_taskcopy_context): New type.
4727 (task_copyfn_copy_decl, task_copyfn_remap_type, create_task_copyfn):
4729 (lower_omp_parallel): Rename to...
4730 (lower_omp_taskreg): ... this. Use OMP_TASKREG_* macros where needed.
4731 Call create_task_copyfn if srecord_type is needed. Adjust
4733 (task_shared_vars): New variable.
4734 (check_omp_nesting_restrictions): Warn if work-sharing,
4735 barrier, master or ordered region is closely nested inside OMP_TASK.
4736 Add warnings for barrier if closely nested inside of work-sharing,
4737 ordered, or master region.
4738 (scan_omp_1): Call check_omp_nesting_restrictions even for
4739 GOMP_barrier calls. Rename parallel_nesting_level to
4740 taskreg_nesting_level. Handle OMP_TASK.
4741 (lower_lastprivate_clauses): Even if some lastprivate is found on a
4742 work-sharing construct, continue looking for them on parent parallel
4744 (lower_omp_for_lastprivate): Add lastprivate clauses
4745 to the beginning of dlist rather than end. Adjust for struct
4746 omp_for_data changes.
4747 (lower_omp_for): Add rec input clauses before OMP_FOR_PRE_BODY,
4748 not after it. Handle collapsed OMP_FOR loops, adjust for
4749 OMP_FOR_{INIT,COND,INCR} changes, adjust extract_omp_for_data caller.
4750 (get_ws_args_for): Adjust extract_omp_for_data caller.
4751 (scan_omp_for): Handle collapsed OMP_FOR
4752 loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
4753 (lower_omp_single_simple): If libgomp function doesn't return
4754 boolean_type_node, add comparison of the return value with 0.
4755 (diagnose_sb_1, diagnose_sb_2): Handle collapsed OMP_FOR
4756 loops, adjust for OMP_FOR_{INIT,COND,INCR} changes. Handle OMP_TASK.
4757 (parallel_nesting_level): Rename to...
4758 (taskreg_nesting_level): ... this.
4759 (is_taskreg_ctx): New function.
4760 (build_outer_var_ref, omp_copy_decl): Use is_taskreg_ctx instead
4762 (execute_lower_omp): Rename parallel_nesting_level to
4763 taskreg_nesting_level.
4764 (expand_omp_parallel): Rename to...
4765 (expand_omp_taskreg): ... this. Use OMP_TASKREG_* macros where needed.
4766 Call omp_task_call for OMP_TASK regions.
4767 (expand_omp): Adjust caller, handle OMP_TASK.
4768 (lower_omp_1): Adjust lower_omp_taskreg caller, handle OMP_TASK.
4770 * bitmap.c (bitmap_default_obstack_depth): New variable.
4771 (bitmap_obstack_initialize, bitmap_obstack_release): Do nothing
4772 if argument is NULL and bitmap_default_obstack is already initialized.
4773 * ipa-struct-reorg.c (do_reorg_1): Call bitmap_obstack_release
4775 * matrix-reorg.c (matrix_reorg): Likewise.
4777 2008-06-06 Uros Bizjak <ubizjak@gmail.com>
4779 * config/i386/i386.md (*indirect_jump): Macroize using P
4780 mode iterator. Remove !TARGET_64BIT from insn constraints.
4781 (*tablejump_1): Ditto.
4782 (*indirect_jump_rex64): Remove insn pattern.
4783 (*tablejump_1_rex64): Ditto.
4784 (eh_return_<mode>): Macroize using P mode iterator from eh_return_di
4785 and eh_return_si insn patterns.
4787 2008-06-06 Richard Guenther <rguenther@suse.de>
4789 * tree-ssa-structalias.c (merge_smts_into): Remove.
4790 (find_what_p_points_to): Do not bother to compute the
4791 points-to set for pt_anything pointers.
4792 * tree-ssa-operands.c (get_addr_dereference_operands): No NMT
4793 for pt_anything pointers is ok.
4795 2008-06-06 Jan Hubicka <jh@suse.cz>
4797 * passes.c (execute_ipa_pass_list): Do not regenerate summaries.
4799 2008-06-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4801 * cgraph.c: Fix typos in comments.
4802 (cgraph_availability_names): Fix string typo.
4803 * fold-const.c: Fix typos in comments.
4804 (fold_binary): Fix typo in warning.
4805 * genautomata.c: Fix typos in comments.
4806 (check_presence_pattern_sets): Fix typo in local variable.
4807 (output_description): Fix typo in output.
4808 * ggc-zone.c (ggc_pch_finish): Fix typo in error message.
4809 * hwint.h: Likewise.
4810 * matrix-reorg.c (check_allocation_function): Likewise.
4811 * omega.c (smooth_weird_equations): Likewise.
4812 * auto-inc-dec.c: Fix typos in comments.
4813 * bb-reorder.c: Likewise.
4814 * builtins.c: Likewise.
4815 * c-common.c: Likewise.
4816 * c-cppbuiltin.c: Likewise.
4817 * c-parser.c: Likewise.
4818 * c-pretty-print.c: Likewise.
4819 * cfgcleanup.c: Likewise.
4820 * cfgexpand.c: Likewise.
4821 * cfghooks.c: Likewise.
4822 * cfglayout.c: Likewise.
4823 * cfgloopmanip.c: Likewise.
4824 * cgraphunit.c: Likewise.
4825 * coverage.c: Likewise.
4826 * dbxout.c: Likewise.
4827 * df-byte-scan.c: Likewise.
4828 * df-core.c: Likewise.
4829 * df-problems.c: Likewise.
4830 * df-scan.c: Likewise.
4832 * dominance.c: Likewise.
4833 * domwalk.c: Likewise.
4835 * dwarf2out.c: Likewise.
4836 * emit-rtl.c: Likewise.
4837 * et-forest.c: Likewise.
4838 * function.c: Likewise.
4839 * function.h: Likewise.
4841 * gcov-io.c: Likewise.
4844 * genattrtab.c: Likewise.
4845 * ggc-page.c: Likewise.
4846 * gimplify.c: Likewise.
4847 * gthr-lynx.h: Likewise.
4848 * haifa-sched.c: Likewise.
4849 * ipa-cp.c: Likewise.
4850 * ipa-inline.c: Likewise.
4851 * ipa-prop.h: Likewise.
4852 * ipa-pure-const.c: Likewise.
4853 * ipa-struct-reorg.c: Likewise.
4854 * ipa-struct-reorg.h: Likewise.
4855 * ipa-type-escape.c: Likewise.
4857 * loop-doloop.c: Likewise.
4858 * mips-tfile.c: Likewise.
4859 * mkmap-flat.awk: Likewise.
4860 * mkmap-symver.awk: Likewise.
4861 * modulo-sched.c: Likewise.
4862 * omp-low.c: Likewise.
4863 * optabs.c: Likewise.
4864 * optabs.h: Likewise.
4866 * passes.c: Likewise.
4867 * postreload-gcse.c: Likewise.
4868 * postreload.c: Likewise.
4869 * predict.c: Likewise.
4870 * pretty-print.h: Likewise.
4871 * profile.c: Likewise.
4872 * protoize.c: Likewise.
4873 * ra-conflict.c: Likewise.
4875 * recog.c: Likewise.
4876 * regclass.c: Likewise.
4878 * reload.c: Likewise.
4879 * rtl-error.c: Likewise.
4880 * rtlanal.c: Likewise.
4882 * sched-rgn.c: Likewise.
4885 * target.h: Likewise.
4886 * tree-dfa.c: Likewise.
4887 * tree-eh.c: Likewise.
4888 * tree-flow-inline.h: Likewise.
4889 * tree-inline.c: Likewise.
4890 * tree-into-ssa.c: Likewise.
4891 * tree-loop-distribution.c: Likewise.
4892 * tree-nested.c: Likewise.
4893 * tree-parloops.c: Likewise.
4894 * tree-pass.h: Likewise.
4895 * tree-pretty-print.c: Likewise.
4896 * tree-profile.c: Likewise.
4897 * tree-scalar-evolution.c: Likewise.
4898 * tree-sra.c: Likewise.
4899 * tree-ssa-alias-warnings.c: Likewise.
4900 * tree-ssa-ccp.c: Likewise.
4901 * tree-ssa-coalesce.c: Likewise.
4902 * tree-ssa-dom.c: Likewise.
4903 * tree-ssa-dse.c: Likewise.
4904 * tree-ssa-forwprop.c: Likewise.
4905 * tree-ssa-live.c: Likewise.
4906 * tree-ssa-live.h: Likewise.
4907 * tree-ssa-loop-im.c: Likewise.
4908 * tree-ssa-loop-ivopts.c: Likewise.
4909 * tree-ssa-loop-niter.c: Likewise.
4910 * tree-ssa-loop-prefetch.c: Likewise.
4911 * tree-ssa-phiopt.c: Likewise.
4912 * tree-ssa-phiprop.c: Likewise.
4913 * tree-ssa-sccvn.c: Likewise.
4914 * tree-ssa-ter.c: Likewise.
4915 * tree-ssa-threadupdate.c: Likewise.
4916 * tree-ssa.c: Likewise.
4917 * tree-vect-analyze.c: Likewise.
4918 * tree-vect-transform.c: Likewise.
4919 * tree-vectorizer.c: Likewise.
4920 * tree-vn.c: Likewise.
4921 * tree-vrp.c: Likewise.
4923 * tree.def: Likewise.
4925 * unwind-dw2-fde.c: Likewise.
4926 * unwind.inc: Likewise.
4927 * value-prof.c: Likewise.
4928 * vmsdbgout.c: Likewise.
4930 2008-06-05 David Edelsohn <edelsohn@gnu.org>
4932 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Do not
4933 always place FP constants in the TOC for TARGET_POWERPC64.
4934 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Same.
4936 2008-06-05 Joseph Myers <joseph@codesourcery.com>
4938 * config.gcc (powerpc-*-linux*spe*): Use t-dfprules.
4939 * config/rs6000/dfp.md (negdd2, absdd2, negtd2, abstd2): Do not
4940 enable for TARGET_E500_DOUBLE.
4941 (*movdd_softfloat32): Also enable for !TARGET_FPRS.
4942 * config/rs6000/rs6000.c (invalid_e500_subreg): Treat decimal
4943 floating-point modes like integer modes for E500 double.
4944 (rs6000_legitimate_offset_address_p): Likewise.
4945 (rs6000_legitimize_address): Likewise. Do not allow REG+REG
4946 addressing for DDmode for E500 double.
4947 (rs6000_hard_regno_nregs): Do not treat decimal floating-point
4948 modes as using 64-bits of registers for E500 double.
4949 (spe_build_register_parallel): Do not handle DDmode or TDmode.
4950 (rs6000_spe_function_arg): Do not handle DDmode or TDmode
4951 specially for E500 double.
4952 (function_arg): Do not call rs6000_spe_function_arg for DDmode or
4953 TDmode for E500 double.
4954 (rs6000_gimplify_va_arg): Only handle SDmode in registers
4955 specially if TARGET_HARD_FLOAT && TARGET_FPRS.
4956 (rs6000_split_multireg_move): Do not handle TDmode specially for
4958 (spe_func_has_64bit_regs_p): Do not treat DDmode or TDmode as
4959 using 64-bit registers for E500 double.
4960 (emit_frame_save): Do not handle DDmode specially for E500 double.
4961 (gen_frame_mem_offset): Likewise.
4962 (rs6000_function_value): Do not call spe_build_register_parallel
4963 for DDmode or TDmode.
4964 (rs6000_libcall_value): Likewise.
4965 * config/rs6000/rs6000.h (LOCAL_ALIGNMENT, MEMBER_TYPE_FORCES_BLK,
4966 DATA_ALIGNMENT, CLASS_MAX_NREGS): Do not handle DDmode specially
4969 2008-06-04 H.J. Lu <hongjiu.lu@intel.com>
4971 * config/i386/i386.c (setup_incoming_varargs_64): Fix a typo
4974 2008-06-04 Junjie Gu <jgu@tensilica.com>
4976 * config/xtensa/lib2funcs.S (__xtensa_nonlocal_goto): Use unsigned
4977 comparison for frame pointers.
4979 2008-06-04 Andy Hutchinson <hutchinsonandy@aim.com>
4982 * config/avr/avr.h (PUSH_ROUNDING): Remove.
4984 2008-06-04 Andy Hutchinson <hutchinsonandy@aim.com>
4987 * builtins.c (expand_builtin_signbit): Don't take lowpart when
4988 register is already smaller or equal to required mode.
4990 2008-06-04 Xinliang David Li <davidxl@google.com>
4992 * tree-call-cdce.c: New file.
4993 (cond_dead_built_in_calls): New static variable.
4994 (input_domain): New struct.
4995 (check_pow): New function.
4996 (check_builtin_call): Ditto.
4997 (check_target_format): Ditto.
4998 (is_call_dce_candidate): Ditto.
4999 (gen_one_condition): Ditto.
5000 (gen_conditions_for_domain): Ditto.
5001 (get_domain): Ditto.
5002 (gen_conditions_for_pow_cst_base): Ditto.
5003 (gen_conditions_for_pow_int_base): Ditto.
5004 (gen_conditions_for_pow): Ditto.
5005 (get_no_error_domain): Ditto.
5006 (gen_shrink_wrap_conditions): Ditto.
5007 (shrink_wrap_one_built_in_call): Ditto.
5008 (shink_wrap_conditional_dead_built_in_calls): Ditto.
5009 (tree_call_cdce): Ditto.
5010 (gate_call_cdce): Ditto.
5011 (pass_call_cdce): New gimple pass.
5012 * passes.c: (init_optimization_passes): New pass.
5013 * tree-pass.h: New pass declaration.
5014 * opts.c (decode_options): New flag setting.
5015 * common.opt: Add -ftree-builtin-call-dce flag.
5016 * Makefile.in: Add new source file.
5017 * tempvar.def: New tv_id.
5018 * doc/invoke.texi (-ftree-builtin-call-dce): New flag.
5020 2008-06-04 Richard Guenther <rguenther@suse.de>
5022 * tree-flow-inline.h (is_global_var): Do not check TREE_STATIC on MTAGs.
5023 (is_call_clobbered): Always check var_ann->call_clobbered.
5024 (mark_call_clobbered): Always set var_ann->call_clobbered.
5025 (clear_call_clobbered): Always clear var_ann->call_clobbered.
5026 * tree-ssa-alias.c (mark_non_addressable): Use clear_call_clobbered.
5027 (reset_alias_info): Clear call clobbering info on MTAGs and
5029 (set_pt_anything): Set pt_global_mem.
5030 (create_tag_raw): Adjust comment.
5031 (may_be_aliased): Do not check TREE_PUBLIC on MTAGs.
5033 2008-06-04 Joseph Myers <joseph@codesourcery.com>
5034 Maxim Kuvyrkov <maxim@codesourcery.com>
5036 * config/m68k/m68k.opt (mxgot): New option.
5037 * config/m68k/m68k.c (legitimize_pic_address): Handle -mxgot.
5038 (m68k_output_addr_const_extra): New.
5039 * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): New.
5040 * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Declare.
5041 * config/m68k/m68k.md (UNSPEC_GOTOFF): Define.
5042 * doc/invoke.texi (M680x0 Options): Document -mxgot.
5044 2008-06-04 Richard Guenther <rguenther@suse.de>
5046 * tree-ssa-structalias.c (handle_ptr_arith): Correctly handle
5047 negative or non-representable offsets.
5049 2008-06-03 H.J. Lu <hongjiu.lu@intel.com>
5051 * config/i386/i386.c (ix86_gen_leave): New.
5052 (ix86_gen_pop1): Likewise.
5053 (ix86_gen_add3): Likewise.
5054 (ix86_gen_sub3): Likewise.
5055 (ix86_gen_sub3_carry): Likewise.
5056 (ix86_gen_one_cmpl2): Likewise.
5057 (ix86_gen_monitor): Likewise.
5058 (override_options): Initialize ix86_gen_leave, ix86_gen_pop1,
5059 ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
5060 ix86_gen_one_cmpl2 and ix86_gen_monitor.
5061 (ix86_file_end): Use mov%z0 instead of mov{q}/mov{l}.
5062 (output_set_got): Use mov%z0, pop%z0 and add%z0 instead of
5063 mov{q}/mov{l}, pop{q}/pop{l} and add{q}/add{l}.
5064 (ix86_expand_epilogue): Updated.
5065 (print_operand): Handle integer register operand for 'z'.
5066 (ix86_expand_strlensi_unroll_1): Likewise.
5067 (ix86_expand_strlen): Likewise.
5068 (ix86_expand_builtin): Likewise.
5069 (x86_output_mi_thunk): Use mov%z1 and add%z1 instead of
5070 mov{q}/mov{l} and add{q}/add{l}.
5072 2008-06-03 Kai Tietz <kai.tietz@onevision.com>
5074 * config/i386/i386.md (P): New mode iterator.
5075 (SFmode push_operand splitter): Macroize DImode and SImode pushes
5076 using P mode iterator.
5077 (DFmode push_operand splitter): Ditto.
5078 (XFmode push_operand splitter): Ditto.
5079 (DFmode float_extend SFmode push_operand splitter): Ditto.
5080 (XFmode float_extend SFmode push_operand splitter): Do not generate
5081 SImode pushes for 64bit target. Macroize Dimode and SImode
5082 pushes using P mode iterator.
5083 (XFmode float_extend DFmode push_operand splitter): Ditto.
5085 2008-06-03 Kai Tietz <kai.tietz@onevision.com>
5087 * config/i386/i386-protos.h (ix86_reg_parm_stack_space): New.
5088 * config/i386/i386.h (ix86_reg_parm_stack_space): Removed prototype.
5089 * config/i386/i386.c (ix86_reg_parm_stack_space): Changed
5091 (ix86_call_abi_override): Remove check for call_used_regs.
5093 2008-06-03 Richard Guenther <rguenther@suse.de>
5095 * tree-ssa-structalias.c (find_func_aliases): Add constraints
5096 for the lhs of calls if the return type contains pointers.
5098 2008-06-03 Kai Tietz <kai.tietz@onevision.com>
5100 * doc/tm.texi (OVERRIDE_ABI_FORMAT): New.
5101 * doc/extend.texi (ms_abi,sysv_abi): New attribute description.
5102 * function.c (allocate_struct_function): Use of OVERRIDE_ABI_FORMAT.
5103 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Make use
5104 of cfun and DEFAULT_ABI to deceide abi mode.
5106 (REG_PARM_STACK_SPACE): Removed.
5107 (OUTGOING_REG_PARM_STACK_SPACE): Removed.
5108 (STACK_BOUNDARY): Use default target to deceide stack boundary.
5109 * config/i386/i386-protos.h (ix86_cfun_abi): New.
5110 (ix86_function_abi): Likewise.
5111 (ix86_function_type_abi): Likewise.
5112 (ix86_call_abi_override): Likewise.
5113 * confid/i386/i386.md (SSE_REGPARM_MAX): Replaced by abi
5114 specific define X86_64_SSE_REGPARM_MAX/X64_SSE_REGPARM_MAX.
5115 * config/i386/i386.c (override_options): Replace TARGET_64BIT_MS_ABI.
5116 (X86_64_VARARGS_SIZE): Replace REGPARM_MAX and SSE_REGPARM_MAX by abi
5118 (X86_64_REGPARM_MAX): New.
5119 (X86_64_SSE_REGPARM_MAX): New.
5120 (X64_REGPARM_MAX): New.
5121 (X64_SSE_REGPARM_MAX): New.
5122 (X86_32_REGPARM_MAX): New.
5123 (X86_32_SSE_REGPARM_MAX): New.
5124 (ix86_handle_cconv_attribute): Replace TARGET_64BIT_MS_ABI.
5125 (ix86_function_regparm): Handle user calling abi.
5126 (ix86_function_arg_regno_p): Replace TARGET_64BIT_MS_ABI
5127 by DEFAULT_ABI versus SYSV_ABI check.
5128 (ix86_reg_parm_stack_space): New.
5129 (ix86_function_type_abi): New.
5130 (ix86_call_abi_override): New.
5131 (ix86_function_abi): New.
5132 (ix86_cfun_abi): New.
5133 (init_cumulative_args): Call abi specific initialization.
5134 (function_arg_advance): Remove TARGET_64BIT_MS_ABI.
5135 (function_arg_64): Extend SSE_REGPARM_MAX check.
5136 (function_arg (): Remove TARGET_64BIT_MS_ABI.
5137 (ix86_pass_by_reference): Likewise.
5138 (ix86_function_value_regno_p): Likewise.
5139 (function_value_64): Replace REGPARM_MAX, and SSE_REGPARM_MAX.
5140 (ix86_function_value_1): Replace TARGET_64BIT_MS_ABI.
5141 (return_in_memory_ms_64): Replace TARGET_64BIT_MS_ABI.
5142 (ix86_build_builtin_va_list): Replace TARGET_64BIT_MS_ABI.
5143 (setup_incoming_varargs_64): Adjust regparm for call abi.
5144 (ix86_setup_incoming_varargs): Replace TARGET_64BIT_MS_ABI.
5145 (ix86_va_start): Likewise.
5146 (ix86_gimplify_va_arg): Likewise.
5147 (ix86_expand_prologue): Likewise.
5148 (output_pic_addr_const): Likewise.
5149 (ix86_init_machine_status): Initialize call_abi by DEFAULT_ABI.
5150 (x86_this_parameter): Replace TARGET_64BIT_MS_ABI.
5151 (x86_output_mi_thunk): Likewise.
5152 (x86_function_profiler): Likewise.
5153 * config/i386/i386.h (TARGET_64BIT_MS_ABI): Use ix64_cfun_abi.
5154 (SYSV_ABI, MS_ABI): New constants.
5156 (init_regs): Add prototype of function in regclass.c file.
5157 (OVERRIDE_ABI_FORMAT): New.
5158 (CONDITIONAL_REGISTER_USAGE): Remove TARGET_64BIT_MS_ABI part.
5159 (REG_PARM_STACK_SPACE): Use ix86_reg_parm_stack_space.
5160 (OUTGOING_REG_PARM_STACK_SPACE): New.
5161 (ix86_reg_parm_stack_space): New prototype.
5162 (CUMULATIVE_ARGS): Add call_abi member.
5163 (machine_function): Add call_abi member.
5164 * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Replace
5165 TARGET_64BIT_MS_ABI by DEFAULT_ABI compare to MS_ABI.
5167 2008-06-02 Andy Hutchinson <hutchinsonandy@aim.com>
5170 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Redefine.
5171 (avr_builtin_setjmp_frame_value): New function.
5172 * config/avr/avr.md (nonlocal_goto_receiver): Define.
5173 (nonlocal_goto): Define.
5175 2008-06-02 Richard Sandiford <rdsandiford@googlemail.com>
5177 * config/mips/mips.c (mips_emit_loadgp): Return early if
5178 there is nothing do to, otherwise emit a blockage if
5179 !TARGET_EXPLICIT_RELOCS || crtl->profile.
5180 * config/mips/mips.md (loadgp_blockage): Use SI rather than DI.
5182 2008-06-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5184 * configure.ac: Drop unneeded backslash ending up in config.in.
5185 * acinclude.m4: Likewise.
5186 * config.in: Regenerate.
5188 2008-05-26 Jan Hubicka <jh@suse.cz>
5190 * predict.c (maybe_hot_frequency_p): Break out of...
5191 (maybe_hot_bb_p): ... here.
5192 (maybe_hot_edge_p): New.
5193 * tree-ssa-coalesce.c (coalesce_cost_edge): Compute cost based on edge.
5194 * basic-block.h (maybe_hot_edge_p): Declare.
5196 2008-05-31 Uros Bizjak <ubizjak@gmail.com>
5198 * config/i386/i386.md (*cmpfp_<mode>): Enable for optimize_size.
5199 (*cmpfp_<mode>_cc): Ditto.
5200 (*fp_jcc_8<mode>_387): Ditto.
5201 (*fop_<MODEF:mode>_2_i387): Ditto.
5202 (*fop_<MODEF:mode>_3_i387): Ditto.
5203 (*fop_xf_2_i387): Ditto.
5204 (*fop_xf_3_i387): Ditto.
5206 2008-06-02 Tomas Bily <tbily@suse.cz>
5208 * tree-ssa-ifcombine.c (get_name_for_bit_test): Use CONVERT_EXPR_P.
5210 2008-06-01 Richard Sandiford <rdsandiford@googlemail.com>
5212 * config/mips/mips.c (mips_valid_offset_p): New function.
5213 (mips_valid_lo_sum_p): Likewise.
5214 (mips_classify_address): Use them.
5215 (mips_force_address): New function.
5216 (mips_legitimize_address): Use it.
5217 * config/mips/mips.md (MOVE128): New mode iterator.
5218 (movtf): Require TARGET_64BIT. Remove empty strings.
5219 (*movtf_internal): Rename to...
5220 (*movtf): ...this and require !TARGET_MIPS16. Use "m" instead
5221 of "R" and use {,fp}{load,store} attributes instead of "multi".
5222 Use a separate define_split.
5223 (*movtf_mips16): New pattern.
5225 2008-06-01 Richard Sandiford <rdsandiford@googlemail.com>
5227 * config/mips/mips-protos.h (mips_expand_before_return): Declare.
5228 * config/mips/mips.c (mips_expand_before_return): New function.
5229 (mips_expand_epilogue): Call it.
5230 * config/mips/mips.md (return): Turn into a define_expand.
5231 (*return): New insn.
5233 2008-06-01 Richard Sandiford <rdsandiford@googlemail.com>
5235 * rtl.h (emit_clobber, gen_clobber, emit_use, gen_use): Declare.
5236 * emit-rtl.c (emit_clobber, gen_clobber, emit_use, gen_use): New
5237 functions. Do not emit uses and clobbers of CONCATs; individually
5238 use and clobber their operands.
5239 * builtins.c (expand_builtin_setjmp_receiver): Use emit_clobber,
5240 gen_clobber, emit_use and gen_use.
5241 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
5242 (expand_builtin_return): Likewise.
5243 * cfgbuild.c (count_basic_blocks): Likewise.
5244 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
5245 * explow.c (emit_stack_restore): Likewise.
5246 * expmed.c (extract_bit_field_1): Likewise.
5247 * expr.c (convert_move, emit_move_complex_parts): Likewise.
5248 (emit_move_multi_word, store_constructor): Likewise.
5249 * function.c (do_clobber_return_reg, do_use_return_reg): Likewise.
5250 (thread_prologue_and_epilogue_insns): Likewise.
5251 * lower-subreg.c (resolve_simple_move): Likewise.
5252 * optabs.c (widen_operand, expand_binop): Likewise.
5253 (expand_doubleword_bswap, emit_no_conflict_block): Likewise.
5254 * reload.c (find_reloads): Likewise.
5255 * reload1.c (eliminate_regs_in_insn): Likewise.
5256 * stmt.c (expand_nl_goto_receiver): Likewise.
5257 * config/alpha/alpha.md (builtin_longjmp): Likewise.
5258 * config/arc/arc.md (*movdi_insn, *movdf_insn): Likewise.
5259 * config/arm/arm.c (arm_load_pic_register): Likewise.
5260 (thumb1_expand_epilogue, thumb_set_return_address): Likewise.
5261 * config/arm/arm.md (untyped_return): Likewise.
5262 * config/arm/linux-elf.h (PROFILE_HOOK): Likewise.
5263 * config/avr/avr.c (expand_prologue): Likewise.
5264 * config/bfin/bfin.c (do_unlink): Likewise.
5265 * config/bfin/bfin.md (<optab>di3, adddi3, subdi3): Likewise.
5266 * config/cris/cris.c (cris_expand_prologue): Likewise.
5267 * config/darwin.c (machopic_indirect_data_reference): Likewise.
5268 (machopic_legitimize_pic_address): Likewise.
5269 * config/frv/frv.c (frv_frame_access, frv_expand_epilogue): Likewise.
5270 (frv_ifcvt_modify_insn, frv_expand_mdpackh_builtin): Likewise.
5271 * config/i386/i386.c (ix86_expand_vector_move_misalign): Likewise.
5272 (ix86_expand_convert_uns_didf_sse): Likewise.
5273 (ix86_expand_vector_init_general): Likewise.
5274 * config/ia64/ia64.md (eh_epilogue): Likewise.
5275 * config/iq2000/iq2000.c (iq2000_expand_epilogue): Likewise.
5276 * config/m32c/m32c.c (m32c_emit_eh_epilogue): Likewise.
5277 * config/m32r/m32r.c (m32r_reload_lr): Likewise.
5278 (config/iq2000/iq2000.c): Likewise.
5279 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
5280 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
5281 (builtin_longjmp): Likewise.
5282 * config/mn10300/mn10300.md (call, call_value): Likewise.
5283 * config/pa/pa.md (nonlocal_goto, nonlocal_longjmp): Likewise.
5284 * config/pdp11/pdp11.md (abshi2): Likewise.
5285 * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
5286 * config/s390/s390.c (s390_emit_prologue): Likewise.
5287 * config/s390/s390.md (movmem_long, setmem_long): Likewise.
5288 (cmpmem_long, extendsidi2, zero_extendsidi2, udivmoddi4): Likewise.
5289 (builtin_setjmp_receiver, restore_stack_nonlocal): Likewise.
5290 * config/sh/sh.c (prepare_move_operands): Likewise.
5291 (output_stack_adjust, sh_expand_epilogue): Likewise.
5292 (sh_set_return_address, sh_expand_t_scc): Likewise.
5293 * config/sparc/sparc.c (load_pic_register): Likewise.
5294 * config/sparc/sparc.md (untyped_return, nonlocal_goto): Likewise.
5295 * config/spu/spu.c (spu_expand_epilogue): Likewise.
5296 * config/v850/v850.c (expand_epilogue): Likewise.
5298 2008-05-31 Anatoly Sokolov <aesok@post.ru>
5300 * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): New constants.
5301 (UNSPECV_WRITE_SP_IRQ_OFF): (Ditto.).
5302 (movhi_sp_r_irq_off, movhi_sp_r_irq_on): New insn.
5303 * config/avr/avr.c (expand_prologue, expand_epilogue): Use
5304 movhi_sp_r_irq_off and movhi_sp_r_irq_on insns for writing to the
5305 stack pointer register.
5306 (output_movhi): Remove code for interrupt specific writing to the
5307 stack pointer register.
5309 2008-05-31 Richard Guenther <rguenther@suse.de>
5311 PR tree-optimization/34244
5312 * fold-const.c (tree_expr_nonnegative_warnv_p): Do not ask VRP.
5313 (tree_expr_nonzero_warnv_p): Likewise.
5314 * tree-vrp.c (vrp_expr_computes_nonnegative): Call
5315 ssa_name_nonnegative_p.
5316 (vrp_expr_computes_nonzero): Call ssa_name_nonzero_p.
5317 (extract_range_from_unary_expr): Use vrp_expr_computes_nonzero,
5318 not tree_expr_nonzero_warnv_p.
5320 PR tree-optimization/36262
5322 2007-11-29 Zdenek Dvorak <ook@ucw.cz>
5324 PR tree-optimization/34244
5325 * tree-vrp.c (adjust_range_with_scev): Clear scev cache.
5326 (record_numbers_of_iterations): New function.
5327 (execute_vrp): Cache the numbers of iterations of loops.
5328 * tree-scalar-evolution.c (scev_reset_except_niters):
5330 (scev_reset): Use scev_reset_except_niters.
5331 * tree-scalar-evolution.h (scev_reset_except_niters): Declare.
5333 2008-05-31 Bernd Schmidt <bernd.schmidt@analog.com>
5335 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
5336 __WORKAROUND_RETS when appropriate.
5338 2008-05-31 Uros Bizjak <ubizjak@gmail.com>
5340 * config/i386/i386.md (*fop_<mode>_comm_mixed): Macroize from
5341 *fop_sf_comm_mixed and *fop_df_comm_mixed insn patterns using MODEF
5343 (*fop_<mode>_comm_sse): Macroize from *fop_sf_comm_sse and
5344 *fop_df_comm_sse insn patterns using MODEF mode iterator.
5345 (*fop_<mode>_comm_i387): Macroize from *fop_sf_comm_i387 and
5346 *fop_df_comm_i387 insn patterns using MODEF mode iterator.
5347 (*fop_<mode>_1_mixed): Macroize from *fop_sf_1_mixed and
5348 *fop_df_1_mixed insn patterns using MODEF mode iterator.
5349 (*fop_<mode>_1_sse): Macroize from *fop_sf_1_sse and
5350 *fop_df_1_sse insn patterns using MODEF mode iterator.
5351 (*fop_<mode>_1_i387): Macroize from *fop_sf_1_i387 and
5352 *fop_df_1_i387 insn patterns using MODEF mode iterator.
5353 (*fop_<MODEF:mode>_2_i387): Macroize from *fop_sf_2<mode>_i387 and
5354 *fop_df_2<mode>_i387 insn patterns using MODEF mode iterator.
5355 (*fop_<MODEF:mode>_3_i387): Macroize from *fop_sf_3<mode>_i387 and
5356 *fop_df_3<mode>_i387 insn patterns using MODEF mode iterator.
5357 (*fop_xf_2_i387): Rename from *fop_xf_2<mode>_i387.
5358 (*fop_xf_3_i387): Rename from *fop_xf_3<mode>_i387.
5359 (*fop_xf_4_i387): Use <MODE> for mode attribute.
5360 (*fop_xf_5_i387): Ditto.
5361 (*fop_xf_6_i387): Ditto.
5363 2008-05-30 Richard Guenther <rguenther@suse.de>
5365 * builtins.c (build_string_literal): Avoid generating
5366 a non-gimple_val result.
5368 2008-05-30 DJ Delorie <dj@redhat.com>
5370 * exec-tool.in: Use an environment variable (private) instead of a
5371 file (shared) as a semaphore, so as to not break parallel builds.
5373 2008-05-30 Steven Bosscher <stevenb.gcc@gmail.com>
5375 * optabs.c (maybe_encapsulate_block): Remove.
5376 (emit_libcall_block): Adjust accordingly.
5377 * optabs.h (maybe_encapsulate_block): Remove prototype.
5379 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address):
5380 Don't use maybe_encapsulate_block.
5382 2008-05-30 Steven Bosscher <stevenb.gcc@gmail.com>
5384 * config/rs6000/rs6000.c (rs6000_legitimize_address,
5385 rs6000_legitimize_reload_address, rs6000_emit_move): Make sure an
5386 rtx is a SYMBOL_REF before calling get_pool_constant.
5388 2008-05-30 Eric Botcazou <ebotcazou@adacore.com>
5390 * fold-const.c (fold_unary) <CASE_CONVERT>: Add ??? comment.
5392 2008-05-30 Danny Smith <dannysmith@users.sourceforge.net>
5394 * incpath.c: Use HOST_LACKS_INODE_NUMBERS conditional
5395 rather than OS names to choose INO_T_EQ definition.
5396 (DIRS_EQ) [!INO_T_EQ]: Don't worry about case in comparison.
5397 (add_path) [!INO_T_EQ]: Use lrealpath to fill canonical_name field.
5399 2008-05-29 Daniel Franke <franke.daniel@gmail.com>
5402 * config/darwin-f.c: New.
5403 * config/t-darwin: Added rule to build darwin-f.o.
5404 * config.gcc: Defined new variable, fortran_target_objs.
5405 (*-*-darwin*): Set fortran_target_objs.
5406 * Makefile.in: Defined new variable FORTRAN_TARGET_OBJS.
5407 * configure.ac: Substitute fortran_target_objs, set FORTRAN_TARGET_OBJS.
5408 * configure: Regenerated.
5410 2008-05-29 H.J. Lu <hongjiu.lu@intel.com>
5413 * config/i386/i386.c (ix86_function_arg_boundary): Convert to
5414 canonical type if needed.
5416 2008-05-29 Eric Botcazou <ebotcazou@adacore.com>
5418 * tree-nested.c (check_for_nested_with_variably_modified): Fix typo.
5420 2008-05-29 Richard Guenther <rguenther@suse.de>
5422 PR tree-optimization/36343
5423 PR tree-optimization/36346
5424 PR tree-optimization/36347
5425 * tree-flow.h (clobber_what_p_points_to): Declare.
5426 * tree-ssa-structalias.c (set_uids_in_ptset): Whether the
5427 pointed-to variable is dereferenced is irrelevant to whether
5428 the pointer can access the pointed-to variable.
5429 (clobber_what_p_points_to): New function.
5430 * tree-ssa-alias.c (set_initial_properties): Use it.
5431 * tree-ssa.c (verify_flow_sensitive_alias_info): Adjust
5432 call clobber check for NMTs.
5434 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
5436 * value-prof.c (tree_ic_transform): Use HOST_WIDEST_INT_PRINT_DEC
5437 for printing gcov_type.
5439 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
5441 * tree-ssa-propagate.c (set_rhs): Preserve the histogram
5442 and the eh region information.
5443 * value-prof.c (gimple_move_stmt_histograms): New function.
5444 * value-prof.h (gimple_move_stmt_histograms): New function declaration.
5446 2008-05-28 Andreas Tobler <a.tobler@schweiz.org>
5448 * config/pa/pa.md: Remove extern frame_pointer_needed declaration.
5450 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
5452 * value-prof.c (tree_ic_transform): Print counts.
5453 * tree-profile.c (tree_gen_ic_func_profiler):
5454 Clear __gcov_indreict_call_callee variable to avoid misattribution
5457 2008-05-28 Rafael Espindola <espindola@google.com>
5459 * see.c (see_def_extension_not_merged): Use copy_rtx_if_shared to avoid
5462 2008-05-28 Richard Guenther <rguenther@suse.de>
5464 PR tree-optimization/36339
5465 * tree-ssa-alias.c (set_initial_properties): Move pt_anything
5466 and clobbering code out of the loop.
5468 2008-05-28 Andreas Krebbel <krebbel1@de.ibm.com>
5470 * config/s390/constraints.md ('b', 'C', 'D', 'e'): New constraint
5473 * config/s390/s390.c (s390_compare_and_branch_condition_mask,
5474 s390_contiguous_bitmask_p, s390_symref_operand_p,
5475 s390_check_symref_alignment, s390_reload_larl_operand,
5476 s390_reload_symref_address): New functions.
5477 (s390_branch_condition_mnemonic): Support compare and branch
5479 (s390_mem_constraint): Avoid symrefs to accepted by the 'T'
5480 and 'W' constraints.
5481 (s390_secondary_reload): Add secondary reloads for unaligned
5482 symbol refs or symbol refs to floating point or QI/TI mode
5484 (legitimate_address_p): Accept symbol references as addresses.
5485 (s390_expand_insv): Use rotate and insert selected bits
5486 instruction for insv when building for z10.
5487 (print_operand_address): Handle symbol ref addresses.
5488 (print_operand): Output modifier 'c' added for signed byte values.
5489 (s390_encode_section_info): Mark symbol refs with
5490 SYMBOL_FLAG_NOT_NATURALLY_ALIGNED if appropriate.
5492 * config/s390/s390.md (SIL,RRS,RIS): New instruction formats added.
5493 (length attribute): RRF, RRR have 4 byte length.
5494 (FPALL, INTALL): New mode iterators added.
5495 (*tstdi_sign, *cmpdi_ccs_sign, *cmpsi_ccs_sign,
5496 *cmp<mode>_ccs, *cmpdi_ccu_zero, *cmpdi_ccu, *cmpsi_ccu, *cmphi_ccu,
5497 *movdi_64, *movsi_zarch, *movhi, movmem<mode>, *movmem_short,
5498 *extendsidi2, *extendhidi2_extimm, *extendhisi2_extimm,
5499 *zero_extendsidi2, adddi3, *adddi3_31z, *adddi3_31, addsi3,
5500 *add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry2_cc,
5501 *add<mode>3_cc, *add<mode>3_imm_cc, *muldi3_sign, muldi3,
5502 *mulsi3_sign, mulsi3, mulsidi3): Patterns enhanced with z10
5504 (*cmphi_ccs_z10, *cmpdi_ccs_signhi_rl, *cmpsi_ccu_zerohi_rlsi,
5505 *cmp<GPR:mode>_ccu_zerohi_rldi, *cmp_and_br_signed_<mode>,
5506 *cmp_and_br_unsigned_<mode>, reload<INTALL:mode><P:mode>_tomem_z10,
5507 reload<INTALL:mode><P:mode>_toreg_z10,
5508 reload<FPALL:mode><P:mode>_tomem_z10,
5509 reload<FPALL:mode><P:mode>_toreg_z10,
5510 reload<P:mode>_larl_odd_addend_z10, *execute_rl, *insv<mode>_z10,
5511 *insv<mode>_z10_noshift, *insv<mode>_or_z10_noshift,
5512 *zero_extendhi<mode>2_z10, *cmp_and_trap_signed_int<mode>,
5513 *cmp_and_trap_unsigned_int<mode>, prefetch): New pattern or expander
5515 (movmem, clrmem, cmpmem): New splitters added.
5517 * config/s390/predicates.md (larl_operand): Use
5518 SYMBOL_REF_FLAGS (op) & SYMBOL_FLAG_ALIGN1 replaced with
5519 SYMBOL_REF_ALIGN1_P.
5520 (s390_signed_integer_comparison,
5521 s390_unsigned_integer_comparison): New predicates.
5523 * config/s390/s390-protos.h (s390_check_symref_alignment,
5524 s390_contiguous_bitmask_p, s390_reload_larl_operand,
5525 s390_reload_symref_address,
5526 s390_compare_and_branch_condition_mask): Prototypes added.
5528 * config/s390/s390.h (TARGET_MEM_CONSTRAINT,
5529 SYMBOL_REF_ALIGN1_P, SYMBOL_FLAG_NOT_NATURALLY_ALIGNED,
5530 SYMBOL_REF_NOT_NATURALLY_ALIGNED_P): Macro definition added.
5532 2008-05-28 Andreas Krebbel <krebbel1@de.ibm.com>
5534 * config/s390/s390.c (z10_cost): New cost function for z10.
5535 (s390_handle_arch_option, override_options): Support -march=z10 switch.
5536 (s390_issue_rate): Adjust issue rate for z10.
5537 * config/s390/s390.h (processor_type): Add PROCESSOR_2097_Z10.
5538 (processor_flags): Add PF_Z10.
5539 (TARGET_CPU_Z10, TARGET_Z10): New macro definitions.
5540 * config/s390/s390.md (cpu, cpu_facility attributes): Add z10.
5541 * gcc/config.gcc: Add z10.
5543 2008-05-28 Richard Guenther <rguenther@suse.de>
5545 PR tree-optimization/36291
5546 * tree-flow. h (struct gimple_df): Remove var_anns member.
5547 * tree-flow-inline.h (gimple_var_anns): Remove.
5548 (var_ann): Simplify.
5549 * tree-dfa.c (create_var_ann): Simplify.
5550 (remove_referenced_var): Clear alias info from var_anns of globals.
5551 * tree-ssa.c (init_tree_ssa): Do not allocate var_anns.
5552 (delete_tree_ssa): Clear alias info from var_anns of globals.
5553 Do not free var_anns.
5554 (var_ann_eq): Remove.
5555 (var_ann_hash): Likewise.
5557 2008-05-28 Mark Shinwell <shinwell@codesourcery.com>
5559 * config/mips/mips.c (mips_cpu_info_table): Add loongson2e
5560 and loongson2f entries.
5561 (mips_rtx_cost_data): Add entries for Loongson-2E/2F.
5562 * config/mips/mips.h (processor_type): Add Loongson-2E
5563 and Loongson-2F entries.
5564 (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF): New.
5565 (MIPS_ISA_LEVEL_SPEC): Handle Loongson-2E/2F.
5566 * config/mips/mips.md (define_attr cpu): Add loongson2e and loongson2f.
5567 * doc/invoke.texi (MIPS Options): Document loongson2e
5568 and loongson2f processor names.
5570 2008-05-27 H.J. Lu <hongjiu.lu@intel.com>
5574 * config/i386/i386.c (ix86_function_arg_boundary): Use
5575 alignment of canonical type.
5576 (ix86_expand_vector_move): Check unaligned memory access for
5579 2008-05-27 H.J. Lu <hongjiu.lu@intel.com>
5581 * dwarf2out.c (current_fde): Change return type to dw_fde_ref.
5582 Moved to the front of file.
5584 2008-05-27 Xuepeng Guo <xuepeng.guo@intel.com>
5585 H.J. Lu <hongjiu.lu@intel.com>
5587 * dwarf2out.c (current_fde): New.
5589 (lookup_cfa:): Likewise.
5590 (dwarf2out_end_epilogue): Likewise.
5591 (dwarf2out_note_section_used): Likewise.
5593 2008-05-27 Michael Matz <matz@suse.de>
5596 * c.opt (Wenum-compare): New warning option.
5597 * doc/invoke.texi (Warning Options): Document -Wenum-compare.
5599 2008-05-27 Michael Matz <matz@suse.de>
5602 * tree-gimple.c (is_gimple_mem_rhs): Remove work-around for
5604 * tree-tailcall.c (find_tail_calls): Don't mark calls storing
5605 into memory as tail calls.
5607 2008-05-27 Richard Guenther <rguenther@suse.de>
5609 PR tree-optimization/36339
5610 * tree-ssa-alias.c (set_initial_properties): Escaped pt_anything
5611 pointers cause all addressable variables to be call clobbered.
5613 2008-05-27 Richard Guenther <rguenther@suse.de>
5615 PR tree-optimization/36245
5616 * tree-ssa-address.c (add_to_parts): Deal with non-pointer bases.
5618 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
5620 * config/s390/s390.md: Replace all occurences of the 'm'
5621 constraint with 'RT'.
5623 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
5625 * config/s390/s390.md ("cpu_facility", "enabled"): Attribute
5627 ("*movdi_64dfp", "*movdi_64extimm", "*movdi_64"): Merged into
5629 ("*anddi3_extimm", "*anddi3"): Merged into "*anddi3".
5630 ("*iordi3_extimm", "*iordi3"): Merged into "*iordi3".
5631 ("*xordi3_extimm", "*xordi3"): Merged into "*xordi3".
5633 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
5635 * reload.c: (find_reloads): Skip alternatives according to the
5636 "enabled" attribute. Constify the constraint variable.
5637 * recog.c (get_attr_enabled): Add default implementation.
5638 (extract_insn): Set the alternative_enabled_p array
5639 in the recog_data struct.
5640 (preprocess_constraints, constrain_operands): Skip
5641 alternatives according to the "enabled" attribute
5642 * recog.h (struct recog_data): New field alternative_enabled_p.
5643 (skip_alternative): New inline function.
5644 * regclass.c: (record_operand_costs): Check the "enabled" attribute.
5645 (record_reg_classes): Skip alternative according to the
5646 "enabled" attribute.
5648 * doc/md.texi: Add documention for the "enabled" attribute.
5650 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
5652 * defaults.h (TARGET_MEM_CONSTRAINT): New target macro added.
5653 * postreload.c (reload_cse_simplify_operands): Replace 'm'
5654 constraint with TARGET_MEM_CONSTRAINT.
5655 * recog.c (asm_operand_ok, preprocess_constraints,
5656 constrain_operands): Likewise.
5657 * regclass.c (record_reg_classes): Likewise.
5658 * reload.c (find_reloads, alternative_allows_const_pool_ref): Likewise.
5659 * reload1.c (maybe_fix_stack_asms): Likewise.
5660 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
5661 * recog.h: Adjust comment.
5662 * genpreds.c (generic_constraint_letters): Remove 'm' constraint.
5663 * genoutput.c (note_constraint): Don't emit error for 'm' constraint.
5664 * doc/md.texi: Add a note to description of 'm' constraint.
5665 * doc/tm.texi: Document the new TARGET_MEM_CONSTRAINT macro.
5667 2008-05-27 Eric Botcazou <ebotcazou@adacore.com>
5669 * tree-sra.c (sra_type_can_be_decomposed_p) <RECORD_TYPE>: Make sure
5670 that the bitfield is of integral type before testing its precision.
5672 2008-05-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
5673 Sa Liu <saliu@de.ibm.com>
5675 * config/spu/spu.c (spu_init_libfuncs): Add __multi3, __divti3,
5676 __modti3, __udivti3, __umodti3 and __udivmodti4.
5677 * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add files
5678 that implement TImode mul and div functions.
5679 * config/spu/multi3.c: New. Implement __multi3.
5680 * config/spu/divmodti4.c: New. Implement _udivmodti4 and others.
5681 * testsuite/gcc.target/spu/muldivti3.c: New. Test TImode mul and div
5684 2008-05-26 Steven Bosscher <stevenb.gcc@gmail.com>
5686 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Generate
5687 new tls_gd_* and tls_ld_* insns instead of an insn sequence.
5688 * config/rs6000/rs6000.md (TLSmode, tls_abi_suffix, tls_insn_suffix,
5689 tls_sysv_suffix): New mode and mode attribute iterators.
5690 (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64): Remove.
5691 (lts_gd_aix*, tls_gd_sysv*, tls_ld_aix*, tls_ld_sysv*): New patterns.
5692 (tls_dtprel_*, tls_dtprel_ha_*, tls_dtprel_lo_*, tls_got_dtprel_*,
5693 tls_tprel_*, tls_tprel_ha_*, tls_tprel_lo_*, tls_got_tprel_*,
5694 tls_tls_*): Merge 32 bit and 64 bit variants using aforementioned
5697 2008-05-26 Eric Botcazou <ebotcazou@adacore.com>
5699 PR tree-optimization/36329
5700 * tree.h (CALL_CANNOT_INLINE_P): Add access check.
5701 * tree-gimple.h (CALL_STMT_CANNOT_INLINE_P): New macro.
5702 * cgraphbuild.c (initialize_inline_failed): Use the latter
5703 macro in lieu of the former.
5704 * ipa-inline.c (cgraph_mark_inline): Likewise.
5705 (cgraph_decide_inlining_of_small_function): Likewise.
5706 (cgraph_decide_inlining): Likewise.
5707 (cgraph_decide_inlining_incrementally): Likewise.
5709 2008-05-26 Tristan Gingold <gingold@adacore.com>
5710 Anatoly Sokolov <aesok@post.ru>
5712 * config/avr/avr.md ("call_prologue_saves"): Use hi8(gs())/lo8(gs())
5713 instead of pm_lo8/pm_hi8 to makes this call working on avr6.
5714 * config/avr/avr.c (expand_prologue): Tune "call_prologue"
5715 optimization for 'avr6' architecture.
5717 2008-05-26 Andy Hutchinson <hutchinsonandy@aim.com>
5720 * config/avr/avr.md (*addhi3_zero_extend2): Remove.
5722 2008-05-26 Richard Guenther <rguenther@suse.de>
5724 * tree-ssa-sccvn.c (expr_has_constants): Declare.
5725 (visit_reference_op_load): Initialize VN_INFO->has_constants properly.
5727 2008-05-26 H.J. Lu <hongjiu.lu@intel.com>
5730 * caller-save.c (insert_restore): Verify alignment of spill space.
5731 (insert_save): Likewise.
5732 * cfgexpand.c (LOCAL_ALIGNMENT): Removed.
5733 * defaults.h (LOCAL_ALIGNMENT): New. Provide default.
5734 (STACK_SLOT_ALIGNMENT): Likewise.
5735 * function.c (LOCAL_ALIGNMENT): Removed.
5736 (get_stack_local_alignment): New.
5737 (assign_stack_local): Use it. Set alignment on stack slot.
5738 (assign_stack_temp_for_type): Use get_stack_local_alignment.
5739 * config/i386/i386.h (LOCAL_ALIGNMENT): Updated.
5740 (STACK_SLOT_ALIGNMENT): New.
5741 * config/i386/i386.c (ix86_local_alignment): Handle caller-save
5742 stack slot in XFmode.
5744 * doc/tm.texi (STACK_SLOT_ALIGNMENT): New.
5746 2008-05-26 Kai Tietz <kai.tietz@onevision.com>
5749 * config/i386/i386.md (allocate_stack_worker_64): Make sure
5750 argument operand in rax isn't removed.
5752 2008-05-26 Richard Guenther <rguenther@suse.de>
5755 * fold-const.c (extract_muldiv_1): Use TYPE_OVERFLOW_WRAPS,
5756 not TYPE_UNSIGNED. Use TYPE_PRECISION instead of GET_MODE_SIZE.
5758 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
5761 * c-cppbuiltin.c (define__GNUC__): Re-add definition of __GNUG__.
5763 2008-05-26 Dominique Dhumieres <dominiq@lps.ens.fr>
5765 * config/darwin-c.c: Include "incpath.h" instead of "c-incpath.h".
5766 * config/t-darwin: Use "incpath.h" instead of "c-incpath.h".
5768 2008-05-25 Eric Botcazou <ebotcazou@adacore.com>
5770 * tree-nested.c (convert_tramp_reference) <ADDR_EXPR>: Do not
5771 build a trampoline if we don't want one.
5772 * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Do not
5773 return zero for nested functions if we don't want a trampoline.
5775 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
5777 * doc/invoke.texi: Added f77, f77-cpp-input to list of file types.
5779 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
5782 * c.opt: Removed undocumented option '-lang-fortran'.
5783 * c-common.h: Removed global variable 'lang_fortran'.
5784 * c-opts.c (c_common_handle_option): Removed code to handle
5785 option '-lang-fortran'. Updated includes.
5786 * c-cppbuiltin.c (c_cpp_builtins): Removed conditional
5787 definition of '__GFORTRAN__'.
5788 (define__GNUC__): Reimplemented to use BASEVER and
5789 cpp_define_formatted.
5790 (builtin_define_with_value_n): Removed.
5791 * c-incpath.h: Renamed to ...
5792 * incpath.h: ... this.
5793 * c-incpath.c: Renamed to ...
5794 * incpath.c: ... this. Updated includes.
5795 * fix-header.c: Updated includes.
5796 * Makefile.in: Replaced c-incpath.[ch] by incpath.[ch].
5797 (c-cppbuiltin.o): Added dependency on and definition of BASEVER.
5798 (OBJ-archive): Added cppdefault.o, incpath.o and prefix.o.
5800 2008-05-25 Eric Botcazou <ebotcazou@adacore.com>
5802 * tree.h: Update the table of flags used on tree nodes.
5803 (TREE_NO_TRAMPOLINE): New accessor for static_flag.
5804 (SAVE_EXPR_RESOLVED_P): Use automatically-built access check.
5805 (FORCED_LABEL): Add access check.
5806 (CALL_EXPR_RETURN_SLOT_OPT): Likewise.
5807 (ASM_INPUT_P): Likewise.
5808 (ASM_VOLATILE_P): Likewise.
5809 (EH_FILTER_MUST_NOT_THROW): Access static_flag directly.
5810 (OMP_SECTION_LAST): Access private_flag directly.
5811 (OMP_RETURN_NOWAIT): Likewise.
5812 (OMP_PARALLEL_COMBINED): Likewise.
5813 (OMP_CLAUSE_PRIVATE_DEBUG): Access public_flag directly.
5814 (OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE): Likewise.
5815 * tree-ssa-propagate.c (STMT_IN_SSA_EDGE_WORKLIST): Access
5816 deprecated_flag directly.
5818 2008-05-25 H.J. Lu <hongjiu.lu@intel.com>
5820 * final.c (frame_pointer_needed): Removed.
5821 * flags.h (frame_pointer_needed): Likewise.
5823 * function.h (rtl_data): Add frame_pointer_needed.
5824 (frame_pointer_needed): New.
5826 2008-05-25 Arthur Loiret <arthur.loiret@u-psud.fr>
5828 * config.gcc (sh2[lbe]*-*-linux*): Allow target.
5830 2008-05-25 Steven Bosscher <stevenb.gcc@gmail.com>
5832 * gcse.c (hash_scan_set): Do not pick up a REG_EQUAL value if
5835 2008-05-25 Alan Modra <amodra@bigpond.net.au>
5837 * c-common.c (strip_array_types): Move function to..
5839 (get_inner_array_type): Delete.
5840 * c-common.h (strip_array_types): Move declaration to..
5842 (get_inner_array_type): Delete.
5843 * config/i386/i386.c (x86_field_alignment): Use strip_array_types.
5844 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
5845 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
5846 * config/pa/pa.c (emit_move_sequence): Likewise.
5848 2008-05-24 H.J. Lu <hongjiu.lu@intel.com>
5850 * config/i386/i386.md (*sse_prologue_save_insn): Set length
5853 2008-05-24 Andy Hutchinson <hutchinsonandy@aim.com>
5855 * function.c: Include target hook for nonlocal_goto frame value.
5857 2008-05-24 Richard Guenther <rguenther@suse.de>
5859 * tree-dfa.c (refs_may_alias_p): Re-instantiate case that a scalar
5860 variable can be only accessed through a pointer or a union.
5862 2008-05-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5864 * builtins.c (fold_builtin_fpclassify): Fix spelling of FP_INFINITE.
5865 * doc/extend.texi: Likewise.
5867 2008-05-23 DJ Delorie <dj@redhat.com>
5869 * config/m32c/jump.md (untyped_call): Add.
5871 * config/m32c/m32c.c (m32c_return_addr_rtx): Change pointer type
5873 (m32c_address_cost): Detail costs for indirect offsets.
5875 2008-05-23 Rafael Espindola <espindola@google.com>
5877 * see.c (see_get_extension_data): Don't use SUBREG_REG to test
5878 if a node is a SUBREG.
5879 (see_analyze_one_def): Don't use SUBREG_REG to test if a node
5882 2008-05-23 Paul Brook <paul@codesourcery.com>
5883 Carlos O'Donell <carlos@codesourcery.com>
5885 * doc/extend.texi: Clarify use of __attribute__((naked)).
5886 * doc/tm.texi: Document TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
5887 * target.h (gcc_target): Add allocate_stack_slots_for_args.
5888 * function.c (use_register_for_decl): Use
5889 targetm.calls.allocate_stack_slots_for_args.
5890 * target-def.h (TARGET_CALLS): Add TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
5891 * config/arm/arm.c (arm_allocate_stack_slots_for_args): New function.
5892 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
5894 2008-05-23 Eric Botcazou <ebotcazou@adacore.com>
5896 * expr.c (highest_pow2_factor) <BIT_AND_EXPR>: New case.
5898 2008-05-23 Steven Munroe <sjmunroe@us.ibm.com>
5900 * config/rs6000/darwin-ldouble.c (fmsub): Eliminate the full
5901 PACK/UNPACK between FP_SUB_Q and FD_TRUNC so that the result
5902 is only rounded once.
5904 2008-05-23 Richard Guenther <rguenther@suse.de>
5906 * tree-ssa-operands.c (mark_difference_for_renaming): Use bitmap_xor.
5908 2008-05-23 Uros Bizjak <ubizjak@gmail.com>
5909 Jakub Jelinek <jakub@redhat.com>
5912 * configure.ac: Handle --enable-cld.
5913 * configure: Regenerated.
5914 * config.gcc: Add USE_IX86_CLD to tm_defines for x86 targets.
5915 * config/i386/i386.h (struct machine_function): Add needs_cld field.
5916 (ix86_current_function_needs_cld): New define.
5917 * config/i386/i386.md (UNSPEC_CLD): New unspec volatile constant.
5918 (cld): New isns pattern.
5919 (strmov_singleop, rep_mov, strset_singleop, rep_stos, cmpstrnqi_nz_1,
5920 cmpstrnqi_1, strlenqi_1): Set ix86_current_function_needs_cld flag.
5921 * config/i386/i386.opt (mcld): New option.
5922 * config/i386/i386.c (ix86_expand_prologue): Emit cld insn if
5923 TARGET_CLD and ix86_current_function_needs_cld.
5924 (override_options): Use -mcld by default for 32-bit code if
5927 * doc/install.texi (Options specification): Document --enable-cld.
5928 * doc/invoke.texi (Machine Dependent Options)
5929 [i386 and x86-64 Options]: Add -mcld option.
5930 (Intel 386 and AMD x86-64 Options): Document -mcld option.
5932 2008-05-23 Kai Tietz <kai.tietz@onevison.com>
5933 * config/i386/i386.c (return_in_memory_32): Add ATTRIBUTE_UNUSED.
5934 (return_in_memory_64): Likewise.
5935 (return_in_memory_ms_64): Likewise.
5937 2008-05-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5939 * builtin-types.def (BT_FN_INT_INT_INT_INT_INT_INT_VAR): New.
5940 * builtins.c (fold_builtin_fpclassify): New.
5941 (fold_builtin_varargs): Handle BUILT_IN_FPCLASSIFY.
5942 * builtins.def (BUILT_IN_FPCLASSIFY): New.
5943 * c-common.c (handle_type_generic_attribute): Adjust to accept
5944 fixed arguments before an elipsis.
5945 (check_builtin_function_arguments): Handle BUILT_IN_FPCLASSIFY.
5946 * doc/extend.texi: Document __builtin_fpclassify.
5948 2008-05-22 Aldy Hernandez <aldyh@redhat.com>
5950 * omp-low.c (gate_expand_omp_ssa): Remove.
5951 (pass_expand_omp_ssa): Remove.
5952 (gate_expand_omp): Do not check for flag_openmp_ssa.
5953 * common.opt (-fopenmp-ssa): Remove.
5954 * passes.c (init_optimization_passes): Remove pass_expand_omp_ssa.
5956 2008-05-22 Kaz Kojima <kkojima@gcc.gnu.org>
5958 * config/sh/sh.opt (mfixed-range): New option.
5959 * config/sh/sh-protos.h (sh_fix_range): Declare.
5960 * config/sh/sh.c (sh_fix_range): New function.
5961 * config/sh/sh.h (sh_fixed_range_str): Declare.
5962 (OVERRIDE_OPTIONS): Call sh_fix_range if sh_fixed_range_str
5964 * doc/invoke.texi (SH Options): Document -mfixed-range.
5966 2008-05-22 Kai Tietz <kai.tietz@onevision.com>
5968 * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Undefine
5969 it before the redeclaration.
5971 2008-05-22 Anatoly Sokolov <aesok@post.ru>
5973 * config/avr/avr.c (get_sequence_length): Add new function.
5974 (expand_prologue, expand_epilogue): Remove duplicate code.
5976 2008-05-22 Rafael Espindola <espindola@google.com>
5978 * see.c (see_pre_insert_extensions): Use copy_rtx to avoid invalid rtx
5981 2008-05-22 H.J. Lu <hongjiu.lu@intel.com>
5983 * defaults.h (UNITS_PER_SIMD_WORD): Add scalar mode as argument.
5984 * doc/tm.texi (UNITS_PER_SIMD_WORD): Likewise.
5986 * tree-vect-analyze.c (vect_compute_data_ref_alignment): Replace
5987 UNITS_PER_SIMD_WORD with GET_MODE_SIZE (TYPE_MODE (vectype)).
5988 (vect_update_misalignment_for_peel): Likewise.
5989 (vector_alignment_reachable_p): Likewise.
5990 * tree-vect-transform.c (vectorizable_load): Likewise.
5991 * tree-vectorizer.c (vect_supportable_dr_alignment): Likewise.
5992 (get_vectype_for_scalar_type): Pass mode of scalar_type
5993 to UNITS_PER_SIMD_WORD.
5995 * config/arm/arm.h (UNITS_PER_SIMD_WORD): Updated.
5996 * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
5997 * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
5998 * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
5999 * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
6001 2008-05-22 Ira Rosen <irar@il.ibm.com>
6003 PR tree-optimization/36293
6004 * tree-vect-transform.c (vect_transform_strided_load): Don't check
6005 if the first load must be skipped because of a gap.
6007 2008-05-22 Richard Guenther <rguenther@suse.de>
6009 * tree-dfa.c (refs_may_alias_p): Exit early if possible. Handle
6010 more cases of offset disambiguation that is possible if
6011 strict-aliasing rules apply.
6012 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use refs_may_alias_p
6013 for basic offset and type-based disambiguation.
6015 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
6017 * config/i386/i386.c (ix86_expand_vector_init_one_var): Use
6018 ix86_expand_vector_set on V16QImode for SSE4.1.
6020 2008-05-21 Tom Tromey <tromey@redhat.com>
6022 * c.opt (Wimport): Mark as undocumented.
6023 * doc/invoke.texi (Option Summary): Don't mention -Wimport or
6025 (Warning Options): Likewise.
6026 * doc/cppopts.texi: Don't mention -Wimport.
6028 2008-05-21 Sebastian Pop <sebastian.pop@amd.com>
6030 PR tree-optimization/36287
6031 PR tree-optimization/36286
6032 * lambda-code.c (build_access_matrix): Do not use the loop->num
6033 for computing the number of induction variables: use the loop depth
6036 2008-05-21 Kai Tietz <kai.tietz@onevision.com>
6039 * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Honor
6040 option -f(no-)leading-underscore.
6042 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
6044 * config/i386/i386.c (ix86_expand_vector_init_general): Use
6045 GET_MODE_NUNITS (mode).
6047 2008-05-21 Peter Bergner <bergner@vnet.ibm.com>
6049 * doc/invoke.texi: Add cpu_type's 464 and 464fp.
6050 (-mmulhw): Add 464 to description.
6051 (-mdlmzb): Likewise.
6052 * config.gcc: Handle --with-cpu=464 and --with-cpu=464fp.
6053 * config/rs6000/rs6000.c (processor_target_table): Add 464 and
6055 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 464 and 464fp support.
6056 * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=464.
6057 * config/rs6000/rs6000.md: Update comments for 464.
6059 2008-05-21 Janis Johnson <janis187@us.ibm.com>
6061 * doc/sourcebuild.texi (Test Directives): Add dg-xfail-run-if.
6063 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
6065 * config/i386/sse.md (vec_extractv4sf): Removed.
6066 (vec_extractv2df): Likewise.
6067 (vec_extractv2di): Likewise.
6068 (vec_extractv4si): Likewise.
6069 (vec_extractv8hi): Likewise.
6070 (vec_extractv16qi): Likewise.
6071 (vec_extract<mode>): New.
6073 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
6075 * config/i386/sse.md (vec_setv4sf): Removed.
6076 (vec_setv2df): Likewise.
6077 (vec_setv2di): Likewise.
6078 (vec_setv4si): Likewise.
6079 (vec_setv8hi): Likewise.
6080 (vec_setv16qi): Likewise.
6081 (vec_set<mode>): New.
6083 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
6085 * config/i386/i386.c (ix86_expand_vector_init_general): Remove
6086 goto for vec_concat and vec_interleave.
6088 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
6090 * config/i386/sse.md (vec_initv4sf): Removed.
6091 (vec_initv2df): Likewise.
6092 (vec_initv2di): Likewise.
6093 (vec_initv4si): Likewise.
6094 (vec_initv8hi): Likewise.
6095 (vec_initv16qi): Likewise.
6096 (vec_init<mode>): New.
6098 2008-05-21 Joseph Myers <joseph@codesourcery.com>
6100 * collect2.c (find_a_file): Use IS_ABSOLUTE_PATH.
6102 2008-05-21 Tom Tromey <tromey@redhat.com>
6104 * ggc-zone.c (lookup_page_table_if_allocated): New function.
6105 (zone_find_object_offset): Likewise.
6106 (gt_ggc_m_S): Likewise.
6107 (highest_bit): Likewise.
6108 * ggc-page.c (gt_ggc_m_S): New function.
6109 * stringpool.c (string_stack): Remove.
6110 (init_stringpool): Update.
6111 (ggc_alloc_string): Use ggc_alloc.
6112 (maybe_delete_ident): New function.
6113 (ggc_purge_stringpool): Likewise.
6114 (gt_ggc_m_S): Remove.
6115 * ggc-common.c (ggc_protect_identifiers): New global.
6116 (ggc_mark_roots): Call ggc_purge_stringpool. Use
6117 ggc_protect_identifiers.
6118 * ggc.h (ggc_protect_identifiers): Declare.
6119 (gt_ggc_m_S): Update.
6120 (ggc_purge_stringpool): Declare.
6121 * toplev.c (compile_file): Set and reset ggc_protect_identifiers.
6122 * gengtype.c (write_types_process_field) <TYPE_STRING>: Remove
6124 (write_root): Cast gt_ggc_m_S to gt_pointer_walker.
6126 2008-05-21 David S. Miller <davem@davemloft.net>
6128 * config.gcc (sparc-*-linux*): Always include sparc/t-linux in
6131 2008-05-21 Eric Botcazou <ebotcazou@adacore.com>
6133 * cfgexpand.c (tree_expand_cfg): Zap the EH throw statement table
6136 2008-05-20 David Daney <ddaney@avtrex.com>
6138 * config/mips/mips.md (UNSPEC_SYNC_NEW_OP_12,
6139 UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE_12): New define_constants.
6140 (UNSPEC_SYNC_EXCHANGE, UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
6141 UNSPEC_UPDATE_GOT_VERSION): Renumber.
6142 (optab, insn): Add 'plus' and 'minus' to define_code_attr.
6143 (atomic_hiqi_op): New define_code_iterator.
6144 (sync_compare_and_swap<mode>): Call mips_expand_atomic_qihi instead of
6145 mips_expand_compare_and_swap_12.
6146 (compare_and_swap_12): Use MIPS_COMPARE_AND_SWAP_12 instead of
6147 MIPS_COMPARE_AND_SWAP_12_0. Pass argument to MIPS_COMPARE_AND_SWAP_12.
6148 (sync_<optab><mode>, sync_old_<optab><mode>,
6149 sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
6150 sync_new_nand<mode>): New define_expands for HI and QI mode operands.
6151 (sync_<optab>_12, sync_old_<optab>_12, sync_new_<optab>_12,
6152 sync_nand_12, sync_old_nand_12, sync_new_nand_12): New insns.
6153 (sync_lock_test_and_set<mode>): New define_expand for HI and QI modes.
6154 (test_and_set_12): New insn.
6155 (sync_old_add<mode>, sync_new_add<mode>, sync_old_<optab><mode>,
6156 sync_new_<optab><mode>, sync_old_nand<mode>,
6157 sync_new_nand<mode>, sync_lock_test_and_set<mode>): Add early
6158 clobber to operand 0 for SI and DI mode insns.
6159 * config/mips/mips-protos.h (mips_gen_fn_6, mips_gen_fn_5,
6160 mips_gen_fn_4): New typedefs.
6161 (mips_gen_fn_ptrs): Define new union type.
6162 (mips_expand_compare_and_swap_12): Remove declaration.
6163 (mips_expand_atomic_qihi): Declare function.
6164 * config/mips/mips.c (mips_expand_compare_and_swap_12): Rename to...
6165 (mips_expand_atomic_qihi): ... this. Use new generator function
6167 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): Add OPS parameter.
6168 (MIPS_COMPARE_AND_SWAP_12_0): Delete macro.
6169 (MIPS_COMPARE_AND_SWAP_12_ZERO_OP, MIPS_COMPARE_AND_SWAP_12_NONZERO_OP,
6170 MIPS_SYNC_OP_12, MIPS_SYNC_OP_12_NOT_NOP,
6171 MIPS_SYNC_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12,
6172 MIPS_SYNC_OLD_OP_12_NOT_NOP, MIPS_SYNC_OLD_OP_12_NOT_NOP_REG,
6173 MIPS_SYNC_OLD_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12_NOT_NOT_REG,
6174 MIPS_SYNC_NEW_OP_12, MIPS_SYNC_NEW_OP_12_NOT_NOP,
6175 MIPS_SYNC_NEW_OP_12_NOT_NOT, MIPS_SYNC_EXCHANGE_12,
6176 MIPS_SYNC_EXCHANGE_12_ZERO_OP, MIPS_SYNC_EXCHANGE_12_NONZERO_OP):
6179 2008-05-20 H.J. Lu <hongjiu.lu@intel.com>
6181 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Add
6184 2008-05-20 Anatoly Sokolov <aesok@post.ru>
6186 * config/avr/avr.h (machine_function): Add 'is_OS_main' field.
6187 * config/avr/avr.c (avr_OS_main_function_p): Add new function.
6188 (avr_attribute_table): Add 'OS_main' function attribute.
6189 (avr_regs_to_save, expand_prologue, expand_epilogue): Handle
6190 functions with 'OS_main' attribute.
6192 2008-05-20 Richard Guenther <rguenther@suse.de>
6194 PR tree-optimization/35204
6195 * tree-ssa-sccvn.c (extract_and_process_scc_for_name): New
6196 helper, split out from ...
6197 (DFS): ... here. Make the DFS walk non-recursive.
6199 2008-05-20 Sebastian Pop <sebastian.pop@amd.com>
6200 Jan Sjodin <jan.sjodin@amd.com>
6202 PR tree-optimization/36181
6203 * tree-parloops.c (loop_has_vector_phi_nodes): New.
6204 (parallelize_loops): Don't parallelize when the loop has vector
6207 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
6208 Sebastian Pop <sebastian.pop@amd.com>
6210 * tree-loop-linear.c (gather_interchange_stats): Look in the access
6211 matrix, and never look at the tree representation of the memory
6213 (linear_transform_loops): Computes parameters and access matrices.
6214 * tree-data-ref.c (compute_data_dependences_for_loop): Returns false
6216 (access_matrix_get_index_for_parameter): New.
6217 * tree-data-ref.h (struct access_matrix): New.
6218 (AM_LOOP_NEST_NUM, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
6219 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
6220 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT,
6221 am_vector_index_for_loop): New.
6222 (struct data_reference): Add field access_matrix.
6223 (DR_ACCESS_MATRIX): New.
6224 (compute_data_dependences_for_loop): Update declaration.
6225 (lambda_collect_parameters, lambda_compute_access_matrices): Declared.
6226 * lambda.h (lambda_vector_vec_p): Declared.
6227 * lambda-code.c: Depend on pointer-set.h.
6228 (lambda_collect_parameters_from_af, lambda_collect_parameters,
6229 av_for_af_base, av_for_af, build_access_matrix,
6230 lambda_compute_access_matrices): New.
6231 * Makefile.in (lambda-code.o): Depend on pointer-set.h.
6233 2008-05-20 Joseph Myers <joseph@codesourcery.com>
6235 * doc/install.texi2html: Generate gcc-vers.texi in $DESTDIR not
6238 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
6239 Sebastian Pop <sebastian.pop@amd.com>
6241 PR tree-optimization/36206
6242 * tree-scalar-evolution.c: Remove enum INSERT_SUPERLOOP_CHRECS,
6244 (instantiate_scev_1): Rename flags to fold_conversions.
6245 Do not check for INSERT_SUPERLOOP_CHRECS, keep SSA_NAMEs defined
6246 outeside instantiation_loop.
6247 * tree-chrec.h (evolution_function_is_affine_in_loop): New.
6248 (evolution_function_is_affine_or_constant_p): Removed.
6249 * tree-data-ref.c (dr_analyze_indices): Replace resolve_mixers with
6251 (analyze_siv_subscript): Pass in the loop nest number.
6252 Call evolution_function_is_affine_in_loop instead of
6253 evolution_function_is_affine_p.
6254 (analyze_overlapping_iterations): Pass in the loop nest number.
6256 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
6257 Sebastian Pop <sebastian.pop@amd.com>
6259 PR tree-optimization/36206
6260 * tree-chrec.h (chrec_fold_op): New.
6261 * tree-data-ref.c (initialize_matrix_A): Traverse NOP_EXPR, PLUS_EXPR,
6264 2008-05-20 Nathan Sidwell <nathan@codesourcery.com>
6266 * c-incpath.c (INO_T_EQ): Do not define on non-inode systems.
6268 (remove_duplicates): Do not set inode on non-inode systems.
6271 2008-05-20 Sandra Loosemore <sandra@codesourcery.com>
6273 * config.gcc (tm_file): Update comments about relative pathnames.
6275 2008-05-20 Richard Guenther <rguenther@suse.de>
6277 * tree-ssa-reassoc.c (fini_reassoc): Use the statistics infrastructure.
6278 * tree-ssa-sccvn.c (process_scc): Likewise.
6279 * tree-ssa-sink.c (execute_sink_code): Likewise.
6280 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
6281 * tree-vrp.c (process_assert_insertions): Likewise.
6282 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
6283 (perform_tree_ssa_dce): Likewise.
6284 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
6285 (dump_dominator_optimization_stats): Likewise.
6286 * tree-vectorizer.c (vectorize_loops): Likewise.
6288 2008-05-20 Richard Guenther <rguenther@suse.de>
6290 * tree-vn.c (vn_lookup_with_vuses): Do not use the alias oracle.
6292 2008-05-20 Kai Tietz <kai.tietz@onevision.com>
6294 * config/i386/i386-protos.h (ix86_return_in_memory): Removed.
6295 (ix86_i386elf_return_in_memory): Likewise.
6296 (ix86_i386interix_return_in_memory): Likewise.
6297 * config/i386/i386-interix.h (TARGET_RETURN_IN_MEMORY): Removed.
6298 (SUBTARGET_RETURN_IN_MEMORY): New.
6299 * config/i386/i386elf.h: Likewise.
6300 * config/i386/ptx4-i.h: Likewise.
6301 * config/i386/sol2-10.h: Likewise.
6302 * config/i386/sysv4.h: Likewise.
6303 * config/i386/vx-common.h: Likewise.
6304 * config/i386/i386.h (TARGET_RETURN_IN_MEMORY): Removed.
6305 * config/i386/i386.c (ix86_return_in_memory): Made static and
6306 make use of optional SUBTARGET_RETURN_IN_MEMORY macro.
6307 (ix86_i386elf_return_in_memory): Removed.
6308 (ix86_i386interix_return_in_memory): Removed.
6309 (TARGET_RETURN_IN_MEMORY): Declared within i386.c only.
6310 * target-def.h (TARGET_RETURN_IN_MEMORY): Remove protection #ifdef.
6312 2008-05-20 Alexandre Oliva <aoliva@redhat.com>
6314 * cselib.c (cselib_record_sets): Use correct mode for IF_THEN_ELSE.
6316 2008-05-19 Xinliang David Li <davidxl@google.com>
6318 * tree-ssa-dce.c: Revert patches of 2008-05-17 and 2008-05-18.
6320 * common.opt: Ditto.
6321 * doc/invoke.texi: Ditto.
6323 2008-05-19 Eric Botcazou <ebotcazou@adacore.com>
6325 * tree.c (substitute_in_expr) <tcc_vl_exp>: Fix thinko.
6326 (substitute_placeholder_in_expr) <tcc_vl_exp>: Minor tweak.
6328 2008-05-19 H.J. Lu <hongjiu.lu@intel.com>
6330 * config/i386/i386.c (ix86_expand_vector_init_concat): Change
6331 sizes of operand array from 8/4 to 4/2.
6332 (ix86_expand_vector_init_general): Change size of operand array
6333 from 32 to 16. Remove op0, op1 and half_mode.
6335 2008-05-19 H.J. Lu <hongjiu.lu@intel.com>
6337 * config/i386/i386.c (ix86_expand_vector_init_concat): New.
6338 (ix86_expand_vector_init_interleave): Likewise.
6339 (ix86_expand_vector_init_general): Use them. Assert
6340 word_mode == SImode when n_words == 4.
6342 2008-05-19 Uros Bizjak <ubizjak@gmail.com>
6344 * config/i386/i386.c (ix86_secondary_reload): New static function.
6345 (TARGET_SECONDARY_RELOAD): New define.
6346 * config/i386/i386.h (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
6347 * config/i386/i386.md (reload_outqi): Remove.
6349 2008-05-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6352 * builtins.c (mathfn_built_in_1): Renamed from mathfn_built_in.
6353 Add `implicit' parameter. Handle BUILT_IN_SIGNBIT.
6354 (mathfn_built_in): Rewrite in terms of mathfn_built_in_1.
6355 (fold_builtin_classify): Handle BUILT_IN_ISINF_SIGN.
6356 (fold_builtin_1): Likewise.
6357 * builtins.def (BUILT_IN_ISINF_SIGN): New.
6358 c-common.c (check_builtin_function_arguments): Handle
6359 BUILT_IN_ISINF_SIGN.
6360 * doc/extend.texi: Document __builtin_isinf_sign.
6361 * fold-const.c (operand_equal_p): Handle COND_EXPR.
6363 2008-05-18 Eric Botcazou <ebotcazou@adacore.com>
6365 * tree-ssa-dom.c (tree_ssa_dominator_optimize): If some blocks need
6366 EH cleanup at the end of the pass, search for those that have been
6367 turned into forwarder blocks and do the cleanup on their successor.
6369 2008-05-18 Richard Guenther <rguenther@suse.de>
6371 * tree-cfg.c (verify_gimple_expr): Allow conversions from
6372 pointers to sizetype and vice versa.
6374 2008-05-18 Xinliang David Li <davidxl@google.com>
6376 * gcc/tree-ssa-dce.c: Coding style fix.
6377 (check_pow): Documentation comment.
6378 (check_log): Documenation comment. Coding style fix.
6379 (is_unnecessary_except_errno_call): Ditto.
6380 (gen_conditions_for_pow): Ditto.
6381 (gen_conditions_for_log): Ditto.
6382 (gen_shrink_wrap_conditions): Ditto.
6383 (shrink_wrap_one_built_in_calls): Ditto.
6384 * gcc/doc/invoke.texi: Better documentation string.
6385 * ChangeLog: Fix wrong change log entries from
6386 May 17 checkin on function call DCE.
6388 2008-05-17 Kaz Kojima <kkojima@gcc.gnu.org>
6390 * config/sh/sh.c (sh_output_mi_thunk): Update the use of init_flow.
6392 2008-05-17 Kenneth Zadeck <zadeck@naturalbridge.com>
6394 * doc/rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P): Fixed typos.
6395 * df-problems.c (simulation routines): Fixed block comment to
6396 properly say how to add forwards scanning functions.
6398 2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
6400 * tree-inline.c (setup_one_parameter): Remove dead code.
6402 2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
6404 * fold-const.c (fold_unary) <CASE_CONVERT>: Fold the cast into
6405 a BIT_AND_EXPR only for an INTEGER_TYPE.
6407 2008-05-17 Xinliang David Li <davidxl@google.com>
6409 * gcc/tree-ssa-dce.c (cond_dead_built_in_calls): New static variable.
6410 (check_pow, check_log, is_unnecessary_except_errno_call): New
6411 functions to check for eliminating math functions that are pure
6412 except for setting errno.
6413 (gen_conditions_for_pow, gen_conditionas_for_log): New functions to
6414 general condition expressions for shrink-wrapping pow/log calls.
6415 (gen_shrink_wrap_conditions): Ditto.
6416 (shrink_wrap_one_built_in_call): Ditto.
6417 (shrink_wrap_conditional_dead_built_in_calls): Ditto.
6418 (mark_operand_necessary): If debugging, output if OP is necessary.
6419 (eliminate_unnecessary_stmts): Eliminate pow, log calls that are
6421 * gcc/opts.c (decode_options): set flag_tree_builtin_dce to 1 when
6423 * gcc/common.opt: New user flag -ftree-builtin-dce.
6424 * gcc/doc/invoke.texi (-ftree-builtin-dce): New option.
6426 2008-05-16 David S. Miller <davem@davemloft.net>
6428 * config/sparc/linux.h (NO_PROFILE_COUNTERS): Undef before overriding.
6429 * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
6431 2008-05-16 Uros Bizjak <ubizjak@gmail.com>
6434 * config/i386/i386.h (SECONDARY_MEMORY_NEEDED_MODE): New define.
6436 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
6438 * ifcvt.c (dead_or_predicable): Rename
6439 df_simulate_one_insn_backwards to df_simulate_one_insn.
6440 * recog.c (peephole2_optimize): Ditto.
6441 * rtl-factoring.c (collect_pattern_seqs, clear_regs_live_in_seq):
6443 * df.h: Rename df_simulate_one_insn_backwards to
6444 df_simulate_one_insn. and delete df_simulate_one_insn_forwards.
6445 * df-problems.c (df_simulate_artificial_refs_at_top) Reversed
6446 scanning of defs and uses.
6447 (df_simulate_one_insn_backwards): Renamed to df_simulate_one_insn.
6448 (df_simulate_one_insn_forwards): Removed.
6450 2008-05-16 Doug Kwan <dougkwan@google.com>
6452 * real.c (real_to_decimal, real_to_hexadecimal): Distinguish
6454 (real_from_string): Handle NaNs and Inf as approriate.
6456 2008-05-16 Nathan Froyd <froydnj@codesourcery.com>
6458 * doc/gty.texi (Source Files Containing Type Information): Note
6459 that headers should appear first in the gtfiles list.
6461 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
6463 * tree.def (COND_EXEC): Properly documented this code.
6465 2008-05-16 Diego Novillo <dnovillo@google.com>
6467 * dwarf2asm.c (dw2_assemble_integer): Clarify comment.
6468 * tree-nested.c (get_trampoline_type): Set DECL_CONTEXT for
6471 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
6473 * tree-ssa-dse (max_stmt_uid): Removed.
6474 (get_stmt_uid, dse_possible_dead_store_p, dse_optimize_stmt,
6475 tree_ssa_dse): Encapsulate all uses of stmt_ann->uid.
6476 * tree-ssa-sccvn.c (compare_ops, init_scc_vn): Ditto.
6477 * function.h (cfun.last_stmt_uid): New field.
6478 * tree-flow-inline.h (set_gimple_stmt_uid, gimple_stmt_uid,
6479 gimple_stmt_max_uid, set_gimple_stmt_max_uid, inc_gimple_stmt_max_uid):
6481 * tree-dfa.c (renumber_gimple_stmt_uids): New function.
6482 (create_stmt_ann): Initialize the ann->uid field.
6483 * tree-ssa-pre.c (compute_avail): Encapsulate the stmt_ann->uid
6485 * tree-flow.h (renumber_gimple_stmt_uids): New function.
6487 2008-05-16 Nathan Froyd <froydnj@codesourcery.com>
6489 * tree-flow.h (init_empty_tree_cfg_for_function): Declare.
6490 * tree-cfg.c (init_empty_tree_cfg_for_function): Define.
6491 (init_empty_tree_cfg): Call it.
6493 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
6495 * cfg.c (init_flow): Add argument THE_FUN. Use it instead of cfun.
6498 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
6500 * doc/invoke.text (-fdump-tree-*-verbose): New option.
6501 * tree-dump.c (dump_options): New verbose option.
6502 * tree-pretty-print.c (dump_phi_nodes, dump_generic_bb_buff):
6504 * tree-pass.h (TDF_VERBOSE): New dump flag.
6505 * print-tree.c (print_node): Added code to be able to print PHI_NODES.
6506 (tree-flow.h): Added include.
6507 * Makefile.in (print-tree.o): Added TREE_FLOW_H.
6509 2008-05-16 Bernd Schmidt <bernd.schmidt@analog.com>
6511 * config/bfin/bfin.c (bfin_discover_loops): Delete empty loops.
6513 From Jie Zhang <jie.zhang@analog.com>
6514 * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
6515 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Remove mcpu=bf532-0.3,
6516 mcpu=bf561-none and mcpu=bf561-0.2.
6517 * config/bfin/t-bfin-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
6518 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
6519 * config/bfin/t-bfin-linux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
6520 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
6521 * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add BFIN_CPU_UNKNOWN.
6522 * config/bfin/elf.h (STARTFILE_SPEC): Use specific CRT for BF561.
6523 (LIB_SPEC): Use proper linker script for bf561. Error if no mcpu
6525 * config/bfin/bfin.c (bfin_cpu_type): Set to BFIN_CPU_UNKNOWN.
6526 (cputype_selected): Remove.
6527 (bfin_handle_option): Don't use cputype_selected.
6528 (override_options): When no mcpu option, enable all workarounds.
6529 Don't use bfin_workarounds.
6530 * config/bfin/bfin.h (DRIVER_SELF_SPECS): Don't set default
6532 (DEFAULT_CPU_TYPE): Don't define.
6534 2008-05-16 Richard Guenther <rguenther@suse.de>
6536 * tree-ssa-propagate.c (substitute_and_fold): Fix stmt walking
6537 on deletion of the last stmt.
6539 2008-05-15 H.J. Lu <hongjiu.lu@intel.com>
6541 * config/i386/i386.c (ix86_expand_vector_init_general): Optimize
6542 V8HImode for SSE2 and V16QImode for SSE4.1.
6544 2008-05-15 Kenneth Zadeck <zadeck@naturalbridge.com>
6546 * cgraph.h (compute_inline_parameters): Made public.
6547 * tree-pass.h (ipa_opt_pass): Removed function_generate_summary,
6548 variable_generate_summary, function_write_summary,
6549 variable_write_summary, variable_read_summary. Added generate_summary,
6550 write_summary, read_summary.
6551 * cgraphunit.c (cgraph_process_new_functions): Changed call from
6552 pass_ipa_inline.function_generate_summary, to
6553 compute_inline_parameters.
6554 * ipa-inline.c (compute_inline_parameters): Made public and added
6556 (compute_inline_parameters_for_current): New function.
6557 (pass_inline_param): Now calls compute_inline_parameters_for_current.
6558 (inline_generate_summary): Removed parameter and made to loop over
6560 (pass_ipa_inline): Updated for new IPA_PASS structure.
6561 * passes.c (execute_ipa_summary_passes): Now is called once per
6562 pass rather than once per node*pass.
6564 2008-05-15 Anatoly Sokolov <aesok@post.ru>
6566 * config/avr/avr.c (avr_base_arch_macro, avr_have_movw_lpmx_p,
6567 avr_have_mul_p, avr_asm_only_p): Remove variables.
6568 (avr_override_options): Remove initialization of removed variables.
6569 (avr_file_start): Convert removed variables to fields of
6570 'struct base_arch_s *avr_current_arch'.
6571 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): (Ditto.).
6572 (AVR_HAVE_MUL): (Ditto.).
6573 (AVR_HAVE_MOVW): (Ditto.).
6574 (AVR_HAVE_LPMX): (Ditto.).
6575 (avr_base_arch_macro, avr_have_movw_lpmx_p, avr_have_mul_p,
6576 avr_asm_only_p): Remove declaration.
6578 2008-05-15 Diego Novillo <dnovillo@google.com>
6580 * config/arm/arm.c (arm_return_in_memory): Fix return type.
6581 * config/arm/arm-protos.h (arm_return_in_memory): Likewise.
6583 2008-05-15 Adam Nemet <anemet@caviumnetworks.com>
6586 * combine.c (check_conversion): Rename back to check_promoted_subreg.
6587 Don't call record_truncated_value from here.
6588 (record_truncated_value): Turn it into a for_each_rtx callback.
6589 (record_truncated_values): New function.
6590 (combine_instructions): Call note_uses with record_truncated_values.
6591 Change name of check_conversion to check_promoted_subreg.
6593 2008-05-15 Janis Johnson <janis187@us.ibm.com>
6595 * doc/sourcebuild.texi: Document support for torture tests.
6597 2008-05-15 Uros Bizjak <ubizjak@gmail.com>
6599 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Add "m" constraint
6600 to alternative 4 of operand 2.
6602 2008-05-15 Richard Guenther <rguenther@suse.de>
6604 * tree-pass.h (current_pass): Declare.
6605 (get_pass_for_id): Likewise.
6606 * passes.c (passes_by_id, passes_by_id_size): New globals.
6607 (set_pass_for_id): New function.
6608 (get_pass_for_id): Likewise.
6609 (register_one_dump_file): Use set_pass_for_id to populate passes_by_id.
6610 (execute_function_todo): Flush per function statistics.
6611 * toplev.c (compile_file): Init statistics.
6612 (general_init): Do early statistics initialization.
6613 (finalize): Finish statistics.
6614 * statistics.h (statistics_early_init): Declare.
6615 (statistics_init): Likewise.
6616 (statistics_fini): Likewise.
6617 (statistics_fini_pass): Likewise.
6618 (statistics_counter_event): Likewise.
6619 (statistics_histogram_event): Likewise.
6620 * statistics.c: New file.
6621 * Makefile.in (OBJS-common): Add statistics.o.
6622 (statistics.o): Add dependencies.
6623 * doc/invoke.texi (-fdump-statistics): Document.
6625 * tree-ssa-pre.c (compute_antic): Use statistics_histogram_event.
6627 (execute_pre): Use statistics_counter_event.
6628 * tree-ssa-propagate.c (struct prop_stats_d): Add num_dce field.
6629 (substitute_and_fold): Increment it. Use statistics_counter_event.
6631 2008-05-15 Diego Novillo <dnovillo@google.com>
6633 http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00893.html
6635 * treestruct.def (TS_STRUCT_FIELD_TAG): Remove.
6636 * tree-ssa-alias.c (new_type_alias): Remove references to
6637 sub-variables from comment.
6638 * tree-ssa-operands.c (swap_tree_operands): Likewise.
6640 2008-05-15 H.J. Lu <hongjiu.lu@intel.com>
6642 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Set prefix_extra
6643 attribute to 1 only for insertps alternative.
6645 2008-05-15 Bernd Schmidt <bernd.schmidt@analog.com>
6647 * config/bfin/bfin.md (loadbytes): New pattern.
6648 * config/bfin/bfin.c (enum bfin_builtins): Add BFIN_BUILTIN_LOADBYTES.
6649 (bfin_init_builtins): Initialize it.
6650 (bdesc_1arg): Add it.
6652 2008-05-15 Sa Liu <saliu@de.ibm.com>
6654 * testsuite/gfortran.dg/c_kind_int128_test1.f03: New.
6655 * testsuite/gfortran.dg/c_kind_int128_test2.f03: New.
6656 * testsuite/lib/target-supports.exp: Add
6657 check_effective_target_fortran_integer_16.
6659 2008-05-15 Bernd Schmidt <bernd.schmidt@analog.com>
6661 * config/bfin/bfin.h (TARGET_RETURN_IN_MEMORY): Don't define here.
6662 * config/bfin/bfin-protos.h (bfin_return_in_memory): Don't declare.
6663 * config/bfin/bfin.c (bfin_return_in_memory): Now static. Return bool.
6664 (TARGET_RETURN_IN_MEMORY): Define.
6666 2008-05-15 Richard Guenther <rguenther@suse.de>
6669 * tree-ssa-alias.c (new_type_alias): Do not set TREE_READONLY.
6670 * tree-flow-inline.h (unmodifiable_var_p): Memory tags never
6671 represent unmodifiable vars.
6673 2008-05-15 Richard Guenther <rguenther@suse.de>
6675 * tree-dfa.c (refs_may_alias_p): Allow all kinds of
6676 INDIRECT_REF and TARGET_MEM_REF.
6677 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
6680 2008-05-15 Uros Bizjak <ubizjak@gmail.com>
6681 H.J. Lu <hongjiu.lu@intel.com>
6683 * config/i386/sse.md (*vec_concatv2sf_sse4_1): New insn pattern.
6684 (*vec_concatv2si_sse4_1): Use vector_move_operand predicate
6685 for operand 2. Remove pinsr{q,d} with 0x0 immediate operand from
6686 insn alternatives. Add missing alternatives.
6687 (*vec_concatv2di_rex64_sse4_1): Likewise.
6688 (*vec_concatv2si_sse2): Use "x" register constraint instead of "Y2".
6689 (*vec_concatv2di_rex64_sse): Rename from *vec_concatv2di_rex64.
6692 2008-05-15 Richard Guenther <rguenther@suse.de>
6694 PR tree-optimization/36009
6695 PR tree-optimization/36204
6696 * tree-ssa-loop-im.c (tree-ssa-propagate.h): Include.
6697 (determine_invariantness_stmt): Record the loop a store is
6699 * Makefile.in (tree-ssa-loop-im.o): Add tree-ssa-propagate.h
6702 2008-05-15 Richard Guenther <rguenther@suse.de>
6704 PR tree-optimization/34330
6705 * tree-ssa-alias.c (get_smt_for): Only assert that accesses
6706 through the pointer will alias the SMT.
6708 2008-05-14 Andreas Tobler <a.tobler@schweiz.org>
6710 * config/sparc/sparc.h (NO_PROFILE_COUNTERS): Define as 0.
6712 2008-05-14 H.J. Lu <hongjiu.lu@intel.com>
6714 * config/i386/sse.md (*sse4_1_pinsrq): Make it 64bit only.
6716 2008-05-14 Michael Meissner <michael.meissner@amd.com>
6717 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
6719 * optabs.h (optab_index): Add OTI_vashl, OTI_vlshr, OTI_vashr,
6720 OTI_vrotl, OTI_vrotr to support vector/vector shifts.
6721 (vashl_optab): New optab for vector/vector shifts.
6722 (vashr_optab): Ditto.
6723 (vlshr_optab): Ditto.
6724 (vrotl_optab): Ditto.
6725 (vrotr_optab): Ditto.
6726 (optab_subtype): New enum for optab_for_tree_code call.
6727 (optab_for_tree_code): Add enum optab_subtype argument.
6729 * optabs.c (optab_for_tree_code): Take an additional argument to
6730 distinguish between a vector shift by a scalar and vector shift by
6731 a vector. Make lshr/ashr/ashl/rotl/rotr optabs just vector
6732 shifted by a scalar. Use vlshr/vashr/vashl/vrotl/vrotr for the
6733 vector shift by a vector.
6734 (expand_widen_pattern_expr): Pass additional argument to
6735 optab_for_tree_code.
6737 * genopinit.c (optabs): Add vashr_optab, vashl_optab, vlshr_optab,
6738 vrotl_optab, vrotr_optab.
6740 * expr.c (expand_expr_real_1): Update calls to
6741 optab_for_tree_code to distinguish between vector shifted by a
6742 scalar and vector shifted by a vector.
6743 * tree-vectorizer.c (supportable_widening_operation): Ditto.
6744 (supportable_narrowing_operation): Ditto.
6745 * tree-vect-analyze.c (vect_build_slp_tree): Ditto.
6746 * tree-vect-patterns.c (vect_pattern_recog_1): Ditto.
6747 * tree-vect-transform.c (vect_model_reduction_cost): Ditto.
6748 (vect_create_epilog_for_reduction): Ditto.
6749 (vectorizable_reduction): Ditto.
6750 (vectorizable_operation): Ditto.
6751 (vect_strided_store_supported): Ditto.
6752 (vect_strided_load_supported): Ditto.
6753 * tree-vect-generic.c (expand_vector_operations_1): Ditto.
6754 * expmed.c (expand_shift): Ditto.
6756 * doc/md.texi (ashl@var{m}3): Document that operand 2 is always a
6758 (ashr@var{m}3): Ditto.
6759 (vashl@var{m}3): Document new vector/vector shift standard name.
6760 (vashr@var{m}3): Ditto.
6761 (vlshr@var{m}3): Ditto.
6762 (vrotl@var{m}3): Ditto.
6763 (vrotr@var{m}3): Ditto.
6765 * config/i386/i386.md (PPERM_SRC): Move PPERM masks here from i386.c.
6766 (PPERM_INVERT): Ditto.
6767 (PPERM_REVERSE): Ditto.
6768 (PPERM_REV_INV): Ditto.
6769 (PPERM_ZERO): Ditto.
6770 (PPERM_ONES): Ditto.
6771 (PPERM_SIGN): Ditto.
6772 (PPERM_INV_SIGN): Ditto.
6773 (PPERM_SRC1): Ditto.
6774 (PPERM_SRC2): Ditto.
6776 * config/i386/sse.md (mulv2di3): Add SSE5 support.
6777 (sse5_pmacsdql_mem): New SSE5 define_and_split that temporarily
6778 allows a memory operand to be the value being added, and split it
6779 to improve vectorization.
6780 (sse5_pmacsdqh_mem): Ditto.
6781 (sse5_mulv2div2di3_low): SSE5 32-bit multiply and extend function.
6782 (sse5_mulv2div2di3_high): Ditto.
6783 (vec_pack_trunc_v8hi): Add SSE5 pperm support.
6784 (vec_pack_trunc_v4si): Ditto.
6785 (vec_pack_trunc_v2di): Ditto.
6786 (sse5_pcmov_<mode>): Remove code that tried to use use
6787 andps/andnps instead of pcmov.
6788 (vec_widen_smult_hi_v4si): If we have SSE5, use the pmacsdql and
6789 pmacsdqh instructions.
6790 (vec_widen_smult_lo_v4si): Ditto.
6792 * config/i386/i386.c (PPERM_SRC): Move PPERM masks to i386.md.
6793 (PPERM_INVERT): Ditto.
6794 (PPERM_REVERSE): Ditto.
6795 (PPERM_REV_INV): Ditto.
6796 (PPERM_ZERO): Ditto.
6797 (PPERM_ONES): Ditto.
6798 (PPERM_SIGN): Ditto.
6799 (PPERM_INV_SIGN): Ditto.
6800 (PPERM_SRC1): Ditto.
6801 (PPERM_SRC2): Ditto.
6802 (ix86_expand_sse_movcc): Move the SSE5 test after the if
6804 (ix86_expand_int_vcond): If SSE5 generate all possible integer
6806 (ix86_sse5_valid_op_p): Allow num_memory to be negative, which
6807 says ignore whether the last reference is a memory operand.
6809 2008-05-14 Michael Meissner <michael.meissner@amd.com>
6810 Paolo Bonzini <bonzini at gnu dot org>
6812 * config/rs6000/rs6000.c (bdesc_2arg): Change the names of vector
6815 * config/rs6000/altivec.md (vashl<mode>3): Rename from ashl<mode>3.
6816 (vlshr<mode>3): Rename from vlshr<mode>3.
6817 (vashr<mode>3): Rename from vashr<mode>3.
6818 (mulv4sf3): Change the names of vector shift patterns.
6822 * config/spu/spu.c (spu_initialize_trampoline): Rename vector
6825 * config/spu/spu-builtins.def (SI_SHLH): Rename vector shift insns.
6850 * config/spu/spu.md (v): New iterator macro to add v for vector types.
6851 (floatunssidf2_internal): Change vector/vector shift names.
6852 (floatunsdidf2_internal): Ditto.
6859 (vashl<mode>3): Rename from ashl<mode>3.
6860 (vashr<mode>3): Rename from ashr<mode>3.
6861 (vlshr<mode>3): Rename from lshr<mode>3.
6862 (vrotl<mode>3): Rename from rotl<mode>3.
6864 2008-05-14 Michael Meissner <michael.meissner@amd.com>
6867 * config/i386/sse.md (vec_widen_smult_hi_v4si): Delete, using unsigned
6868 multiply gives the wrong value when doing widening multiplies.
6869 (vec_widen_smult_lo_v4si): Ditto.
6871 2008-05-14 Kenneth Zadeck <zadeck@naturalbridge.com>
6873 * optabs.c (prepare_cmp_insn): Changed LCT_PURE_MAKE_BLOCK to
6874 LCT_PURE and LCT_CONST_MAKE_BLOCK to LCT_CONST in calls to
6875 emit_library_call_value.
6876 * builtins.c (expand_builtin_powi, expand_builtin_memcmp): Ditto.
6877 * tree.h (ECF_LIBCALL_BLOCK): Removed.
6878 * calls.c (initialize_argument_information, precompute_arguments,
6879 expand_call, emit_library_call_value_1): Remove ECF_LIBCALL_BLOCK.
6880 (precompute_arguments): Removed flags parameter.
6881 * rtl.h (LCT_CONST_MAKE_BLOCK, LCT_PURE_MAKE_BLOCK): Removed.
6883 2008-05-14 Richard Guenther <rguenther@suse.de>
6885 * tree-ssa-dse.c (dse_possible_dead_store_p): Remove dead code.
6886 Make sure to register the store if the use is a PHI_NODE.
6888 2008-05-14 Olivier Hainque <hainque@adacore.com>
6890 * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
6891 memory if the component is to be referenced in BLKmode according
6892 to get_inner_reference.
6894 2008-05-14 Adam Nemet <anemet@caviumnetworks.com>
6896 * calls.c (emit_library_call_value_1): Restore code clearing
6897 ECF_LIBCALL_BLOCK to ensure that we only call end_sequence once.
6899 2008-05-14 Olivier Hainque <hainque@adacore.com>
6900 Nicolas Roche <roche@adacore.com>
6902 * configure.ac: Add support for a "gcc_subdir" variable in
6903 config-lang.in, to denote a subdirectory where the language/GCC
6904 integration files are to be found.
6905 * configure: Regenerate.
6907 2008-05-14 Ira Rosen <irar@il.ibm.com>
6909 PR tree-optimization/36098
6910 * tree-vect-analyze.c (vect_analyze_group_access): Set the gap
6911 value for the first load in the group in case of a gap.
6912 (vect_build_slp_tree): Check that there are no gaps in loads.
6914 2008-05-14 Kenneth Zadeck <zadeck@naturalbridge.com>
6916 * doc/rtl.texi: Removed reference to REG_NO_CONFLICT notes.
6917 * optabs.c (expand_binop, expand_absneg_bit, expand_unop,
6918 expand_copysign_bit, ): Change call to emit_no_conflict_block to
6919 emit_insn and remove unneeded code to construct extra args.
6920 (emit_no_conflict_block): Removed.
6921 * optabls.h: (emit_no_conflict_block): Removed.
6922 * cse.c (cse_extended_basic_block): Remove search for
6923 REG_NO_CONFLICT note.
6924 * global.c: Removed incorrect comment added in revision 117.
6925 * expr.c (convert_move): Change call to emit_no_conflict_block to
6927 * recog.c: Change comments so that they do not mention
6929 * local_alloc.c (combine_regs): Removed last parameter.
6930 (no_conflict_p): Removed.
6931 (block_alloc): Removed note, no_conflict_combined_regno and set
6932 local vars. Removed all code to process REG_NO_CONFLICT blocks.
6933 (combine_regs): Removed already_dead and code to look for
6934 REG_NO_CONFLICT notes.
6935 * lower_subreg (remove_retval_note): Removed code to look for
6936 REG_NO_CONFLICT block.
6937 (resolve_reg_notes): Removed REG_NO_CONFLICT case.
6938 (resolve_clobber): Remove code to process libcalls that have
6939 REG_NO_CONFLICT notes.
6940 * loop_invariant.c (find_invariant_insn): Removed REG_NO_CONFLICT
6942 * combine.c (can_combine_p, distribute_notes): Removed
6943 REG_NO_CONFLICT case.
6944 * config/cris/cris.md (movdi pattern): Changed emit_no_conflict_block
6946 * config/mn10300/mn10300.md (absdf2, negdf2 patterns): Ditto.
6947 * config/m68k/m68k.md (negdf2, negxf2, absdf2, absxf2 patterns):
6949 * reg-notes.def (NO_CONFLICT): Removed.
6951 2008-05-14 David S. Miller <davem@davemloft.net>
6953 * config/sparc/sparc.c (sparc_profile_hook): If
6954 NO_PROFILE_COUNTERS, don't generate and pass a label into mcount.
6955 * config/sparc/linux.h (NO_PROFILE_COUNTERS): Define as 1.
6956 * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
6958 2008-05-14 Andreas Krebbel <krebbel1@de.ibm.com>
6960 * cse.c (cse_cc_succs): Invoke delete_insn_and_edges.
6962 2008-05-13 Uros Bizjak <ubizjak@gmail.com>
6965 * config/i386/i386.c (ix86_expand_vector_init_general): Rearrange op0
6966 and op1 expansion before vector concat to have less live pseudos.
6968 2008-05-13 H.J. Lu <hongjiu.lu@intel.com>
6970 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
6971 ix86_expand_vector_set if supported.
6973 2008-05-13 Diego Novillo <dnovillo@google.com>
6974 Kenneth Zadeck <zadeck@naturalbridge.com>
6976 http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00748.html
6978 * tree.h (init_phinodes, fini_phinodes, release_phi_node,
6979 phinodes_print_statistics, init_ssanames, fini_ssanames,
6980 make_ssa_name, duplicate_ssa_name, duplicate_ssa_name_ptr_info,
6981 release_ssa_name, release_defs, replace_ssa_name_symbol,
6982 ssanames_print_statistics): Move ...
6983 * tree-flow.h: ... here.
6984 * tree-ssanames.c (init_ssanames): Add arguments FN and SIZE.
6985 Use FN instead of cfun.
6986 (make_ssa_name_fn): Rename from make_ssa_name.
6987 (pass_release_ssa_names): Add TODO_dump_func to finish flags.
6988 * tree-flow-inline.h (make_ssa_name): Move from
6989 tree-ssanames.c. Convert to static inline. Call make_ssa_name_fn.
6990 * omp-low.c (expand_omp_parallel):
6991 * tree-flow-inline.h (redirect_edge_var_map_result):
6992 * tree-ssa.c (init_tree_ssa): Add argument FN.
6993 Use it instead of cfun. Update all users.
6995 2008-05-13 Tom Tromey <tromey@redhat.com>
6997 PR preprocessor/22168:
6998 * doc/cpp.texi (Top): Update menu.
6999 (Alternatives to Wrapper #ifndef): New node.
7000 (Other Directives): Document deprecation.
7001 (Obsolete Features): Remove menu.
7002 (Assertions): Merge node into Obsolete Features.
7003 (Obsolete once-only headers): Move earlier; rename to Alternatives
7005 * doc/cppopts.texi: Update.
7006 * c.opt (Wdeprecated): Enable for C and ObjC.
7007 * doc/invoke.texi (Option Summary): Move -Wno-deprecated.
7008 (C++ Dialect Options): Move -Wno-deprecated from here to...
7009 (Warning Options): ... here.
7011 2008-05-13 Richard Guenther <rguenther@suse.de>
7014 * fold-const.c (fold_sign_changed_comparison): Do not allow
7015 changes in pointer-ness.
7017 2008-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
7020 * config/sh/sh.c (sh_expand_prologue): Don't clear
7021 RTX_FRAME_RELATED_P for push insns.
7023 2008-05-12 Andy Hutchinson <hutchinsonandy@aim.com>
7025 * config/avr/avr.h (MAX_OFILE_ALIGNMENT): Define.
7027 2008-05-12 Anatoly Sokolov <aesok@post.ru>
7029 * config/avr/avr.h (machine_function): Add 'is_leaf' field.
7030 * config/avr/avr.c (avr_regs_to_save): Compute 'machine->is_leaf'.
7031 Use 'machine->is_leaf' instead of 'leaf_func_p'.
7033 2008-05-12 H.J. Lu <hongjiu.lu@intel.com>
7035 * config/i386/sse.md (*sse_concatv4sf): Renamed to ...
7036 (*vec_concatv4sf_sse): This.
7037 (*sse2_concatv2si): Renamed to ...
7038 (*vec_concatv2si_sse2): This.
7039 (*sse1_concatv2si): Renamed to ...
7040 (*vec_concatv2si_sse): This.
7041 (*vec_concatv2di_rex): Renamed to ...
7042 (*vec_concatv2di_rex64): This.
7043 (*vec_concatv2si_sse4_1): New.
7044 (*vec_concatv2di_rex64_sse4_1): Likewise.
7046 2008-05-12 Uros Bizjak <ubizjak@gmail.com>
7048 PR rtl-optimization/36111
7049 * recog.c (validate_replace_rtx_1): Unshare new RTL expression
7050 that was created for swappable operands.
7052 2008-05-12 Samuel Tardieu <sam@rfc1149.net>
7055 * Makefile.in: Substitute GNATMAKE and GNATBIND.
7056 * configure.ac: Add call to ACX_PROG_GNAT.
7058 2008-05-11 Volker Reichelt <v.reichelt@netcologne.de>
7060 * optc-gen.awk: Fix comment typo.
7062 2008-05-11 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
7064 * pretty-print.c (pp_integer_with_precision): Use
7065 HOST_LONG_LONG_FORMAT.
7067 2008-05-10 Kenneth Zadeck <zadeck@naturalbridge.com>
7069 * gcse.c (store_killed_in_insn): Negated call to RTL_CONST_CALL_P.
7071 2008-05-10 H.J. Lu <hongjiu.lu@intel.com>
7073 * config/i386/i386.c (bdesc_ptest): Removed.
7074 (ix86_builtin_type): Add INT_FTYPE_V2DI_V2DI_PTEST.
7075 (bdesc_args): Add __builtin_ia32_ptestz128,
7076 __builtin_ia32_ptestc128 and __builtin_ia32_ptestnzc128.
7077 (ix86_init_mmx_sse_builtins): Updated.
7078 (ix86_expand_args_builtin): Handle INT_FTYPE_V2DI_V2DI_PTEST.
7079 (ix86_expand_builtin): Updated.
7081 2008-05-10 Richard Sandiford <rdsandiford@googlemail.com>
7083 * tree-cfg.c (valid_fixed_convert_types_p): New function.
7084 (verify_gimple_expr): Handle FIXED_CONVERT_EXPR.
7086 2008-05-10 Uros Bizjak <ubizjak@gmail.com>
7088 * value-prof.c (interesting_stringop_to_profile): Do not
7089 return early for BUILT_IN_MEMPCPY.
7091 2008-05-09 H.J. Lu <hongjiu.lu@intel.com>
7093 * calls.c (expand_call): Don't use callgraph to increase
7094 preferred_stack_boundary.
7096 * cgraph.h (cgraph_rtl_info): Use unsigned on
7097 preferred_incoming_stack_boundary.
7099 * final.c (rest_of_clean_state): Use unsigned on
7100 preferred_stack_boundary.
7102 2008-05-09 Tom Tromey <tromey@redhat.com>
7104 PR preprocessor/22231:
7105 * c-opts.c (sanitize_cpp_opts): Disallow -MG if compilation is
7108 2008-05-09 Uros Bizjak <ubizjak@gmail.com>
7110 PR tree-optimization/36129
7111 * tree-ssa-ccp.c: Include value-prof.h.
7112 (execute_fold_all_builtins): Call gimple_remove_stmt_histograms if
7113 built-in function was folded to a constant.
7114 * Makefile.in (tree-ssa-ccp.c): Depend on value-prof.h
7116 2008-05-09 Jan Sjodin <jan.sjodin@amd.com>
7117 Sebastian Pop <sebastian.pop@amd.com>
7119 * tree-scalar-evolution.c: Document instantiate_scev.
7120 (instantiate_parameters_1): Renamed instantiate_scev_1.
7121 Don't use the same loop for instantiation_loop and evolution_loop.
7122 (instantiate_scev): New.
7123 (instantiate_parameters): Moved...
7124 (resolve_mixers): Update call to instantiate_scev_1 to pass the
7125 same loop twice. Maintains the semantics for this function.
7126 * tree-scalar-evolution.h (instantiate_scev): Declare.
7127 (instantiate_parameters): ...here. Now static inline.
7128 * tree-data-ref.c (dr_analyze_indices): Call instantiate_scev
7129 instead of resolve_mixers.
7131 2008-05-09 Maxim Kuvyrkov <maxim@codesourcery.com>
7133 * rtl-factoring.c (collect_pattern_seqs): Fix typo.
7135 2008-05-09 Tomas Bily <tbily@suse.cz>
7137 * config/pa/pa.c (reloc_needed): Use CASE_CONVERT.
7138 * tree-cfg.c (verify_expr, verify_gimple_expr): Likewise.
7139 * tree-ssa-structalias.c (get_constraint_for): Likewise.
7140 * c-common.c (c_common_truthvalue_conversion): Likewise.
7141 * tree-object-size.c (compute_object_offset): Likewise.
7142 * tree-inline.c (estimate_num_insns_1): Likewise.
7143 * varasm.c (const_hash_1, compare_constant, copy_constant)
7144 (compute_reloc_for_constant, output_addressed_constants)
7145 (initializer_constant_valid_p): Likewise.
7146 * c-omp.c (check_omp_for_incr_expr): Likewise.
7147 * gimplify.c (gimplify_expr): Likewise.
7148 * c-typeck.c (c_finish_return): Likewise.
7149 * tree-vectorizer.c (supportable_widening_operation)
7150 (supportable_narrowing_operation): Likewise.
7151 * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Likewise.
7152 * matrix-reorg.c (can_calculate_expr_before_stmt): Likewise.
7153 * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
7154 * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info)
7155 (descr_info_loc): Likewise.
7156 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
7157 * fold-const.c (operand_equal_p, make_range, extract_muldiv_1)
7158 (fold_unary): Likewise.
7159 * builtins.c (get_pointer_alignment): Likewise.
7160 * tree-scalar-evolution.c (interpret_rhs_modify_stmt)
7161 (instantiate_parameters_1): Likewise.
7162 * tree.c (expr_align, stabilize_reference): Likewise.
7163 * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
7164 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
7165 * convert.c (strip_float_extensions): Use CONVERT_EXPR_P.
7166 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
7167 * config/alpha/alpha.c (va_list_skip_additions): Likewise.
7168 * c-common.c (c_alignof_expr, check_function_arguments_recurse):
7170 * tree-ssa.c (tree_ssa_useless_type_conversion): Likewise.
7171 * varasm.c (initializer_constant_valid_p, output_constant): Likewise.
7172 * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
7173 (forward_propagate_addr_expr_1, forward_propagate_addr_expr)
7174 (forward_propagate_comparison)
7175 (tree_ssa_forward_propagate_single_use_vars): Likewise.
7176 * cfgexpand.c (discover_nonconstant_array_refs_r): Likewise.
7177 * emit-rtl.c (component_ref_for_mem_expr)
7178 (set_mem_attributes_minus_bitpos): Likewise.
7179 * tree-ssa-phiopt.c (conditional_replacement): Likewise.
7180 * gimplify.c (gimplify_conversion, goa_lhs_expr_p, gimplify_expr):
7182 * c-typeck.c (default_function_array_conversion, build_indirect_ref)
7183 (build_function_call, pointer_diff, build_compound_expr)
7184 (c_finish_return): Likewise.
7185 * tree-vect-analyze.c (vect_determine_vectorization_factor): Likewise.
7186 * matrix-reorg.c (get_inner_of_cast_expr, may_flatten_matrices_1):
7188 * tree-ssa-ifcombine.c (recognize_single_bit_test): Likewise.
7189 * expr.c (is_aligning_offset): Likewise.
7190 * tree-ssa-alias.c (is_escape_site): Likewise.
7191 * tree-stdarg.c (va_list_counter_bump, check_va_list_escapes)
7192 (check_all_va_list_escapes): Likewise.
7193 * tree-ssa-loop-ivopts.c (determine_base_object)
7194 (determine_common_wider_type): Likewise.
7195 * dojump.c (do_jump): Likewise.
7196 * tree-ssa-sccvn.c (simplify_unary_expression): Likewise.
7197 * tree-gimple.c (is_gimple_cast): Likewise.
7198 * fold-const.c (decode_field_reference, )
7199 (fold_sign_changed_comparison, fold_unary, fold_comparison)
7200 (fold_binary): Likewise.
7201 * tree-ssa-alias-warnings.c (find_alias_site_helper)
7202 (already_warned_in_frontend_p): Likewise.
7203 * builtins.c (get_memory_rtx, fold_builtin_next_arg): Likewise.
7204 * tree.c (really_constant_p, get_unwidened): Likewise.
7205 * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
7206 * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
7207 * tree-vrp.c (register_edge_assert_for_2, register_edge_assert_for_1):
7209 * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Use
7211 (CONVERT_EXPR_P): Define.
7212 (CASE_CONVERT): Define.
7214 2008-05-08 Kenneth Zadeck <zadeck@naturalbridge.com>
7217 * dce.c (deletable_insn_p): Do not delete calls if df_in_progress.
7218 (delete_unmarked_insns): When deleting a call, call
7219 delete_unreachable_blocks.
7220 * rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
7221 RTL_CONST_OR_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P): Fixed doc.
7223 2008-05-08 Richard Guenther <rguenther@suse.de>
7225 * doc/invoke.texi (-fdump-tree-salias): Remove documentation.
7226 (-ftree-salias): Likewise.
7227 (salias-max-implicit-fields): Remove param documentation.
7228 (salias-max-array-elements): Likewise.
7229 * tree-pass.h (pass_create_structure_vars): Remove.
7230 * params.h (SALIAS_MAX_IMPLICIT_FIELDS): Remove.
7231 (SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
7232 * tree-ssa-alias.c (create_structure_vars): Remove.
7233 (gate_structure_vars): Likewise.
7234 (pass_create_structure_vars): Likewise.
7235 (gate_build_alias): Likewise.
7236 (pass_build_alias): Adjust to run always and dump the function.
7237 * common.opt (ftree-salias): Hide.
7238 * passes.c (init_optimization_passes): Remove
7239 pass_create_structure_vars, adjust comment.
7240 * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): Remove.
7241 (PARAM_SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
7242 * opts.c (decode_options): Do not set flag_tree_salias.
7243 (common_handle_option): Add OPT_ftree_salias to the backward
7244 compatibility section.
7246 2008-05-08 Richard Guenther <rguenther@suse.de>
7248 * tree-flow-inline.h (var_can_have_subvars): Move ...
7249 * tree-ssa-structalias.c (var_can_have_subvars): ... here.
7250 * tree-flow.h (var_can_have_subvars): Remove.
7251 (push_fields_onto_fieldstack): Remove.
7252 (sort_fieldstack): Likewise.
7253 (struct fieldoff): Move ...
7254 * tree-ssa-structalias.c (struct fieldoff): ... here. Remove
7255 alias_set and base_for_components fields.
7256 (sort_fieldstack): Make static.
7257 (push_fields_onto_fieldstack): Likewise. Remove code that
7258 handles anything but RECORD_TYPEs. Remove alias_set and
7259 base_for_components handling.
7260 (create_variable_info_for): Adjust.
7262 2008-05-08 Seongbae Park <seongbae.park@gmail.com>
7264 * common.opt (Wframe-larger-than=): Shorten the help message
7266 * doc/invoke.texi (Wframe-larger-than=): Add more description.
7268 2008-05-08 Rafael Espindola <espindola@google.com>
7270 * tree-complex.c (expand_complex_div_wide): Don't create CONDs that
7272 * tree-gimple.c (is_gimple_condexpr): Check that the expression doesn't
7273 trap and that both operands are gimple values.
7274 (canonicalize_cond_expr_cond): Use is_gimple_condexpr.
7275 * gcc/tree-eh.c (tree_could_trap_p): Correctly detect if a comparison
7278 2008-05-08 Richard Sandiford <rsandifo@nildram.co.uk>
7280 * read-rtl.c (join_c_conditions): Return the first string if the
7281 two strings are equal.
7283 2008-05-08 Richard Sandiford <rsandifo@nildram.co.uk>
7285 * gensupport.h (pred_data): Add a "num_codes" field.
7286 (add_predicate_code): Declare.
7287 * gensupport.c (add_predicate_code): New function.
7288 (std_pred_table): Add an "allows_const_p" field.
7289 (std_preds): Set this field for predicates that allow RTX_CONST_OBJs.
7290 Remove the (incomplete) list of such codes from the codes field.
7291 (init_predicate_table): Use add_predicate_code. Add all
7292 RTX_CONST_OBJs if allows_const_p is true.
7293 * genrecog.c (process_define_predicate): Use add_predicate_code.
7295 2008-05-08 David Daney <ddaney@avtrex.com>
7296 Richard Sandiford <rsandifo@nildram.co.uk>
7298 * config/mips/mips.md (mips_expand_compare_and_swap_12): Handle
7299 special case of constant zero operands.
7300 * config/mips/mips.c (mips_expand_compare_and_swap_12): Zero extend
7301 old and new values. Special case constant zero values.
7302 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Skip 'sync' if compare
7304 (MIPS_COMPARE_AND_SWAP_12): Handle constant zero operands.
7305 (MIPS_COMPARE_AND_SWAP_12_0): New macro.
7307 2008-05-08 Paolo Bonzini <bonzini@gnu.org>
7310 * simplify-rtx.c (simplify_plus_minus): Create CONST of
7311 similar RTX_CONST_OBJ before CONST_INT.
7313 2008-05-08 Steve Ellcey <sje@cup.hp.com>
7315 * stmt.c (expand_stack_restore): Change sa mode if needed.
7317 2008-05-08 Richard Guenther <rguenther@suse.de>
7319 * config/i386/i386-protos.h (ix86_return_in_memory): Adjust
7320 return type to bool.
7321 (ix86_sol10_return_in_memory): Likewise.
7322 (ix86_i386elf_return_in_memory): Likewise.
7323 (ix86_i386interix_return_in_memory): Likewise.
7324 * config/i386/i386.c (ix86_return_in_memory): Likewise.
7325 (ix86_sol10_return_in_memory): Likewise.
7326 (ix86_i386elf_return_in_memory): Likewise.
7327 (ix86_i386interix_return_in_memory): Likewise.
7329 2008-05-08 Kai Tietz <kai.tietz@onevision.com>
7332 * calls.c (compute_argument_block_size ): Add ATTRIBUTE_UNUSED to
7334 (emit_library_call_value_1): Add ATTRIBUTE_UNUSED to variable fndecl.
7335 * target-def.h: Check that TARGET_RETURN_IN_MEMORY isn't
7338 2008-05-08 Richard Guenther <rguenther@suse.de>
7340 * tree-data-ref.c (dr_analyze_alias): Do not set DR_SUBVARS.
7341 * tree-data-ref.h (struct dr_alias): Remove subvars field.
7342 (DR_SUBVARS): Remove.
7343 * tree-dfa.c (dump_subvars_for): Remove.
7344 (debug_subvars_for): Likewise.
7345 (dump_variable): Do not dump subvars.
7346 (remove_referenced_var): Do not remove subvars.
7347 * tree-flow-inline.h (clear_call_clobbered): SFTs no longer exist.
7348 (lookup_subvars_for_var): Remove.
7349 (get_subvars_for_var): Likewise.
7350 (get_subvars_at): Likewise.
7351 (get_first_overlapping_subvar): Likewise.
7352 (overlap_subvar): Likewise.
7353 * tree-flow.h (subvar_t): Remove.
7354 (struct var_ann_d): Remove subvars field.
7355 * tree-ssa-alias.c (mark_aliases_call_clobbered): Remove queued
7356 argument. Remove special handling of SFTs.
7357 (compute_tag_properties): Likewise.
7358 (set_initial_properties): Likewise.
7359 (compute_call_clobbered): Likewise.
7360 (count_mem_refs): Likewise.
7361 (compute_memory_partitions): Likewise.
7362 (compute_flow_insensitive_aliasing): Likewise.
7363 (setup_pointers_and_addressables): Likewise.
7364 (new_type_alias): Likewise.
7365 (struct used_part): Remove.
7366 (used_portions): Likewise.
7367 (struct used_part_map): Likewise.
7368 (used_part_map_eq): Likewise.
7369 (used_part_map_hash): Likewise.
7370 (free_used_part_map): Likewise.
7371 (up_lookup): Likewise.
7372 (up_insert): Likewise.
7373 (get_or_create_used_part_for): Likewise.
7374 (create_sft): Likewise.
7375 (create_overlap_variables_for): Likewise.
7376 (find_used_portions): Likewise.
7377 (create_structure_vars): Likewise.
7378 * tree.def (STRUCT_FIELD_TAG): Remove.
7379 * tree.h (MTAG_P): Adjust.
7380 (struct tree_memory_tag): Remove base_for_components and
7381 unpartitionable flags.
7382 (struct tree_struct_field_tag): Remove.
7383 (SFT_PARENT_VAR): Likewise.
7384 (SFT_OFFSET): Likewise.
7385 (SFT_SIZE): Likewise.
7386 (SFT_NONADDRESSABLE_P): Likewise.
7387 (SFT_ALIAS_SET): Likewise.
7388 (SFT_UNPARTITIONABLE_P): Likewise.
7389 (SFT_BASE_FOR_COMPONENTS_P): Likewise.
7390 (union tree_node): Remove sft field.
7391 * alias.c (get_alias_set): Remove special handling of SFTs.
7392 * print-tree.c (print_node): Remove handling of SFTs.
7393 * tree-dump.c (dequeue_and_dump): Likewise.
7394 * tree-into-ssa.c (mark_sym_for_renaming): Likewise.
7395 * tree-nrv.c (dest_safe_for_nrv_p): Remove special handling of SFTs.
7396 * tree-predcom.c (set_alias_info): Do not set subvars.
7397 * tree-pretty-print.c (dump_generic_node): Do not handle SFTs.
7398 * tree-ssa-loop-ivopts.c (get_ref_tag): Likewise.
7399 * tree-ssa-operands.c (access_can_touch_variable): Likewise.
7400 (add_vars_for_offset): Remove.
7401 (add_virtual_operand): Remove special handling of SFTs.
7402 (add_call_clobber_ops): Likewise.
7403 (add_call_read_ops): Likewise.
7404 (get_asm_expr_operands): Likewise.
7405 (get_modify_stmt_operands): Likewise.
7406 (get_expr_operands): Likewise.
7407 (add_to_addressable_set): Likewise.
7408 * tree-ssa.c (verify_ssa_name): Do not handle SFTs.
7409 * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
7410 * tree-vect-transform.c (vect_create_data_ref_ptr): Do not set subvars.
7411 * tree.c (init_ttree): Remove STRUCT_FIELD_TAG initialization.
7412 (tree_code_size): Remove STRUCT_FIELD_TAG handling.
7413 (tree_node_structure): Likewise.
7414 * tree-ssa-structalias.c (set_uids_in_ptset): Remove special
7416 (find_what_p_points_to): Likewise.
7418 2008-05-08 Sa Liu <saliu@de.ibm.com>
7420 * config/spu/spu.md: Fixed subti3 pattern.
7422 2008-05-08 Richard Guenther <rguenther@suse.de>
7425 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
7426 sure to create a representative for trailing arrays for PTA.
7428 2008-05-08 Richard Guenther <rguenther@suse.de>
7431 * fold-const.c (operand_equal_p): Two objects which types
7432 differ in pointerness are not equal.
7434 2008-05-08 Kai Tietz <kai.tietz@onevision.com>
7436 * calls.c (compute_argument_block_size): Add argument tree fndecl.
7437 (OUTGOING_REG_PARM_STACK_SPACE): Add function type argument.
7438 (emit_library_call_value_1): Add new variable fndecl initialized by
7439 NULL_TREE. It should be the decl type of orgfun, but this information
7440 seems not to be available here, so it uses the default calling abi.
7441 * config/arm/arm.c (arm_return_in_memory): Add fntype argumen.
7442 * config/arm/arm.h (RETURN_IN_MEMORY): Replace RETURN_IN_MEMORY
7443 by TARGET_RETURN_IN_MEMORY.
7444 * config/i386/i386-interix.h: Likewise.
7445 * config/i386/i386.h: Likewise.
7446 * config/i386/i386elf.h: Likewise.
7447 * config/i386/ptx4-i.h: Likewise.
7448 * config/i386/sol2-10.h: Likewise.
7449 * config/i386/sysv4.h: Likewise.
7450 * config/i386/vx-common.h: Likewise.
7451 * config/cris/cris.h: Removed #if 0 clause.
7452 * config/arm/arm-protos.h (arm_return_in_memory): Add fntype argument.
7453 * config/i386/i386-protos.h (ix86_return_in_memory): Add fntype
7455 (ix86_sol10_return_in_memory): Likewise.
7456 (ix86_i386elf_return_in_memory): New.
7457 (ix86_i386interix_return_in_memory): New.
7458 * config/mt/mt-protos.h (mt_return_in_memory): New.
7459 * config/mt/mt.c: Likewise.
7460 * config/mt/mt.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
7461 (RETURN_IN_MEMORY): Replace by TARGET_RETURN_IN_MEMORY.
7462 * config/bfin/bfin.h: Likewise.
7463 * config/bfin/bfin-protos.h (bfin_return_in_memory): Add fntype
7465 * config/bfin/bfin.c: Likewise.
7466 * config/pa/pa.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
7467 * config/alpha/unicosmk.h: Likewise.
7468 * config/i386/cygming.h: Likewise.
7469 * config/iq2000/iq2000.h: Likewise.
7470 * config/mips/mips.h: Likewise.
7471 * config/mn10300/mn10300.h: Likewise.
7472 * config/rs6000/rs6000.h: Likewise.
7473 * config/score/score.h: Likewise.
7474 * config/spu/spu.h: Likewise.
7475 * config/v850/v850.h: Likewise.
7476 * defaults.h: Likewise.
7477 * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Adjust documentation.
7478 * expr.c (emit_block_move): Adjust use of
7479 OUTGOING_REG_PARM_STACK_SPACE.
7480 * function.c (STACK_DYNAMIC_OFFSET): Adjust use of
7481 OUTGOING_REG_PARM_STACK_SPACE.
7482 * targhooks.c (default_return_in_memory): Remove RETURN_IN_MEMORY.
7484 2008-05-08 Jakub Jelinek <jakub@redhat.com>
7486 * tree-parloops.c (create_parallel_loop): Set OMP_RETURN_NOWAIT
7487 on OMP_RETURN for OMP_FOR.
7490 * dwarf2out.c (dw_expand_expr, common_check): Removed.
7491 (fortran_common): New function.
7492 (gen_variable_die): Call fortran_common instead of common_check,
7493 adjust for it returning tree instead of rtx. Formatting.
7495 2008-05-07 Kenneth Zadeck <zadeck@naturalbridge.com>
7499 * see.c (see_copy_insn): Copy new pure const attributes for new call.
7500 * c-decl.c (merge_decls): Ditto.
7501 * postreload.c (record_opr_changes): Change CONST_OR_PURE_CALL_P
7502 to RTL_CONST_OR_PURE_CALL_P.
7503 * tree.c (define_local_buitin): Rename DECL_IS_PURE to DECL_PURE_P.
7504 Initialized DECL_LOOPING_CONST_PURE.
7505 (process_call_operands): Set tree_side_effects properly.
7506 * tree.h (TREE_READONLY_DECL_P): Removed.
7507 (DECL_IS_PURE): Renamed to DECL_PURE_P.
7508 (DECL_LOOPING_OR_CONST_P): New macro.
7509 (struct tree_function_decl): Added looping_const_or_pure_p.
7511 (ECF_LOOPING_OR_CONST_P): New macro.
7512 * rtlanal.c (pure_const_p): Removed.
7513 * builtins.c (expand_builtin): Rename DECL_IS_PURE to DECL_PURE_P.
7514 * reorg.c (delete_prior_computation) Changed CONST_OR_PURE_CALL_P
7515 to RTL_CONST_CALL_P.
7516 * ipa-pure-const.c (pure_const_state_e): Added looping field.
7517 (check_decl, check_tree, check_call, scan_function): Initialize
7519 (analyze_function): Rename DECL_IS_PURE to DECL_PURE_P.
7520 (static_execute): Set looping true for recursive functions.
7521 Undo setting state to IPA_NEITHER for recursive functions.
7523 * ifcvt.c (noce_can_store_speculate_p): Changed
7524 CONST_OR_PURE_CALL_P and pure_call_p to RTL_CONST_CALL_P or
7525 RTL_CONST_OR_PURE_CALL_P.
7526 * dse.c (scan_insn): Ditto.
7527 * local-alloc.c (validate_equiv_mem, memref_used_between_p): Ditto.
7528 * gcse.c (oprs_not_seen_p) Changed CONST_OR_PURE_CALL_P to
7529 RTL_CONST_OR_PURE_CALL_P.
7530 (store_killed_in_insn): Changed CONST_OR_PURE_CALL_P and
7531 pure_call_p to RTL_CONST_CALL_P.
7532 * gimplify.c (gimplify_call_expr): Clear side effects for
7533 non-looping pure and constant calls.
7534 * calls.c (emit_call_1): Set rtl flags from ecf flags.
7535 (flags_from_decl_or_type): Set ecf flags from decl flags.
7536 (initialize_argument_information): Turn off
7537 ECF_LOOPING_CONST_OR_PURE when turning off ECF_CONST.
7538 Change const to pure if callee_copies is true rather than just
7540 (expand_call): Turn off ECF_LOOPING_PURE_CONST_CALL and remove old
7541 way of marking pure calls.
7542 (emit_library_call_value_1): Turn off ECF_LOOPING_PURE_CONST_CALL.
7543 Remove hack that was supposed to fix pr7335 and remove old
7544 way of marking pure calls.
7545 * emit-rtl.c (emit_copy_of_insn_after): Copy RTL_CONST_CALL_P,
7546 RTL_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P.
7547 * cselib.c (cselib_process_insn): Changed CONST_OR_PURE_CALL_P to
7548 RTL_CONST_OR_PURE_CALL_P.
7549 * tree-ssa-pre.c (can_value_number_call): Fixed spacing.
7550 * loop-invariant.c (find_exits, find_invariant_bb): Changed
7551 CONST_OR_PURE_CALL_P to RTL_CONST_OR_PURE_CALL_P.
7552 * sched-deps.c (schedule_analyze): Ditto.
7553 * rtl.h (struct rtx_def): Use call field, unchanging field, and
7554 return_val field of calls to represent pure and const function info.
7555 (CONST_OR_PURE_CALL_P): Deleted macro.
7556 (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
7557 RTL_LOOPING_CONST_OR_PURE_CALL_P, RTL_CONST_OR_PURE_P): New macros.
7558 * tree-inline.c (copy_body_r): Changed TREE_READONLY_DECL_P to
7560 * tree-optimize.c (execute_fixup_cfg): Added test for
7561 ECF_LOOPING_CONST_OR_PURE.
7562 * c-common.c (handle_pure_attribute): Changed DECL_IS_PURE to
7564 * tree-cfg.c (update_call_expr_flags): Do not clear tree side
7565 effects for looping pure or const calls.
7566 (verify_gimple_expr): Added verification code.
7567 * config/alpha/alpha.c (alpha_legitimize_address,
7568 alpha_emit_xfloating_libcall): Changed CONST_OR_PURE_CALL_P to
7570 * config/s390/s390.c (s390_emit_tls_call_insn): Ditto.
7571 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Ditto.
7572 * config/mips/mips.c (mips_call_tls_get_addr): Ditto.
7573 * cfgrtl.c (need_fake_edge_p): Changed CONST_OR_PURE_CALL_P to
7574 RTL_CONST_OR_PURE_CALL_P.
7575 * dce.c (deletable_insn_p): Allow non looping, non sibling, pure
7576 and const calls to be deleted.
7578 2008-05-07 Uros Bizjak <ubizjak@gmail.com>
7581 * config/i386/mmx.md (mmx_subv2sf3): New expander.
7582 (*mmx_subv2sf3): Rename from mmx_subv2sf3 insn pattern.
7583 (*mmx_eqv2sf3): Rename from mmx_eqv2sf3 insn pattern.
7584 (mmx_eqv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
7585 to handle nonimmediate operands.
7586 (*mmx_paddwd): Rename from mmx_paddwd insn pattern.
7587 (mmx_paddwd): New expander. Use ix86_fixup_binary_operands_no_copy
7588 to handle nonimmediate operands.
7589 (*mmx_pmulhrwv4hi3): Rename from mmx_pmulhrwv4hi3 insn pattern.
7590 (mmx_pmulhrwv4hi3): New expander. Use
7591 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7592 (*sse2_umulv1siv1di3): Rename from sse2_umulv1siv1di3 insn pattern.
7593 (sse2_umulv1siv1di3): New expander. Use
7594 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7595 (*mmx_eq<mode>3): Rename from mmx_eq<mode>3 insn pattern.
7596 (mmx_eq<mode>3): New expander. Use
7597 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7598 (*mmx_uavgv8qi3): Rename from mmx_uavgv8qi3 insn pattern.
7599 (mmx_uavgv8qi3): New expander. Use
7600 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7601 (*mmx_uavgv4hi3): Rename from mmx_uavgv4hi3 insn pattern.
7602 (mmx_uavgv4hi3): New expander. Use
7603 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7605 * config/i386/sse.md
7606 (sse_movhlps_exp): New expander. Use ix86_fixup_binary_operands
7607 to handle nonimmediate operands.
7608 (sse_movlhps_exp): New expander. Use ix86_fixup_binary_operands
7609 to handle nonimmediate operands.
7610 (sse_loadhps_exp): New expander. Use ix86_fixup_binary_operands
7611 to handle nonimmediate operands.
7612 (sse_loadlps_exp): New expander. Use ix86_fixup_binary_operands
7613 to handle nonimmediate operands.
7614 (sse2_unpckhpd_exp): New expander. Use
7615 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7616 (sse2_unpcklpd_exp): New expander. Use
7617 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7618 (sse_loadhpd_exp): New expander. Use ix86_fixup_binary_operands
7619 to handle nonimmediate operands.
7620 (sse_loadlpd): New expander. Use ix86_fixup_binary_operands
7621 to handle nonimmediate operands.
7622 (*sse2_<plusminus_insn><mode>3): Rename from
7623 sse2_<plusminus_insn><mode>3 insn pattern.
7624 (sse2_<plusminus_insn><mode>3): New expander. Use
7625 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7626 (*sse2_umulv2siv2di3): Rename from sse2_umulv2siv2di3 insn pattern.
7627 (sse2_umulv2siv2di3): New expander. Use
7628 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7629 (*sse4_1_mulv2siv2di3): Rename from sse4_1_mulv2siv2di3 insn pattern.
7630 (sse4_1_mulv2siv2di3): New expander. Use
7631 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7632 (*sse2_pmaddwd): Rename from sse2_pmaddwd insn pattern.
7633 (sse2_pmaddwd): New expander. Use
7634 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7635 (*sse2_eq<mode>3): Rename from sse2_eq<mode>3 insn pattern.
7636 (sse2_eq<mode>3): New expander. Use
7637 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7638 (*sse4_1_eqv2di3): Rename from sse4_1_eqv2di3 insn pattern.
7639 (sse4_1_eqv2di3): New expander. Use
7640 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7641 (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
7642 (sse2_uavgv16qi3): New expander. Use
7643 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7644 (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
7645 (sse2_uavgv16qi3): New expander. Use
7646 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7647 (*sse2_uavgv8hi3): Rename from sse2_uavgv8hi3 insn pattern.
7648 (sse2_uavgv8hi3): New expander. Use
7649 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7650 (*ssse3_pmulhrswv8hi3): Rename from ssse3_pmulhrswv8hi3 insn pattern.
7651 (ssse3_pmulhrswv8hi3): New expander. Use
7652 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7653 (*ssse3_pmulhrswv4hi3): Rename from ssse3_pmulhrswv4hi3 insn pattern.
7654 (ssse3_pmulhrswv4hi3): New expander. Use
7655 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7657 (<sse>_vm<plusminus_insn><mode>3): Do not use ix86_binary_operator_ok.
7658 (<sse>_vmmul<mode>3): Ditto.
7659 (divv4sf3): Do not use ix86_fixup_binary_operands_no_copy.
7661 (ssse3_pmaddubsw128): Use register_operand for operand 1.
7662 (ssse3_pmaddubsw): Ditto.
7664 * config/i386/i386.c (struct_builtin_description)
7665 [IX86_BUILTIN_LOADHPS]: Use CODE_FOR_sse_loadhps_exp.
7666 [IX86_BUILTIN_STOREHPS]: Use CODE_FOR_sse_loadlps_exp.
7667 [IX86_BUILTIN_LOADHPD]: Use CODE_FOR_sse2_loadhpd_exp.
7668 [IX86_BUILTIN_LOADLPD]: Use CODE_FOR_sse2_loadlpd_exp.
7669 [IX86_BUILTIN_MOVHLPS]: Use CODE_FOR_sse_movhlps_exp.
7670 [IX86_BUILTIN_MOVLHPS]: Use CODE_FOR_sse_movlhps_exp.
7671 [IX86_BUILTIN_UNPCKHPD]: Use FOR_sse2_unpckhpd_exp.
7672 [IX86_BUILTIN_UNPCKLPD]: Use FOR_sse2_unpcklpd_exp.
7673 (ix86_fixup_binary_operands): Assert that src1
7674 and src2 must have the same mode when swapped.
7675 (ix86_expand_binop_builtin): Do not use ix86_fixup_binary_operands
7676 and ix86_binary_operator_ok. Do not force operands in registers
7679 2008-05-07 Jan Hubicka <jh@suse.cz>
7681 * cgraph.c (dump_cgraph_node): Update.
7682 * cgraph.h (cgraph_local_info): Break out inline summary.
7683 * cgraphunit.c (cgraph_process_new_functions): Use inliner analysis
7685 * ipa-inline (inline_summary): New accestor function.
7686 (cgraph_clone_inlined_nodes, cgraph_check_inline_limits,
7687 cgraph_decide_inlining, compute_inline_parameters): Update.
7688 * ipa.c (cgraph_remove_unreachable_nodes): Remove statistics.
7690 2008-05-07 Maxim Kuvyrkov <maxim@codesourcery.com>
7692 Cleanup ColdFire scheduling support and add V4 pipeline model.
7694 * config/m68k/m68k.md (UNSPEC_TIE): New constant.
7695 (define_attr cpu): Add cfv4 value.
7696 (define_attr type, define_attr type1): Merge into a single 'type'
7697 attribute. Update all uses.
7698 (define_attr opx_type, define_attr opy_type, define_attr opx_access):
7699 Rearrange and update. Rename value 'reg' to 'Rn', add value 'FPn'.
7701 (define_attr opx_mem, define_attr opy_mem): Remove.
7702 (define_attr op_mem): Clean up, update comment.
7703 (define_attr size): Use specific values instead of general int.
7704 (define_attr guess, define_attr split): Remove. Update all uses.
7705 (movdf_internal, tstsi_internal, tsthi_internal, tstqi_internal,
7706 tst<mode>_68881, pushexthisi_const, movsi_const0_68000_10,
7707 movsi_const0_68040_60, movsi_const0, movsi_cf, movstrictqi_cf,
7708 zero_extendhisi2_cf, zero_extendqisi2_cfv4, cfv4_extendhisi2,
7709 68k_extendhisi2, extendqihi2, cfv4_extendqisi2, 68k_extendqisi2,
7710 floatsi<mode>2_68881, ftrunc<mode>2_68881, ftrunc<mode>2_cf,
7711 fix<mode>qi2_68881, fix<mode>hi2_68881, fix<mode>si2_68881,
7712 adddi_dishl32, addsi3_5200, add<mode>3_floatsi_68881,
7713 add<mode>3_floathi_68881, add<mode>3_floatqi_68881,
7714 add<mode>3_68881, add<mode>3_cf, subdi_dishl32, subsi3,
7715 sub<mode>3_floatsi_68881, sub<mode>3_floathi_68881,
7716 sub<mode>3_floatqi_68881, sub<mode>3_68881, sub<mode>3_cf,
7717 mulhi3, mulhisi3, mulhisisi3_s, mulsi3_68020, mulsi3_cf,
7718 umulhisi3, mulhisisi3_z, mul<mode>3_floatsi_68881,
7719 mul<mode>3_floathi_68881, mul<mode>3_floatqi_68881, fmul<mode>3_cf,
7720 div<mode>3_cf, sqrt<mode>2_cf, abs<mode>2_cf, clzsi2,
7721 one_cmplsi2_5200, subreghi1ashrdi_const32, ashrsi3, lshrsi3,
7722 bsetmemqi, bsetmemqi_ext, bclrmemqi, bclrmemqi_ext,
7723 beq, bne, bgt, blt, bordered, bunordered, buneq, bunge, bungt, bunle,
7724 bunlt, bltgt, tablejump_internal, call, non_symbolic_call_value,
7725 symbolic_call_value_jsr, symbolic_call_value_bsr, link):
7726 Update or set attributes.
7727 (stack_tie): New fake instruction.
7729 * config/m68k/m68k.h (TUNE_CFV4): New macro.
7730 (m68k_sched_attr_size): Update declaration.
7731 (m68k_sched_attr_type2): Remove.
7732 (m68k_sched_address_bypass_p, m68k_sched_indexed_address_bypass_p):
7733 Declare new bypass predicates.
7735 * config/m68k/m68k.c (m68k_sched_issue_rate,
7736 m68k_sched_first_cycle_multipass_dfa_lookahead): Declare hook
7738 (TARGET_SCHED_ISSUE_RATE,
7739 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Override hooks.
7740 (override_options): Handle scheduling for ColdFire V4 core.
7741 (m68k_expand_prologue): Emit stack_tie.
7742 (enum attr_op_type): Split value 'OP_TYPE_REG' to 'OP_TYPE_RN' and
7743 'OP_TYPE_FPN'. Update all uses.
7744 (sched_guess_p): Remove.
7745 (sched_address_type): Handle symbolic addresses.
7746 (sched_get_operand): New static function.
7747 (sched_operand_type): Merge into sched_attr_op_type.
7748 (sched_attr_op_type): Handle FP registers, handle quick constants,
7750 (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type): Update.
7751 (m68k_sched_attr_size): Update. Move logic to ...
7752 (sched_get_attr_size_int): New static function.
7753 (sched_get_opxy_mem_type): New static function.
7754 (m68k_sched_attr_op_mem): Update.
7755 (m68k_sched_attr_type2): Remove.
7756 (sched_cfv4_bypass_data): New static variable.
7757 (m68k_sched_adjust_cost): Handle ColdFire V4 bypass.
7758 (m68k_sched_issue_rate): Implement scheduler hook.
7759 (struct _sched_ib: enabled_p): New field.
7760 (m68k_sched_variable_issue): Update. Handle V4.
7761 (SCHED_DUMP_TODO, SCHED_DUMP_DONE, SCHED_DUMP_NOTHING,
7762 sched_dump_class_func_t, sched_dump_split_class,
7763 sched_dump_dfa_guess_unit_code, sched_dump_dfa_state,
7764 sched_dump_dfa_class, m68k_sched_dump): Remove.
7765 (m68k_sched_first_cycle_multipass_dfa_lookahead): Implement scheduler
7767 (m68k_sched_init_global): Remove statisctics dumping, introduce
7768 sanity check that all instructions have pipeline reservations. Handle
7770 (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
7771 Handle ColdFire V4 core.
7772 (sched_mem_operand_p, sched_get_reg_operand, sched_get_mem_operand):
7773 New static functions.
7774 (m68k_sched_address_bypass_p): New bypass predicate.
7775 (sched_get_indexed_address_scale): New static function.
7776 (m68k_sched_indexed_address_bypass_p): New bypass predicate.
7778 * cf.md: Update comments.
7779 (define_attr type2): Remove. Use 'type' attribute instead.
7781 (cf_ib): Rename to cfv123_ib. Update all uses.
7782 (cf_oep): Rename to cfv123_oep. Update all uses.
7783 (cf_chr): Rename to cfv123_chr. Update all uses.
7784 (cf_mem): Rename to cfv123_mem. Update all uses.
7785 (cf_mac): Move to more appropriate place.
7786 (cfv123_guess): New automaton and cpu_unit.
7787 (cfv123_*, cfv12_*, cfv1_*, cfv2_*, cfv3_*): Use type attribute.
7788 Update uses of 'size' attribute. Handle before reload scheduling.
7789 (cfv123_guess): New dummy reservation for unhandled instructions.
7790 (cfv4_*): Pipeline description of ColdFire V4 core.
7791 (ignore): New reservation to handle 'ignore' type.
7793 2008-05-07 Ian Lance Taylor <iant@google.com>
7796 * gimplify.c (find_single_pointer_decl_1): Don't look through
7798 (find_single_pointer_decl): Adjust comments.
7800 2008-05-07 Jakub Jelinek <jakub@redhat.com>
7803 * fold-const.c (fold_binary): Use STRIP_SIGN_NOPS instead of
7804 STRIP_NOPS on arguments even for MIN_EXPR and MAX_EXPR.
7807 * omp-low.c (expand_omp_atomic_pipeline): Load value using the
7808 integral type rather than floating point, then VIEW_CONVERT_EXPR
7809 to the floating point type.
7811 2008-05-07 Uros Bizjak <ubizjak@gmail.com>
7813 * config/i386/i386.c (ix86_expand_copysign): Force non-zero constant
7814 TFmode op0 to register.
7816 2008-05-07 Alan Modra <amodra@bigpond.net.au>
7818 * c-decl.c (grokdeclarator): Comment typo.
7820 2008-05-06 Aldy Hernandez <aldyh@redhat.com>
7822 * tree-flow.h: Remove prototype for computed_goto_p.
7823 * tree-cfg.c (computed_goto_p): Make static.
7825 2008-05-06 H.J. Lu <hongjiu.lu@intel.com>
7828 * config/i386/i386.c (contains_128bit_aligned_vector_p): Renamed to ...
7829 (contains_aligned_value_p): This. Handle _Decimal128.
7830 (ix86_function_arg_boundary): Only align _Decimal128 to its
7831 natural boundary and handle it properly.
7833 2008-05-06 Martin Jambor <mjambor@suse.cz>
7835 * ipa-cp.c (ipcp_method_orig_node): Renamed to ipcp_get_orig_node.
7836 (ipcp_method_is_cloned): Renamed to ipcp_node_is_clone
7837 (ipcp_method_set_orig_node): Removed.
7838 (ipcp_cval_get_cvalue_type): Removed.
7839 (ipcp_method_get_scale): Renamed to ipcp_get_node_scale.
7840 (ipcp_method_set_scale): Renamed to ipcp_set_node_scale.
7841 (ipcp_cval_set_cvalue_type): Removed.
7842 (ipcp_cval_get_cvalue): Removed.
7843 (ipcp_cval_set_cvalue): Removed.
7844 (ipcp_type_is_const): Renamed to ipcp_lat_is_const.
7845 (ipcp_cval_equal_cvalues): Renamed to ipcp_lats_are_equal
7846 (ipcp_lats_are_equal): Changed parameters to two ipcp_lattice's
7847 (ipcp_cval_meet): Renamed to ipa_lattice_meet
7848 (ipcp_cval_changed): Changed to use ipcp_lat_is_const
7849 (ipcp_method_cval): Renamed to ipcp_get_ith_lattice
7850 (ipcp_get_ith_lattice): Changed parameters.
7851 (ipcp_cval_compute): Renamed to ipcp_lattice_from_jfunc
7852 (ipcp_lattice_from_jfunc): Changed parameters.
7853 (ipcp_redirect): Local lattice pointer instead of lattice type variable.
7854 (ipcp_method_cval_print): Added temporary variable info.
7855 (ipcp_redirect): Removed already unused local variable caller.
7856 (ipcp_redirect): New temporary variable orig_callee_info
7857 (ipcp_redirect): Removed newly unused local variable callee.
7858 (ipcp_redirect): Removed (a bit confusing) local variable type.
7859 (ipcp_insert_stage): Added local variable info.
7860 (ipcp_cval_changed): Renamed to ipcp_lattice_changed, parameters
7862 (ipcp_formal_create): Removed.
7863 (ipcp_method_cval_set): Removed.
7864 (ipcp_propagate_stage): Renamed lattice variables.
7865 (ipcp_method_cval_set_cvalue_type): Removed.
7866 (ipcp_method_cval_print): Renamed to ipcp_print_all_lattices
7867 (ipcp_print_all_lattices): Changed printed strings to refer to
7868 lattices rather than cvals.
7869 (ipcp_method_cval_init): Renamed to ipcp_initialize_node_lattices
7870 (ipcp_propagate_const): Changed formal parameters.
7871 (build_const_val): Changed formal parameters.
7872 (ipcp_insert_stage): Removed useless variable cvalue
7873 (build_const_val): Changed formal parameters.
7874 (ipcp_method_compute_scale): Renamed to ipcp_compute_node_scale
7875 (ipcp_after_propagate): Renamed to ipcp_change_tops_to_bottom
7876 (ipcp_callsite_param_print): Renamed to ipcp_print_all_jump_functions
7877 (ipcp_profile_mt_count_print): Renamed to ipcp_print_func_profile_counts
7878 (ipcp_print_func_profile_counts): Changed string from "method" to
7880 (ipcp_profile_cs_count_print): Renamed to ipcp_print_call_profile_counts
7881 (ipcp_profile_edge_print): Renamed to ipcp_print_edge_profiles
7882 (ipcp_profile_bb_print): Renamed to ipcp_print_bb_profiles
7883 (ipcp_structures_print): Renamed to ipcp_print_all_structures
7884 (ipcp_profile_print): Renamed to ipcp_print_profile_data
7885 (ipcp_lat_is_const): Changed parameters and made inline.
7886 (ipcp_replace_map_create): Renamed to ipcp_create_replace_map
7887 (ipcp_redirect): Renamed to ipcp_need_redirect_p
7888 (ipcp_need_redirect_p): Calls ipcp_lat_is_const instead of using
7889 the predicate condition directly
7890 (ipcp_propagate_stage): Added local variable args. Removed local
7891 variable callee. (Both are mere code simplifications.)
7892 (ipcp_method_dont_insert_const): Renamed to
7893 ipcp_node_not_modifiable_p.
7894 (ipcp_node_not_modifiable_p): Made inline.
7895 (ipcp_cloned_create): Renamed to ipcp_init_cloned_node
7896 (ipcp_propagate_const): Renamed to ipcp_propagate_one_const
7897 (ipcp_print_all_lattices): Removed variable cvalue
7898 (ipcp_method_scale_print): Renamed to ipcp_function_scale_print
7901 2008-05-06 Olivier Hainque <hainque@adacore.com>
7903 * tree-sra.c (try_instantiate_multiple_fields): Early return
7904 if field has POINTER_TYPE.
7906 2008-05-06 Kai Tietz <kai.tietz@onevision.com>
7908 * config/i386/i386.c (output_set_got): Fix for x86_64 output_emit_asm
7909 by using 'q' specifier for instruction.
7910 (ix86_file_end): Replaced case TARGET_64BIT_MS_ABI by TARGET_64BIT.
7912 2008-05-06 Anatoly Sokolov <aesok@post.ru>
7914 * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
7915 Change mode of zero_extract from QImode to HImode.
7916 (sign bit tests peepholes): (Ditto.).
7918 2008-05-06 Uros Bizjak <ubizjak@gmail.com>
7920 * config/i386/mmx.md: Remove double backslashes from asm templates.
7921 (*mmx_addv2sf3): Rename from mmx_addv2sf3 insn pattern.
7922 (mmx_addv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
7923 to handle nonimmediate operands.
7924 (*mmx_mulv2sf3): Rename from mmx_mulv2sf3 insn pattern.
7925 (mmx_mulv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
7926 to handle nonimmediate operands.
7927 (*mmx_<code>v2sf3_finite): New insn pattern.
7928 (*mmx_<code>v2sf3): Rename from mmx_<code>v2sf3 insn pattern.
7929 (mmx_<code>v2sf3): New expander. Use
7930 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7931 (mmx_<plusminus_insn><mode>3): New expander. Use
7932 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7933 (*mmx_<plusminus_insn><mode>3): New insn pattern.
7934 (mmx_add<mode>3): Removed.
7935 (mmx_ssadd<mode>3): Ditto.
7936 (mmx_usadd<mode>3): Ditto.
7937 (mmx_sub<mode>3): Ditto.
7938 (mmx_sssub<mode>3): Ditto.
7939 (mmx_ussub<mode>3): Ditto.
7940 (*mmx_mulv4hi3): Rename from mmx_mulv4hi3 insn pattern.
7941 (mmx_mulv4hi3): New expander. Use ix86_fixup_binary_operands_no_copy
7942 to handle nonimmediate operands.
7943 (*mmx_smulv4hi3_highpart): Rename from mmx_smulv4hi3_highpart
7945 (mmx_smulv4hi3_highpart): New expander. Use
7946 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7947 (*mmx_umulv4hi3_highpart): Rename from mmx_umulv4hi3_highpart
7949 (mmx_umulv4hi3_highpart): New expander. Use
7950 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7951 (*mmx_<code>v4hi3): Rename from mmx_<code>v4hi3 insn pattern.
7952 (mmx_<code>v4hi3): New expander. Use
7953 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7954 (*mmx_<code>v8qi3): Rename from mmx_<code>v8qi3 insn pattern.
7955 (mmx_<code>v8qi3): New expander. Use
7956 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7957 (*mmx_<code><mode>3): Rename from mmx_<code><mode>3 insn pattern.
7958 (mmx_<code><mode>3): New expander. Use
7959 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7961 2008-05-05 Jan Hubicka <jh@suse.cz>
7963 PR tree-optimization/36118
7964 * passes.c (pass_init_dump_file): Fix dump header.
7966 2008-05-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
7969 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't create
7970 VCE for function decls.
7972 2008-05-05 H.J. Lu <hongjiu.lu@intel.com>
7974 * config/i386/sse.md (sse2_<plusminus_insn><mode>3): Fix a typo.
7976 2008-05-05 H.J. Lu <hongjiu.lu@intel.com>
7978 * config/i386/i386.md (sat_plusminus): New.
7979 (plusminus_insn): Likewise.
7980 (plusminus_mnemonic): Likewise.
7982 (comm): Add ss_plus, us_plus, ss_minus and us_minus.
7983 (*<addsub><mode>3_cc_overflow): Renamed to ...
7984 (*<plusminus_insn><mode>3_cc_overflow): This.
7985 (*<addsub>si3_zext_cc_overflow): Renamed to ...
7986 (*<plusminus_insn>si3_zext_cc_overflow): This.
7988 * config/i386/sse.md (<addsub><mode>3): Renamed to ...
7989 (<plusminus_insn><mode>3): This.
7990 (*<addsub><mode>3): Renamed to ...
7991 (*<plusminus_insn><mode>3): This.
7992 (<sse>_vm<addsub><mode>3): Renamed to ...
7993 (<sse>_vm<plusminus_insn><mode>3): This.
7994 (sse3_h<addsub>v4sf3): Renamed to ...
7995 (sse3_h<plusminus_insn>v4sf3): This.
7996 (sse3_h<addsub>v2df3): Renamed to ...
7997 (sse3_h<plusminus_insn>v2df3): This.
7998 (<plusminus_insn><mode>3): New.
7999 (*<plusminus_insn><mode>3): Likewise.
8000 (sse2_<plusminus_insn><mode>3): Likewise.
8001 (add<mode>): Removed.
8002 (*add<mode>3): Likewise.
8003 (sse2_ssadd<mode>3): Likewise.
8004 (sse2_usadd<mode>3): Likewise.
8005 (sub<mode>3): Likewise.
8006 (*sub<mode>3): Likewise.
8007 (sse2_sssub<mode>3): Likewise.
8008 (sse2_ussub<mode>3): Likewise.
8010 2008-05-05 Benjamin Kosnik <bkoz@redhat.com>
8012 * gthr-single.h: Add in required interface elements as per gthr.h.
8013 Add stub types for __gthread_key_t, __gthread_once_t. Add defines
8014 for __GTHREAD_ONCE_INIT, __GTHREAD_RECURSIVE_MUTEX_INIT.
8015 Generalize UNUSED macro.
8016 (__gthread_once): Add.
8017 (__gthread_key_create): Add.
8018 (__gthread_key_delete): Add.
8019 (__gthread_getspecific): Add.
8020 (__gthread_setspecific): Add.
8022 2008-05-05 Andrew Pinski <Andrew.Pinski@playstation.sony.com>
8024 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If we have
8025 the same size types for the indirect reference on the rhs, then
8028 2008-05-05 Uros Bizjak <ubizjak@gmail.com>
8030 * config/i386/i386.md
8031 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Use only
8032 one insn template instead of template series.
8033 (*xordi_1_rex64): Ditto.
8034 (*xordi_2_rex64): Ditto.
8036 2008-05-05 Ira Rosen <irar@il.ibm.com>
8038 PR tree-optimization/36119
8039 * tree-vect-transform.c (vectorizable_assignment): Set NCOPIES to 1
8042 2008-06-04 Jan Hubicka <jh@suse.cz>
8044 tree-optimization/36100
8045 * tree-pass.h (pass_O0_always_inline): Declare.
8046 * ipa-inline.c (inline_transform): Remove dead code.
8047 (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
8048 pass_O0_always_inline): New.
8049 * passes.c (init_optimization_passes): Add pass_O0_always_inline.
8051 2008-05-04 Kai Tietz <kai.tietz@onevision.com>
8053 * config/i386/i386.c (x86_output_mi_thunk): Use movq alternative
8054 mnemonic in this_param move for TARGET_64BIT.
8056 2008-05-04 Uros Bizjak <ubizjak@gmail.com>
8058 * config/i386/i386.md (*strmovsi_1): Simplify asm alternatives.
8059 (*strmovsi_rex_1): Ditto.
8060 (*strsetsi_1): Ditto.
8061 (*strsetsi_rex_1): Ditto.
8063 (add<mode>cc): Macroize expander from addqicc, addhicc, addsicc and
8064 adddicc expanders using SWI mode iterator.
8066 2008-05-04 H.J. Lu <hongjiu.lu@intel.com>
8069 * config/i386/i386.c (ix86_expand_special_args_builtin): Remove three
8072 2008-05-04 David S. Miller <davem@davemloft.net>
8074 * config.gcc (sparc*-*-*): Always set need_64bit_hwint to yes.
8075 (sparc*-*-linux*): Use linux.h in tm_file.
8076 (sparc-*-linux*): If 'enabled_targets' is 'all', build a bi-arch
8077 compiler defaulting to 32-bit.
8078 (sparc*-*-*): Remove explicit target settings of need_64bit_hwint,
8080 * config/sparc/linux.h: Remove definitions now obtained
8081 properly from linux.h
8082 * config/sparc/linux64.h: Likewise.
8083 (ASM_CPU_DEFAULT_SPEC): Change this to ASM_CPU64_DEFAULT_SPEC, we
8084 don't want this setting for 32-bit builds in a biarch compiler.
8085 * doc/install.texi: Add sparc-linux to list of targets
8086 supporting --enable-targets=all.
8088 2008-05-03 Andrew Pinski <pinskia@gmail.com>
8090 * Makefile.in (tree-ssa-phiprop.o): Fix dependencies.
8092 2008-05-03 H.J. Lu <hongjiu.lu@intel.com>
8094 * config/i386/i386.c (ix86_builtin_type): Move V4SI_FTYPE_V4SF
8095 after V4SI_FTYPE_V8HI.
8096 (ix86_init_mmx_sse_builtins): Move case V4HI_FTYPE_V4HI after
8097 case V4SI_FTYPE_V2DF.
8099 2008-05-03 Kenneth Zadeck <zadeck@naturalbridge.com>
8101 * doc/invoke.texi (max-flow-memory-locations): Removed.
8102 * params.def (PARAM_MAX_FLOW_MEMORY_LOCATIONS): Removed.
8104 2008-05-03 Richard Guenther <rguenther@suse.de>
8107 * opts.c (set_Wstrict_aliasing): Handle the turn-off case.
8109 2008-05-02 David S. Miller <davem@davemloft.net>
8111 * config.gcc (need_64bit_hwint): Document libcpp dependency.
8113 2008-05-02 Simon Baldwin <simonb@google.com>
8116 * c-common.h (warn_array_subscript_range): Removed.
8117 * c-common.c (warn_array_subscript_range): Ditto.
8118 * tree-vrp.c (check_array_ref): Revert to ignoring arrays with size 2.
8119 * c-typeck.c (build_array_ref): Remove warn_array_subscript_range.
8121 2008-05-02 H.J. Lu <hongjiu.lu@intel.com>
8123 * config/i386/i386.c (ix86_special_builtin_type): New.
8124 (bdesc_special_args): Likewise.
8125 (ix86_expand_special_args_builtin): Likewise.
8126 (ix86_init_mmx_sse_builtins): Updated.
8127 (ix86_expand_builtin): Updated.
8128 (ix86_expand_store_builtin): Removed.
8129 (ix86_expand_unop_builtin): Likewise.
8131 * config/i386/mm3dnow.h (__v2sf): Moved to ...
8132 * config/i386/mmintrin.h (__v2sf): Here.
8134 * config/i386/xmmintrin.h (_mm_loadh_pi): Replace __v2si with
8136 (_mm_loadl_pi): Likewise.
8137 (_mm_storeh_pi): Replace __v2si with __v2sf.
8138 (_mm_storel_pi): Likewise.
8140 * doc/extend.texi: Correct __builtin_ia32_loadhps,
8141 __builtin_ia32_loadlps, __builtin_ia32_storehps,
8142 __builtin_ia32_storelps, __builtin_ia32_loadhpd and
8143 __builtin_ia32_loadlpd.
8145 2008-05-02 H.J. Lu <hongjiu.lu@intel.com>
8147 * config/i386/i386.c (ix86_builtin_type): Add FLOAT_FTYPE_FLOAT,
8148 V4SF_FTYPE_V4SF_VEC_MERGE and V2DF_FTYPE_V2DF_VEC_MERGE.
8149 (bdesc_args): Updated. Add scalar SSE builtins with vec_merge.
8150 (ix86_init_mmx_sse_builtins): Updated.
8151 (ix86_expand_args_builtin): Likewise.
8152 (ix86_expand_builtin): Likewise.
8153 (ix86_expand_unop1_builtin): Renamed to ...
8154 (ix86_expand_unop_vec_merge_builtin): This.
8156 2008-05-01 Jan Hubicka <jh@suse.cz>
8159 * ipa-inline.c (inline_generate_summary): Make static.
8160 (inline_transform): Do not call inlining at -O0; make static.
8161 * passes.c (execute_todo): Add sanity check.
8162 (execute_one_ipa_transform_pass): Execute proper flags.
8164 2008-05-01 Eric Botcazou <ebotcazou@adacore.com>
8166 * tree.h (TYPE_NONALIASED_COMPONENT): Expand comment.
8167 (DECL_NONADDRESSABLE_P): Likewise.
8168 * alias.c (record_component_aliases): Fix comment.
8170 2008-05-01 Simon Baldwin <simonb@google.com>
8172 * c-common.h (warn_array_subscript_range): New function.
8173 * c-common.c (warn_array_subscript_range): Ditto.
8174 * tree-vrp.c (check_array_ref): Corrected code to agree with
8175 comment, ignoring only arrays of size 0 or size 1.
8176 * c-typeck.c (build_array_ref): Call warn_array_subscript_range.
8178 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
8180 * config/i386/i386.c (ix86_builtin_type): Replace
8181 DI_FTYPE_DI_DI_INT with V1DI2DI_FTYPE_V1DI_V1DI_INT.
8182 (bdesc_args): Updated.
8183 (ix86_init_mmx_sse_builtins): Likewise.
8184 (ix86_expand_args_builtin): Likewise.
8186 * config/i386/tmmintrin.h (_mm_alignr_pi8): Replace long long
8189 * doc/extend.texi: Correct __builtin_ia32_palignr.
8191 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
8194 * config/i386/i386.c (bdesc_crc32): Removed.
8195 (ix86_expand_crc32): Likewise.
8196 (ix86_builtin_type): Replace V2DI2TI_FTYPE_V2DI2TI_INT with
8197 V2DI2TI_FTYPE_V2DI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT with
8198 V2DI2TI_FTYPE_V2DI_V2DI_INT. Add UINT64_FTYPE_UINT64_UINT64,
8199 UINT_FTYPE_UINT_UINT, UINT_FTYPE_UINT_USHORT and
8200 UINT_FTYPE_UINT_UCHAR.
8201 (bdesc_args): Updated. Add crc32 builtins.
8202 (ix86_init_mmx_sse_builtins): Updated.
8203 (ix86_expand_args_builtin): Updated to support subreg.
8205 * doc/extend.texi: Correct __builtin_ia32_crc32di.
8207 2008-05-01 Jan Hubicka <jh@suse.cz>
8209 * tree-pass.h (opt_pass): Add IPA_PASS.
8210 (varpool_node, cgraph_node): Forward declare.
8211 (ipa_opt_pass): Define.
8212 (pass_ipa_inline): Turn into ipa_opt_pass.
8213 (pass_apply_inline): Remove.
8214 * ipa-inline.c (pass_ipa_inline): Turn into ipa_opt_pass.
8215 (apply_inline): Turn into ....
8216 (inline_transform): ... this one.
8217 (inline_generate_summary): New function.
8218 (pass_apply_inline): Remove.
8219 * function.h (ipa_opt_pass): Forward declare structure; typedef;
8221 (struct function): Add ipa_transforms_to_apply.
8222 * passes.c (register_one_dump_file): Work on IPA_PASS.
8223 (init_optimization_passes): Remove pass_inline_parameters and
8225 (pass_init_dump_file, pass_fini_dump_file): Break out from ....
8226 (execute_one_pass) ... here; apply transforms when possible.
8227 (add_ipa_transform_pass, execute_ipa_summary_asses,
8228 execute_one_ipa_transform_pass): New.
8229 (execute_ipa_pass_list): Update for IPA_PASS type.
8231 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
8233 * config/i386/i386.c (ix86_builtin_type): Add
8234 V2DI_FTYPE_V2DI_V16QI, V2DI_FTYPE_V2DI_UINT_UINT and
8235 V2DI_FTYPE_V2DI_V2DI_UINT_UINT.
8236 (bdesc_args): Add SSE4a builtins.
8237 (ix86_init_mmx_sse_builtins): Updated.
8238 (ix86_expand_args_builtin): Likewise.
8239 (ix86_expand_builtin): Likewise.
8241 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
8243 * config/i386/i386.c (ix86_builtin_type): Add
8244 V8HI_FTYPE_V8HI_V8HI_COUNT, V8HI_FTYPE_V8HI_SI_COUNT,
8245 V4SI_FTYPE_V4SI_V4SI_COUNT, V4SI_FTYPE_V4SI_SI_COUNT,
8246 V4HI_FTYPE_V4HI_V4HI_COUNT, V4HI_FTYPE_V4HI_SI_COUNT,
8247 V2DI_FTYPE_V2DI_V2DI_COUNT, V2DI_FTYPE_V2DI_SI_COUNT,
8248 V2SI_FTYPE_V2SI_V2SI_COUNT, V2SI_FTYPE_V2SI_SI_COUNT,
8249 V1DI_FTYPE_V1DI_V1DI_COUNT, V1DI_FTYPE_V1DI_SI_COUNT,
8250 V8HI_FTYPE_V8HI_INT, V4SI_FTYPE_V4SI_INT, V4HI_FTYPE_V4HI_INT,
8251 V2DI2TI_FTYPE_V2DI2TI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT
8252 and DI_FTYPE_DI_DI_INT.
8253 (bdesc_args): Add MMX/SSE shift, shuffle and palignr builtins.
8254 (ix86_init_mmx_sse_builtins): Updated.
8255 (ix86_expand_args_builtin): Likewise.
8256 (ix86_expand_builtin): Likewise.
8257 (ix86_expand_binop_imm_builtin): Removed.
8259 * doc/extend.texi: Correct __builtin_ia32_palignr128.
8261 2008-04-30 Richard Guenther <rguenther@suse.de>
8263 PR tree-optimization/32921
8264 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Disambiguate with TBAA.
8266 2008-04-30 Richard Sandiford <rsandifo@nildram.co.uk>
8268 * config/arm/arm.c (arm_unwind_emit): Use
8269 crtl->all_throwers_are_sibcalls instead of
8270 cfun->all_throwers_are_sibcalls.
8271 (arm_output_fn_unwind): Likewise.
8272 * config/frv/frv.c (frv_stack_info): Use crtl->uses_pic_offset_table
8273 instead of cfun->uses_pic_offset_table.
8274 (frv_expand_prologue): Likewise.
8275 (frv_frame_pointer_required): Likewise.
8276 (frv_expand_fdpic_call): Likewise.
8277 (frv_emit_movsi): Likewise.
8278 * config/iq2000/iq2000.c (iq2000_expand_prologue): Use
8279 cfun->returns_pcc_struct instead of
8280 current_function_returns_pcc_struct.
8281 * config/m32c/m32c.c (need_to_save): Use crtl->calls_eh_return
8282 instead of cfun->calls_eh_return.
8283 (m32c_pushm_popm): Likewise.
8284 * config/xtensa/xtensa.h (cfun->calls_alloca): Remove bogus
8285 "extern" declaration.
8287 2008-04-30 Richard Guenther <rguenther@suse.de>
8289 PR tree-optimization/21636
8290 * tree-ssa-ccp.c (ccp_fold): Handle &p->x with p being a
8292 (evaluate_stmt): Print the likely value.
8293 (ccp_visit_stmt): Avoid excessive vertical spacing.
8295 2008-04-30 Rafael Espindola <espindola@google.com>
8297 * builtins.c (fold_call_expr): Return realret.
8298 * tree-ssa-threadedge.c
8299 (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
8300 __builtin_object_size.
8302 2008-04-30 Seongbae Park <seongbae.park@gmail.com>
8304 * gcc.c (wrapper_string): New variable.
8305 (insert_wrapper): New function.
8306 (execute): New option -wrapper.
8307 * doc/invoke.texi (Overall Options): New driver option -wrapper.
8309 2008-04-30 Nathan Froyd <froydnj@codesourcery.com>
8311 * config/rs6000/crtresgpr.asm, config/rs6000/crtresxgpr.asm,
8312 config/rs6000/crtsavgpr.asm, config/rs6000/crtresfpr.asm,
8313 config/rs6000/crtresxfpr.asm, config/rs6000/crtsavfpr.asm: Break out
8315 * config/rs6000/crtsavres.asm: ...here. Remove unneeded file.
8316 * config/rs6000/e500crtres32gpr.asm, config/rs6000/e500crtres64gpr.asm,
8317 config/rs6000/e500crtres64gprctr.asm,
8318 config/rs6000/e500crtrest32gpr.asm, config/rs6000/e500crtrest64gpr.asm,
8319 config/rs6000/e500crtresx32gpr.asm, config/rs6000/e500crtresx64gpr.asm,
8320 config/rs6000/e500crtsav32gpr.asm, config/rs6000/e500crtsav64gpr.asm,
8321 config/rs6000/e500crtsav64gprctr.asm,
8322 config/rs6000/e500crtsavg32gpr.asm, config/rs6000/e500crtsavg64gpr.asm,
8323 config/rs6000/e500crtsavg64gprctr.asm: New files.
8324 * config/rs6000/t-ppccomm: Add build rules for new files.
8325 (LIB2FUNCS_STATIC_EXTRA): Add new files.
8326 * config/rs6000/t-netbsd: Add build rules for new files.
8327 (LIB2FUNCS_STATIC_EXTRA): New variable.
8328 * config/rs6000/sysv4.h (ENDFILE_SPEC): Don't include crtsavres.o
8329 (CRTSAVRES_DEFAULT_SPEC): Likewise.
8330 * config/rs6000/netbsd.h (ENDFILE_SPEC): Likewise.
8332 2008-04-30 H.J. Lu <hongjiu.lu@intel.com>
8334 * config/i386/i386.c (ix86_builtin_type): Add
8335 FLOAT128_FTYPE_FLOAT128_FLOAT128, V16QI_FTYPE_V16QI_V16QI,
8336 V16QI_FTYPE_V8HI_V8HI, V8QI_FTYPE_V8QI_V8QI,
8337 V8QI_FTYPE_V4HI_V4HI, V8HI_FTYPE_V8HI_V8HI,
8338 V8HI_FTYPE_V16QI_V16QI, V8HI_FTYPE_V4SI_V4SI,
8339 V4SI_FTYPE_V4SI_V4SI, V4SI_FTYPE_V8HI_V8HI,
8340 V4SI_FTYPE_V4SF_V4SF, V4SI_FTYPE_V2DF_V2DF,
8341 V4HI_FTYPE_V4HI_V4HI, V4HI_FTYPE_V8QI_V8QI,
8342 V4HI_FTYPE_V2SI_V2SI, V4SF_FTYPE_V4SF_V4SF,
8343 V4SF_FTYPE_V4SF_V4SF_SWAP, V4SF_FTYPE_V4SF_V2SI,
8344 V4SF_FTYPE_V4SF_V2DF, V4SF_FTYPE_V4SF_DI,
8345 V4SF_FTYPE_V4SF_SI, V2DI_FTYPE_V2DI_V2DI,
8346 V2DI_FTYPE_V16QI_V16QI, V2DI_FTYPE_V4SI_V4SI,
8347 V2DI_FTYPE_V2DF_V2DF, V2SI_FTYPE_V2SI_V2SI,
8348 V2SI_FTYPE_V4HI_V4HI, V2SI_FTYPE_V2SF_V2SF,
8349 V2DF_FTYPE_V2DF_V2DF, V2DF_FTYPE_V2DF_V2DF_SWAP,
8350 V2DF_FTYPE_V2DF_V4SF, V2DF_FTYPE_V2DF_DI,
8351 V2DF_FTYPE_V2DF_SI, V2SF_FTYPE_V2SF_V2SF,
8352 V1DI_FTYPE_V1DI_V1DI, V1DI_FTYPE_V8QI_V8QI and
8353 V1DI_FTYPE_V2SI_V2SI.
8354 (bdesc_2arg): Moved to ...
8356 (ix86_init_mmx_sse_builtins): Updated.
8357 (ix86_expand_args_builtin): Updated. Take a pointer
8358 to const struct builtin_description. Handle comparison
8360 (ix86_expand_sse_compare): Take a new argument for swapping operands.
8361 (ix86_expand_builtin): Updated.
8363 * config/i386/sse.md (ssse3_pmaddubswv8hi3): Renamed to ...
8364 (ssse3_pmaddubsw128): This.
8365 (ssse3_pmaddubswv4hi3): Renamed to ...
8366 (ssse3_pmaddubsw): This.
8368 * doc/extend.texi (__builtin_ia32_packsswb128): Correct prototype.
8369 (__builtin_ia32_packssdw128): Likewise.
8370 (__builtin_ia32_packuswb128): Likewise.
8371 (__builtin_ia32_pmaddubsw): Likewise.
8372 (__builtin_ia32_pmaddubsw128): Likewise.
8374 2008-04-30 Richard Guenther <rguenther@suse.de>
8376 PR tree-optimization/14847
8377 * tree-ssa-ifcombine.c (get_name_for_bit_test): New helper function.
8378 (recognize_bits_test): Use it.
8379 (recognize_single_bit_test): Likewise.
8381 2008-04-30 Martin Jambor <mjambor@suse.cz>
8383 * ipa-cp.c (ipcp_init_stage): Calls ipa_set_called_with_variable_arg
8384 instead of setting number of formal parameters to zero.
8385 (ipcp_init_stage): Do not set the number of actual parameters to zero
8387 (ipcp_propagate_stage): Explicitly skipping all calls to nodes
8388 which are called with variable number of arguments.
8389 (ipcp_insert_stage): Explicitely skipping all nodes which are
8390 called with variable number of arguments.
8391 (ipcp_callsite_param_print): Skipps callsites to nodes with varaible
8392 number of parameters.
8394 * ipa-prop.h (struct ipa_node_params): Added flag
8395 called_with_var_arguments
8396 (ipa_set_param_count): Added. Changed sole setter to use it.
8397 (ipa_get_param_count): Added. All readers of param_count
8398 converted to use it instead.
8399 (ipa_set_called_with_variable_arg): Added.
8400 (ipa_is_called_with_var_arguments): Added.
8401 (ipa_get_ith_param): Added. All readers of param_decls converted
8403 (ipa_set_cs_argument_count): Added, sole writer to argument_count
8405 (ipa_get_cs_argument_count): Added, all readers of argument_count
8407 (ipa_get_ith_jump_func): Added. Accessors of jump values changed
8410 * ipa-prop.h (struct ipcp_formal): Renamed to ipcp_lattice
8411 (struct ipcp_lattice): Renamed cval_type to type
8412 (struct ipa_node_params): ipcp_cval renamed to ipcp_lattices
8414 * ipa-cp.c (ipcp_cval_get_cvalue): Changed return value to tree
8415 (ipcp_cval_set_cvalue): Changed type of parameter value to tree
8416 (ipcp_insert_stage): Changed the type of variable cvalue to tree
8417 (ipcp_replace_map_create): Changed the type of parameter cvalue to tree
8418 (build_const_val): Changed the type of parameter cvalue to tree
8419 (ipcp_propagate_const): Changed the type of parameter cvalue to tree
8420 (ipcp_method_cval_set_cvalue_type): Renamed parameter cval_type1 to type
8422 * ipa-prop.h (struct ipcp_formal): Replaced cvalue with tree called
8425 * ipa-prop.c (ipa_methodlist_init): Renamed to ipa_init_func_list
8426 (ipa_methodlist_not_empty): Removed, the sole user now checks directly
8427 (ipa_add_method): Renamed to ipa_push_func_to_list
8428 (ipa_remove_method): Renamed to ipa_pop_func_from_list
8429 (ipa_callsite_param_count): Removed.
8430 (ipa_callsite_param_count_set): Removed.
8431 (ipa_callsite_param): Removed.
8432 (ipa_callsite_callee): Removed.
8433 (ipa_callsite_compute_param): Renamed to ipa_compute_jump_functions
8434 (ipa_callsite_compute_count): Renamed to ipa_count_arguments
8435 (ipa_method_formal_count): Removed.
8436 (ipa_method_formal_count_set): Removed.
8437 (ipa_method_get_tree): Removed.
8438 (ipa_method_tree_map_create): Removed.
8439 (ipa_method_compute_tree_map): Renamed to ipa_create_param_decls_array
8440 (ipa_create_param_decls_array): Creates the array itself
8441 (ipa_create_param_decls_array): Temporary variable info instead of
8443 (ipa_method_formal_compute_count): Renamed to ipa_count_formal_params
8444 (ipa_method_compute_modify): Renamed to ipa_detect_param_modifications
8445 (get_type): Removed.
8446 (ipa_jf_get_info_type): Removed.
8447 (ipa_node_create): Renamed to ipa_create_node_params
8448 (ipa_free): Renamed to ipa_free_all_node_params
8449 (ipa_nodes_create): Renamed to ipa_create_all_node_params
8450 (ipa_edges_create): Renamed to ipa_create_all_edge_args
8451 (ipa_edges_free): Renamed to ipa_free_all_edge_args
8452 (ipa_nodes_free): Integrated into ipa_free_all_node_params and removed
8453 (ipa_free_all_node_params): Deallocation to jump_functions moved to
8454 ipa_free_all_edge_args
8455 (ipa_method_tree_print): Renamed to ipa_print_all_tree_maps
8456 (ipa_method_modify_print): Renamed to ipa_print_all_params_modified
8457 (ipa_create_methodlist_node): Removed.
8458 (ipa_methodlist_method): Removed.
8459 (ipa_methodlist_method_set): Removed.
8460 (ipa_methodlist_next_method): Removed.
8461 (ipa_methodlist_next_method_set): Removed.
8462 (ipa_method_is_modified): Removed.
8463 (ipa_method_modify_create): Removed.
8464 (ipa_method_modify_init): Temporary variable info instead of a few
8466 (ipa_detect_param_modifications): Temporary variable info instead of
8468 (ipa_compute_jump_functions): Temporary variable info instead of
8470 (ipa_method_modify_set): Removed.
8471 (ipa_method_tree_map): Renamed to ipa_get_param_decl_index
8472 (ipa_get_param_decl_index): Now accepts struct ipa_node_params rather
8473 than craph_node as the first parameter.
8474 (ipa_method_modify_stmt): Renamed to ipa_check_stmt_modifications
8475 (ipa_method_modify_init): Removed.
8476 (ipa_compute_jump_functions): Added a temp variable instead of
8477 repeatadly dereferencing the cgraph_edge.aux pointer
8478 (ipa_callsite_param_set_type): Removed.
8479 (ipa_compute_jump_functions): i renamed to index and moved to
8481 (ipa_callsite_param_set_info_type_formal): Removed.
8482 (ipa_callsite_param_set_info_type): Removed.
8483 (ipa_callsite_param_map_create): Removed.
8484 (ipa_callsite_tree): Removed.
8485 (ipa_callsite_caller): Removed.
8486 (ipa_pop_func_from_list): return_method removed to return_func
8488 * ipa-prop.h (enum cvalue_type): Renamed to ipa_lattice_type,
8489 prefixed all values with IPA_. Changed all users.
8490 (enum jump_func_type): Rnamed UNKNOWN_IPATYPE to IPA_UNKNOWN,
8491 CONST_IPATYPE to IPA_CONST, CONST_IPATYPE_REF to IPA_CONST_REF
8492 and FORMAL_IPATYPE IPA_PASS_THROUGH.
8493 (union parameter_info): Renamed to jump_func_value.
8494 (union jump_func_value): Renamed value to constant
8495 (struct ipa_jump_func): Renamed info_type to value
8496 (struct ipa_node): Renamed to ipa_node_params
8497 (struct ipa_node_params): Renamed ipa_arg_num to param_count
8498 (struct ipa_node_params): Renamed ipa_param_tree to param_decls
8499 (struct ipa_node_params): Renamed ipa_mod to modified_flags
8500 (struct ipa_edge): Renamed to ipa_edge_args
8501 (struct ipa_edge_args): Renamed ipa_param_num to argument_count
8502 (struct ipa_edge_args): Renamed ipa_param_map to jump_functions
8503 (struct ipa_methodlist): Renamed to ipa_func_list
8504 (struct ipa_func_list): method_p renamed to node, next_method
8506 (ipa_methodlist_p): Removed, switched all users to struct pointer
8507 (IS_VALID_TREE_MAP_INDEX): Renamed to IS_VALID_JUMP_FUNC_INDEX
8509 2008-04-30 Alan Modra <amodra@bigpond.net.au>
8511 * config/rs6000/rs6000.c (ALWAYS_RESTORE_ALTIVEC_BEFORE_POP): Define.
8512 (rs6000_emit_epilogue): Use backchain to restore only when we
8513 have a large frame. Make use of frame pointer to restore if we
8514 have one. Handle ALWAYS_RESTORE_ALTIVEC_BEFORE_POP.
8516 2008-04-29 Paolo Bonzini <bonzini@gnu.org>
8518 * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
8519 Add mode to zero_extract.
8520 (sign bit tests peepholes): (Ditto.).
8522 2008-04-29 H.J. Lu <hongjiu.lu@intel.com>
8524 * config/i386/i386.c (ix86_builtins): Replace Prescott New
8525 Instructions in comments with SSE3.
8526 (ix86_builtin_type): This. Add FLOAT128_FTYPE_FLOAT128,
8527 INT64_FTYPE_V4SF, INT64_FTYPE_V2DF, INT_FTYPE_V16QI,
8528 INT_FTYPE_V8QI, INT_FTYPE_V4SF, INT_FTYPE_V2DF,
8529 V16QI_FTYPE_V16QI, V8HI_FTYPE_V8HI, V8HI_FTYPE_V16QI,
8530 V8QI_FTYPE_V8QI, V4SI_FTYPE_V4SI, V4SI_FTYPE_V16QI,
8531 V4SI_FTYPE_V4SF, V4SI_FTYPE_V8HI, V4SI_FTYPE_V2DF,
8532 V4HI_FTYPE_V4HI, V4SF_FTYPE_V4SF, V4SF_FTYPE_V4SI,
8533 V4SF_FTYPE_V2DF, V2DI_FTYPE_V2DI, V2DI_FTYPE_V16QI,
8534 V2DI_FTYPE_V8HI, V2DI_FTYPE_V4SI, V2DF_FTYPE_V2DF,
8535 V2DF_FTYPE_V4SI, V2DF_FTYPE_V4SF, V2DF_FTYPE_V2SI,
8536 V2SI_FTYPE_V2SI, V2SI_FTYPE_V4SF, V2SI_FTYPE_V2SF,
8537 V2SI_FTYPE_V2DF, V2SF_FTYPE_V2SF and V2SF_FTYPE_V2SI.
8538 (bdesc_sse_args): Renamed to ...
8539 (bdesc_args): This. Add IX86_BUILTIN_PF2ID, IX86_BUILTIN_PFRCP,
8540 IX86_BUILTIN_PFRSQRT, IX86_BUILTIN_PI2FD, IX86_BUILTIN_PF2IW,
8541 IX86_BUILTIN_PSWAPDSI, IX86_BUILTIN_PSWAPDSF and
8543 (bdesc_1arg): Moved to ...
8545 (ix86_init_mmx_sse_builtins): Updated. Replace Prescott New
8546 Instructions in comments with SSE3.
8547 (ix86_expand_sse_operands_builtin): Renamed to ...
8548 (ix86_expand_args_builtin): This. Updated.
8549 (ix86_expand_unop1_builtin): Update comments.
8550 (ix86_expand_builtin): Updated.
8552 2008-04-29 Richard Guenther <rguenther@suse.de>
8554 PR tree-optimization/36078
8555 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
8556 Update virtual SSA form after cleaning up the CFG.
8558 2008-04-29 Richard Guenther <rguenther@suse.de>
8561 * fold-const.c (fold_binary): Fold (A + A) * C to A * 2*C.
8563 2008-04-29 Richard Guenther <rguenther@suse.de>
8565 * tree-ssa-alias.c (finalize_ref_all_pointers): Remove.
8566 (compute_may_aliases): Do not call finalize_ref_all_pointers.
8567 (compute_flow_insensitive_aliasing): Do not treat
8568 PTR_IS_REF_ALL pointers special.
8569 (get_smt_for): Likewise.
8570 (may_alias_p): Re-structure.
8571 (is_escape_site): A ref-all pointer conversion is not an escape site.
8572 * tree-ssa-structalias.c (find_what_p_points_to): Do not treat
8573 PTR_IS_REF_ALL pointers special.
8574 * tree-ssa-structalias.h (struct alias_info): Remove
8575 ref_all_symbol_mem_tag field.
8576 (PTR_IS_REF_ALL): Remove.
8578 2008-04-29 Richard Guenther <rguenther@suse.de>
8581 * fold-const.c (extract_muldiv_1): In combining division constants
8582 make sure to never overflow.
8584 2008-04-29 Nick Clifton <nickc@redhat.com>
8586 * doc/tm.texi (RETURN_ADDR_RTX): Fix typo.
8588 2008-04-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8591 * optc-gen.awk: Work around HP-UX/IA awk bug.
8593 2008-04-28 Danny Smith <dannysmith@users.sourceforge.net>
8595 * config/i386/cygming-crtend.c (register_frame_ctor): Revert my
8598 2008-04-28 Uros Bizjak <ubizjak@gmail.com>
8601 * config/i386/i386.md
8602 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit):
8603 Change operand 1 predicate to nonimmediate_operand.
8605 2008-04-28 Jakub Jelinek <jakub@redhat.com>
8608 * dwarf2out.c (struct die_struct): Mark as chain_circular through
8610 * gengtype.c (walk_type, write_func_for_structure): Handle
8612 * doc/gty.texi: Document chain_circular.
8614 2008-04-28 Richard Guenther <rguenther@suse.de>
8616 PR tree-optimization/36066
8617 * tree-vrp.c (execute_vrp): Cleanup the CFG only after finalizing
8620 2008-04-28 Uros Bizjak <ubizjak@gmail.com>
8623 * config/i386/i386.md
8624 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters):
8625 Use match_scratch instead of match_operand for operands 3 and 4.
8627 2008-04-27 Richard Guenther <rguenther@suse.de>
8629 PR tree-optimization/18754
8630 PR tree-optimization/34223
8631 * tree-pass.h (pass_complete_unrolli): Declare.
8632 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Print
8633 loop size before and after unconditionally of UL_NO_GROWTH in effect.
8634 Rewrite loop into loop closed SSA form if it is not already.
8635 (tree_unroll_loops_completely): Re-structure to iterate over
8636 innermost loops with intermediate CFG cleanups.
8637 Unroll outermost loops only if requested or the code does not grow
8639 * tree-ssa-loop.c (gate_tree_vectorize): Don't shortcut if no
8640 loops are available.
8641 (tree_vectorize): Instead do so here.
8642 (tree_complete_unroll): Also unroll outermost loops.
8643 (tree_complete_unroll_inner): New function.
8644 (gate_tree_complete_unroll_inner): Likewise.
8645 (pass_complete_unrolli): New pass.
8646 * tree-ssa-loop-manip.c (find_uses_to_rename_use): Only record
8647 uses outside of the loop.
8648 (tree_duplicate_loop_to_header_edge): Only verify loop-closed SSA
8649 form if it is available.
8650 * tree-flow.h (tree_unroll_loops_completely): Add extra parameter.
8651 * passes.c (init_optimization_passes): Schedule complete inner
8652 loop unrolling pass before the first CCP pass after final inlining.
8654 2008-04-27 Nathan Sidwell <nathan@codesourcery.com>
8656 * targhooks.h (default_emutls_var_fields,
8657 default_emutls_var_init): Declare.
8658 * tree.h (DECL_THREAD_LOCAL): Compare against TLS_MODEL_REAL.
8659 * target.h (struct gcc_target): Add struct emutls member.
8660 * target-def.h (TARGET_EMUTLS_GET_ADDRESS,
8661 TARGET_EMUTLS_REGISTER_COMMON, TARGET_EMUTLS_VAR_SECTION,
8662 TARGET_EMUTLS_TMPL_SECTION, TARGET_EMUTLS_VAR_PREFIX,
8663 TARGET_EMUTLS_TMPL_PREFIX, TARGET_EMUTLS_VAR_FIELDS,
8664 TARGET_EMUTLS_VAR_INIT, TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS,
8665 TARGET_EMUTLS_VAR_ALIGN_FIXED, TARGET_EMUTLS): New.
8666 (TARGET_INITIALIZER): Add TARGET_EMUTLS.
8667 * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS,
8668 BUILT_IN_EMUTLS_REGISTER_COMMON): Get name from targetm structure.
8669 * dwarf2out.c (loc_descriptor_from_tree_1): Check if emutls can
8670 emit debug information.
8671 * coretypes.h (tls_model): Add TLS_MODEL_EMULATED, TLS_MODEL_REAL.
8672 * varasm.c: Include targhooks.h.
8673 (emutls_object_section, emutls_tmpl_section): New.
8674 (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): Remove.
8675 (EMUTLS_SEPARATOR): New.
8677 (get_emutls_object_name): New.
8678 (default_emutls_var_fields): New, broken out of ...
8679 (get_emutls_object_type): ... here. Adjust to use target hooks.
8680 (get_emutls_init_templ_addr): Adjust to use target hooks.
8681 (emutls_decl): Adjust to use target hooks.
8682 (emutls_finish): Likewise.
8683 (default_emutls_var_init): New, broken out of ...
8684 (assemble_variable): ... here. Adjust to use target hooks.
8685 * output.h (enum section_category): Add SECCAT_EMUTLS_VAR,
8687 * c-common.c (handle_section_attribute): Prevent overriding
8688 sections for emulated tls with special sections.
8689 * config/i386/i386.c (x86_64_elf_select_section): Add
8690 SECCAT_EMUTLS_VAR and SECCAT_EMUTLS_TMPL.
8691 (x86_64_elf_unique_section): Likewise.
8692 * config/vxworks.c: Include tree.h.
8693 (vxworks_emutls_var_fields, vxworks_emutls_var_init): New.
8694 (vxworks_override_options): Set TLS scheme.
8695 * doc/tm.texi (Emulated TLS): New node.
8697 2008-04-26 Simon Baldwin <simonb@google.com>
8700 * builtins.c (c_strlen): Suppressed multiple warnings that can occur
8701 with propagated string constants.
8703 2008-04-26 Uros Bizjak <ubizjak@gmail.com>
8705 * config/i386/i386.md (fix_trunc<mode>_i387_fisttp_with_temp): Use 'X'
8706 constraint for operand 2 when operand 0 is memory operand.
8707 (fix_truncdi_i387_with_temp): : Use 'X' constraint for operand 4 when
8708 operand 0 is memory operand.
8709 (fix_trunc<mode>_i387_with_temp): Ditto.
8710 (*floatsi<mode>2_vector_mixed_with_temp): Use 'X' constraint for
8711 operand 2 when operand 1 is memory operand.
8712 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Ditto.
8713 (*floatsi<mode>2_vector_sse_with_temp): Ditto.
8714 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Ditto.
8715 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
8716 (floatdi<X87MODEF:mode>2_i387_with_xmm): Use 'X' constraint for
8717 operands 2,3 and 4 when operand 1 is memory operand.
8718 (fistdi2_with_temp): Use 'X' constraint for operand 2 when operand 0
8720 (fistdi2_floor_with_temp): Ditto.
8721 (fist<mode>2_floor_with_temp): Ditto.
8722 (fistdi2_ceil_with_temp): Ditto.
8723 (fist<mode>2_ceil_with_temp): Ditto.
8724 (*truncdfsf_fast_mixed): Merge alternatives 0 and 1.
8726 2008-04-26 David Daney <ddaney@avtrex.com>
8728 * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP_12): New
8730 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE,
8731 UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
8732 UNSPEC_UPDATE_GOT_VERSION): Renumber.
8733 (sync_compare_and_swap<mode>): New expand for QI and HI modes.
8734 (compare_and_swap_12): New insn.
8735 * config/mips/mips-protos.h (mips_expand_compare_and_swap_12): Declare.
8736 * config/mips/mips.c (mips_force_binary): New function.
8737 (mips_emit_int_order_test, mips_expand_synci_loop): Use it.
8738 (mips_expand_compare_and_swap_12): New function.
8739 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): New macro.
8741 2008-04-25 Jan Hubicka <jh@suse.cz>
8744 * cfgexpand.c (pass_expand): Turn into RTL pass.
8745 * passes.c (execute_one_pass): Do pass typechecking after execution.
8746 * tree-pass.h (pass_expand): Turn into RTL pass.
8748 * function.h (struct rtl_data): Move here fields
8749 accesses_prior_frames, calls_eh_return, saves_all_registers,
8750 has_nonlocal_goto, has_asm_statement, is_thunk,
8751 all_throwers_are_sibcalls, limit_stack, profile, uses_const_pool,
8752 uses_pic_offset_table, uses_eh_lsda, tail_call_emit,
8753 arg_pointer_save_area_init from struct function; turn into bool.
8754 (struct function): Move
8755 calls_eh_return, saves_all_registers, has_nonlocal_goto,
8756 has_asm_statement, is_thunk, all_throwers_are_sibcalls, limit_stack,
8757 profile, uses_const_pool, uses_pic_offset_table, uses_eh_lsda,
8758 tail_call_emit, arg_pointer_save_area_init
8759 into struct rtl_data. Remove recursive_call_emit and gimplified flags.
8760 (current_function_returns_struct, current_function_returns_pcc_struct,
8761 current_function_calls_setjmp, current_function_calls_alloca,
8762 current_function_accesses_prior_frames,
8763 current_function_calls_eh_return, current_function_is_thunk,
8764 current_function_stdarg, current_function_profile,
8765 current_function_limit_stack, current_function_uses_pic_offset_table,
8766 current_function_uses_const_pool, current_function_has_nonlocal_label,
8767 current_function_saves_all_registers,
8768 current_function_has_nonlocal_goto,
8769 current_function_has_asm_statement): Remove accesor macros.
8770 * ra-conflict.c (global_conflicts): Update.
8771 * tree-tailcall.c (suitable_for_tail_opt_p): Update.
8772 (suitable_for_tail_call_opt_p): Update.
8773 * builtins.c (expand_builtin_return_addr): Update.
8774 (expand_builtin_setjmp_setup): Update.
8775 (expand_builtin_nonlocal_goto): Update.
8776 * final.c (final_start_function): Update.
8777 (profile_function): Update.
8778 (leaf_function_p): Update.
8779 (only_leaf_regs_used): Update.
8780 * df-scan.c (df_get_exit_block_use_set): Update.
8781 * dojump.c (clear_pending_stack_adjust): Update.
8782 * tree-stdarg.c (gate_optimize_stdarg): Update.
8783 * gimple-low.c (lower_function_body): Update.
8784 * global.c (compute_regsets): Update.
8785 (global_alloc): Update.
8786 * dwarf2out.c (dwarf2out_begin_prologue): Update.
8787 * expr.c (expand_assignment): Update.
8788 * dse.c (dse_step0): Update.
8789 (dse_step1): Update.
8790 * c-decl.c (store_parm_decls): Update.
8791 * local-alloc.c (combine_regs): Update.
8792 (find_free_reg): Update.
8793 * function.c (assign_parms_augmented_arg_list): Update.
8794 (assign_parm_find_data_types): Update.
8795 (assign_parms): Update.
8796 (allocate_struct_function): Update.
8797 (expand_function_start): Update.
8798 (expand_function_end): Update.
8799 (get_arg_pointer_save_area): Update.
8800 (thread_prologue_and_epilogue_insns): Update.
8801 (rest_of_match_asm_constraints): Update.
8802 * stor-layout.c (variable_size): Update.
8803 * gcse.c (gcse_main): Update.
8804 (bypass_jumps): Update.
8805 * gimplify.c (gimplify_function_tree): Update.
8806 * calls.c (emit_call_1): Update.
8807 (expand_call): Update.
8808 * bt-load.c (compute_defs_uses_and_gen): Update.
8809 * except.c (sjlj_assign_call_site_values): Update.
8810 (sjlj_emit_function_enter): Update.
8811 (can_throw_external): Update.
8812 (set_nothrow_function_flags): Update.
8813 (expand_builtin_unwind_init): Update.
8814 (expand_eh_return): Update.
8815 (convert_to_eh_region_ranges): Update.
8816 (output_function_exception_table): Update.
8817 * emit-rtl.c (gen_tmp_stack_mem): Update.
8818 * cfgexpand.c (expand_used_vars): Update.
8819 (tree_expand_cfg): Update.
8820 * cfgcleanup.c (rest_of_handle_jump): Update.
8821 * explow.c (allocate_dynamic_stack_space): Update.
8822 * varasm.c (assemble_start_function): Update.
8823 (force_const_mem): Update.
8824 (mark_constant_pool): Update.
8825 * tree-optimize.c (tree_rest_of_compilation): Update.
8826 * stack-ptr-mod.c (notice_stack_pointer_modification): Update.
8827 * tree-cfg.c (notice_special_calls): Update.
8828 (is_ctrl_altering_stmt): Update.
8829 (tree_can_make_abnormal_goto): Update.
8830 (tree_purge_dead_abnormal_call_edges): Update.
8831 * config/alpha/predicates.md: Update.
8832 * config/alpha/alpha.c (alpha_sa_mask): Update.
8833 (alpha_sa_size): Update.
8834 (alpha_does_function_need_gp): Update.
8835 (alpha_expand_prologue): Update.
8836 (alpha_start_function): Update.
8837 (alpha_output_function_end_prologue): Update.
8838 (alpha_expand_epilogue): Update.
8839 * config/frv/frv.c (frv_stack_info): Update.
8840 (frv_expand_epilogue): Update.
8841 * config/s390/s390.c (s390_regs_ever_clobbered): Update.
8842 (s390_register_info): Update.
8843 (s390_frame_info): Update.
8844 (s390_init_frame_layout): Update.
8845 (s390_can_eliminate): Update.
8846 (save_gprs): Update.
8847 * config/spu/spu.c (spu_split_immediate): Update.
8848 (need_to_save_reg): Update.
8849 (spu_expand_prologue): Update.
8850 (spu_expand_epilogue): Update.
8851 * config/sparc/sparc.md: Update.
8852 * config/sparc/sparc.c (eligible_for_return_delay): Update.
8853 (sparc_tls_got): Update.
8854 (legitimize_pic_address): Update.
8855 (sparc_emit_call_insn): Update.
8856 (sparc_expand_prologue): Update.
8857 (output_return): Update.
8858 (print_operand): Update.
8859 (sparc_function_ok_for_sibcall): Update.
8860 * config/sparc/sparc.h (EXIT_IGNORE_STACK): Update.
8861 * config/m32r/m32r.md: Update.
8862 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Update.
8863 (m32r_compute_frame_size): Update.
8864 (m32r_expand_prologue): Update.
8865 (m32r_expand_epilogue): Update.
8866 (m32r_legitimize_pic_address): Update.
8867 * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Update.
8868 * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
8869 * config/i386/i386.c (ix86_frame_pointer_required): Update.
8871 (ix86_save_reg): Update.
8872 (ix86_compute_frame_layout): Update.
8873 (ix86_expand_prologue): Update.
8874 (ix86_expand_epilogue): Update.
8875 * config/sh/sh.c (output_stack_adjust): Update.
8876 (calc_live_regs): Update.
8877 (sh5_schedule_saves): Update.
8878 (sh_expand_prologue): Update.
8879 (sh_expand_epilogue): Update.
8880 (sh_setup_incoming_varargs): Update.
8881 (sh_allocate_initial_value): Update.
8882 (sh_get_pr_initial_val): Update.
8883 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Update.
8884 * config/sh/sh.md (label:): Update.
8885 * config/avr/avr.c (out_movhi_mr_r): Update.
8886 * config/crx/crx.h (enum): Update.
8887 * config/xtensa/xtensa.h (along): Update.
8888 * config/stormy16/stormy16.c Update.
8889 (xstormy16_compute_stack_layout): Update.
8890 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Update.
8891 (fr30_expand_prologue): Update.
8892 * config/cris/cris.c (cris_conditional_register_usage): Update.
8893 (cris_reg_saved_in_regsave_area): Update.
8894 (cris_initial_frame_pointer_offset): Update.
8895 (cris_simple_epilogue): Update.
8896 (cris_expand_prologue): Update.
8897 (cris_expand_epilogue): Update.
8898 (cris_expand_pic_call_address): Update.
8899 (cris_asm_output_symbol_ref): Update.
8900 (cris_asm_output_label_ref): Update.
8901 * config/cris/cris.md Update.
8902 * config/iq2000/iq2000.c (compute_frame_size): Update.
8903 (iq2000_expand_epilogue): Update.
8904 * config/mt/mt.h (save_direction): Update.
8905 * config/mn10300/mn10300.c (mn10300_function_value): Update.
8906 * config/ia64/ia64.c (ia64_compute_frame_size): Update.
8907 (ia64_secondary_reload_class): Update.
8908 * config/m68k/m68k.c (m68k_save_reg): Update.
8909 (m68k_expand_prologue): Update.
8910 (m68k_expand_epilogue): Update.
8911 (legitimize_pic_address): Update.
8912 * config/rs6000/rs6000.c (rs6000_got_register): Update.
8913 (first_reg_to_save): Update.
8914 (first_altivec_reg_to_save): Update.
8915 (compute_vrsave_mask): Update.
8916 (compute_save_world_info): Update.
8917 (rs6000_stack_info): Update.
8918 (spe_func_has_64bit_regs_p): Update.
8919 (rs6000_ra_ever_killed): Update.
8920 (rs6000_emit_eh_reg_restore): Update.
8921 (rs6000_emit_allocate_stack): Update.
8922 (rs6000_emit_prologue): Update.
8923 (rs6000_emit_epilogue): Update.
8924 (rs6000_output_function_epilogue): Update.
8925 (output_profile_hook): Update.
8926 (rs6000_elf_declare_function_name): Update.
8927 * config/rs6000/rs6000.h (rs6000_args): Update.
8928 * config/rs6000/rs6000.md: Update.
8929 * config/mcore/mcore.c (mcore_expand_prolog): Update.
8930 * config/arc/arc.c (arc_output_function_epilogue): Update.
8931 * config/arc/arc.h (FRAME_POINTER_REQUIRED): Update.
8932 * config/darwin.c (machopic_function_base_name): Update.
8933 * config/score/score3.c (score3_compute_frame_size): Update.
8936 (score3_epilogue): Update.
8937 * config/score/score7.c (score7_compute_frame_size): Update.
8938 (score7_prologue): Update.
8939 (score7_epilogue): Update.
8940 * config/score/score.h (FRAME_POINTER_REQUIRED): Update.
8941 * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
8942 * config/arm/arm.c (use_return_insn): Update.
8943 (require_pic_register): Update.
8944 (arm_load_pic_register): Update.
8945 (arm_compute_save_reg0_reg12_mask): Update.
8946 (arm_compute_save_reg_mask): Update.
8947 (thumb1_compute_save_reg_mask): Update.
8948 (output_return_instruction): Update.
8949 (arm_output_function_prologue): Update.
8950 (arm_output_epilogue): Update.
8951 (arm_get_frame_offsets): Update.
8952 (arm_expand_prologue): Update.
8953 (thumb_pushpop): Update.
8954 (thumb_exit): Update.
8955 (thumb1_expand_prologue): Update.
8956 (thumb1_expand_epilogue): Update.
8957 (arm_unwind_emit): Update.
8958 (arm_output_fn_unwind): Update.
8959 * config/arm/arm.h (FRAME_POINTER_REQUIRED): Update.
8960 * config/arm/arm.md: Update.
8961 * config/pa/pa.md: Update.
8962 * config/pa/pa.c (legitimize_pic_address): Update.
8963 (compute_frame_size): Update.
8964 (hppa_expand_prologue): Update.
8965 (hppa_expand_epilogue): Update.
8966 (borx_reg_operand): Update.
8967 * config/pa/pa.h (FRAME_POINTER_REQUIRED): Update.
8968 (HARD_REGNO_RENAME_OK): Update.
8969 * config/mips/mips.c (mips_global_pointer): Update.
8970 (mips_save_reg_p): Update.
8971 (mips_compute_frame_info): Update.
8972 (mips_frame_pointer_required): Update.
8973 (mips_expand_prologue): Update.
8974 (mips_expand_epilogue): Update.
8975 (mips_can_use_return_insn): Update.
8976 (mips_reorg_process_insns): Update.
8977 * config/v850/v850.c (compute_register_save_size): Update.
8978 * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Update.
8979 * config/mmix/mmix.c (along): Update.
8980 (mmix_expand_epilogue): Update.
8981 * config/bfin/bfin.c (legitimize_pic_address): Update.
8982 (must_save_p): Update.
8983 (stack_frame_needed_p): Update.
8984 (add_to_reg): Update.
8985 (bfin_expand_prologue): Update.
8986 * stmt.c (expand_asm_operands): Update.
8987 * reload1.c (reload): Update.
8988 (init_elim_table): Update.
8990 2008-04-25 Bob Wilson <bob.wilson@acm.org>
8992 * optabs.c (expand_float): Fix REG_EQUAL for UNSIGNED_FLOAT libcall.
8994 2008-04-25 H.J. Lu <hongjiu.lu@intel.com>
8996 * config/i386/sse.md (mov<mode>): Replace SSEMODEI with SSEMODE.
8997 (*mov<mode>_internal): Likewise. Support V4SF and V2DF.
8998 (mov<mode>): Removed.
8999 (*movv4sf_internal): Likewise.
9000 (*movv2df_internal): Likewise.
9002 2008-04-25 Pompapathi V Gadad <Pompapathi.V.Gadad@nsc.com>
9004 * config.gcc (crx-*-elf): Remove deprecation.
9006 2008-04-25 Danny Smith <dannysmith@users.sourceforge.net>
9008 * config/i386/cygming-crtend.c (register_frame_ctor): Register
9009 __gcc_deregister_frame with atexit.
9010 (deregister_frame_dtor): Remove.
9012 2008-04-24 Nathan Froyd <froydnj@codesourcery.com>
9013 Nathan Sidwell <nathan@codesourcery.com>
9015 * config/rs6000/rs6000.opt (mspe): Remove Var property.
9017 * config/rs6000/rs6000.h (rs6000_spe): Declare.
9018 (rs6000_isel): Likewise.
9019 * config/rs6000/rs6000.c (rs6000_spe): New variable.
9020 (rs6000_isel): New variable.
9021 (rs6000_handle_option): Handle OPT_mspe and OPT_misel.
9023 2008-04-24 Jakub Jelinek <jakub@redhat.com>
9026 * c-common.c (handle_vector_size_attribute): Call
9027 lang_hooks.types.reconstruct_complex_type instead of
9028 reconstruct_complex_type.
9029 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Likewise.
9030 * config/spu/spu.c (spu_handle_vector_attribute): Likewise.
9031 * langhooks.h (struct lang_hooks_for_types): Add
9032 reconstruct_complex_type hook.
9033 * langhooks-def.h (LANG_HOOKS_RECONSTRUCT_COMPLEX_TYPE): Define.
9034 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
9036 2008-04-24 Richard Guenther <rguenther@suse.de>
9038 * c-common.h (check_builtin_function_arguments): Declare.
9039 * c-common.c (validate_nargs): New function.
9040 (check_builtin_function_arguments): Likewise.
9041 * c-typeck.c (build_function_call): Call
9042 check_builtin_function_arguments.
9043 * builtins.c (fold_builtin_classify): Remove error reporting code.
9044 (fold_builtin_unordered_cmp): Likewise.
9045 (fold_builtin_1): Likewise.
9046 (fold_builtin_n): Likewise.
9048 2008-04-24 Jakub Jelinek <jakub@redhat.com>
9050 PR tree-optimization/36008
9051 * fold-const.c (try_move_mult_to_index): If s == NULL, divide
9052 the original op1, rather than delta by step.
9054 2008-04-22 Antoniu Pop <antoniu.pop@gmail.com>
9055 Sebastian Pop <sebastian.pop@amd.com>
9057 * tree-parloops.c (take_address_of, eliminate_local_variables_1,
9058 eliminate_local_variables_stmt, eliminate_local_variables,
9059 separate_decls_in_loop_name, separate_decls_in_loop_stmt,
9060 separate_decls_in_loop, gen_parallel_loop): Make them work on a region
9061 of code delimited by two edges in the CFG.
9062 (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
9063 (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
9064 (separate_decls_in_loop): Renamed separate_decls_in_region. Isolate
9065 the case of parallelisation of reductions.
9066 (expr_invariant_in_region_p): New.
9068 * tree-flow.h (gather_blocks_in_sese_region): Declared.
9069 * tree-cfg.c (gather_blocks_in_sese_region): Extern.
9071 2008-04-24 Ira Rosen <irar@il.ibm.com>
9072 Richard Guenther <rguenther@suse.de>
9074 PR tree-optimization/36034
9075 * tree-vect-analyze.c (vect_analyze_group_access): SLP is
9076 incapable of dealing with loads with gaps.
9078 2008-04-24 Rafael Espindola <espindola@google.com>
9080 * tree-flow.h (vrp_evaluate_conditional): Change signature.
9081 * tree-ssa-propagate.c (fold_predicate_in): Update call to
9082 vrp_evaluate_conditional.
9083 * tree-vrp.c (vrp_evaluate_conditional_warnv): Remove.
9084 (vrp_evaluate_conditional): Split the cond argument.
9085 (vrp_visit_cond_stmt): Use vrp_evaluate_conditional_warnv_with_ops.
9086 (simplify_stmt_for_jump_threading): Update call to
9087 vrp_evaluate_conditional.
9089 2008-04-24 Ira Rosen <irar@il.ibm.com>
9091 PR tree-optimization/35982
9092 * tree-vect-analyze.c (vect_check_interleaving): Check that the
9093 interleaved data-refs are of the same type.
9095 2008-04-24 Danny Smith <dannysmith@users.net>
9097 * c-format.c (check_format_info_main): Use strncmp rather than a
9098 magic prefix to handle multichar length specs.
9099 * config/i386/msformat-c.c (format_length_info ms_printf_length_specs):
9100 Don't prefix "I64" and "I32" with '\0'.
9102 2008-04-24 Jakub Jelinek <jakub@redhat.com>
9105 * config/i386/i386.c (init_cumulative_args): Don't pass anything
9106 in registers for -m32 only if stdarg_p (fntype).
9108 2008-04-24 Uros Bizjak <ubizjak@gmail.com>
9110 PR rtl-optimization/36006
9111 * expmed.c (store_fixed_bit_field): Copy op0 rtx before moving
9112 temp to op0 in order to avoid invalid rtx sharing.
9114 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
9116 * tree-cfg.c (verify_expr): Check with is_gimple_address. Don't
9117 check TREE_INVARIANT.
9118 * tree-gimple.c (is_gimple_address): New.
9119 (is_gimple_invariant_address): Simplify using decl_address_invariant_p.
9120 * tree-gimple.h (is_gimple_address): New.
9121 * tree.h (decl_address_invariant_p): New.
9122 * tree.c (make_node_stat): Don't set TREE_INVARIANT.
9123 (build_string): Likewise.
9124 (decl_address_invariant_p): New, from is_gimple_invariant_address.
9125 (tree_invariant_p_1): Likewise.
9126 (save_expr): Use it.
9127 (tree_invariant_p): New.
9128 (skip_simple_arithmetic): Use it.
9129 (stabilize_reference_1): Use it.
9130 (recompute_tree_invariant_for_addr_expr): Don't update TREE_INVARIANT,
9132 (build1_stat): Drop code to compute TREE_INVARIANT.
9133 (build2_stat): Drop code to compute TREE_INVARIANT.
9134 (build3_stat): Drop code to compute TREE_INVARIANT.
9135 (build4_stat): Drop code to compute TREE_INVARIANT.
9136 (build5_stat): Drop code to compute TREE_INVARIANT.
9137 (build7_stat): Drop code to compute TREE_INVARIANT.
9138 (merge_dllimport_decl_attributes): Don't mention TREE_INVARIANT.
9139 * tree.h (struct tree_base): Remove invariant_flag.
9140 (TREE_INVARIANT): Remove.
9141 * builtins.c (build_string_literal): Don't set TREE_INVARIANT.
9142 (fold_builtin_expect): Check TREE_CONSTANT.
9143 * tree-ssa-ccp.c (fold_stmt_r): Adjust comment.
9144 * c-tree.h (c_expr_to_decl): Drop third parameter.
9145 * c-typeck.c (build_external_ref): Don't set TREE_INVARIANT.
9146 (build_c_cast): Don't set TREE_INVARIANT.
9147 (pop_init_level): Don't set TREE_INVARIANT.
9148 (c_objc_common_truthvalue_conversion): Don't set TREE_INVARIANT.
9149 * gimplify.c (gimplify_init_ctor_preeval): Add assertion, test
9151 (gimplify_init_constructor): Don't set TREE_INVARIANT.
9152 (gimplify_addr_expr): Adjust comment.
9153 * tree-mudflap.c (mf_build_string):
9154 * print-tree.c (print_node): Don't print TREE_INVARIANT.
9155 * tree-nested.c (convert_nonlocal_reference): Adjust comment.
9156 * c-common.c (fix_string_type): Don't set TREE_INVARIANT.
9157 * langhooks-def.h (lhd_expr_to_decl): Drop third parameter.
9158 * langhooks.c (lhd_expr_to_decl): Drop third parameter.
9159 * langhooks.h (struct lang_hooks): Drop third parameter from
9162 2008-04-23 Richard Guenther <rguenther@suse.de>
9164 PR tree-optimization/27799
9165 PR tree-optimization/32921
9166 PR tree-optimization/32624
9167 * tree-ssa-structalias.c (merge_smts_into): Only merge the
9168 SMTs aliases and the tag itself into the solution.
9169 * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Do not
9170 merge the points-to solution back into the SMT aliases.
9171 (may_alias_p): Use alias_set_subset_of instead of
9172 aliases_conflict_p. A pointer which points to
9173 memory with alias set zero may access any variable.
9175 2008-04-23 Richard Guenther <rguenther@suse.de>
9177 * alias.c (alias_set_subset_of): Correctly handle asking
9178 if zero is a subset of an alias set with zero child.
9179 * tree-ssa-alias.c (have_common_aliases_p): Simplify logic.
9180 (compute_flow_insensitive_aliasing): Correctly walk all
9181 pointers. Do not unnecessarily union sets.
9183 2008-04-23 Richard Guenther <rguenther@suse.de>
9186 * c-common.c (handle_alloc_size_attribute): Use type_num_arguments.
9188 2008-04-22 Tomas Bily <tbily@suse.cz>
9190 * tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as
9192 * tree-vrp.c (extract_range_from_unary_expr): Removed unused
9194 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
9195 * tree-ssa-structalias.c (get_constraint_for): Likewise.
9196 * tree-inline.c (estimate_num_insns_1): Likewise.
9197 * varasm.c (const_hash_1, compare_constant, copy_constant)
9198 (compute_reloc_for_constant, output_addressed_constants): Likewise.
9199 * emit-rtl.c (component_ref_for_mem_expr)
9200 (set_mem_attributes_minus_bitpos): Likewise.
9201 * expr.c (highest_pow2_factor, expand_expr_real_1, )
9202 (is_aligning_offset): Likewise.
9203 * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info): Likewise.
9204 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
9205 * dojump.c (do_jump): Likewise.
9206 * builtins.c (get_pointer_alignment, get_memory_rtx)
9207 (integer_valued_real_p, fold_builtin_next_arg): Likewise.
9208 * tree-scalar-evolution.c (instantiate_parameters_1): Likewise.
9210 2008-04-23 Jakub Jelinek <jakub@redhat.com>
9212 PR rtl-optimization/36017
9213 * builtins.c (expand_errno_check): Clear CALL_EXPR_TAILCALL before
9214 expanding the library call.
9216 2008-04-22 Ian Lance Taylor <iant@google.com>
9218 * fold-const.c (pointer_may_wrap_p): Call int_size_in_bytes rather
9221 2008-04-22 Pat Haugen <pthaugen@us.ibm.com>
9223 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
9224 of LR/CTR moves for Power6.
9226 2008-04-22 Kenneth Zadeck <zadeck@naturalbridge.com>
9229 * passes.c (init_optimization_passes): Remove
9230 pass_fast_rtl_byte_dce.
9232 2008-04-22 Uros Bizjak <ubizjak@gmail.com>
9235 * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Rearrange calls to
9236 builtin functions to generate faster code.
9237 (_mm_cvtpu16_ps): Ditto.
9238 (_mm_cvtpi32x2_ps): Ditto.
9240 2008-04-22 Nick Clifton <nickc@redhat.com>
9242 * common.opt (ftree-loop-distribution): Add Optimization
9245 * config/frv/frv.c (frv_stack_info): Use crtl instead of cfun.
9246 (frv_expand_builtin_va_start): Likewise.
9248 * config/arm/arm.c (thumb_find_work_register): Fix location of
9249 argument register count.
9251 2008-04-22 Maxim Kuvyrkov <maxim@codesourcery.com>
9253 Support scheduling for ColdFire V1 and V3 microarchitecture.
9254 Improve scheduling of multiplication instructions.
9256 * config/m68k/m68k.md (cpu): Add cfv1 and cfv3. Rename cf_v2 to cfv1.
9257 (mac): New instruction attribute.
9258 * config/m68k/m68k.c (override_options): Handle cfv1, cfv3 and mac.
9259 (m68k_sched_mac): New variable.
9260 (m68k_sched_attr_type2, m68k_sched_md_init_global): Update.
9261 Handle cfv1 and cfv3.
9262 (max_insn_size): New static variable.
9263 (struct _sched_ib): New type.
9264 (sched_ib): New static variable.
9265 (sched_ib_size, sched_ib_filled, sched_ib_insn): Convert variables
9266 to fields of 'struct _sched_ib sched_ib'. Update all uses.
9267 (m68k_sched_variable_issue): Add modeling of cfv3 instruction buffer.
9269 (m68k_sched_md_init_global, m68k_sched_md_finish_global,
9270 m68k_sched_md_init, m68k_sched_md_finish): Handle cfv1 and cfv3. Init
9271 new variables. Update.
9272 (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
9273 Add modeling of cfv3 instruction buffer. Update.
9274 * config/m68k/m68k-protos.h (m68k_sched_mac): Declare.
9275 * config/m68k/m68k.h (TUNE_CFV3): New macro.
9276 * config/m68k/cf.md: Change substrings 'cf_v2' to 'cfv12' or 'cfv123'.
9277 (cf_* reservations): Rename to cfv12 or cfv123 to indicate cores
9278 a particular reservation applies to.
9279 (type2): Reorganize attribute values. Rename alu to alu_reg,
9280 alu_l to alu, move_l to omove. Join move to alu. Split mul
9282 (cf_ib_*): Simplify description of instruction buffer.
9283 (cf_ib_w0, cf_ib_w4, cf_ib_w5, cf_ib_w6): Remove.
9284 (cf_mem): Split into cf_mem1 and cf_mem2.
9285 (cf_v2_move_??): Rename to cfv12_alu_??.
9286 (cf_v2_move_l_??): Rename to cfv12_omove_??.
9287 (cf_v2_mul_??): Remove reservations.
9288 (cfv12_mul_l_??, cfv12_mul_w_??, cfv12_mac_w_??, cfv12_mac_l_??,
9289 cfv12_emac_??, cfv12_emac_w_i0): New reservations.
9290 (cfv12_rts, cfv12_call, cfv12_bcc, cfv12_bra, cfv12_jmp): Move to
9292 (cfv3_alu_10, cfv3_omove_10, cfv3_alu_i0, cfv3_omove_i0, cfv3_alu_01,
9293 cfv3_alu_0i, cfv3_alu_11, cfv3_omove_11, cfv3_alu_i1, cfv3_omove_i1,
9294 cfv3_alu_1i, cfv3_omove_1i, cfv3_pea_11, cfv3_pea_i1, cfv3_mul_w_10,
9295 cfv3_mul_l_10, cfv3_mul_w_i0, cfv3_mac_w_10, cfv3_mac_l_10,
9296 cfv3_mac_w_i0, cfv3_emac_10, cfv3_emac_w_i0, cfv3_rts, cfv3_call,
9297 cfv3_bcc, cfv3_bra, cfv3_jmp): New reservations.
9298 (cfv3_*_1, cfv3_*_2, cfv3_*_3): New instruction reservations that are
9299 expansions of the above reservations for instructions of sizes
9302 2008-04-22 Maxim Kuvyrkov <maxim@codesourcery.com>
9304 * rtl-factoring.c (collect_patterns_seqs): Handle CC0 targets.
9306 2008-04-21 Adam Nemet <anemet@caviumnetworks.com>
9308 * coverage.c: Include tree-pass.h.
9309 (coverage_counter_alloc): Print da_file_name to the dump file.
9311 2008-04-21 Kenneth Zadeck <zadeck@naturalbridge.com>
9313 * sbitmap.c (sbitmap_range_empty_p): New function.
9314 * sbitmap.h (sbitmap_range_empty_p): New function.
9315 * bitmap.h: Now includes obstack.h.
9317 2008-04-21 Richard Sandiford <rsandifo@nildram.co.uk>
9318 Kenneth Zadeck <zadeck@naturalbridge.com>
9320 * dbgcnt.def (ra_byte_scan): Added.
9321 * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
9322 when the last hit happens for a counter.
9323 * timevar.def (TV_DF_BYTE_LR): New variable.
9324 * tree-pass.h (pass_fast_rtl_byte_dce): New pass.
9325 * passes.c (pass_fast_rtl_byte_dce): New pass.
9326 * fwprop.c (update_df): Added mode to call df_ref_create.
9327 Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
9328 DF_REF_EXTRACT_OFFSET.
9329 * df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN,
9330 DF_BYTE_LR_OUT, df_byte_lr): New macro.
9332 (df_ref_extract): Added mode field.
9333 (DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
9334 DF_REF_EXTRACT_OFFSET.
9335 (DF_REF_EXTRACT_MODE): New macro.
9336 (df_byte_lr_bb_info): New structure.
9337 (df_print_byte_regset, df_compute_accessed_bytes,
9338 df_byte_lr_add_problem, df_byte_lr_get_regno_start,
9339 df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
9340 df_byte_lr_simulate_uses,
9341 df_byte_lr_simulate_artificial_refs_at_top,
9342 df_byte_lr_simulate_artificial_refs_at_end,
9343 df_compute_accessed_bytes): New function.
9344 (df_ref_create): Add parameter.
9345 (df_byte_lr_get_bb_info): New inline function.
9346 * df-scan.c (df_ref_record, df_uses_record,
9347 df_ref_create_structure): Added mode parameter.
9348 (df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1,
9349 df_defs_record, df_uses_record, df_get_conditional_uses,
9350 df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
9351 df_entry_block_defs_collect, df_exit_block_uses_collect):
9352 Added mode parameter to calls to df_ref_record, df_uses_record,
9353 df_ref_create_structure.
9354 (df_ref_equal_p, df_ref_compare): Added test for modes.
9355 (df_ref_create_structure): Added code to set mode. Renamed
9356 DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
9357 DF_REF_EXTRACT_OFFSET.
9358 * df-core.c (df_print_byte_regset): New function.
9359 * df-byte-scan.c: New file.
9360 * df-problems.c (df_rd_transfer_function): Removed unnecessary
9361 calls to BITMAP_FREE.
9362 (df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
9363 (df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
9364 df_byte_lr_set_bb_info, df_byte_lr_free_bb_info,
9365 df_byte_lr_check_regs, df_byte_lr_expand_bitmap,
9366 df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
9367 df_byte_lr_local_compute, df_byte_lr_init,
9368 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
9369 df_byte_lr_transfer_function, df_byte_lr_free,
9370 df_byte_lr_top_dump, df_byte_lr_bottom_dump,
9371 df_byte_lr_add_problem, df_byte_lr_simulate_defs,
9372 df_byte_lr_simulate_uses,
9373 df_byte_lr_simulate_artificial_refs_at_top,
9374 df_byte_lr_simulate_artificial_refs_at_end): New function.
9375 * dce.c (byte_dce_process_block): New function.
9376 (dce_process_block): au is now passed in rather than computed
9377 locally. Changed loops that look at artificial defs to not look
9378 for conditional or partial ones, because there never are any.
9379 (fast_dce): Now is able to drive byte_dce_process_block or
9380 dce_process_block depending on the kind of dce being done.
9381 (rest_of_handle_fast_dce): Add parameter to fast_dce.
9382 (rest_of_handle_fast_byte_dce): New function.
9383 (rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
9384 * Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
9386 2008-04-21 Daniel Franke <franke.daniel@gmail.com>
9389 * gcc.h: Added fortran options that take arguments to
9390 DEFAULT_SWITCH_TAKES_ARG and DEFAULT_WORD_SWITCH_TAKES_ARG
9393 2008-04-20 Eric Botcazou <ebotcazou@adacore.com>
9395 * tree-sra.c (sra_walk_expr) <VIEW_CONVERT_EXPR>: Disable
9396 scalarization if on the LHS and not a full access.
9398 2008-04-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9400 * Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing it.
9402 2008-04-18 Rafael Espindola <espindola@google.com>
9404 * tree-vrp.c (find_case_label_index): Fix the binary search.
9405 (find_case_label_range): New.
9406 (vrp_visit_switch_stmt): Use find_case_label_range.
9407 (simplify_switch_using_ranges): Use find_case_label_range.
9409 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
9411 * gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
9412 using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
9414 2008-04-18 Tom Tromey <tromey@redhat.com>
9417 * doc/cpp.texi (Implementation-defined behavior): Mention
9420 2008-04-18 Ian Lance Taylor <iant@google.com>
9422 * fold-const.c (pointer_may_wrap_p): New static function.
9423 (fold_comparison): Add another test for pointer overflow. Use
9424 pointer_may_wrap_p to disable some false positives.
9426 2008-04-18 Kris Van Hees <kris.van.hees@oracle.com>
9428 * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros.
9429 (fname_as_string): Match updated cpp_interpret_string prototype.
9430 (fix_string_type): Support char16_t* and char32_t*.
9431 (c_common_nodes_and_builtins): Add char16_t and char32_t (and
9432 derivative) nodes. Register as builtin if C++0x.
9433 (c_parse_error): Support CPP_CHAR{16,32}.
9434 * c-common.h (RID_CHAR16, RID_CHAR32): New elements.
9435 (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE,
9436 CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE,
9437 CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE,
9438 CTI_CHAR32_ARRAY_TYPE>: New elements.
9439 (char16_type_node, signed_char16_type_node, unsigned_char16_type_node,
9440 char32_type_node, signed_char32_type_node, char16_array_type_node,
9441 char32_array_type_node): New defines.
9442 * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype.
9443 (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
9444 (lex_string): Support CPP_STRING{16,32}, match updated
9445 cpp_interpret_string and cpp_interpret_string_notranslate prototypes.
9446 (lex_charconst): Support CPP_CHAR{16,32}.
9447 * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32}
9448 and CPP_STRING{16,32}.
9450 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
9453 * aclocal.m4: Regenerate.
9454 * configure: Regenerate.
9456 2008-04-18 Jan Hubicka <jh@suse.cz>
9458 * except.c (dw2_size_of_call_site_table,
9459 sjlj_size_of_call_site_table): Use vector API for call_site_record.
9461 * cgraphbuild.c (build_cgraph_edges): Update.
9462 * tree-pass.h: Update comment.
9463 * final.c (leaf_function_p): Update.
9464 (leaf_renumber_regs): Update.
9465 (rest_of_clean_state): Update.
9466 * omp-low.c (expand_omp_parallel): Update.
9467 * ipa-reference.c (analyze_function): Update.
9468 * reorg.c (find_end_label): Update.
9469 (optimize_skip): Update.
9470 (fill_simple_delay_slots): Update.
9471 (fill_simple_delay_slots): Update.
9472 (make_return_insns): Update.
9473 (dbr_schedule): Update.
9474 * gimple-low.c (record_vars_into): Update.
9475 * cfgbuild.c (make_edges): Update.
9476 * function.c (assign_stack_local): Update.
9477 (assign_parm_adjust_stack_rtl): Update.
9478 (locate_and_pad_parm): Update.
9479 (allocate_struct_function): Do not initialize stack_alignment_needed
9480 and preferred_stack_boundary here.
9481 (stack_protect_prologue): Update.
9482 (stack_protect_epilogue): Update.
9483 (expand_function_start): Initialize stack_alignment_needed,
9484 preferred_stack_boundary and max_jumptable_ents.
9485 (expand_function_end): Update.
9486 (free_after_compilation): Do not NULLify epilogue_delay_list.
9487 * function.h (struct rtl_data): Add stack_protect_guard,
9488 stack_alignment_needed,
9489 preferred_stack_boundary, epilogue_delay_list.
9490 (struct function): Remove value_histograms, stack_alignment_needed,
9491 preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
9493 unexpanded_var_list, stack_protect_guard.
9494 (current_function_epilogue_delay_list): Remove.
9495 * ipa-type-escape.c (analyze_function): Update.
9496 * gimplify.c (pop_gimplify_context): Update comment.
9497 * calls.c (expand_call): Update.
9498 (emit_library_call_value_1): Update.
9499 * except.c (set_nothrow_function_flags): Update.
9500 * cfgexpand.c (get_decl_align_unit): Update.
9501 (create_stack_guard): Update.
9502 (estimated_stack_frame_size): Update.
9503 (expand_used_vars): Update.
9504 (tree_expand_cfg): Free histogram earliers, init expansion variables.
9505 * explow.c (allocate_dynamic_stack_space): Update.
9506 * tree-ssa-live.c (remove_unused_locals): Update.
9507 * varasm.c (mark_constant_pool): Update.
9508 * tree-inline.c (remap_decls): Update.
9509 (initialize_cfun): Update.
9510 (declare_return_variable): Update.
9511 (inline_forbidden_p): Update.
9512 (expand_call_inline): Update.
9513 (declare_inline_vars): Update.
9514 (tree_function_versioning): Update.
9515 * tree-flow.h (value_histograms): New.
9516 (VALUE_HISTOGRAMS): New macro.
9517 * basic-block.h (control_flow_graph): Add max_jumptable_ents,
9519 * tree-cfg.c (set_bb_for_stmt): Update.
9520 (replace_by_duplicate_decl): Update.
9521 (move_block_to_fn): Update.
9522 (new_label_mapper): Update.
9523 (dump_function_to_file): Update.
9524 * ipa-struct-reorg.c (build_data_structure): Update.
9525 * cfgrtl.c (print_rtl_with_bb): Update.
9526 * reload1.c (reload): Update.
9528 * config/i386/i386.c (setup_incoming_varargs_64,
9529 ix86_compute_frame_layout): Update.
9530 * config/arc/arc.c (arc_output_function_epilogue): Update.
9532 2008-04-18 Marius Strobl <marius@FreeBSD.org>
9534 * gthr-posix.h (__gthread_active_p): Use the Solaris implementation
9535 for FreeBSD as well.
9536 * gthr-posix95.h: Likewise.
9538 2008-04-17 Richard Sandiford <rsandifo@nildram.co.uk>
9540 PR rtl-optimization/35838
9541 * dse.c (find_shift_sequence): Use subreg_lowpart_offset to work
9542 out the byte offset of the first subreg.
9544 2008-04-17 Uros Bizjak <ubizjak@gmail.com>
9546 * config/i386/i386.md (addti3 splitter): Pass arrays of 3 operands
9547 to split_ti instead of three separate calls with single member arrays.
9548 (subti3 splitter): Ditto.
9549 (adddi3 splitter): Ditto with split_di.
9550 (subdi3 splitter): Ditto.
9551 (negti2 splitter): Pass arrays of 2 operands to split_ti instead of
9552 two separate calls with single member arrays. Swap match_dup
9553 operands 1 and 2 to better fit into the array.
9554 (negdi2 splitter): Ditto with split_di.
9555 (movdfcc splitter): Pass arrays of 2 operands to split_di instead of
9556 two separate calls with single member arrays. Swap match_dup operands
9557 6 and 7 to better fit into the array.
9559 2008-04-17 H.J. Lu <hongjiu.lu@intel.com>
9561 * config/i386/i386.c (sse_builtin_type): New.
9562 (bdesc_sse_args): Likewise.
9563 (bdesc_sse_3arg): Removed.
9564 (bdesc_2arg): Remove IX86_BUILTIN_AESKEYGENASSIST128.
9565 (bdesc_1arg): Remove IX86_BUILTIN_ROUNDPD and
9566 IX86_BUILTIN_ROUNDPS.
9567 (ix86_init_mmx_sse_builtins): Handle bdesc_sse_args. Remove
9568 bdesc_sse_3arg. Remove IX86_BUILTIN_ROUNDPD and
9569 IX86_BUILTIN_ROUNDPS.
9570 (ix86_expand_sse_4_operands_builtin): Removed.
9571 (ix86_expand_sse_operands_builtin): New.
9572 (ix86_expand_unop_builtin): Remove CODE_FOR_sse4_1_roundpd
9573 and CODE_FOR_sse4_1_roundps.
9574 (ix86_expand_builtin): Remove IX86_BUILTIN_AESKEYGENASSIST128.
9575 Handle bdesc_sse_args. Remove bdesc_sse_3arg.
9577 2008-04-17 Alan Modra <amodra@bigpond.net.au>
9580 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Restore vr and vrsave
9581 regs before frame pop when needed. If use_backchain_to_restore_sp
9582 then load backchain into a temp reg to restore vr and vrsave. Add
9583 code to restore vr after frame pop if possible.
9585 2008-04-17 Richard Guenther <rguenther@suse.de>
9587 * tree-vn.c (expressions_equal_p): Do not check type
9588 equality or compatibility before calling operand_equal_p.
9589 * fold-const.c (operand_equal_p): Check equivalence of
9590 integer constants before bailing out due to signedness or
9591 precision differences.
9592 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
9593 spurious differences in type qualification. Ignore types
9594 for COMPONENT_REFs at all.
9596 2008-04-17 Christian Bruel <christian.bruel@st.com>
9598 * config/sh/sh.c (expand_cbranchdi4): Use original operands for
9599 msw_skip comparison.
9601 2008-04-16 Jakub Jelinek <jakub@redhat.com>
9604 * tree-nrv.c (tree_nrv): Don't optimize if result_type is GIMPLE
9607 PR tree-optimization/35899
9608 * tree-inline.c (expand_call_inline): Use GIMPLE_STMT_OPERAND
9609 rather than TREE_OPERAND.
9611 2008-04-16 Uros Bizjak <ubizjak@gmail.com>
9614 * config/i386/i386.md (fmodxf3): Copy operand 1 and operand 2 into
9615 temporary registers. Change operand predicate to general_operand.
9616 (remainderxf3): Ditto.
9618 2008-04-16 Richard Guenther <rguenther@suse.de>
9620 * Makefile.in (tree-affine.o): Add $(FLAGS_H) dependency.
9621 * tree-affine.c (aff_combination_expand): Look through some
9624 2008-04-15 Doug Kwan <dougkwan@google.com>
9626 * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
9628 * tree-pretty-print.c (dump_generic_node): Ditto.
9629 * final.c (output_addr_const): Ditto.
9630 * dwarf2out.c (output_cfi): Ditto.
9631 * c-pretty-print.c (pp_c_integer_constant): Ditto.
9632 * print-rtl.c (print_rtx): Ditto.
9633 * print-tree.c (print_node_brief, print_node): Ditto.
9634 * c-common.c (match_case_to_enum_1): Ditto.
9635 * sched-vis.c (print_value): Ditto.
9636 * config/i386/i386.c (print_operand): Cast to long unsigned int
9639 2008-04-15 Danny Smith <dannysmith@users.sourceforge.net>
9640 * libgcc2.c [L_trampoline]: Remove unnecessary prototype for
9641 MS Windows VirtualProtect function.
9643 2008-04-15 Jan Hubicka <jh@suse.cz>
9645 * gengtype.c (write_root): Param_is argument is OK.
9646 * expr.c (expand_expr_real_1): Update call of get_exception_*.
9647 * function.h: Include varray.h
9648 (rtl_eh): New stucture based on except.c one.
9649 (call_site_record): New forward declaration and vector type.
9650 * calls.c (emit_call_1): Do not call
9651 note_current_region_may_contain_throw.
9652 * except.c (eh_status): Remove cur_region, try_region since they are
9654 Move filter, exc_ptr, ttype_data, ehspec_data, action_record_data and
9655 exception_handler_label_map, ehr_stackadj, ehr_handler, ehr_label,
9656 sjlj_fc, sjlj_exit_after to rth_eh in function.h.
9657 Remove call_site_data_used, call_site_data_size.
9658 Turn call_site_record into vector in function.h.
9659 (note_current_region_may_contain_throw): Remove.
9660 (get_exception_pointer, get_exception_filter): Do not take struct
9661 function argument; update.
9662 (add_ehl_entry, find_exception_handler_labels, ehspec_filter_hash,
9663 add_ttypes_entry, add_ehspec_entry, assign_filter_values,
9664 build_post_landing_pads, dw2_build_landing_pads,
9665 sjlj_assign_call_site_values, sjlj_mark_call_sites,
9666 sjlj_emit_function_enter, sjlj_emit_function_enter,
9667 sjlj_emit_function_exit, sjlj_emit_dispatch_table,
9668 sjlj_build_landing_pads, finish_eh_generation,
9669 remove_exception_handler_label, remove_eh_handler,
9670 maybe_remove_eh_handler, add_reachable_handler,
9671 reachable_handlers, expand_builtin_eh_return, expand_eh_return,
9672 add_action_record, collect_one_action_chain, add_call_site,
9673 convert_to_eh_region_ranges, sjlj_size_of_call_site_table,
9674 sjlj_output_call_site_table, output_function_exception_table,
9675 * except.h (note_current_region_may_contain_throw): Remove
9676 (get_exception_pointer, get_exception_filter): Do not take struct
9678 * Makefile.in (GTFILES): Put varargs before struct function.
9680 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
9682 * tree-ssa-structalias.c (get_constraint_for_component_ref): Do not
9683 punt for STRING_CST.
9684 (get_constraint_for): Deal with STRING_CST here instead.
9686 2008-04-15 Richard Guenther <rguenther@suse.de>
9688 * tree-ssa-propagate.c (substitute_and_fold): Substitute
9689 statements in a basic-block with a backward walk. Do not
9690 substitute into dead statements but instead remove those.
9692 2008-04-15 Richard Guenther <rguenther@suse.de>
9694 * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Set default
9695 to zero, thus disable creation of SFTs.
9697 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
9699 * tree-predcom.c (suitable_reference_p): Return false if the
9700 reference can throw.
9702 2008-04-15 Jakub Jelinek <jakub@redhat.com>
9705 * c-decl.c (finish_decl): If extern or static var has variable
9706 size, set TREE_TYPE (decl) to error_mark_node.
9708 2008-04-15 Rafael Espindola <espindola@google.com>
9710 * fold-const.c (tree_call_nonnegative_warnv_p): Remove local
9713 2008-04-15 Richard Guenther <rguenther@suse.de>
9715 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
9716 * tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
9717 (visit_reference_op_load): Do walk vuse-vdef chains on
9718 vn_reference_lookup.
9719 (visit_reference_op_store): But do not here.
9720 * tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
9721 vn_reference_lookup.
9722 (vn_lookup_with_vuses): But do so here.
9724 2008-04-14 Ian Lance Taylor <iant@google.com>
9726 * fold-const.c (fold_overflow_warning): Remove assertion.
9728 2008-04-15 Ben Elliston <bje@au.ibm.com>
9730 * config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp,
9731 temp1 local variables.
9733 2008-04-15 Zuxy Meng <zuxy.meng@gmail.com>
9736 * config/i386/winnt.c (i386_pe_section_type_flags): Mark
9737 ".text.unlikely" section as executable.
9739 2008-04-14 James E. Wilson <wilson@tuliptree.org>
9741 * config/ia64/ia64.c (rtx_needs_barrier): Handle
9742 UNSPEC_FR_SQRT_RECIP_APPROX_RES.
9743 * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define.
9744 (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr,
9745 divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr,
9746 divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat,
9747 divxf3_internal_thr, sqrtxf2_internal_thr, recip_approx): Use it.
9749 2008-04-14 Ian Lance Taylor <iant@google.com>
9751 * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
9752 * fold-const.c (fold_comparison): If appropriate, test
9753 POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
9754 (fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
9755 reassociating a pointer type.
9756 * doc/invoke.texi (Optimize Options): Document that
9757 -fstrict-overflow applies to pointer wraparound.
9759 2008-04-13 Jan Hubicka <jh@suse.cz>
9761 * m32.c (m32c_pushm_popm): Use crtl->retrun_rtx.
9763 2008-04-12 Andrew Pinski <pinskia@gmail.com>
9765 * config/rs6000/rs6000.c (compute_save_world_info): Set lr_save_p if
9766 we are going to "save the world".
9768 2008-04-13 Hans-Peter Nilsson <hp@axis.com>
9770 * config/cris/cris.md ("*andhi_lowpart_non_v32", "*andhi_lowpart_v32")
9771 ("*andqi_lowpart_non_v32", "*andqi_lowpart_v32"): Use "+" for the
9772 operand 0 constraint, not "=".
9774 2008-04-11 James E. Wilson <wilson@tuliptree.org>
9776 * system.h: Change ASSERT_CHECKING to ENABLE_ASSERT_CHECKING.
9778 2008-04-11 H.J. Lu <hongjiu.lu@intel.com>
9780 * dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
9781 of size of positions_needed * CHAR_BIT.
9783 2008-04-11 H.J. Lu <hongjiu.lu@intel.com>
9786 * dse.c (store_info): Change positions_needed to unsigned
9788 (lowpart_bitmask): New.
9789 (record_store): Cast to unsigned HOST_WIDE_INT for
9790 positions_needed. Assert width <= size of positions_needed *
9791 CHAR_BIT. Call lowpart_bitmask to initialize positions_needed.
9792 (check_mem_read_rtx): Use unsigned HOST_WIDE_INT on mask. Call
9793 lowpart_bitmask to set mask.
9795 2008-04-11 Bernd Schmidt <bernd.schmidt@analog.com>
9797 * config/bfin/constraints.md: New file.
9798 * config/bfin/bfin.md: Include it.
9799 (adddi3): Use satisfies_constraint functions instead of the old macros.
9800 * config/bfin/bfin.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
9801 CONST_18UBIT_IMM_P, CONST_16BIT_IMM_P, CONST_16UBIT_IMM_P,
9802 CONST_7BIT_IMM_P, CONST_7NBIT_IMM_P, CONST_5UBIT_IMM_P,
9803 CONST_4BIT_IMM_P, CONST_4UBIT_IMM_P, CONST_3BIT_IMM_P,
9804 CONST_3UBIT_IMM_P, CONST_OK_FOR_K, CONST_OK_FOR_P, CONST_OK_FOR_M,
9805 CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER,
9806 EXTRA_CONSTRAINT): Delete.
9807 * config/bfin/predicates.md (highbits_operand, reg_or_7bit_operand,
9808 reg_or_neg7bit_operand): Use satisfies_constraint functions instead
9810 * config/bfin/bfin.c: Include "tm-constrs.h".
9811 (bfin_secondary_reload, split_load_immediate, bfin_rtx_costs):
9812 Use satisfies_constraint functions instead of the old macros.
9813 * doc/md.texi (Blackfin Constraints): Update file name reference.
9815 2008-04-11 Richard Guenther <rguenther@suse.de>
9817 PR tree-optimization/35869
9818 * tree-vrp.c (execute_vrp): Move switch statement update after
9819 jump threading. Schedule another cfg cleanup run.
9821 2008-04-11 Volker Reichelt <v.reichelt@netcologne.de>
9824 * attribs.c (decl_attributes): Return early on errorneous node.
9826 2008-04-10 Oleg Ryjkov <olegr@google.com>
9828 * tree.h (struct tree_base): Added a new flag default_def_flag.
9829 (SSA_NAME_IS_DEFAULT_DEF): Changed to use the new flag.
9831 2008-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
9833 * config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*.
9835 2008-04-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9838 * pa.md: Define mode iterator P. Define mode attribute dwc.
9839 (dcacheflush): Update pattern to use iterator P and attribute dwc.
9840 (icacheflush): Likewise.
9841 * pa.h (INITIALIZE_TRAMPOLINE): Use dcacheflushsi/icacheflushsi if
9842 !TARGET_64BIT, and dcacheflushdi/icacheflushdi if TARGET_64BIT.
9844 2008-04-11 Ben Elliston <bje@au.ibm.com>
9846 * config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
9848 2008-04-10 Rafael Espindola <espindola@google.com>
9850 * tree-vrp.c (extract_range_from_binary_expr): Don't handle
9851 TRUTH_ANDIF_EXPR or TRUTH_ORIF_EXPR.
9852 (extract_range_from_expr): The same.
9854 2008-04-10 Adam Nemet <anemet@caviumnetworks.com>
9856 * config/mips/mips.md (GPR2): New mode iterator.
9858 (*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
9859 *sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
9860 *slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
9861 Rewrite these to take two modes, the mode of comparison and the
9862 mode of the destination.
9863 * config/mips/mips.c (mips_expand_scc): Instead of having
9864 paradoxical subreg as destination, expand "narrowing" scc if mode
9865 of comparison is SI and target is requested in DI mode.
9866 (mips_emit_int_order_test): Update comment. Make mode of
9867 comparison match CMP0 rather than TARGET. When creating inverse
9868 target use mode of TARGET.
9870 2008-04-10 Adam Nemet <anemet@caviumnetworks.com>
9872 * gcov-dump.c (tag_summary): Only print summaries for the first
9873 GCOV_COUNTERS_SUMMABLE counters.
9875 2008-04-10 Uros Bizjak <ubizjak@gmail.com>
9877 * config/i386/i386.md (absneg): New code iterator.
9878 (absnegprefix): New code attribute.
9879 (<code><mode>2): Macroize expander from abs<mode>2 and neg<mode>2
9880 patterns using absneg code iterator.
9881 (<code>tf2): Macroize expander from abstf2 and negtf2 patterns
9882 using absneg code iterator.
9883 (*<code><mode>2_1): Macroize insn pattern from *abs<mode>2_1 and
9884 *neg<mode>2 patterns using absneg code iterator.
9885 (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
9886 *negextendsfdf2 patterns using absneg code iterator.
9887 (*<code>extendsfxf2): Macroize insn pattern from *absextendsfxf2 and
9888 *negextendsfxf2 patterns using absneg code iterator.
9889 (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
9890 *negextendsfdf2 patterns using absneg code iterator.
9891 * config/i386/sse.md (<code><mode>2): Macroize expander from
9892 abs<mode>2 and neg<mode>2 patterns using absneg code iterator.
9894 2008-04-10 Andreas Krebbel <krebbel1@de.ibm.com>
9896 * config/s390/s390.h: Remove the remains of the recent search
9897 & replace action of current_function_outgoing_args_size.
9899 2008-04-10 Ira Rosen <irar@il.ibm.com>
9901 PR tree-optimization/35821
9902 * tree-vect-transform.c (vect_create_data_ref_ptr): Add check that
9903 NEW_STMT_LIST is not NULL.
9905 2008-04-09 David Edelsohn <edelsohn@gnu.org>
9908 * toplev.c (process_options): Remove -ffunction-sections debugging
9911 2008-04-09 Peter Bergner <bergner@vnet.ibm.com>
9913 PR middle-end/PR28690
9914 * explow.c (break_out_memory_refs): Use simplify_gen_binary rather
9915 than gen_rtx_fmt_ee to perform more canonicalizations.
9917 2008-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9920 * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
9922 2008-04-09 Richard Guenther <rguenther@suse.de>
9924 * tree-cfg.c (verify_stmt): Print complete bogus stmt.
9925 (dump_function_to_file): Dump function arguments with types.
9927 2008-04-08 Richard Guenther <rguenther@suse.de>
9929 * fold-const.c (fold_widened_comparison): Do not allow
9930 sign-changes that change the result.
9932 2008-04-08 Janis Johnson <janis187@us.ibm.com>
9935 * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
9936 kinds of indirect references.
9938 2008-04-08 David Edelsohn <edelsohn@gnu.org>
9940 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
9941 GNU Fortran language string.
9943 2008-04-08 Rafael Espindola <espindola@google.com>
9945 * fold-canst.c (tree_call_nonnegative_warnv_p): New.
9946 (tree_invalid_nonnegative_warnv_p): Use tree_call_nonnegative_warnv_p.
9947 * tree.h (tree_call_nonnegative_warnv_p): New.
9949 2008-04-08 Jan Hubicka <jh@suse.cz>
9951 * function.c (free_after_compilation): Clear out regno_reg_rtx
9954 2008-04-08 Peter Bergner <bergner@vnet.ibm.com>
9957 2008-04-07 Peter Bergner <bergner@vnet.ibm.com>
9959 PR middle-end/PR28690
9960 * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
9961 same precedence as REG_POINTER and MEM_POINTER operands.
9963 2008-04-08 Richard Guenther <rguenther@suse.de>
9966 * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
9967 for adding index to base.
9969 2008-04-08 Kai Tietz <kai.tietz@onevision.com>
9971 * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
9972 (MINGW_ENABLE_EXECUTE_STACK): New.
9973 (IN_LIBGCC2): For libgcc include windows.h file for
9974 function declarations.
9976 2008-04-08 Hans-Peter Nilsson <hp@axis.com>
9978 * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
9979 and tem2 if tem1 is not a REG or MULT.
9981 2008-04-08 Jan Hubicka <jh@suse.cz>
9983 * function.h (incomming_args): Break out of struct function.
9984 (function_subsections): Break out of struct function.
9985 (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
9986 return_rtx and hard_reg_initial_vals from struct function.
9987 Kill inl_max_label_num.
9988 (current_function_pops_args, current_function_args_info,
9989 current_function_args_size, current_function_args_size,
9990 current_function_pretend_args_size,
9991 current_function_outgoing_args_size,
9992 current_function_internal_arg_pointer, current_function_return_rtx):
9993 Kill compatibility accestor macros.
9994 * builtins.c (expand_builtin_apply_args_1): Update.
9995 (expand_builtin_next_arg): Update.
9996 * df-scan.c (df_get_call_refs): Update.
9997 * dbxout.c (dbxout_function_end): Update.
9998 * dwarf2out.c (dwarf2out_switch_text_section): Update.
9999 (output_line_info): Update.
10000 (secname_for_decl): Update.
10001 (dwarf2out_var_location): Update.
10002 * function.c (free_after_compilation): Update.
10003 (assign_parm_find_stack_rtl): Update.
10004 (assign_parms): Update.
10005 (expand_dummy_function_end): Update.
10006 (expand_function_end): Update.
10007 * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
10008 (expand_call): Update.
10009 (emit_library_call_value_1): Update.
10010 (store_one_arg): Update.
10011 * varasm.c (initialize_cold_section_name): Update.
10012 (unlikely_text_section): Update.
10013 (unlikely_text_section_p): Update.
10014 (assemble_start_function): Update.
10015 (assemble_end_function): Update.
10016 (default_section_type_flags): Update.
10017 (switch_to_section): Update.
10018 * integrate.c (set_decl_abstract_flags): Update.
10019 (get_hard_reg_initial_val): Update.
10020 (has_hard_reg_initial_val): Update.
10021 (allocate_initial_values): Update.
10022 * resource.c (init_resource_info): Update.
10023 * config/alpha/alpha.c (NUM_ARGS): Update.
10024 (direct_return): Update.
10025 (alpha_va_start): Update.
10026 (alpha_sa_size): Update.
10027 (alpha_initial_elimination_offset): Update.
10028 (alpha_expand_prologue): Update.
10029 (alpha_start_function): Update.
10030 (alpha_expand_epilogue): Update.
10031 (unicosmk_initial_elimination_offset):
10032 * config/alpha/alpha.md (call expander): Update.
10033 * config/s390/s390.c (s390_register_info): Update.
10034 (s390_register_info): Update.
10035 (s390_frame_info): Update.
10036 (s390_initial_elimination_offset): Update.
10037 (s390_build_builtin_va_list): Update.
10038 (s390_va_start): Update.
10039 * config/spu/spu.c (direct_return): Update.
10040 (spu_expand_prologue): Update.
10041 (spu_initial_elimination_offset): Update.
10042 (spu_build_builtin_va_list): Update.
10043 (spu_va_start): Update.
10044 * config/sparc/sparc.c (sparc_init_modes): Update.
10045 (sparc_compute_frame_size): Update.
10046 (function_value): Update.
10047 * config/m32r/m32r.c (m32r_compute_frame_size): Update.
10048 * config/i386/i386.md (return expander): Update.
10049 * config/i386/i386.c (ix86_va_start): Update.
10050 (ix86_can_use_return_insn_p): Update.
10051 (ix86_compute_frame_layout): Update.
10052 (ix86_expand_epilogue): Update.
10053 * config/sh/sh.c (output_stack_adjust): Update.
10054 (calc_live_regs): Update.
10055 (sh_expand_prologue): Update.
10056 (sh_builtin_saveregs): Update.
10057 (sh_va_start): Update.
10058 (initial_elimination_offset): Update.
10059 (sh_allocate_initial_value): Update.
10060 (sh_function_ok_for_sibcall): Update.
10061 (sh_get_pr_initial_val): Update.
10062 * config/sh/sh.md (return expander): Update.
10063 * config/avr/avr.c (frame_pointer_required_p): UPdate.
10064 * config/crx/crx.c (crx_compute_frame): UPdate.
10065 (crx_initial_elimination_offset): UPdate.
10066 * config/xtensa/xtensa.c (compute_frame_size): Update
10067 (xtensa_builtin_saveregs): Update.
10068 (xtensa_va_start): Update.
10069 (order_regs_for_local_alloc): Update.
10070 * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
10071 (xstormy16_expand_builtin_va_start): Update.
10072 * config/fr30/fr30.c (fr30_compute_frame_size): Update.
10073 * config/m68hc11/m68hc11.md (return expanders): Update.
10074 * config/m68hc11/m68hc11.c (expand_prologue): Update.
10075 (expand_epilogue): Update.
10076 * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
10077 (cris_simple_epilogue): Update.
10078 (cris_expand_prologue): Update.
10079 (cris_expand_epilogue): Update.
10080 * config/iq2000/iq2000.c (iq2000_va_start): Update.
10081 (compute_frame_size): Update.
10082 * config/mt/mt.c (mt_compute_frame_size): Update.
10083 * config/mn10300/mn10300.c (expand_prologue): Update.
10084 (expand_epilogue): Update.
10085 (initial_offset): Update.
10086 (mn10300_builtin_saveregs):
10087 * config/mn10300/mn10300.md (return expander): Update.
10088 * config/ia64/ia64.c (ia64_compute_frame_size): Update.
10089 (ia64_initial_elimination_offset): Update.
10090 (ia64_initial_elimination_offset): Update.
10091 (ia64_expand_prologue): Update.
10092 * config/m68k/m68k.md (return expander): Update.
10093 * config/rs6000/rs6000.c (rs6000_va_start): Update.
10094 (rs6000_stack_info): Update.
10095 * config/mcore/mcore.c (layout_mcore_frame): Update.
10096 (mcore_expand_prolog): Update.
10097 * config/arc/arc.c (arc_compute_frame_size): Update.
10098 * config/score/score3.c (score3_compute_frame_size): Update.
10099 * config/score/score7.c (score7_compute_frame_size): Update.
10100 * config/arm/arm.c (use_return_insn): Update.
10101 (thumb_find_work_register): Update.
10102 (arm_compute_save_reg_mask): Update.
10103 (arm_output_function_prologue): Update.
10104 (arm_output_epilogue): Update.
10105 (arm_size_return_regs): Update.
10106 (arm_get_frame_offsets): Update.
10107 (arm_expand_prologue): Update.
10108 (thumb_exit): Update.
10109 (thumb_unexpanded_epilogue): Update.
10110 (thumb1_output_function_prologue): Update.
10111 * config/pa/pa.md (return expander): Update.
10112 * config/pa/pa.c (compute_frame_size): Update.
10113 (hppa_builtin_saveregs): Update.
10114 * config/mips/mips.c (mips_va_start): Update.
10115 (mips16_build_function_stub): Update.
10116 (mips_compute_frame_info): Update.
10117 (mips_restore_gp): Update.
10118 (mips_output_function_prologue): Update.
10119 (mips_expand_prologue): Update.
10120 * config/v850/v850.c (compute_frame_size): Update.
10121 (expand_prologue): * config/mmix/mmix.c (along): update.
10122 (mmix_initial_elimination_offset): update.
10123 (mmix_reorg): update.
10124 (mmix_use_simple_return): update.
10125 (mmix_expand_prologue): update.
10126 (mmix_expand_epilogue): Update.
10127 * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
10128 (emit_link_insn): Update.
10130 2008-04-08 Anatoly Sokolov <aesok@post.ru>
10132 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define
10133 __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL
10135 * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for
10138 2008-04-07 Jan Hubicka <jh@suse.cz>
10140 * function.h (rtl): Rename to x_rtl.
10141 (crtl): New define.
10142 (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
10143 frame_offset, stack_check_probe_note, arg_pointer_save_area,
10144 used_temp_slots avail_temp_slots, temp_slot_level,
10145 nonlocal_goto_handler_labels): Update accesstors.
10146 (rtl): New global variable.
10147 (struct function): Move some fileds to rtl_data.
10148 (get_arg_pointer_save_area): Update prototype.
10149 * builtins.c (expand_builtin_setjmp_receiver): Update call of
10150 get_arg_pointer_save_area.
10151 * expr.c (init_expr): Update
10152 * function.c (get_frame_size): Update
10153 (assign_stack_local): Update
10154 (expand_function_end): Update.
10155 (get_art_pointer_save_area): Update
10157 * emit-rtl.c (rtl): Declare.
10158 (regno_reg_rtx): Declare.
10159 (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
10161 (gen_reg_rtx): Update.
10162 * varasm.c (n_deferred_constatns): Update accestor.
10163 (init_varasm_status): Do not allocate varasm_status.
10164 (force_const_mem, get_pool_size, output_constant_pool): Update.
10165 * stmt.c (force_label_rtx): Do not use x_ prefixes.
10166 (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
10167 * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
10168 * sparc/sparc.h (INIT_EXPANDERS): Update.
10169 * ia64/ia64.h (INIT_EXPANDERS): Update.
10171 2008-04-07 James E. Wilson <wilson@tuliptree.org>
10173 * reload.c (push_secondary_reload): Add missing break to for loop.
10175 2008-04-07 Peter Bergner <bergner@vnet.ibm.com>
10177 PR middle-end/PR28690
10178 * rtlanal.c: Update copyright years.
10179 (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
10180 as REG_POINTER and MEM_POINTER operands.
10181 * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
10182 (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
10183 * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
10184 * gcse.c: Update copyright years.
10185 (pre_delete): Call gen_reg_rtx_and_attrs.
10186 (hoist_code): Likewise.
10187 (build_store_vectors): Likewise.
10188 (delete_store): Likewise.
10189 * loop-invariant.c (move_invariant_reg): Likewise.
10190 Update copyright years.
10192 2008-04-07 Uros Bizjak <ubizjak@gmail.com>
10194 * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
10195 control string instead of quoted.
10197 2008-04-07 Kenneth Zadeck <zadeck@naturalbridge.com>
10199 * doc/rtl.texi: Rewrite of subreg section.
10201 2008-04-07 Kai Tietz <kai.tietz@onevision.com>
10204 * config/i386/i386.c (legitimize_pic_address): Add treating
10205 of dllimport SYM_REF's.
10206 (legitimize_dllimport_symbol): Add prototype.
10208 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
10210 * fold-const.c (fold) <ARRAY_REF>: New case. Try to fold constant
10211 reference in constructor with non self-referential type.
10213 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
10215 Removal of Return with Depressed Stack Pointer support
10216 * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
10217 (ECF_SP_DEPRESSED): Likewise.
10218 (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
10219 * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
10220 (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
10221 (expand_call): Do not test ECF_SP_DEPRESSED.
10222 * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
10223 * function.c (keep_stack_depressed): Delete.
10224 (handle_epilogue_set): Likewise.
10225 (update_epilogue_consts): Likewise.
10226 (emit_equiv_load): Likewise.
10227 (thread_prologue_and_epilogue_insns): Remove support for Return with
10228 Depressed Stack Pointer.
10229 * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
10231 2008-04-06 Richard Guenther <rguenther@suse.de>
10233 PR tree-optimization/35400
10234 * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
10235 information from SSA_NAMEs.
10237 2008-04-06 Anatoly Sokolov <aesok@post.ru>
10239 * config/avr/avr.h (avr_mega_p): Remove declaration.
10240 (AVR_MEGA): Remove macro.
10241 * config/avr/avr.c (avr_mega_p): Remove variable.
10242 (avr_override_options): Remove inicializion of avr_mega_p.
10243 Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
10244 (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
10245 (avr_jump_mode): (Ditto.).
10246 (avr_output_progmem_section_asm_op): (Ditto.).
10247 (avr_asm_init_sections): (Ditto.).
10248 (avr_asm_init_sections): (Ditto.).
10249 (avr_rtx_costs): (Ditto.).
10250 * config/avr/avr.md: (Ditto.).
10251 * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of
10254 2008-04-06 Richard Guenther <rguenther@suse.de>
10256 PR tree-optimization/35842
10257 * tree-ssa-address.c (fixed_address_object_p): Adjust to match
10258 is_gimple_invariant_address.
10260 2008-04-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
10262 * gcc.c (default_compilers): Sync Fortran extensions list with
10263 that in fortran/lang-specs.h.
10264 * doc/invoke.texi: Likewise.
10265 * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
10266 * dwarf2out.c (gen_compile_unit_die): Likewise.
10268 2008-04-06 Tom G. Christensen <tgc@jupiterrise.com>
10270 * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
10272 2008-04-05 Uros Bizjak <ubizjak@gmail.com>
10275 * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
10276 attribute is used for nested functions.
10278 2008-04-05 Jan Hubicka <jh@suse.cz>
10280 * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
10282 * tree-dump.c (dump_enable_all): Remove prototype; do not accept
10284 (dump_files): Update.
10285 (enable_rtl_dump_file): Do not accept letter argument.
10286 * tree-pass.h (dump_file_info): Remove letter argument.
10287 * toplev.c (decode_d_option): Update -da handling.
10288 * toplev.h (enable_rtl_dump_file): Update prototype.
10289 * passes.c (register_one_dump_file): Do not accept IPA argument; work
10290 it out based on pass type.
10291 (register_dump_files_1): Likewise.
10292 (init_optimization_passes): Update register_one_dump_file calls.
10293 (execute_one_pass): Sanity check that IPA passes are called at IPA
10294 level and RTL passes at RTL level.
10295 (execute_pass_list): IPA pass can not be after or subpass of
10297 (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
10298 disallov RTL subpasses of IPA subpasses.
10300 2008-04-05 Ben Elliston <bje@au.ibm.com>
10302 * tree-cfg.c (need_fake_edge_p): Return false for calls to
10303 builtins that return exactly once and do not throw. Cache call to
10306 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
10308 PR rtl-optimization/34916
10309 PR middle-end/35519
10310 * combine.c (create_log_links): Do not create duplicate LOG_LINKS
10311 between instruction pairs.
10313 2008-04-04 Naveen.H.S <naveen.hs@kpitcummins.com>
10315 * doc/invoke.texi: Document -mbitops for SH.
10316 * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
10317 * config/sh/predicates.md (bitwise_memory_operand): New predicate.
10318 * config/sh/sh.c (print_operand): Add %t operand code.
10319 * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
10320 * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
10321 (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
10322 (extendqihi2): Likewise.
10323 (movqi_i): Likewise.
10324 (insv): Use bset, bclr and bst instructions for SH2A if possible.
10325 (extv): Use bld instruction for SH2A if possible.
10327 (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
10328 bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
10329 bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
10330 (bset.b, bclr.b): Define peepholes.
10331 * config/sh/sh.opt (mbitops): New option.
10333 2008-04-04 Janis Johnson <janis187@us.ibm.com>
10336 * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
10337 and view convert expression.
10339 2008-04-04 Jakub Jelinek <jakub@redhat.com>
10342 * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
10344 2008-04-04 H.J. Lu <hongjiu.lu@intel.com>
10346 * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
10348 * config/i386/cpuid.h (bit_AES): New.
10349 (bit_PCLMUL): Likewise.
10351 * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
10352 (override_options): Handle PTA_AES and PTA_PCLMUL. Enable
10353 SSE2 if AES or PCLMUL is enabled.
10354 (ix86_builtins): Add IX86_BUILTIN_AESENC128,
10355 IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
10356 IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
10357 IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
10358 (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
10359 (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
10360 IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
10361 IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
10362 (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
10363 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
10364 __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
10365 __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
10366 __builtin_ia32_aeskeygenassist128 and
10367 __builtin_ia32_pclmulqdq128.
10368 * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
10369 (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
10370 IX86_BUILTIN_PSRLDQI128. Handle IX86_BUILTIN_AESKEYGENASSIST128.
10372 * config/i386/i386.h (TARGET_AES): New.
10373 (TARGET_PCLMUL): Likewise.
10374 (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
10376 * config/i386/i386.md (UNSPEC_AESENC): New.
10377 (UNSPEC_AESENCLAST): Likewise.
10378 (UNSPEC_AESDEC): Likewise.
10379 (UNSPEC_AESDECLAST): Likewise.
10380 (UNSPEC_AESIMC): Likewise.
10381 (UNSPEC_AESKEYGENASSIST): Likewise.
10382 (UNSPEC_PCLMUL): Likewise.
10384 * config/i386/i386.opt (maes): New.
10385 (mpclmul): Likewise.
10387 * config/i386/sse.md (aesenc): New pattern.
10388 (aesenclast): Likewise.
10389 (aesdec): Likewise.
10390 (aesdeclast): Likewise.
10391 (aesimc): Likewise.
10392 (aeskeygenassist): Likewise.
10393 (pclmulqdq): Likewise.
10395 * config/i386/wmmintrin.h: New.
10397 * doc/extend.texi: Document AES and PCLMUL built-in function.
10399 * doc/invoke.texi: Document -maes and -mpclmul.
10401 2008-04-04 Paolo Bonzini <bonzini@gnu.org>
10403 * function.c (free_after_parsing): Replace with
10404 cxx_push_function_context from C++ front-end.
10405 (allocate_struct_function): Don't call langhook.
10406 * langhooks.h (struct lang_hooks_for_functions): Delete.
10407 (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
10409 * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
10410 (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
10411 LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
10412 LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
10413 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
10414 remove LANG_HOOKS_FUNCTION_INITIALIZER.
10415 * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
10417 * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
10418 Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
10420 2008-04-04 Jakub Jelinek <jakub@redhat.com>
10423 * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
10426 2008-04-04 Richard Guenther <rguenther@suse.de>
10428 PR middle-end/35823
10429 * fold-const.c (optimize_minmax_comparison): Use the correct
10430 type for the constant in the simplified comparison.
10432 2008-04-04 Zuxy Meng <zuxy.meng@gmail.com>
10434 * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
10435 Pass L2 size as "--param l2-cache-size" to the compiler.
10436 (decode_l2_cache): New function to decode L2 cache parameters using
10437 0x8000006 extended cpuid function.
10438 (detect_caches_amd): Determine parameters of L2 cache using
10439 decode_l2_caches function.
10440 (decode_caches_intel): Decode L2 cache parameters.
10441 (detect_caches_intel): Determine L2 cache parameters using
10442 decode_caches_intel and decode_l2_caches functions.
10444 2008-04-03 Bob Wilson <bob.wilson@acm.org>
10446 * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
10447 secondary input reload for subword loads from the constant pool.
10449 2008-04-03 Janis Johnson <janis187@us.ibm.com>
10452 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
10453 constants of the appropriate size for runtime calculations.
10456 * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
10457 decimal-float literal constant zero.
10459 2008-04-03 Jakub Jelinek <jakub@redhat.com>
10462 * c-parser.c (c_parser_omp_atomic): Call
10463 default_function_array_conversion on the RHS.
10465 PR middle-end/35818
10466 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
10467 call is_variable_sized if decl has incomplete type.
10469 2008-04-03 H.J. Lu <hongjiu.lu@intel.com>
10471 * config/i386/i386-protos.h (ix86_aligned_p): Removed.
10473 2008-04-03 Adam Nemet <anemet@caviumnetworks.com>
10475 * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
10477 (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and leu.
10478 (sgt<u>): Merge sgt and sgtu into new expander.
10479 (sgt, sgtu): Remove expanders.
10480 (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new pattern.
10481 (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
10482 (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
10483 *sgtu_<mode>_mips16 into new pattern.
10484 (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
10485 (sge<u>): Merge sge and sgeu into new expander.
10486 (sge, sgeu): Remove expanders.
10487 (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
10489 (*sge_<mode>, second *sge_<mode>): Remove patterns.
10490 (slt<u>): Merge slt and sltu into new expander.
10491 (slt, sltu): Remove expanders.
10492 (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new pattern.
10493 (*slt_<mode>, *sltu_<mode>): Remove patterns.
10494 (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
10495 *sltu_<mode>_mips16 into new pattern.
10496 (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
10497 (sle<u>): Merge sle and sleu into new expander.
10498 (sle, sleu): Remove expanders.
10499 (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new pattern.
10500 (*sle_<mode>, *sleu_<mode>): Remove patterns.
10501 (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
10502 *sleu_<mode>_mips16 into new pattern.
10503 (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
10505 2008-04-03 Jan Hubicka <jh@suse.cz>
10507 PR tree-optimization/35795
10508 * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
10509 * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
10510 * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
10511 * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
10512 * score/score3.c (score3_output_mi_thunk): Likewise.
10513 * score/score7.c (score7_output_mi_thunk): Likewise.
10514 * mips/mips.c (mips_output_mi_thunk): Likewise.
10516 2008-04-03 Richard Guenther <rguenther@suse.de>
10518 * tree-vrp.c (extract_range_from_unary_expr): Handle all
10519 conversions. Simplify code.
10521 2008-04-03 Kaz Kojima <kkojima@gcc.gnu.org>
10523 * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
10525 2008-04-03 Tom Tromey <tromey@redhat.com>
10526 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10528 * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
10529 * config/bfin/t-bfin-linux (generated_files): Add
10530 linux-sysroot-suffix.h.
10531 * doc/install.texi (Prerequisites): Require make 3.80.
10532 * doc/sourcebuild.texi (Front End Directory): Document new
10534 * Makefile.in (generated_files): New variable.
10535 (ALL_HOST_OBJS): New variable.
10536 ($(ALL_HOST_OBJS)): New target.
10538 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
10540 * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
10541 (remap_block): Call id->transform_lang_insert_block instead
10543 (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
10544 Set id.transform_lang_insert_block to NULL.
10545 (clone_body): Move to cp/optimize.c
10546 * tree-inline.h (struct copy_body_data): Change
10547 transform_lang_insert_block to function pointer.
10548 (copy_generic_body, copy_decl_no_change): Export.
10549 * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
10550 * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
10551 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
10553 * c-tree.h (insert_block): Kill.
10554 * c-decl.c (insert_block): Kill.
10556 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
10558 * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
10559 LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
10560 * c-tree.h (c_push_function_context, c_pop_function_context): Remove
10562 * c-decl.c (c_push_function_context, c_pop_function_context): Remove
10563 argument, call {push,pop}_function_context from here.
10564 * c-parser.c: Use c_{push,pop}_function_context.
10566 * function.c (push_function_context_to): Move meat ...
10567 (push_function_context): ... here. Simplify.
10568 * function.c (pop_function_context_from): Move meat ...
10569 (pop_function_context): ... here. Simplify.
10570 * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
10572 * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
10573 LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
10574 (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
10575 * tree.h (push_function_context_to, pop_function_context_from): Remove.
10577 2008-04-03 Ben Elliston <bje@au.ibm.com>
10579 * expmed.c (extract_force_align_mem_bit_field): Remove.
10581 2008-04-03 Richard Guenther <rguenther@suse.de>
10583 PR middle-end/35800
10584 * expr.h (try_casesi): Adjust prototype.
10585 * expr.c (try_casesi): Take fallback label as extra parameter.
10586 Use that for gen_casesi if default_label is NULL.
10587 * stmt.c (expand_case): Pass fallback label to try_casesi,
10588 make sure to fill gaps with a fallback label if default_label
10591 2008-04-03 Dominique d'Humieres <dominiq@lps.ens.fr>
10594 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
10596 2008-04-03 Ben Elliston <bje@au.ibm.com>
10598 * expmed.c (extract_split_bit_field): Remove if (0) code.
10599 * tree-ssa-structalias.c (do_sd_constraint): Likewise.
10600 (do_ds_constraint): Likewise.
10602 2008-04-02 Joseph Myers <joseph@codesourcery.com>
10604 * doc/cppopts.texi (-dU): Document.
10605 * c-common.h (flag_dump_macros): Update comment.
10606 * c-opts.c (handle_OPT_d): Handle -dU.
10607 * c-ppoutput.c (macro_queue, define_queue, undef_queue,
10608 dump_queued_macros, cb_used_define, cb_used_undef): New.
10609 (init_pp_output): Handle -dU.
10610 (cb_line_change): Call dump_queued_macros.
10611 * toplev.c (decode_d_option): Accept -dU as preprocessor option.
10613 2008-04-02 Anatoly Sokolov <aesok@post.ru>
10615 * config/avr/predicates.md (io_address_operand): New predicate.
10616 * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
10617 * config/avr/avr.c (avr_io_address_p): Remove function.
10618 (out_movqi_r_mr): Use 'io_address_operand' predicate instead of
10619 'avr_io_address_p' function.
10620 (out_movhi_r_mr): (Ditto.).
10621 (out_movqi_mr_r): (Ditto.).
10622 (out_movhi_mr_r): (Ditto.).
10623 (avr_address_cost): (Ditto.).
10625 2008-04-02 Uros Bizjak <ubizjak@gmail.com>
10627 * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
10628 Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
10629 in 32bit mode when XMM registers are available to avoid store
10631 (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
10632 corresponding post-reload splitters.
10634 2008-04-02 H.J. Lu <hongjiu.lu@intel.com>
10636 * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
10637 and __builtin_ia32_shufpd. Provide __builtin_ia32_roundsd and
10638 __builtin_ia32_roundss.
10639 (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
10640 __builtin_ia32_shufpd, __builtin_ia32_roundsd and
10641 __builtin_ia32_roundss.
10642 (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
10643 IX86_BUILTIN_SHUFPD here.
10645 2008-04-02 H.J. Lu <hongjiu.lu@intel.com>
10647 * config/i386/i386.md (plogic): New.
10648 (plogicprefix): Likewise.
10650 * config/i386/mmx.md (mmx_<code><mode>3): New.
10651 (mmx_and<mode>3): Removed.
10652 (mmx_ior<mode>3): Likewise.
10653 (mmx_xor<mode>3): Likewise.
10655 * config/i386/sse.md (<code><mode>3): New.
10656 (*<code><mode>3): Likewise.
10657 (*<code><mode>3): Likewise.
10658 (<code><mode>3): Likewise.
10659 (*sse_<code><mode>3): Likewise.
10660 (*sse2_<code><mode>3): Likewise.
10661 (<code>tf3): Likewise.
10662 (*<code>tf3): Likewise.
10663 (and<mode>3): Likewise.
10664 (*and<mode>3): Likewise.
10665 (ior<mode>3): Removed.
10666 (*ior<mode>3): Likewise.
10667 (xor<mode>3): Likewise.
10668 (*xor<mode>3): Likewise.
10669 (*and<mode>3): Likewise.
10670 (*ior<mode>3): Likewise.
10671 (*xor<mode>3): Likewise.
10672 (and<mode>3): Likewise.
10673 (*sse_and<mode>3): Likewise.
10674 (*sse2_and<mode>3): Likewise.
10675 (andtf3): Likewise.
10676 (*andtf3): Likewise.
10677 (ior<mode>3): Likewise.
10678 (*sse_ior<mode>3): Likewise.
10679 (*sse2_ior<mode>3): Likewise.
10680 (iortf3): Likewise.
10681 (*iortf3): Likewise.
10682 (xor<mode>3): Likewise.
10683 (*sse_xor<mode>3): Likewise.
10684 (*sse2_xor<mode>3): Likewise.
10685 (xortf3): Likewise.
10686 (*xortf3): Likewise.
10688 2008-04-02 Richard Guenther <rguenther@suse.de>
10690 PR tree-optimization/14495
10691 PR tree-optimization/34793
10692 * tree-vrp.c (struct switch_update): New structure.
10693 (to_remove_edges, to_update_switch_stmts): New VECs.
10694 (simplify_switch_using_ranges): New function. Remove not taken
10695 case labels and edges.
10696 (simplify_stmt_using_ranges): Call it.
10697 (identify_jump_threads): Mark edges we have queued for removal
10698 so we don't thread them.
10699 (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
10701 * tree-cfg.c (group_case_labels): Deal with missing default label.
10702 (tree_verify_flow_info): Allow missing default label.
10703 * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
10704 (emit_case_nodes): Likewise.
10705 (expand_case): Do not rely on the default label to be present.
10706 * expr.c (try_casesi): Deal with NULL default_label.
10707 (do_tablejump): Likewise.
10709 2008-04-02 Richard Guenther <rguenther@suse.de>
10711 PR tree-optimization/14495
10712 * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
10713 SWITCH_EXPR here ...
10714 (vrp_visit_switch_stmt): ... but here (new function).
10715 (find_case_label_index): New helper function.
10716 (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
10718 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
10720 * fwprop.c: Fix ISO-C99ism.
10722 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
10725 * Makefile.in (objdir): Set it here.
10726 * configure.ac: Not here. Find dynamic linker characteristics.
10727 * exec-tool.in: Use them.
10728 * aclocal.m4: Regenerate.
10729 * configure: Regenerate.
10731 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
10733 * expr.c (expand_var): Delete it.
10734 * expr.h (expand_var): Delete prototype.
10735 * function.c (expand_function_start): Use expand_decl instead.
10736 * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
10739 2008-04-02 Andy Hutchinson <hutchinsonamdy@aim.com>
10741 PR rtl-optimization/35542
10742 * fwprop.c (forward_propagate_and_simplify): Replace
10743 loc_reg_mentioned_in_p with reg_mentioned_p.
10745 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
10747 PR rtl-optimization/35281
10748 * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
10749 (propagate_rtx_1): Handle PR_HANDLE_MEM.
10750 (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
10751 (varying_mem_p): Move above propagate_rtx.
10752 (all_uses_available_at): Do not check MEMs.
10754 2008-04-02 Rafael Espindola <espindola@google.com>
10756 * tree-vrp.c (extract_code_and_val_from_cond): Remove.
10757 (register_edge_assert_for_2): Split the cond argument.
10758 (register_edge_assert_for_1): Adjust for the change in
10759 register_edge_assert_for_2.
10760 (register_edge_assert_for): Split the cond argument.
10761 (find_switch_asserts): Adjust for the change in
10762 register_edge_assert_for.
10764 2008-04-02 Kai Tietz <kai.tietz@onevision.com>
10766 * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
10767 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
10768 offsets for 64-bit mingw.
10769 * config/i386/i386.c (ix86_pass_by_reference): Correct calling
10770 abi for x86_64-pc-mingw.
10772 2008-04-02 Richard Guenther <rguenther@suse.de>
10774 * tree-vrp.c (extract_range_from_assert): Make sure to not
10775 produce range min/max with TREE_OVERFOW set.
10776 If merging a anti-range and a range keep the anti-range if
10777 the range covers all values of the type.
10778 (register_edge_assert_for_2): Only allow sign-changing
10779 conversions in detecting canonical range checks. Also
10780 register an assert for the unsigned name if useful.
10782 PR tree-optimization/35787
10783 * tree-vrp.c (vrp_val_max): New function.
10784 (vrp_val_min): Likewise.
10785 (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
10786 (vrp_val_is_min): Likewise.
10787 (supports_overflow_infinity): Use vrp_val_{min,max}.
10788 (negative_overflow_infinity): Likewise.
10789 (positive_overflow_infinity): Likewise.
10790 (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
10791 (is_positive_overflow_infinity): Likewise.
10792 (is_overflow_infinity): Likewise.
10793 (avoid_overflow_infinity): Use vrp_val_{min,max} and
10794 vrp_val_is_{min,max}.
10795 (set_and_canonicalize_value_range): Canonicalize anti-ranges
10796 to ranges if possible. Avoid empty ranges.
10798 2008-04-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10800 PR middle-end/35705
10801 * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
10802 the expression is a function address.
10804 2008-04-01 George Helffrich <george@gcc.gnu.org>
10806 PR fortran/35154, fortran/23057
10807 * dbxout.c: Emit .stabs debug info for Fortran COMMON block
10808 variables as base symbol name + offset using N_BCOMM/N_ECOMM.
10809 (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
10810 (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
10812 (dbxout_syms): Check for COMMON-based symbol and wrap in
10813 N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
10814 in bracket for efficiency.
10816 * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
10817 using DW_TAG_common_block + member offset.
10818 (add_pubname_string): New function.
10819 (dw_expand_expr): New function to find block name and offset for
10821 (common_check): New function to check whether symbol in Fortran COMMON.
10822 (gen_variable_die): If COMMON, use DW_TAG_common_block.
10824 2008-04-01 Volker Reichelt <v.reichelt@netcologne.de>
10827 * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
10829 2008-04-02 Ben Elliston <bje@au.ibm.com>
10831 * config/v850/v850.md (casesi): Remove if (0) code.
10832 * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
10833 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
10835 2008-04-01 Uros Bizjak <ubizjak@gmail.com>
10837 * config/i386/i386.md (rex64suffix): New mode attribute.
10838 (floathi<mode>2): Disable expander for SSE math.
10839 (*floathi<mode>2_1): New insn insn_and_split pattern.
10840 (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
10841 corresponding post-reload splitters.
10842 (*floathi<mode>2_i387): New macroized insn pattern.
10843 (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
10844 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
10845 insn_and_split pattern.
10846 (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
10847 New macroized instruction patterns and corresponding post-reload
10849 (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
10850 and corresponding post-reload splitters.
10851 (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
10852 New macroized instruction patterns.
10853 (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
10854 macroized instruction patterns and corresponding post-reload splitters.
10855 (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
10856 corresponding post-reload splitters.
10857 (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
10858 New macroized instruction patterns.
10859 (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
10860 corresponding post-reload splitters.
10861 (*floatsi<mode>2_i387): New macroized instruction patterns.
10863 2008-04-01 H.J. Lu <hongjiu.lu@intel.com>
10865 * config/i386/i386.md (smaxmin): New.
10866 (umaxmin): Likewise.
10867 (maxminiprefix): Likewise.
10868 (maxminfprefix): Likewise.
10869 (<code><mode>3): Likewise.
10870 (smin<mode>3): Removed.
10871 (smax<mode>3): Likewise.
10873 * config/i386/mmx.md (mmx_<code>v2sf3): New.
10874 (mmx_<code>v4hi3): Likewise.
10875 (mmx_<code>v8qi3): Likewise.
10876 (mmx_smaxv2sf3): Removed.
10877 (mmx_sminv2sf3): Likewise.
10878 (mmx_umaxv8qi3): Likewise.
10879 (mmx_smaxv4hi3): Likewise.
10880 (mmx_uminv8qi3): Likewise.
10881 (mmx_sminv4hi3): Likewise.
10883 * config/i386/sse.md (<addsub><mode>3): New.
10884 (*<addsub><mode>3): Likewise.
10885 (<sse>_vm<addsub><mode>3): Likewise.
10886 (<maxmin><mode>3): Likewise.
10887 (*<maxmin><mode>3_finite): Likewise.
10888 (*<maxmin><mode>3): Likewise.
10889 (<sse>_vm<maxmin><mode>3): Likewise.
10890 (sse3_h<addsub>v4sf3): Likewise.
10891 (sse3_h<addsub>v2df3): Likewise.
10892 (<maxmin>v16qi3): Likewise.
10893 (*<maxmin>v16qi3): Likewise.
10894 (<maxmin>v8hi3): Likewise.
10895 (*<maxmin>v8hi3): Likewise.
10896 (*sse4_1_<maxmin><mode>3): Likewise.
10897 (*sse4_1_<maxmin><mode>3): Likewise.
10898 (add<mode>3): Removed.
10899 (*add<mode>3): Likewise.
10900 (<sse>_vmadd<mode>3): Likewise.
10901 (sub<mode>3): Likewise.
10902 (*sub<mode>3): Likewise.
10903 (<sse>_vmsub<mode>3): Likewise.
10904 (smin<mode>3): Likewise.
10905 (*smin<mode>3_finite): Likewise.
10906 (*smin<mode>3): Likewise.
10907 (<sse>_vmsmin<mode>3): Likewise.
10908 (smax<mode>3): Likewise.
10909 (*smax<mode>3_finite): Likewise.
10910 (*smax<mode>3): Likewise.
10911 (<sse>_vmsmax<mode>3): Likewise.
10912 (sse3_haddv4sf3): Likewise.
10913 (sse3_haddv2df3): Likewise.
10914 (sse3_hsubv4sf3): Likewise.
10915 (sse3_hsubv2df3): Likewise.
10916 (umaxv16qi3): Likewise.
10917 (*umaxv16qi3): Likewise.
10918 (smaxv8hi3): Likewise.
10919 (*smaxv8hi3): Likewise.
10920 (*sse4_1_smax<mode>3): Likewise.
10921 (*sse4_1_umax<mode>3): Likewise.
10922 (uminv16qi3): Likewise.
10923 (*uminv16qi3): Likewise.
10924 (sminv8hi3): Likewise.
10925 (*sminv8hi3): Likewise.
10926 (*sse4_1_smin<mode>3): Likewise.
10927 (*sse4_1_umin<mode>3): Likewise.
10929 2008-04-01 Rafael Espindola <espindola@google.com>
10931 * tree-cfg.c (verify_expr): remove in_phi.
10932 (verify_stmt): Don't call walk_tree with verify_expr. Use
10933 is_gimple_min_invariant instead of is_gimple_val.
10935 2008-04-01 Joseph Myers <joseph@codesourcery.com>
10937 * doc/include/gpl_v3.texi: Update for manpage generation.
10938 * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
10940 * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
10941 * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
10942 gpl_v3.texi instead of gpl.texi.
10945 2008-04-01 Jakub Jelinek <jakub@redhat.com>
10948 * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
10950 2008-04-01 Rafael Espindola <espindola@google.com>
10952 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
10953 (extract_code_and_val_from_cond): Use
10954 extract_code_and_val_from_cond_with_ops.
10956 2008-04-01 Jan Hubicka <jh@suse.cz>
10958 * function.c (free_after_compilation): Free epilogue_delay_list.
10959 (prepare_function_start): Assert that previous compilation was freed.
10961 2008-04-01 Jan Hubicka <jh@suse.cz>
10962 Jim Wilson <wilson@tuliptree.org>
10963 Andreas Tobler <andreast@gcc.gnu.org>
10965 PR middle-end/35781
10966 * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
10967 rtl.emit instead cfun->emit.
10968 * sparc/sparc.h (INIT_EXPANDERS): Likewise.
10969 * ia64/ia64.h (INIT_EXPANDERS): Likewise.
10971 2008-04-01 Ben Elliston <bje@au.ibm.com>
10973 * doc/c-tree.texi (Function Basics): Fix grammatical error.
10975 2008-03-31 Seongbae Park <seongbae.park@gmail.com>
10977 * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
10979 (fprofile-use): Add var flag_profile_use
10980 * coverage.c (coverage_begin_output): Do not open a gcno file for
10981 output only if -ftest-coverage is set.
10982 Do not add getpwd() to gcda file path.
10983 (build_gcov_info): Check the new flag
10984 flag_profile_datafile_relative_path.
10985 (coverage_init): Use profile_data_prefix.
10986 Read profile counter only if flag_profile_use is set.
10987 * opts.c (common_handle_option): New option fprofile-use=,
10988 fprofile-dir=, fprofile-generate=.
10989 * toplev.c (profile_data_prefix): New variable definition.
10990 * toplev.h (profile_data_prefix): New declaration.
10991 * doc/invoke.tex (Option Summary, Optimization Options):
10994 2008-03-31 James E. Wilson <wilson@tuliptree.org>
10996 * varasm.c (output_constant_pool_1): In LABEL_REF check,
10997 use tmp consistently.
11000 * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
11001 * config/ia64/ia64.c (rtx_needs_barrier): Handle
11002 UNSPEC_FR_RECIP_APPROX_RES.
11003 * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
11005 2008-03-31 Volker Reichelt <v.reichelt@netcologne.de>
11008 * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
11010 2008-03-31 Andrew Pinski <andrew_pinski@playstation.sony.com>
11012 PR middle-end/30186
11013 * fold-const.c (fold_indirect_ref_1): Support accessing non first
11014 element of the vector via a pointer.
11016 2008-03-31 Ian Lance Taylor <iant@google.com>
11018 * tlink.c (scan_linker_output): Look for symbol name in single quotes.
11020 2008-03-31 Jan Hubicka <jh@suse.cz>
11022 * builtins.c (expand_builtin_setjmp_receiver): Update call of
11023 get_arg_pointer_save_area.
11024 * expr.c (init_expr): Just clear out rtl.expr.
11025 * function.c (free_after_compilation): Clear out whole RTL structure.
11026 (get_func_frame_size): Merge into ...
11027 (get_frame_size): ... this one.
11028 (assign_stack_local_1): Merge into ...
11029 (assign_stack_local): ... this one.
11030 (expand_function_end): Update call of get_arg_pointer_save_area.
11031 (get_art_pointer_save_area): Remove cfun argument.
11032 * function.h (emit_status): regno_pointer_align does not need length
11033 attribute. Move x_regno_reg_rtx to ...
11034 (regno_reg_rtx): ... new global array.
11035 (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
11036 (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
11037 apply_args_value, forced_labels, stack_pointer_delta):
11039 (struct varasm_status): Move here from varasm.c
11040 (struct rtl_data): New. Move here some fields from struct function.
11041 (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
11042 frame_offset, stack_check_probe_note, arg_pointer_save_area,
11043 used_temp_slots avail_temp_slots, temp_slot_level,
11044 nonlocal_goto_handler_labels): Update accesstors.
11045 (rtl): New global variable.
11046 (struct function): Move some fileds to rtl_data.
11047 (get_arg_pointer_save_area): Update prototype.
11048 * emit-rtl.c (rtl): Declare.
11049 (regno_reg_rtx): Declare.
11050 (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
11052 (gen_reg_rtx): Update.
11053 (init_virtual_regs): Do not tate emit_status argument.
11054 (init_emit): Do not allocate emit.
11055 * varasm.c (varasm_statuc): Move to function.h.
11056 (n_deferred_constatns): Update accestor.
11057 (init_varasm_status): Do not allocate varasm_status.
11058 (force_const_mem, get_pool_size, output_constant_pool): Update.
11059 * stmt.c (force_label_rtx): Do not use x_ prefixes.
11060 (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
11062 2008-03-31 Zdenek Dvorak <ook@ucw.cz>
11064 PR rtl-optimization/35729
11065 * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
11068 2008-03-31 H.J. Lu <hongjiu.lu@intel.com>
11071 * config/i386/i386.md (*movti_internal): Emit unaligned SSE
11072 load/store if memory is unaligned.
11073 (*movti_rex64): Likewise.
11075 * config/i386/predicates.md (misaligned_operand): New.
11077 2008-03-31 Andrew Pinski <pinskia@gmail.com>
11080 * tree-ssa-phiopt.c (conditional_replacement): Return early for
11083 2008-03-31 Jan Beulich <jbeulich@novell.com>
11085 * config/ia64/constraints.md: Add 'j' constraint.
11086 * config/ia64/ia64.md (movsi_internal): Add addp4 case.
11087 (movdi_internal): Likewise.
11089 2008-03-30 Volker Reichelt <v.reichelt@netcologne.de>
11092 * c-typeck.c (build_c_cast): Skip invalid fields in unions.
11094 2008-03-30 H.J. Lu <hongjiu.lu@intel.com>
11097 * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
11098 proper error message for the third argument on blendpd and
11101 * config/i386/sse.md (blendbits): New.
11102 (sse4_1_blendp<ssemodesuffixf2c>): Use it.
11104 2008-03-30 Eric Botcazou <ebotcazou@adacore.com>
11106 * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
11108 2008-03-30 Richard Guenther <rguenther@suse.de>
11110 PR middle-end/31023
11111 * fold-const.c (fold_sign_changed_comparison): Do leave
11112 conversions to base-types alone.
11114 2008-03-29 Andrew Pinski <andrew_pinski@playstation.sony.com>
11116 * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
11117 the link register if one altivec register is be saved.
11119 2008-03-30 Ben Elliston <bje@au.ibm.com>
11121 * final.c (final_scan_insn): Remove if (0) code.
11123 2008-03-28 Volker Reichelt <v.reichelt@netcologne.de>
11125 * c-parser.c (c_parser_next_token_is_keyword): Simplify.
11127 2008-03-28 H.J. Lu <hongjiu.lu@intel.com>
11129 * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
11130 of V4SFmode to ix86_binary_operator_ok.
11132 2008-03-28 Uros Bizjak <ubizjak@gmail.com>
11134 * config/i386/i386.c (override_options): Initialize
11135 ix86_veclib_handler to ix86_veclibabi_svml when
11136 -mveclibabi=svml is used.
11137 (ix86_veclibabi_svml): New function for SVML ABI style
11138 vectorization support.
11139 * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
11141 2008-03-28 Rafael Espindola <espindola@google.com>
11143 * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
11144 (tree_binary_nonnegative_warnv_p): Make it public.
11145 (tree_single_nonnegative_warnv_p): Make it public.
11146 (tree_invalid_nonnegative_warnv_p): Make it public.
11147 (tree_unary_nonzero_warnv_p): Make it public.
11148 (tree_binary_nonzero_warnv_p): Make it public
11149 (tree_single_nonzero_warnv_p): Make it public.
11150 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
11151 (extract_range_from_binary_expr): Split the expr argument.
11152 (extract_range_from_unary_expr): Split the expr argument.
11153 (extract_range_from_comparison): Split the expr argument.
11154 (extract_range_from_expr): Use the new aux functions.
11155 (vrp_evaluate_conditional_warnv): Use
11156 vrp_evaluate_conditional_warnv_with_ops.
11157 * tree.h (tree_unary_nonzero_warnv_p): Declare.
11158 (tree_binary_nonzero_warnv_p): Declare.
11159 (tree_single_nonzero_warnv_p): Declare.
11160 (tree_expr_nonzero_warnv_p): Declare.
11161 (tree_unary_nonnegative_warnv_p): Declare.
11162 (tree_binary_nonnegative_warnv_p): Declare.
11163 (tree_single_nonnegative_warnv_p): Declare.
11164 (tree_invalid_nonnegative_warnv_p): Declare.
11166 2008-03-28 Richard Guenther <rguenther@suse.de>
11168 PR tree-optimization/30317
11169 PR tree-optimization/30911
11170 PR tree-optimization/34793
11171 * tree-vrp.c (set_and_canonicalize_value_range): New function.
11172 (struct assert_locus_d): New member EXPR.
11173 (register_new_assert_for): Add EXPR parameter to support
11174 ASSERT_EXPR <name, expr OP limit>.
11175 (register_edge_assert_for_1): Adjust callers.
11176 (find_assert_locations): Likewise.
11177 (process_assert_insertions_for): Build condition from expression.
11178 (extract_range_from_assert): Handle ASSERT_EXPRs
11179 of the form ASSERT_EXPR <name, expr OP limit>.
11180 (register_edge_assert_for_2): New helper registering
11181 asserts for comparisons. Recognize range tests of the form
11182 (unsigned)i - CST1 OP CST2.
11183 (register_edge_assert_for_1): Use it.
11184 (register_edge_assert_for): Likewise.
11185 (needs_overflow_infinity): Integer sub-types
11186 do not need overflow infinities.
11187 (vrp_val_is_max): The extreme values of integer sub-types
11188 are those of the base type.
11189 (vrp_val_is_min): Likewise.
11190 * tree.def (ASSERT_EXPR): Document extra allowed conditional
11193 2008-03-28 Nick Clifton <nickc@redhat.com>
11196 * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
11197 Return GENERAL_REGS for stack adjustment reloads.
11199 2008-03-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
11202 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
11203 const_vector when all the vectors are constant.
11205 2008-03-27 Bob Wilson <bob.wilson@acm.org>
11207 * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
11209 * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
11210 (any_scc_sf): Add uneq, unlt, unle and unordered operators.
11212 (s<code>_sf): Use new scc_sf attribute for opcode names.
11214 2008-03-27 Tom Tromey <tromey@redhat.com>
11216 * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
11217 configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
11218 config/spu/t-spu-elf, config/i386/t-interix,
11219 config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
11220 config/i386/x-darwin, config/i386/x-mingw32,
11221 config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
11222 config/sh/t-sh, config/sh/t-symbian, config/x-linux,
11223 config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
11224 config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
11225 config/rs6000/x-rs6000, config/rs6000/x-darwin64,
11226 config/rs6000/x-darwin, config/rs6000/t-rs6000,
11227 config/score/t-score-elf, config/arm/t-strongarm-pe,
11228 config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
11229 config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
11230 Revert automatic dependency patch.
11232 2008-03-27 H.J. Lu <hongjiu.lu@intel.com>
11235 * config/i386/i386.c (ix86_function_arg_boundary): Align
11236 decimal floating point to its natural boundary.
11238 2008-03-27 Richard Guenther <rguenther@suse.de>
11240 PR middle-end/35716
11241 * fold-const.c (fold_comparison): Restrict distinct decl
11242 comparison folding to VAR_DECLs and PARM_DECLs. Do not
11243 solely rely on operand_equal_p.
11245 2008-03-27 Richard Guenther <rguenther@suse.de>
11248 * c-common.c (handle_weak_attribute): Reject combination of
11251 2008-03-27 Richard Guenther <rguenther@suse.de>
11253 PR tree-optimization/32810
11254 * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
11255 conversions from DECL_INITIAL.
11256 (fold_const_aggregate_ref): Likewise from constructor elements.
11258 2008-03-27 Zdenek Dvorak <ook@ucw.cz>
11260 * tree-affine.h (aff_combination_expand): Declare.
11261 (get_inner_reference_aff): Likewise.
11262 * tree-affine.c (aff_combination_expand): Split out from
11263 tree_to_aff_combination_expand.
11264 (get_inner_reference_aff): New function.
11265 * tree-parloops.c (loop_parallel_p): Free vectorizer info.
11266 * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
11267 (struct lim_aux_data): sm_done field removed.
11268 (mem_ref_loc_p, mem_ref_locs_p): New types.
11269 (struct mem_ref): Added id, stored, accesses_in_loop,
11270 indep_loop, dep_loop, indep_ref, dep_ref fields.
11271 Removed is_stored, locs and next fields.
11272 (memory_accesses): New variable.
11273 (movement_possibility): Do not allow moving statements
11274 that store to memory.
11275 (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
11277 (determine_max_movement): For statements with memory references,
11278 find the outermost loop in that the reference is independent.
11279 (move_computations_stmt): Mark the virtual operands for renaming.
11280 (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
11281 gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
11282 vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
11283 add_vop_ref_mapping, create_vop_ref_mapping_loop,
11284 create_vop_ref_mapping, analyze_memory_references,
11285 cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
11286 get_all_locs_in_loop, ref_always_accessed_p,
11287 refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
11288 ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
11289 store_motion_loop, store_motion): New functions.
11290 (struct vop_to_refs_elt): New type.
11291 (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
11292 memref_hash, memref_eq, hoist_memory_references): Rewritten.
11293 (schedule_sm): Replaced by...
11294 (execute_sm): ... this.
11295 (determine_lsm_ref, hoist_memory_references,
11296 loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
11297 find_more_ref_vops, free_mem_ref, free_mem_refs,
11298 determine_lsm_loop, determine_lsm): Removed.
11299 (tree_ssa_lim_finalize): Free data structures used by store motion.
11300 (tree_ssa_lim): Call analyze_memory_references. Use
11301 store_motion instead of determine_lsm.
11303 2008-03-27 Paolo Bonzini <bonzini@gnu.org>
11305 * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
11306 rename tmake_file to m68hc11/t-m68hc11.
11307 (mcore): Set inhibit_libc to true.
11308 * config.host (alpha*-dec-*vms*): Set extra_programs.
11309 (interix3*): Don't use host_xmake_file.
11310 * configure.ac: Let config.gcc override inhibit_libc.
11311 * configure: Regenerate.
11313 * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
11314 * config/t-openbsd-thread: Remove commented out lines.
11316 * config/x-interix: Remove.
11318 * config/m68hc11/t-m68hc11-gas: Rename to...
11319 * config/m68hc11/t-m68hc11: ... this. Remove T_CPPFLAGS.
11321 * config/mcore/t-mcore: Remove T_CFLAGS.
11322 * config/mcore/t-mcore-pe: Likewise.
11324 2008-03-27 Paolo Bonzini <bonzini@gnu.org>
11326 * configure.ac: Replace custom __GNU_SOURCE test with
11327 AC_USE_SYSTEM_EXTENSIONS. Move it earlier.
11328 * aclocal.m4: Regenerate.
11329 * configure: Regenerate.
11330 * config.in: Regenerate.
11332 2008-03-27 Richard Guenther <rguenther@suse.de>
11334 * fold-const.c (target.h): Include.
11335 (fold_comparison): Fold comparison of addresses of decls
11336 that bind locally or of constants. Consolidate address folding code.
11337 * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
11338 results from fold_binary_to_constant.
11339 (compare_values_warnv): Likewise.
11341 2008-03-27 Andrew Pinski <pinskia@gmail.com>
11343 PR middle-end/35429
11344 * fold-const.c (fold_truthop): Check for integeral types when folding
11345 a == 0 && b == 0 and a != 0 || b != 0 .
11347 2008-03-26 Eric Botcazou <ebotcazou@adacore.com>
11349 * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
11351 2008-03-26 Andreas Schwab <schwab@suse.de>
11353 * doc/invoke.texi: Fix use of @item vs. @itemx.
11355 2008-03-26 Tom Tromey <tromey@redhat.com>
11357 * Makefile.in (build/gensupport.o, build/print-rtl.o,
11358 build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
11359 build/genattrtab.o, build/genautomata.o, build/gencheck.o,
11360 build/gencodes.o, build/genconditions.o, build/genconfig.o,
11361 build/genconstants.o, build/genemit.o, build/genextract.o,
11362 build/genflags.o, build/genmddeps.o, build/genopinit.o,
11363 build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
11366 2008-03-26 Richard Guenther <rguenther@suse.de>
11369 2008-03-26 Richard Guenther <rguenther@suse.de>
11371 * fold-const.c (target.h): Include.
11372 (fold_comparison): Fold comparison of addresses of two decls
11373 that bind locally. Consolidate address folding code.
11375 2008-03-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11377 * builtins.c (expand_builtin_pow, fold_builtin_cabs,
11378 fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
11379 fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
11380 dconstsqrt2, dconstthird, dconste and/or dconst10.
11381 * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
11382 * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
11383 dconstsqrt2, dconste): Delete.
11384 (init_emit_once): Likewise. Simplify initializing dconstm1.
11386 * real.c (get_real_const): New.
11387 * real.h (dconst3, dconst10, dconstm2, dconstthird,
11388 dconstsqrt2, dconste): Delete.
11389 (real_value_const, get_real_const): New.
11391 2008-03-26 H.J. Lu <hongjiu.lu@intel.com>
11393 * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
11395 * config/i386/i386.c (ix86_function_arg_boundary): Check
11396 BIGGEST_ALIGNMENT instead of 128.
11397 (setup_incoming_varargs_64): Likewise.
11399 2008-03-26 Tom Tromey <tromey@redhat.com>
11401 * Makefile.in (DEPFILES): Add missing '/'.
11403 2008-03-26 Richard Guenther <rguenther@suse.de>
11405 * fold-const.c (target.h): Include.
11406 (fold_comparison): Fold comparison of addresses of two decls
11407 that bind locally. Consolidate address folding code.
11409 2008-03-26 Nick Clifton <nickc@redhat.com>
11412 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
11413 not allow INT+INT as a legitimate addressing mode.
11415 2008-03-26 Richard Guenther <rguenther@suse.de>
11417 * tree-flow.h (widen_bitfield): Remove declaration.
11418 * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
11419 (widen_bitfield): Remove function.
11420 * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
11423 2008-03-25 Andrew Pinski <andrew_pinski@playstation.sony.com>
11426 * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
11429 2008-03-25 Richard Sandiford <rsandifo@nildram.co.uk>
11431 PR rtl-optimization/35232
11432 * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
11433 (forget_old_reloads_1, forget_marked_reloads): Don't clear
11434 reg_reloaded_call_part_clobbered here.
11435 (reload_regs_reach_end_p): New function.
11436 (reload_reg_rtx_for_input): New variable.
11437 (reload_reg_rtx_for_output): Likewise.
11438 (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
11439 when reassigning a pseudo register. Load reloadreg from
11440 reload_reg_rtx_for_input, moving the mode and register
11442 (do_input_reload): ...here. Use the mode-adjusted reg_rtx
11443 instead of the original when deciding whether an input reload
11444 would be a no-op or whether an output reload can be deleted.
11445 (emit_output_reload_insns): Use the mode-adjusted reg_rtx
11446 when setting up new_spill_reg_store. Load it from
11447 reload_reg_rtx_for_output, moving the mode and register
11449 (do_output_reload): ...here. Use the mode-adjusted reg_rtx
11450 instead of the original when deciding whether an output reload
11451 would be a no-op. Do the same when modifying insn notes.
11452 Use rtx_equal_p instead of == to compare the registers.
11453 (inherit_piecemeal_p): Take a mode and two register numbers
11455 (emit_reload_insns): Clear new_spill_reg_store for every hard
11456 register in the reload register. Remove spill registers
11457 from reg_reloaded_valid before considering whether to record
11458 inheritance information for them. Use reload_reg_rtx_for_output
11459 instead of reg_rtx when recording output reloads. Use
11460 reload_reg_rtx_for_input instead of reg_rtx when recording
11461 input reloads. Set or clear reg_reloaded_call_part_clobbered
11462 at the same time as setting reg_reloaded_valid.
11463 (delete_output_reload): Add a new_reload_reg parameter and use it
11464 instead of rld[j].reg_rtx.
11465 (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
11468 2008-03-25 Tom Tromey <tromey@redhat.com>
11470 * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
11471 (build/genattr.o): Likewise.
11472 (build/genattrtab.o): Likewise.
11473 (build/gencodes.o): Likewise.
11474 (build/genconfig.o): Likewise.
11475 (build/genconstants.o): Likewise.
11476 (build/genemit.o): Likewise.
11477 (build/genextract.o): Likewise.
11478 (build/genflags.o): Likewise.
11480 2008-03-25 Bob Wilson <bob.wilson@acm.org>
11482 * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
11483 instead of size_int for integer types.
11484 (xtensa_gimplify_va_arg_expr): Likewise. Convert index to sizetype
11485 to match type of MINUS_EXPR.
11487 2008-03-25 Tom Tromey <tromey@redhat.com>
11489 * configure: Rebuilt.
11490 * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
11493 2008-03-25 Tom Tromey <tromey@redhat.com>
11495 * config/x-solaris (host-solaris.o): Update.
11496 * config/x-linux (host-linux.o): Update.
11497 * config/x-hpux (host-hpux.o): Update.
11498 * config/x-darwin (host-darwin.o): Update.
11499 * config/v850/t-v850e (v850-c.o): Update.
11500 * config/v850/t-v850 (v850-c.o): Update.
11501 * config/t-vxworks (vxworks.o): Update.
11502 * config/t-sol2 (sol2-c.o, sol2.o): Update.
11503 * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
11504 * config/spu/t-spu-elf (spu-c.o): Update.
11506 * config/sh/t-symbian (sh-c.o): Update.
11507 (symbian.o): Update.
11508 * config/sh/t-sh (sh-c.o): Update.
11509 * config/score/t-score-elf (score7.o, score3.o): Update.
11510 * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
11511 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
11512 * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
11513 * config/rs6000/t-rs6000 (rs6000-c.o): Update.
11514 (rs6000.o): Remove.
11515 * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
11516 * config/m32c/t-m32c (m32c-pragma.o): Update.
11517 * config/ia64/t-ia64 (ia64-c.o): Update.
11518 * config/i386/x-mingw32 (host-mingw32.o): Update.
11519 * config/i386/x-i386 (driver-i386.o): Update.
11520 * config/i386/x-darwin (host-i386-darwin.o): Update.
11521 * config/i386/x-cygwin (host-cygwin.o): Update.
11522 * config/i386/t-nwld (nwld.o): Update.
11523 * config/i386/t-netware (netware.o): Update.
11524 * config/i386/t-interix (winnt.o): Update.
11525 * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
11526 * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
11527 msformat-c.o): Update.
11528 * config/bfin/t-bfin-linux (generated_files): Add
11529 linux-sysroot-suffix.h.
11530 * config/arm/t-wince-pe (pe.o): Update.
11531 * config/arm/t-strongarm-pe (pe.o): Update.
11532 * config/arm/t-pe (pe.o): Update.
11533 * config/arm/t-arm (arm-c.o): Update.
11534 * doc/install.texi (Prerequisites): Require make 3.80.
11535 * Makefile.in: Remove .o targets.
11536 (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
11537 (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
11538 (simple_generated_h, simple_generated_c): Move earlier.
11539 (generated_files): New variable.
11540 (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
11541 TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
11542 BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
11543 ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
11544 REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
11545 CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
11546 CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
11547 INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
11548 PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
11549 TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
11550 DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
11551 VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
11553 (COMPILE.base, COMPILE): New variables.
11554 (%.o): New pattern rule.
11555 (ALL_HOST_OBJS): New variable.
11556 (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
11557 (dummy-checksum.o, cc1-checksum.o): Remove.
11558 (DRIVER_SHLIB): New variable.
11559 (DRIVER_DEFINES): Use it.
11560 (gencondmd.c): Move out of build/.
11561 (s-conditions): Update.
11562 (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
11563 (ALL_BUILD_OBJS): Likewise.
11564 (build/%.o): Use BUILDCOMPILE.
11565 (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
11566 build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
11567 build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
11568 build/gencheck.o, build/gencodes.o, build/genconditions.o,
11569 build/genconfig.o, build/genconstants.o, build/genemit.o,
11570 build/genextract.o, build/genflags.o, build/genmddeps.o,
11571 build/genopinit.o, build/genoutput.o, build/genpeep.o,
11572 build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
11573 build/gen-protos.o, build/scan.o, build/fix-header.o,
11574 build/scan-decls.o): Simplify.
11575 (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
11576 cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
11577 prefix.o, toplev.o): Reduce to variable setting.
11578 (libbackend.o): Use COMPILE. Remove most dependencies. Move later.
11579 ($(out_object_file), gcc-options.o): New targets.
11580 ($(ALL_HOST_OBJS)): New target. Include dependency files.
11581 * configure: Rebuilt.
11582 * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
11583 * doc/sourcebuild.texi (Front End Directory): Document new variable.
11585 2008-03-25 Douglas Gregor <doug.gregor@gmail.com>
11587 * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
11588 complain when we hit an error, return ERROR_MARK_NODE.
11590 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
11592 * config/sh/constraints.md (Pso, Psz): New constraints.
11593 * config/sh/sh.c (print_operand): Add %V and %W operand codes.
11594 * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
11596 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
11598 * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
11599 * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
11601 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
11603 * config/sh/sh.md (prefetch): Add condition for SH2A target.
11604 (prefetch_sh2a): New.
11606 2008-03-25 Jayant Sonar <Jayant.sonar@kpitcummins.com>
11607 Naveen.H.S <naveen.hs@kpitcummins.com>
11609 * config/sh/constraints.md (I28): New constraint.
11610 * config/sh/sh.c (broken_move): Add support for movi20s.
11611 * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
11613 2008-03-25 Anil Paranjape <anil.paranjape@kpitcummins.com>
11614 Jayant Sonar <Jayant.sonar@kpitcummins.com>
11615 Naveen.H.S <naveen.hs@kpitcummins.com>
11617 * config/sh/sh.c (SH_ATTRIBUTES): Define.
11618 (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
11619 (print_operand): Handle resbank in %@ operand code.
11620 (sh_encode_section_info): New.
11621 (push_regs): Add conditions for resbank.
11622 (sh_expand_epilogue): Likewise.
11623 (sh_insert_attributes): Likewise.
11624 (sh_attribute_table): Likewise.
11625 (sh_handle_resbank_handler_attribute): New.
11626 (sh2a_handle_function_vector_handler_attribute): New.
11627 (sh2a_is_function_vector_call): New.
11628 (sh2a_get_function_vector_number): New.
11629 (sh2a_function_vector_p): New.
11630 (sh_cfun_resbank_handler_p): New.
11631 * config/sh/sh.md (calli): Emit jsr/n if possible.
11632 (calli_tbr_rel): New.
11633 (calli_pcrel): Emit jsr/n if possible.
11634 (return_i): Emit rts/n if possible.
11635 (call_valuei_tbr_rel): New.
11636 (call_valuei_pcrel): Add condition for SH2A target.
11637 (call_value): Likewise.
11638 * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
11639 (sh2a_get_function_vector_number): Likewise.
11640 (sh2a_is_function_vector_call): Likewise.
11641 * doc/extend.texi: Document TBR relative addressing of SH2A.
11642 (resbank): Add description for SH2A.
11644 2008-03-24 Richard Guenther <rguenther@suse.de>
11647 * gimplify.c (gimplify_modify_expr): For frontend type-correct
11648 pointer assignments change conversions according to middle-end rules.
11649 (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
11650 * configure.ac: Include type checking in yes.
11651 * configure: Regenerate.
11653 2008-03-24 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
11655 * diagnostic.c (diagnostic_count_diagnostic): Delete.
11656 (diagnostic_report_diagnostic): Update. Handle ICEs here.
11658 2008-03-24 Nathan Sidwell <nathan@codesourcery.com>
11660 * gthr-vxworks.h (UNUSED): Define.
11662 2008-03-23 H.J. Lu <hongjiu.lu@intel.com>
11664 * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
11666 2008-03-23 Zuxy Meng <zuxy.meng@gmail.com>
11668 * doc/extend.texi (Function Attributes): Add missing comma in the
11669 example of the "alloc_size" attribute.
11671 2008-03-23 Uros Bizjak <ubizjak@gmail.com>
11674 2008-03-05 H.J. Lu <hongjiu.lu@intel.com>
11676 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
11679 2008-03-19 Uros Bizjak <ubizjak@gmail.com>
11682 * stor-layout.c (update_alignment_for_field): Set minimum alignment
11683 of the underlying type of a MS bitfield layout to the natural
11684 alignment of the type.
11686 2008-03-22 Uros Bizjak <ubizjak@gmail.com>
11688 * config/i386/i386.c (assign_386_stack_local): Align DImode slots
11689 to their natural alignment to avoid store forwarding stalls.
11691 2008-03-22 Richard Guenther <rguenther@suse.de>
11693 * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
11694 For PHI nodes verify the address is invariant.
11695 * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
11696 (get_symbol_constant_value): Use is_gimple_min_invariant.
11697 (maybe_fold_stmt_indirect): Likewise.
11699 2008-03-22 Richard Sandiford <rsandifo@nildram.co.uk>
11701 PR rtl-optimization/33927
11702 * Makefile.in (dse.o): Depend on $(TM_P_H).
11703 * expr.h (extract_low_bits): Declare.
11704 * expmed.c (extract_low_bits): New function.
11705 * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
11706 * dse.c: Include tm_p.h.
11707 (find_shift_sequence): Remove the read_reg argument and return the
11708 read value. Emit the instructions instead of returning them.
11709 Iterate on new_mode rather than calculating it each time.
11710 Check MODES_TIEABLE_P. Use simplify_gen_subreg to convert the
11711 source to NEW_MODE and extract_low_bits to convert the shifted
11712 value to READ_MODE.
11713 (replace_read): Allow the load and store to have different mode
11714 classes. Use extract_low_bits when SHIFT == 0. Create the shift
11715 or extraction instructions before trying the replacement. Update
11716 dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
11718 2008-03-22 Uros Bizjak <ubizjak@gmail.com>
11720 * config/i386/i386.c (assign_386_stack_local): Align DImode slots
11721 to their natural alignment to avoid store forwarding stalls.
11723 2008-03-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
11726 * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
11727 encouraging but not allowing gprs for input;
11728 change the input constraint to !f#r.
11729 (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
11731 change the output constraint to !f#r.
11733 2008-03-21 Uros Bizjak <ubizjak@gmail.com>
11736 * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
11737 corresponding post-reload splitters.
11738 ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
11739 when x87 FP math is selected.
11740 * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
11741 New function prototype.
11742 * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
11743 unreachable function to ease macroization of insn patterns.
11745 2008-03-21 Martin Jambor <mjambor@suse.cz>
11747 * tree-data-ref.c (dump_data_dependence_relation): Avoid data
11748 reference dumps if ddr is NULL or dependence is unknown.
11750 2008-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
11752 * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
11753 unsigned extension into account.
11754 (ATOMIC_COMPARE_AND_SWAP): Likewise.
11755 (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
11756 Do computations on a scratch register.
11758 2008-03-21 Richard Guenther <rguenther@suse.de>
11760 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
11761 Use is_gimple_min_invariant instead of TREE_INVARIANT.
11762 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
11763 * tree-ssa-dom.c (record_equality): Likewise.
11764 * tree-inline.c (copy_body_r): Likewise.
11765 * tree-ssa-pre.c (make_values_for_stmt): Remove test for
11768 2008-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
11770 * config/sh/sh.c (split_branches): Pass zero to redirect_jump
11771 as 'delete_unused' argument.
11773 2008-03-20 Richard Guenther <rguenther@suse.de>
11775 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
11776 special casing of constant qualifiers.
11777 * tree-ssa.c (useless_type_conversion_p_1): Instead do not
11778 care about them in general.
11779 * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
11780 regardless of their type.
11781 (fold_stmt_r): Forcefully fold *& if we end up with that.
11783 2008-03-20 Paul Brook <paul@codesourcery.com>
11785 * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
11786 * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
11788 * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
11790 (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
11791 * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
11793 2008-03-20 Volker Reichelt <v.reichelt@netcologne.de>
11795 * common.opt (Wmudflap): New option.
11796 * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
11797 (mx_register_decls): Likewise.
11798 (mudflap_finish_file): Likewise.
11799 * doc/invoke.texi: Document -Wno-mudflap.
11801 2008-03-20 Kai Tietz <kai.tietz@onevision.com>
11803 * c-format.c (replace_format_name_to_system_name): New.
11804 (cmp_attribs): New.
11805 (convert_format_name_to_system_name): New.
11806 (decode_format_attr): Add use of convert_format_name_to_system_name.
11807 (format_types_orig): Add gnu_ prefix to names.
11808 (check_format_info_main): Special treating of \0 escaped names for
11809 supporting multi-character format specifiers as I32, I64.
11810 (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
11811 (gnu_target_overrides_format_attributes): New.
11812 * c-format.h: Add structure target_ovr_attr to hold
11813 system specific formatter names.
11814 * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
11815 msformat-c.o file to c_target_objs and cxx_target_objs.
11816 * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
11817 (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
11818 (TARGET_N_FORMAT_TYPES): New.
11819 * config/i386/msformat-c.c: New.
11820 * config/i386/t-cygming: Add build rule for msformat-c.o.
11821 * doc/extend.texi: Add new format names gnu_* and ms_* and
11823 * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
11825 2008-03-20 Ira Rosen <irar@il.ibm.com>
11827 * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
11828 optimizations turned on under -O3.
11829 (ftree-vectorize): Add that the flag is turned on with -O3.
11831 2008-03-20 Ben Elliston <bje@au.ibm.com>
11833 * regmove.c (try_auto_increment): Fix spelling error in comment.
11834 * final.c (final_scan_insn): Likewise.
11836 2008-03-20 Uros Bizjak <ubizjak@gmail.com>
11839 * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
11840 allocator preferences for "y" and "r" class registers.
11841 ("*mov<mode>_internal"): Ditto.
11842 ("*movv2sf_internal_rex64"): Ditto.
11843 ("*movv2sf_internal"): Ditto.
11845 2008-03-19 Michael Matz <matz@suse.de>
11847 PR middle-end/35616
11848 * calls.c (expand_call): Check overlap of arguments with call
11849 address for sibcalls.
11851 2008-03-19 Uros Bizjak <ubizjak@gmail.com>
11854 * stor-layout.c (update_alignment_for_field): Set minimum alignment
11855 of the underlying type of a MS bitfield layout to the natural
11856 alignment of the type.
11858 2008-03-19 Jan Hubicka <jh@suse.cz>
11861 * toplev.c (decode_d_option): Handle all CPP flags.
11862 * tree-vrp.c: Update tree_pass descriptors.
11863 * regrename.c: Update tree_pass descriptors.
11864 * fwprop.c: Update tree_pass descriptors.
11865 * doc/invoke.texi: Remove documentation of dropped -d? flags.
11866 * tree-into-ssa.c: Update tree_pass descriptors.
11867 * tree-dump.c: Update tree_pass descriptors.
11868 * tree-complex.c: Update tree_pass descriptors.
11869 * tree-dump.h: Update tree_pass descriptors.
11870 * see.c: Update tree_pass descriptors.
11871 * cgraphbuild.c: Update tree_pass descriptors.
11872 * tracer.c: Update tree_pass descriptors.
11873 * tree-loop-distribution.c: Update tree_pass descriptors.
11874 * cgraph.c: Update tree_pass descriptors.
11875 * postreload-gcse.c: Update tree_pass descriptors.
11876 * postreload.c: Update tree_pass descriptors.
11877 * tree-ssa-loop-ch.c: Update tree_pass descriptors.
11878 * tree-tailcall.c: Update tree_pass descriptors.
11879 * tree-pass.h (tree_opt_pass): Rename to ...
11880 (opt_pass) ... this one; add "type" field and remove letter field.
11881 (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
11882 (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
11883 all_lowering_passes): Update declaration.
11884 * ipa-cp.c: Update tree_pass descriptors.
11885 * final.c: Update tree_pass descriptors.
11886 * omp-low.c: Update tree_pass descriptors.
11887 * tree-ssa-dse.c: Update tree_pass descriptors.
11888 * ipa-reference.c: Update tree_pass descriptors.
11889 * tree-ssa-uncprop.c: Update tree_pass descriptors.
11890 * auto-inc-dec.c: Update tree_pass descriptors.
11891 * reorg.c: Update tree_pass descriptors.
11892 * cgraphunit.c: Update tree_pass descriptors.
11893 * tree-ssa-copyrename.c: Update tree_pass descriptors.
11894 * tree-ssa-ccp.c: Update tree_pass descriptors.
11895 * df-core.c: Update tree_pass descriptors.
11896 * mode-switching.c: Update tree_pass descriptors.
11897 * tree-nomudflap.c: Update tree_pass descriptors.
11898 * modulo-sched.c: Update tree_pass descriptors.
11899 * ipa-pure-const.c: Update tree_pass descriptors.
11900 * cse.c: Update tree_pass descriptors.
11901 * web.c: Update tree_pass descriptors.
11902 * tree-stdarg.c: Update tree_pass descriptors.
11903 * tree-ssa-math-opts.c: Update tree_pass descriptors.
11904 * tree-ssa-dom.c: Update tree_pass descriptors.
11905 * tree-nrv.c: Update tree_pass descriptors.
11906 * tree-ssa-alias.c: Update tree_pass descriptors.
11907 * loop-init.c: Update tree_pass descriptors.
11908 * gimple-low.c: Update tree_pass descriptors.
11909 * ipa-inline.c: Update tree_pass descriptors.
11910 * tree-ssa-sink.c: Update tree_pass descriptors.
11911 * global.c: Update tree_pass descriptors.
11912 * ifcvt.c: Update tree_pass descriptors.
11913 * jump.c: Update tree_pass descriptors.
11914 * predict.c: Update tree_pass descriptors.
11915 * tree-ssa-loop.c: Update tree_pass descriptors.
11916 * recog.c: Update tree_pass descriptors.
11917 * dse.c: Update tree_pass descriptors.
11918 * tree-ssa-ifcombine.c: Update tree_pass descriptors.
11919 * tree-eh.c: Update tree_pass descriptors.
11920 * regmove.c: Update tree_pass descriptors.
11922 * function.c: Update tree_pass descriptors.
11923 * tree-vectorizer.c: Update tree_pass descriptors.
11924 * gcse.c: Update tree_pass descriptors.
11925 * ipa-type-escape.c: Update tree_pass descriptors.
11926 * tree-if-conv.c: Update tree_pass descriptors.
11927 * init-regs.c: Update tree_pass descriptors.
11928 * ipa.c: Update tree_pass descriptors.
11929 * tree-ssa-phiopt.c: Update tree_pass descriptors.
11930 * rtl-factoring.c: Update tree_pass descriptors.
11931 * lower-subreg.c: Update tree_pass descriptors.
11932 * bt-load.c: Update tree_pass descriptors.
11933 * tree-dfa.c: Update tree_pass descriptors.
11934 * except.c: Update tree_pass descriptors.
11935 * emit-rtl.c: Update tree_pass descriptors.
11936 * cfgexpand.c: Update tree_pass descriptors.
11937 * tree-cfgcleanup.c: Update tree_pass descriptors.
11938 * cfgcleanup.c: Update tree_pass descriptors.
11939 * tree-ssa-pre.c: Update tree_pass descriptors.
11940 * tree-sra.c: Update tree_pass descriptors.
11941 * tree-mudflap.c: Update tree_pass descriptors.
11942 * tree-ssa-copy.c: Update tree_pass descriptors.
11943 * cfglayout.c: Update tree_pass descriptors.
11944 * tree-ssa-forwprop.c: Update tree_pass descriptors.
11945 * tree-ssa-dce.c: Update tree_pass descriptors.
11946 * tree-ssa.c: Update tree_pass descriptors.
11947 * regclass.c: Update tree_pass descriptors.
11948 * integrate.c: Update tree_pass descriptors.
11949 * tree-optimize.c: Update tree_pass descriptors.
11950 * tree-ssa-phiprop.c: Update tree_pass descriptors.
11951 * tree-object-size.c: Update tree_pass descriptors.
11952 * combine.c: Update tree_pass descriptors.
11953 * tree-outof-ssa.c: Update tree_pass descriptors.
11954 * bb-reorder.c: Update tree_pass descriptors.
11955 * stack-ptr-mod.c: Update tree_pass descriptors.
11956 * var-tracking.c: Update tree_pass descriptors.
11957 * tree-profile.c: Update tree_pass descriptors.
11958 * tree-vect-generic.c: Update tree_pass descriptors.
11959 * reg-stack.c: Update tree_pass descriptors.
11960 * sched-rgn.c: Update tree_pass descriptors.
11961 * tree-ssa-structalias.c: Update tree_pass descriptors.
11962 * tree-cfg.c: Update tree_pass descriptors.
11963 * passes.c (current_pass): Update declaration.
11964 (finish_optimization_passes): Update.
11965 (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
11966 (register_one_dump_file, register_dump_files_1, next_pass_1):
11968 (init_optimization_passes): Update handling of new types.
11969 (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
11970 * ipa-struct-reorg.c: Update tree_pass descriptors.
11971 * tree-ssa-reassoc.c: Update tree_pass descriptors.
11972 * combine-stack-adj.c: Update tree_pass descriptors.
11973 * cfgrtl.c: Update tree_pass descriptors.
11974 * dce.c: Update tree_pass descriptors.
11975 * tree-ssanames.c: Update tree_pass descriptors.
11977 2008-03-19 Richard Guenther <rguenther@suse.de>
11979 PR middle-end/35609
11980 * tree-ssa.c (walk_data): New structure.
11981 (warn_uninitialized_var): If not always_executed warn with "maybe"
11983 (execute_early_warn_uninitialized): Compute post-dominators.
11984 Initialize always_executed before processing each basic block.
11986 2008-03-18 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
11989 * config/i386/i386.c (x86_this_parameter): Calculate correct location
11990 of "this" pointer when "regparm = N" or "fastcall" is in effect.
11992 2008-03-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11994 * doc/include/texinfo.tex: Update to version 2008-03-17.10.
11996 2008-03-18 Paolo Bonzini <bonzini@gnu.org>
11998 * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
12000 (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
12001 (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
12002 is true. Add "&& !ignore" condition to reduce_bit_field. Modify
12003 target after ignore has been set, and move there also the commputation
12004 of subtarget and original_target.
12005 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
12006 (LANG_HOOKS_INITIALIZER): Remove it.
12007 * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
12009 2008-03-18 Richard Guenther <rguenther@suse.de>
12011 * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
12012 found an expression with constants, note that in the VN for the lhs.
12013 * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
12014 fold them to constants if possible. Run cleanup_cfg if done so.
12015 (execute_pre): Return todo.
12016 (do_pre): Likewise.
12017 (execute_fre): Likewise.
12018 * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
12020 (get_prop_source_stmt): Look through pointer conversions.
12022 2008-03-18 Jan Hubicka <jh@suse.cz>
12024 * tree-pretty-print.c: Include predict.h.
12025 (dump_generic_node): Dump predictor.
12026 * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
12027 * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
12028 * gimple-low.c (lower_stmt): Likewise.
12029 * expr.c (expand_expr_real): Likewise.
12030 * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
12032 (build_predict_expr, build_predict_expr): New.
12033 * predict.h (predictor_name, build_predict_expr): Update.
12034 * c-typeck.c (c_finish_bc_stmt): Add prediction.
12035 * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
12036 * predict.def (PRED_CONTINUE): Update hitrate.
12037 * tree.def (PREDICT_EXPR): Define.
12038 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
12039 do not handle BIND_EXPR.
12040 * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
12041 * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
12042 * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
12045 2008-03-18 Michael Matz <matz@suse.de>
12047 * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
12049 2008-03-18 Richard Guenther <rguenther@suse.de>
12051 * tree-gimple.h (is_gimple_invariant_address): Declare.
12052 (is_gimple_constant): Likewise.
12053 * tree-gimple.c (is_gimple_constant): New function.
12054 (is_gimple_invariant_address): Likewise.
12055 (is_gimple_min_invariant): Implement in terms of is_gimple_constant
12056 and is_gimple_invariant_address.
12057 * tree-ssa-loop-niter.c (expand_simple_operations): Revert
12059 * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
12060 an addressable base.
12062 2008-03-18 Jakub Jelinek <jakub@redhat.com>
12064 PR middle-end/35611
12065 * gimplify.c (gimplify_expr): Gimplify second operand of
12068 2008-03-17 Richard Guenther <rguenther@suse.de>
12070 PR tree-optimization/19637
12071 * fold-const.c (fold_unary): Remove restrictions of removing
12072 intermediate pointer-conversions (P2)(P1)P0.
12073 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
12074 conversion to void pointer.
12075 (get_maxval_strlen): Handle addresses of the form &(*p)[0].
12077 2008-03-16 James E. Wilson <wilson@tuliptree.org>
12080 * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
12081 emulated thread local variables.
12083 2008-03-16 Richard Guenther <rguenther@suse.de>
12085 PR middle-end/35607
12086 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
12087 expand TREE_INVARIANT operations that are not gimple invariant.
12089 2008-03-16 Hans-Peter Nilsson <hp@axis.com>
12091 * doc/extend.texi (Alignment): Say that the ABI controls
12092 the __alignof__ for non-strict-alignment targets rather
12093 than being a recommendation.
12095 2008-03-15 Paul Brook <paul@codesourcery.com>
12097 * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
12099 (arm_output_fn_unwind): Mark functions that can not be unwound.
12101 2008-03-15 Paul Brook <paul@codesourcery.com>
12103 * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
12104 extension instructions.
12106 2008-03-15 Richard Guenther <rguenther@suse.de>
12108 * tree-ssa-ccp.c (ccp_fold): Also read from constant values
12109 and fold constant aggregate refs.
12110 (fold_const_aggregate_ref): Handle string constants
12111 and constructors in ARRAY_REFs. Handle INDIRECT_REF.
12112 (evaluate_stmt): Simplify now that ccp_fold folds constant
12115 2008-03-15 Paul Brook <paul@codesourcery.com>
12117 * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
12118 (extzv): Use gen_extzv_t2.
12119 (insv_t2, insv_zero, extv, extzv_t2): New patterns.
12121 2008-03-15 Richard Guenther <rguenther@suse.de>
12123 * tree-ssa-ccp.c (get_symbol_constant_value): Export.
12124 (fold_const_aggregate_ref): Likewise.
12125 (get_value): Return NULL if we don't have any values.
12126 (ccp_finalize): Set const_val to NULL after freeing it.
12127 * tree-flow.h (get_symbol_constant_value): Declare.
12128 (fold_const_aggregate_ref): Likewise.
12129 * tree-ssa-sccvn.c (try_to_simplify): Use them.
12131 2008-03-15 Richard Guenther <rguenther@suse.de>
12133 PR middle-end/35593
12134 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
12135 to not produce negative array indices if not allowed. Add
12136 parameter to indicate that.
12137 (maybe_fold_offset_to_component_ref): Allow negative array
12138 indices only for the first member of a structure.
12139 (maybe_fold_offset_to_reference): Allow negative array indices.
12140 (maybe_fold_stmt_addition): Likewise.
12142 2008-03-15 Bjoern Haase <bjoern.m.haase@web.de>
12143 Anatoly Sokolov <aesok@post.ru>
12145 * config/avr/avr.c (avr_arch_types): Add avr6 entry.
12146 (avr_arch): Add ARCH_AVR6.
12147 (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
12148 (initial_elimination_offset): Initialize and use 'avr_pc_size'
12149 instead of fixed value 2.
12150 (print_operand_address): Use gs() asm specifier instead of pm().
12151 (avr_assemble_integer): (Ditto.).
12152 (avr_output_addr_vec_elt): (Ditto.).
12153 (print_operand): Handle "!" code.
12154 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add
12155 __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
12156 (AVR_HAVE_EIJMP_EICALL): Define.
12157 (AVR_3_BYTE_PC): Redefine.
12158 (AVR_2_BYTE_PC): (Ditto.).
12159 (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
12160 (LINK_SPEC): Add atmega2560 and atmega2561.
12161 (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561
12163 * config/avr/avr.md (call_insn): Use eicall instead of icall
12164 for 3 byte PC devices.
12165 (call_value_insn): (Ditto.).
12166 (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
12167 (indirect_jump): Use only for for 2 byte PC devices.
12168 (*tablejump): (Ditto.).
12169 (*indirect_jump_avr6): Add insn.
12170 (*tablejump_rjmp): Don't use for 3 byte PC devices.
12171 * config/avr/libgcc.S (__prologue_saves__): Use eijmp
12172 instead of ijmp for 3 byte PC devices.
12173 (__tablejump2__): (Ditto.).
12174 * config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
12175 (MULITLIB_DIRNAMES): (Ditto.).
12176 (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
12178 2008-03-15 Uros Bizjak <ubizjak@gmail.com>
12180 * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
12181 "sse2_umulsidi3". Use V1DI mode for operand 0.
12182 ("mmx_psadbw"): Use V1DI mode for operand 0.
12183 * config/i386/i386-modes.def (V1SI): New vector mode.
12184 * config/i386/i386.c (struct builtin_description)
12185 [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
12186 (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
12187 (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
12188 (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
12189 v1di_ftype_v8qi_v8qi type.
12190 [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
12192 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
12193 __builtin_ia32_pmuludq]: Fix the mode of return value.
12195 2008-03-15 Richard Guenther <rguenther@suse.de>
12197 PR middle-end/35595
12198 * tree-ssa-pre.c (bitmap_find_leader): Handle expression
12201 2008-03-14 Bob Wilson <bob.wilson@acm.org>
12203 * doc/invoke.texi (Option Summary, Xtensa Options): Document
12204 -mserialize-volatile and -mno-serialize-volatile Xtensa options.
12205 * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
12206 unless TARGET_SERIALIZE_VOLATILE is enabled.
12207 * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
12208 * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
12209 * config/xtensa/xtensa.opt (mserialize_volatile): New option.
12211 2008-03-14 Richard Guenther <rguenther@suse.de>
12213 PR tree-optimization/34172
12214 * tree-flow.h (refs_may_alias_p): Declare.
12215 (get_single_def_stmt): Likewise.
12216 (get_single_def_stmt_from_phi): Likewise.
12217 (get_single_def_stmt_with_phi): Likewise.
12218 * tree-dfa.c (refs_may_alias_p): New function.
12219 (get_single_def_stmt): Likewise.
12220 (get_single_def_stmt_from_phi): Likewise.
12221 (get_single_def_stmt_with_phi): Likewise.
12222 * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
12223 (vn_reference_lookup_1): New helper function.
12224 (vn_reference_lookup): Walk the virtual use-def chain to
12225 continue searching for a match if the def does not alias the
12226 reference we are looking for.
12228 2008-03-14 David Edelsohn <edelsohn@gnu.org>
12230 * doc/install.texi (Binaries): Remove UCLA archive. Add HVCC
12231 archive and Perzl. Update The Written Word listing.
12233 2008-03-14 Richard Guenther <rguenther@suse.de>
12235 PR tree-optimization/34043
12236 PR tree-optimization/33989
12237 * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
12239 (bitmap_find_leader): Use extra argument to verify dominance
12240 relationship inside a basic-block.
12241 (can_PRE_operation): Add VIEW_CONVERT_EXPR.
12242 (find_leader_in_sets): Adjust.
12243 (create_component_ref_by_pieces): Take extra argument for
12244 dominance check, handle lookup failures.
12245 (find_or_generate_expression): Likewise.
12246 (create_expression_by_pieces): Likewise.
12247 (insert_into_preds_of_block): Adjust.
12248 (create_value_expr_from): If asked for, verify all operands
12249 are in the blocks AVAIL_OUT set.
12250 (make_values_for_stmt): Check for SSA_NAMEs that are life
12251 over an abnormal edge.
12252 (compute_avail): Remove such check.
12253 (do_SCCVN_insertion): New function.
12254 (eliminate): If we do not find a leader suitable for replacement
12255 insert a replacement expression from SCCVN if available.
12256 * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
12257 (struct vn_ssa_aux): Add needs_insertion flag.
12258 * tree-ssa-sccvn.c (may_insert): New global flag.
12259 (copy_reference_ops_from_ref): Value-number union member access
12260 based on its size, not type and member if insertion is allowed.
12261 (visit_reference_op_load): For a weak match from union type
12262 punning lookup a view-converted value and insert a SSA_NAME
12263 for that value if that is not found.
12264 (visit_use): Make dumps shorter. Do not disallow value numbering
12265 SSA_NAMEs that are life over an abnormal edge to constants.
12266 (free_scc_vn): Release inserted SSA_NAMEs.
12267 (run_scc_vn): New flag to specify whether insertion is allowed.
12268 Process SSA_NAMEs in forward order.
12269 * tree-ssa-loop-im.c (for_each_index): Handle invariant
12270 ADDR_EXPRs inside VIEW_CONVERT_EXPR.
12271 * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
12272 pointer type to/from integral types that do not change the
12273 precision to regular conversions.
12275 2008-03-13 Uros Bizjak <ubizjak@gmail.com>
12277 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
12278 __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
12279 __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
12280 __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
12281 input arguments and the mode of return value. Built-in functions
12282 that operate on whole 64-bit MMX register now use V1DI mode.
12284 2008-03-13 Alon Dayan <alond@il.ibm.com>
12285 Olga Golovanevsky <olga@il.ibm.com>
12287 PR tree-optimization/35041
12288 * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
12289 to locate the right position in a statement.
12291 2008-03-13 Uros Bizjak <ubizjak@gmail.com>
12295 * config/i386/xmmintrin.h: Change all static inline functions to
12296 extern inline and add __gnu_inline__ attribute.
12297 * config/i386/bmintrin.h: Ditto.
12298 * config/i386/smmintrin.h: Ditto.
12299 * config/i386/tmmintrin.h: Ditto.
12300 * config/i386/mmintrin-common.h: Ditto.
12301 * config/i386/ammintrin.h: Ditto.
12302 * config/i386/emmintrin.h: Ditto.
12303 * config/i386/pmmintrin.h: Ditto.
12304 * config/i386/mmintrin.h: Ditto.
12305 * config/i386/mm3dnow.h: Ditto.
12307 2008-03-13 Jakub Jelinek <jakub@redhat.com>
12309 PR middle-end/35185
12310 * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
12311 (lower_omp_2): New function.
12312 (lower_omp_1, lower_omp): Rewritten.
12314 2008-03-13 Danny Smith <dannysmith@users.sourceforge.net>
12317 * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
12318 with the phrase "Microsoft Windows compilers".
12319 (Push/Pop Macro Pragmas): New subsection. Document
12320 #pragma push_macro and pragma pop_macro.
12322 2008-03-12 Paul Brook <paul@codesourcery.com>
12324 * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
12326 2008-03-12 Paul Brook <paul@codesourcery.com>
12328 * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
12329 (thumb2_alusi3_short): Exclude PLUS and MINUS.
12330 (thumb2_addsi_shortim): Rename ...
12331 (thumb2_addsi_short): ... to this. Allow register operands.
12332 (thumb2_subsi_short): New pattern.
12333 (thumb2_one_cmplsi2_short,
12334 thumb2_negsi2_short): New patterns and peepholes.
12336 2008-03-12 Paul Brook <paul@codesourcery.com>
12338 * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
12340 2008-03-12 Uros Bizjak <ubizjak@gmail.com>
12342 * config/i386/i386.md (int_cond): New code iterator.
12344 ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
12345 sge, sgeu, sle and sleu expanders usign int_cond code iterator.
12346 ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
12347 sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
12348 ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
12349 bge, bgeu, ble and bleu expanders usign int_cond code iterator.
12350 ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
12351 bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
12353 2008-03-12 Paul Brook <paul@codesourcery.com>
12355 * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
12356 instead of {arm,thumb}_compute_save_reg_mask.
12357 (output_return_instruction): Ditto.
12358 (thumb_unexpanded_epilogue): Ditto.
12359 (thumb1_expand_prologue): Ditto.
12360 (thumb1_output_function_prologue): Ditto.
12361 (arm_set_return_address): Ditto.
12362 (thumb_set_return_address): Ditto.
12363 (arm_get_frame_offsets): Set offsets->saved_regs_mask. Push extra
12364 regs to achieve stack alignment.
12365 (thumb1_compute_save_reg_mask): Fix compiler warning.
12366 (arm_output_epilogue): Use offsets->saved_regs_mask.
12367 Adjust stack pointer by poping call clobered registers.
12368 (arm_expand_prologue): Use offsets->saved_regs_mask.
12369 Adjust stack pointer by pushing extra registers.
12370 * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
12372 2008-03-12 Paolo Bonzini <bonzini@gnu.org>
12375 * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
12376 conversion to the operands of a multiplication.
12378 2008-03-12 Richard Guenther <rguenther@suse.de>
12380 * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
12381 (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
12382 * timevar.def (TV_TREE_PHIPROP): Add.
12383 * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
12384 pass description. Use TV_TREE_PHIPROP.
12385 * tree-ssa-forwprop.c: Remove phiprop code.
12387 2008-03-12 Jakub Jelinek <jakub@redhat.com>
12389 PR middle-end/35549
12390 * omp-low.c (maybe_lookup_decl): Constify first argument.
12391 (use_pointer_for_field): Change last argument from bool to
12392 omp_context *. Disallow shared copy-in/out in nested
12393 parallel if decl is shared in outer parallel too.
12394 (build_outer_var_ref, scan_sharing_clauses,
12395 lower_rec_input_clauses, lower_copyprivate_clauses,
12396 lower_send_clauses, lower_send_shared_vars): Adjust callers.
12398 2008-03-12 Victor Kaplansky <victork@il.ibm.com>
12399 Ira Rosen <irar@il.ibm.com>
12401 * tree-vectorizer.c (free_stmt_vec_info): New function.
12402 (destroy_loop_vec_info): Move code to free_stmt_vec_info().
12403 Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
12404 * tree-vectorizer.h (free_stmt_vec_info): Declare.
12405 * tree-vect-transform.c (vectorizable_conversion): Free
12406 vec_oprnds0 if it was allocated.
12407 (vect_permute_store_chain): Remove unused VECs.
12408 (vectorizable_store): Free VECs that are allocated in the..
12410 (vect_transform_strided_load, vectorizable_load): Likewise.
12411 (vect_remove_stores): Simplify the code.
12412 (vect_transform_loop): Move code to vect_remove_stores().
12413 Call vect_remove_stores() and free_stmt_vec_info().
12415 2008-03-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12417 * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
12418 TARGET_HPUX. Revise comment.
12419 (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
12420 * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
12421 Use sr4 variant of `be' instruction when not generating PIC code.
12422 (attr_length_call): Adjust for above change.
12424 2008-03-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
12426 * ipa-reference.c (static_execute): Remove module_statics_const and
12427 associated setting code.
12429 2008-03-11 Uros Bizjak <ubizjak@gmail.com>
12432 * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
12433 predicate for operand 1.
12434 (paritysi2_cmp): Use register_operand predicate for operand 2.
12435 Use earlyclobber modifier for operand 1. Remove support for
12437 (paritydi2_cmp): Use register_operand predicate for operand 3.
12438 Use earlyclobber modifier for operand 1. Remove support for
12441 2008-03-11 Paul Brook <paul@codesourcery.com>
12442 Vladimir Prus <vladimir@codesourcery.com>
12444 * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
12445 (arm_compute_save_reg0_reg12_mask): Always
12446 check if register 11 must be saved. Always safe hard frame pointer
12447 when frame_pointer_needeed.
12448 (arm_compute_save_reg_mask): Save IP and PC
12449 only with apcs frames.
12450 (arm_output_epilogue): Adjust Thumb2 codepath to
12451 be also invoked and work for ARM non-apcs frames.
12452 (arm_expand_prologue): Don't bother saving IP
12453 for non-apcs frame, since it's not clobbered by
12454 prologue code. Implement non-apcs frame
12457 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
12459 PR rtl-optimization/35281
12460 * expr.c (convert_move): Use a new pseudo for the intermediate
12461 from_mode->word_mode result.
12463 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
12465 * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
12466 * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
12467 * toplev.c (compile_file): Don't call it.
12469 2008-03-11 Uros Bizjak <ubizjak@gmail.com>
12471 PR middle-end/35526
12472 * expr.c (store_expr): Call emit_block_move if the mode
12473 of "temp" RTX is BLKmode.
12475 2008-03-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
12476 Richard Guenther <rguenther@suse.de>
12478 PR tree-optimization/31358
12479 * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
12480 the step with a NULL_TREE.
12481 * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
12482 to sizetype if type is a pointer type.
12483 (add_candidate_1): Don't convert the base and step to
12484 the generic type if the orginal type is a pointer type.
12485 (add_iv_value_candidates): Use sizetype for the step
12486 if type is a pointer type.
12487 (cand_value_at): Likewise.
12488 * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
12490 * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
12491 Don't convert the tem affine to the type.
12492 (add_elt_to_tree): Use sizetype for the step if a pointer.
12493 Use POINTER_PLUS_EXPR for pointers.
12494 (aff_combination_to_tree): Use sizetype for the step if a
12497 2008-03-10 Vladimir Makarov <vmakarov@redhat.com>
12499 * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
12500 Remove commutativity hint.
12502 2008-03-10 Jakub Jelinek <jakub@redhat.com>
12506 * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
12507 errorneous type. Check that v is a VAR_DECL.
12509 PR middle-end/35099
12510 * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
12512 2008-03-10 H.J. Lu <hongjiu.lu@intel.com>
12514 PR tree-optimization/35494
12515 * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
12516 may be overriden at link and run time.
12518 2008-03-10 Richard Guenther <rguenther@suse.de>
12520 PR tree-optimization/34677
12521 * tree-ssa-pre.c (modify_expr_node_pool): Remove.
12522 (poolify_tree): Likewise.
12523 (modify_expr_template): Likewise.
12524 (poolify_modify_stmt): Likewise.
12525 (insert_fake_stores): Handle all component-ref style stores
12526 in addition to INDIRECT_REF. Also handle complex types.
12527 Do not poolify the inserted load.
12528 (realify_fake_stores): Do not rebuild the tree but only
12529 make it a SSA_NAME copy.
12530 (init_pre): Remove initialzation of modify_expr_template.
12531 Do not allocate modify_expr_node_pool.
12532 (fini_pre): Do not free modify_expr_node_pool.
12534 2008-03-10 Paul Brook <paul@codesourcery.com>
12536 * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
12537 to avoid conflicts.
12539 2008-03-10 Paul Brook <paul@codesourcery.com>
12540 Mark Shinwell <shinwell@codesourcery.com>
12542 * config/arm/cortex-r4.md: New.
12543 * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
12545 * config/arm/arm.md: Include cortex-r4.md.
12546 (insn): Add smmls, sdiv and udiv values.
12547 (generic_sched): Don't use generic scheduling for Cortex-R4.
12548 (arm_issue_rate): New function.
12549 (TARGET_SCHED_ISSUE_RATE): Define.
12551 2008-03-10 Sebastian Pop <sebastian.pop@amd.com>
12553 * doc/invoke.texi (-ftree-loop-distribution): Add an example.
12555 2008-03-10 Richard Guenther <rguenther@suse.de>
12557 * tree-ssa-pre.c (get_sccvn_value): Simplify.
12558 (compute_avail): Do not add stmt uses to AVAIL_OUT.
12560 2008-03-10 Paolo Bonzini <bonzini@gnu.org>
12562 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
12563 Set default to true.
12565 2008-03-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12567 * c.opt (Wsynth): Deprecate.
12568 * doc/invoke.texi (Option Summary, Warning Options): Document
12569 -Wno-format-contains-nul.
12571 2008-03-09 Uros Bizjak <ubizjak@gmail.com>
12574 * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
12575 ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
12577 2008-03-09 Ira Rosen <irar@il.ibm.com>
12579 * config/rs6000/rs6000.c (builtin_description): Rename vector
12580 left shift operations.
12581 * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
12582 (altivec_vsl<VI_char>): Rename to ...
12583 (ashl<mode>3): ... new name.
12584 (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
12586 (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
12588 2008-03-08 Richard Guenther <rguenther@suse.de>
12590 * coverage.h (tree_coverage_counter_addr): Declare.
12591 * coverage.c (tree_coverage_counter_addr): New function.
12592 * tree-profile.c (tree_gen_edge_profiler): Unshare counter
12593 before using again.
12594 (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
12595 (tree_gen_one_value_profiler): Likewise.
12596 (tree_gen_ic_profiler): Likewise.
12597 (tree_gen_average_profiler): Likewise.
12598 (tree_gen_ior_profiler): Likewise.
12600 2008-03-08 Richard Guenther <rguenther@suse.de>
12602 * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
12603 (vn_binary_op_insert): Likewise.
12604 (vn_unary_op_lookup): Likewise.
12605 (vn_unary_op_insert): Likewise.
12606 (vn_nary_op_lookup): Declare.
12607 (vn_nary_op_insert): Likewise.
12608 * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
12609 and binary hashes, use a single obstack for unary_op_pool
12610 and binary_op_pool.
12611 (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
12612 a single struct vn_nary_op_s. Store tree code length and
12613 a variable number of operands.
12614 (struct vn_reference_op_struct): Remove unused op2.
12615 (vn_reference_op_eq): Do not compare op2.
12616 (vn_reference_op_compute_hash): Do not compute hash of op2.
12617 (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
12618 (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
12619 with vn_nary_op_compute_hash.
12620 (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
12621 (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
12623 (vn_unary_op_insert, vn_binary_op_insert): Replace with
12625 (visit_unary_op): Call nary functions.
12626 (visit_binary_op): Likewise.
12627 (process_scc): Adjust for struct vn_tables_s changes.
12628 (allocate_vn_table): Likewise.
12629 (free_vn_table): Likewise.
12630 * tree-vn.c (vn_add): Call nary functions.
12631 (vn_lookup): Likewise.
12633 2008-03-08 Jakub Jelinek <jakub@redhat.com>
12636 * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
12637 wdst back after sync_compare_and_swapqhi_internal.
12639 2008-03-08 Uros Bizjak <ubizjak@gmail.com>
12642 * config/i386/i386-modes.def (V1DI): New vector mode.
12643 * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
12644 * config/i386/mmx.md (MMXMODEI8): New mode iterator.
12645 (MMXMODE248): Ditto.
12646 (MMXMODE): Add V1DI mode.
12647 (mmxvecsize): Change DI mode to V1DI mode.
12648 ("mov<mode>): Use MMXMODEI8 mode iterator.
12649 ("*mov<mode>_internal_rex64"): Ditto.
12650 ("*mov<mode>_internal"): Ditto.
12651 ("mmx_add<mode>3"): Ditto. Handle V1DImode for TARGET_SSE2.
12652 ("mmx_sub<mode>3"): Ditto.
12653 ("mmx_adddi3"): Remove insn pattern.
12654 ("mmx_subdi3"): Ditto.
12655 ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
12656 ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
12657 ("mmx_ashl<mode>3"): Ditto.
12658 ("mmx_lshrdi3"): Remove insn pattern.
12659 ("mmx_ashldi3"): Ditto.
12660 * config/i386/i386.c (classify_argument): Handle V1DImode.
12661 (function_arg_advance_32): Ditto.
12662 (function_arg_32): Ditto.
12663 (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
12664 mmx_addv1di3 insn pattern.
12665 [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
12666 [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
12667 IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
12668 IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
12669 Remove definitions of built-in functions.
12670 (V1DI_type_node): New node.
12671 (v1di_ftype_v1di_int): Ditto.
12672 (v1di_ftype_v1di_v1di): Ditto.
12673 (v2si_ftype_v2si_si): Ditto.
12674 (v4hi_ftype_v4hi_di): Remove node.
12675 (v2si_ftype_v2si_di): Ditto.
12676 (ix86_init_mmx_sse_builtins): Handle V1DImode.
12677 (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
12678 Redefine builtins using def_builtin_const with *_ftype_*_int node.
12679 (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
12680 Add new builtins using def_builtin_const.
12681 (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
12682 IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
12683 IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
12684 * config/i386/mmintrin.h (__v1di): New typedef.
12685 (_mm_add_si64): Cast arguments to __v1di type.
12686 (_mm_sub_si64): Ditto.
12687 (_mm_sll_pi16): Cast __count to __v4hi type.
12688 (_mm_sll_pi32): Cast __count to __v2si type.
12689 (_mm_sll_si64): Cast arguments to __v1di type.
12690 (_mm_srl_pi16): Cast __count to __v4hi type.
12691 (_mm_srl_pi32): Cast __count to __v2si type.
12692 (_mm_srl_si64): Cast arguments to __v1di type.
12693 (_mm_sra_pi16): Cast __count to __v4hi type.
12694 (_mm_sra_pi32): Cast __count to __v2si type.
12695 (_mm_slli_pi16): Use __builtin_ia32_psllwi.
12696 (_mm_slli_pi32): Use __builtin_ia32_pslldi.
12697 (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
12698 (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
12699 (_mm_srli_pi32): Use __builtin_ia32_psrldi.
12700 (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
12701 (_mm_srai_pi16): Use __builtin_ia32_psrawi.
12702 (_mm_srai_pi32): Use __builtin_ia32_psradi.
12703 * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
12704 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
12705 __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
12706 __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
12708 2008-03-07 Joseph Myers <joseph@codesourcery.com>
12710 * doc/include/texinfo.tex: Update to version 2008-03-07.10.
12712 2008-03-07 Peter Bergner <bergner@vnet.ibm.com>
12715 * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
12716 reg+const addressing for Altivec modes. Don't generate reg+reg
12717 addressing for TFmode or TDmode quantities.
12719 2008-03-07 Paolo Bonzini <bonzini@gnu.org>
12721 * c-common.c (vector_types_convertible_p): Call langhook
12722 instead of comptypes.
12724 2008-03-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
12727 * tree-ssa-ccp.c (get_symbol_constant_value): Handle
12728 integral and scalar float variables which have a
12731 2008-03-06 Nathan Froyd <froydnj@codesourcery.com>
12733 * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
12734 dwarf_register_span hook when emitting unwind information for
12735 register-to-memory saves.
12736 * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
12737 (rs6000_frame_related): Remove call to spe_synthesize_frame.
12739 2008-03-06 Jakub Jelinek <jakub@redhat.com>
12741 * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
12742 for the same VAR_DECL.
12744 2008-03-06 Tom Tromey <tromey@redhat.com>
12746 * treelang: Delete.
12747 * doc/standards.texi (Standards): Don't mention treelang.
12748 * doc/invoke.texi (Overall Options): Don't mention treelang.
12749 * doc/install.texi (Prerequisites): Don't mention bison or
12751 (Configuration): Don't mention treelang.
12752 (Building): Likewise.
12753 * doc/frontends.texi (G++ and GCC): Don't mention treelang.
12755 2008-03-06 Paolo Bonzini <bonzini@gnu.org>
12757 * simplify-rtx.c (simplify_subreg): Remove useless shifts from
12758 word-extractions out of a multi-word object.
12760 2008-03-06 Richard Guenther <rguenther@suse.de>
12762 * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
12763 * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
12764 result type and precision.
12765 * expr.c (get_inner_reference): Set unsignedp based on the result
12766 type of BIT_FIELD_REF.
12767 * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
12768 * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
12769 (try_instantiate_multiple_fields): Likewise. Use the correct type
12771 (sra_build_assignment): Likewise.
12772 (sra_build_elt_assignment): Likewise.
12773 (sra_explode_bitfield_assignment): Likewise.
12774 * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
12775 * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
12776 set BIT_FIELD_REF_UNSIGNED.
12777 (vectorizable_load): Likewise.
12779 2008-03-06 Andreas Krebbel <krebbel1@de.ibm.com>
12781 * cse.c (cse_extended_basic_block): Invalidate artificial defs
12784 2008-03-06 Richard Guenther <rguenther@suse.de>
12786 * alias.c (struct alias_set_entry): Move has_zero_child field
12787 to pack with alias_set.
12789 2008-03-05 H.J. Lu <hongjiu.lu@intel.com>
12791 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
12794 2008-03-05 Ian Lance Taylor <iant@google.com>
12796 * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
12798 2008-03-05 Kenneth Zadeck <zadeck@naturalbridge.com>
12800 * fwprop.c (update_df): Support width and offset parameters of
12802 * ra-conflict.c (mark_reg_store, clear_reg_in_live,
12803 global_conflicts): Change DF_REF_EXTRACT to either
12804 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
12805 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
12806 * df-scan.c (df_ref_record, df_defs_record,
12807 df_ref_create_structure, df_def_record_1, df_uses_record,
12808 df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
12809 df_bb_refs_collect, df_entry_block_defs_collect,
12810 df_exit_block_uses_collect): Support new width and offset fields.
12811 (ref_extract_pool): New storage pool.
12812 (df_free_ref): New function.
12813 (df_reg_chain_unlink, df_free_collection_rec,
12814 df_sort_and_compress_refs): Call df_free_ref.
12815 (df_ref_equal_p, df_ref_compare): Compare offset and width fields
12817 (df_ref_create_structure): Allocate df_ref_extract if offset and
12818 width fields are used.
12819 (df_def_record_1): Get offset and width from ZERO_EXTRACT.
12820 (df_uses_record): Get offset and width from ZERO_EXTRACT
12822 * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
12823 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
12824 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
12825 * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
12826 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
12827 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
12828 (df_ref_extract): New structure.
12829 (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
12830 (df_ref_create): Add width and offset parameters.
12832 2008-03-05 Richard Guenther <rguenther@suse.de>
12834 * tree-ssa-structalias.c (get_constraint_for_component_ref):
12835 Use ranges_overlap_p.
12836 (offset_overlaps_with_access): Rename
12837 to ranges_overlap_p and move ...
12838 * tree-flow-inline.h (ranges_overlap_p): ... here.
12840 * tree.h (get_inner_reference, handled_component_p): Update
12843 * tree.h (record_component_aliases, get_alias_set,
12844 alias_sets_conflict_p, alias_sets_must_conflict_p,
12845 objects_must_conflict_p): Move declarations ...
12846 * alias.h (record_component_aliases, get_alias_set,
12847 alias_sets_conflict_p, alias_sets_must_conflict_p,
12848 objects_must_conflict_p): ... here.
12849 Include coretypes.h.
12850 * Makefile.in (ALIAS_H): Add coretypes.h dependency.
12852 2008-03-05 Aldy Hernandez <aldyh@redhat.com>
12854 * cfg.c: Include tree-flow.h.
12855 (remove_edge_raw): Call redirect_edge_var_map_clear.
12856 (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
12857 * tree-flow-inline.h (redirect_edge_var_map_def): New.
12858 (redirect_edge_var_map_result): New.
12859 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
12860 PENDING_STMT use with redirect_edge_var_map_*.
12861 * tree-ssa.c (edge_var_maps): New definition.
12862 (redirect_edge_var_map_add): New.
12863 (redirect_edge_var_map_clear): New.
12864 (redirect_edge_var_map_dup): New.
12865 (redirect_edge_var_map_vector): New.
12866 (redirect_edge_var_map_destroy): New.
12867 (ssa_redirect_edge): Replace PENDING_STMT use with
12868 redirect_edge_var_map_*.
12869 (flush_pending_stmts): Same.
12870 (delete_tree_ssa): Destroy edge var map.
12871 * tree-flow.h (struct _edge_var_map): New.
12872 Define edge_var_map vector type.
12873 Declare redirect_edge_var_map_* prototypes.
12874 * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
12875 * tree-cfg.c (reinstall_phi_args): Replace
12876 PENDING_STMT use with redirect_edge_var_map_*.
12878 2008-03-05 Richard Guenther <rguenther@suse.de>
12880 PR tree-optimization/35472
12881 * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
12882 whose single use_stmt has a overlapping set of loaded and
12883 stored symbols as that use_stmt might be a noop assignment then.
12885 2008-03-05 Joel Sherrill <joel.sherrill@oarcorp.com>
12887 * gthr-rtems.h: Implement __gthread_mutex_destroy.
12889 2008-03-05 Richard Guenther <rguenther@suse.de>
12892 * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
12893 should be constants.
12894 * tree-cfg.c (verify_expr): Verify it.
12895 * fold-const.c (fold_truthop): Remove code generating
12896 BIT_FIELD_REFs of structure bases.
12897 (fold_binary): Likewise.
12898 (fold_ternary): Position and size of BIT_FIELD_REFs are
12899 always host integers.
12900 (make_bit_field_ref): Remove.
12901 (optimize_bit_field_compare): Remove.
12902 (all_ones_mask_p): Remove.
12904 2008-03-05 Gabor Loki <loki@gcc.gnu.org>
12907 * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
12908 (split_block_and_df_analyze): New. Split basic block and rebuild
12910 (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
12912 (split_pattern_seq): Likewise.
12913 (erase_matching_seqs): Likewise.
12914 (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
12916 2008-03-04 Geoff Keating <geoffk@apple.com>
12918 * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
12919 declaration and code.
12920 (tree_invalid_nonnegative_warnv_p): Likewise.
12922 2008-03-05 Serge Belyshev <belyshev@depni.sinp.msu.ru>
12924 * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
12925 examples. Truncate option-names then causing overfull hbox.
12927 2008-03-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12930 * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
12932 * configure: Rebuilt.
12934 2008-03-04 Rafael Espindola <espindola@google.com>
12936 * fold-const.c (tree_simple_nonnegative_warnv_p): New.
12937 (tree_unary_nonnegative_warnv_p): New.
12938 (tree_binary_nonnegative_warnv_p): New.
12939 (tree_single_nonnegative_warnv_p): New.
12940 (tree_invalid_nonnegative_warnv_p): New.
12941 (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
12943 2008-03-04 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
12946 * opts.c (handle_option): Postpone 'unknown option' errors only for
12949 2008-03-04 H.J. Lu <hongjiu.lu@intel.com>
12952 * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
12955 2008-03-04 Rafael Espindola <espindola@google.com>
12957 * fold-const.c (tree_unary_nonzero_warnv_p): New.
12958 (tree_binary_nonzero_warnv_p): New.
12959 (tree_single_nonzero_warnv_p): New.
12960 (tree_expr_nonzero_warnv_p): Redefine using the new functions.
12962 2008-03-04 Uros Bizjak <ubizjak@gmail.com>
12964 PR middle-end/35456
12965 * fold-const.c (fold_cond_expr_with_comparison): Prevent
12966 transformations for modes that have signed zeros.
12967 * ifcvt.c (noce_try_abs): Ditto.
12969 2008-03-04 Joseph Myers <joseph@codesourcery.com>
12971 * config/i386/i386.c (override_options): Force
12972 -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
12974 2008-03-04 Jan Hubicka <jh@suse.cz>
12977 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
12980 2008-03-04 Danny Smith <dannysmith@users.sourceforge.net>
12982 * config/i386/i386.md (allocate_stack_worker_32): Use __chkstk
12983 label to probe the stack.
12985 2008-03-04 Danny Smith <dannysmith@users.sourceforge.net>
12987 * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
12988 (__gthr_win32_mutex_destroy): Declare.
12989 [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
12990 __gthr_win32_mutex_destroy.
12991 * config/i386/gthr-win32.c (__gthr_win32_mutex_destroy): Define.
12993 2008-03-03 Jan Hubicka <jh@suse.cz>
12996 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
12997 aggressive on inlining cold calls.
12999 2008-03-03 Richard Guenther <rguenther@suse.de>
13001 * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
13002 struct copies into the expression table.
13003 (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
13004 (try_to_simplify): Likewise.
13005 * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
13006 integral and pointer arguments which do not change the
13007 precision to NOP_EXPRs.
13008 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
13009 VIEW_CONVERT_EXPR case.
13011 2008-03-02 Sebastian Pop <sebastian.pop@amd.com>
13013 * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
13014 defined in a loop at depth 0 is invariant.
13015 * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
13016 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
13017 be called at loop depth 0.
13019 2008-03-02 Jakub Jelinek <jakub@redhat.com>
13022 * gcc.c (process_command): Update copyright notice dates.
13023 * gcov.c (print_version): Likewise.
13024 * gcov-dump.c (print_version): Likewise.
13025 * mips-tfile.c (main): Likewise.
13026 * mips-tdump.c (main): Likewise.
13028 2008-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
13031 * c-common.c (flag_permissive): Delete.
13032 (constant_expression_warnings): Check flags first.
13033 (constant_expression_error): New.
13034 * c-common.h (flag_permissive): Delete.
13035 (constant_expression_error): Declare.
13036 * flags.h (flag_permissive): Declare. Update description.
13037 * diagnostic.c (pedwarn): Update.
13039 * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
13040 (permissive_error_kind): New.
13041 * toplev.c (flag_permissive): Define. Update description.
13042 * toplev.h (permissive_error_kind): Declare.
13043 * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
13044 (pedwarn_c90): Use pedantic_warning_kind.
13045 * c-opts.c (c_common_post_options): flag_permissive does not affect
13046 flag_pedantic_errors.
13048 2008-03-02 Joseph Myers <joseph@codesourcery.com>
13050 * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
13051 __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
13052 __absvsi2, __absvDI2): Use unsigned arithmetic.
13054 2008-03-02 Andi Kleen <ak@suse.de>
13055 Richard Guenther <rguenther@suse.de>
13057 * struct-equiv.c: Remove file.
13058 * cfg_cleanup.c (condjump_equiv_p): Remove.
13059 * Makefile.in (OBJS-common): Remove struct-equiv.o.
13060 (struct-equiv.o): Remove rule.
13061 * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
13062 insns_match_p, struct_equiv_block_eq, struct_equiv_init,
13063 rtx_equiv_p, condjump_equiv_p): Remove prototypes.
13065 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
13067 * ifcvt.c (noce_process_if_block): Try to handle only the then
13068 block if the else block exists but isn't suitable.
13070 2008-03-01 Janne Blomqvist <jb@gcc.gnu.org>
13073 * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
13074 * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
13075 regression from previous patch.
13077 2008-03-01 Janne Blomqvist <jb@gcc.gnu.org>
13080 * gthr.h: Add __gthread_mutex_destroy as a function that must be
13082 * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
13083 * gthr-single.h (__gthread_mutex_destroy): Likewise.
13084 * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
13085 * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
13086 * gthr-nks.h (__gthread_mutex_destroy): Likewise.
13087 * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
13088 * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
13089 (__gthread_mutex_destroy_function): Rename to
13090 __gthread_mutex_destroy.
13091 * gthr-dce.h (__gthread_mutex_destroy): Call
13092 pthread_mutex_destroy.
13093 * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
13094 * gthr-posix.h (__gthread_mutex_destroy): Likewise.
13095 * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
13097 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
13099 * df-scan.c (df_ref_chain_change_bb): Simplify.
13100 (df_insn_change_bb): Add new_bb argument. Simplify. Call
13101 set_block_for_insn if there's any change.
13102 * df.h ((df_insn_change_bb): Fix prototype.
13103 * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
13104 df_insn_change_bb, don't call set_block_for_insn.
13105 * emit-rtl.c (reorder_insns): Likewise.
13106 * haifa-sched.c (move_insn): Likewise.
13108 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
13110 * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
13112 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
13114 * tree-flow-inline.h (next_readonly_imm_use): Return
13115 NULL_USE_OPERAND_P after the end.
13117 2008-03-01 Richard Guenther <rguenther@suse.de>
13119 PR tree-optimization/35411
13120 * tree-sra.c (sra_build_assignment): Split conversion to
13121 final type to a separate statement if we are not assigning
13124 2008-02-29 Francois-Xavier Coudert <coudert@clipper.ens.fr>
13126 * fold-const.c (fold_convertible_p): Correct the logic to follow
13127 that in fold_convert().
13129 2008-02-29 Douglas Gregor <doug.gregor@gmail.com>
13132 * tree-inline.c (build_duplicate_type): When we make a
13133 duplicate type, make it unique in the canonical types system.
13135 2008-02-29 Tom Tromey <tromey@redhat.com>
13137 * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
13138 input_file_stack_history, input_file_stack_restored): Remove.
13139 (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
13140 * input.h (struct file_stack): Remove.
13141 (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
13142 (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
13144 * diagnostic.h (struct diagnostic_context) <last_module>: Change
13146 (diagnostic_last_module_changed): Add 'map' argument.
13147 (diagnostic_set_last_function): Likewise.
13148 * diagnostic.c (undiagnostic_report_current_module): Iterate using
13149 line map, not input_file_stack.
13150 * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
13152 2008-02-29 Paul Brook <paul@codesourcery.com>
13154 * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
13156 2008-02-29 Paul Brook <paul@codesourcery.com>
13158 * config/arm/ieee754-df.S (muldf3): Use RET macros.
13160 2008-02-29 Richard Guenther <rguenther@suse.de>
13162 * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
13164 * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
13165 value for comparing for a store match.
13166 (simplify_unary_expression): Do nothing for SSA_NAMEs.
13167 (try_to_simplify): Do not do a full-blown reference lookup.
13169 2008-02-29 Kaz Kojima <kkojima@gcc.gnu.org>
13171 * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
13172 (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
13174 * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
13176 2008-02-29 Sebastian Pop <sebastian.pop@amd.com>
13178 * tree-loop-linear.c (try_interchange_loops): Compare memory access
13179 strides against cache sizes.
13181 2008-02-29 Kaz Kojima <kkojima@gcc.gnu.org>
13183 * config/sh/sh.c (sh_secondary_reload): Handle loading a float
13186 2008-02-28 Richard Sandiford <rsandifo@nildram.co.uk>
13188 * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
13189 of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
13190 is smaller than the original promoted value.
13191 (simplify_subreg): If OP is a SUBREG, try to preserve its
13192 SUBREG_PROMOTED_VAR_P information.
13194 2008-02-28 Steven Bosscher <stevenb.gcc@gmail.com>
13196 * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
13197 (VN_INFO_GET): Allocate new objects on the obstack.
13198 (init_scc_vn): Initialize the obstack. Use XDELETE instead of free
13199 for rpo_numbers_temp, for consistency.
13200 (free_scc_vn): Free the obstack.
13202 2008-02-28 Sebastian Pop <sebastian.pop@amd.com>
13204 * doc/invoke.texi: Document -ftree-loop-distribution.
13205 * tree-loop-distribution.c: New.
13206 * tree-pass.h (pass_loop_distribution): New.
13207 * graphds.h (struct graph): Add htab_t indices.
13208 * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
13209 * tree-vectorizer.c (rename_variables_in_loop): Extern.
13210 (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
13211 * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
13212 * tree-data-ref.c (debug_data_dependence_relations): New.
13213 (dump_data_dependence_relation): Also print data references.
13214 (free_data_ref): Extern.
13215 (same_access_functions): Moved...
13216 (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
13217 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
13218 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
13219 struct rdg_vertex_info, rdg_vertex_for_stmt): New.
13220 (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
13221 (stmts_from_loop): Skip LABEL_EXPR.
13222 (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
13224 (build_rdg): Initialize rdg->indices htab.
13225 (free_rdg, stores_from_loop, ref_base_address,
13226 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
13227 have_similar_memory_accesses_1, ref_base_address_1,
13228 remove_similar_memory_refs): New.
13229 * tree-data-ref.h: Depend on tree-chrec.h.
13230 (debug_data_dependence_relations, free_data_ref): Declared.
13231 (same_access_functions): ... here.
13232 (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
13234 (struct rdg_vertex): Add has_mem_write and has_mem_reads.
13235 (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
13236 RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
13237 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
13238 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
13239 rdg_vertex_for_stmt): Declared.
13240 (struct rdg_edge): Add level.
13242 (free_rdg, stores_from_loop, remove_similar_memory_refs,
13243 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
13245 (rdg_has_similar_memory_accesses): New.
13246 * tree-vect-analyze.c: Remove unused static decls.
13247 * lambda.h (dependence_level): New.
13248 * common.opt (ftree-loop-distribution): New.
13249 * tree-flow.h (mark_virtual_ops_in_bb,
13250 slpeel_tree_duplicate_loop_to_edge_cfg,
13251 rename_variables_in_loop): Declared.
13252 * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
13253 (OBJS-common): Add tree-loop-distribution.o.
13254 (tree-loop-distribution.o): New rule.
13255 * tree-cfg.c (mark_virtual_ops_in_bb): New.
13256 (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
13257 * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
13259 2008-02-28 Joseph Myers <joseph@codesourcery.com>
13262 * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
13263 other than structures and unions.
13265 2008-02-28 Richard Guenther <rguenther@suse.de>
13268 2008-02-26 Richard Guenther <rguenther@suse.de>
13270 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
13271 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
13272 (lookup_decl_from_uid): Declare.
13273 (remove_decl_from_map): Likewise.
13274 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
13275 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
13276 (decl_for_uid_map): New global hashtable mapping DECL_UID
13278 (init_ttree): Allocate it.
13279 (insert_decl_to_uid_decl_map): New helper function.
13280 (make_node_stat): Insert new decls into the map.
13281 (copy_node_stat): Likewise.
13282 (lookup_decl_from_uid): New function.
13283 (remove_decl_from_map): Likewise.
13284 (print_decl_for_uid_map_statistics): New helper.
13285 (dump_tree_statistics): Call it.
13287 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
13288 (referenced_var_iterator): Adjust.
13289 (FOR_EACH_REFERENCED_VAR): Adjust.
13290 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
13291 (num_referenced_vars): Adjust.
13292 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
13293 (first_referenced_var): Remove.
13294 (end_referenced_vars_p): Likewise.
13295 (next_referenced_var): Likewise.
13296 (referenced_var_iterator_set): New helper function.
13297 * tree-dfa.c (referenced_var_lookup): Adjust.
13298 (referenced_var_check_and_insert): Likewise.
13299 (remove_referenced_var): Likewise.
13300 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
13301 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
13302 (verify_call_clobbering): Likewise.
13303 (verify_memory_partitions): Likewise.
13304 (init_tree_ssa): Allocate bitmap instead of hashtable for
13306 (delete_tree_ssa): Adjust.
13307 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
13308 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
13309 (compute_tag_properties): Likewise.
13310 (set_initial_properties): Likewise.
13311 (find_partition_for): Likewise.
13312 (update_reference_counts): Likewise.
13313 (dump_may_aliases_for): Likewise.
13314 * tree-ssa-operands.c (add_virtual_operand): Likewise.
13315 (add_call_clobber_ops): Likewise.
13316 (add_call_read_ops): Likewise.
13317 (get_asm_expr_operands): Likewise.
13318 * tree-into-ssa.c (dump_decl_set): Likewise.
13319 (update_ssa): Likewise.
13320 * tree-sra.c (scan_function): Likewise.
13321 (decide_instantiations): Likewise.
13322 (scalarize_parms): Likewise.
13323 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
13324 (dsa_named_for): Likewise.
13325 * tree-ssa-structalias.c (update_alias_info): Likewise.
13326 (merge_smts_into): Likewise.
13328 2008-02-27 David Daney <ddaney@avtrex.com>
13331 * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
13332 * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
13333 * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
13334 * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
13335 * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
13337 2008-02-27 Uros Bizjak <ubizjak@gmail.com>
13340 * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
13341 (BUILT_IN_NEXTTOWARD): Remove.
13342 (BUILT_IN_NEXTTOWARDF): Ditto.
13343 * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
13344 alloca/strcpy/strcat. Remove commented-out code. Fix whitespace.
13346 2008-02-27 Tom Tromey <tromey@redhat.com>
13348 * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
13349 DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
13351 2008-02-27 Jan Beulich <jbeulich@novell.com>
13353 * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
13354 update the respective field on newdecl.
13356 2008-02-27 Revital Eres <eres@il.ibm.com>
13358 PR rtl-optimization/34999
13359 * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
13360 crossing edges that ends with a call insn.
13361 (fix_up_fall_thru_edges): Handle crossing edges that ends with a
13362 call insn and clear the EDGE_CROSSING flag of the crossing edge
13363 when fixing fallthru edges.
13365 2008-02-27 Richard Guenther <rguenther@suse.de>
13367 PR middle-end/35390
13368 * fold-const.c (fold_unary): Return the correct argument,
13369 converted to the result type.
13371 2008-02-27 Richard Guenther <rguenther@suse.de>
13373 PR middle-end/34971
13374 * expr.c (expand_expr_real_1): Assert on rotates that operate
13376 * fold-const.c (fold_binary): Use the types precision, not the
13377 bitsize of the mode if folding rotate expressions. Build rotates
13378 only for full modes.
13380 2008-02-27 Jakub Jelinek <jakub@redhat.com>
13382 * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
13383 and CPP_PRAGMA_EOL.
13384 * c-pragma.c (pragma_ns_name): New typedef.
13385 (registered_pp_pragmas): New variable.
13386 (c_pp_lookup_pragma): New function.
13387 (c_register_pragma_1): If flag_preprocess_only, do nothing
13388 for non-expanded pragmas, for expanded ones push pragma's
13389 namespace and name into registered_pp_pragmas vector.
13390 (c_invoke_pragma_handler): Register OpenMP pragmas even when
13391 flag_preprocess_only, don't register GCC pch_preprocess
13392 pragma if flag_preprocess_only.
13393 * c-opts.c (c_common_init): Call init_pragma even if
13394 flag_preprocess_only.
13395 * c-pragma.c (c_pp_lookup_pragma): New prototype.
13396 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
13397 cpp_register_pragma if flag_preprocess_only.
13399 2008-02-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13402 * c-parser.c (c_parser_translation_unit): Warn for empty
13403 translation unit, not empty source file.
13405 2008-02-26 Paul Brook <paul@codesourcery.com>
13407 * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
13408 operand for Thumb-2.
13409 * config/arm/arm.h (reg_class): Add CORE_REGS.
13410 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
13411 (BASE_REG_CLASS): Use CORE_REGS.
13412 (PREFERRED_RELOAD_CLASS): Add STACK_REG.
13413 (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
13414 (REGNO_OK_FOR_INDEX_P): Exclude SP.
13415 (ARM_REG_OK_FOR_INDEX_P): Always define. Use
13416 ARM_REGNO_OK_FOR_INDEX_P.
13417 (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
13418 * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
13419 arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
13420 (ldm/stm peepholes): Ditto.
13421 * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
13422 * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
13423 * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
13424 * config/arm/constraints.md: Enable "k" constraint on ARM.
13426 2008-02-27 Ben Elliston <bje@au.ibm.com>
13428 * config/rs6000/rs6000.c: Annotate cache line size field in all
13429 instances of struct processor_costs.
13431 2008-02-26 David Edelsohn <edelsohn@gnu.org>
13433 * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
13434 dse2, gcse, if_conversion, if_after_combine, if_after_reload,
13435 jump_bypass): New counters.
13436 * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
13437 * dce.c (gate_ud_dce): Same.
13438 (gate_fast_dce): Same.
13439 * dse.c (gate_dse1): New function.
13440 (gate_dse2): New function.
13441 (gate_dse): Merge results of new gate functions.
13442 * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
13443 (gate_handle_jump_bypass): Add dbg_cnt.
13444 (gate_handle_gcse): Add dbg_cnt.
13445 * ifcvt.c (gate_handle_if_conversion): Same.
13446 (gate_handle_if_after_combine): Same.
13447 (gate_handle_if_after_reload): Same.
13448 * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
13450 2008-02-26 Edmar Wienskoski <edmar@freescale.com>
13452 * config/rs6000/rs6000.c (processor_costs): Update e300 cache
13454 * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
13456 2008-02-26 Jason Merrill <jason@redhat.com>
13459 * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE
13460 alone if it's the naming decl for the type's main variant.
13462 2008-02-26 Tom Tromey <tromey@redhat.com>
13464 * system.h (USE_MAPPED_LOCATION): Poison.
13465 * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
13466 * tree-cfg.c (make_cond_expr_edges): Remove old location code.
13467 (make_goto_expr_edges): Likewise.
13468 (remove_bb): Likewise.
13469 (execute_warn_function_return): Likewise.
13470 * basic-block.h (struct edge_def) <goto_locus>: Change type to
13472 * c-common.c (fname_decl): Remove old location code.
13473 * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
13475 * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
13477 (ASM_INPUT_SOURCE_LOCATION): Likewise.
13478 (gen_rtx_ASM_INPUT): Likewise.
13479 (gen_rtx_ASM_INPUT_loc): Likewise.
13480 (get_rtx_asm_OPERANDS): Remove.
13481 * cfglayout.c (insn_locators_alloc): Remove old location code.
13482 (set_curr_insn_source_location): Likewise.
13483 (curr_insn_locator): Likewise.
13484 * print-tree.c (print_node): Remove old location code.
13485 * tree-mudflap.c (mf_varname_tree): Remove old location code.
13486 (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
13487 * cfgexpand.c (expand_gimple_cond_expr): Don't use
13488 location_from_locus.
13489 (construct_exit_block): Remove old location code.
13490 * emit-rtl.c (force_next_line_note): Remove old location code.
13491 * profile.c (branch_prob): Remove old location code.
13492 * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
13493 LOC_LINE): Remove old-location variants.
13494 * langhooks.c (lhd_print_error_function): Remove old location
13496 * configure, config.in: Rebuilt.
13497 * configure.ac (--enable-mapped-location): Remove.
13498 * c-decl.c (c_init_decl_processing): Remove old location code.
13499 (finish_function): Likewise.
13500 * recog.c (decode_asm_operands): Remove old location code.
13501 * c-pch.c (c_common_read_pch): Remove old location code.
13502 * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
13504 * gimple-low.c (lower_function_body): Remove old location code.
13505 * toplev.c (unknown_location): Remove.
13506 (push_srcloc): Remove old-location variant.
13507 (process_options): Remove old location code.
13508 (lang_dependent_init): Likewise.
13509 * input.h (UNKNOWN_LOCATION): Move definition.
13510 (location_t): Undeprecate.
13511 (source_locus): Remove.
13512 (location_from_locus): Remove.
13513 (struct location_s): Remove.
13514 Remove all old-location code.
13515 (input_line, input_filename): Remove.
13516 * final.c (final_scan_insn): Remove old location code.
13517 * diagnostic.c (diagnostic_build_prefix): Remove
13518 USE_MAPPED_LOCATION test.
13519 * tree.h (gimple_stmt) <locus>: Now a location_t.
13520 (tree_exp) <locus>: Likewise.
13521 (DECL_IS_BUILTIN): Remove old-location variant.
13522 (annotate_with_file_line, annotate_with_locus): Likewise.
13523 (expr_locus, set_expr_locus): Update.
13524 * tree.c (build1_stat): Remove old location code.
13525 (last_annotated_node): Remove.
13526 (annotate_with_file_line): Remove old-location variant.
13527 (annotate_with_locus): Likewise.
13528 (expr_location): Remove old location code.
13529 (set_expr_location): Likewise.
13530 (expr_has_location): Likewise.
13531 (expr_locus): Likewise.
13532 (set_expr_locus): Likewise.
13533 (expr_filename): Don't use location_from_locus.
13534 (expr_lineno): Likewise.
13535 * rtl-error.c (location_for_asm): Remove old location code.
13536 * c-lex.c (cb_line_change): Remove old location code.
13537 (fe_file_change): Likewise.
13538 (cb_def_pragma): Likewise.
13539 (c_lex_with_flags): Likewise.
13540 * gengtype.c (do_typedef): Don't special-case location types.
13541 (define_location_structures): Remove.
13542 (main): Don't call define_location_structures.
13543 * tree-pretty-print.c (dump_implicit_edges): Remove old location
13546 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
13549 * builtins.def (BUILT_IN_STDARG_START): Remove.
13550 * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
13551 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
13552 * tree-inline.c (inline_forbidden_p_1): Likewise.
13554 2008-02-26 Richard Guenther <rguenther@suse.de>
13556 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
13557 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
13558 (lookup_decl_from_uid): Declare.
13559 (remove_decl_from_map): Likewise.
13560 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
13561 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
13562 (decl_for_uid_map): New global hashtable mapping DECL_UID
13564 (init_ttree): Allocate it.
13565 (insert_decl_to_uid_decl_map): New helper function.
13566 (make_node_stat): Insert new decls into the map.
13567 (copy_node_stat): Likewise.
13568 (lookup_decl_from_uid): New function.
13569 (remove_decl_from_map): Likewise.
13570 (print_decl_for_uid_map_statistics): New helper.
13571 (dump_tree_statistics): Call it.
13573 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
13574 (referenced_var_iterator): Adjust.
13575 (FOR_EACH_REFERENCED_VAR): Adjust.
13576 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
13577 (num_referenced_vars): Adjust.
13578 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
13579 (first_referenced_var): Remove.
13580 (end_referenced_vars_p): Likewise.
13581 (next_referenced_var): Likewise.
13582 (referenced_var_iterator_set): New helper function.
13583 * tree-dfa.c (referenced_var_lookup): Adjust.
13584 (referenced_var_check_and_insert): Likewise.
13585 (remove_referenced_var): Likewise.
13586 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
13587 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
13588 (verify_call_clobbering): Likewise.
13589 (verify_memory_partitions): Likewise.
13590 (init_tree_ssa): Allocate bitmap instead of hashtable for
13592 (delete_tree_ssa): Adjust.
13593 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
13594 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
13595 (compute_tag_properties): Likewise.
13596 (set_initial_properties): Likewise.
13597 (find_partition_for): Likewise.
13598 (update_reference_counts): Likewise.
13599 (dump_may_aliases_for): Likewise.
13600 * tree-ssa-operands.c (add_virtual_operand): Likewise.
13601 (add_call_clobber_ops): Likewise.
13602 (add_call_read_ops): Likewise.
13603 (get_asm_expr_operands): Likewise.
13604 * tree-into-ssa.c (dump_decl_set): Likewise.
13605 (update_ssa): Likewise.
13606 * tree-sra.c (scan_function): Likewise.
13607 (decide_instantiations): Likewise.
13608 (scalarize_parms): Likewise.
13609 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
13610 (dsa_named_for): Likewise.
13611 * tree-ssa-structalias.c (update_alias_info): Likewise.
13612 (merge_smts_into): Likewise.
13614 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
13617 * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
13618 * c-opts.c (c_common_handle_option): Wall enables
13619 Wvolatile-register-var.
13620 * common.opt: Move Wvolatile-register-var to...
13623 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
13625 * common.opt (Wlarger-than=): New.
13626 * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
13628 * opts.c (common_handle_option): Handle -Wlarger-than=.
13629 * optc-gen.awk: Likewise.
13630 * opth-gen.awk: Likewise.
13631 * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
13632 * tree-optimize.c (tree_rest_of_compilation): Likewise.
13634 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
13636 * c-common.c (match_case_to_enum_1): Add appropriate
13637 OPT_W* parameter to warning.
13638 (c_do_switch_warnings): Likewise.
13639 * c-typeck.c (warning_init): Add one more parameter following
13640 'warning' function.
13641 (push_init_level): Update call to warning_init.
13642 (pop_init_level): Likewise.
13643 (add_pending_init): Likewise.
13644 (output_init_element: Likewise.
13646 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
13649 * toplev.c (toplev_main): If there are warnings or error, print
13650 errors for ignored options.
13651 * opts.c (ignored_options): New static variable.
13652 (postpone_unknown_option_error): New.
13653 (print_ignored_options): New.
13654 (handle_option): Postpone errors for unknown -Wno-* options.
13655 * opts.h (print_ignored_options): Declare.
13657 2008-02-25 Richard Sandiford <rsandifo@nildram.co.uk>
13659 * config/mips/mips.md (loadgp_blockage, blockage): Change type
13662 2008-02-25 Richard Guenther <rguenther@suse.de>
13665 2008-02-25 Richard Guenther <rguenther@suse.de>
13667 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
13668 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
13669 (lookup_decl_from_uid): Declare.
13670 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
13671 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
13672 (decl_for_uid_map): New global hashtable mapping DECL_UID
13674 (init_ttree): Allocate it.
13675 (insert_decl_to_uid_decl_map): New helper function.
13676 (make_node_stat): Insert new decls into the map.
13677 (copy_node_stat): Likewise.
13678 (lookup_decl_from_uid): New function.
13679 (print_decl_for_uid_map_statistics): New helper.
13680 (dump_tree_statistics): Call it.
13682 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
13683 (referenced_var_iterator): Adjust.
13684 (FOR_EACH_REFERENCED_VAR): Adjust.
13685 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
13686 (num_referenced_vars): Adjust.
13687 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
13688 (first_referenced_var): Remove.
13689 (end_referenced_vars_p): Likewise.
13690 (next_referenced_var): Likewise.
13691 (referenced_var_iterator_set): New helper function.
13692 * tree-dfa.c (referenced_var_lookup): Adjust.
13693 (referenced_var_check_and_insert): Likewise.
13694 (remove_referenced_var): Likewise.
13695 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
13696 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
13697 (verify_call_clobbering): Likewise.
13698 (verify_memory_partitions): Likewise.
13699 (init_tree_ssa): Allocate bitmap instead of hashtable for
13701 (delete_tree_ssa): Adjust.
13702 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
13703 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
13704 (compute_tag_properties): Likewise.
13705 (set_initial_properties): Likewise.
13706 (find_partition_for): Likewise.
13707 (update_reference_counts): Likewise.
13708 (dump_may_aliases_for): Likewise.
13709 * tree-ssa-operands.c (add_virtual_operand): Likewise.
13710 (add_call_clobber_ops): Likewise.
13711 (add_call_read_ops): Likewise.
13712 (get_asm_expr_operands): Likewise.
13713 * tree-into-ssa.c (dump_decl_set): Likewise.
13714 (update_ssa): Likewise.
13715 * tree-sra.c (scan_function): Likewise.
13716 (decide_instantiations): Likewise.
13717 (scalarize_parms): Likewise.
13718 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
13719 (dsa_named_for): Likewise.
13720 * tree-ssa-structalias.c (update_alias_info): Likewise.
13721 (merge_smts_into): Likewise.
13723 2008-02-25 Janne Blomqvist <jb@gcc.gnu.org>
13726 * doc/invoke.texi (-fcx-limited-range): Document new option.
13727 * toplev.c (process_options): Handle -fcx-fortran-rules.
13728 * common.opt: Add documentation for -fcx-fortran-rules.
13730 2008-02-25 Janne Blomqvist <jb@gcc.gnu.org>
13733 * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
13734 actual behaviour and C99.
13736 2008-02-26 Ben Elliston <bje@au.ibm.com>
13738 * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
13739 (ASM_CPU_POWER6_SPEC): Likewise.
13740 (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
13741 Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
13742 (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
13744 2008-02-25 Richard Guenther <rguenther@suse.de>
13746 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
13747 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
13748 (lookup_decl_from_uid): Declare.
13749 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
13750 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
13751 (decl_for_uid_map): New global hashtable mapping DECL_UID
13753 (init_ttree): Allocate it.
13754 (insert_decl_to_uid_decl_map): New helper function.
13755 (make_node_stat): Insert new decls into the map.
13756 (copy_node_stat): Likewise.
13757 (lookup_decl_from_uid): New function.
13758 (print_decl_for_uid_map_statistics): New helper.
13759 (dump_tree_statistics): Call it.
13761 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
13762 (referenced_var_iterator): Adjust.
13763 (FOR_EACH_REFERENCED_VAR): Adjust.
13764 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
13765 (num_referenced_vars): Adjust.
13766 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
13767 (first_referenced_var): Remove.
13768 (end_referenced_vars_p): Likewise.
13769 (next_referenced_var): Likewise.
13770 (referenced_var_iterator_set): New helper function.
13771 * tree-dfa.c (referenced_var_lookup): Adjust.
13772 (referenced_var_check_and_insert): Likewise.
13773 (remove_referenced_var): Likewise.
13774 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
13775 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
13776 (verify_call_clobbering): Likewise.
13777 (verify_memory_partitions): Likewise.
13778 (init_tree_ssa): Allocate bitmap instead of hashtable for
13780 (delete_tree_ssa): Adjust.
13781 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
13782 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
13783 (compute_tag_properties): Likewise.
13784 (set_initial_properties): Likewise.
13785 (find_partition_for): Likewise.
13786 (update_reference_counts): Likewise.
13787 (dump_may_aliases_for): Likewise.
13788 * tree-ssa-operands.c (add_virtual_operand): Likewise.
13789 (add_call_clobber_ops): Likewise.
13790 (add_call_read_ops): Likewise.
13791 (get_asm_expr_operands): Likewise.
13792 * tree-into-ssa.c (dump_decl_set): Likewise.
13793 (update_ssa): Likewise.
13794 * tree-sra.c (scan_function): Likewise.
13795 (decide_instantiations): Likewise.
13796 (scalarize_parms): Likewise.
13797 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
13798 (dsa_named_for): Likewise.
13799 * tree-ssa-structalias.c (update_alias_info): Likewise.
13800 (merge_smts_into): Likewise.
13802 2008-02-25 Andreas Krebbel <krebbel1@de.ibm.com>
13805 * cse.c (cse_insn): Avoid creation of overlapping MEMs.
13806 * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
13807 * alias.h (nonoverlapping_memrefs_p): Likewise.
13809 2008-02-25 Jan Beulich <jbeulich@novell.com>
13811 * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
13812 * config/i386/netware-libgcc.exp: Add __bswap?i2,
13813 __emultls_get_address, __emultls_register_common,
13814 __floatundi?f, and _Unwind_GetIPInfo.
13815 * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
13816 Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
13817 (gen_regparm_prefix): Likewise.
13818 (i386_nlm_encode_section_info): Sync with
13819 config/i386/winnt.c:i386_pe_encode_section_info().
13820 (i386_nlm_maybe_mangle_decl_assembler_name): New.
13821 i386_nlm_mangle_decl_assembler_name): New.
13822 (netware_override_options): New.
13823 * config/i386/netware.h (netware_override_options): Declare.
13824 (OVERRIDE_OPTIONS): Re-define to netware_override_options.
13825 (i386_nlm_mangle_decl_assembler_name): Declare.
13826 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
13828 2008-02-25 Ben Elliston <bje@au.ibm.com>
13831 * c-decl.c (grokdeclarator): Remove unused local variables
13832 `typedef_type' and `type_as_written'.
13834 (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
13835 unused local variable `has_hot_blocks'.
13836 (fix_crossing_conditional_branches): Remove unused local variable
13839 2008-02-25 Uros Bizjak <ubizjak@gmail.com>
13841 PR middle-end/19984
13842 * builtins.def (BUILT_IN_NAN): Define as c99 builtin
13843 using DEF_C99_BUILTIN.
13844 (BUILT_IN_NANF): Ditto.
13845 (BUILT_IN_NANL): Ditto.
13847 2008-02-25 Ayal Zaks <zaks@il.ibm.com>
13848 Revital Eres <eres@il.ibm.com>
13850 * modulo-sched.c (calculate_must_precede_follow): Address TODO
13851 regarding the order of two dependent insns in the same row.
13853 2008-02-25 Eric Botcazou <ebotcazou@adacore.com>
13855 * stor-layout.c (layout_decl): Do not bump the alignment of a
13856 bit-field to more than byte alignment if it is packed.
13858 2008-02-24 David Edelsohn <edelsohn@gnu.org>
13860 * config/rs6000/rs6000.c (processor_costs): Add cache costs for
13863 2008-02-24 Diego Novillo <dnovillo@google.com>
13865 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
13868 * tree-vrp.c (vrp_evaluate_conditional): With
13869 -Wtype-limits, emit a warning when comparing against a
13870 constant outside the natural range of OP0's type.
13871 * c.opt (Wtype-limits): Move ...
13872 * common.opt (Wtype-limits): ... here.
13874 2008-02-24 Edmar Wienskoski <edmar@freescale.com>
13876 * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
13877 * config/rs6000/e300c2c3.md: New file.
13878 * config/rs6000/rs6000.c (processor_costs): Add new costs for
13880 (rs6000_override_options): Add e300c2 and e300c3 cases to
13881 processor_target_table. Do not allow usage of Altivec or Spe
13882 with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
13883 (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
13884 * config/rs6000/rs6000.h (processor_type): Add
13885 PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
13886 (ASM_CPU_SPEC): Add e300c2 and e300c3.
13887 * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
13888 and ppce300c3. Include e300c2c3.md.
13890 2008-02-23 David Edelsohn <edelsohn@gnu.org>
13892 * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
13893 instead of TARGET_STRICT_ALIGN.
13895 2008-02-23 Joseph Myers <joseph@codesourcery.com>
13897 * explow.c (memory_address): Assert that the generated address is
13900 2008-02-23 Francois-Xavier Coudert <coudert@clipper.ens.fr>
13903 * config/darwin-protos.h: Add darwin_patch_builtins prototype.
13904 * config/darwin-ppc-ldouble-patch.def: New file.
13905 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
13906 * config/rs6000/rs6000.c (rs6000_init_builtins): Call
13907 SUBTARGET_INIT_BUILTINS if defined.
13908 * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
13911 2008-02-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
13914 * simplify-rtx.c (simplify_binary_operation_1): Add simplification
13915 of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
13917 2008-02-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
13920 * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
13921 file" warning condtional on -Winvalid-PCH.
13923 2008-02-23 Daniel Jacobowitz <dan@codesourcery.com>
13925 * expmed.c (extract_bit_field): Always use adjust_address for MEM.
13927 2008-02-23 Uros Bizjak <ubizjak@gmail.com>
13931 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
13932 prevent reload from using MMX registers.
13933 (*mov<mode>_internal): Ditto.
13934 (*movv2sf_internal_rex64): Ditto.
13935 (*movv2sf_internal): Ditto.
13937 2008-02-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13939 PR documentation/31569
13940 * doc/install.texi2html: Use makeinfo --no-number-sections.
13942 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
13944 * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
13945 ensure that we can address an entire entity > 8 bytes. Don't
13946 generate reg+reg addressing for such data.
13948 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
13950 * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
13951 strings when optimizing for size, unless the target cares about
13954 2008-02-22 Tom Tromey <tromey@redhat.com>
13956 * regclass.c (current_pass): Remove declaration.
13958 2008-02-22 Anatoly Sokolov <aesok@post.ru>
13960 * config/avr/libgcc.S (__RAMPZ__): Define.
13961 (__do_copy_data): Add for devices with 128KB code memory.
13963 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
13965 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
13967 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
13969 2008-02-22 Hans-Peter Nilsson <hp@axis.com>
13971 * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
13974 2008-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13977 * c-typeck.c (build_binary_op): Warn about floating point
13978 comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
13980 2008-02-21 Janis Johnson <janis187@us.ibm.com>
13983 * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
13984 (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
13986 (rs6000_override_options): Set altivec_abi as default, not override,
13987 for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
13988 TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
13989 is used; use new member spe_abi.
13990 (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
13991 spe_abi and altivec_abi.
13993 2008-02-22 Tomas Bily <tbily@suse.cz>
13995 * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
13997 2008-02-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14000 * config.build (build_file_translate): Set to `CMD //c' only if
14002 * Makefile.in (build_file_translate): Improve comment.
14004 2008-02-21 Jan Hubicka <jh@suse.cz>
14006 * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
14007 PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
14008 PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
14010 2008-02-21 Michael Matz <matz@suse.de>
14013 * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
14015 2008-02-21 Uros Bizjak <ubizjak@gmail.com>
14017 * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
14018 movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
14019 as insn constraint.
14020 * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
14021 from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
14022 SSE_VEC_FLOAT_MODE_P as insn constraint.
14023 (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
14024 (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
14025 sse4a_movntdf using MODEF mode iterator.
14026 (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
14027 sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
14028 (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
14029 (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
14030 (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
14031 (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
14032 (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
14034 2008-02-21 Richard Guenther <rguenther@suse.de>
14036 * tree.def (PAREN_EXPR): New tree code.
14037 * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
14039 * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
14040 * expr.c (expand_expr_real_1): Likewise.
14041 * tree-inline.c (estimate_num_insns_1): Likewise.
14042 * tree-complex.c (expand_complex_move): Likewise.
14043 * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
14046 2008-02-20 Kaz Kojima <kkojima@gcc.gnu.org>
14049 * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
14051 2008-02-20 Kaz Kojima <kkojima@gcc.gnu.org>
14054 * config/sh/sh.md (jump_compact): Disable for crossing jumps.
14056 * config/sh/sh.c (find_barrier): Don't go past
14057 NOTE_INSN_SWITCH_TEXT_SECTIONS note.
14059 2008-02-20 DJ Delorie <dj@redhat.com>
14061 * config/h8300/h8300.md (insv): Force source operand to be a register.
14063 * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
14064 as a jump, not as a plain insn.
14066 2008-02-20 Seongbae Park <seongbae.park@gmail.com>
14068 * doc/invoke.texi (Warning Options): Add new option
14069 -Wframe-larger-than=.
14070 (-Wframe-larger-than): Document.
14072 * flags.h (warn_frame_larger_than, frame_larger_than_size):
14073 Add declarations for new option variables.
14075 * final.c (final_start_function): Check the frame size
14076 before emission and issue a Wframe-larger-than warning.
14078 * opts.c (warn_frame_larger_than, frame_larger_than_size):
14079 Add definitions for new option variables.
14080 (common_handle_option): Handle new option OPT_Wframe_larger_than_.
14082 * common.opt (Wframe-larger-than=): New option.
14084 2008-02-20 Uros Bizjak <ubizjak@gmail.com>
14086 * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
14087 (<sse>_div<mode>3): Ditto.
14088 (<sse>_vmdiv<mode>3): Ditto.
14089 (<sse>_vmsqrt<mode>2): Ditto.
14090 (*smax<mode>3): Ditto.
14091 (sse5_frcz<mode>2): Ditto.
14092 (sse5_vmfrcz<mode>2): Ditto. Use TARGET_SSE5 instead of TARGET_ROUND
14093 as insn constraint.
14095 2008-02-20 Richard Guenther <rguenther@suse.de>
14097 PR middle-end/35265
14098 * builtins.c (validate_arg): If we want an INTEGER_TYPE,
14099 be happy with INTEGRAL_TYPE_P.
14101 2008-02-20 Richard Guenther <rguenther@suse.de>
14103 * fold-const.c (split_tree): Associate floatig-point expressions
14104 if flag_associative_math is set.
14106 2008-02-20 Richard Guenther <rguenther@suse.de>
14108 * tree.h (fold_real_zero_addition_p): Declare.
14109 * fold-const.c (fold_real_zero_addition_p): Export.
14110 * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
14111 floating-point operations with zero and one.
14113 2008-02-20 Paolo Bonzini <bonzini@gnu.org>
14115 * doc/install.texi: Correct references to CFLAGS, replacing them
14116 with BOOT_CFLAGS. Document flags used during bootstrap for
14119 2008-02-20 Uros Bizjak <ubizjak@gmail.com>
14121 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
14122 * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
14123 and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
14125 (smin<mode>3): Ditto from similar patterns.
14126 (smax<mode>3): Ditto.
14127 (*ieee_smin<mode>3): Ditto.
14128 (*ieee_smax<mode>3): Ditto.
14129 * config/i386/sse.md (sse): New mode attribute.
14130 (mov<mode>): Macroize expander from movv4sf and movv2df using
14131 SSEMODEF2P mode iterator.
14132 (<sse>_movnt<mode>): Ditto from similar patterns. Use
14133 SSE_VEC_FLOAT_MODE_P as insn constraint.
14134 (storent<mode>): Ditto.
14135 (storent<mode>): Macroize expander from storentsf and storentdf using
14136 MODEF mode iterator.
14137 (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
14138 mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
14139 (abs<mode>2): Ditto from similar patterns.
14140 (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
14141 (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
14142 (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
14143 (<sse>_vmsqrt<mode>2): Ditto.
14144 (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
14145 (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
14146 (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
14147 (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
14148 (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
14149 sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
14150 mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
14152 (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
14153 iterator and SSE_FLOAT_MODE_P as insn constraint.
14154 (<sse>_ucomi): Ditto from similar patterns.
14155 (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
14156 sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
14157 SSE_VEC_FLOAT_MODE_P as insn constraint.
14158 (vcond<mode>): Ditto from similar patterns.
14159 (and<mode>3, *and<mode>3): Ditto.
14160 (<sse>_nand<mode>3): Ditto.
14161 (ior<mode>3, *ior<mode>3): Ditto.
14162 (xor<mode>3, *xor<mode>3): Ditto.
14163 (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
14164 iterator and SSE_FLOAT_MODE_P as insn constraint.
14165 (*nand<mode>3): Ditto from similar patterns.
14166 (*ior<mode>3): Ditto.
14167 (*xor<mode>3): Ditto.
14169 2008-02-20 Ira Rosen <irar@il.ibm.com>
14171 * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
14172 vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
14173 vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
14175 2008-02-19 Jan Hubicka <jh@suse.cz>
14177 * predict.c (tree_bb_level_predictions): Remove variable next
14178 mistakely introduced by previous commit.
14180 2008-02-19 Jan Hubicka <jh@suse.cz>
14182 * predict.c (predict_paths_leading_to): Rewrite.
14183 (predict_paths_for_bb): New.
14184 (tree_bb_level_predictions): Update call of predict_paths_leading_to.
14186 2008-02-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14189 * Makefile.in (build_file_translate): New.
14190 (gcc-vers.texi): Use it for translating $(abs_srcdir).
14191 * config.build (build_file_translate): Set to `CMD //c' on MinGW.
14192 * configure.ac (build_file_translate): Substitute it.
14193 * configure: Regenerate.
14195 2008-02-19 Jan Hubicka <jh@suse.cz>
14197 PR rtl-optimization/34408
14198 * see.c (see_def_extension_not_merged): Copy subreg so we don't have
14201 2008-02-19 Jan Hubicka <jh@suse.cz>
14203 PR middle-end/28779
14204 * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
14207 2008-02-19 H.J. Lu <hongjiu.lu@intel.com>
14210 * config/i386/i386-modes.def: Revert the last DI alignment
14211 change until Ada people can look into it.
14213 2008-02-19 Nick Clifton <nickc@redhat.com>
14215 * opts.c (print_specific_help): Fix typo in --help text.
14217 2008-02-19 Jakub Jelinek <jakub@redhat.com>
14220 * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
14221 32-bit inline asm without asm alternatives for host GCC < 3.0.
14223 2008-02-19 Richard Guenther <rguenther@suse.de>
14225 PR tree-optimization/34989
14226 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
14227 Allow propagation to INDIRECT_REF if we can simplify only.
14229 2008-02-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
14231 * c-common.c (warn_for_collisions_1): Use appropriate option when
14234 2008-02-19 Nick Clifton <nickc@redhat.com>
14237 * opts.c (undocumented_msg): Leave blank unless checking is enabled.
14238 (handle_options): Fix indentation.
14239 (print_filtered_help): If no language-specific options were
14240 displayed tell the user how to list all the options supported by
14241 the language's front-end.
14242 (print_specific_help): Fix indentation and remove duplicate line.
14243 (common_handle_option): Handle the -v option.
14244 For --help enable the display of undocumented options if the -v
14245 switch has been included on the command line.
14246 For --help= check for overlaps in the arguments between the option
14247 classes and the language names and issue a warning when they
14248 cannot be disambiguated.
14249 * c.opt (v): Pass on to the common option handler.
14251 2008-02-19 Revital Eres <eres@il.ibm.com>
14253 * modulo-sched.c (sms_schedule): Change dump message when
14254 create_ddg function fails.
14255 (try_scheduling_node_in_cycle): Rename row to cycle.
14256 (print_partial_schedule): Rename CYCLE to ROW.
14258 2008-02-19 Christian Bruel <christian.bruel@st.com>
14259 Zdenek Dvorak <ook@ucw.cz>
14261 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
14263 2008-02-19 Uros Bizjak <ubizjak@gmail.com>
14266 * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
14267 (*x86_movdicc_0_m1_se): Ditto.
14269 2008-02-19 Uros Bizjak <ubizjak@gmail.com>
14271 * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
14272 (CMPtype): Define as __gcc_CMPtype.
14273 * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
14274 (CMPtype): Define as __gcc_CMPtype.
14276 2008-02-19 Hans-Peter Nilsson <hp@axis.com>
14278 Support valgrind 3.3 for --enable-checking=valgrind.
14279 * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
14281 [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
14282 [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
14283 [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
14284 * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
14285 Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
14286 VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
14287 VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
14289 * ggc-zone.c: Similar.
14290 * ggc-page.c: Similar.
14292 2008-02-19 Paul Brook <paul@codesourcery.com>
14295 * config/arm/ieee754-df.S: Fix do_it typo.
14296 * config/arm/ieee754-sf.S: Fix do_it typo.
14298 2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
14301 * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
14302 (OPTION_MASK_ISA_3DNOW_SET): Likewise.
14303 (OPTION_MASK_ISA_SSE_SET): Likewise.
14304 (OPTION_MASK_ISA_SSE2_SET): Likewise.
14305 (OPTION_MASK_ISA_SSE3_SET): Likewise.
14306 (OPTION_MASK_ISA_SSSE3_SET): Likewise.
14307 (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
14308 (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
14309 (OPTION_MASK_ISA_SSE4_SET): Likewise.
14310 (OPTION_MASK_ISA_SSE4A_SET): Likewise.
14311 (OPTION_MASK_ISA_SSE5_SET): Likewise.
14312 (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
14313 (OPTION_MASK_ISA_MMX_UNSET): Updated.
14314 (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
14315 (OPTION_MASK_ISA_SSE_UNSET): Likewise.
14316 (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
14317 (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
14318 (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
14319 (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
14320 (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
14321 (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
14322 (OPTION_MASK_ISA_SSE4): Removed.
14323 (ix86_handle_option): Turn on bits in ix86_isa_flags and
14324 ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
14325 (override_options): Don't turn on implied SSE/MMX bits in
14328 2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
14330 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
14333 2008-02-18 Joey Ye <joey.ye@intel.com>
14335 PR middle-end/34921
14336 * tree-nested.c (insert_field_into_struct): Set type alignment
14337 to field alignment if the former is less than the latter.
14339 2008-02-18 Jakub Jelinek <jakub@redhat.com>
14341 * BASE-VER: Set to 4.4.0.
14343 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14345 * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
14346 * doc/cfg.texi: Likewise.
14347 * doc/extend.texi: Likewise.
14348 * doc/gty.texi: Likewise.
14349 * doc/invoke.texi: Likewise.
14350 * doc/loop.texi: Likewise.
14351 * doc/md.texi: Likewise.
14352 * doc/passes.texi: Likewise.
14353 * doc/rtl.texi: Likewise.
14354 * doc/sourcebuild.texi: Likewise.
14355 * doc/tm.texi: Likewise.
14356 * doc/tree-ssa.texi: Likewise.
14358 2008-02-17 Richard Guenther <rguenther@suse.de>
14360 PR middle-end/35227
14361 * tree-complex.c (init_parameter_lattice_values): Handle parameters
14362 without default definition.
14364 2008-02-17 Richard Guenther <rguenther@suse.de>
14366 PR tree-optimization/35231
14367 * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
14370 2008-02-17 Uros Bizjak <ubizjak@gmail.com>
14373 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
14374 * config/i386/sfp-machine.h (CMPtype): Define as typedef using
14375 libgcc_cmp_return mode.
14377 2008-02-16 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
14380 * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
14382 2008-02-16 Ralf Corsepius <ralf.corsepius@rtems.org>
14384 * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
14387 2008-02-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14389 * doc/c-tree.texi: Use `@.' where appropriate.
14390 * doc/extend.texi: Likewise.
14391 * doc/install.texi: Likewise.
14392 * doc/invoke.texi: Likewise.
14393 * doc/loop.texi: Likewise.
14394 * doc/makefile.texi: Likewise.
14395 * doc/md.texi: Likewise.
14396 * doc/passes.texi: Likewise.
14397 * doc/standards.texi: Likewise.
14398 * doc/tm.texi: Likewise.
14400 2008-02-15 Jakub Jelinek <jakub@redhat.com>
14402 PR middle-end/35196
14403 * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
14405 (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
14406 rather than in entry_bb.
14408 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
14410 * config/i386/sfp-machine.h (CMPtype): Define as typedef using
14411 libgcc_cmp_return mode.
14413 2008-02-15 Jakub Jelinek <jakub@redhat.com>
14415 PR middle-end/35130
14416 * tree-nested.c (convert_call_expr): Put FRAME.* vars into
14417 OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
14419 2008-02-15 Richard Guenther <rguenther@suse.de>
14420 Zdenek Dvorak <ook@ucw.cz>
14422 PR tree-optimization/35164
14423 * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
14424 * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
14425 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
14426 Only propagate addresses which do not have abnormal SSA_NAMEs
14429 2008-02-15 Joseph Myers <joseph@codesourcery.com>
14432 * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
14434 2008-02-15 Jan Hubicka <jh@suse.cz>
14436 PR middle-end/35149
14437 * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
14439 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
14441 PR middle-end/34621
14442 * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
14443 when calculating alignment_pad.
14445 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
14447 * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
14448 (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
14449 * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
14450 and STACK_BOUNDARY define.
14452 2008-02-14 Danny Smith <dannysmith@users.sourceforge.net>
14454 PR preprocessor/35061
14455 * c-pragma.c (handle_pragma_pop_macro): Check that
14456 pushed_macro_table has been allocated.
14458 2008-02-14 Eric Botcazou <ebotcazou@adacore.com>
14460 PR middle-end/35136
14461 * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
14462 (force_gimple_operand): Likewise.
14463 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
14464 for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
14465 Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
14466 (find_interesting_uses_address): Check addressability and alignment
14467 of the base expression only after substituting bases of IVs into it.
14469 2008-02-14 Michael Matz <matz@suse.de>
14472 * function.c (instantiate_virtual_regs_in_insn): Reload address
14473 before falling back to reloading the whole operand.
14475 2008-02-14 Andreas Krebbel <krebbel1@de.ibm.com>
14477 * config/s390/s390.c (s390_mainpool_start): Emit the pool
14478 before the first section switch note.
14480 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14482 * doc/bugreport.texi: Update copyright years.
14483 * doc/c-tree.texi: Likewise.
14484 * doc/cfg.texi: Likewise.
14485 * doc/cpp.texi: Likewise.
14486 * doc/cppinternals.texi: Likewise.
14487 * doc/fragments.texi: Likewise.
14488 * doc/frontends.texi: Likewise.
14489 * doc/gcc.texi: Likewise.
14490 * doc/gty.texi: Likewise.
14491 * doc/hostconfig.texi: Likewise.
14492 * doc/implement-c.texi: Likewise.
14493 * doc/libgcc.texi: Likewise.
14494 * doc/loop.texi: Likewise.
14495 * doc/makefile.texi: Likewise.
14496 * doc/options.texi: Likewise.
14497 * doc/passes.texi: Likewise.
14498 * doc/rtl.texi: Likewise.
14499 * doc/sourcebuild.texi: Likewise.
14500 * doc/standards.texi: Likewise.
14501 * doc/tree-ssa.texi: Likewise.
14502 * doc/trouble.texi: Likewise.
14504 * doc/extend.texi: Use @: or add comma where appropriate.
14505 * doc/invoke.texi: Likewise.
14506 * doc/tm.texi: Likewise.
14508 2008-02-14 Alan Modra <amodra@bigpond.net.au>
14511 * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
14514 2008-02-14 Jesper Nilsson <jesper.nilsson@axis.com>
14516 * doc/md.texi (clz, ctz): Add reference.
14517 * doc/rtl.texi (clz, ctz): Likewise.
14519 2008-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14522 * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
14525 2008-02-13 Andreas Krebbel <krebbel1@de.ibm.com>
14527 * config/s390/s390.c (struct constant_pool): New field
14528 emit_pool_after added.
14529 (s390_mainpool_start): Set the emit_pool_after flag according
14530 to the section switch notes.
14531 (s390_mainpool_finish): Consider emit_pool_after when emitting
14532 the literal pool at the end of the function.
14533 (s390_chunkify_start): Force literal pool splits at section
14536 2008-02-13 Michael Matz <matz@suse.de>
14539 * var-tracking.c (clobber_variable_part): Correctly traverse the
14542 2008-02-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
14545 * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
14546 Add -fdump-ipa-inline.
14547 * tree-dump.c (dump_files): Remove tree-inlined dump.
14548 * tree-pass.h (tree_dump_index): Remove TDI_inlined.
14550 2008-02-12 Richard Guenther <rguenther@suse.de>
14552 PR tree-optimization/35171
14553 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
14556 2008-02-12 Richard Guenther <rguenther@suse.de>
14558 PR middle-end/35163
14559 * fold-const.c (fold_widened_comparison): Use get_unwidened in
14560 value-preserving mode. Disallow final truncation.
14562 2008-02-12 Eric Botcazou <ebotcazou@adacore.com>
14564 PR middle-end/35136
14565 * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
14566 code from here to...
14567 (force_gimple_operand): ...here.
14569 2008-02-12 Jakub Jelinek <jakub@redhat.com>
14572 * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
14573 non-compatible pointers.
14574 (generate_element_copy): If SRC and DST are RECORD_TYPEs with
14575 different FIELD_DECLs, try harder by comparing field offsets, sizes
14578 PR inline-asm/35160
14579 * function.c (match_asm_constraints_1): Don't replace the same input
14582 2008-02-12 Anatoly Sokolov <aesok@post.ru>
14584 * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
14585 * config/avr/avr.c (expand_prologue): Save RAMPZ register.
14586 (expand_epilogue): Restore RAMPZ register.
14587 * config/avr/avr.md (RAMPZ_ADDR): New constant.
14589 2008-02-11 Kai Tietz <kai.tietz@onevision.com>
14591 * config/i386/cygwin.asm: (__alloca): Correct calling
14592 convention and alignment.
14593 (__chkstk): Force 8 byte stack alignment.
14595 2008-02-11 Uros Bizjak <ubizjak@gmail.com>
14596 Richard Guenther <rguenther@suse.de>
14598 PR tree-optimization/33992
14599 * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
14600 the zero we compare against.
14602 2008-02-10 Danny Smith <dannysmith@users.sourceforge.net>
14604 PR libfortran/35063
14605 * gthr-win32.h (__gthread_mutex_destroy_function): New function
14606 to CloseHandle after unlocking to prevent accumulation of handle
14609 2008-02-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14611 PR middle_end/34150
14612 * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
14613 pic_label_operand source. Similarly, add a REG_LABEL_OPERAND note
14614 and update LABEL_NUSES during and after reload.
14616 2008-02-08 Steven Bosscher <stevenb.gcc@gmail.com>
14618 PR middle-end/34627
14619 * combine.c (simplify_if_then_else): Make sure the comparison is
14620 against const0_rtx when simplifying to (abs x) or (neg (abs X)).
14622 2008-02-08 Richard Sandiford <rsandifo@nildram.co.uk>
14625 * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
14626 (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
14627 * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
14628 (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
14629 * tree.h (get_type_static_bounds): Likewise.
14631 2008-02-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14633 * doc/invoke.texi (Option Summary, C++ Dialect Options)
14634 (Objective-C and Objective-C++ Dialect Options, Warning Options):
14635 Make -Wfoo language annotations match what the compiler outputs.
14637 2008-02-08 Sa Liu <saliu@de.ibm.com>
14639 * config/spu/spu-builtins.def: Fixed wrong parameter type in spu
14640 intrinsics spu_convts, spu_convtu, spu_convtf.
14642 2008-02-08 Hans-Peter Nilsson <hp@axis.com>
14644 * doc/extend.texi (Function Attributes) <noinline>: Mention
14645 asm ("") as method to keep calls.
14647 2008-02-07 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
14650 * doc/options.texi (Options): Replace references to opts.sh with
14652 * opts-common.c: Likewise.
14653 * optc-gen.awk: Likewise.
14655 2008-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
14657 * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
14659 2008-02-07 Richard Henderson <rth@redhat.com>
14662 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
14663 EXPR_LIST for the REG_EQUAL instead of a comparison with a
14666 2008-02-07 Uros Bizjak <ubizjak@gmail.com>
14668 PR tree-optimization/35085
14669 * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
14670 for operand entry oe2 in addition to operand entry oe3 in order to
14671 expose more opportunities for vectorizer sum reduction.
14673 2008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14676 * Makefile.in (LIBS): Remove $(GMPLIBS).
14677 (cc1-dummy, cc1): Add $(GMPLIBS).
14679 2008-02-06 Jan Hubicka <jh@suse.cz>
14682 * i386.md (moddf_integer): Do not produce partial memory stalls for
14683 targets where it hurts.
14685 2008-02-06 Uros Bizjak <ubizjak@gmail.com>
14688 * optabs.c (expand_float): Do not check for decimal modes when
14689 expanding unsigned integer through signed conversion.
14691 2008-02-06 Nick Clifton <nickc@redhat.com>
14693 * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
14694 inside the clobber with a match_operand and duplicated operand
14695 number in the constraint.
14696 (ineqbranchsi): Delete redundant comment.
14698 2008-02-06 Ralf Corsepius <ralf.corsepius@rtems.org>
14700 * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add
14701 builtin_define ("__USE_INIT_FINI__").
14702 * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
14704 * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
14706 2008-02-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14708 PR documentation/30330
14709 * doc/invoke.texi (C++ Dialect Options)
14710 (Objective-C and Objective-C++ Dialect Options, Warning Options):
14711 For each warning option -Wfoo that allows -Wno-foo, ensure both
14712 -Wfoo and -Wno-foo are listed in the option index. Fix index
14713 entry of -Wswitch-default, index -Wnormalized= including the
14714 `=', and -Wlarger-than-@var{len} including @var{len}.
14716 2008-02-05 Uros Bizjak <ubizjak@gmail.com>
14718 * config/i386/i386.md (floatunssisf2): Use
14719 ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
14720 (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
14721 Macroize expander using MODEF mode iterator.
14723 2008-02-05 Diego Novillo <dnovillo@google.com>
14725 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
14728 * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
14730 2008-02-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14733 * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
14735 2008-02-05 H.J. Lu <hongjiu.lu@intel.com>
14738 * config/i386/i386.c (ix86_function_sseregparm): Add an arg
14739 to indicate if a message should be generated.
14740 (init_cumulative_args): Updated.
14741 (function_value_32): Likewise.
14743 2008-02-05 Joseph Myers <joseph@codesourcery.com>
14745 * doc/include/texinfo.tex: Update to version 2008-02-04.16.
14747 2008-02-05 Uros Bizjak <ubizjak@gmail.com>
14750 * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
14751 Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
14753 2008-02-04 Diego Novillo <dnovillo@google.com>
14755 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
14758 * tree-vrp.c (vrp_evaluate_conditional): With
14759 -Wtype-limits, emit a warning when comparing against a
14760 constant outside the natural range of OP0's type.
14762 2008-02-04 Richard Guenther <rguenther@suse.de>
14764 PR middle-end/33631
14765 * expr.c (count_type_elements): Give for unions instead of
14768 2008-02-04 Richard Guenther <rguenther@suse.de>
14770 PR middle-end/35043
14771 * gimplify.c (gimplify_init_ctor_eval): Convert array indices
14772 to TYPE_DOMAINs base type instead of using bitsizetype here.
14774 2008-02-03 Jason Merrill <jason@redhat.com>
14776 * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
14778 2008-02-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14781 * doc/invoke.texi (C++ Dialect Options, Optimize Options)
14782 (HPPA Options, i386 and x86-64 Options, IA-64 Options)
14783 (RS/6000 and PowerPC Options): Fix typos and markup.
14784 * doc/passes.texi (Tree-SSA passes): Likewise.
14786 2008-02-02 Michael Matz <matz@suse.de>
14789 * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
14790 from record_last_reg_set_info.
14791 (record_last_reg_set_info): Take an RTX argument, iterate over all
14792 constituent hardregs.
14793 (record_last_set_info, record_opr_changes): Change calls to
14794 new signature or to record_last_reg_set_info_regno.
14796 2008-02-02 Gerald Pfeifer <gerald@pfeifer.com>
14798 * doc/extend.texi (X86 Built-in Functions): Fix grammar.
14800 2008-02-01 Hans-Peter Nilsson <hp@axis.com>
14802 PR rtl-optimization/34773
14803 * reg-notes.def (EQUAL): Mention significance of combination of
14804 REG_EQUAL and REG_RETVAL.
14805 * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
14806 insn that has a REG_RETVAL.
14808 2008-02-01 Roger Sayle <roger@eyesopen.com>
14811 * configure.ac (--enable-fixed-point): Disable unless explicitly
14813 * configure: Regenerate.
14815 2008-02-01 Richard Guenther <rguenther@suse.de>
14818 * invoke.texi (-finline-limit): Remove no longer true parts
14819 of the documentation. Note that there is no default value.
14821 2008-02-01 Andrew Pinski <pinskia@gmail.com>
14822 Mark Mitchell <mark@codesourcery.com>
14823 Ben Elliston <bje@au.ibm.com>
14826 * doc/extend.texi (Other Builtins): Document.
14828 2008-01-31 Tom Browder <tom.browder@gmail.com>
14830 * doc/c-tree.texi (Types): Fix grammar.
14831 (Expression trees): Ditto.
14832 * doc/passes.texi (Tree-SSA passes): Ditto.
14834 * doc/configterms.texi (Configure Terms): Fix typo.
14835 * doc/cpp.texi (Common Predefined Macros): Ditto.
14836 * doc/md.texi (Machine Constraints): Ditto.
14838 * doc/makefile.texi (Makefile): Add comma.
14840 2008-01-31 Tom Browder <tom.browder@gmail.com>
14841 Gerald Pfeifer <gerald@pfeifer.com>
14843 * doc/sourcebuild.texi (Front End): Remove references to CVS
14844 and CVSROOT/modules.
14845 (Texinfo Manuals): Replace reference to CVS by one to SVN.
14846 (Back End): Remove reference to CVS.
14848 2008-01-31 Richard Sandiford <rsandifo@nildram.co.uk>
14851 * config/mips/mips.c (gen_load_const_gp): New function, taking a
14853 (mips16_gp_pseudo_reg): ...here.
14854 * config/mips/mips.md (load_const_gp): Replace with...
14855 (load_const_gp_<mode>): ...this :P-based insn.
14857 2008-01-31 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
14859 * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
14860 options. Minor fixes.
14861 (-std): Move reference to standards closer to where language
14862 standards are first mentioned.
14864 2008-01-31 Richard Sandiford <rsandifo@nildram.co.uk>
14866 PR rtl-optimization/34995
14867 * reload.c (alternative_allows_const_pool_ref): Take an rtx
14868 parameter and return a bool. If the rtx parameter is nonnull,
14869 check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
14870 (find_reloads): Update call accordingly. Pass the new operand
14871 if it needed no address reloads, otherwise pass null.
14873 2008-01-30 Richard Henderson <rth@redhat.com>
14876 * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
14877 for unbounded arrays.
14879 2008-01-30 Silvius Rus <rus@google.com>
14881 * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
14883 2008-01-30 Jan Hubicka <jh@suse.cz>
14886 * i386.c (init_cumulative_args): Use real function declaration when
14889 2008-01-30 Richard Sandiford <rsandifo@nildram.co.uk>
14891 PR rtl-optimization/34998
14892 * global.c (build_insn_chain): Treat non-subreg_lowpart
14893 SUBREGs of pseudos as clobbering all the words covered by the
14894 SUBREG, not just all the bytes.
14895 * ra-conflict.c (clear_reg_in_live): Likewise. Take the
14896 original df_ref rather than an extract parameter.
14897 (global_conflicts): Update call accordingly.
14899 2008-01-30 Andreas Krebbel <krebbel1@de.ibm.com>
14901 * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
14902 the overflow check to make it easier to read.
14903 (__fixtfdi): Change the type of the ll member in union
14904 long_double to UDItype_x.
14906 2008-01-30 Jakub Jelinek <jakub@redhat.com>
14908 PR middle-end/34969
14909 * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
14910 * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
14911 * tree-inline.c (fold_marked_statements): Call
14912 cgraph_update_edges_for_call_stmt if folding a call statement.
14913 * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
14914 debug_generic_stmt calls, reset it back afterwards.
14917 * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
14919 * c-typeck.c (build_external_ref): Don't pedwarn about
14920 static vars in current function's scope.
14922 2008-01-29 Joseph Myers <joseph@codesourcery.com>
14924 * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
14926 2008-01-29 Bernhard Fischer <aldot@gcc.gnu.org>
14929 * ipa-struct-reorg.c: Fix spelling.
14930 * params.def: Ditto.
14932 2008-01-29 Richard Guenther <rguenther@suse.de>
14934 PR middle-end/35006
14935 * tree-inline.h (struct copy_body_data): Add remapping_type_depth
14937 * tree-inline.c (remap_type): Increment remapping_type_depth
14938 around remapping types.
14939 (copy_body_r): Only add referenced variables if they are referenced
14940 from code, not types.
14942 2008-01-29 Douglas Gregor <doug.gregor@gmail.com>
14953 * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
14954 qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
14956 2008-01-28 Andy Hutchinson <hutchinsonandy@netscape.net>
14959 * config/avr/avr.c (expand_prologue): Use correct QI mode frame
14960 pointer for tiny stack.
14962 2008-01-28 Bernhard Fischer <aldot@gcc.gnu.org>
14964 * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
14966 2008-01-28 Bernhard Fischer <aldot@gcc.gnu.org>
14968 * config/vx-common.h: Fix typo in comment.
14970 2008-01-28 Ian Lance Taylor <iant@google.com>
14974 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
14975 coalesce pointers if they have different DECL_NO_TBAA_P values.
14976 * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
14977 between variables with different DECL_NO_TBAA_P values.
14979 2008-01-28 Nathan Froyd <froydnj@codesourcery.com>
14982 * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
14983 are not legitimate small data references on SPE targets.
14985 2008-01-28 David Daney <ddaney@avtrex.com>
14987 * doc/install.texi (mips-*-*): Recommend binutils 2.18.
14989 2008-01-28 David Daney <ddaney@avtrex.com>
14991 * doc/install.texi (--disable-libgcj-bc): Reword documentation.
14993 2008-01-27 Joseph Myers <joseph@codesourcery.com>
14995 * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
14996 m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
14997 *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
14998 *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
14999 hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
15000 i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
15001 i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
15002 vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
15004 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
15006 * basic-block.h (condjump_equiv_p): Fix comment.
15008 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
15010 * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
15011 print_generic_stmt_indented): Fix comment.
15013 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
15015 * configure.ac (__stack_chk_fail): Add detecion for availability
15016 of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
15017 * configure: Regenerate.
15019 2008-01-26 Maxim Kuvyrkov <maxim@codesourcery.com>
15021 PR middle-end/34688
15022 * final.c (output_addr_const): Handle TRUNCATE.
15024 2008-01-26 Zdenek Dvorak <ook@ucw.cz>
15027 * tree-ssa-loop-ivopts.c (comp_cost): New type.
15028 (zero_cost, infinite_cost): New constants.
15029 (struct cost_pair): Change type of cost to comp_cost.
15030 (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
15031 (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
15033 (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
15034 split_address_cost, ptr_difference_cost, difference_cost,
15035 get_computation_cost_at, get_computation_cost,
15036 determine_use_iv_cost_generic, determine_use_iv_cost_address,
15037 determine_use_iv_cost_condition, determine_use_iv_costs,
15038 cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
15039 iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
15040 iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
15041 Change type of cost to comp_cost.
15042 (determine_iv_cost): Increase cost of non-original ivs, instead
15043 of decreasing the cost of original ones.
15044 (get_address_cost): Indicate the complexity of the addressing mode
15046 (try_add_cand_for): Prefer using ivs not specific to some object.
15047 * tree-flow.h (force_expr_to_var_cost): Declaration removed.
15049 2008-01-26 Peter Bergner <bergner@vnet.ibm.com>
15050 Janis Johnson <janis187@us.ibm.com>
15053 * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
15054 (TARGET_INSTANTIATE_DECLS): Likewise.
15055 * target.h (expand_to_rtl_hook): New target hook.
15056 (instantiate_decls): Likewise.
15057 * function.c (instantiate_decl): Make non-static. Rename to...
15058 (instantiate_decl_rtl): ... this.
15059 (instantiate_expr): Use instantiate_decl_rtl.
15060 (instantiate_decls_1): Likewise.
15061 (instantiate_decls): Likewise.
15062 (instantiate_virtual_regs: Call new instantiate_decls taget hook.
15063 * function.h (instantiate_decl_rtl): Add prototype.
15064 * cfgexpand.c (target.h): New include.
15065 (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
15066 * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
15067 (TARGET_INSTANTIATE_DECLS): Likewise.
15068 (TARGET_INITIALIZER): New target hooks added.
15069 * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
15071 * config/rs6000/rs6000.c (tree-flow.h): New include.
15072 (machine_function): Add sdmode_stack_slot field.
15073 (rs6000_alloc_sdmode_stack_slot): New function.
15074 (rs6000_instantiate_decls): Likewise.
15075 (rs6000_secondary_memory_needed_rtx): Likewise.
15076 (rs6000_check_sdmode): Likewise.
15077 (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
15078 (TARGET_INSTANTIATE_DECLS): Likewise.
15079 (rs6000_hard_regno_mode_ok): Allow SDmode.
15080 (num_insns_constant): Likewise. Handle _Decimal32 constants.
15081 (rs6000_emit_move): Handle SDmode.
15082 (function_arg_advance): Likewise.
15083 (function_arg): Likewise.
15084 (rs6000_gimplify_va_arg): Likewise. Add special handling of
15085 SDmode var args for 32-bit compiles.
15086 (rs6000_secondary_reload_class): Handle SDmode.
15087 (rs6000_output_function_epilogue): Likewise.
15088 (rs6000_function_value): Simplify if statement.
15089 (rs6000_libcall_value): Likewise.
15090 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
15091 (SECONDARY_MEMORY_NEEDED_RTX): Add define.
15092 * config/rs6000/dfp.md (movsd): New define_expand and splitter.
15093 (movsd_hardfloat): New define_insn.
15094 (movsd_softfloat): Likewise.
15095 (movsd_store): Likewise.
15096 (movsd_load): Likewise.
15097 (extendsddd2): Likewise.
15098 (extendsdtd2): Likewise.
15099 (truncddsd2): Likewise.
15100 (movdd_hardfloat64): Fixup comment.
15101 (UNSPEC_MOVSD_LOAD): New constant.
15102 (UNSPEC_MOVSD_STORE): Likewise.
15104 2008-01-26 Jakub Jelinek <jakub@redhat.com>
15107 * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
15109 (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
15110 (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
15111 (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
15112 and TRUTH_XOR_EXPR.
15114 2008-01-26 David Edelsohn <edelsohn@gnu.org>
15117 * config.gcc: Separate AIX 5.3 from AIX 6.1.
15118 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
15119 __LONGDOUBLE128 too.
15120 * config/rs6000/aix61.h: New file.
15122 2008-01-26 Richard Sandiford <rsandifo@nildram.co.uk>
15124 PR rtl-optimization/34959
15125 * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
15126 popcount and parity rtxes the same mode as their operand.
15127 Truncate or extend the result to the return value's mode
15130 2008-01-26 Richard Sandiford <rsandifo@nildram.co.uk>
15133 * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
15134 * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
15135 to GOT_VERSION_REGNUM.
15136 (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
15137 (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
15138 * config/mips/mips.c (mips_emit_call_insn): New function.
15139 (mips_call_tls_get_addr): Call mips_expand_call directly.
15140 (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
15142 (mips16_build_call_stub): Likewise. Return the call insn or null.
15143 (mips_expand_call): Update the call to mips16_build_call_stub
15144 accordingly and a remove redundant condition. Assert that MIPS16
15145 stubs do not use lazy binding. Use mips_emit_call_insn and return
15147 (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
15149 (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
15150 (mips_avoid_hazard): Remove hazard_set handling.
15151 * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
15152 (UNSPEC_RESTORE_GP): ...this.
15153 (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
15154 (FAKE_CALL_REGNO): Rename to...
15155 (GOT_VERSION_REGNUM): ...this.
15156 (type): Add "ghost" value. Add an associated insn reservation.
15157 (hazard_set): Remove.
15158 (exception_receiver): Rename to...
15159 (restore_gp): ...this and update the unspec identifier accordingly.
15160 (exception_receiver, nonlocal_got_receiver): New expanders.
15161 (load_call<mode>): Use GOT_VERSION_REGNUM. Don't set
15162 FAKE_CALL_REGNO. Remove hazard_set attribute.
15163 (set_got_version, update_got_version): New patterns.
15165 2008-01-26 Danny Smith <dannysmith@users.sourceforge.net>
15168 * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
15170 2008-01-25 Joseph Myers <joseph@codesourcery.com>
15173 * doc/install.texi2html: Generate gcc-vers.texi.
15175 2008-01-25 DJ Delorie <dj@redhat.com>
15177 * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
15179 2008-01-25 Joseph Myers <joseph@codesourcery.com>
15181 * config/c4x: Remove directory.
15182 * config.gcc (crx-*, mt-*): Mark obsolete.
15183 (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
15184 h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
15185 sh-*-rtemscoff*): Remove cases.
15186 * defaults.h (C4X_FLOAT_FORMAT): Remove.
15187 * real.c (encode_c4x_single, decode_c4x_single,
15188 encode_c4x_extended, decode_c4x_extended, c4x_single_format,
15189 c4x_extended_format): Remove.
15190 * real.h (c4x_single_format, c4x_extended_format): Remove.
15191 * doc/extend.texi (interrupt, naked): Remove mention of attributes
15193 (Pragmas): Remove comment about c4x pragmas.
15194 * doc/install.texi (c4x): Remove target-specific instructions.
15195 * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
15196 * doc/md.texi (Machine Constraints): Remove C4x documentation.
15197 * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
15198 refer to C4x source files as examples.
15199 (C4X_FLOAT_FORMAT): Remove documentation.
15201 2008-01-25 Bernd Schmidt <bernd.schmidt@analog.com>
15203 * config/bfin/bfin.c (override_options): Reorder tests so that
15204 flag_pic gets enabled for -msep-data.
15206 2008-01-25 Richard Guenther <rguenther@suse.de>
15208 PR middle-end/32244
15209 * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
15210 to its bitfield precision if required.
15212 2008-01-25 Jakub Jelinek <jakub@redhat.com>
15214 PR middle-end/33880
15215 * tree-nested.c (walk_omp_for): New function.
15216 (convert_nonlocal_reference, convert_local_reference): Call
15217 walk_omp_for on OMP_FOR.
15218 (convert_call_expr): Call walk_body on OMP_FOR's
15219 OMP_FOR_PRE_INIT_BODY.
15221 2008-01-25 Richard Guenther <rguenther@suse.de>
15223 PR tree-optimization/34966
15224 * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
15225 default defs and PHI_NODEs we have to insert after the
15226 defining statement.
15228 2008-01-24 Nick Clifton <nickc@redhat.com>
15230 * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
15231 Provide a default definition.
15232 (LIBGCC2_UNITS_PER_WORD): Likewise.
15234 * config/stormy16/stormy16.c: Include df.h for the prototype
15235 for df_regs_ever_live_p.
15236 (xstormy16_expand_builtin_va_start): Convert the stack offset
15237 into a component_ref and then use POINTER_PLUS_EXPR to add it
15238 to the incoming_virtual_args_rtx.
15239 (xstormy16_gimplify_va_arg_expr): Rename to
15240 xstormy16_gimplify_va_arg_expr.
15241 Use POINTER_PLUS_EXPR when performing pointer arithmetic.
15242 (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
15243 xstormy16_gimplify_va_arg_expr.
15244 Fix up some formatting issues.
15246 * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
15247 Move to predicates.md.
15248 (xs_hi_general_operand): Likewise.
15249 (xs_hi_nonmemory_operand): Likewise.
15250 * config/stormy16/predicates.md:
15251 (xstormy16_carry_plus_operand): New predicate.
15252 (xs_hi_general_operand): New predicate.
15253 (xs_hi_nonmemory_operand): New predicate.
15254 * config/stormy16/stormy16-protos.h:
15255 (xstormy16_carry_plus_operand): Delete prototype.
15256 (xs_hi_general_operand): Likewise.
15257 (xs_hi_nonmemory_operand): Likewise.
15259 * config/storm16/stormy16.md (addhi3): Remove earlyclobber
15260 modifiers as they are no longer needed and they can trigger
15261 reload spill failures.
15263 * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
15264 with a match_operand in order to help reload.
15266 * config/storm16/stormy16.md (movhi_internal): Replace 'r'
15267 constraint with 'e' for the 8th alternative as this version of
15268 the mov.w instruction only accepts the lower 8 registers.
15270 2008-01-25 Uros Bizjak <ubizjak@gmail.com>
15273 * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
15274 Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
15277 2008-01-25 Jakub Jelinek <jakub@redhat.com>
15279 PR middle-end/33333
15280 * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
15282 2008-01-25 Golovanevsky Olga <olga@il.ibm.com>
15284 * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
15286 (remove_structure): Update allocations list before removing structure.
15288 2008-01-25 Golovanevsky Olga <olga@il.ibm.com>
15290 * ipa-struct-reorg.c (is_safe_cond_expr,
15291 create_new_stmts_for_cond_expr): Use integer_zerop function,
15292 that recognize not only zero-pointer, but zero-integer too.
15294 2008-01-25 Ben Elliston <bje@au.ibm.com>
15297 * fixproto: Escape "." in sed expression that strips leading "./".
15299 2008-01-24 H.J. Lu <hongjiu.lu@intel.com>
15302 * gcc.c (SWITCH_OK): Removed.
15303 (SWITCH_LIVE): Changed to bit.
15304 (SWITCH_FALSE): Likewise.
15305 (SWITCH_IGNORE): Likewise.
15306 (switchstr): Change live_cond to unsigned int.
15307 (process_command): Replace SWITCH_OK with 0.
15308 (do_self_spec): Likewise.
15309 (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
15310 (give_switch): Likewise.
15311 (used_arg): Likewise.
15312 (do_spec_1): Set the SWITCH_IGNORE bit.
15313 (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
15314 bits. Set the SWITCH_LIVE bit.
15316 2008-01-24 Andreas Krebbel <krebbel1@de.ibm.com>
15318 * config/s390/s390.h (MOVE_RATIO): Define new target macro.
15320 2008-01-24 Richard Sandiford <rsandifo@nildram.co.uk>
15322 PR tree-optimization/34472
15323 * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
15324 parameter to a "bool *" and set *DATA to false if there is
15325 an unsafe access. Do not delete the structure here.
15326 (check_cond_exprs): Delete it here instead.
15327 (check_cond_exprs, exclude_cold_structs): Do not increase
15328 I when removing a structure.
15330 2008-01-24 Uros Bizjak <ubizjak@gmail.com>
15333 * config/i386/i386.c (ix86_expand_vector_init): Consider only
15334 CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
15336 2008-01-24 Jakub Jakub Jelinek <jakub@redhat.com>
15338 PR middle-end/34934
15339 * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
15340 a fixed vector for stack.
15342 2008-01-24 Ben Elliston <bje@au.ibm.com>
15345 * doc/gcc.texi (Software development): Add a direntry for g++.
15347 2008-01-23 Hans-Peter Nilsson <hp@axis.com>
15349 * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
15350 stale and straggling -fforce-addr comments above.
15352 * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
15354 * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
15355 * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
15357 2008-01-23 Michael Matz <matz@suse.de>
15360 * dwarf2out.c (force_type_die): Use modified_type_die instead of
15363 2008-01-23 Andreas Krebbel <krebbel1@de.ibm.com>
15365 * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
15366 malloc result type.
15368 2008-01-23 Anatoly Sokolov <aesok@post.ru>
15370 * config/avr/avr.c (avr_current_arch): New variable.
15371 (avr_arch_types): Add 'avr31' and 'avr51' entries.
15372 (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
15373 (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
15374 (avr_override_options): Init 'avr_current_arch'.
15375 (base_arch_s): Move from here...
15376 * config/avr/avr.h (base_arch_s): ... here. Add new members
15377 'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename
15378 'mega' to 'have_jmp_call'.
15379 (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__",
15380 "__AVR_HAVE_RAMPZ__", "__AVR_HAVE_ELPM__" and "__AVR_HAVE_ELPMX__"
15382 (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51'
15384 * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
15385 MULTILIB_MATCHES): (Ditto.).
15387 2008-01-23 Richard Guenther <rguenther@suse.de>
15389 PR middle-end/31529
15390 * cgraphunit.c (cgraph_reset_node): Always mark the node
15391 not reachable if it is not queued already.
15393 2008-01-23 Bernd Schmidt <bernd.schmidt@analog.com>
15395 * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
15396 * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
15397 (cputype_selected): New static variable.
15398 (bfin_handle_option): Set it if -mcpu is used.
15399 (override_option): Select default set of workarounds if no cpu type
15400 selected on the command line.
15401 (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
15403 From Michael Frysinger <michael.frysinger@analog.com>
15404 * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
15405 BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
15407 * config/bfin/elf.h (LIB_SPEC): Use proper linker script
15408 for bf547, bf523, bf524, and bf526.
15409 * config/bfin/bfin.c (bfin_cpus[]): Add bf547, bf523, bf524, and
15411 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
15412 __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
15413 __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
15414 __ADSPBF547__ and __ADSPBF54x__ for bf547.
15415 * doc/invoke.texi (Blackfin Options): Document that
15416 -mcpu now accept bf547, bf523, bf524, and bf526.
15418 2008-01-22 Eric Botcazou <ebotcazou@adacore.com>
15420 PR rtl-optimization/34628
15421 * combine.c (try_combine): Stop and undo after the first combination
15422 if an autoincrement side-effect on the first insn has effectively
15425 2008-01-22 David Edelsohn <edelsohn@gnu.org>
15428 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
15429 Offset addresses are not valid for Altivec or paired float modes.
15431 2008-01-22 Jakub Jelinek <jakub@redhat.com>
15434 * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
15435 if DECL_INITIAL (decl) is error_mark_node.
15438 * c-common.c (handle_vector_size_attribute): Only allow
15439 integral, scalar float and fixed point types. Handle OFFSET_TYPE
15440 the same way as pointer, array etc. types.
15441 * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
15444 * tree.c (build_type_attribute_qual_variant): Call
15445 build_qualified_type if attributes are equal, but quals are not.
15447 2008-01-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
15450 * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
15451 * flags.h (warn_strict_aliasing): Remove.
15452 (warn_strict_overflow): Remove.
15453 * opts.c (warn_strict_aliasing): Remove.
15454 (warn_strict_overflow): Remove.
15455 * c-opts.c (c_common_handle_option): -Wall only sets
15456 -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
15457 (c_common_post_options): Give default values to -Wstrict-aliasing
15458 and -Wstrict-overflow if they are uninitialized.
15459 * common.opt (Wstrict-aliasing): Specify Var and Init.
15460 (Wstrict-overflow): Likewise.
15462 2008-01-22 Kenneth Zadeck <zadeck@naturalbridge.com>
15464 PR rtl-optimization/26854
15465 PR rtl-optimization/34400
15466 PR rtl-optimization/34884
15467 * ddg.c (create_ddg_dep_from_intra_loop_link): Use
15469 * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
15470 (df_rd_bb_info.expanded_lr_out): Deleted
15471 * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
15472 * loop_iv.c (iv_analysis_loop_init): Ditto. * df-problems.c
15473 (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
15474 df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
15475 Removed code to allocate, initialize or free expanded_lr_out.
15476 (df_rd_bb_local_compute_process_def): Restructured to make more
15478 (df_rd_confluence_n): Removed code to no apply invalidate_by_call
15479 sets if the sets are being trimmed.
15481 2008-01-22 H.J. Lu <hongjiu.lu@intel.com>
15484 * configure.ac (ld_vers): Support GNU linker version xx.xx.*
15485 (as_vers): Likewise.
15486 * configure: Regenerated.
15488 2008-01-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
15490 PR middle-end/33092
15491 * tree-pass.h (pass_build_alias): New pass.
15492 * tree-ssa-alias.c (gate_build_alias): New.
15493 (pass_build_alias): New.
15494 * passes.c (init_optimization_passes): Add pass_build_alias after
15495 pass_create_structure_vars.
15497 2008-01-22 Wolfgang Gellerich <gellerich@de.ibm.com>
15499 * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
15500 Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
15501 (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
15502 S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
15503 (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
15504 S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
15505 (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
15506 S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
15507 (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
15508 (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
15509 (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
15510 (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
15511 * config/s390/s390.md (FP_ALL): New mode iterator.
15512 (_d): New mode attribute.
15513 ("*signbit<mode>2>"): Changed mode of first operand.
15514 ("isinf<mode>2"): Changed mode of first operand.
15515 ("*TDC_insn"): Adaptation for DFP modes.
15517 2008-01-22 Ben Elliston <bje@au.ibm.com>
15519 * tree.c (check_qualified_type): Improve function description.
15521 2008-01-21 Jason Merrill <jason@redhat.com>
15524 * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
15525 * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
15528 2008-01-21 DJ Delorie <dj@redhat.com>
15530 * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
15533 2008-01-21 Richard Guenther <rguenther@suse.de>
15535 PR middle-end/34856
15536 * tree-cfg.c (verify_expr): Allow all invariant expressions
15537 instead of just constant class ones as reference argument.
15538 * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
15539 like any other constant.
15540 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
15542 2008-01-21 H.J. Lu <hongjiu.lu@intel.com>
15544 * regmove.c (fixup_match_1): Update call crossed frequencies.
15546 2008-01-21 Richard Guenther <rguenther@suse.de>
15549 * tree-inline.c (setup_one_parameter): Deal with mismatched
15550 types using a VIEW_CONVERT_EXPR.
15552 2008-01-21 Alon Dayan <alond@il.ibm.com>
15553 Olga Golovanevsky <olga@il.ibm.com>
15555 PR tree-optimization/34701
15556 * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
15557 when the structure size is not a power of 2.
15559 2008-01-20 Kenneth Zadeck <zadeck@naturalbridge.com>
15561 * doc/install.texi: Add doc for --enable-checking=df.
15563 2008-01-20 Kaz Kojima <kkojima@gcc.gnu.org>
15565 PR rtl-optimization/34808
15566 * emit-rtl.c (try_split): Handle REG_RETVAL notes.
15568 2008-01-20 Richard Sandiford <rsandifo@nildram.co.uk>
15570 * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
15573 2008-01-19 Kenneth Zadeck <zadeck@naturalbridge.com>
15575 PR rtl-optimization/26854
15576 PR rtl-optimization/34400
15577 * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
15579 * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
15580 (df_rd_bb_info.expanded_lr_out): New.
15581 * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
15582 * loop_iv.c (iv_analysis_loop_init): Ditto.
15583 * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
15584 df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
15585 Added code to allocate, initialize or free expanded_lr_out.
15586 (df_rd_bb_local_compute_process_def): Restructured to make
15587 more understandable.
15588 (df_rd_confluence_n): Add code to do nothing with fake edges and
15589 code to no apply invalidate_by_call sets if the sets are being trimmed.
15590 (df_lr_local_finalize): Renamed to df_lr_finalize.
15591 (df_live_local_finalize): Renamed to df_live_finalize.
15593 2008-01-20 Richard Sandiford <rsandifo@nildram.co.uk>
15596 * config/mips/mips.md (div<mode>3): Use <recip_condition> when
15597 deciding whether to use reciprocal instructions.
15599 2008-01-19 Uros Bizjak <ubizjak@gmail.com>
15601 * dwarf2out.c (dwarf2out_switch_text_section): Do not call
15602 dwarf2out_note_section_used if cold_text_section is NULL.
15604 2008-01-19 Jakub Jelinek <jakub@redhat.com>
15606 PR gcov-profile/34610
15607 * tree-cfg.c (make_edges): Mark both outgoing edges from
15608 OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
15609 * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
15610 from OMP_FOR and OMP_CONTINUE outgoing edges.
15612 * tree-profile.c (tree_profiling): Return early if
15613 cfun->after_tree_profile != 0. Set cfun->after_tree_profile
15615 * omp-low.c (expand_omp_parallel): Copy after_tree_profile
15616 from cfun to child_cfun.
15617 * function.h (struct function): Add after_tree_profile bit.
15619 2008-01-19 Anatoly Sokolov <aesok@post.ru>
15621 * config/avr/avr.S (_exit): Disable interrupt.
15623 2008-01-18 Kenneth Zadeck <zadeck@naturalbridge.com>
15624 Steven Bosscher <stevenb.gcc@gmail.com>
15626 PR rtl-optimization/26854
15627 PR rtl-optimization/34400
15628 * df-problems.c (df_live_scratch): New scratch bitmap.
15629 (df_live_alloc): Allocate df_live_scratch when doing df_live.
15630 (df_live_reset): Clear the proper bitmaps.
15631 (df_live_bb_local_compute): Only process the artificial defs once
15632 since the order is not important.
15633 (df_live_init): Init the df_live sets only with the variables
15634 found live by df_lr.
15635 (df_live_transfer_function): Use the df_lr sets to prune the
15636 df_live sets as they are being computed.
15637 (df_live_free): Free df_live_scratch.
15639 2008-01-18 Ian Lance Taylor <iant@google.com>
15641 * common.opt: Add fmerge-debug-strings.
15642 * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
15643 flag_merge_debug_strings rather than flag_merge_constants.
15644 * doc/invoke.texi (Option Summary): Mention
15645 -fmerge-debug-strings.
15646 (Debugging Options): Document -fmerge-debug-strings.
15648 2008-01-18 Ian Lance Taylor <iant@google.com>
15651 * tree.h (DECL_IS_OPERATOR_NEW): Define.
15652 (struct tree_function_decl): Add new field operator_new_flag.
15653 * tree-inline.c (expand_call_inline): When inlining a call to
15654 operator new, force the return value to go into a variable, and
15655 set DECL_NO_TBAA_P on that variable.
15656 * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
15658 2008-01-18 Uros Bizjak <ubizjak@gmail.com>
15661 * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
15662 DWARF2_DEBUGGING_INFO.
15663 (dwarf2out_note_section_used): Ditto. Add prototype.
15664 (have_multiple_function_sections, text_section_used,
15665 cold_text_section_used, *cold_text_sections): Move declarations
15668 2008-01-17 Bob Wilson <bob.wilson@acm.org>
15670 * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
15671 field and add signal_ra.
15672 * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
15673 assignments to frame state pc. Move end of stack check after
15674 MD_FALLBACK_FRAME_STATE_FOR.
15675 (uw_update_context_1): Use frame state signal_regs if set, instead
15676 of checking signal_frame flag.
15677 (uw_update_context): Use frame state signal_ra if set.
15678 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
15679 * config/xtensa/linux-unwind.h: New file.
15681 2008-01-18 Bernhard Fischer <aldot@gcc.gnu.org>
15683 * modulo-sched.c (get_sched_window): Fix comment typo.
15685 2008-01-17 Andrew MacLeod <amacleod@redhat.com>
15687 PR tree-optimization/34648
15688 * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
15690 2008-01-17 Anatoly Sokolov <aesok@post.ru>
15692 * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
15693 * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
15695 2008-01-17 Seongbae Park <seongbae.park@gmail.com>
15697 PR rtl-optimization/34400
15698 * df-core.c (df_worklist_dataflow_overeager,
15699 df_worklist_dataflow_doublequeue): New functions.
15700 (df_worklist_dataflow): Two different worklist solvers.
15701 * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
15704 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
15707 * doc/invoke.texi: Document the dependence on pthread for fopenmp
15708 and ftree-parallelize-loops.
15710 2008-01-17 Mircea Namolaru <namolaru@il.ibm.com>
15712 PR rtl-optimization/34826
15713 * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
15715 2008-01-17 Andreas Krebbel <krebbel1@de.ibm.com>
15717 * global.c (find_reg): Mark the eh regs as used if necessary.
15718 * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
15719 * ra.h (struct allocno): no_eh_reg field added. Changed
15720 no_stack_reg type to bitfield.
15722 2008-01-17 Eric Botcazou <ebotcazou@adacore.com>
15724 * tree.c (substitute_in_expr): Add missing 'break'.
15726 2008-01-17 Richard Guenther <rguenther@suse.de>
15728 PR tree-optimization/34825
15729 * tree-ssa-math-opts.c (is_division_by): Do not recognize
15730 x / x as division to handle.
15732 2008-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15734 * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
15735 "-pthread" is specified.
15736 * pa-hpux11.h (LIB_SPEC): Likewise.
15738 2008-01-16 Janis Johnson <janis187@us.ibm.com>
15739 Peter Bergner <bergner@vnet.ibm.com>
15741 PR rtl-optimization/33796
15742 * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
15744 2008-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15746 PR libgfortran/34699
15747 * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
15749 * pa-hpux10.h (LINK_SPEC): Likewise.
15750 * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
15752 2008-01-16 Richard Guenther <rguenther@suse.de>
15754 PR middle-end/32628
15755 * fold-const.c (fold_convert_const_int_from_int): Do not
15756 set overflow if that occured only because of a sign extension
15757 change when converting from/to a sizetype with the same
15758 precision and signedness.
15760 2008-01-16 Uros Bizjak <ubizjak@gmail.com>
15763 * dwarf2out.c (output_call_frame_info): Move output of FDE initial
15764 location address to the correct place. Update copyright year.
15766 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
15768 * lambda-code.c (lambda_transform_legal_p): Handle the case of
15769 no dependences in the dependence_relations vector.
15771 2008-01-16 Jan Hubicka <jh@suse.cz>
15773 PR rtl-optimization/31396
15774 * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
15775 * cfg.c (dump_reg_info): Print it.
15776 * regs.h (struct reg_info_t): add freq_calls_crossed.
15777 (REG_FREQ_CALLS_CROSSED): New macro.
15778 * global.c (global_alloc): Compute freq_calls_crossed for allocno.
15779 (find_reg): Update call of CALLER_SAVE_PROFITABLE.
15780 * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
15781 regmove_optimize): Update call crossed frequencies.
15782 * local-alloc.c (struct qty): Add freq_calls_crossed.
15783 (alloc_qty): Copute freq_calls_crossed.
15784 (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
15785 (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
15786 * ra.h (struct allocno): Add freq_calls_crossed.
15788 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
15790 * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
15791 libgomp when compiling with ftree-parallelize-loops.
15792 (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
15794 2008-01-16 Richard Guenther <rguenther@suse.de>
15796 PR tree-optimization/34769
15797 * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
15798 * tree.c (int_cst_value): Instead make this function more
15799 permissive in what it accepts as valid input. Document this
15800 function always sign-extends the value.
15802 2008-01-16 Jakub Jelinek <jakub@redhat.com>
15803 Richard Guenther <rguenther@suse.de>
15806 * gimplify.c (fold_indirect_ref_rhs): Rename to ...
15807 (gimple_fold_indirect_ref_rhs): ... this.
15808 (gimple_fold_indirect_ref): New function with foldings
15809 that preserve lvalueness.
15810 (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
15811 * tree-flow.h (gimple_fold_indirect_ref): Declare.
15812 * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
15813 to fold an INDIRECT_REF, fall back to the old use of
15814 fold_indirect_ref_1.
15816 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
15818 * tree-data-ref.c (subscript_dependence_tester_1): Call
15819 free_conflict_function.
15820 (compute_self_dependence): Same.
15822 2008-01-16 Uros Bizjak <ubizjak@gmail.com>
15825 * debug.h (dwarf2out_switch_text_section): Move declaration from ...
15826 * dwarf2out.c (dwarf2out_switch_text_section): ... here. Make
15828 * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
15829 Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
15830 for DWARF2_UNWIND_INFO targets.
15832 2008-01-16 Richard Guenther <rguenther@suse.de>
15835 * c-typeck.c (common_pointer_type): Do not merge inconsistent
15836 type qualifiers for function types.
15838 2008-01-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
15840 * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
15841 loop_iterator li from previous commit.
15843 2008-01-15 Sebastian Pop <sebastian.pop@amd.com>
15845 * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
15847 2008-01-12 Sebastian Pop <sebastian.pop@amd.com>
15849 * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
15850 (parallelize_loops): Don't parallelize irreducible components.
15852 2008-01-14 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
15855 * c-opts (c_common_post_options): Do not enable CPP
15856 flag_pedantic_errors by default.
15858 2008-01-14 Eric Botcazou <ebotcazou@adacore.com>
15860 PR rtl-optimization/31944
15861 * cse.c (remove_pseudo_from_table): New function.
15862 (merge_equiv_classes): Use above function to remove pseudo-registers.
15863 (invalidate): Likewise.
15865 2008-01-13 Richard Guenther <rguenther@suse.de>
15867 PR middle-end/34601
15868 * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
15869 instead of TYPE_MODE to deal with calls from expand_one_error_var.
15871 2008-01-13 Uros Bizjak <ubizjak@gmail.com>
15873 * gcse.c (cprop_jump): Call validate_unshare_change instead of
15874 validate_change to unshare the source of the PC set.
15876 2008-01-12 Jan Hubicka <jh@suse.cz>
15878 PR middle-end/32135
15879 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
15880 references above array bounds. This might trigger bounds checks for
15881 pointers to arrays.
15883 2008-01-12 Sebastian Pop <sebastian.pop@amd.com>
15885 * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
15886 new_replaceable_dependencies.
15888 2008-01-12 Doug Kwan <dougkwan@google.com>
15890 * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
15891 instead of OPT_Wreturn_type in warning due to ignored return type
15893 * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
15894 options included in -Wextra.
15895 * c.opt: New option -Wignored_qualifiers.
15896 * doc/invoke.texi (Warning Options, -Wextra): Add new option
15897 -Wignore_qualifiers.
15898 (-Wignored-qualifiers): Document.
15899 (-Wreturn-type): Remove description of functionality now handled
15900 by -Wignored-qualifiers.
15902 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
15905 * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
15906 NOP_EXPR if it is between integral types with the same precision.
15908 2008-01-12 Jan Hubicka <jh@suse.cz>
15911 * invoke.texi (max-inline-recursive-depth): Fix default value.
15913 2008-01-12 Zdenek Dvorak <ook@ucw.cz>
15915 * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
15918 2008-01-11 Bob Wilson <bob.wilson@acm.org>
15920 * config/xtensa/xtensa.c (override_options): Set flag_shlib.
15922 2008-01-11 James E. Wilson <wilson@specifix.com>
15925 * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
15927 2008-01-11 Anatoly Sokolov <aesok@post.ru>
15929 * config/avr/avr.c (expand_prologue, expand_epilogue): Don't
15930 save/restore frame pointer register and don't use 'call-prologues'
15931 optimization in function with "OS_task" attribute.
15933 2008-01-11 Eric Botcazou <ebotcazou@adacore.com>
15935 PR middle-end/31309
15936 * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
15937 when copying to memory.
15939 2008-01-11 Steven Bosscher <stevenb.gcc@gmail.com>
15941 PR rtl-optimization/30905
15942 * cfgcleanup.c: Include dce.h
15943 (crossjumps_occured): New global variable.
15944 (try_crossjump_bb): Exit loop after finding a fallthru edge.
15945 If something changed, set crossjumps_occured to true.
15946 (try_optimize_cfg): Clear crossjumps_occured at the beginning.
15947 Don't add/remove fake edges to exit here...
15948 (cleanup_cfg): ...but do it here, when crossjumping.
15949 Run a fast DCE when successful crossjumps occured in the latest
15950 iteration of try_optimize_cfg.
15952 2008-01-11 Richard Guenther <rguenther@suse.de>
15954 * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
15955 (struct vn_unary_op_s): Likewise.
15956 (vn_reference_insert): Free old reference on hash collision.
15958 2008-01-10 Raksit Ashok <raksit@google.com>
15960 PR rtl-optimization/27971
15961 * combine.c (find_split_point): Split PLUS expressions which are
15962 inside a MEM rtx, and whose first operand is complex.
15964 2008-01-10 DJ Delorie <dj@redhat.com>
15966 * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
15967 (m32c_hard_regno_nregs): ...this, which is now a wrapper.
15968 (m32c_hard_regno_ok): Call the underlying function.
15970 2008-01-10 Richard Guenther <rguenther@suse.de>
15972 PR middle-end/34683
15973 * tree-cfg.c (tree_merge_blocks): Do not go through the
15974 full-blown folding and stmt updating path if we just deal
15975 with virtual operands.
15976 * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
15977 test for abnormal SSA_NAMEs.
15979 2008-01-10 Andreas Krebbel <krebbel1@de.ibm.com>
15981 PR middle-end/34641
15982 * reload.c (push_reload): Add assertions. All constants from
15983 reg_equiv_constant should have been used for replacing the respective
15985 (find_reloads_address): Invoke find_reloads_address_part for
15986 constant taken from the reg_equiv_constant array.
15988 2008-01-10 Steven Bosscher <stevenb.gcc@gmail.com>
15990 * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
15991 field (valnum) the first in the struct. Replace bools with
15994 2008-01-10 Richard Guenther <rguenther@suse.de>
15996 PR tree-optimization/34651
15997 * tree-sra.c (sra_build_assignment): Sanitize. Use the correct
15998 types and ordering for masking and converting.
16000 2008-01-09 Sebastian Pop <sebastian.pop@amd.com>
16002 PR tree-optimization/34017
16003 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
16004 also for PHI_NODE expressions.
16006 2008-01-09 Jan Hubicka <jh@suse.cz>
16008 PR tree-optimization/34708
16009 * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
16010 based on number of case labels.
16011 (init_inline_once): Remove switch_cost.
16012 * tree-inline.h (eni_weights_d): Remove switch_cost.
16014 2008-01-09 Richard Guenther <rguenther@suse.de>
16015 Andrew Pinski <andrew_pinski@playstation.sony.com>
16017 PR middle-end/30132
16018 * gimplify.c (gimplify_cond_expr): Do not create an addressable
16019 temporary if an rvalue is ok or an lvalue is not required.
16021 2008-01-09 Richard Guenther <rguenther@suse.de>
16023 PR middle-end/34458
16024 * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
16025 adjust return type.
16027 2008-01-09 Richard Guenther <rguenther@suse.de>
16029 PR middle-end/34679
16030 * tree.c (host_integerp): Check for sizetype only if the
16031 type is an integer type.
16033 2008-01-09 Steven Bosscher <stevenb.gcc@gmail.com>
16036 * opts.c (decode_options): Disable inlining of functions called
16037 once if not in unit-at-a-time mode.
16039 2008-01-09 Alexandre Oliva <aoliva@redhat.com>
16041 * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
16043 2008-01-08 Richard Guenther <rguenther@suse.de>
16045 PR middle-end/31863
16046 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
16047 out early if the result will be unused.
16049 2008-01-08 Uros Bizjak <ubizjak@gmail.com>
16054 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
16055 * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
16058 2008-01-08 Jan Sjodin <jan.sjodin@amd.com>
16060 * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
16061 for vectorization tuned.
16063 2008-01-08 Richard Guenther <rguenther@suse.de>
16065 PR tree-optimization/34683
16066 * tree-ssa-operands.c (operand_build_cmp): Export.
16067 * tree-ssa-operands.h (operand_build_cmp): Declare.
16068 * tree-vn.c (vuses_compare): Remove.
16069 (sort_vuses): Use operand_build_cmp.
16070 (sort_vuses_heap): Likewise.
16071 * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
16072 to re-use old VEC if available. Do not sort already sorted VUSEs.
16073 (vdefs_to_vec): Do not sort already sorted VDEFs.
16075 2008-01-08 Jakub Jelinek <jakub@redhat.com>
16077 PR middle-end/34694
16078 * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
16080 2008-01-08 Uros Bizjak <ubizjak@gmail.com>
16083 * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
16084 limitations of reciprocal sequences on x86 targets.
16086 2008-01-08 Richard Guenther <rguenther@suse.de>
16088 PR tree-optimization/34683
16089 * tree-flow-inline.h (var_ann): Remove overzealous asserts.
16091 2008-01-07 Jakub Jelinek <jakub@redhat.com>
16094 * config/darwin.c (darwin_mergeable_string_section): Don't use
16095 .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
16097 2008-01-07 Uros Bizjak <ubizjak@gmail.com>
16100 * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
16101 negxf2. Macroize expander using X87MODEF mode iterator. Change
16102 predicates of op0 and op1 to register_operand.
16103 (abs<mode>2): Rename from abssf2, absdf2 and negxf2. Macroize
16104 expander using X87MODEF mode iterator. Change predicates of
16105 op0 and op1 to register_operand.
16106 ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
16107 corresponding patterns and macroize using MODEF macro. Change
16108 predicates of op0 and op1 to register_operand and remove
16109 "m" constraint. Disparage "r" alternative with "!".
16110 ("*absneg<mode>2_i387"): Rename from corresponding patterns and
16111 macroize using X87MODEF macro. Change predicates of op0 and op1
16112 to register_operand and remove "m" constraint. Disparage "r"
16113 alternative with "!".
16114 (absneg splitter with memory operands): Remove.
16115 ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
16116 patterns and macroize using X87MODEF mode iterator.
16117 * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
16118 Change predicate of op1 to register_operand.
16119 * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
16120 for memory operands.
16122 2008-01-07 Nathan Froyd <froydnj@codesourcery.com>
16124 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
16126 2008-01-07 Richard Guenther <rguenther@suse.de>
16128 * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
16131 2008-01-07 Richard Guenther <rguenther@suse.de>
16133 PR tree-optimization/34683
16134 * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
16135 VOPs of the needed size to save memory. Use VEC_quick_push
16136 to save compile-time.
16137 (vdefs_to_vec): Likewise.
16139 2008-01-07 Sa Liu <saliu@de.ibm.com>
16141 * config/spu/spu.md (divdf3): Genetate inline code for double
16142 division. The implementation doesn't handle INF or NAN, therefore it
16143 only applies when -ffinite-math-only is given.
16145 2008-01-06 Paolo Carlini <pcarlini@suse.de>
16148 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
16149 * doc/cpp.texi ([Common Predefined Macros]): Document.
16151 2008-01-06 Uros Bizjak <ubizjak@gmail.com>
16153 * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
16154 order to use commutative addition instead of subtraction.
16156 2008-01-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
16157 Mircea Namolaru <namolaru@il.ibm.com>
16158 Vladimir Yanovsky <yanov@il.ibm.com>
16159 Revital Eres <eres@il.ibm.com>
16161 PR tree-optimization/34263
16162 * tree-outof-ssa.c (process_single_block_loop_latch,
16163 contains_tree_r): New functions.
16164 (analyze_edges_for_bb): Call process_single_block_loop_latch
16165 function to empty single-basic-block latch block if possible.
16167 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
16169 * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
16171 (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
16173 2008-01-05 Richard Sandiford <rsandifo@nildram.co.uk>
16175 * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
16177 2008-01-05 Richard Sandiford <rsandifo@nildram.co.uk>
16179 * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
16181 2008-01-05 Jakub Jelinek <jakub@redhat.com>
16183 PR tree-optimization/34618
16184 * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
16187 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
16190 * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
16191 in the call to gen_rtx_NE. Remove unneeded VECTOR_MODE_P check.
16192 Update copyright year.
16194 * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
16195 Update copyright year.
16196 * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
16199 2008-01-05 Zhouyi Zhou <zhouzhouyi@FreeBSD.org>
16201 * tree-vrp.c (find_conditional_asserts): Remove redundant check that
16202 edge does not point to current bb before changing need_assert.
16204 2008-01-04 Richard Guenther <rguenther@suse.de>
16206 PR middle-end/34029
16207 * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
16208 for verifying purposes if they are is_gimple_min_invariant.
16210 2008-01-04 Aldy Hernandez <aldyh@redhat.com>
16212 PR tree-optimization/34448
16213 PR tree-optimization/34465
16214 * gimplify.c (gimplify_init_constructor): Add new parameter
16215 notify_temp_creation. Use it.
16216 (gimplify_modify_expr_rhs): Take volatiles into account when
16217 optimizing constructors.
16218 Do not optimize constructors if gimplify_init_constructor will dump to
16220 * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
16221 * gcc.c-torture/compile/pr34448.c: New.
16223 2008-01-04 Jakub Jelinek <jakub@redhat.com>
16225 PR gcov-profile/34609
16226 * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
16227 return_slot if result is TREE_ADDRESSABLE.
16229 2008-01-04 Richard Sandiford <rsandifo@nildram.co.uk>
16231 * config/mips/mips.md (sqrt_condition): Tweak comment.
16232 (recip_condition): Likewise. Require TARGET_FLOAT64 for DFmode.
16234 2008-01-03 Tom Tromey <tromey@redhat.com>
16237 * c-common.c (c_type_hash): Handle VLAs.
16239 2008-01-03 Jan Hubicka <jh@suse.cz>
16241 PR tree-optimization/31081
16242 * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
16243 0 when inlining and not inlining to first basic block.
16244 (remap_decl): When var is initialized to 0, don't set default_def.
16245 (expand_call_inline): Set entry_bb.
16246 * tree-inline.h (copy_body_data): Add entry_bb.
16248 2008-01-03 Jakub Jelinek <jakub@redhat.com>
16251 * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
16254 PR tree-optimization/29484
16255 * tree-inline.c (inline_forbidden_p_2): New function.
16256 (inline_forbidden_p): Disallow inlining if some static var
16257 has an address of a local LABEL_DECL in its initializer.
16258 * doc/extend.texi (Labels as Values): Document &&foo behaviour
16261 2008-01-03 Sebastian Pop <sebastian.pop@amd.com>
16263 PR tree-optimization/34635
16264 * tree-data-ref.c (add_other_self_distances): Make sure that the
16265 evolution step is constant.
16267 2008-01-03 Jakub Jelinek <jakub@redhat.com>
16269 PR middle-end/34608
16270 * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
16272 2008-01-02 Richard Sandiford <rsandifo@nildram.co.uk>
16274 * tree-sra.c (scalarize_init): Insert the generate_element_init
16275 statements after the generate_element_zero statements.
16277 2008-01-02 Richard Guenther <rguenther@suse.de>
16279 PR middle-end/34093
16280 PR middle-end/31976
16281 * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
16282 for very large number of operands instead of ICEing.
16284 2008-01-02 Arthur Norman <acn1@cam.ac.uk>
16287 * config/i386/i386.c (ix86_expand_prologue): Save red-zone
16288 while stack probing.
16290 2008-01-01 Douglas Gregor <doug.gregor@gmail.com>
16292 * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
16295 2008-01-01 Volker Reichelt <v.reichelt@netcologne.de>
16297 PR libmudflap/26442
16298 * tree-mudflap.c (mx_register_decls): Guard warning by
16299 !DECL_ARTIFICIAL check.
16301 2008-01-01 Jakub Jelinek <jakub@redhat.com>
16303 * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
16304 sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
16305 sse5_perm<mode>): Fix constraints.