OSDN Git Service

b42de54c2c472dc5899609e3cc287aa881cae4d5
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2008-06-03  Richard Guenther  <rguenther@suse.de>
2
3         * tree-ssa-structalias.c (find_func_aliases): Add constraints
4         for the lhs of calls if the return type contains pointers.
5
6 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
7
8         * doc/tm.texi (OVERRIDE_ABI_FORMAT): New.
9         * doc/extend.texi (ms_abi,sysv_abi): New attribute description.
10         * function.c (allocate_struct_function): Use of
11         OVERRIDE_ABI_FORMAT.
12         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Make use
13         of cfun and DEFAULT_ABI to deceide abi mode.
14         (DEFAULT_ABI): New.
15         (REG_PARM_STACK_SPACE): Removed.
16         (OUTGOING_REG_PARM_STACK_SPACE): Removed.
17         (STACK_BOUNDARY): Use default target to deceide stack boundary.
18         * config/i386/i386-protos.h (ix86_cfun_abi): New.
19         (ix86_function_abi): Likewise.
20         (ix86_function_type_abi): Likewise.
21         (ix86_call_abi_override): Likewise.
22         * confid/i386/i386.md (SSE_REGPARM_MAX): Replaced by abi
23         specific define X86_64_SSE_REGPARM_MAX/X64_SSE_REGPARM_MAX.
24         * config/i386/i386.c (override_options): Replace TARGET_64BIT_MS_ABI.
25         (X86_64_VARARGS_SIZE): Replace REGPARM_MAX and SSE_REGPARM_MAX by abi
26         specific defines.
27         (X86_64_REGPARM_MAX): New.
28         (X86_64_SSE_REGPARM_MAX): New.
29         (X64_REGPARM_MAX): New.
30         (X64_SSE_REGPARM_MAX): New.
31         (X86_32_REGPARM_MAX): New.
32         (X86_32_SSE_REGPARM_MAX): New.
33         (ix86_handle_cconv_attribute): Replace TARGET_64BIT_MS_ABI.
34         (ix86_function_regparm): Handle user calling abi.
35         (ix86_function_arg_regno_p): Replace TARGET_64BIT_MS_ABI
36         by DEFAULT_ABI versus SYSV_ABI check.
37         (ix86_reg_parm_stack_space): New.
38         (ix86_function_type_abi): New.
39         (ix86_call_abi_override): New.
40         (ix86_function_abi): New.
41         (ix86_cfun_abi): New.
42         (init_cumulative_args): Call abi specific initialization.
43         (function_arg_advance): Remove TARGET_64BIT_MS_ABI.
44         (function_arg_64): Extend SSE_REGPARM_MAX check.
45         (function_arg (): Remove TARGET_64BIT_MS_ABI.
46         (ix86_pass_by_reference): Likewise.
47         (ix86_function_value_regno_p): Likewise.
48         (function_value_64): Replace REGPARM_MAX, and SSE_REGPARM_MAX.
49         (ix86_function_value_1): Replace TARGET_64BIT_MS_ABI.
50         (return_in_memory_ms_64): Replace TARGET_64BIT_MS_ABI.
51         (ix86_build_builtin_va_list): Replace TARGET_64BIT_MS_ABI.
52         (setup_incoming_varargs_64): Adjust regparm for call abi.
53         (ix86_setup_incoming_varargs): Replace TARGET_64BIT_MS_ABI.
54         (ix86_va_start): Likewise.
55         (ix86_gimplify_va_arg): Likewise.
56         (ix86_expand_prologue): Likewise.
57         (output_pic_addr_const): Likewise.
58         (ix86_init_machine_status): Initialize call_abi by DEFAULT_ABI.
59         (x86_this_parameter): Replace TARGET_64BIT_MS_ABI.
60         (x86_output_mi_thunk): Likewise.
61         (x86_function_profiler): Likewise.
62         * config/i386/i386.h (TARGET_64BIT_MS_ABI): Use ix64_cfun_abi.
63         (SYSV_ABI, MS_ABI): New constants.
64         (DEFAULT_ABI): New.
65         (init_regs): Add prototype of function in regclass.c file.
66         (OVERRIDE_ABI_FORMAT): New.
67         (CONDITIONAL_REGISTER_USAGE): Remove TARGET_64BIT_MS_ABI part.
68         (REG_PARM_STACK_SPACE): Use ix86_reg_parm_stack_space.
69         (OUTGOING_REG_PARM_STACK_SPACE): New.
70         (ix86_reg_parm_stack_space): New prototype.
71         (CUMULATIVE_ARGS): Add call_abi member.
72         (machine_function): Add call_abi member.
73         * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Replace TARGET_64BIT_MS_ABI
74         by DEFAULT_ABI compare to MS_ABI.
75
76 2008-06-02  Andy Hutchinson  <hutchinsonandy@aim.com> 
77
78         PR target/34879
79         * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Redefine.
80         (avr_builtin_setjmp_frame_value): New function.
81         * config/avr/avr.md (nonlocal_goto_receiver): Define.
82         (nonlocal_goto): Define.
83
84 2008-06-02  Richard Sandiford  <rdsandiford@googlemail.com>
85
86         * config/mips/mips.c (mips_emit_loadgp): Return early if
87         there is nothing do to, otherwise emit a blockage if
88         !TARGET_EXPLICIT_RELOCS || crtl->profile.
89         * config/mips/mips.md (loadgp_blockage): Use SI rather than DI.
90
91 2008-06-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92
93         * configure.ac: Drop unneeded backslash ending up in config.in.
94         * acinclude.m4: Likewise.
95         * config.in: Regenerate.
96
97 2008-05-26  Jan Hubicka  <jh@suse.cz>
98
99         * predict.c (maybe_hot_frequency_p): Break out of...
100         (maybe_hot_bb_p): ... here.
101         (maybe_hot_edge_p): New.
102         * tree-ssa-coalesce.c (coalesce_cost_edge): Compute cost based on edge.
103         * basic-block.h (maybe_hot_edge_p): Declare.
104
105 2008-05-31  Uros Bizjak  <ubizjak@gmail.com>
106
107         * config/i386/i386.md (*cmpfp_<mode>): Enable for optimize_size.
108         (*cmpfp_<mode>_cc): Ditto.
109         (*fp_jcc_8<mode>_387): Ditto.
110         (*fop_<MODEF:mode>_2_i387): Ditto.
111         (*fop_<MODEF:mode>_3_i387): Ditto.
112         (*fop_xf_2_i387): Ditto.
113         (*fop_xf_3_i387): Ditto.
114
115 2008-06-02  Tomas Bily  <tbily@suse.cz>
116
117         * tree-ssa-ifcombine.c (get_name_for_bit_test): Use CONVERT_EXPR_P.
118
119 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
120
121         * config/mips/mips.c (mips_valid_offset_p): New function.
122         (mips_valid_lo_sum_p): Likewise.
123         (mips_classify_address): Use them.
124         (mips_force_address): New function.
125         (mips_legitimize_address): Use it.
126         * config/mips/mips.md (MOVE128): New mode iterator.
127         (movtf): Require TARGET_64BIT.  Remove empty strings.
128         (*movtf_internal): Rename to...
129         (*movtf): ...this and require !TARGET_MIPS16.  Use "m" instead
130         of "R" and use {,fp}{load,store} attributes instead of "multi".
131         Use a separate define_split.
132         (*movtf_mips16): New pattern.
133
134 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
135
136         * config/mips/mips-protos.h (mips_expand_before_return): Declare.
137         * config/mips/mips.c (mips_expand_before_return): New function.
138         (mips_expand_epilogue): Call it.
139         * config/mips/mips.md (return): Turn into a define_expand.
140         (*return): New insn.
141
142 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
143
144         * rtl.h (emit_clobber, gen_clobber, emit_use, gen_use): Declare.
145         * emit-rtl.c (emit_clobber, gen_clobber, emit_use, gen_use): New
146         functions.  Do not emit uses and clobbers of CONCATs; individually
147         use and clobber their operands.
148         * builtins.c (expand_builtin_setjmp_receiver): Use emit_clobber,
149         gen_clobber, emit_use and gen_use.
150         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
151         (expand_builtin_return): Likewise.
152         * cfgbuild.c (count_basic_blocks): Likewise.
153         * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
154         * explow.c (emit_stack_restore): Likewise.
155         * expmed.c (extract_bit_field_1): Likewise.
156         * expr.c (convert_move, emit_move_complex_parts): Likewise.
157         (emit_move_multi_word, store_constructor): Likewise.
158         * function.c (do_clobber_return_reg, do_use_return_reg): Likewise.
159         (thread_prologue_and_epilogue_insns): Likewise.
160         * lower-subreg.c (resolve_simple_move): Likewise.
161         * optabs.c (widen_operand, expand_binop): Likewise.
162         (expand_doubleword_bswap, emit_no_conflict_block): Likewise.
163         * reload.c (find_reloads): Likewise.
164         * reload1.c (eliminate_regs_in_insn): Likewise.
165         * stmt.c (expand_nl_goto_receiver): Likewise.
166         * config/alpha/alpha.md (builtin_longjmp): Likewise.
167         * config/arc/arc.md (*movdi_insn, *movdf_insn): Likewise.
168         * config/arm/arm.c (arm_load_pic_register): Likewise.
169         (thumb1_expand_epilogue, thumb_set_return_address): Likewise.
170         * config/arm/arm.md (untyped_return): Likewise.
171         * config/arm/linux-elf.h (PROFILE_HOOK): Likewise.
172         * config/avr/avr.c (expand_prologue): Likewise.
173         * config/bfin/bfin.c (do_unlink): Likewise.
174         * config/bfin/bfin.md (<optab>di3, adddi3, subdi3): Likewise.
175         * config/cris/cris.c (cris_expand_prologue): Likewise.
176         * config/darwin.c (machopic_indirect_data_reference): Likewise.
177         (machopic_legitimize_pic_address): Likewise.
178         * config/frv/frv.c (frv_frame_access, frv_expand_epilogue): Likewise.
179         (frv_ifcvt_modify_insn, frv_expand_mdpackh_builtin): Likewise.
180         * config/i386/i386.c (ix86_expand_vector_move_misalign): Likewise.
181         (ix86_expand_convert_uns_didf_sse): Likewise.
182         (ix86_expand_vector_init_general): Likewise.
183         * config/ia64/ia64.md (eh_epilogue): Likewise.
184         * config/iq2000/iq2000.c (iq2000_expand_epilogue): Likewise.
185         * config/m32c/m32c.c (m32c_emit_eh_epilogue): Likewise.
186         * config/m32r/m32r.c (m32r_reload_lr): Likewise.
187         (config/iq2000/iq2000.c): Likewise.
188         * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
189         (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
190         (builtin_longjmp): Likewise.
191         * config/mn10300/mn10300.md (call, call_value): Likewise.
192         * config/pa/pa.md (nonlocal_goto, nonlocal_longjmp): Likewise.
193         * config/pdp11/pdp11.md (abshi2): Likewise.
194         * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
195         * config/s390/s390.c (s390_emit_prologue): Likewise.
196         * config/s390/s390.md (movmem_long, setmem_long): Likewise.
197         (cmpmem_long, extendsidi2, zero_extendsidi2, udivmoddi4): Likewise.
198         (builtin_setjmp_receiver, restore_stack_nonlocal): Likewise.
199         * config/sh/sh.c (prepare_move_operands): Likewise.
200         (output_stack_adjust, sh_expand_epilogue): Likewise.
201         (sh_set_return_address, sh_expand_t_scc): Likewise.
202         * config/sparc/sparc.c (load_pic_register): Likewise.
203         * config/sparc/sparc.md (untyped_return, nonlocal_goto): Likewise.
204         * config/spu/spu.c (spu_expand_epilogue): Likewise.
205         * config/v850/v850.c (expand_epilogue): Likewise.
206
207 2008-05-31  Anatoly Sokolov  <aesok@post.ru>
208
209         * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): New constants.
210         (UNSPECV_WRITE_SP_IRQ_OFF): (Ditto.).
211         (movhi_sp_r_irq_off, movhi_sp_r_irq_on): New insn.
212         * config/avr/avr.c (expand_prologue, expand_epilogue): Use 
213         movhi_sp_r_irq_off and movhi_sp_r_irq_on insns for writing to the 
214         stack pointer register.
215         (output_movhi): Remove code for interrupt specific writing to the 
216         stack pointer register.
217
218 2008-05-31  Richard Guenther  <rguenther@suse.de>
219
220         PR tree-optimization/34244
221         * fold-const.c (tree_expr_nonnegative_warnv_p): Do not ask VRP.
222         (tree_expr_nonzero_warnv_p): Likewise.
223         * tree-vrp.c (vrp_expr_computes_nonnegative): Call
224         ssa_name_nonnegative_p.
225         (vrp_expr_computes_nonzero): Call ssa_name_nonzero_p.
226         (extract_range_from_unary_expr): Use vrp_expr_computes_nonzero,
227         not tree_expr_nonzero_warnv_p.
228
229         PR tree-optimization/36262
230         Revert
231         2007-11-29  Zdenek Dvorak  <ook@ucw.cz>
232
233         PR tree-optimization/34244
234         * tree-vrp.c (adjust_range_with_scev): Clear scev cache.
235         (record_numbers_of_iterations): New function.
236         (execute_vrp): Cache the numbers of iterations of loops.
237         * tree-scalar-evolution.c (scev_reset_except_niters):
238         New function.
239         (scev_reset): Use scev_reset_except_niters.
240         * tree-scalar-evolution.h (scev_reset_except_niters): Declare.
241
242 2008-05-31  Bernd Schmidt  <bernd.schmidt@analog.com>
243
244         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
245         __WORKAROUND_RETS when appropriate.
246
247 2008-05-31  Uros Bizjak  <ubizjak@gmail.com>
248
249         * config/i386/i386.md (*fop_<mode>_comm_mixed): Macroize from
250         *fop_sf_comm_mixed and *fop_df_comm_mixed insn patterns using MODEF
251         mode iterator.
252         (*fop_<mode>_comm_sse): Macroize from *fop_sf_comm_sse and
253         *fop_df_comm_sse insn patterns using MODEF mode iterator.
254         (*fop_<mode>_comm_i387): Macroize from *fop_sf_comm_i387 and
255         *fop_df_comm_i387 insn patterns using MODEF mode iterator.
256         (*fop_<mode>_1_mixed): Macroize from *fop_sf_1_mixed and
257         *fop_df_1_mixed insn patterns using MODEF mode iterator.
258         (*fop_<mode>_1_sse): Macroize from *fop_sf_1_sse and
259         *fop_df_1_sse insn patterns using MODEF mode iterator.
260         (*fop_<mode>_1_i387): Macroize from *fop_sf_1_i387 and
261         *fop_df_1_i387 insn patterns using MODEF mode iterator.
262         (*fop_<MODEF:mode>_2_i387): Macroize from *fop_sf_2<mode>_i387 and
263         *fop_df_2<mode>_i387 insn patterns using MODEF mode iterator.
264         (*fop_<MODEF:mode>_3_i387): Macroize from *fop_sf_3<mode>_i387 and
265         *fop_df_3<mode>_i387 insn patterns using MODEF mode iterator.
266         (*fop_xf_2_i387): Rename from *fop_xf_2<mode>_i387.
267         (*fop_xf_3_i387): Rename from *fop_xf_3<mode>_i387.
268         (*fop_xf_4_i387): Use <MODE> for mode attribute.
269         (*fop_xf_5_i387): Ditto.
270         (*fop_xf_6_i387): Ditto.
271
272 2008-05-30  Richard Guenther  <rguenther@suse.de>
273
274         * builtins.c (build_string_literal): Avoid generating
275         a non-gimple_val result.
276
277 2008-05-30  DJ Delorie  <dj@redhat.com>
278
279         * exec-tool.in: Use an environment variable (private) instead of a
280         file (shared) as a semaphore, so as to not break parallel builds.
281
282 2008-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
283
284         * optabs.c (maybe_encapsulate_block): Remove.
285         (emit_libcall_block): Adjust accordingly.
286         * optabs.h (maybe_encapsulate_block): Remove prototype.
287
288         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address):
289         Don't use maybe_encapsulate_block.
290
291 2008-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
292
293         * config/rs6000/rs6000.c (rs6000_legitimize_address,
294         rs6000_legitimize_reload_address, rs6000_emit_move): Make sure an
295         rtx is a SYMBOL_REF before calling get_pool_constant.
296
297 2008-05-30  Eric Botcazou  <ebotcazou@adacore.com>
298
299         * fold-const.c (fold_unary) <CASE_CONVERT>: Add ??? comment.
300
301 2008-05-30  Danny Smith  <dannysmith@users.sourceforge.net>
302
303         * incpath.c: Use HOST_LACKS_INODE_NUMBERS conditional
304         rather than OS names to choose INO_T_EQ definition.
305         (DIRS_EQ) [!INO_T_EQ]: Don't worry about case in comparison.
306         (add_path) [!INO_T_EQ]: Use lrealpath to fill canonical_name field.
307
308 2008-05-29  Daniel Franke  <franke.daniel@gmail.com>
309
310         PR target/36348
311         * config/darwin-f.c: New.
312         * config/t-darwin: Added rule to build darwin-f.o.
313         * config.gcc: Defined new variable, fortran_target_objs.
314         (*-*-darwin*): Set fortran_target_objs.
315         * Makefile.in: Defined new variable FORTRAN_TARGET_OBJS.
316         * configure.ac: Substitute fortran_target_objs, set FORTRAN_TARGET_OBJS.
317         * configure: Regenerated.
318
319 2008-05-29  H.J. Lu  <hongjiu.lu@intel.com>
320
321         PR target/35771
322         * config/i386/i386.c (ix86_function_arg_boundary): Convert to
323         canonical type if needed.
324
325 2008-05-29  Eric Botcazou  <ebotcazou@adacore.com>
326
327         * tree-nested.c (check_for_nested_with_variably_modified): Fix typo.
328
329 2008-05-29  Richard Guenther  <rguenther@suse.de>
330
331         PR tree-optimization/36343
332         PR tree-optimization/36346
333         PR tree-optimization/36347
334         * tree-flow.h (clobber_what_p_points_to): Declare.
335         * tree-ssa-structalias.c (set_uids_in_ptset): Whether the
336         pointed-to variable is dereferenced is irrelevant to whether
337         the pointer can access the pointed-to variable.
338         (clobber_what_p_points_to): New function.
339         * tree-ssa-alias.c (set_initial_properties): Use it.
340         * tree-ssa.c (verify_flow_sensitive_alias_info): Adjust
341         call clobber check for NMTs.
342
343 2008-05-28  Seongbae Park  <seongbae.park@gmail.com>
344         
345         * value-prof.c (tree_ic_transform): Use HOST_WIDEST_INT_PRINT_DEC
346         for printing gcov_type.
347
348 2008-05-28  Seongbae Park  <seongbae.park@gmail.com>
349
350         * tree-ssa-propagate.c (set_rhs): Preserve the histogram
351         and the eh region information.
352         * value-prof.c (gimple_move_stmt_histograms): New function.
353         * value-prof.h (gimple_move_stmt_histograms): New function declaration.
354
355 2008-05-28  Andreas Tobler  <a.tobler@schweiz.org>
356
357         * config/pa/pa.md: Remove extern frame_pointer_needed declaration.
358
359 2008-05-28  Seongbae Park <seongbae.park@gmail.com>
360
361         * value-prof.c (tree_ic_transform): Print counts.
362         * tree-profile.c (tree_gen_ic_func_profiler):
363         Clear __gcov_indreict_call_callee variable to avoid misattribution
364         of the profile.
365
366 2008-05-28  Rafael Espindola  <espindola@google.com>
367
368         * see.c (see_def_extension_not_merged): Use copy_rtx_if_shared to avoid
369         invalid sharing.
370
371 2008-05-28  Richard Guenther  <rguenther@suse.de>
372
373         PR tree-optimization/36339
374         * tree-ssa-alias.c (set_initial_properties): Move pt_anything
375         and clobbering code out of the loop.
376
377 2008-05-28  Andreas Krebbel  <krebbel1@de.ibm.com>
378
379         * config/s390/constraints.md ('b', 'C', 'D', 'e'): New constraint
380         letters defined.
381
382         * config/s390/s390.c (s390_compare_and_branch_condition_mask,
383         s390_contiguous_bitmask_p, s390_symref_operand_p,
384         s390_check_symref_alignment, s390_reload_larl_operand,
385         s390_reload_symref_address): New functions.
386         (s390_branch_condition_mnemonic): Support compare and branch
387         instructions.
388         (s390_mem_constraint): Avoid symrefs to accepted by the 'T'
389         and 'W' constraints.
390         (s390_secondary_reload): Add secondary reloads for unaligned
391         symbol refs or symbol refs to floating point or QI/TI mode
392         integer values.
393         (legitimate_address_p): Accept symbol references as addresses.
394         (s390_expand_insv): Use rotate and insert selected bits
395         instruction for insv when building for z10.
396         (print_operand_address): Handle symbol ref addresses.
397         (print_operand): Output modifier 'c' added for signed byte values.
398         (s390_encode_section_info): Mark symbol refs with
399         SYMBOL_FLAG_NOT_NATURALLY_ALIGNED if appropriate.
400
401         * config/s390/s390.md (SIL,RRS,RIS): New instruction formats added.
402         (length attribute): RRF, RRR have 4 byte length.
403         (FPALL, INTALL): New mode iterators added.
404         (*tstdi_sign, *cmpdi_ccs_sign, *cmpsi_ccs_sign,
405         *cmp<mode>_ccs, *cmpdi_ccu_zero, *cmpdi_ccu, *cmpsi_ccu, *cmphi_ccu,
406         *movdi_64, *movsi_zarch, *movhi, movmem<mode>, *movmem_short,
407         *extendsidi2, *extendhidi2_extimm, *extendhisi2_extimm,
408         *zero_extendsidi2, adddi3, *adddi3_31z, *adddi3_31, addsi3,
409         *add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry2_cc,
410         *add<mode>3_cc, *add<mode>3_imm_cc, *muldi3_sign, muldi3,
411         *mulsi3_sign, mulsi3, mulsidi3): Patterns enhanced with z10
412         instructions.
413         (*cmphi_ccs_z10, *cmpdi_ccs_signhi_rl, *cmpsi_ccu_zerohi_rlsi,
414         *cmp<GPR:mode>_ccu_zerohi_rldi, *cmp_and_br_signed_<mode>,
415         *cmp_and_br_unsigned_<mode>, reload<INTALL:mode><P:mode>_tomem_z10,
416         reload<INTALL:mode><P:mode>_toreg_z10,
417         reload<FPALL:mode><P:mode>_tomem_z10,
418         reload<FPALL:mode><P:mode>_toreg_z10,
419         reload<P:mode>_larl_odd_addend_z10, *execute_rl, *insv<mode>_z10,
420         *insv<mode>_z10_noshift, *insv<mode>_or_z10_noshift,
421         *zero_extendhi<mode>2_z10, *cmp_and_trap_signed_int<mode>,
422         *cmp_and_trap_unsigned_int<mode>, prefetch): New pattern or expander
423         definition.
424         (movmem, clrmem, cmpmem): New splitters added.
425
426         * config/s390/predicates.md (larl_operand): Use
427         SYMBOL_REF_FLAGS (op) & SYMBOL_FLAG_ALIGN1 replaced with
428         SYMBOL_REF_ALIGN1_P.
429         (s390_signed_integer_comparison,
430         s390_unsigned_integer_comparison): New predicates.
431
432         * config/s390/s390-protos.h (s390_check_symref_alignment,
433         s390_contiguous_bitmask_p, s390_reload_larl_operand,
434         s390_reload_symref_address,
435         s390_compare_and_branch_condition_mask): Prototypes added.
436
437         * config/s390/s390.h (TARGET_MEM_CONSTRAINT,
438         SYMBOL_REF_ALIGN1_P, SYMBOL_FLAG_NOT_NATURALLY_ALIGNED,
439         SYMBOL_REF_NOT_NATURALLY_ALIGNED_P): Macro definition added.
440
441 2008-05-28  Andreas Krebbel  <krebbel1@de.ibm.com>
442
443         * config/s390/s390.c (z10_cost): New cost function for z10.
444         (s390_handle_arch_option, override_options): Support -march=z10 switch.
445         (s390_issue_rate): Adjust issue rate for z10.
446         * config/s390/s390.h (processor_type): Add PROCESSOR_2097_Z10.
447         (processor_flags): Add PF_Z10.
448         (TARGET_CPU_Z10, TARGET_Z10): New macro definitions.
449         * config/s390/s390.md (cpu, cpu_facility attributes): Add z10.
450         * gcc/config.gcc: Add z10.
451
452 2008-05-28  Richard Guenther  <rguenther@suse.de>
453
454         PR tree-optimization/36291
455         * tree-flow. h (struct gimple_df): Remove var_anns member.
456         * tree-flow-inline.h (gimple_var_anns): Remove.
457         (var_ann): Simplify.
458         * tree-dfa.c (create_var_ann): Simplify.
459         (remove_referenced_var): Clear alias info from var_anns of globals.
460         * tree-ssa.c (init_tree_ssa): Do not allocate var_anns.
461         (delete_tree_ssa): Clear alias info from var_anns of globals.
462         Do not free var_anns.
463         (var_ann_eq): Remove.
464         (var_ann_hash): Likewise.
465
466 2008-05-28  Mark Shinwell  <shinwell@codesourcery.com>
467
468         * config/mips/mips.c (mips_cpu_info_table): Add loongson2e
469         and loongson2f entries.
470         (mips_rtx_cost_data): Add entries for Loongson-2E/2F.
471         * config/mips/mips.h (processor_type): Add Loongson-2E
472         and Loongson-2F entries.
473         (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF): New.
474         (MIPS_ISA_LEVEL_SPEC): Handle Loongson-2E/2F.
475         * config/mips/mips.md (define_attr cpu): Add loongson2e and loongson2f.
476         * doc/invoke.texi (MIPS Options): Document loongson2e
477         and loongson2f processor names.
478
479 2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>
480
481         PR target/35767
482         PR target/35771
483         * config/i386/i386.c (ix86_function_arg_boundary): Use
484         alignment of canonical type.
485         (ix86_expand_vector_move): Check unaligned memory access for
486         all SSE modes.
487
488 2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>
489
490         * dwarf2out.c (current_fde): Change return type to dw_fde_ref.
491         Moved to the front of file.
492
493 2008-05-27  Xuepeng Guo  <xuepeng.guo@intel.com>
494             H.J. Lu  <hongjiu.lu@intel.com>
495
496         * dwarf2out.c (current_fde): New.
497         (add_cfi): Use it.
498         (lookup_cfa:): Likewise.
499         (dwarf2out_end_epilogue): Likewise.
500         (dwarf2out_note_section_used): Likewise.
501
502 2008-05-27  Michael Matz  <matz@suse.de>
503
504         PR c++/27975
505         * c.opt (Wenum-compare): New warning option.
506         * doc/invoke.texi  (Warning Options): Document -Wenum-compare.
507
508 2008-05-27  Michael Matz  <matz@suse.de>
509
510         PR middle-end/36326
511         * tree-gimple.c (is_gimple_mem_rhs): Remove work-around for
512         non-BLKmode types.
513         * tree-tailcall.c (find_tail_calls): Don't mark calls storing
514         into memory as tail calls.
515
516 2008-05-27  Richard Guenther  <rguenther@suse.de>
517
518         PR tree-optimization/36339
519         * tree-ssa-alias.c (set_initial_properties): Escaped pt_anything
520         pointers cause all addressable variables to be call clobbered.
521
522 2008-05-27  Richard Guenther  <rguenther@suse.de>
523
524         PR tree-optimization/36245
525         * tree-ssa-address.c (add_to_parts): Deal with non-pointer bases.
526
527 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
528
529         * config/s390/s390.md: Replace all occurences of the 'm'
530         constraint with 'RT'.
531
532 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
533
534         * config/s390/s390.md ("cpu_facility", "enabled"): Attribute
535         definitions added.
536         ("*movdi_64dfp", "*movdi_64extimm", "*movdi_64"): Merged into
537         "*movdi_64".
538         ("*anddi3_extimm", "*anddi3"): Merged into "*anddi3".
539         ("*iordi3_extimm", "*iordi3"): Merged into "*iordi3".
540         ("*xordi3_extimm", "*xordi3"): Merged into "*xordi3".
541
542 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
543
544         * reload.c: (find_reloads): Skip alternatives according to the
545         "enabled" attribute. Constify the constraint variable.
546         * recog.c (get_attr_enabled): Add default implementation.
547         (extract_insn): Set the alternative_enabled_p array
548         in the recog_data struct.
549         (preprocess_constraints, constrain_operands): Skip
550         alternatives according to the "enabled" attribute
551         * recog.h (struct recog_data): New field alternative_enabled_p.
552         (skip_alternative): New inline function.
553         * regclass.c: (record_operand_costs): Check the "enabled" attribute.
554         (record_reg_classes): Skip alternative according to the
555         "enabled" attribute.
556
557         * doc/md.texi: Add documention for the "enabled" attribute.
558
559 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
560
561         * defaults.h (TARGET_MEM_CONSTRAINT): New target macro added.
562         * postreload.c (reload_cse_simplify_operands): Replace 'm'
563         constraint with TARGET_MEM_CONSTRAINT.
564         * recog.c (asm_operand_ok, preprocess_constraints,
565         constrain_operands): Likewise.
566         * regclass.c (record_reg_classes): Likewise.
567         * reload.c (find_reloads, alternative_allows_const_pool_ref): Likewise.
568         * reload1.c (maybe_fix_stack_asms): Likewise.
569         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
570         * recog.h: Adjust comment.
571         * genpreds.c (generic_constraint_letters): Remove 'm' constraint.
572         * genoutput.c (note_constraint): Don't emit error for 'm' constraint.
573         * doc/md.texi: Add a note to description of 'm' constraint.
574         * doc/tm.texi: Document the new TARGET_MEM_CONSTRAINT macro.
575
576 2008-05-27  Eric Botcazou  <ebotcazou@adacore.com>
577
578         * tree-sra.c (sra_type_can_be_decomposed_p) <RECORD_TYPE>: Make sure
579         that the bitfield is of integral type before testing its precision.
580
581 2008-05-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
582             Sa Liu  <saliu@de.ibm.com> 
583
584         * config/spu/spu.c (spu_init_libfuncs): Add __multi3, __divti3, 
585         __modti3, __udivti3, __umodti3 and __udivmodti4.
586         * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add files
587         that implement TImode mul and div functions.
588         * config/spu/multi3.c: New. Implement __multi3.
589         * config/spu/divmodti4.c: New. Implement _udivmodti4 and others.
590         * testsuite/gcc.target/spu/muldivti3.c: New. Test TImode mul and div
591         functions on SPU.
592
593 2008-05-26  Steven Bosscher  <stevenb.gcc@gmail.com>
594
595         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Generate
596         new tls_gd_* and tls_ld_* insns instead of an insn sequence.
597         * config/rs6000/rs6000.md (TLSmode, tls_abi_suffix, tls_insn_suffix,
598         tls_sysv_suffix): New mode and mode attribute iterators.
599         (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64): Remove.
600         (lts_gd_aix*, tls_gd_sysv*, tls_ld_aix*, tls_ld_sysv*): New patterns.
601         (tls_dtprel_*, tls_dtprel_ha_*, tls_dtprel_lo_*, tls_got_dtprel_*,
602         tls_tprel_*, tls_tprel_ha_*, tls_tprel_lo_*, tls_got_tprel_*,
603         tls_tls_*): Merge 32 bit and 64 bit variants using aforementioned
604         iterators.
605
606 2008-05-26  Eric Botcazou  <ebotcazou@adacore.com>
607
608         PR tree-optimization/36329
609         * tree.h (CALL_CANNOT_INLINE_P): Add access check.
610         * tree-gimple.h (CALL_STMT_CANNOT_INLINE_P): New macro.
611         * cgraphbuild.c (initialize_inline_failed): Use the latter
612         macro in lieu of the former.
613         * ipa-inline.c (cgraph_mark_inline): Likewise.
614         (cgraph_decide_inlining_of_small_function): Likewise.
615         (cgraph_decide_inlining): Likewise.
616         (cgraph_decide_inlining_incrementally): Likewise.
617
618 2008-05-26  Tristan Gingold  <gingold@adacore.com>
619             Anatoly Sokolov  <aesok@post.ru>
620
621         * config/avr/avr.md ("call_prologue_saves"): Use hi8(gs())/lo8(gs())
622         instead of pm_lo8/pm_hi8 to makes this call working on avr6.
623         * config/avr/avr.c (expand_prologue): Tune "call_prologue" 
624         optimization for 'avr6' architecture.
625
626 2008-05-26  Andy Hutchinson  <hutchinsonandy@aim.com>
627
628         PR target/34932
629         * config/avr/avr.md (*addhi3_zero_extend2): Remove.
630
631 2008-05-26  Richard Guenther  <rguenther@suse.de>
632
633         * tree-ssa-sccvn.c (expr_has_constants): Declare.
634         (visit_reference_op_load): Initialize VN_INFO->has_constants properly.
635
636 2008-05-26  H.J. Lu  <hongjiu.lu@intel.com>
637
638         PR middle-end/36253
639         * caller-save.c (insert_restore): Verify alignment of spill space.
640         (insert_save): Likewise.
641         * cfgexpand.c (LOCAL_ALIGNMENT): Removed.
642         * defaults.h (LOCAL_ALIGNMENT): New. Provide default.
643         (STACK_SLOT_ALIGNMENT): Likewise.
644         * function.c (LOCAL_ALIGNMENT): Removed.
645         (get_stack_local_alignment): New.
646         (assign_stack_local): Use it.  Set alignment on stack slot.
647         (assign_stack_temp_for_type): Use get_stack_local_alignment.
648         * config/i386/i386.h (LOCAL_ALIGNMENT): Updated.
649         (STACK_SLOT_ALIGNMENT): New.
650         * config/i386/i386.c (ix86_local_alignment): Handle caller-save
651         stack slot in XFmode.
652
653         * doc/tm.texi (STACK_SLOT_ALIGNMENT): New.
654
655 2008-05-26  Kai Tietz  <kai.tietz@onevision.com>
656
657         PR/36321
658         * config/i386/i386.md (allocate_stack_worker_64): Make sure
659         argument operand in rax isn't removed.
660
661 2008-05-26  Richard Guenther  <rguenther@suse.de>
662
663         PR middle-end/36300
664         * fold-const.c (extract_muldiv_1): Use TYPE_OVERFLOW_WRAPS,
665         not TYPE_UNSIGNED.  Use TYPE_PRECISION instead of GET_MODE_SIZE.
666
667 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
668
669         PR bootstrap/36331
670         * c-cppbuiltin.c (define__GNUC__): Re-add definition of __GNUG__.
671
672 2008-05-26  Dominique Dhumieres  <dominiq@lps.ens.fr>
673
674         * config/darwin-c.c: Include "incpath.h" instead of "c-incpath.h".
675         * config/t-darwin: Use "incpath.h" instead of "c-incpath.h".
676
677 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
678
679         * tree-nested.c (convert_tramp_reference) <ADDR_EXPR>: Do not
680         build a trampoline if we don't want one.
681         * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Do not
682         return zero for nested functions if we don't want a trampoline.
683
684 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
685
686         * doc/invoke.texi: Added f77, f77-cpp-input to list of file types.
687
688 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
689
690         PR fortran/18428
691         * c.opt: Removed undocumented option '-lang-fortran'.
692         * c-common.h: Removed global variable 'lang_fortran'.
693         * c-opts.c (c_common_handle_option): Removed code to handle
694         option '-lang-fortran'. Updated includes.
695         * c-cppbuiltin.c (c_cpp_builtins): Removed conditional
696         definition of '__GFORTRAN__'.
697         (define__GNUC__): Reimplemented to use BASEVER and
698         cpp_define_formatted.
699         (builtin_define_with_value_n): Removed.
700         * c-incpath.h: Renamed to ...
701         * incpath.h: ... this.
702         * c-incpath.c: Renamed to ...
703         * incpath.c: ... this. Updated includes.
704         * fix-header.c: Updated includes.
705         * Makefile.in: Replaced c-incpath.[ch] by incpath.[ch].
706         (c-cppbuiltin.o): Added dependency on and definition of BASEVER.
707         (OBJ-archive): Added cppdefault.o, incpath.o and prefix.o.
708
709 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
710
711         * tree.h: Update the table of flags used on tree nodes.
712         (TREE_NO_TRAMPOLINE): New accessor for static_flag.
713         (SAVE_EXPR_RESOLVED_P): Use automatically-built access check.
714         (FORCED_LABEL): Add access check.
715         (CALL_EXPR_RETURN_SLOT_OPT): Likewise.
716         (ASM_INPUT_P): Likewise.
717         (ASM_VOLATILE_P): Likewise.
718         (EH_FILTER_MUST_NOT_THROW): Access static_flag directly.
719         (OMP_SECTION_LAST): Access private_flag directly.
720         (OMP_RETURN_NOWAIT): Likewise.
721         (OMP_PARALLEL_COMBINED): Likewise.
722         (OMP_CLAUSE_PRIVATE_DEBUG): Access public_flag directly.
723         (OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE): Likewise.
724         * tree-ssa-propagate.c (STMT_IN_SSA_EDGE_WORKLIST): Access
725         deprecated_flag directly.
726
727 2008-05-25  H.J. Lu  <hongjiu.lu@intel.com>
728
729         * final.c (frame_pointer_needed): Removed.
730         * flags.h (frame_pointer_needed): Likewise.
731
732         * function.h (rtl_data): Add frame_pointer_needed.
733         (frame_pointer_needed): New.
734
735 2008-05-25  Arthur Loiret  <arthur.loiret@u-psud.fr>
736
737         * config.gcc (sh2[lbe]*-*-linux*): Allow target.
738
739 2008-05-25  Steven Bosscher  <stevenb.gcc@gmail.com>
740
741         * gcse.c (hash_scan_set): Do not pick up a REG_EQUAL value if
742         SRC is a REG.
743
744 2008-05-25  Alan Modra  <amodra@bigpond.net.au>
745
746         * c-common.c (strip_array_types): Move function to..
747         * tree.c: ..here.
748         (get_inner_array_type): Delete.
749         * c-common.h (strip_array_types): Move declaration to..
750         * tree.h: ..here.
751         (get_inner_array_type): Delete.
752         * config/i386/i386.c (x86_field_alignment): Use strip_array_types.
753         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
754         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
755         * config/pa/pa.c (emit_move_sequence): Likewise.
756
757 2008-05-24  H.J. Lu  <hongjiu.lu@intel.com>
758
759         * config/i386/i386.md (*sse_prologue_save_insn): Set length
760         attribute to 34.
761
762 2008-05-24  Andy Hutchinson  <hutchinsonandy@aim.com>
763
764         * function.c: Include target hook for nonlocal_goto frame value.
765
766 2008-05-24  Richard Guenther  <rguenther@suse.de>
767
768         * tree-dfa.c (refs_may_alias_p): Re-instantiate case that a scalar
769         variable can be only accessed through a pointer or a union.
770
771 2008-05-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
772
773         * builtins.c (fold_builtin_fpclassify): Fix spelling of FP_INFINITE.
774         * doc/extend.texi: Likewise.
775
776 2008-05-23  DJ Delorie  <dj@redhat.com>
777
778         * config/m32c/jump.md (untyped_call): Add.
779
780         * config/m32c/m32c.c (m32c_return_addr_rtx): Change pointer type
781         for A24 to PSImode.
782         (m32c_address_cost): Detail costs for indirect offsets.
783
784 2008-05-23  Rafael Espindola  <espindola@google.com>
785
786         * see.c (see_get_extension_data): Don't use SUBREG_REG to test
787         if a node is a SUBREG.
788         (see_analyze_one_def): Don't use SUBREG_REG to test if a node
789         is a SUBREG.
790
791 2008-05-23  Paul Brook  <paul@codesourcery.com>
792             Carlos O'Donell  <carlos@codesourcery.com>
793
794         * doc/extend.texi: Clarify use of __attribute__((naked)).
795         * doc/tm.texi: Document TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
796         * target.h (gcc_target): Add allocate_stack_slots_for_args.
797         * function.c (use_register_for_decl): Use
798         targetm.calls.allocate_stack_slots_for_args.
799         * target-def.h (TARGET_CALLS): Add TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
800         * config/arm/arm.c (arm_allocate_stack_slots_for_args): New function.
801         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
802
803 2008-05-23  Eric Botcazou  <ebotcazou@adacore.com>
804
805         * expr.c (highest_pow2_factor) <BIT_AND_EXPR>: New case.
806
807 2008-05-23  Steven Munroe  <sjmunroe@us.ibm.com>
808
809         * config/rs6000/darwin-ldouble.c (fmsub): Eliminate the full
810         PACK/UNPACK between FP_SUB_Q and FD_TRUNC so that the result
811         is only rounded once.
812
813 2008-05-23  Richard Guenther  <rguenther@suse.de>
814
815         * tree-ssa-operands.c (mark_difference_for_renaming): Use bitmap_xor.
816
817 2008-05-23  Uros Bizjak  <ubizjak@gmail.com>
818             Jakub Jelinek  <jakub@redhat.com>
819
820         PR target/36079
821         * configure.ac: Handle --enable-cld.
822         * configure: Regenerated.
823         * config.gcc: Add USE_IX86_CLD to tm_defines for x86 targets.
824         * config/i386/i386.h (struct machine_function): Add needs_cld field.
825         (ix86_current_function_needs_cld): New define.
826         * config/i386/i386.md (UNSPEC_CLD): New unspec volatile constant.
827         (cld): New isns pattern.
828         (strmov_singleop, rep_mov, strset_singleop, rep_stos, cmpstrnqi_nz_1,
829         cmpstrnqi_1, strlenqi_1): Set ix86_current_function_needs_cld flag.
830         * config/i386/i386.opt (mcld): New option.
831         * config/i386/i386.c (ix86_expand_prologue): Emit cld insn if
832         TARGET_CLD and ix86_current_function_needs_cld.
833         (override_options): Use -mcld by default for 32-bit code if
834         USE_IX86_CLD.
835
836         * doc/install.texi (Options specification): Document --enable-cld.
837         * doc/invoke.texi (Machine Dependent Options)
838         [i386 and x86-64 Options]: Add -mcld option.
839         (Intel 386 and AMD x86-64 Options): Document -mcld option.
840
841 2008-05-23  Kai Tietz  <kai.tietz@onevison.com>
842         * config/i386/i386.c (return_in_memory_32): Add ATTRIBUTE_UNUSED.
843         (return_in_memory_64): Likewise.
844         (return_in_memory_ms_64): Likewise.
845
846 2008-05-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
847
848         * builtin-types.def (BT_FN_INT_INT_INT_INT_INT_INT_VAR): New.
849         * builtins.c (fold_builtin_fpclassify): New.
850         (fold_builtin_varargs): Handle BUILT_IN_FPCLASSIFY.
851         * builtins.def (BUILT_IN_FPCLASSIFY): New.
852         * c-common.c (handle_type_generic_attribute): Adjust to accept
853         fixed arguments before an elipsis.
854         (check_builtin_function_arguments): Handle BUILT_IN_FPCLASSIFY.
855         * doc/extend.texi: Document __builtin_fpclassify.
856
857 2008-05-22  Aldy Hernandez  <aldyh@redhat.com>
858
859         * omp-low.c (gate_expand_omp_ssa): Remove.
860         (pass_expand_omp_ssa): Remove.
861         (gate_expand_omp): Do not check for flag_openmp_ssa.
862         * common.opt (-fopenmp-ssa): Remove.
863         * passes.c (init_optimization_passes): Remove pass_expand_omp_ssa.
864
865 2008-05-22  Kaz Kojima  <kkojima@gcc.gnu.org>
866
867         * config/sh/sh.opt (mfixed-range): New option.
868         * config/sh/sh-protos.h (sh_fix_range): Declare.
869         * config/sh/sh.c (sh_fix_range): New function.
870         * config/sh/sh.h (sh_fixed_range_str): Declare.
871         (OVERRIDE_OPTIONS): Call sh_fix_range if sh_fixed_range_str
872         is not empty.
873         * doc/invoke.texi (SH Options): Document -mfixed-range.
874
875 2008-05-22  Kai Tietz  <kai.tietz@onevision.com>
876
877         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Undefine
878         it before the redeclaration.
879
880 2008-05-22  Anatoly Sokolov <aesok@post.ru>
881
882         * config/avr/avr.c (get_sequence_length): Add new function.
883         (expand_prologue, expand_epilogue): Remove duplicate code.
884
885 2008-05-22  Rafael Espindola  <espindola@google.com>
886
887         * see.c (see_pre_insert_extensions): Use copy_rtx to avoid invalid rtx
888         sharing.
889
890 2008-05-22  H.J. Lu  <hongjiu.lu@intel.com>
891
892         * defaults.h (UNITS_PER_SIMD_WORD): Add scalar mode as argument.
893         * doc/tm.texi (UNITS_PER_SIMD_WORD): Likewise.
894
895         * tree-vect-analyze.c (vect_compute_data_ref_alignment): Replace
896         UNITS_PER_SIMD_WORD with GET_MODE_SIZE (TYPE_MODE (vectype)).
897         (vect_update_misalignment_for_peel): Likewise.
898         (vector_alignment_reachable_p): Likewise.
899         * tree-vect-transform.c (vectorizable_load): Likewise.
900         * tree-vectorizer.c (vect_supportable_dr_alignment): Likewise.
901         (get_vectype_for_scalar_type): Pass mode of scalar_type
902         to UNITS_PER_SIMD_WORD.
903
904         * config/arm/arm.h (UNITS_PER_SIMD_WORD): Updated.
905         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
906         * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
907         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
908         * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
909
910 2008-05-22  Ira Rosen  <irar@il.ibm.com>
911
912         PR tree-optimization/36293
913         * tree-vect-transform.c (vect_transform_strided_load): Don't check
914         if the first load must be skipped because of a gap.
915
916 2008-05-22  Richard Guenther  <rguenther@suse.de>
917
918         * tree-dfa.c (refs_may_alias_p): Exit early if possible.  Handle
919         more cases of offset disambiguation that is possible if
920         strict-aliasing rules apply.
921         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use refs_may_alias_p
922         for basic offset and type-based disambiguation.
923
924 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
925
926         * config/i386/i386.c (ix86_expand_vector_init_one_var): Use
927         ix86_expand_vector_set on V16QImode for SSE4.1.
928
929 2008-05-21  Tom Tromey  <tromey@redhat.com>
930
931         * c.opt (Wimport): Mark as undocumented.
932         * doc/invoke.texi (Option Summary): Don't mention -Wimport or
933         -Wno-import.
934         (Warning Options): Likewise.
935         * doc/cppopts.texi: Don't mention -Wimport.
936
937 2008-05-21  Sebastian Pop  <sebastian.pop@amd.com>
938
939         PR tree-optimization/36287
940         PR tree-optimization/36286
941         * lambda-code.c (build_access_matrix): Do not use the loop->num
942         for computing the number of induction variables: use the loop depth
943         instead.
944
945 2008-05-21  Kai Tietz  <kai.tietz@onevision.com>
946
947         PR/36280
948         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Honor
949         option -f(no-)leading-underscore.
950
951 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
952
953         * config/i386/i386.c (ix86_expand_vector_init_general): Use
954         GET_MODE_NUNITS (mode).
955
956 2008-05-21  Peter Bergner  <bergner@vnet.ibm.com>
957
958         * doc/invoke.texi: Add cpu_type's 464 and 464fp.
959         (-mmulhw): Add 464 to description.
960         (-mdlmzb): Likewise.
961         * config.gcc: Handle --with-cpu=464 and --with-cpu=464fp.
962         * config/rs6000/rs6000.c (processor_target_table): Add 464 and
963         464fp entries.
964         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 464 and 464fp support.
965         * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=464.
966         * config/rs6000/rs6000.md: Update comments for 464.
967
968 2008-05-21  Janis Johnson  <janis187@us.ibm.com>
969
970         * doc/sourcebuild.texi (Test Directives): Add dg-xfail-run-if.
971
972 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
973
974         * config/i386/sse.md (vec_extractv4sf): Removed.
975         (vec_extractv2df): Likewise.
976         (vec_extractv2di): Likewise.
977         (vec_extractv4si): Likewise.
978         (vec_extractv8hi): Likewise.
979         (vec_extractv16qi): Likewise.
980         (vec_extract<mode>): New.
981
982 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
983
984         * config/i386/sse.md (vec_setv4sf): Removed.
985         (vec_setv2df): Likewise.
986         (vec_setv2di): Likewise.
987         (vec_setv4si): Likewise.
988         (vec_setv8hi): Likewise.
989         (vec_setv16qi): Likewise.
990         (vec_set<mode>): New.
991
992 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
993
994         * config/i386/i386.c (ix86_expand_vector_init_general): Remove
995         goto for vec_concat and vec_interleave.
996
997 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
998
999         * config/i386/sse.md (vec_initv4sf): Removed.
1000         (vec_initv2df): Likewise.
1001         (vec_initv2di): Likewise.
1002         (vec_initv4si): Likewise.
1003         (vec_initv8hi): Likewise.
1004         (vec_initv16qi): Likewise.
1005         (vec_init<mode>): New.
1006
1007 2008-05-21  Joseph Myers  <joseph@codesourcery.com>
1008
1009         * collect2.c (find_a_file): Use IS_ABSOLUTE_PATH.
1010
1011 2008-05-21  Tom Tromey  <tromey@redhat.com>
1012
1013         * ggc-zone.c (lookup_page_table_if_allocated): New function.
1014         (zone_find_object_offset): Likewise.
1015         (gt_ggc_m_S): Likewise.
1016         (highest_bit): Likewise.
1017         * ggc-page.c (gt_ggc_m_S): New function.
1018         * stringpool.c (string_stack): Remove.
1019         (init_stringpool): Update.
1020         (ggc_alloc_string): Use ggc_alloc.
1021         (maybe_delete_ident): New function.
1022         (ggc_purge_stringpool): Likewise.
1023         (gt_ggc_m_S): Remove.
1024         * ggc-common.c (ggc_protect_identifiers): New global.
1025         (ggc_mark_roots): Call ggc_purge_stringpool.  Use
1026         ggc_protect_identifiers.
1027         * ggc.h (ggc_protect_identifiers): Declare.
1028         (gt_ggc_m_S): Update.
1029         (ggc_purge_stringpool): Declare.
1030         * toplev.c (compile_file): Set and reset ggc_protect_identifiers.
1031         * gengtype.c (write_types_process_field) <TYPE_STRING>: Remove
1032         special case.
1033         (write_root): Cast gt_ggc_m_S to gt_pointer_walker.
1034
1035 2008-05-21  David S. Miller  <davem@davemloft.net>
1036
1037         * config.gcc (sparc-*-linux*): Always include sparc/t-linux in
1038         tmake_file.
1039
1040 2008-05-21  Eric Botcazou  <ebotcazou@adacore.com>
1041
1042         * cfgexpand.c (tree_expand_cfg): Zap the EH throw statement table
1043         once finished.
1044
1045 2008-05-20  David Daney  <ddaney@avtrex.com>
1046
1047         * config/mips/mips.md (UNSPEC_SYNC_NEW_OP_12,
1048         UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE_12): New define_constants.
1049         (UNSPEC_SYNC_EXCHANGE, UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
1050         UNSPEC_UPDATE_GOT_VERSION): Renumber.
1051         (optab, insn): Add 'plus' and 'minus' to define_code_attr.
1052         (atomic_hiqi_op): New define_code_iterator.
1053         (sync_compare_and_swap<mode>): Call mips_expand_atomic_qihi instead of
1054         mips_expand_compare_and_swap_12.
1055         (compare_and_swap_12): Use MIPS_COMPARE_AND_SWAP_12 instead of
1056         MIPS_COMPARE_AND_SWAP_12_0.  Pass argument to MIPS_COMPARE_AND_SWAP_12.
1057         (sync_<optab><mode>, sync_old_<optab><mode>,
1058         sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
1059         sync_new_nand<mode>): New define_expands for HI and QI mode operands.
1060         (sync_<optab>_12, sync_old_<optab>_12, sync_new_<optab>_12,
1061         sync_nand_12, sync_old_nand_12, sync_new_nand_12): New insns.
1062         (sync_lock_test_and_set<mode>): New define_expand for HI and QI modes.
1063         (test_and_set_12): New insn.
1064         (sync_old_add<mode>, sync_new_add<mode>, sync_old_<optab><mode>,
1065         sync_new_<optab><mode>, sync_old_nand<mode>,
1066         sync_new_nand<mode>, sync_lock_test_and_set<mode>):  Add early
1067         clobber to operand 0 for SI and DI mode insns.
1068         * config/mips/mips-protos.h (mips_gen_fn_6, mips_gen_fn_5,
1069         mips_gen_fn_4): New typedefs.
1070         (mips_gen_fn_ptrs): Define new union type.
1071         (mips_expand_compare_and_swap_12): Remove declaration.
1072         (mips_expand_atomic_qihi): Declare function.
1073         * config/mips/mips.c (mips_expand_compare_and_swap_12): Rename to...
1074         (mips_expand_atomic_qihi): ... this.  Use new generator function
1075         parameter.
1076         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): Add OPS parameter.
1077         (MIPS_COMPARE_AND_SWAP_12_0): Delete macro.
1078         (MIPS_COMPARE_AND_SWAP_12_ZERO_OP, MIPS_COMPARE_AND_SWAP_12_NONZERO_OP,
1079         MIPS_SYNC_OP_12, MIPS_SYNC_OP_12_NOT_NOP,
1080         MIPS_SYNC_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12,
1081         MIPS_SYNC_OLD_OP_12_NOT_NOP, MIPS_SYNC_OLD_OP_12_NOT_NOP_REG,
1082         MIPS_SYNC_OLD_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12_NOT_NOT_REG,
1083         MIPS_SYNC_NEW_OP_12, MIPS_SYNC_NEW_OP_12_NOT_NOP,
1084         MIPS_SYNC_NEW_OP_12_NOT_NOT, MIPS_SYNC_EXCHANGE_12,
1085         MIPS_SYNC_EXCHANGE_12_ZERO_OP, MIPS_SYNC_EXCHANGE_12_NONZERO_OP):
1086         New macros.
1087
1088 2008-05-20  H.J. Lu  <hongjiu.lu@intel.com>
1089
1090         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Add
1091         the missing break.
1092
1093 2008-05-20  Anatoly Sokolov <aesok@post.ru>
1094
1095         * config/avr/avr.h (machine_function): Add 'is_OS_main' field.
1096         * config/avr/avr.c (avr_OS_main_function_p): Add new function.
1097         (avr_attribute_table): Add 'OS_main' function attribute.
1098         (avr_regs_to_save, expand_prologue, expand_epilogue): Handle
1099         functions with 'OS_main' attribute.
1100
1101 2008-05-20  Richard Guenther  <rguenther@suse.de>
1102
1103         PR tree-optimization/35204
1104         * tree-ssa-sccvn.c (extract_and_process_scc_for_name): New
1105         helper, split out from ...
1106         (DFS): ... here.  Make the DFS walk non-recursive.
1107
1108 2008-05-20  Sebastian Pop  <sebastian.pop@amd.com>
1109             Jan Sjodin  <jan.sjodin@amd.com>
1110
1111         PR tree-optimization/36181
1112         * tree-parloops.c (loop_has_vector_phi_nodes): New.
1113         (parallelize_loops): Don't parallelize when the loop has vector
1114         phi nodes.
1115
1116 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
1117             Sebastian Pop  <sebastian.pop@amd.com>
1118
1119         * tree-loop-linear.c (gather_interchange_stats): Look in the access
1120         matrix, and never look at the tree representation of the memory
1121         accesses.
1122         (linear_transform_loops): Computes parameters and access matrices.
1123         * tree-data-ref.c (compute_data_dependences_for_loop): Returns false
1124         when fails.
1125         (access_matrix_get_index_for_parameter): New.
1126         * tree-data-ref.h (struct access_matrix): New.
1127         (AM_LOOP_NEST_NUM, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
1128         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
1129         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT,
1130         am_vector_index_for_loop): New.
1131         (struct data_reference): Add field access_matrix.
1132         (DR_ACCESS_MATRIX): New.
1133         (compute_data_dependences_for_loop): Update declaration.
1134         (lambda_collect_parameters, lambda_compute_access_matrices): Declared.
1135         * lambda.h (lambda_vector_vec_p): Declared.
1136         * lambda-code.c: Depend on pointer-set.h.
1137         (lambda_collect_parameters_from_af, lambda_collect_parameters,
1138         av_for_af_base, av_for_af, build_access_matrix,
1139         lambda_compute_access_matrices): New.
1140         * Makefile.in (lambda-code.o): Depend on pointer-set.h.
1141
1142 2008-05-20  Joseph Myers  <joseph@codesourcery.com>
1143
1144         * doc/install.texi2html: Generate gcc-vers.texi in $DESTDIR not
1145         $SOURCEDIR/include.
1146
1147 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
1148             Sebastian Pop  <sebastian.pop@amd.com>
1149
1150         PR tree-optimization/36206
1151         * tree-scalar-evolution.c: Remove enum INSERT_SUPERLOOP_CHRECS,
1152         FOLD_CONVERSIONS.
1153         (instantiate_scev_1): Rename flags to fold_conversions.
1154         Do not check for INSERT_SUPERLOOP_CHRECS, keep SSA_NAMEs defined
1155         outeside instantiation_loop.
1156         * tree-chrec.h (evolution_function_is_affine_in_loop): New.
1157         (evolution_function_is_affine_or_constant_p): Removed.
1158         * tree-data-ref.c (dr_analyze_indices): Replace resolve_mixers with
1159         instantiate_scev.
1160         (analyze_siv_subscript): Pass in the loop nest number.
1161         Call evolution_function_is_affine_in_loop instead of 
1162         evolution_function_is_affine_p.
1163         (analyze_overlapping_iterations): Pass in the loop nest number.
1164
1165 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
1166             Sebastian Pop  <sebastian.pop@amd.com>
1167
1168         PR tree-optimization/36206
1169         * tree-chrec.h (chrec_fold_op): New.
1170         * tree-data-ref.c (initialize_matrix_A): Traverse NOP_EXPR, PLUS_EXPR,
1171         and other trees.
1172
1173 2008-05-20  Nathan Sidwell  <nathan@codesourcery.com>
1174
1175         * c-incpath.c (INO_T_EQ): Do not define on non-inode systems.
1176         (DIRS_EQ): New.
1177         (remove_duplicates): Do not set inode on non-inode systems.
1178         Use DIRS_EQ.
1179
1180 2008-05-20  Sandra Loosemore  <sandra@codesourcery.com>
1181
1182         * config.gcc (tm_file): Update comments about relative pathnames.
1183
1184 2008-05-20  Richard Guenther  <rguenther@suse.de>
1185
1186         * tree-ssa-reassoc.c (fini_reassoc): Use the statistics infrastructure.
1187         * tree-ssa-sccvn.c (process_scc): Likewise.
1188         * tree-ssa-sink.c (execute_sink_code): Likewise.
1189         * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
1190         * tree-vrp.c (process_assert_insertions): Likewise.
1191         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
1192         (perform_tree_ssa_dce): Likewise.
1193         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
1194         (dump_dominator_optimization_stats): Likewise.
1195         * tree-vectorizer.c (vectorize_loops): Likewise.
1196
1197 2008-05-20  Richard Guenther  <rguenther@suse.de>
1198
1199         * tree-vn.c (vn_lookup_with_vuses): Do not use the alias oracle.
1200
1201 2008-05-20  Kai Tietz  <kai.tietz@onevision.com>
1202
1203         * config/i386/i386-protos.h (ix86_return_in_memory): Removed.
1204         (ix86_i386elf_return_in_memory): Likewise.
1205         (ix86_i386interix_return_in_memory): Likewise.
1206         * config/i386/i386-interix.h (TARGET_RETURN_IN_MEMORY): Removed.
1207         (SUBTARGET_RETURN_IN_MEMORY): New.
1208         * config/i386/i386elf.h: Likewise.
1209         * config/i386/ptx4-i.h: Likewise.
1210         * config/i386/sol2-10.h: Likewise.
1211         * config/i386/sysv4.h: Likewise.
1212         * config/i386/vx-common.h: Likewise.
1213         * config/i386/i386.h (TARGET_RETURN_IN_MEMORY): Removed.
1214         * config/i386/i386.c (ix86_return_in_memory): Made static and
1215         make use of optional SUBTARGET_RETURN_IN_MEMORY macro.
1216         (ix86_i386elf_return_in_memory): Removed.
1217         (ix86_i386interix_return_in_memory): Removed.
1218         (TARGET_RETURN_IN_MEMORY): Declared within i386.c only.
1219         * target-def.h (TARGET_RETURN_IN_MEMORY): Remove protection #ifdef.
1220
1221 2008-05-20  Alexandre Oliva  <aoliva@redhat.com>
1222
1223         * cselib.c (cselib_record_sets): Use correct mode for IF_THEN_ELSE.
1224
1225 2008-05-19  Xinliang David Li  <davidxl@google.com>
1226
1227         * tree-ssa-dce.c: Revert patches of 2008-05-17 and 2008-05-18. 
1228         * opts.c: Ditto.
1229         * common.opt: Ditto.
1230         * doc/invoke.texi: Ditto.
1231
1232 2008-05-19  Eric Botcazou  <ebotcazou@adacore.com>
1233
1234         * tree.c (substitute_in_expr) <tcc_vl_exp>: Fix thinko.
1235         (substitute_placeholder_in_expr) <tcc_vl_exp>: Minor tweak.
1236
1237 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
1238
1239         * config/i386/i386.c (ix86_expand_vector_init_concat): Change
1240         sizes of operand array from 8/4 to 4/2.
1241         (ix86_expand_vector_init_general): Change size of operand array
1242         from 32 to 16.  Remove op0, op1 and half_mode.
1243
1244 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
1245
1246         * config/i386/i386.c (ix86_expand_vector_init_concat): New.
1247         (ix86_expand_vector_init_interleave): Likewise.
1248         (ix86_expand_vector_init_general): Use them.  Assert
1249         word_mode == SImode when n_words == 4.
1250
1251 2008-05-19  Uros Bizjak  <ubizjak@gmail.com>
1252
1253         * config/i386/i386.c (ix86_secondary_reload): New static function.
1254         (TARGET_SECONDARY_RELOAD): New define.
1255         * config/i386/i386.h (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
1256         * config/i386/i386.md (reload_outqi): Remove.
1257
1258 2008-05-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1259
1260         PR middle-end/35509
1261         * builtins.c (mathfn_built_in_1): Renamed from mathfn_built_in.
1262         Add `implicit' parameter.  Handle BUILT_IN_SIGNBIT.
1263         (mathfn_built_in): Rewrite in terms of mathfn_built_in_1.
1264         (fold_builtin_classify): Handle BUILT_IN_ISINF_SIGN.
1265         (fold_builtin_1): Likewise.
1266         * builtins.def (BUILT_IN_ISINF_SIGN): New.
1267         c-common.c (check_builtin_function_arguments): Handle
1268         BUILT_IN_ISINF_SIGN.
1269         * doc/extend.texi: Document __builtin_isinf_sign.
1270         * fold-const.c (operand_equal_p): Handle COND_EXPR.
1271
1272 2008-05-18  Eric Botcazou  <ebotcazou@adacore.com>
1273
1274         * tree-ssa-dom.c (tree_ssa_dominator_optimize): If some blocks need
1275         EH cleanup at the end of the pass, search for those that have been
1276         turned into forwarder blocks and do the cleanup on their successor.
1277
1278 2008-05-18  Richard Guenther  <rguenther@suse.de>
1279
1280         * tree-cfg.c (verify_gimple_expr): Allow conversions from
1281         pointers to sizetype and vice versa.
1282
1283 2008-05-18 Xinliang David Li   <davidxl@google.com>
1284
1285         * gcc/tree-ssa-dce.c: Coding style fix.
1286         (check_pow): Documentation comment. 
1287         (check_log): Documenation comment. Coding style fix.
1288         (is_unnecessary_except_errno_call): Ditto.
1289         (gen_conditions_for_pow): Ditto.
1290         (gen_conditions_for_log): Ditto.
1291         (gen_shrink_wrap_conditions): Ditto.
1292         (shrink_wrap_one_built_in_calls): Ditto.
1293         * gcc/doc/invoke.texi: Better documentation string.
1294         * ChangeLog: Fix wrong change log entries from 
1295         May 17 checkin on function call DCE.
1296
1297 2008-05-17  Kaz Kojima  <kkojima@gcc.gnu.org>
1298
1299         * config/sh/sh.c (sh_output_mi_thunk): Update the use of init_flow.
1300
1301 2008-05-17  Kenneth Zadeck <zadeck@naturalbridge.com>
1302
1303         * doc/rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P): Fixed typos.
1304         * df-problems.c (simulation routines): Fixed block comment to
1305         properly say how to add forwards scanning functions.
1306         
1307 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
1308
1309         * tree-inline.c (setup_one_parameter): Remove dead code.
1310
1311 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
1312
1313         * fold-const.c (fold_unary) <CASE_CONVERT>: Fold the cast into
1314         a BIT_AND_EXPR only for an INTEGER_TYPE.
1315
1316 2008-05-17 Xinliang David Li   <davidxl@google.com>
1317
1318         * gcc/tree-ssa-dce.c (cond_dead_built_in_calls): New static variable.
1319         (check_pow, check_log, is_unnecessary_except_errno_call): New 
1320         functions to check for eliminating math functions that are pure 
1321         except for setting errno.
1322         (gen_conditions_for_pow, gen_conditionas_for_log): New functions to
1323         general condition expressions for shrink-wrapping pow/log calls.
1324         (gen_shrink_wrap_conditions): Ditto.
1325         (shrink_wrap_one_built_in_call): Ditto.
1326         (shrink_wrap_conditional_dead_built_in_calls): Ditto.
1327         (mark_operand_necessary): If debugging, output if OP is necessary.
1328         (eliminate_unnecessary_stmts): Eliminate pow, log calls that are
1329         unnecessary.
1330         * gcc/opts.c (decode_options): set flag_tree_builtin_dce to 1 when
1331         opt level >= 2.
1332         * gcc/common.opt: New user flag -ftree-builtin-dce.
1333         * gcc/doc/invoke.texi (-ftree-builtin-dce): New option.
1334
1335 2008-05-16  David S. Miller  <davem@davemloft.net>
1336
1337         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Undef before overriding.
1338         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
1339
1340 2008-05-16  Uros Bizjak  <ubizjak@gmail.com>
1341
1342         PR target/36246
1343         * config/i386/i386.h (SECONDARY_MEMORY_NEEDED_MODE): New define.
1344
1345 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
1346
1347         * ifcvt.c (dead_or_predicable): Rename
1348         df_simulate_one_insn_backwards to df_simulate_one_insn.
1349         * recog.c (peephole2_optimize): Ditto.
1350         * rtl-factoring.c (collect_pattern_seqs, clear_regs_live_in_seq):
1351         Ditto.
1352         * df.h: Rename df_simulate_one_insn_backwards to
1353         df_simulate_one_insn.  and delete df_simulate_one_insn_forwards.
1354         * df-problems.c (df_simulate_artificial_refs_at_top) Reversed
1355         scanning of defs and uses.
1356         (df_simulate_one_insn_backwards): Renamed to df_simulate_one_insn.
1357         (df_simulate_one_insn_forwards): Removed.
1358
1359 2008-05-16  Doug Kwan  <dougkwan@google.com>
1360
1361         * real.c (real_to_decimal, real_to_hexadecimal): Distinguish
1362         QNaN & SNaN.
1363         (real_from_string): Handle NaNs and Inf as approriate.
1364
1365 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
1366
1367         * doc/gty.texi (Source Files Containing Type Information): Note
1368         that headers should appear first in the gtfiles list.
1369
1370 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
1371
1372         * tree.def (COND_EXEC): Properly documented this code.
1373
1374 2008-05-16  Diego Novillo  <dnovillo@google.com>
1375
1376         * dwarf2asm.c (dw2_assemble_integer): Clarify comment.
1377         * tree-nested.c (get_trampoline_type): Set DECL_CONTEXT for
1378         the new field.
1379
1380 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
1381
1382         * tree-ssa-dse (max_stmt_uid): Removed.
1383         (get_stmt_uid, dse_possible_dead_store_p, dse_optimize_stmt, 
1384         tree_ssa_dse): Encapsulate all uses of stmt_ann->uid.
1385         * tree-ssa-sccvn.c (compare_ops, init_scc_vn): Ditto.
1386         * function.h (cfun.last_stmt_uid): New field.
1387         * tree-flow-inline.h (set_gimple_stmt_uid, gimple_stmt_uid,
1388         gimple_stmt_max_uid, set_gimple_stmt_max_uid, inc_gimple_stmt_max_uid):
1389         New functions.
1390         * tree-dfa.c (renumber_gimple_stmt_uids): New function.
1391         (create_stmt_ann): Initialize the ann->uid field.
1392         * tree-ssa-pre.c (compute_avail): Encapsulate the stmt_ann->uid
1393         with new calls.
1394         * tree-flow.h (renumber_gimple_stmt_uids): New function.
1395
1396 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
1397
1398         * tree-flow.h (init_empty_tree_cfg_for_function): Declare.
1399         * tree-cfg.c (init_empty_tree_cfg_for_function): Define.
1400         (init_empty_tree_cfg): Call it.
1401
1402 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
1403
1404         * cfg.c (init_flow): Add argument THE_FUN.  Use it instead of cfun.
1405         Update all users.
1406
1407 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
1408
1409         * doc/invoke.text (-fdump-tree-*-verbose): New option.
1410         * tree-dump.c (dump_options): New verbose option.
1411         * tree-pretty-print.c (dump_phi_nodes, dump_generic_bb_buff):
1412         Add verbose dump.
1413         * tree-pass.h (TDF_VERBOSE): New dump flag.
1414         * print-tree.c (print_node): Added code to be able to print PHI_NODES.
1415         (tree-flow.h): Added include.
1416         * Makefile.in (print-tree.o):  Added TREE_FLOW_H.
1417
1418 2008-05-16  Bernd Schmidt  <bernd.schmidt@analog.com>
1419
1420         * config/bfin/bfin.c (bfin_discover_loops): Delete empty loops.
1421
1422         From Jie Zhang  <jie.zhang@analog.com>
1423         * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
1424         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Remove mcpu=bf532-0.3,
1425         mcpu=bf561-none and mcpu=bf561-0.2.
1426         * config/bfin/t-bfin-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
1427         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
1428         * config/bfin/t-bfin-linux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
1429         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
1430         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add BFIN_CPU_UNKNOWN.
1431         * config/bfin/elf.h (STARTFILE_SPEC): Use specific CRT for BF561.
1432         (LIB_SPEC): Use proper linker script for bf561.  Error if no mcpu
1433         option.
1434         * config/bfin/bfin.c (bfin_cpu_type): Set to BFIN_CPU_UNKNOWN.
1435         (cputype_selected): Remove.
1436         (bfin_handle_option): Don't use cputype_selected.
1437         (override_options): When no mcpu option, enable all workarounds.
1438         Don't use bfin_workarounds.
1439         * config/bfin/bfin.h (DRIVER_SELF_SPECS): Don't set default
1440         processor type.
1441         (DEFAULT_CPU_TYPE): Don't define.
1442
1443 2008-05-16  Richard Guenther  <rguenther@suse.de>
1444
1445         * tree-ssa-propagate.c (substitute_and_fold): Fix stmt walking
1446         on deletion of the last stmt.
1447
1448 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
1449
1450         * config/i386/i386.c (ix86_expand_vector_init_general): Optimize
1451         V8HImode for SSE2 and V16QImode for SSE4.1.
1452
1453 2008-05-15  Kenneth Zadeck <zadeck@naturalbridge.com>
1454
1455         * cgraph.h (compute_inline_parameters): Made public.
1456         * tree-pass.h (ipa_opt_pass): Removed function_generate_summary,
1457         variable_generate_summary, function_write_summary,
1458         variable_write_summary, variable_read_summary.  Added generate_summary,
1459         write_summary, read_summary.
1460         * cgraphunit.c (cgraph_process_new_functions): Changed call from
1461         pass_ipa_inline.function_generate_summary, to
1462         compute_inline_parameters. 
1463         * ipa-inline.c (compute_inline_parameters): Made public and added
1464         node parameter.
1465         (compute_inline_parameters_for_current): New function.
1466         (pass_inline_param): Now calls compute_inline_parameters_for_current.
1467         (inline_generate_summary): Removed parameter and made to loop over
1468         all cgraph nodes.
1469         (pass_ipa_inline): Updated for new IPA_PASS structure.
1470         * passes.c (execute_ipa_summary_passes): Now is called once per
1471         pass rather than once per node*pass.
1472         
1473 2008-05-15  Anatoly Sokolov <aesok@post.ru>
1474
1475         * config/avr/avr.c (avr_base_arch_macro, avr_have_movw_lpmx_p, 
1476         avr_have_mul_p, avr_asm_only_p): Remove variables.
1477         (avr_override_options): Remove initialization of removed variables.
1478         (avr_file_start):  Convert removed variables to fields of 
1479         'struct base_arch_s *avr_current_arch'. 
1480         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): (Ditto.).
1481         (AVR_HAVE_MUL): (Ditto.).
1482         (AVR_HAVE_MOVW): (Ditto.).
1483         (AVR_HAVE_LPMX): (Ditto.). 
1484         (avr_base_arch_macro, avr_have_movw_lpmx_p, avr_have_mul_p, 
1485         avr_asm_only_p): Remove declaration.
1486
1487 2008-05-15  Diego Novillo  <dnovillo@google.com>
1488
1489         * config/arm/arm.c (arm_return_in_memory): Fix return type.
1490         * config/arm/arm-protos.h (arm_return_in_memory): Likewise.
1491
1492 2008-05-15  Adam Nemet  <anemet@caviumnetworks.com>
1493
1494         PR middle-end/36194
1495         * combine.c (check_conversion): Rename back to check_promoted_subreg.
1496         Don't call record_truncated_value from here.
1497         (record_truncated_value): Turn it into a for_each_rtx callback.
1498         (record_truncated_values): New function.
1499         (combine_instructions): Call note_uses with record_truncated_values.
1500         Change name of check_conversion to check_promoted_subreg. 
1501
1502 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
1503
1504         * doc/sourcebuild.texi: Document support for torture tests.
1505
1506 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
1507
1508         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Add "m" constraint
1509         to alternative 4 of operand 2.
1510
1511 2008-05-15  Richard Guenther  <rguenther@suse.de>
1512
1513         * tree-pass.h (current_pass): Declare.
1514         (get_pass_for_id): Likewise.
1515         * passes.c (passes_by_id, passes_by_id_size): New globals.
1516         (set_pass_for_id): New function.
1517         (get_pass_for_id): Likewise.
1518         (register_one_dump_file): Use set_pass_for_id to populate passes_by_id.
1519         (execute_function_todo): Flush per function statistics.
1520         * toplev.c (compile_file): Init statistics.
1521         (general_init): Do early statistics initialization.
1522         (finalize): Finish statistics.
1523         * statistics.h (statistics_early_init): Declare.
1524         (statistics_init): Likewise.
1525         (statistics_fini): Likewise.
1526         (statistics_fini_pass): Likewise.
1527         (statistics_counter_event): Likewise.
1528         (statistics_histogram_event): Likewise.
1529         * statistics.c: New file.
1530         * Makefile.in (OBJS-common): Add statistics.o.
1531         (statistics.o): Add dependencies.
1532         * doc/invoke.texi (-fdump-statistics): Document.
1533
1534         * tree-ssa-pre.c (compute_antic): Use statistics_histogram_event.
1535         (insert): Likewise.
1536         (execute_pre): Use statistics_counter_event.
1537         * tree-ssa-propagate.c (struct prop_stats_d): Add num_dce field.
1538         (substitute_and_fold): Increment it.  Use statistics_counter_event.
1539
1540 2008-05-15  Diego Novillo  <dnovillo@google.com>
1541
1542         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00893.html
1543
1544         * treestruct.def (TS_STRUCT_FIELD_TAG): Remove.
1545         * tree-ssa-alias.c (new_type_alias): Remove references to
1546         sub-variables from comment.
1547         * tree-ssa-operands.c (swap_tree_operands): Likewise.
1548
1549 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
1550
1551         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Set prefix_extra
1552         attribute to 1 only for insertps alternative.
1553
1554 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
1555
1556         * config/bfin/bfin.md (loadbytes): New pattern.
1557         * config/bfin/bfin.c (enum bfin_builtins): Add BFIN_BUILTIN_LOADBYTES.
1558         (bfin_init_builtins): Initialize it.
1559         (bdesc_1arg): Add it.
1560
1561 2008-05-15  Sa Liu  <saliu@de.ibm.com>
1562
1563         * testsuite/gfortran.dg/c_kind_int128_test1.f03: New.
1564         * testsuite/gfortran.dg/c_kind_int128_test2.f03: New.
1565         * testsuite/lib/target-supports.exp: Add
1566         check_effective_target_fortran_integer_16.
1567
1568 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
1569
1570         * config/bfin/bfin.h (TARGET_RETURN_IN_MEMORY): Don't define here.
1571         * config/bfin/bfin-protos.h (bfin_return_in_memory): Don't declare.
1572         * config/bfin/bfin.c (bfin_return_in_memory): Now static.  Return bool.
1573         (TARGET_RETURN_IN_MEMORY): Define.
1574
1575 2008-05-15  Richard Guenther  <rguenther@suse.de>
1576
1577         PR middle-end/36244
1578         * tree-ssa-alias.c (new_type_alias): Do not set TREE_READONLY.
1579         * tree-flow-inline.h (unmodifiable_var_p): Memory tags never
1580         represent unmodifiable vars.
1581
1582 2008-05-15  Richard Guenther  <rguenther@suse.de>
1583
1584         * tree-dfa.c (refs_may_alias_p): Allow all kinds of
1585         INDIRECT_REF and TARGET_MEM_REF.
1586         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
1587         TARGET_MEM_REF.
1588
1589 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
1590             H.J. Lu  <hongjiu.lu@intel.com>
1591
1592         * config/i386/sse.md (*vec_concatv2sf_sse4_1): New insn pattern.
1593         (*vec_concatv2si_sse4_1): Use vector_move_operand predicate
1594         for operand 2.  Remove pinsr{q,d} with 0x0 immediate operand from
1595         insn alternatives.  Add missing alternatives.
1596         (*vec_concatv2di_rex64_sse4_1): Likewise.
1597         (*vec_concatv2si_sse2): Use "x" register constraint instead of "Y2".
1598         (*vec_concatv2di_rex64_sse): Rename from *vec_concatv2di_rex64.
1599         Require TARGET_SSE.
1600
1601 2008-05-15  Richard Guenther  <rguenther@suse.de>
1602
1603         PR tree-optimization/36009
1604         PR tree-optimization/36204
1605         * tree-ssa-loop-im.c (tree-ssa-propagate.h): Include.
1606         (determine_invariantness_stmt): Record the loop a store is
1607         always executed in.
1608         * Makefile.in (tree-ssa-loop-im.o): Add tree-ssa-propagate.h
1609         dependency.
1610
1611 2008-05-15  Richard Guenther  <rguenther@suse.de>
1612
1613         PR tree-optimization/34330
1614         * tree-ssa-alias.c (get_smt_for): Only assert that accesses
1615         through the pointer will alias the SMT.
1616
1617 2008-05-14  Andreas Tobler  <a.tobler@schweiz.org>
1618
1619         * config/sparc/sparc.h (NO_PROFILE_COUNTERS): Define as 0.
1620
1621 2008-05-14  H.J. Lu  <hongjiu.lu@intel.com>
1622
1623         * config/i386/sse.md (*sse4_1_pinsrq): Make it 64bit only.
1624
1625 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
1626             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
1627
1628         * optabs.h (optab_index): Add OTI_vashl, OTI_vlshr, OTI_vashr,
1629         OTI_vrotl, OTI_vrotr to support vector/vector shifts.
1630         (vashl_optab): New optab for vector/vector shifts.
1631         (vashr_optab): Ditto.
1632         (vlshr_optab): Ditto.
1633         (vrotl_optab): Ditto.
1634         (vrotr_optab): Ditto.
1635         (optab_subtype): New enum for optab_for_tree_code call.
1636         (optab_for_tree_code): Add enum optab_subtype argument.
1637
1638         * optabs.c (optab_for_tree_code): Take an additional argument to
1639         distinguish between a vector shift by a scalar and vector shift by
1640         a vector.  Make lshr/ashr/ashl/rotl/rotr optabs just vector
1641         shifted by a scalar.  Use vlshr/vashr/vashl/vrotl/vrotr for the
1642         vector shift by a vector.
1643         (expand_widen_pattern_expr): Pass additional argument to
1644         optab_for_tree_code.
1645
1646         * genopinit.c (optabs): Add vashr_optab, vashl_optab, vlshr_optab,
1647         vrotl_optab, vrotr_optab.
1648
1649         * expr.c (expand_expr_real_1): Update calls to
1650         optab_for_tree_code to distinguish between vector shifted by a
1651         scalar and vector shifted by a vector.
1652         * tree-vectorizer.c (supportable_widening_operation): Ditto.
1653         (supportable_narrowing_operation): Ditto.
1654         * tree-vect-analyze.c (vect_build_slp_tree): Ditto.
1655         * tree-vect-patterns.c (vect_pattern_recog_1): Ditto.
1656         * tree-vect-transform.c (vect_model_reduction_cost): Ditto.
1657         (vect_create_epilog_for_reduction): Ditto.
1658         (vectorizable_reduction): Ditto.
1659         (vectorizable_operation): Ditto.
1660         (vect_strided_store_supported): Ditto.
1661         (vect_strided_load_supported): Ditto.
1662         * tree-vect-generic.c (expand_vector_operations_1): Ditto.
1663         * expmed.c (expand_shift): Ditto.
1664
1665         * doc/md.texi (ashl@var{m}3): Document that operand 2 is always a
1666         scalar type.
1667         (ashr@var{m}3): Ditto.
1668         (vashl@var{m}3): Document new vector/vector shift standard name.
1669         (vashr@var{m}3): Ditto.
1670         (vlshr@var{m}3): Ditto.
1671         (vrotl@var{m}3): Ditto.
1672         (vrotr@var{m}3): Ditto.
1673
1674         * config/i386/i386.md (PPERM_SRC): Move PPERM masks here from i386.c.
1675         (PPERM_INVERT): Ditto.
1676         (PPERM_REVERSE): Ditto.
1677         (PPERM_REV_INV): Ditto.
1678         (PPERM_ZERO): Ditto.
1679         (PPERM_ONES): Ditto.
1680         (PPERM_SIGN): Ditto.
1681         (PPERM_INV_SIGN): Ditto.
1682         (PPERM_SRC1): Ditto.
1683         (PPERM_SRC2): Ditto.
1684
1685         * config/i386/sse.md (mulv2di3): Add SSE5 support.
1686         (sse5_pmacsdql_mem): New SSE5 define_and_split that temporarily
1687         allows a memory operand to be the value being added, and split it
1688         to improve vectorization.
1689         (sse5_pmacsdqh_mem): Ditto.
1690         (sse5_mulv2div2di3_low): SSE5 32-bit multiply and extend function.
1691         (sse5_mulv2div2di3_high): Ditto.
1692         (vec_pack_trunc_v8hi): Add SSE5 pperm support.
1693         (vec_pack_trunc_v4si): Ditto.
1694         (vec_pack_trunc_v2di): Ditto.
1695         (sse5_pcmov_<mode>): Remove code that tried to use use
1696         andps/andnps instead of pcmov.
1697         (vec_widen_smult_hi_v4si): If we have SSE5, use the pmacsdql and
1698         pmacsdqh instructions.
1699         (vec_widen_smult_lo_v4si): Ditto.
1700
1701         * config/i386/i386.c (PPERM_SRC): Move PPERM masks to i386.md.
1702         (PPERM_INVERT): Ditto.
1703         (PPERM_REVERSE): Ditto.
1704         (PPERM_REV_INV): Ditto.
1705         (PPERM_ZERO): Ditto.
1706         (PPERM_ONES): Ditto.
1707         (PPERM_SIGN): Ditto.
1708         (PPERM_INV_SIGN): Ditto.
1709         (PPERM_SRC1): Ditto.
1710         (PPERM_SRC2): Ditto.
1711         (ix86_expand_sse_movcc): Move the SSE5 test after the if
1712         true/false tests.
1713         (ix86_expand_int_vcond): If SSE5 generate all possible integer
1714         comparisons.
1715         (ix86_sse5_valid_op_p): Allow num_memory to be negative, which
1716         says ignore whether the last reference is a memory operand.
1717
1718 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
1719             Paolo Bonzini <bonzini at gnu dot org>
1720
1721         * config/rs6000/rs6000.c (bdesc_2arg): Change the names of vector
1722         shift patterns.
1723
1724         * config/rs6000/altivec.md (vashl<mode>3): Rename from ashl<mode>3.
1725         (vlshr<mode>3): Rename from vlshr<mode>3.
1726         (vashr<mode>3): Rename from vashr<mode>3.
1727         (mulv4sf3): Change the names of vector shift patterns.
1728         (mulv4si3): Ditto.
1729         (negv4sf2): Ditt.
1730
1731         * config/spu/spu.c (spu_initialize_trampoline): Rename vector
1732         shift insns.
1733
1734         * config/spu/spu-builtins.def (SI_SHLH): Rename vector shift insns.
1735         (SI_SHLHI): Ditto.
1736         (SI_SHL): Ditto.
1737         (SI_SHLI): Ditto.
1738         (SI_ROTH): Ditto.
1739         (SI_ROTHI): Ditto.
1740         (SI_ROT): Ditto.
1741         (SI_ROTI): Ditto.
1742         (SPU_RL_0): Ditto.
1743         (SPU_RL_1): Ditto.
1744         (SPU_RL_2): Ditto.
1745         (SPU_RL_3): Ditto.
1746         (SPU_RL_4): Ditto.
1747         (SPU_RL_5): Ditto.
1748         (SPU_RL_6): Ditto.
1749         (SPU_RL_7): Ditto.
1750         (SPU_SL_0): Ditto.
1751         (SPU_SL_1): Ditto.
1752         (SPU_SL_2): Ditto.
1753         (SPU_SL_3): Ditto.
1754         (SPU_SL_4): Ditto.
1755         (SPU_SL_5): Ditto.
1756         (SPU_SL_6): Ditto.
1757         (SPU_SL_7): Ditto.
1758
1759         * config/spu/spu.md (v): New iterator macro to add v for vector types.
1760         (floatunssidf2_internal): Change vector/vector shift names.
1761         (floatunsdidf2_internal): Ditto.
1762         (mulv8hi3): Ditto.
1763         (ashrdi3): Ditto.
1764         (ashrti3): Ditto.
1765         (cgt_df): Ditto.
1766         (cgt_v2df): Ditto.
1767         (dftsv): Ditto.
1768         (vashl<mode>3): Rename from ashl<mode>3.
1769         (vashr<mode>3): Rename from ashr<mode>3.
1770         (vlshr<mode>3): Rename from lshr<mode>3.
1771         (vrotl<mode>3): Rename from rotl<mode>3.
1772
1773 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
1774
1775         PR target/36224
1776         * config/i386/sse.md (vec_widen_smult_hi_v4si): Delete, using unsigned
1777         multiply gives the wrong value when doing widening multiplies.
1778         (vec_widen_smult_lo_v4si): Ditto.
1779
1780 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
1781
1782         * optabs.c (prepare_cmp_insn): Changed LCT_PURE_MAKE_BLOCK to
1783         LCT_PURE and LCT_CONST_MAKE_BLOCK to LCT_CONST in calls to
1784         emit_library_call_value. 
1785         * builtins.c (expand_builtin_powi, expand_builtin_memcmp): Ditto.
1786         * tree.h (ECF_LIBCALL_BLOCK): Removed.
1787         * calls.c (initialize_argument_information, precompute_arguments, 
1788         expand_call, emit_library_call_value_1): Remove ECF_LIBCALL_BLOCK.
1789         (precompute_arguments): Removed flags parameter.
1790         * rtl.h (LCT_CONST_MAKE_BLOCK, LCT_PURE_MAKE_BLOCK): Removed.
1791         
1792 2008-05-14  Richard Guenther  <rguenther@suse.de>
1793
1794         * tree-ssa-dse.c (dse_possible_dead_store_p): Remove dead code.
1795         Make sure to register the store if the use is a PHI_NODE.
1796
1797 2008-05-14  Olivier Hainque  <hainque@adacore.com>
1798
1799         * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
1800         memory if the component is to be referenced in BLKmode according
1801         to get_inner_reference.
1802
1803 2008-05-14  Adam Nemet  <anemet@caviumnetworks.com>
1804
1805         * calls.c (emit_library_call_value_1): Restore code clearing
1806         ECF_LIBCALL_BLOCK to ensure that we only call end_sequence once.
1807
1808 2008-05-14  Olivier Hainque  <hainque@adacore.com>
1809             Nicolas Roche  <roche@adacore.com>
1810
1811         * configure.ac: Add support for a "gcc_subdir" variable in
1812         config-lang.in, to denote a subdirectory where the language/GCC
1813         integration files are to be found.
1814         * configure: Regenerate.
1815
1816 2008-05-14  Ira Rosen  <irar@il.ibm.com>
1817
1818         PR tree-optimization/36098
1819         * tree-vect-analyze.c (vect_analyze_group_access): Set the gap
1820         value for the first load in the group in case of a gap.
1821         (vect_build_slp_tree): Check that there are no gaps in loads.
1822
1823 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
1824
1825         * doc/rtl.texi: Removed reference to REG_NO_CONFLICT notes.
1826         * optabs.c (expand_binop, expand_absneg_bit, expand_unop,
1827         expand_copysign_bit, ): Change call to emit_no_conflict_block to
1828         emit_insn and remove unneeded code to construct extra args.
1829         (emit_no_conflict_block): Removed.
1830         * optabls.h: (emit_no_conflict_block): Removed.
1831         * cse.c (cse_extended_basic_block): Remove search for
1832         REG_NO_CONFLICT note.
1833         * global.c: Removed incorrect comment added in revision 117.
1834         * expr.c (convert_move): Change call to emit_no_conflict_block to
1835         emit_insn.
1836         * recog.c: Change comments so that they do not mention
1837         REG_NO_CONFLICT.
1838         * local_alloc.c (combine_regs): Removed last parameter.
1839         (no_conflict_p): Removed.
1840         (block_alloc): Removed note, no_conflict_combined_regno and set
1841         local vars. Removed all code to process REG_NO_CONFLICT blocks.
1842         (combine_regs): Removed already_dead and code to look for
1843         REG_NO_CONFLICT notes.
1844         * lower_subreg (remove_retval_note): Removed code to look for
1845         REG_NO_CONFLICT block.
1846         (resolve_reg_notes): Removed REG_NO_CONFLICT case.
1847         (resolve_clobber): Remove code to process libcalls that have
1848         REG_NO_CONFLICT notes.
1849         * loop_invariant.c (find_invariant_insn): Removed REG_NO_CONFLICT
1850         case.
1851         * combine.c (can_combine_p, distribute_notes):  Removed
1852         REG_NO_CONFLICT case.
1853         * config/cris/cris.md (movdi pattern): Changed emit_no_conflict_block
1854         to emit_insns.
1855         * config/mn10300/mn10300.md (absdf2, negdf2 patterns): Ditto.
1856         * config/m68k/m68k.md (negdf2, negxf2, absdf2, absxf2 patterns):
1857         Ditto.
1858         * reg-notes.def (NO_CONFLICT): Removed.
1859
1860 2008-05-14  David S. Miller  <davem@davemloft.net>
1861
1862         * config/sparc/sparc.c (sparc_profile_hook): If
1863         NO_PROFILE_COUNTERS, don't generate and pass a label into mcount.
1864         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Define as 1.
1865         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
1866
1867 2008-05-14  Andreas Krebbel  <krebbel1@de.ibm.com>
1868
1869         * cse.c (cse_cc_succs): Invoke delete_insn_and_edges.
1870
1871 2008-05-13  Uros Bizjak  <ubizjak@gmail.com>
1872
1873         PR target/36222
1874         * config/i386/i386.c (ix86_expand_vector_init_general): Rearrange op0
1875         and op1 expansion before vector concat to have less live pseudos.
1876
1877 2008-05-13  H.J. Lu  <hongjiu.lu@intel.com>
1878
1879         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
1880         ix86_expand_vector_set if supported.
1881
1882 2008-05-13  Diego Novillo  <dnovillo@google.com>
1883             Kenneth Zadeck  <zadeck@naturalbridge.com>
1884
1885         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00748.html
1886
1887         * tree.h (init_phinodes, fini_phinodes, release_phi_node,
1888         phinodes_print_statistics, init_ssanames, fini_ssanames,
1889         make_ssa_name, duplicate_ssa_name, duplicate_ssa_name_ptr_info,
1890         release_ssa_name, release_defs, replace_ssa_name_symbol,
1891         ssanames_print_statistics): Move ...
1892         * tree-flow.h: ... here.
1893         * tree-ssanames.c (init_ssanames): Add arguments FN and SIZE.
1894         Use FN instead of cfun.
1895         (make_ssa_name_fn): Rename from make_ssa_name.
1896         (pass_release_ssa_names): Add TODO_dump_func to finish flags.
1897         * tree-flow-inline.h (make_ssa_name): Move from
1898         tree-ssanames.c.  Convert to static inline.  Call make_ssa_name_fn.
1899         * omp-low.c (expand_omp_parallel):
1900         * tree-flow-inline.h (redirect_edge_var_map_result):
1901         * tree-ssa.c (init_tree_ssa): Add argument FN.
1902         Use it instead of cfun.  Update all users.
1903
1904 2008-05-13  Tom Tromey  <tromey@redhat.com>
1905
1906         PR preprocessor/22168:
1907         * doc/cpp.texi (Top): Update menu.
1908         (Alternatives to Wrapper #ifndef): New node.
1909         (Other Directives): Document deprecation.
1910         (Obsolete Features): Remove menu.
1911         (Assertions): Merge node into Obsolete Features.
1912         (Obsolete once-only headers): Move earlier; rename to Alternatives
1913         to Wrapper #ifndef.
1914         * doc/cppopts.texi: Update.
1915         * c.opt (Wdeprecated): Enable for C and ObjC.
1916         * doc/invoke.texi (Option Summary): Move -Wno-deprecated.
1917         (C++ Dialect Options): Move -Wno-deprecated from here to...
1918         (Warning Options): ... here.
1919
1920 2008-05-13  Richard Guenther  <rguenther@suse.de>
1921
1922         PR middle-end/36227
1923         * fold-const.c (fold_sign_changed_comparison): Do not allow
1924         changes in pointer-ness.
1925
1926 2008-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
1927
1928         PR target/24713
1929         * config/sh/sh.c (sh_expand_prologue): Don't clear
1930         RTX_FRAME_RELATED_P for push insns.
1931
1932 2008-05-12  Andy Hutchinson  <hutchinsonandy@aim.com>
1933
1934         * config/avr/avr.h (MAX_OFILE_ALIGNMENT): Define.
1935
1936 2008-05-12  Anatoly Sokolov <aesok@post.ru>
1937
1938         * config/avr/avr.h (machine_function): Add 'is_leaf' field.
1939         * config/avr/avr.c (avr_regs_to_save): Compute 'machine->is_leaf'.
1940         Use 'machine->is_leaf' instead of 'leaf_func_p'.
1941
1942 2008-05-12  H.J. Lu  <hongjiu.lu@intel.com>
1943
1944         * config/i386/sse.md (*sse_concatv4sf): Renamed to ...
1945         (*vec_concatv4sf_sse): This.
1946         (*sse2_concatv2si): Renamed to ...
1947         (*vec_concatv2si_sse2): This.
1948         (*sse1_concatv2si): Renamed to ...
1949         (*vec_concatv2si_sse): This.
1950         (*vec_concatv2di_rex): Renamed to ...
1951         (*vec_concatv2di_rex64): This.
1952         (*vec_concatv2si_sse4_1): New.
1953         (*vec_concatv2di_rex64_sse4_1): Likewise.
1954
1955 2008-05-12  Uros Bizjak  <ubizjak@gmail.com>
1956
1957         PR rtl-optimization/36111
1958         * recog.c (validate_replace_rtx_1): Unshare new RTL expression
1959         that was created for swappable operands.
1960
1961 2008-05-12  Samuel Tardieu  <sam@rfc1149.net>
1962
1963         PR ada/36001
1964         * Makefile.in: Substitute GNATMAKE and GNATBIND.
1965         * configure.ac: Add call to ACX_PROG_GNAT.
1966
1967 2008-05-11  Volker Reichelt  <v.reichelt@netcologne.de>
1968
1969         * optc-gen.awk: Fix comment typo.
1970
1971 2008-05-11  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
1972
1973         * pretty-print.c (pp_integer_with_precision): Use
1974         HOST_LONG_LONG_FORMAT.
1975
1976 2008-05-10  Kenneth Zadeck  <zadeck@naturalbridge.com>
1977
1978         * gcse.c (store_killed_in_insn): Negated call to RTL_CONST_CALL_P.
1979                 
1980 2008-05-10  H.J. Lu  <hongjiu.lu@intel.com>
1981
1982         * config/i386/i386.c (bdesc_ptest): Removed.
1983         (ix86_builtin_type): Add INT_FTYPE_V2DI_V2DI_PTEST.
1984         (bdesc_args): Add __builtin_ia32_ptestz128,
1985         __builtin_ia32_ptestc128 and __builtin_ia32_ptestnzc128.
1986         (ix86_init_mmx_sse_builtins): Updated.
1987         (ix86_expand_args_builtin): Handle INT_FTYPE_V2DI_V2DI_PTEST.
1988         (ix86_expand_builtin): Updated.
1989
1990 2008-05-10  Richard Sandiford  <rdsandiford@googlemail.com>
1991
1992         * tree-cfg.c (valid_fixed_convert_types_p): New function.
1993         (verify_gimple_expr): Handle FIXED_CONVERT_EXPR.
1994
1995 2008-05-10  Uros Bizjak  <ubizjak@gmail.com>
1996
1997         * value-prof.c (interesting_stringop_to_profile): Do not
1998         return early for BUILT_IN_MEMPCPY.
1999
2000 2008-05-09  H.J. Lu  <hongjiu.lu@intel.com>
2001
2002         * calls.c (expand_call): Don't use callgraph to increase
2003         preferred_stack_boundary.
2004
2005         * cgraph.h (cgraph_rtl_info): Use unsigned on
2006         preferred_incoming_stack_boundary.
2007
2008         * final.c (rest_of_clean_state): Use unsigned on
2009         preferred_stack_boundary.
2010
2011 2008-05-09  Tom Tromey  <tromey@redhat.com>
2012
2013         PR preprocessor/22231:
2014         * c-opts.c (sanitize_cpp_opts): Disallow -MG if compilation is
2015         proceeding.
2016
2017 2008-05-09  Uros Bizjak  <ubizjak@gmail.com>
2018
2019         PR tree-optimization/36129
2020         * tree-ssa-ccp.c: Include value-prof.h.
2021         (execute_fold_all_builtins): Call gimple_remove_stmt_histograms if
2022         built-in function was folded to a constant.
2023         * Makefile.in (tree-ssa-ccp.c): Depend on value-prof.h
2024
2025 2008-05-09  Jan Sjodin  <jan.sjodin@amd.com>
2026             Sebastian Pop  <sebastian.pop@amd.com>
2027
2028         * tree-scalar-evolution.c: Document instantiate_scev.
2029         (instantiate_parameters_1): Renamed instantiate_scev_1.
2030         Don't use the same loop for instantiation_loop and evolution_loop.
2031         (instantiate_scev): New.
2032         (instantiate_parameters): Moved...
2033         (resolve_mixers): Update call to instantiate_scev_1 to pass the
2034         same loop twice.  Maintains the semantics for this function.
2035         * tree-scalar-evolution.h (instantiate_scev): Declare.
2036         (instantiate_parameters): ...here.  Now static inline.
2037         * tree-data-ref.c (dr_analyze_indices): Call instantiate_scev
2038         instead of resolve_mixers.
2039
2040 2008-05-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
2041
2042         * rtl-factoring.c (collect_pattern_seqs): Fix typo.
2043
2044 2008-05-09  Tomas Bily  <tbily@suse.cz>
2045
2046         * config/pa/pa.c (reloc_needed): Use CASE_CONVERT.
2047         * tree-cfg.c (verify_expr, verify_gimple_expr): Likewise.
2048         * tree-ssa-structalias.c (get_constraint_for): Likewise.
2049         * c-common.c (c_common_truthvalue_conversion): Likewise.
2050         * tree-object-size.c (compute_object_offset): Likewise.
2051         * tree-inline.c (estimate_num_insns_1): Likewise.
2052         * varasm.c (const_hash_1, compare_constant, copy_constant)
2053         (compute_reloc_for_constant, output_addressed_constants)
2054         (initializer_constant_valid_p): Likewise.
2055         * c-omp.c (check_omp_for_incr_expr): Likewise.
2056         * gimplify.c (gimplify_expr): Likewise.
2057         * c-typeck.c (c_finish_return): Likewise.
2058         * tree-vectorizer.c (supportable_widening_operation)
2059         (supportable_narrowing_operation): Likewise.
2060         * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Likewise.
2061         * matrix-reorg.c (can_calculate_expr_before_stmt): Likewise.
2062         * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
2063         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info)
2064         (descr_info_loc): Likewise.
2065         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
2066         * fold-const.c (operand_equal_p, make_range, extract_muldiv_1)
2067         (fold_unary): Likewise.
2068         * builtins.c (get_pointer_alignment): Likewise.
2069         * tree-scalar-evolution.c (interpret_rhs_modify_stmt)
2070         (instantiate_parameters_1): Likewise.
2071         * tree.c (expr_align, stabilize_reference): Likewise.
2072         * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
2073         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
2074         * convert.c (strip_float_extensions): Use CONVERT_EXPR_P.
2075         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
2076         * config/alpha/alpha.c (va_list_skip_additions): Likewise.
2077         * c-common.c (c_alignof_expr, check_function_arguments_recurse):
2078         Likewise.
2079         * tree-ssa.c (tree_ssa_useless_type_conversion): Likewise.
2080         * varasm.c (initializer_constant_valid_p, output_constant): Likewise.
2081         * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
2082         (forward_propagate_addr_expr_1, forward_propagate_addr_expr)
2083         (forward_propagate_comparison)
2084         (tree_ssa_forward_propagate_single_use_vars): Likewise.
2085         * cfgexpand.c (discover_nonconstant_array_refs_r): Likewise.
2086         * emit-rtl.c (component_ref_for_mem_expr)
2087         (set_mem_attributes_minus_bitpos): Likewise.
2088         * tree-ssa-phiopt.c (conditional_replacement): Likewise.
2089         * gimplify.c (gimplify_conversion, goa_lhs_expr_p, gimplify_expr):
2090         Likewise.
2091         * c-typeck.c (default_function_array_conversion, build_indirect_ref)
2092         (build_function_call, pointer_diff, build_compound_expr)
2093         (c_finish_return): Likewise.
2094         * tree-vect-analyze.c (vect_determine_vectorization_factor): Likewise.
2095         * matrix-reorg.c (get_inner_of_cast_expr, may_flatten_matrices_1):
2096         Likewise.
2097         * tree-ssa-ifcombine.c (recognize_single_bit_test): Likewise.
2098         * expr.c (is_aligning_offset): Likewise.
2099         * tree-ssa-alias.c (is_escape_site): Likewise.
2100         * tree-stdarg.c (va_list_counter_bump, check_va_list_escapes)
2101         (check_all_va_list_escapes): Likewise.
2102         * tree-ssa-loop-ivopts.c (determine_base_object)
2103         (determine_common_wider_type): Likewise.
2104         * dojump.c (do_jump): Likewise.
2105         * tree-ssa-sccvn.c (simplify_unary_expression): Likewise.
2106         * tree-gimple.c (is_gimple_cast): Likewise.
2107         * fold-const.c (decode_field_reference, )
2108         (fold_sign_changed_comparison, fold_unary, fold_comparison)
2109         (fold_binary): Likewise.
2110         * tree-ssa-alias-warnings.c (find_alias_site_helper)
2111         (already_warned_in_frontend_p): Likewise.
2112         * builtins.c (get_memory_rtx, fold_builtin_next_arg): Likewise.
2113         * tree.c (really_constant_p, get_unwidened): Likewise.
2114         * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
2115         * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
2116         * tree-vrp.c (register_edge_assert_for_2, register_edge_assert_for_1):
2117         Likewise.
2118         * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Use
2119         CONVERT_EXPR_P.
2120         (CONVERT_EXPR_P): Define.
2121         (CASE_CONVERT): Define.
2122         
2123 2008-05-08  Kenneth Zadeck  <zadeck@naturalbridge.com>
2124
2125         PR middle-end/36117
2126         * dce.c (deletable_insn_p): Do not delete calls if df_in_progress.
2127         (delete_unmarked_insns): When deleting a call, call
2128         delete_unreachable_blocks.
2129         * rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
2130         RTL_CONST_OR_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P): Fixed doc.
2131
2132 2008-05-08  Richard Guenther  <rguenther@suse.de>
2133
2134         * doc/invoke.texi (-fdump-tree-salias): Remove documentation.
2135         (-ftree-salias): Likewise.
2136         (salias-max-implicit-fields): Remove param documentation.
2137         (salias-max-array-elements): Likewise.
2138         * tree-pass.h (pass_create_structure_vars): Remove.
2139         * params.h (SALIAS_MAX_IMPLICIT_FIELDS): Remove.
2140         (SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
2141         * tree-ssa-alias.c (create_structure_vars): Remove.
2142         (gate_structure_vars): Likewise.
2143         (pass_create_structure_vars): Likewise.
2144         (gate_build_alias): Likewise.
2145         (pass_build_alias): Adjust to run always and dump the function.
2146         * common.opt (ftree-salias): Hide.
2147         * passes.c (init_optimization_passes): Remove
2148         pass_create_structure_vars, adjust comment.
2149         * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): Remove.
2150         (PARAM_SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
2151         * opts.c (decode_options): Do not set flag_tree_salias.
2152         (common_handle_option): Add OPT_ftree_salias to the backward
2153         compatibility section.
2154
2155 2008-05-08  Richard Guenther  <rguenther@suse.de>
2156
2157         * tree-flow-inline.h (var_can_have_subvars): Move ...
2158         * tree-ssa-structalias.c (var_can_have_subvars): ... here.
2159         * tree-flow.h (var_can_have_subvars): Remove.
2160         (push_fields_onto_fieldstack): Remove.
2161         (sort_fieldstack): Likewise.
2162         (struct fieldoff): Move ...
2163         * tree-ssa-structalias.c (struct fieldoff): ... here.  Remove
2164         alias_set and base_for_components fields.
2165         (sort_fieldstack): Make static.
2166         (push_fields_onto_fieldstack): Likewise.  Remove code that
2167         handles anything but RECORD_TYPEs.  Remove alias_set and
2168         base_for_components handling.
2169         (create_variable_info_for): Adjust.
2170
2171 2008-05-08  Seongbae Park  <seongbae.park@gmail.com>
2172
2173         * common.opt (Wframe-larger-than=): Shorten the help message
2174         to one line.
2175         * doc/invoke.texi (Wframe-larger-than=): Add more description.
2176
2177 2008-05-08  Rafael Espindola  <espindola@google.com>
2178
2179         * tree-complex.c (expand_complex_div_wide): Don't create CONDs that
2180         trap.
2181         * tree-gimple.c (is_gimple_condexpr): Check that the expression doesn't
2182         trap and that both operands are gimple values.
2183         (canonicalize_cond_expr_cond): Use is_gimple_condexpr.
2184         * gcc/tree-eh.c (tree_could_trap_p): Correctly detect if a comparison
2185         is a fp operation.
2186
2187 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
2188
2189         * read-rtl.c (join_c_conditions): Return the first string if the
2190         two strings are equal.
2191
2192 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
2193
2194         * gensupport.h (pred_data): Add a "num_codes" field.
2195         (add_predicate_code): Declare.
2196         * gensupport.c (add_predicate_code): New function.
2197         (std_pred_table): Add an "allows_const_p" field.
2198         (std_preds): Set this field for predicates that allow RTX_CONST_OBJs.
2199         Remove the (incomplete) list of such codes from the codes field.
2200         (init_predicate_table): Use add_predicate_code.  Add all
2201         RTX_CONST_OBJs if allows_const_p is true.
2202         * genrecog.c (process_define_predicate): Use add_predicate_code.
2203
2204 2008-05-08  David Daney  <ddaney@avtrex.com>
2205             Richard Sandiford  <rsandifo@nildram.co.uk>
2206         
2207         * config/mips/mips.md (mips_expand_compare_and_swap_12): Handle
2208         special case of constant zero operands.
2209         * config/mips/mips.c (mips_expand_compare_and_swap_12): Zero extend
2210         old and new values.  Special case constant zero values.
2211         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Skip 'sync' if compare
2212         fails.
2213         (MIPS_COMPARE_AND_SWAP_12): Handle constant zero operands.
2214         (MIPS_COMPARE_AND_SWAP_12_0): New macro.
2215
2216 2008-05-08  Paolo Bonzini  <bonzini@gnu.org>
2217
2218         PR target/36090
2219         * simplify-rtx.c (simplify_plus_minus): Create CONST of
2220         similar RTX_CONST_OBJ before CONST_INT.
2221
2222 2008-05-08  Steve Ellcey  <sje@cup.hp.com>
2223
2224         * stmt.c (expand_stack_restore): Change sa mode if needed.
2225
2226 2008-05-08  Richard Guenther  <rguenther@suse.de>
2227
2228         * config/i386/i386-protos.h (ix86_return_in_memory): Adjust
2229         return type to bool.
2230         (ix86_sol10_return_in_memory): Likewise.
2231         (ix86_i386elf_return_in_memory): Likewise.
2232         (ix86_i386interix_return_in_memory): Likewise.
2233         * config/i386/i386.c (ix86_return_in_memory): Likewise.
2234         (ix86_sol10_return_in_memory): Likewise.
2235         (ix86_i386elf_return_in_memory): Likewise.
2236         (ix86_i386interix_return_in_memory): Likewise.
2237
2238 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
2239
2240         PR bootstrap/36180
2241         * calls.c (compute_argument_block_size ): Add ATTRIBUTE_UNUSED to
2242         fndecl argument.
2243         (emit_library_call_value_1): Add ATTRIBUTE_UNUSED to variable fndecl.
2244         * target-def.h: Check that TARGET_RETURN_IN_MEMORY isn't
2245         declared in front.
2246
2247 2008-05-08  Richard Guenther  <rguenther@suse.de>
2248
2249         * tree-data-ref.c (dr_analyze_alias): Do not set DR_SUBVARS.
2250         * tree-data-ref.h (struct dr_alias): Remove subvars field.
2251         (DR_SUBVARS): Remove.
2252         * tree-dfa.c (dump_subvars_for): Remove.
2253         (debug_subvars_for): Likewise.
2254         (dump_variable): Do not dump subvars.
2255         (remove_referenced_var): Do not remove subvars.
2256         * tree-flow-inline.h (clear_call_clobbered): SFTs no longer exist.
2257         (lookup_subvars_for_var): Remove.
2258         (get_subvars_for_var): Likewise.
2259         (get_subvars_at): Likewise.
2260         (get_first_overlapping_subvar): Likewise.
2261         (overlap_subvar): Likewise.
2262         * tree-flow.h (subvar_t): Remove.
2263         (struct var_ann_d): Remove subvars field.
2264         * tree-ssa-alias.c (mark_aliases_call_clobbered): Remove queued
2265         argument.  Remove special handling of SFTs.
2266         (compute_tag_properties): Likewise.
2267         (set_initial_properties): Likewise.
2268         (compute_call_clobbered): Likewise.
2269         (count_mem_refs): Likewise.
2270         (compute_memory_partitions): Likewise.
2271         (compute_flow_insensitive_aliasing): Likewise.
2272         (setup_pointers_and_addressables): Likewise.
2273         (new_type_alias): Likewise.
2274         (struct used_part): Remove.
2275         (used_portions): Likewise.
2276         (struct used_part_map): Likewise.
2277         (used_part_map_eq): Likewise.
2278         (used_part_map_hash): Likewise.
2279         (free_used_part_map): Likewise.
2280         (up_lookup): Likewise.
2281         (up_insert): Likewise.
2282         (get_or_create_used_part_for): Likewise.
2283         (create_sft): Likewise.
2284         (create_overlap_variables_for): Likewise.
2285         (find_used_portions): Likewise.
2286         (create_structure_vars): Likewise.
2287         * tree.def (STRUCT_FIELD_TAG): Remove.
2288         * tree.h (MTAG_P): Adjust.
2289         (struct tree_memory_tag): Remove base_for_components and
2290         unpartitionable flags.
2291         (struct tree_struct_field_tag): Remove.
2292         (SFT_PARENT_VAR): Likewise.
2293         (SFT_OFFSET): Likewise.
2294         (SFT_SIZE): Likewise.
2295         (SFT_NONADDRESSABLE_P): Likewise.
2296         (SFT_ALIAS_SET): Likewise.
2297         (SFT_UNPARTITIONABLE_P): Likewise.
2298         (SFT_BASE_FOR_COMPONENTS_P): Likewise.
2299         (union tree_node): Remove sft field.
2300         * alias.c (get_alias_set): Remove special handling of SFTs.
2301         * print-tree.c (print_node): Remove handling of SFTs.
2302         * tree-dump.c (dequeue_and_dump): Likewise.
2303         * tree-into-ssa.c (mark_sym_for_renaming): Likewise.
2304         * tree-nrv.c (dest_safe_for_nrv_p): Remove special handling of SFTs.
2305         * tree-predcom.c (set_alias_info): Do not set subvars.
2306         * tree-pretty-print.c (dump_generic_node): Do not handle SFTs.
2307         * tree-ssa-loop-ivopts.c (get_ref_tag): Likewise.
2308         * tree-ssa-operands.c (access_can_touch_variable): Likewise.
2309         (add_vars_for_offset): Remove.
2310         (add_virtual_operand): Remove special handling of SFTs.
2311         (add_call_clobber_ops): Likewise.
2312         (add_call_read_ops): Likewise.
2313         (get_asm_expr_operands): Likewise.
2314         (get_modify_stmt_operands): Likewise.
2315         (get_expr_operands): Likewise.
2316         (add_to_addressable_set): Likewise.
2317         * tree-ssa.c (verify_ssa_name): Do not handle SFTs.
2318         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
2319         * tree-vect-transform.c (vect_create_data_ref_ptr): Do not set subvars.
2320         * tree.c (init_ttree): Remove STRUCT_FIELD_TAG initialization.
2321         (tree_code_size): Remove STRUCT_FIELD_TAG handling.
2322         (tree_node_structure): Likewise.
2323         * tree-ssa-structalias.c (set_uids_in_ptset): Remove special
2324         handling of SFTs.
2325         (find_what_p_points_to): Likewise.
2326
2327 2008-05-08  Sa Liu  <saliu@de.ibm.com>
2328
2329         * config/spu/spu.md: Fixed subti3 pattern.
2330
2331 2008-05-08  Richard Guenther  <rguenther@suse.de>
2332
2333         PR middle-end/36154
2334         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
2335         sure to create a representative for trailing arrays for PTA.
2336
2337 2008-05-08  Richard Guenther  <rguenther@suse.de>
2338
2339         PR middle-end/36172
2340         * fold-const.c (operand_equal_p): Two objects which types
2341         differ in pointerness are not equal.
2342
2343 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
2344
2345         * calls.c (compute_argument_block_size): Add argument tree fndecl.
2346         (OUTGOING_REG_PARM_STACK_SPACE): Add function type argument.
2347         (emit_library_call_value_1): Add new variable fndecl initialized by
2348         NULL_TREE. It should be the decl type of orgfun, but this information
2349         seems not to be available here, so it uses the default calling abi.
2350         * config/arm/arm.c (arm_return_in_memory): Add fntype argumen.
2351         * config/arm/arm.h (RETURN_IN_MEMORY): Replace RETURN_IN_MEMORY
2352         by TARGET_RETURN_IN_MEMORY.
2353         * config/i386/i386-interix.h: Likewise.
2354         * config/i386/i386.h: Likewise.
2355         * config/i386/i386elf.h: Likewise.
2356         * config/i386/ptx4-i.h: Likewise.
2357         * config/i386/sol2-10.h: Likewise.
2358         * config/i386/sysv4.h: Likewise.
2359         * config/i386/vx-common.h: Likewise.
2360         * config/cris/cris.h: Removed #if 0 clause.
2361         * config/arm/arm-protos.h (arm_return_in_memory): Add fntype argument.
2362         * config/i386/i386-protos.h (ix86_return_in_memory): Add fntype
2363         argument.
2364         (ix86_sol10_return_in_memory): Likewise.
2365         (ix86_i386elf_return_in_memory): New.
2366         (ix86_i386interix_return_in_memory): New.
2367         * config/mt/mt-protos.h (mt_return_in_memory): New.
2368         * config/mt/mt.c: Likewise.
2369         * config/mt/mt.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
2370         (RETURN_IN_MEMORY):  Replace by TARGET_RETURN_IN_MEMORY.
2371         * config/bfin/bfin.h: Likewise.
2372         * config/bfin/bfin-protos.h (bfin_return_in_memory): Add fntype
2373         argument.
2374         * config/bfin/bfin.c: Likewise.
2375         * config/pa/pa.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
2376         * config/alpha/unicosmk.h: Likewise.
2377         * config/i386/cygming.h: Likewise.
2378         * config/iq2000/iq2000.h: Likewise.
2379         * config/mips/mips.h: Likewise.
2380         * config/mn10300/mn10300.h: Likewise.
2381         * config/rs6000/rs6000.h: Likewise.
2382         * config/score/score.h: Likewise.
2383         * config/spu/spu.h: Likewise.
2384         * config/v850/v850.h: Likewise.
2385         * defaults.h: Likewise.
2386         * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Adjust documentation.
2387         * expr.c (emit_block_move): Adjust use of
2388         OUTGOING_REG_PARM_STACK_SPACE.
2389         * function.c (STACK_DYNAMIC_OFFSET): Adjust use of
2390         OUTGOING_REG_PARM_STACK_SPACE.
2391         * targhooks.c (default_return_in_memory): Remove RETURN_IN_MEMORY.
2392
2393 2008-05-08  Jakub Jelinek  <jakub@redhat.com>
2394
2395         * tree-parloops.c (create_parallel_loop): Set OMP_RETURN_NOWAIT
2396         on OMP_RETURN for OMP_FOR.
2397
2398         PR debug/35896
2399         * dwarf2out.c (dw_expand_expr, common_check): Removed.
2400         (fortran_common): New function.
2401         (gen_variable_die): Call fortran_common instead of common_check,
2402         adjust for it returning tree instead of rtx.  Formatting.
2403
2404 2008-05-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
2405
2406         PR rtl/7335
2407         PR rtl/33826
2408         * see.c (see_copy_insn): Copy new pure const attributes for new call.
2409         * c-decl.c (merge_decls): Ditto.
2410         * postreload.c (record_opr_changes): Change CONST_OR_PURE_CALL_P
2411         to RTL_CONST_OR_PURE_CALL_P.
2412         * tree.c (define_local_buitin): Rename DECL_IS_PURE to DECL_PURE_P.
2413         Initialized DECL_LOOPING_CONST_PURE.
2414         (process_call_operands): Set tree_side_effects properly.
2415         * tree.h (TREE_READONLY_DECL_P): Removed.
2416         (DECL_IS_PURE): Renamed to DECL_PURE_P.
2417         (DECL_LOOPING_OR_CONST_P): New macro.
2418         (struct tree_function_decl): Added looping_const_or_pure_p.
2419         (ECF_*) Renumbered.
2420         (ECF_LOOPING_OR_CONST_P): New macro.
2421         * rtlanal.c (pure_const_p): Removed.
2422         * builtins.c (expand_builtin): Rename DECL_IS_PURE to DECL_PURE_P.
2423         * reorg.c (delete_prior_computation) Changed CONST_OR_PURE_CALL_P
2424         to RTL_CONST_CALL_P.
2425         * ipa-pure-const.c (pure_const_state_e): Added looping field.
2426         (check_decl, check_tree, check_call, scan_function): Initialize
2427         looping.
2428         (analyze_function): Rename DECL_IS_PURE to DECL_PURE_P.
2429         (static_execute): Set looping true for recursive functions.
2430         Undo setting state to IPA_NEITHER for recursive functions.
2431         * cse.c (cse_insn): 
2432         * ifcvt.c (noce_can_store_speculate_p): Changed
2433         CONST_OR_PURE_CALL_P and pure_call_p to RTL_CONST_CALL_P or 
2434         RTL_CONST_OR_PURE_CALL_P.
2435         * dse.c (scan_insn): Ditto.
2436         * local-alloc.c (validate_equiv_mem, memref_used_between_p): Ditto.
2437         * gcse.c (oprs_not_seen_p) Changed CONST_OR_PURE_CALL_P to
2438         RTL_CONST_OR_PURE_CALL_P.
2439         (store_killed_in_insn): Changed CONST_OR_PURE_CALL_P and
2440         pure_call_p to RTL_CONST_CALL_P.
2441         * gimplify.c (gimplify_call_expr): Clear side effects for
2442         non-looping pure and constant calls.
2443         * calls.c (emit_call_1): Set rtl flags from ecf flags.
2444         (flags_from_decl_or_type): Set ecf flags from decl flags.
2445         (initialize_argument_information): Turn off
2446         ECF_LOOPING_CONST_OR_PURE when turning off ECF_CONST.
2447         Change const to pure if callee_copies is true rather than just
2448         turning off const.
2449         (expand_call): Turn off ECF_LOOPING_PURE_CONST_CALL and remove old
2450         way of marking pure calls.
2451         (emit_library_call_value_1): Turn off ECF_LOOPING_PURE_CONST_CALL.
2452         Remove hack that was supposed to fix pr7335 and remove old
2453         way of marking pure calls.
2454         * emit-rtl.c (emit_copy_of_insn_after): Copy RTL_CONST_CALL_P,
2455         RTL_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P.
2456         * cselib.c (cselib_process_insn): Changed CONST_OR_PURE_CALL_P to
2457         RTL_CONST_OR_PURE_CALL_P.
2458         * tree-ssa-pre.c (can_value_number_call): Fixed spacing.
2459         * loop-invariant.c (find_exits, find_invariant_bb): Changed
2460         CONST_OR_PURE_CALL_P to RTL_CONST_OR_PURE_CALL_P.
2461         * sched-deps.c (schedule_analyze): Ditto.
2462         * rtl.h (struct rtx_def): Use call field, unchanging field, and
2463         return_val field of calls to represent pure and const function info.
2464         (CONST_OR_PURE_CALL_P): Deleted macro.
2465         (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
2466         RTL_LOOPING_CONST_OR_PURE_CALL_P, RTL_CONST_OR_PURE_P): New macros.
2467         * tree-inline.c (copy_body_r): Changed TREE_READONLY_DECL_P to
2468         TREE_READONLY.
2469         * tree-optimize.c (execute_fixup_cfg): Added test for
2470         ECF_LOOPING_CONST_OR_PURE.
2471         * c-common.c (handle_pure_attribute): Changed DECL_IS_PURE to
2472         DECL_PURE_P.
2473         * tree-cfg.c (update_call_expr_flags): Do not clear tree side
2474         effects for looping pure or const calls.
2475         (verify_gimple_expr): Added verification code. 
2476         * config/alpha/alpha.c (alpha_legitimize_address,
2477         alpha_emit_xfloating_libcall): Changed CONST_OR_PURE_CALL_P to
2478         RTL_CONST_CALL_P.
2479         * config/s390/s390.c (s390_emit_tls_call_insn): Ditto.
2480         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Ditto.
2481         * config/mips/mips.c (mips_call_tls_get_addr): Ditto.
2482         * cfgrtl.c (need_fake_edge_p): Changed CONST_OR_PURE_CALL_P to
2483         RTL_CONST_OR_PURE_CALL_P.
2484         * dce.c (deletable_insn_p): Allow non looping, non sibling, pure
2485         and const calls to be deleted.
2486
2487 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
2488
2489         PR target/35714
2490         * config/i386/mmx.md (mmx_subv2sf3): New expander.
2491         (*mmx_subv2sf3): Rename from mmx_subv2sf3 insn pattern.
2492         (*mmx_eqv2sf3): Rename from mmx_eqv2sf3 insn pattern.
2493         (mmx_eqv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
2494         to handle nonimmediate operands.
2495         (*mmx_paddwd): Rename from mmx_paddwd insn pattern.
2496         (mmx_paddwd): New expander.  Use ix86_fixup_binary_operands_no_copy
2497         to handle nonimmediate operands.
2498         (*mmx_pmulhrwv4hi3): Rename from mmx_pmulhrwv4hi3 insn pattern.
2499         (mmx_pmulhrwv4hi3): New expander.  Use
2500         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2501         (*sse2_umulv1siv1di3): Rename from sse2_umulv1siv1di3 insn pattern.
2502         (sse2_umulv1siv1di3): New expander.  Use
2503         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2504         (*mmx_eq<mode>3): Rename from mmx_eq<mode>3 insn pattern.
2505         (mmx_eq<mode>3): New expander.  Use
2506         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2507         (*mmx_uavgv8qi3): Rename from mmx_uavgv8qi3 insn pattern.
2508         (mmx_uavgv8qi3): New expander.  Use
2509         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2510         (*mmx_uavgv4hi3): Rename from mmx_uavgv4hi3 insn pattern.
2511         (mmx_uavgv4hi3): New expander.  Use
2512         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2513
2514         * config/i386/sse.md
2515         (sse_movhlps_exp): New expander.  Use ix86_fixup_binary_operands
2516         to handle nonimmediate operands.
2517         (sse_movlhps_exp): New expander.  Use ix86_fixup_binary_operands
2518         to handle nonimmediate operands.
2519         (sse_loadhps_exp): New expander.  Use ix86_fixup_binary_operands
2520         to handle nonimmediate operands.
2521         (sse_loadlps_exp): New expander.  Use ix86_fixup_binary_operands
2522         to handle nonimmediate operands.
2523         (sse2_unpckhpd_exp): New expander.  Use
2524         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2525         (sse2_unpcklpd_exp): New expander.  Use
2526         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2527         (sse_loadhpd_exp): New expander.  Use ix86_fixup_binary_operands
2528         to handle nonimmediate operands.
2529         (sse_loadlpd): New expander.  Use ix86_fixup_binary_operands
2530         to handle nonimmediate operands.
2531         (*sse2_<plusminus_insn><mode>3): Rename from
2532         sse2_<plusminus_insn><mode>3 insn pattern.
2533         (sse2_<plusminus_insn><mode>3): New expander.  Use
2534         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2535         (*sse2_umulv2siv2di3): Rename from sse2_umulv2siv2di3 insn pattern.
2536         (sse2_umulv2siv2di3): New expander.  Use
2537         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2538         (*sse4_1_mulv2siv2di3): Rename from sse4_1_mulv2siv2di3 insn pattern.
2539         (sse4_1_mulv2siv2di3): New expander.  Use
2540         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2541         (*sse2_pmaddwd): Rename from sse2_pmaddwd insn pattern.
2542         (sse2_pmaddwd): New expander.  Use
2543         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2544         (*sse2_eq<mode>3): Rename from sse2_eq<mode>3 insn pattern.
2545         (sse2_eq<mode>3): New expander.  Use
2546         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2547         (*sse4_1_eqv2di3): Rename from sse4_1_eqv2di3 insn pattern.
2548         (sse4_1_eqv2di3): New expander.  Use
2549         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2550         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
2551         (sse2_uavgv16qi3): New expander.  Use
2552         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2553         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
2554         (sse2_uavgv16qi3): New expander.  Use
2555         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2556         (*sse2_uavgv8hi3): Rename from sse2_uavgv8hi3 insn pattern.
2557         (sse2_uavgv8hi3): New expander.  Use
2558         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2559         (*ssse3_pmulhrswv8hi3): Rename from ssse3_pmulhrswv8hi3 insn pattern.
2560         (ssse3_pmulhrswv8hi3): New expander.  Use
2561         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2562         (*ssse3_pmulhrswv4hi3): Rename from ssse3_pmulhrswv4hi3 insn pattern.
2563         (ssse3_pmulhrswv4hi3): New expander.  Use
2564         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2565
2566         (<sse>_vm<plusminus_insn><mode>3): Do not use ix86_binary_operator_ok.
2567         (<sse>_vmmul<mode>3): Ditto.
2568         (divv4sf3): Do not use ix86_fixup_binary_operands_no_copy.
2569         (divv2df3): Ditto.
2570         (ssse3_pmaddubsw128): Use register_operand for operand 1.
2571         (ssse3_pmaddubsw): Ditto.
2572
2573         * config/i386/i386.c (struct_builtin_description)
2574         [IX86_BUILTIN_LOADHPS]: Use CODE_FOR_sse_loadhps_exp.
2575         [IX86_BUILTIN_STOREHPS]: Use CODE_FOR_sse_loadlps_exp.
2576         [IX86_BUILTIN_LOADHPD]: Use CODE_FOR_sse2_loadhpd_exp.
2577         [IX86_BUILTIN_LOADLPD]: Use CODE_FOR_sse2_loadlpd_exp.
2578         [IX86_BUILTIN_MOVHLPS]: Use CODE_FOR_sse_movhlps_exp.
2579         [IX86_BUILTIN_MOVLHPS]: Use CODE_FOR_sse_movlhps_exp.
2580         [IX86_BUILTIN_UNPCKHPD]: Use FOR_sse2_unpckhpd_exp.
2581         [IX86_BUILTIN_UNPCKLPD]: Use FOR_sse2_unpcklpd_exp.
2582         (ix86_fixup_binary_operands): Assert that src1
2583         and src2 must have the same mode when swapped.
2584         (ix86_expand_binop_builtin): Do not use ix86_fixup_binary_operands
2585         and ix86_binary_operator_ok.  Do not force operands in registers
2586         when optimizing.
2587
2588 2008-05-07  Jan Hubicka  <jh@suse.cz>
2589
2590         * cgraph.c (dump_cgraph_node): Update.
2591         * cgraph.h (cgraph_local_info): Break out inline summary.
2592         * cgraphunit.c (cgraph_process_new_functions): Use inliner analysis
2593         hook.
2594         * ipa-inline (inline_summary): New accestor function.
2595         (cgraph_clone_inlined_nodes, cgraph_check_inline_limits,
2596         cgraph_decide_inlining, compute_inline_parameters): Update.
2597         * ipa.c (cgraph_remove_unreachable_nodes): Remove statistics.
2598
2599 2008-05-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
2600
2601         Cleanup ColdFire scheduling support and add V4 pipeline model.
2602
2603         * config/m68k/m68k.md (UNSPEC_TIE): New constant.
2604         (define_attr cpu): Add cfv4 value.
2605         (define_attr type, define_attr type1): Merge into a single 'type'
2606         attribute.  Update all uses.
2607         (define_attr opx_type, define_attr opy_type, define_attr opx_access):
2608         Rearrange and update.  Rename value 'reg' to 'Rn', add value 'FPn'.
2609         Update all uses.
2610         (define_attr opx_mem, define_attr opy_mem): Remove.
2611         (define_attr op_mem): Clean up, update comment.
2612         (define_attr size): Use specific values instead of general int.
2613         (define_attr guess, define_attr split): Remove.  Update all uses.
2614         (movdf_internal, tstsi_internal, tsthi_internal, tstqi_internal,
2615         tst<mode>_68881, pushexthisi_const, movsi_const0_68000_10,
2616         movsi_const0_68040_60, movsi_const0, movsi_cf, movstrictqi_cf,
2617         zero_extendhisi2_cf, zero_extendqisi2_cfv4, cfv4_extendhisi2,
2618         68k_extendhisi2, extendqihi2, cfv4_extendqisi2, 68k_extendqisi2,
2619         floatsi<mode>2_68881, ftrunc<mode>2_68881, ftrunc<mode>2_cf,
2620         fix<mode>qi2_68881, fix<mode>hi2_68881, fix<mode>si2_68881,
2621         adddi_dishl32, addsi3_5200, add<mode>3_floatsi_68881,
2622         add<mode>3_floathi_68881, add<mode>3_floatqi_68881,
2623         add<mode>3_68881, add<mode>3_cf, subdi_dishl32, subsi3,
2624         sub<mode>3_floatsi_68881, sub<mode>3_floathi_68881,
2625         sub<mode>3_floatqi_68881, sub<mode>3_68881, sub<mode>3_cf,
2626         mulhi3, mulhisi3, mulhisisi3_s, mulsi3_68020, mulsi3_cf,
2627         umulhisi3, mulhisisi3_z, mul<mode>3_floatsi_68881,
2628         mul<mode>3_floathi_68881, mul<mode>3_floatqi_68881, fmul<mode>3_cf,
2629         div<mode>3_cf, sqrt<mode>2_cf, abs<mode>2_cf, clzsi2,
2630         one_cmplsi2_5200, subreghi1ashrdi_const32, ashrsi3, lshrsi3,
2631         bsetmemqi, bsetmemqi_ext, bclrmemqi, bclrmemqi_ext,
2632         beq, bne, bgt, blt, bordered, bunordered, buneq, bunge, bungt, bunle,
2633         bunlt, bltgt, tablejump_internal, call, non_symbolic_call_value,
2634         symbolic_call_value_jsr, symbolic_call_value_bsr, link):
2635         Update or set attributes.
2636         (stack_tie): New fake instruction.
2637
2638         * config/m68k/m68k.h (TUNE_CFV4): New macro.
2639         (m68k_sched_attr_size): Update declaration.
2640         (m68k_sched_attr_type2): Remove.
2641         (m68k_sched_address_bypass_p, m68k_sched_indexed_address_bypass_p):
2642         Declare new bypass predicates.
2643
2644         * config/m68k/m68k.c (m68k_sched_issue_rate,
2645         m68k_sched_first_cycle_multipass_dfa_lookahead): Declare hook
2646         implementations.
2647         (TARGET_SCHED_ISSUE_RATE,
2648         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Override hooks.
2649         (override_options): Handle scheduling for ColdFire V4 core.
2650         (m68k_expand_prologue): Emit stack_tie.
2651         (enum attr_op_type): Split value 'OP_TYPE_REG' to 'OP_TYPE_RN' and
2652         'OP_TYPE_FPN'.  Update all uses.
2653         (sched_guess_p): Remove.
2654         (sched_address_type): Handle symbolic addresses.
2655         (sched_get_operand): New static function.
2656         (sched_operand_type): Merge into sched_attr_op_type.
2657         (sched_attr_op_type): Handle FP registers, handle quick constants,
2658         update.
2659         (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type): Update.
2660         (m68k_sched_attr_size): Update.  Move logic to ...
2661         (sched_get_attr_size_int): New static function.
2662         (sched_get_opxy_mem_type): New static function.
2663         (m68k_sched_attr_op_mem): Update.
2664         (m68k_sched_attr_type2): Remove.
2665         (sched_cfv4_bypass_data): New static variable.
2666         (m68k_sched_adjust_cost): Handle ColdFire V4 bypass.
2667         (m68k_sched_issue_rate): Implement scheduler hook.
2668         (struct _sched_ib: enabled_p): New field.
2669         (m68k_sched_variable_issue): Update.  Handle V4.
2670         (SCHED_DUMP_TODO, SCHED_DUMP_DONE, SCHED_DUMP_NOTHING,
2671         sched_dump_class_func_t, sched_dump_split_class,
2672         sched_dump_dfa_guess_unit_code, sched_dump_dfa_state,
2673         sched_dump_dfa_class, m68k_sched_dump): Remove.
2674         (m68k_sched_first_cycle_multipass_dfa_lookahead): Implement scheduler
2675         hook.
2676         (m68k_sched_init_global): Remove statisctics dumping, introduce
2677         sanity check that all instructions have pipeline reservations.  Handle
2678         ColdFire V4 core.
2679         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
2680         Handle ColdFire V4 core.
2681         (sched_mem_operand_p, sched_get_reg_operand, sched_get_mem_operand):
2682         New static functions.
2683         (m68k_sched_address_bypass_p): New bypass predicate.
2684         (sched_get_indexed_address_scale): New static function.
2685         (m68k_sched_indexed_address_bypass_p): New bypass predicate.
2686
2687         * cf.md: Update comments.
2688         (define_attr type2): Remove.  Use 'type' attribute instead.
2689         Update all uses.
2690         (cf_ib): Rename to cfv123_ib.  Update all uses.
2691         (cf_oep): Rename to cfv123_oep.  Update all uses.
2692         (cf_chr): Rename to cfv123_chr.  Update all uses.
2693         (cf_mem): Rename to cfv123_mem.  Update all uses.
2694         (cf_mac): Move to more appropriate place.
2695         (cfv123_guess): New automaton and cpu_unit.
2696         (cfv123_*, cfv12_*, cfv1_*, cfv2_*, cfv3_*): Use type attribute.
2697         Update uses of 'size' attribute.  Handle before reload scheduling.
2698         (cfv123_guess): New dummy reservation for unhandled instructions.
2699         (cfv4_*): Pipeline description of ColdFire V4 core.
2700         (ignore): New reservation to handle 'ignore' type.
2701
2702 2008-05-07  Ian Lance Taylor  <iant@google.com>
2703
2704         PR middle-end/36013
2705         * gimplify.c (find_single_pointer_decl_1): Don't look through
2706         indirections.
2707         (find_single_pointer_decl): Adjust comments.
2708
2709 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
2710
2711         PR middle-end/36137
2712         * fold-const.c (fold_binary): Use STRIP_SIGN_NOPS instead of
2713         STRIP_NOPS on arguments even for MIN_EXPR and MAX_EXPR.
2714
2715         PR middle-end/36106
2716         * omp-low.c (expand_omp_atomic_pipeline): Load value using the
2717         integral type rather than floating point, then VIEW_CONVERT_EXPR
2718         to the floating point type.
2719
2720 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
2721
2722         * config/i386/i386.c (ix86_expand_copysign): Force non-zero constant
2723         TFmode op0 to register.
2724
2725 2008-05-07  Alan Modra  <amodra@bigpond.net.au>
2726
2727         * c-decl.c (grokdeclarator): Comment typo.
2728
2729 2008-05-06  Aldy Hernandez  <aldyh@redhat.com>
2730
2731         * tree-flow.h: Remove prototype for computed_goto_p.
2732         * tree-cfg.c (computed_goto_p): Make static.
2733
2734 2008-05-06  H.J. Lu  <hongjiu.lu@intel.com>
2735
2736         PR target/35657
2737         * config/i386/i386.c (contains_128bit_aligned_vector_p): Renamed to ...
2738         (contains_aligned_value_p): This.  Handle _Decimal128.
2739         (ix86_function_arg_boundary): Only align _Decimal128 to its
2740         natural boundary and handle it properly.
2741
2742 2008-05-06  Martin Jambor  <mjambor@suse.cz>
2743
2744         * ipa-cp.c (ipcp_method_orig_node): Renamed to ipcp_get_orig_node.
2745         (ipcp_method_is_cloned): Renamed to ipcp_node_is_clone
2746         (ipcp_method_set_orig_node): Removed.
2747         (ipcp_cval_get_cvalue_type): Removed.
2748         (ipcp_method_get_scale): Renamed to ipcp_get_node_scale.
2749         (ipcp_method_set_scale): Renamed to ipcp_set_node_scale.
2750         (ipcp_cval_set_cvalue_type): Removed.
2751         (ipcp_cval_get_cvalue): Removed.
2752         (ipcp_cval_set_cvalue): Removed.
2753         (ipcp_type_is_const): Renamed to ipcp_lat_is_const.
2754         (ipcp_cval_equal_cvalues): Renamed to ipcp_lats_are_equal
2755         (ipcp_lats_are_equal): Changed parameters to two ipcp_lattice's
2756         (ipcp_cval_meet): Renamed to ipa_lattice_meet
2757         (ipcp_cval_changed): Changed to use ipcp_lat_is_const
2758         (ipcp_method_cval): Renamed to ipcp_get_ith_lattice
2759         (ipcp_get_ith_lattice): Changed parameters.
2760         (ipcp_cval_compute): Renamed to ipcp_lattice_from_jfunc
2761         (ipcp_lattice_from_jfunc): Changed parameters.
2762         (ipcp_redirect): Local lattice pointer instead of lattice type variable.
2763         (ipcp_method_cval_print): Added temporary variable info.
2764         (ipcp_redirect): Removed already unused local variable caller.
2765         (ipcp_redirect): New temporary variable orig_callee_info
2766         (ipcp_redirect): Removed newly unused local variable callee.
2767         (ipcp_redirect): Removed (a bit confusing) local variable type.
2768         (ipcp_insert_stage): Added local variable info.
2769         (ipcp_cval_changed): Renamed to ipcp_lattice_changed, parameters 
2770         renamed too
2771         (ipcp_formal_create): Removed.
2772         (ipcp_method_cval_set): Removed.
2773         (ipcp_propagate_stage): Renamed lattice variables.
2774         (ipcp_method_cval_set_cvalue_type): Removed.
2775         (ipcp_method_cval_print): Renamed to ipcp_print_all_lattices
2776         (ipcp_print_all_lattices): Changed printed strings to refer to 
2777         lattices rather than cvals.
2778         (ipcp_method_cval_init): Renamed to ipcp_initialize_node_lattices
2779         (ipcp_propagate_const): Changed formal parameters.
2780         (build_const_val): Changed formal parameters.
2781         (ipcp_insert_stage): Removed useless variable cvalue
2782         (build_const_val): Changed formal parameters.
2783         (ipcp_method_compute_scale): Renamed to ipcp_compute_node_scale
2784         (ipcp_after_propagate): Renamed to ipcp_change_tops_to_bottom
2785         (ipcp_callsite_param_print): Renamed to ipcp_print_all_jump_functions
2786         (ipcp_profile_mt_count_print): Renamed to ipcp_print_func_profile_counts
2787         (ipcp_print_func_profile_counts): Changed string from "method" to 
2788         "function"
2789         (ipcp_profile_cs_count_print): Renamed to ipcp_print_call_profile_counts
2790         (ipcp_profile_edge_print): Renamed to ipcp_print_edge_profiles
2791         (ipcp_profile_bb_print): Renamed to ipcp_print_bb_profiles
2792         (ipcp_structures_print): Renamed to ipcp_print_all_structures
2793         (ipcp_profile_print): Renamed to ipcp_print_profile_data
2794         (ipcp_lat_is_const): Changed parameters and made inline.
2795         (ipcp_replace_map_create): Renamed to ipcp_create_replace_map
2796         (ipcp_redirect): Renamed to ipcp_need_redirect_p
2797         (ipcp_need_redirect_p): Calls ipcp_lat_is_const instead of using 
2798         the predicate condition directly
2799         (ipcp_propagate_stage): Added local variable args. Removed local
2800         variable callee.  (Both are mere code simplifications.)
2801         (ipcp_method_dont_insert_const): Renamed to
2802         ipcp_node_not_modifiable_p.
2803         (ipcp_node_not_modifiable_p): Made inline.
2804         (ipcp_cloned_create): Renamed to ipcp_init_cloned_node
2805         (ipcp_propagate_const): Renamed to ipcp_propagate_one_const
2806         (ipcp_print_all_lattices): Removed variable cvalue
2807         (ipcp_method_scale_print): Renamed to ipcp_function_scale_print
2808         Updated comments.
2809
2810 2008-05-06  Olivier Hainque  <hainque@adacore.com>
2811
2812         * tree-sra.c (try_instantiate_multiple_fields): Early return
2813         if field has POINTER_TYPE.
2814
2815 2008-05-06  Kai Tietz  <kai.tietz@onevision.com>
2816
2817         * config/i386/i386.c (output_set_got): Fix for x86_64 output_emit_asm
2818         by using 'q' specifier for instruction.
2819         (ix86_file_end): Replaced case TARGET_64BIT_MS_ABI by TARGET_64BIT.
2820
2821 2008-05-06  Anatoly Sokolov <aesok@post.ru>
2822
2823         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
2824         Change mode of zero_extract from QImode to HImode.
2825         (sign bit tests peepholes): (Ditto.).
2826
2827 2008-05-06  Uros Bizjak  <ubizjak@gmail.com>
2828
2829         * config/i386/mmx.md: Remove double backslashes from asm templates.
2830         (*mmx_addv2sf3): Rename from mmx_addv2sf3 insn pattern.
2831         (mmx_addv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
2832         to handle nonimmediate operands.
2833         (*mmx_mulv2sf3): Rename from mmx_mulv2sf3 insn pattern.
2834         (mmx_mulv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
2835         to handle nonimmediate operands.
2836         (*mmx_<code>v2sf3_finite): New insn pattern.
2837         (*mmx_<code>v2sf3): Rename from mmx_<code>v2sf3 insn pattern.
2838         (mmx_<code>v2sf3): New expander.  Use
2839         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2840         (mmx_<plusminus_insn><mode>3): New expander.  Use
2841         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2842         (*mmx_<plusminus_insn><mode>3): New insn pattern.
2843         (mmx_add<mode>3): Removed.
2844         (mmx_ssadd<mode>3): Ditto.
2845         (mmx_usadd<mode>3): Ditto.
2846         (mmx_sub<mode>3): Ditto.
2847         (mmx_sssub<mode>3): Ditto.
2848         (mmx_ussub<mode>3): Ditto.
2849         (*mmx_mulv4hi3): Rename from mmx_mulv4hi3 insn pattern.
2850         (mmx_mulv4hi3): New expander.  Use ix86_fixup_binary_operands_no_copy
2851         to handle nonimmediate operands.
2852         (*mmx_smulv4hi3_highpart): Rename from mmx_smulv4hi3_highpart
2853         insn pattern.
2854         (mmx_smulv4hi3_highpart): New expander.  Use
2855         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2856         (*mmx_umulv4hi3_highpart): Rename from mmx_umulv4hi3_highpart
2857         insn pattern.
2858         (mmx_umulv4hi3_highpart): New expander.  Use
2859         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2860         (*mmx_<code>v4hi3): Rename from mmx_<code>v4hi3 insn pattern.
2861         (mmx_<code>v4hi3): New expander.  Use
2862         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2863         (*mmx_<code>v8qi3): Rename from mmx_<code>v8qi3 insn pattern.
2864         (mmx_<code>v8qi3): New expander.  Use
2865         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2866         (*mmx_<code><mode>3): Rename from mmx_<code><mode>3 insn pattern.
2867         (mmx_<code><mode>3): New expander.  Use
2868         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2869
2870 2008-05-05  Jan Hubicka  <jh@suse.cz>
2871
2872         PR tree-optimization/36118
2873         * passes.c (pass_init_dump_file): Fix dump header.
2874
2875 2008-05-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2876
2877         PR middle-end/36141
2878         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't create
2879         VCE for function decls.
2880
2881 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
2882
2883         * config/i386/sse.md (sse2_<plusminus_insn><mode>3): Fix a typo.
2884
2885 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
2886
2887         * config/i386/i386.md (sat_plusminus): New.
2888         (plusminus_insn): Likewise.
2889         (plusminus_mnemonic): Likewise.
2890         (addsub): Removed.
2891         (comm): Add ss_plus, us_plus, ss_minus and us_minus.
2892         (*<addsub><mode>3_cc_overflow): Renamed to ...
2893         (*<plusminus_insn><mode>3_cc_overflow): This.
2894         (*<addsub>si3_zext_cc_overflow): Renamed to ...
2895         (*<plusminus_insn>si3_zext_cc_overflow): This.
2896
2897         * config/i386/sse.md (<addsub><mode>3): Renamed to ...
2898         (<plusminus_insn><mode>3): This.
2899         (*<addsub><mode>3): Renamed to ...
2900         (*<plusminus_insn><mode>3): This.
2901         (<sse>_vm<addsub><mode>3): Renamed to ...
2902         (<sse>_vm<plusminus_insn><mode>3): This.
2903         (sse3_h<addsub>v4sf3): Renamed to ...
2904         (sse3_h<plusminus_insn>v4sf3): This.
2905         (sse3_h<addsub>v2df3): Renamed to ...
2906         (sse3_h<plusminus_insn>v2df3): This.
2907         (<plusminus_insn><mode>3): New.
2908         (*<plusminus_insn><mode>3): Likewise.
2909         (sse2_<plusminus_insn><mode>3): Likewise.
2910         (add<mode>): Removed.
2911         (*add<mode>3): Likewise.
2912         (sse2_ssadd<mode>3): Likewise.
2913         (sse2_usadd<mode>3): Likewise.
2914         (sub<mode>3): Likewise.
2915         (*sub<mode>3): Likewise.
2916         (sse2_sssub<mode>3): Likewise.
2917         (sse2_ussub<mode>3): Likewise.
2918
2919 2008-05-05  Benjamin Kosnik  <bkoz@redhat.com>
2920
2921         * gthr-single.h: Add in required interface elements as per gthr.h.
2922         Add stub types for __gthread_key_t, __gthread_once_t. Add defines
2923         for __GTHREAD_ONCE_INIT, __GTHREAD_RECURSIVE_MUTEX_INIT.
2924         Generalize UNUSED macro. 
2925         (__gthread_once): Add.
2926         (__gthread_key_create): Add.
2927         (__gthread_key_delete): Add.
2928         (__gthread_getspecific): Add.
2929         (__gthread_setspecific): Add.
2930         
2931 2008-05-05  Andrew Pinski  <Andrew.Pinski@playstation.sony.com>
2932
2933         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If we have
2934         the same size types for the indirect reference on the rhs, then
2935         create a VCE.
2936
2937 2008-05-05  Uros Bizjak  <ubizjak@gmail.com>
2938
2939         * config/i386/i386.md
2940         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Use only
2941         one insn template instead of template series.
2942         (*xordi_1_rex64): Ditto.
2943         (*xordi_2_rex64): Ditto.
2944
2945 2008-05-05  Ira Rosen  <irar@il.ibm.com>
2946
2947         PR tree-optimization/36119
2948         * tree-vect-transform.c (vectorizable_assignment): Set NCOPIES to 1
2949         in case of SLP.
2950
2951 2008-06-04  Jan Hubicka  <jh@suse.cz>
2952
2953         tree-optimization/36100
2954         * tree-pass.h (pass_O0_always_inline): Declare.
2955         * ipa-inline.c (inline_transform): Remove dead code.
2956         (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
2957         pass_O0_always_inline): New.
2958         * passes.c (init_optimization_passes): Add pass_O0_always_inline.
2959
2960 2008-05-04  Kai Tietz  <kai.tietz@onevision.com>
2961
2962         * config/i386/i386.c (x86_output_mi_thunk): Use movq alternative
2963         mnemonic in this_param move for TARGET_64BIT.
2964
2965 2008-05-04  Uros Bizjak  <ubizjak@gmail.com>
2966
2967         * config/i386/i386.md (*strmovsi_1): Simplify asm alternatives.
2968         (*strmovsi_rex_1): Ditto.
2969         (*strsetsi_1): Ditto.
2970         (*strsetsi_rex_1): Ditto.
2971
2972         (add<mode>cc): Macroize expander from addqicc, addhicc, addsicc and
2973         adddicc expanders using SWI mode iterator.
2974
2975 2008-05-04  H.J. Lu  <hongjiu.lu@intel.com>
2976
2977         PR target/36121
2978         * config/i386/i386.c (ix86_expand_special_args_builtin): Remove three
2979         argument handling.
2980
2981 2008-05-04  David S. Miller  <davem@davemloft.net>
2982
2983         * config.gcc (sparc*-*-*): Always set need_64bit_hwint to yes.
2984         (sparc*-*-linux*): Use linux.h in tm_file.
2985         (sparc-*-linux*): If 'enabled_targets' is 'all', build a bi-arch
2986         compiler defaulting to 32-bit.
2987         (sparc*-*-*): Remove explicit target settings of need_64bit_hwint,
2988         no longer needed.
2989         * config/sparc/linux.h: Remove definitions now obtained
2990         properly from linux.h
2991         * config/sparc/linux64.h: Likewise.
2992         (ASM_CPU_DEFAULT_SPEC): Change this to ASM_CPU64_DEFAULT_SPEC, we
2993         don't want this setting for 32-bit builds in a biarch compiler.
2994         * doc/install.texi: Add sparc-linux to list of targets
2995         supporting --enable-targets=all.
2996
2997 2008-05-03  Andrew Pinski  <pinskia@gmail.com>
2998
2999         * Makefile.in (tree-ssa-phiprop.o): Fix dependencies.
3000
3001 2008-05-03  H.J. Lu  <hongjiu.lu@intel.com>
3002
3003         * config/i386/i386.c (ix86_builtin_type): Move V4SI_FTYPE_V4SF
3004         after V4SI_FTYPE_V8HI.
3005         (ix86_init_mmx_sse_builtins): Move case V4HI_FTYPE_V4HI after
3006         case V4SI_FTYPE_V2DF.
3007
3008 2008-05-03  Kenneth Zadeck  <zadeck@naturalbridge.com>
3009
3010         * doc/invoke.texi (max-flow-memory-locations): Removed.
3011         * params.def (PARAM_MAX_FLOW_MEMORY_LOCATIONS): Removed.
3012         
3013 2008-05-03  Richard Guenther  <rguenther@suse.de>
3014
3015         PR middle-end/34973
3016         * opts.c (set_Wstrict_aliasing): Handle the turn-off case.
3017
3018 2008-05-02  David S. Miller  <davem@davemloft.net>
3019
3020         * config.gcc (need_64bit_hwint): Document libcpp dependency.
3021
3022 2008-05-02  Simon Baldwin <simonb@google.com>
3023
3024         PR bootstrap/36108
3025         * c-common.h (warn_array_subscript_range): Removed.
3026         * c-common.c (warn_array_subscript_range): Ditto.
3027         * tree-vrp.c (check_array_ref): Revert to ignoring arrays with size 2.
3028         * c-typeck.c (build_array_ref): Remove warn_array_subscript_range.
3029
3030 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
3031
3032         * config/i386/i386.c (ix86_special_builtin_type): New.
3033         (bdesc_special_args): Likewise.
3034         (ix86_expand_special_args_builtin): Likewise.
3035         (ix86_init_mmx_sse_builtins): Updated.
3036         (ix86_expand_builtin): Updated.
3037         (ix86_expand_store_builtin): Removed.
3038         (ix86_expand_unop_builtin): Likewise.
3039
3040         * config/i386/mm3dnow.h (__v2sf): Moved to ...
3041         * config/i386/mmintrin.h (__v2sf): Here.
3042
3043         * config/i386/xmmintrin.h (_mm_loadh_pi): Replace __v2si with
3044         const __v2sf.
3045         (_mm_loadl_pi): Likewise.
3046         (_mm_storeh_pi): Replace __v2si with __v2sf.
3047         (_mm_storel_pi): Likewise.
3048
3049         * doc/extend.texi: Correct __builtin_ia32_loadhps,
3050         __builtin_ia32_loadlps, __builtin_ia32_storehps,
3051         __builtin_ia32_storelps, __builtin_ia32_loadhpd and
3052         __builtin_ia32_loadlpd.
3053
3054 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
3055
3056         * config/i386/i386.c (ix86_builtin_type): Add FLOAT_FTYPE_FLOAT,
3057         V4SF_FTYPE_V4SF_VEC_MERGE and V2DF_FTYPE_V2DF_VEC_MERGE.
3058         (bdesc_args): Updated.  Add scalar SSE builtins with vec_merge.
3059         (ix86_init_mmx_sse_builtins): Updated.
3060         (ix86_expand_args_builtin): Likewise.
3061         (ix86_expand_builtin): Likewise.
3062         (ix86_expand_unop1_builtin): Renamed to ...
3063         (ix86_expand_unop_vec_merge_builtin): This.
3064
3065 2008-05-01  Jan Hubicka  <jh@suse.cz>
3066
3067         PR bootstrap/36100
3068         * ipa-inline.c (inline_generate_summary): Make static.
3069         (inline_transform): Do not call inlining at -O0; make static.
3070         * passes.c (execute_todo): Add sanity check.
3071         (execute_one_ipa_transform_pass): Execute proper flags.
3072
3073 2008-05-01  Eric Botcazou  <ebotcazou@adacore.com>
3074
3075         * tree.h (TYPE_NONALIASED_COMPONENT): Expand comment.
3076         (DECL_NONADDRESSABLE_P): Likewise.
3077         * alias.c (record_component_aliases): Fix comment.
3078
3079 2008-05-01  Simon Baldwin <simonb@google.com>
3080
3081         * c-common.h (warn_array_subscript_range): New function.
3082         * c-common.c (warn_array_subscript_range): Ditto.
3083         * tree-vrp.c (check_array_ref): Corrected code to agree with
3084         comment, ignoring only arrays of size 0 or size 1.
3085         * c-typeck.c (build_array_ref): Call warn_array_subscript_range.
3086
3087 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
3088
3089         * config/i386/i386.c (ix86_builtin_type): Replace
3090         DI_FTYPE_DI_DI_INT with V1DI2DI_FTYPE_V1DI_V1DI_INT.
3091         (bdesc_args): Updated.
3092         (ix86_init_mmx_sse_builtins): Likewise.
3093         (ix86_expand_args_builtin): Likewise.
3094
3095         * config/i386/tmmintrin.h (_mm_alignr_pi8): Replace long long
3096         with __v1di.
3097
3098         * doc/extend.texi: Correct __builtin_ia32_palignr.
3099
3100 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
3101
3102         PR target/36095
3103         * config/i386/i386.c (bdesc_crc32): Removed.
3104         (ix86_expand_crc32): Likewise.
3105         (ix86_builtin_type): Replace V2DI2TI_FTYPE_V2DI2TI_INT with
3106         V2DI2TI_FTYPE_V2DI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT with
3107         V2DI2TI_FTYPE_V2DI_V2DI_INT.  Add UINT64_FTYPE_UINT64_UINT64,
3108         UINT_FTYPE_UINT_UINT, UINT_FTYPE_UINT_USHORT and
3109         UINT_FTYPE_UINT_UCHAR.
3110         (bdesc_args): Updated. Add crc32 builtins.
3111         (ix86_init_mmx_sse_builtins): Updated.
3112         (ix86_expand_args_builtin): Updated to support subreg.
3113
3114         * doc/extend.texi: Correct __builtin_ia32_crc32di.
3115
3116 2008-05-01  Jan Hubicka  <jh@suse.cz>
3117
3118         * tree-pass.h (opt_pass): Add IPA_PASS.
3119         (varpool_node, cgraph_node): Forward declare.
3120         (ipa_opt_pass): Define.
3121         (pass_ipa_inline): Turn into ipa_opt_pass.
3122         (pass_apply_inline): Remove.
3123         * ipa-inline.c (pass_ipa_inline): Turn into ipa_opt_pass.
3124         (apply_inline): Turn into ....
3125         (inline_transform): ... this one.
3126         (inline_generate_summary): New function.
3127         (pass_apply_inline): Remove.
3128         * function.h (ipa_opt_pass): Forward declare structure; typedef;
3129         vector.
3130         (struct function): Add ipa_transforms_to_apply.
3131         * passes.c (register_one_dump_file): Work on IPA_PASS.
3132         (init_optimization_passes): Remove pass_inline_parameters and
3133         pass_apply_inline.
3134         (pass_init_dump_file, pass_fini_dump_file): Break out from ....
3135         (execute_one_pass) ... here; apply transforms when possible.
3136         (add_ipa_transform_pass, execute_ipa_summary_asses,
3137         execute_one_ipa_transform_pass): New.
3138         (execute_ipa_pass_list): Update for IPA_PASS type.
3139
3140 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
3141
3142         * config/i386/i386.c (ix86_builtin_type): Add
3143         V2DI_FTYPE_V2DI_V16QI, V2DI_FTYPE_V2DI_UINT_UINT and
3144         V2DI_FTYPE_V2DI_V2DI_UINT_UINT.
3145         (bdesc_args): Add SSE4a builtins.
3146         (ix86_init_mmx_sse_builtins): Updated.
3147         (ix86_expand_args_builtin): Likewise.
3148         (ix86_expand_builtin): Likewise.
3149
3150 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
3151
3152         * config/i386/i386.c (ix86_builtin_type): Add
3153         V8HI_FTYPE_V8HI_V8HI_COUNT, V8HI_FTYPE_V8HI_SI_COUNT,
3154         V4SI_FTYPE_V4SI_V4SI_COUNT, V4SI_FTYPE_V4SI_SI_COUNT,
3155         V4HI_FTYPE_V4HI_V4HI_COUNT, V4HI_FTYPE_V4HI_SI_COUNT,
3156         V2DI_FTYPE_V2DI_V2DI_COUNT, V2DI_FTYPE_V2DI_SI_COUNT,
3157         V2SI_FTYPE_V2SI_V2SI_COUNT, V2SI_FTYPE_V2SI_SI_COUNT,
3158         V1DI_FTYPE_V1DI_V1DI_COUNT, V1DI_FTYPE_V1DI_SI_COUNT,
3159         V8HI_FTYPE_V8HI_INT, V4SI_FTYPE_V4SI_INT, V4HI_FTYPE_V4HI_INT,
3160         V2DI2TI_FTYPE_V2DI2TI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT
3161         and DI_FTYPE_DI_DI_INT.
3162         (bdesc_args): Add MMX/SSE shift, shuffle and palignr builtins.
3163         (ix86_init_mmx_sse_builtins): Updated.
3164         (ix86_expand_args_builtin): Likewise.
3165         (ix86_expand_builtin): Likewise.
3166         (ix86_expand_binop_imm_builtin): Removed.
3167
3168         * doc/extend.texi: Correct __builtin_ia32_palignr128.
3169
3170 2008-04-30  Richard Guenther  <rguenther@suse.de>
3171
3172         PR tree-optimization/32921
3173         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Disambiguate with TBAA.
3174
3175 2008-04-30  Richard Sandiford  <rsandifo@nildram.co.uk>
3176
3177         * config/arm/arm.c (arm_unwind_emit): Use
3178         crtl->all_throwers_are_sibcalls instead of
3179         cfun->all_throwers_are_sibcalls.
3180         (arm_output_fn_unwind): Likewise.
3181         * config/frv/frv.c (frv_stack_info): Use crtl->uses_pic_offset_table
3182         instead of cfun->uses_pic_offset_table.
3183         (frv_expand_prologue): Likewise.
3184         (frv_frame_pointer_required): Likewise.
3185         (frv_expand_fdpic_call): Likewise.
3186         (frv_emit_movsi): Likewise.
3187         * config/iq2000/iq2000.c (iq2000_expand_prologue): Use
3188         cfun->returns_pcc_struct instead of
3189         current_function_returns_pcc_struct.
3190         * config/m32c/m32c.c (need_to_save): Use crtl->calls_eh_return
3191         instead of cfun->calls_eh_return.
3192         (m32c_pushm_popm): Likewise.
3193         * config/xtensa/xtensa.h (cfun->calls_alloca): Remove bogus
3194         "extern" declaration.
3195
3196 2008-04-30  Richard Guenther  <rguenther@suse.de>
3197
3198         PR tree-optimization/21636
3199         * tree-ssa-ccp.c (ccp_fold): Handle &p->x with p being a
3200         constant address.
3201         (evaluate_stmt): Print the likely value.
3202         (ccp_visit_stmt): Avoid excessive vertical spacing.
3203
3204 2008-04-30  Rafael Espindola  <espindola@google.com>
3205
3206         * builtins.c (fold_call_expr): Return realret.
3207         * tree-ssa-threadedge.c
3208         (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
3209         __builtin_object_size.
3210
3211 2008-04-30  Seongbae Park  <seongbae.park@gmail.com>
3212
3213         * gcc.c (wrapper_string): New variable.
3214         (insert_wrapper): New function.
3215         (execute): New option -wrapper.
3216         * doc/invoke.texi (Overall Options): New driver option -wrapper.
3217
3218 2008-04-30  Nathan Froyd  <froydnj@codesourcery.com>
3219
3220         * config/rs6000/crtresgpr.asm, config/rs6000/crtresxgpr.asm,
3221         config/rs6000/crtsavgpr.asm, config/rs6000/crtresfpr.asm,
3222         config/rs6000/crtresxfpr.asm, config/rs6000/crtsavfpr.asm: Break out
3223         from...
3224         * config/rs6000/crtsavres.asm: ...here.  Remove unneeded file.
3225         * config/rs6000/e500crtres32gpr.asm, config/rs6000/e500crtres64gpr.asm,
3226         config/rs6000/e500crtres64gprctr.asm,
3227         config/rs6000/e500crtrest32gpr.asm, config/rs6000/e500crtrest64gpr.asm,
3228         config/rs6000/e500crtresx32gpr.asm, config/rs6000/e500crtresx64gpr.asm,
3229         config/rs6000/e500crtsav32gpr.asm, config/rs6000/e500crtsav64gpr.asm,
3230         config/rs6000/e500crtsav64gprctr.asm,
3231         config/rs6000/e500crtsavg32gpr.asm, config/rs6000/e500crtsavg64gpr.asm,
3232         config/rs6000/e500crtsavg64gprctr.asm: New files.
3233         * config/rs6000/t-ppccomm: Add build rules for new files.
3234         (LIB2FUNCS_STATIC_EXTRA): Add new files.
3235         * config/rs6000/t-netbsd: Add build rules for new files.
3236         (LIB2FUNCS_STATIC_EXTRA): New variable.
3237         * config/rs6000/sysv4.h (ENDFILE_SPEC): Don't include crtsavres.o
3238         (CRTSAVRES_DEFAULT_SPEC): Likewise.
3239         * config/rs6000/netbsd.h (ENDFILE_SPEC): Likewise.
3240
3241 2008-04-30  H.J. Lu  <hongjiu.lu@intel.com>
3242
3243         * config/i386/i386.c (ix86_builtin_type): Add
3244         FLOAT128_FTYPE_FLOAT128_FLOAT128, V16QI_FTYPE_V16QI_V16QI,
3245         V16QI_FTYPE_V8HI_V8HI, V8QI_FTYPE_V8QI_V8QI,
3246         V8QI_FTYPE_V4HI_V4HI, V8HI_FTYPE_V8HI_V8HI,
3247         V8HI_FTYPE_V16QI_V16QI, V8HI_FTYPE_V4SI_V4SI,
3248         V4SI_FTYPE_V4SI_V4SI, V4SI_FTYPE_V8HI_V8HI,
3249         V4SI_FTYPE_V4SF_V4SF, V4SI_FTYPE_V2DF_V2DF,
3250         V4HI_FTYPE_V4HI_V4HI, V4HI_FTYPE_V8QI_V8QI,
3251         V4HI_FTYPE_V2SI_V2SI, V4SF_FTYPE_V4SF_V4SF,
3252         V4SF_FTYPE_V4SF_V4SF_SWAP, V4SF_FTYPE_V4SF_V2SI,
3253         V4SF_FTYPE_V4SF_V2DF, V4SF_FTYPE_V4SF_DI,
3254         V4SF_FTYPE_V4SF_SI, V2DI_FTYPE_V2DI_V2DI,
3255         V2DI_FTYPE_V16QI_V16QI, V2DI_FTYPE_V4SI_V4SI,
3256         V2DI_FTYPE_V2DF_V2DF, V2SI_FTYPE_V2SI_V2SI,
3257         V2SI_FTYPE_V4HI_V4HI, V2SI_FTYPE_V2SF_V2SF,
3258         V2DF_FTYPE_V2DF_V2DF, V2DF_FTYPE_V2DF_V2DF_SWAP,
3259         V2DF_FTYPE_V2DF_V4SF, V2DF_FTYPE_V2DF_DI,
3260         V2DF_FTYPE_V2DF_SI, V2SF_FTYPE_V2SF_V2SF,
3261         V1DI_FTYPE_V1DI_V1DI, V1DI_FTYPE_V8QI_V8QI and
3262         V1DI_FTYPE_V2SI_V2SI.
3263         (bdesc_2arg): Moved to ...
3264         (bdesc_args): Here.
3265         (ix86_init_mmx_sse_builtins): Updated.
3266         (ix86_expand_args_builtin): Updated.  Take a pointer
3267         to const struct builtin_description.  Handle comparison
3268         builtin functions.
3269         (ix86_expand_sse_compare): Take a new argument for swapping operands.
3270         (ix86_expand_builtin): Updated.
3271
3272         * config/i386/sse.md (ssse3_pmaddubswv8hi3): Renamed to ...
3273         (ssse3_pmaddubsw128): This.
3274         (ssse3_pmaddubswv4hi3): Renamed to ...
3275         (ssse3_pmaddubsw): This.
3276
3277         * doc/extend.texi (__builtin_ia32_packsswb128): Correct prototype.
3278         (__builtin_ia32_packssdw128): Likewise.
3279         (__builtin_ia32_packuswb128): Likewise.
3280         (__builtin_ia32_pmaddubsw): Likewise.
3281         (__builtin_ia32_pmaddubsw128): Likewise.
3282
3283 2008-04-30  Richard Guenther  <rguenther@suse.de>
3284
3285         PR tree-optimization/14847
3286         * tree-ssa-ifcombine.c (get_name_for_bit_test): New helper function.
3287         (recognize_bits_test): Use it.
3288         (recognize_single_bit_test): Likewise.
3289
3290 2008-04-30  Martin Jambor  <mjambor@suse.cz>
3291
3292         * ipa-cp.c (ipcp_init_stage): Calls ipa_set_called_with_variable_arg
3293         instead of setting number of formal parameters to zero.
3294         (ipcp_init_stage): Do not set the number of actual parameters to zero 
3295         either.
3296         (ipcp_propagate_stage): Explicitly skipping all calls to nodes
3297         which are called with variable number of arguments.
3298         (ipcp_insert_stage): Explicitely skipping all nodes which are
3299         called with variable number of arguments.
3300         (ipcp_callsite_param_print): Skipps callsites to nodes with varaible 
3301         number of parameters.
3302
3303         * ipa-prop.h (struct ipa_node_params): Added flag
3304         called_with_var_arguments
3305         (ipa_set_param_count): Added.  Changed sole setter to use it.
3306         (ipa_get_param_count): Added.  All readers of param_count
3307         converted to use it instead.
3308         (ipa_set_called_with_variable_arg): Added.
3309         (ipa_is_called_with_var_arguments): Added.
3310         (ipa_get_ith_param): Added.  All readers of param_decls converted
3311         to use it instead.
3312         (ipa_set_cs_argument_count): Added, sole writer to argument_count 
3313         changed to use it. 
3314         (ipa_get_cs_argument_count): Added, all readers of argument_count
3315         changed to cal it.
3316         (ipa_get_ith_jump_func): Added. Accessors of jump values changed 
3317         to use it.
3318         
3319         * ipa-prop.h (struct ipcp_formal): Renamed to ipcp_lattice
3320         (struct ipcp_lattice): Renamed cval_type to type
3321         (struct ipa_node_params): ipcp_cval renamed to ipcp_lattices
3322
3323         * ipa-cp.c (ipcp_cval_get_cvalue): Changed return value to tree
3324         (ipcp_cval_set_cvalue): Changed type of parameter value to tree
3325         (ipcp_insert_stage): Changed the type of variable cvalue to tree
3326         (ipcp_replace_map_create): Changed the type of parameter cvalue to tree
3327         (build_const_val): Changed the type of parameter cvalue to tree
3328         (ipcp_propagate_const): Changed the type of parameter cvalue to tree
3329         (ipcp_method_cval_set_cvalue_type): Renamed parameter cval_type1 to type
3330         
3331         * ipa-prop.h (struct ipcp_formal): Replaced cvalue with tree called 
3332         constant 
3333
3334         * ipa-prop.c (ipa_methodlist_init): Renamed to ipa_init_func_list
3335         (ipa_methodlist_not_empty): Removed, the sole user now checks directly
3336         (ipa_add_method): Renamed to ipa_push_func_to_list
3337         (ipa_remove_method): Renamed to ipa_pop_func_from_list
3338         (ipa_callsite_param_count): Removed.
3339         (ipa_callsite_param_count_set): Removed.
3340         (ipa_callsite_param): Removed.
3341         (ipa_callsite_callee): Removed.
3342         (ipa_callsite_compute_param): Renamed to ipa_compute_jump_functions
3343         (ipa_callsite_compute_count): Renamed to ipa_count_arguments
3344         (ipa_method_formal_count): Removed.
3345         (ipa_method_formal_count_set): Removed.
3346         (ipa_method_get_tree): Removed.
3347         (ipa_method_tree_map_create): Removed.
3348         (ipa_method_compute_tree_map): Renamed to ipa_create_param_decls_array
3349         (ipa_create_param_decls_array): Creates the array itself
3350         (ipa_create_param_decls_array): Temporary variable info instead of 
3351         a few dereferences.
3352         (ipa_method_formal_compute_count): Renamed to ipa_count_formal_params
3353         (ipa_method_compute_modify): Renamed to ipa_detect_param_modifications
3354         (get_type): Removed.
3355         (ipa_jf_get_info_type): Removed.
3356         (ipa_node_create): Renamed to ipa_create_node_params
3357         (ipa_free): Renamed to ipa_free_all_node_params
3358         (ipa_nodes_create): Renamed to ipa_create_all_node_params
3359         (ipa_edges_create): Renamed to ipa_create_all_edge_args
3360         (ipa_edges_free): Renamed to ipa_free_all_edge_args
3361         (ipa_nodes_free): Integrated into ipa_free_all_node_params and removed
3362         (ipa_free_all_node_params): Deallocation to jump_functions moved to 
3363         ipa_free_all_edge_args
3364         (ipa_method_tree_print): Renamed to ipa_print_all_tree_maps
3365         (ipa_method_modify_print): Renamed to ipa_print_all_params_modified
3366         (ipa_create_methodlist_node): Removed.
3367         (ipa_methodlist_method): Removed.
3368         (ipa_methodlist_method_set): Removed.
3369         (ipa_methodlist_next_method): Removed.
3370         (ipa_methodlist_next_method_set): Removed.
3371         (ipa_method_is_modified): Removed.
3372         (ipa_method_modify_create): Removed.
3373         (ipa_method_modify_init): Temporary variable info instead of a few 
3374         dereferences.
3375         (ipa_detect_param_modifications): Temporary variable info instead of 
3376         a few dereferences.
3377         (ipa_compute_jump_functions): Temporary variable info instead of 
3378         a few dereferences.
3379         (ipa_method_modify_set): Removed.
3380         (ipa_method_tree_map): Renamed to ipa_get_param_decl_index
3381         (ipa_get_param_decl_index): Now accepts struct ipa_node_params rather 
3382         than craph_node as the first parameter.
3383         (ipa_method_modify_stmt): Renamed to ipa_check_stmt_modifications
3384         (ipa_method_modify_init): Removed.
3385         (ipa_compute_jump_functions): Added a temp variable instead of 
3386         repeatadly dereferencing the cgraph_edge.aux pointer
3387         (ipa_callsite_param_set_type): Removed.
3388         (ipa_compute_jump_functions): i renamed to index and moved to 
3389         an inner block
3390         (ipa_callsite_param_set_info_type_formal): Removed.
3391         (ipa_callsite_param_set_info_type): Removed.
3392         (ipa_callsite_param_map_create): Removed.
3393         (ipa_callsite_tree): Removed.
3394         (ipa_callsite_caller): Removed.
3395         (ipa_pop_func_from_list): return_method removed to return_func
3396
3397         * ipa-prop.h (enum cvalue_type): Renamed to ipa_lattice_type,
3398         prefixed all values with IPA_. Changed all users.
3399         (enum jump_func_type): Rnamed UNKNOWN_IPATYPE to IPA_UNKNOWN, 
3400         CONST_IPATYPE to IPA_CONST, CONST_IPATYPE_REF to IPA_CONST_REF 
3401         and FORMAL_IPATYPE IPA_PASS_THROUGH. 
3402         (union parameter_info): Renamed to jump_func_value.
3403         (union jump_func_value): Renamed value to constant
3404         (struct ipa_jump_func): Renamed info_type to value
3405         (struct ipa_node): Renamed to ipa_node_params
3406         (struct ipa_node_params): Renamed ipa_arg_num to param_count
3407         (struct ipa_node_params): Renamed ipa_param_tree to param_decls
3408         (struct ipa_node_params): Renamed ipa_mod to modified_flags
3409         (struct ipa_edge): Renamed to ipa_edge_args
3410         (struct ipa_edge_args): Renamed ipa_param_num to argument_count
3411         (struct ipa_edge_args): Renamed ipa_param_map to jump_functions
3412         (struct ipa_methodlist): Renamed to ipa_func_list
3413         (struct ipa_func_list): method_p renamed to node, next_method
3414         renamed to next
3415         (ipa_methodlist_p): Removed, switched all users to struct pointer
3416         (IS_VALID_TREE_MAP_INDEX): Renamed to IS_VALID_JUMP_FUNC_INDEX
3417
3418 2008-04-30  Alan Modra  <amodra@bigpond.net.au>
3419
3420         * config/rs6000/rs6000.c (ALWAYS_RESTORE_ALTIVEC_BEFORE_POP): Define.
3421         (rs6000_emit_epilogue): Use backchain to restore only when we
3422         have a large frame.  Make use of frame pointer to restore if we
3423         have one.  Handle ALWAYS_RESTORE_ALTIVEC_BEFORE_POP.
3424
3425 2008-04-29  Paolo Bonzini  <bonzini@gnu.org>
3426
3427         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
3428         Add mode to zero_extract.
3429         (sign bit tests peepholes): (Ditto.).
3430
3431 2008-04-29  H.J. Lu  <hongjiu.lu@intel.com>
3432
3433         * config/i386/i386.c (ix86_builtins): Replace Prescott New
3434         Instructions in comments with SSE3.
3435         (ix86_builtin_type): This.  Add FLOAT128_FTYPE_FLOAT128,
3436         INT64_FTYPE_V4SF, INT64_FTYPE_V2DF, INT_FTYPE_V16QI,
3437         INT_FTYPE_V8QI, INT_FTYPE_V4SF, INT_FTYPE_V2DF,
3438         V16QI_FTYPE_V16QI, V8HI_FTYPE_V8HI, V8HI_FTYPE_V16QI,
3439         V8QI_FTYPE_V8QI, V4SI_FTYPE_V4SI, V4SI_FTYPE_V16QI,
3440         V4SI_FTYPE_V4SF, V4SI_FTYPE_V8HI, V4SI_FTYPE_V2DF,
3441         V4HI_FTYPE_V4HI, V4SF_FTYPE_V4SF, V4SF_FTYPE_V4SI,
3442         V4SF_FTYPE_V2DF, V2DI_FTYPE_V2DI, V2DI_FTYPE_V16QI,
3443         V2DI_FTYPE_V8HI, V2DI_FTYPE_V4SI, V2DF_FTYPE_V2DF,
3444         V2DF_FTYPE_V4SI, V2DF_FTYPE_V4SF, V2DF_FTYPE_V2SI,
3445         V2SI_FTYPE_V2SI, V2SI_FTYPE_V4SF, V2SI_FTYPE_V2SF,
3446         V2SI_FTYPE_V2DF, V2SF_FTYPE_V2SF and V2SF_FTYPE_V2SI.
3447         (bdesc_sse_args): Renamed to ...
3448         (bdesc_args): This.  Add IX86_BUILTIN_PF2ID, IX86_BUILTIN_PFRCP,
3449         IX86_BUILTIN_PFRSQRT, IX86_BUILTIN_PI2FD, IX86_BUILTIN_PF2IW,
3450         IX86_BUILTIN_PSWAPDSI, IX86_BUILTIN_PSWAPDSF and
3451         IX86_BUILTIN_FABSQ.
3452         (bdesc_1arg): Moved to ...
3453         (bdesc_args): Here.
3454         (ix86_init_mmx_sse_builtins): Updated.  Replace Prescott New
3455         Instructions in comments with SSE3.
3456         (ix86_expand_sse_operands_builtin): Renamed to ...
3457         (ix86_expand_args_builtin): This.  Updated.
3458         (ix86_expand_unop1_builtin): Update comments.
3459         (ix86_expand_builtin): Updated.
3460
3461 2008-04-29  Richard Guenther  <rguenther@suse.de>
3462
3463         PR tree-optimization/36078
3464         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
3465         Update virtual SSA form after cleaning up the CFG.
3466
3467 2008-04-29  Richard Guenther  <rguenther@suse.de>
3468
3469         PR middle-end/15255
3470         * fold-const.c (fold_binary): Fold (A + A) * C to A * 2*C.
3471
3472 2008-04-29  Richard Guenther  <rguenther@suse.de>
3473
3474         * tree-ssa-alias.c (finalize_ref_all_pointers): Remove.
3475         (compute_may_aliases): Do not call finalize_ref_all_pointers.
3476         (compute_flow_insensitive_aliasing): Do not treat
3477         PTR_IS_REF_ALL pointers special.
3478         (get_smt_for): Likewise.
3479         (may_alias_p): Re-structure.
3480         (is_escape_site): A ref-all pointer conversion is not an escape site.
3481         * tree-ssa-structalias.c (find_what_p_points_to): Do not treat
3482         PTR_IS_REF_ALL pointers special.
3483         * tree-ssa-structalias.h (struct alias_info): Remove
3484         ref_all_symbol_mem_tag field.
3485         (PTR_IS_REF_ALL): Remove.
3486
3487 2008-04-29  Richard Guenther  <rguenther@suse.de>
3488
3489         PR middle-end/36077
3490         * fold-const.c (extract_muldiv_1): In combining division constants
3491         make sure to never overflow.
3492
3493 2008-04-29  Nick Clifton  <nickc@redhat.com>
3494
3495         * doc/tm.texi (RETURN_ADDR_RTX): Fix typo.
3496
3497 2008-04-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3498
3499         PR bootstrap/35169
3500         * optc-gen.awk: Work around HP-UX/IA awk bug.
3501
3502 2008-04-28  Danny Smith  <dannysmith@users.sourceforge.net>
3503
3504         * config/i386/cygming-crtend.c (register_frame_ctor): Revert my
3505         2008-04-25 commit.
3506
3507 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
3508
3509         PR target/36073
3510         * config/i386/i386.md
3511         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit):
3512         Change operand 1 predicate to nonimmediate_operand.
3513
3514 2008-04-28  Jakub Jelinek  <jakub@redhat.com>
3515
3516         PR debug/36060
3517         * dwarf2out.c (struct die_struct): Mark as chain_circular through
3518         die_sub field.
3519         * gengtype.c (walk_type, write_func_for_structure): Handle
3520         chain_circular.
3521         * doc/gty.texi: Document chain_circular.
3522
3523 2008-04-28  Richard Guenther  <rguenther@suse.de>
3524
3525         PR tree-optimization/36066
3526         * tree-vrp.c (execute_vrp): Cleanup the CFG only after finalizing
3527         SCEV and loop.
3528
3529 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
3530
3531         PR target/36064
3532         * config/i386/i386.md
3533         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters):
3534         Use match_scratch instead of match_operand for operands 3 and 4.
3535
3536 2008-04-27  Richard Guenther  <rguenther@suse.de>
3537
3538         PR tree-optimization/18754
3539         PR tree-optimization/34223
3540         * tree-pass.h (pass_complete_unrolli): Declare.
3541         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Print
3542         loop size before and after unconditionally of UL_NO_GROWTH in effect.
3543         Rewrite loop into loop closed SSA form if it is not already.
3544         (tree_unroll_loops_completely): Re-structure to iterate over
3545         innermost loops with intermediate CFG cleanups.
3546         Unroll outermost loops only if requested or the code does not grow
3547         doing so.
3548         * tree-ssa-loop.c (gate_tree_vectorize): Don't shortcut if no
3549         loops are available.
3550         (tree_vectorize): Instead do so here.
3551         (tree_complete_unroll): Also unroll outermost loops.
3552         (tree_complete_unroll_inner): New function.
3553         (gate_tree_complete_unroll_inner): Likewise.
3554         (pass_complete_unrolli): New pass.
3555         * tree-ssa-loop-manip.c (find_uses_to_rename_use): Only record
3556         uses outside of the loop.
3557         (tree_duplicate_loop_to_header_edge): Only verify loop-closed SSA
3558         form if it is available.  
3559         * tree-flow.h (tree_unroll_loops_completely): Add extra parameter.
3560         * passes.c (init_optimization_passes): Schedule complete inner
3561         loop unrolling pass before the first CCP pass after final inlining.
3562
3563 2008-04-27  Nathan Sidwell  <nathan@codesourcery.com>
3564
3565         * targhooks.h (default_emutls_var_fields,
3566         default_emutls_var_init): Declare.
3567         * tree.h (DECL_THREAD_LOCAL): Compare against TLS_MODEL_REAL.
3568         * target.h (struct gcc_target): Add struct emutls member.
3569         * target-def.h (TARGET_EMUTLS_GET_ADDRESS,
3570         TARGET_EMUTLS_REGISTER_COMMON, TARGET_EMUTLS_VAR_SECTION,
3571         TARGET_EMUTLS_TMPL_SECTION, TARGET_EMUTLS_VAR_PREFIX,
3572         TARGET_EMUTLS_TMPL_PREFIX, TARGET_EMUTLS_VAR_FIELDS,
3573         TARGET_EMUTLS_VAR_INIT, TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS,
3574         TARGET_EMUTLS_VAR_ALIGN_FIXED, TARGET_EMUTLS): New.
3575         (TARGET_INITIALIZER): Add TARGET_EMUTLS.
3576         * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS,
3577         BUILT_IN_EMUTLS_REGISTER_COMMON): Get name from targetm structure.
3578         * dwarf2out.c (loc_descriptor_from_tree_1): Check if emutls can
3579         emit debug information.
3580         * coretypes.h (tls_model): Add TLS_MODEL_EMULATED, TLS_MODEL_REAL.
3581         * varasm.c: Include targhooks.h.
3582         (emutls_object_section, emutls_tmpl_section): New.
3583         (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): Remove.
3584         (EMUTLS_SEPARATOR): New.
3585         (prefix_name): New.
3586         (get_emutls_object_name): New.
3587         (default_emutls_var_fields): New, broken out of ...
3588         (get_emutls_object_type): ... here.  Adjust to use target hooks.
3589         (get_emutls_init_templ_addr): Adjust to use target hooks.
3590         (emutls_decl): Adjust to use target hooks.
3591         (emutls_finish): Likewise.
3592         (default_emutls_var_init): New, broken out of ...
3593         (assemble_variable): ... here.  Adjust to use target hooks.
3594         * output.h (enum section_category): Add SECCAT_EMUTLS_VAR,
3595         SECCAT_EMUTLS_TMPL.
3596         * c-common.c (handle_section_attribute): Prevent overriding
3597         sections for emulated tls with special sections.
3598         * config/i386/i386.c (x86_64_elf_select_section): Add
3599         SECCAT_EMUTLS_VAR and SECCAT_EMUTLS_TMPL.
3600         (x86_64_elf_unique_section): Likewise.
3601         * config/vxworks.c: Include tree.h.
3602         (vxworks_emutls_var_fields, vxworks_emutls_var_init): New.
3603         (vxworks_override_options): Set TLS scheme.
3604         * doc/tm.texi (Emulated TLS): New node.
3605
3606 2008-04-26  Simon Baldwin <simonb@google.com>
3607
3608         PR c/35652
3609         * builtins.c (c_strlen): Suppressed multiple warnings that can occur
3610         with propagated string constants.
3611
3612 2008-04-26  Uros Bizjak  <ubizjak@gmail.com>
3613
3614         * config/i386/i386.md (fix_trunc<mode>_i387_fisttp_with_temp): Use 'X'
3615         constraint for operand 2 when operand 0 is memory operand.
3616         (fix_truncdi_i387_with_temp): : Use 'X' constraint for operand 4 when
3617         operand 0 is memory operand.
3618         (fix_trunc<mode>_i387_with_temp): Ditto.
3619         (*floatsi<mode>2_vector_mixed_with_temp): Use 'X' constraint for
3620         operand 2 when operand 1 is memory operand.
3621         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Ditto.
3622         (*floatsi<mode>2_vector_sse_with_temp): Ditto.
3623         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Ditto.
3624         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
3625         (floatdi<X87MODEF:mode>2_i387_with_xmm): Use 'X' constraint for
3626         operands 2,3 and 4 when operand 1 is memory operand.
3627         (fistdi2_with_temp): Use 'X' constraint for operand 2 when operand 0
3628         is memory operand.
3629         (fistdi2_floor_with_temp): Ditto.
3630         (fist<mode>2_floor_with_temp): Ditto.
3631         (fistdi2_ceil_with_temp): Ditto.
3632         (fist<mode>2_ceil_with_temp): Ditto.
3633         (*truncdfsf_fast_mixed): Merge alternatives 0 and 1.
3634
3635 2008-04-26  David Daney  <ddaney@avtrex.com>
3636
3637         * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP_12): New
3638         unspec_volitile.
3639         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE,
3640         UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
3641         UNSPEC_UPDATE_GOT_VERSION): Renumber.
3642         (sync_compare_and_swap<mode>): New expand for QI and HI modes.
3643         (compare_and_swap_12): New insn.
3644         * config/mips/mips-protos.h (mips_expand_compare_and_swap_12): Declare.
3645         * config/mips/mips.c (mips_force_binary): New function.
3646         (mips_emit_int_order_test, mips_expand_synci_loop): Use it.
3647         (mips_expand_compare_and_swap_12): New function.
3648         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): New macro.
3649
3650 2008-04-25  Jan Hubicka  <jh@suse.cz>
3651
3652         PR testsuite/35843
3653         * cfgexpand.c (pass_expand): Turn into RTL pass.
3654         * passes.c (execute_one_pass): Do pass typechecking after execution.
3655         * tree-pass.h (pass_expand): Turn into RTL pass.
3656
3657         * function.h (struct rtl_data): Move here fields
3658         accesses_prior_frames, calls_eh_return, saves_all_registers,
3659         has_nonlocal_goto, has_asm_statement, is_thunk,
3660         all_throwers_are_sibcalls, limit_stack, profile, uses_const_pool,
3661         uses_pic_offset_table, uses_eh_lsda, tail_call_emit,
3662         arg_pointer_save_area_init from struct function; turn into bool.
3663         (struct function): Move
3664         calls_eh_return, saves_all_registers, has_nonlocal_goto,
3665         has_asm_statement, is_thunk, all_throwers_are_sibcalls, limit_stack,
3666         profile, uses_const_pool, uses_pic_offset_table, uses_eh_lsda,
3667         tail_call_emit, arg_pointer_save_area_init
3668         into struct rtl_data.  Remove recursive_call_emit and gimplified flags.
3669         (current_function_returns_struct, current_function_returns_pcc_struct,
3670         current_function_calls_setjmp, current_function_calls_alloca,
3671         current_function_accesses_prior_frames,
3672         current_function_calls_eh_return, current_function_is_thunk,
3673         current_function_stdarg, current_function_profile,
3674         current_function_limit_stack, current_function_uses_pic_offset_table,
3675         current_function_uses_const_pool, current_function_has_nonlocal_label,
3676         current_function_saves_all_registers,
3677         current_function_has_nonlocal_goto,
3678         current_function_has_asm_statement): Remove accesor macros.
3679         * ra-conflict.c (global_conflicts): Update.
3680         * tree-tailcall.c (suitable_for_tail_opt_p): Update.
3681         (suitable_for_tail_call_opt_p): Update.
3682         * builtins.c (expand_builtin_return_addr): Update.
3683         (expand_builtin_setjmp_setup): Update.
3684         (expand_builtin_nonlocal_goto): Update.
3685         * final.c (final_start_function): Update.
3686         (profile_function): Update.
3687         (leaf_function_p): Update.
3688         (only_leaf_regs_used): Update.
3689         * df-scan.c (df_get_exit_block_use_set): Update.
3690         * dojump.c (clear_pending_stack_adjust): Update.
3691         * tree-stdarg.c (gate_optimize_stdarg): Update.
3692         * gimple-low.c (lower_function_body): Update.
3693         * global.c (compute_regsets): Update.
3694         (global_alloc): Update.
3695         * dwarf2out.c (dwarf2out_begin_prologue): Update.
3696         * expr.c (expand_assignment): Update.
3697         * dse.c (dse_step0): Update.
3698         (dse_step1): Update.
3699         * c-decl.c (store_parm_decls): Update.
3700         * local-alloc.c (combine_regs): Update.
3701         (find_free_reg): Update.
3702         * function.c (assign_parms_augmented_arg_list): Update.
3703         (assign_parm_find_data_types): Update.
3704         (assign_parms): Update.
3705         (allocate_struct_function): Update.
3706         (expand_function_start): Update.
3707         (expand_function_end): Update.
3708         (get_arg_pointer_save_area): Update.
3709         (thread_prologue_and_epilogue_insns): Update.
3710         (rest_of_match_asm_constraints): Update.
3711         * stor-layout.c (variable_size): Update.
3712         * gcse.c (gcse_main): Update.
3713         (bypass_jumps): Update.
3714         * gimplify.c (gimplify_function_tree): Update.
3715         * calls.c (emit_call_1): Update.
3716         (expand_call): Update.
3717         * bt-load.c (compute_defs_uses_and_gen): Update.
3718         * except.c (sjlj_assign_call_site_values): Update.
3719         (sjlj_emit_function_enter): Update.
3720         (can_throw_external): Update.
3721         (set_nothrow_function_flags): Update.
3722         (expand_builtin_unwind_init): Update.
3723         (expand_eh_return): Update.
3724         (convert_to_eh_region_ranges): Update.
3725         (output_function_exception_table): Update.
3726         * emit-rtl.c (gen_tmp_stack_mem): Update.
3727         * cfgexpand.c (expand_used_vars): Update.
3728         (tree_expand_cfg): Update.
3729         * cfgcleanup.c (rest_of_handle_jump): Update.
3730         * explow.c (allocate_dynamic_stack_space): Update.
3731         * varasm.c (assemble_start_function): Update.
3732         (force_const_mem): Update.
3733         (mark_constant_pool): Update.
3734         * tree-optimize.c (tree_rest_of_compilation): Update.
3735         * stack-ptr-mod.c (notice_stack_pointer_modification): Update.
3736         * tree-cfg.c (notice_special_calls): Update.
3737         (is_ctrl_altering_stmt): Update.
3738         (tree_can_make_abnormal_goto): Update.
3739         (tree_purge_dead_abnormal_call_edges): Update.
3740         * config/alpha/predicates.md: Update.
3741         * config/alpha/alpha.c (alpha_sa_mask): Update.
3742         (alpha_sa_size): Update.
3743         (alpha_does_function_need_gp): Update.
3744         (alpha_expand_prologue): Update.
3745         (alpha_start_function): Update.
3746         (alpha_output_function_end_prologue): Update.
3747         (alpha_expand_epilogue): Update.
3748         * config/frv/frv.c (frv_stack_info): Update.
3749         (frv_expand_epilogue): Update.
3750         * config/s390/s390.c (s390_regs_ever_clobbered): Update.
3751         (s390_register_info): Update.
3752         (s390_frame_info): Update.
3753         (s390_init_frame_layout): Update.
3754         (s390_can_eliminate): Update.
3755         (save_gprs): Update.
3756         * config/spu/spu.c (spu_split_immediate): Update.
3757         (need_to_save_reg): Update.
3758         (spu_expand_prologue): Update.
3759         (spu_expand_epilogue): Update.
3760         * config/sparc/sparc.md: Update.
3761         * config/sparc/sparc.c (eligible_for_return_delay): Update.
3762         (sparc_tls_got): Update.
3763         (legitimize_pic_address): Update.
3764         (sparc_emit_call_insn): Update.
3765         (sparc_expand_prologue): Update.
3766         (output_return): Update.
3767         (print_operand): Update.
3768         (sparc_function_ok_for_sibcall): Update.
3769         * config/sparc/sparc.h (EXIT_IGNORE_STACK): Update.
3770         * config/m32r/m32r.md: Update.
3771         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Update.
3772         (m32r_compute_frame_size): Update.
3773         (m32r_expand_prologue): Update.
3774         (m32r_expand_epilogue): Update.
3775         (m32r_legitimize_pic_address): Update.
3776         * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Update.
3777         * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
3778         * config/i386/i386.c (ix86_frame_pointer_required): Update.
3779         (gen_push): Update.
3780         (ix86_save_reg): Update.
3781         (ix86_compute_frame_layout): Update.
3782         (ix86_expand_prologue): Update.
3783         (ix86_expand_epilogue): Update.
3784         * config/sh/sh.c (output_stack_adjust): Update.
3785         (calc_live_regs): Update.
3786         (sh5_schedule_saves): Update.
3787         (sh_expand_prologue): Update.
3788         (sh_expand_epilogue): Update.
3789         (sh_setup_incoming_varargs): Update.
3790         (sh_allocate_initial_value): Update.
3791         (sh_get_pr_initial_val): Update.
3792         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Update.
3793         * config/sh/sh.md (label:): Update.
3794         * config/avr/avr.c (out_movhi_mr_r): Update.
3795         * config/crx/crx.h (enum): Update.
3796         * config/xtensa/xtensa.h (along): Update.
3797         * config/stormy16/stormy16.c Update.
3798         (xstormy16_compute_stack_layout): Update.
3799         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Update.
3800         (fr30_expand_prologue): Update.
3801         * config/cris/cris.c (cris_conditional_register_usage): Update.
3802         (cris_reg_saved_in_regsave_area): Update.
3803         (cris_initial_frame_pointer_offset): Update.
3804         (cris_simple_epilogue): Update.
3805         (cris_expand_prologue): Update.
3806         (cris_expand_epilogue): Update.
3807         (cris_expand_pic_call_address): Update.
3808         (cris_asm_output_symbol_ref): Update.
3809         (cris_asm_output_label_ref): Update.
3810         * config/cris/cris.md Update.
3811         * config/iq2000/iq2000.c (compute_frame_size): Update.
3812         (iq2000_expand_epilogue): Update.
3813         * config/mt/mt.h (save_direction): Update.
3814         * config/mn10300/mn10300.c (mn10300_function_value): Update.
3815         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
3816         (ia64_secondary_reload_class): Update.
3817         * config/m68k/m68k.c (m68k_save_reg): Update.
3818         (m68k_expand_prologue): Update.
3819         (m68k_expand_epilogue): Update.
3820         (legitimize_pic_address): Update.
3821         * config/rs6000/rs6000.c (rs6000_got_register): Update.
3822         (first_reg_to_save): Update.
3823         (first_altivec_reg_to_save): Update.
3824         (compute_vrsave_mask): Update.
3825         (compute_save_world_info): Update.
3826         (rs6000_stack_info): Update.
3827         (spe_func_has_64bit_regs_p): Update.
3828         (rs6000_ra_ever_killed): Update.
3829         (rs6000_emit_eh_reg_restore): Update.
3830         (rs6000_emit_allocate_stack): Update.
3831         (rs6000_emit_prologue): Update.
3832         (rs6000_emit_epilogue): Update.
3833         (rs6000_output_function_epilogue): Update.
3834         (output_profile_hook): Update.
3835         (rs6000_elf_declare_function_name): Update.
3836         * config/rs6000/rs6000.h (rs6000_args): Update.
3837         * config/rs6000/rs6000.md: Update.
3838         * config/mcore/mcore.c (mcore_expand_prolog): Update.
3839         * config/arc/arc.c (arc_output_function_epilogue): Update.
3840         * config/arc/arc.h (FRAME_POINTER_REQUIRED): Update.
3841         * config/darwin.c (machopic_function_base_name): Update.
3842         * config/score/score3.c (score3_compute_frame_size): Update.
3843         (rpush): Update.
3844         (rpop): Update.
3845         (score3_epilogue): Update.
3846         * config/score/score7.c (score7_compute_frame_size): Update.
3847         (score7_prologue): Update.
3848         (score7_epilogue): Update.
3849         * config/score/score.h (FRAME_POINTER_REQUIRED): Update.
3850         * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
3851         * config/arm/arm.c (use_return_insn): Update.
3852         (require_pic_register): Update.
3853         (arm_load_pic_register): Update.
3854         (arm_compute_save_reg0_reg12_mask): Update.
3855         (arm_compute_save_reg_mask): Update.
3856         (thumb1_compute_save_reg_mask): Update.
3857         (output_return_instruction): Update.
3858         (arm_output_function_prologue): Update.
3859         (arm_output_epilogue): Update.
3860         (arm_get_frame_offsets): Update.
3861         (arm_expand_prologue): Update.
3862         (thumb_pushpop): Update.
3863         (thumb_exit): Update.
3864         (thumb1_expand_prologue): Update.
3865         (thumb1_expand_epilogue): Update.
3866         (arm_unwind_emit): Update.
3867         (arm_output_fn_unwind): Update.
3868         * config/arm/arm.h (FRAME_POINTER_REQUIRED): Update.
3869         * config/arm/arm.md: Update.
3870         * config/pa/pa.md: Update.
3871         * config/pa/pa.c (legitimize_pic_address): Update.
3872         (compute_frame_size): Update.
3873         (hppa_expand_prologue): Update.
3874         (hppa_expand_epilogue): Update.
3875         (borx_reg_operand): Update.
3876         * config/pa/pa.h (FRAME_POINTER_REQUIRED): Update.
3877         (HARD_REGNO_RENAME_OK): Update.
3878         * config/mips/mips.c (mips_global_pointer): Update.
3879         (mips_save_reg_p): Update.
3880         (mips_compute_frame_info): Update.
3881         (mips_frame_pointer_required): Update.
3882         (mips_expand_prologue): Update.
3883         (mips_expand_epilogue): Update.
3884         (mips_can_use_return_insn): Update.
3885         (mips_reorg_process_insns): Update.
3886         * config/v850/v850.c (compute_register_save_size): Update.
3887         * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Update.
3888         * config/mmix/mmix.c (along): Update.
3889         (mmix_expand_epilogue): Update.
3890         * config/bfin/bfin.c (legitimize_pic_address): Update.
3891         (must_save_p): Update.
3892         (stack_frame_needed_p): Update.
3893         (add_to_reg): Update.
3894         (bfin_expand_prologue): Update.
3895         * stmt.c (expand_asm_operands): Update.
3896         * reload1.c (reload): Update.
3897         (init_elim_table): Update.
3898
3899 2008-04-25  Bob Wilson  <bob.wilson@acm.org>
3900         
3901         * optabs.c (expand_float): Fix REG_EQUAL for UNSIGNED_FLOAT libcall.
3902         
3903 2008-04-25  H.J. Lu  <hongjiu.lu@intel.com>
3904
3905         * config/i386/sse.md (mov<mode>): Replace SSEMODEI with SSEMODE.
3906         (*mov<mode>_internal): Likewise.  Support V4SF and V2DF.
3907         (mov<mode>): Removed.
3908         (*movv4sf_internal): Likewise.
3909         (*movv2df_internal): Likewise.
3910
3911 2008-04-25  Pompapathi V Gadad <Pompapathi.V.Gadad@nsc.com>
3912
3913         * config.gcc (crx-*-elf): Remove deprecation.
3914
3915 2008-04-25  Danny Smith  <dannysmith@users.sourceforge.net>
3916
3917         * config/i386/cygming-crtend.c (register_frame_ctor): Register
3918         __gcc_deregister_frame with atexit.
3919         (deregister_frame_dtor): Remove.
3920
3921 2008-04-24  Nathan Froyd  <froydnj@codesourcery.com>
3922             Nathan Sidwell  <nathan@codesourcery.com>
3923
3924         * config/rs6000/rs6000.opt (mspe): Remove Var property.
3925         (misel): Likewise.
3926         * config/rs6000/rs6000.h (rs6000_spe): Declare.
3927         (rs6000_isel): Likewise.
3928         * config/rs6000/rs6000.c (rs6000_spe): New variable.
3929         (rs6000_isel): New variable.
3930         (rs6000_handle_option): Handle OPT_mspe and OPT_misel.
3931
3932 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
3933
3934         PR c++/35758
3935         * c-common.c (handle_vector_size_attribute): Call
3936         lang_hooks.types.reconstruct_complex_type instead of
3937         reconstruct_complex_type.
3938         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Likewise.
3939         * config/spu/spu.c (spu_handle_vector_attribute): Likewise.
3940         * langhooks.h (struct lang_hooks_for_types): Add
3941         reconstruct_complex_type hook.
3942         * langhooks-def.h (LANG_HOOKS_RECONSTRUCT_COMPLEX_TYPE): Define.
3943         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
3944
3945 2008-04-24  Richard Guenther  <rguenther@suse.de>
3946
3947         * c-common.h (check_builtin_function_arguments): Declare.
3948         * c-common.c (validate_nargs): New function.
3949         (check_builtin_function_arguments): Likewise.
3950         * c-typeck.c (build_function_call): Call
3951         check_builtin_function_arguments.
3952         * builtins.c (fold_builtin_classify): Remove error reporting code.
3953         (fold_builtin_unordered_cmp): Likewise.
3954         (fold_builtin_1): Likewise.
3955         (fold_builtin_n): Likewise.
3956
3957 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
3958
3959         PR tree-optimization/36008
3960         * fold-const.c (try_move_mult_to_index): If s == NULL, divide
3961         the original op1, rather than delta by step.
3962
3963 2008-04-22  Antoniu Pop  <antoniu.pop@gmail.com>
3964             Sebastian Pop  <sebastian.pop@amd.com>
3965
3966         * tree-parloops.c (take_address_of, eliminate_local_variables_1,
3967         eliminate_local_variables_stmt, eliminate_local_variables,
3968         separate_decls_in_loop_name, separate_decls_in_loop_stmt,
3969         separate_decls_in_loop, gen_parallel_loop): Make them work on a region
3970         of code delimited by two edges in the CFG.
3971         (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
3972         (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
3973         (separate_decls_in_loop): Renamed separate_decls_in_region.  Isolate 
3974         the case of parallelisation of reductions.
3975         (expr_invariant_in_region_p): New.
3976
3977         * tree-flow.h (gather_blocks_in_sese_region): Declared.
3978         * tree-cfg.c (gather_blocks_in_sese_region): Extern.
3979
3980 2008-04-24  Ira Rosen  <irar@il.ibm.com>
3981             Richard Guenther  <rguenther@suse.de>
3982
3983         PR tree-optimization/36034
3984         * tree-vect-analyze.c (vect_analyze_group_access): SLP is
3985         incapable of dealing with loads with gaps.
3986
3987 2008-04-24  Rafael Espindola  <espindola@google.com>
3988
3989         * tree-flow.h (vrp_evaluate_conditional): Change signature.
3990         * tree-ssa-propagate.c (fold_predicate_in): Update call to
3991         vrp_evaluate_conditional.
3992         * tree-vrp.c (vrp_evaluate_conditional_warnv): Remove.
3993         (vrp_evaluate_conditional): Split the cond argument.
3994         (vrp_visit_cond_stmt): Use vrp_evaluate_conditional_warnv_with_ops.
3995         (simplify_stmt_for_jump_threading): Update call to
3996         vrp_evaluate_conditional.
3997
3998 2008-04-24  Ira Rosen  <irar@il.ibm.com>
3999
4000         PR tree-optimization/35982
4001         * tree-vect-analyze.c (vect_check_interleaving): Check that the
4002         interleaved data-refs are of the same type.
4003
4004 2008-04-24  Danny Smith  <dannysmith@users.net>
4005
4006         * c-format.c (check_format_info_main): Use strncmp rather than a
4007         magic prefix to handle multichar length specs.
4008         * config/i386/msformat-c.c (format_length_info ms_printf_length_specs):
4009         Don't prefix "I64" and "I32" with '\0'.
4010
4011 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
4012
4013         PR target/36015
4014         * config/i386/i386.c (init_cumulative_args): Don't pass anything
4015         in registers for -m32 only if stdarg_p (fntype).
4016
4017 2008-04-24  Uros Bizjak  <ubizjak@gmail.com>
4018
4019         PR rtl-optimization/36006
4020         * expmed.c (store_fixed_bit_field): Copy op0 rtx before moving
4021         temp to op0 in order to avoid invalid rtx sharing.
4022
4023 2008-04-23  Paolo Bonzini  <bonzini@gnu.org>
4024
4025         * tree-cfg.c (verify_expr): Check with is_gimple_address.  Don't
4026         check TREE_INVARIANT.
4027         * tree-gimple.c (is_gimple_address): New.
4028         (is_gimple_invariant_address): Simplify using decl_address_invariant_p.
4029         * tree-gimple.h (is_gimple_address): New.
4030         * tree.h (decl_address_invariant_p): New.
4031         * tree.c (make_node_stat): Don't set TREE_INVARIANT.
4032         (build_string): Likewise.
4033         (decl_address_invariant_p): New, from is_gimple_invariant_address.
4034         (tree_invariant_p_1): Likewise.
4035         (save_expr): Use it.
4036         (tree_invariant_p): New.
4037         (skip_simple_arithmetic): Use it.
4038         (stabilize_reference_1): Use it.
4039         (recompute_tree_invariant_for_addr_expr): Don't update TREE_INVARIANT,
4040         simplify.
4041         (build1_stat): Drop code to compute TREE_INVARIANT.
4042         (build2_stat): Drop code to compute TREE_INVARIANT.
4043         (build3_stat): Drop code to compute TREE_INVARIANT.
4044         (build4_stat): Drop code to compute TREE_INVARIANT.
4045         (build5_stat): Drop code to compute TREE_INVARIANT.
4046         (build7_stat): Drop code to compute TREE_INVARIANT.
4047         (merge_dllimport_decl_attributes): Don't mention TREE_INVARIANT.
4048         * tree.h (struct tree_base): Remove invariant_flag.
4049         (TREE_INVARIANT): Remove.
4050         * builtins.c (build_string_literal): Don't set TREE_INVARIANT.
4051         (fold_builtin_expect): Check TREE_CONSTANT.
4052         * tree-ssa-ccp.c (fold_stmt_r): Adjust comment.
4053         * c-tree.h (c_expr_to_decl): Drop third parameter.
4054         * c-typeck.c (build_external_ref): Don't set TREE_INVARIANT.
4055         (build_c_cast): Don't set TREE_INVARIANT.
4056         (pop_init_level): Don't set TREE_INVARIANT.
4057         (c_objc_common_truthvalue_conversion): Don't set TREE_INVARIANT.
4058         * gimplify.c (gimplify_init_ctor_preeval): Add assertion, test
4059         TREE_CONSTANT.
4060         (gimplify_init_constructor): Don't set TREE_INVARIANT.
4061         (gimplify_addr_expr): Adjust comment.
4062         * tree-mudflap.c (mf_build_string):
4063         * print-tree.c (print_node): Don't print TREE_INVARIANT.
4064         * tree-nested.c (convert_nonlocal_reference): Adjust comment.
4065         * c-common.c (fix_string_type): Don't set TREE_INVARIANT.
4066         * langhooks-def.h (lhd_expr_to_decl): Drop third parameter.
4067         * langhooks.c (lhd_expr_to_decl): Drop third parameter.
4068         * langhooks.h (struct lang_hooks): Drop third parameter from
4069         expr_to_decl.
4070
4071 2008-04-23  Richard Guenther  <rguenther@suse.de>
4072
4073         PR tree-optimization/27799
4074         PR tree-optimization/32921
4075         PR tree-optimization/32624
4076         * tree-ssa-structalias.c (merge_smts_into): Only merge the
4077         SMTs aliases and the tag itself into the solution.
4078         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Do not
4079         merge the points-to solution back into the SMT aliases.
4080         (may_alias_p): Use alias_set_subset_of instead of
4081         aliases_conflict_p.  A pointer which points to
4082         memory with alias set zero may access any variable.
4083
4084 2008-04-23  Richard Guenther  <rguenther@suse.de>
4085
4086         * alias.c (alias_set_subset_of): Correctly handle asking
4087         if zero is a subset of an alias set with zero child.
4088         * tree-ssa-alias.c (have_common_aliases_p): Simplify logic.
4089         (compute_flow_insensitive_aliasing): Correctly walk all
4090         pointers.  Do not unnecessarily union sets.
4091
4092 2008-04-23  Richard Guenther  <rguenther@suse.de>
4093
4094         PR middle-end/36021
4095         * c-common.c (handle_alloc_size_attribute): Use type_num_arguments.
4096
4097 2008-04-22  Tomas Bily  <tbily@suse.cz>
4098
4099         * tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as
4100         unreachable case.
4101         * tree-vrp.c (extract_range_from_unary_expr): Removed unused
4102         NON_LVALUE_EXPR.
4103         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
4104         * tree-ssa-structalias.c (get_constraint_for): Likewise.
4105         * tree-inline.c (estimate_num_insns_1): Likewise.
4106         * varasm.c (const_hash_1, compare_constant, copy_constant)
4107         (compute_reloc_for_constant, output_addressed_constants): Likewise.
4108         * emit-rtl.c (component_ref_for_mem_expr)
4109         (set_mem_attributes_minus_bitpos): Likewise.
4110         * expr.c (highest_pow2_factor, expand_expr_real_1, )
4111         (is_aligning_offset): Likewise.
4112         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info): Likewise.
4113         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
4114         * dojump.c (do_jump): Likewise.
4115         * builtins.c (get_pointer_alignment, get_memory_rtx)
4116         (integer_valued_real_p, fold_builtin_next_arg): Likewise.
4117         * tree-scalar-evolution.c (instantiate_parameters_1): Likewise.
4118
4119 2008-04-23  Jakub Jelinek  <jakub@redhat.com>
4120
4121         PR rtl-optimization/36017
4122         * builtins.c (expand_errno_check): Clear CALL_EXPR_TAILCALL before
4123         expanding the library call.
4124
4125 2008-04-22  Ian Lance Taylor  <iant@google.com>
4126
4127         * fold-const.c (pointer_may_wrap_p): Call int_size_in_bytes rather
4128         than size_in_bytes.
4129
4130 2008-04-22  Pat Haugen  <pthaugen@us.ibm.com>
4131
4132         * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
4133         of LR/CTR moves for Power6.
4134
4135 2008-04-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
4136
4137         PR middle-end/36003
4138         * passes.c (init_optimization_passes): Remove
4139         pass_fast_rtl_byte_dce.
4140         
4141 2008-04-22  Uros Bizjak  <ubizjak@gmail.com>
4142
4143         PR target/29096
4144         * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Rearrange calls to
4145         builtin functions to generate faster code.
4146         (_mm_cvtpu16_ps): Ditto.
4147         (_mm_cvtpi32x2_ps): Ditto.
4148
4149 2008-04-22  Nick Clifton  <nickc@redhat.com>
4150
4151         * common.opt (ftree-loop-distribution): Add Optimization
4152         attribute.
4153
4154         * config/frv/frv.c (frv_stack_info): Use crtl instead of cfun.
4155         (frv_expand_builtin_va_start): Likewise.
4156
4157         * config/arm/arm.c (thumb_find_work_register): Fix location of
4158         argument register count.
4159
4160 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
4161
4162         Support scheduling for ColdFire V1 and V3 microarchitecture.
4163         Improve scheduling of multiplication instructions.
4164
4165         * config/m68k/m68k.md (cpu): Add cfv1 and cfv3.  Rename cf_v2 to cfv1.
4166         (mac): New instruction attribute.
4167         * config/m68k/m68k.c (override_options): Handle cfv1, cfv3 and mac.
4168         (m68k_sched_mac): New variable.
4169         (m68k_sched_attr_type2, m68k_sched_md_init_global): Update.
4170         Handle cfv1 and cfv3.
4171         (max_insn_size): New static variable.
4172         (struct _sched_ib): New type.
4173         (sched_ib): New static variable.
4174         (sched_ib_size, sched_ib_filled, sched_ib_insn): Convert variables
4175         to fields of 'struct _sched_ib sched_ib'.  Update all uses.
4176         (m68k_sched_variable_issue): Add modeling of cfv3 instruction buffer.
4177         Update.
4178         (m68k_sched_md_init_global, m68k_sched_md_finish_global,
4179         m68k_sched_md_init, m68k_sched_md_finish): Handle cfv1 and cfv3.  Init
4180         new variables.  Update.
4181         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
4182         Add modeling of cfv3 instruction buffer.  Update.
4183         * config/m68k/m68k-protos.h (m68k_sched_mac): Declare.
4184         * config/m68k/m68k.h (TUNE_CFV3): New macro.
4185         * config/m68k/cf.md: Change substrings 'cf_v2' to 'cfv12' or 'cfv123'.
4186         (cf_* reservations): Rename to cfv12 or cfv123 to indicate cores
4187         a particular reservation applies to.
4188         (type2): Reorganize attribute values.  Rename alu to alu_reg,
4189         alu_l to alu, move_l to omove.  Join move to alu.  Split mul
4190         to mul_l and mul_w.
4191         (cf_ib_*): Simplify description of instruction buffer.
4192         (cf_ib_w0, cf_ib_w4, cf_ib_w5, cf_ib_w6): Remove.
4193         (cf_mem): Split into cf_mem1 and cf_mem2.
4194         (cf_v2_move_??): Rename to cfv12_alu_??.
4195         (cf_v2_move_l_??): Rename to cfv12_omove_??.
4196         (cf_v2_mul_??): Remove reservations.
4197         (cfv12_mul_l_??, cfv12_mul_w_??, cfv12_mac_w_??, cfv12_mac_l_??,
4198         cfv12_emac_??, cfv12_emac_w_i0): New reservations.
4199         (cfv12_rts, cfv12_call, cfv12_bcc, cfv12_bra, cfv12_jmp): Move to
4200         appropriate place.
4201         (cfv3_alu_10, cfv3_omove_10, cfv3_alu_i0, cfv3_omove_i0, cfv3_alu_01,
4202         cfv3_alu_0i, cfv3_alu_11, cfv3_omove_11, cfv3_alu_i1, cfv3_omove_i1,
4203         cfv3_alu_1i, cfv3_omove_1i, cfv3_pea_11, cfv3_pea_i1, cfv3_mul_w_10,
4204         cfv3_mul_l_10, cfv3_mul_w_i0, cfv3_mac_w_10, cfv3_mac_l_10,
4205         cfv3_mac_w_i0, cfv3_emac_10, cfv3_emac_w_i0, cfv3_rts, cfv3_call,
4206         cfv3_bcc, cfv3_bra, cfv3_jmp): New reservations.
4207         (cfv3_*_1, cfv3_*_2, cfv3_*_3): New instruction reservations that are
4208         expansions of the above reservations for instructions of sizes
4209         1, 2 and 3 words.
4210
4211 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
4212
4213         * rtl-factoring.c (collect_patterns_seqs): Handle CC0 targets.
4214
4215 2008-04-21  Adam Nemet  <anemet@caviumnetworks.com>
4216
4217         * coverage.c: Include tree-pass.h.
4218         (coverage_counter_alloc): Print da_file_name to the dump file.
4219
4220 2008-04-21  Kenneth Zadeck  <zadeck@naturalbridge.com>
4221
4222         * sbitmap.c (sbitmap_range_empty_p): New function.
4223         * sbitmap.h (sbitmap_range_empty_p): New function.
4224         * bitmap.h: Now includes obstack.h.
4225
4226 2008-04-21  Richard Sandiford  <rsandifo@nildram.co.uk>
4227             Kenneth Zadeck  <zadeck@naturalbridge.com>
4228
4229         * dbgcnt.def (ra_byte_scan): Added.
4230         * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
4231         when the last hit happens for a counter.  
4232         * timevar.def (TV_DF_BYTE_LR): New variable.
4233         * tree-pass.h (pass_fast_rtl_byte_dce): New pass.
4234         * passes.c (pass_fast_rtl_byte_dce): New pass.
4235         * fwprop.c (update_df): Added mode to call df_ref_create.
4236         Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
4237         DF_REF_EXTRACT_OFFSET.
4238         * df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN, 
4239         DF_BYTE_LR_OUT, df_byte_lr): New macro.
4240         (df_mm): New enum.
4241         (df_ref_extract): Added mode field.
4242         (DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
4243         DF_REF_EXTRACT_OFFSET.
4244         (DF_REF_EXTRACT_MODE): New macro.
4245         (df_byte_lr_bb_info): New structure.
4246         (df_print_byte_regset, df_compute_accessed_bytes, 
4247         df_byte_lr_add_problem, df_byte_lr_get_regno_start,
4248         df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
4249         df_byte_lr_simulate_uses,
4250         df_byte_lr_simulate_artificial_refs_at_top,
4251         df_byte_lr_simulate_artificial_refs_at_end,
4252         df_compute_accessed_bytes): New function.
4253         (df_ref_create): Add parameter.
4254         (df_byte_lr_get_bb_info): New inline function.
4255         * df-scan.c (df_ref_record, df_uses_record,
4256         df_ref_create_structure): Added mode parameter.
4257         (df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1, 
4258         df_defs_record, df_uses_record, df_get_conditional_uses,
4259         df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect, 
4260         df_entry_block_defs_collect, df_exit_block_uses_collect):
4261         Added mode parameter to calls to df_ref_record, df_uses_record,
4262         df_ref_create_structure.
4263         (df_ref_equal_p, df_ref_compare): Added test for modes.
4264         (df_ref_create_structure): Added code to set mode.  Renamed
4265         DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
4266         DF_REF_EXTRACT_OFFSET.
4267         * df-core.c (df_print_byte_regset): New function.
4268         * df-byte-scan.c: New file.
4269         * df-problems.c (df_rd_transfer_function): Removed unnecessary
4270         calls to BITMAP_FREE.  
4271         (df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
4272         (df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
4273         df_byte_lr_set_bb_info, df_byte_lr_free_bb_info, 
4274         df_byte_lr_check_regs, df_byte_lr_expand_bitmap, 
4275         df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
4276         df_byte_lr_local_compute, df_byte_lr_init,
4277         df_byte_lr_confluence_0, df_byte_lr_confluence_n, 
4278         df_byte_lr_transfer_function, df_byte_lr_free, 
4279         df_byte_lr_top_dump, df_byte_lr_bottom_dump,
4280         df_byte_lr_add_problem, df_byte_lr_simulate_defs, 
4281         df_byte_lr_simulate_uses,
4282         df_byte_lr_simulate_artificial_refs_at_top,
4283         df_byte_lr_simulate_artificial_refs_at_end): New function.
4284         * dce.c (byte_dce_process_block): New function.
4285         (dce_process_block): au is now passed in rather than computed
4286         locally.  Changed loops that look at artificial defs to not look
4287         for conditional or partial ones, because there never are any.  
4288         (fast_dce): Now is able to drive byte_dce_process_block or 
4289         dce_process_block depending on the kind of dce being done.
4290         (rest_of_handle_fast_dce): Add parameter to fast_dce.
4291         (rest_of_handle_fast_byte_dce): New function.
4292         (rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
4293         * Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
4294
4295 2008-04-21  Daniel Franke  <franke.daniel@gmail.com>
4296
4297         PR fortran/35019
4298         * gcc.h: Added fortran options that take arguments to
4299         DEFAULT_SWITCH_TAKES_ARG and DEFAULT_WORD_SWITCH_TAKES_ARG
4300         macros.
4301
4302 2008-04-20  Eric Botcazou  <ebotcazou@adacore.com>
4303
4304         * tree-sra.c (sra_walk_expr) <VIEW_CONVERT_EXPR>: Disable
4305         scalarization if on the LHS and not a full access.
4306
4307 2008-04-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4308
4309         * Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing it.
4310
4311 2008-04-18  Rafael Espindola  <espindola@google.com>
4312
4313         * tree-vrp.c (find_case_label_index): Fix the binary search.
4314         (find_case_label_range): New.
4315         (vrp_visit_switch_stmt): Use find_case_label_range.
4316         (simplify_switch_using_ranges): Use find_case_label_range.
4317
4318 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
4319
4320         * gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
4321         using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
4322
4323 2008-04-18  Tom Tromey  <tromey@redhat.com>
4324
4325         PR libcpp/15500:
4326         * doc/cpp.texi (Implementation-defined behavior): Mention
4327         -finput-charset.
4328
4329 2008-04-18  Ian Lance Taylor  <iant@google.com>
4330
4331         * fold-const.c (pointer_may_wrap_p): New static function.
4332         (fold_comparison): Add another test for pointer overflow.  Use
4333         pointer_may_wrap_p to disable some false positives.
4334
4335 2008-04-18  Kris Van Hees <kris.van.hees@oracle.com>
4336           
4337         * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros.
4338         (fname_as_string): Match updated cpp_interpret_string prototype.
4339         (fix_string_type): Support char16_t* and char32_t*.
4340         (c_common_nodes_and_builtins): Add char16_t and char32_t (and
4341         derivative) nodes.  Register as builtin if C++0x.
4342         (c_parse_error): Support CPP_CHAR{16,32}.
4343         * c-common.h (RID_CHAR16, RID_CHAR32): New elements. 
4344         (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE,
4345         CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE,
4346         CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE,
4347         CTI_CHAR32_ARRAY_TYPE>: New elements.
4348         (char16_type_node, signed_char16_type_node, unsigned_char16_type_node,
4349         char32_type_node, signed_char32_type_node, char16_array_type_node,
4350         char32_array_type_node): New defines.
4351         * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype.
4352         (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
4353         (lex_string): Support CPP_STRING{16,32}, match updated
4354         cpp_interpret_string and cpp_interpret_string_notranslate prototypes.
4355         (lex_charconst): Support CPP_CHAR{16,32}.
4356         * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32}
4357         and CPP_STRING{16,32}.
4358
4359 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
4360
4361         PR bootstrap/35457
4362         * aclocal.m4: Regenerate.
4363         * configure: Regenerate.
4364
4365 2008-04-18  Jan Hubicka  <jh@suse.cz>
4366
4367         * except.c (dw2_size_of_call_site_table,
4368         sjlj_size_of_call_site_table): Use vector API for call_site_record.
4369
4370         * cgraphbuild.c (build_cgraph_edges): Update.
4371         * tree-pass.h: Update comment.
4372         * final.c (leaf_function_p): Update.
4373         (leaf_renumber_regs): Update.
4374         (rest_of_clean_state): Update.
4375         * omp-low.c (expand_omp_parallel): Update.
4376         * ipa-reference.c (analyze_function): Update.
4377         * reorg.c (find_end_label): Update.
4378         (optimize_skip): Update.
4379         (fill_simple_delay_slots): Update.
4380         (fill_simple_delay_slots): Update.
4381         (make_return_insns): Update.
4382         (dbr_schedule): Update.
4383         * gimple-low.c (record_vars_into): Update.
4384         * cfgbuild.c (make_edges): Update.
4385         * function.c (assign_stack_local): Update.
4386         (assign_parm_adjust_stack_rtl): Update.
4387         (locate_and_pad_parm): Update.
4388         (allocate_struct_function): Do not initialize stack_alignment_needed
4389         and preferred_stack_boundary here.
4390         (stack_protect_prologue): Update.
4391         (stack_protect_epilogue): Update.
4392         (expand_function_start): Initialize stack_alignment_needed,
4393         preferred_stack_boundary and max_jumptable_ents.
4394         (expand_function_end): Update.
4395         (free_after_compilation): Do not NULLify epilogue_delay_list.
4396         * function.h (struct rtl_data): Add stack_protect_guard,
4397         stack_alignment_needed,
4398         preferred_stack_boundary, epilogue_delay_list.
4399         (struct function): Remove value_histograms, stack_alignment_needed,
4400         preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
4401         last_label_uid,
4402         unexpanded_var_list, stack_protect_guard.
4403         (current_function_epilogue_delay_list): Remove.
4404         * ipa-type-escape.c (analyze_function): Update.
4405         * gimplify.c (pop_gimplify_context): Update comment.
4406         * calls.c (expand_call): Update.
4407         (emit_library_call_value_1): Update.
4408         * except.c (set_nothrow_function_flags): Update.
4409         * cfgexpand.c (get_decl_align_unit): Update.
4410         (create_stack_guard): Update.
4411         (estimated_stack_frame_size): Update.
4412         (expand_used_vars): Update.
4413         (tree_expand_cfg): Free histogram earliers, init expansion variables.
4414         * explow.c (allocate_dynamic_stack_space): Update.
4415         * tree-ssa-live.c (remove_unused_locals): Update.
4416         * varasm.c (mark_constant_pool): Update.
4417         * tree-inline.c (remap_decls): Update.
4418         (initialize_cfun): Update.
4419         (declare_return_variable): Update.
4420         (inline_forbidden_p): Update.
4421         (expand_call_inline): Update.
4422         (declare_inline_vars): Update.
4423         (tree_function_versioning): Update.
4424         * tree-flow.h (value_histograms): New.
4425         (VALUE_HISTOGRAMS): New macro.
4426         * basic-block.h (control_flow_graph): Add max_jumptable_ents,
4427         last_label_uid.
4428         * tree-cfg.c (set_bb_for_stmt): Update.
4429         (replace_by_duplicate_decl): Update.
4430         (move_block_to_fn): Update.
4431         (new_label_mapper): Update.
4432         (dump_function_to_file): Update.
4433         * ipa-struct-reorg.c (build_data_structure): Update.
4434         * cfgrtl.c (print_rtl_with_bb): Update.
4435         * reload1.c (reload): Update.
4436         (reload): Update.
4437         * config/i386/i386.c (setup_incoming_varargs_64,
4438         ix86_compute_frame_layout): Update.
4439         * config/arc/arc.c (arc_output_function_epilogue): Update.
4440
4441 2008-04-18  Marius Strobl <marius@FreeBSD.org>
4442
4443         * gthr-posix.h (__gthread_active_p): Use the Solaris implementation
4444         for FreeBSD as well.
4445         * gthr-posix95.h: Likewise.
4446
4447 2008-04-17  Richard Sandiford  <rsandifo@nildram.co.uk>
4448
4449         PR rtl-optimization/35838
4450         * dse.c (find_shift_sequence): Use subreg_lowpart_offset to work
4451         out the byte offset of the first subreg.
4452
4453 2008-04-17  Uros Bizjak  <ubizjak@gmail.com>
4454
4455         * config/i386/i386.md (addti3 splitter): Pass arrays of 3 operands
4456         to split_ti instead of three separate calls with single member arrays.
4457         (subti3 splitter): Ditto.
4458         (adddi3 splitter): Ditto with split_di.
4459         (subdi3 splitter): Ditto.
4460         (negti2 splitter): Pass arrays of 2 operands to split_ti instead of
4461         two separate calls with single member arrays.  Swap match_dup
4462         operands 1 and 2 to better fit into the array.
4463         (negdi2 splitter): Ditto with split_di.
4464         (movdfcc splitter):  Pass arrays of 2 operands to split_di instead of
4465         two separate calls with single member arrays.  Swap match_dup operands
4466         6 and 7 to better fit into the array.
4467
4468 2008-04-17  H.J. Lu  <hongjiu.lu@intel.com>
4469
4470         * config/i386/i386.c (sse_builtin_type): New.
4471         (bdesc_sse_args): Likewise.
4472         (bdesc_sse_3arg): Removed.
4473         (bdesc_2arg): Remove IX86_BUILTIN_AESKEYGENASSIST128.
4474         (bdesc_1arg): Remove IX86_BUILTIN_ROUNDPD and
4475         IX86_BUILTIN_ROUNDPS.
4476         (ix86_init_mmx_sse_builtins): Handle bdesc_sse_args.  Remove
4477         bdesc_sse_3arg.  Remove IX86_BUILTIN_ROUNDPD and
4478         IX86_BUILTIN_ROUNDPS.
4479         (ix86_expand_sse_4_operands_builtin): Removed.
4480         (ix86_expand_sse_operands_builtin): New.
4481         (ix86_expand_unop_builtin): Remove CODE_FOR_sse4_1_roundpd
4482         and CODE_FOR_sse4_1_roundps.
4483         (ix86_expand_builtin): Remove IX86_BUILTIN_AESKEYGENASSIST128.
4484         Handle bdesc_sse_args.  Remove bdesc_sse_3arg.
4485
4486 2008-04-17  Alan Modra  <amodra@bigpond.net.au>
4487
4488         PR target/35907
4489         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Restore vr and vrsave
4490         regs before frame pop when needed.  If use_backchain_to_restore_sp
4491         then load backchain into a temp reg to restore vr and vrsave.  Add
4492         code to restore vr after frame pop if possible.
4493
4494 2008-04-17  Richard Guenther  <rguenther@suse.de>
4495
4496         * tree-vn.c (expressions_equal_p): Do not check type
4497         equality or compatibility before calling operand_equal_p.
4498         * fold-const.c (operand_equal_p): Check equivalence of
4499         integer constants before bailing out due to signedness or
4500         precision differences.
4501         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
4502         spurious differences in type qualification.  Ignore types
4503         for COMPONENT_REFs at all.
4504
4505 2008-04-17  Christian Bruel  <christian.bruel@st.com>
4506
4507         * config/sh/sh.c (expand_cbranchdi4): Use original operands for
4508         msw_skip comparison.
4509         
4510 2008-04-16  Jakub Jelinek  <jakub@redhat.com>
4511
4512         PR c/35739
4513         * tree-nrv.c (tree_nrv): Don't optimize if result_type is GIMPLE
4514         reg type.
4515
4516         PR tree-optimization/35899
4517         * tree-inline.c (expand_call_inline): Use GIMPLE_STMT_OPERAND
4518         rather than TREE_OPERAND.
4519
4520 2008-04-16  Uros Bizjak  <ubizjak@gmail.com>
4521
4522         PR target/35944
4523         * config/i386/i386.md (fmodxf3): Copy operand 1 and operand 2 into
4524         temporary registers.  Change operand predicate to general_operand.
4525         (remainderxf3): Ditto.
4526
4527 2008-04-16  Richard Guenther  <rguenther@suse.de>
4528
4529         * Makefile.in (tree-affine.o): Add $(FLAGS_H) dependency.
4530         * tree-affine.c (aff_combination_expand): Look through some
4531         conversions.
4532
4533 2008-04-15  Doug Kwan  <dougkwan@google.com>
4534
4535         * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
4536         for hex printing.
4537         * tree-pretty-print.c (dump_generic_node): Ditto.
4538         * final.c (output_addr_const): Ditto.
4539         * dwarf2out.c (output_cfi): Ditto.
4540         * c-pretty-print.c (pp_c_integer_constant): Ditto.
4541         * print-rtl.c (print_rtx): Ditto.
4542         * print-tree.c (print_node_brief, print_node): Ditto.
4543         * c-common.c (match_case_to_enum_1): Ditto.
4544         * sched-vis.c (print_value): Ditto.
4545         * config/i386/i386.c (print_operand): Cast to long unsigned int
4546         for hex printing.
4547
4548 2008-04-15  Danny Smith  <dannysmith@users.sourceforge.net>
4549         * libgcc2.c [L_trampoline]: Remove  unnecessary prototype for
4550         MS Windows VirtualProtect function.
4551
4552 2008-04-15  Jan Hubicka  <jh@suse.cz>
4553
4554         * gengtype.c (write_root): Param_is argument is OK.
4555         * expr.c (expand_expr_real_1): Update call of get_exception_*.
4556         * function.h: Include varray.h
4557         (rtl_eh): New stucture based on except.c one.
4558         (call_site_record): New forward declaration and vector type.
4559         * calls.c (emit_call_1): Do not call
4560         note_current_region_may_contain_throw.
4561         * except.c (eh_status): Remove cur_region, try_region since they are
4562         unused.
4563         Move filter, exc_ptr, ttype_data, ehspec_data, action_record_data and
4564         exception_handler_label_map, ehr_stackadj, ehr_handler, ehr_label,
4565         sjlj_fc, sjlj_exit_after to rth_eh in function.h. 
4566         Remove call_site_data_used, call_site_data_size.
4567         Turn call_site_record into vector in function.h.
4568         (note_current_region_may_contain_throw): Remove.
4569         (get_exception_pointer, get_exception_filter): Do not take struct
4570         function argument; update.
4571         (add_ehl_entry, find_exception_handler_labels, ehspec_filter_hash,
4572         add_ttypes_entry, add_ehspec_entry, assign_filter_values,
4573         build_post_landing_pads, dw2_build_landing_pads,
4574         sjlj_assign_call_site_values, sjlj_mark_call_sites,
4575         sjlj_emit_function_enter, sjlj_emit_function_enter, 
4576         sjlj_emit_function_exit, sjlj_emit_dispatch_table,
4577         sjlj_build_landing_pads, finish_eh_generation,
4578         remove_exception_handler_label, remove_eh_handler,
4579         maybe_remove_eh_handler, add_reachable_handler,
4580         reachable_handlers, expand_builtin_eh_return, expand_eh_return,
4581         add_action_record, collect_one_action_chain, add_call_site,
4582         convert_to_eh_region_ranges, sjlj_size_of_call_site_table,
4583         sjlj_output_call_site_table, output_function_exception_table,
4584         * except.h (note_current_region_may_contain_throw): Remove
4585         (get_exception_pointer, get_exception_filter): Do not take struct
4586         function argument.
4587         * Makefile.in (GTFILES): Put varargs before struct function.
4588
4589 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
4590
4591         * tree-ssa-structalias.c (get_constraint_for_component_ref): Do not
4592         punt for STRING_CST.
4593         (get_constraint_for): Deal with STRING_CST here instead.
4594
4595 2008-04-15  Richard Guenther  <rguenther@suse.de>
4596
4597         * tree-ssa-propagate.c (substitute_and_fold): Substitute
4598         statements in a basic-block with a backward walk.  Do not
4599         substitute into dead statements but instead remove those.
4600
4601 2008-04-15  Richard Guenther  <rguenther@suse.de>
4602
4603         * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Set default
4604         to zero, thus disable creation of SFTs.
4605
4606 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
4607
4608         * tree-predcom.c (suitable_reference_p): Return false if the
4609         reference can throw.
4610
4611 2008-04-15  Jakub Jelinek  <jakub@redhat.com>
4612
4613         PR c/35751
4614         * c-decl.c (finish_decl): If extern or static var has variable
4615         size, set TREE_TYPE (decl) to error_mark_node.
4616
4617 2008-04-15  Rafael Espindola  <espindola@google.com>
4618
4619         * fold-const.c (tree_call_nonnegative_warnv_p): Remove local
4620         variable arg1.
4621
4622 2008-04-15  Richard Guenther  <rguenther@suse.de>
4623
4624         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
4625         * tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
4626         (visit_reference_op_load): Do walk vuse-vdef chains on
4627         vn_reference_lookup.
4628         (visit_reference_op_store): But do not here.
4629         * tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
4630         vn_reference_lookup.
4631         (vn_lookup_with_vuses): But do so here.
4632
4633 2008-04-14  Ian Lance Taylor  <iant@google.com>
4634
4635         * fold-const.c (fold_overflow_warning): Remove assertion.
4636
4637 2008-04-15  Ben Elliston  <bje@au.ibm.com>
4638
4639         * config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp,
4640         temp1 local variables.
4641
4642 2008-04-15  Zuxy Meng  <zuxy.meng@gmail.com>
4643
4644         PR target/35661
4645         * config/i386/winnt.c (i386_pe_section_type_flags): Mark
4646         ".text.unlikely" section as executable.
4647
4648 2008-04-14  James E. Wilson  <wilson@tuliptree.org>
4649
4650         * config/ia64/ia64.c (rtx_needs_barrier): Handle
4651         UNSPEC_FR_SQRT_RECIP_APPROX_RES.
4652         * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define.
4653         (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr,
4654         divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr,
4655         divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat,
4656         divxf3_internal_thr, sqrtxf2_internal_thr, recip_approx): Use it.
4657
4658 2008-04-14  Ian Lance Taylor  <iant@google.com>
4659
4660         * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
4661         * fold-const.c (fold_comparison): If appropriate, test
4662         POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
4663         (fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
4664         reassociating a pointer type.
4665         * doc/invoke.texi (Optimize Options): Document that
4666         -fstrict-overflow applies to pointer wraparound.
4667
4668 2008-04-13  Jan Hubicka  <jh@suse.cz>
4669
4670         * m32.c (m32c_pushm_popm): Use crtl->retrun_rtx.
4671
4672 2008-04-12  Andrew Pinski  <pinskia@gmail.com>
4673
4674         * config/rs6000/rs6000.c (compute_save_world_info): Set lr_save_p if
4675         we are going to "save the world".
4676
4677 2008-04-13  Hans-Peter Nilsson  <hp@axis.com>
4678
4679         * config/cris/cris.md ("*andhi_lowpart_non_v32", "*andhi_lowpart_v32")
4680         ("*andqi_lowpart_non_v32", "*andqi_lowpart_v32"): Use "+" for the
4681         operand 0 constraint, not "=".
4682
4683 2008-04-11  James E. Wilson  <wilson@tuliptree.org>
4684
4685         * system.h: Change ASSERT_CHECKING to ENABLE_ASSERT_CHECKING.
4686
4687 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
4688
4689         * dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
4690         of size of positions_needed * CHAR_BIT.
4691
4692 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
4693
4694         PR middle-end/35897
4695         * dse.c (store_info): Change positions_needed to unsigned
4696         HOST_WIDE_INT.
4697         (lowpart_bitmask): New.
4698         (record_store): Cast to unsigned HOST_WIDE_INT for
4699         positions_needed.  Assert width <= size of positions_needed *
4700         CHAR_BIT.  Call lowpart_bitmask to initialize positions_needed.
4701         (check_mem_read_rtx): Use unsigned HOST_WIDE_INT on mask.  Call
4702         lowpart_bitmask to set mask.
4703
4704 2008-04-11  Bernd Schmidt  <bernd.schmidt@analog.com>
4705
4706         * config/bfin/constraints.md: New file.
4707         * config/bfin/bfin.md: Include it.
4708         (adddi3): Use satisfies_constraint functions instead of the old macros.
4709         * config/bfin/bfin.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
4710         CONST_18UBIT_IMM_P, CONST_16BIT_IMM_P, CONST_16UBIT_IMM_P,
4711         CONST_7BIT_IMM_P, CONST_7NBIT_IMM_P, CONST_5UBIT_IMM_P,
4712         CONST_4BIT_IMM_P, CONST_4UBIT_IMM_P, CONST_3BIT_IMM_P,
4713         CONST_3UBIT_IMM_P, CONST_OK_FOR_K, CONST_OK_FOR_P, CONST_OK_FOR_M,
4714         CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER,
4715         EXTRA_CONSTRAINT): Delete.
4716         * config/bfin/predicates.md (highbits_operand, reg_or_7bit_operand,
4717         reg_or_neg7bit_operand): Use satisfies_constraint functions instead
4718         of the old macros.
4719         * config/bfin/bfin.c: Include "tm-constrs.h".
4720         (bfin_secondary_reload, split_load_immediate, bfin_rtx_costs):
4721         Use satisfies_constraint functions instead of the old macros.
4722         * doc/md.texi (Blackfin Constraints): Update file name reference.
4723
4724 2008-04-11  Richard Guenther  <rguenther@suse.de>
4725
4726         PR tree-optimization/35869
4727         * tree-vrp.c (execute_vrp): Move switch statement update after
4728         jump threading.  Schedule another cfg cleanup run.
4729
4730 2008-04-11  Volker Reichelt  <v.reichelt@netcologne.de>
4731
4732         PR c/35744
4733         * attribs.c (decl_attributes): Return early on errorneous node.
4734
4735 2008-04-10  Oleg Ryjkov  <olegr@google.com>
4736
4737         * tree.h (struct tree_base): Added a new flag default_def_flag.
4738         (SSA_NAME_IS_DEFAULT_DEF): Changed to use the new flag.
4739
4740 2008-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
4741
4742         * config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*.
4743
4744 2008-04-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4745
4746         PR target/35768
4747         * pa.md: Define mode iterator P.  Define mode attribute dwc.
4748         (dcacheflush): Update pattern to use iterator P and attribute dwc.
4749         (icacheflush): Likewise.
4750         * pa.h (INITIALIZE_TRAMPOLINE): Use dcacheflushsi/icacheflushsi if
4751         !TARGET_64BIT, and dcacheflushdi/icacheflushdi if TARGET_64BIT.
4752
4753 2008-04-11  Ben Elliston  <bje@au.ibm.com>
4754
4755         * config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
4756
4757 2008-04-10  Rafael Espindola  <espindola@google.com>
4758
4759         * tree-vrp.c (extract_range_from_binary_expr): Don't handle
4760         TRUTH_ANDIF_EXPR or TRUTH_ORIF_EXPR.
4761         (extract_range_from_expr): The same.
4762
4763 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
4764
4765         * config/mips/mips.md (GPR2): New mode iterator.
4766         (seq): Add comment.
4767         (*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
4768         *sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
4769         *slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
4770         Rewrite these to take two modes, the mode of comparison and the
4771         mode of the destination.
4772         * config/mips/mips.c (mips_expand_scc): Instead of having
4773         paradoxical subreg as destination, expand "narrowing" scc if mode
4774         of comparison is SI and target is requested in DI mode.
4775         (mips_emit_int_order_test): Update comment.  Make mode of
4776         comparison match CMP0 rather than TARGET.  When creating inverse
4777         target use mode of TARGET.
4778
4779 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
4780
4781         * gcov-dump.c (tag_summary): Only print summaries for the first
4782         GCOV_COUNTERS_SUMMABLE counters.
4783
4784 2008-04-10  Uros Bizjak  <ubizjak@gmail.com>
4785
4786         * config/i386/i386.md (absneg): New code iterator.
4787         (absnegprefix): New code attribute.
4788         (<code><mode>2): Macroize expander from abs<mode>2 and neg<mode>2
4789         patterns using absneg code iterator.
4790         (<code>tf2): Macroize expander from abstf2 and negtf2 patterns
4791         using absneg code iterator.
4792         (*<code><mode>2_1): Macroize insn pattern from *abs<mode>2_1 and
4793         *neg<mode>2 patterns using absneg code iterator.
4794         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
4795         *negextendsfdf2 patterns using absneg code iterator.
4796         (*<code>extendsfxf2): Macroize insn pattern from *absextendsfxf2 and
4797         *negextendsfxf2 patterns using absneg code iterator.
4798         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
4799         *negextendsfdf2 patterns using absneg code iterator.
4800         * config/i386/sse.md (<code><mode>2): Macroize expander from
4801         abs<mode>2 and neg<mode>2 patterns using absneg code iterator. 
4802
4803 2008-04-10  Andreas Krebbel  <krebbel1@de.ibm.com>
4804
4805         * config/s390/s390.h: Remove the remains of the recent search
4806         & replace action of current_function_outgoing_args_size.
4807
4808 2008-04-10  Ira Rosen  <irar@il.ibm.com>
4809
4810         PR tree-optimization/35821
4811         * tree-vect-transform.c (vect_create_data_ref_ptr): Add check that
4812         NEW_STMT_LIST is not NULL.
4813
4814 2008-04-09  David Edelsohn  <edelsohn@gnu.org>
4815
4816         PR libstdc++/35597
4817         * toplev.c (process_options): Remove -ffunction-sections debugging
4818         warning.
4819
4820 2008-04-09  Peter Bergner  <bergner@vnet.ibm.com>
4821
4822         PR middle-end/PR28690
4823         * explow.c (break_out_memory_refs): Use simplify_gen_binary rather
4824         than gen_rtx_fmt_ee to perform more canonicalizations.
4825
4826 2008-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4827
4828         PR driver/35665
4829         * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
4830
4831 2008-04-09  Richard Guenther  <rguenther@suse.de>
4832
4833         * tree-cfg.c (verify_stmt): Print complete bogus stmt.
4834         (dump_function_to_file): Dump function arguments with types.
4835
4836 2008-04-08  Richard Guenther  <rguenther@suse.de>
4837
4838         * fold-const.c (fold_widened_comparison): Do not allow
4839         sign-changes that change the result.
4840
4841 2008-04-08  Janis Johnson  <janis187@us.ibm.com>
4842
4843         PR target/35839
4844         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
4845         kinds of indirect references.
4846
4847 2008-04-08  David Edelsohn  <edelsohn@gnu.org>
4848
4849         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
4850         GNU Fortran language string.
4851
4852 2008-04-08  Rafael Espindola  <espindola@google.com>
4853
4854         * fold-canst.c (tree_call_nonnegative_warnv_p): New.
4855         (tree_invalid_nonnegative_warnv_p): Use tree_call_nonnegative_warnv_p.
4856         * tree.h (tree_call_nonnegative_warnv_p): New.
4857
4858 2008-04-08  Jan Hubicka  <jh@suse.cz>
4859
4860         * function.c (free_after_compilation): Clear out regno_reg_rtx
4861         pointer.
4862
4863 2008-04-08  Peter Bergner  <bergner@vnet.ibm.com>
4864
4865         Revert
4866         2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
4867
4868         PR middle-end/PR28690
4869         * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
4870         same precedence as REG_POINTER and MEM_POINTER operands.
4871
4872 2008-04-08  Richard Guenther  <rguenther@suse.de>
4873
4874         PR middle-end/35834
4875         * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
4876         for adding index to base.
4877
4878 2008-04-08  Kai Tietz  <kai.tietz@onevision.com>
4879
4880         * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
4881         (MINGW_ENABLE_EXECUTE_STACK): New.
4882         (IN_LIBGCC2): For libgcc include windows.h file for
4883         function declarations.
4884
4885 2008-04-08  Hans-Peter Nilsson  <hp@axis.com>
4886
4887         * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
4888         and tem2 if tem1 is not a REG or MULT.
4889
4890 2008-04-08  Jan Hubicka  <jh@suse.cz>
4891
4892         * function.h (incomming_args): Break out of struct function.
4893         (function_subsections): Break out of struct function.
4894         (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
4895         return_rtx and hard_reg_initial_vals from struct function.
4896         Kill inl_max_label_num.
4897         (current_function_pops_args, current_function_args_info,
4898         current_function_args_size, current_function_args_size,
4899         current_function_pretend_args_size,
4900         current_function_outgoing_args_size,
4901         current_function_internal_arg_pointer, current_function_return_rtx):
4902         Kill compatibility accestor macros.
4903         * builtins.c (expand_builtin_apply_args_1): Update.
4904         (expand_builtin_next_arg): Update.
4905         * df-scan.c (df_get_call_refs): Update.
4906         * dbxout.c (dbxout_function_end): Update.
4907         * dwarf2out.c (dwarf2out_switch_text_section): Update.
4908         (output_line_info): Update.
4909         (secname_for_decl): Update.
4910         (dwarf2out_var_location): Update.
4911         * function.c (free_after_compilation): Update.
4912         (assign_parm_find_stack_rtl): Update.
4913         (assign_parms): Update.
4914         (expand_dummy_function_end): Update.
4915         (expand_function_end): Update.
4916         * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
4917         (expand_call): Update.
4918         (emit_library_call_value_1): Update.
4919         (store_one_arg): Update.
4920         * varasm.c (initialize_cold_section_name): Update.
4921         (unlikely_text_section): Update.
4922         (unlikely_text_section_p): Update.
4923         (assemble_start_function): Update.
4924         (assemble_end_function): Update.
4925         (default_section_type_flags): Update.
4926         (switch_to_section): Update.
4927         * integrate.c (set_decl_abstract_flags): Update.
4928         (get_hard_reg_initial_val): Update.
4929         (has_hard_reg_initial_val): Update.
4930         (allocate_initial_values): Update.
4931         * resource.c (init_resource_info): Update.
4932         * config/alpha/alpha.c (NUM_ARGS): Update.
4933         (direct_return): Update.
4934         (alpha_va_start): Update.
4935         (alpha_sa_size): Update.
4936         (alpha_initial_elimination_offset): Update.
4937         (alpha_expand_prologue): Update.
4938         (alpha_start_function): Update.
4939         (alpha_expand_epilogue): Update.
4940         (unicosmk_initial_elimination_offset):
4941         * config/alpha/alpha.md (call expander): Update.
4942         * config/s390/s390.c (s390_register_info): Update.
4943         (s390_register_info): Update.
4944         (s390_frame_info): Update.
4945         (s390_initial_elimination_offset): Update.
4946         (s390_build_builtin_va_list): Update.
4947         (s390_va_start): Update.
4948         * config/spu/spu.c (direct_return): Update.
4949         (spu_expand_prologue): Update.
4950         (spu_initial_elimination_offset): Update.
4951         (spu_build_builtin_va_list): Update.
4952         (spu_va_start): Update.
4953         * config/sparc/sparc.c (sparc_init_modes): Update.
4954         (sparc_compute_frame_size): Update.
4955         (function_value): Update.
4956         * config/m32r/m32r.c (m32r_compute_frame_size): Update.
4957         * config/i386/i386.md (return expander): Update.
4958         * config/i386/i386.c (ix86_va_start): Update.
4959         (ix86_can_use_return_insn_p): Update.
4960         (ix86_compute_frame_layout): Update.
4961         (ix86_expand_epilogue): Update.
4962         * config/sh/sh.c (output_stack_adjust): Update.
4963         (calc_live_regs): Update.
4964         (sh_expand_prologue): Update.
4965         (sh_builtin_saveregs): Update.
4966         (sh_va_start): Update.
4967         (initial_elimination_offset): Update.
4968         (sh_allocate_initial_value): Update.
4969         (sh_function_ok_for_sibcall): Update.
4970         (sh_get_pr_initial_val): Update.
4971         * config/sh/sh.md (return expander): Update.
4972         * config/avr/avr.c (frame_pointer_required_p): UPdate.
4973         * config/crx/crx.c (crx_compute_frame): UPdate.
4974         (crx_initial_elimination_offset): UPdate.
4975         * config/xtensa/xtensa.c (compute_frame_size): Update
4976         (xtensa_builtin_saveregs): Update.
4977         (xtensa_va_start): Update.
4978         (order_regs_for_local_alloc): Update.
4979         * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
4980         (xstormy16_expand_builtin_va_start): Update.
4981         * config/fr30/fr30.c (fr30_compute_frame_size): Update.
4982         * config/m68hc11/m68hc11.md (return expanders): Update.
4983         * config/m68hc11/m68hc11.c (expand_prologue): Update.
4984         (expand_epilogue): Update.
4985         * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
4986         (cris_simple_epilogue): Update.
4987         (cris_expand_prologue): Update.
4988         (cris_expand_epilogue): Update.
4989         * config/iq2000/iq2000.c (iq2000_va_start): Update.
4990         (compute_frame_size): Update.
4991         * config/mt/mt.c (mt_compute_frame_size): Update.
4992         * config/mn10300/mn10300.c (expand_prologue): Update.
4993         (expand_epilogue): Update.
4994         (initial_offset): Update.
4995         (mn10300_builtin_saveregs):
4996         * config/mn10300/mn10300.md (return expander): Update.
4997         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
4998         (ia64_initial_elimination_offset): Update.
4999         (ia64_initial_elimination_offset): Update.
5000         (ia64_expand_prologue): Update.
5001         * config/m68k/m68k.md (return expander): Update.
5002         * config/rs6000/rs6000.c (rs6000_va_start): Update.
5003         (rs6000_stack_info): Update.
5004         * config/mcore/mcore.c (layout_mcore_frame): Update.
5005         (mcore_expand_prolog): Update.
5006         * config/arc/arc.c (arc_compute_frame_size): Update.
5007         * config/score/score3.c (score3_compute_frame_size): Update.
5008         * config/score/score7.c (score7_compute_frame_size): Update.
5009         * config/arm/arm.c (use_return_insn): Update.
5010         (thumb_find_work_register): Update.
5011         (arm_compute_save_reg_mask): Update.
5012         (arm_output_function_prologue): Update.
5013         (arm_output_epilogue): Update.
5014         (arm_size_return_regs): Update.
5015         (arm_get_frame_offsets): Update.
5016         (arm_expand_prologue): Update.
5017         (thumb_exit): Update.
5018         (thumb_unexpanded_epilogue): Update.
5019         (thumb1_output_function_prologue): Update.
5020         * config/pa/pa.md (return expander): Update.
5021         * config/pa/pa.c (compute_frame_size): Update.
5022         (hppa_builtin_saveregs): Update.
5023         * config/mips/mips.c (mips_va_start): Update.
5024         (mips16_build_function_stub): Update.
5025         (mips_compute_frame_info): Update.
5026         (mips_restore_gp): Update.
5027         (mips_output_function_prologue): Update.
5028         (mips_expand_prologue): Update.
5029         * config/v850/v850.c (compute_frame_size): Update.
5030         (expand_prologue): * config/mmix/mmix.c (along): update.
5031         (mmix_initial_elimination_offset): update.
5032         (mmix_reorg): update.
5033         (mmix_use_simple_return): update.
5034         (mmix_expand_prologue): update.
5035         (mmix_expand_epilogue): Update.
5036         * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
5037         (emit_link_insn): Update.
5038
5039 2008-04-08  Anatoly Sokolov <aesok@post.ru>
5040
5041         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define 
5042         __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL 
5043         instructions.
5044         * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for 
5045         atmega103 device.
5046
5047 2008-04-07  Jan Hubicka  <jh@suse.cz>
5048
5049         * function.h (rtl): Rename to x_rtl.
5050         (crtl): New define.
5051         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
5052         frame_offset, stack_check_probe_note, arg_pointer_save_area,
5053         used_temp_slots avail_temp_slots, temp_slot_level,
5054         nonlocal_goto_handler_labels): Update accesstors.
5055         (rtl): New global variable.
5056         (struct function): Move some fileds to rtl_data.
5057         (get_arg_pointer_save_area): Update prototype.
5058         * builtins.c (expand_builtin_setjmp_receiver): Update call of
5059         get_arg_pointer_save_area.
5060         * expr.c (init_expr): Update
5061         * function.c (get_frame_size): Update
5062         (assign_stack_local): Update
5063         (expand_function_end): Update.
5064         (get_art_pointer_save_area): Update
5065         * function.h 
5066         * emit-rtl.c (rtl): Declare.
5067         (regno_reg_rtx): Declare.
5068         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
5069         Update.
5070         (gen_reg_rtx): Update.
5071         * varasm.c (n_deferred_constatns): Update accestor.
5072         (init_varasm_status): Do not allocate varasm_status.
5073         (force_const_mem, get_pool_size, output_constant_pool): Update.
5074         * stmt.c (force_label_rtx): Do not use x_ prefixes.
5075         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
5076         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
5077         * sparc/sparc.h (INIT_EXPANDERS): Update.
5078         * ia64/ia64.h (INIT_EXPANDERS): Update.
5079
5080 2008-04-07  James E. Wilson  <wilson@tuliptree.org>
5081
5082         * reload.c (push_secondary_reload): Add missing break to for loop.
5083
5084 2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
5085
5086         PR middle-end/PR28690
5087         * rtlanal.c: Update copyright years.
5088         (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
5089         as REG_POINTER and MEM_POINTER operands.
5090         * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
5091         (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
5092         * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
5093         * gcse.c: Update copyright years.
5094         (pre_delete): Call gen_reg_rtx_and_attrs.
5095         (hoist_code): Likewise.
5096         (build_store_vectors): Likewise.
5097         (delete_store): Likewise.
5098         * loop-invariant.c (move_invariant_reg): Likewise.
5099         Update copyright years.
5100
5101 2008-04-07  Uros Bizjak  <ubizjak@gmail.com>
5102
5103         * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
5104         control string instead of quoted.
5105
5106 2008-04-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
5107
5108         * doc/rtl.texi: Rewrite of subreg section.
5109
5110 2008-04-07  Kai Tietz  <kai.tietz@onevision.com>
5111
5112         PR/35842
5113         * config/i386/i386.c (legitimize_pic_address): Add treating
5114         of dllimport SYM_REF's.
5115         (legitimize_dllimport_symbol): Add prototype.
5116
5117 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
5118
5119         * fold-const.c (fold) <ARRAY_REF>: New case.  Try to fold constant
5120         reference in constructor with non self-referential type.
5121
5122 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
5123
5124         Removal of Return with Depressed Stack Pointer support
5125         * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
5126         (ECF_SP_DEPRESSED): Likewise.
5127         (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
5128         * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
5129         (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
5130         (expand_call): Do not test ECF_SP_DEPRESSED.
5131         * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
5132         * function.c (keep_stack_depressed): Delete.
5133         (handle_epilogue_set): Likewise.
5134         (update_epilogue_consts): Likewise.
5135         (emit_equiv_load): Likewise.
5136         (thread_prologue_and_epilogue_insns): Remove support for Return with
5137         Depressed Stack Pointer.
5138         * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
5139
5140 2008-04-06  Richard Guenther  <rguenther@suse.de>
5141
5142         PR tree-optimization/35400
5143         * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
5144         information from SSA_NAMEs.
5145
5146 2008-04-06  Anatoly Sokolov <aesok@post.ru>
5147
5148         * config/avr/avr.h (avr_mega_p): Remove declaration.
5149         (AVR_MEGA): Remove macro.
5150         * config/avr/avr.c (avr_mega_p): Remove variable.
5151         (avr_override_options): Remove inicializion of avr_mega_p.
5152         Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
5153         (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
5154         (avr_jump_mode): (Ditto.).
5155         (avr_output_progmem_section_asm_op): (Ditto.).
5156         (avr_asm_init_sections): (Ditto.).
5157         (avr_asm_init_sections): (Ditto.).
5158         (avr_rtx_costs): (Ditto.).
5159         * config/avr/avr.md: (Ditto.).
5160         * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of 
5161         '__AVR_MEGA__'.
5162
5163 2008-04-06  Richard Guenther  <rguenther@suse.de>
5164
5165         PR tree-optimization/35842
5166         * tree-ssa-address.c (fixed_address_object_p): Adjust to match
5167         is_gimple_invariant_address.
5168
5169 2008-04-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
5170
5171         * gcc.c (default_compilers): Sync Fortran extensions list with
5172         that in fortran/lang-specs.h.
5173         * doc/invoke.texi: Likewise.
5174         * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
5175         * dwarf2out.c (gen_compile_unit_die): Likewise.
5176
5177 2008-04-06  Tom G. Christensen  <tgc@jupiterrise.com>
5178
5179         * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
5180
5181 2008-04-05  Uros Bizjak  <ubizjak@gmail.com>
5182
5183         PR target/12329
5184         * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
5185         attribute is used for nested functions.
5186
5187 2008-04-05  Jan Hubicka  <jh@suse.cz>
5188
5189         * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
5190
5191         * tree-dump.c (dump_enable_all): Remove prototype; do not accept
5192         letter argument.
5193         (dump_files): Update.
5194         (enable_rtl_dump_file): Do not accept letter argument.
5195         * tree-pass.h (dump_file_info): Remove letter argument.
5196         * toplev.c (decode_d_option): Update -da handling.
5197         * toplev.h (enable_rtl_dump_file): Update prototype.
5198         * passes.c (register_one_dump_file): Do not accept IPA argument; work
5199         it out based on pass type.
5200         (register_dump_files_1): Likewise.
5201         (init_optimization_passes): Update register_one_dump_file calls.
5202         (execute_one_pass): Sanity check that IPA passes are called at IPA
5203         level and RTL passes at RTL level.
5204         (execute_pass_list): IPA pass can not be after or subpass of
5205         GIMPLE/RTL pass.
5206         (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
5207         disallov RTL subpasses of IPA subpasses.
5208
5209 2008-04-05  Ben Elliston  <bje@au.ibm.com>
5210
5211         * tree-cfg.c (need_fake_edge_p): Return false for calls to
5212         builtins that return exactly once and do not throw. Cache call to
5213         call_expr_flags.
5214
5215 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
5216
5217         PR rtl-optimization/34916
5218         PR middle-end/35519
5219         * combine.c (create_log_links): Do not create duplicate LOG_LINKS
5220         between instruction pairs.
5221
5222 2008-04-04  Naveen.H.S  <naveen.hs@kpitcummins.com>
5223
5224         * doc/invoke.texi: Document -mbitops for SH.
5225         * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
5226         * config/sh/predicates.md (bitwise_memory_operand): New predicate.
5227         * config/sh/sh.c (print_operand): Add %t operand code.
5228         * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
5229         * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
5230         (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
5231         (extendqihi2): Likewise.
5232         (movqi_i): Likewise.
5233         (insv): Use bset, bclr and bst instructions for SH2A if possible.
5234         (extv): Use bld instruction for SH2A if possible.
5235         (extzv): Likewise.
5236         (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
5237         bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
5238         bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
5239         (bset.b, bclr.b): Define peepholes.
5240         * config/sh/sh.opt (mbitops): New option.
5241
5242 2008-04-04  Janis Johnson  <janis187@us.ibm.com>
5243
5244         PR target/35620
5245         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
5246         and view convert expression.
5247
5248 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
5249
5250         PR target/35364
5251         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
5252
5253 2008-04-04  H.J. Lu  <hongjiu.lu@intel.com>
5254
5255         * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
5256
5257         * config/i386/cpuid.h (bit_AES): New.
5258         (bit_PCLMUL): Likewise.
5259
5260         * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
5261         (override_options): Handle PTA_AES and PTA_PCLMUL.  Enable
5262         SSE2 if AES or PCLMUL is enabled.
5263         (ix86_builtins): Add IX86_BUILTIN_AESENC128,
5264         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
5265         IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
5266         IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
5267         (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
5268         (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
5269         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
5270         IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
5271         (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
5272         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
5273         __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
5274         __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
5275         __builtin_ia32_aeskeygenassist128 and
5276         __builtin_ia32_pclmulqdq128.
5277         * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
5278         (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
5279         IX86_BUILTIN_PSRLDQI128.  Handle IX86_BUILTIN_AESKEYGENASSIST128.
5280
5281         * config/i386/i386.h (TARGET_AES): New.
5282         (TARGET_PCLMUL): Likewise.
5283         (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
5284
5285         * config/i386/i386.md (UNSPEC_AESENC): New.
5286         (UNSPEC_AESENCLAST): Likewise.
5287         (UNSPEC_AESDEC): Likewise.
5288         (UNSPEC_AESDECLAST): Likewise.
5289         (UNSPEC_AESIMC): Likewise.
5290         (UNSPEC_AESKEYGENASSIST): Likewise.
5291         (UNSPEC_PCLMUL): Likewise.
5292
5293         * config/i386/i386.opt (maes): New.
5294         (mpclmul): Likewise.
5295
5296         * config/i386/sse.md (aesenc): New pattern.
5297         (aesenclast): Likewise.
5298         (aesdec): Likewise.
5299         (aesdeclast): Likewise.
5300         (aesimc): Likewise.
5301         (aeskeygenassist): Likewise.
5302         (pclmulqdq): Likewise.
5303
5304         * config/i386/wmmintrin.h: New.
5305
5306         * doc/extend.texi: Document AES and PCLMUL built-in function.
5307
5308         * doc/invoke.texi: Document -maes and -mpclmul.
5309
5310 2008-04-04  Paolo Bonzini  <bonzini@gnu.org>
5311
5312         * function.c (free_after_parsing): Replace with
5313         cxx_push_function_context from C++ front-end.
5314         (allocate_struct_function): Don't call langhook.
5315         * langhooks.h (struct lang_hooks_for_functions): Delete.
5316         (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
5317         member "function".
5318         * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
5319         (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
5320         LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
5321         LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
5322         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
5323         remove LANG_HOOKS_FUNCTION_INITIALIZER.
5324         * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
5325
5326         * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
5327         Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
5328         
5329 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
5330
5331         PR c/35440
5332         * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
5333         for all types.
5334
5335 2008-04-04  Richard Guenther  <rguenther@suse.de>
5336
5337         PR middle-end/35823
5338         * fold-const.c (optimize_minmax_comparison): Use the correct
5339         type for the constant in the simplified comparison.
5340
5341 2008-04-04  Zuxy Meng <zuxy.meng@gmail.com>
5342
5343         * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
5344         Pass L2 size as "--param l2-cache-size" to the compiler.
5345         (decode_l2_cache): New function to decode L2 cache parameters using
5346         0x8000006 extended cpuid function.
5347         (detect_caches_amd): Determine parameters of L2 cache using
5348         decode_l2_caches function.
5349         (decode_caches_intel): Decode L2 cache parameters.
5350         (detect_caches_intel): Determine L2 cache parameters using
5351         decode_caches_intel and decode_l2_caches functions.
5352
5353 2008-04-03  Bob Wilson  <bob.wilson@acm.org>
5354
5355         * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
5356         secondary input reload for subword loads from the constant pool.
5357
5358 2008-04-03  Janis Johnson  <janis187@us.ibm.com>
5359
5360         PR target/35713
5361         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
5362           constants of the appropriate size for runtime calculations.
5363
5364         PR c/35712
5365         * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
5366           decimal-float literal constant zero.
5367
5368 2008-04-03  Jakub Jelinek  <jakub@redhat.com>
5369
5370         PR c/35738
5371         * c-parser.c (c_parser_omp_atomic): Call
5372         default_function_array_conversion on the RHS.
5373
5374         PR middle-end/35818
5375         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
5376         call is_variable_sized if decl has incomplete type.
5377
5378 2008-04-03  H.J. Lu  <hongjiu.lu@intel.com>
5379
5380         * config/i386/i386-protos.h (ix86_aligned_p): Removed.
5381
5382 2008-04-03  Adam Nemet  <anemet@caviumnetworks.com>
5383
5384         * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
5385         iterators.
5386         (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and leu.
5387         (sgt<u>): Merge sgt and sgtu into new expander.
5388         (sgt, sgtu): Remove expanders.
5389         (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new pattern.
5390         (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
5391         (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
5392         *sgtu_<mode>_mips16 into new pattern.
5393         (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
5394         (sge<u>): Merge sge and sgeu into new expander.
5395         (sge, sgeu): Remove expanders.
5396         (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
5397         new pattern.
5398         (*sge_<mode>, second *sge_<mode>): Remove patterns.
5399         (slt<u>): Merge slt and sltu into new expander.
5400         (slt, sltu): Remove expanders.
5401         (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new pattern.
5402         (*slt_<mode>, *sltu_<mode>): Remove patterns.
5403         (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
5404         *sltu_<mode>_mips16 into new pattern.
5405         (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
5406         (sle<u>): Merge sle and sleu into new expander.
5407         (sle, sleu): Remove expanders.
5408         (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new pattern.
5409         (*sle_<mode>, *sleu_<mode>): Remove patterns.
5410         (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
5411         *sleu_<mode>_mips16 into new pattern.
5412         (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
5413
5414 2008-04-03  Jan Hubicka  <jh@suse.cz>
5415
5416         PR tree-optimization/35795
5417         * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
5418         * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
5419         * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
5420         * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
5421         * score/score3.c (score3_output_mi_thunk): Likewise.
5422         * score/score7.c (score7_output_mi_thunk): Likewise.
5423         * mips/mips.c (mips_output_mi_thunk): Likewise.
5424
5425 2008-04-03  Richard Guenther  <rguenther@suse.de>
5426
5427         * tree-vrp.c (extract_range_from_unary_expr): Handle all
5428         conversions.  Simplify code.
5429
5430 2008-04-03  Kaz Kojima  <kkojima@gcc.gnu.org>
5431
5432         * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
5433
5434 2008-04-03  Tom Tromey  <tromey@redhat.com>
5435             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5436
5437         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
5438         * config/bfin/t-bfin-linux (generated_files): Add
5439         linux-sysroot-suffix.h.
5440         * doc/install.texi (Prerequisites): Require make 3.80.
5441         * doc/sourcebuild.texi (Front End Directory): Document new
5442         variable.
5443         * Makefile.in (generated_files): New variable.
5444         (ALL_HOST_OBJS): New variable.
5445         ($(ALL_HOST_OBJS)): New target.
5446
5447 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
5448
5449         * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
5450         (remap_block): Call id->transform_lang_insert_block instead
5451         of langhook.
5452         (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
5453         Set id.transform_lang_insert_block to NULL.
5454         (clone_body): Move to cp/optimize.c
5455         * tree-inline.h (struct copy_body_data): Change
5456         transform_lang_insert_block to function pointer.
5457         (copy_generic_body, copy_decl_no_change): Export.
5458         * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
5459         * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
5460         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
5461
5462         * c-tree.h (insert_block): Kill.
5463         * c-decl.c (insert_block): Kill.
5464
5465 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
5466
5467         * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
5468         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
5469         * c-tree.h (c_push_function_context, c_pop_function_context): Remove
5470         argument.
5471         * c-decl.c (c_push_function_context, c_pop_function_context): Remove
5472         argument, call {push,pop}_function_context from here.
5473         * c-parser.c: Use c_{push,pop}_function_context.
5474
5475         * function.c (push_function_context_to): Move meat ...
5476         (push_function_context): ... here.  Simplify.
5477         * function.c (pop_function_context_from): Move meat ...
5478         (pop_function_context): ... here.  Simplify.
5479         * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
5480         leave_nested).
5481         * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
5482         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
5483         (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
5484         * tree.h (push_function_context_to, pop_function_context_from): Remove.
5485
5486 2008-04-03  Ben Elliston  <bje@au.ibm.com>
5487
5488         * expmed.c (extract_force_align_mem_bit_field): Remove.
5489
5490 2008-04-03  Richard Guenther  <rguenther@suse.de>
5491
5492         PR middle-end/35800
5493         * expr.h (try_casesi): Adjust prototype.
5494         * expr.c (try_casesi): Take fallback label as extra parameter.
5495         Use that for gen_casesi if default_label is NULL.
5496         * stmt.c (expand_case): Pass fallback label to try_casesi,
5497         make sure to fill gaps with a fallback label if default_label
5498         is not present.
5499
5500 2008-04-03  Dominique d'Humieres <dominiq@lps.ens.fr>
5501
5502         PR target/35801
5503         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
5504
5505 2008-04-03  Ben Elliston  <bje@au.ibm.com>
5506
5507         * expmed.c (extract_split_bit_field): Remove if (0) code.
5508         * tree-ssa-structalias.c (do_sd_constraint): Likewise.
5509         (do_ds_constraint): Likewise.
5510
5511 2008-04-02  Joseph Myers  <joseph@codesourcery.com>
5512
5513         * doc/cppopts.texi (-dU): Document.
5514         * c-common.h (flag_dump_macros): Update comment.
5515         * c-opts.c (handle_OPT_d): Handle -dU.
5516         * c-ppoutput.c (macro_queue, define_queue, undef_queue,
5517         dump_queued_macros, cb_used_define, cb_used_undef): New.
5518         (init_pp_output): Handle -dU.
5519         (cb_line_change): Call dump_queued_macros.
5520         * toplev.c (decode_d_option): Accept -dU as preprocessor option.
5521
5522 2008-04-02  Anatoly Sokolov <aesok@post.ru>
5523
5524         * config/avr/predicates.md (io_address_operand): New predicate. 
5525         * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
5526         * config/avr/avr.c (avr_io_address_p): Remove function.
5527         (out_movqi_r_mr): Use 'io_address_operand' predicate instead of 
5528         'avr_io_address_p' function.
5529         (out_movhi_r_mr): (Ditto.).
5530         (out_movqi_mr_r): (Ditto.).
5531         (out_movhi_mr_r): (Ditto.).
5532         (avr_address_cost): (Ditto.).
5533
5534 2008-04-02  Uros Bizjak  <ubizjak@gmail.com>
5535
5536         * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
5537         Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
5538         in 32bit mode when XMM registers are available to avoid store
5539         forwarding stalls.
5540         (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
5541         corresponding post-reload splitters.
5542
5543 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
5544
5545         * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
5546         and __builtin_ia32_shufpd.  Provide __builtin_ia32_roundsd and
5547         __builtin_ia32_roundss.
5548         (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
5549         __builtin_ia32_shufpd, __builtin_ia32_roundsd and
5550         __builtin_ia32_roundss.
5551         (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
5552         IX86_BUILTIN_SHUFPD here.
5553
5554 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
5555
5556         * config/i386/i386.md (plogic): New.
5557         (plogicprefix): Likewise.
5558
5559         * config/i386/mmx.md (mmx_<code><mode>3): New.
5560         (mmx_and<mode>3): Removed.
5561         (mmx_ior<mode>3): Likewise.
5562         (mmx_xor<mode>3): Likewise.
5563
5564         * config/i386/sse.md (<code><mode>3): New.
5565         (*<code><mode>3): Likewise.
5566         (*<code><mode>3): Likewise.
5567         (<code><mode>3): Likewise.
5568         (*sse_<code><mode>3): Likewise.
5569         (*sse2_<code><mode>3): Likewise.
5570         (<code>tf3): Likewise.
5571         (*<code>tf3): Likewise.
5572         (and<mode>3): Likewise.
5573         (*and<mode>3): Likewise.
5574         (ior<mode>3): Removed.
5575         (*ior<mode>3): Likewise.
5576         (xor<mode>3): Likewise.
5577         (*xor<mode>3): Likewise.
5578         (*and<mode>3): Likewise.
5579         (*ior<mode>3): Likewise.
5580         (*xor<mode>3): Likewise.
5581         (and<mode>3): Likewise.
5582         (*sse_and<mode>3): Likewise.
5583         (*sse2_and<mode>3): Likewise.
5584         (andtf3): Likewise.
5585         (*andtf3): Likewise.
5586         (ior<mode>3): Likewise.
5587         (*sse_ior<mode>3): Likewise.
5588         (*sse2_ior<mode>3): Likewise.
5589         (iortf3): Likewise.
5590         (*iortf3): Likewise.
5591         (xor<mode>3): Likewise.
5592         (*sse_xor<mode>3): Likewise.
5593         (*sse2_xor<mode>3): Likewise.
5594         (xortf3): Likewise.
5595         (*xortf3): Likewise.
5596
5597 2008-04-02  Richard Guenther  <rguenther@suse.de>
5598
5599         PR tree-optimization/14495
5600         PR tree-optimization/34793
5601         * tree-vrp.c (struct switch_update): New structure.
5602         (to_remove_edges, to_update_switch_stmts): New VECs.
5603         (simplify_switch_using_ranges): New function.  Remove not taken
5604         case labels and edges.
5605         (simplify_stmt_using_ranges): Call it.
5606         (identify_jump_threads): Mark edges we have queued for removal
5607         so we don't thread them.
5608         (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
5609         case label vector.
5610         * tree-cfg.c (group_case_labels): Deal with missing default label.
5611         (tree_verify_flow_info): Allow missing default label.
5612         * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
5613         (emit_case_nodes): Likewise.
5614         (expand_case): Do not rely on the default label to be present.
5615         * expr.c (try_casesi): Deal with NULL default_label.
5616         (do_tablejump): Likewise.
5617
5618 2008-04-02  Richard Guenther  <rguenther@suse.de>
5619
5620         PR tree-optimization/14495
5621         * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
5622         SWITCH_EXPR here ...
5623         (vrp_visit_switch_stmt): ... but here (new function).
5624         (find_case_label_index): New helper function.
5625         (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
5626
5627 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
5628
5629         * fwprop.c: Fix ISO-C99ism.
5630
5631 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
5632
5633         PR bootstrap/35752
5634         * Makefile.in (objdir): Set it here.
5635         * configure.ac: Not here.  Find dynamic linker characteristics.
5636         * exec-tool.in: Use them.
5637         * aclocal.m4: Regenerate.
5638         * configure: Regenerate.
5639
5640 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
5641
5642         * expr.c (expand_var): Delete it.
5643         * expr.h (expand_var): Delete prototype.
5644         * function.c (expand_function_start): Use expand_decl instead.
5645         * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
5646         langhook.
5647
5648 2008-04-02  Andy Hutchinson <hutchinsonamdy@aim.com>
5649
5650         PR rtl-optimization/35542
5651         * fwprop.c (forward_propagate_and_simplify): Replace
5652         loc_reg_mentioned_in_p with reg_mentioned_p.
5653
5654 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
5655
5656         PR rtl-optimization/35281
5657         * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
5658         (propagate_rtx_1): Handle PR_HANDLE_MEM.
5659         (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
5660         (varying_mem_p): Move above propagate_rtx.
5661         (all_uses_available_at): Do not check MEMs.
5662
5663 2008-04-02  Rafael Espindola  <espindola@google.com>
5664
5665         * tree-vrp.c (extract_code_and_val_from_cond): Remove.
5666         (register_edge_assert_for_2): Split the cond argument.
5667         (register_edge_assert_for_1): Adjust for the change in
5668         register_edge_assert_for_2.
5669         (register_edge_assert_for): Split the cond argument.
5670         (find_switch_asserts): Adjust for the change in
5671         register_edge_assert_for.
5672
5673 2008-04-02  Kai Tietz  <kai.tietz@onevision.com>
5674
5675         * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
5676         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
5677         offsets for 64-bit mingw.
5678         * config/i386/i386.c (ix86_pass_by_reference): Correct calling
5679         abi for x86_64-pc-mingw.
5680
5681 2008-04-02  Richard Guenther  <rguenther@suse.de>
5682
5683         * tree-vrp.c (extract_range_from_assert): Make sure to not
5684         produce range min/max with TREE_OVERFOW set.
5685         If merging a anti-range and a range keep the anti-range if
5686         the range covers all values of the type.
5687         (register_edge_assert_for_2): Only allow sign-changing
5688         conversions in detecting canonical range checks.  Also
5689         register an assert for the unsigned name if useful.
5690
5691         PR tree-optimization/35787
5692         * tree-vrp.c (vrp_val_max): New function.
5693         (vrp_val_min): Likewise.
5694         (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
5695         (vrp_val_is_min): Likewise.
5696         (supports_overflow_infinity): Use vrp_val_{min,max}.
5697         (negative_overflow_infinity): Likewise.
5698         (positive_overflow_infinity): Likewise.
5699         (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
5700         (is_positive_overflow_infinity): Likewise.
5701         (is_overflow_infinity): Likewise.
5702         (avoid_overflow_infinity): Use vrp_val_{min,max} and
5703         vrp_val_is_{min,max}.
5704         (set_and_canonicalize_value_range): Canonicalize anti-ranges
5705         to ranges if possible.  Avoid empty ranges.
5706
5707 2008-04-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5708
5709         PR middle-end/35705
5710         * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
5711         the expression is a function address.
5712
5713 2008-04-01  George Helffrich  <george@gcc.gnu.org>
5714
5715         PR fortran/35154, fortran/23057
5716         * dbxout.c: Emit .stabs debug info for Fortran COMMON block
5717         variables as base symbol name + offset using N_BCOMM/N_ECOMM.
5718         (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
5719         (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
5720         in common.
5721         (dbxout_syms): Check for COMMON-based symbol and wrap in
5722         N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
5723         in bracket for efficiency.
5724
5725         * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
5726         using DW_TAG_common_block + member offset.
5727         (add_pubname_string): New function.
5728         (dw_expand_expr): New function to find block name and offset for
5729         COMMON var.
5730         (common_check): New function to check whether symbol in Fortran COMMON.
5731         (gen_variable_die): If COMMON, use DW_TAG_common_block.
5732
5733 2008-04-01  Volker Reichelt  <v.reichelt@netcologne.de>
5734
5735         PR c/35436
5736         * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
5737
5738 2008-04-02  Ben Elliston  <bje@au.ibm.com>
5739
5740         * config/v850/v850.md (casesi): Remove if (0) code.
5741         * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
5742         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
5743
5744 2008-04-01  Uros Bizjak  <ubizjak@gmail.com>
5745
5746         * config/i386/i386.md (rex64suffix): New mode attribute.
5747         (floathi<mode>2): Disable expander for SSE math.
5748         (*floathi<mode>2_1): New insn insn_and_split pattern.
5749         (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
5750         corresponding post-reload splitters.
5751         (*floathi<mode>2_i387): New macroized insn pattern.
5752         (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
5753         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
5754         insn_and_split pattern.
5755         (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
5756         New macroized instruction patterns and corresponding post-reload
5757         splitters.
5758         (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
5759         and corresponding post-reload splitters.
5760         (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
5761         New macroized instruction patterns.
5762         (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
5763         macroized instruction patterns and corresponding post-reload splitters.
5764         (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
5765         corresponding post-reload splitters.
5766         (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
5767         New macroized instruction patterns.
5768         (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
5769         corresponding post-reload splitters.
5770         (*floatsi<mode>2_i387): New macroized instruction patterns.
5771
5772 2008-04-01  H.J. Lu  <hongjiu.lu@intel.com>
5773
5774         * config/i386/i386.md (smaxmin): New.
5775         (umaxmin): Likewise.
5776         (maxminiprefix): Likewise.
5777         (maxminfprefix): Likewise.
5778         (<code><mode>3): Likewise.
5779         (smin<mode>3): Removed.
5780         (smax<mode>3): Likewise.
5781
5782         * config/i386/mmx.md (mmx_<code>v2sf3): New.
5783         (mmx_<code>v4hi3): Likewise.
5784         (mmx_<code>v8qi3): Likewise.
5785         (mmx_smaxv2sf3): Removed.
5786         (mmx_sminv2sf3): Likewise.
5787         (mmx_umaxv8qi3): Likewise.
5788         (mmx_smaxv4hi3): Likewise.
5789         (mmx_uminv8qi3): Likewise.
5790         (mmx_sminv4hi3): Likewise.
5791
5792         * config/i386/sse.md (<addsub><mode>3): New.
5793         (*<addsub><mode>3): Likewise.
5794         (<sse>_vm<addsub><mode>3): Likewise.
5795         (<maxmin><mode>3): Likewise.
5796         (*<maxmin><mode>3_finite): Likewise.
5797         (*<maxmin><mode>3): Likewise.
5798         (<sse>_vm<maxmin><mode>3): Likewise.
5799         (sse3_h<addsub>v4sf3): Likewise.
5800         (sse3_h<addsub>v2df3): Likewise.
5801         (<maxmin>v16qi3): Likewise.
5802         (*<maxmin>v16qi3): Likewise.
5803         (<maxmin>v8hi3): Likewise.
5804         (*<maxmin>v8hi3): Likewise.
5805         (*sse4_1_<maxmin><mode>3): Likewise.
5806         (*sse4_1_<maxmin><mode>3): Likewise.
5807         (add<mode>3): Removed.
5808         (*add<mode>3): Likewise.
5809         (<sse>_vmadd<mode>3): Likewise.
5810         (sub<mode>3): Likewise.
5811         (*sub<mode>3): Likewise.
5812         (<sse>_vmsub<mode>3): Likewise.
5813         (smin<mode>3): Likewise.
5814         (*smin<mode>3_finite): Likewise.
5815         (*smin<mode>3): Likewise.
5816         (<sse>_vmsmin<mode>3): Likewise.
5817         (smax<mode>3): Likewise.
5818         (*smax<mode>3_finite): Likewise.
5819         (*smax<mode>3): Likewise.
5820         (<sse>_vmsmax<mode>3): Likewise.
5821         (sse3_haddv4sf3): Likewise.
5822         (sse3_haddv2df3): Likewise.
5823         (sse3_hsubv4sf3): Likewise.
5824         (sse3_hsubv2df3): Likewise.
5825         (umaxv16qi3): Likewise.
5826         (*umaxv16qi3): Likewise.
5827         (smaxv8hi3): Likewise.
5828         (*smaxv8hi3): Likewise.
5829         (*sse4_1_smax<mode>3): Likewise.
5830         (*sse4_1_umax<mode>3): Likewise.
5831         (uminv16qi3): Likewise.
5832         (*uminv16qi3): Likewise.
5833         (sminv8hi3): Likewise.
5834         (*sminv8hi3): Likewise.
5835         (*sse4_1_smin<mode>3): Likewise.
5836         (*sse4_1_umin<mode>3): Likewise.
5837
5838 2008-04-01  Rafael Espindola  <espindola@google.com>
5839
5840         * tree-cfg.c (verify_expr): remove in_phi.
5841         (verify_stmt): Don't call walk_tree with verify_expr. Use
5842         is_gimple_min_invariant instead of is_gimple_val.
5843
5844 2008-04-01  Joseph Myers  <joseph@codesourcery.com>
5845
5846         * doc/include/gpl_v3.texi: Update for manpage generation.
5847         * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
5848         gpl.texi.
5849         * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
5850         * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
5851         gpl_v3.texi instead of gpl.texi.
5852         (gpl.pod): New.
5853
5854 2008-04-01  Jakub Jelinek  <jakub@redhat.com>
5855
5856         PR pch/13675
5857         * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
5858
5859 2008-04-01  Rafael Espindola  <espindola@google.com>
5860
5861         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
5862         (extract_code_and_val_from_cond): Use
5863         extract_code_and_val_from_cond_with_ops.
5864
5865 2008-04-01  Jan Hubicka  <jh@suse.cz>
5866
5867         * function.c (free_after_compilation): Free epilogue_delay_list.
5868         (prepare_function_start): Assert that previous compilation was freed.
5869
5870 2008-04-01  Jan Hubicka  <jh@suse.cz>
5871             Jim Wilson  <wilson@tuliptree.org>
5872             Andreas Tobler <andreast@gcc.gnu.org>
5873
5874         PR middle-end/35781
5875         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
5876         rtl.emit instead cfun->emit.
5877         * sparc/sparc.h (INIT_EXPANDERS): Likewise.
5878         * ia64/ia64.h (INIT_EXPANDERS): Likewise.
5879
5880 2008-04-01  Ben Elliston  <bje@au.ibm.com>
5881
5882         * doc/c-tree.texi (Function Basics): Fix grammatical error.
5883
5884 2008-03-31  Seongbae Park <seongbae.park@gmail.com>
5885
5886         * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
5887         New options
5888         (fprofile-use): Add var flag_profile_use
5889         * coverage.c (coverage_begin_output): Do not open a gcno file for
5890         output only if -ftest-coverage is set.
5891         Do not add getpwd() to gcda file path.
5892         (build_gcov_info): Check the new flag
5893         flag_profile_datafile_relative_path.
5894         (coverage_init): Use profile_data_prefix.
5895         Read profile counter only if flag_profile_use is set.
5896         * opts.c (common_handle_option): New option fprofile-use=,
5897         fprofile-dir=, fprofile-generate=.
5898         * toplev.c (profile_data_prefix): New variable definition.
5899         * toplev.h (profile_data_prefix): New declaration.
5900         * doc/invoke.tex (Option Summary, Optimization Options):
5901         Add new options.
5902
5903 2008-03-31  James E. Wilson  <wilson@tuliptree.org>
5904
5905         * varasm.c (output_constant_pool_1): In LABEL_REF check,
5906         use tmp consistently.
5907
5908         PR target/35695
5909         * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
5910         * config/ia64/ia64.c (rtx_needs_barrier): Handle
5911         UNSPEC_FR_RECIP_APPROX_RES.
5912         * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
5913
5914 2008-03-31  Volker Reichelt  <v.reichelt@netcologne.de>
5915
5916         PR c/35750
5917         * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
5918
5919 2008-03-31  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5920
5921         PR middle-end/30186
5922         * fold-const.c (fold_indirect_ref_1): Support accessing non first
5923         element of the vector via a pointer.
5924
5925 2008-03-31  Ian Lance Taylor  <iant@google.com>
5926
5927         * tlink.c (scan_linker_output): Look for symbol name in single quotes.
5928
5929 2008-03-31  Jan Hubicka  <jh@suse.cz>
5930
5931         * builtins.c (expand_builtin_setjmp_receiver): Update call of
5932         get_arg_pointer_save_area.
5933         * expr.c (init_expr): Just clear out rtl.expr.
5934         * function.c (free_after_compilation): Clear out whole RTL structure.
5935         (get_func_frame_size): Merge into ...
5936         (get_frame_size): ... this one.
5937         (assign_stack_local_1): Merge into ...
5938         (assign_stack_local): ... this one.
5939         (expand_function_end): Update call of get_arg_pointer_save_area.
5940         (get_art_pointer_save_area): Remove cfun argument.
5941         * function.h (emit_status): regno_pointer_align does not need length
5942         attribute. Move x_regno_reg_rtx to ...
5943         (regno_reg_rtx): ... new global array.
5944         (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
5945         (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
5946         apply_args_value, forced_labels, stack_pointer_delta):
5947         Update accestors.
5948         (struct varasm_status): Move here from varasm.c
5949         (struct rtl_data): New. Move here some fields from struct function.
5950         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
5951         frame_offset, stack_check_probe_note, arg_pointer_save_area,
5952         used_temp_slots avail_temp_slots, temp_slot_level,
5953         nonlocal_goto_handler_labels): Update accesstors.
5954         (rtl): New global variable.
5955         (struct function): Move some fileds to rtl_data.
5956         (get_arg_pointer_save_area): Update prototype.
5957         * emit-rtl.c (rtl): Declare.
5958         (regno_reg_rtx): Declare.
5959         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
5960         Update.
5961         (gen_reg_rtx): Update.
5962         (init_virtual_regs): Do not tate emit_status argument.
5963         (init_emit): Do not allocate emit.
5964         * varasm.c (varasm_statuc): Move to function.h.
5965         (n_deferred_constatns): Update accestor.
5966         (init_varasm_status): Do not allocate varasm_status.
5967         (force_const_mem, get_pool_size, output_constant_pool): Update.
5968         * stmt.c (force_label_rtx): Do not use x_ prefixes.
5969         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
5970
5971 2008-03-31  Zdenek Dvorak  <ook@ucw.cz>
5972
5973         PR rtl-optimization/35729
5974         * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
5975         references.
5976
5977 2008-03-31  H.J. Lu  <hongjiu.lu@intel.com>
5978
5979         PR target/32000
5980         * config/i386/i386.md (*movti_internal): Emit unaligned SSE
5981         load/store if memory is unaligned.
5982         (*movti_rex64): Likewise.
5983
5984         * config/i386/predicates.md (misaligned_operand): New.
5985
5986 2008-03-31  Andrew Pinski  <pinskia@gmail.com>
5987
5988         PR tree-opt/35431
5989         * tree-ssa-phiopt.c (conditional_replacement): Return early for
5990         complex types.
5991
5992 2008-03-31  Jan Beulich  <jbeulich@novell.com>
5993
5994         * config/ia64/constraints.md: Add 'j' constraint.
5995         * config/ia64/ia64.md (movsi_internal): Add addp4 case.
5996         (movdi_internal): Likewise.
5997
5998 2008-03-30  Volker Reichelt  <v.reichelt@netcologne.de>
5999
6000         PR c/35748
6001         * c-typeck.c (build_c_cast): Skip invalid fields in unions.
6002
6003 2008-03-30  H.J. Lu  <hongjiu.lu@intel.com>
6004
6005         PR target/35757
6006         * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
6007         proper error message for the third argument on blendpd and
6008         blendps.
6009
6010         * config/i386/sse.md (blendbits): New.
6011         (sse4_1_blendp<ssemodesuffixf2c>): Use it.
6012
6013 2008-03-30  Eric Botcazou  <ebotcazou@adacore.com>
6014
6015         * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
6016
6017 2008-03-30  Richard Guenther  <rguenther@suse.de>
6018
6019         PR middle-end/31023
6020         * fold-const.c (fold_sign_changed_comparison): Do leave
6021         conversions to base-types alone.
6022
6023 2008-03-29  Andrew Pinski  <andrew_pinski@playstation.sony.com>
6024
6025         * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
6026         the link register if one altivec register is be saved.
6027
6028 2008-03-30  Ben Elliston  <bje@au.ibm.com>
6029
6030         * final.c (final_scan_insn): Remove if (0) code.
6031
6032 2008-03-28  Volker Reichelt  <v.reichelt@netcologne.de>
6033
6034         * c-parser.c (c_parser_next_token_is_keyword): Simplify.
6035
6036 2008-03-28  H.J. Lu  <hongjiu.lu@intel.com>
6037
6038         * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
6039         of V4SFmode to ix86_binary_operator_ok.
6040
6041 2008-03-28  Uros Bizjak  <ubizjak@gmail.com>
6042
6043         * config/i386/i386.c (override_options): Initialize
6044         ix86_veclib_handler to ix86_veclibabi_svml when
6045         -mveclibabi=svml is used.
6046         (ix86_veclibabi_svml): New function for SVML ABI style
6047         vectorization support.
6048         * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
6049
6050 2008-03-28  Rafael Espindola  <espindola@google.com>
6051
6052         * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
6053         (tree_binary_nonnegative_warnv_p): Make it public.
6054         (tree_single_nonnegative_warnv_p): Make it public.
6055         (tree_invalid_nonnegative_warnv_p): Make it public.
6056         (tree_unary_nonzero_warnv_p): Make it public.
6057         (tree_binary_nonzero_warnv_p): Make it public
6058         (tree_single_nonzero_warnv_p): Make it public.
6059         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
6060         (extract_range_from_binary_expr): Split the expr argument.
6061         (extract_range_from_unary_expr): Split the expr argument.
6062         (extract_range_from_comparison): Split the expr argument.
6063         (extract_range_from_expr): Use the new aux functions.
6064         (vrp_evaluate_conditional_warnv): Use
6065         vrp_evaluate_conditional_warnv_with_ops.
6066         * tree.h (tree_unary_nonzero_warnv_p): Declare.
6067         (tree_binary_nonzero_warnv_p): Declare.
6068         (tree_single_nonzero_warnv_p): Declare.
6069         (tree_expr_nonzero_warnv_p): Declare.
6070         (tree_unary_nonnegative_warnv_p): Declare.
6071         (tree_binary_nonnegative_warnv_p): Declare.
6072         (tree_single_nonnegative_warnv_p): Declare.
6073         (tree_invalid_nonnegative_warnv_p): Declare.
6074
6075 2008-03-28  Richard Guenther  <rguenther@suse.de>
6076
6077         PR tree-optimization/30317
6078         PR tree-optimization/30911
6079         PR tree-optimization/34793
6080         * tree-vrp.c (set_and_canonicalize_value_range): New function.
6081         (struct assert_locus_d): New member EXPR.
6082         (register_new_assert_for): Add EXPR parameter to support
6083         ASSERT_EXPR <name, expr OP limit>.
6084         (register_edge_assert_for_1): Adjust callers.
6085         (find_assert_locations): Likewise.
6086         (process_assert_insertions_for): Build condition from expression.
6087         (extract_range_from_assert): Handle ASSERT_EXPRs
6088         of the form ASSERT_EXPR <name, expr OP limit>.
6089         (register_edge_assert_for_2): New helper registering
6090         asserts for comparisons.  Recognize range tests of the form
6091         (unsigned)i - CST1 OP CST2.
6092         (register_edge_assert_for_1): Use it.
6093         (register_edge_assert_for): Likewise.
6094         (needs_overflow_infinity): Integer sub-types
6095         do not need overflow infinities.
6096         (vrp_val_is_max): The extreme values of integer sub-types
6097         are those of the base type.
6098         (vrp_val_is_min): Likewise.
6099         * tree.def (ASSERT_EXPR): Document extra allowed conditional
6100         expressions.
6101
6102 2008-03-28  Nick Clifton  <nickc@redhat.com>
6103
6104         PR target/31110
6105         * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
6106         Return GENERAL_REGS for stack adjustment reloads.
6107
6108 2008-03-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
6109
6110         PR target/31334
6111         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
6112         const_vector when all the vectors are constant.
6113
6114 2008-03-27  Bob Wilson  <bob.wilson@acm.org>
6115
6116         * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
6117         comparisons.
6118         * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
6119         (any_scc_sf): Add uneq, unlt, unle and unordered operators.
6120         (scc_sf): New.
6121         (s<code>_sf): Use new scc_sf attribute for opcode names.
6122
6123 2008-03-27  Tom Tromey  <tromey@redhat.com>
6124
6125         * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
6126         configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
6127         config/spu/t-spu-elf, config/i386/t-interix,
6128         config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
6129         config/i386/x-darwin, config/i386/x-mingw32,
6130         config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
6131         config/sh/t-sh, config/sh/t-symbian, config/x-linux,
6132         config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
6133         config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
6134         config/rs6000/x-rs6000, config/rs6000/x-darwin64,
6135         config/rs6000/x-darwin, config/rs6000/t-rs6000,
6136         config/score/t-score-elf, config/arm/t-strongarm-pe,
6137         config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
6138         config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
6139         Revert automatic dependency patch.
6140
6141 2008-03-27  H.J. Lu  <hongjiu.lu@intel.com>
6142
6143         PR target/35657
6144         * config/i386/i386.c (ix86_function_arg_boundary): Align
6145         decimal floating point to its natural boundary.
6146
6147 2008-03-27  Richard Guenther  <rguenther@suse.de>
6148
6149         PR middle-end/35716
6150         * fold-const.c (fold_comparison): Restrict distinct decl
6151         comparison folding to VAR_DECLs and PARM_DECLs.  Do not
6152         solely rely on operand_equal_p.
6153
6154 2008-03-27  Richard Guenther  <rguenther@suse.de>
6155
6156         PR c/32511
6157         * c-common.c (handle_weak_attribute): Reject combination of
6158         weak and inline.
6159
6160 2008-03-27  Richard Guenther  <rguenther@suse.de>
6161
6162         PR tree-optimization/32810
6163         * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
6164         conversions from DECL_INITIAL.
6165         (fold_const_aggregate_ref): Likewise from constructor elements.
6166
6167 2008-03-27  Zdenek Dvorak  <ook@ucw.cz>
6168
6169         * tree-affine.h (aff_combination_expand): Declare.
6170         (get_inner_reference_aff): Likewise.
6171         * tree-affine.c (aff_combination_expand): Split out from
6172         tree_to_aff_combination_expand.
6173         (get_inner_reference_aff): New function.
6174         * tree-parloops.c (loop_parallel_p): Free vectorizer info.
6175         * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
6176         (struct lim_aux_data): sm_done field removed.
6177         (mem_ref_loc_p, mem_ref_locs_p): New types.
6178         (struct mem_ref): Added id, stored, accesses_in_loop,
6179         indep_loop, dep_loop, indep_ref, dep_ref fields.
6180         Removed is_stored, locs and next fields.
6181         (memory_accesses): New variable.
6182         (movement_possibility): Do not allow moving statements
6183         that store to memory.
6184         (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
6185         New functions.
6186         (determine_max_movement): For statements with memory references,
6187         find the outermost loop in that the reference is independent.
6188         (move_computations_stmt): Mark the virtual operands for renaming.
6189         (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
6190         gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
6191         vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
6192         add_vop_ref_mapping, create_vop_ref_mapping_loop,
6193         create_vop_ref_mapping, analyze_memory_references,
6194         cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
6195         get_all_locs_in_loop, ref_always_accessed_p,
6196         refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
6197         ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
6198         store_motion_loop, store_motion): New functions.
6199         (struct vop_to_refs_elt): New type.
6200         (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
6201         memref_hash, memref_eq, hoist_memory_references): Rewritten.
6202         (schedule_sm): Replaced by...
6203         (execute_sm): ... this.
6204         (determine_lsm_ref, hoist_memory_references,
6205         loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
6206         find_more_ref_vops, free_mem_ref, free_mem_refs,
6207         determine_lsm_loop, determine_lsm): Removed.
6208         (tree_ssa_lim_finalize): Free data structures used by store motion.
6209         (tree_ssa_lim): Call analyze_memory_references.  Use
6210         store_motion instead of determine_lsm.
6211
6212 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
6213
6214         * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
6215         rename tmake_file to m68hc11/t-m68hc11.
6216         (mcore): Set inhibit_libc to true.
6217         * config.host (alpha*-dec-*vms*): Set extra_programs.
6218         (interix3*): Don't use host_xmake_file.
6219         * configure.ac: Let config.gcc override inhibit_libc.
6220         * configure: Regenerate.
6221
6222         * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
6223         * config/t-openbsd-thread: Remove commented out lines.
6224         
6225         * config/x-interix: Remove.
6226
6227         * config/m68hc11/t-m68hc11-gas: Rename to...
6228         * config/m68hc11/t-m68hc11: ... this.  Remove T_CPPFLAGS.
6229
6230         * config/mcore/t-mcore: Remove T_CFLAGS.
6231         * config/mcore/t-mcore-pe: Likewise.
6232
6233 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
6234
6235         * configure.ac: Replace custom __GNU_SOURCE test with
6236         AC_USE_SYSTEM_EXTENSIONS.  Move it earlier.
6237         * aclocal.m4: Regenerate.
6238         * configure: Regenerate.
6239         * config.in: Regenerate.
6240
6241 2008-03-27  Richard Guenther  <rguenther@suse.de>
6242
6243         * fold-const.c (target.h): Include.
6244         (fold_comparison): Fold comparison of addresses of decls
6245         that bind locally or of constants.  Consolidate address folding code.
6246         * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
6247         results from fold_binary_to_constant.
6248         (compare_values_warnv): Likewise.
6249
6250 2008-03-27  Andrew Pinski  <pinskia@gmail.com>
6251
6252         PR middle-end/35429
6253         * fold-const.c (fold_truthop): Check for integeral types when folding
6254         a == 0 && b == 0 and a != 0 || b != 0 .
6255
6256 2008-03-26  Eric Botcazou  <ebotcazou@adacore.com>
6257
6258         * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
6259
6260 2008-03-26  Andreas Schwab  <schwab@suse.de>
6261
6262         * doc/invoke.texi: Fix use of @item vs. @itemx.
6263
6264 2008-03-26  Tom Tromey  <tromey@redhat.com>
6265
6266         * Makefile.in (build/gensupport.o, build/print-rtl.o,
6267         build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
6268         build/genattrtab.o, build/genautomata.o, build/gencheck.o,
6269         build/gencodes.o, build/genconditions.o, build/genconfig.o,
6270         build/genconstants.o, build/genemit.o, build/genextract.o,
6271         build/genflags.o, build/genmddeps.o, build/genopinit.o,
6272         build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
6273         options.h.
6274
6275 2008-03-26  Richard Guenther  <rguenther@suse.de>
6276
6277         Revert
6278         2008-03-26  Richard Guenther  <rguenther@suse.de>
6279
6280         * fold-const.c (target.h): Include.
6281         (fold_comparison): Fold comparison of addresses of two decls
6282         that bind locally.  Consolidate address folding code.
6283
6284 2008-03-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6285
6286         * builtins.c (expand_builtin_pow, fold_builtin_cabs,
6287         fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
6288         fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
6289         dconstsqrt2, dconstthird, dconste and/or dconst10.
6290         * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
6291         * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
6292         dconstsqrt2, dconste): Delete.
6293         (init_emit_once): Likewise.  Simplify initializing dconstm1.
6294         Constify variable.
6295         * real.c (get_real_const): New.
6296         * real.h (dconst3, dconst10, dconstm2, dconstthird,
6297         dconstsqrt2, dconste): Delete.
6298         (real_value_const, get_real_const): New.
6299
6300 2008-03-26  H.J. Lu  <hongjiu.lu@intel.com>
6301
6302         * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
6303
6304         * config/i386/i386.c (ix86_function_arg_boundary): Check
6305         BIGGEST_ALIGNMENT instead of 128.
6306         (setup_incoming_varargs_64): Likewise.
6307
6308 2008-03-26  Tom Tromey  <tromey@redhat.com>
6309
6310         * Makefile.in (DEPFILES): Add missing '/'.
6311
6312 2008-03-26  Richard Guenther  <rguenther@suse.de>
6313
6314         * fold-const.c (target.h): Include.
6315         (fold_comparison): Fold comparison of addresses of two decls
6316         that bind locally.  Consolidate address folding code.
6317
6318 2008-03-26  Nick Clifton  <nickc@redhat.com>
6319
6320         PR target/31232
6321         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
6322         not allow INT+INT as a legitimate addressing mode.
6323
6324 2008-03-26  Richard Guenther  <rguenther@suse.de>
6325
6326         * tree-flow.h (widen_bitfield): Remove declaration.
6327         * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
6328         (widen_bitfield): Remove function.
6329         * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
6330         code.
6331
6332 2008-03-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
6333
6334         PR target/31558
6335         * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
6336         error_mark_node's.
6337
6338 2008-03-25  Richard Sandiford  <rsandifo@nildram.co.uk>
6339
6340         PR rtl-optimization/35232
6341         * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
6342         (forget_old_reloads_1, forget_marked_reloads): Don't clear
6343         reg_reloaded_call_part_clobbered here.
6344         (reload_regs_reach_end_p): New function.
6345         (reload_reg_rtx_for_input): New variable.
6346         (reload_reg_rtx_for_output): Likewise.
6347         (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
6348         when reassigning a pseudo register.  Load reloadreg from 
6349         reload_reg_rtx_for_input, moving the mode and register
6350         calculation to...
6351         (do_input_reload): ...here.  Use the mode-adjusted reg_rtx
6352         instead of the original when deciding whether an input reload
6353         would be a no-op or whether an output reload can be deleted.
6354         (emit_output_reload_insns): Use the mode-adjusted reg_rtx
6355         when setting up new_spill_reg_store.  Load it from
6356         reload_reg_rtx_for_output, moving the mode and register
6357         calculation to...
6358         (do_output_reload): ...here.  Use the mode-adjusted reg_rtx
6359         instead of the original when deciding whether an output reload
6360         would be a no-op.  Do the same when modifying insn notes.
6361         Use rtx_equal_p instead of == to compare the registers.
6362         (inherit_piecemeal_p): Take a mode and two register numbers
6363         as argument.
6364         (emit_reload_insns): Clear new_spill_reg_store for every hard
6365         register in the reload register.  Remove spill registers
6366         from reg_reloaded_valid before considering whether to record
6367         inheritance information for them.  Use reload_reg_rtx_for_output
6368         instead of reg_rtx when recording output reloads.  Use
6369         reload_reg_rtx_for_input instead of reg_rtx when recording
6370         input reloads.  Set or clear reg_reloaded_call_part_clobbered
6371         at the same time as setting reg_reloaded_valid.
6372         (delete_output_reload): Add a new_reload_reg parameter and use it
6373         instead of rld[j].reg_rtx.
6374         (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
6375         calls accordingly.
6376
6377 2008-03-25  Tom Tromey  <tromey@redhat.com>
6378
6379         * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
6380         (build/genattr.o): Likewise.
6381         (build/genattrtab.o): Likewise.
6382         (build/gencodes.o): Likewise.
6383         (build/genconfig.o): Likewise.
6384         (build/genconstants.o): Likewise.
6385         (build/genemit.o): Likewise.
6386         (build/genextract.o): Likewise.
6387         (build/genflags.o): Likewise.
6388
6389 2008-03-25  Bob Wilson  <bob.wilson@acm.org>
6390         
6391         * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
6392         instead of size_int for integer types.
6393         (xtensa_gimplify_va_arg_expr): Likewise.  Convert index to sizetype
6394         to match type of MINUS_EXPR.
6395         
6396 2008-03-25  Tom Tromey  <tromey@redhat.com>
6397
6398         * configure: Rebuilt.
6399         * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
6400         Makefile.
6401
6402 2008-03-25  Tom Tromey  <tromey@redhat.com>
6403
6404         * config/x-solaris (host-solaris.o): Update.
6405         * config/x-linux (host-linux.o): Update.
6406         * config/x-hpux (host-hpux.o): Update.
6407         * config/x-darwin (host-darwin.o): Update.
6408         * config/v850/t-v850e (v850-c.o): Update.
6409         * config/v850/t-v850 (v850-c.o): Update.
6410         * config/t-vxworks (vxworks.o): Update.
6411         * config/t-sol2 (sol2-c.o, sol2.o): Update.
6412         * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
6413         * config/spu/t-spu-elf (spu-c.o): Update.
6414         (spu.o): Remove.
6415         * config/sh/t-symbian (sh-c.o): Update.
6416         (symbian.o): Update.
6417         * config/sh/t-sh (sh-c.o): Update.
6418         * config/score/t-score-elf (score7.o, score3.o): Update.
6419         * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
6420         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
6421         * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
6422         * config/rs6000/t-rs6000 (rs6000-c.o): Update.
6423         (rs6000.o): Remove.
6424         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
6425         * config/m32c/t-m32c (m32c-pragma.o): Update.
6426         * config/ia64/t-ia64 (ia64-c.o): Update.
6427         * config/i386/x-mingw32 (host-mingw32.o): Update.
6428         * config/i386/x-i386 (driver-i386.o): Update.
6429         * config/i386/x-darwin (host-i386-darwin.o): Update.
6430         * config/i386/x-cygwin (host-cygwin.o): Update.
6431         * config/i386/t-nwld (nwld.o): Update.
6432         * config/i386/t-netware (netware.o): Update.
6433         * config/i386/t-interix (winnt.o): Update.
6434         * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
6435         * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
6436         msformat-c.o): Update.
6437         * config/bfin/t-bfin-linux (generated_files): Add
6438         linux-sysroot-suffix.h.
6439         * config/arm/t-wince-pe (pe.o): Update.
6440         * config/arm/t-strongarm-pe (pe.o): Update.
6441         * config/arm/t-pe (pe.o): Update.
6442         * config/arm/t-arm (arm-c.o): Update.
6443         * doc/install.texi (Prerequisites): Require make 3.80.
6444         * Makefile.in: Remove .o targets.
6445         (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
6446         (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
6447         (simple_generated_h, simple_generated_c): Move earlier.
6448         (generated_files): New variable.
6449         (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
6450         TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
6451         BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
6452         ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
6453         REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
6454         CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
6455         CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
6456         INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
6457         PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
6458         TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
6459         DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
6460         VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
6461         (.c.o): Remove.
6462         (COMPILE.base, COMPILE): New variables.
6463         (%.o): New pattern rule.
6464         (ALL_HOST_OBJS): New variable.
6465         (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
6466         (dummy-checksum.o, cc1-checksum.o): Remove.
6467         (DRIVER_SHLIB): New variable.
6468         (DRIVER_DEFINES): Use it.
6469         (gencondmd.c): Move out of build/.
6470         (s-conditions): Update.
6471         (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
6472         (ALL_BUILD_OBJS): Likewise.
6473         (build/%.o): Use BUILDCOMPILE.
6474         (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
6475         build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
6476         build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
6477         build/gencheck.o, build/gencodes.o, build/genconditions.o,
6478         build/genconfig.o, build/genconstants.o, build/genemit.o,
6479         build/genextract.o, build/genflags.o, build/genmddeps.o,
6480         build/genopinit.o, build/genoutput.o, build/genpeep.o,
6481         build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
6482         build/gen-protos.o, build/scan.o, build/fix-header.o,
6483         build/scan-decls.o): Simplify.
6484         (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
6485         cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
6486         prefix.o, toplev.o): Reduce to variable setting.
6487         (libbackend.o): Use COMPILE.  Remove most dependencies.  Move later.
6488         ($(out_object_file), gcc-options.o): New targets.
6489         ($(ALL_HOST_OBJS)): New target.  Include dependency files.
6490         * configure: Rebuilt.
6491         * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
6492         * doc/sourcebuild.texi (Front End Directory): Document new variable.
6493
6494 2008-03-25  Douglas Gregor  <doug.gregor@gmail.com>
6495
6496         * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
6497         complain when we hit an error, return ERROR_MARK_NODE.
6498
6499 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
6500
6501         * config/sh/constraints.md (Pso, Psz): New constraints.
6502         * config/sh/sh.c (print_operand): Add %V and %W operand codes.
6503         * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
6504
6505 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
6506
6507         * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
6508         * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
6509
6510 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
6511
6512         * config/sh/sh.md (prefetch): Add condition for SH2A target.
6513         (prefetch_sh2a): New.   
6514
6515 2008-03-25  Jayant Sonar  <Jayant.sonar@kpitcummins.com>
6516             Naveen.H.S  <naveen.hs@kpitcummins.com>
6517
6518         * config/sh/constraints.md (I28): New constraint.
6519         * config/sh/sh.c (broken_move): Add support for movi20s.
6520         * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
6521
6522 2008-03-25  Anil Paranjape  <anil.paranjape@kpitcummins.com>
6523             Jayant Sonar  <Jayant.sonar@kpitcummins.com>
6524             Naveen.H.S  <naveen.hs@kpitcummins.com>
6525
6526         * config/sh/sh.c (SH_ATTRIBUTES): Define.
6527         (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
6528         (print_operand): Handle resbank in %@ operand code.
6529         (sh_encode_section_info): New.
6530         (push_regs): Add conditions for resbank.
6531         (sh_expand_epilogue): Likewise.
6532         (sh_insert_attributes): Likewise.
6533         (sh_attribute_table): Likewise.
6534         (sh_handle_resbank_handler_attribute): New.
6535         (sh2a_handle_function_vector_handler_attribute): New.
6536         (sh2a_is_function_vector_call): New.
6537         (sh2a_get_function_vector_number): New.
6538         (sh2a_function_vector_p): New.
6539         (sh_cfun_resbank_handler_p): New.
6540         * config/sh/sh.md (calli): Emit jsr/n if possible.
6541         (calli_tbr_rel): New.
6542         (calli_pcrel): Emit jsr/n if possible.
6543         (return_i): Emit rts/n if possible.
6544         (call_valuei_tbr_rel): New.
6545         (call_valuei_pcrel): Add condition for SH2A target.
6546         (call_value): Likewise.
6547         * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
6548         (sh2a_get_function_vector_number): Likewise.
6549         (sh2a_is_function_vector_call): Likewise.
6550         * doc/extend.texi: Document TBR relative addressing of SH2A.
6551         (resbank): Add description for SH2A.
6552
6553 2008-03-24  Richard Guenther  <rguenther@suse.de>
6554
6555         PR c/22371
6556         * gimplify.c (gimplify_modify_expr): For frontend type-correct
6557         pointer assignments change conversions according to middle-end rules.
6558         (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
6559         * configure.ac: Include type checking in yes.
6560         * configure: Regenerate.
6561
6562 2008-03-24  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6563
6564         * diagnostic.c (diagnostic_count_diagnostic): Delete.
6565         (diagnostic_report_diagnostic): Update. Handle ICEs here.
6566         
6567 2008-03-24  Nathan Sidwell  <nathan@codesourcery.com>
6568
6569         * gthr-vxworks.h (UNUSED): Define.
6570
6571 2008-03-23  H.J. Lu  <hongjiu.lu@intel.com>
6572
6573         * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
6574
6575 2008-03-23  Zuxy Meng <zuxy.meng@gmail.com>
6576
6577         * doc/extend.texi (Function Attributes): Add missing comma in the
6578         example of the "alloc_size" attribute.
6579         
6580 2008-03-23  Uros Bizjak  <ubizjak@gmail.com>
6581
6582         Revert:
6583         2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
6584
6585         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
6586         32bit host.
6587
6588         2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
6589
6590         PR target/35496
6591         * stor-layout.c (update_alignment_for_field): Set minimum alignment
6592         of the underlying type of a MS bitfield layout to the natural
6593         alignment of the type.
6594
6595         2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
6596
6597         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
6598         to their natural alignment to avoid store forwarding stalls.
6599
6600 2008-03-22  Richard Guenther  <rguenther@suse.de>
6601
6602         * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
6603         For PHI nodes verify the address is invariant.
6604         * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
6605         (get_symbol_constant_value): Use is_gimple_min_invariant.
6606         (maybe_fold_stmt_indirect): Likewise.
6607
6608 2008-03-22  Richard Sandiford  <rsandifo@nildram.co.uk>
6609
6610         PR rtl-optimization/33927
6611         * Makefile.in (dse.o): Depend on $(TM_P_H).
6612         * expr.h (extract_low_bits): Declare.
6613         * expmed.c (extract_low_bits): New function.
6614         * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
6615         * dse.c: Include tm_p.h.
6616         (find_shift_sequence): Remove the read_reg argument and return the
6617         read value.  Emit the instructions instead of returning them.
6618         Iterate on new_mode rather than calculating it each time.
6619         Check MODES_TIEABLE_P.  Use simplify_gen_subreg to convert the
6620         source to NEW_MODE and extract_low_bits to convert the shifted
6621         value to READ_MODE.
6622         (replace_read): Allow the load and store to have different mode
6623         classes.  Use extract_low_bits when SHIFT == 0.  Create the shift
6624         or extraction instructions before trying the replacement.  Update
6625         dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
6626
6627 2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
6628
6629         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
6630         to their natural alignment to avoid store forwarding stalls.
6631
6632 2008-03-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
6633
6634         PR target/27946
6635         * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
6636         encouraging but not allowing gprs for input;
6637         change the input constraint to !f#r.
6638         (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
6639         gprs for output;
6640         change the output constraint to !f#r.
6641
6642 2008-03-21  Uros Bizjak  <ubizjak@gmail.com>
6643
6644         PR target/13958
6645         * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
6646         corresponding post-reload splitters.
6647         ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
6648         when x87 FP math is selected.
6649         * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
6650         New function prototype.
6651         * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
6652         unreachable function to ease macroization of insn patterns.
6653
6654 2008-03-21  Martin Jambor  <mjambor@suse.cz>
6655
6656         * tree-data-ref.c (dump_data_dependence_relation): Avoid data
6657         reference dumps if ddr is NULL or dependence is unknown.
6658
6659 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
6660
6661         * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
6662         unsigned extension into account.
6663         (ATOMIC_COMPARE_AND_SWAP): Likewise.
6664         (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
6665         Do computations on a scratch register.
6666
6667 2008-03-21  Richard Guenther  <rguenther@suse.de>
6668
6669         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
6670         Use is_gimple_min_invariant instead of TREE_INVARIANT.
6671         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
6672         * tree-ssa-dom.c (record_equality): Likewise.
6673         * tree-inline.c (copy_body_r): Likewise.
6674         * tree-ssa-pre.c (make_values_for_stmt): Remove test for
6675         TREE_INVARIANT.
6676
6677 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
6678
6679         * config/sh/sh.c (split_branches): Pass zero to redirect_jump
6680         as 'delete_unused' argument.
6681
6682 2008-03-20  Richard Guenther  <rguenther@suse.de>
6683
6684         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
6685         special casing of constant qualifiers.
6686         * tree-ssa.c (useless_type_conversion_p_1): Instead do not
6687         care about them in general.
6688         * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
6689         regardless of their type.
6690         (fold_stmt_r): Forcefully fold *& if we end up with that.
6691
6692 2008-03-20  Paul Brook  <paul@codesourcery.com>
6693
6694         * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
6695         * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
6696         linker flags.
6697         * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
6698         definition.
6699         (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
6700         * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
6701
6702 2008-03-20  Volker Reichelt  <v.reichelt@netcologne.de>
6703
6704         * common.opt (Wmudflap): New option.
6705         * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
6706         (mx_register_decls): Likewise.
6707         (mudflap_finish_file): Likewise.
6708         * doc/invoke.texi: Document -Wno-mudflap.
6709
6710 2008-03-20  Kai Tietz  <kai.tietz@onevision.com>
6711
6712         * c-format.c (replace_format_name_to_system_name): New.
6713         (cmp_attribs): New.
6714         (convert_format_name_to_system_name): New.
6715         (decode_format_attr): Add use of convert_format_name_to_system_name.
6716         (format_types_orig): Add gnu_ prefix to names.
6717         (check_format_info_main): Special treating of \0 escaped names for
6718         supporting multi-character format specifiers as I32, I64.
6719         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
6720         (gnu_target_overrides_format_attributes): New.
6721         * c-format.h: Add structure target_ovr_attr to hold
6722         system specific formatter names.
6723         * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
6724         msformat-c.o file to c_target_objs and cxx_target_objs.
6725         * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
6726         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
6727         (TARGET_N_FORMAT_TYPES): New.
6728         * config/i386/msformat-c.c: New.
6729         * config/i386/t-cygming: Add build rule for msformat-c.o.
6730         * doc/extend.texi: Add new format names gnu_* and ms_* and
6731         further details.
6732         * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
6733
6734 2008-03-20  Ira Rosen  <irar@il.ibm.com>
6735
6736         * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
6737         optimizations turned on under -O3.
6738         (ftree-vectorize): Add that the flag is turned on with -O3.
6739
6740 2008-03-20  Ben Elliston  <bje@au.ibm.com>
6741
6742         * regmove.c (try_auto_increment): Fix spelling error in comment.
6743         * final.c (final_scan_insn): Likewise.
6744
6745 2008-03-20  Uros Bizjak  <ubizjak@gmail.com>
6746
6747         PR target/14552
6748         * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
6749         allocator preferences for "y" and "r" class registers.
6750         ("*mov<mode>_internal"): Ditto.
6751         ("*movv2sf_internal_rex64"): Ditto.
6752         ("*movv2sf_internal"): Ditto.
6753
6754 2008-03-19  Michael Matz  <matz@suse.de>
6755
6756         PR middle-end/35616
6757         * calls.c (expand_call): Check overlap of arguments with call
6758         address for sibcalls.
6759
6760 2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
6761
6762         PR target/35496
6763         * stor-layout.c (update_alignment_for_field): Set minimum alignment
6764         of the underlying type of a MS bitfield layout to the natural
6765         alignment of the type.
6766
6767 2008-03-19  Jan Hubicka  <jh@suse.cz>
6768
6769         PR other/35094
6770         * toplev.c (decode_d_option): Handle all CPP flags.
6771         * tree-vrp.c: Update tree_pass descriptors.
6772         * regrename.c: Update tree_pass descriptors.
6773         * fwprop.c: Update tree_pass descriptors.
6774         * doc/invoke.texi: Remove documentation of dropped -d? flags.
6775         * tree-into-ssa.c: Update tree_pass descriptors.
6776         * tree-dump.c: Update tree_pass descriptors.
6777         * tree-complex.c: Update tree_pass descriptors.
6778         * tree-dump.h: Update tree_pass descriptors.
6779         * see.c: Update tree_pass descriptors.
6780         * cgraphbuild.c: Update tree_pass descriptors.
6781         * tracer.c: Update tree_pass descriptors.
6782         * tree-loop-distribution.c: Update tree_pass descriptors.
6783         * cgraph.c: Update tree_pass descriptors.
6784         * postreload-gcse.c: Update tree_pass descriptors.
6785         * postreload.c: Update tree_pass descriptors.
6786         * tree-ssa-loop-ch.c: Update tree_pass descriptors.
6787         * tree-tailcall.c: Update tree_pass descriptors.
6788         * tree-pass.h (tree_opt_pass): Rename to ...
6789         (opt_pass) ... this one; add "type" field and remove letter field.
6790         (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
6791         (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
6792         all_lowering_passes): Update declaration.
6793         * ipa-cp.c: Update tree_pass descriptors.
6794         * final.c: Update tree_pass descriptors.
6795         * omp-low.c: Update tree_pass descriptors.
6796         * tree-ssa-dse.c: Update tree_pass descriptors.
6797         * ipa-reference.c: Update tree_pass descriptors.
6798         * tree-ssa-uncprop.c: Update tree_pass descriptors.
6799         * auto-inc-dec.c: Update tree_pass descriptors.
6800         * reorg.c: Update tree_pass descriptors.
6801         * cgraphunit.c: Update tree_pass descriptors.
6802         * tree-ssa-copyrename.c: Update tree_pass descriptors.
6803         * tree-ssa-ccp.c: Update tree_pass descriptors.
6804         * df-core.c: Update tree_pass descriptors.
6805         * mode-switching.c: Update tree_pass descriptors.
6806         * tree-nomudflap.c: Update tree_pass descriptors.
6807         * modulo-sched.c: Update tree_pass descriptors.
6808         * ipa-pure-const.c: Update tree_pass descriptors.
6809         * cse.c: Update tree_pass descriptors.
6810         * web.c: Update tree_pass descriptors.
6811         * tree-stdarg.c: Update tree_pass descriptors.
6812         * tree-ssa-math-opts.c: Update tree_pass descriptors.
6813         * tree-ssa-dom.c: Update tree_pass descriptors.
6814         * tree-nrv.c: Update tree_pass descriptors.
6815         * tree-ssa-alias.c: Update tree_pass descriptors.
6816         * loop-init.c: Update tree_pass descriptors.
6817         * gimple-low.c: Update tree_pass descriptors.
6818         * ipa-inline.c: Update tree_pass descriptors.
6819         * tree-ssa-sink.c: Update tree_pass descriptors.
6820         * global.c: Update tree_pass descriptors.
6821         * ifcvt.c: Update tree_pass descriptors.
6822         * jump.c: Update tree_pass descriptors.
6823         * predict.c: Update tree_pass descriptors.
6824         * tree-ssa-loop.c: Update tree_pass descriptors.
6825         * recog.c: Update tree_pass descriptors.
6826         * dse.c: Update tree_pass descriptors.
6827         * tree-ssa-ifcombine.c: Update tree_pass descriptors.
6828         * tree-eh.c: Update tree_pass descriptors.
6829         * regmove.c: Update tree_pass descriptors.
6830         * local-alloc.c
6831         * function.c: Update tree_pass descriptors.
6832         * tree-vectorizer.c: Update tree_pass descriptors.
6833         * gcse.c: Update tree_pass descriptors.
6834         * ipa-type-escape.c: Update tree_pass descriptors.
6835         * tree-if-conv.c: Update tree_pass descriptors.
6836         * init-regs.c: Update tree_pass descriptors.
6837         * ipa.c: Update tree_pass descriptors.
6838         * tree-ssa-phiopt.c: Update tree_pass descriptors.
6839         * rtl-factoring.c: Update tree_pass descriptors.
6840         * lower-subreg.c: Update tree_pass descriptors.
6841         * bt-load.c: Update tree_pass descriptors.
6842         * tree-dfa.c: Update tree_pass descriptors.
6843         * except.c: Update tree_pass descriptors.
6844         * emit-rtl.c: Update tree_pass descriptors.
6845         * cfgexpand.c: Update tree_pass descriptors.
6846         * tree-cfgcleanup.c: Update tree_pass descriptors.
6847         * cfgcleanup.c: Update tree_pass descriptors.
6848         * tree-ssa-pre.c: Update tree_pass descriptors.
6849         * tree-sra.c: Update tree_pass descriptors.
6850         * tree-mudflap.c: Update tree_pass descriptors.
6851         * tree-ssa-copy.c: Update tree_pass descriptors.
6852         * cfglayout.c: Update tree_pass descriptors.
6853         * tree-ssa-forwprop.c: Update tree_pass descriptors.
6854         * tree-ssa-dce.c: Update tree_pass descriptors.
6855         * tree-ssa.c: Update tree_pass descriptors.
6856         * regclass.c: Update tree_pass descriptors.
6857         * integrate.c: Update tree_pass descriptors.
6858         * tree-optimize.c: Update tree_pass descriptors.
6859         * tree-ssa-phiprop.c: Update tree_pass descriptors.
6860         * tree-object-size.c: Update tree_pass descriptors.
6861         * combine.c: Update tree_pass descriptors.
6862         * tree-outof-ssa.c: Update tree_pass descriptors.
6863         * bb-reorder.c: Update tree_pass descriptors.
6864         * stack-ptr-mod.c: Update tree_pass descriptors.
6865         * var-tracking.c: Update tree_pass descriptors.
6866         * tree-profile.c: Update tree_pass descriptors.
6867         * tree-vect-generic.c: Update tree_pass descriptors.
6868         * reg-stack.c: Update tree_pass descriptors.
6869         * sched-rgn.c: Update tree_pass descriptors.
6870         * tree-ssa-structalias.c: Update tree_pass descriptors.
6871         * tree-cfg.c: Update tree_pass descriptors.
6872         * passes.c (current_pass): Update declaration.
6873         (finish_optimization_passes): Update.
6874         (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
6875         (register_one_dump_file, register_dump_files_1, next_pass_1):
6876         Update arguments.
6877         (init_optimization_passes): Update handling of new types.
6878         (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
6879         * ipa-struct-reorg.c: Update tree_pass descriptors.
6880         * tree-ssa-reassoc.c: Update tree_pass descriptors.
6881         * combine-stack-adj.c: Update tree_pass descriptors.
6882         * cfgrtl.c: Update tree_pass descriptors.
6883         * dce.c: Update tree_pass descriptors.
6884         * tree-ssanames.c: Update tree_pass descriptors.
6885
6886 2008-03-19  Richard Guenther  <rguenther@suse.de>
6887
6888         PR middle-end/35609
6889         * tree-ssa.c (walk_data): New structure.
6890         (warn_uninitialized_var): If not always_executed warn with "maybe"
6891         instead of "is".
6892         (execute_early_warn_uninitialized): Compute post-dominators.
6893         Initialize always_executed before processing each basic block.
6894
6895 2008-03-18  Mikulas Patocka  <mikulas@artax.karlin.mff.cuni.cz>
6896
6897         PR target/35504
6898         * config/i386/i386.c (x86_this_parameter): Calculate correct location
6899         of "this" pointer when "regparm = N" or "fastcall" is in effect.
6900
6901 2008-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6902
6903         * doc/include/texinfo.tex: Update to version 2008-03-17.10.
6904
6905 2008-03-18  Paolo Bonzini  <bonzini@gnu.org>
6906
6907         * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
6908         is true.
6909         (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
6910         (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
6911         is true.  Add "&& !ignore" condition to reduce_bit_field.  Modify
6912         target after ignore has been set, and move there also the commputation
6913         of subtarget and original_target.
6914         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
6915         (LANG_HOOKS_INITIALIZER): Remove it.
6916         * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
6917
6918 2008-03-18  Richard Guenther  <rguenther@suse.de>
6919
6920         * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
6921         found an expression with constants, note that in the VN for the lhs.
6922         * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
6923         fold them to constants if possible.  Run cleanup_cfg if done so.
6924         (execute_pre): Return todo.
6925         (do_pre): Likewise.
6926         (execute_fre): Likewise.
6927         * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
6928         of constants.
6929         (get_prop_source_stmt): Look through pointer conversions.
6930
6931 2008-03-18  Jan Hubicka  <jh@suse.cz>
6932
6933         * tree-pretty-print.c: Include predict.h.
6934         (dump_generic_node): Dump predictor.
6935         * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
6936         * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
6937         * gimple-low.c (lower_stmt): Likewise.
6938         * expr.c (expand_expr_real): Likewise.
6939         * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
6940         them.
6941         (build_predict_expr, build_predict_expr): New.
6942         * predict.h (predictor_name, build_predict_expr): Update.
6943         * c-typeck.c (c_finish_bc_stmt): Add prediction.
6944         * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
6945         * predict.def (PRED_CONTINUE): Update hitrate.
6946         * tree.def (PREDICT_EXPR): Define.
6947         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
6948         do not handle BIND_EXPR.
6949         * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
6950         * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
6951         * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
6952         operands.
6953
6954 2008-03-18  Michael Matz  <matz@suse.de>
6955
6956         * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
6957
6958 2008-03-18  Richard Guenther  <rguenther@suse.de>
6959
6960         * tree-gimple.h (is_gimple_invariant_address): Declare.
6961         (is_gimple_constant): Likewise.
6962         * tree-gimple.c (is_gimple_constant): New function.
6963         (is_gimple_invariant_address): Likewise.
6964         (is_gimple_min_invariant): Implement in terms of is_gimple_constant
6965         and is_gimple_invariant_address.
6966         * tree-ssa-loop-niter.c (expand_simple_operations): Revert
6967         previous change.
6968         * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
6969         an addressable base.
6970
6971 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
6972
6973         PR middle-end/35611
6974         * gimplify.c (gimplify_expr): Gimplify second operand of
6975         OMP_ATOMIC_LOAD.
6976
6977 2008-03-17  Richard Guenther  <rguenther@suse.de>
6978
6979         PR tree-optimization/19637
6980         * fold-const.c (fold_unary): Remove restrictions of removing
6981         intermediate pointer-conversions (P2)(P1)P0.
6982         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
6983         conversion to void pointer.
6984         (get_maxval_strlen): Handle addresses of the form &(*p)[0].
6985
6986 2008-03-16  James E. Wilson  <wilson@tuliptree.org>
6987
6988         PR debug/31510
6989         * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
6990         emulated thread local variables.
6991
6992 2008-03-16  Richard Guenther  <rguenther@suse.de>
6993
6994         PR middle-end/35607
6995         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
6996         expand TREE_INVARIANT operations that are not gimple invariant.
6997
6998 2008-03-16  Hans-Peter Nilsson  <hp@axis.com>
6999
7000         * doc/extend.texi (Alignment): Say that the ABI controls
7001         the __alignof__ for non-strict-alignment targets rather
7002         than being a recommendation.
7003
7004 2008-03-15  Paul Brook  <paul@codesourcery.com>
7005
7006         * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
7007         annotations.
7008         (arm_output_fn_unwind): Mark functions that can not be unwound.
7009
7010 2008-03-15  Paul Brook  <paul@codesourcery.com>
7011
7012         * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
7013         extension instructions.
7014
7015 2008-03-15  Richard Guenther  <rguenther@suse.de>
7016
7017         * tree-ssa-ccp.c (ccp_fold): Also read from constant values
7018         and fold constant aggregate refs.
7019         (fold_const_aggregate_ref): Handle string constants
7020         and constructors in ARRAY_REFs.  Handle INDIRECT_REF.
7021         (evaluate_stmt): Simplify now that ccp_fold folds constant
7022         aggregate refs.
7023
7024 2008-03-15  Paul Brook  <paul@codesourcery.com>
7025
7026         * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
7027         (extzv): Use gen_extzv_t2.
7028         (insv_t2, insv_zero, extv, extzv_t2): New patterns.
7029
7030 2008-03-15  Richard Guenther  <rguenther@suse.de>
7031
7032         * tree-ssa-ccp.c (get_symbol_constant_value): Export.
7033         (fold_const_aggregate_ref): Likewise.
7034         (get_value): Return NULL if we don't have any values.
7035         (ccp_finalize): Set const_val to NULL after freeing it.
7036         * tree-flow.h (get_symbol_constant_value): Declare.
7037         (fold_const_aggregate_ref): Likewise.
7038         * tree-ssa-sccvn.c (try_to_simplify): Use them.
7039
7040 2008-03-15  Richard Guenther  <rguenther@suse.de>
7041
7042         PR middle-end/35593
7043         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
7044         to not produce negative array indices if not allowed.  Add
7045         parameter to indicate that.
7046         (maybe_fold_offset_to_component_ref): Allow negative array
7047         indices only for the first member of a structure.
7048         (maybe_fold_offset_to_reference): Allow negative array indices.
7049         (maybe_fold_stmt_addition): Likewise.
7050
7051 2008-03-15  Bjoern Haase  <bjoern.m.haase@web.de>
7052             Anatoly Sokolov <aesok@post.ru>
7053
7054         * config/avr/avr.c (avr_arch_types): Add avr6 entry.
7055         (avr_arch): Add ARCH_AVR6.
7056         (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
7057         (initial_elimination_offset): Initialize and use 'avr_pc_size' 
7058         instead of fixed value 2.
7059         (print_operand_address): Use gs() asm specifier instead of pm().
7060         (avr_assemble_integer): (Ditto.).
7061         (avr_output_addr_vec_elt): (Ditto.).
7062         (print_operand): Handle "!" code.
7063         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add 
7064         __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
7065         (AVR_HAVE_EIJMP_EICALL): Define.
7066         (AVR_3_BYTE_PC): Redefine.
7067         (AVR_2_BYTE_PC): (Ditto.).
7068         (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
7069         (LINK_SPEC): Add atmega2560 and atmega2561.
7070         (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561 
7071         (crtm2561.o).
7072         * config/avr/avr.md (call_insn): Use eicall instead of icall 
7073         for 3 byte PC devices.
7074         (call_value_insn): (Ditto.).
7075         (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
7076         (indirect_jump): Use only for for 2 byte PC devices.
7077         (*tablejump): (Ditto.).
7078         (*indirect_jump_avr6): Add insn.
7079         (*tablejump_rjmp): Don't use for 3 byte PC devices.
7080         * config/avr/libgcc.S (__prologue_saves__): Use eijmp 
7081         instead of ijmp for 3 byte PC devices.
7082         (__tablejump2__): (Ditto.).
7083         * config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
7084         (MULITLIB_DIRNAMES): (Ditto.). 
7085         (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
7086
7087 2008-03-15  Uros Bizjak  <ubizjak@gmail.com>
7088
7089         * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
7090         "sse2_umulsidi3".  Use V1DI mode for operand 0.
7091         ("mmx_psadbw"): Use V1DI mode for operand 0.
7092         * config/i386/i386-modes.def (V1SI): New vector mode.
7093         * config/i386/i386.c (struct builtin_description)
7094         [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
7095         (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
7096         (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
7097         (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
7098         v1di_ftype_v8qi_v8qi type.
7099         [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
7100
7101         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
7102         __builtin_ia32_pmuludq]: Fix the mode of return value.
7103
7104 2008-03-15  Richard Guenther  <rguenther@suse.de>
7105
7106         PR middle-end/35595
7107         * tree-ssa-pre.c (bitmap_find_leader): Handle expression
7108         being a PHI_NODE.
7109
7110 2008-03-14  Bob Wilson  <bob.wilson@acm.org>
7111         
7112         * doc/invoke.texi (Option Summary, Xtensa Options): Document
7113         -mserialize-volatile and -mno-serialize-volatile Xtensa options.
7114         * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
7115         unless TARGET_SERIALIZE_VOLATILE is enabled.
7116         * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
7117         * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
7118         * config/xtensa/xtensa.opt (mserialize_volatile): New option.
7119
7120 2008-03-14  Richard Guenther  <rguenther@suse.de>
7121
7122         PR tree-optimization/34172
7123         * tree-flow.h (refs_may_alias_p): Declare.
7124         (get_single_def_stmt): Likewise.
7125         (get_single_def_stmt_from_phi): Likewise.
7126         (get_single_def_stmt_with_phi): Likewise.
7127         * tree-dfa.c (refs_may_alias_p): New function.
7128         (get_single_def_stmt): Likewise.
7129         (get_single_def_stmt_from_phi): Likewise.
7130         (get_single_def_stmt_with_phi): Likewise.
7131         * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
7132         (vn_reference_lookup_1): New helper function.
7133         (vn_reference_lookup): Walk the virtual use-def chain to
7134         continue searching for a match if the def does not alias the
7135         reference we are looking for.
7136
7137 2008-03-14  David Edelsohn  <edelsohn@gnu.org>
7138
7139         * doc/install.texi (Binaries): Remove UCLA archive.  Add HVCC
7140         archive and Perzl.  Update The Written Word listing.
7141
7142 2008-03-14  Richard Guenther  <rguenther@suse.de>
7143
7144         PR tree-optimization/34043
7145         PR tree-optimization/33989
7146         * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
7147         when doing FRE.
7148         (bitmap_find_leader): Use extra argument to verify dominance
7149         relationship inside a basic-block.
7150         (can_PRE_operation): Add VIEW_CONVERT_EXPR.
7151         (find_leader_in_sets): Adjust.
7152         (create_component_ref_by_pieces): Take extra argument for
7153         dominance check, handle lookup failures.
7154         (find_or_generate_expression): Likewise.
7155         (create_expression_by_pieces): Likewise.
7156         (insert_into_preds_of_block): Adjust.
7157         (create_value_expr_from): If asked for, verify all operands
7158         are in the blocks AVAIL_OUT set.
7159         (make_values_for_stmt): Check for SSA_NAMEs that are life
7160         over an abnormal edge.
7161         (compute_avail): Remove such check.
7162         (do_SCCVN_insertion): New function.
7163         (eliminate): If we do not find a leader suitable for replacement
7164         insert a replacement expression from SCCVN if available.
7165         * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
7166         (struct vn_ssa_aux): Add needs_insertion flag.
7167         * tree-ssa-sccvn.c (may_insert): New global flag.
7168         (copy_reference_ops_from_ref): Value-number union member access
7169         based on its size, not type and member if insertion is allowed.
7170         (visit_reference_op_load): For a weak match from union type
7171         punning lookup a view-converted value and insert a SSA_NAME
7172         for that value if that is not found.
7173         (visit_use): Make dumps shorter.  Do not disallow value numbering
7174         SSA_NAMEs that are life over an abnormal edge to constants.
7175         (free_scc_vn): Release inserted SSA_NAMEs.
7176         (run_scc_vn): New flag to specify whether insertion is allowed.
7177         Process SSA_NAMEs in forward order.
7178         * tree-ssa-loop-im.c (for_each_index): Handle invariant
7179         ADDR_EXPRs inside VIEW_CONVERT_EXPR.
7180         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
7181         pointer type to/from integral types that do not change the
7182         precision to regular conversions.
7183
7184 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
7185
7186         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
7187         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
7188         __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
7189         __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
7190         input arguments and the mode of return value.  Built-in functions
7191         that operate on whole 64-bit MMX register now use V1DI mode.
7192
7193 2008-03-13  Alon Dayan  <alond@il.ibm.com>
7194             Olga Golovanevsky  <olga@il.ibm.com>
7195
7196         PR tree-optimization/35041
7197         * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
7198         to locate the right position in a statement.
7199
7200 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
7201
7202         PR target/34000
7203         PR target/35553
7204         * config/i386/xmmintrin.h:  Change all static inline functions to
7205         extern inline and add __gnu_inline__ attribute.
7206         * config/i386/bmintrin.h: Ditto.
7207         * config/i386/smmintrin.h: Ditto.
7208         * config/i386/tmmintrin.h: Ditto.
7209         * config/i386/mmintrin-common.h: Ditto.
7210         * config/i386/ammintrin.h: Ditto.
7211         * config/i386/emmintrin.h: Ditto.
7212         * config/i386/pmmintrin.h: Ditto.
7213         * config/i386/mmintrin.h: Ditto.
7214         * config/i386/mm3dnow.h: Ditto.
7215
7216 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
7217
7218         PR middle-end/35185
7219         * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
7220         (lower_omp_2): New function.
7221         (lower_omp_1, lower_omp): Rewritten.
7222
7223 2008-03-13  Danny Smith  <dannysmith@users.sourceforge.net>
7224
7225         PR 35054
7226         * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
7227         with the phrase "Microsoft Windows compilers".
7228         (Push/Pop Macro Pragmas): New subsection. Document
7229         #pragma push_macro and pragma pop_macro.
7230
7231 2008-03-12  Paul Brook  <paul@codesourcery.com>
7232
7233         * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
7234
7235 2008-03-12  Paul Brook  <paul@codesourcery.com>
7236
7237         * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
7238         (thumb2_alusi3_short): Exclude PLUS and MINUS.
7239         (thumb2_addsi_shortim): Rename ...
7240         (thumb2_addsi_short): ... to this.  Allow register operands.
7241         (thumb2_subsi_short): New pattern.
7242         (thumb2_one_cmplsi2_short,
7243         thumb2_negsi2_short): New patterns and peepholes.
7244
7245 2008-03-12  Paul Brook  <paul@codesourcery.com>
7246
7247         * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
7248
7249 2008-03-12  Uros Bizjak  <ubizjak@gmail.com>
7250
7251         * config/i386/i386.md (int_cond): New code iterator.
7252         (fp_cond): Ditto.
7253         ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
7254         sge, sgeu, sle and sleu expanders usign int_cond code iterator.
7255         ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
7256         sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
7257         ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
7258         bge, bgeu, ble and bleu expanders usign int_cond code iterator.
7259         ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
7260         bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
7261
7262 2008-03-12  Paul Brook  <paul@codesourcery.com>
7263
7264         * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
7265         instead of {arm,thumb}_compute_save_reg_mask.
7266         (output_return_instruction): Ditto.
7267         (thumb_unexpanded_epilogue): Ditto.
7268         (thumb1_expand_prologue): Ditto.
7269         (thumb1_output_function_prologue): Ditto.
7270         (arm_set_return_address): Ditto.
7271         (thumb_set_return_address): Ditto.
7272         (arm_get_frame_offsets): Set offsets->saved_regs_mask.  Push extra
7273         regs to achieve stack alignment.
7274         (thumb1_compute_save_reg_mask): Fix compiler warning.
7275         (arm_output_epilogue): Use offsets->saved_regs_mask.
7276         Adjust stack pointer by poping call clobered registers.
7277         (arm_expand_prologue): Use offsets->saved_regs_mask.
7278         Adjust stack pointer by pushing extra registers.
7279         * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
7280
7281 2008-03-12  Paolo Bonzini  <bonzini@gnu.org>
7282
7283         PR tree-opt/35422
7284         * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
7285         conversion to the operands of a multiplication.
7286
7287 2008-03-12  Richard Guenther  <rguenther@suse.de>
7288
7289         * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
7290         (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
7291         * timevar.def (TV_TREE_PHIPROP): Add.
7292         * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
7293         pass description.  Use TV_TREE_PHIPROP.
7294         * tree-ssa-forwprop.c: Remove phiprop code.
7295
7296 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
7297
7298         PR middle-end/35549
7299         * omp-low.c (maybe_lookup_decl): Constify first argument.
7300         (use_pointer_for_field): Change last argument from bool to
7301         omp_context *.  Disallow shared copy-in/out in nested
7302         parallel if decl is shared in outer parallel too.
7303         (build_outer_var_ref, scan_sharing_clauses,
7304         lower_rec_input_clauses, lower_copyprivate_clauses,
7305         lower_send_clauses, lower_send_shared_vars): Adjust callers.
7306
7307 2008-03-12  Victor Kaplansky  <victork@il.ibm.com>
7308             Ira Rosen  <irar@il.ibm.com>
7309
7310         * tree-vectorizer.c (free_stmt_vec_info): New function.
7311         (destroy_loop_vec_info): Move code to free_stmt_vec_info().
7312         Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
7313         * tree-vectorizer.h (free_stmt_vec_info): Declare.
7314         * tree-vect-transform.c (vectorizable_conversion): Free
7315         vec_oprnds0 if it was allocated.
7316         (vect_permute_store_chain): Remove unused VECs.
7317         (vectorizable_store): Free VECs that are allocated in the..
7318         function.
7319         (vect_transform_strided_load, vectorizable_load): Likewise.
7320         (vect_remove_stores): Simplify the code.
7321         (vect_transform_loop): Move code to vect_remove_stores().
7322         Call vect_remove_stores() and free_stmt_vec_info().
7323
7324 2008-03-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7325
7326         * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
7327         TARGET_HPUX.  Revise comment.
7328         (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
7329         * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
7330         Use sr4 variant of `be' instruction when not generating PIC code.
7331         (attr_length_call): Adjust for above change.
7332
7333 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
7334
7335         * ipa-reference.c (static_execute): Remove module_statics_const and
7336         associated setting code.
7337
7338 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
7339
7340         PR target/35540
7341         * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
7342         predicate for operand 1.
7343         (paritysi2_cmp): Use register_operand predicate for operand 2.
7344         Use earlyclobber modifier for operand 1.  Remove support for
7345         memory operands.
7346         (paritydi2_cmp): Use register_operand predicate for operand 3.
7347         Use earlyclobber modifier for operand 1.  Remove support for
7348         memory operands.
7349
7350 2008-03-11  Paul Brook  <paul@codesourcery.com>
7351             Vladimir Prus  <vladimir@codesourcery.com>
7352
7353         * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
7354         (arm_compute_save_reg0_reg12_mask): Always
7355         check if register 11 must be saved.  Always safe hard frame pointer
7356         when frame_pointer_needeed.
7357         (arm_compute_save_reg_mask): Save IP and PC
7358         only with apcs frames.
7359         (arm_output_epilogue): Adjust Thumb2 codepath to
7360         be also invoked and work for ARM non-apcs frames.
7361         (arm_expand_prologue): Don't bother saving IP
7362         for non-apcs frame, since it's not clobbered by
7363         prologue code.  Implement non-apcs frame
7364         layout.
7365
7366 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
7367
7368         PR rtl-optimization/35281
7369         * expr.c (convert_move): Use a new pseudo for the intermediate
7370         from_mode->word_mode result.
7371
7372 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
7373
7374         * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
7375         * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
7376         * toplev.c (compile_file): Don't call it.
7377
7378 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
7379
7380         PR middle-end/35526
7381         * expr.c (store_expr): Call emit_block_move if the mode
7382         of "temp" RTX is BLKmode.
7383
7384 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
7385             Richard Guenther  <rguenther@suse.de>
7386
7387         PR tree-optimization/31358
7388         * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
7389         the step with a NULL_TREE.
7390         * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
7391         to sizetype if type is a pointer type.
7392         (add_candidate_1): Don't convert the base and step to
7393         the generic type if the orginal type is a pointer type.
7394         (add_iv_value_candidates): Use sizetype for the step
7395         if type is a pointer type.
7396         (cand_value_at): Likewise.
7397         * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
7398         for pointer types.
7399         * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
7400         Don't convert the tem affine to the type.
7401         (add_elt_to_tree): Use sizetype for the step if a pointer.
7402         Use POINTER_PLUS_EXPR for pointers.
7403         (aff_combination_to_tree): Use sizetype for the step if a
7404         pointer.
7405
7406 2008-03-10  Vladimir Makarov  <vmakarov@redhat.com>
7407
7408         * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
7409         Remove commutativity hint.
7410
7411 2008-03-10  Jakub Jelinek  <jakub@redhat.com>
7412
7413         PR c/35438
7414         PR c/35439
7415         * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
7416         errorneous type.  Check that v is a VAR_DECL.
7417
7418         PR middle-end/35099
7419         * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
7420
7421 2008-03-10  H.J. Lu  <hongjiu.lu@intel.com>
7422
7423         PR tree-optimization/35494
7424         * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
7425         may be overriden at link and run time.
7426
7427 2008-03-10  Richard Guenther  <rguenther@suse.de>
7428
7429         PR tree-optimization/34677
7430         * tree-ssa-pre.c (modify_expr_node_pool): Remove.
7431         (poolify_tree): Likewise.
7432         (modify_expr_template): Likewise.
7433         (poolify_modify_stmt): Likewise.
7434         (insert_fake_stores): Handle all component-ref style stores
7435         in addition to INDIRECT_REF.  Also handle complex types.
7436         Do not poolify the inserted load.
7437         (realify_fake_stores): Do not rebuild the tree but only
7438         make it a SSA_NAME copy.
7439         (init_pre): Remove initialzation of modify_expr_template.
7440         Do not allocate modify_expr_node_pool.
7441         (fini_pre): Do not free modify_expr_node_pool.
7442
7443 2008-03-10  Paul Brook  <paul@codesourcery.com>
7444
7445         * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
7446         to avoid conflicts.
7447
7448 2008-03-10  Paul Brook  <paul@codesourcery.com>
7449             Mark Shinwell  <shinwell@codesourcery.com>
7450
7451         * config/arm/cortex-r4.md: New.
7452         * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
7453         insn attributes.
7454         * config/arm/arm.md: Include cortex-r4.md.
7455         (insn): Add smmls, sdiv and udiv values.
7456         (generic_sched): Don't use generic scheduling for Cortex-R4.
7457         (arm_issue_rate): New function.
7458         (TARGET_SCHED_ISSUE_RATE): Define.
7459
7460 2008-03-10  Sebastian Pop  <sebastian.pop@amd.com>
7461
7462         * doc/invoke.texi (-ftree-loop-distribution): Add an example.
7463
7464 2008-03-10  Richard Guenther  <rguenther@suse.de>
7465
7466         * tree-ssa-pre.c (get_sccvn_value): Simplify.
7467         (compute_avail): Do not add stmt uses to AVAIL_OUT.
7468
7469 2008-03-10  Paolo Bonzini  <bonzini@gnu.org>
7470
7471         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
7472         Set default to true.
7473
7474 2008-03-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7475
7476         * c.opt (Wsynth): Deprecate.
7477         * doc/invoke.texi (Option Summary, Warning Options): Document
7478         -Wno-format-contains-nul.
7479
7480 2008-03-09  Uros Bizjak  <ubizjak@gmail.com>
7481
7482         PR target/35496
7483         * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
7484         ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
7485
7486 2008-03-09  Ira Rosen  <irar@il.ibm.com>
7487
7488         * config/rs6000/rs6000.c (builtin_description): Rename vector
7489         left shift operations.
7490         * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
7491         (altivec_vsl<VI_char>): Rename to ...
7492         (ashl<mode>3): ... new name.
7493         (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
7494         gen_ashlv4si3.
7495         (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
7496
7497 2008-03-08  Richard Guenther  <rguenther@suse.de>
7498
7499         * coverage.h (tree_coverage_counter_addr): Declare.
7500         * coverage.c (tree_coverage_counter_addr): New function.
7501         * tree-profile.c (tree_gen_edge_profiler): Unshare counter
7502         before using again.
7503         (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
7504         (tree_gen_one_value_profiler): Likewise.
7505         (tree_gen_ic_profiler): Likewise.
7506         (tree_gen_average_profiler): Likewise.
7507         (tree_gen_ior_profiler): Likewise.
7508
7509 2008-03-08  Richard Guenther  <rguenther@suse.de>
7510
7511         * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
7512         (vn_binary_op_insert): Likewise.
7513         (vn_unary_op_lookup): Likewise.
7514         (vn_unary_op_insert): Likewise.
7515         (vn_nary_op_lookup): Declare.
7516         (vn_nary_op_insert): Likewise.
7517         * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
7518         and binary hashes, use a single obstack for unary_op_pool
7519         and binary_op_pool.
7520         (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
7521         a single struct vn_nary_op_s.  Store tree code length and
7522         a variable number of operands.
7523         (struct vn_reference_op_struct): Remove unused op2.
7524         (vn_reference_op_eq): Do not compare op2.
7525         (vn_reference_op_compute_hash): Do not compute hash of op2.
7526         (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
7527         (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
7528         with vn_nary_op_compute_hash.
7529         (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
7530         (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
7531         vn_nary_op_lookup.
7532         (vn_unary_op_insert, vn_binary_op_insert): Replace with
7533         vn_nary_op_insert.
7534         (visit_unary_op): Call nary functions.
7535         (visit_binary_op): Likewise.
7536         (process_scc): Adjust for struct vn_tables_s changes.
7537         (allocate_vn_table): Likewise.
7538         (free_vn_table): Likewise.
7539         * tree-vn.c (vn_add): Call nary functions.
7540         (vn_lookup): Likewise.
7541
7542 2008-03-08  Jakub Jelinek  <jakub@redhat.com>
7543
7544         PR target/35498
7545         * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
7546         wdst back after sync_compare_and_swapqhi_internal.
7547
7548 2008-03-08  Uros Bizjak  <ubizjak@gmail.com>
7549
7550         PR target/22152
7551         * config/i386/i386-modes.def (V1DI): New vector mode.
7552         * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
7553         * config/i386/mmx.md (MMXMODEI8): New mode iterator.
7554         (MMXMODE248): Ditto.
7555         (MMXMODE): Add V1DI mode.
7556         (mmxvecsize): Change DI mode to V1DI mode.
7557         ("mov<mode>): Use MMXMODEI8 mode iterator.
7558         ("*mov<mode>_internal_rex64"): Ditto.
7559         ("*mov<mode>_internal"): Ditto.
7560         ("mmx_add<mode>3"): Ditto.  Handle V1DImode for TARGET_SSE2.
7561         ("mmx_sub<mode>3"): Ditto.
7562         ("mmx_adddi3"): Remove insn pattern.
7563         ("mmx_subdi3"): Ditto.
7564         ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
7565         ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
7566         ("mmx_ashl<mode>3"): Ditto.
7567         ("mmx_lshrdi3"): Remove insn pattern.
7568         ("mmx_ashldi3"): Ditto.
7569         * config/i386/i386.c (classify_argument): Handle V1DImode.
7570         (function_arg_advance_32): Ditto.
7571         (function_arg_32): Ditto.
7572         (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
7573         mmx_addv1di3 insn pattern.
7574         [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
7575         [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
7576         IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
7577         IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
7578         Remove definitions of built-in functions.
7579         (V1DI_type_node): New node.
7580         (v1di_ftype_v1di_int): Ditto.
7581         (v1di_ftype_v1di_v1di): Ditto.
7582         (v2si_ftype_v2si_si): Ditto.
7583         (v4hi_ftype_v4hi_di): Remove node.
7584         (v2si_ftype_v2si_di): Ditto.
7585         (ix86_init_mmx_sse_builtins): Handle V1DImode.
7586         (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
7587         Redefine builtins using def_builtin_const with *_ftype_*_int node.
7588         (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
7589         Add new builtins using def_builtin_const.
7590         (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
7591         IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
7592         IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
7593         * config/i386/mmintrin.h (__v1di): New typedef.
7594         (_mm_add_si64): Cast arguments to __v1di type.
7595         (_mm_sub_si64): Ditto.
7596         (_mm_sll_pi16): Cast __count to __v4hi type.
7597         (_mm_sll_pi32): Cast __count to __v2si type.
7598         (_mm_sll_si64): Cast arguments to __v1di type.
7599         (_mm_srl_pi16): Cast __count to __v4hi type.
7600         (_mm_srl_pi32): Cast __count to __v2si type.
7601         (_mm_srl_si64): Cast arguments to __v1di type.
7602         (_mm_sra_pi16): Cast __count to __v4hi type.
7603         (_mm_sra_pi32): Cast __count to __v2si type.
7604         (_mm_slli_pi16): Use __builtin_ia32_psllwi.
7605         (_mm_slli_pi32): Use __builtin_ia32_pslldi.
7606         (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
7607         (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
7608         (_mm_srli_pi32): Use __builtin_ia32_psrldi.
7609         (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
7610         (_mm_srai_pi16): Use __builtin_ia32_psrawi.
7611         (_mm_srai_pi32): Use __builtin_ia32_psradi.
7612         * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
7613         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
7614         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
7615         __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
7616
7617 2008-03-07  Joseph Myers  <joseph@codesourcery.com>
7618
7619         * doc/include/texinfo.tex: Update to version 2008-03-07.10.
7620
7621 2008-03-07  Peter Bergner  <bergner@vnet.ibm.com>
7622
7623         PR target/35373
7624         * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
7625         reg+const addressing for Altivec modes.  Don't generate reg+reg
7626         addressing for TFmode or TDmode quantities.
7627
7628 2008-03-07  Paolo Bonzini  <bonzini@gnu.org>
7629
7630         * c-common.c (vector_types_convertible_p): Call langhook
7631         instead of comptypes.
7632
7633 2008-03-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
7634
7635         PR tree-opt/35402
7636         * tree-ssa-ccp.c (get_symbol_constant_value): Handle
7637         integral and scalar float variables which have a
7638         NULL DECL_INITIAL.
7639
7640 2008-03-06  Nathan Froyd  <froydnj@codesourcery.com>
7641
7642         * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
7643         dwarf_register_span hook when emitting unwind information for
7644         register-to-memory saves.
7645         * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
7646         (rs6000_frame_related): Remove call to spe_synthesize_frame.
7647
7648 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
7649
7650         * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
7651         for the same VAR_DECL.
7652
7653 2008-03-06  Tom Tromey  <tromey@redhat.com>
7654
7655         * treelang: Delete.
7656         * doc/standards.texi (Standards): Don't mention treelang.
7657         * doc/invoke.texi (Overall Options): Don't mention treelang.
7658         * doc/install.texi (Prerequisites): Don't mention bison or
7659         treelang.
7660         (Configuration): Don't mention treelang.
7661         (Building): Likewise.
7662         * doc/frontends.texi (G++ and GCC): Don't mention treelang.
7663
7664 2008-03-06  Paolo Bonzini  <bonzini@gnu.org>
7665
7666         * simplify-rtx.c (simplify_subreg): Remove useless shifts from
7667         word-extractions out of a multi-word object.
7668
7669 2008-03-06  Richard Guenther  <rguenther@suse.de>
7670
7671         * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
7672         * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
7673         result type and precision.
7674         * expr.c (get_inner_reference): Set unsignedp based on the result
7675         type of BIT_FIELD_REF.
7676         * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
7677         * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
7678         (try_instantiate_multiple_fields): Likewise.  Use the correct type
7679         for BIT_FIELD_REF.
7680         (sra_build_assignment): Likewise.
7681         (sra_build_elt_assignment): Likewise.
7682         (sra_explode_bitfield_assignment): Likewise.
7683         * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
7684         * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
7685         set BIT_FIELD_REF_UNSIGNED.
7686         (vectorizable_load): Likewise.
7687
7688 2008-03-06  Andreas Krebbel  <krebbel1@de.ibm.com>
7689
7690         * cse.c (cse_extended_basic_block): Invalidate artificial defs
7691         at bb start.
7692
7693 2008-03-06  Richard Guenther  <rguenther@suse.de>
7694
7695         * alias.c (struct alias_set_entry): Move has_zero_child field
7696         to pack with alias_set.
7697
7698 2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
7699
7700         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
7701         32bit host.
7702
7703 2008-03-05  Ian Lance Taylor  <iant@google.com>
7704
7705         * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
7706
7707 2008-03-05  Kenneth Zadeck  <zadeck@naturalbridge.com>
7708
7709         * fwprop.c (update_df): Support width and offset parameters of
7710         df_ref_create.
7711         * ra-conflict.c (mark_reg_store, clear_reg_in_live,
7712         global_conflicts): Change DF_REF_EXTRACT to either
7713         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
7714         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
7715         * df-scan.c (df_ref_record, df_defs_record,
7716         df_ref_create_structure, df_def_record_1, df_uses_record,
7717         df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
7718         df_bb_refs_collect, df_entry_block_defs_collect,
7719         df_exit_block_uses_collect): Support new width and offset fields.
7720         (ref_extract_pool): New storage pool.
7721         (df_free_ref): New function.
7722         (df_reg_chain_unlink, df_free_collection_rec,
7723         df_sort_and_compress_refs): Call df_free_ref.
7724         (df_ref_equal_p, df_ref_compare): Compare offset and width fields
7725         of df_ref_extract.
7726         (df_ref_create_structure): Allocate df_ref_extract if offset and
7727         width fields are used.
7728         (df_def_record_1): Get offset and width from ZERO_EXTRACT.
7729         (df_uses_record): Get offset and width from ZERO_EXTRACT 
7730         and SIGN_EXTRACT.
7731         * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
7732         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
7733         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
7734         * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
7735         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
7736         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
7737         (df_ref_extract): New structure.
7738         (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
7739         (df_ref_create): Add width and offset parameters.
7740         
7741 2008-03-05  Richard Guenther  <rguenther@suse.de>
7742
7743         * tree-ssa-structalias.c (get_constraint_for_component_ref):
7744         Use ranges_overlap_p.
7745         (offset_overlaps_with_access): Rename
7746         to ranges_overlap_p and move ...
7747         * tree-flow-inline.h (ranges_overlap_p): ... here.
7748
7749         * tree.h (get_inner_reference, handled_component_p): Update
7750         comments.
7751
7752         * tree.h (record_component_aliases, get_alias_set,
7753         alias_sets_conflict_p, alias_sets_must_conflict_p,
7754         objects_must_conflict_p): Move declarations ...
7755         * alias.h (record_component_aliases, get_alias_set,
7756         alias_sets_conflict_p, alias_sets_must_conflict_p,
7757         objects_must_conflict_p): ... here.
7758         Include coretypes.h.
7759         * Makefile.in (ALIAS_H): Add coretypes.h dependency.
7760
7761 2008-03-05  Aldy Hernandez  <aldyh@redhat.com>
7762
7763         * cfg.c: Include tree-flow.h.
7764         (remove_edge_raw): Call redirect_edge_var_map_clear.
7765         (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
7766         * tree-flow-inline.h (redirect_edge_var_map_def): New.
7767         (redirect_edge_var_map_result): New.
7768         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
7769         PENDING_STMT use with redirect_edge_var_map_*.
7770         * tree-ssa.c (edge_var_maps): New definition.
7771         (redirect_edge_var_map_add): New.
7772         (redirect_edge_var_map_clear): New.
7773         (redirect_edge_var_map_dup): New.
7774         (redirect_edge_var_map_vector): New.
7775         (redirect_edge_var_map_destroy): New.
7776         (ssa_redirect_edge): Replace PENDING_STMT use with
7777         redirect_edge_var_map_*.
7778         (flush_pending_stmts): Same.
7779         (delete_tree_ssa): Destroy edge var map.
7780         * tree-flow.h (struct _edge_var_map): New.
7781         Define edge_var_map vector type.
7782         Declare redirect_edge_var_map_* prototypes.
7783         * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
7784         * tree-cfg.c (reinstall_phi_args): Replace
7785         PENDING_STMT use with redirect_edge_var_map_*.
7786
7787 2008-03-05  Richard Guenther  <rguenther@suse.de>
7788
7789         PR tree-optimization/35472
7790         * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
7791         whose single use_stmt has a overlapping set of loaded and
7792         stored symbols as that use_stmt might be a noop assignment then.
7793
7794 2008-03-05  Joel Sherrill <joel.sherrill@oarcorp.com>
7795
7796         * gthr-rtems.h: Implement __gthread_mutex_destroy.
7797
7798 2008-03-05  Richard Guenther  <rguenther@suse.de>
7799
7800         PR c++/35336
7801         * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
7802         should be constants.
7803         * tree-cfg.c (verify_expr): Verify it.
7804         * fold-const.c (fold_truthop): Remove code generating
7805         BIT_FIELD_REFs of structure bases.
7806         (fold_binary): Likewise.
7807         (fold_ternary): Position and size of BIT_FIELD_REFs are
7808         always host integers.
7809         (make_bit_field_ref): Remove.
7810         (optimize_bit_field_compare): Remove.
7811         (all_ones_mask_p): Remove.
7812
7813 2008-03-05  Gabor Loki  <loki@gcc.gnu.org>
7814
7815         PR gcc/33009
7816         * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
7817         (split_block_and_df_analyze): New. Split basic block and rebuild
7818         dataflow.
7819         (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
7820         SPLIT_BLOCK.
7821         (split_pattern_seq): Likewise.
7822         (erase_matching_seqs): Likewise.
7823         (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
7824
7825 2008-03-04  Geoff Keating  <geoffk@apple.com>
7826
7827         * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
7828         declaration and code.
7829         (tree_invalid_nonnegative_warnv_p): Likewise.
7830
7831 2008-03-05  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
7832
7833         * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
7834         examples.  Truncate option-names then causing overfull hbox.
7835
7836 2008-03-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7837
7838         PR target/35222
7839         * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
7840         on hpux10.
7841         * configure: Rebuilt.
7842
7843 2008-03-04  Rafael Espindola  <espindola@google.com>
7844
7845         * fold-const.c (tree_simple_nonnegative_warnv_p): New.
7846         (tree_unary_nonnegative_warnv_p): New.
7847         (tree_binary_nonnegative_warnv_p): New.
7848         (tree_single_nonnegative_warnv_p): New.
7849         (tree_invalid_nonnegative_warnv_p): New.
7850         (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
7851
7852 2008-03-04  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7853
7854         PR 28322
7855         * opts.c (handle_option): Postpone 'unknown option' errors only for
7856         warning options.
7857
7858 2008-03-04  H.J. Lu  <hongjiu.lu@intel.com>
7859
7860         PR target/35453
7861         * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
7862         (_SIDD_XXX): This.
7863
7864 2008-03-04  Rafael Espindola  <espindola@google.com>
7865
7866         * fold-const.c (tree_unary_nonzero_warnv_p): New.
7867         (tree_binary_nonzero_warnv_p): New.
7868         (tree_single_nonzero_warnv_p): New.
7869         (tree_expr_nonzero_warnv_p): Redefine using the new functions.
7870
7871 2008-03-04  Uros Bizjak  <ubizjak@gmail.com>
7872
7873         PR middle-end/35456
7874         * fold-const.c (fold_cond_expr_with_comparison): Prevent
7875         transformations for modes that have signed zeros.
7876         * ifcvt.c (noce_try_abs): Ditto.
7877
7878 2008-03-04  Joseph Myers  <joseph@codesourcery.com>
7879
7880         * config/i386/i386.c (override_options): Force
7881         -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
7882
7883 2008-03-04  Jan Hubicka  <jh@suse.cz>
7884
7885         PR c++/35262
7886         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
7887         in last commit.
7888
7889 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
7890
7891         * config/i386/i386.md (allocate_stack_worker_32): Use  __chkstk
7892         label to probe the stack.
7893
7894 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
7895
7896         * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
7897         (__gthr_win32_mutex_destroy): Declare.
7898         [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
7899         __gthr_win32_mutex_destroy.
7900         * config/i386/gthr-win32.c  (__gthr_win32_mutex_destroy): Define.
7901
7902 2008-03-03  Jan Hubicka  <jh@suse.cz>
7903
7904         PR c++/35262
7905         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
7906         aggressive on inlining cold calls.
7907
7908 2008-03-03  Richard Guenther  <rguenther@suse.de>
7909
7910         * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
7911         struct copies into the expression table.
7912         (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
7913         (try_to_simplify): Likewise.
7914         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
7915         integral and pointer arguments which do not change the
7916         precision to NOP_EXPRs.
7917         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
7918         VIEW_CONVERT_EXPR case.
7919
7920 2008-03-02  Sebastian Pop  <sebastian.pop@amd.com>
7921
7922         * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
7923         defined in a loop at depth 0 is invariant.
7924         * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
7925         * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
7926         be called at loop depth 0.
7927
7928 2008-03-02  Jakub Jelinek  <jakub@redhat.com>
7929
7930         PR driver/35420
7931         * gcc.c (process_command): Update copyright notice dates.
7932         * gcov.c (print_version): Likewise.
7933         * gcov-dump.c (print_version): Likewise.
7934         * mips-tfile.c (main): Likewise.
7935         * mips-tdump.c (main): Likewise.
7936
7937 2008-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7938
7939         PR 24924
7940         * c-common.c (flag_permissive): Delete.
7941         (constant_expression_warnings): Check flags first.
7942         (constant_expression_error): New.
7943         * c-common.h (flag_permissive): Delete.
7944         (constant_expression_error): Declare.
7945         * flags.h (flag_permissive): Declare. Update description.
7946         * diagnostic.c (pedwarn): Update.
7947         (permerror): New.
7948         * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
7949         (permissive_error_kind): New.
7950         * toplev.c (flag_permissive): Define. Update description.
7951         * toplev.h (permissive_error_kind): Declare.
7952         * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
7953         (pedwarn_c90): Use pedantic_warning_kind.
7954         * c-opts.c (c_common_post_options): flag_permissive does not affect
7955         flag_pedantic_errors.
7956
7957 2008-03-02  Joseph Myers  <joseph@codesourcery.com>
7958
7959         * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
7960         __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
7961         __absvsi2, __absvDI2): Use unsigned arithmetic.
7962
7963 2008-03-02  Andi Kleen  <ak@suse.de>
7964             Richard Guenther  <rguenther@suse.de>
7965
7966         * struct-equiv.c: Remove file.
7967         * cfg_cleanup.c (condjump_equiv_p): Remove.
7968         * Makefile.in (OBJS-common): Remove struct-equiv.o.
7969         (struct-equiv.o): Remove rule.
7970         * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
7971         insns_match_p, struct_equiv_block_eq, struct_equiv_init, 
7972         rtx_equiv_p, condjump_equiv_p): Remove prototypes.
7973
7974 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
7975
7976         * ifcvt.c (noce_process_if_block): Try to handle only the then
7977         block if the else block exists but isn't suitable.
7978
7979 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
7980
7981         PR gcc/35063
7982         * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
7983         * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
7984         regression from previous patch.
7985
7986 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
7987
7988         PR gcc/35063
7989         * gthr.h: Add __gthread_mutex_destroy as a function that must be
7990         implemented.
7991         * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
7992         * gthr-single.h (__gthread_mutex_destroy): Likewise.
7993         * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
7994         * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
7995         * gthr-nks.h (__gthread_mutex_destroy): Likewise.
7996         * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
7997         * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
7998         (__gthread_mutex_destroy_function): Rename to
7999         __gthread_mutex_destroy.
8000         * gthr-dce.h (__gthread_mutex_destroy): Call
8001         pthread_mutex_destroy.
8002         * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
8003         * gthr-posix.h (__gthread_mutex_destroy): Likewise.
8004         * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
8005
8006 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
8007
8008         * df-scan.c (df_ref_chain_change_bb): Simplify.
8009         (df_insn_change_bb): Add new_bb argument.  Simplify.  Call
8010         set_block_for_insn if there's any change.
8011         * df.h ((df_insn_change_bb): Fix prototype.
8012         * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
8013         df_insn_change_bb, don't call set_block_for_insn.
8014         * emit-rtl.c (reorder_insns): Likewise.
8015         * haifa-sched.c (move_insn): Likewise.
8016
8017 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
8018
8019         * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
8020
8021 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
8022
8023         * tree-flow-inline.h (next_readonly_imm_use): Return
8024         NULL_USE_OPERAND_P after the end.
8025
8026 2008-03-01  Richard Guenther  <rguenther@suse.de>
8027
8028         PR tree-optimization/35411
8029         * tree-sra.c (sra_build_assignment): Split conversion to
8030         final type to a separate statement if we are not assigning
8031         to a register.
8032
8033 2008-02-29  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
8034
8035         * fold-const.c (fold_convertible_p): Correct the logic to follow
8036         that in fold_convert().
8037
8038 2008-02-29  Douglas Gregor  <doug.gregor@gmail.com>
8039
8040         PR c++/35315
8041         * tree-inline.c (build_duplicate_type): When we make a
8042         duplicate type, make it unique in the canonical types system.
8043
8044 2008-02-29  Tom Tromey  <tromey@redhat.com>
8045
8046         * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
8047         input_file_stack_history, input_file_stack_restored): Remove.
8048         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
8049         * input.h (struct file_stack): Remove.
8050         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
8051         (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
8052         Likewise.
8053         * diagnostic.h (struct diagnostic_context) <last_module>: Change
8054         type.
8055         (diagnostic_last_module_changed): Add 'map' argument.
8056         (diagnostic_set_last_function): Likewise.
8057         * diagnostic.c (undiagnostic_report_current_module): Iterate using
8058         line map, not input_file_stack.
8059         * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
8060
8061 2008-02-29  Paul Brook  <paul@codesourcery.com>
8062
8063         * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
8064
8065 2008-02-29  Paul Brook  <paul@codesourcery.com>
8066
8067         * config/arm/ieee754-df.S (muldf3): Use RET macros.
8068
8069 2008-02-29  Richard Guenther  <rguenther@suse.de>
8070
8071         * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
8072         vn_lookup_or_add.
8073         * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
8074         value for comparing for a store match.
8075         (simplify_unary_expression): Do nothing for SSA_NAMEs.
8076         (try_to_simplify): Do not do a full-blown reference lookup.
8077
8078 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
8079
8080         * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
8081         (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
8082
8083         * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
8084
8085 2008-02-29  Sebastian Pop  <sebastian.pop@amd.com>
8086
8087         * tree-loop-linear.c (try_interchange_loops): Compare memory access
8088         strides against cache sizes.
8089
8090 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
8091
8092         * config/sh/sh.c (sh_secondary_reload): Handle loading a float
8093         constant to fpul.
8094
8095 2008-02-28  Richard Sandiford  <rsandifo@nildram.co.uk>
8096
8097         * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
8098         of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
8099         is smaller than the original promoted value.
8100         (simplify_subreg): If OP is a SUBREG, try to preserve its
8101         SUBREG_PROMOTED_VAR_P information.
8102
8103 2008-02-28  Steven Bosscher  <stevenb.gcc@gmail.com>
8104
8105         * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
8106         (VN_INFO_GET): Allocate new objects on the obstack.
8107         (init_scc_vn): Initialize the obstack.  Use XDELETE instead of free
8108         for rpo_numbers_temp, for consistency.
8109         (free_scc_vn): Free the obstack.
8110
8111 2008-02-28  Sebastian Pop  <sebastian.pop@amd.com>
8112
8113         * doc/invoke.texi: Document -ftree-loop-distribution.
8114         * tree-loop-distribution.c: New.
8115         * tree-pass.h (pass_loop_distribution): New.
8116         * graphds.h (struct graph): Add htab_t indices.
8117         * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
8118         * tree-vectorizer.c (rename_variables_in_loop): Extern.
8119         (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
8120         * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
8121         * tree-data-ref.c (debug_data_dependence_relations): New.
8122         (dump_data_dependence_relation): Also print data references.
8123         (free_data_ref): Extern.
8124         (same_access_functions): Moved...
8125         (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
8126         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
8127         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
8128         struct rdg_vertex_info, rdg_vertex_for_stmt): New.
8129         (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
8130         (stmts_from_loop): Skip LABEL_EXPR.
8131         (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
8132         New.
8133         (build_rdg): Initialize rdg->indices htab.
8134         (free_rdg, stores_from_loop, ref_base_address,
8135         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
8136         have_similar_memory_accesses_1, ref_base_address_1,
8137         remove_similar_memory_refs): New.
8138         * tree-data-ref.h: Depend on tree-chrec.h.
8139         (debug_data_dependence_relations, free_data_ref): Declared.
8140         (same_access_functions): ... here.
8141         (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
8142         New.
8143         (struct rdg_vertex): Add has_mem_write and has_mem_reads.
8144         (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
8145         RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
8146         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
8147         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
8148         rdg_vertex_for_stmt): Declared.
8149         (struct rdg_edge): Add level.
8150         (RDGE_LEVEL): New.
8151         (free_rdg, stores_from_loop, remove_similar_memory_refs,
8152         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
8153         Declared.
8154         (rdg_has_similar_memory_accesses): New.
8155         * tree-vect-analyze.c: Remove unused static decls.
8156         * lambda.h (dependence_level): New.
8157         * common.opt (ftree-loop-distribution): New.
8158         * tree-flow.h (mark_virtual_ops_in_bb, 
8159         slpeel_tree_duplicate_loop_to_edge_cfg,
8160         rename_variables_in_loop): Declared.
8161         * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
8162         (OBJS-common): Add tree-loop-distribution.o.
8163         (tree-loop-distribution.o): New rule.
8164         * tree-cfg.c (mark_virtual_ops_in_bb): New.
8165         (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
8166         * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
8167
8168 2008-02-28  Joseph Myers  <joseph@codesourcery.com>
8169
8170         PR target/33963
8171         * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
8172         other than structures and unions.
8173
8174 2008-02-28  Richard Guenther  <rguenther@suse.de>
8175
8176         Revert:
8177         2008-02-26  Richard Guenther  <rguenther@suse.de>
8178
8179         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
8180         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
8181         (lookup_decl_from_uid): Declare.
8182         (remove_decl_from_map): Likewise.
8183         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
8184         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
8185         (decl_for_uid_map): New global hashtable mapping DECL_UID
8186         to the decl tree.
8187         (init_ttree): Allocate it.
8188         (insert_decl_to_uid_decl_map): New helper function.
8189         (make_node_stat): Insert new decls into the map.
8190         (copy_node_stat): Likewise.
8191         (lookup_decl_from_uid): New function.
8192         (remove_decl_from_map): Likewise.
8193         (print_decl_for_uid_map_statistics): New helper.
8194         (dump_tree_statistics): Call it.
8195
8196         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
8197         (referenced_var_iterator): Adjust.
8198         (FOR_EACH_REFERENCED_VAR): Adjust.
8199         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
8200         (num_referenced_vars): Adjust.
8201         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
8202         (first_referenced_var): Remove.
8203         (end_referenced_vars_p): Likewise.
8204         (next_referenced_var): Likewise.
8205         (referenced_var_iterator_set): New helper function.
8206         * tree-dfa.c (referenced_var_lookup): Adjust.
8207         (referenced_var_check_and_insert): Likewise.
8208         (remove_referenced_var): Likewise.
8209         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
8210         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
8211         (verify_call_clobbering): Likewise.
8212         (verify_memory_partitions): Likewise.
8213         (init_tree_ssa): Allocate bitmap instead of hashtable for
8214         referenced_vars.
8215         (delete_tree_ssa): Adjust.
8216         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
8217         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
8218         (compute_tag_properties): Likewise.
8219         (set_initial_properties): Likewise.
8220         (find_partition_for): Likewise.
8221         (update_reference_counts): Likewise.
8222         (dump_may_aliases_for): Likewise.
8223         * tree-ssa-operands.c (add_virtual_operand): Likewise.
8224         (add_call_clobber_ops): Likewise.
8225         (add_call_read_ops): Likewise.
8226         (get_asm_expr_operands): Likewise.
8227         * tree-into-ssa.c (dump_decl_set): Likewise.
8228         (update_ssa): Likewise.
8229         * tree-sra.c (scan_function): Likewise.
8230         (decide_instantiations): Likewise.
8231         (scalarize_parms): Likewise.
8232         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
8233         (dsa_named_for): Likewise.
8234         * tree-ssa-structalias.c (update_alias_info): Likewise.
8235         (merge_smts_into): Likewise.
8236
8237 2008-02-27  David Daney  <ddaney@avtrex.com>
8238
8239         PR target/34409
8240         * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
8241         * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
8242         * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
8243         * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
8244         * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
8245
8246 2008-02-27  Uros Bizjak  <ubizjak@gmail.com>
8247
8248         PR target/25477
8249         * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
8250         (BUILT_IN_NEXTTOWARD): Remove.
8251         (BUILT_IN_NEXTTOWARDF): Ditto.
8252         * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
8253         alloca/strcpy/strcat.  Remove commented-out code.  Fix whitespace.
8254
8255 2008-02-27  Tom Tromey  <tromey@redhat.com>
8256
8257         * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
8258         DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
8259
8260 2008-02-27  Jan Beulich  <jbeulich@novell.com>
8261
8262         * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
8263         update the respective field on newdecl.
8264
8265 2008-02-27  Revital Eres  <eres@il.ibm.com>
8266
8267         PR rtl-optimization/34999
8268         * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
8269         crossing edges that ends with a call insn.
8270         (fix_up_fall_thru_edges): Handle crossing edges that ends with a
8271         call insn and clear the EDGE_CROSSING flag of the crossing edge
8272         when fixing fallthru edges.
8273
8274 2008-02-27  Richard Guenther  <rguenther@suse.de>
8275
8276         PR middle-end/35390
8277         * fold-const.c (fold_unary): Return the correct argument,
8278         converted to the result type.
8279
8280 2008-02-27  Richard Guenther  <rguenther@suse.de>
8281
8282         PR middle-end/34971
8283         * expr.c (expand_expr_real_1): Assert on rotates that operate
8284         on partial modes.
8285         * fold-const.c (fold_binary): Use the types precision, not the
8286         bitsize of the mode if folding rotate expressions.  Build rotates
8287         only for full modes.
8288
8289 2008-02-27  Jakub Jelinek  <jakub@redhat.com>
8290
8291         * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
8292         and CPP_PRAGMA_EOL.
8293         * c-pragma.c (pragma_ns_name): New typedef.
8294         (registered_pp_pragmas): New variable.
8295         (c_pp_lookup_pragma): New function.
8296         (c_register_pragma_1): If flag_preprocess_only, do nothing
8297         for non-expanded pragmas, for expanded ones push pragma's
8298         namespace and name into registered_pp_pragmas vector.
8299         (c_invoke_pragma_handler): Register OpenMP pragmas even when
8300         flag_preprocess_only, don't register GCC pch_preprocess
8301         pragma if flag_preprocess_only.
8302         * c-opts.c (c_common_init): Call init_pragma even if
8303         flag_preprocess_only.
8304         * c-pragma.c (c_pp_lookup_pragma): New prototype.
8305         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
8306         cpp_register_pragma if flag_preprocess_only.
8307
8308 2008-02-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8309
8310         PR c/28800
8311         * c-parser.c (c_parser_translation_unit): Warn for empty
8312         translation unit, not empty source file.
8313
8314 2008-02-26  Paul Brook  <paul@codesourcery.com>
8315
8316         * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
8317         operand for Thumb-2.
8318         * config/arm/arm.h (reg_class): Add CORE_REGS.
8319         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
8320         (BASE_REG_CLASS): Use CORE_REGS.
8321         (PREFERRED_RELOAD_CLASS): Add STACK_REG.
8322         (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
8323         (REGNO_OK_FOR_INDEX_P): Exclude SP.
8324         (ARM_REG_OK_FOR_INDEX_P): Always define.  Use
8325         ARM_REGNO_OK_FOR_INDEX_P.
8326         (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
8327         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
8328         arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
8329         (ldm/stm peepholes): Ditto.
8330         * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
8331         * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
8332         * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
8333         * config/arm/constraints.md: Enable "k" constraint on ARM.
8334
8335 2008-02-27  Ben Elliston  <bje@au.ibm.com>
8336
8337         * config/rs6000/rs6000.c: Annotate cache line size field in all
8338         instances of struct processor_costs.
8339
8340 2008-02-26  David Edelsohn  <edelsohn@gnu.org>
8341
8342         * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
8343         dse2, gcse, if_conversion, if_after_combine, if_after_reload,
8344         jump_bypass): New counters.
8345         * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
8346         * dce.c (gate_ud_dce): Same.
8347         (gate_fast_dce): Same.
8348         * dse.c (gate_dse1): New function.
8349         (gate_dse2): New function.
8350         (gate_dse): Merge results of new gate functions.
8351         * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
8352         (gate_handle_jump_bypass): Add dbg_cnt.
8353         (gate_handle_gcse): Add dbg_cnt.
8354         * ifcvt.c (gate_handle_if_conversion): Same.
8355         (gate_handle_if_after_combine): Same.
8356         (gate_handle_if_after_reload): Same.
8357         * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
8358
8359 2008-02-26  Edmar Wienskoski  <edmar@freescale.com>
8360
8361         * config/rs6000/rs6000.c (processor_costs): Update e300 cache
8362         line sizes.
8363         * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
8364
8365 2008-02-26  Jason Merrill  <jason@redhat.com>
8366
8367         PR c++/35315
8368         * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE 
8369         alone if it's the naming decl for the type's main variant.
8370
8371 2008-02-26  Tom Tromey  <tromey@redhat.com>
8372
8373         * system.h (USE_MAPPED_LOCATION): Poison.
8374         * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
8375         * tree-cfg.c (make_cond_expr_edges): Remove old location code.
8376         (make_goto_expr_edges): Likewise.
8377         (remove_bb): Likewise.
8378         (execute_warn_function_return): Likewise.
8379         * basic-block.h (struct edge_def) <goto_locus>: Change type to
8380         location_t.
8381         * c-common.c (fname_decl): Remove old location code.
8382         * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
8383         location code.
8384         * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
8385         variant.
8386         (ASM_INPUT_SOURCE_LOCATION): Likewise.
8387         (gen_rtx_ASM_INPUT): Likewise.
8388         (gen_rtx_ASM_INPUT_loc): Likewise.
8389         (get_rtx_asm_OPERANDS): Remove.
8390         * cfglayout.c (insn_locators_alloc): Remove old location code.
8391         (set_curr_insn_source_location): Likewise.
8392         (curr_insn_locator): Likewise.
8393         * print-tree.c (print_node): Remove old location code.
8394         * tree-mudflap.c (mf_varname_tree): Remove old location code.
8395         (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
8396         * cfgexpand.c (expand_gimple_cond_expr): Don't use
8397         location_from_locus.
8398         (construct_exit_block): Remove old location code.
8399         * emit-rtl.c (force_next_line_note): Remove old location code.
8400         * profile.c (branch_prob): Remove old location code.
8401         * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
8402         LOC_LINE): Remove old-location variants.
8403         * langhooks.c (lhd_print_error_function): Remove old location
8404         code.
8405         * configure, config.in: Rebuilt.
8406         * configure.ac (--enable-mapped-location): Remove.
8407         * c-decl.c (c_init_decl_processing): Remove old location code.
8408         (finish_function): Likewise.
8409         * recog.c (decode_asm_operands): Remove old location code.
8410         * c-pch.c (c_common_read_pch): Remove old location code.
8411         * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
8412         variants.
8413         * gimple-low.c (lower_function_body): Remove old location code.
8414         * toplev.c (unknown_location): Remove.
8415         (push_srcloc): Remove old-location variant.
8416         (process_options): Remove old location code.
8417         (lang_dependent_init): Likewise.
8418         * input.h (UNKNOWN_LOCATION): Move definition.
8419         (location_t): Undeprecate.
8420         (source_locus): Remove.
8421         (location_from_locus): Remove.
8422         (struct location_s): Remove.
8423         Remove all old-location code.
8424         (input_line, input_filename): Remove.
8425         * final.c (final_scan_insn): Remove old location code.
8426         * diagnostic.c (diagnostic_build_prefix): Remove
8427         USE_MAPPED_LOCATION test.
8428         * tree.h (gimple_stmt) <locus>: Now a location_t.
8429         (tree_exp) <locus>: Likewise.
8430         (DECL_IS_BUILTIN): Remove old-location variant.
8431         (annotate_with_file_line, annotate_with_locus): Likewise.
8432         (expr_locus, set_expr_locus): Update.
8433         * tree.c (build1_stat): Remove old location code.
8434         (last_annotated_node): Remove.
8435         (annotate_with_file_line): Remove old-location variant.
8436         (annotate_with_locus): Likewise.
8437         (expr_location): Remove old location code.
8438         (set_expr_location): Likewise.
8439         (expr_has_location): Likewise.
8440         (expr_locus): Likewise.
8441         (set_expr_locus): Likewise.
8442         (expr_filename): Don't use location_from_locus.
8443         (expr_lineno): Likewise.
8444         * rtl-error.c (location_for_asm): Remove old location code.
8445         * c-lex.c (cb_line_change): Remove old location code.
8446         (fe_file_change): Likewise.
8447         (cb_def_pragma): Likewise.
8448         (c_lex_with_flags): Likewise.
8449         * gengtype.c (do_typedef): Don't special-case location types.
8450         (define_location_structures): Remove.
8451         (main): Don't call define_location_structures.
8452         * tree-pretty-print.c (dump_implicit_edges): Remove old location
8453         code.
8454
8455 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
8456
8457         PR 26264
8458         * builtins.def (BUILT_IN_STDARG_START): Remove.
8459         * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
8460         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
8461         * tree-inline.c (inline_forbidden_p_1): Likewise.
8462         
8463 2008-02-26  Richard Guenther  <rguenther@suse.de>
8464
8465         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
8466         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
8467         (lookup_decl_from_uid): Declare.
8468         (remove_decl_from_map): Likewise.
8469         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
8470         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
8471         (decl_for_uid_map): New global hashtable mapping DECL_UID
8472         to the decl tree.
8473         (init_ttree): Allocate it.
8474         (insert_decl_to_uid_decl_map): New helper function.
8475         (make_node_stat): Insert new decls into the map.
8476         (copy_node_stat): Likewise.
8477         (lookup_decl_from_uid): New function.
8478         (remove_decl_from_map): Likewise.
8479         (print_decl_for_uid_map_statistics): New helper.
8480         (dump_tree_statistics): Call it.
8481
8482         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
8483         (referenced_var_iterator): Adjust.
8484         (FOR_EACH_REFERENCED_VAR): Adjust.
8485         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
8486         (num_referenced_vars): Adjust.
8487         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
8488         (first_referenced_var): Remove.
8489         (end_referenced_vars_p): Likewise.
8490         (next_referenced_var): Likewise.
8491         (referenced_var_iterator_set): New helper function.
8492         * tree-dfa.c (referenced_var_lookup): Adjust.
8493         (referenced_var_check_and_insert): Likewise.
8494         (remove_referenced_var): Likewise.
8495         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
8496         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
8497         (verify_call_clobbering): Likewise.
8498         (verify_memory_partitions): Likewise.
8499         (init_tree_ssa): Allocate bitmap instead of hashtable for
8500         referenced_vars.
8501         (delete_tree_ssa): Adjust.
8502         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
8503         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
8504         (compute_tag_properties): Likewise.
8505         (set_initial_properties): Likewise.
8506         (find_partition_for): Likewise.
8507         (update_reference_counts): Likewise.
8508         (dump_may_aliases_for): Likewise.
8509         * tree-ssa-operands.c (add_virtual_operand): Likewise.
8510         (add_call_clobber_ops): Likewise.
8511         (add_call_read_ops): Likewise.
8512         (get_asm_expr_operands): Likewise.
8513         * tree-into-ssa.c (dump_decl_set): Likewise.
8514         (update_ssa): Likewise.
8515         * tree-sra.c (scan_function): Likewise.
8516         (decide_instantiations): Likewise.
8517         (scalarize_parms): Likewise.
8518         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
8519         (dsa_named_for): Likewise.
8520         * tree-ssa-structalias.c (update_alias_info): Likewise.
8521         (merge_smts_into): Likewise.
8522
8523 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
8524
8525         PR 34351
8526         * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
8527         * c-opts.c (c_common_handle_option): Wall enables
8528         Wvolatile-register-var.
8529         * common.opt: Move Wvolatile-register-var to...
8530         * c.opt: ...here.
8531         
8532 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
8533
8534         * common.opt (Wlarger-than=): New.
8535         * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
8536         -Wlarger-than=.
8537         * opts.c (common_handle_option): Handle -Wlarger-than=.
8538         * optc-gen.awk: Likewise.
8539         * opth-gen.awk: Likewise.
8540         * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
8541         * tree-optimize.c (tree_rest_of_compilation): Likewise.
8542         
8543 2008-02-26  Manuel Lopez-Ibanez <manu@gcc.gnu.org>
8544
8545         * c-common.c (match_case_to_enum_1): Add appropriate
8546         OPT_W* parameter to warning.
8547         (c_do_switch_warnings): Likewise.
8548         * c-typeck.c (warning_init): Add one more parameter following
8549         'warning' function.
8550         (push_init_level): Update call to warning_init.
8551         (pop_init_level): Likewise.
8552         (add_pending_init): Likewise.
8553         (output_init_element: Likewise.
8554
8555 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
8556
8557         PR 28322
8558         * toplev.c (toplev_main): If there are warnings or error, print
8559         errors for ignored options.
8560         * opts.c (ignored_options): New static variable.
8561         (postpone_unknown_option_error): New.
8562         (print_ignored_options): New.
8563         (handle_option): Postpone errors for unknown -Wno-* options.
8564         * opts.h (print_ignored_options): Declare.
8565         
8566 2008-02-25  Richard Sandiford  <rsandifo@nildram.co.uk>
8567
8568         * config/mips/mips.md (loadgp_blockage, blockage): Change type
8569         to "ghost".
8570
8571 2008-02-25  Richard Guenther  <rguenther@suse.de>
8572
8573         Revert:
8574         2008-02-25  Richard Guenther  <rguenther@suse.de>
8575
8576         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
8577         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
8578         (lookup_decl_from_uid): Declare.
8579         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
8580         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
8581         (decl_for_uid_map): New global hashtable mapping DECL_UID
8582         to the decl tree.
8583         (init_ttree): Allocate it.
8584         (insert_decl_to_uid_decl_map): New helper function.
8585         (make_node_stat): Insert new decls into the map.
8586         (copy_node_stat): Likewise.
8587         (lookup_decl_from_uid): New function.
8588         (print_decl_for_uid_map_statistics): New helper.
8589         (dump_tree_statistics): Call it.
8590
8591         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
8592         (referenced_var_iterator): Adjust.
8593         (FOR_EACH_REFERENCED_VAR): Adjust.
8594         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
8595         (num_referenced_vars): Adjust.
8596         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
8597         (first_referenced_var): Remove.
8598         (end_referenced_vars_p): Likewise.
8599         (next_referenced_var): Likewise.
8600         (referenced_var_iterator_set): New helper function.
8601         * tree-dfa.c (referenced_var_lookup): Adjust.
8602         (referenced_var_check_and_insert): Likewise.
8603         (remove_referenced_var): Likewise.
8604         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
8605         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
8606         (verify_call_clobbering): Likewise.
8607         (verify_memory_partitions): Likewise.
8608         (init_tree_ssa): Allocate bitmap instead of hashtable for
8609         referenced_vars.
8610         (delete_tree_ssa): Adjust.
8611         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
8612         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
8613         (compute_tag_properties): Likewise.
8614         (set_initial_properties): Likewise.
8615         (find_partition_for): Likewise.
8616         (update_reference_counts): Likewise.
8617         (dump_may_aliases_for): Likewise.
8618         * tree-ssa-operands.c (add_virtual_operand): Likewise.
8619         (add_call_clobber_ops): Likewise.
8620         (add_call_read_ops): Likewise.
8621         (get_asm_expr_operands): Likewise.
8622         * tree-into-ssa.c (dump_decl_set): Likewise.
8623         (update_ssa): Likewise.
8624         * tree-sra.c (scan_function): Likewise.
8625         (decide_instantiations): Likewise.
8626         (scalarize_parms): Likewise.
8627         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
8628         (dsa_named_for): Likewise.
8629         * tree-ssa-structalias.c (update_alias_info): Likewise.
8630         (merge_smts_into): Likewise.
8631
8632 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
8633
8634         PR fortran/29549
8635         * doc/invoke.texi (-fcx-limited-range): Document new option.
8636         * toplev.c (process_options): Handle -fcx-fortran-rules.
8637         * common.opt: Add documentation for -fcx-fortran-rules.
8638
8639 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
8640
8641         PR c/35162
8642         * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
8643         actual behaviour and C99.
8644         
8645 2008-02-26  Ben Elliston  <bje@au.ibm.com>
8646
8647         * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
8648         (ASM_CPU_POWER6_SPEC): Likewise.
8649         (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
8650         Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
8651         (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
8652
8653 2008-02-25  Richard Guenther  <rguenther@suse.de>
8654
8655         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
8656         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
8657         (lookup_decl_from_uid): Declare.
8658         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
8659         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
8660         (decl_for_uid_map): New global hashtable mapping DECL_UID
8661         to the decl tree.
8662         (init_ttree): Allocate it.
8663         (insert_decl_to_uid_decl_map): New helper function.
8664         (make_node_stat): Insert new decls into the map.
8665         (copy_node_stat): Likewise.
8666         (lookup_decl_from_uid): New function.
8667         (print_decl_for_uid_map_statistics): New helper.
8668         (dump_tree_statistics): Call it.
8669
8670         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
8671         (referenced_var_iterator): Adjust.
8672         (FOR_EACH_REFERENCED_VAR): Adjust.
8673         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
8674         (num_referenced_vars): Adjust.
8675         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
8676         (first_referenced_var): Remove.
8677         (end_referenced_vars_p): Likewise.
8678         (next_referenced_var): Likewise.
8679         (referenced_var_iterator_set): New helper function.
8680         * tree-dfa.c (referenced_var_lookup): Adjust.
8681         (referenced_var_check_and_insert): Likewise.
8682         (remove_referenced_var): Likewise.
8683         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
8684         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
8685         (verify_call_clobbering): Likewise.
8686         (verify_memory_partitions): Likewise.
8687         (init_tree_ssa): Allocate bitmap instead of hashtable for
8688         referenced_vars.
8689         (delete_tree_ssa): Adjust.
8690         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
8691         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
8692         (compute_tag_properties): Likewise.
8693         (set_initial_properties): Likewise.
8694         (find_partition_for): Likewise.
8695         (update_reference_counts): Likewise.
8696         (dump_may_aliases_for): Likewise.
8697         * tree-ssa-operands.c (add_virtual_operand): Likewise.
8698         (add_call_clobber_ops): Likewise.
8699         (add_call_read_ops): Likewise.
8700         (get_asm_expr_operands): Likewise.
8701         * tree-into-ssa.c (dump_decl_set): Likewise.
8702         (update_ssa): Likewise.
8703         * tree-sra.c (scan_function): Likewise.
8704         (decide_instantiations): Likewise.
8705         (scalarize_parms): Likewise.
8706         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
8707         (dsa_named_for): Likewise.
8708         * tree-ssa-structalias.c (update_alias_info): Likewise.
8709         (merge_smts_into): Likewise.
8710
8711 2008-02-25  Andreas Krebbel  <krebbel1@de.ibm.com>
8712
8713         PR target/35258
8714         * cse.c (cse_insn): Avoid creation of overlapping MEMs.
8715         * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
8716         * alias.h (nonoverlapping_memrefs_p): Likewise.
8717
8718 2008-02-25  Jan Beulich  <jbeulich@novell.com>
8719
8720         * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
8721         * config/i386/netware-libgcc.exp: Add __bswap?i2,
8722         __emultls_get_address, __emultls_register_common,
8723         __floatundi?f, and _Unwind_GetIPInfo.
8724         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
8725         Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
8726         (gen_regparm_prefix): Likewise.
8727         (i386_nlm_encode_section_info): Sync with
8728         config/i386/winnt.c:i386_pe_encode_section_info().
8729         (i386_nlm_maybe_mangle_decl_assembler_name): New.
8730         i386_nlm_mangle_decl_assembler_name): New.
8731         (netware_override_options): New.
8732         * config/i386/netware.h (netware_override_options): Declare.
8733         (OVERRIDE_OPTIONS): Re-define to netware_override_options.
8734         (i386_nlm_mangle_decl_assembler_name): Declare.
8735         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
8736
8737 2008-02-25  Ben Elliston  <bje@au.ibm.com>
8738
8739         PR other/32948
8740         * c-decl.c (grokdeclarator): Remove unused local variables
8741         `typedef_type' and `type_as_written'.
8742         * bb-reorder.c
8743         (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
8744         unused local variable `has_hot_blocks'.
8745         (fix_crossing_conditional_branches): Remove unused local variable
8746         `prev_bb'.
8747         
8748 2008-02-25  Uros Bizjak  <ubizjak@gmail.com>
8749
8750         PR middle-end/19984
8751         * builtins.def (BUILT_IN_NAN): Define as c99 builtin
8752         using DEF_C99_BUILTIN.
8753         (BUILT_IN_NANF): Ditto.
8754         (BUILT_IN_NANL): Ditto.
8755
8756 2008-02-25  Ayal Zaks  <zaks@il.ibm.com>
8757             Revital Eres  <eres@il.ibm.com>
8758
8759         * modulo-sched.c (calculate_must_precede_follow): Address TODO
8760         regarding the order of two dependent insns in the same row.
8761
8762 2008-02-25  Eric Botcazou  <ebotcazou@adacore.com>
8763
8764         * stor-layout.c (layout_decl): Do not bump the alignment of a
8765         bit-field to more than byte alignment if it is packed.
8766
8767 2008-02-24  David Edelsohn  <edelsohn@gnu.org>
8768
8769         * config/rs6000/rs6000.c (processor_costs): Add cache costs for
8770         e300c2 and e300c3.
8771
8772 2008-02-24  Diego Novillo  <dnovillo@google.com>
8773
8774         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
8775
8776         PR 33738
8777         * tree-vrp.c (vrp_evaluate_conditional): With
8778         -Wtype-limits, emit a warning when comparing against a
8779         constant outside the natural range of OP0's type.
8780         * c.opt (Wtype-limits): Move ...
8781         * common.opt (Wtype-limits): ... here.
8782
8783 2008-02-24  Edmar Wienskoski  <edmar@freescale.com>
8784
8785         * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
8786         * config/rs6000/e300c2c3.md: New file.
8787         * config/rs6000/rs6000.c (processor_costs): Add new costs for
8788         e300c2 and e300c3.
8789         (rs6000_override_options): Add e300c2 and e300c3 cases to
8790         processor_target_table. Do not allow usage of Altivec or Spe
8791         with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
8792         (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
8793         * config/rs6000/rs6000.h (processor_type): Add
8794         PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
8795         (ASM_CPU_SPEC): Add e300c2 and e300c3.
8796         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
8797         and ppce300c3. Include e300c2c3.md.
8798
8799 2008-02-23  David Edelsohn  <edelsohn@gnu.org>
8800
8801         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
8802         instead of TARGET_STRICT_ALIGN.
8803
8804 2008-02-23  Joseph Myers  <joseph@codesourcery.com>
8805
8806         * explow.c (memory_address): Assert that the generated address is
8807         valid.
8808
8809 2008-02-23  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
8810
8811         PR target/25477
8812         * config/darwin-protos.h: Add darwin_patch_builtins prototype.
8813         * config/darwin-ppc-ldouble-patch.def: New file.
8814         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
8815         * config/rs6000/rs6000.c (rs6000_init_builtins): Call
8816         SUBTARGET_INIT_BUILTINS if defined.
8817         * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
8818         New functions.
8819
8820 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
8821
8822         PR rtl-opt/33512
8823         * simplify-rtx.c (simplify_binary_operation_1): Add simplification
8824         of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
8825
8826 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
8827
8828         PR pch/35027
8829         * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
8830         file" warning condtional on -Winvalid-PCH.
8831
8832 2008-02-23  Daniel Jacobowitz  <dan@codesourcery.com>
8833
8834         * expmed.c (extract_bit_field): Always use adjust_address for MEM.
8835
8836 2008-02-23  Uros Bizjak  <ubizjak@gmail.com>
8837
8838         PR target/22076
8839         PR target/34256 
8840         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
8841         prevent reload from using MMX registers.
8842         (*mov<mode>_internal): Ditto.
8843         (*movv2sf_internal_rex64): Ditto.
8844         (*movv2sf_internal): Ditto.
8845
8846 2008-02-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8847
8848         PR documentation/31569
8849         * doc/install.texi2html: Use makeinfo --no-number-sections.
8850
8851 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
8852
8853         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
8854         ensure that we can address an entire entity > 8 bytes.  Don't
8855         generate reg+reg addressing for such data.
8856
8857 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
8858
8859         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
8860         strings when optimizing for size, unless the target cares about
8861         alignment.
8862
8863 2008-02-22  Tom Tromey  <tromey@redhat.com>
8864
8865         * regclass.c (current_pass): Remove declaration.
8866
8867 2008-02-22  Anatoly Sokolov <aesok@post.ru>
8868
8869         * config/avr/libgcc.S (__RAMPZ__): Define.
8870         (__do_copy_data): Add for devices with 128KB code memory.
8871
8872 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
8873
8874         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
8875         Use spe_abi.
8876         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
8877
8878 2008-02-22  Hans-Peter Nilsson  <hp@axis.com>
8879
8880         * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
8881         GENNONACR_REGS.
8882
8883 2008-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8884
8885         PR c/19999
8886         * c-typeck.c (build_binary_op): Warn about floating point
8887         comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
8888
8889 2008-02-21  Janis Johnson  <janis187@us.ibm.com>
8890
8891         PR target/34526
8892         * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
8893         (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
8894         add vrsave.
8895         (rs6000_override_options): Set altivec_abi as default, not override,
8896         for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
8897         TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
8898         is used; use new member spe_abi.
8899         (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
8900         spe_abi and altivec_abi.
8901
8902 2008-02-22  Tomas Bily  <tbily@suse.cz>
8903
8904         * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
8905
8906 2008-02-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8907
8908         PR bootstrap/35273
8909         * config.build (build_file_translate): Set to `CMD //c' only if
8910         it works.
8911         * Makefile.in (build_file_translate): Improve comment.
8912
8913 2008-02-21  Jan Hubicka  <jh@suse.cz>
8914
8915         * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
8916         PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
8917         PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
8918
8919 2008-02-21  Michael Matz  <matz@suse.de>
8920
8921         PR target/35264
8922         * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
8923
8924 2008-02-21  Uros Bizjak  <ubizjak@gmail.com>
8925
8926         * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
8927         movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
8928         as insn constraint.
8929         * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
8930         from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
8931         SSE_VEC_FLOAT_MODE_P as insn constraint.
8932         (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
8933         (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
8934         sse4a_movntdf using MODEF mode iterator.
8935         (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
8936         sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
8937         (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
8938         (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
8939         (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
8940         (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
8941         (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
8942
8943 2008-02-21  Richard Guenther  <rguenther@suse.de>
8944
8945         * tree.def (PAREN_EXPR): New tree code.
8946         * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
8947         and PAREN_EXPR.
8948         * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
8949         * expr.c (expand_expr_real_1): Likewise.
8950         * tree-inline.c (estimate_num_insns_1): Likewise.
8951         * tree-complex.c (expand_complex_move): Likewise.
8952         * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
8953         as plain x.
8954
8955 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
8956
8957         PR target/35225
8958         * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
8959
8960 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
8961
8962         PR target/35190
8963         * config/sh/sh.md (jump_compact): Disable for crossing jumps.
8964
8965         * config/sh/sh.c (find_barrier): Don't go past
8966         NOTE_INSN_SWITCH_TEXT_SECTIONS note.
8967
8968 2008-02-20  DJ Delorie  <dj@redhat.com>
8969
8970         * config/h8300/h8300.md (insv): Force source operand to be a register.
8971
8972         * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
8973         as a jump, not as a plain insn.
8974         
8975 2008-02-20  Seongbae Park <seongbae.park@gmail.com>
8976
8977         * doc/invoke.texi (Warning Options): Add new option
8978         -Wframe-larger-than=.
8979         (-Wframe-larger-than): Document.
8980
8981         * flags.h (warn_frame_larger_than, frame_larger_than_size):
8982         Add declarations for new option variables.
8983
8984         * final.c (final_start_function): Check the frame size
8985         before emission and issue a Wframe-larger-than warning.
8986
8987         * opts.c (warn_frame_larger_than, frame_larger_than_size):
8988         Add definitions for new option variables.
8989         (common_handle_option): Handle new option OPT_Wframe_larger_than_.
8990
8991         * common.opt (Wframe-larger-than=): New option.
8992
8993 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
8994
8995         * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
8996         (<sse>_div<mode>3): Ditto.
8997         (<sse>_vmdiv<mode>3): Ditto.
8998         (<sse>_vmsqrt<mode>2): Ditto.
8999         (*smax<mode>3): Ditto.
9000         (sse5_frcz<mode>2): Ditto.
9001         (sse5_vmfrcz<mode>2): Ditto.  Use TARGET_SSE5 instead of TARGET_ROUND
9002         as insn constraint.
9003
9004 2008-02-20  Richard Guenther  <rguenther@suse.de>
9005
9006         PR middle-end/35265
9007         * builtins.c (validate_arg): If we want an INTEGER_TYPE,
9008         be happy with INTEGRAL_TYPE_P.
9009
9010 2008-02-20  Richard Guenther  <rguenther@suse.de>
9011
9012         * fold-const.c (split_tree): Associate floatig-point expressions
9013         if flag_associative_math is set.
9014
9015 2008-02-20  Richard Guenther  <rguenther@suse.de>
9016
9017         * tree.h (fold_real_zero_addition_p): Declare.
9018         * fold-const.c (fold_real_zero_addition_p): Export.
9019         * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
9020         floating-point operations with zero and one.
9021
9022 2008-02-20  Paolo Bonzini  <bonzini@gnu.org>
9023
9024         * doc/install.texi: Correct references to CFLAGS, replacing them
9025         with BOOT_CFLAGS.  Document flags used during bootstrap for
9026         target libraries.
9027                                 
9028 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
9029
9030         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
9031         * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
9032         and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
9033         insn constraint.
9034         (smin<mode>3): Ditto from similar patterns.
9035         (smax<mode>3): Ditto.
9036         (*ieee_smin<mode>3): Ditto.
9037         (*ieee_smax<mode>3): Ditto.
9038         * config/i386/sse.md (sse): New mode attribute.
9039         (mov<mode>): Macroize expander from movv4sf and movv2df using
9040         SSEMODEF2P mode iterator.
9041         (<sse>_movnt<mode>): Ditto from similar patterns. Use
9042         SSE_VEC_FLOAT_MODE_P as insn constraint.
9043         (storent<mode>): Ditto.
9044         (storent<mode>): Macroize expander from storentsf and storentdf using
9045         MODEF mode iterator.
9046         (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
9047         mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
9048         (abs<mode>2): Ditto from similar patterns.
9049         (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
9050         (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
9051         (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
9052         (<sse>_vmsqrt<mode>2): Ditto.
9053         (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
9054         (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
9055         (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
9056         (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
9057         (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
9058         sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
9059         mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
9060         insn constraint.
9061         (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
9062         iterator and SSE_FLOAT_MODE_P as insn constraint.
9063         (<sse>_ucomi): Ditto from similar patterns.
9064         (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
9065         sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
9066         SSE_VEC_FLOAT_MODE_P as insn constraint.
9067         (vcond<mode>): Ditto from similar patterns.
9068         (and<mode>3, *and<mode>3): Ditto.
9069         (<sse>_nand<mode>3): Ditto.
9070         (ior<mode>3, *ior<mode>3): Ditto.
9071         (xor<mode>3, *xor<mode>3): Ditto.
9072         (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
9073         iterator and SSE_FLOAT_MODE_P as insn constraint.
9074         (*nand<mode>3): Ditto from similar patterns.
9075         (*ior<mode>3): Ditto.
9076         (*xor<mode>3): Ditto.
9077
9078 2008-02-20  Ira Rosen  <irar@il.ibm.com>
9079
9080         * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
9081         vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
9082         vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
9083
9084 2008-02-19  Jan Hubicka  <jh@suse.cz>
9085
9086         * predict.c (tree_bb_level_predictions): Remove variable next
9087         mistakely introduced by previous commit.
9088
9089 2008-02-19  Jan Hubicka  <jh@suse.cz>
9090
9091         * predict.c (predict_paths_leading_to): Rewrite.
9092         (predict_paths_for_bb): New.
9093         (tree_bb_level_predictions): Update call of predict_paths_leading_to.
9094
9095 2008-02-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9096
9097         PR bootstrap/35218
9098         * Makefile.in (build_file_translate): New.
9099         (gcc-vers.texi): Use it for translating $(abs_srcdir).
9100         * config.build (build_file_translate): Set to `CMD //c' on MinGW.
9101         * configure.ac (build_file_translate): Substitute it.
9102         * configure: Regenerate.
9103
9104 2008-02-19  Jan Hubicka  <jh@suse.cz>
9105
9106         PR rtl-optimization/34408
9107         * see.c (see_def_extension_not_merged): Copy subreg so we don't have
9108         invalid sharing.
9109
9110 2008-02-19  Jan Hubicka  <jh@suse.cz>
9111
9112         PR middle-end/28779
9113         * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
9114         call_expr.
9115
9116 2008-02-19  H.J. Lu  <hongjiu.lu@intel.com>
9117
9118         PR Ada/35186
9119         * config/i386/i386-modes.def: Revert the last DI alignment
9120         change until Ada people can look into it.
9121
9122 2008-02-19  Nick Clifton  <nickc@redhat.com>
9123
9124         * opts.c (print_specific_help): Fix typo in --help text.
9125
9126 2008-02-19  Jakub Jelinek  <jakub@redhat.com>
9127
9128         PR target/35239
9129         * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
9130         32-bit inline asm without asm alternatives for host GCC < 3.0.
9131
9132 2008-02-19  Richard Guenther  <rguenther@suse.de>
9133
9134         PR tree-optimization/34989
9135         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
9136         Allow propagation to INDIRECT_REF if we can simplify only.
9137
9138 2008-02-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
9139
9140         * c-common.c (warn_for_collisions_1): Use appropriate option when
9141         warning.
9142
9143 2008-02-19  Nick Clifton  <nickc@redhat.com>
9144
9145         PR other/31349
9146         * opts.c (undocumented_msg): Leave blank unless checking is enabled.
9147         (handle_options): Fix indentation.
9148         (print_filtered_help): If no language-specific options were
9149         displayed tell the user how to list all the options supported by
9150         the language's front-end.
9151         (print_specific_help): Fix indentation and remove duplicate line.
9152         (common_handle_option): Handle the -v option.
9153         For --help enable the display of undocumented options if the -v
9154         switch has been included on the command line.
9155         For --help= check for overlaps in the arguments between the option
9156         classes and the language names and issue a warning when they
9157         cannot be disambiguated.
9158         * c.opt (v): Pass on to the common option handler.
9159
9160 2008-02-19  Revital Eres  <eres@il.ibm.com> 
9161
9162         * modulo-sched.c (sms_schedule): Change dump message when
9163         create_ddg function fails.
9164         (try_scheduling_node_in_cycle): Rename row to cycle.
9165         (print_partial_schedule): Rename CYCLE to ROW.
9166
9167 2008-02-19  Christian Bruel  <christian.bruel@st.com>
9168             Zdenek Dvorak  <ook@ucw.cz>
9169
9170         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
9171
9172 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
9173
9174         PR target/33555
9175         * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
9176         (*x86_movdicc_0_m1_se): Ditto.
9177
9178 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
9179
9180         * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
9181         (CMPtype): Define as __gcc_CMPtype.
9182         * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
9183         (CMPtype): Define as __gcc_CMPtype.
9184
9185 2008-02-19  Hans-Peter Nilsson  <hp@axis.com>
9186
9187         Support valgrind 3.3 for --enable-checking=valgrind.
9188         * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
9189         here.
9190         [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
9191         [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
9192         [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
9193         * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
9194         Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
9195         VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
9196         VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
9197         respectively.
9198         * ggc-zone.c: Similar.
9199         * ggc-page.c: Similar.
9200
9201 2008-02-19  Paul Brook  <paul@codesourcery.com>
9202
9203         PR target/35071
9204         * config/arm/ieee754-df.S: Fix do_it typo.
9205         * config/arm/ieee754-sf.S: Fix do_it typo.
9206
9207 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
9208
9209         PR target/35189
9210         * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
9211         (OPTION_MASK_ISA_3DNOW_SET): Likewise.
9212         (OPTION_MASK_ISA_SSE_SET): Likewise.
9213         (OPTION_MASK_ISA_SSE2_SET): Likewise.
9214         (OPTION_MASK_ISA_SSE3_SET): Likewise.
9215         (OPTION_MASK_ISA_SSSE3_SET): Likewise.
9216         (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
9217         (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
9218         (OPTION_MASK_ISA_SSE4_SET): Likewise.
9219         (OPTION_MASK_ISA_SSE4A_SET): Likewise.
9220         (OPTION_MASK_ISA_SSE5_SET): Likewise.
9221         (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
9222         (OPTION_MASK_ISA_MMX_UNSET): Updated.
9223         (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
9224         (OPTION_MASK_ISA_SSE_UNSET): Likewise.
9225         (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
9226         (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
9227         (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
9228         (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
9229         (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
9230         (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
9231         (OPTION_MASK_ISA_SSE4): Removed.
9232         (ix86_handle_option): Turn on bits in ix86_isa_flags and
9233         ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
9234         (override_options): Don't turn on implied SSE/MMX bits in
9235         ix86_isa_flags.
9236
9237 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
9238
9239         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
9240         32bit host.
9241
9242 2008-02-18  Joey Ye  <joey.ye@intel.com>
9243
9244         PR middle-end/34921
9245         * tree-nested.c (insert_field_into_struct): Set type alignment
9246         to field alignment if the former is less than the latter.
9247
9248 2008-02-18  Jakub Jelinek  <jakub@redhat.com>
9249
9250         * BASE-VER: Set to 4.4.0.
9251
9252 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9253
9254         * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
9255         * doc/cfg.texi: Likewise.
9256         * doc/extend.texi: Likewise.
9257         * doc/gty.texi: Likewise.
9258         * doc/invoke.texi: Likewise.
9259         * doc/loop.texi: Likewise.
9260         * doc/md.texi: Likewise.
9261         * doc/passes.texi: Likewise.
9262         * doc/rtl.texi: Likewise.
9263         * doc/sourcebuild.texi: Likewise.
9264         * doc/tm.texi: Likewise.
9265         * doc/tree-ssa.texi: Likewise.
9266
9267 2008-02-17  Richard Guenther  <rguenther@suse.de>
9268
9269         PR middle-end/35227
9270         * tree-complex.c (init_parameter_lattice_values): Handle parameters
9271         without default definition.
9272
9273 2008-02-17  Richard Guenther  <rguenther@suse.de>
9274
9275         PR tree-optimization/35231
9276         * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
9277         if A | B != 1.
9278
9279 2008-02-17  Uros Bizjak  <ubizjak@gmail.com>
9280
9281         Revert:
9282         2008-02-15  Uros Bizjak  <ubizjak@gmail.com>    
9283         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
9284         libgcc_cmp_return mode.
9285
9286 2008-02-16  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
9287
9288         PR c/28368
9289         * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
9290
9291 2008-02-16  Ralf Corsepius  <ralf.corsepius@rtems.org>
9292
9293         * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
9294         multilibs.
9295
9296 2008-02-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9297
9298         * doc/c-tree.texi: Use `@.' where appropriate.
9299         * doc/extend.texi: Likewise.
9300         * doc/install.texi: Likewise.
9301         * doc/invoke.texi: Likewise.
9302         * doc/loop.texi: Likewise.
9303         * doc/makefile.texi: Likewise.
9304         * doc/md.texi: Likewise.
9305         * doc/passes.texi: Likewise.
9306         * doc/standards.texi: Likewise.
9307         * doc/tm.texi: Likewise.
9308
9309 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
9310
9311         PR middle-end/35196
9312         * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
9313         in entry_bb.
9314         (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
9315         rather than in entry_bb.
9316
9317 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
9318
9319         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
9320         libgcc_cmp_return mode.
9321
9322 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
9323
9324         PR middle-end/35130
9325         * tree-nested.c (convert_call_expr): Put FRAME.* vars into
9326         OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
9327
9328 2008-02-15  Richard Guenther  <rguenther@suse.de>
9329             Zdenek Dvorak  <ook@ucw.cz>
9330
9331         PR tree-optimization/35164
9332         * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
9333         * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
9334         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
9335         Only propagate addresses which do not have abnormal SSA_NAMEs
9336         in their operands.
9337
9338 2008-02-15  Joseph Myers  <joseph@codesourcery.com>
9339
9340         PR target/35088
9341         * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
9342
9343 2008-02-15  Jan Hubicka  <jh@suse.cz>
9344
9345         PR middle-end/35149
9346         * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
9347
9348 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
9349
9350         PR middle-end/34621
9351         * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
9352         when calculating alignment_pad.
9353
9354 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
9355
9356         * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
9357         (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
9358         * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
9359         and STACK_BOUNDARY define.
9360
9361 2008-02-14  Danny Smith  <dannysmith@users.sourceforge.net>
9362
9363         PR preprocessor/35061
9364         * c-pragma.c (handle_pragma_pop_macro): Check that
9365         pushed_macro_table has been allocated.
9366
9367 2008-02-14  Eric Botcazou  <ebotcazou@adacore.com>
9368
9369         PR middle-end/35136
9370         * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
9371         (force_gimple_operand): Likewise.
9372         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
9373         for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
9374         Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
9375         (find_interesting_uses_address): Check addressability and alignment
9376         of the base expression only after substituting bases of IVs into it.
9377
9378 2008-02-14  Michael Matz  <matz@suse.de>
9379
9380         PR target/34930
9381         * function.c (instantiate_virtual_regs_in_insn): Reload address
9382         before falling back to reloading the whole operand.
9383
9384 2008-02-14  Andreas Krebbel  <krebbel1@de.ibm.com>
9385
9386         * config/s390/s390.c (s390_mainpool_start): Emit the pool
9387         before the first section switch note.
9388
9389 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9390
9391         * doc/bugreport.texi: Update copyright years.
9392         * doc/c-tree.texi: Likewise.
9393         * doc/cfg.texi: Likewise.
9394         * doc/cpp.texi: Likewise.
9395         * doc/cppinternals.texi: Likewise.
9396         * doc/fragments.texi: Likewise.
9397         * doc/frontends.texi: Likewise.
9398         * doc/gcc.texi: Likewise.
9399         * doc/gty.texi: Likewise.
9400         * doc/hostconfig.texi: Likewise.
9401         * doc/implement-c.texi: Likewise.
9402         * doc/libgcc.texi: Likewise.
9403         * doc/loop.texi: Likewise.
9404         * doc/makefile.texi: Likewise.
9405         * doc/options.texi: Likewise.
9406         * doc/passes.texi: Likewise.
9407         * doc/rtl.texi: Likewise.
9408         * doc/sourcebuild.texi: Likewise.
9409         * doc/standards.texi: Likewise.
9410         * doc/tree-ssa.texi: Likewise.
9411         * doc/trouble.texi: Likewise.
9412
9413         * doc/extend.texi: Use @: or add comma where appropriate.
9414         * doc/invoke.texi: Likewise.
9415         * doc/tm.texi: Likewise.
9416
9417 2008-02-14  Alan Modra  <amodra@bigpond.net.au>
9418
9419         PR target/34393
9420         * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
9421         to a reg.
9422
9423 2008-02-14  Jesper Nilsson  <jesper.nilsson@axis.com>
9424
9425         * doc/md.texi (clz, ctz): Add reference.
9426         * doc/rtl.texi (clz, ctz): Likewise.
9427
9428 2008-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9429
9430         PR other/35148
9431         * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
9432         srcdir.
9433
9434 2008-02-13  Andreas Krebbel  <krebbel1@de.ibm.com>
9435
9436         * config/s390/s390.c (struct constant_pool): New field
9437         emit_pool_after added.
9438         (s390_mainpool_start): Set the emit_pool_after flag according
9439         to the section switch notes.
9440         (s390_mainpool_finish): Consider emit_pool_after when emitting
9441         the literal pool at the end of the function.
9442         (s390_chunkify_start): Force literal pool splits at section
9443         switch notes.
9444
9445 2008-02-13  Michael Matz  <matz@suse.de>
9446
9447         PR debug/35065
9448         * var-tracking.c (clobber_variable_part): Correctly traverse the
9449         list.
9450
9451 2008-02-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
9452
9453         PR 29673
9454         * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
9455         Add -fdump-ipa-inline.
9456         * tree-dump.c (dump_files): Remove tree-inlined dump.
9457         * tree-pass.h (tree_dump_index): Remove TDI_inlined.
9458         
9459 2008-02-12  Richard Guenther  <rguenther@suse.de>
9460
9461         PR tree-optimization/35171
9462         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
9463         default defs.
9464
9465 2008-02-12  Richard Guenther  <rguenther@suse.de>
9466
9467         PR middle-end/35163
9468         * fold-const.c (fold_widened_comparison): Use get_unwidened in
9469         value-preserving mode.  Disallow final truncation.
9470
9471 2008-02-12  Eric Botcazou  <ebotcazou@adacore.com>
9472
9473         PR middle-end/35136
9474         * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
9475         code from here to...
9476         (force_gimple_operand): ...here.
9477
9478 2008-02-12  Jakub Jelinek  <jakub@redhat.com>
9479
9480         PR c++/35144
9481         * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
9482         non-compatible pointers.
9483         (generate_element_copy): If SRC and DST are RECORD_TYPEs with
9484         different FIELD_DECLs, try harder by comparing field offsets, sizes
9485         and types.
9486
9487         PR inline-asm/35160
9488         * function.c (match_asm_constraints_1): Don't replace the same input
9489         multiple times.
9490
9491 2008-02-12  Anatoly Sokolov <aesok@post.ru>
9492
9493         * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
9494         * config/avr/avr.c (expand_prologue): Save RAMPZ register.
9495         (expand_epilogue): Restore RAMPZ register.
9496         * config/avr/avr.md (RAMPZ_ADDR): New constant.
9497
9498 2008-02-11  Kai Tietz  <kai.tietz@onevision.com>
9499
9500         * config/i386/cygwin.asm: (__alloca): Correct calling
9501         convention and alignment.
9502         (__chkstk): Force 8 byte stack alignment.
9503
9504 2008-02-11  Uros Bizjak  <ubizjak@gmail.com>
9505             Richard Guenther  <rguenther@suse.de>
9506
9507         PR tree-optimization/33992
9508         * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
9509         the zero we compare against.
9510
9511 2008-02-10  Danny Smith  <dannysmith@users.sourceforge.net>
9512
9513         PR libfortran/35063
9514         * gthr-win32.h (__gthread_mutex_destroy_function): New function
9515         to CloseHandle after unlocking to prevent accumulation of handle
9516         count.
9517
9518 2008-02-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9519
9520         PR middle_end/34150
9521         * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
9522         pic_label_operand source.  Similarly, add a REG_LABEL_OPERAND note
9523         and update LABEL_NUSES during and after reload.
9524
9525 2008-02-08  Steven Bosscher  <stevenb.gcc@gmail.com>
9526
9527         PR middle-end/34627
9528         * combine.c (simplify_if_then_else): Make sure the comparison is
9529         against const0_rtx when simplifying to (abs x) or (neg (abs X)).
9530
9531 2008-02-08  Richard Sandiford  <rsandifo@nildram.co.uk>
9532
9533         PR bootstrap/35051
9534         * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
9535         (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
9536         * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
9537         (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
9538         * tree.h (get_type_static_bounds): Likewise.
9539
9540 2008-02-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9541
9542         * doc/invoke.texi (Option Summary, C++ Dialect Options)
9543         (Objective-C and Objective-C++ Dialect Options, Warning Options):
9544         Make -Wfoo language annotations match what the compiler outputs.
9545
9546 2008-02-08  Sa Liu  <saliu@de.ibm.com>
9547
9548         * config/spu/spu-builtins.def: Fixed wrong parameter type in spu 
9549         intrinsics spu_convts, spu_convtu, spu_convtf.
9550
9551 2008-02-08  Hans-Peter Nilsson  <hp@axis.com>
9552
9553         * doc/extend.texi (Function Attributes) <noinline>: Mention
9554         asm ("") as method to keep calls.
9555
9556 2008-02-07  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
9557
9558         PR other/32754
9559         * doc/options.texi (Options): Replace references to opts.sh with
9560         optc-gen.awk.
9561         * opts-common.c: Likewise.
9562         * optc-gen.awk: Likewise.
9563         
9564 2008-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
9565
9566         * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
9567
9568 2008-02-07  Richard Henderson  <rth@redhat.com>
9569
9570         PR rtl-opt/33410
9571         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
9572         EXPR_LIST for the REG_EQUAL instead of a comparison with a 
9573         funny mode.
9574
9575 2008-02-07  Uros Bizjak  <ubizjak@gmail.com>
9576
9577         PR tree-optimization/35085
9578         * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
9579         for operand entry oe2 in addition to operand entry oe3 in order to
9580         expose more opportunities for vectorizer sum reduction.
9581
9582 2008-02-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9583
9584         PR other/35107
9585         * Makefile.in (LIBS): Remove $(GMPLIBS).
9586         (cc1-dummy, cc1): Add $(GMPLIBS).
9587
9588 2008-02-06  Jan Hubicka  <jh@suse.cz>
9589
9590         PR target/23322
9591         * i386.md (moddf_integer): Do not produce partial memory stalls for
9592         targets where it hurts.
9593
9594 2008-02-06  Uros Bizjak  <ubizjak@gmail.com>
9595
9596         PR target/35083
9597         * optabs.c (expand_float): Do not check for decimal modes when
9598         expanding unsigned integer through signed conversion.
9599
9600 2008-02-06  Nick Clifton  <nickc@redhat.com>
9601
9602         * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
9603         inside the clobber with a match_operand and duplicated operand
9604         number in the constraint.
9605         (ineqbranchsi): Delete redundant comment.
9606
9607 2008-02-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
9608
9609         * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add 
9610         builtin_define ("__USE_INIT_FINI__").
9611         * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
9612         -msx multilibs.
9613         * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
9614
9615 2008-02-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9616
9617         PR documentation/30330
9618         * doc/invoke.texi (C++ Dialect Options)
9619         (Objective-C and Objective-C++ Dialect Options, Warning Options):
9620         For each warning option -Wfoo that allows -Wno-foo, ensure both
9621         -Wfoo and -Wno-foo are listed in the option index.  Fix index
9622         entry of -Wswitch-default, index -Wnormalized= including the
9623         `=', and -Wlarger-than-@var{len} including @var{len}.
9624
9625 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
9626
9627         * config/i386/i386.md (floatunssisf2): Use
9628         ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
9629         (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
9630         Macroize expander using MODEF mode iterator.
9631
9632 2008-02-05  Diego Novillo  <dnovillo@google.com>
9633
9634         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
9635
9636         PR 33738
9637         * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
9638
9639 2008-02-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9640
9641         PR other/35070
9642         * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
9643
9644 2008-02-05  H.J. Lu  <hongjiu.lu@intel.com>
9645
9646         PR target/35084
9647         * config/i386/i386.c (ix86_function_sseregparm): Add an arg
9648         to indicate if a message should be generated.
9649         (init_cumulative_args): Updated.
9650         (function_value_32): Likewise.
9651
9652 2008-02-05  Joseph Myers  <joseph@codesourcery.com>
9653
9654         * doc/include/texinfo.tex: Update to version 2008-02-04.16.
9655
9656 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
9657
9658         PR target/35083
9659         * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
9660         Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
9661
9662 2008-02-04  Diego Novillo  <dnovillo@google.com>
9663
9664         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
9665
9666         PR 33738
9667         * tree-vrp.c (vrp_evaluate_conditional): With
9668         -Wtype-limits, emit a warning when comparing against a
9669         constant outside the natural range of OP0's type.
9670
9671 2008-02-04  Richard Guenther  <rguenther@suse.de>
9672
9673         PR middle-end/33631
9674         * expr.c (count_type_elements): Give for unions instead of
9675         guessing.
9676
9677 2008-02-04  Richard Guenther  <rguenther@suse.de>
9678
9679         PR middle-end/35043
9680         * gimplify.c (gimplify_init_ctor_eval): Convert array indices
9681         to TYPE_DOMAINs base type instead of using bitsizetype here.
9682
9683 2008-02-03  Jason Merrill  <jason@redhat.com>
9684
9685         * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
9686
9687 2008-02-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9688
9689         PR other/29972
9690         * doc/invoke.texi (C++ Dialect Options, Optimize Options)
9691         (HPPA Options, i386 and x86-64 Options, IA-64 Options)
9692         (RS/6000 and PowerPC Options): Fix typos and markup.
9693         * doc/passes.texi (Tree-SSA passes): Likewise.
9694
9695 2008-02-02  Michael Matz  <matz@suse.de>
9696
9697         PR target/35045
9698         * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
9699         from record_last_reg_set_info.
9700         (record_last_reg_set_info): Take an RTX argument, iterate over all
9701         constituent hardregs.
9702         (record_last_set_info, record_opr_changes): Change calls to
9703         new signature or to record_last_reg_set_info_regno.
9704
9705 2008-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
9706
9707         * doc/extend.texi (X86 Built-in Functions): Fix grammar.
9708
9709 2008-02-01  Hans-Peter Nilsson  <hp@axis.com>
9710
9711         PR rtl-optimization/34773
9712         * reg-notes.def (EQUAL): Mention significance of combination of
9713         REG_EQUAL and REG_RETVAL.
9714         * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
9715         insn that has a REG_RETVAL.
9716
9717 2008-02-01  Roger Sayle  <roger@eyesopen.com>
9718
9719         PR bootstrap/33781
9720         * configure.ac (--enable-fixed-point): Disable unless explicitly
9721         requested on IRIX.
9722         * configure: Regenerate.
9723
9724 2008-02-01  Richard Guenther  <rguenther@suse.de>
9725
9726         PR other/35042
9727         * invoke.texi (-finline-limit): Remove no longer true parts
9728         of the documentation.  Note that there is no default value.
9729
9730 2008-02-01  Andrew Pinski  <pinskia@gmail.com>
9731             Mark Mitchell  <mark@codesourcery.com>
9732             Ben Elliston  <bje@au.ibm.com>
9733
9734         PR c/29326
9735         * doc/extend.texi (Other Builtins): Document.
9736
9737 2008-01-31  Tom Browder <tom.browder@gmail.com>
9738
9739         * doc/c-tree.texi (Types): Fix grammar.
9740         (Expression trees): Ditto.
9741         * doc/passes.texi (Tree-SSA passes): Ditto.
9742         
9743         * doc/configterms.texi (Configure Terms): Fix typo.
9744         * doc/cpp.texi (Common Predefined Macros): Ditto.
9745         * doc/md.texi (Machine Constraints): Ditto.
9746         
9747         * doc/makefile.texi (Makefile): Add comma.
9748
9749 2008-01-31  Tom Browder  <tom.browder@gmail.com>
9750             Gerald Pfeifer  <gerald@pfeifer.com>
9751         
9752         * doc/sourcebuild.texi (Front End): Remove references to CVS
9753         and CVSROOT/modules.
9754         (Texinfo Manuals): Replace reference to CVS by one to SVN.
9755         (Back End): Remove reference to CVS.
9756
9757 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
9758
9759         PR target/34900
9760         * config/mips/mips.c (gen_load_const_gp): New function, taking a
9761         comment from...
9762         (mips16_gp_pseudo_reg): ...here.
9763         * config/mips/mips.md (load_const_gp): Replace with...
9764         (load_const_gp_<mode>): ...this :P-based insn.
9765
9766 2008-01-31  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
9767
9768         * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
9769         options. Minor fixes.
9770         (-std): Move reference to standards closer to where language
9771         standards are first mentioned.
9772         
9773 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
9774
9775         PR rtl-optimization/34995
9776         * reload.c (alternative_allows_const_pool_ref): Take an rtx
9777         parameter and return a bool.  If the rtx parameter is nonnull,
9778         check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
9779         (find_reloads): Update call accordingly.  Pass the new operand
9780         if it needed no address reloads, otherwise pass null.
9781
9782 2008-01-30  Richard Henderson  <rth@redhat.com>
9783
9784         PR c/34993
9785         * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
9786         for unbounded arrays.
9787
9788 2008-01-30  Silvius Rus  <rus@google.com>
9789
9790         * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
9791
9792 2008-01-30  Jan Hubicka  <jh@suse.cz>
9793
9794         PR target/34982
9795         * i386.c (init_cumulative_args): Use real function declaration when
9796         calling locally.
9797
9798 2008-01-30  Richard Sandiford  <rsandifo@nildram.co.uk>
9799
9800         PR rtl-optimization/34998
9801         * global.c (build_insn_chain): Treat non-subreg_lowpart
9802         SUBREGs of pseudos as clobbering all the words covered by the
9803         SUBREG, not just all the bytes.
9804         * ra-conflict.c (clear_reg_in_live): Likewise.  Take the
9805         original df_ref rather than an extract parameter.
9806         (global_conflicts): Update call accordingly.
9807
9808 2008-01-30  Andreas Krebbel  <krebbel1@de.ibm.com>
9809
9810         * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
9811         the overflow check to make it easier to read.
9812         (__fixtfdi): Change the type of the ll member in union
9813         long_double to UDItype_x.
9814
9815 2008-01-30  Jakub Jelinek  <jakub@redhat.com>
9816
9817         PR middle-end/34969
9818         * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
9819         * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
9820         * tree-inline.c (fold_marked_statements): Call
9821         cgraph_update_edges_for_call_stmt if folding a call statement.
9822         * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
9823         debug_generic_stmt calls, reset it back afterwards.
9824
9825         PR c/35017
9826         * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
9827         static decls.
9828         * c-typeck.c (build_external_ref): Don't pedwarn about
9829         static vars in current function's scope.
9830
9831 2008-01-29  Joseph Myers  <joseph@codesourcery.com>
9832
9833         * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
9834
9835 2008-01-29  Bernhard Fischer  <aldot@gcc.gnu.org>
9836
9837         PR c/35002
9838         * ipa-struct-reorg.c: Fix spelling.
9839         * params.def: Ditto.
9840
9841 2008-01-29  Richard Guenther  <rguenther@suse.de>
9842
9843         PR middle-end/35006
9844         * tree-inline.h (struct copy_body_data): Add remapping_type_depth
9845         field.
9846         * tree-inline.c (remap_type): Increment remapping_type_depth
9847         around remapping types.
9848         (copy_body_r): Only add referenced variables if they are referenced
9849         from code, not types.
9850
9851 2008-01-29  Douglas Gregor  <doug.gregor@gmail.com>
9852
9853         PR c++/34055
9854         PR c++/34103
9855         PR c++/34219
9856         PR c++/34606
9857         PR c++/34753
9858         PR c++/34754
9859         PR c++/34755
9860         PR c++/34919
9861         PR c++/34961
9862         * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
9863         qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
9864
9865 2008-01-28  Andy Hutchinson   <hutchinsonandy@netscape.net>
9866
9867         PR target/34412
9868         * config/avr/avr.c (expand_prologue): Use correct QI mode frame 
9869         pointer for tiny stack.
9870
9871 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
9872
9873         * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
9874
9875 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
9876
9877         * config/vx-common.h: Fix typo in comment.
9878
9879 2008-01-28  Ian Lance Taylor  <iant@google.com>
9880
9881         PR c++/34862
9882         PR c++/33407
9883         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
9884         coalesce pointers if they have different DECL_NO_TBAA_P values.
9885         * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
9886         between variables with different DECL_NO_TBAA_P values.
9887
9888 2008-01-28  Nathan Froyd  <froydnj@codesourcery.com>
9889
9890         PR 31535
9891         * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
9892         are not legitimate small data references on SPE targets.
9893
9894 2008-01-28  David Daney  <ddaney@avtrex.com>
9895
9896         * doc/install.texi (mips-*-*): Recommend binutils 2.18.
9897
9898 2008-01-28  David Daney  <ddaney@avtrex.com>
9899
9900         * doc/install.texi (--disable-libgcj-bc):  Reword documentation.
9901
9902 2008-01-27  Joseph Myers  <joseph@codesourcery.com>
9903
9904         * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
9905         m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
9906         *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
9907         *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
9908         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
9909         i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
9910         i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
9911         vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
9912
9913 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
9914
9915         * basic-block.h (condjump_equiv_p): Fix comment.
9916
9917 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
9918
9919         * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
9920         print_generic_stmt_indented): Fix comment.
9921
9922 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
9923
9924         * configure.ac (__stack_chk_fail): Add detecion for availability
9925         of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
9926         * configure: Regenerate.
9927
9928 2008-01-26  Maxim Kuvyrkov  <maxim@codesourcery.com>
9929
9930         PR middle-end/34688
9931         * final.c (output_addr_const): Handle TRUNCATE.
9932
9933 2008-01-26  Zdenek Dvorak  <ook@ucw.cz>
9934
9935         PR target/34711
9936         * tree-ssa-loop-ivopts.c (comp_cost): New type.
9937         (zero_cost, infinite_cost): New constants.
9938         (struct cost_pair): Change type of cost to comp_cost.
9939         (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
9940         (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
9941         New functions.
9942         (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
9943         split_address_cost, ptr_difference_cost, difference_cost,
9944         get_computation_cost_at, get_computation_cost,
9945         determine_use_iv_cost_generic, determine_use_iv_cost_address,
9946         determine_use_iv_cost_condition, determine_use_iv_costs,
9947         cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
9948         iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
9949         iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
9950         Change type of cost to comp_cost.
9951         (determine_iv_cost): Increase cost of non-original ivs, instead
9952         of decreasing the cost of original ones.
9953         (get_address_cost): Indicate the complexity of the addressing mode 
9954         in comp_cost.
9955         (try_add_cand_for): Prefer using ivs not specific to some object.
9956         * tree-flow.h (force_expr_to_var_cost): Declaration removed.
9957
9958 2008-01-26  Peter Bergner  <bergner@vnet.ibm.com>
9959             Janis Johnson  <janis187@us.ibm.com>
9960
9961         PR target/34814
9962         * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
9963         (TARGET_INSTANTIATE_DECLS): Likewise.
9964         * target.h (expand_to_rtl_hook): New target hook.
9965         (instantiate_decls): Likewise.
9966         * function.c (instantiate_decl): Make non-static.  Rename to...
9967         (instantiate_decl_rtl): ... this.
9968         (instantiate_expr): Use instantiate_decl_rtl.
9969         (instantiate_decls_1): Likewise.
9970         (instantiate_decls): Likewise.
9971         (instantiate_virtual_regs: Call new instantiate_decls taget hook.
9972         * function.h (instantiate_decl_rtl): Add prototype.
9973         * cfgexpand.c (target.h): New include.
9974         (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
9975         * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
9976         (TARGET_INSTANTIATE_DECLS): Likewise.
9977         (TARGET_INITIALIZER): New target hooks added.
9978         * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
9979         New prototype.
9980         * config/rs6000/rs6000.c (tree-flow.h): New include.
9981         (machine_function): Add sdmode_stack_slot field.
9982         (rs6000_alloc_sdmode_stack_slot): New function.
9983         (rs6000_instantiate_decls): Likewise.
9984         (rs6000_secondary_memory_needed_rtx): Likewise.
9985         (rs6000_check_sdmode): Likewise.
9986         (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
9987         (TARGET_INSTANTIATE_DECLS): Likewise.
9988         (rs6000_hard_regno_mode_ok): Allow SDmode.
9989         (num_insns_constant): Likewise.  Handle _Decimal32 constants.
9990         (rs6000_emit_move): Handle SDmode.
9991         (function_arg_advance): Likewise.
9992         (function_arg): Likewise.
9993         (rs6000_gimplify_va_arg): Likewise.  Add special handling of
9994         SDmode var args for 32-bit compiles.
9995         (rs6000_secondary_reload_class): Handle SDmode.
9996         (rs6000_output_function_epilogue): Likewise.
9997         (rs6000_function_value): Simplify if statement.
9998         (rs6000_libcall_value): Likewise.
9999         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
10000         (SECONDARY_MEMORY_NEEDED_RTX): Add define.
10001         * config/rs6000/dfp.md (movsd): New define_expand and splitter.
10002         (movsd_hardfloat): New define_insn.
10003         (movsd_softfloat): Likewise.
10004         (movsd_store): Likewise.
10005         (movsd_load): Likewise.
10006         (extendsddd2): Likewise.
10007         (extendsdtd2): Likewise.
10008         (truncddsd2): Likewise.
10009         (movdd_hardfloat64): Fixup comment.
10010         (UNSPEC_MOVSD_LOAD): New constant.
10011         (UNSPEC_MOVSD_STORE): Likewise.
10012
10013 2008-01-26  Jakub Jelinek  <jakub@redhat.com>
10014
10015         PR c++/34965
10016         * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
10017         TRUTH_XOR_EXPR.
10018         (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
10019         (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
10020         (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
10021         and TRUTH_XOR_EXPR.
10022
10023 2008-01-26  David Edelsohn  <edelsohn@gnu.org>
10024
10025         PR target/34794
10026         * config.gcc: Separate AIX 5.3 from AIX 6.1.
10027         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
10028         __LONGDOUBLE128 too.
10029         * config/rs6000/aix61.h: New file.
10030
10031 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
10032
10033         PR rtl-optimization/34959
10034         * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
10035         popcount and parity rtxes the same mode as their operand.
10036         Truncate or extend the result to the return value's mode
10037         if necessary.
10038
10039 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
10040
10041         PR target/34981
10042         * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
10043         * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
10044         to GOT_VERSION_REGNUM.
10045         (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
10046         (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
10047         * config/mips/mips.c (mips_emit_call_insn): New function.
10048         (mips_call_tls_get_addr): Call mips_expand_call directly.
10049         (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
10050         emit_call_insn.
10051         (mips16_build_call_stub): Likewise.  Return the call insn or null.
10052         (mips_expand_call): Update the call to mips16_build_call_stub
10053         accordingly and a remove redundant condition.  Assert that MIPS16
10054         stubs do not use lazy binding.  Use mips_emit_call_insn and return
10055         the call insn.
10056         (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
10057         TARGET_USE_GOT.
10058         (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
10059         (mips_avoid_hazard): Remove hazard_set handling.
10060         * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
10061         (UNSPEC_RESTORE_GP): ...this.
10062         (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
10063         (FAKE_CALL_REGNO): Rename to...
10064         (GOT_VERSION_REGNUM): ...this.
10065         (type): Add "ghost" value.  Add an associated insn reservation.
10066         (hazard_set): Remove.
10067         (exception_receiver): Rename to...
10068         (restore_gp): ...this and update the unspec identifier accordingly.
10069         (exception_receiver, nonlocal_got_receiver): New expanders.
10070         (load_call<mode>): Use GOT_VERSION_REGNUM.  Don't set
10071         FAKE_CALL_REGNO.  Remove hazard_set attribute.
10072         (set_got_version, update_got_version): New patterns.
10073
10074 2008-01-26  Danny Smith  <dannysmith@users.sourceforge.net>
10075
10076         PR target/34970
10077         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
10078
10079 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
10080
10081         PR other/31955
10082         * doc/install.texi2html: Generate gcc-vers.texi.
10083
10084 2008-01-25  DJ Delorie  <dj@redhat.com>
10085
10086         * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
10087
10088 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
10089
10090         * config/c4x: Remove directory.
10091         * config.gcc (crx-*, mt-*): Mark obsolete.
10092         (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
10093         h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
10094         sh-*-rtemscoff*): Remove cases.
10095         * defaults.h (C4X_FLOAT_FORMAT): Remove.
10096         * real.c (encode_c4x_single, decode_c4x_single,
10097         encode_c4x_extended, decode_c4x_extended, c4x_single_format,
10098         c4x_extended_format): Remove.
10099         * real.h (c4x_single_format, c4x_extended_format): Remove.
10100         * doc/extend.texi (interrupt, naked): Remove mention of attributes
10101         on C4x.
10102         (Pragmas): Remove comment about c4x pragmas.
10103         * doc/install.texi (c4x): Remove target-specific instructions.
10104         * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
10105         * doc/md.texi (Machine Constraints): Remove C4x documentation.
10106         * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
10107         refer to C4x source files as examples.
10108         (C4X_FLOAT_FORMAT): Remove documentation.
10109
10110 2008-01-25  Bernd Schmidt  <bernd.schmidt@analog.com>
10111
10112         * config/bfin/bfin.c (override_options): Reorder tests so that
10113         flag_pic gets enabled for -msep-data.
10114
10115 2008-01-25  Richard Guenther  <rguenther@suse.de>
10116
10117         PR middle-end/32244
10118         * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
10119         to its bitfield precision if required.
10120
10121 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
10122
10123         PR middle-end/33880
10124         * tree-nested.c (walk_omp_for): New function.
10125         (convert_nonlocal_reference, convert_local_reference): Call
10126         walk_omp_for on OMP_FOR.
10127         (convert_call_expr): Call walk_body on OMP_FOR's
10128         OMP_FOR_PRE_INIT_BODY.
10129
10130 2008-01-25  Richard Guenther  <rguenther@suse.de>
10131
10132         PR tree-optimization/34966
10133         * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
10134         default defs and PHI_NODEs we have to insert after the
10135         defining statement.
10136
10137 2008-01-24  Nick Clifton  <nickc@redhat.com>
10138
10139         * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
10140         Provide a default definition.
10141         (LIBGCC2_UNITS_PER_WORD): Likewise.
10142
10143         * config/stormy16/stormy16.c: Include df.h for the prototype
10144         for df_regs_ever_live_p.
10145         (xstormy16_expand_builtin_va_start): Convert the stack offset
10146         into a component_ref and then use POINTER_PLUS_EXPR to add it
10147         to the incoming_virtual_args_rtx.
10148         (xstormy16_gimplify_va_arg_expr): Rename to
10149         xstormy16_gimplify_va_arg_expr.
10150         Use POINTER_PLUS_EXPR when performing pointer arithmetic.
10151         (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
10152         xstormy16_gimplify_va_arg_expr.
10153         Fix up some formatting issues.
10154
10155         * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
10156         Move to predicates.md.
10157         (xs_hi_general_operand): Likewise.
10158         (xs_hi_nonmemory_operand): Likewise.
10159         * config/stormy16/predicates.md:
10160         (xstormy16_carry_plus_operand): New predicate.
10161         (xs_hi_general_operand): New predicate.
10162         (xs_hi_nonmemory_operand): New predicate.
10163         * config/stormy16/stormy16-protos.h:
10164         (xstormy16_carry_plus_operand): Delete prototype.
10165         (xs_hi_general_operand): Likewise.
10166         (xs_hi_nonmemory_operand): Likewise.
10167
10168         * config/storm16/stormy16.md (addhi3): Remove earlyclobber
10169         modifiers as they are no longer needed and they can trigger
10170         reload spill failures.
10171
10172         * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
10173         with a match_operand in order to help reload.
10174
10175         * config/storm16/stormy16.md (movhi_internal): Replace 'r'
10176         constraint with 'e' for the 8th alternative as this version of
10177         the mov.w instruction only accepts the lower 8 registers.
10178
10179 2008-01-25  Uros Bizjak  <ubizjak@gmail.com>
10180
10181         PR target/34856
10182         * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
10183         Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
10184         vector elements.
10185
10186 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
10187
10188         PR middle-end/33333
10189         * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
10190
10191 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
10192
10193         * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
10194         New functions.
10195         (remove_structure): Update allocations list before removing structure.
10196         
10197 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
10198
10199         * ipa-struct-reorg.c (is_safe_cond_expr, 
10200         create_new_stmts_for_cond_expr): Use integer_zerop function,
10201         that recognize not only zero-pointer, but zero-integer too.
10202
10203 2008-01-25  Ben Elliston  <bje@au.ibm.com>
10204
10205         PR other/22232
10206         * fixproto: Escape "." in sed expression that strips leading "./".
10207
10208 2008-01-24  H.J. Lu  <hongjiu.lu@intel.com>
10209
10210         PR driver/34904
10211         * gcc.c (SWITCH_OK): Removed.
10212         (SWITCH_LIVE): Changed to bit.
10213         (SWITCH_FALSE): Likewise.
10214         (SWITCH_IGNORE): Likewise.
10215         (switchstr): Change live_cond to unsigned int.
10216         (process_command): Replace SWITCH_OK with 0.
10217         (do_self_spec): Likewise.
10218         (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
10219         (give_switch): Likewise.
10220         (used_arg): Likewise.
10221         (do_spec_1): Set the SWITCH_IGNORE bit.
10222         (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
10223         bits.  Set the SWITCH_LIVE bit.
10224
10225 2008-01-24  Andreas Krebbel  <krebbel1@de.ibm.com>
10226
10227         * config/s390/s390.h (MOVE_RATIO): Define new target macro.
10228
10229 2008-01-24  Richard Sandiford  <rsandifo@nildram.co.uk>
10230
10231         PR tree-optimization/34472
10232         * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
10233         parameter to a "bool *" and set *DATA to false if there is
10234         an unsafe access.  Do not delete the structure here.
10235         (check_cond_exprs): Delete it here instead.
10236         (check_cond_exprs, exclude_cold_structs): Do not increase
10237         I when removing a structure.
10238
10239 2008-01-24  Uros Bizjak  <ubizjak@gmail.com>
10240
10241         PR target/34856
10242         * config/i386/i386.c (ix86_expand_vector_init): Consider only
10243         CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
10244
10245 2008-01-24  Jakub Jakub Jelinek  <jakub@redhat.com>
10246
10247         PR middle-end/34934
10248         * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
10249         a fixed vector for stack.
10250
10251 2008-01-24  Ben Elliston  <bje@au.ibm.com>
10252
10253         PR c++/25701
10254         * doc/gcc.texi (Software development): Add a direntry for g++.
10255         
10256 2008-01-23  Hans-Peter Nilsson  <hp@axis.com>
10257
10258         * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
10259         stale and straggling -fforce-addr comments above.
10260
10261         * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
10262         define.
10263         * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
10264         * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
10265
10266 2008-01-23  Michael Matz  <matz@suse.de>
10267
10268         PR debug/34895
10269         * dwarf2out.c (force_type_die): Use modified_type_die instead of
10270         gen_type_die.
10271
10272 2008-01-23  Andreas Krebbel  <krebbel1@de.ibm.com>
10273
10274         * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
10275         malloc result type.
10276
10277 2008-01-23 Anatoly Sokolov <aesok@post.ru>
10278
10279         * config/avr/avr.c (avr_current_arch): New variable.
10280         (avr_arch_types): Add 'avr31' and 'avr51' entries.
10281         (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
10282         (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
10283         (avr_override_options): Init 'avr_current_arch'. 
10284         (base_arch_s): Move from here...
10285         * config/avr/avr.h (base_arch_s): ... here. Add new members 
10286         'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename 
10287         'mega' to 'have_jmp_call'.
10288         (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__", 
10289         "__AVR_HAVE_RAMPZ__",   "__AVR_HAVE_ELPM__" and  "__AVR_HAVE_ELPMX__"
10290         macros.
10291         (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51' 
10292         architectures.
10293         * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES, 
10294         MULTILIB_MATCHES): (Ditto.).
10295
10296 2008-01-23  Richard Guenther  <rguenther@suse.de>
10297
10298         PR middle-end/31529
10299         * cgraphunit.c (cgraph_reset_node): Always mark the node
10300         not reachable if it is not queued already.
10301
10302 2008-01-23  Bernd Schmidt  <bernd.schmidt@analog.com>
10303
10304         * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
10305         * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
10306         (cputype_selected): New static variable.
10307         (bfin_handle_option): Set it if -mcpu is used.
10308         (override_option): Select default set of workarounds if no cpu type
10309         selected on the command line.
10310         (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
10311
10312         From  Michael Frysinger  <michael.frysinger@analog.com>
10313         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
10314         BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
10315
10316         * config/bfin/elf.h (LIB_SPEC): Use proper linker script
10317         for bf547, bf523, bf524, and bf526.
10318         * config/bfin/bfin.c (bfin_cpus[]): Add bf547,  bf523, bf524, and
10319         bf526.
10320         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
10321         __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
10322         __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
10323         __ADSPBF547__ and __ADSPBF54x__ for bf547.
10324         * doc/invoke.texi (Blackfin Options): Document that
10325         -mcpu now accept bf547, bf523, bf524, and bf526.
10326
10327 2008-01-22  Eric Botcazou  <ebotcazou@adacore.com>
10328
10329         PR rtl-optimization/34628
10330         * combine.c (try_combine): Stop and undo after the first combination
10331         if an autoincrement side-effect on the first insn has effectively
10332         been lost.
10333
10334 2008-01-22  David Edelsohn  <edelsohn@gnu.org>
10335
10336         PR target/34529
10337         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
10338         Offset addresses are not valid for Altivec or paired float modes.
10339
10340 2008-01-22  Jakub Jelinek  <jakub@redhat.com>
10341
10342         PR c++/34607
10343         * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
10344         if DECL_INITIAL (decl) is error_mark_node.
10345
10346         PR c++/34914
10347         * c-common.c (handle_vector_size_attribute): Only allow
10348         integral, scalar float and fixed point types.  Handle OFFSET_TYPE
10349         the same way as pointer, array etc. types.
10350         * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
10351
10352         PR c++/34917
10353         * tree.c (build_type_attribute_qual_variant): Call
10354         build_qualified_type if attributes are equal, but quals are not.
10355
10356 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
10357
10358         PR 32102
10359         * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
10360         * flags.h (warn_strict_aliasing): Remove.
10361         (warn_strict_overflow): Remove.
10362         * opts.c (warn_strict_aliasing): Remove.
10363         (warn_strict_overflow): Remove.
10364         * c-opts.c (c_common_handle_option): -Wall only sets
10365         -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
10366         (c_common_post_options): Give default values to -Wstrict-aliasing
10367         and -Wstrict-overflow if they are uninitialized.
10368         * common.opt (Wstrict-aliasing): Specify Var and Init.
10369         (Wstrict-overflow): Likewise.
10370
10371 2008-01-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
10372
10373         PR rtl-optimization/26854
10374         PR rtl-optimization/34400
10375         PR rtl-optimization/34884
10376         * ddg.c (create_ddg_dep_from_intra_loop_link): Use
10377         DF_RD->gen.
10378         * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
10379         (df_rd_bb_info.expanded_lr_out): Deleted
10380         * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
10381         * loop_iv.c (iv_analysis_loop_init): Ditto.  * df-problems.c
10382         (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
10383         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
10384         Removed code to allocate, initialize or free expanded_lr_out.
10385         (df_rd_bb_local_compute_process_def): Restructured to make more
10386         understandable.
10387         (df_rd_confluence_n): Removed code to no apply invalidate_by_call
10388         sets if the sets are being trimmed.
10389
10390 2008-01-22  H.J. Lu  <hongjiu.lu@intel.com>
10391
10392         PR bootstrap/32287
10393         * configure.ac (ld_vers): Support GNU linker version xx.xx.*
10394         (as_vers): Likewise.
10395         * configure: Regenerated.
10396
10397 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
10398
10399         PR middle-end/33092
10400         * tree-pass.h (pass_build_alias): New pass.
10401         * tree-ssa-alias.c (gate_build_alias): New.
10402         (pass_build_alias): New.
10403         * passes.c (init_optimization_passes): Add pass_build_alias after
10404         pass_create_structure_vars.
10405
10406 2008-01-22  Wolfgang Gellerich  <gellerich@de.ibm.com>
10407
10408         * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
10409         Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
10410         (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
10411         S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
10412         (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
10413         S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
10414         (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
10415         S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
10416         (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
10417         (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
10418         (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
10419         (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
10420         * config/s390/s390.md (FP_ALL): New mode iterator.
10421         (_d): New mode attribute.
10422         ("*signbit<mode>2>"): Changed mode of first operand.
10423         ("isinf<mode>2"): Changed mode of first operand.
10424         ("*TDC_insn"): Adaptation for DFP modes.
10425
10426 2008-01-22  Ben Elliston  <bje@au.ibm.com>
10427
10428         * tree.c (check_qualified_type): Improve function description.
10429
10430 2008-01-21  Jason Merrill  <jason@redhat.com>
10431
10432         PR c++/34196
10433         * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
10434         * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
10435         if it is set.
10436
10437 2008-01-21  DJ Delorie  <dj@redhat.com>
10438
10439         * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
10440         return zero.
10441
10442 2008-01-21  Richard Guenther  <rguenther@suse.de>
10443
10444         PR middle-end/34856
10445         * tree-cfg.c (verify_expr): Allow all invariant expressions
10446         instead of just constant class ones as reference argument.
10447         * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
10448         like any other constant.
10449         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
10450
10451 2008-01-21  H.J. Lu  <hongjiu.lu@intel.com>
10452
10453         * regmove.c (fixup_match_1): Update call crossed frequencies.
10454
10455 2008-01-21  Richard Guenther  <rguenther@suse.de>
10456
10457         PR c/34885
10458         * tree-inline.c (setup_one_parameter): Deal with mismatched
10459         types using a VIEW_CONVERT_EXPR.
10460
10461 2008-01-21  Alon Dayan  <alond@il.ibm.com>
10462             Olga Golovanevsky  <olga@il.ibm.com>
10463         
10464         PR tree-optimization/34701
10465         * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
10466         when the structure size is not a power of 2.
10467
10468 2008-01-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
10469
10470         * doc/install.texi: Add doc for --enable-checking=df.
10471         
10472 2008-01-20  Kaz Kojima  <kkojima@gcc.gnu.org>
10473
10474         PR rtl-optimization/34808
10475         * emit-rtl.c (try_split): Handle REG_RETVAL notes.
10476
10477 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
10478
10479         * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
10480         input.
10481
10482 2008-01-19  Kenneth Zadeck  <zadeck@naturalbridge.com>
10483
10484         PR rtl-optimization/26854
10485         PR rtl-optimization/34400
10486         * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
10487         DF_RD->gen.
10488         * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
10489         (df_rd_bb_info.expanded_lr_out): New.
10490         * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
10491         * loop_iv.c (iv_analysis_loop_init): Ditto.
10492         * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
10493         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
10494         Added code to allocate, initialize or free expanded_lr_out.
10495         (df_rd_bb_local_compute_process_def): Restructured to make
10496         more understandable.
10497         (df_rd_confluence_n): Add code to do nothing with fake edges and
10498         code to no apply invalidate_by_call sets if the sets are being trimmed.
10499         (df_lr_local_finalize): Renamed to df_lr_finalize.
10500         (df_live_local_finalize): Renamed to df_live_finalize.
10501
10502 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
10503
10504         PR target/34831
10505         * config/mips/mips.md (div<mode>3): Use <recip_condition> when
10506         deciding whether to use reciprocal instructions.
10507
10508 2008-01-19  Uros Bizjak  <ubizjak@gmail.com>
10509
10510         * dwarf2out.c (dwarf2out_switch_text_section): Do not call
10511         dwarf2out_note_section_used if cold_text_section is NULL.
10512
10513 2008-01-19  Jakub Jelinek  <jakub@redhat.com>
10514
10515         PR gcov-profile/34610
10516         * tree-cfg.c (make_edges): Mark both outgoing edges from
10517         OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
10518         * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
10519         from OMP_FOR and OMP_CONTINUE outgoing edges.
10520
10521         * tree-profile.c (tree_profiling): Return early if
10522         cfun->after_tree_profile != 0.  Set cfun->after_tree_profile
10523         at the end.
10524         * omp-low.c (expand_omp_parallel): Copy after_tree_profile
10525         from cfun to child_cfun.
10526         * function.h (struct function): Add after_tree_profile bit.
10527
10528 2008-01-19 Anatoly Sokolov <aesok@post.ru>
10529
10530         * config/avr/avr.S (_exit): Disable interrupt.
10531
10532 2008-01-18  Kenneth Zadeck  <zadeck@naturalbridge.com>
10533             Steven Bosscher  <stevenb.gcc@gmail.com>
10534
10535         PR rtl-optimization/26854
10536         PR rtl-optimization/34400
10537         * df-problems.c (df_live_scratch): New scratch bitmap.
10538         (df_live_alloc): Allocate df_live_scratch when doing df_live.
10539         (df_live_reset): Clear the proper bitmaps.
10540         (df_live_bb_local_compute): Only process the artificial defs once
10541         since the order is not important.
10542         (df_live_init): Init the df_live sets only with the variables
10543         found live by df_lr.
10544         (df_live_transfer_function): Use the df_lr sets to prune the
10545         df_live sets as they are being computed.  
10546         (df_live_free): Free df_live_scratch.
10547
10548 2008-01-18  Ian Lance Taylor  <iant@google.com>
10549
10550         * common.opt: Add fmerge-debug-strings.
10551         * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
10552         flag_merge_debug_strings rather than flag_merge_constants.
10553         * doc/invoke.texi (Option Summary): Mention
10554         -fmerge-debug-strings.
10555         (Debugging Options): Document -fmerge-debug-strings.
10556
10557 2008-01-18  Ian Lance Taylor  <iant@google.com>
10558
10559         PR c++/33407
10560         * tree.h (DECL_IS_OPERATOR_NEW): Define.
10561         (struct tree_function_decl): Add new field operator_new_flag.
10562         * tree-inline.c (expand_call_inline): When inlining a call to
10563         operator new, force the return value to go into a variable, and
10564         set DECL_NO_TBAA_P on that variable.
10565         * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
10566
10567 2008-01-18  Uros Bizjak  <ubizjak@gmail.com>
10568
10569         PR debug/34484
10570         * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
10571         DWARF2_DEBUGGING_INFO.
10572         (dwarf2out_note_section_used): Ditto.  Add prototype.
10573         (have_multiple_function_sections, text_section_used,
10574         cold_text_section_used, *cold_text_sections): Move declarations
10575         before their uses.
10576
10577 2008-01-17  Bob Wilson  <bob.wilson@acm.org>
10578
10579         * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
10580         field and add signal_ra.
10581         * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
10582         assignments to frame state pc.  Move end of stack check after
10583         MD_FALLBACK_FRAME_STATE_FOR.
10584         (uw_update_context_1): Use frame state signal_regs if set, instead
10585         of checking signal_frame flag.
10586         (uw_update_context): Use frame state signal_ra if set.
10587         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
10588         * config/xtensa/linux-unwind.h: New file.
10589
10590 2008-01-18  Bernhard Fischer  <aldot@gcc.gnu.org>
10591
10592         * modulo-sched.c (get_sched_window): Fix comment typo.
10593
10594 2008-01-17  Andrew MacLeod  <amacleod@redhat.com>
10595
10596         PR tree-optimization/34648
10597         * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
10598
10599 2008-01-17  Anatoly Sokolov <aesok@post.ru>
10600
10601         * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
10602         * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
10603
10604 2008-01-17  Seongbae Park  <seongbae.park@gmail.com>
10605
10606         PR rtl-optimization/34400
10607         * df-core.c (df_worklist_dataflow_overeager,
10608         df_worklist_dataflow_doublequeue): New functions.
10609         (df_worklist_dataflow): Two different worklist solvers.
10610         * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
10611         New param.
10612
10613 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
10614
10615         PR testsuite/34821
10616         * doc/invoke.texi: Document the dependence on pthread for fopenmp
10617         and ftree-parallelize-loops.
10618
10619 2008-01-17  Mircea Namolaru  <namolaru@il.ibm.com>
10620
10621         PR rtl-optimization/34826
10622         * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
10623
10624 2008-01-17  Andreas Krebbel  <krebbel1@de.ibm.com>
10625
10626         * global.c (find_reg): Mark the eh regs as used if necessary.
10627         * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
10628         * ra.h (struct allocno): no_eh_reg field added.  Changed
10629         no_stack_reg type to bitfield.
10630
10631 2008-01-17  Eric Botcazou  <ebotcazou@adacore.com>
10632
10633         * tree.c (substitute_in_expr): Add missing 'break'.
10634
10635 2008-01-17  Richard Guenther  <rguenther@suse.de>
10636
10637         PR tree-optimization/34825
10638         * tree-ssa-math-opts.c (is_division_by): Do not recognize
10639         x / x as division to handle.
10640
10641 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10642
10643         * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
10644         "-pthread" is specified.
10645         * pa-hpux11.h (LIB_SPEC): Likewise.
10646
10647 2008-01-16  Janis Johnson  <janis187@us.ibm.com>
10648             Peter Bergner  <bergner@vnet.ibm.com>
10649
10650         PR rtl-optimization/33796
10651         * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
10652
10653 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10654
10655         PR libgfortran/34699
10656         * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
10657         static links.
10658         * pa-hpux10.h (LINK_SPEC): Likewise.
10659         * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
10660
10661 2008-01-16  Richard Guenther  <rguenther@suse.de>
10662
10663         PR middle-end/32628
10664         * fold-const.c (fold_convert_const_int_from_int): Do not
10665         set overflow if that occured only because of a sign extension
10666         change when converting from/to a sizetype with the same
10667         precision and signedness.
10668
10669 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
10670
10671         PR debug/34249
10672         * dwarf2out.c (output_call_frame_info): Move output of FDE initial
10673         location address to the correct place.  Update copyright year.
10674
10675 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
10676
10677         * lambda-code.c (lambda_transform_legal_p): Handle the case of
10678         no dependences in the dependence_relations vector.
10679
10680 2008-01-16  Jan Hubicka  <jh@suse.cz>
10681
10682         PR rtl-optimization/31396
10683         * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
10684         * cfg.c (dump_reg_info): Print it.
10685         * regs.h (struct reg_info_t): add freq_calls_crossed.
10686         (REG_FREQ_CALLS_CROSSED): New macro.
10687         * global.c (global_alloc): Compute freq_calls_crossed for allocno.
10688         (find_reg): Update call of CALLER_SAVE_PROFITABLE.
10689         * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
10690         regmove_optimize): Update call crossed frequencies.
10691         * local-alloc.c (struct qty): Add freq_calls_crossed.
10692         (alloc_qty): Copute freq_calls_crossed.
10693         (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
10694         (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
10695         * ra.h (struct allocno): Add freq_calls_crossed.
10696
10697 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
10698
10699         * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
10700         libgomp when compiling with ftree-parallelize-loops.
10701         (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
10702
10703 2008-01-16  Richard Guenther  <rguenther@suse.de>
10704
10705         PR tree-optimization/34769
10706         * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
10707         * tree.c (int_cst_value): Instead make this function more
10708         permissive in what it accepts as valid input.  Document this
10709         function always sign-extends the value.
10710
10711 2008-01-16  Jakub Jelinek  <jakub@redhat.com>
10712             Richard Guenther  <rguenther@suse.de>
10713
10714         PR c/34668
10715         * gimplify.c (fold_indirect_ref_rhs): Rename to ...
10716         (gimple_fold_indirect_ref_rhs): ... this.
10717         (gimple_fold_indirect_ref): New function with foldings
10718         that preserve lvalueness.
10719         (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
10720         * tree-flow.h (gimple_fold_indirect_ref): Declare.
10721         * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
10722         to fold an INDIRECT_REF, fall back to the old use of
10723         fold_indirect_ref_1.
10724
10725 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
10726
10727         * tree-data-ref.c (subscript_dependence_tester_1): Call 
10728         free_conflict_function.
10729         (compute_self_dependence): Same.
10730
10731 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
10732
10733         PR debug/34249
10734         * debug.h (dwarf2out_switch_text_section): Move declaration from ...
10735         * dwarf2out.c (dwarf2out_switch_text_section): ... here.  Make
10736         function global.
10737         * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
10738         Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
10739         for DWARF2_UNWIND_INFO targets.
10740
10741 2008-01-16  Richard Guenther  <rguenther@suse.de>
10742
10743         PR c/34768
10744         * c-typeck.c (common_pointer_type): Do not merge inconsistent
10745         type qualifiers for function types.
10746
10747 2008-01-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
10748
10749         * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
10750         loop_iterator li from previous commit.
10751
10752 2008-01-15  Sebastian Pop  <sebastian.pop@amd.com>
10753
10754         * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
10755
10756 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
10757
10758         * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
10759         (parallelize_loops): Don't parallelize irreducible components.
10760
10761 2008-01-14  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
10762
10763         PR c++/24924
10764         * c-opts (c_common_post_options): Do not enable CPP
10765         flag_pedantic_errors by default.
10766         
10767 2008-01-14  Eric Botcazou  <ebotcazou@adacore.com>
10768
10769         PR rtl-optimization/31944
10770         * cse.c (remove_pseudo_from_table): New function.
10771         (merge_equiv_classes): Use above function to remove pseudo-registers.
10772         (invalidate): Likewise.
10773
10774 2008-01-13  Richard Guenther  <rguenther@suse.de>
10775
10776         PR middle-end/34601
10777         * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
10778         instead of TYPE_MODE to deal with calls from expand_one_error_var.
10779
10780 2008-01-13  Uros Bizjak  <ubizjak@gmail.com>
10781
10782         * gcse.c (cprop_jump): Call validate_unshare_change instead of
10783         validate_change to unshare the source of the PC set.
10784
10785 2008-01-12  Jan Hubicka  <jh@suse.cz>
10786
10787         PR middle-end/32135
10788         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
10789         references above array bounds.  This might trigger bounds checks for
10790         pointers to arrays.
10791
10792 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
10793
10794         * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
10795         new_replaceable_dependencies.
10796
10797 2008-01-12  Doug Kwan  <dougkwan@google.com>
10798
10799         * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
10800         instead of OPT_Wreturn_type in warning due to ignored return type
10801         qualifiers.
10802         * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
10803         options included in -Wextra.
10804         * c.opt: New option -Wignored_qualifiers.
10805         * doc/invoke.texi (Warning Options, -Wextra): Add new option
10806         -Wignore_qualifiers.
10807         (-Wignored-qualifiers): Document.
10808         (-Wreturn-type): Remove description of functionality now handled
10809         by -Wignored-qualifiers.
10810
10811 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
10812
10813         PR ada/33788
10814         * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
10815         NOP_EXPR if it is between integral types with the same precision.
10816
10817 2008-01-12  Jan Hubicka  <jh@suse.cz>
10818
10819         PR other/28023
10820         * invoke.texi (max-inline-recursive-depth): Fix default value.
10821
10822 2008-01-12  Zdenek Dvorak  <ook@ucw.cz>
10823
10824         * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
10825         correct type.
10826
10827 2008-01-11  Bob Wilson  <bob.wilson@acm.org>
10828         
10829         * config/xtensa/xtensa.c (override_options): Set flag_shlib.
10830         
10831 2008-01-11  James E. Wilson  <wilson@specifix.com>
10832
10833         PR target/26015
10834         * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
10835
10836 2008-01-11  Anatoly Sokolov <aesok@post.ru>
10837
10838         * config/avr/avr.c (expand_prologue, expand_epilogue): Don't 
10839         save/restore frame pointer register and don't use 'call-prologues' 
10840         optimization in function with "OS_task" attribute.
10841
10842 2008-01-11  Eric Botcazou  <ebotcazou@adacore.com>
10843
10844         PR middle-end/31309
10845         * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
10846         when copying to memory.
10847
10848 2008-01-11  Steven Bosscher  <stevenb.gcc@gmail.com>
10849
10850         PR rtl-optimization/30905
10851         * cfgcleanup.c: Include dce.h
10852         (crossjumps_occured): New global variable.
10853         (try_crossjump_bb): Exit loop after finding a fallthru edge.
10854         If something changed, set crossjumps_occured to true.
10855         (try_optimize_cfg): Clear crossjumps_occured at the beginning.
10856         Don't add/remove fake edges to exit here...
10857         (cleanup_cfg): ...but do it here, when crossjumping.
10858         Run a fast DCE when successful crossjumps occured in the latest
10859         iteration of try_optimize_cfg.
10860
10861 2008-01-11  Richard Guenther  <rguenther@suse.de>
10862
10863         * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
10864         (struct vn_unary_op_s): Likewise.
10865         (vn_reference_insert): Free old reference on hash collision.
10866
10867 2008-01-10  Raksit Ashok  <raksit@google.com>
10868
10869         PR rtl-optimization/27971
10870         * combine.c (find_split_point): Split PLUS expressions which are
10871         inside a MEM rtx, and whose first operand is complex.
10872
10873 2008-01-10  DJ Delorie  <dj@redhat.com>
10874
10875         * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
10876         (m32c_hard_regno_nregs): ...this, which is now a wrapper.
10877         (m32c_hard_regno_ok): Call the underlying function.
10878
10879 2008-01-10  Richard Guenther  <rguenther@suse.de>
10880
10881         PR middle-end/34683
10882         * tree-cfg.c (tree_merge_blocks): Do not go through the
10883         full-blown folding and stmt updating path if we just deal
10884         with virtual operands.
10885         * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
10886         test for abnormal SSA_NAMEs.
10887
10888 2008-01-10  Andreas Krebbel  <krebbel1@de.ibm.com>
10889
10890         PR middle-end/34641
10891         * reload.c (push_reload): Add assertions.  All constants from
10892         reg_equiv_constant should have been used for replacing the respective
10893         pseudo earlier.
10894         (find_reloads_address): Invoke find_reloads_address_part for
10895         constant taken from the reg_equiv_constant array.
10896
10897 2008-01-10  Steven Bosscher  <stevenb.gcc@gmail.com>
10898
10899         * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
10900         field (valnum) the first in the struct.  Replace bools with
10901         unit bit fields.
10902
10903 2008-01-10  Richard Guenther  <rguenther@suse.de>
10904
10905         PR tree-optimization/34651
10906         * tree-sra.c (sra_build_assignment): Sanitize.  Use the correct
10907         types and ordering for masking and converting.
10908
10909 2008-01-09  Sebastian Pop  <sebastian.pop@amd.com>
10910
10911         PR tree-optimization/34017
10912         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
10913         also for PHI_NODE expressions.
10914
10915 2008-01-09  Jan Hubicka  <jh@suse.cz>
10916
10917         PR tree-optimization/34708
10918         * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
10919         based on number of case labels.
10920         (init_inline_once): Remove switch_cost.
10921         * tree-inline.h (eni_weights_d): Remove switch_cost.
10922
10923 2008-01-09  Richard Guenther  <rguenther@suse.de>
10924         Andrew Pinski  <andrew_pinski@playstation.sony.com>
10925
10926         PR middle-end/30132
10927         * gimplify.c (gimplify_cond_expr): Do not create an addressable
10928         temporary if an rvalue is ok or an lvalue is not required.
10929
10930 2008-01-09  Richard Guenther  <rguenther@suse.de>
10931
10932         PR middle-end/34458
10933         * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
10934         adjust return type.
10935
10936 2008-01-09  Richard Guenther  <rguenther@suse.de>
10937
10938         PR middle-end/34679
10939         * tree.c (host_integerp): Check for sizetype only if the
10940         type is an integer type.
10941
10942 2008-01-09  Steven Bosscher  <stevenb.gcc@gmail.com>
10943
10944         PR debug/26364
10945         * opts.c (decode_options): Disable inlining of functions called
10946         once if not in unit-at-a-time mode.
10947
10948 2008-01-09  Alexandre Oliva  <aoliva@redhat.com>
10949
10950         * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
10951
10952 2008-01-08  Richard Guenther  <rguenther@suse.de>
10953
10954         PR middle-end/31863
10955         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
10956         out early if the result will be unused.
10957
10958 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
10959
10960         PR target/34709
10961         Revert:
10962
10963         2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
10964         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
10965         for TARGET_RECIP.       
10966         
10967 2008-01-08  Jan Sjodin  <jan.sjodin@amd.com>
10968         
10969         * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
10970         for vectorization tuned.
10971         
10972 2008-01-08  Richard Guenther  <rguenther@suse.de>
10973
10974         PR tree-optimization/34683
10975         * tree-ssa-operands.c (operand_build_cmp): Export.
10976         * tree-ssa-operands.h (operand_build_cmp): Declare.
10977         * tree-vn.c (vuses_compare): Remove.
10978         (sort_vuses): Use operand_build_cmp.
10979         (sort_vuses_heap): Likewise.
10980         * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
10981         to re-use old VEC if available.  Do not sort already sorted VUSEs.
10982         (vdefs_to_vec): Do not sort already sorted VDEFs.
10983
10984 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
10985
10986         PR middle-end/34694
10987         * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
10988
10989 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
10990
10991         PR target/34702
10992         * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
10993         limitations of reciprocal sequences on x86 targets.
10994
10995 2008-01-08  Richard Guenther  <rguenther@suse.de>
10996
10997         PR tree-optimization/34683
10998         * tree-flow-inline.h (var_ann): Remove overzealous asserts.
10999
11000 2008-01-07  Jakub Jelinek  <jakub@redhat.com>
11001
11002         PR target/34622
11003         * config/darwin.c (darwin_mergeable_string_section): Don't use
11004         .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
11005
11006 2008-01-07  Uros Bizjak  <ubizjak@gmail.com>
11007
11008         PR target/34682
11009         * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
11010         negxf2.  Macroize expander using X87MODEF mode iterator.  Change
11011         predicates of op0 and op1 to register_operand.
11012         (abs<mode>2): Rename from abssf2, absdf2 and negxf2.  Macroize
11013         expander using X87MODEF mode iterator.  Change predicates of
11014         op0 and op1 to register_operand.
11015         ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
11016         corresponding patterns and macroize using MODEF macro.  Change
11017         predicates of op0 and op1 to register_operand and remove
11018         "m" constraint. Disparage "r" alternative with "!".
11019         ("*absneg<mode>2_i387"): Rename from corresponding patterns and
11020         macroize using X87MODEF macro.  Change predicates of op0 and op1
11021         to register_operand and remove "m" constraint.  Disparage "r"
11022         alternative with "!".
11023         (absneg splitter with memory operands): Remove.
11024         ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
11025         patterns and macroize using X87MODEF mode iterator.
11026         * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
11027         Change predicate of op1 to register_operand.
11028         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
11029         for memory operands.
11030
11031 2008-01-07  Nathan Froyd  <froydnj@codesourcery.com>
11032
11033         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
11034
11035 2008-01-07  Richard Guenther  <rguenther@suse.de>
11036
11037         * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
11038         fields.
11039
11040 2008-01-07  Richard Guenther  <rguenther@suse.de>
11041
11042         PR tree-optimization/34683
11043         * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
11044         VOPs of the needed size to save memory.  Use VEC_quick_push
11045         to save compile-time.
11046         (vdefs_to_vec): Likewise.
11047
11048 2008-01-07  Sa Liu  <saliu@de.ibm.com>
11049
11050         * config/spu/spu.md (divdf3): Genetate inline code for double
11051         division.  The implementation doesn't handle INF or NAN, therefore it
11052         only applies when -ffinite-math-only is given.
11053
11054 2008-01-06  Paolo Carlini  <pcarlini@suse.de>
11055
11056         PR libstdc++/34680
11057         * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
11058         * doc/cpp.texi ([Common Predefined Macros]): Document.
11059
11060 2008-01-06  Uros Bizjak  <ubizjak@gmail.com>
11061
11062         * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
11063         order to use commutative addition instead of subtraction.
11064
11065 2008-01-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11066             Mircea Namolaru  <namolaru@il.ibm.com>
11067             Vladimir Yanovsky  <yanov@il.ibm.com>
11068             Revital Eres  <eres@il.ibm.com>
11069
11070         PR tree-optimization/34263
11071         * tree-outof-ssa.c (process_single_block_loop_latch,
11072         contains_tree_r): New functions.
11073         (analyze_edges_for_bb): Call process_single_block_loop_latch
11074         function to empty single-basic-block latch block if possible.
11075
11076 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
11077
11078         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
11079         for TARGET_RECIP.
11080         (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
11081
11082 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
11083
11084         * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
11085
11086 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
11087
11088         * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
11089
11090 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
11091
11092         PR tree-optimization/34618
11093         * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
11094         flag from T.
11095
11096 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
11097
11098         PR target/34673
11099         * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
11100         in the call to gen_rtx_NE.  Remove unneeded VECTOR_MODE_P check.
11101         Update copyright year.
11102
11103         * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
11104         Update copyright year.
11105         * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
11106         using NR fixup.
11107
11108 2008-01-05  Zhouyi Zhou  <zhouzhouyi@FreeBSD.org>
11109
11110         * tree-vrp.c (find_conditional_asserts): Remove redundant check that
11111         edge does not point to current bb before changing need_assert.
11112
11113 2008-01-04  Richard Guenther  <rguenther@suse.de>
11114
11115         PR middle-end/34029
11116         * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
11117         for verifying purposes if they are is_gimple_min_invariant.
11118
11119 2008-01-04  Aldy Hernandez  <aldyh@redhat.com>
11120
11121         PR tree-optimization/34448
11122         PR tree-optimization/34465
11123         * gimplify.c (gimplify_init_constructor): Add new parameter
11124         notify_temp_creation.  Use it.
11125         (gimplify_modify_expr_rhs): Take volatiles into account when
11126         optimizing constructors.
11127         Do not optimize constructors if gimplify_init_constructor will dump to
11128         memory.
11129         * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
11130         * gcc.c-torture/compile/pr34448.c: New.
11131
11132 2008-01-04  Jakub Jelinek  <jakub@redhat.com>
11133
11134         PR gcov-profile/34609
11135         * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
11136         return_slot if result is TREE_ADDRESSABLE.
11137
11138 2008-01-04  Richard Sandiford  <rsandifo@nildram.co.uk>
11139
11140         * config/mips/mips.md (sqrt_condition): Tweak comment.
11141         (recip_condition): Likewise.  Require TARGET_FLOAT64 for DFmode.
11142
11143 2008-01-03  Tom Tromey  <tromey@redhat.com>
11144
11145         PR c/34457
11146         * c-common.c (c_type_hash): Handle VLAs.
11147
11148 2008-01-03  Jan Hubicka  <jh@suse.cz>
11149
11150         PR tree-optimization/31081
11151         * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
11152         0 when inlining and not inlining to first basic block.
11153         (remap_decl): When var is initialized to 0, don't set default_def.
11154         (expand_call_inline): Set entry_bb.
11155         * tree-inline.h (copy_body_data): Add entry_bb.
11156
11157 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
11158
11159         PR c++/34619
11160         * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
11161         before returning.
11162
11163         PR tree-optimization/29484
11164         * tree-inline.c (inline_forbidden_p_2): New function.
11165         (inline_forbidden_p): Disallow inlining if some static var
11166         has an address of a local LABEL_DECL in its initializer.
11167         * doc/extend.texi (Labels as Values): Document &&foo behaviour
11168         vs. inlining.
11169
11170 2008-01-03  Sebastian Pop  <sebastian.pop@amd.com>
11171
11172         PR tree-optimization/34635
11173         * tree-data-ref.c (add_other_self_distances): Make sure that the
11174         evolution step is constant.
11175
11176 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
11177
11178         PR middle-end/34608
11179         * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
11180
11181 2008-01-02  Richard Sandiford  <rsandifo@nildram.co.uk>
11182
11183         * tree-sra.c (scalarize_init): Insert the generate_element_init
11184         statements after the generate_element_zero statements.
11185
11186 2008-01-02  Richard Guenther  <rguenther@suse.de>
11187
11188         PR middle-end/34093
11189         PR middle-end/31976
11190         * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
11191         for very large number of operands instead of ICEing.
11192
11193 2008-01-02  Arthur Norman <acn1@cam.ac.uk>
11194
11195         PR target/34013
11196         * config/i386/i386.c (ix86_expand_prologue): Save red-zone
11197         while stack probing.
11198
11199 2008-01-01  Douglas Gregor  <doug.gregor@gmail.com>
11200
11201         * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
11202         in C++0x mode.
11203
11204 2008-01-01  Volker Reichelt  <v.reichelt@netcologne.de>
11205
11206         PR libmudflap/26442
11207         * tree-mudflap.c (mx_register_decls): Guard warning by
11208         !DECL_ARTIFICIAL check.
11209
11210 2008-01-01  Jakub Jelinek  <jakub@redhat.com>
11211
11212         * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
11213         sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
11214         sse5_perm<mode>): Fix constraints.