OSDN Git Service

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