OSDN Git Service

d2599353201cc12f64490447d833d28439be67de
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
2
3         * config/mips/mips.md (GPR2): New mode iterator.
4         (seq): Add comment.
5         (*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
6         *sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
7         *slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
8         Rewrite these to take two modes, the mode of comparison and the
9         mode of the destination.
10         * config/mips/mips.c (mips_expand_scc): Instead of having
11         paradoxical subreg as destination, expand "narrowing" scc if mode
12         of comparison is SI and target is requested in DI mode.
13         (mips_emit_int_order_test): Update comment.  Make mode of
14         comparison match CMP0 rather than TARGET.  When creating inverse
15         target use mode of TARGET.
16
17 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
18
19         * gcov-dump.c (tag_summary): Only print summaries for the first
20         GCOV_COUNTERS_SUMMABLE counters.
21
22 2008-04-10  Uros Bizjak  <ubizjak@gmail.com>
23
24         * config/i386/i386.md (absneg): New code iterator.
25         (absnegprefix): New code attribute.
26         (<code><mode>2): Macroize expander from abs<mode>2 and neg<mode>2
27         patterns using absneg code iterator.
28         (<code>tf2): Macroize expander from abstf2 and negtf2 patterns
29         using absneg code iterator.
30         (*<code><mode>2_1): Macroize insn pattern from *abs<mode>2_1 and
31         *neg<mode>2 patterns using absneg code iterator.
32         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
33         *negextendsfdf2 patterns using absneg code iterator.
34         (*<code>extendsfxf2): Macroize insn pattern from *absextendsfxf2 and
35         *negextendsfxf2 patterns using absneg code iterator.
36         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
37         *negextendsfdf2 patterns using absneg code iterator.
38         * config/i386/sse.md (<code><mode>2): Macroize expander from
39         abs<mode>2 and neg<mode>2 patterns using absneg code iterator. 
40
41 2008-04-10  Andreas Krebbel  <krebbel1@de.ibm.com>
42
43         * config/s390/s390.h: Remove the remains of the recent search
44         & replace action of current_function_outgoing_args_size.
45
46 2008-04-10  Ira Rosen  <irar@il.ibm.com>
47
48         PR tree-optimization/35821
49         * tree-vect-transform.c (vect_create_data_ref_ptr): Add check that
50         NEW_STMT_LIST is not NULL.
51
52 2008-04-09  David Edelsohn  <edelsohn@gnu.org>
53
54         PR libstdc++/35597
55         * toplev.c (process_options): Remove -ffunction-sections debugging
56         warning.
57
58 2008-04-09  Peter Bergner  <bergner@vnet.ibm.com>
59
60         PR middle-end/PR28690
61         * explow.c (break_out_memory_refs): Use simplify_gen_binary rather
62         than gen_rtx_fmt_ee to perform more canonicalizations.
63
64 2008-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
65
66         PR driver/35665
67         * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
68
69 2008-04-09  Richard Guenther  <rguenther@suse.de>
70
71         * tree-cfg.c (verify_stmt): Print complete bogus stmt.
72         (dump_function_to_file): Dump function arguments with types.
73
74 2008-04-08  Richard Guenther  <rguenther@suse.de>
75
76         * fold-const.c (fold_widened_comparison): Do not allow
77         sign-changes that change the result.
78
79 2008-04-08  Janis Johnson  <janis187@us.ibm.com>
80
81         PR target/35839
82         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
83         kinds of indirect references.
84
85 2008-04-08  David Edelsohn  <edelsohn@gnu.org>
86
87         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
88         GNU Fortran language string.
89
90 2008-04-08  Rafael Espindola  <espindola@google.com>
91
92         * fold-canst.c (tree_call_nonnegative_warnv_p): New.
93         (tree_invalid_nonnegative_warnv_p): Use tree_call_nonnegative_warnv_p.
94         * tree.h (tree_call_nonnegative_warnv_p): New.
95
96 2008-04-08  Jan Hubicka  <jh@suse.cz>
97
98         * function.c (free_after_compilation): Clear out regno_reg_rtx
99         pointer.
100
101 2008-04-08  Peter Bergner  <bergner@vnet.ibm.com>
102
103         Revert
104         2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
105
106         PR middle-end/PR28690
107         * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
108         same precedence as REG_POINTER and MEM_POINTER operands.
109
110 2008-04-08  Richard Guenther  <rguenther@suse.de>
111
112         PR middle-end/35834
113         * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
114         for adding index to base.
115
116 2008-04-08  Kai Tietz  <kai.tietz@onevision.com>
117
118         * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
119         (MINGW_ENABLE_EXECUTE_STACK): New.
120         (IN_LIBGCC2): For libgcc include windows.h file for
121         function declarations.
122
123 2008-04-08  Hans-Peter Nilsson  <hp@axis.com>
124
125         * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
126         and tem2 if tem1 is not a REG or MULT.
127
128 2008-04-08  Jan Hubicka  <jh@suse.cz>
129
130         * function.h (incomming_args): Break out of struct function.
131         (function_subsections): Break out of struct function.
132         (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
133         return_rtx and hard_reg_initial_vals from struct function.
134         Kill inl_max_label_num.
135         (current_function_pops_args, current_function_args_info,
136         current_function_args_size, current_function_args_size,
137         current_function_pretend_args_size,
138         current_function_outgoing_args_size,
139         current_function_internal_arg_pointer, current_function_return_rtx):
140         Kill compatibility accestor macros.
141         * builtins.c (expand_builtin_apply_args_1): Update.
142         (expand_builtin_next_arg): Update.
143         * df-scan.c (df_get_call_refs): Update.
144         * dbxout.c (dbxout_function_end): Update.
145         * dwarf2out.c (dwarf2out_switch_text_section): Update.
146         (output_line_info): Update.
147         (secname_for_decl): Update.
148         (dwarf2out_var_location): Update.
149         * function.c (free_after_compilation): Update.
150         (assign_parm_find_stack_rtl): Update.
151         (assign_parms): Update.
152         (expand_dummy_function_end): Update.
153         (expand_function_end): Update.
154         * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
155         (expand_call): Update.
156         (emit_library_call_value_1): Update.
157         (store_one_arg): Update.
158         * varasm.c (initialize_cold_section_name): Update.
159         (unlikely_text_section): Update.
160         (unlikely_text_section_p): Update.
161         (assemble_start_function): Update.
162         (assemble_end_function): Update.
163         (default_section_type_flags): Update.
164         (switch_to_section): Update.
165         * integrate.c (set_decl_abstract_flags): Update.
166         (get_hard_reg_initial_val): Update.
167         (has_hard_reg_initial_val): Update.
168         (allocate_initial_values): Update.
169         * resource.c (init_resource_info): Update.
170         * config/alpha/alpha.c (NUM_ARGS): Update.
171         (direct_return): Update.
172         (alpha_va_start): Update.
173         (alpha_sa_size): Update.
174         (alpha_initial_elimination_offset): Update.
175         (alpha_expand_prologue): Update.
176         (alpha_start_function): Update.
177         (alpha_expand_epilogue): Update.
178         (unicosmk_initial_elimination_offset):
179         * config/alpha/alpha.md (call expander): Update.
180         * config/s390/s390.c (s390_register_info): Update.
181         (s390_register_info): Update.
182         (s390_frame_info): Update.
183         (s390_initial_elimination_offset): Update.
184         (s390_build_builtin_va_list): Update.
185         (s390_va_start): Update.
186         * config/spu/spu.c (direct_return): Update.
187         (spu_expand_prologue): Update.
188         (spu_initial_elimination_offset): Update.
189         (spu_build_builtin_va_list): Update.
190         (spu_va_start): Update.
191         * config/sparc/sparc.c (sparc_init_modes): Update.
192         (sparc_compute_frame_size): Update.
193         (function_value): Update.
194         * config/m32r/m32r.c (m32r_compute_frame_size): Update.
195         * config/i386/i386.md (return expander): Update.
196         * config/i386/i386.c (ix86_va_start): Update.
197         (ix86_can_use_return_insn_p): Update.
198         (ix86_compute_frame_layout): Update.
199         (ix86_expand_epilogue): Update.
200         * config/sh/sh.c (output_stack_adjust): Update.
201         (calc_live_regs): Update.
202         (sh_expand_prologue): Update.
203         (sh_builtin_saveregs): Update.
204         (sh_va_start): Update.
205         (initial_elimination_offset): Update.
206         (sh_allocate_initial_value): Update.
207         (sh_function_ok_for_sibcall): Update.
208         (sh_get_pr_initial_val): Update.
209         * config/sh/sh.md (return expander): Update.
210         * config/avr/avr.c (frame_pointer_required_p): UPdate.
211         * config/crx/crx.c (crx_compute_frame): UPdate.
212         (crx_initial_elimination_offset): UPdate.
213         * config/xtensa/xtensa.c (compute_frame_size): Update
214         (xtensa_builtin_saveregs): Update.
215         (xtensa_va_start): Update.
216         (order_regs_for_local_alloc): Update.
217         * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
218         (xstormy16_expand_builtin_va_start): Update.
219         * config/fr30/fr30.c (fr30_compute_frame_size): Update.
220         * config/m68hc11/m68hc11.md (return expanders): Update.
221         * config/m68hc11/m68hc11.c (expand_prologue): Update.
222         (expand_epilogue): Update.
223         * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
224         (cris_simple_epilogue): Update.
225         (cris_expand_prologue): Update.
226         (cris_expand_epilogue): Update.
227         * config/iq2000/iq2000.c (iq2000_va_start): Update.
228         (compute_frame_size): Update.
229         * config/mt/mt.c (mt_compute_frame_size): Update.
230         * config/mn10300/mn10300.c (expand_prologue): Update.
231         (expand_epilogue): Update.
232         (initial_offset): Update.
233         (mn10300_builtin_saveregs):
234         * config/mn10300/mn10300.md (return expander): Update.
235         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
236         (ia64_initial_elimination_offset): Update.
237         (ia64_initial_elimination_offset): Update.
238         (ia64_expand_prologue): Update.
239         * config/m68k/m68k.md (return expander): Update.
240         * config/rs6000/rs6000.c (rs6000_va_start): Update.
241         (rs6000_stack_info): Update.
242         * config/mcore/mcore.c (layout_mcore_frame): Update.
243         (mcore_expand_prolog): Update.
244         * config/arc/arc.c (arc_compute_frame_size): Update.
245         * config/score/score3.c (score3_compute_frame_size): Update.
246         * config/score/score7.c (score7_compute_frame_size): Update.
247         * config/arm/arm.c (use_return_insn): Update.
248         (thumb_find_work_register): Update.
249         (arm_compute_save_reg_mask): Update.
250         (arm_output_function_prologue): Update.
251         (arm_output_epilogue): Update.
252         (arm_size_return_regs): Update.
253         (arm_get_frame_offsets): Update.
254         (arm_expand_prologue): Update.
255         (thumb_exit): Update.
256         (thumb_unexpanded_epilogue): Update.
257         (thumb1_output_function_prologue): Update.
258         * config/pa/pa.md (return expander): Update.
259         * config/pa/pa.c (compute_frame_size): Update.
260         (hppa_builtin_saveregs): Update.
261         * config/mips/mips.c (mips_va_start): Update.
262         (mips16_build_function_stub): Update.
263         (mips_compute_frame_info): Update.
264         (mips_restore_gp): Update.
265         (mips_output_function_prologue): Update.
266         (mips_expand_prologue): Update.
267         * config/v850/v850.c (compute_frame_size): Update.
268         (expand_prologue): * config/mmix/mmix.c (along): update.
269         (mmix_initial_elimination_offset): update.
270         (mmix_reorg): update.
271         (mmix_use_simple_return): update.
272         (mmix_expand_prologue): update.
273         (mmix_expand_epilogue): Update.
274         * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
275         (emit_link_insn): Update.
276
277 2008-04-08  Anatoly Sokolov <aesok@post.ru>
278
279         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define 
280         __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL 
281         instructions.
282         * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for 
283         atmega103 device.
284
285 2008-04-07  Jan Hubicka  <jh@suse.cz>
286
287         * function.h (rtl): Rename to x_rtl.
288         (crtl): New define.
289         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
290         frame_offset, stack_check_probe_note, arg_pointer_save_area,
291         used_temp_slots avail_temp_slots, temp_slot_level,
292         nonlocal_goto_handler_labels): Update accesstors.
293         (rtl): New global variable.
294         (struct function): Move some fileds to rtl_data.
295         (get_arg_pointer_save_area): Update prototype.
296         * builtins.c (expand_builtin_setjmp_receiver): Update call of
297         get_arg_pointer_save_area.
298         * expr.c (init_expr): Update
299         * function.c (get_frame_size): Update
300         (assign_stack_local): Update
301         (expand_function_end): Update.
302         (get_art_pointer_save_area): Update
303         * function.h 
304         * emit-rtl.c (rtl): Declare.
305         (regno_reg_rtx): Declare.
306         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
307         Update.
308         (gen_reg_rtx): Update.
309         * varasm.c (n_deferred_constatns): Update accestor.
310         (init_varasm_status): Do not allocate varasm_status.
311         (force_const_mem, get_pool_size, output_constant_pool): Update.
312         * stmt.c (force_label_rtx): Do not use x_ prefixes.
313         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
314         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
315         * sparc/sparc.h (INIT_EXPANDERS): Update.
316         * ia64/ia64.h (INIT_EXPANDERS): Update.
317
318 2008-04-07  James E. Wilson  <wilson@tuliptree.org>
319
320         * reload.c (push_secondary_reload): Add missing break to for loop.
321
322 2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
323
324         PR middle-end/PR28690
325         * rtlanal.c: Update copyright years.
326         (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
327         as REG_POINTER and MEM_POINTER operands.
328         * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
329         (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
330         * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
331         * gcse.c: Update copyright years.
332         (pre_delete): Call gen_reg_rtx_and_attrs.
333         (hoist_code): Likewise.
334         (build_store_vectors): Likewise.
335         (delete_store): Likewise.
336         * loop-invariant.c (move_invariant_reg): Likewise.
337         Update copyright years.
338
339 2008-04-07  Uros Bizjak  <ubizjak@gmail.com>
340
341         * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
342         control string instead of quoted.
343
344 2008-04-07  Kenneth Zadeck <zadeck@naturalbridge.com>
345
346         * doc/rtl.texi: Rewrite of subreg section.
347
348 2008-04-07  Kai Tietz  <kai.tietz@onevision.com>
349
350         PR/35842
351         * config/i386/i386.c (legitimize_pic_address): Add treating
352         of dllimport SYM_REF's.
353         (legitimize_dllimport_symbol): Add prototype.
354
355 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
356
357         * fold-const.c (fold) <ARRAY_REF>: New case.  Try to fold constant
358         reference in constructor with non self-referential type.
359
360 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
361
362         Removal of Return with Depressed Stack Pointer support
363         * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
364         (ECF_SP_DEPRESSED): Likewise.
365         (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
366         * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
367         (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
368         (expand_call): Do not test ECF_SP_DEPRESSED.
369         * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
370         * function.c (keep_stack_depressed): Delete.
371         (handle_epilogue_set): Likewise.
372         (update_epilogue_consts): Likewise.
373         (emit_equiv_load): Likewise.
374         (thread_prologue_and_epilogue_insns): Remove support for Return with
375         Depressed Stack Pointer.
376         * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
377
378 2008-04-06  Richard Guenther  <rguenther@suse.de>
379
380         PR tree-optimization/35400
381         * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
382         information from SSA_NAMEs.
383
384 2008-04-06  Anatoly Sokolov <aesok@post.ru>
385
386         * config/avr/avr.h (avr_mega_p): Remove declaration.
387         (AVR_MEGA): Remove macro.
388         * config/avr/avr.c (avr_mega_p): Remove variable.
389         (avr_override_options): Remove inicializion of avr_mega_p.
390         Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
391         (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
392         (avr_jump_mode): (Ditto.).
393         (avr_output_progmem_section_asm_op): (Ditto.).
394         (avr_asm_init_sections): (Ditto.).
395         (avr_asm_init_sections): (Ditto.).
396         (avr_rtx_costs): (Ditto.).
397         * config/avr/avr.md: (Ditto.).
398         * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of 
399         '__AVR_MEGA__'.
400
401 2008-04-06  Richard Guenther  <rguenther@suse.de>
402
403         PR tree-optimization/35842
404         * tree-ssa-address.c (fixed_address_object_p): Adjust to match
405         is_gimple_invariant_address.
406
407 2008-04-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
408
409         * gcc.c (default_compilers): Sync Fortran extensions list with
410         that in fortran/lang-specs.h.
411         * doc/invoke.texi: Likewise.
412         * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
413         * dwarf2out.c (gen_compile_unit_die): Likewise.
414
415 2008-04-06  Tom G. Christensen  <tgc@jupiterrise.com>
416
417         * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
418
419 2008-04-05  Uros Bizjak  <ubizjak@gmail.com>
420
421         PR target/12329
422         * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
423         attribute is used for nested functions.
424
425 2008-04-05  Jan Hubicka  <jh@suse.cz>
426
427         * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
428
429         * tree-dump.c (dump_enable_all): Remove prototype; do not accept
430         letter argument.
431         (dump_files): Update.
432         (enable_rtl_dump_file): Do not accept letter argument.
433         * tree-pass.h (dump_file_info): Remove letter argument.
434         * toplev.c (decode_d_option): Update -da handling.
435         * toplev.h (enable_rtl_dump_file): Update prototype.
436         * passes.c (register_one_dump_file): Do not accept IPA argument; work
437         it out based on pass type.
438         (register_dump_files_1): Likewise.
439         (init_optimization_passes): Update register_one_dump_file calls.
440         (execute_one_pass): Sanity check that IPA passes are called at IPA
441         level and RTL passes at RTL level.
442         (execute_pass_list): IPA pass can not be after or subpass of
443         GIMPLE/RTL pass.
444         (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
445         disallov RTL subpasses of IPA subpasses.
446
447 2008-04-05  Ben Elliston  <bje@au.ibm.com>
448
449         * tree-cfg.c (need_fake_edge_p): Return false for calls to
450         builtins that return exactly once and do not throw. Cache call to
451         call_expr_flags.
452
453 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
454
455         PR rtl-optimization/34916
456         PR middle-end/35519
457         * combine.c (create_log_links): Do not create duplicate LOG_LINKS
458         between instruction pairs.
459
460 2008-04-04  Naveen.H.S  <naveen.hs@kpitcummins.com>
461
462         * doc/invoke.texi: Document -mbitops for SH.
463         * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
464         * config/sh/predicates.md (bitwise_memory_operand): New predicate.
465         * config/sh/sh.c (print_operand): Add %t operand code.
466         * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
467         * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
468         (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
469         (extendqihi2): Likewise.
470         (movqi_i): Likewise.
471         (insv): Use bset, bclr and bst instructions for SH2A if possible.
472         (extv): Use bld instruction for SH2A if possible.
473         (extzv): Likewise.
474         (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
475         bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
476         bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
477         (bset.b, bclr.b): Define peepholes.
478         * config/sh/sh.opt (mbitops): New option.
479
480 2008-04-04  Janis Johnson  <janis187@us.ibm.com>
481
482         PR target/35620
483         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
484         and view convert expression.
485
486 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
487
488         PR target/35364
489         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
490
491 2008-04-04  H.J. Lu  <hongjiu.lu@intel.com>
492
493         * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
494
495         * config/i386/cpuid.h (bit_AES): New.
496         (bit_PCLMUL): Likewise.
497
498         * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
499         (override_options): Handle PTA_AES and PTA_PCLMUL.  Enable
500         SSE2 if AES or PCLMUL is enabled.
501         (ix86_builtins): Add IX86_BUILTIN_AESENC128,
502         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
503         IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
504         IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
505         (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
506         (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
507         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
508         IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
509         (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
510         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
511         __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
512         __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
513         __builtin_ia32_aeskeygenassist128 and
514         __builtin_ia32_pclmulqdq128.
515         * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
516         (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
517         IX86_BUILTIN_PSRLDQI128.  Handle IX86_BUILTIN_AESKEYGENASSIST128.
518
519         * config/i386/i386.h (TARGET_AES): New.
520         (TARGET_PCLMUL): Likewise.
521         (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
522
523         * config/i386/i386.md (UNSPEC_AESENC): New.
524         (UNSPEC_AESENCLAST): Likewise.
525         (UNSPEC_AESDEC): Likewise.
526         (UNSPEC_AESDECLAST): Likewise.
527         (UNSPEC_AESIMC): Likewise.
528         (UNSPEC_AESKEYGENASSIST): Likewise.
529         (UNSPEC_PCLMUL): Likewise.
530
531         * config/i386/i386.opt (maes): New.
532         (mpclmul): Likewise.
533
534         * config/i386/sse.md (aesenc): New pattern.
535         (aesenclast): Likewise.
536         (aesdec): Likewise.
537         (aesdeclast): Likewise.
538         (aesimc): Likewise.
539         (aeskeygenassist): Likewise.
540         (pclmulqdq): Likewise.
541
542         * config/i386/wmmintrin.h: New.
543
544         * doc/extend.texi: Document AES and PCLMUL built-in function.
545
546         * doc/invoke.texi: Document -maes and -mpclmul.
547
548 2008-04-04  Paolo Bonzini  <bonzini@gnu.org>
549
550         * function.c (free_after_parsing): Replace with
551         cxx_push_function_context from C++ front-end.
552         (allocate_struct_function): Don't call langhook.
553         * langhooks.h (struct lang_hooks_for_functions): Delete.
554         (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
555         member "function".
556         * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
557         (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
558         LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
559         LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
560         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
561         remove LANG_HOOKS_FUNCTION_INITIALIZER.
562         * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
563
564         * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
565         Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
566         
567 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
568
569         PR c/35440
570         * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
571         for all types.
572
573 2008-04-04  Richard Guenther  <rguenther@suse.de>
574
575         PR middle-end/35823
576         * fold-const.c (optimize_minmax_comparison): Use the correct
577         type for the constant in the simplified comparison.
578
579 2008-04-04  Zuxy Meng <zuxy.meng@gmail.com>
580
581         * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
582         Pass L2 size as "--param l2-cache-size" to the compiler.
583         (decode_l2_cache): New function to decode L2 cache parameters using
584         0x8000006 extended cpuid function.
585         (detect_caches_amd): Determine parameters of L2 cache using
586         decode_l2_caches function.
587         (decode_caches_intel): Decode L2 cache parameters.
588         (detect_caches_intel): Determine L2 cache parameters using
589         decode_caches_intel and decode_l2_caches functions.
590
591 2008-04-03  Bob Wilson  <bob.wilson@acm.org>
592
593         * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
594         secondary input reload for subword loads from the constant pool.
595
596 2008-04-03  Janis Johnson  <janis187@us.ibm.com>
597
598         PR target/35713
599         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
600           constants of the appropriate size for runtime calculations.
601
602         PR c/35712
603         * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
604           decimal-float literal constant zero.
605
606 2008-04-03  Jakub Jelinek  <jakub@redhat.com>
607
608         PR c/35738
609         * c-parser.c (c_parser_omp_atomic): Call
610         default_function_array_conversion on the RHS.
611
612         PR middle-end/35818
613         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
614         call is_variable_sized if decl has incomplete type.
615
616 2008-04-03  H.J. Lu  <hongjiu.lu@intel.com>
617
618         * config/i386/i386-protos.h (ix86_aligned_p): Removed.
619
620 2008-04-03  Adam Nemet  <anemet@caviumnetworks.com>
621
622         * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
623         iterators.
624         (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and leu.
625         (sgt<u>): Merge sgt and sgtu into new expander.
626         (sgt, sgtu): Remove expanders.
627         (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new pattern.
628         (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
629         (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
630         *sgtu_<mode>_mips16 into new pattern.
631         (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
632         (sge<u>): Merge sge and sgeu into new expander.
633         (sge, sgeu): Remove expanders.
634         (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
635         new pattern.
636         (*sge_<mode>, second *sge_<mode>): Remove patterns.
637         (slt<u>): Merge slt and sltu into new expander.
638         (slt, sltu): Remove expanders.
639         (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new pattern.
640         (*slt_<mode>, *sltu_<mode>): Remove patterns.
641         (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
642         *sltu_<mode>_mips16 into new pattern.
643         (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
644         (sle<u>): Merge sle and sleu into new expander.
645         (sle, sleu): Remove expanders.
646         (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new pattern.
647         (*sle_<mode>, *sleu_<mode>): Remove patterns.
648         (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
649         *sleu_<mode>_mips16 into new pattern.
650         (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
651
652 2008-04-03  Jan Hubicka  <jh@suse.cz>
653
654         PR tree-optimization/35795
655         * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
656         * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
657         * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
658         * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
659         * score/score3.c (score3_output_mi_thunk): Likewise.
660         * score/score7.c (score7_output_mi_thunk): Likewise.
661         * mips/mips.c (mips_output_mi_thunk): Likewise.
662
663 2008-04-03  Richard Guenther  <rguenther@suse.de>
664
665         * tree-vrp.c (extract_range_from_unary_expr): Handle all
666         conversions.  Simplify code.
667
668 2008-04-03  Kaz Kojima  <kkojima@gcc.gnu.org>
669
670         * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
671
672 2008-04-03  Tom Tromey  <tromey@redhat.com>
673             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
674
675         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
676         * config/bfin/t-bfin-linux (generated_files): Add
677         linux-sysroot-suffix.h.
678         * doc/install.texi (Prerequisites): Require make 3.80.
679         * doc/sourcebuild.texi (Front End Directory): Document new
680         variable.
681         * Makefile.in (generated_files): New variable.
682         (ALL_HOST_OBJS): New variable.
683         ($(ALL_HOST_OBJS)): New target.
684
685 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
686
687         * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
688         (remap_block): Call id->transform_lang_insert_block instead
689         of langhook.
690         (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
691         Set id.transform_lang_insert_block to NULL.
692         (clone_body): Move to cp/optimize.c
693         * tree-inline.h (struct copy_body_data): Change
694         transform_lang_insert_block to function pointer.
695         (copy_generic_body, copy_decl_no_change): Export.
696         * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
697         * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
698         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
699
700         * c-tree.h (insert_block): Kill.
701         * c-decl.c (insert_block): Kill.
702
703 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
704
705         * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
706         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
707         * c-tree.h (c_push_function_context, c_pop_function_context): Remove
708         argument.
709         * c-decl.c (c_push_function_context, c_pop_function_context): Remove
710         argument, call {push,pop}_function_context from here.
711         * c-parser.c: Use c_{push,pop}_function_context.
712
713         * function.c (push_function_context_to): Move meat ...
714         (push_function_context): ... here.  Simplify.
715         * function.c (pop_function_context_from): Move meat ...
716         (pop_function_context): ... here.  Simplify.
717         * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
718         leave_nested).
719         * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
720         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
721         (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
722         * tree.h (push_function_context_to, pop_function_context_from): Remove.
723
724 2008-04-03  Ben Elliston  <bje@au.ibm.com>
725
726         * expmed.c (extract_force_align_mem_bit_field): Remove.
727
728 2008-04-03  Richard Guenther  <rguenther@suse.de>
729
730         PR middle-end/35800
731         * expr.h (try_casesi): Adjust prototype.
732         * expr.c (try_casesi): Take fallback label as extra parameter.
733         Use that for gen_casesi if default_label is NULL.
734         * stmt.c (expand_case): Pass fallback label to try_casesi,
735         make sure to fill gaps with a fallback label if default_label
736         is not present.
737
738 2008-04-03  Dominique d'Humieres <dominiq@lps.ens.fr>
739
740         PR target/35801
741         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
742
743 2008-04-03  Ben Elliston  <bje@au.ibm.com>
744
745         * expmed.c (extract_split_bit_field): Remove if (0) code.
746         * tree-ssa-structalias.c (do_sd_constraint): Likewise.
747         (do_ds_constraint): Likewise.
748
749 2008-04-02  Joseph Myers  <joseph@codesourcery.com>
750
751         * doc/cppopts.texi (-dU): Document.
752         * c-common.h (flag_dump_macros): Update comment.
753         * c-opts.c (handle_OPT_d): Handle -dU.
754         * c-ppoutput.c (macro_queue, define_queue, undef_queue,
755         dump_queued_macros, cb_used_define, cb_used_undef): New.
756         (init_pp_output): Handle -dU.
757         (cb_line_change): Call dump_queued_macros.
758         * toplev.c (decode_d_option): Accept -dU as preprocessor option.
759
760 2008-04-02  Anatoly Sokolov <aesok@post.ru>
761
762         * config/avr/predicates.md (io_address_operand): New predicate. 
763         * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
764         * config/avr/avr.c (avr_io_address_p): Remove function.
765         (out_movqi_r_mr): Use 'io_address_operand' predicate instead of 
766         'avr_io_address_p' function.
767         (out_movhi_r_mr): (Ditto.).
768         (out_movqi_mr_r): (Ditto.).
769         (out_movhi_mr_r): (Ditto.).
770         (avr_address_cost): (Ditto.).
771
772 2008-04-02  Uros Bizjak  <ubizjak@gmail.com>
773
774         * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
775         Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
776         in 32bit mode when XMM registers are available to avoid store
777         forwarding stalls.
778         (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
779         corresponding post-reload splitters.
780
781 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
782
783         * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
784         and __builtin_ia32_shufpd.  Provide __builtin_ia32_roundsd and
785         __builtin_ia32_roundss.
786         (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
787         __builtin_ia32_shufpd, __builtin_ia32_roundsd and
788         __builtin_ia32_roundss.
789         (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
790         IX86_BUILTIN_SHUFPD here.
791
792 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
793
794         * config/i386/i386.md (plogic): New.
795         (plogicprefix): Likewise.
796
797         * config/i386/mmx.md (mmx_<code><mode>3): New.
798         (mmx_and<mode>3): Removed.
799         (mmx_ior<mode>3): Likewise.
800         (mmx_xor<mode>3): Likewise.
801
802         * config/i386/sse.md (<code><mode>3): New.
803         (*<code><mode>3): Likewise.
804         (*<code><mode>3): Likewise.
805         (<code><mode>3): Likewise.
806         (*sse_<code><mode>3): Likewise.
807         (*sse2_<code><mode>3): Likewise.
808         (<code>tf3): Likewise.
809         (*<code>tf3): Likewise.
810         (and<mode>3): Likewise.
811         (*and<mode>3): Likewise.
812         (ior<mode>3): Removed.
813         (*ior<mode>3): Likewise.
814         (xor<mode>3): Likewise.
815         (*xor<mode>3): Likewise.
816         (*and<mode>3): Likewise.
817         (*ior<mode>3): Likewise.
818         (*xor<mode>3): Likewise.
819         (and<mode>3): Likewise.
820         (*sse_and<mode>3): Likewise.
821         (*sse2_and<mode>3): Likewise.
822         (andtf3): Likewise.
823         (*andtf3): Likewise.
824         (ior<mode>3): Likewise.
825         (*sse_ior<mode>3): Likewise.
826         (*sse2_ior<mode>3): Likewise.
827         (iortf3): Likewise.
828         (*iortf3): Likewise.
829         (xor<mode>3): Likewise.
830         (*sse_xor<mode>3): Likewise.
831         (*sse2_xor<mode>3): Likewise.
832         (xortf3): Likewise.
833         (*xortf3): Likewise.
834
835 2008-04-02  Richard Guenther  <rguenther@suse.de>
836
837         PR tree-optimization/14495
838         PR tree-optimization/34793
839         * tree-vrp.c (struct switch_update): New structure.
840         (to_remove_edges, to_update_switch_stmts): New VECs.
841         (simplify_switch_using_ranges): New function.  Remove not taken
842         case labels and edges.
843         (simplify_stmt_using_ranges): Call it.
844         (identify_jump_threads): Mark edges we have queued for removal
845         so we don't thread them.
846         (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
847         case label vector.
848         * tree-cfg.c (group_case_labels): Deal with missing default label.
849         (tree_verify_flow_info): Allow missing default label.
850         * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
851         (emit_case_nodes): Likewise.
852         (expand_case): Do not rely on the default label to be present.
853         * expr.c (try_casesi): Deal with NULL default_label.
854         (do_tablejump): Likewise.
855
856 2008-04-02  Richard Guenther  <rguenther@suse.de>
857
858         PR tree-optimization/14495
859         * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
860         SWITCH_EXPR here ...
861         (vrp_visit_switch_stmt): ... but here (new function).
862         (find_case_label_index): New helper function.
863         (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
864
865 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
866
867         * fwprop.c: Fix ISO-C99ism.
868
869 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
870
871         PR bootstrap/35752
872         * Makefile.in (objdir): Set it here.
873         * configure.ac: Not here.  Find dynamic linker characteristics.
874         * exec-tool.in: Use them.
875         * aclocal.m4: Regenerate.
876         * configure: Regenerate.
877
878 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
879
880         * expr.c (expand_var): Delete it.
881         * expr.h (expand_var): Delete prototype.
882         * function.c (expand_function_start): Use expand_decl instead.
883         * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
884         langhook.
885
886 2008-04-02  Andy Hutchinson <hutchinsonamdy@aim.com>
887
888         PR rtl-optimization/35542
889         * fwprop.c (forward_propagate_and_simplify): Replace
890         loc_reg_mentioned_in_p with reg_mentioned_p.
891
892 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
893
894         PR rtl-optimization/35281
895         * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
896         (propagate_rtx_1): Handle PR_HANDLE_MEM.
897         (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
898         (varying_mem_p): Move above propagate_rtx.
899         (all_uses_available_at): Do not check MEMs.
900
901 2008-04-02  Rafael Espindola  <espindola@google.com>
902
903         * tree-vrp.c (extract_code_and_val_from_cond): Remove.
904         (register_edge_assert_for_2): Split the cond argument.
905         (register_edge_assert_for_1): Adjust for the change in
906         register_edge_assert_for_2.
907         (register_edge_assert_for): Split the cond argument.
908         (find_switch_asserts): Adjust for the change in
909         register_edge_assert_for.
910
911 2008-04-02  Kai Tietz  <kai.tietz@onevision.com>
912
913         * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
914         * gcc/config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
915         offsets for 64-bit mingw.
916         * gcc/config/i386/i386.c (ix86_pass_by_reference): Correct calling
917         abi for x86_64-pc-mingw.
918
919 2008-04-02  Richard Guenther  <rguenther@suse.de>
920
921         * tree-vrp.c (extract_range_from_assert): Make sure to not
922         produce range min/max with TREE_OVERFOW set.
923         If merging a anti-range and a range keep the anti-range if
924         the range covers all values of the type.
925         (register_edge_assert_for_2): Only allow sign-changing
926         conversions in detecting canonical range checks.  Also
927         register an assert for the unsigned name if useful.
928
929         PR tree-optimization/35787
930         * tree-vrp.c (vrp_val_max): New function.
931         (vrp_val_min): Likewise.
932         (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
933         (vrp_val_is_min): Likewise.
934         (supports_overflow_infinity): Use vrp_val_{min,max}.
935         (negative_overflow_infinity): Likewise.
936         (positive_overflow_infinity): Likewise.
937         (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
938         (is_positive_overflow_infinity): Likewise.
939         (is_overflow_infinity): Likewise.
940         (avoid_overflow_infinity): Use vrp_val_{min,max} and
941         vrp_val_is_{min,max}.
942         (set_and_canonicalize_value_range): Canonicalize anti-ranges
943         to ranges if possible.  Avoid empty ranges.
944
945 2008-04-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
946
947         PR middle-end/35705
948         * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
949         the expression is a function address.
950
951 2008-04-01  George Helffrich  <george@gcc.gnu.org>
952
953         PR fortran/PR35154, fortran/PR23057
954         * fortran/trans-common.c (create_common):  Add decl to function
955         chain to preserve identifier scope in debug output.
956
957         * dbxout.c: Emit .stabs debug info for Fortran COMMON block
958         variables as base symbol name + offset using N_BCOMM/N_ECOMM.
959         (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
960         (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
961         in common.
962         (dbxout_syms): Check for COMMON-based symbol and wrap in
963         N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
964         in bracket for efficiency.
965
966         * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
967         using DW_TAG_common_block + member offset.
968         (add_pubname_string): New function.
969         (dw_expand_expr): New function to find block name and offset for
970         COMMON var.
971         (common_check): New function to check whether symbol in Fortran COMMON.
972         (gen_variable_die): If COMMON, use DW_TAG_common_block.
973
974         * testsuite/gcc.dg/debug/pr35154.c:  New test to check that non-Fortran
975         use of common is unchanged.
976
977         * testsuite/lib/gfortran-dg.exp:  New harness to compile Fortran progs
978         with all combinations of debug options available on target.
979         * testsuite/gfortran.dg/debug/debug.exp:  Ditto.
980         * testsuite/gfortran.dg/debug/trivial.f:  Ditto.
981         * testsuite/gfortran.dg/debug/pr35154-stabs.f:  New test case for
982         .stabs functionality.
983         * testsuite/gfortran.dg/debug/pr35154-dwarf2.f:  New test case for
984         DWARF functionality.
985
986 2008-04-01  Volker Reichelt  <v.reichelt@netcologne.de>
987
988         PR c/35436
989         * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
990
991 2008-04-02  Ben Elliston  <bje@au.ibm.com>
992
993         * config/v850/v850.md (casesi): Remove if (0) code.
994         * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
995         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
996
997 2008-04-01  Uros Bizjak  <ubizjak@gmail.com>
998
999         * config/i386/i386.md (rex64suffix): New mode attribute.
1000         (floathi<mode>2): Disable expander for SSE math.
1001         (*floathi<mode>2_1): New insn insn_and_split pattern.
1002         (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
1003         corresponding post-reload splitters.
1004         (*floathi<mode>2_i387): New macroized insn pattern.
1005         (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
1006         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
1007         insn_and_split pattern.
1008         (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
1009         New macroized instruction patterns and corresponding post-reload
1010         splitters.
1011         (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
1012         and corresponding post-reload splitters.
1013         (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
1014         New macroized instruction patterns.
1015         (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
1016         macroized instruction patterns and corresponding post-reload splitters.
1017         (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
1018         corresponding post-reload splitters.
1019         (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
1020         New macroized instruction patterns.
1021         (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
1022         corresponding post-reload splitters.
1023         (*floatsi<mode>2_i387): New macroized instruction patterns.
1024
1025 2008-04-01  H.J. Lu  <hongjiu.lu@intel.com>
1026
1027         * config/i386/i386.md (smaxmin): New.
1028         (umaxmin): Likewise.
1029         (maxminiprefix): Likewise.
1030         (maxminfprefix): Likewise.
1031         (<code><mode>3): Likewise.
1032         (smin<mode>3): Removed.
1033         (smax<mode>3): Likewise.
1034
1035         * config/i386/mmx.md (mmx_<code>v2sf3): New.
1036         (mmx_<code>v4hi3): Likewise.
1037         (mmx_<code>v8qi3): Likewise.
1038         (mmx_smaxv2sf3): Removed.
1039         (mmx_sminv2sf3): Likewise.
1040         (mmx_umaxv8qi3): Likewise.
1041         (mmx_smaxv4hi3): Likewise.
1042         (mmx_uminv8qi3): Likewise.
1043         (mmx_sminv4hi3): Likewise.
1044
1045         * config/i386/sse.md (<addsub><mode>3): New.
1046         (*<addsub><mode>3): Likewise.
1047         (<sse>_vm<addsub><mode>3): Likewise.
1048         (<maxmin><mode>3): Likewise.
1049         (*<maxmin><mode>3_finite): Likewise.
1050         (*<maxmin><mode>3): Likewise.
1051         (<sse>_vm<maxmin><mode>3): Likewise.
1052         (sse3_h<addsub>v4sf3): Likewise.
1053         (sse3_h<addsub>v2df3): Likewise.
1054         (<maxmin>v16qi3): Likewise.
1055         (*<maxmin>v16qi3): Likewise.
1056         (<maxmin>v8hi3): Likewise.
1057         (*<maxmin>v8hi3): Likewise.
1058         (*sse4_1_<maxmin><mode>3): Likewise.
1059         (*sse4_1_<maxmin><mode>3): Likewise.
1060         (add<mode>3): Removed.
1061         (*add<mode>3): Likewise.
1062         (<sse>_vmadd<mode>3): Likewise.
1063         (sub<mode>3): Likewise.
1064         (*sub<mode>3): Likewise.
1065         (<sse>_vmsub<mode>3): Likewise.
1066         (smin<mode>3): Likewise.
1067         (*smin<mode>3_finite): Likewise.
1068         (*smin<mode>3): Likewise.
1069         (<sse>_vmsmin<mode>3): Likewise.
1070         (smax<mode>3): Likewise.
1071         (*smax<mode>3_finite): Likewise.
1072         (*smax<mode>3): Likewise.
1073         (<sse>_vmsmax<mode>3): Likewise.
1074         (sse3_haddv4sf3): Likewise.
1075         (sse3_haddv2df3): Likewise.
1076         (sse3_hsubv4sf3): Likewise.
1077         (sse3_hsubv2df3): Likewise.
1078         (umaxv16qi3): Likewise.
1079         (*umaxv16qi3): Likewise.
1080         (smaxv8hi3): Likewise.
1081         (*smaxv8hi3): Likewise.
1082         (*sse4_1_smax<mode>3): Likewise.
1083         (*sse4_1_umax<mode>3): Likewise.
1084         (uminv16qi3): Likewise.
1085         (*uminv16qi3): Likewise.
1086         (sminv8hi3): Likewise.
1087         (*sminv8hi3): Likewise.
1088         (*sse4_1_smin<mode>3): Likewise.
1089         (*sse4_1_umin<mode>3): Likewise.
1090
1091 2008-04-01  Rafael Espindola  <espindola@google.com>
1092
1093         * tree-cfg.c (verify_expr): remove in_phi.
1094         (verify_stmt): Don't call walk_tree with verify_expr. Use
1095         is_gimple_min_invariant instead of is_gimple_val.
1096
1097 2008-04-01  Joseph Myers  <joseph@codesourcery.com>
1098
1099         * doc/include/gpl_v3.texi: Update for manpage generation.
1100         * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
1101         gpl.texi.
1102         * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
1103         * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
1104         gpl_v3.texi instead of gpl.texi.
1105         (gpl.pod): New.
1106
1107 2008-04-01  Jakub Jelinek  <jakub@redhat.com>
1108
1109         PR pch/13675
1110         * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
1111
1112 2008-04-01  Rafael Espindola  <espindola@google.com>
1113
1114         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
1115         (extract_code_and_val_from_cond): Use
1116         extract_code_and_val_from_cond_with_ops.
1117
1118 2008-04-01  Jan Hubicka  <jh@suse.cz>
1119
1120         * function.c (free_after_compilation): Free epilogue_delay_list.
1121         (prepare_function_start): Assert that previous compilation was freed.
1122
1123 2008-04-01  Jan Hubicka  <jh@suse.cz>
1124             Jim Wilson  <wilson@tuliptree.org>
1125             Andreas Tobler <andreast@gcc.gnu.org>
1126
1127         PR middle-end/35781
1128         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
1129         rtl.emit instead cfun->emit.
1130         * sparc/sparc.h (INIT_EXPANDERS): Likewise.
1131         * ia64/ia64.h (INIT_EXPANDERS): Likewise.
1132
1133 2008-04-01  Ben Elliston  <bje@au.ibm.com>
1134
1135         * doc/c-tree.texi (Function Basics): Fix grammatical error.
1136
1137 2008-03-31  Seongbae Park <seongbae.park@gmail.com>
1138
1139         * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
1140         New options
1141         (fprofile-use): Add var flag_profile_use
1142         * coverage.c (coverage_begin_output): Do not open a gcno file for
1143         output only if -ftest-coverage is set.
1144         Do not add getpwd() to gcda file path.
1145         (build_gcov_info): Check the new flag
1146         flag_profile_datafile_relative_path.
1147         (coverage_init): Use profile_data_prefix.
1148         Read profile counter only if flag_profile_use is set.
1149         * opts.c (common_handle_option): New option fprofile-use=,
1150         fprofile-dir=, fprofile-generate=.
1151         * toplev.c (profile_data_prefix): New variable definition.
1152         * toplev.h (profile_data_prefix): New declaration.
1153         * doc/invoke.tex (Option Summary, Optimization Options):
1154         Add new options.
1155
1156 2008-03-31  James E. Wilson  <wilson@tuliptree.org>
1157
1158         * varasm.c (output_constant_pool_1): In LABEL_REF check,
1159         use tmp consistently.
1160
1161         PR target/35695
1162         * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
1163         * config/ia64/ia64.c (rtx_needs_barrier): Handle
1164         UNSPEC_FR_RECIP_APPROX_RES.
1165         * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
1166
1167 2008-03-31  Volker Reichelt  <v.reichelt@netcologne.de>
1168
1169         PR c/35750
1170         * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
1171
1172 2008-03-31  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1173
1174         PR middle-end/30186
1175         * fold-const.c (fold_indirect_ref_1): Support accessing non first
1176         element of the vector via a pointer.
1177
1178 2008-03-31  Ian Lance Taylor  <iant@google.com>
1179
1180         * tlink.c (scan_linker_output): Look for symbol name in single quotes.
1181
1182 2008-03-31  Jan Hubicka  <jh@suse.cz>
1183
1184         * builtins.c (expand_builtin_setjmp_receiver): Update call of
1185         get_arg_pointer_save_area.
1186         * expr.c (init_expr): Just clear out rtl.expr.
1187         * function.c (free_after_compilation): Clear out whole RTL structure.
1188         (get_func_frame_size): Merge into ...
1189         (get_frame_size): ... this one.
1190         (assign_stack_local_1): Merge into ...
1191         (assign_stack_local): ... this one.
1192         (expand_function_end): Update call of get_arg_pointer_save_area.
1193         (get_art_pointer_save_area): Remove cfun argument.
1194         * function.h (emit_status): regno_pointer_align does not need length
1195         attribute. Move x_regno_reg_rtx to ...
1196         (regno_reg_rtx): ... new global array.
1197         (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
1198         (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
1199         apply_args_value, forced_labels, stack_pointer_delta):
1200         Update accestors.
1201         (struct varasm_status): Move here from varasm.c
1202         (struct rtl_data): New. Move here some fields from struct function.
1203         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
1204         frame_offset, stack_check_probe_note, arg_pointer_save_area,
1205         used_temp_slots avail_temp_slots, temp_slot_level,
1206         nonlocal_goto_handler_labels): Update accesstors.
1207         (rtl): New global variable.
1208         (struct function): Move some fileds to rtl_data.
1209         (get_arg_pointer_save_area): Update prototype.
1210         * emit-rtl.c (rtl): Declare.
1211         (regno_reg_rtx): Declare.
1212         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
1213         Update.
1214         (gen_reg_rtx): Update.
1215         (init_virtual_regs): Do not tate emit_status argument.
1216         (init_emit): Do not allocate emit.
1217         * varasm.c (varasm_statuc): Move to function.h.
1218         (n_deferred_constatns): Update accestor.
1219         (init_varasm_status): Do not allocate varasm_status.
1220         (force_const_mem, get_pool_size, output_constant_pool): Update.
1221         * stmt.c (force_label_rtx): Do not use x_ prefixes.
1222         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
1223
1224 2008-03-31  Zdenek Dvorak  <ook@ucw.cz>
1225
1226         PR rtl-optimization/35729
1227         * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
1228         references.
1229
1230 2008-03-31  H.J. Lu  <hongjiu.lu@intel.com>
1231
1232         PR target/32000
1233         * config/i386/i386.md (*movti_internal): Emit unaligned SSE
1234         load/store if memory is unaligned.
1235         (*movti_rex64): Likewise.
1236
1237         * config/i386/predicates.md (misaligned_operand): New.
1238
1239 2008-03-31  Andrew Pinski  <pinskia@gmail.com>
1240
1241         PR tree-opt/35431
1242         * tree-ssa-phiopt.c (conditional_replacement): Return early for
1243         complex types.
1244
1245 2008-03-31  Jan Beulich  <jbeulich@novell.com>
1246
1247         * config/ia64/constraints.md: Add 'j' constraint.
1248         * config/ia64/ia64.md (movsi_internal): Add addp4 case.
1249         (movdi_internal): Likewise.
1250
1251 2008-03-30  Volker Reichelt  <v.reichelt@netcologne.de>
1252
1253         PR c/35748
1254         * c-typeck.c (build_c_cast): Skip invalid fields in unions.
1255
1256 2008-03-30  H.J. Lu  <hongjiu.lu@intel.com>
1257
1258         PR target/35757
1259         * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
1260         proper error message for the third argument on blendpd and
1261         blendps.
1262
1263         * config/i386/sse.md (blendbits): New.
1264         (sse4_1_blendp<ssemodesuffixf2c>): Use it.
1265
1266 2008-03-30  Eric Botcazou  <ebotcazou@adacore.com>
1267
1268         * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
1269
1270 2008-03-30  Richard Guenther  <rguenther@suse.de>
1271
1272         PR middle-end/31023
1273         * fold-const.c (fold_sign_changed_comparison): Do leave
1274         conversions to base-types alone.
1275
1276 2008-03-29  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1277
1278         * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
1279         the link register if one altivec register is be saved.
1280
1281 2008-03-30  Ben Elliston  <bje@au.ibm.com>
1282
1283         * final.c (final_scan_insn): Remove if (0) code.
1284
1285 2008-03-28  Volker Reichelt  <v.reichelt@netcologne.de>
1286
1287         * c-parser.c (c_parser_next_token_is_keyword): Simplify.
1288
1289 2008-03-28  H.J. Lu  <hongjiu.lu@intel.com>
1290
1291         * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
1292         of V4SFmode to ix86_binary_operator_ok.
1293
1294 2008-03-28  Uros Bizjak  <ubizjak@gmail.com>
1295
1296         * config/i386/i386.c (override_options): Initialize
1297         ix86_veclib_handler to ix86_veclibabi_svml when
1298         -mveclibabi=svml is used.
1299         (ix86_veclibabi_svml): New function for SVML ABI style
1300         vectorization support.
1301         * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
1302
1303 2008-03-28  Rafael Espindola  <espindola@google.com>
1304
1305         * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
1306         (tree_binary_nonnegative_warnv_p): Make it public.
1307         (tree_single_nonnegative_warnv_p): Make it public.
1308         (tree_invalid_nonnegative_warnv_p): Make it public.
1309         (tree_unary_nonzero_warnv_p): Make it public.
1310         (tree_binary_nonzero_warnv_p): Make it public
1311         (tree_single_nonzero_warnv_p): Make it public.
1312         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
1313         (extract_range_from_binary_expr): Split the expr argument.
1314         (extract_range_from_unary_expr): Split the expr argument.
1315         (extract_range_from_comparison): Split the expr argument.
1316         (extract_range_from_expr): Use the new aux functions.
1317         (vrp_evaluate_conditional_warnv): Use
1318         vrp_evaluate_conditional_warnv_with_ops.
1319         * tree.h (tree_unary_nonzero_warnv_p): Declare.
1320         (tree_binary_nonzero_warnv_p): Declare.
1321         (tree_single_nonzero_warnv_p): Declare.
1322         (tree_expr_nonzero_warnv_p): Declare.
1323         (tree_unary_nonnegative_warnv_p): Declare.
1324         (tree_binary_nonnegative_warnv_p): Declare.
1325         (tree_single_nonnegative_warnv_p): Declare.
1326         (tree_invalid_nonnegative_warnv_p): Declare.
1327
1328 2008-03-28  Richard Guenther  <rguenther@suse.de>
1329
1330         PR tree-optimization/30317
1331         PR tree-optimization/30911
1332         PR tree-optimization/34793
1333         * tree-vrp.c (set_and_canonicalize_value_range): New function.
1334         (struct assert_locus_d): New member EXPR.
1335         (register_new_assert_for): Add EXPR parameter to support
1336         ASSERT_EXPR <name, expr OP limit>.
1337         (register_edge_assert_for_1): Adjust callers.
1338         (find_assert_locations): Likewise.
1339         (process_assert_insertions_for): Build condition from expression.
1340         (extract_range_from_assert): Handle ASSERT_EXPRs
1341         of the form ASSERT_EXPR <name, expr OP limit>.
1342         (register_edge_assert_for_2): New helper registering
1343         asserts for comparisons.  Recognize range tests of the form
1344         (unsigned)i - CST1 OP CST2.
1345         (register_edge_assert_for_1): Use it.
1346         (register_edge_assert_for): Likewise.
1347         (needs_overflow_infinity): Integer sub-types
1348         do not need overflow infinities.
1349         (vrp_val_is_max): The extreme values of integer sub-types
1350         are those of the base type.
1351         (vrp_val_is_min): Likewise.
1352         * tree.def (ASSERT_EXPR): Document extra allowed conditional
1353         expressions.
1354
1355 2008-03-28  Nick Clifton  <nickc@redhat.com>
1356
1357         * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
1358         Return GENERAL_REGS for stack adjustment reloads.
1359
1360 2008-03-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1361
1362         PR target/31334
1363         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
1364         const_vector when all the vectors are constant.
1365
1366 2008-03-27  Bob Wilson  <bob.wilson@acm.org>
1367
1368         * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
1369         comparisons.
1370         * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
1371         (any_scc_sf): Add uneq, unlt, unle and unordered operators.
1372         (scc_sf): New.
1373         (s<code>_sf): Use new scc_sf attribute for opcode names.
1374
1375 2008-03-27  Tom Tromey  <tromey@redhat.com>
1376
1377         * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
1378         configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
1379         config/spu/t-spu-elf, config/i386/t-interix,
1380         config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
1381         config/i386/x-darwin, config/i386/x-mingw32,
1382         config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
1383         config/sh/t-sh, config/sh/t-symbian, config/x-linux,
1384         config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
1385         config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
1386         config/rs6000/x-rs6000, config/rs6000/x-darwin64,
1387         config/rs6000/x-darwin, config/rs6000/t-rs6000,
1388         config/score/t-score-elf, config/arm/t-strongarm-pe,
1389         config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
1390         config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
1391         Revert automatic dependency patch.
1392
1393 2008-03-27  H.J. Lu  <hongjiu.lu@intel.com>
1394
1395         PR target/35657
1396         * config/i386/i386.c (ix86_function_arg_boundary): Align
1397         decimal floating point to its natural boundary.
1398
1399 2008-03-27  Richard Guenther  <rguenther@suse.de>
1400
1401         PR middle-end/35716
1402         * fold-const.c (fold_comparison): Restrict distinct decl
1403         comparison folding to VAR_DECLs and PARM_DECLs.  Do not
1404         solely rely on operand_equal_p.
1405
1406 2008-03-27  Richard Guenther  <rguenther@suse.de>
1407
1408         PR c/32511
1409         * c-common.c (handle_weak_attribute): Reject combination of
1410         weak and inline.
1411
1412 2008-03-27  Richard Guenther  <rguenther@suse.de>
1413
1414         PR tree-optimization/32810
1415         * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
1416         conversions from DECL_INITIAL.
1417         (fold_const_aggregate_ref): Likewise from constructor elements.
1418
1419 2008-03-27  Zdenek Dvorak  <ook@ucw.cz>
1420
1421         * tree-affine.h (aff_combination_expand): Declare.
1422         (get_inner_reference_aff): Likewise.
1423         * tree-affine.c (aff_combination_expand): Split out from
1424         tree_to_aff_combination_expand.
1425         (get_inner_reference_aff): New function.
1426         * tree-parloops.c (loop_parallel_p): Free vectorizer info.
1427         * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
1428         (struct lim_aux_data): sm_done field removed.
1429         (mem_ref_loc_p, mem_ref_locs_p): New types.
1430         (struct mem_ref): Added id, stored, accesses_in_loop,
1431         indep_loop, dep_loop, indep_ref, dep_ref fields.
1432         Removed is_stored, locs and next fields.
1433         (memory_accesses): New variable.
1434         (movement_possibility): Do not allow moving statements
1435         that store to memory.
1436         (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
1437         New functions.
1438         (determine_max_movement): For statements with memory references,
1439         find the outermost loop in that the reference is independent.
1440         (move_computations_stmt): Mark the virtual operands for renaming.
1441         (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
1442         gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
1443         vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
1444         add_vop_ref_mapping, create_vop_ref_mapping_loop,
1445         create_vop_ref_mapping, analyze_memory_references,
1446         cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
1447         get_all_locs_in_loop, ref_always_accessed_p,
1448         refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
1449         ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
1450         store_motion_loop, store_motion): New functions.
1451         (struct vop_to_refs_elt): New type.
1452         (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
1453         memref_hash, memref_eq, hoist_memory_references): Rewritten.
1454         (schedule_sm): Replaced by...
1455         (execute_sm): ... this.
1456         (determine_lsm_ref, hoist_memory_references,
1457         loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
1458         find_more_ref_vops, free_mem_ref, free_mem_refs,
1459         determine_lsm_loop, determine_lsm): Removed.
1460         (tree_ssa_lim_finalize): Free data structures used by store motion.
1461         (tree_ssa_lim): Call analyze_memory_references.  Use
1462         store_motion instead of determine_lsm.
1463
1464 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
1465
1466         * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
1467         rename tmake_file to m68hc11/t-m68hc11.
1468         (mcore): Set inhibit_libc to true.
1469         * config.host (alpha*-dec-*vms*): Set extra_programs.
1470         (interix3*): Don't use host_xmake_file.
1471         * configure.ac: Let config.gcc override inhibit_libc.
1472         * configure: Regenerate.
1473
1474         * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
1475         * config/t-openbsd-thread: Remove commented out lines.
1476         
1477         * config/x-interix: Remove.
1478
1479         * config/m68hc11/t-m68hc11-gas: Rename to...
1480         * config/m68hc11/t-m68hc11: ... this.  Remove T_CPPFLAGS.
1481
1482         * config/mcore/t-mcore: Remove T_CFLAGS.
1483         * config/mcore/t-mcore-pe: Likewise.
1484
1485 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
1486
1487         * configure.ac: Replace custom __GNU_SOURCE test with
1488         AC_USE_SYSTEM_EXTENSIONS.  Move it earlier.
1489         * aclocal.m4: Regenerate.
1490         * configure: Regenerate.
1491         * config.in: Regenerate.
1492
1493 2008-03-27  Richard Guenther  <rguenther@suse.de>
1494
1495         * fold-const.c (target.h): Include.
1496         (fold_comparison): Fold comparison of addresses of decls
1497         that bind locally or of constants.  Consolidate address folding code.
1498         * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
1499         results from fold_binary_to_constant.
1500         (compare_values_warnv): Likewise.
1501
1502 2008-03-27  Andrew Pinski  <pinskia@gmail.com>
1503
1504         PR middle-end/35429
1505         * fold-const.c (fold_truthop): Check for integeral types when folding
1506         a == 0 && b == 0 and a != 0 || b != 0 .
1507
1508 2008-03-26  Eric Botcazou  <ebotcazou@adacore.com>
1509
1510         * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
1511
1512 2008-03-26  Andreas Schwab  <schwab@suse.de>
1513
1514         * doc/invoke.texi: Fix use of @item vs. @itemx.
1515
1516 2008-03-26  Tom Tromey  <tromey@redhat.com>
1517
1518         * Makefile.in (build/gensupport.o, build/print-rtl.o,
1519         build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
1520         build/genattrtab.o, build/genautomata.o, build/gencheck.o,
1521         build/gencodes.o, build/genconditions.o, build/genconfig.o,
1522         build/genconstants.o, build/genemit.o, build/genextract.o,
1523         build/genflags.o, build/genmddeps.o, build/genopinit.o,
1524         build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
1525         options.h.
1526
1527 2008-03-26  Richard Guenther  <rguenther@suse.de>
1528
1529         Revert
1530         2008-03-26  Richard Guenther  <rguenther@suse.de>
1531
1532         * fold-const.c (target.h): Include.
1533         (fold_comparison): Fold comparison of addresses of two decls
1534         that bind locally.  Consolidate address folding code.
1535
1536 2008-03-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1537
1538         * builtins.c (expand_builtin_pow, fold_builtin_cabs,
1539         fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
1540         fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
1541         dconstsqrt2, dconstthird, dconste and/or dconst10.
1542         * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
1543         * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
1544         dconstsqrt2, dconste): Delete.
1545         (init_emit_once): Likewise.  Simplify initializing dconstm1.
1546         Constify variable.
1547         * real.c (get_real_const): New.
1548         * real.h (dconst3, dconst10, dconstm2, dconstthird,
1549         dconstsqrt2, dconste): Delete.
1550         (real_value_const, get_real_const): New.
1551
1552 2008-03-26  H.J. Lu  <hongjiu.lu@intel.com>
1553
1554         * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
1555
1556         * config/i386/i386.c (ix86_function_arg_boundary): Check
1557         BIGGEST_ALIGNMENT instead of 128.
1558         (setup_incoming_varargs_64): Likewise.
1559
1560 2008-03-26  Tom Tromey  <tromey@redhat.com>
1561
1562         * Makefile.in (DEPFILES): Add missing '/'.
1563
1564 2008-03-26  Richard Guenther  <rguenther@suse.de>
1565
1566         * fold-const.c (target.h): Include.
1567         (fold_comparison): Fold comparison of addresses of two decls
1568         that bind locally.  Consolidate address folding code.
1569
1570 2008-03-26  Nick Clifton  <nickc@redhat.com>
1571
1572         PR target/31232
1573         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
1574         not allow INT+INT as a legitimate addressing mode.
1575
1576 2008-03-26  Richard Guenther  <rguenther@suse.de>
1577
1578         * tree-flow.h (widen_bitfield): Remove declaration.
1579         * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
1580         (widen_bitfield): Remove function.
1581         * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
1582         code.
1583
1584 2008-03-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1585
1586         PR target/31558
1587         * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
1588         error_mark_node's.
1589
1590 2008-03-25  Richard Sandiford  <rsandifo@nildram.co.uk>
1591
1592         PR rtl-optimization/35232
1593         * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
1594         (forget_old_reloads_1, forget_marked_reloads): Don't clear
1595         reg_reloaded_call_part_clobbered here.
1596         (reload_regs_reach_end_p): New function.
1597         (reload_reg_rtx_for_input): New variable.
1598         (reload_reg_rtx_for_output): Likewise.
1599         (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
1600         when reassigning a pseudo register.  Load reloadreg from 
1601         reload_reg_rtx_for_input, moving the mode and register
1602         calculation to...
1603         (do_input_reload): ...here.  Use the mode-adjusted reg_rtx
1604         instead of the original when deciding whether an input reload
1605         would be a no-op or whether an output reload can be deleted.
1606         (emit_output_reload_insns): Use the mode-adjusted reg_rtx
1607         when setting up new_spill_reg_store.  Load it from
1608         reload_reg_rtx_for_output, moving the mode and register
1609         calculation to...
1610         (do_output_reload): ...here.  Use the mode-adjusted reg_rtx
1611         instead of the original when deciding whether an output reload
1612         would be a no-op.  Do the same when modifying insn notes.
1613         Use rtx_equal_p instead of == to compare the registers.
1614         (inherit_piecemeal_p): Take a mode and two register numbers
1615         as argument.
1616         (emit_reload_insns): Clear new_spill_reg_store for every hard
1617         register in the reload register.  Remove spill registers
1618         from reg_reloaded_valid before considering whether to record
1619         inheritance information for them.  Use reload_reg_rtx_for_output
1620         instead of reg_rtx when recording output reloads.  Use
1621         reload_reg_rtx_for_input instead of reg_rtx when recording
1622         input reloads.  Set or clear reg_reloaded_call_part_clobbered
1623         at the same time as setting reg_reloaded_valid.
1624         (delete_output_reload): Add a new_reload_reg parameter and use it
1625         instead of rld[j].reg_rtx.
1626         (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
1627         calls accordingly.
1628
1629 2008-03-25  Tom Tromey  <tromey@redhat.com>
1630
1631         * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
1632         (build/genattr.o): Likewise.
1633         (build/genattrtab.o): Likewise.
1634         (build/gencodes.o): Likewise.
1635         (build/genconfig.o): Likewise.
1636         (build/genconstants.o): Likewise.
1637         (build/genemit.o): Likewise.
1638         (build/genextract.o): Likewise.
1639         (build/genflags.o): Likewise.
1640
1641 2008-03-25  Bob Wilson  <bob.wilson@acm.org>
1642         
1643         * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
1644         instead of size_int for integer types.
1645         (xtensa_gimplify_va_arg_expr): Likewise.  Convert index to sizetype
1646         to match type of MINUS_EXPR.
1647         
1648 2008-03-25  Tom Tromey  <tromey@redhat.com>
1649
1650         * configure: Rebuilt.
1651         * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
1652         Makefile.
1653
1654 2008-03-25  Tom Tromey  <tromey@redhat.com>
1655
1656         * config/x-solaris (host-solaris.o): Update.
1657         * config/x-linux (host-linux.o): Update.
1658         * config/x-hpux (host-hpux.o): Update.
1659         * config/x-darwin (host-darwin.o): Update.
1660         * config/v850/t-v850e (v850-c.o): Update.
1661         * config/v850/t-v850 (v850-c.o): Update.
1662         * config/t-vxworks (vxworks.o): Update.
1663         * config/t-sol2 (sol2-c.o, sol2.o): Update.
1664         * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
1665         * config/spu/t-spu-elf (spu-c.o): Update.
1666         (spu.o): Remove.
1667         * config/sh/t-symbian (sh-c.o): Update.
1668         (symbian.o): Update.
1669         * config/sh/t-sh (sh-c.o): Update.
1670         * config/score/t-score-elf (score7.o, score3.o): Update.
1671         * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
1672         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
1673         * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
1674         * config/rs6000/t-rs6000 (rs6000-c.o): Update.
1675         (rs6000.o): Remove.
1676         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
1677         * config/m32c/t-m32c (m32c-pragma.o): Update.
1678         * config/ia64/t-ia64 (ia64-c.o): Update.
1679         * config/i386/x-mingw32 (host-mingw32.o): Update.
1680         * config/i386/x-i386 (driver-i386.o): Update.
1681         * config/i386/x-darwin (host-i386-darwin.o): Update.
1682         * config/i386/x-cygwin (host-cygwin.o): Update.
1683         * config/i386/t-nwld (nwld.o): Update.
1684         * config/i386/t-netware (netware.o): Update.
1685         * config/i386/t-interix (winnt.o): Update.
1686         * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
1687         * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
1688         msformat-c.o): Update.
1689         * config/bfin/t-bfin-linux (generated_files): Add
1690         linux-sysroot-suffix.h.
1691         * config/arm/t-wince-pe (pe.o): Update.
1692         * config/arm/t-strongarm-pe (pe.o): Update.
1693         * config/arm/t-pe (pe.o): Update.
1694         * config/arm/t-arm (arm-c.o): Update.
1695         * doc/install.texi (Prerequisites): Require make 3.80.
1696         * Makefile.in: Remove .o targets.
1697         (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
1698         (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
1699         (simple_generated_h, simple_generated_c): Move earlier.
1700         (generated_files): New variable.
1701         (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
1702         TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
1703         BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
1704         ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
1705         REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
1706         CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
1707         CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
1708         INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
1709         PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
1710         TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
1711         DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
1712         VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
1713         (.c.o): Remove.
1714         (COMPILE.base, COMPILE): New variables.
1715         (%.o): New pattern rule.
1716         (ALL_HOST_OBJS): New variable.
1717         (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
1718         (dummy-checksum.o, cc1-checksum.o): Remove.
1719         (DRIVER_SHLIB): New variable.
1720         (DRIVER_DEFINES): Use it.
1721         (gencondmd.c): Move out of build/.
1722         (s-conditions): Update.
1723         (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
1724         (ALL_BUILD_OBJS): Likewise.
1725         (build/%.o): Use BUILDCOMPILE.
1726         (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
1727         build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
1728         build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
1729         build/gencheck.o, build/gencodes.o, build/genconditions.o,
1730         build/genconfig.o, build/genconstants.o, build/genemit.o,
1731         build/genextract.o, build/genflags.o, build/genmddeps.o,
1732         build/genopinit.o, build/genoutput.o, build/genpeep.o,
1733         build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
1734         build/gen-protos.o, build/scan.o, build/fix-header.o,
1735         build/scan-decls.o): Simplify.
1736         (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
1737         cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
1738         prefix.o, toplev.o): Reduce to variable setting.
1739         (libbackend.o): Use COMPILE.  Remove most dependencies.  Move later.
1740         ($(out_object_file), gcc-options.o): New targets.
1741         ($(ALL_HOST_OBJS)): New target.  Include dependency files.
1742         * configure: Rebuilt.
1743         * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
1744         * doc/sourcebuild.texi (Front End Directory): Document new variable.
1745
1746 2008-03-25  Douglas Gregor  <doug.gregor@gmail.com>
1747
1748         * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
1749         complain when we hit an error, return ERROR_MARK_NODE.
1750
1751 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
1752
1753         * config/sh/constraints.md (Pso, Psz): New constraints.
1754         * config/sh/sh.c (print_operand): Add %V and %W operand codes.
1755         * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
1756
1757 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
1758
1759         * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
1760         * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
1761
1762 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
1763
1764         * config/sh/sh.md (prefetch): Add condition for SH2A target.
1765         (prefetch_sh2a): New.   
1766
1767 2008-03-25  Jayant Sonar  <Jayant.sonar@kpitcummins.com>
1768             Naveen.H.S  <naveen.hs@kpitcummins.com>
1769
1770         * config/sh/constraints.md (I28): New constraint.
1771         * config/sh/sh.c (broken_move): Add support for movi20s.
1772         * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
1773
1774 2008-03-25  Anil Paranjape  <anil.paranjape@kpitcummins.com>
1775             Jayant Sonar  <Jayant.sonar@kpitcummins.com>
1776             Naveen.H.S  <naveen.hs@kpitcummins.com>
1777
1778         * config/sh/sh.c (SH_ATTRIBUTES): Define.
1779         (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
1780         (print_operand): Handle resbank in %@ operand code.
1781         (sh_encode_section_info): New.
1782         (push_regs): Add conditions for resbank.
1783         (sh_expand_epilogue): Likewise.
1784         (sh_insert_attributes): Likewise.
1785         (sh_attribute_table): Likewise.
1786         (sh_handle_resbank_handler_attribute): New.
1787         (sh2a_handle_function_vector_handler_attribute): New.
1788         (sh2a_is_function_vector_call): New.
1789         (sh2a_get_function_vector_number): New.
1790         (sh2a_function_vector_p): New.
1791         (sh_cfun_resbank_handler_p): New.
1792         * config/sh/sh.md (calli): Emit jsr/n if possible.
1793         (calli_tbr_rel): New.
1794         (calli_pcrel): Emit jsr/n if possible.
1795         (return_i): Emit rts/n if possible.
1796         (call_valuei_tbr_rel): New.
1797         (call_valuei_pcrel): Add condition for SH2A target.
1798         (call_value): Likewise.
1799         * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
1800         (sh2a_get_function_vector_number): Likewise.
1801         (sh2a_is_function_vector_call): Likewise.
1802         * doc/extend.texi: Document TBR relative addressing of SH2A.
1803         (resbank): Add description for SH2A.
1804
1805 2008-03-24  Richard Guenther  <rguenther@suse.de>
1806
1807         PR c/22371
1808         * gimplify.c (gimplify_modify_expr): For frontend type-correct
1809         pointer assignments change conversions according to middle-end rules.
1810         (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
1811         * configure.ac: Include type checking in yes.
1812         * configure: Regenerate.
1813
1814 2008-03-24  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1815
1816         * diagnostic.c (diagnostic_count_diagnostic): Delete.
1817         (diagnostic_report_diagnostic): Update. Handle ICEs here.
1818         
1819 2008-03-24  Nathan Sidwell  <nathan@codesourcery.com>
1820
1821         * gthr-vxworks.h (UNUSED): Define.
1822
1823 2008-03-23  H.J. Lu  <hongjiu.lu@intel.com>
1824
1825         * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
1826
1827 2008-03-23  Zuxy Meng <zuxy.meng@gmail.com>
1828
1829         * doc/extend.texi (Function Attributes): Add missing comma in the
1830         example of the "alloc_size" attribute.
1831         
1832 2008-03-23  Uros Bizjak  <ubizjak@gmail.com>
1833
1834         Revert:
1835         2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
1836
1837         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
1838         32bit host.
1839
1840         2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
1841
1842         PR target/35496
1843         * stor-layout.c (update_alignment_for_field): Set minimum alignment
1844         of the underlying type of a MS bitfield layout to the natural
1845         alignment of the type.
1846
1847         2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
1848
1849         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
1850         to their natural alignment to avoid store forwarding stalls.
1851
1852 2008-03-22  Richard Guenther  <rguenther@suse.de>
1853
1854         * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
1855         For PHI nodes verify the address is invariant.
1856         * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
1857         (get_symbol_constant_value): Use is_gimple_min_invariant.
1858         (maybe_fold_stmt_indirect): Likewise.
1859
1860 2008-03-22  Richard Sandiford  <rsandifo@nildram.co.uk>
1861
1862         PR rtl-optimization/33927
1863         * Makefile.in (dse.o): Depend on $(TM_P_H).
1864         * expr.h (extract_low_bits): Declare.
1865         * expmed.c (extract_low_bits): New function.
1866         * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
1867         * dse.c: Include tm_p.h.
1868         (find_shift_sequence): Remove the read_reg argument and return the
1869         read value.  Emit the instructions instead of returning them.
1870         Iterate on new_mode rather than calculating it each time.
1871         Check MODES_TIEABLE_P.  Use simplify_gen_subreg to convert the
1872         source to NEW_MODE and extract_low_bits to convert the shifted
1873         value to READ_MODE.
1874         (replace_read): Allow the load and store to have different mode
1875         classes.  Use extract_low_bits when SHIFT == 0.  Create the shift
1876         or extraction instructions before trying the replacement.  Update
1877         dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
1878
1879 2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
1880
1881         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
1882         to their natural alignment to avoid store forwarding stalls.
1883
1884 2008-03-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1885
1886         PR target/27946
1887         * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
1888         encouraging but not allowing gprs for input;
1889         change the input constraint to !f#r.
1890         (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
1891         gprs for output;
1892         change the output constraint to !f#r.
1893
1894 2008-03-21  Uros Bizjak  <ubizjak@gmail.com>
1895
1896         PR target/13958
1897         * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
1898         corresponding post-reload splitters.
1899         ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
1900         when x87 FP math is selected.
1901         * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
1902         New function prototype.
1903         * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
1904         unreachable function to ease macroization of insn patterns.
1905
1906 2008-03-21  Martin Jambor  <mjambor@suse.cz>
1907
1908         * tree-data-ref.c (dump_data_dependence_relation): Avoid data
1909         reference dumps if ddr is NULL or dependence is unknown.
1910
1911 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
1912
1913         * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
1914         unsigned extension into account.
1915         (ATOMIC_COMPARE_AND_SWAP): Likewise.
1916         (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
1917         Do computations on a scratch register.
1918
1919 2008-03-21  Richard Guenther  <rguenther@suse.de>
1920
1921         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
1922         Use is_gimple_min_invariant instead of TREE_INVARIANT.
1923         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
1924         * tree-ssa-dom.c (record_equality): Likewise.
1925         * tree-inline.c (copy_body_r): Likewise.
1926         * tree-ssa-pre.c (make_values_for_stmt): Remove test for
1927         TREE_INVARIANT.
1928
1929 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
1930
1931         * config/sh/sh.c (split_branches): Pass zero to redirect_jump
1932         as 'delete_unused' argument.
1933
1934 2008-03-20  Richard Guenther  <rguenther@suse.de>
1935
1936         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
1937         special casing of constant qualifiers.
1938         * tree-ssa.c (useless_type_conversion_p_1): Instead do not
1939         care about them in general.
1940         * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
1941         regardless of their type.
1942         (fold_stmt_r): Forcefully fold *& if we end up with that.
1943
1944 2008-03-20  Paul Brook  <paul@codesourcery.com>
1945
1946         * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
1947         * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
1948         linker flags.
1949         * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
1950         definition.
1951         (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
1952         * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
1953
1954 2008-03-20  Volker Reichelt  <v.reichelt@netcologne.de>
1955
1956         * common.opt (Wmudflap): New option.
1957         * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
1958         (mx_register_decls): Likewise.
1959         (mudflap_finish_file): Likewise.
1960         * doc/invoke.texi: Document -Wno-mudflap.
1961
1962 2008-03-20  Kai Tietz  <kai.tietz@onevision.com>
1963
1964         * c-format.c (replace_format_name_to_system_name): New.
1965         (cmp_attribs): New.
1966         (convert_format_name_to_system_name): New.
1967         (decode_format_attr): Add use of convert_format_name_to_system_name.
1968         (format_types_orig): Add gnu_ prefix to names.
1969         (check_format_info_main): Special treating of \0 escaped names for
1970         supporting multi-character format specifiers as I32, I64.
1971         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
1972         (gnu_target_overrides_format_attributes): New.
1973         * c-format.h: Add structure target_ovr_attr to hold
1974         system specific formatter names.
1975         * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
1976         msformat-c.o file to c_target_objs and cxx_target_objs.
1977         * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
1978         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
1979         (TARGET_N_FORMAT_TYPES): New.
1980         * config/i386/msformat-c.c: New.
1981         * config/i386/t-cygming: Add build rule for msformat-c.o.
1982         * doc/extend.texi: Add new format names gnu_* and ms_* and
1983         further details.
1984         * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
1985
1986 2008-03-20  Ira Rosen  <irar@il.ibm.com>
1987
1988         * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
1989         optimizations turned on under -O3.
1990         (ftree-vectorize): Add that the flag is turned on with -O3.
1991
1992 2008-03-20  Ben Elliston  <bje@au.ibm.com>
1993
1994         * regmove.c (try_auto_increment): Fix spelling error in comment.
1995         * final.c (final_scan_insn): Likewise.
1996
1997 2008-03-20  Uros Bizjak  <ubizjak@gmail.com>
1998
1999         PR target/14552
2000         * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
2001         allocator preferences for "y" and "r" class registers.
2002         ("*mov<mode>_internal"): Ditto.
2003         ("*movv2sf_internal_rex64"): Ditto.
2004         ("*movv2sf_internal"): Ditto.
2005
2006 2008-03-19  Michael Matz  <matz@suse.de>
2007
2008         PR middle-end/35616
2009         * calls.c (expand_call): Check overlap of arguments with call
2010         address for sibcalls.
2011
2012 2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
2013
2014         PR target/35496
2015         * stor-layout.c (update_alignment_for_field): Set minimum alignment
2016         of the underlying type of a MS bitfield layout to the natural
2017         alignment of the type.
2018
2019 2008-03-19  Jan Hubicka  <jh@suse.cz>
2020
2021         PR other/35094
2022         * toplev.c (decode_d_option): Handle all CPP flags.
2023         * tree-vrp.c: Update tree_pass descriptors.
2024         * regrename.c: Update tree_pass descriptors.
2025         * fwprop.c: Update tree_pass descriptors.
2026         * doc/invoke.texi: Remove documentation of dropped -d? flags.
2027         * tree-into-ssa.c: Update tree_pass descriptors.
2028         * tree-dump.c: Update tree_pass descriptors.
2029         * tree-complex.c: Update tree_pass descriptors.
2030         * tree-dump.h: Update tree_pass descriptors.
2031         * see.c: Update tree_pass descriptors.
2032         * cgraphbuild.c: Update tree_pass descriptors.
2033         * tracer.c: Update tree_pass descriptors.
2034         * tree-loop-distribution.c: Update tree_pass descriptors.
2035         * cgraph.c: Update tree_pass descriptors.
2036         * postreload-gcse.c: Update tree_pass descriptors.
2037         * postreload.c: Update tree_pass descriptors.
2038         * tree-ssa-loop-ch.c: Update tree_pass descriptors.
2039         * tree-tailcall.c: Update tree_pass descriptors.
2040         * tree-pass.h (tree_opt_pass): Rename to ...
2041         (opt_pass) ... this one; add "type" field and remove letter field.
2042         (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
2043         (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
2044         all_lowering_passes): Update declaration.
2045         * ipa-cp.c: Update tree_pass descriptors.
2046         * final.c: Update tree_pass descriptors.
2047         * omp-low.c: Update tree_pass descriptors.
2048         * tree-ssa-dse.c: Update tree_pass descriptors.
2049         * ipa-reference.c: Update tree_pass descriptors.
2050         * tree-ssa-uncprop.c: Update tree_pass descriptors.
2051         * auto-inc-dec.c: Update tree_pass descriptors.
2052         * reorg.c: Update tree_pass descriptors.
2053         * cgraphunit.c: Update tree_pass descriptors.
2054         * tree-ssa-copyrename.c: Update tree_pass descriptors.
2055         * tree-ssa-ccp.c: Update tree_pass descriptors.
2056         * df-core.c: Update tree_pass descriptors.
2057         * mode-switching.c: Update tree_pass descriptors.
2058         * tree-nomudflap.c: Update tree_pass descriptors.
2059         * modulo-sched.c: Update tree_pass descriptors.
2060         * ipa-pure-const.c: Update tree_pass descriptors.
2061         * cse.c: Update tree_pass descriptors.
2062         * web.c: Update tree_pass descriptors.
2063         * tree-stdarg.c: Update tree_pass descriptors.
2064         * tree-ssa-math-opts.c: Update tree_pass descriptors.
2065         * tree-ssa-dom.c: Update tree_pass descriptors.
2066         * tree-nrv.c: Update tree_pass descriptors.
2067         * tree-ssa-alias.c: Update tree_pass descriptors.
2068         * loop-init.c: Update tree_pass descriptors.
2069         * gimple-low.c: Update tree_pass descriptors.
2070         * ipa-inline.c: Update tree_pass descriptors.
2071         * tree-ssa-sink.c: Update tree_pass descriptors.
2072         * global.c: Update tree_pass descriptors.
2073         * ifcvt.c: Update tree_pass descriptors.
2074         * jump.c: Update tree_pass descriptors.
2075         * predict.c: Update tree_pass descriptors.
2076         * tree-ssa-loop.c: Update tree_pass descriptors.
2077         * recog.c: Update tree_pass descriptors.
2078         * dse.c: Update tree_pass descriptors.
2079         * tree-ssa-ifcombine.c: Update tree_pass descriptors.
2080         * tree-eh.c: Update tree_pass descriptors.
2081         * regmove.c: Update tree_pass descriptors.
2082         * local-alloc.c
2083         * function.c: Update tree_pass descriptors.
2084         * tree-vectorizer.c: Update tree_pass descriptors.
2085         * gcse.c: Update tree_pass descriptors.
2086         * ipa-type-escape.c: Update tree_pass descriptors.
2087         * tree-if-conv.c: Update tree_pass descriptors.
2088         * init-regs.c: Update tree_pass descriptors.
2089         * ipa.c: Update tree_pass descriptors.
2090         * tree-ssa-phiopt.c: Update tree_pass descriptors.
2091         * rtl-factoring.c: Update tree_pass descriptors.
2092         * lower-subreg.c: Update tree_pass descriptors.
2093         * bt-load.c: Update tree_pass descriptors.
2094         * tree-dfa.c: Update tree_pass descriptors.
2095         * except.c: Update tree_pass descriptors.
2096         * emit-rtl.c: Update tree_pass descriptors.
2097         * cfgexpand.c: Update tree_pass descriptors.
2098         * tree-cfgcleanup.c: Update tree_pass descriptors.
2099         * cfgcleanup.c: Update tree_pass descriptors.
2100         * tree-ssa-pre.c: Update tree_pass descriptors.
2101         * tree-sra.c: Update tree_pass descriptors.
2102         * tree-mudflap.c: Update tree_pass descriptors.
2103         * tree-ssa-copy.c: Update tree_pass descriptors.
2104         * cfglayout.c: Update tree_pass descriptors.
2105         * tree-ssa-forwprop.c: Update tree_pass descriptors.
2106         * tree-ssa-dce.c: Update tree_pass descriptors.
2107         * tree-ssa.c: Update tree_pass descriptors.
2108         * regclass.c: Update tree_pass descriptors.
2109         * integrate.c: Update tree_pass descriptors.
2110         * tree-optimize.c: Update tree_pass descriptors.
2111         * tree-ssa-phiprop.c: Update tree_pass descriptors.
2112         * tree-object-size.c: Update tree_pass descriptors.
2113         * combine.c: Update tree_pass descriptors.
2114         * tree-outof-ssa.c: Update tree_pass descriptors.
2115         * bb-reorder.c: Update tree_pass descriptors.
2116         * stack-ptr-mod.c: Update tree_pass descriptors.
2117         * var-tracking.c: Update tree_pass descriptors.
2118         * tree-profile.c: Update tree_pass descriptors.
2119         * tree-vect-generic.c: Update tree_pass descriptors.
2120         * reg-stack.c: Update tree_pass descriptors.
2121         * sched-rgn.c: Update tree_pass descriptors.
2122         * tree-ssa-structalias.c: Update tree_pass descriptors.
2123         * tree-cfg.c: Update tree_pass descriptors.
2124         * passes.c (current_pass): Update declaration.
2125         (finish_optimization_passes): Update.
2126         (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
2127         (register_one_dump_file, register_dump_files_1, next_pass_1):
2128         Update arguments.
2129         (init_optimization_passes): Update handling of new types.
2130         (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
2131         * ipa-struct-reorg.c: Update tree_pass descriptors.
2132         * tree-ssa-reassoc.c: Update tree_pass descriptors.
2133         * combine-stack-adj.c: Update tree_pass descriptors.
2134         * cfgrtl.c: Update tree_pass descriptors.
2135         * dce.c: Update tree_pass descriptors.
2136         * tree-ssanames.c: Update tree_pass descriptors.
2137
2138 2008-03-19  Richard Guenther  <rguenther@suse.de>
2139
2140         PR middle-end/35609
2141         * tree-ssa.c (walk_data): New structure.
2142         (warn_uninitialized_var): If not always_executed warn with "maybe"
2143         instead of "is".
2144         (execute_early_warn_uninitialized): Compute post-dominators.
2145         Initialize always_executed before processing each basic block.
2146
2147 2008-03-18  Mikulas Patocka  <mikulas@artax.karlin.mff.cuni.cz>
2148
2149         PR target/35504
2150         * config/i386/i386.c (x86_this_parameter): Calculate correct location
2151         of "this" pointer when "regparm = N" or "fastcall" is in effect.
2152
2153 2008-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2154
2155         * doc/include/texinfo.tex: Update to version 2008-03-17.10.
2156
2157 2008-03-18  Paolo Bonzini  <bonzini@gnu.org>
2158
2159         * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
2160         is true.
2161         (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
2162         (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
2163         is true.  Add "&& !ignore" condition to reduce_bit_field.  Modify
2164         target after ignore has been set, and move there also the commputation
2165         of subtarget and original_target.
2166         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
2167         (LANG_HOOKS_INITIALIZER): Remove it.
2168         * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
2169
2170 2008-03-18  Richard Guenther  <rguenther@suse.de>
2171
2172         * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
2173         found an expression with constants, note that in the VN for the lhs.
2174         * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
2175         fold them to constants if possible.  Run cleanup_cfg if done so.
2176         (execute_pre): Return todo.
2177         (do_pre): Likewise.
2178         (execute_fre): Likewise.
2179         * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
2180         of constants.
2181         (get_prop_source_stmt): Look through pointer conversions.
2182
2183 2008-03-18  Jan Hubicka  <jh@suse.cz>
2184
2185         * tree-pretty-print.c: Include predict.h.
2186         (dump_generic_node): Dump predictor.
2187         * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
2188         * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
2189         * gimple-low.c (lower_stmt): Likewise.
2190         * expr.c (expand_expr_real): Likewise.
2191         * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
2192         them.
2193         (build_predict_expr, build_predict_expr): New.
2194         * predict.h (predictor_name, build_predict_expr): Update.
2195         * c-typeck.c (c_finish_bc_stmt): Add prediction.
2196         * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
2197         * predict.def (PRED_CONTINUE): Update hitrate.
2198         * tree.def (PREDICT_EXPR): Define.
2199         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
2200         do not handle BIND_EXPR.
2201         * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
2202         * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
2203         * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
2204         operands.
2205
2206 2008-03-18  Michael Matz  <matz@suse.de>
2207
2208         * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
2209
2210 2008-03-18  Richard Guenther  <rguenther@suse.de>
2211
2212         * tree-gimple.h (is_gimple_invariant_address): Declare.
2213         (is_gimple_constant): Likewise.
2214         * tree-gimple.c (is_gimple_constant): New function.
2215         (is_gimple_invariant_address): Likewise.
2216         (is_gimple_min_invariant): Implement in terms of is_gimple_constant
2217         and is_gimple_invariant_address.
2218         * tree-ssa-loop-niter.c (expand_simple_operations): Revert
2219         previous change.
2220         * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
2221         an addressable base.
2222
2223 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
2224
2225         PR middle-end/35611
2226         * gimplify.c (gimplify_expr): Gimplify second operand of
2227         OMP_ATOMIC_LOAD.
2228
2229 2008-03-17  Richard Guenther  <rguenther@suse.de>
2230
2231         PR tree-optimization/19637
2232         * fold-const.c (fold_unary): Remove restrictions of removing
2233         intermediate pointer-conversions (P2)(P1)P0.
2234         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
2235         conversion to void pointer.
2236         (get_maxval_strlen): Handle addresses of the form &(*p)[0].
2237
2238 2008-03-16  James E. Wilson  <wilson@tuliptree.org>
2239
2240         PR debug/31510
2241         * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
2242         emulated thread local variables.
2243
2244 2008-03-16  Richard Guenther  <rguenther@suse.de>
2245
2246         PR middle-end/35607
2247         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
2248         expand TREE_INVARIANT operations that are not gimple invariant.
2249
2250 2008-03-16  Hans-Peter Nilsson  <hp@axis.com>
2251
2252         * doc/extend.texi (Alignment): Say that the ABI controls
2253         the __alignof__ for non-strict-alignment targets rather
2254         than being a recommendation.
2255
2256 2008-03-15  Paul Brook  <paul@codesourcery.com>
2257
2258         * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
2259         annotations.
2260         (arm_output_fn_unwind): Mark functions that can not be unwound.
2261
2262 2008-03-15  Paul Brook  <paul@codesourcery.com>
2263
2264         * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
2265         extension instructions.
2266
2267 2008-03-15  Richard Guenther  <rguenther@suse.de>
2268
2269         * tree-ssa-ccp.c (ccp_fold): Also read from constant values
2270         and fold constant aggregate refs.
2271         (fold_const_aggregate_ref): Handle string constants
2272         and constructors in ARRAY_REFs.  Handle INDIRECT_REF.
2273         (evaluate_stmt): Simplify now that ccp_fold folds constant
2274         aggregate refs.
2275
2276 2008-03-15  Paul Brook  <paul@codesourcery.com>
2277
2278         * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
2279         (extzv): Use gen_extzv_t2.
2280         (insv_t2, insv_zero, extv, extzv_t2): New patterns.
2281
2282 2008-03-15  Richard Guenther  <rguenther@suse.de>
2283
2284         * tree-ssa-ccp.c (get_symbol_constant_value): Export.
2285         (fold_const_aggregate_ref): Likewise.
2286         (get_value): Return NULL if we don't have any values.
2287         (ccp_finalize): Set const_val to NULL after freeing it.
2288         * tree-flow.h (get_symbol_constant_value): Declare.
2289         (fold_const_aggregate_ref): Likewise.
2290         * tree-ssa-sccvn.c (try_to_simplify): Use them.
2291
2292 2008-03-15  Richard Guenther  <rguenther@suse.de>
2293
2294         PR middle-end/35593
2295         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
2296         to not produce negative array indices if not allowed.  Add
2297         parameter to indicate that.
2298         (maybe_fold_offset_to_component_ref): Allow negative array
2299         indices only for the first member of a structure.
2300         (maybe_fold_offset_to_reference): Allow negative array indices.
2301         (maybe_fold_stmt_addition): Likewise.
2302
2303 2008-03-15  Bjoern Haase  <bjoern.m.haase@web.de>
2304             Anatoly Sokolov <aesok@post.ru>
2305
2306         * gcc/gcc/config/avr/avr.c (avr_arch_types): Add avr6 entry.
2307         (avr_arch): Add ARCH_AVR6.
2308         (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
2309         (initial_elimination_offset): Initialize and use 'avr_pc_size' 
2310         instead of fixed value 2.
2311         (print_operand_address): Use gs() asm specifier instead of pm().
2312         (avr_assemble_integer): (Ditto.).
2313         (avr_output_addr_vec_elt): (Ditto.).
2314         (print_operand): Handle "!" code.
2315         * gcc/gcc/config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add 
2316         __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
2317         (AVR_HAVE_EIJMP_EICALL): Define.
2318         (AVR_3_BYTE_PC): Redefine.
2319         (AVR_2_BYTE_PC): (Ditto.).
2320         (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
2321         (LINK_SPEC): Add atmega2560 and atmega2561.
2322         (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561 
2323         (crtm2561.o).
2324         * gcc/gcc/config/avr/avr.md (call_insn): Use eicall instead of icall 
2325         for 3 byte PC devices.
2326         (call_value_insn): (Ditto.).
2327         (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
2328         (indirect_jump): Use only for for 2 byte PC devices.
2329         (*tablejump): (Ditto.).
2330         (*indirect_jump_avr6): Add insn.
2331         (*tablejump_rjmp): Don't use for 3 byte PC devices.
2332         * gcc/gcc/config/avr/libgcc.S (__prologue_saves__): Use eijmp 
2333         instead of ijmp for 3 byte PC devices.
2334         (__tablejump2__): (Ditto.).
2335         * gcc/gcc/config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
2336         (MULITLIB_DIRNAMES): (Ditto.). 
2337         (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
2338
2339 2008-03-15  Uros Bizjak  <ubizjak@gmail.com>
2340
2341         * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
2342         "sse2_umulsidi3".  Use V1DI mode for operand 0.
2343         ("mmx_psadbw"): Use V1DI mode for operand 0.
2344         * config/i386/i386-modes.def (V1SI): New vector mode.
2345         * config/i386/i386.c (struct builtin_description)
2346         [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
2347         (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
2348         (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
2349         (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
2350         v1di_ftype_v8qi_v8qi type.
2351         [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
2352
2353         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
2354         __builtin_ia32_pmuludq]: Fix the mode of return value.
2355
2356 2008-03-15  Richard Guenther  <rguenther@suse.de>
2357
2358         PR middle-end/35595
2359         * tree-ssa-pre.c (bitmap_find_leader): Handle expression
2360         being a PHI_NODE.
2361
2362 2008-03-14  Bob Wilson  <bob.wilson@acm.org>
2363         
2364         * doc/invoke.texi (Option Summary, Xtensa Options): Document
2365         -mserialize-volatile and -mno-serialize-volatile Xtensa options.
2366         * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
2367         unless TARGET_SERIALIZE_VOLATILE is enabled.
2368         * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
2369         * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
2370         * config/xtensa/xtensa.opt (mserialize_volatile): New option.
2371
2372 2008-03-14  Richard Guenther  <rguenther@suse.de>
2373
2374         PR tree-optimization/34172
2375         * tree-flow.h (refs_may_alias_p): Declare.
2376         (get_single_def_stmt): Likewise.
2377         (get_single_def_stmt_from_phi): Likewise.
2378         (get_single_def_stmt_with_phi): Likewise.
2379         * tree-dfa.c (refs_may_alias_p): New function.
2380         (get_single_def_stmt): Likewise.
2381         (get_single_def_stmt_from_phi): Likewise.
2382         (get_single_def_stmt_with_phi): Likewise.
2383         * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
2384         (vn_reference_lookup_1): New helper function.
2385         (vn_reference_lookup): Walk the virtual use-def chain to
2386         continue searching for a match if the def does not alias the
2387         reference we are looking for.
2388
2389 2008-03-14  David Edelsohn  <edelsohn@gnu.org>
2390
2391         * doc/install.texi (Binaries): Remove UCLA archive.  Add HVCC
2392         archive and Perzl.  Update The Written Word listing.
2393
2394 2008-03-14  Richard Guenther  <rguenther@suse.de>
2395
2396         PR tree-optimization/34043
2397         PR tree-optimization/33989
2398         * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
2399         when doing FRE.
2400         (bitmap_find_leader): Use extra argument to verify dominance
2401         relationship inside a basic-block.
2402         (can_PRE_operation): Add VIEW_CONVERT_EXPR.
2403         (find_leader_in_sets): Adjust.
2404         (create_component_ref_by_pieces): Take extra argument for
2405         dominance check, handle lookup failures.
2406         (find_or_generate_expression): Likewise.
2407         (create_expression_by_pieces): Likewise.
2408         (insert_into_preds_of_block): Adjust.
2409         (create_value_expr_from): If asked for, verify all operands
2410         are in the blocks AVAIL_OUT set.
2411         (make_values_for_stmt): Check for SSA_NAMEs that are life
2412         over an abnormal edge.
2413         (compute_avail): Remove such check.
2414         (do_SCCVN_insertion): New function.
2415         (eliminate): If we do not find a leader suitable for replacement
2416         insert a replacement expression from SCCVN if available.
2417         * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
2418         (struct vn_ssa_aux): Add needs_insertion flag.
2419         * tree-ssa-sccvn.c (may_insert): New global flag.
2420         (copy_reference_ops_from_ref): Value-number union member access
2421         based on its size, not type and member if insertion is allowed.
2422         (visit_reference_op_load): For a weak match from union type
2423         punning lookup a view-converted value and insert a SSA_NAME
2424         for that value if that is not found.
2425         (visit_use): Make dumps shorter.  Do not disallow value numbering
2426         SSA_NAMEs that are life over an abnormal edge to constants.
2427         (free_scc_vn): Release inserted SSA_NAMEs.
2428         (run_scc_vn): New flag to specify whether insertion is allowed.
2429         Process SSA_NAMEs in forward order.
2430         * tree-ssa-loop-im.c (for_each_index): Handle invariant
2431         ADDR_EXPRs inside VIEW_CONVERT_EXPR.
2432         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
2433         pointer type to/from integral types that do not change the
2434         precision to regular conversions.
2435
2436 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
2437
2438         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
2439         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
2440         __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
2441         __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
2442         input arguments and the mode of return value.  Built-in functions
2443         that operate on whole 64-bit MMX register now use V1DI mode.
2444
2445 2008-03-13  Alon Dayan  <alond@il.ibm.com>
2446             Olga Golovanevsky  <olga@il.ibm.com>
2447
2448         PR tree-optimization/35041
2449         * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
2450         to locate the right position in a statement.
2451
2452 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
2453
2454         PR target/34000
2455         PR target/35553
2456         * config/i386/xmmintrin.h:  Change all static inline functions to
2457         extern inline and add __gnu_inline__ attribute.
2458         * config/i386/bmintrin.h: Ditto.
2459         * config/i386/smmintrin.h: Ditto.
2460         * config/i386/tmmintrin.h: Ditto.
2461         * config/i386/mmintrin-common.h: Ditto.
2462         * config/i386/ammintrin.h: Ditto.
2463         * config/i386/emmintrin.h: Ditto.
2464         * config/i386/pmmintrin.h: Ditto.
2465         * config/i386/mmintrin.h: Ditto.
2466         * config/i386/mm3dnow.h: Ditto.
2467
2468 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
2469
2470         PR middle-end/35185
2471         * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
2472         (lower_omp_2): New function.
2473         (lower_omp_1, lower_omp): Rewritten.
2474
2475 2008-03-13  Danny Smith  <dannysmith@users.sourceforge.net>
2476
2477         PR 35054
2478         * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
2479         with the phrase "Microsoft Windows compilers".
2480         (Push/Pop Macro Pragmas): New subsection. Document
2481         #pragma push_macro and pragma pop_macro.
2482
2483 2008-03-12  Paul Brook  <paul@codesourcery.com>
2484
2485         * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
2486
2487 2008-03-12  Paul Brook  <paul@codesourcery.com>
2488
2489         * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
2490         (thumb2_alusi3_short): Exclude PLUS and MINUS.
2491         (thumb2_addsi_shortim): Rename ...
2492         (thumb2_addsi_short): ... to this.  Allow register operands.
2493         (thumb2_subsi_short): New pattern.
2494         (thumb2_one_cmplsi2_short,
2495         thumb2_negsi2_short): New patterns and peepholes.
2496
2497 2008-03-12  Paul Brook  <paul@codesourcery.com>
2498
2499         * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
2500
2501 2008-03-12  Uros Bizjak  <ubizjak@gmail.com>
2502
2503         * config/i386/i386.md (int_cond): New code iterator.
2504         (fp_cond): Ditto.
2505         ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
2506         sge, sgeu, sle and sleu expanders usign int_cond code iterator.
2507         ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
2508         sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
2509         ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
2510         bge, bgeu, ble and bleu expanders usign int_cond code iterator.
2511         ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
2512         bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
2513
2514 2008-03-12  Paul Brook  <paul@codesourcery.com>
2515
2516         * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
2517         instead of {arm,thumb}_compute_save_reg_mask.
2518         (output_return_instruction): Ditto.
2519         (thumb_unexpanded_epilogue): Ditto.
2520         (thumb1_expand_prologue): Ditto.
2521         (thumb1_output_function_prologue): Ditto.
2522         (arm_set_return_address): Ditto.
2523         (thumb_set_return_address): Ditto.
2524         (arm_get_frame_offsets): Set offsets->saved_regs_mask.  Push extra
2525         regs to achieve stack alignment.
2526         (thumb1_compute_save_reg_mask): Fix compiler warning.
2527         (arm_output_epilogue): Use offsets->saved_regs_mask.
2528         Adjust stack pointer by poping call clobered registers.
2529         (arm_expand_prologue): Use offsets->saved_regs_mask.
2530         Adjust stack pointer by pushing extra registers.
2531         * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
2532
2533 2008-03-12  Paolo Bonzini  <bonzini@gnu.org>
2534
2535         PR tree-opt/35422
2536         * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
2537         conversion to the operands of a multiplication.
2538
2539 2008-03-12  Richard Guenther  <rguenther@suse.de>
2540
2541         * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
2542         (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
2543         * timevar.def (TV_TREE_PHIPROP): Add.
2544         * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
2545         pass description.  Use TV_TREE_PHIPROP.
2546         * tree-ssa-forwprop.c: Remove phiprop code.
2547
2548 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
2549
2550         PR middle-end/35549
2551         * omp-low.c (maybe_lookup_decl): Constify first argument.
2552         (use_pointer_for_field): Change last argument from bool to
2553         omp_context *.  Disallow shared copy-in/out in nested
2554         parallel if decl is shared in outer parallel too.
2555         (build_outer_var_ref, scan_sharing_clauses,
2556         lower_rec_input_clauses, lower_copyprivate_clauses,
2557         lower_send_clauses, lower_send_shared_vars): Adjust callers.
2558
2559 2008-03-12  Victor Kaplansky  <victork@il.ibm.com>
2560             Ira Rosen  <irar@il.ibm.com>
2561
2562         * tree-vectorizer.c (free_stmt_vec_info): New function.
2563         (destroy_loop_vec_info): Move code to free_stmt_vec_info().
2564         Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
2565         * tree-vectorizer.h (free_stmt_vec_info): Declare.
2566         * tree-vect-transform.c (vectorizable_conversion): Free
2567         vec_oprnds0 if it was allocated.
2568         (vect_permute_store_chain): Remove unused VECs.
2569         (vectorizable_store): Free VECs that are allocated in the..
2570         function.
2571         (vect_transform_strided_load, vectorizable_load): Likewise.
2572         (vect_remove_stores): Simplify the code.
2573         (vect_transform_loop): Move code to vect_remove_stores().
2574         Call vect_remove_stores() and free_stmt_vec_info().
2575
2576 2008-03-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2577
2578         * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
2579         TARGET_HPUX.  Revise comment.
2580         (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
2581         * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
2582         Use sr4 variant of `be' instruction when not generating PIC code.
2583         (attr_length_call): Adjust for above change.
2584
2585 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2586
2587         * ipa-reference.c (static_execute): Remove module_statics_const and
2588         associated setting code.
2589
2590 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
2591
2592         PR target/35540
2593         * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
2594         predicate for operand 1.
2595         (paritysi2_cmp): Use register_operand predicate for operand 2.
2596         Use earlyclobber modifier for operand 1.  Remove support for
2597         memory operands.
2598         (paritydi2_cmp): Use register_operand predicate for operand 3.
2599         Use earlyclobber modifier for operand 1.  Remove support for
2600         memory operands.
2601
2602 2008-03-11  Paul Brook  <paul@codesourcery.com>
2603             Vladimir Prus  <vladimir@codesourcery.com>
2604
2605         * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
2606         (arm_compute_save_reg0_reg12_mask): Always
2607         check if register 11 must be saved.  Always safe hard frame pointer
2608         when frame_pointer_needeed.
2609         (arm_compute_save_reg_mask): Save IP and PC
2610         only with apcs frames.
2611         (arm_output_epilogue): Adjust Thumb2 codepath to
2612         be also invoked and work for ARM non-apcs frames.
2613         (arm_expand_prologue): Don't bother saving IP
2614         for non-apcs frame, since it's not clobbered by
2615         prologue code.  Implement non-apcs frame
2616         layout.
2617
2618 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
2619
2620         PR rtl-optimization/35281
2621         * expr.c (convert_move): Use a new pseudo for the intermediate
2622         from_mode->word_mode result.
2623
2624 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
2625
2626         * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
2627         * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
2628         * toplev.c (compile_file): Don't call it.
2629
2630 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
2631
2632         PR middle-end/35526
2633         * expr.c (store_expr): Call emit_block_move if the mode
2634         of "temp" RTX is BLKmode.
2635
2636 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2637             Richard Guenther  <rguenther@suse.de>
2638
2639         PR tree-optimization/31358
2640         * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
2641         the step with a NULL_TREE.
2642         * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
2643         to sizetype if type is a pointer type.
2644         (add_candidate_1): Don't convert the base and step to
2645         the generic type if the orginal type is a pointer type.
2646         (add_iv_value_candidates): Use sizetype for the step
2647         if type is a pointer type.
2648         (cand_value_at): Likewise.
2649         * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
2650         for pointer types.
2651         * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
2652         Don't convert the tem affine to the type.
2653         (add_elt_to_tree): Use sizetype for the step if a pointer.
2654         Use POINTER_PLUS_EXPR for pointers.
2655         (aff_combination_to_tree): Use sizetype for the step if a
2656         pointer.
2657
2658 2008-03-10  Vladimir Makarov  <vmakarov@redhat.com>
2659
2660         * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
2661         Remove commutativity hint.
2662
2663 2008-03-10  Jakub Jelinek  <jakub@redhat.com>
2664
2665         PR c/35438
2666         PR c/35439
2667         * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
2668         errorneous type.  Check that v is a VAR_DECL.
2669
2670         PR middle-end/35099
2671         * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
2672
2673 2008-03-10  H.J. Lu  <hongjiu.lu@intel.com>
2674
2675         PR tree-optimization/35494
2676         * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
2677         may be overriden at link and run time.
2678
2679 2008-03-10  Richard Guenther  <rguenther@suse.de>
2680
2681         PR tree-optimization/34677
2682         * tree-ssa-pre.c (modify_expr_node_pool): Remove.
2683         (poolify_tree): Likewise.
2684         (modify_expr_template): Likewise.
2685         (poolify_modify_stmt): Likewise.
2686         (insert_fake_stores): Handle all component-ref style stores
2687         in addition to INDIRECT_REF.  Also handle complex types.
2688         Do not poolify the inserted load.
2689         (realify_fake_stores): Do not rebuild the tree but only
2690         make it a SSA_NAME copy.
2691         (init_pre): Remove initialzation of modify_expr_template.
2692         Do not allocate modify_expr_node_pool.
2693         (fini_pre): Do not free modify_expr_node_pool.
2694
2695 2008-03-10  Paul Brook  <paul@codesourcery.com>
2696
2697         * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
2698         to avoid conflicts.
2699
2700 2008-03-10  Paul Brook  <paul@codesourcery.com>
2701             Mark Shinwell  <shinwell@codesourcery.com>
2702
2703         * config/arm/cortex-r4.md: New.
2704         * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
2705         insn attributes.
2706         * config/arm/arm.md: Include cortex-r4.md.
2707         (insn): Add smmls, sdiv and udiv values.
2708         (generic_sched): Don't use generic scheduling for Cortex-R4.
2709         (arm_issue_rate): New function.
2710         (TARGET_SCHED_ISSUE_RATE): Define.
2711
2712 2008-03-10  Sebastian Pop  <sebastian.pop@amd.com>
2713
2714         * doc/invoke.texi (-ftree-loop-distribution): Add an example.
2715
2716 2008-03-10  Richard Guenther  <rguenther@suse.de>
2717
2718         * tree-ssa-pre.c (get_sccvn_value): Simplify.
2719         (compute_avail): Do not add stmt uses to AVAIL_OUT.
2720
2721 2008-03-10  Paolo Bonzini  <bonzini@gnu.org>
2722
2723         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
2724         Set default to true.
2725
2726 2008-03-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2727
2728         * c.opt (Wsynth): Deprecate.
2729         * doc/invoke.texi (Option Summary, Warning Options): Document
2730         -Wno-format-contains-nul.
2731
2732 2008-03-09  Uros Bizjak  <ubizjak@gmail.com>
2733
2734         PR target/35496
2735         * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
2736         ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
2737
2738 2008-03-09  Ira Rosen  <irar@il.ibm.com>
2739
2740         * config/rs6000/rs6000.c (builtin_description): Rename vector
2741         left shift operations.
2742         * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
2743         (altivec_vsl<VI_char>): Rename to ...
2744         (ashl<mode>3): ... new name.
2745         (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
2746         gen_ashlv4si3.
2747         (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
2748
2749 2008-03-08  Richard Guenther  <rguenther@suse.de>
2750
2751         * coverage.h (tree_coverage_counter_addr): Declare.
2752         * coverage.c (tree_coverage_counter_addr): New function.
2753         * tree-profile.c (tree_gen_edge_profiler): Unshare counter
2754         before using again.
2755         (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
2756         (tree_gen_one_value_profiler): Likewise.
2757         (tree_gen_ic_profiler): Likewise.
2758         (tree_gen_average_profiler): Likewise.
2759         (tree_gen_ior_profiler): Likewise.
2760
2761 2008-03-08  Richard Guenther  <rguenther@suse.de>
2762
2763         * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
2764         (vn_binary_op_insert): Likewise.
2765         (vn_unary_op_lookup): Likewise.
2766         (vn_unary_op_insert): Likewise.
2767         (vn_nary_op_lookup): Declare.
2768         (vn_nary_op_insert): Likewise.
2769         * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
2770         and binary hashes, use a single obstack for unary_op_pool
2771         and binary_op_pool.
2772         (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
2773         a single struct vn_nary_op_s.  Store tree code length and
2774         a variable number of operands.
2775         (struct vn_reference_op_struct): Remove unused op2.
2776         (vn_reference_op_eq): Do not compare op2.
2777         (vn_reference_op_compute_hash): Do not compute hash of op2.
2778         (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
2779         (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
2780         with vn_nary_op_compute_hash.
2781         (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
2782         (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
2783         vn_nary_op_lookup.
2784         (vn_unary_op_insert, vn_binary_op_insert): Replace with
2785         vn_nary_op_insert.
2786         (visit_unary_op): Call nary functions.
2787         (visit_binary_op): Likewise.
2788         (process_scc): Adjust for struct vn_tables_s changes.
2789         (allocate_vn_table): Likewise.
2790         (free_vn_table): Likewise.
2791         * tree-vn.c (vn_add): Call nary functions.
2792         (vn_lookup): Likewise.
2793
2794 2008-03-08  Jakub Jelinek  <jakub@redhat.com>
2795
2796         PR target/35498
2797         * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
2798         wdst back after sync_compare_and_swapqhi_internal.
2799
2800 2008-03-08  Uros Bizjak  <ubizjak@gmail.com>
2801
2802         PR target/22152
2803         * config/i386/i386-modes.def (V1DI): New vector mode.
2804         * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
2805         * config/i386/mmx.md (MMXMODEI8): New mode iterator.
2806         (MMXMODE248): Ditto.
2807         (MMXMODE): Add V1DI mode.
2808         (mmxvecsize): Change DI mode to V1DI mode.
2809         ("mov<mode>): Use MMXMODEI8 mode iterator.
2810         ("*mov<mode>_internal_rex64"): Ditto.
2811         ("*mov<mode>_internal"): Ditto.
2812         ("mmx_add<mode>3"): Ditto.  Handle V1DImode for TARGET_SSE2.
2813         ("mmx_sub<mode>3"): Ditto.
2814         ("mmx_adddi3"): Remove insn pattern.
2815         ("mmx_subdi3"): Ditto.
2816         ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
2817         ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
2818         ("mmx_ashl<mode>3"): Ditto.
2819         ("mmx_lshrdi3"): Remove insn pattern.
2820         ("mmx_ashldi3"): Ditto.
2821         * config/i386/i386.c (classify_argument): Handle V1DImode.
2822         (function_arg_advance_32): Ditto.
2823         (function_arg_32): Ditto.
2824         (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
2825         mmx_addv1di3 insn pattern.
2826         [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
2827         [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
2828         IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
2829         IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
2830         Remove definitions of built-in functions.
2831         (V1DI_type_node): New node.
2832         (v1di_ftype_v1di_int): Ditto.
2833         (v1di_ftype_v1di_v1di): Ditto.
2834         (v2si_ftype_v2si_si): Ditto.
2835         (v4hi_ftype_v4hi_di): Remove node.
2836         (v2si_ftype_v2si_di): Ditto.
2837         (ix86_init_mmx_sse_builtins): Handle V1DImode.
2838         (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
2839         Redefine builtins using def_builtin_const with *_ftype_*_int node.
2840         (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
2841         Add new builtins using def_builtin_const.
2842         (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
2843         IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
2844         IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
2845         * config/i386/mmintrin.h (__v1di): New typedef.
2846         (_mm_add_si64): Cast arguments to __v1di type.
2847         (_mm_sub_si64): Ditto.
2848         (_mm_sll_pi16): Cast __count to __v4hi type.
2849         (_mm_sll_pi32): Cast __count to __v2si type.
2850         (_mm_sll_si64): Cast arguments to __v1di type.
2851         (_mm_srl_pi16): Cast __count to __v4hi type.
2852         (_mm_srl_pi32): Cast __count to __v2si type.
2853         (_mm_srl_si64): Cast arguments to __v1di type.
2854         (_mm_sra_pi16): Cast __count to __v4hi type.
2855         (_mm_sra_pi32): Cast __count to __v2si type.
2856         (_mm_slli_pi16): Use __builtin_ia32_psllwi.
2857         (_mm_slli_pi32): Use __builtin_ia32_pslldi.
2858         (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
2859         (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
2860         (_mm_srli_pi32): Use __builtin_ia32_psrldi.
2861         (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
2862         (_mm_srai_pi16): Use __builtin_ia32_psrawi.
2863         (_mm_srai_pi32): Use __builtin_ia32_psradi.
2864         * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
2865         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
2866         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
2867         __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
2868
2869 2008-03-07  Joseph Myers  <joseph@codesourcery.com>
2870
2871         * doc/include/texinfo.tex: Update to version 2008-03-07.10.
2872
2873 2008-03-07  Peter Bergner  <bergner@vnet.ibm.com>
2874
2875         PR target/35373
2876         * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
2877         reg+const addressing for Altivec modes.  Don't generate reg+reg
2878         addressing for TFmode or TDmode quantities.
2879
2880 2008-03-07  Paolo Bonzini  <bonzini@gnu.org>
2881
2882         * c-common.c (vector_types_convertible_p): Call langhook
2883         instead of comptypes.
2884
2885 2008-03-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2886
2887         PR tree-opt/35402
2888         * tree-ssa-ccp.c (get_symbol_constant_value): Handle
2889         integral and scalar float variables which have a
2890         NULL DECL_INITIAL.
2891
2892 2008-03-06  Nathan Froyd  <froydnj@codesourcery.com>
2893
2894         * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
2895         dwarf_register_span hook when emitting unwind information for
2896         register-to-memory saves.
2897         * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
2898         (rs6000_frame_related): Remove call to spe_synthesize_frame.
2899
2900 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
2901
2902         * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
2903         for the same VAR_DECL.
2904
2905 2008-03-06  Tom Tromey  <tromey@redhat.com>
2906
2907         * treelang: Delete.
2908         * doc/standards.texi (Standards): Don't mention treelang.
2909         * doc/invoke.texi (Overall Options): Don't mention treelang.
2910         * doc/install.texi (Prerequisites): Don't mention bison or
2911         treelang.
2912         (Configuration): Don't mention treelang.
2913         (Building): Likewise.
2914         * doc/frontends.texi (G++ and GCC): Don't mention treelang.
2915
2916 2008-03-06  Paolo Bonzini  <bonzini@gnu.org>
2917
2918         * simplify-rtx.c (simplify_subreg): Remove useless shifts from
2919         word-extractions out of a multi-word object.
2920
2921 2008-03-06  Richard Guenther  <rguenther@suse.de>
2922
2923         * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
2924         * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
2925         result type and precision.
2926         * expr.c (get_inner_reference): Set unsignedp based on the result
2927         type of BIT_FIELD_REF.
2928         * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
2929         * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
2930         (try_instantiate_multiple_fields): Likewise.  Use the correct type
2931         for BIT_FIELD_REF.
2932         (sra_build_assignment): Likewise.
2933         (sra_build_elt_assignment): Likewise.
2934         (sra_explode_bitfield_assignment): Likewise.
2935         * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
2936         * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
2937         set BIT_FIELD_REF_UNSIGNED.
2938         (vectorizable_load): Likewise.
2939
2940 2008-03-06  Andreas Krebbel  <krebbel1@de.ibm.com>
2941
2942         * cse.c (cse_extended_basic_block): Invalidate artificial defs
2943         at bb start.
2944
2945 2008-03-06  Richard Guenther  <rguenther@suse.de>
2946
2947         * alias.c (struct alias_set_entry): Move has_zero_child field
2948         to pack with alias_set.
2949
2950 2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
2951
2952         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
2953         32bit host.
2954
2955 2008-03-05  Ian Lance Taylor  <iant@google.com>
2956
2957         * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
2958
2959 2008-03-05  Kenneth Zadeck <zadeck@naturalbridge.com>
2960
2961         * fwprop.c (update_df): Support width and offset parameters of
2962         df_ref_create.
2963         * ra-conflict.c (mark_reg_store, clear_reg_in_live,
2964         global_conflicts): Change DF_REF_EXTRACT to either
2965         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
2966         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
2967         * df-scan.c (df_ref_record, df_defs_record,
2968         df_ref_create_structure, df_def_record_1, df_uses_record,
2969         df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
2970         df_bb_refs_collect, df_entry_block_defs_collect,
2971         df_exit_block_uses_collect): Support new width and offset fields.
2972         (ref_extract_pool): New storage pool.
2973         (df_free_ref): New function.
2974         (df_reg_chain_unlink, df_free_collection_rec,
2975         df_sort_and_compress_refs): Call df_free_ref.
2976         (df_ref_equal_p, df_ref_compare): Compare offset and width fields
2977         of df_ref_extract.
2978         (df_ref_create_structure): Allocate df_ref_extract if offset and
2979         width fields are used.
2980         (df_def_record_1): Get offset and width from ZERO_EXTRACT.
2981         (df_uses_record): Get offset and width from ZERO_EXTRACT 
2982         and SIGN_EXTRACT.
2983         * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
2984         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
2985         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
2986         * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
2987         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
2988         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
2989         (df_ref_extract): New structure.
2990         (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
2991         (df_ref_create): Add width and offset parameters.
2992         
2993 2008-03-05  Richard Guenther  <rguenther@suse.de>
2994
2995         * tree-ssa-structalias.c (get_constraint_for_component_ref):
2996         Use ranges_overlap_p.
2997         (offset_overlaps_with_access): Rename
2998         to ranges_overlap_p and move ...
2999         * tree-flow-inline.h (ranges_overlap_p): ... here.
3000
3001         * tree.h (get_inner_reference, handled_component_p): Update
3002         comments.
3003
3004         * tree.h (record_component_aliases, get_alias_set,
3005         alias_sets_conflict_p, alias_sets_must_conflict_p,
3006         objects_must_conflict_p): Move declarations ...
3007         * alias.h (record_component_aliases, get_alias_set,
3008         alias_sets_conflict_p, alias_sets_must_conflict_p,
3009         objects_must_conflict_p): ... here.
3010         Include coretypes.h.
3011         * Makefile.in (ALIAS_H): Add coretypes.h dependency.
3012
3013 2008-03-05  Aldy Hernandez  <aldyh@redhat.com>
3014
3015         * cfg.c: Include tree-flow.h.
3016         (remove_edge_raw): Call redirect_edge_var_map_clear.
3017         (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
3018         * tree-flow-inline.h (redirect_edge_var_map_def): New.
3019         (redirect_edge_var_map_result): New.
3020         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
3021         PENDING_STMT use with redirect_edge_var_map_*.
3022         * tree-ssa.c (edge_var_maps): New definition.
3023         (redirect_edge_var_map_add): New.
3024         (redirect_edge_var_map_clear): New.
3025         (redirect_edge_var_map_dup): New.
3026         (redirect_edge_var_map_vector): New.
3027         (redirect_edge_var_map_destroy): New.
3028         (ssa_redirect_edge): Replace PENDING_STMT use with
3029         redirect_edge_var_map_*.
3030         (flush_pending_stmts): Same.
3031         (delete_tree_ssa): Destroy edge var map.
3032         * tree-flow.h (struct _edge_var_map): New.
3033         Define edge_var_map vector type.
3034         Declare redirect_edge_var_map_* prototypes.
3035         * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
3036         * tree-cfg.c (reinstall_phi_args): Replace
3037         PENDING_STMT use with redirect_edge_var_map_*.
3038
3039 2008-03-05  Richard Guenther  <rguenther@suse.de>
3040
3041         PR tree-optimization/35472
3042         * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
3043         whose single use_stmt has a overlapping set of loaded and
3044         stored symbols as that use_stmt might be a noop assignment then.
3045
3046 2008-03-05  Joel Sherrill <joel.sherrill@oarcorp.com>
3047
3048         * gthr-rtems.h: Implement __gthread_mutex_destroy.
3049
3050 2008-03-05  Richard Guenther  <rguenther@suse.de>
3051
3052         PR c++/35336
3053         * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
3054         should be constants.
3055         * tree-cfg.c (verify_expr): Verify it.
3056         * fold-const.c (fold_truthop): Remove code generating
3057         BIT_FIELD_REFs of structure bases.
3058         (fold_binary): Likewise.
3059         (fold_ternary): Position and size of BIT_FIELD_REFs are
3060         always host integers.
3061         (make_bit_field_ref): Remove.
3062         (optimize_bit_field_compare): Remove.
3063         (all_ones_mask_p): Remove.
3064
3065 2008-03-05  Gabor Loki  <loki@gcc.gnu.org>
3066
3067         PR gcc/33009
3068         * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
3069         (split_block_and_df_analyze): New. Split basic block and rebuild
3070         dataflow.
3071         (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
3072         SPLIT_BLOCK.
3073         (split_pattern_seq): Likewise.
3074         (erase_matching_seqs): Likewise.
3075         (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
3076
3077 2008-03-04  Geoff Keating  <geoffk@apple.com>
3078
3079         * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
3080         declaration and code.
3081         (tree_invalid_nonnegative_warnv_p): Likewise.
3082
3083 2008-03-05  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
3084
3085         * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
3086         examples.  Truncate option-names then causing overfull hbox.
3087
3088 2008-03-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3089
3090         PR target/35222
3091         * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
3092         on hpux10.
3093         * configure: Rebuilt.
3094
3095 2008-03-04  Rafael Espindola  <espindola@google.com>
3096
3097         * fold-const.c (tree_simple_nonnegative_warnv_p): New.
3098         (tree_unary_nonnegative_warnv_p): New.
3099         (tree_binary_nonnegative_warnv_p): New.
3100         (tree_single_nonnegative_warnv_p): New.
3101         (tree_invalid_nonnegative_warnv_p): New.
3102         (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
3103
3104 2008-03-04  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3105
3106         PR 28322
3107         * opts.c (handle_option): Postpone 'unknown option' errors only for
3108         warning options.
3109
3110 2008-03-04  H.J. Lu  <hongjiu.lu@intel.com>
3111
3112         PR target/35453
3113         * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
3114         (_SIDD_XXX): This.
3115
3116 2008-03-04  Rafael Espindola  <espindola@google.com>
3117
3118         * fold-const.c (tree_unary_nonzero_warnv_p): New.
3119         (tree_binary_nonzero_warnv_p): New.
3120         (tree_single_nonzero_warnv_p): New.
3121         (tree_expr_nonzero_warnv_p): Redefine using the new functions.
3122
3123 2008-03-04  Uros Bizjak  <ubizjak@gmail.com>
3124
3125         PR middle-end/35456
3126         * fold-const.c (fold_cond_expr_with_comparison): Prevent
3127         transformations for modes that have signed zeros.
3128         * ifcvt.c (noce_try_abs): Ditto.
3129
3130 2008-03-04  Joseph Myers  <joseph@codesourcery.com>
3131
3132         * config/i386/i386.c (override_options): Force
3133         -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
3134
3135 2008-03-04  Jan Hubicka  <jh@suse.cz>
3136
3137         PR c++/35262
3138         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
3139         in last commit.
3140
3141 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
3142
3143         * config/i386/i386.md (allocate_stack_worker_32): Use  __chkstk
3144         label to probe the stack.
3145
3146 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
3147
3148         * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
3149         (__gthr_win32_mutex_destroy): Declare.
3150         [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
3151         __gthr_win32_mutex_destroy.
3152         * config/i386/gthr-win32.c  (__gthr_win32_mutex_destroy): Define.
3153
3154 2008-03-03  Jan Hubicka  <jh@suse.cz>
3155
3156         PR c++/35262
3157         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
3158         aggressive on inlining cold calls.
3159
3160 2008-03-03  Richard Guenther  <rguenther@suse.de>
3161
3162         * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
3163         struct copies into the expression table.
3164         (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
3165         (try_to_simplify): Likewise.
3166         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
3167         integral and pointer arguments which do not change the
3168         precision to NOP_EXPRs.
3169         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
3170         VIEW_CONVERT_EXPR case.
3171
3172 2008-03-02  Sebastian Pop  <sebastian.pop@amd.com>
3173
3174         * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
3175         defined in a loop at depth 0 is invariant.
3176         * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
3177         * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
3178         be called at loop depth 0.
3179
3180 2008-03-02  Jakub Jelinek  <jakub@redhat.com>
3181
3182         PR driver/35420
3183         * gcc.c (process_command): Update copyright notice dates.
3184         * gcov.c (print_version): Likewise.
3185         * gcov-dump.c (print_version): Likewise.
3186         * mips-tfile.c (main): Likewise.
3187         * mips-tdump.c (main): Likewise.
3188
3189 2008-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3190
3191         PR 24924
3192         * c-common.c (flag_permissive): Delete.
3193         (constant_expression_warnings): Check flags first.
3194         (constant_expression_error): New.
3195         * c-common.h (flag_permissive): Delete.
3196         (constant_expression_error): Declare.
3197         * flags.h (flag_permissive): Declare. Update description.
3198         * diagnostic.c (pedwarn): Update.
3199         (permerror): New.
3200         * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
3201         (permissive_error_kind): New.
3202         * toplev.c (flag_permissive): Define. Update description.
3203         * toplev.h (permissive_error_kind): Declare.
3204         * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
3205         (pedwarn_c90): Use pedantic_warning_kind.
3206         * c-opts.c (c_common_post_options): flag_permissive does not affect
3207         flag_pedantic_errors.
3208
3209 2008-03-02  Joseph Myers  <joseph@codesourcery.com>
3210
3211         * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
3212         __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
3213         __absvsi2, __absvDI2): Use unsigned arithmetic.
3214
3215 2008-03-02  Andi Kleen  <ak@suse.de>
3216             Richard Guenther  <rguenther@suse.de>
3217
3218         * struct-equiv.c: Remove file.
3219         * cfg_cleanup.c (condjump_equiv_p): Remove.
3220         * Makefile.in (OBJS-common): Remove struct-equiv.o.
3221         (struct-equiv.o): Remove rule.
3222         * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
3223         insns_match_p, struct_equiv_block_eq, struct_equiv_init, 
3224         rtx_equiv_p, condjump_equiv_p): Remove prototypes.
3225
3226 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
3227
3228         * ifcvt.c (noce_process_if_block): Try to handle only the then
3229         block if the else block exists but isn't suitable.
3230
3231 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
3232
3233         PR gcc/35063
3234         * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
3235         * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
3236         regression from previous patch.
3237
3238 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
3239
3240         PR gcc/35063
3241         * gthr.h: Add __gthread_mutex_destroy as a function that must be
3242         implemented.
3243         * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
3244         * gthr-single.h (__gthread_mutex_destroy): Likewise.
3245         * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
3246         * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
3247         * gthr-nks.h (__gthread_mutex_destroy): Likewise.
3248         * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
3249         * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
3250         (__gthread_mutex_destroy_function): Rename to
3251         __gthread_mutex_destroy.
3252         * gthr-dce.h (__gthread_mutex_destroy): Call
3253         pthread_mutex_destroy.
3254         * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
3255         * gthr-posix.h (__gthread_mutex_destroy): Likewise.
3256         * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
3257
3258 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
3259
3260         * df-scan.c (df_ref_chain_change_bb): Simplify.
3261         (df_insn_change_bb): Add new_bb argument.  Simplify.  Call
3262         set_block_for_insn if there's any change.
3263         * df.h ((df_insn_change_bb): Fix prototype.
3264         * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
3265         df_insn_change_bb, don't call set_block_for_insn.
3266         * emit-rtl.c (reorder_insns): Likewise.
3267         * haifa-sched.c (move_insn): Likewise.
3268
3269 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
3270
3271         * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
3272
3273 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
3274
3275         * tree-flow-inline.h (next_readonly_imm_use): Return
3276         NULL_USE_OPERAND_P after the end.
3277
3278 2008-03-01  Richard Guenther  <rguenther@suse.de>
3279
3280         PR tree-optimization/35411
3281         * tree-sra.c (sra_build_assignment): Split conversion to
3282         final type to a separate statement if we are not assigning
3283         to a register.
3284
3285 2008-02-29  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
3286
3287         * fold-const.c (fold_convertible_p): Correct the logic to follow
3288         that in fold_convert().
3289
3290 2008-02-29  Douglas Gregor  <doug.gregor@gmail.com>
3291
3292         PR c++/35315
3293         * tree-inline.c (build_duplicate_type): When we make a
3294         duplicate type, make it unique in the canonical types system.
3295
3296 2008-02-29  Tom Tromey  <tromey@redhat.com>
3297
3298         * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
3299         input_file_stack_history, input_file_stack_restored): Remove.
3300         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
3301         * input.h (struct file_stack): Remove.
3302         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
3303         (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
3304         Likewise.
3305         * diagnostic.h (struct diagnostic_context) <last_module>: Change
3306         type.
3307         (diagnostic_last_module_changed): Add 'map' argument.
3308         (diagnostic_set_last_function): Likewise.
3309         * diagnostic.c (undiagnostic_report_current_module): Iterate using
3310         line map, not input_file_stack.
3311         * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
3312
3313 2008-02-29  Paul Brook  <paul@codesourcery.com>
3314
3315         * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
3316
3317 2008-02-29  Paul Brook  <paul@codesourcery.com>
3318
3319         * config/arm/ieee754-df.S (muldf3): Use RET macros.
3320
3321 2008-02-29  Richard Guenther  <rguenther@suse.de>
3322
3323         * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
3324         vn_lookup_or_add.
3325         * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
3326         value for comparing for a store match.
3327         (simplify_unary_expression): Do nothing for SSA_NAMEs.
3328         (try_to_simplify): Do not do a full-blown reference lookup.
3329
3330 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
3331
3332         * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
3333         (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
3334
3335         * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
3336
3337 2008-02-29  Sebastian Pop  <sebastian.pop@amd.com>
3338
3339         * tree-loop-linear.c (try_interchange_loops): Compare memory access
3340         strides against cache sizes.
3341
3342 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
3343
3344         * config/sh/sh.c (sh_secondary_reload): Handle loading a float
3345         constant to fpul.
3346
3347 2008-02-28  Richard Sandiford  <rsandifo@nildram.co.uk>
3348
3349         * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
3350         of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
3351         is smaller than the original promoted value.
3352         (simplify_subreg): If OP is a SUBREG, try to preserve its
3353         SUBREG_PROMOTED_VAR_P information.
3354
3355 2008-02-28  Steven Bosscher  <stevenb.gcc@gmail.com>
3356
3357         * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
3358         (VN_INFO_GET): Allocate new objects on the obstack.
3359         (init_scc_vn): Initialize the obstack.  Use XDELETE instead of free
3360         for rpo_numbers_temp, for consistency.
3361         (free_scc_vn): Free the obstack.
3362
3363 2008-02-28  Sebastian Pop  <sebastian.pop@amd.com>
3364
3365         * doc/invoke.texi: Document -ftree-loop-distribution.
3366         * tree-loop-distribution.c: New.
3367         * tree-pass.h (pass_loop_distribution): New.
3368         * graphds.h (struct graph): Add htab_t indices.
3369         * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
3370         * tree-vectorizer.c (rename_variables_in_loop): Extern.
3371         (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
3372         * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
3373         * tree-data-ref.c (debug_data_dependence_relations): New.
3374         (dump_data_dependence_relation): Also print data references.
3375         (free_data_ref): Extern.
3376         (same_access_functions): Moved...
3377         (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
3378         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
3379         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
3380         struct rdg_vertex_info, rdg_vertex_for_stmt): New.
3381         (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
3382         (stmts_from_loop): Skip LABEL_EXPR.
3383         (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
3384         New.
3385         (build_rdg): Initialize rdg->indices htab.
3386         (free_rdg, stores_from_loop, ref_base_address,
3387         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
3388         have_similar_memory_accesses_1, ref_base_address_1,
3389         remove_similar_memory_refs): New.
3390         * tree-data-ref.h: Depend on tree-chrec.h.
3391         (debug_data_dependence_relations, free_data_ref): Declared.
3392         (same_access_functions): ... here.
3393         (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
3394         New.
3395         (struct rdg_vertex): Add has_mem_write and has_mem_reads.
3396         (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
3397         RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
3398         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
3399         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
3400         rdg_vertex_for_stmt): Declared.
3401         (struct rdg_edge): Add level.
3402         (RDGE_LEVEL): New.
3403         (free_rdg, stores_from_loop, remove_similar_memory_refs,
3404         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
3405         Declared.
3406         (rdg_has_similar_memory_accesses): New.
3407         * tree-vect-analyze.c: Remove unused static decls.
3408         * lambda.h (dependence_level): New.
3409         * common.opt (ftree-loop-distribution): New.
3410         * tree-flow.h (mark_virtual_ops_in_bb, 
3411         slpeel_tree_duplicate_loop_to_edge_cfg,
3412         rename_variables_in_loop): Declared.
3413         * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
3414         (OBJS-common): Add tree-loop-distribution.o.
3415         (tree-loop-distribution.o): New rule.
3416         * tree-cfg.c (mark_virtual_ops_in_bb): New.
3417         (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
3418         * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
3419
3420 2008-02-28  Joseph Myers  <joseph@codesourcery.com>
3421
3422         PR target/33963
3423         * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
3424         other than structures and unions.
3425
3426 2008-02-28  Richard Guenther  <rguenther@suse.de>
3427
3428         Revert:
3429         2008-02-26  Richard Guenther  <rguenther@suse.de>
3430
3431         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
3432         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
3433         (lookup_decl_from_uid): Declare.
3434         (remove_decl_from_map): Likewise.
3435         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
3436         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
3437         (decl_for_uid_map): New global hashtable mapping DECL_UID
3438         to the decl tree.
3439         (init_ttree): Allocate it.
3440         (insert_decl_to_uid_decl_map): New helper function.
3441         (make_node_stat): Insert new decls into the map.
3442         (copy_node_stat): Likewise.
3443         (lookup_decl_from_uid): New function.
3444         (remove_decl_from_map): Likewise.
3445         (print_decl_for_uid_map_statistics): New helper.
3446         (dump_tree_statistics): Call it.
3447
3448         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
3449         (referenced_var_iterator): Adjust.
3450         (FOR_EACH_REFERENCED_VAR): Adjust.
3451         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
3452         (num_referenced_vars): Adjust.
3453         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
3454         (first_referenced_var): Remove.
3455         (end_referenced_vars_p): Likewise.
3456         (next_referenced_var): Likewise.
3457         (referenced_var_iterator_set): New helper function.
3458         * tree-dfa.c (referenced_var_lookup): Adjust.
3459         (referenced_var_check_and_insert): Likewise.
3460         (remove_referenced_var): Likewise.
3461         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
3462         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
3463         (verify_call_clobbering): Likewise.
3464         (verify_memory_partitions): Likewise.
3465         (init_tree_ssa): Allocate bitmap instead of hashtable for
3466         referenced_vars.
3467         (delete_tree_ssa): Adjust.
3468         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
3469         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
3470         (compute_tag_properties): Likewise.
3471         (set_initial_properties): Likewise.
3472         (find_partition_for): Likewise.
3473         (update_reference_counts): Likewise.
3474         (dump_may_aliases_for): Likewise.
3475         * tree-ssa-operands.c (add_virtual_operand): Likewise.
3476         (add_call_clobber_ops): Likewise.
3477         (add_call_read_ops): Likewise.
3478         (get_asm_expr_operands): Likewise.
3479         * tree-into-ssa.c (dump_decl_set): Likewise.
3480         (update_ssa): Likewise.
3481         * tree-sra.c (scan_function): Likewise.
3482         (decide_instantiations): Likewise.
3483         (scalarize_parms): Likewise.
3484         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
3485         (dsa_named_for): Likewise.
3486         * tree-ssa-structalias.c (update_alias_info): Likewise.
3487         (merge_smts_into): Likewise.
3488
3489 2008-02-27  David Daney  <ddaney@avtrex.com>
3490
3491         PR target/34409
3492         * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
3493         * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
3494         * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
3495         * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
3496         * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
3497
3498 2008-02-27  Uros Bizjak  <ubizjak@gmail.com>
3499
3500         PR target/25477
3501         * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
3502         (BUILT_IN_NEXTTOWARD): Remove.
3503         (BUILT_IN_NEXTTOWARDF): Ditto.
3504         * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
3505         alloca/strcpy/strcat.  Remove commented-out code.  Fix whitespace.
3506
3507 2008-02-27  Tom Tromey  <tromey@redhat.com>
3508
3509         * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
3510         DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
3511
3512 2008-02-27  Jan Beulich  <jbeulich@novell.com>
3513
3514         * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
3515         update the respective field on newdecl.
3516
3517 2008-02-27  Revital Eres  <eres@il.ibm.com>
3518
3519         PR rtl-optimization/34999
3520         * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
3521         crossing edges that ends with a call insn.
3522         (fix_up_fall_thru_edges): Handle crossing edges that ends with a
3523         call insn and clear the EDGE_CROSSING flag of the crossing edge
3524         when fixing fallthru edges.
3525
3526 2008-02-27  Richard Guenther  <rguenther@suse.de>
3527
3528         PR middle-end/35390
3529         * fold-const.c (fold_unary): Return the correct argument,
3530         converted to the result type.
3531
3532 2008-02-27  Richard Guenther  <rguenther@suse.de>
3533
3534         PR middle-end/34971
3535         * expr.c (expand_expr_real_1): Assert on rotates that operate
3536         on partial modes.
3537         * fold-const.c (fold_binary): Use the types precision, not the
3538         bitsize of the mode if folding rotate expressions.  Build rotates
3539         only for full modes.
3540
3541 2008-02-27  Jakub Jelinek  <jakub@redhat.com>
3542
3543         * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
3544         and CPP_PRAGMA_EOL.
3545         * c-pragma.c (pragma_ns_name): New typedef.
3546         (registered_pp_pragmas): New variable.
3547         (c_pp_lookup_pragma): New function.
3548         (c_register_pragma_1): If flag_preprocess_only, do nothing
3549         for non-expanded pragmas, for expanded ones push pragma's
3550         namespace and name into registered_pp_pragmas vector.
3551         (c_invoke_pragma_handler): Register OpenMP pragmas even when
3552         flag_preprocess_only, don't register GCC pch_preprocess
3553         pragma if flag_preprocess_only.
3554         * c-opts.c (c_common_init): Call init_pragma even if
3555         flag_preprocess_only.
3556         * c-pragma.c (c_pp_lookup_pragma): New prototype.
3557         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
3558         cpp_register_pragma if flag_preprocess_only.
3559
3560 2008-02-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3561
3562         PR c/28800
3563         * c-parser.c (c_parser_translation_unit): Warn for empty
3564         translation unit, not empty source file.
3565
3566 2008-02-26  Paul Brook  <paul@codesourcery.com>
3567
3568         * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
3569         operand for Thumb-2.
3570         * config/arm/arm.h (reg_class): Add CORE_REGS.
3571         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
3572         (BASE_REG_CLASS): Use CORE_REGS.
3573         (PREFERRED_RELOAD_CLASS): Add STACK_REG.
3574         (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
3575         (REGNO_OK_FOR_INDEX_P): Exclude SP.
3576         (ARM_REG_OK_FOR_INDEX_P): Always define.  Use
3577         ARM_REGNO_OK_FOR_INDEX_P.
3578         (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
3579         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
3580         arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
3581         (ldm/stm peepholes): Ditto.
3582         * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
3583         * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
3584         * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
3585         * config/arm/constraints.md: Enable "k" constraint on ARM.
3586
3587 2008-02-27  Ben Elliston  <bje@au.ibm.com>
3588
3589         * config/rs6000/rs6000.c: Annotate cache line size field in all
3590         instances of struct processor_costs.
3591
3592 2008-02-26  David Edelsohn  <edelsohn@gnu.org>
3593
3594         * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
3595         dse2, gcse, if_conversion, if_after_combine, if_after_reload,
3596         jump_bypass): New counters.
3597         * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
3598         * dce.c (gate_ud_dce): Same.
3599         (gate_fast_dce): Same.
3600         * dse.c (gate_dse1): New function.
3601         (gate_dse2): New function.
3602         (gate_dse): Merge results of new gate functions.
3603         * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
3604         (gate_handle_jump_bypass): Add dbg_cnt.
3605         (gate_handle_gcse): Add dbg_cnt.
3606         * ifcvt.c (gate_handle_if_conversion): Same.
3607         (gate_handle_if_after_combine): Same.
3608         (gate_handle_if_after_reload): Same.
3609         * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
3610
3611 2008-02-26  Edmar Wienskoski  <edmar@freescale.com>
3612
3613         * config/rs6000/rs6000.c (processor_costs): Update e300 cache
3614         line sizes.
3615         * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
3616
3617 2008-02-26  Jason Merrill  <jason@redhat.com>
3618
3619         PR c++/35315
3620         * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE 
3621         alone if it's the naming decl for the type's main variant.
3622
3623 2008-02-26  Tom Tromey  <tromey@redhat.com>
3624
3625         * system.h (USE_MAPPED_LOCATION): Poison.
3626         * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
3627         * tree-cfg.c (make_cond_expr_edges): Remove old location code.
3628         (make_goto_expr_edges): Likewise.
3629         (remove_bb): Likewise.
3630         (execute_warn_function_return): Likewise.
3631         * basic-block.h (struct edge_def) <goto_locus>: Change type to
3632         location_t.
3633         * c-common.c (fname_decl): Remove old location code.
3634         * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
3635         location code.
3636         * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
3637         variant.
3638         (ASM_INPUT_SOURCE_LOCATION): Likewise.
3639         (gen_rtx_ASM_INPUT): Likewise.
3640         (gen_rtx_ASM_INPUT_loc): Likewise.
3641         (get_rtx_asm_OPERANDS): Remove.
3642         * cfglayout.c (insn_locators_alloc): Remove old location code.
3643         (set_curr_insn_source_location): Likewise.
3644         (curr_insn_locator): Likewise.
3645         * print-tree.c (print_node): Remove old location code.
3646         * tree-mudflap.c (mf_varname_tree): Remove old location code.
3647         (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
3648         * cfgexpand.c (expand_gimple_cond_expr): Don't use
3649         location_from_locus.
3650         (construct_exit_block): Remove old location code.
3651         * emit-rtl.c (force_next_line_note): Remove old location code.
3652         * profile.c (branch_prob): Remove old location code.
3653         * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
3654         LOC_LINE): Remove old-location variants.
3655         * langhooks.c (lhd_print_error_function): Remove old location
3656         code.
3657         * configure, config.in: Rebuilt.
3658         * configure.ac (--enable-mapped-location): Remove.
3659         * c-decl.c (c_init_decl_processing): Remove old location code.
3660         (finish_function): Likewise.
3661         * recog.c (decode_asm_operands): Remove old location code.
3662         * c-pch.c (c_common_read_pch): Remove old location code.
3663         * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
3664         variants.
3665         * gimple-low.c (lower_function_body): Remove old location code.
3666         * toplev.c (unknown_location): Remove.
3667         (push_srcloc): Remove old-location variant.
3668         (process_options): Remove old location code.
3669         (lang_dependent_init): Likewise.
3670         * input.h (UNKNOWN_LOCATION): Move definition.
3671         (location_t): Undeprecate.
3672         (source_locus): Remove.
3673         (location_from_locus): Remove.
3674         (struct location_s): Remove.
3675         Remove all old-location code.
3676         (input_line, input_filename): Remove.
3677         * final.c (final_scan_insn): Remove old location code.
3678         * diagnostic.c (diagnostic_build_prefix): Remove
3679         USE_MAPPED_LOCATION test.
3680         * tree.h (gimple_stmt) <locus>: Now a location_t.
3681         (tree_exp) <locus>: Likewise.
3682         (DECL_IS_BUILTIN): Remove old-location variant.
3683         (annotate_with_file_line, annotate_with_locus): Likewise.
3684         (expr_locus, set_expr_locus): Update.
3685         * tree.c (build1_stat): Remove old location code.
3686         (last_annotated_node): Remove.
3687         (annotate_with_file_line): Remove old-location variant.
3688         (annotate_with_locus): Likewise.
3689         (expr_location): Remove old location code.
3690         (set_expr_location): Likewise.
3691         (expr_has_location): Likewise.
3692         (expr_locus): Likewise.
3693         (set_expr_locus): Likewise.
3694         (expr_filename): Don't use location_from_locus.
3695         (expr_lineno): Likewise.
3696         * rtl-error.c (location_for_asm): Remove old location code.
3697         * c-lex.c (cb_line_change): Remove old location code.
3698         (fe_file_change): Likewise.
3699         (cb_def_pragma): Likewise.
3700         (c_lex_with_flags): Likewise.
3701         * gengtype.c (do_typedef): Don't special-case location types.
3702         (define_location_structures): Remove.
3703         (main): Don't call define_location_structures.
3704         * tree-pretty-print.c (dump_implicit_edges): Remove old location
3705         code.
3706
3707 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3708
3709         PR 26264
3710         * builtins.def (BUILT_IN_STDARG_START): Remove.
3711         * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
3712         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
3713         * tree-inline.c (inline_forbidden_p_1): Likewise.
3714         
3715 2008-02-26  Richard Guenther  <rguenther@suse.de>
3716
3717         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
3718         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
3719         (lookup_decl_from_uid): Declare.
3720         (remove_decl_from_map): Likewise.
3721         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
3722         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
3723         (decl_for_uid_map): New global hashtable mapping DECL_UID
3724         to the decl tree.
3725         (init_ttree): Allocate it.
3726         (insert_decl_to_uid_decl_map): New helper function.
3727         (make_node_stat): Insert new decls into the map.
3728         (copy_node_stat): Likewise.
3729         (lookup_decl_from_uid): New function.
3730         (remove_decl_from_map): Likewise.
3731         (print_decl_for_uid_map_statistics): New helper.
3732         (dump_tree_statistics): Call it.
3733
3734         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
3735         (referenced_var_iterator): Adjust.
3736         (FOR_EACH_REFERENCED_VAR): Adjust.
3737         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
3738         (num_referenced_vars): Adjust.
3739         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
3740         (first_referenced_var): Remove.
3741         (end_referenced_vars_p): Likewise.
3742         (next_referenced_var): Likewise.
3743         (referenced_var_iterator_set): New helper function.
3744         * tree-dfa.c (referenced_var_lookup): Adjust.
3745         (referenced_var_check_and_insert): Likewise.
3746         (remove_referenced_var): Likewise.
3747         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
3748         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
3749         (verify_call_clobbering): Likewise.
3750         (verify_memory_partitions): Likewise.
3751         (init_tree_ssa): Allocate bitmap instead of hashtable for
3752         referenced_vars.
3753         (delete_tree_ssa): Adjust.
3754         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
3755         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
3756         (compute_tag_properties): Likewise.
3757         (set_initial_properties): Likewise.
3758         (find_partition_for): Likewise.
3759         (update_reference_counts): Likewise.
3760         (dump_may_aliases_for): Likewise.
3761         * tree-ssa-operands.c (add_virtual_operand): Likewise.
3762         (add_call_clobber_ops): Likewise.
3763         (add_call_read_ops): Likewise.
3764         (get_asm_expr_operands): Likewise.
3765         * tree-into-ssa.c (dump_decl_set): Likewise.
3766         (update_ssa): Likewise.
3767         * tree-sra.c (scan_function): Likewise.
3768         (decide_instantiations): Likewise.
3769         (scalarize_parms): Likewise.
3770         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
3771         (dsa_named_for): Likewise.
3772         * tree-ssa-structalias.c (update_alias_info): Likewise.
3773         (merge_smts_into): Likewise.
3774
3775 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3776
3777         PR 34351
3778         * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
3779         * c-opts.c (c_common_handle_option): Wall enables
3780         Wvolatile-register-var.
3781         * common.opt: Move Wvolatile-register-var to...
3782         * c.opt: ...here.
3783         
3784 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3785
3786         * common.opt (Wlarger-than=): New.
3787         * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
3788         -Wlarger-than=.
3789         * opts.c (common_handle_option): Handle -Wlarger-than=.
3790         * optc-gen.awk: Likewise.
3791         * opth-gen.awk: Likewise.
3792         * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
3793         * tree-optimize.c (tree_rest_of_compilation): Likewise.
3794         
3795 2008-02-26  Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3796
3797         * c-common.c (match_case_to_enum_1): Add appropriate
3798         OPT_W* parameter to warning.
3799         (c_do_switch_warnings): Likewise.
3800         * c-typeck.c (warning_init): Add one more parameter following
3801         'warning' function.
3802         (push_init_level): Update call to warning_init.
3803         (pop_init_level): Likewise.
3804         (add_pending_init): Likewise.
3805         (output_init_element: Likewise.
3806
3807 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3808
3809         PR 28322
3810         * toplev.c (toplev_main): If there are warnings or error, print
3811         errors for ignored options.
3812         * opts.c (ignored_options): New static variable.
3813         (postpone_unknown_option_error): New.
3814         (print_ignored_options): New.
3815         (handle_option): Postpone errors for unknown -Wno-* options.
3816         * opts.h (print_ignored_options): Declare.
3817         
3818 2008-02-25  Richard Sandiford  <rsandifo@nildram.co.uk>
3819
3820         * config/mips/mips.md (loadgp_blockage, blockage): Change type
3821         to "ghost".
3822
3823 2008-02-25  Richard Guenther  <rguenther@suse.de>
3824
3825         Revert:
3826         2008-02-25  Richard Guenther  <rguenther@suse.de>
3827
3828         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
3829         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
3830         (lookup_decl_from_uid): Declare.
3831         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
3832         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
3833         (decl_for_uid_map): New global hashtable mapping DECL_UID
3834         to the decl tree.
3835         (init_ttree): Allocate it.
3836         (insert_decl_to_uid_decl_map): New helper function.
3837         (make_node_stat): Insert new decls into the map.
3838         (copy_node_stat): Likewise.
3839         (lookup_decl_from_uid): New function.
3840         (print_decl_for_uid_map_statistics): New helper.
3841         (dump_tree_statistics): Call it.
3842
3843         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
3844         (referenced_var_iterator): Adjust.
3845         (FOR_EACH_REFERENCED_VAR): Adjust.
3846         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
3847         (num_referenced_vars): Adjust.
3848         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
3849         (first_referenced_var): Remove.
3850         (end_referenced_vars_p): Likewise.
3851         (next_referenced_var): Likewise.
3852         (referenced_var_iterator_set): New helper function.
3853         * tree-dfa.c (referenced_var_lookup): Adjust.
3854         (referenced_var_check_and_insert): Likewise.
3855         (remove_referenced_var): Likewise.
3856         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
3857         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
3858         (verify_call_clobbering): Likewise.
3859         (verify_memory_partitions): Likewise.
3860         (init_tree_ssa): Allocate bitmap instead of hashtable for
3861         referenced_vars.
3862         (delete_tree_ssa): Adjust.
3863         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
3864         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
3865         (compute_tag_properties): Likewise.
3866         (set_initial_properties): Likewise.
3867         (find_partition_for): Likewise.
3868         (update_reference_counts): Likewise.
3869         (dump_may_aliases_for): Likewise.
3870         * tree-ssa-operands.c (add_virtual_operand): Likewise.
3871         (add_call_clobber_ops): Likewise.
3872         (add_call_read_ops): Likewise.
3873         (get_asm_expr_operands): Likewise.
3874         * tree-into-ssa.c (dump_decl_set): Likewise.
3875         (update_ssa): Likewise.
3876         * tree-sra.c (scan_function): Likewise.
3877         (decide_instantiations): Likewise.
3878         (scalarize_parms): Likewise.
3879         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
3880         (dsa_named_for): Likewise.
3881         * tree-ssa-structalias.c (update_alias_info): Likewise.
3882         (merge_smts_into): Likewise.
3883
3884 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
3885
3886         PR fortran/29549
3887         * doc/invoke.texi (-fcx-limited-range): Document new option.
3888         * toplev.c (process_options): Handle -fcx-fortran-rules.
3889         * common.opt: Add documentation for -fcx-fortran-rules.
3890
3891 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
3892
3893         PR c/35162
3894         * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
3895         actual behaviour and C99.
3896         
3897 2008-02-26  Ben Elliston  <bje@au.ibm.com>
3898
3899         * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
3900         (ASM_CPU_POWER6_SPEC): Likewise.
3901         (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
3902         Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
3903         (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
3904
3905 2008-02-25  Richard Guenther  <rguenther@suse.de>
3906
3907         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
3908         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
3909         (lookup_decl_from_uid): Declare.
3910         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
3911         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
3912         (decl_for_uid_map): New global hashtable mapping DECL_UID
3913         to the decl tree.
3914         (init_ttree): Allocate it.
3915         (insert_decl_to_uid_decl_map): New helper function.
3916         (make_node_stat): Insert new decls into the map.
3917         (copy_node_stat): Likewise.
3918         (lookup_decl_from_uid): New function.
3919         (print_decl_for_uid_map_statistics): New helper.
3920         (dump_tree_statistics): Call it.
3921
3922         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
3923         (referenced_var_iterator): Adjust.
3924         (FOR_EACH_REFERENCED_VAR): Adjust.
3925         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
3926         (num_referenced_vars): Adjust.
3927         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
3928         (first_referenced_var): Remove.
3929         (end_referenced_vars_p): Likewise.
3930         (next_referenced_var): Likewise.
3931         (referenced_var_iterator_set): New helper function.
3932         * tree-dfa.c (referenced_var_lookup): Adjust.
3933         (referenced_var_check_and_insert): Likewise.
3934         (remove_referenced_var): Likewise.
3935         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
3936         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
3937         (verify_call_clobbering): Likewise.
3938         (verify_memory_partitions): Likewise.
3939         (init_tree_ssa): Allocate bitmap instead of hashtable for
3940         referenced_vars.
3941         (delete_tree_ssa): Adjust.
3942         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
3943         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
3944         (compute_tag_properties): Likewise.
3945         (set_initial_properties): Likewise.
3946         (find_partition_for): Likewise.
3947         (update_reference_counts): Likewise.
3948         (dump_may_aliases_for): Likewise.
3949         * tree-ssa-operands.c (add_virtual_operand): Likewise.
3950         (add_call_clobber_ops): Likewise.
3951         (add_call_read_ops): Likewise.
3952         (get_asm_expr_operands): Likewise.
3953         * tree-into-ssa.c (dump_decl_set): Likewise.
3954         (update_ssa): Likewise.
3955         * tree-sra.c (scan_function): Likewise.
3956         (decide_instantiations): Likewise.
3957         (scalarize_parms): Likewise.
3958         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
3959         (dsa_named_for): Likewise.
3960         * tree-ssa-structalias.c (update_alias_info): Likewise.
3961         (merge_smts_into): Likewise.
3962
3963 2008-02-25  Andreas Krebbel  <krebbel1@de.ibm.com>
3964
3965         PR target/35258
3966         * cse.c (cse_insn): Avoid creation of overlapping MEMs.
3967         * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
3968         * alias.h (nonoverlapping_memrefs_p): Likewise.
3969
3970 2008-02-25  Jan Beulich  <jbeulich@novell.com>
3971
3972         * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
3973         * config/i386/netware-libgcc.exp: Add __bswap?i2,
3974         __emultls_get_address, __emultls_register_common,
3975         __floatundi?f, and _Unwind_GetIPInfo.
3976         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
3977         Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
3978         (gen_regparm_prefix): Likewise.
3979         (i386_nlm_encode_section_info): Sync with
3980         config/i386/winnt.c:i386_pe_encode_section_info().
3981         (i386_nlm_maybe_mangle_decl_assembler_name): New.
3982         i386_nlm_mangle_decl_assembler_name): New.
3983         (netware_override_options): New.
3984         * config/i386/netware.h (netware_override_options): Declare.
3985         (OVERRIDE_OPTIONS): Re-define to netware_override_options.