OSDN Git Service

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