OSDN Git Service

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