OSDN Git Service

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