OSDN Git Service

* predict.c (maybe_hot_frequency_p): Break out of...
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2008-05-26  Jan Hubicka  <jh@suse.cz>
2
3         * predict.c (maybe_hot_frequency_p): Break out of...
4         (maybe_hot_bb_p): ... here.
5         (maybe_hot_edge_p): New.
6         * tree-ssa-coalesce.c (coalesce_cost_edge): Compute cost based on edge.
7         * basic-block.h (maybe_hot_edge_p): Declare.
8
9 2008-05-31  Uros Bizjak  <ubizjak@gmail.com>
10
11         * config/i386/i386.md (*cmpfp_<mode>): Enable for optimize_size.
12         (*cmpfp_<mode>_cc): Ditto.
13         (*fp_jcc_8<mode>_387): Ditto.
14         (*fop_<MODEF:mode>_2_i387): Ditto.
15         (*fop_<MODEF:mode>_3_i387): Ditto.
16         (*fop_xf_2_i387): Ditto.
17         (*fop_xf_3_i387): Ditto.
18
19 2008-06-02  Tomas Bily  <tbily@suse.cz>
20
21         * tree-ssa-ifcombine.c (get_name_for_bit_test): Use CONVERT_EXPR_P.
22
23 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
24
25         * config/mips/mips.c (mips_valid_offset_p): New function.
26         (mips_valid_lo_sum_p): Likewise.
27         (mips_classify_address): Use them.
28         (mips_force_address): New function.
29         (mips_legitimize_address): Use it.
30         * config/mips/mips.md (MOVE128): New mode iterator.
31         (movtf): Require TARGET_64BIT.  Remove empty strings.
32         (*movtf_internal): Rename to...
33         (*movtf): ...this and require !TARGET_MIPS16.  Use "m" instead
34         of "R" and use {,fp}{load,store} attributes instead of "multi".
35         Use a separate define_split.
36         (*movtf_mips16): New pattern.
37
38 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
39
40         * config/mips/mips-protos.h (mips_expand_before_return): Declare.
41         * config/mips/mips.c (mips_expand_before_return): New function.
42         (mips_expand_epilogue): Call it.
43         * config/mips/mips.md (return): Turn into a define_expand.
44         (*return): New insn.
45
46 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
47
48         * rtl.h (emit_clobber, gen_clobber, emit_use, gen_use): Declare.
49         * emit-rtl.c (emit_clobber, gen_clobber, emit_use, gen_use): New
50         functions.  Do not emit uses and clobbers of CONCATs; individually
51         use and clobber their operands.
52         * builtins.c (expand_builtin_setjmp_receiver): Use emit_clobber,
53         gen_clobber, emit_use and gen_use.
54         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
55         (expand_builtin_return): Likewise.
56         * cfgbuild.c (count_basic_blocks): Likewise.
57         * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
58         * explow.c (emit_stack_restore): Likewise.
59         * expmed.c (extract_bit_field_1): Likewise.
60         * expr.c (convert_move, emit_move_complex_parts): Likewise.
61         (emit_move_multi_word, store_constructor): Likewise.
62         * function.c (do_clobber_return_reg, do_use_return_reg): Likewise.
63         (thread_prologue_and_epilogue_insns): Likewise.
64         * lower-subreg.c (resolve_simple_move): Likewise.
65         * optabs.c (widen_operand, expand_binop): Likewise.
66         (expand_doubleword_bswap, emit_no_conflict_block): Likewise.
67         * reload.c (find_reloads): Likewise.
68         * reload1.c (eliminate_regs_in_insn): Likewise.
69         * stmt.c (expand_nl_goto_receiver): Likewise.
70         * config/alpha/alpha.md (builtin_longjmp): Likewise.
71         * config/arc/arc.md (*movdi_insn, *movdf_insn): Likewise.
72         * config/arm/arm.c (arm_load_pic_register): Likewise.
73         (thumb1_expand_epilogue, thumb_set_return_address): Likewise.
74         * config/arm/arm.md (untyped_return): Likewise.
75         * config/arm/linux-elf.h (PROFILE_HOOK): Likewise.
76         * config/avr/avr.c (expand_prologue): Likewise.
77         * config/bfin/bfin.c (do_unlink): Likewise.
78         * config/bfin/bfin.md (<optab>di3, adddi3, subdi3): Likewise.
79         * config/cris/cris.c (cris_expand_prologue): Likewise.
80         * config/darwin.c (machopic_indirect_data_reference): Likewise.
81         (machopic_legitimize_pic_address): Likewise.
82         * config/frv/frv.c (frv_frame_access, frv_expand_epilogue): Likewise.
83         (frv_ifcvt_modify_insn, frv_expand_mdpackh_builtin): Likewise.
84         * config/i386/i386.c (ix86_expand_vector_move_misalign): Likewise.
85         (ix86_expand_convert_uns_didf_sse): Likewise.
86         (ix86_expand_vector_init_general): Likewise.
87         * config/ia64/ia64.md (eh_epilogue): Likewise.
88         * config/iq2000/iq2000.c (iq2000_expand_epilogue): Likewise.
89         * config/m32c/m32c.c (m32c_emit_eh_epilogue): Likewise.
90         * config/m32r/m32r.c (m32r_reload_lr): Likewise.
91         (config/iq2000/iq2000.c): Likewise.
92         * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
93         (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
94         (builtin_longjmp): Likewise.
95         * config/mn10300/mn10300.md (call, call_value): Likewise.
96         * config/pa/pa.md (nonlocal_goto, nonlocal_longjmp): Likewise.
97         * config/pdp11/pdp11.md (abshi2): Likewise.
98         * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
99         * config/s390/s390.c (s390_emit_prologue): Likewise.
100         * config/s390/s390.md (movmem_long, setmem_long): Likewise.
101         (cmpmem_long, extendsidi2, zero_extendsidi2, udivmoddi4): Likewise.
102         (builtin_setjmp_receiver, restore_stack_nonlocal): Likewise.
103         * config/sh/sh.c (prepare_move_operands): Likewise.
104         (output_stack_adjust, sh_expand_epilogue): Likewise.
105         (sh_set_return_address, sh_expand_t_scc): Likewise.
106         * config/sparc/sparc.c (load_pic_register): Likewise.
107         * config/sparc/sparc.md (untyped_return, nonlocal_goto): Likewise.
108         * config/spu/spu.c (spu_expand_epilogue): Likewise.
109         * config/v850/v850.c (expand_epilogue): Likewise.
110
111 2008-05-31  Anatoly Sokolov  <aesok@post.ru>
112
113         * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): New constants.
114         (UNSPECV_WRITE_SP_IRQ_OFF): (Ditto.).
115         (movhi_sp_r_irq_off, movhi_sp_r_irq_on): New insn.
116         * config/avr/avr.c (expand_prologue, expand_epilogue): Use 
117         movhi_sp_r_irq_off and movhi_sp_r_irq_on insns for writing to the 
118         stack pointer register.
119         (output_movhi): Remove code for interrupt specific writing to the 
120         stack pointer register.
121
122 2008-05-31  Richard Guenther  <rguenther@suse.de>
123
124         PR tree-optimization/34244
125         * fold-const.c (tree_expr_nonnegative_warnv_p): Do not ask VRP.
126         (tree_expr_nonzero_warnv_p): Likewise.
127         * tree-vrp.c (vrp_expr_computes_nonnegative): Call
128         ssa_name_nonnegative_p.
129         (vrp_expr_computes_nonzero): Call ssa_name_nonzero_p.
130         (extract_range_from_unary_expr): Use vrp_expr_computes_nonzero,
131         not tree_expr_nonzero_warnv_p.
132
133         PR tree-optimization/36262
134         Revert
135         2007-11-29  Zdenek Dvorak  <ook@ucw.cz>
136
137         PR tree-optimization/34244
138         * tree-vrp.c (adjust_range_with_scev): Clear scev cache.
139         (record_numbers_of_iterations): New function.
140         (execute_vrp): Cache the numbers of iterations of loops.
141         * tree-scalar-evolution.c (scev_reset_except_niters):
142         New function.
143         (scev_reset): Use scev_reset_except_niters.
144         * tree-scalar-evolution.h (scev_reset_except_niters): Declare.
145
146 2008-05-31  Bernd Schmidt  <bernd.schmidt@analog.com>
147
148         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
149         __WORKAROUND_RETS when appropriate.
150
151 2008-05-31  Uros Bizjak  <ubizjak@gmail.com>
152
153         * config/i386/i386.md (*fop_<mode>_comm_mixed): Macroize from
154         *fop_sf_comm_mixed and *fop_df_comm_mixed insn patterns using MODEF
155         mode iterator.
156         (*fop_<mode>_comm_sse): Macroize from *fop_sf_comm_sse and
157         *fop_df_comm_sse insn patterns using MODEF mode iterator.
158         (*fop_<mode>_comm_i387): Macroize from *fop_sf_comm_i387 and
159         *fop_df_comm_i387 insn patterns using MODEF mode iterator.
160         (*fop_<mode>_1_mixed): Macroize from *fop_sf_1_mixed and
161         *fop_df_1_mixed insn patterns using MODEF mode iterator.
162         (*fop_<mode>_1_sse): Macroize from *fop_sf_1_sse and
163         *fop_df_1_sse insn patterns using MODEF mode iterator.
164         (*fop_<mode>_1_i387): Macroize from *fop_sf_1_i387 and
165         *fop_df_1_i387 insn patterns using MODEF mode iterator.
166         (*fop_<MODEF:mode>_2_i387): Macroize from *fop_sf_2<mode>_i387 and
167         *fop_df_2<mode>_i387 insn patterns using MODEF mode iterator.
168         (*fop_<MODEF:mode>_3_i387): Macroize from *fop_sf_3<mode>_i387 and
169         *fop_df_3<mode>_i387 insn patterns using MODEF mode iterator.
170         (*fop_xf_2_i387): Rename from *fop_xf_2<mode>_i387.
171         (*fop_xf_3_i387): Rename from *fop_xf_3<mode>_i387.
172         (*fop_xf_4_i387): Use <MODE> for mode attribute.
173         (*fop_xf_5_i387): Ditto.
174         (*fop_xf_6_i387): Ditto.
175
176 2008-05-30  Richard Guenther  <rguenther@suse.de>
177
178         * builtins.c (build_string_literal): Avoid generating
179         a non-gimple_val result.
180
181 2008-05-30  DJ Delorie  <dj@redhat.com>
182
183         * exec-tool.in: Use an environment variable (private) instead of a
184         file (shared) as a semaphore, so as to not break parallel builds.
185
186 2008-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
187
188         * optabs.c (maybe_encapsulate_block): Remove.
189         (emit_libcall_block): Adjust accordingly.
190         * optabs.h (maybe_encapsulate_block): Remove prototype.
191
192         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address):
193         Don't use maybe_encapsulate_block.
194
195 2008-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
196
197         * config/rs6000/rs6000.c (rs6000_legitimize_address,
198         rs6000_legitimize_reload_address, rs6000_emit_move): Make sure an
199         rtx is a SYMBOL_REF before calling get_pool_constant.
200
201 2008-05-30  Eric Botcazou  <ebotcazou@adacore.com>
202
203         * fold-const.c (fold_unary) <CASE_CONVERT>: Add ??? comment.
204
205 2008-05-30  Danny Smith  <dannysmith@users.sourceforge.net>
206
207         * incpath.c: Use HOST_LACKS_INODE_NUMBERS conditional
208         rather than OS names to choose INO_T_EQ definition.
209         (DIRS_EQ) [!INO_T_EQ]: Don't worry about case in comparison.
210         (add_path) [!INO_T_EQ]: Use lrealpath to fill canonical_name field.
211
212 2008-05-29  Daniel Franke  <franke.daniel@gmail.com>
213
214         PR target/36348
215         * config/darwin-f.c: New.
216         * config/t-darwin: Added rule to build darwin-f.o.
217         * config.gcc: Defined new variable, fortran_target_objs.
218         (*-*-darwin*): Set fortran_target_objs.
219         * Makefile.in: Defined new variable FORTRAN_TARGET_OBJS.
220         * configure.ac: Substitute fortran_target_objs, set FORTRAN_TARGET_OBJS.
221         * configure: Regenerated.
222
223 2008-05-29  H.J. Lu  <hongjiu.lu@intel.com>
224
225         PR target/35771
226         * config/i386/i386.c (ix86_function_arg_boundary): Convert to
227         canonical type if needed.
228
229 2008-05-29  Eric Botcazou  <ebotcazou@adacore.com>
230
231         * tree-nested.c (check_for_nested_with_variably_modified): Fix typo.
232
233 2008-05-29  Richard Guenther  <rguenther@suse.de>
234
235         PR tree-optimization/36343
236         PR tree-optimization/36346
237         PR tree-optimization/36347
238         * tree-flow.h (clobber_what_p_points_to): Declare.
239         * tree-ssa-structalias.c (set_uids_in_ptset): Whether the
240         pointed-to variable is dereferenced is irrelevant to whether
241         the pointer can access the pointed-to variable.
242         (clobber_what_p_points_to): New function.
243         * tree-ssa-alias.c (set_initial_properties): Use it.
244         * tree-ssa.c (verify_flow_sensitive_alias_info): Adjust
245         call clobber check for NMTs.
246
247 2008-05-28  Seongbae Park  <seongbae.park@gmail.com>
248         
249         * value-prof.c (tree_ic_transform): Use HOST_WIDEST_INT_PRINT_DEC
250         for printing gcov_type.
251
252 2008-05-28  Seongbae Park  <seongbae.park@gmail.com>
253
254         * tree-ssa-propagate.c (set_rhs): Preserve the histogram
255         and the eh region information.
256         * value-prof.c (gimple_move_stmt_histograms): New function.
257         * value-prof.h (gimple_move_stmt_histograms): New function declaration.
258
259 2008-05-28  Andreas Tobler  <a.tobler@schweiz.org>
260
261         * config/pa/pa.md: Remove extern frame_pointer_needed declaration.
262
263 2008-05-28  Seongbae Park <seongbae.park@gmail.com>
264
265         * value-prof.c (tree_ic_transform): Print counts.
266         * tree-profile.c (tree_gen_ic_func_profiler):
267         Clear __gcov_indreict_call_callee variable to avoid misattribution
268         of the profile.
269
270 2008-05-28  Rafael Espindola  <espindola@google.com>
271
272         * see.c (see_def_extension_not_merged): Use copy_rtx_if_shared to avoid
273         invalid sharing.
274
275 2008-05-28  Richard Guenther  <rguenther@suse.de>
276
277         PR tree-optimization/36339
278         * tree-ssa-alias.c (set_initial_properties): Move pt_anything
279         and clobbering code out of the loop.
280
281 2008-05-28  Andreas Krebbel  <krebbel1@de.ibm.com>
282
283         * config/s390/constraints.md ('b', 'C', 'D', 'e'): New constraint
284         letters defined.
285
286         * config/s390/s390.c (s390_compare_and_branch_condition_mask,
287         s390_contiguous_bitmask_p, s390_symref_operand_p,
288         s390_check_symref_alignment, s390_reload_larl_operand,
289         s390_reload_symref_address): New functions.
290         (s390_branch_condition_mnemonic): Support compare and branch
291         instructions.
292         (s390_mem_constraint): Avoid symrefs to accepted by the 'T'
293         and 'W' constraints.
294         (s390_secondary_reload): Add secondary reloads for unaligned
295         symbol refs or symbol refs to floating point or QI/TI mode
296         integer values.
297         (legitimate_address_p): Accept symbol references as addresses.
298         (s390_expand_insv): Use rotate and insert selected bits
299         instruction for insv when building for z10.
300         (print_operand_address): Handle symbol ref addresses.
301         (print_operand): Output modifier 'c' added for signed byte values.
302         (s390_encode_section_info): Mark symbol refs with
303         SYMBOL_FLAG_NOT_NATURALLY_ALIGNED if appropriate.
304
305         * config/s390/s390.md (SIL,RRS,RIS): New instruction formats added.
306         (length attribute): RRF, RRR have 4 byte length.
307         (FPALL, INTALL): New mode iterators added.
308         (*tstdi_sign, *cmpdi_ccs_sign, *cmpsi_ccs_sign,
309         *cmp<mode>_ccs, *cmpdi_ccu_zero, *cmpdi_ccu, *cmpsi_ccu, *cmphi_ccu,
310         *movdi_64, *movsi_zarch, *movhi, movmem<mode>, *movmem_short,
311         *extendsidi2, *extendhidi2_extimm, *extendhisi2_extimm,
312         *zero_extendsidi2, adddi3, *adddi3_31z, *adddi3_31, addsi3,
313         *add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry2_cc,
314         *add<mode>3_cc, *add<mode>3_imm_cc, *muldi3_sign, muldi3,
315         *mulsi3_sign, mulsi3, mulsidi3): Patterns enhanced with z10
316         instructions.
317         (*cmphi_ccs_z10, *cmpdi_ccs_signhi_rl, *cmpsi_ccu_zerohi_rlsi,
318         *cmp<GPR:mode>_ccu_zerohi_rldi, *cmp_and_br_signed_<mode>,
319         *cmp_and_br_unsigned_<mode>, reload<INTALL:mode><P:mode>_tomem_z10,
320         reload<INTALL:mode><P:mode>_toreg_z10,
321         reload<FPALL:mode><P:mode>_tomem_z10,
322         reload<FPALL:mode><P:mode>_toreg_z10,
323         reload<P:mode>_larl_odd_addend_z10, *execute_rl, *insv<mode>_z10,
324         *insv<mode>_z10_noshift, *insv<mode>_or_z10_noshift,
325         *zero_extendhi<mode>2_z10, *cmp_and_trap_signed_int<mode>,
326         *cmp_and_trap_unsigned_int<mode>, prefetch): New pattern or expander
327         definition.
328         (movmem, clrmem, cmpmem): New splitters added.
329
330         * config/s390/predicates.md (larl_operand): Use
331         SYMBOL_REF_FLAGS (op) & SYMBOL_FLAG_ALIGN1 replaced with
332         SYMBOL_REF_ALIGN1_P.
333         (s390_signed_integer_comparison,
334         s390_unsigned_integer_comparison): New predicates.
335
336         * config/s390/s390-protos.h (s390_check_symref_alignment,
337         s390_contiguous_bitmask_p, s390_reload_larl_operand,
338         s390_reload_symref_address,
339         s390_compare_and_branch_condition_mask): Prototypes added.
340
341         * config/s390/s390.h (TARGET_MEM_CONSTRAINT,
342         SYMBOL_REF_ALIGN1_P, SYMBOL_FLAG_NOT_NATURALLY_ALIGNED,
343         SYMBOL_REF_NOT_NATURALLY_ALIGNED_P): Macro definition added.
344
345 2008-05-28  Andreas Krebbel  <krebbel1@de.ibm.com>
346
347         * config/s390/s390.c (z10_cost): New cost function for z10.
348         (s390_handle_arch_option, override_options): Support -march=z10 switch.
349         (s390_issue_rate): Adjust issue rate for z10.
350         * config/s390/s390.h (processor_type): Add PROCESSOR_2097_Z10.
351         (processor_flags): Add PF_Z10.
352         (TARGET_CPU_Z10, TARGET_Z10): New macro definitions.
353         * config/s390/s390.md (cpu, cpu_facility attributes): Add z10.
354         * gcc/config.gcc: Add z10.
355
356 2008-05-28  Richard Guenther  <rguenther@suse.de>
357
358         PR tree-optimization/36291
359         * tree-flow. h (struct gimple_df): Remove var_anns member.
360         * tree-flow-inline.h (gimple_var_anns): Remove.
361         (var_ann): Simplify.
362         * tree-dfa.c (create_var_ann): Simplify.
363         (remove_referenced_var): Clear alias info from var_anns of globals.
364         * tree-ssa.c (init_tree_ssa): Do not allocate var_anns.
365         (delete_tree_ssa): Clear alias info from var_anns of globals.
366         Do not free var_anns.
367         (var_ann_eq): Remove.
368         (var_ann_hash): Likewise.
369
370 2008-05-28  Mark Shinwell  <shinwell@codesourcery.com>
371
372         * config/mips/mips.c (mips_cpu_info_table): Add loongson2e
373         and loongson2f entries.
374         (mips_rtx_cost_data): Add entries for Loongson-2E/2F.
375         * config/mips/mips.h (processor_type): Add Loongson-2E
376         and Loongson-2F entries.
377         (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF): New.
378         (MIPS_ISA_LEVEL_SPEC): Handle Loongson-2E/2F.
379         * config/mips/mips.md (define_attr cpu): Add loongson2e and loongson2f.
380         * doc/invoke.texi (MIPS Options): Document loongson2e
381         and loongson2f processor names.
382
383 2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>
384
385         PR target/35767
386         PR target/35771
387         * config/i386/i386.c (ix86_function_arg_boundary): Use
388         alignment of canonical type.
389         (ix86_expand_vector_move): Check unaligned memory access for
390         all SSE modes.
391
392 2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>
393
394         * dwarf2out.c (current_fde): Change return type to dw_fde_ref.
395         Moved to the front of file.
396
397 2008-05-27  Xuepeng Guo  <xuepeng.guo@intel.com>
398             H.J. Lu  <hongjiu.lu@intel.com>
399
400         * dwarf2out.c (current_fde): New.
401         (add_cfi): Use it.
402         (lookup_cfa:): Likewise.
403         (dwarf2out_end_epilogue): Likewise.
404         (dwarf2out_note_section_used): Likewise.
405
406 2008-05-27  Michael Matz  <matz@suse.de>
407
408         PR c++/27975
409         * c.opt (Wenum-compare): New warning option.
410         * doc/invoke.texi  (Warning Options): Document -Wenum-compare.
411
412 2008-05-27  Michael Matz  <matz@suse.de>
413
414         PR middle-end/36326
415         * tree-gimple.c (is_gimple_mem_rhs): Remove work-around for
416         non-BLKmode types.
417         * tree-tailcall.c (find_tail_calls): Don't mark calls storing
418         into memory as tail calls.
419
420 2008-05-27  Richard Guenther  <rguenther@suse.de>
421
422         PR tree-optimization/36339
423         * tree-ssa-alias.c (set_initial_properties): Escaped pt_anything
424         pointers cause all addressable variables to be call clobbered.
425
426 2008-05-27  Richard Guenther  <rguenther@suse.de>
427
428         PR tree-optimization/36245
429         * tree-ssa-address.c (add_to_parts): Deal with non-pointer bases.
430
431 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
432
433         * config/s390/s390.md: Replace all occurences of the 'm'
434         constraint with 'RT'.
435
436 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
437
438         * config/s390/s390.md ("cpu_facility", "enabled"): Attribute
439         definitions added.
440         ("*movdi_64dfp", "*movdi_64extimm", "*movdi_64"): Merged into
441         "*movdi_64".
442         ("*anddi3_extimm", "*anddi3"): Merged into "*anddi3".
443         ("*iordi3_extimm", "*iordi3"): Merged into "*iordi3".
444         ("*xordi3_extimm", "*xordi3"): Merged into "*xordi3".
445
446 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
447
448         * reload.c: (find_reloads): Skip alternatives according to the
449         "enabled" attribute. Constify the constraint variable.
450         * recog.c (get_attr_enabled): Add default implementation.
451         (extract_insn): Set the alternative_enabled_p array
452         in the recog_data struct.
453         (preprocess_constraints, constrain_operands): Skip
454         alternatives according to the "enabled" attribute
455         * recog.h (struct recog_data): New field alternative_enabled_p.
456         (skip_alternative): New inline function.
457         * regclass.c: (record_operand_costs): Check the "enabled" attribute.
458         (record_reg_classes): Skip alternative according to the
459         "enabled" attribute.
460
461         * doc/md.texi: Add documention for the "enabled" attribute.
462
463 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
464
465         * defaults.h (TARGET_MEM_CONSTRAINT): New target macro added.
466         * postreload.c (reload_cse_simplify_operands): Replace 'm'
467         constraint with TARGET_MEM_CONSTRAINT.
468         * recog.c (asm_operand_ok, preprocess_constraints,
469         constrain_operands): Likewise.
470         * regclass.c (record_reg_classes): Likewise.
471         * reload.c (find_reloads, alternative_allows_const_pool_ref): Likewise.
472         * reload1.c (maybe_fix_stack_asms): Likewise.
473         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
474         * recog.h: Adjust comment.
475         * genpreds.c (generic_constraint_letters): Remove 'm' constraint.
476         * genoutput.c (note_constraint): Don't emit error for 'm' constraint.
477         * doc/md.texi: Add a note to description of 'm' constraint.
478         * doc/tm.texi: Document the new TARGET_MEM_CONSTRAINT macro.
479
480 2008-05-27  Eric Botcazou  <ebotcazou@adacore.com>
481
482         * tree-sra.c (sra_type_can_be_decomposed_p) <RECORD_TYPE>: Make sure
483         that the bitfield is of integral type before testing its precision.
484
485 2008-05-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
486             Sa Liu  <saliu@de.ibm.com> 
487
488         * config/spu/spu.c (spu_init_libfuncs): Add __multi3, __divti3, 
489         __modti3, __udivti3, __umodti3 and __udivmodti4.
490         * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add files
491         that implement TImode mul and div functions.
492         * config/spu/multi3.c: New. Implement __multi3.
493         * config/spu/divmodti4.c: New. Implement _udivmodti4 and others.
494         * testsuite/gcc.target/spu/muldivti3.c: New. Test TImode mul and div
495         functions on SPU.
496
497 2008-05-26  Steven Bosscher  <stevenb.gcc@gmail.com>
498
499         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Generate
500         new tls_gd_* and tls_ld_* insns instead of an insn sequence.
501         * config/rs6000/rs6000.md (TLSmode, tls_abi_suffix, tls_insn_suffix,
502         tls_sysv_suffix): New mode and mode attribute iterators.
503         (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64): Remove.
504         (lts_gd_aix*, tls_gd_sysv*, tls_ld_aix*, tls_ld_sysv*): New patterns.
505         (tls_dtprel_*, tls_dtprel_ha_*, tls_dtprel_lo_*, tls_got_dtprel_*,
506         tls_tprel_*, tls_tprel_ha_*, tls_tprel_lo_*, tls_got_tprel_*,
507         tls_tls_*): Merge 32 bit and 64 bit variants using aforementioned
508         iterators.
509
510 2008-05-26  Eric Botcazou  <ebotcazou@adacore.com>
511
512         PR tree-optimization/36329
513         * tree.h (CALL_CANNOT_INLINE_P): Add access check.
514         * tree-gimple.h (CALL_STMT_CANNOT_INLINE_P): New macro.
515         * cgraphbuild.c (initialize_inline_failed): Use the latter
516         macro in lieu of the former.
517         * ipa-inline.c (cgraph_mark_inline): Likewise.
518         (cgraph_decide_inlining_of_small_function): Likewise.
519         (cgraph_decide_inlining): Likewise.
520         (cgraph_decide_inlining_incrementally): Likewise.
521
522 2008-05-26  Tristan Gingold  <gingold@adacore.com>
523             Anatoly Sokolov  <aesok@post.ru>
524
525         * config/avr/avr.md ("call_prologue_saves"): Use hi8(gs())/lo8(gs())
526         instead of pm_lo8/pm_hi8 to makes this call working on avr6.
527         * config/avr/avr.c (expand_prologue): Tune "call_prologue" 
528         optimization for 'avr6' architecture.
529
530 2008-05-26  Andy Hutchinson  <hutchinsonandy@aim.com>
531
532         PR target/34932
533         * config/avr/avr.md (*addhi3_zero_extend2): Remove.
534
535 2008-05-26  Richard Guenther  <rguenther@suse.de>
536
537         * tree-ssa-sccvn.c (expr_has_constants): Declare.
538         (visit_reference_op_load): Initialize VN_INFO->has_constants properly.
539
540 2008-05-26  H.J. Lu  <hongjiu.lu@intel.com>
541
542         PR middle-end/36253
543         * caller-save.c (insert_restore): Verify alignment of spill space.
544         (insert_save): Likewise.
545         * cfgexpand.c (LOCAL_ALIGNMENT): Removed.
546         * defaults.h (LOCAL_ALIGNMENT): New. Provide default.
547         (STACK_SLOT_ALIGNMENT): Likewise.
548         * function.c (LOCAL_ALIGNMENT): Removed.
549         (get_stack_local_alignment): New.
550         (assign_stack_local): Use it.  Set alignment on stack slot.
551         (assign_stack_temp_for_type): Use get_stack_local_alignment.
552         * config/i386/i386.h (LOCAL_ALIGNMENT): Updated.
553         (STACK_SLOT_ALIGNMENT): New.
554         * config/i386/i386.c (ix86_local_alignment): Handle caller-save
555         stack slot in XFmode.
556
557         * doc/tm.texi (STACK_SLOT_ALIGNMENT): New.
558
559 2008-05-26  Kai Tietz  <kai.tietz@onevision.com>
560
561         PR/36321
562         * config/i386/i386.md (allocate_stack_worker_64): Make sure
563         argument operand in rax isn't removed.
564
565 2008-05-26  Richard Guenther  <rguenther@suse.de>
566
567         PR middle-end/36300
568         * fold-const.c (extract_muldiv_1): Use TYPE_OVERFLOW_WRAPS,
569         not TYPE_UNSIGNED.  Use TYPE_PRECISION instead of GET_MODE_SIZE.
570
571 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
572
573         PR bootstrap/36331
574         * c-cppbuiltin.c (define__GNUC__): Re-add definition of __GNUG__.
575
576 2008-05-26  Dominique Dhumieres  <dominiq@lps.ens.fr>
577
578         * config/darwin-c.c: Include "incpath.h" instead of "c-incpath.h".
579         * config/t-darwin: Use "incpath.h" instead of "c-incpath.h".
580
581 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
582
583         * tree-nested.c (convert_tramp_reference) <ADDR_EXPR>: Do not
584         build a trampoline if we don't want one.
585         * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Do not
586         return zero for nested functions if we don't want a trampoline.
587
588 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
589
590         * doc/invoke.texi: Added f77, f77-cpp-input to list of file types.
591
592 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
593
594         PR fortran/18428
595         * c.opt: Removed undocumented option '-lang-fortran'.
596         * c-common.h: Removed global variable 'lang_fortran'.
597         * c-opts.c (c_common_handle_option): Removed code to handle
598         option '-lang-fortran'. Updated includes.
599         * c-cppbuiltin.c (c_cpp_builtins): Removed conditional
600         definition of '__GFORTRAN__'.
601         (define__GNUC__): Reimplemented to use BASEVER and
602         cpp_define_formatted.
603         (builtin_define_with_value_n): Removed.
604         * c-incpath.h: Renamed to ...
605         * incpath.h: ... this.
606         * c-incpath.c: Renamed to ...
607         * incpath.c: ... this. Updated includes.
608         * fix-header.c: Updated includes.
609         * Makefile.in: Replaced c-incpath.[ch] by incpath.[ch].
610         (c-cppbuiltin.o): Added dependency on and definition of BASEVER.
611         (OBJ-archive): Added cppdefault.o, incpath.o and prefix.o.
612
613 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
614
615         * tree.h: Update the table of flags used on tree nodes.
616         (TREE_NO_TRAMPOLINE): New accessor for static_flag.
617         (SAVE_EXPR_RESOLVED_P): Use automatically-built access check.
618         (FORCED_LABEL): Add access check.
619         (CALL_EXPR_RETURN_SLOT_OPT): Likewise.
620         (ASM_INPUT_P): Likewise.
621         (ASM_VOLATILE_P): Likewise.
622         (EH_FILTER_MUST_NOT_THROW): Access static_flag directly.
623         (OMP_SECTION_LAST): Access private_flag directly.
624         (OMP_RETURN_NOWAIT): Likewise.
625         (OMP_PARALLEL_COMBINED): Likewise.
626         (OMP_CLAUSE_PRIVATE_DEBUG): Access public_flag directly.
627         (OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE): Likewise.
628         * tree-ssa-propagate.c (STMT_IN_SSA_EDGE_WORKLIST): Access
629         deprecated_flag directly.
630
631 2008-05-25  H.J. Lu  <hongjiu.lu@intel.com>
632
633         * final.c (frame_pointer_needed): Removed.
634         * flags.h (frame_pointer_needed): Likewise.
635
636         * function.h (rtl_data): Add frame_pointer_needed.
637         (frame_pointer_needed): New.
638
639 2008-05-25  Arthur Loiret  <arthur.loiret@u-psud.fr>
640
641         * config.gcc (sh2[lbe]*-*-linux*): Allow target.
642
643 2008-05-25  Steven Bosscher  <stevenb.gcc@gmail.com>
644
645         * gcse.c (hash_scan_set): Do not pick up a REG_EQUAL value if
646         SRC is a REG.
647
648 2008-05-25  Alan Modra  <amodra@bigpond.net.au>
649
650         * c-common.c (strip_array_types): Move function to..
651         * tree.c: ..here.
652         (get_inner_array_type): Delete.
653         * c-common.h (strip_array_types): Move declaration to..
654         * tree.h: ..here.
655         (get_inner_array_type): Delete.
656         * config/i386/i386.c (x86_field_alignment): Use strip_array_types.
657         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
658         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
659         * config/pa/pa.c (emit_move_sequence): Likewise.
660
661 2008-05-24  H.J. Lu  <hongjiu.lu@intel.com>
662
663         * config/i386/i386.md (*sse_prologue_save_insn): Set length
664         attribute to 34.
665
666 2008-05-24  Andy Hutchinson  <hutchinsonandy@aim.com>
667
668         * function.c: Include target hook for nonlocal_goto frame value.
669
670 2008-05-24  Richard Guenther  <rguenther@suse.de>
671
672         * tree-dfa.c (refs_may_alias_p): Re-instantiate case that a scalar
673         variable can be only accessed through a pointer or a union.
674
675 2008-05-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
676
677         * builtins.c (fold_builtin_fpclassify): Fix spelling of FP_INFINITE.
678         * doc/extend.texi: Likewise.
679
680 2008-05-23  DJ Delorie  <dj@redhat.com>
681
682         * config/m32c/jump.md (untyped_call): Add.
683
684         * config/m32c/m32c.c (m32c_return_addr_rtx): Change pointer type
685         for A24 to PSImode.
686         (m32c_address_cost): Detail costs for indirect offsets.
687
688 2008-05-23  Rafael Espindola  <espindola@google.com>
689
690         * see.c (see_get_extension_data): Don't use SUBREG_REG to test
691         if a node is a SUBREG.
692         (see_analyze_one_def): Don't use SUBREG_REG to test if a node
693         is a SUBREG.
694
695 2008-05-23  Paul Brook  <paul@codesourcery.com>
696             Carlos O'Donell  <carlos@codesourcery.com>
697
698         * doc/extend.texi: Clarify use of __attribute__((naked)).
699         * doc/tm.texi: Document TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
700         * target.h (gcc_target): Add allocate_stack_slots_for_args.
701         * function.c (use_register_for_decl): Use
702         targetm.calls.allocate_stack_slots_for_args.
703         * target-def.h (TARGET_CALLS): Add TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
704         * config/arm/arm.c (arm_allocate_stack_slots_for_args): New function.
705         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
706
707 2008-05-23  Eric Botcazou  <ebotcazou@adacore.com>
708
709         * expr.c (highest_pow2_factor) <BIT_AND_EXPR>: New case.
710
711 2008-05-23  Steven Munroe  <sjmunroe@us.ibm.com>
712
713         * config/rs6000/darwin-ldouble.c (fmsub): Eliminate the full
714         PACK/UNPACK between FP_SUB_Q and FD_TRUNC so that the result
715         is only rounded once.
716
717 2008-05-23  Richard Guenther  <rguenther@suse.de>
718
719         * tree-ssa-operands.c (mark_difference_for_renaming): Use bitmap_xor.
720
721 2008-05-23  Uros Bizjak  <ubizjak@gmail.com>
722             Jakub Jelinek  <jakub@redhat.com>
723
724         PR target/36079
725         * configure.ac: Handle --enable-cld.
726         * configure: Regenerated.
727         * config.gcc: Add USE_IX86_CLD to tm_defines for x86 targets.
728         * config/i386/i386.h (struct machine_function): Add needs_cld field.
729         (ix86_current_function_needs_cld): New define.
730         * config/i386/i386.md (UNSPEC_CLD): New unspec volatile constant.
731         (cld): New isns pattern.
732         (strmov_singleop, rep_mov, strset_singleop, rep_stos, cmpstrnqi_nz_1,
733         cmpstrnqi_1, strlenqi_1): Set ix86_current_function_needs_cld flag.
734         * config/i386/i386.opt (mcld): New option.
735         * config/i386/i386.c (ix86_expand_prologue): Emit cld insn if
736         TARGET_CLD and ix86_current_function_needs_cld.
737         (override_options): Use -mcld by default for 32-bit code if
738         USE_IX86_CLD.
739
740         * doc/install.texi (Options specification): Document --enable-cld.
741         * doc/invoke.texi (Machine Dependent Options)
742         [i386 and x86-64 Options]: Add -mcld option.
743         (Intel 386 and AMD x86-64 Options): Document -mcld option.
744
745 2008-05-23  Kai Tietz  <kai.tietz@onevison.com>
746         * config/i386/i386.c (return_in_memory_32): Add ATTRIBUTE_UNUSED.
747         (return_in_memory_64): Likewise.
748         (return_in_memory_ms_64): Likewise.
749
750 2008-05-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
751
752         * builtin-types.def (BT_FN_INT_INT_INT_INT_INT_INT_VAR): New.
753         * builtins.c (fold_builtin_fpclassify): New.
754         (fold_builtin_varargs): Handle BUILT_IN_FPCLASSIFY.
755         * builtins.def (BUILT_IN_FPCLASSIFY): New.
756         * c-common.c (handle_type_generic_attribute): Adjust to accept
757         fixed arguments before an elipsis.
758         (check_builtin_function_arguments): Handle BUILT_IN_FPCLASSIFY.
759         * doc/extend.texi: Document __builtin_fpclassify.
760
761 2008-05-22  Aldy Hernandez  <aldyh@redhat.com>
762
763         * omp-low.c (gate_expand_omp_ssa): Remove.
764         (pass_expand_omp_ssa): Remove.
765         (gate_expand_omp): Do not check for flag_openmp_ssa.
766         * common.opt (-fopenmp-ssa): Remove.
767         * passes.c (init_optimization_passes): Remove pass_expand_omp_ssa.
768
769 2008-05-22  Kaz Kojima  <kkojima@gcc.gnu.org>
770
771         * config/sh/sh.opt (mfixed-range): New option.
772         * config/sh/sh-protos.h (sh_fix_range): Declare.
773         * config/sh/sh.c (sh_fix_range): New function.
774         * config/sh/sh.h (sh_fixed_range_str): Declare.
775         (OVERRIDE_OPTIONS): Call sh_fix_range if sh_fixed_range_str
776         is not empty.
777         * doc/invoke.texi (SH Options): Document -mfixed-range.
778
779 2008-05-22  Kai Tietz  <kai.tietz@onevision.com>
780
781         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Undefine
782         it before the redeclaration.
783
784 2008-05-22  Anatoly Sokolov <aesok@post.ru>
785
786         * config/avr/avr.c (get_sequence_length): Add new function.
787         (expand_prologue, expand_epilogue): Remove duplicate code.
788
789 2008-05-22  Rafael Espindola  <espindola@google.com>
790
791         * see.c (see_pre_insert_extensions): Use copy_rtx to avoid invalid rtx
792         sharing.
793
794 2008-05-22  H.J. Lu  <hongjiu.lu@intel.com>
795
796         * defaults.h (UNITS_PER_SIMD_WORD): Add scalar mode as argument.
797         * doc/tm.texi (UNITS_PER_SIMD_WORD): Likewise.
798
799         * tree-vect-analyze.c (vect_compute_data_ref_alignment): Replace
800         UNITS_PER_SIMD_WORD with GET_MODE_SIZE (TYPE_MODE (vectype)).
801         (vect_update_misalignment_for_peel): Likewise.
802         (vector_alignment_reachable_p): Likewise.
803         * tree-vect-transform.c (vectorizable_load): Likewise.
804         * tree-vectorizer.c (vect_supportable_dr_alignment): Likewise.
805         (get_vectype_for_scalar_type): Pass mode of scalar_type
806         to UNITS_PER_SIMD_WORD.
807
808         * config/arm/arm.h (UNITS_PER_SIMD_WORD): Updated.
809         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
810         * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
811         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
812         * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
813
814 2008-05-22  Ira Rosen  <irar@il.ibm.com>
815
816         PR tree-optimization/36293
817         * tree-vect-transform.c (vect_transform_strided_load): Don't check
818         if the first load must be skipped because of a gap.
819
820 2008-05-22  Richard Guenther  <rguenther@suse.de>
821
822         * tree-dfa.c (refs_may_alias_p): Exit early if possible.  Handle
823         more cases of offset disambiguation that is possible if
824         strict-aliasing rules apply.
825         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use refs_may_alias_p
826         for basic offset and type-based disambiguation.
827
828 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
829
830         * config/i386/i386.c (ix86_expand_vector_init_one_var): Use
831         ix86_expand_vector_set on V16QImode for SSE4.1.
832
833 2008-05-21  Tom Tromey  <tromey@redhat.com>
834
835         * c.opt (Wimport): Mark as undocumented.
836         * doc/invoke.texi (Option Summary): Don't mention -Wimport or
837         -Wno-import.
838         (Warning Options): Likewise.
839         * doc/cppopts.texi: Don't mention -Wimport.
840
841 2008-05-21  Sebastian Pop  <sebastian.pop@amd.com>
842
843         PR tree-optimization/36287
844         PR tree-optimization/36286
845         * lambda-code.c (build_access_matrix): Do not use the loop->num
846         for computing the number of induction variables: use the loop depth
847         instead.
848
849 2008-05-21  Kai Tietz  <kai.tietz@onevision.com>
850
851         PR/36280
852         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Honor
853         option -f(no-)leading-underscore.
854
855 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
856
857         * config/i386/i386.c (ix86_expand_vector_init_general): Use
858         GET_MODE_NUNITS (mode).
859
860 2008-05-21  Peter Bergner  <bergner@vnet.ibm.com>
861
862         * doc/invoke.texi: Add cpu_type's 464 and 464fp.
863         (-mmulhw): Add 464 to description.
864         (-mdlmzb): Likewise.
865         * config.gcc: Handle --with-cpu=464 and --with-cpu=464fp.
866         * config/rs6000/rs6000.c (processor_target_table): Add 464 and
867         464fp entries.
868         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 464 and 464fp support.
869         * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=464.
870         * config/rs6000/rs6000.md: Update comments for 464.
871
872 2008-05-21  Janis Johnson  <janis187@us.ibm.com>
873
874         * doc/sourcebuild.texi (Test Directives): Add dg-xfail-run-if.
875
876 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
877
878         * config/i386/sse.md (vec_extractv4sf): Removed.
879         (vec_extractv2df): Likewise.
880         (vec_extractv2di): Likewise.
881         (vec_extractv4si): Likewise.
882         (vec_extractv8hi): Likewise.
883         (vec_extractv16qi): Likewise.
884         (vec_extract<mode>): New.
885
886 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
887
888         * config/i386/sse.md (vec_setv4sf): Removed.
889         (vec_setv2df): Likewise.
890         (vec_setv2di): Likewise.
891         (vec_setv4si): Likewise.
892         (vec_setv8hi): Likewise.
893         (vec_setv16qi): Likewise.
894         (vec_set<mode>): New.
895
896 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
897
898         * config/i386/i386.c (ix86_expand_vector_init_general): Remove
899         goto for vec_concat and vec_interleave.
900
901 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
902
903         * config/i386/sse.md (vec_initv4sf): Removed.
904         (vec_initv2df): Likewise.
905         (vec_initv2di): Likewise.
906         (vec_initv4si): Likewise.
907         (vec_initv8hi): Likewise.
908         (vec_initv16qi): Likewise.
909         (vec_init<mode>): New.
910
911 2008-05-21  Joseph Myers  <joseph@codesourcery.com>
912
913         * collect2.c (find_a_file): Use IS_ABSOLUTE_PATH.
914
915 2008-05-21  Tom Tromey  <tromey@redhat.com>
916
917         * ggc-zone.c (lookup_page_table_if_allocated): New function.
918         (zone_find_object_offset): Likewise.
919         (gt_ggc_m_S): Likewise.
920         (highest_bit): Likewise.
921         * ggc-page.c (gt_ggc_m_S): New function.
922         * stringpool.c (string_stack): Remove.
923         (init_stringpool): Update.
924         (ggc_alloc_string): Use ggc_alloc.
925         (maybe_delete_ident): New function.
926         (ggc_purge_stringpool): Likewise.
927         (gt_ggc_m_S): Remove.
928         * ggc-common.c (ggc_protect_identifiers): New global.
929         (ggc_mark_roots): Call ggc_purge_stringpool.  Use
930         ggc_protect_identifiers.
931         * ggc.h (ggc_protect_identifiers): Declare.
932         (gt_ggc_m_S): Update.
933         (ggc_purge_stringpool): Declare.
934         * toplev.c (compile_file): Set and reset ggc_protect_identifiers.
935         * gengtype.c (write_types_process_field) <TYPE_STRING>: Remove
936         special case.
937         (write_root): Cast gt_ggc_m_S to gt_pointer_walker.
938
939 2008-05-21  David S. Miller  <davem@davemloft.net>
940
941         * config.gcc (sparc-*-linux*): Always include sparc/t-linux in
942         tmake_file.
943
944 2008-05-21  Eric Botcazou  <ebotcazou@adacore.com>
945
946         * cfgexpand.c (tree_expand_cfg): Zap the EH throw statement table
947         once finished.
948
949 2008-05-20  David Daney  <ddaney@avtrex.com>
950
951         * config/mips/mips.md (UNSPEC_SYNC_NEW_OP_12,
952         UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE_12): New define_constants.
953         (UNSPEC_SYNC_EXCHANGE, UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
954         UNSPEC_UPDATE_GOT_VERSION): Renumber.
955         (optab, insn): Add 'plus' and 'minus' to define_code_attr.
956         (atomic_hiqi_op): New define_code_iterator.
957         (sync_compare_and_swap<mode>): Call mips_expand_atomic_qihi instead of
958         mips_expand_compare_and_swap_12.
959         (compare_and_swap_12): Use MIPS_COMPARE_AND_SWAP_12 instead of
960         MIPS_COMPARE_AND_SWAP_12_0.  Pass argument to MIPS_COMPARE_AND_SWAP_12.
961         (sync_<optab><mode>, sync_old_<optab><mode>,
962         sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
963         sync_new_nand<mode>): New define_expands for HI and QI mode operands.
964         (sync_<optab>_12, sync_old_<optab>_12, sync_new_<optab>_12,
965         sync_nand_12, sync_old_nand_12, sync_new_nand_12): New insns.
966         (sync_lock_test_and_set<mode>): New define_expand for HI and QI modes.
967         (test_and_set_12): New insn.
968         (sync_old_add<mode>, sync_new_add<mode>, sync_old_<optab><mode>,
969         sync_new_<optab><mode>, sync_old_nand<mode>,
970         sync_new_nand<mode>, sync_lock_test_and_set<mode>):  Add early
971         clobber to operand 0 for SI and DI mode insns.
972         * config/mips/mips-protos.h (mips_gen_fn_6, mips_gen_fn_5,
973         mips_gen_fn_4): New typedefs.
974         (mips_gen_fn_ptrs): Define new union type.
975         (mips_expand_compare_and_swap_12): Remove declaration.
976         (mips_expand_atomic_qihi): Declare function.
977         * config/mips/mips.c (mips_expand_compare_and_swap_12): Rename to...
978         (mips_expand_atomic_qihi): ... this.  Use new generator function
979         parameter.
980         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): Add OPS parameter.
981         (MIPS_COMPARE_AND_SWAP_12_0): Delete macro.
982         (MIPS_COMPARE_AND_SWAP_12_ZERO_OP, MIPS_COMPARE_AND_SWAP_12_NONZERO_OP,
983         MIPS_SYNC_OP_12, MIPS_SYNC_OP_12_NOT_NOP,
984         MIPS_SYNC_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12,
985         MIPS_SYNC_OLD_OP_12_NOT_NOP, MIPS_SYNC_OLD_OP_12_NOT_NOP_REG,
986         MIPS_SYNC_OLD_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12_NOT_NOT_REG,
987         MIPS_SYNC_NEW_OP_12, MIPS_SYNC_NEW_OP_12_NOT_NOP,
988         MIPS_SYNC_NEW_OP_12_NOT_NOT, MIPS_SYNC_EXCHANGE_12,
989         MIPS_SYNC_EXCHANGE_12_ZERO_OP, MIPS_SYNC_EXCHANGE_12_NONZERO_OP):
990         New macros.
991
992 2008-05-20  H.J. Lu  <hongjiu.lu@intel.com>
993
994         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Add
995         the missing break.
996
997 2008-05-20  Anatoly Sokolov <aesok@post.ru>
998
999         * config/avr/avr.h (machine_function): Add 'is_OS_main' field.
1000         * config/avr/avr.c (avr_OS_main_function_p): Add new function.
1001         (avr_attribute_table): Add 'OS_main' function attribute.
1002         (avr_regs_to_save, expand_prologue, expand_epilogue): Handle
1003         functions with 'OS_main' attribute.
1004
1005 2008-05-20  Richard Guenther  <rguenther@suse.de>
1006
1007         PR tree-optimization/35204
1008         * tree-ssa-sccvn.c (extract_and_process_scc_for_name): New
1009         helper, split out from ...
1010         (DFS): ... here.  Make the DFS walk non-recursive.
1011
1012 2008-05-20  Sebastian Pop  <sebastian.pop@amd.com>
1013             Jan Sjodin  <jan.sjodin@amd.com>
1014
1015         PR tree-optimization/36181
1016         * tree-parloops.c (loop_has_vector_phi_nodes): New.
1017         (parallelize_loops): Don't parallelize when the loop has vector
1018         phi nodes.
1019
1020 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
1021             Sebastian Pop  <sebastian.pop@amd.com>
1022
1023         * tree-loop-linear.c (gather_interchange_stats): Look in the access
1024         matrix, and never look at the tree representation of the memory
1025         accesses.
1026         (linear_transform_loops): Computes parameters and access matrices.
1027         * tree-data-ref.c (compute_data_dependences_for_loop): Returns false
1028         when fails.
1029         (access_matrix_get_index_for_parameter): New.
1030         * tree-data-ref.h (struct access_matrix): New.
1031         (AM_LOOP_NEST_NUM, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
1032         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
1033         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT,
1034         am_vector_index_for_loop): New.
1035         (struct data_reference): Add field access_matrix.
1036         (DR_ACCESS_MATRIX): New.
1037         (compute_data_dependences_for_loop): Update declaration.
1038         (lambda_collect_parameters, lambda_compute_access_matrices): Declared.
1039         * lambda.h (lambda_vector_vec_p): Declared.
1040         * lambda-code.c: Depend on pointer-set.h.
1041         (lambda_collect_parameters_from_af, lambda_collect_parameters,
1042         av_for_af_base, av_for_af, build_access_matrix,
1043         lambda_compute_access_matrices): New.
1044         * Makefile.in (lambda-code.o): Depend on pointer-set.h.
1045
1046 2008-05-20  Joseph Myers  <joseph@codesourcery.com>
1047
1048         * doc/install.texi2html: Generate gcc-vers.texi in $DESTDIR not
1049         $SOURCEDIR/include.
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-scalar-evolution.c: Remove enum INSERT_SUPERLOOP_CHRECS,
1056         FOLD_CONVERSIONS.
1057         (instantiate_scev_1): Rename flags to fold_conversions.
1058         Do not check for INSERT_SUPERLOOP_CHRECS, keep SSA_NAMEs defined
1059         outeside instantiation_loop.
1060         * tree-chrec.h (evolution_function_is_affine_in_loop): New.
1061         (evolution_function_is_affine_or_constant_p): Removed.
1062         * tree-data-ref.c (dr_analyze_indices): Replace resolve_mixers with
1063         instantiate_scev.
1064         (analyze_siv_subscript): Pass in the loop nest number.
1065         Call evolution_function_is_affine_in_loop instead of 
1066         evolution_function_is_affine_p.
1067         (analyze_overlapping_iterations): Pass in the loop nest number.
1068
1069 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
1070             Sebastian Pop  <sebastian.pop@amd.com>
1071
1072         PR tree-optimization/36206
1073         * tree-chrec.h (chrec_fold_op): New.
1074         * tree-data-ref.c (initialize_matrix_A): Traverse NOP_EXPR, PLUS_EXPR,
1075         and other trees.
1076
1077 2008-05-20  Nathan Sidwell  <nathan@codesourcery.com>
1078
1079         * c-incpath.c (INO_T_EQ): Do not define on non-inode systems.
1080         (DIRS_EQ): New.
1081         (remove_duplicates): Do not set inode on non-inode systems.
1082         Use DIRS_EQ.
1083
1084 2008-05-20  Sandra Loosemore  <sandra@codesourcery.com>
1085
1086         * config.gcc (tm_file): Update comments about relative pathnames.
1087
1088 2008-05-20  Richard Guenther  <rguenther@suse.de>
1089
1090         * tree-ssa-reassoc.c (fini_reassoc): Use the statistics infrastructure.
1091         * tree-ssa-sccvn.c (process_scc): Likewise.
1092         * tree-ssa-sink.c (execute_sink_code): Likewise.
1093         * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
1094         * tree-vrp.c (process_assert_insertions): Likewise.
1095         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
1096         (perform_tree_ssa_dce): Likewise.
1097         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
1098         (dump_dominator_optimization_stats): Likewise.
1099         * tree-vectorizer.c (vectorize_loops): Likewise.
1100
1101 2008-05-20  Richard Guenther  <rguenther@suse.de>
1102
1103         * tree-vn.c (vn_lookup_with_vuses): Do not use the alias oracle.
1104
1105 2008-05-20  Kai Tietz  <kai.tietz@onevision.com>
1106
1107         * config/i386/i386-protos.h (ix86_return_in_memory): Removed.
1108         (ix86_i386elf_return_in_memory): Likewise.
1109         (ix86_i386interix_return_in_memory): Likewise.
1110         * config/i386/i386-interix.h (TARGET_RETURN_IN_MEMORY): Removed.
1111         (SUBTARGET_RETURN_IN_MEMORY): New.
1112         * config/i386/i386elf.h: Likewise.
1113         * config/i386/ptx4-i.h: Likewise.
1114         * config/i386/sol2-10.h: Likewise.
1115         * config/i386/sysv4.h: Likewise.
1116         * config/i386/vx-common.h: Likewise.
1117         * config/i386/i386.h (TARGET_RETURN_IN_MEMORY): Removed.
1118         * config/i386/i386.c (ix86_return_in_memory): Made static and
1119         make use of optional SUBTARGET_RETURN_IN_MEMORY macro.
1120         (ix86_i386elf_return_in_memory): Removed.
1121         (ix86_i386interix_return_in_memory): Removed.
1122         (TARGET_RETURN_IN_MEMORY): Declared within i386.c only.
1123         * target-def.h (TARGET_RETURN_IN_MEMORY): Remove protection #ifdef.
1124
1125 2008-05-20  Alexandre Oliva  <aoliva@redhat.com>
1126
1127         * cselib.c (cselib_record_sets): Use correct mode for IF_THEN_ELSE.
1128
1129 2008-05-19  Xinliang David Li  <davidxl@google.com>
1130
1131         * tree-ssa-dce.c: Revert patches of 2008-05-17 and 2008-05-18. 
1132         * opts.c: Ditto.
1133         * common.opt: Ditto.
1134         * doc/invoke.texi: Ditto.
1135
1136 2008-05-19  Eric Botcazou  <ebotcazou@adacore.com>
1137
1138         * tree.c (substitute_in_expr) <tcc_vl_exp>: Fix thinko.
1139         (substitute_placeholder_in_expr) <tcc_vl_exp>: Minor tweak.
1140
1141 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
1142
1143         * config/i386/i386.c (ix86_expand_vector_init_concat): Change
1144         sizes of operand array from 8/4 to 4/2.
1145         (ix86_expand_vector_init_general): Change size of operand array
1146         from 32 to 16.  Remove op0, op1 and half_mode.
1147
1148 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
1149
1150         * config/i386/i386.c (ix86_expand_vector_init_concat): New.
1151         (ix86_expand_vector_init_interleave): Likewise.
1152         (ix86_expand_vector_init_general): Use them.  Assert
1153         word_mode == SImode when n_words == 4.
1154
1155 2008-05-19  Uros Bizjak  <ubizjak@gmail.com>
1156
1157         * config/i386/i386.c (ix86_secondary_reload): New static function.
1158         (TARGET_SECONDARY_RELOAD): New define.
1159         * config/i386/i386.h (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
1160         * config/i386/i386.md (reload_outqi): Remove.
1161
1162 2008-05-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1163
1164         PR middle-end/35509
1165         * builtins.c (mathfn_built_in_1): Renamed from mathfn_built_in.
1166         Add `implicit' parameter.  Handle BUILT_IN_SIGNBIT.
1167         (mathfn_built_in): Rewrite in terms of mathfn_built_in_1.
1168         (fold_builtin_classify): Handle BUILT_IN_ISINF_SIGN.
1169         (fold_builtin_1): Likewise.
1170         * builtins.def (BUILT_IN_ISINF_SIGN): New.
1171         c-common.c (check_builtin_function_arguments): Handle
1172         BUILT_IN_ISINF_SIGN.
1173         * doc/extend.texi: Document __builtin_isinf_sign.
1174         * fold-const.c (operand_equal_p): Handle COND_EXPR.
1175
1176 2008-05-18  Eric Botcazou  <ebotcazou@adacore.com>
1177
1178         * tree-ssa-dom.c (tree_ssa_dominator_optimize): If some blocks need
1179         EH cleanup at the end of the pass, search for those that have been
1180         turned into forwarder blocks and do the cleanup on their successor.
1181
1182 2008-05-18  Richard Guenther  <rguenther@suse.de>
1183
1184         * tree-cfg.c (verify_gimple_expr): Allow conversions from
1185         pointers to sizetype and vice versa.
1186
1187 2008-05-18 Xinliang David Li   <davidxl@google.com>
1188
1189         * gcc/tree-ssa-dce.c: Coding style fix.
1190         (check_pow): Documentation comment. 
1191         (check_log): Documenation comment. Coding style fix.
1192         (is_unnecessary_except_errno_call): Ditto.
1193         (gen_conditions_for_pow): Ditto.
1194         (gen_conditions_for_log): Ditto.
1195         (gen_shrink_wrap_conditions): Ditto.
1196         (shrink_wrap_one_built_in_calls): Ditto.
1197         * gcc/doc/invoke.texi: Better documentation string.
1198         * ChangeLog: Fix wrong change log entries from 
1199         May 17 checkin on function call DCE.
1200
1201 2008-05-17  Kaz Kojima  <kkojima@gcc.gnu.org>
1202
1203         * config/sh/sh.c (sh_output_mi_thunk): Update the use of init_flow.
1204
1205 2008-05-17  Kenneth Zadeck <zadeck@naturalbridge.com>
1206
1207         * doc/rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P): Fixed typos.
1208         * df-problems.c (simulation routines): Fixed block comment to
1209         properly say how to add forwards scanning functions.
1210         
1211 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
1212
1213         * tree-inline.c (setup_one_parameter): Remove dead code.
1214
1215 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
1216
1217         * fold-const.c (fold_unary) <CASE_CONVERT>: Fold the cast into
1218         a BIT_AND_EXPR only for an INTEGER_TYPE.
1219
1220 2008-05-17 Xinliang David Li   <davidxl@google.com>
1221
1222         * gcc/tree-ssa-dce.c (cond_dead_built_in_calls): New static variable.
1223         (check_pow, check_log, is_unnecessary_except_errno_call): New 
1224         functions to check for eliminating math functions that are pure 
1225         except for setting errno.
1226         (gen_conditions_for_pow, gen_conditionas_for_log): New functions to
1227         general condition expressions for shrink-wrapping pow/log calls.
1228         (gen_shrink_wrap_conditions): Ditto.
1229         (shrink_wrap_one_built_in_call): Ditto.
1230         (shrink_wrap_conditional_dead_built_in_calls): Ditto.
1231         (mark_operand_necessary): If debugging, output if OP is necessary.
1232         (eliminate_unnecessary_stmts): Eliminate pow, log calls that are
1233         unnecessary.
1234         * gcc/opts.c (decode_options): set flag_tree_builtin_dce to 1 when
1235         opt level >= 2.
1236         * gcc/common.opt: New user flag -ftree-builtin-dce.
1237         * gcc/doc/invoke.texi (-ftree-builtin-dce): New option.
1238
1239 2008-05-16  David S. Miller  <davem@davemloft.net>
1240
1241         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Undef before overriding.
1242         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
1243
1244 2008-05-16  Uros Bizjak  <ubizjak@gmail.com>
1245
1246         PR target/36246
1247         * config/i386/i386.h (SECONDARY_MEMORY_NEEDED_MODE): New define.
1248
1249 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
1250
1251         * ifcvt.c (dead_or_predicable): Rename
1252         df_simulate_one_insn_backwards to df_simulate_one_insn.
1253         * recog.c (peephole2_optimize): Ditto.
1254         * rtl-factoring.c (collect_pattern_seqs, clear_regs_live_in_seq):
1255         Ditto.
1256         * df.h: Rename df_simulate_one_insn_backwards to
1257         df_simulate_one_insn.  and delete df_simulate_one_insn_forwards.
1258         * df-problems.c (df_simulate_artificial_refs_at_top) Reversed
1259         scanning of defs and uses.
1260         (df_simulate_one_insn_backwards): Renamed to df_simulate_one_insn.
1261         (df_simulate_one_insn_forwards): Removed.
1262
1263 2008-05-16  Doug Kwan  <dougkwan@google.com>
1264
1265         * real.c (real_to_decimal, real_to_hexadecimal): Distinguish
1266         QNaN & SNaN.
1267         (real_from_string): Handle NaNs and Inf as approriate.
1268
1269 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
1270
1271         * doc/gty.texi (Source Files Containing Type Information): Note
1272         that headers should appear first in the gtfiles list.
1273
1274 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
1275
1276         * tree.def (COND_EXEC): Properly documented this code.
1277
1278 2008-05-16  Diego Novillo  <dnovillo@google.com>
1279
1280         * dwarf2asm.c (dw2_assemble_integer): Clarify comment.
1281         * tree-nested.c (get_trampoline_type): Set DECL_CONTEXT for
1282         the new field.
1283
1284 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
1285
1286         * tree-ssa-dse (max_stmt_uid): Removed.
1287         (get_stmt_uid, dse_possible_dead_store_p, dse_optimize_stmt, 
1288         tree_ssa_dse): Encapsulate all uses of stmt_ann->uid.
1289         * tree-ssa-sccvn.c (compare_ops, init_scc_vn): Ditto.
1290         * function.h (cfun.last_stmt_uid): New field.
1291         * tree-flow-inline.h (set_gimple_stmt_uid, gimple_stmt_uid,
1292         gimple_stmt_max_uid, set_gimple_stmt_max_uid, inc_gimple_stmt_max_uid):
1293         New functions.
1294         * tree-dfa.c (renumber_gimple_stmt_uids): New function.
1295         (create_stmt_ann): Initialize the ann->uid field.
1296         * tree-ssa-pre.c (compute_avail): Encapsulate the stmt_ann->uid
1297         with new calls.
1298         * tree-flow.h (renumber_gimple_stmt_uids): New function.
1299
1300 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
1301
1302         * tree-flow.h (init_empty_tree_cfg_for_function): Declare.
1303         * tree-cfg.c (init_empty_tree_cfg_for_function): Define.
1304         (init_empty_tree_cfg): Call it.
1305
1306 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
1307
1308         * cfg.c (init_flow): Add argument THE_FUN.  Use it instead of cfun.
1309         Update all users.
1310
1311 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
1312
1313         * doc/invoke.text (-fdump-tree-*-verbose): New option.
1314         * tree-dump.c (dump_options): New verbose option.
1315         * tree-pretty-print.c (dump_phi_nodes, dump_generic_bb_buff):
1316         Add verbose dump.
1317         * tree-pass.h (TDF_VERBOSE): New dump flag.
1318         * print-tree.c (print_node): Added code to be able to print PHI_NODES.
1319         (tree-flow.h): Added include.
1320         * Makefile.in (print-tree.o):  Added TREE_FLOW_H.
1321
1322 2008-05-16  Bernd Schmidt  <bernd.schmidt@analog.com>
1323
1324         * config/bfin/bfin.c (bfin_discover_loops): Delete empty loops.
1325
1326         From Jie Zhang  <jie.zhang@analog.com>
1327         * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
1328         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Remove mcpu=bf532-0.3,
1329         mcpu=bf561-none and mcpu=bf561-0.2.
1330         * config/bfin/t-bfin-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
1331         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
1332         * config/bfin/t-bfin-linux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
1333         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
1334         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add BFIN_CPU_UNKNOWN.
1335         * config/bfin/elf.h (STARTFILE_SPEC): Use specific CRT for BF561.
1336         (LIB_SPEC): Use proper linker script for bf561.  Error if no mcpu
1337         option.
1338         * config/bfin/bfin.c (bfin_cpu_type): Set to BFIN_CPU_UNKNOWN.
1339         (cputype_selected): Remove.
1340         (bfin_handle_option): Don't use cputype_selected.
1341         (override_options): When no mcpu option, enable all workarounds.
1342         Don't use bfin_workarounds.
1343         * config/bfin/bfin.h (DRIVER_SELF_SPECS): Don't set default
1344         processor type.
1345         (DEFAULT_CPU_TYPE): Don't define.
1346
1347 2008-05-16  Richard Guenther  <rguenther@suse.de>
1348
1349         * tree-ssa-propagate.c (substitute_and_fold): Fix stmt walking
1350         on deletion of the last stmt.
1351
1352 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
1353
1354         * config/i386/i386.c (ix86_expand_vector_init_general): Optimize
1355         V8HImode for SSE2 and V16QImode for SSE4.1.
1356
1357 2008-05-15  Kenneth Zadeck <zadeck@naturalbridge.com>
1358
1359         * cgraph.h (compute_inline_parameters): Made public.
1360         * tree-pass.h (ipa_opt_pass): Removed function_generate_summary,
1361         variable_generate_summary, function_write_summary,
1362         variable_write_summary, variable_read_summary.  Added generate_summary,
1363         write_summary, read_summary.
1364         * cgraphunit.c (cgraph_process_new_functions): Changed call from
1365         pass_ipa_inline.function_generate_summary, to
1366         compute_inline_parameters. 
1367         * ipa-inline.c (compute_inline_parameters): Made public and added
1368         node parameter.
1369         (compute_inline_parameters_for_current): New function.
1370         (pass_inline_param): Now calls compute_inline_parameters_for_current.
1371         (inline_generate_summary): Removed parameter and made to loop over
1372         all cgraph nodes.
1373         (pass_ipa_inline): Updated for new IPA_PASS structure.
1374         * passes.c (execute_ipa_summary_passes): Now is called once per
1375         pass rather than once per node*pass.
1376         
1377 2008-05-15  Anatoly Sokolov <aesok@post.ru>
1378
1379         * config/avr/avr.c (avr_base_arch_macro, avr_have_movw_lpmx_p, 
1380         avr_have_mul_p, avr_asm_only_p): Remove variables.
1381         (avr_override_options): Remove initialization of removed variables.
1382         (avr_file_start):  Convert removed variables to fields of 
1383         'struct base_arch_s *avr_current_arch'. 
1384         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): (Ditto.).
1385         (AVR_HAVE_MUL): (Ditto.).
1386         (AVR_HAVE_MOVW): (Ditto.).
1387         (AVR_HAVE_LPMX): (Ditto.). 
1388         (avr_base_arch_macro, avr_have_movw_lpmx_p, avr_have_mul_p, 
1389         avr_asm_only_p): Remove declaration.
1390
1391 2008-05-15  Diego Novillo  <dnovillo@google.com>
1392
1393         * config/arm/arm.c (arm_return_in_memory): Fix return type.
1394         * config/arm/arm-protos.h (arm_return_in_memory): Likewise.
1395
1396 2008-05-15  Adam Nemet  <anemet@caviumnetworks.com>
1397
1398         PR middle-end/36194
1399         * combine.c (check_conversion): Rename back to check_promoted_subreg.
1400         Don't call record_truncated_value from here.
1401         (record_truncated_value): Turn it into a for_each_rtx callback.
1402         (record_truncated_values): New function.
1403         (combine_instructions): Call note_uses with record_truncated_values.
1404         Change name of check_conversion to check_promoted_subreg. 
1405
1406 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
1407
1408         * doc/sourcebuild.texi: Document support for torture tests.
1409
1410 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
1411
1412         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Add "m" constraint
1413         to alternative 4 of operand 2.
1414
1415 2008-05-15  Richard Guenther  <rguenther@suse.de>
1416
1417         * tree-pass.h (current_pass): Declare.
1418         (get_pass_for_id): Likewise.
1419         * passes.c (passes_by_id, passes_by_id_size): New globals.
1420         (set_pass_for_id): New function.
1421         (get_pass_for_id): Likewise.
1422         (register_one_dump_file): Use set_pass_for_id to populate passes_by_id.
1423         (execute_function_todo): Flush per function statistics.
1424         * toplev.c (compile_file): Init statistics.
1425         (general_init): Do early statistics initialization.
1426         (finalize): Finish statistics.
1427         * statistics.h (statistics_early_init): Declare.
1428         (statistics_init): Likewise.
1429         (statistics_fini): Likewise.
1430         (statistics_fini_pass): Likewise.
1431         (statistics_counter_event): Likewise.
1432         (statistics_histogram_event): Likewise.
1433         * statistics.c: New file.
1434         * Makefile.in (OBJS-common): Add statistics.o.
1435         (statistics.o): Add dependencies.
1436         * doc/invoke.texi (-fdump-statistics): Document.
1437
1438         * tree-ssa-pre.c (compute_antic): Use statistics_histogram_event.
1439         (insert): Likewise.
1440         (execute_pre): Use statistics_counter_event.
1441         * tree-ssa-propagate.c (struct prop_stats_d): Add num_dce field.
1442         (substitute_and_fold): Increment it.  Use statistics_counter_event.
1443
1444 2008-05-15  Diego Novillo  <dnovillo@google.com>
1445
1446         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00893.html
1447
1448         * treestruct.def (TS_STRUCT_FIELD_TAG): Remove.
1449         * tree-ssa-alias.c (new_type_alias): Remove references to
1450         sub-variables from comment.
1451         * tree-ssa-operands.c (swap_tree_operands): Likewise.
1452
1453 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
1454
1455         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Set prefix_extra
1456         attribute to 1 only for insertps alternative.
1457
1458 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
1459
1460         * config/bfin/bfin.md (loadbytes): New pattern.
1461         * config/bfin/bfin.c (enum bfin_builtins): Add BFIN_BUILTIN_LOADBYTES.
1462         (bfin_init_builtins): Initialize it.
1463         (bdesc_1arg): Add it.
1464
1465 2008-05-15  Sa Liu  <saliu@de.ibm.com>
1466
1467         * testsuite/gfortran.dg/c_kind_int128_test1.f03: New.
1468         * testsuite/gfortran.dg/c_kind_int128_test2.f03: New.
1469         * testsuite/lib/target-supports.exp: Add
1470         check_effective_target_fortran_integer_16.
1471
1472 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
1473
1474         * config/bfin/bfin.h (TARGET_RETURN_IN_MEMORY): Don't define here.
1475         * config/bfin/bfin-protos.h (bfin_return_in_memory): Don't declare.
1476         * config/bfin/bfin.c (bfin_return_in_memory): Now static.  Return bool.
1477         (TARGET_RETURN_IN_MEMORY): Define.
1478
1479 2008-05-15  Richard Guenther  <rguenther@suse.de>
1480
1481         PR middle-end/36244
1482         * tree-ssa-alias.c (new_type_alias): Do not set TREE_READONLY.
1483         * tree-flow-inline.h (unmodifiable_var_p): Memory tags never
1484         represent unmodifiable vars.
1485
1486 2008-05-15  Richard Guenther  <rguenther@suse.de>
1487
1488         * tree-dfa.c (refs_may_alias_p): Allow all kinds of
1489         INDIRECT_REF and TARGET_MEM_REF.
1490         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
1491         TARGET_MEM_REF.
1492
1493 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
1494             H.J. Lu  <hongjiu.lu@intel.com>
1495
1496         * config/i386/sse.md (*vec_concatv2sf_sse4_1): New insn pattern.
1497         (*vec_concatv2si_sse4_1): Use vector_move_operand predicate
1498         for operand 2.  Remove pinsr{q,d} with 0x0 immediate operand from
1499         insn alternatives.  Add missing alternatives.
1500         (*vec_concatv2di_rex64_sse4_1): Likewise.
1501         (*vec_concatv2si_sse2): Use "x" register constraint instead of "Y2".
1502         (*vec_concatv2di_rex64_sse): Rename from *vec_concatv2di_rex64.
1503         Require TARGET_SSE.
1504
1505 2008-05-15  Richard Guenther  <rguenther@suse.de>
1506
1507         PR tree-optimization/36009
1508         PR tree-optimization/36204
1509         * tree-ssa-loop-im.c (tree-ssa-propagate.h): Include.
1510         (determine_invariantness_stmt): Record the loop a store is
1511         always executed in.
1512         * Makefile.in (tree-ssa-loop-im.o): Add tree-ssa-propagate.h
1513         dependency.
1514
1515 2008-05-15  Richard Guenther  <rguenther@suse.de>
1516
1517         PR tree-optimization/34330
1518         * tree-ssa-alias.c (get_smt_for): Only assert that accesses
1519         through the pointer will alias the SMT.
1520
1521 2008-05-14  Andreas Tobler  <a.tobler@schweiz.org>
1522
1523         * config/sparc/sparc.h (NO_PROFILE_COUNTERS): Define as 0.
1524
1525 2008-05-14  H.J. Lu  <hongjiu.lu@intel.com>
1526
1527         * config/i386/sse.md (*sse4_1_pinsrq): Make it 64bit only.
1528
1529 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
1530             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
1531
1532         * optabs.h (optab_index): Add OTI_vashl, OTI_vlshr, OTI_vashr,
1533         OTI_vrotl, OTI_vrotr to support vector/vector shifts.
1534         (vashl_optab): New optab for vector/vector shifts.
1535         (vashr_optab): Ditto.
1536         (vlshr_optab): Ditto.
1537         (vrotl_optab): Ditto.
1538         (vrotr_optab): Ditto.
1539         (optab_subtype): New enum for optab_for_tree_code call.
1540         (optab_for_tree_code): Add enum optab_subtype argument.
1541
1542         * optabs.c (optab_for_tree_code): Take an additional argument to
1543         distinguish between a vector shift by a scalar and vector shift by
1544         a vector.  Make lshr/ashr/ashl/rotl/rotr optabs just vector
1545         shifted by a scalar.  Use vlshr/vashr/vashl/vrotl/vrotr for the
1546         vector shift by a vector.
1547         (expand_widen_pattern_expr): Pass additional argument to
1548         optab_for_tree_code.
1549
1550         * genopinit.c (optabs): Add vashr_optab, vashl_optab, vlshr_optab,
1551         vrotl_optab, vrotr_optab.
1552
1553         * expr.c (expand_expr_real_1): Update calls to
1554         optab_for_tree_code to distinguish between vector shifted by a
1555         scalar and vector shifted by a vector.
1556         * tree-vectorizer.c (supportable_widening_operation): Ditto.
1557         (supportable_narrowing_operation): Ditto.
1558         * tree-vect-analyze.c (vect_build_slp_tree): Ditto.
1559         * tree-vect-patterns.c (vect_pattern_recog_1): Ditto.
1560         * tree-vect-transform.c (vect_model_reduction_cost): Ditto.
1561         (vect_create_epilog_for_reduction): Ditto.
1562         (vectorizable_reduction): Ditto.
1563         (vectorizable_operation): Ditto.
1564         (vect_strided_store_supported): Ditto.
1565         (vect_strided_load_supported): Ditto.
1566         * tree-vect-generic.c (expand_vector_operations_1): Ditto.
1567         * expmed.c (expand_shift): Ditto.
1568
1569         * doc/md.texi (ashl@var{m}3): Document that operand 2 is always a
1570         scalar type.
1571         (ashr@var{m}3): Ditto.
1572         (vashl@var{m}3): Document new vector/vector shift standard name.
1573         (vashr@var{m}3): Ditto.
1574         (vlshr@var{m}3): Ditto.
1575         (vrotl@var{m}3): Ditto.
1576         (vrotr@var{m}3): Ditto.
1577
1578         * config/i386/i386.md (PPERM_SRC): Move PPERM masks here from i386.c.
1579         (PPERM_INVERT): Ditto.
1580         (PPERM_REVERSE): Ditto.
1581         (PPERM_REV_INV): Ditto.
1582         (PPERM_ZERO): Ditto.
1583         (PPERM_ONES): Ditto.
1584         (PPERM_SIGN): Ditto.
1585         (PPERM_INV_SIGN): Ditto.
1586         (PPERM_SRC1): Ditto.
1587         (PPERM_SRC2): Ditto.
1588
1589         * config/i386/sse.md (mulv2di3): Add SSE5 support.
1590         (sse5_pmacsdql_mem): New SSE5 define_and_split that temporarily
1591         allows a memory operand to be the value being added, and split it
1592         to improve vectorization.
1593         (sse5_pmacsdqh_mem): Ditto.
1594         (sse5_mulv2div2di3_low): SSE5 32-bit multiply and extend function.
1595         (sse5_mulv2div2di3_high): Ditto.
1596         (vec_pack_trunc_v8hi): Add SSE5 pperm support.
1597         (vec_pack_trunc_v4si): Ditto.
1598         (vec_pack_trunc_v2di): Ditto.
1599         (sse5_pcmov_<mode>): Remove code that tried to use use
1600         andps/andnps instead of pcmov.
1601         (vec_widen_smult_hi_v4si): If we have SSE5, use the pmacsdql and
1602         pmacsdqh instructions.
1603         (vec_widen_smult_lo_v4si): Ditto.
1604
1605         * config/i386/i386.c (PPERM_SRC): Move PPERM masks to i386.md.
1606         (PPERM_INVERT): Ditto.
1607         (PPERM_REVERSE): Ditto.
1608         (PPERM_REV_INV): Ditto.
1609         (PPERM_ZERO): Ditto.
1610         (PPERM_ONES): Ditto.
1611         (PPERM_SIGN): Ditto.
1612         (PPERM_INV_SIGN): Ditto.
1613         (PPERM_SRC1): Ditto.
1614         (PPERM_SRC2): Ditto.
1615         (ix86_expand_sse_movcc): Move the SSE5 test after the if
1616         true/false tests.
1617         (ix86_expand_int_vcond): If SSE5 generate all possible integer
1618         comparisons.
1619         (ix86_sse5_valid_op_p): Allow num_memory to be negative, which
1620         says ignore whether the last reference is a memory operand.
1621
1622 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
1623             Paolo Bonzini <bonzini at gnu dot org>
1624
1625         * config/rs6000/rs6000.c (bdesc_2arg): Change the names of vector
1626         shift patterns.
1627
1628         * config/rs6000/altivec.md (vashl<mode>3): Rename from ashl<mode>3.
1629         (vlshr<mode>3): Rename from vlshr<mode>3.
1630         (vashr<mode>3): Rename from vashr<mode>3.
1631         (mulv4sf3): Change the names of vector shift patterns.
1632         (mulv4si3): Ditto.
1633         (negv4sf2): Ditt.
1634
1635         * config/spu/spu.c (spu_initialize_trampoline): Rename vector
1636         shift insns.
1637
1638         * config/spu/spu-builtins.def (SI_SHLH): Rename vector shift insns.
1639         (SI_SHLHI): Ditto.
1640         (SI_SHL): Ditto.
1641         (SI_SHLI): Ditto.
1642         (SI_ROTH): Ditto.
1643         (SI_ROTHI): Ditto.
1644         (SI_ROT): Ditto.
1645         (SI_ROTI): Ditto.
1646         (SPU_RL_0): Ditto.
1647         (SPU_RL_1): Ditto.
1648         (SPU_RL_2): Ditto.
1649         (SPU_RL_3): Ditto.
1650         (SPU_RL_4): Ditto.
1651         (SPU_RL_5): Ditto.
1652         (SPU_RL_6): Ditto.
1653         (SPU_RL_7): Ditto.
1654         (SPU_SL_0): Ditto.
1655         (SPU_SL_1): Ditto.
1656         (SPU_SL_2): Ditto.
1657         (SPU_SL_3): Ditto.
1658         (SPU_SL_4): Ditto.
1659         (SPU_SL_5): Ditto.
1660         (SPU_SL_6): Ditto.
1661         (SPU_SL_7): Ditto.
1662
1663         * config/spu/spu.md (v): New iterator macro to add v for vector types.
1664         (floatunssidf2_internal): Change vector/vector shift names.
1665         (floatunsdidf2_internal): Ditto.
1666         (mulv8hi3): Ditto.
1667         (ashrdi3): Ditto.
1668         (ashrti3): Ditto.
1669         (cgt_df): Ditto.
1670         (cgt_v2df): Ditto.
1671         (dftsv): Ditto.
1672         (vashl<mode>3): Rename from ashl<mode>3.
1673         (vashr<mode>3): Rename from ashr<mode>3.
1674         (vlshr<mode>3): Rename from lshr<mode>3.
1675         (vrotl<mode>3): Rename from rotl<mode>3.
1676
1677 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
1678
1679         PR target/36224
1680         * config/i386/sse.md (vec_widen_smult_hi_v4si): Delete, using unsigned
1681         multiply gives the wrong value when doing widening multiplies.
1682         (vec_widen_smult_lo_v4si): Ditto.
1683
1684 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
1685
1686         * optabs.c (prepare_cmp_insn): Changed LCT_PURE_MAKE_BLOCK to
1687         LCT_PURE and LCT_CONST_MAKE_BLOCK to LCT_CONST in calls to
1688         emit_library_call_value. 
1689         * builtins.c (expand_builtin_powi, expand_builtin_memcmp): Ditto.
1690         * tree.h (ECF_LIBCALL_BLOCK): Removed.
1691         * calls.c (initialize_argument_information, precompute_arguments, 
1692         expand_call, emit_library_call_value_1): Remove ECF_LIBCALL_BLOCK.
1693         (precompute_arguments): Removed flags parameter.
1694         * rtl.h (LCT_CONST_MAKE_BLOCK, LCT_PURE_MAKE_BLOCK): Removed.
1695         
1696 2008-05-14  Richard Guenther  <rguenther@suse.de>
1697
1698         * tree-ssa-dse.c (dse_possible_dead_store_p): Remove dead code.
1699         Make sure to register the store if the use is a PHI_NODE.
1700
1701 2008-05-14  Olivier Hainque  <hainque@adacore.com>
1702
1703         * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
1704         memory if the component is to be referenced in BLKmode according
1705         to get_inner_reference.
1706
1707 2008-05-14  Adam Nemet  <anemet@caviumnetworks.com>
1708
1709         * calls.c (emit_library_call_value_1): Restore code clearing
1710         ECF_LIBCALL_BLOCK to ensure that we only call end_sequence once.
1711
1712 2008-05-14  Olivier Hainque  <hainque@adacore.com>
1713             Nicolas Roche  <roche@adacore.com>
1714
1715         * configure.ac: Add support for a "gcc_subdir" variable in
1716         config-lang.in, to denote a subdirectory where the language/GCC
1717         integration files are to be found.
1718         * configure: Regenerate.
1719
1720 2008-05-14  Ira Rosen  <irar@il.ibm.com>
1721
1722         PR tree-optimization/36098
1723         * tree-vect-analyze.c (vect_analyze_group_access): Set the gap
1724         value for the first load in the group in case of a gap.
1725         (vect_build_slp_tree): Check that there are no gaps in loads.
1726
1727 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
1728
1729         * doc/rtl.texi: Removed reference to REG_NO_CONFLICT notes.
1730         * optabs.c (expand_binop, expand_absneg_bit, expand_unop,
1731         expand_copysign_bit, ): Change call to emit_no_conflict_block to
1732         emit_insn and remove unneeded code to construct extra args.
1733         (emit_no_conflict_block): Removed.
1734         * optabls.h: (emit_no_conflict_block): Removed.
1735         * cse.c (cse_extended_basic_block): Remove search for
1736         REG_NO_CONFLICT note.
1737         * global.c: Removed incorrect comment added in revision 117.
1738         * expr.c (convert_move): Change call to emit_no_conflict_block to
1739         emit_insn.
1740         * recog.c: Change comments so that they do not mention
1741         REG_NO_CONFLICT.
1742         * local_alloc.c (combine_regs): Removed last parameter.
1743         (no_conflict_p): Removed.
1744         (block_alloc): Removed note, no_conflict_combined_regno and set
1745         local vars. Removed all code to process REG_NO_CONFLICT blocks.
1746         (combine_regs): Removed already_dead and code to look for
1747         REG_NO_CONFLICT notes.
1748         * lower_subreg (remove_retval_note): Removed code to look for
1749         REG_NO_CONFLICT block.
1750         (resolve_reg_notes): Removed REG_NO_CONFLICT case.
1751         (resolve_clobber): Remove code to process libcalls that have
1752         REG_NO_CONFLICT notes.
1753         * loop_invariant.c (find_invariant_insn): Removed REG_NO_CONFLICT
1754         case.
1755         * combine.c (can_combine_p, distribute_notes):  Removed
1756         REG_NO_CONFLICT case.
1757         * config/cris/cris.md (movdi pattern): Changed emit_no_conflict_block
1758         to emit_insns.
1759         * config/mn10300/mn10300.md (absdf2, negdf2 patterns): Ditto.
1760         * config/m68k/m68k.md (negdf2, negxf2, absdf2, absxf2 patterns):
1761         Ditto.
1762         * reg-notes.def (NO_CONFLICT): Removed.
1763
1764 2008-05-14  David S. Miller  <davem@davemloft.net>
1765
1766         * config/sparc/sparc.c (sparc_profile_hook): If
1767         NO_PROFILE_COUNTERS, don't generate and pass a label into mcount.
1768         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Define as 1.
1769         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
1770
1771 2008-05-14  Andreas Krebbel  <krebbel1@de.ibm.com>
1772
1773         * cse.c (cse_cc_succs): Invoke delete_insn_and_edges.
1774
1775 2008-05-13  Uros Bizjak  <ubizjak@gmail.com>
1776
1777         PR target/36222
1778         * config/i386/i386.c (ix86_expand_vector_init_general): Rearrange op0
1779         and op1 expansion before vector concat to have less live pseudos.
1780
1781 2008-05-13  H.J. Lu  <hongjiu.lu@intel.com>
1782
1783         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
1784         ix86_expand_vector_set if supported.
1785
1786 2008-05-13  Diego Novillo  <dnovillo@google.com>
1787             Kenneth Zadeck  <zadeck@naturalbridge.com>
1788
1789         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00748.html
1790
1791         * tree.h (init_phinodes, fini_phinodes, release_phi_node,
1792         phinodes_print_statistics, init_ssanames, fini_ssanames,
1793         make_ssa_name, duplicate_ssa_name, duplicate_ssa_name_ptr_info,
1794         release_ssa_name, release_defs, replace_ssa_name_symbol,
1795         ssanames_print_statistics): Move ...
1796         * tree-flow.h: ... here.
1797         * tree-ssanames.c (init_ssanames): Add arguments FN and SIZE.
1798         Use FN instead of cfun.
1799         (make_ssa_name_fn): Rename from make_ssa_name.
1800         (pass_release_ssa_names): Add TODO_dump_func to finish flags.
1801         * tree-flow-inline.h (make_ssa_name): Move from
1802         tree-ssanames.c.  Convert to static inline.  Call make_ssa_name_fn.
1803         * omp-low.c (expand_omp_parallel):
1804         * tree-flow-inline.h (redirect_edge_var_map_result):
1805         * tree-ssa.c (init_tree_ssa): Add argument FN.
1806         Use it instead of cfun.  Update all users.
1807
1808 2008-05-13  Tom Tromey  <tromey@redhat.com>
1809
1810         PR preprocessor/22168:
1811         * doc/cpp.texi (Top): Update menu.
1812         (Alternatives to Wrapper #ifndef): New node.
1813         (Other Directives): Document deprecation.
1814         (Obsolete Features): Remove menu.
1815         (Assertions): Merge node into Obsolete Features.
1816         (Obsolete once-only headers): Move earlier; rename to Alternatives
1817         to Wrapper #ifndef.
1818         * doc/cppopts.texi: Update.
1819         * c.opt (Wdeprecated): Enable for C and ObjC.
1820         * doc/invoke.texi (Option Summary): Move -Wno-deprecated.
1821         (C++ Dialect Options): Move -Wno-deprecated from here to...
1822         (Warning Options): ... here.
1823
1824 2008-05-13  Richard Guenther  <rguenther@suse.de>
1825
1826         PR middle-end/36227
1827         * fold-const.c (fold_sign_changed_comparison): Do not allow
1828         changes in pointer-ness.
1829
1830 2008-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
1831
1832         PR target/24713
1833         * config/sh/sh.c (sh_expand_prologue): Don't clear
1834         RTX_FRAME_RELATED_P for push insns.
1835
1836 2008-05-12  Andy Hutchinson  <hutchinsonandy@aim.com>
1837
1838         * config/avr/avr.h (MAX_OFILE_ALIGNMENT): Define.
1839
1840 2008-05-12  Anatoly Sokolov <aesok@post.ru>
1841
1842         * config/avr/avr.h (machine_function): Add 'is_leaf' field.
1843         * config/avr/avr.c (avr_regs_to_save): Compute 'machine->is_leaf'.
1844         Use 'machine->is_leaf' instead of 'leaf_func_p'.
1845
1846 2008-05-12  H.J. Lu  <hongjiu.lu@intel.com>
1847
1848         * config/i386/sse.md (*sse_concatv4sf): Renamed to ...
1849         (*vec_concatv4sf_sse): This.
1850         (*sse2_concatv2si): Renamed to ...
1851         (*vec_concatv2si_sse2): This.
1852         (*sse1_concatv2si): Renamed to ...
1853         (*vec_concatv2si_sse): This.
1854         (*vec_concatv2di_rex): Renamed to ...
1855         (*vec_concatv2di_rex64): This.
1856         (*vec_concatv2si_sse4_1): New.
1857         (*vec_concatv2di_rex64_sse4_1): Likewise.
1858
1859 2008-05-12  Uros Bizjak  <ubizjak@gmail.com>
1860
1861         PR rtl-optimization/36111
1862         * recog.c (validate_replace_rtx_1): Unshare new RTL expression
1863         that was created for swappable operands.
1864
1865 2008-05-12  Samuel Tardieu  <sam@rfc1149.net>
1866
1867         PR ada/36001
1868         * Makefile.in: Substitute GNATMAKE and GNATBIND.
1869         * configure.ac: Add call to ACX_PROG_GNAT.
1870
1871 2008-05-11  Volker Reichelt  <v.reichelt@netcologne.de>
1872
1873         * optc-gen.awk: Fix comment typo.
1874
1875 2008-05-11  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
1876
1877         * pretty-print.c (pp_integer_with_precision): Use
1878         HOST_LONG_LONG_FORMAT.
1879
1880 2008-05-10  Kenneth Zadeck  <zadeck@naturalbridge.com>
1881
1882         * gcse.c (store_killed_in_insn): Negated call to RTL_CONST_CALL_P.
1883                 
1884 2008-05-10  H.J. Lu  <hongjiu.lu@intel.com>
1885
1886         * config/i386/i386.c (bdesc_ptest): Removed.
1887         (ix86_builtin_type): Add INT_FTYPE_V2DI_V2DI_PTEST.
1888         (bdesc_args): Add __builtin_ia32_ptestz128,
1889         __builtin_ia32_ptestc128 and __builtin_ia32_ptestnzc128.
1890         (ix86_init_mmx_sse_builtins): Updated.
1891         (ix86_expand_args_builtin): Handle INT_FTYPE_V2DI_V2DI_PTEST.
1892         (ix86_expand_builtin): Updated.
1893
1894 2008-05-10  Richard Sandiford  <rdsandiford@googlemail.com>
1895
1896         * tree-cfg.c (valid_fixed_convert_types_p): New function.
1897         (verify_gimple_expr): Handle FIXED_CONVERT_EXPR.
1898
1899 2008-05-10  Uros Bizjak  <ubizjak@gmail.com>
1900
1901         * value-prof.c (interesting_stringop_to_profile): Do not
1902         return early for BUILT_IN_MEMPCPY.
1903
1904 2008-05-09  H.J. Lu  <hongjiu.lu@intel.com>
1905
1906         * calls.c (expand_call): Don't use callgraph to increase
1907         preferred_stack_boundary.
1908
1909         * cgraph.h (cgraph_rtl_info): Use unsigned on
1910         preferred_incoming_stack_boundary.
1911
1912         * final.c (rest_of_clean_state): Use unsigned on
1913         preferred_stack_boundary.
1914
1915 2008-05-09  Tom Tromey  <tromey@redhat.com>
1916
1917         PR preprocessor/22231:
1918         * c-opts.c (sanitize_cpp_opts): Disallow -MG if compilation is
1919         proceeding.
1920
1921 2008-05-09  Uros Bizjak  <ubizjak@gmail.com>
1922
1923         PR tree-optimization/36129
1924         * tree-ssa-ccp.c: Include value-prof.h.
1925         (execute_fold_all_builtins): Call gimple_remove_stmt_histograms if
1926         built-in function was folded to a constant.
1927         * Makefile.in (tree-ssa-ccp.c): Depend on value-prof.h
1928
1929 2008-05-09  Jan Sjodin  <jan.sjodin@amd.com>
1930             Sebastian Pop  <sebastian.pop@amd.com>
1931
1932         * tree-scalar-evolution.c: Document instantiate_scev.
1933         (instantiate_parameters_1): Renamed instantiate_scev_1.
1934         Don't use the same loop for instantiation_loop and evolution_loop.
1935         (instantiate_scev): New.
1936         (instantiate_parameters): Moved...
1937         (resolve_mixers): Update call to instantiate_scev_1 to pass the
1938         same loop twice.  Maintains the semantics for this function.
1939         * tree-scalar-evolution.h (instantiate_scev): Declare.
1940         (instantiate_parameters): ...here.  Now static inline.
1941         * tree-data-ref.c (dr_analyze_indices): Call instantiate_scev
1942         instead of resolve_mixers.
1943
1944 2008-05-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
1945
1946         * rtl-factoring.c (collect_pattern_seqs): Fix typo.
1947
1948 2008-05-09  Tomas Bily  <tbily@suse.cz>
1949
1950         * config/pa/pa.c (reloc_needed): Use CASE_CONVERT.
1951         * tree-cfg.c (verify_expr, verify_gimple_expr): Likewise.
1952         * tree-ssa-structalias.c (get_constraint_for): Likewise.
1953         * c-common.c (c_common_truthvalue_conversion): Likewise.
1954         * tree-object-size.c (compute_object_offset): Likewise.
1955         * tree-inline.c (estimate_num_insns_1): Likewise.
1956         * varasm.c (const_hash_1, compare_constant, copy_constant)
1957         (compute_reloc_for_constant, output_addressed_constants)
1958         (initializer_constant_valid_p): Likewise.
1959         * c-omp.c (check_omp_for_incr_expr): Likewise.
1960         * gimplify.c (gimplify_expr): Likewise.
1961         * c-typeck.c (c_finish_return): Likewise.
1962         * tree-vectorizer.c (supportable_widening_operation)
1963         (supportable_narrowing_operation): Likewise.
1964         * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Likewise.
1965         * matrix-reorg.c (can_calculate_expr_before_stmt): Likewise.
1966         * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
1967         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info)
1968         (descr_info_loc): Likewise.
1969         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
1970         * fold-const.c (operand_equal_p, make_range, extract_muldiv_1)
1971         (fold_unary): Likewise.
1972         * builtins.c (get_pointer_alignment): Likewise.
1973         * tree-scalar-evolution.c (interpret_rhs_modify_stmt)
1974         (instantiate_parameters_1): Likewise.
1975         * tree.c (expr_align, stabilize_reference): Likewise.
1976         * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
1977         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
1978         * convert.c (strip_float_extensions): Use CONVERT_EXPR_P.
1979         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
1980         * config/alpha/alpha.c (va_list_skip_additions): Likewise.
1981         * c-common.c (c_alignof_expr, check_function_arguments_recurse):
1982         Likewise.
1983         * tree-ssa.c (tree_ssa_useless_type_conversion): Likewise.
1984         * varasm.c (initializer_constant_valid_p, output_constant): Likewise.
1985         * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
1986         (forward_propagate_addr_expr_1, forward_propagate_addr_expr)
1987         (forward_propagate_comparison)
1988         (tree_ssa_forward_propagate_single_use_vars): Likewise.
1989         * cfgexpand.c (discover_nonconstant_array_refs_r): Likewise.
1990         * emit-rtl.c (component_ref_for_mem_expr)
1991         (set_mem_attributes_minus_bitpos): Likewise.
1992         * tree-ssa-phiopt.c (conditional_replacement): Likewise.
1993         * gimplify.c (gimplify_conversion, goa_lhs_expr_p, gimplify_expr):
1994         Likewise.
1995         * c-typeck.c (default_function_array_conversion, build_indirect_ref)
1996         (build_function_call, pointer_diff, build_compound_expr)
1997         (c_finish_return): Likewise.
1998         * tree-vect-analyze.c (vect_determine_vectorization_factor): Likewise.
1999         * matrix-reorg.c (get_inner_of_cast_expr, may_flatten_matrices_1):
2000         Likewise.
2001         * tree-ssa-ifcombine.c (recognize_single_bit_test): Likewise.
2002         * expr.c (is_aligning_offset): Likewise.
2003         * tree-ssa-alias.c (is_escape_site): Likewise.
2004         * tree-stdarg.c (va_list_counter_bump, check_va_list_escapes)
2005         (check_all_va_list_escapes): Likewise.
2006         * tree-ssa-loop-ivopts.c (determine_base_object)
2007         (determine_common_wider_type): Likewise.
2008         * dojump.c (do_jump): Likewise.
2009         * tree-ssa-sccvn.c (simplify_unary_expression): Likewise.
2010         * tree-gimple.c (is_gimple_cast): Likewise.
2011         * fold-const.c (decode_field_reference, )
2012         (fold_sign_changed_comparison, fold_unary, fold_comparison)
2013         (fold_binary): Likewise.
2014         * tree-ssa-alias-warnings.c (find_alias_site_helper)
2015         (already_warned_in_frontend_p): Likewise.
2016         * builtins.c (get_memory_rtx, fold_builtin_next_arg): Likewise.
2017         * tree.c (really_constant_p, get_unwidened): Likewise.
2018         * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
2019         * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
2020         * tree-vrp.c (register_edge_assert_for_2, register_edge_assert_for_1):
2021         Likewise.
2022         * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Use
2023         CONVERT_EXPR_P.
2024         (CONVERT_EXPR_P): Define.
2025         (CASE_CONVERT): Define.
2026         
2027 2008-05-08  Kenneth Zadeck  <zadeck@naturalbridge.com>
2028
2029         PR middle-end/36117
2030         * dce.c (deletable_insn_p): Do not delete calls if df_in_progress.
2031         (delete_unmarked_insns): When deleting a call, call
2032         delete_unreachable_blocks.
2033         * rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
2034         RTL_CONST_OR_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P): Fixed doc.
2035
2036 2008-05-08  Richard Guenther  <rguenther@suse.de>
2037
2038         * doc/invoke.texi (-fdump-tree-salias): Remove documentation.
2039         (-ftree-salias): Likewise.
2040         (salias-max-implicit-fields): Remove param documentation.
2041         (salias-max-array-elements): Likewise.
2042         * tree-pass.h (pass_create_structure_vars): Remove.
2043         * params.h (SALIAS_MAX_IMPLICIT_FIELDS): Remove.
2044         (SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
2045         * tree-ssa-alias.c (create_structure_vars): Remove.
2046         (gate_structure_vars): Likewise.
2047         (pass_create_structure_vars): Likewise.
2048         (gate_build_alias): Likewise.
2049         (pass_build_alias): Adjust to run always and dump the function.
2050         * common.opt (ftree-salias): Hide.
2051         * passes.c (init_optimization_passes): Remove
2052         pass_create_structure_vars, adjust comment.
2053         * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): Remove.
2054         (PARAM_SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
2055         * opts.c (decode_options): Do not set flag_tree_salias.
2056         (common_handle_option): Add OPT_ftree_salias to the backward
2057         compatibility section.
2058
2059 2008-05-08  Richard Guenther  <rguenther@suse.de>
2060
2061         * tree-flow-inline.h (var_can_have_subvars): Move ...
2062         * tree-ssa-structalias.c (var_can_have_subvars): ... here.
2063         * tree-flow.h (var_can_have_subvars): Remove.
2064         (push_fields_onto_fieldstack): Remove.
2065         (sort_fieldstack): Likewise.
2066         (struct fieldoff): Move ...
2067         * tree-ssa-structalias.c (struct fieldoff): ... here.  Remove
2068         alias_set and base_for_components fields.
2069         (sort_fieldstack): Make static.
2070         (push_fields_onto_fieldstack): Likewise.  Remove code that
2071         handles anything but RECORD_TYPEs.  Remove alias_set and
2072         base_for_components handling.
2073         (create_variable_info_for): Adjust.
2074
2075 2008-05-08  Seongbae Park  <seongbae.park@gmail.com>
2076
2077         * common.opt (Wframe-larger-than=): Shorten the help message
2078         to one line.
2079         * doc/invoke.texi (Wframe-larger-than=): Add more description.
2080
2081 2008-05-08  Rafael Espindola  <espindola@google.com>
2082
2083         * tree-complex.c (expand_complex_div_wide): Don't create CONDs that
2084         trap.
2085         * tree-gimple.c (is_gimple_condexpr): Check that the expression doesn't
2086         trap and that both operands are gimple values.
2087         (canonicalize_cond_expr_cond): Use is_gimple_condexpr.
2088         * gcc/tree-eh.c (tree_could_trap_p): Correctly detect if a comparison
2089         is a fp operation.
2090
2091 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
2092
2093         * read-rtl.c (join_c_conditions): Return the first string if the
2094         two strings are equal.
2095
2096 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
2097
2098         * gensupport.h (pred_data): Add a "num_codes" field.
2099         (add_predicate_code): Declare.
2100         * gensupport.c (add_predicate_code): New function.
2101         (std_pred_table): Add an "allows_const_p" field.
2102         (std_preds): Set this field for predicates that allow RTX_CONST_OBJs.
2103         Remove the (incomplete) list of such codes from the codes field.
2104         (init_predicate_table): Use add_predicate_code.  Add all
2105         RTX_CONST_OBJs if allows_const_p is true.
2106         * genrecog.c (process_define_predicate): Use add_predicate_code.
2107
2108 2008-05-08  David Daney  <ddaney@avtrex.com>
2109             Richard Sandiford  <rsandifo@nildram.co.uk>
2110         
2111         * config/mips/mips.md (mips_expand_compare_and_swap_12): Handle
2112         special case of constant zero operands.
2113         * config/mips/mips.c (mips_expand_compare_and_swap_12): Zero extend
2114         old and new values.  Special case constant zero values.
2115         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Skip 'sync' if compare
2116         fails.
2117         (MIPS_COMPARE_AND_SWAP_12): Handle constant zero operands.
2118         (MIPS_COMPARE_AND_SWAP_12_0): New macro.
2119
2120 2008-05-08  Paolo Bonzini  <bonzini@gnu.org>
2121
2122         PR target/36090
2123         * simplify-rtx.c (simplify_plus_minus): Create CONST of
2124         similar RTX_CONST_OBJ before CONST_INT.
2125
2126 2008-05-08  Steve Ellcey  <sje@cup.hp.com>
2127
2128         * stmt.c (expand_stack_restore): Change sa mode if needed.
2129
2130 2008-05-08  Richard Guenther  <rguenther@suse.de>
2131
2132         * config/i386/i386-protos.h (ix86_return_in_memory): Adjust
2133         return type to bool.
2134         (ix86_sol10_return_in_memory): Likewise.
2135         (ix86_i386elf_return_in_memory): Likewise.
2136         (ix86_i386interix_return_in_memory): Likewise.
2137         * config/i386/i386.c (ix86_return_in_memory): Likewise.
2138         (ix86_sol10_return_in_memory): Likewise.
2139         (ix86_i386elf_return_in_memory): Likewise.
2140         (ix86_i386interix_return_in_memory): Likewise.
2141
2142 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
2143
2144         PR bootstrap/36180
2145         * calls.c (compute_argument_block_size ): Add ATTRIBUTE_UNUSED to
2146         fndecl argument.
2147         (emit_library_call_value_1): Add ATTRIBUTE_UNUSED to variable fndecl.
2148         * target-def.h: Check that TARGET_RETURN_IN_MEMORY isn't
2149         declared in front.
2150
2151 2008-05-08  Richard Guenther  <rguenther@suse.de>
2152
2153         * tree-data-ref.c (dr_analyze_alias): Do not set DR_SUBVARS.
2154         * tree-data-ref.h (struct dr_alias): Remove subvars field.
2155         (DR_SUBVARS): Remove.
2156         * tree-dfa.c (dump_subvars_for): Remove.
2157         (debug_subvars_for): Likewise.
2158         (dump_variable): Do not dump subvars.
2159         (remove_referenced_var): Do not remove subvars.
2160         * tree-flow-inline.h (clear_call_clobbered): SFTs no longer exist.
2161         (lookup_subvars_for_var): Remove.
2162         (get_subvars_for_var): Likewise.
2163         (get_subvars_at): Likewise.
2164         (get_first_overlapping_subvar): Likewise.
2165         (overlap_subvar): Likewise.
2166         * tree-flow.h (subvar_t): Remove.
2167         (struct var_ann_d): Remove subvars field.
2168         * tree-ssa-alias.c (mark_aliases_call_clobbered): Remove queued
2169         argument.  Remove special handling of SFTs.
2170         (compute_tag_properties): Likewise.
2171         (set_initial_properties): Likewise.
2172         (compute_call_clobbered): Likewise.
2173         (count_mem_refs): Likewise.
2174         (compute_memory_partitions): Likewise.
2175         (compute_flow_insensitive_aliasing): Likewise.
2176         (setup_pointers_and_addressables): Likewise.
2177         (new_type_alias): Likewise.
2178         (struct used_part): Remove.
2179         (used_portions): Likewise.
2180         (struct used_part_map): Likewise.
2181         (used_part_map_eq): Likewise.
2182         (used_part_map_hash): Likewise.
2183         (free_used_part_map): Likewise.
2184         (up_lookup): Likewise.
2185         (up_insert): Likewise.
2186         (get_or_create_used_part_for): Likewise.
2187         (create_sft): Likewise.
2188         (create_overlap_variables_for): Likewise.
2189         (find_used_portions): Likewise.
2190         (create_structure_vars): Likewise.
2191         * tree.def (STRUCT_FIELD_TAG): Remove.
2192         * tree.h (MTAG_P): Adjust.
2193         (struct tree_memory_tag): Remove base_for_components and
2194         unpartitionable flags.
2195         (struct tree_struct_field_tag): Remove.
2196         (SFT_PARENT_VAR): Likewise.
2197         (SFT_OFFSET): Likewise.
2198         (SFT_SIZE): Likewise.
2199         (SFT_NONADDRESSABLE_P): Likewise.
2200         (SFT_ALIAS_SET): Likewise.
2201         (SFT_UNPARTITIONABLE_P): Likewise.
2202         (SFT_BASE_FOR_COMPONENTS_P): Likewise.
2203         (union tree_node): Remove sft field.
2204         * alias.c (get_alias_set): Remove special handling of SFTs.
2205         * print-tree.c (print_node): Remove handling of SFTs.
2206         * tree-dump.c (dequeue_and_dump): Likewise.
2207         * tree-into-ssa.c (mark_sym_for_renaming): Likewise.
2208         * tree-nrv.c (dest_safe_for_nrv_p): Remove special handling of SFTs.
2209         * tree-predcom.c (set_alias_info): Do not set subvars.
2210         * tree-pretty-print.c (dump_generic_node): Do not handle SFTs.
2211         * tree-ssa-loop-ivopts.c (get_ref_tag): Likewise.
2212         * tree-ssa-operands.c (access_can_touch_variable): Likewise.
2213         (add_vars_for_offset): Remove.
2214         (add_virtual_operand): Remove special handling of SFTs.
2215         (add_call_clobber_ops): Likewise.
2216         (add_call_read_ops): Likewise.
2217         (get_asm_expr_operands): Likewise.
2218         (get_modify_stmt_operands): Likewise.
2219         (get_expr_operands): Likewise.
2220         (add_to_addressable_set): Likewise.
2221         * tree-ssa.c (verify_ssa_name): Do not handle SFTs.
2222         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
2223         * tree-vect-transform.c (vect_create_data_ref_ptr): Do not set subvars.
2224         * tree.c (init_ttree): Remove STRUCT_FIELD_TAG initialization.
2225         (tree_code_size): Remove STRUCT_FIELD_TAG handling.
2226         (tree_node_structure): Likewise.
2227         * tree-ssa-structalias.c (set_uids_in_ptset): Remove special
2228         handling of SFTs.
2229         (find_what_p_points_to): Likewise.
2230
2231 2008-05-08  Sa Liu  <saliu@de.ibm.com>
2232
2233         * config/spu/spu.md: Fixed subti3 pattern.
2234
2235 2008-05-08  Richard Guenther  <rguenther@suse.de>
2236
2237         PR middle-end/36154
2238         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
2239         sure to create a representative for trailing arrays for PTA.
2240
2241 2008-05-08  Richard Guenther  <rguenther@suse.de>
2242
2243         PR middle-end/36172
2244         * fold-const.c (operand_equal_p): Two objects which types
2245         differ in pointerness are not equal.
2246
2247 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
2248
2249         * calls.c (compute_argument_block_size): Add argument tree fndecl.
2250         (OUTGOING_REG_PARM_STACK_SPACE): Add function type argument.
2251         (emit_library_call_value_1): Add new variable fndecl initialized by
2252         NULL_TREE. It should be the decl type of orgfun, but this information
2253         seems not to be available here, so it uses the default calling abi.
2254         * config/arm/arm.c (arm_return_in_memory): Add fntype argumen.
2255         * config/arm/arm.h (RETURN_IN_MEMORY): Replace RETURN_IN_MEMORY
2256         by TARGET_RETURN_IN_MEMORY.
2257         * config/i386/i386-interix.h: Likewise.
2258         * config/i386/i386.h: Likewise.
2259         * config/i386/i386elf.h: Likewise.
2260         * config/i386/ptx4-i.h: Likewise.
2261         * config/i386/sol2-10.h: Likewise.
2262         * config/i386/sysv4.h: Likewise.
2263         * config/i386/vx-common.h: Likewise.
2264         * config/cris/cris.h: Removed #if 0 clause.
2265         * config/arm/arm-protos.h (arm_return_in_memory): Add fntype argument.
2266         * config/i386/i386-protos.h (ix86_return_in_memory): Add fntype
2267         argument.
2268         (ix86_sol10_return_in_memory): Likewise.
2269         (ix86_i386elf_return_in_memory): New.
2270         (ix86_i386interix_return_in_memory): New.
2271         * config/mt/mt-protos.h (mt_return_in_memory): New.
2272         * config/mt/mt.c: Likewise.
2273         * config/mt/mt.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
2274         (RETURN_IN_MEMORY):  Replace by TARGET_RETURN_IN_MEMORY.
2275         * config/bfin/bfin.h: Likewise.
2276         * config/bfin/bfin-protos.h (bfin_return_in_memory): Add fntype
2277         argument.
2278         * config/bfin/bfin.c: Likewise.
2279         * config/pa/pa.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
2280         * config/alpha/unicosmk.h: Likewise.
2281         * config/i386/cygming.h: Likewise.
2282         * config/iq2000/iq2000.h: Likewise.
2283         * config/mips/mips.h: Likewise.
2284         * config/mn10300/mn10300.h: Likewise.
2285         * config/rs6000/rs6000.h: Likewise.
2286         * config/score/score.h: Likewise.
2287         * config/spu/spu.h: Likewise.
2288         * config/v850/v850.h: Likewise.
2289         * defaults.h: Likewise.
2290         * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Adjust documentation.
2291         * expr.c (emit_block_move): Adjust use of
2292         OUTGOING_REG_PARM_STACK_SPACE.
2293         * function.c (STACK_DYNAMIC_OFFSET): Adjust use of
2294         OUTGOING_REG_PARM_STACK_SPACE.
2295         * targhooks.c (default_return_in_memory): Remove RETURN_IN_MEMORY.
2296
2297 2008-05-08  Jakub Jelinek  <jakub@redhat.com>
2298
2299         * tree-parloops.c (create_parallel_loop): Set OMP_RETURN_NOWAIT
2300         on OMP_RETURN for OMP_FOR.
2301
2302         PR debug/35896
2303         * dwarf2out.c (dw_expand_expr, common_check): Removed.
2304         (fortran_common): New function.
2305         (gen_variable_die): Call fortran_common instead of common_check,
2306         adjust for it returning tree instead of rtx.  Formatting.
2307
2308 2008-05-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
2309
2310         PR rtl/7335
2311         PR rtl/33826
2312         * see.c (see_copy_insn): Copy new pure const attributes for new call.
2313         * c-decl.c (merge_decls): Ditto.
2314         * postreload.c (record_opr_changes): Change CONST_OR_PURE_CALL_P
2315         to RTL_CONST_OR_PURE_CALL_P.
2316         * tree.c (define_local_buitin): Rename DECL_IS_PURE to DECL_PURE_P.
2317         Initialized DECL_LOOPING_CONST_PURE.
2318         (process_call_operands): Set tree_side_effects properly.
2319         * tree.h (TREE_READONLY_DECL_P): Removed.
2320         (DECL_IS_PURE): Renamed to DECL_PURE_P.
2321         (DECL_LOOPING_OR_CONST_P): New macro.
2322         (struct tree_function_decl): Added looping_const_or_pure_p.
2323         (ECF_*) Renumbered.
2324         (ECF_LOOPING_OR_CONST_P): New macro.
2325         * rtlanal.c (pure_const_p): Removed.
2326         * builtins.c (expand_builtin): Rename DECL_IS_PURE to DECL_PURE_P.
2327         * reorg.c (delete_prior_computation) Changed CONST_OR_PURE_CALL_P
2328         to RTL_CONST_CALL_P.
2329         * ipa-pure-const.c (pure_const_state_e): Added looping field.
2330         (check_decl, check_tree, check_call, scan_function): Initialize
2331         looping.
2332         (analyze_function): Rename DECL_IS_PURE to DECL_PURE_P.
2333         (static_execute): Set looping true for recursive functions.
2334         Undo setting state to IPA_NEITHER for recursive functions.
2335         * cse.c (cse_insn): 
2336         * ifcvt.c (noce_can_store_speculate_p): Changed
2337         CONST_OR_PURE_CALL_P and pure_call_p to RTL_CONST_CALL_P or 
2338         RTL_CONST_OR_PURE_CALL_P.
2339         * dse.c (scan_insn): Ditto.
2340         * local-alloc.c (validate_equiv_mem, memref_used_between_p): Ditto.
2341         * gcse.c (oprs_not_seen_p) Changed CONST_OR_PURE_CALL_P to
2342         RTL_CONST_OR_PURE_CALL_P.
2343         (store_killed_in_insn): Changed CONST_OR_PURE_CALL_P and
2344         pure_call_p to RTL_CONST_CALL_P.
2345         * gimplify.c (gimplify_call_expr): Clear side effects for
2346         non-looping pure and constant calls.
2347         * calls.c (emit_call_1): Set rtl flags from ecf flags.
2348         (flags_from_decl_or_type): Set ecf flags from decl flags.
2349         (initialize_argument_information): Turn off
2350         ECF_LOOPING_CONST_OR_PURE when turning off ECF_CONST.
2351         Change const to pure if callee_copies is true rather than just
2352         turning off const.
2353         (expand_call): Turn off ECF_LOOPING_PURE_CONST_CALL and remove old
2354         way of marking pure calls.
2355         (emit_library_call_value_1): Turn off ECF_LOOPING_PURE_CONST_CALL.
2356         Remove hack that was supposed to fix pr7335 and remove old
2357         way of marking pure calls.
2358         * emit-rtl.c (emit_copy_of_insn_after): Copy RTL_CONST_CALL_P,
2359         RTL_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P.
2360         * cselib.c (cselib_process_insn): Changed CONST_OR_PURE_CALL_P to
2361         RTL_CONST_OR_PURE_CALL_P.
2362         * tree-ssa-pre.c (can_value_number_call): Fixed spacing.
2363         * loop-invariant.c (find_exits, find_invariant_bb): Changed
2364         CONST_OR_PURE_CALL_P to RTL_CONST_OR_PURE_CALL_P.
2365         * sched-deps.c (schedule_analyze): Ditto.
2366         * rtl.h (struct rtx_def): Use call field, unchanging field, and
2367         return_val field of calls to represent pure and const function info.
2368         (CONST_OR_PURE_CALL_P): Deleted macro.
2369         (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
2370         RTL_LOOPING_CONST_OR_PURE_CALL_P, RTL_CONST_OR_PURE_P): New macros.
2371         * tree-inline.c (copy_body_r): Changed TREE_READONLY_DECL_P to
2372         TREE_READONLY.
2373         * tree-optimize.c (execute_fixup_cfg): Added test for
2374         ECF_LOOPING_CONST_OR_PURE.
2375         * c-common.c (handle_pure_attribute): Changed DECL_IS_PURE to
2376         DECL_PURE_P.
2377         * tree-cfg.c (update_call_expr_flags): Do not clear tree side
2378         effects for looping pure or const calls.
2379         (verify_gimple_expr): Added verification code. 
2380         * config/alpha/alpha.c (alpha_legitimize_address,
2381         alpha_emit_xfloating_libcall): Changed CONST_OR_PURE_CALL_P to
2382         RTL_CONST_CALL_P.
2383         * config/s390/s390.c (s390_emit_tls_call_insn): Ditto.
2384         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Ditto.
2385         * config/mips/mips.c (mips_call_tls_get_addr): Ditto.
2386         * cfgrtl.c (need_fake_edge_p): Changed CONST_OR_PURE_CALL_P to
2387         RTL_CONST_OR_PURE_CALL_P.
2388         * dce.c (deletable_insn_p): Allow non looping, non sibling, pure
2389         and const calls to be deleted.
2390
2391 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
2392
2393         PR target/35714
2394         * config/i386/mmx.md (mmx_subv2sf3): New expander.
2395         (*mmx_subv2sf3): Rename from mmx_subv2sf3 insn pattern.
2396         (*mmx_eqv2sf3): Rename from mmx_eqv2sf3 insn pattern.
2397         (mmx_eqv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
2398         to handle nonimmediate operands.
2399         (*mmx_paddwd): Rename from mmx_paddwd insn pattern.
2400         (mmx_paddwd): New expander.  Use ix86_fixup_binary_operands_no_copy
2401         to handle nonimmediate operands.
2402         (*mmx_pmulhrwv4hi3): Rename from mmx_pmulhrwv4hi3 insn pattern.
2403         (mmx_pmulhrwv4hi3): New expander.  Use
2404         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2405         (*sse2_umulv1siv1di3): Rename from sse2_umulv1siv1di3 insn pattern.
2406         (sse2_umulv1siv1di3): New expander.  Use
2407         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2408         (*mmx_eq<mode>3): Rename from mmx_eq<mode>3 insn pattern.
2409         (mmx_eq<mode>3): New expander.  Use
2410         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2411         (*mmx_uavgv8qi3): Rename from mmx_uavgv8qi3 insn pattern.
2412         (mmx_uavgv8qi3): New expander.  Use
2413         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2414         (*mmx_uavgv4hi3): Rename from mmx_uavgv4hi3 insn pattern.
2415         (mmx_uavgv4hi3): New expander.  Use
2416         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2417
2418         * config/i386/sse.md
2419         (sse_movhlps_exp): New expander.  Use ix86_fixup_binary_operands
2420         to handle nonimmediate operands.
2421         (sse_movlhps_exp): New expander.  Use ix86_fixup_binary_operands
2422         to handle nonimmediate operands.
2423         (sse_loadhps_exp): New expander.  Use ix86_fixup_binary_operands
2424         to handle nonimmediate operands.
2425         (sse_loadlps_exp): New expander.  Use ix86_fixup_binary_operands
2426         to handle nonimmediate operands.
2427         (sse2_unpckhpd_exp): New expander.  Use
2428         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2429         (sse2_unpcklpd_exp): New expander.  Use
2430         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2431         (sse_loadhpd_exp): New expander.  Use ix86_fixup_binary_operands
2432         to handle nonimmediate operands.
2433         (sse_loadlpd): New expander.  Use ix86_fixup_binary_operands
2434         to handle nonimmediate operands.
2435         (*sse2_<plusminus_insn><mode>3): Rename from
2436         sse2_<plusminus_insn><mode>3 insn pattern.
2437         (sse2_<plusminus_insn><mode>3): New expander.  Use
2438         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2439         (*sse2_umulv2siv2di3): Rename from sse2_umulv2siv2di3 insn pattern.
2440         (sse2_umulv2siv2di3): New expander.  Use
2441         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2442         (*sse4_1_mulv2siv2di3): Rename from sse4_1_mulv2siv2di3 insn pattern.
2443         (sse4_1_mulv2siv2di3): New expander.  Use
2444         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2445         (*sse2_pmaddwd): Rename from sse2_pmaddwd insn pattern.
2446         (sse2_pmaddwd): New expander.  Use
2447         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2448         (*sse2_eq<mode>3): Rename from sse2_eq<mode>3 insn pattern.
2449         (sse2_eq<mode>3): New expander.  Use
2450         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2451         (*sse4_1_eqv2di3): Rename from sse4_1_eqv2di3 insn pattern.
2452         (sse4_1_eqv2di3): New expander.  Use
2453         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2454         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
2455         (sse2_uavgv16qi3): New expander.  Use
2456         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2457         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
2458         (sse2_uavgv16qi3): New expander.  Use
2459         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2460         (*sse2_uavgv8hi3): Rename from sse2_uavgv8hi3 insn pattern.
2461         (sse2_uavgv8hi3): New expander.  Use
2462         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2463         (*ssse3_pmulhrswv8hi3): Rename from ssse3_pmulhrswv8hi3 insn pattern.
2464         (ssse3_pmulhrswv8hi3): New expander.  Use
2465         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2466         (*ssse3_pmulhrswv4hi3): Rename from ssse3_pmulhrswv4hi3 insn pattern.
2467         (ssse3_pmulhrswv4hi3): New expander.  Use
2468         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2469
2470         (<sse>_vm<plusminus_insn><mode>3): Do not use ix86_binary_operator_ok.
2471         (<sse>_vmmul<mode>3): Ditto.
2472         (divv4sf3): Do not use ix86_fixup_binary_operands_no_copy.
2473         (divv2df3): Ditto.
2474         (ssse3_pmaddubsw128): Use register_operand for operand 1.
2475         (ssse3_pmaddubsw): Ditto.
2476
2477         * config/i386/i386.c (struct_builtin_description)
2478         [IX86_BUILTIN_LOADHPS]: Use CODE_FOR_sse_loadhps_exp.
2479         [IX86_BUILTIN_STOREHPS]: Use CODE_FOR_sse_loadlps_exp.
2480         [IX86_BUILTIN_LOADHPD]: Use CODE_FOR_sse2_loadhpd_exp.
2481         [IX86_BUILTIN_LOADLPD]: Use CODE_FOR_sse2_loadlpd_exp.
2482         [IX86_BUILTIN_MOVHLPS]: Use CODE_FOR_sse_movhlps_exp.
2483         [IX86_BUILTIN_MOVLHPS]: Use CODE_FOR_sse_movlhps_exp.
2484         [IX86_BUILTIN_UNPCKHPD]: Use FOR_sse2_unpckhpd_exp.
2485         [IX86_BUILTIN_UNPCKLPD]: Use FOR_sse2_unpcklpd_exp.
2486         (ix86_fixup_binary_operands): Assert that src1
2487         and src2 must have the same mode when swapped.
2488         (ix86_expand_binop_builtin): Do not use ix86_fixup_binary_operands
2489         and ix86_binary_operator_ok.  Do not force operands in registers
2490         when optimizing.
2491
2492 2008-05-07  Jan Hubicka  <jh@suse.cz>
2493
2494         * cgraph.c (dump_cgraph_node): Update.
2495         * cgraph.h (cgraph_local_info): Break out inline summary.
2496         * cgraphunit.c (cgraph_process_new_functions): Use inliner analysis
2497         hook.
2498         * ipa-inline (inline_summary): New accestor function.
2499         (cgraph_clone_inlined_nodes, cgraph_check_inline_limits,
2500         cgraph_decide_inlining, compute_inline_parameters): Update.
2501         * ipa.c (cgraph_remove_unreachable_nodes): Remove statistics.
2502
2503 2008-05-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
2504
2505         Cleanup ColdFire scheduling support and add V4 pipeline model.
2506
2507         * config/m68k/m68k.md (UNSPEC_TIE): New constant.
2508         (define_attr cpu): Add cfv4 value.
2509         (define_attr type, define_attr type1): Merge into a single 'type'
2510         attribute.  Update all uses.
2511         (define_attr opx_type, define_attr opy_type, define_attr opx_access):
2512         Rearrange and update.  Rename value 'reg' to 'Rn', add value 'FPn'.
2513         Update all uses.
2514         (define_attr opx_mem, define_attr opy_mem): Remove.
2515         (define_attr op_mem): Clean up, update comment.
2516         (define_attr size): Use specific values instead of general int.
2517         (define_attr guess, define_attr split): Remove.  Update all uses.
2518         (movdf_internal, tstsi_internal, tsthi_internal, tstqi_internal,
2519         tst<mode>_68881, pushexthisi_const, movsi_const0_68000_10,
2520         movsi_const0_68040_60, movsi_const0, movsi_cf, movstrictqi_cf,
2521         zero_extendhisi2_cf, zero_extendqisi2_cfv4, cfv4_extendhisi2,
2522         68k_extendhisi2, extendqihi2, cfv4_extendqisi2, 68k_extendqisi2,
2523         floatsi<mode>2_68881, ftrunc<mode>2_68881, ftrunc<mode>2_cf,
2524         fix<mode>qi2_68881, fix<mode>hi2_68881, fix<mode>si2_68881,
2525         adddi_dishl32, addsi3_5200, add<mode>3_floatsi_68881,
2526         add<mode>3_floathi_68881, add<mode>3_floatqi_68881,
2527         add<mode>3_68881, add<mode>3_cf, subdi_dishl32, subsi3,
2528         sub<mode>3_floatsi_68881, sub<mode>3_floathi_68881,
2529         sub<mode>3_floatqi_68881, sub<mode>3_68881, sub<mode>3_cf,
2530         mulhi3, mulhisi3, mulhisisi3_s, mulsi3_68020, mulsi3_cf,
2531         umulhisi3, mulhisisi3_z, mul<mode>3_floatsi_68881,
2532         mul<mode>3_floathi_68881, mul<mode>3_floatqi_68881, fmul<mode>3_cf,
2533         div<mode>3_cf, sqrt<mode>2_cf, abs<mode>2_cf, clzsi2,
2534         one_cmplsi2_5200, subreghi1ashrdi_const32, ashrsi3, lshrsi3,
2535         bsetmemqi, bsetmemqi_ext, bclrmemqi, bclrmemqi_ext,
2536         beq, bne, bgt, blt, bordered, bunordered, buneq, bunge, bungt, bunle,
2537         bunlt, bltgt, tablejump_internal, call, non_symbolic_call_value,
2538         symbolic_call_value_jsr, symbolic_call_value_bsr, link):
2539         Update or set attributes.
2540         (stack_tie): New fake instruction.
2541
2542         * config/m68k/m68k.h (TUNE_CFV4): New macro.
2543         (m68k_sched_attr_size): Update declaration.
2544         (m68k_sched_attr_type2): Remove.
2545         (m68k_sched_address_bypass_p, m68k_sched_indexed_address_bypass_p):
2546         Declare new bypass predicates.
2547
2548         * config/m68k/m68k.c (m68k_sched_issue_rate,
2549         m68k_sched_first_cycle_multipass_dfa_lookahead): Declare hook
2550         implementations.
2551         (TARGET_SCHED_ISSUE_RATE,
2552         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Override hooks.
2553         (override_options): Handle scheduling for ColdFire V4 core.
2554         (m68k_expand_prologue): Emit stack_tie.
2555         (enum attr_op_type): Split value 'OP_TYPE_REG' to 'OP_TYPE_RN' and
2556         'OP_TYPE_FPN'.  Update all uses.
2557         (sched_guess_p): Remove.
2558         (sched_address_type): Handle symbolic addresses.
2559         (sched_get_operand): New static function.
2560         (sched_operand_type): Merge into sched_attr_op_type.
2561         (sched_attr_op_type): Handle FP registers, handle quick constants,
2562         update.
2563         (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type): Update.
2564         (m68k_sched_attr_size): Update.  Move logic to ...
2565         (sched_get_attr_size_int): New static function.
2566         (sched_get_opxy_mem_type): New static function.
2567         (m68k_sched_attr_op_mem): Update.
2568         (m68k_sched_attr_type2): Remove.
2569         (sched_cfv4_bypass_data): New static variable.
2570         (m68k_sched_adjust_cost): Handle ColdFire V4 bypass.
2571         (m68k_sched_issue_rate): Implement scheduler hook.
2572         (struct _sched_ib: enabled_p): New field.
2573         (m68k_sched_variable_issue): Update.  Handle V4.
2574         (SCHED_DUMP_TODO, SCHED_DUMP_DONE, SCHED_DUMP_NOTHING,
2575         sched_dump_class_func_t, sched_dump_split_class,
2576         sched_dump_dfa_guess_unit_code, sched_dump_dfa_state,
2577         sched_dump_dfa_class, m68k_sched_dump): Remove.
2578         (m68k_sched_first_cycle_multipass_dfa_lookahead): Implement scheduler
2579         hook.
2580         (m68k_sched_init_global): Remove statisctics dumping, introduce
2581         sanity check that all instructions have pipeline reservations.  Handle
2582         ColdFire V4 core.
2583         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
2584         Handle ColdFire V4 core.
2585         (sched_mem_operand_p, sched_get_reg_operand, sched_get_mem_operand):
2586         New static functions.
2587         (m68k_sched_address_bypass_p): New bypass predicate.
2588         (sched_get_indexed_address_scale): New static function.
2589         (m68k_sched_indexed_address_bypass_p): New bypass predicate.
2590
2591         * cf.md: Update comments.
2592         (define_attr type2): Remove.  Use 'type' attribute instead.
2593         Update all uses.
2594         (cf_ib): Rename to cfv123_ib.  Update all uses.
2595         (cf_oep): Rename to cfv123_oep.  Update all uses.
2596         (cf_chr): Rename to cfv123_chr.  Update all uses.
2597         (cf_mem): Rename to cfv123_mem.  Update all uses.
2598         (cf_mac): Move to more appropriate place.
2599         (cfv123_guess): New automaton and cpu_unit.
2600         (cfv123_*, cfv12_*, cfv1_*, cfv2_*, cfv3_*): Use type attribute.
2601         Update uses of 'size' attribute.  Handle before reload scheduling.
2602         (cfv123_guess): New dummy reservation for unhandled instructions.
2603         (cfv4_*): Pipeline description of ColdFire V4 core.
2604         (ignore): New reservation to handle 'ignore' type.
2605
2606 2008-05-07  Ian Lance Taylor  <iant@google.com>
2607
2608         PR middle-end/36013
2609         * gimplify.c (find_single_pointer_decl_1): Don't look through
2610         indirections.
2611         (find_single_pointer_decl): Adjust comments.
2612
2613 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
2614
2615         PR middle-end/36137
2616         * fold-const.c (fold_binary): Use STRIP_SIGN_NOPS instead of
2617         STRIP_NOPS on arguments even for MIN_EXPR and MAX_EXPR.
2618
2619         PR middle-end/36106
2620         * omp-low.c (expand_omp_atomic_pipeline): Load value using the
2621         integral type rather than floating point, then VIEW_CONVERT_EXPR
2622         to the floating point type.
2623
2624 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
2625
2626         * config/i386/i386.c (ix86_expand_copysign): Force non-zero constant
2627         TFmode op0 to register.
2628
2629 2008-05-07  Alan Modra  <amodra@bigpond.net.au>
2630
2631         * c-decl.c (grokdeclarator): Comment typo.
2632
2633 2008-05-06  Aldy Hernandez  <aldyh@redhat.com>
2634
2635         * tree-flow.h: Remove prototype for computed_goto_p.
2636         * tree-cfg.c (computed_goto_p): Make static.
2637
2638 2008-05-06  H.J. Lu  <hongjiu.lu@intel.com>
2639
2640         PR target/35657
2641         * config/i386/i386.c (contains_128bit_aligned_vector_p): Renamed to ...
2642         (contains_aligned_value_p): This.  Handle _Decimal128.
2643         (ix86_function_arg_boundary): Only align _Decimal128 to its
2644         natural boundary and handle it properly.
2645
2646 2008-05-06  Martin Jambor  <mjambor@suse.cz>
2647
2648         * ipa-cp.c (ipcp_method_orig_node): Renamed to ipcp_get_orig_node.
2649         (ipcp_method_is_cloned): Renamed to ipcp_node_is_clone
2650         (ipcp_method_set_orig_node): Removed.
2651         (ipcp_cval_get_cvalue_type): Removed.
2652         (ipcp_method_get_scale): Renamed to ipcp_get_node_scale.
2653         (ipcp_method_set_scale): Renamed to ipcp_set_node_scale.
2654         (ipcp_cval_set_cvalue_type): Removed.
2655         (ipcp_cval_get_cvalue): Removed.
2656         (ipcp_cval_set_cvalue): Removed.
2657         (ipcp_type_is_const): Renamed to ipcp_lat_is_const.
2658         (ipcp_cval_equal_cvalues): Renamed to ipcp_lats_are_equal
2659         (ipcp_lats_are_equal): Changed parameters to two ipcp_lattice's
2660         (ipcp_cval_meet): Renamed to ipa_lattice_meet
2661         (ipcp_cval_changed): Changed to use ipcp_lat_is_const
2662         (ipcp_method_cval): Renamed to ipcp_get_ith_lattice
2663         (ipcp_get_ith_lattice): Changed parameters.
2664         (ipcp_cval_compute): Renamed to ipcp_lattice_from_jfunc
2665         (ipcp_lattice_from_jfunc): Changed parameters.
2666         (ipcp_redirect): Local lattice pointer instead of lattice type variable.
2667         (ipcp_method_cval_print): Added temporary variable info.
2668         (ipcp_redirect): Removed already unused local variable caller.
2669         (ipcp_redirect): New temporary variable orig_callee_info
2670         (ipcp_redirect): Removed newly unused local variable callee.
2671         (ipcp_redirect): Removed (a bit confusing) local variable type.
2672         (ipcp_insert_stage): Added local variable info.
2673         (ipcp_cval_changed): Renamed to ipcp_lattice_changed, parameters 
2674         renamed too
2675         (ipcp_formal_create): Removed.
2676         (ipcp_method_cval_set): Removed.
2677         (ipcp_propagate_stage): Renamed lattice variables.
2678         (ipcp_method_cval_set_cvalue_type): Removed.
2679         (ipcp_method_cval_print): Renamed to ipcp_print_all_lattices
2680         (ipcp_print_all_lattices): Changed printed strings to refer to 
2681         lattices rather than cvals.
2682         (ipcp_method_cval_init): Renamed to ipcp_initialize_node_lattices
2683         (ipcp_propagate_const): Changed formal parameters.
2684         (build_const_val): Changed formal parameters.
2685         (ipcp_insert_stage): Removed useless variable cvalue
2686         (build_const_val): Changed formal parameters.
2687         (ipcp_method_compute_scale): Renamed to ipcp_compute_node_scale
2688         (ipcp_after_propagate): Renamed to ipcp_change_tops_to_bottom
2689         (ipcp_callsite_param_print): Renamed to ipcp_print_all_jump_functions
2690         (ipcp_profile_mt_count_print): Renamed to ipcp_print_func_profile_counts
2691         (ipcp_print_func_profile_counts): Changed string from "method" to 
2692         "function"
2693         (ipcp_profile_cs_count_print): Renamed to ipcp_print_call_profile_counts
2694         (ipcp_profile_edge_print): Renamed to ipcp_print_edge_profiles
2695         (ipcp_profile_bb_print): Renamed to ipcp_print_bb_profiles
2696         (ipcp_structures_print): Renamed to ipcp_print_all_structures
2697         (ipcp_profile_print): Renamed to ipcp_print_profile_data
2698         (ipcp_lat_is_const): Changed parameters and made inline.
2699         (ipcp_replace_map_create): Renamed to ipcp_create_replace_map
2700         (ipcp_redirect): Renamed to ipcp_need_redirect_p
2701         (ipcp_need_redirect_p): Calls ipcp_lat_is_const instead of using 
2702         the predicate condition directly
2703         (ipcp_propagate_stage): Added local variable args. Removed local
2704         variable callee.  (Both are mere code simplifications.)
2705         (ipcp_method_dont_insert_const): Renamed to
2706         ipcp_node_not_modifiable_p.
2707         (ipcp_node_not_modifiable_p): Made inline.
2708         (ipcp_cloned_create): Renamed to ipcp_init_cloned_node
2709         (ipcp_propagate_const): Renamed to ipcp_propagate_one_const
2710         (ipcp_print_all_lattices): Removed variable cvalue
2711         (ipcp_method_scale_print): Renamed to ipcp_function_scale_print
2712         Updated comments.
2713
2714 2008-05-06  Olivier Hainque  <hainque@adacore.com>
2715
2716         * tree-sra.c (try_instantiate_multiple_fields): Early return
2717         if field has POINTER_TYPE.
2718
2719 2008-05-06  Kai Tietz  <kai.tietz@onevision.com>
2720
2721         * config/i386/i386.c (output_set_got): Fix for x86_64 output_emit_asm
2722         by using 'q' specifier for instruction.
2723         (ix86_file_end): Replaced case TARGET_64BIT_MS_ABI by TARGET_64BIT.
2724
2725 2008-05-06  Anatoly Sokolov <aesok@post.ru>
2726
2727         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
2728         Change mode of zero_extract from QImode to HImode.
2729         (sign bit tests peepholes): (Ditto.).
2730
2731 2008-05-06  Uros Bizjak  <ubizjak@gmail.com>
2732
2733         * config/i386/mmx.md: Remove double backslashes from asm templates.
2734         (*mmx_addv2sf3): Rename from mmx_addv2sf3 insn pattern.
2735         (mmx_addv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
2736         to handle nonimmediate operands.
2737         (*mmx_mulv2sf3): Rename from mmx_mulv2sf3 insn pattern.
2738         (mmx_mulv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
2739         to handle nonimmediate operands.
2740         (*mmx_<code>v2sf3_finite): New insn pattern.
2741         (*mmx_<code>v2sf3): Rename from mmx_<code>v2sf3 insn pattern.
2742         (mmx_<code>v2sf3): New expander.  Use
2743         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2744         (mmx_<plusminus_insn><mode>3): New expander.  Use
2745         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2746         (*mmx_<plusminus_insn><mode>3): New insn pattern.
2747         (mmx_add<mode>3): Removed.
2748         (mmx_ssadd<mode>3): Ditto.
2749         (mmx_usadd<mode>3): Ditto.
2750         (mmx_sub<mode>3): Ditto.
2751         (mmx_sssub<mode>3): Ditto.
2752         (mmx_ussub<mode>3): Ditto.
2753         (*mmx_mulv4hi3): Rename from mmx_mulv4hi3 insn pattern.
2754         (mmx_mulv4hi3): New expander.  Use ix86_fixup_binary_operands_no_copy
2755         to handle nonimmediate operands.
2756         (*mmx_smulv4hi3_highpart): Rename from mmx_smulv4hi3_highpart
2757         insn pattern.
2758         (mmx_smulv4hi3_highpart): New expander.  Use
2759         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2760         (*mmx_umulv4hi3_highpart): Rename from mmx_umulv4hi3_highpart
2761         insn pattern.
2762         (mmx_umulv4hi3_highpart): New expander.  Use
2763         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2764         (*mmx_<code>v4hi3): Rename from mmx_<code>v4hi3 insn pattern.
2765         (mmx_<code>v4hi3): New expander.  Use
2766         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2767         (*mmx_<code>v8qi3): Rename from mmx_<code>v8qi3 insn pattern.
2768         (mmx_<code>v8qi3): New expander.  Use
2769         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2770         (*mmx_<code><mode>3): Rename from mmx_<code><mode>3 insn pattern.
2771         (mmx_<code><mode>3): New expander.  Use
2772         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2773
2774 2008-05-05  Jan Hubicka  <jh@suse.cz>
2775
2776         PR tree-optimization/36118
2777         * passes.c (pass_init_dump_file): Fix dump header.
2778
2779 2008-05-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2780
2781         PR middle-end/36141
2782         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't create
2783         VCE for function decls.
2784
2785 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
2786
2787         * config/i386/sse.md (sse2_<plusminus_insn><mode>3): Fix a typo.
2788
2789 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
2790
2791         * config/i386/i386.md (sat_plusminus): New.
2792         (plusminus_insn): Likewise.
2793         (plusminus_mnemonic): Likewise.
2794         (addsub): Removed.
2795         (comm): Add ss_plus, us_plus, ss_minus and us_minus.
2796         (*<addsub><mode>3_cc_overflow): Renamed to ...
2797         (*<plusminus_insn><mode>3_cc_overflow): This.
2798         (*<addsub>si3_zext_cc_overflow): Renamed to ...
2799         (*<plusminus_insn>si3_zext_cc_overflow): This.
2800
2801         * config/i386/sse.md (<addsub><mode>3): Renamed to ...
2802         (<plusminus_insn><mode>3): This.
2803         (*<addsub><mode>3): Renamed to ...
2804         (*<plusminus_insn><mode>3): This.
2805         (<sse>_vm<addsub><mode>3): Renamed to ...
2806         (<sse>_vm<plusminus_insn><mode>3): This.
2807         (sse3_h<addsub>v4sf3): Renamed to ...
2808         (sse3_h<plusminus_insn>v4sf3): This.
2809         (sse3_h<addsub>v2df3): Renamed to ...
2810         (sse3_h<plusminus_insn>v2df3): This.
2811         (<plusminus_insn><mode>3): New.
2812         (*<plusminus_insn><mode>3): Likewise.
2813         (sse2_<plusminus_insn><mode>3): Likewise.
2814         (add<mode>): Removed.
2815         (*add<mode>3): Likewise.
2816         (sse2_ssadd<mode>3): Likewise.
2817         (sse2_usadd<mode>3): Likewise.
2818         (sub<mode>3): Likewise.
2819         (*sub<mode>3): Likewise.
2820         (sse2_sssub<mode>3): Likewise.
2821         (sse2_ussub<mode>3): Likewise.
2822
2823 2008-05-05  Benjamin Kosnik  <bkoz@redhat.com>
2824
2825         * gthr-single.h: Add in required interface elements as per gthr.h.
2826         Add stub types for __gthread_key_t, __gthread_once_t. Add defines
2827         for __GTHREAD_ONCE_INIT, __GTHREAD_RECURSIVE_MUTEX_INIT.
2828         Generalize UNUSED macro. 
2829         (__gthread_once): Add.
2830         (__gthread_key_create): Add.
2831         (__gthread_key_delete): Add.
2832         (__gthread_getspecific): Add.
2833         (__gthread_setspecific): Add.
2834         
2835 2008-05-05  Andrew Pinski  <Andrew.Pinski@playstation.sony.com>
2836
2837         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If we have
2838         the same size types for the indirect reference on the rhs, then
2839         create a VCE.
2840
2841 2008-05-05  Uros Bizjak  <ubizjak@gmail.com>
2842
2843         * config/i386/i386.md
2844         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Use only
2845         one insn template instead of template series.
2846         (*xordi_1_rex64): Ditto.
2847         (*xordi_2_rex64): Ditto.
2848
2849 2008-05-05  Ira Rosen  <irar@il.ibm.com>
2850
2851         PR tree-optimization/36119
2852         * tree-vect-transform.c (vectorizable_assignment): Set NCOPIES to 1
2853         in case of SLP.
2854
2855 2008-06-04  Jan Hubicka  <jh@suse.cz>
2856
2857         tree-optimization/36100
2858         * tree-pass.h (pass_O0_always_inline): Declare.
2859         * ipa-inline.c (inline_transform): Remove dead code.
2860         (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
2861         pass_O0_always_inline): New.
2862         * passes.c (init_optimization_passes): Add pass_O0_always_inline.
2863
2864 2008-05-04  Kai Tietz  <kai.tietz@onevision.com>
2865
2866         * config/i386/i386.c (x86_output_mi_thunk): Use movq alternative
2867         mnemonic in this_param move for TARGET_64BIT.
2868
2869 2008-05-04  Uros Bizjak  <ubizjak@gmail.com>
2870
2871         * config/i386/i386.md (*strmovsi_1): Simplify asm alternatives.
2872         (*strmovsi_rex_1): Ditto.
2873         (*strsetsi_1): Ditto.
2874         (*strsetsi_rex_1): Ditto.
2875
2876         (add<mode>cc): Macroize expander from addqicc, addhicc, addsicc and
2877         adddicc expanders using SWI mode iterator.
2878
2879 2008-05-04  H.J. Lu  <hongjiu.lu@intel.com>
2880
2881         PR target/36121
2882         * config/i386/i386.c (ix86_expand_special_args_builtin): Remove three
2883         argument handling.
2884
2885 2008-05-04  David S. Miller  <davem@davemloft.net>
2886
2887         * config.gcc (sparc*-*-*): Always set need_64bit_hwint to yes.
2888         (sparc*-*-linux*): Use linux.h in tm_file.
2889         (sparc-*-linux*): If 'enabled_targets' is 'all', build a bi-arch
2890         compiler defaulting to 32-bit.
2891         (sparc*-*-*): Remove explicit target settings of need_64bit_hwint,
2892         no longer needed.
2893         * config/sparc/linux.h: Remove definitions now obtained
2894         properly from linux.h
2895         * config/sparc/linux64.h: Likewise.
2896         (ASM_CPU_DEFAULT_SPEC): Change this to ASM_CPU64_DEFAULT_SPEC, we
2897         don't want this setting for 32-bit builds in a biarch compiler.
2898         * doc/install.texi: Add sparc-linux to list of targets
2899         supporting --enable-targets=all.
2900
2901 2008-05-03  Andrew Pinski  <pinskia@gmail.com>
2902
2903         * Makefile.in (tree-ssa-phiprop.o): Fix dependencies.
2904
2905 2008-05-03  H.J. Lu  <hongjiu.lu@intel.com>
2906
2907         * config/i386/i386.c (ix86_builtin_type): Move V4SI_FTYPE_V4SF
2908         after V4SI_FTYPE_V8HI.
2909         (ix86_init_mmx_sse_builtins): Move case V4HI_FTYPE_V4HI after
2910         case V4SI_FTYPE_V2DF.
2911
2912 2008-05-03  Kenneth Zadeck  <zadeck@naturalbridge.com>
2913
2914         * doc/invoke.texi (max-flow-memory-locations): Removed.
2915         * params.def (PARAM_MAX_FLOW_MEMORY_LOCATIONS): Removed.
2916         
2917 2008-05-03  Richard Guenther  <rguenther@suse.de>
2918
2919         PR middle-end/34973
2920         * opts.c (set_Wstrict_aliasing): Handle the turn-off case.
2921
2922 2008-05-02  David S. Miller  <davem@davemloft.net>
2923
2924         * config.gcc (need_64bit_hwint): Document libcpp dependency.
2925
2926 2008-05-02  Simon Baldwin <simonb@google.com>
2927
2928         PR bootstrap/36108
2929         * c-common.h (warn_array_subscript_range): Removed.
2930         * c-common.c (warn_array_subscript_range): Ditto.
2931         * tree-vrp.c (check_array_ref): Revert to ignoring arrays with size 2.
2932         * c-typeck.c (build_array_ref): Remove warn_array_subscript_range.
2933
2934 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
2935
2936         * config/i386/i386.c (ix86_special_builtin_type): New.
2937         (bdesc_special_args): Likewise.
2938         (ix86_expand_special_args_builtin): Likewise.
2939         (ix86_init_mmx_sse_builtins): Updated.
2940         (ix86_expand_builtin): Updated.
2941         (ix86_expand_store_builtin): Removed.
2942         (ix86_expand_unop_builtin): Likewise.
2943
2944         * config/i386/mm3dnow.h (__v2sf): Moved to ...
2945         * config/i386/mmintrin.h (__v2sf): Here.
2946
2947         * config/i386/xmmintrin.h (_mm_loadh_pi): Replace __v2si with
2948         const __v2sf.
2949         (_mm_loadl_pi): Likewise.
2950         (_mm_storeh_pi): Replace __v2si with __v2sf.
2951         (_mm_storel_pi): Likewise.
2952
2953         * doc/extend.texi: Correct __builtin_ia32_loadhps,
2954         __builtin_ia32_loadlps, __builtin_ia32_storehps,
2955         __builtin_ia32_storelps, __builtin_ia32_loadhpd and
2956         __builtin_ia32_loadlpd.
2957
2958 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
2959
2960         * config/i386/i386.c (ix86_builtin_type): Add FLOAT_FTYPE_FLOAT,
2961         V4SF_FTYPE_V4SF_VEC_MERGE and V2DF_FTYPE_V2DF_VEC_MERGE.
2962         (bdesc_args): Updated.  Add scalar SSE builtins with vec_merge.
2963         (ix86_init_mmx_sse_builtins): Updated.
2964         (ix86_expand_args_builtin): Likewise.
2965         (ix86_expand_builtin): Likewise.
2966         (ix86_expand_unop1_builtin): Renamed to ...
2967         (ix86_expand_unop_vec_merge_builtin): This.
2968
2969 2008-05-01  Jan Hubicka  <jh@suse.cz>
2970
2971         PR bootstrap/36100
2972         * ipa-inline.c (inline_generate_summary): Make static.
2973         (inline_transform): Do not call inlining at -O0; make static.
2974         * passes.c (execute_todo): Add sanity check.
2975         (execute_one_ipa_transform_pass): Execute proper flags.
2976
2977 2008-05-01  Eric Botcazou  <ebotcazou@adacore.com>
2978
2979         * tree.h (TYPE_NONALIASED_COMPONENT): Expand comment.
2980         (DECL_NONADDRESSABLE_P): Likewise.
2981         * alias.c (record_component_aliases): Fix comment.
2982
2983 2008-05-01  Simon Baldwin <simonb@google.com>
2984
2985         * c-common.h (warn_array_subscript_range): New function.
2986         * c-common.c (warn_array_subscript_range): Ditto.
2987         * tree-vrp.c (check_array_ref): Corrected code to agree with
2988         comment, ignoring only arrays of size 0 or size 1.
2989         * c-typeck.c (build_array_ref): Call warn_array_subscript_range.
2990
2991 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
2992
2993         * config/i386/i386.c (ix86_builtin_type): Replace
2994         DI_FTYPE_DI_DI_INT with V1DI2DI_FTYPE_V1DI_V1DI_INT.
2995         (bdesc_args): Updated.
2996         (ix86_init_mmx_sse_builtins): Likewise.
2997         (ix86_expand_args_builtin): Likewise.
2998
2999         * config/i386/tmmintrin.h (_mm_alignr_pi8): Replace long long
3000         with __v1di.
3001
3002         * doc/extend.texi: Correct __builtin_ia32_palignr.
3003
3004 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
3005
3006         PR target/36095
3007         * config/i386/i386.c (bdesc_crc32): Removed.
3008         (ix86_expand_crc32): Likewise.
3009         (ix86_builtin_type): Replace V2DI2TI_FTYPE_V2DI2TI_INT with
3010         V2DI2TI_FTYPE_V2DI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT with
3011         V2DI2TI_FTYPE_V2DI_V2DI_INT.  Add UINT64_FTYPE_UINT64_UINT64,
3012         UINT_FTYPE_UINT_UINT, UINT_FTYPE_UINT_USHORT and
3013         UINT_FTYPE_UINT_UCHAR.
3014         (bdesc_args): Updated. Add crc32 builtins.
3015         (ix86_init_mmx_sse_builtins): Updated.
3016         (ix86_expand_args_builtin): Updated to support subreg.
3017
3018         * doc/extend.texi: Correct __builtin_ia32_crc32di.
3019
3020 2008-05-01  Jan Hubicka  <jh@suse.cz>
3021
3022         * tree-pass.h (opt_pass): Add IPA_PASS.
3023         (varpool_node, cgraph_node): Forward declare.
3024         (ipa_opt_pass): Define.
3025         (pass_ipa_inline): Turn into ipa_opt_pass.
3026         (pass_apply_inline): Remove.
3027         * ipa-inline.c (pass_ipa_inline): Turn into ipa_opt_pass.
3028         (apply_inline): Turn into ....
3029         (inline_transform): ... this one.
3030         (inline_generate_summary): New function.
3031         (pass_apply_inline): Remove.
3032         * function.h (ipa_opt_pass): Forward declare structure; typedef;
3033         vector.
3034         (struct function): Add ipa_transforms_to_apply.
3035         * passes.c (register_one_dump_file): Work on IPA_PASS.
3036         (init_optimization_passes): Remove pass_inline_parameters and
3037         pass_apply_inline.
3038         (pass_init_dump_file, pass_fini_dump_file): Break out from ....
3039         (execute_one_pass) ... here; apply transforms when possible.
3040         (add_ipa_transform_pass, execute_ipa_summary_asses,
3041         execute_one_ipa_transform_pass): New.
3042         (execute_ipa_pass_list): Update for IPA_PASS type.
3043
3044 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
3045
3046         * config/i386/i386.c (ix86_builtin_type): Add
3047         V2DI_FTYPE_V2DI_V16QI, V2DI_FTYPE_V2DI_UINT_UINT and
3048         V2DI_FTYPE_V2DI_V2DI_UINT_UINT.
3049         (bdesc_args): Add SSE4a builtins.
3050         (ix86_init_mmx_sse_builtins): Updated.
3051         (ix86_expand_args_builtin): Likewise.
3052         (ix86_expand_builtin): Likewise.
3053
3054 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
3055
3056         * config/i386/i386.c (ix86_builtin_type): Add
3057         V8HI_FTYPE_V8HI_V8HI_COUNT, V8HI_FTYPE_V8HI_SI_COUNT,
3058         V4SI_FTYPE_V4SI_V4SI_COUNT, V4SI_FTYPE_V4SI_SI_COUNT,
3059         V4HI_FTYPE_V4HI_V4HI_COUNT, V4HI_FTYPE_V4HI_SI_COUNT,
3060         V2DI_FTYPE_V2DI_V2DI_COUNT, V2DI_FTYPE_V2DI_SI_COUNT,
3061         V2SI_FTYPE_V2SI_V2SI_COUNT, V2SI_FTYPE_V2SI_SI_COUNT,
3062         V1DI_FTYPE_V1DI_V1DI_COUNT, V1DI_FTYPE_V1DI_SI_COUNT,
3063         V8HI_FTYPE_V8HI_INT, V4SI_FTYPE_V4SI_INT, V4HI_FTYPE_V4HI_INT,
3064         V2DI2TI_FTYPE_V2DI2TI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT
3065         and DI_FTYPE_DI_DI_INT.
3066         (bdesc_args): Add MMX/SSE shift, shuffle and palignr builtins.
3067         (ix86_init_mmx_sse_builtins): Updated.
3068         (ix86_expand_args_builtin): Likewise.
3069         (ix86_expand_builtin): Likewise.
3070         (ix86_expand_binop_imm_builtin): Removed.
3071
3072         * doc/extend.texi: Correct __builtin_ia32_palignr128.
3073
3074 2008-04-30  Richard Guenther  <rguenther@suse.de>
3075
3076         PR tree-optimization/32921
3077         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Disambiguate with TBAA.
3078
3079 2008-04-30  Richard Sandiford  <rsandifo@nildram.co.uk>
3080
3081         * config/arm/arm.c (arm_unwind_emit): Use
3082         crtl->all_throwers_are_sibcalls instead of
3083         cfun->all_throwers_are_sibcalls.
3084         (arm_output_fn_unwind): Likewise.
3085         * config/frv/frv.c (frv_stack_info): Use crtl->uses_pic_offset_table
3086         instead of cfun->uses_pic_offset_table.
3087         (frv_expand_prologue): Likewise.
3088         (frv_frame_pointer_required): Likewise.
3089         (frv_expand_fdpic_call): Likewise.
3090         (frv_emit_movsi): Likewise.
3091         * config/iq2000/iq2000.c (iq2000_expand_prologue): Use
3092         cfun->returns_pcc_struct instead of
3093         current_function_returns_pcc_struct.
3094         * config/m32c/m32c.c (need_to_save): Use crtl->calls_eh_return
3095         instead of cfun->calls_eh_return.
3096         (m32c_pushm_popm): Likewise.
3097         * config/xtensa/xtensa.h (cfun->calls_alloca): Remove bogus
3098         "extern" declaration.
3099
3100 2008-04-30  Richard Guenther  <rguenther@suse.de>
3101
3102         PR tree-optimization/21636
3103         * tree-ssa-ccp.c (ccp_fold): Handle &p->x with p being a
3104         constant address.
3105         (evaluate_stmt): Print the likely value.
3106         (ccp_visit_stmt): Avoid excessive vertical spacing.
3107
3108 2008-04-30  Rafael Espindola  <espindola@google.com>
3109
3110         * builtins.c (fold_call_expr): Return realret.
3111         * tree-ssa-threadedge.c
3112         (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
3113         __builtin_object_size.
3114
3115 2008-04-30  Seongbae Park  <seongbae.park@gmail.com>
3116
3117         * gcc.c (wrapper_string): New variable.
3118         (insert_wrapper): New function.
3119         (execute): New option -wrapper.
3120         * doc/invoke.texi (Overall Options): New driver option -wrapper.
3121
3122 2008-04-30  Nathan Froyd  <froydnj@codesourcery.com>
3123
3124         * config/rs6000/crtresgpr.asm, config/rs6000/crtresxgpr.asm,
3125         config/rs6000/crtsavgpr.asm, config/rs6000/crtresfpr.asm,
3126         config/rs6000/crtresxfpr.asm, config/rs6000/crtsavfpr.asm: Break out
3127         from...
3128         * config/rs6000/crtsavres.asm: ...here.  Remove unneeded file.
3129         * config/rs6000/e500crtres32gpr.asm, config/rs6000/e500crtres64gpr.asm,
3130         config/rs6000/e500crtres64gprctr.asm,
3131         config/rs6000/e500crtrest32gpr.asm, config/rs6000/e500crtrest64gpr.asm,
3132         config/rs6000/e500crtresx32gpr.asm, config/rs6000/e500crtresx64gpr.asm,
3133         config/rs6000/e500crtsav32gpr.asm, config/rs6000/e500crtsav64gpr.asm,
3134         config/rs6000/e500crtsav64gprctr.asm,
3135         config/rs6000/e500crtsavg32gpr.asm, config/rs6000/e500crtsavg64gpr.asm,
3136         config/rs6000/e500crtsavg64gprctr.asm: New files.
3137         * config/rs6000/t-ppccomm: Add build rules for new files.
3138         (LIB2FUNCS_STATIC_EXTRA): Add new files.
3139         * config/rs6000/t-netbsd: Add build rules for new files.
3140         (LIB2FUNCS_STATIC_EXTRA): New variable.
3141         * config/rs6000/sysv4.h (ENDFILE_SPEC): Don't include crtsavres.o
3142         (CRTSAVRES_DEFAULT_SPEC): Likewise.
3143         * config/rs6000/netbsd.h (ENDFILE_SPEC): Likewise.
3144
3145 2008-04-30  H.J. Lu  <hongjiu.lu@intel.com>
3146
3147         * config/i386/i386.c (ix86_builtin_type): Add
3148         FLOAT128_FTYPE_FLOAT128_FLOAT128, V16QI_FTYPE_V16QI_V16QI,
3149         V16QI_FTYPE_V8HI_V8HI, V8QI_FTYPE_V8QI_V8QI,
3150         V8QI_FTYPE_V4HI_V4HI, V8HI_FTYPE_V8HI_V8HI,
3151         V8HI_FTYPE_V16QI_V16QI, V8HI_FTYPE_V4SI_V4SI,
3152         V4SI_FTYPE_V4SI_V4SI, V4SI_FTYPE_V8HI_V8HI,
3153         V4SI_FTYPE_V4SF_V4SF, V4SI_FTYPE_V2DF_V2DF,
3154         V4HI_FTYPE_V4HI_V4HI, V4HI_FTYPE_V8QI_V8QI,
3155         V4HI_FTYPE_V2SI_V2SI, V4SF_FTYPE_V4SF_V4SF,
3156         V4SF_FTYPE_V4SF_V4SF_SWAP, V4SF_FTYPE_V4SF_V2SI,
3157         V4SF_FTYPE_V4SF_V2DF, V4SF_FTYPE_V4SF_DI,
3158         V4SF_FTYPE_V4SF_SI, V2DI_FTYPE_V2DI_V2DI,
3159         V2DI_FTYPE_V16QI_V16QI, V2DI_FTYPE_V4SI_V4SI,
3160         V2DI_FTYPE_V2DF_V2DF, V2SI_FTYPE_V2SI_V2SI,
3161         V2SI_FTYPE_V4HI_V4HI, V2SI_FTYPE_V2SF_V2SF,
3162         V2DF_FTYPE_V2DF_V2DF, V2DF_FTYPE_V2DF_V2DF_SWAP,
3163         V2DF_FTYPE_V2DF_V4SF, V2DF_FTYPE_V2DF_DI,
3164         V2DF_FTYPE_V2DF_SI, V2SF_FTYPE_V2SF_V2SF,
3165         V1DI_FTYPE_V1DI_V1DI, V1DI_FTYPE_V8QI_V8QI and
3166         V1DI_FTYPE_V2SI_V2SI.
3167         (bdesc_2arg): Moved to ...
3168         (bdesc_args): Here.
3169         (ix86_init_mmx_sse_builtins): Updated.
3170         (ix86_expand_args_builtin): Updated.  Take a pointer
3171         to const struct builtin_description.  Handle comparison
3172         builtin functions.
3173         (ix86_expand_sse_compare): Take a new argument for swapping operands.
3174         (ix86_expand_builtin): Updated.
3175
3176         * config/i386/sse.md (ssse3_pmaddubswv8hi3): Renamed to ...
3177         (ssse3_pmaddubsw128): This.
3178         (ssse3_pmaddubswv4hi3): Renamed to ...
3179         (ssse3_pmaddubsw): This.
3180
3181         * doc/extend.texi (__builtin_ia32_packsswb128): Correct prototype.
3182         (__builtin_ia32_packssdw128): Likewise.
3183         (__builtin_ia32_packuswb128): Likewise.
3184         (__builtin_ia32_pmaddubsw): Likewise.
3185         (__builtin_ia32_pmaddubsw128): Likewise.
3186
3187 2008-04-30  Richard Guenther  <rguenther@suse.de>
3188
3189         PR tree-optimization/14847
3190         * tree-ssa-ifcombine.c (get_name_for_bit_test): New helper function.
3191         (recognize_bits_test): Use it.
3192         (recognize_single_bit_test): Likewise.
3193
3194 2008-04-30  Martin Jambor  <mjambor@suse.cz>
3195
3196         * ipa-cp.c (ipcp_init_stage): Calls ipa_set_called_with_variable_arg
3197         instead of setting number of formal parameters to zero.
3198         (ipcp_init_stage): Do not set the number of actual parameters to zero 
3199         either.
3200         (ipcp_propagate_stage): Explicitly skipping all calls to nodes
3201         which are called with variable number of arguments.
3202         (ipcp_insert_stage): Explicitely skipping all nodes which are
3203         called with variable number of arguments.
3204         (ipcp_callsite_param_print): Skipps callsites to nodes with varaible 
3205         number of parameters.
3206
3207         * ipa-prop.h (struct ipa_node_params): Added flag
3208         called_with_var_arguments
3209         (ipa_set_param_count): Added.  Changed sole setter to use it.
3210         (ipa_get_param_count): Added.  All readers of param_count
3211         converted to use it instead.
3212         (ipa_set_called_with_variable_arg): Added.
3213         (ipa_is_called_with_var_arguments): Added.
3214         (ipa_get_ith_param): Added.  All readers of param_decls converted
3215         to use it instead.
3216         (ipa_set_cs_argument_count): Added, sole writer to argument_count 
3217         changed to use it. 
3218         (ipa_get_cs_argument_count): Added, all readers of argument_count
3219         changed to cal it.
3220         (ipa_get_ith_jump_func): Added. Accessors of jump values changed 
3221         to use it.
3222         
3223         * ipa-prop.h (struct ipcp_formal): Renamed to ipcp_lattice
3224         (struct ipcp_lattice): Renamed cval_type to type
3225         (struct ipa_node_params): ipcp_cval renamed to ipcp_lattices
3226
3227         * ipa-cp.c (ipcp_cval_get_cvalue): Changed return value to tree
3228         (ipcp_cval_set_cvalue): Changed type of parameter value to tree
3229         (ipcp_insert_stage): Changed the type of variable cvalue to tree
3230         (ipcp_replace_map_create): Changed the type of parameter cvalue to tree
3231         (build_const_val): Changed the type of parameter cvalue to tree
3232         (ipcp_propagate_const): Changed the type of parameter cvalue to tree
3233         (ipcp_method_cval_set_cvalue_type): Renamed parameter cval_type1 to type
3234         
3235         * ipa-prop.h (struct ipcp_formal): Replaced cvalue with tree called 
3236         constant 
3237
3238         * ipa-prop.c (ipa_methodlist_init): Renamed to ipa_init_func_list
3239         (ipa_methodlist_not_empty): Removed, the sole user now checks directly
3240         (ipa_add_method): Renamed to ipa_push_func_to_list
3241         (ipa_remove_method): Renamed to ipa_pop_func_from_list
3242         (ipa_callsite_param_count): Removed.
3243         (ipa_callsite_param_count_set): Removed.
3244         (ipa_callsite_param): Removed.
3245         (ipa_callsite_callee): Removed.
3246         (ipa_callsite_compute_param): Renamed to ipa_compute_jump_functions
3247         (ipa_callsite_compute_count): Renamed to ipa_count_arguments
3248         (ipa_method_formal_count): Removed.
3249         (ipa_method_formal_count_set): Removed.
3250         (ipa_method_get_tree): Removed.
3251         (ipa_method_tree_map_create): Removed.
3252         (ipa_method_compute_tree_map): Renamed to ipa_create_param_decls_array
3253         (ipa_create_param_decls_array): Creates the array itself
3254         (ipa_create_param_decls_array): Temporary variable info instead of 
3255         a few dereferences.
3256         (ipa_method_formal_compute_count): Renamed to ipa_count_formal_params
3257         (ipa_method_compute_modify): Renamed to ipa_detect_param_modifications
3258         (get_type): Removed.
3259         (ipa_jf_get_info_type): Removed.
3260         (ipa_node_create): Renamed to ipa_create_node_params
3261         (ipa_free): Renamed to ipa_free_all_node_params
3262         (ipa_nodes_create): Renamed to ipa_create_all_node_params
3263         (ipa_edges_create): Renamed to ipa_create_all_edge_args
3264         (ipa_edges_free): Renamed to ipa_free_all_edge_args
3265         (ipa_nodes_free): Integrated into ipa_free_all_node_params and removed
3266         (ipa_free_all_node_params): Deallocation to jump_functions moved to 
3267         ipa_free_all_edge_args
3268         (ipa_method_tree_print): Renamed to ipa_print_all_tree_maps
3269         (ipa_method_modify_print): Renamed to ipa_print_all_params_modified
3270         (ipa_create_methodlist_node): Removed.
3271         (ipa_methodlist_method): Removed.
3272         (ipa_methodlist_method_set): Removed.
3273         (ipa_methodlist_next_method): Removed.
3274         (ipa_methodlist_next_method_set): Removed.
3275         (ipa_method_is_modified): Removed.
3276         (ipa_method_modify_create): Removed.
3277         (ipa_method_modify_init): Temporary variable info instead of a few 
3278         dereferences.
3279         (ipa_detect_param_modifications): Temporary variable info instead of 
3280         a few dereferences.
3281         (ipa_compute_jump_functions): Temporary variable info instead of 
3282         a few dereferences.
3283         (ipa_method_modify_set): Removed.
3284         (ipa_method_tree_map): Renamed to ipa_get_param_decl_index
3285         (ipa_get_param_decl_index): Now accepts struct ipa_node_params rather 
3286         than craph_node as the first parameter.
3287         (ipa_method_modify_stmt): Renamed to ipa_check_stmt_modifications
3288         (ipa_method_modify_init): Removed.
3289         (ipa_compute_jump_functions): Added a temp variable instead of 
3290         repeatadly dereferencing the cgraph_edge.aux pointer
3291         (ipa_callsite_param_set_type): Removed.
3292         (ipa_compute_jump_functions): i renamed to index and moved to 
3293         an inner block
3294         (ipa_callsite_param_set_info_type_formal): Removed.
3295         (ipa_callsite_param_set_info_type): Removed.
3296         (ipa_callsite_param_map_create): Removed.
3297         (ipa_callsite_tree): Removed.
3298         (ipa_callsite_caller): Removed.
3299         (ipa_pop_func_from_list): return_method removed to return_func
3300
3301         * ipa-prop.h (enum cvalue_type): Renamed to ipa_lattice_type,
3302         prefixed all values with IPA_. Changed all users.
3303         (enum jump_func_type): Rnamed UNKNOWN_IPATYPE to IPA_UNKNOWN, 
3304         CONST_IPATYPE to IPA_CONST, CONST_IPATYPE_REF to IPA_CONST_REF 
3305         and FORMAL_IPATYPE IPA_PASS_THROUGH. 
3306         (union parameter_info): Renamed to jump_func_value.
3307         (union jump_func_value): Renamed value to constant
3308         (struct ipa_jump_func): Renamed info_type to value
3309         (struct ipa_node): Renamed to ipa_node_params
3310         (struct ipa_node_params): Renamed ipa_arg_num to param_count
3311         (struct ipa_node_params): Renamed ipa_param_tree to param_decls
3312         (struct ipa_node_params): Renamed ipa_mod to modified_flags
3313         (struct ipa_edge): Renamed to ipa_edge_args
3314         (struct ipa_edge_args): Renamed ipa_param_num to argument_count
3315         (struct ipa_edge_args): Renamed ipa_param_map to jump_functions
3316         (struct ipa_methodlist): Renamed to ipa_func_list
3317         (struct ipa_func_list): method_p renamed to node, next_method
3318         renamed to next
3319         (ipa_methodlist_p): Removed, switched all users to struct pointer
3320         (IS_VALID_TREE_MAP_INDEX): Renamed to IS_VALID_JUMP_FUNC_INDEX
3321
3322 2008-04-30  Alan Modra  <amodra@bigpond.net.au>
3323
3324         * config/rs6000/rs6000.c (ALWAYS_RESTORE_ALTIVEC_BEFORE_POP): Define.
3325         (rs6000_emit_epilogue): Use backchain to restore only when we
3326         have a large frame.  Make use of frame pointer to restore if we
3327         have one.  Handle ALWAYS_RESTORE_ALTIVEC_BEFORE_POP.
3328
3329 2008-04-29  Paolo Bonzini  <bonzini@gnu.org>
3330
3331         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
3332         Add mode to zero_extract.
3333         (sign bit tests peepholes): (Ditto.).
3334
3335 2008-04-29  H.J. Lu  <hongjiu.lu@intel.com>
3336
3337         * config/i386/i386.c (ix86_builtins): Replace Prescott New
3338         Instructions in comments with SSE3.
3339         (ix86_builtin_type): This.  Add FLOAT128_FTYPE_FLOAT128,
3340         INT64_FTYPE_V4SF, INT64_FTYPE_V2DF, INT_FTYPE_V16QI,
3341         INT_FTYPE_V8QI, INT_FTYPE_V4SF, INT_FTYPE_V2DF,
3342         V16QI_FTYPE_V16QI, V8HI_FTYPE_V8HI, V8HI_FTYPE_V16QI,
3343         V8QI_FTYPE_V8QI, V4SI_FTYPE_V4SI, V4SI_FTYPE_V16QI,
3344         V4SI_FTYPE_V4SF, V4SI_FTYPE_V8HI, V4SI_FTYPE_V2DF,
3345         V4HI_FTYPE_V4HI, V4SF_FTYPE_V4SF, V4SF_FTYPE_V4SI,
3346         V4SF_FTYPE_V2DF, V2DI_FTYPE_V2DI, V2DI_FTYPE_V16QI,
3347         V2DI_FTYPE_V8HI, V2DI_FTYPE_V4SI, V2DF_FTYPE_V2DF,
3348         V2DF_FTYPE_V4SI, V2DF_FTYPE_V4SF, V2DF_FTYPE_V2SI,
3349         V2SI_FTYPE_V2SI, V2SI_FTYPE_V4SF, V2SI_FTYPE_V2SF,
3350         V2SI_FTYPE_V2DF, V2SF_FTYPE_V2SF and V2SF_FTYPE_V2SI.
3351         (bdesc_sse_args): Renamed to ...
3352         (bdesc_args): This.  Add IX86_BUILTIN_PF2ID, IX86_BUILTIN_PFRCP,
3353         IX86_BUILTIN_PFRSQRT, IX86_BUILTIN_PI2FD, IX86_BUILTIN_PF2IW,
3354         IX86_BUILTIN_PSWAPDSI, IX86_BUILTIN_PSWAPDSF and
3355         IX86_BUILTIN_FABSQ.
3356         (bdesc_1arg): Moved to ...
3357         (bdesc_args): Here.
3358         (ix86_init_mmx_sse_builtins): Updated.  Replace Prescott New
3359         Instructions in comments with SSE3.
3360         (ix86_expand_sse_operands_builtin): Renamed to ...
3361         (ix86_expand_args_builtin): This.  Updated.
3362         (ix86_expand_unop1_builtin): Update comments.
3363         (ix86_expand_builtin): Updated.
3364
3365 2008-04-29  Richard Guenther  <rguenther@suse.de>
3366
3367         PR tree-optimization/36078
3368         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
3369         Update virtual SSA form after cleaning up the CFG.
3370
3371 2008-04-29  Richard Guenther  <rguenther@suse.de>
3372
3373         PR middle-end/15255
3374         * fold-const.c (fold_binary): Fold (A + A) * C to A * 2*C.
3375
3376 2008-04-29  Richard Guenther  <rguenther@suse.de>
3377
3378         * tree-ssa-alias.c (finalize_ref_all_pointers): Remove.
3379         (compute_may_aliases): Do not call finalize_ref_all_pointers.
3380         (compute_flow_insensitive_aliasing): Do not treat
3381         PTR_IS_REF_ALL pointers special.
3382         (get_smt_for): Likewise.
3383         (may_alias_p): Re-structure.
3384         (is_escape_site): A ref-all pointer conversion is not an escape site.
3385         * tree-ssa-structalias.c (find_what_p_points_to): Do not treat
3386         PTR_IS_REF_ALL pointers special.
3387         * tree-ssa-structalias.h (struct alias_info): Remove
3388         ref_all_symbol_mem_tag field.
3389         (PTR_IS_REF_ALL): Remove.
3390
3391 2008-04-29  Richard Guenther  <rguenther@suse.de>
3392
3393         PR middle-end/36077
3394         * fold-const.c (extract_muldiv_1): In combining division constants
3395         make sure to never overflow.
3396
3397 2008-04-29  Nick Clifton  <nickc@redhat.com>
3398
3399         * doc/tm.texi (RETURN_ADDR_RTX): Fix typo.
3400
3401 2008-04-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3402
3403         PR bootstrap/35169
3404         * optc-gen.awk: Work around HP-UX/IA awk bug.
3405
3406 2008-04-28  Danny Smith  <dannysmith@users.sourceforge.net>
3407
3408         * config/i386/cygming-crtend.c (register_frame_ctor): Revert my
3409         2008-04-25 commit.
3410
3411 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
3412
3413         PR target/36073
3414         * config/i386/i386.md
3415         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit):
3416         Change operand 1 predicate to nonimmediate_operand.
3417
3418 2008-04-28  Jakub Jelinek  <jakub@redhat.com>
3419
3420         PR debug/36060
3421         * dwarf2out.c (struct die_struct): Mark as chain_circular through
3422         die_sub field.
3423         * gengtype.c (walk_type, write_func_for_structure): Handle
3424         chain_circular.
3425         * doc/gty.texi: Document chain_circular.
3426
3427 2008-04-28  Richard Guenther  <rguenther@suse.de>
3428
3429         PR tree-optimization/36066
3430         * tree-vrp.c (execute_vrp): Cleanup the CFG only after finalizing
3431         SCEV and loop.
3432
3433 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
3434
3435         PR target/36064
3436         * config/i386/i386.md
3437         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters):
3438         Use match_scratch instead of match_operand for operands 3 and 4.
3439
3440 2008-04-27  Richard Guenther  <rguenther@suse.de>
3441
3442         PR tree-optimization/18754
3443         PR tree-optimization/34223
3444         * tree-pass.h (pass_complete_unrolli): Declare.
3445         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Print
3446         loop size before and after unconditionally of UL_NO_GROWTH in effect.
3447         Rewrite loop into loop closed SSA form if it is not already.
3448         (tree_unroll_loops_completely): Re-structure to iterate over
3449         innermost loops with intermediate CFG cleanups.
3450         Unroll outermost loops only if requested or the code does not grow
3451         doing so.
3452         * tree-ssa-loop.c (gate_tree_vectorize): Don't shortcut if no
3453         loops are available.
3454         (tree_vectorize): Instead do so here.
3455         (tree_complete_unroll): Also unroll outermost loops.
3456         (tree_complete_unroll_inner): New function.
3457         (gate_tree_complete_unroll_inner): Likewise.
3458         (pass_complete_unrolli): New pass.
3459         * tree-ssa-loop-manip.c (find_uses_to_rename_use): Only record
3460         uses outside of the loop.
3461         (tree_duplicate_loop_to_header_edge): Only verify loop-closed SSA
3462         form if it is available.  
3463         * tree-flow.h (tree_unroll_loops_completely): Add extra parameter.
3464         * passes.c (init_optimization_passes): Schedule complete inner
3465         loop unrolling pass before the first CCP pass after final inlining.
3466
3467 2008-04-27  Nathan Sidwell  <nathan@codesourcery.com>
3468
3469         * targhooks.h (default_emutls_var_fields,
3470         default_emutls_var_init): Declare.
3471         * tree.h (DECL_THREAD_LOCAL): Compare against TLS_MODEL_REAL.
3472         * target.h (struct gcc_target): Add struct emutls member.
3473         * target-def.h (TARGET_EMUTLS_GET_ADDRESS,
3474         TARGET_EMUTLS_REGISTER_COMMON, TARGET_EMUTLS_VAR_SECTION,
3475         TARGET_EMUTLS_TMPL_SECTION, TARGET_EMUTLS_VAR_PREFIX,
3476         TARGET_EMUTLS_TMPL_PREFIX, TARGET_EMUTLS_VAR_FIELDS,
3477         TARGET_EMUTLS_VAR_INIT, TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS,
3478         TARGET_EMUTLS_VAR_ALIGN_FIXED, TARGET_EMUTLS): New.
3479         (TARGET_INITIALIZER): Add TARGET_EMUTLS.
3480         * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS,
3481         BUILT_IN_EMUTLS_REGISTER_COMMON): Get name from targetm structure.
3482         * dwarf2out.c (loc_descriptor_from_tree_1): Check if emutls can
3483         emit debug information.
3484         * coretypes.h (tls_model): Add TLS_MODEL_EMULATED, TLS_MODEL_REAL.
3485         * varasm.c: Include targhooks.h.
3486         (emutls_object_section, emutls_tmpl_section): New.
3487         (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): Remove.
3488         (EMUTLS_SEPARATOR): New.
3489         (prefix_name): New.
3490         (get_emutls_object_name): New.
3491         (default_emutls_var_fields): New, broken out of ...
3492         (get_emutls_object_type): ... here.  Adjust to use target hooks.
3493         (get_emutls_init_templ_addr): Adjust to use target hooks.
3494         (emutls_decl): Adjust to use target hooks.
3495         (emutls_finish): Likewise.
3496         (default_emutls_var_init): New, broken out of ...
3497         (assemble_variable): ... here.  Adjust to use target hooks.
3498         * output.h (enum section_category): Add SECCAT_EMUTLS_VAR,
3499         SECCAT_EMUTLS_TMPL.
3500         * c-common.c (handle_section_attribute): Prevent overriding
3501         sections for emulated tls with special sections.
3502         * config/i386/i386.c (x86_64_elf_select_section): Add
3503         SECCAT_EMUTLS_VAR and SECCAT_EMUTLS_TMPL.
3504         (x86_64_elf_unique_section): Likewise.
3505         * config/vxworks.c: Include tree.h.
3506         (vxworks_emutls_var_fields, vxworks_emutls_var_init): New.
3507         (vxworks_override_options): Set TLS scheme.
3508         * doc/tm.texi (Emulated TLS): New node.
3509
3510 2008-04-26  Simon Baldwin <simonb@google.com>
3511
3512         PR c/35652
3513         * builtins.c (c_strlen): Suppressed multiple warnings that can occur
3514         with propagated string constants.
3515
3516 2008-04-26  Uros Bizjak  <ubizjak@gmail.com>
3517
3518         * config/i386/i386.md (fix_trunc<mode>_i387_fisttp_with_temp): Use 'X'
3519         constraint for operand 2 when operand 0 is memory operand.
3520         (fix_truncdi_i387_with_temp): : Use 'X' constraint for operand 4 when
3521         operand 0 is memory operand.
3522         (fix_trunc<mode>_i387_with_temp): Ditto.
3523         (*floatsi<mode>2_vector_mixed_with_temp): Use 'X' constraint for
3524         operand 2 when operand 1 is memory operand.
3525         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Ditto.
3526         (*floatsi<mode>2_vector_sse_with_temp): Ditto.
3527         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Ditto.
3528         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
3529         (floatdi<X87MODEF:mode>2_i387_with_xmm): Use 'X' constraint for
3530         operands 2,3 and 4 when operand 1 is memory operand.
3531         (fistdi2_with_temp): Use 'X' constraint for operand 2 when operand 0
3532         is memory operand.
3533         (fistdi2_floor_with_temp): Ditto.
3534         (fist<mode>2_floor_with_temp): Ditto.
3535         (fistdi2_ceil_with_temp): Ditto.
3536         (fist<mode>2_ceil_with_temp): Ditto.
3537         (*truncdfsf_fast_mixed): Merge alternatives 0 and 1.
3538
3539 2008-04-26  David Daney  <ddaney@avtrex.com>
3540
3541         * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP_12): New
3542         unspec_volitile.
3543         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE,
3544         UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
3545         UNSPEC_UPDATE_GOT_VERSION): Renumber.
3546         (sync_compare_and_swap<mode>): New expand for QI and HI modes.
3547         (compare_and_swap_12): New insn.
3548         * config/mips/mips-protos.h (mips_expand_compare_and_swap_12): Declare.
3549         * config/mips/mips.c (mips_force_binary): New function.
3550         (mips_emit_int_order_test, mips_expand_synci_loop): Use it.
3551         (mips_expand_compare_and_swap_12): New function.
3552         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): New macro.
3553
3554 2008-04-25  Jan Hubicka  <jh@suse.cz>
3555
3556         PR testsuite/35843
3557         * cfgexpand.c (pass_expand): Turn into RTL pass.
3558         * passes.c (execute_one_pass): Do pass typechecking after execution.
3559         * tree-pass.h (pass_expand): Turn into RTL pass.
3560
3561         * function.h (struct rtl_data): Move here fields
3562         accesses_prior_frames, calls_eh_return, saves_all_registers,
3563         has_nonlocal_goto, has_asm_statement, is_thunk,
3564         all_throwers_are_sibcalls, limit_stack, profile, uses_const_pool,
3565         uses_pic_offset_table, uses_eh_lsda, tail_call_emit,
3566         arg_pointer_save_area_init from struct function; turn into bool.
3567         (struct function): Move
3568         calls_eh_return, saves_all_registers, has_nonlocal_goto,
3569         has_asm_statement, is_thunk, all_throwers_are_sibcalls, limit_stack,
3570         profile, uses_const_pool, uses_pic_offset_table, uses_eh_lsda,
3571         tail_call_emit, arg_pointer_save_area_init
3572         into struct rtl_data.  Remove recursive_call_emit and gimplified flags.
3573         (current_function_returns_struct, current_function_returns_pcc_struct,
3574         current_function_calls_setjmp, current_function_calls_alloca,
3575         current_function_accesses_prior_frames,
3576         current_function_calls_eh_return, current_function_is_thunk,
3577         current_function_stdarg, current_function_profile,
3578         current_function_limit_stack, current_function_uses_pic_offset_table,
3579         current_function_uses_const_pool, current_function_has_nonlocal_label,
3580         current_function_saves_all_registers,
3581         current_function_has_nonlocal_goto,
3582         current_function_has_asm_statement): Remove accesor macros.
3583         * ra-conflict.c (global_conflicts): Update.
3584         * tree-tailcall.c (suitable_for_tail_opt_p): Update.
3585         (suitable_for_tail_call_opt_p): Update.
3586         * builtins.c (expand_builtin_return_addr): Update.
3587         (expand_builtin_setjmp_setup): Update.
3588         (expand_builtin_nonlocal_goto): Update.
3589         * final.c (final_start_function): Update.
3590         (profile_function): Update.
3591         (leaf_function_p): Update.
3592         (only_leaf_regs_used): Update.
3593         * df-scan.c (df_get_exit_block_use_set): Update.
3594         * dojump.c (clear_pending_stack_adjust): Update.
3595         * tree-stdarg.c (gate_optimize_stdarg): Update.
3596         * gimple-low.c (lower_function_body): Update.
3597         * global.c (compute_regsets): Update.
3598         (global_alloc): Update.
3599         * dwarf2out.c (dwarf2out_begin_prologue): Update.
3600         * expr.c (expand_assignment): Update.
3601         * dse.c (dse_step0): Update.
3602         (dse_step1): Update.
3603         * c-decl.c (store_parm_decls): Update.
3604         * local-alloc.c (combine_regs): Update.
3605         (find_free_reg): Update.
3606         * function.c (assign_parms_augmented_arg_list): Update.
3607         (assign_parm_find_data_types): Update.
3608         (assign_parms): Update.
3609         (allocate_struct_function): Update.
3610         (expand_function_start): Update.
3611         (expand_function_end): Update.
3612         (get_arg_pointer_save_area): Update.
3613         (thread_prologue_and_epilogue_insns): Update.
3614         (rest_of_match_asm_constraints): Update.
3615         * stor-layout.c (variable_size): Update.
3616         * gcse.c (gcse_main): Update.
3617         (bypass_jumps): Update.
3618         * gimplify.c (gimplify_function_tree): Update.
3619         * calls.c (emit_call_1): Update.
3620         (expand_call): Update.
3621         * bt-load.c (compute_defs_uses_and_gen): Update.
3622         * except.c (sjlj_assign_call_site_values): Update.
3623         (sjlj_emit_function_enter): Update.
3624         (can_throw_external): Update.
3625         (set_nothrow_function_flags): Update.
3626         (expand_builtin_unwind_init): Update.
3627         (expand_eh_return): Update.
3628         (convert_to_eh_region_ranges): Update.
3629         (output_function_exception_table): Update.
3630         * emit-rtl.c (gen_tmp_stack_mem): Update.
3631         * cfgexpand.c (expand_used_vars): Update.
3632         (tree_expand_cfg): Update.
3633         * cfgcleanup.c (rest_of_handle_jump): Update.
3634         * explow.c (allocate_dynamic_stack_space): Update.
3635         * varasm.c (assemble_start_function): Update.
3636         (force_const_mem): Update.
3637         (mark_constant_pool): Update.
3638         * tree-optimize.c (tree_rest_of_compilation): Update.
3639         * stack-ptr-mod.c (notice_stack_pointer_modification): Update.
3640         * tree-cfg.c (notice_special_calls): Update.
3641         (is_ctrl_altering_stmt): Update.
3642         (tree_can_make_abnormal_goto): Update.
3643         (tree_purge_dead_abnormal_call_edges): Update.
3644         * config/alpha/predicates.md: Update.
3645         * config/alpha/alpha.c (alpha_sa_mask): Update.
3646         (alpha_sa_size): Update.
3647         (alpha_does_function_need_gp): Update.
3648         (alpha_expand_prologue): Update.
3649         (alpha_start_function): Update.
3650         (alpha_output_function_end_prologue): Update.
3651         (alpha_expand_epilogue): Update.
3652         * config/frv/frv.c (frv_stack_info): Update.
3653         (frv_expand_epilogue): Update.
3654         * config/s390/s390.c (s390_regs_ever_clobbered): Update.
3655         (s390_register_info): Update.
3656         (s390_frame_info): Update.
3657         (s390_init_frame_layout): Update.
3658         (s390_can_eliminate): Update.
3659         (save_gprs): Update.
3660         * config/spu/spu.c (spu_split_immediate): Update.
3661         (need_to_save_reg): Update.
3662         (spu_expand_prologue): Update.
3663         (spu_expand_epilogue): Update.
3664         * config/sparc/sparc.md: Update.
3665         * config/sparc/sparc.c (eligible_for_return_delay): Update.
3666         (sparc_tls_got): Update.
3667         (legitimize_pic_address): Update.
3668         (sparc_emit_call_insn): Update.
3669         (sparc_expand_prologue): Update.
3670         (output_return): Update.
3671         (print_operand): Update.
3672         (sparc_function_ok_for_sibcall): Update.
3673         * config/sparc/sparc.h (EXIT_IGNORE_STACK): Update.
3674         * config/m32r/m32r.md: Update.
3675         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Update.
3676         (m32r_compute_frame_size): Update.
3677         (m32r_expand_prologue): Update.
3678         (m32r_expand_epilogue): Update.
3679         (m32r_legitimize_pic_address): Update.
3680         * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Update.
3681         * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
3682         * config/i386/i386.c (ix86_frame_pointer_required): Update.
3683         (gen_push): Update.
3684         (ix86_save_reg): Update.
3685         (ix86_compute_frame_layout): Update.
3686         (ix86_expand_prologue): Update.
3687         (ix86_expand_epilogue): Update.
3688         * config/sh/sh.c (output_stack_adjust): Update.
3689         (calc_live_regs): Update.
3690         (sh5_schedule_saves): Update.
3691         (sh_expand_prologue): Update.
3692         (sh_expand_epilogue): Update.
3693         (sh_setup_incoming_varargs): Update.
3694         (sh_allocate_initial_value): Update.
3695         (sh_get_pr_initial_val): Update.
3696         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Update.
3697         * config/sh/sh.md (label:): Update.
3698         * config/avr/avr.c (out_movhi_mr_r): Update.
3699         * config/crx/crx.h (enum): Update.
3700         * config/xtensa/xtensa.h (along): Update.
3701         * config/stormy16/stormy16.c Update.
3702         (xstormy16_compute_stack_layout): Update.
3703         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Update.
3704         (fr30_expand_prologue): Update.
3705         * config/cris/cris.c (cris_conditional_register_usage): Update.
3706         (cris_reg_saved_in_regsave_area): Update.
3707         (cris_initial_frame_pointer_offset): Update.
3708         (cris_simple_epilogue): Update.
3709         (cris_expand_prologue): Update.
3710         (cris_expand_epilogue): Update.
3711         (cris_expand_pic_call_address): Update.
3712         (cris_asm_output_symbol_ref): Update.
3713         (cris_asm_output_label_ref): Update.
3714         * config/cris/cris.md Update.
3715         * config/iq2000/iq2000.c (compute_frame_size): Update.
3716         (iq2000_expand_epilogue): Update.
3717         * config/mt/mt.h (save_direction): Update.
3718         * config/mn10300/mn10300.c (mn10300_function_value): Update.
3719         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
3720         (ia64_secondary_reload_class): Update.
3721         * config/m68k/m68k.c (m68k_save_reg): Update.
3722         (m68k_expand_prologue): Update.
3723         (m68k_expand_epilogue): Update.
3724         (legitimize_pic_address): Update.
3725         * config/rs6000/rs6000.c (rs6000_got_register): Update.
3726         (first_reg_to_save): Update.
3727         (first_altivec_reg_to_save): Update.
3728         (compute_vrsave_mask): Update.
3729         (compute_save_world_info): Update.
3730         (rs6000_stack_info): Update.
3731         (spe_func_has_64bit_regs_p): Update.
3732         (rs6000_ra_ever_killed): Update.
3733         (rs6000_emit_eh_reg_restore): Update.
3734         (rs6000_emit_allocate_stack): Update.
3735         (rs6000_emit_prologue): Update.
3736         (rs6000_emit_epilogue): Update.
3737         (rs6000_output_function_epilogue): Update.
3738         (output_profile_hook): Update.
3739         (rs6000_elf_declare_function_name): Update.
3740         * config/rs6000/rs6000.h (rs6000_args): Update.
3741         * config/rs6000/rs6000.md: Update.
3742         * config/mcore/mcore.c (mcore_expand_prolog): Update.
3743         * config/arc/arc.c (arc_output_function_epilogue): Update.
3744         * config/arc/arc.h (FRAME_POINTER_REQUIRED): Update.
3745         * config/darwin.c (machopic_function_base_name): Update.
3746         * config/score/score3.c (score3_compute_frame_size): Update.
3747         (rpush): Update.
3748         (rpop): Update.
3749         (score3_epilogue): Update.
3750         * config/score/score7.c (score7_compute_frame_size): Update.
3751         (score7_prologue): Update.
3752         (score7_epilogue): Update.
3753         * config/score/score.h (FRAME_POINTER_REQUIRED): Update.
3754         * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
3755         * config/arm/arm.c (use_return_insn): Update.
3756         (require_pic_register): Update.
3757         (arm_load_pic_register): Update.
3758         (arm_compute_save_reg0_reg12_mask): Update.
3759         (arm_compute_save_reg_mask): Update.
3760         (thumb1_compute_save_reg_mask): Update.
3761         (output_return_instruction): Update.
3762         (arm_output_function_prologue): Update.
3763         (arm_output_epilogue): Update.
3764         (arm_get_frame_offsets): Update.
3765         (arm_expand_prologue): Update.
3766         (thumb_pushpop): Update.
3767         (thumb_exit): Update.
3768         (thumb1_expand_prologue): Update.
3769         (thumb1_expand_epilogue): Update.
3770         (arm_unwind_emit): Update.
3771         (arm_output_fn_unwind): Update.
3772         * config/arm/arm.h (FRAME_POINTER_REQUIRED): Update.
3773         * config/arm/arm.md: Update.
3774         * config/pa/pa.md: Update.
3775         * config/pa/pa.c (legitimize_pic_address): Update.
3776         (compute_frame_size): Update.
3777         (hppa_expand_prologue): Update.
3778         (hppa_expand_epilogue): Update.
3779         (borx_reg_operand): Update.
3780         * config/pa/pa.h (FRAME_POINTER_REQUIRED): Update.
3781         (HARD_REGNO_RENAME_OK): Update.
3782         * config/mips/mips.c (mips_global_pointer): Update.
3783         (mips_save_reg_p): Update.
3784         (mips_compute_frame_info): Update.
3785         (mips_frame_pointer_required): Update.
3786         (mips_expand_prologue): Update.
3787         (mips_expand_epilogue): Update.
3788         (mips_can_use_return_insn): Update.
3789         (mips_reorg_process_insns): Update.
3790         * config/v850/v850.c (compute_register_save_size): Update.
3791         * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Update.
3792         * config/mmix/mmix.c (along): Update.
3793         (mmix_expand_epilogue): Update.
3794         * config/bfin/bfin.c (legitimize_pic_address): Update.
3795         (must_save_p): Update.
3796         (stack_frame_needed_p): Update.
3797         (add_to_reg): Update.
3798         (bfin_expand_prologue): Update.
3799         * stmt.c (expand_asm_operands): Update.
3800         * reload1.c (reload): Update.
3801         (init_elim_table): Update.
3802
3803 2008-04-25  Bob Wilson  <bob.wilson@acm.org>
3804         
3805         * optabs.c (expand_float): Fix REG_EQUAL for UNSIGNED_FLOAT libcall.
3806         
3807 2008-04-25  H.J. Lu  <hongjiu.lu@intel.com>
3808
3809         * config/i386/sse.md (mov<mode>): Replace SSEMODEI with SSEMODE.
3810         (*mov<mode>_internal): Likewise.  Support V4SF and V2DF.
3811         (mov<mode>): Removed.
3812         (*movv4sf_internal): Likewise.
3813         (*movv2df_internal): Likewise.
3814
3815 2008-04-25  Pompapathi V Gadad <Pompapathi.V.Gadad@nsc.com>
3816
3817         * config.gcc (crx-*-elf): Remove deprecation.
3818
3819 2008-04-25  Danny Smith  <dannysmith@users.sourceforge.net>
3820
3821         * config/i386/cygming-crtend.c (register_frame_ctor): Register
3822         __gcc_deregister_frame with atexit.
3823         (deregister_frame_dtor): Remove.
3824
3825 2008-04-24  Nathan Froyd  <froydnj@codesourcery.com>
3826             Nathan Sidwell  <nathan@codesourcery.com>
3827
3828         * config/rs6000/rs6000.opt (mspe): Remove Var property.
3829         (misel): Likewise.
3830         * config/rs6000/rs6000.h (rs6000_spe): Declare.
3831         (rs6000_isel): Likewise.
3832         * config/rs6000/rs6000.c (rs6000_spe): New variable.
3833         (rs6000_isel): New variable.
3834         (rs6000_handle_option): Handle OPT_mspe and OPT_misel.
3835
3836 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
3837
3838         PR c++/35758
3839         * c-common.c (handle_vector_size_attribute): Call
3840         lang_hooks.types.reconstruct_complex_type instead of
3841         reconstruct_complex_type.
3842         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Likewise.
3843         * config/spu/spu.c (spu_handle_vector_attribute): Likewise.
3844         * langhooks.h (struct lang_hooks_for_types): Add
3845         reconstruct_complex_type hook.
3846         * langhooks-def.h (LANG_HOOKS_RECONSTRUCT_COMPLEX_TYPE): Define.
3847         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
3848
3849 2008-04-24  Richard Guenther  <rguenther@suse.de>
3850
3851         * c-common.h (check_builtin_function_arguments): Declare.
3852         * c-common.c (validate_nargs): New function.
3853         (check_builtin_function_arguments): Likewise.
3854         * c-typeck.c (build_function_call): Call
3855         check_builtin_function_arguments.
3856         * builtins.c (fold_builtin_classify): Remove error reporting code.
3857         (fold_builtin_unordered_cmp): Likewise.
3858         (fold_builtin_1): Likewise.
3859         (fold_builtin_n): Likewise.
3860
3861 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
3862
3863         PR tree-optimization/36008
3864         * fold-const.c (try_move_mult_to_index): If s == NULL, divide
3865         the original op1, rather than delta by step.
3866
3867 2008-04-22  Antoniu Pop  <antoniu.pop@gmail.com>
3868             Sebastian Pop  <sebastian.pop@amd.com>
3869
3870         * tree-parloops.c (take_address_of, eliminate_local_variables_1,
3871         eliminate_local_variables_stmt, eliminate_local_variables,
3872         separate_decls_in_loop_name, separate_decls_in_loop_stmt,
3873         separate_decls_in_loop, gen_parallel_loop): Make them work on a region
3874         of code delimited by two edges in the CFG.
3875         (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
3876         (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
3877         (separate_decls_in_loop): Renamed separate_decls_in_region.  Isolate 
3878         the case of parallelisation of reductions.
3879         (expr_invariant_in_region_p): New.
3880
3881         * tree-flow.h (gather_blocks_in_sese_region): Declared.
3882         * tree-cfg.c (gather_blocks_in_sese_region): Extern.
3883
3884 2008-04-24  Ira Rosen  <irar@il.ibm.com>
3885             Richard Guenther  <rguenther@suse.de>
3886
3887         PR tree-optimization/36034
3888         * tree-vect-analyze.c (vect_analyze_group_access): SLP is
3889         incapable of dealing with loads with gaps.
3890
3891 2008-04-24  Rafael Espindola  <espindola@google.com>
3892
3893         * tree-flow.h (vrp_evaluate_conditional): Change signature.
3894         * tree-ssa-propagate.c (fold_predicate_in): Update call to
3895         vrp_evaluate_conditional.
3896         * tree-vrp.c (vrp_evaluate_conditional_warnv): Remove.
3897         (vrp_evaluate_conditional): Split the cond argument.
3898         (vrp_visit_cond_stmt): Use vrp_evaluate_conditional_warnv_with_ops.
3899         (simplify_stmt_for_jump_threading): Update call to
3900         vrp_evaluate_conditional.
3901
3902 2008-04-24  Ira Rosen  <irar@il.ibm.com>
3903
3904         PR tree-optimization/35982
3905         * tree-vect-analyze.c (vect_check_interleaving): Check that the
3906         interleaved data-refs are of the same type.
3907
3908 2008-04-24  Danny Smith  <dannysmith@users.net>
3909
3910         * c-format.c (check_format_info_main): Use strncmp rather than a
3911         magic prefix to handle multichar length specs.
3912         * config/i386/msformat-c.c (format_length_info ms_printf_length_specs):
3913         Don't prefix "I64" and "I32" with '\0'.
3914
3915 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
3916
3917         PR target/36015
3918         * config/i386/i386.c (init_cumulative_args): Don't pass anything
3919         in registers for -m32 only if stdarg_p (fntype).
3920
3921 2008-04-24  Uros Bizjak  <ubizjak@gmail.com>
3922
3923         PR rtl-optimization/36006
3924         * expmed.c (store_fixed_bit_field): Copy op0 rtx before moving
3925         temp to op0 in order to avoid invalid rtx sharing.
3926
3927 2008-04-23  Paolo Bonzini  <bonzini@gnu.org>
3928
3929         * tree-cfg.c (verify_expr): Check with is_gimple_address.  Don't
3930         check TREE_INVARIANT.
3931         * tree-gimple.c (is_gimple_address): New.
3932         (is_gimple_invariant_address): Simplify using decl_address_invariant_p.
3933         * tree-gimple.h (is_gimple_address): New.
3934         * tree.h (decl_address_invariant_p): New.
3935         * tree.c (make_node_stat): Don't set TREE_INVARIANT.
3936         (build_string): Likewise.
3937         (decl_address_invariant_p): New, from is_gimple_invariant_address.
3938         (tree_invariant_p_1): Likewise.
3939         (save_expr): Use it.
3940         (tree_invariant_p): New.
3941         (skip_simple_arithmetic): Use it.
3942         (stabilize_reference_1): Use it.
3943         (recompute_tree_invariant_for_addr_expr): Don't update TREE_INVARIANT,
3944         simplify.
3945         (build1_stat): Drop code to compute TREE_INVARIANT.
3946         (build2_stat): Drop code to compute TREE_INVARIANT.
3947         (build3_stat): Drop code to compute TREE_INVARIANT.
3948         (build4_stat): Drop code to compute TREE_INVARIANT.
3949         (build5_stat): Drop code to compute TREE_INVARIANT.
3950         (build7_stat): Drop code to compute TREE_INVARIANT.
3951         (merge_dllimport_decl_attributes): Don't mention TREE_INVARIANT.
3952         * tree.h (struct tree_base): Remove invariant_flag.
3953         (TREE_INVARIANT): Remove.
3954         * builtins.c (build_string_literal): Don't set TREE_INVARIANT.
3955         (fold_builtin_expect): Check TREE_CONSTANT.
3956         * tree-ssa-ccp.c (fold_stmt_r): Adjust comment.
3957         * c-tree.h (c_expr_to_decl): Drop third parameter.
3958         * c-typeck.c (build_external_ref): Don't set TREE_INVARIANT.
3959         (build_c_cast): Don't set TREE_INVARIANT.
3960         (pop_init_level): Don't set TREE_INVARIANT.
3961         (c_objc_common_truthvalue_conversion): Don't set TREE_INVARIANT.
3962         * gimplify.c (gimplify_init_ctor_preeval): Add assertion, test
3963         TREE_CONSTANT.
3964         (gimplify_init_constructor): Don't set TREE_INVARIANT.
3965         (gimplify_addr_expr): Adjust comment.
3966         * tree-mudflap.c (mf_build_string):
3967         * print-tree.c (print_node): Don't print TREE_INVARIANT.
3968         * tree-nested.c (convert_nonlocal_reference): Adjust comment.
3969         * c-common.c (fix_string_type): Don't set TREE_INVARIANT.
3970         * langhooks-def.h (lhd_expr_to_decl): Drop third parameter.
3971         * langhooks.c (lhd_expr_to_decl): Drop third parameter.
3972         * langhooks.h (struct lang_hooks): Drop third parameter from
3973         expr_to_decl.
3974
3975 2008-04-23  Richard Guenther  <rguenther@suse.de>
3976
3977         PR tree-optimization/27799
3978         PR tree-optimization/32921
3979         PR tree-optimization/32624
3980         * tree-ssa-structalias.c (merge_smts_into): Only merge the
3981         SMTs aliases and the tag itself into the solution.
3982         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Do not
3983         merge the points-to solution back into the SMT aliases.
3984         (may_alias_p): Use alias_set_subset_of instead of
3985         aliases_conflict_p.  A pointer which points to
3986         memory with alias set zero may access any variable.
3987
3988 2008-04-23  Richard Guenther  <rguenther@suse.de>
3989
3990         * alias.c (alias_set_subset_of): Correctly handle asking
3991         if zero is a subset of an alias set with zero child.
3992         * tree-ssa-alias.c (have_common_aliases_p): Simplify logic.
3993         (compute_flow_insensitive_aliasing): Correctly walk all
3994         pointers.  Do not unnecessarily union sets.
3995
3996 2008-04-23  Richard Guenther  <rguenther@suse.de>
3997
3998         PR middle-end/36021
3999         * c-common.c (handle_alloc_size_attribute): Use type_num_arguments.
4000
4001 2008-04-22  Tomas Bily  <tbily@suse.cz>
4002
4003         * tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as
4004         unreachable case.
4005         * tree-vrp.c (extract_range_from_unary_expr): Removed unused
4006         NON_LVALUE_EXPR.
4007         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
4008         * tree-ssa-structalias.c (get_constraint_for): Likewise.
4009         * tree-inline.c (estimate_num_insns_1): Likewise.
4010         * varasm.c (const_hash_1, compare_constant, copy_constant)
4011         (compute_reloc_for_constant, output_addressed_constants): Likewise.
4012         * emit-rtl.c (component_ref_for_mem_expr)
4013         (set_mem_attributes_minus_bitpos): Likewise.
4014         * expr.c (highest_pow2_factor, expand_expr_real_1, )
4015         (is_aligning_offset): Likewise.
4016         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info): Likewise.
4017         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
4018         * dojump.c (do_jump): Likewise.
4019         * builtins.c (get_pointer_alignment, get_memory_rtx)
4020         (integer_valued_real_p, fold_builtin_next_arg): Likewise.
4021         * tree-scalar-evolution.c (instantiate_parameters_1): Likewise.
4022
4023 2008-04-23  Jakub Jelinek  <jakub@redhat.com>
4024
4025         PR rtl-optimization/36017
4026         * builtins.c (expand_errno_check): Clear CALL_EXPR_TAILCALL before
4027         expanding the library call.
4028
4029 2008-04-22  Ian Lance Taylor  <iant@google.com>
4030
4031         * fold-const.c (pointer_may_wrap_p): Call int_size_in_bytes rather
4032         than size_in_bytes.
4033
4034 2008-04-22  Pat Haugen  <pthaugen@us.ibm.com>
4035
4036         * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
4037         of LR/CTR moves for Power6.
4038
4039 2008-04-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
4040
4041         PR middle-end/36003
4042         * passes.c (init_optimization_passes): Remove
4043         pass_fast_rtl_byte_dce.
4044         
4045 2008-04-22  Uros Bizjak  <ubizjak@gmail.com>
4046
4047         PR target/29096
4048         * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Rearrange calls to
4049         builtin functions to generate faster code.
4050         (_mm_cvtpu16_ps): Ditto.
4051         (_mm_cvtpi32x2_ps): Ditto.
4052
4053 2008-04-22  Nick Clifton  <nickc@redhat.com>
4054
4055         * common.opt (ftree-loop-distribution): Add Optimization
4056         attribute.
4057
4058         * config/frv/frv.c (frv_stack_info): Use crtl instead of cfun.
4059         (frv_expand_builtin_va_start): Likewise.
4060
4061         * config/arm/arm.c (thumb_find_work_register): Fix location of
4062         argument register count.
4063
4064 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
4065
4066         Support scheduling for ColdFire V1 and V3 microarchitecture.
4067         Improve scheduling of multiplication instructions.
4068
4069         * config/m68k/m68k.md (cpu): Add cfv1 and cfv3.  Rename cf_v2 to cfv1.
4070         (mac): New instruction attribute.
4071         * config/m68k/m68k.c (override_options): Handle cfv1, cfv3 and mac.
4072         (m68k_sched_mac): New variable.
4073         (m68k_sched_attr_type2, m68k_sched_md_init_global): Update.
4074         Handle cfv1 and cfv3.
4075         (max_insn_size): New static variable.
4076         (struct _sched_ib): New type.
4077         (sched_ib): New static variable.
4078         (sched_ib_size, sched_ib_filled, sched_ib_insn): Convert variables
4079         to fields of 'struct _sched_ib sched_ib'.  Update all uses.
4080         (m68k_sched_variable_issue): Add modeling of cfv3 instruction buffer.
4081         Update.
4082         (m68k_sched_md_init_global, m68k_sched_md_finish_global,
4083         m68k_sched_md_init, m68k_sched_md_finish): Handle cfv1 and cfv3.  Init
4084         new variables.  Update.
4085         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
4086         Add modeling of cfv3 instruction buffer.  Update.
4087         * config/m68k/m68k-protos.h (m68k_sched_mac): Declare.
4088         * config/m68k/m68k.h (TUNE_CFV3): New macro.
4089         * config/m68k/cf.md: Change substrings 'cf_v2' to 'cfv12' or 'cfv123'.
4090         (cf_* reservations): Rename to cfv12 or cfv123 to indicate cores
4091         a particular reservation applies to.
4092         (type2): Reorganize attribute values.  Rename alu to alu_reg,
4093         alu_l to alu, move_l to omove.  Join move to alu.  Split mul
4094         to mul_l and mul_w.
4095         (cf_ib_*): Simplify description of instruction buffer.
4096         (cf_ib_w0, cf_ib_w4, cf_ib_w5, cf_ib_w6): Remove.
4097         (cf_mem): Split into cf_mem1 and cf_mem2.
4098         (cf_v2_move_??): Rename to cfv12_alu_??.
4099         (cf_v2_move_l_??): Rename to cfv12_omove_??.
4100         (cf_v2_mul_??): Remove reservations.
4101         (cfv12_mul_l_??, cfv12_mul_w_??, cfv12_mac_w_??, cfv12_mac_l_??,
4102         cfv12_emac_??, cfv12_emac_w_i0): New reservations.
4103         (cfv12_rts, cfv12_call, cfv12_bcc, cfv12_bra, cfv12_jmp): Move to
4104         appropriate place.
4105         (cfv3_alu_10, cfv3_omove_10, cfv3_alu_i0, cfv3_omove_i0, cfv3_alu_01,
4106         cfv3_alu_0i, cfv3_alu_11, cfv3_omove_11, cfv3_alu_i1, cfv3_omove_i1,
4107         cfv3_alu_1i, cfv3_omove_1i, cfv3_pea_11, cfv3_pea_i1, cfv3_mul_w_10,
4108         cfv3_mul_l_10, cfv3_mul_w_i0, cfv3_mac_w_10, cfv3_mac_l_10,
4109         cfv3_mac_w_i0, cfv3_emac_10, cfv3_emac_w_i0, cfv3_rts, cfv3_call,
4110         cfv3_bcc, cfv3_bra, cfv3_jmp): New reservations.
4111         (cfv3_*_1, cfv3_*_2, cfv3_*_3): New instruction reservations that are
4112         expansions of the above reservations for instructions of sizes
4113         1, 2 and 3 words.
4114
4115 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
4116
4117         * rtl-factoring.c (collect_patterns_seqs): Handle CC0 targets.
4118
4119 2008-04-21  Adam Nemet  <anemet@caviumnetworks.com>
4120
4121         * coverage.c: Include tree-pass.h.
4122         (coverage_counter_alloc): Print da_file_name to the dump file.
4123
4124 2008-04-21  Kenneth Zadeck  <zadeck@naturalbridge.com>
4125
4126         * sbitmap.c (sbitmap_range_empty_p): New function.
4127         * sbitmap.h (sbitmap_range_empty_p): New function.
4128         * bitmap.h: Now includes obstack.h.
4129
4130 2008-04-21  Richard Sandiford  <rsandifo@nildram.co.uk>
4131             Kenneth Zadeck  <zadeck@naturalbridge.com>
4132
4133         * dbgcnt.def (ra_byte_scan): Added.
4134         * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
4135         when the last hit happens for a counter.  
4136         * timevar.def (TV_DF_BYTE_LR): New variable.
4137         * tree-pass.h (pass_fast_rtl_byte_dce): New pass.
4138         * passes.c (pass_fast_rtl_byte_dce): New pass.
4139         * fwprop.c (update_df): Added mode to call df_ref_create.
4140         Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
4141         DF_REF_EXTRACT_OFFSET.
4142         * df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN, 
4143         DF_BYTE_LR_OUT, df_byte_lr): New macro.
4144         (df_mm): New enum.
4145         (df_ref_extract): Added mode field.
4146         (DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
4147         DF_REF_EXTRACT_OFFSET.
4148         (DF_REF_EXTRACT_MODE): New macro.
4149         (df_byte_lr_bb_info): New structure.
4150         (df_print_byte_regset, df_compute_accessed_bytes, 
4151         df_byte_lr_add_problem, df_byte_lr_get_regno_start,
4152         df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
4153         df_byte_lr_simulate_uses,
4154         df_byte_lr_simulate_artificial_refs_at_top,
4155         df_byte_lr_simulate_artificial_refs_at_end,
4156         df_compute_accessed_bytes): New function.
4157         (df_ref_create): Add parameter.
4158         (df_byte_lr_get_bb_info): New inline function.
4159         * df-scan.c (df_ref_record, df_uses_record,
4160         df_ref_create_structure): Added mode parameter.
4161         (df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1, 
4162         df_defs_record, df_uses_record, df_get_conditional_uses,
4163         df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect, 
4164         df_entry_block_defs_collect, df_exit_block_uses_collect):
4165         Added mode parameter to calls to df_ref_record, df_uses_record,
4166         df_ref_create_structure.
4167         (df_ref_equal_p, df_ref_compare): Added test for modes.
4168         (df_ref_create_structure): Added code to set mode.  Renamed
4169         DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
4170         DF_REF_EXTRACT_OFFSET.
4171         * df-core.c (df_print_byte_regset): New function.
4172         * df-byte-scan.c: New file.
4173         * df-problems.c (df_rd_transfer_function): Removed unnecessary
4174         calls to BITMAP_FREE.  
4175         (df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
4176         (df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
4177         df_byte_lr_set_bb_info, df_byte_lr_free_bb_info, 
4178         df_byte_lr_check_regs, df_byte_lr_expand_bitmap, 
4179         df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
4180         df_byte_lr_local_compute, df_byte_lr_init,
4181         df_byte_lr_confluence_0, df_byte_lr_confluence_n, 
4182         df_byte_lr_transfer_function, df_byte_lr_free, 
4183         df_byte_lr_top_dump, df_byte_lr_bottom_dump,
4184         df_byte_lr_add_problem, df_byte_lr_simulate_defs, 
4185         df_byte_lr_simulate_uses,
4186         df_byte_lr_simulate_artificial_refs_at_top,
4187         df_byte_lr_simulate_artificial_refs_at_end): New function.
4188         * dce.c (byte_dce_process_block): New function.
4189         (dce_process_block): au is now passed in rather than computed
4190         locally.  Changed loops that look at artificial defs to not look
4191         for conditional or partial ones, because there never are any.  
4192         (fast_dce): Now is able to drive byte_dce_process_block or 
4193         dce_process_block depending on the kind of dce being done.
4194         (rest_of_handle_fast_dce): Add parameter to fast_dce.
4195         (rest_of_handle_fast_byte_dce): New function.
4196         (rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
4197         * Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
4198
4199 2008-04-21  Daniel Franke  <franke.daniel@gmail.com>
4200
4201         PR fortran/35019
4202         * gcc.h: Added fortran options that take arguments to
4203         DEFAULT_SWITCH_TAKES_ARG and DEFAULT_WORD_SWITCH_TAKES_ARG
4204         macros.
4205
4206 2008-04-20  Eric Botcazou  <ebotcazou@adacore.com>
4207
4208         * tree-sra.c (sra_walk_expr) <VIEW_CONVERT_EXPR>: Disable
4209         scalarization if on the LHS and not a full access.
4210
4211 2008-04-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4212
4213         * Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing it.
4214
4215 2008-04-18  Rafael Espindola  <espindola@google.com>
4216
4217         * tree-vrp.c (find_case_label_index): Fix the binary search.
4218         (find_case_label_range): New.
4219         (vrp_visit_switch_stmt): Use find_case_label_range.
4220         (simplify_switch_using_ranges): Use find_case_label_range.
4221
4222 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
4223
4224         * gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
4225         using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
4226
4227 2008-04-18  Tom Tromey  <tromey@redhat.com>
4228
4229         PR libcpp/15500:
4230         * doc/cpp.texi (Implementation-defined behavior): Mention
4231         -finput-charset.
4232
4233 2008-04-18  Ian Lance Taylor  <iant@google.com>
4234
4235         * fold-const.c (pointer_may_wrap_p): New static function.
4236         (fold_comparison): Add another test for pointer overflow.  Use
4237         pointer_may_wrap_p to disable some false positives.
4238
4239 2008-04-18  Kris Van Hees <kris.van.hees@oracle.com>
4240           
4241         * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros.
4242         (fname_as_string): Match updated cpp_interpret_string prototype.
4243         (fix_string_type): Support char16_t* and char32_t*.
4244         (c_common_nodes_and_builtins): Add char16_t and char32_t (and
4245         derivative) nodes.  Register as builtin if C++0x.
4246         (c_parse_error): Support CPP_CHAR{16,32}.
4247         * c-common.h (RID_CHAR16, RID_CHAR32): New elements. 
4248         (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE,
4249         CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE,
4250         CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE,
4251         CTI_CHAR32_ARRAY_TYPE>: New elements.
4252         (char16_type_node, signed_char16_type_node, unsigned_char16_type_node,
4253         char32_type_node, signed_char32_type_node, char16_array_type_node,
4254         char32_array_type_node): New defines.
4255         * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype.
4256         (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
4257         (lex_string): Support CPP_STRING{16,32}, match updated
4258         cpp_interpret_string and cpp_interpret_string_notranslate prototypes.
4259         (lex_charconst): Support CPP_CHAR{16,32}.
4260         * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32}
4261         and CPP_STRING{16,32}.
4262
4263 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
4264
4265         PR bootstrap/35457
4266         * aclocal.m4: Regenerate.
4267         * configure: Regenerate.
4268
4269 2008-04-18  Jan Hubicka  <jh@suse.cz>
4270
4271         * except.c (dw2_size_of_call_site_table,
4272         sjlj_size_of_call_site_table): Use vector API for call_site_record.
4273
4274         * cgraphbuild.c (build_cgraph_edges): Update.
4275         * tree-pass.h: Update comment.
4276         * final.c (leaf_function_p): Update.
4277         (leaf_renumber_regs): Update.
4278         (rest_of_clean_state): Update.
4279         * omp-low.c (expand_omp_parallel): Update.
4280         * ipa-reference.c (analyze_function): Update.
4281         * reorg.c (find_end_label): Update.
4282         (optimize_skip): Update.
4283         (fill_simple_delay_slots): Update.
4284         (fill_simple_delay_slots): Update.
4285         (make_return_insns): Update.
4286         (dbr_schedule): Update.
4287         * gimple-low.c (record_vars_into): Update.
4288         * cfgbuild.c (make_edges): Update.
4289         * function.c (assign_stack_local): Update.
4290         (assign_parm_adjust_stack_rtl): Update.
4291         (locate_and_pad_parm): Update.
4292         (allocate_struct_function): Do not initialize stack_alignment_needed
4293         and preferred_stack_boundary here.
4294         (stack_protect_prologue): Update.
4295         (stack_protect_epilogue): Update.
4296         (expand_function_start): Initialize stack_alignment_needed,
4297         preferred_stack_boundary and max_jumptable_ents.
4298         (expand_function_end): Update.
4299         (free_after_compilation): Do not NULLify epilogue_delay_list.
4300         * function.h (struct rtl_data): Add stack_protect_guard,
4301         stack_alignment_needed,
4302         preferred_stack_boundary, epilogue_delay_list.
4303         (struct function): Remove value_histograms, stack_alignment_needed,
4304         preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
4305         last_label_uid,
4306         unexpanded_var_list, stack_protect_guard.
4307         (current_function_epilogue_delay_list): Remove.
4308         * ipa-type-escape.c (analyze_function): Update.
4309         * gimplify.c (pop_gimplify_context): Update comment.
4310         * calls.c (expand_call): Update.
4311         (emit_library_call_value_1): Update.
4312         * except.c (set_nothrow_function_flags): Update.
4313         * cfgexpand.c (get_decl_align_unit): Update.
4314         (create_stack_guard): Update.
4315         (estimated_stack_frame_size): Update.
4316         (expand_used_vars): Update.
4317         (tree_expand_cfg): Free histogram earliers, init expansion variables.
4318         * explow.c (allocate_dynamic_stack_space): Update.
4319         * tree-ssa-live.c (remove_unused_locals): Update.
4320         * varasm.c (mark_constant_pool): Update.
4321         * tree-inline.c (remap_decls): Update.
4322         (initialize_cfun): Update.
4323         (declare_return_variable): Update.
4324         (inline_forbidden_p): Update.
4325         (expand_call_inline): Update.
4326         (declare_inline_vars): Update.
4327         (tree_function_versioning): Update.
4328         * tree-flow.h (value_histograms): New.
4329         (VALUE_HISTOGRAMS): New macro.
4330         * basic-block.h (control_flow_graph): Add max_jumptable_ents,
4331         last_label_uid.
4332         * tree-cfg.c (set_bb_for_stmt): Update.
4333         (replace_by_duplicate_decl): Update.
4334         (move_block_to_fn): Update.
4335         (new_label_mapper): Update.
4336         (dump_function_to_file): Update.
4337         * ipa-struct-reorg.c (build_data_structure): Update.
4338         * cfgrtl.c (print_rtl_with_bb): Update.
4339         * reload1.c (reload): Update.
4340         (reload): Update.
4341         * config/i386/i386.c (setup_incoming_varargs_64,
4342         ix86_compute_frame_layout): Update.
4343         * config/arc/arc.c (arc_output_function_epilogue): Update.
4344
4345 2008-04-18  Marius Strobl <marius@FreeBSD.org>
4346
4347         * gthr-posix.h (__gthread_active_p): Use the Solaris implementation
4348         for FreeBSD as well.
4349         * gthr-posix95.h: Likewise.
4350
4351 2008-04-17  Richard Sandiford  <rsandifo@nildram.co.uk>
4352
4353         PR rtl-optimization/35838
4354         * dse.c (find_shift_sequence): Use subreg_lowpart_offset to work
4355         out the byte offset of the first subreg.
4356
4357 2008-04-17  Uros Bizjak  <ubizjak@gmail.com>
4358
4359         * config/i386/i386.md (addti3 splitter): Pass arrays of 3 operands
4360         to split_ti instead of three separate calls with single member arrays.
4361         (subti3 splitter): Ditto.
4362         (adddi3 splitter): Ditto with split_di.
4363         (subdi3 splitter): Ditto.
4364         (negti2 splitter): Pass arrays of 2 operands to split_ti instead of
4365         two separate calls with single member arrays.  Swap match_dup
4366         operands 1 and 2 to better fit into the array.
4367         (negdi2 splitter): Ditto with split_di.
4368         (movdfcc splitter):  Pass arrays of 2 operands to split_di instead of
4369         two separate calls with single member arrays.  Swap match_dup operands
4370         6 and 7 to better fit into the array.
4371
4372 2008-04-17  H.J. Lu  <hongjiu.lu@intel.com>
4373
4374         * config/i386/i386.c (sse_builtin_type): New.
4375         (bdesc_sse_args): Likewise.
4376         (bdesc_sse_3arg): Removed.
4377         (bdesc_2arg): Remove IX86_BUILTIN_AESKEYGENASSIST128.
4378         (bdesc_1arg): Remove IX86_BUILTIN_ROUNDPD and
4379         IX86_BUILTIN_ROUNDPS.
4380         (ix86_init_mmx_sse_builtins): Handle bdesc_sse_args.  Remove
4381         bdesc_sse_3arg.  Remove IX86_BUILTIN_ROUNDPD and
4382         IX86_BUILTIN_ROUNDPS.
4383         (ix86_expand_sse_4_operands_builtin): Removed.
4384         (ix86_expand_sse_operands_builtin): New.
4385         (ix86_expand_unop_builtin): Remove CODE_FOR_sse4_1_roundpd
4386         and CODE_FOR_sse4_1_roundps.
4387         (ix86_expand_builtin): Remove IX86_BUILTIN_AESKEYGENASSIST128.
4388         Handle bdesc_sse_args.  Remove bdesc_sse_3arg.
4389
4390 2008-04-17  Alan Modra  <amodra@bigpond.net.au>
4391
4392         PR target/35907
4393         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Restore vr and vrsave
4394         regs before frame pop when needed.  If use_backchain_to_restore_sp
4395         then load backchain into a temp reg to restore vr and vrsave.  Add
4396         code to restore vr after frame pop if possible.
4397
4398 2008-04-17  Richard Guenther  <rguenther@suse.de>
4399
4400         * tree-vn.c (expressions_equal_p): Do not check type
4401         equality or compatibility before calling operand_equal_p.
4402         * fold-const.c (operand_equal_p): Check equivalence of
4403         integer constants before bailing out due to signedness or
4404         precision differences.
4405         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
4406         spurious differences in type qualification.  Ignore types
4407         for COMPONENT_REFs at all.
4408
4409 2008-04-17  Christian Bruel  <christian.bruel@st.com>
4410
4411         * config/sh/sh.c (expand_cbranchdi4): Use original operands for
4412         msw_skip comparison.
4413         
4414 2008-04-16  Jakub Jelinek  <jakub@redhat.com>
4415
4416         PR c/35739
4417         * tree-nrv.c (tree_nrv): Don't optimize if result_type is GIMPLE
4418         reg type.
4419
4420         PR tree-optimization/35899
4421         * tree-inline.c (expand_call_inline): Use GIMPLE_STMT_OPERAND
4422         rather than TREE_OPERAND.
4423
4424 2008-04-16  Uros Bizjak  <ubizjak@gmail.com>
4425
4426         PR target/35944
4427         * config/i386/i386.md (fmodxf3): Copy operand 1 and operand 2 into
4428         temporary registers.  Change operand predicate to general_operand.
4429         (remainderxf3): Ditto.
4430
4431 2008-04-16  Richard Guenther  <rguenther@suse.de>
4432
4433         * Makefile.in (tree-affine.o): Add $(FLAGS_H) dependency.
4434         * tree-affine.c (aff_combination_expand): Look through some
4435         conversions.
4436
4437 2008-04-15  Doug Kwan  <dougkwan@google.com>
4438
4439         * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
4440         for hex printing.
4441         * tree-pretty-print.c (dump_generic_node): Ditto.
4442         * final.c (output_addr_const): Ditto.
4443         * dwarf2out.c (output_cfi): Ditto.
4444         * c-pretty-print.c (pp_c_integer_constant): Ditto.
4445         * print-rtl.c (print_rtx): Ditto.
4446         * print-tree.c (print_node_brief, print_node): Ditto.
4447         * c-common.c (match_case_to_enum_1): Ditto.
4448         * sched-vis.c (print_value): Ditto.
4449         * config/i386/i386.c (print_operand): Cast to long unsigned int
4450         for hex printing.
4451
4452 2008-04-15  Danny Smith  <dannysmith@users.sourceforge.net>
4453         * libgcc2.c [L_trampoline]: Remove  unnecessary prototype for
4454         MS Windows VirtualProtect function.
4455
4456 2008-04-15  Jan Hubicka  <jh@suse.cz>
4457
4458         * gengtype.c (write_root): Param_is argument is OK.
4459         * expr.c (expand_expr_real_1): Update call of get_exception_*.
4460         * function.h: Include varray.h
4461         (rtl_eh): New stucture based on except.c one.
4462         (call_site_record): New forward declaration and vector type.
4463         * calls.c (emit_call_1): Do not call
4464         note_current_region_may_contain_throw.
4465         * except.c (eh_status): Remove cur_region, try_region since they are
4466         unused.
4467         Move filter, exc_ptr, ttype_data, ehspec_data, action_record_data and
4468         exception_handler_label_map, ehr_stackadj, ehr_handler, ehr_label,
4469         sjlj_fc, sjlj_exit_after to rth_eh in function.h. 
4470         Remove call_site_data_used, call_site_data_size.
4471         Turn call_site_record into vector in function.h.
4472         (note_current_region_may_contain_throw): Remove.
4473         (get_exception_pointer, get_exception_filter): Do not take struct
4474         function argument; update.
4475         (add_ehl_entry, find_exception_handler_labels, ehspec_filter_hash,
4476         add_ttypes_entry, add_ehspec_entry, assign_filter_values,
4477         build_post_landing_pads, dw2_build_landing_pads,
4478         sjlj_assign_call_site_values, sjlj_mark_call_sites,
4479         sjlj_emit_function_enter, sjlj_emit_function_enter, 
4480         sjlj_emit_function_exit, sjlj_emit_dispatch_table,
4481         sjlj_build_landing_pads, finish_eh_generation,
4482         remove_exception_handler_label, remove_eh_handler,
4483         maybe_remove_eh_handler, add_reachable_handler,
4484         reachable_handlers, expand_builtin_eh_return, expand_eh_return,
4485         add_action_record, collect_one_action_chain, add_call_site,
4486         convert_to_eh_region_ranges, sjlj_size_of_call_site_table,
4487         sjlj_output_call_site_table, output_function_exception_table,
4488         * except.h (note_current_region_may_contain_throw): Remove
4489         (get_exception_pointer, get_exception_filter): Do not take struct
4490         function argument.
4491         * Makefile.in (GTFILES): Put varargs before struct function.
4492
4493 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
4494
4495         * tree-ssa-structalias.c (get_constraint_for_component_ref): Do not
4496         punt for STRING_CST.
4497         (get_constraint_for): Deal with STRING_CST here instead.
4498
4499 2008-04-15  Richard Guenther  <rguenther@suse.de>
4500
4501         * tree-ssa-propagate.c (substitute_and_fold): Substitute
4502         statements in a basic-block with a backward walk.  Do not
4503         substitute into dead statements but instead remove those.
4504
4505 2008-04-15  Richard Guenther  <rguenther@suse.de>
4506
4507         * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Set default
4508         to zero, thus disable creation of SFTs.
4509
4510 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
4511
4512         * tree-predcom.c (suitable_reference_p): Return false if the
4513         reference can throw.
4514
4515 2008-04-15  Jakub Jelinek  <jakub@redhat.com>
4516
4517         PR c/35751
4518         * c-decl.c (finish_decl): If extern or static var has variable
4519         size, set TREE_TYPE (decl) to error_mark_node.
4520
4521 2008-04-15  Rafael Espindola  <espindola@google.com>
4522
4523         * fold-const.c (tree_call_nonnegative_warnv_p): Remove local
4524         variable arg1.
4525
4526 2008-04-15  Richard Guenther  <rguenther@suse.de>
4527
4528         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
4529         * tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
4530         (visit_reference_op_load): Do walk vuse-vdef chains on
4531         vn_reference_lookup.
4532         (visit_reference_op_store): But do not here.
4533         * tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
4534         vn_reference_lookup.
4535         (vn_lookup_with_vuses): But do so here.
4536
4537 2008-04-14  Ian Lance Taylor  <iant@google.com>
4538
4539         * fold-const.c (fold_overflow_warning): Remove assertion.
4540
4541 2008-04-15  Ben Elliston  <bje@au.ibm.com>
4542
4543         * config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp,
4544         temp1 local variables.
4545
4546 2008-04-15  Zuxy Meng  <zuxy.meng@gmail.com>
4547
4548         PR target/35661
4549         * config/i386/winnt.c (i386_pe_section_type_flags): Mark
4550         ".text.unlikely" section as executable.
4551
4552 2008-04-14  James E. Wilson  <wilson@tuliptree.org>
4553
4554         * config/ia64/ia64.c (rtx_needs_barrier): Handle
4555         UNSPEC_FR_SQRT_RECIP_APPROX_RES.
4556         * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define.
4557         (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr,
4558         divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr,
4559         divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat,
4560         divxf3_internal_thr, sqrtxf2_internal_thr, recip_approx): Use it.
4561
4562 2008-04-14  Ian Lance Taylor  <iant@google.com>
4563
4564         * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
4565         * fold-const.c (fold_comparison): If appropriate, test
4566         POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
4567         (fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
4568         reassociating a pointer type.
4569         * doc/invoke.texi (Optimize Options): Document that
4570         -fstrict-overflow applies to pointer wraparound.
4571
4572 2008-04-13  Jan Hubicka  <jh@suse.cz>
4573
4574         * m32.c (m32c_pushm_popm): Use crtl->retrun_rtx.
4575
4576 2008-04-12  Andrew Pinski  <pinskia@gmail.com>
4577
4578         * config/rs6000/rs6000.c (compute_save_world_info): Set lr_save_p if
4579         we are going to "save the world".
4580
4581 2008-04-13  Hans-Peter Nilsson  <hp@axis.com>
4582
4583         * config/cris/cris.md ("*andhi_lowpart_non_v32", "*andhi_lowpart_v32")
4584         ("*andqi_lowpart_non_v32", "*andqi_lowpart_v32"): Use "+" for the
4585         operand 0 constraint, not "=".
4586
4587 2008-04-11  James E. Wilson  <wilson@tuliptree.org>
4588
4589         * system.h: Change ASSERT_CHECKING to ENABLE_ASSERT_CHECKING.
4590
4591 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
4592
4593         * dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
4594         of size of positions_needed * CHAR_BIT.
4595
4596 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
4597
4598         PR middle-end/35897
4599         * dse.c (store_info): Change positions_needed to unsigned
4600         HOST_WIDE_INT.
4601         (lowpart_bitmask): New.
4602         (record_store): Cast to unsigned HOST_WIDE_INT for
4603         positions_needed.  Assert width <= size of positions_needed *
4604         CHAR_BIT.  Call lowpart_bitmask to initialize positions_needed.
4605         (check_mem_read_rtx): Use unsigned HOST_WIDE_INT on mask.  Call
4606         lowpart_bitmask to set mask.
4607
4608 2008-04-11  Bernd Schmidt  <bernd.schmidt@analog.com>
4609
4610         * config/bfin/constraints.md: New file.
4611         * config/bfin/bfin.md: Include it.
4612         (adddi3): Use satisfies_constraint functions instead of the old macros.
4613         * config/bfin/bfin.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
4614         CONST_18UBIT_IMM_P, CONST_16BIT_IMM_P, CONST_16UBIT_IMM_P,
4615         CONST_7BIT_IMM_P, CONST_7NBIT_IMM_P, CONST_5UBIT_IMM_P,
4616         CONST_4BIT_IMM_P, CONST_4UBIT_IMM_P, CONST_3BIT_IMM_P,
4617         CONST_3UBIT_IMM_P, CONST_OK_FOR_K, CONST_OK_FOR_P, CONST_OK_FOR_M,
4618         CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER,
4619         EXTRA_CONSTRAINT): Delete.
4620         * config/bfin/predicates.md (highbits_operand, reg_or_7bit_operand,
4621         reg_or_neg7bit_operand): Use satisfies_constraint functions instead
4622         of the old macros.
4623         * config/bfin/bfin.c: Include "tm-constrs.h".
4624         (bfin_secondary_reload, split_load_immediate, bfin_rtx_costs):
4625         Use satisfies_constraint functions instead of the old macros.
4626         * doc/md.texi (Blackfin Constraints): Update file name reference.
4627
4628 2008-04-11  Richard Guenther  <rguenther@suse.de>
4629
4630         PR tree-optimization/35869
4631         * tree-vrp.c (execute_vrp): Move switch statement update after
4632         jump threading.  Schedule another cfg cleanup run.
4633
4634 2008-04-11  Volker Reichelt  <v.reichelt@netcologne.de>
4635
4636         PR c/35744
4637         * attribs.c (decl_attributes): Return early on errorneous node.
4638
4639 2008-04-10  Oleg Ryjkov  <olegr@google.com>
4640
4641         * tree.h (struct tree_base): Added a new flag default_def_flag.
4642         (SSA_NAME_IS_DEFAULT_DEF): Changed to use the new flag.
4643
4644 2008-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
4645
4646         * config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*.
4647
4648 2008-04-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4649
4650         PR target/35768
4651         * pa.md: Define mode iterator P.  Define mode attribute dwc.
4652         (dcacheflush): Update pattern to use iterator P and attribute dwc.
4653         (icacheflush): Likewise.
4654         * pa.h (INITIALIZE_TRAMPOLINE): Use dcacheflushsi/icacheflushsi if
4655         !TARGET_64BIT, and dcacheflushdi/icacheflushdi if TARGET_64BIT.
4656
4657 2008-04-11  Ben Elliston  <bje@au.ibm.com>
4658
4659         * config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
4660
4661 2008-04-10  Rafael Espindola  <espindola@google.com>
4662
4663         * tree-vrp.c (extract_range_from_binary_expr): Don't handle
4664         TRUTH_ANDIF_EXPR or TRUTH_ORIF_EXPR.
4665         (extract_range_from_expr): The same.
4666
4667 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
4668
4669         * config/mips/mips.md (GPR2): New mode iterator.
4670         (seq): Add comment.
4671         (*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
4672         *sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
4673         *slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
4674         Rewrite these to take two modes, the mode of comparison and the
4675         mode of the destination.
4676         * config/mips/mips.c (mips_expand_scc): Instead of having
4677         paradoxical subreg as destination, expand "narrowing" scc if mode
4678         of comparison is SI and target is requested in DI mode.
4679         (mips_emit_int_order_test): Update comment.  Make mode of
4680         comparison match CMP0 rather than TARGET.  When creating inverse
4681         target use mode of TARGET.
4682
4683 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
4684
4685         * gcov-dump.c (tag_summary): Only print summaries for the first
4686         GCOV_COUNTERS_SUMMABLE counters.
4687
4688 2008-04-10  Uros Bizjak  <ubizjak@gmail.com>
4689
4690         * config/i386/i386.md (absneg): New code iterator.
4691         (absnegprefix): New code attribute.
4692         (<code><mode>2): Macroize expander from abs<mode>2 and neg<mode>2
4693         patterns using absneg code iterator.
4694         (<code>tf2): Macroize expander from abstf2 and negtf2 patterns
4695         using absneg code iterator.
4696         (*<code><mode>2_1): Macroize insn pattern from *abs<mode>2_1 and
4697         *neg<mode>2 patterns using absneg code iterator.
4698         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
4699         *negextendsfdf2 patterns using absneg code iterator.
4700         (*<code>extendsfxf2): Macroize insn pattern from *absextendsfxf2 and
4701         *negextendsfxf2 patterns using absneg code iterator.
4702         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
4703         *negextendsfdf2 patterns using absneg code iterator.
4704         * config/i386/sse.md (<code><mode>2): Macroize expander from
4705         abs<mode>2 and neg<mode>2 patterns using absneg code iterator. 
4706
4707 2008-04-10  Andreas Krebbel  <krebbel1@de.ibm.com>
4708
4709         * config/s390/s390.h: Remove the remains of the recent search
4710         & replace action of current_function_outgoing_args_size.
4711
4712 2008-04-10  Ira Rosen  <irar@il.ibm.com>
4713
4714         PR tree-optimization/35821
4715         * tree-vect-transform.c (vect_create_data_ref_ptr): Add check that
4716         NEW_STMT_LIST is not NULL.
4717
4718 2008-04-09  David Edelsohn  <edelsohn@gnu.org>
4719
4720         PR libstdc++/35597
4721         * toplev.c (process_options): Remove -ffunction-sections debugging
4722         warning.
4723
4724 2008-04-09  Peter Bergner  <bergner@vnet.ibm.com>
4725
4726         PR middle-end/PR28690
4727         * explow.c (break_out_memory_refs): Use simplify_gen_binary rather
4728         than gen_rtx_fmt_ee to perform more canonicalizations.
4729
4730 2008-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4731
4732         PR driver/35665
4733         * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
4734
4735 2008-04-09  Richard Guenther  <rguenther@suse.de>
4736
4737         * tree-cfg.c (verify_stmt): Print complete bogus stmt.
4738         (dump_function_to_file): Dump function arguments with types.
4739
4740 2008-04-08  Richard Guenther  <rguenther@suse.de>
4741
4742         * fold-const.c (fold_widened_comparison): Do not allow
4743         sign-changes that change the result.
4744
4745 2008-04-08  Janis Johnson  <janis187@us.ibm.com>
4746
4747         PR target/35839
4748         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
4749         kinds of indirect references.
4750
4751 2008-04-08  David Edelsohn  <edelsohn@gnu.org>
4752
4753         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
4754         GNU Fortran language string.
4755
4756 2008-04-08  Rafael Espindola  <espindola@google.com>
4757
4758         * fold-canst.c (tree_call_nonnegative_warnv_p): New.
4759         (tree_invalid_nonnegative_warnv_p): Use tree_call_nonnegative_warnv_p.
4760         * tree.h (tree_call_nonnegative_warnv_p): New.
4761
4762 2008-04-08  Jan Hubicka  <jh@suse.cz>
4763
4764         * function.c (free_after_compilation): Clear out regno_reg_rtx
4765         pointer.
4766
4767 2008-04-08  Peter Bergner  <bergner@vnet.ibm.com>
4768
4769         Revert
4770         2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
4771
4772         PR middle-end/PR28690
4773         * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
4774         same precedence as REG_POINTER and MEM_POINTER operands.
4775
4776 2008-04-08  Richard Guenther  <rguenther@suse.de>
4777
4778         PR middle-end/35834
4779         * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
4780         for adding index to base.
4781
4782 2008-04-08  Kai Tietz  <kai.tietz@onevision.com>
4783
4784         * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
4785         (MINGW_ENABLE_EXECUTE_STACK): New.
4786         (IN_LIBGCC2): For libgcc include windows.h file for
4787         function declarations.
4788
4789 2008-04-08  Hans-Peter Nilsson  <hp@axis.com>
4790
4791         * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
4792         and tem2 if tem1 is not a REG or MULT.
4793
4794 2008-04-08  Jan Hubicka  <jh@suse.cz>
4795
4796         * function.h (incomming_args): Break out of struct function.
4797         (function_subsections): Break out of struct function.
4798         (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
4799         return_rtx and hard_reg_initial_vals from struct function.
4800         Kill inl_max_label_num.
4801         (current_function_pops_args, current_function_args_info,
4802         current_function_args_size, current_function_args_size,
4803         current_function_pretend_args_size,
4804         current_function_outgoing_args_size,
4805         current_function_internal_arg_pointer, current_function_return_rtx):
4806         Kill compatibility accestor macros.
4807         * builtins.c (expand_builtin_apply_args_1): Update.
4808         (expand_builtin_next_arg): Update.
4809         * df-scan.c (df_get_call_refs): Update.
4810         * dbxout.c (dbxout_function_end): Update.
4811         * dwarf2out.c (dwarf2out_switch_text_section): Update.
4812         (output_line_info): Update.
4813         (secname_for_decl): Update.
4814         (dwarf2out_var_location): Update.
4815         * function.c (free_after_compilation): Update.
4816         (assign_parm_find_stack_rtl): Update.
4817         (assign_parms): Update.
4818         (expand_dummy_function_end): Update.
4819         (expand_function_end): Update.
4820         * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
4821         (expand_call): Update.
4822         (emit_library_call_value_1): Update.
4823         (store_one_arg): Update.
4824         * varasm.c (initialize_cold_section_name): Update.
4825         (unlikely_text_section): Update.
4826         (unlikely_text_section_p): Update.
4827         (assemble_start_function): Update.
4828         (assemble_end_function): Update.
4829         (default_section_type_flags): Update.
4830         (switch_to_section): Update.
4831         * integrate.c (set_decl_abstract_flags): Update.
4832         (get_hard_reg_initial_val): Update.
4833         (has_hard_reg_initial_val): Update.
4834         (allocate_initial_values): Update.
4835         * resource.c (init_resource_info): Update.
4836         * config/alpha/alpha.c (NUM_ARGS): Update.
4837         (direct_return): Update.
4838         (alpha_va_start): Update.
4839         (alpha_sa_size): Update.
4840         (alpha_initial_elimination_offset): Update.
4841         (alpha_expand_prologue): Update.
4842         (alpha_start_function): Update.
4843         (alpha_expand_epilogue): Update.
4844         (unicosmk_initial_elimination_offset):
4845         * config/alpha/alpha.md (call expander): Update.
4846         * config/s390/s390.c (s390_register_info): Update.
4847         (s390_register_info): Update.
4848         (s390_frame_info): Update.
4849         (s390_initial_elimination_offset): Update.
4850         (s390_build_builtin_va_list): Update.
4851         (s390_va_start): Update.
4852         * config/spu/spu.c (direct_return): Update.
4853         (spu_expand_prologue): Update.
4854         (spu_initial_elimination_offset): Update.
4855         (spu_build_builtin_va_list): Update.
4856         (spu_va_start): Update.
4857         * config/sparc/sparc.c (sparc_init_modes): Update.
4858         (sparc_compute_frame_size): Update.
4859         (function_value): Update.
4860         * config/m32r/m32r.c (m32r_compute_frame_size): Update.
4861         * config/i386/i386.md (return expander): Update.
4862         * config/i386/i386.c (ix86_va_start): Update.
4863         (ix86_can_use_return_insn_p): Update.
4864         (ix86_compute_frame_layout): Update.
4865         (ix86_expand_epilogue): Update.
4866         * config/sh/sh.c (output_stack_adjust): Update.
4867         (calc_live_regs): Update.
4868         (sh_expand_prologue): Update.
4869         (sh_builtin_saveregs): Update.
4870         (sh_va_start): Update.
4871         (initial_elimination_offset): Update.
4872         (sh_allocate_initial_value): Update.
4873         (sh_function_ok_for_sibcall): Update.
4874         (sh_get_pr_initial_val): Update.
4875         * config/sh/sh.md (return expander): Update.
4876         * config/avr/avr.c (frame_pointer_required_p): UPdate.
4877         * config/crx/crx.c (crx_compute_frame): UPdate.
4878         (crx_initial_elimination_offset): UPdate.
4879         * config/xtensa/xtensa.c (compute_frame_size): Update
4880         (xtensa_builtin_saveregs): Update.
4881         (xtensa_va_start): Update.
4882         (order_regs_for_local_alloc): Update.
4883         * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
4884         (xstormy16_expand_builtin_va_start): Update.
4885         * config/fr30/fr30.c (fr30_compute_frame_size): Update.
4886         * config/m68hc11/m68hc11.md (return expanders): Update.
4887         * config/m68hc11/m68hc11.c (expand_prologue): Update.
4888         (expand_epilogue): Update.
4889         * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
4890         (cris_simple_epilogue): Update.
4891         (cris_expand_prologue): Update.
4892         (cris_expand_epilogue): Update.
4893         * config/iq2000/iq2000.c (iq2000_va_start): Update.
4894         (compute_frame_size): Update.
4895         * config/mt/mt.c (mt_compute_frame_size): Update.
4896         * config/mn10300/mn10300.c (expand_prologue): Update.
4897         (expand_epilogue): Update.
4898         (initial_offset): Update.
4899         (mn10300_builtin_saveregs):
4900         * config/mn10300/mn10300.md (return expander): Update.
4901         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
4902         (ia64_initial_elimination_offset): Update.
4903         (ia64_initial_elimination_offset): Update.
4904         (ia64_expand_prologue): Update.
4905         * config/m68k/m68k.md (return expander): Update.
4906         * config/rs6000/rs6000.c (rs6000_va_start): Update.
4907         (rs6000_stack_info): Update.
4908         * config/mcore/mcore.c (layout_mcore_frame): Update.
4909         (mcore_expand_prolog): Update.
4910         * config/arc/arc.c (arc_compute_frame_size): Update.
4911         * config/score/score3.c (score3_compute_frame_size): Update.
4912         * config/score/score7.c (score7_compute_frame_size): Update.
4913         * config/arm/arm.c (use_return_insn): Update.
4914         (thumb_find_work_register): Update.
4915         (arm_compute_save_reg_mask): Update.
4916         (arm_output_function_prologue): Update.
4917         (arm_output_epilogue): Update.
4918         (arm_size_return_regs): Update.
4919         (arm_get_frame_offsets): Update.
4920         (arm_expand_prologue): Update.
4921         (thumb_exit): Update.
4922         (thumb_unexpanded_epilogue): Update.
4923         (thumb1_output_function_prologue): Update.
4924         * config/pa/pa.md (return expander): Update.
4925         * config/pa/pa.c (compute_frame_size): Update.
4926         (hppa_builtin_saveregs): Update.
4927         * config/mips/mips.c (mips_va_start): Update.
4928         (mips16_build_function_stub): Update.
4929         (mips_compute_frame_info): Update.
4930         (mips_restore_gp): Update.
4931         (mips_output_function_prologue): Update.
4932         (mips_expand_prologue): Update.
4933         * config/v850/v850.c (compute_frame_size): Update.
4934         (expand_prologue): * config/mmix/mmix.c (along): update.
4935         (mmix_initial_elimination_offset): update.
4936         (mmix_reorg): update.
4937         (mmix_use_simple_return): update.
4938         (mmix_expand_prologue): update.
4939         (mmix_expand_epilogue): Update.
4940         * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
4941         (emit_link_insn): Update.
4942
4943 2008-04-08  Anatoly Sokolov <aesok@post.ru>
4944
4945         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define 
4946         __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL 
4947         instructions.
4948         * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for 
4949         atmega103 device.
4950
4951 2008-04-07  Jan Hubicka  <jh@suse.cz>
4952
4953         * function.h (rtl): Rename to x_rtl.
4954         (crtl): New define.
4955         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
4956         frame_offset, stack_check_probe_note, arg_pointer_save_area,
4957         used_temp_slots avail_temp_slots, temp_slot_level,
4958         nonlocal_goto_handler_labels): Update accesstors.
4959         (rtl): New global variable.
4960         (struct function): Move some fileds to rtl_data.
4961         (get_arg_pointer_save_area): Update prototype.
4962         * builtins.c (expand_builtin_setjmp_receiver): Update call of
4963         get_arg_pointer_save_area.
4964         * expr.c (init_expr): Update
4965         * function.c (get_frame_size): Update
4966         (assign_stack_local): Update
4967         (expand_function_end): Update.
4968         (get_art_pointer_save_area): Update
4969         * function.h 
4970         * emit-rtl.c (rtl): Declare.
4971         (regno_reg_rtx): Declare.
4972         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
4973         Update.
4974         (gen_reg_rtx): Update.
4975         * varasm.c (n_deferred_constatns): Update accestor.
4976         (init_varasm_status): Do not allocate varasm_status.
4977         (force_const_mem, get_pool_size, output_constant_pool): Update.
4978         * stmt.c (force_label_rtx): Do not use x_ prefixes.
4979         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
4980         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
4981         * sparc/sparc.h (INIT_EXPANDERS): Update.
4982         * ia64/ia64.h (INIT_EXPANDERS): Update.
4983
4984 2008-04-07  James E. Wilson  <wilson@tuliptree.org>
4985
4986         * reload.c (push_secondary_reload): Add missing break to for loop.
4987
4988 2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
4989
4990         PR middle-end/PR28690
4991         * rtlanal.c: Update copyright years.
4992         (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
4993         as REG_POINTER and MEM_POINTER operands.
4994         * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
4995         (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
4996         * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
4997         * gcse.c: Update copyright years.
4998         (pre_delete): Call gen_reg_rtx_and_attrs.
4999         (hoist_code): Likewise.
5000         (build_store_vectors): Likewise.
5001         (delete_store): Likewise.
5002         * loop-invariant.c (move_invariant_reg): Likewise.
5003         Update copyright years.
5004
5005 2008-04-07  Uros Bizjak  <ubizjak@gmail.com>
5006
5007         * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
5008         control string instead of quoted.
5009
5010 2008-04-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
5011
5012         * doc/rtl.texi: Rewrite of subreg section.
5013
5014 2008-04-07  Kai Tietz  <kai.tietz@onevision.com>
5015
5016         PR/35842
5017         * config/i386/i386.c (legitimize_pic_address): Add treating
5018         of dllimport SYM_REF's.
5019         (legitimize_dllimport_symbol): Add prototype.
5020
5021 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
5022
5023         * fold-const.c (fold) <ARRAY_REF>: New case.  Try to fold constant
5024         reference in constructor with non self-referential type.
5025
5026 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
5027
5028         Removal of Return with Depressed Stack Pointer support
5029         * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
5030         (ECF_SP_DEPRESSED): Likewise.
5031         (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
5032         * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
5033         (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
5034         (expand_call): Do not test ECF_SP_DEPRESSED.
5035         * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
5036         * function.c (keep_stack_depressed): Delete.
5037         (handle_epilogue_set): Likewise.
5038         (update_epilogue_consts): Likewise.
5039         (emit_equiv_load): Likewise.
5040         (thread_prologue_and_epilogue_insns): Remove support for Return with
5041         Depressed Stack Pointer.
5042         * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
5043
5044 2008-04-06  Richard Guenther  <rguenther@suse.de>
5045
5046         PR tree-optimization/35400
5047         * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
5048         information from SSA_NAMEs.
5049
5050 2008-04-06  Anatoly Sokolov <aesok@post.ru>
5051
5052         * config/avr/avr.h (avr_mega_p): Remove declaration.
5053         (AVR_MEGA): Remove macro.
5054         * config/avr/avr.c (avr_mega_p): Remove variable.
5055         (avr_override_options): Remove inicializion of avr_mega_p.
5056         Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
5057         (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
5058         (avr_jump_mode): (Ditto.).
5059         (avr_output_progmem_section_asm_op): (Ditto.).
5060         (avr_asm_init_sections): (Ditto.).
5061         (avr_asm_init_sections): (Ditto.).
5062         (avr_rtx_costs): (Ditto.).
5063         * config/avr/avr.md: (Ditto.).
5064         * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of 
5065         '__AVR_MEGA__'.
5066
5067 2008-04-06  Richard Guenther  <rguenther@suse.de>
5068
5069         PR tree-optimization/35842
5070         * tree-ssa-address.c (fixed_address_object_p): Adjust to match
5071         is_gimple_invariant_address.
5072
5073 2008-04-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
5074
5075         * gcc.c (default_compilers): Sync Fortran extensions list with
5076         that in fortran/lang-specs.h.
5077         * doc/invoke.texi: Likewise.
5078         * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
5079         * dwarf2out.c (gen_compile_unit_die): Likewise.
5080
5081 2008-04-06  Tom G. Christensen  <tgc@jupiterrise.com>
5082
5083         * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
5084
5085 2008-04-05  Uros Bizjak  <ubizjak@gmail.com>
5086
5087         PR target/12329
5088         * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
5089         attribute is used for nested functions.
5090
5091 2008-04-05  Jan Hubicka  <jh@suse.cz>
5092
5093         * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
5094
5095         * tree-dump.c (dump_enable_all): Remove prototype; do not accept
5096         letter argument.
5097         (dump_files): Update.
5098         (enable_rtl_dump_file): Do not accept letter argument.
5099         * tree-pass.h (dump_file_info): Remove letter argument.
5100         * toplev.c (decode_d_option): Update -da handling.
5101         * toplev.h (enable_rtl_dump_file): Update prototype.
5102         * passes.c (register_one_dump_file): Do not accept IPA argument; work
5103         it out based on pass type.
5104         (register_dump_files_1): Likewise.
5105         (init_optimization_passes): Update register_one_dump_file calls.
5106         (execute_one_pass): Sanity check that IPA passes are called at IPA
5107         level and RTL passes at RTL level.
5108         (execute_pass_list): IPA pass can not be after or subpass of
5109         GIMPLE/RTL pass.
5110         (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
5111         disallov RTL subpasses of IPA subpasses.
5112
5113 2008-04-05  Ben Elliston  <bje@au.ibm.com>
5114
5115         * tree-cfg.c (need_fake_edge_p): Return false for calls to
5116         builtins that return exactly once and do not throw. Cache call to
5117         call_expr_flags.
5118
5119 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
5120
5121         PR rtl-optimization/34916
5122         PR middle-end/35519
5123         * combine.c (create_log_links): Do not create duplicate LOG_LINKS
5124         between instruction pairs.
5125
5126 2008-04-04  Naveen.H.S  <naveen.hs@kpitcummins.com>
5127
5128         * doc/invoke.texi: Document -mbitops for SH.
5129         * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
5130         * config/sh/predicates.md (bitwise_memory_operand): New predicate.
5131         * config/sh/sh.c (print_operand): Add %t operand code.
5132         * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
5133         * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
5134         (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
5135         (extendqihi2): Likewise.
5136         (movqi_i): Likewise.
5137         (insv): Use bset, bclr and bst instructions for SH2A if possible.
5138         (extv): Use bld instruction for SH2A if possible.
5139         (extzv): Likewise.
5140         (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
5141         bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
5142         bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
5143         (bset.b, bclr.b): Define peepholes.
5144         * config/sh/sh.opt (mbitops): New option.
5145
5146 2008-04-04  Janis Johnson  <janis187@us.ibm.com>
5147
5148         PR target/35620
5149         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
5150         and view convert expression.
5151
5152 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
5153
5154         PR target/35364
5155         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
5156
5157 2008-04-04  H.J. Lu  <hongjiu.lu@intel.com>
5158
5159         * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
5160
5161         * config/i386/cpuid.h (bit_AES): New.
5162         (bit_PCLMUL): Likewise.
5163
5164         * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
5165         (override_options): Handle PTA_AES and PTA_PCLMUL.  Enable
5166         SSE2 if AES or PCLMUL is enabled.
5167         (ix86_builtins): Add IX86_BUILTIN_AESENC128,
5168         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
5169         IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
5170         IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
5171         (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
5172         (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
5173         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
5174         IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
5175         (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
5176         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
5177         __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
5178         __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
5179         __builtin_ia32_aeskeygenassist128 and
5180         __builtin_ia32_pclmulqdq128.
5181         * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
5182         (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
5183         IX86_BUILTIN_PSRLDQI128.  Handle IX86_BUILTIN_AESKEYGENASSIST128.
5184
5185         * config/i386/i386.h (TARGET_AES): New.
5186         (TARGET_PCLMUL): Likewise.
5187         (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
5188
5189         * config/i386/i386.md (UNSPEC_AESENC): New.
5190         (UNSPEC_AESENCLAST): Likewise.
5191         (UNSPEC_AESDEC): Likewise.
5192         (UNSPEC_AESDECLAST): Likewise.
5193         (UNSPEC_AESIMC): Likewise.
5194         (UNSPEC_AESKEYGENASSIST): Likewise.
5195         (UNSPEC_PCLMUL): Likewise.
5196
5197         * config/i386/i386.opt (maes): New.
5198         (mpclmul): Likewise.
5199
5200         * config/i386/sse.md (aesenc): New pattern.
5201         (aesenclast): Likewise.
5202         (aesdec): Likewise.
5203         (aesdeclast): Likewise.
5204         (aesimc): Likewise.
5205         (aeskeygenassist): Likewise.
5206         (pclmulqdq): Likewise.
5207
5208         * config/i386/wmmintrin.h: New.
5209
5210         * doc/extend.texi: Document AES and PCLMUL built-in function.
5211
5212         * doc/invoke.texi: Document -maes and -mpclmul.
5213
5214 2008-04-04  Paolo Bonzini  <bonzini@gnu.org>
5215
5216         * function.c (free_after_parsing): Replace with
5217         cxx_push_function_context from C++ front-end.
5218         (allocate_struct_function): Don't call langhook.
5219         * langhooks.h (struct lang_hooks_for_functions): Delete.
5220         (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
5221         member "function".
5222         * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
5223         (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
5224         LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
5225         LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
5226         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
5227         remove LANG_HOOKS_FUNCTION_INITIALIZER.
5228         * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
5229
5230         * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
5231         Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
5232         
5233 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
5234
5235         PR c/35440
5236         * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
5237         for all types.
5238
5239 2008-04-04  Richard Guenther  <rguenther@suse.de>
5240
5241         PR middle-end/35823
5242         * fold-const.c (optimize_minmax_comparison): Use the correct
5243         type for the constant in the simplified comparison.
5244
5245 2008-04-04  Zuxy Meng <zuxy.meng@gmail.com>
5246
5247         * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
5248         Pass L2 size as "--param l2-cache-size" to the compiler.
5249         (decode_l2_cache): New function to decode L2 cache parameters using
5250         0x8000006 extended cpuid function.
5251         (detect_caches_amd): Determine parameters of L2 cache using
5252         decode_l2_caches function.
5253         (decode_caches_intel): Decode L2 cache parameters.
5254         (detect_caches_intel): Determine L2 cache parameters using
5255         decode_caches_intel and decode_l2_caches functions.
5256
5257 2008-04-03  Bob Wilson  <bob.wilson@acm.org>
5258
5259         * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
5260         secondary input reload for subword loads from the constant pool.
5261
5262 2008-04-03  Janis Johnson  <janis187@us.ibm.com>
5263
5264         PR target/35713
5265         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
5266           constants of the appropriate size for runtime calculations.
5267
5268         PR c/35712
5269         * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
5270           decimal-float literal constant zero.
5271
5272 2008-04-03  Jakub Jelinek  <jakub@redhat.com>
5273
5274         PR c/35738
5275         * c-parser.c (c_parser_omp_atomic): Call
5276         default_function_array_conversion on the RHS.
5277
5278         PR middle-end/35818
5279         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
5280         call is_variable_sized if decl has incomplete type.
5281
5282 2008-04-03  H.J. Lu  <hongjiu.lu@intel.com>
5283
5284         * config/i386/i386-protos.h (ix86_aligned_p): Removed.
5285
5286 2008-04-03  Adam Nemet  <anemet@caviumnetworks.com>
5287
5288         * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
5289         iterators.
5290         (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and leu.
5291         (sgt<u>): Merge sgt and sgtu into new expander.
5292         (sgt, sgtu): Remove expanders.
5293         (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new pattern.
5294         (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
5295         (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
5296         *sgtu_<mode>_mips16 into new pattern.
5297         (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
5298         (sge<u>): Merge sge and sgeu into new expander.
5299         (sge, sgeu): Remove expanders.
5300         (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
5301         new pattern.
5302         (*sge_<mode>, second *sge_<mode>): Remove patterns.
5303         (slt<u>): Merge slt and sltu into new expander.
5304         (slt, sltu): Remove expanders.
5305         (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new pattern.
5306         (*slt_<mode>, *sltu_<mode>): Remove patterns.
5307         (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
5308         *sltu_<mode>_mips16 into new pattern.
5309         (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
5310         (sle<u>): Merge sle and sleu into new expander.
5311         (sle, sleu): Remove expanders.
5312         (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new pattern.
5313         (*sle_<mode>, *sleu_<mode>): Remove patterns.
5314         (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
5315         *sleu_<mode>_mips16 into new pattern.
5316         (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
5317
5318 2008-04-03  Jan Hubicka  <jh@suse.cz>
5319
5320         PR tree-optimization/35795
5321         * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
5322         * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
5323         * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
5324         * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
5325         * score/score3.c (score3_output_mi_thunk): Likewise.
5326         * score/score7.c (score7_output_mi_thunk): Likewise.
5327         * mips/mips.c (mips_output_mi_thunk): Likewise.
5328
5329 2008-04-03  Richard Guenther  <rguenther@suse.de>
5330
5331         * tree-vrp.c (extract_range_from_unary_expr): Handle all
5332         conversions.  Simplify code.
5333
5334 2008-04-03  Kaz Kojima  <kkojima@gcc.gnu.org>
5335
5336         * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
5337
5338 2008-04-03  Tom Tromey  <tromey@redhat.com>
5339             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5340
5341         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
5342         * config/bfin/t-bfin-linux (generated_files): Add
5343         linux-sysroot-suffix.h.
5344         * doc/install.texi (Prerequisites): Require make 3.80.
5345         * doc/sourcebuild.texi (Front End Directory): Document new
5346         variable.
5347         * Makefile.in (generated_files): New variable.
5348         (ALL_HOST_OBJS): New variable.
5349         ($(ALL_HOST_OBJS)): New target.
5350
5351 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
5352
5353         * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
5354         (remap_block): Call id->transform_lang_insert_block instead
5355         of langhook.
5356         (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
5357         Set id.transform_lang_insert_block to NULL.
5358         (clone_body): Move to cp/optimize.c
5359         * tree-inline.h (struct copy_body_data): Change
5360         transform_lang_insert_block to function pointer.
5361         (copy_generic_body, copy_decl_no_change): Export.
5362         * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
5363         * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
5364         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
5365
5366         * c-tree.h (insert_block): Kill.
5367         * c-decl.c (insert_block): Kill.
5368
5369 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
5370
5371         * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
5372         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
5373         * c-tree.h (c_push_function_context, c_pop_function_context): Remove
5374         argument.
5375         * c-decl.c (c_push_function_context, c_pop_function_context): Remove
5376         argument, call {push,pop}_function_context from here.
5377         * c-parser.c: Use c_{push,pop}_function_context.
5378
5379         * function.c (push_function_context_to): Move meat ...
5380         (push_function_context): ... here.  Simplify.
5381         * function.c (pop_function_context_from): Move meat ...
5382         (pop_function_context): ... here.  Simplify.
5383         * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
5384         leave_nested).
5385         * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
5386         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
5387         (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
5388         * tree.h (push_function_context_to, pop_function_context_from): Remove.
5389
5390 2008-04-03  Ben Elliston  <bje@au.ibm.com>
5391
5392         * expmed.c (extract_force_align_mem_bit_field): Remove.
5393
5394 2008-04-03  Richard Guenther  <rguenther@suse.de>
5395
5396         PR middle-end/35800
5397         * expr.h (try_casesi): Adjust prototype.
5398         * expr.c (try_casesi): Take fallback label as extra parameter.
5399         Use that for gen_casesi if default_label is NULL.
5400         * stmt.c (expand_case): Pass fallback label to try_casesi,
5401         make sure to fill gaps with a fallback label if default_label
5402         is not present.
5403
5404 2008-04-03  Dominique d'Humieres <dominiq@lps.ens.fr>
5405
5406         PR target/35801
5407         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
5408
5409 2008-04-03  Ben Elliston  <bje@au.ibm.com>
5410
5411         * expmed.c (extract_split_bit_field): Remove if (0) code.
5412         * tree-ssa-structalias.c (do_sd_constraint): Likewise.
5413         (do_ds_constraint): Likewise.
5414
5415 2008-04-02  Joseph Myers  <joseph@codesourcery.com>
5416
5417         * doc/cppopts.texi (-dU): Document.
5418         * c-common.h (flag_dump_macros): Update comment.
5419         * c-opts.c (handle_OPT_d): Handle -dU.
5420         * c-ppoutput.c (macro_queue, define_queue, undef_queue,
5421         dump_queued_macros, cb_used_define, cb_used_undef): New.
5422         (init_pp_output): Handle -dU.
5423         (cb_line_change): Call dump_queued_macros.
5424         * toplev.c (decode_d_option): Accept -dU as preprocessor option.
5425
5426 2008-04-02  Anatoly Sokolov <aesok@post.ru>
5427
5428         * config/avr/predicates.md (io_address_operand): New predicate. 
5429         * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
5430         * config/avr/avr.c (avr_io_address_p): Remove function.
5431         (out_movqi_r_mr): Use 'io_address_operand' predicate instead of 
5432         'avr_io_address_p' function.
5433         (out_movhi_r_mr): (Ditto.).
5434         (out_movqi_mr_r): (Ditto.).
5435         (out_movhi_mr_r): (Ditto.).
5436         (avr_address_cost): (Ditto.).
5437
5438 2008-04-02  Uros Bizjak  <ubizjak@gmail.com>
5439
5440         * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
5441         Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
5442         in 32bit mode when XMM registers are available to avoid store
5443         forwarding stalls.
5444         (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
5445         corresponding post-reload splitters.
5446
5447 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
5448
5449         * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
5450         and __builtin_ia32_shufpd.  Provide __builtin_ia32_roundsd and
5451         __builtin_ia32_roundss.
5452         (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
5453         __builtin_ia32_shufpd, __builtin_ia32_roundsd and
5454         __builtin_ia32_roundss.
5455         (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
5456         IX86_BUILTIN_SHUFPD here.
5457
5458 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
5459
5460         * config/i386/i386.md (plogic): New.
5461         (plogicprefix): Likewise.
5462
5463         * config/i386/mmx.md (mmx_<code><mode>3): New.
5464         (mmx_and<mode>3): Removed.
5465         (mmx_ior<mode>3): Likewise.
5466         (mmx_xor<mode>3): Likewise.
5467
5468         * config/i386/sse.md (<code><mode>3): New.
5469         (*<code><mode>3): Likewise.
5470         (*<code><mode>3): Likewise.
5471         (<code><mode>3): Likewise.
5472         (*sse_<code><mode>3): Likewise.
5473         (*sse2_<code><mode>3): Likewise.
5474         (<code>tf3): Likewise.
5475         (*<code>tf3): Likewise.
5476         (and<mode>3): Likewise.
5477         (*and<mode>3): Likewise.
5478         (ior<mode>3): Removed.
5479         (*ior<mode>3): Likewise.
5480         (xor<mode>3): Likewise.
5481         (*xor<mode>3): Likewise.
5482         (*and<mode>3): Likewise.
5483         (*ior<mode>3): Likewise.
5484         (*xor<mode>3): Likewise.
5485         (and<mode>3): Likewise.
5486         (*sse_and<mode>3): Likewise.
5487         (*sse2_and<mode>3): Likewise.
5488         (andtf3): Likewise.
5489         (*andtf3): Likewise.
5490         (ior<mode>3): Likewise.
5491         (*sse_ior<mode>3): Likewise.
5492         (*sse2_ior<mode>3): Likewise.
5493         (iortf3): Likewise.
5494         (*iortf3): Likewise.
5495         (xor<mode>3): Likewise.
5496         (*sse_xor<mode>3): Likewise.
5497         (*sse2_xor<mode>3): Likewise.
5498         (xortf3): Likewise.
5499         (*xortf3): Likewise.
5500
5501 2008-04-02  Richard Guenther  <rguenther@suse.de>
5502
5503         PR tree-optimization/14495
5504         PR tree-optimization/34793
5505         * tree-vrp.c (struct switch_update): New structure.
5506         (to_remove_edges, to_update_switch_stmts): New VECs.
5507         (simplify_switch_using_ranges): New function.  Remove not taken
5508         case labels and edges.
5509         (simplify_stmt_using_ranges): Call it.
5510         (identify_jump_threads): Mark edges we have queued for removal
5511         so we don't thread them.
5512         (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
5513         case label vector.
5514         * tree-cfg.c (group_case_labels): Deal with missing default label.
5515         (tree_verify_flow_info): Allow missing default label.
5516         * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
5517         (emit_case_nodes): Likewise.
5518         (expand_case): Do not rely on the default label to be present.
5519         * expr.c (try_casesi): Deal with NULL default_label.
5520         (do_tablejump): Likewise.
5521
5522 2008-04-02  Richard Guenther  <rguenther@suse.de>
5523
5524         PR tree-optimization/14495
5525         * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
5526         SWITCH_EXPR here ...
5527         (vrp_visit_switch_stmt): ... but here (new function).
5528         (find_case_label_index): New helper function.
5529         (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
5530
5531 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
5532
5533         * fwprop.c: Fix ISO-C99ism.
5534
5535 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
5536
5537         PR bootstrap/35752
5538         * Makefile.in (objdir): Set it here.
5539         * configure.ac: Not here.  Find dynamic linker characteristics.
5540         * exec-tool.in: Use them.
5541         * aclocal.m4: Regenerate.
5542         * configure: Regenerate.
5543
5544 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
5545
5546         * expr.c (expand_var): Delete it.
5547         * expr.h (expand_var): Delete prototype.
5548         * function.c (expand_function_start): Use expand_decl instead.
5549         * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
5550         langhook.
5551
5552 2008-04-02  Andy Hutchinson <hutchinsonamdy@aim.com>
5553
5554         PR rtl-optimization/35542
5555         * fwprop.c (forward_propagate_and_simplify): Replace
5556         loc_reg_mentioned_in_p with reg_mentioned_p.
5557
5558 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
5559
5560         PR rtl-optimization/35281
5561         * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
5562         (propagate_rtx_1): Handle PR_HANDLE_MEM.
5563         (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
5564         (varying_mem_p): Move above propagate_rtx.
5565         (all_uses_available_at): Do not check MEMs.
5566
5567 2008-04-02  Rafael Espindola  <espindola@google.com>
5568
5569         * tree-vrp.c (extract_code_and_val_from_cond): Remove.
5570         (register_edge_assert_for_2): Split the cond argument.
5571         (register_edge_assert_for_1): Adjust for the change in
5572         register_edge_assert_for_2.
5573         (register_edge_assert_for): Split the cond argument.
5574         (find_switch_asserts): Adjust for the change in
5575         register_edge_assert_for.
5576
5577 2008-04-02  Kai Tietz  <kai.tietz@onevision.com>
5578
5579         * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
5580         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
5581         offsets for 64-bit mingw.
5582         * config/i386/i386.c (ix86_pass_by_reference): Correct calling
5583         abi for x86_64-pc-mingw.
5584
5585 2008-04-02  Richard Guenther  <rguenther@suse.de>
5586
5587         * tree-vrp.c (extract_range_from_assert): Make sure to not
5588         produce range min/max with TREE_OVERFOW set.
5589         If merging a anti-range and a range keep the anti-range if
5590         the range covers all values of the type.
5591         (register_edge_assert_for_2): Only allow sign-changing
5592         conversions in detecting canonical range checks.  Also
5593         register an assert for the unsigned name if useful.
5594
5595         PR tree-optimization/35787
5596         * tree-vrp.c (vrp_val_max): New function.
5597         (vrp_val_min): Likewise.
5598         (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
5599         (vrp_val_is_min): Likewise.
5600         (supports_overflow_infinity): Use vrp_val_{min,max}.
5601         (negative_overflow_infinity): Likewise.
5602         (positive_overflow_infinity): Likewise.
5603         (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
5604         (is_positive_overflow_infinity): Likewise.
5605         (is_overflow_infinity): Likewise.
5606         (avoid_overflow_infinity): Use vrp_val_{min,max} and
5607         vrp_val_is_{min,max}.
5608         (set_and_canonicalize_value_range): Canonicalize anti-ranges
5609         to ranges if possible.  Avoid empty ranges.
5610
5611 2008-04-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5612
5613         PR middle-end/35705
5614         * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
5615         the expression is a function address.
5616
5617 2008-04-01  George Helffrich  <george@gcc.gnu.org>
5618
5619         PR fortran/35154, fortran/23057
5620         * dbxout.c: Emit .stabs debug info for Fortran COMMON block
5621         variables as base symbol name + offset using N_BCOMM/N_ECOMM.
5622         (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
5623         (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
5624         in common.
5625         (dbxout_syms): Check for COMMON-based symbol and wrap in
5626         N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
5627         in bracket for efficiency.
5628
5629         * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
5630         using DW_TAG_common_block + member offset.
5631         (add_pubname_string): New function.
5632         (dw_expand_expr): New function to find block name and offset for
5633         COMMON var.
5634         (common_check): New function to check whether symbol in Fortran COMMON.
5635         (gen_variable_die): If COMMON, use DW_TAG_common_block.
5636
5637 2008-04-01  Volker Reichelt  <v.reichelt@netcologne.de>
5638
5639         PR c/35436
5640         * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
5641
5642 2008-04-02  Ben Elliston  <bje@au.ibm.com>
5643
5644         * config/v850/v850.md (casesi): Remove if (0) code.
5645         * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
5646         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
5647
5648 2008-04-01  Uros Bizjak  <ubizjak@gmail.com>
5649
5650         * config/i386/i386.md (rex64suffix): New mode attribute.
5651         (floathi<mode>2): Disable expander for SSE math.
5652         (*floathi<mode>2_1): New insn insn_and_split pattern.
5653         (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
5654         corresponding post-reload splitters.
5655         (*floathi<mode>2_i387): New macroized insn pattern.
5656         (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
5657         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
5658         insn_and_split pattern.
5659         (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
5660         New macroized instruction patterns and corresponding post-reload
5661         splitters.
5662         (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
5663         and corresponding post-reload splitters.
5664         (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
5665         New macroized instruction patterns.
5666         (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
5667         macroized instruction patterns and corresponding post-reload splitters.
5668         (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
5669         corresponding post-reload splitters.
5670         (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
5671         New macroized instruction patterns.
5672         (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
5673         corresponding post-reload splitters.
5674         (*floatsi<mode>2_i387): New macroized instruction patterns.
5675
5676 2008-04-01  H.J. Lu  <hongjiu.lu@intel.com>
5677
5678         * config/i386/i386.md (smaxmin): New.
5679         (umaxmin): Likewise.
5680         (maxminiprefix): Likewise.
5681         (maxminfprefix): Likewise.
5682         (<code><mode>3): Likewise.
5683         (smin<mode>3): Removed.
5684         (smax<mode>3): Likewise.
5685
5686         * config/i386/mmx.md (mmx_<code>v2sf3): New.
5687         (mmx_<code>v4hi3): Likewise.
5688         (mmx_<code>v8qi3): Likewise.
5689         (mmx_smaxv2sf3): Removed.
5690         (mmx_sminv2sf3): Likewise.
5691         (mmx_umaxv8qi3): Likewise.
5692         (mmx_smaxv4hi3): Likewise.
5693         (mmx_uminv8qi3): Likewise.
5694         (mmx_sminv4hi3): Likewise.
5695
5696         * config/i386/sse.md (<addsub><mode>3): New.
5697         (*<addsub><mode>3): Likewise.
5698         (<sse>_vm<addsub><mode>3): Likewise.
5699         (<maxmin><mode>3): Likewise.
5700         (*<maxmin><mode>3_finite): Likewise.
5701         (*<maxmin><mode>3): Likewise.
5702         (<sse>_vm<maxmin><mode>3): Likewise.
5703         (sse3_h<addsub>v4sf3): Likewise.
5704         (sse3_h<addsub>v2df3): Likewise.
5705         (<maxmin>v16qi3): Likewise.
5706         (*<maxmin>v16qi3): Likewise.
5707         (<maxmin>v8hi3): Likewise.
5708         (*<maxmin>v8hi3): Likewise.
5709         (*sse4_1_<maxmin><mode>3): Likewise.
5710         (*sse4_1_<maxmin><mode>3): Likewise.
5711         (add<mode>3): Removed.
5712         (*add<mode>3): Likewise.
5713         (<sse>_vmadd<mode>3): Likewise.
5714         (sub<mode>3): Likewise.
5715         (*sub<mode>3): Likewise.
5716         (<sse>_vmsub<mode>3): Likewise.
5717         (smin<mode>3): Likewise.
5718         (*smin<mode>3_finite): Likewise.
5719         (*smin<mode>3): Likewise.
5720         (<sse>_vmsmin<mode>3): Likewise.
5721         (smax<mode>3): Likewise.
5722         (*smax<mode>3_finite): Likewise.
5723         (*smax<mode>3): Likewise.
5724         (<sse>_vmsmax<mode>3): Likewise.
5725         (sse3_haddv4sf3): Likewise.
5726         (sse3_haddv2df3): Likewise.
5727         (sse3_hsubv4sf3): Likewise.
5728         (sse3_hsubv2df3): Likewise.
5729         (umaxv16qi3): Likewise.
5730         (*umaxv16qi3): Likewise.
5731         (smaxv8hi3): Likewise.
5732         (*smaxv8hi3): Likewise.
5733         (*sse4_1_smax<mode>3): Likewise.
5734         (*sse4_1_umax<mode>3): Likewise.
5735         (uminv16qi3): Likewise.
5736         (*uminv16qi3): Likewise.
5737         (sminv8hi3): Likewise.
5738         (*sminv8hi3): Likewise.
5739         (*sse4_1_smin<mode>3): Likewise.
5740         (*sse4_1_umin<mode>3): Likewise.
5741
5742 2008-04-01  Rafael Espindola  <espindola@google.com>
5743
5744         * tree-cfg.c (verify_expr): remove in_phi.
5745         (verify_stmt): Don't call walk_tree with verify_expr. Use
5746         is_gimple_min_invariant instead of is_gimple_val.
5747
5748 2008-04-01  Joseph Myers  <joseph@codesourcery.com>
5749
5750         * doc/include/gpl_v3.texi: Update for manpage generation.
5751         * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
5752         gpl.texi.
5753         * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
5754         * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
5755         gpl_v3.texi instead of gpl.texi.
5756         (gpl.pod): New.
5757
5758 2008-04-01  Jakub Jelinek  <jakub@redhat.com>
5759
5760         PR pch/13675
5761         * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
5762
5763 2008-04-01  Rafael Espindola  <espindola@google.com>
5764
5765         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
5766         (extract_code_and_val_from_cond): Use
5767         extract_code_and_val_from_cond_with_ops.
5768
5769 2008-04-01  Jan Hubicka  <jh@suse.cz>
5770
5771         * function.c (free_after_compilation): Free epilogue_delay_list.
5772         (prepare_function_start): Assert that previous compilation was freed.
5773
5774 2008-04-01  Jan Hubicka  <jh@suse.cz>
5775             Jim Wilson  <wilson@tuliptree.org>
5776             Andreas Tobler <andreast@gcc.gnu.org>
5777
5778         PR middle-end/35781
5779         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
5780         rtl.emit instead cfun->emit.
5781         * sparc/sparc.h (INIT_EXPANDERS): Likewise.
5782         * ia64/ia64.h (INIT_EXPANDERS): Likewise.
5783
5784 2008-04-01  Ben Elliston  <bje@au.ibm.com>
5785
5786         * doc/c-tree.texi (Function Basics): Fix grammatical error.
5787
5788 2008-03-31  Seongbae Park <seongbae.park@gmail.com>
5789
5790         * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
5791         New options
5792         (fprofile-use): Add var flag_profile_use
5793         * coverage.c (coverage_begin_output): Do not open a gcno file for
5794         output only if -ftest-coverage is set.
5795         Do not add getpwd() to gcda file path.
5796         (build_gcov_info): Check the new flag
5797         flag_profile_datafile_relative_path.
5798         (coverage_init): Use profile_data_prefix.
5799         Read profile counter only if flag_profile_use is set.
5800         * opts.c (common_handle_option): New option fprofile-use=,
5801         fprofile-dir=, fprofile-generate=.
5802         * toplev.c (profile_data_prefix): New variable definition.
5803         * toplev.h (profile_data_prefix): New declaration.
5804         * doc/invoke.tex (Option Summary, Optimization Options):
5805         Add new options.
5806
5807 2008-03-31  James E. Wilson  <wilson@tuliptree.org>
5808
5809         * varasm.c (output_constant_pool_1): In LABEL_REF check,
5810         use tmp consistently.
5811
5812         PR target/35695
5813         * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
5814         * config/ia64/ia64.c (rtx_needs_barrier): Handle
5815         UNSPEC_FR_RECIP_APPROX_RES.
5816         * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
5817
5818 2008-03-31  Volker Reichelt  <v.reichelt@netcologne.de>
5819
5820         PR c/35750
5821         * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
5822
5823 2008-03-31  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5824
5825         PR middle-end/30186
5826         * fold-const.c (fold_indirect_ref_1): Support accessing non first
5827         element of the vector via a pointer.
5828
5829 2008-03-31  Ian Lance Taylor  <iant@google.com>
5830
5831         * tlink.c (scan_linker_output): Look for symbol name in single quotes.
5832
5833 2008-03-31  Jan Hubicka  <jh@suse.cz>
5834
5835         * builtins.c (expand_builtin_setjmp_receiver): Update call of
5836         get_arg_pointer_save_area.
5837         * expr.c (init_expr): Just clear out rtl.expr.
5838         * function.c (free_after_compilation): Clear out whole RTL structure.
5839         (get_func_frame_size): Merge into ...
5840         (get_frame_size): ... this one.
5841         (assign_stack_local_1): Merge into ...
5842         (assign_stack_local): ... this one.
5843         (expand_function_end): Update call of get_arg_pointer_save_area.
5844         (get_art_pointer_save_area): Remove cfun argument.
5845         * function.h (emit_status): regno_pointer_align does not need length
5846         attribute. Move x_regno_reg_rtx to ...
5847         (regno_reg_rtx): ... new global array.
5848         (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
5849         (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
5850         apply_args_value, forced_labels, stack_pointer_delta):
5851         Update accestors.
5852         (struct varasm_status): Move here from varasm.c
5853         (struct rtl_data): New. Move here some fields from struct function.
5854         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
5855         frame_offset, stack_check_probe_note, arg_pointer_save_area,
5856         used_temp_slots avail_temp_slots, temp_slot_level,
5857         nonlocal_goto_handler_labels): Update accesstors.
5858         (rtl): New global variable.
5859         (struct function): Move some fileds to rtl_data.
5860         (get_arg_pointer_save_area): Update prototype.
5861         * emit-rtl.c (rtl): Declare.
5862         (regno_reg_rtx): Declare.
5863         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
5864         Update.
5865         (gen_reg_rtx): Update.
5866         (init_virtual_regs): Do not tate emit_status argument.
5867         (init_emit): Do not allocate emit.
5868         * varasm.c (varasm_statuc): Move to function.h.
5869         (n_deferred_constatns): Update accestor.
5870         (init_varasm_status): Do not allocate varasm_status.
5871         (force_const_mem, get_pool_size, output_constant_pool): Update.
5872         * stmt.c (force_label_rtx): Do not use x_ prefixes.
5873         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
5874
5875 2008-03-31  Zdenek Dvorak  <ook@ucw.cz>
5876
5877         PR rtl-optimization/35729
5878         * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
5879         references.
5880
5881 2008-03-31  H.J. Lu  <hongjiu.lu@intel.com>
5882
5883         PR target/32000
5884         * config/i386/i386.md (*movti_internal): Emit unaligned SSE
5885         load/store if memory is unaligned.
5886         (*movti_rex64): Likewise.
5887
5888         * config/i386/predicates.md (misaligned_operand): New.
5889
5890 2008-03-31  Andrew Pinski  <pinskia@gmail.com>
5891
5892         PR tree-opt/35431
5893         * tree-ssa-phiopt.c (conditional_replacement): Return early for
5894         complex types.
5895
5896 2008-03-31  Jan Beulich  <jbeulich@novell.com>
5897
5898         * config/ia64/constraints.md: Add 'j' constraint.
5899         * config/ia64/ia64.md (movsi_internal): Add addp4 case.
5900         (movdi_internal): Likewise.
5901
5902 2008-03-30  Volker Reichelt  <v.reichelt@netcologne.de>
5903
5904         PR c/35748
5905         * c-typeck.c (build_c_cast): Skip invalid fields in unions.
5906
5907 2008-03-30  H.J. Lu  <hongjiu.lu@intel.com>
5908
5909         PR target/35757
5910         * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
5911         proper error message for the third argument on blendpd and
5912         blendps.
5913
5914         * config/i386/sse.md (blendbits): New.
5915         (sse4_1_blendp<ssemodesuffixf2c>): Use it.
5916
5917 2008-03-30  Eric Botcazou  <ebotcazou@adacore.com>
5918
5919         * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
5920
5921 2008-03-30  Richard Guenther  <rguenther@suse.de>
5922
5923         PR middle-end/31023
5924         * fold-const.c (fold_sign_changed_comparison): Do leave
5925         conversions to base-types alone.
5926
5927 2008-03-29  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5928
5929         * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
5930         the link register if one altivec register is be saved.
5931
5932 2008-03-30  Ben Elliston  <bje@au.ibm.com>
5933
5934         * final.c (final_scan_insn): Remove if (0) code.
5935
5936 2008-03-28  Volker Reichelt  <v.reichelt@netcologne.de>
5937
5938         * c-parser.c (c_parser_next_token_is_keyword): Simplify.
5939
5940 2008-03-28  H.J. Lu  <hongjiu.lu@intel.com>
5941
5942         * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
5943         of V4SFmode to ix86_binary_operator_ok.
5944
5945 2008-03-28  Uros Bizjak  <ubizjak@gmail.com>
5946
5947         * config/i386/i386.c (override_options): Initialize
5948         ix86_veclib_handler to ix86_veclibabi_svml when
5949         -mveclibabi=svml is used.
5950         (ix86_veclibabi_svml): New function for SVML ABI style
5951         vectorization support.
5952         * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
5953
5954 2008-03-28  Rafael Espindola  <espindola@google.com>
5955
5956         * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
5957         (tree_binary_nonnegative_warnv_p): Make it public.
5958         (tree_single_nonnegative_warnv_p): Make it public.
5959         (tree_invalid_nonnegative_warnv_p): Make it public.
5960         (tree_unary_nonzero_warnv_p): Make it public.
5961         (tree_binary_nonzero_warnv_p): Make it public
5962         (tree_single_nonzero_warnv_p): Make it public.
5963         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
5964         (extract_range_from_binary_expr): Split the expr argument.
5965         (extract_range_from_unary_expr): Split the expr argument.
5966         (extract_range_from_comparison): Split the expr argument.
5967         (extract_range_from_expr): Use the new aux functions.
5968         (vrp_evaluate_conditional_warnv): Use
5969         vrp_evaluate_conditional_warnv_with_ops.
5970         * tree.h (tree_unary_nonzero_warnv_p): Declare.
5971         (tree_binary_nonzero_warnv_p): Declare.
5972         (tree_single_nonzero_warnv_p): Declare.
5973         (tree_expr_nonzero_warnv_p): Declare.
5974         (tree_unary_nonnegative_warnv_p): Declare.
5975         (tree_binary_nonnegative_warnv_p): Declare.
5976         (tree_single_nonnegative_warnv_p): Declare.
5977         (tree_invalid_nonnegative_warnv_p): Declare.
5978
5979 2008-03-28  Richard Guenther  <rguenther@suse.de>
5980
5981         PR tree-optimization/30317
5982         PR tree-optimization/30911
5983         PR tree-optimization/34793
5984         * tree-vrp.c (set_and_canonicalize_value_range): New function.
5985         (struct assert_locus_d): New member EXPR.
5986         (register_new_assert_for): Add EXPR parameter to support
5987         ASSERT_EXPR <name, expr OP limit>.
5988         (register_edge_assert_for_1): Adjust callers.
5989         (find_assert_locations): Likewise.
5990         (process_assert_insertions_for): Build condition from expression.
5991         (extract_range_from_assert): Handle ASSERT_EXPRs
5992         of the form ASSERT_EXPR <name, expr OP limit>.
5993         (register_edge_assert_for_2): New helper registering
5994         asserts for comparisons.  Recognize range tests of the form
5995         (unsigned)i - CST1 OP CST2.
5996         (register_edge_assert_for_1): Use it.
5997         (register_edge_assert_for): Likewise.
5998         (needs_overflow_infinity): Integer sub-types
5999         do not need overflow infinities.
6000         (vrp_val_is_max): The extreme values of integer sub-types
6001         are those of the base type.
6002         (vrp_val_is_min): Likewise.
6003         * tree.def (ASSERT_EXPR): Document extra allowed conditional
6004         expressions.
6005
6006 2008-03-28  Nick Clifton  <nickc@redhat.com>
6007
6008         PR target/31110
6009         * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
6010         Return GENERAL_REGS for stack adjustment reloads.
6011
6012 2008-03-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
6013
6014         PR target/31334
6015         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
6016         const_vector when all the vectors are constant.
6017
6018 2008-03-27  Bob Wilson  <bob.wilson@acm.org>
6019
6020         * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
6021         comparisons.
6022         * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
6023         (any_scc_sf): Add uneq, unlt, unle and unordered operators.
6024         (scc_sf): New.
6025         (s<code>_sf): Use new scc_sf attribute for opcode names.
6026
6027 2008-03-27  Tom Tromey  <tromey@redhat.com>
6028
6029         * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
6030         configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
6031         config/spu/t-spu-elf, config/i386/t-interix,
6032         config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
6033         config/i386/x-darwin, config/i386/x-mingw32,
6034         config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
6035         config/sh/t-sh, config/sh/t-symbian, config/x-linux,
6036         config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
6037         config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
6038         config/rs6000/x-rs6000, config/rs6000/x-darwin64,
6039         config/rs6000/x-darwin, config/rs6000/t-rs6000,
6040         config/score/t-score-elf, config/arm/t-strongarm-pe,
6041         config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
6042         config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
6043         Revert automatic dependency patch.
6044
6045 2008-03-27  H.J. Lu  <hongjiu.lu@intel.com>
6046
6047         PR target/35657
6048         * config/i386/i386.c (ix86_function_arg_boundary): Align
6049         decimal floating point to its natural boundary.
6050
6051 2008-03-27  Richard Guenther  <rguenther@suse.de>
6052
6053         PR middle-end/35716
6054         * fold-const.c (fold_comparison): Restrict distinct decl
6055         comparison folding to VAR_DECLs and PARM_DECLs.  Do not
6056         solely rely on operand_equal_p.
6057
6058 2008-03-27  Richard Guenther  <rguenther@suse.de>
6059
6060         PR c/32511
6061         * c-common.c (handle_weak_attribute): Reject combination of
6062         weak and inline.
6063
6064 2008-03-27  Richard Guenther  <rguenther@suse.de>
6065
6066         PR tree-optimization/32810
6067         * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
6068         conversions from DECL_INITIAL.
6069         (fold_const_aggregate_ref): Likewise from constructor elements.
6070
6071 2008-03-27  Zdenek Dvorak  <ook@ucw.cz>
6072
6073         * tree-affine.h (aff_combination_expand): Declare.
6074         (get_inner_reference_aff): Likewise.
6075         * tree-affine.c (aff_combination_expand): Split out from
6076         tree_to_aff_combination_expand.
6077         (get_inner_reference_aff): New function.
6078         * tree-parloops.c (loop_parallel_p): Free vectorizer info.
6079         * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
6080         (struct lim_aux_data): sm_done field removed.
6081         (mem_ref_loc_p, mem_ref_locs_p): New types.
6082         (struct mem_ref): Added id, stored, accesses_in_loop,
6083         indep_loop, dep_loop, indep_ref, dep_ref fields.
6084         Removed is_stored, locs and next fields.
6085         (memory_accesses): New variable.
6086         (movement_possibility): Do not allow moving statements
6087         that store to memory.
6088         (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
6089         New functions.
6090         (determine_max_movement): For statements with memory references,
6091         find the outermost loop in that the reference is independent.
6092         (move_computations_stmt): Mark the virtual operands for renaming.
6093         (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
6094         gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
6095         vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
6096         add_vop_ref_mapping, create_vop_ref_mapping_loop,
6097         create_vop_ref_mapping, analyze_memory_references,
6098         cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
6099         get_all_locs_in_loop, ref_always_accessed_p,
6100         refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
6101         ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
6102         store_motion_loop, store_motion): New functions.
6103         (struct vop_to_refs_elt): New type.
6104         (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
6105         memref_hash, memref_eq, hoist_memory_references): Rewritten.
6106         (schedule_sm): Replaced by...
6107         (execute_sm): ... this.
6108         (determine_lsm_ref, hoist_memory_references,
6109         loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
6110         find_more_ref_vops, free_mem_ref, free_mem_refs,
6111         determine_lsm_loop, determine_lsm): Removed.
6112         (tree_ssa_lim_finalize): Free data structures used by store motion.
6113         (tree_ssa_lim): Call analyze_memory_references.  Use
6114         store_motion instead of determine_lsm.
6115
6116 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
6117
6118         * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
6119         rename tmake_file to m68hc11/t-m68hc11.
6120         (mcore): Set inhibit_libc to true.
6121         * config.host (alpha*-dec-*vms*): Set extra_programs.
6122         (interix3*): Don't use host_xmake_file.
6123         * configure.ac: Let config.gcc override inhibit_libc.
6124         * configure: Regenerate.
6125
6126         * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
6127         * config/t-openbsd-thread: Remove commented out lines.
6128         
6129         * config/x-interix: Remove.
6130
6131         * config/m68hc11/t-m68hc11-gas: Rename to...
6132         * config/m68hc11/t-m68hc11: ... this.  Remove T_CPPFLAGS.
6133
6134         * config/mcore/t-mcore: Remove T_CFLAGS.
6135         * config/mcore/t-mcore-pe: Likewise.
6136
6137 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
6138
6139         * configure.ac: Replace custom __GNU_SOURCE test with
6140         AC_USE_SYSTEM_EXTENSIONS.  Move it earlier.
6141         * aclocal.m4: Regenerate.
6142         * configure: Regenerate.
6143         * config.in: Regenerate.
6144
6145 2008-03-27  Richard Guenther  <rguenther@suse.de>
6146
6147         * fold-const.c (target.h): Include.
6148         (fold_comparison): Fold comparison of addresses of decls
6149         that bind locally or of constants.  Consolidate address folding code.
6150         * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
6151         results from fold_binary_to_constant.
6152         (compare_values_warnv): Likewise.
6153
6154 2008-03-27  Andrew Pinski  <pinskia@gmail.com>
6155
6156         PR middle-end/35429
6157         * fold-const.c (fold_truthop): Check for integeral types when folding
6158         a == 0 && b == 0 and a != 0 || b != 0 .
6159
6160 2008-03-26  Eric Botcazou  <ebotcazou@adacore.com>
6161
6162         * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
6163
6164 2008-03-26  Andreas Schwab  <schwab@suse.de>
6165
6166         * doc/invoke.texi: Fix use of @item vs. @itemx.
6167
6168 2008-03-26  Tom Tromey  <tromey@redhat.com>
6169
6170         * Makefile.in (build/gensupport.o, build/print-rtl.o,
6171         build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
6172         build/genattrtab.o, build/genautomata.o, build/gencheck.o,
6173         build/gencodes.o, build/genconditions.o, build/genconfig.o,
6174         build/genconstants.o, build/genemit.o, build/genextract.o,
6175         build/genflags.o, build/genmddeps.o, build/genopinit.o,
6176         build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
6177         options.h.
6178
6179 2008-03-26  Richard Guenther  <rguenther@suse.de>
6180
6181         Revert
6182         2008-03-26  Richard Guenther  <rguenther@suse.de>
6183
6184         * fold-const.c (target.h): Include.
6185         (fold_comparison): Fold comparison of addresses of two decls
6186         that bind locally.  Consolidate address folding code.
6187
6188 2008-03-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6189
6190         * builtins.c (expand_builtin_pow, fold_builtin_cabs,
6191         fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
6192         fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
6193         dconstsqrt2, dconstthird, dconste and/or dconst10.
6194         * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
6195         * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
6196         dconstsqrt2, dconste): Delete.
6197         (init_emit_once): Likewise.  Simplify initializing dconstm1.
6198         Constify variable.
6199         * real.c (get_real_const): New.
6200         * real.h (dconst3, dconst10, dconstm2, dconstthird,
6201         dconstsqrt2, dconste): Delete.
6202         (real_value_const, get_real_const): New.
6203
6204 2008-03-26  H.J. Lu  <hongjiu.lu@intel.com>
6205
6206         * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
6207
6208         * config/i386/i386.c (ix86_function_arg_boundary): Check
6209         BIGGEST_ALIGNMENT instead of 128.
6210         (setup_incoming_varargs_64): Likewise.
6211
6212 2008-03-26  Tom Tromey  <tromey@redhat.com>
6213
6214         * Makefile.in (DEPFILES): Add missing '/'.
6215
6216 2008-03-26  Richard Guenther  <rguenther@suse.de>
6217
6218         * fold-const.c (target.h): Include.
6219         (fold_comparison): Fold comparison of addresses of two decls
6220         that bind locally.  Consolidate address folding code.
6221
6222 2008-03-26  Nick Clifton  <nickc@redhat.com>
6223
6224         PR target/31232
6225         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
6226         not allow INT+INT as a legitimate addressing mode.
6227
6228 2008-03-26  Richard Guenther  <rguenther@suse.de>
6229
6230         * tree-flow.h (widen_bitfield): Remove declaration.
6231         * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
6232         (widen_bitfield): Remove function.
6233         * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
6234         code.
6235
6236 2008-03-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
6237
6238         PR target/31558
6239         * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
6240         error_mark_node's.
6241
6242 2008-03-25  Richard Sandiford  <rsandifo@nildram.co.uk>
6243
6244         PR rtl-optimization/35232
6245         * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
6246         (forget_old_reloads_1, forget_marked_reloads): Don't clear
6247         reg_reloaded_call_part_clobbered here.
6248         (reload_regs_reach_end_p): New function.
6249         (reload_reg_rtx_for_input): New variable.
6250         (reload_reg_rtx_for_output): Likewise.
6251         (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
6252         when reassigning a pseudo register.  Load reloadreg from 
6253         reload_reg_rtx_for_input, moving the mode and register
6254         calculation to...
6255         (do_input_reload): ...here.  Use the mode-adjusted reg_rtx
6256         instead of the original when deciding whether an input reload
6257         would be a no-op or whether an output reload can be deleted.
6258         (emit_output_reload_insns): Use the mode-adjusted reg_rtx
6259         when setting up new_spill_reg_store.  Load it from
6260         reload_reg_rtx_for_output, moving the mode and register
6261         calculation to...
6262         (do_output_reload): ...here.  Use the mode-adjusted reg_rtx
6263         instead of the original when deciding whether an output reload
6264         would be a no-op.  Do the same when modifying insn notes.
6265         Use rtx_equal_p instead of == to compare the registers.
6266         (inherit_piecemeal_p): Take a mode and two register numbers
6267         as argument.
6268         (emit_reload_insns): Clear new_spill_reg_store for every hard
6269         register in the reload register.  Remove spill registers
6270         from reg_reloaded_valid before considering whether to record
6271         inheritance information for them.  Use reload_reg_rtx_for_output
6272         instead of reg_rtx when recording output reloads.  Use
6273         reload_reg_rtx_for_input instead of reg_rtx when recording
6274         input reloads.  Set or clear reg_reloaded_call_part_clobbered
6275         at the same time as setting reg_reloaded_valid.
6276         (delete_output_reload): Add a new_reload_reg parameter and use it
6277         instead of rld[j].reg_rtx.
6278         (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
6279         calls accordingly.
6280
6281 2008-03-25  Tom Tromey  <tromey@redhat.com>
6282
6283         * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
6284         (build/genattr.o): Likewise.
6285         (build/genattrtab.o): Likewise.
6286         (build/gencodes.o): Likewise.
6287         (build/genconfig.o): Likewise.
6288         (build/genconstants.o): Likewise.
6289         (build/genemit.o): Likewise.
6290         (build/genextract.o): Likewise.
6291         (build/genflags.o): Likewise.
6292
6293 2008-03-25  Bob Wilson  <bob.wilson@acm.org>
6294         
6295         * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
6296         instead of size_int for integer types.
6297         (xtensa_gimplify_va_arg_expr): Likewise.  Convert index to sizetype
6298         to match type of MINUS_EXPR.
6299         
6300 2008-03-25  Tom Tromey  <tromey@redhat.com>
6301
6302         * configure: Rebuilt.
6303         * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
6304         Makefile.
6305
6306 2008-03-25  Tom Tromey  <tromey@redhat.com>
6307
6308         * config/x-solaris (host-solaris.o): Update.
6309         * config/x-linux (host-linux.o): Update.
6310         * config/x-hpux (host-hpux.o): Update.
6311         * config/x-darwin (host-darwin.o): Update.
6312         * config/v850/t-v850e (v850-c.o): Update.
6313         * config/v850/t-v850 (v850-c.o): Update.
6314         * config/t-vxworks (vxworks.o): Update.
6315         * config/t-sol2 (sol2-c.o, sol2.o): Update.
6316         * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
6317         * config/spu/t-spu-elf (spu-c.o): Update.
6318         (spu.o): Remove.
6319         * config/sh/t-symbian (sh-c.o): Update.
6320         (symbian.o): Update.
6321         * config/sh/t-sh (sh-c.o): Update.
6322         * config/score/t-score-elf (score7.o, score3.o): Update.
6323         * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
6324         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
6325         * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
6326         * config/rs6000/t-rs6000 (rs6000-c.o): Update.
6327         (rs6000.o): Remove.
6328         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
6329         * config/m32c/t-m32c (m32c-pragma.o): Update.
6330         * config/ia64/t-ia64 (ia64-c.o): Update.
6331         * config/i386/x-mingw32 (host-mingw32.o): Update.
6332         * config/i386/x-i386 (driver-i386.o): Update.
6333         * config/i386/x-darwin (host-i386-darwin.o): Update.
6334         * config/i386/x-cygwin (host-cygwin.o): Update.
6335         * config/i386/t-nwld (nwld.o): Update.
6336         * config/i386/t-netware (netware.o): Update.
6337         * config/i386/t-interix (winnt.o): Update.
6338         * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
6339         * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
6340         msformat-c.o): Update.
6341         * config/bfin/t-bfin-linux (generated_files): Add
6342         linux-sysroot-suffix.h.
6343         * config/arm/t-wince-pe (pe.o): Update.
6344         * config/arm/t-strongarm-pe (pe.o): Update.
6345         * config/arm/t-pe (pe.o): Update.
6346         * config/arm/t-arm (arm-c.o): Update.
6347         * doc/install.texi (Prerequisites): Require make 3.80.
6348         * Makefile.in: Remove .o targets.
6349         (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
6350         (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
6351         (simple_generated_h, simple_generated_c): Move earlier.
6352         (generated_files): New variable.
6353         (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
6354         TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
6355         BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
6356         ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
6357         REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
6358         CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
6359         CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
6360         INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
6361         PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
6362         TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
6363         DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
6364         VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
6365         (.c.o): Remove.
6366         (COMPILE.base, COMPILE): New variables.
6367         (%.o): New pattern rule.
6368         (ALL_HOST_OBJS): New variable.
6369         (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
6370         (dummy-checksum.o, cc1-checksum.o): Remove.
6371         (DRIVER_SHLIB): New variable.
6372         (DRIVER_DEFINES): Use it.
6373         (gencondmd.c): Move out of build/.
6374         (s-conditions): Update.
6375         (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
6376         (ALL_BUILD_OBJS): Likewise.
6377         (build/%.o): Use BUILDCOMPILE.
6378         (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
6379         build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
6380         build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
6381         build/gencheck.o, build/gencodes.o, build/genconditions.o,
6382         build/genconfig.o, build/genconstants.o, build/genemit.o,
6383         build/genextract.o, build/genflags.o, build/genmddeps.o,
6384         build/genopinit.o, build/genoutput.o, build/genpeep.o,
6385         build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
6386         build/gen-protos.o, build/scan.o, build/fix-header.o,
6387         build/scan-decls.o): Simplify.
6388         (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
6389         cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
6390         prefix.o, toplev.o): Reduce to variable setting.
6391         (libbackend.o): Use COMPILE.  Remove most dependencies.  Move later.
6392         ($(out_object_file), gcc-options.o): New targets.
6393         ($(ALL_HOST_OBJS)): New target.  Include dependency files.
6394         * configure: Rebuilt.
6395         * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
6396         * doc/sourcebuild.texi (Front End Directory): Document new variable.
6397
6398 2008-03-25  Douglas Gregor  <doug.gregor@gmail.com>
6399
6400         * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
6401         complain when we hit an error, return ERROR_MARK_NODE.
6402
6403 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
6404
6405         * config/sh/constraints.md (Pso, Psz): New constraints.
6406         * config/sh/sh.c (print_operand): Add %V and %W operand codes.
6407         * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
6408
6409 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
6410
6411         * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
6412         * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
6413
6414 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
6415
6416         * config/sh/sh.md (prefetch): Add condition for SH2A target.
6417         (prefetch_sh2a): New.   
6418
6419 2008-03-25  Jayant Sonar  <Jayant.sonar@kpitcummins.com>
6420             Naveen.H.S  <naveen.hs@kpitcummins.com>
6421
6422         * config/sh/constraints.md (I28): New constraint.
6423         * config/sh/sh.c (broken_move): Add support for movi20s.
6424         * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
6425
6426 2008-03-25  Anil Paranjape  <anil.paranjape@kpitcummins.com>
6427             Jayant Sonar  <Jayant.sonar@kpitcummins.com>
6428             Naveen.H.S  <naveen.hs@kpitcummins.com>
6429
6430         * config/sh/sh.c (SH_ATTRIBUTES): Define.
6431         (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
6432         (print_operand): Handle resbank in %@ operand code.
6433         (sh_encode_section_info): New.
6434         (push_regs): Add conditions for resbank.
6435         (sh_expand_epilogue): Likewise.
6436         (sh_insert_attributes): Likewise.
6437         (sh_attribute_table): Likewise.
6438         (sh_handle_resbank_handler_attribute): New.
6439         (sh2a_handle_function_vector_handler_attribute): New.
6440         (sh2a_is_function_vector_call): New.
6441         (sh2a_get_function_vector_number): New.
6442         (sh2a_function_vector_p): New.
6443         (sh_cfun_resbank_handler_p): New.
6444         * config/sh/sh.md (calli): Emit jsr/n if possible.
6445         (calli_tbr_rel): New.
6446         (calli_pcrel): Emit jsr/n if possible.
6447         (return_i): Emit rts/n if possible.
6448         (call_valuei_tbr_rel): New.
6449         (call_valuei_pcrel): Add condition for SH2A target.
6450         (call_value): Likewise.
6451         * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
6452         (sh2a_get_function_vector_number): Likewise.
6453         (sh2a_is_function_vector_call): Likewise.
6454         * doc/extend.texi: Document TBR relative addressing of SH2A.
6455         (resbank): Add description for SH2A.
6456
6457 2008-03-24  Richard Guenther  <rguenther@suse.de>
6458
6459         PR c/22371
6460         * gimplify.c (gimplify_modify_expr): For frontend type-correct
6461         pointer assignments change conversions according to middle-end rules.
6462         (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
6463         * configure.ac: Include type checking in yes.
6464         * configure: Regenerate.
6465
6466 2008-03-24  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6467
6468         * diagnostic.c (diagnostic_count_diagnostic): Delete.
6469         (diagnostic_report_diagnostic): Update. Handle ICEs here.
6470         
6471 2008-03-24  Nathan Sidwell  <nathan@codesourcery.com>
6472
6473         * gthr-vxworks.h (UNUSED): Define.
6474
6475 2008-03-23  H.J. Lu  <hongjiu.lu@intel.com>
6476
6477         * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
6478
6479 2008-03-23  Zuxy Meng <zuxy.meng@gmail.com>
6480
6481         * doc/extend.texi (Function Attributes): Add missing comma in the
6482         example of the "alloc_size" attribute.
6483         
6484 2008-03-23  Uros Bizjak  <ubizjak@gmail.com>
6485
6486         Revert:
6487         2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
6488
6489         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
6490         32bit host.
6491
6492         2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
6493
6494         PR target/35496
6495         * stor-layout.c (update_alignment_for_field): Set minimum alignment
6496         of the underlying type of a MS bitfield layout to the natural
6497         alignment of the type.
6498
6499         2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
6500
6501         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
6502         to their natural alignment to avoid store forwarding stalls.
6503
6504 2008-03-22  Richard Guenther  <rguenther@suse.de>
6505
6506         * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
6507         For PHI nodes verify the address is invariant.
6508         * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
6509         (get_symbol_constant_value): Use is_gimple_min_invariant.
6510         (maybe_fold_stmt_indirect): Likewise.
6511
6512 2008-03-22  Richard Sandiford  <rsandifo@nildram.co.uk>
6513
6514         PR rtl-optimization/33927
6515         * Makefile.in (dse.o): Depend on $(TM_P_H).
6516         * expr.h (extract_low_bits): Declare.
6517         * expmed.c (extract_low_bits): New function.
6518         * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
6519         * dse.c: Include tm_p.h.
6520         (find_shift_sequence): Remove the read_reg argument and return the
6521         read value.  Emit the instructions instead of returning them.
6522         Iterate on new_mode rather than calculating it each time.
6523         Check MODES_TIEABLE_P.  Use simplify_gen_subreg to convert the
6524         source to NEW_MODE and extract_low_bits to convert the shifted
6525         value to READ_MODE.
6526         (replace_read): Allow the load and store to have different mode
6527         classes.  Use extract_low_bits when SHIFT == 0.  Create the shift
6528         or extraction instructions before trying the replacement.  Update
6529         dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
6530
6531 2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
6532
6533         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
6534         to their natural alignment to avoid store forwarding stalls.
6535
6536 2008-03-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
6537
6538         PR target/27946
6539         * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
6540         encouraging but not allowing gprs for input;
6541         change the input constraint to !f#r.
6542         (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
6543         gprs for output;
6544         change the output constraint to !f#r.
6545
6546 2008-03-21  Uros Bizjak  <ubizjak@gmail.com>
6547
6548         PR target/13958
6549         * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
6550         corresponding post-reload splitters.
6551         ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
6552         when x87 FP math is selected.
6553         * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
6554         New function prototype.
6555         * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
6556         unreachable function to ease macroization of insn patterns.
6557
6558 2008-03-21  Martin Jambor  <mjambor@suse.cz>
6559
6560         * tree-data-ref.c (dump_data_dependence_relation): Avoid data
6561         reference dumps if ddr is NULL or dependence is unknown.
6562
6563 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
6564
6565         * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
6566         unsigned extension into account.
6567         (ATOMIC_COMPARE_AND_SWAP): Likewise.
6568         (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
6569         Do computations on a scratch register.
6570
6571 2008-03-21  Richard Guenther  <rguenther@suse.de>
6572
6573         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
6574         Use is_gimple_min_invariant instead of TREE_INVARIANT.
6575         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
6576         * tree-ssa-dom.c (record_equality): Likewise.
6577         * tree-inline.c (copy_body_r): Likewise.
6578         * tree-ssa-pre.c (make_values_for_stmt): Remove test for
6579         TREE_INVARIANT.
6580
6581 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
6582
6583         * config/sh/sh.c (split_branches): Pass zero to redirect_jump
6584         as 'delete_unused' argument.
6585
6586 2008-03-20  Richard Guenther  <rguenther@suse.de>
6587
6588         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
6589         special casing of constant qualifiers.
6590         * tree-ssa.c (useless_type_conversion_p_1): Instead do not
6591         care about them in general.
6592         * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
6593         regardless of their type.
6594         (fold_stmt_r): Forcefully fold *& if we end up with that.
6595
6596 2008-03-20  Paul Brook  <paul@codesourcery.com>
6597
6598         * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
6599         * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
6600         linker flags.
6601         * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
6602         definition.
6603         (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
6604         * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
6605
6606 2008-03-20  Volker Reichelt  <v.reichelt@netcologne.de>
6607
6608         * common.opt (Wmudflap): New option.
6609         * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
6610         (mx_register_decls): Likewise.
6611         (mudflap_finish_file): Likewise.
6612         * doc/invoke.texi: Document -Wno-mudflap.
6613
6614 2008-03-20  Kai Tietz  <kai.tietz@onevision.com>
6615
6616         * c-format.c (replace_format_name_to_system_name): New.
6617         (cmp_attribs): New.
6618         (convert_format_name_to_system_name): New.
6619         (decode_format_attr): Add use of convert_format_name_to_system_name.
6620         (format_types_orig): Add gnu_ prefix to names.
6621         (check_format_info_main): Special treating of \0 escaped names for
6622         supporting multi-character format specifiers as I32, I64.
6623         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
6624         (gnu_target_overrides_format_attributes): New.
6625         * c-format.h: Add structure target_ovr_attr to hold
6626         system specific formatter names.
6627         * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
6628         msformat-c.o file to c_target_objs and cxx_target_objs.
6629         * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
6630         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
6631         (TARGET_N_FORMAT_TYPES): New.
6632         * config/i386/msformat-c.c: New.
6633         * config/i386/t-cygming: Add build rule for msformat-c.o.
6634         * doc/extend.texi: Add new format names gnu_* and ms_* and
6635         further details.
6636         * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
6637
6638 2008-03-20  Ira Rosen  <irar@il.ibm.com>
6639
6640         * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
6641         optimizations turned on under -O3.
6642         (ftree-vectorize): Add that the flag is turned on with -O3.
6643
6644 2008-03-20  Ben Elliston  <bje@au.ibm.com>
6645
6646         * regmove.c (try_auto_increment): Fix spelling error in comment.
6647         * final.c (final_scan_insn): Likewise.
6648
6649 2008-03-20  Uros Bizjak  <ubizjak@gmail.com>
6650
6651         PR target/14552
6652         * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
6653         allocator preferences for "y" and "r" class registers.
6654         ("*mov<mode>_internal"): Ditto.
6655         ("*movv2sf_internal_rex64"): Ditto.
6656         ("*movv2sf_internal"): Ditto.
6657
6658 2008-03-19  Michael Matz  <matz@suse.de>
6659
6660         PR middle-end/35616
6661         * calls.c (expand_call): Check overlap of arguments with call
6662         address for sibcalls.
6663
6664 2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
6665
6666         PR target/35496
6667         * stor-layout.c (update_alignment_for_field): Set minimum alignment
6668         of the underlying type of a MS bitfield layout to the natural
6669         alignment of the type.
6670
6671 2008-03-19  Jan Hubicka  <jh@suse.cz>
6672
6673         PR other/35094
6674         * toplev.c (decode_d_option): Handle all CPP flags.
6675         * tree-vrp.c: Update tree_pass descriptors.
6676         * regrename.c: Update tree_pass descriptors.
6677         * fwprop.c: Update tree_pass descriptors.
6678         * doc/invoke.texi: Remove documentation of dropped -d? flags.
6679         * tree-into-ssa.c: Update tree_pass descriptors.
6680         * tree-dump.c: Update tree_pass descriptors.
6681         * tree-complex.c: Update tree_pass descriptors.
6682         * tree-dump.h: Update tree_pass descriptors.
6683         * see.c: Update tree_pass descriptors.
6684         * cgraphbuild.c: Update tree_pass descriptors.
6685         * tracer.c: Update tree_pass descriptors.
6686         * tree-loop-distribution.c: Update tree_pass descriptors.
6687         * cgraph.c: Update tree_pass descriptors.
6688         * postreload-gcse.c: Update tree_pass descriptors.
6689         * postreload.c: Update tree_pass descriptors.
6690         * tree-ssa-loop-ch.c: Update tree_pass descriptors.
6691         * tree-tailcall.c: Update tree_pass descriptors.
6692         * tree-pass.h (tree_opt_pass): Rename to ...
6693         (opt_pass) ... this one; add "type" field and remove letter field.
6694         (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
6695         (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
6696         all_lowering_passes): Update declaration.
6697         * ipa-cp.c: Update tree_pass descriptors.
6698         * final.c: Update tree_pass descriptors.
6699         * omp-low.c: Update tree_pass descriptors.
6700         * tree-ssa-dse.c: Update tree_pass descriptors.
6701         * ipa-reference.c: Update tree_pass descriptors.
6702         * tree-ssa-uncprop.c: Update tree_pass descriptors.
6703         * auto-inc-dec.c: Update tree_pass descriptors.
6704         * reorg.c: Update tree_pass descriptors.
6705         * cgraphunit.c: Update tree_pass descriptors.
6706         * tree-ssa-copyrename.c: Update tree_pass descriptors.
6707         * tree-ssa-ccp.c: Update tree_pass descriptors.
6708         * df-core.c: Update tree_pass descriptors.
6709         * mode-switching.c: Update tree_pass descriptors.
6710         * tree-nomudflap.c: Update tree_pass descriptors.
6711         * modulo-sched.c: Update tree_pass descriptors.
6712         * ipa-pure-const.c: Update tree_pass descriptors.
6713         * cse.c: Update tree_pass descriptors.
6714         * web.c: Update tree_pass descriptors.
6715         * tree-stdarg.c: Update tree_pass descriptors.
6716         * tree-ssa-math-opts.c: Update tree_pass descriptors.
6717         * tree-ssa-dom.c: Update tree_pass descriptors.
6718         * tree-nrv.c: Update tree_pass descriptors.
6719         * tree-ssa-alias.c: Update tree_pass descriptors.
6720         * loop-init.c: Update tree_pass descriptors.
6721         * gimple-low.c: Update tree_pass descriptors.
6722         * ipa-inline.c: Update tree_pass descriptors.
6723         * tree-ssa-sink.c: Update tree_pass descriptors.
6724         * global.c: Update tree_pass descriptors.
6725         * ifcvt.c: Update tree_pass descriptors.
6726         * jump.c: Update tree_pass descriptors.
6727         * predict.c: Update tree_pass descriptors.
6728         * tree-ssa-loop.c: Update tree_pass descriptors.
6729         * recog.c: Update tree_pass descriptors.
6730         * dse.c: Update tree_pass descriptors.
6731         * tree-ssa-ifcombine.c: Update tree_pass descriptors.
6732         * tree-eh.c: Update tree_pass descriptors.
6733         * regmove.c: Update tree_pass descriptors.
6734         * local-alloc.c
6735         * function.c: Update tree_pass descriptors.
6736         * tree-vectorizer.c: Update tree_pass descriptors.
6737         * gcse.c: Update tree_pass descriptors.
6738         * ipa-type-escape.c: Update tree_pass descriptors.
6739         * tree-if-conv.c: Update tree_pass descriptors.
6740         * init-regs.c: Update tree_pass descriptors.
6741         * ipa.c: Update tree_pass descriptors.
6742         * tree-ssa-phiopt.c: Update tree_pass descriptors.
6743         * rtl-factoring.c: Update tree_pass descriptors.
6744         * lower-subreg.c: Update tree_pass descriptors.
6745         * bt-load.c: Update tree_pass descriptors.
6746         * tree-dfa.c: Update tree_pass descriptors.
6747         * except.c: Update tree_pass descriptors.
6748         * emit-rtl.c: Update tree_pass descriptors.
6749         * cfgexpand.c: Update tree_pass descriptors.
6750         * tree-cfgcleanup.c: Update tree_pass descriptors.
6751         * cfgcleanup.c: Update tree_pass descriptors.
6752         * tree-ssa-pre.c: Update tree_pass descriptors.
6753         * tree-sra.c: Update tree_pass descriptors.
6754         * tree-mudflap.c: Update tree_pass descriptors.
6755         * tree-ssa-copy.c: Update tree_pass descriptors.
6756         * cfglayout.c: Update tree_pass descriptors.
6757         * tree-ssa-forwprop.c: Update tree_pass descriptors.
6758         * tree-ssa-dce.c: Update tree_pass descriptors.
6759         * tree-ssa.c: Update tree_pass descriptors.
6760         * regclass.c: Update tree_pass descriptors.
6761         * integrate.c: Update tree_pass descriptors.
6762         * tree-optimize.c: Update tree_pass descriptors.
6763         * tree-ssa-phiprop.c: Update tree_pass descriptors.
6764         * tree-object-size.c: Update tree_pass descriptors.
6765         * combine.c: Update tree_pass descriptors.
6766         * tree-outof-ssa.c: Update tree_pass descriptors.
6767         * bb-reorder.c: Update tree_pass descriptors.
6768         * stack-ptr-mod.c: Update tree_pass descriptors.
6769         * var-tracking.c: Update tree_pass descriptors.
6770         * tree-profile.c: Update tree_pass descriptors.
6771         * tree-vect-generic.c: Update tree_pass descriptors.
6772         * reg-stack.c: Update tree_pass descriptors.
6773         * sched-rgn.c: Update tree_pass descriptors.
6774         * tree-ssa-structalias.c: Update tree_pass descriptors.
6775         * tree-cfg.c: Update tree_pass descriptors.
6776         * passes.c (current_pass): Update declaration.
6777         (finish_optimization_passes): Update.
6778         (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
6779         (register_one_dump_file, register_dump_files_1, next_pass_1):
6780         Update arguments.
6781         (init_optimization_passes): Update handling of new types.
6782         (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
6783         * ipa-struct-reorg.c: Update tree_pass descriptors.
6784         * tree-ssa-reassoc.c: Update tree_pass descriptors.
6785         * combine-stack-adj.c: Update tree_pass descriptors.
6786         * cfgrtl.c: Update tree_pass descriptors.
6787         * dce.c: Update tree_pass descriptors.
6788         * tree-ssanames.c: Update tree_pass descriptors.
6789
6790 2008-03-19  Richard Guenther  <rguenther@suse.de>
6791
6792         PR middle-end/35609
6793         * tree-ssa.c (walk_data): New structure.
6794         (warn_uninitialized_var): If not always_executed warn with "maybe"
6795         instead of "is".
6796         (execute_early_warn_uninitialized): Compute post-dominators.
6797         Initialize always_executed before processing each basic block.
6798
6799 2008-03-18  Mikulas Patocka  <mikulas@artax.karlin.mff.cuni.cz>
6800
6801         PR target/35504
6802         * config/i386/i386.c (x86_this_parameter): Calculate correct location
6803         of "this" pointer when "regparm = N" or "fastcall" is in effect.
6804
6805 2008-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6806
6807         * doc/include/texinfo.tex: Update to version 2008-03-17.10.
6808
6809 2008-03-18  Paolo Bonzini  <bonzini@gnu.org>
6810
6811         * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
6812         is true.
6813         (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
6814         (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
6815         is true.  Add "&& !ignore" condition to reduce_bit_field.  Modify
6816         target after ignore has been set, and move there also the commputation
6817         of subtarget and original_target.
6818         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
6819         (LANG_HOOKS_INITIALIZER): Remove it.
6820         * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
6821
6822 2008-03-18  Richard Guenther  <rguenther@suse.de>
6823
6824         * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
6825         found an expression with constants, note that in the VN for the lhs.
6826         * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
6827         fold them to constants if possible.  Run cleanup_cfg if done so.
6828         (execute_pre): Return todo.
6829         (do_pre): Likewise.
6830         (execute_fre): Likewise.
6831         * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
6832         of constants.
6833         (get_prop_source_stmt): Look through pointer conversions.
6834
6835 2008-03-18  Jan Hubicka  <jh@suse.cz>
6836
6837         * tree-pretty-print.c: Include predict.h.
6838         (dump_generic_node): Dump predictor.
6839         * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
6840         * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
6841         * gimple-low.c (lower_stmt): Likewise.
6842         * expr.c (expand_expr_real): Likewise.
6843         * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
6844         them.
6845         (build_predict_expr, build_predict_expr): New.
6846         * predict.h (predictor_name, build_predict_expr): Update.
6847         * c-typeck.c (c_finish_bc_stmt): Add prediction.
6848         * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
6849         * predict.def (PRED_CONTINUE): Update hitrate.
6850         * tree.def (PREDICT_EXPR): Define.
6851         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
6852         do not handle BIND_EXPR.
6853         * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
6854         * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
6855         * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
6856         operands.
6857
6858 2008-03-18  Michael Matz  <matz@suse.de>
6859
6860         * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
6861
6862 2008-03-18  Richard Guenther  <rguenther@suse.de>
6863
6864         * tree-gimple.h (is_gimple_invariant_address): Declare.
6865         (is_gimple_constant): Likewise.
6866         * tree-gimple.c (is_gimple_constant): New function.
6867         (is_gimple_invariant_address): Likewise.
6868         (is_gimple_min_invariant): Implement in terms of is_gimple_constant
6869         and is_gimple_invariant_address.
6870         * tree-ssa-loop-niter.c (expand_simple_operations): Revert
6871         previous change.
6872         * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
6873         an addressable base.
6874
6875 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
6876
6877         PR middle-end/35611
6878         * gimplify.c (gimplify_expr): Gimplify second operand of
6879         OMP_ATOMIC_LOAD.
6880
6881 2008-03-17  Richard Guenther  <rguenther@suse.de>
6882
6883         PR tree-optimization/19637
6884         * fold-const.c (fold_unary): Remove restrictions of removing
6885         intermediate pointer-conversions (P2)(P1)P0.
6886         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
6887         conversion to void pointer.
6888         (get_maxval_strlen): Handle addresses of the form &(*p)[0].
6889
6890 2008-03-16  James E. Wilson  <wilson@tuliptree.org>
6891
6892         PR debug/31510
6893         * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
6894         emulated thread local variables.
6895
6896 2008-03-16  Richard Guenther  <rguenther@suse.de>
6897
6898         PR middle-end/35607
6899         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
6900         expand TREE_INVARIANT operations that are not gimple invariant.
6901
6902 2008-03-16  Hans-Peter Nilsson  <hp@axis.com>
6903
6904         * doc/extend.texi (Alignment): Say that the ABI controls
6905         the __alignof__ for non-strict-alignment targets rather
6906         than being a recommendation.
6907
6908 2008-03-15  Paul Brook  <paul@codesourcery.com>
6909
6910         * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
6911         annotations.
6912         (arm_output_fn_unwind): Mark functions that can not be unwound.
6913
6914 2008-03-15  Paul Brook  <paul@codesourcery.com>
6915
6916         * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
6917         extension instructions.
6918
6919 2008-03-15  Richard Guenther  <rguenther@suse.de>
6920
6921         * tree-ssa-ccp.c (ccp_fold): Also read from constant values
6922         and fold constant aggregate refs.
6923         (fold_const_aggregate_ref): Handle string constants
6924         and constructors in ARRAY_REFs.  Handle INDIRECT_REF.
6925         (evaluate_stmt): Simplify now that ccp_fold folds constant
6926         aggregate refs.
6927
6928 2008-03-15  Paul Brook  <paul@codesourcery.com>
6929
6930         * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
6931         (extzv): Use gen_extzv_t2.
6932         (insv_t2, insv_zero, extv, extzv_t2): New patterns.
6933
6934 2008-03-15  Richard Guenther  <rguenther@suse.de>
6935
6936         * tree-ssa-ccp.c (get_symbol_constant_value): Export.
6937         (fold_const_aggregate_ref): Likewise.
6938         (get_value): Return NULL if we don't have any values.
6939         (ccp_finalize): Set const_val to NULL after freeing it.
6940         * tree-flow.h (get_symbol_constant_value): Declare.
6941         (fold_const_aggregate_ref): Likewise.
6942         * tree-ssa-sccvn.c (try_to_simplify): Use them.
6943
6944 2008-03-15  Richard Guenther  <rguenther@suse.de>
6945
6946         PR middle-end/35593
6947         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
6948         to not produce negative array indices if not allowed.  Add
6949         parameter to indicate that.
6950         (maybe_fold_offset_to_component_ref): Allow negative array
6951         indices only for the first member of a structure.
6952         (maybe_fold_offset_to_reference): Allow negative array indices.
6953         (maybe_fold_stmt_addition): Likewise.
6954
6955 2008-03-15  Bjoern Haase  <bjoern.m.haase@web.de>
6956             Anatoly Sokolov <aesok@post.ru>
6957
6958         * config/avr/avr.c (avr_arch_types): Add avr6 entry.
6959         (avr_arch): Add ARCH_AVR6.
6960         (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
6961         (initial_elimination_offset): Initialize and use 'avr_pc_size' 
6962         instead of fixed value 2.
6963         (print_operand_address): Use gs() asm specifier instead of pm().
6964         (avr_assemble_integer): (Ditto.).
6965         (avr_output_addr_vec_elt): (Ditto.).
6966         (print_operand): Handle "!" code.
6967         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add 
6968         __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
6969         (AVR_HAVE_EIJMP_EICALL): Define.
6970         (AVR_3_BYTE_PC): Redefine.
6971         (AVR_2_BYTE_PC): (Ditto.).
6972         (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
6973         (LINK_SPEC): Add atmega2560 and atmega2561.
6974         (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561 
6975         (crtm2561.o).
6976         * config/avr/avr.md (call_insn): Use eicall instead of icall 
6977         for 3 byte PC devices.
6978         (call_value_insn): (Ditto.).
6979         (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
6980         (indirect_jump): Use only for for 2 byte PC devices.
6981         (*tablejump): (Ditto.).
6982         (*indirect_jump_avr6): Add insn.
6983         (*tablejump_rjmp): Don't use for 3 byte PC devices.
6984         * config/avr/libgcc.S (__prologue_saves__): Use eijmp 
6985         instead of ijmp for 3 byte PC devices.
6986         (__tablejump2__): (Ditto.).
6987         * config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
6988         (MULITLIB_DIRNAMES): (Ditto.). 
6989         (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
6990
6991 2008-03-15  Uros Bizjak  <ubizjak@gmail.com>
6992
6993         * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
6994         "sse2_umulsidi3".  Use V1DI mode for operand 0.
6995         ("mmx_psadbw"): Use V1DI mode for operand 0.
6996         * config/i386/i386-modes.def (V1SI): New vector mode.
6997         * config/i386/i386.c (struct builtin_description)
6998         [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
6999         (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
7000         (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
7001         (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
7002         v1di_ftype_v8qi_v8qi type.
7003         [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
7004
7005         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
7006         __builtin_ia32_pmuludq]: Fix the mode of return value.
7007
7008 2008-03-15  Richard Guenther  <rguenther@suse.de>
7009
7010         PR middle-end/35595
7011         * tree-ssa-pre.c (bitmap_find_leader): Handle expression
7012         being a PHI_NODE.
7013
7014 2008-03-14  Bob Wilson  <bob.wilson@acm.org>
7015         
7016         * doc/invoke.texi (Option Summary, Xtensa Options): Document
7017         -mserialize-volatile and -mno-serialize-volatile Xtensa options.
7018         * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
7019         unless TARGET_SERIALIZE_VOLATILE is enabled.
7020         * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
7021         * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
7022         * config/xtensa/xtensa.opt (mserialize_volatile): New option.
7023
7024 2008-03-14  Richard Guenther  <rguenther@suse.de>
7025
7026         PR tree-optimization/34172
7027         * tree-flow.h (refs_may_alias_p): Declare.
7028         (get_single_def_stmt): Likewise.
7029         (get_single_def_stmt_from_phi): Likewise.
7030         (get_single_def_stmt_with_phi): Likewise.
7031         * tree-dfa.c (refs_may_alias_p): New function.
7032         (get_single_def_stmt): Likewise.
7033         (get_single_def_stmt_from_phi): Likewise.
7034         (get_single_def_stmt_with_phi): Likewise.
7035         * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
7036         (vn_reference_lookup_1): New helper function.
7037         (vn_reference_lookup): Walk the virtual use-def chain to
7038         continue searching for a match if the def does not alias the
7039         reference we are looking for.
7040
7041 2008-03-14  David Edelsohn  <edelsohn@gnu.org>
7042
7043         * doc/install.texi (Binaries): Remove UCLA archive.  Add HVCC
7044         archive and Perzl.  Update The Written Word listing.
7045
7046 2008-03-14  Richard Guenther  <rguenther@suse.de>
7047
7048         PR tree-optimization/34043
7049         PR tree-optimization/33989
7050         * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
7051         when doing FRE.
7052         (bitmap_find_leader): Use extra argument to verify dominance
7053         relationship inside a basic-block.
7054         (can_PRE_operation): Add VIEW_CONVERT_EXPR.
7055         (find_leader_in_sets): Adjust.
7056         (create_component_ref_by_pieces): Take extra argument for
7057         dominance check, handle lookup failures.
7058         (find_or_generate_expression): Likewise.
7059         (create_expression_by_pieces): Likewise.
7060         (insert_into_preds_of_block): Adjust.
7061         (create_value_expr_from): If asked for, verify all operands
7062         are in the blocks AVAIL_OUT set.
7063         (make_values_for_stmt): Check for SSA_NAMEs that are life
7064         over an abnormal edge.
7065         (compute_avail): Remove such check.
7066         (do_SCCVN_insertion): New function.
7067         (eliminate): If we do not find a leader suitable for replacement
7068         insert a replacement expression from SCCVN if available.
7069         * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
7070         (struct vn_ssa_aux): Add needs_insertion flag.
7071         * tree-ssa-sccvn.c (may_insert): New global flag.
7072         (copy_reference_ops_from_ref): Value-number union member access
7073         based on its size, not type and member if insertion is allowed.
7074         (visit_reference_op_load): For a weak match from union type
7075         punning lookup a view-converted value and insert a SSA_NAME
7076         for that value if that is not found.
7077         (visit_use): Make dumps shorter.  Do not disallow value numbering
7078         SSA_NAMEs that are life over an abnormal edge to constants.
7079         (free_scc_vn): Release inserted SSA_NAMEs.
7080         (run_scc_vn): New flag to specify whether insertion is allowed.
7081         Process SSA_NAMEs in forward order.
7082         * tree-ssa-loop-im.c (for_each_index): Handle invariant
7083         ADDR_EXPRs inside VIEW_CONVERT_EXPR.
7084         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
7085         pointer type to/from integral types that do not change the
7086         precision to regular conversions.
7087
7088 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
7089
7090         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
7091         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
7092         __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
7093         __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
7094         input arguments and the mode of return value.  Built-in functions
7095         that operate on whole 64-bit MMX register now use V1DI mode.
7096
7097 2008-03-13  Alon Dayan  <alond@il.ibm.com>
7098             Olga Golovanevsky  <olga@il.ibm.com>
7099
7100         PR tree-optimization/35041
7101         * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
7102         to locate the right position in a statement.
7103
7104 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
7105
7106         PR target/34000
7107         PR target/35553
7108         * config/i386/xmmintrin.h:  Change all static inline functions to
7109         extern inline and add __gnu_inline__ attribute.
7110         * config/i386/bmintrin.h: Ditto.
7111         * config/i386/smmintrin.h: Ditto.
7112         * config/i386/tmmintrin.h: Ditto.
7113         * config/i386/mmintrin-common.h: Ditto.
7114         * config/i386/ammintrin.h: Ditto.
7115         * config/i386/emmintrin.h: Ditto.
7116         * config/i386/pmmintrin.h: Ditto.
7117         * config/i386/mmintrin.h: Ditto.
7118         * config/i386/mm3dnow.h: Ditto.
7119
7120 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
7121
7122         PR middle-end/35185
7123         * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
7124         (lower_omp_2): New function.
7125         (lower_omp_1, lower_omp): Rewritten.
7126
7127 2008-03-13  Danny Smith  <dannysmith@users.sourceforge.net>
7128
7129         PR 35054
7130         * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
7131         with the phrase "Microsoft Windows compilers".
7132         (Push/Pop Macro Pragmas): New subsection. Document
7133         #pragma push_macro and pragma pop_macro.
7134
7135 2008-03-12  Paul Brook  <paul@codesourcery.com>
7136
7137         * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
7138
7139 2008-03-12  Paul Brook  <paul@codesourcery.com>
7140
7141         * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
7142         (thumb2_alusi3_short): Exclude PLUS and MINUS.
7143         (thumb2_addsi_shortim): Rename ...
7144         (thumb2_addsi_short): ... to this.  Allow register operands.
7145         (thumb2_subsi_short): New pattern.
7146         (thumb2_one_cmplsi2_short,
7147         thumb2_negsi2_short): New patterns and peepholes.
7148
7149 2008-03-12  Paul Brook  <paul@codesourcery.com>
7150
7151         * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
7152
7153 2008-03-12  Uros Bizjak  <ubizjak@gmail.com>
7154
7155         * config/i386/i386.md (int_cond): New code iterator.
7156         (fp_cond): Ditto.
7157         ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
7158         sge, sgeu, sle and sleu expanders usign int_cond code iterator.
7159         ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
7160         sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
7161         ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
7162         bge, bgeu, ble and bleu expanders usign int_cond code iterator.
7163         ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
7164         bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
7165
7166 2008-03-12  Paul Brook  <paul@codesourcery.com>
7167
7168         * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
7169         instead of {arm,thumb}_compute_save_reg_mask.
7170         (output_return_instruction): Ditto.
7171         (thumb_unexpanded_epilogue): Ditto.
7172         (thumb1_expand_prologue): Ditto.
7173         (thumb1_output_function_prologue): Ditto.
7174         (arm_set_return_address): Ditto.
7175         (thumb_set_return_address): Ditto.
7176         (arm_get_frame_offsets): Set offsets->saved_regs_mask.  Push extra
7177         regs to achieve stack alignment.
7178         (thumb1_compute_save_reg_mask): Fix compiler warning.
7179         (arm_output_epilogue): Use offsets->saved_regs_mask.
7180         Adjust stack pointer by poping call clobered registers.
7181         (arm_expand_prologue): Use offsets->saved_regs_mask.
7182         Adjust stack pointer by pushing extra registers.
7183         * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
7184
7185 2008-03-12  Paolo Bonzini  <bonzini@gnu.org>
7186
7187         PR tree-opt/35422
7188         * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
7189         conversion to the operands of a multiplication.
7190
7191 2008-03-12  Richard Guenther  <rguenther@suse.de>
7192
7193         * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
7194         (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
7195         * timevar.def (TV_TREE_PHIPROP): Add.
7196         * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
7197         pass description.  Use TV_TREE_PHIPROP.
7198         * tree-ssa-forwprop.c: Remove phiprop code.
7199
7200 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
7201
7202         PR middle-end/35549
7203         * omp-low.c (maybe_lookup_decl): Constify first argument.
7204         (use_pointer_for_field): Change last argument from bool to
7205         omp_context *.  Disallow shared copy-in/out in nested
7206         parallel if decl is shared in outer parallel too.
7207         (build_outer_var_ref, scan_sharing_clauses,
7208         lower_rec_input_clauses, lower_copyprivate_clauses,
7209         lower_send_clauses, lower_send_shared_vars): Adjust callers.
7210
7211 2008-03-12  Victor Kaplansky  <victork@il.ibm.com>
7212             Ira Rosen  <irar@il.ibm.com>
7213
7214         * tree-vectorizer.c (free_stmt_vec_info): New function.
7215         (destroy_loop_vec_info): Move code to free_stmt_vec_info().
7216         Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
7217         * tree-vectorizer.h (free_stmt_vec_info): Declare.
7218         * tree-vect-transform.c (vectorizable_conversion): Free
7219         vec_oprnds0 if it was allocated.
7220         (vect_permute_store_chain): Remove unused VECs.
7221         (vectorizable_store): Free VECs that are allocated in the..
7222         function.
7223         (vect_transform_strided_load, vectorizable_load): Likewise.
7224         (vect_remove_stores): Simplify the code.
7225         (vect_transform_loop): Move code to vect_remove_stores().
7226         Call vect_remove_stores() and free_stmt_vec_info().
7227
7228 2008-03-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7229
7230         * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
7231         TARGET_HPUX.  Revise comment.
7232         (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
7233         * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
7234         Use sr4 variant of `be' instruction when not generating PIC code.
7235         (attr_length_call): Adjust for above change.
7236
7237 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
7238
7239         * ipa-reference.c (static_execute): Remove module_statics_const and
7240         associated setting code.
7241
7242 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
7243
7244         PR target/35540
7245         * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
7246         predicate for operand 1.
7247         (paritysi2_cmp): Use register_operand predicate for operand 2.
7248         Use earlyclobber modifier for operand 1.  Remove support for
7249         memory operands.
7250         (paritydi2_cmp): Use register_operand predicate for operand 3.
7251         Use earlyclobber modifier for operand 1.  Remove support for
7252         memory operands.
7253
7254 2008-03-11  Paul Brook  <paul@codesourcery.com>
7255             Vladimir Prus  <vladimir@codesourcery.com>
7256
7257         * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
7258         (arm_compute_save_reg0_reg12_mask): Always
7259         check if register 11 must be saved.  Always safe hard frame pointer
7260         when frame_pointer_needeed.
7261         (arm_compute_save_reg_mask): Save IP and PC
7262         only with apcs frames.
7263         (arm_output_epilogue): Adjust Thumb2 codepath to
7264         be also invoked and work for ARM non-apcs frames.
7265         (arm_expand_prologue): Don't bother saving IP
7266         for non-apcs frame, since it's not clobbered by
7267         prologue code.  Implement non-apcs frame
7268         layout.
7269
7270 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
7271
7272         PR rtl-optimization/35281
7273         * expr.c (convert_move): Use a new pseudo for the intermediate
7274         from_mode->word_mode result.
7275
7276 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
7277
7278         * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
7279         * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
7280         * toplev.c (compile_file): Don't call it.
7281
7282 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
7283
7284         PR middle-end/35526
7285         * expr.c (store_expr): Call emit_block_move if the mode
7286         of "temp" RTX is BLKmode.
7287
7288 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
7289             Richard Guenther  <rguenther@suse.de>
7290
7291         PR tree-optimization/31358
7292         * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
7293         the step with a NULL_TREE.
7294         * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
7295         to sizetype if type is a pointer type.
7296         (add_candidate_1): Don't convert the base and step to
7297         the generic type if the orginal type is a pointer type.
7298         (add_iv_value_candidates): Use sizetype for the step
7299         if type is a pointer type.
7300         (cand_value_at): Likewise.
7301         * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
7302         for pointer types.
7303         * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
7304         Don't convert the tem affine to the type.
7305         (add_elt_to_tree): Use sizetype for the step if a pointer.
7306         Use POINTER_PLUS_EXPR for pointers.
7307         (aff_combination_to_tree): Use sizetype for the step if a
7308         pointer.
7309
7310 2008-03-10  Vladimir Makarov  <vmakarov@redhat.com>
7311
7312         * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
7313         Remove commutativity hint.
7314
7315 2008-03-10  Jakub Jelinek  <jakub@redhat.com>
7316
7317         PR c/35438
7318         PR c/35439
7319         * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
7320         errorneous type.  Check that v is a VAR_DECL.
7321
7322         PR middle-end/35099
7323         * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
7324
7325 2008-03-10  H.J. Lu  <hongjiu.lu@intel.com>
7326
7327         PR tree-optimization/35494
7328         * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
7329         may be overriden at link and run time.
7330
7331 2008-03-10  Richard Guenther  <rguenther@suse.de>
7332
7333         PR tree-optimization/34677
7334         * tree-ssa-pre.c (modify_expr_node_pool): Remove.
7335         (poolify_tree): Likewise.
7336         (modify_expr_template): Likewise.
7337         (poolify_modify_stmt): Likewise.
7338         (insert_fake_stores): Handle all component-ref style stores
7339         in addition to INDIRECT_REF.  Also handle complex types.
7340         Do not poolify the inserted load.
7341         (realify_fake_stores): Do not rebuild the tree but only
7342         make it a SSA_NAME copy.
7343         (init_pre): Remove initialzation of modify_expr_template.
7344         Do not allocate modify_expr_node_pool.
7345         (fini_pre): Do not free modify_expr_node_pool.
7346
7347 2008-03-10  Paul Brook  <paul@codesourcery.com>
7348
7349         * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
7350         to avoid conflicts.
7351
7352 2008-03-10  Paul Brook  <paul@codesourcery.com>
7353             Mark Shinwell  <shinwell@codesourcery.com>
7354
7355         * config/arm/cortex-r4.md: New.
7356         * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
7357         insn attributes.
7358         * config/arm/arm.md: Include cortex-r4.md.
7359         (insn): Add smmls, sdiv and udiv values.
7360         (generic_sched): Don't use generic scheduling for Cortex-R4.
7361         (arm_issue_rate): New function.
7362         (TARGET_SCHED_ISSUE_RATE): Define.
7363
7364 2008-03-10  Sebastian Pop  <sebastian.pop@amd.com>
7365
7366         * doc/invoke.texi (-ftree-loop-distribution): Add an example.
7367
7368 2008-03-10  Richard Guenther  <rguenther@suse.de>
7369
7370         * tree-ssa-pre.c (get_sccvn_value): Simplify.
7371         (compute_avail): Do not add stmt uses to AVAIL_OUT.
7372
7373 2008-03-10  Paolo Bonzini  <bonzini@gnu.org>
7374
7375         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
7376         Set default to true.
7377
7378 2008-03-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7379
7380         * c.opt (Wsynth): Deprecate.
7381         * doc/invoke.texi (Option Summary, Warning Options): Document
7382         -Wno-format-contains-nul.
7383
7384 2008-03-09  Uros Bizjak  <ubizjak@gmail.com>
7385
7386         PR target/35496
7387         * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
7388         ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
7389
7390 2008-03-09  Ira Rosen  <irar@il.ibm.com>
7391
7392         * config/rs6000/rs6000.c (builtin_description): Rename vector
7393         left shift operations.
7394         * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
7395         (altivec_vsl<VI_char>): Rename to ...
7396         (ashl<mode>3): ... new name.
7397         (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
7398         gen_ashlv4si3.
7399         (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
7400
7401 2008-03-08  Richard Guenther  <rguenther@suse.de>
7402
7403         * coverage.h (tree_coverage_counter_addr): Declare.
7404         * coverage.c (tree_coverage_counter_addr): New function.
7405         * tree-profile.c (tree_gen_edge_profiler): Unshare counter
7406         before using again.
7407         (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
7408         (tree_gen_one_value_profiler): Likewise.
7409         (tree_gen_ic_profiler): Likewise.
7410         (tree_gen_average_profiler): Likewise.
7411         (tree_gen_ior_profiler): Likewise.
7412
7413 2008-03-08  Richard Guenther  <rguenther@suse.de>
7414
7415         * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
7416         (vn_binary_op_insert): Likewise.
7417         (vn_unary_op_lookup): Likewise.
7418         (vn_unary_op_insert): Likewise.
7419         (vn_nary_op_lookup): Declare.
7420         (vn_nary_op_insert): Likewise.
7421         * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
7422         and binary hashes, use a single obstack for unary_op_pool
7423         and binary_op_pool.
7424         (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
7425         a single struct vn_nary_op_s.  Store tree code length and
7426         a variable number of operands.
7427         (struct vn_reference_op_struct): Remove unused op2.
7428         (vn_reference_op_eq): Do not compare op2.
7429         (vn_reference_op_compute_hash): Do not compute hash of op2.
7430         (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
7431         (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
7432         with vn_nary_op_compute_hash.
7433         (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
7434         (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
7435         vn_nary_op_lookup.
7436         (vn_unary_op_insert, vn_binary_op_insert): Replace with
7437         vn_nary_op_insert.
7438         (visit_unary_op): Call nary functions.
7439         (visit_binary_op): Likewise.
7440         (process_scc): Adjust for struct vn_tables_s changes.
7441         (allocate_vn_table): Likewise.
7442         (free_vn_table): Likewise.
7443         * tree-vn.c (vn_add): Call nary functions.
7444         (vn_lookup): Likewise.
7445
7446 2008-03-08  Jakub Jelinek  <jakub@redhat.com>
7447
7448         PR target/35498
7449         * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
7450         wdst back after sync_compare_and_swapqhi_internal.
7451
7452 2008-03-08  Uros Bizjak  <ubizjak@gmail.com>
7453
7454         PR target/22152
7455         * config/i386/i386-modes.def (V1DI): New vector mode.
7456         * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
7457         * config/i386/mmx.md (MMXMODEI8): New mode iterator.
7458         (MMXMODE248): Ditto.
7459         (MMXMODE): Add V1DI mode.
7460         (mmxvecsize): Change DI mode to V1DI mode.
7461         ("mov<mode>): Use MMXMODEI8 mode iterator.
7462         ("*mov<mode>_internal_rex64"): Ditto.
7463         ("*mov<mode>_internal"): Ditto.
7464         ("mmx_add<mode>3"): Ditto.  Handle V1DImode for TARGET_SSE2.
7465         ("mmx_sub<mode>3"): Ditto.
7466         ("mmx_adddi3"): Remove insn pattern.
7467         ("mmx_subdi3"): Ditto.
7468         ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
7469         ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
7470         ("mmx_ashl<mode>3"): Ditto.
7471         ("mmx_lshrdi3"): Remove insn pattern.
7472         ("mmx_ashldi3"): Ditto.
7473         * config/i386/i386.c (classify_argument): Handle V1DImode.
7474         (function_arg_advance_32): Ditto.
7475         (function_arg_32): Ditto.
7476         (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
7477         mmx_addv1di3 insn pattern.
7478         [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
7479         [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
7480         IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
7481         IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
7482         Remove definitions of built-in functions.
7483         (V1DI_type_node): New node.
7484         (v1di_ftype_v1di_int): Ditto.
7485         (v1di_ftype_v1di_v1di): Ditto.
7486         (v2si_ftype_v2si_si): Ditto.
7487         (v4hi_ftype_v4hi_di): Remove node.
7488         (v2si_ftype_v2si_di): Ditto.
7489         (ix86_init_mmx_sse_builtins): Handle V1DImode.
7490         (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
7491         Redefine builtins using def_builtin_const with *_ftype_*_int node.
7492         (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
7493         Add new builtins using def_builtin_const.
7494         (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
7495         IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
7496         IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
7497         * config/i386/mmintrin.h (__v1di): New typedef.
7498         (_mm_add_si64): Cast arguments to __v1di type.
7499         (_mm_sub_si64): Ditto.
7500         (_mm_sll_pi16): Cast __count to __v4hi type.
7501         (_mm_sll_pi32): Cast __count to __v2si type.
7502         (_mm_sll_si64): Cast arguments to __v1di type.
7503         (_mm_srl_pi16): Cast __count to __v4hi type.
7504         (_mm_srl_pi32): Cast __count to __v2si type.
7505         (_mm_srl_si64): Cast arguments to __v1di type.
7506         (_mm_sra_pi16): Cast __count to __v4hi type.
7507         (_mm_sra_pi32): Cast __count to __v2si type.
7508         (_mm_slli_pi16): Use __builtin_ia32_psllwi.
7509         (_mm_slli_pi32): Use __builtin_ia32_pslldi.
7510         (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
7511         (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
7512         (_mm_srli_pi32): Use __builtin_ia32_psrldi.
7513         (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
7514         (_mm_srai_pi16): Use __builtin_ia32_psrawi.
7515         (_mm_srai_pi32): Use __builtin_ia32_psradi.
7516         * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
7517         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
7518         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
7519         __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
7520
7521 2008-03-07  Joseph Myers  <joseph@codesourcery.com>
7522
7523         * doc/include/texinfo.tex: Update to version 2008-03-07.10.
7524
7525 2008-03-07  Peter Bergner  <bergner@vnet.ibm.com>
7526
7527         PR target/35373
7528         * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
7529         reg+const addressing for Altivec modes.  Don't generate reg+reg
7530         addressing for TFmode or TDmode quantities.
7531
7532 2008-03-07  Paolo Bonzini  <bonzini@gnu.org>
7533
7534         * c-common.c (vector_types_convertible_p): Call langhook
7535         instead of comptypes.
7536
7537 2008-03-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
7538
7539         PR tree-opt/35402
7540         * tree-ssa-ccp.c (get_symbol_constant_value): Handle
7541         integral and scalar float variables which have a
7542         NULL DECL_INITIAL.
7543
7544 2008-03-06  Nathan Froyd  <froydnj@codesourcery.com>
7545
7546         * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
7547         dwarf_register_span hook when emitting unwind information for
7548         register-to-memory saves.
7549         * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
7550         (rs6000_frame_related): Remove call to spe_synthesize_frame.
7551
7552 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
7553
7554         * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
7555         for the same VAR_DECL.
7556
7557 2008-03-06  Tom Tromey  <tromey@redhat.com>
7558
7559         * treelang: Delete.
7560         * doc/standards.texi (Standards): Don't mention treelang.
7561         * doc/invoke.texi (Overall Options): Don't mention treelang.
7562         * doc/install.texi (Prerequisites): Don't mention bison or
7563         treelang.
7564         (Configuration): Don't mention treelang.
7565         (Building): Likewise.
7566         * doc/frontends.texi (G++ and GCC): Don't mention treelang.
7567
7568 2008-03-06  Paolo Bonzini  <bonzini@gnu.org>
7569
7570         * simplify-rtx.c (simplify_subreg): Remove useless shifts from
7571         word-extractions out of a multi-word object.
7572
7573 2008-03-06  Richard Guenther  <rguenther@suse.de>
7574
7575         * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
7576         * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
7577         result type and precision.
7578         * expr.c (get_inner_reference): Set unsignedp based on the result
7579         type of BIT_FIELD_REF.
7580         * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
7581         * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
7582         (try_instantiate_multiple_fields): Likewise.  Use the correct type
7583         for BIT_FIELD_REF.
7584         (sra_build_assignment): Likewise.
7585         (sra_build_elt_assignment): Likewise.
7586         (sra_explode_bitfield_assignment): Likewise.
7587         * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
7588         * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
7589         set BIT_FIELD_REF_UNSIGNED.
7590         (vectorizable_load): Likewise.
7591
7592 2008-03-06  Andreas Krebbel  <krebbel1@de.ibm.com>
7593
7594         * cse.c (cse_extended_basic_block): Invalidate artificial defs
7595         at bb start.
7596
7597 2008-03-06  Richard Guenther  <rguenther@suse.de>
7598
7599         * alias.c (struct alias_set_entry): Move has_zero_child field
7600         to pack with alias_set.
7601
7602 2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
7603
7604         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
7605         32bit host.
7606
7607 2008-03-05  Ian Lance Taylor  <iant@google.com>
7608
7609         * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
7610
7611 2008-03-05  Kenneth Zadeck  <zadeck@naturalbridge.com>
7612
7613         * fwprop.c (update_df): Support width and offset parameters of
7614         df_ref_create.
7615         * ra-conflict.c (mark_reg_store, clear_reg_in_live,
7616         global_conflicts): Change DF_REF_EXTRACT to either
7617         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
7618         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
7619         * df-scan.c (df_ref_record, df_defs_record,
7620         df_ref_create_structure, df_def_record_1, df_uses_record,
7621         df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
7622         df_bb_refs_collect, df_entry_block_defs_collect,
7623         df_exit_block_uses_collect): Support new width and offset fields.
7624         (ref_extract_pool): New storage pool.
7625         (df_free_ref): New function.
7626         (df_reg_chain_unlink, df_free_collection_rec,
7627         df_sort_and_compress_refs): Call df_free_ref.
7628         (df_ref_equal_p, df_ref_compare): Compare offset and width fields
7629         of df_ref_extract.
7630         (df_ref_create_structure): Allocate df_ref_extract if offset and
7631         width fields are used.
7632         (df_def_record_1): Get offset and width from ZERO_EXTRACT.
7633         (df_uses_record): Get offset and width from ZERO_EXTRACT 
7634         and SIGN_EXTRACT.
7635         * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
7636         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
7637         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
7638         * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
7639         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
7640         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
7641         (df_ref_extract): New structure.
7642         (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
7643         (df_ref_create): Add width and offset parameters.
7644         
7645 2008-03-05  Richard Guenther  <rguenther@suse.de>
7646
7647         * tree-ssa-structalias.c (get_constraint_for_component_ref):
7648         Use ranges_overlap_p.
7649         (offset_overlaps_with_access): Rename
7650         to ranges_overlap_p and move ...
7651         * tree-flow-inline.h (ranges_overlap_p): ... here.
7652
7653         * tree.h (get_inner_reference, handled_component_p): Update
7654         comments.
7655
7656         * tree.h (record_component_aliases, get_alias_set,
7657         alias_sets_conflict_p, alias_sets_must_conflict_p,
7658         objects_must_conflict_p): Move declarations ...
7659         * alias.h (record_component_aliases, get_alias_set,
7660         alias_sets_conflict_p, alias_sets_must_conflict_p,
7661         objects_must_conflict_p): ... here.
7662         Include coretypes.h.
7663         * Makefile.in (ALIAS_H): Add coretypes.h dependency.
7664
7665 2008-03-05  Aldy Hernandez  <aldyh@redhat.com>
7666
7667         * cfg.c: Include tree-flow.h.
7668         (remove_edge_raw): Call redirect_edge_var_map_clear.
7669         (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
7670         * tree-flow-inline.h (redirect_edge_var_map_def): New.
7671         (redirect_edge_var_map_result): New.
7672         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
7673         PENDING_STMT use with redirect_edge_var_map_*.
7674         * tree-ssa.c (edge_var_maps): New definition.
7675         (redirect_edge_var_map_add): New.
7676         (redirect_edge_var_map_clear): New.
7677         (redirect_edge_var_map_dup): New.
7678         (redirect_edge_var_map_vector): New.
7679         (redirect_edge_var_map_destroy): New.
7680         (ssa_redirect_edge): Replace PENDING_STMT use with
7681         redirect_edge_var_map_*.
7682         (flush_pending_stmts): Same.
7683         (delete_tree_ssa): Destroy edge var map.
7684         * tree-flow.h (struct _edge_var_map): New.
7685         Define edge_var_map vector type.
7686         Declare redirect_edge_var_map_* prototypes.
7687         * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
7688         * tree-cfg.c (reinstall_phi_args): Replace
7689         PENDING_STMT use with redirect_edge_var_map_*.
7690
7691 2008-03-05  Richard Guenther  <rguenther@suse.de>
7692
7693         PR tree-optimization/35472
7694         * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
7695         whose single use_stmt has a overlapping set of loaded and
7696         stored symbols as that use_stmt might be a noop assignment then.
7697
7698 2008-03-05  Joel Sherrill <joel.sherrill@oarcorp.com>
7699
7700         * gthr-rtems.h: Implement __gthread_mutex_destroy.
7701
7702 2008-03-05  Richard Guenther  <rguenther@suse.de>
7703
7704         PR c++/35336
7705         * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
7706         should be constants.
7707         * tree-cfg.c (verify_expr): Verify it.
7708         * fold-const.c (fold_truthop): Remove code generating
7709         BIT_FIELD_REFs of structure bases.
7710         (fold_binary): Likewise.
7711         (fold_ternary): Position and size of BIT_FIELD_REFs are
7712         always host integers.
7713         (make_bit_field_ref): Remove.
7714         (optimize_bit_field_compare): Remove.
7715         (all_ones_mask_p): Remove.
7716
7717 2008-03-05  Gabor Loki  <loki@gcc.gnu.org>
7718
7719         PR gcc/33009
7720         * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
7721         (split_block_and_df_analyze): New. Split basic block and rebuild
7722         dataflow.
7723         (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
7724         SPLIT_BLOCK.
7725         (split_pattern_seq): Likewise.
7726         (erase_matching_seqs): Likewise.
7727         (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
7728
7729 2008-03-04  Geoff Keating  <geoffk@apple.com>
7730
7731         * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
7732         declaration and code.
7733         (tree_invalid_nonnegative_warnv_p): Likewise.
7734
7735 2008-03-05  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
7736
7737         * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
7738         examples.  Truncate option-names then causing overfull hbox.
7739
7740 2008-03-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7741
7742         PR target/35222
7743         * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
7744         on hpux10.
7745         * configure: Rebuilt.
7746
7747 2008-03-04  Rafael Espindola  <espindola@google.com>
7748
7749         * fold-const.c (tree_simple_nonnegative_warnv_p): New.
7750         (tree_unary_nonnegative_warnv_p): New.
7751         (tree_binary_nonnegative_warnv_p): New.
7752         (tree_single_nonnegative_warnv_p): New.
7753         (tree_invalid_nonnegative_warnv_p): New.
7754         (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
7755
7756 2008-03-04  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7757
7758         PR 28322
7759         * opts.c (handle_option): Postpone 'unknown option' errors only for
7760         warning options.
7761
7762 2008-03-04  H.J. Lu  <hongjiu.lu@intel.com>
7763
7764         PR target/35453
7765         * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
7766         (_SIDD_XXX): This.
7767
7768 2008-03-04  Rafael Espindola  <espindola@google.com>
7769
7770         * fold-const.c (tree_unary_nonzero_warnv_p): New.
7771         (tree_binary_nonzero_warnv_p): New.
7772         (tree_single_nonzero_warnv_p): New.
7773         (tree_expr_nonzero_warnv_p): Redefine using the new functions.
7774
7775 2008-03-04  Uros Bizjak  <ubizjak@gmail.com>
7776
7777         PR middle-end/35456
7778         * fold-const.c (fold_cond_expr_with_comparison): Prevent
7779         transformations for modes that have signed zeros.
7780         * ifcvt.c (noce_try_abs): Ditto.
7781
7782 2008-03-04  Joseph Myers  <joseph@codesourcery.com>
7783
7784         * config/i386/i386.c (override_options): Force
7785         -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
7786
7787 2008-03-04  Jan Hubicka  <jh@suse.cz>
7788
7789         PR c++/35262
7790         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
7791         in last commit.
7792
7793 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
7794
7795         * config/i386/i386.md (allocate_stack_worker_32): Use  __chkstk
7796         label to probe the stack.
7797
7798 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
7799
7800         * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
7801         (__gthr_win32_mutex_destroy): Declare.
7802         [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
7803         __gthr_win32_mutex_destroy.
7804         * config/i386/gthr-win32.c  (__gthr_win32_mutex_destroy): Define.
7805
7806 2008-03-03  Jan Hubicka  <jh@suse.cz>
7807
7808         PR c++/35262
7809         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
7810         aggressive on inlining cold calls.
7811
7812 2008-03-03  Richard Guenther  <rguenther@suse.de>
7813
7814         * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
7815         struct copies into the expression table.
7816         (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
7817         (try_to_simplify): Likewise.
7818         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
7819         integral and pointer arguments which do not change the
7820         precision to NOP_EXPRs.
7821         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
7822         VIEW_CONVERT_EXPR case.
7823
7824 2008-03-02  Sebastian Pop  <sebastian.pop@amd.com>
7825
7826         * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
7827         defined in a loop at depth 0 is invariant.
7828         * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
7829         * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
7830         be called at loop depth 0.
7831
7832 2008-03-02  Jakub Jelinek  <jakub@redhat.com>
7833
7834         PR driver/35420
7835         * gcc.c (process_command): Update copyright notice dates.
7836         * gcov.c (print_version): Likewise.
7837         * gcov-dump.c (print_version): Likewise.
7838         * mips-tfile.c (main): Likewise.
7839         * mips-tdump.c (main): Likewise.
7840
7841 2008-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7842
7843         PR 24924
7844         * c-common.c (flag_permissive): Delete.
7845         (constant_expression_warnings): Check flags first.
7846         (constant_expression_error): New.
7847         * c-common.h (flag_permissive): Delete.
7848         (constant_expression_error): Declare.
7849         * flags.h (flag_permissive): Declare. Update description.
7850         * diagnostic.c (pedwarn): Update.
7851         (permerror): New.
7852         * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
7853         (permissive_error_kind): New.
7854         * toplev.c (flag_permissive): Define. Update description.
7855         * toplev.h (permissive_error_kind): Declare.
7856         * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
7857         (pedwarn_c90): Use pedantic_warning_kind.
7858         * c-opts.c (c_common_post_options): flag_permissive does not affect
7859         flag_pedantic_errors.
7860
7861 2008-03-02  Joseph Myers  <joseph@codesourcery.com>
7862
7863         * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
7864         __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
7865         __absvsi2, __absvDI2): Use unsigned arithmetic.
7866
7867 2008-03-02  Andi Kleen  <ak@suse.de>
7868             Richard Guenther  <rguenther@suse.de>
7869
7870         * struct-equiv.c: Remove file.
7871         * cfg_cleanup.c (condjump_equiv_p): Remove.
7872         * Makefile.in (OBJS-common): Remove struct-equiv.o.
7873         (struct-equiv.o): Remove rule.
7874         * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
7875         insns_match_p, struct_equiv_block_eq, struct_equiv_init, 
7876         rtx_equiv_p, condjump_equiv_p): Remove prototypes.
7877
7878 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
7879
7880         * ifcvt.c (noce_process_if_block): Try to handle only the then
7881         block if the else block exists but isn't suitable.
7882
7883 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
7884
7885         PR gcc/35063
7886         * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
7887         * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
7888         regression from previous patch.
7889
7890 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
7891
7892         PR gcc/35063
7893         * gthr.h: Add __gthread_mutex_destroy as a function that must be
7894         implemented.
7895         * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
7896         * gthr-single.h (__gthread_mutex_destroy): Likewise.
7897         * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
7898         * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
7899         * gthr-nks.h (__gthread_mutex_destroy): Likewise.
7900         * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
7901         * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
7902         (__gthread_mutex_destroy_function): Rename to
7903         __gthread_mutex_destroy.
7904         * gthr-dce.h (__gthread_mutex_destroy): Call
7905         pthread_mutex_destroy.
7906         * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
7907         * gthr-posix.h (__gthread_mutex_destroy): Likewise.
7908         * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
7909
7910 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
7911
7912         * df-scan.c (df_ref_chain_change_bb): Simplify.
7913         (df_insn_change_bb): Add new_bb argument.  Simplify.  Call
7914         set_block_for_insn if there's any change.
7915         * df.h ((df_insn_change_bb): Fix prototype.
7916         * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
7917         df_insn_change_bb, don't call set_block_for_insn.
7918         * emit-rtl.c (reorder_insns): Likewise.
7919         * haifa-sched.c (move_insn): Likewise.
7920
7921 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
7922
7923         * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
7924
7925 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
7926
7927         * tree-flow-inline.h (next_readonly_imm_use): Return
7928         NULL_USE_OPERAND_P after the end.
7929
7930 2008-03-01  Richard Guenther  <rguenther@suse.de>
7931
7932         PR tree-optimization/35411
7933         * tree-sra.c (sra_build_assignment): Split conversion to
7934         final type to a separate statement if we are not assigning
7935         to a register.
7936
7937 2008-02-29  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
7938
7939         * fold-const.c (fold_convertible_p): Correct the logic to follow
7940         that in fold_convert().
7941
7942 2008-02-29  Douglas Gregor  <doug.gregor@gmail.com>
7943
7944         PR c++/35315
7945         * tree-inline.c (build_duplicate_type): When we make a
7946         duplicate type, make it unique in the canonical types system.
7947
7948 2008-02-29  Tom Tromey  <tromey@redhat.com>
7949
7950         * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
7951         input_file_stack_history, input_file_stack_restored): Remove.
7952         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
7953         * input.h (struct file_stack): Remove.
7954         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
7955         (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
7956         Likewise.
7957         * diagnostic.h (struct diagnostic_context) <last_module>: Change
7958         type.
7959         (diagnostic_last_module_changed): Add 'map' argument.
7960         (diagnostic_set_last_function): Likewise.
7961         * diagnostic.c (undiagnostic_report_current_module): Iterate using
7962         line map, not input_file_stack.
7963         * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
7964
7965 2008-02-29  Paul Brook  <paul@codesourcery.com>
7966
7967         * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
7968
7969 2008-02-29  Paul Brook  <paul@codesourcery.com>
7970
7971         * config/arm/ieee754-df.S (muldf3): Use RET macros.
7972
7973 2008-02-29  Richard Guenther  <rguenther@suse.de>
7974
7975         * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
7976         vn_lookup_or_add.
7977         * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
7978         value for comparing for a store match.
7979         (simplify_unary_expression): Do nothing for SSA_NAMEs.
7980         (try_to_simplify): Do not do a full-blown reference lookup.
7981
7982 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
7983
7984         * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
7985         (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
7986
7987         * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
7988
7989 2008-02-29  Sebastian Pop  <sebastian.pop@amd.com>
7990
7991         * tree-loop-linear.c (try_interchange_loops): Compare memory access
7992         strides against cache sizes.
7993
7994 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
7995
7996         * config/sh/sh.c (sh_secondary_reload): Handle loading a float
7997         constant to fpul.
7998
7999 2008-02-28  Richard Sandiford  <rsandifo@nildram.co.uk>
8000
8001         * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
8002         of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
8003         is smaller than the original promoted value.
8004         (simplify_subreg): If OP is a SUBREG, try to preserve its
8005         SUBREG_PROMOTED_VAR_P information.
8006
8007 2008-02-28  Steven Bosscher  <stevenb.gcc@gmail.com>
8008
8009         * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
8010         (VN_INFO_GET): Allocate new objects on the obstack.
8011         (init_scc_vn): Initialize the obstack.  Use XDELETE instead of free
8012         for rpo_numbers_temp, for consistency.
8013         (free_scc_vn): Free the obstack.
8014
8015 2008-02-28  Sebastian Pop  <sebastian.pop@amd.com>
8016
8017         * doc/invoke.texi: Document -ftree-loop-distribution.
8018         * tree-loop-distribution.c: New.
8019         * tree-pass.h (pass_loop_distribution): New.
8020         * graphds.h (struct graph): Add htab_t indices.
8021         * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
8022         * tree-vectorizer.c (rename_variables_in_loop): Extern.
8023         (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
8024         * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
8025         * tree-data-ref.c (debug_data_dependence_relations): New.
8026         (dump_data_dependence_relation): Also print data references.
8027         (free_data_ref): Extern.
8028         (same_access_functions): Moved...
8029         (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
8030         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
8031         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
8032         struct rdg_vertex_info, rdg_vertex_for_stmt): New.
8033         (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
8034         (stmts_from_loop): Skip LABEL_EXPR.
8035         (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
8036         New.
8037         (build_rdg): Initialize rdg->indices htab.
8038         (free_rdg, stores_from_loop, ref_base_address,
8039         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
8040         have_similar_memory_accesses_1, ref_base_address_1,
8041         remove_similar_memory_refs): New.
8042         * tree-data-ref.h: Depend on tree-chrec.h.
8043         (debug_data_dependence_relations, free_data_ref): Declared.
8044         (same_access_functions): ... here.
8045         (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
8046         New.
8047         (struct rdg_vertex): Add has_mem_write and has_mem_reads.
8048         (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
8049         RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
8050         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
8051         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
8052         rdg_vertex_for_stmt): Declared.
8053         (struct rdg_edge): Add level.
8054         (RDGE_LEVEL): New.
8055         (free_rdg, stores_from_loop, remove_similar_memory_refs,
8056         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
8057         Declared.
8058         (rdg_has_similar_memory_accesses): New.
8059         * tree-vect-analyze.c: Remove unused static decls.
8060         * lambda.h (dependence_level): New.
8061         * common.opt (ftree-loop-distribution): New.
8062         * tree-flow.h (mark_virtual_ops_in_bb, 
8063         slpeel_tree_duplicate_loop_to_edge_cfg,
8064         rename_variables_in_loop): Declared.
8065         * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
8066         (OBJS-common): Add tree-loop-distribution.o.
8067         (tree-loop-distribution.o): New rule.
8068         * tree-cfg.c (mark_virtual_ops_in_bb): New.
8069         (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
8070         * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
8071
8072 2008-02-28  Joseph Myers  <joseph@codesourcery.com>
8073
8074         PR target/33963
8075         * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
8076         other than structures and unions.
8077
8078 2008-02-28  Richard Guenther  <rguenther@suse.de>
8079
8080         Revert:
8081         2008-02-26  Richard Guenther  <rguenther@suse.de>
8082
8083         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
8084         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
8085         (lookup_decl_from_uid): Declare.
8086         (remove_decl_from_map): Likewise.
8087         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
8088         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
8089         (decl_for_uid_map): New global hashtable mapping DECL_UID
8090         to the decl tree.
8091         (init_ttree): Allocate it.
8092         (insert_decl_to_uid_decl_map): New helper function.
8093         (make_node_stat): Insert new decls into the map.
8094         (copy_node_stat): Likewise.
8095         (lookup_decl_from_uid): New function.
8096         (remove_decl_from_map): Likewise.
8097         (print_decl_for_uid_map_statistics): New helper.
8098         (dump_tree_statistics): Call it.
8099
8100         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
8101         (referenced_var_iterator): Adjust.
8102         (FOR_EACH_REFERENCED_VAR): Adjust.
8103         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
8104         (num_referenced_vars): Adjust.
8105         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
8106         (first_referenced_var): Remove.
8107         (end_referenced_vars_p): Likewise.
8108         (next_referenced_var): Likewise.
8109         (referenced_var_iterator_set): New helper function.
8110         * tree-dfa.c (referenced_var_lookup): Adjust.
8111         (referenced_var_check_and_insert): Likewise.
8112         (remove_referenced_var): Likewise.
8113         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
8114         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
8115         (verify_call_clobbering): Likewise.
8116         (verify_memory_partitions): Likewise.
8117         (init_tree_ssa): Allocate bitmap instead of hashtable for
8118         referenced_vars.
8119         (delete_tree_ssa): Adjust.
8120         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
8121         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
8122         (compute_tag_properties): Likewise.
8123         (set_initial_properties): Likewise.
8124         (find_partition_for): Likewise.
8125         (update_reference_counts): Likewise.
8126         (dump_may_aliases_for): Likewise.
8127         * tree-ssa-operands.c (add_virtual_operand): Likewise.
8128         (add_call_clobber_ops): Likewise.
8129         (add_call_read_ops): Likewise.
8130         (get_asm_expr_operands): Likewise.
8131         * tree-into-ssa.c (dump_decl_set): Likewise.
8132         (update_ssa): Likewise.
8133         * tree-sra.c (scan_function): Likewise.
8134         (decide_instantiations): Likewise.
8135         (scalarize_parms): Likewise.
8136         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
8137         (dsa_named_for): Likewise.
8138         * tree-ssa-structalias.c (update_alias_info): Likewise.
8139         (merge_smts_into): Likewise.
8140
8141 2008-02-27  David Daney  <ddaney@avtrex.com>
8142
8143         PR target/34409
8144         * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
8145         * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
8146         * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
8147         * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
8148         * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
8149
8150 2008-02-27  Uros Bizjak  <ubizjak@gmail.com>
8151
8152         PR target/25477
8153         * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
8154         (BUILT_IN_NEXTTOWARD): Remove.
8155         (BUILT_IN_NEXTTOWARDF): Ditto.
8156         * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
8157         alloca/strcpy/strcat.  Remove commented-out code.  Fix whitespace.
8158
8159 2008-02-27  Tom Tromey  <tromey@redhat.com>
8160
8161         * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
8162         DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
8163
8164 2008-02-27  Jan Beulich  <jbeulich@novell.com>
8165
8166         * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
8167         update the respective field on newdecl.
8168
8169 2008-02-27  Revital Eres  <eres@il.ibm.com>
8170
8171         PR rtl-optimization/34999
8172         * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
8173         crossing edges that ends with a call insn.
8174         (fix_up_fall_thru_edges): Handle crossing edges that ends with a
8175         call insn and clear the EDGE_CROSSING flag of the crossing edge
8176         when fixing fallthru edges.
8177
8178 2008-02-27  Richard Guenther  <rguenther@suse.de>
8179
8180         PR middle-end/35390
8181         * fold-const.c (fold_unary): Return the correct argument,
8182         converted to the result type.
8183
8184 2008-02-27  Richard Guenther  <rguenther@suse.de>
8185
8186         PR middle-end/34971
8187         * expr.c (expand_expr_real_1): Assert on rotates that operate
8188         on partial modes.
8189         * fold-const.c (fold_binary): Use the types precision, not the
8190         bitsize of the mode if folding rotate expressions.  Build rotates
8191         only for full modes.
8192
8193 2008-02-27  Jakub Jelinek  <jakub@redhat.com>
8194
8195         * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
8196         and CPP_PRAGMA_EOL.
8197         * c-pragma.c (pragma_ns_name): New typedef.
8198         (registered_pp_pragmas): New variable.
8199         (c_pp_lookup_pragma): New function.
8200         (c_register_pragma_1): If flag_preprocess_only, do nothing
8201         for non-expanded pragmas, for expanded ones push pragma's
8202         namespace and name into registered_pp_pragmas vector.
8203         (c_invoke_pragma_handler): Register OpenMP pragmas even when
8204         flag_preprocess_only, don't register GCC pch_preprocess
8205         pragma if flag_preprocess_only.
8206         * c-opts.c (c_common_init): Call init_pragma even if
8207         flag_preprocess_only.
8208         * c-pragma.c (c_pp_lookup_pragma): New prototype.
8209         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
8210         cpp_register_pragma if flag_preprocess_only.
8211
8212 2008-02-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8213
8214         PR c/28800
8215         * c-parser.c (c_parser_translation_unit): Warn for empty
8216         translation unit, not empty source file.
8217
8218 2008-02-26  Paul Brook  <paul@codesourcery.com>
8219
8220         * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
8221         operand for Thumb-2.
8222         * config/arm/arm.h (reg_class): Add CORE_REGS.
8223         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
8224         (BASE_REG_CLASS): Use CORE_REGS.
8225         (PREFERRED_RELOAD_CLASS): Add STACK_REG.
8226         (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
8227         (REGNO_OK_FOR_INDEX_P): Exclude SP.
8228         (ARM_REG_OK_FOR_INDEX_P): Always define.  Use
8229         ARM_REGNO_OK_FOR_INDEX_P.
8230         (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
8231         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
8232         arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
8233         (ldm/stm peepholes): Ditto.
8234         * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
8235         * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
8236         * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
8237         * config/arm/constraints.md: Enable "k" constraint on ARM.
8238
8239 2008-02-27  Ben Elliston  <bje@au.ibm.com>
8240
8241         * config/rs6000/rs6000.c: Annotate cache line size field in all
8242         instances of struct processor_costs.
8243
8244 2008-02-26  David Edelsohn  <edelsohn@gnu.org>
8245
8246         * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
8247         dse2, gcse, if_conversion, if_after_combine, if_after_reload,
8248         jump_bypass): New counters.
8249         * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
8250         * dce.c (gate_ud_dce): Same.
8251         (gate_fast_dce): Same.
8252         * dse.c (gate_dse1): New function.
8253         (gate_dse2): New function.
8254         (gate_dse): Merge results of new gate functions.
8255         * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
8256         (gate_handle_jump_bypass): Add dbg_cnt.
8257         (gate_handle_gcse): Add dbg_cnt.
8258         * ifcvt.c (gate_handle_if_conversion): Same.
8259         (gate_handle_if_after_combine): Same.
8260         (gate_handle_if_after_reload): Same.
8261         * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
8262
8263 2008-02-26  Edmar Wienskoski  <edmar@freescale.com>
8264
8265         * config/rs6000/rs6000.c (processor_costs): Update e300 cache
8266         line sizes.
8267         * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
8268
8269 2008-02-26  Jason Merrill  <jason@redhat.com>
8270
8271         PR c++/35315
8272         * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE 
8273         alone if it's the naming decl for the type's main variant.
8274
8275 2008-02-26  Tom Tromey  <tromey@redhat.com>
8276
8277         * system.h (USE_MAPPED_LOCATION): Poison.
8278         * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
8279         * tree-cfg.c (make_cond_expr_edges): Remove old location code.
8280         (make_goto_expr_edges): Likewise.
8281         (remove_bb): Likewise.
8282         (execute_warn_function_return): Likewise.
8283         * basic-block.h (struct edge_def) <goto_locus>: Change type to
8284         location_t.
8285         * c-common.c (fname_decl): Remove old location code.
8286         * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
8287         location code.
8288         * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
8289         variant.
8290         (ASM_INPUT_SOURCE_LOCATION): Likewise.
8291         (gen_rtx_ASM_INPUT): Likewise.
8292         (gen_rtx_ASM_INPUT_loc): Likewise.
8293         (get_rtx_asm_OPERANDS): Remove.
8294         * cfglayout.c (insn_locators_alloc): Remove old location code.
8295         (set_curr_insn_source_location): Likewise.
8296         (curr_insn_locator): Likewise.
8297         * print-tree.c (print_node): Remove old location code.
8298         * tree-mudflap.c (mf_varname_tree): Remove old location code.
8299         (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
8300         * cfgexpand.c (expand_gimple_cond_expr): Don't use
8301         location_from_locus.
8302         (construct_exit_block): Remove old location code.
8303         * emit-rtl.c (force_next_line_note): Remove old location code.
8304         * profile.c (branch_prob): Remove old location code.
8305         * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
8306         LOC_LINE): Remove old-location variants.
8307         * langhooks.c (lhd_print_error_function): Remove old location
8308         code.
8309         * configure, config.in: Rebuilt.
8310         * configure.ac (--enable-mapped-location): Remove.
8311         * c-decl.c (c_init_decl_processing): Remove old location code.
8312         (finish_function): Likewise.
8313         * recog.c (decode_asm_operands): Remove old location code.
8314         * c-pch.c (c_common_read_pch): Remove old location code.
8315         * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
8316         variants.
8317         * gimple-low.c (lower_function_body): Remove old location code.
8318         * toplev.c (unknown_location): Remove.
8319         (push_srcloc): Remove old-location variant.
8320         (process_options): Remove old location code.
8321         (lang_dependent_init): Likewise.
8322         * input.h (UNKNOWN_LOCATION): Move definition.
8323         (location_t): Undeprecate.
8324         (source_locus): Remove.
8325         (location_from_locus): Remove.
8326         (struct location_s): Remove.
8327         Remove all old-location code.
8328         (input_line, input_filename): Remove.
8329         * final.c (final_scan_insn): Remove old location code.
8330         * diagnostic.c (diagnostic_build_prefix): Remove
8331         USE_MAPPED_LOCATION test.
8332         * tree.h (gimple_stmt) <locus>: Now a location_t.
8333         (tree_exp) <locus>: Likewise.
8334         (DECL_IS_BUILTIN): Remove old-location variant.
8335         (annotate_with_file_line, annotate_with_locus): Likewise.
8336         (expr_locus, set_expr_locus): Update.
8337         * tree.c (build1_stat): Remove old location code.
8338         (last_annotated_node): Remove.
8339         (annotate_with_file_line): Remove old-location variant.
8340         (annotate_with_locus): Likewise.
8341         (expr_location): Remove old location code.
8342         (set_expr_location): Likewise.
8343         (expr_has_location): Likewise.
8344         (expr_locus): Likewise.
8345         (set_expr_locus): Likewise.
8346         (expr_filename): Don't use location_from_locus.
8347         (expr_lineno): Likewise.
8348         * rtl-error.c (location_for_asm): Remove old location code.
8349         * c-lex.c (cb_line_change): Remove old location code.
8350         (fe_file_change): Likewise.
8351         (cb_def_pragma): Likewise.
8352         (c_lex_with_flags): Likewise.
8353         * gengtype.c (do_typedef): Don't special-case location types.
8354         (define_location_structures): Remove.
8355         (main): Don't call define_location_structures.
8356         * tree-pretty-print.c (dump_implicit_edges): Remove old location
8357         code.
8358
8359 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
8360
8361         PR 26264
8362         * builtins.def (BUILT_IN_STDARG_START): Remove.
8363         * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
8364         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
8365         * tree-inline.c (inline_forbidden_p_1): Likewise.
8366         
8367 2008-02-26  Richard Guenther  <rguenther@suse.de>
8368
8369         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
8370         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
8371         (lookup_decl_from_uid): Declare.
8372         (remove_decl_from_map): Likewise.
8373         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
8374         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
8375         (decl_for_uid_map): New global hashtable mapping DECL_UID
8376         to the decl tree.
8377         (init_ttree): Allocate it.
8378         (insert_decl_to_uid_decl_map): New helper function.
8379         (make_node_stat): Insert new decls into the map.
8380         (copy_node_stat): Likewise.
8381         (lookup_decl_from_uid): New function.
8382         (remove_decl_from_map): Likewise.
8383         (print_decl_for_uid_map_statistics): New helper.
8384         (dump_tree_statistics): Call it.
8385
8386         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
8387         (referenced_var_iterator): Adjust.
8388         (FOR_EACH_REFERENCED_VAR): Adjust.
8389         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
8390         (num_referenced_vars): Adjust.
8391         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
8392         (first_referenced_var): Remove.
8393         (end_referenced_vars_p): Likewise.
8394         (next_referenced_var): Likewise.
8395         (referenced_var_iterator_set): New helper function.
8396         * tree-dfa.c (referenced_var_lookup): Adjust.
8397         (referenced_var_check_and_insert): Likewise.
8398         (remove_referenced_var): Likewise.
8399         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
8400         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
8401         (verify_call_clobbering): Likewise.
8402         (verify_memory_partitions): Likewise.
8403         (init_tree_ssa): Allocate bitmap instead of hashtable for
8404         referenced_vars.
8405         (delete_tree_ssa): Adjust.
8406         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
8407         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
8408         (compute_tag_properties): Likewise.
8409         (set_initial_properties): Likewise.
8410         (find_partition_for): Likewise.
8411         (update_reference_counts): Likewise.
8412         (dump_may_aliases_for): Likewise.
8413         * tree-ssa-operands.c (add_virtual_operand): Likewise.
8414         (add_call_clobber_ops): Likewise.
8415         (add_call_read_ops): Likewise.
8416         (get_asm_expr_operands): Likewise.
8417         * tree-into-ssa.c (dump_decl_set): Likewise.
8418         (update_ssa): Likewise.
8419         * tree-sra.c (scan_function): Likewise.
8420         (decide_instantiations): Likewise.
8421         (scalarize_parms): Likewise.
8422         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
8423         (dsa_named_for): Likewise.
8424         * tree-ssa-structalias.c (update_alias_info): Likewise.
8425         (merge_smts_into): Likewise.
8426
8427 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
8428
8429         PR 34351
8430         * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
8431         * c-opts.c (c_common_handle_option): Wall enables
8432         Wvolatile-register-var.
8433         * common.opt: Move Wvolatile-register-var to...
8434         * c.opt: ...here.
8435         
8436 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
8437
8438         * common.opt (Wlarger-than=): New.
8439         * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
8440         -Wlarger-than=.
8441         * opts.c (common_handle_option): Handle -Wlarger-than=.
8442         * optc-gen.awk: Likewise.
8443         * opth-gen.awk: Likewise.
8444         * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
8445         * tree-optimize.c (tree_rest_of_compilation): Likewise.
8446         
8447 2008-02-26  Manuel Lopez-Ibanez <manu@gcc.gnu.org>
8448
8449         * c-common.c (match_case_to_enum_1): Add appropriate
8450         OPT_W* parameter to warning.
8451         (c_do_switch_warnings): Likewise.
8452         * c-typeck.c (warning_init): Add one more parameter following
8453         'warning' function.
8454         (push_init_level): Update call to warning_init.
8455         (pop_init_level): Likewise.
8456         (add_pending_init): Likewise.
8457         (output_init_element: Likewise.
8458
8459 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
8460
8461         PR 28322
8462         * toplev.c (toplev_main): If there are warnings or error, print
8463         errors for ignored options.
8464         * opts.c (ignored_options): New static variable.
8465         (postpone_unknown_option_error): New.
8466         (print_ignored_options): New.
8467         (handle_option): Postpone errors for unknown -Wno-* options.
8468         * opts.h (print_ignored_options): Declare.
8469         
8470 2008-02-25  Richard Sandiford  <rsandifo@nildram.co.uk>
8471
8472         * config/mips/mips.md (loadgp_blockage, blockage): Change type
8473         to "ghost".
8474
8475 2008-02-25  Richard Guenther  <rguenther@suse.de>
8476
8477         Revert:
8478         2008-02-25  Richard Guenther  <rguenther@suse.de>
8479
8480         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
8481         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
8482         (lookup_decl_from_uid): Declare.
8483         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
8484         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
8485         (decl_for_uid_map): New global hashtable mapping DECL_UID
8486         to the decl tree.
8487         (init_ttree): Allocate it.
8488         (insert_decl_to_uid_decl_map): New helper function.
8489         (make_node_stat): Insert new decls into the map.
8490         (copy_node_stat): Likewise.
8491         (lookup_decl_from_uid): New function.
8492         (print_decl_for_uid_map_statistics): New helper.
8493         (dump_tree_statistics): Call it.
8494
8495         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
8496         (referenced_var_iterator): Adjust.
8497         (FOR_EACH_REFERENCED_VAR): Adjust.
8498         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
8499         (num_referenced_vars): Adjust.
8500         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
8501         (first_referenced_var): Remove.
8502         (end_referenced_vars_p): Likewise.
8503         (next_referenced_var): Likewise.
8504         (referenced_var_iterator_set): New helper function.
8505         * tree-dfa.c (referenced_var_lookup): Adjust.
8506         (referenced_var_check_and_insert): Likewise.
8507         (remove_referenced_var): Likewise.
8508         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
8509         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
8510         (verify_call_clobbering): Likewise.
8511         (verify_memory_partitions): Likewise.
8512         (init_tree_ssa): Allocate bitmap instead of hashtable for
8513         referenced_vars.
8514         (delete_tree_ssa): Adjust.
8515         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
8516         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
8517         (compute_tag_properties): Likewise.
8518         (set_initial_properties): Likewise.
8519         (find_partition_for): Likewise.
8520         (update_reference_counts): Likewise.
8521         (dump_may_aliases_for): Likewise.
8522         * tree-ssa-operands.c (add_virtual_operand): Likewise.
8523         (add_call_clobber_ops): Likewise.
8524         (add_call_read_ops): Likewise.
8525         (get_asm_expr_operands): Likewise.
8526         * tree-into-ssa.c (dump_decl_set): Likewise.
8527         (update_ssa): Likewise.
8528         * tree-sra.c (scan_function): Likewise.
8529         (decide_instantiations): Likewise.
8530         (scalarize_parms): Likewise.
8531         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
8532         (dsa_named_for): Likewise.
8533         * tree-ssa-structalias.c (update_alias_info): Likewise.
8534         (merge_smts_into): Likewise.
8535
8536 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
8537
8538         PR fortran/29549
8539         * doc/invoke.texi (-fcx-limited-range): Document new option.
8540         * toplev.c (process_options): Handle -fcx-fortran-rules.
8541         * common.opt: Add documentation for -fcx-fortran-rules.
8542
8543 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
8544
8545         PR c/35162
8546         * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
8547         actual behaviour and C99.
8548         
8549 2008-02-26  Ben Elliston  <bje@au.ibm.com>
8550
8551         * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
8552         (ASM_CPU_POWER6_SPEC): Likewise.
8553         (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
8554         Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
8555         (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
8556
8557 2008-02-25  Richard Guenther  <rguenther@suse.de>
8558
8559         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
8560         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
8561         (lookup_decl_from_uid): Declare.
8562         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
8563         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
8564         (decl_for_uid_map): New global hashtable mapping DECL_UID
8565         to the decl tree.
8566         (init_ttree): Allocate it.
8567         (insert_decl_to_uid_decl_map): New helper function.
8568         (make_node_stat): Insert new decls into the map.
8569         (copy_node_stat): Likewise.
8570         (lookup_decl_from_uid): New function.
8571         (print_decl_for_uid_map_statistics): New helper.
8572         (dump_tree_statistics): Call it.
8573
8574         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
8575         (referenced_var_iterator): Adjust.
8576         (FOR_EACH_REFERENCED_VAR): Adjust.
8577         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
8578         (num_referenced_vars): Adjust.
8579         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
8580         (first_referenced_var): Remove.
8581         (end_referenced_vars_p): Likewise.
8582         (next_referenced_var): Likewise.
8583         (referenced_var_iterator_set): New helper function.
8584         * tree-dfa.c (referenced_var_lookup): Adjust.
8585         (referenced_var_check_and_insert): Likewise.
8586         (remove_referenced_var): Likewise.
8587         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
8588         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
8589         (verify_call_clobbering): Likewise.
8590         (verify_memory_partitions): Likewise.
8591         (init_tree_ssa): Allocate bitmap instead of hashtable for
8592         referenced_vars.
8593         (delete_tree_ssa): Adjust.
8594         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
8595         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
8596         (compute_tag_properties): Likewise.
8597         (set_initial_properties): Likewise.
8598         (find_partition_for): Likewise.
8599         (update_reference_counts): Likewise.
8600         (dump_may_aliases_for): Likewise.
8601         * tree-ssa-operands.c (add_virtual_operand): Likewise.
8602         (add_call_clobber_ops): Likewise.
8603         (add_call_read_ops): Likewise.
8604         (get_asm_expr_operands): Likewise.
8605         * tree-into-ssa.c (dump_decl_set): Likewise.
8606         (update_ssa): Likewise.
8607         * tree-sra.c (scan_function): Likewise.
8608         (decide_instantiations): Likewise.
8609         (scalarize_parms): Likewise.
8610         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
8611         (dsa_named_for): Likewise.
8612         * tree-ssa-structalias.c (update_alias_info): Likewise.
8613         (merge_smts_into): Likewise.
8614
8615 2008-02-25  Andreas Krebbel  <krebbel1@de.ibm.com>
8616
8617         PR target/35258
8618         * cse.c (cse_insn): Avoid creation of overlapping MEMs.
8619         * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
8620         * alias.h (nonoverlapping_memrefs_p): Likewise.
8621
8622 2008-02-25  Jan Beulich  <jbeulich@novell.com>
8623
8624         * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
8625         * config/i386/netware-libgcc.exp: Add __bswap?i2,
8626         __emultls_get_address, __emultls_register_common,
8627         __floatundi?f, and _Unwind_GetIPInfo.
8628         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
8629         Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
8630         (gen_regparm_prefix): Likewise.
8631         (i386_nlm_encode_section_info): Sync with
8632         config/i386/winnt.c:i386_pe_encode_section_info().
8633         (i386_nlm_maybe_mangle_decl_assembler_name): New.
8634         i386_nlm_mangle_decl_assembler_name): New.
8635         (netware_override_options): New.
8636         * config/i386/netware.h (netware_override_options): Declare.
8637         (OVERRIDE_OPTIONS): Re-define to netware_override_options.
8638         (i386_nlm_mangle_decl_assembler_name): Declare.
8639         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
8640
8641 2008-02-25  Ben Elliston  <bje@au.ibm.com>
8642
8643         PR other/32948
8644         * c-decl.c (grokdeclarator): Remove unused local variables
8645         `typedef_type' and `type_as_written'.
8646         * bb-reorder.c
8647         (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
8648         unused local variable `has_hot_blocks'.
8649         (fix_crossing_conditional_branches): Remove unused local variable
8650         `prev_bb'.
8651         
8652 2008-02-25  Uros Bizjak  <ubizjak@gmail.com>
8653
8654         PR middle-end/19984
8655         * builtins.def (BUILT_IN_NAN): Define as c99 builtin
8656         using DEF_C99_BUILTIN.
8657         (BUILT_IN_NANF): Ditto.
8658         (BUILT_IN_NANL): Ditto.
8659
8660 2008-02-25  Ayal Zaks  <zaks@il.ibm.com>
8661             Revital Eres  <eres@il.ibm.com>
8662
8663         * modulo-sched.c (calculate_must_precede_follow): Address TODO
8664         regarding the order of two dependent insns in the same row.
8665
8666 2008-02-25  Eric Botcazou  <ebotcazou@adacore.com>
8667
8668         * stor-layout.c (layout_decl): Do not bump the alignment of a
8669         bit-field to more than byte alignment if it is packed.
8670
8671 2008-02-24  David Edelsohn  <edelsohn@gnu.org>
8672
8673         * config/rs6000/rs6000.c (processor_costs): Add cache costs for
8674         e300c2 and e300c3.
8675
8676 2008-02-24  Diego Novillo  <dnovillo@google.com>
8677
8678         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
8679
8680         PR 33738
8681         * tree-vrp.c (vrp_evaluate_conditional): With
8682         -Wtype-limits, emit a warning when comparing against a
8683         constant outside the natural range of OP0's type.
8684         * c.opt (Wtype-limits): Move ...
8685         * common.opt (Wtype-limits): ... here.
8686
8687 2008-02-24  Edmar Wienskoski  <edmar@freescale.com>
8688
8689         * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
8690         * config/rs6000/e300c2c3.md: New file.
8691         * config/rs6000/rs6000.c (processor_costs): Add new costs for
8692         e300c2 and e300c3.
8693         (rs6000_override_options): Add e300c2 and e300c3 cases to
8694         processor_target_table. Do not allow usage of Altivec or Spe
8695         with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
8696         (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
8697         * config/rs6000/rs6000.h (processor_type): Add
8698         PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
8699         (ASM_CPU_SPEC): Add e300c2 and e300c3.
8700         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
8701         and ppce300c3. Include e300c2c3.md.
8702
8703 2008-02-23  David Edelsohn  <edelsohn@gnu.org>
8704
8705         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
8706         instead of TARGET_STRICT_ALIGN.
8707
8708 2008-02-23  Joseph Myers  <joseph@codesourcery.com>
8709
8710         * explow.c (memory_address): Assert that the generated address is
8711         valid.
8712
8713 2008-02-23  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
8714
8715         PR target/25477
8716         * config/darwin-protos.h: Add darwin_patch_builtins prototype.
8717         * config/darwin-ppc-ldouble-patch.def: New file.
8718         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
8719         * config/rs6000/rs6000.c (rs6000_init_builtins): Call
8720         SUBTARGET_INIT_BUILTINS if defined.
8721         * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
8722         New functions.
8723
8724 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
8725
8726         PR rtl-opt/33512
8727         * simplify-rtx.c (simplify_binary_operation_1): Add simplification
8728         of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
8729
8730 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
8731
8732         PR pch/35027
8733         * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
8734         file" warning condtional on -Winvalid-PCH.
8735
8736 2008-02-23  Daniel Jacobowitz  <dan@codesourcery.com>
8737
8738         * expmed.c (extract_bit_field): Always use adjust_address for MEM.
8739
8740 2008-02-23  Uros Bizjak  <ubizjak@gmail.com>
8741
8742         PR target/22076
8743         PR target/34256 
8744         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
8745         prevent reload from using MMX registers.
8746         (*mov<mode>_internal): Ditto.
8747         (*movv2sf_internal_rex64): Ditto.
8748         (*movv2sf_internal): Ditto.
8749
8750 2008-02-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8751
8752         PR documentation/31569
8753         * doc/install.texi2html: Use makeinfo --no-number-sections.
8754
8755 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
8756
8757         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
8758         ensure that we can address an entire entity > 8 bytes.  Don't
8759         generate reg+reg addressing for such data.
8760
8761 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
8762
8763         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
8764         strings when optimizing for size, unless the target cares about
8765         alignment.
8766
8767 2008-02-22  Tom Tromey  <tromey@redhat.com>
8768
8769         * regclass.c (current_pass): Remove declaration.
8770
8771 2008-02-22  Anatoly Sokolov <aesok@post.ru>
8772
8773         * config/avr/libgcc.S (__RAMPZ__): Define.
8774         (__do_copy_data): Add for devices with 128KB code memory.
8775
8776 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
8777
8778         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
8779         Use spe_abi.
8780         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
8781
8782 2008-02-22  Hans-Peter Nilsson  <hp@axis.com>
8783
8784         * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
8785         GENNONACR_REGS.
8786
8787 2008-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8788
8789         PR c/19999
8790         * c-typeck.c (build_binary_op): Warn about floating point
8791         comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
8792
8793 2008-02-21  Janis Johnson  <janis187@us.ibm.com>
8794
8795         PR target/34526
8796         * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
8797         (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
8798         add vrsave.
8799         (rs6000_override_options): Set altivec_abi as default, not override,
8800         for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
8801         TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
8802         is used; use new member spe_abi.
8803         (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
8804         spe_abi and altivec_abi.
8805
8806 2008-02-22  Tomas Bily  <tbily@suse.cz>
8807
8808         * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
8809
8810 2008-02-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8811
8812         PR bootstrap/35273
8813         * config.build (build_file_translate): Set to `CMD //c' only if
8814         it works.
8815         * Makefile.in (build_file_translate): Improve comment.
8816
8817 2008-02-21  Jan Hubicka  <jh@suse.cz>
8818
8819         * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
8820         PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
8821         PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
8822
8823 2008-02-21  Michael Matz  <matz@suse.de>
8824
8825         PR target/35264
8826         * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
8827
8828 2008-02-21  Uros Bizjak  <ubizjak@gmail.com>
8829
8830         * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
8831         movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
8832         as insn constraint.
8833         * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
8834         from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
8835         SSE_VEC_FLOAT_MODE_P as insn constraint.
8836         (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
8837         (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
8838         sse4a_movntdf using MODEF mode iterator.
8839         (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
8840         sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
8841         (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
8842         (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
8843         (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
8844         (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
8845         (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
8846
8847 2008-02-21  Richard Guenther  <rguenther@suse.de>
8848
8849         * tree.def (PAREN_EXPR): New tree code.
8850         * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
8851         and PAREN_EXPR.
8852         * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
8853         * expr.c (expand_expr_real_1): Likewise.
8854         * tree-inline.c (estimate_num_insns_1): Likewise.
8855         * tree-complex.c (expand_complex_move): Likewise.
8856         * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
8857         as plain x.
8858
8859 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
8860
8861         PR target/35225
8862         * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
8863
8864 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
8865
8866         PR target/35190
8867         * config/sh/sh.md (jump_compact): Disable for crossing jumps.
8868
8869         * config/sh/sh.c (find_barrier): Don't go past
8870         NOTE_INSN_SWITCH_TEXT_SECTIONS note.
8871
8872 2008-02-20  DJ Delorie  <dj@redhat.com>
8873
8874         * config/h8300/h8300.md (insv): Force source operand to be a register.
8875
8876         * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
8877         as a jump, not as a plain insn.
8878         
8879 2008-02-20  Seongbae Park <seongbae.park@gmail.com>
8880
8881         * doc/invoke.texi (Warning Options): Add new option
8882         -Wframe-larger-than=.
8883         (-Wframe-larger-than): Document.
8884
8885         * flags.h (warn_frame_larger_than, frame_larger_than_size):
8886         Add declarations for new option variables.
8887
8888         * final.c (final_start_function): Check the frame size
8889         before emission and issue a Wframe-larger-than warning.
8890
8891         * opts.c (warn_frame_larger_than, frame_larger_than_size):
8892         Add definitions for new option variables.
8893         (common_handle_option): Handle new option OPT_Wframe_larger_than_.
8894
8895         * common.opt (Wframe-larger-than=): New option.
8896
8897 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
8898
8899         * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
8900         (<sse>_div<mode>3): Ditto.
8901         (<sse>_vmdiv<mode>3): Ditto.
8902         (<sse>_vmsqrt<mode>2): Ditto.
8903         (*smax<mode>3): Ditto.
8904         (sse5_frcz<mode>2): Ditto.
8905         (sse5_vmfrcz<mode>2): Ditto.  Use TARGET_SSE5 instead of TARGET_ROUND
8906         as insn constraint.
8907
8908 2008-02-20  Richard Guenther  <rguenther@suse.de>
8909
8910         PR middle-end/35265
8911         * builtins.c (validate_arg): If we want an INTEGER_TYPE,
8912         be happy with INTEGRAL_TYPE_P.
8913
8914 2008-02-20  Richard Guenther  <rguenther@suse.de>
8915
8916         * fold-const.c (split_tree): Associate floatig-point expressions
8917         if flag_associative_math is set.
8918
8919 2008-02-20  Richard Guenther  <rguenther@suse.de>
8920
8921         * tree.h (fold_real_zero_addition_p): Declare.
8922         * fold-const.c (fold_real_zero_addition_p): Export.
8923         * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
8924         floating-point operations with zero and one.
8925
8926 2008-02-20  Paolo Bonzini  <bonzini@gnu.org>
8927
8928         * doc/install.texi: Correct references to CFLAGS, replacing them
8929         with BOOT_CFLAGS.  Document flags used during bootstrap for
8930         target libraries.
8931                                 
8932 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
8933
8934         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
8935         * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
8936         and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
8937         insn constraint.
8938         (smin<mode>3): Ditto from similar patterns.
8939         (smax<mode>3): Ditto.
8940         (*ieee_smin<mode>3): Ditto.
8941         (*ieee_smax<mode>3): Ditto.
8942         * config/i386/sse.md (sse): New mode attribute.
8943         (mov<mode>): Macroize expander from movv4sf and movv2df using
8944         SSEMODEF2P mode iterator.
8945         (<sse>_movnt<mode>): Ditto from similar patterns. Use
8946         SSE_VEC_FLOAT_MODE_P as insn constraint.
8947         (storent<mode>): Ditto.
8948         (storent<mode>): Macroize expander from storentsf and storentdf using
8949         MODEF mode iterator.
8950         (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
8951         mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
8952         (abs<mode>2): Ditto from similar patterns.
8953         (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
8954         (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
8955         (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
8956         (<sse>_vmsqrt<mode>2): Ditto.
8957         (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
8958         (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
8959         (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
8960         (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
8961         (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
8962         sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
8963         mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
8964         insn constraint.
8965         (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
8966         iterator and SSE_FLOAT_MODE_P as insn constraint.
8967         (<sse>_ucomi): Ditto from similar patterns.
8968         (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
8969         sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
8970         SSE_VEC_FLOAT_MODE_P as insn constraint.
8971         (vcond<mode>): Ditto from similar patterns.
8972         (and<mode>3, *and<mode>3): Ditto.
8973         (<sse>_nand<mode>3): Ditto.
8974         (ior<mode>3, *ior<mode>3): Ditto.
8975         (xor<mode>3, *xor<mode>3): Ditto.
8976         (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
8977         iterator and SSE_FLOAT_MODE_P as insn constraint.
8978         (*nand<mode>3): Ditto from similar patterns.
8979         (*ior<mode>3): Ditto.
8980         (*xor<mode>3): Ditto.
8981
8982 2008-02-20  Ira Rosen  <irar@il.ibm.com>
8983
8984         * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
8985         vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
8986         vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
8987
8988 2008-02-19  Jan Hubicka  <jh@suse.cz>
8989
8990         * predict.c (tree_bb_level_predictions): Remove variable next
8991         mistakely introduced by previous commit.
8992
8993 2008-02-19  Jan Hubicka  <jh@suse.cz>
8994
8995         * predict.c (predict_paths_leading_to): Rewrite.
8996         (predict_paths_for_bb): New.
8997         (tree_bb_level_predictions): Update call of predict_paths_leading_to.
8998
8999 2008-02-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9000
9001         PR bootstrap/35218
9002         * Makefile.in (build_file_translate): New.
9003         (gcc-vers.texi): Use it for translating $(abs_srcdir).
9004         * config.build (build_file_translate): Set to `CMD //c' on MinGW.
9005         * configure.ac (build_file_translate): Substitute it.
9006         * configure: Regenerate.
9007
9008 2008-02-19  Jan Hubicka  <jh@suse.cz>
9009
9010         PR rtl-optimization/34408
9011         * see.c (see_def_extension_not_merged): Copy subreg so we don't have
9012         invalid sharing.
9013
9014 2008-02-19  Jan Hubicka  <jh@suse.cz>
9015
9016         PR middle-end/28779
9017         * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
9018         call_expr.
9019
9020 2008-02-19  H.J. Lu  <hongjiu.lu@intel.com>
9021
9022         PR Ada/35186
9023         * config/i386/i386-modes.def: Revert the last DI alignment
9024         change until Ada people can look into it.
9025
9026 2008-02-19  Nick Clifton  <nickc@redhat.com>
9027
9028         * opts.c (print_specific_help): Fix typo in --help text.
9029
9030 2008-02-19  Jakub Jelinek  <jakub@redhat.com>
9031
9032         PR target/35239
9033         * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
9034         32-bit inline asm without asm alternatives for host GCC < 3.0.
9035
9036 2008-02-19  Richard Guenther  <rguenther@suse.de>
9037
9038         PR tree-optimization/34989
9039         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
9040         Allow propagation to INDIRECT_REF if we can simplify only.
9041
9042 2008-02-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
9043
9044         * c-common.c (warn_for_collisions_1): Use appropriate option when
9045         warning.
9046
9047 2008-02-19  Nick Clifton  <nickc@redhat.com>
9048
9049         PR other/31349
9050         * opts.c (undocumented_msg): Leave blank unless checking is enabled.
9051         (handle_options): Fix indentation.
9052         (print_filtered_help): If no language-specific options were
9053         displayed tell the user how to list all the options supported by
9054         the language's front-end.
9055         (print_specific_help): Fix indentation and remove duplicate line.
9056         (common_handle_option): Handle the -v option.
9057         For --help enable the display of undocumented options if the -v
9058         switch has been included on the command line.
9059         For --help= check for overlaps in the arguments between the option
9060         classes and the language names and issue a warning when they
9061         cannot be disambiguated.
9062         * c.opt (v): Pass on to the common option handler.
9063
9064 2008-02-19  Revital Eres  <eres@il.ibm.com> 
9065
9066         * modulo-sched.c (sms_schedule): Change dump message when
9067         create_ddg function fails.
9068         (try_scheduling_node_in_cycle): Rename row to cycle.
9069         (print_partial_schedule): Rename CYCLE to ROW.
9070
9071 2008-02-19  Christian Bruel  <christian.bruel@st.com>
9072             Zdenek Dvorak  <ook@ucw.cz>
9073
9074         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
9075
9076 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
9077
9078         PR target/33555
9079         * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
9080         (*x86_movdicc_0_m1_se): Ditto.
9081
9082 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
9083
9084         * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
9085         (CMPtype): Define as __gcc_CMPtype.
9086         * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
9087         (CMPtype): Define as __gcc_CMPtype.
9088
9089 2008-02-19  Hans-Peter Nilsson  <hp@axis.com>
9090
9091         Support valgrind 3.3 for --enable-checking=valgrind.
9092         * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
9093         here.
9094         [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
9095         [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
9096         [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
9097         * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
9098         Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
9099         VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
9100         VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
9101         respectively.
9102         * ggc-zone.c: Similar.
9103         * ggc-page.c: Similar.
9104
9105 2008-02-19  Paul Brook  <paul@codesourcery.com>
9106
9107         PR target/35071
9108         * config/arm/ieee754-df.S: Fix do_it typo.
9109         * config/arm/ieee754-sf.S: Fix do_it typo.
9110
9111 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
9112
9113         PR target/35189
9114         * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
9115         (OPTION_MASK_ISA_3DNOW_SET): Likewise.
9116         (OPTION_MASK_ISA_SSE_SET): Likewise.
9117         (OPTION_MASK_ISA_SSE2_SET): Likewise.
9118         (OPTION_MASK_ISA_SSE3_SET): Likewise.
9119         (OPTION_MASK_ISA_SSSE3_SET): Likewise.
9120         (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
9121         (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
9122         (OPTION_MASK_ISA_SSE4_SET): Likewise.
9123         (OPTION_MASK_ISA_SSE4A_SET): Likewise.
9124         (OPTION_MASK_ISA_SSE5_SET): Likewise.
9125         (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
9126         (OPTION_MASK_ISA_MMX_UNSET): Updated.
9127         (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
9128         (OPTION_MASK_ISA_SSE_UNSET): Likewise.
9129         (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
9130         (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
9131         (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
9132         (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
9133         (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
9134         (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
9135         (OPTION_MASK_ISA_SSE4): Removed.
9136         (ix86_handle_option): Turn on bits in ix86_isa_flags and
9137         ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
9138         (override_options): Don't turn on implied SSE/MMX bits in
9139         ix86_isa_flags.
9140
9141 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
9142
9143         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
9144         32bit host.
9145
9146 2008-02-18  Joey Ye  <joey.ye@intel.com>
9147
9148         PR middle-end/34921
9149         * tree-nested.c (insert_field_into_struct): Set type alignment
9150         to field alignment if the former is less than the latter.
9151
9152 2008-02-18  Jakub Jelinek  <jakub@redhat.com>
9153
9154         * BASE-VER: Set to 4.4.0.
9155
9156 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9157
9158         * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
9159         * doc/cfg.texi: Likewise.
9160         * doc/extend.texi: Likewise.
9161         * doc/gty.texi: Likewise.
9162         * doc/invoke.texi: Likewise.
9163         * doc/loop.texi: Likewise.
9164         * doc/md.texi: Likewise.
9165         * doc/passes.texi: Likewise.
9166         * doc/rtl.texi: Likewise.
9167         * doc/sourcebuild.texi: Likewise.
9168         * doc/tm.texi: Likewise.
9169         * doc/tree-ssa.texi: Likewise.
9170
9171 2008-02-17  Richard Guenther  <rguenther@suse.de>
9172
9173         PR middle-end/35227
9174         * tree-complex.c (init_parameter_lattice_values): Handle parameters
9175         without default definition.
9176
9177 2008-02-17  Richard Guenther  <rguenther@suse.de>
9178
9179         PR tree-optimization/35231
9180         * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
9181         if A | B != 1.
9182
9183 2008-02-17  Uros Bizjak  <ubizjak@gmail.com>
9184
9185         Revert:
9186         2008-02-15  Uros Bizjak  <ubizjak@gmail.com>    
9187         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
9188         libgcc_cmp_return mode.
9189
9190 2008-02-16  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
9191
9192         PR c/28368
9193         * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
9194
9195 2008-02-16  Ralf Corsepius  <ralf.corsepius@rtems.org>
9196
9197         * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
9198         multilibs.
9199
9200 2008-02-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9201
9202         * doc/c-tree.texi: Use `@.' where appropriate.
9203         * doc/extend.texi: Likewise.
9204         * doc/install.texi: Likewise.
9205         * doc/invoke.texi: Likewise.
9206         * doc/loop.texi: Likewise.
9207         * doc/makefile.texi: Likewise.
9208         * doc/md.texi: Likewise.
9209         * doc/passes.texi: Likewise.
9210         * doc/standards.texi: Likewise.
9211         * doc/tm.texi: Likewise.
9212
9213 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
9214
9215         PR middle-end/35196
9216         * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
9217         in entry_bb.
9218         (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
9219         rather than in entry_bb.
9220
9221 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
9222
9223         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
9224         libgcc_cmp_return mode.
9225
9226 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
9227
9228         PR middle-end/35130
9229         * tree-nested.c (convert_call_expr): Put FRAME.* vars into
9230         OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
9231
9232 2008-02-15  Richard Guenther  <rguenther@suse.de>
9233             Zdenek Dvorak  <ook@ucw.cz>
9234
9235         PR tree-optimization/35164
9236         * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
9237         * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
9238         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
9239         Only propagate addresses which do not have abnormal SSA_NAMEs
9240         in their operands.
9241
9242 2008-02-15  Joseph Myers  <joseph@codesourcery.com>
9243
9244         PR target/35088
9245         * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
9246
9247 2008-02-15  Jan Hubicka  <jh@suse.cz>
9248
9249         PR middle-end/35149
9250         * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
9251
9252 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
9253
9254         PR middle-end/34621
9255         * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
9256         when calculating alignment_pad.
9257
9258 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
9259
9260         * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
9261         (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
9262         * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
9263         and STACK_BOUNDARY define.
9264
9265 2008-02-14  Danny Smith  <dannysmith@users.sourceforge.net>
9266
9267         PR preprocessor/35061
9268         * c-pragma.c (handle_pragma_pop_macro): Check that
9269         pushed_macro_table has been allocated.
9270
9271 2008-02-14  Eric Botcazou  <ebotcazou@adacore.com>
9272
9273         PR middle-end/35136
9274         * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
9275         (force_gimple_operand): Likewise.
9276         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
9277         for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
9278         Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
9279         (find_interesting_uses_address): Check addressability and alignment
9280         of the base expression only after substituting bases of IVs into it.
9281
9282 2008-02-14  Michael Matz  <matz@suse.de>
9283
9284         PR target/34930
9285         * function.c (instantiate_virtual_regs_in_insn): Reload address
9286         before falling back to reloading the whole operand.
9287
9288 2008-02-14  Andreas Krebbel  <krebbel1@de.ibm.com>
9289
9290         * config/s390/s390.c (s390_mainpool_start): Emit the pool
9291         before the first section switch note.
9292
9293 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9294
9295         * doc/bugreport.texi: Update copyright years.
9296         * doc/c-tree.texi: Likewise.
9297         * doc/cfg.texi: Likewise.
9298         * doc/cpp.texi: Likewise.
9299         * doc/cppinternals.texi: Likewise.
9300         * doc/fragments.texi: Likewise.
9301         * doc/frontends.texi: Likewise.
9302         * doc/gcc.texi: Likewise.
9303         * doc/gty.texi: Likewise.
9304         * doc/hostconfig.texi: Likewise.
9305         * doc/implement-c.texi: Likewise.
9306         * doc/libgcc.texi: Likewise.
9307         * doc/loop.texi: Likewise.
9308         * doc/makefile.texi: Likewise.
9309         * doc/options.texi: Likewise.
9310         * doc/passes.texi: Likewise.
9311         * doc/rtl.texi: Likewise.
9312         * doc/sourcebuild.texi: Likewise.
9313         * doc/standards.texi: Likewise.
9314         * doc/tree-ssa.texi: Likewise.
9315         * doc/trouble.texi: Likewise.
9316
9317         * doc/extend.texi: Use @: or add comma where appropriate.
9318         * doc/invoke.texi: Likewise.
9319         * doc/tm.texi: Likewise.
9320
9321 2008-02-14  Alan Modra  <amodra@bigpond.net.au>
9322
9323         PR target/34393
9324         * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
9325         to a reg.
9326
9327 2008-02-14  Jesper Nilsson  <jesper.nilsson@axis.com>
9328
9329         * doc/md.texi (clz, ctz): Add reference.
9330         * doc/rtl.texi (clz, ctz): Likewise.
9331
9332 2008-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9333
9334         PR other/35148
9335         * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
9336         srcdir.
9337
9338 2008-02-13  Andreas Krebbel  <krebbel1@de.ibm.com>
9339
9340         * config/s390/s390.c (struct constant_pool): New field
9341         emit_pool_after added.
9342         (s390_mainpool_start): Set the emit_pool_after flag according
9343         to the section switch notes.
9344         (s390_mainpool_finish): Consider emit_pool_after when emitting
9345         the literal pool at the end of the function.
9346         (s390_chunkify_start): Force literal pool splits at section
9347         switch notes.
9348
9349 2008-02-13  Michael Matz  <matz@suse.de>
9350
9351         PR debug/35065
9352         * var-tracking.c (clobber_variable_part): Correctly traverse the
9353         list.
9354
9355 2008-02-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
9356
9357         PR 29673
9358         * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
9359         Add -fdump-ipa-inline.
9360         * tree-dump.c (dump_files): Remove tree-inlined dump.
9361         * tree-pass.h (tree_dump_index): Remove TDI_inlined.
9362         
9363 2008-02-12  Richard Guenther  <rguenther@suse.de>
9364
9365         PR tree-optimization/35171
9366         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
9367         default defs.
9368
9369 2008-02-12  Richard Guenther  <rguenther@suse.de>
9370
9371         PR middle-end/35163
9372         * fold-const.c (fold_widened_comparison): Use get_unwidened in
9373         value-preserving mode.  Disallow final truncation.
9374
9375 2008-02-12  Eric Botcazou  <ebotcazou@adacore.com>
9376
9377         PR middle-end/35136
9378         * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
9379         code from here to...
9380         (force_gimple_operand): ...here.
9381
9382 2008-02-12  Jakub Jelinek  <jakub@redhat.com>
9383
9384         PR c++/35144
9385         * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
9386         non-compatible pointers.
9387         (generate_element_copy): If SRC and DST are RECORD_TYPEs with
9388         different FIELD_DECLs, try harder by comparing field offsets, sizes
9389         and types.
9390
9391         PR inline-asm/35160
9392         * function.c (match_asm_constraints_1): Don't replace the same input
9393         multiple times.
9394
9395 2008-02-12  Anatoly Sokolov <aesok@post.ru>
9396
9397         * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
9398         * config/avr/avr.c (expand_prologue): Save RAMPZ register.
9399         (expand_epilogue): Restore RAMPZ register.
9400         * config/avr/avr.md (RAMPZ_ADDR): New constant.
9401
9402 2008-02-11  Kai Tietz  <kai.tietz@onevision.com>
9403
9404         * config/i386/cygwin.asm: (__alloca): Correct calling
9405         convention and alignment.
9406         (__chkstk): Force 8 byte stack alignment.
9407
9408 2008-02-11  Uros Bizjak  <ubizjak@gmail.com>
9409             Richard Guenther  <rguenther@suse.de>
9410
9411         PR tree-optimization/33992
9412         * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
9413         the zero we compare against.
9414
9415 2008-02-10  Danny Smith  <dannysmith@users.sourceforge.net>
9416
9417         PR libfortran/35063
9418         * gthr-win32.h (__gthread_mutex_destroy_function): New function
9419         to CloseHandle after unlocking to prevent accumulation of handle
9420         count.
9421
9422 2008-02-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9423
9424         PR middle_end/34150
9425         * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
9426         pic_label_operand source.  Similarly, add a REG_LABEL_OPERAND note
9427         and update LABEL_NUSES during and after reload.
9428
9429 2008-02-08  Steven Bosscher  <stevenb.gcc@gmail.com>
9430
9431         PR middle-end/34627
9432         * combine.c (simplify_if_then_else): Make sure the comparison is
9433         against const0_rtx when simplifying to (abs x) or (neg (abs X)).
9434
9435 2008-02-08  Richard Sandiford  <rsandifo@nildram.co.uk>
9436
9437         PR bootstrap/35051
9438         * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
9439         (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
9440         * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
9441         (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
9442         * tree.h (get_type_static_bounds): Likewise.
9443
9444 2008-02-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9445
9446         * doc/invoke.texi (Option Summary, C++ Dialect Options)
9447         (Objective-C and Objective-C++ Dialect Options, Warning Options):
9448         Make -Wfoo language annotations match what the compiler outputs.
9449
9450 2008-02-08  Sa Liu  <saliu@de.ibm.com>
9451
9452         * config/spu/spu-builtins.def: Fixed wrong parameter type in spu 
9453         intrinsics spu_convts, spu_convtu, spu_convtf.
9454
9455 2008-02-08  Hans-Peter Nilsson  <hp@axis.com>
9456
9457         * doc/extend.texi (Function Attributes) <noinline>: Mention
9458         asm ("") as method to keep calls.
9459
9460 2008-02-07  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
9461
9462         PR other/32754
9463         * doc/options.texi (Options): Replace references to opts.sh with
9464         optc-gen.awk.
9465         * opts-common.c: Likewise.
9466         * optc-gen.awk: Likewise.
9467         
9468 2008-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
9469
9470         * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
9471
9472 2008-02-07  Richard Henderson  <rth@redhat.com>
9473
9474         PR rtl-opt/33410
9475         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
9476         EXPR_LIST for the REG_EQUAL instead of a comparison with a 
9477         funny mode.
9478
9479 2008-02-07  Uros Bizjak  <ubizjak@gmail.com>
9480
9481         PR tree-optimization/35085
9482         * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
9483         for operand entry oe2 in addition to operand entry oe3 in order to
9484         expose more opportunities for vectorizer sum reduction.
9485
9486 2008-02-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9487
9488         PR other/35107
9489         * Makefile.in (LIBS): Remove $(GMPLIBS).
9490         (cc1-dummy, cc1): Add $(GMPLIBS).
9491
9492 2008-02-06  Jan Hubicka  <jh@suse.cz>
9493
9494         PR target/23322
9495         * i386.md (moddf_integer): Do not produce partial memory stalls for
9496         targets where it hurts.
9497
9498 2008-02-06  Uros Bizjak  <ubizjak@gmail.com>
9499
9500         PR target/35083
9501         * optabs.c (expand_float): Do not check for decimal modes when
9502         expanding unsigned integer through signed conversion.
9503
9504 2008-02-06  Nick Clifton  <nickc@redhat.com>
9505
9506         * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
9507         inside the clobber with a match_operand and duplicated operand
9508         number in the constraint.
9509         (ineqbranchsi): Delete redundant comment.
9510
9511 2008-02-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
9512
9513         * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add 
9514         builtin_define ("__USE_INIT_FINI__").
9515         * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
9516         -msx multilibs.
9517         * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
9518
9519 2008-02-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9520
9521         PR documentation/30330
9522         * doc/invoke.texi (C++ Dialect Options)
9523         (Objective-C and Objective-C++ Dialect Options, Warning Options):
9524         For each warning option -Wfoo that allows -Wno-foo, ensure both
9525         -Wfoo and -Wno-foo are listed in the option index.  Fix index
9526         entry of -Wswitch-default, index -Wnormalized= including the
9527         `=', and -Wlarger-than-@var{len} including @var{len}.
9528
9529 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
9530
9531         * config/i386/i386.md (floatunssisf2): Use
9532         ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
9533         (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
9534         Macroize expander using MODEF mode iterator.
9535
9536 2008-02-05  Diego Novillo  <dnovillo@google.com>
9537
9538         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
9539
9540         PR 33738
9541         * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
9542
9543 2008-02-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9544
9545         PR other/35070
9546         * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
9547
9548 2008-02-05  H.J. Lu  <hongjiu.lu@intel.com>
9549
9550         PR target/35084
9551         * config/i386/i386.c (ix86_function_sseregparm): Add an arg
9552         to indicate if a message should be generated.
9553         (init_cumulative_args): Updated.
9554         (function_value_32): Likewise.
9555
9556 2008-02-05  Joseph Myers  <joseph@codesourcery.com>
9557
9558         * doc/include/texinfo.tex: Update to version 2008-02-04.16.
9559
9560 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
9561
9562         PR target/35083
9563         * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
9564         Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
9565
9566 2008-02-04  Diego Novillo  <dnovillo@google.com>
9567
9568         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
9569
9570         PR 33738
9571         * tree-vrp.c (vrp_evaluate_conditional): With
9572         -Wtype-limits, emit a warning when comparing against a
9573         constant outside the natural range of OP0's type.
9574
9575 2008-02-04  Richard Guenther  <rguenther@suse.de>
9576
9577         PR middle-end/33631
9578         * expr.c (count_type_elements): Give for unions instead of
9579         guessing.
9580
9581 2008-02-04  Richard Guenther  <rguenther@suse.de>
9582
9583         PR middle-end/35043
9584         * gimplify.c (gimplify_init_ctor_eval): Convert array indices
9585         to TYPE_DOMAINs base type instead of using bitsizetype here.
9586
9587 2008-02-03  Jason Merrill  <jason@redhat.com>
9588
9589         * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
9590
9591 2008-02-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9592
9593         PR other/29972
9594         * doc/invoke.texi (C++ Dialect Options, Optimize Options)
9595         (HPPA Options, i386 and x86-64 Options, IA-64 Options)
9596         (RS/6000 and PowerPC Options): Fix typos and markup.
9597         * doc/passes.texi (Tree-SSA passes): Likewise.
9598
9599 2008-02-02  Michael Matz  <matz@suse.de>
9600
9601         PR target/35045
9602         * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
9603         from record_last_reg_set_info.
9604         (record_last_reg_set_info): Take an RTX argument, iterate over all
9605         constituent hardregs.
9606         (record_last_set_info, record_opr_changes): Change calls to
9607         new signature or to record_last_reg_set_info_regno.
9608
9609 2008-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
9610
9611         * doc/extend.texi (X86 Built-in Functions): Fix grammar.
9612
9613 2008-02-01  Hans-Peter Nilsson  <hp@axis.com>
9614
9615         PR rtl-optimization/34773
9616         * reg-notes.def (EQUAL): Mention significance of combination of
9617         REG_EQUAL and REG_RETVAL.
9618         * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
9619         insn that has a REG_RETVAL.
9620
9621 2008-02-01  Roger Sayle  <roger@eyesopen.com>
9622
9623         PR bootstrap/33781
9624         * configure.ac (--enable-fixed-point): Disable unless explicitly
9625         requested on IRIX.
9626         * configure: Regenerate.
9627
9628 2008-02-01  Richard Guenther  <rguenther@suse.de>
9629
9630         PR other/35042
9631         * invoke.texi (-finline-limit): Remove no longer true parts
9632         of the documentation.  Note that there is no default value.
9633
9634 2008-02-01  Andrew Pinski  <pinskia@gmail.com>
9635             Mark Mitchell  <mark@codesourcery.com>
9636             Ben Elliston  <bje@au.ibm.com>
9637
9638         PR c/29326
9639         * doc/extend.texi (Other Builtins): Document.
9640
9641 2008-01-31  Tom Browder <tom.browder@gmail.com>
9642
9643         * doc/c-tree.texi (Types): Fix grammar.
9644         (Expression trees): Ditto.
9645         * doc/passes.texi (Tree-SSA passes): Ditto.
9646         
9647         * doc/configterms.texi (Configure Terms): Fix typo.
9648         * doc/cpp.texi (Common Predefined Macros): Ditto.
9649         * doc/md.texi (Machine Constraints): Ditto.
9650         
9651         * doc/makefile.texi (Makefile): Add comma.
9652
9653 2008-01-31  Tom Browder  <tom.browder@gmail.com>
9654             Gerald Pfeifer  <gerald@pfeifer.com>
9655         
9656         * doc/sourcebuild.texi (Front End): Remove references to CVS
9657         and CVSROOT/modules.
9658         (Texinfo Manuals): Replace reference to CVS by one to SVN.
9659         (Back End): Remove reference to CVS.
9660
9661 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
9662
9663         PR target/34900
9664         * config/mips/mips.c (gen_load_const_gp): New function, taking a
9665         comment from...
9666         (mips16_gp_pseudo_reg): ...here.
9667         * config/mips/mips.md (load_const_gp): Replace with...
9668         (load_const_gp_<mode>): ...this :P-based insn.
9669
9670 2008-01-31  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
9671
9672         * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
9673         options. Minor fixes.
9674         (-std): Move reference to standards closer to where language
9675         standards are first mentioned.
9676         
9677 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
9678
9679         PR rtl-optimization/34995
9680         * reload.c (alternative_allows_const_pool_ref): Take an rtx
9681         parameter and return a bool.  If the rtx parameter is nonnull,
9682         check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
9683         (find_reloads): Update call accordingly.  Pass the new operand
9684         if it needed no address reloads, otherwise pass null.
9685
9686 2008-01-30  Richard Henderson  <rth@redhat.com>
9687
9688         PR c/34993
9689         * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
9690         for unbounded arrays.
9691
9692 2008-01-30  Silvius Rus  <rus@google.com>
9693
9694         * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
9695
9696 2008-01-30  Jan Hubicka  <jh@suse.cz>
9697
9698         PR target/34982
9699         * i386.c (init_cumulative_args): Use real function declaration when
9700         calling locally.
9701
9702 2008-01-30  Richard Sandiford  <rsandifo@nildram.co.uk>
9703
9704         PR rtl-optimization/34998
9705         * global.c (build_insn_chain): Treat non-subreg_lowpart
9706         SUBREGs of pseudos as clobbering all the words covered by the
9707         SUBREG, not just all the bytes.
9708         * ra-conflict.c (clear_reg_in_live): Likewise.  Take the
9709         original df_ref rather than an extract parameter.
9710         (global_conflicts): Update call accordingly.
9711
9712 2008-01-30  Andreas Krebbel  <krebbel1@de.ibm.com>
9713
9714         * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
9715         the overflow check to make it easier to read.
9716         (__fixtfdi): Change the type of the ll member in union
9717         long_double to UDItype_x.
9718
9719 2008-01-30  Jakub Jelinek  <jakub@redhat.com>
9720
9721         PR middle-end/34969
9722         * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
9723         * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
9724         * tree-inline.c (fold_marked_statements): Call
9725         cgraph_update_edges_for_call_stmt if folding a call statement.
9726         * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
9727         debug_generic_stmt calls, reset it back afterwards.
9728
9729         PR c/35017
9730         * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
9731         static decls.
9732         * c-typeck.c (build_external_ref): Don't pedwarn about
9733         static vars in current function's scope.
9734
9735 2008-01-29  Joseph Myers  <joseph@codesourcery.com>
9736
9737         * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
9738
9739 2008-01-29  Bernhard Fischer  <aldot@gcc.gnu.org>
9740
9741         PR c/35002
9742         * ipa-struct-reorg.c: Fix spelling.
9743         * params.def: Ditto.
9744
9745 2008-01-29  Richard Guenther  <rguenther@suse.de>
9746
9747         PR middle-end/35006
9748         * tree-inline.h (struct copy_body_data): Add remapping_type_depth
9749         field.
9750         * tree-inline.c (remap_type): Increment remapping_type_depth
9751         around remapping types.
9752         (copy_body_r): Only add referenced variables if they are referenced
9753         from code, not types.
9754
9755 2008-01-29  Douglas Gregor  <doug.gregor@gmail.com>
9756
9757         PR c++/34055
9758         PR c++/34103
9759         PR c++/34219
9760         PR c++/34606
9761         PR c++/34753
9762         PR c++/34754
9763         PR c++/34755
9764         PR c++/34919
9765         PR c++/34961
9766         * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
9767         qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
9768
9769 2008-01-28  Andy Hutchinson   <hutchinsonandy@netscape.net>
9770
9771         PR target/34412
9772         * config/avr/avr.c (expand_prologue): Use correct QI mode frame 
9773         pointer for tiny stack.
9774
9775 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
9776
9777         * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
9778
9779 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
9780
9781         * config/vx-common.h: Fix typo in comment.
9782
9783 2008-01-28  Ian Lance Taylor  <iant@google.com>
9784
9785         PR c++/34862
9786         PR c++/33407
9787         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
9788         coalesce pointers if they have different DECL_NO_TBAA_P values.
9789         * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
9790         between variables with different DECL_NO_TBAA_P values.
9791
9792 2008-01-28  Nathan Froyd  <froydnj@codesourcery.com>
9793
9794         PR 31535
9795         * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
9796         are not legitimate small data references on SPE targets.
9797
9798 2008-01-28  David Daney  <ddaney@avtrex.com>
9799
9800         * doc/install.texi (mips-*-*): Recommend binutils 2.18.
9801
9802 2008-01-28  David Daney  <ddaney@avtrex.com>
9803
9804         * doc/install.texi (--disable-libgcj-bc):  Reword documentation.
9805
9806 2008-01-27  Joseph Myers  <joseph@codesourcery.com>
9807
9808         * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
9809         m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
9810         *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
9811         *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
9812         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
9813         i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
9814         i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
9815         vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
9816
9817 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
9818
9819         * basic-block.h (condjump_equiv_p): Fix comment.
9820
9821 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
9822
9823         * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
9824         print_generic_stmt_indented): Fix comment.
9825
9826 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
9827
9828         * configure.ac (__stack_chk_fail): Add detecion for availability
9829         of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
9830         * configure: Regenerate.
9831
9832 2008-01-26  Maxim Kuvyrkov  <maxim@codesourcery.com>
9833
9834         PR middle-end/34688
9835         * final.c (output_addr_const): Handle TRUNCATE.
9836
9837 2008-01-26  Zdenek Dvorak  <ook@ucw.cz>
9838
9839         PR target/34711
9840         * tree-ssa-loop-ivopts.c (comp_cost): New type.
9841         (zero_cost, infinite_cost): New constants.
9842         (struct cost_pair): Change type of cost to comp_cost.
9843         (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
9844         (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
9845         New functions.
9846         (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
9847         split_address_cost, ptr_difference_cost, difference_cost,
9848         get_computation_cost_at, get_computation_cost,
9849         determine_use_iv_cost_generic, determine_use_iv_cost_address,
9850         determine_use_iv_cost_condition, determine_use_iv_costs,
9851         cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
9852         iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
9853         iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
9854         Change type of cost to comp_cost.
9855         (determine_iv_cost): Increase cost of non-original ivs, instead
9856         of decreasing the cost of original ones.
9857         (get_address_cost): Indicate the complexity of the addressing mode 
9858         in comp_cost.
9859         (try_add_cand_for): Prefer using ivs not specific to some object.
9860         * tree-flow.h (force_expr_to_var_cost): Declaration removed.
9861
9862 2008-01-26  Peter Bergner  <bergner@vnet.ibm.com>
9863             Janis Johnson  <janis187@us.ibm.com>
9864
9865         PR target/34814
9866         * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
9867         (TARGET_INSTANTIATE_DECLS): Likewise.
9868         * target.h (expand_to_rtl_hook): New target hook.
9869         (instantiate_decls): Likewise.
9870         * function.c (instantiate_decl): Make non-static.  Rename to...
9871         (instantiate_decl_rtl): ... this.
9872         (instantiate_expr): Use instantiate_decl_rtl.
9873         (instantiate_decls_1): Likewise.
9874         (instantiate_decls): Likewise.
9875         (instantiate_virtual_regs: Call new instantiate_decls taget hook.
9876         * function.h (instantiate_decl_rtl): Add prototype.
9877         * cfgexpand.c (target.h): New include.
9878         (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
9879         * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
9880         (TARGET_INSTANTIATE_DECLS): Likewise.
9881         (TARGET_INITIALIZER): New target hooks added.
9882         * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
9883         New prototype.
9884         * config/rs6000/rs6000.c (tree-flow.h): New include.
9885         (machine_function): Add sdmode_stack_slot field.
9886         (rs6000_alloc_sdmode_stack_slot): New function.
9887         (rs6000_instantiate_decls): Likewise.
9888         (rs6000_secondary_memory_needed_rtx): Likewise.
9889         (rs6000_check_sdmode): Likewise.
9890         (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
9891         (TARGET_INSTANTIATE_DECLS): Likewise.
9892         (rs6000_hard_regno_mode_ok): Allow SDmode.
9893         (num_insns_constant): Likewise.  Handle _Decimal32 constants.
9894         (rs6000_emit_move): Handle SDmode.
9895         (function_arg_advance): Likewise.
9896         (function_arg): Likewise.
9897         (rs6000_gimplify_va_arg): Likewise.  Add special handling of
9898         SDmode var args for 32-bit compiles.
9899         (rs6000_secondary_reload_class): Handle SDmode.
9900         (rs6000_output_function_epilogue): Likewise.
9901         (rs6000_function_value): Simplify if statement.
9902         (rs6000_libcall_value): Likewise.
9903         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
9904         (SECONDARY_MEMORY_NEEDED_RTX): Add define.
9905         * config/rs6000/dfp.md (movsd): New define_expand and splitter.
9906         (movsd_hardfloat): New define_insn.
9907         (movsd_softfloat): Likewise.
9908         (movsd_store): Likewise.
9909         (movsd_load): Likewise.
9910         (extendsddd2): Likewise.
9911         (extendsdtd2): Likewise.
9912         (truncddsd2): Likewise.
9913         (movdd_hardfloat64): Fixup comment.
9914         (UNSPEC_MOVSD_LOAD): New constant.
9915         (UNSPEC_MOVSD_STORE): Likewise.
9916
9917 2008-01-26  Jakub Jelinek  <jakub@redhat.com>
9918
9919         PR c++/34965
9920         * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
9921         TRUTH_XOR_EXPR.
9922         (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
9923         (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
9924         (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
9925         and TRUTH_XOR_EXPR.
9926
9927 2008-01-26  David Edelsohn  <edelsohn@gnu.org>
9928
9929         PR target/34794
9930         * config.gcc: Separate AIX 5.3 from AIX 6.1.
9931         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
9932         __LONGDOUBLE128 too.
9933         * config/rs6000/aix61.h: New file.
9934
9935 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
9936
9937         PR rtl-optimization/34959
9938         * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
9939         popcount and parity rtxes the same mode as their operand.
9940         Truncate or extend the result to the return value's mode
9941         if necessary.
9942
9943 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
9944
9945         PR target/34981
9946         * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
9947         * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
9948         to GOT_VERSION_REGNUM.
9949         (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
9950         (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
9951         * config/mips/mips.c (mips_emit_call_insn): New function.
9952         (mips_call_tls_get_addr): Call mips_expand_call directly.
9953         (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
9954         emit_call_insn.
9955         (mips16_build_call_stub): Likewise.  Return the call insn or null.
9956         (mips_expand_call): Update the call to mips16_build_call_stub
9957         accordingly and a remove redundant condition.  Assert that MIPS16
9958         stubs do not use lazy binding.  Use mips_emit_call_insn and return
9959         the call insn.
9960         (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
9961         TARGET_USE_GOT.
9962         (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
9963         (mips_avoid_hazard): Remove hazard_set handling.
9964         * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
9965         (UNSPEC_RESTORE_GP): ...this.
9966         (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
9967         (FAKE_CALL_REGNO): Rename to...
9968         (GOT_VERSION_REGNUM): ...this.
9969         (type): Add "ghost" value.  Add an associated insn reservation.
9970         (hazard_set): Remove.
9971         (exception_receiver): Rename to...
9972         (restore_gp): ...this and update the unspec identifier accordingly.
9973         (exception_receiver, nonlocal_got_receiver): New expanders.
9974         (load_call<mode>): Use GOT_VERSION_REGNUM.  Don't set
9975         FAKE_CALL_REGNO.  Remove hazard_set attribute.
9976         (set_got_version, update_got_version): New patterns.
9977
9978 2008-01-26  Danny Smith  <dannysmith@users.sourceforge.net>
9979
9980         PR target/34970
9981         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
9982
9983 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
9984
9985         PR other/31955
9986         * doc/install.texi2html: Generate gcc-vers.texi.
9987
9988 2008-01-25  DJ Delorie  <dj@redhat.com>
9989
9990         * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
9991
9992 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
9993
9994         * config/c4x: Remove directory.
9995         * config.gcc (crx-*, mt-*): Mark obsolete.
9996         (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
9997         h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
9998         sh-*-rtemscoff*): Remove cases.
9999         * defaults.h (C4X_FLOAT_FORMAT): Remove.
10000         * real.c (encode_c4x_single, decode_c4x_single,
10001         encode_c4x_extended, decode_c4x_extended, c4x_single_format,
10002         c4x_extended_format): Remove.
10003         * real.h (c4x_single_format, c4x_extended_format): Remove.
10004         * doc/extend.texi (interrupt, naked): Remove mention of attributes
10005         on C4x.
10006         (Pragmas): Remove comment about c4x pragmas.
10007         * doc/install.texi (c4x): Remove target-specific instructions.
10008         * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
10009         * doc/md.texi (Machine Constraints): Remove C4x documentation.
10010         * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
10011         refer to C4x source files as examples.
10012         (C4X_FLOAT_FORMAT): Remove documentation.
10013
10014 2008-01-25  Bernd Schmidt  <bernd.schmidt@analog.com>
10015
10016         * config/bfin/bfin.c (override_options): Reorder tests so that
10017         flag_pic gets enabled for -msep-data.
10018
10019 2008-01-25  Richard Guenther  <rguenther@suse.de>
10020
10021         PR middle-end/32244
10022         * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
10023         to its bitfield precision if required.
10024
10025 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
10026
10027         PR middle-end/33880
10028         * tree-nested.c (walk_omp_for): New function.
10029         (convert_nonlocal_reference, convert_local_reference): Call
10030         walk_omp_for on OMP_FOR.
10031         (convert_call_expr): Call walk_body on OMP_FOR's
10032         OMP_FOR_PRE_INIT_BODY.
10033
10034 2008-01-25  Richard Guenther  <rguenther@suse.de>
10035
10036         PR tree-optimization/34966
10037         * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
10038         default defs and PHI_NODEs we have to insert after the
10039         defining statement.
10040
10041 2008-01-24  Nick Clifton  <nickc@redhat.com>
10042
10043         * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
10044         Provide a default definition.
10045         (LIBGCC2_UNITS_PER_WORD): Likewise.
10046
10047         * config/stormy16/stormy16.c: Include df.h for the prototype
10048         for df_regs_ever_live_p.
10049         (xstormy16_expand_builtin_va_start): Convert the stack offset
10050         into a component_ref and then use POINTER_PLUS_EXPR to add it
10051         to the incoming_virtual_args_rtx.
10052         (xstormy16_gimplify_va_arg_expr): Rename to
10053         xstormy16_gimplify_va_arg_expr.
10054         Use POINTER_PLUS_EXPR when performing pointer arithmetic.
10055         (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
10056         xstormy16_gimplify_va_arg_expr.
10057         Fix up some formatting issues.
10058
10059         * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
10060         Move to predicates.md.
10061         (xs_hi_general_operand): Likewise.
10062         (xs_hi_nonmemory_operand): Likewise.
10063         * config/stormy16/predicates.md:
10064         (xstormy16_carry_plus_operand): New predicate.
10065         (xs_hi_general_operand): New predicate.
10066         (xs_hi_nonmemory_operand): New predicate.
10067         * config/stormy16/stormy16-protos.h:
10068         (xstormy16_carry_plus_operand): Delete prototype.
10069         (xs_hi_general_operand): Likewise.
10070         (xs_hi_nonmemory_operand): Likewise.
10071
10072         * config/storm16/stormy16.md (addhi3): Remove earlyclobber
10073         modifiers as they are no longer needed and they can trigger
10074         reload spill failures.
10075
10076         * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
10077         with a match_operand in order to help reload.
10078
10079         * config/storm16/stormy16.md (movhi_internal): Replace 'r'
10080         constraint with 'e' for the 8th alternative as this version of
10081         the mov.w instruction only accepts the lower 8 registers.
10082
10083 2008-01-25  Uros Bizjak  <ubizjak@gmail.com>
10084
10085         PR target/34856
10086         * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
10087         Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
10088         vector elements.
10089
10090 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
10091
10092         PR middle-end/33333
10093         * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
10094
10095 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
10096
10097         * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
10098         New functions.
10099         (remove_structure): Update allocations list before removing structure.
10100         
10101 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
10102
10103         * ipa-struct-reorg.c (is_safe_cond_expr, 
10104         create_new_stmts_for_cond_expr): Use integer_zerop function,
10105         that recognize not only zero-pointer, but zero-integer too.
10106
10107 2008-01-25  Ben Elliston  <bje@au.ibm.com>
10108
10109         PR other/22232
10110         * fixproto: Escape "." in sed expression that strips leading "./".
10111
10112 2008-01-24  H.J. Lu  <hongjiu.lu@intel.com>
10113
10114         PR driver/34904
10115         * gcc.c (SWITCH_OK): Removed.
10116         (SWITCH_LIVE): Changed to bit.
10117         (SWITCH_FALSE): Likewise.
10118         (SWITCH_IGNORE): Likewise.
10119         (switchstr): Change live_cond to unsigned int.
10120         (process_command): Replace SWITCH_OK with 0.
10121         (do_self_spec): Likewise.
10122         (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
10123         (give_switch): Likewise.
10124         (used_arg): Likewise.
10125         (do_spec_1): Set the SWITCH_IGNORE bit.
10126         (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
10127         bits.  Set the SWITCH_LIVE bit.
10128
10129 2008-01-24  Andreas Krebbel  <krebbel1@de.ibm.com>
10130
10131         * config/s390/s390.h (MOVE_RATIO): Define new target macro.
10132
10133 2008-01-24  Richard Sandiford  <rsandifo@nildram.co.uk>
10134
10135         PR tree-optimization/34472
10136         * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
10137         parameter to a "bool *" and set *DATA to false if there is
10138         an unsafe access.  Do not delete the structure here.
10139         (check_cond_exprs): Delete it here instead.
10140         (check_cond_exprs, exclude_cold_structs): Do not increase
10141         I when removing a structure.
10142
10143 2008-01-24  Uros Bizjak  <ubizjak@gmail.com>
10144
10145         PR target/34856
10146         * config/i386/i386.c (ix86_expand_vector_init): Consider only
10147         CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
10148
10149 2008-01-24  Jakub Jakub Jelinek  <jakub@redhat.com>
10150
10151         PR middle-end/34934
10152         * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
10153         a fixed vector for stack.
10154
10155 2008-01-24  Ben Elliston  <bje@au.ibm.com>
10156
10157         PR c++/25701
10158         * doc/gcc.texi (Software development): Add a direntry for g++.
10159         
10160 2008-01-23  Hans-Peter Nilsson  <hp@axis.com>
10161
10162         * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
10163         stale and straggling -fforce-addr comments above.
10164
10165         * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
10166         define.
10167         * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
10168         * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
10169
10170 2008-01-23  Michael Matz  <matz@suse.de>
10171
10172         PR debug/34895
10173         * dwarf2out.c (force_type_die): Use modified_type_die instead of
10174         gen_type_die.
10175
10176 2008-01-23  Andreas Krebbel  <krebbel1@de.ibm.com>
10177
10178         * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
10179         malloc result type.
10180
10181 2008-01-23 Anatoly Sokolov <aesok@post.ru>
10182
10183         * config/avr/avr.c (avr_current_arch): New variable.
10184         (avr_arch_types): Add 'avr31' and 'avr51' entries.
10185         (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
10186         (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
10187         (avr_override_options): Init 'avr_current_arch'. 
10188         (base_arch_s): Move from here...
10189         * config/avr/avr.h (base_arch_s): ... here. Add new members 
10190         'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename 
10191         'mega' to 'have_jmp_call'.
10192         (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__", 
10193         "__AVR_HAVE_RAMPZ__",   "__AVR_HAVE_ELPM__" and  "__AVR_HAVE_ELPMX__"
10194         macros.
10195         (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51' 
10196         architectures.
10197         * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES, 
10198         MULTILIB_MATCHES): (Ditto.).
10199
10200 2008-01-23  Richard Guenther  <rguenther@suse.de>
10201
10202         PR middle-end/31529
10203         * cgraphunit.c (cgraph_reset_node): Always mark the node
10204         not reachable if it is not queued already.
10205
10206 2008-01-23  Bernd Schmidt  <bernd.schmidt@analog.com>
10207
10208         * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
10209         * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
10210         (cputype_selected): New static variable.
10211         (bfin_handle_option): Set it if -mcpu is used.
10212         (override_option): Select default set of workarounds if no cpu type
10213         selected on the command line.
10214         (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
10215
10216         From  Michael Frysinger  <michael.frysinger@analog.com>
10217         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
10218         BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
10219
10220         * config/bfin/elf.h (LIB_SPEC): Use proper linker script
10221         for bf547, bf523, bf524, and bf526.
10222         * config/bfin/bfin.c (bfin_cpus[]): Add bf547,  bf523, bf524, and
10223         bf526.
10224         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
10225         __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
10226         __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
10227         __ADSPBF547__ and __ADSPBF54x__ for bf547.
10228         * doc/invoke.texi (Blackfin Options): Document that
10229         -mcpu now accept bf547, bf523, bf524, and bf526.
10230
10231 2008-01-22  Eric Botcazou  <ebotcazou@adacore.com>
10232
10233         PR rtl-optimization/34628
10234         * combine.c (try_combine): Stop and undo after the first combination
10235         if an autoincrement side-effect on the first insn has effectively
10236         been lost.
10237
10238 2008-01-22  David Edelsohn  <edelsohn@gnu.org>
10239
10240         PR target/34529
10241         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
10242         Offset addresses are not valid for Altivec or paired float modes.
10243
10244 2008-01-22  Jakub Jelinek  <jakub@redhat.com>
10245
10246         PR c++/34607
10247         * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
10248         if DECL_INITIAL (decl) is error_mark_node.
10249
10250         PR c++/34914
10251         * c-common.c (handle_vector_size_attribute): Only allow
10252         integral, scalar float and fixed point types.  Handle OFFSET_TYPE
10253         the same way as pointer, array etc. types.
10254         * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
10255
10256         PR c++/34917
10257         * tree.c (build_type_attribute_qual_variant): Call
10258         build_qualified_type if attributes are equal, but quals are not.
10259
10260 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
10261
10262         PR 32102
10263         * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
10264         * flags.h (warn_strict_aliasing): Remove.
10265         (warn_strict_overflow): Remove.
10266         * opts.c (warn_strict_aliasing): Remove.
10267         (warn_strict_overflow): Remove.
10268         * c-opts.c (c_common_handle_option): -Wall only sets
10269         -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
10270         (c_common_post_options): Give default values to -Wstrict-aliasing
10271         and -Wstrict-overflow if they are uninitialized.
10272         * common.opt (Wstrict-aliasing): Specify Var and Init.
10273         (Wstrict-overflow): Likewise.
10274
10275 2008-01-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
10276
10277         PR rtl-optimization/26854
10278         PR rtl-optimization/34400
10279         PR rtl-optimization/34884
10280         * ddg.c (create_ddg_dep_from_intra_loop_link): Use
10281         DF_RD->gen.
10282         * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
10283         (df_rd_bb_info.expanded_lr_out): Deleted
10284         * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
10285         * loop_iv.c (iv_analysis_loop_init): Ditto.  * df-problems.c
10286         (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
10287         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
10288         Removed code to allocate, initialize or free expanded_lr_out.
10289         (df_rd_bb_local_compute_process_def): Restructured to make more
10290         understandable.
10291         (df_rd_confluence_n): Removed code to no apply invalidate_by_call
10292         sets if the sets are being trimmed.
10293
10294 2008-01-22  H.J. Lu  <hongjiu.lu@intel.com>
10295
10296         PR bootstrap/32287
10297         * configure.ac (ld_vers): Support GNU linker version xx.xx.*
10298         (as_vers): Likewise.
10299         * configure: Regenerated.
10300
10301 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
10302
10303         PR middle-end/33092
10304         * tree-pass.h (pass_build_alias): New pass.
10305         * tree-ssa-alias.c (gate_build_alias): New.
10306         (pass_build_alias): New.
10307         * passes.c (init_optimization_passes): Add pass_build_alias after
10308         pass_create_structure_vars.
10309
10310 2008-01-22  Wolfgang Gellerich  <gellerich@de.ibm.com>
10311
10312         * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
10313         Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
10314         (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
10315         S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
10316         (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
10317         S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
10318         (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
10319         S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
10320         (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
10321         (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
10322         (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
10323         (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
10324         * config/s390/s390.md (FP_ALL): New mode iterator.
10325         (_d): New mode attribute.
10326         ("*signbit<mode>2>"): Changed mode of first operand.
10327         ("isinf<mode>2"): Changed mode of first operand.
10328         ("*TDC_insn"): Adaptation for DFP modes.
10329
10330 2008-01-22  Ben Elliston  <bje@au.ibm.com>
10331
10332         * tree.c (check_qualified_type): Improve function description.
10333
10334 2008-01-21  Jason Merrill  <jason@redhat.com>
10335
10336         PR c++/34196
10337         * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
10338         * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
10339         if it is set.
10340
10341 2008-01-21  DJ Delorie  <dj@redhat.com>
10342
10343         * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
10344         return zero.
10345
10346 2008-01-21  Richard Guenther  <rguenther@suse.de>
10347
10348         PR middle-end/34856
10349         * tree-cfg.c (verify_expr): Allow all invariant expressions
10350         instead of just constant class ones as reference argument.
10351         * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
10352         like any other constant.
10353         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
10354
10355 2008-01-21  H.J. Lu  <hongjiu.lu@intel.com>
10356
10357         * regmove.c (fixup_match_1): Update call crossed frequencies.
10358
10359 2008-01-21  Richard Guenther  <rguenther@suse.de>
10360
10361         PR c/34885
10362         * tree-inline.c (setup_one_parameter): Deal with mismatched
10363         types using a VIEW_CONVERT_EXPR.
10364
10365 2008-01-21  Alon Dayan  <alond@il.ibm.com>
10366             Olga Golovanevsky  <olga@il.ibm.com>
10367         
10368         PR tree-optimization/34701
10369         * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
10370         when the structure size is not a power of 2.
10371
10372 2008-01-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
10373
10374         * doc/install.texi: Add doc for --enable-checking=df.
10375         
10376 2008-01-20  Kaz Kojima  <kkojima@gcc.gnu.org>
10377
10378         PR rtl-optimization/34808
10379         * emit-rtl.c (try_split): Handle REG_RETVAL notes.
10380
10381 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
10382
10383         * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
10384         input.
10385
10386 2008-01-19  Kenneth Zadeck  <zadeck@naturalbridge.com>
10387
10388         PR rtl-optimization/26854
10389         PR rtl-optimization/34400
10390         * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
10391         DF_RD->gen.
10392         * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
10393         (df_rd_bb_info.expanded_lr_out): New.
10394         * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
10395         * loop_iv.c (iv_analysis_loop_init): Ditto.
10396         * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
10397         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
10398         Added code to allocate, initialize or free expanded_lr_out.
10399         (df_rd_bb_local_compute_process_def): Restructured to make
10400         more understandable.
10401         (df_rd_confluence_n): Add code to do nothing with fake edges and
10402         code to no apply invalidate_by_call sets if the sets are being trimmed.
10403         (df_lr_local_finalize): Renamed to df_lr_finalize.
10404         (df_live_local_finalize): Renamed to df_live_finalize.
10405
10406 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
10407
10408         PR target/34831
10409         * config/mips/mips.md (div<mode>3): Use <recip_condition> when
10410         deciding whether to use reciprocal instructions.
10411
10412 2008-01-19  Uros Bizjak  <ubizjak@gmail.com>
10413
10414         * dwarf2out.c (dwarf2out_switch_text_section): Do not call
10415         dwarf2out_note_section_used if cold_text_section is NULL.
10416
10417 2008-01-19  Jakub Jelinek  <jakub@redhat.com>
10418
10419         PR gcov-profile/34610
10420         * tree-cfg.c (make_edges): Mark both outgoing edges from
10421         OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
10422         * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
10423         from OMP_FOR and OMP_CONTINUE outgoing edges.
10424
10425         * tree-profile.c (tree_profiling): Return early if
10426         cfun->after_tree_profile != 0.  Set cfun->after_tree_profile
10427         at the end.
10428         * omp-low.c (expand_omp_parallel): Copy after_tree_profile
10429         from cfun to child_cfun.
10430         * function.h (struct function): Add after_tree_profile bit.
10431
10432 2008-01-19 Anatoly Sokolov <aesok@post.ru>
10433
10434         * config/avr/avr.S (_exit): Disable interrupt.
10435
10436 2008-01-18  Kenneth Zadeck  <zadeck@naturalbridge.com>
10437             Steven Bosscher  <stevenb.gcc@gmail.com>
10438
10439         PR rtl-optimization/26854
10440         PR rtl-optimization/34400
10441         * df-problems.c (df_live_scratch): New scratch bitmap.
10442         (df_live_alloc): Allocate df_live_scratch when doing df_live.
10443         (df_live_reset): Clear the proper bitmaps.
10444         (df_live_bb_local_compute): Only process the artificial defs once
10445         since the order is not important.
10446         (df_live_init): Init the df_live sets only with the variables
10447         found live by df_lr.
10448         (df_live_transfer_function): Use the df_lr sets to prune the
10449         df_live sets as they are being computed.  
10450         (df_live_free): Free df_live_scratch.
10451
10452 2008-01-18  Ian Lance Taylor  <iant@google.com>
10453
10454         * common.opt: Add fmerge-debug-strings.
10455         * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
10456         flag_merge_debug_strings rather than flag_merge_constants.
10457         * doc/invoke.texi (Option Summary): Mention
10458         -fmerge-debug-strings.
10459         (Debugging Options): Document -fmerge-debug-strings.
10460
10461 2008-01-18  Ian Lance Taylor  <iant@google.com>
10462
10463         PR c++/33407
10464         * tree.h (DECL_IS_OPERATOR_NEW): Define.
10465         (struct tree_function_decl): Add new field operator_new_flag.
10466         * tree-inline.c (expand_call_inline): When inlining a call to
10467         operator new, force the return value to go into a variable, and
10468         set DECL_NO_TBAA_P on that variable.
10469         * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
10470
10471 2008-01-18  Uros Bizjak  <ubizjak@gmail.com>
10472
10473         PR debug/34484
10474         * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
10475         DWARF2_DEBUGGING_INFO.
10476         (dwarf2out_note_section_used): Ditto.  Add prototype.
10477         (have_multiple_function_sections, text_section_used,
10478         cold_text_section_used, *cold_text_sections): Move declarations
10479         before their uses.
10480
10481 2008-01-17  Bob Wilson  <bob.wilson@acm.org>
10482
10483         * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
10484         field and add signal_ra.
10485         * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
10486         assignments to frame state pc.  Move end of stack check after
10487         MD_FALLBACK_FRAME_STATE_FOR.
10488         (uw_update_context_1): Use frame state signal_regs if set, instead
10489         of checking signal_frame flag.
10490         (uw_update_context): Use frame state signal_ra if set.
10491         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
10492         * config/xtensa/linux-unwind.h: New file.
10493
10494 2008-01-18  Bernhard Fischer  <aldot@gcc.gnu.org>
10495
10496         * modulo-sched.c (get_sched_window): Fix comment typo.
10497
10498 2008-01-17  Andrew MacLeod  <amacleod@redhat.com>
10499
10500         PR tree-optimization/34648
10501         * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
10502
10503 2008-01-17  Anatoly Sokolov <aesok@post.ru>
10504
10505         * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
10506         * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
10507
10508 2008-01-17  Seongbae Park  <seongbae.park@gmail.com>
10509
10510         PR rtl-optimization/34400
10511         * df-core.c (df_worklist_dataflow_overeager,
10512         df_worklist_dataflow_doublequeue): New functions.
10513         (df_worklist_dataflow): Two different worklist solvers.
10514         * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
10515         New param.
10516
10517 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
10518
10519         PR testsuite/34821
10520         * doc/invoke.texi: Document the dependence on pthread for fopenmp
10521         and ftree-parallelize-loops.
10522
10523 2008-01-17  Mircea Namolaru  <namolaru@il.ibm.com>
10524
10525         PR rtl-optimization/34826
10526         * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
10527
10528 2008-01-17  Andreas Krebbel  <krebbel1@de.ibm.com>
10529
10530         * global.c (find_reg): Mark the eh regs as used if necessary.
10531         * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
10532         * ra.h (struct allocno): no_eh_reg field added.  Changed
10533         no_stack_reg type to bitfield.
10534
10535 2008-01-17  Eric Botcazou  <ebotcazou@adacore.com>
10536
10537         * tree.c (substitute_in_expr): Add missing 'break'.
10538
10539 2008-01-17  Richard Guenther  <rguenther@suse.de>
10540
10541         PR tree-optimization/34825
10542         * tree-ssa-math-opts.c (is_division_by): Do not recognize
10543         x / x as division to handle.
10544
10545 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10546
10547         * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
10548         "-pthread" is specified.
10549         * pa-hpux11.h (LIB_SPEC): Likewise.
10550
10551 2008-01-16  Janis Johnson  <janis187@us.ibm.com>
10552             Peter Bergner  <bergner@vnet.ibm.com>
10553
10554         PR rtl-optimization/33796
10555         * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
10556
10557 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10558
10559         PR libgfortran/34699
10560         * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
10561         static links.
10562         * pa-hpux10.h (LINK_SPEC): Likewise.
10563         * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
10564
10565 2008-01-16  Richard Guenther  <rguenther@suse.de>
10566
10567         PR middle-end/32628
10568         * fold-const.c (fold_convert_const_int_from_int): Do not
10569         set overflow if that occured only because of a sign extension
10570         change when converting from/to a sizetype with the same
10571         precision and signedness.
10572
10573 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
10574
10575         PR debug/34249
10576         * dwarf2out.c (output_call_frame_info): Move output of FDE initial
10577         location address to the correct place.  Update copyright year.
10578
10579 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
10580
10581         * lambda-code.c (lambda_transform_legal_p): Handle the case of
10582         no dependences in the dependence_relations vector.
10583
10584 2008-01-16  Jan Hubicka  <jh@suse.cz>
10585
10586         PR rtl-optimization/31396
10587         * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
10588         * cfg.c (dump_reg_info): Print it.
10589         * regs.h (struct reg_info_t): add freq_calls_crossed.
10590         (REG_FREQ_CALLS_CROSSED): New macro.
10591         * global.c (global_alloc): Compute freq_calls_crossed for allocno.
10592         (find_reg): Update call of CALLER_SAVE_PROFITABLE.
10593         * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
10594         regmove_optimize): Update call crossed frequencies.
10595         * local-alloc.c (struct qty): Add freq_calls_crossed.
10596         (alloc_qty): Copute freq_calls_crossed.
10597         (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
10598         (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
10599         * ra.h (struct allocno): Add freq_calls_crossed.
10600
10601 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
10602
10603         * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
10604         libgomp when compiling with ftree-parallelize-loops.
10605         (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
10606
10607 2008-01-16  Richard Guenther  <rguenther@suse.de>
10608
10609         PR tree-optimization/34769
10610         * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
10611         * tree.c (int_cst_value): Instead make this function more
10612         permissive in what it accepts as valid input.  Document this
10613         function always sign-extends the value.
10614
10615 2008-01-16  Jakub Jelinek  <jakub@redhat.com>
10616             Richard Guenther  <rguenther@suse.de>
10617
10618         PR c/34668
10619         * gimplify.c (fold_indirect_ref_rhs): Rename to ...
10620         (gimple_fold_indirect_ref_rhs): ... this.
10621         (gimple_fold_indirect_ref): New function with foldings
10622         that preserve lvalueness.
10623         (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
10624         * tree-flow.h (gimple_fold_indirect_ref): Declare.
10625         * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
10626         to fold an INDIRECT_REF, fall back to the old use of
10627         fold_indirect_ref_1.
10628
10629 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
10630
10631         * tree-data-ref.c (subscript_dependence_tester_1): Call 
10632         free_conflict_function.
10633         (compute_self_dependence): Same.
10634
10635 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
10636
10637         PR debug/34249
10638         * debug.h (dwarf2out_switch_text_section): Move declaration from ...
10639         * dwarf2out.c (dwarf2out_switch_text_section): ... here.  Make
10640         function global.
10641         * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
10642         Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
10643         for DWARF2_UNWIND_INFO targets.
10644
10645 2008-01-16  Richard Guenther  <rguenther@suse.de>
10646
10647         PR c/34768
10648         * c-typeck.c (common_pointer_type): Do not merge inconsistent
10649         type qualifiers for function types.
10650
10651 2008-01-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
10652
10653         * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
10654         loop_iterator li from previous commit.
10655
10656 2008-01-15  Sebastian Pop  <sebastian.pop@amd.com>
10657
10658         * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
10659
10660 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
10661
10662         * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
10663         (parallelize_loops): Don't parallelize irreducible components.
10664
10665 2008-01-14  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
10666
10667         PR c++/24924
10668         * c-opts (c_common_post_options): Do not enable CPP
10669         flag_pedantic_errors by default.
10670         
10671 2008-01-14  Eric Botcazou  <ebotcazou@adacore.com>
10672
10673         PR rtl-optimization/31944
10674         * cse.c (remove_pseudo_from_table): New function.
10675         (merge_equiv_classes): Use above function to remove pseudo-registers.
10676         (invalidate): Likewise.
10677
10678 2008-01-13  Richard Guenther  <rguenther@suse.de>
10679
10680         PR middle-end/34601
10681         * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
10682         instead of TYPE_MODE to deal with calls from expand_one_error_var.
10683
10684 2008-01-13  Uros Bizjak  <ubizjak@gmail.com>
10685
10686         * gcse.c (cprop_jump): Call validate_unshare_change instead of
10687         validate_change to unshare the source of the PC set.
10688
10689 2008-01-12  Jan Hubicka  <jh@suse.cz>
10690
10691         PR middle-end/32135
10692         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
10693         references above array bounds.  This might trigger bounds checks for
10694         pointers to arrays.
10695
10696 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
10697
10698         * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
10699         new_replaceable_dependencies.
10700
10701 2008-01-12  Doug Kwan  <dougkwan@google.com>
10702
10703         * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
10704         instead of OPT_Wreturn_type in warning due to ignored return type
10705         qualifiers.
10706         * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
10707         options included in -Wextra.
10708         * c.opt: New option -Wignored_qualifiers.
10709         * doc/invoke.texi (Warning Options, -Wextra): Add new option
10710         -Wignore_qualifiers.
10711         (-Wignored-qualifiers): Document.
10712         (-Wreturn-type): Remove description of functionality now handled
10713         by -Wignored-qualifiers.
10714
10715 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
10716
10717         PR ada/33788
10718         * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
10719         NOP_EXPR if it is between integral types with the same precision.
10720
10721 2008-01-12  Jan Hubicka  <jh@suse.cz>
10722
10723         PR other/28023
10724         * invoke.texi (max-inline-recursive-depth): Fix default value.
10725
10726 2008-01-12  Zdenek Dvorak  <ook@ucw.cz>
10727
10728         * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
10729         correct type.
10730
10731 2008-01-11  Bob Wilson  <bob.wilson@acm.org>
10732         
10733         * config/xtensa/xtensa.c (override_options): Set flag_shlib.
10734         
10735 2008-01-11  James E. Wilson  <wilson@specifix.com>
10736
10737         PR target/26015
10738         * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
10739
10740 2008-01-11  Anatoly Sokolov <aesok@post.ru>
10741
10742         * config/avr/avr.c (expand_prologue, expand_epilogue): Don't 
10743         save/restore frame pointer register and don't use 'call-prologues' 
10744         optimization in function with "OS_task" attribute.
10745
10746 2008-01-11  Eric Botcazou  <ebotcazou@adacore.com>
10747
10748         PR middle-end/31309
10749         * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
10750         when copying to memory.
10751
10752 2008-01-11  Steven Bosscher  <stevenb.gcc@gmail.com>
10753
10754         PR rtl-optimization/30905
10755         * cfgcleanup.c: Include dce.h
10756         (crossjumps_occured): New global variable.
10757         (try_crossjump_bb): Exit loop after finding a fallthru edge.
10758         If something changed, set crossjumps_occured to true.
10759         (try_optimize_cfg): Clear crossjumps_occured at the beginning.
10760         Don't add/remove fake edges to exit here...
10761         (cleanup_cfg): ...but do it here, when crossjumping.
10762         Run a fast DCE when successful crossjumps occured in the latest
10763         iteration of try_optimize_cfg.
10764
10765 2008-01-11  Richard Guenther  <rguenther@suse.de>
10766
10767         * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
10768         (struct vn_unary_op_s): Likewise.
10769         (vn_reference_insert): Free old reference on hash collision.
10770
10771 2008-01-10  Raksit Ashok  <raksit@google.com>
10772
10773         PR rtl-optimization/27971
10774         * combine.c (find_split_point): Split PLUS expressions which are
10775         inside a MEM rtx, and whose first operand is complex.
10776
10777 2008-01-10  DJ Delorie  <dj@redhat.com>
10778
10779         * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
10780         (m32c_hard_regno_nregs): ...this, which is now a wrapper.
10781         (m32c_hard_regno_ok): Call the underlying function.
10782
10783 2008-01-10  Richard Guenther  <rguenther@suse.de>
10784
10785         PR middle-end/34683
10786         * tree-cfg.c (tree_merge_blocks): Do not go through the
10787         full-blown folding and stmt updating path if we just deal
10788         with virtual operands.
10789         * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
10790         test for abnormal SSA_NAMEs.
10791
10792 2008-01-10  Andreas Krebbel  <krebbel1@de.ibm.com>
10793
10794         PR middle-end/34641
10795         * reload.c (push_reload): Add assertions.  All constants from
10796         reg_equiv_constant should have been used for replacing the respective
10797         pseudo earlier.
10798         (find_reloads_address): Invoke find_reloads_address_part for
10799         constant taken from the reg_equiv_constant array.
10800
10801 2008-01-10  Steven Bosscher  <stevenb.gcc@gmail.com>
10802
10803         * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
10804         field (valnum) the first in the struct.  Replace bools with
10805         unit bit fields.
10806
10807 2008-01-10  Richard Guenther  <rguenther@suse.de>
10808
10809         PR tree-optimization/34651
10810         * tree-sra.c (sra_build_assignment): Sanitize.  Use the correct
10811         types and ordering for masking and converting.
10812
10813 2008-01-09  Sebastian Pop  <sebastian.pop@amd.com>
10814
10815         PR tree-optimization/34017
10816         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
10817         also for PHI_NODE expressions.
10818
10819 2008-01-09  Jan Hubicka  <jh@suse.cz>
10820
10821         PR tree-optimization/34708
10822         * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
10823         based on number of case labels.
10824         (init_inline_once): Remove switch_cost.
10825         * tree-inline.h (eni_weights_d): Remove switch_cost.
10826
10827 2008-01-09  Richard Guenther  <rguenther@suse.de>
10828         Andrew Pinski  <andrew_pinski@playstation.sony.com>
10829
10830         PR middle-end/30132
10831         * gimplify.c (gimplify_cond_expr): Do not create an addressable
10832         temporary if an rvalue is ok or an lvalue is not required.
10833
10834 2008-01-09  Richard Guenther  <rguenther@suse.de>
10835
10836         PR middle-end/34458
10837         * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
10838         adjust return type.
10839
10840 2008-01-09  Richard Guenther  <rguenther@suse.de>
10841
10842         PR middle-end/34679
10843         * tree.c (host_integerp): Check for sizetype only if the
10844         type is an integer type.
10845
10846 2008-01-09  Steven Bosscher  <stevenb.gcc@gmail.com>
10847
10848         PR debug/26364
10849         * opts.c (decode_options): Disable inlining of functions called
10850         once if not in unit-at-a-time mode.
10851
10852 2008-01-09  Alexandre Oliva  <aoliva@redhat.com>
10853
10854         * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
10855
10856 2008-01-08  Richard Guenther  <rguenther@suse.de>
10857
10858         PR middle-end/31863
10859         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
10860         out early if the result will be unused.
10861
10862 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
10863
10864         PR target/34709
10865         Revert:
10866
10867         2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
10868         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
10869         for TARGET_RECIP.       
10870         
10871 2008-01-08  Jan Sjodin  <jan.sjodin@amd.com>
10872         
10873         * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
10874         for vectorization tuned.
10875         
10876 2008-01-08  Richard Guenther  <rguenther@suse.de>
10877
10878         PR tree-optimization/34683
10879         * tree-ssa-operands.c (operand_build_cmp): Export.
10880         * tree-ssa-operands.h (operand_build_cmp): Declare.
10881         * tree-vn.c (vuses_compare): Remove.
10882         (sort_vuses): Use operand_build_cmp.
10883         (sort_vuses_heap): Likewise.
10884         * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
10885         to re-use old VEC if available.  Do not sort already sorted VUSEs.
10886         (vdefs_to_vec): Do not sort already sorted VDEFs.
10887
10888 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
10889
10890         PR middle-end/34694
10891         * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
10892
10893 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
10894
10895         PR target/34702
10896         * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
10897         limitations of reciprocal sequences on x86 targets.
10898
10899 2008-01-08  Richard Guenther  <rguenther@suse.de>
10900
10901         PR tree-optimization/34683
10902         * tree-flow-inline.h (var_ann): Remove overzealous asserts.
10903
10904 2008-01-07  Jakub Jelinek  <jakub@redhat.com>
10905
10906         PR target/34622
10907         * config/darwin.c (darwin_mergeable_string_section): Don't use
10908         .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
10909
10910 2008-01-07  Uros Bizjak  <ubizjak@gmail.com>
10911
10912         PR target/34682
10913         * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
10914         negxf2.  Macroize expander using X87MODEF mode iterator.  Change
10915         predicates of op0 and op1 to register_operand.
10916         (abs<mode>2): Rename from abssf2, absdf2 and negxf2.  Macroize
10917         expander using X87MODEF mode iterator.  Change predicates of
10918         op0 and op1 to register_operand.
10919         ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
10920         corresponding patterns and macroize using MODEF macro.  Change
10921         predicates of op0 and op1 to register_operand and remove
10922         "m" constraint. Disparage "r" alternative with "!".
10923         ("*absneg<mode>2_i387"): Rename from corresponding patterns and
10924         macroize using X87MODEF macro.  Change predicates of op0 and op1
10925         to register_operand and remove "m" constraint.  Disparage "r"
10926         alternative with "!".
10927         (absneg splitter with memory operands): Remove.
10928         ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
10929         patterns and macroize using X87MODEF mode iterator.
10930         * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
10931         Change predicate of op1 to register_operand.
10932         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
10933         for memory operands.
10934
10935 2008-01-07  Nathan Froyd  <froydnj@codesourcery.com>
10936
10937         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
10938
10939 2008-01-07  Richard Guenther  <rguenther@suse.de>
10940
10941         * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
10942         fields.
10943
10944 2008-01-07  Richard Guenther  <rguenther@suse.de>
10945
10946         PR tree-optimization/34683
10947         * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
10948         VOPs of the needed size to save memory.  Use VEC_quick_push
10949         to save compile-time.
10950         (vdefs_to_vec): Likewise.
10951
10952 2008-01-07  Sa Liu  <saliu@de.ibm.com>
10953
10954         * config/spu/spu.md (divdf3): Genetate inline code for double
10955         division.  The implementation doesn't handle INF or NAN, therefore it
10956         only applies when -ffinite-math-only is given.
10957
10958 2008-01-06  Paolo Carlini  <pcarlini@suse.de>
10959
10960         PR libstdc++/34680
10961         * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
10962         * doc/cpp.texi ([Common Predefined Macros]): Document.
10963
10964 2008-01-06  Uros Bizjak  <ubizjak@gmail.com>
10965
10966         * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
10967         order to use commutative addition instead of subtraction.
10968
10969 2008-01-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
10970             Mircea Namolaru  <namolaru@il.ibm.com>
10971             Vladimir Yanovsky  <yanov@il.ibm.com>
10972             Revital Eres  <eres@il.ibm.com>
10973
10974         PR tree-optimization/34263
10975         * tree-outof-ssa.c (process_single_block_loop_latch,
10976         contains_tree_r): New functions.
10977         (analyze_edges_for_bb): Call process_single_block_loop_latch
10978         function to empty single-basic-block latch block if possible.
10979
10980 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
10981
10982         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
10983         for TARGET_RECIP.
10984         (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
10985
10986 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
10987
10988         * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
10989
10990 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
10991
10992         * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
10993
10994 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
10995
10996         PR tree-optimization/34618
10997         * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
10998         flag from T.
10999
11000 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
11001
11002         PR target/34673
11003         * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
11004         in the call to gen_rtx_NE.  Remove unneeded VECTOR_MODE_P check.
11005         Update copyright year.
11006
11007         * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
11008         Update copyright year.
11009         * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
11010         using NR fixup.
11011
11012 2008-01-05  Zhouyi Zhou  <zhouzhouyi@FreeBSD.org>
11013
11014         * tree-vrp.c (find_conditional_asserts): Remove redundant check that
11015         edge does not point to current bb before changing need_assert.
11016
11017 2008-01-04  Richard Guenther  <rguenther@suse.de>
11018
11019         PR middle-end/34029
11020         * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
11021         for verifying purposes if they are is_gimple_min_invariant.
11022
11023 2008-01-04  Aldy Hernandez  <aldyh@redhat.com>
11024
11025         PR tree-optimization/34448
11026         PR tree-optimization/34465
11027         * gimplify.c (gimplify_init_constructor): Add new parameter
11028         notify_temp_creation.  Use it.
11029         (gimplify_modify_expr_rhs): Take volatiles into account when
11030         optimizing constructors.
11031         Do not optimize constructors if gimplify_init_constructor will dump to
11032         memory.
11033         * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
11034         * gcc.c-torture/compile/pr34448.c: New.
11035
11036 2008-01-04  Jakub Jelinek  <jakub@redhat.com>
11037
11038         PR gcov-profile/34609
11039         * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
11040         return_slot if result is TREE_ADDRESSABLE.
11041
11042 2008-01-04  Richard Sandiford  <rsandifo@nildram.co.uk>
11043
11044         * config/mips/mips.md (sqrt_condition): Tweak comment.
11045         (recip_condition): Likewise.  Require TARGET_FLOAT64 for DFmode.
11046
11047 2008-01-03  Tom Tromey  <tromey@redhat.com>
11048
11049         PR c/34457
11050         * c-common.c (c_type_hash): Handle VLAs.
11051
11052 2008-01-03  Jan Hubicka  <jh@suse.cz>
11053
11054         PR tree-optimization/31081
11055         * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
11056         0 when inlining and not inlining to first basic block.
11057         (remap_decl): When var is initialized to 0, don't set default_def.
11058         (expand_call_inline): Set entry_bb.
11059         * tree-inline.h (copy_body_data): Add entry_bb.
11060
11061 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
11062
11063         PR c++/34619
11064         * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
11065         before returning.
11066
11067         PR tree-optimization/29484
11068         * tree-inline.c (inline_forbidden_p_2): New function.
11069         (inline_forbidden_p): Disallow inlining if some static var
11070         has an address of a local LABEL_DECL in its initializer.
11071         * doc/extend.texi (Labels as Values): Document &&foo behaviour
11072         vs. inlining.
11073
11074 2008-01-03  Sebastian Pop  <sebastian.pop@amd.com>
11075
11076         PR tree-optimization/34635
11077         * tree-data-ref.c (add_other_self_distances): Make sure that the
11078         evolution step is constant.
11079
11080 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
11081
11082         PR middle-end/34608
11083         * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
11084
11085 2008-01-02  Richard Sandiford  <rsandifo@nildram.co.uk>
11086
11087         * tree-sra.c (scalarize_init): Insert the generate_element_init
11088         statements after the generate_element_zero statements.
11089
11090 2008-01-02  Richard Guenther  <rguenther@suse.de>
11091
11092         PR middle-end/34093
11093         PR middle-end/31976
11094         * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
11095         for very large number of operands instead of ICEing.
11096
11097 2008-01-02  Arthur Norman <acn1@cam.ac.uk>
11098
11099         PR target/34013
11100         * config/i386/i386.c (ix86_expand_prologue): Save red-zone
11101         while stack probing.
11102
11103 2008-01-01  Douglas Gregor  <doug.gregor@gmail.com>
11104
11105         * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
11106         in C++0x mode.
11107
11108 2008-01-01  Volker Reichelt  <v.reichelt@netcologne.de>
11109
11110         PR libmudflap/26442
11111         * tree-mudflap.c (mx_register_decls): Guard warning by
11112         !DECL_ARTIFICIAL check.
11113
11114 2008-01-01  Jakub Jelinek  <jakub@redhat.com>
11115
11116         * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
11117         sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
11118         sse5_perm<mode>): Fix constraints.