OSDN Git Service

* tree-ssa-ifcombine.c (get_name_for_bit_test): Use
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2008-06-02  Tomas Bily  <tbily@suse.cz>
2
3         * tree-ssa-ifcombine.c (get_name_for_bit_test): Use CONVERT_EXPR_P.
4
5 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
6
7         * config/mips/mips.c (mips_valid_offset_p): New function.
8         (mips_valid_lo_sum_p): Likewise.
9         (mips_classify_address): Use them.
10         (mips_force_address): New function.
11         (mips_legitimize_address): Use it.
12         * config/mips/mips.md (MOVE128): New mode iterator.
13         (movtf): Require TARGET_64BIT.  Remove empty strings.
14         (*movtf_internal): Rename to...
15         (*movtf): ...this and require !TARGET_MIPS16.  Use "m" instead
16         of "R" and use {,fp}{load,store} attributes instead of "multi".
17         Use a separate define_split.
18         (*movtf_mips16): New pattern.
19
20 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
21
22         * config/mips/mips-protos.h (mips_expand_before_return): Declare.
23         * config/mips/mips.c (mips_expand_before_return): New function.
24         (mips_expand_epilogue): Call it.
25         * config/mips/mips.md (return): Turn into a define_expand.
26         (*return): New insn.
27
28 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
29
30         * rtl.h (emit_clobber, gen_clobber, emit_use, gen_use): Declare.
31         * emit-rtl.c (emit_clobber, gen_clobber, emit_use, gen_use): New
32         functions.  Do not emit uses and clobbers of CONCATs; individually
33         use and clobber their operands.
34         * builtins.c (expand_builtin_setjmp_receiver): Use emit_clobber,
35         gen_clobber, emit_use and gen_use.
36         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
37         (expand_builtin_return): Likewise.
38         * cfgbuild.c (count_basic_blocks): Likewise.
39         * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
40         * explow.c (emit_stack_restore): Likewise.
41         * expmed.c (extract_bit_field_1): Likewise.
42         * expr.c (convert_move, emit_move_complex_parts): Likewise.
43         (emit_move_multi_word, store_constructor): Likewise.
44         * function.c (do_clobber_return_reg, do_use_return_reg): Likewise.
45         (thread_prologue_and_epilogue_insns): Likewise.
46         * lower-subreg.c (resolve_simple_move): Likewise.
47         * optabs.c (widen_operand, expand_binop): Likewise.
48         (expand_doubleword_bswap, emit_no_conflict_block): Likewise.
49         * reload.c (find_reloads): Likewise.
50         * reload1.c (eliminate_regs_in_insn): Likewise.
51         * stmt.c (expand_nl_goto_receiver): Likewise.
52         * config/alpha/alpha.md (builtin_longjmp): Likewise.
53         * config/arc/arc.md (*movdi_insn, *movdf_insn): Likewise.
54         * config/arm/arm.c (arm_load_pic_register): Likewise.
55         (thumb1_expand_epilogue, thumb_set_return_address): Likewise.
56         * config/arm/arm.md (untyped_return): Likewise.
57         * config/arm/linux-elf.h (PROFILE_HOOK): Likewise.
58         * config/avr/avr.c (expand_prologue): Likewise.
59         * config/bfin/bfin.c (do_unlink): Likewise.
60         * config/bfin/bfin.md (<optab>di3, adddi3, subdi3): Likewise.
61         * config/cris/cris.c (cris_expand_prologue): Likewise.
62         * config/darwin.c (machopic_indirect_data_reference): Likewise.
63         (machopic_legitimize_pic_address): Likewise.
64         * config/frv/frv.c (frv_frame_access, frv_expand_epilogue): Likewise.
65         (frv_ifcvt_modify_insn, frv_expand_mdpackh_builtin): Likewise.
66         * config/i386/i386.c (ix86_expand_vector_move_misalign): Likewise.
67         (ix86_expand_convert_uns_didf_sse): Likewise.
68         (ix86_expand_vector_init_general): Likewise.
69         * config/ia64/ia64.md (eh_epilogue): Likewise.
70         * config/iq2000/iq2000.c (iq2000_expand_epilogue): Likewise.
71         * config/m32c/m32c.c (m32c_emit_eh_epilogue): Likewise.
72         * config/m32r/m32r.c (m32r_reload_lr): Likewise.
73         (config/iq2000/iq2000.c): Likewise.
74         * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
75         (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
76         (builtin_longjmp): Likewise.
77         * config/mn10300/mn10300.md (call, call_value): Likewise.
78         * config/pa/pa.md (nonlocal_goto, nonlocal_longjmp): Likewise.
79         * config/pdp11/pdp11.md (abshi2): Likewise.
80         * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
81         * config/s390/s390.c (s390_emit_prologue): Likewise.
82         * config/s390/s390.md (movmem_long, setmem_long): Likewise.
83         (cmpmem_long, extendsidi2, zero_extendsidi2, udivmoddi4): Likewise.
84         (builtin_setjmp_receiver, restore_stack_nonlocal): Likewise.
85         * config/sh/sh.c (prepare_move_operands): Likewise.
86         (output_stack_adjust, sh_expand_epilogue): Likewise.
87         (sh_set_return_address, sh_expand_t_scc): Likewise.
88         * config/sparc/sparc.c (load_pic_register): Likewise.
89         * config/sparc/sparc.md (untyped_return, nonlocal_goto): Likewise.
90         * config/spu/spu.c (spu_expand_epilogue): Likewise.
91         * config/v850/v850.c (expand_epilogue): Likewise.
92
93 2008-05-31  Anatoly Sokolov  <aesok@post.ru>
94
95         * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): New constants.
96         (UNSPECV_WRITE_SP_IRQ_OFF): (Ditto.).
97         (movhi_sp_r_irq_off, movhi_sp_r_irq_on): New insn.
98         * config/avr/avr.c (expand_prologue, expand_epilogue): Use 
99         movhi_sp_r_irq_off and movhi_sp_r_irq_on insns for writing to the 
100         stack pointer register.
101         (output_movhi): Remove code for interrupt specific writing to the 
102         stack pointer register.
103
104 2008-05-31  Richard Guenther  <rguenther@suse.de>
105
106         PR tree-optimization/34244
107         * fold-const.c (tree_expr_nonnegative_warnv_p): Do not ask VRP.
108         (tree_expr_nonzero_warnv_p): Likewise.
109         * tree-vrp.c (vrp_expr_computes_nonnegative): Call
110         ssa_name_nonnegative_p.
111         (vrp_expr_computes_nonzero): Call ssa_name_nonzero_p.
112         (extract_range_from_unary_expr): Use vrp_expr_computes_nonzero,
113         not tree_expr_nonzero_warnv_p.
114
115         PR tree-optimization/36262
116         Revert
117         2007-11-29  Zdenek Dvorak  <ook@ucw.cz>
118
119         PR tree-optimization/34244
120         * tree-vrp.c (adjust_range_with_scev): Clear scev cache.
121         (record_numbers_of_iterations): New function.
122         (execute_vrp): Cache the numbers of iterations of loops.
123         * tree-scalar-evolution.c (scev_reset_except_niters):
124         New function.
125         (scev_reset): Use scev_reset_except_niters.
126         * tree-scalar-evolution.h (scev_reset_except_niters): Declare.
127
128 2008-05-31  Bernd Schmidt  <bernd.schmidt@analog.com>
129
130         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
131         __WORKAROUND_RETS when appropriate.
132
133 2008-05-31  Uros Bizjak  <ubizjak@gmail.com>
134
135         * config/i386/i386.md (*fop_<mode>_comm_mixed): Macroize from
136         *fop_sf_comm_mixed and *fop_df_comm_mixed insn patterns using MODEF
137         mode iterator.
138         (*fop_<mode>_comm_sse): Macroize from *fop_sf_comm_sse and
139         *fop_df_comm_sse insn patterns using MODEF mode iterator.
140         (*fop_<mode>_comm_i387): Macroize from *fop_sf_comm_i387 and
141         *fop_df_comm_i387 insn patterns using MODEF mode iterator.
142         (*fop_<mode>_1_mixed): Macroize from *fop_sf_1_mixed and
143         *fop_df_1_mixed insn patterns using MODEF mode iterator.
144         (*fop_<mode>_1_sse): Macroize from *fop_sf_1_sse and
145         *fop_df_1_sse insn patterns using MODEF mode iterator.
146         (*fop_<mode>_1_i387): Macroize from *fop_sf_1_i387 and
147         *fop_df_1_i387 insn patterns using MODEF mode iterator.
148         (*fop_<MODEF:mode>_2_i387): Macroize from *fop_sf_2<mode>_i387 and
149         *fop_df_2<mode>_i387 insn patterns using MODEF mode iterator.
150         (*fop_<MODEF:mode>_3_i387): Macroize from *fop_sf_3<mode>_i387 and
151         *fop_df_3<mode>_i387 insn patterns using MODEF mode iterator.
152         (*fop_xf_2_i387): Rename from *fop_xf_2<mode>_i387.
153         (*fop_xf_3_i387): Rename from *fop_xf_3<mode>_i387.
154         (*fop_xf_4_i387): Use <MODE> for mode attribute.
155         (*fop_xf_5_i387): Ditto.
156         (*fop_xf_6_i387): Ditto.
157
158 2008-05-30  Richard Guenther  <rguenther@suse.de>
159
160         * builtins.c (build_string_literal): Avoid generating
161         a non-gimple_val result.
162
163 2008-05-30  DJ Delorie  <dj@redhat.com>
164
165         * exec-tool.in: Use an environment variable (private) instead of a
166         file (shared) as a semaphore, so as to not break parallel builds.
167
168 2008-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
169
170         * optabs.c (maybe_encapsulate_block): Remove.
171         (emit_libcall_block): Adjust accordingly.
172         * optabs.h (maybe_encapsulate_block): Remove prototype.
173
174         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address):
175         Don't use maybe_encapsulate_block.
176
177 2008-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
178
179         * config/rs6000/rs6000.c (rs6000_legitimize_address,
180         rs6000_legitimize_reload_address, rs6000_emit_move): Make sure an
181         rtx is a SYMBOL_REF before calling get_pool_constant.
182
183 2008-05-30  Eric Botcazou  <ebotcazou@adacore.com>
184
185         * fold-const.c (fold_unary) <CASE_CONVERT>: Add ??? comment.
186
187 2008-05-30  Danny Smith  <dannysmith@users.sourceforge.net>
188
189         * incpath.c: Use HOST_LACKS_INODE_NUMBERS conditional
190         rather than OS names to choose INO_T_EQ definition.
191         (DIRS_EQ) [!INO_T_EQ]: Don't worry about case in comparison.
192         (add_path) [!INO_T_EQ]: Use lrealpath to fill canonical_name field.
193
194 2008-05-29  Daniel Franke  <franke.daniel@gmail.com>
195
196         PR target/36348
197         * config/darwin-f.c: New.
198         * config/t-darwin: Added rule to build darwin-f.o.
199         * config.gcc: Defined new variable, fortran_target_objs.
200         (*-*-darwin*): Set fortran_target_objs.
201         * Makefile.in: Defined new variable FORTRAN_TARGET_OBJS.
202         * configure.ac: Substitute fortran_target_objs, set FORTRAN_TARGET_OBJS.
203         * configure: Regenerated.
204
205 2008-05-29  H.J. Lu  <hongjiu.lu@intel.com>
206
207         PR target/35771
208         * config/i386/i386.c (ix86_function_arg_boundary): Convert to
209         canonical type if needed.
210
211 2008-05-29  Eric Botcazou  <ebotcazou@adacore.com>
212
213         * tree-nested.c (check_for_nested_with_variably_modified): Fix typo.
214
215 2008-05-29  Richard Guenther  <rguenther@suse.de>
216
217         PR tree-optimization/36343
218         PR tree-optimization/36346
219         PR tree-optimization/36347
220         * tree-flow.h (clobber_what_p_points_to): Declare.
221         * tree-ssa-structalias.c (set_uids_in_ptset): Whether the
222         pointed-to variable is dereferenced is irrelevant to whether
223         the pointer can access the pointed-to variable.
224         (clobber_what_p_points_to): New function.
225         * tree-ssa-alias.c (set_initial_properties): Use it.
226         * tree-ssa.c (verify_flow_sensitive_alias_info): Adjust
227         call clobber check for NMTs.
228
229 2008-05-28  Seongbae Park  <seongbae.park@gmail.com>
230         
231         * value-prof.c (tree_ic_transform): Use HOST_WIDEST_INT_PRINT_DEC
232         for printing gcov_type.
233
234 2008-05-28  Seongbae Park  <seongbae.park@gmail.com>
235
236         * tree-ssa-propagate.c (set_rhs): Preserve the histogram
237         and the eh region information.
238         * value-prof.c (gimple_move_stmt_histograms): New function.
239         * value-prof.h (gimple_move_stmt_histograms): New function declaration.
240
241 2008-05-28  Andreas Tobler  <a.tobler@schweiz.org>
242
243         * config/pa/pa.md: Remove extern frame_pointer_needed declaration.
244
245 2008-05-28  Seongbae Park <seongbae.park@gmail.com>
246
247         * value-prof.c (tree_ic_transform): Print counts.
248         * tree-profile.c (tree_gen_ic_func_profiler):
249         Clear __gcov_indreict_call_callee variable to avoid misattribution
250         of the profile.
251
252 2008-05-28  Rafael Espindola  <espindola@google.com>
253
254         * see.c (see_def_extension_not_merged): Use copy_rtx_if_shared to avoid
255         invalid sharing.
256
257 2008-05-28  Richard Guenther  <rguenther@suse.de>
258
259         PR tree-optimization/36339
260         * tree-ssa-alias.c (set_initial_properties): Move pt_anything
261         and clobbering code out of the loop.
262
263 2008-05-28  Andreas Krebbel  <krebbel1@de.ibm.com>
264
265         * config/s390/constraints.md ('b', 'C', 'D', 'e'): New constraint
266         letters defined.
267
268         * config/s390/s390.c (s390_compare_and_branch_condition_mask,
269         s390_contiguous_bitmask_p, s390_symref_operand_p,
270         s390_check_symref_alignment, s390_reload_larl_operand,
271         s390_reload_symref_address): New functions.
272         (s390_branch_condition_mnemonic): Support compare and branch
273         instructions.
274         (s390_mem_constraint): Avoid symrefs to accepted by the 'T'
275         and 'W' constraints.
276         (s390_secondary_reload): Add secondary reloads for unaligned
277         symbol refs or symbol refs to floating point or QI/TI mode
278         integer values.
279         (legitimate_address_p): Accept symbol references as addresses.
280         (s390_expand_insv): Use rotate and insert selected bits
281         instruction for insv when building for z10.
282         (print_operand_address): Handle symbol ref addresses.
283         (print_operand): Output modifier 'c' added for signed byte values.
284         (s390_encode_section_info): Mark symbol refs with
285         SYMBOL_FLAG_NOT_NATURALLY_ALIGNED if appropriate.
286
287         * config/s390/s390.md (SIL,RRS,RIS): New instruction formats added.
288         (length attribute): RRF, RRR have 4 byte length.
289         (FPALL, INTALL): New mode iterators added.
290         (*tstdi_sign, *cmpdi_ccs_sign, *cmpsi_ccs_sign,
291         *cmp<mode>_ccs, *cmpdi_ccu_zero, *cmpdi_ccu, *cmpsi_ccu, *cmphi_ccu,
292         *movdi_64, *movsi_zarch, *movhi, movmem<mode>, *movmem_short,
293         *extendsidi2, *extendhidi2_extimm, *extendhisi2_extimm,
294         *zero_extendsidi2, adddi3, *adddi3_31z, *adddi3_31, addsi3,
295         *add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry2_cc,
296         *add<mode>3_cc, *add<mode>3_imm_cc, *muldi3_sign, muldi3,
297         *mulsi3_sign, mulsi3, mulsidi3): Patterns enhanced with z10
298         instructions.
299         (*cmphi_ccs_z10, *cmpdi_ccs_signhi_rl, *cmpsi_ccu_zerohi_rlsi,
300         *cmp<GPR:mode>_ccu_zerohi_rldi, *cmp_and_br_signed_<mode>,
301         *cmp_and_br_unsigned_<mode>, reload<INTALL:mode><P:mode>_tomem_z10,
302         reload<INTALL:mode><P:mode>_toreg_z10,
303         reload<FPALL:mode><P:mode>_tomem_z10,
304         reload<FPALL:mode><P:mode>_toreg_z10,
305         reload<P:mode>_larl_odd_addend_z10, *execute_rl, *insv<mode>_z10,
306         *insv<mode>_z10_noshift, *insv<mode>_or_z10_noshift,
307         *zero_extendhi<mode>2_z10, *cmp_and_trap_signed_int<mode>,
308         *cmp_and_trap_unsigned_int<mode>, prefetch): New pattern or expander
309         definition.
310         (movmem, clrmem, cmpmem): New splitters added.
311
312         * config/s390/predicates.md (larl_operand): Use
313         SYMBOL_REF_FLAGS (op) & SYMBOL_FLAG_ALIGN1 replaced with
314         SYMBOL_REF_ALIGN1_P.
315         (s390_signed_integer_comparison,
316         s390_unsigned_integer_comparison): New predicates.
317
318         * config/s390/s390-protos.h (s390_check_symref_alignment,
319         s390_contiguous_bitmask_p, s390_reload_larl_operand,
320         s390_reload_symref_address,
321         s390_compare_and_branch_condition_mask): Prototypes added.
322
323         * config/s390/s390.h (TARGET_MEM_CONSTRAINT,
324         SYMBOL_REF_ALIGN1_P, SYMBOL_FLAG_NOT_NATURALLY_ALIGNED,
325         SYMBOL_REF_NOT_NATURALLY_ALIGNED_P): Macro definition added.
326
327 2008-05-28  Andreas Krebbel  <krebbel1@de.ibm.com>
328
329         * config/s390/s390.c (z10_cost): New cost function for z10.
330         (s390_handle_arch_option, override_options): Support -march=z10 switch.
331         (s390_issue_rate): Adjust issue rate for z10.
332         * config/s390/s390.h (processor_type): Add PROCESSOR_2097_Z10.
333         (processor_flags): Add PF_Z10.
334         (TARGET_CPU_Z10, TARGET_Z10): New macro definitions.
335         * config/s390/s390.md (cpu, cpu_facility attributes): Add z10.
336         * gcc/config.gcc: Add z10.
337
338 2008-05-28  Richard Guenther  <rguenther@suse.de>
339
340         PR tree-optimization/36291
341         * tree-flow. h (struct gimple_df): Remove var_anns member.
342         * tree-flow-inline.h (gimple_var_anns): Remove.
343         (var_ann): Simplify.
344         * tree-dfa.c (create_var_ann): Simplify.
345         (remove_referenced_var): Clear alias info from var_anns of globals.
346         * tree-ssa.c (init_tree_ssa): Do not allocate var_anns.
347         (delete_tree_ssa): Clear alias info from var_anns of globals.
348         Do not free var_anns.
349         (var_ann_eq): Remove.
350         (var_ann_hash): Likewise.
351
352 2008-05-28  Mark Shinwell  <shinwell@codesourcery.com>
353
354         * config/mips/mips.c (mips_cpu_info_table): Add loongson2e
355         and loongson2f entries.
356         (mips_rtx_cost_data): Add entries for Loongson-2E/2F.
357         * config/mips/mips.h (processor_type): Add Loongson-2E
358         and Loongson-2F entries.
359         (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF): New.
360         (MIPS_ISA_LEVEL_SPEC): Handle Loongson-2E/2F.
361         * config/mips/mips.md (define_attr cpu): Add loongson2e and loongson2f.
362         * doc/invoke.texi (MIPS Options): Document loongson2e
363         and loongson2f processor names.
364
365 2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>
366
367         PR target/35767
368         PR target/35771
369         * config/i386/i386.c (ix86_function_arg_boundary): Use
370         alignment of canonical type.
371         (ix86_expand_vector_move): Check unaligned memory access for
372         all SSE modes.
373
374 2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>
375
376         * dwarf2out.c (current_fde): Change return type to dw_fde_ref.
377         Moved to the front of file.
378
379 2008-05-27  Xuepeng Guo  <xuepeng.guo@intel.com>
380             H.J. Lu  <hongjiu.lu@intel.com>
381
382         * dwarf2out.c (current_fde): New.
383         (add_cfi): Use it.
384         (lookup_cfa:): Likewise.
385         (dwarf2out_end_epilogue): Likewise.
386         (dwarf2out_note_section_used): Likewise.
387
388 2008-05-27  Michael Matz  <matz@suse.de>
389
390         PR c++/27975
391         * c.opt (Wenum-compare): New warning option.
392         * doc/invoke.texi  (Warning Options): Document -Wenum-compare.
393
394 2008-05-27  Michael Matz  <matz@suse.de>
395
396         PR middle-end/36326
397         * tree-gimple.c (is_gimple_mem_rhs): Remove work-around for
398         non-BLKmode types.
399         * tree-tailcall.c (find_tail_calls): Don't mark calls storing
400         into memory as tail calls.
401
402 2008-05-27  Richard Guenther  <rguenther@suse.de>
403
404         PR tree-optimization/36339
405         * tree-ssa-alias.c (set_initial_properties): Escaped pt_anything
406         pointers cause all addressable variables to be call clobbered.
407
408 2008-05-27  Richard Guenther  <rguenther@suse.de>
409
410         PR tree-optimization/36245
411         * tree-ssa-address.c (add_to_parts): Deal with non-pointer bases.
412
413 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
414
415         * config/s390/s390.md: Replace all occurences of the 'm'
416         constraint with 'RT'.
417
418 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
419
420         * config/s390/s390.md ("cpu_facility", "enabled"): Attribute
421         definitions added.
422         ("*movdi_64dfp", "*movdi_64extimm", "*movdi_64"): Merged into
423         "*movdi_64".
424         ("*anddi3_extimm", "*anddi3"): Merged into "*anddi3".
425         ("*iordi3_extimm", "*iordi3"): Merged into "*iordi3".
426         ("*xordi3_extimm", "*xordi3"): Merged into "*xordi3".
427
428 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
429
430         * reload.c: (find_reloads): Skip alternatives according to the
431         "enabled" attribute. Constify the constraint variable.
432         * recog.c (get_attr_enabled): Add default implementation.
433         (extract_insn): Set the alternative_enabled_p array
434         in the recog_data struct.
435         (preprocess_constraints, constrain_operands): Skip
436         alternatives according to the "enabled" attribute
437         * recog.h (struct recog_data): New field alternative_enabled_p.
438         (skip_alternative): New inline function.
439         * regclass.c: (record_operand_costs): Check the "enabled" attribute.
440         (record_reg_classes): Skip alternative according to the
441         "enabled" attribute.
442
443         * doc/md.texi: Add documention for the "enabled" attribute.
444
445 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
446
447         * defaults.h (TARGET_MEM_CONSTRAINT): New target macro added.
448         * postreload.c (reload_cse_simplify_operands): Replace 'm'
449         constraint with TARGET_MEM_CONSTRAINT.
450         * recog.c (asm_operand_ok, preprocess_constraints,
451         constrain_operands): Likewise.
452         * regclass.c (record_reg_classes): Likewise.
453         * reload.c (find_reloads, alternative_allows_const_pool_ref): Likewise.
454         * reload1.c (maybe_fix_stack_asms): Likewise.
455         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
456         * recog.h: Adjust comment.
457         * genpreds.c (generic_constraint_letters): Remove 'm' constraint.
458         * genoutput.c (note_constraint): Don't emit error for 'm' constraint.
459         * doc/md.texi: Add a note to description of 'm' constraint.
460         * doc/tm.texi: Document the new TARGET_MEM_CONSTRAINT macro.
461
462 2008-05-27  Eric Botcazou  <ebotcazou@adacore.com>
463
464         * tree-sra.c (sra_type_can_be_decomposed_p) <RECORD_TYPE>: Make sure
465         that the bitfield is of integral type before testing its precision.
466
467 2008-05-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
468             Sa Liu  <saliu@de.ibm.com> 
469
470         * config/spu/spu.c (spu_init_libfuncs): Add __multi3, __divti3, 
471         __modti3, __udivti3, __umodti3 and __udivmodti4.
472         * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add files
473         that implement TImode mul and div functions.
474         * config/spu/multi3.c: New. Implement __multi3.
475         * config/spu/divmodti4.c: New. Implement _udivmodti4 and others.
476         * testsuite/gcc.target/spu/muldivti3.c: New. Test TImode mul and div
477         functions on SPU.
478
479 2008-05-26  Steven Bosscher  <stevenb.gcc@gmail.com>
480
481         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Generate
482         new tls_gd_* and tls_ld_* insns instead of an insn sequence.
483         * config/rs6000/rs6000.md (TLSmode, tls_abi_suffix, tls_insn_suffix,
484         tls_sysv_suffix): New mode and mode attribute iterators.
485         (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64): Remove.
486         (lts_gd_aix*, tls_gd_sysv*, tls_ld_aix*, tls_ld_sysv*): New patterns.
487         (tls_dtprel_*, tls_dtprel_ha_*, tls_dtprel_lo_*, tls_got_dtprel_*,
488         tls_tprel_*, tls_tprel_ha_*, tls_tprel_lo_*, tls_got_tprel_*,
489         tls_tls_*): Merge 32 bit and 64 bit variants using aforementioned
490         iterators.
491
492 2008-05-26  Eric Botcazou  <ebotcazou@adacore.com>
493
494         PR tree-optimization/36329
495         * tree.h (CALL_CANNOT_INLINE_P): Add access check.
496         * tree-gimple.h (CALL_STMT_CANNOT_INLINE_P): New macro.
497         * cgraphbuild.c (initialize_inline_failed): Use the latter
498         macro in lieu of the former.
499         * ipa-inline.c (cgraph_mark_inline): Likewise.
500         (cgraph_decide_inlining_of_small_function): Likewise.
501         (cgraph_decide_inlining): Likewise.
502         (cgraph_decide_inlining_incrementally): Likewise.
503
504 2008-05-26  Tristan Gingold  <gingold@adacore.com>
505             Anatoly Sokolov  <aesok@post.ru>
506
507         * config/avr/avr.md ("call_prologue_saves"): Use hi8(gs())/lo8(gs())
508         instead of pm_lo8/pm_hi8 to makes this call working on avr6.
509         * config/avr/avr.c (expand_prologue): Tune "call_prologue" 
510         optimization for 'avr6' architecture.
511
512 2008-05-26  Andy Hutchinson  <hutchinsonandy@aim.com>
513
514         PR target/34932
515         * config/avr/avr.md (*addhi3_zero_extend2): Remove.
516
517 2008-05-26  Richard Guenther  <rguenther@suse.de>
518
519         * tree-ssa-sccvn.c (expr_has_constants): Declare.
520         (visit_reference_op_load): Initialize VN_INFO->has_constants properly.
521
522 2008-05-26  H.J. Lu  <hongjiu.lu@intel.com>
523
524         PR middle-end/36253
525         * caller-save.c (insert_restore): Verify alignment of spill space.
526         (insert_save): Likewise.
527         * cfgexpand.c (LOCAL_ALIGNMENT): Removed.
528         * defaults.h (LOCAL_ALIGNMENT): New. Provide default.
529         (STACK_SLOT_ALIGNMENT): Likewise.
530         * function.c (LOCAL_ALIGNMENT): Removed.
531         (get_stack_local_alignment): New.
532         (assign_stack_local): Use it.  Set alignment on stack slot.
533         (assign_stack_temp_for_type): Use get_stack_local_alignment.
534         * config/i386/i386.h (LOCAL_ALIGNMENT): Updated.
535         (STACK_SLOT_ALIGNMENT): New.
536         * config/i386/i386.c (ix86_local_alignment): Handle caller-save
537         stack slot in XFmode.
538
539         * doc/tm.texi (STACK_SLOT_ALIGNMENT): New.
540
541 2008-05-26  Kai Tietz  <kai.tietz@onevision.com>
542
543         PR/36321
544         * config/i386/i386.md (allocate_stack_worker_64): Make sure
545         argument operand in rax isn't removed.
546
547 2008-05-26  Richard Guenther  <rguenther@suse.de>
548
549         PR middle-end/36300
550         * fold-const.c (extract_muldiv_1): Use TYPE_OVERFLOW_WRAPS,
551         not TYPE_UNSIGNED.  Use TYPE_PRECISION instead of GET_MODE_SIZE.
552
553 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
554
555         PR bootstrap/36331
556         * c-cppbuiltin.c (define__GNUC__): Re-add definition of __GNUG__.
557
558 2008-05-26  Dominique Dhumieres  <dominiq@lps.ens.fr>
559
560         * config/darwin-c.c: Include "incpath.h" instead of "c-incpath.h".
561         * config/t-darwin: Use "incpath.h" instead of "c-incpath.h".
562
563 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
564
565         * tree-nested.c (convert_tramp_reference) <ADDR_EXPR>: Do not
566         build a trampoline if we don't want one.
567         * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Do not
568         return zero for nested functions if we don't want a trampoline.
569
570 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
571
572         * doc/invoke.texi: Added f77, f77-cpp-input to list of file types.
573
574 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
575
576         PR fortran/18428
577         * c.opt: Removed undocumented option '-lang-fortran'.
578         * c-common.h: Removed global variable 'lang_fortran'.
579         * c-opts.c (c_common_handle_option): Removed code to handle
580         option '-lang-fortran'. Updated includes.
581         * c-cppbuiltin.c (c_cpp_builtins): Removed conditional
582         definition of '__GFORTRAN__'.
583         (define__GNUC__): Reimplemented to use BASEVER and
584         cpp_define_formatted.
585         (builtin_define_with_value_n): Removed.
586         * c-incpath.h: Renamed to ...
587         * incpath.h: ... this.
588         * c-incpath.c: Renamed to ...
589         * incpath.c: ... this. Updated includes.
590         * fix-header.c: Updated includes.
591         * Makefile.in: Replaced c-incpath.[ch] by incpath.[ch].
592         (c-cppbuiltin.o): Added dependency on and definition of BASEVER.
593         (OBJ-archive): Added cppdefault.o, incpath.o and prefix.o.
594
595 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
596
597         * tree.h: Update the table of flags used on tree nodes.
598         (TREE_NO_TRAMPOLINE): New accessor for static_flag.
599         (SAVE_EXPR_RESOLVED_P): Use automatically-built access check.
600         (FORCED_LABEL): Add access check.
601         (CALL_EXPR_RETURN_SLOT_OPT): Likewise.
602         (ASM_INPUT_P): Likewise.
603         (ASM_VOLATILE_P): Likewise.
604         (EH_FILTER_MUST_NOT_THROW): Access static_flag directly.
605         (OMP_SECTION_LAST): Access private_flag directly.
606         (OMP_RETURN_NOWAIT): Likewise.
607         (OMP_PARALLEL_COMBINED): Likewise.
608         (OMP_CLAUSE_PRIVATE_DEBUG): Access public_flag directly.
609         (OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE): Likewise.
610         * tree-ssa-propagate.c (STMT_IN_SSA_EDGE_WORKLIST): Access
611         deprecated_flag directly.
612
613 2008-05-25  H.J. Lu  <hongjiu.lu@intel.com>
614
615         * final.c (frame_pointer_needed): Removed.
616         * flags.h (frame_pointer_needed): Likewise.
617
618         * function.h (rtl_data): Add frame_pointer_needed.
619         (frame_pointer_needed): New.
620
621 2008-05-25  Arthur Loiret  <arthur.loiret@u-psud.fr>
622
623         * config.gcc (sh2[lbe]*-*-linux*): Allow target.
624
625 2008-05-25  Steven Bosscher  <stevenb.gcc@gmail.com>
626
627         * gcse.c (hash_scan_set): Do not pick up a REG_EQUAL value if
628         SRC is a REG.
629
630 2008-05-25  Alan Modra  <amodra@bigpond.net.au>
631
632         * c-common.c (strip_array_types): Move function to..
633         * tree.c: ..here.
634         (get_inner_array_type): Delete.
635         * c-common.h (strip_array_types): Move declaration to..
636         * tree.h: ..here.
637         (get_inner_array_type): Delete.
638         * config/i386/i386.c (x86_field_alignment): Use strip_array_types.
639         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
640         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
641         * config/pa/pa.c (emit_move_sequence): Likewise.
642
643 2008-05-24  H.J. Lu  <hongjiu.lu@intel.com>
644
645         * config/i386/i386.md (*sse_prologue_save_insn): Set length
646         attribute to 34.
647
648 2008-05-24  Andy Hutchinson  <hutchinsonandy@aim.com>
649
650         * function.c: Include target hook for nonlocal_goto frame value.
651
652 2008-05-24  Richard Guenther  <rguenther@suse.de>
653
654         * tree-dfa.c (refs_may_alias_p): Re-instantiate case that a scalar
655         variable can be only accessed through a pointer or a union.
656
657 2008-05-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
658
659         * builtins.c (fold_builtin_fpclassify): Fix spelling of FP_INFINITE.
660         * doc/extend.texi: Likewise.
661
662 2008-05-23  DJ Delorie  <dj@redhat.com>
663
664         * config/m32c/jump.md (untyped_call): Add.
665
666         * config/m32c/m32c.c (m32c_return_addr_rtx): Change pointer type
667         for A24 to PSImode.
668         (m32c_address_cost): Detail costs for indirect offsets.
669
670 2008-05-23  Rafael Espindola  <espindola@google.com>
671
672         * see.c (see_get_extension_data): Don't use SUBREG_REG to test
673         if a node is a SUBREG.
674         (see_analyze_one_def): Don't use SUBREG_REG to test if a node
675         is a SUBREG.
676
677 2008-05-23  Paul Brook  <paul@codesourcery.com>
678             Carlos O'Donell  <carlos@codesourcery.com>
679
680         * doc/extend.texi: Clarify use of __attribute__((naked)).
681         * doc/tm.texi: Document TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
682         * target.h (gcc_target): Add allocate_stack_slots_for_args.
683         * function.c (use_register_for_decl): Use
684         targetm.calls.allocate_stack_slots_for_args.
685         * target-def.h (TARGET_CALLS): Add TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
686         * config/arm/arm.c (arm_allocate_stack_slots_for_args): New function.
687         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
688
689 2008-05-23  Eric Botcazou  <ebotcazou@adacore.com>
690
691         * expr.c (highest_pow2_factor) <BIT_AND_EXPR>: New case.
692
693 2008-05-23  Steven Munroe  <sjmunroe@us.ibm.com>
694
695         * config/rs6000/darwin-ldouble.c (fmsub): Eliminate the full
696         PACK/UNPACK between FP_SUB_Q and FD_TRUNC so that the result
697         is only rounded once.
698
699 2008-05-23  Richard Guenther  <rguenther@suse.de>
700
701         * tree-ssa-operands.c (mark_difference_for_renaming): Use bitmap_xor.
702
703 2008-05-23  Uros Bizjak  <ubizjak@gmail.com>
704             Jakub Jelinek  <jakub@redhat.com>
705
706         PR target/36079
707         * configure.ac: Handle --enable-cld.
708         * configure: Regenerated.
709         * config.gcc: Add USE_IX86_CLD to tm_defines for x86 targets.
710         * config/i386/i386.h (struct machine_function): Add needs_cld field.
711         (ix86_current_function_needs_cld): New define.
712         * config/i386/i386.md (UNSPEC_CLD): New unspec volatile constant.
713         (cld): New isns pattern.
714         (strmov_singleop, rep_mov, strset_singleop, rep_stos, cmpstrnqi_nz_1,
715         cmpstrnqi_1, strlenqi_1): Set ix86_current_function_needs_cld flag.
716         * config/i386/i386.opt (mcld): New option.
717         * config/i386/i386.c (ix86_expand_prologue): Emit cld insn if
718         TARGET_CLD and ix86_current_function_needs_cld.
719         (override_options): Use -mcld by default for 32-bit code if
720         USE_IX86_CLD.
721
722         * doc/install.texi (Options specification): Document --enable-cld.
723         * doc/invoke.texi (Machine Dependent Options)
724         [i386 and x86-64 Options]: Add -mcld option.
725         (Intel 386 and AMD x86-64 Options): Document -mcld option.
726
727 2008-05-23  Kai Tietz  <kai.tietz@onevison.com>
728         * config/i386/i386.c (return_in_memory_32): Add ATTRIBUTE_UNUSED.
729         (return_in_memory_64): Likewise.
730         (return_in_memory_ms_64): Likewise.
731
732 2008-05-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
733
734         * builtin-types.def (BT_FN_INT_INT_INT_INT_INT_INT_VAR): New.
735         * builtins.c (fold_builtin_fpclassify): New.
736         (fold_builtin_varargs): Handle BUILT_IN_FPCLASSIFY.
737         * builtins.def (BUILT_IN_FPCLASSIFY): New.
738         * c-common.c (handle_type_generic_attribute): Adjust to accept
739         fixed arguments before an elipsis.
740         (check_builtin_function_arguments): Handle BUILT_IN_FPCLASSIFY.
741         * doc/extend.texi: Document __builtin_fpclassify.
742
743 2008-05-22  Aldy Hernandez  <aldyh@redhat.com>
744
745         * omp-low.c (gate_expand_omp_ssa): Remove.
746         (pass_expand_omp_ssa): Remove.
747         (gate_expand_omp): Do not check for flag_openmp_ssa.
748         * common.opt (-fopenmp-ssa): Remove.
749         * passes.c (init_optimization_passes): Remove pass_expand_omp_ssa.
750
751 2008-05-22  Kaz Kojima  <kkojima@gcc.gnu.org>
752
753         * config/sh/sh.opt (mfixed-range): New option.
754         * config/sh/sh-protos.h (sh_fix_range): Declare.
755         * config/sh/sh.c (sh_fix_range): New function.
756         * config/sh/sh.h (sh_fixed_range_str): Declare.
757         (OVERRIDE_OPTIONS): Call sh_fix_range if sh_fixed_range_str
758         is not empty.
759         * doc/invoke.texi (SH Options): Document -mfixed-range.
760
761 2008-05-22  Kai Tietz  <kai.tietz@onevision.com>
762
763         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Undefine
764         it before the redeclaration.
765
766 2008-05-22  Anatoly Sokolov <aesok@post.ru>
767
768         * config/avr/avr.c (get_sequence_length): Add new function.
769         (expand_prologue, expand_epilogue): Remove duplicate code.
770
771 2008-05-22  Rafael Espindola  <espindola@google.com>
772
773         * see.c (see_pre_insert_extensions): Use copy_rtx to avoid invalid rtx
774         sharing.
775
776 2008-05-22  H.J. Lu  <hongjiu.lu@intel.com>
777
778         * defaults.h (UNITS_PER_SIMD_WORD): Add scalar mode as argument.
779         * doc/tm.texi (UNITS_PER_SIMD_WORD): Likewise.
780
781         * tree-vect-analyze.c (vect_compute_data_ref_alignment): Replace
782         UNITS_PER_SIMD_WORD with GET_MODE_SIZE (TYPE_MODE (vectype)).
783         (vect_update_misalignment_for_peel): Likewise.
784         (vector_alignment_reachable_p): Likewise.
785         * tree-vect-transform.c (vectorizable_load): Likewise.
786         * tree-vectorizer.c (vect_supportable_dr_alignment): Likewise.
787         (get_vectype_for_scalar_type): Pass mode of scalar_type
788         to UNITS_PER_SIMD_WORD.
789
790         * config/arm/arm.h (UNITS_PER_SIMD_WORD): Updated.
791         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
792         * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
793         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
794         * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
795
796 2008-05-22  Ira Rosen  <irar@il.ibm.com>
797
798         PR tree-optimization/36293
799         * tree-vect-transform.c (vect_transform_strided_load): Don't check
800         if the first load must be skipped because of a gap.
801
802 2008-05-22  Richard Guenther  <rguenther@suse.de>
803
804         * tree-dfa.c (refs_may_alias_p): Exit early if possible.  Handle
805         more cases of offset disambiguation that is possible if
806         strict-aliasing rules apply.
807         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use refs_may_alias_p
808         for basic offset and type-based disambiguation.
809
810 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
811
812         * config/i386/i386.c (ix86_expand_vector_init_one_var): Use
813         ix86_expand_vector_set on V16QImode for SSE4.1.
814
815 2008-05-21  Tom Tromey  <tromey@redhat.com>
816
817         * c.opt (Wimport): Mark as undocumented.
818         * doc/invoke.texi (Option Summary): Don't mention -Wimport or
819         -Wno-import.
820         (Warning Options): Likewise.
821         * doc/cppopts.texi: Don't mention -Wimport.
822
823 2008-05-21  Sebastian Pop  <sebastian.pop@amd.com>
824
825         PR tree-optimization/36287
826         PR tree-optimization/36286
827         * lambda-code.c (build_access_matrix): Do not use the loop->num
828         for computing the number of induction variables: use the loop depth
829         instead.
830
831 2008-05-21  Kai Tietz  <kai.tietz@onevision.com>
832
833         PR/36280
834         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Honor
835         option -f(no-)leading-underscore.
836
837 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
838
839         * config/i386/i386.c (ix86_expand_vector_init_general): Use
840         GET_MODE_NUNITS (mode).
841
842 2008-05-21  Peter Bergner  <bergner@vnet.ibm.com>
843
844         * doc/invoke.texi: Add cpu_type's 464 and 464fp.
845         (-mmulhw): Add 464 to description.
846         (-mdlmzb): Likewise.
847         * config.gcc: Handle --with-cpu=464 and --with-cpu=464fp.
848         * config/rs6000/rs6000.c (processor_target_table): Add 464 and
849         464fp entries.
850         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 464 and 464fp support.
851         * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=464.
852         * config/rs6000/rs6000.md: Update comments for 464.
853
854 2008-05-21  Janis Johnson  <janis187@us.ibm.com>
855
856         * doc/sourcebuild.texi (Test Directives): Add dg-xfail-run-if.
857
858 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
859
860         * config/i386/sse.md (vec_extractv4sf): Removed.
861         (vec_extractv2df): Likewise.
862         (vec_extractv2di): Likewise.
863         (vec_extractv4si): Likewise.
864         (vec_extractv8hi): Likewise.
865         (vec_extractv16qi): Likewise.
866         (vec_extract<mode>): New.
867
868 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
869
870         * config/i386/sse.md (vec_setv4sf): Removed.
871         (vec_setv2df): Likewise.
872         (vec_setv2di): Likewise.
873         (vec_setv4si): Likewise.
874         (vec_setv8hi): Likewise.
875         (vec_setv16qi): Likewise.
876         (vec_set<mode>): New.
877
878 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
879
880         * config/i386/i386.c (ix86_expand_vector_init_general): Remove
881         goto for vec_concat and vec_interleave.
882
883 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
884
885         * config/i386/sse.md (vec_initv4sf): Removed.
886         (vec_initv2df): Likewise.
887         (vec_initv2di): Likewise.
888         (vec_initv4si): Likewise.
889         (vec_initv8hi): Likewise.
890         (vec_initv16qi): Likewise.
891         (vec_init<mode>): New.
892
893 2008-05-21  Joseph Myers  <joseph@codesourcery.com>
894
895         * collect2.c (find_a_file): Use IS_ABSOLUTE_PATH.
896
897 2008-05-21  Tom Tromey  <tromey@redhat.com>
898
899         * ggc-zone.c (lookup_page_table_if_allocated): New function.
900         (zone_find_object_offset): Likewise.
901         (gt_ggc_m_S): Likewise.
902         (highest_bit): Likewise.
903         * ggc-page.c (gt_ggc_m_S): New function.
904         * stringpool.c (string_stack): Remove.
905         (init_stringpool): Update.
906         (ggc_alloc_string): Use ggc_alloc.
907         (maybe_delete_ident): New function.
908         (ggc_purge_stringpool): Likewise.
909         (gt_ggc_m_S): Remove.
910         * ggc-common.c (ggc_protect_identifiers): New global.
911         (ggc_mark_roots): Call ggc_purge_stringpool.  Use
912         ggc_protect_identifiers.
913         * ggc.h (ggc_protect_identifiers): Declare.
914         (gt_ggc_m_S): Update.
915         (ggc_purge_stringpool): Declare.
916         * toplev.c (compile_file): Set and reset ggc_protect_identifiers.
917         * gengtype.c (write_types_process_field) <TYPE_STRING>: Remove
918         special case.
919         (write_root): Cast gt_ggc_m_S to gt_pointer_walker.
920
921 2008-05-21  David S. Miller  <davem@davemloft.net>
922
923         * config.gcc (sparc-*-linux*): Always include sparc/t-linux in
924         tmake_file.
925
926 2008-05-21  Eric Botcazou  <ebotcazou@adacore.com>
927
928         * cfgexpand.c (tree_expand_cfg): Zap the EH throw statement table
929         once finished.
930
931 2008-05-20  David Daney  <ddaney@avtrex.com>
932
933         * config/mips/mips.md (UNSPEC_SYNC_NEW_OP_12,
934         UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE_12): New define_constants.
935         (UNSPEC_SYNC_EXCHANGE, UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
936         UNSPEC_UPDATE_GOT_VERSION): Renumber.
937         (optab, insn): Add 'plus' and 'minus' to define_code_attr.
938         (atomic_hiqi_op): New define_code_iterator.
939         (sync_compare_and_swap<mode>): Call mips_expand_atomic_qihi instead of
940         mips_expand_compare_and_swap_12.
941         (compare_and_swap_12): Use MIPS_COMPARE_AND_SWAP_12 instead of
942         MIPS_COMPARE_AND_SWAP_12_0.  Pass argument to MIPS_COMPARE_AND_SWAP_12.
943         (sync_<optab><mode>, sync_old_<optab><mode>,
944         sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
945         sync_new_nand<mode>): New define_expands for HI and QI mode operands.
946         (sync_<optab>_12, sync_old_<optab>_12, sync_new_<optab>_12,
947         sync_nand_12, sync_old_nand_12, sync_new_nand_12): New insns.
948         (sync_lock_test_and_set<mode>): New define_expand for HI and QI modes.
949         (test_and_set_12): New insn.
950         (sync_old_add<mode>, sync_new_add<mode>, sync_old_<optab><mode>,
951         sync_new_<optab><mode>, sync_old_nand<mode>,
952         sync_new_nand<mode>, sync_lock_test_and_set<mode>):  Add early
953         clobber to operand 0 for SI and DI mode insns.
954         * config/mips/mips-protos.h (mips_gen_fn_6, mips_gen_fn_5,
955         mips_gen_fn_4): New typedefs.
956         (mips_gen_fn_ptrs): Define new union type.
957         (mips_expand_compare_and_swap_12): Remove declaration.
958         (mips_expand_atomic_qihi): Declare function.
959         * config/mips/mips.c (mips_expand_compare_and_swap_12): Rename to...
960         (mips_expand_atomic_qihi): ... this.  Use new generator function
961         parameter.
962         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): Add OPS parameter.
963         (MIPS_COMPARE_AND_SWAP_12_0): Delete macro.
964         (MIPS_COMPARE_AND_SWAP_12_ZERO_OP, MIPS_COMPARE_AND_SWAP_12_NONZERO_OP,
965         MIPS_SYNC_OP_12, MIPS_SYNC_OP_12_NOT_NOP,
966         MIPS_SYNC_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12,
967         MIPS_SYNC_OLD_OP_12_NOT_NOP, MIPS_SYNC_OLD_OP_12_NOT_NOP_REG,
968         MIPS_SYNC_OLD_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12_NOT_NOT_REG,
969         MIPS_SYNC_NEW_OP_12, MIPS_SYNC_NEW_OP_12_NOT_NOP,
970         MIPS_SYNC_NEW_OP_12_NOT_NOT, MIPS_SYNC_EXCHANGE_12,
971         MIPS_SYNC_EXCHANGE_12_ZERO_OP, MIPS_SYNC_EXCHANGE_12_NONZERO_OP):
972         New macros.
973
974 2008-05-20  H.J. Lu  <hongjiu.lu@intel.com>
975
976         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Add
977         the missing break.
978
979 2008-05-20  Anatoly Sokolov <aesok@post.ru>
980
981         * config/avr/avr.h (machine_function): Add 'is_OS_main' field.
982         * config/avr/avr.c (avr_OS_main_function_p): Add new function.
983         (avr_attribute_table): Add 'OS_main' function attribute.
984         (avr_regs_to_save, expand_prologue, expand_epilogue): Handle
985         functions with 'OS_main' attribute.
986
987 2008-05-20  Richard Guenther  <rguenther@suse.de>
988
989         PR tree-optimization/35204
990         * tree-ssa-sccvn.c (extract_and_process_scc_for_name): New
991         helper, split out from ...
992         (DFS): ... here.  Make the DFS walk non-recursive.
993
994 2008-05-20  Sebastian Pop  <sebastian.pop@amd.com>
995             Jan Sjodin  <jan.sjodin@amd.com>
996
997         PR tree-optimization/36181
998         * tree-parloops.c (loop_has_vector_phi_nodes): New.
999         (parallelize_loops): Don't parallelize when the loop has vector
1000         phi nodes.
1001
1002 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
1003             Sebastian Pop  <sebastian.pop@amd.com>
1004
1005         * tree-loop-linear.c (gather_interchange_stats): Look in the access
1006         matrix, and never look at the tree representation of the memory
1007         accesses.
1008         (linear_transform_loops): Computes parameters and access matrices.
1009         * tree-data-ref.c (compute_data_dependences_for_loop): Returns false
1010         when fails.
1011         (access_matrix_get_index_for_parameter): New.
1012         * tree-data-ref.h (struct access_matrix): New.
1013         (AM_LOOP_NEST_NUM, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
1014         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
1015         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT,
1016         am_vector_index_for_loop): New.
1017         (struct data_reference): Add field access_matrix.
1018         (DR_ACCESS_MATRIX): New.
1019         (compute_data_dependences_for_loop): Update declaration.
1020         (lambda_collect_parameters, lambda_compute_access_matrices): Declared.
1021         * lambda.h (lambda_vector_vec_p): Declared.
1022         * lambda-code.c: Depend on pointer-set.h.
1023         (lambda_collect_parameters_from_af, lambda_collect_parameters,
1024         av_for_af_base, av_for_af, build_access_matrix,
1025         lambda_compute_access_matrices): New.
1026         * Makefile.in (lambda-code.o): Depend on pointer-set.h.
1027
1028 2008-05-20  Joseph Myers  <joseph@codesourcery.com>
1029
1030         * doc/install.texi2html: Generate gcc-vers.texi in $DESTDIR not
1031         $SOURCEDIR/include.
1032
1033 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
1034             Sebastian Pop  <sebastian.pop@amd.com>
1035
1036         PR tree-optimization/36206
1037         * tree-scalar-evolution.c: Remove enum INSERT_SUPERLOOP_CHRECS,
1038         FOLD_CONVERSIONS.
1039         (instantiate_scev_1): Rename flags to fold_conversions.
1040         Do not check for INSERT_SUPERLOOP_CHRECS, keep SSA_NAMEs defined
1041         outeside instantiation_loop.
1042         * tree-chrec.h (evolution_function_is_affine_in_loop): New.
1043         (evolution_function_is_affine_or_constant_p): Removed.
1044         * tree-data-ref.c (dr_analyze_indices): Replace resolve_mixers with
1045         instantiate_scev.
1046         (analyze_siv_subscript): Pass in the loop nest number.
1047         Call evolution_function_is_affine_in_loop instead of 
1048         evolution_function_is_affine_p.
1049         (analyze_overlapping_iterations): Pass in the loop nest number.
1050
1051 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
1052             Sebastian Pop  <sebastian.pop@amd.com>
1053
1054         PR tree-optimization/36206
1055         * tree-chrec.h (chrec_fold_op): New.
1056         * tree-data-ref.c (initialize_matrix_A): Traverse NOP_EXPR, PLUS_EXPR,
1057         and other trees.
1058
1059 2008-05-20  Nathan Sidwell  <nathan@codesourcery.com>
1060
1061         * c-incpath.c (INO_T_EQ): Do not define on non-inode systems.
1062         (DIRS_EQ): New.
1063         (remove_duplicates): Do not set inode on non-inode systems.
1064         Use DIRS_EQ.
1065
1066 2008-05-20  Sandra Loosemore  <sandra@codesourcery.com>
1067
1068         * config.gcc (tm_file): Update comments about relative pathnames.
1069
1070 2008-05-20  Richard Guenther  <rguenther@suse.de>
1071
1072         * tree-ssa-reassoc.c (fini_reassoc): Use the statistics infrastructure.
1073         * tree-ssa-sccvn.c (process_scc): Likewise.
1074         * tree-ssa-sink.c (execute_sink_code): Likewise.
1075         * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
1076         * tree-vrp.c (process_assert_insertions): Likewise.
1077         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
1078         (perform_tree_ssa_dce): Likewise.
1079         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
1080         (dump_dominator_optimization_stats): Likewise.
1081         * tree-vectorizer.c (vectorize_loops): Likewise.
1082
1083 2008-05-20  Richard Guenther  <rguenther@suse.de>
1084
1085         * tree-vn.c (vn_lookup_with_vuses): Do not use the alias oracle.
1086
1087 2008-05-20  Kai Tietz  <kai.tietz@onevision.com>
1088
1089         * config/i386/i386-protos.h (ix86_return_in_memory): Removed.
1090         (ix86_i386elf_return_in_memory): Likewise.
1091         (ix86_i386interix_return_in_memory): Likewise.
1092         * config/i386/i386-interix.h (TARGET_RETURN_IN_MEMORY): Removed.
1093         (SUBTARGET_RETURN_IN_MEMORY): New.
1094         * config/i386/i386elf.h: Likewise.
1095         * config/i386/ptx4-i.h: Likewise.
1096         * config/i386/sol2-10.h: Likewise.
1097         * config/i386/sysv4.h: Likewise.
1098         * config/i386/vx-common.h: Likewise.
1099         * config/i386/i386.h (TARGET_RETURN_IN_MEMORY): Removed.
1100         * config/i386/i386.c (ix86_return_in_memory): Made static and
1101         make use of optional SUBTARGET_RETURN_IN_MEMORY macro.
1102         (ix86_i386elf_return_in_memory): Removed.
1103         (ix86_i386interix_return_in_memory): Removed.
1104         (TARGET_RETURN_IN_MEMORY): Declared within i386.c only.
1105         * target-def.h (TARGET_RETURN_IN_MEMORY): Remove protection #ifdef.
1106
1107 2008-05-20  Alexandre Oliva  <aoliva@redhat.com>
1108
1109         * cselib.c (cselib_record_sets): Use correct mode for IF_THEN_ELSE.
1110
1111 2008-05-19  Xinliang David Li  <davidxl@google.com>
1112
1113         * tree-ssa-dce.c: Revert patches of 2008-05-17 and 2008-05-18. 
1114         * opts.c: Ditto.
1115         * common.opt: Ditto.
1116         * doc/invoke.texi: Ditto.
1117
1118 2008-05-19  Eric Botcazou  <ebotcazou@adacore.com>
1119
1120         * tree.c (substitute_in_expr) <tcc_vl_exp>: Fix thinko.
1121         (substitute_placeholder_in_expr) <tcc_vl_exp>: Minor tweak.
1122
1123 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
1124
1125         * config/i386/i386.c (ix86_expand_vector_init_concat): Change
1126         sizes of operand array from 8/4 to 4/2.
1127         (ix86_expand_vector_init_general): Change size of operand array
1128         from 32 to 16.  Remove op0, op1 and half_mode.
1129
1130 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
1131
1132         * config/i386/i386.c (ix86_expand_vector_init_concat): New.
1133         (ix86_expand_vector_init_interleave): Likewise.
1134         (ix86_expand_vector_init_general): Use them.  Assert
1135         word_mode == SImode when n_words == 4.
1136
1137 2008-05-19  Uros Bizjak  <ubizjak@gmail.com>
1138
1139         * config/i386/i386.c (ix86_secondary_reload): New static function.
1140         (TARGET_SECONDARY_RELOAD): New define.
1141         * config/i386/i386.h (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
1142         * config/i386/i386.md (reload_outqi): Remove.
1143
1144 2008-05-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1145
1146         PR middle-end/35509
1147         * builtins.c (mathfn_built_in_1): Renamed from mathfn_built_in.
1148         Add `implicit' parameter.  Handle BUILT_IN_SIGNBIT.
1149         (mathfn_built_in): Rewrite in terms of mathfn_built_in_1.
1150         (fold_builtin_classify): Handle BUILT_IN_ISINF_SIGN.
1151         (fold_builtin_1): Likewise.
1152         * builtins.def (BUILT_IN_ISINF_SIGN): New.
1153         c-common.c (check_builtin_function_arguments): Handle
1154         BUILT_IN_ISINF_SIGN.
1155         * doc/extend.texi: Document __builtin_isinf_sign.
1156         * fold-const.c (operand_equal_p): Handle COND_EXPR.
1157
1158 2008-05-18  Eric Botcazou  <ebotcazou@adacore.com>
1159
1160         * tree-ssa-dom.c (tree_ssa_dominator_optimize): If some blocks need
1161         EH cleanup at the end of the pass, search for those that have been
1162         turned into forwarder blocks and do the cleanup on their successor.
1163
1164 2008-05-18  Richard Guenther  <rguenther@suse.de>
1165
1166         * tree-cfg.c (verify_gimple_expr): Allow conversions from
1167         pointers to sizetype and vice versa.
1168
1169 2008-05-18 Xinliang David Li   <davidxl@google.com>
1170
1171         * gcc/tree-ssa-dce.c: Coding style fix.
1172         (check_pow): Documentation comment. 
1173         (check_log): Documenation comment. Coding style fix.
1174         (is_unnecessary_except_errno_call): Ditto.
1175         (gen_conditions_for_pow): Ditto.
1176         (gen_conditions_for_log): Ditto.
1177         (gen_shrink_wrap_conditions): Ditto.
1178         (shrink_wrap_one_built_in_calls): Ditto.
1179         * gcc/doc/invoke.texi: Better documentation string.
1180         * ChangeLog: Fix wrong change log entries from 
1181         May 17 checkin on function call DCE.
1182
1183 2008-05-17  Kaz Kojima  <kkojima@gcc.gnu.org>
1184
1185         * config/sh/sh.c (sh_output_mi_thunk): Update the use of init_flow.
1186
1187 2008-05-17  Kenneth Zadeck <zadeck@naturalbridge.com>
1188
1189         * doc/rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P): Fixed typos.
1190         * df-problems.c (simulation routines): Fixed block comment to
1191         properly say how to add forwards scanning functions.
1192         
1193 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
1194
1195         * tree-inline.c (setup_one_parameter): Remove dead code.
1196
1197 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
1198
1199         * fold-const.c (fold_unary) <CASE_CONVERT>: Fold the cast into
1200         a BIT_AND_EXPR only for an INTEGER_TYPE.
1201
1202 2008-05-17 Xinliang David Li   <davidxl@google.com>
1203
1204         * gcc/tree-ssa-dce.c (cond_dead_built_in_calls): New static variable.
1205         (check_pow, check_log, is_unnecessary_except_errno_call): New 
1206         functions to check for eliminating math functions that are pure 
1207         except for setting errno.
1208         (gen_conditions_for_pow, gen_conditionas_for_log): New functions to
1209         general condition expressions for shrink-wrapping pow/log calls.
1210         (gen_shrink_wrap_conditions): Ditto.
1211         (shrink_wrap_one_built_in_call): Ditto.
1212         (shrink_wrap_conditional_dead_built_in_calls): Ditto.
1213         (mark_operand_necessary): If debugging, output if OP is necessary.
1214         (eliminate_unnecessary_stmts): Eliminate pow, log calls that are
1215         unnecessary.
1216         * gcc/opts.c (decode_options): set flag_tree_builtin_dce to 1 when
1217         opt level >= 2.
1218         * gcc/common.opt: New user flag -ftree-builtin-dce.
1219         * gcc/doc/invoke.texi (-ftree-builtin-dce): New option.
1220
1221 2008-05-16  David S. Miller  <davem@davemloft.net>
1222
1223         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Undef before overriding.
1224         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
1225
1226 2008-05-16  Uros Bizjak  <ubizjak@gmail.com>
1227
1228         PR target/36246
1229         * config/i386/i386.h (SECONDARY_MEMORY_NEEDED_MODE): New define.
1230
1231 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
1232
1233         * ifcvt.c (dead_or_predicable): Rename
1234         df_simulate_one_insn_backwards to df_simulate_one_insn.
1235         * recog.c (peephole2_optimize): Ditto.
1236         * rtl-factoring.c (collect_pattern_seqs, clear_regs_live_in_seq):
1237         Ditto.
1238         * df.h: Rename df_simulate_one_insn_backwards to
1239         df_simulate_one_insn.  and delete df_simulate_one_insn_forwards.
1240         * df-problems.c (df_simulate_artificial_refs_at_top) Reversed
1241         scanning of defs and uses.
1242         (df_simulate_one_insn_backwards): Renamed to df_simulate_one_insn.
1243         (df_simulate_one_insn_forwards): Removed.
1244
1245 2008-05-16  Doug Kwan  <dougkwan@google.com>
1246
1247         * real.c (real_to_decimal, real_to_hexadecimal): Distinguish
1248         QNaN & SNaN.
1249         (real_from_string): Handle NaNs and Inf as approriate.
1250
1251 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
1252
1253         * doc/gty.texi (Source Files Containing Type Information): Note
1254         that headers should appear first in the gtfiles list.
1255
1256 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
1257
1258         * tree.def (COND_EXEC): Properly documented this code.
1259
1260 2008-05-16  Diego Novillo  <dnovillo@google.com>
1261
1262         * dwarf2asm.c (dw2_assemble_integer): Clarify comment.
1263         * tree-nested.c (get_trampoline_type): Set DECL_CONTEXT for
1264         the new field.
1265
1266 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
1267
1268         * tree-ssa-dse (max_stmt_uid): Removed.
1269         (get_stmt_uid, dse_possible_dead_store_p, dse_optimize_stmt, 
1270         tree_ssa_dse): Encapsulate all uses of stmt_ann->uid.
1271         * tree-ssa-sccvn.c (compare_ops, init_scc_vn): Ditto.
1272         * function.h (cfun.last_stmt_uid): New field.
1273         * tree-flow-inline.h (set_gimple_stmt_uid, gimple_stmt_uid,
1274         gimple_stmt_max_uid, set_gimple_stmt_max_uid, inc_gimple_stmt_max_uid):
1275         New functions.
1276         * tree-dfa.c (renumber_gimple_stmt_uids): New function.
1277         (create_stmt_ann): Initialize the ann->uid field.
1278         * tree-ssa-pre.c (compute_avail): Encapsulate the stmt_ann->uid
1279         with new calls.
1280         * tree-flow.h (renumber_gimple_stmt_uids): New function.
1281
1282 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
1283
1284         * tree-flow.h (init_empty_tree_cfg_for_function): Declare.
1285         * tree-cfg.c (init_empty_tree_cfg_for_function): Define.
1286         (init_empty_tree_cfg): Call it.
1287
1288 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
1289
1290         * cfg.c (init_flow): Add argument THE_FUN.  Use it instead of cfun.
1291         Update all users.
1292
1293 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
1294
1295         * doc/invoke.text (-fdump-tree-*-verbose): New option.
1296         * tree-dump.c (dump_options): New verbose option.
1297         * tree-pretty-print.c (dump_phi_nodes, dump_generic_bb_buff):
1298         Add verbose dump.
1299         * tree-pass.h (TDF_VERBOSE): New dump flag.
1300         * print-tree.c (print_node): Added code to be able to print PHI_NODES.
1301         (tree-flow.h): Added include.
1302         * Makefile.in (print-tree.o):  Added TREE_FLOW_H.
1303
1304 2008-05-16  Bernd Schmidt  <bernd.schmidt@analog.com>
1305
1306         * config/bfin/bfin.c (bfin_discover_loops): Delete empty loops.
1307
1308         From Jie Zhang  <jie.zhang@analog.com>
1309         * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
1310         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Remove mcpu=bf532-0.3,
1311         mcpu=bf561-none and mcpu=bf561-0.2.
1312         * config/bfin/t-bfin-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
1313         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
1314         * config/bfin/t-bfin-linux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
1315         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
1316         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add BFIN_CPU_UNKNOWN.
1317         * config/bfin/elf.h (STARTFILE_SPEC): Use specific CRT for BF561.
1318         (LIB_SPEC): Use proper linker script for bf561.  Error if no mcpu
1319         option.
1320         * config/bfin/bfin.c (bfin_cpu_type): Set to BFIN_CPU_UNKNOWN.
1321         (cputype_selected): Remove.
1322         (bfin_handle_option): Don't use cputype_selected.
1323         (override_options): When no mcpu option, enable all workarounds.
1324         Don't use bfin_workarounds.
1325         * config/bfin/bfin.h (DRIVER_SELF_SPECS): Don't set default
1326         processor type.
1327         (DEFAULT_CPU_TYPE): Don't define.
1328
1329 2008-05-16  Richard Guenther  <rguenther@suse.de>
1330
1331         * tree-ssa-propagate.c (substitute_and_fold): Fix stmt walking
1332         on deletion of the last stmt.
1333
1334 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
1335
1336         * config/i386/i386.c (ix86_expand_vector_init_general): Optimize
1337         V8HImode for SSE2 and V16QImode for SSE4.1.
1338
1339 2008-05-15  Kenneth Zadeck <zadeck@naturalbridge.com>
1340
1341         * cgraph.h (compute_inline_parameters): Made public.
1342         * tree-pass.h (ipa_opt_pass): Removed function_generate_summary,
1343         variable_generate_summary, function_write_summary,
1344         variable_write_summary, variable_read_summary.  Added generate_summary,
1345         write_summary, read_summary.
1346         * cgraphunit.c (cgraph_process_new_functions): Changed call from
1347         pass_ipa_inline.function_generate_summary, to
1348         compute_inline_parameters. 
1349         * ipa-inline.c (compute_inline_parameters): Made public and added
1350         node parameter.
1351         (compute_inline_parameters_for_current): New function.
1352         (pass_inline_param): Now calls compute_inline_parameters_for_current.
1353         (inline_generate_summary): Removed parameter and made to loop over
1354         all cgraph nodes.
1355         (pass_ipa_inline): Updated for new IPA_PASS structure.
1356         * passes.c (execute_ipa_summary_passes): Now is called once per
1357         pass rather than once per node*pass.
1358         
1359 2008-05-15  Anatoly Sokolov <aesok@post.ru>
1360
1361         * config/avr/avr.c (avr_base_arch_macro, avr_have_movw_lpmx_p, 
1362         avr_have_mul_p, avr_asm_only_p): Remove variables.
1363         (avr_override_options): Remove initialization of removed variables.
1364         (avr_file_start):  Convert removed variables to fields of 
1365         'struct base_arch_s *avr_current_arch'. 
1366         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): (Ditto.).
1367         (AVR_HAVE_MUL): (Ditto.).
1368         (AVR_HAVE_MOVW): (Ditto.).
1369         (AVR_HAVE_LPMX): (Ditto.). 
1370         (avr_base_arch_macro, avr_have_movw_lpmx_p, avr_have_mul_p, 
1371         avr_asm_only_p): Remove declaration.
1372
1373 2008-05-15  Diego Novillo  <dnovillo@google.com>
1374
1375         * config/arm/arm.c (arm_return_in_memory): Fix return type.
1376         * config/arm/arm-protos.h (arm_return_in_memory): Likewise.
1377
1378 2008-05-15  Adam Nemet  <anemet@caviumnetworks.com>
1379
1380         PR middle-end/36194
1381         * combine.c (check_conversion): Rename back to check_promoted_subreg.
1382         Don't call record_truncated_value from here.
1383         (record_truncated_value): Turn it into a for_each_rtx callback.
1384         (record_truncated_values): New function.
1385         (combine_instructions): Call note_uses with record_truncated_values.
1386         Change name of check_conversion to check_promoted_subreg. 
1387
1388 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
1389
1390         * doc/sourcebuild.texi: Document support for torture tests.
1391
1392 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
1393
1394         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Add "m" constraint
1395         to alternative 4 of operand 2.
1396
1397 2008-05-15  Richard Guenther  <rguenther@suse.de>
1398
1399         * tree-pass.h (current_pass): Declare.
1400         (get_pass_for_id): Likewise.
1401         * passes.c (passes_by_id, passes_by_id_size): New globals.
1402         (set_pass_for_id): New function.
1403         (get_pass_for_id): Likewise.
1404         (register_one_dump_file): Use set_pass_for_id to populate passes_by_id.
1405         (execute_function_todo): Flush per function statistics.
1406         * toplev.c (compile_file): Init statistics.
1407         (general_init): Do early statistics initialization.
1408         (finalize): Finish statistics.
1409         * statistics.h (statistics_early_init): Declare.
1410         (statistics_init): Likewise.
1411         (statistics_fini): Likewise.
1412         (statistics_fini_pass): Likewise.
1413         (statistics_counter_event): Likewise.
1414         (statistics_histogram_event): Likewise.
1415         * statistics.c: New file.
1416         * Makefile.in (OBJS-common): Add statistics.o.
1417         (statistics.o): Add dependencies.
1418         * doc/invoke.texi (-fdump-statistics): Document.
1419
1420         * tree-ssa-pre.c (compute_antic): Use statistics_histogram_event.
1421         (insert): Likewise.
1422         (execute_pre): Use statistics_counter_event.
1423         * tree-ssa-propagate.c (struct prop_stats_d): Add num_dce field.
1424         (substitute_and_fold): Increment it.  Use statistics_counter_event.
1425
1426 2008-05-15  Diego Novillo  <dnovillo@google.com>
1427
1428         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00893.html
1429
1430         * treestruct.def (TS_STRUCT_FIELD_TAG): Remove.
1431         * tree-ssa-alias.c (new_type_alias): Remove references to
1432         sub-variables from comment.
1433         * tree-ssa-operands.c (swap_tree_operands): Likewise.
1434
1435 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
1436
1437         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Set prefix_extra
1438         attribute to 1 only for insertps alternative.
1439
1440 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
1441
1442         * config/bfin/bfin.md (loadbytes): New pattern.
1443         * config/bfin/bfin.c (enum bfin_builtins): Add BFIN_BUILTIN_LOADBYTES.
1444         (bfin_init_builtins): Initialize it.
1445         (bdesc_1arg): Add it.
1446
1447 2008-05-15  Sa Liu  <saliu@de.ibm.com>
1448
1449         * testsuite/gfortran.dg/c_kind_int128_test1.f03: New.
1450         * testsuite/gfortran.dg/c_kind_int128_test2.f03: New.
1451         * testsuite/lib/target-supports.exp: Add
1452         check_effective_target_fortran_integer_16.
1453
1454 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
1455
1456         * config/bfin/bfin.h (TARGET_RETURN_IN_MEMORY): Don't define here.
1457         * config/bfin/bfin-protos.h (bfin_return_in_memory): Don't declare.
1458         * config/bfin/bfin.c (bfin_return_in_memory): Now static.  Return bool.
1459         (TARGET_RETURN_IN_MEMORY): Define.
1460
1461 2008-05-15  Richard Guenther  <rguenther@suse.de>
1462
1463         PR middle-end/36244
1464         * tree-ssa-alias.c (new_type_alias): Do not set TREE_READONLY.
1465         * tree-flow-inline.h (unmodifiable_var_p): Memory tags never
1466         represent unmodifiable vars.
1467
1468 2008-05-15  Richard Guenther  <rguenther@suse.de>
1469
1470         * tree-dfa.c (refs_may_alias_p): Allow all kinds of
1471         INDIRECT_REF and TARGET_MEM_REF.
1472         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
1473         TARGET_MEM_REF.
1474
1475 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
1476             H.J. Lu  <hongjiu.lu@intel.com>
1477
1478         * config/i386/sse.md (*vec_concatv2sf_sse4_1): New insn pattern.
1479         (*vec_concatv2si_sse4_1): Use vector_move_operand predicate
1480         for operand 2.  Remove pinsr{q,d} with 0x0 immediate operand from
1481         insn alternatives.  Add missing alternatives.
1482         (*vec_concatv2di_rex64_sse4_1): Likewise.
1483         (*vec_concatv2si_sse2): Use "x" register constraint instead of "Y2".
1484         (*vec_concatv2di_rex64_sse): Rename from *vec_concatv2di_rex64.
1485         Require TARGET_SSE.
1486
1487 2008-05-15  Richard Guenther  <rguenther@suse.de>
1488
1489         PR tree-optimization/36009
1490         PR tree-optimization/36204
1491         * tree-ssa-loop-im.c (tree-ssa-propagate.h): Include.
1492         (determine_invariantness_stmt): Record the loop a store is
1493         always executed in.
1494         * Makefile.in (tree-ssa-loop-im.o): Add tree-ssa-propagate.h
1495         dependency.
1496
1497 2008-05-15  Richard Guenther  <rguenther@suse.de>
1498
1499         PR tree-optimization/34330
1500         * tree-ssa-alias.c (get_smt_for): Only assert that accesses
1501         through the pointer will alias the SMT.
1502
1503 2008-05-14  Andreas Tobler  <a.tobler@schweiz.org>
1504
1505         * config/sparc/sparc.h (NO_PROFILE_COUNTERS): Define as 0.
1506
1507 2008-05-14  H.J. Lu  <hongjiu.lu@intel.com>
1508
1509         * config/i386/sse.md (*sse4_1_pinsrq): Make it 64bit only.
1510
1511 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
1512             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
1513
1514         * optabs.h (optab_index): Add OTI_vashl, OTI_vlshr, OTI_vashr,
1515         OTI_vrotl, OTI_vrotr to support vector/vector shifts.
1516         (vashl_optab): New optab for vector/vector shifts.
1517         (vashr_optab): Ditto.
1518         (vlshr_optab): Ditto.
1519         (vrotl_optab): Ditto.
1520         (vrotr_optab): Ditto.
1521         (optab_subtype): New enum for optab_for_tree_code call.
1522         (optab_for_tree_code): Add enum optab_subtype argument.
1523
1524         * optabs.c (optab_for_tree_code): Take an additional argument to
1525         distinguish between a vector shift by a scalar and vector shift by
1526         a vector.  Make lshr/ashr/ashl/rotl/rotr optabs just vector
1527         shifted by a scalar.  Use vlshr/vashr/vashl/vrotl/vrotr for the
1528         vector shift by a vector.
1529         (expand_widen_pattern_expr): Pass additional argument to
1530         optab_for_tree_code.
1531
1532         * genopinit.c (optabs): Add vashr_optab, vashl_optab, vlshr_optab,
1533         vrotl_optab, vrotr_optab.
1534
1535         * expr.c (expand_expr_real_1): Update calls to
1536         optab_for_tree_code to distinguish between vector shifted by a
1537         scalar and vector shifted by a vector.
1538         * tree-vectorizer.c (supportable_widening_operation): Ditto.
1539         (supportable_narrowing_operation): Ditto.
1540         * tree-vect-analyze.c (vect_build_slp_tree): Ditto.
1541         * tree-vect-patterns.c (vect_pattern_recog_1): Ditto.
1542         * tree-vect-transform.c (vect_model_reduction_cost): Ditto.
1543         (vect_create_epilog_for_reduction): Ditto.
1544         (vectorizable_reduction): Ditto.
1545         (vectorizable_operation): Ditto.
1546         (vect_strided_store_supported): Ditto.
1547         (vect_strided_load_supported): Ditto.
1548         * tree-vect-generic.c (expand_vector_operations_1): Ditto.
1549         * expmed.c (expand_shift): Ditto.
1550
1551         * doc/md.texi (ashl@var{m}3): Document that operand 2 is always a
1552         scalar type.
1553         (ashr@var{m}3): Ditto.
1554         (vashl@var{m}3): Document new vector/vector shift standard name.
1555         (vashr@var{m}3): Ditto.
1556         (vlshr@var{m}3): Ditto.
1557         (vrotl@var{m}3): Ditto.
1558         (vrotr@var{m}3): Ditto.
1559
1560         * config/i386/i386.md (PPERM_SRC): Move PPERM masks here from i386.c.
1561         (PPERM_INVERT): Ditto.
1562         (PPERM_REVERSE): Ditto.
1563         (PPERM_REV_INV): Ditto.
1564         (PPERM_ZERO): Ditto.
1565         (PPERM_ONES): Ditto.
1566         (PPERM_SIGN): Ditto.
1567         (PPERM_INV_SIGN): Ditto.
1568         (PPERM_SRC1): Ditto.
1569         (PPERM_SRC2): Ditto.
1570
1571         * config/i386/sse.md (mulv2di3): Add SSE5 support.
1572         (sse5_pmacsdql_mem): New SSE5 define_and_split that temporarily
1573         allows a memory operand to be the value being added, and split it
1574         to improve vectorization.
1575         (sse5_pmacsdqh_mem): Ditto.
1576         (sse5_mulv2div2di3_low): SSE5 32-bit multiply and extend function.
1577         (sse5_mulv2div2di3_high): Ditto.
1578         (vec_pack_trunc_v8hi): Add SSE5 pperm support.
1579         (vec_pack_trunc_v4si): Ditto.
1580         (vec_pack_trunc_v2di): Ditto.
1581         (sse5_pcmov_<mode>): Remove code that tried to use use
1582         andps/andnps instead of pcmov.
1583         (vec_widen_smult_hi_v4si): If we have SSE5, use the pmacsdql and
1584         pmacsdqh instructions.
1585         (vec_widen_smult_lo_v4si): Ditto.
1586
1587         * config/i386/i386.c (PPERM_SRC): Move PPERM masks to i386.md.
1588         (PPERM_INVERT): Ditto.
1589         (PPERM_REVERSE): Ditto.
1590         (PPERM_REV_INV): Ditto.
1591         (PPERM_ZERO): Ditto.
1592         (PPERM_ONES): Ditto.
1593         (PPERM_SIGN): Ditto.
1594         (PPERM_INV_SIGN): Ditto.
1595         (PPERM_SRC1): Ditto.
1596         (PPERM_SRC2): Ditto.
1597         (ix86_expand_sse_movcc): Move the SSE5 test after the if
1598         true/false tests.
1599         (ix86_expand_int_vcond): If SSE5 generate all possible integer
1600         comparisons.
1601         (ix86_sse5_valid_op_p): Allow num_memory to be negative, which
1602         says ignore whether the last reference is a memory operand.
1603
1604 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
1605             Paolo Bonzini <bonzini at gnu dot org>
1606
1607         * config/rs6000/rs6000.c (bdesc_2arg): Change the names of vector
1608         shift patterns.
1609
1610         * config/rs6000/altivec.md (vashl<mode>3): Rename from ashl<mode>3.
1611         (vlshr<mode>3): Rename from vlshr<mode>3.
1612         (vashr<mode>3): Rename from vashr<mode>3.
1613         (mulv4sf3): Change the names of vector shift patterns.
1614         (mulv4si3): Ditto.
1615         (negv4sf2): Ditt.
1616
1617         * config/spu/spu.c (spu_initialize_trampoline): Rename vector
1618         shift insns.
1619
1620         * config/spu/spu-builtins.def (SI_SHLH): Rename vector shift insns.
1621         (SI_SHLHI): Ditto.
1622         (SI_SHL): Ditto.
1623         (SI_SHLI): Ditto.
1624         (SI_ROTH): Ditto.
1625         (SI_ROTHI): Ditto.
1626         (SI_ROT): Ditto.
1627         (SI_ROTI): Ditto.
1628         (SPU_RL_0): Ditto.
1629         (SPU_RL_1): Ditto.
1630         (SPU_RL_2): Ditto.
1631         (SPU_RL_3): Ditto.
1632         (SPU_RL_4): Ditto.
1633         (SPU_RL_5): Ditto.
1634         (SPU_RL_6): Ditto.
1635         (SPU_RL_7): Ditto.
1636         (SPU_SL_0): Ditto.
1637         (SPU_SL_1): Ditto.
1638         (SPU_SL_2): Ditto.
1639         (SPU_SL_3): Ditto.
1640         (SPU_SL_4): Ditto.
1641         (SPU_SL_5): Ditto.
1642         (SPU_SL_6): Ditto.
1643         (SPU_SL_7): Ditto.
1644
1645         * config/spu/spu.md (v): New iterator macro to add v for vector types.
1646         (floatunssidf2_internal): Change vector/vector shift names.
1647         (floatunsdidf2_internal): Ditto.
1648         (mulv8hi3): Ditto.
1649         (ashrdi3): Ditto.
1650         (ashrti3): Ditto.
1651         (cgt_df): Ditto.
1652         (cgt_v2df): Ditto.
1653         (dftsv): Ditto.
1654         (vashl<mode>3): Rename from ashl<mode>3.
1655         (vashr<mode>3): Rename from ashr<mode>3.
1656         (vlshr<mode>3): Rename from lshr<mode>3.
1657         (vrotl<mode>3): Rename from rotl<mode>3.
1658
1659 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
1660
1661         PR target/36224
1662         * config/i386/sse.md (vec_widen_smult_hi_v4si): Delete, using unsigned
1663         multiply gives the wrong value when doing widening multiplies.
1664         (vec_widen_smult_lo_v4si): Ditto.
1665
1666 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
1667
1668         * optabs.c (prepare_cmp_insn): Changed LCT_PURE_MAKE_BLOCK to
1669         LCT_PURE and LCT_CONST_MAKE_BLOCK to LCT_CONST in calls to
1670         emit_library_call_value. 
1671         * builtins.c (expand_builtin_powi, expand_builtin_memcmp): Ditto.
1672         * tree.h (ECF_LIBCALL_BLOCK): Removed.
1673         * calls.c (initialize_argument_information, precompute_arguments, 
1674         expand_call, emit_library_call_value_1): Remove ECF_LIBCALL_BLOCK.
1675         (precompute_arguments): Removed flags parameter.
1676         * rtl.h (LCT_CONST_MAKE_BLOCK, LCT_PURE_MAKE_BLOCK): Removed.
1677         
1678 2008-05-14  Richard Guenther  <rguenther@suse.de>
1679
1680         * tree-ssa-dse.c (dse_possible_dead_store_p): Remove dead code.
1681         Make sure to register the store if the use is a PHI_NODE.
1682
1683 2008-05-14  Olivier Hainque  <hainque@adacore.com>
1684
1685         * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
1686         memory if the component is to be referenced in BLKmode according
1687         to get_inner_reference.
1688
1689 2008-05-14  Adam Nemet  <anemet@caviumnetworks.com>
1690
1691         * calls.c (emit_library_call_value_1): Restore code clearing
1692         ECF_LIBCALL_BLOCK to ensure that we only call end_sequence once.
1693
1694 2008-05-14  Olivier Hainque  <hainque@adacore.com>
1695             Nicolas Roche  <roche@adacore.com>
1696
1697         * configure.ac: Add support for a "gcc_subdir" variable in
1698         config-lang.in, to denote a subdirectory where the language/GCC
1699         integration files are to be found.
1700         * configure: Regenerate.
1701
1702 2008-05-14  Ira Rosen  <irar@il.ibm.com>
1703
1704         PR tree-optimization/36098
1705         * tree-vect-analyze.c (vect_analyze_group_access): Set the gap
1706         value for the first load in the group in case of a gap.
1707         (vect_build_slp_tree): Check that there are no gaps in loads.
1708
1709 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
1710
1711         * doc/rtl.texi: Removed reference to REG_NO_CONFLICT notes.
1712         * optabs.c (expand_binop, expand_absneg_bit, expand_unop,
1713         expand_copysign_bit, ): Change call to emit_no_conflict_block to
1714         emit_insn and remove unneeded code to construct extra args.
1715         (emit_no_conflict_block): Removed.
1716         * optabls.h: (emit_no_conflict_block): Removed.
1717         * cse.c (cse_extended_basic_block): Remove search for
1718         REG_NO_CONFLICT note.
1719         * global.c: Removed incorrect comment added in revision 117.
1720         * expr.c (convert_move): Change call to emit_no_conflict_block to
1721         emit_insn.
1722         * recog.c: Change comments so that they do not mention
1723         REG_NO_CONFLICT.
1724         * local_alloc.c (combine_regs): Removed last parameter.
1725         (no_conflict_p): Removed.
1726         (block_alloc): Removed note, no_conflict_combined_regno and set
1727         local vars. Removed all code to process REG_NO_CONFLICT blocks.
1728         (combine_regs): Removed already_dead and code to look for
1729         REG_NO_CONFLICT notes.
1730         * lower_subreg (remove_retval_note): Removed code to look for
1731         REG_NO_CONFLICT block.
1732         (resolve_reg_notes): Removed REG_NO_CONFLICT case.
1733         (resolve_clobber): Remove code to process libcalls that have
1734         REG_NO_CONFLICT notes.
1735         * loop_invariant.c (find_invariant_insn): Removed REG_NO_CONFLICT
1736         case.
1737         * combine.c (can_combine_p, distribute_notes):  Removed
1738         REG_NO_CONFLICT case.
1739         * config/cris/cris.md (movdi pattern): Changed emit_no_conflict_block
1740         to emit_insns.
1741         * config/mn10300/mn10300.md (absdf2, negdf2 patterns): Ditto.
1742         * config/m68k/m68k.md (negdf2, negxf2, absdf2, absxf2 patterns):
1743         Ditto.
1744         * reg-notes.def (NO_CONFLICT): Removed.
1745
1746 2008-05-14  David S. Miller  <davem@davemloft.net>
1747
1748         * config/sparc/sparc.c (sparc_profile_hook): If
1749         NO_PROFILE_COUNTERS, don't generate and pass a label into mcount.
1750         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Define as 1.
1751         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
1752
1753 2008-05-14  Andreas Krebbel  <krebbel1@de.ibm.com>
1754
1755         * cse.c (cse_cc_succs): Invoke delete_insn_and_edges.
1756
1757 2008-05-13  Uros Bizjak  <ubizjak@gmail.com>
1758
1759         PR target/36222
1760         * config/i386/i386.c (ix86_expand_vector_init_general): Rearrange op0
1761         and op1 expansion before vector concat to have less live pseudos.
1762
1763 2008-05-13  H.J. Lu  <hongjiu.lu@intel.com>
1764
1765         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
1766         ix86_expand_vector_set if supported.
1767
1768 2008-05-13  Diego Novillo  <dnovillo@google.com>
1769             Kenneth Zadeck  <zadeck@naturalbridge.com>
1770
1771         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00748.html
1772
1773         * tree.h (init_phinodes, fini_phinodes, release_phi_node,
1774         phinodes_print_statistics, init_ssanames, fini_ssanames,
1775         make_ssa_name, duplicate_ssa_name, duplicate_ssa_name_ptr_info,
1776         release_ssa_name, release_defs, replace_ssa_name_symbol,
1777         ssanames_print_statistics): Move ...
1778         * tree-flow.h: ... here.
1779         * tree-ssanames.c (init_ssanames): Add arguments FN and SIZE.
1780         Use FN instead of cfun.
1781         (make_ssa_name_fn): Rename from make_ssa_name.
1782         (pass_release_ssa_names): Add TODO_dump_func to finish flags.
1783         * tree-flow-inline.h (make_ssa_name): Move from
1784         tree-ssanames.c.  Convert to static inline.  Call make_ssa_name_fn.
1785         * omp-low.c (expand_omp_parallel):
1786         * tree-flow-inline.h (redirect_edge_var_map_result):
1787         * tree-ssa.c (init_tree_ssa): Add argument FN.
1788         Use it instead of cfun.  Update all users.
1789
1790 2008-05-13  Tom Tromey  <tromey@redhat.com>
1791
1792         PR preprocessor/22168:
1793         * doc/cpp.texi (Top): Update menu.
1794         (Alternatives to Wrapper #ifndef): New node.
1795         (Other Directives): Document deprecation.
1796         (Obsolete Features): Remove menu.
1797         (Assertions): Merge node into Obsolete Features.
1798         (Obsolete once-only headers): Move earlier; rename to Alternatives
1799         to Wrapper #ifndef.
1800         * doc/cppopts.texi: Update.
1801         * c.opt (Wdeprecated): Enable for C and ObjC.
1802         * doc/invoke.texi (Option Summary): Move -Wno-deprecated.
1803         (C++ Dialect Options): Move -Wno-deprecated from here to...
1804         (Warning Options): ... here.
1805
1806 2008-05-13  Richard Guenther  <rguenther@suse.de>
1807
1808         PR middle-end/36227
1809         * fold-const.c (fold_sign_changed_comparison): Do not allow
1810         changes in pointer-ness.
1811
1812 2008-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
1813
1814         PR target/24713
1815         * config/sh/sh.c (sh_expand_prologue): Don't clear
1816         RTX_FRAME_RELATED_P for push insns.
1817
1818 2008-05-12  Andy Hutchinson  <hutchinsonandy@aim.com>
1819
1820         * config/avr/avr.h (MAX_OFILE_ALIGNMENT): Define.
1821
1822 2008-05-12  Anatoly Sokolov <aesok@post.ru>
1823
1824         * config/avr/avr.h (machine_function): Add 'is_leaf' field.
1825         * config/avr/avr.c (avr_regs_to_save): Compute 'machine->is_leaf'.
1826         Use 'machine->is_leaf' instead of 'leaf_func_p'.
1827
1828 2008-05-12  H.J. Lu  <hongjiu.lu@intel.com>
1829
1830         * config/i386/sse.md (*sse_concatv4sf): Renamed to ...
1831         (*vec_concatv4sf_sse): This.
1832         (*sse2_concatv2si): Renamed to ...
1833         (*vec_concatv2si_sse2): This.
1834         (*sse1_concatv2si): Renamed to ...
1835         (*vec_concatv2si_sse): This.
1836         (*vec_concatv2di_rex): Renamed to ...
1837         (*vec_concatv2di_rex64): This.
1838         (*vec_concatv2si_sse4_1): New.
1839         (*vec_concatv2di_rex64_sse4_1): Likewise.
1840
1841 2008-05-12  Uros Bizjak  <ubizjak@gmail.com>
1842
1843         PR rtl-optimization/36111
1844         * recog.c (validate_replace_rtx_1): Unshare new RTL expression
1845         that was created for swappable operands.
1846
1847 2008-05-12  Samuel Tardieu  <sam@rfc1149.net>
1848
1849         PR ada/36001
1850         * Makefile.in: Substitute GNATMAKE and GNATBIND.
1851         * configure.ac: Add call to ACX_PROG_GNAT.
1852
1853 2008-05-11  Volker Reichelt  <v.reichelt@netcologne.de>
1854
1855         * optc-gen.awk: Fix comment typo.
1856
1857 2008-05-11  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
1858
1859         * pretty-print.c (pp_integer_with_precision): Use
1860         HOST_LONG_LONG_FORMAT.
1861
1862 2008-05-10  Kenneth Zadeck  <zadeck@naturalbridge.com>
1863
1864         * gcse.c (store_killed_in_insn): Negated call to RTL_CONST_CALL_P.
1865                 
1866 2008-05-10  H.J. Lu  <hongjiu.lu@intel.com>
1867
1868         * config/i386/i386.c (bdesc_ptest): Removed.
1869         (ix86_builtin_type): Add INT_FTYPE_V2DI_V2DI_PTEST.
1870         (bdesc_args): Add __builtin_ia32_ptestz128,
1871         __builtin_ia32_ptestc128 and __builtin_ia32_ptestnzc128.
1872         (ix86_init_mmx_sse_builtins): Updated.
1873         (ix86_expand_args_builtin): Handle INT_FTYPE_V2DI_V2DI_PTEST.
1874         (ix86_expand_builtin): Updated.
1875
1876 2008-05-10  Richard Sandiford  <rdsandiford@googlemail.com>
1877
1878         * tree-cfg.c (valid_fixed_convert_types_p): New function.
1879         (verify_gimple_expr): Handle FIXED_CONVERT_EXPR.
1880
1881 2008-05-10  Uros Bizjak  <ubizjak@gmail.com>
1882
1883         * value-prof.c (interesting_stringop_to_profile): Do not
1884         return early for BUILT_IN_MEMPCPY.
1885
1886 2008-05-09  H.J. Lu  <hongjiu.lu@intel.com>
1887
1888         * calls.c (expand_call): Don't use callgraph to increase
1889         preferred_stack_boundary.
1890
1891         * cgraph.h (cgraph_rtl_info): Use unsigned on
1892         preferred_incoming_stack_boundary.
1893
1894         * final.c (rest_of_clean_state): Use unsigned on
1895         preferred_stack_boundary.
1896
1897 2008-05-09  Tom Tromey  <tromey@redhat.com>
1898
1899         PR preprocessor/22231:
1900         * c-opts.c (sanitize_cpp_opts): Disallow -MG if compilation is
1901         proceeding.
1902
1903 2008-05-09  Uros Bizjak  <ubizjak@gmail.com>
1904
1905         PR tree-optimization/36129
1906         * tree-ssa-ccp.c: Include value-prof.h.
1907         (execute_fold_all_builtins): Call gimple_remove_stmt_histograms if
1908         built-in function was folded to a constant.
1909         * Makefile.in (tree-ssa-ccp.c): Depend on value-prof.h
1910
1911 2008-05-09  Jan Sjodin  <jan.sjodin@amd.com>
1912             Sebastian Pop  <sebastian.pop@amd.com>
1913
1914         * tree-scalar-evolution.c: Document instantiate_scev.
1915         (instantiate_parameters_1): Renamed instantiate_scev_1.
1916         Don't use the same loop for instantiation_loop and evolution_loop.
1917         (instantiate_scev): New.
1918         (instantiate_parameters): Moved...
1919         (resolve_mixers): Update call to instantiate_scev_1 to pass the
1920         same loop twice.  Maintains the semantics for this function.
1921         * tree-scalar-evolution.h (instantiate_scev): Declare.
1922         (instantiate_parameters): ...here.  Now static inline.
1923         * tree-data-ref.c (dr_analyze_indices): Call instantiate_scev
1924         instead of resolve_mixers.
1925
1926 2008-05-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
1927
1928         * rtl-factoring.c (collect_pattern_seqs): Fix typo.
1929
1930 2008-05-09  Tomas Bily  <tbily@suse.cz>
1931
1932         * config/pa/pa.c (reloc_needed): Use CASE_CONVERT.
1933         * tree-cfg.c (verify_expr, verify_gimple_expr): Likewise.
1934         * tree-ssa-structalias.c (get_constraint_for): Likewise.
1935         * c-common.c (c_common_truthvalue_conversion): Likewise.
1936         * tree-object-size.c (compute_object_offset): Likewise.
1937         * tree-inline.c (estimate_num_insns_1): Likewise.
1938         * varasm.c (const_hash_1, compare_constant, copy_constant)
1939         (compute_reloc_for_constant, output_addressed_constants)
1940         (initializer_constant_valid_p): Likewise.
1941         * c-omp.c (check_omp_for_incr_expr): Likewise.
1942         * gimplify.c (gimplify_expr): Likewise.
1943         * c-typeck.c (c_finish_return): Likewise.
1944         * tree-vectorizer.c (supportable_widening_operation)
1945         (supportable_narrowing_operation): Likewise.
1946         * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Likewise.
1947         * matrix-reorg.c (can_calculate_expr_before_stmt): Likewise.
1948         * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
1949         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info)
1950         (descr_info_loc): Likewise.
1951         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
1952         * fold-const.c (operand_equal_p, make_range, extract_muldiv_1)
1953         (fold_unary): Likewise.
1954         * builtins.c (get_pointer_alignment): Likewise.
1955         * tree-scalar-evolution.c (interpret_rhs_modify_stmt)
1956         (instantiate_parameters_1): Likewise.
1957         * tree.c (expr_align, stabilize_reference): Likewise.
1958         * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
1959         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
1960         * convert.c (strip_float_extensions): Use CONVERT_EXPR_P.
1961         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
1962         * config/alpha/alpha.c (va_list_skip_additions): Likewise.
1963         * c-common.c (c_alignof_expr, check_function_arguments_recurse):
1964         Likewise.
1965         * tree-ssa.c (tree_ssa_useless_type_conversion): Likewise.
1966         * varasm.c (initializer_constant_valid_p, output_constant): Likewise.
1967         * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
1968         (forward_propagate_addr_expr_1, forward_propagate_addr_expr)
1969         (forward_propagate_comparison)
1970         (tree_ssa_forward_propagate_single_use_vars): Likewise.
1971         * cfgexpand.c (discover_nonconstant_array_refs_r): Likewise.
1972         * emit-rtl.c (component_ref_for_mem_expr)
1973         (set_mem_attributes_minus_bitpos): Likewise.
1974         * tree-ssa-phiopt.c (conditional_replacement): Likewise.
1975         * gimplify.c (gimplify_conversion, goa_lhs_expr_p, gimplify_expr):
1976         Likewise.
1977         * c-typeck.c (default_function_array_conversion, build_indirect_ref)
1978         (build_function_call, pointer_diff, build_compound_expr)
1979         (c_finish_return): Likewise.
1980         * tree-vect-analyze.c (vect_determine_vectorization_factor): Likewise.
1981         * matrix-reorg.c (get_inner_of_cast_expr, may_flatten_matrices_1):
1982         Likewise.
1983         * tree-ssa-ifcombine.c (recognize_single_bit_test): Likewise.
1984         * expr.c (is_aligning_offset): Likewise.
1985         * tree-ssa-alias.c (is_escape_site): Likewise.
1986         * tree-stdarg.c (va_list_counter_bump, check_va_list_escapes)
1987         (check_all_va_list_escapes): Likewise.
1988         * tree-ssa-loop-ivopts.c (determine_base_object)
1989         (determine_common_wider_type): Likewise.
1990         * dojump.c (do_jump): Likewise.
1991         * tree-ssa-sccvn.c (simplify_unary_expression): Likewise.
1992         * tree-gimple.c (is_gimple_cast): Likewise.
1993         * fold-const.c (decode_field_reference, )
1994         (fold_sign_changed_comparison, fold_unary, fold_comparison)
1995         (fold_binary): Likewise.
1996         * tree-ssa-alias-warnings.c (find_alias_site_helper)
1997         (already_warned_in_frontend_p): Likewise.
1998         * builtins.c (get_memory_rtx, fold_builtin_next_arg): Likewise.
1999         * tree.c (really_constant_p, get_unwidened): Likewise.
2000         * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
2001         * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
2002         * tree-vrp.c (register_edge_assert_for_2, register_edge_assert_for_1):
2003         Likewise.
2004         * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Use
2005         CONVERT_EXPR_P.
2006         (CONVERT_EXPR_P): Define.
2007         (CASE_CONVERT): Define.
2008         
2009 2008-05-08  Kenneth Zadeck  <zadeck@naturalbridge.com>
2010
2011         PR middle-end/36117
2012         * dce.c (deletable_insn_p): Do not delete calls if df_in_progress.
2013         (delete_unmarked_insns): When deleting a call, call
2014         delete_unreachable_blocks.
2015         * rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
2016         RTL_CONST_OR_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P): Fixed doc.
2017
2018 2008-05-08  Richard Guenther  <rguenther@suse.de>
2019
2020         * doc/invoke.texi (-fdump-tree-salias): Remove documentation.
2021         (-ftree-salias): Likewise.
2022         (salias-max-implicit-fields): Remove param documentation.
2023         (salias-max-array-elements): Likewise.
2024         * tree-pass.h (pass_create_structure_vars): Remove.
2025         * params.h (SALIAS_MAX_IMPLICIT_FIELDS): Remove.
2026         (SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
2027         * tree-ssa-alias.c (create_structure_vars): Remove.
2028         (gate_structure_vars): Likewise.
2029         (pass_create_structure_vars): Likewise.
2030         (gate_build_alias): Likewise.
2031         (pass_build_alias): Adjust to run always and dump the function.
2032         * common.opt (ftree-salias): Hide.
2033         * passes.c (init_optimization_passes): Remove
2034         pass_create_structure_vars, adjust comment.
2035         * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): Remove.
2036         (PARAM_SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
2037         * opts.c (decode_options): Do not set flag_tree_salias.
2038         (common_handle_option): Add OPT_ftree_salias to the backward
2039         compatibility section.
2040
2041 2008-05-08  Richard Guenther  <rguenther@suse.de>
2042
2043         * tree-flow-inline.h (var_can_have_subvars): Move ...
2044         * tree-ssa-structalias.c (var_can_have_subvars): ... here.
2045         * tree-flow.h (var_can_have_subvars): Remove.
2046         (push_fields_onto_fieldstack): Remove.
2047         (sort_fieldstack): Likewise.
2048         (struct fieldoff): Move ...
2049         * tree-ssa-structalias.c (struct fieldoff): ... here.  Remove
2050         alias_set and base_for_components fields.
2051         (sort_fieldstack): Make static.
2052         (push_fields_onto_fieldstack): Likewise.  Remove code that
2053         handles anything but RECORD_TYPEs.  Remove alias_set and
2054         base_for_components handling.
2055         (create_variable_info_for): Adjust.
2056
2057 2008-05-08  Seongbae Park  <seongbae.park@gmail.com>
2058
2059         * common.opt (Wframe-larger-than=): Shorten the help message
2060         to one line.
2061         * doc/invoke.texi (Wframe-larger-than=): Add more description.
2062
2063 2008-05-08  Rafael Espindola  <espindola@google.com>
2064
2065         * tree-complex.c (expand_complex_div_wide): Don't create CONDs that
2066         trap.
2067         * tree-gimple.c (is_gimple_condexpr): Check that the expression doesn't
2068         trap and that both operands are gimple values.
2069         (canonicalize_cond_expr_cond): Use is_gimple_condexpr.
2070         * gcc/tree-eh.c (tree_could_trap_p): Correctly detect if a comparison
2071         is a fp operation.
2072
2073 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
2074
2075         * read-rtl.c (join_c_conditions): Return the first string if the
2076         two strings are equal.
2077
2078 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
2079
2080         * gensupport.h (pred_data): Add a "num_codes" field.
2081         (add_predicate_code): Declare.
2082         * gensupport.c (add_predicate_code): New function.
2083         (std_pred_table): Add an "allows_const_p" field.
2084         (std_preds): Set this field for predicates that allow RTX_CONST_OBJs.
2085         Remove the (incomplete) list of such codes from the codes field.
2086         (init_predicate_table): Use add_predicate_code.  Add all
2087         RTX_CONST_OBJs if allows_const_p is true.
2088         * genrecog.c (process_define_predicate): Use add_predicate_code.
2089
2090 2008-05-08  David Daney  <ddaney@avtrex.com>
2091             Richard Sandiford  <rsandifo@nildram.co.uk>
2092         
2093         * config/mips/mips.md (mips_expand_compare_and_swap_12): Handle
2094         special case of constant zero operands.
2095         * config/mips/mips.c (mips_expand_compare_and_swap_12): Zero extend
2096         old and new values.  Special case constant zero values.
2097         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Skip 'sync' if compare
2098         fails.
2099         (MIPS_COMPARE_AND_SWAP_12): Handle constant zero operands.
2100         (MIPS_COMPARE_AND_SWAP_12_0): New macro.
2101
2102 2008-05-08  Paolo Bonzini  <bonzini@gnu.org>
2103
2104         PR target/36090
2105         * simplify-rtx.c (simplify_plus_minus): Create CONST of
2106         similar RTX_CONST_OBJ before CONST_INT.
2107
2108 2008-05-08  Steve Ellcey  <sje@cup.hp.com>
2109
2110         * stmt.c (expand_stack_restore): Change sa mode if needed.
2111
2112 2008-05-08  Richard Guenther  <rguenther@suse.de>
2113
2114         * config/i386/i386-protos.h (ix86_return_in_memory): Adjust
2115         return type to bool.
2116         (ix86_sol10_return_in_memory): Likewise.
2117         (ix86_i386elf_return_in_memory): Likewise.
2118         (ix86_i386interix_return_in_memory): Likewise.
2119         * config/i386/i386.c (ix86_return_in_memory): Likewise.
2120         (ix86_sol10_return_in_memory): Likewise.
2121         (ix86_i386elf_return_in_memory): Likewise.
2122         (ix86_i386interix_return_in_memory): Likewise.
2123
2124 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
2125
2126         PR bootstrap/36180
2127         * calls.c (compute_argument_block_size ): Add ATTRIBUTE_UNUSED to
2128         fndecl argument.
2129         (emit_library_call_value_1): Add ATTRIBUTE_UNUSED to variable fndecl.
2130         * target-def.h: Check that TARGET_RETURN_IN_MEMORY isn't
2131         declared in front.
2132
2133 2008-05-08  Richard Guenther  <rguenther@suse.de>
2134
2135         * tree-data-ref.c (dr_analyze_alias): Do not set DR_SUBVARS.
2136         * tree-data-ref.h (struct dr_alias): Remove subvars field.
2137         (DR_SUBVARS): Remove.
2138         * tree-dfa.c (dump_subvars_for): Remove.
2139         (debug_subvars_for): Likewise.
2140         (dump_variable): Do not dump subvars.
2141         (remove_referenced_var): Do not remove subvars.
2142         * tree-flow-inline.h (clear_call_clobbered): SFTs no longer exist.
2143         (lookup_subvars_for_var): Remove.
2144         (get_subvars_for_var): Likewise.
2145         (get_subvars_at): Likewise.
2146         (get_first_overlapping_subvar): Likewise.
2147         (overlap_subvar): Likewise.
2148         * tree-flow.h (subvar_t): Remove.
2149         (struct var_ann_d): Remove subvars field.
2150         * tree-ssa-alias.c (mark_aliases_call_clobbered): Remove queued
2151         argument.  Remove special handling of SFTs.
2152         (compute_tag_properties): Likewise.
2153         (set_initial_properties): Likewise.
2154         (compute_call_clobbered): Likewise.
2155         (count_mem_refs): Likewise.
2156         (compute_memory_partitions): Likewise.
2157         (compute_flow_insensitive_aliasing): Likewise.
2158         (setup_pointers_and_addressables): Likewise.
2159         (new_type_alias): Likewise.
2160         (struct used_part): Remove.
2161         (used_portions): Likewise.
2162         (struct used_part_map): Likewise.
2163         (used_part_map_eq): Likewise.
2164         (used_part_map_hash): Likewise.
2165         (free_used_part_map): Likewise.
2166         (up_lookup): Likewise.
2167         (up_insert): Likewise.
2168         (get_or_create_used_part_for): Likewise.
2169         (create_sft): Likewise.
2170         (create_overlap_variables_for): Likewise.
2171         (find_used_portions): Likewise.
2172         (create_structure_vars): Likewise.
2173         * tree.def (STRUCT_FIELD_TAG): Remove.
2174         * tree.h (MTAG_P): Adjust.
2175         (struct tree_memory_tag): Remove base_for_components and
2176         unpartitionable flags.
2177         (struct tree_struct_field_tag): Remove.
2178         (SFT_PARENT_VAR): Likewise.
2179         (SFT_OFFSET): Likewise.
2180         (SFT_SIZE): Likewise.
2181         (SFT_NONADDRESSABLE_P): Likewise.
2182         (SFT_ALIAS_SET): Likewise.
2183         (SFT_UNPARTITIONABLE_P): Likewise.
2184         (SFT_BASE_FOR_COMPONENTS_P): Likewise.
2185         (union tree_node): Remove sft field.
2186         * alias.c (get_alias_set): Remove special handling of SFTs.
2187         * print-tree.c (print_node): Remove handling of SFTs.
2188         * tree-dump.c (dequeue_and_dump): Likewise.
2189         * tree-into-ssa.c (mark_sym_for_renaming): Likewise.
2190         * tree-nrv.c (dest_safe_for_nrv_p): Remove special handling of SFTs.
2191         * tree-predcom.c (set_alias_info): Do not set subvars.
2192         * tree-pretty-print.c (dump_generic_node): Do not handle SFTs.
2193         * tree-ssa-loop-ivopts.c (get_ref_tag): Likewise.
2194         * tree-ssa-operands.c (access_can_touch_variable): Likewise.
2195         (add_vars_for_offset): Remove.
2196         (add_virtual_operand): Remove special handling of SFTs.
2197         (add_call_clobber_ops): Likewise.
2198         (add_call_read_ops): Likewise.
2199         (get_asm_expr_operands): Likewise.
2200         (get_modify_stmt_operands): Likewise.
2201         (get_expr_operands): Likewise.
2202         (add_to_addressable_set): Likewise.
2203         * tree-ssa.c (verify_ssa_name): Do not handle SFTs.
2204         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
2205         * tree-vect-transform.c (vect_create_data_ref_ptr): Do not set subvars.
2206         * tree.c (init_ttree): Remove STRUCT_FIELD_TAG initialization.
2207         (tree_code_size): Remove STRUCT_FIELD_TAG handling.
2208         (tree_node_structure): Likewise.
2209         * tree-ssa-structalias.c (set_uids_in_ptset): Remove special
2210         handling of SFTs.
2211         (find_what_p_points_to): Likewise.
2212
2213 2008-05-08  Sa Liu  <saliu@de.ibm.com>
2214
2215         * config/spu/spu.md: Fixed subti3 pattern.
2216
2217 2008-05-08  Richard Guenther  <rguenther@suse.de>
2218
2219         PR middle-end/36154
2220         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
2221         sure to create a representative for trailing arrays for PTA.
2222
2223 2008-05-08  Richard Guenther  <rguenther@suse.de>
2224
2225         PR middle-end/36172
2226         * fold-const.c (operand_equal_p): Two objects which types
2227         differ in pointerness are not equal.
2228
2229 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
2230
2231         * calls.c (compute_argument_block_size): Add argument tree fndecl.
2232         (OUTGOING_REG_PARM_STACK_SPACE): Add function type argument.
2233         (emit_library_call_value_1): Add new variable fndecl initialized by
2234         NULL_TREE. It should be the decl type of orgfun, but this information
2235         seems not to be available here, so it uses the default calling abi.
2236         * config/arm/arm.c (arm_return_in_memory): Add fntype argumen.
2237         * config/arm/arm.h (RETURN_IN_MEMORY): Replace RETURN_IN_MEMORY
2238         by TARGET_RETURN_IN_MEMORY.
2239         * config/i386/i386-interix.h: Likewise.
2240         * config/i386/i386.h: Likewise.
2241         * config/i386/i386elf.h: Likewise.
2242         * config/i386/ptx4-i.h: Likewise.
2243         * config/i386/sol2-10.h: Likewise.
2244         * config/i386/sysv4.h: Likewise.
2245         * config/i386/vx-common.h: Likewise.
2246         * config/cris/cris.h: Removed #if 0 clause.
2247         * config/arm/arm-protos.h (arm_return_in_memory): Add fntype argument.
2248         * config/i386/i386-protos.h (ix86_return_in_memory): Add fntype
2249         argument.
2250         (ix86_sol10_return_in_memory): Likewise.
2251         (ix86_i386elf_return_in_memory): New.
2252         (ix86_i386interix_return_in_memory): New.
2253         * config/mt/mt-protos.h (mt_return_in_memory): New.
2254         * config/mt/mt.c: Likewise.
2255         * config/mt/mt.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
2256         (RETURN_IN_MEMORY):  Replace by TARGET_RETURN_IN_MEMORY.
2257         * config/bfin/bfin.h: Likewise.
2258         * config/bfin/bfin-protos.h (bfin_return_in_memory): Add fntype
2259         argument.
2260         * config/bfin/bfin.c: Likewise.
2261         * config/pa/pa.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
2262         * config/alpha/unicosmk.h: Likewise.
2263         * config/i386/cygming.h: Likewise.
2264         * config/iq2000/iq2000.h: Likewise.
2265         * config/mips/mips.h: Likewise.
2266         * config/mn10300/mn10300.h: Likewise.
2267         * config/rs6000/rs6000.h: Likewise.
2268         * config/score/score.h: Likewise.
2269         * config/spu/spu.h: Likewise.
2270         * config/v850/v850.h: Likewise.
2271         * defaults.h: Likewise.
2272         * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Adjust documentation.
2273         * expr.c (emit_block_move): Adjust use of
2274         OUTGOING_REG_PARM_STACK_SPACE.
2275         * function.c (STACK_DYNAMIC_OFFSET): Adjust use of
2276         OUTGOING_REG_PARM_STACK_SPACE.
2277         * targhooks.c (default_return_in_memory): Remove RETURN_IN_MEMORY.
2278
2279 2008-05-08  Jakub Jelinek  <jakub@redhat.com>
2280
2281         * tree-parloops.c (create_parallel_loop): Set OMP_RETURN_NOWAIT
2282         on OMP_RETURN for OMP_FOR.
2283
2284         PR debug/35896
2285         * dwarf2out.c (dw_expand_expr, common_check): Removed.
2286         (fortran_common): New function.
2287         (gen_variable_die): Call fortran_common instead of common_check,
2288         adjust for it returning tree instead of rtx.  Formatting.
2289
2290 2008-05-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
2291
2292         PR rtl/7335
2293         PR rtl/33826
2294         * see.c (see_copy_insn): Copy new pure const attributes for new call.
2295         * c-decl.c (merge_decls): Ditto.
2296         * postreload.c (record_opr_changes): Change CONST_OR_PURE_CALL_P
2297         to RTL_CONST_OR_PURE_CALL_P.
2298         * tree.c (define_local_buitin): Rename DECL_IS_PURE to DECL_PURE_P.
2299         Initialized DECL_LOOPING_CONST_PURE.
2300         (process_call_operands): Set tree_side_effects properly.
2301         * tree.h (TREE_READONLY_DECL_P): Removed.
2302         (DECL_IS_PURE): Renamed to DECL_PURE_P.
2303         (DECL_LOOPING_OR_CONST_P): New macro.
2304         (struct tree_function_decl): Added looping_const_or_pure_p.
2305         (ECF_*) Renumbered.
2306         (ECF_LOOPING_OR_CONST_P): New macro.
2307         * rtlanal.c (pure_const_p): Removed.
2308         * builtins.c (expand_builtin): Rename DECL_IS_PURE to DECL_PURE_P.
2309         * reorg.c (delete_prior_computation) Changed CONST_OR_PURE_CALL_P
2310         to RTL_CONST_CALL_P.
2311         * ipa-pure-const.c (pure_const_state_e): Added looping field.
2312         (check_decl, check_tree, check_call, scan_function): Initialize
2313         looping.
2314         (analyze_function): Rename DECL_IS_PURE to DECL_PURE_P.
2315         (static_execute): Set looping true for recursive functions.
2316         Undo setting state to IPA_NEITHER for recursive functions.
2317         * cse.c (cse_insn): 
2318         * ifcvt.c (noce_can_store_speculate_p): Changed
2319         CONST_OR_PURE_CALL_P and pure_call_p to RTL_CONST_CALL_P or 
2320         RTL_CONST_OR_PURE_CALL_P.
2321         * dse.c (scan_insn): Ditto.
2322         * local-alloc.c (validate_equiv_mem, memref_used_between_p): Ditto.
2323         * gcse.c (oprs_not_seen_p) Changed CONST_OR_PURE_CALL_P to
2324         RTL_CONST_OR_PURE_CALL_P.
2325         (store_killed_in_insn): Changed CONST_OR_PURE_CALL_P and
2326         pure_call_p to RTL_CONST_CALL_P.
2327         * gimplify.c (gimplify_call_expr): Clear side effects for
2328         non-looping pure and constant calls.
2329         * calls.c (emit_call_1): Set rtl flags from ecf flags.
2330         (flags_from_decl_or_type): Set ecf flags from decl flags.
2331         (initialize_argument_information): Turn off
2332         ECF_LOOPING_CONST_OR_PURE when turning off ECF_CONST.
2333         Change const to pure if callee_copies is true rather than just
2334         turning off const.
2335         (expand_call): Turn off ECF_LOOPING_PURE_CONST_CALL and remove old
2336         way of marking pure calls.
2337         (emit_library_call_value_1): Turn off ECF_LOOPING_PURE_CONST_CALL.
2338         Remove hack that was supposed to fix pr7335 and remove old
2339         way of marking pure calls.
2340         * emit-rtl.c (emit_copy_of_insn_after): Copy RTL_CONST_CALL_P,
2341         RTL_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P.
2342         * cselib.c (cselib_process_insn): Changed CONST_OR_PURE_CALL_P to
2343         RTL_CONST_OR_PURE_CALL_P.
2344         * tree-ssa-pre.c (can_value_number_call): Fixed spacing.
2345         * loop-invariant.c (find_exits, find_invariant_bb): Changed
2346         CONST_OR_PURE_CALL_P to RTL_CONST_OR_PURE_CALL_P.
2347         * sched-deps.c (schedule_analyze): Ditto.
2348         * rtl.h (struct rtx_def): Use call field, unchanging field, and
2349         return_val field of calls to represent pure and const function info.
2350         (CONST_OR_PURE_CALL_P): Deleted macro.
2351         (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
2352         RTL_LOOPING_CONST_OR_PURE_CALL_P, RTL_CONST_OR_PURE_P): New macros.
2353         * tree-inline.c (copy_body_r): Changed TREE_READONLY_DECL_P to
2354         TREE_READONLY.
2355         * tree-optimize.c (execute_fixup_cfg): Added test for
2356         ECF_LOOPING_CONST_OR_PURE.
2357         * c-common.c (handle_pure_attribute): Changed DECL_IS_PURE to
2358         DECL_PURE_P.
2359         * tree-cfg.c (update_call_expr_flags): Do not clear tree side
2360         effects for looping pure or const calls.
2361         (verify_gimple_expr): Added verification code. 
2362         * config/alpha/alpha.c (alpha_legitimize_address,
2363         alpha_emit_xfloating_libcall): Changed CONST_OR_PURE_CALL_P to
2364         RTL_CONST_CALL_P.
2365         * config/s390/s390.c (s390_emit_tls_call_insn): Ditto.
2366         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Ditto.
2367         * config/mips/mips.c (mips_call_tls_get_addr): Ditto.
2368         * cfgrtl.c (need_fake_edge_p): Changed CONST_OR_PURE_CALL_P to
2369         RTL_CONST_OR_PURE_CALL_P.
2370         * dce.c (deletable_insn_p): Allow non looping, non sibling, pure
2371         and const calls to be deleted.
2372
2373 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
2374
2375         PR target/35714
2376         * config/i386/mmx.md (mmx_subv2sf3): New expander.
2377         (*mmx_subv2sf3): Rename from mmx_subv2sf3 insn pattern.
2378         (*mmx_eqv2sf3): Rename from mmx_eqv2sf3 insn pattern.
2379         (mmx_eqv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
2380         to handle nonimmediate operands.
2381         (*mmx_paddwd): Rename from mmx_paddwd insn pattern.
2382         (mmx_paddwd): New expander.  Use ix86_fixup_binary_operands_no_copy
2383         to handle nonimmediate operands.
2384         (*mmx_pmulhrwv4hi3): Rename from mmx_pmulhrwv4hi3 insn pattern.
2385         (mmx_pmulhrwv4hi3): New expander.  Use
2386         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2387         (*sse2_umulv1siv1di3): Rename from sse2_umulv1siv1di3 insn pattern.
2388         (sse2_umulv1siv1di3): New expander.  Use
2389         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2390         (*mmx_eq<mode>3): Rename from mmx_eq<mode>3 insn pattern.
2391         (mmx_eq<mode>3): New expander.  Use
2392         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2393         (*mmx_uavgv8qi3): Rename from mmx_uavgv8qi3 insn pattern.
2394         (mmx_uavgv8qi3): New expander.  Use
2395         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2396         (*mmx_uavgv4hi3): Rename from mmx_uavgv4hi3 insn pattern.
2397         (mmx_uavgv4hi3): New expander.  Use
2398         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2399
2400         * config/i386/sse.md
2401         (sse_movhlps_exp): New expander.  Use ix86_fixup_binary_operands
2402         to handle nonimmediate operands.
2403         (sse_movlhps_exp): New expander.  Use ix86_fixup_binary_operands
2404         to handle nonimmediate operands.
2405         (sse_loadhps_exp): New expander.  Use ix86_fixup_binary_operands
2406         to handle nonimmediate operands.
2407         (sse_loadlps_exp): New expander.  Use ix86_fixup_binary_operands
2408         to handle nonimmediate operands.
2409         (sse2_unpckhpd_exp): New expander.  Use
2410         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2411         (sse2_unpcklpd_exp): New expander.  Use
2412         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2413         (sse_loadhpd_exp): New expander.  Use ix86_fixup_binary_operands
2414         to handle nonimmediate operands.
2415         (sse_loadlpd): New expander.  Use ix86_fixup_binary_operands
2416         to handle nonimmediate operands.
2417         (*sse2_<plusminus_insn><mode>3): Rename from
2418         sse2_<plusminus_insn><mode>3 insn pattern.
2419         (sse2_<plusminus_insn><mode>3): New expander.  Use
2420         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2421         (*sse2_umulv2siv2di3): Rename from sse2_umulv2siv2di3 insn pattern.
2422         (sse2_umulv2siv2di3): New expander.  Use
2423         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2424         (*sse4_1_mulv2siv2di3): Rename from sse4_1_mulv2siv2di3 insn pattern.
2425         (sse4_1_mulv2siv2di3): New expander.  Use
2426         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2427         (*sse2_pmaddwd): Rename from sse2_pmaddwd insn pattern.
2428         (sse2_pmaddwd): New expander.  Use
2429         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2430         (*sse2_eq<mode>3): Rename from sse2_eq<mode>3 insn pattern.
2431         (sse2_eq<mode>3): New expander.  Use
2432         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2433         (*sse4_1_eqv2di3): Rename from sse4_1_eqv2di3 insn pattern.
2434         (sse4_1_eqv2di3): New expander.  Use
2435         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2436         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
2437         (sse2_uavgv16qi3): New expander.  Use
2438         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2439         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
2440         (sse2_uavgv16qi3): New expander.  Use
2441         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2442         (*sse2_uavgv8hi3): Rename from sse2_uavgv8hi3 insn pattern.
2443         (sse2_uavgv8hi3): New expander.  Use
2444         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2445         (*ssse3_pmulhrswv8hi3): Rename from ssse3_pmulhrswv8hi3 insn pattern.
2446         (ssse3_pmulhrswv8hi3): New expander.  Use
2447         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2448         (*ssse3_pmulhrswv4hi3): Rename from ssse3_pmulhrswv4hi3 insn pattern.
2449         (ssse3_pmulhrswv4hi3): New expander.  Use
2450         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2451
2452         (<sse>_vm<plusminus_insn><mode>3): Do not use ix86_binary_operator_ok.
2453         (<sse>_vmmul<mode>3): Ditto.
2454         (divv4sf3): Do not use ix86_fixup_binary_operands_no_copy.
2455         (divv2df3): Ditto.
2456         (ssse3_pmaddubsw128): Use register_operand for operand 1.
2457         (ssse3_pmaddubsw): Ditto.
2458
2459         * config/i386/i386.c (struct_builtin_description)
2460         [IX86_BUILTIN_LOADHPS]: Use CODE_FOR_sse_loadhps_exp.
2461         [IX86_BUILTIN_STOREHPS]: Use CODE_FOR_sse_loadlps_exp.
2462         [IX86_BUILTIN_LOADHPD]: Use CODE_FOR_sse2_loadhpd_exp.
2463         [IX86_BUILTIN_LOADLPD]: Use CODE_FOR_sse2_loadlpd_exp.
2464         [IX86_BUILTIN_MOVHLPS]: Use CODE_FOR_sse_movhlps_exp.
2465         [IX86_BUILTIN_MOVLHPS]: Use CODE_FOR_sse_movlhps_exp.
2466         [IX86_BUILTIN_UNPCKHPD]: Use FOR_sse2_unpckhpd_exp.
2467         [IX86_BUILTIN_UNPCKLPD]: Use FOR_sse2_unpcklpd_exp.
2468         (ix86_fixup_binary_operands): Assert that src1
2469         and src2 must have the same mode when swapped.
2470         (ix86_expand_binop_builtin): Do not use ix86_fixup_binary_operands
2471         and ix86_binary_operator_ok.  Do not force operands in registers
2472         when optimizing.
2473
2474 2008-05-07  Jan Hubicka  <jh@suse.cz>
2475
2476         * cgraph.c (dump_cgraph_node): Update.
2477         * cgraph.h (cgraph_local_info): Break out inline summary.
2478         * cgraphunit.c (cgraph_process_new_functions): Use inliner analysis
2479         hook.
2480         * ipa-inline (inline_summary): New accestor function.
2481         (cgraph_clone_inlined_nodes, cgraph_check_inline_limits,
2482         cgraph_decide_inlining, compute_inline_parameters): Update.
2483         * ipa.c (cgraph_remove_unreachable_nodes): Remove statistics.
2484
2485 2008-05-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
2486
2487         Cleanup ColdFire scheduling support and add V4 pipeline model.
2488
2489         * config/m68k/m68k.md (UNSPEC_TIE): New constant.
2490         (define_attr cpu): Add cfv4 value.
2491         (define_attr type, define_attr type1): Merge into a single 'type'
2492         attribute.  Update all uses.
2493         (define_attr opx_type, define_attr opy_type, define_attr opx_access):
2494         Rearrange and update.  Rename value 'reg' to 'Rn', add value 'FPn'.
2495         Update all uses.
2496         (define_attr opx_mem, define_attr opy_mem): Remove.
2497         (define_attr op_mem): Clean up, update comment.
2498         (define_attr size): Use specific values instead of general int.
2499         (define_attr guess, define_attr split): Remove.  Update all uses.
2500         (movdf_internal, tstsi_internal, tsthi_internal, tstqi_internal,
2501         tst<mode>_68881, pushexthisi_const, movsi_const0_68000_10,
2502         movsi_const0_68040_60, movsi_const0, movsi_cf, movstrictqi_cf,
2503         zero_extendhisi2_cf, zero_extendqisi2_cfv4, cfv4_extendhisi2,
2504         68k_extendhisi2, extendqihi2, cfv4_extendqisi2, 68k_extendqisi2,
2505         floatsi<mode>2_68881, ftrunc<mode>2_68881, ftrunc<mode>2_cf,
2506         fix<mode>qi2_68881, fix<mode>hi2_68881, fix<mode>si2_68881,
2507         adddi_dishl32, addsi3_5200, add<mode>3_floatsi_68881,
2508         add<mode>3_floathi_68881, add<mode>3_floatqi_68881,
2509         add<mode>3_68881, add<mode>3_cf, subdi_dishl32, subsi3,
2510         sub<mode>3_floatsi_68881, sub<mode>3_floathi_68881,
2511         sub<mode>3_floatqi_68881, sub<mode>3_68881, sub<mode>3_cf,
2512         mulhi3, mulhisi3, mulhisisi3_s, mulsi3_68020, mulsi3_cf,
2513         umulhisi3, mulhisisi3_z, mul<mode>3_floatsi_68881,
2514         mul<mode>3_floathi_68881, mul<mode>3_floatqi_68881, fmul<mode>3_cf,
2515         div<mode>3_cf, sqrt<mode>2_cf, abs<mode>2_cf, clzsi2,
2516         one_cmplsi2_5200, subreghi1ashrdi_const32, ashrsi3, lshrsi3,
2517         bsetmemqi, bsetmemqi_ext, bclrmemqi, bclrmemqi_ext,
2518         beq, bne, bgt, blt, bordered, bunordered, buneq, bunge, bungt, bunle,
2519         bunlt, bltgt, tablejump_internal, call, non_symbolic_call_value,
2520         symbolic_call_value_jsr, symbolic_call_value_bsr, link):
2521         Update or set attributes.
2522         (stack_tie): New fake instruction.
2523
2524         * config/m68k/m68k.h (TUNE_CFV4): New macro.
2525         (m68k_sched_attr_size): Update declaration.
2526         (m68k_sched_attr_type2): Remove.
2527         (m68k_sched_address_bypass_p, m68k_sched_indexed_address_bypass_p):
2528         Declare new bypass predicates.
2529
2530         * config/m68k/m68k.c (m68k_sched_issue_rate,
2531         m68k_sched_first_cycle_multipass_dfa_lookahead): Declare hook
2532         implementations.
2533         (TARGET_SCHED_ISSUE_RATE,
2534         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Override hooks.
2535         (override_options): Handle scheduling for ColdFire V4 core.
2536         (m68k_expand_prologue): Emit stack_tie.
2537         (enum attr_op_type): Split value 'OP_TYPE_REG' to 'OP_TYPE_RN' and
2538         'OP_TYPE_FPN'.  Update all uses.
2539         (sched_guess_p): Remove.
2540         (sched_address_type): Handle symbolic addresses.
2541         (sched_get_operand): New static function.
2542         (sched_operand_type): Merge into sched_attr_op_type.
2543         (sched_attr_op_type): Handle FP registers, handle quick constants,
2544         update.
2545         (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type): Update.
2546         (m68k_sched_attr_size): Update.  Move logic to ...
2547         (sched_get_attr_size_int): New static function.
2548         (sched_get_opxy_mem_type): New static function.
2549         (m68k_sched_attr_op_mem): Update.
2550         (m68k_sched_attr_type2): Remove.
2551         (sched_cfv4_bypass_data): New static variable.
2552         (m68k_sched_adjust_cost): Handle ColdFire V4 bypass.
2553         (m68k_sched_issue_rate): Implement scheduler hook.
2554         (struct _sched_ib: enabled_p): New field.
2555         (m68k_sched_variable_issue): Update.  Handle V4.
2556         (SCHED_DUMP_TODO, SCHED_DUMP_DONE, SCHED_DUMP_NOTHING,
2557         sched_dump_class_func_t, sched_dump_split_class,
2558         sched_dump_dfa_guess_unit_code, sched_dump_dfa_state,
2559         sched_dump_dfa_class, m68k_sched_dump): Remove.
2560         (m68k_sched_first_cycle_multipass_dfa_lookahead): Implement scheduler
2561         hook.
2562         (m68k_sched_init_global): Remove statisctics dumping, introduce
2563         sanity check that all instructions have pipeline reservations.  Handle
2564         ColdFire V4 core.
2565         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
2566         Handle ColdFire V4 core.
2567         (sched_mem_operand_p, sched_get_reg_operand, sched_get_mem_operand):
2568         New static functions.
2569         (m68k_sched_address_bypass_p): New bypass predicate.
2570         (sched_get_indexed_address_scale): New static function.
2571         (m68k_sched_indexed_address_bypass_p): New bypass predicate.
2572
2573         * cf.md: Update comments.
2574         (define_attr type2): Remove.  Use 'type' attribute instead.
2575         Update all uses.
2576         (cf_ib): Rename to cfv123_ib.  Update all uses.
2577         (cf_oep): Rename to cfv123_oep.  Update all uses.
2578         (cf_chr): Rename to cfv123_chr.  Update all uses.
2579         (cf_mem): Rename to cfv123_mem.  Update all uses.
2580         (cf_mac): Move to more appropriate place.
2581         (cfv123_guess): New automaton and cpu_unit.
2582         (cfv123_*, cfv12_*, cfv1_*, cfv2_*, cfv3_*): Use type attribute.
2583         Update uses of 'size' attribute.  Handle before reload scheduling.
2584         (cfv123_guess): New dummy reservation for unhandled instructions.
2585         (cfv4_*): Pipeline description of ColdFire V4 core.
2586         (ignore): New reservation to handle 'ignore' type.
2587
2588 2008-05-07  Ian Lance Taylor  <iant@google.com>
2589
2590         PR middle-end/36013
2591         * gimplify.c (find_single_pointer_decl_1): Don't look through
2592         indirections.
2593         (find_single_pointer_decl): Adjust comments.
2594
2595 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
2596
2597         PR middle-end/36137
2598         * fold-const.c (fold_binary): Use STRIP_SIGN_NOPS instead of
2599         STRIP_NOPS on arguments even for MIN_EXPR and MAX_EXPR.
2600
2601         PR middle-end/36106
2602         * omp-low.c (expand_omp_atomic_pipeline): Load value using the
2603         integral type rather than floating point, then VIEW_CONVERT_EXPR
2604         to the floating point type.
2605
2606 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
2607
2608         * config/i386/i386.c (ix86_expand_copysign): Force non-zero constant
2609         TFmode op0 to register.
2610
2611 2008-05-07  Alan Modra  <amodra@bigpond.net.au>
2612
2613         * c-decl.c (grokdeclarator): Comment typo.
2614
2615 2008-05-06  Aldy Hernandez  <aldyh@redhat.com>
2616
2617         * tree-flow.h: Remove prototype for computed_goto_p.
2618         * tree-cfg.c (computed_goto_p): Make static.
2619
2620 2008-05-06  H.J. Lu  <hongjiu.lu@intel.com>
2621
2622         PR target/35657
2623         * config/i386/i386.c (contains_128bit_aligned_vector_p): Renamed to ...
2624         (contains_aligned_value_p): This.  Handle _Decimal128.
2625         (ix86_function_arg_boundary): Only align _Decimal128 to its
2626         natural boundary and handle it properly.
2627
2628 2008-05-06  Martin Jambor  <mjambor@suse.cz>
2629
2630         * ipa-cp.c (ipcp_method_orig_node): Renamed to ipcp_get_orig_node.
2631         (ipcp_method_is_cloned): Renamed to ipcp_node_is_clone
2632         (ipcp_method_set_orig_node): Removed.
2633         (ipcp_cval_get_cvalue_type): Removed.
2634         (ipcp_method_get_scale): Renamed to ipcp_get_node_scale.
2635         (ipcp_method_set_scale): Renamed to ipcp_set_node_scale.
2636         (ipcp_cval_set_cvalue_type): Removed.
2637         (ipcp_cval_get_cvalue): Removed.
2638         (ipcp_cval_set_cvalue): Removed.
2639         (ipcp_type_is_const): Renamed to ipcp_lat_is_const.
2640         (ipcp_cval_equal_cvalues): Renamed to ipcp_lats_are_equal
2641         (ipcp_lats_are_equal): Changed parameters to two ipcp_lattice's
2642         (ipcp_cval_meet): Renamed to ipa_lattice_meet
2643         (ipcp_cval_changed): Changed to use ipcp_lat_is_const
2644         (ipcp_method_cval): Renamed to ipcp_get_ith_lattice
2645         (ipcp_get_ith_lattice): Changed parameters.
2646         (ipcp_cval_compute): Renamed to ipcp_lattice_from_jfunc
2647         (ipcp_lattice_from_jfunc): Changed parameters.
2648         (ipcp_redirect): Local lattice pointer instead of lattice type variable.
2649         (ipcp_method_cval_print): Added temporary variable info.
2650         (ipcp_redirect): Removed already unused local variable caller.
2651         (ipcp_redirect): New temporary variable orig_callee_info
2652         (ipcp_redirect): Removed newly unused local variable callee.
2653         (ipcp_redirect): Removed (a bit confusing) local variable type.
2654         (ipcp_insert_stage): Added local variable info.
2655         (ipcp_cval_changed): Renamed to ipcp_lattice_changed, parameters 
2656         renamed too
2657         (ipcp_formal_create): Removed.
2658         (ipcp_method_cval_set): Removed.
2659         (ipcp_propagate_stage): Renamed lattice variables.
2660         (ipcp_method_cval_set_cvalue_type): Removed.
2661         (ipcp_method_cval_print): Renamed to ipcp_print_all_lattices
2662         (ipcp_print_all_lattices): Changed printed strings to refer to 
2663         lattices rather than cvals.
2664         (ipcp_method_cval_init): Renamed to ipcp_initialize_node_lattices
2665         (ipcp_propagate_const): Changed formal parameters.
2666         (build_const_val): Changed formal parameters.
2667         (ipcp_insert_stage): Removed useless variable cvalue
2668         (build_const_val): Changed formal parameters.
2669         (ipcp_method_compute_scale): Renamed to ipcp_compute_node_scale
2670         (ipcp_after_propagate): Renamed to ipcp_change_tops_to_bottom
2671         (ipcp_callsite_param_print): Renamed to ipcp_print_all_jump_functions
2672         (ipcp_profile_mt_count_print): Renamed to ipcp_print_func_profile_counts
2673         (ipcp_print_func_profile_counts): Changed string from "method" to 
2674         "function"
2675         (ipcp_profile_cs_count_print): Renamed to ipcp_print_call_profile_counts
2676         (ipcp_profile_edge_print): Renamed to ipcp_print_edge_profiles
2677         (ipcp_profile_bb_print): Renamed to ipcp_print_bb_profiles
2678         (ipcp_structures_print): Renamed to ipcp_print_all_structures
2679         (ipcp_profile_print): Renamed to ipcp_print_profile_data
2680         (ipcp_lat_is_const): Changed parameters and made inline.
2681         (ipcp_replace_map_create): Renamed to ipcp_create_replace_map
2682         (ipcp_redirect): Renamed to ipcp_need_redirect_p
2683         (ipcp_need_redirect_p): Calls ipcp_lat_is_const instead of using 
2684         the predicate condition directly
2685         (ipcp_propagate_stage): Added local variable args. Removed local
2686         variable callee.  (Both are mere code simplifications.)
2687         (ipcp_method_dont_insert_const): Renamed to
2688         ipcp_node_not_modifiable_p.
2689         (ipcp_node_not_modifiable_p): Made inline.
2690         (ipcp_cloned_create): Renamed to ipcp_init_cloned_node
2691         (ipcp_propagate_const): Renamed to ipcp_propagate_one_const
2692         (ipcp_print_all_lattices): Removed variable cvalue
2693         (ipcp_method_scale_print): Renamed to ipcp_function_scale_print
2694         Updated comments.
2695
2696 2008-05-06  Olivier Hainque  <hainque@adacore.com>
2697
2698         * tree-sra.c (try_instantiate_multiple_fields): Early return
2699         if field has POINTER_TYPE.
2700
2701 2008-05-06  Kai Tietz  <kai.tietz@onevision.com>
2702
2703         * config/i386/i386.c (output_set_got): Fix for x86_64 output_emit_asm
2704         by using 'q' specifier for instruction.
2705         (ix86_file_end): Replaced case TARGET_64BIT_MS_ABI by TARGET_64BIT.
2706
2707 2008-05-06  Anatoly Sokolov <aesok@post.ru>
2708
2709         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
2710         Change mode of zero_extract from QImode to HImode.
2711         (sign bit tests peepholes): (Ditto.).
2712
2713 2008-05-06  Uros Bizjak  <ubizjak@gmail.com>
2714
2715         * config/i386/mmx.md: Remove double backslashes from asm templates.
2716         (*mmx_addv2sf3): Rename from mmx_addv2sf3 insn pattern.
2717         (mmx_addv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
2718         to handle nonimmediate operands.
2719         (*mmx_mulv2sf3): Rename from mmx_mulv2sf3 insn pattern.
2720         (mmx_mulv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
2721         to handle nonimmediate operands.
2722         (*mmx_<code>v2sf3_finite): New insn pattern.
2723         (*mmx_<code>v2sf3): Rename from mmx_<code>v2sf3 insn pattern.
2724         (mmx_<code>v2sf3): New expander.  Use
2725         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2726         (mmx_<plusminus_insn><mode>3): New expander.  Use
2727         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2728         (*mmx_<plusminus_insn><mode>3): New insn pattern.
2729         (mmx_add<mode>3): Removed.
2730         (mmx_ssadd<mode>3): Ditto.
2731         (mmx_usadd<mode>3): Ditto.
2732         (mmx_sub<mode>3): Ditto.
2733         (mmx_sssub<mode>3): Ditto.
2734         (mmx_ussub<mode>3): Ditto.
2735         (*mmx_mulv4hi3): Rename from mmx_mulv4hi3 insn pattern.
2736         (mmx_mulv4hi3): New expander.  Use ix86_fixup_binary_operands_no_copy
2737         to handle nonimmediate operands.
2738         (*mmx_smulv4hi3_highpart): Rename from mmx_smulv4hi3_highpart
2739         insn pattern.
2740         (mmx_smulv4hi3_highpart): New expander.  Use
2741         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2742         (*mmx_umulv4hi3_highpart): Rename from mmx_umulv4hi3_highpart
2743         insn pattern.
2744         (mmx_umulv4hi3_highpart): New expander.  Use
2745         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2746         (*mmx_<code>v4hi3): Rename from mmx_<code>v4hi3 insn pattern.
2747         (mmx_<code>v4hi3): New expander.  Use
2748         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2749         (*mmx_<code>v8qi3): Rename from mmx_<code>v8qi3 insn pattern.
2750         (mmx_<code>v8qi3): New expander.  Use
2751         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2752         (*mmx_<code><mode>3): Rename from mmx_<code><mode>3 insn pattern.
2753         (mmx_<code><mode>3): New expander.  Use
2754         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2755
2756 2008-05-05  Jan Hubicka  <jh@suse.cz>
2757
2758         PR tree-optimization/36118
2759         * passes.c (pass_init_dump_file): Fix dump header.
2760
2761 2008-05-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2762
2763         PR middle-end/36141
2764         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't create
2765         VCE for function decls.
2766
2767 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
2768
2769         * config/i386/sse.md (sse2_<plusminus_insn><mode>3): Fix a typo.
2770
2771 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
2772
2773         * config/i386/i386.md (sat_plusminus): New.
2774         (plusminus_insn): Likewise.
2775         (plusminus_mnemonic): Likewise.
2776         (addsub): Removed.
2777         (comm): Add ss_plus, us_plus, ss_minus and us_minus.
2778         (*<addsub><mode>3_cc_overflow): Renamed to ...
2779         (*<plusminus_insn><mode>3_cc_overflow): This.
2780         (*<addsub>si3_zext_cc_overflow): Renamed to ...
2781         (*<plusminus_insn>si3_zext_cc_overflow): This.
2782
2783         * config/i386/sse.md (<addsub><mode>3): Renamed to ...
2784         (<plusminus_insn><mode>3): This.
2785         (*<addsub><mode>3): Renamed to ...
2786         (*<plusminus_insn><mode>3): This.
2787         (<sse>_vm<addsub><mode>3): Renamed to ...
2788         (<sse>_vm<plusminus_insn><mode>3): This.
2789         (sse3_h<addsub>v4sf3): Renamed to ...
2790         (sse3_h<plusminus_insn>v4sf3): This.
2791         (sse3_h<addsub>v2df3): Renamed to ...
2792         (sse3_h<plusminus_insn>v2df3): This.
2793         (<plusminus_insn><mode>3): New.
2794         (*<plusminus_insn><mode>3): Likewise.
2795         (sse2_<plusminus_insn><mode>3): Likewise.
2796         (add<mode>): Removed.
2797         (*add<mode>3): Likewise.
2798         (sse2_ssadd<mode>3): Likewise.
2799         (sse2_usadd<mode>3): Likewise.
2800         (sub<mode>3): Likewise.
2801         (*sub<mode>3): Likewise.
2802         (sse2_sssub<mode>3): Likewise.
2803         (sse2_ussub<mode>3): Likewise.
2804
2805 2008-05-05  Benjamin Kosnik  <bkoz@redhat.com>
2806
2807         * gthr-single.h: Add in required interface elements as per gthr.h.
2808         Add stub types for __gthread_key_t, __gthread_once_t. Add defines
2809         for __GTHREAD_ONCE_INIT, __GTHREAD_RECURSIVE_MUTEX_INIT.
2810         Generalize UNUSED macro. 
2811         (__gthread_once): Add.
2812         (__gthread_key_create): Add.
2813         (__gthread_key_delete): Add.
2814         (__gthread_getspecific): Add.
2815         (__gthread_setspecific): Add.
2816         
2817 2008-05-05  Andrew Pinski  <Andrew.Pinski@playstation.sony.com>
2818
2819         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If we have
2820         the same size types for the indirect reference on the rhs, then
2821         create a VCE.
2822
2823 2008-05-05  Uros Bizjak  <ubizjak@gmail.com>
2824
2825         * config/i386/i386.md
2826         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Use only
2827         one insn template instead of template series.
2828         (*xordi_1_rex64): Ditto.
2829         (*xordi_2_rex64): Ditto.
2830
2831 2008-05-05  Ira Rosen  <irar@il.ibm.com>
2832
2833         PR tree-optimization/36119
2834         * tree-vect-transform.c (vectorizable_assignment): Set NCOPIES to 1
2835         in case of SLP.
2836
2837 2008-06-04  Jan Hubicka  <jh@suse.cz>
2838
2839         tree-optimization/36100
2840         * tree-pass.h (pass_O0_always_inline): Declare.
2841         * ipa-inline.c (inline_transform): Remove dead code.
2842         (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
2843         pass_O0_always_inline): New.
2844         * passes.c (init_optimization_passes): Add pass_O0_always_inline.
2845
2846 2008-05-04  Kai Tietz  <kai.tietz@onevision.com>
2847
2848         * config/i386/i386.c (x86_output_mi_thunk): Use movq alternative
2849         mnemonic in this_param move for TARGET_64BIT.
2850
2851 2008-05-04  Uros Bizjak  <ubizjak@gmail.com>
2852
2853         * config/i386/i386.md (*strmovsi_1): Simplify asm alternatives.
2854         (*strmovsi_rex_1): Ditto.
2855         (*strsetsi_1): Ditto.
2856         (*strsetsi_rex_1): Ditto.
2857
2858         (add<mode>cc): Macroize expander from addqicc, addhicc, addsicc and
2859         adddicc expanders using SWI mode iterator.
2860
2861 2008-05-04  H.J. Lu  <hongjiu.lu@intel.com>
2862
2863         PR target/36121
2864         * config/i386/i386.c (ix86_expand_special_args_builtin): Remove three
2865         argument handling.
2866
2867 2008-05-04  David S. Miller  <davem@davemloft.net>
2868
2869         * config.gcc (sparc*-*-*): Always set need_64bit_hwint to yes.
2870         (sparc*-*-linux*): Use linux.h in tm_file.
2871         (sparc-*-linux*): If 'enabled_targets' is 'all', build a bi-arch
2872         compiler defaulting to 32-bit.
2873         (sparc*-*-*): Remove explicit target settings of need_64bit_hwint,
2874         no longer needed.
2875         * config/sparc/linux.h: Remove definitions now obtained
2876         properly from linux.h
2877         * config/sparc/linux64.h: Likewise.
2878         (ASM_CPU_DEFAULT_SPEC): Change this to ASM_CPU64_DEFAULT_SPEC, we
2879         don't want this setting for 32-bit builds in a biarch compiler.
2880         * doc/install.texi: Add sparc-linux to list of targets
2881         supporting --enable-targets=all.
2882
2883 2008-05-03  Andrew Pinski  <pinskia@gmail.com>
2884
2885         * Makefile.in (tree-ssa-phiprop.o): Fix dependencies.
2886
2887 2008-05-03  H.J. Lu  <hongjiu.lu@intel.com>
2888
2889         * config/i386/i386.c (ix86_builtin_type): Move V4SI_FTYPE_V4SF
2890         after V4SI_FTYPE_V8HI.
2891         (ix86_init_mmx_sse_builtins): Move case V4HI_FTYPE_V4HI after
2892         case V4SI_FTYPE_V2DF.
2893
2894 2008-05-03  Kenneth Zadeck  <zadeck@naturalbridge.com>
2895
2896         * doc/invoke.texi (max-flow-memory-locations): Removed.
2897         * params.def (PARAM_MAX_FLOW_MEMORY_LOCATIONS): Removed.
2898         
2899 2008-05-03  Richard Guenther  <rguenther@suse.de>
2900
2901         PR middle-end/34973
2902         * opts.c (set_Wstrict_aliasing): Handle the turn-off case.
2903
2904 2008-05-02  David S. Miller  <davem@davemloft.net>
2905
2906         * config.gcc (need_64bit_hwint): Document libcpp dependency.
2907
2908 2008-05-02  Simon Baldwin <simonb@google.com>
2909
2910         PR bootstrap/36108
2911         * c-common.h (warn_array_subscript_range): Removed.
2912         * c-common.c (warn_array_subscript_range): Ditto.
2913         * tree-vrp.c (check_array_ref): Revert to ignoring arrays with size 2.
2914         * c-typeck.c (build_array_ref): Remove warn_array_subscript_range.
2915
2916 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
2917
2918         * config/i386/i386.c (ix86_special_builtin_type): New.
2919         (bdesc_special_args): Likewise.
2920         (ix86_expand_special_args_builtin): Likewise.
2921         (ix86_init_mmx_sse_builtins): Updated.
2922         (ix86_expand_builtin): Updated.
2923         (ix86_expand_store_builtin): Removed.
2924         (ix86_expand_unop_builtin): Likewise.
2925
2926         * config/i386/mm3dnow.h (__v2sf): Moved to ...
2927         * config/i386/mmintrin.h (__v2sf): Here.
2928
2929         * config/i386/xmmintrin.h (_mm_loadh_pi): Replace __v2si with
2930         const __v2sf.
2931         (_mm_loadl_pi): Likewise.
2932         (_mm_storeh_pi): Replace __v2si with __v2sf.
2933         (_mm_storel_pi): Likewise.
2934
2935         * doc/extend.texi: Correct __builtin_ia32_loadhps,
2936         __builtin_ia32_loadlps, __builtin_ia32_storehps,
2937         __builtin_ia32_storelps, __builtin_ia32_loadhpd and
2938         __builtin_ia32_loadlpd.
2939
2940 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
2941
2942         * config/i386/i386.c (ix86_builtin_type): Add FLOAT_FTYPE_FLOAT,
2943         V4SF_FTYPE_V4SF_VEC_MERGE and V2DF_FTYPE_V2DF_VEC_MERGE.
2944         (bdesc_args): Updated.  Add scalar SSE builtins with vec_merge.
2945         (ix86_init_mmx_sse_builtins): Updated.
2946         (ix86_expand_args_builtin): Likewise.
2947         (ix86_expand_builtin): Likewise.
2948         (ix86_expand_unop1_builtin): Renamed to ...
2949         (ix86_expand_unop_vec_merge_builtin): This.
2950
2951 2008-05-01  Jan Hubicka  <jh@suse.cz>
2952
2953         PR bootstrap/36100
2954         * ipa-inline.c (inline_generate_summary): Make static.
2955         (inline_transform): Do not call inlining at -O0; make static.
2956         * passes.c (execute_todo): Add sanity check.
2957         (execute_one_ipa_transform_pass): Execute proper flags.
2958
2959 2008-05-01  Eric Botcazou  <ebotcazou@adacore.com>
2960
2961         * tree.h (TYPE_NONALIASED_COMPONENT): Expand comment.
2962         (DECL_NONADDRESSABLE_P): Likewise.
2963         * alias.c (record_component_aliases): Fix comment.
2964
2965 2008-05-01  Simon Baldwin <simonb@google.com>
2966
2967         * c-common.h (warn_array_subscript_range): New function.
2968         * c-common.c (warn_array_subscript_range): Ditto.
2969         * tree-vrp.c (check_array_ref): Corrected code to agree with
2970         comment, ignoring only arrays of size 0 or size 1.
2971         * c-typeck.c (build_array_ref): Call warn_array_subscript_range.
2972
2973 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
2974
2975         * config/i386/i386.c (ix86_builtin_type): Replace
2976         DI_FTYPE_DI_DI_INT with V1DI2DI_FTYPE_V1DI_V1DI_INT.
2977         (bdesc_args): Updated.
2978         (ix86_init_mmx_sse_builtins): Likewise.
2979         (ix86_expand_args_builtin): Likewise.
2980
2981         * config/i386/tmmintrin.h (_mm_alignr_pi8): Replace long long
2982         with __v1di.
2983
2984         * doc/extend.texi: Correct __builtin_ia32_palignr.
2985
2986 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
2987
2988         PR target/36095
2989         * config/i386/i386.c (bdesc_crc32): Removed.
2990         (ix86_expand_crc32): Likewise.
2991         (ix86_builtin_type): Replace V2DI2TI_FTYPE_V2DI2TI_INT with
2992         V2DI2TI_FTYPE_V2DI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT with
2993         V2DI2TI_FTYPE_V2DI_V2DI_INT.  Add UINT64_FTYPE_UINT64_UINT64,
2994         UINT_FTYPE_UINT_UINT, UINT_FTYPE_UINT_USHORT and
2995         UINT_FTYPE_UINT_UCHAR.
2996         (bdesc_args): Updated. Add crc32 builtins.
2997         (ix86_init_mmx_sse_builtins): Updated.
2998         (ix86_expand_args_builtin): Updated to support subreg.
2999
3000         * doc/extend.texi: Correct __builtin_ia32_crc32di.
3001
3002 2008-05-01  Jan Hubicka  <jh@suse.cz>
3003
3004         * tree-pass.h (opt_pass): Add IPA_PASS.
3005         (varpool_node, cgraph_node): Forward declare.
3006         (ipa_opt_pass): Define.
3007         (pass_ipa_inline): Turn into ipa_opt_pass.
3008         (pass_apply_inline): Remove.
3009         * ipa-inline.c (pass_ipa_inline): Turn into ipa_opt_pass.
3010         (apply_inline): Turn into ....
3011         (inline_transform): ... this one.
3012         (inline_generate_summary): New function.
3013         (pass_apply_inline): Remove.
3014         * function.h (ipa_opt_pass): Forward declare structure; typedef;
3015         vector.
3016         (struct function): Add ipa_transforms_to_apply.
3017         * passes.c (register_one_dump_file): Work on IPA_PASS.
3018         (init_optimization_passes): Remove pass_inline_parameters and
3019         pass_apply_inline.
3020         (pass_init_dump_file, pass_fini_dump_file): Break out from ....
3021         (execute_one_pass) ... here; apply transforms when possible.
3022         (add_ipa_transform_pass, execute_ipa_summary_asses,
3023         execute_one_ipa_transform_pass): New.
3024         (execute_ipa_pass_list): Update for IPA_PASS type.
3025
3026 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
3027
3028         * config/i386/i386.c (ix86_builtin_type): Add
3029         V2DI_FTYPE_V2DI_V16QI, V2DI_FTYPE_V2DI_UINT_UINT and
3030         V2DI_FTYPE_V2DI_V2DI_UINT_UINT.
3031         (bdesc_args): Add SSE4a builtins.
3032         (ix86_init_mmx_sse_builtins): Updated.
3033         (ix86_expand_args_builtin): Likewise.
3034         (ix86_expand_builtin): Likewise.
3035
3036 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
3037
3038         * config/i386/i386.c (ix86_builtin_type): Add
3039         V8HI_FTYPE_V8HI_V8HI_COUNT, V8HI_FTYPE_V8HI_SI_COUNT,
3040         V4SI_FTYPE_V4SI_V4SI_COUNT, V4SI_FTYPE_V4SI_SI_COUNT,
3041         V4HI_FTYPE_V4HI_V4HI_COUNT, V4HI_FTYPE_V4HI_SI_COUNT,
3042         V2DI_FTYPE_V2DI_V2DI_COUNT, V2DI_FTYPE_V2DI_SI_COUNT,
3043         V2SI_FTYPE_V2SI_V2SI_COUNT, V2SI_FTYPE_V2SI_SI_COUNT,
3044         V1DI_FTYPE_V1DI_V1DI_COUNT, V1DI_FTYPE_V1DI_SI_COUNT,
3045         V8HI_FTYPE_V8HI_INT, V4SI_FTYPE_V4SI_INT, V4HI_FTYPE_V4HI_INT,
3046         V2DI2TI_FTYPE_V2DI2TI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT
3047         and DI_FTYPE_DI_DI_INT.
3048         (bdesc_args): Add MMX/SSE shift, shuffle and palignr builtins.
3049         (ix86_init_mmx_sse_builtins): Updated.
3050         (ix86_expand_args_builtin): Likewise.
3051         (ix86_expand_builtin): Likewise.
3052         (ix86_expand_binop_imm_builtin): Removed.
3053
3054         * doc/extend.texi: Correct __builtin_ia32_palignr128.
3055
3056 2008-04-30  Richard Guenther  <rguenther@suse.de>
3057
3058         PR tree-optimization/32921
3059         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Disambiguate with TBAA.
3060
3061 2008-04-30  Richard Sandiford  <rsandifo@nildram.co.uk>
3062
3063         * config/arm/arm.c (arm_unwind_emit): Use
3064         crtl->all_throwers_are_sibcalls instead of
3065         cfun->all_throwers_are_sibcalls.
3066         (arm_output_fn_unwind): Likewise.
3067         * config/frv/frv.c (frv_stack_info): Use crtl->uses_pic_offset_table
3068         instead of cfun->uses_pic_offset_table.
3069         (frv_expand_prologue): Likewise.
3070         (frv_frame_pointer_required): Likewise.
3071         (frv_expand_fdpic_call): Likewise.
3072         (frv_emit_movsi): Likewise.
3073         * config/iq2000/iq2000.c (iq2000_expand_prologue): Use
3074         cfun->returns_pcc_struct instead of
3075         current_function_returns_pcc_struct.
3076         * config/m32c/m32c.c (need_to_save): Use crtl->calls_eh_return
3077         instead of cfun->calls_eh_return.
3078         (m32c_pushm_popm): Likewise.
3079         * config/xtensa/xtensa.h (cfun->calls_alloca): Remove bogus
3080         "extern" declaration.
3081
3082 2008-04-30  Richard Guenther  <rguenther@suse.de>
3083
3084         PR tree-optimization/21636
3085         * tree-ssa-ccp.c (ccp_fold): Handle &p->x with p being a
3086         constant address.
3087         (evaluate_stmt): Print the likely value.
3088         (ccp_visit_stmt): Avoid excessive vertical spacing.
3089
3090 2008-04-30  Rafael Espindola  <espindola@google.com>
3091
3092         * builtins.c (fold_call_expr): Return realret.
3093         * tree-ssa-threadedge.c
3094         (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
3095         __builtin_object_size.
3096
3097 2008-04-30  Seongbae Park  <seongbae.park@gmail.com>
3098
3099         * gcc.c (wrapper_string): New variable.
3100         (insert_wrapper): New function.
3101         (execute): New option -wrapper.
3102         * doc/invoke.texi (Overall Options): New driver option -wrapper.
3103
3104 2008-04-30  Nathan Froyd  <froydnj@codesourcery.com>
3105
3106         * config/rs6000/crtresgpr.asm, config/rs6000/crtresxgpr.asm,
3107         config/rs6000/crtsavgpr.asm, config/rs6000/crtresfpr.asm,
3108         config/rs6000/crtresxfpr.asm, config/rs6000/crtsavfpr.asm: Break out
3109         from...
3110         * config/rs6000/crtsavres.asm: ...here.  Remove unneeded file.
3111         * config/rs6000/e500crtres32gpr.asm, config/rs6000/e500crtres64gpr.asm,
3112         config/rs6000/e500crtres64gprctr.asm,
3113         config/rs6000/e500crtrest32gpr.asm, config/rs6000/e500crtrest64gpr.asm,
3114         config/rs6000/e500crtresx32gpr.asm, config/rs6000/e500crtresx64gpr.asm,
3115         config/rs6000/e500crtsav32gpr.asm, config/rs6000/e500crtsav64gpr.asm,
3116         config/rs6000/e500crtsav64gprctr.asm,
3117         config/rs6000/e500crtsavg32gpr.asm, config/rs6000/e500crtsavg64gpr.asm,
3118         config/rs6000/e500crtsavg64gprctr.asm: New files.
3119         * config/rs6000/t-ppccomm: Add build rules for new files.
3120         (LIB2FUNCS_STATIC_EXTRA): Add new files.
3121         * config/rs6000/t-netbsd: Add build rules for new files.
3122         (LIB2FUNCS_STATIC_EXTRA): New variable.
3123         * config/rs6000/sysv4.h (ENDFILE_SPEC): Don't include crtsavres.o
3124         (CRTSAVRES_DEFAULT_SPEC): Likewise.
3125         * config/rs6000/netbsd.h (ENDFILE_SPEC): Likewise.
3126
3127 2008-04-30  H.J. Lu  <hongjiu.lu@intel.com>
3128
3129         * config/i386/i386.c (ix86_builtin_type): Add
3130         FLOAT128_FTYPE_FLOAT128_FLOAT128, V16QI_FTYPE_V16QI_V16QI,
3131         V16QI_FTYPE_V8HI_V8HI, V8QI_FTYPE_V8QI_V8QI,
3132         V8QI_FTYPE_V4HI_V4HI, V8HI_FTYPE_V8HI_V8HI,
3133         V8HI_FTYPE_V16QI_V16QI, V8HI_FTYPE_V4SI_V4SI,
3134         V4SI_FTYPE_V4SI_V4SI, V4SI_FTYPE_V8HI_V8HI,
3135         V4SI_FTYPE_V4SF_V4SF, V4SI_FTYPE_V2DF_V2DF,
3136         V4HI_FTYPE_V4HI_V4HI, V4HI_FTYPE_V8QI_V8QI,
3137         V4HI_FTYPE_V2SI_V2SI, V4SF_FTYPE_V4SF_V4SF,
3138         V4SF_FTYPE_V4SF_V4SF_SWAP, V4SF_FTYPE_V4SF_V2SI,
3139         V4SF_FTYPE_V4SF_V2DF, V4SF_FTYPE_V4SF_DI,
3140         V4SF_FTYPE_V4SF_SI, V2DI_FTYPE_V2DI_V2DI,
3141         V2DI_FTYPE_V16QI_V16QI, V2DI_FTYPE_V4SI_V4SI,
3142         V2DI_FTYPE_V2DF_V2DF, V2SI_FTYPE_V2SI_V2SI,
3143         V2SI_FTYPE_V4HI_V4HI, V2SI_FTYPE_V2SF_V2SF,
3144         V2DF_FTYPE_V2DF_V2DF, V2DF_FTYPE_V2DF_V2DF_SWAP,
3145         V2DF_FTYPE_V2DF_V4SF, V2DF_FTYPE_V2DF_DI,
3146         V2DF_FTYPE_V2DF_SI, V2SF_FTYPE_V2SF_V2SF,
3147         V1DI_FTYPE_V1DI_V1DI, V1DI_FTYPE_V8QI_V8QI and
3148         V1DI_FTYPE_V2SI_V2SI.
3149         (bdesc_2arg): Moved to ...
3150         (bdesc_args): Here.
3151         (ix86_init_mmx_sse_builtins): Updated.
3152         (ix86_expand_args_builtin): Updated.  Take a pointer
3153         to const struct builtin_description.  Handle comparison
3154         builtin functions.
3155         (ix86_expand_sse_compare): Take a new argument for swapping operands.
3156         (ix86_expand_builtin): Updated.
3157
3158         * config/i386/sse.md (ssse3_pmaddubswv8hi3): Renamed to ...
3159         (ssse3_pmaddubsw128): This.
3160         (ssse3_pmaddubswv4hi3): Renamed to ...
3161         (ssse3_pmaddubsw): This.
3162
3163         * doc/extend.texi (__builtin_ia32_packsswb128): Correct prototype.
3164         (__builtin_ia32_packssdw128): Likewise.
3165         (__builtin_ia32_packuswb128): Likewise.
3166         (__builtin_ia32_pmaddubsw): Likewise.
3167         (__builtin_ia32_pmaddubsw128): Likewise.
3168
3169 2008-04-30  Richard Guenther  <rguenther@suse.de>
3170
3171         PR tree-optimization/14847
3172         * tree-ssa-ifcombine.c (get_name_for_bit_test): New helper function.
3173         (recognize_bits_test): Use it.
3174         (recognize_single_bit_test): Likewise.
3175
3176 2008-04-30  Martin Jambor  <mjambor@suse.cz>
3177
3178         * ipa-cp.c (ipcp_init_stage): Calls ipa_set_called_with_variable_arg
3179         instead of setting number of formal parameters to zero.
3180         (ipcp_init_stage): Do not set the number of actual parameters to zero 
3181         either.
3182         (ipcp_propagate_stage): Explicitly skipping all calls to nodes
3183         which are called with variable number of arguments.
3184         (ipcp_insert_stage): Explicitely skipping all nodes which are
3185         called with variable number of arguments.
3186         (ipcp_callsite_param_print): Skipps callsites to nodes with varaible 
3187         number of parameters.
3188
3189         * ipa-prop.h (struct ipa_node_params): Added flag
3190         called_with_var_arguments
3191         (ipa_set_param_count): Added.  Changed sole setter to use it.
3192         (ipa_get_param_count): Added.  All readers of param_count
3193         converted to use it instead.
3194         (ipa_set_called_with_variable_arg): Added.
3195         (ipa_is_called_with_var_arguments): Added.
3196         (ipa_get_ith_param): Added.  All readers of param_decls converted
3197         to use it instead.
3198         (ipa_set_cs_argument_count): Added, sole writer to argument_count 
3199         changed to use it. 
3200         (ipa_get_cs_argument_count): Added, all readers of argument_count
3201         changed to cal it.
3202         (ipa_get_ith_jump_func): Added. Accessors of jump values changed 
3203         to use it.
3204         
3205         * ipa-prop.h (struct ipcp_formal): Renamed to ipcp_lattice
3206         (struct ipcp_lattice): Renamed cval_type to type
3207         (struct ipa_node_params): ipcp_cval renamed to ipcp_lattices
3208
3209         * ipa-cp.c (ipcp_cval_get_cvalue): Changed return value to tree
3210         (ipcp_cval_set_cvalue): Changed type of parameter value to tree
3211         (ipcp_insert_stage): Changed the type of variable cvalue to tree
3212         (ipcp_replace_map_create): Changed the type of parameter cvalue to tree
3213         (build_const_val): Changed the type of parameter cvalue to tree
3214         (ipcp_propagate_const): Changed the type of parameter cvalue to tree
3215         (ipcp_method_cval_set_cvalue_type): Renamed parameter cval_type1 to type
3216         
3217         * ipa-prop.h (struct ipcp_formal): Replaced cvalue with tree called 
3218         constant 
3219
3220         * ipa-prop.c (ipa_methodlist_init): Renamed to ipa_init_func_list
3221         (ipa_methodlist_not_empty): Removed, the sole user now checks directly
3222         (ipa_add_method): Renamed to ipa_push_func_to_list
3223         (ipa_remove_method): Renamed to ipa_pop_func_from_list
3224         (ipa_callsite_param_count): Removed.
3225         (ipa_callsite_param_count_set): Removed.
3226         (ipa_callsite_param): Removed.
3227         (ipa_callsite_callee): Removed.
3228         (ipa_callsite_compute_param): Renamed to ipa_compute_jump_functions
3229         (ipa_callsite_compute_count): Renamed to ipa_count_arguments
3230         (ipa_method_formal_count): Removed.
3231         (ipa_method_formal_count_set): Removed.
3232         (ipa_method_get_tree): Removed.
3233         (ipa_method_tree_map_create): Removed.
3234         (ipa_method_compute_tree_map): Renamed to ipa_create_param_decls_array
3235         (ipa_create_param_decls_array): Creates the array itself
3236         (ipa_create_param_decls_array): Temporary variable info instead of 
3237         a few dereferences.
3238         (ipa_method_formal_compute_count): Renamed to ipa_count_formal_params
3239         (ipa_method_compute_modify): Renamed to ipa_detect_param_modifications
3240         (get_type): Removed.
3241         (ipa_jf_get_info_type): Removed.
3242         (ipa_node_create): Renamed to ipa_create_node_params
3243         (ipa_free): Renamed to ipa_free_all_node_params
3244         (ipa_nodes_create): Renamed to ipa_create_all_node_params
3245         (ipa_edges_create): Renamed to ipa_create_all_edge_args
3246         (ipa_edges_free): Renamed to ipa_free_all_edge_args
3247         (ipa_nodes_free): Integrated into ipa_free_all_node_params and removed
3248         (ipa_free_all_node_params): Deallocation to jump_functions moved to 
3249         ipa_free_all_edge_args
3250         (ipa_method_tree_print): Renamed to ipa_print_all_tree_maps
3251         (ipa_method_modify_print): Renamed to ipa_print_all_params_modified
3252         (ipa_create_methodlist_node): Removed.
3253         (ipa_methodlist_method): Removed.
3254         (ipa_methodlist_method_set): Removed.
3255         (ipa_methodlist_next_method): Removed.
3256         (ipa_methodlist_next_method_set): Removed.
3257         (ipa_method_is_modified): Removed.
3258         (ipa_method_modify_create): Removed.
3259         (ipa_method_modify_init): Temporary variable info instead of a few 
3260         dereferences.
3261         (ipa_detect_param_modifications): Temporary variable info instead of 
3262         a few dereferences.
3263         (ipa_compute_jump_functions): Temporary variable info instead of 
3264         a few dereferences.
3265         (ipa_method_modify_set): Removed.
3266         (ipa_method_tree_map): Renamed to ipa_get_param_decl_index
3267         (ipa_get_param_decl_index): Now accepts struct ipa_node_params rather 
3268         than craph_node as the first parameter.
3269         (ipa_method_modify_stmt): Renamed to ipa_check_stmt_modifications
3270         (ipa_method_modify_init): Removed.
3271         (ipa_compute_jump_functions): Added a temp variable instead of 
3272         repeatadly dereferencing the cgraph_edge.aux pointer
3273         (ipa_callsite_param_set_type): Removed.
3274         (ipa_compute_jump_functions): i renamed to index and moved to 
3275         an inner block
3276         (ipa_callsite_param_set_info_type_formal): Removed.
3277         (ipa_callsite_param_set_info_type): Removed.
3278         (ipa_callsite_param_map_create): Removed.
3279         (ipa_callsite_tree): Removed.
3280         (ipa_callsite_caller): Removed.
3281         (ipa_pop_func_from_list): return_method removed to return_func
3282
3283         * ipa-prop.h (enum cvalue_type): Renamed to ipa_lattice_type,
3284         prefixed all values with IPA_. Changed all users.
3285         (enum jump_func_type): Rnamed UNKNOWN_IPATYPE to IPA_UNKNOWN, 
3286         CONST_IPATYPE to IPA_CONST, CONST_IPATYPE_REF to IPA_CONST_REF 
3287         and FORMAL_IPATYPE IPA_PASS_THROUGH. 
3288         (union parameter_info): Renamed to jump_func_value.
3289         (union jump_func_value): Renamed value to constant
3290         (struct ipa_jump_func): Renamed info_type to value
3291         (struct ipa_node): Renamed to ipa_node_params
3292         (struct ipa_node_params): Renamed ipa_arg_num to param_count
3293         (struct ipa_node_params): Renamed ipa_param_tree to param_decls
3294         (struct ipa_node_params): Renamed ipa_mod to modified_flags
3295         (struct ipa_edge): Renamed to ipa_edge_args
3296         (struct ipa_edge_args): Renamed ipa_param_num to argument_count
3297         (struct ipa_edge_args): Renamed ipa_param_map to jump_functions
3298         (struct ipa_methodlist): Renamed to ipa_func_list
3299         (struct ipa_func_list): method_p renamed to node, next_method
3300         renamed to next
3301         (ipa_methodlist_p): Removed, switched all users to struct pointer
3302         (IS_VALID_TREE_MAP_INDEX): Renamed to IS_VALID_JUMP_FUNC_INDEX
3303
3304 2008-04-30  Alan Modra  <amodra@bigpond.net.au>
3305
3306         * config/rs6000/rs6000.c (ALWAYS_RESTORE_ALTIVEC_BEFORE_POP): Define.
3307         (rs6000_emit_epilogue): Use backchain to restore only when we
3308         have a large frame.  Make use of frame pointer to restore if we
3309         have one.  Handle ALWAYS_RESTORE_ALTIVEC_BEFORE_POP.
3310
3311 2008-04-29  Paolo Bonzini  <bonzini@gnu.org>
3312
3313         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
3314         Add mode to zero_extract.
3315         (sign bit tests peepholes): (Ditto.).
3316
3317 2008-04-29  H.J. Lu  <hongjiu.lu@intel.com>
3318
3319         * config/i386/i386.c (ix86_builtins): Replace Prescott New
3320         Instructions in comments with SSE3.
3321         (ix86_builtin_type): This.  Add FLOAT128_FTYPE_FLOAT128,
3322         INT64_FTYPE_V4SF, INT64_FTYPE_V2DF, INT_FTYPE_V16QI,
3323         INT_FTYPE_V8QI, INT_FTYPE_V4SF, INT_FTYPE_V2DF,
3324         V16QI_FTYPE_V16QI, V8HI_FTYPE_V8HI, V8HI_FTYPE_V16QI,
3325         V8QI_FTYPE_V8QI, V4SI_FTYPE_V4SI, V4SI_FTYPE_V16QI,
3326         V4SI_FTYPE_V4SF, V4SI_FTYPE_V8HI, V4SI_FTYPE_V2DF,
3327         V4HI_FTYPE_V4HI, V4SF_FTYPE_V4SF, V4SF_FTYPE_V4SI,
3328         V4SF_FTYPE_V2DF, V2DI_FTYPE_V2DI, V2DI_FTYPE_V16QI,
3329         V2DI_FTYPE_V8HI, V2DI_FTYPE_V4SI, V2DF_FTYPE_V2DF,
3330         V2DF_FTYPE_V4SI, V2DF_FTYPE_V4SF, V2DF_FTYPE_V2SI,
3331         V2SI_FTYPE_V2SI, V2SI_FTYPE_V4SF, V2SI_FTYPE_V2SF,
3332         V2SI_FTYPE_V2DF, V2SF_FTYPE_V2SF and V2SF_FTYPE_V2SI.
3333         (bdesc_sse_args): Renamed to ...
3334         (bdesc_args): This.  Add IX86_BUILTIN_PF2ID, IX86_BUILTIN_PFRCP,
3335         IX86_BUILTIN_PFRSQRT, IX86_BUILTIN_PI2FD, IX86_BUILTIN_PF2IW,
3336         IX86_BUILTIN_PSWAPDSI, IX86_BUILTIN_PSWAPDSF and
3337         IX86_BUILTIN_FABSQ.
3338         (bdesc_1arg): Moved to ...
3339         (bdesc_args): Here.
3340         (ix86_init_mmx_sse_builtins): Updated.  Replace Prescott New
3341         Instructions in comments with SSE3.
3342         (ix86_expand_sse_operands_builtin): Renamed to ...
3343         (ix86_expand_args_builtin): This.  Updated.
3344         (ix86_expand_unop1_builtin): Update comments.
3345         (ix86_expand_builtin): Updated.
3346
3347 2008-04-29  Richard Guenther  <rguenther@suse.de>
3348
3349         PR tree-optimization/36078
3350         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
3351         Update virtual SSA form after cleaning up the CFG.
3352
3353 2008-04-29  Richard Guenther  <rguenther@suse.de>
3354
3355         PR middle-end/15255
3356         * fold-const.c (fold_binary): Fold (A + A) * C to A * 2*C.
3357
3358 2008-04-29  Richard Guenther  <rguenther@suse.de>
3359
3360         * tree-ssa-alias.c (finalize_ref_all_pointers): Remove.
3361         (compute_may_aliases): Do not call finalize_ref_all_pointers.
3362         (compute_flow_insensitive_aliasing): Do not treat
3363         PTR_IS_REF_ALL pointers special.
3364         (get_smt_for): Likewise.
3365         (may_alias_p): Re-structure.
3366         (is_escape_site): A ref-all pointer conversion is not an escape site.
3367         * tree-ssa-structalias.c (find_what_p_points_to): Do not treat
3368         PTR_IS_REF_ALL pointers special.
3369         * tree-ssa-structalias.h (struct alias_info): Remove
3370         ref_all_symbol_mem_tag field.
3371         (PTR_IS_REF_ALL): Remove.
3372
3373 2008-04-29  Richard Guenther  <rguenther@suse.de>
3374
3375         PR middle-end/36077
3376         * fold-const.c (extract_muldiv_1): In combining division constants
3377         make sure to never overflow.
3378
3379 2008-04-29  Nick Clifton  <nickc@redhat.com>
3380
3381         * doc/tm.texi (RETURN_ADDR_RTX): Fix typo.
3382
3383 2008-04-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3384
3385         PR bootstrap/35169
3386         * optc-gen.awk: Work around HP-UX/IA awk bug.
3387
3388 2008-04-28  Danny Smith  <dannysmith@users.sourceforge.net>
3389
3390         * config/i386/cygming-crtend.c (register_frame_ctor): Revert my
3391         2008-04-25 commit.
3392
3393 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
3394
3395         PR target/36073
3396         * config/i386/i386.md
3397         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit):
3398         Change operand 1 predicate to nonimmediate_operand.
3399
3400 2008-04-28  Jakub Jelinek  <jakub@redhat.com>
3401
3402         PR debug/36060
3403         * dwarf2out.c (struct die_struct): Mark as chain_circular through
3404         die_sub field.
3405         * gengtype.c (walk_type, write_func_for_structure): Handle
3406         chain_circular.
3407         * doc/gty.texi: Document chain_circular.
3408
3409 2008-04-28  Richard Guenther  <rguenther@suse.de>
3410
3411         PR tree-optimization/36066
3412         * tree-vrp.c (execute_vrp): Cleanup the CFG only after finalizing
3413         SCEV and loop.
3414
3415 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
3416
3417         PR target/36064
3418         * config/i386/i386.md
3419         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters):
3420         Use match_scratch instead of match_operand for operands 3 and 4.
3421
3422 2008-04-27  Richard Guenther  <rguenther@suse.de>
3423
3424         PR tree-optimization/18754
3425         PR tree-optimization/34223
3426         * tree-pass.h (pass_complete_unrolli): Declare.
3427         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Print
3428         loop size before and after unconditionally of UL_NO_GROWTH in effect.
3429         Rewrite loop into loop closed SSA form if it is not already.
3430         (tree_unroll_loops_completely): Re-structure to iterate over
3431         innermost loops with intermediate CFG cleanups.
3432         Unroll outermost loops only if requested or the code does not grow
3433         doing so.
3434         * tree-ssa-loop.c (gate_tree_vectorize): Don't shortcut if no
3435         loops are available.
3436         (tree_vectorize): Instead do so here.
3437         (tree_complete_unroll): Also unroll outermost loops.
3438         (tree_complete_unroll_inner): New function.
3439         (gate_tree_complete_unroll_inner): Likewise.
3440         (pass_complete_unrolli): New pass.
3441         * tree-ssa-loop-manip.c (find_uses_to_rename_use): Only record
3442         uses outside of the loop.
3443         (tree_duplicate_loop_to_header_edge): Only verify loop-closed SSA
3444         form if it is available.  
3445         * tree-flow.h (tree_unroll_loops_completely): Add extra parameter.
3446         * passes.c (init_optimization_passes): Schedule complete inner
3447         loop unrolling pass before the first CCP pass after final inlining.
3448
3449 2008-04-27  Nathan Sidwell  <nathan@codesourcery.com>
3450
3451         * targhooks.h (default_emutls_var_fields,
3452         default_emutls_var_init): Declare.
3453         * tree.h (DECL_THREAD_LOCAL): Compare against TLS_MODEL_REAL.
3454         * target.h (struct gcc_target): Add struct emutls member.
3455         * target-def.h (TARGET_EMUTLS_GET_ADDRESS,
3456         TARGET_EMUTLS_REGISTER_COMMON, TARGET_EMUTLS_VAR_SECTION,
3457         TARGET_EMUTLS_TMPL_SECTION, TARGET_EMUTLS_VAR_PREFIX,
3458         TARGET_EMUTLS_TMPL_PREFIX, TARGET_EMUTLS_VAR_FIELDS,
3459         TARGET_EMUTLS_VAR_INIT, TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS,
3460         TARGET_EMUTLS_VAR_ALIGN_FIXED, TARGET_EMUTLS): New.
3461         (TARGET_INITIALIZER): Add TARGET_EMUTLS.
3462         * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS,
3463         BUILT_IN_EMUTLS_REGISTER_COMMON): Get name from targetm structure.
3464         * dwarf2out.c (loc_descriptor_from_tree_1): Check if emutls can
3465         emit debug information.
3466         * coretypes.h (tls_model): Add TLS_MODEL_EMULATED, TLS_MODEL_REAL.
3467         * varasm.c: Include targhooks.h.
3468         (emutls_object_section, emutls_tmpl_section): New.
3469         (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): Remove.
3470         (EMUTLS_SEPARATOR): New.
3471         (prefix_name): New.
3472         (get_emutls_object_name): New.
3473         (default_emutls_var_fields): New, broken out of ...
3474         (get_emutls_object_type): ... here.  Adjust to use target hooks.
3475         (get_emutls_init_templ_addr): Adjust to use target hooks.
3476         (emutls_decl): Adjust to use target hooks.
3477         (emutls_finish): Likewise.
3478         (default_emutls_var_init): New, broken out of ...
3479         (assemble_variable): ... here.  Adjust to use target hooks.
3480         * output.h (enum section_category): Add SECCAT_EMUTLS_VAR,
3481         SECCAT_EMUTLS_TMPL.
3482         * c-common.c (handle_section_attribute): Prevent overriding
3483         sections for emulated tls with special sections.
3484         * config/i386/i386.c (x86_64_elf_select_section): Add
3485         SECCAT_EMUTLS_VAR and SECCAT_EMUTLS_TMPL.
3486         (x86_64_elf_unique_section): Likewise.
3487         * config/vxworks.c: Include tree.h.
3488         (vxworks_emutls_var_fields, vxworks_emutls_var_init): New.
3489         (vxworks_override_options): Set TLS scheme.
3490         * doc/tm.texi (Emulated TLS): New node.
3491
3492 2008-04-26  Simon Baldwin <simonb@google.com>
3493
3494         PR c/35652
3495         * builtins.c (c_strlen): Suppressed multiple warnings that can occur
3496         with propagated string constants.
3497
3498 2008-04-26  Uros Bizjak  <ubizjak@gmail.com>
3499
3500         * config/i386/i386.md (fix_trunc<mode>_i387_fisttp_with_temp): Use 'X'
3501         constraint for operand 2 when operand 0 is memory operand.
3502         (fix_truncdi_i387_with_temp): : Use 'X' constraint for operand 4 when
3503         operand 0 is memory operand.
3504         (fix_trunc<mode>_i387_with_temp): Ditto.
3505         (*floatsi<mode>2_vector_mixed_with_temp): Use 'X' constraint for
3506         operand 2 when operand 1 is memory operand.
3507         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Ditto.
3508         (*floatsi<mode>2_vector_sse_with_temp): Ditto.
3509         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Ditto.
3510         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
3511         (floatdi<X87MODEF:mode>2_i387_with_xmm): Use 'X' constraint for
3512         operands 2,3 and 4 when operand 1 is memory operand.
3513         (fistdi2_with_temp): Use 'X' constraint for operand 2 when operand 0
3514         is memory operand.
3515         (fistdi2_floor_with_temp): Ditto.
3516         (fist<mode>2_floor_with_temp): Ditto.
3517         (fistdi2_ceil_with_temp): Ditto.
3518         (fist<mode>2_ceil_with_temp): Ditto.
3519         (*truncdfsf_fast_mixed): Merge alternatives 0 and 1.
3520
3521 2008-04-26  David Daney  <ddaney@avtrex.com>
3522
3523         * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP_12): New
3524         unspec_volitile.
3525         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE,
3526         UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
3527         UNSPEC_UPDATE_GOT_VERSION): Renumber.
3528         (sync_compare_and_swap<mode>): New expand for QI and HI modes.
3529         (compare_and_swap_12): New insn.
3530         * config/mips/mips-protos.h (mips_expand_compare_and_swap_12): Declare.
3531         * config/mips/mips.c (mips_force_binary): New function.
3532         (mips_emit_int_order_test, mips_expand_synci_loop): Use it.
3533         (mips_expand_compare_and_swap_12): New function.
3534         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): New macro.
3535
3536 2008-04-25  Jan Hubicka  <jh@suse.cz>
3537
3538         PR testsuite/35843
3539         * cfgexpand.c (pass_expand): Turn into RTL pass.
3540         * passes.c (execute_one_pass): Do pass typechecking after execution.
3541         * tree-pass.h (pass_expand): Turn into RTL pass.
3542
3543         * function.h (struct rtl_data): Move here fields
3544         accesses_prior_frames, calls_eh_return, saves_all_registers,
3545         has_nonlocal_goto, has_asm_statement, is_thunk,
3546         all_throwers_are_sibcalls, limit_stack, profile, uses_const_pool,
3547         uses_pic_offset_table, uses_eh_lsda, tail_call_emit,
3548         arg_pointer_save_area_init from struct function; turn into bool.
3549         (struct function): Move
3550         calls_eh_return, saves_all_registers, has_nonlocal_goto,
3551         has_asm_statement, is_thunk, all_throwers_are_sibcalls, limit_stack,
3552         profile, uses_const_pool, uses_pic_offset_table, uses_eh_lsda,
3553         tail_call_emit, arg_pointer_save_area_init
3554         into struct rtl_data.  Remove recursive_call_emit and gimplified flags.
3555         (current_function_returns_struct, current_function_returns_pcc_struct,
3556         current_function_calls_setjmp, current_function_calls_alloca,
3557         current_function_accesses_prior_frames,
3558         current_function_calls_eh_return, current_function_is_thunk,
3559         current_function_stdarg, current_function_profile,
3560         current_function_limit_stack, current_function_uses_pic_offset_table,
3561         current_function_uses_const_pool, current_function_has_nonlocal_label,
3562         current_function_saves_all_registers,
3563         current_function_has_nonlocal_goto,
3564         current_function_has_asm_statement): Remove accesor macros.
3565         * ra-conflict.c (global_conflicts): Update.
3566         * tree-tailcall.c (suitable_for_tail_opt_p): Update.
3567         (suitable_for_tail_call_opt_p): Update.
3568         * builtins.c (expand_builtin_return_addr): Update.
3569         (expand_builtin_setjmp_setup): Update.
3570         (expand_builtin_nonlocal_goto): Update.
3571         * final.c (final_start_function): Update.
3572         (profile_function): Update.
3573         (leaf_function_p): Update.
3574         (only_leaf_regs_used): Update.
3575         * df-scan.c (df_get_exit_block_use_set): Update.
3576         * dojump.c (clear_pending_stack_adjust): Update.
3577         * tree-stdarg.c (gate_optimize_stdarg): Update.
3578         * gimple-low.c (lower_function_body): Update.
3579         * global.c (compute_regsets): Update.
3580         (global_alloc): Update.
3581         * dwarf2out.c (dwarf2out_begin_prologue): Update.
3582         * expr.c (expand_assignment): Update.
3583         * dse.c (dse_step0): Update.
3584         (dse_step1): Update.
3585         * c-decl.c (store_parm_decls): Update.
3586         * local-alloc.c (combine_regs): Update.
3587         (find_free_reg): Update.
3588         * function.c (assign_parms_augmented_arg_list): Update.
3589         (assign_parm_find_data_types): Update.
3590         (assign_parms): Update.
3591         (allocate_struct_function): Update.
3592         (expand_function_start): Update.
3593         (expand_function_end): Update.
3594         (get_arg_pointer_save_area): Update.
3595         (thread_prologue_and_epilogue_insns): Update.
3596         (rest_of_match_asm_constraints): Update.
3597         * stor-layout.c (variable_size): Update.
3598         * gcse.c (gcse_main): Update.
3599         (bypass_jumps): Update.
3600         * gimplify.c (gimplify_function_tree): Update.
3601         * calls.c (emit_call_1): Update.
3602         (expand_call): Update.
3603         * bt-load.c (compute_defs_uses_and_gen): Update.
3604         * except.c (sjlj_assign_call_site_values): Update.
3605         (sjlj_emit_function_enter): Update.
3606         (can_throw_external): Update.
3607         (set_nothrow_function_flags): Update.
3608         (expand_builtin_unwind_init): Update.
3609         (expand_eh_return): Update.
3610         (convert_to_eh_region_ranges): Update.
3611         (output_function_exception_table): Update.
3612         * emit-rtl.c (gen_tmp_stack_mem): Update.
3613         * cfgexpand.c (expand_used_vars): Update.
3614         (tree_expand_cfg): Update.
3615         * cfgcleanup.c (rest_of_handle_jump): Update.
3616         * explow.c (allocate_dynamic_stack_space): Update.
3617         * varasm.c (assemble_start_function): Update.
3618         (force_const_mem): Update.
3619         (mark_constant_pool): Update.
3620         * tree-optimize.c (tree_rest_of_compilation): Update.
3621         * stack-ptr-mod.c (notice_stack_pointer_modification): Update.
3622         * tree-cfg.c (notice_special_calls): Update.
3623         (is_ctrl_altering_stmt): Update.
3624         (tree_can_make_abnormal_goto): Update.
3625         (tree_purge_dead_abnormal_call_edges): Update.
3626         * config/alpha/predicates.md: Update.
3627         * config/alpha/alpha.c (alpha_sa_mask): Update.
3628         (alpha_sa_size): Update.
3629         (alpha_does_function_need_gp): Update.
3630         (alpha_expand_prologue): Update.
3631         (alpha_start_function): Update.
3632         (alpha_output_function_end_prologue): Update.
3633         (alpha_expand_epilogue): Update.
3634         * config/frv/frv.c (frv_stack_info): Update.
3635         (frv_expand_epilogue): Update.
3636         * config/s390/s390.c (s390_regs_ever_clobbered): Update.
3637         (s390_register_info): Update.
3638         (s390_frame_info): Update.
3639         (s390_init_frame_layout): Update.
3640         (s390_can_eliminate): Update.
3641         (save_gprs): Update.
3642         * config/spu/spu.c (spu_split_immediate): Update.
3643         (need_to_save_reg): Update.
3644         (spu_expand_prologue): Update.
3645         (spu_expand_epilogue): Update.
3646         * config/sparc/sparc.md: Update.
3647         * config/sparc/sparc.c (eligible_for_return_delay): Update.
3648         (sparc_tls_got): Update.
3649         (legitimize_pic_address): Update.
3650         (sparc_emit_call_insn): Update.
3651         (sparc_expand_prologue): Update.
3652         (output_return): Update.
3653         (print_operand): Update.
3654         (sparc_function_ok_for_sibcall): Update.
3655         * config/sparc/sparc.h (EXIT_IGNORE_STACK): Update.
3656         * config/m32r/m32r.md: Update.
3657         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Update.
3658         (m32r_compute_frame_size): Update.
3659         (m32r_expand_prologue): Update.
3660         (m32r_expand_epilogue): Update.
3661         (m32r_legitimize_pic_address): Update.
3662         * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Update.
3663         * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
3664         * config/i386/i386.c (ix86_frame_pointer_required): Update.
3665         (gen_push): Update.
3666         (ix86_save_reg): Update.
3667         (ix86_compute_frame_layout): Update.
3668         (ix86_expand_prologue): Update.
3669         (ix86_expand_epilogue): Update.
3670         * config/sh/sh.c (output_stack_adjust): Update.
3671         (calc_live_regs): Update.
3672         (sh5_schedule_saves): Update.
3673         (sh_expand_prologue): Update.
3674         (sh_expand_epilogue): Update.
3675         (sh_setup_incoming_varargs): Update.
3676         (sh_allocate_initial_value): Update.
3677         (sh_get_pr_initial_val): Update.
3678         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Update.
3679         * config/sh/sh.md (label:): Update.
3680         * config/avr/avr.c (out_movhi_mr_r): Update.
3681         * config/crx/crx.h (enum): Update.
3682         * config/xtensa/xtensa.h (along): Update.
3683         * config/stormy16/stormy16.c Update.
3684         (xstormy16_compute_stack_layout): Update.
3685         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Update.
3686         (fr30_expand_prologue): Update.
3687         * config/cris/cris.c (cris_conditional_register_usage): Update.
3688         (cris_reg_saved_in_regsave_area): Update.
3689         (cris_initial_frame_pointer_offset): Update.
3690         (cris_simple_epilogue): Update.
3691         (cris_expand_prologue): Update.
3692         (cris_expand_epilogue): Update.
3693         (cris_expand_pic_call_address): Update.
3694         (cris_asm_output_symbol_ref): Update.
3695         (cris_asm_output_label_ref): Update.
3696         * config/cris/cris.md Update.
3697         * config/iq2000/iq2000.c (compute_frame_size): Update.
3698         (iq2000_expand_epilogue): Update.
3699         * config/mt/mt.h (save_direction): Update.
3700         * config/mn10300/mn10300.c (mn10300_function_value): Update.
3701         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
3702         (ia64_secondary_reload_class): Update.
3703         * config/m68k/m68k.c (m68k_save_reg): Update.
3704         (m68k_expand_prologue): Update.
3705         (m68k_expand_epilogue): Update.
3706         (legitimize_pic_address): Update.
3707         * config/rs6000/rs6000.c (rs6000_got_register): Update.
3708         (first_reg_to_save): Update.
3709         (first_altivec_reg_to_save): Update.
3710         (compute_vrsave_mask): Update.
3711         (compute_save_world_info): Update.
3712         (rs6000_stack_info): Update.
3713         (spe_func_has_64bit_regs_p): Update.
3714         (rs6000_ra_ever_killed): Update.
3715         (rs6000_emit_eh_reg_restore): Update.
3716         (rs6000_emit_allocate_stack): Update.
3717         (rs6000_emit_prologue): Update.
3718         (rs6000_emit_epilogue): Update.
3719         (rs6000_output_function_epilogue): Update.
3720         (output_profile_hook): Update.
3721         (rs6000_elf_declare_function_name): Update.
3722         * config/rs6000/rs6000.h (rs6000_args): Update.
3723         * config/rs6000/rs6000.md: Update.
3724         * config/mcore/mcore.c (mcore_expand_prolog): Update.
3725         * config/arc/arc.c (arc_output_function_epilogue): Update.
3726         * config/arc/arc.h (FRAME_POINTER_REQUIRED): Update.
3727         * config/darwin.c (machopic_function_base_name): Update.
3728         * config/score/score3.c (score3_compute_frame_size): Update.
3729         (rpush): Update.
3730         (rpop): Update.
3731         (score3_epilogue): Update.
3732         * config/score/score7.c (score7_compute_frame_size): Update.
3733         (score7_prologue): Update.
3734         (score7_epilogue): Update.
3735         * config/score/score.h (FRAME_POINTER_REQUIRED): Update.
3736         * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
3737         * config/arm/arm.c (use_return_insn): Update.
3738         (require_pic_register): Update.
3739         (arm_load_pic_register): Update.
3740         (arm_compute_save_reg0_reg12_mask): Update.
3741         (arm_compute_save_reg_mask): Update.
3742         (thumb1_compute_save_reg_mask): Update.
3743         (output_return_instruction): Update.
3744         (arm_output_function_prologue): Update.
3745         (arm_output_epilogue): Update.
3746         (arm_get_frame_offsets): Update.
3747         (arm_expand_prologue): Update.
3748         (thumb_pushpop): Update.
3749         (thumb_exit): Update.
3750         (thumb1_expand_prologue): Update.
3751         (thumb1_expand_epilogue): Update.
3752         (arm_unwind_emit): Update.
3753         (arm_output_fn_unwind): Update.
3754         * config/arm/arm.h (FRAME_POINTER_REQUIRED): Update.
3755         * config/arm/arm.md: Update.
3756         * config/pa/pa.md: Update.
3757         * config/pa/pa.c (legitimize_pic_address): Update.
3758         (compute_frame_size): Update.
3759         (hppa_expand_prologue): Update.
3760         (hppa_expand_epilogue): Update.
3761         (borx_reg_operand): Update.
3762         * config/pa/pa.h (FRAME_POINTER_REQUIRED): Update.
3763         (HARD_REGNO_RENAME_OK): Update.
3764         * config/mips/mips.c (mips_global_pointer): Update.
3765         (mips_save_reg_p): Update.
3766         (mips_compute_frame_info): Update.
3767         (mips_frame_pointer_required): Update.
3768         (mips_expand_prologue): Update.
3769         (mips_expand_epilogue): Update.
3770         (mips_can_use_return_insn): Update.
3771         (mips_reorg_process_insns): Update.
3772         * config/v850/v850.c (compute_register_save_size): Update.
3773         * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Update.
3774         * config/mmix/mmix.c (along): Update.
3775         (mmix_expand_epilogue): Update.
3776         * config/bfin/bfin.c (legitimize_pic_address): Update.
3777         (must_save_p): Update.
3778         (stack_frame_needed_p): Update.
3779         (add_to_reg): Update.
3780         (bfin_expand_prologue): Update.
3781         * stmt.c (expand_asm_operands): Update.
3782         * reload1.c (reload): Update.
3783         (init_elim_table): Update.
3784
3785 2008-04-25  Bob Wilson  <bob.wilson@acm.org>
3786         
3787         * optabs.c (expand_float): Fix REG_EQUAL for UNSIGNED_FLOAT libcall.
3788         
3789 2008-04-25  H.J. Lu  <hongjiu.lu@intel.com>
3790
3791         * config/i386/sse.md (mov<mode>): Replace SSEMODEI with SSEMODE.
3792         (*mov<mode>_internal): Likewise.  Support V4SF and V2DF.
3793         (mov<mode>): Removed.
3794         (*movv4sf_internal): Likewise.
3795         (*movv2df_internal): Likewise.
3796
3797 2008-04-25  Pompapathi V Gadad <Pompapathi.V.Gadad@nsc.com>
3798
3799         * config.gcc (crx-*-elf): Remove deprecation.
3800
3801 2008-04-25  Danny Smith  <dannysmith@users.sourceforge.net>
3802
3803         * config/i386/cygming-crtend.c (register_frame_ctor): Register
3804         __gcc_deregister_frame with atexit.
3805         (deregister_frame_dtor): Remove.
3806
3807 2008-04-24  Nathan Froyd  <froydnj@codesourcery.com>
3808             Nathan Sidwell  <nathan@codesourcery.com>
3809
3810         * config/rs6000/rs6000.opt (mspe): Remove Var property.
3811         (misel): Likewise.
3812         * config/rs6000/rs6000.h (rs6000_spe): Declare.
3813         (rs6000_isel): Likewise.
3814         * config/rs6000/rs6000.c (rs6000_spe): New variable.
3815         (rs6000_isel): New variable.
3816         (rs6000_handle_option): Handle OPT_mspe and OPT_misel.
3817
3818 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
3819
3820         PR c++/35758
3821         * c-common.c (handle_vector_size_attribute): Call
3822         lang_hooks.types.reconstruct_complex_type instead of
3823         reconstruct_complex_type.
3824         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Likewise.
3825         * config/spu/spu.c (spu_handle_vector_attribute): Likewise.
3826         * langhooks.h (struct lang_hooks_for_types): Add
3827         reconstruct_complex_type hook.
3828         * langhooks-def.h (LANG_HOOKS_RECONSTRUCT_COMPLEX_TYPE): Define.
3829         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
3830
3831 2008-04-24  Richard Guenther  <rguenther@suse.de>
3832
3833         * c-common.h (check_builtin_function_arguments): Declare.
3834         * c-common.c (validate_nargs): New function.
3835         (check_builtin_function_arguments): Likewise.
3836         * c-typeck.c (build_function_call): Call
3837         check_builtin_function_arguments.
3838         * builtins.c (fold_builtin_classify): Remove error reporting code.
3839         (fold_builtin_unordered_cmp): Likewise.
3840         (fold_builtin_1): Likewise.
3841         (fold_builtin_n): Likewise.
3842
3843 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
3844
3845         PR tree-optimization/36008
3846         * fold-const.c (try_move_mult_to_index): If s == NULL, divide
3847         the original op1, rather than delta by step.
3848
3849 2008-04-22  Antoniu Pop  <antoniu.pop@gmail.com>
3850             Sebastian Pop  <sebastian.pop@amd.com>
3851
3852         * tree-parloops.c (take_address_of, eliminate_local_variables_1,
3853         eliminate_local_variables_stmt, eliminate_local_variables,
3854         separate_decls_in_loop_name, separate_decls_in_loop_stmt,
3855         separate_decls_in_loop, gen_parallel_loop): Make them work on a region
3856         of code delimited by two edges in the CFG.
3857         (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
3858         (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
3859         (separate_decls_in_loop): Renamed separate_decls_in_region.  Isolate 
3860         the case of parallelisation of reductions.
3861         (expr_invariant_in_region_p): New.
3862
3863         * tree-flow.h (gather_blocks_in_sese_region): Declared.
3864         * tree-cfg.c (gather_blocks_in_sese_region): Extern.
3865
3866 2008-04-24  Ira Rosen  <irar@il.ibm.com>
3867             Richard Guenther  <rguenther@suse.de>
3868
3869         PR tree-optimization/36034
3870         * tree-vect-analyze.c (vect_analyze_group_access): SLP is
3871         incapable of dealing with loads with gaps.
3872
3873 2008-04-24  Rafael Espindola  <espindola@google.com>
3874
3875         * tree-flow.h (vrp_evaluate_conditional): Change signature.
3876         * tree-ssa-propagate.c (fold_predicate_in): Update call to
3877         vrp_evaluate_conditional.
3878         * tree-vrp.c (vrp_evaluate_conditional_warnv): Remove.
3879         (vrp_evaluate_conditional): Split the cond argument.
3880         (vrp_visit_cond_stmt): Use vrp_evaluate_conditional_warnv_with_ops.
3881         (simplify_stmt_for_jump_threading): Update call to
3882         vrp_evaluate_conditional.
3883
3884 2008-04-24  Ira Rosen  <irar@il.ibm.com>
3885
3886         PR tree-optimization/35982
3887         * tree-vect-analyze.c (vect_check_interleaving): Check that the
3888         interleaved data-refs are of the same type.
3889
3890 2008-04-24  Danny Smith  <dannysmith@users.net>
3891
3892         * c-format.c (check_format_info_main): Use strncmp rather than a
3893         magic prefix to handle multichar length specs.
3894         * config/i386/msformat-c.c (format_length_info ms_printf_length_specs):
3895         Don't prefix "I64" and "I32" with '\0'.
3896
3897 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
3898
3899         PR target/36015
3900         * config/i386/i386.c (init_cumulative_args): Don't pass anything
3901         in registers for -m32 only if stdarg_p (fntype).
3902
3903 2008-04-24  Uros Bizjak  <ubizjak@gmail.com>
3904
3905         PR rtl-optimization/36006
3906         * expmed.c (store_fixed_bit_field): Copy op0 rtx before moving
3907         temp to op0 in order to avoid invalid rtx sharing.
3908
3909 2008-04-23  Paolo Bonzini  <bonzini@gnu.org>
3910
3911         * tree-cfg.c (verify_expr): Check with is_gimple_address.  Don't
3912         check TREE_INVARIANT.
3913         * tree-gimple.c (is_gimple_address): New.
3914         (is_gimple_invariant_address): Simplify using decl_address_invariant_p.
3915         * tree-gimple.h (is_gimple_address): New.
3916         * tree.h (decl_address_invariant_p): New.
3917         * tree.c (make_node_stat): Don't set TREE_INVARIANT.
3918         (build_string): Likewise.
3919         (decl_address_invariant_p): New, from is_gimple_invariant_address.
3920         (tree_invariant_p_1): Likewise.
3921         (save_expr): Use it.
3922         (tree_invariant_p): New.
3923         (skip_simple_arithmetic): Use it.
3924         (stabilize_reference_1): Use it.
3925         (recompute_tree_invariant_for_addr_expr): Don't update TREE_INVARIANT,
3926         simplify.
3927         (build1_stat): Drop code to compute TREE_INVARIANT.
3928         (build2_stat): Drop code to compute TREE_INVARIANT.
3929         (build3_stat): Drop code to compute TREE_INVARIANT.
3930         (build4_stat): Drop code to compute TREE_INVARIANT.
3931         (build5_stat): Drop code to compute TREE_INVARIANT.
3932         (build7_stat): Drop code to compute TREE_INVARIANT.
3933         (merge_dllimport_decl_attributes): Don't mention TREE_INVARIANT.
3934         * tree.h (struct tree_base): Remove invariant_flag.
3935         (TREE_INVARIANT): Remove.
3936         * builtins.c (build_string_literal): Don't set TREE_INVARIANT.
3937         (fold_builtin_expect): Check TREE_CONSTANT.
3938         * tree-ssa-ccp.c (fold_stmt_r): Adjust comment.
3939         * c-tree.h (c_expr_to_decl): Drop third parameter.
3940         * c-typeck.c (build_external_ref): Don't set TREE_INVARIANT.
3941         (build_c_cast): Don't set TREE_INVARIANT.
3942         (pop_init_level): Don't set TREE_INVARIANT.
3943         (c_objc_common_truthvalue_conversion): Don't set TREE_INVARIANT.
3944         * gimplify.c (gimplify_init_ctor_preeval): Add assertion, test
3945         TREE_CONSTANT.
3946         (gimplify_init_constructor): Don't set TREE_INVARIANT.
3947         (gimplify_addr_expr): Adjust comment.
3948         * tree-mudflap.c (mf_build_string):
3949         * print-tree.c (print_node): Don't print TREE_INVARIANT.
3950         * tree-nested.c (convert_nonlocal_reference): Adjust comment.
3951         * c-common.c (fix_string_type): Don't set TREE_INVARIANT.
3952         * langhooks-def.h (lhd_expr_to_decl): Drop third parameter.
3953         * langhooks.c (lhd_expr_to_decl): Drop third parameter.
3954         * langhooks.h (struct lang_hooks): Drop third parameter from
3955         expr_to_decl.
3956
3957 2008-04-23  Richard Guenther  <rguenther@suse.de>
3958
3959         PR tree-optimization/27799
3960         PR tree-optimization/32921
3961         PR tree-optimization/32624
3962         * tree-ssa-structalias.c (merge_smts_into): Only merge the
3963         SMTs aliases and the tag itself into the solution.
3964         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Do not
3965         merge the points-to solution back into the SMT aliases.
3966         (may_alias_p): Use alias_set_subset_of instead of
3967         aliases_conflict_p.  A pointer which points to
3968         memory with alias set zero may access any variable.
3969
3970 2008-04-23  Richard Guenther  <rguenther@suse.de>
3971
3972         * alias.c (alias_set_subset_of): Correctly handle asking
3973         if zero is a subset of an alias set with zero child.
3974         * tree-ssa-alias.c (have_common_aliases_p): Simplify logic.
3975         (compute_flow_insensitive_aliasing): Correctly walk all
3976         pointers.  Do not unnecessarily union sets.
3977
3978 2008-04-23  Richard Guenther  <rguenther@suse.de>
3979
3980         PR middle-end/36021
3981         * c-common.c (handle_alloc_size_attribute): Use type_num_arguments.
3982
3983 2008-04-22  Tomas Bily  <tbily@suse.cz>
3984
3985         * tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as
3986         unreachable case.
3987         * tree-vrp.c (extract_range_from_unary_expr): Removed unused
3988         NON_LVALUE_EXPR.
3989         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
3990         * tree-ssa-structalias.c (get_constraint_for): Likewise.
3991         * tree-inline.c (estimate_num_insns_1): Likewise.
3992         * varasm.c (const_hash_1, compare_constant, copy_constant)
3993         (compute_reloc_for_constant, output_addressed_constants): Likewise.
3994         * emit-rtl.c (component_ref_for_mem_expr)
3995         (set_mem_attributes_minus_bitpos): Likewise.
3996         * expr.c (highest_pow2_factor, expand_expr_real_1, )
3997         (is_aligning_offset): Likewise.
3998         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info): Likewise.
3999         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
4000         * dojump.c (do_jump): Likewise.
4001         * builtins.c (get_pointer_alignment, get_memory_rtx)
4002         (integer_valued_real_p, fold_builtin_next_arg): Likewise.
4003         * tree-scalar-evolution.c (instantiate_parameters_1): Likewise.
4004
4005 2008-04-23  Jakub Jelinek  <jakub@redhat.com>
4006
4007         PR rtl-optimization/36017
4008         * builtins.c (expand_errno_check): Clear CALL_EXPR_TAILCALL before
4009         expanding the library call.
4010
4011 2008-04-22  Ian Lance Taylor  <iant@google.com>
4012
4013         * fold-const.c (pointer_may_wrap_p): Call int_size_in_bytes rather
4014         than size_in_bytes.
4015
4016 2008-04-22  Pat Haugen  <pthaugen@us.ibm.com>
4017
4018         * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
4019         of LR/CTR moves for Power6.
4020
4021 2008-04-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
4022
4023         PR middle-end/36003
4024         * passes.c (init_optimization_passes): Remove
4025         pass_fast_rtl_byte_dce.
4026         
4027 2008-04-22  Uros Bizjak  <ubizjak@gmail.com>
4028
4029         PR target/29096
4030         * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Rearrange calls to
4031         builtin functions to generate faster code.
4032         (_mm_cvtpu16_ps): Ditto.
4033         (_mm_cvtpi32x2_ps): Ditto.
4034
4035 2008-04-22  Nick Clifton  <nickc@redhat.com>
4036
4037         * common.opt (ftree-loop-distribution): Add Optimization
4038         attribute.
4039
4040         * config/frv/frv.c (frv_stack_info): Use crtl instead of cfun.
4041         (frv_expand_builtin_va_start): Likewise.
4042
4043         * config/arm/arm.c (thumb_find_work_register): Fix location of
4044         argument register count.
4045
4046 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
4047
4048         Support scheduling for ColdFire V1 and V3 microarchitecture.
4049         Improve scheduling of multiplication instructions.
4050
4051         * config/m68k/m68k.md (cpu): Add cfv1 and cfv3.  Rename cf_v2 to cfv1.
4052         (mac): New instruction attribute.
4053         * config/m68k/m68k.c (override_options): Handle cfv1, cfv3 and mac.
4054         (m68k_sched_mac): New variable.
4055         (m68k_sched_attr_type2, m68k_sched_md_init_global): Update.
4056         Handle cfv1 and cfv3.
4057         (max_insn_size): New static variable.
4058         (struct _sched_ib): New type.
4059         (sched_ib): New static variable.
4060         (sched_ib_size, sched_ib_filled, sched_ib_insn): Convert variables
4061         to fields of 'struct _sched_ib sched_ib'.  Update all uses.
4062         (m68k_sched_variable_issue): Add modeling of cfv3 instruction buffer.
4063         Update.
4064         (m68k_sched_md_init_global, m68k_sched_md_finish_global,
4065         m68k_sched_md_init, m68k_sched_md_finish): Handle cfv1 and cfv3.  Init
4066         new variables.  Update.
4067         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
4068         Add modeling of cfv3 instruction buffer.  Update.
4069         * config/m68k/m68k-protos.h (m68k_sched_mac): Declare.
4070         * config/m68k/m68k.h (TUNE_CFV3): New macro.
4071         * config/m68k/cf.md: Change substrings 'cf_v2' to 'cfv12' or 'cfv123'.
4072         (cf_* reservations): Rename to cfv12 or cfv123 to indicate cores
4073         a particular reservation applies to.
4074         (type2): Reorganize attribute values.  Rename alu to alu_reg,
4075         alu_l to alu, move_l to omove.  Join move to alu.  Split mul
4076         to mul_l and mul_w.
4077         (cf_ib_*): Simplify description of instruction buffer.
4078         (cf_ib_w0, cf_ib_w4, cf_ib_w5, cf_ib_w6): Remove.
4079         (cf_mem): Split into cf_mem1 and cf_mem2.
4080         (cf_v2_move_??): Rename to cfv12_alu_??.
4081         (cf_v2_move_l_??): Rename to cfv12_omove_??.
4082         (cf_v2_mul_??): Remove reservations.
4083         (cfv12_mul_l_??, cfv12_mul_w_??, cfv12_mac_w_??, cfv12_mac_l_??,
4084         cfv12_emac_??, cfv12_emac_w_i0): New reservations.
4085         (cfv12_rts, cfv12_call, cfv12_bcc, cfv12_bra, cfv12_jmp): Move to
4086         appropriate place.
4087         (cfv3_alu_10, cfv3_omove_10, cfv3_alu_i0, cfv3_omove_i0, cfv3_alu_01,
4088         cfv3_alu_0i, cfv3_alu_11, cfv3_omove_11, cfv3_alu_i1, cfv3_omove_i1,
4089         cfv3_alu_1i, cfv3_omove_1i, cfv3_pea_11, cfv3_pea_i1, cfv3_mul_w_10,
4090         cfv3_mul_l_10, cfv3_mul_w_i0, cfv3_mac_w_10, cfv3_mac_l_10,
4091         cfv3_mac_w_i0, cfv3_emac_10, cfv3_emac_w_i0, cfv3_rts, cfv3_call,
4092         cfv3_bcc, cfv3_bra, cfv3_jmp): New reservations.
4093         (cfv3_*_1, cfv3_*_2, cfv3_*_3): New instruction reservations that are
4094         expansions of the above reservations for instructions of sizes
4095         1, 2 and 3 words.
4096
4097 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
4098
4099         * rtl-factoring.c (collect_patterns_seqs): Handle CC0 targets.
4100
4101 2008-04-21  Adam Nemet  <anemet@caviumnetworks.com>
4102
4103         * coverage.c: Include tree-pass.h.
4104         (coverage_counter_alloc): Print da_file_name to the dump file.
4105
4106 2008-04-21  Kenneth Zadeck  <zadeck@naturalbridge.com>
4107
4108         * sbitmap.c (sbitmap_range_empty_p): New function.
4109         * sbitmap.h (sbitmap_range_empty_p): New function.
4110         * bitmap.h: Now includes obstack.h.
4111
4112 2008-04-21  Richard Sandiford  <rsandifo@nildram.co.uk>
4113             Kenneth Zadeck  <zadeck@naturalbridge.com>
4114
4115         * dbgcnt.def (ra_byte_scan): Added.
4116         * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
4117         when the last hit happens for a counter.  
4118         * timevar.def (TV_DF_BYTE_LR): New variable.
4119         * tree-pass.h (pass_fast_rtl_byte_dce): New pass.
4120         * passes.c (pass_fast_rtl_byte_dce): New pass.
4121         * fwprop.c (update_df): Added mode to call df_ref_create.
4122         Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
4123         DF_REF_EXTRACT_OFFSET.
4124         * df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN, 
4125         DF_BYTE_LR_OUT, df_byte_lr): New macro.
4126         (df_mm): New enum.
4127         (df_ref_extract): Added mode field.
4128         (DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
4129         DF_REF_EXTRACT_OFFSET.
4130         (DF_REF_EXTRACT_MODE): New macro.
4131         (df_byte_lr_bb_info): New structure.
4132         (df_print_byte_regset, df_compute_accessed_bytes, 
4133         df_byte_lr_add_problem, df_byte_lr_get_regno_start,
4134         df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
4135         df_byte_lr_simulate_uses,
4136         df_byte_lr_simulate_artificial_refs_at_top,
4137         df_byte_lr_simulate_artificial_refs_at_end,
4138         df_compute_accessed_bytes): New function.
4139         (df_ref_create): Add parameter.
4140         (df_byte_lr_get_bb_info): New inline function.
4141         * df-scan.c (df_ref_record, df_uses_record,
4142         df_ref_create_structure): Added mode parameter.
4143         (df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1, 
4144         df_defs_record, df_uses_record, df_get_conditional_uses,
4145         df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect, 
4146         df_entry_block_defs_collect, df_exit_block_uses_collect):
4147         Added mode parameter to calls to df_ref_record, df_uses_record,
4148         df_ref_create_structure.
4149         (df_ref_equal_p, df_ref_compare): Added test for modes.
4150         (df_ref_create_structure): Added code to set mode.  Renamed
4151         DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
4152         DF_REF_EXTRACT_OFFSET.
4153         * df-core.c (df_print_byte_regset): New function.
4154         * df-byte-scan.c: New file.
4155         * df-problems.c (df_rd_transfer_function): Removed unnecessary
4156         calls to BITMAP_FREE.  
4157         (df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
4158         (df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
4159         df_byte_lr_set_bb_info, df_byte_lr_free_bb_info, 
4160         df_byte_lr_check_regs, df_byte_lr_expand_bitmap, 
4161         df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
4162         df_byte_lr_local_compute, df_byte_lr_init,
4163         df_byte_lr_confluence_0, df_byte_lr_confluence_n, 
4164         df_byte_lr_transfer_function, df_byte_lr_free, 
4165         df_byte_lr_top_dump, df_byte_lr_bottom_dump,
4166         df_byte_lr_add_problem, df_byte_lr_simulate_defs, 
4167         df_byte_lr_simulate_uses,
4168         df_byte_lr_simulate_artificial_refs_at_top,
4169         df_byte_lr_simulate_artificial_refs_at_end): New function.
4170         * dce.c (byte_dce_process_block): New function.
4171         (dce_process_block): au is now passed in rather than computed
4172         locally.  Changed loops that look at artificial defs to not look
4173         for conditional or partial ones, because there never are any.  
4174         (fast_dce): Now is able to drive byte_dce_process_block or 
4175         dce_process_block depending on the kind of dce being done.
4176         (rest_of_handle_fast_dce): Add parameter to fast_dce.
4177         (rest_of_handle_fast_byte_dce): New function.
4178         (rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
4179         * Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
4180
4181 2008-04-21  Daniel Franke  <franke.daniel@gmail.com>
4182
4183         PR fortran/35019
4184         * gcc.h: Added fortran options that take arguments to
4185         DEFAULT_SWITCH_TAKES_ARG and DEFAULT_WORD_SWITCH_TAKES_ARG
4186         macros.
4187
4188 2008-04-20  Eric Botcazou  <ebotcazou@adacore.com>
4189
4190         * tree-sra.c (sra_walk_expr) <VIEW_CONVERT_EXPR>: Disable
4191         scalarization if on the LHS and not a full access.
4192
4193 2008-04-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4194
4195         * Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing it.
4196
4197 2008-04-18  Rafael Espindola  <espindola@google.com>
4198
4199         * tree-vrp.c (find_case_label_index): Fix the binary search.
4200         (find_case_label_range): New.
4201         (vrp_visit_switch_stmt): Use find_case_label_range.
4202         (simplify_switch_using_ranges): Use find_case_label_range.
4203
4204 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
4205
4206         * gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
4207         using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
4208
4209 2008-04-18  Tom Tromey  <tromey@redhat.com>
4210
4211         PR libcpp/15500:
4212         * doc/cpp.texi (Implementation-defined behavior): Mention
4213         -finput-charset.
4214
4215 2008-04-18  Ian Lance Taylor  <iant@google.com>
4216
4217         * fold-const.c (pointer_may_wrap_p): New static function.
4218         (fold_comparison): Add another test for pointer overflow.  Use
4219         pointer_may_wrap_p to disable some false positives.
4220
4221 2008-04-18  Kris Van Hees <kris.van.hees@oracle.com>
4222           
4223         * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros.
4224         (fname_as_string): Match updated cpp_interpret_string prototype.
4225         (fix_string_type): Support char16_t* and char32_t*.
4226         (c_common_nodes_and_builtins): Add char16_t and char32_t (and
4227         derivative) nodes.  Register as builtin if C++0x.
4228         (c_parse_error): Support CPP_CHAR{16,32}.
4229         * c-common.h (RID_CHAR16, RID_CHAR32): New elements. 
4230         (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE,
4231         CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE,
4232         CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE,
4233         CTI_CHAR32_ARRAY_TYPE>: New elements.
4234         (char16_type_node, signed_char16_type_node, unsigned_char16_type_node,
4235         char32_type_node, signed_char32_type_node, char16_array_type_node,
4236         char32_array_type_node): New defines.
4237         * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype.
4238         (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
4239         (lex_string): Support CPP_STRING{16,32}, match updated
4240         cpp_interpret_string and cpp_interpret_string_notranslate prototypes.
4241         (lex_charconst): Support CPP_CHAR{16,32}.
4242         * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32}
4243         and CPP_STRING{16,32}.
4244
4245 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
4246
4247         PR bootstrap/35457
4248         * aclocal.m4: Regenerate.
4249         * configure: Regenerate.
4250
4251 2008-04-18  Jan Hubicka  <jh@suse.cz>
4252
4253         * except.c (dw2_size_of_call_site_table,
4254         sjlj_size_of_call_site_table): Use vector API for call_site_record.
4255
4256         * cgraphbuild.c (build_cgraph_edges): Update.
4257         * tree-pass.h: Update comment.
4258         * final.c (leaf_function_p): Update.
4259         (leaf_renumber_regs): Update.
4260         (rest_of_clean_state): Update.
4261         * omp-low.c (expand_omp_parallel): Update.
4262         * ipa-reference.c (analyze_function): Update.
4263         * reorg.c (find_end_label): Update.
4264         (optimize_skip): Update.
4265         (fill_simple_delay_slots): Update.
4266         (fill_simple_delay_slots): Update.
4267         (make_return_insns): Update.
4268         (dbr_schedule): Update.
4269         * gimple-low.c (record_vars_into): Update.
4270         * cfgbuild.c (make_edges): Update.
4271         * function.c (assign_stack_local): Update.
4272         (assign_parm_adjust_stack_rtl): Update.
4273         (locate_and_pad_parm): Update.
4274         (allocate_struct_function): Do not initialize stack_alignment_needed
4275         and preferred_stack_boundary here.
4276         (stack_protect_prologue): Update.
4277         (stack_protect_epilogue): Update.
4278         (expand_function_start): Initialize stack_alignment_needed,
4279         preferred_stack_boundary and max_jumptable_ents.
4280         (expand_function_end): Update.
4281         (free_after_compilation): Do not NULLify epilogue_delay_list.
4282         * function.h (struct rtl_data): Add stack_protect_guard,
4283         stack_alignment_needed,
4284         preferred_stack_boundary, epilogue_delay_list.
4285         (struct function): Remove value_histograms, stack_alignment_needed,
4286         preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
4287         last_label_uid,
4288         unexpanded_var_list, stack_protect_guard.
4289         (current_function_epilogue_delay_list): Remove.
4290         * ipa-type-escape.c (analyze_function): Update.
4291         * gimplify.c (pop_gimplify_context): Update comment.
4292         * calls.c (expand_call): Update.
4293         (emit_library_call_value_1): Update.
4294         * except.c (set_nothrow_function_flags): Update.
4295         * cfgexpand.c (get_decl_align_unit): Update.
4296         (create_stack_guard): Update.
4297         (estimated_stack_frame_size): Update.
4298         (expand_used_vars): Update.
4299         (tree_expand_cfg): Free histogram earliers, init expansion variables.
4300         * explow.c (allocate_dynamic_stack_space): Update.
4301         * tree-ssa-live.c (remove_unused_locals): Update.
4302         * varasm.c (mark_constant_pool): Update.
4303         * tree-inline.c (remap_decls): Update.
4304         (initialize_cfun): Update.
4305         (declare_return_variable): Update.
4306         (inline_forbidden_p): Update.
4307         (expand_call_inline): Update.
4308         (declare_inline_vars): Update.
4309         (tree_function_versioning): Update.
4310         * tree-flow.h (value_histograms): New.
4311         (VALUE_HISTOGRAMS): New macro.
4312         * basic-block.h (control_flow_graph): Add max_jumptable_ents,
4313         last_label_uid.
4314         * tree-cfg.c (set_bb_for_stmt): Update.
4315         (replace_by_duplicate_decl): Update.
4316         (move_block_to_fn): Update.
4317         (new_label_mapper): Update.
4318         (dump_function_to_file): Update.
4319         * ipa-struct-reorg.c (build_data_structure): Update.
4320         * cfgrtl.c (print_rtl_with_bb): Update.
4321         * reload1.c (reload): Update.
4322         (reload): Update.
4323         * config/i386/i386.c (setup_incoming_varargs_64,
4324         ix86_compute_frame_layout): Update.
4325         * config/arc/arc.c (arc_output_function_epilogue): Update.
4326
4327 2008-04-18  Marius Strobl <marius@FreeBSD.org>
4328
4329         * gthr-posix.h (__gthread_active_p): Use the Solaris implementation
4330         for FreeBSD as well.
4331         * gthr-posix95.h: Likewise.
4332
4333 2008-04-17  Richard Sandiford  <rsandifo@nildram.co.uk>
4334
4335         PR rtl-optimization/35838
4336         * dse.c (find_shift_sequence): Use subreg_lowpart_offset to work
4337         out the byte offset of the first subreg.
4338
4339 2008-04-17  Uros Bizjak  <ubizjak@gmail.com>
4340
4341         * config/i386/i386.md (addti3 splitter): Pass arrays of 3 operands
4342         to split_ti instead of three separate calls with single member arrays.
4343         (subti3 splitter): Ditto.
4344         (adddi3 splitter): Ditto with split_di.
4345         (subdi3 splitter): Ditto.
4346         (negti2 splitter): Pass arrays of 2 operands to split_ti instead of
4347         two separate calls with single member arrays.  Swap match_dup
4348         operands 1 and 2 to better fit into the array.
4349         (negdi2 splitter): Ditto with split_di.
4350         (movdfcc splitter):  Pass arrays of 2 operands to split_di instead of
4351         two separate calls with single member arrays.  Swap match_dup operands
4352         6 and 7 to better fit into the array.
4353
4354 2008-04-17  H.J. Lu  <hongjiu.lu@intel.com>
4355
4356         * config/i386/i386.c (sse_builtin_type): New.
4357         (bdesc_sse_args): Likewise.
4358         (bdesc_sse_3arg): Removed.
4359         (bdesc_2arg): Remove IX86_BUILTIN_AESKEYGENASSIST128.
4360         (bdesc_1arg): Remove IX86_BUILTIN_ROUNDPD and
4361         IX86_BUILTIN_ROUNDPS.
4362         (ix86_init_mmx_sse_builtins): Handle bdesc_sse_args.  Remove
4363         bdesc_sse_3arg.  Remove IX86_BUILTIN_ROUNDPD and
4364         IX86_BUILTIN_ROUNDPS.
4365         (ix86_expand_sse_4_operands_builtin): Removed.
4366         (ix86_expand_sse_operands_builtin): New.
4367         (ix86_expand_unop_builtin): Remove CODE_FOR_sse4_1_roundpd
4368         and CODE_FOR_sse4_1_roundps.
4369         (ix86_expand_builtin): Remove IX86_BUILTIN_AESKEYGENASSIST128.
4370         Handle bdesc_sse_args.  Remove bdesc_sse_3arg.
4371
4372 2008-04-17  Alan Modra  <amodra@bigpond.net.au>
4373
4374         PR target/35907
4375         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Restore vr and vrsave
4376         regs before frame pop when needed.  If use_backchain_to_restore_sp
4377         then load backchain into a temp reg to restore vr and vrsave.  Add
4378         code to restore vr after frame pop if possible.
4379
4380 2008-04-17  Richard Guenther  <rguenther@suse.de>
4381
4382         * tree-vn.c (expressions_equal_p): Do not check type
4383         equality or compatibility before calling operand_equal_p.
4384         * fold-const.c (operand_equal_p): Check equivalence of
4385         integer constants before bailing out due to signedness or
4386         precision differences.
4387         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
4388         spurious differences in type qualification.  Ignore types
4389         for COMPONENT_REFs at all.
4390
4391 2008-04-17  Christian Bruel  <christian.bruel@st.com>
4392
4393         * config/sh/sh.c (expand_cbranchdi4): Use original operands for
4394         msw_skip comparison.
4395         
4396 2008-04-16  Jakub Jelinek  <jakub@redhat.com>
4397
4398         PR c/35739
4399         * tree-nrv.c (tree_nrv): Don't optimize if result_type is GIMPLE
4400         reg type.
4401
4402         PR tree-optimization/35899
4403         * tree-inline.c (expand_call_inline): Use GIMPLE_STMT_OPERAND
4404         rather than TREE_OPERAND.
4405
4406 2008-04-16  Uros Bizjak  <ubizjak@gmail.com>
4407
4408         PR target/35944
4409         * config/i386/i386.md (fmodxf3): Copy operand 1 and operand 2 into
4410         temporary registers.  Change operand predicate to general_operand.
4411         (remainderxf3): Ditto.
4412
4413 2008-04-16  Richard Guenther  <rguenther@suse.de>
4414
4415         * Makefile.in (tree-affine.o): Add $(FLAGS_H) dependency.
4416         * tree-affine.c (aff_combination_expand): Look through some
4417         conversions.
4418
4419 2008-04-15  Doug Kwan  <dougkwan@google.com>
4420
4421         * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
4422         for hex printing.
4423         * tree-pretty-print.c (dump_generic_node): Ditto.
4424         * final.c (output_addr_const): Ditto.
4425         * dwarf2out.c (output_cfi): Ditto.
4426         * c-pretty-print.c (pp_c_integer_constant): Ditto.
4427         * print-rtl.c (print_rtx): Ditto.
4428         * print-tree.c (print_node_brief, print_node): Ditto.
4429         * c-common.c (match_case_to_enum_1): Ditto.
4430         * sched-vis.c (print_value): Ditto.
4431         * config/i386/i386.c (print_operand): Cast to long unsigned int
4432         for hex printing.
4433
4434 2008-04-15  Danny Smith  <dannysmith@users.sourceforge.net>
4435         * libgcc2.c [L_trampoline]: Remove  unnecessary prototype for
4436         MS Windows VirtualProtect function.
4437
4438 2008-04-15  Jan Hubicka  <jh@suse.cz>
4439
4440         * gengtype.c (write_root): Param_is argument is OK.
4441         * expr.c (expand_expr_real_1): Update call of get_exception_*.
4442         * function.h: Include varray.h
4443         (rtl_eh): New stucture based on except.c one.
4444         (call_site_record): New forward declaration and vector type.
4445         * calls.c (emit_call_1): Do not call
4446         note_current_region_may_contain_throw.
4447         * except.c (eh_status): Remove cur_region, try_region since they are
4448         unused.
4449         Move filter, exc_ptr, ttype_data, ehspec_data, action_record_data and
4450         exception_handler_label_map, ehr_stackadj, ehr_handler, ehr_label,
4451         sjlj_fc, sjlj_exit_after to rth_eh in function.h. 
4452         Remove call_site_data_used, call_site_data_size.
4453         Turn call_site_record into vector in function.h.
4454         (note_current_region_may_contain_throw): Remove.
4455         (get_exception_pointer, get_exception_filter): Do not take struct
4456         function argument; update.
4457         (add_ehl_entry, find_exception_handler_labels, ehspec_filter_hash,
4458         add_ttypes_entry, add_ehspec_entry, assign_filter_values,
4459         build_post_landing_pads, dw2_build_landing_pads,
4460         sjlj_assign_call_site_values, sjlj_mark_call_sites,
4461         sjlj_emit_function_enter, sjlj_emit_function_enter, 
4462         sjlj_emit_function_exit, sjlj_emit_dispatch_table,
4463         sjlj_build_landing_pads, finish_eh_generation,
4464         remove_exception_handler_label, remove_eh_handler,
4465         maybe_remove_eh_handler, add_reachable_handler,
4466         reachable_handlers, expand_builtin_eh_return, expand_eh_return,
4467         add_action_record, collect_one_action_chain, add_call_site,
4468         convert_to_eh_region_ranges, sjlj_size_of_call_site_table,
4469         sjlj_output_call_site_table, output_function_exception_table,
4470         * except.h (note_current_region_may_contain_throw): Remove
4471         (get_exception_pointer, get_exception_filter): Do not take struct
4472         function argument.
4473         * Makefile.in (GTFILES): Put varargs before struct function.
4474
4475 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
4476
4477         * tree-ssa-structalias.c (get_constraint_for_component_ref): Do not
4478         punt for STRING_CST.
4479         (get_constraint_for): Deal with STRING_CST here instead.
4480
4481 2008-04-15  Richard Guenther  <rguenther@suse.de>
4482
4483         * tree-ssa-propagate.c (substitute_and_fold): Substitute
4484         statements in a basic-block with a backward walk.  Do not
4485         substitute into dead statements but instead remove those.
4486
4487 2008-04-15  Richard Guenther  <rguenther@suse.de>
4488
4489         * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Set default
4490         to zero, thus disable creation of SFTs.
4491
4492 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
4493
4494         * tree-predcom.c (suitable_reference_p): Return false if the
4495         reference can throw.
4496
4497 2008-04-15  Jakub Jelinek  <jakub@redhat.com>
4498
4499         PR c/35751
4500         * c-decl.c (finish_decl): If extern or static var has variable
4501         size, set TREE_TYPE (decl) to error_mark_node.
4502
4503 2008-04-15  Rafael Espindola  <espindola@google.com>
4504
4505         * fold-const.c (tree_call_nonnegative_warnv_p): Remove local
4506         variable arg1.
4507
4508 2008-04-15  Richard Guenther  <rguenther@suse.de>
4509
4510         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
4511         * tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
4512         (visit_reference_op_load): Do walk vuse-vdef chains on
4513         vn_reference_lookup.
4514         (visit_reference_op_store): But do not here.
4515         * tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
4516         vn_reference_lookup.
4517         (vn_lookup_with_vuses): But do so here.
4518
4519 2008-04-14  Ian Lance Taylor  <iant@google.com>
4520
4521         * fold-const.c (fold_overflow_warning): Remove assertion.
4522
4523 2008-04-15  Ben Elliston  <bje@au.ibm.com>
4524
4525         * config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp,
4526         temp1 local variables.
4527
4528 2008-04-15  Zuxy Meng  <zuxy.meng@gmail.com>
4529
4530         PR target/35661
4531         * config/i386/winnt.c (i386_pe_section_type_flags): Mark
4532         ".text.unlikely" section as executable.
4533
4534 2008-04-14  James E. Wilson  <wilson@tuliptree.org>
4535
4536         * config/ia64/ia64.c (rtx_needs_barrier): Handle
4537         UNSPEC_FR_SQRT_RECIP_APPROX_RES.
4538         * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define.
4539         (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr,
4540         divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr,
4541         divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat,
4542         divxf3_internal_thr, sqrtxf2_internal_thr, recip_approx): Use it.
4543
4544 2008-04-14  Ian Lance Taylor  <iant@google.com>
4545
4546         * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
4547         * fold-const.c (fold_comparison): If appropriate, test
4548         POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
4549         (fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
4550         reassociating a pointer type.
4551         * doc/invoke.texi (Optimize Options): Document that
4552         -fstrict-overflow applies to pointer wraparound.
4553
4554 2008-04-13  Jan Hubicka  <jh@suse.cz>
4555
4556         * m32.c (m32c_pushm_popm): Use crtl->retrun_rtx.
4557
4558 2008-04-12  Andrew Pinski  <pinskia@gmail.com>
4559
4560         * config/rs6000/rs6000.c (compute_save_world_info): Set lr_save_p if
4561         we are going to "save the world".
4562
4563 2008-04-13  Hans-Peter Nilsson  <hp@axis.com>
4564
4565         * config/cris/cris.md ("*andhi_lowpart_non_v32", "*andhi_lowpart_v32")
4566         ("*andqi_lowpart_non_v32", "*andqi_lowpart_v32"): Use "+" for the
4567         operand 0 constraint, not "=".
4568
4569 2008-04-11  James E. Wilson  <wilson@tuliptree.org>
4570
4571         * system.h: Change ASSERT_CHECKING to ENABLE_ASSERT_CHECKING.
4572
4573 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
4574
4575         * dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
4576         of size of positions_needed * CHAR_BIT.
4577
4578 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
4579
4580         PR middle-end/35897
4581         * dse.c (store_info): Change positions_needed to unsigned
4582         HOST_WIDE_INT.
4583         (lowpart_bitmask): New.
4584         (record_store): Cast to unsigned HOST_WIDE_INT for
4585         positions_needed.  Assert width <= size of positions_needed *
4586         CHAR_BIT.  Call lowpart_bitmask to initialize positions_needed.
4587         (check_mem_read_rtx): Use unsigned HOST_WIDE_INT on mask.  Call
4588         lowpart_bitmask to set mask.
4589
4590 2008-04-11  Bernd Schmidt  <bernd.schmidt@analog.com>
4591
4592         * config/bfin/constraints.md: New file.
4593         * config/bfin/bfin.md: Include it.
4594         (adddi3): Use satisfies_constraint functions instead of the old macros.
4595         * config/bfin/bfin.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
4596         CONST_18UBIT_IMM_P, CONST_16BIT_IMM_P, CONST_16UBIT_IMM_P,
4597         CONST_7BIT_IMM_P, CONST_7NBIT_IMM_P, CONST_5UBIT_IMM_P,
4598         CONST_4BIT_IMM_P, CONST_4UBIT_IMM_P, CONST_3BIT_IMM_P,
4599         CONST_3UBIT_IMM_P, CONST_OK_FOR_K, CONST_OK_FOR_P, CONST_OK_FOR_M,
4600         CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER,
4601         EXTRA_CONSTRAINT): Delete.
4602         * config/bfin/predicates.md (highbits_operand, reg_or_7bit_operand,
4603         reg_or_neg7bit_operand): Use satisfies_constraint functions instead
4604         of the old macros.
4605         * config/bfin/bfin.c: Include "tm-constrs.h".
4606         (bfin_secondary_reload, split_load_immediate, bfin_rtx_costs):
4607         Use satisfies_constraint functions instead of the old macros.
4608         * doc/md.texi (Blackfin Constraints): Update file name reference.
4609
4610 2008-04-11  Richard Guenther  <rguenther@suse.de>
4611
4612         PR tree-optimization/35869
4613         * tree-vrp.c (execute_vrp): Move switch statement update after
4614         jump threading.  Schedule another cfg cleanup run.
4615
4616 2008-04-11  Volker Reichelt  <v.reichelt@netcologne.de>
4617
4618         PR c/35744
4619         * attribs.c (decl_attributes): Return early on errorneous node.
4620
4621 2008-04-10  Oleg Ryjkov  <olegr@google.com>
4622
4623         * tree.h (struct tree_base): Added a new flag default_def_flag.
4624         (SSA_NAME_IS_DEFAULT_DEF): Changed to use the new flag.
4625
4626 2008-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
4627
4628         * config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*.
4629
4630 2008-04-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4631
4632         PR target/35768
4633         * pa.md: Define mode iterator P.  Define mode attribute dwc.
4634         (dcacheflush): Update pattern to use iterator P and attribute dwc.
4635         (icacheflush): Likewise.
4636         * pa.h (INITIALIZE_TRAMPOLINE): Use dcacheflushsi/icacheflushsi if
4637         !TARGET_64BIT, and dcacheflushdi/icacheflushdi if TARGET_64BIT.
4638
4639 2008-04-11  Ben Elliston  <bje@au.ibm.com>
4640
4641         * config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
4642
4643 2008-04-10  Rafael Espindola  <espindola@google.com>
4644
4645         * tree-vrp.c (extract_range_from_binary_expr): Don't handle
4646         TRUTH_ANDIF_EXPR or TRUTH_ORIF_EXPR.
4647         (extract_range_from_expr): The same.
4648
4649 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
4650
4651         * config/mips/mips.md (GPR2): New mode iterator.
4652         (seq): Add comment.
4653         (*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
4654         *sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
4655         *slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
4656         Rewrite these to take two modes, the mode of comparison and the
4657         mode of the destination.
4658         * config/mips/mips.c (mips_expand_scc): Instead of having
4659         paradoxical subreg as destination, expand "narrowing" scc if mode
4660         of comparison is SI and target is requested in DI mode.
4661         (mips_emit_int_order_test): Update comment.  Make mode of
4662         comparison match CMP0 rather than TARGET.  When creating inverse
4663         target use mode of TARGET.
4664
4665 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
4666
4667         * gcov-dump.c (tag_summary): Only print summaries for the first
4668         GCOV_COUNTERS_SUMMABLE counters.
4669
4670 2008-04-10  Uros Bizjak  <ubizjak@gmail.com>
4671
4672         * config/i386/i386.md (absneg): New code iterator.
4673         (absnegprefix): New code attribute.
4674         (<code><mode>2): Macroize expander from abs<mode>2 and neg<mode>2
4675         patterns using absneg code iterator.
4676         (<code>tf2): Macroize expander from abstf2 and negtf2 patterns
4677         using absneg code iterator.
4678         (*<code><mode>2_1): Macroize insn pattern from *abs<mode>2_1 and
4679         *neg<mode>2 patterns using absneg code iterator.
4680         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
4681         *negextendsfdf2 patterns using absneg code iterator.
4682         (*<code>extendsfxf2): Macroize insn pattern from *absextendsfxf2 and
4683         *negextendsfxf2 patterns using absneg code iterator.
4684         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
4685         *negextendsfdf2 patterns using absneg code iterator.
4686         * config/i386/sse.md (<code><mode>2): Macroize expander from
4687         abs<mode>2 and neg<mode>2 patterns using absneg code iterator. 
4688
4689 2008-04-10  Andreas Krebbel  <krebbel1@de.ibm.com>
4690
4691         * config/s390/s390.h: Remove the remains of the recent search
4692         & replace action of current_function_outgoing_args_size.
4693
4694 2008-04-10  Ira Rosen  <irar@il.ibm.com>
4695
4696         PR tree-optimization/35821
4697         * tree-vect-transform.c (vect_create_data_ref_ptr): Add check that
4698         NEW_STMT_LIST is not NULL.
4699
4700 2008-04-09  David Edelsohn  <edelsohn@gnu.org>
4701
4702         PR libstdc++/35597
4703         * toplev.c (process_options): Remove -ffunction-sections debugging
4704         warning.
4705
4706 2008-04-09  Peter Bergner  <bergner@vnet.ibm.com>
4707
4708         PR middle-end/PR28690
4709         * explow.c (break_out_memory_refs): Use simplify_gen_binary rather
4710         than gen_rtx_fmt_ee to perform more canonicalizations.
4711
4712 2008-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4713
4714         PR driver/35665
4715         * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
4716
4717 2008-04-09  Richard Guenther  <rguenther@suse.de>
4718
4719         * tree-cfg.c (verify_stmt): Print complete bogus stmt.
4720         (dump_function_to_file): Dump function arguments with types.
4721
4722 2008-04-08  Richard Guenther  <rguenther@suse.de>
4723
4724         * fold-const.c (fold_widened_comparison): Do not allow
4725         sign-changes that change the result.
4726
4727 2008-04-08  Janis Johnson  <janis187@us.ibm.com>
4728
4729         PR target/35839
4730         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
4731         kinds of indirect references.
4732
4733 2008-04-08  David Edelsohn  <edelsohn@gnu.org>
4734
4735         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
4736         GNU Fortran language string.
4737
4738 2008-04-08  Rafael Espindola  <espindola@google.com>
4739
4740         * fold-canst.c (tree_call_nonnegative_warnv_p): New.
4741         (tree_invalid_nonnegative_warnv_p): Use tree_call_nonnegative_warnv_p.
4742         * tree.h (tree_call_nonnegative_warnv_p): New.
4743
4744 2008-04-08  Jan Hubicka  <jh@suse.cz>
4745
4746         * function.c (free_after_compilation): Clear out regno_reg_rtx
4747         pointer.
4748
4749 2008-04-08  Peter Bergner  <bergner@vnet.ibm.com>
4750
4751         Revert
4752         2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
4753
4754         PR middle-end/PR28690
4755         * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
4756         same precedence as REG_POINTER and MEM_POINTER operands.
4757
4758 2008-04-08  Richard Guenther  <rguenther@suse.de>
4759
4760         PR middle-end/35834
4761         * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
4762         for adding index to base.
4763
4764 2008-04-08  Kai Tietz  <kai.tietz@onevision.com>
4765
4766         * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
4767         (MINGW_ENABLE_EXECUTE_STACK): New.
4768         (IN_LIBGCC2): For libgcc include windows.h file for
4769         function declarations.
4770
4771 2008-04-08  Hans-Peter Nilsson  <hp@axis.com>
4772
4773         * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
4774         and tem2 if tem1 is not a REG or MULT.
4775
4776 2008-04-08  Jan Hubicka  <jh@suse.cz>
4777
4778         * function.h (incomming_args): Break out of struct function.
4779         (function_subsections): Break out of struct function.
4780         (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
4781         return_rtx and hard_reg_initial_vals from struct function.
4782         Kill inl_max_label_num.
4783         (current_function_pops_args, current_function_args_info,
4784         current_function_args_size, current_function_args_size,
4785         current_function_pretend_args_size,
4786         current_function_outgoing_args_size,
4787         current_function_internal_arg_pointer, current_function_return_rtx):
4788         Kill compatibility accestor macros.
4789         * builtins.c (expand_builtin_apply_args_1): Update.
4790         (expand_builtin_next_arg): Update.
4791         * df-scan.c (df_get_call_refs): Update.
4792         * dbxout.c (dbxout_function_end): Update.
4793         * dwarf2out.c (dwarf2out_switch_text_section): Update.
4794         (output_line_info): Update.
4795         (secname_for_decl): Update.
4796         (dwarf2out_var_location): Update.
4797         * function.c (free_after_compilation): Update.
4798         (assign_parm_find_stack_rtl): Update.
4799         (assign_parms): Update.
4800         (expand_dummy_function_end): Update.
4801         (expand_function_end): Update.
4802         * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
4803         (expand_call): Update.
4804         (emit_library_call_value_1): Update.
4805         (store_one_arg): Update.
4806         * varasm.c (initialize_cold_section_name): Update.
4807         (unlikely_text_section): Update.
4808         (unlikely_text_section_p): Update.
4809         (assemble_start_function): Update.
4810         (assemble_end_function): Update.
4811         (default_section_type_flags): Update.
4812         (switch_to_section): Update.
4813         * integrate.c (set_decl_abstract_flags): Update.
4814         (get_hard_reg_initial_val): Update.
4815         (has_hard_reg_initial_val): Update.
4816         (allocate_initial_values): Update.
4817         * resource.c (init_resource_info): Update.
4818         * config/alpha/alpha.c (NUM_ARGS): Update.
4819         (direct_return): Update.
4820         (alpha_va_start): Update.
4821         (alpha_sa_size): Update.
4822         (alpha_initial_elimination_offset): Update.
4823         (alpha_expand_prologue): Update.
4824         (alpha_start_function): Update.
4825         (alpha_expand_epilogue): Update.
4826         (unicosmk_initial_elimination_offset):
4827         * config/alpha/alpha.md (call expander): Update.
4828         * config/s390/s390.c (s390_register_info): Update.
4829         (s390_register_info): Update.
4830         (s390_frame_info): Update.
4831         (s390_initial_elimination_offset): Update.
4832         (s390_build_builtin_va_list): Update.
4833         (s390_va_start): Update.
4834         * config/spu/spu.c (direct_return): Update.
4835         (spu_expand_prologue): Update.
4836         (spu_initial_elimination_offset): Update.
4837         (spu_build_builtin_va_list): Update.
4838         (spu_va_start): Update.
4839         * config/sparc/sparc.c (sparc_init_modes): Update.
4840         (sparc_compute_frame_size): Update.
4841         (function_value): Update.
4842         * config/m32r/m32r.c (m32r_compute_frame_size): Update.
4843         * config/i386/i386.md (return expander): Update.
4844         * config/i386/i386.c (ix86_va_start): Update.
4845         (ix86_can_use_return_insn_p): Update.
4846         (ix86_compute_frame_layout): Update.
4847         (ix86_expand_epilogue): Update.
4848         * config/sh/sh.c (output_stack_adjust): Update.
4849         (calc_live_regs): Update.
4850         (sh_expand_prologue): Update.
4851         (sh_builtin_saveregs): Update.
4852         (sh_va_start): Update.
4853         (initial_elimination_offset): Update.
4854         (sh_allocate_initial_value): Update.
4855         (sh_function_ok_for_sibcall): Update.
4856         (sh_get_pr_initial_val): Update.
4857         * config/sh/sh.md (return expander): Update.
4858         * config/avr/avr.c (frame_pointer_required_p): UPdate.
4859         * config/crx/crx.c (crx_compute_frame): UPdate.
4860         (crx_initial_elimination_offset): UPdate.
4861         * config/xtensa/xtensa.c (compute_frame_size): Update
4862         (xtensa_builtin_saveregs): Update.
4863         (xtensa_va_start): Update.
4864         (order_regs_for_local_alloc): Update.
4865         * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
4866         (xstormy16_expand_builtin_va_start): Update.
4867         * config/fr30/fr30.c (fr30_compute_frame_size): Update.
4868         * config/m68hc11/m68hc11.md (return expanders): Update.
4869         * config/m68hc11/m68hc11.c (expand_prologue): Update.
4870         (expand_epilogue): Update.
4871         * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
4872         (cris_simple_epilogue): Update.
4873         (cris_expand_prologue): Update.
4874         (cris_expand_epilogue): Update.
4875         * config/iq2000/iq2000.c (iq2000_va_start): Update.
4876         (compute_frame_size): Update.
4877         * config/mt/mt.c (mt_compute_frame_size): Update.
4878         * config/mn10300/mn10300.c (expand_prologue): Update.
4879         (expand_epilogue): Update.
4880         (initial_offset): Update.
4881         (mn10300_builtin_saveregs):
4882         * config/mn10300/mn10300.md (return expander): Update.
4883         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
4884         (ia64_initial_elimination_offset): Update.
4885         (ia64_initial_elimination_offset): Update.
4886         (ia64_expand_prologue): Update.
4887         * config/m68k/m68k.md (return expander): Update.
4888         * config/rs6000/rs6000.c (rs6000_va_start): Update.
4889         (rs6000_stack_info): Update.
4890         * config/mcore/mcore.c (layout_mcore_frame): Update.
4891         (mcore_expand_prolog): Update.
4892         * config/arc/arc.c (arc_compute_frame_size): Update.
4893         * config/score/score3.c (score3_compute_frame_size): Update.
4894         * config/score/score7.c (score7_compute_frame_size): Update.
4895         * config/arm/arm.c (use_return_insn): Update.
4896         (thumb_find_work_register): Update.
4897         (arm_compute_save_reg_mask): Update.
4898         (arm_output_function_prologue): Update.
4899         (arm_output_epilogue): Update.
4900         (arm_size_return_regs): Update.
4901         (arm_get_frame_offsets): Update.
4902         (arm_expand_prologue): Update.
4903         (thumb_exit): Update.
4904         (thumb_unexpanded_epilogue): Update.
4905         (thumb1_output_function_prologue): Update.
4906         * config/pa/pa.md (return expander): Update.
4907         * config/pa/pa.c (compute_frame_size): Update.
4908         (hppa_builtin_saveregs): Update.
4909         * config/mips/mips.c (mips_va_start): Update.
4910         (mips16_build_function_stub): Update.
4911         (mips_compute_frame_info): Update.
4912         (mips_restore_gp): Update.
4913         (mips_output_function_prologue): Update.
4914         (mips_expand_prologue): Update.
4915         * config/v850/v850.c (compute_frame_size): Update.
4916         (expand_prologue): * config/mmix/mmix.c (along): update.
4917         (mmix_initial_elimination_offset): update.
4918         (mmix_reorg): update.
4919         (mmix_use_simple_return): update.
4920         (mmix_expand_prologue): update.
4921         (mmix_expand_epilogue): Update.
4922         * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
4923         (emit_link_insn): Update.
4924
4925 2008-04-08  Anatoly Sokolov <aesok@post.ru>
4926
4927         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define 
4928         __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL 
4929         instructions.
4930         * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for 
4931         atmega103 device.
4932
4933 2008-04-07  Jan Hubicka  <jh@suse.cz>
4934
4935         * function.h (rtl): Rename to x_rtl.
4936         (crtl): New define.
4937         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
4938         frame_offset, stack_check_probe_note, arg_pointer_save_area,
4939         used_temp_slots avail_temp_slots, temp_slot_level,
4940         nonlocal_goto_handler_labels): Update accesstors.
4941         (rtl): New global variable.
4942         (struct function): Move some fileds to rtl_data.
4943         (get_arg_pointer_save_area): Update prototype.
4944         * builtins.c (expand_builtin_setjmp_receiver): Update call of
4945         get_arg_pointer_save_area.
4946         * expr.c (init_expr): Update
4947         * function.c (get_frame_size): Update
4948         (assign_stack_local): Update
4949         (expand_function_end): Update.
4950         (get_art_pointer_save_area): Update
4951         * function.h 
4952         * emit-rtl.c (rtl): Declare.
4953         (regno_reg_rtx): Declare.
4954         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
4955         Update.
4956         (gen_reg_rtx): Update.
4957         * varasm.c (n_deferred_constatns): Update accestor.
4958         (init_varasm_status): Do not allocate varasm_status.
4959         (force_const_mem, get_pool_size, output_constant_pool): Update.
4960         * stmt.c (force_label_rtx): Do not use x_ prefixes.
4961         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
4962         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
4963         * sparc/sparc.h (INIT_EXPANDERS): Update.
4964         * ia64/ia64.h (INIT_EXPANDERS): Update.
4965
4966 2008-04-07  James E. Wilson  <wilson@tuliptree.org>
4967
4968         * reload.c (push_secondary_reload): Add missing break to for loop.
4969
4970 2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
4971
4972         PR middle-end/PR28690
4973         * rtlanal.c: Update copyright years.
4974         (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
4975         as REG_POINTER and MEM_POINTER operands.
4976         * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
4977         (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
4978         * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
4979         * gcse.c: Update copyright years.
4980         (pre_delete): Call gen_reg_rtx_and_attrs.
4981         (hoist_code): Likewise.
4982         (build_store_vectors): Likewise.
4983         (delete_store): Likewise.
4984         * loop-invariant.c (move_invariant_reg): Likewise.
4985         Update copyright years.
4986
4987 2008-04-07  Uros Bizjak  <ubizjak@gmail.com>
4988
4989         * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
4990         control string instead of quoted.
4991
4992 2008-04-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
4993
4994         * doc/rtl.texi: Rewrite of subreg section.
4995
4996 2008-04-07  Kai Tietz  <kai.tietz@onevision.com>
4997
4998         PR/35842
4999         * config/i386/i386.c (legitimize_pic_address): Add treating
5000         of dllimport SYM_REF's.
5001         (legitimize_dllimport_symbol): Add prototype.
5002
5003 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
5004
5005         * fold-const.c (fold) <ARRAY_REF>: New case.  Try to fold constant
5006         reference in constructor with non self-referential type.
5007
5008 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
5009
5010         Removal of Return with Depressed Stack Pointer support
5011         * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
5012         (ECF_SP_DEPRESSED): Likewise.
5013         (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
5014         * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
5015         (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
5016         (expand_call): Do not test ECF_SP_DEPRESSED.
5017         * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
5018         * function.c (keep_stack_depressed): Delete.
5019         (handle_epilogue_set): Likewise.
5020         (update_epilogue_consts): Likewise.
5021         (emit_equiv_load): Likewise.
5022         (thread_prologue_and_epilogue_insns): Remove support for Return with
5023         Depressed Stack Pointer.
5024         * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
5025
5026 2008-04-06  Richard Guenther  <rguenther@suse.de>
5027
5028         PR tree-optimization/35400
5029         * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
5030         information from SSA_NAMEs.
5031
5032 2008-04-06  Anatoly Sokolov <aesok@post.ru>
5033
5034         * config/avr/avr.h (avr_mega_p): Remove declaration.
5035         (AVR_MEGA): Remove macro.
5036         * config/avr/avr.c (avr_mega_p): Remove variable.
5037         (avr_override_options): Remove inicializion of avr_mega_p.
5038         Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
5039         (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
5040         (avr_jump_mode): (Ditto.).
5041         (avr_output_progmem_section_asm_op): (Ditto.).
5042         (avr_asm_init_sections): (Ditto.).
5043         (avr_asm_init_sections): (Ditto.).
5044         (avr_rtx_costs): (Ditto.).
5045         * config/avr/avr.md: (Ditto.).
5046         * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of 
5047         '__AVR_MEGA__'.
5048
5049 2008-04-06  Richard Guenther  <rguenther@suse.de>
5050
5051         PR tree-optimization/35842
5052         * tree-ssa-address.c (fixed_address_object_p): Adjust to match
5053         is_gimple_invariant_address.
5054
5055 2008-04-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
5056
5057         * gcc.c (default_compilers): Sync Fortran extensions list with
5058         that in fortran/lang-specs.h.
5059         * doc/invoke.texi: Likewise.
5060         * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
5061         * dwarf2out.c (gen_compile_unit_die): Likewise.
5062
5063 2008-04-06  Tom G. Christensen  <tgc@jupiterrise.com>
5064
5065         * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
5066
5067 2008-04-05  Uros Bizjak  <ubizjak@gmail.com>
5068
5069         PR target/12329
5070         * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
5071         attribute is used for nested functions.
5072
5073 2008-04-05  Jan Hubicka  <jh@suse.cz>
5074
5075         * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
5076
5077         * tree-dump.c (dump_enable_all): Remove prototype; do not accept
5078         letter argument.
5079         (dump_files): Update.
5080         (enable_rtl_dump_file): Do not accept letter argument.
5081         * tree-pass.h (dump_file_info): Remove letter argument.
5082         * toplev.c (decode_d_option): Update -da handling.
5083         * toplev.h (enable_rtl_dump_file): Update prototype.
5084         * passes.c (register_one_dump_file): Do not accept IPA argument; work
5085         it out based on pass type.
5086         (register_dump_files_1): Likewise.
5087         (init_optimization_passes): Update register_one_dump_file calls.
5088         (execute_one_pass): Sanity check that IPA passes are called at IPA
5089         level and RTL passes at RTL level.
5090         (execute_pass_list): IPA pass can not be after or subpass of
5091         GIMPLE/RTL pass.
5092         (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
5093         disallov RTL subpasses of IPA subpasses.
5094
5095 2008-04-05  Ben Elliston  <bje@au.ibm.com>
5096
5097         * tree-cfg.c (need_fake_edge_p): Return false for calls to
5098         builtins that return exactly once and do not throw. Cache call to
5099         call_expr_flags.
5100
5101 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
5102
5103         PR rtl-optimization/34916
5104         PR middle-end/35519
5105         * combine.c (create_log_links): Do not create duplicate LOG_LINKS
5106         between instruction pairs.
5107
5108 2008-04-04  Naveen.H.S  <naveen.hs@kpitcummins.com>
5109
5110         * doc/invoke.texi: Document -mbitops for SH.
5111         * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
5112         * config/sh/predicates.md (bitwise_memory_operand): New predicate.
5113         * config/sh/sh.c (print_operand): Add %t operand code.
5114         * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
5115         * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
5116         (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
5117         (extendqihi2): Likewise.
5118         (movqi_i): Likewise.
5119         (insv): Use bset, bclr and bst instructions for SH2A if possible.
5120         (extv): Use bld instruction for SH2A if possible.
5121         (extzv): Likewise.
5122         (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
5123         bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
5124         bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
5125         (bset.b, bclr.b): Define peepholes.
5126         * config/sh/sh.opt (mbitops): New option.
5127
5128 2008-04-04  Janis Johnson  <janis187@us.ibm.com>
5129
5130         PR target/35620
5131         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
5132         and view convert expression.
5133
5134 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
5135
5136         PR target/35364
5137         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
5138
5139 2008-04-04  H.J. Lu  <hongjiu.lu@intel.com>
5140
5141         * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
5142
5143         * config/i386/cpuid.h (bit_AES): New.
5144         (bit_PCLMUL): Likewise.
5145
5146         * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
5147         (override_options): Handle PTA_AES and PTA_PCLMUL.  Enable
5148         SSE2 if AES or PCLMUL is enabled.
5149         (ix86_builtins): Add IX86_BUILTIN_AESENC128,
5150         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
5151         IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
5152         IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
5153         (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
5154         (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
5155         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
5156         IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
5157         (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
5158         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
5159         __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
5160         __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
5161         __builtin_ia32_aeskeygenassist128 and
5162         __builtin_ia32_pclmulqdq128.
5163         * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
5164         (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
5165         IX86_BUILTIN_PSRLDQI128.  Handle IX86_BUILTIN_AESKEYGENASSIST128.
5166
5167         * config/i386/i386.h (TARGET_AES): New.
5168         (TARGET_PCLMUL): Likewise.
5169         (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
5170
5171         * config/i386/i386.md (UNSPEC_AESENC): New.
5172         (UNSPEC_AESENCLAST): Likewise.
5173         (UNSPEC_AESDEC): Likewise.
5174         (UNSPEC_AESDECLAST): Likewise.
5175         (UNSPEC_AESIMC): Likewise.
5176         (UNSPEC_AESKEYGENASSIST): Likewise.
5177         (UNSPEC_PCLMUL): Likewise.
5178
5179         * config/i386/i386.opt (maes): New.
5180         (mpclmul): Likewise.
5181
5182         * config/i386/sse.md (aesenc): New pattern.
5183         (aesenclast): Likewise.
5184         (aesdec): Likewise.
5185         (aesdeclast): Likewise.
5186         (aesimc): Likewise.
5187         (aeskeygenassist): Likewise.
5188         (pclmulqdq): Likewise.
5189
5190         * config/i386/wmmintrin.h: New.
5191
5192         * doc/extend.texi: Document AES and PCLMUL built-in function.
5193
5194         * doc/invoke.texi: Document -maes and -mpclmul.
5195
5196 2008-04-04  Paolo Bonzini  <bonzini@gnu.org>
5197
5198         * function.c (free_after_parsing): Replace with
5199         cxx_push_function_context from C++ front-end.
5200         (allocate_struct_function): Don't call langhook.
5201         * langhooks.h (struct lang_hooks_for_functions): Delete.
5202         (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
5203         member "function".
5204         * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
5205         (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
5206         LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
5207         LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
5208         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
5209         remove LANG_HOOKS_FUNCTION_INITIALIZER.
5210         * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
5211
5212         * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
5213         Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
5214         
5215 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
5216
5217         PR c/35440
5218         * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
5219         for all types.
5220
5221 2008-04-04  Richard Guenther  <rguenther@suse.de>
5222
5223         PR middle-end/35823
5224         * fold-const.c (optimize_minmax_comparison): Use the correct
5225         type for the constant in the simplified comparison.
5226
5227 2008-04-04  Zuxy Meng <zuxy.meng@gmail.com>
5228
5229         * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
5230         Pass L2 size as "--param l2-cache-size" to the compiler.
5231         (decode_l2_cache): New function to decode L2 cache parameters using
5232         0x8000006 extended cpuid function.
5233         (detect_caches_amd): Determine parameters of L2 cache using
5234         decode_l2_caches function.
5235         (decode_caches_intel): Decode L2 cache parameters.
5236         (detect_caches_intel): Determine L2 cache parameters using
5237         decode_caches_intel and decode_l2_caches functions.
5238
5239 2008-04-03  Bob Wilson  <bob.wilson@acm.org>
5240
5241         * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
5242         secondary input reload for subword loads from the constant pool.
5243
5244 2008-04-03  Janis Johnson  <janis187@us.ibm.com>
5245
5246         PR target/35713
5247         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
5248           constants of the appropriate size for runtime calculations.
5249
5250         PR c/35712
5251         * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
5252           decimal-float literal constant zero.
5253
5254 2008-04-03  Jakub Jelinek  <jakub@redhat.com>
5255
5256         PR c/35738
5257         * c-parser.c (c_parser_omp_atomic): Call
5258         default_function_array_conversion on the RHS.
5259
5260         PR middle-end/35818
5261         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
5262         call is_variable_sized if decl has incomplete type.
5263
5264 2008-04-03  H.J. Lu  <hongjiu.lu@intel.com>
5265
5266         * config/i386/i386-protos.h (ix86_aligned_p): Removed.
5267
5268 2008-04-03  Adam Nemet  <anemet@caviumnetworks.com>
5269
5270         * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
5271         iterators.
5272         (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and leu.
5273         (sgt<u>): Merge sgt and sgtu into new expander.
5274         (sgt, sgtu): Remove expanders.
5275         (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new pattern.
5276         (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
5277         (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
5278         *sgtu_<mode>_mips16 into new pattern.
5279         (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
5280         (sge<u>): Merge sge and sgeu into new expander.
5281         (sge, sgeu): Remove expanders.
5282         (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
5283         new pattern.
5284         (*sge_<mode>, second *sge_<mode>): Remove patterns.
5285         (slt<u>): Merge slt and sltu into new expander.
5286         (slt, sltu): Remove expanders.
5287         (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new pattern.
5288         (*slt_<mode>, *sltu_<mode>): Remove patterns.
5289         (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
5290         *sltu_<mode>_mips16 into new pattern.
5291         (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
5292         (sle<u>): Merge sle and sleu into new expander.
5293         (sle, sleu): Remove expanders.
5294         (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new pattern.
5295         (*sle_<mode>, *sleu_<mode>): Remove patterns.
5296         (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
5297         *sleu_<mode>_mips16 into new pattern.
5298         (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
5299
5300 2008-04-03  Jan Hubicka  <jh@suse.cz>
5301
5302         PR tree-optimization/35795
5303         * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
5304         * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
5305         * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
5306         * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
5307         * score/score3.c (score3_output_mi_thunk): Likewise.
5308         * score/score7.c (score7_output_mi_thunk): Likewise.
5309         * mips/mips.c (mips_output_mi_thunk): Likewise.
5310
5311 2008-04-03  Richard Guenther  <rguenther@suse.de>
5312
5313         * tree-vrp.c (extract_range_from_unary_expr): Handle all
5314         conversions.  Simplify code.
5315
5316 2008-04-03  Kaz Kojima  <kkojima@gcc.gnu.org>
5317
5318         * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
5319
5320 2008-04-03  Tom Tromey  <tromey@redhat.com>
5321             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5322
5323         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
5324         * config/bfin/t-bfin-linux (generated_files): Add
5325         linux-sysroot-suffix.h.
5326         * doc/install.texi (Prerequisites): Require make 3.80.
5327         * doc/sourcebuild.texi (Front End Directory): Document new
5328         variable.
5329         * Makefile.in (generated_files): New variable.
5330         (ALL_HOST_OBJS): New variable.
5331         ($(ALL_HOST_OBJS)): New target.
5332
5333 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
5334
5335         * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
5336         (remap_block): Call id->transform_lang_insert_block instead
5337         of langhook.
5338         (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
5339         Set id.transform_lang_insert_block to NULL.
5340         (clone_body): Move to cp/optimize.c
5341         * tree-inline.h (struct copy_body_data): Change
5342         transform_lang_insert_block to function pointer.
5343         (copy_generic_body, copy_decl_no_change): Export.
5344         * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
5345         * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
5346         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
5347
5348         * c-tree.h (insert_block): Kill.
5349         * c-decl.c (insert_block): Kill.
5350
5351 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
5352
5353         * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
5354         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
5355         * c-tree.h (c_push_function_context, c_pop_function_context): Remove
5356         argument.
5357         * c-decl.c (c_push_function_context, c_pop_function_context): Remove
5358         argument, call {push,pop}_function_context from here.
5359         * c-parser.c: Use c_{push,pop}_function_context.
5360
5361         * function.c (push_function_context_to): Move meat ...
5362         (push_function_context): ... here.  Simplify.
5363         * function.c (pop_function_context_from): Move meat ...
5364         (pop_function_context): ... here.  Simplify.
5365         * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
5366         leave_nested).
5367         * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
5368         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
5369         (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
5370         * tree.h (push_function_context_to, pop_function_context_from): Remove.
5371
5372 2008-04-03  Ben Elliston  <bje@au.ibm.com>
5373
5374         * expmed.c (extract_force_align_mem_bit_field): Remove.
5375
5376 2008-04-03  Richard Guenther  <rguenther@suse.de>
5377
5378         PR middle-end/35800
5379         * expr.h (try_casesi): Adjust prototype.
5380         * expr.c (try_casesi): Take fallback label as extra parameter.
5381         Use that for gen_casesi if default_label is NULL.
5382         * stmt.c (expand_case): Pass fallback label to try_casesi,
5383         make sure to fill gaps with a fallback label if default_label
5384         is not present.
5385
5386 2008-04-03  Dominique d'Humieres <dominiq@lps.ens.fr>
5387
5388         PR target/35801
5389         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
5390
5391 2008-04-03  Ben Elliston  <bje@au.ibm.com>
5392
5393         * expmed.c (extract_split_bit_field): Remove if (0) code.
5394         * tree-ssa-structalias.c (do_sd_constraint): Likewise.
5395         (do_ds_constraint): Likewise.
5396
5397 2008-04-02  Joseph Myers  <joseph@codesourcery.com>
5398
5399         * doc/cppopts.texi (-dU): Document.
5400         * c-common.h (flag_dump_macros): Update comment.
5401         * c-opts.c (handle_OPT_d): Handle -dU.
5402         * c-ppoutput.c (macro_queue, define_queue, undef_queue,
5403         dump_queued_macros, cb_used_define, cb_used_undef): New.
5404         (init_pp_output): Handle -dU.
5405         (cb_line_change): Call dump_queued_macros.
5406         * toplev.c (decode_d_option): Accept -dU as preprocessor option.
5407
5408 2008-04-02  Anatoly Sokolov <aesok@post.ru>
5409
5410         * config/avr/predicates.md (io_address_operand): New predicate. 
5411         * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
5412         * config/avr/avr.c (avr_io_address_p): Remove function.
5413         (out_movqi_r_mr): Use 'io_address_operand' predicate instead of 
5414         'avr_io_address_p' function.
5415         (out_movhi_r_mr): (Ditto.).
5416         (out_movqi_mr_r): (Ditto.).
5417         (out_movhi_mr_r): (Ditto.).
5418         (avr_address_cost): (Ditto.).
5419
5420 2008-04-02  Uros Bizjak  <ubizjak@gmail.com>
5421
5422         * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
5423         Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
5424         in 32bit mode when XMM registers are available to avoid store
5425         forwarding stalls.
5426         (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
5427         corresponding post-reload splitters.
5428
5429 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
5430
5431         * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
5432         and __builtin_ia32_shufpd.  Provide __builtin_ia32_roundsd and
5433         __builtin_ia32_roundss.
5434         (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
5435         __builtin_ia32_shufpd, __builtin_ia32_roundsd and
5436         __builtin_ia32_roundss.
5437         (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
5438         IX86_BUILTIN_SHUFPD here.
5439
5440 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
5441
5442         * config/i386/i386.md (plogic): New.
5443         (plogicprefix): Likewise.
5444
5445         * config/i386/mmx.md (mmx_<code><mode>3): New.
5446         (mmx_and<mode>3): Removed.
5447         (mmx_ior<mode>3): Likewise.
5448         (mmx_xor<mode>3): Likewise.
5449
5450         * config/i386/sse.md (<code><mode>3): New.
5451         (*<code><mode>3): Likewise.
5452         (*<code><mode>3): Likewise.
5453         (<code><mode>3): Likewise.
5454         (*sse_<code><mode>3): Likewise.
5455         (*sse2_<code><mode>3): Likewise.
5456         (<code>tf3): Likewise.
5457         (*<code>tf3): Likewise.
5458         (and<mode>3): Likewise.
5459         (*and<mode>3): Likewise.
5460         (ior<mode>3): Removed.
5461         (*ior<mode>3): Likewise.
5462         (xor<mode>3): Likewise.
5463         (*xor<mode>3): Likewise.
5464         (*and<mode>3): Likewise.
5465         (*ior<mode>3): Likewise.
5466         (*xor<mode>3): Likewise.
5467         (and<mode>3): Likewise.
5468         (*sse_and<mode>3): Likewise.
5469         (*sse2_and<mode>3): Likewise.
5470         (andtf3): Likewise.
5471         (*andtf3): Likewise.
5472         (ior<mode>3): Likewise.
5473         (*sse_ior<mode>3): Likewise.
5474         (*sse2_ior<mode>3): Likewise.
5475         (iortf3): Likewise.
5476         (*iortf3): Likewise.
5477         (xor<mode>3): Likewise.
5478         (*sse_xor<mode>3): Likewise.
5479         (*sse2_xor<mode>3): Likewise.
5480         (xortf3): Likewise.
5481         (*xortf3): Likewise.
5482
5483 2008-04-02  Richard Guenther  <rguenther@suse.de>
5484
5485         PR tree-optimization/14495
5486         PR tree-optimization/34793
5487         * tree-vrp.c (struct switch_update): New structure.
5488         (to_remove_edges, to_update_switch_stmts): New VECs.
5489         (simplify_switch_using_ranges): New function.  Remove not taken
5490         case labels and edges.
5491         (simplify_stmt_using_ranges): Call it.
5492         (identify_jump_threads): Mark edges we have queued for removal
5493         so we don't thread them.
5494         (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
5495         case label vector.
5496         * tree-cfg.c (group_case_labels): Deal with missing default label.
5497         (tree_verify_flow_info): Allow missing default label.
5498         * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
5499         (emit_case_nodes): Likewise.
5500         (expand_case): Do not rely on the default label to be present.
5501         * expr.c (try_casesi): Deal with NULL default_label.
5502         (do_tablejump): Likewise.
5503
5504 2008-04-02  Richard Guenther  <rguenther@suse.de>
5505
5506         PR tree-optimization/14495
5507         * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
5508         SWITCH_EXPR here ...
5509         (vrp_visit_switch_stmt): ... but here (new function).
5510         (find_case_label_index): New helper function.
5511         (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
5512
5513 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
5514
5515         * fwprop.c: Fix ISO-C99ism.
5516
5517 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
5518
5519         PR bootstrap/35752
5520         * Makefile.in (objdir): Set it here.
5521         * configure.ac: Not here.  Find dynamic linker characteristics.
5522         * exec-tool.in: Use them.
5523         * aclocal.m4: Regenerate.
5524         * configure: Regenerate.
5525
5526 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
5527
5528         * expr.c (expand_var): Delete it.
5529         * expr.h (expand_var): Delete prototype.
5530         * function.c (expand_function_start): Use expand_decl instead.
5531         * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
5532         langhook.
5533
5534 2008-04-02  Andy Hutchinson <hutchinsonamdy@aim.com>
5535
5536         PR rtl-optimization/35542
5537         * fwprop.c (forward_propagate_and_simplify): Replace
5538         loc_reg_mentioned_in_p with reg_mentioned_p.
5539
5540 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
5541
5542         PR rtl-optimization/35281
5543         * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
5544         (propagate_rtx_1): Handle PR_HANDLE_MEM.
5545         (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
5546         (varying_mem_p): Move above propagate_rtx.
5547         (all_uses_available_at): Do not check MEMs.
5548
5549 2008-04-02  Rafael Espindola  <espindola@google.com>
5550
5551         * tree-vrp.c (extract_code_and_val_from_cond): Remove.
5552         (register_edge_assert_for_2): Split the cond argument.
5553         (register_edge_assert_for_1): Adjust for the change in
5554         register_edge_assert_for_2.
5555         (register_edge_assert_for): Split the cond argument.
5556         (find_switch_asserts): Adjust for the change in
5557         register_edge_assert_for.
5558
5559 2008-04-02  Kai Tietz  <kai.tietz@onevision.com>
5560
5561         * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
5562         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
5563         offsets for 64-bit mingw.
5564         * config/i386/i386.c (ix86_pass_by_reference): Correct calling
5565         abi for x86_64-pc-mingw.
5566
5567 2008-04-02  Richard Guenther  <rguenther@suse.de>
5568
5569         * tree-vrp.c (extract_range_from_assert): Make sure to not
5570         produce range min/max with TREE_OVERFOW set.
5571         If merging a anti-range and a range keep the anti-range if
5572         the range covers all values of the type.
5573         (register_edge_assert_for_2): Only allow sign-changing
5574         conversions in detecting canonical range checks.  Also
5575         register an assert for the unsigned name if useful.
5576
5577         PR tree-optimization/35787
5578         * tree-vrp.c (vrp_val_max): New function.
5579         (vrp_val_min): Likewise.
5580         (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
5581         (vrp_val_is_min): Likewise.
5582         (supports_overflow_infinity): Use vrp_val_{min,max}.
5583         (negative_overflow_infinity): Likewise.
5584         (positive_overflow_infinity): Likewise.
5585         (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
5586         (is_positive_overflow_infinity): Likewise.
5587         (is_overflow_infinity): Likewise.
5588         (avoid_overflow_infinity): Use vrp_val_{min,max} and
5589         vrp_val_is_{min,max}.
5590         (set_and_canonicalize_value_range): Canonicalize anti-ranges
5591         to ranges if possible.  Avoid empty ranges.
5592
5593 2008-04-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5594
5595         PR middle-end/35705
5596         * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
5597         the expression is a function address.
5598
5599 2008-04-01  George Helffrich  <george@gcc.gnu.org>
5600
5601         PR fortran/35154, fortran/23057
5602         * dbxout.c: Emit .stabs debug info for Fortran COMMON block
5603         variables as base symbol name + offset using N_BCOMM/N_ECOMM.
5604         (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
5605         (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
5606         in common.
5607         (dbxout_syms): Check for COMMON-based symbol and wrap in
5608         N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
5609         in bracket for efficiency.
5610
5611         * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
5612         using DW_TAG_common_block + member offset.
5613         (add_pubname_string): New function.
5614         (dw_expand_expr): New function to find block name and offset for
5615         COMMON var.
5616         (common_check): New function to check whether symbol in Fortran COMMON.
5617         (gen_variable_die): If COMMON, use DW_TAG_common_block.
5618
5619 2008-04-01  Volker Reichelt  <v.reichelt@netcologne.de>
5620
5621         PR c/35436
5622         * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
5623
5624 2008-04-02  Ben Elliston  <bje@au.ibm.com>
5625
5626         * config/v850/v850.md (casesi): Remove if (0) code.
5627         * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
5628         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
5629
5630 2008-04-01  Uros Bizjak  <ubizjak@gmail.com>
5631
5632         * config/i386/i386.md (rex64suffix): New mode attribute.
5633         (floathi<mode>2): Disable expander for SSE math.
5634         (*floathi<mode>2_1): New insn insn_and_split pattern.
5635         (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
5636         corresponding post-reload splitters.
5637         (*floathi<mode>2_i387): New macroized insn pattern.
5638         (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
5639         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
5640         insn_and_split pattern.
5641         (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
5642         New macroized instruction patterns and corresponding post-reload
5643         splitters.
5644         (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
5645         and corresponding post-reload splitters.
5646         (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
5647         New macroized instruction patterns.
5648         (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
5649         macroized instruction patterns and corresponding post-reload splitters.
5650         (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
5651         corresponding post-reload splitters.
5652         (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
5653         New macroized instruction patterns.
5654         (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
5655         corresponding post-reload splitters.
5656         (*floatsi<mode>2_i387): New macroized instruction patterns.
5657
5658 2008-04-01  H.J. Lu  <hongjiu.lu@intel.com>
5659
5660         * config/i386/i386.md (smaxmin): New.
5661         (umaxmin): Likewise.
5662         (maxminiprefix): Likewise.
5663         (maxminfprefix): Likewise.
5664         (<code><mode>3): Likewise.
5665         (smin<mode>3): Removed.
5666         (smax<mode>3): Likewise.
5667
5668         * config/i386/mmx.md (mmx_<code>v2sf3): New.
5669         (mmx_<code>v4hi3): Likewise.
5670         (mmx_<code>v8qi3): Likewise.
5671         (mmx_smaxv2sf3): Removed.
5672         (mmx_sminv2sf3): Likewise.
5673         (mmx_umaxv8qi3): Likewise.
5674         (mmx_smaxv4hi3): Likewise.
5675         (mmx_uminv8qi3): Likewise.
5676         (mmx_sminv4hi3): Likewise.
5677
5678         * config/i386/sse.md (<addsub><mode>3): New.
5679         (*<addsub><mode>3): Likewise.
5680         (<sse>_vm<addsub><mode>3): Likewise.
5681         (<maxmin><mode>3): Likewise.
5682         (*<maxmin><mode>3_finite): Likewise.
5683         (*<maxmin><mode>3): Likewise.
5684         (<sse>_vm<maxmin><mode>3): Likewise.
5685         (sse3_h<addsub>v4sf3): Likewise.
5686         (sse3_h<addsub>v2df3): Likewise.
5687         (<maxmin>v16qi3): Likewise.
5688         (*<maxmin>v16qi3): Likewise.
5689         (<maxmin>v8hi3): Likewise.
5690         (*<maxmin>v8hi3): Likewise.
5691         (*sse4_1_<maxmin><mode>3): Likewise.
5692         (*sse4_1_<maxmin><mode>3): Likewise.
5693         (add<mode>3): Removed.
5694         (*add<mode>3): Likewise.
5695         (<sse>_vmadd<mode>3): Likewise.
5696         (sub<mode>3): Likewise.
5697         (*sub<mode>3): Likewise.
5698         (<sse>_vmsub<mode>3): Likewise.
5699         (smin<mode>3): Likewise.
5700         (*smin<mode>3_finite): Likewise.
5701         (*smin<mode>3): Likewise.
5702         (<sse>_vmsmin<mode>3): Likewise.
5703         (smax<mode>3): Likewise.
5704         (*smax<mode>3_finite): Likewise.
5705         (*smax<mode>3): Likewise.
5706         (<sse>_vmsmax<mode>3): Likewise.
5707         (sse3_haddv4sf3): Likewise.
5708         (sse3_haddv2df3): Likewise.
5709         (sse3_hsubv4sf3): Likewise.
5710         (sse3_hsubv2df3): Likewise.
5711         (umaxv16qi3): Likewise.
5712         (*umaxv16qi3): Likewise.
5713         (smaxv8hi3): Likewise.
5714         (*smaxv8hi3): Likewise.
5715         (*sse4_1_smax<mode>3): Likewise.
5716         (*sse4_1_umax<mode>3): Likewise.
5717         (uminv16qi3): Likewise.
5718         (*uminv16qi3): Likewise.
5719         (sminv8hi3): Likewise.
5720         (*sminv8hi3): Likewise.
5721         (*sse4_1_smin<mode>3): Likewise.
5722         (*sse4_1_umin<mode>3): Likewise.
5723
5724 2008-04-01  Rafael Espindola  <espindola@google.com>
5725
5726         * tree-cfg.c (verify_expr): remove in_phi.
5727         (verify_stmt): Don't call walk_tree with verify_expr. Use
5728         is_gimple_min_invariant instead of is_gimple_val.
5729
5730 2008-04-01  Joseph Myers  <joseph@codesourcery.com>
5731
5732         * doc/include/gpl_v3.texi: Update for manpage generation.
5733         * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
5734         gpl.texi.
5735         * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
5736         * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
5737         gpl_v3.texi instead of gpl.texi.
5738         (gpl.pod): New.
5739
5740 2008-04-01  Jakub Jelinek  <jakub@redhat.com>
5741
5742         PR pch/13675
5743         * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
5744
5745 2008-04-01  Rafael Espindola  <espindola@google.com>
5746
5747         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
5748         (extract_code_and_val_from_cond): Use
5749         extract_code_and_val_from_cond_with_ops.
5750
5751 2008-04-01  Jan Hubicka  <jh@suse.cz>
5752
5753         * function.c (free_after_compilation): Free epilogue_delay_list.
5754         (prepare_function_start): Assert that previous compilation was freed.
5755
5756 2008-04-01  Jan Hubicka  <jh@suse.cz>
5757             Jim Wilson  <wilson@tuliptree.org>
5758             Andreas Tobler <andreast@gcc.gnu.org>
5759
5760         PR middle-end/35781
5761         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
5762         rtl.emit instead cfun->emit.
5763         * sparc/sparc.h (INIT_EXPANDERS): Likewise.
5764         * ia64/ia64.h (INIT_EXPANDERS): Likewise.
5765
5766 2008-04-01  Ben Elliston  <bje@au.ibm.com>
5767
5768         * doc/c-tree.texi (Function Basics): Fix grammatical error.
5769
5770 2008-03-31  Seongbae Park <seongbae.park@gmail.com>
5771
5772         * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
5773         New options
5774         (fprofile-use): Add var flag_profile_use
5775         * coverage.c (coverage_begin_output): Do not open a gcno file for
5776         output only if -ftest-coverage is set.
5777         Do not add getpwd() to gcda file path.
5778         (build_gcov_info): Check the new flag
5779         flag_profile_datafile_relative_path.
5780         (coverage_init): Use profile_data_prefix.
5781         Read profile counter only if flag_profile_use is set.
5782         * opts.c (common_handle_option): New option fprofile-use=,
5783         fprofile-dir=, fprofile-generate=.
5784         * toplev.c (profile_data_prefix): New variable definition.
5785         * toplev.h (profile_data_prefix): New declaration.
5786         * doc/invoke.tex (Option Summary, Optimization Options):
5787         Add new options.
5788
5789 2008-03-31  James E. Wilson  <wilson@tuliptree.org>
5790
5791         * varasm.c (output_constant_pool_1): In LABEL_REF check,
5792         use tmp consistently.
5793
5794         PR target/35695
5795         * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
5796         * config/ia64/ia64.c (rtx_needs_barrier): Handle
5797         UNSPEC_FR_RECIP_APPROX_RES.
5798         * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
5799
5800 2008-03-31  Volker Reichelt  <v.reichelt@netcologne.de>
5801
5802         PR c/35750
5803         * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
5804
5805 2008-03-31  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5806
5807         PR middle-end/30186
5808         * fold-const.c (fold_indirect_ref_1): Support accessing non first
5809         element of the vector via a pointer.
5810
5811 2008-03-31  Ian Lance Taylor  <iant@google.com>
5812
5813         * tlink.c (scan_linker_output): Look for symbol name in single quotes.
5814
5815 2008-03-31  Jan Hubicka  <jh@suse.cz>
5816
5817         * builtins.c (expand_builtin_setjmp_receiver): Update call of
5818         get_arg_pointer_save_area.
5819         * expr.c (init_expr): Just clear out rtl.expr.
5820         * function.c (free_after_compilation): Clear out whole RTL structure.
5821         (get_func_frame_size): Merge into ...
5822         (get_frame_size): ... this one.
5823         (assign_stack_local_1): Merge into ...
5824         (assign_stack_local): ... this one.
5825         (expand_function_end): Update call of get_arg_pointer_save_area.
5826         (get_art_pointer_save_area): Remove cfun argument.
5827         * function.h (emit_status): regno_pointer_align does not need length
5828         attribute. Move x_regno_reg_rtx to ...
5829         (regno_reg_rtx): ... new global array.
5830         (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
5831         (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
5832         apply_args_value, forced_labels, stack_pointer_delta):
5833         Update accestors.
5834         (struct varasm_status): Move here from varasm.c
5835         (struct rtl_data): New. Move here some fields from struct function.
5836         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
5837         frame_offset, stack_check_probe_note, arg_pointer_save_area,
5838         used_temp_slots avail_temp_slots, temp_slot_level,
5839         nonlocal_goto_handler_labels): Update accesstors.
5840         (rtl): New global variable.
5841         (struct function): Move some fileds to rtl_data.
5842         (get_arg_pointer_save_area): Update prototype.
5843         * emit-rtl.c (rtl): Declare.
5844         (regno_reg_rtx): Declare.
5845         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
5846         Update.
5847         (gen_reg_rtx): Update.
5848         (init_virtual_regs): Do not tate emit_status argument.
5849         (init_emit): Do not allocate emit.
5850         * varasm.c (varasm_statuc): Move to function.h.
5851         (n_deferred_constatns): Update accestor.
5852         (init_varasm_status): Do not allocate varasm_status.
5853         (force_const_mem, get_pool_size, output_constant_pool): Update.
5854         * stmt.c (force_label_rtx): Do not use x_ prefixes.
5855         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
5856
5857 2008-03-31  Zdenek Dvorak  <ook@ucw.cz>
5858
5859         PR rtl-optimization/35729
5860         * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
5861         references.
5862
5863 2008-03-31  H.J. Lu  <hongjiu.lu@intel.com>
5864
5865         PR target/32000
5866         * config/i386/i386.md (*movti_internal): Emit unaligned SSE
5867         load/store if memory is unaligned.
5868         (*movti_rex64): Likewise.
5869
5870         * config/i386/predicates.md (misaligned_operand): New.
5871
5872 2008-03-31  Andrew Pinski  <pinskia@gmail.com>
5873
5874         PR tree-opt/35431
5875         * tree-ssa-phiopt.c (conditional_replacement): Return early for
5876         complex types.
5877
5878 2008-03-31  Jan Beulich  <jbeulich@novell.com>
5879
5880         * config/ia64/constraints.md: Add 'j' constraint.
5881         * config/ia64/ia64.md (movsi_internal): Add addp4 case.
5882         (movdi_internal): Likewise.
5883
5884 2008-03-30  Volker Reichelt  <v.reichelt@netcologne.de>
5885
5886         PR c/35748
5887         * c-typeck.c (build_c_cast): Skip invalid fields in unions.
5888
5889 2008-03-30  H.J. Lu  <hongjiu.lu@intel.com>
5890
5891         PR target/35757
5892         * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
5893         proper error message for the third argument on blendpd and
5894         blendps.
5895
5896         * config/i386/sse.md (blendbits): New.
5897         (sse4_1_blendp<ssemodesuffixf2c>): Use it.
5898
5899 2008-03-30  Eric Botcazou  <ebotcazou@adacore.com>
5900
5901         * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
5902
5903 2008-03-30  Richard Guenther  <rguenther@suse.de>
5904
5905         PR middle-end/31023
5906         * fold-const.c (fold_sign_changed_comparison): Do leave
5907         conversions to base-types alone.
5908
5909 2008-03-29  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5910
5911         * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
5912         the link register if one altivec register is be saved.
5913
5914 2008-03-30  Ben Elliston  <bje@au.ibm.com>
5915
5916         * final.c (final_scan_insn): Remove if (0) code.
5917
5918 2008-03-28  Volker Reichelt  <v.reichelt@netcologne.de>
5919
5920         * c-parser.c (c_parser_next_token_is_keyword): Simplify.
5921
5922 2008-03-28  H.J. Lu  <hongjiu.lu@intel.com>
5923
5924         * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
5925         of V4SFmode to ix86_binary_operator_ok.
5926
5927 2008-03-28  Uros Bizjak  <ubizjak@gmail.com>
5928
5929         * config/i386/i386.c (override_options): Initialize
5930         ix86_veclib_handler to ix86_veclibabi_svml when
5931         -mveclibabi=svml is used.
5932         (ix86_veclibabi_svml): New function for SVML ABI style
5933         vectorization support.
5934         * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
5935
5936 2008-03-28  Rafael Espindola  <espindola@google.com>
5937
5938         * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
5939         (tree_binary_nonnegative_warnv_p): Make it public.
5940         (tree_single_nonnegative_warnv_p): Make it public.
5941         (tree_invalid_nonnegative_warnv_p): Make it public.
5942         (tree_unary_nonzero_warnv_p): Make it public.
5943         (tree_binary_nonzero_warnv_p): Make it public
5944         (tree_single_nonzero_warnv_p): Make it public.
5945         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
5946         (extract_range_from_binary_expr): Split the expr argument.
5947         (extract_range_from_unary_expr): Split the expr argument.
5948         (extract_range_from_comparison): Split the expr argument.
5949         (extract_range_from_expr): Use the new aux functions.
5950         (vrp_evaluate_conditional_warnv): Use
5951         vrp_evaluate_conditional_warnv_with_ops.
5952         * tree.h (tree_unary_nonzero_warnv_p): Declare.
5953         (tree_binary_nonzero_warnv_p): Declare.
5954         (tree_single_nonzero_warnv_p): Declare.
5955         (tree_expr_nonzero_warnv_p): Declare.
5956         (tree_unary_nonnegative_warnv_p): Declare.
5957         (tree_binary_nonnegative_warnv_p): Declare.
5958         (tree_single_nonnegative_warnv_p): Declare.
5959         (tree_invalid_nonnegative_warnv_p): Declare.
5960
5961 2008-03-28  Richard Guenther  <rguenther@suse.de>
5962
5963         PR tree-optimization/30317
5964         PR tree-optimization/30911
5965         PR tree-optimization/34793
5966         * tree-vrp.c (set_and_canonicalize_value_range): New function.
5967         (struct assert_locus_d): New member EXPR.
5968         (register_new_assert_for): Add EXPR parameter to support
5969         ASSERT_EXPR <name, expr OP limit>.
5970         (register_edge_assert_for_1): Adjust callers.
5971         (find_assert_locations): Likewise.
5972         (process_assert_insertions_for): Build condition from expression.
5973         (extract_range_from_assert): Handle ASSERT_EXPRs
5974         of the form ASSERT_EXPR <name, expr OP limit>.
5975         (register_edge_assert_for_2): New helper registering
5976         asserts for comparisons.  Recognize range tests of the form
5977         (unsigned)i - CST1 OP CST2.
5978         (register_edge_assert_for_1): Use it.
5979         (register_edge_assert_for): Likewise.
5980         (needs_overflow_infinity): Integer sub-types
5981         do not need overflow infinities.
5982         (vrp_val_is_max): The extreme values of integer sub-types
5983         are those of the base type.
5984         (vrp_val_is_min): Likewise.
5985         * tree.def (ASSERT_EXPR): Document extra allowed conditional
5986         expressions.
5987
5988 2008-03-28  Nick Clifton  <nickc@redhat.com>
5989
5990         PR target/31110
5991         * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
5992         Return GENERAL_REGS for stack adjustment reloads.
5993
5994 2008-03-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5995
5996         PR target/31334
5997         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
5998         const_vector when all the vectors are constant.
5999
6000 2008-03-27  Bob Wilson  <bob.wilson@acm.org>
6001
6002         * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
6003         comparisons.
6004         * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
6005         (any_scc_sf): Add uneq, unlt, unle and unordered operators.
6006         (scc_sf): New.
6007         (s<code>_sf): Use new scc_sf attribute for opcode names.
6008
6009 2008-03-27  Tom Tromey  <tromey@redhat.com>
6010
6011         * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
6012         configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
6013         config/spu/t-spu-elf, config/i386/t-interix,
6014         config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
6015         config/i386/x-darwin, config/i386/x-mingw32,
6016         config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
6017         config/sh/t-sh, config/sh/t-symbian, config/x-linux,
6018         config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
6019         config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
6020         config/rs6000/x-rs6000, config/rs6000/x-darwin64,
6021         config/rs6000/x-darwin, config/rs6000/t-rs6000,
6022         config/score/t-score-elf, config/arm/t-strongarm-pe,
6023         config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
6024         config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
6025         Revert automatic dependency patch.
6026
6027 2008-03-27  H.J. Lu  <hongjiu.lu@intel.com>
6028
6029         PR target/35657
6030         * config/i386/i386.c (ix86_function_arg_boundary): Align
6031         decimal floating point to its natural boundary.
6032
6033 2008-03-27  Richard Guenther  <rguenther@suse.de>
6034
6035         PR middle-end/35716
6036         * fold-const.c (fold_comparison): Restrict distinct decl
6037         comparison folding to VAR_DECLs and PARM_DECLs.  Do not
6038         solely rely on operand_equal_p.
6039
6040 2008-03-27  Richard Guenther  <rguenther@suse.de>
6041
6042         PR c/32511
6043         * c-common.c (handle_weak_attribute): Reject combination of
6044         weak and inline.
6045
6046 2008-03-27  Richard Guenther  <rguenther@suse.de>
6047
6048         PR tree-optimization/32810
6049         * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
6050         conversions from DECL_INITIAL.
6051         (fold_const_aggregate_ref): Likewise from constructor elements.
6052
6053 2008-03-27  Zdenek Dvorak  <ook@ucw.cz>
6054
6055         * tree-affine.h (aff_combination_expand): Declare.
6056         (get_inner_reference_aff): Likewise.
6057         * tree-affine.c (aff_combination_expand): Split out from
6058         tree_to_aff_combination_expand.
6059         (get_inner_reference_aff): New function.
6060         * tree-parloops.c (loop_parallel_p): Free vectorizer info.
6061         * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
6062         (struct lim_aux_data): sm_done field removed.
6063         (mem_ref_loc_p, mem_ref_locs_p): New types.
6064         (struct mem_ref): Added id, stored, accesses_in_loop,
6065         indep_loop, dep_loop, indep_ref, dep_ref fields.
6066         Removed is_stored, locs and next fields.
6067         (memory_accesses): New variable.
6068         (movement_possibility): Do not allow moving statements
6069         that store to memory.
6070         (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
6071         New functions.
6072         (determine_max_movement): For statements with memory references,
6073         find the outermost loop in that the reference is independent.
6074         (move_computations_stmt): Mark the virtual operands for renaming.
6075         (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
6076         gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
6077         vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
6078         add_vop_ref_mapping, create_vop_ref_mapping_loop,
6079         create_vop_ref_mapping, analyze_memory_references,
6080         cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
6081         get_all_locs_in_loop, ref_always_accessed_p,
6082         refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
6083         ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
6084         store_motion_loop, store_motion): New functions.
6085         (struct vop_to_refs_elt): New type.
6086         (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
6087         memref_hash, memref_eq, hoist_memory_references): Rewritten.
6088         (schedule_sm): Replaced by...
6089         (execute_sm): ... this.
6090         (determine_lsm_ref, hoist_memory_references,
6091         loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
6092         find_more_ref_vops, free_mem_ref, free_mem_refs,
6093         determine_lsm_loop, determine_lsm): Removed.
6094         (tree_ssa_lim_finalize): Free data structures used by store motion.
6095         (tree_ssa_lim): Call analyze_memory_references.  Use
6096         store_motion instead of determine_lsm.
6097
6098 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
6099
6100         * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
6101         rename tmake_file to m68hc11/t-m68hc11.
6102         (mcore): Set inhibit_libc to true.
6103         * config.host (alpha*-dec-*vms*): Set extra_programs.
6104         (interix3*): Don't use host_xmake_file.
6105         * configure.ac: Let config.gcc override inhibit_libc.
6106         * configure: Regenerate.
6107
6108         * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
6109         * config/t-openbsd-thread: Remove commented out lines.
6110         
6111         * config/x-interix: Remove.
6112
6113         * config/m68hc11/t-m68hc11-gas: Rename to...
6114         * config/m68hc11/t-m68hc11: ... this.  Remove T_CPPFLAGS.
6115
6116         * config/mcore/t-mcore: Remove T_CFLAGS.
6117         * config/mcore/t-mcore-pe: Likewise.
6118
6119 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
6120
6121         * configure.ac: Replace custom __GNU_SOURCE test with
6122         AC_USE_SYSTEM_EXTENSIONS.  Move it earlier.
6123         * aclocal.m4: Regenerate.
6124         * configure: Regenerate.
6125         * config.in: Regenerate.
6126
6127 2008-03-27  Richard Guenther  <rguenther@suse.de>
6128
6129         * fold-const.c (target.h): Include.
6130         (fold_comparison): Fold comparison of addresses of decls
6131         that bind locally or of constants.  Consolidate address folding code.
6132         * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
6133         results from fold_binary_to_constant.
6134         (compare_values_warnv): Likewise.
6135
6136 2008-03-27  Andrew Pinski  <pinskia@gmail.com>
6137
6138         PR middle-end/35429
6139         * fold-const.c (fold_truthop): Check for integeral types when folding
6140         a == 0 && b == 0 and a != 0 || b != 0 .
6141
6142 2008-03-26  Eric Botcazou  <ebotcazou@adacore.com>
6143
6144         * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
6145
6146 2008-03-26  Andreas Schwab  <schwab@suse.de>
6147
6148         * doc/invoke.texi: Fix use of @item vs. @itemx.
6149
6150 2008-03-26  Tom Tromey  <tromey@redhat.com>
6151
6152         * Makefile.in (build/gensupport.o, build/print-rtl.o,
6153         build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
6154         build/genattrtab.o, build/genautomata.o, build/gencheck.o,
6155         build/gencodes.o, build/genconditions.o, build/genconfig.o,
6156         build/genconstants.o, build/genemit.o, build/genextract.o,
6157         build/genflags.o, build/genmddeps.o, build/genopinit.o,
6158         build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
6159         options.h.
6160
6161 2008-03-26  Richard Guenther  <rguenther@suse.de>
6162
6163         Revert
6164         2008-03-26  Richard Guenther  <rguenther@suse.de>
6165
6166         * fold-const.c (target.h): Include.
6167         (fold_comparison): Fold comparison of addresses of two decls
6168         that bind locally.  Consolidate address folding code.
6169
6170 2008-03-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6171
6172         * builtins.c (expand_builtin_pow, fold_builtin_cabs,
6173         fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
6174         fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
6175         dconstsqrt2, dconstthird, dconste and/or dconst10.
6176         * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
6177         * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
6178         dconstsqrt2, dconste): Delete.
6179         (init_emit_once): Likewise.  Simplify initializing dconstm1.
6180         Constify variable.
6181         * real.c (get_real_const): New.
6182         * real.h (dconst3, dconst10, dconstm2, dconstthird,
6183         dconstsqrt2, dconste): Delete.
6184         (real_value_const, get_real_const): New.
6185
6186 2008-03-26  H.J. Lu  <hongjiu.lu@intel.com>
6187
6188         * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
6189
6190         * config/i386/i386.c (ix86_function_arg_boundary): Check
6191         BIGGEST_ALIGNMENT instead of 128.
6192         (setup_incoming_varargs_64): Likewise.
6193
6194 2008-03-26  Tom Tromey  <tromey@redhat.com>
6195
6196         * Makefile.in (DEPFILES): Add missing '/'.
6197
6198 2008-03-26  Richard Guenther  <rguenther@suse.de>
6199
6200         * fold-const.c (target.h): Include.
6201         (fold_comparison): Fold comparison of addresses of two decls
6202         that bind locally.  Consolidate address folding code.
6203
6204 2008-03-26  Nick Clifton  <nickc@redhat.com>
6205
6206         PR target/31232
6207         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
6208         not allow INT+INT as a legitimate addressing mode.
6209
6210 2008-03-26  Richard Guenther  <rguenther@suse.de>
6211
6212         * tree-flow.h (widen_bitfield): Remove declaration.
6213         * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
6214         (widen_bitfield): Remove function.
6215         * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
6216         code.
6217
6218 2008-03-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
6219
6220         PR target/31558
6221         * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
6222         error_mark_node's.
6223
6224 2008-03-25  Richard Sandiford  <rsandifo@nildram.co.uk>
6225
6226         PR rtl-optimization/35232
6227         * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
6228         (forget_old_reloads_1, forget_marked_reloads): Don't clear
6229         reg_reloaded_call_part_clobbered here.
6230         (reload_regs_reach_end_p): New function.
6231         (reload_reg_rtx_for_input): New variable.
6232         (reload_reg_rtx_for_output): Likewise.
6233         (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
6234         when reassigning a pseudo register.  Load reloadreg from 
6235         reload_reg_rtx_for_input, moving the mode and register
6236         calculation to...
6237         (do_input_reload): ...here.  Use the mode-adjusted reg_rtx
6238         instead of the original when deciding whether an input reload
6239         would be a no-op or whether an output reload can be deleted.
6240         (emit_output_reload_insns): Use the mode-adjusted reg_rtx
6241         when setting up new_spill_reg_store.  Load it from
6242         reload_reg_rtx_for_output, moving the mode and register
6243         calculation to...
6244         (do_output_reload): ...here.  Use the mode-adjusted reg_rtx
6245         instead of the original when deciding whether an output reload
6246         would be a no-op.  Do the same when modifying insn notes.
6247         Use rtx_equal_p instead of == to compare the registers.
6248         (inherit_piecemeal_p): Take a mode and two register numbers
6249         as argument.
6250         (emit_reload_insns): Clear new_spill_reg_store for every hard
6251         register in the reload register.  Remove spill registers
6252         from reg_reloaded_valid before considering whether to record
6253         inheritance information for them.  Use reload_reg_rtx_for_output
6254         instead of reg_rtx when recording output reloads.  Use
6255         reload_reg_rtx_for_input instead of reg_rtx when recording
6256         input reloads.  Set or clear reg_reloaded_call_part_clobbered
6257         at the same time as setting reg_reloaded_valid.
6258         (delete_output_reload): Add a new_reload_reg parameter and use it
6259         instead of rld[j].reg_rtx.
6260         (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
6261         calls accordingly.
6262
6263 2008-03-25  Tom Tromey  <tromey@redhat.com>
6264
6265         * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
6266         (build/genattr.o): Likewise.
6267         (build/genattrtab.o): Likewise.
6268         (build/gencodes.o): Likewise.
6269         (build/genconfig.o): Likewise.
6270         (build/genconstants.o): Likewise.
6271         (build/genemit.o): Likewise.
6272         (build/genextract.o): Likewise.
6273         (build/genflags.o): Likewise.
6274
6275 2008-03-25  Bob Wilson  <bob.wilson@acm.org>
6276         
6277         * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
6278         instead of size_int for integer types.
6279         (xtensa_gimplify_va_arg_expr): Likewise.  Convert index to sizetype
6280         to match type of MINUS_EXPR.
6281         
6282 2008-03-25  Tom Tromey  <tromey@redhat.com>
6283
6284         * configure: Rebuilt.
6285         * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
6286         Makefile.
6287
6288 2008-03-25  Tom Tromey  <tromey@redhat.com>
6289
6290         * config/x-solaris (host-solaris.o): Update.
6291         * config/x-linux (host-linux.o): Update.
6292         * config/x-hpux (host-hpux.o): Update.
6293         * config/x-darwin (host-darwin.o): Update.
6294         * config/v850/t-v850e (v850-c.o): Update.
6295         * config/v850/t-v850 (v850-c.o): Update.
6296         * config/t-vxworks (vxworks.o): Update.
6297         * config/t-sol2 (sol2-c.o, sol2.o): Update.
6298         * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
6299         * config/spu/t-spu-elf (spu-c.o): Update.
6300         (spu.o): Remove.
6301         * config/sh/t-symbian (sh-c.o): Update.
6302         (symbian.o): Update.
6303         * config/sh/t-sh (sh-c.o): Update.
6304         * config/score/t-score-elf (score7.o, score3.o): Update.
6305         * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
6306         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
6307         * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
6308         * config/rs6000/t-rs6000 (rs6000-c.o): Update.
6309         (rs6000.o): Remove.
6310         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
6311         * config/m32c/t-m32c (m32c-pragma.o): Update.
6312         * config/ia64/t-ia64 (ia64-c.o): Update.
6313         * config/i386/x-mingw32 (host-mingw32.o): Update.
6314         * config/i386/x-i386 (driver-i386.o): Update.
6315         * config/i386/x-darwin (host-i386-darwin.o): Update.
6316         * config/i386/x-cygwin (host-cygwin.o): Update.
6317         * config/i386/t-nwld (nwld.o): Update.
6318         * config/i386/t-netware (netware.o): Update.
6319         * config/i386/t-interix (winnt.o): Update.
6320         * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
6321         * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
6322         msformat-c.o): Update.
6323         * config/bfin/t-bfin-linux (generated_files): Add
6324         linux-sysroot-suffix.h.
6325         * config/arm/t-wince-pe (pe.o): Update.
6326         * config/arm/t-strongarm-pe (pe.o): Update.
6327         * config/arm/t-pe (pe.o): Update.
6328         * config/arm/t-arm (arm-c.o): Update.
6329         * doc/install.texi (Prerequisites): Require make 3.80.
6330         * Makefile.in: Remove .o targets.
6331         (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
6332         (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
6333         (simple_generated_h, simple_generated_c): Move earlier.
6334         (generated_files): New variable.
6335         (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
6336         TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
6337         BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
6338         ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
6339         REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
6340         CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
6341         CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
6342         INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
6343         PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
6344         TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
6345         DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
6346         VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
6347         (.c.o): Remove.
6348         (COMPILE.base, COMPILE): New variables.
6349         (%.o): New pattern rule.
6350         (ALL_HOST_OBJS): New variable.
6351         (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
6352         (dummy-checksum.o, cc1-checksum.o): Remove.
6353         (DRIVER_SHLIB): New variable.
6354         (DRIVER_DEFINES): Use it.
6355         (gencondmd.c): Move out of build/.
6356         (s-conditions): Update.
6357         (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
6358         (ALL_BUILD_OBJS): Likewise.
6359         (build/%.o): Use BUILDCOMPILE.
6360         (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
6361         build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
6362         build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
6363         build/gencheck.o, build/gencodes.o, build/genconditions.o,
6364         build/genconfig.o, build/genconstants.o, build/genemit.o,
6365         build/genextract.o, build/genflags.o, build/genmddeps.o,
6366         build/genopinit.o, build/genoutput.o, build/genpeep.o,
6367         build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
6368         build/gen-protos.o, build/scan.o, build/fix-header.o,
6369         build/scan-decls.o): Simplify.
6370         (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
6371         cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
6372         prefix.o, toplev.o): Reduce to variable setting.
6373         (libbackend.o): Use COMPILE.  Remove most dependencies.  Move later.
6374         ($(out_object_file), gcc-options.o): New targets.
6375         ($(ALL_HOST_OBJS)): New target.  Include dependency files.
6376         * configure: Rebuilt.
6377         * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
6378         * doc/sourcebuild.texi (Front End Directory): Document new variable.
6379
6380 2008-03-25  Douglas Gregor  <doug.gregor@gmail.com>
6381
6382         * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
6383         complain when we hit an error, return ERROR_MARK_NODE.
6384
6385 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
6386
6387         * config/sh/constraints.md (Pso, Psz): New constraints.
6388         * config/sh/sh.c (print_operand): Add %V and %W operand codes.
6389         * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
6390
6391 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
6392
6393         * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
6394         * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
6395
6396 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
6397
6398         * config/sh/sh.md (prefetch): Add condition for SH2A target.
6399         (prefetch_sh2a): New.   
6400
6401 2008-03-25  Jayant Sonar  <Jayant.sonar@kpitcummins.com>
6402             Naveen.H.S  <naveen.hs@kpitcummins.com>
6403
6404         * config/sh/constraints.md (I28): New constraint.
6405         * config/sh/sh.c (broken_move): Add support for movi20s.
6406         * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
6407
6408 2008-03-25  Anil Paranjape  <anil.paranjape@kpitcummins.com>
6409             Jayant Sonar  <Jayant.sonar@kpitcummins.com>
6410             Naveen.H.S  <naveen.hs@kpitcummins.com>
6411
6412         * config/sh/sh.c (SH_ATTRIBUTES): Define.
6413         (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
6414         (print_operand): Handle resbank in %@ operand code.
6415         (sh_encode_section_info): New.
6416         (push_regs): Add conditions for resbank.
6417         (sh_expand_epilogue): Likewise.
6418         (sh_insert_attributes): Likewise.
6419         (sh_attribute_table): Likewise.
6420         (sh_handle_resbank_handler_attribute): New.
6421         (sh2a_handle_function_vector_handler_attribute): New.
6422         (sh2a_is_function_vector_call): New.
6423         (sh2a_get_function_vector_number): New.
6424         (sh2a_function_vector_p): New.
6425         (sh_cfun_resbank_handler_p): New.
6426         * config/sh/sh.md (calli): Emit jsr/n if possible.
6427         (calli_tbr_rel): New.
6428         (calli_pcrel): Emit jsr/n if possible.
6429         (return_i): Emit rts/n if possible.
6430         (call_valuei_tbr_rel): New.
6431         (call_valuei_pcrel): Add condition for SH2A target.
6432         (call_value): Likewise.
6433         * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
6434         (sh2a_get_function_vector_number): Likewise.
6435         (sh2a_is_function_vector_call): Likewise.
6436         * doc/extend.texi: Document TBR relative addressing of SH2A.
6437         (resbank): Add description for SH2A.
6438
6439 2008-03-24  Richard Guenther  <rguenther@suse.de>
6440
6441         PR c/22371
6442         * gimplify.c (gimplify_modify_expr): For frontend type-correct
6443         pointer assignments change conversions according to middle-end rules.
6444         (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
6445         * configure.ac: Include type checking in yes.
6446         * configure: Regenerate.
6447
6448 2008-03-24  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6449
6450         * diagnostic.c (diagnostic_count_diagnostic): Delete.
6451         (diagnostic_report_diagnostic): Update. Handle ICEs here.
6452         
6453 2008-03-24  Nathan Sidwell  <nathan@codesourcery.com>
6454
6455         * gthr-vxworks.h (UNUSED): Define.
6456
6457 2008-03-23  H.J. Lu  <hongjiu.lu@intel.com>
6458
6459         * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
6460
6461 2008-03-23  Zuxy Meng <zuxy.meng@gmail.com>
6462
6463         * doc/extend.texi (Function Attributes): Add missing comma in the
6464         example of the "alloc_size" attribute.
6465         
6466 2008-03-23  Uros Bizjak  <ubizjak@gmail.com>
6467
6468         Revert:
6469         2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
6470
6471         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
6472         32bit host.
6473
6474         2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
6475
6476         PR target/35496
6477         * stor-layout.c (update_alignment_for_field): Set minimum alignment
6478         of the underlying type of a MS bitfield layout to the natural
6479         alignment of the type.
6480
6481         2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
6482
6483         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
6484         to their natural alignment to avoid store forwarding stalls.
6485
6486 2008-03-22  Richard Guenther  <rguenther@suse.de>
6487
6488         * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
6489         For PHI nodes verify the address is invariant.
6490         * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
6491         (get_symbol_constant_value): Use is_gimple_min_invariant.
6492         (maybe_fold_stmt_indirect): Likewise.
6493
6494 2008-03-22  Richard Sandiford  <rsandifo@nildram.co.uk>
6495
6496         PR rtl-optimization/33927
6497         * Makefile.in (dse.o): Depend on $(TM_P_H).
6498         * expr.h (extract_low_bits): Declare.
6499         * expmed.c (extract_low_bits): New function.
6500         * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
6501         * dse.c: Include tm_p.h.
6502         (find_shift_sequence): Remove the read_reg argument and return the
6503         read value.  Emit the instructions instead of returning them.
6504         Iterate on new_mode rather than calculating it each time.
6505         Check MODES_TIEABLE_P.  Use simplify_gen_subreg to convert the
6506         source to NEW_MODE and extract_low_bits to convert the shifted
6507         value to READ_MODE.
6508         (replace_read): Allow the load and store to have different mode
6509         classes.  Use extract_low_bits when SHIFT == 0.  Create the shift
6510         or extraction instructions before trying the replacement.  Update
6511         dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
6512
6513 2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
6514
6515         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
6516         to their natural alignment to avoid store forwarding stalls.
6517
6518 2008-03-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
6519
6520         PR target/27946
6521         * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
6522         encouraging but not allowing gprs for input;
6523         change the input constraint to !f#r.
6524         (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
6525         gprs for output;
6526         change the output constraint to !f#r.
6527
6528 2008-03-21  Uros Bizjak  <ubizjak@gmail.com>
6529
6530         PR target/13958
6531         * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
6532         corresponding post-reload splitters.
6533         ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
6534         when x87 FP math is selected.
6535         * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
6536         New function prototype.
6537         * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
6538         unreachable function to ease macroization of insn patterns.
6539
6540 2008-03-21  Martin Jambor  <mjambor@suse.cz>
6541
6542         * tree-data-ref.c (dump_data_dependence_relation): Avoid data
6543         reference dumps if ddr is NULL or dependence is unknown.
6544
6545 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
6546
6547         * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
6548         unsigned extension into account.
6549         (ATOMIC_COMPARE_AND_SWAP): Likewise.
6550         (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
6551         Do computations on a scratch register.
6552
6553 2008-03-21  Richard Guenther  <rguenther@suse.de>
6554
6555         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
6556         Use is_gimple_min_invariant instead of TREE_INVARIANT.
6557         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
6558         * tree-ssa-dom.c (record_equality): Likewise.
6559         * tree-inline.c (copy_body_r): Likewise.
6560         * tree-ssa-pre.c (make_values_for_stmt): Remove test for
6561         TREE_INVARIANT.
6562
6563 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
6564
6565         * config/sh/sh.c (split_branches): Pass zero to redirect_jump
6566         as 'delete_unused' argument.
6567
6568 2008-03-20  Richard Guenther  <rguenther@suse.de>
6569
6570         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
6571         special casing of constant qualifiers.
6572         * tree-ssa.c (useless_type_conversion_p_1): Instead do not
6573         care about them in general.
6574         * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
6575         regardless of their type.
6576         (fold_stmt_r): Forcefully fold *& if we end up with that.
6577
6578 2008-03-20  Paul Brook  <paul@codesourcery.com>
6579
6580         * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
6581         * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
6582         linker flags.
6583         * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
6584         definition.
6585         (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
6586         * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
6587
6588 2008-03-20  Volker Reichelt  <v.reichelt@netcologne.de>
6589
6590         * common.opt (Wmudflap): New option.
6591         * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
6592         (mx_register_decls): Likewise.
6593         (mudflap_finish_file): Likewise.
6594         * doc/invoke.texi: Document -Wno-mudflap.
6595
6596 2008-03-20  Kai Tietz  <kai.tietz@onevision.com>
6597
6598         * c-format.c (replace_format_name_to_system_name): New.
6599         (cmp_attribs): New.
6600         (convert_format_name_to_system_name): New.
6601         (decode_format_attr): Add use of convert_format_name_to_system_name.
6602         (format_types_orig): Add gnu_ prefix to names.
6603         (check_format_info_main): Special treating of \0 escaped names for
6604         supporting multi-character format specifiers as I32, I64.
6605         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
6606         (gnu_target_overrides_format_attributes): New.
6607         * c-format.h: Add structure target_ovr_attr to hold
6608         system specific formatter names.
6609         * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
6610         msformat-c.o file to c_target_objs and cxx_target_objs.
6611         * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
6612         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
6613         (TARGET_N_FORMAT_TYPES): New.
6614         * config/i386/msformat-c.c: New.
6615         * config/i386/t-cygming: Add build rule for msformat-c.o.
6616         * doc/extend.texi: Add new format names gnu_* and ms_* and
6617         further details.
6618         * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
6619
6620 2008-03-20  Ira Rosen  <irar@il.ibm.com>
6621
6622         * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
6623         optimizations turned on under -O3.
6624         (ftree-vectorize): Add that the flag is turned on with -O3.
6625
6626 2008-03-20  Ben Elliston  <bje@au.ibm.com>
6627
6628         * regmove.c (try_auto_increment): Fix spelling error in comment.
6629         * final.c (final_scan_insn): Likewise.
6630
6631 2008-03-20  Uros Bizjak  <ubizjak@gmail.com>
6632
6633         PR target/14552
6634         * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
6635         allocator preferences for "y" and "r" class registers.
6636         ("*mov<mode>_internal"): Ditto.
6637         ("*movv2sf_internal_rex64"): Ditto.
6638         ("*movv2sf_internal"): Ditto.
6639
6640 2008-03-19  Michael Matz  <matz@suse.de>
6641
6642         PR middle-end/35616
6643         * calls.c (expand_call): Check overlap of arguments with call
6644         address for sibcalls.
6645
6646 2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
6647
6648         PR target/35496
6649         * stor-layout.c (update_alignment_for_field): Set minimum alignment
6650         of the underlying type of a MS bitfield layout to the natural
6651         alignment of the type.
6652
6653 2008-03-19  Jan Hubicka  <jh@suse.cz>
6654
6655         PR other/35094
6656         * toplev.c (decode_d_option): Handle all CPP flags.
6657         * tree-vrp.c: Update tree_pass descriptors.
6658         * regrename.c: Update tree_pass descriptors.
6659         * fwprop.c: Update tree_pass descriptors.
6660         * doc/invoke.texi: Remove documentation of dropped -d? flags.
6661         * tree-into-ssa.c: Update tree_pass descriptors.
6662         * tree-dump.c: Update tree_pass descriptors.
6663         * tree-complex.c: Update tree_pass descriptors.
6664         * tree-dump.h: Update tree_pass descriptors.
6665         * see.c: Update tree_pass descriptors.
6666         * cgraphbuild.c: Update tree_pass descriptors.
6667         * tracer.c: Update tree_pass descriptors.
6668         * tree-loop-distribution.c: Update tree_pass descriptors.
6669         * cgraph.c: Update tree_pass descriptors.
6670         * postreload-gcse.c: Update tree_pass descriptors.
6671         * postreload.c: Update tree_pass descriptors.
6672         * tree-ssa-loop-ch.c: Update tree_pass descriptors.
6673         * tree-tailcall.c: Update tree_pass descriptors.
6674         * tree-pass.h (tree_opt_pass): Rename to ...
6675         (opt_pass) ... this one; add "type" field and remove letter field.
6676         (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
6677         (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
6678         all_lowering_passes): Update declaration.
6679         * ipa-cp.c: Update tree_pass descriptors.
6680         * final.c: Update tree_pass descriptors.
6681         * omp-low.c: Update tree_pass descriptors.
6682         * tree-ssa-dse.c: Update tree_pass descriptors.
6683         * ipa-reference.c: Update tree_pass descriptors.
6684         * tree-ssa-uncprop.c: Update tree_pass descriptors.
6685         * auto-inc-dec.c: Update tree_pass descriptors.
6686         * reorg.c: Update tree_pass descriptors.
6687         * cgraphunit.c: Update tree_pass descriptors.
6688         * tree-ssa-copyrename.c: Update tree_pass descriptors.
6689         * tree-ssa-ccp.c: Update tree_pass descriptors.
6690         * df-core.c: Update tree_pass descriptors.
6691         * mode-switching.c: Update tree_pass descriptors.
6692         * tree-nomudflap.c: Update tree_pass descriptors.
6693         * modulo-sched.c: Update tree_pass descriptors.
6694         * ipa-pure-const.c: Update tree_pass descriptors.
6695         * cse.c: Update tree_pass descriptors.
6696         * web.c: Update tree_pass descriptors.
6697         * tree-stdarg.c: Update tree_pass descriptors.
6698         * tree-ssa-math-opts.c: Update tree_pass descriptors.
6699         * tree-ssa-dom.c: Update tree_pass descriptors.
6700         * tree-nrv.c: Update tree_pass descriptors.
6701         * tree-ssa-alias.c: Update tree_pass descriptors.
6702         * loop-init.c: Update tree_pass descriptors.
6703         * gimple-low.c: Update tree_pass descriptors.
6704         * ipa-inline.c: Update tree_pass descriptors.
6705         * tree-ssa-sink.c: Update tree_pass descriptors.
6706         * global.c: Update tree_pass descriptors.
6707         * ifcvt.c: Update tree_pass descriptors.
6708         * jump.c: Update tree_pass descriptors.
6709         * predict.c: Update tree_pass descriptors.
6710         * tree-ssa-loop.c: Update tree_pass descriptors.
6711         * recog.c: Update tree_pass descriptors.
6712         * dse.c: Update tree_pass descriptors.
6713         * tree-ssa-ifcombine.c: Update tree_pass descriptors.
6714         * tree-eh.c: Update tree_pass descriptors.
6715         * regmove.c: Update tree_pass descriptors.
6716         * local-alloc.c
6717         * function.c: Update tree_pass descriptors.
6718         * tree-vectorizer.c: Update tree_pass descriptors.
6719         * gcse.c: Update tree_pass descriptors.
6720         * ipa-type-escape.c: Update tree_pass descriptors.
6721         * tree-if-conv.c: Update tree_pass descriptors.
6722         * init-regs.c: Update tree_pass descriptors.
6723         * ipa.c: Update tree_pass descriptors.
6724         * tree-ssa-phiopt.c: Update tree_pass descriptors.
6725         * rtl-factoring.c: Update tree_pass descriptors.
6726         * lower-subreg.c: Update tree_pass descriptors.
6727         * bt-load.c: Update tree_pass descriptors.
6728         * tree-dfa.c: Update tree_pass descriptors.
6729         * except.c: Update tree_pass descriptors.
6730         * emit-rtl.c: Update tree_pass descriptors.
6731         * cfgexpand.c: Update tree_pass descriptors.
6732         * tree-cfgcleanup.c: Update tree_pass descriptors.
6733         * cfgcleanup.c: Update tree_pass descriptors.
6734         * tree-ssa-pre.c: Update tree_pass descriptors.
6735         * tree-sra.c: Update tree_pass descriptors.
6736         * tree-mudflap.c: Update tree_pass descriptors.
6737         * tree-ssa-copy.c: Update tree_pass descriptors.
6738         * cfglayout.c: Update tree_pass descriptors.
6739         * tree-ssa-forwprop.c: Update tree_pass descriptors.
6740         * tree-ssa-dce.c: Update tree_pass descriptors.
6741         * tree-ssa.c: Update tree_pass descriptors.
6742         * regclass.c: Update tree_pass descriptors.
6743         * integrate.c: Update tree_pass descriptors.
6744         * tree-optimize.c: Update tree_pass descriptors.
6745         * tree-ssa-phiprop.c: Update tree_pass descriptors.
6746         * tree-object-size.c: Update tree_pass descriptors.
6747         * combine.c: Update tree_pass descriptors.
6748         * tree-outof-ssa.c: Update tree_pass descriptors.
6749         * bb-reorder.c: Update tree_pass descriptors.
6750         * stack-ptr-mod.c: Update tree_pass descriptors.
6751         * var-tracking.c: Update tree_pass descriptors.
6752         * tree-profile.c: Update tree_pass descriptors.
6753         * tree-vect-generic.c: Update tree_pass descriptors.
6754         * reg-stack.c: Update tree_pass descriptors.
6755         * sched-rgn.c: Update tree_pass descriptors.
6756         * tree-ssa-structalias.c: Update tree_pass descriptors.
6757         * tree-cfg.c: Update tree_pass descriptors.
6758         * passes.c (current_pass): Update declaration.
6759         (finish_optimization_passes): Update.
6760         (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
6761         (register_one_dump_file, register_dump_files_1, next_pass_1):
6762         Update arguments.
6763         (init_optimization_passes): Update handling of new types.
6764         (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
6765         * ipa-struct-reorg.c: Update tree_pass descriptors.
6766         * tree-ssa-reassoc.c: Update tree_pass descriptors.
6767         * combine-stack-adj.c: Update tree_pass descriptors.
6768         * cfgrtl.c: Update tree_pass descriptors.
6769         * dce.c: Update tree_pass descriptors.
6770         * tree-ssanames.c: Update tree_pass descriptors.
6771
6772 2008-03-19  Richard Guenther  <rguenther@suse.de>
6773
6774         PR middle-end/35609
6775         * tree-ssa.c (walk_data): New structure.
6776         (warn_uninitialized_var): If not always_executed warn with "maybe"
6777         instead of "is".
6778         (execute_early_warn_uninitialized): Compute post-dominators.
6779         Initialize always_executed before processing each basic block.
6780
6781 2008-03-18  Mikulas Patocka  <mikulas@artax.karlin.mff.cuni.cz>
6782
6783         PR target/35504
6784         * config/i386/i386.c (x86_this_parameter): Calculate correct location
6785         of "this" pointer when "regparm = N" or "fastcall" is in effect.
6786
6787 2008-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6788
6789         * doc/include/texinfo.tex: Update to version 2008-03-17.10.
6790
6791 2008-03-18  Paolo Bonzini  <bonzini@gnu.org>
6792
6793         * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
6794         is true.
6795         (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
6796         (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
6797         is true.  Add "&& !ignore" condition to reduce_bit_field.  Modify
6798         target after ignore has been set, and move there also the commputation
6799         of subtarget and original_target.
6800         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
6801         (LANG_HOOKS_INITIALIZER): Remove it.
6802         * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
6803
6804 2008-03-18  Richard Guenther  <rguenther@suse.de>
6805
6806         * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
6807         found an expression with constants, note that in the VN for the lhs.
6808         * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
6809         fold them to constants if possible.  Run cleanup_cfg if done so.
6810         (execute_pre): Return todo.
6811         (do_pre): Likewise.
6812         (execute_fre): Likewise.
6813         * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
6814         of constants.
6815         (get_prop_source_stmt): Look through pointer conversions.
6816
6817 2008-03-18  Jan Hubicka  <jh@suse.cz>
6818
6819         * tree-pretty-print.c: Include predict.h.
6820         (dump_generic_node): Dump predictor.
6821         * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
6822         * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
6823         * gimple-low.c (lower_stmt): Likewise.
6824         * expr.c (expand_expr_real): Likewise.
6825         * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
6826         them.
6827         (build_predict_expr, build_predict_expr): New.
6828         * predict.h (predictor_name, build_predict_expr): Update.
6829         * c-typeck.c (c_finish_bc_stmt): Add prediction.
6830         * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
6831         * predict.def (PRED_CONTINUE): Update hitrate.
6832         * tree.def (PREDICT_EXPR): Define.
6833         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
6834         do not handle BIND_EXPR.
6835         * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
6836         * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
6837         * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
6838         operands.
6839
6840 2008-03-18  Michael Matz  <matz@suse.de>
6841
6842         * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
6843
6844 2008-03-18  Richard Guenther  <rguenther@suse.de>
6845
6846         * tree-gimple.h (is_gimple_invariant_address): Declare.
6847         (is_gimple_constant): Likewise.
6848         * tree-gimple.c (is_gimple_constant): New function.
6849         (is_gimple_invariant_address): Likewise.
6850         (is_gimple_min_invariant): Implement in terms of is_gimple_constant
6851         and is_gimple_invariant_address.
6852         * tree-ssa-loop-niter.c (expand_simple_operations): Revert
6853         previous change.
6854         * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
6855         an addressable base.
6856
6857 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
6858
6859         PR middle-end/35611
6860         * gimplify.c (gimplify_expr): Gimplify second operand of
6861         OMP_ATOMIC_LOAD.
6862
6863 2008-03-17  Richard Guenther  <rguenther@suse.de>
6864
6865         PR tree-optimization/19637
6866         * fold-const.c (fold_unary): Remove restrictions of removing
6867         intermediate pointer-conversions (P2)(P1)P0.
6868         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
6869         conversion to void pointer.
6870         (get_maxval_strlen): Handle addresses of the form &(*p)[0].
6871
6872 2008-03-16  James E. Wilson  <wilson@tuliptree.org>
6873
6874         PR debug/31510
6875         * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
6876         emulated thread local variables.
6877
6878 2008-03-16  Richard Guenther  <rguenther@suse.de>
6879
6880         PR middle-end/35607
6881         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
6882         expand TREE_INVARIANT operations that are not gimple invariant.
6883
6884 2008-03-16  Hans-Peter Nilsson  <hp@axis.com>
6885
6886         * doc/extend.texi (Alignment): Say that the ABI controls
6887         the __alignof__ for non-strict-alignment targets rather
6888         than being a recommendation.
6889
6890 2008-03-15  Paul Brook  <paul@codesourcery.com>
6891
6892         * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
6893         annotations.
6894         (arm_output_fn_unwind): Mark functions that can not be unwound.
6895
6896 2008-03-15  Paul Brook  <paul@codesourcery.com>
6897
6898         * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
6899         extension instructions.
6900
6901 2008-03-15  Richard Guenther  <rguenther@suse.de>
6902
6903         * tree-ssa-ccp.c (ccp_fold): Also read from constant values
6904         and fold constant aggregate refs.
6905         (fold_const_aggregate_ref): Handle string constants
6906         and constructors in ARRAY_REFs.  Handle INDIRECT_REF.
6907         (evaluate_stmt): Simplify now that ccp_fold folds constant
6908         aggregate refs.
6909
6910 2008-03-15  Paul Brook  <paul@codesourcery.com>
6911
6912         * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
6913         (extzv): Use gen_extzv_t2.
6914         (insv_t2, insv_zero, extv, extzv_t2): New patterns.
6915
6916 2008-03-15  Richard Guenther  <rguenther@suse.de>
6917
6918         * tree-ssa-ccp.c (get_symbol_constant_value): Export.
6919         (fold_const_aggregate_ref): Likewise.
6920         (get_value): Return NULL if we don't have any values.
6921         (ccp_finalize): Set const_val to NULL after freeing it.
6922         * tree-flow.h (get_symbol_constant_value): Declare.
6923         (fold_const_aggregate_ref): Likewise.
6924         * tree-ssa-sccvn.c (try_to_simplify): Use them.
6925
6926 2008-03-15  Richard Guenther  <rguenther@suse.de>
6927
6928         PR middle-end/35593
6929         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
6930         to not produce negative array indices if not allowed.  Add
6931         parameter to indicate that.
6932         (maybe_fold_offset_to_component_ref): Allow negative array
6933         indices only for the first member of a structure.
6934         (maybe_fold_offset_to_reference): Allow negative array indices.
6935         (maybe_fold_stmt_addition): Likewise.
6936
6937 2008-03-15  Bjoern Haase  <bjoern.m.haase@web.de>
6938             Anatoly Sokolov <aesok@post.ru>
6939
6940         * config/avr/avr.c (avr_arch_types): Add avr6 entry.
6941         (avr_arch): Add ARCH_AVR6.
6942         (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
6943         (initial_elimination_offset): Initialize and use 'avr_pc_size' 
6944         instead of fixed value 2.
6945         (print_operand_address): Use gs() asm specifier instead of pm().
6946         (avr_assemble_integer): (Ditto.).
6947         (avr_output_addr_vec_elt): (Ditto.).
6948         (print_operand): Handle "!" code.
6949         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add 
6950         __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
6951         (AVR_HAVE_EIJMP_EICALL): Define.
6952         (AVR_3_BYTE_PC): Redefine.
6953         (AVR_2_BYTE_PC): (Ditto.).
6954         (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
6955         (LINK_SPEC): Add atmega2560 and atmega2561.
6956         (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561 
6957         (crtm2561.o).
6958         * config/avr/avr.md (call_insn): Use eicall instead of icall 
6959         for 3 byte PC devices.
6960         (call_value_insn): (Ditto.).
6961         (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
6962         (indirect_jump): Use only for for 2 byte PC devices.
6963         (*tablejump): (Ditto.).
6964         (*indirect_jump_avr6): Add insn.
6965         (*tablejump_rjmp): Don't use for 3 byte PC devices.
6966         * config/avr/libgcc.S (__prologue_saves__): Use eijmp 
6967         instead of ijmp for 3 byte PC devices.
6968         (__tablejump2__): (Ditto.).
6969         * config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
6970         (MULITLIB_DIRNAMES): (Ditto.). 
6971         (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
6972
6973 2008-03-15  Uros Bizjak  <ubizjak@gmail.com>
6974
6975         * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
6976         "sse2_umulsidi3".  Use V1DI mode for operand 0.
6977         ("mmx_psadbw"): Use V1DI mode for operand 0.
6978         * config/i386/i386-modes.def (V1SI): New vector mode.
6979         * config/i386/i386.c (struct builtin_description)
6980         [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
6981         (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
6982         (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
6983         (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
6984         v1di_ftype_v8qi_v8qi type.
6985         [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
6986
6987         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
6988         __builtin_ia32_pmuludq]: Fix the mode of return value.
6989
6990 2008-03-15  Richard Guenther  <rguenther@suse.de>
6991
6992         PR middle-end/35595
6993         * tree-ssa-pre.c (bitmap_find_leader): Handle expression
6994         being a PHI_NODE.
6995
6996 2008-03-14  Bob Wilson  <bob.wilson@acm.org>
6997         
6998         * doc/invoke.texi (Option Summary, Xtensa Options): Document
6999         -mserialize-volatile and -mno-serialize-volatile Xtensa options.
7000         * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
7001         unless TARGET_SERIALIZE_VOLATILE is enabled.
7002         * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
7003         * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
7004         * config/xtensa/xtensa.opt (mserialize_volatile): New option.
7005
7006 2008-03-14  Richard Guenther  <rguenther@suse.de>
7007
7008         PR tree-optimization/34172
7009         * tree-flow.h (refs_may_alias_p): Declare.
7010         (get_single_def_stmt): Likewise.
7011         (get_single_def_stmt_from_phi): Likewise.
7012         (get_single_def_stmt_with_phi): Likewise.
7013         * tree-dfa.c (refs_may_alias_p): New function.
7014         (get_single_def_stmt): Likewise.
7015         (get_single_def_stmt_from_phi): Likewise.
7016         (get_single_def_stmt_with_phi): Likewise.
7017         * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
7018         (vn_reference_lookup_1): New helper function.
7019         (vn_reference_lookup): Walk the virtual use-def chain to
7020         continue searching for a match if the def does not alias the
7021         reference we are looking for.
7022
7023 2008-03-14  David Edelsohn  <edelsohn@gnu.org>
7024
7025         * doc/install.texi (Binaries): Remove UCLA archive.  Add HVCC
7026         archive and Perzl.  Update The Written Word listing.
7027
7028 2008-03-14  Richard Guenther  <rguenther@suse.de>
7029
7030         PR tree-optimization/34043
7031         PR tree-optimization/33989
7032         * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
7033         when doing FRE.
7034         (bitmap_find_leader): Use extra argument to verify dominance
7035         relationship inside a basic-block.
7036         (can_PRE_operation): Add VIEW_CONVERT_EXPR.
7037         (find_leader_in_sets): Adjust.
7038         (create_component_ref_by_pieces): Take extra argument for
7039         dominance check, handle lookup failures.
7040         (find_or_generate_expression): Likewise.
7041         (create_expression_by_pieces): Likewise.
7042         (insert_into_preds_of_block): Adjust.
7043         (create_value_expr_from): If asked for, verify all operands
7044         are in the blocks AVAIL_OUT set.
7045         (make_values_for_stmt): Check for SSA_NAMEs that are life
7046         over an abnormal edge.
7047         (compute_avail): Remove such check.
7048         (do_SCCVN_insertion): New function.
7049         (eliminate): If we do not find a leader suitable for replacement
7050         insert a replacement expression from SCCVN if available.
7051         * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
7052         (struct vn_ssa_aux): Add needs_insertion flag.
7053         * tree-ssa-sccvn.c (may_insert): New global flag.
7054         (copy_reference_ops_from_ref): Value-number union member access
7055         based on its size, not type and member if insertion is allowed.
7056         (visit_reference_op_load): For a weak match from union type
7057         punning lookup a view-converted value and insert a SSA_NAME
7058         for that value if that is not found.
7059         (visit_use): Make dumps shorter.  Do not disallow value numbering
7060         SSA_NAMEs that are life over an abnormal edge to constants.
7061         (free_scc_vn): Release inserted SSA_NAMEs.
7062         (run_scc_vn): New flag to specify whether insertion is allowed.
7063         Process SSA_NAMEs in forward order.
7064         * tree-ssa-loop-im.c (for_each_index): Handle invariant
7065         ADDR_EXPRs inside VIEW_CONVERT_EXPR.
7066         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
7067         pointer type to/from integral types that do not change the
7068         precision to regular conversions.
7069
7070 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
7071
7072         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
7073         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
7074         __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
7075         __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
7076         input arguments and the mode of return value.  Built-in functions
7077         that operate on whole 64-bit MMX register now use V1DI mode.
7078
7079 2008-03-13  Alon Dayan  <alond@il.ibm.com>
7080             Olga Golovanevsky  <olga@il.ibm.com>
7081
7082         PR tree-optimization/35041
7083         * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
7084         to locate the right position in a statement.
7085
7086 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
7087
7088         PR target/34000
7089         PR target/35553
7090         * config/i386/xmmintrin.h:  Change all static inline functions to
7091         extern inline and add __gnu_inline__ attribute.
7092         * config/i386/bmintrin.h: Ditto.
7093         * config/i386/smmintrin.h: Ditto.
7094         * config/i386/tmmintrin.h: Ditto.
7095         * config/i386/mmintrin-common.h: Ditto.
7096         * config/i386/ammintrin.h: Ditto.
7097         * config/i386/emmintrin.h: Ditto.
7098         * config/i386/pmmintrin.h: Ditto.
7099         * config/i386/mmintrin.h: Ditto.
7100         * config/i386/mm3dnow.h: Ditto.
7101
7102 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
7103
7104         PR middle-end/35185
7105         * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
7106         (lower_omp_2): New function.
7107         (lower_omp_1, lower_omp): Rewritten.
7108
7109 2008-03-13  Danny Smith  <dannysmith@users.sourceforge.net>
7110
7111         PR 35054
7112         * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
7113         with the phrase "Microsoft Windows compilers".
7114         (Push/Pop Macro Pragmas): New subsection. Document
7115         #pragma push_macro and pragma pop_macro.
7116
7117 2008-03-12  Paul Brook  <paul@codesourcery.com>
7118
7119         * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
7120
7121 2008-03-12  Paul Brook  <paul@codesourcery.com>
7122
7123         * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
7124         (thumb2_alusi3_short): Exclude PLUS and MINUS.
7125         (thumb2_addsi_shortim): Rename ...
7126         (thumb2_addsi_short): ... to this.  Allow register operands.
7127         (thumb2_subsi_short): New pattern.
7128         (thumb2_one_cmplsi2_short,
7129         thumb2_negsi2_short): New patterns and peepholes.
7130
7131 2008-03-12  Paul Brook  <paul@codesourcery.com>
7132
7133         * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
7134
7135 2008-03-12  Uros Bizjak  <ubizjak@gmail.com>
7136
7137         * config/i386/i386.md (int_cond): New code iterator.
7138         (fp_cond): Ditto.
7139         ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
7140         sge, sgeu, sle and sleu expanders usign int_cond code iterator.
7141         ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
7142         sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
7143         ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
7144         bge, bgeu, ble and bleu expanders usign int_cond code iterator.
7145         ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
7146         bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
7147
7148 2008-03-12  Paul Brook  <paul@codesourcery.com>
7149
7150         * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
7151         instead of {arm,thumb}_compute_save_reg_mask.
7152         (output_return_instruction): Ditto.
7153         (thumb_unexpanded_epilogue): Ditto.
7154         (thumb1_expand_prologue): Ditto.
7155         (thumb1_output_function_prologue): Ditto.
7156         (arm_set_return_address): Ditto.
7157         (thumb_set_return_address): Ditto.
7158         (arm_get_frame_offsets): Set offsets->saved_regs_mask.  Push extra
7159         regs to achieve stack alignment.
7160         (thumb1_compute_save_reg_mask): Fix compiler warning.
7161         (arm_output_epilogue): Use offsets->saved_regs_mask.
7162         Adjust stack pointer by poping call clobered registers.
7163         (arm_expand_prologue): Use offsets->saved_regs_mask.
7164         Adjust stack pointer by pushing extra registers.
7165         * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
7166
7167 2008-03-12  Paolo Bonzini  <bonzini@gnu.org>
7168
7169         PR tree-opt/35422
7170         * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
7171         conversion to the operands of a multiplication.
7172
7173 2008-03-12  Richard Guenther  <rguenther@suse.de>
7174
7175         * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
7176         (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
7177         * timevar.def (TV_TREE_PHIPROP): Add.
7178         * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
7179         pass description.  Use TV_TREE_PHIPROP.
7180         * tree-ssa-forwprop.c: Remove phiprop code.
7181
7182 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
7183
7184         PR middle-end/35549
7185         * omp-low.c (maybe_lookup_decl): Constify first argument.
7186         (use_pointer_for_field): Change last argument from bool to
7187         omp_context *.  Disallow shared copy-in/out in nested
7188         parallel if decl is shared in outer parallel too.
7189         (build_outer_var_ref, scan_sharing_clauses,
7190         lower_rec_input_clauses, lower_copyprivate_clauses,
7191         lower_send_clauses, lower_send_shared_vars): Adjust callers.
7192
7193 2008-03-12  Victor Kaplansky  <victork@il.ibm.com>
7194             Ira Rosen  <irar@il.ibm.com>
7195
7196         * tree-vectorizer.c (free_stmt_vec_info): New function.
7197         (destroy_loop_vec_info): Move code to free_stmt_vec_info().
7198         Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
7199         * tree-vectorizer.h (free_stmt_vec_info): Declare.
7200         * tree-vect-transform.c (vectorizable_conversion): Free
7201         vec_oprnds0 if it was allocated.
7202         (vect_permute_store_chain): Remove unused VECs.
7203         (vectorizable_store): Free VECs that are allocated in the..
7204         function.
7205         (vect_transform_strided_load, vectorizable_load): Likewise.
7206         (vect_remove_stores): Simplify the code.
7207         (vect_transform_loop): Move code to vect_remove_stores().
7208         Call vect_remove_stores() and free_stmt_vec_info().
7209
7210 2008-03-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7211
7212         * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
7213         TARGET_HPUX.  Revise comment.
7214         (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
7215         * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
7216         Use sr4 variant of `be' instruction when not generating PIC code.
7217         (attr_length_call): Adjust for above change.
7218
7219 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
7220
7221         * ipa-reference.c (static_execute): Remove module_statics_const and
7222         associated setting code.
7223
7224 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
7225
7226         PR target/35540
7227         * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
7228         predicate for operand 1.
7229         (paritysi2_cmp): Use register_operand predicate for operand 2.
7230         Use earlyclobber modifier for operand 1.  Remove support for
7231         memory operands.
7232         (paritydi2_cmp): Use register_operand predicate for operand 3.
7233         Use earlyclobber modifier for operand 1.  Remove support for
7234         memory operands.
7235
7236 2008-03-11  Paul Brook  <paul@codesourcery.com>
7237             Vladimir Prus  <vladimir@codesourcery.com>
7238
7239         * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
7240         (arm_compute_save_reg0_reg12_mask): Always
7241         check if register 11 must be saved.  Always safe hard frame pointer
7242         when frame_pointer_needeed.
7243         (arm_compute_save_reg_mask): Save IP and PC
7244         only with apcs frames.
7245         (arm_output_epilogue): Adjust Thumb2 codepath to
7246         be also invoked and work for ARM non-apcs frames.
7247         (arm_expand_prologue): Don't bother saving IP
7248         for non-apcs frame, since it's not clobbered by
7249         prologue code.  Implement non-apcs frame
7250         layout.
7251
7252 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
7253
7254         PR rtl-optimization/35281
7255         * expr.c (convert_move): Use a new pseudo for the intermediate
7256         from_mode->word_mode result.
7257
7258 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
7259
7260         * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
7261         * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
7262         * toplev.c (compile_file): Don't call it.
7263
7264 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
7265
7266         PR middle-end/35526
7267         * expr.c (store_expr): Call emit_block_move if the mode
7268         of "temp" RTX is BLKmode.
7269
7270 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
7271             Richard Guenther  <rguenther@suse.de>
7272
7273         PR tree-optimization/31358
7274         * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
7275         the step with a NULL_TREE.
7276         * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
7277         to sizetype if type is a pointer type.
7278         (add_candidate_1): Don't convert the base and step to
7279         the generic type if the orginal type is a pointer type.
7280         (add_iv_value_candidates): Use sizetype for the step
7281         if type is a pointer type.
7282         (cand_value_at): Likewise.
7283         * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
7284         for pointer types.
7285         * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
7286         Don't convert the tem affine to the type.
7287         (add_elt_to_tree): Use sizetype for the step if a pointer.
7288         Use POINTER_PLUS_EXPR for pointers.
7289         (aff_combination_to_tree): Use sizetype for the step if a
7290         pointer.
7291
7292 2008-03-10  Vladimir Makarov  <vmakarov@redhat.com>
7293
7294         * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
7295         Remove commutativity hint.
7296
7297 2008-03-10  Jakub Jelinek  <jakub@redhat.com>
7298
7299         PR c/35438
7300         PR c/35439
7301         * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
7302         errorneous type.  Check that v is a VAR_DECL.
7303
7304         PR middle-end/35099
7305         * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
7306
7307 2008-03-10  H.J. Lu  <hongjiu.lu@intel.com>
7308
7309         PR tree-optimization/35494
7310         * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
7311         may be overriden at link and run time.
7312
7313 2008-03-10  Richard Guenther  <rguenther@suse.de>
7314
7315         PR tree-optimization/34677
7316         * tree-ssa-pre.c (modify_expr_node_pool): Remove.
7317         (poolify_tree): Likewise.
7318         (modify_expr_template): Likewise.
7319         (poolify_modify_stmt): Likewise.
7320         (insert_fake_stores): Handle all component-ref style stores
7321         in addition to INDIRECT_REF.  Also handle complex types.
7322         Do not poolify the inserted load.
7323         (realify_fake_stores): Do not rebuild the tree but only
7324         make it a SSA_NAME copy.
7325         (init_pre): Remove initialzation of modify_expr_template.
7326         Do not allocate modify_expr_node_pool.
7327         (fini_pre): Do not free modify_expr_node_pool.
7328
7329 2008-03-10  Paul Brook  <paul@codesourcery.com>
7330
7331         * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
7332         to avoid conflicts.
7333
7334 2008-03-10  Paul Brook  <paul@codesourcery.com>
7335             Mark Shinwell  <shinwell@codesourcery.com>
7336
7337         * config/arm/cortex-r4.md: New.
7338         * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
7339         insn attributes.
7340         * config/arm/arm.md: Include cortex-r4.md.
7341         (insn): Add smmls, sdiv and udiv values.
7342         (generic_sched): Don't use generic scheduling for Cortex-R4.
7343         (arm_issue_rate): New function.
7344         (TARGET_SCHED_ISSUE_RATE): Define.
7345
7346 2008-03-10  Sebastian Pop  <sebastian.pop@amd.com>
7347
7348         * doc/invoke.texi (-ftree-loop-distribution): Add an example.
7349
7350 2008-03-10  Richard Guenther  <rguenther@suse.de>
7351
7352         * tree-ssa-pre.c (get_sccvn_value): Simplify.
7353         (compute_avail): Do not add stmt uses to AVAIL_OUT.
7354
7355 2008-03-10  Paolo Bonzini  <bonzini@gnu.org>
7356
7357         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
7358         Set default to true.
7359
7360 2008-03-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7361
7362         * c.opt (Wsynth): Deprecate.
7363         * doc/invoke.texi (Option Summary, Warning Options): Document
7364         -Wno-format-contains-nul.
7365
7366 2008-03-09  Uros Bizjak  <ubizjak@gmail.com>
7367
7368         PR target/35496
7369         * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
7370         ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
7371
7372 2008-03-09  Ira Rosen  <irar@il.ibm.com>
7373
7374         * config/rs6000/rs6000.c (builtin_description): Rename vector
7375         left shift operations.
7376         * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
7377         (altivec_vsl<VI_char>): Rename to ...
7378         (ashl<mode>3): ... new name.
7379         (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
7380         gen_ashlv4si3.
7381         (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
7382
7383 2008-03-08  Richard Guenther  <rguenther@suse.de>
7384
7385         * coverage.h (tree_coverage_counter_addr): Declare.
7386         * coverage.c (tree_coverage_counter_addr): New function.
7387         * tree-profile.c (tree_gen_edge_profiler): Unshare counter
7388         before using again.
7389         (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
7390         (tree_gen_one_value_profiler): Likewise.
7391         (tree_gen_ic_profiler): Likewise.
7392         (tree_gen_average_profiler): Likewise.
7393         (tree_gen_ior_profiler): Likewise.
7394
7395 2008-03-08  Richard Guenther  <rguenther@suse.de>
7396
7397         * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
7398         (vn_binary_op_insert): Likewise.
7399         (vn_unary_op_lookup): Likewise.
7400         (vn_unary_op_insert): Likewise.
7401         (vn_nary_op_lookup): Declare.
7402         (vn_nary_op_insert): Likewise.
7403         * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
7404         and binary hashes, use a single obstack for unary_op_pool
7405         and binary_op_pool.
7406         (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
7407         a single struct vn_nary_op_s.  Store tree code length and
7408         a variable number of operands.
7409         (struct vn_reference_op_struct): Remove unused op2.
7410         (vn_reference_op_eq): Do not compare op2.
7411         (vn_reference_op_compute_hash): Do not compute hash of op2.
7412         (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
7413         (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
7414         with vn_nary_op_compute_hash.
7415         (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
7416         (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
7417         vn_nary_op_lookup.
7418         (vn_unary_op_insert, vn_binary_op_insert): Replace with
7419         vn_nary_op_insert.
7420         (visit_unary_op): Call nary functions.
7421         (visit_binary_op): Likewise.
7422         (process_scc): Adjust for struct vn_tables_s changes.
7423         (allocate_vn_table): Likewise.
7424         (free_vn_table): Likewise.
7425         * tree-vn.c (vn_add): Call nary functions.
7426         (vn_lookup): Likewise.
7427
7428 2008-03-08  Jakub Jelinek  <jakub@redhat.com>
7429
7430         PR target/35498
7431         * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
7432         wdst back after sync_compare_and_swapqhi_internal.
7433
7434 2008-03-08  Uros Bizjak  <ubizjak@gmail.com>
7435
7436         PR target/22152
7437         * config/i386/i386-modes.def (V1DI): New vector mode.
7438         * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
7439         * config/i386/mmx.md (MMXMODEI8): New mode iterator.
7440         (MMXMODE248): Ditto.
7441         (MMXMODE): Add V1DI mode.
7442         (mmxvecsize): Change DI mode to V1DI mode.
7443         ("mov<mode>): Use MMXMODEI8 mode iterator.
7444         ("*mov<mode>_internal_rex64"): Ditto.
7445         ("*mov<mode>_internal"): Ditto.
7446         ("mmx_add<mode>3"): Ditto.  Handle V1DImode for TARGET_SSE2.
7447         ("mmx_sub<mode>3"): Ditto.
7448         ("mmx_adddi3"): Remove insn pattern.
7449         ("mmx_subdi3"): Ditto.
7450         ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
7451         ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
7452         ("mmx_ashl<mode>3"): Ditto.
7453         ("mmx_lshrdi3"): Remove insn pattern.
7454         ("mmx_ashldi3"): Ditto.
7455         * config/i386/i386.c (classify_argument): Handle V1DImode.
7456         (function_arg_advance_32): Ditto.
7457         (function_arg_32): Ditto.
7458         (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
7459         mmx_addv1di3 insn pattern.
7460         [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
7461         [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
7462         IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
7463         IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
7464         Remove definitions of built-in functions.
7465         (V1DI_type_node): New node.
7466         (v1di_ftype_v1di_int): Ditto.
7467         (v1di_ftype_v1di_v1di): Ditto.
7468         (v2si_ftype_v2si_si): Ditto.
7469         (v4hi_ftype_v4hi_di): Remove node.
7470         (v2si_ftype_v2si_di): Ditto.
7471         (ix86_init_mmx_sse_builtins): Handle V1DImode.
7472         (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
7473         Redefine builtins using def_builtin_const with *_ftype_*_int node.
7474         (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
7475         Add new builtins using def_builtin_const.
7476         (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
7477         IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
7478         IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
7479         * config/i386/mmintrin.h (__v1di): New typedef.
7480         (_mm_add_si64): Cast arguments to __v1di type.
7481         (_mm_sub_si64): Ditto.
7482         (_mm_sll_pi16): Cast __count to __v4hi type.
7483         (_mm_sll_pi32): Cast __count to __v2si type.
7484         (_mm_sll_si64): Cast arguments to __v1di type.
7485         (_mm_srl_pi16): Cast __count to __v4hi type.
7486         (_mm_srl_pi32): Cast __count to __v2si type.
7487         (_mm_srl_si64): Cast arguments to __v1di type.
7488         (_mm_sra_pi16): Cast __count to __v4hi type.
7489         (_mm_sra_pi32): Cast __count to __v2si type.
7490         (_mm_slli_pi16): Use __builtin_ia32_psllwi.
7491         (_mm_slli_pi32): Use __builtin_ia32_pslldi.
7492         (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
7493         (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
7494         (_mm_srli_pi32): Use __builtin_ia32_psrldi.
7495         (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
7496         (_mm_srai_pi16): Use __builtin_ia32_psrawi.
7497         (_mm_srai_pi32): Use __builtin_ia32_psradi.
7498         * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
7499         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
7500         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
7501         __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
7502
7503 2008-03-07  Joseph Myers  <joseph@codesourcery.com>
7504
7505         * doc/include/texinfo.tex: Update to version 2008-03-07.10.
7506
7507 2008-03-07  Peter Bergner  <bergner@vnet.ibm.com>
7508
7509         PR target/35373
7510         * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
7511         reg+const addressing for Altivec modes.  Don't generate reg+reg
7512         addressing for TFmode or TDmode quantities.
7513
7514 2008-03-07  Paolo Bonzini  <bonzini@gnu.org>
7515
7516         * c-common.c (vector_types_convertible_p): Call langhook
7517         instead of comptypes.
7518
7519 2008-03-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
7520
7521         PR tree-opt/35402
7522         * tree-ssa-ccp.c (get_symbol_constant_value): Handle
7523         integral and scalar float variables which have a
7524         NULL DECL_INITIAL.
7525
7526 2008-03-06  Nathan Froyd  <froydnj@codesourcery.com>
7527
7528         * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
7529         dwarf_register_span hook when emitting unwind information for
7530         register-to-memory saves.
7531         * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
7532         (rs6000_frame_related): Remove call to spe_synthesize_frame.
7533
7534 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
7535
7536         * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
7537         for the same VAR_DECL.
7538
7539 2008-03-06  Tom Tromey  <tromey@redhat.com>
7540
7541         * treelang: Delete.
7542         * doc/standards.texi (Standards): Don't mention treelang.
7543         * doc/invoke.texi (Overall Options): Don't mention treelang.
7544         * doc/install.texi (Prerequisites): Don't mention bison or
7545         treelang.
7546         (Configuration): Don't mention treelang.
7547         (Building): Likewise.
7548         * doc/frontends.texi (G++ and GCC): Don't mention treelang.
7549
7550 2008-03-06  Paolo Bonzini  <bonzini@gnu.org>
7551
7552         * simplify-rtx.c (simplify_subreg): Remove useless shifts from
7553         word-extractions out of a multi-word object.
7554
7555 2008-03-06  Richard Guenther  <rguenther@suse.de>
7556
7557         * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
7558         * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
7559         result type and precision.
7560         * expr.c (get_inner_reference): Set unsignedp based on the result
7561         type of BIT_FIELD_REF.
7562         * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
7563         * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
7564         (try_instantiate_multiple_fields): Likewise.  Use the correct type
7565         for BIT_FIELD_REF.
7566         (sra_build_assignment): Likewise.
7567         (sra_build_elt_assignment): Likewise.
7568         (sra_explode_bitfield_assignment): Likewise.
7569         * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
7570         * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
7571         set BIT_FIELD_REF_UNSIGNED.
7572         (vectorizable_load): Likewise.
7573
7574 2008-03-06  Andreas Krebbel  <krebbel1@de.ibm.com>
7575
7576         * cse.c (cse_extended_basic_block): Invalidate artificial defs
7577         at bb start.
7578
7579 2008-03-06  Richard Guenther  <rguenther@suse.de>
7580
7581         * alias.c (struct alias_set_entry): Move has_zero_child field
7582         to pack with alias_set.
7583
7584 2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
7585
7586         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
7587         32bit host.
7588
7589 2008-03-05  Ian Lance Taylor  <iant@google.com>
7590
7591         * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
7592
7593 2008-03-05  Kenneth Zadeck  <zadeck@naturalbridge.com>
7594
7595         * fwprop.c (update_df): Support width and offset parameters of
7596         df_ref_create.
7597         * ra-conflict.c (mark_reg_store, clear_reg_in_live,
7598         global_conflicts): Change DF_REF_EXTRACT to either
7599         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
7600         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
7601         * df-scan.c (df_ref_record, df_defs_record,
7602         df_ref_create_structure, df_def_record_1, df_uses_record,
7603         df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
7604         df_bb_refs_collect, df_entry_block_defs_collect,
7605         df_exit_block_uses_collect): Support new width and offset fields.
7606         (ref_extract_pool): New storage pool.
7607         (df_free_ref): New function.
7608         (df_reg_chain_unlink, df_free_collection_rec,
7609         df_sort_and_compress_refs): Call df_free_ref.
7610         (df_ref_equal_p, df_ref_compare): Compare offset and width fields
7611         of df_ref_extract.
7612         (df_ref_create_structure): Allocate df_ref_extract if offset and
7613         width fields are used.
7614         (df_def_record_1): Get offset and width from ZERO_EXTRACT.
7615         (df_uses_record): Get offset and width from ZERO_EXTRACT 
7616         and SIGN_EXTRACT.
7617         * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
7618         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
7619         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
7620         * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
7621         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
7622         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
7623         (df_ref_extract): New structure.
7624         (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
7625         (df_ref_create): Add width and offset parameters.
7626         
7627 2008-03-05  Richard Guenther  <rguenther@suse.de>
7628
7629         * tree-ssa-structalias.c (get_constraint_for_component_ref):
7630         Use ranges_overlap_p.
7631         (offset_overlaps_with_access): Rename
7632         to ranges_overlap_p and move ...
7633         * tree-flow-inline.h (ranges_overlap_p): ... here.
7634
7635         * tree.h (get_inner_reference, handled_component_p): Update
7636         comments.
7637
7638         * tree.h (record_component_aliases, get_alias_set,
7639         alias_sets_conflict_p, alias_sets_must_conflict_p,
7640         objects_must_conflict_p): Move declarations ...
7641         * alias.h (record_component_aliases, get_alias_set,
7642         alias_sets_conflict_p, alias_sets_must_conflict_p,
7643         objects_must_conflict_p): ... here.
7644         Include coretypes.h.
7645         * Makefile.in (ALIAS_H): Add coretypes.h dependency.
7646
7647 2008-03-05  Aldy Hernandez  <aldyh@redhat.com>
7648
7649         * cfg.c: Include tree-flow.h.
7650         (remove_edge_raw): Call redirect_edge_var_map_clear.
7651         (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
7652         * tree-flow-inline.h (redirect_edge_var_map_def): New.
7653         (redirect_edge_var_map_result): New.
7654         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
7655         PENDING_STMT use with redirect_edge_var_map_*.
7656         * tree-ssa.c (edge_var_maps): New definition.
7657         (redirect_edge_var_map_add): New.
7658         (redirect_edge_var_map_clear): New.
7659         (redirect_edge_var_map_dup): New.
7660         (redirect_edge_var_map_vector): New.
7661         (redirect_edge_var_map_destroy): New.
7662         (ssa_redirect_edge): Replace PENDING_STMT use with
7663         redirect_edge_var_map_*.
7664         (flush_pending_stmts): Same.
7665         (delete_tree_ssa): Destroy edge var map.
7666         * tree-flow.h (struct _edge_var_map): New.
7667         Define edge_var_map vector type.
7668         Declare redirect_edge_var_map_* prototypes.
7669         * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
7670         * tree-cfg.c (reinstall_phi_args): Replace
7671         PENDING_STMT use with redirect_edge_var_map_*.
7672
7673 2008-03-05  Richard Guenther  <rguenther@suse.de>
7674
7675         PR tree-optimization/35472
7676         * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
7677         whose single use_stmt has a overlapping set of loaded and
7678         stored symbols as that use_stmt might be a noop assignment then.
7679
7680 2008-03-05  Joel Sherrill <joel.sherrill@oarcorp.com>
7681
7682         * gthr-rtems.h: Implement __gthread_mutex_destroy.
7683
7684 2008-03-05  Richard Guenther  <rguenther@suse.de>
7685
7686         PR c++/35336
7687         * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
7688         should be constants.
7689         * tree-cfg.c (verify_expr): Verify it.
7690         * fold-const.c (fold_truthop): Remove code generating
7691         BIT_FIELD_REFs of structure bases.
7692         (fold_binary): Likewise.
7693         (fold_ternary): Position and size of BIT_FIELD_REFs are
7694         always host integers.
7695         (make_bit_field_ref): Remove.
7696         (optimize_bit_field_compare): Remove.
7697         (all_ones_mask_p): Remove.
7698
7699 2008-03-05  Gabor Loki  <loki@gcc.gnu.org>
7700
7701         PR gcc/33009
7702         * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
7703         (split_block_and_df_analyze): New. Split basic block and rebuild
7704         dataflow.
7705         (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
7706         SPLIT_BLOCK.
7707         (split_pattern_seq): Likewise.
7708         (erase_matching_seqs): Likewise.
7709         (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
7710
7711 2008-03-04  Geoff Keating  <geoffk@apple.com>
7712
7713         * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
7714         declaration and code.
7715         (tree_invalid_nonnegative_warnv_p): Likewise.
7716
7717 2008-03-05  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
7718
7719         * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
7720         examples.  Truncate option-names then causing overfull hbox.
7721
7722 2008-03-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7723
7724         PR target/35222
7725         * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
7726         on hpux10.
7727         * configure: Rebuilt.
7728
7729 2008-03-04  Rafael Espindola  <espindola@google.com>
7730
7731         * fold-const.c (tree_simple_nonnegative_warnv_p): New.
7732         (tree_unary_nonnegative_warnv_p): New.
7733         (tree_binary_nonnegative_warnv_p): New.
7734         (tree_single_nonnegative_warnv_p): New.
7735         (tree_invalid_nonnegative_warnv_p): New.
7736         (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
7737
7738 2008-03-04  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7739
7740         PR 28322
7741         * opts.c (handle_option): Postpone 'unknown option' errors only for
7742         warning options.
7743
7744 2008-03-04  H.J. Lu  <hongjiu.lu@intel.com>
7745
7746         PR target/35453
7747         * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
7748         (_SIDD_XXX): This.
7749
7750 2008-03-04  Rafael Espindola  <espindola@google.com>
7751
7752         * fold-const.c (tree_unary_nonzero_warnv_p): New.
7753         (tree_binary_nonzero_warnv_p): New.
7754         (tree_single_nonzero_warnv_p): New.
7755         (tree_expr_nonzero_warnv_p): Redefine using the new functions.
7756
7757 2008-03-04  Uros Bizjak  <ubizjak@gmail.com>
7758
7759         PR middle-end/35456
7760         * fold-const.c (fold_cond_expr_with_comparison): Prevent
7761         transformations for modes that have signed zeros.
7762         * ifcvt.c (noce_try_abs): Ditto.
7763
7764 2008-03-04  Joseph Myers  <joseph@codesourcery.com>
7765
7766         * config/i386/i386.c (override_options): Force
7767         -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
7768
7769 2008-03-04  Jan Hubicka  <jh@suse.cz>
7770
7771         PR c++/35262
7772         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
7773         in last commit.
7774
7775 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
7776
7777         * config/i386/i386.md (allocate_stack_worker_32): Use  __chkstk
7778         label to probe the stack.
7779
7780 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
7781
7782         * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
7783         (__gthr_win32_mutex_destroy): Declare.
7784         [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
7785         __gthr_win32_mutex_destroy.
7786         * config/i386/gthr-win32.c  (__gthr_win32_mutex_destroy): Define.
7787
7788 2008-03-03  Jan Hubicka  <jh@suse.cz>
7789
7790         PR c++/35262
7791         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
7792         aggressive on inlining cold calls.
7793
7794 2008-03-03  Richard Guenther  <rguenther@suse.de>
7795
7796         * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
7797         struct copies into the expression table.
7798         (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
7799         (try_to_simplify): Likewise.
7800         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
7801         integral and pointer arguments which do not change the
7802         precision to NOP_EXPRs.
7803         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
7804         VIEW_CONVERT_EXPR case.
7805
7806 2008-03-02  Sebastian Pop  <sebastian.pop@amd.com>
7807
7808         * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
7809         defined in a loop at depth 0 is invariant.
7810         * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
7811         * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
7812         be called at loop depth 0.
7813
7814 2008-03-02  Jakub Jelinek  <jakub@redhat.com>
7815
7816         PR driver/35420
7817         * gcc.c (process_command): Update copyright notice dates.
7818         * gcov.c (print_version): Likewise.
7819         * gcov-dump.c (print_version): Likewise.
7820         * mips-tfile.c (main): Likewise.
7821         * mips-tdump.c (main): Likewise.
7822
7823 2008-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7824
7825         PR 24924
7826         * c-common.c (flag_permissive): Delete.
7827         (constant_expression_warnings): Check flags first.
7828         (constant_expression_error): New.
7829         * c-common.h (flag_permissive): Delete.
7830         (constant_expression_error): Declare.
7831         * flags.h (flag_permissive): Declare. Update description.
7832         * diagnostic.c (pedwarn): Update.
7833         (permerror): New.
7834         * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
7835         (permissive_error_kind): New.
7836         * toplev.c (flag_permissive): Define. Update description.
7837         * toplev.h (permissive_error_kind): Declare.
7838         * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
7839         (pedwarn_c90): Use pedantic_warning_kind.
7840         * c-opts.c (c_common_post_options): flag_permissive does not affect
7841         flag_pedantic_errors.
7842
7843 2008-03-02  Joseph Myers  <joseph@codesourcery.com>
7844
7845         * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
7846         __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
7847         __absvsi2, __absvDI2): Use unsigned arithmetic.
7848
7849 2008-03-02  Andi Kleen  <ak@suse.de>
7850             Richard Guenther  <rguenther@suse.de>
7851
7852         * struct-equiv.c: Remove file.
7853         * cfg_cleanup.c (condjump_equiv_p): Remove.
7854         * Makefile.in (OBJS-common): Remove struct-equiv.o.
7855         (struct-equiv.o): Remove rule.
7856         * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
7857         insns_match_p, struct_equiv_block_eq, struct_equiv_init, 
7858         rtx_equiv_p, condjump_equiv_p): Remove prototypes.
7859
7860 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
7861
7862         * ifcvt.c (noce_process_if_block): Try to handle only the then
7863         block if the else block exists but isn't suitable.
7864
7865 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
7866
7867         PR gcc/35063
7868         * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
7869         * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
7870         regression from previous patch.
7871
7872 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
7873
7874         PR gcc/35063
7875         * gthr.h: Add __gthread_mutex_destroy as a function that must be
7876         implemented.
7877         * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
7878         * gthr-single.h (__gthread_mutex_destroy): Likewise.
7879         * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
7880         * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
7881         * gthr-nks.h (__gthread_mutex_destroy): Likewise.
7882         * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
7883         * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
7884         (__gthread_mutex_destroy_function): Rename to
7885         __gthread_mutex_destroy.
7886         * gthr-dce.h (__gthread_mutex_destroy): Call
7887         pthread_mutex_destroy.
7888         * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
7889         * gthr-posix.h (__gthread_mutex_destroy): Likewise.
7890         * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
7891
7892 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
7893
7894         * df-scan.c (df_ref_chain_change_bb): Simplify.
7895         (df_insn_change_bb): Add new_bb argument.  Simplify.  Call
7896         set_block_for_insn if there's any change.
7897         * df.h ((df_insn_change_bb): Fix prototype.
7898         * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
7899         df_insn_change_bb, don't call set_block_for_insn.
7900         * emit-rtl.c (reorder_insns): Likewise.
7901         * haifa-sched.c (move_insn): Likewise.
7902
7903 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
7904
7905         * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
7906
7907 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
7908
7909         * tree-flow-inline.h (next_readonly_imm_use): Return
7910         NULL_USE_OPERAND_P after the end.
7911
7912 2008-03-01  Richard Guenther  <rguenther@suse.de>
7913
7914         PR tree-optimization/35411
7915         * tree-sra.c (sra_build_assignment): Split conversion to
7916         final type to a separate statement if we are not assigning
7917         to a register.
7918
7919 2008-02-29  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
7920
7921         * fold-const.c (fold_convertible_p): Correct the logic to follow
7922         that in fold_convert().
7923
7924 2008-02-29  Douglas Gregor  <doug.gregor@gmail.com>
7925
7926         PR c++/35315
7927         * tree-inline.c (build_duplicate_type): When we make a
7928         duplicate type, make it unique in the canonical types system.
7929
7930 2008-02-29  Tom Tromey  <tromey@redhat.com>
7931
7932         * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
7933         input_file_stack_history, input_file_stack_restored): Remove.
7934         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
7935         * input.h (struct file_stack): Remove.
7936         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
7937         (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
7938         Likewise.
7939         * diagnostic.h (struct diagnostic_context) <last_module>: Change
7940         type.
7941         (diagnostic_last_module_changed): Add 'map' argument.
7942         (diagnostic_set_last_function): Likewise.
7943         * diagnostic.c (undiagnostic_report_current_module): Iterate using
7944         line map, not input_file_stack.
7945         * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
7946
7947 2008-02-29  Paul Brook  <paul@codesourcery.com>
7948
7949         * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
7950
7951 2008-02-29  Paul Brook  <paul@codesourcery.com>
7952
7953         * config/arm/ieee754-df.S (muldf3): Use RET macros.
7954
7955 2008-02-29  Richard Guenther  <rguenther@suse.de>
7956
7957         * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
7958         vn_lookup_or_add.
7959         * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
7960         value for comparing for a store match.
7961         (simplify_unary_expression): Do nothing for SSA_NAMEs.
7962         (try_to_simplify): Do not do a full-blown reference lookup.
7963
7964 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
7965
7966         * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
7967         (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
7968
7969         * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
7970
7971 2008-02-29  Sebastian Pop  <sebastian.pop@amd.com>
7972
7973         * tree-loop-linear.c (try_interchange_loops): Compare memory access
7974         strides against cache sizes.
7975
7976 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
7977
7978         * config/sh/sh.c (sh_secondary_reload): Handle loading a float
7979         constant to fpul.
7980
7981 2008-02-28  Richard Sandiford  <rsandifo@nildram.co.uk>
7982
7983         * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
7984         of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
7985         is smaller than the original promoted value.
7986         (simplify_subreg): If OP is a SUBREG, try to preserve its
7987         SUBREG_PROMOTED_VAR_P information.
7988
7989 2008-02-28  Steven Bosscher  <stevenb.gcc@gmail.com>
7990
7991         * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
7992         (VN_INFO_GET): Allocate new objects on the obstack.
7993         (init_scc_vn): Initialize the obstack.  Use XDELETE instead of free
7994         for rpo_numbers_temp, for consistency.
7995         (free_scc_vn): Free the obstack.
7996
7997 2008-02-28  Sebastian Pop  <sebastian.pop@amd.com>
7998
7999         * doc/invoke.texi: Document -ftree-loop-distribution.
8000         * tree-loop-distribution.c: New.
8001         * tree-pass.h (pass_loop_distribution): New.
8002         * graphds.h (struct graph): Add htab_t indices.
8003         * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
8004         * tree-vectorizer.c (rename_variables_in_loop): Extern.
8005         (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
8006         * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
8007         * tree-data-ref.c (debug_data_dependence_relations): New.
8008         (dump_data_dependence_relation): Also print data references.
8009         (free_data_ref): Extern.
8010         (same_access_functions): Moved...
8011         (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
8012         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
8013         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
8014         struct rdg_vertex_info, rdg_vertex_for_stmt): New.
8015         (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
8016         (stmts_from_loop): Skip LABEL_EXPR.
8017         (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
8018         New.
8019         (build_rdg): Initialize rdg->indices htab.
8020         (free_rdg, stores_from_loop, ref_base_address,
8021         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
8022         have_similar_memory_accesses_1, ref_base_address_1,
8023         remove_similar_memory_refs): New.
8024         * tree-data-ref.h: Depend on tree-chrec.h.
8025         (debug_data_dependence_relations, free_data_ref): Declared.
8026         (same_access_functions): ... here.
8027         (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
8028         New.
8029         (struct rdg_vertex): Add has_mem_write and has_mem_reads.
8030         (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
8031         RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
8032         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
8033         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
8034         rdg_vertex_for_stmt): Declared.
8035         (struct rdg_edge): Add level.
8036         (RDGE_LEVEL): New.
8037         (free_rdg, stores_from_loop, remove_similar_memory_refs,
8038         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
8039         Declared.
8040         (rdg_has_similar_memory_accesses): New.
8041         * tree-vect-analyze.c: Remove unused static decls.
8042         * lambda.h (dependence_level): New.
8043         * common.opt (ftree-loop-distribution): New.
8044         * tree-flow.h (mark_virtual_ops_in_bb, 
8045         slpeel_tree_duplicate_loop_to_edge_cfg,
8046         rename_variables_in_loop): Declared.
8047         * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
8048         (OBJS-common): Add tree-loop-distribution.o.
8049         (tree-loop-distribution.o): New rule.
8050         * tree-cfg.c (mark_virtual_ops_in_bb): New.
8051         (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
8052         * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
8053
8054 2008-02-28  Joseph Myers  <joseph@codesourcery.com>
8055
8056         PR target/33963
8057         * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
8058         other than structures and unions.
8059
8060 2008-02-28  Richard Guenther  <rguenther@suse.de>
8061
8062         Revert:
8063         2008-02-26  Richard Guenther  <rguenther@suse.de>
8064
8065         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
8066         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
8067         (lookup_decl_from_uid): Declare.
8068         (remove_decl_from_map): Likewise.
8069         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
8070         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
8071         (decl_for_uid_map): New global hashtable mapping DECL_UID
8072         to the decl tree.
8073         (init_ttree): Allocate it.
8074         (insert_decl_to_uid_decl_map): New helper function.
8075         (make_node_stat): Insert new decls into the map.
8076         (copy_node_stat): Likewise.
8077         (lookup_decl_from_uid): New function.
8078         (remove_decl_from_map): Likewise.
8079         (print_decl_for_uid_map_statistics): New helper.
8080         (dump_tree_statistics): Call it.
8081
8082         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
8083         (referenced_var_iterator): Adjust.
8084         (FOR_EACH_REFERENCED_VAR): Adjust.
8085         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
8086         (num_referenced_vars): Adjust.
8087         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
8088         (first_referenced_var): Remove.
8089         (end_referenced_vars_p): Likewise.
8090         (next_referenced_var): Likewise.
8091         (referenced_var_iterator_set): New helper function.
8092         * tree-dfa.c (referenced_var_lookup): Adjust.
8093         (referenced_var_check_and_insert): Likewise.
8094         (remove_referenced_var): Likewise.
8095         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
8096         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
8097         (verify_call_clobbering): Likewise.
8098         (verify_memory_partitions): Likewise.
8099         (init_tree_ssa): Allocate bitmap instead of hashtable for
8100         referenced_vars.
8101         (delete_tree_ssa): Adjust.
8102         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
8103         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
8104         (compute_tag_properties): Likewise.
8105         (set_initial_properties): Likewise.
8106         (find_partition_for): Likewise.
8107         (update_reference_counts): Likewise.
8108         (dump_may_aliases_for): Likewise.
8109         * tree-ssa-operands.c (add_virtual_operand): Likewise.
8110         (add_call_clobber_ops): Likewise.
8111         (add_call_read_ops): Likewise.
8112         (get_asm_expr_operands): Likewise.
8113         * tree-into-ssa.c (dump_decl_set): Likewise.
8114         (update_ssa): Likewise.
8115         * tree-sra.c (scan_function): Likewise.
8116         (decide_instantiations): Likewise.
8117         (scalarize_parms): Likewise.
8118         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
8119         (dsa_named_for): Likewise.
8120         * tree-ssa-structalias.c (update_alias_info): Likewise.
8121         (merge_smts_into): Likewise.
8122
8123 2008-02-27  David Daney  <ddaney@avtrex.com>
8124
8125         PR target/34409
8126         * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
8127         * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
8128         * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
8129         * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
8130         * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
8131
8132 2008-02-27  Uros Bizjak  <ubizjak@gmail.com>
8133
8134         PR target/25477
8135         * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
8136         (BUILT_IN_NEXTTOWARD): Remove.
8137         (BUILT_IN_NEXTTOWARDF): Ditto.
8138         * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
8139         alloca/strcpy/strcat.  Remove commented-out code.  Fix whitespace.
8140
8141 2008-02-27  Tom Tromey  <tromey@redhat.com>
8142
8143         * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
8144         DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
8145
8146 2008-02-27  Jan Beulich  <jbeulich@novell.com>
8147
8148         * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
8149         update the respective field on newdecl.
8150
8151 2008-02-27  Revital Eres  <eres@il.ibm.com>
8152
8153         PR rtl-optimization/34999
8154         * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
8155         crossing edges that ends with a call insn.
8156         (fix_up_fall_thru_edges): Handle crossing edges that ends with a
8157         call insn and clear the EDGE_CROSSING flag of the crossing edge
8158         when fixing fallthru edges.
8159
8160 2008-02-27  Richard Guenther  <rguenther@suse.de>
8161
8162         PR middle-end/35390
8163         * fold-const.c (fold_unary): Return the correct argument,
8164         converted to the result type.
8165
8166 2008-02-27  Richard Guenther  <rguenther@suse.de>
8167
8168         PR middle-end/34971
8169         * expr.c (expand_expr_real_1): Assert on rotates that operate
8170         on partial modes.
8171         * fold-const.c (fold_binary): Use the types precision, not the
8172         bitsize of the mode if folding rotate expressions.  Build rotates
8173         only for full modes.
8174
8175 2008-02-27  Jakub Jelinek  <jakub@redhat.com>
8176
8177         * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
8178         and CPP_PRAGMA_EOL.
8179         * c-pragma.c (pragma_ns_name): New typedef.
8180         (registered_pp_pragmas): New variable.
8181         (c_pp_lookup_pragma): New function.
8182         (c_register_pragma_1): If flag_preprocess_only, do nothing
8183         for non-expanded pragmas, for expanded ones push pragma's
8184         namespace and name into registered_pp_pragmas vector.
8185         (c_invoke_pragma_handler): Register OpenMP pragmas even when
8186         flag_preprocess_only, don't register GCC pch_preprocess
8187         pragma if flag_preprocess_only.
8188         * c-opts.c (c_common_init): Call init_pragma even if
8189         flag_preprocess_only.
8190         * c-pragma.c (c_pp_lookup_pragma): New prototype.
8191         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
8192         cpp_register_pragma if flag_preprocess_only.
8193
8194 2008-02-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8195
8196         PR c/28800
8197         * c-parser.c (c_parser_translation_unit): Warn for empty
8198         translation unit, not empty source file.
8199
8200 2008-02-26  Paul Brook  <paul@codesourcery.com>
8201
8202         * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
8203         operand for Thumb-2.
8204         * config/arm/arm.h (reg_class): Add CORE_REGS.
8205         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
8206         (BASE_REG_CLASS): Use CORE_REGS.
8207         (PREFERRED_RELOAD_CLASS): Add STACK_REG.
8208         (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
8209         (REGNO_OK_FOR_INDEX_P): Exclude SP.
8210         (ARM_REG_OK_FOR_INDEX_P): Always define.  Use
8211         ARM_REGNO_OK_FOR_INDEX_P.
8212         (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
8213         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
8214         arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
8215         (ldm/stm peepholes): Ditto.
8216         * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
8217         * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
8218         * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
8219         * config/arm/constraints.md: Enable "k" constraint on ARM.
8220
8221 2008-02-27  Ben Elliston  <bje@au.ibm.com>
8222
8223         * config/rs6000/rs6000.c: Annotate cache line size field in all
8224         instances of struct processor_costs.
8225
8226 2008-02-26  David Edelsohn  <edelsohn@gnu.org>
8227
8228         * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
8229         dse2, gcse, if_conversion, if_after_combine, if_after_reload,
8230         jump_bypass): New counters.
8231         * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
8232         * dce.c (gate_ud_dce): Same.
8233         (gate_fast_dce): Same.
8234         * dse.c (gate_dse1): New function.
8235         (gate_dse2): New function.
8236         (gate_dse): Merge results of new gate functions.
8237         * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
8238         (gate_handle_jump_bypass): Add dbg_cnt.
8239         (gate_handle_gcse): Add dbg_cnt.
8240         * ifcvt.c (gate_handle_if_conversion): Same.
8241         (gate_handle_if_after_combine): Same.
8242         (gate_handle_if_after_reload): Same.
8243         * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
8244
8245 2008-02-26  Edmar Wienskoski  <edmar@freescale.com>
8246
8247         * config/rs6000/rs6000.c (processor_costs): Update e300 cache
8248         line sizes.
8249         * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
8250
8251 2008-02-26  Jason Merrill  <jason@redhat.com>
8252
8253         PR c++/35315
8254         * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE 
8255         alone if it's the naming decl for the type's main variant.
8256
8257 2008-02-26  Tom Tromey  <tromey@redhat.com>
8258
8259         * system.h (USE_MAPPED_LOCATION): Poison.
8260         * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
8261         * tree-cfg.c (make_cond_expr_edges): Remove old location code.
8262         (make_goto_expr_edges): Likewise.
8263         (remove_bb): Likewise.
8264         (execute_warn_function_return): Likewise.
8265         * basic-block.h (struct edge_def) <goto_locus>: Change type to
8266         location_t.
8267         * c-common.c (fname_decl): Remove old location code.
8268         * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
8269         location code.
8270         * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
8271         variant.
8272         (ASM_INPUT_SOURCE_LOCATION): Likewise.
8273         (gen_rtx_ASM_INPUT): Likewise.
8274         (gen_rtx_ASM_INPUT_loc): Likewise.
8275         (get_rtx_asm_OPERANDS): Remove.
8276         * cfglayout.c (insn_locators_alloc): Remove old location code.
8277         (set_curr_insn_source_location): Likewise.
8278         (curr_insn_locator): Likewise.
8279         * print-tree.c (print_node): Remove old location code.
8280         * tree-mudflap.c (mf_varname_tree): Remove old location code.
8281         (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
8282         * cfgexpand.c (expand_gimple_cond_expr): Don't use
8283         location_from_locus.
8284         (construct_exit_block): Remove old location code.
8285         * emit-rtl.c (force_next_line_note): Remove old location code.
8286         * profile.c (branch_prob): Remove old location code.
8287         * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
8288         LOC_LINE): Remove old-location variants.
8289         * langhooks.c (lhd_print_error_function): Remove old location
8290         code.
8291         * configure, config.in: Rebuilt.
8292         * configure.ac (--enable-mapped-location): Remove.
8293         * c-decl.c (c_init_decl_processing): Remove old location code.
8294         (finish_function): Likewise.
8295         * recog.c (decode_asm_operands): Remove old location code.
8296         * c-pch.c (c_common_read_pch): Remove old location code.
8297         * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
8298         variants.
8299         * gimple-low.c (lower_function_body): Remove old location code.
8300         * toplev.c (unknown_location): Remove.
8301         (push_srcloc): Remove old-location variant.
8302         (process_options): Remove old location code.
8303         (lang_dependent_init): Likewise.
8304         * input.h (UNKNOWN_LOCATION): Move definition.
8305         (location_t): Undeprecate.
8306         (source_locus): Remove.
8307         (location_from_locus): Remove.
8308         (struct location_s): Remove.
8309         Remove all old-location code.
8310         (input_line, input_filename): Remove.
8311         * final.c (final_scan_insn): Remove old location code.
8312         * diagnostic.c (diagnostic_build_prefix): Remove
8313         USE_MAPPED_LOCATION test.
8314         * tree.h (gimple_stmt) <locus>: Now a location_t.
8315         (tree_exp) <locus>: Likewise.
8316         (DECL_IS_BUILTIN): Remove old-location variant.
8317         (annotate_with_file_line, annotate_with_locus): Likewise.
8318         (expr_locus, set_expr_locus): Update.
8319         * tree.c (build1_stat): Remove old location code.
8320         (last_annotated_node): Remove.
8321         (annotate_with_file_line): Remove old-location variant.
8322         (annotate_with_locus): Likewise.
8323         (expr_location): Remove old location code.
8324         (set_expr_location): Likewise.
8325         (expr_has_location): Likewise.
8326         (expr_locus): Likewise.
8327         (set_expr_locus): Likewise.
8328         (expr_filename): Don't use location_from_locus.
8329         (expr_lineno): Likewise.
8330         * rtl-error.c (location_for_asm): Remove old location code.
8331         * c-lex.c (cb_line_change): Remove old location code.
8332         (fe_file_change): Likewise.
8333         (cb_def_pragma): Likewise.
8334         (c_lex_with_flags): Likewise.
8335         * gengtype.c (do_typedef): Don't special-case location types.
8336         (define_location_structures): Remove.
8337         (main): Don't call define_location_structures.
8338         * tree-pretty-print.c (dump_implicit_edges): Remove old location
8339         code.
8340
8341 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
8342
8343         PR 26264
8344         * builtins.def (BUILT_IN_STDARG_START): Remove.
8345         * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
8346         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
8347         * tree-inline.c (inline_forbidden_p_1): Likewise.
8348         
8349 2008-02-26  Richard Guenther  <rguenther@suse.de>
8350
8351         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
8352         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
8353         (lookup_decl_from_uid): Declare.
8354         (remove_decl_from_map): Likewise.
8355         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
8356         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
8357         (decl_for_uid_map): New global hashtable mapping DECL_UID
8358         to the decl tree.
8359         (init_ttree): Allocate it.
8360         (insert_decl_to_uid_decl_map): New helper function.
8361         (make_node_stat): Insert new decls into the map.
8362         (copy_node_stat): Likewise.
8363         (lookup_decl_from_uid): New function.
8364         (remove_decl_from_map): Likewise.
8365         (print_decl_for_uid_map_statistics): New helper.
8366         (dump_tree_statistics): Call it.
8367
8368         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
8369         (referenced_var_iterator): Adjust.
8370         (FOR_EACH_REFERENCED_VAR): Adjust.
8371         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
8372         (num_referenced_vars): Adjust.
8373         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
8374         (first_referenced_var): Remove.
8375         (end_referenced_vars_p): Likewise.
8376         (next_referenced_var): Likewise.
8377         (referenced_var_iterator_set): New helper function.
8378         * tree-dfa.c (referenced_var_lookup): Adjust.
8379         (referenced_var_check_and_insert): Likewise.
8380         (remove_referenced_var): Likewise.
8381         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
8382         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
8383         (verify_call_clobbering): Likewise.
8384         (verify_memory_partitions): Likewise.
8385         (init_tree_ssa): Allocate bitmap instead of hashtable for
8386         referenced_vars.
8387         (delete_tree_ssa): Adjust.
8388         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
8389         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
8390         (compute_tag_properties): Likewise.
8391         (set_initial_properties): Likewise.
8392         (find_partition_for): Likewise.
8393         (update_reference_counts): Likewise.
8394         (dump_may_aliases_for): Likewise.
8395         * tree-ssa-operands.c (add_virtual_operand): Likewise.
8396         (add_call_clobber_ops): Likewise.
8397         (add_call_read_ops): Likewise.
8398         (get_asm_expr_operands): Likewise.
8399         * tree-into-ssa.c (dump_decl_set): Likewise.
8400         (update_ssa): Likewise.
8401         * tree-sra.c (scan_function): Likewise.
8402         (decide_instantiations): Likewise.
8403         (scalarize_parms): Likewise.
8404         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
8405         (dsa_named_for): Likewise.
8406         * tree-ssa-structalias.c (update_alias_info): Likewise.
8407         (merge_smts_into): Likewise.
8408
8409 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
8410
8411         PR 34351
8412         * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
8413         * c-opts.c (c_common_handle_option): Wall enables
8414         Wvolatile-register-var.
8415         * common.opt: Move Wvolatile-register-var to...
8416         * c.opt: ...here.
8417         
8418 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
8419
8420         * common.opt (Wlarger-than=): New.
8421         * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
8422         -Wlarger-than=.
8423         * opts.c (common_handle_option): Handle -Wlarger-than=.
8424         * optc-gen.awk: Likewise.
8425         * opth-gen.awk: Likewise.
8426         * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
8427         * tree-optimize.c (tree_rest_of_compilation): Likewise.
8428         
8429 2008-02-26  Manuel Lopez-Ibanez <manu@gcc.gnu.org>
8430
8431         * c-common.c (match_case_to_enum_1): Add appropriate
8432         OPT_W* parameter to warning.
8433         (c_do_switch_warnings): Likewise.
8434         * c-typeck.c (warning_init): Add one more parameter following
8435         'warning' function.
8436         (push_init_level): Update call to warning_init.
8437         (pop_init_level): Likewise.
8438         (add_pending_init): Likewise.
8439         (output_init_element: Likewise.
8440
8441 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
8442
8443         PR 28322
8444         * toplev.c (toplev_main): If there are warnings or error, print
8445         errors for ignored options.
8446         * opts.c (ignored_options): New static variable.
8447         (postpone_unknown_option_error): New.
8448         (print_ignored_options): New.
8449         (handle_option): Postpone errors for unknown -Wno-* options.
8450         * opts.h (print_ignored_options): Declare.
8451         
8452 2008-02-25  Richard Sandiford  <rsandifo@nildram.co.uk>
8453
8454         * config/mips/mips.md (loadgp_blockage, blockage): Change type
8455         to "ghost".
8456
8457 2008-02-25  Richard Guenther  <rguenther@suse.de>
8458
8459         Revert:
8460         2008-02-25  Richard Guenther  <rguenther@suse.de>
8461
8462         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
8463         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
8464         (lookup_decl_from_uid): Declare.
8465         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
8466         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
8467         (decl_for_uid_map): New global hashtable mapping DECL_UID
8468         to the decl tree.
8469         (init_ttree): Allocate it.
8470         (insert_decl_to_uid_decl_map): New helper function.
8471         (make_node_stat): Insert new decls into the map.
8472         (copy_node_stat): Likewise.
8473         (lookup_decl_from_uid): New function.
8474         (print_decl_for_uid_map_statistics): New helper.
8475         (dump_tree_statistics): Call it.
8476
8477         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
8478         (referenced_var_iterator): Adjust.
8479         (FOR_EACH_REFERENCED_VAR): Adjust.
8480         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
8481         (num_referenced_vars): Adjust.
8482         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
8483         (first_referenced_var): Remove.
8484         (end_referenced_vars_p): Likewise.
8485         (next_referenced_var): Likewise.
8486         (referenced_var_iterator_set): New helper function.
8487         * tree-dfa.c (referenced_var_lookup): Adjust.
8488         (referenced_var_check_and_insert): Likewise.
8489         (remove_referenced_var): Likewise.
8490         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
8491         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
8492         (verify_call_clobbering): Likewise.
8493         (verify_memory_partitions): Likewise.
8494         (init_tree_ssa): Allocate bitmap instead of hashtable for
8495         referenced_vars.
8496         (delete_tree_ssa): Adjust.
8497         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
8498         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
8499         (compute_tag_properties): Likewise.
8500         (set_initial_properties): Likewise.
8501         (find_partition_for): Likewise.
8502         (update_reference_counts): Likewise.
8503         (dump_may_aliases_for): Likewise.
8504         * tree-ssa-operands.c (add_virtual_operand): Likewise.
8505         (add_call_clobber_ops): Likewise.
8506         (add_call_read_ops): Likewise.
8507         (get_asm_expr_operands): Likewise.
8508         * tree-into-ssa.c (dump_decl_set): Likewise.
8509         (update_ssa): Likewise.
8510         * tree-sra.c (scan_function): Likewise.
8511         (decide_instantiations): Likewise.
8512         (scalarize_parms): Likewise.
8513         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
8514         (dsa_named_for): Likewise.
8515         * tree-ssa-structalias.c (update_alias_info): Likewise.
8516         (merge_smts_into): Likewise.
8517
8518 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
8519
8520         PR fortran/29549
8521         * doc/invoke.texi (-fcx-limited-range): Document new option.
8522         * toplev.c (process_options): Handle -fcx-fortran-rules.
8523         * common.opt: Add documentation for -fcx-fortran-rules.
8524
8525 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
8526
8527         PR c/35162
8528         * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
8529         actual behaviour and C99.
8530         
8531 2008-02-26  Ben Elliston  <bje@au.ibm.com>
8532
8533         * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
8534         (ASM_CPU_POWER6_SPEC): Likewise.
8535         (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
8536         Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
8537         (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
8538
8539 2008-02-25  Richard Guenther  <rguenther@suse.de>
8540
8541         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
8542         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
8543         (lookup_decl_from_uid): Declare.
8544         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
8545         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
8546         (decl_for_uid_map): New global hashtable mapping DECL_UID
8547         to the decl tree.
8548         (init_ttree): Allocate it.
8549         (insert_decl_to_uid_decl_map): New helper function.
8550         (make_node_stat): Insert new decls into the map.
8551         (copy_node_stat): Likewise.
8552         (lookup_decl_from_uid): New function.
8553         (print_decl_for_uid_map_statistics): New helper.
8554         (dump_tree_statistics): Call it.
8555
8556         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
8557         (referenced_var_iterator): Adjust.
8558         (FOR_EACH_REFERENCED_VAR): Adjust.
8559         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
8560         (num_referenced_vars): Adjust.
8561         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
8562         (first_referenced_var): Remove.
8563         (end_referenced_vars_p): Likewise.
8564         (next_referenced_var): Likewise.
8565         (referenced_var_iterator_set): New helper function.
8566         * tree-dfa.c (referenced_var_lookup): Adjust.
8567         (referenced_var_check_and_insert): Likewise.
8568         (remove_referenced_var): Likewise.
8569         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
8570         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
8571         (verify_call_clobbering): Likewise.
8572         (verify_memory_partitions): Likewise.
8573         (init_tree_ssa): Allocate bitmap instead of hashtable for
8574         referenced_vars.
8575         (delete_tree_ssa): Adjust.
8576         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
8577         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
8578         (compute_tag_properties): Likewise.
8579         (set_initial_properties): Likewise.
8580         (find_partition_for): Likewise.
8581         (update_reference_counts): Likewise.
8582         (dump_may_aliases_for): Likewise.
8583         * tree-ssa-operands.c (add_virtual_operand): Likewise.
8584         (add_call_clobber_ops): Likewise.
8585         (add_call_read_ops): Likewise.
8586         (get_asm_expr_operands): Likewise.
8587         * tree-into-ssa.c (dump_decl_set): Likewise.
8588         (update_ssa): Likewise.
8589         * tree-sra.c (scan_function): Likewise.
8590         (decide_instantiations): Likewise.
8591         (scalarize_parms): Likewise.
8592         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
8593         (dsa_named_for): Likewise.
8594         * tree-ssa-structalias.c (update_alias_info): Likewise.
8595         (merge_smts_into): Likewise.
8596
8597 2008-02-25  Andreas Krebbel  <krebbel1@de.ibm.com>
8598
8599         PR target/35258
8600         * cse.c (cse_insn): Avoid creation of overlapping MEMs.
8601         * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
8602         * alias.h (nonoverlapping_memrefs_p): Likewise.
8603
8604 2008-02-25  Jan Beulich  <jbeulich@novell.com>
8605
8606         * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
8607         * config/i386/netware-libgcc.exp: Add __bswap?i2,
8608         __emultls_get_address, __emultls_register_common,
8609         __floatundi?f, and _Unwind_GetIPInfo.
8610         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
8611         Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
8612         (gen_regparm_prefix): Likewise.
8613         (i386_nlm_encode_section_info): Sync with
8614         config/i386/winnt.c:i386_pe_encode_section_info().
8615         (i386_nlm_maybe_mangle_decl_assembler_name): New.
8616         i386_nlm_mangle_decl_assembler_name): New.
8617         (netware_override_options): New.
8618         * config/i386/netware.h (netware_override_options): Declare.
8619         (OVERRIDE_OPTIONS): Re-define to netware_override_options.
8620         (i386_nlm_mangle_decl_assembler_name): Declare.
8621         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
8622
8623 2008-02-25  Ben Elliston  <bje@au.ibm.com>
8624
8625         PR other/32948
8626         * c-decl.c (grokdeclarator): Remove unused local variables
8627         `typedef_type' and `type_as_written'.
8628         * bb-reorder.c
8629         (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
8630         unused local variable `has_hot_blocks'.
8631         (fix_crossing_conditional_branches): Remove unused local variable
8632         `prev_bb'.
8633         
8634 2008-02-25  Uros Bizjak  <ubizjak@gmail.com>
8635
8636         PR middle-end/19984
8637         * builtins.def (BUILT_IN_NAN): Define as c99 builtin
8638         using DEF_C99_BUILTIN.
8639         (BUILT_IN_NANF): Ditto.
8640         (BUILT_IN_NANL): Ditto.
8641
8642 2008-02-25  Ayal Zaks  <zaks@il.ibm.com>
8643             Revital Eres  <eres@il.ibm.com>
8644
8645         * modulo-sched.c (calculate_must_precede_follow): Address TODO
8646         regarding the order of two dependent insns in the same row.
8647
8648 2008-02-25  Eric Botcazou  <ebotcazou@adacore.com>
8649
8650         * stor-layout.c (layout_decl): Do not bump the alignment of a
8651         bit-field to more than byte alignment if it is packed.
8652
8653 2008-02-24  David Edelsohn  <edelsohn@gnu.org>
8654
8655         * config/rs6000/rs6000.c (processor_costs): Add cache costs for
8656         e300c2 and e300c3.
8657
8658 2008-02-24  Diego Novillo  <dnovillo@google.com>
8659
8660         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
8661
8662         PR 33738
8663         * tree-vrp.c (vrp_evaluate_conditional): With
8664         -Wtype-limits, emit a warning when comparing against a
8665         constant outside the natural range of OP0's type.
8666         * c.opt (Wtype-limits): Move ...
8667         * common.opt (Wtype-limits): ... here.
8668
8669 2008-02-24  Edmar Wienskoski  <edmar@freescale.com>
8670
8671         * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
8672         * config/rs6000/e300c2c3.md: New file.
8673         * config/rs6000/rs6000.c (processor_costs): Add new costs for
8674         e300c2 and e300c3.
8675         (rs6000_override_options): Add e300c2 and e300c3 cases to
8676         processor_target_table. Do not allow usage of Altivec or Spe
8677         with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
8678         (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
8679         * config/rs6000/rs6000.h (processor_type): Add
8680         PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
8681         (ASM_CPU_SPEC): Add e300c2 and e300c3.
8682         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
8683         and ppce300c3. Include e300c2c3.md.
8684
8685 2008-02-23  David Edelsohn  <edelsohn@gnu.org>
8686
8687         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
8688         instead of TARGET_STRICT_ALIGN.
8689
8690 2008-02-23  Joseph Myers  <joseph@codesourcery.com>
8691
8692         * explow.c (memory_address): Assert that the generated address is
8693         valid.
8694
8695 2008-02-23  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
8696
8697         PR target/25477
8698         * config/darwin-protos.h: Add darwin_patch_builtins prototype.
8699         * config/darwin-ppc-ldouble-patch.def: New file.
8700         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
8701         * config/rs6000/rs6000.c (rs6000_init_builtins): Call
8702         SUBTARGET_INIT_BUILTINS if defined.
8703         * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
8704         New functions.
8705
8706 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
8707
8708         PR rtl-opt/33512
8709         * simplify-rtx.c (simplify_binary_operation_1): Add simplification
8710         of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
8711
8712 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
8713
8714         PR pch/35027
8715         * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
8716         file" warning condtional on -Winvalid-PCH.
8717
8718 2008-02-23  Daniel Jacobowitz  <dan@codesourcery.com>
8719
8720         * expmed.c (extract_bit_field): Always use adjust_address for MEM.
8721
8722 2008-02-23  Uros Bizjak  <ubizjak@gmail.com>
8723
8724         PR target/22076
8725         PR target/34256 
8726         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
8727         prevent reload from using MMX registers.
8728         (*mov<mode>_internal): Ditto.
8729         (*movv2sf_internal_rex64): Ditto.
8730         (*movv2sf_internal): Ditto.
8731
8732 2008-02-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8733
8734         PR documentation/31569
8735         * doc/install.texi2html: Use makeinfo --no-number-sections.
8736
8737 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
8738
8739         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
8740         ensure that we can address an entire entity > 8 bytes.  Don't
8741         generate reg+reg addressing for such data.
8742
8743 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
8744
8745         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
8746         strings when optimizing for size, unless the target cares about
8747         alignment.
8748
8749 2008-02-22  Tom Tromey  <tromey@redhat.com>
8750
8751         * regclass.c (current_pass): Remove declaration.
8752
8753 2008-02-22  Anatoly Sokolov <aesok@post.ru>
8754
8755         * config/avr/libgcc.S (__RAMPZ__): Define.
8756         (__do_copy_data): Add for devices with 128KB code memory.
8757
8758 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
8759
8760         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
8761         Use spe_abi.
8762         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
8763
8764 2008-02-22  Hans-Peter Nilsson  <hp@axis.com>
8765
8766         * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
8767         GENNONACR_REGS.
8768
8769 2008-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8770
8771         PR c/19999
8772         * c-typeck.c (build_binary_op): Warn about floating point
8773         comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
8774
8775 2008-02-21  Janis Johnson  <janis187@us.ibm.com>
8776
8777         PR target/34526
8778         * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
8779         (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
8780         add vrsave.
8781         (rs6000_override_options): Set altivec_abi as default, not override,
8782         for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
8783         TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
8784         is used; use new member spe_abi.
8785         (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
8786         spe_abi and altivec_abi.
8787
8788 2008-02-22  Tomas Bily  <tbily@suse.cz>
8789
8790         * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
8791
8792 2008-02-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8793
8794         PR bootstrap/35273
8795         * config.build (build_file_translate): Set to `CMD //c' only if
8796         it works.
8797         * Makefile.in (build_file_translate): Improve comment.
8798
8799 2008-02-21  Jan Hubicka  <jh@suse.cz>
8800
8801         * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
8802         PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
8803         PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
8804
8805 2008-02-21  Michael Matz  <matz@suse.de>
8806
8807         PR target/35264
8808         * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
8809
8810 2008-02-21  Uros Bizjak  <ubizjak@gmail.com>
8811
8812         * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
8813         movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
8814         as insn constraint.
8815         * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
8816         from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
8817         SSE_VEC_FLOAT_MODE_P as insn constraint.
8818         (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
8819         (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
8820         sse4a_movntdf using MODEF mode iterator.
8821         (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
8822         sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
8823         (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
8824         (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
8825         (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
8826         (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
8827         (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
8828
8829 2008-02-21  Richard Guenther  <rguenther@suse.de>
8830
8831         * tree.def (PAREN_EXPR): New tree code.
8832         * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
8833         and PAREN_EXPR.
8834         * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
8835         * expr.c (expand_expr_real_1): Likewise.
8836         * tree-inline.c (estimate_num_insns_1): Likewise.
8837         * tree-complex.c (expand_complex_move): Likewise.
8838         * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
8839         as plain x.
8840
8841 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
8842
8843         PR target/35225
8844         * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
8845
8846 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
8847
8848         PR target/35190
8849         * config/sh/sh.md (jump_compact): Disable for crossing jumps.
8850
8851         * config/sh/sh.c (find_barrier): Don't go past
8852         NOTE_INSN_SWITCH_TEXT_SECTIONS note.
8853
8854 2008-02-20  DJ Delorie  <dj@redhat.com>
8855
8856         * config/h8300/h8300.md (insv): Force source operand to be a register.
8857
8858         * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
8859         as a jump, not as a plain insn.
8860         
8861 2008-02-20  Seongbae Park <seongbae.park@gmail.com>
8862
8863         * doc/invoke.texi (Warning Options): Add new option
8864         -Wframe-larger-than=.
8865         (-Wframe-larger-than): Document.
8866
8867         * flags.h (warn_frame_larger_than, frame_larger_than_size):
8868         Add declarations for new option variables.
8869
8870         * final.c (final_start_function): Check the frame size
8871         before emission and issue a Wframe-larger-than warning.
8872
8873         * opts.c (warn_frame_larger_than, frame_larger_than_size):
8874         Add definitions for new option variables.
8875         (common_handle_option): Handle new option OPT_Wframe_larger_than_.
8876
8877         * common.opt (Wframe-larger-than=): New option.
8878
8879 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
8880
8881         * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
8882         (<sse>_div<mode>3): Ditto.
8883         (<sse>_vmdiv<mode>3): Ditto.
8884         (<sse>_vmsqrt<mode>2): Ditto.
8885         (*smax<mode>3): Ditto.
8886         (sse5_frcz<mode>2): Ditto.
8887         (sse5_vmfrcz<mode>2): Ditto.  Use TARGET_SSE5 instead of TARGET_ROUND
8888         as insn constraint.
8889
8890 2008-02-20  Richard Guenther  <rguenther@suse.de>
8891
8892         PR middle-end/35265
8893         * builtins.c (validate_arg): If we want an INTEGER_TYPE,
8894         be happy with INTEGRAL_TYPE_P.
8895
8896 2008-02-20  Richard Guenther  <rguenther@suse.de>
8897
8898         * fold-const.c (split_tree): Associate floatig-point expressions
8899         if flag_associative_math is set.
8900
8901 2008-02-20  Richard Guenther  <rguenther@suse.de>
8902
8903         * tree.h (fold_real_zero_addition_p): Declare.
8904         * fold-const.c (fold_real_zero_addition_p): Export.
8905         * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
8906         floating-point operations with zero and one.
8907
8908 2008-02-20  Paolo Bonzini  <bonzini@gnu.org>
8909
8910         * doc/install.texi: Correct references to CFLAGS, replacing them
8911         with BOOT_CFLAGS.  Document flags used during bootstrap for
8912         target libraries.
8913                                 
8914 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
8915
8916         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
8917         * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
8918         and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
8919         insn constraint.
8920         (smin<mode>3): Ditto from similar patterns.
8921         (smax<mode>3): Ditto.
8922         (*ieee_smin<mode>3): Ditto.
8923         (*ieee_smax<mode>3): Ditto.
8924         * config/i386/sse.md (sse): New mode attribute.
8925         (mov<mode>): Macroize expander from movv4sf and movv2df using
8926         SSEMODEF2P mode iterator.
8927         (<sse>_movnt<mode>): Ditto from similar patterns. Use
8928         SSE_VEC_FLOAT_MODE_P as insn constraint.
8929         (storent<mode>): Ditto.
8930         (storent<mode>): Macroize expander from storentsf and storentdf using
8931         MODEF mode iterator.
8932         (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
8933         mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
8934         (abs<mode>2): Ditto from similar patterns.
8935         (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
8936         (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
8937         (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
8938         (<sse>_vmsqrt<mode>2): Ditto.
8939         (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
8940         (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
8941         (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
8942         (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
8943         (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
8944         sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
8945         mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
8946         insn constraint.
8947         (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
8948         iterator and SSE_FLOAT_MODE_P as insn constraint.
8949         (<sse>_ucomi): Ditto from similar patterns.
8950         (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
8951         sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
8952         SSE_VEC_FLOAT_MODE_P as insn constraint.
8953         (vcond<mode>): Ditto from similar patterns.
8954         (and<mode>3, *and<mode>3): Ditto.
8955         (<sse>_nand<mode>3): Ditto.
8956         (ior<mode>3, *ior<mode>3): Ditto.
8957         (xor<mode>3, *xor<mode>3): Ditto.
8958         (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
8959         iterator and SSE_FLOAT_MODE_P as insn constraint.
8960         (*nand<mode>3): Ditto from similar patterns.
8961         (*ior<mode>3): Ditto.
8962         (*xor<mode>3): Ditto.
8963
8964 2008-02-20  Ira Rosen  <irar@il.ibm.com>
8965
8966         * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
8967         vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
8968         vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
8969
8970 2008-02-19  Jan Hubicka  <jh@suse.cz>
8971
8972         * predict.c (tree_bb_level_predictions): Remove variable next
8973         mistakely introduced by previous commit.
8974
8975 2008-02-19  Jan Hubicka  <jh@suse.cz>
8976
8977         * predict.c (predict_paths_leading_to): Rewrite.
8978         (predict_paths_for_bb): New.
8979         (tree_bb_level_predictions): Update call of predict_paths_leading_to.
8980
8981 2008-02-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8982
8983         PR bootstrap/35218
8984         * Makefile.in (build_file_translate): New.
8985         (gcc-vers.texi): Use it for translating $(abs_srcdir).
8986         * config.build (build_file_translate): Set to `CMD //c' on MinGW.
8987         * configure.ac (build_file_translate): Substitute it.
8988         * configure: Regenerate.
8989
8990 2008-02-19  Jan Hubicka  <jh@suse.cz>
8991
8992         PR rtl-optimization/34408
8993         * see.c (see_def_extension_not_merged): Copy subreg so we don't have
8994         invalid sharing.
8995
8996 2008-02-19  Jan Hubicka  <jh@suse.cz>
8997
8998         PR middle-end/28779
8999         * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
9000         call_expr.
9001
9002 2008-02-19  H.J. Lu  <hongjiu.lu@intel.com>
9003
9004         PR Ada/35186
9005         * config/i386/i386-modes.def: Revert the last DI alignment
9006         change until Ada people can look into it.
9007
9008 2008-02-19  Nick Clifton  <nickc@redhat.com>
9009
9010         * opts.c (print_specific_help): Fix typo in --help text.
9011
9012 2008-02-19  Jakub Jelinek  <jakub@redhat.com>
9013
9014         PR target/35239
9015         * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
9016         32-bit inline asm without asm alternatives for host GCC < 3.0.
9017
9018 2008-02-19  Richard Guenther  <rguenther@suse.de>
9019
9020         PR tree-optimization/34989
9021         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
9022         Allow propagation to INDIRECT_REF if we can simplify only.
9023
9024 2008-02-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
9025
9026         * c-common.c (warn_for_collisions_1): Use appropriate option when
9027         warning.
9028
9029 2008-02-19  Nick Clifton  <nickc@redhat.com>
9030
9031         PR other/31349
9032         * opts.c (undocumented_msg): Leave blank unless checking is enabled.
9033         (handle_options): Fix indentation.
9034         (print_filtered_help): If no language-specific options were
9035         displayed tell the user how to list all the options supported by
9036         the language's front-end.
9037         (print_specific_help): Fix indentation and remove duplicate line.
9038         (common_handle_option): Handle the -v option.
9039         For --help enable the display of undocumented options if the -v
9040         switch has been included on the command line.
9041         For --help= check for overlaps in the arguments between the option
9042         classes and the language names and issue a warning when they
9043         cannot be disambiguated.
9044         * c.opt (v): Pass on to the common option handler.
9045
9046 2008-02-19  Revital Eres  <eres@il.ibm.com> 
9047
9048         * modulo-sched.c (sms_schedule): Change dump message when
9049         create_ddg function fails.
9050         (try_scheduling_node_in_cycle): Rename row to cycle.
9051         (print_partial_schedule): Rename CYCLE to ROW.
9052
9053 2008-02-19  Christian Bruel  <christian.bruel@st.com>
9054             Zdenek Dvorak  <ook@ucw.cz>
9055
9056         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
9057
9058 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
9059
9060         PR target/33555
9061         * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
9062         (*x86_movdicc_0_m1_se): Ditto.
9063
9064 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
9065
9066         * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
9067         (CMPtype): Define as __gcc_CMPtype.
9068         * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
9069         (CMPtype): Define as __gcc_CMPtype.
9070
9071 2008-02-19  Hans-Peter Nilsson  <hp@axis.com>
9072
9073         Support valgrind 3.3 for --enable-checking=valgrind.
9074         * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
9075         here.
9076         [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
9077         [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
9078         [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
9079         * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
9080         Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
9081         VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
9082         VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
9083         respectively.
9084         * ggc-zone.c: Similar.
9085         * ggc-page.c: Similar.
9086
9087 2008-02-19  Paul Brook  <paul@codesourcery.com>
9088
9089         PR target/35071
9090         * config/arm/ieee754-df.S: Fix do_it typo.
9091         * config/arm/ieee754-sf.S: Fix do_it typo.
9092
9093 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
9094
9095         PR target/35189
9096         * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
9097         (OPTION_MASK_ISA_3DNOW_SET): Likewise.
9098         (OPTION_MASK_ISA_SSE_SET): Likewise.
9099         (OPTION_MASK_ISA_SSE2_SET): Likewise.
9100         (OPTION_MASK_ISA_SSE3_SET): Likewise.
9101         (OPTION_MASK_ISA_SSSE3_SET): Likewise.
9102         (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
9103         (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
9104         (OPTION_MASK_ISA_SSE4_SET): Likewise.
9105         (OPTION_MASK_ISA_SSE4A_SET): Likewise.
9106         (OPTION_MASK_ISA_SSE5_SET): Likewise.
9107         (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
9108         (OPTION_MASK_ISA_MMX_UNSET): Updated.
9109         (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
9110         (OPTION_MASK_ISA_SSE_UNSET): Likewise.
9111         (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
9112         (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
9113         (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
9114         (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
9115         (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
9116         (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
9117         (OPTION_MASK_ISA_SSE4): Removed.
9118         (ix86_handle_option): Turn on bits in ix86_isa_flags and
9119         ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
9120         (override_options): Don't turn on implied SSE/MMX bits in
9121         ix86_isa_flags.
9122
9123 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
9124
9125         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
9126         32bit host.
9127
9128 2008-02-18  Joey Ye  <joey.ye@intel.com>
9129
9130         PR middle-end/34921
9131         * tree-nested.c (insert_field_into_struct): Set type alignment
9132         to field alignment if the former is less than the latter.
9133
9134 2008-02-18  Jakub Jelinek  <jakub@redhat.com>
9135
9136         * BASE-VER: Set to 4.4.0.
9137
9138 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9139
9140         * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
9141         * doc/cfg.texi: Likewise.
9142         * doc/extend.texi: Likewise.
9143         * doc/gty.texi: Likewise.
9144         * doc/invoke.texi: Likewise.
9145         * doc/loop.texi: Likewise.
9146         * doc/md.texi: Likewise.
9147         * doc/passes.texi: Likewise.
9148         * doc/rtl.texi: Likewise.
9149         * doc/sourcebuild.texi: Likewise.
9150         * doc/tm.texi: Likewise.
9151         * doc/tree-ssa.texi: Likewise.
9152
9153 2008-02-17  Richard Guenther  <rguenther@suse.de>
9154
9155         PR middle-end/35227
9156         * tree-complex.c (init_parameter_lattice_values): Handle parameters
9157         without default definition.
9158
9159 2008-02-17  Richard Guenther  <rguenther@suse.de>
9160
9161         PR tree-optimization/35231
9162         * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
9163         if A | B != 1.
9164
9165 2008-02-17  Uros Bizjak  <ubizjak@gmail.com>
9166
9167         Revert:
9168         2008-02-15  Uros Bizjak  <ubizjak@gmail.com>    
9169         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
9170         libgcc_cmp_return mode.
9171
9172 2008-02-16  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
9173
9174         PR c/28368
9175         * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
9176
9177 2008-02-16  Ralf Corsepius  <ralf.corsepius@rtems.org>
9178
9179         * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
9180         multilibs.
9181
9182 2008-02-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9183
9184         * doc/c-tree.texi: Use `@.' where appropriate.
9185         * doc/extend.texi: Likewise.
9186         * doc/install.texi: Likewise.
9187         * doc/invoke.texi: Likewise.
9188         * doc/loop.texi: Likewise.
9189         * doc/makefile.texi: Likewise.
9190         * doc/md.texi: Likewise.
9191         * doc/passes.texi: Likewise.
9192         * doc/standards.texi: Likewise.
9193         * doc/tm.texi: Likewise.
9194
9195 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
9196
9197         PR middle-end/35196
9198         * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
9199         in entry_bb.
9200         (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
9201         rather than in entry_bb.
9202
9203 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
9204
9205         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
9206         libgcc_cmp_return mode.
9207
9208 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
9209
9210         PR middle-end/35130
9211         * tree-nested.c (convert_call_expr): Put FRAME.* vars into
9212         OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
9213
9214 2008-02-15  Richard Guenther  <rguenther@suse.de>
9215             Zdenek Dvorak  <ook@ucw.cz>
9216
9217         PR tree-optimization/35164
9218         * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
9219         * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
9220         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
9221         Only propagate addresses which do not have abnormal SSA_NAMEs
9222         in their operands.
9223
9224 2008-02-15  Joseph Myers  <joseph@codesourcery.com>
9225
9226         PR target/35088
9227         * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
9228
9229 2008-02-15  Jan Hubicka  <jh@suse.cz>
9230
9231         PR middle-end/35149
9232         * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
9233
9234 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
9235
9236         PR middle-end/34621
9237         * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
9238         when calculating alignment_pad.
9239
9240 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
9241
9242         * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
9243         (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
9244         * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
9245         and STACK_BOUNDARY define.
9246
9247 2008-02-14  Danny Smith  <dannysmith@users.sourceforge.net>
9248
9249         PR preprocessor/35061
9250         * c-pragma.c (handle_pragma_pop_macro): Check that
9251         pushed_macro_table has been allocated.
9252
9253 2008-02-14  Eric Botcazou  <ebotcazou@adacore.com>
9254
9255         PR middle-end/35136
9256         * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
9257         (force_gimple_operand): Likewise.
9258         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
9259         for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
9260         Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
9261         (find_interesting_uses_address): Check addressability and alignment
9262         of the base expression only after substituting bases of IVs into it.
9263
9264 2008-02-14  Michael Matz  <matz@suse.de>
9265
9266         PR target/34930
9267         * function.c (instantiate_virtual_regs_in_insn): Reload address
9268         before falling back to reloading the whole operand.
9269
9270 2008-02-14  Andreas Krebbel  <krebbel1@de.ibm.com>
9271
9272         * config/s390/s390.c (s390_mainpool_start): Emit the pool
9273         before the first section switch note.
9274
9275 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9276
9277         * doc/bugreport.texi: Update copyright years.
9278         * doc/c-tree.texi: Likewise.
9279         * doc/cfg.texi: Likewise.
9280         * doc/cpp.texi: Likewise.
9281         * doc/cppinternals.texi: Likewise.
9282         * doc/fragments.texi: Likewise.
9283         * doc/frontends.texi: Likewise.
9284         * doc/gcc.texi: Likewise.
9285         * doc/gty.texi: Likewise.
9286         * doc/hostconfig.texi: Likewise.
9287         * doc/implement-c.texi: Likewise.
9288         * doc/libgcc.texi: Likewise.
9289         * doc/loop.texi: Likewise.
9290         * doc/makefile.texi: Likewise.
9291         * doc/options.texi: Likewise.
9292         * doc/passes.texi: Likewise.
9293         * doc/rtl.texi: Likewise.
9294         * doc/sourcebuild.texi: Likewise.
9295         * doc/standards.texi: Likewise.
9296         * doc/tree-ssa.texi: Likewise.
9297         * doc/trouble.texi: Likewise.
9298
9299         * doc/extend.texi: Use @: or add comma where appropriate.
9300         * doc/invoke.texi: Likewise.
9301         * doc/tm.texi: Likewise.
9302
9303 2008-02-14  Alan Modra  <amodra@bigpond.net.au>
9304
9305         PR target/34393
9306         * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
9307         to a reg.
9308
9309 2008-02-14  Jesper Nilsson  <jesper.nilsson@axis.com>
9310
9311         * doc/md.texi (clz, ctz): Add reference.
9312         * doc/rtl.texi (clz, ctz): Likewise.
9313
9314 2008-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9315
9316         PR other/35148
9317         * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
9318         srcdir.
9319
9320 2008-02-13  Andreas Krebbel  <krebbel1@de.ibm.com>
9321
9322         * config/s390/s390.c (struct constant_pool): New field
9323         emit_pool_after added.
9324         (s390_mainpool_start): Set the emit_pool_after flag according
9325         to the section switch notes.
9326         (s390_mainpool_finish): Consider emit_pool_after when emitting
9327         the literal pool at the end of the function.
9328         (s390_chunkify_start): Force literal pool splits at section
9329         switch notes.
9330
9331 2008-02-13  Michael Matz  <matz@suse.de>
9332
9333         PR debug/35065
9334         * var-tracking.c (clobber_variable_part): Correctly traverse the
9335         list.
9336
9337 2008-02-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
9338
9339         PR 29673
9340         * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
9341         Add -fdump-ipa-inline.
9342         * tree-dump.c (dump_files): Remove tree-inlined dump.
9343         * tree-pass.h (tree_dump_index): Remove TDI_inlined.
9344         
9345 2008-02-12  Richard Guenther  <rguenther@suse.de>
9346
9347         PR tree-optimization/35171
9348         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
9349         default defs.
9350
9351 2008-02-12  Richard Guenther  <rguenther@suse.de>
9352
9353         PR middle-end/35163
9354         * fold-const.c (fold_widened_comparison): Use get_unwidened in
9355         value-preserving mode.  Disallow final truncation.
9356
9357 2008-02-12  Eric Botcazou  <ebotcazou@adacore.com>
9358
9359         PR middle-end/35136
9360         * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
9361         code from here to...
9362         (force_gimple_operand): ...here.
9363
9364 2008-02-12  Jakub Jelinek  <jakub@redhat.com>
9365
9366         PR c++/35144
9367         * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
9368         non-compatible pointers.
9369         (generate_element_copy): If SRC and DST are RECORD_TYPEs with
9370         different FIELD_DECLs, try harder by comparing field offsets, sizes
9371         and types.
9372
9373         PR inline-asm/35160
9374         * function.c (match_asm_constraints_1): Don't replace the same input
9375         multiple times.
9376
9377 2008-02-12  Anatoly Sokolov <aesok@post.ru>
9378
9379         * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
9380         * config/avr/avr.c (expand_prologue): Save RAMPZ register.
9381         (expand_epilogue): Restore RAMPZ register.
9382         * config/avr/avr.md (RAMPZ_ADDR): New constant.
9383
9384 2008-02-11  Kai Tietz  <kai.tietz@onevision.com>
9385
9386         * config/i386/cygwin.asm: (__alloca): Correct calling
9387         convention and alignment.
9388         (__chkstk): Force 8 byte stack alignment.
9389
9390 2008-02-11  Uros Bizjak  <ubizjak@gmail.com>
9391             Richard Guenther  <rguenther@suse.de>
9392
9393         PR tree-optimization/33992
9394         * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
9395         the zero we compare against.
9396
9397 2008-02-10  Danny Smith  <dannysmith@users.sourceforge.net>
9398
9399         PR libfortran/35063
9400         * gthr-win32.h (__gthread_mutex_destroy_function): New function
9401         to CloseHandle after unlocking to prevent accumulation of handle
9402         count.
9403
9404 2008-02-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9405
9406         PR middle_end/34150
9407         * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
9408         pic_label_operand source.  Similarly, add a REG_LABEL_OPERAND note
9409         and update LABEL_NUSES during and after reload.
9410
9411 2008-02-08  Steven Bosscher  <stevenb.gcc@gmail.com>
9412
9413         PR middle-end/34627
9414         * combine.c (simplify_if_then_else): Make sure the comparison is
9415         against const0_rtx when simplifying to (abs x) or (neg (abs X)).
9416
9417 2008-02-08  Richard Sandiford  <rsandifo@nildram.co.uk>
9418
9419         PR bootstrap/35051
9420         * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
9421         (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
9422         * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
9423         (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
9424         * tree.h (get_type_static_bounds): Likewise.
9425
9426 2008-02-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9427
9428         * doc/invoke.texi (Option Summary, C++ Dialect Options)
9429         (Objective-C and Objective-C++ Dialect Options, Warning Options):
9430         Make -Wfoo language annotations match what the compiler outputs.
9431
9432 2008-02-08  Sa Liu  <saliu@de.ibm.com>
9433
9434         * config/spu/spu-builtins.def: Fixed wrong parameter type in spu 
9435         intrinsics spu_convts, spu_convtu, spu_convtf.
9436
9437 2008-02-08  Hans-Peter Nilsson  <hp@axis.com>
9438
9439         * doc/extend.texi (Function Attributes) <noinline>: Mention
9440         asm ("") as method to keep calls.
9441
9442 2008-02-07  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
9443
9444         PR other/32754
9445         * doc/options.texi (Options): Replace references to opts.sh with
9446         optc-gen.awk.
9447         * opts-common.c: Likewise.
9448         * optc-gen.awk: Likewise.
9449         
9450 2008-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
9451
9452         * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
9453
9454 2008-02-07  Richard Henderson  <rth@redhat.com>
9455
9456         PR rtl-opt/33410
9457         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
9458         EXPR_LIST for the REG_EQUAL instead of a comparison with a 
9459         funny mode.
9460
9461 2008-02-07  Uros Bizjak  <ubizjak@gmail.com>
9462
9463         PR tree-optimization/35085
9464         * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
9465         for operand entry oe2 in addition to operand entry oe3 in order to
9466         expose more opportunities for vectorizer sum reduction.
9467
9468 2008-02-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9469
9470         PR other/35107
9471         * Makefile.in (LIBS): Remove $(GMPLIBS).
9472         (cc1-dummy, cc1): Add $(GMPLIBS).
9473
9474 2008-02-06  Jan Hubicka  <jh@suse.cz>
9475
9476         PR target/23322
9477         * i386.md (moddf_integer): Do not produce partial memory stalls for
9478         targets where it hurts.
9479
9480 2008-02-06  Uros Bizjak  <ubizjak@gmail.com>
9481
9482         PR target/35083
9483         * optabs.c (expand_float): Do not check for decimal modes when
9484         expanding unsigned integer through signed conversion.
9485
9486 2008-02-06  Nick Clifton  <nickc@redhat.com>
9487
9488         * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
9489         inside the clobber with a match_operand and duplicated operand
9490         number in the constraint.
9491         (ineqbranchsi): Delete redundant comment.
9492
9493 2008-02-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
9494
9495         * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add 
9496         builtin_define ("__USE_INIT_FINI__").
9497         * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
9498         -msx multilibs.
9499         * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
9500
9501 2008-02-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9502
9503         PR documentation/30330
9504         * doc/invoke.texi (C++ Dialect Options)
9505         (Objective-C and Objective-C++ Dialect Options, Warning Options):
9506         For each warning option -Wfoo that allows -Wno-foo, ensure both
9507         -Wfoo and -Wno-foo are listed in the option index.  Fix index
9508         entry of -Wswitch-default, index -Wnormalized= including the
9509         `=', and -Wlarger-than-@var{len} including @var{len}.
9510
9511 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
9512
9513         * config/i386/i386.md (floatunssisf2): Use
9514         ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
9515         (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
9516         Macroize expander using MODEF mode iterator.
9517
9518 2008-02-05  Diego Novillo  <dnovillo@google.com>
9519
9520         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
9521
9522         PR 33738
9523         * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
9524
9525 2008-02-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9526
9527         PR other/35070
9528         * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
9529
9530 2008-02-05  H.J. Lu  <hongjiu.lu@intel.com>
9531
9532         PR target/35084
9533         * config/i386/i386.c (ix86_function_sseregparm): Add an arg
9534         to indicate if a message should be generated.
9535         (init_cumulative_args): Updated.
9536         (function_value_32): Likewise.
9537
9538 2008-02-05  Joseph Myers  <joseph@codesourcery.com>
9539
9540         * doc/include/texinfo.tex: Update to version 2008-02-04.16.
9541
9542 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
9543
9544         PR target/35083
9545         * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
9546         Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
9547
9548 2008-02-04  Diego Novillo  <dnovillo@google.com>
9549
9550         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
9551
9552         PR 33738
9553         * tree-vrp.c (vrp_evaluate_conditional): With
9554         -Wtype-limits, emit a warning when comparing against a
9555         constant outside the natural range of OP0's type.
9556
9557 2008-02-04  Richard Guenther  <rguenther@suse.de>
9558
9559         PR middle-end/33631
9560         * expr.c (count_type_elements): Give for unions instead of
9561         guessing.
9562
9563 2008-02-04  Richard Guenther  <rguenther@suse.de>
9564
9565         PR middle-end/35043
9566         * gimplify.c (gimplify_init_ctor_eval): Convert array indices
9567         to TYPE_DOMAINs base type instead of using bitsizetype here.
9568
9569 2008-02-03  Jason Merrill  <jason@redhat.com>
9570
9571         * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
9572
9573 2008-02-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9574
9575         PR other/29972
9576         * doc/invoke.texi (C++ Dialect Options, Optimize Options)
9577         (HPPA Options, i386 and x86-64 Options, IA-64 Options)
9578         (RS/6000 and PowerPC Options): Fix typos and markup.
9579         * doc/passes.texi (Tree-SSA passes): Likewise.
9580
9581 2008-02-02  Michael Matz  <matz@suse.de>
9582
9583         PR target/35045
9584         * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
9585         from record_last_reg_set_info.
9586         (record_last_reg_set_info): Take an RTX argument, iterate over all
9587         constituent hardregs.
9588         (record_last_set_info, record_opr_changes): Change calls to
9589         new signature or to record_last_reg_set_info_regno.
9590
9591 2008-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
9592
9593         * doc/extend.texi (X86 Built-in Functions): Fix grammar.
9594
9595 2008-02-01  Hans-Peter Nilsson  <hp@axis.com>
9596
9597         PR rtl-optimization/34773
9598         * reg-notes.def (EQUAL): Mention significance of combination of
9599         REG_EQUAL and REG_RETVAL.
9600         * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
9601         insn that has a REG_RETVAL.
9602
9603 2008-02-01  Roger Sayle  <roger@eyesopen.com>
9604
9605         PR bootstrap/33781
9606         * configure.ac (--enable-fixed-point): Disable unless explicitly
9607         requested on IRIX.
9608         * configure: Regenerate.
9609
9610 2008-02-01  Richard Guenther  <rguenther@suse.de>
9611
9612         PR other/35042
9613         * invoke.texi (-finline-limit): Remove no longer true parts
9614         of the documentation.  Note that there is no default value.
9615
9616 2008-02-01  Andrew Pinski  <pinskia@gmail.com>
9617             Mark Mitchell  <mark@codesourcery.com>
9618             Ben Elliston  <bje@au.ibm.com>
9619
9620         PR c/29326
9621         * doc/extend.texi (Other Builtins): Document.
9622
9623 2008-01-31  Tom Browder <tom.browder@gmail.com>
9624
9625         * doc/c-tree.texi (Types): Fix grammar.
9626         (Expression trees): Ditto.
9627         * doc/passes.texi (Tree-SSA passes): Ditto.
9628         
9629         * doc/configterms.texi (Configure Terms): Fix typo.
9630         * doc/cpp.texi (Common Predefined Macros): Ditto.
9631         * doc/md.texi (Machine Constraints): Ditto.
9632         
9633         * doc/makefile.texi (Makefile): Add comma.
9634
9635 2008-01-31  Tom Browder  <tom.browder@gmail.com>
9636             Gerald Pfeifer  <gerald@pfeifer.com>
9637         
9638         * doc/sourcebuild.texi (Front End): Remove references to CVS
9639         and CVSROOT/modules.
9640         (Texinfo Manuals): Replace reference to CVS by one to SVN.
9641         (Back End): Remove reference to CVS.
9642
9643 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
9644
9645         PR target/34900
9646         * config/mips/mips.c (gen_load_const_gp): New function, taking a
9647         comment from...
9648         (mips16_gp_pseudo_reg): ...here.
9649         * config/mips/mips.md (load_const_gp): Replace with...
9650         (load_const_gp_<mode>): ...this :P-based insn.
9651
9652 2008-01-31  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
9653
9654         * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
9655         options. Minor fixes.
9656         (-std): Move reference to standards closer to where language
9657         standards are first mentioned.
9658         
9659 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
9660
9661         PR rtl-optimization/34995
9662         * reload.c (alternative_allows_const_pool_ref): Take an rtx
9663         parameter and return a bool.  If the rtx parameter is nonnull,
9664         check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
9665         (find_reloads): Update call accordingly.  Pass the new operand
9666         if it needed no address reloads, otherwise pass null.
9667
9668 2008-01-30  Richard Henderson  <rth@redhat.com>
9669
9670         PR c/34993
9671         * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
9672         for unbounded arrays.
9673
9674 2008-01-30  Silvius Rus  <rus@google.com>
9675
9676         * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
9677
9678 2008-01-30  Jan Hubicka  <jh@suse.cz>
9679
9680         PR target/34982
9681         * i386.c (init_cumulative_args): Use real function declaration when
9682         calling locally.
9683
9684 2008-01-30  Richard Sandiford  <rsandifo@nildram.co.uk>
9685
9686         PR rtl-optimization/34998
9687         * global.c (build_insn_chain): Treat non-subreg_lowpart
9688         SUBREGs of pseudos as clobbering all the words covered by the
9689         SUBREG, not just all the bytes.
9690         * ra-conflict.c (clear_reg_in_live): Likewise.  Take the
9691         original df_ref rather than an extract parameter.
9692         (global_conflicts): Update call accordingly.
9693
9694 2008-01-30  Andreas Krebbel  <krebbel1@de.ibm.com>
9695
9696         * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
9697         the overflow check to make it easier to read.
9698         (__fixtfdi): Change the type of the ll member in union
9699         long_double to UDItype_x.
9700
9701 2008-01-30  Jakub Jelinek  <jakub@redhat.com>
9702
9703         PR middle-end/34969
9704         * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
9705         * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
9706         * tree-inline.c (fold_marked_statements): Call
9707         cgraph_update_edges_for_call_stmt if folding a call statement.
9708         * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
9709         debug_generic_stmt calls, reset it back afterwards.
9710
9711         PR c/35017
9712         * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
9713         static decls.
9714         * c-typeck.c (build_external_ref): Don't pedwarn about
9715         static vars in current function's scope.
9716
9717 2008-01-29  Joseph Myers  <joseph@codesourcery.com>
9718
9719         * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
9720
9721 2008-01-29  Bernhard Fischer  <aldot@gcc.gnu.org>
9722
9723         PR c/35002
9724         * ipa-struct-reorg.c: Fix spelling.
9725         * params.def: Ditto.
9726
9727 2008-01-29  Richard Guenther  <rguenther@suse.de>
9728
9729         PR middle-end/35006
9730         * tree-inline.h (struct copy_body_data): Add remapping_type_depth
9731         field.
9732         * tree-inline.c (remap_type): Increment remapping_type_depth
9733         around remapping types.
9734         (copy_body_r): Only add referenced variables if they are referenced
9735         from code, not types.
9736
9737 2008-01-29  Douglas Gregor  <doug.gregor@gmail.com>
9738
9739         PR c++/34055
9740         PR c++/34103
9741         PR c++/34219
9742         PR c++/34606
9743         PR c++/34753
9744         PR c++/34754
9745         PR c++/34755
9746         PR c++/34919
9747         PR c++/34961
9748         * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
9749         qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
9750
9751 2008-01-28  Andy Hutchinson   <hutchinsonandy@netscape.net>
9752
9753         PR target/34412
9754         * config/avr/avr.c (expand_prologue): Use correct QI mode frame 
9755         pointer for tiny stack.
9756
9757 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
9758
9759         * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
9760
9761 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
9762
9763         * config/vx-common.h: Fix typo in comment.
9764
9765 2008-01-28  Ian Lance Taylor  <iant@google.com>
9766
9767         PR c++/34862
9768         PR c++/33407
9769         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
9770         coalesce pointers if they have different DECL_NO_TBAA_P values.
9771         * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
9772         between variables with different DECL_NO_TBAA_P values.
9773
9774 2008-01-28  Nathan Froyd  <froydnj@codesourcery.com>
9775
9776         PR 31535
9777         * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
9778         are not legitimate small data references on SPE targets.
9779
9780 2008-01-28  David Daney  <ddaney@avtrex.com>
9781
9782         * doc/install.texi (mips-*-*): Recommend binutils 2.18.
9783
9784 2008-01-28  David Daney  <ddaney@avtrex.com>
9785
9786         * doc/install.texi (--disable-libgcj-bc):  Reword documentation.
9787
9788 2008-01-27  Joseph Myers  <joseph@codesourcery.com>
9789
9790         * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
9791         m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
9792         *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
9793         *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
9794         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
9795         i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
9796         i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
9797         vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
9798
9799 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
9800
9801         * basic-block.h (condjump_equiv_p): Fix comment.
9802
9803 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
9804
9805         * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
9806         print_generic_stmt_indented): Fix comment.
9807
9808 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
9809
9810         * configure.ac (__stack_chk_fail): Add detecion for availability
9811         of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
9812         * configure: Regenerate.
9813
9814 2008-01-26  Maxim Kuvyrkov  <maxim@codesourcery.com>
9815
9816         PR middle-end/34688
9817         * final.c (output_addr_const): Handle TRUNCATE.
9818
9819 2008-01-26  Zdenek Dvorak  <ook@ucw.cz>
9820
9821         PR target/34711
9822         * tree-ssa-loop-ivopts.c (comp_cost): New type.
9823         (zero_cost, infinite_cost): New constants.
9824         (struct cost_pair): Change type of cost to comp_cost.
9825         (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
9826         (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
9827         New functions.
9828         (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
9829         split_address_cost, ptr_difference_cost, difference_cost,
9830         get_computation_cost_at, get_computation_cost,
9831         determine_use_iv_cost_generic, determine_use_iv_cost_address,
9832         determine_use_iv_cost_condition, determine_use_iv_costs,
9833         cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
9834         iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
9835         iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
9836         Change type of cost to comp_cost.
9837         (determine_iv_cost): Increase cost of non-original ivs, instead
9838         of decreasing the cost of original ones.
9839         (get_address_cost): Indicate the complexity of the addressing mode 
9840         in comp_cost.
9841         (try_add_cand_for): Prefer using ivs not specific to some object.
9842         * tree-flow.h (force_expr_to_var_cost): Declaration removed.
9843
9844 2008-01-26  Peter Bergner  <bergner@vnet.ibm.com>
9845             Janis Johnson  <janis187@us.ibm.com>
9846
9847         PR target/34814
9848         * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
9849         (TARGET_INSTANTIATE_DECLS): Likewise.
9850         * target.h (expand_to_rtl_hook): New target hook.
9851         (instantiate_decls): Likewise.
9852         * function.c (instantiate_decl): Make non-static.  Rename to...
9853         (instantiate_decl_rtl): ... this.
9854         (instantiate_expr): Use instantiate_decl_rtl.
9855         (instantiate_decls_1): Likewise.
9856         (instantiate_decls): Likewise.
9857         (instantiate_virtual_regs: Call new instantiate_decls taget hook.
9858         * function.h (instantiate_decl_rtl): Add prototype.
9859         * cfgexpand.c (target.h): New include.
9860         (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
9861         * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
9862         (TARGET_INSTANTIATE_DECLS): Likewise.
9863         (TARGET_INITIALIZER): New target hooks added.
9864         * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
9865         New prototype.
9866         * config/rs6000/rs6000.c (tree-flow.h): New include.
9867         (machine_function): Add sdmode_stack_slot field.
9868         (rs6000_alloc_sdmode_stack_slot): New function.
9869         (rs6000_instantiate_decls): Likewise.
9870         (rs6000_secondary_memory_needed_rtx): Likewise.
9871         (rs6000_check_sdmode): Likewise.
9872         (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
9873         (TARGET_INSTANTIATE_DECLS): Likewise.
9874         (rs6000_hard_regno_mode_ok): Allow SDmode.
9875         (num_insns_constant): Likewise.  Handle _Decimal32 constants.
9876         (rs6000_emit_move): Handle SDmode.
9877         (function_arg_advance): Likewise.
9878         (function_arg): Likewise.
9879         (rs6000_gimplify_va_arg): Likewise.  Add special handling of
9880         SDmode var args for 32-bit compiles.
9881         (rs6000_secondary_reload_class): Handle SDmode.
9882         (rs6000_output_function_epilogue): Likewise.
9883         (rs6000_function_value): Simplify if statement.
9884         (rs6000_libcall_value): Likewise.
9885         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
9886         (SECONDARY_MEMORY_NEEDED_RTX): Add define.
9887         * config/rs6000/dfp.md (movsd): New define_expand and splitter.
9888         (movsd_hardfloat): New define_insn.
9889         (movsd_softfloat): Likewise.
9890         (movsd_store): Likewise.
9891         (movsd_load): Likewise.
9892         (extendsddd2): Likewise.
9893         (extendsdtd2): Likewise.
9894         (truncddsd2): Likewise.
9895         (movdd_hardfloat64): Fixup comment.
9896         (UNSPEC_MOVSD_LOAD): New constant.
9897         (UNSPEC_MOVSD_STORE): Likewise.
9898
9899 2008-01-26  Jakub Jelinek  <jakub@redhat.com>
9900
9901         PR c++/34965
9902         * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
9903         TRUTH_XOR_EXPR.
9904         (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
9905         (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
9906         (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
9907         and TRUTH_XOR_EXPR.
9908
9909 2008-01-26  David Edelsohn  <edelsohn@gnu.org>
9910
9911         PR target/34794
9912         * config.gcc: Separate AIX 5.3 from AIX 6.1.
9913         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
9914         __LONGDOUBLE128 too.
9915         * config/rs6000/aix61.h: New file.
9916
9917 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
9918
9919         PR rtl-optimization/34959
9920         * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
9921         popcount and parity rtxes the same mode as their operand.
9922         Truncate or extend the result to the return value's mode
9923         if necessary.
9924
9925 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
9926
9927         PR target/34981
9928         * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
9929         * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
9930         to GOT_VERSION_REGNUM.
9931         (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
9932         (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
9933         * config/mips/mips.c (mips_emit_call_insn): New function.
9934         (mips_call_tls_get_addr): Call mips_expand_call directly.
9935         (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
9936         emit_call_insn.
9937         (mips16_build_call_stub): Likewise.  Return the call insn or null.
9938         (mips_expand_call): Update the call to mips16_build_call_stub
9939         accordingly and a remove redundant condition.  Assert that MIPS16
9940         stubs do not use lazy binding.  Use mips_emit_call_insn and return
9941         the call insn.
9942         (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
9943         TARGET_USE_GOT.
9944         (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
9945         (mips_avoid_hazard): Remove hazard_set handling.
9946         * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
9947         (UNSPEC_RESTORE_GP): ...this.
9948         (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
9949         (FAKE_CALL_REGNO): Rename to...
9950         (GOT_VERSION_REGNUM): ...this.
9951         (type): Add "ghost" value.  Add an associated insn reservation.
9952         (hazard_set): Remove.
9953         (exception_receiver): Rename to...
9954         (restore_gp): ...this and update the unspec identifier accordingly.
9955         (exception_receiver, nonlocal_got_receiver): New expanders.
9956         (load_call<mode>): Use GOT_VERSION_REGNUM.  Don't set
9957         FAKE_CALL_REGNO.  Remove hazard_set attribute.
9958         (set_got_version, update_got_version): New patterns.
9959
9960 2008-01-26  Danny Smith  <dannysmith@users.sourceforge.net>
9961
9962         PR target/34970
9963         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
9964
9965 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
9966
9967         PR other/31955
9968         * doc/install.texi2html: Generate gcc-vers.texi.
9969
9970 2008-01-25  DJ Delorie  <dj@redhat.com>
9971
9972         * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
9973
9974 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
9975
9976         * config/c4x: Remove directory.
9977         * config.gcc (crx-*, mt-*): Mark obsolete.
9978         (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
9979         h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
9980         sh-*-rtemscoff*): Remove cases.
9981         * defaults.h (C4X_FLOAT_FORMAT): Remove.
9982         * real.c (encode_c4x_single, decode_c4x_single,
9983         encode_c4x_extended, decode_c4x_extended, c4x_single_format,
9984         c4x_extended_format): Remove.
9985         * real.h (c4x_single_format, c4x_extended_format): Remove.
9986         * doc/extend.texi (interrupt, naked): Remove mention of attributes
9987         on C4x.
9988         (Pragmas): Remove comment about c4x pragmas.
9989         * doc/install.texi (c4x): Remove target-specific instructions.
9990         * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
9991         * doc/md.texi (Machine Constraints): Remove C4x documentation.
9992         * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
9993         refer to C4x source files as examples.
9994         (C4X_FLOAT_FORMAT): Remove documentation.
9995
9996 2008-01-25  Bernd Schmidt  <bernd.schmidt@analog.com>
9997
9998         * config/bfin/bfin.c (override_options): Reorder tests so that
9999         flag_pic gets enabled for -msep-data.
10000
10001 2008-01-25  Richard Guenther  <rguenther@suse.de>
10002
10003         PR middle-end/32244
10004         * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
10005         to its bitfield precision if required.
10006
10007 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
10008
10009         PR middle-end/33880
10010         * tree-nested.c (walk_omp_for): New function.
10011         (convert_nonlocal_reference, convert_local_reference): Call
10012         walk_omp_for on OMP_FOR.
10013         (convert_call_expr): Call walk_body on OMP_FOR's
10014         OMP_FOR_PRE_INIT_BODY.
10015
10016 2008-01-25  Richard Guenther  <rguenther@suse.de>
10017
10018         PR tree-optimization/34966
10019         * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
10020         default defs and PHI_NODEs we have to insert after the
10021         defining statement.
10022
10023 2008-01-24  Nick Clifton  <nickc@redhat.com>
10024
10025         * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
10026         Provide a default definition.
10027         (LIBGCC2_UNITS_PER_WORD): Likewise.
10028
10029         * config/stormy16/stormy16.c: Include df.h for the prototype
10030         for df_regs_ever_live_p.
10031         (xstormy16_expand_builtin_va_start): Convert the stack offset
10032         into a component_ref and then use POINTER_PLUS_EXPR to add it
10033         to the incoming_virtual_args_rtx.
10034         (xstormy16_gimplify_va_arg_expr): Rename to
10035         xstormy16_gimplify_va_arg_expr.
10036         Use POINTER_PLUS_EXPR when performing pointer arithmetic.
10037         (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
10038         xstormy16_gimplify_va_arg_expr.
10039         Fix up some formatting issues.
10040
10041         * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
10042         Move to predicates.md.
10043         (xs_hi_general_operand): Likewise.
10044         (xs_hi_nonmemory_operand): Likewise.
10045         * config/stormy16/predicates.md:
10046         (xstormy16_carry_plus_operand): New predicate.
10047         (xs_hi_general_operand): New predicate.
10048         (xs_hi_nonmemory_operand): New predicate.
10049         * config/stormy16/stormy16-protos.h:
10050         (xstormy16_carry_plus_operand): Delete prototype.
10051         (xs_hi_general_operand): Likewise.
10052         (xs_hi_nonmemory_operand): Likewise.
10053
10054         * config/storm16/stormy16.md (addhi3): Remove earlyclobber
10055         modifiers as they are no longer needed and they can trigger
10056         reload spill failures.
10057
10058         * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
10059         with a match_operand in order to help reload.
10060
10061         * config/storm16/stormy16.md (movhi_internal): Replace 'r'
10062         constraint with 'e' for the 8th alternative as this version of
10063         the mov.w instruction only accepts the lower 8 registers.
10064
10065 2008-01-25  Uros Bizjak  <ubizjak@gmail.com>
10066
10067         PR target/34856
10068         * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
10069         Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
10070         vector elements.
10071
10072 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
10073
10074         PR middle-end/33333
10075         * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
10076
10077 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
10078
10079         * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
10080         New functions.
10081         (remove_structure): Update allocations list before removing structure.
10082         
10083 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
10084
10085         * ipa-struct-reorg.c (is_safe_cond_expr, 
10086         create_new_stmts_for_cond_expr): Use integer_zerop function,
10087         that recognize not only zero-pointer, but zero-integer too.
10088
10089 2008-01-25  Ben Elliston  <bje@au.ibm.com>
10090
10091         PR other/22232
10092         * fixproto: Escape "." in sed expression that strips leading "./".
10093
10094 2008-01-24  H.J. Lu  <hongjiu.lu@intel.com>
10095
10096         PR driver/34904
10097         * gcc.c (SWITCH_OK): Removed.
10098         (SWITCH_LIVE): Changed to bit.
10099         (SWITCH_FALSE): Likewise.
10100         (SWITCH_IGNORE): Likewise.
10101         (switchstr): Change live_cond to unsigned int.
10102         (process_command): Replace SWITCH_OK with 0.
10103         (do_self_spec): Likewise.
10104         (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
10105         (give_switch): Likewise.
10106         (used_arg): Likewise.
10107         (do_spec_1): Set the SWITCH_IGNORE bit.
10108         (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
10109         bits.  Set the SWITCH_LIVE bit.
10110
10111 2008-01-24  Andreas Krebbel  <krebbel1@de.ibm.com>
10112
10113         * config/s390/s390.h (MOVE_RATIO): Define new target macro.
10114
10115 2008-01-24  Richard Sandiford  <rsandifo@nildram.co.uk>
10116
10117         PR tree-optimization/34472
10118         * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
10119         parameter to a "bool *" and set *DATA to false if there is
10120         an unsafe access.  Do not delete the structure here.
10121         (check_cond_exprs): Delete it here instead.
10122         (check_cond_exprs, exclude_cold_structs): Do not increase
10123         I when removing a structure.
10124
10125 2008-01-24  Uros Bizjak  <ubizjak@gmail.com>
10126
10127         PR target/34856
10128         * config/i386/i386.c (ix86_expand_vector_init): Consider only
10129         CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
10130
10131 2008-01-24  Jakub Jakub Jelinek  <jakub@redhat.com>
10132
10133         PR middle-end/34934
10134         * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
10135         a fixed vector for stack.
10136
10137 2008-01-24  Ben Elliston  <bje@au.ibm.com>
10138
10139         PR c++/25701
10140         * doc/gcc.texi (Software development): Add a direntry for g++.
10141         
10142 2008-01-23  Hans-Peter Nilsson  <hp@axis.com>
10143
10144         * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
10145         stale and straggling -fforce-addr comments above.
10146
10147         * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
10148         define.
10149         * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
10150         * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
10151
10152 2008-01-23  Michael Matz  <matz@suse.de>
10153
10154         PR debug/34895
10155         * dwarf2out.c (force_type_die): Use modified_type_die instead of
10156         gen_type_die.
10157
10158 2008-01-23  Andreas Krebbel  <krebbel1@de.ibm.com>
10159
10160         * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
10161         malloc result type.
10162
10163 2008-01-23 Anatoly Sokolov <aesok@post.ru>
10164
10165         * config/avr/avr.c (avr_current_arch): New variable.
10166         (avr_arch_types): Add 'avr31' and 'avr51' entries.
10167         (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
10168         (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
10169         (avr_override_options): Init 'avr_current_arch'. 
10170         (base_arch_s): Move from here...
10171         * config/avr/avr.h (base_arch_s): ... here. Add new members 
10172         'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename 
10173         'mega' to 'have_jmp_call'.
10174         (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__", 
10175         "__AVR_HAVE_RAMPZ__",   "__AVR_HAVE_ELPM__" and  "__AVR_HAVE_ELPMX__"
10176         macros.
10177         (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51' 
10178         architectures.
10179         * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES, 
10180         MULTILIB_MATCHES): (Ditto.).
10181
10182 2008-01-23  Richard Guenther  <rguenther@suse.de>
10183
10184         PR middle-end/31529
10185         * cgraphunit.c (cgraph_reset_node): Always mark the node
10186         not reachable if it is not queued already.
10187
10188 2008-01-23  Bernd Schmidt  <bernd.schmidt@analog.com>
10189
10190         * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
10191         * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
10192         (cputype_selected): New static variable.
10193         (bfin_handle_option): Set it if -mcpu is used.
10194         (override_option): Select default set of workarounds if no cpu type
10195         selected on the command line.
10196         (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
10197
10198         From  Michael Frysinger  <michael.frysinger@analog.com>
10199         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
10200         BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
10201
10202         * config/bfin/elf.h (LIB_SPEC): Use proper linker script
10203         for bf547, bf523, bf524, and bf526.
10204         * config/bfin/bfin.c (bfin_cpus[]): Add bf547,  bf523, bf524, and
10205         bf526.
10206         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
10207         __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
10208         __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
10209         __ADSPBF547__ and __ADSPBF54x__ for bf547.
10210         * doc/invoke.texi (Blackfin Options): Document that
10211         -mcpu now accept bf547, bf523, bf524, and bf526.
10212
10213 2008-01-22  Eric Botcazou  <ebotcazou@adacore.com>
10214
10215         PR rtl-optimization/34628
10216         * combine.c (try_combine): Stop and undo after the first combination
10217         if an autoincrement side-effect on the first insn has effectively
10218         been lost.
10219
10220 2008-01-22  David Edelsohn  <edelsohn@gnu.org>
10221
10222         PR target/34529
10223         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
10224         Offset addresses are not valid for Altivec or paired float modes.
10225
10226 2008-01-22  Jakub Jelinek  <jakub@redhat.com>
10227
10228         PR c++/34607
10229         * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
10230         if DECL_INITIAL (decl) is error_mark_node.
10231
10232         PR c++/34914
10233         * c-common.c (handle_vector_size_attribute): Only allow
10234         integral, scalar float and fixed point types.  Handle OFFSET_TYPE
10235         the same way as pointer, array etc. types.
10236         * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
10237
10238         PR c++/34917
10239         * tree.c (build_type_attribute_qual_variant): Call
10240         build_qualified_type if attributes are equal, but quals are not.
10241
10242 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
10243
10244         PR 32102
10245         * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
10246         * flags.h (warn_strict_aliasing): Remove.
10247         (warn_strict_overflow): Remove.
10248         * opts.c (warn_strict_aliasing): Remove.
10249         (warn_strict_overflow): Remove.
10250         * c-opts.c (c_common_handle_option): -Wall only sets
10251         -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
10252         (c_common_post_options): Give default values to -Wstrict-aliasing
10253         and -Wstrict-overflow if they are uninitialized.
10254         * common.opt (Wstrict-aliasing): Specify Var and Init.
10255         (Wstrict-overflow): Likewise.
10256
10257 2008-01-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
10258
10259         PR rtl-optimization/26854
10260         PR rtl-optimization/34400
10261         PR rtl-optimization/34884
10262         * ddg.c (create_ddg_dep_from_intra_loop_link): Use
10263         DF_RD->gen.
10264         * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
10265         (df_rd_bb_info.expanded_lr_out): Deleted
10266         * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
10267         * loop_iv.c (iv_analysis_loop_init): Ditto.  * df-problems.c
10268         (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
10269         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
10270         Removed code to allocate, initialize or free expanded_lr_out.
10271         (df_rd_bb_local_compute_process_def): Restructured to make more
10272         understandable.
10273         (df_rd_confluence_n): Removed code to no apply invalidate_by_call
10274         sets if the sets are being trimmed.
10275
10276 2008-01-22  H.J. Lu  <hongjiu.lu@intel.com>
10277
10278         PR bootstrap/32287
10279         * configure.ac (ld_vers): Support GNU linker version xx.xx.*
10280         (as_vers): Likewise.
10281         * configure: Regenerated.
10282
10283 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
10284
10285         PR middle-end/33092
10286         * tree-pass.h (pass_build_alias): New pass.
10287         * tree-ssa-alias.c (gate_build_alias): New.
10288         (pass_build_alias): New.
10289         * passes.c (init_optimization_passes): Add pass_build_alias after
10290         pass_create_structure_vars.
10291
10292 2008-01-22  Wolfgang Gellerich  <gellerich@de.ibm.com>
10293
10294         * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
10295         Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
10296         (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
10297         S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
10298         (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
10299         S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
10300         (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
10301         S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
10302         (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
10303         (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
10304         (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
10305         (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
10306         * config/s390/s390.md (FP_ALL): New mode iterator.
10307         (_d): New mode attribute.
10308         ("*signbit<mode>2>"): Changed mode of first operand.
10309         ("isinf<mode>2"): Changed mode of first operand.
10310         ("*TDC_insn"): Adaptation for DFP modes.
10311
10312 2008-01-22  Ben Elliston  <bje@au.ibm.com>
10313
10314         * tree.c (check_qualified_type): Improve function description.
10315
10316 2008-01-21  Jason Merrill  <jason@redhat.com>
10317
10318         PR c++/34196
10319         * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
10320         * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
10321         if it is set.
10322
10323 2008-01-21  DJ Delorie  <dj@redhat.com>
10324
10325         * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
10326         return zero.
10327
10328 2008-01-21  Richard Guenther  <rguenther@suse.de>
10329
10330         PR middle-end/34856
10331         * tree-cfg.c (verify_expr): Allow all invariant expressions
10332         instead of just constant class ones as reference argument.
10333         * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
10334         like any other constant.
10335         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
10336
10337 2008-01-21  H.J. Lu  <hongjiu.lu@intel.com>
10338
10339         * regmove.c (fixup_match_1): Update call crossed frequencies.
10340
10341 2008-01-21  Richard Guenther  <rguenther@suse.de>
10342
10343         PR c/34885
10344         * tree-inline.c (setup_one_parameter): Deal with mismatched
10345         types using a VIEW_CONVERT_EXPR.
10346
10347 2008-01-21  Alon Dayan  <alond@il.ibm.com>
10348             Olga Golovanevsky  <olga@il.ibm.com>
10349         
10350         PR tree-optimization/34701
10351         * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
10352         when the structure size is not a power of 2.
10353
10354 2008-01-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
10355
10356         * doc/install.texi: Add doc for --enable-checking=df.
10357         
10358 2008-01-20  Kaz Kojima  <kkojima@gcc.gnu.org>
10359
10360         PR rtl-optimization/34808
10361         * emit-rtl.c (try_split): Handle REG_RETVAL notes.
10362
10363 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
10364
10365         * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
10366         input.
10367
10368 2008-01-19  Kenneth Zadeck  <zadeck@naturalbridge.com>
10369
10370         PR rtl-optimization/26854
10371         PR rtl-optimization/34400
10372         * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
10373         DF_RD->gen.
10374         * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
10375         (df_rd_bb_info.expanded_lr_out): New.
10376         * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
10377         * loop_iv.c (iv_analysis_loop_init): Ditto.
10378         * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
10379         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
10380         Added code to allocate, initialize or free expanded_lr_out.
10381         (df_rd_bb_local_compute_process_def): Restructured to make
10382         more understandable.
10383         (df_rd_confluence_n): Add code to do nothing with fake edges and
10384         code to no apply invalidate_by_call sets if the sets are being trimmed.
10385         (df_lr_local_finalize): Renamed to df_lr_finalize.
10386         (df_live_local_finalize): Renamed to df_live_finalize.
10387
10388 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
10389
10390         PR target/34831
10391         * config/mips/mips.md (div<mode>3): Use <recip_condition> when
10392         deciding whether to use reciprocal instructions.
10393
10394 2008-01-19  Uros Bizjak  <ubizjak@gmail.com>
10395
10396         * dwarf2out.c (dwarf2out_switch_text_section): Do not call
10397         dwarf2out_note_section_used if cold_text_section is NULL.
10398
10399 2008-01-19  Jakub Jelinek  <jakub@redhat.com>
10400
10401         PR gcov-profile/34610
10402         * tree-cfg.c (make_edges): Mark both outgoing edges from
10403         OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
10404         * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
10405         from OMP_FOR and OMP_CONTINUE outgoing edges.
10406
10407         * tree-profile.c (tree_profiling): Return early if
10408         cfun->after_tree_profile != 0.  Set cfun->after_tree_profile
10409         at the end.
10410         * omp-low.c (expand_omp_parallel): Copy after_tree_profile
10411         from cfun to child_cfun.
10412         * function.h (struct function): Add after_tree_profile bit.
10413
10414 2008-01-19 Anatoly Sokolov <aesok@post.ru>
10415
10416         * config/avr/avr.S (_exit): Disable interrupt.
10417
10418 2008-01-18  Kenneth Zadeck  <zadeck@naturalbridge.com>
10419             Steven Bosscher  <stevenb.gcc@gmail.com>
10420
10421         PR rtl-optimization/26854
10422         PR rtl-optimization/34400
10423         * df-problems.c (df_live_scratch): New scratch bitmap.
10424         (df_live_alloc): Allocate df_live_scratch when doing df_live.
10425         (df_live_reset): Clear the proper bitmaps.
10426         (df_live_bb_local_compute): Only process the artificial defs once
10427         since the order is not important.
10428         (df_live_init): Init the df_live sets only with the variables
10429         found live by df_lr.
10430         (df_live_transfer_function): Use the df_lr sets to prune the
10431         df_live sets as they are being computed.  
10432         (df_live_free): Free df_live_scratch.
10433
10434 2008-01-18  Ian Lance Taylor  <iant@google.com>
10435
10436         * common.opt: Add fmerge-debug-strings.
10437         * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
10438         flag_merge_debug_strings rather than flag_merge_constants.
10439         * doc/invoke.texi (Option Summary): Mention
10440         -fmerge-debug-strings.
10441         (Debugging Options): Document -fmerge-debug-strings.
10442
10443 2008-01-18  Ian Lance Taylor  <iant@google.com>
10444
10445         PR c++/33407
10446         * tree.h (DECL_IS_OPERATOR_NEW): Define.
10447         (struct tree_function_decl): Add new field operator_new_flag.
10448         * tree-inline.c (expand_call_inline): When inlining a call to
10449         operator new, force the return value to go into a variable, and
10450         set DECL_NO_TBAA_P on that variable.
10451         * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
10452
10453 2008-01-18  Uros Bizjak  <ubizjak@gmail.com>
10454
10455         PR debug/34484
10456         * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
10457         DWARF2_DEBUGGING_INFO.
10458         (dwarf2out_note_section_used): Ditto.  Add prototype.
10459         (have_multiple_function_sections, text_section_used,
10460         cold_text_section_used, *cold_text_sections): Move declarations
10461         before their uses.
10462
10463 2008-01-17  Bob Wilson  <bob.wilson@acm.org>
10464
10465         * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
10466         field and add signal_ra.
10467         * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
10468         assignments to frame state pc.  Move end of stack check after
10469         MD_FALLBACK_FRAME_STATE_FOR.
10470         (uw_update_context_1): Use frame state signal_regs if set, instead
10471         of checking signal_frame flag.
10472         (uw_update_context): Use frame state signal_ra if set.
10473         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
10474         * config/xtensa/linux-unwind.h: New file.
10475
10476 2008-01-18  Bernhard Fischer  <aldot@gcc.gnu.org>
10477
10478         * modulo-sched.c (get_sched_window): Fix comment typo.
10479
10480 2008-01-17  Andrew MacLeod  <amacleod@redhat.com>
10481
10482         PR tree-optimization/34648
10483         * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
10484
10485 2008-01-17  Anatoly Sokolov <aesok@post.ru>
10486
10487         * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
10488         * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
10489
10490 2008-01-17  Seongbae Park  <seongbae.park@gmail.com>
10491
10492         PR rtl-optimization/34400
10493         * df-core.c (df_worklist_dataflow_overeager,
10494         df_worklist_dataflow_doublequeue): New functions.
10495         (df_worklist_dataflow): Two different worklist solvers.
10496         * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
10497         New param.
10498
10499 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
10500
10501         PR testsuite/34821
10502         * doc/invoke.texi: Document the dependence on pthread for fopenmp
10503         and ftree-parallelize-loops.
10504
10505 2008-01-17  Mircea Namolaru  <namolaru@il.ibm.com>
10506
10507         PR rtl-optimization/34826
10508         * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
10509
10510 2008-01-17  Andreas Krebbel  <krebbel1@de.ibm.com>
10511
10512         * global.c (find_reg): Mark the eh regs as used if necessary.
10513         * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
10514         * ra.h (struct allocno): no_eh_reg field added.  Changed
10515         no_stack_reg type to bitfield.
10516
10517 2008-01-17  Eric Botcazou  <ebotcazou@adacore.com>
10518
10519         * tree.c (substitute_in_expr): Add missing 'break'.
10520
10521 2008-01-17  Richard Guenther  <rguenther@suse.de>
10522
10523         PR tree-optimization/34825
10524         * tree-ssa-math-opts.c (is_division_by): Do not recognize
10525         x / x as division to handle.
10526
10527 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10528
10529         * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
10530         "-pthread" is specified.
10531         * pa-hpux11.h (LIB_SPEC): Likewise.
10532
10533 2008-01-16  Janis Johnson  <janis187@us.ibm.com>
10534             Peter Bergner  <bergner@vnet.ibm.com>
10535
10536         PR rtl-optimization/33796
10537         * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
10538
10539 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10540
10541         PR libgfortran/34699
10542         * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
10543         static links.
10544         * pa-hpux10.h (LINK_SPEC): Likewise.
10545         * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
10546
10547 2008-01-16  Richard Guenther  <rguenther@suse.de>
10548
10549         PR middle-end/32628
10550         * fold-const.c (fold_convert_const_int_from_int): Do not
10551         set overflow if that occured only because of a sign extension
10552         change when converting from/to a sizetype with the same
10553         precision and signedness.
10554
10555 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
10556
10557         PR debug/34249
10558         * dwarf2out.c (output_call_frame_info): Move output of FDE initial
10559         location address to the correct place.  Update copyright year.
10560
10561 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
10562
10563         * lambda-code.c (lambda_transform_legal_p): Handle the case of
10564         no dependences in the dependence_relations vector.
10565
10566 2008-01-16  Jan Hubicka  <jh@suse.cz>
10567
10568         PR rtl-optimization/31396
10569         * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
10570         * cfg.c (dump_reg_info): Print it.
10571         * regs.h (struct reg_info_t): add freq_calls_crossed.
10572         (REG_FREQ_CALLS_CROSSED): New macro.
10573         * global.c (global_alloc): Compute freq_calls_crossed for allocno.
10574         (find_reg): Update call of CALLER_SAVE_PROFITABLE.
10575         * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
10576         regmove_optimize): Update call crossed frequencies.
10577         * local-alloc.c (struct qty): Add freq_calls_crossed.
10578         (alloc_qty): Copute freq_calls_crossed.
10579         (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
10580         (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
10581         * ra.h (struct allocno): Add freq_calls_crossed.
10582
10583 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
10584
10585         * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
10586         libgomp when compiling with ftree-parallelize-loops.
10587         (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
10588
10589 2008-01-16  Richard Guenther  <rguenther@suse.de>
10590
10591         PR tree-optimization/34769
10592         * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
10593         * tree.c (int_cst_value): Instead make this function more
10594         permissive in what it accepts as valid input.  Document this
10595         function always sign-extends the value.
10596
10597 2008-01-16  Jakub Jelinek  <jakub@redhat.com>
10598             Richard Guenther  <rguenther@suse.de>
10599
10600         PR c/34668
10601         * gimplify.c (fold_indirect_ref_rhs): Rename to ...
10602         (gimple_fold_indirect_ref_rhs): ... this.
10603         (gimple_fold_indirect_ref): New function with foldings
10604         that preserve lvalueness.
10605         (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
10606         * tree-flow.h (gimple_fold_indirect_ref): Declare.
10607         * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
10608         to fold an INDIRECT_REF, fall back to the old use of
10609         fold_indirect_ref_1.
10610
10611 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
10612
10613         * tree-data-ref.c (subscript_dependence_tester_1): Call 
10614         free_conflict_function.
10615         (compute_self_dependence): Same.
10616
10617 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
10618
10619         PR debug/34249
10620         * debug.h (dwarf2out_switch_text_section): Move declaration from ...
10621         * dwarf2out.c (dwarf2out_switch_text_section): ... here.  Make
10622         function global.
10623         * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
10624         Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
10625         for DWARF2_UNWIND_INFO targets.
10626
10627 2008-01-16  Richard Guenther  <rguenther@suse.de>
10628
10629         PR c/34768
10630         * c-typeck.c (common_pointer_type): Do not merge inconsistent
10631         type qualifiers for function types.
10632
10633 2008-01-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
10634
10635         * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
10636         loop_iterator li from previous commit.
10637
10638 2008-01-15  Sebastian Pop  <sebastian.pop@amd.com>
10639
10640         * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
10641
10642 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
10643
10644         * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
10645         (parallelize_loops): Don't parallelize irreducible components.
10646
10647 2008-01-14  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
10648
10649         PR c++/24924
10650         * c-opts (c_common_post_options): Do not enable CPP
10651         flag_pedantic_errors by default.
10652         
10653 2008-01-14  Eric Botcazou  <ebotcazou@adacore.com>
10654
10655         PR rtl-optimization/31944
10656         * cse.c (remove_pseudo_from_table): New function.
10657         (merge_equiv_classes): Use above function to remove pseudo-registers.
10658         (invalidate): Likewise.
10659
10660 2008-01-13  Richard Guenther  <rguenther@suse.de>
10661
10662         PR middle-end/34601
10663         * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
10664         instead of TYPE_MODE to deal with calls from expand_one_error_var.
10665
10666 2008-01-13  Uros Bizjak  <ubizjak@gmail.com>
10667
10668         * gcse.c (cprop_jump): Call validate_unshare_change instead of
10669         validate_change to unshare the source of the PC set.
10670
10671 2008-01-12  Jan Hubicka  <jh@suse.cz>
10672
10673         PR middle-end/32135
10674         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
10675         references above array bounds.  This might trigger bounds checks for
10676         pointers to arrays.
10677
10678 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
10679
10680         * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
10681         new_replaceable_dependencies.
10682
10683 2008-01-12  Doug Kwan  <dougkwan@google.com>
10684
10685         * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
10686         instead of OPT_Wreturn_type in warning due to ignored return type
10687         qualifiers.
10688         * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
10689         options included in -Wextra.
10690         * c.opt: New option -Wignored_qualifiers.
10691         * doc/invoke.texi (Warning Options, -Wextra): Add new option
10692         -Wignore_qualifiers.
10693         (-Wignored-qualifiers): Document.
10694         (-Wreturn-type): Remove description of functionality now handled
10695         by -Wignored-qualifiers.
10696
10697 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
10698
10699         PR ada/33788
10700         * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
10701         NOP_EXPR if it is between integral types with the same precision.
10702
10703 2008-01-12  Jan Hubicka  <jh@suse.cz>
10704
10705         PR other/28023
10706         * invoke.texi (max-inline-recursive-depth): Fix default value.
10707
10708 2008-01-12  Zdenek Dvorak  <ook@ucw.cz>
10709
10710         * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
10711         correct type.
10712
10713 2008-01-11  Bob Wilson  <bob.wilson@acm.org>
10714         
10715         * config/xtensa/xtensa.c (override_options): Set flag_shlib.
10716         
10717 2008-01-11  James E. Wilson  <wilson@specifix.com>
10718
10719         PR target/26015
10720         * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
10721
10722 2008-01-11  Anatoly Sokolov <aesok@post.ru>
10723
10724         * config/avr/avr.c (expand_prologue, expand_epilogue): Don't 
10725         save/restore frame pointer register and don't use 'call-prologues' 
10726         optimization in function with "OS_task" attribute.
10727
10728 2008-01-11  Eric Botcazou  <ebotcazou@adacore.com>
10729
10730         PR middle-end/31309
10731         * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
10732         when copying to memory.
10733
10734 2008-01-11  Steven Bosscher  <stevenb.gcc@gmail.com>
10735
10736         PR rtl-optimization/30905
10737         * cfgcleanup.c: Include dce.h
10738         (crossjumps_occured): New global variable.
10739         (try_crossjump_bb): Exit loop after finding a fallthru edge.
10740         If something changed, set crossjumps_occured to true.
10741         (try_optimize_cfg): Clear crossjumps_occured at the beginning.
10742         Don't add/remove fake edges to exit here...
10743         (cleanup_cfg): ...but do it here, when crossjumping.
10744         Run a fast DCE when successful crossjumps occured in the latest
10745         iteration of try_optimize_cfg.
10746
10747 2008-01-11  Richard Guenther  <rguenther@suse.de>
10748
10749         * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
10750         (struct vn_unary_op_s): Likewise.
10751         (vn_reference_insert): Free old reference on hash collision.
10752
10753 2008-01-10  Raksit Ashok  <raksit@google.com>
10754
10755         PR rtl-optimization/27971
10756         * combine.c (find_split_point): Split PLUS expressions which are
10757         inside a MEM rtx, and whose first operand is complex.
10758
10759 2008-01-10  DJ Delorie  <dj@redhat.com>
10760
10761         * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
10762         (m32c_hard_regno_nregs): ...this, which is now a wrapper.
10763         (m32c_hard_regno_ok): Call the underlying function.
10764
10765 2008-01-10  Richard Guenther  <rguenther@suse.de>
10766
10767         PR middle-end/34683
10768         * tree-cfg.c (tree_merge_blocks): Do not go through the
10769         full-blown folding and stmt updating path if we just deal
10770         with virtual operands.
10771         * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
10772         test for abnormal SSA_NAMEs.
10773
10774 2008-01-10  Andreas Krebbel  <krebbel1@de.ibm.com>
10775
10776         PR middle-end/34641
10777         * reload.c (push_reload): Add assertions.  All constants from
10778         reg_equiv_constant should have been used for replacing the respective
10779         pseudo earlier.
10780         (find_reloads_address): Invoke find_reloads_address_part for
10781         constant taken from the reg_equiv_constant array.
10782
10783 2008-01-10  Steven Bosscher  <stevenb.gcc@gmail.com>
10784
10785         * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
10786         field (valnum) the first in the struct.  Replace bools with
10787         unit bit fields.
10788
10789 2008-01-10  Richard Guenther  <rguenther@suse.de>
10790
10791         PR tree-optimization/34651
10792         * tree-sra.c (sra_build_assignment): Sanitize.  Use the correct
10793         types and ordering for masking and converting.
10794
10795 2008-01-09  Sebastian Pop  <sebastian.pop@amd.com>
10796
10797         PR tree-optimization/34017
10798         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
10799         also for PHI_NODE expressions.
10800
10801 2008-01-09  Jan Hubicka  <jh@suse.cz>
10802
10803         PR tree-optimization/34708
10804         * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
10805         based on number of case labels.
10806         (init_inline_once): Remove switch_cost.
10807         * tree-inline.h (eni_weights_d): Remove switch_cost.
10808
10809 2008-01-09  Richard Guenther  <rguenther@suse.de>
10810         Andrew Pinski  <andrew_pinski@playstation.sony.com>
10811
10812         PR middle-end/30132
10813         * gimplify.c (gimplify_cond_expr): Do not create an addressable
10814         temporary if an rvalue is ok or an lvalue is not required.
10815
10816 2008-01-09  Richard Guenther  <rguenther@suse.de>
10817
10818         PR middle-end/34458
10819         * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
10820         adjust return type.
10821
10822 2008-01-09  Richard Guenther  <rguenther@suse.de>
10823
10824         PR middle-end/34679
10825         * tree.c (host_integerp): Check for sizetype only if the
10826         type is an integer type.
10827
10828 2008-01-09  Steven Bosscher  <stevenb.gcc@gmail.com>
10829
10830         PR debug/26364
10831         * opts.c (decode_options): Disable inlining of functions called
10832         once if not in unit-at-a-time mode.
10833
10834 2008-01-09  Alexandre Oliva  <aoliva@redhat.com>
10835
10836         * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
10837
10838 2008-01-08  Richard Guenther  <rguenther@suse.de>
10839
10840         PR middle-end/31863
10841         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
10842         out early if the result will be unused.
10843
10844 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
10845
10846         PR target/34709
10847         Revert:
10848
10849         2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
10850         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
10851         for TARGET_RECIP.       
10852         
10853 2008-01-08  Jan Sjodin  <jan.sjodin@amd.com>
10854         
10855         * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
10856         for vectorization tuned.
10857         
10858 2008-01-08  Richard Guenther  <rguenther@suse.de>
10859
10860         PR tree-optimization/34683
10861         * tree-ssa-operands.c (operand_build_cmp): Export.
10862         * tree-ssa-operands.h (operand_build_cmp): Declare.
10863         * tree-vn.c (vuses_compare): Remove.
10864         (sort_vuses): Use operand_build_cmp.
10865         (sort_vuses_heap): Likewise.
10866         * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
10867         to re-use old VEC if available.  Do not sort already sorted VUSEs.
10868         (vdefs_to_vec): Do not sort already sorted VDEFs.
10869
10870 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
10871
10872         PR middle-end/34694
10873         * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
10874
10875 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
10876
10877         PR target/34702
10878         * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
10879         limitations of reciprocal sequences on x86 targets.
10880
10881 2008-01-08  Richard Guenther  <rguenther@suse.de>
10882
10883         PR tree-optimization/34683
10884         * tree-flow-inline.h (var_ann): Remove overzealous asserts.
10885
10886 2008-01-07  Jakub Jelinek  <jakub@redhat.com>
10887
10888         PR target/34622
10889         * config/darwin.c (darwin_mergeable_string_section): Don't use
10890         .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
10891
10892 2008-01-07  Uros Bizjak  <ubizjak@gmail.com>
10893
10894         PR target/34682
10895         * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
10896         negxf2.  Macroize expander using X87MODEF mode iterator.  Change
10897         predicates of op0 and op1 to register_operand.
10898         (abs<mode>2): Rename from abssf2, absdf2 and negxf2.  Macroize
10899         expander using X87MODEF mode iterator.  Change predicates of
10900         op0 and op1 to register_operand.
10901         ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
10902         corresponding patterns and macroize using MODEF macro.  Change
10903         predicates of op0 and op1 to register_operand and remove
10904         "m" constraint. Disparage "r" alternative with "!".
10905         ("*absneg<mode>2_i387"): Rename from corresponding patterns and
10906         macroize using X87MODEF macro.  Change predicates of op0 and op1
10907         to register_operand and remove "m" constraint.  Disparage "r"
10908         alternative with "!".
10909         (absneg splitter with memory operands): Remove.
10910         ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
10911         patterns and macroize using X87MODEF mode iterator.
10912         * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
10913         Change predicate of op1 to register_operand.
10914         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
10915         for memory operands.
10916
10917 2008-01-07  Nathan Froyd  <froydnj@codesourcery.com>
10918
10919         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
10920
10921 2008-01-07  Richard Guenther  <rguenther@suse.de>
10922
10923         * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
10924         fields.
10925
10926 2008-01-07  Richard Guenther  <rguenther@suse.de>
10927
10928         PR tree-optimization/34683
10929         * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
10930         VOPs of the needed size to save memory.  Use VEC_quick_push
10931         to save compile-time.
10932         (vdefs_to_vec): Likewise.
10933
10934 2008-01-07  Sa Liu  <saliu@de.ibm.com>
10935
10936         * config/spu/spu.md (divdf3): Genetate inline code for double
10937         division.  The implementation doesn't handle INF or NAN, therefore it
10938         only applies when -ffinite-math-only is given.
10939
10940 2008-01-06  Paolo Carlini  <pcarlini@suse.de>
10941
10942         PR libstdc++/34680
10943         * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
10944         * doc/cpp.texi ([Common Predefined Macros]): Document.
10945
10946 2008-01-06  Uros Bizjak  <ubizjak@gmail.com>
10947
10948         * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
10949         order to use commutative addition instead of subtraction.
10950
10951 2008-01-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
10952             Mircea Namolaru  <namolaru@il.ibm.com>
10953             Vladimir Yanovsky  <yanov@il.ibm.com>
10954             Revital Eres  <eres@il.ibm.com>
10955
10956         PR tree-optimization/34263
10957         * tree-outof-ssa.c (process_single_block_loop_latch,
10958         contains_tree_r): New functions.
10959         (analyze_edges_for_bb): Call process_single_block_loop_latch
10960         function to empty single-basic-block latch block if possible.
10961
10962 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
10963
10964         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
10965         for TARGET_RECIP.
10966         (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
10967
10968 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
10969
10970         * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
10971
10972 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
10973
10974         * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
10975
10976 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
10977
10978         PR tree-optimization/34618
10979         * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
10980         flag from T.
10981
10982 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
10983
10984         PR target/34673
10985         * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
10986         in the call to gen_rtx_NE.  Remove unneeded VECTOR_MODE_P check.
10987         Update copyright year.
10988
10989         * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
10990         Update copyright year.
10991         * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
10992         using NR fixup.
10993
10994 2008-01-05  Zhouyi Zhou  <zhouzhouyi@FreeBSD.org>
10995
10996         * tree-vrp.c (find_conditional_asserts): Remove redundant check that
10997         edge does not point to current bb before changing need_assert.
10998
10999 2008-01-04  Richard Guenther  <rguenther@suse.de>
11000
11001         PR middle-end/34029
11002         * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
11003         for verifying purposes if they are is_gimple_min_invariant.
11004
11005 2008-01-04  Aldy Hernandez  <aldyh@redhat.com>
11006
11007         PR tree-optimization/34448
11008         PR tree-optimization/34465
11009         * gimplify.c (gimplify_init_constructor): Add new parameter
11010         notify_temp_creation.  Use it.
11011         (gimplify_modify_expr_rhs): Take volatiles into account when
11012         optimizing constructors.
11013         Do not optimize constructors if gimplify_init_constructor will dump to
11014         memory.
11015         * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
11016         * gcc.c-torture/compile/pr34448.c: New.
11017
11018 2008-01-04  Jakub Jelinek  <jakub@redhat.com>
11019
11020         PR gcov-profile/34609
11021         * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
11022         return_slot if result is TREE_ADDRESSABLE.
11023
11024 2008-01-04  Richard Sandiford  <rsandifo@nildram.co.uk>
11025
11026         * config/mips/mips.md (sqrt_condition): Tweak comment.
11027         (recip_condition): Likewise.  Require TARGET_FLOAT64 for DFmode.
11028
11029 2008-01-03  Tom Tromey  <tromey@redhat.com>
11030
11031         PR c/34457
11032         * c-common.c (c_type_hash): Handle VLAs.
11033
11034 2008-01-03  Jan Hubicka  <jh@suse.cz>
11035
11036         PR tree-optimization/31081
11037         * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
11038         0 when inlining and not inlining to first basic block.
11039         (remap_decl): When var is initialized to 0, don't set default_def.
11040         (expand_call_inline): Set entry_bb.
11041         * tree-inline.h (copy_body_data): Add entry_bb.
11042
11043 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
11044
11045         PR c++/34619
11046         * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
11047         before returning.
11048
11049         PR tree-optimization/29484
11050         * tree-inline.c (inline_forbidden_p_2): New function.
11051         (inline_forbidden_p): Disallow inlining if some static var
11052         has an address of a local LABEL_DECL in its initializer.
11053         * doc/extend.texi (Labels as Values): Document &&foo behaviour
11054         vs. inlining.
11055
11056 2008-01-03  Sebastian Pop  <sebastian.pop@amd.com>
11057
11058         PR tree-optimization/34635
11059         * tree-data-ref.c (add_other_self_distances): Make sure that the
11060         evolution step is constant.
11061
11062 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
11063
11064         PR middle-end/34608
11065         * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
11066
11067 2008-01-02  Richard Sandiford  <rsandifo@nildram.co.uk>
11068
11069         * tree-sra.c (scalarize_init): Insert the generate_element_init
11070         statements after the generate_element_zero statements.
11071
11072 2008-01-02  Richard Guenther  <rguenther@suse.de>
11073
11074         PR middle-end/34093
11075         PR middle-end/31976
11076         * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
11077         for very large number of operands instead of ICEing.
11078
11079 2008-01-02  Arthur Norman <acn1@cam.ac.uk>
11080
11081         PR target/34013
11082         * config/i386/i386.c (ix86_expand_prologue): Save red-zone
11083         while stack probing.
11084
11085 2008-01-01  Douglas Gregor  <doug.gregor@gmail.com>
11086
11087         * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
11088         in C++0x mode.
11089
11090 2008-01-01  Volker Reichelt  <v.reichelt@netcologne.de>
11091
11092         PR libmudflap/26442
11093         * tree-mudflap.c (mx_register_decls): Guard warning by
11094         !DECL_ARTIFICIAL check.
11095
11096 2008-01-01  Jakub Jelinek  <jakub@redhat.com>
11097
11098         * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
11099         sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
11100         sse5_perm<mode>): Fix constraints.