2944d20b64d7436808b207ef1bb0c37584a94096
[gcc.git] / gcc / ChangeLog
1 2008-03-01 Richard Guenther <rguenther@suse.de>
2
3 PR tree-optimization/35411
4 * tree-sra.c (sra_build_assignment): Split conversion to
5 final type to a separate statement if we are not assigning
6 to a register.
7
8 2008-02-29 Francois-Xavier Coudert <coudert@clipper.ens.fr>
9
10 * fold-const.c (fold_convertible_p): Correct the logic to follow
11 that in fold_convert().
12
13 2008-02-29 Douglas Gregor <doug.gregor@gmail.com>
14
15 PR c++/35315
16 * tree-inline.c (build_duplicate_type): When we make a
17 duplicate type, make it unique in the canonical types system.
18
19 2008-02-29 Tom Tromey <tromey@redhat.com>
20
21 * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
22 input_file_stack_history, input_file_stack_restored): Remove.
23 (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
24 * input.h (struct file_stack): Remove.
25 (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
26 (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
27 Likewise.
28 * diagnostic.h (struct diagnostic_context) <last_module>: Change
29 type.
30 (diagnostic_last_module_changed): Add 'map' argument.
31 (diagnostic_set_last_function): Likewise.
32 * diagnostic.c (undiagnostic_report_current_module): Iterate using
33 line map, not input_file_stack.
34 * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
35
36 2008-02-29 Paul Brook <paul@codesourcery.com>
37
38 * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
39
40 2008-02-29 Paul Brook <paul@codesourcery.com>
41
42 * config/arm/ieee754-df.S (muldf3): Use RET macros.
43
44 2008-02-29 Richard Guenther <rguenther@suse.de>
45
46 * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
47 vn_lookup_or_add.
48 * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
49 value for comparing for a store match.
50 (simplify_unary_expression): Do nothing for SSA_NAMEs.
51 (try_to_simplify): Do not do a full-blown reference lookup.
52
53 2008-02-29 Kaz Kojima <kkojima@gcc.gnu.org>
54
55 * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
56 (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
57
58 * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
59
60 2008-02-29 Sebastian Pop <sebastian.pop@amd.com>
61
62 * tree-loop-linear.c (try_interchange_loops): Compare memory access
63 strides against cache sizes.
64
65 2008-02-29 Kaz Kojima <kkojima@gcc.gnu.org>
66
67 * config/sh/sh.c (sh_secondary_reload): Handle loading a float
68 constant to fpul.
69
70 2008-02-28 Richard Sandiford <rsandifo@nildram.co.uk>
71
72 * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
73 of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
74 is smaller than the original promoted value.
75 (simplify_subreg): If OP is a SUBREG, try to preserve its
76 SUBREG_PROMOTED_VAR_P information.
77
78 2008-02-28 Steven Bosscher <stevenb.gcc@gmail.com>
79
80 * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
81 (VN_INFO_GET): Allocate new objects on the obstack.
82 (init_scc_vn): Initialize the obstack. Use XDELETE instead of free
83 for rpo_numbers_temp, for consistency.
84 (free_scc_vn): Free the obstack.
85
86 2008-02-28 Sebastian Pop <sebastian.pop@amd.com>
87
88 * doc/invoke.texi: Document -ftree-loop-distribution.
89 * tree-loop-distribution.c: New.
90 * tree-pass.h (pass_loop_distribution): New.
91 * graphds.h (struct graph): Add htab_t indices.
92 * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
93 * tree-vectorizer.c (rename_variables_in_loop): Extern.
94 (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
95 * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
96 * tree-data-ref.c (debug_data_dependence_relations): New.
97 (dump_data_dependence_relation): Also print data references.
98 (free_data_ref): Extern.
99 (same_access_functions): Moved...
100 (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
101 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
102 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
103 struct rdg_vertex_info, rdg_vertex_for_stmt): New.
104 (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
105 (stmts_from_loop): Skip LABEL_EXPR.
106 (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del): New.
107 (build_rdg): Initialize rdg->indices htab.
108 (free_rdg, stores_from_loop, ref_base_address,
109 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
110 have_similar_memory_accesses_1, ref_base_address_1,
111 remove_similar_memory_refs): New.
112 * tree-data-ref.h: Depend on tree-chrec.h.
113 (debug_data_dependence_relations, free_data_ref): Declared.
114 (same_access_functions): ... here.
115 (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level): New.
116 (struct rdg_vertex): Add has_mem_write and has_mem_reads.
117 (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
118 RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
119 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
120 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
121 rdg_vertex_for_stmt): Declared.
122 (struct rdg_edge): Add level.
123 (RDGE_LEVEL): New.
124 (free_rdg, stores_from_loop, remove_similar_memory_refs,
125 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses): Declared.
126 (rdg_has_similar_memory_accesses): New.
127 * tree-vect-analyze.c: Remove unused static decls.
128 * lambda.h (dependence_level): New.
129 * common.opt (ftree-loop-distribution): New.
130 * tree-flow.h (mark_virtual_ops_in_bb,
131 slpeel_tree_duplicate_loop_to_edge_cfg,
132 rename_variables_in_loop): Declared.
133 * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
134 (OBJS-common): Add tree-loop-distribution.o.
135 (tree-loop-distribution.o): New rule.
136 * tree-cfg.c (mark_virtual_ops_in_bb): New.
137 (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
138 * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
139
140 2008-02-28 Joseph Myers <joseph@codesourcery.com>
141
142 PR target/33963
143 * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
144 other than structures and unions.
145
146 2008-02-28 Richard Guenther <rguenther@suse.de>
147
148 Revert:
149 2008-02-26 Richard Guenther <rguenther@suse.de>
150
151 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
152 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
153 (lookup_decl_from_uid): Declare.
154 (remove_decl_from_map): Likewise.
155 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
156 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
157 (decl_for_uid_map): New global hashtable mapping DECL_UID
158 to the decl tree.
159 (init_ttree): Allocate it.
160 (insert_decl_to_uid_decl_map): New helper function.
161 (make_node_stat): Insert new decls into the map.
162 (copy_node_stat): Likewise.
163 (lookup_decl_from_uid): New function.
164 (remove_decl_from_map): Likewise.
165 (print_decl_for_uid_map_statistics): New helper.
166 (dump_tree_statistics): Call it.
167
168 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
169 (referenced_var_iterator): Adjust.
170 (FOR_EACH_REFERENCED_VAR): Adjust.
171 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
172 (num_referenced_vars): Adjust.
173 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
174 (first_referenced_var): Remove.
175 (end_referenced_vars_p): Likewise.
176 (next_referenced_var): Likewise.
177 (referenced_var_iterator_set): New helper function.
178 * tree-dfa.c (referenced_var_lookup): Adjust.
179 (referenced_var_check_and_insert): Likewise.
180 (remove_referenced_var): Likewise.
181 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
182 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
183 (verify_call_clobbering): Likewise.
184 (verify_memory_partitions): Likewise.
185 (init_tree_ssa): Allocate bitmap instead of hashtable for
186 referenced_vars.
187 (delete_tree_ssa): Adjust.
188 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
189 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
190 (compute_tag_properties): Likewise.
191 (set_initial_properties): Likewise.
192 (find_partition_for): Likewise.
193 (update_reference_counts): Likewise.
194 (dump_may_aliases_for): Likewise.
195 * tree-ssa-operands.c (add_virtual_operand): Likewise.
196 (add_call_clobber_ops): Likewise.
197 (add_call_read_ops): Likewise.
198 (get_asm_expr_operands): Likewise.
199 * tree-into-ssa.c (dump_decl_set): Likewise.
200 (update_ssa): Likewise.
201 * tree-sra.c (scan_function): Likewise.
202 (decide_instantiations): Likewise.
203 (scalarize_parms): Likewise.
204 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
205 (dsa_named_for): Likewise.
206 * tree-ssa-structalias.c (update_alias_info): Likewise.
207 (merge_smts_into): Likewise.
208
209 2008-02-27 David Daney <ddaney@avtrex.com>
210
211 PR target/34409
212 * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
213 * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
214 * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
215 * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
216 * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
217
218 2008-02-27 Uros Bizjak <ubizjak@gmail.com>
219
220 PR target/25477
221 * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
222 (BUILT_IN_NEXTTOWARD): Remove.
223 (BUILT_IN_NEXTTOWARDF): Ditto.
224 * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
225 alloca/strcpy/strcat. Remove commented-out code. Fix whitespace.
226
227 2008-02-27 Tom Tromey <tromey@redhat.com>
228
229 * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
230 DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
231
232 2008-02-27 Jan Beulich <jbeulich@novell.com>
233
234 * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
235 update the respective field on newdecl.
236
237 2008-02-27 Revital Eres <eres@il.ibm.com>
238
239 PR rtl-optimization/34999
240 * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
241 crossing edges that ends with a call insn.
242 (fix_up_fall_thru_edges): Handle crossing edges that ends with a
243 call insn and clear the EDGE_CROSSING flag of the crossing edge
244 when fixing fallthru edges.
245
246 2008-02-27 Richard Guenther <rguenther@suse.de>
247
248 PR middle-end/35390
249 * fold-const.c (fold_unary): Return the correct argument,
250 converted to the result type.
251
252 2008-02-27 Richard Guenther <rguenther@suse.de>
253
254 PR middle-end/34971
255 * expr.c (expand_expr_real_1): Assert on rotates that operate
256 on partial modes.
257 * fold-const.c (fold_binary): Use the types precision, not the
258 bitsize of the mode if folding rotate expressions. Build rotates
259 only for full modes.
260
261 2008-02-27 Jakub Jelinek <jakub@redhat.com>
262
263 * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
264 and CPP_PRAGMA_EOL.
265 * c-pragma.c (pragma_ns_name): New typedef.
266 (registered_pp_pragmas): New variable.
267 (c_pp_lookup_pragma): New function.
268 (c_register_pragma_1): If flag_preprocess_only, do nothing
269 for non-expanded pragmas, for expanded ones push pragma's
270 namespace and name into registered_pp_pragmas vector.
271 (c_invoke_pragma_handler): Register OpenMP pragmas even when
272 flag_preprocess_only, don't register GCC pch_preprocess
273 pragma if flag_preprocess_only.
274 * c-opts.c (c_common_init): Call init_pragma even if
275 flag_preprocess_only.
276 * c-pragma.c (c_pp_lookup_pragma): New prototype.
277 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
278 cpp_register_pragma if flag_preprocess_only.
279
280 2008-02-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
281
282 PR c/28800
283 * c-parser.c (c_parser_translation_unit): Warn for empty
284 translation unit, not empty source file.
285
286 2008-02-26 Paul Brook <paul@codesourcery.com>
287
288 * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
289 operand for Thumb-2.
290 * config/arm/arm.h (reg_class): Add CORE_REGS.
291 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
292 (BASE_REG_CLASS): Use CORE_REGS.
293 (PREFERRED_RELOAD_CLASS): Add STACK_REG.
294 (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
295 (REGNO_OK_FOR_INDEX_P): Exclude SP.
296 (ARM_REG_OK_FOR_INDEX_P): Always define. Use
297 ARM_REGNO_OK_FOR_INDEX_P.
298 (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
299 * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
300 arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
301 (ldm/stm peepholes): Ditto.
302 * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
303 * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
304 * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
305 * config/arm/constraints.md: Enable "k" constraint on ARM.
306
307 2008-02-27 Ben Elliston <bje@au.ibm.com>
308
309 * config/rs6000/rs6000.c: Annotate cache line size field in all
310 instances of struct processor_costs.
311
312 2008-02-26 David Edelsohn <edelsohn@gnu.org>
313
314 * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
315 dse2, gcse, if_conversion, if_after_combine, if_after_reload,
316 jump_bypass): New counters.
317 * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
318 * dce.c (gate_ud_dce): Same.
319 (gate_fast_dce): Same.
320 * dse.c (gate_dse1): New function.
321 (gate_dse2): New function.
322 (gate_dse): Merge results of new gate functions.
323 * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
324 (gate_handle_jump_bypass): Add dbg_cnt.
325 (gate_handle_gcse): Add dbg_cnt.
326 * ifcvt.c (gate_handle_if_conversion): Same.
327 (gate_handle_if_after_combine): Same.
328 (gate_handle_if_after_reload): Same.
329 * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
330
331 2008-02-26 Edmar Wienskoski <edmar@freescale.com>
332
333 * config/rs6000/rs6000.c (processor_costs): Update e300 cache
334 line sizes.
335 * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
336
337 2008-02-26 Jason Merrill <jason@redhat.com>
338
339 PR c++/35315
340 * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE
341 alone if it's the naming decl for the type's main variant.
342
343 2008-02-26 Tom Tromey <tromey@redhat.com>
344
345 * system.h (USE_MAPPED_LOCATION): Poison.
346 * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
347 * tree-cfg.c (make_cond_expr_edges): Remove old location code.
348 (make_goto_expr_edges): Likewise.
349 (remove_bb): Likewise.
350 (execute_warn_function_return): Likewise.
351 * basic-block.h (struct edge_def) <goto_locus>: Change type to
352 location_t.
353 * c-common.c (fname_decl): Remove old location code.
354 * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
355 location code.
356 * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
357 variant.
358 (ASM_INPUT_SOURCE_LOCATION): Likewise.
359 (gen_rtx_ASM_INPUT): Likewise.
360 (gen_rtx_ASM_INPUT_loc): Likewise.
361 (get_rtx_asm_OPERANDS): Remove.
362 * cfglayout.c (insn_locators_alloc): Remove old location code.
363 (set_curr_insn_source_location): Likewise.
364 (curr_insn_locator): Likewise.
365 * print-tree.c (print_node): Remove old location code.
366 * tree-mudflap.c (mf_varname_tree): Remove old location code.
367 (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
368 * cfgexpand.c (expand_gimple_cond_expr): Don't use
369 location_from_locus.
370 (construct_exit_block): Remove old location code.
371 * emit-rtl.c (force_next_line_note): Remove old location code.
372 * profile.c (branch_prob): Remove old location code.
373 * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
374 LOC_LINE): Remove old-location variants.
375 * langhooks.c (lhd_print_error_function): Remove old location
376 code.
377 * configure, config.in: Rebuilt.
378 * configure.ac (--enable-mapped-location): Remove.
379 * c-decl.c (c_init_decl_processing): Remove old location code.
380 (finish_function): Likewise.
381 * recog.c (decode_asm_operands): Remove old location code.
382 * c-pch.c (c_common_read_pch): Remove old location code.
383 * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
384 variants.
385 * gimple-low.c (lower_function_body): Remove old location code.
386 * toplev.c (unknown_location): Remove.
387 (push_srcloc): Remove old-location variant.
388 (process_options): Remove old location code.
389 (lang_dependent_init): Likewise.
390 * input.h (UNKNOWN_LOCATION): Move definition.
391 (location_t): Undeprecate.
392 (source_locus): Remove.
393 (location_from_locus): Remove.
394 (struct location_s): Remove.
395 Remove all old-location code.
396 (input_line, input_filename): Remove.
397 * final.c (final_scan_insn): Remove old location code.
398 * diagnostic.c (diagnostic_build_prefix): Remove
399 USE_MAPPED_LOCATION test.
400 * tree.h (gimple_stmt) <locus>: Now a location_t.
401 (tree_exp) <locus>: Likewise.
402 (DECL_IS_BUILTIN): Remove old-location variant.
403 (annotate_with_file_line, annotate_with_locus): Likewise.
404 (expr_locus, set_expr_locus): Update.
405 * tree.c (build1_stat): Remove old location code.
406 (last_annotated_node): Remove.
407 (annotate_with_file_line): Remove old-location variant.
408 (annotate_with_locus): Likewise.
409 (expr_location): Remove old location code.
410 (set_expr_location): Likewise.
411 (expr_has_location): Likewise.
412 (expr_locus): Likewise.
413 (set_expr_locus): Likewise.
414 (expr_filename): Don't use location_from_locus.
415 (expr_lineno): Likewise.
416 * rtl-error.c (location_for_asm): Remove old location code.
417 * c-lex.c (cb_line_change): Remove old location code.
418 (fe_file_change): Likewise.
419 (cb_def_pragma): Likewise.
420 (c_lex_with_flags): Likewise.
421 * gengtype.c (do_typedef): Don't special-case location types.
422 (define_location_structures): Remove.
423 (main): Don't call define_location_structures.
424 * tree-pretty-print.c (dump_implicit_edges): Remove old location
425 code.
426
427 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
428
429 PR 26264
430 * builtins.def (BUILT_IN_STDARG_START): Remove.
431 * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
432 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
433 * tree-inline.c (inline_forbidden_p_1): Likewise.
434
435 2008-02-26 Richard Guenther <rguenther@suse.de>
436
437 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
438 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
439 (lookup_decl_from_uid): Declare.
440 (remove_decl_from_map): Likewise.
441 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
442 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
443 (decl_for_uid_map): New global hashtable mapping DECL_UID
444 to the decl tree.
445 (init_ttree): Allocate it.
446 (insert_decl_to_uid_decl_map): New helper function.
447 (make_node_stat): Insert new decls into the map.
448 (copy_node_stat): Likewise.
449 (lookup_decl_from_uid): New function.
450 (remove_decl_from_map): Likewise.
451 (print_decl_for_uid_map_statistics): New helper.
452 (dump_tree_statistics): Call it.
453
454 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
455 (referenced_var_iterator): Adjust.
456 (FOR_EACH_REFERENCED_VAR): Adjust.
457 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
458 (num_referenced_vars): Adjust.
459 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
460 (first_referenced_var): Remove.
461 (end_referenced_vars_p): Likewise.
462 (next_referenced_var): Likewise.
463 (referenced_var_iterator_set): New helper function.
464 * tree-dfa.c (referenced_var_lookup): Adjust.
465 (referenced_var_check_and_insert): Likewise.
466 (remove_referenced_var): Likewise.
467 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
468 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
469 (verify_call_clobbering): Likewise.
470 (verify_memory_partitions): Likewise.
471 (init_tree_ssa): Allocate bitmap instead of hashtable for
472 referenced_vars.
473 (delete_tree_ssa): Adjust.
474 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
475 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
476 (compute_tag_properties): Likewise.
477 (set_initial_properties): Likewise.
478 (find_partition_for): Likewise.
479 (update_reference_counts): Likewise.
480 (dump_may_aliases_for): Likewise.
481 * tree-ssa-operands.c (add_virtual_operand): Likewise.
482 (add_call_clobber_ops): Likewise.
483 (add_call_read_ops): Likewise.
484 (get_asm_expr_operands): Likewise.
485 * tree-into-ssa.c (dump_decl_set): Likewise.
486 (update_ssa): Likewise.
487 * tree-sra.c (scan_function): Likewise.
488 (decide_instantiations): Likewise.
489 (scalarize_parms): Likewise.
490 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
491 (dsa_named_for): Likewise.
492 * tree-ssa-structalias.c (update_alias_info): Likewise.
493 (merge_smts_into): Likewise.
494
495 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
496
497 PR 34351
498 * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
499 * c-opts.c (c_common_handle_option): Wall enables
500 Wvolatile-register-var.
501 * common.opt: Move Wvolatile-register-var to...
502 * c.opt: ...here.
503
504 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
505
506 * common.opt (Wlarger-than=): New.
507 * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
508 -Wlarger-than=.
509 * opts.c (common_handle_option): Handle -Wlarger-than=.
510 * optc-gen.awk: Likewise.
511 * opth-gen.awk: Likewise.
512 * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
513 * tree-optimize.c (tree_rest_of_compilation): Likewise.
514
515 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
516
517 * c-common.c (match_case_to_enum_1): Add appropriate
518 OPT_W* parameter to warning.
519 (c_do_switch_warnings): Likewise.
520 * c-typeck.c (warning_init): Add one more parameter following
521 'warning' function.
522 (push_init_level): Update call to warning_init.
523 (pop_init_level): Likewise.
524 (add_pending_init): Likewise.
525 (output_init_element: Likewise.
526
527 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
528
529 PR 28322
530 * toplev.c (toplev_main): If there are warnings or error, print
531 errors for ignored options.
532 * opts.c (ignored_options): New static variable.
533 (postpone_unknown_option_error): New.
534 (print_ignored_options): New.
535 (handle_option): Postpone errors for unknown -Wno-* options.
536 * opts.h (print_ignored_options): Declare.
537
538 2008-02-25 Richard Sandiford <rsandifo@nildram.co.uk>
539
540 * config/mips/mips.md (loadgp_blockage, blockage): Change type
541 to "ghost".
542
543 2008-02-25 Richard Guenther <rguenther@suse.de>
544
545 Revert:
546 2008-02-25 Richard Guenther <rguenther@suse.de>
547
548 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
549 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
550 (lookup_decl_from_uid): Declare.
551 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
552 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
553 (decl_for_uid_map): New global hashtable mapping DECL_UID
554 to the decl tree.
555 (init_ttree): Allocate it.
556 (insert_decl_to_uid_decl_map): New helper function.
557 (make_node_stat): Insert new decls into the map.
558 (copy_node_stat): Likewise.
559 (lookup_decl_from_uid): New function.
560 (print_decl_for_uid_map_statistics): New helper.
561 (dump_tree_statistics): Call it.
562
563 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
564 (referenced_var_iterator): Adjust.
565 (FOR_EACH_REFERENCED_VAR): Adjust.
566 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
567 (num_referenced_vars): Adjust.
568 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
569 (first_referenced_var): Remove.
570 (end_referenced_vars_p): Likewise.
571 (next_referenced_var): Likewise.
572 (referenced_var_iterator_set): New helper function.
573 * tree-dfa.c (referenced_var_lookup): Adjust.
574 (referenced_var_check_and_insert): Likewise.
575 (remove_referenced_var): Likewise.
576 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
577 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
578 (verify_call_clobbering): Likewise.
579 (verify_memory_partitions): Likewise.
580 (init_tree_ssa): Allocate bitmap instead of hashtable for
581 referenced_vars.
582 (delete_tree_ssa): Adjust.
583 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
584 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
585 (compute_tag_properties): Likewise.
586 (set_initial_properties): Likewise.
587 (find_partition_for): Likewise.
588 (update_reference_counts): Likewise.
589 (dump_may_aliases_for): Likewise.
590 * tree-ssa-operands.c (add_virtual_operand): Likewise.
591 (add_call_clobber_ops): Likewise.
592 (add_call_read_ops): Likewise.
593 (get_asm_expr_operands): Likewise.
594 * tree-into-ssa.c (dump_decl_set): Likewise.
595 (update_ssa): Likewise.
596 * tree-sra.c (scan_function): Likewise.
597 (decide_instantiations): Likewise.
598 (scalarize_parms): Likewise.
599 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
600 (dsa_named_for): Likewise.
601 * tree-ssa-structalias.c (update_alias_info): Likewise.
602 (merge_smts_into): Likewise.
603
604 2008-02-25 Janne Blomqvist <jb@gcc.gnu.org>
605
606 PR fortran/29549
607 * doc/invoke.texi (-fcx-limited-range): Document new option.
608 * toplev.c (process_options): Handle -fcx-fortran-rules.
609 * common.opt: Add documentation for -fcx-fortran-rules.
610
611 2008-02-25 Janne Blomqvist <jb@gcc.gnu.org>
612
613 PR c/35162
614 * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
615 actual behaviour and C99.
616
617 2008-02-26 Ben Elliston <bje@au.ibm.com>
618
619 * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
620 (ASM_CPU_POWER6_SPEC): Likewise.
621 (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
622 Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
623 (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
624
625 2008-02-25 Richard Guenther <rguenther@suse.de>
626
627 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
628 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
629 (lookup_decl_from_uid): Declare.
630 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
631 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
632 (decl_for_uid_map): New global hashtable mapping DECL_UID
633 to the decl tree.
634 (init_ttree): Allocate it.
635 (insert_decl_to_uid_decl_map): New helper function.
636 (make_node_stat): Insert new decls into the map.
637 (copy_node_stat): Likewise.
638 (lookup_decl_from_uid): New function.
639 (print_decl_for_uid_map_statistics): New helper.
640 (dump_tree_statistics): Call it.
641
642 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
643 (referenced_var_iterator): Adjust.
644 (FOR_EACH_REFERENCED_VAR): Adjust.
645 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
646 (num_referenced_vars): Adjust.
647 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
648 (first_referenced_var): Remove.
649 (end_referenced_vars_p): Likewise.
650 (next_referenced_var): Likewise.
651 (referenced_var_iterator_set): New helper function.
652 * tree-dfa.c (referenced_var_lookup): Adjust.
653 (referenced_var_check_and_insert): Likewise.
654 (remove_referenced_var): Likewise.
655 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
656 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
657 (verify_call_clobbering): Likewise.
658 (verify_memory_partitions): Likewise.
659 (init_tree_ssa): Allocate bitmap instead of hashtable for
660 referenced_vars.
661 (delete_tree_ssa): Adjust.
662 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
663 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
664 (compute_tag_properties): Likewise.
665 (set_initial_properties): Likewise.
666 (find_partition_for): Likewise.
667 (update_reference_counts): Likewise.
668 (dump_may_aliases_for): Likewise.
669 * tree-ssa-operands.c (add_virtual_operand): Likewise.
670 (add_call_clobber_ops): Likewise.
671 (add_call_read_ops): Likewise.
672 (get_asm_expr_operands): Likewise.
673 * tree-into-ssa.c (dump_decl_set): Likewise.
674 (update_ssa): Likewise.
675 * tree-sra.c (scan_function): Likewise.
676 (decide_instantiations): Likewise.
677 (scalarize_parms): Likewise.
678 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
679 (dsa_named_for): Likewise.
680 * tree-ssa-structalias.c (update_alias_info): Likewise.
681 (merge_smts_into): Likewise.
682
683 2008-02-25 Andreas Krebbel <krebbel1@de.ibm.com>
684
685 PR target/35258
686 * cse.c (cse_insn): Avoid creation of overlapping MEMs.
687 * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
688 * alias.h (nonoverlapping_memrefs_p): Likewise.
689
690 2008-02-25 Jan Beulich <jbeulich@novell.com>
691
692 * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
693 * config/i386/netware-libgcc.exp: Add __bswap?i2,
694 __emultls_get_address, __emultls_register_common,
695 __floatundi?f, and _Unwind_GetIPInfo.
696 * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
697 Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
698 (gen_regparm_prefix): Likewise.
699 (i386_nlm_encode_section_info): Sync with
700 config/i386/winnt.c:i386_pe_encode_section_info().
701 (i386_nlm_maybe_mangle_decl_assembler_name): New.
702 i386_nlm_mangle_decl_assembler_name): New.
703 (netware_override_options): New.
704 * config/i386/netware.h (netware_override_options): Declare.
705 (OVERRIDE_OPTIONS): Re-define to netware_override_options.
706 (i386_nlm_mangle_decl_assembler_name): Declare.
707 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
708
709 2008-02-25 Ben Elliston <bje@au.ibm.com>
710
711 PR other/32948
712 * c-decl.c (grokdeclarator): Remove unused local variables
713 `typedef_type' and `type_as_written'.
714 * bb-reorder.c
715 (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
716 unused local variable `has_hot_blocks'.
717 (fix_crossing_conditional_branches): Remove unused local variable
718 `prev_bb'.
719
720 2008-02-25 Uros Bizjak <ubizjak@gmail.com>
721
722 PR middle-end/19984
723 * builtins.def (BUILT_IN_NAN): Define as c99 builtin
724 using DEF_C99_BUILTIN.
725 (BUILT_IN_NANF): Ditto.
726 (BUILT_IN_NANL): Ditto.
727
728 2008-02-25 Ayal Zaks <zaks@il.ibm.com>
729 Revital Eres <eres@il.ibm.com>
730
731 * modulo-sched.c (calculate_must_precede_follow): Address TODO
732 regarding the order of two dependent insns in the same row.
733
734 2008-02-25 Eric Botcazou <ebotcazou@adacore.com>
735
736 * stor-layout.c (layout_decl): Do not bump the alignment of a
737 bit-field to more than byte alignment if it is packed.
738
739 2008-02-24 David Edelsohn <edelsohn@gnu.org>
740
741 * config/rs6000/rs6000.c (processor_costs): Add cache costs for
742 e300c2 and e300c3.
743
744 2008-02-24 Diego Novillo <dnovillo@google.com>
745
746 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
747
748 PR 33738
749 * tree-vrp.c (vrp_evaluate_conditional): With
750 -Wtype-limits, emit a warning when comparing against a
751 constant outside the natural range of OP0's type.
752 * c.opt (Wtype-limits): Move ...
753 * common.opt (Wtype-limits): ... here.
754
755 2008-02-24 Edmar Wienskoski <edmar@freescale.com>
756
757 * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
758 * config/rs6000/e300c2c3.md: New file.
759 * config/rs6000/rs6000.c (processor_costs): Add new costs for
760 e300c2 and e300c3.
761 (rs6000_override_options): Add e300c2 and e300c3 cases to
762 processor_target_table. Do not allow usage of Altivec or Spe
763 with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
764 (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
765 * config/rs6000/rs6000.h (processor_type): Add
766 PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
767 (ASM_CPU_SPEC): Add e300c2 and e300c3.
768 * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
769 and ppce300c3. Include e300c2c3.md.
770
771 2008-02-23 David Edelsohn <edelsohn@gnu.org>
772
773 * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
774 instead of TARGET_STRICT_ALIGN.
775
776 2008-02-23 Joseph Myers <joseph@codesourcery.com>
777
778 * explow.c (memory_address): Assert that the generated address is
779 valid.
780
781 2008-02-23 Francois-Xavier Coudert <coudert@clipper.ens.fr>
782
783 PR target/25477
784 * config/darwin-protos.h: Add darwin_patch_builtins prototype.
785 * config/darwin-ppc-ldouble-patch.def: New file.
786 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
787 * config/rs6000/rs6000.c (rs6000_init_builtins): Call
788 SUBTARGET_INIT_BUILTINS if defined.
789 * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
790 New functions.
791
792 2008-02-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
793
794 PR rtl-opt/33512
795 * simplify-rtx.c (simplify_binary_operation_1): Add simplification
796 of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
797
798 2008-02-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
799
800 PR pch/35027
801 * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
802 file" warning condtional on -Winvalid-PCH.
803
804 2008-02-23 Daniel Jacobowitz <dan@codesourcery.com>
805
806 * expmed.c (extract_bit_field): Always use adjust_address for MEM.
807
808 2008-02-23 Uros Bizjak <ubizjak@gmail.com>
809
810 PR target/22076
811 PR target/34256
812 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
813 prevent reload from using MMX registers.
814 (*mov<mode>_internal): Ditto.
815 (*movv2sf_internal_rex64): Ditto.
816 (*movv2sf_internal): Ditto.
817
818 2008-02-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
819
820 PR documentation/31569
821 * doc/install.texi2html: Use makeinfo --no-number-sections.
822
823 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
824
825 * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
826 ensure that we can address an entire entity > 8 bytes. Don't
827 generate reg+reg addressing for such data.
828
829 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
830
831 * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
832 strings when optimizing for size, unless the target cares about
833 alignment.
834
835 2008-02-22 Tom Tromey <tromey@redhat.com>
836
837 * regclass.c (current_pass): Remove declaration.
838
839 2008-02-22 Anatoly Sokolov <aesok@post.ru>
840
841 * config/avr/libgcc.S (__RAMPZ__): Define.
842 (__do_copy_data): Add for devices with 128KB code memory.
843
844 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
845
846 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
847 Use spe_abi.
848 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
849
850 2008-02-22 Hans-Peter Nilsson <hp@axis.com>
851
852 * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
853 GENNONACR_REGS.
854
855 2008-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
856
857 PR c/19999
858 * c-typeck.c (build_binary_op): Warn about floating point
859 comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
860
861 2008-02-21 Janis Johnson <janis187@us.ibm.com>
862
863 PR target/34526
864 * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
865 (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
866 add vrsave.
867 (rs6000_override_options): Set altivec_abi as default, not override,
868 for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
869 TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
870 is used; use new member spe_abi.
871 (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
872 spe_abi and altivec_abi.
873
874 2008-02-22 Tomas Bily <tbily@suse.cz>
875
876 * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
877
878 2008-02-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
879
880 PR bootstrap/35273
881 * config.build (build_file_translate): Set to `CMD //c' only if
882 it works.
883 * Makefile.in (build_file_translate): Improve comment.
884
885 2008-02-21 Jan Hubicka <jh@suse.cz>
886
887 * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
888 PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
889 PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
890
891 2008-02-21 Michael Matz <matz@suse.de>
892
893 PR target/35264
894 * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
895
896 2008-02-21 Uros Bizjak <ubizjak@gmail.com>
897
898 * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
899 movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
900 as insn constraint.
901 * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
902 from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
903 SSE_VEC_FLOAT_MODE_P as insn constraint.
904 (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
905 (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
906 sse4a_movntdf using MODEF mode iterator.
907 (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
908 sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
909 (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
910 (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
911 (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
912 (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
913 (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
914
915 2008-02-21 Richard Guenther <rguenther@suse.de>
916
917 * tree.def (PAREN_EXPR): New tree code.
918 * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
919 and PAREN_EXPR.
920 * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
921 * expr.c (expand_expr_real_1): Likewise.
922 * tree-inline.c (estimate_num_insns_1): Likewise.
923 * tree-complex.c (expand_complex_move): Likewise.
924 * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
925 as plain x.
926
927 2008-02-20 Kaz Kojima <kkojima@gcc.gnu.org>
928
929 PR target/35225
930 * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
931
932 2008-02-20 Kaz Kojima <kkojima@gcc.gnu.org>
933
934 PR target/35190
935 * config/sh/sh.md (jump_compact): Disable for crossing jumps.
936
937 * config/sh/sh.c (find_barrier): Don't go past
938 NOTE_INSN_SWITCH_TEXT_SECTIONS note.
939
940 2008-02-20 DJ Delorie <dj@redhat.com>
941
942 * config/h8300/h8300.md (insv): Force source operand to be a register.
943
944 * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
945 as a jump, not as a plain insn.
946
947 2008-02-20 Seongbae Park <seongbae.park@gmail.com>
948
949 * doc/invoke.texi (Warning Options): Add new option
950 -Wframe-larger-than=.
951 (-Wframe-larger-than): Document.
952
953 * flags.h (warn_frame_larger_than, frame_larger_than_size):
954 Add declarations for new option variables.
955
956 * final.c (final_start_function): Check the frame size
957 before emission and issue a Wframe-larger-than warning.
958
959 * opts.c (warn_frame_larger_than, frame_larger_than_size):
960 Add definitions for new option variables.
961 (common_handle_option): Handle new option OPT_Wframe_larger_than_.
962
963 * common.opt (Wframe-larger-than=): New option.
964
965 2008-02-20 Uros Bizjak <ubizjak@gmail.com>
966
967 * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
968 (<sse>_div<mode>3): Ditto.
969 (<sse>_vmdiv<mode>3): Ditto.
970 (<sse>_vmsqrt<mode>2): Ditto.
971 (*smax<mode>3): Ditto.
972 (sse5_frcz<mode>2): Ditto.
973 (sse5_vmfrcz<mode>2): Ditto. Use TARGET_SSE5 instead of TARGET_ROUND
974 as insn constraint.
975
976 2008-02-20 Richard Guenther <rguenther@suse.de>
977
978 PR middle-end/35265
979 * builtins.c (validate_arg): If we want an INTEGER_TYPE,
980 be happy with INTEGRAL_TYPE_P.
981
982 2008-02-20 Richard Guenther <rguenther@suse.de>
983
984 * fold-const.c (split_tree): Associate floatig-point expressions
985 if flag_associative_math is set.
986
987 2008-02-20 Richard Guenther <rguenther@suse.de>
988
989 * tree.h (fold_real_zero_addition_p): Declare.
990 * fold-const.c (fold_real_zero_addition_p): Export.
991 * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
992 floating-point operations with zero and one.
993
994 2008-02-20 Paolo Bonzini <bonzini@gnu.org>
995
996 * doc/install.texi: Correct references to CFLAGS, replacing them
997 with BOOT_CFLAGS. Document flags used during bootstrap for
998 target libraries.
999
1000 2008-02-20 Uros Bizjak <ubizjak@gmail.com>
1001
1002 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
1003 * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
1004 and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
1005 insn constraint.
1006 (smin<mode>3): Ditto from similar patterns.
1007 (smax<mode>3): Ditto.
1008 (*ieee_smin<mode>3): Ditto.
1009 (*ieee_smax<mode>3): Ditto.
1010 * config/i386/sse.md (sse): New mode attribute.
1011 (mov<mode>): Macroize expander from movv4sf and movv2df using
1012 SSEMODEF2P mode iterator.
1013 (<sse>_movnt<mode>): Ditto from similar patterns. Use
1014 SSE_VEC_FLOAT_MODE_P as insn constraint.
1015 (storent<mode>): Ditto.
1016 (storent<mode>): Macroize expander from storentsf and storentdf using
1017 MODEF mode iterator.
1018 (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
1019 mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
1020 (abs<mode>2): Ditto from similar patterns.
1021 (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
1022 (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
1023 (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
1024 (<sse>_vmsqrt<mode>2): Ditto.
1025 (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
1026 (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
1027 (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
1028 (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
1029 (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
1030 sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
1031 mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
1032 insn constraint.
1033 (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
1034 iterator and SSE_FLOAT_MODE_P as insn constraint.
1035 (<sse>_ucomi): Ditto from similar patterns.
1036 (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
1037 sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
1038 SSE_VEC_FLOAT_MODE_P as insn constraint.
1039 (vcond<mode>): Ditto from similar patterns.
1040 (and<mode>3, *and<mode>3): Ditto.
1041 (<sse>_nand<mode>3): Ditto.
1042 (ior<mode>3, *ior<mode>3): Ditto.
1043 (xor<mode>3, *xor<mode>3): Ditto.
1044 (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
1045 iterator and SSE_FLOAT_MODE_P as insn constraint.
1046 (*nand<mode>3): Ditto from similar patterns.
1047 (*ior<mode>3): Ditto.
1048 (*xor<mode>3): Ditto.
1049
1050 2008-02-20 Ira Rosen <irar@il.ibm.com>
1051
1052 * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
1053 vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
1054 vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
1055
1056 2008-02-19 Jan Hubicka <jh@suse.cz>
1057
1058 * predict.c (tree_bb_level_predictions): Remove variable next
1059 mistakely introduced by previous commit.
1060
1061 2008-02-19 Jan Hubicka <jh@suse.cz>
1062
1063 * predict.c (predict_paths_leading_to): Rewrite.
1064 (predict_paths_for_bb): New.
1065 (tree_bb_level_predictions): Update call of predict_paths_leading_to.
1066
1067 2008-02-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1068
1069 PR bootstrap/35218
1070 * Makefile.in (build_file_translate): New.
1071 (gcc-vers.texi): Use it for translating $(abs_srcdir).
1072 * config.build (build_file_translate): Set to `CMD //c' on MinGW.
1073 * configure.ac (build_file_translate): Substitute it.
1074 * configure: Regenerate.
1075
1076 2008-02-19 Jan Hubicka <jh@suse.cz>
1077
1078 PR rtl-optimization/34408
1079 * see.c (see_def_extension_not_merged): Copy subreg so we don't have
1080 invalid sharing.
1081
1082 2008-02-19 Jan Hubicka <jh@suse.cz>
1083
1084 PR middle-end/28779
1085 * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
1086 call_expr.
1087
1088 2008-02-19 H.J. Lu <hongjiu.lu@intel.com>
1089
1090 PR Ada/35186
1091 * config/i386/i386-modes.def: Revert the last DI alignment
1092 change until Ada people can look into it.
1093
1094 2008-02-19 Nick Clifton <nickc@redhat.com>
1095
1096 * opts.c (print_specific_help): Fix typo in --help text.
1097
1098 2008-02-19 Jakub Jelinek <jakub@redhat.com>
1099
1100 PR target/35239
1101 * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
1102 32-bit inline asm without asm alternatives for host GCC < 3.0.
1103
1104 2008-02-19 Richard Guenther <rguenther@suse.de>
1105
1106 PR tree-optimization/34989
1107 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
1108 Allow propagation to INDIRECT_REF if we can simplify only.
1109
1110 2008-02-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1111
1112 * c-common.c (warn_for_collisions_1): Use appropriate option when
1113 warning.
1114
1115 2008-02-19 Nick Clifton <nickc@redhat.com>
1116
1117 PR other/31349
1118 * opts.c (undocumented_msg): Leave blank unless checking is enabled.
1119 (handle_options): Fix indentation.
1120 (print_filtered_help): If no language-specific options were
1121 displayed tell the user how to list all the options supported by
1122 the language's front-end.
1123 (print_specific_help): Fix indentation and remove duplicate line.
1124 (common_handle_option): Handle the -v option.
1125 For --help enable the display of undocumented options if the -v
1126 switch has been included on the command line.
1127 For --help= check for overlaps in the arguments between the option
1128 classes and the language names and issue a warning when they
1129 cannot be disambiguated.
1130 * c.opt (v): Pass on to the common option handler.
1131
1132 2008-02-19 Revital Eres <eres@il.ibm.com>
1133
1134 * modulo-sched.c (sms_schedule): Change dump message when
1135 create_ddg function fails.
1136 (try_scheduling_node_in_cycle): Rename row to cycle.
1137 (print_partial_schedule): Rename CYCLE to ROW.
1138
1139 2008-02-19 Christian Bruel <christian.bruel@st.com>
1140 Zdenek Dvorak <ook@ucw.cz>
1141
1142 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
1143
1144 2008-02-19 Uros Bizjak <ubizjak@gmail.com>
1145
1146 PR target/33555
1147 * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
1148 (*x86_movdicc_0_m1_se): Ditto.
1149
1150 2008-02-19 Uros Bizjak <ubizjak@gmail.com>
1151
1152 * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
1153 (CMPtype): Define as __gcc_CMPtype.
1154 * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
1155 (CMPtype): Define as __gcc_CMPtype.
1156
1157 2008-02-19 Hans-Peter Nilsson <hp@axis.com>
1158
1159 Support valgrind 3.3 for --enable-checking=valgrind.
1160 * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
1161 here.
1162 [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
1163 [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
1164 [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
1165 * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
1166 Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
1167 VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
1168 VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
1169 respectively.
1170 * ggc-zone.c: Similar.
1171 * ggc-page.c: Similar.
1172
1173 2008-02-19 Paul Brook <paul@codesourcery.com>
1174
1175 PR target/35071
1176 * config/arm/ieee754-df.S: Fix do_it typo.
1177 * config/arm/ieee754-sf.S: Fix do_it typo.
1178
1179 2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
1180
1181 PR target/35189
1182 * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
1183 (OPTION_MASK_ISA_3DNOW_SET): Likewise.
1184 (OPTION_MASK_ISA_SSE_SET): Likewise.
1185 (OPTION_MASK_ISA_SSE2_SET): Likewise.
1186 (OPTION_MASK_ISA_SSE3_SET): Likewise.
1187 (OPTION_MASK_ISA_SSSE3_SET): Likewise.
1188 (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
1189 (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
1190 (OPTION_MASK_ISA_SSE4_SET): Likewise.
1191 (OPTION_MASK_ISA_SSE4A_SET): Likewise.
1192 (OPTION_MASK_ISA_SSE5_SET): Likewise.
1193 (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
1194 (OPTION_MASK_ISA_MMX_UNSET): Updated.
1195 (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
1196 (OPTION_MASK_ISA_SSE_UNSET): Likewise.
1197 (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
1198 (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
1199 (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
1200 (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
1201 (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
1202 (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
1203 (OPTION_MASK_ISA_SSE4): Removed.
1204 (ix86_handle_option): Turn on bits in ix86_isa_flags and
1205 ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for
1206 -mXXX.
1207 (override_options): Don't turn on implied SSE/MMX bits in
1208 ix86_isa_flags.
1209
1210 2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
1211
1212 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
1213 32bit host.
1214
1215 2008-02-18 Joey Ye <joey.ye@intel.com>
1216
1217 PR middle-end/34921
1218 * tree-nested.c (insert_field_into_struct): Set type alignment
1219 to field alignment if the former is less than the latter.
1220
1221 2008-02-18 Jakub Jelinek <jakub@redhat.com>
1222
1223 * BASE-VER: Set to 4.4.0.
1224
1225 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1226
1227 * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
1228 * doc/cfg.texi: Likewise.
1229 * doc/extend.texi: Likewise.
1230 * doc/gty.texi: Likewise.
1231 * doc/invoke.texi: Likewise.
1232 * doc/loop.texi: Likewise.
1233 * doc/md.texi: Likewise.
1234 * doc/passes.texi: Likewise.
1235 * doc/rtl.texi: Likewise.
1236 * doc/sourcebuild.texi: Likewise.
1237 * doc/tm.texi: Likewise.
1238 * doc/tree-ssa.texi: Likewise.
1239
1240 2008-02-17 Richard Guenther <rguenther@suse.de>
1241
1242 PR middle-end/35227
1243 * tree-complex.c (init_parameter_lattice_values): Handle parameters
1244 without default definition.
1245
1246 2008-02-17 Richard Guenther <rguenther@suse.de>
1247
1248 PR tree-optimization/35231
1249 * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
1250 if A | B != 1.
1251
1252 2008-02-17 Uros Bizjak <ubizjak@gmail.com>
1253
1254 Revert:
1255
1256 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
1257 * config/i386/sfp-machine.h (CMPtype): Define as typedef using
1258 libgcc_cmp_return mode.
1259
1260 2008-02-16 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1261
1262 PR c/28368
1263 * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
1264
1265 2008-02-16 Ralf Corsepius <ralf.corsepius@rtems.org>
1266
1267 * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
1268 multilibs.
1269
1270 2008-02-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1271
1272 * doc/c-tree.texi: Use `@.' where appropriate.
1273 * doc/extend.texi: Likewise.
1274 * doc/install.texi: Likewise.
1275 * doc/invoke.texi: Likewise.
1276 * doc/loop.texi: Likewise.
1277 * doc/makefile.texi: Likewise.
1278 * doc/md.texi: Likewise.
1279 * doc/passes.texi: Likewise.
1280 * doc/standards.texi: Likewise.
1281 * doc/tm.texi: Likewise.
1282
1283 2008-02-15 Jakub Jelinek <jakub@redhat.com>
1284
1285 PR middle-end/35196
1286 * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
1287 in entry_bb.
1288 (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
1289 rather than in entry_bb.
1290
1291 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
1292
1293 * config/i386/sfp-machine.h (CMPtype): Define as typedef using
1294 libgcc_cmp_return mode.
1295
1296 2008-02-15 Jakub Jelinek <jakub@redhat.com>
1297
1298 PR middle-end/35130
1299 * tree-nested.c (convert_call_expr): Put FRAME.* vars into
1300 OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
1301
1302 2008-02-15 Richard Guenther <rguenther@suse.de>
1303 Zdenek Dvorak <ook@ucw.cz>
1304
1305 PR tree-optimization/35164
1306 * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
1307 * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
1308 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
1309 Only propagate addresses which do not have abnormal SSA_NAMEs
1310 in their operands.
1311
1312 2008-02-15 Joseph Myers <joseph@codesourcery.com>
1313
1314 PR target/35088
1315 * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
1316
1317 2008-02-15 Jan Hubicka <jh@suse.cz>
1318
1319 PR middle-end/35149
1320 * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
1321
1322 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
1323
1324 PR middle-end/34621
1325 * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
1326 when calculating alignment_pad.
1327
1328 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
1329
1330 * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
1331 (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
1332 * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
1333 and STACK_BOUNDARY define.
1334
1335 2008-02-14 Danny Smith <dannysmith@users.sourceforge.net>
1336
1337 PR preprocessor/35061
1338 * c-pragma.c (handle_pragma_pop_macro): Check that
1339 pushed_macro_table has been allocated.
1340
1341 2008-02-14 Eric Botcazou <ebotcazou@adacore.com>
1342
1343 PR middle-end/35136
1344 * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
1345 (force_gimple_operand): Likewise.
1346 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
1347 for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
1348 Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
1349 (find_interesting_uses_address): Check addressability and alignment
1350 of the base expression only after substituting bases of IVs into it.
1351
1352 2008-02-14 Michael Matz <matz@suse.de>
1353
1354 PR target/34930
1355 * function.c (instantiate_virtual_regs_in_insn): Reload address
1356 before falling back to reloading the whole operand.
1357
1358 2008-02-14 Andreas Krebbel <krebbel1@de.ibm.com>
1359
1360 * config/s390/s390.c (s390_mainpool_start): Emit the pool
1361 before the first section switch note.
1362
1363 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1364
1365 * doc/bugreport.texi: Update copyright years.
1366 * doc/c-tree.texi: Likewise.
1367 * doc/cfg.texi: Likewise.
1368 * doc/cpp.texi: Likewise.
1369 * doc/cppinternals.texi: Likewise.
1370 * doc/fragments.texi: Likewise.
1371 * doc/frontends.texi: Likewise.
1372 * doc/gcc.texi: Likewise.
1373 * doc/gty.texi: Likewise.
1374 * doc/hostconfig.texi: Likewise.
1375 * doc/implement-c.texi: Likewise.
1376 * doc/libgcc.texi: Likewise.
1377 * doc/loop.texi: Likewise.
1378 * doc/makefile.texi: Likewise.
1379 * doc/options.texi: Likewise.
1380 * doc/passes.texi: Likewise.
1381 * doc/rtl.texi: Likewise.
1382 * doc/sourcebuild.texi: Likewise.
1383 * doc/standards.texi: Likewise.
1384 * doc/tree-ssa.texi: Likewise.
1385 * doc/trouble.texi: Likewise.
1386
1387 * doc/extend.texi: Use @: or add comma where appropriate.
1388 * doc/invoke.texi: Likewise.
1389 * doc/tm.texi: Likewise.
1390
1391 2008-02-14 Alan Modra <amodra@bigpond.net.au>
1392
1393 PR target/34393
1394 * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
1395 to a reg.
1396
1397 2008-02-14 Jesper Nilsson <jesper.nilsson@axis.com>
1398
1399 * doc/md.texi (clz, ctz): Add reference.
1400 * doc/rtl.texi (clz, ctz): Likewise.
1401
1402 2008-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1403
1404 PR other/35148
1405 * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
1406 srcdir.
1407
1408 2008-02-13 Andreas Krebbel <krebbel1@de.ibm.com>
1409
1410 * config/s390/s390.c (struct constant_pool): New field
1411 emit_pool_after added.
1412 (s390_mainpool_start): Set the emit_pool_after flag according
1413 to the section switch notes.
1414 (s390_mainpool_finish): Consider emit_pool_after when emitting
1415 the literal pool at the end of the function.
1416 (s390_chunkify_start): Force literal pool splits at section
1417 switch notes.
1418
1419 2008-02-13 Michael Matz <matz@suse.de>
1420
1421 PR debug/35065
1422 * var-tracking.c (clobber_variable_part): Correctly traverse the
1423 list.
1424
1425 2008-02-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1426
1427 PR 29673
1428 * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
1429 Add -fdump-ipa-inline.
1430 * tree-dump.c (dump_files): Remove tree-inlined dump.
1431 * tree-pass.h (tree_dump_index): Remove TDI_inlined.
1432
1433 2008-02-12 Richard Guenther <rguenther@suse.de>
1434
1435 PR tree-optimization/35171
1436 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
1437 default defs.
1438
1439 2008-02-12 Richard Guenther <rguenther@suse.de>
1440
1441 PR middle-end/35163
1442 * fold-const.c (fold_widened_comparison): Use get_unwidened in
1443 value-preserving mode. Disallow final truncation.
1444
1445 2008-02-12 Eric Botcazou <ebotcazou@adacore.com>
1446
1447 PR middle-end/35136
1448 * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
1449 code from here to...
1450 (force_gimple_operand): ...here.
1451
1452 2008-02-12 Jakub Jelinek <jakub@redhat.com>
1453
1454 PR c++/35144
1455 * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
1456 non-compatible pointers.
1457 (generate_element_copy): If SRC and DST are RECORD_TYPEs with
1458 different FIELD_DECLs, try harder by comparing field offsets, sizes
1459 and types.
1460
1461 PR inline-asm/35160
1462 * function.c (match_asm_constraints_1): Don't replace the same input
1463 multiple times.
1464
1465 2008-02-12 Anatoly Sokolov <aesok@post.ru>
1466
1467 * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
1468 * config/avr/avr.c (expand_prologue): Save RAMPZ register.
1469 (expand_epilogue): Restore RAMPZ register.
1470 * config/avr/avr.md (RAMPZ_ADDR): New constant.
1471
1472 2008-02-11 Kai Tietz <kai.tietz@onevision.com>
1473
1474 * config/i386/cygwin.asm: (__alloca): Correct calling
1475 convention and alignment.
1476 (__chkstk): Force 8 byte stack alignment.
1477
1478 2008-02-11 Uros Bizjak <ubizjak@gmail.com>
1479 Richard Guenther <rguenther@suse.de>
1480
1481 PR tree-optimization/33992
1482 * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
1483 the zero we compare against.
1484
1485 2008-02-10 Danny Smith <dannysmith@users.sourceforge.net>
1486
1487 PR libfortran/35063
1488 * gthr-win32.h (__gthread_mutex_destroy_function): New function
1489 to CloseHandle after unlocking to prevent accumulation of handle
1490 count.
1491
1492 2008-02-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1493
1494 PR middle_end/34150
1495 * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
1496 pic_label_operand source. Similarly, add a REG_LABEL_OPERAND note
1497 and update LABEL_NUSES during and after reload.
1498
1499 2008-02-08 Steven Bosscher <stevenb.gcc@gmail.com>
1500
1501 PR middle-end/34627
1502 * combine.c (simplify_if_then_else): Make sure the comparison is
1503 against const0_rtx when simplifying to (abs x) or (neg (abs X)).
1504
1505 2008-02-08 Richard Sandiford <rsandifo@nildram.co.uk>
1506
1507 PR bootstrap/35051
1508 * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
1509 (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
1510 * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
1511 (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
1512 * tree.h (get_type_static_bounds): Likewise.
1513
1514 2008-02-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1515
1516 * doc/invoke.texi (Option Summary, C++ Dialect Options)
1517 (Objective-C and Objective-C++ Dialect Options, Warning Options):
1518 Make -Wfoo language annotations match what the compiler outputs.
1519
1520 2008-02-08 Sa Liu <saliu@de.ibm.com>
1521
1522 * config/spu/spu-builtins.def: Fixed wrong parameter type in spu
1523 intrinsics spu_convts, spu_convtu, spu_convtf.
1524 * testsuite/gcc.target/spu/intrinsics-3.c: New. Test error messages.
1525
1526 2008-02-08 Hans-Peter Nilsson <hp@axis.com>
1527
1528 * doc/extend.texi (Function Attributes) <noinline>: Mention
1529 asm ("") as method to keep calls.
1530
1531 2008-02-07 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1532
1533 PR other/32754
1534 * doc/options.texi (Options): Replace references to opts.sh with
1535 optc-gen.awk.
1536 * opts-common.c: Likewise.
1537 * optc-gen.awk: Likewise.
1538
1539 2008-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
1540
1541 * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
1542
1543 2008-02-07 Richard Henderson <rth@redhat.com>
1544
1545 PR rtl-opt/33410
1546 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
1547 EXPR_LIST for the REG_EQUAL instead of a comparison with a
1548 funny mode.
1549
1550 2008-02-07 Uros Bizjak <ubizjak@gmail.com>
1551
1552 PR tree-optimization/35085
1553 * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
1554 for operand entry oe2 in addition to operand entry oe3 in order to
1555 expose more opportunities for vectorizer sum reduction.
1556
1557 2008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1558
1559 PR other/35107
1560 * Makefile.in (LIBS): Remove $(GMPLIBS).
1561 (cc1-dummy, cc1): Add $(GMPLIBS).
1562
1563 2008-02-06 Jan Hubicka <jh@suse.cz>
1564
1565 PR target/23322
1566 * i386.md (moddf_integer): Do not produce partial memory stalls for
1567 targets where it hurts.
1568
1569 2008-02-06 Uros Bizjak <ubizjak@gmail.com>
1570
1571 PR target/35083
1572 * optabs.c (expand_float): Do not check for decimal modes when
1573 expanding unsigned integer through signed conversion.
1574
1575 2008-02-06 Nick Clifton <nickc@redhat.com>
1576
1577 * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
1578 inside the clobber with a match_operand and duplicated operand
1579 number in the constraint.
1580 (ineqbranchsi): Delete redundant comment.
1581
1582 2008-02-06 Ralf Corsepius <ralf.corsepius@rtems.org>
1583
1584 * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add
1585 builtin_define ("__USE_INIT_FINI__").
1586 * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
1587 -msx multilibs.
1588 * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
1589
1590 2008-02-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1591
1592 PR documentation/30330
1593 * doc/invoke.texi (C++ Dialect Options)
1594 (Objective-C and Objective-C++ Dialect Options, Warning Options):
1595 For each warning option -Wfoo that allows -Wno-foo, ensure both
1596 -Wfoo and -Wno-foo are listed in the option index. Fix index
1597 entry of -Wswitch-default, index -Wnormalized= including the
1598 `=', and -Wlarger-than-@var{len} including @var{len}.
1599
1600 2008-02-05 Uros Bizjak <ubizjak@gmail.com>
1601
1602 * config/i386/i386.md (floatunssisf2): Use
1603 ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
1604 (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
1605 Macroize expander using MODEF mode iterator.
1606
1607 2008-02-05 Diego Novillo <dnovillo@google.com>
1608
1609 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
1610
1611 PR 33738
1612 * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
1613
1614 2008-02-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1615
1616 PR other/35070
1617 * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
1618
1619 2008-02-05 H.J. Lu <hongjiu.lu@intel.com>
1620
1621 PR target/35084
1622 * config/i386/i386.c (ix86_function_sseregparm): Add an arg
1623 to indicate if a message should be generated.
1624 (init_cumulative_args): Updated.
1625 (function_value_32): Likewise.
1626
1627 2008-02-05 Joseph Myers <joseph@codesourcery.com>
1628
1629 * doc/include/texinfo.tex: Update to version 2008-02-04.16.
1630
1631 2008-02-05 Uros Bizjak <ubizjak@gmail.com>
1632
1633 PR target/35083
1634 * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
1635 Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
1636
1637 2008-02-04 Diego Novillo <dnovillo@google.com>
1638
1639 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
1640
1641 PR 33738
1642 * tree-vrp.c (vrp_evaluate_conditional): With
1643 -Wtype-limits, emit a warning when comparing against a
1644 constant outside the natural range of OP0's type.
1645
1646 2008-02-04 Richard Guenther <rguenther@suse.de>
1647
1648 PR middle-end/33631
1649 * expr.c (count_type_elements): Give for unions instead of
1650 guessing.
1651
1652 2008-02-04 Richard Guenther <rguenther@suse.de>
1653
1654 PR middle-end/35043
1655 * gimplify.c (gimplify_init_ctor_eval): Convert array indices
1656 to TYPE_DOMAINs base type instead of using bitsizetype here.
1657
1658 2008-02-03 Jason Merrill <jason@redhat.com>
1659
1660 * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
1661
1662 2008-02-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1663
1664 PR other/29972
1665 * doc/invoke.texi (C++ Dialect Options, Optimize Options)
1666 (HPPA Options, i386 and x86-64 Options, IA-64 Options)
1667 (RS/6000 and PowerPC Options): Fix typos and markup.
1668 * doc/passes.texi (Tree-SSA passes): Likewise.
1669
1670 2008-02-02 Michael Matz <matz@suse.de>
1671
1672 PR target/35045
1673 * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
1674 from record_last_reg_set_info.
1675 (record_last_reg_set_info): Take an RTX argument, iterate over all
1676 constituent hardregs.
1677 (record_last_set_info, record_opr_changes): Change calls to
1678 new signature or to record_last_reg_set_info_regno.
1679
1680 2008-02-02 Gerald Pfeifer <gerald@pfeifer.com>
1681
1682 * doc/extend.texi (X86 Built-in Functions): Fix grammar.
1683
1684 2008-02-01 Hans-Peter Nilsson <hp@axis.com>
1685
1686 PR rtl-optimization/34773
1687 * reg-notes.def (EQUAL): Mention significance of combination of
1688 REG_EQUAL and REG_RETVAL.
1689 * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
1690 insn that has a REG_RETVAL.
1691
1692 2008-02-01 Roger Sayle <roger@eyesopen.com>
1693
1694 PR bootstrap/33781
1695 * configure.ac (--enable-fixed-point): Disable unless explicitly
1696 requested on IRIX.
1697 * configure: Regenerate.
1698
1699 2008-02-01 Richard Guenther <rguenther@suse.de>
1700
1701 PR other/35042
1702 * invoke.texi (-finline-limit): Remove no longer true parts
1703 of the documentation. Note that there is no default value.
1704
1705 2008-02-01 Andrew Pinski <pinskia@gmail.com>
1706 Mark Mitchell <mark@codesourcery.com>
1707 Ben Elliston <bje@au.ibm.com>
1708
1709 PR c/29326
1710 * doc/extend.texi (Other Builtins): Document.
1711
1712 2008-01-31 Tom Browder <tom.browder@gmail.com>
1713
1714 * doc/c-tree.texi (Types): Fix grammar.
1715 (Expression trees): Ditto.
1716 * doc/passes.texi (Tree-SSA passes): Ditto.
1717
1718 * doc/configterms.texi (Configure Terms): Fix typo.
1719 * doc/cpp.texi (Common Predefined Macros): Ditto.
1720 * doc/md.texi (Machine Constraints): Ditto.
1721
1722 * doc/makefile.texi (Makefile): Add comma.
1723
1724 2008-01-31 Tom Browder <tom.browder@gmail.com>
1725 Gerald Pfeifer <gerald@pfeifer.com>
1726
1727 * doc/sourcebuild.texi (Front End): Remove references to CVS
1728 and CVSROOT/modules.
1729 (Texinfo Manuals): Replace reference to CVS by one to SVN.
1730 (Back End): Remove reference to CVS.
1731
1732 2008-01-31 Richard Sandiford <rsandifo@nildram.co.uk>
1733
1734 PR target/34900
1735 * config/mips/mips.c (gen_load_const_gp): New function, taking a
1736 comment from...
1737 (mips16_gp_pseudo_reg): ...here.
1738 * config/mips/mips.md (load_const_gp): Replace with...
1739 (load_const_gp_<mode>): ...this :P-based insn.
1740
1741 2008-01-31 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1742
1743 * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
1744 options. Minor fixes.
1745 (-std): Move reference to standards closer to where language
1746 standards are first mentioned.
1747
1748 2008-01-31 Richard Sandiford <rsandifo@nildram.co.uk>
1749
1750 PR rtl-optimization/34995
1751 * reload.c (alternative_allows_const_pool_ref): Take an rtx
1752 parameter and return a bool. If the rtx parameter is nonnull,
1753 check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
1754 (find_reloads): Update call accordingly. Pass the new operand
1755 if it needed no address reloads, otherwise pass null.
1756
1757 2008-01-30 Richard Henderson <rth@redhat.com>
1758
1759 PR c/34993
1760 * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
1761 for unbounded arrays.
1762
1763 2008-01-30 Silvius Rus <rus@google.com>
1764
1765 * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
1766
1767 2008-01-30 Jan Hubicka <jh@suse.cz>
1768
1769 PR target/34982
1770 * i386.c (init_cumulative_args): Use real function declaration when
1771 calling locally.
1772
1773 2008-01-30 Richard Sandiford <rsandifo@nildram.co.uk>
1774
1775 PR rtl-optimization/34998
1776 * global.c (build_insn_chain): Treat non-subreg_lowpart
1777 SUBREGs of pseudos as clobbering all the words covered by the
1778 SUBREG, not just all the bytes.
1779 * ra-conflict.c (clear_reg_in_live): Likewise. Take the
1780 original df_ref rather than an extract parameter.
1781 (global_conflicts): Update call accordingly.
1782
1783 2008-01-30 Andreas Krebbel <krebbel1@de.ibm.com>
1784
1785 * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
1786 the overflow check to make it easier to read.
1787 (__fixtfdi): Change the type of the ll member in union
1788 long_double to UDItype_x.
1789
1790 2008-01-30 Jakub Jelinek <jakub@redhat.com>
1791
1792 PR middle-end/34969
1793 * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
1794 * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
1795 * tree-inline.c (fold_marked_statements): Call
1796 cgraph_update_edges_for_call_stmt if folding a call statement.
1797 * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
1798 debug_generic_stmt calls, reset it back afterwards.
1799
1800 PR c/35017
1801 * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
1802 static decls.
1803 * c-typeck.c (build_external_ref): Don't pedwarn about
1804 static vars in current function's scope.
1805
1806 2008-01-29 Joseph Myers <joseph@codesourcery.com>
1807
1808 * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
1809
1810 2008-01-29 Bernhard Fischer <aldot@gcc.gnu.org>
1811
1812 PR c/35002
1813 * ipa-struct-reorg.c: Fix spelling.
1814 * params.def: Ditto.
1815
1816 2008-01-29 Richard Guenther <rguenther@suse.de>
1817
1818 PR middle-end/35006
1819 * tree-inline.h (struct copy_body_data): Add remapping_type_depth
1820 field.
1821 * tree-inline.c (remap_type): Increment remapping_type_depth
1822 around remapping types.
1823 (copy_body_r): Only add referenced variables if they are referenced
1824 from code, not types.
1825
1826 2008-01-29 Douglas Gregor <doug.gregor@gmail.com>
1827
1828 PR c++/34055
1829 PR c++/34103
1830 PR c++/34219
1831 PR c++/34606
1832 PR c++/34753
1833 PR c++/34754
1834 PR c++/34755
1835 PR c++/34919
1836 PR c++/34961
1837 * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
1838 qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
1839
1840 2008-01-28 Andy Hutchinson <hutchinsonandy@netscape.net>
1841
1842 PR target/34412
1843 * config/avr/avr.c (expand_prologue): Use correct QI mode frame
1844 pointer for tiny stack.
1845
1846 2008-01-28 Bernhard Fischer <aldot@gcc.gnu.org>
1847
1848 * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
1849
1850 2008-01-28 Bernhard Fischer <aldot@gcc.gnu.org>
1851
1852 * config/vx-common.h: Fix typo in comment.
1853
1854 2008-01-28 Ian Lance Taylor <iant@google.com>
1855
1856 PR c++/34862
1857 PR c++/33407
1858 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
1859 coalesce pointers if they have different DECL_NO_TBAA_P values.
1860 * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
1861 between variables with different DECL_NO_TBAA_P values.
1862
1863 2008-01-28 Nathan Froyd <froydnj@codesourcery.com>
1864
1865 PR 31535
1866 * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
1867 are not legitimate small data references on SPE targets.
1868
1869 2008-01-28 David Daney <ddaney@avtrex.com>
1870
1871 * doc/install.texi (mips-*-*): Recommend binutils 2.18.
1872
1873 2008-01-28 David Daney <ddaney@avtrex.com>
1874
1875 * doc/install.texi (--disable-libgcj-bc): Reword documentation.
1876
1877 2008-01-27 Joseph Myers <joseph@codesourcery.com>
1878
1879 * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
1880 m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
1881 *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
1882 *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
1883 hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
1884 i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
1885 i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
1886 vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
1887
1888 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
1889
1890 * basic-block.h (condjump_equiv_p): Fix comment.
1891
1892 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
1893
1894 * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
1895 print_generic_stmt_indented): Fix comment.
1896
1897 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
1898
1899 * configure.ac (__stack_chk_fail): Add detecion for availability
1900 of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
1901 * configure: Regenerate.
1902
1903 2008-01-26 Maxim Kuvyrkov <maxim@codesourcery.com>
1904
1905 PR middle-end/34688
1906 * final.c (output_addr_const): Handle TRUNCATE.
1907
1908 2008-01-26 Zdenek Dvorak <ook@ucw.cz>
1909
1910 PR target/34711
1911 * tree-ssa-loop-ivopts.c (comp_cost): New type.
1912 (zero_cost, infinite_cost): New constants.
1913 (struct cost_pair): Change type of cost to comp_cost.
1914 (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
1915 (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
1916 New functions.
1917 (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
1918 split_address_cost, ptr_difference_cost, difference_cost,
1919 get_computation_cost_at, get_computation_cost,
1920 determine_use_iv_cost_generic, determine_use_iv_cost_address,
1921 determine_use_iv_cost_condition, determine_use_iv_costs,
1922 cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
1923 iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
1924 iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
1925 Change type of cost to comp_cost.
1926 (determine_iv_cost): Increase cost of non-original ivs, instead
1927 of decreasing the cost of original ones.
1928 (get_address_cost): Indicate the complexity of the addressing mode
1929 in comp_cost.
1930 (try_add_cand_for): Prefer using ivs not specific to some object.
1931 * tree-flow.h (force_expr_to_var_cost): Declaration removed.
1932
1933 2008-01-26 Peter Bergner <bergner@vnet.ibm.com>
1934 Janis Johnson <janis187@us.ibm.com>
1935
1936 PR target/34814
1937 * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
1938 (TARGET_INSTANTIATE_DECLS): Likewise.
1939 * target.h (expand_to_rtl_hook): New target hook.
1940 (instantiate_decls): Likewise.
1941 * function.c (instantiate_decl): Make non-static. Rename to...
1942 (instantiate_decl_rtl): ... this.
1943 (instantiate_expr): Use instantiate_decl_rtl.
1944 (instantiate_decls_1): Likewise.
1945 (instantiate_decls): Likewise.
1946 (instantiate_virtual_regs: Call new instantiate_decls taget hook.
1947 * function.h (instantiate_decl_rtl): Add prototype.
1948 * cfgexpand.c (target.h): New include.
1949 (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
1950 * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
1951 (TARGET_INSTANTIATE_DECLS): Likewise.
1952 (TARGET_INITIALIZER): New target hooks added.
1953 * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
1954 New prototype.
1955 * config/rs6000/rs6000.c (tree-flow.h): New include.
1956 (machine_function): Add sdmode_stack_slot field.
1957 (rs6000_alloc_sdmode_stack_slot): New function.
1958 (rs6000_instantiate_decls): Likewise.
1959 (rs6000_secondary_memory_needed_rtx): Likewise.
1960 (rs6000_check_sdmode): Likewise.
1961 (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
1962 (TARGET_INSTANTIATE_DECLS): Likewise.
1963 (rs6000_hard_regno_mode_ok): Allow SDmode.
1964 (num_insns_constant): Likewise. Handle _Decimal32 constants.
1965 (rs6000_emit_move): Handle SDmode.
1966 (function_arg_advance): Likewise.
1967 (function_arg): Likewise.
1968 (rs6000_gimplify_va_arg): Likewise. Add special handling of
1969 SDmode var args for 32-bit compiles.
1970 (rs6000_secondary_reload_class): Handle SDmode.
1971 (rs6000_output_function_epilogue): Likewise.
1972 (rs6000_function_value): Simplify if statement.
1973 (rs6000_libcall_value): Likewise.
1974 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
1975 (SECONDARY_MEMORY_NEEDED_RTX): Add define.
1976 * config/rs6000/dfp.md (movsd): New define_expand and splitter.
1977 (movsd_hardfloat): New define_insn.
1978 (movsd_softfloat): Likewise.
1979 (movsd_store): Likewise.
1980 (movsd_load): Likewise.
1981 (extendsddd2): Likewise.
1982 (extendsdtd2): Likewise.
1983 (truncddsd2): Likewise.
1984 (movdd_hardfloat64): Fixup comment.
1985 (UNSPEC_MOVSD_LOAD): New constant.
1986 (UNSPEC_MOVSD_STORE): Likewise.
1987
1988 2008-01-26 Jakub Jelinek <jakub@redhat.com>
1989
1990 PR c++/34965
1991 * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
1992 TRUTH_XOR_EXPR.
1993 (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
1994 (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
1995 (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
1996 and TRUTH_XOR_EXPR.
1997
1998 2008-01-26 David Edelsohn <edelsohn@gnu.org>
1999
2000 PR target/34794
2001 * config.gcc: Separate AIX 5.3 from AIX 6.1.
2002 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
2003 __LONGDOUBLE128 too.
2004 * config/rs6000/aix61.h: New file.
2005
2006 2008-01-26 Richard Sandiford <rsandifo@nildram.co.uk>
2007
2008 PR rtl-optimization/34959
2009 * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
2010 popcount and parity rtxes the same mode as their operand.
2011 Truncate or extend the result to the return value's mode
2012 if necessary.
2013
2014 2008-01-26 Richard Sandiford <rsandifo@nildram.co.uk>
2015
2016 PR target/34981
2017 * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
2018 * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
2019 to GOT_VERSION_REGNUM.
2020 (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
2021 (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
2022 * config/mips/mips.c (mips_emit_call_insn): New function.
2023 (mips_call_tls_get_addr): Call mips_expand_call directly.
2024 (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
2025 emit_call_insn.
2026 (mips16_build_call_stub): Likewise. Return the call insn or null.
2027 (mips_expand_call): Update the call to mips16_build_call_stub
2028 accordingly and a remove redundant condition. Assert that MIPS16
2029 stubs do not use lazy binding. Use mips_emit_call_insn and return
2030 the call insn.
2031 (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
2032 TARGET_USE_GOT.
2033 (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
2034 (mips_avoid_hazard): Remove hazard_set handling.
2035 * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
2036 (UNSPEC_RESTORE_GP): ...this.
2037 (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
2038 (FAKE_CALL_REGNO): Rename to...
2039 (GOT_VERSION_REGNUM): ...this.
2040 (type): Add "ghost" value. Add an associated insn reservation.
2041 (hazard_set): Remove.
2042 (exception_receiver): Rename to...
2043 (restore_gp): ...this and update the unspec identifier accordingly.
2044 (exception_receiver, nonlocal_got_receiver): New expanders.
2045 (load_call<mode>): Use GOT_VERSION_REGNUM. Don't set
2046 FAKE_CALL_REGNO. Remove hazard_set attribute.
2047 (set_got_version, update_got_version): New patterns.
2048
2049 2008-01-26 Danny Smith <dannysmith@users.sourceforge.net>
2050
2051 PR target/34970
2052 * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
2053
2054 2008-01-25 Joseph Myers <joseph@codesourcery.com>
2055
2056 PR other/31955
2057 * doc/install.texi2html: Generate gcc-vers.texi.
2058
2059 2008-01-25 DJ Delorie <dj@redhat.com>
2060
2061 * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
2062
2063 2008-01-25 Joseph Myers <joseph@codesourcery.com>
2064
2065 * config/c4x: Remove directory.
2066 * config.gcc (crx-*, mt-*): Mark obsolete.
2067 (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
2068 h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
2069 sh-*-rtemscoff*): Remove cases.
2070 * defaults.h (C4X_FLOAT_FORMAT): Remove.
2071 * real.c (encode_c4x_single, decode_c4x_single,
2072 encode_c4x_extended, decode_c4x_extended, c4x_single_format,
2073 c4x_extended_format): Remove.
2074 * real.h (c4x_single_format, c4x_extended_format): Remove.
2075 * doc/extend.texi (interrupt, naked): Remove mention of attributes
2076 on C4x.
2077 (Pragmas): Remove comment about c4x pragmas.
2078 * doc/install.texi (c4x): Remove target-specific instructions.
2079 * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
2080 * doc/md.texi (Machine Constraints): Remove C4x documentation.
2081 * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
2082 refer to C4x source files as examples.
2083 (C4X_FLOAT_FORMAT): Remove documentation.
2084
2085 2008-01-25 Bernd Schmidt <bernd.schmidt@analog.com>
2086
2087 * config/bfin/bfin.c (override_options): Reorder tests so that
2088 flag_pic gets enabled for -msep-data.
2089
2090 2008-01-25 Richard Guenther <rguenther@suse.de>
2091
2092 PR middle-end/32244
2093 * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
2094 to its bitfield precision if required.
2095
2096 2008-01-25 Jakub Jelinek <jakub@redhat.com>
2097
2098 PR middle-end/33880
2099 * tree-nested.c (walk_omp_for): New function.
2100 (convert_nonlocal_reference, convert_local_reference): Call
2101 walk_omp_for on OMP_FOR.
2102 (convert_call_expr): Call walk_body on OMP_FOR's
2103 OMP_FOR_PRE_INIT_BODY.
2104
2105 2008-01-25 Richard Guenther <rguenther@suse.de>
2106
2107 PR tree-optimization/34966
2108 * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
2109 default defs and PHI_NODEs we have to insert after the
2110 defining statement.
2111
2112 2008-01-24 Nick Clifton <nickc@redhat.com>
2113
2114 * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
2115 Provide a default definition.
2116 (LIBGCC2_UNITS_PER_WORD): Likewise.
2117
2118 * config/stormy16/stormy16.c: Include df.h for the prototype
2119 for df_regs_ever_live_p.
2120 (xstormy16_expand_builtin_va_start): Convert the stack offset
2121 into a component_ref and then use POINTER_PLUS_EXPR to add it
2122 to the incoming_virtual_args_rtx.
2123 (xstormy16_gimplify_va_arg_expr): Rename to
2124 xstormy16_gimplify_va_arg_expr.
2125 Use POINTER_PLUS_EXPR when performing pointer arithmetic.
2126 (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
2127 xstormy16_gimplify_va_arg_expr.
2128 Fix up some formatting issues.
2129
2130 * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
2131 Move to predicates.md.
2132 (xs_hi_general_operand): Likewise.
2133 (xs_hi_nonmemory_operand): Likewise.
2134 * config/stormy16/predicates.md:
2135 (xstormy16_carry_plus_operand): New predicate.
2136 (xs_hi_general_operand): New predicate.
2137 (xs_hi_nonmemory_operand): New predicate.
2138 * config/stormy16/stormy16-protos.h:
2139 (xstormy16_carry_plus_operand): Delete prototype.
2140 (xs_hi_general_operand): Likewise.
2141 (xs_hi_nonmemory_operand): Likewise.
2142
2143 * config/storm16/stormy16.md (addhi3): Remove earlyclobber
2144 modifiers as they are no longer needed and they can trigger
2145 reload spill failures.
2146
2147 * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
2148 with a match_operand in order to help reload.
2149
2150 * config/storm16/stormy16.md (movhi_internal): Replace 'r'
2151 constraint with 'e' for the 8th alternative as this version of
2152 the mov.w instruction only accepts the lower 8 registers.
2153
2154 2008-01-25 Uros Bizjak <ubizjak@gmail.com>
2155
2156 PR target/34856
2157 * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
2158 Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
2159 vector elements.
2160
2161 2008-01-25 Jakub Jelinek <jakub@redhat.com>
2162
2163 PR middle-end/33333
2164 * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
2165
2166 2008-01-25 Golovanevsky Olga <olga@il.ibm.com>
2167
2168 * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
2169 New functions.
2170 (remove_structure): Update allocations list before removing structure.
2171
2172 2008-01-25 Golovanevsky Olga <olga@il.ibm.com>
2173
2174 * ipa-struct-reorg.c (is_safe_cond_expr,
2175 create_new_stmts_for_cond_expr): Use integer_zerop function,
2176 that recognize not only zero-pointer, but zero-integer too.
2177
2178 2008-01-25 Ben Elliston <bje@au.ibm.com>
2179
2180 PR other/22232
2181 * fixproto: Escape "." in sed expression that strips leading "./".
2182
2183 2008-01-24 H.J. Lu <hongjiu.lu@intel.com>
2184
2185 PR driver/34904
2186 * gcc.c (SWITCH_OK): Removed.
2187 (SWITCH_LIVE): Changed to bit.
2188 (SWITCH_FALSE): Likewise.
2189 (SWITCH_IGNORE): Likewise.
2190 (switchstr): Change live_cond to unsigned int.
2191 (process_command): Replace SWITCH_OK with 0.
2192 (do_self_spec): Likewise.
2193 (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
2194 (give_switch): Likewise.
2195 (used_arg): Likewise.
2196 (do_spec_1): Set the SWITCH_IGNORE bit.
2197 (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
2198 bits. Set the SWITCH_LIVE bit.
2199
2200 2008-01-24 Andreas Krebbel <krebbel1@de.ibm.com>
2201
2202 * config/s390/s390.h (MOVE_RATIO): Define new target macro.
2203
2204 2008-01-24 Richard Sandiford <rsandifo@nildram.co.uk>
2205
2206 PR tree-optimization/34472
2207 * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
2208 parameter to a "bool *" and set *DATA to false if there is
2209 an unsafe access. Do not delete the structure here.
2210 (check_cond_exprs): Delete it here instead.
2211 (check_cond_exprs, exclude_cold_structs): Do not increase
2212 I when removing a structure.
2213
2214 2008-01-24 Uros Bizjak <ubizjak@gmail.com>
2215
2216 PR target/34856
2217 * config/i386/i386.c (ix86_expand_vector_init): Consider only
2218 CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
2219
2220 2008-01-24 Jakub Jakub Jelinek <jakub@redhat.com>
2221
2222 PR middle-end/34934
2223 * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
2224 a fixed vector for stack.
2225
2226 2008-01-24 Ben Elliston <bje@au.ibm.com>
2227
2228 PR c++/25701
2229 * doc/gcc.texi (Software development): Add a direntry for g++.
2230
2231 2008-01-23 Hans-Peter Nilsson <hp@axis.com>
2232
2233 * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
2234 stale and straggling -fforce-addr comments above.
2235
2236 * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
2237 define.
2238 * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
2239 * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
2240
2241 2008-01-23 Michael Matz <matz@suse.de>
2242
2243 PR debug/34895
2244 * dwarf2out.c (force_type_die): Use modified_type_die instead of
2245 gen_type_die.
2246
2247 2008-01-23 Andreas Krebbel <krebbel1@de.ibm.com>
2248
2249 * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
2250 malloc result type.
2251
2252 2008-01-23 Anatoly Sokolov <aesok@post.ru>
2253
2254 * config/avr/avr.c (avr_current_arch): New variable.
2255 (avr_arch_types): Add 'avr31' and 'avr51' entries.
2256 (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
2257 (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
2258 (avr_override_options): Init 'avr_current_arch'.
2259 (base_arch_s): Move from here...
2260 * config/avr/avr.h (base_arch_s): ... here. Add new members
2261 'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename
2262 'mega' to 'have_jmp_call'.
2263 (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__",
2264 "__AVR_HAVE_RAMPZ__", "__AVR_HAVE_ELPM__" and "__AVR_HAVE_ELPMX__"
2265 macros.
2266 (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51'
2267 architectures.
2268 * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
2269 MULTILIB_MATCHES): (Ditto.).
2270
2271 2008-01-23 Richard Guenther <rguenther@suse.de>
2272
2273 PR middle-end/31529
2274 * cgraphunit.c (cgraph_reset_node): Always mark the node
2275 not reachable if it is not queued already.
2276
2277 2008-01-23 Bernd Schmidt <bernd.schmidt@analog.com>
2278
2279 * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
2280 * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
2281 (cputype_selected): New static variable.
2282 (bfin_handle_option): Set it if -mcpu is used.
2283 (override_option): Select default set of workarounds if no cpu type
2284 selected on the command line.
2285 (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
2286
2287 From Michael Frysinger <michael.frysinger@analog.com>
2288 * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
2289 BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
2290
2291 * config/bfin/elf.h (LIB_SPEC): Use proper linker script
2292 for bf547, bf523, bf524, and bf526.
2293 * config/bfin/bfin.c (bfin_cpus[]): Add bf547, bf523, bf524, and
2294 bf526.
2295 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
2296 __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
2297 __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
2298 __ADSPBF547__ and __ADSPBF54x__ for bf547.
2299 * doc/invoke.texi (Blackfin Options): Document that
2300 -mcpu now accept bf547, bf523, bf524, and bf526.
2301
2302 2008-01-22 Eric Botcazou <ebotcazou@adacore.com>
2303
2304 PR rtl-optimization/34628
2305 * combine.c (try_combine): Stop and undo after the first combination
2306 if an autoincrement side-effect on the first insn has effectively
2307 been lost.
2308
2309 2008-01-22 David Edelsohn <edelsohn@gnu.org>
2310
2311 PR target/34529
2312 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
2313 Offset addresses are not valid for Altivec or paired float modes.
2314
2315 2008-01-22 Jakub Jelinek <jakub@redhat.com>
2316
2317 PR c++/34607
2318 * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
2319 if DECL_INITIAL (decl) is error_mark_node.
2320
2321 PR c++/34914
2322 * c-common.c (handle_vector_size_attribute): Only allow
2323 integral, scalar float and fixed point types. Handle OFFSET_TYPE
2324 the same way as pointer, array etc. types.
2325 * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
2326
2327 PR c++/34917
2328 * tree.c (build_type_attribute_qual_variant): Call
2329 build_qualified_type if attributes are equal, but quals are not.
2330
2331 2008-01-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2332
2333 PR 32102
2334 * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
2335 * flags.h (warn_strict_aliasing): Remove.
2336 (warn_strict_overflow): Remove.
2337 * opts.c (warn_strict_aliasing): Remove.
2338 (warn_strict_overflow): Remove.
2339 * c-opts.c (c_common_handle_option): -Wall only sets
2340 -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
2341 (c_common_post_options): Give default values to -Wstrict-aliasing
2342 and -Wstrict-overflow if they are uninitialized.
2343 * common.opt (Wstrict-aliasing): Specify Var and Init.
2344 (Wstrict-overflow): Likewise.
2345
2346 2008-01-22 Kenneth Zadeck <zadeck@naturalbridge.com>
2347
2348 PR rtl-optimization/26854
2349 PR rtl-optimization/34400
2350 PR rtl-optimization/34884
2351 * ddg.c (create_ddg_dep_from_intra_loop_link): Use
2352 DF_RD->gen.
2353 * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
2354 (df_rd_bb_info.expanded_lr_out): Deleted
2355 * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
2356 * loop_iv.c (iv_analysis_loop_init): Ditto. * df-problems.c
2357 (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
2358 df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
2359 Removed code to allocate, initialize or free expanded_lr_out.
2360 (df_rd_bb_local_compute_process_def): Restructured to make more
2361 understandable.
2362 (df_rd_confluence_n): Removed code to no apply invalidate_by_call
2363 sets if the sets are being trimmed.
2364
2365 2008-01-22 H.J. Lu <hongjiu.lu@intel.com>
2366
2367 PR bootstrap/32287
2368 * configure.ac (ld_vers): Support GNU linker version xx.xx.*
2369 (as_vers): Likewise.
2370 * configure: Regenerated.
2371
2372 2008-01-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2373
2374 PR middle-end/33092
2375 * tree-pass.h (pass_build_alias): New pass.
2376 * tree-ssa-alias.c (gate_build_alias): New.
2377 (pass_build_alias): New.
2378 * passes.c (init_optimization_passes): Add pass_build_alias after
2379 pass_create_structure_vars.
2380
2381 2008-01-22 Wolfgang Gellerich <gellerich@de.ibm.com>
2382
2383 * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
2384 Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
2385 (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
2386 S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
2387 (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
2388 S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
2389 (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
2390 S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
2391 (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
2392 (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
2393 (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
2394 (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
2395 * config/s390/s390.md (FP_ALL): New mode iterator.
2396 (_d): New mode attribute.
2397 ("*signbit<mode>2>"): Changed mode of first operand.
2398 ("isinf<mode>2"): Changed mode of first operand.
2399 ("*TDC_insn"): Adaptation for DFP modes.
2400
2401 2008-01-22 Ben Elliston <bje@au.ibm.com>
2402
2403 * tree.c (check_qualified_type): Improve function description.
2404
2405 2008-01-21 Jason Merrill <jason@redhat.com>
2406
2407 PR c++/34196
2408 * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
2409 * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
2410 if it is set.
2411
2412 2008-01-21 DJ Delorie <dj@redhat.com>
2413
2414 * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
2415 return zero.
2416
2417 2008-01-21 Richard Guenther <rguenther@suse.de>
2418
2419 PR middle-end/34856
2420 * tree-cfg.c (verify_expr): Allow all invariant expressions
2421 instead of just constant class ones as reference argument.
2422 * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
2423 like any other constant.
2424 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
2425
2426 2008-01-21 H.J. Lu <hongjiu.lu@intel.com>
2427
2428 * regmove.c (fixup_match_1): Update call crossed frequencies.
2429
2430 2008-01-21 Richard Guenther <rguenther@suse.de>
2431
2432 PR c/34885
2433 * tree-inline.c (setup_one_parameter): Deal with mismatched
2434 types using a VIEW_CONVERT_EXPR.
2435
2436 2008-01-21 Alon Dayan <alond@il.ibm.com>
2437 Olga Golovanevsky <olga@il.ibm.com>
2438
2439 PR tree-optimization/34701
2440 * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
2441 when the structure size is not a power of 2.
2442
2443 2008-01-20 Kenneth Zadeck <zadeck@naturalbridge.com>
2444
2445 * doc/install.texi: Add doc for --enable-checking=df.
2446
2447 2008-01-20 Kaz Kojima <kkojima@gcc.gnu.org>
2448
2449 PR rtl-optimization/34808
2450 * emit-rtl.c (try_split): Handle REG_RETVAL notes.
2451
2452 2008-01-20 Richard Sandiford <rsandifo@nildram.co.uk>
2453
2454 * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
2455 input.
2456
2457 2008-01-19 Kenneth Zadeck <zadeck@naturalbridge.com>
2458
2459 PR rtl-optimization/26854
2460 PR rtl-optimization/34400
2461 * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
2462 DF_RD->gen.
2463 * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
2464 (df_rd_bb_info.expanded_lr_out): New.
2465 * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
2466 * loop_iv.c (iv_analysis_loop_init): Ditto.
2467 * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
2468 df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
2469 Added code to allocate, initialize or free expanded_lr_out.
2470 (df_rd_bb_local_compute_process_def): Restructured to make
2471 more understandable.
2472 (df_rd_confluence_n): Add code to do nothing with fake edges and
2473 code to no apply invalidate_by_call sets if the sets are being trimmed.
2474 (df_lr_local_finalize): Renamed to df_lr_finalize.
2475 (df_live_local_finalize): Renamed to df_live_finalize.
2476
2477 2008-01-20 Richard Sandiford <rsandifo@nildram.co.uk>
2478
2479 PR target/34831
2480 * config/mips/mips.md (div<mode>3): Use <recip_condition> when
2481 deciding whether to use reciprocal instructions.
2482
2483 2008-01-19 Uros Bizjak <ubizjak@gmail.com>
2484
2485 * dwarf2out.c (dwarf2out_switch_text_section): Do not call
2486 dwarf2out_note_section_used if cold_text_section is NULL.
2487
2488 2008-01-19 Jakub Jelinek <jakub@redhat.com>
2489
2490 PR gcov-profile/34610
2491 * tree-cfg.c (make_edges): Mark both outgoing edges from
2492 OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
2493 * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
2494 from OMP_FOR and OMP_CONTINUE outgoing edges.
2495
2496 * tree-profile.c (tree_profiling): Return early if
2497 cfun->after_tree_profile != 0. Set cfun->after_tree_profile
2498 at the end.
2499 * omp-low.c (expand_omp_parallel): Copy after_tree_profile
2500 from cfun to child_cfun.
2501 * function.h (struct function): Add after_tree_profile bit.
2502
2503 2008-01-19 Anatoly Sokolov <aesok@post.ru>
2504
2505 * config/avr/avr.S (_exit): Disable interrupt.
2506
2507 2008-01-18 Kenneth Zadeck <zadeck@naturalbridge.com>
2508 Steven Bosscher <stevenb.gcc@gmail.com>
2509
2510 PR rtl-optimization/26854
2511 PR rtl-optimization/34400
2512 * df-problems.c (df_live_scratch): New scratch bitmap.
2513 (df_live_alloc): Allocate df_live_scratch when doing df_live.
2514 (df_live_reset): Clear the proper bitmaps.
2515 (df_live_bb_local_compute): Only process the artificial defs once
2516 since the order is not important.
2517 (df_live_init): Init the df_live sets only with the variables
2518 found live by df_lr.
2519 (df_live_transfer_function): Use the df_lr sets to prune the
2520 df_live sets as they are being computed.
2521 (df_live_free): Free df_live_scratch.
2522
2523 2008-01-18 Ian Lance Taylor <iant@google.com>
2524
2525 * common.opt: Add fmerge-debug-strings.
2526 * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
2527 flag_merge_debug_strings rather than flag_merge_constants.
2528 * doc/invoke.texi (Option Summary): Mention
2529 -fmerge-debug-strings.
2530 (Debugging Options): Document -fmerge-debug-strings.
2531
2532 2008-01-18 Ian Lance Taylor <iant@google.com>
2533
2534 PR c++/33407
2535 * tree.h (DECL_IS_OPERATOR_NEW): Define.
2536 (struct tree_function_decl): Add new field operator_new_flag.
2537 * tree-inline.c (expand_call_inline): When inlining a call to
2538 operator new, force the return value to go into a variable, and
2539 set DECL_NO_TBAA_P on that variable.
2540 * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
2541
2542 2008-01-18 Uros Bizjak <ubizjak@gmail.com>
2543
2544 PR debug/34484
2545 * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
2546 DWARF2_DEBUGGING_INFO.
2547 (dwarf2out_note_section_used): Ditto. Add prototype.
2548 (have_multiple_function_sections, text_section_used,
2549 cold_text_section_used, *cold_text_sections): Move declarations
2550 before their uses.
2551
2552 2008-01-17 Bob Wilson <bob.wilson@acm.org>
2553
2554 * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
2555 field and add signal_ra.
2556 * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
2557 assignments to frame state pc. Move end of stack check after
2558 MD_FALLBACK_FRAME_STATE_FOR.
2559 (uw_update_context_1): Use frame state signal_regs if set, instead
2560 of checking signal_frame flag.
2561 (uw_update_context): Use frame state signal_ra if set.
2562 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
2563 * config/xtensa/linux-unwind.h: New file.
2564
2565 2008-01-18 Bernhard Fischer <aldot@gcc.gnu.org>
2566
2567 * modulo-sched.c (get_sched_window): Fix comment typo.
2568
2569 2008-01-17 Andrew MacLeod <amacleod@redhat.com>
2570
2571 PR tree-optimization/34648
2572 * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
2573
2574 2008-01-17 Anatoly Sokolov <aesok@post.ru>
2575
2576 * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
2577 * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
2578
2579 2008-01-17 Seongbae Park <seongbae.park@gmail.com>
2580
2581 PR rtl-optimization/34400
2582 * df-core.c (df_worklist_dataflow_overeager,
2583 df_worklist_dataflow_doublequeue): New functions.
2584 (df_worklist_dataflow): Two different worklist solvers.
2585 * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
2586 New param.
2587
2588 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
2589
2590 PR testsuite/34821
2591 * doc/invoke.texi: Document the dependence on pthread for fopenmp
2592 and ftree-parallelize-loops.
2593
2594 2008-01-17 Mircea Namolaru <namolaru@il.ibm.com>
2595
2596 PR rtl-optimization/34826
2597 * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
2598
2599 2008-01-17 Andreas Krebbel <krebbel1@de.ibm.com>
2600
2601 * global.c (find_reg): Mark the eh regs as used if necessary.
2602 * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
2603 * ra.h (struct allocno): no_eh_reg field added. Changed
2604 no_stack_reg type to bitfield.
2605
2606 2008-01-17 Eric Botcazou <ebotcazou@adacore.com>
2607
2608 * tree.c (substitute_in_expr): Add missing 'break'.
2609
2610 2008-01-17 Richard Guenther <rguenther@suse.de>
2611
2612 PR tree-optimization/34825
2613 * tree-ssa-math-opts.c (is_division_by): Do not recognize
2614 x / x as division to handle.
2615
2616 2008-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2617
2618 * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
2619 "-pthread" is specified.
2620 * pa-hpux11.h (LIB_SPEC): Likewise.
2621
2622 2008-01-16 Janis Johnson <janis187@us.ibm.com>
2623 Peter Bergner <bergner@vnet.ibm.com>
2624
2625 PR rtl-optimization/33796
2626 * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
2627
2628 2008-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2629
2630 PR libgfortran/34699
2631 * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
2632 static links.
2633 * pa-hpux10.h (LINK_SPEC): Likewise.
2634 * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
2635
2636 2008-01-16 Richard Guenther <rguenther@suse.de>
2637
2638 PR middle-end/32628
2639 * fold-const.c (fold_convert_const_int_from_int): Do not
2640 set overflow if that occured only because of a sign extension
2641 change when converting from/to a sizetype with the same
2642 precision and signedness.
2643
2644 2008-01-16 Uros Bizjak <ubizjak@gmail.com>
2645
2646 PR debug/34249
2647 * dwarf2out.c (output_call_frame_info): Move output of FDE initial
2648 location address to the correct place. Update copyright year.
2649
2650 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
2651
2652 * lambda-code.c (lambda_transform_legal_p): Handle the case of
2653 no dependences in the dependence_relations vector.
2654
2655 2008-01-16 Jan Hubicka <jh@suse.cz>
2656
2657 PR rtl-optimization/31396
2658 * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
2659 * cfg.c (dump_reg_info): Print it.
2660 * regs.h (struct reg_info_t): add freq_calls_crossed.
2661 (REG_FREQ_CALLS_CROSSED): New macro.
2662 * global.c (global_alloc): Compute freq_calls_crossed for allocno.
2663 (find_reg): Update call of CALLER_SAVE_PROFITABLE.
2664 * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
2665 regmove_optimize): Update call crossed frequencies.
2666 * local-alloc.c (struct qty): Add freq_calls_crossed.
2667 (alloc_qty): Copute freq_calls_crossed.
2668 (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
2669 (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
2670 * ra.h (struct allocno): Add freq_calls_crossed.
2671
2672 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
2673
2674 * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
2675 libgomp when compiling with ftree-parallelize-loops.
2676 (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
2677
2678 2008-01-16 Richard Guenther <rguenther@suse.de>
2679
2680 PR tree-optimization/34769
2681 * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
2682 * tree.c (int_cst_value): Instead make this function more
2683 permissive in what it accepts as valid input. Document this
2684 function always sign-extends the value.
2685
2686 2008-01-16 Jakub Jelinek <jakub@redhat.com>
2687 Richard Guenther <rguenther@suse.de>
2688
2689 PR c/34668
2690 * gimplify.c (fold_indirect_ref_rhs): Rename to ...
2691 (gimple_fold_indirect_ref_rhs): ... this.
2692 (gimple_fold_indirect_ref): New function with foldings
2693 that preserve lvalueness.
2694 (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
2695 * tree-flow.h (gimple_fold_indirect_ref): Declare.
2696 * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
2697 to fold an INDIRECT_REF, fall back to the old use of
2698 fold_indirect_ref_1.
2699
2700 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
2701
2702 * tree-data-ref.c (subscript_dependence_tester_1): Call
2703 free_conflict_function.
2704 (compute_self_dependence): Same.
2705
2706 2008-01-16 Uros Bizjak <ubizjak@gmail.com>
2707
2708 PR debug/34249
2709 * debug.h (dwarf2out_switch_text_section): Move declaration from ...
2710 * dwarf2out.c (dwarf2out_switch_text_section): ... here. Make
2711 function global.
2712 * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
2713 Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
2714 for DWARF2_UNWIND_INFO targets.
2715
2716 2008-01-16 Richard Guenther <rguenther@suse.de>
2717
2718 PR c/34768
2719 * c-typeck.c (common_pointer_type): Do not merge inconsistent
2720 type qualifiers for function types.
2721
2722 2008-01-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
2723
2724 * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
2725 loop_iterator li from previous commit.
2726
2727 2008-01-15 Sebastian Pop <sebastian.pop@amd.com>
2728
2729 * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
2730
2731 2008-01-12 Sebastian Pop <sebastian.pop@amd.com>
2732
2733 * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
2734 (parallelize_loops): Don't parallelize irreducible components.
2735
2736 2008-01-14 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2737
2738 PR c++/24924
2739 * c-opts (c_common_post_options): Do not enable CPP
2740 flag_pedantic_errors by default.
2741
2742 2008-01-14 Eric Botcazou <ebotcazou@adacore.com>
2743
2744 PR rtl-optimization/31944
2745 * cse.c (remove_pseudo_from_table): New function.
2746 (merge_equiv_classes): Use above function to remove pseudo-registers.
2747 (invalidate): Likewise.
2748
2749 2008-01-13 Richard Guenther <rguenther@suse.de>
2750
2751 PR middle-end/34601
2752 * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
2753 instead of TYPE_MODE to deal with calls from expand_one_error_var.
2754
2755 2008-01-13 Uros Bizjak <ubizjak@gmail.com>
2756
2757 * gcse.c (cprop_jump): Call validate_unshare_change instead of
2758 validate_change to unshare the source of the PC set.
2759
2760 2008-01-12 Jan Hubicka <jh@suse.cz>
2761
2762 PR middle-end/32135
2763 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
2764 references above array bounds. This might trigger bounds checks for
2765 pointers to arrays.
2766
2767 2008-01-12 Sebastian Pop <sebastian.pop@amd.com>
2768
2769 * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
2770 new_replaceable_dependencies.
2771
2772 2008-01-12 Doug Kwan <dougkwan@google.com>
2773
2774 * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
2775 instead of OPT_Wreturn_type in warning due to ignored return type
2776 qualifiers.
2777 * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
2778 options included in -Wextra.
2779 * c.opt: New option -Wignored_qualifiers.
2780 * doc/invoke.texi (Warning Options, -Wextra): Add new option
2781 -Wignore_qualifiers.
2782 (-Wignored-qualifiers): Document.
2783 (-Wreturn-type): Remove description of functionality now handled
2784 by -Wignored-qualifiers.
2785
2786 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
2787
2788 PR ada/33788
2789 * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
2790 NOP_EXPR if it is between integral types with the same precision.
2791
2792 2008-01-12 Jan Hubicka <jh@suse.cz>
2793
2794 PR other/28023
2795 * invoke.texi (max-inline-recursive-depth): Fix default value.
2796
2797 2008-01-12 Zdenek Dvorak <ook@ucw.cz>
2798
2799 * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
2800 correct type.
2801
2802 2008-01-11 Bob Wilson <bob.wilson@acm.org>
2803
2804 * config/xtensa/xtensa.c (override_options): Set flag_shlib.
2805
2806 2008-01-11 James E. Wilson <wilson@specifix.com>
2807
2808 PR target/26015
2809 * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
2810
2811 2008-01-11 Anatoly Sokolov <aesok@post.ru>
2812
2813 * config/avr/avr.c (expand_prologue, expand_epilogue): Don't
2814 save/restore frame pointer register and don't use 'call-prologues'
2815 optimization in function with "OS_task" attribute.
2816
2817 2008-01-11 Eric Botcazou <ebotcazou@adacore.com>
2818
2819 PR middle-end/31309
2820 * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
2821 when copying to memory.
2822
2823 2008-01-11 Steven Bosscher <stevenb.gcc@gmail.com>
2824
2825 PR rtl-optimization/30905
2826 * cfgcleanup.c: Include dce.h
2827 (crossjumps_occured): New global variable.
2828 (try_crossjump_bb): Exit loop after finding a fallthru edge.
2829 If something changed, set crossjumps_occured to true.
2830 (try_optimize_cfg): Clear crossjumps_occured at the beginning.
2831 Don't add/remove fake edges to exit here...
2832 (cleanup_cfg): ...but do it here, when crossjumping.
2833 Run a fast DCE when successful crossjumps occured in the latest
2834 iteration of try_optimize_cfg.
2835
2836 2008-01-11 Richard Guenther <rguenther@suse.de>
2837
2838 * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
2839 (struct vn_unary_op_s): Likewise.
2840 (vn_reference_insert): Free old reference on hash collision.
2841
2842 2008-01-10 Raksit Ashok <raksit@google.com>
2843
2844 PR rtl-optimization/27971
2845 * combine.c (find_split_point): Split PLUS expressions which are
2846 inside a MEM rtx, and whose first operand is complex.
2847
2848 2008-01-10 DJ Delorie <dj@redhat.com>
2849
2850 * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
2851 (m32c_hard_regno_nregs): ...this, which is now a wrapper.
2852 (m32c_hard_regno_ok): Call the underlying function.
2853
2854 2008-01-10 Richard Guenther <rguenther@suse.de>
2855
2856 PR middle-end/34683
2857 * tree-cfg.c (tree_merge_blocks): Do not go through the
2858 full-blown folding and stmt updating path if we just deal
2859 with virtual operands.
2860 * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
2861 test for abnormal SSA_NAMEs.
2862
2863 2008-01-10 Andreas Krebbel <krebbel1@de.ibm.com>
2864
2865 PR middle-end/34641
2866 * reload.c (push_reload): Add assertions. All constants from
2867 reg_equiv_constant should have been used for replacing the respective
2868 pseudo earlier.
2869 (find_reloads_address): Invoke find_reloads_address_part for
2870 constant taken from the reg_equiv_constant array.
2871
2872 2008-01-10 Steven Bosscher <stevenb.gcc@gmail.com>
2873
2874 * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
2875 field (valnum) the first in the struct. Replace bools with
2876 unit bit fields.
2877
2878 2008-01-10 Richard Guenther <rguenther@suse.de>
2879
2880 PR tree-optimization/34651
2881 * tree-sra.c (sra_build_assignment): Sanitize. Use the correct
2882 types and ordering for masking and converting.
2883
2884 2008-01-09 Sebastian Pop <sebastian.pop@amd.com>
2885
2886 PR tree-optimization/34017
2887 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
2888 also for PHI_NODE expressions.
2889
2890 2008-01-09 Jan Hubicka <jh@suse.cz>
2891
2892 PR tree-optimization/34708
2893 * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
2894 based on number of case labels.
2895 (init_inline_once): Remove switch_cost.
2896 * tree-inline.h (eni_weights_d): Remove switch_cost.
2897
2898 2008-01-09 Richard Guenther <rguenther@suse.de>
2899 Andrew Pinski <andrew_pinski@playstation.sony.com>
2900
2901 PR middle-end/30132
2902 * gimplify.c (gimplify_cond_expr): Do not create an addressable
2903 temporary if an rvalue is ok or an lvalue is not required.
2904
2905 2008-01-09 Richard Guenther <rguenther@suse.de>
2906
2907 PR middle-end/34458
2908 * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
2909 adjust return type.
2910
2911 2008-01-09 Richard Guenther <rguenther@suse.de>
2912
2913 PR middle-end/34679
2914 * tree.c (host_integerp): Check for sizetype only if the
2915 type is an integer type.
2916
2917 2008-01-09 Steven Bosscher <stevenb.gcc@gmail.com>
2918
2919 PR debug/26364
2920 * opts.c (decode_options): Disable inlining of functions called
2921 once if not in unit-at-a-time mode.
2922
2923 2008-01-09 Alexandre Oliva <aoliva@redhat.com>
2924
2925 * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
2926
2927 2008-01-08 Richard Guenther <rguenther@suse.de>
2928
2929 PR middle-end/31863
2930 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
2931 out early if the result will be unused.
2932
2933 2008-01-08 Uros Bizjak <ubizjak@gmail.com>
2934
2935 PR target/34709
2936 Revert:
2937
2938 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
2939 * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
2940 for TARGET_RECIP.
2941
2942 2008-01-08 Jan Sjodin <jan.sjodin@amd.com>
2943
2944 * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
2945 for vectorization tuned.
2946
2947 2008-01-08 Richard Guenther <rguenther@suse.de>
2948
2949 PR tree-optimization/34683
2950 * tree-ssa-operands.c (operand_build_cmp): Export.
2951 * tree-ssa-operands.h (operand_build_cmp): Declare.
2952 * tree-vn.c (vuses_compare): Remove.
2953 (sort_vuses): Use operand_build_cmp.
2954 (sort_vuses_heap): Likewise.
2955 * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
2956 to re-use old VEC if available. Do not sort already sorted VUSEs.
2957 (vdefs_to_vec): Do not sort already sorted VDEFs.
2958
2959 2008-01-08 Jakub Jelinek <jakub@redhat.com>
2960
2961 PR middle-end/34694
2962 * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
2963
2964 2008-01-08 Uros Bizjak <ubizjak@gmail.com>
2965
2966 PR target/34702
2967 * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
2968 limitations of reciprocal sequences on x86 targets.
2969
2970 2008-01-08 Richard Guenther <rguenther@suse.de>
2971
2972 PR tree-optimization/34683
2973 * tree-flow-inline.h (var_ann): Remove overzealous asserts.
2974
2975 2008-01-07 Jakub Jelinek <jakub@redhat.com>
2976
2977 PR target/34622
2978 * config/darwin.c (darwin_mergeable_string_section): Don't use
2979 .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
2980
2981 2008-01-07 Uros Bizjak <ubizjak@gmail.com>
2982
2983 PR target/34682
2984 * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
2985 negxf2. Macroize expander using X87MODEF mode iterator. Change
2986 predicates of op0 and op1 to register_operand.
2987 (abs<mode>2): Rename from abssf2, absdf2 and negxf2. Macroize
2988 expander using X87MODEF mode iterator. Change predicates of
2989 op0 and op1 to register_operand.
2990 ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
2991 corresponding patterns and macroize using MODEF macro. Change
2992 predicates of op0 and op1 to register_operand and remove
2993 "m" constraint. Disparage "r" alternative with "!".
2994 ("*absneg<mode>2_i387"): Rename from corresponding patterns and
2995 macroize using X87MODEF macro. Change predicates of op0 and op1
2996 to register_operand and remove "m" constraint. Disparage "r"
2997 alternative with "!".
2998 (absneg splitter with memory operands): Remove.
2999 ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
3000 patterns and macroize using X87MODEF mode iterator.
3001 * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
3002 Change predicate of op1 to register_operand.
3003 * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
3004 for memory operands.
3005
3006 2008-01-07 Nathan Froyd <froydnj@codesourcery.com>
3007
3008 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
3009
3010 2008-01-07 Richard Guenther <rguenther@suse.de>
3011
3012 * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
3013 fields.
3014
3015 2008-01-07 Richard Guenther <rguenther@suse.de>
3016
3017 PR tree-optimization/34683
3018 * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
3019 VOPs of the needed size to save memory. Use VEC_quick_push
3020 to save compile-time.
3021 (vdefs_to_vec): Likewise.
3022
3023 2008-01-07 Sa Liu <saliu@de.ibm.com>
3024
3025 * config/spu/spu.md (divdf3): Genetate inline code for double
3026 division. The implementation doesn't handle INF or NAN, therefore it
3027 only applies when -ffinite-math-only is given.
3028
3029 2008-01-06 Paolo Carlini <pcarlini@suse.de>
3030
3031 PR libstdc++/34680
3032 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
3033 * doc/cpp.texi ([Common Predefined Macros]): Document.
3034
3035 2008-01-06 Uros Bizjak <ubizjak@gmail.com>
3036
3037 * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
3038 order to use commutative addition instead of subtraction.
3039
3040 2008-01-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
3041 Mircea Namolaru <namolaru@il.ibm.com>
3042 Vladimir Yanovsky <yanov@il.ibm.com>
3043 Revital Eres <eres@il.ibm.com>
3044
3045 PR tree-optimization/34263
3046 * tree-outof-ssa.c (process_single_block_loop_latch,
3047 contains_tree_r): New functions.
3048 (analyze_edges_for_bb): Call process_single_block_loop_latch
3049 function to empty single-basic-block latch block if possible.
3050
3051 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
3052
3053 * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
3054 for TARGET_RECIP.
3055 (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
3056
3057 2008-01-05 Richard Sandiford <rsandifo@nildram.co.uk>
3058
3059 * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
3060
3061 2008-01-05 Richard Sandiford <rsandifo@nildram.co.uk>
3062
3063 * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
3064
3065 2008-01-05 Jakub Jelinek <jakub@redhat.com>
3066
3067 PR tree-optimization/34618
3068 * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
3069 flag from T.
3070
3071 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
3072
3073 PR target/34673
3074 * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
3075 in the call to gen_rtx_NE. Remove unneeded VECTOR_MODE_P check.
3076 Update copyright year.
3077
3078 * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
3079 Update copyright year.
3080 * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
3081 using NR fixup.
3082
3083 2008-01-05 Zhouyi Zhou <zhouzhouyi@FreeBSD.org>
3084
3085 * tree-vrp.c (find_conditional_asserts): Remove redundant check that
3086 edge does not point to current bb before changing need_assert.
3087
3088 2008-01-04 Richard Guenther <rguenther@suse.de>
3089
3090 PR middle-end/34029
3091 * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
3092 for verifying purposes if they are is_gimple_min_invariant.
3093
3094 2008-01-04 Aldy Hernandez <aldyh@redhat.com>
3095
3096 PR tree-optimization/34448
3097 PR tree-optimization/34465
3098 * gimplify.c (gimplify_init_constructor): Add new parameter
3099 notify_temp_creation. Use it.
3100 (gimplify_modify_expr_rhs): Take volatiles into account when
3101 optimizing constructors.
3102 Do not optimize constructors if gimplify_init_constructor will dump to
3103 memory.
3104 * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
3105 * gcc.c-torture/compile/pr34448.c: New.
3106
3107 2008-01-04 Jakub Jelinek <jakub@redhat.com>
3108
3109 PR gcov-profile/34609
3110 * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
3111 return_slot if result is TREE_ADDRESSABLE.
3112
3113 2008-01-04 Richard Sandiford <rsandifo@nildram.co.uk>
3114
3115 * config/mips/mips.md (sqrt_condition): Tweak comment.
3116 (recip_condition): Likewise. Require TARGET_FLOAT64 for DFmode.
3117
3118 2008-01-03 Tom Tromey <tromey@redhat.com>
3119
3120 PR c/34457
3121 * c-common.c (c_type_hash): Handle VLAs.
3122
3123 2008-01-03 Jan Hubicka <jh@suse.cz>
3124
3125 PR tree-optimization/31081
3126 * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
3127 0 when inlining and not inlining to first basic block.
3128 (remap_decl): When var is initialized to 0, don't set default_def.
3129 (expand_call_inline): Set entry_bb.
3130 * tree-inline.h (copy_body_data): Add entry_bb.
3131
3132 2008-01-03 Jakub Jelinek <jakub@redhat.com>
3133
3134 PR c++/34619
3135 * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
3136 before returning.
3137
3138 PR tree-optimization/29484
3139 * tree-inline.c (inline_forbidden_p_2): New function.
3140 (inline_forbidden_p): Disallow inlining if some static var
3141 has an address of a local LABEL_DECL in its initializer.
3142 * doc/extend.texi (Labels as Values): Document &&foo behaviour
3143 vs. inlining.
3144
3145 2008-01-03 Sebastian Pop <sebastian.pop@amd.com>
3146
3147 PR tree-optimization/34635
3148 * tree-data-ref.c (add_other_self_distances): Make sure that the
3149 evolution step is constant.
3150
3151 2008-01-03 Jakub Jelinek <jakub@redhat.com>
3152
3153 PR middle-end/34608
3154 * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
3155
3156 2008-01-02 Richard Sandiford <rsandifo@nildram.co.uk>
3157
3158 * tree-sra.c (scalarize_init): Insert the generate_element_init
3159 statements after the generate_element_zero statements.
3160
3161 2008-01-02 Richard Guenther <rguenther@suse.de>
3162
3163 PR middle-end/34093
3164 PR middle-end/31976
3165 * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
3166 for very large number of operands instead of ICEing.
3167
3168 2008-01-02 Arthur Norman <acn1@cam.ac.uk>
3169
3170 PR target/34013
3171 * gcc/config/i386/i386.c (ix86_expand_prologue): Save red-zone
3172 while stack probing.
3173
3174 2008-01-01 Douglas Gregor <doug.gregor@gmail.com>
3175
3176 * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
3177 in C++0x mode.
3178
3179 2008-01-01 Volker Reichelt <v.reichelt@netcologne.de>
3180
3181 PR libmudflap/26442
3182 * tree-mudflap.c (mx_register_decls): Guard warning by
3183 !DECL_ARTIFICIAL check.
3184
3185 2008-01-01 Jakub Jelinek <jakub@redhat.com>
3186
3187 * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
3188 sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
3189 sse5_perm<mode>): Fix constraints.