OSDN Git Service

* function.c (free_after_compilation): Clear out regno_reg_rtx
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2008-04-08  Jan Hubicka  <jh@suse.cz>
2
3         * function.c (free_after_compilation): Clear out regno_reg_rtx
4         pointer.
5
6 2008-04-08  Peter Bergner  <bergner@vnet.ibm.com>
7
8         Revert
9         2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
10
11         PR middle-end/PR28690
12         * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
13         same precedence as REG_POINTER and MEM_POINTER operands.
14
15 2008-04-08  Richard Guenther  <rguenther@suse.de>
16
17         PR middle-end/35834
18         * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
19         for adding index to base.
20
21 2008-04-08  Kai Tietz  <kai.tietz@onevision.com>
22
23         * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
24         (MINGW_ENABLE_EXECUTE_STACK): New.
25         (IN_LIBGCC2): For libgcc include windows.h file for
26         function declarations.
27
28 2008-04-08  Hans-Peter Nilsson  <hp@axis.com>
29
30         * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
31         and tem2 if tem1 is not a REG or MULT.
32
33 2008-04-08  Jan Hubicka  <jh@suse.cz>
34
35         * function.h (incomming_args): Break out of struct function.
36         (function_subsections): Break out of struct function.
37         (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
38         return_rtx and hard_reg_initial_vals from struct function.
39         Kill inl_max_label_num.
40         (current_function_pops_args, current_function_args_info,
41         current_function_args_size, current_function_args_size,
42         current_function_pretend_args_size,
43         current_function_outgoing_args_size,
44         current_function_internal_arg_pointer, current_function_return_rtx):
45         Kill compatibility accestor macros.
46         * builtins.c (expand_builtin_apply_args_1): Update.
47         (expand_builtin_next_arg): Update.
48         * df-scan.c (df_get_call_refs): Update.
49         * dbxout.c (dbxout_function_end): Update.
50         * dwarf2out.c (dwarf2out_switch_text_section): Update.
51         (output_line_info): Update.
52         (secname_for_decl): Update.
53         (dwarf2out_var_location): Update.
54         * function.c (free_after_compilation): Update.
55         (assign_parm_find_stack_rtl): Update.
56         (assign_parms): Update.
57         (expand_dummy_function_end): Update.
58         (expand_function_end): Update.
59         * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
60         (expand_call): Update.
61         (emit_library_call_value_1): Update.
62         (store_one_arg): Update.
63         * varasm.c (initialize_cold_section_name): Update.
64         (unlikely_text_section): Update.
65         (unlikely_text_section_p): Update.
66         (assemble_start_function): Update.
67         (assemble_end_function): Update.
68         (default_section_type_flags): Update.
69         (switch_to_section): Update.
70         * integrate.c (set_decl_abstract_flags): Update.
71         (get_hard_reg_initial_val): Update.
72         (has_hard_reg_initial_val): Update.
73         (allocate_initial_values): Update.
74         * resource.c (init_resource_info): Update.
75         * config/alpha/alpha.c (NUM_ARGS): Update.
76         (direct_return): Update.
77         (alpha_va_start): Update.
78         (alpha_sa_size): Update.
79         (alpha_initial_elimination_offset): Update.
80         (alpha_expand_prologue): Update.
81         (alpha_start_function): Update.
82         (alpha_expand_epilogue): Update.
83         (unicosmk_initial_elimination_offset):
84         * config/alpha/alpha.md (call expander): Update.
85         * config/s390/s390.c (s390_register_info): Update.
86         (s390_register_info): Update.
87         (s390_frame_info): Update.
88         (s390_initial_elimination_offset): Update.
89         (s390_build_builtin_va_list): Update.
90         (s390_va_start): Update.
91         * config/spu/spu.c (direct_return): Update.
92         (spu_expand_prologue): Update.
93         (spu_initial_elimination_offset): Update.
94         (spu_build_builtin_va_list): Update.
95         (spu_va_start): Update.
96         * config/sparc/sparc.c (sparc_init_modes): Update.
97         (sparc_compute_frame_size): Update.
98         (function_value): Update.
99         * config/m32r/m32r.c (m32r_compute_frame_size): Update.
100         * config/i386/i386.md (return expander): Update.
101         * config/i386/i386.c (ix86_va_start): Update.
102         (ix86_can_use_return_insn_p): Update.
103         (ix86_compute_frame_layout): Update.
104         (ix86_expand_epilogue): Update.
105         * config/sh/sh.c (output_stack_adjust): Update.
106         (calc_live_regs): Update.
107         (sh_expand_prologue): Update.
108         (sh_builtin_saveregs): Update.
109         (sh_va_start): Update.
110         (initial_elimination_offset): Update.
111         (sh_allocate_initial_value): Update.
112         (sh_function_ok_for_sibcall): Update.
113         (sh_get_pr_initial_val): Update.
114         * config/sh/sh.md (return expander): Update.
115         * config/avr/avr.c (frame_pointer_required_p): UPdate.
116         * config/crx/crx.c (crx_compute_frame): UPdate.
117         (crx_initial_elimination_offset): UPdate.
118         * config/xtensa/xtensa.c (compute_frame_size): Update
119         (xtensa_builtin_saveregs): Update.
120         (xtensa_va_start): Update.
121         (order_regs_for_local_alloc): Update.
122         * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
123         (xstormy16_expand_builtin_va_start): Update.
124         * config/fr30/fr30.c (fr30_compute_frame_size): Update.
125         * config/m68hc11/m68hc11.md (return expanders): Update.
126         * config/m68hc11/m68hc11.c (expand_prologue): Update.
127         (expand_epilogue): Update.
128         * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
129         (cris_simple_epilogue): Update.
130         (cris_expand_prologue): Update.
131         (cris_expand_epilogue): Update.
132         * config/iq2000/iq2000.c (iq2000_va_start): Update.
133         (compute_frame_size): Update.
134         * config/mt/mt.c (mt_compute_frame_size): Update.
135         * config/mn10300/mn10300.c (expand_prologue): Update.
136         (expand_epilogue): Update.
137         (initial_offset): Update.
138         (mn10300_builtin_saveregs):
139         * config/mn10300/mn10300.md (return expander): Update.
140         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
141         (ia64_initial_elimination_offset): Update.
142         (ia64_initial_elimination_offset): Update.
143         (ia64_expand_prologue): Update.
144         * config/m68k/m68k.md (return expander): Update.
145         * config/rs6000/rs6000.c (rs6000_va_start): Update.
146         (rs6000_stack_info): Update.
147         * config/mcore/mcore.c (layout_mcore_frame): Update.
148         (mcore_expand_prolog): Update.
149         * config/arc/arc.c (arc_compute_frame_size): Update.
150         * config/score/score3.c (score3_compute_frame_size): Update.
151         * config/score/score7.c (score7_compute_frame_size): Update.
152         * config/arm/arm.c (use_return_insn): Update.
153         (thumb_find_work_register): Update.
154         (arm_compute_save_reg_mask): Update.
155         (arm_output_function_prologue): Update.
156         (arm_output_epilogue): Update.
157         (arm_size_return_regs): Update.
158         (arm_get_frame_offsets): Update.
159         (arm_expand_prologue): Update.
160         (thumb_exit): Update.
161         (thumb_unexpanded_epilogue): Update.
162         (thumb1_output_function_prologue): Update.
163         * config/pa/pa.md (return expander): Update.
164         * config/pa/pa.c (compute_frame_size): Update.
165         (hppa_builtin_saveregs): Update.
166         * config/mips/mips.c (mips_va_start): Update.
167         (mips16_build_function_stub): Update.
168         (mips_compute_frame_info): Update.
169         (mips_restore_gp): Update.
170         (mips_output_function_prologue): Update.
171         (mips_expand_prologue): Update.
172         * config/v850/v850.c (compute_frame_size): Update.
173         (expand_prologue): * config/mmix/mmix.c (along): update.
174         (mmix_initial_elimination_offset): update.
175         (mmix_reorg): update.
176         (mmix_use_simple_return): update.
177         (mmix_expand_prologue): update.
178         (mmix_expand_epilogue): Update.
179         * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
180         (emit_link_insn): Update.
181
182 2008-04-08  Anatoly Sokolov <aesok@post.ru>
183
184         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define 
185         __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL 
186         instructions.
187         * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for 
188         atmega103 device.
189
190 2008-04-07  Jan Hubicka  <jh@suse.cz>
191
192         * function.h (rtl): Rename to x_rtl.
193         (crtl): New define.
194         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
195         frame_offset, stack_check_probe_note, arg_pointer_save_area,
196         used_temp_slots avail_temp_slots, temp_slot_level,
197         nonlocal_goto_handler_labels): Update accesstors.
198         (rtl): New global variable.
199         (struct function): Move some fileds to rtl_data.
200         (get_arg_pointer_save_area): Update prototype.
201         * builtins.c (expand_builtin_setjmp_receiver): Update call of
202         get_arg_pointer_save_area.
203         * expr.c (init_expr): Update
204         * function.c (get_frame_size): Update
205         (assign_stack_local): Update
206         (expand_function_end): Update.
207         (get_art_pointer_save_area): Update
208         * function.h 
209         * emit-rtl.c (rtl): Declare.
210         (regno_reg_rtx): Declare.
211         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
212         Update.
213         (gen_reg_rtx): Update.
214         * varasm.c (n_deferred_constatns): Update accestor.
215         (init_varasm_status): Do not allocate varasm_status.
216         (force_const_mem, get_pool_size, output_constant_pool): Update.
217         * stmt.c (force_label_rtx): Do not use x_ prefixes.
218         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
219         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
220         * sparc/sparc.h (INIT_EXPANDERS): Update.
221         * ia64/ia64.h (INIT_EXPANDERS): Update.
222
223 2008-04-07  James E. Wilson  <wilson@tuliptree.org>
224
225         * reload.c (push_secondary_reload): Add missing break to for loop.
226
227 2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
228
229         PR middle-end/PR28690
230         * rtlanal.c: Update copyright years.
231         (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
232         as REG_POINTER and MEM_POINTER operands.
233         * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
234         (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
235         * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
236         * gcse.c: Update copyright years.
237         (pre_delete): Call gen_reg_rtx_and_attrs.
238         (hoist_code): Likewise.
239         (build_store_vectors): Likewise.
240         (delete_store): Likewise.
241         * loop-invariant.c (move_invariant_reg): Likewise.
242         Update copyright years.
243
244 2008-04-07  Uros Bizjak  <ubizjak@gmail.com>
245
246         * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
247         control string instead of quoted.
248
249 2008-04-07  Kenneth Zadeck <zadeck@naturalbridge.com>
250
251         * doc/rtl.texi: Rewrite of subreg section.
252
253 2008-04-07  Kai Tietz  <kai.tietz@onevision.com>
254
255         PR/35842
256         * config/i386/i386.c (legitimize_pic_address): Add treating
257         of dllimport SYM_REF's.
258         (legitimize_dllimport_symbol): Add prototype.
259
260 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
261
262         * fold-const.c (fold) <ARRAY_REF>: New case.  Try to fold constant
263         reference in constructor with non self-referential type.
264
265 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
266
267         Removal of Return with Depressed Stack Pointer support
268         * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
269         (ECF_SP_DEPRESSED): Likewise.
270         (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
271         * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
272         (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
273         (expand_call): Do not test ECF_SP_DEPRESSED.
274         * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
275         * function.c (keep_stack_depressed): Delete.
276         (handle_epilogue_set): Likewise.
277         (update_epilogue_consts): Likewise.
278         (emit_equiv_load): Likewise.
279         (thread_prologue_and_epilogue_insns): Remove support for Return with
280         Depressed Stack Pointer.
281         * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
282
283 2008-04-06  Richard Guenther  <rguenther@suse.de>
284
285         PR tree-optimization/35400
286         * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
287         information from SSA_NAMEs.
288
289 2008-04-06  Anatoly Sokolov <aesok@post.ru>
290
291         * config/avr/avr.h (avr_mega_p): Remove declaration.
292         (AVR_MEGA): Remove macro.
293         * config/avr/avr.c (avr_mega_p): Remove variable.
294         (avr_override_options): Remove inicializion of avr_mega_p.
295         Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
296         (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
297         (avr_jump_mode): (Ditto.).
298         (avr_output_progmem_section_asm_op): (Ditto.).
299         (avr_asm_init_sections): (Ditto.).
300         (avr_asm_init_sections): (Ditto.).
301         (avr_rtx_costs): (Ditto.).
302         * config/avr/avr.md: (Ditto.).
303         * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of 
304         '__AVR_MEGA__'.
305
306 2008-04-06  Richard Guenther  <rguenther@suse.de>
307
308         PR tree-optimization/35842
309         * tree-ssa-address.c (fixed_address_object_p): Adjust to match
310         is_gimple_invariant_address.
311
312 2008-04-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
313
314         * gcc.c (default_compilers): Sync Fortran extensions list with
315         that in fortran/lang-specs.h.
316         * doc/invoke.texi: Likewise.
317         * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
318         * dwarf2out.c (gen_compile_unit_die): Likewise.
319
320 2008-04-06  Tom G. Christensen  <tgc@jupiterrise.com>
321
322         * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
323
324 2008-04-05  Uros Bizjak  <ubizjak@gmail.com>
325
326         PR target/12329
327         * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
328         attribute is used for nested functions.
329
330 2008-04-05  Jan Hubicka  <jh@suse.cz>
331
332         * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
333
334         * tree-dump.c (dump_enable_all): Remove prototype; do not accept
335         letter argument.
336         (dump_files): Update.
337         (enable_rtl_dump_file): Do not accept letter argument.
338         * tree-pass.h (dump_file_info): Remove letter argument.
339         * toplev.c (decode_d_option): Update -da handling.
340         * toplev.h (enable_rtl_dump_file): Update prototype.
341         * passes.c (register_one_dump_file): Do not accept IPA argument; work
342         it out based on pass type.
343         (register_dump_files_1): Likewise.
344         (init_optimization_passes): Update register_one_dump_file calls.
345         (execute_one_pass): Sanity check that IPA passes are called at IPA
346         level and RTL passes at RTL level.
347         (execute_pass_list): IPA pass can not be after or subpass of
348         GIMPLE/RTL pass.
349         (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
350         disallov RTL subpasses of IPA subpasses.
351
352 2008-04-05  Ben Elliston  <bje@au.ibm.com>
353
354         * tree-cfg.c (need_fake_edge_p): Return false for calls to
355         builtins that return exactly once and do not throw. Cache call to
356         call_expr_flags.
357
358 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
359
360         PR rtl-optimization/34916
361         PR middle-end/35519
362         * combine.c (create_log_links): Do not create duplicate LOG_LINKS
363         between instruction pairs.
364
365 2008-04-04  Naveen.H.S  <naveen.hs@kpitcummins.com>
366
367         * doc/invoke.texi: Document -mbitops for SH.
368         * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
369         * config/sh/predicates.md (bitwise_memory_operand): New predicate.
370         * config/sh/sh.c (print_operand): Add %t operand code.
371         * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
372         * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
373         (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
374         (extendqihi2): Likewise.
375         (movqi_i): Likewise.
376         (insv): Use bset, bclr and bst instructions for SH2A if possible.
377         (extv): Use bld instruction for SH2A if possible.
378         (extzv): Likewise.
379         (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
380         bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
381         bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
382         (bset.b, bclr.b): Define peepholes.
383         * config/sh/sh.opt (mbitops): New option.
384
385 2008-04-04  Janis Johnson  <janis187@us.ibm.com>
386
387         PR target/35620
388         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
389         and view convert expression.
390
391 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
392
393         PR target/35364
394         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
395
396 2008-04-04  H.J. Lu  <hongjiu.lu@intel.com>
397
398         * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
399
400         * config/i386/cpuid.h (bit_AES): New.
401         (bit_PCLMUL): Likewise.
402
403         * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
404         (override_options): Handle PTA_AES and PTA_PCLMUL.  Enable
405         SSE2 if AES or PCLMUL is enabled.
406         (ix86_builtins): Add IX86_BUILTIN_AESENC128,
407         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
408         IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
409         IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
410         (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
411         (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
412         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
413         IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
414         (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
415         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
416         __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
417         __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
418         __builtin_ia32_aeskeygenassist128 and
419         __builtin_ia32_pclmulqdq128.
420         * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
421         (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
422         IX86_BUILTIN_PSRLDQI128.  Handle IX86_BUILTIN_AESKEYGENASSIST128.
423
424         * config/i386/i386.h (TARGET_AES): New.
425         (TARGET_PCLMUL): Likewise.
426         (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
427
428         * config/i386/i386.md (UNSPEC_AESENC): New.
429         (UNSPEC_AESENCLAST): Likewise.
430         (UNSPEC_AESDEC): Likewise.
431         (UNSPEC_AESDECLAST): Likewise.
432         (UNSPEC_AESIMC): Likewise.
433         (UNSPEC_AESKEYGENASSIST): Likewise.
434         (UNSPEC_PCLMUL): Likewise.
435
436         * config/i386/i386.opt (maes): New.
437         (mpclmul): Likewise.
438
439         * config/i386/sse.md (aesenc): New pattern.
440         (aesenclast): Likewise.
441         (aesdec): Likewise.
442         (aesdeclast): Likewise.
443         (aesimc): Likewise.
444         (aeskeygenassist): Likewise.
445         (pclmulqdq): Likewise.
446
447         * config/i386/wmmintrin.h: New.
448
449         * doc/extend.texi: Document AES and PCLMUL built-in function.
450
451         * doc/invoke.texi: Document -maes and -mpclmul.
452
453 2008-04-04  Paolo Bonzini  <bonzini@gnu.org>
454
455         * function.c (free_after_parsing): Replace with
456         cxx_push_function_context from C++ front-end.
457         (allocate_struct_function): Don't call langhook.
458         * langhooks.h (struct lang_hooks_for_functions): Delete.
459         (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
460         member "function".
461         * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
462         (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
463         LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
464         LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
465         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
466         remove LANG_HOOKS_FUNCTION_INITIALIZER.
467         * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
468
469         * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
470         Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
471         
472 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
473
474         PR c/35440
475         * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
476         for all types.
477
478 2008-04-04  Richard Guenther  <rguenther@suse.de>
479
480         PR middle-end/35823
481         * fold-const.c (optimize_minmax_comparison): Use the correct
482         type for the constant in the simplified comparison.
483
484 2008-04-04  Zuxy Meng <zuxy.meng@gmail.com>
485
486         * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
487         Pass L2 size as "--param l2-cache-size" to the compiler.
488         (decode_l2_cache): New function to decode L2 cache parameters using
489         0x8000006 extended cpuid function.
490         (detect_caches_amd): Determine parameters of L2 cache using
491         decode_l2_caches function.
492         (decode_caches_intel): Decode L2 cache parameters.
493         (detect_caches_intel): Determine L2 cache parameters using
494         decode_caches_intel and decode_l2_caches functions.
495
496 2008-04-03  Bob Wilson  <bob.wilson@acm.org>
497
498         * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
499         secondary input reload for subword loads from the constant pool.
500
501 2008-04-03  Janis Johnson  <janis187@us.ibm.com>
502
503         PR target/35713
504         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
505           constants of the appropriate size for runtime calculations.
506
507         PR c/35712
508         * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
509           decimal-float literal constant zero.
510
511 2008-04-03  Jakub Jelinek  <jakub@redhat.com>
512
513         PR c/35738
514         * c-parser.c (c_parser_omp_atomic): Call
515         default_function_array_conversion on the RHS.
516
517         PR middle-end/35818
518         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
519         call is_variable_sized if decl has incomplete type.
520
521 2008-04-03  H.J. Lu  <hongjiu.lu@intel.com>
522
523         * config/i386/i386-protos.h (ix86_aligned_p): Removed.
524
525 2008-04-03  Adam Nemet  <anemet@caviumnetworks.com>
526
527         * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
528         iterators.
529         (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and leu.
530         (sgt<u>): Merge sgt and sgtu into new expander.
531         (sgt, sgtu): Remove expanders.
532         (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new pattern.
533         (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
534         (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
535         *sgtu_<mode>_mips16 into new pattern.
536         (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
537         (sge<u>): Merge sge and sgeu into new expander.
538         (sge, sgeu): Remove expanders.
539         (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
540         new pattern.
541         (*sge_<mode>, second *sge_<mode>): Remove patterns.
542         (slt<u>): Merge slt and sltu into new expander.
543         (slt, sltu): Remove expanders.
544         (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new pattern.
545         (*slt_<mode>, *sltu_<mode>): Remove patterns.
546         (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
547         *sltu_<mode>_mips16 into new pattern.
548         (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
549         (sle<u>): Merge sle and sleu into new expander.
550         (sle, sleu): Remove expanders.
551         (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new pattern.
552         (*sle_<mode>, *sleu_<mode>): Remove patterns.
553         (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
554         *sleu_<mode>_mips16 into new pattern.
555         (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
556
557 2008-04-03  Jan Hubicka  <jh@suse.cz>
558
559         PR tree-optimization/35795
560         * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
561         * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
562         * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
563         * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
564         * score/score3.c (score3_output_mi_thunk): Likewise.
565         * score/score7.c (score7_output_mi_thunk): Likewise.
566         * mips/mips.c (mips_output_mi_thunk): Likewise.
567
568 2008-04-03  Richard Guenther  <rguenther@suse.de>
569
570         * tree-vrp.c (extract_range_from_unary_expr): Handle all
571         conversions.  Simplify code.
572
573 2008-04-03  Kaz Kojima  <kkojima@gcc.gnu.org>
574
575         * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
576
577 2008-04-03  Tom Tromey  <tromey@redhat.com>
578             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
579
580         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
581         * config/bfin/t-bfin-linux (generated_files): Add
582         linux-sysroot-suffix.h.
583         * doc/install.texi (Prerequisites): Require make 3.80.
584         * doc/sourcebuild.texi (Front End Directory): Document new
585         variable.
586         * Makefile.in (generated_files): New variable.
587         (ALL_HOST_OBJS): New variable.
588         ($(ALL_HOST_OBJS)): New target.
589
590 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
591
592         * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
593         (remap_block): Call id->transform_lang_insert_block instead
594         of langhook.
595         (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
596         Set id.transform_lang_insert_block to NULL.
597         (clone_body): Move to cp/optimize.c
598         * tree-inline.h (struct copy_body_data): Change
599         transform_lang_insert_block to function pointer.
600         (copy_generic_body, copy_decl_no_change): Export.
601         * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
602         * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
603         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
604
605         * c-tree.h (insert_block): Kill.
606         * c-decl.c (insert_block): Kill.
607
608 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
609
610         * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
611         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
612         * c-tree.h (c_push_function_context, c_pop_function_context): Remove
613         argument.
614         * c-decl.c (c_push_function_context, c_pop_function_context): Remove
615         argument, call {push,pop}_function_context from here.
616         * c-parser.c: Use c_{push,pop}_function_context.
617
618         * function.c (push_function_context_to): Move meat ...
619         (push_function_context): ... here.  Simplify.
620         * function.c (pop_function_context_from): Move meat ...
621         (pop_function_context): ... here.  Simplify.
622         * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
623         leave_nested).
624         * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
625         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
626         (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
627         * tree.h (push_function_context_to, pop_function_context_from): Remove.
628
629 2008-04-03  Ben Elliston  <bje@au.ibm.com>
630
631         * expmed.c (extract_force_align_mem_bit_field): Remove.
632
633 2008-04-03  Richard Guenther  <rguenther@suse.de>
634
635         PR middle-end/35800
636         * expr.h (try_casesi): Adjust prototype.
637         * expr.c (try_casesi): Take fallback label as extra parameter.
638         Use that for gen_casesi if default_label is NULL.
639         * stmt.c (expand_case): Pass fallback label to try_casesi,
640         make sure to fill gaps with a fallback label if default_label
641         is not present.
642
643 2008-04-03  Dominique d'Humieres <dominiq@lps.ens.fr>
644
645         PR target/35801
646         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
647
648 2008-04-03  Ben Elliston  <bje@au.ibm.com>
649
650         * expmed.c (extract_split_bit_field): Remove if (0) code.
651         * tree-ssa-structalias.c (do_sd_constraint): Likewise.
652         (do_ds_constraint): Likewise.
653
654 2008-04-02  Joseph Myers  <joseph@codesourcery.com>
655
656         * doc/cppopts.texi (-dU): Document.
657         * c-common.h (flag_dump_macros): Update comment.
658         * c-opts.c (handle_OPT_d): Handle -dU.
659         * c-ppoutput.c (macro_queue, define_queue, undef_queue,
660         dump_queued_macros, cb_used_define, cb_used_undef): New.
661         (init_pp_output): Handle -dU.
662         (cb_line_change): Call dump_queued_macros.
663         * toplev.c (decode_d_option): Accept -dU as preprocessor option.
664
665 2008-04-02  Anatoly Sokolov <aesok@post.ru>
666
667         * config/avr/predicates.md (io_address_operand): New predicate. 
668         * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
669         * config/avr/avr.c (avr_io_address_p): Remove function.
670         (out_movqi_r_mr): Use 'io_address_operand' predicate instead of 
671         'avr_io_address_p' function.
672         (out_movhi_r_mr): (Ditto.).
673         (out_movqi_mr_r): (Ditto.).
674         (out_movhi_mr_r): (Ditto.).
675         (avr_address_cost): (Ditto.).
676
677 2008-04-02  Uros Bizjak  <ubizjak@gmail.com>
678
679         * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
680         Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
681         in 32bit mode when XMM registers are available to avoid store
682         forwarding stalls.
683         (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
684         corresponding post-reload splitters.
685
686 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
687
688         * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
689         and __builtin_ia32_shufpd.  Provide __builtin_ia32_roundsd and
690         __builtin_ia32_roundss.
691         (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
692         __builtin_ia32_shufpd, __builtin_ia32_roundsd and
693         __builtin_ia32_roundss.
694         (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
695         IX86_BUILTIN_SHUFPD here.
696
697 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
698
699         * config/i386/i386.md (plogic): New.
700         (plogicprefix): Likewise.
701
702         * config/i386/mmx.md (mmx_<code><mode>3): New.
703         (mmx_and<mode>3): Removed.
704         (mmx_ior<mode>3): Likewise.
705         (mmx_xor<mode>3): Likewise.
706
707         * config/i386/sse.md (<code><mode>3): New.
708         (*<code><mode>3): Likewise.
709         (*<code><mode>3): Likewise.
710         (<code><mode>3): Likewise.
711         (*sse_<code><mode>3): Likewise.
712         (*sse2_<code><mode>3): Likewise.
713         (<code>tf3): Likewise.
714         (*<code>tf3): Likewise.
715         (and<mode>3): Likewise.
716         (*and<mode>3): Likewise.
717         (ior<mode>3): Removed.
718         (*ior<mode>3): Likewise.
719         (xor<mode>3): Likewise.
720         (*xor<mode>3): Likewise.
721         (*and<mode>3): Likewise.
722         (*ior<mode>3): Likewise.
723         (*xor<mode>3): Likewise.
724         (and<mode>3): Likewise.
725         (*sse_and<mode>3): Likewise.
726         (*sse2_and<mode>3): Likewise.
727         (andtf3): Likewise.
728         (*andtf3): Likewise.
729         (ior<mode>3): Likewise.
730         (*sse_ior<mode>3): Likewise.
731         (*sse2_ior<mode>3): Likewise.
732         (iortf3): Likewise.
733         (*iortf3): Likewise.
734         (xor<mode>3): Likewise.
735         (*sse_xor<mode>3): Likewise.
736         (*sse2_xor<mode>3): Likewise.
737         (xortf3): Likewise.
738         (*xortf3): Likewise.
739
740 2008-04-02  Richard Guenther  <rguenther@suse.de>
741
742         PR tree-optimization/14495
743         PR tree-optimization/34793
744         * tree-vrp.c (struct switch_update): New structure.
745         (to_remove_edges, to_update_switch_stmts): New VECs.
746         (simplify_switch_using_ranges): New function.  Remove not taken
747         case labels and edges.
748         (simplify_stmt_using_ranges): Call it.
749         (identify_jump_threads): Mark edges we have queued for removal
750         so we don't thread them.
751         (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
752         case label vector.
753         * tree-cfg.c (group_case_labels): Deal with missing default label.
754         (tree_verify_flow_info): Allow missing default label.
755         * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
756         (emit_case_nodes): Likewise.
757         (expand_case): Do not rely on the default label to be present.
758         * expr.c (try_casesi): Deal with NULL default_label.
759         (do_tablejump): Likewise.
760
761 2008-04-02  Richard Guenther  <rguenther@suse.de>
762
763         PR tree-optimization/14495
764         * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
765         SWITCH_EXPR here ...
766         (vrp_visit_switch_stmt): ... but here (new function).
767         (find_case_label_index): New helper function.
768         (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
769
770 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
771
772         * fwprop.c: Fix ISO-C99ism.
773
774 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
775
776         PR bootstrap/35752
777         * Makefile.in (objdir): Set it here.
778         * configure.ac: Not here.  Find dynamic linker characteristics.
779         * exec-tool.in: Use them.
780         * aclocal.m4: Regenerate.
781         * configure: Regenerate.
782
783 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
784
785         * expr.c (expand_var): Delete it.
786         * expr.h (expand_var): Delete prototype.
787         * function.c (expand_function_start): Use expand_decl instead.
788         * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
789         langhook.
790
791 2008-04-02  Andy Hutchinson <hutchinsonamdy@aim.com>
792
793         PR rtl-optimization/35542
794         * fwprop.c (forward_propagate_and_simplify): Replace
795         loc_reg_mentioned_in_p with reg_mentioned_p.
796
797 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
798
799         PR rtl-optimization/35281
800         * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
801         (propagate_rtx_1): Handle PR_HANDLE_MEM.
802         (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
803         (varying_mem_p): Move above propagate_rtx.
804         (all_uses_available_at): Do not check MEMs.
805
806 2008-04-02  Rafael Espindola  <espindola@google.com>
807
808         * tree-vrp.c (extract_code_and_val_from_cond): Remove.
809         (register_edge_assert_for_2): Split the cond argument.
810         (register_edge_assert_for_1): Adjust for the change in
811         register_edge_assert_for_2.
812         (register_edge_assert_for): Split the cond argument.
813         (find_switch_asserts): Adjust for the change in
814         register_edge_assert_for.
815
816 2008-04-02  Kai Tietz  <kai.tietz@onevision.com>
817
818         * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
819         * gcc/config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
820         offsets for 64-bit mingw.
821         * gcc/config/i386/i386.c (ix86_pass_by_reference): Correct calling
822         abi for x86_64-pc-mingw.
823
824 2008-04-02  Richard Guenther  <rguenther@suse.de>
825
826         * tree-vrp.c (extract_range_from_assert): Make sure to not
827         produce range min/max with TREE_OVERFOW set.
828         If merging a anti-range and a range keep the anti-range if
829         the range covers all values of the type.
830         (register_edge_assert_for_2): Only allow sign-changing
831         conversions in detecting canonical range checks.  Also
832         register an assert for the unsigned name if useful.
833
834         PR tree-optimization/35787
835         * tree-vrp.c (vrp_val_max): New function.
836         (vrp_val_min): Likewise.
837         (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
838         (vrp_val_is_min): Likewise.
839         (supports_overflow_infinity): Use vrp_val_{min,max}.
840         (negative_overflow_infinity): Likewise.
841         (positive_overflow_infinity): Likewise.
842         (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
843         (is_positive_overflow_infinity): Likewise.
844         (is_overflow_infinity): Likewise.
845         (avoid_overflow_infinity): Use vrp_val_{min,max} and
846         vrp_val_is_{min,max}.
847         (set_and_canonicalize_value_range): Canonicalize anti-ranges
848         to ranges if possible.  Avoid empty ranges.
849
850 2008-04-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
851
852         PR middle-end/35705
853         * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
854         the expression is a function address.
855
856 2008-04-01  George Helffrich  <george@gcc.gnu.org>
857
858         PR fortran/PR35154, fortran/PR23057
859         * fortran/trans-common.c (create_common):  Add decl to function
860         chain to preserve identifier scope in debug output.
861
862         * dbxout.c: Emit .stabs debug info for Fortran COMMON block
863         variables as base symbol name + offset using N_BCOMM/N_ECOMM.
864         (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
865         (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
866         in common.
867         (dbxout_syms): Check for COMMON-based symbol and wrap in
868         N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
869         in bracket for efficiency.
870
871         * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
872         using DW_TAG_common_block + member offset.
873         (add_pubname_string): New function.
874         (dw_expand_expr): New function to find block name and offset for
875         COMMON var.
876         (common_check): New function to check whether symbol in Fortran COMMON.
877         (gen_variable_die): If COMMON, use DW_TAG_common_block.
878
879         * testsuite/gcc.dg/debug/pr35154.c:  New test to check that non-Fortran
880         use of common is unchanged.
881
882         * testsuite/lib/gfortran-dg.exp:  New harness to compile Fortran progs
883         with all combinations of debug options available on target.
884         * testsuite/gfortran.dg/debug/debug.exp:  Ditto.
885         * testsuite/gfortran.dg/debug/trivial.f:  Ditto.
886         * testsuite/gfortran.dg/debug/pr35154-stabs.f:  New test case for
887         .stabs functionality.
888         * testsuite/gfortran.dg/debug/pr35154-dwarf2.f:  New test case for
889         DWARF functionality.
890
891 2008-04-01  Volker Reichelt  <v.reichelt@netcologne.de>
892
893         PR c/35436
894         * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
895
896 2008-04-02  Ben Elliston  <bje@au.ibm.com>
897
898         * config/v850/v850.md (casesi): Remove if (0) code.
899         * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
900         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
901
902 2008-04-01  Uros Bizjak  <ubizjak@gmail.com>
903
904         * config/i386/i386.md (rex64suffix): New mode attribute.
905         (floathi<mode>2): Disable expander for SSE math.
906         (*floathi<mode>2_1): New insn insn_and_split pattern.
907         (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
908         corresponding post-reload splitters.
909         (*floathi<mode>2_i387): New macroized insn pattern.
910         (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
911         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
912         insn_and_split pattern.
913         (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
914         New macroized instruction patterns and corresponding post-reload
915         splitters.
916         (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
917         and corresponding post-reload splitters.
918         (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
919         New macroized instruction patterns.
920         (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
921         macroized instruction patterns and corresponding post-reload splitters.
922         (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
923         corresponding post-reload splitters.
924         (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
925         New macroized instruction patterns.
926         (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
927         corresponding post-reload splitters.
928         (*floatsi<mode>2_i387): New macroized instruction patterns.
929
930 2008-04-01  H.J. Lu  <hongjiu.lu@intel.com>
931
932         * config/i386/i386.md (smaxmin): New.
933         (umaxmin): Likewise.
934         (maxminiprefix): Likewise.
935         (maxminfprefix): Likewise.
936         (<code><mode>3): Likewise.
937         (smin<mode>3): Removed.
938         (smax<mode>3): Likewise.
939
940         * config/i386/mmx.md (mmx_<code>v2sf3): New.
941         (mmx_<code>v4hi3): Likewise.
942         (mmx_<code>v8qi3): Likewise.
943         (mmx_smaxv2sf3): Removed.
944         (mmx_sminv2sf3): Likewise.
945         (mmx_umaxv8qi3): Likewise.
946         (mmx_smaxv4hi3): Likewise.
947         (mmx_uminv8qi3): Likewise.
948         (mmx_sminv4hi3): Likewise.
949
950         * config/i386/sse.md (<addsub><mode>3): New.
951         (*<addsub><mode>3): Likewise.
952         (<sse>_vm<addsub><mode>3): Likewise.
953         (<maxmin><mode>3): Likewise.
954         (*<maxmin><mode>3_finite): Likewise.
955         (*<maxmin><mode>3): Likewise.
956         (<sse>_vm<maxmin><mode>3): Likewise.
957         (sse3_h<addsub>v4sf3): Likewise.
958         (sse3_h<addsub>v2df3): Likewise.
959         (<maxmin>v16qi3): Likewise.
960         (*<maxmin>v16qi3): Likewise.
961         (<maxmin>v8hi3): Likewise.
962         (*<maxmin>v8hi3): Likewise.
963         (*sse4_1_<maxmin><mode>3): Likewise.
964         (*sse4_1_<maxmin><mode>3): Likewise.
965         (add<mode>3): Removed.
966         (*add<mode>3): Likewise.
967         (<sse>_vmadd<mode>3): Likewise.
968         (sub<mode>3): Likewise.
969         (*sub<mode>3): Likewise.
970         (<sse>_vmsub<mode>3): Likewise.
971         (smin<mode>3): Likewise.
972         (*smin<mode>3_finite): Likewise.
973         (*smin<mode>3): Likewise.
974         (<sse>_vmsmin<mode>3): Likewise.
975         (smax<mode>3): Likewise.
976         (*smax<mode>3_finite): Likewise.
977         (*smax<mode>3): Likewise.
978         (<sse>_vmsmax<mode>3): Likewise.
979         (sse3_haddv4sf3): Likewise.
980         (sse3_haddv2df3): Likewise.
981         (sse3_hsubv4sf3): Likewise.
982         (sse3_hsubv2df3): Likewise.
983         (umaxv16qi3): Likewise.
984         (*umaxv16qi3): Likewise.
985         (smaxv8hi3): Likewise.
986         (*smaxv8hi3): Likewise.
987         (*sse4_1_smax<mode>3): Likewise.
988         (*sse4_1_umax<mode>3): Likewise.
989         (uminv16qi3): Likewise.
990         (*uminv16qi3): Likewise.
991         (sminv8hi3): Likewise.
992         (*sminv8hi3): Likewise.
993         (*sse4_1_smin<mode>3): Likewise.
994         (*sse4_1_umin<mode>3): Likewise.
995
996 2008-04-01  Rafael Espindola  <espindola@google.com>
997
998         * tree-cfg.c (verify_expr): remove in_phi.
999         (verify_stmt): Don't call walk_tree with verify_expr. Use
1000         is_gimple_min_invariant instead of is_gimple_val.
1001
1002 2008-04-01  Joseph Myers  <joseph@codesourcery.com>
1003
1004         * doc/include/gpl_v3.texi: Update for manpage generation.
1005         * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
1006         gpl.texi.
1007         * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
1008         * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
1009         gpl_v3.texi instead of gpl.texi.
1010         (gpl.pod): New.
1011
1012 2008-04-01  Jakub Jelinek  <jakub@redhat.com>
1013
1014         PR pch/13675
1015         * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
1016
1017 2008-04-01  Rafael Espindola  <espindola@google.com>
1018
1019         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
1020         (extract_code_and_val_from_cond): Use
1021         extract_code_and_val_from_cond_with_ops.
1022
1023 2008-04-01  Jan Hubicka  <jh@suse.cz>
1024
1025         * function.c (free_after_compilation): Free epilogue_delay_list.
1026         (prepare_function_start): Assert that previous compilation was freed.
1027
1028 2008-04-01  Jan Hubicka  <jh@suse.cz>
1029             Jim Wilson  <wilson@tuliptree.org>
1030             Andreas Tobler <andreast@gcc.gnu.org>
1031
1032         PR middle-end/35781
1033         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
1034         rtl.emit instead cfun->emit.
1035         * sparc/sparc.h (INIT_EXPANDERS): Likewise.
1036         * ia64/ia64.h (INIT_EXPANDERS): Likewise.
1037
1038 2008-04-01  Ben Elliston  <bje@au.ibm.com>
1039
1040         * doc/c-tree.texi (Function Basics): Fix grammatical error.
1041
1042 2008-03-31  Seongbae Park <seongbae.park@gmail.com>
1043
1044         * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
1045         New options
1046         (fprofile-use): Add var flag_profile_use
1047         * coverage.c (coverage_begin_output): Do not open a gcno file for
1048         output only if -ftest-coverage is set.
1049         Do not add getpwd() to gcda file path.
1050         (build_gcov_info): Check the new flag
1051         flag_profile_datafile_relative_path.
1052         (coverage_init): Use profile_data_prefix.
1053         Read profile counter only if flag_profile_use is set.
1054         * opts.c (common_handle_option): New option fprofile-use=,
1055         fprofile-dir=, fprofile-generate=.
1056         * toplev.c (profile_data_prefix): New variable definition.
1057         * toplev.h (profile_data_prefix): New declaration.
1058         * doc/invoke.tex (Option Summary, Optimization Options):
1059         Add new options.
1060
1061 2008-03-31  James E. Wilson  <wilson@tuliptree.org>
1062
1063         * varasm.c (output_constant_pool_1): In LABEL_REF check,
1064         use tmp consistently.
1065
1066         PR target/35695
1067         * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
1068         * config/ia64/ia64.c (rtx_needs_barrier): Handle
1069         UNSPEC_FR_RECIP_APPROX_RES.
1070         * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
1071
1072 2008-03-31  Volker Reichelt  <v.reichelt@netcologne.de>
1073
1074         PR c/35750
1075         * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
1076
1077 2008-03-31  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1078
1079         PR middle-end/30186
1080         * fold-const.c (fold_indirect_ref_1): Support accessing non first
1081         element of the vector via a pointer.
1082
1083 2008-03-31  Ian Lance Taylor  <iant@google.com>
1084
1085         * tlink.c (scan_linker_output): Look for symbol name in single quotes.
1086
1087 2008-03-31  Jan Hubicka  <jh@suse.cz>
1088
1089         * builtins.c (expand_builtin_setjmp_receiver): Update call of
1090         get_arg_pointer_save_area.
1091         * expr.c (init_expr): Just clear out rtl.expr.
1092         * function.c (free_after_compilation): Clear out whole RTL structure.
1093         (get_func_frame_size): Merge into ...
1094         (get_frame_size): ... this one.
1095         (assign_stack_local_1): Merge into ...
1096         (assign_stack_local): ... this one.
1097         (expand_function_end): Update call of get_arg_pointer_save_area.
1098         (get_art_pointer_save_area): Remove cfun argument.
1099         * function.h (emit_status): regno_pointer_align does not need length
1100         attribute. Move x_regno_reg_rtx to ...
1101         (regno_reg_rtx): ... new global array.
1102         (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
1103         (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
1104         apply_args_value, forced_labels, stack_pointer_delta):
1105         Update accestors.
1106         (struct varasm_status): Move here from varasm.c
1107         (struct rtl_data): New. Move here some fields from struct function.
1108         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
1109         frame_offset, stack_check_probe_note, arg_pointer_save_area,
1110         used_temp_slots avail_temp_slots, temp_slot_level,
1111         nonlocal_goto_handler_labels): Update accesstors.
1112         (rtl): New global variable.
1113         (struct function): Move some fileds to rtl_data.
1114         (get_arg_pointer_save_area): Update prototype.
1115         * emit-rtl.c (rtl): Declare.
1116         (regno_reg_rtx): Declare.
1117         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
1118         Update.
1119         (gen_reg_rtx): Update.
1120         (init_virtual_regs): Do not tate emit_status argument.
1121         (init_emit): Do not allocate emit.
1122         * varasm.c (varasm_statuc): Move to function.h.
1123         (n_deferred_constatns): Update accestor.
1124         (init_varasm_status): Do not allocate varasm_status.
1125         (force_const_mem, get_pool_size, output_constant_pool): Update.
1126         * stmt.c (force_label_rtx): Do not use x_ prefixes.
1127         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
1128
1129 2008-03-31  Zdenek Dvorak  <ook@ucw.cz>
1130
1131         PR rtl-optimization/35729
1132         * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
1133         references.
1134
1135 2008-03-31  H.J. Lu  <hongjiu.lu@intel.com>
1136
1137         PR target/32000
1138         * config/i386/i386.md (*movti_internal): Emit unaligned SSE
1139         load/store if memory is unaligned.
1140         (*movti_rex64): Likewise.
1141
1142         * config/i386/predicates.md (misaligned_operand): New.
1143
1144 2008-03-31  Andrew Pinski  <pinskia@gmail.com>
1145
1146         PR tree-opt/35431
1147         * tree-ssa-phiopt.c (conditional_replacement): Return early for
1148         complex types.
1149
1150 2008-03-31  Jan Beulich  <jbeulich@novell.com>
1151
1152         * config/ia64/constraints.md: Add 'j' constraint.
1153         * config/ia64/ia64.md (movsi_internal): Add addp4 case.
1154         (movdi_internal): Likewise.
1155
1156 2008-03-30  Volker Reichelt  <v.reichelt@netcologne.de>
1157
1158         PR c/35748
1159         * c-typeck.c (build_c_cast): Skip invalid fields in unions.
1160
1161 2008-03-30  H.J. Lu  <hongjiu.lu@intel.com>
1162
1163         PR target/35757
1164         * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
1165         proper error message for the third argument on blendpd and
1166         blendps.
1167
1168         * config/i386/sse.md (blendbits): New.
1169         (sse4_1_blendp<ssemodesuffixf2c>): Use it.
1170
1171 2008-03-30  Eric Botcazou  <ebotcazou@adacore.com>
1172
1173         * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
1174
1175 2008-03-30  Richard Guenther  <rguenther@suse.de>
1176
1177         PR middle-end/31023
1178         * fold-const.c (fold_sign_changed_comparison): Do leave
1179         conversions to base-types alone.
1180
1181 2008-03-29  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1182
1183         * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
1184         the link register if one altivec register is be saved.
1185
1186 2008-03-30  Ben Elliston  <bje@au.ibm.com>
1187
1188         * final.c (final_scan_insn): Remove if (0) code.
1189
1190 2008-03-28  Volker Reichelt  <v.reichelt@netcologne.de>
1191
1192         * c-parser.c (c_parser_next_token_is_keyword): Simplify.
1193
1194 2008-03-28  H.J. Lu  <hongjiu.lu@intel.com>
1195
1196         * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
1197         of V4SFmode to ix86_binary_operator_ok.
1198
1199 2008-03-28  Uros Bizjak  <ubizjak@gmail.com>
1200
1201         * config/i386/i386.c (override_options): Initialize
1202         ix86_veclib_handler to ix86_veclibabi_svml when
1203         -mveclibabi=svml is used.
1204         (ix86_veclibabi_svml): New function for SVML ABI style
1205         vectorization support.
1206         * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
1207
1208 2008-03-28  Rafael Espindola  <espindola@google.com>
1209
1210         * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
1211         (tree_binary_nonnegative_warnv_p): Make it public.
1212         (tree_single_nonnegative_warnv_p): Make it public.
1213         (tree_invalid_nonnegative_warnv_p): Make it public.
1214         (tree_unary_nonzero_warnv_p): Make it public.
1215         (tree_binary_nonzero_warnv_p): Make it public
1216         (tree_single_nonzero_warnv_p): Make it public.
1217         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
1218         (extract_range_from_binary_expr): Split the expr argument.
1219         (extract_range_from_unary_expr): Split the expr argument.
1220         (extract_range_from_comparison): Split the expr argument.
1221         (extract_range_from_expr): Use the new aux functions.
1222         (vrp_evaluate_conditional_warnv): Use
1223         vrp_evaluate_conditional_warnv_with_ops.
1224         * tree.h (tree_unary_nonzero_warnv_p): Declare.
1225         (tree_binary_nonzero_warnv_p): Declare.
1226         (tree_single_nonzero_warnv_p): Declare.
1227         (tree_expr_nonzero_warnv_p): Declare.
1228         (tree_unary_nonnegative_warnv_p): Declare.
1229         (tree_binary_nonnegative_warnv_p): Declare.
1230         (tree_single_nonnegative_warnv_p): Declare.
1231         (tree_invalid_nonnegative_warnv_p): Declare.
1232
1233 2008-03-28  Richard Guenther  <rguenther@suse.de>
1234
1235         PR tree-optimization/30317
1236         PR tree-optimization/30911
1237         PR tree-optimization/34793
1238         * tree-vrp.c (set_and_canonicalize_value_range): New function.
1239         (struct assert_locus_d): New member EXPR.
1240         (register_new_assert_for): Add EXPR parameter to support
1241         ASSERT_EXPR <name, expr OP limit>.
1242         (register_edge_assert_for_1): Adjust callers.
1243         (find_assert_locations): Likewise.
1244         (process_assert_insertions_for): Build condition from expression.
1245         (extract_range_from_assert): Handle ASSERT_EXPRs
1246         of the form ASSERT_EXPR <name, expr OP limit>.
1247         (register_edge_assert_for_2): New helper registering
1248         asserts for comparisons.  Recognize range tests of the form
1249         (unsigned)i - CST1 OP CST2.
1250         (register_edge_assert_for_1): Use it.
1251         (register_edge_assert_for): Likewise.
1252         (needs_overflow_infinity): Integer sub-types
1253         do not need overflow infinities.
1254         (vrp_val_is_max): The extreme values of integer sub-types
1255         are those of the base type.
1256         (vrp_val_is_min): Likewise.
1257         * tree.def (ASSERT_EXPR): Document extra allowed conditional
1258         expressions.
1259
1260 2008-03-28  Nick Clifton  <nickc@redhat.com>
1261
1262         * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
1263         Return GENERAL_REGS for stack adjustment reloads.
1264
1265 2008-03-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1266
1267         PR target/31334
1268         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
1269         const_vector when all the vectors are constant.
1270
1271 2008-03-27  Bob Wilson  <bob.wilson@acm.org>
1272
1273         * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
1274         comparisons.
1275         * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
1276         (any_scc_sf): Add uneq, unlt, unle and unordered operators.
1277         (scc_sf): New.
1278         (s<code>_sf): Use new scc_sf attribute for opcode names.
1279
1280 2008-03-27  Tom Tromey  <tromey@redhat.com>
1281
1282         * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
1283         configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
1284         config/spu/t-spu-elf, config/i386/t-interix,
1285         config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
1286         config/i386/x-darwin, config/i386/x-mingw32,
1287         config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
1288         config/sh/t-sh, config/sh/t-symbian, config/x-linux,
1289         config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
1290         config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
1291         config/rs6000/x-rs6000, config/rs6000/x-darwin64,
1292         config/rs6000/x-darwin, config/rs6000/t-rs6000,
1293         config/score/t-score-elf, config/arm/t-strongarm-pe,
1294         config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
1295         config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
1296         Revert automatic dependency patch.
1297
1298 2008-03-27  H.J. Lu  <hongjiu.lu@intel.com>
1299
1300         PR target/35657
1301         * config/i386/i386.c (ix86_function_arg_boundary): Align
1302         decimal floating point to its natural boundary.
1303
1304 2008-03-27  Richard Guenther  <rguenther@suse.de>
1305
1306         PR middle-end/35716
1307         * fold-const.c (fold_comparison): Restrict distinct decl
1308         comparison folding to VAR_DECLs and PARM_DECLs.  Do not
1309         solely rely on operand_equal_p.
1310
1311 2008-03-27  Richard Guenther  <rguenther@suse.de>
1312
1313         PR c/32511
1314         * c-common.c (handle_weak_attribute): Reject combination of
1315         weak and inline.
1316
1317 2008-03-27  Richard Guenther  <rguenther@suse.de>
1318
1319         PR tree-optimization/32810
1320         * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
1321         conversions from DECL_INITIAL.
1322         (fold_const_aggregate_ref): Likewise from constructor elements.
1323
1324 2008-03-27  Zdenek Dvorak  <ook@ucw.cz>
1325
1326         * tree-affine.h (aff_combination_expand): Declare.
1327         (get_inner_reference_aff): Likewise.
1328         * tree-affine.c (aff_combination_expand): Split out from
1329         tree_to_aff_combination_expand.
1330         (get_inner_reference_aff): New function.
1331         * tree-parloops.c (loop_parallel_p): Free vectorizer info.
1332         * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
1333         (struct lim_aux_data): sm_done field removed.
1334         (mem_ref_loc_p, mem_ref_locs_p): New types.
1335         (struct mem_ref): Added id, stored, accesses_in_loop,
1336         indep_loop, dep_loop, indep_ref, dep_ref fields.
1337         Removed is_stored, locs and next fields.
1338         (memory_accesses): New variable.
1339         (movement_possibility): Do not allow moving statements
1340         that store to memory.
1341         (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
1342         New functions.
1343         (determine_max_movement): For statements with memory references,
1344         find the outermost loop in that the reference is independent.
1345         (move_computations_stmt): Mark the virtual operands for renaming.
1346         (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
1347         gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
1348         vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
1349         add_vop_ref_mapping, create_vop_ref_mapping_loop,
1350         create_vop_ref_mapping, analyze_memory_references,
1351         cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
1352         get_all_locs_in_loop, ref_always_accessed_p,
1353         refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
1354         ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
1355         store_motion_loop, store_motion): New functions.
1356         (struct vop_to_refs_elt): New type.
1357         (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
1358         memref_hash, memref_eq, hoist_memory_references): Rewritten.
1359         (schedule_sm): Replaced by...
1360         (execute_sm): ... this.
1361         (determine_lsm_ref, hoist_memory_references,
1362         loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
1363         find_more_ref_vops, free_mem_ref, free_mem_refs,
1364         determine_lsm_loop, determine_lsm): Removed.
1365         (tree_ssa_lim_finalize): Free data structures used by store motion.
1366         (tree_ssa_lim): Call analyze_memory_references.  Use
1367         store_motion instead of determine_lsm.
1368
1369 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
1370
1371         * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
1372         rename tmake_file to m68hc11/t-m68hc11.
1373         (mcore): Set inhibit_libc to true.
1374         * config.host (alpha*-dec-*vms*): Set extra_programs.
1375         (interix3*): Don't use host_xmake_file.
1376         * configure.ac: Let config.gcc override inhibit_libc.
1377         * configure: Regenerate.
1378
1379         * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
1380         * config/t-openbsd-thread: Remove commented out lines.
1381         
1382         * config/x-interix: Remove.
1383
1384         * config/m68hc11/t-m68hc11-gas: Rename to...
1385         * config/m68hc11/t-m68hc11: ... this.  Remove T_CPPFLAGS.
1386
1387         * config/mcore/t-mcore: Remove T_CFLAGS.
1388         * config/mcore/t-mcore-pe: Likewise.
1389
1390 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
1391
1392         * configure.ac: Replace custom __GNU_SOURCE test with
1393         AC_USE_SYSTEM_EXTENSIONS.  Move it earlier.
1394         * aclocal.m4: Regenerate.
1395         * configure: Regenerate.
1396         * config.in: Regenerate.
1397
1398 2008-03-27  Richard Guenther  <rguenther@suse.de>
1399
1400         * fold-const.c (target.h): Include.
1401         (fold_comparison): Fold comparison of addresses of decls
1402         that bind locally or of constants.  Consolidate address folding code.
1403         * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
1404         results from fold_binary_to_constant.
1405         (compare_values_warnv): Likewise.
1406
1407 2008-03-27  Andrew Pinski  <pinskia@gmail.com>
1408
1409         PR middle-end/35429
1410         * fold-const.c (fold_truthop): Check for integeral types when folding
1411         a == 0 && b == 0 and a != 0 || b != 0 .
1412
1413 2008-03-26  Eric Botcazou  <ebotcazou@adacore.com>
1414
1415         * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
1416
1417 2008-03-26  Andreas Schwab  <schwab@suse.de>
1418
1419         * doc/invoke.texi: Fix use of @item vs. @itemx.
1420
1421 2008-03-26  Tom Tromey  <tromey@redhat.com>
1422
1423         * Makefile.in (build/gensupport.o, build/print-rtl.o,
1424         build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
1425         build/genattrtab.o, build/genautomata.o, build/gencheck.o,
1426         build/gencodes.o, build/genconditions.o, build/genconfig.o,
1427         build/genconstants.o, build/genemit.o, build/genextract.o,
1428         build/genflags.o, build/genmddeps.o, build/genopinit.o,
1429         build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
1430         options.h.
1431
1432 2008-03-26  Richard Guenther  <rguenther@suse.de>
1433
1434         Revert
1435         2008-03-26  Richard Guenther  <rguenther@suse.de>
1436
1437         * fold-const.c (target.h): Include.
1438         (fold_comparison): Fold comparison of addresses of two decls
1439         that bind locally.  Consolidate address folding code.
1440
1441 2008-03-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1442
1443         * builtins.c (expand_builtin_pow, fold_builtin_cabs,
1444         fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
1445         fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
1446         dconstsqrt2, dconstthird, dconste and/or dconst10.
1447         * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
1448         * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
1449         dconstsqrt2, dconste): Delete.
1450         (init_emit_once): Likewise.  Simplify initializing dconstm1.
1451         Constify variable.
1452         * real.c (get_real_const): New.
1453         * real.h (dconst3, dconst10, dconstm2, dconstthird,
1454         dconstsqrt2, dconste): Delete.
1455         (real_value_const, get_real_const): New.
1456
1457 2008-03-26  H.J. Lu  <hongjiu.lu@intel.com>
1458
1459         * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
1460
1461         * config/i386/i386.c (ix86_function_arg_boundary): Check
1462         BIGGEST_ALIGNMENT instead of 128.
1463         (setup_incoming_varargs_64): Likewise.
1464
1465 2008-03-26  Tom Tromey  <tromey@redhat.com>
1466
1467         * Makefile.in (DEPFILES): Add missing '/'.
1468
1469 2008-03-26  Richard Guenther  <rguenther@suse.de>
1470
1471         * fold-const.c (target.h): Include.
1472         (fold_comparison): Fold comparison of addresses of two decls
1473         that bind locally.  Consolidate address folding code.
1474
1475 2008-03-26  Nick Clifton  <nickc@redhat.com>
1476
1477         PR target/31232
1478         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
1479         not allow INT+INT as a legitimate addressing mode.
1480
1481 2008-03-26  Richard Guenther  <rguenther@suse.de>
1482
1483         * tree-flow.h (widen_bitfield): Remove declaration.
1484         * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
1485         (widen_bitfield): Remove function.
1486         * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
1487         code.
1488
1489 2008-03-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1490
1491         PR target/31558
1492         * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
1493         error_mark_node's.
1494
1495 2008-03-25  Richard Sandiford  <rsandifo@nildram.co.uk>
1496
1497         PR rtl-optimization/35232
1498         * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
1499         (forget_old_reloads_1, forget_marked_reloads): Don't clear
1500         reg_reloaded_call_part_clobbered here.
1501         (reload_regs_reach_end_p): New function.
1502         (reload_reg_rtx_for_input): New variable.
1503         (reload_reg_rtx_for_output): Likewise.
1504         (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
1505         when reassigning a pseudo register.  Load reloadreg from 
1506         reload_reg_rtx_for_input, moving the mode and register
1507         calculation to...
1508         (do_input_reload): ...here.  Use the mode-adjusted reg_rtx
1509         instead of the original when deciding whether an input reload
1510         would be a no-op or whether an output reload can be deleted.
1511         (emit_output_reload_insns): Use the mode-adjusted reg_rtx
1512         when setting up new_spill_reg_store.  Load it from
1513         reload_reg_rtx_for_output, moving the mode and register
1514         calculation to...
1515         (do_output_reload): ...here.  Use the mode-adjusted reg_rtx
1516         instead of the original when deciding whether an output reload
1517         would be a no-op.  Do the same when modifying insn notes.
1518         Use rtx_equal_p instead of == to compare the registers.
1519         (inherit_piecemeal_p): Take a mode and two register numbers
1520         as argument.
1521         (emit_reload_insns): Clear new_spill_reg_store for every hard
1522         register in the reload register.  Remove spill registers
1523         from reg_reloaded_valid before considering whether to record
1524         inheritance information for them.  Use reload_reg_rtx_for_output
1525         instead of reg_rtx when recording output reloads.  Use
1526         reload_reg_rtx_for_input instead of reg_rtx when recording
1527         input reloads.  Set or clear reg_reloaded_call_part_clobbered
1528         at the same time as setting reg_reloaded_valid.
1529         (delete_output_reload): Add a new_reload_reg parameter and use it
1530         instead of rld[j].reg_rtx.
1531         (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
1532         calls accordingly.
1533
1534 2008-03-25  Tom Tromey  <tromey@redhat.com>
1535
1536         * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
1537         (build/genattr.o): Likewise.
1538         (build/genattrtab.o): Likewise.
1539         (build/gencodes.o): Likewise.
1540         (build/genconfig.o): Likewise.
1541         (build/genconstants.o): Likewise.
1542         (build/genemit.o): Likewise.
1543         (build/genextract.o): Likewise.
1544         (build/genflags.o): Likewise.
1545
1546 2008-03-25  Bob Wilson  <bob.wilson@acm.org>
1547         
1548         * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
1549         instead of size_int for integer types.
1550         (xtensa_gimplify_va_arg_expr): Likewise.  Convert index to sizetype
1551         to match type of MINUS_EXPR.
1552         
1553 2008-03-25  Tom Tromey  <tromey@redhat.com>
1554
1555         * configure: Rebuilt.
1556         * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
1557         Makefile.
1558
1559 2008-03-25  Tom Tromey  <tromey@redhat.com>
1560
1561         * config/x-solaris (host-solaris.o): Update.
1562         * config/x-linux (host-linux.o): Update.
1563         * config/x-hpux (host-hpux.o): Update.
1564         * config/x-darwin (host-darwin.o): Update.
1565         * config/v850/t-v850e (v850-c.o): Update.
1566         * config/v850/t-v850 (v850-c.o): Update.
1567         * config/t-vxworks (vxworks.o): Update.
1568         * config/t-sol2 (sol2-c.o, sol2.o): Update.
1569         * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
1570         * config/spu/t-spu-elf (spu-c.o): Update.
1571         (spu.o): Remove.
1572         * config/sh/t-symbian (sh-c.o): Update.
1573         (symbian.o): Update.
1574         * config/sh/t-sh (sh-c.o): Update.
1575         * config/score/t-score-elf (score7.o, score3.o): Update.
1576         * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
1577         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
1578         * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
1579         * config/rs6000/t-rs6000 (rs6000-c.o): Update.
1580         (rs6000.o): Remove.
1581         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
1582         * config/m32c/t-m32c (m32c-pragma.o): Update.
1583         * config/ia64/t-ia64 (ia64-c.o): Update.
1584         * config/i386/x-mingw32 (host-mingw32.o): Update.
1585         * config/i386/x-i386 (driver-i386.o): Update.
1586         * config/i386/x-darwin (host-i386-darwin.o): Update.
1587         * config/i386/x-cygwin (host-cygwin.o): Update.
1588         * config/i386/t-nwld (nwld.o): Update.
1589         * config/i386/t-netware (netware.o): Update.
1590         * config/i386/t-interix (winnt.o): Update.
1591         * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
1592         * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
1593         msformat-c.o): Update.
1594         * config/bfin/t-bfin-linux (generated_files): Add
1595         linux-sysroot-suffix.h.
1596         * config/arm/t-wince-pe (pe.o): Update.
1597         * config/arm/t-strongarm-pe (pe.o): Update.
1598         * config/arm/t-pe (pe.o): Update.
1599         * config/arm/t-arm (arm-c.o): Update.
1600         * doc/install.texi (Prerequisites): Require make 3.80.
1601         * Makefile.in: Remove .o targets.
1602         (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
1603         (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
1604         (simple_generated_h, simple_generated_c): Move earlier.
1605         (generated_files): New variable.
1606         (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
1607         TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
1608         BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
1609         ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
1610         REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
1611         CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
1612         CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
1613         INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
1614         PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
1615         TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
1616         DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
1617         VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
1618         (.c.o): Remove.
1619         (COMPILE.base, COMPILE): New variables.
1620         (%.o): New pattern rule.
1621         (ALL_HOST_OBJS): New variable.
1622         (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
1623         (dummy-checksum.o, cc1-checksum.o): Remove.
1624         (DRIVER_SHLIB): New variable.
1625         (DRIVER_DEFINES): Use it.
1626         (gencondmd.c): Move out of build/.
1627         (s-conditions): Update.
1628         (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
1629         (ALL_BUILD_OBJS): Likewise.
1630         (build/%.o): Use BUILDCOMPILE.
1631         (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
1632         build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
1633         build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
1634         build/gencheck.o, build/gencodes.o, build/genconditions.o,
1635         build/genconfig.o, build/genconstants.o, build/genemit.o,
1636         build/genextract.o, build/genflags.o, build/genmddeps.o,
1637         build/genopinit.o, build/genoutput.o, build/genpeep.o,
1638         build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
1639         build/gen-protos.o, build/scan.o, build/fix-header.o,
1640         build/scan-decls.o): Simplify.
1641         (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
1642         cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
1643         prefix.o, toplev.o): Reduce to variable setting.
1644         (libbackend.o): Use COMPILE.  Remove most dependencies.  Move later.
1645         ($(out_object_file), gcc-options.o): New targets.
1646         ($(ALL_HOST_OBJS)): New target.  Include dependency files.
1647         * configure: Rebuilt.
1648         * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
1649         * doc/sourcebuild.texi (Front End Directory): Document new variable.
1650
1651 2008-03-25  Douglas Gregor  <doug.gregor@gmail.com>
1652
1653         * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
1654         complain when we hit an error, return ERROR_MARK_NODE.
1655
1656 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
1657
1658         * config/sh/constraints.md (Pso, Psz): New constraints.
1659         * config/sh/sh.c (print_operand): Add %V and %W operand codes.
1660         * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
1661
1662 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
1663
1664         * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
1665         * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
1666
1667 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
1668
1669         * config/sh/sh.md (prefetch): Add condition for SH2A target.
1670         (prefetch_sh2a): New.   
1671
1672 2008-03-25  Jayant Sonar  <Jayant.sonar@kpitcummins.com>
1673             Naveen.H.S  <naveen.hs@kpitcummins.com>
1674
1675         * config/sh/constraints.md (I28): New constraint.
1676         * config/sh/sh.c (broken_move): Add support for movi20s.
1677         * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
1678
1679 2008-03-25  Anil Paranjape  <anil.paranjape@kpitcummins.com>
1680             Jayant Sonar  <Jayant.sonar@kpitcummins.com>
1681             Naveen.H.S  <naveen.hs@kpitcummins.com>
1682
1683         * config/sh/sh.c (SH_ATTRIBUTES): Define.
1684         (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
1685         (print_operand): Handle resbank in %@ operand code.
1686         (sh_encode_section_info): New.
1687         (push_regs): Add conditions for resbank.
1688         (sh_expand_epilogue): Likewise.
1689         (sh_insert_attributes): Likewise.
1690         (sh_attribute_table): Likewise.
1691         (sh_handle_resbank_handler_attribute): New.
1692         (sh2a_handle_function_vector_handler_attribute): New.
1693         (sh2a_is_function_vector_call): New.
1694         (sh2a_get_function_vector_number): New.
1695         (sh2a_function_vector_p): New.
1696         (sh_cfun_resbank_handler_p): New.
1697         * config/sh/sh.md (calli): Emit jsr/n if possible.
1698         (calli_tbr_rel): New.
1699         (calli_pcrel): Emit jsr/n if possible.
1700         (return_i): Emit rts/n if possible.
1701         (call_valuei_tbr_rel): New.
1702         (call_valuei_pcrel): Add condition for SH2A target.
1703         (call_value): Likewise.
1704         * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
1705         (sh2a_get_function_vector_number): Likewise.
1706         (sh2a_is_function_vector_call): Likewise.
1707         * doc/extend.texi: Document TBR relative addressing of SH2A.
1708         (resbank): Add description for SH2A.
1709
1710 2008-03-24  Richard Guenther  <rguenther@suse.de>
1711
1712         PR c/22371
1713         * gimplify.c (gimplify_modify_expr): For frontend type-correct
1714         pointer assignments change conversions according to middle-end rules.
1715         (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
1716         * configure.ac: Include type checking in yes.
1717         * configure: Regenerate.
1718
1719 2008-03-24  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1720
1721         * diagnostic.c (diagnostic_count_diagnostic): Delete.
1722         (diagnostic_report_diagnostic): Update. Handle ICEs here.
1723         
1724 2008-03-24  Nathan Sidwell  <nathan@codesourcery.com>
1725
1726         * gthr-vxworks.h (UNUSED): Define.
1727
1728 2008-03-23  H.J. Lu  <hongjiu.lu@intel.com>
1729
1730         * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
1731
1732 2008-03-23  Zuxy Meng <zuxy.meng@gmail.com>
1733
1734         * doc/extend.texi (Function Attributes): Add missing comma in the
1735         example of the "alloc_size" attribute.
1736         
1737 2008-03-23  Uros Bizjak  <ubizjak@gmail.com>
1738
1739         Revert:
1740         2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
1741
1742         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
1743         32bit host.
1744
1745         2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
1746
1747         PR target/35496
1748         * stor-layout.c (update_alignment_for_field): Set minimum alignment
1749         of the underlying type of a MS bitfield layout to the natural
1750         alignment of the type.
1751
1752         2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
1753
1754         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
1755         to their natural alignment to avoid store forwarding stalls.
1756
1757 2008-03-22  Richard Guenther  <rguenther@suse.de>
1758
1759         * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
1760         For PHI nodes verify the address is invariant.
1761         * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
1762         (get_symbol_constant_value): Use is_gimple_min_invariant.
1763         (maybe_fold_stmt_indirect): Likewise.
1764
1765 2008-03-22  Richard Sandiford  <rsandifo@nildram.co.uk>
1766
1767         PR rtl-optimization/33927
1768         * Makefile.in (dse.o): Depend on $(TM_P_H).
1769         * expr.h (extract_low_bits): Declare.
1770         * expmed.c (extract_low_bits): New function.
1771         * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
1772         * dse.c: Include tm_p.h.
1773         (find_shift_sequence): Remove the read_reg argument and return the
1774         read value.  Emit the instructions instead of returning them.
1775         Iterate on new_mode rather than calculating it each time.
1776         Check MODES_TIEABLE_P.  Use simplify_gen_subreg to convert the
1777         source to NEW_MODE and extract_low_bits to convert the shifted
1778         value to READ_MODE.
1779         (replace_read): Allow the load and store to have different mode
1780         classes.  Use extract_low_bits when SHIFT == 0.  Create the shift
1781         or extraction instructions before trying the replacement.  Update
1782         dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
1783
1784 2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
1785
1786         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
1787         to their natural alignment to avoid store forwarding stalls.
1788
1789 2008-03-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1790
1791         PR target/27946
1792         * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
1793         encouraging but not allowing gprs for input;
1794         change the input constraint to !f#r.
1795         (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
1796         gprs for output;
1797         change the output constraint to !f#r.
1798
1799 2008-03-21  Uros Bizjak  <ubizjak@gmail.com>
1800
1801         PR target/13958
1802         * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
1803         corresponding post-reload splitters.
1804         ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
1805         when x87 FP math is selected.
1806         * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
1807         New function prototype.
1808         * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
1809         unreachable function to ease macroization of insn patterns.
1810
1811 2008-03-21  Martin Jambor  <mjambor@suse.cz>
1812
1813         * tree-data-ref.c (dump_data_dependence_relation): Avoid data
1814         reference dumps if ddr is NULL or dependence is unknown.
1815
1816 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
1817
1818         * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
1819         unsigned extension into account.
1820         (ATOMIC_COMPARE_AND_SWAP): Likewise.
1821         (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
1822         Do computations on a scratch register.
1823
1824 2008-03-21  Richard Guenther  <rguenther@suse.de>
1825
1826         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
1827         Use is_gimple_min_invariant instead of TREE_INVARIANT.
1828         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
1829         * tree-ssa-dom.c (record_equality): Likewise.
1830         * tree-inline.c (copy_body_r): Likewise.
1831         * tree-ssa-pre.c (make_values_for_stmt): Remove test for
1832         TREE_INVARIANT.
1833
1834 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
1835
1836         * config/sh/sh.c (split_branches): Pass zero to redirect_jump
1837         as 'delete_unused' argument.
1838
1839 2008-03-20  Richard Guenther  <rguenther@suse.de>
1840
1841         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
1842         special casing of constant qualifiers.
1843         * tree-ssa.c (useless_type_conversion_p_1): Instead do not
1844         care about them in general.
1845         * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
1846         regardless of their type.
1847         (fold_stmt_r): Forcefully fold *& if we end up with that.
1848
1849 2008-03-20  Paul Brook  <paul@codesourcery.com>
1850
1851         * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
1852         * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
1853         linker flags.
1854         * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
1855         definition.
1856         (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
1857         * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
1858
1859 2008-03-20  Volker Reichelt  <v.reichelt@netcologne.de>
1860
1861         * common.opt (Wmudflap): New option.
1862         * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
1863         (mx_register_decls): Likewise.
1864         (mudflap_finish_file): Likewise.
1865         * doc/invoke.texi: Document -Wno-mudflap.
1866
1867 2008-03-20  Kai Tietz  <kai.tietz@onevision.com>
1868
1869         * c-format.c (replace_format_name_to_system_name): New.
1870         (cmp_attribs): New.
1871         (convert_format_name_to_system_name): New.
1872         (decode_format_attr): Add use of convert_format_name_to_system_name.
1873         (format_types_orig): Add gnu_ prefix to names.
1874         (check_format_info_main): Special treating of \0 escaped names for
1875         supporting multi-character format specifiers as I32, I64.
1876         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
1877         (gnu_target_overrides_format_attributes): New.
1878         * c-format.h: Add structure target_ovr_attr to hold
1879         system specific formatter names.
1880         * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
1881         msformat-c.o file to c_target_objs and cxx_target_objs.
1882         * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
1883         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
1884         (TARGET_N_FORMAT_TYPES): New.
1885         * config/i386/msformat-c.c: New.
1886         * config/i386/t-cygming: Add build rule for msformat-c.o.
1887         * doc/extend.texi: Add new format names gnu_* and ms_* and
1888         further details.
1889         * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
1890
1891 2008-03-20  Ira Rosen  <irar@il.ibm.com>
1892
1893         * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
1894         optimizations turned on under -O3.
1895         (ftree-vectorize): Add that the flag is turned on with -O3.
1896
1897 2008-03-20  Ben Elliston  <bje@au.ibm.com>
1898
1899         * regmove.c (try_auto_increment): Fix spelling error in comment.
1900         * final.c (final_scan_insn): Likewise.
1901
1902 2008-03-20  Uros Bizjak  <ubizjak@gmail.com>
1903
1904         PR target/14552
1905         * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
1906         allocator preferences for "y" and "r" class registers.
1907         ("*mov<mode>_internal"): Ditto.
1908         ("*movv2sf_internal_rex64"): Ditto.
1909         ("*movv2sf_internal"): Ditto.
1910
1911 2008-03-19  Michael Matz  <matz@suse.de>
1912
1913         PR middle-end/35616
1914         * calls.c (expand_call): Check overlap of arguments with call
1915         address for sibcalls.
1916
1917 2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
1918
1919         PR target/35496
1920         * stor-layout.c (update_alignment_for_field): Set minimum alignment
1921         of the underlying type of a MS bitfield layout to the natural
1922         alignment of the type.
1923
1924 2008-03-19  Jan Hubicka  <jh@suse.cz>
1925
1926         PR other/35094
1927         * toplev.c (decode_d_option): Handle all CPP flags.
1928         * tree-vrp.c: Update tree_pass descriptors.
1929         * regrename.c: Update tree_pass descriptors.
1930         * fwprop.c: Update tree_pass descriptors.
1931         * doc/invoke.texi: Remove documentation of dropped -d? flags.
1932         * tree-into-ssa.c: Update tree_pass descriptors.
1933         * tree-dump.c: Update tree_pass descriptors.
1934         * tree-complex.c: Update tree_pass descriptors.
1935         * tree-dump.h: Update tree_pass descriptors.
1936         * see.c: Update tree_pass descriptors.
1937         * cgraphbuild.c: Update tree_pass descriptors.
1938         * tracer.c: Update tree_pass descriptors.
1939         * tree-loop-distribution.c: Update tree_pass descriptors.
1940         * cgraph.c: Update tree_pass descriptors.
1941         * postreload-gcse.c: Update tree_pass descriptors.
1942         * postreload.c: Update tree_pass descriptors.
1943         * tree-ssa-loop-ch.c: Update tree_pass descriptors.
1944         * tree-tailcall.c: Update tree_pass descriptors.
1945         * tree-pass.h (tree_opt_pass): Rename to ...
1946         (opt_pass) ... this one; add "type" field and remove letter field.
1947         (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
1948         (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
1949         all_lowering_passes): Update declaration.
1950         * ipa-cp.c: Update tree_pass descriptors.
1951         * final.c: Update tree_pass descriptors.
1952         * omp-low.c: Update tree_pass descriptors.
1953         * tree-ssa-dse.c: Update tree_pass descriptors.
1954         * ipa-reference.c: Update tree_pass descriptors.
1955         * tree-ssa-uncprop.c: Update tree_pass descriptors.
1956         * auto-inc-dec.c: Update tree_pass descriptors.
1957         * reorg.c: Update tree_pass descriptors.
1958         * cgraphunit.c: Update tree_pass descriptors.
1959         * tree-ssa-copyrename.c: Update tree_pass descriptors.
1960         * tree-ssa-ccp.c: Update tree_pass descriptors.
1961         * df-core.c: Update tree_pass descriptors.
1962         * mode-switching.c: Update tree_pass descriptors.
1963         * tree-nomudflap.c: Update tree_pass descriptors.
1964         * modulo-sched.c: Update tree_pass descriptors.
1965         * ipa-pure-const.c: Update tree_pass descriptors.
1966         * cse.c: Update tree_pass descriptors.
1967         * web.c: Update tree_pass descriptors.
1968         * tree-stdarg.c: Update tree_pass descriptors.
1969         * tree-ssa-math-opts.c: Update tree_pass descriptors.
1970         * tree-ssa-dom.c: Update tree_pass descriptors.
1971         * tree-nrv.c: Update tree_pass descriptors.
1972         * tree-ssa-alias.c: Update tree_pass descriptors.
1973         * loop-init.c: Update tree_pass descriptors.
1974         * gimple-low.c: Update tree_pass descriptors.
1975         * ipa-inline.c: Update tree_pass descriptors.
1976         * tree-ssa-sink.c: Update tree_pass descriptors.
1977         * global.c: Update tree_pass descriptors.
1978         * ifcvt.c: Update tree_pass descriptors.
1979         * jump.c: Update tree_pass descriptors.
1980         * predict.c: Update tree_pass descriptors.
1981         * tree-ssa-loop.c: Update tree_pass descriptors.
1982         * recog.c: Update tree_pass descriptors.
1983         * dse.c: Update tree_pass descriptors.
1984         * tree-ssa-ifcombine.c: Update tree_pass descriptors.
1985         * tree-eh.c: Update tree_pass descriptors.
1986         * regmove.c: Update tree_pass descriptors.
1987         * local-alloc.c
1988         * function.c: Update tree_pass descriptors.
1989         * tree-vectorizer.c: Update tree_pass descriptors.
1990         * gcse.c: Update tree_pass descriptors.
1991         * ipa-type-escape.c: Update tree_pass descriptors.
1992         * tree-if-conv.c: Update tree_pass descriptors.
1993         * init-regs.c: Update tree_pass descriptors.
1994         * ipa.c: Update tree_pass descriptors.
1995         * tree-ssa-phiopt.c: Update tree_pass descriptors.
1996         * rtl-factoring.c: Update tree_pass descriptors.
1997         * lower-subreg.c: Update tree_pass descriptors.
1998         * bt-load.c: Update tree_pass descriptors.
1999         * tree-dfa.c: Update tree_pass descriptors.
2000         * except.c: Update tree_pass descriptors.
2001         * emit-rtl.c: Update tree_pass descriptors.
2002         * cfgexpand.c: Update tree_pass descriptors.
2003         * tree-cfgcleanup.c: Update tree_pass descriptors.
2004         * cfgcleanup.c: Update tree_pass descriptors.
2005         * tree-ssa-pre.c: Update tree_pass descriptors.
2006         * tree-sra.c: Update tree_pass descriptors.
2007         * tree-mudflap.c: Update tree_pass descriptors.
2008         * tree-ssa-copy.c: Update tree_pass descriptors.
2009         * cfglayout.c: Update tree_pass descriptors.
2010         * tree-ssa-forwprop.c: Update tree_pass descriptors.
2011         * tree-ssa-dce.c: Update tree_pass descriptors.
2012         * tree-ssa.c: Update tree_pass descriptors.
2013         * regclass.c: Update tree_pass descriptors.
2014         * integrate.c: Update tree_pass descriptors.
2015         * tree-optimize.c: Update tree_pass descriptors.
2016         * tree-ssa-phiprop.c: Update tree_pass descriptors.
2017         * tree-object-size.c: Update tree_pass descriptors.
2018         * combine.c: Update tree_pass descriptors.
2019         * tree-outof-ssa.c: Update tree_pass descriptors.
2020         * bb-reorder.c: Update tree_pass descriptors.
2021         * stack-ptr-mod.c: Update tree_pass descriptors.
2022         * var-tracking.c: Update tree_pass descriptors.
2023         * tree-profile.c: Update tree_pass descriptors.
2024         * tree-vect-generic.c: Update tree_pass descriptors.
2025         * reg-stack.c: Update tree_pass descriptors.
2026         * sched-rgn.c: Update tree_pass descriptors.
2027         * tree-ssa-structalias.c: Update tree_pass descriptors.
2028         * tree-cfg.c: Update tree_pass descriptors.
2029         * passes.c (current_pass): Update declaration.
2030         (finish_optimization_passes): Update.
2031         (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
2032         (register_one_dump_file, register_dump_files_1, next_pass_1):
2033         Update arguments.
2034         (init_optimization_passes): Update handling of new types.
2035         (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
2036         * ipa-struct-reorg.c: Update tree_pass descriptors.
2037         * tree-ssa-reassoc.c: Update tree_pass descriptors.
2038         * combine-stack-adj.c: Update tree_pass descriptors.
2039         * cfgrtl.c: Update tree_pass descriptors.
2040         * dce.c: Update tree_pass descriptors.
2041         * tree-ssanames.c: Update tree_pass descriptors.
2042
2043 2008-03-19  Richard Guenther  <rguenther@suse.de>
2044
2045         PR middle-end/35609
2046         * tree-ssa.c (walk_data): New structure.
2047         (warn_uninitialized_var): If not always_executed warn with "maybe"
2048         instead of "is".
2049         (execute_early_warn_uninitialized): Compute post-dominators.
2050         Initialize always_executed before processing each basic block.
2051
2052 2008-03-18  Mikulas Patocka  <mikulas@artax.karlin.mff.cuni.cz>
2053
2054         PR target/35504
2055         * config/i386/i386.c (x86_this_parameter): Calculate correct location
2056         of "this" pointer when "regparm = N" or "fastcall" is in effect.
2057
2058 2008-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2059
2060         * doc/include/texinfo.tex: Update to version 2008-03-17.10.
2061
2062 2008-03-18  Paolo Bonzini  <bonzini@gnu.org>
2063
2064         * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
2065         is true.
2066         (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
2067         (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
2068         is true.  Add "&& !ignore" condition to reduce_bit_field.  Modify
2069         target after ignore has been set, and move there also the commputation
2070         of subtarget and original_target.
2071         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
2072         (LANG_HOOKS_INITIALIZER): Remove it.
2073         * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
2074
2075 2008-03-18  Richard Guenther  <rguenther@suse.de>
2076
2077         * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
2078         found an expression with constants, note that in the VN for the lhs.
2079         * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
2080         fold them to constants if possible.  Run cleanup_cfg if done so.
2081         (execute_pre): Return todo.
2082         (do_pre): Likewise.
2083         (execute_fre): Likewise.
2084         * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
2085         of constants.
2086         (get_prop_source_stmt): Look through pointer conversions.
2087
2088 2008-03-18  Jan Hubicka  <jh@suse.cz>
2089
2090         * tree-pretty-print.c: Include predict.h.
2091         (dump_generic_node): Dump predictor.
2092         * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
2093         * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
2094         * gimple-low.c (lower_stmt): Likewise.
2095         * expr.c (expand_expr_real): Likewise.
2096         * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
2097         them.
2098         (build_predict_expr, build_predict_expr): New.
2099         * predict.h (predictor_name, build_predict_expr): Update.
2100         * c-typeck.c (c_finish_bc_stmt): Add prediction.
2101         * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
2102         * predict.def (PRED_CONTINUE): Update hitrate.
2103         * tree.def (PREDICT_EXPR): Define.
2104         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
2105         do not handle BIND_EXPR.
2106         * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
2107         * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
2108         * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
2109         operands.
2110
2111 2008-03-18  Michael Matz  <matz@suse.de>
2112
2113         * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
2114
2115 2008-03-18  Richard Guenther  <rguenther@suse.de>
2116
2117         * tree-gimple.h (is_gimple_invariant_address): Declare.
2118         (is_gimple_constant): Likewise.
2119         * tree-gimple.c (is_gimple_constant): New function.
2120         (is_gimple_invariant_address): Likewise.
2121         (is_gimple_min_invariant): Implement in terms of is_gimple_constant
2122         and is_gimple_invariant_address.
2123         * tree-ssa-loop-niter.c (expand_simple_operations): Revert
2124         previous change.
2125         * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
2126         an addressable base.
2127
2128 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
2129
2130         PR middle-end/35611
2131         * gimplify.c (gimplify_expr): Gimplify second operand of
2132         OMP_ATOMIC_LOAD.
2133
2134 2008-03-17  Richard Guenther  <rguenther@suse.de>
2135
2136         PR tree-optimization/19637
2137         * fold-const.c (fold_unary): Remove restrictions of removing
2138         intermediate pointer-conversions (P2)(P1)P0.
2139         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
2140         conversion to void pointer.
2141         (get_maxval_strlen): Handle addresses of the form &(*p)[0].
2142
2143 2008-03-16  James E. Wilson  <wilson@tuliptree.org>
2144
2145         PR debug/31510
2146         * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
2147         emulated thread local variables.
2148
2149 2008-03-16  Richard Guenther  <rguenther@suse.de>
2150
2151         PR middle-end/35607
2152         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
2153         expand TREE_INVARIANT operations that are not gimple invariant.
2154
2155 2008-03-16  Hans-Peter Nilsson  <hp@axis.com>
2156
2157         * doc/extend.texi (Alignment): Say that the ABI controls
2158         the __alignof__ for non-strict-alignment targets rather
2159         than being a recommendation.
2160
2161 2008-03-15  Paul Brook  <paul@codesourcery.com>
2162
2163         * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
2164         annotations.
2165         (arm_output_fn_unwind): Mark functions that can not be unwound.
2166
2167 2008-03-15  Paul Brook  <paul@codesourcery.com>
2168
2169         * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
2170         extension instructions.
2171
2172 2008-03-15  Richard Guenther  <rguenther@suse.de>
2173
2174         * tree-ssa-ccp.c (ccp_fold): Also read from constant values
2175         and fold constant aggregate refs.
2176         (fold_const_aggregate_ref): Handle string constants
2177         and constructors in ARRAY_REFs.  Handle INDIRECT_REF.
2178         (evaluate_stmt): Simplify now that ccp_fold folds constant
2179         aggregate refs.
2180
2181 2008-03-15  Paul Brook  <paul@codesourcery.com>
2182
2183         * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
2184         (extzv): Use gen_extzv_t2.
2185         (insv_t2, insv_zero, extv, extzv_t2): New patterns.
2186
2187 2008-03-15  Richard Guenther  <rguenther@suse.de>
2188
2189         * tree-ssa-ccp.c (get_symbol_constant_value): Export.
2190         (fold_const_aggregate_ref): Likewise.
2191         (get_value): Return NULL if we don't have any values.
2192         (ccp_finalize): Set const_val to NULL after freeing it.
2193         * tree-flow.h (get_symbol_constant_value): Declare.
2194         (fold_const_aggregate_ref): Likewise.
2195         * tree-ssa-sccvn.c (try_to_simplify): Use them.
2196
2197 2008-03-15  Richard Guenther  <rguenther@suse.de>
2198
2199         PR middle-end/35593
2200         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
2201         to not produce negative array indices if not allowed.  Add
2202         parameter to indicate that.
2203         (maybe_fold_offset_to_component_ref): Allow negative array
2204         indices only for the first member of a structure.
2205         (maybe_fold_offset_to_reference): Allow negative array indices.
2206         (maybe_fold_stmt_addition): Likewise.
2207
2208 2008-03-15  Bjoern Haase  <bjoern.m.haase@web.de>
2209             Anatoly Sokolov <aesok@post.ru>
2210
2211         * gcc/gcc/config/avr/avr.c (avr_arch_types): Add avr6 entry.
2212         (avr_arch): Add ARCH_AVR6.
2213         (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
2214         (initial_elimination_offset): Initialize and use 'avr_pc_size' 
2215         instead of fixed value 2.
2216         (print_operand_address): Use gs() asm specifier instead of pm().
2217         (avr_assemble_integer): (Ditto.).
2218         (avr_output_addr_vec_elt): (Ditto.).
2219         (print_operand): Handle "!" code.
2220         * gcc/gcc/config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add 
2221         __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
2222         (AVR_HAVE_EIJMP_EICALL): Define.
2223         (AVR_3_BYTE_PC): Redefine.
2224         (AVR_2_BYTE_PC): (Ditto.).
2225         (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
2226         (LINK_SPEC): Add atmega2560 and atmega2561.
2227         (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561 
2228         (crtm2561.o).
2229         * gcc/gcc/config/avr/avr.md (call_insn): Use eicall instead of icall 
2230         for 3 byte PC devices.
2231         (call_value_insn): (Ditto.).
2232         (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
2233         (indirect_jump): Use only for for 2 byte PC devices.
2234         (*tablejump): (Ditto.).
2235         (*indirect_jump_avr6): Add insn.
2236         (*tablejump_rjmp): Don't use for 3 byte PC devices.
2237         * gcc/gcc/config/avr/libgcc.S (__prologue_saves__): Use eijmp 
2238         instead of ijmp for 3 byte PC devices.
2239         (__tablejump2__): (Ditto.).
2240         * gcc/gcc/config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
2241         (MULITLIB_DIRNAMES): (Ditto.). 
2242         (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
2243
2244 2008-03-15  Uros Bizjak  <ubizjak@gmail.com>
2245
2246         * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
2247         "sse2_umulsidi3".  Use V1DI mode for operand 0.
2248         ("mmx_psadbw"): Use V1DI mode for operand 0.
2249         * config/i386/i386-modes.def (V1SI): New vector mode.
2250         * config/i386/i386.c (struct builtin_description)
2251         [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
2252         (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
2253         (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
2254         (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
2255         v1di_ftype_v8qi_v8qi type.
2256         [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
2257
2258         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
2259         __builtin_ia32_pmuludq]: Fix the mode of return value.
2260
2261 2008-03-15  Richard Guenther  <rguenther@suse.de>
2262
2263         PR middle-end/35595
2264         * tree-ssa-pre.c (bitmap_find_leader): Handle expression
2265         being a PHI_NODE.
2266
2267 2008-03-14  Bob Wilson  <bob.wilson@acm.org>
2268         
2269         * doc/invoke.texi (Option Summary, Xtensa Options): Document
2270         -mserialize-volatile and -mno-serialize-volatile Xtensa options.
2271         * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
2272         unless TARGET_SERIALIZE_VOLATILE is enabled.
2273         * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
2274         * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
2275         * config/xtensa/xtensa.opt (mserialize_volatile): New option.
2276
2277 2008-03-14  Richard Guenther  <rguenther@suse.de>
2278
2279         PR tree-optimization/34172
2280         * tree-flow.h (refs_may_alias_p): Declare.
2281         (get_single_def_stmt): Likewise.
2282         (get_single_def_stmt_from_phi): Likewise.
2283         (get_single_def_stmt_with_phi): Likewise.
2284         * tree-dfa.c (refs_may_alias_p): New function.
2285         (get_single_def_stmt): Likewise.
2286         (get_single_def_stmt_from_phi): Likewise.
2287         (get_single_def_stmt_with_phi): Likewise.
2288         * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
2289         (vn_reference_lookup_1): New helper function.
2290         (vn_reference_lookup): Walk the virtual use-def chain to
2291         continue searching for a match if the def does not alias the
2292         reference we are looking for.
2293
2294 2008-03-14  David Edelsohn  <edelsohn@gnu.org>
2295
2296         * doc/install.texi (Binaries): Remove UCLA archive.  Add HVCC
2297         archive and Perzl.  Update The Written Word listing.
2298
2299 2008-03-14  Richard Guenther  <rguenther@suse.de>
2300
2301         PR tree-optimization/34043
2302         PR tree-optimization/33989
2303         * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
2304         when doing FRE.
2305         (bitmap_find_leader): Use extra argument to verify dominance
2306         relationship inside a basic-block.
2307         (can_PRE_operation): Add VIEW_CONVERT_EXPR.
2308         (find_leader_in_sets): Adjust.
2309         (create_component_ref_by_pieces): Take extra argument for
2310         dominance check, handle lookup failures.
2311         (find_or_generate_expression): Likewise.
2312         (create_expression_by_pieces): Likewise.
2313         (insert_into_preds_of_block): Adjust.
2314         (create_value_expr_from): If asked for, verify all operands
2315         are in the blocks AVAIL_OUT set.
2316         (make_values_for_stmt): Check for SSA_NAMEs that are life
2317         over an abnormal edge.
2318         (compute_avail): Remove such check.
2319         (do_SCCVN_insertion): New function.
2320         (eliminate): If we do not find a leader suitable for replacement
2321         insert a replacement expression from SCCVN if available.
2322         * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
2323         (struct vn_ssa_aux): Add needs_insertion flag.
2324         * tree-ssa-sccvn.c (may_insert): New global flag.
2325         (copy_reference_ops_from_ref): Value-number union member access
2326         based on its size, not type and member if insertion is allowed.
2327         (visit_reference_op_load): For a weak match from union type
2328         punning lookup a view-converted value and insert a SSA_NAME
2329         for that value if that is not found.
2330         (visit_use): Make dumps shorter.  Do not disallow value numbering
2331         SSA_NAMEs that are life over an abnormal edge to constants.
2332         (free_scc_vn): Release inserted SSA_NAMEs.
2333         (run_scc_vn): New flag to specify whether insertion is allowed.
2334         Process SSA_NAMEs in forward order.
2335         * tree-ssa-loop-im.c (for_each_index): Handle invariant
2336         ADDR_EXPRs inside VIEW_CONVERT_EXPR.
2337         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
2338         pointer type to/from integral types that do not change the
2339         precision to regular conversions.
2340
2341 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
2342
2343         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
2344         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
2345         __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
2346         __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
2347         input arguments and the mode of return value.  Built-in functions
2348         that operate on whole 64-bit MMX register now use V1DI mode.
2349
2350 2008-03-13  Alon Dayan  <alond@il.ibm.com>
2351             Olga Golovanevsky  <olga@il.ibm.com>
2352
2353         PR tree-optimization/35041
2354         * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
2355         to locate the right position in a statement.
2356
2357 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
2358
2359         PR target/34000
2360         PR target/35553
2361         * config/i386/xmmintrin.h:  Change all static inline functions to
2362         extern inline and add __gnu_inline__ attribute.
2363         * config/i386/bmintrin.h: Ditto.
2364         * config/i386/smmintrin.h: Ditto.
2365         * config/i386/tmmintrin.h: Ditto.
2366         * config/i386/mmintrin-common.h: Ditto.
2367         * config/i386/ammintrin.h: Ditto.
2368         * config/i386/emmintrin.h: Ditto.
2369         * config/i386/pmmintrin.h: Ditto.
2370         * config/i386/mmintrin.h: Ditto.
2371         * config/i386/mm3dnow.h: Ditto.
2372
2373 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
2374
2375         PR middle-end/35185
2376         * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
2377         (lower_omp_2): New function.
2378         (lower_omp_1, lower_omp): Rewritten.
2379
2380 2008-03-13  Danny Smith  <dannysmith@users.sourceforge.net>
2381
2382         PR 35054
2383         * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
2384         with the phrase "Microsoft Windows compilers".
2385         (Push/Pop Macro Pragmas): New subsection. Document
2386         #pragma push_macro and pragma pop_macro.
2387
2388 2008-03-12  Paul Brook  <paul@codesourcery.com>
2389
2390         * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
2391
2392 2008-03-12  Paul Brook  <paul@codesourcery.com>
2393
2394         * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
2395         (thumb2_alusi3_short): Exclude PLUS and MINUS.
2396         (thumb2_addsi_shortim): Rename ...
2397         (thumb2_addsi_short): ... to this.  Allow register operands.
2398         (thumb2_subsi_short): New pattern.
2399         (thumb2_one_cmplsi2_short,
2400         thumb2_negsi2_short): New patterns and peepholes.
2401
2402 2008-03-12  Paul Brook  <paul@codesourcery.com>
2403
2404         * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
2405
2406 2008-03-12  Uros Bizjak  <ubizjak@gmail.com>
2407
2408         * config/i386/i386.md (int_cond): New code iterator.
2409         (fp_cond): Ditto.
2410         ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
2411         sge, sgeu, sle and sleu expanders usign int_cond code iterator.
2412         ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
2413         sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
2414         ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
2415         bge, bgeu, ble and bleu expanders usign int_cond code iterator.
2416         ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
2417         bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
2418
2419 2008-03-12  Paul Brook  <paul@codesourcery.com>
2420
2421         * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
2422         instead of {arm,thumb}_compute_save_reg_mask.
2423         (output_return_instruction): Ditto.
2424         (thumb_unexpanded_epilogue): Ditto.
2425         (thumb1_expand_prologue): Ditto.
2426         (thumb1_output_function_prologue): Ditto.
2427         (arm_set_return_address): Ditto.
2428         (thumb_set_return_address): Ditto.
2429         (arm_get_frame_offsets): Set offsets->saved_regs_mask.  Push extra
2430         regs to achieve stack alignment.
2431         (thumb1_compute_save_reg_mask): Fix compiler warning.
2432         (arm_output_epilogue): Use offsets->saved_regs_mask.
2433         Adjust stack pointer by poping call clobered registers.
2434         (arm_expand_prologue): Use offsets->saved_regs_mask.
2435         Adjust stack pointer by pushing extra registers.
2436         * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
2437
2438 2008-03-12  Paolo Bonzini  <bonzini@gnu.org>
2439
2440         PR tree-opt/35422
2441         * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
2442         conversion to the operands of a multiplication.
2443
2444 2008-03-12  Richard Guenther  <rguenther@suse.de>
2445
2446         * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
2447         (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
2448         * timevar.def (TV_TREE_PHIPROP): Add.
2449         * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
2450         pass description.  Use TV_TREE_PHIPROP.
2451         * tree-ssa-forwprop.c: Remove phiprop code.
2452
2453 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
2454
2455         PR middle-end/35549
2456         * omp-low.c (maybe_lookup_decl): Constify first argument.
2457         (use_pointer_for_field): Change last argument from bool to
2458         omp_context *.  Disallow shared copy-in/out in nested
2459         parallel if decl is shared in outer parallel too.
2460         (build_outer_var_ref, scan_sharing_clauses,
2461         lower_rec_input_clauses, lower_copyprivate_clauses,
2462         lower_send_clauses, lower_send_shared_vars): Adjust callers.
2463
2464 2008-03-12  Victor Kaplansky  <victork@il.ibm.com>
2465             Ira Rosen  <irar@il.ibm.com>
2466
2467         * tree-vectorizer.c (free_stmt_vec_info): New function.
2468         (destroy_loop_vec_info): Move code to free_stmt_vec_info().
2469         Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
2470         * tree-vectorizer.h (free_stmt_vec_info): Declare.
2471         * tree-vect-transform.c (vectorizable_conversion): Free
2472         vec_oprnds0 if it was allocated.
2473         (vect_permute_store_chain): Remove unused VECs.
2474         (vectorizable_store): Free VECs that are allocated in the..
2475         function.
2476         (vect_transform_strided_load, vectorizable_load): Likewise.
2477         (vect_remove_stores): Simplify the code.
2478         (vect_transform_loop): Move code to vect_remove_stores().
2479         Call vect_remove_stores() and free_stmt_vec_info().
2480
2481 2008-03-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2482
2483         * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
2484         TARGET_HPUX.  Revise comment.
2485         (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
2486         * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
2487         Use sr4 variant of `be' instruction when not generating PIC code.
2488         (attr_length_call): Adjust for above change.
2489
2490 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2491
2492         * ipa-reference.c (static_execute): Remove module_statics_const and
2493         associated setting code.
2494
2495 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
2496
2497         PR target/35540
2498         * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
2499         predicate for operand 1.
2500         (paritysi2_cmp): Use register_operand predicate for operand 2.
2501         Use earlyclobber modifier for operand 1.  Remove support for
2502         memory operands.
2503         (paritydi2_cmp): Use register_operand predicate for operand 3.
2504         Use earlyclobber modifier for operand 1.  Remove support for
2505         memory operands.
2506
2507 2008-03-11  Paul Brook  <paul@codesourcery.com>
2508             Vladimir Prus  <vladimir@codesourcery.com>
2509
2510         * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
2511         (arm_compute_save_reg0_reg12_mask): Always
2512         check if register 11 must be saved.  Always safe hard frame pointer
2513         when frame_pointer_needeed.
2514         (arm_compute_save_reg_mask): Save IP and PC
2515         only with apcs frames.
2516         (arm_output_epilogue): Adjust Thumb2 codepath to
2517         be also invoked and work for ARM non-apcs frames.
2518         (arm_expand_prologue): Don't bother saving IP
2519         for non-apcs frame, since it's not clobbered by
2520         prologue code.  Implement non-apcs frame
2521         layout.
2522
2523 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
2524
2525         PR rtl-optimization/35281
2526         * expr.c (convert_move): Use a new pseudo for the intermediate
2527         from_mode->word_mode result.
2528
2529 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
2530
2531         * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
2532         * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
2533         * toplev.c (compile_file): Don't call it.
2534
2535 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
2536
2537         PR middle-end/35526
2538         * expr.c (store_expr): Call emit_block_move if the mode
2539         of "temp" RTX is BLKmode.
2540
2541 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2542             Richard Guenther  <rguenther@suse.de>
2543
2544         PR tree-optimization/31358
2545         * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
2546         the step with a NULL_TREE.
2547         * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
2548         to sizetype if type is a pointer type.
2549         (add_candidate_1): Don't convert the base and step to
2550         the generic type if the orginal type is a pointer type.
2551         (add_iv_value_candidates): Use sizetype for the step
2552         if type is a pointer type.
2553         (cand_value_at): Likewise.
2554         * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
2555         for pointer types.
2556         * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
2557         Don't convert the tem affine to the type.
2558         (add_elt_to_tree): Use sizetype for the step if a pointer.
2559         Use POINTER_PLUS_EXPR for pointers.
2560         (aff_combination_to_tree): Use sizetype for the step if a
2561         pointer.
2562
2563 2008-03-10  Vladimir Makarov  <vmakarov@redhat.com>
2564
2565         * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
2566         Remove commutativity hint.
2567
2568 2008-03-10  Jakub Jelinek  <jakub@redhat.com>
2569
2570         PR c/35438
2571         PR c/35439
2572         * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
2573         errorneous type.  Check that v is a VAR_DECL.
2574
2575         PR middle-end/35099
2576         * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
2577
2578 2008-03-10  H.J. Lu  <hongjiu.lu@intel.com>
2579
2580         PR tree-optimization/35494
2581         * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
2582         may be overriden at link and run time.
2583
2584 2008-03-10  Richard Guenther  <rguenther@suse.de>
2585
2586         PR tree-optimization/34677
2587         * tree-ssa-pre.c (modify_expr_node_pool): Remove.
2588         (poolify_tree): Likewise.
2589         (modify_expr_template): Likewise.
2590         (poolify_modify_stmt): Likewise.
2591         (insert_fake_stores): Handle all component-ref style stores
2592         in addition to INDIRECT_REF.  Also handle complex types.
2593         Do not poolify the inserted load.
2594         (realify_fake_stores): Do not rebuild the tree but only
2595         make it a SSA_NAME copy.
2596         (init_pre): Remove initialzation of modify_expr_template.
2597         Do not allocate modify_expr_node_pool.
2598         (fini_pre): Do not free modify_expr_node_pool.
2599
2600 2008-03-10  Paul Brook  <paul@codesourcery.com>
2601
2602         * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
2603         to avoid conflicts.
2604
2605 2008-03-10  Paul Brook  <paul@codesourcery.com>
2606             Mark Shinwell  <shinwell@codesourcery.com>
2607
2608         * config/arm/cortex-r4.md: New.
2609         * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
2610         insn attributes.
2611         * config/arm/arm.md: Include cortex-r4.md.
2612         (insn): Add smmls, sdiv and udiv values.
2613         (generic_sched): Don't use generic scheduling for Cortex-R4.
2614         (arm_issue_rate): New function.
2615         (TARGET_SCHED_ISSUE_RATE): Define.
2616
2617 2008-03-10  Sebastian Pop  <sebastian.pop@amd.com>
2618
2619         * doc/invoke.texi (-ftree-loop-distribution): Add an example.
2620
2621 2008-03-10  Richard Guenther  <rguenther@suse.de>
2622
2623         * tree-ssa-pre.c (get_sccvn_value): Simplify.
2624         (compute_avail): Do not add stmt uses to AVAIL_OUT.
2625
2626 2008-03-10  Paolo Bonzini  <bonzini@gnu.org>
2627
2628         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
2629         Set default to true.
2630
2631 2008-03-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2632
2633         * c.opt (Wsynth): Deprecate.
2634         * doc/invoke.texi (Option Summary, Warning Options): Document
2635         -Wno-format-contains-nul.
2636
2637 2008-03-09  Uros Bizjak  <ubizjak@gmail.com>
2638
2639         PR target/35496
2640         * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
2641         ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
2642
2643 2008-03-09  Ira Rosen  <irar@il.ibm.com>
2644
2645         * config/rs6000/rs6000.c (builtin_description): Rename vector
2646         left shift operations.
2647         * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
2648         (altivec_vsl<VI_char>): Rename to ...
2649         (ashl<mode>3): ... new name.
2650         (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
2651         gen_ashlv4si3.
2652         (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
2653
2654 2008-03-08  Richard Guenther  <rguenther@suse.de>
2655
2656         * coverage.h (tree_coverage_counter_addr): Declare.
2657         * coverage.c (tree_coverage_counter_addr): New function.
2658         * tree-profile.c (tree_gen_edge_profiler): Unshare counter
2659         before using again.
2660         (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
2661         (tree_gen_one_value_profiler): Likewise.
2662         (tree_gen_ic_profiler): Likewise.
2663         (tree_gen_average_profiler): Likewise.
2664         (tree_gen_ior_profiler): Likewise.
2665
2666 2008-03-08  Richard Guenther  <rguenther@suse.de>
2667
2668         * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
2669         (vn_binary_op_insert): Likewise.
2670         (vn_unary_op_lookup): Likewise.
2671         (vn_unary_op_insert): Likewise.
2672         (vn_nary_op_lookup): Declare.
2673         (vn_nary_op_insert): Likewise.
2674         * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
2675         and binary hashes, use a single obstack for unary_op_pool
2676         and binary_op_pool.
2677         (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
2678         a single struct vn_nary_op_s.  Store tree code length and
2679         a variable number of operands.
2680         (struct vn_reference_op_struct): Remove unused op2.
2681         (vn_reference_op_eq): Do not compare op2.
2682         (vn_reference_op_compute_hash): Do not compute hash of op2.
2683         (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
2684         (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
2685         with vn_nary_op_compute_hash.
2686         (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
2687         (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
2688         vn_nary_op_lookup.
2689         (vn_unary_op_insert, vn_binary_op_insert): Replace with
2690         vn_nary_op_insert.
2691         (visit_unary_op): Call nary functions.
2692         (visit_binary_op): Likewise.
2693         (process_scc): Adjust for struct vn_tables_s changes.
2694         (allocate_vn_table): Likewise.
2695         (free_vn_table): Likewise.
2696         * tree-vn.c (vn_add): Call nary functions.
2697         (vn_lookup): Likewise.
2698
2699 2008-03-08  Jakub Jelinek  <jakub@redhat.com>
2700
2701         PR target/35498
2702         * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
2703         wdst back after sync_compare_and_swapqhi_internal.
2704
2705 2008-03-08  Uros Bizjak  <ubizjak@gmail.com>
2706
2707         PR target/22152
2708         * config/i386/i386-modes.def (V1DI): New vector mode.
2709         * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
2710         * config/i386/mmx.md (MMXMODEI8): New mode iterator.
2711         (MMXMODE248): Ditto.
2712         (MMXMODE): Add V1DI mode.
2713         (mmxvecsize): Change DI mode to V1DI mode.
2714         ("mov<mode>): Use MMXMODEI8 mode iterator.
2715         ("*mov<mode>_internal_rex64"): Ditto.
2716         ("*mov<mode>_internal"): Ditto.
2717         ("mmx_add<mode>3"): Ditto.  Handle V1DImode for TARGET_SSE2.
2718         ("mmx_sub<mode>3"): Ditto.
2719         ("mmx_adddi3"): Remove insn pattern.
2720         ("mmx_subdi3"): Ditto.
2721         ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
2722         ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
2723         ("mmx_ashl<mode>3"): Ditto.
2724         ("mmx_lshrdi3"): Remove insn pattern.
2725         ("mmx_ashldi3"): Ditto.
2726         * config/i386/i386.c (classify_argument): Handle V1DImode.
2727         (function_arg_advance_32): Ditto.
2728         (function_arg_32): Ditto.
2729         (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
2730         mmx_addv1di3 insn pattern.
2731         [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
2732         [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
2733         IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
2734         IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
2735         Remove definitions of built-in functions.
2736         (V1DI_type_node): New node.
2737         (v1di_ftype_v1di_int): Ditto.
2738         (v1di_ftype_v1di_v1di): Ditto.
2739         (v2si_ftype_v2si_si): Ditto.
2740         (v4hi_ftype_v4hi_di): Remove node.
2741         (v2si_ftype_v2si_di): Ditto.
2742         (ix86_init_mmx_sse_builtins): Handle V1DImode.
2743         (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
2744         Redefine builtins using def_builtin_const with *_ftype_*_int node.
2745         (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
2746         Add new builtins using def_builtin_const.
2747         (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
2748         IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
2749         IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
2750         * config/i386/mmintrin.h (__v1di): New typedef.
2751         (_mm_add_si64): Cast arguments to __v1di type.
2752         (_mm_sub_si64): Ditto.
2753         (_mm_sll_pi16): Cast __count to __v4hi type.
2754         (_mm_sll_pi32): Cast __count to __v2si type.
2755         (_mm_sll_si64): Cast arguments to __v1di type.
2756         (_mm_srl_pi16): Cast __count to __v4hi type.
2757         (_mm_srl_pi32): Cast __count to __v2si type.
2758         (_mm_srl_si64): Cast arguments to __v1di type.
2759         (_mm_sra_pi16): Cast __count to __v4hi type.
2760         (_mm_sra_pi32): Cast __count to __v2si type.
2761         (_mm_slli_pi16): Use __builtin_ia32_psllwi.
2762         (_mm_slli_pi32): Use __builtin_ia32_pslldi.
2763         (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
2764         (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
2765         (_mm_srli_pi32): Use __builtin_ia32_psrldi.
2766         (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
2767         (_mm_srai_pi16): Use __builtin_ia32_psrawi.
2768         (_mm_srai_pi32): Use __builtin_ia32_psradi.
2769         * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
2770         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
2771         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
2772         __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
2773
2774 2008-03-07  Joseph Myers  <joseph@codesourcery.com>
2775
2776         * doc/include/texinfo.tex: Update to version 2008-03-07.10.
2777
2778 2008-03-07  Peter Bergner  <bergner@vnet.ibm.com>
2779
2780         PR target/35373
2781         * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
2782         reg+const addressing for Altivec modes.  Don't generate reg+reg
2783         addressing for TFmode or TDmode quantities.
2784
2785 2008-03-07  Paolo Bonzini  <bonzini@gnu.org>
2786
2787         * c-common.c (vector_types_convertible_p): Call langhook
2788         instead of comptypes.
2789
2790 2008-03-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2791
2792         PR tree-opt/35402
2793         * tree-ssa-ccp.c (get_symbol_constant_value): Handle
2794         integral and scalar float variables which have a
2795         NULL DECL_INITIAL.
2796
2797 2008-03-06  Nathan Froyd  <froydnj@codesourcery.com>
2798
2799         * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
2800         dwarf_register_span hook when emitting unwind information for
2801         register-to-memory saves.
2802         * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
2803         (rs6000_frame_related): Remove call to spe_synthesize_frame.
2804
2805 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
2806
2807         * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
2808         for the same VAR_DECL.
2809
2810 2008-03-06  Tom Tromey  <tromey@redhat.com>
2811
2812         * treelang: Delete.
2813         * doc/standards.texi (Standards): Don't mention treelang.
2814         * doc/invoke.texi (Overall Options): Don't mention treelang.
2815         * doc/install.texi (Prerequisites): Don't mention bison or
2816         treelang.
2817         (Configuration): Don't mention treelang.
2818         (Building): Likewise.
2819         * doc/frontends.texi (G++ and GCC): Don't mention treelang.
2820
2821 2008-03-06  Paolo Bonzini  <bonzini@gnu.org>
2822
2823         * simplify-rtx.c (simplify_subreg): Remove useless shifts from
2824         word-extractions out of a multi-word object.
2825
2826 2008-03-06  Richard Guenther  <rguenther@suse.de>
2827
2828         * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
2829         * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
2830         result type and precision.
2831         * expr.c (get_inner_reference): Set unsignedp based on the result
2832         type of BIT_FIELD_REF.
2833         * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
2834         * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
2835         (try_instantiate_multiple_fields): Likewise.  Use the correct type
2836         for BIT_FIELD_REF.
2837         (sra_build_assignment): Likewise.
2838         (sra_build_elt_assignment): Likewise.
2839         (sra_explode_bitfield_assignment): Likewise.
2840         * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
2841         * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
2842         set BIT_FIELD_REF_UNSIGNED.
2843         (vectorizable_load): Likewise.
2844
2845 2008-03-06  Andreas Krebbel  <krebbel1@de.ibm.com>
2846
2847         * cse.c (cse_extended_basic_block): Invalidate artificial defs
2848         at bb start.
2849
2850 2008-03-06  Richard Guenther  <rguenther@suse.de>
2851
2852         * alias.c (struct alias_set_entry): Move has_zero_child field
2853         to pack with alias_set.
2854
2855 2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
2856
2857         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
2858         32bit host.
2859
2860 2008-03-05  Ian Lance Taylor  <iant@google.com>
2861
2862         * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
2863
2864 2008-03-05  Kenneth Zadeck <zadeck@naturalbridge.com>
2865
2866         * fwprop.c (update_df): Support width and offset parameters of
2867         df_ref_create.
2868         * ra-conflict.c (mark_reg_store, clear_reg_in_live,
2869         global_conflicts): Change DF_REF_EXTRACT to either
2870         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
2871         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
2872         * df-scan.c (df_ref_record, df_defs_record,
2873         df_ref_create_structure, df_def_record_1, df_uses_record,
2874         df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
2875         df_bb_refs_collect, df_entry_block_defs_collect,
2876         df_exit_block_uses_collect): Support new width and offset fields.
2877         (ref_extract_pool): New storage pool.
2878         (df_free_ref): New function.
2879         (df_reg_chain_unlink, df_free_collection_rec,
2880         df_sort_and_compress_refs): Call df_free_ref.
2881         (df_ref_equal_p, df_ref_compare): Compare offset and width fields
2882         of df_ref_extract.
2883         (df_ref_create_structure): Allocate df_ref_extract if offset and
2884         width fields are used.
2885         (df_def_record_1): Get offset and width from ZERO_EXTRACT.
2886         (df_uses_record): Get offset and width from ZERO_EXTRACT 
2887         and SIGN_EXTRACT.
2888         * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
2889         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
2890         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
2891         * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
2892         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
2893         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
2894         (df_ref_extract): New structure.
2895         (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
2896         (df_ref_create): Add width and offset parameters.
2897         
2898 2008-03-05  Richard Guenther  <rguenther@suse.de>
2899
2900         * tree-ssa-structalias.c (get_constraint_for_component_ref):
2901         Use ranges_overlap_p.
2902         (offset_overlaps_with_access): Rename
2903         to ranges_overlap_p and move ...
2904         * tree-flow-inline.h (ranges_overlap_p): ... here.
2905
2906         * tree.h (get_inner_reference, handled_component_p): Update
2907         comments.
2908
2909         * tree.h (record_component_aliases, get_alias_set,
2910         alias_sets_conflict_p, alias_sets_must_conflict_p,
2911         objects_must_conflict_p): Move declarations ...
2912         * alias.h (record_component_aliases, get_alias_set,
2913         alias_sets_conflict_p, alias_sets_must_conflict_p,
2914         objects_must_conflict_p): ... here.
2915         Include coretypes.h.
2916         * Makefile.in (ALIAS_H): Add coretypes.h dependency.
2917
2918 2008-03-05  Aldy Hernandez  <aldyh@redhat.com>
2919
2920         * cfg.c: Include tree-flow.h.
2921         (remove_edge_raw): Call redirect_edge_var_map_clear.
2922         (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
2923         * tree-flow-inline.h (redirect_edge_var_map_def): New.
2924         (redirect_edge_var_map_result): New.
2925         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
2926         PENDING_STMT use with redirect_edge_var_map_*.
2927         * tree-ssa.c (edge_var_maps): New definition.
2928         (redirect_edge_var_map_add): New.
2929         (redirect_edge_var_map_clear): New.
2930         (redirect_edge_var_map_dup): New.
2931         (redirect_edge_var_map_vector): New.
2932         (redirect_edge_var_map_destroy): New.
2933         (ssa_redirect_edge): Replace PENDING_STMT use with
2934         redirect_edge_var_map_*.
2935         (flush_pending_stmts): Same.
2936         (delete_tree_ssa): Destroy edge var map.
2937         * tree-flow.h (struct _edge_var_map): New.
2938         Define edge_var_map vector type.
2939         Declare redirect_edge_var_map_* prototypes.
2940         * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
2941         * tree-cfg.c (reinstall_phi_args): Replace
2942         PENDING_STMT use with redirect_edge_var_map_*.
2943
2944 2008-03-05  Richard Guenther  <rguenther@suse.de>
2945
2946         PR tree-optimization/35472
2947         * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
2948         whose single use_stmt has a overlapping set of loaded and
2949         stored symbols as that use_stmt might be a noop assignment then.
2950
2951 2008-03-05  Joel Sherrill <joel.sherrill@oarcorp.com>
2952
2953         * gthr-rtems.h: Implement __gthread_mutex_destroy.
2954
2955 2008-03-05  Richard Guenther  <rguenther@suse.de>
2956
2957         PR c++/35336
2958         * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
2959         should be constants.
2960         * tree-cfg.c (verify_expr): Verify it.
2961         * fold-const.c (fold_truthop): Remove code generating
2962         BIT_FIELD_REFs of structure bases.
2963         (fold_binary): Likewise.
2964         (fold_ternary): Position and size of BIT_FIELD_REFs are
2965         always host integers.
2966         (make_bit_field_ref): Remove.
2967         (optimize_bit_field_compare): Remove.
2968         (all_ones_mask_p): Remove.
2969
2970 2008-03-05  Gabor Loki  <loki@gcc.gnu.org>
2971
2972         PR gcc/33009
2973         * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
2974         (split_block_and_df_analyze): New. Split basic block and rebuild
2975         dataflow.
2976         (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
2977         SPLIT_BLOCK.
2978         (split_pattern_seq): Likewise.
2979         (erase_matching_seqs): Likewise.
2980         (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
2981
2982 2008-03-04  Geoff Keating  <geoffk@apple.com>
2983
2984         * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
2985         declaration and code.
2986         (tree_invalid_nonnegative_warnv_p): Likewise.
2987
2988 2008-03-05  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
2989
2990         * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
2991         examples.  Truncate option-names then causing overfull hbox.
2992
2993 2008-03-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2994
2995         PR target/35222
2996         * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
2997         on hpux10.
2998         * configure: Rebuilt.
2999
3000 2008-03-04  Rafael Espindola  <espindola@google.com>
3001
3002         * fold-const.c (tree_simple_nonnegative_warnv_p): New.
3003         (tree_unary_nonnegative_warnv_p): New.
3004         (tree_binary_nonnegative_warnv_p): New.
3005         (tree_single_nonnegative_warnv_p): New.
3006         (tree_invalid_nonnegative_warnv_p): New.
3007         (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
3008
3009 2008-03-04  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3010
3011         PR 28322
3012         * opts.c (handle_option): Postpone 'unknown option' errors only for
3013         warning options.
3014
3015 2008-03-04  H.J. Lu  <hongjiu.lu@intel.com>
3016
3017         PR target/35453
3018         * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
3019         (_SIDD_XXX): This.
3020
3021 2008-03-04  Rafael Espindola  <espindola@google.com>
3022
3023         * fold-const.c (tree_unary_nonzero_warnv_p): New.
3024         (tree_binary_nonzero_warnv_p): New.
3025         (tree_single_nonzero_warnv_p): New.
3026         (tree_expr_nonzero_warnv_p): Redefine using the new functions.
3027
3028 2008-03-04  Uros Bizjak  <ubizjak@gmail.com>
3029
3030         PR middle-end/35456
3031         * fold-const.c (fold_cond_expr_with_comparison): Prevent
3032         transformations for modes that have signed zeros.
3033         * ifcvt.c (noce_try_abs): Ditto.
3034
3035 2008-03-04  Joseph Myers  <joseph@codesourcery.com>
3036
3037         * config/i386/i386.c (override_options): Force
3038         -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
3039
3040 2008-03-04  Jan Hubicka  <jh@suse.cz>
3041
3042         PR c++/35262
3043         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
3044         in last commit.
3045
3046 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
3047
3048         * config/i386/i386.md (allocate_stack_worker_32): Use  __chkstk
3049         label to probe the stack.
3050
3051 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
3052
3053         * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
3054         (__gthr_win32_mutex_destroy): Declare.
3055         [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
3056         __gthr_win32_mutex_destroy.
3057         * config/i386/gthr-win32.c  (__gthr_win32_mutex_destroy): Define.
3058
3059 2008-03-03  Jan Hubicka  <jh@suse.cz>
3060
3061         PR c++/35262
3062         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
3063         aggressive on inlining cold calls.
3064
3065 2008-03-03  Richard Guenther  <rguenther@suse.de>
3066
3067         * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
3068         struct copies into the expression table.
3069         (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
3070         (try_to_simplify): Likewise.
3071         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
3072         integral and pointer arguments which do not change the
3073         precision to NOP_EXPRs.
3074         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
3075         VIEW_CONVERT_EXPR case.
3076
3077 2008-03-02  Sebastian Pop  <sebastian.pop@amd.com>
3078
3079         * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
3080         defined in a loop at depth 0 is invariant.
3081         * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
3082         * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
3083         be called at loop depth 0.
3084
3085 2008-03-02  Jakub Jelinek  <jakub@redhat.com>
3086
3087         PR driver/35420
3088         * gcc.c (process_command): Update copyright notice dates.
3089         * gcov.c (print_version): Likewise.
3090         * gcov-dump.c (print_version): Likewise.
3091         * mips-tfile.c (main): Likewise.
3092         * mips-tdump.c (main): Likewise.
3093
3094 2008-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3095
3096         PR 24924
3097         * c-common.c (flag_permissive): Delete.
3098         (constant_expression_warnings): Check flags first.
3099         (constant_expression_error): New.
3100         * c-common.h (flag_permissive): Delete.
3101         (constant_expression_error): Declare.
3102         * flags.h (flag_permissive): Declare. Update description.
3103         * diagnostic.c (pedwarn): Update.
3104         (permerror): New.
3105         * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
3106         (permissive_error_kind): New.
3107         * toplev.c (flag_permissive): Define. Update description.
3108         * toplev.h (permissive_error_kind): Declare.
3109         * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
3110         (pedwarn_c90): Use pedantic_warning_kind.
3111         * c-opts.c (c_common_post_options): flag_permissive does not affect
3112         flag_pedantic_errors.
3113
3114 2008-03-02  Joseph Myers  <joseph@codesourcery.com>
3115
3116         * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
3117         __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
3118         __absvsi2, __absvDI2): Use unsigned arithmetic.
3119
3120 2008-03-02  Andi Kleen  <ak@suse.de>
3121             Richard Guenther  <rguenther@suse.de>
3122
3123         * struct-equiv.c: Remove file.
3124         * cfg_cleanup.c (condjump_equiv_p): Remove.
3125         * Makefile.in (OBJS-common): Remove struct-equiv.o.
3126         (struct-equiv.o): Remove rule.
3127         * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
3128         insns_match_p, struct_equiv_block_eq, struct_equiv_init, 
3129         rtx_equiv_p, condjump_equiv_p): Remove prototypes.
3130
3131 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
3132
3133         * ifcvt.c (noce_process_if_block): Try to handle only the then
3134         block if the else block exists but isn't suitable.
3135
3136 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
3137
3138         PR gcc/35063
3139         * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
3140         * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
3141         regression from previous patch.
3142
3143 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
3144
3145         PR gcc/35063
3146         * gthr.h: Add __gthread_mutex_destroy as a function that must be
3147         implemented.
3148         * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
3149         * gthr-single.h (__gthread_mutex_destroy): Likewise.
3150         * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
3151         * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
3152         * gthr-nks.h (__gthread_mutex_destroy): Likewise.
3153         * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
3154         * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
3155         (__gthread_mutex_destroy_function): Rename to
3156         __gthread_mutex_destroy.
3157         * gthr-dce.h (__gthread_mutex_destroy): Call
3158         pthread_mutex_destroy.
3159         * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
3160         * gthr-posix.h (__gthread_mutex_destroy): Likewise.
3161         * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
3162
3163 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
3164
3165         * df-scan.c (df_ref_chain_change_bb): Simplify.
3166         (df_insn_change_bb): Add new_bb argument.  Simplify.  Call
3167         set_block_for_insn if there's any change.
3168         * df.h ((df_insn_change_bb): Fix prototype.
3169         * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
3170         df_insn_change_bb, don't call set_block_for_insn.
3171         * emit-rtl.c (reorder_insns): Likewise.
3172         * haifa-sched.c (move_insn): Likewise.
3173
3174 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
3175
3176         * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
3177
3178 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
3179
3180         * tree-flow-inline.h (next_readonly_imm_use): Return
3181         NULL_USE_OPERAND_P after the end.
3182
3183 2008-03-01  Richard Guenther  <rguenther@suse.de>
3184
3185         PR tree-optimization/35411
3186         * tree-sra.c (sra_build_assignment): Split conversion to
3187         final type to a separate statement if we are not assigning
3188         to a register.
3189
3190 2008-02-29  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
3191
3192         * fold-const.c (fold_convertible_p): Correct the logic to follow
3193         that in fold_convert().
3194
3195 2008-02-29  Douglas Gregor  <doug.gregor@gmail.com>
3196
3197         PR c++/35315
3198         * tree-inline.c (build_duplicate_type): When we make a
3199         duplicate type, make it unique in the canonical types system.
3200
3201 2008-02-29  Tom Tromey  <tromey@redhat.com>
3202
3203         * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
3204         input_file_stack_history, input_file_stack_restored): Remove.
3205         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
3206         * input.h (struct file_stack): Remove.
3207         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
3208         (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
3209         Likewise.
3210         * diagnostic.h (struct diagnostic_context) <last_module>: Change
3211         type.
3212         (diagnostic_last_module_changed): Add 'map' argument.
3213         (diagnostic_set_last_function): Likewise.
3214         * diagnostic.c (undiagnostic_report_current_module): Iterate using
3215         line map, not input_file_stack.
3216         * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
3217
3218 2008-02-29  Paul Brook  <paul@codesourcery.com>
3219
3220         * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
3221
3222 2008-02-29  Paul Brook  <paul@codesourcery.com>
3223
3224         * config/arm/ieee754-df.S (muldf3): Use RET macros.
3225
3226 2008-02-29  Richard Guenther  <rguenther@suse.de>
3227
3228         * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
3229         vn_lookup_or_add.
3230         * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
3231         value for comparing for a store match.
3232         (simplify_unary_expression): Do nothing for SSA_NAMEs.
3233         (try_to_simplify): Do not do a full-blown reference lookup.
3234
3235 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
3236
3237         * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
3238         (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
3239
3240         * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
3241
3242 2008-02-29  Sebastian Pop  <sebastian.pop@amd.com>
3243
3244         * tree-loop-linear.c (try_interchange_loops): Compare memory access
3245         strides against cache sizes.
3246
3247 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
3248
3249         * config/sh/sh.c (sh_secondary_reload): Handle loading a float
3250         constant to fpul.
3251
3252 2008-02-28  Richard Sandiford  <rsandifo@nildram.co.uk>
3253
3254         * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
3255         of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
3256         is smaller than the original promoted value.
3257         (simplify_subreg): If OP is a SUBREG, try to preserve its
3258         SUBREG_PROMOTED_VAR_P information.
3259
3260 2008-02-28  Steven Bosscher  <stevenb.gcc@gmail.com>
3261
3262         * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
3263         (VN_INFO_GET): Allocate new objects on the obstack.
3264         (init_scc_vn): Initialize the obstack.  Use XDELETE instead of free
3265         for rpo_numbers_temp, for consistency.
3266         (free_scc_vn): Free the obstack.
3267
3268 2008-02-28  Sebastian Pop  <sebastian.pop@amd.com>
3269
3270         * doc/invoke.texi: Document -ftree-loop-distribution.
3271         * tree-loop-distribution.c: New.
3272         * tree-pass.h (pass_loop_distribution): New.
3273         * graphds.h (struct graph): Add htab_t indices.
3274         * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
3275         * tree-vectorizer.c (rename_variables_in_loop): Extern.
3276         (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
3277         * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
3278         * tree-data-ref.c (debug_data_dependence_relations): New.
3279         (dump_data_dependence_relation): Also print data references.
3280         (free_data_ref): Extern.
3281         (same_access_functions): Moved...
3282         (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
3283         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
3284         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
3285         struct rdg_vertex_info, rdg_vertex_for_stmt): New.
3286         (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
3287         (stmts_from_loop): Skip LABEL_EXPR.
3288         (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
3289         New.
3290         (build_rdg): Initialize rdg->indices htab.
3291         (free_rdg, stores_from_loop, ref_base_address,
3292         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
3293         have_similar_memory_accesses_1, ref_base_address_1,
3294         remove_similar_memory_refs): New.
3295         * tree-data-ref.h: Depend on tree-chrec.h.
3296         (debug_data_dependence_relations, free_data_ref): Declared.
3297         (same_access_functions): ... here.
3298         (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
3299         New.
3300         (struct rdg_vertex): Add has_mem_write and has_mem_reads.
3301         (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
3302         RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
3303         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
3304         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
3305         rdg_vertex_for_stmt): Declared.
3306         (struct rdg_edge): Add level.
3307         (RDGE_LEVEL): New.
3308         (free_rdg, stores_from_loop, remove_similar_memory_refs,
3309         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
3310         Declared.
3311         (rdg_has_similar_memory_accesses): New.
3312         * tree-vect-analyze.c: Remove unused static decls.
3313         * lambda.h (dependence_level): New.
3314         * common.opt (ftree-loop-distribution): New.
3315         * tree-flow.h (mark_virtual_ops_in_bb, 
3316         slpeel_tree_duplicate_loop_to_edge_cfg,
3317         rename_variables_in_loop): Declared.
3318         * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
3319         (OBJS-common): Add tree-loop-distribution.o.
3320         (tree-loop-distribution.o): New rule.
3321         * tree-cfg.c (mark_virtual_ops_in_bb): New.
3322         (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
3323         * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
3324
3325 2008-02-28  Joseph Myers  <joseph@codesourcery.com>
3326
3327         PR target/33963
3328         * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
3329         other than structures and unions.
3330
3331 2008-02-28  Richard Guenther  <rguenther@suse.de>
3332
3333         Revert:
3334         2008-02-26  Richard Guenther  <rguenther@suse.de>
3335
3336         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
3337         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
3338         (lookup_decl_from_uid): Declare.
3339         (remove_decl_from_map): Likewise.
3340         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
3341         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
3342         (decl_for_uid_map): New global hashtable mapping DECL_UID
3343         to the decl tree.
3344         (init_ttree): Allocate it.
3345         (insert_decl_to_uid_decl_map): New helper function.
3346         (make_node_stat): Insert new decls into the map.
3347         (copy_node_stat): Likewise.
3348         (lookup_decl_from_uid): New function.
3349         (remove_decl_from_map): Likewise.
3350         (print_decl_for_uid_map_statistics): New helper.
3351         (dump_tree_statistics): Call it.
3352
3353         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
3354         (referenced_var_iterator): Adjust.
3355         (FOR_EACH_REFERENCED_VAR): Adjust.
3356         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
3357         (num_referenced_vars): Adjust.
3358         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
3359         (first_referenced_var): Remove.
3360         (end_referenced_vars_p): Likewise.
3361         (next_referenced_var): Likewise.
3362         (referenced_var_iterator_set): New helper function.
3363         * tree-dfa.c (referenced_var_lookup): Adjust.
3364         (referenced_var_check_and_insert): Likewise.
3365         (remove_referenced_var): Likewise.
3366         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
3367         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
3368         (verify_call_clobbering): Likewise.
3369         (verify_memory_partitions): Likewise.
3370         (init_tree_ssa): Allocate bitmap instead of hashtable for
3371         referenced_vars.
3372         (delete_tree_ssa): Adjust.
3373         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
3374         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
3375         (compute_tag_properties): Likewise.
3376         (set_initial_properties): Likewise.
3377         (find_partition_for): Likewise.
3378         (update_reference_counts): Likewise.
3379         (dump_may_aliases_for): Likewise.
3380         * tree-ssa-operands.c (add_virtual_operand): Likewise.
3381         (add_call_clobber_ops): Likewise.
3382         (add_call_read_ops): Likewise.
3383         (get_asm_expr_operands): Likewise.
3384         * tree-into-ssa.c (dump_decl_set): Likewise.
3385         (update_ssa): Likewise.
3386         * tree-sra.c (scan_function): Likewise.
3387         (decide_instantiations): Likewise.
3388         (scalarize_parms): Likewise.
3389         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
3390         (dsa_named_for): Likewise.
3391         * tree-ssa-structalias.c (update_alias_info): Likewise.
3392         (merge_smts_into): Likewise.
3393
3394 2008-02-27  David Daney  <ddaney@avtrex.com>
3395
3396         PR target/34409
3397         * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
3398         * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
3399         * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
3400         * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
3401         * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
3402
3403 2008-02-27  Uros Bizjak  <ubizjak@gmail.com>
3404
3405         PR target/25477
3406         * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
3407         (BUILT_IN_NEXTTOWARD): Remove.
3408         (BUILT_IN_NEXTTOWARDF): Ditto.
3409         * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
3410         alloca/strcpy/strcat.  Remove commented-out code.  Fix whitespace.
3411
3412 2008-02-27  Tom Tromey  <tromey@redhat.com>
3413
3414         * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
3415         DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
3416
3417 2008-02-27  Jan Beulich  <jbeulich@novell.com>
3418
3419         * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
3420         update the respective field on newdecl.
3421
3422 2008-02-27  Revital Eres  <eres@il.ibm.com>
3423
3424         PR rtl-optimization/34999
3425         * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
3426         crossing edges that ends with a call insn.
3427         (fix_up_fall_thru_edges): Handle crossing edges that ends with a
3428         call insn and clear the EDGE_CROSSING flag of the crossing edge
3429         when fixing fallthru edges.
3430
3431 2008-02-27  Richard Guenther  <rguenther@suse.de>
3432
3433         PR middle-end/35390
3434         * fold-const.c (fold_unary): Return the correct argument,
3435         converted to the result type.
3436
3437 2008-02-27  Richard Guenther  <rguenther@suse.de>
3438
3439         PR middle-end/34971
3440         * expr.c (expand_expr_real_1): Assert on rotates that operate
3441         on partial modes.
3442         * fold-const.c (fold_binary): Use the types precision, not the
3443         bitsize of the mode if folding rotate expressions.  Build rotates
3444         only for full modes.
3445
3446 2008-02-27  Jakub Jelinek  <jakub@redhat.com>
3447
3448         * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
3449         and CPP_PRAGMA_EOL.
3450         * c-pragma.c (pragma_ns_name): New typedef.
3451         (registered_pp_pragmas): New variable.
3452         (c_pp_lookup_pragma): New function.
3453         (c_register_pragma_1): If flag_preprocess_only, do nothing
3454         for non-expanded pragmas, for expanded ones push pragma's
3455         namespace and name into registered_pp_pragmas vector.
3456         (c_invoke_pragma_handler): Register OpenMP pragmas even when
3457         flag_preprocess_only, don't register GCC pch_preprocess
3458         pragma if flag_preprocess_only.
3459         * c-opts.c (c_common_init): Call init_pragma even if
3460         flag_preprocess_only.
3461         * c-pragma.c (c_pp_lookup_pragma): New prototype.
3462         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
3463         cpp_register_pragma if flag_preprocess_only.
3464
3465 2008-02-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3466
3467         PR c/28800
3468         * c-parser.c (c_parser_translation_unit): Warn for empty
3469         translation unit, not empty source file.
3470
3471 2008-02-26  Paul Brook  <paul@codesourcery.com>
3472
3473         * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
3474         operand for Thumb-2.
3475         * config/arm/arm.h (reg_class): Add CORE_REGS.
3476         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
3477         (BASE_REG_CLASS): Use CORE_REGS.
3478         (PREFERRED_RELOAD_CLASS): Add STACK_REG.
3479         (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
3480         (REGNO_OK_FOR_INDEX_P): Exclude SP.
3481         (ARM_REG_OK_FOR_INDEX_P): Always define.  Use
3482         ARM_REGNO_OK_FOR_INDEX_P.
3483         (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
3484         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
3485         arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
3486         (ldm/stm peepholes): Ditto.
3487         * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
3488         * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
3489         * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
3490         * config/arm/constraints.md: Enable "k" constraint on ARM.
3491
3492 2008-02-27  Ben Elliston  <bje@au.ibm.com>
3493
3494         * config/rs6000/rs6000.c: Annotate cache line size field in all
3495         instances of struct processor_costs.
3496
3497 2008-02-26  David Edelsohn  <edelsohn@gnu.org>
3498
3499         * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
3500         dse2, gcse, if_conversion, if_after_combine, if_after_reload,
3501         jump_bypass): New counters.
3502         * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
3503         * dce.c (gate_ud_dce): Same.
3504         (gate_fast_dce): Same.
3505         * dse.c (gate_dse1): New function.
3506         (gate_dse2): New function.
3507         (gate_dse): Merge results of new gate functions.
3508         * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
3509         (gate_handle_jump_bypass): Add dbg_cnt.
3510         (gate_handle_gcse): Add dbg_cnt.
3511         * ifcvt.c (gate_handle_if_conversion): Same.
3512         (gate_handle_if_after_combine): Same.
3513         (gate_handle_if_after_reload): Same.
3514         * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
3515
3516 2008-02-26  Edmar Wienskoski  <edmar@freescale.com>
3517
3518         * config/rs6000/rs6000.c (processor_costs): Update e300 cache
3519         line sizes.
3520         * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
3521
3522 2008-02-26  Jason Merrill  <jason@redhat.com>
3523
3524         PR c++/35315
3525         * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE 
3526         alone if it's the naming decl for the type's main variant.
3527
3528 2008-02-26  Tom Tromey  <tromey@redhat.com>
3529
3530         * system.h (USE_MAPPED_LOCATION): Poison.
3531         * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
3532         * tree-cfg.c (make_cond_expr_edges): Remove old location code.
3533         (make_goto_expr_edges): Likewise.
3534         (remove_bb): Likewise.
3535         (execute_warn_function_return): Likewise.
3536         * basic-block.h (struct edge_def) <goto_locus>: Change type to
3537         location_t.
3538         * c-common.c (fname_decl): Remove old location code.
3539         * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
3540         location code.
3541         * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
3542         variant.
3543         (ASM_INPUT_SOURCE_LOCATION): Likewise.
3544         (gen_rtx_ASM_INPUT): Likewise.
3545         (gen_rtx_ASM_INPUT_loc): Likewise.
3546         (get_rtx_asm_OPERANDS): Remove.
3547         * cfglayout.c (insn_locators_alloc): Remove old location code.
3548         (set_curr_insn_source_location): Likewise.
3549         (curr_insn_locator): Likewise.
3550         * print-tree.c (print_node): Remove old location code.
3551         * tree-mudflap.c (mf_varname_tree): Remove old location code.
3552         (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
3553         * cfgexpand.c (expand_gimple_cond_expr): Don't use
3554         location_from_locus.
3555         (construct_exit_block): Remove old location code.
3556         * emit-rtl.c (force_next_line_note): Remove old location code.
3557         * profile.c (branch_prob): Remove old location code.
3558         * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
3559         LOC_LINE): Remove old-location variants.
3560         * langhooks.c (lhd_print_error_function): Remove old location
3561         code.
3562         * configure, config.in: Rebuilt.
3563         * configure.ac (--enable-mapped-location): Remove.
3564         * c-decl.c (c_init_decl_processing): Remove old location code.
3565         (finish_function): Likewise.
3566         * recog.c (decode_asm_operands): Remove old location code.
3567         * c-pch.c (c_common_read_pch): Remove old location code.
3568         * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
3569         variants.
3570         * gimple-low.c (lower_function_body): Remove old location code.
3571         * toplev.c (unknown_location): Remove.
3572         (push_srcloc): Remove old-location variant.
3573         (process_options): Remove old location code.
3574         (lang_dependent_init): Likewise.
3575         * input.h (UNKNOWN_LOCATION): Move definition.
3576         (location_t): Undeprecate.
3577         (source_locus): Remove.
3578         (location_from_locus): Remove.
3579         (struct location_s): Remove.
3580         Remove all old-location code.
3581         (input_line, input_filename): Remove.
3582         * final.c (final_scan_insn): Remove old location code.
3583         * diagnostic.c (diagnostic_build_prefix): Remove
3584         USE_MAPPED_LOCATION test.
3585         * tree.h (gimple_stmt) <locus>: Now a location_t.
3586         (tree_exp) <locus>: Likewise.
3587         (DECL_IS_BUILTIN): Remove old-location variant.
3588         (annotate_with_file_line, annotate_with_locus): Likewise.
3589         (expr_locus, set_expr_locus): Update.
3590         * tree.c (build1_stat): Remove old location code.
3591         (last_annotated_node): Remove.
3592         (annotate_with_file_line): Remove old-location variant.
3593         (annotate_with_locus): Likewise.
3594         (expr_location): Remove old location code.
3595         (set_expr_location): Likewise.
3596         (expr_has_location): Likewise.
3597         (expr_locus): Likewise.
3598         (set_expr_locus): Likewise.
3599         (expr_filename): Don't use location_from_locus.
3600         (expr_lineno): Likewise.
3601         * rtl-error.c (location_for_asm): Remove old location code.
3602         * c-lex.c (cb_line_change): Remove old location code.
3603         (fe_file_change): Likewise.
3604         (cb_def_pragma): Likewise.
3605         (c_lex_with_flags): Likewise.
3606         * gengtype.c (do_typedef): Don't special-case location types.
3607         (define_location_structures): Remove.
3608         (main): Don't call define_location_structures.
3609         * tree-pretty-print.c (dump_implicit_edges): Remove old location
3610         code.
3611
3612 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3613
3614         PR 26264
3615         * builtins.def (BUILT_IN_STDARG_START): Remove.
3616         * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
3617         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
3618         * tree-inline.c (inline_forbidden_p_1): Likewise.
3619         
3620 2008-02-26  Richard Guenther  <rguenther@suse.de>
3621
3622         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
3623         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
3624         (lookup_decl_from_uid): Declare.
3625         (remove_decl_from_map): Likewise.
3626         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
3627         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
3628         (decl_for_uid_map): New global hashtable mapping DECL_UID
3629         to the decl tree.
3630         (init_ttree): Allocate it.
3631         (insert_decl_to_uid_decl_map): New helper function.
3632         (make_node_stat): Insert new decls into the map.
3633         (copy_node_stat): Likewise.
3634         (lookup_decl_from_uid): New function.
3635         (remove_decl_from_map): Likewise.
3636         (print_decl_for_uid_map_statistics): New helper.
3637         (dump_tree_statistics): Call it.
3638
3639         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
3640         (referenced_var_iterator): Adjust.
3641         (FOR_EACH_REFERENCED_VAR): Adjust.
3642         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
3643         (num_referenced_vars): Adjust.
3644         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
3645         (first_referenced_var): Remove.
3646         (end_referenced_vars_p): Likewise.
3647         (next_referenced_var): Likewise.
3648         (referenced_var_iterator_set): New helper function.
3649         * tree-dfa.c (referenced_var_lookup): Adjust.
3650         (referenced_var_check_and_insert): Likewise.
3651         (remove_referenced_var): Likewise.
3652         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
3653         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
3654         (verify_call_clobbering): Likewise.
3655         (verify_memory_partitions): Likewise.
3656         (init_tree_ssa): Allocate bitmap instead of hashtable for
3657         referenced_vars.
3658         (delete_tree_ssa): Adjust.
3659         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
3660         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
3661         (compute_tag_properties): Likewise.
3662         (set_initial_properties): Likewise.
3663         (find_partition_for): Likewise.
3664         (update_reference_counts): Likewise.
3665         (dump_may_aliases_for): Likewise.
3666         * tree-ssa-operands.c (add_virtual_operand): Likewise.
3667         (add_call_clobber_ops): Likewise.
3668         (add_call_read_ops): Likewise.
3669         (get_asm_expr_operands): Likewise.
3670         * tree-into-ssa.c (dump_decl_set): Likewise.
3671         (update_ssa): Likewise.
3672         * tree-sra.c (scan_function): Likewise.
3673         (decide_instantiations): Likewise.
3674         (scalarize_parms): Likewise.
3675         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
3676         (dsa_named_for): Likewise.
3677         * tree-ssa-structalias.c (update_alias_info): Likewise.
3678         (merge_smts_into): Likewise.
3679
3680 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3681
3682         PR 34351
3683         * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
3684         * c-opts.c (c_common_handle_option): Wall enables
3685         Wvolatile-register-var.
3686         * common.opt: Move Wvolatile-register-var to...
3687         * c.opt: ...here.
3688         
3689 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3690
3691         * common.opt (Wlarger-than=): New.
3692         * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
3693         -Wlarger-than=.
3694         * opts.c (common_handle_option): Handle -Wlarger-than=.
3695         * optc-gen.awk: Likewise.
3696         * opth-gen.awk: Likewise.
3697         * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
3698         * tree-optimize.c (tree_rest_of_compilation): Likewise.
3699         
3700 2008-02-26  Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3701
3702         * c-common.c (match_case_to_enum_1): Add appropriate
3703         OPT_W* parameter to warning.
3704         (c_do_switch_warnings): Likewise.
3705         * c-typeck.c (warning_init): Add one more parameter following
3706         'warning' function.
3707         (push_init_level): Update call to warning_init.
3708         (pop_init_level): Likewise.
3709         (add_pending_init): Likewise.
3710         (output_init_element: Likewise.
3711
3712 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3713
3714         PR 28322
3715         * toplev.c (toplev_main): If there are warnings or error, print
3716         errors for ignored options.
3717         * opts.c (ignored_options): New static variable.
3718         (postpone_unknown_option_error): New.
3719         (print_ignored_options): New.
3720         (handle_option): Postpone errors for unknown -Wno-* options.
3721         * opts.h (print_ignored_options): Declare.
3722         
3723 2008-02-25  Richard Sandiford  <rsandifo@nildram.co.uk>
3724
3725         * config/mips/mips.md (loadgp_blockage, blockage): Change type
3726         to "ghost".
3727
3728 2008-02-25  Richard Guenther  <rguenther@suse.de>
3729
3730         Revert:
3731         2008-02-25  Richard Guenther  <rguenther@suse.de>
3732
3733         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
3734         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
3735         (lookup_decl_from_uid): Declare.
3736         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
3737         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
3738         (decl_for_uid_map): New global hashtable mapping DECL_UID
3739         to the decl tree.
3740         (init_ttree): Allocate it.
3741         (insert_decl_to_uid_decl_map): New helper function.
3742         (make_node_stat): Insert new decls into the map.
3743         (copy_node_stat): Likewise.
3744         (lookup_decl_from_uid): New function.
3745         (print_decl_for_uid_map_statistics): New helper.
3746         (dump_tree_statistics): Call it.
3747
3748         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
3749         (referenced_var_iterator): Adjust.
3750         (FOR_EACH_REFERENCED_VAR): Adjust.
3751         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
3752         (num_referenced_vars): Adjust.
3753         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
3754         (first_referenced_var): Remove.
3755         (end_referenced_vars_p): Likewise.
3756         (next_referenced_var): Likewise.
3757         (referenced_var_iterator_set): New helper function.
3758         * tree-dfa.c (referenced_var_lookup): Adjust.
3759         (referenced_var_check_and_insert): Likewise.
3760         (remove_referenced_var): Likewise.
3761         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
3762         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
3763         (verify_call_clobbering): Likewise.
3764         (verify_memory_partitions): Likewise.
3765         (init_tree_ssa): Allocate bitmap instead of hashtable for
3766         referenced_vars.
3767         (delete_tree_ssa): Adjust.
3768         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
3769         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
3770         (compute_tag_properties): Likewise.
3771         (set_initial_properties): Likewise.
3772         (find_partition_for): Likewise.
3773         (update_reference_counts): Likewise.
3774         (dump_may_aliases_for): Likewise.
3775         * tree-ssa-operands.c (add_virtual_operand): Likewise.
3776         (add_call_clobber_ops): Likewise.
3777         (add_call_read_ops): Likewise.
3778         (get_asm_expr_operands): Likewise.
3779         * tree-into-ssa.c (dump_decl_set): Likewise.
3780         (update_ssa): Likewise.
3781         * tree-sra.c (scan_function): Likewise.
3782         (decide_instantiations): Likewise.
3783         (scalarize_parms): Likewise.
3784         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
3785         (dsa_named_for): Likewise.
3786         * tree-ssa-structalias.c (update_alias_info): Likewise.
3787         (merge_smts_into): Likewise.
3788
3789 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
3790
3791         PR fortran/29549
3792         * doc/invoke.texi (-fcx-limited-range): Document new option.
3793         * toplev.c (process_options): Handle -fcx-fortran-rules.
3794         * common.opt: Add documentation for -fcx-fortran-rules.
3795
3796 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
3797
3798         PR c/35162
3799         * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
3800         actual behaviour and C99.
3801         
3802 2008-02-26  Ben Elliston  <bje@au.ibm.com>
3803
3804         * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
3805         (ASM_CPU_POWER6_SPEC): Likewise.
3806         (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
3807         Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
3808         (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
3809
3810 2008-02-25  Richard Guenther  <rguenther@suse.de>
3811
3812         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
3813         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
3814         (lookup_decl_from_uid): Declare.
3815         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
3816         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
3817         (decl_for_uid_map): New global hashtable mapping DECL_UID
3818         to the decl tree.
3819         (init_ttree): Allocate it.
3820         (insert_decl_to_uid_decl_map): New helper function.
3821         (make_node_stat): Insert new decls into the map.
3822         (copy_node_stat): Likewise.
3823         (lookup_decl_from_uid): New function.
3824         (print_decl_for_uid_map_statistics): New helper.
3825         (dump_tree_statistics): Call it.
3826
3827         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
3828         (referenced_var_iterator): Adjust.
3829         (FOR_EACH_REFERENCED_VAR): Adjust.
3830         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
3831         (num_referenced_vars): Adjust.
3832         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
3833         (first_referenced_var): Remove.
3834         (end_referenced_vars_p): Likewise.
3835         (next_referenced_var): Likewise.
3836         (referenced_var_iterator_set): New helper function.
3837         * tree-dfa.c (referenced_var_lookup): Adjust.
3838         (referenced_var_check_and_insert): Likewise.
3839         (remove_referenced_var): Likewise.
3840         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
3841         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
3842         (verify_call_clobbering): Likewise.
3843         (verify_memory_partitions): Likewise.
3844         (init_tree_ssa): Allocate bitmap instead of hashtable for
3845         referenced_vars.
3846         (delete_tree_ssa): Adjust.
3847         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
3848         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
3849         (compute_tag_properties): Likewise.
3850         (set_initial_properties): Likewise.
3851         (find_partition_for): Likewise.
3852         (update_reference_counts): Likewise.
3853         (dump_may_aliases_for): Likewise.
3854         * tree-ssa-operands.c (add_virtual_operand): Likewise.
3855         (add_call_clobber_ops): Likewise.
3856         (add_call_read_ops): Likewise.
3857         (get_asm_expr_operands): Likewise.
3858         * tree-into-ssa.c (dump_decl_set): Likewise.
3859         (update_ssa): Likewise.
3860         * tree-sra.c (scan_function): Likewise.
3861         (decide_instantiations): Likewise.
3862         (scalarize_parms): Likewise.
3863         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
3864         (dsa_named_for): Likewise.
3865         * tree-ssa-structalias.c (update_alias_info): Likewise.
3866         (merge_smts_into): Likewise.
3867
3868 2008-02-25  Andreas Krebbel  <krebbel1@de.ibm.com>
3869
3870         PR target/35258
3871         * cse.c (cse_insn): Avoid creation of overlapping MEMs.
3872         * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
3873         * alias.h (nonoverlapping_memrefs_p): Likewise.
3874
3875 2008-02-25  Jan Beulich  <jbeulich@novell.com>
3876
3877         * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
3878         * config/i386/netware-libgcc.exp: Add __bswap?i2,
3879         __emultls_get_address, __emultls_register_common,
3880         __floatundi?f, and _Unwind_GetIPInfo.
3881         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
3882         Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
3883         (gen_regparm_prefix): Likewise.
3884         (i386_nlm_encode_section_info): Sync with
3885         config/i386/winnt.c:i386_pe_encode_section_info().
3886         (i386_nlm_maybe_mangle_decl_assembler_name): New.
3887         i386_nlm_mangle_decl_assembler_name): New.
3888         (netware_override_options): New.
3889         * config/i386/netware.h (netware_override_options): Declare.
3890         (OVERRIDE_OPTIONS): Re-define to netware_override_options.
3891         (i386_nlm_mangle_decl_assembler_name): Declare.
3892         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
3893
3894 2008-02-25  Ben Elliston  <bje@au.ibm.com>
3895
3896         PR other/32948
3897         * c-decl.c (grokdeclarator): Remove unused local variables
3898         `typedef_type' and `type_as_written'.
3899         * bb-reorder.c
3900         (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
3901         unused local variable `has_hot_blocks'.
3902         (fix_crossing_conditional_branches): Remove unused local variable
3903         `prev_bb'.
3904         
3905 2008-02-25  Uros Bizjak  <ubizjak@gmail.com>
3906
3907         PR middle-end/19984
3908         * builtins.def (BUILT_IN_NAN): Define as c99 builtin
3909         using DEF_C99_BUILTIN.
3910         (BUILT_IN_NANF): Ditto.
3911         (BUILT_IN_NANL): Ditto.
3912
3913 2008-02-25  Ayal Zaks  <zaks@il.ibm.com>
3914             Revital Eres  <eres@il.ibm.com>
3915
3916         * modulo-sched.c (calculate_must_precede_follow): Address TODO
3917         regarding the order of two dependent insns in the same row.
3918
3919 2008-02-25  Eric Botcazou  <ebotcazou@adacore.com>
3920
3921         * stor-layout.c (layout_decl): Do not bump the alignment of a
3922         bit-field to more than byte alignment if it is packed.
3923
3924 2008-02-24  David Edelsohn  <edelsohn@gnu.org>
3925
3926         * config/rs6000/rs6000.c (processor_costs): Add cache costs for
3927         e300c2 and e300c3.
3928
3929 2008-02-24  Diego Novillo  <dnovillo@google.com>
3930
3931         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
3932
3933         PR 33738
3934         * tree-vrp.c (vrp_evaluate_conditional): With
3935         -Wtype-limits, emit a warning when comparing against a
3936         constant outside the natural range of OP0's type.
3937         * c.opt (Wtype-limits): Move ...
3938         * common.opt (Wtype-limits): ... here.
3939
3940 2008-02-24  Edmar Wienskoski  <edmar@freescale.com>
3941
3942         * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
3943         * config/rs6000/e300c2c3.md: New file.
3944         * config/rs6000/rs6000.c (processor_costs): Add new costs for
3945         e300c2 and e300c3.
3946         (rs6000_override_options): Add e300c2 and e300c3 cases to
3947         processor_target_table. Do not allow usage of Altivec or Spe
3948         with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
3949         (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
3950         * config/rs6000/rs6000.h (processor_type): Add
3951         PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
3952         (ASM_CPU_SPEC): Add e300c2 and e300c3.
3953         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
3954         and ppce300c3. Include e300c2c3.md.
3955
3956 2008-02-23  David Edelsohn  <edelsohn@gnu.org>
3957
3958         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
3959         instead of TARGET_STRICT_ALIGN.
3960
3961 2008-02-23  Joseph Myers  <joseph@codesourcery.com>
3962
3963         * explow.c (memory_address): Assert that the generated address is
3964         valid.
3965
3966 2008-02-23  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
3967
3968         PR target/25477
3969         * config/darwin-protos.h: Add darwin_patch_builtins prototype.
3970         * config/darwin-ppc-ldouble-patch.def: New file.
3971         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
3972         * config/rs6000/rs6000.c (rs6000_init_builtins): Call
3973         SUBTARGET_INIT_BUILTINS if defined.
3974         * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
3975         New functions.
3976
3977 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3978
3979         PR rtl-opt/33512
3980         * simplify-rtx.c (simplify_binary_operation_1): Add simplification
3981         of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
3982
3983 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3984
3985         PR pch/35027
3986         * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
3987         file" warning condtional on -Winvalid-PCH.
3988
3989 2008-02-23  Daniel Jacobowitz  <dan@codesourcery.com>
3990
3991         * expmed.c (extract_bit_field): Always use adjust_address for MEM.
3992
3993 2008-02-23  Uros Bizjak  <ubizjak@gmail.com>
3994
3995         PR target/22076
3996         PR target/34256 
3997         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
3998         prevent reload from using MMX registers.
3999         (*mov<mode>_internal): Ditto.
4000         (*movv2sf_internal_rex64): Ditto.
4001         (*movv2sf_internal): Ditto.
4002
4003 2008-02-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4004
4005         PR documentation/31569
4006         * doc/install.texi2html: Use makeinfo --no-number-sections.
4007
4008 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
4009
4010         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
4011         ensure that we can address an entire entity > 8 bytes.  Don't
4012         generate reg+reg addressing for such data.
4013
4014 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
4015
4016         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
4017         strings when optimizing for size, unless the target cares about
4018         alignment.
4019
4020 2008-02-22  Tom Tromey  <tromey@redhat.com>
4021
4022         * regclass.c (current_pass): Remove declaration.
4023
4024 2008-02-22  Anatoly Sokolov <aesok@post.ru>
4025
4026         * config/avr/libgcc.S (__RAMPZ__): Define.
4027         (__do_copy_data): Add for devices with 128KB code memory.
4028
4029 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
4030
4031         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
4032         Use spe_abi.
4033         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
4034
4035 2008-02-22  Hans-Peter Nilsson  <hp@axis.com>
4036
4037         * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
4038         GENNONACR_REGS.
4039
4040 2008-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4041
4042         PR c/19999
4043         * c-typeck.c (build_binary_op): Warn about floating point
4044         comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
4045
4046 2008-02-21  Janis Johnson  <janis187@us.ibm.com>
4047
4048         PR target/34526
4049         * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
4050         (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
4051         add vrsave.
4052         (rs6000_override_options): Set altivec_abi as default, not override,
4053         for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
4054         TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
4055         is used; use new member spe_abi.
4056         (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
4057         spe_abi and altivec_abi.
4058
4059 2008-02-22  Tomas Bily  <tbily@suse.cz>
4060
4061         * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
4062
4063 2008-02-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4064
4065         PR bootstrap/35273
4066         * config.build (build_file_translate): Set to `CMD //c' only if
4067         it works.
4068         * Makefile.in (build_file_translate): Improve comment.
4069
4070 2008-02-21  Jan Hubicka  <jh@suse.cz>
4071
4072         * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
4073         PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
4074         PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
4075
4076 2008-02-21  Michael Matz  <matz@suse.de>
4077
4078         PR target/35264
4079         * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
4080
4081 2008-02-21  Uros Bizjak  <ubizjak@gmail.com>
4082
4083         * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
4084         movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
4085         as insn constraint.
4086         * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
4087         from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
4088         SSE_VEC_FLOAT_MODE_P as insn constraint.
4089         (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
4090         (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
4091         sse4a_movntdf using MODEF mode iterator.
4092         (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
4093         sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
4094         (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
4095         (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
4096         (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
4097         (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
4098         (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
4099
4100 2008-02-21  Richard Guenther  <rguenther@suse.de>
4101
4102         * tree.def (PAREN_EXPR): New tree code.
4103         * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
4104         and PAREN_EXPR.
4105         * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
4106         * expr.c (expand_expr_real_1): Likewise.
4107         * tree-inline.c (estimate_num_insns_1): Likewise.
4108         * tree-complex.c (expand_complex_move): Likewise.
4109         * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
4110         as plain x.
4111
4112 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
4113
4114         PR target/35225
4115         * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
4116
4117 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
4118
4119         PR target/35190
4120         * config/sh/sh.md (jump_compact): Disable for crossing jumps.
4121
4122         * config/sh/sh.c (find_barrier): Don't go past
4123         NOTE_INSN_SWITCH_TEXT_SECTIONS note.
4124
4125 2008-02-20  DJ Delorie  <dj@redhat.com>
4126
4127         * config/h8300/h8300.md (insv): Force source operand to be a register.
4128
4129         * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
4130         as a jump, not as a plain insn.
4131         
4132 2008-02-20  Seongbae Park <seongbae.park@gmail.com>
4133
4134         * doc/invoke.texi (Warning Options): Add new option
4135         -Wframe-larger-than=.
4136         (-Wframe-larger-than): Document.
4137
4138         * flags.h (warn_frame_larger_than, frame_larger_than_size):
4139         Add declarations for new option variables.
4140
4141         * final.c (final_start_function): Check the frame size
4142         before emission and issue a Wframe-larger-than warning.
4143
4144         * opts.c (warn_frame_larger_than, frame_larger_than_size):
4145         Add definitions for new option variables.
4146         (common_handle_option): Handle new option OPT_Wframe_larger_than_.
4147
4148         * common.opt (Wframe-larger-than=): New option.
4149
4150 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
4151
4152         * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
4153         (<sse>_div<mode>3): Ditto.
4154         (<sse>_vmdiv<mode>3): Ditto.
4155         (<sse>_vmsqrt<mode>2): Ditto.
4156         (*smax<mode>3): Ditto.
4157         (sse5_frcz<mode>2): Ditto.
4158         (sse5_vmfrcz<mode>2): Ditto.  Use TARGET_SSE5 instead of TARGET_ROUND
4159         as insn constraint.
4160
4161 2008-02-20  Richard Guenther  <rguenther@suse.de>
4162
4163         PR middle-end/35265
4164         * builtins.c (validate_arg): If we want an INTEGER_TYPE,
4165         be happy with INTEGRAL_TYPE_P.
4166
4167 2008-02-20  Richard Guenther  <rguenther@suse.de>
4168
4169         * fold-const.c (split_tree): Associate floatig-point expressions
4170         if flag_associative_math is set.
4171
4172 2008-02-20  Richard Guenther  <rguenther@suse.de>
4173
4174         * tree.h (fold_real_zero_addition_p): Declare.
4175         * fold-const.c (fold_real_zero_addition_p): Export.
4176         * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
4177         floating-point operations with zero and one.
4178
4179 2008-02-20  Paolo Bonzini  <bonzini@gnu.org>
4180
4181         * doc/install.texi: Correct references to CFLAGS, replacing them
4182         with BOOT_CFLAGS.  Document flags used during bootstrap for
4183         target libraries.
4184                                 
4185 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
4186
4187         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
4188         * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
4189         and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
4190         insn constraint.
4191         (smin<mode>3): Ditto from similar patterns.
4192         (smax<mode>3): Ditto.
4193         (*ieee_smin<mode>3): Ditto.
4194         (*ieee_smax<mode>3): Ditto.
4195         * config/i386/sse.md (sse): New mode attribute.
4196         (mov<mode>): Macroize expander from movv4sf and movv2df using
4197         SSEMODEF2P mode iterator.
4198         (<sse>_movnt<mode>): Ditto from similar patterns. Use
4199         SSE_VEC_FLOAT_MODE_P as insn constraint.
4200         (storent<mode>): Ditto.
4201         (storent<mode>): Macroize expander from storentsf and storentdf using
4202         MODEF mode iterator.
4203         (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
4204         mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
4205         (abs<mode>2): Ditto from similar patterns.
4206         (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
4207         (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
4208         (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
4209         (<sse>_vmsqrt<mode>2): Ditto.
4210         (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
4211         (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
4212         (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
4213         (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
4214         (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
4215         sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
4216         mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
4217         insn constraint.
4218         (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
4219         iterator and SSE_FLOAT_MODE_P as insn constraint.
4220         (<sse>_ucomi): Ditto from similar patterns.
4221         (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
4222         sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
4223         SSE_VEC_FLOAT_MODE_P as insn constraint.
4224         (vcond<mode>): Ditto from similar patterns.
4225         (and<mode>3, *and<mode>3): Ditto.
4226         (<sse>_nand<mode>3): Ditto.
4227         (ior<mode>3, *ior<mode>3): Ditto.
4228         (xor<mode>3, *xor<mode>3): Ditto.
4229         (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
4230         iterator and SSE_FLOAT_MODE_P as insn constraint.
4231         (*nand<mode>3): Ditto from similar patterns.
4232         (*ior<mode>3): Ditto.
4233         (*xor<mode>3): Ditto.
4234
4235 2008-02-20  Ira Rosen  <irar@il.ibm.com>
4236
4237         * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
4238         vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
4239         vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
4240
4241 2008-02-19  Jan Hubicka  <jh@suse.cz>
4242
4243         * predict.c (tree_bb_level_predictions): Remove variable next
4244         mistakely introduced by previous commit.
4245
4246 2008-02-19  Jan Hubicka  <jh@suse.cz>
4247
4248         * predict.c (predict_paths_leading_to): Rewrite.
4249         (predict_paths_for_bb): New.
4250         (tree_bb_level_predictions): Update call of predict_paths_leading_to.
4251
4252 2008-02-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4253
4254         PR bootstrap/35218
4255         * Makefile.in (build_file_translate): New.
4256         (gcc-vers.texi): Use it for translating $(abs_srcdir).
4257         * config.build (build_file_translate): Set to `CMD //c' on MinGW.
4258         * configure.ac (build_file_translate): Substitute it.
4259         * configure: Regenerate.
4260
4261 2008-02-19  Jan Hubicka  <jh@suse.cz>
4262
4263         PR rtl-optimization/34408
4264         * see.c (see_def_extension_not_merged): Copy subreg so we don't have
4265         invalid sharing.
4266
4267 2008-02-19  Jan Hubicka  <jh@suse.cz>
4268
4269         PR middle-end/28779
4270         * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
4271         call_expr.
4272
4273 2008-02-19  H.J. Lu  <hongjiu.lu@intel.com>
4274
4275         PR Ada/35186
4276         * config/i386/i386-modes.def: Revert the last DI alignment
4277         change until Ada people can look into it.
4278
4279 2008-02-19  Nick Clifton  <nickc@redhat.com>
4280
4281         * opts.c (print_specific_help): Fix typo in --help text.
4282
4283 2008-02-19  Jakub Jelinek  <jakub@redhat.com>
4284
4285         PR target/35239
4286         * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
4287         32-bit inline asm without asm alternatives for host GCC < 3.0.
4288
4289 2008-02-19  Richard Guenther  <rguenther@suse.de>
4290
4291         PR tree-optimization/34989
4292         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
4293         Allow propagation to INDIRECT_REF if we can simplify only.
4294
4295 2008-02-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4296
4297         * c-common.c (warn_for_collisions_1): Use appropriate option when
4298         warning.
4299
4300 2008-02-19  Nick Clifton  <nickc@redhat.com>
4301
4302         PR other/31349
4303         * opts.c (undocumented_msg): Leave blank unless checking is enabled.
4304         (handle_options): Fix indentation.
4305         (print_filtered_help): If no language-specific options were
4306         displayed tell the user how to list all the options supported by
4307         the language's front-end.
4308         (print_specific_help): Fix indentation and remove duplicate line.
4309         (common_handle_option): Handle the -v option.
4310         For --help enable the display of undocumented options if the -v
4311         switch has been included on the command line.
4312         For --help= check for overlaps in the arguments between the option
4313         classes and the language names and issue a warning when they
4314         cannot be disambiguated.
4315         * c.opt (v): Pass on to the common option handler.
4316
4317 2008-02-19  Revital Eres  <eres@il.ibm.com> 
4318
4319         * modulo-sched.c (sms_schedule): Change dump message when
4320         create_ddg function fails.
4321         (try_scheduling_node_in_cycle): Rename row to cycle.
4322         (print_partial_schedule): Rename CYCLE to ROW.
4323
4324 2008-02-19  Christian Bruel  <christian.bruel@st.com>
4325             Zdenek Dvorak  <ook@ucw.cz>
4326
4327         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
4328
4329 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
4330
4331         PR target/33555
4332         * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
4333         (*x86_movdicc_0_m1_se): Ditto.
4334
4335 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
4336
4337         * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
4338         (CMPtype): Define as __gcc_CMPtype.
4339         * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
4340         (CMPtype): Define as __gcc_CMPtype.
4341
4342 2008-02-19  Hans-Peter Nilsson  <hp@axis.com>
4343
4344         Support valgrind 3.3 for --enable-checking=valgrind.
4345         * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
4346         here.
4347         [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
4348         [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
4349         [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
4350         * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
4351         Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
4352         VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
4353         VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
4354         respectively.
4355         * ggc-zone.c: Similar.
4356         * ggc-page.c: Similar.
4357
4358 2008-02-19  Paul Brook  <paul@codesourcery.com>
4359
4360         PR target/35071
4361         * config/arm/ieee754-df.S: Fix do_it typo.
4362         * config/arm/ieee754-sf.S: Fix do_it typo.
4363
4364 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
4365
4366         PR target/35189
4367         * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
4368         (OPTION_MASK_ISA_3DNOW_SET): Likewise.
4369         (OPTION_MASK_ISA_SSE_SET): Likewise.
4370         (OPTION_MASK_ISA_SSE2_SET): Likewise.
4371         (OPTION_MASK_ISA_SSE3_SET): Likewise.
4372         (OPTION_MASK_ISA_SSSE3_SET): Likewise.
4373         (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
4374         (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
4375         (OPTION_MASK_ISA_SSE4_SET): Likewise.
4376         (OPTION_MASK_ISA_SSE4A_SET): Likewise.
4377         (OPTION_MASK_ISA_SSE5_SET): Likewise.
4378         (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
4379         (OPTION_MASK_ISA_MMX_UNSET): Updated.
4380         (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
4381         (OPTION_MASK_ISA_SSE_UNSET): Likewise.
4382         (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
4383         (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
4384         (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
4385         (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
4386         (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
4387         (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
4388         (OPTION_MASK_ISA_SSE4): Removed.
4389         (ix86_handle_option): Turn on bits in ix86_isa_flags and
4390         ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
4391         (override_options): Don't turn on implied SSE/MMX bits in
4392         ix86_isa_flags.
4393
4394 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
4395
4396         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
4397         32bit host.
4398
4399 2008-02-18  Joey Ye  <joey.ye@intel.com>
4400
4401         PR middle-end/34921
4402         * tree-nested.c (insert_field_into_struct): Set type alignment
4403         to field alignment if the former is less than the latter.
4404
4405 2008-02-18  Jakub Jelinek  <jakub@redhat.com>
4406
4407         * BASE-VER: Set to 4.4.0.
4408
4409 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4410
4411         * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
4412         * doc/cfg.texi: Likewise.
4413         * doc/extend.texi: Likewise.
4414         * doc/gty.texi: Likewise.
4415         * doc/invoke.texi: Likewise.
4416         * doc/loop.texi: Likewise.
4417         * doc/md.texi: Likewise.
4418         * doc/passes.texi: Likewise.
4419         * doc/rtl.texi: Likewise.
4420         * doc/sourcebuild.texi: Likewise.
4421         * doc/tm.texi: Likewise.
4422         * doc/tree-ssa.texi: Likewise.
4423
4424 2008-02-17  Richard Guenther  <rguenther@suse.de>
4425
4426         PR middle-end/35227
4427         * tree-complex.c (init_parameter_lattice_values): Handle parameters
4428         without default definition.
4429
4430 2008-02-17  Richard Guenther  <rguenther@suse.de>
4431
4432         PR tree-optimization/35231
4433         * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
4434         if A | B != 1.
4435
4436 2008-02-17  Uros Bizjak  <ubizjak@gmail.com>
4437
4438         Revert:
4439         2008-02-15  Uros Bizjak  <ubizjak@gmail.com>    
4440         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
4441         libgcc_cmp_return mode.
4442
4443 2008-02-16  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4444
4445         PR c/28368
4446         * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
4447
4448 2008-02-16  Ralf Corsepius  <ralf.corsepius@rtems.org>
4449
4450         * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
4451         multilibs.
4452
4453 2008-02-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4454
4455         * doc/c-tree.texi: Use `@.' where appropriate.
4456         * doc/extend.texi: Likewise.
4457         * doc/install.texi: Likewise.
4458         * doc/invoke.texi: Likewise.
4459         * doc/loop.texi: Likewise.
4460         * doc/makefile.texi: Likewise.
4461         * doc/md.texi: Likewise.
4462         * doc/passes.texi: Likewise.
4463         * doc/standards.texi: Likewise.
4464         * doc/tm.texi: Likewise.
4465
4466 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
4467
4468         PR middle-end/35196
4469         * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
4470         in entry_bb.
4471         (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
4472         rather than in entry_bb.
4473
4474 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
4475
4476         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
4477         libgcc_cmp_return mode.
4478
4479 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
4480
4481         PR middle-end/35130
4482         * tree-nested.c (convert_call_expr): Put FRAME.* vars into
4483         OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
4484
4485 2008-02-15  Richard Guenther  <rguenther@suse.de>
4486             Zdenek Dvorak  <ook@ucw.cz>
4487
4488         PR tree-optimization/35164
4489         * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
4490         * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
4491         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
4492         Only propagate addresses which do not have abnormal SSA_NAMEs
4493         in their operands.
4494
4495 2008-02-15  Joseph Myers  <joseph@codesourcery.com>
4496
4497         PR target/35088
4498         * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
4499
4500 2008-02-15  Jan Hubicka  <jh@suse.cz>
4501
4502         PR middle-end/35149
4503         * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
4504
4505 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
4506
4507         PR middle-end/34621
4508         * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
4509         when calculating alignment_pad.
4510
4511 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
4512
4513         * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
4514         (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
4515         * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
4516         and STACK_BOUNDARY define.
4517
4518 2008-02-14  Danny Smith  <dannysmith@users.sourceforge.net>
4519
4520         PR preprocessor/35061
4521         * c-pragma.c (handle_pragma_pop_macro): Check that
4522         pushed_macro_table has been allocated.
4523
4524 2008-02-14  Eric Botcazou  <ebotcazou@adacore.com>
4525
4526         PR middle-end/35136
4527         * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
4528         (force_gimple_operand): Likewise.
4529         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
4530         for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
4531         Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
4532         (find_interesting_uses_address): Check addressability and alignment
4533         of the base expression only after substituting bases of IVs into it.
4534
4535 2008-02-14  Michael Matz  <matz@suse.de>
4536
4537         PR target/34930
4538         * function.c (instantiate_virtual_regs_in_insn): Reload address
4539         before falling back to reloading the whole operand.
4540
4541 2008-02-14  Andreas Krebbel  <krebbel1@de.ibm.com>
4542
4543         * config/s390/s390.c (s390_mainpool_start): Emit the pool
4544         before the first section switch note.
4545
4546 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4547
4548         * doc/bugreport.texi: Update copyright years.
4549         * doc/c-tree.texi: Likewise.
4550         * doc/cfg.texi: Likewise.
4551         * doc/cpp.texi: Likewise.
4552         * doc/cppinternals.texi: Likewise.
4553         * doc/fragments.texi: Likewise.
4554         * doc/frontends.texi: Likewise.
4555         * doc/gcc.texi: Likewise.
4556         * doc/gty.texi: Likewise.
4557         * doc/hostconfig.texi: Likewise.
4558         * doc/implement-c.texi: Likewise.
4559         * doc/libgcc.texi: Likewise.
4560         * doc/loop.texi: Likewise.
4561         * doc/makefile.texi: Likewise.
4562         * doc/options.texi: Likewise.
4563         * doc/passes.texi: Likewise.
4564         * doc/rtl.texi: Likewise.
4565         * doc/sourcebuild.texi: Likewise.
4566         * doc/standards.texi: Likewise.
4567         * doc/tree-ssa.texi: Likewise.
4568         * doc/trouble.texi: Likewise.
4569
4570         * doc/extend.texi: Use @: or add comma where appropriate.
4571         * doc/invoke.texi: Likewise.
4572         * doc/tm.texi: Likewise.
4573
4574 2008-02-14  Alan Modra  <amodra@bigpond.net.au>
4575
4576         PR target/34393
4577         * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
4578         to a reg.
4579
4580 2008-02-14  Jesper Nilsson  <jesper.nilsson@axis.com>
4581
4582         * doc/md.texi (clz, ctz): Add reference.
4583         * doc/rtl.texi (clz, ctz): Likewise.
4584
4585 2008-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4586
4587         PR other/35148
4588         * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
4589         srcdir.
4590
4591 2008-02-13  Andreas Krebbel  <krebbel1@de.ibm.com>
4592
4593         * config/s390/s390.c (struct constant_pool): New field
4594         emit_pool_after added.
4595         (s390_mainpool_start): Set the emit_pool_after flag according
4596         to the section switch notes.
4597         (s390_mainpool_finish): Consider emit_pool_after when emitting
4598         the literal pool at the end of the function.
4599         (s390_chunkify_start): Force literal pool splits at section
4600         switch notes.
4601
4602 2008-02-13  Michael Matz  <matz@suse.de>
4603
4604         PR debug/35065
4605         * var-tracking.c (clobber_variable_part): Correctly traverse the
4606         list.
4607
4608 2008-02-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4609
4610         PR 29673
4611         * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
4612         Add -fdump-ipa-inline.
4613         * tree-dump.c (dump_files): Remove tree-inlined dump.
4614         * tree-pass.h (tree_dump_index): Remove TDI_inlined.
4615         
4616 2008-02-12  Richard Guenther  <rguenther@suse.de>
4617
4618         PR tree-optimization/35171
4619         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
4620         default defs.
4621
4622 2008-02-12  Richard Guenther  <rguenther@suse.de>
4623
4624         PR middle-end/35163
4625         * fold-const.c (fold_widened_comparison): Use get_unwidened in
4626         value-preserving mode.  Disallow final truncation.
4627
4628 2008-02-12  Eric Botcazou  <ebotcazou@adacore.com>
4629
4630         PR middle-end/35136
4631         * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
4632         code from here to...
4633         (force_gimple_operand): ...here.
4634
4635 2008-02-12  Jakub Jelinek  <jakub@redhat.com>
4636
4637         PR c++/35144
4638         * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
4639         non-compatible pointers.
4640         (generate_element_copy): If SRC and DST are RECORD_TYPEs with
4641         different FIELD_DECLs, try harder by comparing field offsets, sizes
4642         and types.
4643
4644         PR inline-asm/35160
4645         * function.c (match_asm_constraints_1): Don't replace the same input
4646         multiple times.
4647
4648 2008-02-12  Anatoly Sokolov <aesok@post.ru>
4649
4650         * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
4651         * config/avr/avr.c (expand_prologue): Save RAMPZ register.
4652         (expand_epilogue): Restore RAMPZ register.
4653         * config/avr/avr.md (RAMPZ_ADDR): New constant.
4654
4655 2008-02-11  Kai Tietz  <kai.tietz@onevision.com>
4656
4657         * config/i386/cygwin.asm: (__alloca): Correct calling
4658         convention and alignment.
4659         (__chkstk): Force 8 byte stack alignment.
4660
4661 2008-02-11  Uros Bizjak  <ubizjak@gmail.com>
4662             Richard Guenther  <rguenther@suse.de>
4663
4664         PR tree-optimization/33992
4665         * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
4666         the zero we compare against.
4667
4668 2008-02-10  Danny Smith  <dannysmith@users.sourceforge.net>
4669
4670         PR libfortran/35063
4671         * gthr-win32.h (__gthread_mutex_destroy_function): New function
4672         to CloseHandle after unlocking to prevent accumulation of handle
4673         count.
4674
4675 2008-02-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4676
4677         PR middle_end/34150
4678         * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
4679         pic_label_operand source.  Similarly, add a REG_LABEL_OPERAND note
4680         and update LABEL_NUSES during and after reload.
4681
4682 2008-02-08  Steven Bosscher  <stevenb.gcc@gmail.com>
4683
4684         PR middle-end/34627
4685         * combine.c (simplify_if_then_else): Make sure the comparison is
4686         against const0_rtx when simplifying to (abs x) or (neg (abs X)).
4687
4688 2008-02-08  Richard Sandiford  <rsandifo@nildram.co.uk>
4689
4690         PR bootstrap/35051
4691         * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
4692         (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
4693         * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
4694         (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
4695         * tree.h (get_type_static_bounds): Likewise.
4696
4697 2008-02-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4698
4699         * doc/invoke.texi (Option Summary, C++ Dialect Options)
4700         (Objective-C and Objective-C++ Dialect Options, Warning Options):
4701         Make -Wfoo language annotations match what the compiler outputs.
4702
4703 2008-02-08  Sa Liu  <saliu@de.ibm.com>
4704
4705         * config/spu/spu-builtins.def: Fixed wrong parameter type in spu 
4706         intrinsics spu_convts, spu_convtu, spu_convtf.
4707         * testsuite/gcc.target/spu/intrinsics-3.c: New. Test error messages.
4708
4709 2008-02-08  Hans-Peter Nilsson  <hp@axis.com>
4710
4711         * doc/extend.texi (Function Attributes) <noinline>: Mention
4712         asm ("") as method to keep calls.
4713
4714 2008-02-07  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4715
4716         PR other/32754
4717         * doc/options.texi (Options): Replace references to opts.sh with
4718         optc-gen.awk.
4719         * opts-common.c: Likewise.
4720         * optc-gen.awk: Likewise.
4721         
4722 2008-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
4723
4724         * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
4725
4726 2008-02-07  Richard Henderson  <rth@redhat.com>
4727
4728         PR rtl-opt/33410
4729         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
4730         EXPR_LIST for the REG_EQUAL instead of a comparison with a 
4731         funny mode.
4732
4733 2008-02-07  Uros Bizjak  <ubizjak@gmail.com>
4734
4735         PR tree-optimization/35085
4736         * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
4737         for operand entry oe2 in addition to operand entry oe3 in order to
4738         expose more opportunities for vectorizer sum reduction.
4739
4740 2008-02-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4741
4742         PR other/35107
4743         * Makefile.in (LIBS): Remove $(GMPLIBS).
4744         (cc1-dummy, cc1): Add $(GMPLIBS).
4745
4746 2008-02-06  Jan Hubicka  <jh@suse.cz>
4747
4748         PR target/23322
4749         * i386.md (moddf_integer): Do not produce partial memory stalls for
4750         targets where it hurts.
4751
4752 2008-02-06  Uros Bizjak  <ubizjak@gmail.com>
4753
4754         PR target/35083
4755         * optabs.c (expand_float): Do not check for decimal modes when
4756         expanding unsigned integer through signed conversion.
4757
4758 2008-02-06  Nick Clifton  <nickc@redhat.com>
4759
4760         * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
4761         inside the clobber with a match_operand and duplicated operand
4762         number in the constraint.
4763         (ineqbranchsi): Delete redundant comment.
4764
4765 2008-02-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
4766
4767         * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add 
4768         builtin_define ("__USE_INIT_FINI__").
4769         * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
4770         -msx multilibs.
4771         * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
4772
4773 2008-02-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4774
4775         PR documentation/30330
4776         * doc/invoke.texi (C++ Dialect Options)
4777         (Objective-C and Objective-C++ Dialect Options, Warning Options):
4778         For each warning option -Wfoo that allows -Wno-foo, ensure both
4779         -Wfoo and -Wno-foo are listed in the option index.  Fix index
4780         entry of -Wswitch-default, index -Wnormalized= including the
4781         `=', and -Wlarger-than-@var{len} including @var{len}.
4782
4783 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
4784
4785         * config/i386/i386.md (floatunssisf2): Use
4786         ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
4787         (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
4788         Macroize expander using MODEF mode iterator.
4789
4790 2008-02-05  Diego Novillo  <dnovillo@google.com>
4791
4792         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
4793
4794         PR 33738
4795         * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
4796
4797 2008-02-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4798
4799         PR other/35070
4800         * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
4801
4802 2008-02-05  H.J. Lu  <hongjiu.lu@intel.com>
4803
4804         PR target/35084
4805         * config/i386/i386.c (ix86_function_sseregparm): Add an arg
4806         to indicate if a message should be generated.
4807         (init_cumulative_args): Updated.
4808         (function_value_32): Likewise.
4809
4810 2008-02-05  Joseph Myers  <joseph@codesourcery.com>
4811
4812         * doc/include/texinfo.tex: Update to version 2008-02-04.16.
4813
4814 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
4815
4816         PR target/35083
4817         * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
4818         Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
4819
4820 2008-02-04  Diego Novillo  <dnovillo@google.com>
4821
4822         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
4823
4824         PR 33738
4825         * tree-vrp.c (vrp_evaluate_conditional): With
4826         -Wtype-limits, emit a warning when comparing against a
4827         constant outside the natural range of OP0's type.
4828
4829 2008-02-04  Richard Guenther  <rguenther@suse.de>
4830
4831         PR middle-end/33631
4832         * expr.c (count_type_elements): Give for unions instead of
4833         guessing.
4834
4835 2008-02-04  Richard Guenther  <rguenther@suse.de>
4836
4837         PR middle-end/35043
4838         * gimplify.c (gimplify_init_ctor_eval): Convert array indices
4839         to TYPE_DOMAINs base type instead of using bitsizetype here.
4840
4841 2008-02-03  Jason Merrill  <jason@redhat.com>
4842
4843         * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
4844
4845 2008-02-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4846
4847         PR other/29972
4848         * doc/invoke.texi (C++ Dialect Options, Optimize Options)
4849         (HPPA Options, i386 and x86-64 Options, IA-64 Options)
4850         (RS/6000 and PowerPC Options): Fix typos and markup.
4851         * doc/passes.texi (Tree-SSA passes): Likewise.
4852
4853 2008-02-02  Michael Matz  <matz@suse.de>
4854
4855         PR target/35045
4856         * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
4857         from record_last_reg_set_info.
4858         (record_last_reg_set_info): Take an RTX argument, iterate over all
4859         constituent hardregs.
4860         (record_last_set_info, record_opr_changes): Change calls to
4861         new signature or to record_last_reg_set_info_regno.
4862
4863 2008-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
4864
4865         * doc/extend.texi (X86 Built-in Functions): Fix grammar.
4866
4867 2008-02-01  Hans-Peter Nilsson  <hp@axis.com>
4868
4869         PR rtl-optimization/34773
4870         * reg-notes.def (EQUAL): Mention significance of combination of
4871         REG_EQUAL and REG_RETVAL.
4872         * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
4873         insn that has a REG_RETVAL.
4874
4875 2008-02-01  Roger Sayle  <roger@eyesopen.com>
4876
4877         PR bootstrap/33781
4878         * configure.ac (--enable-fixed-point): Disable unless explicitly
4879         requested on IRIX.
4880         * configure: Regenerate.
4881
4882 2008-02-01  Richard Guenther  <rguenther@suse.de>
4883
4884         PR other/35042
4885         * invoke.texi (-finline-limit): Remove no longer true parts
4886         of the documentation.  Note that there is no default value.
4887
4888 2008-02-01  Andrew Pinski  <pinskia@gmail.com>
4889             Mark Mitchell  <mark@codesourcery.com>
4890             Ben Elliston  <bje@au.ibm.com>
4891
4892         PR c/29326
4893         * doc/extend.texi (Other Builtins): Document.
4894
4895 2008-01-31  Tom Browder <tom.browder@gmail.com>
4896
4897         * doc/c-tree.texi (Types): Fix grammar.
4898         (Expression trees): Ditto.
4899         * doc/passes.texi (Tree-SSA passes): Ditto.
4900         
4901         * doc/configterms.texi (Configure Terms): Fix typo.
4902         * doc/cpp.texi (Common Predefined Macros): Ditto.
4903         * doc/md.texi (Machine Constraints): Ditto.
4904         
4905         * doc/makefile.texi (Makefile): Add comma.
4906
4907 2008-01-31  Tom Browder  <tom.browder@gmail.com>
4908             Gerald Pfeifer  <gerald@pfeifer.com>
4909         
4910         * doc/sourcebuild.texi (Front End): Remove references to CVS
4911         and CVSROOT/modules.
4912         (Texinfo Manuals): Replace reference to CVS by one to SVN.
4913         (Back End): Remove reference to CVS.
4914
4915 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
4916
4917         PR target/34900
4918         * config/mips/mips.c (gen_load_const_gp): New function, taking a
4919         comment from...
4920         (mips16_gp_pseudo_reg): ...here.
4921         * config/mips/mips.md (load_const_gp): Replace with...
4922         (load_const_gp_<mode>): ...this :P-based insn.
4923
4924 2008-01-31  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4925
4926         * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
4927         options. Minor fixes.
4928         (-std): Move reference to standards closer to where language
4929         standards are first mentioned.
4930         
4931 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
4932
4933         PR rtl-optimization/34995
4934         * reload.c (alternative_allows_const_pool_ref): Take an rtx
4935         parameter and return a bool.  If the rtx parameter is nonnull,
4936         check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
4937         (find_reloads): Update call accordingly.  Pass the new operand
4938         if it needed no address reloads, otherwise pass null.
4939
4940 2008-01-30  Richard Henderson  <rth@redhat.com>
4941
4942         PR c/34993
4943         * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
4944         for unbounded arrays.
4945
4946 2008-01-30  Silvius Rus  <rus@google.com>
4947
4948         * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
4949
4950 2008-01-30  Jan Hubicka  <jh@suse.cz>
4951
4952         PR target/34982
4953         * i386.c (init_cumulative_args): Use real function declaration when
4954         calling locally.
4955
4956 2008-01-30  Richard Sandiford  <rsandifo@nildram.co.uk>
4957
4958         PR rtl-optimization/34998
4959         * global.c (build_insn_chain): Treat non-subreg_lowpart
4960         SUBREGs of pseudos as clobbering all the words covered by the
4961         SUBREG, not just all the bytes.
4962         * ra-conflict.c (clear_reg_in_live): Likewise.  Take the
4963         original df_ref rather than an extract parameter.
4964         (global_conflicts): Update call accordingly.
4965
4966 2008-01-30  Andreas Krebbel  <krebbel1@de.ibm.com>
4967
4968         * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
4969         the overflow check to make it easier to read.
4970         (__fixtfdi): Change the type of the ll member in union
4971         long_double to UDItype_x.
4972
4973 2008-01-30  Jakub Jelinek  <jakub@redhat.com>
4974
4975         PR middle-end/34969
4976         * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
4977         * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
4978         * tree-inline.c (fold_marked_statements): Call
4979         cgraph_update_edges_for_call_stmt if folding a call statement.
4980         * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
4981         debug_generic_stmt calls, reset it back afterwards.
4982
4983         PR c/35017
4984         * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
4985         static decls.
4986         * c-typeck.c (build_external_ref): Don't pedwarn about
4987         static vars in current function's scope.
4988
4989 2008-01-29  Joseph Myers  <joseph@codesourcery.com>
4990
4991         * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
4992
4993 2008-01-29  Bernhard Fischer  <aldot@gcc.gnu.org>
4994
4995         PR c/35002
4996         * ipa-struct-reorg.c: Fix spelling.
4997         * params.def: Ditto.
4998
4999 2008-01-29  Richard Guenther  <rguenther@suse.de>
5000
5001         PR middle-end/35006
5002         * tree-inline.h (struct copy_body_data): Add remapping_type_depth
5003         field.
5004         * tree-inline.c (remap_type): Increment remapping_type_depth
5005         around remapping types.
5006         (copy_body_r): Only add referenced variables if they are referenced
5007         from code, not types.
5008
5009 2008-01-29  Douglas Gregor  <doug.gregor@gmail.com>
5010
5011         PR c++/34055
5012         PR c++/34103
5013         PR c++/34219
5014         PR c++/34606
5015         PR c++/34753
5016         PR c++/34754
5017         PR c++/34755
5018         PR c++/34919
5019         PR c++/34961
5020         * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
5021         qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
5022
5023 2008-01-28  Andy Hutchinson   <hutchinsonandy@netscape.net>
5024
5025         PR target/34412
5026         * config/avr/avr.c (expand_prologue): Use correct QI mode frame 
5027         pointer for tiny stack.
5028
5029 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
5030
5031         * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
5032
5033 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
5034
5035         * config/vx-common.h: Fix typo in comment.
5036
5037 2008-01-28  Ian Lance Taylor  <iant@google.com>
5038
5039         PR c++/34862
5040         PR c++/33407
5041         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
5042         coalesce pointers if they have different DECL_NO_TBAA_P values.
5043         * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
5044         between variables with different DECL_NO_TBAA_P values.
5045
5046 2008-01-28  Nathan Froyd  <froydnj@codesourcery.com>
5047
5048         PR 31535
5049         * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
5050         are not legitimate small data references on SPE targets.
5051
5052 2008-01-28  David Daney  <ddaney@avtrex.com>
5053
5054         * doc/install.texi (mips-*-*): Recommend binutils 2.18.
5055
5056 2008-01-28  David Daney  <ddaney@avtrex.com>
5057
5058         * doc/install.texi (--disable-libgcj-bc):  Reword documentation.
5059
5060 2008-01-27  Joseph Myers  <joseph@codesourcery.com>
5061
5062         * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
5063         m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
5064         *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
5065         *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
5066         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
5067         i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
5068         i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
5069         vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
5070
5071 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
5072
5073         * basic-block.h (condjump_equiv_p): Fix comment.
5074
5075 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
5076
5077         * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
5078         print_generic_stmt_indented): Fix comment.
5079
5080 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
5081
5082         * configure.ac (__stack_chk_fail): Add detecion for availability
5083         of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
5084         * configure: Regenerate.
5085
5086 2008-01-26  Maxim Kuvyrkov  <maxim@codesourcery.com>
5087
5088         PR middle-end/34688
5089         * final.c (output_addr_const): Handle TRUNCATE.
5090
5091 2008-01-26  Zdenek Dvorak  <ook@ucw.cz>
5092
5093         PR target/34711
5094         * tree-ssa-loop-ivopts.c (comp_cost): New type.
5095         (zero_cost, infinite_cost): New constants.
5096         (struct cost_pair): Change type of cost to comp_cost.
5097         (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
5098         (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
5099         New functions.
5100         (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
5101         split_address_cost, ptr_difference_cost, difference_cost,
5102         get_computation_cost_at, get_computation_cost,
5103         determine_use_iv_cost_generic, determine_use_iv_cost_address,
5104         determine_use_iv_cost_condition, determine_use_iv_costs,
5105         cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
5106         iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
5107         iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
5108         Change type of cost to comp_cost.
5109         (determine_iv_cost): Increase cost of non-original ivs, instead
5110         of decreasing the cost of original ones.
5111         (get_address_cost): Indicate the complexity of the addressing mode 
5112         in comp_cost.
5113         (try_add_cand_for): Prefer using ivs not specific to some object.
5114         * tree-flow.h (force_expr_to_var_cost): Declaration removed.
5115
5116 2008-01-26  Peter Bergner  <bergner@vnet.ibm.com>
5117             Janis Johnson  <janis187@us.ibm.com>
5118
5119         PR target/34814
5120         * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
5121         (TARGET_INSTANTIATE_DECLS): Likewise.
5122         * target.h (expand_to_rtl_hook): New target hook.
5123         (instantiate_decls): Likewise.
5124         * function.c (instantiate_decl): Make non-static.  Rename to...
5125         (instantiate_decl_rtl): ... this.
5126         (instantiate_expr): Use instantiate_decl_rtl.
5127         (instantiate_decls_1): Likewise.
5128         (instantiate_decls): Likewise.
5129         (instantiate_virtual_regs: Call new instantiate_decls taget hook.
5130         * function.h (instantiate_decl_rtl): Add prototype.
5131         * cfgexpand.c (target.h): New include.
5132         (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
5133         * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
5134         (TARGET_INSTANTIATE_DECLS): Likewise.
5135         (TARGET_INITIALIZER): New target hooks added.
5136         * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
5137         New prototype.
5138         * config/rs6000/rs6000.c (tree-flow.h): New include.
5139         (machine_function): Add sdmode_stack_slot field.
5140         (rs6000_alloc_sdmode_stack_slot): New function.
5141         (rs6000_instantiate_decls): Likewise.
5142         (rs6000_secondary_memory_needed_rtx): Likewise.
5143         (rs6000_check_sdmode): Likewise.
5144         (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
5145         (TARGET_INSTANTIATE_DECLS): Likewise.
5146         (rs6000_hard_regno_mode_ok): Allow SDmode.
5147         (num_insns_constant): Likewise.  Handle _Decimal32 constants.
5148         (rs6000_emit_move): Handle SDmode.
5149         (function_arg_advance): Likewise.
5150         (function_arg): Likewise.
5151         (rs6000_gimplify_va_arg): Likewise.  Add special handling of
5152         SDmode var args for 32-bit compiles.
5153         (rs6000_secondary_reload_class): Handle SDmode.
5154         (rs6000_output_function_epilogue): Likewise.
5155         (rs6000_function_value): Simplify if statement.
5156         (rs6000_libcall_value): Likewise.
5157         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
5158         (SECONDARY_MEMORY_NEEDED_RTX): Add define.
5159         * config/rs6000/dfp.md (movsd): New define_expand and splitter.
5160         (movsd_hardfloat): New define_insn.
5161         (movsd_softfloat): Likewise.
5162         (movsd_store): Likewise.
5163         (movsd_load): Likewise.
5164         (extendsddd2): Likewise.
5165         (extendsdtd2): Likewise.
5166         (truncddsd2): Likewise.
5167         (movdd_hardfloat64): Fixup comment.
5168         (UNSPEC_MOVSD_LOAD): New constant.
5169         (UNSPEC_MOVSD_STORE): Likewise.
5170
5171 2008-01-26  Jakub Jelinek  <jakub@redhat.com>
5172
5173         PR c++/34965
5174         * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
5175         TRUTH_XOR_EXPR.
5176         (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
5177         (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
5178         (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
5179         and TRUTH_XOR_EXPR.
5180
5181 2008-01-26  David Edelsohn  <edelsohn@gnu.org>
5182
5183         PR target/34794
5184         * config.gcc: Separate AIX 5.3 from AIX 6.1.
5185         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
5186         __LONGDOUBLE128 too.
5187         * config/rs6000/aix61.h: New file.
5188
5189 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
5190
5191         PR rtl-optimization/34959
5192         * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
5193         popcount and parity rtxes the same mode as their operand.
5194         Truncate or extend the result to the return value's mode
5195         if necessary.
5196
5197 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
5198
5199         PR target/34981
5200         * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
5201         * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
5202         to GOT_VERSION_REGNUM.
5203         (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
5204         (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
5205         * config/mips/mips.c (mips_emit_call_insn): New function.
5206         (mips_call_tls_get_addr): Call mips_expand_call directly.
5207         (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
5208         emit_call_insn.
5209         (mips16_build_call_stub): Likewise.  Return the call insn or null.
5210         (mips_expand_call): Update the call to mips16_build_call_stub
5211         accordingly and a remove redundant condition.  Assert that MIPS16
5212         stubs do not use lazy binding.  Use mips_emit_call_insn and return
5213         the call insn.
5214         (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
5215         TARGET_USE_GOT.
5216         (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
5217         (mips_avoid_hazard): Remove hazard_set handling.
5218         * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
5219         (UNSPEC_RESTORE_GP): ...this.
5220         (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
5221         (FAKE_CALL_REGNO): Rename to...
5222         (GOT_VERSION_REGNUM): ...this.
5223         (type): Add "ghost" value.  Add an associated insn reservation.
5224         (hazard_set): Remove.
5225         (exception_receiver): Rename to...
5226         (restore_gp): ...this and update the unspec identifier accordingly.
5227         (exception_receiver, nonlocal_got_receiver): New expanders.
5228         (load_call<mode>): Use GOT_VERSION_REGNUM.  Don't set
5229         FAKE_CALL_REGNO.  Remove hazard_set attribute.
5230         (set_got_version, update_got_version): New patterns.
5231
5232 2008-01-26  Danny Smith  <dannysmith@users.sourceforge.net>
5233
5234         PR target/34970
5235         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
5236
5237 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
5238
5239         PR other/31955
5240         * doc/install.texi2html: Generate gcc-vers.texi.
5241
5242 2008-01-25  DJ Delorie  <dj@redhat.com>
5243
5244         * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
5245
5246 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
5247
5248         * config/c4x: Remove directory.
5249         * config.gcc (crx-*, mt-*): Mark obsolete.
5250         (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
5251         h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
5252         sh-*-rtemscoff*): Remove cases.
5253         * defaults.h (C4X_FLOAT_FORMAT): Remove.
5254         * real.c (encode_c4x_single, decode_c4x_single,
5255         encode_c4x_extended, decode_c4x_extended, c4x_single_format,
5256         c4x_extended_format): Remove.
5257         * real.h (c4x_single_format, c4x_extended_format): Remove.
5258         * doc/extend.texi (interrupt, naked): Remove mention of attributes
5259         on C4x.
5260         (Pragmas): Remove comment about c4x pragmas.
5261         * doc/install.texi (c4x): Remove target-specific instructions.
5262         * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
5263         * doc/md.texi (Machine Constraints): Remove C4x documentation.
5264         * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
5265         refer to C4x source files as examples.
5266         (C4X_FLOAT_FORMAT): Remove documentation.
5267
5268 2008-01-25  Bernd Schmidt  <bernd.schmidt@analog.com>
5269
5270         * config/bfin/bfin.c (override_options): Reorder tests so that
5271         flag_pic gets enabled for -msep-data.
5272
5273 2008-01-25  Richard Guenther  <rguenther@suse.de>
5274
5275         PR middle-end/32244
5276         * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
5277         to its bitfield precision if required.
5278
5279 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
5280
5281         PR middle-end/33880
5282         * tree-nested.c (walk_omp_for): New function.
5283         (convert_nonlocal_reference, convert_local_reference): Call
5284         walk_omp_for on OMP_FOR.
5285         (convert_call_expr): Call walk_body on OMP_FOR's
5286         OMP_FOR_PRE_INIT_BODY.
5287
5288 2008-01-25  Richard Guenther  <rguenther@suse.de>
5289
5290         PR tree-optimization/34966
5291         * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
5292         default defs and PHI_NODEs we have to insert after the
5293         defining statement.
5294
5295 2008-01-24  Nick Clifton  <nickc@redhat.com>
5296
5297         * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
5298         Provide a default definition.
5299         (LIBGCC2_UNITS_PER_WORD): Likewise.
5300
5301         * config/stormy16/stormy16.c: Include df.h for the prototype
5302         for df_regs_ever_live_p.
5303         (xstormy16_expand_builtin_va_start): Convert the stack offset
5304         into a component_ref and then use POINTER_PLUS_EXPR to add it
5305         to the incoming_virtual_args_rtx.
5306         (xstormy16_gimplify_va_arg_expr): Rename to
5307         xstormy16_gimplify_va_arg_expr.
5308         Use POINTER_PLUS_EXPR when performing pointer arithmetic.
5309         (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
5310         xstormy16_gimplify_va_arg_expr.
5311         Fix up some formatting issues.
5312
5313         * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
5314         Move to predicates.md.
5315         (xs_hi_general_operand): Likewise.
5316         (xs_hi_nonmemory_operand): Likewise.
5317         * config/stormy16/predicates.md:
5318         (xstormy16_carry_plus_operand): New predicate.
5319         (xs_hi_general_operand): New predicate.
5320         (xs_hi_nonmemory_operand): New predicate.
5321         * config/stormy16/stormy16-protos.h:
5322         (xstormy16_carry_plus_operand): Delete prototype.
5323         (xs_hi_general_operand): Likewise.
5324         (xs_hi_nonmemory_operand): Likewise.
5325
5326         * config/storm16/stormy16.md (addhi3): Remove earlyclobber
5327         modifiers as they are no longer needed and they can trigger
5328         reload spill failures.
5329
5330         * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
5331         with a match_operand in order to help reload.
5332
5333         * config/storm16/stormy16.md (movhi_internal): Replace 'r'
5334         constraint with 'e' for the 8th alternative as this version of
5335         the mov.w instruction only accepts the lower 8 registers.
5336
5337 2008-01-25  Uros Bizjak  <ubizjak@gmail.com>
5338
5339         PR target/34856
5340         * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
5341         Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
5342         vector elements.
5343
5344 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
5345
5346         PR middle-end/33333
5347         * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
5348
5349 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
5350
5351         * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
5352         New functions.
5353         (remove_structure): Update allocations list before removing structure.
5354         
5355 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
5356
5357         * ipa-struct-reorg.c (is_safe_cond_expr, 
5358         create_new_stmts_for_cond_expr): Use integer_zerop function,
5359         that recognize not only zero-pointer, but zero-integer too.
5360
5361 2008-01-25  Ben Elliston  <bje@au.ibm.com>
5362
5363         PR other/22232
5364         * fixproto: Escape "." in sed expression that strips leading "./".
5365
5366 2008-01-24  H.J. Lu  <hongjiu.lu@intel.com>
5367
5368         PR driver/34904
5369         * gcc.c (SWITCH_OK): Removed.
5370         (SWITCH_LIVE): Changed to bit.
5371         (SWITCH_FALSE): Likewise.
5372         (SWITCH_IGNORE): Likewise.
5373         (switchstr): Change live_cond to unsigned int.
5374         (process_command): Replace SWITCH_OK with 0.
5375         (do_self_spec): Likewise.
5376         (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
5377         (give_switch): Likewise.
5378         (used_arg): Likewise.
5379         (do_spec_1): Set the SWITCH_IGNORE bit.
5380         (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
5381         bits.  Set the SWITCH_LIVE bit.
5382
5383 2008-01-24  Andreas Krebbel  <krebbel1@de.ibm.com>
5384
5385         * config/s390/s390.h (MOVE_RATIO): Define new target macro.
5386
5387 2008-01-24  Richard Sandiford  <rsandifo@nildram.co.uk>
5388
5389         PR tree-optimization/34472
5390         * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
5391         parameter to a "bool *" and set *DATA to false if there is
5392         an unsafe access.  Do not delete the structure here.
5393         (check_cond_exprs): Delete it here instead.
5394         (check_cond_exprs, exclude_cold_structs): Do not increase
5395         I when removing a structure.
5396
5397 2008-01-24  Uros Bizjak  <ubizjak@gmail.com>
5398
5399         PR target/34856
5400         * config/i386/i386.c (ix86_expand_vector_init): Consider only
5401         CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
5402
5403 2008-01-24  Jakub Jakub Jelinek  <jakub@redhat.com>
5404
5405         PR middle-end/34934
5406         * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
5407         a fixed vector for stack.
5408
5409 2008-01-24  Ben Elliston  <bje@au.ibm.com>
5410
5411         PR c++/25701
5412         * doc/gcc.texi (Software development): Add a direntry for g++.
5413         
5414 2008-01-23  Hans-Peter Nilsson  <hp@axis.com>
5415
5416         * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
5417         stale and straggling -fforce-addr comments above.
5418
5419         * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
5420         define.
5421         * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
5422         * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
5423
5424 2008-01-23  Michael Matz  <matz@suse.de>
5425
5426         PR debug/34895
5427         * dwarf2out.c (force_type_die): Use modified_type_die instead of
5428         gen_type_die.
5429
5430 2008-01-23  Andreas Krebbel  <krebbel1@de.ibm.com>
5431
5432         * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
5433         malloc result type.
5434
5435 2008-01-23 Anatoly Sokolov <aesok@post.ru>
5436
5437         * config/avr/avr.c (avr_current_arch): New variable.
5438         (avr_arch_types): Add 'avr31' and 'avr51' entries.
5439         (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
5440         (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
5441         (avr_override_options): Init 'avr_current_arch'. 
5442         (base_arch_s): Move from here...
5443         * config/avr/avr.h (base_arch_s): ... here. Add new members 
5444         'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename 
5445         'mega' to 'have_jmp_call'.
5446         (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__", 
5447         "__AVR_HAVE_RAMPZ__",   "__AVR_HAVE_ELPM__" and  "__AVR_HAVE_ELPMX__"
5448         macros.
5449         (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51' 
5450         architectures.
5451         * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES, 
5452         MULTILIB_MATCHES): (Ditto.).
5453
5454 2008-01-23  Richard Guenther  <rguenther@suse.de>
5455
5456         PR middle-end/31529
5457         * cgraphunit.c (cgraph_reset_node): Always mark the node
5458         not reachable if it is not queued already.
5459
5460 2008-01-23  Bernd Schmidt  <bernd.schmidt@analog.com>
5461
5462         * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
5463         * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
5464         (cputype_selected): New static variable.
5465         (bfin_handle_option): Set it if -mcpu is used.
5466         (override_option): Select default set of workarounds if no cpu type
5467         selected on the command line.
5468         (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
5469
5470         From  Michael Frysinger  <michael.frysinger@analog.com>
5471         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
5472         BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
5473
5474         * config/bfin/elf.h (LIB_SPEC): Use proper linker script
5475         for bf547, bf523, bf524, and bf526.
5476         * config/bfin/bfin.c (bfin_cpus[]): Add bf547,  bf523, bf524, and
5477         bf526.
5478         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
5479         __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
5480         __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
5481         __ADSPBF547__ and __ADSPBF54x__ for bf547.
5482         * doc/invoke.texi (Blackfin Options): Document that
5483         -mcpu now accept bf547, bf523, bf524, and bf526.
5484
5485 2008-01-22  Eric Botcazou  <ebotcazou@adacore.com>
5486
5487         PR rtl-optimization/34628
5488         * combine.c (try_combine): Stop and undo after the first combination
5489         if an autoincrement side-effect on the first insn has effectively
5490         been lost.
5491
5492 2008-01-22  David Edelsohn  <edelsohn@gnu.org>
5493
5494         PR target/34529
5495         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
5496         Offset addresses are not valid for Altivec or paired float modes.
5497
5498 2008-01-22  Jakub Jelinek  <jakub@redhat.com>
5499
5500         PR c++/34607
5501         * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
5502         if DECL_INITIAL (decl) is error_mark_node.
5503
5504         PR c++/34914
5505         * c-common.c (handle_vector_size_attribute): Only allow
5506         integral, scalar float and fixed point types.  Handle OFFSET_TYPE
5507         the same way as pointer, array etc. types.
5508         * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
5509
5510         PR c++/34917
5511         * tree.c (build_type_attribute_qual_variant): Call
5512         build_qualified_type if attributes are equal, but quals are not.
5513
5514 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5515
5516         PR 32102
5517         * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
5518         * flags.h (warn_strict_aliasing): Remove.
5519         (warn_strict_overflow): Remove.
5520         * opts.c (warn_strict_aliasing): Remove.
5521         (warn_strict_overflow): Remove.
5522         * c-opts.c (c_common_handle_option): -Wall only sets
5523         -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
5524         (c_common_post_options): Give default values to -Wstrict-aliasing
5525         and -Wstrict-overflow if they are uninitialized.
5526         * common.opt (Wstrict-aliasing): Specify Var and Init.
5527         (Wstrict-overflow): Likewise.
5528
5529 2008-01-22  Kenneth Zadeck <zadeck@naturalbridge.com>
5530
5531         PR rtl-optimization/26854
5532         PR rtl-optimization/34400
5533         PR rtl-optimization/34884
5534         * ddg.c (create_ddg_dep_from_intra_loop_link): Use
5535         DF_RD->gen.
5536         * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
5537         (df_rd_bb_info.expanded_lr_out): Deleted
5538         * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
5539         * loop_iv.c (iv_analysis_loop_init): Ditto.  * df-problems.c
5540         (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
5541         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
5542         Removed code to allocate, initialize or free expanded_lr_out.
5543         (df_rd_bb_local_compute_process_def): Restructured to make more
5544         understandable.
5545         (df_rd_confluence_n): Removed code to no apply invalidate_by_call
5546         sets if the sets are being trimmed.
5547
5548 2008-01-22  H.J. Lu  <hongjiu.lu@intel.com>
5549
5550         PR bootstrap/32287
5551         * configure.ac (ld_vers): Support GNU linker version xx.xx.*
5552         (as_vers): Likewise.
5553         * configure: Regenerated.
5554
5555 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5556
5557         PR middle-end/33092
5558         * tree-pass.h (pass_build_alias): New pass.
5559         * tree-ssa-alias.c (gate_build_alias): New.
5560         (pass_build_alias): New.
5561         * passes.c (init_optimization_passes): Add pass_build_alias after
5562         pass_create_structure_vars.
5563
5564 2008-01-22  Wolfgang Gellerich  <gellerich@de.ibm.com>
5565
5566         * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
5567         Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
5568         (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
5569         S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
5570         (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
5571         S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
5572         (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
5573         S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
5574         (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
5575         (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
5576         (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
5577         (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
5578         * config/s390/s390.md (FP_ALL): New mode iterator.
5579         (_d): New mode attribute.
5580         ("*signbit<mode>2>"): Changed mode of first operand.
5581         ("isinf<mode>2"): Changed mode of first operand.
5582         ("*TDC_insn"): Adaptation for DFP modes.
5583
5584 2008-01-22  Ben Elliston  <bje@au.ibm.com>
5585
5586         * tree.c (check_qualified_type): Improve function description.
5587
5588 2008-01-21  Jason Merrill  <jason@redhat.com>
5589
5590         PR c++/34196
5591         * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
5592         * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
5593         if it is set.
5594
5595 2008-01-21  DJ Delorie  <dj@redhat.com>
5596
5597         * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
5598         return zero.
5599
5600 2008-01-21  Richard Guenther  <rguenther@suse.de>
5601
5602         PR middle-end/34856
5603         * tree-cfg.c (verify_expr): Allow all invariant expressions
5604         instead of just constant class ones as reference argument.
5605         * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
5606         like any other constant.
5607         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
5608
5609 2008-01-21  H.J. Lu  <hongjiu.lu@intel.com>
5610
5611         * regmove.c (fixup_match_1): Update call crossed frequencies.
5612
5613 2008-01-21  Richard Guenther  <rguenther@suse.de>
5614
5615         PR c/34885
5616         * tree-inline.c (setup_one_parameter): Deal with mismatched
5617         types using a VIEW_CONVERT_EXPR.
5618
5619 2008-01-21  Alon Dayan  <alond@il.ibm.com>
5620             Olga Golovanevsky  <olga@il.ibm.com>
5621         
5622         PR tree-optimization/34701
5623         * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
5624         when the structure size is not a power of 2.
5625
5626 2008-01-20  Kenneth Zadeck <zadeck@naturalbridge.com>
5627
5628         * doc/install.texi: Add doc for --enable-checking=df.
5629         
5630 2008-01-20  Kaz Kojima  <kkojima@gcc.gnu.org>
5631
5632         PR rtl-optimization/34808
5633         * emit-rtl.c (try_split): Handle REG_RETVAL notes.
5634
5635 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
5636
5637         * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
5638         input.
5639
5640 2008-01-19  Kenneth Zadeck <zadeck@naturalbridge.com>
5641
5642         PR rtl-optimization/26854
5643         PR rtl-optimization/34400
5644         * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
5645         DF_RD->gen.
5646         * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
5647         (df_rd_bb_info.expanded_lr_out): New.
5648         * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
5649         * loop_iv.c (iv_analysis_loop_init): Ditto.
5650         * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
5651         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
5652         Added code to allocate, initialize or free expanded_lr_out.
5653         (df_rd_bb_local_compute_process_def): Restructured to make
5654         more understandable.
5655         (df_rd_confluence_n): Add code to do nothing with fake edges and
5656         code to no apply invalidate_by_call sets if the sets are being trimmed.
5657         (df_lr_local_finalize): Renamed to df_lr_finalize.
5658         (df_live_local_finalize): Renamed to df_live_finalize.
5659
5660 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
5661
5662         PR target/34831
5663         * config/mips/mips.md (div<mode>3): Use <recip_condition> when
5664         deciding whether to use reciprocal instructions.
5665
5666 2008-01-19  Uros Bizjak  <ubizjak@gmail.com>
5667
5668         * dwarf2out.c (dwarf2out_switch_text_section): Do not call
5669         dwarf2out_note_section_used if cold_text_section is NULL.
5670
5671 2008-01-19  Jakub Jelinek  <jakub@redhat.com>
5672
5673         PR gcov-profile/34610
5674         * tree-cfg.c (make_edges): Mark both outgoing edges from
5675         OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
5676         * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
5677         from OMP_FOR and OMP_CONTINUE outgoing edges.
5678
5679         * tree-profile.c (tree_profiling): Return early if
5680         cfun->after_tree_profile != 0.  Set cfun->after_tree_profile
5681         at the end.
5682         * omp-low.c (expand_omp_parallel): Copy after_tree_profile
5683         from cfun to child_cfun.
5684         * function.h (struct function): Add after_tree_profile bit.
5685
5686 2008-01-19 Anatoly Sokolov <aesok@post.ru>
5687
5688         * config/avr/avr.S (_exit): Disable interrupt.
5689
5690 2008-01-18  Kenneth Zadeck  <zadeck@naturalbridge.com>
5691             Steven Bosscher  <stevenb.gcc@gmail.com>
5692
5693         PR rtl-optimization/26854
5694         PR rtl-optimization/34400
5695         * df-problems.c (df_live_scratch): New scratch bitmap.
5696         (df_live_alloc): Allocate df_live_scratch when doing df_live.
5697         (df_live_reset): Clear the proper bitmaps.
5698         (df_live_bb_local_compute): Only process the artificial defs once
5699         since the order is not important.
5700         (df_live_init): Init the df_live sets only with the variables
5701         found live by df_lr.
5702         (df_live_transfer_function): Use the df_lr sets to prune the
5703         df_live sets as they are being computed.  
5704         (df_live_free): Free df_live_scratch.
5705
5706 2008-01-18  Ian Lance Taylor  <iant@google.com>
5707
5708         * common.opt: Add fmerge-debug-strings.
5709         * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
5710         flag_merge_debug_strings rather than flag_merge_constants.
5711         * doc/invoke.texi (Option Summary): Mention
5712         -fmerge-debug-strings.
5713         (Debugging Options): Document -fmerge-debug-strings.
5714
5715 2008-01-18  Ian Lance Taylor  <iant@google.com>
5716
5717         PR c++/33407
5718         * tree.h (DECL_IS_OPERATOR_NEW): Define.
5719         (struct tree_function_decl): Add new field operator_new_flag.
5720         * tree-inline.c (expand_call_inline): When inlining a call to
5721         operator new, force the return value to go into a variable, and
5722         set DECL_NO_TBAA_P on that variable.
5723         * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
5724
5725 2008-01-18  Uros Bizjak  <ubizjak@gmail.com>
5726
5727         PR debug/34484
5728         * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
5729         DWARF2_DEBUGGING_INFO.
5730         (dwarf2out_note_section_used): Ditto.  Add prototype.
5731         (have_multiple_function_sections, text_section_used,
5732         cold_text_section_used, *cold_text_sections): Move declarations
5733         before their uses.
5734
5735 2008-01-17  Bob Wilson  <bob.wilson@acm.org>
5736
5737         * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
5738         field and add signal_ra.
5739         * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
5740         assignments to frame state pc.  Move end of stack check after
5741         MD_FALLBACK_FRAME_STATE_FOR.
5742         (uw_update_context_1): Use frame state signal_regs if set, instead
5743         of checking signal_frame flag.
5744         (uw_update_context): Use frame state signal_ra if set.
5745         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
5746         * config/xtensa/linux-unwind.h: New file.
5747
5748 2008-01-18  Bernhard Fischer  <aldot@gcc.gnu.org>
5749
5750         * modulo-sched.c (get_sched_window): Fix comment typo.
5751
5752 2008-01-17  Andrew MacLeod  <amacleod@redhat.com>
5753
5754         PR tree-optimization/34648
5755         * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
5756
5757 2008-01-17  Anatoly Sokolov <aesok@post.ru>
5758
5759         * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
5760         * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
5761
5762 2008-01-17  Seongbae Park  <seongbae.park@gmail.com>
5763
5764         PR rtl-optimization/34400
5765         * df-core.c (df_worklist_dataflow_overeager,
5766         df_worklist_dataflow_doublequeue): New functions.
5767         (df_worklist_dataflow): Two different worklist solvers.
5768         * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
5769         New param.
5770
5771 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
5772
5773         PR testsuite/34821
5774         * doc/invoke.texi: Document the dependence on pthread for fopenmp
5775         and ftree-parallelize-loops.
5776
5777 2008-01-17  Mircea Namolaru  <namolaru@il.ibm.com>
5778
5779         PR rtl-optimization/34826
5780         * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
5781
5782 2008-01-17  Andreas Krebbel  <krebbel1@de.ibm.com>
5783
5784         * global.c (find_reg): Mark the eh regs as used if necessary.
5785         * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
5786         * ra.h (struct allocno): no_eh_reg field added.  Changed
5787         no_stack_reg type to bitfield.
5788
5789 2008-01-17  Eric Botcazou  <ebotcazou@adacore.com>
5790
5791         * tree.c (substitute_in_expr): Add missing 'break'.
5792
5793 2008-01-17  Richard Guenther  <rguenther@suse.de>
5794
5795         PR tree-optimization/34825
5796         * tree-ssa-math-opts.c (is_division_by): Do not recognize
5797         x / x as division to handle.
5798
5799 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5800
5801         * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
5802         "-pthread" is specified.
5803         * pa-hpux11.h (LIB_SPEC): Likewise.
5804
5805 2008-01-16  Janis Johnson  <janis187@us.ibm.com>
5806             Peter Bergner  <bergner@vnet.ibm.com>
5807
5808         PR rtl-optimization/33796
5809         * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
5810
5811 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5812
5813         PR libgfortran/34699
5814         * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
5815         static links.
5816         * pa-hpux10.h (LINK_SPEC): Likewise.
5817         * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
5818
5819 2008-01-16  Richard Guenther  <rguenther@suse.de>
5820
5821         PR middle-end/32628
5822         * fold-const.c (fold_convert_const_int_from_int): Do not
5823         set overflow if that occured only because of a sign extension
5824         change when converting from/to a sizetype with the same
5825         precision and signedness.
5826
5827 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
5828
5829         PR debug/34249
5830         * dwarf2out.c (output_call_frame_info): Move output of FDE initial
5831         location address to the correct place.  Update copyright year.
5832
5833 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
5834
5835         * lambda-code.c (lambda_transform_legal_p): Handle the case of
5836         no dependences in the dependence_relations vector.
5837
5838 2008-01-16  Jan Hubicka  <jh@suse.cz>
5839
5840         PR rtl-optimization/31396
5841         * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
5842         * cfg.c (dump_reg_info): Print it.
5843         * regs.h (struct reg_info_t): add freq_calls_crossed.
5844         (REG_FREQ_CALLS_CROSSED): New macro.
5845         * global.c (global_alloc): Compute freq_calls_crossed for allocno.
5846         (find_reg): Update call of CALLER_SAVE_PROFITABLE.
5847         * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
5848         regmove_optimize): Update call crossed frequencies.
5849         * local-alloc.c (struct qty): Add freq_calls_crossed.
5850         (alloc_qty): Copute freq_calls_crossed.
5851         (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
5852         (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
5853         * ra.h (struct allocno): Add freq_calls_crossed.
5854
5855 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
5856
5857         * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
5858         libgomp when compiling with ftree-parallelize-loops.
5859         (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
5860
5861 2008-01-16  Richard Guenther  <rguenther@suse.de>
5862
5863         PR tree-optimization/34769
5864         * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
5865         * tree.c (int_cst_value): Instead make this function more
5866         permissive in what it accepts as valid input.  Document this
5867         function always sign-extends the value.
5868
5869 2008-01-16  Jakub Jelinek  <jakub@redhat.com>
5870             Richard Guenther  <rguenther@suse.de>
5871
5872         PR c/34668
5873         * gimplify.c (fold_indirect_ref_rhs): Rename to ...
5874         (gimple_fold_indirect_ref_rhs): ... this.
5875         (gimple_fold_indirect_ref): New function with foldings
5876         that preserve lvalueness.
5877         (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
5878         * tree-flow.h (gimple_fold_indirect_ref): Declare.
5879         * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
5880         to fold an INDIRECT_REF, fall back to the old use of
5881         fold_indirect_ref_1.
5882
5883 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
5884
5885         * tree-data-ref.c (subscript_dependence_tester_1): Call 
5886         free_conflict_function.
5887         (compute_self_dependence): Same.
5888
5889 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
5890
5891         PR debug/34249
5892         * debug.h (dwarf2out_switch_text_section): Move declaration from ...
5893         * dwarf2out.c (dwarf2out_switch_text_section): ... here.  Make
5894         function global.
5895         * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
5896         Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
5897         for DWARF2_UNWIND_INFO targets.
5898
5899 2008-01-16  Richard Guenther  <rguenther@suse.de>
5900
5901         PR c/34768
5902         * c-typeck.c (common_pointer_type): Do not merge inconsistent
5903         type qualifiers for function types.
5904
5905 2008-01-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
5906
5907         * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
5908         loop_iterator li from previous commit.
5909
5910 2008-01-15  Sebastian Pop  <sebastian.pop@amd.com>
5911
5912         * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
5913
5914 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
5915
5916         * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
5917         (parallelize_loops): Don't parallelize irreducible components.
5918
5919 2008-01-14  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5920
5921         PR c++/24924
5922         * c-opts (c_common_post_options): Do not enable CPP
5923         flag_pedantic_errors by default.
5924         
5925 2008-01-14  Eric Botcazou  <ebotcazou@adacore.com>
5926
5927         PR rtl-optimization/31944
5928         * cse.c (remove_pseudo_from_table): New function.
5929         (merge_equiv_classes): Use above function to remove pseudo-registers.
5930         (invalidate): Likewise.
5931
5932 2008-01-13  Richard Guenther  <rguenther@suse.de>
5933
5934         PR middle-end/34601
5935         * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
5936         instead of TYPE_MODE to deal with calls from expand_one_error_var.
5937
5938 2008-01-13  Uros Bizjak  <ubizjak@gmail.com>
5939
5940         * gcse.c (cprop_jump): Call validate_unshare_change instead of
5941         validate_change to unshare the source of the PC set.
5942
5943 2008-01-12  Jan Hubicka  <jh@suse.cz>
5944
5945         PR middle-end/32135
5946         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
5947         references above array bounds.  This might trigger bounds checks for
5948         pointers to arrays.
5949
5950 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
5951
5952         * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
5953         new_replaceable_dependencies.
5954
5955 2008-01-12  Doug Kwan  <dougkwan@google.com>
5956
5957         * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
5958         instead of OPT_Wreturn_type in warning due to ignored return type
5959         qualifiers.
5960         * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
5961         options included in -Wextra.
5962         * c.opt: New option -Wignored_qualifiers.
5963         * doc/invoke.texi (Warning Options, -Wextra): Add new option
5964         -Wignore_qualifiers.
5965         (-Wignored-qualifiers): Document.
5966         (-Wreturn-type): Remove description of functionality now handled
5967         by -Wignored-qualifiers.
5968
5969 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
5970
5971         PR ada/33788
5972         * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
5973         NOP_EXPR if it is between integral types with the same precision.
5974
5975 2008-01-12  Jan Hubicka  <jh@suse.cz>
5976
5977         PR other/28023
5978         * invoke.texi (max-inline-recursive-depth): Fix default value.
5979
5980 2008-01-12  Zdenek Dvorak  <ook@ucw.cz>
5981
5982         * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
5983         correct type.
5984
5985 2008-01-11  Bob Wilson  <bob.wilson@acm.org>
5986         
5987         * config/xtensa/xtensa.c (override_options): Set flag_shlib.
5988         
5989 2008-01-11  James E. Wilson  <wilson@specifix.com>
5990
5991         PR target/26015
5992         * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
5993
5994 2008-01-11  Anatoly Sokolov <aesok@post.ru>
5995
5996         * config/avr/avr.c (expand_prologue, expand_epilogue): Don't 
5997         save/restore frame pointer register and don't use 'call-prologues' 
5998         optimization in function with "OS_task" attribute.
5999
6000 2008-01-11  Eric Botcazou  <ebotcazou@adacore.com>
6001
6002         PR middle-end/31309
6003         * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
6004         when copying to memory.
6005
6006 2008-01-11  Steven Bosscher  <stevenb.gcc@gmail.com>
6007
6008         PR rtl-optimization/30905
6009         * cfgcleanup.c: Include dce.h
6010         (crossjumps_occured): New global variable.
6011         (try_crossjump_bb): Exit loop after finding a fallthru edge.
6012         If something changed, set crossjumps_occured to true.
6013         (try_optimize_cfg): Clear crossjumps_occured at the beginning.
6014         Don't add/remove fake edges to exit here...
6015         (cleanup_cfg): ...but do it here, when crossjumping.
6016         Run a fast DCE when successful crossjumps occured in the latest
6017         iteration of try_optimize_cfg.
6018
6019 2008-01-11  Richard Guenther  <rguenther@suse.de>
6020
6021         * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
6022         (struct vn_unary_op_s): Likewise.
6023         (vn_reference_insert): Free old reference on hash collision.
6024
6025 2008-01-10  Raksit Ashok  <raksit@google.com>
6026
6027         PR rtl-optimization/27971
6028         * combine.c (find_split_point): Split PLUS expressions which are
6029         inside a MEM rtx, and whose first operand is complex.
6030
6031 2008-01-10  DJ Delorie  <dj@redhat.com>
6032
6033         * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
6034         (m32c_hard_regno_nregs): ...this, which is now a wrapper.
6035         (m32c_hard_regno_ok): Call the underlying function.
6036
6037 2008-01-10  Richard Guenther  <rguenther@suse.de>
6038
6039         PR middle-end/34683
6040         * tree-cfg.c (tree_merge_blocks): Do not go through the
6041         full-blown folding and stmt updating path if we just deal
6042         with virtual operands.
6043         * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
6044         test for abnormal SSA_NAMEs.
6045
6046 2008-01-10  Andreas Krebbel  <krebbel1@de.ibm.com>
6047
6048         PR middle-end/34641
6049         * reload.c (push_reload): Add assertions.  All constants from
6050         reg_equiv_constant should have been used for replacing the respective
6051         pseudo earlier.
6052         (find_reloads_address): Invoke find_reloads_address_part for
6053         constant taken from the reg_equiv_constant array.
6054
6055 2008-01-10  Steven Bosscher  <stevenb.gcc@gmail.com>
6056
6057         * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
6058         field (valnum) the first in the struct.  Replace bools with
6059         unit bit fields.
6060
6061 2008-01-10  Richard Guenther  <rguenther@suse.de>
6062
6063         PR tree-optimization/34651
6064         * tree-sra.c (sra_build_assignment): Sanitize.  Use the correct
6065         types and ordering for masking and converting.
6066
6067 2008-01-09  Sebastian Pop  <sebastian.pop@amd.com>
6068
6069         PR tree-optimization/34017
6070         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
6071         also for PHI_NODE expressions.
6072
6073 2008-01-09  Jan Hubicka  <jh@suse.cz>
6074
6075         PR tree-optimization/34708
6076         * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
6077         based on number of case labels.
6078         (init_inline_once): Remove switch_cost.
6079         * tree-inline.h (eni_weights_d): Remove switch_cost.
6080
6081 2008-01-09  Richard Guenther  <rguenther@suse.de>
6082         Andrew Pinski  <andrew_pinski@playstation.sony.com>
6083
6084         PR middle-end/30132
6085         * gimplify.c (gimplify_cond_expr): Do not create an addressable
6086         temporary if an rvalue is ok or an lvalue is not required.
6087
6088 2008-01-09  Richard Guenther  <rguenther@suse.de>
6089
6090         PR middle-end/34458
6091         * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
6092         adjust return type.
6093
6094 2008-01-09  Richard Guenther  <rguenther@suse.de>
6095
6096         PR middle-end/34679
6097         * tree.c (host_integerp): Check for sizetype only if the
6098         type is an integer type.
6099
6100 2008-01-09  Steven Bosscher  <stevenb.gcc@gmail.com>
6101
6102         PR debug/26364
6103         * opts.c (decode_options): Disable inlining of functions called
6104         once if not in unit-at-a-time mode.
6105
6106 2008-01-09  Alexandre Oliva  <aoliva@redhat.com>
6107
6108         * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
6109
6110 2008-01-08  Richard Guenther  <rguenther@suse.de>
6111
6112         PR middle-end/31863
6113         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
6114         out early if the result will be unused.
6115
6116 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
6117
6118         PR target/34709
6119         Revert:
6120
6121         2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
6122         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
6123         for TARGET_RECIP.       
6124         
6125 2008-01-08  Jan Sjodin  <jan.sjodin@amd.com>
6126         
6127         * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
6128         for vectorization tuned.
6129         
6130 2008-01-08  Richard Guenther  <rguenther@suse.de>
6131
6132         PR tree-optimization/34683
6133         * tree-ssa-operands.c (operand_build_cmp): Export.
6134         * tree-ssa-operands.h (operand_build_cmp): Declare.
6135         * tree-vn.c (vuses_compare): Remove.
6136         (sort_vuses): Use operand_build_cmp.
6137         (sort_vuses_heap): Likewise.
6138         * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
6139         to re-use old VEC if available.  Do not sort already sorted VUSEs.
6140         (vdefs_to_vec): Do not sort already sorted VDEFs.
6141
6142 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
6143
6144         PR middle-end/34694
6145         * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
6146
6147 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
6148
6149         PR target/34702
6150         * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
6151         limitations of reciprocal sequences on x86 targets.
6152
6153 2008-01-08  Richard Guenther  <rguenther@suse.de>
6154
6155         PR tree-optimization/34683
6156         * tree-flow-inline.h (var_ann): Remove overzealous asserts.
6157
6158 2008-01-07  Jakub Jelinek  <jakub@redhat.com>
6159
6160         PR target/34622
6161         * config/darwin.c (darwin_mergeable_string_section): Don't use
6162         .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
6163
6164 2008-01-07  Uros Bizjak  <ubizjak@gmail.com>
6165
6166         PR target/34682
6167         * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
6168         negxf2.  Macroize expander using X87MODEF mode iterator.  Change
6169         predicates of op0 and op1 to register_operand.
6170         (abs<mode>2): Rename from abssf2, absdf2 and negxf2.  Macroize
6171         expander using X87MODEF mode iterator.  Change predicates of
6172         op0 and op1 to register_operand.
6173         ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
6174         corresponding patterns and macroize using MODEF macro.  Change
6175         predicates of op0 and op1 to register_operand and remove
6176         "m" constraint. Disparage "r" alternative with "!".
6177         ("*absneg<mode>2_i387"): Rename from corresponding patterns and
6178         macroize using X87MODEF macro.  Change predicates of op0 and op1
6179         to register_operand and remove "m" constraint.  Disparage "r"
6180         alternative with "!".
6181         (absneg splitter with memory operands): Remove.
6182         ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
6183         patterns and macroize using X87MODEF mode iterator.
6184         * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
6185         Change predicate of op1 to register_operand.
6186         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
6187         for memory operands.
6188
6189 2008-01-07  Nathan Froyd  <froydnj@codesourcery.com>
6190
6191         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
6192
6193 2008-01-07  Richard Guenther  <rguenther@suse.de>
6194
6195         * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
6196         fields.
6197
6198 2008-01-07  Richard Guenther  <rguenther@suse.de>
6199
6200         PR tree-optimization/34683
6201         * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
6202         VOPs of the needed size to save memory.  Use VEC_quick_push
6203         to save compile-time.
6204         (vdefs_to_vec): Likewise.
6205
6206 2008-01-07  Sa Liu  <saliu@de.ibm.com>
6207
6208         * config/spu/spu.md (divdf3): Genetate inline code for double
6209         division.  The implementation doesn't handle INF or NAN, therefore it
6210         only applies when -ffinite-math-only is given.
6211
6212 2008-01-06  Paolo Carlini  <pcarlini@suse.de>
6213
6214         PR libstdc++/34680
6215         * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
6216         * doc/cpp.texi ([Common Predefined Macros]): Document.
6217
6218 2008-01-06  Uros Bizjak  <ubizjak@gmail.com>
6219
6220         * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
6221         order to use commutative addition instead of subtraction.
6222
6223 2008-01-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
6224             Mircea Namolaru  <namolaru@il.ibm.com>
6225             Vladimir Yanovsky  <yanov@il.ibm.com>
6226             Revital Eres  <eres@il.ibm.com>
6227
6228         PR tree-optimization/34263
6229         * tree-outof-ssa.c (process_single_block_loop_latch,
6230         contains_tree_r): New functions.
6231         (analyze_edges_for_bb): Call process_single_block_loop_latch
6232         function to empty single-basic-block latch block if possible.
6233
6234 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
6235
6236         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
6237         for TARGET_RECIP.
6238         (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
6239
6240 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
6241
6242         * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
6243
6244 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
6245
6246         * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
6247
6248 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
6249
6250         PR tree-optimization/34618
6251         * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
6252         flag from T.
6253
6254 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
6255
6256         PR target/34673
6257         * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
6258         in the call to gen_rtx_NE.  Remove unneeded VECTOR_MODE_P check.
6259         Update copyright year.
6260
6261         * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
6262         Update copyright year.
6263         * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
6264         using NR fixup.
6265
6266 2008-01-05  Zhouyi Zhou  <zhouzhouyi@FreeBSD.org>
6267
6268         * tree-vrp.c (find_conditional_asserts): Remove redundant check that
6269         edge does not point to current bb before changing need_assert.
6270
6271 2008-01-04  Richard Guenther  <rguenther@suse.de>
6272
6273         PR middle-end/34029
6274         * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
6275         for verifying purposes if they are is_gimple_min_invariant.
6276
6277 2008-01-04  Aldy Hernandez  <aldyh@redhat.com>
6278
6279         PR tree-optimization/34448
6280         PR tree-optimization/34465
6281         * gimplify.c (gimplify_init_constructor): Add new parameter
6282         notify_temp_creation.  Use it.
6283         (gimplify_modify_expr_rhs): Take volatiles into account when
6284         optimizing constructors.
6285         Do not optimize constructors if gimplify_init_constructor will dump to
6286         memory.
6287         * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
6288         * gcc.c-torture/compile/pr34448.c: New.
6289
6290 2008-01-04  Jakub Jelinek  <jakub@redhat.com>
6291
6292         PR gcov-profile/34609
6293         * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
6294         return_slot if result is TREE_ADDRESSABLE.
6295
6296 2008-01-04  Richard Sandiford  <rsandifo@nildram.co.uk>
6297
6298         * config/mips/mips.md (sqrt_condition): Tweak comment.
6299         (recip_condition): Likewise.  Require TARGET_FLOAT64 for DFmode.
6300
6301 2008-01-03  Tom Tromey  <tromey@redhat.com>
6302
6303         PR c/34457
6304         * c-common.c (c_type_hash): Handle VLAs.
6305
6306 2008-01-03  Jan Hubicka  <jh@suse.cz>
6307
6308         PR tree-optimization/31081
6309         * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
6310         0 when inlining and not inlining to first basic block.
6311         (remap_decl): When var is initialized to 0, don't set default_def.
6312         (expand_call_inline): Set entry_bb.
6313         * tree-inline.h (copy_body_data): Add entry_bb.
6314
6315 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
6316
6317         PR c++/34619
6318         * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
6319         before returning.
6320
6321         PR tree-optimization/29484
6322         * tree-inline.c (inline_forbidden_p_2): New function.
6323         (inline_forbidden_p): Disallow inlining if some static var
6324         has an address of a local LABEL_DECL in its initializer.
6325         * doc/extend.texi (Labels as Values): Document &&foo behaviour
6326         vs. inlining.
6327
6328 2008-01-03  Sebastian Pop  <sebastian.pop@amd.com>
6329
6330         PR tree-optimization/34635
6331         * tree-data-ref.c (add_other_self_distances): Make sure that the
6332         evolution step is constant.
6333
6334 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
6335
6336         PR middle-end/34608
6337         * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
6338
6339 2008-01-02  Richard Sandiford  <rsandifo@nildram.co.uk>
6340
6341         * tree-sra.c (scalarize_init): Insert the generate_element_init
6342         statements after the generate_element_zero statements.
6343
6344 2008-01-02  Richard Guenther  <rguenther@suse.de>
6345
6346         PR middle-end/34093
6347         PR middle-end/31976
6348         * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
6349         for very large number of operands instead of ICEing.
6350
6351 2008-01-02  Arthur Norman <acn1@cam.ac.uk>
6352
6353         PR target/34013
6354         * config/i386/i386.c (ix86_expand_prologue): Save red-zone
6355         while stack probing.
6356
6357 2008-01-01  Douglas Gregor  <doug.gregor@gmail.com>
6358
6359         * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
6360         in C++0x mode.
6361
6362 2008-01-01  Volker Reichelt  <v.reichelt@netcologne.de>
6363
6364         PR libmudflap/26442
6365         * tree-mudflap.c (mx_register_decls): Guard warning by
6366         !DECL_ARTIFICIAL check.
6367
6368 2008-01-01  Jakub Jelinek  <jakub@redhat.com>
6369
6370         * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
6371         sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
6372         sse5_perm<mode>): Fix constraints.