OSDN Git Service

* config/bfin/bfin.c (bfin_discover_loops): Delete empty loops.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2008-05-16  Bernd Schmidt  <bernd.schmidt@analog.com>
2
3         * config/bfin/bfin.c (bfin_discover_loops): Delete empty loops.
4
5         From Jie Zhang  <jie.zhang@analog.com>
6         * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
7         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Remove mcpu=bf532-0.3,
8         mcpu=bf561-none and mcpu=bf561-0.2.
9         * config/bfin/t-bfin-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
10         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
11         * config/bfin/t-bfin-linux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
12         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
13         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
14         BFIN_CPU_UNKNOWN.
15         * config/bfin/elf.h (STARTFILE_SPEC): Use specific CRT for
16         BF561.
17         (LIB_SPEC): Use proper linker script for bf561.  Error if no mcpu
18         option.
19         * config/bfin/bfin.c (bfin_cpu_type): Set to BFIN_CPU_UNKNOWN.
20         (cputype_selected): Remove.
21         (bfin_handle_option): Don't use cputype_selected.
22         (override_options): When no mcpu option, enable all workarounds.
23         Don't use bfin_workarounds.
24         * config/bfin/bfin.h (DRIVER_SELF_SPECS): Don't set default
25         processor type.
26         (DEFAULT_CPU_TYPE): Don't define.
27
28 2008-05-16  Richard Guenther  <rguenther@suse.de>
29
30         * tree-ssa-propagate.c (substitute_and_fold): Fix stmt walking
31         on deletion of the last stmt.
32
33 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
34
35         * config/i386/i386.c (ix86_expand_vector_init_general): Optimize
36         V8HImode for SSE2 and V16QImode for SSE4.1.
37
38 2008-05-15  Kenneth Zadeck <zadeck@naturalbridge.com>
39
40         * cgraph.h (compute_inline_parameters): Made public.
41         * tree-pass.h (ipa_opt_pass): Removed function_generate_summary,
42         variable_generate_summary, function_write_summary,
43         variable_write_summary, variable_read_summary.  Added 
44         generate_summary, write_summary, read_summary.
45         * cgraphunit.c (cgraph_process_new_functions): Changed call from
46         pass_ipa_inline.function_generate_summary, to
47         compute_inline_parameters. 
48         * ipa-inline.c (compute_inline_parameters): Made public and added
49         node parameter.
50         (compute_inline_parameters_for_current): New function.
51         (pass_inline_param): Now calls
52         compute_inline_parameters_for_current.
53         (inline_generate_summary): Removed parameter and made to loop over
54         all cgraph nodes.
55         (pass_ipa_inline): Updated for new IPA_PASS structure.
56         * passes.c (execute_ipa_summary_passes): Now is called once per
57         pass rather than once per node*pass.
58         
59 2008-05-15  Anatoly Sokolov <aesok@post.ru>
60
61         * config/avr/avr.c (avr_base_arch_macro, avr_have_movw_lpmx_p, 
62         avr_have_mul_p, avr_asm_only_p): Remove variables.
63         (avr_override_options): Remove initialization of removed variables.
64         (avr_file_start):  Convert removed variables to fields of 
65         'struct base_arch_s *avr_current_arch'. 
66         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): (Ditto.).
67         (AVR_HAVE_MUL): (Ditto.).
68         (AVR_HAVE_MOVW): (Ditto.).
69         (AVR_HAVE_LPMX): (Ditto.). 
70         (avr_base_arch_macro, avr_have_movw_lpmx_p, avr_have_mul_p, 
71         avr_asm_only_p): Remove declaration.
72
73 2008-05-15  Diego Novillo  <dnovillo@google.com>
74
75         * config/arm/arm.c (arm_return_in_memory): Fix return
76         type.
77         * config/arm/arm-protos.h (arm_return_in_memory): Likewise.
78
79 2008-05-15  Adam Nemet  <anemet@caviumnetworks.com>
80
81         PR middle-end/36194
82         * combine.c (check_conversion): Rename back to check_promoted_subreg. 
83         Don't call record_truncated_value from here. 
84         (record_truncated_value): Turn it into a for_each_rtx callback. 
85         (record_truncated_values): New function. 
86         (combine_instructions): Call note_uses with 
87         record_truncated_values.  Change name of check_conversion to 
88         check_promoted_subreg. 
89
90 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
91
92         * doc/sourcebuild.texi: Document support for torture tests.
93
94 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
95
96         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Add "m" constraint
97         to alternative 4 of operand 2.
98
99 2008-05-15  Richard Guenther  <rguenther@suse.de>
100
101         * tree-pass.h (current_pass): Declare.
102         (get_pass_for_id): Likewise.
103         * passes.c (passes_by_id, passes_by_id_size): New globals.
104         (set_pass_for_id): New function.
105         (get_pass_for_id): Likewise.
106         (register_one_dump_file): Use set_pass_for_id to populate passes_by_id.
107         (execute_function_todo): Flush per function statistics.
108         * toplev.c (compile_file): Init statistics.
109         (general_init): Do early statistics initialization.
110         (finalize): Finish statistics.
111         * statistics.h (statistics_early_init): Declare.
112         (statistics_init): Likewise.
113         (statistics_fini): Likewise.
114         (statistics_fini_pass): Likewise.
115         (statistics_counter_event): Likewise.
116         (statistics_histogram_event): Likewise.
117         * statistics.c: New file.
118         * Makefile.in (OBJS-common): Add statistics.o.
119         (statistics.o): Add dependencies.
120         * doc/invoke.texi (-fdump-statistics): Document.
121
122         * tree-ssa-pre.c (compute_antic): Use statistics_histogram_event.
123         (insert): Likewise.
124         (execute_pre): Use statistics_counter_event.
125         * tree-ssa-propagate.c (struct prop_stats_d): Add num_dce field.
126         (substitute_and_fold): Increment it.  Use statistics_counter_event.
127
128 2008-05-15  Diego Novillo  <dnovillo@google.com>
129
130         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00893.html
131
132         * treestruct.def (TS_STRUCT_FIELD_TAG): Remove.
133         * tree-ssa-alias.c (new_type_alias): Remove references to
134         sub-variables from comment.
135         * tree-ssa-operands.c (swap_tree_operands): Likewise.
136
137 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
138
139         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Set prefix_extra
140         attribute to 1 only for insertps alternative.
141
142 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
143
144         * config/bfin/bfin.md (loadbytes): New pattern.
145         * config/bfin/bfin.c (enum bfin_builtins): Add BFIN_BUILTIN_LOADBYTES.
146         (bfin_init_builtins): Initialize it.
147         (bdesc_1arg): Add it.
148
149 2008-05-15  Sa Liu  <saliu@de.ibm.com>
150
151         * testsuite/gfortran.dg/c_kind_int128_test1.f03: New.
152         * testsuite/gfortran.dg/c_kind_int128_test2.f03: New.
153         * testsuite/lib/target-supports.exp: Add
154         check_effective_target_fortran_integer_16.
155
156 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
157
158         * config/bfin/bfin.h (TARGET_RETURN_IN_MEMORY): Don't define here.
159         * config/bfin/bfin-protos.h (bfin_return_in_memory): Don't declare.
160         * config/bfin/bfin.c (bfin_return_in_memory): Now static.  Return bool.
161         (TARGET_RETURN_IN_MEMORY): Define.
162
163 2008-05-15  Richard Guenther  <rguenther@suse.de>
164
165         PR middle-end/36244
166         * tree-ssa-alias.c (new_type_alias): Do not set TREE_READONLY.
167         * tree-flow-inline.h (unmodifiable_var_p): Memory tags never
168         represent unmodifiable vars.
169
170 2008-05-15  Richard Guenther  <rguenther@suse.de>
171
172         * tree-dfa.c (refs_may_alias_p): Allow all kinds of
173         INDIRECT_REF and TARGET_MEM_REF.
174         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
175         TARGET_MEM_REF.
176
177 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
178             H.J. Lu  <hongjiu.lu@intel.com>
179
180         * config/i386/sse.md (*vec_concatv2sf_sse4_1): New insn pattern.
181         (*vec_concatv2si_sse4_1): Use vector_move_operand predicate
182         for operand 2.  Remove pinsr{q,d} with 0x0 immediate operand from
183         insn alternatives.  Add missing alternatives.
184         (*vec_concatv2di_rex64_sse4_1): Likewise.
185         (*vec_concatv2si_sse2): Use "x" register constraint instead of "Y2".
186         (*vec_concatv2di_rex64_sse): Rename from *vec_concatv2di_rex64.
187         Require TARGET_SSE.
188
189 2008-05-15  Richard Guenther  <rguenther@suse.de>
190
191         PR tree-optimization/36009
192         PR tree-optimization/36204
193         * tree-ssa-loop-im.c (tree-ssa-propagate.h): Include.
194         (determine_invariantness_stmt): Record the loop a store is
195         always executed in.
196         * Makefile.in (tree-ssa-loop-im.o): Add tree-ssa-propagate.h
197         dependency.
198
199 2008-05-15  Richard Guenther  <rguenther@suse.de>
200
201         PR tree-optimization/34330
202         * tree-ssa-alias.c (get_smt_for): Only assert that accesses
203         through the pointer will alias the SMT.
204
205 2008-05-14  Andreas Tobler  <a.tobler@schweiz.org>
206
207         * config/sparc/sparc.h (NO_PROFILE_COUNTERS): Define as 0.
208
209 2008-05-14  H.J. Lu  <hongjiu.lu@intel.com>
210
211         * config/i386/sse.md (*sse4_1_pinsrq): Make it 64bit only.
212
213 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
214             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
215
216         * optabs.h (optab_index): Add OTI_vashl, OTI_vlshr, OTI_vashr,
217         OTI_vrotl, OTI_vrotr to support vector/vector shifts.
218         (vashl_optab): New optab for vector/vector shifts.
219         (vashr_optab): Ditto.
220         (vlshr_optab): Ditto.
221         (vrotl_optab): Ditto.
222         (vrotr_optab): Ditto.
223         (optab_subtype): New enum for optab_for_tree_code call.
224         (optab_for_tree_code): Add enum optab_subtype argument.
225
226         * optabs.c (optab_for_tree_code): Take an additional argument to
227         distinguish between a vector shift by a scalar and vector shift by
228         a vector.  Make lshr/ashr/ashl/rotl/rotr optabs just vector
229         shifted by a scalar.  Use vlshr/vashr/vashl/vrotl/vrotr for the
230         vector shift by a vector.
231         (expand_widen_pattern_expr): Pass additional argument to
232         optab_for_tree_code.
233
234         * genopinit.c (optabs): Add vashr_optab, vashl_optab, vlshr_optab,
235         vrotl_optab, vrotr_optab.
236
237         * expr.c (expand_expr_real_1): Update calls to
238         optab_for_tree_code to distinguish between vector shifted by a
239         scalar and vector shifted by a vector.
240         * tree-vectorizer.c (supportable_widening_operation): Ditto.
241         (supportable_narrowing_operation): Ditto.
242         * tree-vect-analyze.c (vect_build_slp_tree): Ditto.
243         * tree-vect-patterns.c (vect_pattern_recog_1): Ditto.
244         * tree-vect-transform.c (vect_model_reduction_cost): Ditto.
245         (vect_create_epilog_for_reduction): Ditto.
246         (vectorizable_reduction): Ditto.
247         (vectorizable_operation): Ditto.
248         (vect_strided_store_supported): Ditto.
249         (vect_strided_load_supported): Ditto.
250         * tree-vect-generic.c (expand_vector_operations_1): Ditto.
251         * expmed.c (expand_shift): Ditto.
252
253         * doc/md.texi (ashl@var{m}3): Document that operand 2 is always a
254         scalar type.
255         (ashr@var{m}3): Ditto.
256         (vashl@var{m}3): Document new vector/vector shift standard name.
257         (vashr@var{m}3): Ditto.
258         (vlshr@var{m}3): Ditto.
259         (vrotl@var{m}3): Ditto.
260         (vrotr@var{m}3): Ditto.
261
262         * config/i386/i386.md (PPERM_SRC): Move PPERM masks here from i386.c.
263         (PPERM_INVERT): Ditto.
264         (PPERM_REVERSE): Ditto.
265         (PPERM_REV_INV): Ditto.
266         (PPERM_ZERO): Ditto.
267         (PPERM_ONES): Ditto.
268         (PPERM_SIGN): Ditto.
269         (PPERM_INV_SIGN): Ditto.
270         (PPERM_SRC1): Ditto.
271         (PPERM_SRC2): Ditto.
272
273         * config/i386/sse.md (mulv2di3): Add SSE5 support.
274         (sse5_pmacsdql_mem): New SSE5 define_and_split that temporarily
275         allows a memory operand to be the value being added, and split it
276         to improve vectorization.
277         (sse5_pmacsdqh_mem): Ditto.
278         (sse5_mulv2div2di3_low): SSE5 32-bit multiply and extend function.
279         (sse5_mulv2div2di3_high): Ditto.
280         (vec_pack_trunc_v8hi): Add SSE5 pperm support.
281         (vec_pack_trunc_v4si): Ditto.
282         (vec_pack_trunc_v2di): Ditto.
283         (sse5_pcmov_<mode>): Remove code that tried to use use
284         andps/andnps instead of pcmov.
285         (vec_widen_smult_hi_v4si): If we have SSE5, use the pmacsdql and
286         pmacsdqh instructions.
287         (vec_widen_smult_lo_v4si): Ditto.
288
289         * config/i386/i386.c (PPERM_SRC): Move PPERM masks to i386.md.
290         (PPERM_INVERT): Ditto.
291         (PPERM_REVERSE): Ditto.
292         (PPERM_REV_INV): Ditto.
293         (PPERM_ZERO): Ditto.
294         (PPERM_ONES): Ditto.
295         (PPERM_SIGN): Ditto.
296         (PPERM_INV_SIGN): Ditto.
297         (PPERM_SRC1): Ditto.
298         (PPERM_SRC2): Ditto.
299         (ix86_expand_sse_movcc): Move the SSE5 test after the if
300         true/false tests.
301         (ix86_expand_int_vcond): If SSE5 generate all possible integer
302         comparisons.
303         (ix86_sse5_valid_op_p): Allow num_memory to be negative, which
304         says ignore whether the last reference is a memory operand.
305
306 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
307             Paolo Bonzini <bonzini at gnu dot org>
308
309         * config/rs6000/rs6000.c (bdesc_2arg): Change the names of vector
310         shift patterns.
311
312         * config/rs6000/altivec.md (vashl<mode>3): Rename from ashl<mode>3.
313         (vlshr<mode>3): Rename from vlshr<mode>3.
314         (vashr<mode>3): Rename from vashr<mode>3.
315         (mulv4sf3): Change the names of vector shift patterns.
316         (mulv4si3): Ditto.
317         (negv4sf2): Ditt.
318
319         * config/spu/spu.c (spu_initialize_trampoline): Rename vector
320         shift insns.
321
322         * config/spu/spu-builtins.def (SI_SHLH): Rename vector shift insns.
323         (SI_SHLHI): Ditto.
324         (SI_SHL): Ditto.
325         (SI_SHLI): Ditto.
326         (SI_ROTH): Ditto.
327         (SI_ROTHI): Ditto.
328         (SI_ROT): Ditto.
329         (SI_ROTI): Ditto.
330         (SPU_RL_0): Ditto.
331         (SPU_RL_1): Ditto.
332         (SPU_RL_2): Ditto.
333         (SPU_RL_3): Ditto.
334         (SPU_RL_4): Ditto.
335         (SPU_RL_5): Ditto.
336         (SPU_RL_6): Ditto.
337         (SPU_RL_7): Ditto.
338         (SPU_SL_0): Ditto.
339         (SPU_SL_1): Ditto.
340         (SPU_SL_2): Ditto.
341         (SPU_SL_3): Ditto.
342         (SPU_SL_4): Ditto.
343         (SPU_SL_5): Ditto.
344         (SPU_SL_6): Ditto.
345         (SPU_SL_7): Ditto.
346
347         * config/spu/spu.md (v): New iterator macro to add v for vector types.
348         (floatunssidf2_internal): Change vector/vector shift names.
349         (floatunsdidf2_internal): Ditto.
350         (mulv8hi3): Ditto.
351         (ashrdi3): Ditto.
352         (ashrti3): Ditto.
353         (cgt_df): Ditto.
354         (cgt_v2df): Ditto.
355         (dftsv): Ditto.
356         (vashl<mode>3): Rename from ashl<mode>3.
357         (vashr<mode>3): Rename from ashr<mode>3.
358         (vlshr<mode>3): Rename from lshr<mode>3.
359         (vrotl<mode>3): Rename from rotl<mode>3.
360
361 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
362
363         PR target/36224
364         * config/i386/sse.md (vec_widen_smult_hi_v4si): Delete, using unsigned
365         multiply gives the wrong value when doing widening multiplies.
366         (vec_widen_smult_lo_v4si): Ditto.
367
368 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
369
370         * optabs.c (prepare_cmp_insn): Changed LCT_PURE_MAKE_BLOCK to
371         LCT_PURE and LCT_CONST_MAKE_BLOCK to LCT_CONST in calls to
372         emit_library_call_value. 
373         * builtins.c (expand_builtin_powi, expand_builtin_memcmp): Ditto.
374         * tree.h (ECF_LIBCALL_BLOCK): Removed.
375         * calls.c (initialize_argument_information, precompute_arguments, 
376         expand_call, emit_library_call_value_1): Remove ECF_LIBCALL_BLOCK.
377         (precompute_arguments): Removed flags parameter.
378         * rtl.h (LCT_CONST_MAKE_BLOCK, LCT_PURE_MAKE_BLOCK): Removed.
379         
380 2008-05-14  Richard Guenther  <rguenther@suse.de>
381
382         * tree-ssa-dse.c (dse_possible_dead_store_p): Remove dead code.
383         Make sure to register the store if the use is a PHI_NODE.
384
385 2008-05-14  Olivier Hainque  <hainque@adacore.com>
386
387         * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
388         memory if the component is to be referenced in BLKmode according
389         to get_inner_reference.
390
391 2008-05-14  Adam Nemet  <anemet@caviumnetworks.com>
392
393         * calls.c (emit_library_call_value_1): Restore code clearing
394         ECF_LIBCALL_BLOCK to ensure that we only call end_sequence once.
395
396 2008-05-14  Olivier Hainque  <hainque@adacore.com>
397             Nicolas Roche  <roche@adacore.com>
398
399         * configure.ac: Add support for a "gcc_subdir" variable in
400         config-lang.in, to denote a subdirectory where the language/GCC
401         integration files are to be found.
402         * configure: Regenerate.
403
404 2008-05-14  Ira Rosen  <irar@il.ibm.com>
405
406         PR tree-optimization/36098
407         * tree-vect-analyze.c (vect_analyze_group_access): Set the gap
408         value for the first load in the group in case of a gap.
409         (vect_build_slp_tree): Check that there are no gaps in loads.
410
411 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
412
413         * doc/rtl.texi: Removed reference to REG_NO_CONFLICT notes.
414         * optabs.c (expand_binop, expand_absneg_bit, expand_unop,
415         expand_copysign_bit, ): Change call to emit_no_conflict_block to
416         emit_insn and remove unneeded code to construct extra args.
417         (emit_no_conflict_block): Removed.
418         * optabls.h: (emit_no_conflict_block): Removed.
419         * cse.c (cse_extended_basic_block): Remove search for
420         REG_NO_CONFLICT note.
421         * global.c: Removed incorrect comment added in revision 117.
422         * expr.c (convert_move): Change call to emit_no_conflict_block to
423         emit_insn.
424         * recog.c: Change comments so that they do not mention
425         REG_NO_CONFLICT.
426         * local_alloc.c (combine_regs): Removed last parameter.
427         (no_conflict_p): Removed.
428         (block_alloc): Removed note, no_conflict_combined_regno and set
429         local vars. Removed all code to process REG_NO_CONFLICT blocks.
430         (combine_regs): Removed already_dead and code to look for
431         REG_NO_CONFLICT notes.
432         * lower_subreg (remove_retval_note): Removed code to look for
433         REG_NO_CONFLICT block.
434         (resolve_reg_notes): Removed REG_NO_CONFLICT case.
435         (resolve_clobber): Remove code to process libcalls that have
436         REG_NO_CONFLICT notes.
437         * loop_invariant.c (find_invariant_insn): Removed REG_NO_CONFLICT
438         case.
439         * combine.c (can_combine_p, distribute_notes):  Removed
440         REG_NO_CONFLICT case.
441         * config/cris/cris.md (movdi pattern): Changed emit_no_conflict_block
442         to emit_insns.
443         * config/mn10300/mn10300.md (absdf2, negdf2 patterns): Ditto.
444         * config/m68k/m68k.md (negdf2, negxf2, absdf2, absxf2 patterns):
445         Ditto.
446         * reg-notes.def (NO_CONFLICT): Removed.
447
448 2008-05-14  David S. Miller  <davem@davemloft.net>
449
450         * config/sparc/sparc.c (sparc_profile_hook): If
451         NO_PROFILE_COUNTERS, don't generate and pass a label into mcount.
452         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Define as 1.
453         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
454
455 2008-05-14  Andreas Krebbel  <krebbel1@de.ibm.com>
456
457         * cse.c (cse_cc_succs): Invoke delete_insn_and_edges.
458
459 2008-05-13  Uros Bizjak  <ubizjak@gmail.com>
460
461         PR target/36222
462         * config/i386/i386.c (ix86_expand_vector_init_general): Rearrange op0
463         and op1 expansion before vector concat to have less live pseudos.
464
465 2008-05-13  H.J. Lu  <hongjiu.lu@intel.com>
466
467         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
468         ix86_expand_vector_set if supported.
469
470 2008-05-13  Diego Novillo  <dnovillo@google.com>
471             Kenneth Zadeck  <zadeck@naturalbridge.com>
472
473         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00748.html
474
475         * tree.h (init_phinodes, fini_phinodes, release_phi_node,
476         phinodes_print_statistics, init_ssanames, fini_ssanames,
477         make_ssa_name, duplicate_ssa_name, duplicate_ssa_name_ptr_info,
478         release_ssa_name, release_defs, replace_ssa_name_symbol,
479         ssanames_print_statistics): Move ...
480         * tree-flow.h: ... here.
481         * tree-ssanames.c (init_ssanames): Add arguments FN and SIZE.
482         Use FN instead of cfun.
483         (make_ssa_name_fn): Rename from make_ssa_name.
484         (pass_release_ssa_names): Add TODO_dump_func to finish flags.
485         * tree-flow-inline.h (make_ssa_name): Move from
486         tree-ssanames.c.  Convert to static inline.  Call make_ssa_name_fn.
487         * omp-low.c (expand_omp_parallel):
488         * tree-flow-inline.h (redirect_edge_var_map_result):
489         * tree-ssa.c (init_tree_ssa): Add argument FN.
490         Use it instead of cfun.  Update all users.
491
492 2008-05-13  Tom Tromey  <tromey@redhat.com>
493
494         PR preprocessor/22168:
495         * doc/cpp.texi (Top): Update menu.
496         (Alternatives to Wrapper #ifndef): New node.
497         (Other Directives): Document deprecation.
498         (Obsolete Features): Remove menu.
499         (Assertions): Merge node into Obsolete Features.
500         (Obsolete once-only headers): Move earlier; rename to Alternatives
501         to Wrapper #ifndef.
502         * doc/cppopts.texi: Update.
503         * c.opt (Wdeprecated): Enable for C and ObjC.
504         * doc/invoke.texi (Option Summary): Move -Wno-deprecated.
505         (C++ Dialect Options): Move -Wno-deprecated from here to...
506         (Warning Options): ... here.
507
508 2008-05-13  Richard Guenther  <rguenther@suse.de>
509
510         PR middle-end/36227
511         * fold-const.c (fold_sign_changed_comparison): Do not allow
512         changes in pointer-ness.
513
514 2008-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
515
516         PR target/24713
517         * config/sh/sh.c (sh_expand_prologue): Don't clear
518         RTX_FRAME_RELATED_P for push insns.
519
520 2008-05-12  Andy Hutchinson  <hutchinsonandy@aim.com>
521
522         * config/avr/avr.h (MAX_OFILE_ALIGNMENT): Define.
523
524 2008-05-12  Anatoly Sokolov <aesok@post.ru>
525
526         * config/avr/avr.h (machine_function): Add 'is_leaf' field.
527         * config/avr/avr.c (avr_regs_to_save): Compute 'machine->is_leaf'.
528         Use 'machine->is_leaf' instead of 'leaf_func_p'.
529
530 2008-05-12  H.J. Lu  <hongjiu.lu@intel.com>
531
532         * config/i386/sse.md (*sse_concatv4sf): Renamed to ...
533         (*vec_concatv4sf_sse): This.
534         (*sse2_concatv2si): Renamed to ...
535         (*vec_concatv2si_sse2): This.
536         (*sse1_concatv2si): Renamed to ...
537         (*vec_concatv2si_sse): This.
538         (*vec_concatv2di_rex): Renamed to ...
539         (*vec_concatv2di_rex64): This.
540         (*vec_concatv2si_sse4_1): New.
541         (*vec_concatv2di_rex64_sse4_1): Likewise.
542
543 2008-05-12  Uros Bizjak  <ubizjak@gmail.com>
544
545         PR rtl-optimization/36111
546         * recog.c (validate_replace_rtx_1): Unshare new RTL expression
547         that was created for swappable operands.
548
549 2008-05-12  Samuel Tardieu  <sam@rfc1149.net>
550
551         PR ada/36001
552         * Makefile.in: Substitute GNATMAKE and GNATBIND.
553         * configure.ac: Add call to ACX_PROG_GNAT.
554
555 2008-05-11  Volker Reichelt  <v.reichelt@netcologne.de>
556
557         * optc-gen.awk: Fix comment typo.
558
559 2008-05-11  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
560
561         * pretty-print.c (pp_integer_with_precision): Use
562         HOST_LONG_LONG_FORMAT.
563
564 2008-05-10  Kenneth Zadeck  <zadeck@naturalbridge.com>
565
566         * gcse.c (store_killed_in_insn): Negated call to RTL_CONST_CALL_P.
567                 
568 2008-05-10  H.J. Lu  <hongjiu.lu@intel.com>
569
570         * config/i386/i386.c (bdesc_ptest): Removed.
571         (ix86_builtin_type): Add INT_FTYPE_V2DI_V2DI_PTEST.
572         (bdesc_args): Add __builtin_ia32_ptestz128,
573         __builtin_ia32_ptestc128 and __builtin_ia32_ptestnzc128.
574         (ix86_init_mmx_sse_builtins): Updated.
575         (ix86_expand_args_builtin): Handle INT_FTYPE_V2DI_V2DI_PTEST.
576         (ix86_expand_builtin): Updated.
577
578 2008-05-10  Richard Sandiford  <rdsandiford@googlemail.com>
579
580         * tree-cfg.c (valid_fixed_convert_types_p): New function.
581         (verify_gimple_expr): Handle FIXED_CONVERT_EXPR.
582
583 2008-05-10  Uros Bizjak  <ubizjak@gmail.com>
584
585         * value-prof.c (interesting_stringop_to_profile): Do not
586         return early for BUILT_IN_MEMPCPY.
587
588 2008-05-09  H.J. Lu  <hongjiu.lu@intel.com>
589
590         * calls.c (expand_call): Don't use callgraph to increase
591         preferred_stack_boundary.
592
593         * cgraph.h (cgraph_rtl_info): Use unsigned on
594         preferred_incoming_stack_boundary.
595
596         * final.c (rest_of_clean_state): Use unsigned on
597         preferred_stack_boundary.
598
599 2008-05-09  Tom Tromey  <tromey@redhat.com>
600
601         PR preprocessor/22231:
602         * c-opts.c (sanitize_cpp_opts): Disallow -MG if compilation is
603         proceeding.
604
605 2008-05-09  Uros Bizjak  <ubizjak@gmail.com>
606
607         PR tree-optimization/36129
608         * tree-ssa-ccp.c: Include value-prof.h.
609         (execute_fold_all_builtins): Call gimple_remove_stmt_histograms if
610         built-in function was folded to a constant.
611         * Makefile.in (tree-ssa-ccp.c): Depend on value-prof.h
612
613 2008-05-09  Jan Sjodin  <jan.sjodin@amd.com>
614             Sebastian Pop  <sebastian.pop@amd.com>
615
616         * tree-scalar-evolution.c: Document instantiate_scev.
617         (instantiate_parameters_1): Renamed instantiate_scev_1.
618         Don't use the same loop for instantiation_loop and evolution_loop.
619         (instantiate_scev): New.
620         (instantiate_parameters): Moved...
621         (resolve_mixers): Update call to instantiate_scev_1 to pass the
622         same loop twice.  Maintains the semantics for this function.
623         * tree-scalar-evolution.h (instantiate_scev): Declare.
624         (instantiate_parameters): ...here.  Now static inline.
625         * tree-data-ref.c (dr_analyze_indices): Call instantiate_scev
626         instead of resolve_mixers.
627
628 2008-05-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
629
630         * rtl-factoring.c (collect_pattern_seqs): Fix typo.
631
632 2008-05-09  Tomas Bily  <tbily@suse.cz>
633
634         * config/pa/pa.c (reloc_needed): Use CASE_CONVERT.
635         * tree-cfg.c (verify_expr, verify_gimple_expr): Likewise.
636         * tree-ssa-structalias.c (get_constraint_for): Likewise.
637         * c-common.c (c_common_truthvalue_conversion): Likewise.
638         * tree-object-size.c (compute_object_offset): Likewise.
639         * tree-inline.c (estimate_num_insns_1): Likewise.
640         * varasm.c (const_hash_1, compare_constant, copy_constant)
641         (compute_reloc_for_constant, output_addressed_constants)
642         (initializer_constant_valid_p): Likewise.
643         * c-omp.c (check_omp_for_incr_expr): Likewise.
644         * gimplify.c (gimplify_expr): Likewise.
645         * c-typeck.c (c_finish_return): Likewise.
646         * tree-vectorizer.c (supportable_widening_operation)
647         (supportable_narrowing_operation): Likewise.
648         * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Likewise.
649         * matrix-reorg.c (can_calculate_expr_before_stmt): Likewise.
650         * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
651         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info)
652         (descr_info_loc): Likewise.
653         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
654         * fold-const.c (operand_equal_p, make_range, extract_muldiv_1)
655         (fold_unary): Likewise.
656         * builtins.c (get_pointer_alignment): Likewise.
657         * tree-scalar-evolution.c (interpret_rhs_modify_stmt)
658         (instantiate_parameters_1): Likewise.
659         * tree.c (expr_align, stabilize_reference): Likewise.
660         * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
661         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
662         * convert.c (strip_float_extensions): Use CONVERT_EXPR_P.
663         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
664         * config/alpha/alpha.c (va_list_skip_additions): Likewise.
665         * c-common.c (c_alignof_expr, check_function_arguments_recurse):
666         Likewise.
667         * tree-ssa.c (tree_ssa_useless_type_conversion): Likewise.
668         * varasm.c (initializer_constant_valid_p, output_constant): Likewise.
669         * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
670         (forward_propagate_addr_expr_1, forward_propagate_addr_expr)
671         (forward_propagate_comparison)
672         (tree_ssa_forward_propagate_single_use_vars): Likewise.
673         * cfgexpand.c (discover_nonconstant_array_refs_r): Likewise.
674         * emit-rtl.c (component_ref_for_mem_expr)
675         (set_mem_attributes_minus_bitpos): Likewise.
676         * tree-ssa-phiopt.c (conditional_replacement): Likewise.
677         * gimplify.c (gimplify_conversion, goa_lhs_expr_p, gimplify_expr):
678         Likewise.
679         * c-typeck.c (default_function_array_conversion, build_indirect_ref)
680         (build_function_call, pointer_diff, build_compound_expr)
681         (c_finish_return): Likewise.
682         * tree-vect-analyze.c (vect_determine_vectorization_factor): Likewise.
683         * matrix-reorg.c (get_inner_of_cast_expr, may_flatten_matrices_1):
684         Likewise.
685         * tree-ssa-ifcombine.c (recognize_single_bit_test): Likewise.
686         * expr.c (is_aligning_offset): Likewise.
687         * tree-ssa-alias.c (is_escape_site): Likewise.
688         * tree-stdarg.c (va_list_counter_bump, check_va_list_escapes)
689         (check_all_va_list_escapes): Likewise.
690         * tree-ssa-loop-ivopts.c (determine_base_object)
691         (determine_common_wider_type): Likewise.
692         * dojump.c (do_jump): Likewise.
693         * tree-ssa-sccvn.c (simplify_unary_expression): Likewise.
694         * tree-gimple.c (is_gimple_cast): Likewise.
695         * fold-const.c (decode_field_reference, )
696         (fold_sign_changed_comparison, fold_unary, fold_comparison)
697         (fold_binary): Likewise.
698         * tree-ssa-alias-warnings.c (find_alias_site_helper)
699         (already_warned_in_frontend_p): Likewise.
700         * builtins.c (get_memory_rtx, fold_builtin_next_arg): Likewise.
701         * tree.c (really_constant_p, get_unwidened): Likewise.
702         * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
703         * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
704         * tree-vrp.c (register_edge_assert_for_2, register_edge_assert_for_1):
705         Likewise.
706         * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Use
707         CONVERT_EXPR_P.
708         (CONVERT_EXPR_P): Define.
709         (CASE_CONVERT): Define.
710         
711 2008-05-08  Kenneth Zadeck  <zadeck@naturalbridge.com>
712
713         PR middle-end/36117
714         * dce.c (deletable_insn_p): Do not delete calls if df_in_progress.
715         (delete_unmarked_insns): When deleting a call, call
716         delete_unreachable_blocks.
717         * rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
718         RTL_CONST_OR_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P): Fixed doc.
719
720 2008-05-08  Richard Guenther  <rguenther@suse.de>
721
722         * doc/invoke.texi (-fdump-tree-salias): Remove documentation.
723         (-ftree-salias): Likewise.
724         (salias-max-implicit-fields): Remove param documentation.
725         (salias-max-array-elements): Likewise.
726         * tree-pass.h (pass_create_structure_vars): Remove.
727         * params.h (SALIAS_MAX_IMPLICIT_FIELDS): Remove.
728         (SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
729         * tree-ssa-alias.c (create_structure_vars): Remove.
730         (gate_structure_vars): Likewise.
731         (pass_create_structure_vars): Likewise.
732         (gate_build_alias): Likewise.
733         (pass_build_alias): Adjust to run always and dump the function.
734         * common.opt (ftree-salias): Hide.
735         * passes.c (init_optimization_passes): Remove
736         pass_create_structure_vars, adjust comment.
737         * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): Remove.
738         (PARAM_SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
739         * opts.c (decode_options): Do not set flag_tree_salias.
740         (common_handle_option): Add OPT_ftree_salias to the backward
741         compatibility section.
742
743 2008-05-08  Richard Guenther  <rguenther@suse.de>
744
745         * tree-flow-inline.h (var_can_have_subvars): Move ...
746         * tree-ssa-structalias.c (var_can_have_subvars): ... here.
747         * tree-flow.h (var_can_have_subvars): Remove.
748         (push_fields_onto_fieldstack): Remove.
749         (sort_fieldstack): Likewise.
750         (struct fieldoff): Move ...
751         * tree-ssa-structalias.c (struct fieldoff): ... here.  Remove
752         alias_set and base_for_components fields.
753         (sort_fieldstack): Make static.
754         (push_fields_onto_fieldstack): Likewise.  Remove code that
755         handles anything but RECORD_TYPEs.  Remove alias_set and
756         base_for_components handling.
757         (create_variable_info_for): Adjust.
758
759 2008-05-08  Seongbae Park  <seongbae.park@gmail.com>
760
761         * common.opt (Wframe-larger-than=): Shorten the help message
762         to one line.
763         * doc/invoke.texi (Wframe-larger-than=): Add more description.
764
765 2008-05-08  Rafael Espindola  <espindola@google.com>
766
767         * tree-complex.c (expand_complex_div_wide): Don't create CONDs that
768         trap.
769         * tree-gimple.c (is_gimple_condexpr): Check that the expression doesn't
770         trap and that both operands are gimple values.
771         (canonicalize_cond_expr_cond): Use is_gimple_condexpr.
772         * gcc/tree-eh.c (tree_could_trap_p): Correctly detect if a comparison
773         is a fp operation.
774
775 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
776
777         * read-rtl.c (join_c_conditions): Return the first string if the
778         two strings are equal.
779
780 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
781
782         * gensupport.h (pred_data): Add a "num_codes" field.
783         (add_predicate_code): Declare.
784         * gensupport.c (add_predicate_code): New function.
785         (std_pred_table): Add an "allows_const_p" field.
786         (std_preds): Set this field for predicates that allow RTX_CONST_OBJs.
787         Remove the (incomplete) list of such codes from the codes field.
788         (init_predicate_table): Use add_predicate_code.  Add all
789         RTX_CONST_OBJs if allows_const_p is true.
790         * genrecog.c (process_define_predicate): Use add_predicate_code.
791
792 2008-05-08  David Daney  <ddaney@avtrex.com>
793             Richard Sandiford  <rsandifo@nildram.co.uk>
794         
795         * config/mips/mips.md (mips_expand_compare_and_swap_12): Handle
796         special case of constant zero operands.
797         * config/mips/mips.c (mips_expand_compare_and_swap_12): Zero extend
798         old and new values.  Special case constant zero values.
799         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Skip 'sync' if compare
800         fails.
801         (MIPS_COMPARE_AND_SWAP_12): Handle constant zero operands.
802         (MIPS_COMPARE_AND_SWAP_12_0): New macro.
803
804 2008-05-08  Paolo Bonzini  <bonzini@gnu.org>
805
806         PR target/36090
807         * simplify-rtx.c (simplify_plus_minus): Create CONST of
808         similar RTX_CONST_OBJ before CONST_INT.
809
810 2008-05-08  Steve Ellcey  <sje@cup.hp.com>
811
812         * stmt.c (expand_stack_restore): Change sa mode if needed.
813
814 2008-05-08  Richard Guenther  <rguenther@suse.de>
815
816         * config/i386/i386-protos.h (ix86_return_in_memory): Adjust
817         return type to bool.
818         (ix86_sol10_return_in_memory): Likewise.
819         (ix86_i386elf_return_in_memory): Likewise.
820         (ix86_i386interix_return_in_memory): Likewise.
821         * config/i386/i386.c (ix86_return_in_memory): Likewise.
822         (ix86_sol10_return_in_memory): Likewise.
823         (ix86_i386elf_return_in_memory): Likewise.
824         (ix86_i386interix_return_in_memory): Likewise.
825
826 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
827
828         PR bootstrap/36180
829         * calls.c (compute_argument_block_size ): Add ATTRIBUTE_UNUSED to
830         fndecl argument.
831         (emit_library_call_value_1): Add ATTRIBUTE_UNUSED to variable fndecl.
832         * target-def.h: Check that TARGET_RETURN_IN_MEMORY isn't
833         declared in front.
834
835 2008-05-08  Richard Guenther  <rguenther@suse.de>
836
837         * tree-data-ref.c (dr_analyze_alias): Do not set DR_SUBVARS.
838         * tree-data-ref.h (struct dr_alias): Remove subvars field.
839         (DR_SUBVARS): Remove.
840         * tree-dfa.c (dump_subvars_for): Remove.
841         (debug_subvars_for): Likewise.
842         (dump_variable): Do not dump subvars.
843         (remove_referenced_var): Do not remove subvars.
844         * tree-flow-inline.h (clear_call_clobbered): SFTs no longer exist.
845         (lookup_subvars_for_var): Remove.
846         (get_subvars_for_var): Likewise.
847         (get_subvars_at): Likewise.
848         (get_first_overlapping_subvar): Likewise.
849         (overlap_subvar): Likewise.
850         * tree-flow.h (subvar_t): Remove.
851         (struct var_ann_d): Remove subvars field.
852         * tree-ssa-alias.c (mark_aliases_call_clobbered): Remove queued
853         argument.  Remove special handling of SFTs.
854         (compute_tag_properties): Likewise.
855         (set_initial_properties): Likewise.
856         (compute_call_clobbered): Likewise.
857         (count_mem_refs): Likewise.
858         (compute_memory_partitions): Likewise.
859         (compute_flow_insensitive_aliasing): Likewise.
860         (setup_pointers_and_addressables): Likewise.
861         (new_type_alias): Likewise.
862         (struct used_part): Remove.
863         (used_portions): Likewise.
864         (struct used_part_map): Likewise.
865         (used_part_map_eq): Likewise.
866         (used_part_map_hash): Likewise.
867         (free_used_part_map): Likewise.
868         (up_lookup): Likewise.
869         (up_insert): Likewise.
870         (get_or_create_used_part_for): Likewise.
871         (create_sft): Likewise.
872         (create_overlap_variables_for): Likewise.
873         (find_used_portions): Likewise.
874         (create_structure_vars): Likewise.
875         * tree.def (STRUCT_FIELD_TAG): Remove.
876         * tree.h (MTAG_P): Adjust.
877         (struct tree_memory_tag): Remove base_for_components and
878         unpartitionable flags.
879         (struct tree_struct_field_tag): Remove.
880         (SFT_PARENT_VAR): Likewise.
881         (SFT_OFFSET): Likewise.
882         (SFT_SIZE): Likewise.
883         (SFT_NONADDRESSABLE_P): Likewise.
884         (SFT_ALIAS_SET): Likewise.
885         (SFT_UNPARTITIONABLE_P): Likewise.
886         (SFT_BASE_FOR_COMPONENTS_P): Likewise.
887         (union tree_node): Remove sft field.
888         * alias.c (get_alias_set): Remove special handling of SFTs.
889         * print-tree.c (print_node): Remove handling of SFTs.
890         * tree-dump.c (dequeue_and_dump): Likewise.
891         * tree-into-ssa.c (mark_sym_for_renaming): Likewise.
892         * tree-nrv.c (dest_safe_for_nrv_p): Remove special handling of SFTs.
893         * tree-predcom.c (set_alias_info): Do not set subvars.
894         * tree-pretty-print.c (dump_generic_node): Do not handle SFTs.
895         * tree-ssa-loop-ivopts.c (get_ref_tag): Likewise.
896         * tree-ssa-operands.c (access_can_touch_variable): Likewise.
897         (add_vars_for_offset): Remove.
898         (add_virtual_operand): Remove special handling of SFTs.
899         (add_call_clobber_ops): Likewise.
900         (add_call_read_ops): Likewise.
901         (get_asm_expr_operands): Likewise.
902         (get_modify_stmt_operands): Likewise.
903         (get_expr_operands): Likewise.
904         (add_to_addressable_set): Likewise.
905         * tree-ssa.c (verify_ssa_name): Do not handle SFTs.
906         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
907         * tree-vect-transform.c (vect_create_data_ref_ptr): Do not set subvars.
908         * tree.c (init_ttree): Remove STRUCT_FIELD_TAG initialization.
909         (tree_code_size): Remove STRUCT_FIELD_TAG handling.
910         (tree_node_structure): Likewise.
911         * tree-ssa-structalias.c (set_uids_in_ptset): Remove special
912         handling of SFTs.
913         (find_what_p_points_to): Likewise.
914
915 2008-05-08  Sa Liu  <saliu@de.ibm.com>
916
917         * config/spu/spu.md: Fixed subti3 pattern.
918
919 2008-05-08  Richard Guenther  <rguenther@suse.de>
920
921         PR middle-end/36154
922         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
923         sure to create a representative for trailing arrays for PTA.
924
925 2008-05-08  Richard Guenther  <rguenther@suse.de>
926
927         PR middle-end/36172
928         * fold-const.c (operand_equal_p): Two objects which types
929         differ in pointerness are not equal.
930
931 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
932
933         * calls.c (compute_argument_block_size): Add argument tree fndecl.
934         (OUTGOING_REG_PARM_STACK_SPACE): Add function type argument.
935         (emit_library_call_value_1): Add new variable fndecl initialized by
936         NULL_TREE. It should be the decl type of orgfun, but this information
937         seems not to be available here, so it uses the default calling abi.
938         * config/arm/arm.c (arm_return_in_memory): Add fntype argumen.
939         * config/arm/arm.h (RETURN_IN_MEMORY): Replace RETURN_IN_MEMORY
940         by TARGET_RETURN_IN_MEMORY.
941         * config/i386/i386-interix.h: Likewise.
942         * config/i386/i386.h: Likewise.
943         * config/i386/i386elf.h: Likewise.
944         * config/i386/ptx4-i.h: Likewise.
945         * config/i386/sol2-10.h: Likewise.
946         * config/i386/sysv4.h: Likewise.
947         * config/i386/vx-common.h: Likewise.
948         * config/cris/cris.h: Removed #if 0 clause.
949         * config/arm/arm-protos.h (arm_return_in_memory): Add fntype argument.
950         * config/i386/i386-protos.h (ix86_return_in_memory): Add fntype
951         argument.
952         (ix86_sol10_return_in_memory): Likewise.
953         (ix86_i386elf_return_in_memory): New.
954         (ix86_i386interix_return_in_memory): New.
955         * config/mt/mt-protos.h (mt_return_in_memory): New.
956         * config/mt/mt.c: Likewise.
957         * config/mt/mt.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
958         (RETURN_IN_MEMORY):  Replace by TARGET_RETURN_IN_MEMORY.
959         * config/bfin/bfin.h: Likewise.
960         * config/bfin/bfin-protos.h (bfin_return_in_memory): Add fntype
961         argument.
962         * config/bfin/bfin.c: Likewise.
963         * config/pa/pa.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
964         * config/alpha/unicosmk.h: Likewise.
965         * config/i386/cygming.h: Likewise.
966         * config/iq2000/iq2000.h: Likewise.
967         * config/mips/mips.h: Likewise.
968         * config/mn10300/mn10300.h: Likewise.
969         * config/rs6000/rs6000.h: Likewise.
970         * config/score/score.h: Likewise.
971         * config/spu/spu.h: Likewise.
972         * config/v850/v850.h: Likewise.
973         * defaults.h: Likewise.
974         * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Adjust documentation.
975         * expr.c (emit_block_move): Adjust use of
976         OUTGOING_REG_PARM_STACK_SPACE.
977         * function.c (STACK_DYNAMIC_OFFSET): Adjust use of
978         OUTGOING_REG_PARM_STACK_SPACE.
979         * targhooks.c (default_return_in_memory): Remove RETURN_IN_MEMORY.
980
981 2008-05-08  Jakub Jelinek  <jakub@redhat.com>
982
983         * tree-parloops.c (create_parallel_loop): Set OMP_RETURN_NOWAIT
984         on OMP_RETURN for OMP_FOR.
985
986         PR debug/35896
987         * dwarf2out.c (dw_expand_expr, common_check): Removed.
988         (fortran_common): New function.
989         (gen_variable_die): Call fortran_common instead of common_check,
990         adjust for it returning tree instead of rtx.  Formatting.
991
992 2008-05-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
993
994         PR rtl/7335
995         PR rtl/33826
996         * see.c (see_copy_insn): Copy new pure const attributes for new call.
997         * c-decl.c (merge_decls): Ditto.
998         * postreload.c (record_opr_changes): Change CONST_OR_PURE_CALL_P
999         to RTL_CONST_OR_PURE_CALL_P.
1000         * tree.c (define_local_buitin): Rename DECL_IS_PURE to DECL_PURE_P.
1001         Initialized DECL_LOOPING_CONST_PURE.
1002         (process_call_operands): Set tree_side_effects properly.
1003         * tree.h (TREE_READONLY_DECL_P): Removed.
1004         (DECL_IS_PURE): Renamed to DECL_PURE_P.
1005         (DECL_LOOPING_OR_CONST_P): New macro.
1006         (struct tree_function_decl): Added looping_const_or_pure_p.
1007         (ECF_*) Renumbered.
1008         (ECF_LOOPING_OR_CONST_P): New macro.
1009         * rtlanal.c (pure_const_p): Removed.
1010         * builtins.c (expand_builtin): Rename DECL_IS_PURE to DECL_PURE_P.
1011         * reorg.c (delete_prior_computation) Changed CONST_OR_PURE_CALL_P
1012         to RTL_CONST_CALL_P.
1013         * ipa-pure-const.c (pure_const_state_e): Added looping field.
1014         (check_decl, check_tree, check_call, scan_function): Initialize
1015         looping.
1016         (analyze_function): Rename DECL_IS_PURE to DECL_PURE_P.
1017         (static_execute): Set looping true for recursive functions.
1018         Undo setting state to IPA_NEITHER for recursive functions.
1019         * cse.c (cse_insn): 
1020         * ifcvt.c (noce_can_store_speculate_p): Changed
1021         CONST_OR_PURE_CALL_P and pure_call_p to RTL_CONST_CALL_P or 
1022         RTL_CONST_OR_PURE_CALL_P.
1023         * dse.c (scan_insn): Ditto.
1024         * local-alloc.c (validate_equiv_mem, memref_used_between_p): Ditto.
1025         * gcse.c (oprs_not_seen_p) Changed CONST_OR_PURE_CALL_P to
1026         RTL_CONST_OR_PURE_CALL_P.
1027         (store_killed_in_insn): Changed CONST_OR_PURE_CALL_P and
1028         pure_call_p to RTL_CONST_CALL_P.
1029         * gimplify.c (gimplify_call_expr): Clear side effects for
1030         non-looping pure and constant calls.
1031         * calls.c (emit_call_1): Set rtl flags from ecf flags.
1032         (flags_from_decl_or_type): Set ecf flags from decl flags.
1033         (initialize_argument_information): Turn off
1034         ECF_LOOPING_CONST_OR_PURE when turning off ECF_CONST.
1035         Change const to pure if callee_copies is true rather than just
1036         turning off const.
1037         (expand_call): Turn off ECF_LOOPING_PURE_CONST_CALL and remove old
1038         way of marking pure calls.
1039         (emit_library_call_value_1): Turn off ECF_LOOPING_PURE_CONST_CALL.
1040         Remove hack that was supposed to fix pr7335 and remove old
1041         way of marking pure calls.
1042         * emit-rtl.c (emit_copy_of_insn_after): Copy RTL_CONST_CALL_P,
1043         RTL_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P.
1044         * cselib.c (cselib_process_insn): Changed CONST_OR_PURE_CALL_P to
1045         RTL_CONST_OR_PURE_CALL_P.
1046         * tree-ssa-pre.c (can_value_number_call): Fixed spacing.
1047         * loop-invariant.c (find_exits, find_invariant_bb): Changed
1048         CONST_OR_PURE_CALL_P to RTL_CONST_OR_PURE_CALL_P.
1049         * sched-deps.c (schedule_analyze): Ditto.
1050         * rtl.h (struct rtx_def): Use call field, unchanging field, and
1051         return_val field of calls to represent pure and const function info.
1052         (CONST_OR_PURE_CALL_P): Deleted macro.
1053         (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
1054         RTL_LOOPING_CONST_OR_PURE_CALL_P, RTL_CONST_OR_PURE_P): New macros.
1055         * tree-inline.c (copy_body_r): Changed TREE_READONLY_DECL_P to
1056         TREE_READONLY.
1057         * tree-optimize.c (execute_fixup_cfg): Added test for
1058         ECF_LOOPING_CONST_OR_PURE.
1059         * c-common.c (handle_pure_attribute): Changed DECL_IS_PURE to
1060         DECL_PURE_P.
1061         * tree-cfg.c (update_call_expr_flags): Do not clear tree side
1062         effects for looping pure or const calls.
1063         (verify_gimple_expr): Added verification code. 
1064         * config/alpha/alpha.c (alpha_legitimize_address,
1065         alpha_emit_xfloating_libcall): Changed CONST_OR_PURE_CALL_P to
1066         RTL_CONST_CALL_P.
1067         * config/s390/s390.c (s390_emit_tls_call_insn): Ditto.
1068         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Ditto.
1069         * config/mips/mips.c (mips_call_tls_get_addr): Ditto.
1070         * cfgrtl.c (need_fake_edge_p): Changed CONST_OR_PURE_CALL_P to
1071         RTL_CONST_OR_PURE_CALL_P.
1072         * dce.c (deletable_insn_p): Allow non looping, non sibling, pure
1073         and const calls to be deleted.
1074
1075 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
1076
1077         PR target/35714
1078         * config/i386/mmx.md (mmx_subv2sf3): New expander.
1079         (*mmx_subv2sf3): Rename from mmx_subv2sf3 insn pattern.
1080         (*mmx_eqv2sf3): Rename from mmx_eqv2sf3 insn pattern.
1081         (mmx_eqv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
1082         to handle nonimmediate operands.
1083         (*mmx_paddwd): Rename from mmx_paddwd insn pattern.
1084         (mmx_paddwd): New expander.  Use ix86_fixup_binary_operands_no_copy
1085         to handle nonimmediate operands.
1086         (*mmx_pmulhrwv4hi3): Rename from mmx_pmulhrwv4hi3 insn pattern.
1087         (mmx_pmulhrwv4hi3): New expander.  Use
1088         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1089         (*sse2_umulv1siv1di3): Rename from sse2_umulv1siv1di3 insn pattern.
1090         (sse2_umulv1siv1di3): New expander.  Use
1091         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1092         (*mmx_eq<mode>3): Rename from mmx_eq<mode>3 insn pattern.
1093         (mmx_eq<mode>3): New expander.  Use
1094         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1095         (*mmx_uavgv8qi3): Rename from mmx_uavgv8qi3 insn pattern.
1096         (mmx_uavgv8qi3): New expander.  Use
1097         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1098         (*mmx_uavgv4hi3): Rename from mmx_uavgv4hi3 insn pattern.
1099         (mmx_uavgv4hi3): New expander.  Use
1100         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1101
1102         * config/i386/sse.md
1103         (sse_movhlps_exp): New expander.  Use ix86_fixup_binary_operands
1104         to handle nonimmediate operands.
1105         (sse_movlhps_exp): New expander.  Use ix86_fixup_binary_operands
1106         to handle nonimmediate operands.
1107         (sse_loadhps_exp): New expander.  Use ix86_fixup_binary_operands
1108         to handle nonimmediate operands.
1109         (sse_loadlps_exp): New expander.  Use ix86_fixup_binary_operands
1110         to handle nonimmediate operands.
1111         (sse2_unpckhpd_exp): New expander.  Use
1112         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1113         (sse2_unpcklpd_exp): New expander.  Use
1114         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1115         (sse_loadhpd_exp): New expander.  Use ix86_fixup_binary_operands
1116         to handle nonimmediate operands.
1117         (sse_loadlpd): New expander.  Use ix86_fixup_binary_operands
1118         to handle nonimmediate operands.
1119         (*sse2_<plusminus_insn><mode>3): Rename from
1120         sse2_<plusminus_insn><mode>3 insn pattern.
1121         (sse2_<plusminus_insn><mode>3): New expander.  Use
1122         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1123         (*sse2_umulv2siv2di3): Rename from sse2_umulv2siv2di3 insn pattern.
1124         (sse2_umulv2siv2di3): New expander.  Use
1125         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1126         (*sse4_1_mulv2siv2di3): Rename from sse4_1_mulv2siv2di3 insn pattern.
1127         (sse4_1_mulv2siv2di3): New expander.  Use
1128         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1129         (*sse2_pmaddwd): Rename from sse2_pmaddwd insn pattern.
1130         (sse2_pmaddwd): New expander.  Use
1131         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1132         (*sse2_eq<mode>3): Rename from sse2_eq<mode>3 insn pattern.
1133         (sse2_eq<mode>3): New expander.  Use
1134         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1135         (*sse4_1_eqv2di3): Rename from sse4_1_eqv2di3 insn pattern.
1136         (sse4_1_eqv2di3): New expander.  Use
1137         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1138         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
1139         (sse2_uavgv16qi3): New expander.  Use
1140         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1141         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
1142         (sse2_uavgv16qi3): New expander.  Use
1143         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1144         (*sse2_uavgv8hi3): Rename from sse2_uavgv8hi3 insn pattern.
1145         (sse2_uavgv8hi3): New expander.  Use
1146         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1147         (*ssse3_pmulhrswv8hi3): Rename from ssse3_pmulhrswv8hi3 insn pattern.
1148         (ssse3_pmulhrswv8hi3): New expander.  Use
1149         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1150         (*ssse3_pmulhrswv4hi3): Rename from ssse3_pmulhrswv4hi3 insn pattern.
1151         (ssse3_pmulhrswv4hi3): New expander.  Use
1152         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1153
1154         (<sse>_vm<plusminus_insn><mode>3): Do not use ix86_binary_operator_ok.
1155         (<sse>_vmmul<mode>3): Ditto.
1156         (divv4sf3): Do not use ix86_fixup_binary_operands_no_copy.
1157         (divv2df3): Ditto.
1158         (ssse3_pmaddubsw128): Use register_operand for operand 1.
1159         (ssse3_pmaddubsw): Ditto.
1160
1161         * config/i386/i386.c (struct_builtin_description)
1162         [IX86_BUILTIN_LOADHPS]: Use CODE_FOR_sse_loadhps_exp.
1163         [IX86_BUILTIN_STOREHPS]: Use CODE_FOR_sse_loadlps_exp.
1164         [IX86_BUILTIN_LOADHPD]: Use CODE_FOR_sse2_loadhpd_exp.
1165         [IX86_BUILTIN_LOADLPD]: Use CODE_FOR_sse2_loadlpd_exp.
1166         [IX86_BUILTIN_MOVHLPS]: Use CODE_FOR_sse_movhlps_exp.
1167         [IX86_BUILTIN_MOVLHPS]: Use CODE_FOR_sse_movlhps_exp.
1168         [IX86_BUILTIN_UNPCKHPD]: Use FOR_sse2_unpckhpd_exp.
1169         [IX86_BUILTIN_UNPCKLPD]: Use FOR_sse2_unpcklpd_exp.
1170         (ix86_fixup_binary_operands): Assert that src1
1171         and src2 must have the same mode when swapped.
1172         (ix86_expand_binop_builtin): Do not use ix86_fixup_binary_operands
1173         and ix86_binary_operator_ok.  Do not force operands in registers
1174         when optimizing.
1175
1176 2008-05-07  Jan Hubicka  <jh@suse.cz>
1177
1178         * cgraph.c (dump_cgraph_node): Update.
1179         * cgraph.h (cgraph_local_info): Break out inline summary.
1180         * cgraphunit.c (cgraph_process_new_functions): Use inliner analysis
1181         hook.
1182         * ipa-inline (inline_summary): New accestor function.
1183         (cgraph_clone_inlined_nodes, cgraph_check_inline_limits,
1184         cgraph_decide_inlining, compute_inline_parameters): Update.
1185         * ipa.c (cgraph_remove_unreachable_nodes): Remove statistics.
1186
1187 2008-05-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
1188
1189         Cleanup ColdFire scheduling support and add V4 pipeline model.
1190
1191         * config/m68k/m68k.md (UNSPEC_TIE): New constant.
1192         (define_attr cpu): Add cfv4 value.
1193         (define_attr type, define_attr type1): Merge into a single 'type'
1194         attribute.  Update all uses.
1195         (define_attr opx_type, define_attr opy_type, define_attr opx_access):
1196         Rearrange and update.  Rename value 'reg' to 'Rn', add value 'FPn'.
1197         Update all uses.
1198         (define_attr opx_mem, define_attr opy_mem): Remove.
1199         (define_attr op_mem): Clean up, update comment.
1200         (define_attr size): Use specific values instead of general int.
1201         (define_attr guess, define_attr split): Remove.  Update all uses.
1202         (movdf_internal, tstsi_internal, tsthi_internal, tstqi_internal,
1203         tst<mode>_68881, pushexthisi_const, movsi_const0_68000_10,
1204         movsi_const0_68040_60, movsi_const0, movsi_cf, movstrictqi_cf,
1205         zero_extendhisi2_cf, zero_extendqisi2_cfv4, cfv4_extendhisi2,
1206         68k_extendhisi2, extendqihi2, cfv4_extendqisi2, 68k_extendqisi2,
1207         floatsi<mode>2_68881, ftrunc<mode>2_68881, ftrunc<mode>2_cf,
1208         fix<mode>qi2_68881, fix<mode>hi2_68881, fix<mode>si2_68881,
1209         adddi_dishl32, addsi3_5200, add<mode>3_floatsi_68881,
1210         add<mode>3_floathi_68881, add<mode>3_floatqi_68881,
1211         add<mode>3_68881, add<mode>3_cf, subdi_dishl32, subsi3,
1212         sub<mode>3_floatsi_68881, sub<mode>3_floathi_68881,
1213         sub<mode>3_floatqi_68881, sub<mode>3_68881, sub<mode>3_cf,
1214         mulhi3, mulhisi3, mulhisisi3_s, mulsi3_68020, mulsi3_cf,
1215         umulhisi3, mulhisisi3_z, mul<mode>3_floatsi_68881,
1216         mul<mode>3_floathi_68881, mul<mode>3_floatqi_68881, fmul<mode>3_cf,
1217         div<mode>3_cf, sqrt<mode>2_cf, abs<mode>2_cf, clzsi2,
1218         one_cmplsi2_5200, subreghi1ashrdi_const32, ashrsi3, lshrsi3,
1219         bsetmemqi, bsetmemqi_ext, bclrmemqi, bclrmemqi_ext,
1220         beq, bne, bgt, blt, bordered, bunordered, buneq, bunge, bungt, bunle,
1221         bunlt, bltgt, tablejump_internal, call, non_symbolic_call_value,
1222         symbolic_call_value_jsr, symbolic_call_value_bsr, link):
1223         Update or set attributes.
1224         (stack_tie): New fake instruction.
1225
1226         * config/m68k/m68k.h (TUNE_CFV4): New macro.
1227         (m68k_sched_attr_size): Update declaration.
1228         (m68k_sched_attr_type2): Remove.
1229         (m68k_sched_address_bypass_p, m68k_sched_indexed_address_bypass_p):
1230         Declare new bypass predicates.
1231
1232         * config/m68k/m68k.c (m68k_sched_issue_rate,
1233         m68k_sched_first_cycle_multipass_dfa_lookahead): Declare hook
1234         implementations.
1235         (TARGET_SCHED_ISSUE_RATE,
1236         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Override hooks.
1237         (override_options): Handle scheduling for ColdFire V4 core.
1238         (m68k_expand_prologue): Emit stack_tie.
1239         (enum attr_op_type): Split value 'OP_TYPE_REG' to 'OP_TYPE_RN' and
1240         'OP_TYPE_FPN'.  Update all uses.
1241         (sched_guess_p): Remove.
1242         (sched_address_type): Handle symbolic addresses.
1243         (sched_get_operand): New static function.
1244         (sched_operand_type): Merge into sched_attr_op_type.
1245         (sched_attr_op_type): Handle FP registers, handle quick constants,
1246         update.
1247         (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type): Update.
1248         (m68k_sched_attr_size): Update.  Move logic to ...
1249         (sched_get_attr_size_int): New static function.
1250         (sched_get_opxy_mem_type): New static function.
1251         (m68k_sched_attr_op_mem): Update.
1252         (m68k_sched_attr_type2): Remove.
1253         (sched_cfv4_bypass_data): New static variable.
1254         (m68k_sched_adjust_cost): Handle ColdFire V4 bypass.
1255         (m68k_sched_issue_rate): Implement scheduler hook.
1256         (struct _sched_ib: enabled_p): New field.
1257         (m68k_sched_variable_issue): Update.  Handle V4.
1258         (SCHED_DUMP_TODO, SCHED_DUMP_DONE, SCHED_DUMP_NOTHING,
1259         sched_dump_class_func_t, sched_dump_split_class,
1260         sched_dump_dfa_guess_unit_code, sched_dump_dfa_state,
1261         sched_dump_dfa_class, m68k_sched_dump): Remove.
1262         (m68k_sched_first_cycle_multipass_dfa_lookahead): Implement scheduler
1263         hook.
1264         (m68k_sched_init_global): Remove statisctics dumping, introduce
1265         sanity check that all instructions have pipeline reservations.  Handle
1266         ColdFire V4 core.
1267         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
1268         Handle ColdFire V4 core.
1269         (sched_mem_operand_p, sched_get_reg_operand, sched_get_mem_operand):
1270         New static functions.
1271         (m68k_sched_address_bypass_p): New bypass predicate.
1272         (sched_get_indexed_address_scale): New static function.
1273         (m68k_sched_indexed_address_bypass_p): New bypass predicate.
1274
1275         * cf.md: Update comments.
1276         (define_attr type2): Remove.  Use 'type' attribute instead.
1277         Update all uses.
1278         (cf_ib): Rename to cfv123_ib.  Update all uses.
1279         (cf_oep): Rename to cfv123_oep.  Update all uses.
1280         (cf_chr): Rename to cfv123_chr.  Update all uses.
1281         (cf_mem): Rename to cfv123_mem.  Update all uses.
1282         (cf_mac): Move to more appropriate place.
1283         (cfv123_guess): New automaton and cpu_unit.
1284         (cfv123_*, cfv12_*, cfv1_*, cfv2_*, cfv3_*): Use type attribute.
1285         Update uses of 'size' attribute.  Handle before reload scheduling.
1286         (cfv123_guess): New dummy reservation for unhandled instructions.
1287         (cfv4_*): Pipeline description of ColdFire V4 core.
1288         (ignore): New reservation to handle 'ignore' type.
1289
1290 2008-05-07  Ian Lance Taylor  <iant@google.com>
1291
1292         PR middle-end/36013
1293         * gimplify.c (find_single_pointer_decl_1): Don't look through
1294         indirections.
1295         (find_single_pointer_decl): Adjust comments.
1296
1297 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
1298
1299         PR middle-end/36137
1300         * fold-const.c (fold_binary): Use STRIP_SIGN_NOPS instead of
1301         STRIP_NOPS on arguments even for MIN_EXPR and MAX_EXPR.
1302
1303         PR middle-end/36106
1304         * omp-low.c (expand_omp_atomic_pipeline): Load value using the
1305         integral type rather than floating point, then VIEW_CONVERT_EXPR
1306         to the floating point type.
1307
1308 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
1309
1310         * config/i386/i386.c (ix86_expand_copysign): Force non-zero constant
1311         TFmode op0 to register.
1312
1313 2008-05-07  Alan Modra  <amodra@bigpond.net.au>
1314
1315         * c-decl.c (grokdeclarator): Comment typo.
1316
1317 2008-05-06  Aldy Hernandez  <aldyh@redhat.com>
1318
1319         * tree-flow.h: Remove prototype for computed_goto_p.
1320         * tree-cfg.c (computed_goto_p): Make static.
1321
1322 2008-05-06  H.J. Lu  <hongjiu.lu@intel.com>
1323
1324         PR target/35657
1325         * config/i386/i386.c (contains_128bit_aligned_vector_p): Renamed to ...
1326         (contains_aligned_value_p): This.  Handle _Decimal128.
1327         (ix86_function_arg_boundary): Only align _Decimal128 to its
1328         natural boundary and handle it properly.
1329
1330 2008-05-06  Martin Jambor  <mjambor@suse.cz>
1331
1332         * ipa-cp.c (ipcp_method_orig_node): Renamed to ipcp_get_orig_node.
1333         (ipcp_method_is_cloned): Renamed to ipcp_node_is_clone
1334         (ipcp_method_set_orig_node): Removed.
1335         (ipcp_cval_get_cvalue_type): Removed.
1336         (ipcp_method_get_scale): Renamed to ipcp_get_node_scale.
1337         (ipcp_method_set_scale): Renamed to ipcp_set_node_scale.
1338         (ipcp_cval_set_cvalue_type): Removed.
1339         (ipcp_cval_get_cvalue): Removed.
1340         (ipcp_cval_set_cvalue): Removed.
1341         (ipcp_type_is_const): Renamed to ipcp_lat_is_const.
1342         (ipcp_cval_equal_cvalues): Renamed to ipcp_lats_are_equal
1343         (ipcp_lats_are_equal): Changed parameters to two ipcp_lattice's
1344         (ipcp_cval_meet): Renamed to ipa_lattice_meet
1345         (ipcp_cval_changed): Changed to use ipcp_lat_is_const
1346         (ipcp_method_cval): Renamed to ipcp_get_ith_lattice
1347         (ipcp_get_ith_lattice): Changed parameters.
1348         (ipcp_cval_compute): Renamed to ipcp_lattice_from_jfunc
1349         (ipcp_lattice_from_jfunc): Changed parameters.
1350         (ipcp_redirect): Local lattice pointer instead of lattice type variable.
1351         (ipcp_method_cval_print): Added temporary variable info.
1352         (ipcp_redirect): Removed already unused local variable caller.
1353         (ipcp_redirect): New temporary variable orig_callee_info
1354         (ipcp_redirect): Removed newly unused local variable callee.
1355         (ipcp_redirect): Removed (a bit confusing) local variable type.
1356         (ipcp_insert_stage): Added local variable info.
1357         (ipcp_cval_changed): Renamed to ipcp_lattice_changed, parameters 
1358         renamed too
1359         (ipcp_formal_create): Removed.
1360         (ipcp_method_cval_set): Removed.
1361         (ipcp_propagate_stage): Renamed lattice variables.
1362         (ipcp_method_cval_set_cvalue_type): Removed.
1363         (ipcp_method_cval_print): Renamed to ipcp_print_all_lattices
1364         (ipcp_print_all_lattices): Changed printed strings to refer to 
1365         lattices rather than cvals.
1366         (ipcp_method_cval_init): Renamed to ipcp_initialize_node_lattices
1367         (ipcp_propagate_const): Changed formal parameters.
1368         (build_const_val): Changed formal parameters.
1369         (ipcp_insert_stage): Removed useless variable cvalue
1370         (build_const_val): Changed formal parameters.
1371         (ipcp_method_compute_scale): Renamed to ipcp_compute_node_scale
1372         (ipcp_after_propagate): Renamed to ipcp_change_tops_to_bottom
1373         (ipcp_callsite_param_print): Renamed to ipcp_print_all_jump_functions
1374         (ipcp_profile_mt_count_print): Renamed to ipcp_print_func_profile_counts
1375         (ipcp_print_func_profile_counts): Changed string from "method" to 
1376         "function"
1377         (ipcp_profile_cs_count_print): Renamed to ipcp_print_call_profile_counts
1378         (ipcp_profile_edge_print): Renamed to ipcp_print_edge_profiles
1379         (ipcp_profile_bb_print): Renamed to ipcp_print_bb_profiles
1380         (ipcp_structures_print): Renamed to ipcp_print_all_structures
1381         (ipcp_profile_print): Renamed to ipcp_print_profile_data
1382         (ipcp_lat_is_const): Changed parameters and made inline.
1383         (ipcp_replace_map_create): Renamed to ipcp_create_replace_map
1384         (ipcp_redirect): Renamed to ipcp_need_redirect_p
1385         (ipcp_need_redirect_p): Calls ipcp_lat_is_const instead of using 
1386         the predicate condition directly
1387         (ipcp_propagate_stage): Added local variable args. Removed local
1388         variable callee.  (Both are mere code simplifications.)
1389         (ipcp_method_dont_insert_const): Renamed to
1390         ipcp_node_not_modifiable_p.
1391         (ipcp_node_not_modifiable_p): Made inline.
1392         (ipcp_cloned_create): Renamed to ipcp_init_cloned_node
1393         (ipcp_propagate_const): Renamed to ipcp_propagate_one_const
1394         (ipcp_print_all_lattices): Removed variable cvalue
1395         (ipcp_method_scale_print): Renamed to ipcp_function_scale_print
1396         Updated comments.
1397
1398 2008-05-06  Olivier Hainque  <hainque@adacore.com>
1399
1400         * tree-sra.c (try_instantiate_multiple_fields): Early return
1401         if field has POINTER_TYPE.
1402
1403 2008-05-06  Kai Tietz  <kai.tietz@onevision.com>
1404
1405         * config/i386/i386.c (output_set_got): Fix for x86_64 output_emit_asm
1406         by using 'q' specifier for instruction.
1407         (ix86_file_end): Replaced case TARGET_64BIT_MS_ABI by TARGET_64BIT.
1408
1409 2008-05-06  Anatoly Sokolov <aesok@post.ru>
1410
1411         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
1412         Change mode of zero_extract from QImode to HImode.
1413         (sign bit tests peepholes): (Ditto.).
1414
1415 2008-05-06  Uros Bizjak  <ubizjak@gmail.com>
1416
1417         * config/i386/mmx.md: Remove double backslashes from asm templates.
1418         (*mmx_addv2sf3): Rename from mmx_addv2sf3 insn pattern.
1419         (mmx_addv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
1420         to handle nonimmediate operands.
1421         (*mmx_mulv2sf3): Rename from mmx_mulv2sf3 insn pattern.
1422         (mmx_mulv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
1423         to handle nonimmediate operands.
1424         (*mmx_<code>v2sf3_finite): New insn pattern.
1425         (*mmx_<code>v2sf3): Rename from mmx_<code>v2sf3 insn pattern.
1426         (mmx_<code>v2sf3): New expander.  Use
1427         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1428         (mmx_<plusminus_insn><mode>3): New expander.  Use
1429         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1430         (*mmx_<plusminus_insn><mode>3): New insn pattern.
1431         (mmx_add<mode>3): Removed.
1432         (mmx_ssadd<mode>3): Ditto.
1433         (mmx_usadd<mode>3): Ditto.
1434         (mmx_sub<mode>3): Ditto.
1435         (mmx_sssub<mode>3): Ditto.
1436         (mmx_ussub<mode>3): Ditto.
1437         (*mmx_mulv4hi3): Rename from mmx_mulv4hi3 insn pattern.
1438         (mmx_mulv4hi3): New expander.  Use ix86_fixup_binary_operands_no_copy
1439         to handle nonimmediate operands.
1440         (*mmx_smulv4hi3_highpart): Rename from mmx_smulv4hi3_highpart
1441         insn pattern.
1442         (mmx_smulv4hi3_highpart): New expander.  Use
1443         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1444         (*mmx_umulv4hi3_highpart): Rename from mmx_umulv4hi3_highpart
1445         insn pattern.
1446         (mmx_umulv4hi3_highpart): New expander.  Use
1447         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1448         (*mmx_<code>v4hi3): Rename from mmx_<code>v4hi3 insn pattern.
1449         (mmx_<code>v4hi3): New expander.  Use
1450         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1451         (*mmx_<code>v8qi3): Rename from mmx_<code>v8qi3 insn pattern.
1452         (mmx_<code>v8qi3): New expander.  Use
1453         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1454         (*mmx_<code><mode>3): Rename from mmx_<code><mode>3 insn pattern.
1455         (mmx_<code><mode>3): New expander.  Use
1456         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1457
1458 2008-05-05  Jan Hubicka  <jh@suse.cz>
1459
1460         PR tree-optimization/36118
1461         * passes.c (pass_init_dump_file): Fix dump header.
1462
1463 2008-05-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1464
1465         PR middle-end/36141
1466         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't create
1467         VCE for function decls.
1468
1469 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
1470
1471         * config/i386/sse.md (sse2_<plusminus_insn><mode>3): Fix a typo.
1472
1473 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
1474
1475         * config/i386/i386.md (sat_plusminus): New.
1476         (plusminus_insn): Likewise.
1477         (plusminus_mnemonic): Likewise.
1478         (addsub): Removed.
1479         (comm): Add ss_plus, us_plus, ss_minus and us_minus.
1480         (*<addsub><mode>3_cc_overflow): Renamed to ...
1481         (*<plusminus_insn><mode>3_cc_overflow): This.
1482         (*<addsub>si3_zext_cc_overflow): Renamed to ...
1483         (*<plusminus_insn>si3_zext_cc_overflow): This.
1484
1485         * config/i386/sse.md (<addsub><mode>3): Renamed to ...
1486         (<plusminus_insn><mode>3): This.
1487         (*<addsub><mode>3): Renamed to ...
1488         (*<plusminus_insn><mode>3): This.
1489         (<sse>_vm<addsub><mode>3): Renamed to ...
1490         (<sse>_vm<plusminus_insn><mode>3): This.
1491         (sse3_h<addsub>v4sf3): Renamed to ...
1492         (sse3_h<plusminus_insn>v4sf3): This.
1493         (sse3_h<addsub>v2df3): Renamed to ...
1494         (sse3_h<plusminus_insn>v2df3): This.
1495         (<plusminus_insn><mode>3): New.
1496         (*<plusminus_insn><mode>3): Likewise.
1497         (sse2_<plusminus_insn><mode>3): Likewise.
1498         (add<mode>): Removed.
1499         (*add<mode>3): Likewise.
1500         (sse2_ssadd<mode>3): Likewise.
1501         (sse2_usadd<mode>3): Likewise.
1502         (sub<mode>3): Likewise.
1503         (*sub<mode>3): Likewise.
1504         (sse2_sssub<mode>3): Likewise.
1505         (sse2_ussub<mode>3): Likewise.
1506
1507 2008-05-05  Benjamin Kosnik  <bkoz@redhat.com>
1508
1509         * gthr-single.h: Add in required interface elements as per gthr.h.
1510         Add stub types for __gthread_key_t, __gthread_once_t. Add defines
1511         for __GTHREAD_ONCE_INIT, __GTHREAD_RECURSIVE_MUTEX_INIT.
1512         Generalize UNUSED macro. 
1513         (__gthread_once): Add.
1514         (__gthread_key_create): Add.
1515         (__gthread_key_delete): Add.
1516         (__gthread_getspecific): Add.
1517         (__gthread_setspecific): Add.
1518         
1519 2008-05-05  Andrew Pinski  <Andrew.Pinski@playstation.sony.com>
1520
1521         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If we have
1522         the same size types for the indirect reference on the rhs, then
1523         create a VCE.
1524
1525 2008-05-05  Uros Bizjak  <ubizjak@gmail.com>
1526
1527         * config/i386/i386.md
1528         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Use only
1529         one insn template instead of template series.
1530         (*xordi_1_rex64): Ditto.
1531         (*xordi_2_rex64): Ditto.
1532
1533 2008-05-05  Ira Rosen  <irar@il.ibm.com>
1534
1535         PR tree-optimization/36119
1536         * tree-vect-transform.c (vectorizable_assignment): Set NCOPIES to 1
1537         in case of SLP.
1538
1539 2008-06-04  Jan Hubicka  <jh@suse.cz>
1540
1541         tree-optimization/36100
1542         * tree-pass.h (pass_O0_always_inline): Declare.
1543         * ipa-inline.c (inline_transform): Remove dead code.
1544         (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
1545         pass_O0_always_inline): New.
1546         * passes.c (init_optimization_passes): Add pass_O0_always_inline.
1547
1548 2008-05-04  Kai Tietz  <kai.tietz@onevision.com>
1549
1550         * config/i386/i386.c (x86_output_mi_thunk): Use movq alternative
1551         mnemonic in this_param move for TARGET_64BIT.
1552
1553 2008-05-04  Uros Bizjak  <ubizjak@gmail.com>
1554
1555         * config/i386/i386.md (*strmovsi_1): Simplify asm alternatives.
1556         (*strmovsi_rex_1): Ditto.
1557         (*strsetsi_1): Ditto.
1558         (*strsetsi_rex_1): Ditto.
1559
1560         (add<mode>cc): Macroize expander from addqicc, addhicc, addsicc and
1561         adddicc expanders using SWI mode iterator.
1562
1563 2008-05-04  H.J. Lu  <hongjiu.lu@intel.com>
1564
1565         PR target/36121
1566         * config/i386/i386.c (ix86_expand_special_args_builtin): Remove three
1567         argument handling.
1568
1569 2008-05-04  David S. Miller  <davem@davemloft.net>
1570
1571         * config.gcc (sparc*-*-*): Always set need_64bit_hwint to yes.
1572         (sparc*-*-linux*): Use linux.h in tm_file.
1573         (sparc-*-linux*): If 'enabled_targets' is 'all', build a bi-arch
1574         compiler defaulting to 32-bit.
1575         (sparc*-*-*): Remove explicit target settings of need_64bit_hwint,
1576         no longer needed.
1577         * config/sparc/linux.h: Remove definitions now obtained
1578         properly from linux.h
1579         * config/sparc/linux64.h: Likewise.
1580         (ASM_CPU_DEFAULT_SPEC): Change this to ASM_CPU64_DEFAULT_SPEC, we
1581         don't want this setting for 32-bit builds in a biarch compiler.
1582         * doc/install.texi: Add sparc-linux to list of targets
1583         supporting --enable-targets=all.
1584
1585 2008-05-03  Andrew Pinski  <pinskia@gmail.com>
1586
1587         * Makefile.in (tree-ssa-phiprop.o): Fix dependencies.
1588
1589 2008-05-03  H.J. Lu  <hongjiu.lu@intel.com>
1590
1591         * config/i386/i386.c (ix86_builtin_type): Move V4SI_FTYPE_V4SF
1592         after V4SI_FTYPE_V8HI.
1593         (ix86_init_mmx_sse_builtins): Move case V4HI_FTYPE_V4HI after
1594         case V4SI_FTYPE_V2DF.
1595
1596 2008-05-03  Kenneth Zadeck  <zadeck@naturalbridge.com>
1597
1598         * doc/invoke.texi (max-flow-memory-locations): Removed.
1599         * params.def (PARAM_MAX_FLOW_MEMORY_LOCATIONS): Removed.
1600         
1601 2008-05-03  Richard Guenther  <rguenther@suse.de>
1602
1603         PR middle-end/34973
1604         * opts.c (set_Wstrict_aliasing): Handle the turn-off case.
1605
1606 2008-05-02  David S. Miller  <davem@davemloft.net>
1607
1608         * config.gcc (need_64bit_hwint): Document libcpp dependency.
1609
1610 2008-05-02  Simon Baldwin <simonb@google.com>
1611
1612         PR bootstrap/36108
1613         * c-common.h (warn_array_subscript_range): Removed.
1614         * c-common.c (warn_array_subscript_range): Ditto.
1615         * tree-vrp.c (check_array_ref): Revert to ignoring arrays with size 2.
1616         * c-typeck.c (build_array_ref): Remove warn_array_subscript_range.
1617
1618 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
1619
1620         * config/i386/i386.c (ix86_special_builtin_type): New.
1621         (bdesc_special_args): Likewise.
1622         (ix86_expand_special_args_builtin): Likewise.
1623         (ix86_init_mmx_sse_builtins): Updated.
1624         (ix86_expand_builtin): Updated.
1625         (ix86_expand_store_builtin): Removed.
1626         (ix86_expand_unop_builtin): Likewise.
1627
1628         * config/i386/mm3dnow.h (__v2sf): Moved to ...
1629         * config/i386/mmintrin.h (__v2sf): Here.
1630
1631         * config/i386/xmmintrin.h (_mm_loadh_pi): Replace __v2si with
1632         const __v2sf.
1633         (_mm_loadl_pi): Likewise.
1634         (_mm_storeh_pi): Replace __v2si with __v2sf.
1635         (_mm_storel_pi): Likewise.
1636
1637         * doc/extend.texi: Correct __builtin_ia32_loadhps,
1638         __builtin_ia32_loadlps, __builtin_ia32_storehps,
1639         __builtin_ia32_storelps, __builtin_ia32_loadhpd and
1640         __builtin_ia32_loadlpd.
1641
1642 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
1643
1644         * config/i386/i386.c (ix86_builtin_type): Add FLOAT_FTYPE_FLOAT,
1645         V4SF_FTYPE_V4SF_VEC_MERGE and V2DF_FTYPE_V2DF_VEC_MERGE.
1646         (bdesc_args): Updated.  Add scalar SSE builtins with vec_merge.
1647         (ix86_init_mmx_sse_builtins): Updated.
1648         (ix86_expand_args_builtin): Likewise.
1649         (ix86_expand_builtin): Likewise.
1650         (ix86_expand_unop1_builtin): Renamed to ...
1651         (ix86_expand_unop_vec_merge_builtin): This.
1652
1653 2008-05-01  Jan Hubicka  <jh@suse.cz>
1654
1655         PR bootstrap/36100
1656         * ipa-inline.c (inline_generate_summary): Make static.
1657         (inline_transform): Do not call inlining at -O0; make static.
1658         * passes.c (execute_todo): Add sanity check.
1659         (execute_one_ipa_transform_pass): Execute proper flags.
1660
1661 2008-05-01  Eric Botcazou  <ebotcazou@adacore.com>
1662
1663         * tree.h (TYPE_NONALIASED_COMPONENT): Expand comment.
1664         (DECL_NONADDRESSABLE_P): Likewise.
1665         * alias.c (record_component_aliases): Fix comment.
1666
1667 2008-05-01  Simon Baldwin <simonb@google.com>
1668
1669         * c-common.h (warn_array_subscript_range): New function.
1670         * c-common.c (warn_array_subscript_range): Ditto.
1671         * tree-vrp.c (check_array_ref): Corrected code to agree with
1672         comment, ignoring only arrays of size 0 or size 1.
1673         * c-typeck.c (build_array_ref): Call warn_array_subscript_range.
1674
1675 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
1676
1677         * config/i386/i386.c (ix86_builtin_type): Replace
1678         DI_FTYPE_DI_DI_INT with V1DI2DI_FTYPE_V1DI_V1DI_INT.
1679         (bdesc_args): Updated.
1680         (ix86_init_mmx_sse_builtins): Likewise.
1681         (ix86_expand_args_builtin): Likewise.
1682
1683         * config/i386/tmmintrin.h (_mm_alignr_pi8): Replace long long
1684         with __v1di.
1685
1686         * doc/extend.texi: Correct __builtin_ia32_palignr.
1687
1688 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
1689
1690         PR target/36095
1691         * config/i386/i386.c (bdesc_crc32): Removed.
1692         (ix86_expand_crc32): Likewise.
1693         (ix86_builtin_type): Replace V2DI2TI_FTYPE_V2DI2TI_INT with
1694         V2DI2TI_FTYPE_V2DI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT with
1695         V2DI2TI_FTYPE_V2DI_V2DI_INT.  Add UINT64_FTYPE_UINT64_UINT64,
1696         UINT_FTYPE_UINT_UINT, UINT_FTYPE_UINT_USHORT and
1697         UINT_FTYPE_UINT_UCHAR.
1698         (bdesc_args): Updated. Add crc32 builtins.
1699         (ix86_init_mmx_sse_builtins): Updated.
1700         (ix86_expand_args_builtin): Updated to support subreg.
1701
1702         * doc/extend.texi: Correct __builtin_ia32_crc32di.
1703
1704 2008-05-01  Jan Hubicka  <jh@suse.cz>
1705
1706         * tree-pass.h (opt_pass): Add IPA_PASS.
1707         (varpool_node, cgraph_node): Forward declare.
1708         (ipa_opt_pass): Define.
1709         (pass_ipa_inline): Turn into ipa_opt_pass.
1710         (pass_apply_inline): Remove.
1711         * ipa-inline.c (pass_ipa_inline): Turn into ipa_opt_pass.
1712         (apply_inline): Turn into ....
1713         (inline_transform): ... this one.
1714         (inline_generate_summary): New function.
1715         (pass_apply_inline): Remove.
1716         * function.h (ipa_opt_pass): Forward declare structure; typedef;
1717         vector.
1718         (struct function): Add ipa_transforms_to_apply.
1719         * passes.c (register_one_dump_file): Work on IPA_PASS.
1720         (init_optimization_passes): Remove pass_inline_parameters and
1721         pass_apply_inline.
1722         (pass_init_dump_file, pass_fini_dump_file): Break out from ....
1723         (execute_one_pass) ... here; apply transforms when possible.
1724         (add_ipa_transform_pass, execute_ipa_summary_asses,
1725         execute_one_ipa_transform_pass): New.
1726         (execute_ipa_pass_list): Update for IPA_PASS type.
1727
1728 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
1729
1730         * config/i386/i386.c (ix86_builtin_type): Add
1731         V2DI_FTYPE_V2DI_V16QI, V2DI_FTYPE_V2DI_UINT_UINT and
1732         V2DI_FTYPE_V2DI_V2DI_UINT_UINT.
1733         (bdesc_args): Add SSE4a builtins.
1734         (ix86_init_mmx_sse_builtins): Updated.
1735         (ix86_expand_args_builtin): Likewise.
1736         (ix86_expand_builtin): Likewise.
1737
1738 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
1739
1740         * config/i386/i386.c (ix86_builtin_type): Add
1741         V8HI_FTYPE_V8HI_V8HI_COUNT, V8HI_FTYPE_V8HI_SI_COUNT,
1742         V4SI_FTYPE_V4SI_V4SI_COUNT, V4SI_FTYPE_V4SI_SI_COUNT,
1743         V4HI_FTYPE_V4HI_V4HI_COUNT, V4HI_FTYPE_V4HI_SI_COUNT,
1744         V2DI_FTYPE_V2DI_V2DI_COUNT, V2DI_FTYPE_V2DI_SI_COUNT,
1745         V2SI_FTYPE_V2SI_V2SI_COUNT, V2SI_FTYPE_V2SI_SI_COUNT,
1746         V1DI_FTYPE_V1DI_V1DI_COUNT, V1DI_FTYPE_V1DI_SI_COUNT,
1747         V8HI_FTYPE_V8HI_INT, V4SI_FTYPE_V4SI_INT, V4HI_FTYPE_V4HI_INT,
1748         V2DI2TI_FTYPE_V2DI2TI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT
1749         and DI_FTYPE_DI_DI_INT.
1750         (bdesc_args): Add MMX/SSE shift, shuffle and palignr builtins.
1751         (ix86_init_mmx_sse_builtins): Updated.
1752         (ix86_expand_args_builtin): Likewise.
1753         (ix86_expand_builtin): Likewise.
1754         (ix86_expand_binop_imm_builtin): Removed.
1755
1756         * doc/extend.texi: Correct __builtin_ia32_palignr128.
1757
1758 2008-04-30  Richard Guenther  <rguenther@suse.de>
1759
1760         PR tree-optimization/32921
1761         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Disambiguate with TBAA.
1762
1763 2008-04-30  Richard Sandiford  <rsandifo@nildram.co.uk>
1764
1765         * config/arm/arm.c (arm_unwind_emit): Use
1766         crtl->all_throwers_are_sibcalls instead of
1767         cfun->all_throwers_are_sibcalls.
1768         (arm_output_fn_unwind): Likewise.
1769         * config/frv/frv.c (frv_stack_info): Use crtl->uses_pic_offset_table
1770         instead of cfun->uses_pic_offset_table.
1771         (frv_expand_prologue): Likewise.
1772         (frv_frame_pointer_required): Likewise.
1773         (frv_expand_fdpic_call): Likewise.
1774         (frv_emit_movsi): Likewise.
1775         * config/iq2000/iq2000.c (iq2000_expand_prologue): Use
1776         cfun->returns_pcc_struct instead of
1777         current_function_returns_pcc_struct.
1778         * config/m32c/m32c.c (need_to_save): Use crtl->calls_eh_return
1779         instead of cfun->calls_eh_return.
1780         (m32c_pushm_popm): Likewise.
1781         * config/xtensa/xtensa.h (cfun->calls_alloca): Remove bogus
1782         "extern" declaration.
1783
1784 2008-04-30  Richard Guenther  <rguenther@suse.de>
1785
1786         PR tree-optimization/21636
1787         * tree-ssa-ccp.c (ccp_fold): Handle &p->x with p being a
1788         constant address.
1789         (evaluate_stmt): Print the likely value.
1790         (ccp_visit_stmt): Avoid excessive vertical spacing.
1791
1792 2008-04-30  Rafael Espindola  <espindola@google.com>
1793
1794         * builtins.c (fold_call_expr): Return realret.
1795         * tree-ssa-threadedge.c
1796         (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
1797         __builtin_object_size.
1798
1799 2008-04-30  Seongbae Park  <seongbae.park@gmail.com>
1800
1801         * gcc.c (wrapper_string): New variable.
1802         (insert_wrapper): New function.
1803         (execute): New option -wrapper.
1804         * doc/invoke.texi (Overall Options): New driver option -wrapper.
1805
1806 2008-04-30  Nathan Froyd  <froydnj@codesourcery.com>
1807
1808         * config/rs6000/crtresgpr.asm, config/rs6000/crtresxgpr.asm,
1809         config/rs6000/crtsavgpr.asm, config/rs6000/crtresfpr.asm,
1810         config/rs6000/crtresxfpr.asm, config/rs6000/crtsavfpr.asm: Break out
1811         from...
1812         * config/rs6000/crtsavres.asm: ...here.  Remove unneeded file.
1813         * config/rs6000/e500crtres32gpr.asm, config/rs6000/e500crtres64gpr.asm,
1814         config/rs6000/e500crtres64gprctr.asm,
1815         config/rs6000/e500crtrest32gpr.asm, config/rs6000/e500crtrest64gpr.asm,
1816         config/rs6000/e500crtresx32gpr.asm, config/rs6000/e500crtresx64gpr.asm,
1817         config/rs6000/e500crtsav32gpr.asm, config/rs6000/e500crtsav64gpr.asm,
1818         config/rs6000/e500crtsav64gprctr.asm,
1819         config/rs6000/e500crtsavg32gpr.asm, config/rs6000/e500crtsavg64gpr.asm,
1820         config/rs6000/e500crtsavg64gprctr.asm: New files.
1821         * config/rs6000/t-ppccomm: Add build rules for new files.
1822         (LIB2FUNCS_STATIC_EXTRA): Add new files.
1823         * config/rs6000/t-netbsd: Add build rules for new files.
1824         (LIB2FUNCS_STATIC_EXTRA): New variable.
1825         * config/rs6000/sysv4.h (ENDFILE_SPEC): Don't include crtsavres.o
1826         (CRTSAVRES_DEFAULT_SPEC): Likewise.
1827         * config/rs6000/netbsd.h (ENDFILE_SPEC): Likewise.
1828
1829 2008-04-30  H.J. Lu  <hongjiu.lu@intel.com>
1830
1831         * config/i386/i386.c (ix86_builtin_type): Add
1832         FLOAT128_FTYPE_FLOAT128_FLOAT128, V16QI_FTYPE_V16QI_V16QI,
1833         V16QI_FTYPE_V8HI_V8HI, V8QI_FTYPE_V8QI_V8QI,
1834         V8QI_FTYPE_V4HI_V4HI, V8HI_FTYPE_V8HI_V8HI,
1835         V8HI_FTYPE_V16QI_V16QI, V8HI_FTYPE_V4SI_V4SI,
1836         V4SI_FTYPE_V4SI_V4SI, V4SI_FTYPE_V8HI_V8HI,
1837         V4SI_FTYPE_V4SF_V4SF, V4SI_FTYPE_V2DF_V2DF,
1838         V4HI_FTYPE_V4HI_V4HI, V4HI_FTYPE_V8QI_V8QI,
1839         V4HI_FTYPE_V2SI_V2SI, V4SF_FTYPE_V4SF_V4SF,
1840         V4SF_FTYPE_V4SF_V4SF_SWAP, V4SF_FTYPE_V4SF_V2SI,
1841         V4SF_FTYPE_V4SF_V2DF, V4SF_FTYPE_V4SF_DI,
1842         V4SF_FTYPE_V4SF_SI, V2DI_FTYPE_V2DI_V2DI,
1843         V2DI_FTYPE_V16QI_V16QI, V2DI_FTYPE_V4SI_V4SI,
1844         V2DI_FTYPE_V2DF_V2DF, V2SI_FTYPE_V2SI_V2SI,
1845         V2SI_FTYPE_V4HI_V4HI, V2SI_FTYPE_V2SF_V2SF,
1846         V2DF_FTYPE_V2DF_V2DF, V2DF_FTYPE_V2DF_V2DF_SWAP,
1847         V2DF_FTYPE_V2DF_V4SF, V2DF_FTYPE_V2DF_DI,
1848         V2DF_FTYPE_V2DF_SI, V2SF_FTYPE_V2SF_V2SF,
1849         V1DI_FTYPE_V1DI_V1DI, V1DI_FTYPE_V8QI_V8QI and
1850         V1DI_FTYPE_V2SI_V2SI.
1851         (bdesc_2arg): Moved to ...
1852         (bdesc_args): Here.
1853         (ix86_init_mmx_sse_builtins): Updated.
1854         (ix86_expand_args_builtin): Updated.  Take a pointer
1855         to const struct builtin_description.  Handle comparison
1856         builtin functions.
1857         (ix86_expand_sse_compare): Take a new argument for swapping operands.
1858         (ix86_expand_builtin): Updated.
1859
1860         * config/i386/sse.md (ssse3_pmaddubswv8hi3): Renamed to ...
1861         (ssse3_pmaddubsw128): This.
1862         (ssse3_pmaddubswv4hi3): Renamed to ...
1863         (ssse3_pmaddubsw): This.
1864
1865         * doc/extend.texi (__builtin_ia32_packsswb128): Correct prototype.
1866         (__builtin_ia32_packssdw128): Likewise.
1867         (__builtin_ia32_packuswb128): Likewise.
1868         (__builtin_ia32_pmaddubsw): Likewise.
1869         (__builtin_ia32_pmaddubsw128): Likewise.
1870
1871 2008-04-30  Richard Guenther  <rguenther@suse.de>
1872
1873         PR tree-optimization/14847
1874         * tree-ssa-ifcombine.c (get_name_for_bit_test): New helper function.
1875         (recognize_bits_test): Use it.
1876         (recognize_single_bit_test): Likewise.
1877
1878 2008-04-30  Martin Jambor  <mjambor@suse.cz>
1879
1880         * ipa-cp.c (ipcp_init_stage): Calls ipa_set_called_with_variable_arg
1881         instead of setting number of formal parameters to zero.
1882         (ipcp_init_stage): Do not set the number of actual parameters to zero 
1883         either.
1884         (ipcp_propagate_stage): Explicitly skipping all calls to nodes
1885         which are called with variable number of arguments.
1886         (ipcp_insert_stage): Explicitely skipping all nodes which are
1887         called with variable number of arguments.
1888         (ipcp_callsite_param_print): Skipps callsites to nodes with varaible 
1889         number of parameters.
1890
1891         * ipa-prop.h (struct ipa_node_params): Added flag
1892         called_with_var_arguments
1893         (ipa_set_param_count): Added.  Changed sole setter to use it.
1894         (ipa_get_param_count): Added.  All readers of param_count
1895         converted to use it instead.
1896         (ipa_set_called_with_variable_arg): Added.
1897         (ipa_is_called_with_var_arguments): Added.
1898         (ipa_get_ith_param): Added.  All readers of param_decls converted
1899         to use it instead.
1900         (ipa_set_cs_argument_count): Added, sole writer to argument_count 
1901         changed to use it. 
1902         (ipa_get_cs_argument_count): Added, all readers of argument_count
1903         changed to cal it.
1904         (ipa_get_ith_jump_func): Added. Accessors of jump values changed 
1905         to use it.
1906         
1907         * ipa-prop.h (struct ipcp_formal): Renamed to ipcp_lattice
1908         (struct ipcp_lattice): Renamed cval_type to type
1909         (struct ipa_node_params): ipcp_cval renamed to ipcp_lattices
1910
1911         * ipa-cp.c (ipcp_cval_get_cvalue): Changed return value to tree
1912         (ipcp_cval_set_cvalue): Changed type of parameter value to tree
1913         (ipcp_insert_stage): Changed the type of variable cvalue to tree
1914         (ipcp_replace_map_create): Changed the type of parameter cvalue to tree
1915         (build_const_val): Changed the type of parameter cvalue to tree
1916         (ipcp_propagate_const): Changed the type of parameter cvalue to tree
1917         (ipcp_method_cval_set_cvalue_type): Renamed parameter cval_type1 to type
1918         
1919         * ipa-prop.h (struct ipcp_formal): Replaced cvalue with tree called 
1920         constant 
1921
1922         * ipa-prop.c (ipa_methodlist_init): Renamed to ipa_init_func_list
1923         (ipa_methodlist_not_empty): Removed, the sole user now checks directly
1924         (ipa_add_method): Renamed to ipa_push_func_to_list
1925         (ipa_remove_method): Renamed to ipa_pop_func_from_list
1926         (ipa_callsite_param_count): Removed.
1927         (ipa_callsite_param_count_set): Removed.
1928         (ipa_callsite_param): Removed.
1929         (ipa_callsite_callee): Removed.
1930         (ipa_callsite_compute_param): Renamed to ipa_compute_jump_functions
1931         (ipa_callsite_compute_count): Renamed to ipa_count_arguments
1932         (ipa_method_formal_count): Removed.
1933         (ipa_method_formal_count_set): Removed.
1934         (ipa_method_get_tree): Removed.
1935         (ipa_method_tree_map_create): Removed.
1936         (ipa_method_compute_tree_map): Renamed to ipa_create_param_decls_array
1937         (ipa_create_param_decls_array): Creates the array itself
1938         (ipa_create_param_decls_array): Temporary variable info instead of 
1939         a few dereferences.
1940         (ipa_method_formal_compute_count): Renamed to ipa_count_formal_params
1941         (ipa_method_compute_modify): Renamed to ipa_detect_param_modifications
1942         (get_type): Removed.
1943         (ipa_jf_get_info_type): Removed.
1944         (ipa_node_create): Renamed to ipa_create_node_params
1945         (ipa_free): Renamed to ipa_free_all_node_params
1946         (ipa_nodes_create): Renamed to ipa_create_all_node_params
1947         (ipa_edges_create): Renamed to ipa_create_all_edge_args
1948         (ipa_edges_free): Renamed to ipa_free_all_edge_args
1949         (ipa_nodes_free): Integrated into ipa_free_all_node_params and removed
1950         (ipa_free_all_node_params): Deallocation to jump_functions moved to 
1951         ipa_free_all_edge_args
1952         (ipa_method_tree_print): Renamed to ipa_print_all_tree_maps
1953         (ipa_method_modify_print): Renamed to ipa_print_all_params_modified
1954         (ipa_create_methodlist_node): Removed.
1955         (ipa_methodlist_method): Removed.
1956         (ipa_methodlist_method_set): Removed.
1957         (ipa_methodlist_next_method): Removed.
1958         (ipa_methodlist_next_method_set): Removed.
1959         (ipa_method_is_modified): Removed.
1960         (ipa_method_modify_create): Removed.
1961         (ipa_method_modify_init): Temporary variable info instead of a few 
1962         dereferences.
1963         (ipa_detect_param_modifications): Temporary variable info instead of 
1964         a few dereferences.
1965         (ipa_compute_jump_functions): Temporary variable info instead of 
1966         a few dereferences.
1967         (ipa_method_modify_set): Removed.
1968         (ipa_method_tree_map): Renamed to ipa_get_param_decl_index
1969         (ipa_get_param_decl_index): Now accepts struct ipa_node_params rather 
1970         than craph_node as the first parameter.
1971         (ipa_method_modify_stmt): Renamed to ipa_check_stmt_modifications
1972         (ipa_method_modify_init): Removed.
1973         (ipa_compute_jump_functions): Added a temp variable instead of 
1974         repeatadly dereferencing the cgraph_edge.aux pointer
1975         (ipa_callsite_param_set_type): Removed.
1976         (ipa_compute_jump_functions): i renamed to index and moved to 
1977         an inner block
1978         (ipa_callsite_param_set_info_type_formal): Removed.
1979         (ipa_callsite_param_set_info_type): Removed.
1980         (ipa_callsite_param_map_create): Removed.
1981         (ipa_callsite_tree): Removed.
1982         (ipa_callsite_caller): Removed.
1983         (ipa_pop_func_from_list): return_method removed to return_func
1984
1985         * ipa-prop.h (enum cvalue_type): Renamed to ipa_lattice_type,
1986         prefixed all values with IPA_. Changed all users.
1987         (enum jump_func_type): Rnamed UNKNOWN_IPATYPE to IPA_UNKNOWN, 
1988         CONST_IPATYPE to IPA_CONST, CONST_IPATYPE_REF to IPA_CONST_REF 
1989         and FORMAL_IPATYPE IPA_PASS_THROUGH. 
1990         (union parameter_info): Renamed to jump_func_value.
1991         (union jump_func_value): Renamed value to constant
1992         (struct ipa_jump_func): Renamed info_type to value
1993         (struct ipa_node): Renamed to ipa_node_params
1994         (struct ipa_node_params): Renamed ipa_arg_num to param_count
1995         (struct ipa_node_params): Renamed ipa_param_tree to param_decls
1996         (struct ipa_node_params): Renamed ipa_mod to modified_flags
1997         (struct ipa_edge): Renamed to ipa_edge_args
1998         (struct ipa_edge_args): Renamed ipa_param_num to argument_count
1999         (struct ipa_edge_args): Renamed ipa_param_map to jump_functions
2000         (struct ipa_methodlist): Renamed to ipa_func_list
2001         (struct ipa_func_list): method_p renamed to node, next_method
2002         renamed to next
2003         (ipa_methodlist_p): Removed, switched all users to struct pointer
2004         (IS_VALID_TREE_MAP_INDEX): Renamed to IS_VALID_JUMP_FUNC_INDEX
2005
2006 2008-04-30  Alan Modra  <amodra@bigpond.net.au>
2007
2008         * config/rs6000/rs6000.c (ALWAYS_RESTORE_ALTIVEC_BEFORE_POP): Define.
2009         (rs6000_emit_epilogue): Use backchain to restore only when we
2010         have a large frame.  Make use of frame pointer to restore if we
2011         have one.  Handle ALWAYS_RESTORE_ALTIVEC_BEFORE_POP.
2012
2013 2008-04-29  Paolo Bonzini  <bonzini@gnu.org>
2014
2015         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
2016         Add mode to zero_extract.
2017         (sign bit tests peepholes): (Ditto.).
2018
2019 2008-04-29  H.J. Lu  <hongjiu.lu@intel.com>
2020
2021         * config/i386/i386.c (ix86_builtins): Replace Prescott New
2022         Instructions in comments with SSE3.
2023         (ix86_builtin_type): This.  Add FLOAT128_FTYPE_FLOAT128,
2024         INT64_FTYPE_V4SF, INT64_FTYPE_V2DF, INT_FTYPE_V16QI,
2025         INT_FTYPE_V8QI, INT_FTYPE_V4SF, INT_FTYPE_V2DF,
2026         V16QI_FTYPE_V16QI, V8HI_FTYPE_V8HI, V8HI_FTYPE_V16QI,
2027         V8QI_FTYPE_V8QI, V4SI_FTYPE_V4SI, V4SI_FTYPE_V16QI,
2028         V4SI_FTYPE_V4SF, V4SI_FTYPE_V8HI, V4SI_FTYPE_V2DF,
2029         V4HI_FTYPE_V4HI, V4SF_FTYPE_V4SF, V4SF_FTYPE_V4SI,
2030         V4SF_FTYPE_V2DF, V2DI_FTYPE_V2DI, V2DI_FTYPE_V16QI,
2031         V2DI_FTYPE_V8HI, V2DI_FTYPE_V4SI, V2DF_FTYPE_V2DF,
2032         V2DF_FTYPE_V4SI, V2DF_FTYPE_V4SF, V2DF_FTYPE_V2SI,
2033         V2SI_FTYPE_V2SI, V2SI_FTYPE_V4SF, V2SI_FTYPE_V2SF,
2034         V2SI_FTYPE_V2DF, V2SF_FTYPE_V2SF and V2SF_FTYPE_V2SI.
2035         (bdesc_sse_args): Renamed to ...
2036         (bdesc_args): This.  Add IX86_BUILTIN_PF2ID, IX86_BUILTIN_PFRCP,
2037         IX86_BUILTIN_PFRSQRT, IX86_BUILTIN_PI2FD, IX86_BUILTIN_PF2IW,
2038         IX86_BUILTIN_PSWAPDSI, IX86_BUILTIN_PSWAPDSF and
2039         IX86_BUILTIN_FABSQ.
2040         (bdesc_1arg): Moved to ...
2041         (bdesc_args): Here.
2042         (ix86_init_mmx_sse_builtins): Updated.  Replace Prescott New
2043         Instructions in comments with SSE3.
2044         (ix86_expand_sse_operands_builtin): Renamed to ...
2045         (ix86_expand_args_builtin): This.  Updated.
2046         (ix86_expand_unop1_builtin): Update comments.
2047         (ix86_expand_builtin): Updated.
2048
2049 2008-04-29  Richard Guenther  <rguenther@suse.de>
2050
2051         PR tree-optimization/36078
2052         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
2053         Update virtual SSA form after cleaning up the CFG.
2054
2055 2008-04-29  Richard Guenther  <rguenther@suse.de>
2056
2057         PR middle-end/15255
2058         * fold-const.c (fold_binary): Fold (A + A) * C to A * 2*C.
2059
2060 2008-04-29  Richard Guenther  <rguenther@suse.de>
2061
2062         * tree-ssa-alias.c (finalize_ref_all_pointers): Remove.
2063         (compute_may_aliases): Do not call finalize_ref_all_pointers.
2064         (compute_flow_insensitive_aliasing): Do not treat
2065         PTR_IS_REF_ALL pointers special.
2066         (get_smt_for): Likewise.
2067         (may_alias_p): Re-structure.
2068         (is_escape_site): A ref-all pointer conversion is not an escape site.
2069         * tree-ssa-structalias.c (find_what_p_points_to): Do not treat
2070         PTR_IS_REF_ALL pointers special.
2071         * tree-ssa-structalias.h (struct alias_info): Remove
2072         ref_all_symbol_mem_tag field.
2073         (PTR_IS_REF_ALL): Remove.
2074
2075 2008-04-29  Richard Guenther  <rguenther@suse.de>
2076
2077         PR middle-end/36077
2078         * fold-const.c (extract_muldiv_1): In combining division constants
2079         make sure to never overflow.
2080
2081 2008-04-29  Nick Clifton  <nickc@redhat.com>
2082
2083         * doc/tm.texi (RETURN_ADDR_RTX): Fix typo.
2084
2085 2008-04-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2086
2087         PR bootstrap/35169
2088         * optc-gen.awk: Work around HP-UX/IA awk bug.
2089
2090 2008-04-28  Danny Smith  <dannysmith@users.sourceforge.net>
2091
2092         * config/i386/cygming-crtend.c (register_frame_ctor): Revert my
2093         2008-04-25 commit.
2094
2095 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
2096
2097         PR target/36073
2098         * config/i386/i386.md
2099         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit):
2100         Change operand 1 predicate to nonimmediate_operand.
2101
2102 2008-04-28  Jakub Jelinek  <jakub@redhat.com>
2103
2104         PR debug/36060
2105         * dwarf2out.c (struct die_struct): Mark as chain_circular through
2106         die_sub field.
2107         * gengtype.c (walk_type, write_func_for_structure): Handle
2108         chain_circular.
2109         * doc/gty.texi: Document chain_circular.
2110
2111 2008-04-28  Richard Guenther  <rguenther@suse.de>
2112
2113         PR tree-optimization/36066
2114         * tree-vrp.c (execute_vrp): Cleanup the CFG only after finalizing
2115         SCEV and loop.
2116
2117 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
2118
2119         PR target/36064
2120         * config/i386/i386.md
2121         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters):
2122         Use match_scratch instead of match_operand for operands 3 and 4.
2123
2124 2008-04-27  Richard Guenther  <rguenther@suse.de>
2125
2126         PR tree-optimization/18754
2127         PR tree-optimization/34223
2128         * tree-pass.h (pass_complete_unrolli): Declare.
2129         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Print
2130         loop size before and after unconditionally of UL_NO_GROWTH in effect.
2131         Rewrite loop into loop closed SSA form if it is not already.
2132         (tree_unroll_loops_completely): Re-structure to iterate over
2133         innermost loops with intermediate CFG cleanups.
2134         Unroll outermost loops only if requested or the code does not grow
2135         doing so.
2136         * tree-ssa-loop.c (gate_tree_vectorize): Don't shortcut if no
2137         loops are available.
2138         (tree_vectorize): Instead do so here.
2139         (tree_complete_unroll): Also unroll outermost loops.
2140         (tree_complete_unroll_inner): New function.
2141         (gate_tree_complete_unroll_inner): Likewise.
2142         (pass_complete_unrolli): New pass.
2143         * tree-ssa-loop-manip.c (find_uses_to_rename_use): Only record
2144         uses outside of the loop.
2145         (tree_duplicate_loop_to_header_edge): Only verify loop-closed SSA
2146         form if it is available.  
2147         * tree-flow.h (tree_unroll_loops_completely): Add extra parameter.
2148         * passes.c (init_optimization_passes): Schedule complete inner
2149         loop unrolling pass before the first CCP pass after final inlining.
2150
2151 2008-04-27  Nathan Sidwell  <nathan@codesourcery.com>
2152
2153         * targhooks.h (default_emutls_var_fields,
2154         default_emutls_var_init): Declare.
2155         * tree.h (DECL_THREAD_LOCAL): Compare against TLS_MODEL_REAL.
2156         * target.h (struct gcc_target): Add struct emutls member.
2157         * target-def.h (TARGET_EMUTLS_GET_ADDRESS,
2158         TARGET_EMUTLS_REGISTER_COMMON, TARGET_EMUTLS_VAR_SECTION,
2159         TARGET_EMUTLS_TMPL_SECTION, TARGET_EMUTLS_VAR_PREFIX,
2160         TARGET_EMUTLS_TMPL_PREFIX, TARGET_EMUTLS_VAR_FIELDS,
2161         TARGET_EMUTLS_VAR_INIT, TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS,
2162         TARGET_EMUTLS_VAR_ALIGN_FIXED, TARGET_EMUTLS): New.
2163         (TARGET_INITIALIZER): Add TARGET_EMUTLS.
2164         * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS,
2165         BUILT_IN_EMUTLS_REGISTER_COMMON): Get name from targetm structure.
2166         * dwarf2out.c (loc_descriptor_from_tree_1): Check if emutls can
2167         emit debug information.
2168         * coretypes.h (tls_model): Add TLS_MODEL_EMULATED, TLS_MODEL_REAL.
2169         * varasm.c: Include targhooks.h.
2170         (emutls_object_section, emutls_tmpl_section): New.
2171         (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): Remove.
2172         (EMUTLS_SEPARATOR): New.
2173         (prefix_name): New.
2174         (get_emutls_object_name): New.
2175         (default_emutls_var_fields): New, broken out of ...
2176         (get_emutls_object_type): ... here.  Adjust to use target hooks.
2177         (get_emutls_init_templ_addr): Adjust to use target hooks.
2178         (emutls_decl): Adjust to use target hooks.
2179         (emutls_finish): Likewise.
2180         (default_emutls_var_init): New, broken out of ...
2181         (assemble_variable): ... here.  Adjust to use target hooks.
2182         * output.h (enum section_category): Add SECCAT_EMUTLS_VAR,
2183         SECCAT_EMUTLS_TMPL.
2184         * c-common.c (handle_section_attribute): Prevent overriding
2185         sections for emulated tls with special sections.
2186         * config/i386/i386.c (x86_64_elf_select_section): Add
2187         SECCAT_EMUTLS_VAR and SECCAT_EMUTLS_TMPL.
2188         (x86_64_elf_unique_section): Likewise.
2189         * config/vxworks.c: Include tree.h.
2190         (vxworks_emutls_var_fields, vxworks_emutls_var_init): New.
2191         (vxworks_override_options): Set TLS scheme.
2192         * doc/tm.texi (Emulated TLS): New node.
2193
2194 2008-04-26  Simon Baldwin <simonb@google.com>
2195
2196         PR c/35652
2197         * builtins.c (c_strlen): Suppressed multiple warnings that can occur
2198         with propagated string constants.
2199
2200 2008-04-26  Uros Bizjak  <ubizjak@gmail.com>
2201
2202         * config/i386/i386.md (fix_trunc<mode>_i387_fisttp_with_temp): Use 'X'
2203         constraint for operand 2 when operand 0 is memory operand.
2204         (fix_truncdi_i387_with_temp): : Use 'X' constraint for operand 4 when
2205         operand 0 is memory operand.
2206         (fix_trunc<mode>_i387_with_temp): Ditto.
2207         (*floatsi<mode>2_vector_mixed_with_temp): Use 'X' constraint for
2208         operand 2 when operand 1 is memory operand.
2209         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Ditto.
2210         (*floatsi<mode>2_vector_sse_with_temp): Ditto.
2211         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Ditto.
2212         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
2213         (floatdi<X87MODEF:mode>2_i387_with_xmm): Use 'X' constraint for
2214         operands 2,3 and 4 when operand 1 is memory operand.
2215         (fistdi2_with_temp): Use 'X' constraint for operand 2 when operand 0
2216         is memory operand.
2217         (fistdi2_floor_with_temp): Ditto.
2218         (fist<mode>2_floor_with_temp): Ditto.
2219         (fistdi2_ceil_with_temp): Ditto.
2220         (fist<mode>2_ceil_with_temp): Ditto.
2221         (*truncdfsf_fast_mixed): Merge alternatives 0 and 1.
2222
2223 2008-04-26  David Daney  <ddaney@avtrex.com>
2224
2225         * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP_12): New
2226         unspec_volitile.
2227         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE,
2228         UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
2229         UNSPEC_UPDATE_GOT_VERSION): Renumber.
2230         (sync_compare_and_swap<mode>): New expand for QI and HI modes.
2231         (compare_and_swap_12): New insn.
2232         * config/mips/mips-protos.h (mips_expand_compare_and_swap_12): Declare.
2233         * config/mips/mips.c (mips_force_binary): New function.
2234         (mips_emit_int_order_test, mips_expand_synci_loop): Use it.
2235         (mips_expand_compare_and_swap_12): New function.
2236         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): New macro.
2237
2238 2008-04-25  Jan Hubicka  <jh@suse.cz>
2239
2240         PR testsuite/35843
2241         * cfgexpand.c (pass_expand): Turn into RTL pass.
2242         * passes.c (execute_one_pass): Do pass typechecking after execution.
2243         * tree-pass.h (pass_expand): Turn into RTL pass.
2244
2245         * function.h (struct rtl_data): Move here fields
2246         accesses_prior_frames, calls_eh_return, saves_all_registers,
2247         has_nonlocal_goto, has_asm_statement, is_thunk,
2248         all_throwers_are_sibcalls, limit_stack, profile, uses_const_pool,
2249         uses_pic_offset_table, uses_eh_lsda, tail_call_emit,
2250         arg_pointer_save_area_init from struct function; turn into bool.
2251         (struct function): Move
2252         calls_eh_return, saves_all_registers, has_nonlocal_goto,
2253         has_asm_statement, is_thunk, all_throwers_are_sibcalls, limit_stack,
2254         profile, uses_const_pool, uses_pic_offset_table, uses_eh_lsda,
2255         tail_call_emit, arg_pointer_save_area_init
2256         into struct rtl_data.  Remove recursive_call_emit and gimplified flags.
2257         (current_function_returns_struct, current_function_returns_pcc_struct,
2258         current_function_calls_setjmp, current_function_calls_alloca,
2259         current_function_accesses_prior_frames,
2260         current_function_calls_eh_return, current_function_is_thunk,
2261         current_function_stdarg, current_function_profile,
2262         current_function_limit_stack, current_function_uses_pic_offset_table,
2263         current_function_uses_const_pool, current_function_has_nonlocal_label,
2264         current_function_saves_all_registers,
2265         current_function_has_nonlocal_goto,
2266         current_function_has_asm_statement): Remove accesor macros.
2267         * ra-conflict.c (global_conflicts): Update.
2268         * tree-tailcall.c (suitable_for_tail_opt_p): Update.
2269         (suitable_for_tail_call_opt_p): Update.
2270         * builtins.c (expand_builtin_return_addr): Update.
2271         (expand_builtin_setjmp_setup): Update.
2272         (expand_builtin_nonlocal_goto): Update.
2273         * final.c (final_start_function): Update.
2274         (profile_function): Update.
2275         (leaf_function_p): Update.
2276         (only_leaf_regs_used): Update.
2277         * df-scan.c (df_get_exit_block_use_set): Update.
2278         * dojump.c (clear_pending_stack_adjust): Update.
2279         * tree-stdarg.c (gate_optimize_stdarg): Update.
2280         * gimple-low.c (lower_function_body): Update.
2281         * global.c (compute_regsets): Update.
2282         (global_alloc): Update.
2283         * dwarf2out.c (dwarf2out_begin_prologue): Update.
2284         * expr.c (expand_assignment): Update.
2285         * dse.c (dse_step0): Update.
2286         (dse_step1): Update.
2287         * c-decl.c (store_parm_decls): Update.
2288         * local-alloc.c (combine_regs): Update.
2289         (find_free_reg): Update.
2290         * function.c (assign_parms_augmented_arg_list): Update.
2291         (assign_parm_find_data_types): Update.
2292         (assign_parms): Update.
2293         (allocate_struct_function): Update.
2294         (expand_function_start): Update.
2295         (expand_function_end): Update.
2296         (get_arg_pointer_save_area): Update.
2297         (thread_prologue_and_epilogue_insns): Update.
2298         (rest_of_match_asm_constraints): Update.
2299         * stor-layout.c (variable_size): Update.
2300         * gcse.c (gcse_main): Update.
2301         (bypass_jumps): Update.
2302         * gimplify.c (gimplify_function_tree): Update.
2303         * calls.c (emit_call_1): Update.
2304         (expand_call): Update.
2305         * bt-load.c (compute_defs_uses_and_gen): Update.
2306         * except.c (sjlj_assign_call_site_values): Update.
2307         (sjlj_emit_function_enter): Update.
2308         (can_throw_external): Update.
2309         (set_nothrow_function_flags): Update.
2310         (expand_builtin_unwind_init): Update.
2311         (expand_eh_return): Update.
2312         (convert_to_eh_region_ranges): Update.
2313         (output_function_exception_table): Update.
2314         * emit-rtl.c (gen_tmp_stack_mem): Update.
2315         * cfgexpand.c (expand_used_vars): Update.
2316         (tree_expand_cfg): Update.
2317         * cfgcleanup.c (rest_of_handle_jump): Update.
2318         * explow.c (allocate_dynamic_stack_space): Update.
2319         * varasm.c (assemble_start_function): Update.
2320         (force_const_mem): Update.
2321         (mark_constant_pool): Update.
2322         * tree-optimize.c (tree_rest_of_compilation): Update.
2323         * stack-ptr-mod.c (notice_stack_pointer_modification): Update.
2324         * tree-cfg.c (notice_special_calls): Update.
2325         (is_ctrl_altering_stmt): Update.
2326         (tree_can_make_abnormal_goto): Update.
2327         (tree_purge_dead_abnormal_call_edges): Update.
2328         * config/alpha/predicates.md: Update.
2329         * config/alpha/alpha.c (alpha_sa_mask): Update.
2330         (alpha_sa_size): Update.
2331         (alpha_does_function_need_gp): Update.
2332         (alpha_expand_prologue): Update.
2333         (alpha_start_function): Update.
2334         (alpha_output_function_end_prologue): Update.
2335         (alpha_expand_epilogue): Update.
2336         * config/frv/frv.c (frv_stack_info): Update.
2337         (frv_expand_epilogue): Update.
2338         * config/s390/s390.c (s390_regs_ever_clobbered): Update.
2339         (s390_register_info): Update.
2340         (s390_frame_info): Update.
2341         (s390_init_frame_layout): Update.
2342         (s390_can_eliminate): Update.
2343         (save_gprs): Update.
2344         * config/spu/spu.c (spu_split_immediate): Update.
2345         (need_to_save_reg): Update.
2346         (spu_expand_prologue): Update.
2347         (spu_expand_epilogue): Update.
2348         * config/sparc/sparc.md: Update.
2349         * config/sparc/sparc.c (eligible_for_return_delay): Update.
2350         (sparc_tls_got): Update.
2351         (legitimize_pic_address): Update.
2352         (sparc_emit_call_insn): Update.
2353         (sparc_expand_prologue): Update.
2354         (output_return): Update.
2355         (print_operand): Update.
2356         (sparc_function_ok_for_sibcall): Update.
2357         * config/sparc/sparc.h (EXIT_IGNORE_STACK): Update.
2358         * config/m32r/m32r.md: Update.
2359         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Update.
2360         (m32r_compute_frame_size): Update.
2361         (m32r_expand_prologue): Update.
2362         (m32r_expand_epilogue): Update.
2363         (m32r_legitimize_pic_address): Update.
2364         * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Update.
2365         * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
2366         * config/i386/i386.c (ix86_frame_pointer_required): Update.
2367         (gen_push): Update.
2368         (ix86_save_reg): Update.
2369         (ix86_compute_frame_layout): Update.
2370         (ix86_expand_prologue): Update.
2371         (ix86_expand_epilogue): Update.
2372         * config/sh/sh.c (output_stack_adjust): Update.
2373         (calc_live_regs): Update.
2374         (sh5_schedule_saves): Update.
2375         (sh_expand_prologue): Update.
2376         (sh_expand_epilogue): Update.
2377         (sh_setup_incoming_varargs): Update.
2378         (sh_allocate_initial_value): Update.
2379         (sh_get_pr_initial_val): Update.
2380         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Update.
2381         * config/sh/sh.md (label:): Update.
2382         * config/avr/avr.c (out_movhi_mr_r): Update.
2383         * config/crx/crx.h (enum): Update.
2384         * config/xtensa/xtensa.h (along): Update.
2385         * config/stormy16/stormy16.c Update.
2386         (xstormy16_compute_stack_layout): Update.
2387         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Update.
2388         (fr30_expand_prologue): Update.
2389         * config/cris/cris.c (cris_conditional_register_usage): Update.
2390         (cris_reg_saved_in_regsave_area): Update.
2391         (cris_initial_frame_pointer_offset): Update.
2392         (cris_simple_epilogue): Update.
2393         (cris_expand_prologue): Update.
2394         (cris_expand_epilogue): Update.
2395         (cris_expand_pic_call_address): Update.
2396         (cris_asm_output_symbol_ref): Update.
2397         (cris_asm_output_label_ref): Update.
2398         * config/cris/cris.md Update.
2399         * config/iq2000/iq2000.c (compute_frame_size): Update.
2400         (iq2000_expand_epilogue): Update.
2401         * config/mt/mt.h (save_direction): Update.
2402         * config/mn10300/mn10300.c (mn10300_function_value): Update.
2403         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
2404         (ia64_secondary_reload_class): Update.
2405         * config/m68k/m68k.c (m68k_save_reg): Update.
2406         (m68k_expand_prologue): Update.
2407         (m68k_expand_epilogue): Update.
2408         (legitimize_pic_address): Update.
2409         * config/rs6000/rs6000.c (rs6000_got_register): Update.
2410         (first_reg_to_save): Update.
2411         (first_altivec_reg_to_save): Update.
2412         (compute_vrsave_mask): Update.
2413         (compute_save_world_info): Update.
2414         (rs6000_stack_info): Update.
2415         (spe_func_has_64bit_regs_p): Update.
2416         (rs6000_ra_ever_killed): Update.
2417         (rs6000_emit_eh_reg_restore): Update.
2418         (rs6000_emit_allocate_stack): Update.
2419         (rs6000_emit_prologue): Update.
2420         (rs6000_emit_epilogue): Update.
2421         (rs6000_output_function_epilogue): Update.
2422         (output_profile_hook): Update.
2423         (rs6000_elf_declare_function_name): Update.
2424         * config/rs6000/rs6000.h (rs6000_args): Update.
2425         * config/rs6000/rs6000.md: Update.
2426         * config/mcore/mcore.c (mcore_expand_prolog): Update.
2427         * config/arc/arc.c (arc_output_function_epilogue): Update.
2428         * config/arc/arc.h (FRAME_POINTER_REQUIRED): Update.
2429         * config/darwin.c (machopic_function_base_name): Update.
2430         * config/score/score3.c (score3_compute_frame_size): Update.
2431         (rpush): Update.
2432         (rpop): Update.
2433         (score3_epilogue): Update.
2434         * config/score/score7.c (score7_compute_frame_size): Update.
2435         (score7_prologue): Update.
2436         (score7_epilogue): Update.
2437         * config/score/score.h (FRAME_POINTER_REQUIRED): Update.
2438         * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
2439         * config/arm/arm.c (use_return_insn): Update.
2440         (require_pic_register): Update.
2441         (arm_load_pic_register): Update.
2442         (arm_compute_save_reg0_reg12_mask): Update.
2443         (arm_compute_save_reg_mask): Update.
2444         (thumb1_compute_save_reg_mask): Update.
2445         (output_return_instruction): Update.
2446         (arm_output_function_prologue): Update.
2447         (arm_output_epilogue): Update.
2448         (arm_get_frame_offsets): Update.
2449         (arm_expand_prologue): Update.
2450         (thumb_pushpop): Update.
2451         (thumb_exit): Update.
2452         (thumb1_expand_prologue): Update.
2453         (thumb1_expand_epilogue): Update.
2454         (arm_unwind_emit): Update.
2455         (arm_output_fn_unwind): Update.
2456         * config/arm/arm.h (FRAME_POINTER_REQUIRED): Update.
2457         * config/arm/arm.md: Update.
2458         * config/pa/pa.md: Update.
2459         * config/pa/pa.c (legitimize_pic_address): Update.
2460         (compute_frame_size): Update.
2461         (hppa_expand_prologue): Update.
2462         (hppa_expand_epilogue): Update.
2463         (borx_reg_operand): Update.
2464         * config/pa/pa.h (FRAME_POINTER_REQUIRED): Update.
2465         (HARD_REGNO_RENAME_OK): Update.
2466         * config/mips/mips.c (mips_global_pointer): Update.
2467         (mips_save_reg_p): Update.
2468         (mips_compute_frame_info): Update.
2469         (mips_frame_pointer_required): Update.
2470         (mips_expand_prologue): Update.
2471         (mips_expand_epilogue): Update.
2472         (mips_can_use_return_insn): Update.
2473         (mips_reorg_process_insns): Update.
2474         * config/v850/v850.c (compute_register_save_size): Update.
2475         * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Update.
2476         * config/mmix/mmix.c (along): Update.
2477         (mmix_expand_epilogue): Update.
2478         * config/bfin/bfin.c (legitimize_pic_address): Update.
2479         (must_save_p): Update.
2480         (stack_frame_needed_p): Update.
2481         (add_to_reg): Update.
2482         (bfin_expand_prologue): Update.
2483         * stmt.c (expand_asm_operands): Update.
2484         * reload1.c (reload): Update.
2485         (init_elim_table): Update.
2486
2487 2008-04-25  Bob Wilson  <bob.wilson@acm.org>
2488         
2489         * optabs.c (expand_float): Fix REG_EQUAL for UNSIGNED_FLOAT libcall.
2490         
2491 2008-04-25  H.J. Lu  <hongjiu.lu@intel.com>
2492
2493         * config/i386/sse.md (mov<mode>): Replace SSEMODEI with SSEMODE.
2494         (*mov<mode>_internal): Likewise.  Support V4SF and V2DF.
2495         (mov<mode>): Removed.
2496         (*movv4sf_internal): Likewise.
2497         (*movv2df_internal): Likewise.
2498
2499 2008-04-25  Pompapathi V Gadad <Pompapathi.V.Gadad@nsc.com>
2500
2501         * config.gcc (crx-*-elf): Remove deprecation.
2502
2503 2008-04-25  Danny Smith  <dannysmith@users.sourceforge.net>
2504
2505         * config/i386/cygming-crtend.c (register_frame_ctor): Register
2506         __gcc_deregister_frame with atexit.
2507         (deregister_frame_dtor): Remove.
2508
2509 2008-04-24  Nathan Froyd  <froydnj@codesourcery.com>
2510             Nathan Sidwell  <nathan@codesourcery.com>
2511
2512         * config/rs6000/rs6000.opt (mspe): Remove Var property.
2513         (misel): Likewise.
2514         * config/rs6000/rs6000.h (rs6000_spe): Declare.
2515         (rs6000_isel): Likewise.
2516         * config/rs6000/rs6000.c (rs6000_spe): New variable.
2517         (rs6000_isel): New variable.
2518         (rs6000_handle_option): Handle OPT_mspe and OPT_misel.
2519
2520 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
2521
2522         PR c++/35758
2523         * c-common.c (handle_vector_size_attribute): Call
2524         lang_hooks.types.reconstruct_complex_type instead of
2525         reconstruct_complex_type.
2526         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Likewise.
2527         * config/spu/spu.c (spu_handle_vector_attribute): Likewise.
2528         * langhooks.h (struct lang_hooks_for_types): Add
2529         reconstruct_complex_type hook.
2530         * langhooks-def.h (LANG_HOOKS_RECONSTRUCT_COMPLEX_TYPE): Define.
2531         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
2532
2533 2008-04-24  Richard Guenther  <rguenther@suse.de>
2534
2535         * c-common.h (check_builtin_function_arguments): Declare.
2536         * c-common.c (validate_nargs): New function.
2537         (check_builtin_function_arguments): Likewise.
2538         * c-typeck.c (build_function_call): Call
2539         check_builtin_function_arguments.
2540         * builtins.c (fold_builtin_classify): Remove error reporting code.
2541         (fold_builtin_unordered_cmp): Likewise.
2542         (fold_builtin_1): Likewise.
2543         (fold_builtin_n): Likewise.
2544
2545 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
2546
2547         PR tree-optimization/36008
2548         * fold-const.c (try_move_mult_to_index): If s == NULL, divide
2549         the original op1, rather than delta by step.
2550
2551 2008-04-22  Antoniu Pop  <antoniu.pop@gmail.com>
2552             Sebastian Pop  <sebastian.pop@amd.com>
2553
2554         * tree-parloops.c (take_address_of, eliminate_local_variables_1,
2555         eliminate_local_variables_stmt, eliminate_local_variables,
2556         separate_decls_in_loop_name, separate_decls_in_loop_stmt,
2557         separate_decls_in_loop, gen_parallel_loop): Make them work on a region
2558         of code delimited by two edges in the CFG.
2559         (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
2560         (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
2561         (separate_decls_in_loop): Renamed separate_decls_in_region.  Isolate 
2562         the case of parallelisation of reductions.
2563         (expr_invariant_in_region_p): New.
2564
2565         * tree-flow.h (gather_blocks_in_sese_region): Declared.
2566         * tree-cfg.c (gather_blocks_in_sese_region): Extern.
2567
2568 2008-04-24  Ira Rosen  <irar@il.ibm.com>
2569             Richard Guenther  <rguenther@suse.de>
2570
2571         PR tree-optimization/36034
2572         * tree-vect-analyze.c (vect_analyze_group_access): SLP is
2573         incapable of dealing with loads with gaps.
2574
2575 2008-04-24  Rafael Espindola  <espindola@google.com>
2576
2577         * tree-flow.h (vrp_evaluate_conditional): Change signature.
2578         * tree-ssa-propagate.c (fold_predicate_in): Update call to
2579         vrp_evaluate_conditional.
2580         * tree-vrp.c (vrp_evaluate_conditional_warnv): Remove.
2581         (vrp_evaluate_conditional): Split the cond argument.
2582         (vrp_visit_cond_stmt): Use vrp_evaluate_conditional_warnv_with_ops.
2583         (simplify_stmt_for_jump_threading): Update call to
2584         vrp_evaluate_conditional.
2585
2586 2008-04-24  Ira Rosen  <irar@il.ibm.com>
2587
2588         PR tree-optimization/35982
2589         * tree-vect-analyze.c (vect_check_interleaving): Check that the
2590         interleaved data-refs are of the same type.
2591
2592 2008-04-24  Danny Smith  <dannysmith@users.net>
2593
2594         * c-format.c (check_format_info_main): Use strncmp rather than a
2595         magic prefix to handle multichar length specs.
2596         * config/i386/msformat-c.c (format_length_info ms_printf_length_specs):
2597         Don't prefix "I64" and "I32" with '\0'.
2598
2599 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
2600
2601         PR target/36015
2602         * config/i386/i386.c (init_cumulative_args): Don't pass anything
2603         in registers for -m32 only if stdarg_p (fntype).
2604
2605 2008-04-24  Uros Bizjak  <ubizjak@gmail.com>
2606
2607         PR rtl-optimization/36006
2608         * expmed.c (store_fixed_bit_field): Copy op0 rtx before moving
2609         temp to op0 in order to avoid invalid rtx sharing.
2610
2611 2008-04-23  Paolo Bonzini  <bonzini@gnu.org>
2612
2613         * tree-cfg.c (verify_expr): Check with is_gimple_address.  Don't
2614         check TREE_INVARIANT.
2615         * tree-gimple.c (is_gimple_address): New.
2616         (is_gimple_invariant_address): Simplify using decl_address_invariant_p.
2617         * tree-gimple.h (is_gimple_address): New.
2618         * tree.h (decl_address_invariant_p): New.
2619         * tree.c (make_node_stat): Don't set TREE_INVARIANT.
2620         (build_string): Likewise.
2621         (decl_address_invariant_p): New, from is_gimple_invariant_address.
2622         (tree_invariant_p_1): Likewise.
2623         (save_expr): Use it.
2624         (tree_invariant_p): New.
2625         (skip_simple_arithmetic): Use it.
2626         (stabilize_reference_1): Use it.
2627         (recompute_tree_invariant_for_addr_expr): Don't update TREE_INVARIANT,
2628         simplify.
2629         (build1_stat): Drop code to compute TREE_INVARIANT.
2630         (build2_stat): Drop code to compute TREE_INVARIANT.
2631         (build3_stat): Drop code to compute TREE_INVARIANT.
2632         (build4_stat): Drop code to compute TREE_INVARIANT.
2633         (build5_stat): Drop code to compute TREE_INVARIANT.
2634         (build7_stat): Drop code to compute TREE_INVARIANT.
2635         (merge_dllimport_decl_attributes): Don't mention TREE_INVARIANT.
2636         * tree.h (struct tree_base): Remove invariant_flag.
2637         (TREE_INVARIANT): Remove.
2638         * builtins.c (build_string_literal): Don't set TREE_INVARIANT.
2639         (fold_builtin_expect): Check TREE_CONSTANT.
2640         * tree-ssa-ccp.c (fold_stmt_r): Adjust comment.
2641         * c-tree.h (c_expr_to_decl): Drop third parameter.
2642         * c-typeck.c (build_external_ref): Don't set TREE_INVARIANT.
2643         (build_c_cast): Don't set TREE_INVARIANT.
2644         (pop_init_level): Don't set TREE_INVARIANT.
2645         (c_objc_common_truthvalue_conversion): Don't set TREE_INVARIANT.
2646         * gimplify.c (gimplify_init_ctor_preeval): Add assertion, test
2647         TREE_CONSTANT.
2648         (gimplify_init_constructor): Don't set TREE_INVARIANT.
2649         (gimplify_addr_expr): Adjust comment.
2650         * tree-mudflap.c (mf_build_string):
2651         * print-tree.c (print_node): Don't print TREE_INVARIANT.
2652         * tree-nested.c (convert_nonlocal_reference): Adjust comment.
2653         * c-common.c (fix_string_type): Don't set TREE_INVARIANT.
2654         * langhooks-def.h (lhd_expr_to_decl): Drop third parameter.
2655         * langhooks.c (lhd_expr_to_decl): Drop third parameter.
2656         * langhooks.h (struct lang_hooks): Drop third parameter from
2657         expr_to_decl.
2658
2659 2008-04-23  Richard Guenther  <rguenther@suse.de>
2660
2661         PR tree-optimization/27799
2662         PR tree-optimization/32921
2663         PR tree-optimization/32624
2664         * tree-ssa-structalias.c (merge_smts_into): Only merge the
2665         SMTs aliases and the tag itself into the solution.
2666         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Do not
2667         merge the points-to solution back into the SMT aliases.
2668         (may_alias_p): Use alias_set_subset_of instead of
2669         aliases_conflict_p.  A pointer which points to
2670         memory with alias set zero may access any variable.
2671
2672 2008-04-23  Richard Guenther  <rguenther@suse.de>
2673
2674         * alias.c (alias_set_subset_of): Correctly handle asking
2675         if zero is a subset of an alias set with zero child.
2676         * tree-ssa-alias.c (have_common_aliases_p): Simplify logic.
2677         (compute_flow_insensitive_aliasing): Correctly walk all
2678         pointers.  Do not unnecessarily union sets.
2679
2680 2008-04-23  Richard Guenther  <rguenther@suse.de>
2681
2682         PR middle-end/36021
2683         * c-common.c (handle_alloc_size_attribute): Use type_num_arguments.
2684
2685 2008-04-22  Tomas Bily  <tbily@suse.cz>
2686
2687         * tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as
2688         unreachable case.
2689         * tree-vrp.c (extract_range_from_unary_expr): Removed unused
2690         NON_LVALUE_EXPR.
2691         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
2692         * tree-ssa-structalias.c (get_constraint_for): Likewise.
2693         * tree-inline.c (estimate_num_insns_1): Likewise.
2694         * varasm.c (const_hash_1, compare_constant, copy_constant)
2695         (compute_reloc_for_constant, output_addressed_constants): Likewise.
2696         * emit-rtl.c (component_ref_for_mem_expr)
2697         (set_mem_attributes_minus_bitpos): Likewise.
2698         * expr.c (highest_pow2_factor, expand_expr_real_1, )
2699         (is_aligning_offset): Likewise.
2700         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info): Likewise.
2701         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
2702         * dojump.c (do_jump): Likewise.
2703         * builtins.c (get_pointer_alignment, get_memory_rtx)
2704         (integer_valued_real_p, fold_builtin_next_arg): Likewise.
2705         * tree-scalar-evolution.c (instantiate_parameters_1): Likewise.
2706
2707 2008-04-23  Jakub Jelinek  <jakub@redhat.com>
2708
2709         PR rtl-optimization/36017
2710         * builtins.c (expand_errno_check): Clear CALL_EXPR_TAILCALL before
2711         expanding the library call.
2712
2713 2008-04-22  Ian Lance Taylor  <iant@google.com>
2714
2715         * fold-const.c (pointer_may_wrap_p): Call int_size_in_bytes rather
2716         than size_in_bytes.
2717
2718 2008-04-22  Pat Haugen  <pthaugen@us.ibm.com>
2719
2720         * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
2721         of LR/CTR moves for Power6.
2722
2723 2008-04-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
2724
2725         PR middle-end/36003
2726         * passes.c (init_optimization_passes): Remove
2727         pass_fast_rtl_byte_dce.
2728         
2729 2008-04-22  Uros Bizjak  <ubizjak@gmail.com>
2730
2731         PR target/29096
2732         * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Rearrange calls to
2733         builtin functions to generate faster code.
2734         (_mm_cvtpu16_ps): Ditto.
2735         (_mm_cvtpi32x2_ps): Ditto.
2736
2737 2008-04-22  Nick Clifton  <nickc@redhat.com>
2738
2739         * common.opt (ftree-loop-distribution): Add Optimization
2740         attribute.
2741
2742         * config/frv/frv.c (frv_stack_info): Use crtl instead of cfun.
2743         (frv_expand_builtin_va_start): Likewise.
2744
2745         * config/arm/arm.c (thumb_find_work_register): Fix location of
2746         argument register count.
2747
2748 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
2749
2750         Support scheduling for ColdFire V1 and V3 microarchitecture.
2751         Improve scheduling of multiplication instructions.
2752
2753         * config/m68k/m68k.md (cpu): Add cfv1 and cfv3.  Rename cf_v2 to cfv1.
2754         (mac): New instruction attribute.
2755         * config/m68k/m68k.c (override_options): Handle cfv1, cfv3 and mac.
2756         (m68k_sched_mac): New variable.
2757         (m68k_sched_attr_type2, m68k_sched_md_init_global): Update.
2758         Handle cfv1 and cfv3.
2759         (max_insn_size): New static variable.
2760         (struct _sched_ib): New type.
2761         (sched_ib): New static variable.
2762         (sched_ib_size, sched_ib_filled, sched_ib_insn): Convert variables
2763         to fields of 'struct _sched_ib sched_ib'.  Update all uses.
2764         (m68k_sched_variable_issue): Add modeling of cfv3 instruction buffer.
2765         Update.
2766         (m68k_sched_md_init_global, m68k_sched_md_finish_global,
2767         m68k_sched_md_init, m68k_sched_md_finish): Handle cfv1 and cfv3.  Init
2768         new variables.  Update.
2769         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
2770         Add modeling of cfv3 instruction buffer.  Update.
2771         * config/m68k/m68k-protos.h (m68k_sched_mac): Declare.
2772         * config/m68k/m68k.h (TUNE_CFV3): New macro.
2773         * config/m68k/cf.md: Change substrings 'cf_v2' to 'cfv12' or 'cfv123'.
2774         (cf_* reservations): Rename to cfv12 or cfv123 to indicate cores
2775         a particular reservation applies to.
2776         (type2): Reorganize attribute values.  Rename alu to alu_reg,
2777         alu_l to alu, move_l to omove.  Join move to alu.  Split mul
2778         to mul_l and mul_w.
2779         (cf_ib_*): Simplify description of instruction buffer.
2780         (cf_ib_w0, cf_ib_w4, cf_ib_w5, cf_ib_w6): Remove.
2781         (cf_mem): Split into cf_mem1 and cf_mem2.
2782         (cf_v2_move_??): Rename to cfv12_alu_??.
2783         (cf_v2_move_l_??): Rename to cfv12_omove_??.
2784         (cf_v2_mul_??): Remove reservations.
2785         (cfv12_mul_l_??, cfv12_mul_w_??, cfv12_mac_w_??, cfv12_mac_l_??,
2786         cfv12_emac_??, cfv12_emac_w_i0): New reservations.
2787         (cfv12_rts, cfv12_call, cfv12_bcc, cfv12_bra, cfv12_jmp): Move to
2788         appropriate place.
2789         (cfv3_alu_10, cfv3_omove_10, cfv3_alu_i0, cfv3_omove_i0, cfv3_alu_01,
2790         cfv3_alu_0i, cfv3_alu_11, cfv3_omove_11, cfv3_alu_i1, cfv3_omove_i1,
2791         cfv3_alu_1i, cfv3_omove_1i, cfv3_pea_11, cfv3_pea_i1, cfv3_mul_w_10,
2792         cfv3_mul_l_10, cfv3_mul_w_i0, cfv3_mac_w_10, cfv3_mac_l_10,
2793         cfv3_mac_w_i0, cfv3_emac_10, cfv3_emac_w_i0, cfv3_rts, cfv3_call,
2794         cfv3_bcc, cfv3_bra, cfv3_jmp): New reservations.
2795         (cfv3_*_1, cfv3_*_2, cfv3_*_3): New instruction reservations that are
2796         expansions of the above reservations for instructions of sizes
2797         1, 2 and 3 words.
2798
2799 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
2800
2801         * rtl-factoring.c (collect_patterns_seqs): Handle CC0 targets.
2802
2803 2008-04-21  Adam Nemet  <anemet@caviumnetworks.com>
2804
2805         * coverage.c: Include tree-pass.h.
2806         (coverage_counter_alloc): Print da_file_name to the dump file.
2807
2808 2008-04-21  Kenneth Zadeck  <zadeck@naturalbridge.com>
2809
2810         * sbitmap.c (sbitmap_range_empty_p): New function.
2811         * sbitmap.h (sbitmap_range_empty_p): New function.
2812         * bitmap.h: Now includes obstack.h.
2813
2814 2008-04-21  Richard Sandiford  <rsandifo@nildram.co.uk>
2815             Kenneth Zadeck  <zadeck@naturalbridge.com>
2816
2817         * dbgcnt.def (ra_byte_scan): Added.
2818         * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
2819         when the last hit happens for a counter.  
2820         * timevar.def (TV_DF_BYTE_LR): New variable.
2821         * tree-pass.h (pass_fast_rtl_byte_dce): New pass.
2822         * passes.c (pass_fast_rtl_byte_dce): New pass.
2823         * fwprop.c (update_df): Added mode to call df_ref_create.
2824         Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
2825         DF_REF_EXTRACT_OFFSET.
2826         * df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN, 
2827         DF_BYTE_LR_OUT, df_byte_lr): New macro.
2828         (df_mm): New enum.
2829         (df_ref_extract): Added mode field.
2830         (DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
2831         DF_REF_EXTRACT_OFFSET.
2832         (DF_REF_EXTRACT_MODE): New macro.
2833         (df_byte_lr_bb_info): New structure.
2834         (df_print_byte_regset, df_compute_accessed_bytes, 
2835         df_byte_lr_add_problem, df_byte_lr_get_regno_start,
2836         df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
2837         df_byte_lr_simulate_uses,
2838         df_byte_lr_simulate_artificial_refs_at_top,
2839         df_byte_lr_simulate_artificial_refs_at_end,
2840         df_compute_accessed_bytes): New function.
2841         (df_ref_create): Add parameter.
2842         (df_byte_lr_get_bb_info): New inline function.
2843         * df-scan.c (df_ref_record, df_uses_record,
2844         df_ref_create_structure): Added mode parameter.
2845         (df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1, 
2846         df_defs_record, df_uses_record, df_get_conditional_uses,
2847         df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect, 
2848         df_entry_block_defs_collect, df_exit_block_uses_collect):
2849         Added mode parameter to calls to df_ref_record, df_uses_record,
2850         df_ref_create_structure.
2851         (df_ref_equal_p, df_ref_compare): Added test for modes.
2852         (df_ref_create_structure): Added code to set mode.  Renamed
2853         DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
2854         DF_REF_EXTRACT_OFFSET.
2855         * df-core.c (df_print_byte_regset): New function.
2856         * df-byte-scan.c: New file.
2857         * df-problems.c (df_rd_transfer_function): Removed unnecessary
2858         calls to BITMAP_FREE.  
2859         (df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
2860         (df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
2861         df_byte_lr_set_bb_info, df_byte_lr_free_bb_info, 
2862         df_byte_lr_check_regs, df_byte_lr_expand_bitmap, 
2863         df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
2864         df_byte_lr_local_compute, df_byte_lr_init,
2865         df_byte_lr_confluence_0, df_byte_lr_confluence_n, 
2866         df_byte_lr_transfer_function, df_byte_lr_free, 
2867         df_byte_lr_top_dump, df_byte_lr_bottom_dump,
2868         df_byte_lr_add_problem, df_byte_lr_simulate_defs, 
2869         df_byte_lr_simulate_uses,
2870         df_byte_lr_simulate_artificial_refs_at_top,
2871         df_byte_lr_simulate_artificial_refs_at_end): New function.
2872         * dce.c (byte_dce_process_block): New function.
2873         (dce_process_block): au is now passed in rather than computed
2874         locally.  Changed loops that look at artificial defs to not look
2875         for conditional or partial ones, because there never are any.  
2876         (fast_dce): Now is able to drive byte_dce_process_block or 
2877         dce_process_block depending on the kind of dce being done.
2878         (rest_of_handle_fast_dce): Add parameter to fast_dce.
2879         (rest_of_handle_fast_byte_dce): New function.
2880         (rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
2881         * Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
2882
2883 2008-04-21  Daniel Franke  <franke.daniel@gmail.com>
2884
2885         PR fortran/35019
2886         * gcc.h: Added fortran options that take arguments to
2887         DEFAULT_SWITCH_TAKES_ARG and DEFAULT_WORD_SWITCH_TAKES_ARG
2888         macros.
2889
2890 2008-04-20  Eric Botcazou  <ebotcazou@adacore.com>
2891
2892         * tree-sra.c (sra_walk_expr) <VIEW_CONVERT_EXPR>: Disable
2893         scalarization if on the LHS and not a full access.
2894
2895 2008-04-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2896
2897         * Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing it.
2898
2899 2008-04-18  Rafael Espindola  <espindola@google.com>
2900
2901         * tree-vrp.c (find_case_label_index): Fix the binary search.
2902         (find_case_label_range): New.
2903         (vrp_visit_switch_stmt): Use find_case_label_range.
2904         (simplify_switch_using_ranges): Use find_case_label_range.
2905
2906 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
2907
2908         * gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
2909         using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
2910
2911 2008-04-18  Tom Tromey  <tromey@redhat.com>
2912
2913         PR libcpp/15500:
2914         * doc/cpp.texi (Implementation-defined behavior): Mention
2915         -finput-charset.
2916
2917 2008-04-18  Ian Lance Taylor  <iant@google.com>
2918
2919         * fold-const.c (pointer_may_wrap_p): New static function.
2920         (fold_comparison): Add another test for pointer overflow.  Use
2921         pointer_may_wrap_p to disable some false positives.
2922
2923 2008-04-18  Kris Van Hees <kris.van.hees@oracle.com>
2924           
2925         * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros.
2926         (fname_as_string): Match updated cpp_interpret_string prototype.
2927         (fix_string_type): Support char16_t* and char32_t*.
2928         (c_common_nodes_and_builtins): Add char16_t and char32_t (and
2929         derivative) nodes.  Register as builtin if C++0x.
2930         (c_parse_error): Support CPP_CHAR{16,32}.
2931         * c-common.h (RID_CHAR16, RID_CHAR32): New elements. 
2932         (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE,
2933         CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE,
2934         CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE,
2935         CTI_CHAR32_ARRAY_TYPE>: New elements.
2936         (char16_type_node, signed_char16_type_node, unsigned_char16_type_node,
2937         char32_type_node, signed_char32_type_node, char16_array_type_node,
2938         char32_array_type_node): New defines.
2939         * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype.
2940         (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
2941         (lex_string): Support CPP_STRING{16,32}, match updated
2942         cpp_interpret_string and cpp_interpret_string_notranslate prototypes.
2943         (lex_charconst): Support CPP_CHAR{16,32}.
2944         * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32}
2945         and CPP_STRING{16,32}.
2946
2947 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
2948
2949         PR bootstrap/35457
2950         * aclocal.m4: Regenerate.
2951         * configure: Regenerate.
2952
2953 2008-04-18  Jan Hubicka  <jh@suse.cz>
2954
2955         * except.c (dw2_size_of_call_site_table,
2956         sjlj_size_of_call_site_table): Use vector API for call_site_record.
2957
2958         * cgraphbuild.c (build_cgraph_edges): Update.
2959         * tree-pass.h: Update comment.
2960         * final.c (leaf_function_p): Update.
2961         (leaf_renumber_regs): Update.
2962         (rest_of_clean_state): Update.
2963         * omp-low.c (expand_omp_parallel): Update.
2964         * ipa-reference.c (analyze_function): Update.
2965         * reorg.c (find_end_label): Update.
2966         (optimize_skip): Update.
2967         (fill_simple_delay_slots): Update.
2968         (fill_simple_delay_slots): Update.
2969         (make_return_insns): Update.
2970         (dbr_schedule): Update.
2971         * gimple-low.c (record_vars_into): Update.
2972         * cfgbuild.c (make_edges): Update.
2973         * function.c (assign_stack_local): Update.
2974         (assign_parm_adjust_stack_rtl): Update.
2975         (locate_and_pad_parm): Update.
2976         (allocate_struct_function): Do not initialize stack_alignment_needed
2977         and preferred_stack_boundary here.
2978         (stack_protect_prologue): Update.
2979         (stack_protect_epilogue): Update.
2980         (expand_function_start): Initialize stack_alignment_needed,
2981         preferred_stack_boundary and max_jumptable_ents.
2982         (expand_function_end): Update.
2983         (free_after_compilation): Do not NULLify epilogue_delay_list.
2984         * function.h (struct rtl_data): Add stack_protect_guard,
2985         stack_alignment_needed,
2986         preferred_stack_boundary, epilogue_delay_list.
2987         (struct function): Remove value_histograms, stack_alignment_needed,
2988         preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
2989         last_label_uid,
2990         unexpanded_var_list, stack_protect_guard.
2991         (current_function_epilogue_delay_list): Remove.
2992         * ipa-type-escape.c (analyze_function): Update.
2993         * gimplify.c (pop_gimplify_context): Update comment.
2994         * calls.c (expand_call): Update.
2995         (emit_library_call_value_1): Update.
2996         * except.c (set_nothrow_function_flags): Update.
2997         * cfgexpand.c (get_decl_align_unit): Update.
2998         (create_stack_guard): Update.
2999         (estimated_stack_frame_size): Update.
3000         (expand_used_vars): Update.
3001         (tree_expand_cfg): Free histogram earliers, init expansion variables.
3002         * explow.c (allocate_dynamic_stack_space): Update.
3003         * tree-ssa-live.c (remove_unused_locals): Update.
3004         * varasm.c (mark_constant_pool): Update.
3005         * tree-inline.c (remap_decls): Update.
3006         (initialize_cfun): Update.
3007         (declare_return_variable): Update.
3008         (inline_forbidden_p): Update.
3009         (expand_call_inline): Update.
3010         (declare_inline_vars): Update.
3011         (tree_function_versioning): Update.
3012         * tree-flow.h (value_histograms): New.
3013         (VALUE_HISTOGRAMS): New macro.
3014         * basic-block.h (control_flow_graph): Add max_jumptable_ents,
3015         last_label_uid.
3016         * tree-cfg.c (set_bb_for_stmt): Update.
3017         (replace_by_duplicate_decl): Update.
3018         (move_block_to_fn): Update.
3019         (new_label_mapper): Update.
3020         (dump_function_to_file): Update.
3021         * ipa-struct-reorg.c (build_data_structure): Update.
3022         * cfgrtl.c (print_rtl_with_bb): Update.
3023         * reload1.c (reload): Update.
3024         (reload): Update.
3025         * config/i386/i386.c (setup_incoming_varargs_64,
3026         ix86_compute_frame_layout): Update.
3027         * config/arc/arc.c (arc_output_function_epilogue): Update.
3028
3029 2008-04-18  Marius Strobl <marius@FreeBSD.org>
3030
3031         * gthr-posix.h (__gthread_active_p): Use the Solaris implementation
3032         for FreeBSD as well.
3033         * gthr-posix95.h: Likewise.
3034
3035 2008-04-17  Richard Sandiford  <rsandifo@nildram.co.uk>
3036
3037         PR rtl-optimization/35838
3038         * dse.c (find_shift_sequence): Use subreg_lowpart_offset to work
3039         out the byte offset of the first subreg.
3040
3041 2008-04-17  Uros Bizjak  <ubizjak@gmail.com>
3042
3043         * config/i386/i386.md (addti3 splitter): Pass arrays of 3 operands
3044         to split_ti instead of three separate calls with single member arrays.
3045         (subti3 splitter): Ditto.
3046         (adddi3 splitter): Ditto with split_di.
3047         (subdi3 splitter): Ditto.
3048         (negti2 splitter): Pass arrays of 2 operands to split_ti instead of
3049         two separate calls with single member arrays.  Swap match_dup
3050         operands 1 and 2 to better fit into the array.
3051         (negdi2 splitter): Ditto with split_di.
3052         (movdfcc splitter):  Pass arrays of 2 operands to split_di instead of
3053         two separate calls with single member arrays.  Swap match_dup operands
3054         6 and 7 to better fit into the array.
3055
3056 2008-04-17  H.J. Lu  <hongjiu.lu@intel.com>
3057
3058         * config/i386/i386.c (sse_builtin_type): New.
3059         (bdesc_sse_args): Likewise.
3060         (bdesc_sse_3arg): Removed.
3061         (bdesc_2arg): Remove IX86_BUILTIN_AESKEYGENASSIST128.
3062         (bdesc_1arg): Remove IX86_BUILTIN_ROUNDPD and
3063         IX86_BUILTIN_ROUNDPS.
3064         (ix86_init_mmx_sse_builtins): Handle bdesc_sse_args.  Remove
3065         bdesc_sse_3arg.  Remove IX86_BUILTIN_ROUNDPD and
3066         IX86_BUILTIN_ROUNDPS.
3067         (ix86_expand_sse_4_operands_builtin): Removed.
3068         (ix86_expand_sse_operands_builtin): New.
3069         (ix86_expand_unop_builtin): Remove CODE_FOR_sse4_1_roundpd
3070         and CODE_FOR_sse4_1_roundps.
3071         (ix86_expand_builtin): Remove IX86_BUILTIN_AESKEYGENASSIST128.
3072         Handle bdesc_sse_args.  Remove bdesc_sse_3arg.
3073
3074 2008-04-17  Alan Modra  <amodra@bigpond.net.au>
3075
3076         PR target/35907
3077         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Restore vr and vrsave
3078         regs before frame pop when needed.  If use_backchain_to_restore_sp
3079         then load backchain into a temp reg to restore vr and vrsave.  Add
3080         code to restore vr after frame pop if possible.
3081
3082 2008-04-17  Richard Guenther  <rguenther@suse.de>
3083
3084         * tree-vn.c (expressions_equal_p): Do not check type
3085         equality or compatibility before calling operand_equal_p.
3086         * fold-const.c (operand_equal_p): Check equivalence of
3087         integer constants before bailing out due to signedness or
3088         precision differences.
3089         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
3090         spurious differences in type qualification.  Ignore types
3091         for COMPONENT_REFs at all.
3092
3093 2008-04-17  Christian Bruel  <christian.bruel@st.com>
3094
3095         * config/sh/sh.c (expand_cbranchdi4): Use original operands for
3096         msw_skip comparison.
3097         
3098 2008-04-16  Jakub Jelinek  <jakub@redhat.com>
3099
3100         PR c/35739
3101         * tree-nrv.c (tree_nrv): Don't optimize if result_type is GIMPLE
3102         reg type.
3103
3104         PR tree-optimization/35899
3105         * tree-inline.c (expand_call_inline): Use GIMPLE_STMT_OPERAND
3106         rather than TREE_OPERAND.
3107
3108 2008-04-16  Uros Bizjak  <ubizjak@gmail.com>
3109
3110         PR target/35944
3111         * config/i386/i386.md (fmodxf3): Copy operand 1 and operand 2 into
3112         temporary registers.  Change operand predicate to general_operand.
3113         (remainderxf3): Ditto.
3114
3115 2008-04-16  Richard Guenther  <rguenther@suse.de>
3116
3117         * Makefile.in (tree-affine.o): Add $(FLAGS_H) dependency.
3118         * tree-affine.c (aff_combination_expand): Look through some
3119         conversions.
3120
3121 2008-04-15  Doug Kwan  <dougkwan@google.com>
3122
3123         * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
3124         for hex printing.
3125         * tree-pretty-print.c (dump_generic_node): Ditto.
3126         * final.c (output_addr_const): Ditto.
3127         * dwarf2out.c (output_cfi): Ditto.
3128         * c-pretty-print.c (pp_c_integer_constant): Ditto.
3129         * print-rtl.c (print_rtx): Ditto.
3130         * print-tree.c (print_node_brief, print_node): Ditto.
3131         * c-common.c (match_case_to_enum_1): Ditto.
3132         * sched-vis.c (print_value): Ditto.
3133         * config/i386/i386.c (print_operand): Cast to long unsigned int
3134         for hex printing.
3135
3136 2008-04-15  Danny Smith  <dannysmith@users.sourceforge.net>
3137         * libgcc2.c [L_trampoline]: Remove  unnecessary prototype for
3138         MS Windows VirtualProtect function.
3139
3140 2008-04-15  Jan Hubicka  <jh@suse.cz>
3141
3142         * gengtype.c (write_root): Param_is argument is OK.
3143         * expr.c (expand_expr_real_1): Update call of get_exception_*.
3144         * function.h: Include varray.h
3145         (rtl_eh): New stucture based on except.c one.
3146         (call_site_record): New forward declaration and vector type.
3147         * calls.c (emit_call_1): Do not call
3148         note_current_region_may_contain_throw.
3149         * except.c (eh_status): Remove cur_region, try_region since they are
3150         unused.
3151         Move filter, exc_ptr, ttype_data, ehspec_data, action_record_data and
3152         exception_handler_label_map, ehr_stackadj, ehr_handler, ehr_label,
3153         sjlj_fc, sjlj_exit_after to rth_eh in function.h. 
3154         Remove call_site_data_used, call_site_data_size.
3155         Turn call_site_record into vector in function.h.
3156         (note_current_region_may_contain_throw): Remove.
3157         (get_exception_pointer, get_exception_filter): Do not take struct
3158         function argument; update.
3159         (add_ehl_entry, find_exception_handler_labels, ehspec_filter_hash,
3160         add_ttypes_entry, add_ehspec_entry, assign_filter_values,
3161         build_post_landing_pads, dw2_build_landing_pads,
3162         sjlj_assign_call_site_values, sjlj_mark_call_sites,
3163         sjlj_emit_function_enter, sjlj_emit_function_enter, 
3164         sjlj_emit_function_exit, sjlj_emit_dispatch_table,
3165         sjlj_build_landing_pads, finish_eh_generation,
3166         remove_exception_handler_label, remove_eh_handler,
3167         maybe_remove_eh_handler, add_reachable_handler,
3168         reachable_handlers, expand_builtin_eh_return, expand_eh_return,
3169         add_action_record, collect_one_action_chain, add_call_site,
3170         convert_to_eh_region_ranges, sjlj_size_of_call_site_table,
3171         sjlj_output_call_site_table, output_function_exception_table,
3172         * except.h (note_current_region_may_contain_throw): Remove
3173         (get_exception_pointer, get_exception_filter): Do not take struct
3174         function argument.
3175         * Makefile.in (GTFILES): Put varargs before struct function.
3176
3177 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
3178
3179         * tree-ssa-structalias.c (get_constraint_for_component_ref): Do not
3180         punt for STRING_CST.
3181         (get_constraint_for): Deal with STRING_CST here instead.
3182
3183 2008-04-15  Richard Guenther  <rguenther@suse.de>
3184
3185         * tree-ssa-propagate.c (substitute_and_fold): Substitute
3186         statements in a basic-block with a backward walk.  Do not
3187         substitute into dead statements but instead remove those.
3188
3189 2008-04-15  Richard Guenther  <rguenther@suse.de>
3190
3191         * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Set default
3192         to zero, thus disable creation of SFTs.
3193
3194 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
3195
3196         * tree-predcom.c (suitable_reference_p): Return false if the
3197         reference can throw.
3198
3199 2008-04-15  Jakub Jelinek  <jakub@redhat.com>
3200
3201         PR c/35751
3202         * c-decl.c (finish_decl): If extern or static var has variable
3203         size, set TREE_TYPE (decl) to error_mark_node.
3204
3205 2008-04-15  Rafael Espindola  <espindola@google.com>
3206
3207         * fold-const.c (tree_call_nonnegative_warnv_p): Remove local
3208         variable arg1.
3209
3210 2008-04-15  Richard Guenther  <rguenther@suse.de>
3211
3212         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
3213         * tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
3214         (visit_reference_op_load): Do walk vuse-vdef chains on
3215         vn_reference_lookup.
3216         (visit_reference_op_store): But do not here.
3217         * tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
3218         vn_reference_lookup.
3219         (vn_lookup_with_vuses): But do so here.
3220
3221 2008-04-14  Ian Lance Taylor  <iant@google.com>
3222
3223         * fold-const.c (fold_overflow_warning): Remove assertion.
3224
3225 2008-04-15  Ben Elliston  <bje@au.ibm.com>
3226
3227         * config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp,
3228         temp1 local variables.
3229
3230 2008-04-15  Zuxy Meng  <zuxy.meng@gmail.com>
3231
3232         PR target/35661
3233         * config/i386/winnt.c (i386_pe_section_type_flags): Mark
3234         ".text.unlikely" section as executable.
3235
3236 2008-04-14  James E. Wilson  <wilson@tuliptree.org>
3237
3238         * config/ia64/ia64.c (rtx_needs_barrier): Handle
3239         UNSPEC_FR_SQRT_RECIP_APPROX_RES.
3240         * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define.
3241         (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr,
3242         divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr,
3243         divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat,
3244         divxf3_internal_thr, sqrtxf2_internal_thr, recip_approx): Use it.
3245
3246 2008-04-14  Ian Lance Taylor  <iant@google.com>
3247
3248         * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
3249         * fold-const.c (fold_comparison): If appropriate, test
3250         POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
3251         (fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
3252         reassociating a pointer type.
3253         * doc/invoke.texi (Optimize Options): Document that
3254         -fstrict-overflow applies to pointer wraparound.
3255
3256 2008-04-13  Jan Hubicka  <jh@suse.cz>
3257
3258         * m32.c (m32c_pushm_popm): Use crtl->retrun_rtx.
3259
3260 2008-04-12  Andrew Pinski  <pinskia@gmail.com>
3261
3262         * config/rs6000/rs6000.c (compute_save_world_info): Set lr_save_p if
3263         we are going to "save the world".
3264
3265 2008-04-13  Hans-Peter Nilsson  <hp@axis.com>
3266
3267         * config/cris/cris.md ("*andhi_lowpart_non_v32", "*andhi_lowpart_v32")
3268         ("*andqi_lowpart_non_v32", "*andqi_lowpart_v32"): Use "+" for the
3269         operand 0 constraint, not "=".
3270
3271 2008-04-11  James E. Wilson  <wilson@tuliptree.org>
3272
3273         * system.h: Change ASSERT_CHECKING to ENABLE_ASSERT_CHECKING.
3274
3275 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
3276
3277         * dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
3278         of size of positions_needed * CHAR_BIT.
3279
3280 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
3281
3282         PR middle-end/35897
3283         * dse.c (store_info): Change positions_needed to unsigned
3284         HOST_WIDE_INT.
3285         (lowpart_bitmask): New.
3286         (record_store): Cast to unsigned HOST_WIDE_INT for
3287         positions_needed.  Assert width <= size of positions_needed *
3288         CHAR_BIT.  Call lowpart_bitmask to initialize positions_needed.
3289         (check_mem_read_rtx): Use unsigned HOST_WIDE_INT on mask.  Call
3290         lowpart_bitmask to set mask.
3291
3292 2008-04-11  Bernd Schmidt  <bernd.schmidt@analog.com>
3293
3294         * config/bfin/constraints.md: New file.
3295         * config/bfin/bfin.md: Include it.
3296         (adddi3): Use satisfies_constraint functions instead of the old macros.
3297         * config/bfin/bfin.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
3298         CONST_18UBIT_IMM_P, CONST_16BIT_IMM_P, CONST_16UBIT_IMM_P,
3299         CONST_7BIT_IMM_P, CONST_7NBIT_IMM_P, CONST_5UBIT_IMM_P,
3300         CONST_4BIT_IMM_P, CONST_4UBIT_IMM_P, CONST_3BIT_IMM_P,
3301         CONST_3UBIT_IMM_P, CONST_OK_FOR_K, CONST_OK_FOR_P, CONST_OK_FOR_M,
3302         CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER,
3303         EXTRA_CONSTRAINT): Delete.
3304         * config/bfin/predicates.md (highbits_operand, reg_or_7bit_operand,
3305         reg_or_neg7bit_operand): Use satisfies_constraint functions instead
3306         of the old macros.
3307         * config/bfin/bfin.c: Include "tm-constrs.h".
3308         (bfin_secondary_reload, split_load_immediate, bfin_rtx_costs):
3309         Use satisfies_constraint functions instead of the old macros.
3310         * doc/md.texi (Blackfin Constraints): Update file name reference.
3311
3312 2008-04-11  Richard Guenther  <rguenther@suse.de>
3313
3314         PR tree-optimization/35869
3315         * tree-vrp.c (execute_vrp): Move switch statement update after
3316         jump threading.  Schedule another cfg cleanup run.
3317
3318 2008-04-11  Volker Reichelt  <v.reichelt@netcologne.de>
3319
3320         PR c/35744
3321         * attribs.c (decl_attributes): Return early on errorneous node.
3322
3323 2008-04-10  Oleg Ryjkov  <olegr@google.com>
3324
3325         * tree.h (struct tree_base): Added a new flag default_def_flag.
3326         (SSA_NAME_IS_DEFAULT_DEF): Changed to use the new flag.
3327
3328 2008-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
3329
3330         * config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*.
3331
3332 2008-04-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3333
3334         PR target/35768
3335         * pa.md: Define mode iterator P.  Define mode attribute dwc.
3336         (dcacheflush): Update pattern to use iterator P and attribute dwc.
3337         (icacheflush): Likewise.
3338         * pa.h (INITIALIZE_TRAMPOLINE): Use dcacheflushsi/icacheflushsi if
3339         !TARGET_64BIT, and dcacheflushdi/icacheflushdi if TARGET_64BIT.
3340
3341 2008-04-11  Ben Elliston  <bje@au.ibm.com>
3342
3343         * config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
3344
3345 2008-04-10  Rafael Espindola  <espindola@google.com>
3346
3347         * tree-vrp.c (extract_range_from_binary_expr): Don't handle
3348         TRUTH_ANDIF_EXPR or TRUTH_ORIF_EXPR.
3349         (extract_range_from_expr): The same.
3350
3351 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
3352
3353         * config/mips/mips.md (GPR2): New mode iterator.
3354         (seq): Add comment.
3355         (*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
3356         *sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
3357         *slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
3358         Rewrite these to take two modes, the mode of comparison and the
3359         mode of the destination.
3360         * config/mips/mips.c (mips_expand_scc): Instead of having
3361         paradoxical subreg as destination, expand "narrowing" scc if mode
3362         of comparison is SI and target is requested in DI mode.
3363         (mips_emit_int_order_test): Update comment.  Make mode of
3364         comparison match CMP0 rather than TARGET.  When creating inverse
3365         target use mode of TARGET.
3366
3367 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
3368
3369         * gcov-dump.c (tag_summary): Only print summaries for the first
3370         GCOV_COUNTERS_SUMMABLE counters.
3371
3372 2008-04-10  Uros Bizjak  <ubizjak@gmail.com>
3373
3374         * config/i386/i386.md (absneg): New code iterator.
3375         (absnegprefix): New code attribute.
3376         (<code><mode>2): Macroize expander from abs<mode>2 and neg<mode>2
3377         patterns using absneg code iterator.
3378         (<code>tf2): Macroize expander from abstf2 and negtf2 patterns
3379         using absneg code iterator.
3380         (*<code><mode>2_1): Macroize insn pattern from *abs<mode>2_1 and
3381         *neg<mode>2 patterns using absneg code iterator.
3382         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
3383         *negextendsfdf2 patterns using absneg code iterator.
3384         (*<code>extendsfxf2): Macroize insn pattern from *absextendsfxf2 and
3385         *negextendsfxf2 patterns using absneg code iterator.
3386         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
3387         *negextendsfdf2 patterns using absneg code iterator.
3388         * config/i386/sse.md (<code><mode>2): Macroize expander from
3389         abs<mode>2 and neg<mode>2 patterns using absneg code iterator. 
3390
3391 2008-04-10  Andreas Krebbel  <krebbel1@de.ibm.com>
3392
3393         * config/s390/s390.h: Remove the remains of the recent search
3394         & replace action of current_function_outgoing_args_size.
3395
3396 2008-04-10  Ira Rosen  <irar@il.ibm.com>
3397
3398         PR tree-optimization/35821
3399         * tree-vect-transform.c (vect_create_data_ref_ptr): Add check that
3400         NEW_STMT_LIST is not NULL.
3401
3402 2008-04-09  David Edelsohn  <edelsohn@gnu.org>
3403
3404         PR libstdc++/35597
3405         * toplev.c (process_options): Remove -ffunction-sections debugging
3406         warning.
3407
3408 2008-04-09  Peter Bergner  <bergner@vnet.ibm.com>
3409
3410         PR middle-end/PR28690
3411         * explow.c (break_out_memory_refs): Use simplify_gen_binary rather
3412         than gen_rtx_fmt_ee to perform more canonicalizations.
3413
3414 2008-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3415
3416         PR driver/35665
3417         * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
3418
3419 2008-04-09  Richard Guenther  <rguenther@suse.de>
3420
3421         * tree-cfg.c (verify_stmt): Print complete bogus stmt.
3422         (dump_function_to_file): Dump function arguments with types.
3423
3424 2008-04-08  Richard Guenther  <rguenther@suse.de>
3425
3426         * fold-const.c (fold_widened_comparison): Do not allow
3427         sign-changes that change the result.
3428
3429 2008-04-08  Janis Johnson  <janis187@us.ibm.com>
3430
3431         PR target/35839
3432         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
3433         kinds of indirect references.
3434
3435 2008-04-08  David Edelsohn  <edelsohn@gnu.org>
3436
3437         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
3438         GNU Fortran language string.
3439
3440 2008-04-08  Rafael Espindola  <espindola@google.com>
3441
3442         * fold-canst.c (tree_call_nonnegative_warnv_p): New.
3443         (tree_invalid_nonnegative_warnv_p): Use tree_call_nonnegative_warnv_p.
3444         * tree.h (tree_call_nonnegative_warnv_p): New.
3445
3446 2008-04-08  Jan Hubicka  <jh@suse.cz>
3447
3448         * function.c (free_after_compilation): Clear out regno_reg_rtx
3449         pointer.
3450
3451 2008-04-08  Peter Bergner  <bergner@vnet.ibm.com>
3452
3453         Revert
3454         2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
3455
3456         PR middle-end/PR28690
3457         * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
3458         same precedence as REG_POINTER and MEM_POINTER operands.
3459
3460 2008-04-08  Richard Guenther  <rguenther@suse.de>
3461
3462         PR middle-end/35834
3463         * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
3464         for adding index to base.
3465
3466 2008-04-08  Kai Tietz  <kai.tietz@onevision.com>
3467
3468         * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
3469         (MINGW_ENABLE_EXECUTE_STACK): New.
3470         (IN_LIBGCC2): For libgcc include windows.h file for
3471         function declarations.
3472
3473 2008-04-08  Hans-Peter Nilsson  <hp@axis.com>
3474
3475         * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
3476         and tem2 if tem1 is not a REG or MULT.
3477
3478 2008-04-08  Jan Hubicka  <jh@suse.cz>
3479
3480         * function.h (incomming_args): Break out of struct function.
3481         (function_subsections): Break out of struct function.
3482         (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
3483         return_rtx and hard_reg_initial_vals from struct function.
3484         Kill inl_max_label_num.
3485         (current_function_pops_args, current_function_args_info,
3486         current_function_args_size, current_function_args_size,
3487         current_function_pretend_args_size,
3488         current_function_outgoing_args_size,
3489         current_function_internal_arg_pointer, current_function_return_rtx):
3490         Kill compatibility accestor macros.
3491         * builtins.c (expand_builtin_apply_args_1): Update.
3492         (expand_builtin_next_arg): Update.
3493         * df-scan.c (df_get_call_refs): Update.
3494         * dbxout.c (dbxout_function_end): Update.
3495         * dwarf2out.c (dwarf2out_switch_text_section): Update.
3496         (output_line_info): Update.
3497         (secname_for_decl): Update.
3498         (dwarf2out_var_location): Update.
3499         * function.c (free_after_compilation): Update.
3500         (assign_parm_find_stack_rtl): Update.
3501         (assign_parms): Update.
3502         (expand_dummy_function_end): Update.
3503         (expand_function_end): Update.
3504         * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
3505         (expand_call): Update.
3506         (emit_library_call_value_1): Update.
3507         (store_one_arg): Update.
3508         * varasm.c (initialize_cold_section_name): Update.
3509         (unlikely_text_section): Update.
3510         (unlikely_text_section_p): Update.
3511         (assemble_start_function): Update.
3512         (assemble_end_function): Update.
3513         (default_section_type_flags): Update.
3514         (switch_to_section): Update.
3515         * integrate.c (set_decl_abstract_flags): Update.
3516         (get_hard_reg_initial_val): Update.
3517         (has_hard_reg_initial_val): Update.
3518         (allocate_initial_values): Update.
3519         * resource.c (init_resource_info): Update.
3520         * config/alpha/alpha.c (NUM_ARGS): Update.
3521         (direct_return): Update.
3522         (alpha_va_start): Update.
3523         (alpha_sa_size): Update.
3524         (alpha_initial_elimination_offset): Update.
3525         (alpha_expand_prologue): Update.
3526         (alpha_start_function): Update.
3527         (alpha_expand_epilogue): Update.
3528         (unicosmk_initial_elimination_offset):
3529         * config/alpha/alpha.md (call expander): Update.
3530         * config/s390/s390.c (s390_register_info): Update.
3531         (s390_register_info): Update.
3532         (s390_frame_info): Update.
3533         (s390_initial_elimination_offset): Update.
3534         (s390_build_builtin_va_list): Update.
3535         (s390_va_start): Update.
3536         * config/spu/spu.c (direct_return): Update.
3537         (spu_expand_prologue): Update.
3538         (spu_initial_elimination_offset): Update.
3539         (spu_build_builtin_va_list): Update.
3540         (spu_va_start): Update.
3541         * config/sparc/sparc.c (sparc_init_modes): Update.
3542         (sparc_compute_frame_size): Update.
3543         (function_value): Update.
3544         * config/m32r/m32r.c (m32r_compute_frame_size): Update.
3545         * config/i386/i386.md (return expander): Update.
3546         * config/i386/i386.c (ix86_va_start): Update.
3547         (ix86_can_use_return_insn_p): Update.
3548         (ix86_compute_frame_layout): Update.
3549         (ix86_expand_epilogue): Update.
3550         * config/sh/sh.c (output_stack_adjust): Update.
3551         (calc_live_regs): Update.
3552         (sh_expand_prologue): Update.
3553         (sh_builtin_saveregs): Update.
3554         (sh_va_start): Update.
3555         (initial_elimination_offset): Update.
3556         (sh_allocate_initial_value): Update.
3557         (sh_function_ok_for_sibcall): Update.
3558         (sh_get_pr_initial_val): Update.
3559         * config/sh/sh.md (return expander): Update.
3560         * config/avr/avr.c (frame_pointer_required_p): UPdate.
3561         * config/crx/crx.c (crx_compute_frame): UPdate.
3562         (crx_initial_elimination_offset): UPdate.
3563         * config/xtensa/xtensa.c (compute_frame_size): Update
3564         (xtensa_builtin_saveregs): Update.
3565         (xtensa_va_start): Update.
3566         (order_regs_for_local_alloc): Update.
3567         * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
3568         (xstormy16_expand_builtin_va_start): Update.
3569         * config/fr30/fr30.c (fr30_compute_frame_size): Update.
3570         * config/m68hc11/m68hc11.md (return expanders): Update.
3571         * config/m68hc11/m68hc11.c (expand_prologue): Update.
3572         (expand_epilogue): Update.
3573         * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
3574         (cris_simple_epilogue): Update.
3575         (cris_expand_prologue): Update.
3576         (cris_expand_epilogue): Update.
3577         * config/iq2000/iq2000.c (iq2000_va_start): Update.
3578         (compute_frame_size): Update.
3579         * config/mt/mt.c (mt_compute_frame_size): Update.
3580         * config/mn10300/mn10300.c (expand_prologue): Update.
3581         (expand_epilogue): Update.
3582         (initial_offset): Update.
3583         (mn10300_builtin_saveregs):
3584         * config/mn10300/mn10300.md (return expander): Update.
3585         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
3586         (ia64_initial_elimination_offset): Update.
3587         (ia64_initial_elimination_offset): Update.
3588         (ia64_expand_prologue): Update.
3589         * config/m68k/m68k.md (return expander): Update.
3590         * config/rs6000/rs6000.c (rs6000_va_start): Update.
3591         (rs6000_stack_info): Update.
3592         * config/mcore/mcore.c (layout_mcore_frame): Update.
3593         (mcore_expand_prolog): Update.
3594         * config/arc/arc.c (arc_compute_frame_size): Update.
3595         * config/score/score3.c (score3_compute_frame_size): Update.
3596         * config/score/score7.c (score7_compute_frame_size): Update.
3597         * config/arm/arm.c (use_return_insn): Update.
3598         (thumb_find_work_register): Update.
3599         (arm_compute_save_reg_mask): Update.
3600         (arm_output_function_prologue): Update.
3601         (arm_output_epilogue): Update.
3602         (arm_size_return_regs): Update.
3603         (arm_get_frame_offsets): Update.
3604         (arm_expand_prologue): Update.
3605         (thumb_exit): Update.
3606         (thumb_unexpanded_epilogue): Update.
3607         (thumb1_output_function_prologue): Update.
3608         * config/pa/pa.md (return expander): Update.
3609         * config/pa/pa.c (compute_frame_size): Update.
3610         (hppa_builtin_saveregs): Update.
3611         * config/mips/mips.c (mips_va_start): Update.
3612         (mips16_build_function_stub): Update.
3613         (mips_compute_frame_info): Update.
3614         (mips_restore_gp): Update.
3615         (mips_output_function_prologue): Update.
3616         (mips_expand_prologue): Update.
3617         * config/v850/v850.c (compute_frame_size): Update.
3618         (expand_prologue): * config/mmix/mmix.c (along): update.
3619         (mmix_initial_elimination_offset): update.
3620         (mmix_reorg): update.
3621         (mmix_use_simple_return): update.
3622         (mmix_expand_prologue): update.
3623         (mmix_expand_epilogue): Update.
3624         * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
3625         (emit_link_insn): Update.
3626
3627 2008-04-08  Anatoly Sokolov <aesok@post.ru>
3628
3629         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define 
3630         __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL 
3631         instructions.
3632         * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for 
3633         atmega103 device.
3634
3635 2008-04-07  Jan Hubicka  <jh@suse.cz>
3636
3637         * function.h (rtl): Rename to x_rtl.
3638         (crtl): New define.
3639         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
3640         frame_offset, stack_check_probe_note, arg_pointer_save_area,
3641         used_temp_slots avail_temp_slots, temp_slot_level,
3642         nonlocal_goto_handler_labels): Update accesstors.
3643         (rtl): New global variable.
3644         (struct function): Move some fileds to rtl_data.
3645         (get_arg_pointer_save_area): Update prototype.
3646         * builtins.c (expand_builtin_setjmp_receiver): Update call of
3647         get_arg_pointer_save_area.
3648         * expr.c (init_expr): Update
3649         * function.c (get_frame_size): Update
3650         (assign_stack_local): Update
3651         (expand_function_end): Update.
3652         (get_art_pointer_save_area): Update
3653         * function.h 
3654         * emit-rtl.c (rtl): Declare.
3655         (regno_reg_rtx): Declare.
3656         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
3657         Update.
3658         (gen_reg_rtx): Update.
3659         * varasm.c (n_deferred_constatns): Update accestor.
3660         (init_varasm_status): Do not allocate varasm_status.
3661         (force_const_mem, get_pool_size, output_constant_pool): Update.
3662         * stmt.c (force_label_rtx): Do not use x_ prefixes.
3663         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
3664         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
3665         * sparc/sparc.h (INIT_EXPANDERS): Update.
3666         * ia64/ia64.h (INIT_EXPANDERS): Update.
3667
3668 2008-04-07  James E. Wilson  <wilson@tuliptree.org>
3669
3670         * reload.c (push_secondary_reload): Add missing break to for loop.
3671
3672 2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
3673
3674         PR middle-end/PR28690
3675         * rtlanal.c: Update copyright years.
3676         (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
3677         as REG_POINTER and MEM_POINTER operands.
3678         * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
3679         (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
3680         * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
3681         * gcse.c: Update copyright years.
3682         (pre_delete): Call gen_reg_rtx_and_attrs.
3683         (hoist_code): Likewise.
3684         (build_store_vectors): Likewise.
3685         (delete_store): Likewise.
3686         * loop-invariant.c (move_invariant_reg): Likewise.
3687         Update copyright years.
3688
3689 2008-04-07  Uros Bizjak  <ubizjak@gmail.com>
3690
3691         * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
3692         control string instead of quoted.
3693
3694 2008-04-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
3695
3696         * doc/rtl.texi: Rewrite of subreg section.
3697
3698 2008-04-07  Kai Tietz  <kai.tietz@onevision.com>
3699
3700         PR/35842
3701         * config/i386/i386.c (legitimize_pic_address): Add treating
3702         of dllimport SYM_REF's.
3703         (legitimize_dllimport_symbol): Add prototype.
3704
3705 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
3706
3707         * fold-const.c (fold) <ARRAY_REF>: New case.  Try to fold constant
3708         reference in constructor with non self-referential type.
3709
3710 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
3711
3712         Removal of Return with Depressed Stack Pointer support
3713         * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
3714         (ECF_SP_DEPRESSED): Likewise.
3715         (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
3716         * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
3717         (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
3718         (expand_call): Do not test ECF_SP_DEPRESSED.
3719         * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
3720         * function.c (keep_stack_depressed): Delete.
3721         (handle_epilogue_set): Likewise.
3722         (update_epilogue_consts): Likewise.
3723         (emit_equiv_load): Likewise.
3724         (thread_prologue_and_epilogue_insns): Remove support for Return with
3725         Depressed Stack Pointer.
3726         * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
3727
3728 2008-04-06  Richard Guenther  <rguenther@suse.de>
3729
3730         PR tree-optimization/35400
3731         * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
3732         information from SSA_NAMEs.
3733
3734 2008-04-06  Anatoly Sokolov <aesok@post.ru>
3735
3736         * config/avr/avr.h (avr_mega_p): Remove declaration.
3737         (AVR_MEGA): Remove macro.
3738         * config/avr/avr.c (avr_mega_p): Remove variable.
3739         (avr_override_options): Remove inicializion of avr_mega_p.
3740         Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
3741         (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
3742         (avr_jump_mode): (Ditto.).
3743         (avr_output_progmem_section_asm_op): (Ditto.).
3744         (avr_asm_init_sections): (Ditto.).
3745         (avr_asm_init_sections): (Ditto.).
3746         (avr_rtx_costs): (Ditto.).
3747         * config/avr/avr.md: (Ditto.).
3748         * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of 
3749         '__AVR_MEGA__'.
3750
3751 2008-04-06  Richard Guenther  <rguenther@suse.de>
3752
3753         PR tree-optimization/35842
3754         * tree-ssa-address.c (fixed_address_object_p): Adjust to match
3755         is_gimple_invariant_address.
3756
3757 2008-04-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
3758
3759         * gcc.c (default_compilers): Sync Fortran extensions list with
3760         that in fortran/lang-specs.h.
3761         * doc/invoke.texi: Likewise.
3762         * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
3763         * dwarf2out.c (gen_compile_unit_die): Likewise.
3764
3765 2008-04-06  Tom G. Christensen  <tgc@jupiterrise.com>
3766
3767         * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
3768
3769 2008-04-05  Uros Bizjak  <ubizjak@gmail.com>
3770
3771         PR target/12329
3772         * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
3773         attribute is used for nested functions.
3774
3775 2008-04-05  Jan Hubicka  <jh@suse.cz>
3776
3777         * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
3778
3779         * tree-dump.c (dump_enable_all): Remove prototype; do not accept
3780         letter argument.
3781         (dump_files): Update.
3782         (enable_rtl_dump_file): Do not accept letter argument.
3783         * tree-pass.h (dump_file_info): Remove letter argument.
3784         * toplev.c (decode_d_option): Update -da handling.
3785         * toplev.h (enable_rtl_dump_file): Update prototype.
3786         * passes.c (register_one_dump_file): Do not accept IPA argument; work
3787         it out based on pass type.
3788         (register_dump_files_1): Likewise.
3789         (init_optimization_passes): Update register_one_dump_file calls.
3790         (execute_one_pass): Sanity check that IPA passes are called at IPA
3791         level and RTL passes at RTL level.
3792         (execute_pass_list): IPA pass can not be after or subpass of
3793         GIMPLE/RTL pass.
3794         (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
3795         disallov RTL subpasses of IPA subpasses.
3796
3797 2008-04-05  Ben Elliston  <bje@au.ibm.com>
3798
3799         * tree-cfg.c (need_fake_edge_p): Return false for calls to
3800         builtins that return exactly once and do not throw. Cache call to
3801         call_expr_flags.
3802
3803 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
3804
3805         PR rtl-optimization/34916
3806         PR middle-end/35519
3807         * combine.c (create_log_links): Do not create duplicate LOG_LINKS
3808         between instruction pairs.
3809
3810 2008-04-04  Naveen.H.S  <naveen.hs@kpitcummins.com>
3811
3812         * doc/invoke.texi: Document -mbitops for SH.
3813         * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
3814         * config/sh/predicates.md (bitwise_memory_operand): New predicate.
3815         * config/sh/sh.c (print_operand): Add %t operand code.
3816         * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
3817         * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
3818         (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
3819         (extendqihi2): Likewise.
3820         (movqi_i): Likewise.
3821         (insv): Use bset, bclr and bst instructions for SH2A if possible.
3822         (extv): Use bld instruction for SH2A if possible.
3823         (extzv): Likewise.
3824         (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
3825         bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
3826         bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
3827         (bset.b, bclr.b): Define peepholes.
3828         * config/sh/sh.opt (mbitops): New option.
3829
3830 2008-04-04  Janis Johnson  <janis187@us.ibm.com>
3831
3832         PR target/35620
3833         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
3834         and view convert expression.
3835
3836 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
3837
3838         PR target/35364
3839         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
3840
3841 2008-04-04  H.J. Lu  <hongjiu.lu@intel.com>
3842
3843         * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
3844
3845         * config/i386/cpuid.h (bit_AES): New.
3846         (bit_PCLMUL): Likewise.
3847
3848         * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
3849         (override_options): Handle PTA_AES and PTA_PCLMUL.  Enable
3850         SSE2 if AES or PCLMUL is enabled.
3851         (ix86_builtins): Add IX86_BUILTIN_AESENC128,
3852         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
3853         IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
3854         IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
3855         (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
3856         (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
3857         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
3858         IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
3859         (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
3860         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
3861         __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
3862         __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
3863         __builtin_ia32_aeskeygenassist128 and
3864         __builtin_ia32_pclmulqdq128.
3865         * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
3866         (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
3867         IX86_BUILTIN_PSRLDQI128.  Handle IX86_BUILTIN_AESKEYGENASSIST128.
3868
3869         * config/i386/i386.h (TARGET_AES): New.
3870         (TARGET_PCLMUL): Likewise.
3871         (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
3872
3873         * config/i386/i386.md (UNSPEC_AESENC): New.
3874         (UNSPEC_AESENCLAST): Likewise.
3875         (UNSPEC_AESDEC): Likewise.
3876         (UNSPEC_AESDECLAST): Likewise.
3877         (UNSPEC_AESIMC): Likewise.
3878         (UNSPEC_AESKEYGENASSIST): Likewise.
3879         (UNSPEC_PCLMUL): Likewise.
3880
3881         * config/i386/i386.opt (maes): New.
3882         (mpclmul): Likewise.
3883
3884         * config/i386/sse.md (aesenc): New pattern.
3885         (aesenclast): Likewise.
3886         (aesdec): Likewise.
3887         (aesdeclast): Likewise.
3888         (aesimc): Likewise.
3889         (aeskeygenassist): Likewise.
3890         (pclmulqdq): Likewise.
3891
3892         * config/i386/wmmintrin.h: New.
3893
3894         * doc/extend.texi: Document AES and PCLMUL built-in function.
3895
3896         * doc/invoke.texi: Document -maes and -mpclmul.
3897
3898 2008-04-04  Paolo Bonzini  <bonzini@gnu.org>
3899
3900         * function.c (free_after_parsing): Replace with
3901         cxx_push_function_context from C++ front-end.
3902         (allocate_struct_function): Don't call langhook.
3903         * langhooks.h (struct lang_hooks_for_functions): Delete.
3904         (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
3905         member "function".
3906         * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
3907         (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
3908         LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
3909         LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
3910         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
3911         remove LANG_HOOKS_FUNCTION_INITIALIZER.
3912         * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
3913
3914         * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
3915         Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
3916         
3917 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
3918
3919         PR c/35440
3920         * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
3921         for all types.
3922
3923 2008-04-04  Richard Guenther  <rguenther@suse.de>
3924
3925         PR middle-end/35823
3926         * fold-const.c (optimize_minmax_comparison): Use the correct
3927         type for the constant in the simplified comparison.
3928
3929 2008-04-04  Zuxy Meng <zuxy.meng@gmail.com>
3930
3931         * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
3932         Pass L2 size as "--param l2-cache-size" to the compiler.
3933         (decode_l2_cache): New function to decode L2 cache parameters using
3934         0x8000006 extended cpuid function.
3935         (detect_caches_amd): Determine parameters of L2 cache using
3936         decode_l2_caches function.
3937         (decode_caches_intel): Decode L2 cache parameters.
3938         (detect_caches_intel): Determine L2 cache parameters using
3939         decode_caches_intel and decode_l2_caches functions.
3940
3941 2008-04-03  Bob Wilson  <bob.wilson@acm.org>
3942
3943         * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
3944         secondary input reload for subword loads from the constant pool.
3945
3946 2008-04-03  Janis Johnson  <janis187@us.ibm.com>
3947
3948         PR target/35713
3949         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
3950           constants of the appropriate size for runtime calculations.
3951
3952         PR c/35712
3953         * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
3954           decimal-float literal constant zero.
3955
3956 2008-04-03  Jakub Jelinek  <jakub@redhat.com>
3957
3958         PR c/35738
3959         * c-parser.c (c_parser_omp_atomic): Call
3960         default_function_array_conversion on the RHS.
3961
3962         PR middle-end/35818
3963         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
3964         call is_variable_sized if decl has incomplete type.
3965
3966 2008-04-03  H.J. Lu  <hongjiu.lu@intel.com>
3967
3968         * config/i386/i386-protos.h (ix86_aligned_p): Removed.
3969
3970 2008-04-03  Adam Nemet  <anemet@caviumnetworks.com>
3971
3972         * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
3973         iterators.
3974         (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and leu.
3975         (sgt<u>): Merge sgt and sgtu into new expander.
3976         (sgt, sgtu): Remove expanders.
3977         (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new pattern.
3978         (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
3979         (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
3980         *sgtu_<mode>_mips16 into new pattern.
3981         (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
3982         (sge<u>): Merge sge and sgeu into new expander.
3983         (sge, sgeu): Remove expanders.
3984         (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
3985         new pattern.
3986         (*sge_<mode>, second *sge_<mode>): Remove patterns.
3987         (slt<u>): Merge slt and sltu into new expander.
3988         (slt, sltu): Remove expanders.
3989         (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new pattern.
3990         (*slt_<mode>, *sltu_<mode>): Remove patterns.
3991         (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
3992         *sltu_<mode>_mips16 into new pattern.
3993         (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
3994         (sle<u>): Merge sle and sleu into new expander.
3995         (sle, sleu): Remove expanders.
3996         (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new pattern.
3997         (*sle_<mode>, *sleu_<mode>): Remove patterns.
3998         (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
3999         *sleu_<mode>_mips16 into new pattern.
4000         (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
4001
4002 2008-04-03  Jan Hubicka  <jh@suse.cz>
4003
4004         PR tree-optimization/35795
4005         * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
4006         * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
4007         * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
4008         * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
4009         * score/score3.c (score3_output_mi_thunk): Likewise.
4010         * score/score7.c (score7_output_mi_thunk): Likewise.
4011         * mips/mips.c (mips_output_mi_thunk): Likewise.
4012
4013 2008-04-03  Richard Guenther  <rguenther@suse.de>
4014
4015         * tree-vrp.c (extract_range_from_unary_expr): Handle all
4016         conversions.  Simplify code.
4017
4018 2008-04-03  Kaz Kojima  <kkojima@gcc.gnu.org>
4019
4020         * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
4021
4022 2008-04-03  Tom Tromey  <tromey@redhat.com>
4023             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4024
4025         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
4026         * config/bfin/t-bfin-linux (generated_files): Add
4027         linux-sysroot-suffix.h.
4028         * doc/install.texi (Prerequisites): Require make 3.80.
4029         * doc/sourcebuild.texi (Front End Directory): Document new
4030         variable.
4031         * Makefile.in (generated_files): New variable.
4032         (ALL_HOST_OBJS): New variable.
4033         ($(ALL_HOST_OBJS)): New target.
4034
4035 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
4036
4037         * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
4038         (remap_block): Call id->transform_lang_insert_block instead
4039         of langhook.
4040         (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
4041         Set id.transform_lang_insert_block to NULL.
4042         (clone_body): Move to cp/optimize.c
4043         * tree-inline.h (struct copy_body_data): Change
4044         transform_lang_insert_block to function pointer.
4045         (copy_generic_body, copy_decl_no_change): Export.
4046         * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
4047         * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
4048         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
4049
4050         * c-tree.h (insert_block): Kill.
4051         * c-decl.c (insert_block): Kill.
4052
4053 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
4054
4055         * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
4056         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
4057         * c-tree.h (c_push_function_context, c_pop_function_context): Remove
4058         argument.
4059         * c-decl.c (c_push_function_context, c_pop_function_context): Remove
4060         argument, call {push,pop}_function_context from here.
4061         * c-parser.c: Use c_{push,pop}_function_context.
4062
4063         * function.c (push_function_context_to): Move meat ...
4064         (push_function_context): ... here.  Simplify.
4065         * function.c (pop_function_context_from): Move meat ...
4066         (pop_function_context): ... here.  Simplify.
4067         * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
4068         leave_nested).
4069         * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
4070         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
4071         (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
4072         * tree.h (push_function_context_to, pop_function_context_from): Remove.
4073
4074 2008-04-03  Ben Elliston  <bje@au.ibm.com>
4075
4076         * expmed.c (extract_force_align_mem_bit_field): Remove.
4077
4078 2008-04-03  Richard Guenther  <rguenther@suse.de>
4079
4080         PR middle-end/35800
4081         * expr.h (try_casesi): Adjust prototype.
4082         * expr.c (try_casesi): Take fallback label as extra parameter.
4083         Use that for gen_casesi if default_label is NULL.
4084         * stmt.c (expand_case): Pass fallback label to try_casesi,
4085         make sure to fill gaps with a fallback label if default_label
4086         is not present.
4087
4088 2008-04-03  Dominique d'Humieres <dominiq@lps.ens.fr>
4089
4090         PR target/35801
4091         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
4092
4093 2008-04-03  Ben Elliston  <bje@au.ibm.com>
4094
4095         * expmed.c (extract_split_bit_field): Remove if (0) code.
4096         * tree-ssa-structalias.c (do_sd_constraint): Likewise.
4097         (do_ds_constraint): Likewise.
4098
4099 2008-04-02  Joseph Myers  <joseph@codesourcery.com>
4100
4101         * doc/cppopts.texi (-dU): Document.
4102         * c-common.h (flag_dump_macros): Update comment.
4103         * c-opts.c (handle_OPT_d): Handle -dU.
4104         * c-ppoutput.c (macro_queue, define_queue, undef_queue,
4105         dump_queued_macros, cb_used_define, cb_used_undef): New.
4106         (init_pp_output): Handle -dU.
4107         (cb_line_change): Call dump_queued_macros.
4108         * toplev.c (decode_d_option): Accept -dU as preprocessor option.
4109
4110 2008-04-02  Anatoly Sokolov <aesok@post.ru>
4111
4112         * config/avr/predicates.md (io_address_operand): New predicate. 
4113         * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
4114         * config/avr/avr.c (avr_io_address_p): Remove function.
4115         (out_movqi_r_mr): Use 'io_address_operand' predicate instead of 
4116         'avr_io_address_p' function.
4117         (out_movhi_r_mr): (Ditto.).
4118         (out_movqi_mr_r): (Ditto.).
4119         (out_movhi_mr_r): (Ditto.).
4120         (avr_address_cost): (Ditto.).
4121
4122 2008-04-02  Uros Bizjak  <ubizjak@gmail.com>
4123
4124         * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
4125         Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
4126         in 32bit mode when XMM registers are available to avoid store
4127         forwarding stalls.
4128         (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
4129         corresponding post-reload splitters.
4130
4131 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
4132
4133         * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
4134         and __builtin_ia32_shufpd.  Provide __builtin_ia32_roundsd and
4135         __builtin_ia32_roundss.
4136         (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
4137         __builtin_ia32_shufpd, __builtin_ia32_roundsd and
4138         __builtin_ia32_roundss.
4139         (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
4140         IX86_BUILTIN_SHUFPD here.
4141
4142 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
4143
4144         * config/i386/i386.md (plogic): New.
4145         (plogicprefix): Likewise.
4146
4147         * config/i386/mmx.md (mmx_<code><mode>3): New.
4148         (mmx_and<mode>3): Removed.
4149         (mmx_ior<mode>3): Likewise.
4150         (mmx_xor<mode>3): Likewise.
4151
4152         * config/i386/sse.md (<code><mode>3): New.
4153         (*<code><mode>3): Likewise.
4154         (*<code><mode>3): Likewise.
4155         (<code><mode>3): Likewise.
4156         (*sse_<code><mode>3): Likewise.
4157         (*sse2_<code><mode>3): Likewise.
4158         (<code>tf3): Likewise.
4159         (*<code>tf3): Likewise.
4160         (and<mode>3): Likewise.
4161         (*and<mode>3): Likewise.
4162         (ior<mode>3): Removed.
4163         (*ior<mode>3): Likewise.
4164         (xor<mode>3): Likewise.
4165         (*xor<mode>3): Likewise.
4166         (*and<mode>3): Likewise.
4167         (*ior<mode>3): Likewise.
4168         (*xor<mode>3): Likewise.
4169         (and<mode>3): Likewise.
4170         (*sse_and<mode>3): Likewise.
4171         (*sse2_and<mode>3): Likewise.
4172         (andtf3): Likewise.
4173         (*andtf3): Likewise.
4174         (ior<mode>3): Likewise.
4175         (*sse_ior<mode>3): Likewise.
4176         (*sse2_ior<mode>3): Likewise.
4177         (iortf3): Likewise.
4178         (*iortf3): Likewise.
4179         (xor<mode>3): Likewise.
4180         (*sse_xor<mode>3): Likewise.
4181         (*sse2_xor<mode>3): Likewise.
4182         (xortf3): Likewise.
4183         (*xortf3): Likewise.
4184
4185 2008-04-02  Richard Guenther  <rguenther@suse.de>
4186
4187         PR tree-optimization/14495
4188         PR tree-optimization/34793
4189         * tree-vrp.c (struct switch_update): New structure.
4190         (to_remove_edges, to_update_switch_stmts): New VECs.
4191         (simplify_switch_using_ranges): New function.  Remove not taken
4192         case labels and edges.
4193         (simplify_stmt_using_ranges): Call it.
4194         (identify_jump_threads): Mark edges we have queued for removal
4195         so we don't thread them.
4196         (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
4197         case label vector.
4198         * tree-cfg.c (group_case_labels): Deal with missing default label.
4199         (tree_verify_flow_info): Allow missing default label.
4200         * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
4201         (emit_case_nodes): Likewise.
4202         (expand_case): Do not rely on the default label to be present.
4203         * expr.c (try_casesi): Deal with NULL default_label.
4204         (do_tablejump): Likewise.
4205
4206 2008-04-02  Richard Guenther  <rguenther@suse.de>
4207
4208         PR tree-optimization/14495
4209         * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
4210         SWITCH_EXPR here ...
4211         (vrp_visit_switch_stmt): ... but here (new function).
4212         (find_case_label_index): New helper function.
4213         (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
4214
4215 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
4216
4217         * fwprop.c: Fix ISO-C99ism.
4218
4219 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
4220
4221         PR bootstrap/35752
4222         * Makefile.in (objdir): Set it here.
4223         * configure.ac: Not here.  Find dynamic linker characteristics.
4224         * exec-tool.in: Use them.
4225         * aclocal.m4: Regenerate.
4226         * configure: Regenerate.
4227
4228 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
4229
4230         * expr.c (expand_var): Delete it.
4231         * expr.h (expand_var): Delete prototype.
4232         * function.c (expand_function_start): Use expand_decl instead.
4233         * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
4234         langhook.
4235
4236 2008-04-02  Andy Hutchinson <hutchinsonamdy@aim.com>
4237
4238         PR rtl-optimization/35542
4239         * fwprop.c (forward_propagate_and_simplify): Replace
4240         loc_reg_mentioned_in_p with reg_mentioned_p.
4241
4242 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
4243
4244         PR rtl-optimization/35281
4245         * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
4246         (propagate_rtx_1): Handle PR_HANDLE_MEM.
4247         (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
4248         (varying_mem_p): Move above propagate_rtx.
4249         (all_uses_available_at): Do not check MEMs.
4250
4251 2008-04-02  Rafael Espindola  <espindola@google.com>
4252
4253         * tree-vrp.c (extract_code_and_val_from_cond): Remove.
4254         (register_edge_assert_for_2): Split the cond argument.
4255         (register_edge_assert_for_1): Adjust for the change in
4256         register_edge_assert_for_2.
4257         (register_edge_assert_for): Split the cond argument.
4258         (find_switch_asserts): Adjust for the change in
4259         register_edge_assert_for.
4260
4261 2008-04-02  Kai Tietz  <kai.tietz@onevision.com>
4262
4263         * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
4264         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
4265         offsets for 64-bit mingw.
4266         * config/i386/i386.c (ix86_pass_by_reference): Correct calling
4267         abi for x86_64-pc-mingw.
4268
4269 2008-04-02  Richard Guenther  <rguenther@suse.de>
4270
4271         * tree-vrp.c (extract_range_from_assert): Make sure to not
4272         produce range min/max with TREE_OVERFOW set.
4273         If merging a anti-range and a range keep the anti-range if
4274         the range covers all values of the type.
4275         (register_edge_assert_for_2): Only allow sign-changing
4276         conversions in detecting canonical range checks.  Also
4277         register an assert for the unsigned name if useful.
4278
4279         PR tree-optimization/35787
4280         * tree-vrp.c (vrp_val_max): New function.
4281         (vrp_val_min): Likewise.
4282         (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
4283         (vrp_val_is_min): Likewise.
4284         (supports_overflow_infinity): Use vrp_val_{min,max}.
4285         (negative_overflow_infinity): Likewise.
4286         (positive_overflow_infinity): Likewise.
4287         (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
4288         (is_positive_overflow_infinity): Likewise.
4289         (is_overflow_infinity): Likewise.
4290         (avoid_overflow_infinity): Use vrp_val_{min,max} and
4291         vrp_val_is_{min,max}.
4292         (set_and_canonicalize_value_range): Canonicalize anti-ranges
4293         to ranges if possible.  Avoid empty ranges.
4294
4295 2008-04-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4296
4297         PR middle-end/35705
4298         * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
4299         the expression is a function address.
4300
4301 2008-04-01  George Helffrich  <george@gcc.gnu.org>
4302
4303         PR fortran/35154, fortran/23057
4304         * dbxout.c: Emit .stabs debug info for Fortran COMMON block
4305         variables as base symbol name + offset using N_BCOMM/N_ECOMM.
4306         (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
4307         (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
4308         in common.
4309         (dbxout_syms): Check for COMMON-based symbol and wrap in
4310         N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
4311         in bracket for efficiency.
4312
4313         * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
4314         using DW_TAG_common_block + member offset.
4315         (add_pubname_string): New function.
4316         (dw_expand_expr): New function to find block name and offset for
4317         COMMON var.
4318         (common_check): New function to check whether symbol in Fortran COMMON.
4319         (gen_variable_die): If COMMON, use DW_TAG_common_block.
4320
4321 2008-04-01  Volker Reichelt  <v.reichelt@netcologne.de>
4322
4323         PR c/35436
4324         * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
4325
4326 2008-04-02  Ben Elliston  <bje@au.ibm.com>
4327
4328         * config/v850/v850.md (casesi): Remove if (0) code.
4329         * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
4330         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
4331
4332 2008-04-01  Uros Bizjak  <ubizjak@gmail.com>
4333
4334         * config/i386/i386.md (rex64suffix): New mode attribute.
4335         (floathi<mode>2): Disable expander for SSE math.
4336         (*floathi<mode>2_1): New insn insn_and_split pattern.
4337         (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
4338         corresponding post-reload splitters.
4339         (*floathi<mode>2_i387): New macroized insn pattern.
4340         (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
4341         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
4342         insn_and_split pattern.
4343         (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
4344         New macroized instruction patterns and corresponding post-reload
4345         splitters.
4346         (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
4347         and corresponding post-reload splitters.
4348         (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
4349         New macroized instruction patterns.
4350         (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
4351         macroized instruction patterns and corresponding post-reload splitters.
4352         (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
4353         corresponding post-reload splitters.
4354         (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
4355         New macroized instruction patterns.
4356         (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
4357         corresponding post-reload splitters.
4358         (*floatsi<mode>2_i387): New macroized instruction patterns.
4359
4360 2008-04-01  H.J. Lu  <hongjiu.lu@intel.com>
4361
4362         * config/i386/i386.md (smaxmin): New.
4363         (umaxmin): Likewise.
4364         (maxminiprefix): Likewise.
4365         (maxminfprefix): Likewise.
4366         (<code><mode>3): Likewise.
4367         (smin<mode>3): Removed.
4368         (smax<mode>3): Likewise.
4369
4370         * config/i386/mmx.md (mmx_<code>v2sf3): New.
4371         (mmx_<code>v4hi3): Likewise.
4372         (mmx_<code>v8qi3): Likewise.
4373         (mmx_smaxv2sf3): Removed.
4374         (mmx_sminv2sf3): Likewise.
4375         (mmx_umaxv8qi3): Likewise.
4376         (mmx_smaxv4hi3): Likewise.
4377         (mmx_uminv8qi3): Likewise.
4378         (mmx_sminv4hi3): Likewise.
4379
4380         * config/i386/sse.md (<addsub><mode>3): New.
4381         (*<addsub><mode>3): Likewise.
4382         (<sse>_vm<addsub><mode>3): Likewise.
4383         (<maxmin><mode>3): Likewise.
4384         (*<maxmin><mode>3_finite): Likewise.
4385         (*<maxmin><mode>3): Likewise.
4386         (<sse>_vm<maxmin><mode>3): Likewise.
4387         (sse3_h<addsub>v4sf3): Likewise.
4388         (sse3_h<addsub>v2df3): Likewise.
4389         (<maxmin>v16qi3): Likewise.
4390         (*<maxmin>v16qi3): Likewise.
4391         (<maxmin>v8hi3): Likewise.
4392         (*<maxmin>v8hi3): Likewise.
4393         (*sse4_1_<maxmin><mode>3): Likewise.
4394         (*sse4_1_<maxmin><mode>3): Likewise.
4395         (add<mode>3): Removed.
4396         (*add<mode>3): Likewise.
4397         (<sse>_vmadd<mode>3): Likewise.
4398         (sub<mode>3): Likewise.
4399         (*sub<mode>3): Likewise.
4400         (<sse>_vmsub<mode>3): Likewise.
4401         (smin<mode>3): Likewise.
4402         (*smin<mode>3_finite): Likewise.
4403         (*smin<mode>3): Likewise.
4404         (<sse>_vmsmin<mode>3): Likewise.
4405         (smax<mode>3): Likewise.
4406         (*smax<mode>3_finite): Likewise.
4407         (*smax<mode>3): Likewise.
4408         (<sse>_vmsmax<mode>3): Likewise.
4409         (sse3_haddv4sf3): Likewise.
4410         (sse3_haddv2df3): Likewise.
4411         (sse3_hsubv4sf3): Likewise.
4412         (sse3_hsubv2df3): Likewise.
4413         (umaxv16qi3): Likewise.
4414         (*umaxv16qi3): Likewise.
4415         (smaxv8hi3): Likewise.
4416         (*smaxv8hi3): Likewise.
4417         (*sse4_1_smax<mode>3): Likewise.
4418         (*sse4_1_umax<mode>3): Likewise.
4419         (uminv16qi3): Likewise.
4420         (*uminv16qi3): Likewise.
4421         (sminv8hi3): Likewise.
4422         (*sminv8hi3): Likewise.
4423         (*sse4_1_smin<mode>3): Likewise.
4424         (*sse4_1_umin<mode>3): Likewise.
4425
4426 2008-04-01  Rafael Espindola  <espindola@google.com>
4427
4428         * tree-cfg.c (verify_expr): remove in_phi.
4429         (verify_stmt): Don't call walk_tree with verify_expr. Use
4430         is_gimple_min_invariant instead of is_gimple_val.
4431
4432 2008-04-01  Joseph Myers  <joseph@codesourcery.com>
4433
4434         * doc/include/gpl_v3.texi: Update for manpage generation.
4435         * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
4436         gpl.texi.
4437         * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
4438         * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
4439         gpl_v3.texi instead of gpl.texi.
4440         (gpl.pod): New.
4441
4442 2008-04-01  Jakub Jelinek  <jakub@redhat.com>
4443
4444         PR pch/13675
4445         * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
4446
4447 2008-04-01  Rafael Espindola  <espindola@google.com>
4448
4449         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
4450         (extract_code_and_val_from_cond): Use
4451         extract_code_and_val_from_cond_with_ops.
4452
4453 2008-04-01  Jan Hubicka  <jh@suse.cz>
4454
4455         * function.c (free_after_compilation): Free epilogue_delay_list.
4456         (prepare_function_start): Assert that previous compilation was freed.
4457
4458 2008-04-01  Jan Hubicka  <jh@suse.cz>
4459             Jim Wilson  <wilson@tuliptree.org>
4460             Andreas Tobler <andreast@gcc.gnu.org>
4461
4462         PR middle-end/35781
4463         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
4464         rtl.emit instead cfun->emit.
4465         * sparc/sparc.h (INIT_EXPANDERS): Likewise.
4466         * ia64/ia64.h (INIT_EXPANDERS): Likewise.
4467
4468 2008-04-01  Ben Elliston  <bje@au.ibm.com>
4469
4470         * doc/c-tree.texi (Function Basics): Fix grammatical error.
4471
4472 2008-03-31  Seongbae Park <seongbae.park@gmail.com>
4473
4474         * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
4475         New options
4476         (fprofile-use): Add var flag_profile_use
4477         * coverage.c (coverage_begin_output): Do not open a gcno file for
4478         output only if -ftest-coverage is set.
4479         Do not add getpwd() to gcda file path.
4480         (build_gcov_info): Check the new flag
4481         flag_profile_datafile_relative_path.
4482         (coverage_init): Use profile_data_prefix.
4483         Read profile counter only if flag_profile_use is set.
4484         * opts.c (common_handle_option): New option fprofile-use=,
4485         fprofile-dir=, fprofile-generate=.
4486         * toplev.c (profile_data_prefix): New variable definition.
4487         * toplev.h (profile_data_prefix): New declaration.
4488         * doc/invoke.tex (Option Summary, Optimization Options):
4489         Add new options.
4490
4491 2008-03-31  James E. Wilson  <wilson@tuliptree.org>
4492
4493         * varasm.c (output_constant_pool_1): In LABEL_REF check,
4494         use tmp consistently.
4495
4496         PR target/35695
4497         * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
4498         * config/ia64/ia64.c (rtx_needs_barrier): Handle
4499         UNSPEC_FR_RECIP_APPROX_RES.
4500         * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
4501
4502 2008-03-31  Volker Reichelt  <v.reichelt@netcologne.de>
4503
4504         PR c/35750
4505         * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
4506
4507 2008-03-31  Andrew Pinski  <andrew_pinski@playstation.sony.com>
4508
4509         PR middle-end/30186
4510         * fold-const.c (fold_indirect_ref_1): Support accessing non first
4511         element of the vector via a pointer.
4512
4513 2008-03-31  Ian Lance Taylor  <iant@google.com>
4514
4515         * tlink.c (scan_linker_output): Look for symbol name in single quotes.
4516
4517 2008-03-31  Jan Hubicka  <jh@suse.cz>
4518
4519         * builtins.c (expand_builtin_setjmp_receiver): Update call of
4520         get_arg_pointer_save_area.
4521         * expr.c (init_expr): Just clear out rtl.expr.
4522         * function.c (free_after_compilation): Clear out whole RTL structure.
4523         (get_func_frame_size): Merge into ...
4524         (get_frame_size): ... this one.
4525         (assign_stack_local_1): Merge into ...
4526         (assign_stack_local): ... this one.
4527         (expand_function_end): Update call of get_arg_pointer_save_area.
4528         (get_art_pointer_save_area): Remove cfun argument.
4529         * function.h (emit_status): regno_pointer_align does not need length
4530         attribute. Move x_regno_reg_rtx to ...
4531         (regno_reg_rtx): ... new global array.
4532         (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
4533         (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
4534         apply_args_value, forced_labels, stack_pointer_delta):
4535         Update accestors.
4536         (struct varasm_status): Move here from varasm.c
4537         (struct rtl_data): New. Move here some fields from struct function.
4538         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
4539         frame_offset, stack_check_probe_note, arg_pointer_save_area,
4540         used_temp_slots avail_temp_slots, temp_slot_level,
4541         nonlocal_goto_handler_labels): Update accesstors.
4542         (rtl): New global variable.
4543         (struct function): Move some fileds to rtl_data.
4544         (get_arg_pointer_save_area): Update prototype.
4545         * emit-rtl.c (rtl): Declare.
4546         (regno_reg_rtx): Declare.
4547         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
4548         Update.
4549         (gen_reg_rtx): Update.
4550         (init_virtual_regs): Do not tate emit_status argument.
4551         (init_emit): Do not allocate emit.
4552         * varasm.c (varasm_statuc): Move to function.h.
4553         (n_deferred_constatns): Update accestor.
4554         (init_varasm_status): Do not allocate varasm_status.
4555         (force_const_mem, get_pool_size, output_constant_pool): Update.
4556         * stmt.c (force_label_rtx): Do not use x_ prefixes.
4557         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
4558
4559 2008-03-31  Zdenek Dvorak  <ook@ucw.cz>
4560
4561         PR rtl-optimization/35729
4562         * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
4563         references.
4564
4565 2008-03-31  H.J. Lu  <hongjiu.lu@intel.com>
4566
4567         PR target/32000
4568         * config/i386/i386.md (*movti_internal): Emit unaligned SSE
4569         load/store if memory is unaligned.
4570         (*movti_rex64): Likewise.
4571
4572         * config/i386/predicates.md (misaligned_operand): New.
4573
4574 2008-03-31  Andrew Pinski  <pinskia@gmail.com>
4575
4576         PR tree-opt/35431
4577         * tree-ssa-phiopt.c (conditional_replacement): Return early for
4578         complex types.
4579
4580 2008-03-31  Jan Beulich  <jbeulich@novell.com>
4581
4582         * config/ia64/constraints.md: Add 'j' constraint.
4583         * config/ia64/ia64.md (movsi_internal): Add addp4 case.
4584         (movdi_internal): Likewise.
4585
4586 2008-03-30  Volker Reichelt  <v.reichelt@netcologne.de>
4587
4588         PR c/35748
4589         * c-typeck.c (build_c_cast): Skip invalid fields in unions.
4590
4591 2008-03-30  H.J. Lu  <hongjiu.lu@intel.com>
4592
4593         PR target/35757
4594         * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
4595         proper error message for the third argument on blendpd and
4596         blendps.
4597
4598         * config/i386/sse.md (blendbits): New.
4599         (sse4_1_blendp<ssemodesuffixf2c>): Use it.
4600
4601 2008-03-30  Eric Botcazou  <ebotcazou@adacore.com>
4602
4603         * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
4604
4605 2008-03-30  Richard Guenther  <rguenther@suse.de>
4606
4607         PR middle-end/31023
4608         * fold-const.c (fold_sign_changed_comparison): Do leave
4609         conversions to base-types alone.
4610
4611 2008-03-29  Andrew Pinski  <andrew_pinski@playstation.sony.com>
4612
4613         * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
4614         the link register if one altivec register is be saved.
4615
4616 2008-03-30  Ben Elliston  <bje@au.ibm.com>
4617
4618         * final.c (final_scan_insn): Remove if (0) code.
4619
4620 2008-03-28  Volker Reichelt  <v.reichelt@netcologne.de>
4621
4622         * c-parser.c (c_parser_next_token_is_keyword): Simplify.
4623
4624 2008-03-28  H.J. Lu  <hongjiu.lu@intel.com>
4625
4626         * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
4627         of V4SFmode to ix86_binary_operator_ok.
4628
4629 2008-03-28  Uros Bizjak  <ubizjak@gmail.com>
4630
4631         * config/i386/i386.c (override_options): Initialize
4632         ix86_veclib_handler to ix86_veclibabi_svml when
4633         -mveclibabi=svml is used.
4634         (ix86_veclibabi_svml): New function for SVML ABI style
4635         vectorization support.
4636         * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
4637
4638 2008-03-28  Rafael Espindola  <espindola@google.com>
4639
4640         * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
4641         (tree_binary_nonnegative_warnv_p): Make it public.
4642         (tree_single_nonnegative_warnv_p): Make it public.
4643         (tree_invalid_nonnegative_warnv_p): Make it public.
4644         (tree_unary_nonzero_warnv_p): Make it public.
4645         (tree_binary_nonzero_warnv_p): Make it public
4646         (tree_single_nonzero_warnv_p): Make it public.
4647         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
4648         (extract_range_from_binary_expr): Split the expr argument.
4649         (extract_range_from_unary_expr): Split the expr argument.
4650         (extract_range_from_comparison): Split the expr argument.
4651         (extract_range_from_expr): Use the new aux functions.
4652         (vrp_evaluate_conditional_warnv): Use
4653         vrp_evaluate_conditional_warnv_with_ops.
4654         * tree.h (tree_unary_nonzero_warnv_p): Declare.
4655         (tree_binary_nonzero_warnv_p): Declare.
4656         (tree_single_nonzero_warnv_p): Declare.
4657         (tree_expr_nonzero_warnv_p): Declare.
4658         (tree_unary_nonnegative_warnv_p): Declare.
4659         (tree_binary_nonnegative_warnv_p): Declare.
4660         (tree_single_nonnegative_warnv_p): Declare.
4661         (tree_invalid_nonnegative_warnv_p): Declare.
4662
4663 2008-03-28  Richard Guenther  <rguenther@suse.de>
4664
4665         PR tree-optimization/30317
4666         PR tree-optimization/30911
4667         PR tree-optimization/34793
4668         * tree-vrp.c (set_and_canonicalize_value_range): New function.
4669         (struct assert_locus_d): New member EXPR.
4670         (register_new_assert_for): Add EXPR parameter to support
4671         ASSERT_EXPR <name, expr OP limit>.
4672         (register_edge_assert_for_1): Adjust callers.
4673         (find_assert_locations): Likewise.
4674         (process_assert_insertions_for): Build condition from expression.
4675         (extract_range_from_assert): Handle ASSERT_EXPRs
4676         of the form ASSERT_EXPR <name, expr OP limit>.
4677         (register_edge_assert_for_2): New helper registering
4678         asserts for comparisons.  Recognize range tests of the form
4679         (unsigned)i - CST1 OP CST2.
4680         (register_edge_assert_for_1): Use it.
4681         (register_edge_assert_for): Likewise.
4682         (needs_overflow_infinity): Integer sub-types
4683         do not need overflow infinities.
4684         (vrp_val_is_max): The extreme values of integer sub-types
4685         are those of the base type.
4686         (vrp_val_is_min): Likewise.
4687         * tree.def (ASSERT_EXPR): Document extra allowed conditional
4688         expressions.
4689
4690 2008-03-28  Nick Clifton  <nickc@redhat.com>
4691
4692         PR target/31110
4693         * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
4694         Return GENERAL_REGS for stack adjustment reloads.
4695
4696 2008-03-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
4697
4698         PR target/31334
4699         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
4700         const_vector when all the vectors are constant.
4701
4702 2008-03-27  Bob Wilson  <bob.wilson@acm.org>
4703
4704         * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
4705         comparisons.
4706         * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
4707         (any_scc_sf): Add uneq, unlt, unle and unordered operators.
4708         (scc_sf): New.
4709         (s<code>_sf): Use new scc_sf attribute for opcode names.
4710
4711 2008-03-27  Tom Tromey  <tromey@redhat.com>
4712
4713         * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
4714         configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
4715         config/spu/t-spu-elf, config/i386/t-interix,
4716         config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
4717         config/i386/x-darwin, config/i386/x-mingw32,
4718         config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
4719         config/sh/t-sh, config/sh/t-symbian, config/x-linux,
4720         config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
4721         config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
4722         config/rs6000/x-rs6000, config/rs6000/x-darwin64,
4723         config/rs6000/x-darwin, config/rs6000/t-rs6000,
4724         config/score/t-score-elf, config/arm/t-strongarm-pe,
4725         config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
4726         config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
4727         Revert automatic dependency patch.
4728
4729 2008-03-27  H.J. Lu  <hongjiu.lu@intel.com>
4730
4731         PR target/35657
4732         * config/i386/i386.c (ix86_function_arg_boundary): Align
4733         decimal floating point to its natural boundary.
4734
4735 2008-03-27  Richard Guenther  <rguenther@suse.de>
4736
4737         PR middle-end/35716
4738         * fold-const.c (fold_comparison): Restrict distinct decl
4739         comparison folding to VAR_DECLs and PARM_DECLs.  Do not
4740         solely rely on operand_equal_p.
4741
4742 2008-03-27  Richard Guenther  <rguenther@suse.de>
4743
4744         PR c/32511
4745         * c-common.c (handle_weak_attribute): Reject combination of
4746         weak and inline.
4747
4748 2008-03-27  Richard Guenther  <rguenther@suse.de>
4749
4750         PR tree-optimization/32810
4751         * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
4752         conversions from DECL_INITIAL.
4753         (fold_const_aggregate_ref): Likewise from constructor elements.
4754
4755 2008-03-27  Zdenek Dvorak  <ook@ucw.cz>
4756
4757         * tree-affine.h (aff_combination_expand): Declare.
4758         (get_inner_reference_aff): Likewise.
4759         * tree-affine.c (aff_combination_expand): Split out from
4760         tree_to_aff_combination_expand.
4761         (get_inner_reference_aff): New function.
4762         * tree-parloops.c (loop_parallel_p): Free vectorizer info.
4763         * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
4764         (struct lim_aux_data): sm_done field removed.
4765         (mem_ref_loc_p, mem_ref_locs_p): New types.
4766         (struct mem_ref): Added id, stored, accesses_in_loop,
4767         indep_loop, dep_loop, indep_ref, dep_ref fields.
4768         Removed is_stored, locs and next fields.
4769         (memory_accesses): New variable.
4770         (movement_possibility): Do not allow moving statements
4771         that store to memory.
4772         (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
4773         New functions.
4774         (determine_max_movement): For statements with memory references,
4775         find the outermost loop in that the reference is independent.
4776         (move_computations_stmt): Mark the virtual operands for renaming.
4777         (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
4778         gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
4779         vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
4780         add_vop_ref_mapping, create_vop_ref_mapping_loop,
4781         create_vop_ref_mapping, analyze_memory_references,
4782         cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
4783         get_all_locs_in_loop, ref_always_accessed_p,
4784         refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
4785         ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
4786         store_motion_loop, store_motion): New functions.
4787         (struct vop_to_refs_elt): New type.
4788         (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
4789         memref_hash, memref_eq, hoist_memory_references): Rewritten.
4790         (schedule_sm): Replaced by...
4791         (execute_sm): ... this.
4792         (determine_lsm_ref, hoist_memory_references,
4793         loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
4794         find_more_ref_vops, free_mem_ref, free_mem_refs,
4795         determine_lsm_loop, determine_lsm): Removed.
4796         (tree_ssa_lim_finalize): Free data structures used by store motion.
4797         (tree_ssa_lim): Call analyze_memory_references.  Use
4798         store_motion instead of determine_lsm.
4799
4800 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
4801
4802         * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
4803         rename tmake_file to m68hc11/t-m68hc11.
4804         (mcore): Set inhibit_libc to true.
4805         * config.host (alpha*-dec-*vms*): Set extra_programs.
4806         (interix3*): Don't use host_xmake_file.
4807         * configure.ac: Let config.gcc override inhibit_libc.
4808         * configure: Regenerate.
4809
4810         * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
4811         * config/t-openbsd-thread: Remove commented out lines.
4812         
4813         * config/x-interix: Remove.
4814
4815         * config/m68hc11/t-m68hc11-gas: Rename to...
4816         * config/m68hc11/t-m68hc11: ... this.  Remove T_CPPFLAGS.
4817
4818         * config/mcore/t-mcore: Remove T_CFLAGS.
4819         * config/mcore/t-mcore-pe: Likewise.
4820
4821 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
4822
4823         * configure.ac: Replace custom __GNU_SOURCE test with
4824         AC_USE_SYSTEM_EXTENSIONS.  Move it earlier.
4825         * aclocal.m4: Regenerate.
4826         * configure: Regenerate.
4827         * config.in: Regenerate.
4828
4829 2008-03-27  Richard Guenther  <rguenther@suse.de>
4830
4831         * fold-const.c (target.h): Include.
4832         (fold_comparison): Fold comparison of addresses of decls
4833         that bind locally or of constants.  Consolidate address folding code.
4834         * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
4835         results from fold_binary_to_constant.
4836         (compare_values_warnv): Likewise.
4837
4838 2008-03-27  Andrew Pinski  <pinskia@gmail.com>
4839
4840         PR middle-end/35429
4841         * fold-const.c (fold_truthop): Check for integeral types when folding
4842         a == 0 && b == 0 and a != 0 || b != 0 .
4843
4844 2008-03-26  Eric Botcazou  <ebotcazou@adacore.com>
4845
4846         * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
4847
4848 2008-03-26  Andreas Schwab  <schwab@suse.de>
4849
4850         * doc/invoke.texi: Fix use of @item vs. @itemx.
4851
4852 2008-03-26  Tom Tromey  <tromey@redhat.com>
4853
4854         * Makefile.in (build/gensupport.o, build/print-rtl.o,
4855         build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
4856         build/genattrtab.o, build/genautomata.o, build/gencheck.o,
4857         build/gencodes.o, build/genconditions.o, build/genconfig.o,
4858         build/genconstants.o, build/genemit.o, build/genextract.o,
4859         build/genflags.o, build/genmddeps.o, build/genopinit.o,
4860         build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
4861         options.h.
4862
4863 2008-03-26  Richard Guenther  <rguenther@suse.de>
4864
4865         Revert
4866         2008-03-26  Richard Guenther  <rguenther@suse.de>
4867
4868         * fold-const.c (target.h): Include.
4869         (fold_comparison): Fold comparison of addresses of two decls
4870         that bind locally.  Consolidate address folding code.
4871
4872 2008-03-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4873
4874         * builtins.c (expand_builtin_pow, fold_builtin_cabs,
4875         fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
4876         fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
4877         dconstsqrt2, dconstthird, dconste and/or dconst10.
4878         * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
4879         * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
4880         dconstsqrt2, dconste): Delete.
4881         (init_emit_once): Likewise.  Simplify initializing dconstm1.
4882         Constify variable.
4883         * real.c (get_real_const): New.
4884         * real.h (dconst3, dconst10, dconstm2, dconstthird,
4885         dconstsqrt2, dconste): Delete.
4886         (real_value_const, get_real_const): New.
4887
4888 2008-03-26  H.J. Lu  <hongjiu.lu@intel.com>
4889
4890         * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
4891
4892         * config/i386/i386.c (ix86_function_arg_boundary): Check
4893         BIGGEST_ALIGNMENT instead of 128.
4894         (setup_incoming_varargs_64): Likewise.
4895
4896 2008-03-26  Tom Tromey  <tromey@redhat.com>
4897
4898         * Makefile.in (DEPFILES): Add missing '/'.
4899
4900 2008-03-26  Richard Guenther  <rguenther@suse.de>
4901
4902         * fold-const.c (target.h): Include.
4903         (fold_comparison): Fold comparison of addresses of two decls
4904         that bind locally.  Consolidate address folding code.
4905
4906 2008-03-26  Nick Clifton  <nickc@redhat.com>
4907
4908         PR target/31232
4909         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
4910         not allow INT+INT as a legitimate addressing mode.
4911
4912 2008-03-26  Richard Guenther  <rguenther@suse.de>
4913
4914         * tree-flow.h (widen_bitfield): Remove declaration.
4915         * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
4916         (widen_bitfield): Remove function.
4917         * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
4918         code.
4919
4920 2008-03-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
4921
4922         PR target/31558
4923         * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
4924         error_mark_node's.
4925
4926 2008-03-25  Richard Sandiford  <rsandifo@nildram.co.uk>
4927
4928         PR rtl-optimization/35232
4929         * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
4930         (forget_old_reloads_1, forget_marked_reloads): Don't clear
4931         reg_reloaded_call_part_clobbered here.
4932         (reload_regs_reach_end_p): New function.
4933         (reload_reg_rtx_for_input): New variable.
4934         (reload_reg_rtx_for_output): Likewise.
4935         (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
4936         when reassigning a pseudo register.  Load reloadreg from 
4937         reload_reg_rtx_for_input, moving the mode and register
4938         calculation to...
4939         (do_input_reload): ...here.  Use the mode-adjusted reg_rtx
4940         instead of the original when deciding whether an input reload
4941         would be a no-op or whether an output reload can be deleted.
4942         (emit_output_reload_insns): Use the mode-adjusted reg_rtx
4943         when setting up new_spill_reg_store.  Load it from
4944         reload_reg_rtx_for_output, moving the mode and register
4945         calculation to...
4946         (do_output_reload): ...here.  Use the mode-adjusted reg_rtx
4947         instead of the original when deciding whether an output reload
4948         would be a no-op.  Do the same when modifying insn notes.
4949         Use rtx_equal_p instead of == to compare the registers.
4950         (inherit_piecemeal_p): Take a mode and two register numbers
4951         as argument.
4952         (emit_reload_insns): Clear new_spill_reg_store for every hard
4953         register in the reload register.  Remove spill registers
4954         from reg_reloaded_valid before considering whether to record
4955         inheritance information for them.  Use reload_reg_rtx_for_output
4956         instead of reg_rtx when recording output reloads.  Use
4957         reload_reg_rtx_for_input instead of reg_rtx when recording
4958         input reloads.  Set or clear reg_reloaded_call_part_clobbered
4959         at the same time as setting reg_reloaded_valid.
4960         (delete_output_reload): Add a new_reload_reg parameter and use it
4961         instead of rld[j].reg_rtx.
4962         (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
4963         calls accordingly.
4964
4965 2008-03-25  Tom Tromey  <tromey@redhat.com>
4966
4967         * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
4968         (build/genattr.o): Likewise.
4969         (build/genattrtab.o): Likewise.
4970         (build/gencodes.o): Likewise.
4971         (build/genconfig.o): Likewise.
4972         (build/genconstants.o): Likewise.
4973         (build/genemit.o): Likewise.
4974         (build/genextract.o): Likewise.
4975         (build/genflags.o): Likewise.
4976
4977 2008-03-25  Bob Wilson  <bob.wilson@acm.org>
4978         
4979         * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
4980         instead of size_int for integer types.
4981         (xtensa_gimplify_va_arg_expr): Likewise.  Convert index to sizetype
4982         to match type of MINUS_EXPR.
4983         
4984 2008-03-25  Tom Tromey  <tromey@redhat.com>
4985
4986         * configure: Rebuilt.
4987         * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
4988         Makefile.
4989
4990 2008-03-25  Tom Tromey  <tromey@redhat.com>
4991
4992         * config/x-solaris (host-solaris.o): Update.
4993         * config/x-linux (host-linux.o): Update.
4994         * config/x-hpux (host-hpux.o): Update.
4995         * config/x-darwin (host-darwin.o): Update.
4996         * config/v850/t-v850e (v850-c.o): Update.
4997         * config/v850/t-v850 (v850-c.o): Update.
4998         * config/t-vxworks (vxworks.o): Update.
4999         * config/t-sol2 (sol2-c.o, sol2.o): Update.
5000         * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
5001         * config/spu/t-spu-elf (spu-c.o): Update.
5002         (spu.o): Remove.
5003         * config/sh/t-symbian (sh-c.o): Update.
5004         (symbian.o): Update.
5005         * config/sh/t-sh (sh-c.o): Update.
5006         * config/score/t-score-elf (score7.o, score3.o): Update.
5007         * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
5008         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
5009         * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
5010         * config/rs6000/t-rs6000 (rs6000-c.o): Update.
5011         (rs6000.o): Remove.
5012         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
5013         * config/m32c/t-m32c (m32c-pragma.o): Update.
5014         * config/ia64/t-ia64 (ia64-c.o): Update.
5015         * config/i386/x-mingw32 (host-mingw32.o): Update.
5016         * config/i386/x-i386 (driver-i386.o): Update.
5017         * config/i386/x-darwin (host-i386-darwin.o): Update.
5018         * config/i386/x-cygwin (host-cygwin.o): Update.
5019         * config/i386/t-nwld (nwld.o): Update.
5020         * config/i386/t-netware (netware.o): Update.
5021         * config/i386/t-interix (winnt.o): Update.
5022         * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
5023         * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
5024         msformat-c.o): Update.
5025         * config/bfin/t-bfin-linux (generated_files): Add
5026         linux-sysroot-suffix.h.
5027         * config/arm/t-wince-pe (pe.o): Update.
5028         * config/arm/t-strongarm-pe (pe.o): Update.
5029         * config/arm/t-pe (pe.o): Update.
5030         * config/arm/t-arm (arm-c.o): Update.
5031         * doc/install.texi (Prerequisites): Require make 3.80.
5032         * Makefile.in: Remove .o targets.
5033         (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
5034         (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
5035         (simple_generated_h, simple_generated_c): Move earlier.
5036         (generated_files): New variable.
5037         (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
5038         TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
5039         BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
5040         ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
5041         REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
5042         CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
5043         CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
5044         INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
5045         PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
5046         TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
5047         DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
5048         VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
5049         (.c.o): Remove.
5050         (COMPILE.base, COMPILE): New variables.
5051         (%.o): New pattern rule.
5052         (ALL_HOST_OBJS): New variable.
5053         (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
5054         (dummy-checksum.o, cc1-checksum.o): Remove.
5055         (DRIVER_SHLIB): New variable.
5056         (DRIVER_DEFINES): Use it.
5057         (gencondmd.c): Move out of build/.
5058         (s-conditions): Update.
5059         (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
5060         (ALL_BUILD_OBJS): Likewise.
5061         (build/%.o): Use BUILDCOMPILE.
5062         (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
5063         build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
5064         build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
5065         build/gencheck.o, build/gencodes.o, build/genconditions.o,
5066         build/genconfig.o, build/genconstants.o, build/genemit.o,
5067         build/genextract.o, build/genflags.o, build/genmddeps.o,
5068         build/genopinit.o, build/genoutput.o, build/genpeep.o,
5069         build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
5070         build/gen-protos.o, build/scan.o, build/fix-header.o,
5071         build/scan-decls.o): Simplify.
5072         (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
5073         cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
5074         prefix.o, toplev.o): Reduce to variable setting.
5075         (libbackend.o): Use COMPILE.  Remove most dependencies.  Move later.
5076         ($(out_object_file), gcc-options.o): New targets.
5077         ($(ALL_HOST_OBJS)): New target.  Include dependency files.
5078         * configure: Rebuilt.
5079         * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
5080         * doc/sourcebuild.texi (Front End Directory): Document new variable.
5081
5082 2008-03-25  Douglas Gregor  <doug.gregor@gmail.com>
5083
5084         * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
5085         complain when we hit an error, return ERROR_MARK_NODE.
5086
5087 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
5088
5089         * config/sh/constraints.md (Pso, Psz): New constraints.
5090         * config/sh/sh.c (print_operand): Add %V and %W operand codes.
5091         * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
5092
5093 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
5094
5095         * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
5096         * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
5097
5098 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
5099
5100         * config/sh/sh.md (prefetch): Add condition for SH2A target.
5101         (prefetch_sh2a): New.   
5102
5103 2008-03-25  Jayant Sonar  <Jayant.sonar@kpitcummins.com>
5104             Naveen.H.S  <naveen.hs@kpitcummins.com>
5105
5106         * config/sh/constraints.md (I28): New constraint.
5107         * config/sh/sh.c (broken_move): Add support for movi20s.
5108         * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
5109
5110 2008-03-25  Anil Paranjape  <anil.paranjape@kpitcummins.com>
5111             Jayant Sonar  <Jayant.sonar@kpitcummins.com>
5112             Naveen.H.S  <naveen.hs@kpitcummins.com>
5113
5114         * config/sh/sh.c (SH_ATTRIBUTES): Define.
5115         (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
5116         (print_operand): Handle resbank in %@ operand code.
5117         (sh_encode_section_info): New.
5118         (push_regs): Add conditions for resbank.
5119         (sh_expand_epilogue): Likewise.
5120         (sh_insert_attributes): Likewise.
5121         (sh_attribute_table): Likewise.
5122         (sh_handle_resbank_handler_attribute): New.
5123         (sh2a_handle_function_vector_handler_attribute): New.
5124         (sh2a_is_function_vector_call): New.
5125         (sh2a_get_function_vector_number): New.
5126         (sh2a_function_vector_p): New.
5127         (sh_cfun_resbank_handler_p): New.
5128         * config/sh/sh.md (calli): Emit jsr/n if possible.
5129         (calli_tbr_rel): New.
5130         (calli_pcrel): Emit jsr/n if possible.
5131         (return_i): Emit rts/n if possible.
5132         (call_valuei_tbr_rel): New.
5133         (call_valuei_pcrel): Add condition for SH2A target.
5134         (call_value): Likewise.
5135         * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
5136         (sh2a_get_function_vector_number): Likewise.
5137         (sh2a_is_function_vector_call): Likewise.
5138         * doc/extend.texi: Document TBR relative addressing of SH2A.
5139         (resbank): Add description for SH2A.
5140
5141 2008-03-24  Richard Guenther  <rguenther@suse.de>
5142
5143         PR c/22371
5144         * gimplify.c (gimplify_modify_expr): For frontend type-correct
5145         pointer assignments change conversions according to middle-end rules.
5146         (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
5147         * configure.ac: Include type checking in yes.
5148         * configure: Regenerate.
5149
5150 2008-03-24  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5151
5152         * diagnostic.c (diagnostic_count_diagnostic): Delete.
5153         (diagnostic_report_diagnostic): Update. Handle ICEs here.
5154         
5155 2008-03-24  Nathan Sidwell  <nathan@codesourcery.com>
5156
5157         * gthr-vxworks.h (UNUSED): Define.
5158
5159 2008-03-23  H.J. Lu  <hongjiu.lu@intel.com>
5160
5161         * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
5162
5163 2008-03-23  Zuxy Meng <zuxy.meng@gmail.com>
5164
5165         * doc/extend.texi (Function Attributes): Add missing comma in the
5166         example of the "alloc_size" attribute.
5167         
5168 2008-03-23  Uros Bizjak  <ubizjak@gmail.com>
5169
5170         Revert:
5171         2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
5172
5173         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
5174         32bit host.
5175
5176         2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
5177
5178         PR target/35496
5179         * stor-layout.c (update_alignment_for_field): Set minimum alignment
5180         of the underlying type of a MS bitfield layout to the natural
5181         alignment of the type.
5182
5183         2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
5184
5185         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
5186         to their natural alignment to avoid store forwarding stalls.
5187
5188 2008-03-22  Richard Guenther  <rguenther@suse.de>
5189
5190         * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
5191         For PHI nodes verify the address is invariant.
5192         * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
5193         (get_symbol_constant_value): Use is_gimple_min_invariant.
5194         (maybe_fold_stmt_indirect): Likewise.
5195
5196 2008-03-22  Richard Sandiford  <rsandifo@nildram.co.uk>
5197
5198         PR rtl-optimization/33927
5199         * Makefile.in (dse.o): Depend on $(TM_P_H).
5200         * expr.h (extract_low_bits): Declare.
5201         * expmed.c (extract_low_bits): New function.
5202         * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
5203         * dse.c: Include tm_p.h.
5204         (find_shift_sequence): Remove the read_reg argument and return the
5205         read value.  Emit the instructions instead of returning them.
5206         Iterate on new_mode rather than calculating it each time.
5207         Check MODES_TIEABLE_P.  Use simplify_gen_subreg to convert the
5208         source to NEW_MODE and extract_low_bits to convert the shifted
5209         value to READ_MODE.
5210         (replace_read): Allow the load and store to have different mode
5211         classes.  Use extract_low_bits when SHIFT == 0.  Create the shift
5212         or extraction instructions before trying the replacement.  Update
5213         dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
5214
5215 2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
5216
5217         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
5218         to their natural alignment to avoid store forwarding stalls.
5219
5220 2008-03-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5221
5222         PR target/27946
5223         * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
5224         encouraging but not allowing gprs for input;
5225         change the input constraint to !f#r.
5226         (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
5227         gprs for output;
5228         change the output constraint to !f#r.
5229
5230 2008-03-21  Uros Bizjak  <ubizjak@gmail.com>
5231
5232         PR target/13958
5233         * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
5234         corresponding post-reload splitters.
5235         ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
5236         when x87 FP math is selected.
5237         * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
5238         New function prototype.
5239         * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
5240         unreachable function to ease macroization of insn patterns.
5241
5242 2008-03-21  Martin Jambor  <mjambor@suse.cz>
5243
5244         * tree-data-ref.c (dump_data_dependence_relation): Avoid data
5245         reference dumps if ddr is NULL or dependence is unknown.
5246
5247 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
5248
5249         * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
5250         unsigned extension into account.
5251         (ATOMIC_COMPARE_AND_SWAP): Likewise.
5252         (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
5253         Do computations on a scratch register.
5254
5255 2008-03-21  Richard Guenther  <rguenther@suse.de>
5256
5257         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
5258         Use is_gimple_min_invariant instead of TREE_INVARIANT.
5259         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
5260         * tree-ssa-dom.c (record_equality): Likewise.
5261         * tree-inline.c (copy_body_r): Likewise.
5262         * tree-ssa-pre.c (make_values_for_stmt): Remove test for
5263         TREE_INVARIANT.
5264
5265 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
5266
5267         * config/sh/sh.c (split_branches): Pass zero to redirect_jump
5268         as 'delete_unused' argument.
5269
5270 2008-03-20  Richard Guenther  <rguenther@suse.de>
5271
5272         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
5273         special casing of constant qualifiers.
5274         * tree-ssa.c (useless_type_conversion_p_1): Instead do not
5275         care about them in general.
5276         * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
5277         regardless of their type.
5278         (fold_stmt_r): Forcefully fold *& if we end up with that.
5279
5280 2008-03-20  Paul Brook  <paul@codesourcery.com>
5281
5282         * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
5283         * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
5284         linker flags.
5285         * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
5286         definition.
5287         (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
5288         * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
5289
5290 2008-03-20  Volker Reichelt  <v.reichelt@netcologne.de>
5291
5292         * common.opt (Wmudflap): New option.
5293         * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
5294         (mx_register_decls): Likewise.
5295         (mudflap_finish_file): Likewise.
5296         * doc/invoke.texi: Document -Wno-mudflap.
5297
5298 2008-03-20  Kai Tietz  <kai.tietz@onevision.com>
5299
5300         * c-format.c (replace_format_name_to_system_name): New.
5301         (cmp_attribs): New.
5302         (convert_format_name_to_system_name): New.
5303         (decode_format_attr): Add use of convert_format_name_to_system_name.
5304         (format_types_orig): Add gnu_ prefix to names.
5305         (check_format_info_main): Special treating of \0 escaped names for
5306         supporting multi-character format specifiers as I32, I64.
5307         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
5308         (gnu_target_overrides_format_attributes): New.
5309         * c-format.h: Add structure target_ovr_attr to hold
5310         system specific formatter names.
5311         * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
5312         msformat-c.o file to c_target_objs and cxx_target_objs.
5313         * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
5314         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
5315         (TARGET_N_FORMAT_TYPES): New.
5316         * config/i386/msformat-c.c: New.
5317         * config/i386/t-cygming: Add build rule for msformat-c.o.
5318         * doc/extend.texi: Add new format names gnu_* and ms_* and
5319         further details.
5320         * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
5321
5322 2008-03-20  Ira Rosen  <irar@il.ibm.com>
5323
5324         * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
5325         optimizations turned on under -O3.
5326         (ftree-vectorize): Add that the flag is turned on with -O3.
5327
5328 2008-03-20  Ben Elliston  <bje@au.ibm.com>
5329
5330         * regmove.c (try_auto_increment): Fix spelling error in comment.
5331         * final.c (final_scan_insn): Likewise.
5332
5333 2008-03-20  Uros Bizjak  <ubizjak@gmail.com>
5334
5335         PR target/14552
5336         * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
5337         allocator preferences for "y" and "r" class registers.
5338         ("*mov<mode>_internal"): Ditto.
5339         ("*movv2sf_internal_rex64"): Ditto.
5340         ("*movv2sf_internal"): Ditto.
5341
5342 2008-03-19  Michael Matz  <matz@suse.de>
5343
5344         PR middle-end/35616
5345         * calls.c (expand_call): Check overlap of arguments with call
5346         address for sibcalls.
5347
5348 2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
5349
5350         PR target/35496
5351         * stor-layout.c (update_alignment_for_field): Set minimum alignment
5352         of the underlying type of a MS bitfield layout to the natural
5353         alignment of the type.
5354
5355 2008-03-19  Jan Hubicka  <jh@suse.cz>
5356
5357         PR other/35094
5358         * toplev.c (decode_d_option): Handle all CPP flags.
5359         * tree-vrp.c: Update tree_pass descriptors.
5360         * regrename.c: Update tree_pass descriptors.
5361         * fwprop.c: Update tree_pass descriptors.
5362         * doc/invoke.texi: Remove documentation of dropped -d? flags.
5363         * tree-into-ssa.c: Update tree_pass descriptors.
5364         * tree-dump.c: Update tree_pass descriptors.
5365         * tree-complex.c: Update tree_pass descriptors.
5366         * tree-dump.h: Update tree_pass descriptors.
5367         * see.c: Update tree_pass descriptors.
5368         * cgraphbuild.c: Update tree_pass descriptors.
5369         * tracer.c: Update tree_pass descriptors.
5370         * tree-loop-distribution.c: Update tree_pass descriptors.
5371         * cgraph.c: Update tree_pass descriptors.
5372         * postreload-gcse.c: Update tree_pass descriptors.
5373         * postreload.c: Update tree_pass descriptors.
5374         * tree-ssa-loop-ch.c: Update tree_pass descriptors.
5375         * tree-tailcall.c: Update tree_pass descriptors.
5376         * tree-pass.h (tree_opt_pass): Rename to ...
5377         (opt_pass) ... this one; add "type" field and remove letter field.
5378         (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
5379         (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
5380         all_lowering_passes): Update declaration.
5381         * ipa-cp.c: Update tree_pass descriptors.
5382         * final.c: Update tree_pass descriptors.
5383         * omp-low.c: Update tree_pass descriptors.
5384         * tree-ssa-dse.c: Update tree_pass descriptors.
5385         * ipa-reference.c: Update tree_pass descriptors.
5386         * tree-ssa-uncprop.c: Update tree_pass descriptors.
5387         * auto-inc-dec.c: Update tree_pass descriptors.
5388         * reorg.c: Update tree_pass descriptors.
5389         * cgraphunit.c: Update tree_pass descriptors.
5390         * tree-ssa-copyrename.c: Update tree_pass descriptors.
5391         * tree-ssa-ccp.c: Update tree_pass descriptors.
5392         * df-core.c: Update tree_pass descriptors.
5393         * mode-switching.c: Update tree_pass descriptors.
5394         * tree-nomudflap.c: Update tree_pass descriptors.
5395         * modulo-sched.c: Update tree_pass descriptors.
5396         * ipa-pure-const.c: Update tree_pass descriptors.
5397         * cse.c: Update tree_pass descriptors.
5398         * web.c: Update tree_pass descriptors.
5399         * tree-stdarg.c: Update tree_pass descriptors.
5400         * tree-ssa-math-opts.c: Update tree_pass descriptors.
5401         * tree-ssa-dom.c: Update tree_pass descriptors.
5402         * tree-nrv.c: Update tree_pass descriptors.
5403         * tree-ssa-alias.c: Update tree_pass descriptors.
5404         * loop-init.c: Update tree_pass descriptors.
5405         * gimple-low.c: Update tree_pass descriptors.
5406         * ipa-inline.c: Update tree_pass descriptors.
5407         * tree-ssa-sink.c: Update tree_pass descriptors.
5408         * global.c: Update tree_pass descriptors.
5409         * ifcvt.c: Update tree_pass descriptors.
5410         * jump.c: Update tree_pass descriptors.
5411         * predict.c: Update tree_pass descriptors.
5412         * tree-ssa-loop.c: Update tree_pass descriptors.
5413         * recog.c: Update tree_pass descriptors.
5414         * dse.c: Update tree_pass descriptors.
5415         * tree-ssa-ifcombine.c: Update tree_pass descriptors.
5416         * tree-eh.c: Update tree_pass descriptors.
5417         * regmove.c: Update tree_pass descriptors.
5418         * local-alloc.c
5419         * function.c: Update tree_pass descriptors.
5420         * tree-vectorizer.c: Update tree_pass descriptors.
5421         * gcse.c: Update tree_pass descriptors.
5422         * ipa-type-escape.c: Update tree_pass descriptors.
5423         * tree-if-conv.c: Update tree_pass descriptors.
5424         * init-regs.c: Update tree_pass descriptors.
5425         * ipa.c: Update tree_pass descriptors.
5426         * tree-ssa-phiopt.c: Update tree_pass descriptors.
5427         * rtl-factoring.c: Update tree_pass descriptors.
5428         * lower-subreg.c: Update tree_pass descriptors.
5429         * bt-load.c: Update tree_pass descriptors.
5430         * tree-dfa.c: Update tree_pass descriptors.
5431         * except.c: Update tree_pass descriptors.
5432         * emit-rtl.c: Update tree_pass descriptors.
5433         * cfgexpand.c: Update tree_pass descriptors.
5434         * tree-cfgcleanup.c: Update tree_pass descriptors.
5435         * cfgcleanup.c: Update tree_pass descriptors.
5436         * tree-ssa-pre.c: Update tree_pass descriptors.
5437         * tree-sra.c: Update tree_pass descriptors.
5438         * tree-mudflap.c: Update tree_pass descriptors.
5439         * tree-ssa-copy.c: Update tree_pass descriptors.
5440         * cfglayout.c: Update tree_pass descriptors.
5441         * tree-ssa-forwprop.c: Update tree_pass descriptors.
5442         * tree-ssa-dce.c: Update tree_pass descriptors.
5443         * tree-ssa.c: Update tree_pass descriptors.
5444         * regclass.c: Update tree_pass descriptors.
5445         * integrate.c: Update tree_pass descriptors.
5446         * tree-optimize.c: Update tree_pass descriptors.
5447         * tree-ssa-phiprop.c: Update tree_pass descriptors.
5448         * tree-object-size.c: Update tree_pass descriptors.
5449         * combine.c: Update tree_pass descriptors.
5450         * tree-outof-ssa.c: Update tree_pass descriptors.
5451         * bb-reorder.c: Update tree_pass descriptors.
5452         * stack-ptr-mod.c: Update tree_pass descriptors.
5453         * var-tracking.c: Update tree_pass descriptors.
5454         * tree-profile.c: Update tree_pass descriptors.
5455         * tree-vect-generic.c: Update tree_pass descriptors.
5456         * reg-stack.c: Update tree_pass descriptors.
5457         * sched-rgn.c: Update tree_pass descriptors.
5458         * tree-ssa-structalias.c: Update tree_pass descriptors.
5459         * tree-cfg.c: Update tree_pass descriptors.
5460         * passes.c (current_pass): Update declaration.
5461         (finish_optimization_passes): Update.
5462         (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
5463         (register_one_dump_file, register_dump_files_1, next_pass_1):
5464         Update arguments.
5465         (init_optimization_passes): Update handling of new types.
5466         (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
5467         * ipa-struct-reorg.c: Update tree_pass descriptors.
5468         * tree-ssa-reassoc.c: Update tree_pass descriptors.
5469         * combine-stack-adj.c: Update tree_pass descriptors.
5470         * cfgrtl.c: Update tree_pass descriptors.
5471         * dce.c: Update tree_pass descriptors.
5472         * tree-ssanames.c: Update tree_pass descriptors.
5473
5474 2008-03-19  Richard Guenther  <rguenther@suse.de>
5475
5476         PR middle-end/35609
5477         * tree-ssa.c (walk_data): New structure.
5478         (warn_uninitialized_var): If not always_executed warn with "maybe"
5479         instead of "is".
5480         (execute_early_warn_uninitialized): Compute post-dominators.
5481         Initialize always_executed before processing each basic block.
5482
5483 2008-03-18  Mikulas Patocka  <mikulas@artax.karlin.mff.cuni.cz>
5484
5485         PR target/35504
5486         * config/i386/i386.c (x86_this_parameter): Calculate correct location
5487         of "this" pointer when "regparm = N" or "fastcall" is in effect.
5488
5489 2008-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5490
5491         * doc/include/texinfo.tex: Update to version 2008-03-17.10.
5492
5493 2008-03-18  Paolo Bonzini  <bonzini@gnu.org>
5494
5495         * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
5496         is true.
5497         (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
5498         (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
5499         is true.  Add "&& !ignore" condition to reduce_bit_field.  Modify
5500         target after ignore has been set, and move there also the commputation
5501         of subtarget and original_target.
5502         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
5503         (LANG_HOOKS_INITIALIZER): Remove it.
5504         * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
5505
5506 2008-03-18  Richard Guenther  <rguenther@suse.de>
5507
5508         * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
5509         found an expression with constants, note that in the VN for the lhs.
5510         * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
5511         fold them to constants if possible.  Run cleanup_cfg if done so.
5512         (execute_pre): Return todo.
5513         (do_pre): Likewise.
5514         (execute_fre): Likewise.
5515         * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
5516         of constants.
5517         (get_prop_source_stmt): Look through pointer conversions.
5518
5519 2008-03-18  Jan Hubicka  <jh@suse.cz>
5520
5521         * tree-pretty-print.c: Include predict.h.
5522         (dump_generic_node): Dump predictor.
5523         * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
5524         * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
5525         * gimple-low.c (lower_stmt): Likewise.
5526         * expr.c (expand_expr_real): Likewise.
5527         * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
5528         them.
5529         (build_predict_expr, build_predict_expr): New.
5530         * predict.h (predictor_name, build_predict_expr): Update.
5531         * c-typeck.c (c_finish_bc_stmt): Add prediction.
5532         * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
5533         * predict.def (PRED_CONTINUE): Update hitrate.
5534         * tree.def (PREDICT_EXPR): Define.
5535         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
5536         do not handle BIND_EXPR.
5537         * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
5538         * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
5539         * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
5540         operands.
5541
5542 2008-03-18  Michael Matz  <matz@suse.de>
5543
5544         * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
5545
5546 2008-03-18  Richard Guenther  <rguenther@suse.de>
5547
5548         * tree-gimple.h (is_gimple_invariant_address): Declare.
5549         (is_gimple_constant): Likewise.
5550         * tree-gimple.c (is_gimple_constant): New function.
5551         (is_gimple_invariant_address): Likewise.
5552         (is_gimple_min_invariant): Implement in terms of is_gimple_constant
5553         and is_gimple_invariant_address.
5554         * tree-ssa-loop-niter.c (expand_simple_operations): Revert
5555         previous change.
5556         * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
5557         an addressable base.
5558
5559 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
5560
5561         PR middle-end/35611
5562         * gimplify.c (gimplify_expr): Gimplify second operand of
5563         OMP_ATOMIC_LOAD.
5564
5565 2008-03-17  Richard Guenther  <rguenther@suse.de>
5566
5567         PR tree-optimization/19637
5568         * fold-const.c (fold_unary): Remove restrictions of removing
5569         intermediate pointer-conversions (P2)(P1)P0.
5570         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
5571         conversion to void pointer.
5572         (get_maxval_strlen): Handle addresses of the form &(*p)[0].
5573
5574 2008-03-16  James E. Wilson  <wilson@tuliptree.org>
5575
5576         PR debug/31510
5577         * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
5578         emulated thread local variables.
5579
5580 2008-03-16  Richard Guenther  <rguenther@suse.de>
5581
5582         PR middle-end/35607
5583         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
5584         expand TREE_INVARIANT operations that are not gimple invariant.
5585
5586 2008-03-16  Hans-Peter Nilsson  <hp@axis.com>
5587
5588         * doc/extend.texi (Alignment): Say that the ABI controls
5589         the __alignof__ for non-strict-alignment targets rather
5590         than being a recommendation.
5591
5592 2008-03-15  Paul Brook  <paul@codesourcery.com>
5593
5594         * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
5595         annotations.
5596         (arm_output_fn_unwind): Mark functions that can not be unwound.
5597
5598 2008-03-15  Paul Brook  <paul@codesourcery.com>
5599
5600         * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
5601         extension instructions.
5602
5603 2008-03-15  Richard Guenther  <rguenther@suse.de>
5604
5605         * tree-ssa-ccp.c (ccp_fold): Also read from constant values
5606         and fold constant aggregate refs.
5607         (fold_const_aggregate_ref): Handle string constants
5608         and constructors in ARRAY_REFs.  Handle INDIRECT_REF.
5609         (evaluate_stmt): Simplify now that ccp_fold folds constant
5610         aggregate refs.
5611
5612 2008-03-15  Paul Brook  <paul@codesourcery.com>
5613
5614         * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
5615         (extzv): Use gen_extzv_t2.
5616         (insv_t2, insv_zero, extv, extzv_t2): New patterns.
5617
5618 2008-03-15  Richard Guenther  <rguenther@suse.de>
5619
5620         * tree-ssa-ccp.c (get_symbol_constant_value): Export.
5621         (fold_const_aggregate_ref): Likewise.
5622         (get_value): Return NULL if we don't have any values.
5623         (ccp_finalize): Set const_val to NULL after freeing it.
5624         * tree-flow.h (get_symbol_constant_value): Declare.
5625         (fold_const_aggregate_ref): Likewise.
5626         * tree-ssa-sccvn.c (try_to_simplify): Use them.
5627
5628 2008-03-15  Richard Guenther  <rguenther@suse.de>
5629
5630         PR middle-end/35593
5631         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
5632         to not produce negative array indices if not allowed.  Add
5633         parameter to indicate that.
5634         (maybe_fold_offset_to_component_ref): Allow negative array
5635         indices only for the first member of a structure.
5636         (maybe_fold_offset_to_reference): Allow negative array indices.
5637         (maybe_fold_stmt_addition): Likewise.
5638
5639 2008-03-15  Bjoern Haase  <bjoern.m.haase@web.de>
5640             Anatoly Sokolov <aesok@post.ru>
5641
5642         * config/avr/avr.c (avr_arch_types): Add avr6 entry.
5643         (avr_arch): Add ARCH_AVR6.
5644         (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
5645         (initial_elimination_offset): Initialize and use 'avr_pc_size' 
5646         instead of fixed value 2.
5647         (print_operand_address): Use gs() asm specifier instead of pm().
5648         (avr_assemble_integer): (Ditto.).
5649         (avr_output_addr_vec_elt): (Ditto.).
5650         (print_operand): Handle "!" code.
5651         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add 
5652         __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
5653         (AVR_HAVE_EIJMP_EICALL): Define.
5654         (AVR_3_BYTE_PC): Redefine.
5655         (AVR_2_BYTE_PC): (Ditto.).
5656         (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
5657         (LINK_SPEC): Add atmega2560 and atmega2561.
5658         (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561 
5659         (crtm2561.o).
5660         * config/avr/avr.md (call_insn): Use eicall instead of icall 
5661         for 3 byte PC devices.
5662         (call_value_insn): (Ditto.).
5663         (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
5664         (indirect_jump): Use only for for 2 byte PC devices.
5665         (*tablejump): (Ditto.).
5666         (*indirect_jump_avr6): Add insn.
5667         (*tablejump_rjmp): Don't use for 3 byte PC devices.
5668         * config/avr/libgcc.S (__prologue_saves__): Use eijmp 
5669         instead of ijmp for 3 byte PC devices.
5670         (__tablejump2__): (Ditto.).
5671         * config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
5672         (MULITLIB_DIRNAMES): (Ditto.). 
5673         (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
5674
5675 2008-03-15  Uros Bizjak  <ubizjak@gmail.com>
5676
5677         * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
5678         "sse2_umulsidi3".  Use V1DI mode for operand 0.
5679         ("mmx_psadbw"): Use V1DI mode for operand 0.
5680         * config/i386/i386-modes.def (V1SI): New vector mode.
5681         * config/i386/i386.c (struct builtin_description)
5682         [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
5683         (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
5684         (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
5685         (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
5686         v1di_ftype_v8qi_v8qi type.
5687         [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
5688
5689         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
5690         __builtin_ia32_pmuludq]: Fix the mode of return value.
5691
5692 2008-03-15  Richard Guenther  <rguenther@suse.de>
5693
5694         PR middle-end/35595
5695         * tree-ssa-pre.c (bitmap_find_leader): Handle expression
5696         being a PHI_NODE.
5697
5698 2008-03-14  Bob Wilson  <bob.wilson@acm.org>
5699         
5700         * doc/invoke.texi (Option Summary, Xtensa Options): Document
5701         -mserialize-volatile and -mno-serialize-volatile Xtensa options.
5702         * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
5703         unless TARGET_SERIALIZE_VOLATILE is enabled.
5704         * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
5705         * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
5706         * config/xtensa/xtensa.opt (mserialize_volatile): New option.
5707
5708 2008-03-14  Richard Guenther  <rguenther@suse.de>
5709
5710         PR tree-optimization/34172
5711         * tree-flow.h (refs_may_alias_p): Declare.
5712         (get_single_def_stmt): Likewise.
5713         (get_single_def_stmt_from_phi): Likewise.
5714         (get_single_def_stmt_with_phi): Likewise.
5715         * tree-dfa.c (refs_may_alias_p): New function.
5716         (get_single_def_stmt): Likewise.
5717         (get_single_def_stmt_from_phi): Likewise.
5718         (get_single_def_stmt_with_phi): Likewise.
5719         * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
5720         (vn_reference_lookup_1): New helper function.
5721         (vn_reference_lookup): Walk the virtual use-def chain to
5722         continue searching for a match if the def does not alias the
5723         reference we are looking for.
5724
5725 2008-03-14  David Edelsohn  <edelsohn@gnu.org>
5726
5727         * doc/install.texi (Binaries): Remove UCLA archive.  Add HVCC
5728         archive and Perzl.  Update The Written Word listing.
5729
5730 2008-03-14  Richard Guenther  <rguenther@suse.de>
5731
5732         PR tree-optimization/34043
5733         PR tree-optimization/33989
5734         * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
5735         when doing FRE.
5736         (bitmap_find_leader): Use extra argument to verify dominance
5737         relationship inside a basic-block.
5738         (can_PRE_operation): Add VIEW_CONVERT_EXPR.
5739         (find_leader_in_sets): Adjust.
5740         (create_component_ref_by_pieces): Take extra argument for
5741         dominance check, handle lookup failures.
5742         (find_or_generate_expression): Likewise.
5743         (create_expression_by_pieces): Likewise.
5744         (insert_into_preds_of_block): Adjust.
5745         (create_value_expr_from): If asked for, verify all operands
5746         are in the blocks AVAIL_OUT set.
5747         (make_values_for_stmt): Check for SSA_NAMEs that are life
5748         over an abnormal edge.
5749         (compute_avail): Remove such check.
5750         (do_SCCVN_insertion): New function.
5751         (eliminate): If we do not find a leader suitable for replacement
5752         insert a replacement expression from SCCVN if available.
5753         * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
5754         (struct vn_ssa_aux): Add needs_insertion flag.
5755         * tree-ssa-sccvn.c (may_insert): New global flag.
5756         (copy_reference_ops_from_ref): Value-number union member access
5757         based on its size, not type and member if insertion is allowed.
5758         (visit_reference_op_load): For a weak match from union type
5759         punning lookup a view-converted value and insert a SSA_NAME
5760         for that value if that is not found.
5761         (visit_use): Make dumps shorter.  Do not disallow value numbering
5762         SSA_NAMEs that are life over an abnormal edge to constants.
5763         (free_scc_vn): Release inserted SSA_NAMEs.
5764         (run_scc_vn): New flag to specify whether insertion is allowed.
5765         Process SSA_NAMEs in forward order.
5766         * tree-ssa-loop-im.c (for_each_index): Handle invariant
5767         ADDR_EXPRs inside VIEW_CONVERT_EXPR.
5768         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
5769         pointer type to/from integral types that do not change the
5770         precision to regular conversions.
5771
5772 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
5773
5774         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
5775         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
5776         __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
5777         __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
5778         input arguments and the mode of return value.  Built-in functions
5779         that operate on whole 64-bit MMX register now use V1DI mode.
5780
5781 2008-03-13  Alon Dayan  <alond@il.ibm.com>
5782             Olga Golovanevsky  <olga@il.ibm.com>
5783
5784         PR tree-optimization/35041
5785         * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
5786         to locate the right position in a statement.
5787
5788 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
5789
5790         PR target/34000
5791         PR target/35553
5792         * config/i386/xmmintrin.h:  Change all static inline functions to
5793         extern inline and add __gnu_inline__ attribute.
5794         * config/i386/bmintrin.h: Ditto.
5795         * config/i386/smmintrin.h: Ditto.
5796         * config/i386/tmmintrin.h: Ditto.
5797         * config/i386/mmintrin-common.h: Ditto.
5798         * config/i386/ammintrin.h: Ditto.
5799         * config/i386/emmintrin.h: Ditto.
5800         * config/i386/pmmintrin.h: Ditto.
5801         * config/i386/mmintrin.h: Ditto.
5802         * config/i386/mm3dnow.h: Ditto.
5803
5804 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
5805
5806         PR middle-end/35185
5807         * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
5808         (lower_omp_2): New function.
5809         (lower_omp_1, lower_omp): Rewritten.
5810
5811 2008-03-13  Danny Smith  <dannysmith@users.sourceforge.net>
5812
5813         PR 35054
5814         * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
5815         with the phrase "Microsoft Windows compilers".
5816         (Push/Pop Macro Pragmas): New subsection. Document
5817         #pragma push_macro and pragma pop_macro.
5818
5819 2008-03-12  Paul Brook  <paul@codesourcery.com>
5820
5821         * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
5822
5823 2008-03-12  Paul Brook  <paul@codesourcery.com>
5824
5825         * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
5826         (thumb2_alusi3_short): Exclude PLUS and MINUS.
5827         (thumb2_addsi_shortim): Rename ...
5828         (thumb2_addsi_short): ... to this.  Allow register operands.
5829         (thumb2_subsi_short): New pattern.
5830         (thumb2_one_cmplsi2_short,
5831         thumb2_negsi2_short): New patterns and peepholes.
5832
5833 2008-03-12  Paul Brook  <paul@codesourcery.com>
5834
5835         * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
5836
5837 2008-03-12  Uros Bizjak  <ubizjak@gmail.com>
5838
5839         * config/i386/i386.md (int_cond): New code iterator.
5840         (fp_cond): Ditto.
5841         ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
5842         sge, sgeu, sle and sleu expanders usign int_cond code iterator.
5843         ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
5844         sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
5845         ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
5846         bge, bgeu, ble and bleu expanders usign int_cond code iterator.
5847         ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
5848         bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
5849
5850 2008-03-12  Paul Brook  <paul@codesourcery.com>
5851
5852         * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
5853         instead of {arm,thumb}_compute_save_reg_mask.
5854         (output_return_instruction): Ditto.
5855         (thumb_unexpanded_epilogue): Ditto.
5856         (thumb1_expand_prologue): Ditto.
5857         (thumb1_output_function_prologue): Ditto.
5858         (arm_set_return_address): Ditto.
5859         (thumb_set_return_address): Ditto.
5860         (arm_get_frame_offsets): Set offsets->saved_regs_mask.  Push extra
5861         regs to achieve stack alignment.
5862         (thumb1_compute_save_reg_mask): Fix compiler warning.
5863         (arm_output_epilogue): Use offsets->saved_regs_mask.
5864         Adjust stack pointer by poping call clobered registers.
5865         (arm_expand_prologue): Use offsets->saved_regs_mask.
5866         Adjust stack pointer by pushing extra registers.
5867         * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
5868
5869 2008-03-12  Paolo Bonzini  <bonzini@gnu.org>
5870
5871         PR tree-opt/35422
5872         * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
5873         conversion to the operands of a multiplication.
5874
5875 2008-03-12  Richard Guenther  <rguenther@suse.de>
5876
5877         * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
5878         (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
5879         * timevar.def (TV_TREE_PHIPROP): Add.
5880         * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
5881         pass description.  Use TV_TREE_PHIPROP.
5882         * tree-ssa-forwprop.c: Remove phiprop code.
5883
5884 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
5885
5886         PR middle-end/35549
5887         * omp-low.c (maybe_lookup_decl): Constify first argument.
5888         (use_pointer_for_field): Change last argument from bool to
5889         omp_context *.  Disallow shared copy-in/out in nested
5890         parallel if decl is shared in outer parallel too.
5891         (build_outer_var_ref, scan_sharing_clauses,
5892         lower_rec_input_clauses, lower_copyprivate_clauses,
5893         lower_send_clauses, lower_send_shared_vars): Adjust callers.
5894
5895 2008-03-12  Victor Kaplansky  <victork@il.ibm.com>
5896             Ira Rosen  <irar@il.ibm.com>
5897
5898         * tree-vectorizer.c (free_stmt_vec_info): New function.
5899         (destroy_loop_vec_info): Move code to free_stmt_vec_info().
5900         Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
5901         * tree-vectorizer.h (free_stmt_vec_info): Declare.
5902         * tree-vect-transform.c (vectorizable_conversion): Free
5903         vec_oprnds0 if it was allocated.
5904         (vect_permute_store_chain): Remove unused VECs.
5905         (vectorizable_store): Free VECs that are allocated in the..
5906         function.
5907         (vect_transform_strided_load, vectorizable_load): Likewise.
5908         (vect_remove_stores): Simplify the code.
5909         (vect_transform_loop): Move code to vect_remove_stores().
5910         Call vect_remove_stores() and free_stmt_vec_info().
5911
5912 2008-03-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5913
5914         * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
5915         TARGET_HPUX.  Revise comment.
5916         (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
5917         * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
5918         Use sr4 variant of `be' instruction when not generating PIC code.
5919         (attr_length_call): Adjust for above change.
5920
5921 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5922
5923         * ipa-reference.c (static_execute): Remove module_statics_const and
5924         associated setting code.
5925
5926 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
5927
5928         PR target/35540
5929         * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
5930         predicate for operand 1.
5931         (paritysi2_cmp): Use register_operand predicate for operand 2.
5932         Use earlyclobber modifier for operand 1.  Remove support for
5933         memory operands.
5934         (paritydi2_cmp): Use register_operand predicate for operand 3.
5935         Use earlyclobber modifier for operand 1.  Remove support for
5936         memory operands.
5937
5938 2008-03-11  Paul Brook  <paul@codesourcery.com>
5939             Vladimir Prus  <vladimir@codesourcery.com>
5940
5941         * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
5942         (arm_compute_save_reg0_reg12_mask): Always
5943         check if register 11 must be saved.  Always safe hard frame pointer
5944         when frame_pointer_needeed.
5945         (arm_compute_save_reg_mask): Save IP and PC
5946         only with apcs frames.
5947         (arm_output_epilogue): Adjust Thumb2 codepath to
5948         be also invoked and work for ARM non-apcs frames.
5949         (arm_expand_prologue): Don't bother saving IP
5950         for non-apcs frame, since it's not clobbered by
5951         prologue code.  Implement non-apcs frame
5952         layout.
5953
5954 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
5955
5956         PR rtl-optimization/35281
5957         * expr.c (convert_move): Use a new pseudo for the intermediate
5958         from_mode->word_mode result.
5959
5960 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
5961
5962         * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
5963         * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
5964         * toplev.c (compile_file): Don't call it.
5965
5966 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
5967
5968         PR middle-end/35526
5969         * expr.c (store_expr): Call emit_block_move if the mode
5970         of "temp" RTX is BLKmode.
5971
5972 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5973             Richard Guenther  <rguenther@suse.de>
5974
5975         PR tree-optimization/31358
5976         * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
5977         the step with a NULL_TREE.
5978         * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
5979         to sizetype if type is a pointer type.
5980         (add_candidate_1): Don't convert the base and step to
5981         the generic type if the orginal type is a pointer type.
5982         (add_iv_value_candidates): Use sizetype for the step
5983         if type is a pointer type.
5984         (cand_value_at): Likewise.
5985         * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
5986         for pointer types.
5987         * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
5988         Don't convert the tem affine to the type.
5989         (add_elt_to_tree): Use sizetype for the step if a pointer.
5990         Use POINTER_PLUS_EXPR for pointers.
5991         (aff_combination_to_tree): Use sizetype for the step if a
5992         pointer.
5993
5994 2008-03-10  Vladimir Makarov  <vmakarov@redhat.com>
5995
5996         * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
5997         Remove commutativity hint.
5998
5999 2008-03-10  Jakub Jelinek  <jakub@redhat.com>
6000
6001         PR c/35438
6002         PR c/35439
6003         * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
6004         errorneous type.  Check that v is a VAR_DECL.
6005
6006         PR middle-end/35099
6007         * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
6008
6009 2008-03-10  H.J. Lu  <hongjiu.lu@intel.com>
6010
6011         PR tree-optimization/35494
6012         * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
6013         may be overriden at link and run time.
6014
6015 2008-03-10  Richard Guenther  <rguenther@suse.de>
6016
6017         PR tree-optimization/34677
6018         * tree-ssa-pre.c (modify_expr_node_pool): Remove.
6019         (poolify_tree): Likewise.
6020         (modify_expr_template): Likewise.
6021         (poolify_modify_stmt): Likewise.
6022         (insert_fake_stores): Handle all component-ref style stores
6023         in addition to INDIRECT_REF.  Also handle complex types.
6024         Do not poolify the inserted load.
6025         (realify_fake_stores): Do not rebuild the tree but only
6026         make it a SSA_NAME copy.
6027         (init_pre): Remove initialzation of modify_expr_template.
6028         Do not allocate modify_expr_node_pool.
6029         (fini_pre): Do not free modify_expr_node_pool.
6030
6031 2008-03-10  Paul Brook  <paul@codesourcery.com>
6032
6033         * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
6034         to avoid conflicts.
6035
6036 2008-03-10  Paul Brook  <paul@codesourcery.com>
6037             Mark Shinwell  <shinwell@codesourcery.com>
6038
6039         * config/arm/cortex-r4.md: New.
6040         * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
6041         insn attributes.
6042         * config/arm/arm.md: Include cortex-r4.md.
6043         (insn): Add smmls, sdiv and udiv values.
6044         (generic_sched): Don't use generic scheduling for Cortex-R4.
6045         (arm_issue_rate): New function.
6046         (TARGET_SCHED_ISSUE_RATE): Define.
6047
6048 2008-03-10  Sebastian Pop  <sebastian.pop@amd.com>
6049
6050         * doc/invoke.texi (-ftree-loop-distribution): Add an example.
6051
6052 2008-03-10  Richard Guenther  <rguenther@suse.de>
6053
6054         * tree-ssa-pre.c (get_sccvn_value): Simplify.
6055         (compute_avail): Do not add stmt uses to AVAIL_OUT.
6056
6057 2008-03-10  Paolo Bonzini  <bonzini@gnu.org>
6058
6059         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
6060         Set default to true.
6061
6062 2008-03-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6063
6064         * c.opt (Wsynth): Deprecate.
6065         * doc/invoke.texi (Option Summary, Warning Options): Document
6066         -Wno-format-contains-nul.
6067
6068 2008-03-09  Uros Bizjak  <ubizjak@gmail.com>
6069
6070         PR target/35496
6071         * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
6072         ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
6073
6074 2008-03-09  Ira Rosen  <irar@il.ibm.com>
6075
6076         * config/rs6000/rs6000.c (builtin_description): Rename vector
6077         left shift operations.
6078         * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
6079         (altivec_vsl<VI_char>): Rename to ...
6080         (ashl<mode>3): ... new name.
6081         (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
6082         gen_ashlv4si3.
6083         (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
6084
6085 2008-03-08  Richard Guenther  <rguenther@suse.de>
6086
6087         * coverage.h (tree_coverage_counter_addr): Declare.
6088         * coverage.c (tree_coverage_counter_addr): New function.
6089         * tree-profile.c (tree_gen_edge_profiler): Unshare counter
6090         before using again.
6091         (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
6092         (tree_gen_one_value_profiler): Likewise.
6093         (tree_gen_ic_profiler): Likewise.
6094         (tree_gen_average_profiler): Likewise.
6095         (tree_gen_ior_profiler): Likewise.
6096
6097 2008-03-08  Richard Guenther  <rguenther@suse.de>
6098
6099         * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
6100         (vn_binary_op_insert): Likewise.
6101         (vn_unary_op_lookup): Likewise.
6102         (vn_unary_op_insert): Likewise.
6103         (vn_nary_op_lookup): Declare.
6104         (vn_nary_op_insert): Likewise.
6105         * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
6106         and binary hashes, use a single obstack for unary_op_pool
6107         and binary_op_pool.
6108         (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
6109         a single struct vn_nary_op_s.  Store tree code length and
6110         a variable number of operands.
6111         (struct vn_reference_op_struct): Remove unused op2.
6112         (vn_reference_op_eq): Do not compare op2.
6113         (vn_reference_op_compute_hash): Do not compute hash of op2.
6114         (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
6115         (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
6116         with vn_nary_op_compute_hash.
6117         (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
6118         (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
6119         vn_nary_op_lookup.
6120         (vn_unary_op_insert, vn_binary_op_insert): Replace with
6121         vn_nary_op_insert.
6122         (visit_unary_op): Call nary functions.
6123         (visit_binary_op): Likewise.
6124         (process_scc): Adjust for struct vn_tables_s changes.
6125         (allocate_vn_table): Likewise.
6126         (free_vn_table): Likewise.
6127         * tree-vn.c (vn_add): Call nary functions.
6128         (vn_lookup): Likewise.
6129
6130 2008-03-08  Jakub Jelinek  <jakub@redhat.com>
6131
6132         PR target/35498
6133         * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
6134         wdst back after sync_compare_and_swapqhi_internal.
6135
6136 2008-03-08  Uros Bizjak  <ubizjak@gmail.com>
6137
6138         PR target/22152
6139         * config/i386/i386-modes.def (V1DI): New vector mode.
6140         * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
6141         * config/i386/mmx.md (MMXMODEI8): New mode iterator.
6142         (MMXMODE248): Ditto.
6143         (MMXMODE): Add V1DI mode.
6144         (mmxvecsize): Change DI mode to V1DI mode.
6145         ("mov<mode>): Use MMXMODEI8 mode iterator.
6146         ("*mov<mode>_internal_rex64"): Ditto.
6147         ("*mov<mode>_internal"): Ditto.
6148         ("mmx_add<mode>3"): Ditto.  Handle V1DImode for TARGET_SSE2.
6149         ("mmx_sub<mode>3"): Ditto.
6150         ("mmx_adddi3"): Remove insn pattern.
6151         ("mmx_subdi3"): Ditto.
6152         ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
6153         ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
6154         ("mmx_ashl<mode>3"): Ditto.
6155         ("mmx_lshrdi3"): Remove insn pattern.
6156         ("mmx_ashldi3"): Ditto.
6157         * config/i386/i386.c (classify_argument): Handle V1DImode.
6158         (function_arg_advance_32): Ditto.
6159         (function_arg_32): Ditto.
6160         (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
6161         mmx_addv1di3 insn pattern.
6162         [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
6163         [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
6164         IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
6165         IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
6166         Remove definitions of built-in functions.
6167         (V1DI_type_node): New node.
6168         (v1di_ftype_v1di_int): Ditto.
6169         (v1di_ftype_v1di_v1di): Ditto.
6170         (v2si_ftype_v2si_si): Ditto.
6171         (v4hi_ftype_v4hi_di): Remove node.
6172         (v2si_ftype_v2si_di): Ditto.
6173         (ix86_init_mmx_sse_builtins): Handle V1DImode.
6174         (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
6175         Redefine builtins using def_builtin_const with *_ftype_*_int node.
6176         (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
6177         Add new builtins using def_builtin_const.
6178         (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
6179         IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
6180         IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
6181         * config/i386/mmintrin.h (__v1di): New typedef.
6182         (_mm_add_si64): Cast arguments to __v1di type.
6183         (_mm_sub_si64): Ditto.
6184         (_mm_sll_pi16): Cast __count to __v4hi type.
6185         (_mm_sll_pi32): Cast __count to __v2si type.
6186         (_mm_sll_si64): Cast arguments to __v1di type.
6187         (_mm_srl_pi16): Cast __count to __v4hi type.
6188         (_mm_srl_pi32): Cast __count to __v2si type.
6189         (_mm_srl_si64): Cast arguments to __v1di type.
6190         (_mm_sra_pi16): Cast __count to __v4hi type.
6191         (_mm_sra_pi32): Cast __count to __v2si type.
6192         (_mm_slli_pi16): Use __builtin_ia32_psllwi.
6193         (_mm_slli_pi32): Use __builtin_ia32_pslldi.
6194         (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
6195         (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
6196         (_mm_srli_pi32): Use __builtin_ia32_psrldi.
6197         (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
6198         (_mm_srai_pi16): Use __builtin_ia32_psrawi.
6199         (_mm_srai_pi32): Use __builtin_ia32_psradi.
6200         * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
6201         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
6202         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
6203         __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
6204
6205 2008-03-07  Joseph Myers  <joseph@codesourcery.com>
6206
6207         * doc/include/texinfo.tex: Update to version 2008-03-07.10.
6208
6209 2008-03-07  Peter Bergner  <bergner@vnet.ibm.com>
6210
6211         PR target/35373
6212         * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
6213         reg+const addressing for Altivec modes.  Don't generate reg+reg
6214         addressing for TFmode or TDmode quantities.
6215
6216 2008-03-07  Paolo Bonzini  <bonzini@gnu.org>
6217
6218         * c-common.c (vector_types_convertible_p): Call langhook
6219         instead of comptypes.
6220
6221 2008-03-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
6222
6223         PR tree-opt/35402
6224         * tree-ssa-ccp.c (get_symbol_constant_value): Handle
6225         integral and scalar float variables which have a
6226         NULL DECL_INITIAL.
6227
6228 2008-03-06  Nathan Froyd  <froydnj@codesourcery.com>
6229
6230         * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
6231         dwarf_register_span hook when emitting unwind information for
6232         register-to-memory saves.
6233         * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
6234         (rs6000_frame_related): Remove call to spe_synthesize_frame.
6235
6236 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
6237
6238         * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
6239         for the same VAR_DECL.
6240
6241 2008-03-06  Tom Tromey  <tromey@redhat.com>
6242
6243         * treelang: Delete.
6244         * doc/standards.texi (Standards): Don't mention treelang.
6245         * doc/invoke.texi (Overall Options): Don't mention treelang.
6246         * doc/install.texi (Prerequisites): Don't mention bison or
6247         treelang.
6248         (Configuration): Don't mention treelang.
6249         (Building): Likewise.
6250         * doc/frontends.texi (G++ and GCC): Don't mention treelang.
6251
6252 2008-03-06  Paolo Bonzini  <bonzini@gnu.org>
6253
6254         * simplify-rtx.c (simplify_subreg): Remove useless shifts from
6255         word-extractions out of a multi-word object.
6256
6257 2008-03-06  Richard Guenther  <rguenther@suse.de>
6258
6259         * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
6260         * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
6261         result type and precision.
6262         * expr.c (get_inner_reference): Set unsignedp based on the result
6263         type of BIT_FIELD_REF.
6264         * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
6265         * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
6266         (try_instantiate_multiple_fields): Likewise.  Use the correct type
6267         for BIT_FIELD_REF.
6268         (sra_build_assignment): Likewise.
6269         (sra_build_elt_assignment): Likewise.
6270         (sra_explode_bitfield_assignment): Likewise.
6271         * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
6272         * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
6273         set BIT_FIELD_REF_UNSIGNED.
6274         (vectorizable_load): Likewise.
6275
6276 2008-03-06  Andreas Krebbel  <krebbel1@de.ibm.com>
6277
6278         * cse.c (cse_extended_basic_block): Invalidate artificial defs
6279         at bb start.
6280
6281 2008-03-06  Richard Guenther  <rguenther@suse.de>
6282
6283         * alias.c (struct alias_set_entry): Move has_zero_child field
6284         to pack with alias_set.
6285
6286 2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
6287
6288         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
6289         32bit host.
6290
6291 2008-03-05  Ian Lance Taylor  <iant@google.com>
6292
6293         * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
6294
6295 2008-03-05  Kenneth Zadeck  <zadeck@naturalbridge.com>
6296
6297         * fwprop.c (update_df): Support width and offset parameters of
6298         df_ref_create.
6299         * ra-conflict.c (mark_reg_store, clear_reg_in_live,
6300         global_conflicts): Change DF_REF_EXTRACT to either
6301         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
6302         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
6303         * df-scan.c (df_ref_record, df_defs_record,
6304         df_ref_create_structure, df_def_record_1, df_uses_record,
6305         df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
6306         df_bb_refs_collect, df_entry_block_defs_collect,
6307         df_exit_block_uses_collect): Support new width and offset fields.
6308         (ref_extract_pool): New storage pool.
6309         (df_free_ref): New function.
6310         (df_reg_chain_unlink, df_free_collection_rec,
6311         df_sort_and_compress_refs): Call df_free_ref.
6312         (df_ref_equal_p, df_ref_compare): Compare offset and width fields
6313         of df_ref_extract.
6314         (df_ref_create_structure): Allocate df_ref_extract if offset and
6315         width fields are used.
6316         (df_def_record_1): Get offset and width from ZERO_EXTRACT.
6317         (df_uses_record): Get offset and width from ZERO_EXTRACT 
6318         and SIGN_EXTRACT.
6319         * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
6320         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
6321         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
6322         * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
6323         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
6324         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
6325         (df_ref_extract): New structure.
6326         (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
6327         (df_ref_create): Add width and offset parameters.
6328         
6329 2008-03-05  Richard Guenther  <rguenther@suse.de>
6330
6331         * tree-ssa-structalias.c (get_constraint_for_component_ref):
6332         Use ranges_overlap_p.
6333         (offset_overlaps_with_access): Rename
6334         to ranges_overlap_p and move ...
6335         * tree-flow-inline.h (ranges_overlap_p): ... here.
6336
6337         * tree.h (get_inner_reference, handled_component_p): Update
6338         comments.
6339
6340         * tree.h (record_component_aliases, get_alias_set,
6341         alias_sets_conflict_p, alias_sets_must_conflict_p,
6342         objects_must_conflict_p): Move declarations ...
6343         * alias.h (record_component_aliases, get_alias_set,
6344         alias_sets_conflict_p, alias_sets_must_conflict_p,
6345         objects_must_conflict_p): ... here.
6346         Include coretypes.h.
6347         * Makefile.in (ALIAS_H): Add coretypes.h dependency.
6348
6349 2008-03-05  Aldy Hernandez  <aldyh@redhat.com>
6350
6351         * cfg.c: Include tree-flow.h.
6352         (remove_edge_raw): Call redirect_edge_var_map_clear.
6353         (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
6354         * tree-flow-inline.h (redirect_edge_var_map_def): New.
6355         (redirect_edge_var_map_result): New.
6356         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
6357         PENDING_STMT use with redirect_edge_var_map_*.
6358         * tree-ssa.c (edge_var_maps): New definition.
6359         (redirect_edge_var_map_add): New.
6360         (redirect_edge_var_map_clear): New.
6361         (redirect_edge_var_map_dup): New.
6362         (redirect_edge_var_map_vector): New.
6363         (redirect_edge_var_map_destroy): New.
6364         (ssa_redirect_edge): Replace PENDING_STMT use with
6365         redirect_edge_var_map_*.
6366         (flush_pending_stmts): Same.
6367         (delete_tree_ssa): Destroy edge var map.
6368         * tree-flow.h (struct _edge_var_map): New.
6369         Define edge_var_map vector type.
6370         Declare redirect_edge_var_map_* prototypes.
6371         * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
6372         * tree-cfg.c (reinstall_phi_args): Replace
6373         PENDING_STMT use with redirect_edge_var_map_*.
6374
6375 2008-03-05  Richard Guenther  <rguenther@suse.de>
6376
6377         PR tree-optimization/35472
6378         * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
6379         whose single use_stmt has a overlapping set of loaded and
6380         stored symbols as that use_stmt might be a noop assignment then.
6381
6382 2008-03-05  Joel Sherrill <joel.sherrill@oarcorp.com>
6383
6384         * gthr-rtems.h: Implement __gthread_mutex_destroy.
6385
6386 2008-03-05  Richard Guenther  <rguenther@suse.de>
6387
6388         PR c++/35336
6389         * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
6390         should be constants.
6391         * tree-cfg.c (verify_expr): Verify it.
6392         * fold-const.c (fold_truthop): Remove code generating
6393         BIT_FIELD_REFs of structure bases.
6394         (fold_binary): Likewise.
6395         (fold_ternary): Position and size of BIT_FIELD_REFs are
6396         always host integers.
6397         (make_bit_field_ref): Remove.
6398         (optimize_bit_field_compare): Remove.
6399         (all_ones_mask_p): Remove.
6400
6401 2008-03-05  Gabor Loki  <loki@gcc.gnu.org>
6402
6403         PR gcc/33009
6404         * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
6405         (split_block_and_df_analyze): New. Split basic block and rebuild
6406         dataflow.
6407         (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
6408         SPLIT_BLOCK.
6409         (split_pattern_seq): Likewise.
6410         (erase_matching_seqs): Likewise.
6411         (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
6412
6413 2008-03-04  Geoff Keating  <geoffk@apple.com>
6414
6415         * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
6416         declaration and code.
6417         (tree_invalid_nonnegative_warnv_p): Likewise.
6418
6419 2008-03-05  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
6420
6421         * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
6422         examples.  Truncate option-names then causing overfull hbox.
6423
6424 2008-03-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6425
6426         PR target/35222
6427         * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
6428         on hpux10.
6429         * configure: Rebuilt.
6430
6431 2008-03-04  Rafael Espindola  <espindola@google.com>
6432
6433         * fold-const.c (tree_simple_nonnegative_warnv_p): New.
6434         (tree_unary_nonnegative_warnv_p): New.
6435         (tree_binary_nonnegative_warnv_p): New.
6436         (tree_single_nonnegative_warnv_p): New.
6437         (tree_invalid_nonnegative_warnv_p): New.
6438         (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
6439
6440 2008-03-04  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6441
6442         PR 28322
6443         * opts.c (handle_option): Postpone 'unknown option' errors only for
6444         warning options.
6445
6446 2008-03-04  H.J. Lu  <hongjiu.lu@intel.com>
6447
6448         PR target/35453
6449         * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
6450         (_SIDD_XXX): This.
6451
6452 2008-03-04  Rafael Espindola  <espindola@google.com>
6453
6454         * fold-const.c (tree_unary_nonzero_warnv_p): New.
6455         (tree_binary_nonzero_warnv_p): New.
6456         (tree_single_nonzero_warnv_p): New.
6457         (tree_expr_nonzero_warnv_p): Redefine using the new functions.
6458
6459 2008-03-04  Uros Bizjak  <ubizjak@gmail.com>
6460
6461         PR middle-end/35456
6462         * fold-const.c (fold_cond_expr_with_comparison): Prevent
6463         transformations for modes that have signed zeros.
6464         * ifcvt.c (noce_try_abs): Ditto.
6465
6466 2008-03-04  Joseph Myers  <joseph@codesourcery.com>
6467
6468         * config/i386/i386.c (override_options): Force
6469         -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
6470
6471 2008-03-04  Jan Hubicka  <jh@suse.cz>
6472
6473         PR c++/35262
6474         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
6475         in last commit.
6476
6477 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
6478
6479         * config/i386/i386.md (allocate_stack_worker_32): Use  __chkstk
6480         label to probe the stack.
6481
6482 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
6483
6484         * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
6485         (__gthr_win32_mutex_destroy): Declare.
6486         [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
6487         __gthr_win32_mutex_destroy.
6488         * config/i386/gthr-win32.c  (__gthr_win32_mutex_destroy): Define.
6489
6490 2008-03-03  Jan Hubicka  <jh@suse.cz>
6491
6492         PR c++/35262
6493         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
6494         aggressive on inlining cold calls.
6495
6496 2008-03-03  Richard Guenther  <rguenther@suse.de>
6497
6498         * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
6499         struct copies into the expression table.
6500         (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
6501         (try_to_simplify): Likewise.
6502         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
6503         integral and pointer arguments which do not change the
6504         precision to NOP_EXPRs.
6505         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
6506         VIEW_CONVERT_EXPR case.
6507
6508 2008-03-02  Sebastian Pop  <sebastian.pop@amd.com>
6509
6510         * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
6511         defined in a loop at depth 0 is invariant.
6512         * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
6513         * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
6514         be called at loop depth 0.
6515
6516 2008-03-02  Jakub Jelinek  <jakub@redhat.com>
6517
6518         PR driver/35420
6519         * gcc.c (process_command): Update copyright notice dates.
6520         * gcov.c (print_version): Likewise.
6521         * gcov-dump.c (print_version): Likewise.
6522         * mips-tfile.c (main): Likewise.
6523         * mips-tdump.c (main): Likewise.
6524
6525 2008-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6526
6527         PR 24924
6528         * c-common.c (flag_permissive): Delete.
6529         (constant_expression_warnings): Check flags first.
6530         (constant_expression_error): New.
6531         * c-common.h (flag_permissive): Delete.
6532         (constant_expression_error): Declare.
6533         * flags.h (flag_permissive): Declare. Update description.
6534         * diagnostic.c (pedwarn): Update.
6535         (permerror): New.
6536         * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
6537         (permissive_error_kind): New.
6538         * toplev.c (flag_permissive): Define. Update description.
6539         * toplev.h (permissive_error_kind): Declare.
6540         * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
6541         (pedwarn_c90): Use pedantic_warning_kind.
6542         * c-opts.c (c_common_post_options): flag_permissive does not affect
6543         flag_pedantic_errors.
6544
6545 2008-03-02  Joseph Myers  <joseph@codesourcery.com>
6546
6547         * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
6548         __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
6549         __absvsi2, __absvDI2): Use unsigned arithmetic.
6550
6551 2008-03-02  Andi Kleen  <ak@suse.de>
6552             Richard Guenther  <rguenther@suse.de>
6553
6554         * struct-equiv.c: Remove file.
6555         * cfg_cleanup.c (condjump_equiv_p): Remove.
6556         * Makefile.in (OBJS-common): Remove struct-equiv.o.
6557         (struct-equiv.o): Remove rule.
6558         * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
6559         insns_match_p, struct_equiv_block_eq, struct_equiv_init, 
6560         rtx_equiv_p, condjump_equiv_p): Remove prototypes.
6561
6562 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
6563
6564         * ifcvt.c (noce_process_if_block): Try to handle only the then
6565         block if the else block exists but isn't suitable.
6566
6567 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
6568
6569         PR gcc/35063
6570         * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
6571         * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
6572         regression from previous patch.
6573
6574 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
6575
6576         PR gcc/35063
6577         * gthr.h: Add __gthread_mutex_destroy as a function that must be
6578         implemented.
6579         * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
6580         * gthr-single.h (__gthread_mutex_destroy): Likewise.
6581         * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
6582         * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
6583         * gthr-nks.h (__gthread_mutex_destroy): Likewise.
6584         * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
6585         * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
6586         (__gthread_mutex_destroy_function): Rename to
6587         __gthread_mutex_destroy.
6588         * gthr-dce.h (__gthread_mutex_destroy): Call
6589         pthread_mutex_destroy.
6590         * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
6591         * gthr-posix.h (__gthread_mutex_destroy): Likewise.
6592         * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
6593
6594 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
6595
6596         * df-scan.c (df_ref_chain_change_bb): Simplify.
6597         (df_insn_change_bb): Add new_bb argument.  Simplify.  Call
6598         set_block_for_insn if there's any change.
6599         * df.h ((df_insn_change_bb): Fix prototype.
6600         * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
6601         df_insn_change_bb, don't call set_block_for_insn.
6602         * emit-rtl.c (reorder_insns): Likewise.
6603         * haifa-sched.c (move_insn): Likewise.
6604
6605 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
6606
6607         * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
6608
6609 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
6610
6611         * tree-flow-inline.h (next_readonly_imm_use): Return
6612         NULL_USE_OPERAND_P after the end.
6613
6614 2008-03-01  Richard Guenther  <rguenther@suse.de>
6615
6616         PR tree-optimization/35411
6617         * tree-sra.c (sra_build_assignment): Split conversion to
6618         final type to a separate statement if we are not assigning
6619         to a register.
6620
6621 2008-02-29  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
6622
6623         * fold-const.c (fold_convertible_p): Correct the logic to follow
6624         that in fold_convert().
6625
6626 2008-02-29  Douglas Gregor  <doug.gregor@gmail.com>
6627
6628         PR c++/35315
6629         * tree-inline.c (build_duplicate_type): When we make a
6630         duplicate type, make it unique in the canonical types system.
6631
6632 2008-02-29  Tom Tromey  <tromey@redhat.com>
6633
6634         * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
6635         input_file_stack_history, input_file_stack_restored): Remove.
6636         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
6637         * input.h (struct file_stack): Remove.
6638         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
6639         (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
6640         Likewise.
6641         * diagnostic.h (struct diagnostic_context) <last_module>: Change
6642         type.
6643         (diagnostic_last_module_changed): Add 'map' argument.
6644         (diagnostic_set_last_function): Likewise.
6645         * diagnostic.c (undiagnostic_report_current_module): Iterate using
6646         line map, not input_file_stack.
6647         * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
6648
6649 2008-02-29  Paul Brook  <paul@codesourcery.com>
6650
6651         * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
6652
6653 2008-02-29  Paul Brook  <paul@codesourcery.com>
6654
6655         * config/arm/ieee754-df.S (muldf3): Use RET macros.
6656
6657 2008-02-29  Richard Guenther  <rguenther@suse.de>
6658
6659         * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
6660         vn_lookup_or_add.
6661         * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
6662         value for comparing for a store match.
6663         (simplify_unary_expression): Do nothing for SSA_NAMEs.
6664         (try_to_simplify): Do not do a full-blown reference lookup.
6665
6666 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
6667
6668         * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
6669         (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
6670
6671         * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
6672
6673 2008-02-29  Sebastian Pop  <sebastian.pop@amd.com>
6674
6675         * tree-loop-linear.c (try_interchange_loops): Compare memory access
6676         strides against cache sizes.
6677
6678 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
6679
6680         * config/sh/sh.c (sh_secondary_reload): Handle loading a float
6681         constant to fpul.
6682
6683 2008-02-28  Richard Sandiford  <rsandifo@nildram.co.uk>
6684
6685         * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
6686         of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
6687         is smaller than the original promoted value.
6688         (simplify_subreg): If OP is a SUBREG, try to preserve its
6689         SUBREG_PROMOTED_VAR_P information.
6690
6691 2008-02-28  Steven Bosscher  <stevenb.gcc@gmail.com>
6692
6693         * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
6694         (VN_INFO_GET): Allocate new objects on the obstack.
6695         (init_scc_vn): Initialize the obstack.  Use XDELETE instead of free
6696         for rpo_numbers_temp, for consistency.
6697         (free_scc_vn): Free the obstack.
6698
6699 2008-02-28  Sebastian Pop  <sebastian.pop@amd.com>
6700
6701         * doc/invoke.texi: Document -ftree-loop-distribution.
6702         * tree-loop-distribution.c: New.
6703         * tree-pass.h (pass_loop_distribution): New.
6704         * graphds.h (struct graph): Add htab_t indices.
6705         * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
6706         * tree-vectorizer.c (rename_variables_in_loop): Extern.
6707         (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
6708         * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
6709         * tree-data-ref.c (debug_data_dependence_relations): New.
6710         (dump_data_dependence_relation): Also print data references.
6711         (free_data_ref): Extern.
6712         (same_access_functions): Moved...
6713         (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
6714         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
6715         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
6716         struct rdg_vertex_info, rdg_vertex_for_stmt): New.
6717         (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
6718         (stmts_from_loop): Skip LABEL_EXPR.
6719         (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
6720         New.
6721         (build_rdg): Initialize rdg->indices htab.
6722         (free_rdg, stores_from_loop, ref_base_address,
6723         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
6724         have_similar_memory_accesses_1, ref_base_address_1,
6725         remove_similar_memory_refs): New.
6726         * tree-data-ref.h: Depend on tree-chrec.h.
6727         (debug_data_dependence_relations, free_data_ref): Declared.
6728         (same_access_functions): ... here.
6729         (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
6730         New.
6731         (struct rdg_vertex): Add has_mem_write and has_mem_reads.
6732         (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
6733         RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
6734         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
6735         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
6736         rdg_vertex_for_stmt): Declared.
6737         (struct rdg_edge): Add level.
6738         (RDGE_LEVEL): New.
6739         (free_rdg, stores_from_loop, remove_similar_memory_refs,
6740         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
6741         Declared.
6742         (rdg_has_similar_memory_accesses): New.
6743         * tree-vect-analyze.c: Remove unused static decls.
6744         * lambda.h (dependence_level): New.
6745         * common.opt (ftree-loop-distribution): New.
6746         * tree-flow.h (mark_virtual_ops_in_bb, 
6747         slpeel_tree_duplicate_loop_to_edge_cfg,
6748         rename_variables_in_loop): Declared.
6749         * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
6750         (OBJS-common): Add tree-loop-distribution.o.
6751         (tree-loop-distribution.o): New rule.
6752         * tree-cfg.c (mark_virtual_ops_in_bb): New.
6753         (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
6754         * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
6755
6756 2008-02-28  Joseph Myers  <joseph@codesourcery.com>
6757
6758         PR target/33963
6759         * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
6760         other than structures and unions.
6761
6762 2008-02-28  Richard Guenther  <rguenther@suse.de>
6763
6764         Revert:
6765         2008-02-26  Richard Guenther  <rguenther@suse.de>
6766
6767         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
6768         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
6769         (lookup_decl_from_uid): Declare.
6770         (remove_decl_from_map): Likewise.
6771         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
6772         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
6773         (decl_for_uid_map): New global hashtable mapping DECL_UID
6774         to the decl tree.
6775         (init_ttree): Allocate it.
6776         (insert_decl_to_uid_decl_map): New helper function.
6777         (make_node_stat): Insert new decls into the map.
6778         (copy_node_stat): Likewise.
6779         (lookup_decl_from_uid): New function.
6780         (remove_decl_from_map): Likewise.
6781         (print_decl_for_uid_map_statistics): New helper.
6782         (dump_tree_statistics): Call it.
6783
6784         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
6785         (referenced_var_iterator): Adjust.
6786         (FOR_EACH_REFERENCED_VAR): Adjust.
6787         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
6788         (num_referenced_vars): Adjust.
6789         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
6790         (first_referenced_var): Remove.
6791         (end_referenced_vars_p): Likewise.
6792         (next_referenced_var): Likewise.
6793         (referenced_var_iterator_set): New helper function.
6794         * tree-dfa.c (referenced_var_lookup): Adjust.
6795         (referenced_var_check_and_insert): Likewise.
6796         (remove_referenced_var): Likewise.
6797         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
6798         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
6799         (verify_call_clobbering): Likewise.
6800         (verify_memory_partitions): Likewise.
6801         (init_tree_ssa): Allocate bitmap instead of hashtable for
6802         referenced_vars.
6803         (delete_tree_ssa): Adjust.
6804         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
6805         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
6806         (compute_tag_properties): Likewise.
6807         (set_initial_properties): Likewise.
6808         (find_partition_for): Likewise.
6809         (update_reference_counts): Likewise.
6810         (dump_may_aliases_for): Likewise.
6811         * tree-ssa-operands.c (add_virtual_operand): Likewise.
6812         (add_call_clobber_ops): Likewise.
6813         (add_call_read_ops): Likewise.
6814         (get_asm_expr_operands): Likewise.
6815         * tree-into-ssa.c (dump_decl_set): Likewise.
6816         (update_ssa): Likewise.
6817         * tree-sra.c (scan_function): Likewise.
6818         (decide_instantiations): Likewise.
6819         (scalarize_parms): Likewise.
6820         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
6821         (dsa_named_for): Likewise.
6822         * tree-ssa-structalias.c (update_alias_info): Likewise.
6823         (merge_smts_into): Likewise.
6824
6825 2008-02-27  David Daney  <ddaney@avtrex.com>
6826
6827         PR target/34409
6828         * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
6829         * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
6830         * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
6831         * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
6832         * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
6833
6834 2008-02-27  Uros Bizjak  <ubizjak@gmail.com>
6835
6836         PR target/25477
6837         * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
6838         (BUILT_IN_NEXTTOWARD): Remove.
6839         (BUILT_IN_NEXTTOWARDF): Ditto.
6840         * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
6841         alloca/strcpy/strcat.  Remove commented-out code.  Fix whitespace.
6842
6843 2008-02-27  Tom Tromey  <tromey@redhat.com>
6844
6845         * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
6846         DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
6847
6848 2008-02-27  Jan Beulich  <jbeulich@novell.com>
6849
6850         * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
6851         update the respective field on newdecl.
6852
6853 2008-02-27  Revital Eres  <eres@il.ibm.com>
6854
6855         PR rtl-optimization/34999
6856         * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
6857         crossing edges that ends with a call insn.
6858         (fix_up_fall_thru_edges): Handle crossing edges that ends with a
6859         call insn and clear the EDGE_CROSSING flag of the crossing edge
6860         when fixing fallthru edges.
6861
6862 2008-02-27  Richard Guenther  <rguenther@suse.de>
6863
6864         PR middle-end/35390
6865         * fold-const.c (fold_unary): Return the correct argument,
6866         converted to the result type.
6867
6868 2008-02-27  Richard Guenther  <rguenther@suse.de>
6869
6870         PR middle-end/34971
6871         * expr.c (expand_expr_real_1): Assert on rotates that operate
6872         on partial modes.
6873         * fold-const.c (fold_binary): Use the types precision, not the
6874         bitsize of the mode if folding rotate expressions.  Build rotates
6875         only for full modes.
6876
6877 2008-02-27  Jakub Jelinek  <jakub@redhat.com>
6878
6879         * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
6880         and CPP_PRAGMA_EOL.
6881         * c-pragma.c (pragma_ns_name): New typedef.
6882         (registered_pp_pragmas): New variable.
6883         (c_pp_lookup_pragma): New function.
6884         (c_register_pragma_1): If flag_preprocess_only, do nothing
6885         for non-expanded pragmas, for expanded ones push pragma's
6886         namespace and name into registered_pp_pragmas vector.
6887         (c_invoke_pragma_handler): Register OpenMP pragmas even when
6888         flag_preprocess_only, don't register GCC pch_preprocess
6889         pragma if flag_preprocess_only.
6890         * c-opts.c (c_common_init): Call init_pragma even if
6891         flag_preprocess_only.
6892         * c-pragma.c (c_pp_lookup_pragma): New prototype.
6893         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
6894         cpp_register_pragma if flag_preprocess_only.
6895
6896 2008-02-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6897
6898         PR c/28800
6899         * c-parser.c (c_parser_translation_unit): Warn for empty
6900         translation unit, not empty source file.
6901
6902 2008-02-26  Paul Brook  <paul@codesourcery.com>
6903
6904         * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
6905         operand for Thumb-2.
6906         * config/arm/arm.h (reg_class): Add CORE_REGS.
6907         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
6908         (BASE_REG_CLASS): Use CORE_REGS.
6909         (PREFERRED_RELOAD_CLASS): Add STACK_REG.
6910         (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
6911         (REGNO_OK_FOR_INDEX_P): Exclude SP.
6912         (ARM_REG_OK_FOR_INDEX_P): Always define.  Use
6913         ARM_REGNO_OK_FOR_INDEX_P.
6914         (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
6915         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
6916         arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
6917         (ldm/stm peepholes): Ditto.
6918         * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
6919         * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
6920         * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
6921         * config/arm/constraints.md: Enable "k" constraint on ARM.
6922
6923 2008-02-27  Ben Elliston  <bje@au.ibm.com>
6924
6925         * config/rs6000/rs6000.c: Annotate cache line size field in all
6926         instances of struct processor_costs.
6927
6928 2008-02-26  David Edelsohn  <edelsohn@gnu.org>
6929
6930         * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
6931         dse2, gcse, if_conversion, if_after_combine, if_after_reload,
6932         jump_bypass): New counters.
6933         * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
6934         * dce.c (gate_ud_dce): Same.
6935         (gate_fast_dce): Same.
6936         * dse.c (gate_dse1): New function.
6937         (gate_dse2): New function.
6938         (gate_dse): Merge results of new gate functions.
6939         * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
6940         (gate_handle_jump_bypass): Add dbg_cnt.
6941         (gate_handle_gcse): Add dbg_cnt.
6942         * ifcvt.c (gate_handle_if_conversion): Same.
6943         (gate_handle_if_after_combine): Same.
6944         (gate_handle_if_after_reload): Same.
6945         * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
6946
6947 2008-02-26  Edmar Wienskoski  <edmar@freescale.com>
6948
6949         * config/rs6000/rs6000.c (processor_costs): Update e300 cache
6950         line sizes.
6951         * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
6952
6953 2008-02-26  Jason Merrill  <jason@redhat.com>
6954
6955         PR c++/35315
6956         * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE 
6957         alone if it's the naming decl for the type's main variant.
6958
6959 2008-02-26  Tom Tromey  <tromey@redhat.com>
6960
6961         * system.h (USE_MAPPED_LOCATION): Poison.
6962         * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
6963         * tree-cfg.c (make_cond_expr_edges): Remove old location code.
6964         (make_goto_expr_edges): Likewise.
6965         (remove_bb): Likewise.
6966         (execute_warn_function_return): Likewise.
6967         * basic-block.h (struct edge_def) <goto_locus>: Change type to
6968         location_t.
6969         * c-common.c (fname_decl): Remove old location code.
6970         * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
6971         location code.
6972         * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
6973         variant.
6974         (ASM_INPUT_SOURCE_LOCATION): Likewise.
6975         (gen_rtx_ASM_INPUT): Likewise.
6976         (gen_rtx_ASM_INPUT_loc): Likewise.
6977         (get_rtx_asm_OPERANDS): Remove.
6978         * cfglayout.c (insn_locators_alloc): Remove old location code.
6979         (set_curr_insn_source_location): Likewise.
6980         (curr_insn_locator): Likewise.
6981         * print-tree.c (print_node): Remove old location code.
6982         * tree-mudflap.c (mf_varname_tree): Remove old location code.
6983         (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
6984         * cfgexpand.c (expand_gimple_cond_expr): Don't use
6985         location_from_locus.
6986         (construct_exit_block): Remove old location code.
6987         * emit-rtl.c (force_next_line_note): Remove old location code.
6988         * profile.c (branch_prob): Remove old location code.
6989         * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
6990         LOC_LINE): Remove old-location variants.
6991         * langhooks.c (lhd_print_error_function): Remove old location
6992         code.
6993         * configure, config.in: Rebuilt.
6994         * configure.ac (--enable-mapped-location): Remove.
6995         * c-decl.c (c_init_decl_processing): Remove old location code.
6996         (finish_function): Likewise.
6997         * recog.c (decode_asm_operands): Remove old location code.
6998         * c-pch.c (c_common_read_pch): Remove old location code.
6999         * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
7000         variants.
7001         * gimple-low.c (lower_function_body): Remove old location code.
7002         * toplev.c (unknown_location): Remove.
7003         (push_srcloc): Remove old-location variant.
7004         (process_options): Remove old location code.
7005         (lang_dependent_init): Likewise.
7006         * input.h (UNKNOWN_LOCATION): Move definition.
7007         (location_t): Undeprecate.
7008         (source_locus): Remove.
7009         (location_from_locus): Remove.
7010         (struct location_s): Remove.
7011         Remove all old-location code.
7012         (input_line, input_filename): Remove.
7013         * final.c (final_scan_insn): Remove old location code.
7014         * diagnostic.c (diagnostic_build_prefix): Remove
7015         USE_MAPPED_LOCATION test.
7016         * tree.h (gimple_stmt) <locus>: Now a location_t.
7017         (tree_exp) <locus>: Likewise.
7018         (DECL_IS_BUILTIN): Remove old-location variant.
7019         (annotate_with_file_line, annotate_with_locus): Likewise.
7020         (expr_locus, set_expr_locus): Update.
7021         * tree.c (build1_stat): Remove old location code.
7022         (last_annotated_node): Remove.
7023         (annotate_with_file_line): Remove old-location variant.
7024         (annotate_with_locus): Likewise.
7025         (expr_location): Remove old location code.
7026         (set_expr_location): Likewise.
7027         (expr_has_location): Likewise.
7028         (expr_locus): Likewise.
7029         (set_expr_locus): Likewise.
7030         (expr_filename): Don't use location_from_locus.
7031         (expr_lineno): Likewise.
7032         * rtl-error.c (location_for_asm): Remove old location code.
7033         * c-lex.c (cb_line_change): Remove old location code.
7034         (fe_file_change): Likewise.
7035         (cb_def_pragma): Likewise.
7036         (c_lex_with_flags): Likewise.
7037         * gengtype.c (do_typedef): Don't special-case location types.
7038         (define_location_structures): Remove.
7039         (main): Don't call define_location_structures.
7040         * tree-pretty-print.c (dump_implicit_edges): Remove old location
7041         code.
7042
7043 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7044
7045         PR 26264
7046         * builtins.def (BUILT_IN_STDARG_START): Remove.
7047         * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
7048         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
7049         * tree-inline.c (inline_forbidden_p_1): Likewise.
7050         
7051 2008-02-26  Richard Guenther  <rguenther@suse.de>
7052
7053         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
7054         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
7055         (lookup_decl_from_uid): Declare.
7056         (remove_decl_from_map): Likewise.
7057         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
7058         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
7059         (decl_for_uid_map): New global hashtable mapping DECL_UID
7060         to the decl tree.
7061         (init_ttree): Allocate it.
7062         (insert_decl_to_uid_decl_map): New helper function.
7063         (make_node_stat): Insert new decls into the map.
7064         (copy_node_stat): Likewise.
7065         (lookup_decl_from_uid): New function.
7066         (remove_decl_from_map): Likewise.
7067         (print_decl_for_uid_map_statistics): New helper.
7068         (dump_tree_statistics): Call it.
7069
7070         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
7071         (referenced_var_iterator): Adjust.
7072         (FOR_EACH_REFERENCED_VAR): Adjust.
7073         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
7074         (num_referenced_vars): Adjust.
7075         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
7076         (first_referenced_var): Remove.
7077         (end_referenced_vars_p): Likewise.
7078         (next_referenced_var): Likewise.
7079         (referenced_var_iterator_set): New helper function.
7080         * tree-dfa.c (referenced_var_lookup): Adjust.
7081         (referenced_var_check_and_insert): Likewise.
7082         (remove_referenced_var): Likewise.
7083         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
7084         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
7085         (verify_call_clobbering): Likewise.
7086         (verify_memory_partitions): Likewise.
7087         (init_tree_ssa): Allocate bitmap instead of hashtable for
7088         referenced_vars.
7089         (delete_tree_ssa): Adjust.
7090         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
7091         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
7092         (compute_tag_properties): Likewise.
7093         (set_initial_properties): Likewise.
7094         (find_partition_for): Likewise.
7095         (update_reference_counts): Likewise.
7096         (dump_may_aliases_for): Likewise.
7097         * tree-ssa-operands.c (add_virtual_operand): Likewise.
7098         (add_call_clobber_ops): Likewise.
7099         (add_call_read_ops): Likewise.
7100         (get_asm_expr_operands): Likewise.
7101         * tree-into-ssa.c (dump_decl_set): Likewise.
7102         (update_ssa): Likewise.
7103         * tree-sra.c (scan_function): Likewise.
7104         (decide_instantiations): Likewise.
7105         (scalarize_parms): Likewise.
7106         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
7107         (dsa_named_for): Likewise.
7108         * tree-ssa-structalias.c (update_alias_info): Likewise.
7109         (merge_smts_into): Likewise.
7110
7111 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7112
7113         PR 34351
7114         * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
7115         * c-opts.c (c_common_handle_option): Wall enables
7116         Wvolatile-register-var.
7117         * common.opt: Move Wvolatile-register-var to...
7118         * c.opt: ...here.
7119         
7120 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7121
7122         * common.opt (Wlarger-than=): New.
7123         * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
7124         -Wlarger-than=.
7125         * opts.c (common_handle_option): Handle -Wlarger-than=.
7126         * optc-gen.awk: Likewise.
7127         * opth-gen.awk: Likewise.
7128         * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
7129         * tree-optimize.c (tree_rest_of_compilation): Likewise.
7130         
7131 2008-02-26  Manuel Lopez-Ibanez <manu@gcc.gnu.org>
7132
7133         * c-common.c (match_case_to_enum_1): Add appropriate
7134         OPT_W* parameter to warning.
7135         (c_do_switch_warnings): Likewise.
7136         * c-typeck.c (warning_init): Add one more parameter following
7137         'warning' function.
7138         (push_init_level): Update call to warning_init.
7139         (pop_init_level): Likewise.
7140         (add_pending_init): Likewise.
7141         (output_init_element: Likewise.
7142
7143 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7144
7145         PR 28322
7146         * toplev.c (toplev_main): If there are warnings or error, print
7147         errors for ignored options.
7148         * opts.c (ignored_options): New static variable.
7149         (postpone_unknown_option_error): New.
7150         (print_ignored_options): New.
7151         (handle_option): Postpone errors for unknown -Wno-* options.
7152         * opts.h (print_ignored_options): Declare.
7153         
7154 2008-02-25  Richard Sandiford  <rsandifo@nildram.co.uk>
7155
7156         * config/mips/mips.md (loadgp_blockage, blockage): Change type
7157         to "ghost".
7158
7159 2008-02-25  Richard Guenther  <rguenther@suse.de>
7160
7161         Revert:
7162         2008-02-25  Richard Guenther  <rguenther@suse.de>
7163
7164         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
7165         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
7166         (lookup_decl_from_uid): Declare.
7167         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
7168         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
7169         (decl_for_uid_map): New global hashtable mapping DECL_UID
7170         to the decl tree.
7171         (init_ttree): Allocate it.
7172         (insert_decl_to_uid_decl_map): New helper function.
7173         (make_node_stat): Insert new decls into the map.
7174         (copy_node_stat): Likewise.
7175         (lookup_decl_from_uid): New function.
7176         (print_decl_for_uid_map_statistics): New helper.
7177         (dump_tree_statistics): Call it.
7178
7179         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
7180         (referenced_var_iterator): Adjust.
7181         (FOR_EACH_REFERENCED_VAR): Adjust.
7182         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
7183         (num_referenced_vars): Adjust.
7184         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
7185         (first_referenced_var): Remove.
7186         (end_referenced_vars_p): Likewise.
7187         (next_referenced_var): Likewise.
7188         (referenced_var_iterator_set): New helper function.
7189         * tree-dfa.c (referenced_var_lookup): Adjust.
7190         (referenced_var_check_and_insert): Likewise.
7191         (remove_referenced_var): Likewise.
7192         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
7193         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
7194         (verify_call_clobbering): Likewise.
7195         (verify_memory_partitions): Likewise.
7196         (init_tree_ssa): Allocate bitmap instead of hashtable for
7197         referenced_vars.
7198         (delete_tree_ssa): Adjust.
7199         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
7200         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
7201         (compute_tag_properties): Likewise.
7202         (set_initial_properties): Likewise.
7203         (find_partition_for): Likewise.
7204         (update_reference_counts): Likewise.
7205         (dump_may_aliases_for): Likewise.
7206         * tree-ssa-operands.c (add_virtual_operand): Likewise.
7207         (add_call_clobber_ops): Likewise.
7208         (add_call_read_ops): Likewise.
7209         (get_asm_expr_operands): Likewise.
7210         * tree-into-ssa.c (dump_decl_set): Likewise.
7211         (update_ssa): Likewise.
7212         * tree-sra.c (scan_function): Likewise.
7213         (decide_instantiations): Likewise.
7214         (scalarize_parms): Likewise.
7215         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
7216         (dsa_named_for): Likewise.
7217         * tree-ssa-structalias.c (update_alias_info): Likewise.
7218         (merge_smts_into): Likewise.
7219
7220 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
7221
7222         PR fortran/29549
7223         * doc/invoke.texi (-fcx-limited-range): Document new option.
7224         * toplev.c (process_options): Handle -fcx-fortran-rules.
7225         * common.opt: Add documentation for -fcx-fortran-rules.
7226
7227 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
7228
7229         PR c/35162
7230         * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
7231         actual behaviour and C99.
7232         
7233 2008-02-26  Ben Elliston  <bje@au.ibm.com>
7234
7235         * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
7236         (ASM_CPU_POWER6_SPEC): Likewise.
7237         (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
7238         Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
7239         (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
7240
7241 2008-02-25  Richard Guenther  <rguenther@suse.de>
7242
7243         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
7244         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
7245         (lookup_decl_from_uid): Declare.
7246         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
7247         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
7248         (decl_for_uid_map): New global hashtable mapping DECL_UID
7249         to the decl tree.
7250         (init_ttree): Allocate it.
7251         (insert_decl_to_uid_decl_map): New helper function.
7252         (make_node_stat): Insert new decls into the map.
7253         (copy_node_stat): Likewise.
7254         (lookup_decl_from_uid): New function.
7255         (print_decl_for_uid_map_statistics): New helper.
7256         (dump_tree_statistics): Call it.
7257
7258         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
7259         (referenced_var_iterator): Adjust.
7260         (FOR_EACH_REFERENCED_VAR): Adjust.
7261         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
7262         (num_referenced_vars): Adjust.
7263         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
7264         (first_referenced_var): Remove.
7265         (end_referenced_vars_p): Likewise.
7266         (next_referenced_var): Likewise.
7267         (referenced_var_iterator_set): New helper function.
7268         * tree-dfa.c (referenced_var_lookup): Adjust.
7269         (referenced_var_check_and_insert): Likewise.
7270         (remove_referenced_var): Likewise.
7271         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
7272         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
7273         (verify_call_clobbering): Likewise.
7274         (verify_memory_partitions): Likewise.
7275         (init_tree_ssa): Allocate bitmap instead of hashtable for
7276         referenced_vars.
7277         (delete_tree_ssa): Adjust.
7278         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
7279         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
7280         (compute_tag_properties): Likewise.
7281         (set_initial_properties): Likewise.
7282         (find_partition_for): Likewise.
7283         (update_reference_counts): Likewise.
7284         (dump_may_aliases_for): Likewise.
7285         * tree-ssa-operands.c (add_virtual_operand): Likewise.
7286         (add_call_clobber_ops): Likewise.
7287         (add_call_read_ops): Likewise.
7288         (get_asm_expr_operands): Likewise.
7289         * tree-into-ssa.c (dump_decl_set): Likewise.
7290         (update_ssa): Likewise.
7291         * tree-sra.c (scan_function): Likewise.
7292         (decide_instantiations): Likewise.
7293         (scalarize_parms): Likewise.
7294         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
7295         (dsa_named_for): Likewise.
7296         * tree-ssa-structalias.c (update_alias_info): Likewise.
7297         (merge_smts_into): Likewise.
7298
7299 2008-02-25  Andreas Krebbel  <krebbel1@de.ibm.com>
7300
7301         PR target/35258
7302         * cse.c (cse_insn): Avoid creation of overlapping MEMs.
7303         * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
7304         * alias.h (nonoverlapping_memrefs_p): Likewise.
7305
7306 2008-02-25  Jan Beulich  <jbeulich@novell.com>
7307
7308         * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
7309         * config/i386/netware-libgcc.exp: Add __bswap?i2,
7310         __emultls_get_address, __emultls_register_common,
7311         __floatundi?f, and _Unwind_GetIPInfo.
7312         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
7313         Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
7314         (gen_regparm_prefix): Likewise.
7315         (i386_nlm_encode_section_info): Sync with
7316         config/i386/winnt.c:i386_pe_encode_section_info().
7317         (i386_nlm_maybe_mangle_decl_assembler_name): New.
7318         i386_nlm_mangle_decl_assembler_name): New.
7319         (netware_override_options): New.
7320         * config/i386/netware.h (netware_override_options): Declare.
7321         (OVERRIDE_OPTIONS): Re-define to netware_override_options.
7322         (i386_nlm_mangle_decl_assembler_name): Declare.
7323         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
7324
7325 2008-02-25  Ben Elliston  <bje@au.ibm.com>
7326
7327         PR other/32948
7328         * c-decl.c (grokdeclarator): Remove unused local variables
7329         `typedef_type' and `type_as_written'.
7330         * bb-reorder.c
7331         (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
7332         unused local variable `has_hot_blocks'.
7333         (fix_crossing_conditional_branches): Remove unused local variable
7334         `prev_bb'.
7335         
7336 2008-02-25  Uros Bizjak  <ubizjak@gmail.com>
7337
7338         PR middle-end/19984
7339         * builtins.def (BUILT_IN_NAN): Define as c99 builtin
7340         using DEF_C99_BUILTIN.
7341         (BUILT_IN_NANF): Ditto.
7342         (BUILT_IN_NANL): Ditto.
7343
7344 2008-02-25  Ayal Zaks  <zaks@il.ibm.com>
7345             Revital Eres  <eres@il.ibm.com>
7346
7347         * modulo-sched.c (calculate_must_precede_follow): Address TODO
7348         regarding the order of two dependent insns in the same row.
7349
7350 2008-02-25  Eric Botcazou  <ebotcazou@adacore.com>
7351
7352         * stor-layout.c (layout_decl): Do not bump the alignment of a
7353         bit-field to more than byte alignment if it is packed.
7354
7355 2008-02-24  David Edelsohn  <edelsohn@gnu.org>
7356
7357         * config/rs6000/rs6000.c (processor_costs): Add cache costs for
7358         e300c2 and e300c3.
7359
7360 2008-02-24  Diego Novillo  <dnovillo@google.com>
7361
7362         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
7363
7364         PR 33738
7365         * tree-vrp.c (vrp_evaluate_conditional): With
7366         -Wtype-limits, emit a warning when comparing against a
7367         constant outside the natural range of OP0's type.
7368         * c.opt (Wtype-limits): Move ...
7369         * common.opt (Wtype-limits): ... here.
7370
7371 2008-02-24  Edmar Wienskoski  <edmar@freescale.com>
7372
7373         * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
7374         * config/rs6000/e300c2c3.md: New file.
7375         * config/rs6000/rs6000.c (processor_costs): Add new costs for
7376         e300c2 and e300c3.
7377         (rs6000_override_options): Add e300c2 and e300c3 cases to
7378         processor_target_table. Do not allow usage of Altivec or Spe
7379         with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
7380         (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
7381         * config/rs6000/rs6000.h (processor_type): Add
7382         PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
7383         (ASM_CPU_SPEC): Add e300c2 and e300c3.
7384         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
7385         and ppce300c3. Include e300c2c3.md.
7386
7387 2008-02-23  David Edelsohn  <edelsohn@gnu.org>
7388
7389         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
7390         instead of TARGET_STRICT_ALIGN.
7391
7392 2008-02-23  Joseph Myers  <joseph@codesourcery.com>
7393
7394         * explow.c (memory_address): Assert that the generated address is
7395         valid.
7396
7397 2008-02-23  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
7398
7399         PR target/25477
7400         * config/darwin-protos.h: Add darwin_patch_builtins prototype.
7401         * config/darwin-ppc-ldouble-patch.def: New file.
7402         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
7403         * config/rs6000/rs6000.c (rs6000_init_builtins): Call
7404         SUBTARGET_INIT_BUILTINS if defined.
7405         * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
7406         New functions.
7407
7408 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
7409
7410         PR rtl-opt/33512
7411         * simplify-rtx.c (simplify_binary_operation_1): Add simplification
7412         of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
7413
7414 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
7415
7416         PR pch/35027
7417         * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
7418         file" warning condtional on -Winvalid-PCH.
7419
7420 2008-02-23  Daniel Jacobowitz  <dan@codesourcery.com>
7421
7422         * expmed.c (extract_bit_field): Always use adjust_address for MEM.
7423
7424 2008-02-23  Uros Bizjak  <ubizjak@gmail.com>
7425
7426         PR target/22076
7427         PR target/34256 
7428         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
7429         prevent reload from using MMX registers.
7430         (*mov<mode>_internal): Ditto.
7431         (*movv2sf_internal_rex64): Ditto.
7432         (*movv2sf_internal): Ditto.
7433
7434 2008-02-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7435
7436         PR documentation/31569
7437         * doc/install.texi2html: Use makeinfo --no-number-sections.
7438
7439 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
7440
7441         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
7442         ensure that we can address an entire entity > 8 bytes.  Don't
7443         generate reg+reg addressing for such data.
7444
7445 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
7446
7447         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
7448         strings when optimizing for size, unless the target cares about
7449         alignment.
7450
7451 2008-02-22  Tom Tromey  <tromey@redhat.com>
7452
7453         * regclass.c (current_pass): Remove declaration.
7454
7455 2008-02-22  Anatoly Sokolov <aesok@post.ru>
7456
7457         * config/avr/libgcc.S (__RAMPZ__): Define.
7458         (__do_copy_data): Add for devices with 128KB code memory.
7459
7460 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
7461
7462         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
7463         Use spe_abi.
7464         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
7465
7466 2008-02-22  Hans-Peter Nilsson  <hp@axis.com>
7467
7468         * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
7469         GENNONACR_REGS.
7470
7471 2008-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7472
7473         PR c/19999
7474         * c-typeck.c (build_binary_op): Warn about floating point
7475         comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
7476
7477 2008-02-21  Janis Johnson  <janis187@us.ibm.com>
7478
7479         PR target/34526
7480         * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
7481         (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
7482         add vrsave.
7483         (rs6000_override_options): Set altivec_abi as default, not override,
7484         for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
7485         TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
7486         is used; use new member spe_abi.
7487         (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
7488         spe_abi and altivec_abi.
7489
7490 2008-02-22  Tomas Bily  <tbily@suse.cz>
7491
7492         * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
7493
7494 2008-02-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7495
7496         PR bootstrap/35273
7497         * config.build (build_file_translate): Set to `CMD //c' only if
7498         it works.
7499         * Makefile.in (build_file_translate): Improve comment.
7500
7501 2008-02-21  Jan Hubicka  <jh@suse.cz>
7502
7503         * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
7504         PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
7505         PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
7506
7507 2008-02-21  Michael Matz  <matz@suse.de>
7508
7509         PR target/35264
7510         * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
7511
7512 2008-02-21  Uros Bizjak  <ubizjak@gmail.com>
7513
7514         * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
7515         movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
7516         as insn constraint.
7517         * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
7518         from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
7519         SSE_VEC_FLOAT_MODE_P as insn constraint.
7520         (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
7521         (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
7522         sse4a_movntdf using MODEF mode iterator.
7523         (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
7524         sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
7525         (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
7526         (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
7527         (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
7528         (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
7529         (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
7530
7531 2008-02-21  Richard Guenther  <rguenther@suse.de>
7532
7533         * tree.def (PAREN_EXPR): New tree code.
7534         * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
7535         and PAREN_EXPR.
7536         * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
7537         * expr.c (expand_expr_real_1): Likewise.
7538         * tree-inline.c (estimate_num_insns_1): Likewise.
7539         * tree-complex.c (expand_complex_move): Likewise.
7540         * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
7541         as plain x.
7542
7543 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
7544
7545         PR target/35225
7546         * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
7547
7548 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
7549
7550         PR target/35190
7551         * config/sh/sh.md (jump_compact): Disable for crossing jumps.
7552
7553         * config/sh/sh.c (find_barrier): Don't go past
7554         NOTE_INSN_SWITCH_TEXT_SECTIONS note.
7555
7556 2008-02-20  DJ Delorie  <dj@redhat.com>
7557
7558         * config/h8300/h8300.md (insv): Force source operand to be a register.
7559
7560         * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
7561         as a jump, not as a plain insn.
7562         
7563 2008-02-20  Seongbae Park <seongbae.park@gmail.com>
7564
7565         * doc/invoke.texi (Warning Options): Add new option
7566         -Wframe-larger-than=.
7567         (-Wframe-larger-than): Document.
7568
7569         * flags.h (warn_frame_larger_than, frame_larger_than_size):
7570         Add declarations for new option variables.
7571
7572         * final.c (final_start_function): Check the frame size
7573         before emission and issue a Wframe-larger-than warning.
7574
7575         * opts.c (warn_frame_larger_than, frame_larger_than_size):
7576         Add definitions for new option variables.
7577         (common_handle_option): Handle new option OPT_Wframe_larger_than_.
7578
7579         * common.opt (Wframe-larger-than=): New option.
7580
7581 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
7582
7583         * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
7584         (<sse>_div<mode>3): Ditto.
7585         (<sse>_vmdiv<mode>3): Ditto.
7586         (<sse>_vmsqrt<mode>2): Ditto.
7587         (*smax<mode>3): Ditto.
7588         (sse5_frcz<mode>2): Ditto.
7589         (sse5_vmfrcz<mode>2): Ditto.  Use TARGET_SSE5 instead of TARGET_ROUND
7590         as insn constraint.
7591
7592 2008-02-20  Richard Guenther  <rguenther@suse.de>
7593
7594         PR middle-end/35265
7595         * builtins.c (validate_arg): If we want an INTEGER_TYPE,
7596         be happy with INTEGRAL_TYPE_P.
7597
7598 2008-02-20  Richard Guenther  <rguenther@suse.de>
7599
7600         * fold-const.c (split_tree): Associate floatig-point expressions
7601         if flag_associative_math is set.
7602
7603 2008-02-20  Richard Guenther  <rguenther@suse.de>
7604
7605         * tree.h (fold_real_zero_addition_p): Declare.
7606         * fold-const.c (fold_real_zero_addition_p): Export.
7607         * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
7608         floating-point operations with zero and one.
7609
7610 2008-02-20  Paolo Bonzini  <bonzini@gnu.org>
7611
7612         * doc/install.texi: Correct references to CFLAGS, replacing them
7613         with BOOT_CFLAGS.  Document flags used during bootstrap for
7614         target libraries.
7615                                 
7616 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
7617
7618         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
7619         * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
7620         and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
7621         insn constraint.
7622         (smin<mode>3): Ditto from similar patterns.
7623         (smax<mode>3): Ditto.
7624         (*ieee_smin<mode>3): Ditto.
7625         (*ieee_smax<mode>3): Ditto.
7626         * config/i386/sse.md (sse): New mode attribute.
7627         (mov<mode>): Macroize expander from movv4sf and movv2df using
7628         SSEMODEF2P mode iterator.
7629         (<sse>_movnt<mode>): Ditto from similar patterns. Use
7630         SSE_VEC_FLOAT_MODE_P as insn constraint.
7631         (storent<mode>): Ditto.
7632         (storent<mode>): Macroize expander from storentsf and storentdf using
7633         MODEF mode iterator.
7634         (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
7635         mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
7636         (abs<mode>2): Ditto from similar patterns.
7637         (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
7638         (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
7639         (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
7640         (<sse>_vmsqrt<mode>2): Ditto.
7641         (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
7642         (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
7643         (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
7644         (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
7645         (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
7646         sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
7647         mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
7648         insn constraint.
7649         (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
7650         iterator and SSE_FLOAT_MODE_P as insn constraint.
7651         (<sse>_ucomi): Ditto from similar patterns.
7652         (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
7653         sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
7654         SSE_VEC_FLOAT_MODE_P as insn constraint.
7655         (vcond<mode>): Ditto from similar patterns.
7656         (and<mode>3, *and<mode>3): Ditto.
7657         (<sse>_nand<mode>3): Ditto.
7658         (ior<mode>3, *ior<mode>3): Ditto.
7659         (xor<mode>3, *xor<mode>3): Ditto.
7660         (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
7661         iterator and SSE_FLOAT_MODE_P as insn constraint.
7662         (*nand<mode>3): Ditto from similar patterns.
7663         (*ior<mode>3): Ditto.
7664         (*xor<mode>3): Ditto.
7665
7666 2008-02-20  Ira Rosen  <irar@il.ibm.com>
7667
7668         * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
7669         vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
7670         vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
7671
7672 2008-02-19  Jan Hubicka  <jh@suse.cz>
7673
7674         * predict.c (tree_bb_level_predictions): Remove variable next
7675         mistakely introduced by previous commit.
7676
7677 2008-02-19  Jan Hubicka  <jh@suse.cz>
7678
7679         * predict.c (predict_paths_leading_to): Rewrite.
7680         (predict_paths_for_bb): New.
7681         (tree_bb_level_predictions): Update call of predict_paths_leading_to.
7682
7683 2008-02-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7684
7685         PR bootstrap/35218
7686         * Makefile.in (build_file_translate): New.
7687         (gcc-vers.texi): Use it for translating $(abs_srcdir).
7688         * config.build (build_file_translate): Set to `CMD //c' on MinGW.
7689         * configure.ac (build_file_translate): Substitute it.
7690         * configure: Regenerate.
7691
7692 2008-02-19  Jan Hubicka  <jh@suse.cz>
7693
7694         PR rtl-optimization/34408
7695         * see.c (see_def_extension_not_merged): Copy subreg so we don't have
7696         invalid sharing.
7697
7698 2008-02-19  Jan Hubicka  <jh@suse.cz>
7699
7700         PR middle-end/28779
7701         * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
7702         call_expr.
7703
7704 2008-02-19  H.J. Lu  <hongjiu.lu@intel.com>
7705
7706         PR Ada/35186
7707         * config/i386/i386-modes.def: Revert the last DI alignment
7708         change until Ada people can look into it.
7709
7710 2008-02-19  Nick Clifton  <nickc@redhat.com>
7711
7712         * opts.c (print_specific_help): Fix typo in --help text.
7713
7714 2008-02-19  Jakub Jelinek  <jakub@redhat.com>
7715
7716         PR target/35239
7717         * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
7718         32-bit inline asm without asm alternatives for host GCC < 3.0.
7719
7720 2008-02-19  Richard Guenther  <rguenther@suse.de>
7721
7722         PR tree-optimization/34989
7723         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
7724         Allow propagation to INDIRECT_REF if we can simplify only.
7725
7726 2008-02-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7727
7728         * c-common.c (warn_for_collisions_1): Use appropriate option when
7729         warning.
7730
7731 2008-02-19  Nick Clifton  <nickc@redhat.com>
7732
7733         PR other/31349
7734         * opts.c (undocumented_msg): Leave blank unless checking is enabled.
7735         (handle_options): Fix indentation.
7736         (print_filtered_help): If no language-specific options were
7737         displayed tell the user how to list all the options supported by
7738         the language's front-end.
7739         (print_specific_help): Fix indentation and remove duplicate line.
7740         (common_handle_option): Handle the -v option.
7741         For --help enable the display of undocumented options if the -v
7742         switch has been included on the command line.
7743         For --help= check for overlaps in the arguments between the option
7744         classes and the language names and issue a warning when they
7745         cannot be disambiguated.
7746         * c.opt (v): Pass on to the common option handler.
7747
7748 2008-02-19  Revital Eres  <eres@il.ibm.com> 
7749
7750         * modulo-sched.c (sms_schedule): Change dump message when
7751         create_ddg function fails.
7752         (try_scheduling_node_in_cycle): Rename row to cycle.
7753         (print_partial_schedule): Rename CYCLE to ROW.
7754
7755 2008-02-19  Christian Bruel  <christian.bruel@st.com>
7756             Zdenek Dvorak  <ook@ucw.cz>
7757
7758         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
7759
7760 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
7761
7762         PR target/33555
7763         * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
7764         (*x86_movdicc_0_m1_se): Ditto.
7765
7766 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
7767
7768         * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
7769         (CMPtype): Define as __gcc_CMPtype.
7770         * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
7771         (CMPtype): Define as __gcc_CMPtype.
7772
7773 2008-02-19  Hans-Peter Nilsson  <hp@axis.com>
7774
7775         Support valgrind 3.3 for --enable-checking=valgrind.
7776         * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
7777         here.
7778         [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
7779         [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
7780         [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
7781         * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
7782         Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
7783         VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
7784         VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
7785         respectively.
7786         * ggc-zone.c: Similar.
7787         * ggc-page.c: Similar.
7788
7789 2008-02-19  Paul Brook  <paul@codesourcery.com>
7790
7791         PR target/35071
7792         * config/arm/ieee754-df.S: Fix do_it typo.
7793         * config/arm/ieee754-sf.S: Fix do_it typo.
7794
7795 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
7796
7797         PR target/35189
7798         * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
7799         (OPTION_MASK_ISA_3DNOW_SET): Likewise.
7800         (OPTION_MASK_ISA_SSE_SET): Likewise.
7801         (OPTION_MASK_ISA_SSE2_SET): Likewise.
7802         (OPTION_MASK_ISA_SSE3_SET): Likewise.
7803         (OPTION_MASK_ISA_SSSE3_SET): Likewise.
7804         (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
7805         (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
7806         (OPTION_MASK_ISA_SSE4_SET): Likewise.
7807         (OPTION_MASK_ISA_SSE4A_SET): Likewise.
7808         (OPTION_MASK_ISA_SSE5_SET): Likewise.
7809         (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
7810         (OPTION_MASK_ISA_MMX_UNSET): Updated.
7811         (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
7812         (OPTION_MASK_ISA_SSE_UNSET): Likewise.
7813         (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
7814         (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
7815         (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
7816         (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
7817         (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
7818         (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
7819         (OPTION_MASK_ISA_SSE4): Removed.
7820         (ix86_handle_option): Turn on bits in ix86_isa_flags and
7821         ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
7822         (override_options): Don't turn on implied SSE/MMX bits in
7823         ix86_isa_flags.
7824
7825 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
7826
7827         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
7828         32bit host.
7829
7830 2008-02-18  Joey Ye  <joey.ye@intel.com>
7831
7832         PR middle-end/34921
7833         * tree-nested.c (insert_field_into_struct): Set type alignment
7834         to field alignment if the former is less than the latter.
7835
7836 2008-02-18  Jakub Jelinek  <jakub@redhat.com>
7837
7838         * BASE-VER: Set to 4.4.0.
7839
7840 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7841
7842         * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
7843         * doc/cfg.texi: Likewise.
7844         * doc/extend.texi: Likewise.
7845         * doc/gty.texi: Likewise.
7846         * doc/invoke.texi: Likewise.
7847         * doc/loop.texi: Likewise.
7848         * doc/md.texi: Likewise.
7849         * doc/passes.texi: Likewise.
7850         * doc/rtl.texi: Likewise.
7851         * doc/sourcebuild.texi: Likewise.
7852         * doc/tm.texi: Likewise.
7853         * doc/tree-ssa.texi: Likewise.
7854
7855 2008-02-17  Richard Guenther  <rguenther@suse.de>
7856
7857         PR middle-end/35227
7858         * tree-complex.c (init_parameter_lattice_values): Handle parameters
7859         without default definition.
7860
7861 2008-02-17  Richard Guenther  <rguenther@suse.de>
7862
7863         PR tree-optimization/35231
7864         * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
7865         if A | B != 1.
7866
7867 2008-02-17  Uros Bizjak  <ubizjak@gmail.com>
7868
7869         Revert:
7870         2008-02-15  Uros Bizjak  <ubizjak@gmail.com>    
7871         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
7872         libgcc_cmp_return mode.
7873
7874 2008-02-16  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7875
7876         PR c/28368
7877         * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
7878
7879 2008-02-16  Ralf Corsepius  <ralf.corsepius@rtems.org>
7880
7881         * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
7882         multilibs.
7883
7884 2008-02-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7885
7886         * doc/c-tree.texi: Use `@.' where appropriate.
7887         * doc/extend.texi: Likewise.
7888         * doc/install.texi: Likewise.
7889         * doc/invoke.texi: Likewise.
7890         * doc/loop.texi: Likewise.
7891         * doc/makefile.texi: Likewise.
7892         * doc/md.texi: Likewise.
7893         * doc/passes.texi: Likewise.
7894         * doc/standards.texi: Likewise.
7895         * doc/tm.texi: Likewise.
7896
7897 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
7898
7899         PR middle-end/35196
7900         * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
7901         in entry_bb.
7902         (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
7903         rather than in entry_bb.
7904
7905 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
7906
7907         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
7908         libgcc_cmp_return mode.
7909
7910 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
7911
7912         PR middle-end/35130
7913         * tree-nested.c (convert_call_expr): Put FRAME.* vars into
7914         OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
7915
7916 2008-02-15  Richard Guenther  <rguenther@suse.de>
7917             Zdenek Dvorak  <ook@ucw.cz>
7918
7919         PR tree-optimization/35164
7920         * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
7921         * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
7922         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
7923         Only propagate addresses which do not have abnormal SSA_NAMEs
7924         in their operands.
7925
7926 2008-02-15  Joseph Myers  <joseph@codesourcery.com>
7927
7928         PR target/35088
7929         * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
7930
7931 2008-02-15  Jan Hubicka  <jh@suse.cz>
7932
7933         PR middle-end/35149
7934         * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
7935
7936 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
7937
7938         PR middle-end/34621
7939         * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
7940         when calculating alignment_pad.
7941
7942 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
7943
7944         * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
7945         (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
7946         * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
7947         and STACK_BOUNDARY define.
7948
7949 2008-02-14  Danny Smith  <dannysmith@users.sourceforge.net>
7950
7951         PR preprocessor/35061
7952         * c-pragma.c (handle_pragma_pop_macro): Check that
7953         pushed_macro_table has been allocated.
7954
7955 2008-02-14  Eric Botcazou  <ebotcazou@adacore.com>
7956
7957         PR middle-end/35136
7958         * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
7959         (force_gimple_operand): Likewise.
7960         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
7961         for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
7962         Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
7963         (find_interesting_uses_address): Check addressability and alignment
7964         of the base expression only after substituting bases of IVs into it.
7965
7966 2008-02-14  Michael Matz  <matz@suse.de>
7967
7968         PR target/34930
7969         * function.c (instantiate_virtual_regs_in_insn): Reload address
7970         before falling back to reloading the whole operand.
7971
7972 2008-02-14  Andreas Krebbel  <krebbel1@de.ibm.com>
7973
7974         * config/s390/s390.c (s390_mainpool_start): Emit the pool
7975         before the first section switch note.
7976
7977 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7978
7979         * doc/bugreport.texi: Update copyright years.
7980         * doc/c-tree.texi: Likewise.
7981         * doc/cfg.texi: Likewise.
7982         * doc/cpp.texi: Likewise.
7983         * doc/cppinternals.texi: Likewise.
7984         * doc/fragments.texi: Likewise.
7985         * doc/frontends.texi: Likewise.
7986         * doc/gcc.texi: Likewise.
7987         * doc/gty.texi: Likewise.
7988         * doc/hostconfig.texi: Likewise.
7989         * doc/implement-c.texi: Likewise.
7990         * doc/libgcc.texi: Likewise.
7991         * doc/loop.texi: Likewise.
7992         * doc/makefile.texi: Likewise.
7993         * doc/options.texi: Likewise.
7994         * doc/passes.texi: Likewise.
7995         * doc/rtl.texi: Likewise.
7996         * doc/sourcebuild.texi: Likewise.
7997         * doc/standards.texi: Likewise.
7998         * doc/tree-ssa.texi: Likewise.
7999         * doc/trouble.texi: Likewise.
8000
8001         * doc/extend.texi: Use @: or add comma where appropriate.
8002         * doc/invoke.texi: Likewise.
8003         * doc/tm.texi: Likewise.
8004
8005 2008-02-14  Alan Modra  <amodra@bigpond.net.au>
8006
8007         PR target/34393
8008         * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
8009         to a reg.
8010
8011 2008-02-14  Jesper Nilsson  <jesper.nilsson@axis.com>
8012
8013         * doc/md.texi (clz, ctz): Add reference.
8014         * doc/rtl.texi (clz, ctz): Likewise.
8015
8016 2008-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8017
8018         PR other/35148
8019         * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
8020         srcdir.
8021
8022 2008-02-13  Andreas Krebbel  <krebbel1@de.ibm.com>
8023
8024         * config/s390/s390.c (struct constant_pool): New field
8025         emit_pool_after added.
8026         (s390_mainpool_start): Set the emit_pool_after flag according
8027         to the section switch notes.
8028         (s390_mainpool_finish): Consider emit_pool_after when emitting
8029         the literal pool at the end of the function.
8030         (s390_chunkify_start): Force literal pool splits at section
8031         switch notes.
8032
8033 2008-02-13  Michael Matz  <matz@suse.de>
8034
8035         PR debug/35065
8036         * var-tracking.c (clobber_variable_part): Correctly traverse the
8037         list.
8038
8039 2008-02-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
8040
8041         PR 29673
8042         * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
8043         Add -fdump-ipa-inline.
8044         * tree-dump.c (dump_files): Remove tree-inlined dump.
8045         * tree-pass.h (tree_dump_index): Remove TDI_inlined.
8046         
8047 2008-02-12  Richard Guenther  <rguenther@suse.de>
8048
8049         PR tree-optimization/35171
8050         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
8051         default defs.
8052
8053 2008-02-12  Richard Guenther  <rguenther@suse.de>
8054
8055         PR middle-end/35163
8056         * fold-const.c (fold_widened_comparison): Use get_unwidened in
8057         value-preserving mode.  Disallow final truncation.
8058
8059 2008-02-12  Eric Botcazou  <ebotcazou@adacore.com>
8060
8061         PR middle-end/35136
8062         * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
8063         code from here to...
8064         (force_gimple_operand): ...here.
8065
8066 2008-02-12  Jakub Jelinek  <jakub@redhat.com>
8067
8068         PR c++/35144
8069         * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
8070         non-compatible pointers.
8071         (generate_element_copy): If SRC and DST are RECORD_TYPEs with
8072         different FIELD_DECLs, try harder by comparing field offsets, sizes
8073         and types.
8074
8075         PR inline-asm/35160
8076         * function.c (match_asm_constraints_1): Don't replace the same input
8077         multiple times.
8078
8079 2008-02-12  Anatoly Sokolov <aesok@post.ru>
8080
8081         * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
8082         * config/avr/avr.c (expand_prologue): Save RAMPZ register.
8083         (expand_epilogue): Restore RAMPZ register.
8084         * config/avr/avr.md (RAMPZ_ADDR): New constant.
8085
8086 2008-02-11  Kai Tietz  <kai.tietz@onevision.com>
8087
8088         * config/i386/cygwin.asm: (__alloca): Correct calling
8089         convention and alignment.
8090         (__chkstk): Force 8 byte stack alignment.
8091
8092 2008-02-11  Uros Bizjak  <ubizjak@gmail.com>
8093             Richard Guenther  <rguenther@suse.de>
8094
8095         PR tree-optimization/33992
8096         * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
8097         the zero we compare against.
8098
8099 2008-02-10  Danny Smith  <dannysmith@users.sourceforge.net>
8100
8101         PR libfortran/35063
8102         * gthr-win32.h (__gthread_mutex_destroy_function): New function
8103         to CloseHandle after unlocking to prevent accumulation of handle
8104         count.
8105
8106 2008-02-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8107
8108         PR middle_end/34150
8109         * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
8110         pic_label_operand source.  Similarly, add a REG_LABEL_OPERAND note
8111         and update LABEL_NUSES during and after reload.
8112
8113 2008-02-08  Steven Bosscher  <stevenb.gcc@gmail.com>
8114
8115         PR middle-end/34627
8116         * combine.c (simplify_if_then_else): Make sure the comparison is
8117         against const0_rtx when simplifying to (abs x) or (neg (abs X)).
8118
8119 2008-02-08  Richard Sandiford  <rsandifo@nildram.co.uk>
8120
8121         PR bootstrap/35051
8122         * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
8123         (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
8124         * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
8125         (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
8126         * tree.h (get_type_static_bounds): Likewise.
8127
8128 2008-02-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8129
8130         * doc/invoke.texi (Option Summary, C++ Dialect Options)
8131         (Objective-C and Objective-C++ Dialect Options, Warning Options):
8132         Make -Wfoo language annotations match what the compiler outputs.
8133
8134 2008-02-08  Sa Liu  <saliu@de.ibm.com>
8135
8136         * config/spu/spu-builtins.def: Fixed wrong parameter type in spu 
8137         intrinsics spu_convts, spu_convtu, spu_convtf.
8138
8139 2008-02-08  Hans-Peter Nilsson  <hp@axis.com>
8140
8141         * doc/extend.texi (Function Attributes) <noinline>: Mention
8142         asm ("") as method to keep calls.
8143
8144 2008-02-07  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
8145
8146         PR other/32754
8147         * doc/options.texi (Options): Replace references to opts.sh with
8148         optc-gen.awk.
8149         * opts-common.c: Likewise.
8150         * optc-gen.awk: Likewise.
8151         
8152 2008-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
8153
8154         * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
8155
8156 2008-02-07  Richard Henderson  <rth@redhat.com>
8157
8158         PR rtl-opt/33410
8159         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
8160         EXPR_LIST for the REG_EQUAL instead of a comparison with a 
8161         funny mode.
8162
8163 2008-02-07  Uros Bizjak  <ubizjak@gmail.com>
8164
8165         PR tree-optimization/35085
8166         * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
8167         for operand entry oe2 in addition to operand entry oe3 in order to
8168         expose more opportunities for vectorizer sum reduction.
8169
8170 2008-02-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8171
8172         PR other/35107
8173         * Makefile.in (LIBS): Remove $(GMPLIBS).
8174         (cc1-dummy, cc1): Add $(GMPLIBS).
8175
8176 2008-02-06  Jan Hubicka  <jh@suse.cz>
8177
8178         PR target/23322
8179         * i386.md (moddf_integer): Do not produce partial memory stalls for
8180         targets where it hurts.
8181
8182 2008-02-06  Uros Bizjak  <ubizjak@gmail.com>
8183
8184         PR target/35083
8185         * optabs.c (expand_float): Do not check for decimal modes when
8186         expanding unsigned integer through signed conversion.
8187
8188 2008-02-06  Nick Clifton  <nickc@redhat.com>
8189
8190         * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
8191         inside the clobber with a match_operand and duplicated operand
8192         number in the constraint.
8193         (ineqbranchsi): Delete redundant comment.
8194
8195 2008-02-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
8196
8197         * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add 
8198         builtin_define ("__USE_INIT_FINI__").
8199         * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
8200         -msx multilibs.
8201         * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
8202
8203 2008-02-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8204
8205         PR documentation/30330
8206         * doc/invoke.texi (C++ Dialect Options)
8207         (Objective-C and Objective-C++ Dialect Options, Warning Options):
8208         For each warning option -Wfoo that allows -Wno-foo, ensure both
8209         -Wfoo and -Wno-foo are listed in the option index.  Fix index
8210         entry of -Wswitch-default, index -Wnormalized= including the
8211         `=', and -Wlarger-than-@var{len} including @var{len}.
8212
8213 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
8214
8215         * config/i386/i386.md (floatunssisf2): Use
8216         ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
8217         (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
8218         Macroize expander using MODEF mode iterator.
8219
8220 2008-02-05  Diego Novillo  <dnovillo@google.com>
8221
8222         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
8223
8224         PR 33738
8225         * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
8226
8227 2008-02-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8228
8229         PR other/35070
8230         * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
8231
8232 2008-02-05  H.J. Lu  <hongjiu.lu@intel.com>
8233
8234         PR target/35084
8235         * config/i386/i386.c (ix86_function_sseregparm): Add an arg
8236         to indicate if a message should be generated.
8237         (init_cumulative_args): Updated.
8238         (function_value_32): Likewise.
8239
8240 2008-02-05  Joseph Myers  <joseph@codesourcery.com>
8241
8242         * doc/include/texinfo.tex: Update to version 2008-02-04.16.
8243
8244 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
8245
8246         PR target/35083
8247         * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
8248         Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
8249
8250 2008-02-04  Diego Novillo  <dnovillo@google.com>
8251
8252         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
8253
8254         PR 33738
8255         * tree-vrp.c (vrp_evaluate_conditional): With
8256         -Wtype-limits, emit a warning when comparing against a
8257         constant outside the natural range of OP0's type.
8258
8259 2008-02-04  Richard Guenther  <rguenther@suse.de>
8260
8261         PR middle-end/33631
8262         * expr.c (count_type_elements): Give for unions instead of
8263         guessing.
8264
8265 2008-02-04  Richard Guenther  <rguenther@suse.de>
8266
8267         PR middle-end/35043
8268         * gimplify.c (gimplify_init_ctor_eval): Convert array indices
8269         to TYPE_DOMAINs base type instead of using bitsizetype here.
8270
8271 2008-02-03  Jason Merrill  <jason@redhat.com>
8272
8273         * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
8274
8275 2008-02-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8276
8277         PR other/29972
8278         * doc/invoke.texi (C++ Dialect Options, Optimize Options)
8279         (HPPA Options, i386 and x86-64 Options, IA-64 Options)
8280         (RS/6000 and PowerPC Options): Fix typos and markup.
8281         * doc/passes.texi (Tree-SSA passes): Likewise.
8282
8283 2008-02-02  Michael Matz  <matz@suse.de>
8284
8285         PR target/35045
8286         * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
8287         from record_last_reg_set_info.
8288         (record_last_reg_set_info): Take an RTX argument, iterate over all
8289         constituent hardregs.
8290         (record_last_set_info, record_opr_changes): Change calls to
8291         new signature or to record_last_reg_set_info_regno.
8292
8293 2008-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
8294
8295         * doc/extend.texi (X86 Built-in Functions): Fix grammar.
8296
8297 2008-02-01  Hans-Peter Nilsson  <hp@axis.com>
8298
8299         PR rtl-optimization/34773
8300         * reg-notes.def (EQUAL): Mention significance of combination of
8301         REG_EQUAL and REG_RETVAL.
8302         * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
8303         insn that has a REG_RETVAL.
8304
8305 2008-02-01  Roger Sayle  <roger@eyesopen.com>
8306
8307         PR bootstrap/33781
8308         * configure.ac (--enable-fixed-point): Disable unless explicitly
8309         requested on IRIX.
8310         * configure: Regenerate.
8311
8312 2008-02-01  Richard Guenther  <rguenther@suse.de>
8313
8314         PR other/35042
8315         * invoke.texi (-finline-limit): Remove no longer true parts
8316         of the documentation.  Note that there is no default value.
8317
8318 2008-02-01  Andrew Pinski  <pinskia@gmail.com>
8319             Mark Mitchell  <mark@codesourcery.com>
8320             Ben Elliston  <bje@au.ibm.com>
8321
8322         PR c/29326
8323         * doc/extend.texi (Other Builtins): Document.
8324
8325 2008-01-31  Tom Browder <tom.browder@gmail.com>
8326
8327         * doc/c-tree.texi (Types): Fix grammar.
8328         (Expression trees): Ditto.
8329         * doc/passes.texi (Tree-SSA passes): Ditto.
8330         
8331         * doc/configterms.texi (Configure Terms): Fix typo.
8332         * doc/cpp.texi (Common Predefined Macros): Ditto.
8333         * doc/md.texi (Machine Constraints): Ditto.
8334         
8335         * doc/makefile.texi (Makefile): Add comma.
8336
8337 2008-01-31  Tom Browder  <tom.browder@gmail.com>
8338             Gerald Pfeifer  <gerald@pfeifer.com>
8339         
8340         * doc/sourcebuild.texi (Front End): Remove references to CVS
8341         and CVSROOT/modules.
8342         (Texinfo Manuals): Replace reference to CVS by one to SVN.
8343         (Back End): Remove reference to CVS.
8344
8345 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
8346
8347         PR target/34900
8348         * config/mips/mips.c (gen_load_const_gp): New function, taking a
8349         comment from...
8350         (mips16_gp_pseudo_reg): ...here.
8351         * config/mips/mips.md (load_const_gp): Replace with...
8352         (load_const_gp_<mode>): ...this :P-based insn.
8353
8354 2008-01-31  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
8355
8356         * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
8357         options. Minor fixes.
8358         (-std): Move reference to standards closer to where language
8359         standards are first mentioned.
8360         
8361 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
8362
8363         PR rtl-optimization/34995
8364         * reload.c (alternative_allows_const_pool_ref): Take an rtx
8365         parameter and return a bool.  If the rtx parameter is nonnull,
8366         check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
8367         (find_reloads): Update call accordingly.  Pass the new operand
8368         if it needed no address reloads, otherwise pass null.
8369
8370 2008-01-30  Richard Henderson  <rth@redhat.com>
8371
8372         PR c/34993
8373         * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
8374         for unbounded arrays.
8375
8376 2008-01-30  Silvius Rus  <rus@google.com>
8377
8378         * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
8379
8380 2008-01-30  Jan Hubicka  <jh@suse.cz>
8381
8382         PR target/34982
8383         * i386.c (init_cumulative_args): Use real function declaration when
8384         calling locally.
8385
8386 2008-01-30  Richard Sandiford  <rsandifo@nildram.co.uk>
8387
8388         PR rtl-optimization/34998
8389         * global.c (build_insn_chain): Treat non-subreg_lowpart
8390         SUBREGs of pseudos as clobbering all the words covered by the
8391         SUBREG, not just all the bytes.
8392         * ra-conflict.c (clear_reg_in_live): Likewise.  Take the
8393         original df_ref rather than an extract parameter.
8394         (global_conflicts): Update call accordingly.
8395
8396 2008-01-30  Andreas Krebbel  <krebbel1@de.ibm.com>
8397
8398         * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
8399         the overflow check to make it easier to read.
8400         (__fixtfdi): Change the type of the ll member in union
8401         long_double to UDItype_x.
8402
8403 2008-01-30  Jakub Jelinek  <jakub@redhat.com>
8404
8405         PR middle-end/34969
8406         * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
8407         * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
8408         * tree-inline.c (fold_marked_statements): Call
8409         cgraph_update_edges_for_call_stmt if folding a call statement.
8410         * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
8411         debug_generic_stmt calls, reset it back afterwards.
8412
8413         PR c/35017
8414         * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
8415         static decls.
8416         * c-typeck.c (build_external_ref): Don't pedwarn about
8417         static vars in current function's scope.
8418
8419 2008-01-29  Joseph Myers  <joseph@codesourcery.com>
8420
8421         * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
8422
8423 2008-01-29  Bernhard Fischer  <aldot@gcc.gnu.org>
8424
8425         PR c/35002
8426         * ipa-struct-reorg.c: Fix spelling.
8427         * params.def: Ditto.
8428
8429 2008-01-29  Richard Guenther  <rguenther@suse.de>
8430
8431         PR middle-end/35006
8432         * tree-inline.h (struct copy_body_data): Add remapping_type_depth
8433         field.
8434         * tree-inline.c (remap_type): Increment remapping_type_depth
8435         around remapping types.
8436         (copy_body_r): Only add referenced variables if they are referenced
8437         from code, not types.
8438
8439 2008-01-29  Douglas Gregor  <doug.gregor@gmail.com>
8440
8441         PR c++/34055
8442         PR c++/34103
8443         PR c++/34219
8444         PR c++/34606
8445         PR c++/34753
8446         PR c++/34754
8447         PR c++/34755
8448         PR c++/34919
8449         PR c++/34961
8450         * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
8451         qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
8452
8453 2008-01-28  Andy Hutchinson   <hutchinsonandy@netscape.net>
8454
8455         PR target/34412
8456         * config/avr/avr.c (expand_prologue): Use correct QI mode frame 
8457         pointer for tiny stack.
8458
8459 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
8460
8461         * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
8462
8463 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
8464
8465         * config/vx-common.h: Fix typo in comment.
8466
8467 2008-01-28  Ian Lance Taylor  <iant@google.com>
8468
8469         PR c++/34862
8470         PR c++/33407
8471         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
8472         coalesce pointers if they have different DECL_NO_TBAA_P values.
8473         * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
8474         between variables with different DECL_NO_TBAA_P values.
8475
8476 2008-01-28  Nathan Froyd  <froydnj@codesourcery.com>
8477
8478         PR 31535
8479         * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
8480         are not legitimate small data references on SPE targets.
8481
8482 2008-01-28  David Daney  <ddaney@avtrex.com>
8483
8484         * doc/install.texi (mips-*-*): Recommend binutils 2.18.
8485
8486 2008-01-28  David Daney  <ddaney@avtrex.com>
8487
8488         * doc/install.texi (--disable-libgcj-bc):  Reword documentation.
8489
8490 2008-01-27  Joseph Myers  <joseph@codesourcery.com>
8491
8492         * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
8493         m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
8494         *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
8495         *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
8496         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
8497         i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
8498         i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
8499         vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
8500
8501 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
8502
8503         * basic-block.h (condjump_equiv_p): Fix comment.
8504
8505 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
8506
8507         * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
8508         print_generic_stmt_indented): Fix comment.
8509
8510 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
8511
8512         * configure.ac (__stack_chk_fail): Add detecion for availability
8513         of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
8514         * configure: Regenerate.
8515
8516 2008-01-26  Maxim Kuvyrkov  <maxim@codesourcery.com>
8517
8518         PR middle-end/34688
8519         * final.c (output_addr_const): Handle TRUNCATE.
8520
8521 2008-01-26  Zdenek Dvorak  <ook@ucw.cz>
8522
8523         PR target/34711
8524         * tree-ssa-loop-ivopts.c (comp_cost): New type.
8525         (zero_cost, infinite_cost): New constants.
8526         (struct cost_pair): Change type of cost to comp_cost.
8527         (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
8528         (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
8529         New functions.
8530         (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
8531         split_address_cost, ptr_difference_cost, difference_cost,
8532         get_computation_cost_at, get_computation_cost,
8533         determine_use_iv_cost_generic, determine_use_iv_cost_address,
8534         determine_use_iv_cost_condition, determine_use_iv_costs,
8535         cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
8536         iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
8537         iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
8538         Change type of cost to comp_cost.
8539         (determine_iv_cost): Increase cost of non-original ivs, instead
8540         of decreasing the cost of original ones.
8541         (get_address_cost): Indicate the complexity of the addressing mode 
8542         in comp_cost.
8543         (try_add_cand_for): Prefer using ivs not specific to some object.
8544         * tree-flow.h (force_expr_to_var_cost): Declaration removed.
8545
8546 2008-01-26  Peter Bergner  <bergner@vnet.ibm.com>
8547             Janis Johnson  <janis187@us.ibm.com>
8548
8549         PR target/34814
8550         * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
8551         (TARGET_INSTANTIATE_DECLS): Likewise.
8552         * target.h (expand_to_rtl_hook): New target hook.
8553         (instantiate_decls): Likewise.
8554         * function.c (instantiate_decl): Make non-static.  Rename to...
8555         (instantiate_decl_rtl): ... this.
8556         (instantiate_expr): Use instantiate_decl_rtl.
8557         (instantiate_decls_1): Likewise.
8558         (instantiate_decls): Likewise.
8559         (instantiate_virtual_regs: Call new instantiate_decls taget hook.
8560         * function.h (instantiate_decl_rtl): Add prototype.
8561         * cfgexpand.c (target.h): New include.
8562         (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
8563         * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
8564         (TARGET_INSTANTIATE_DECLS): Likewise.
8565         (TARGET_INITIALIZER): New target hooks added.
8566         * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
8567         New prototype.
8568         * config/rs6000/rs6000.c (tree-flow.h): New include.
8569         (machine_function): Add sdmode_stack_slot field.
8570         (rs6000_alloc_sdmode_stack_slot): New function.
8571         (rs6000_instantiate_decls): Likewise.
8572         (rs6000_secondary_memory_needed_rtx): Likewise.
8573         (rs6000_check_sdmode): Likewise.
8574         (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
8575         (TARGET_INSTANTIATE_DECLS): Likewise.
8576         (rs6000_hard_regno_mode_ok): Allow SDmode.
8577         (num_insns_constant): Likewise.  Handle _Decimal32 constants.
8578         (rs6000_emit_move): Handle SDmode.
8579         (function_arg_advance): Likewise.
8580         (function_arg): Likewise.
8581         (rs6000_gimplify_va_arg): Likewise.  Add special handling of
8582         SDmode var args for 32-bit compiles.
8583         (rs6000_secondary_reload_class): Handle SDmode.
8584         (rs6000_output_function_epilogue): Likewise.
8585         (rs6000_function_value): Simplify if statement.
8586         (rs6000_libcall_value): Likewise.
8587         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
8588         (SECONDARY_MEMORY_NEEDED_RTX): Add define.
8589         * config/rs6000/dfp.md (movsd): New define_expand and splitter.
8590         (movsd_hardfloat): New define_insn.
8591         (movsd_softfloat): Likewise.
8592         (movsd_store): Likewise.
8593         (movsd_load): Likewise.
8594         (extendsddd2): Likewise.
8595         (extendsdtd2): Likewise.
8596         (truncddsd2): Likewise.
8597         (movdd_hardfloat64): Fixup comment.
8598         (UNSPEC_MOVSD_LOAD): New constant.
8599         (UNSPEC_MOVSD_STORE): Likewise.
8600
8601 2008-01-26  Jakub Jelinek  <jakub@redhat.com>
8602
8603         PR c++/34965
8604         * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
8605         TRUTH_XOR_EXPR.
8606         (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
8607         (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
8608         (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
8609         and TRUTH_XOR_EXPR.
8610
8611 2008-01-26  David Edelsohn  <edelsohn@gnu.org>
8612
8613         PR target/34794
8614         * config.gcc: Separate AIX 5.3 from AIX 6.1.
8615         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
8616         __LONGDOUBLE128 too.
8617         * config/rs6000/aix61.h: New file.
8618
8619 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
8620
8621         PR rtl-optimization/34959
8622         * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
8623         popcount and parity rtxes the same mode as their operand.
8624         Truncate or extend the result to the return value's mode
8625         if necessary.
8626
8627 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
8628
8629         PR target/34981
8630         * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
8631         * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
8632         to GOT_VERSION_REGNUM.
8633         (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
8634         (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
8635         * config/mips/mips.c (mips_emit_call_insn): New function.
8636         (mips_call_tls_get_addr): Call mips_expand_call directly.
8637         (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
8638         emit_call_insn.
8639         (mips16_build_call_stub): Likewise.  Return the call insn or null.
8640         (mips_expand_call): Update the call to mips16_build_call_stub
8641         accordingly and a remove redundant condition.  Assert that MIPS16
8642         stubs do not use lazy binding.  Use mips_emit_call_insn and return
8643         the call insn.
8644         (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
8645         TARGET_USE_GOT.
8646         (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
8647         (mips_avoid_hazard): Remove hazard_set handling.
8648         * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
8649         (UNSPEC_RESTORE_GP): ...this.
8650         (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
8651         (FAKE_CALL_REGNO): Rename to...
8652         (GOT_VERSION_REGNUM): ...this.
8653         (type): Add "ghost" value.  Add an associated insn reservation.
8654         (hazard_set): Remove.
8655         (exception_receiver): Rename to...
8656         (restore_gp): ...this and update the unspec identifier accordingly.
8657         (exception_receiver, nonlocal_got_receiver): New expanders.
8658         (load_call<mode>): Use GOT_VERSION_REGNUM.  Don't set
8659         FAKE_CALL_REGNO.  Remove hazard_set attribute.
8660         (set_got_version, update_got_version): New patterns.
8661
8662 2008-01-26  Danny Smith  <dannysmith@users.sourceforge.net>
8663
8664         PR target/34970
8665         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
8666
8667 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
8668
8669         PR other/31955
8670         * doc/install.texi2html: Generate gcc-vers.texi.
8671
8672 2008-01-25  DJ Delorie  <dj@redhat.com>
8673
8674         * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
8675
8676 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
8677
8678         * config/c4x: Remove directory.
8679         * config.gcc (crx-*, mt-*): Mark obsolete.
8680         (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
8681         h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
8682         sh-*-rtemscoff*): Remove cases.
8683         * defaults.h (C4X_FLOAT_FORMAT): Remove.
8684         * real.c (encode_c4x_single, decode_c4x_single,
8685         encode_c4x_extended, decode_c4x_extended, c4x_single_format,
8686         c4x_extended_format): Remove.
8687         * real.h (c4x_single_format, c4x_extended_format): Remove.
8688         * doc/extend.texi (interrupt, naked): Remove mention of attributes
8689         on C4x.
8690         (Pragmas): Remove comment about c4x pragmas.
8691         * doc/install.texi (c4x): Remove target-specific instructions.
8692         * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
8693         * doc/md.texi (Machine Constraints): Remove C4x documentation.
8694         * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
8695         refer to C4x source files as examples.
8696         (C4X_FLOAT_FORMAT): Remove documentation.
8697
8698 2008-01-25  Bernd Schmidt  <bernd.schmidt@analog.com>
8699
8700         * config/bfin/bfin.c (override_options): Reorder tests so that
8701         flag_pic gets enabled for -msep-data.
8702
8703 2008-01-25  Richard Guenther  <rguenther@suse.de>
8704
8705         PR middle-end/32244
8706         * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
8707         to its bitfield precision if required.
8708
8709 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
8710
8711         PR middle-end/33880
8712         * tree-nested.c (walk_omp_for): New function.
8713         (convert_nonlocal_reference, convert_local_reference): Call
8714         walk_omp_for on OMP_FOR.
8715         (convert_call_expr): Call walk_body on OMP_FOR's
8716         OMP_FOR_PRE_INIT_BODY.
8717
8718 2008-01-25  Richard Guenther  <rguenther@suse.de>
8719
8720         PR tree-optimization/34966
8721         * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
8722         default defs and PHI_NODEs we have to insert after the
8723         defining statement.
8724
8725 2008-01-24  Nick Clifton  <nickc@redhat.com>
8726
8727         * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
8728         Provide a default definition.
8729         (LIBGCC2_UNITS_PER_WORD): Likewise.
8730
8731         * config/stormy16/stormy16.c: Include df.h for the prototype
8732         for df_regs_ever_live_p.
8733         (xstormy16_expand_builtin_va_start): Convert the stack offset
8734         into a component_ref and then use POINTER_PLUS_EXPR to add it
8735         to the incoming_virtual_args_rtx.
8736         (xstormy16_gimplify_va_arg_expr): Rename to
8737         xstormy16_gimplify_va_arg_expr.
8738         Use POINTER_PLUS_EXPR when performing pointer arithmetic.
8739         (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
8740         xstormy16_gimplify_va_arg_expr.
8741         Fix up some formatting issues.
8742
8743         * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
8744         Move to predicates.md.
8745         (xs_hi_general_operand): Likewise.
8746         (xs_hi_nonmemory_operand): Likewise.
8747         * config/stormy16/predicates.md:
8748         (xstormy16_carry_plus_operand): New predicate.
8749         (xs_hi_general_operand): New predicate.
8750         (xs_hi_nonmemory_operand): New predicate.
8751         * config/stormy16/stormy16-protos.h:
8752         (xstormy16_carry_plus_operand): Delete prototype.
8753         (xs_hi_general_operand): Likewise.
8754         (xs_hi_nonmemory_operand): Likewise.
8755
8756         * config/storm16/stormy16.md (addhi3): Remove earlyclobber
8757         modifiers as they are no longer needed and they can trigger
8758         reload spill failures.
8759
8760         * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
8761         with a match_operand in order to help reload.
8762
8763         * config/storm16/stormy16.md (movhi_internal): Replace 'r'
8764         constraint with 'e' for the 8th alternative as this version of
8765         the mov.w instruction only accepts the lower 8 registers.
8766
8767 2008-01-25  Uros Bizjak  <ubizjak@gmail.com>
8768
8769         PR target/34856
8770         * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
8771         Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
8772         vector elements.
8773
8774 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
8775
8776         PR middle-end/33333
8777         * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
8778
8779 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
8780
8781         * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
8782         New functions.
8783         (remove_structure): Update allocations list before removing structure.
8784         
8785 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
8786
8787         * ipa-struct-reorg.c (is_safe_cond_expr, 
8788         create_new_stmts_for_cond_expr): Use integer_zerop function,
8789         that recognize not only zero-pointer, but zero-integer too.
8790
8791 2008-01-25  Ben Elliston  <bje@au.ibm.com>
8792
8793         PR other/22232
8794         * fixproto: Escape "." in sed expression that strips leading "./".
8795
8796 2008-01-24  H.J. Lu  <hongjiu.lu@intel.com>
8797
8798         PR driver/34904
8799         * gcc.c (SWITCH_OK): Removed.
8800         (SWITCH_LIVE): Changed to bit.
8801         (SWITCH_FALSE): Likewise.
8802         (SWITCH_IGNORE): Likewise.
8803         (switchstr): Change live_cond to unsigned int.
8804         (process_command): Replace SWITCH_OK with 0.
8805         (do_self_spec): Likewise.
8806         (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
8807         (give_switch): Likewise.
8808         (used_arg): Likewise.
8809         (do_spec_1): Set the SWITCH_IGNORE bit.
8810         (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
8811         bits.  Set the SWITCH_LIVE bit.
8812
8813 2008-01-24  Andreas Krebbel  <krebbel1@de.ibm.com>
8814
8815         * config/s390/s390.h (MOVE_RATIO): Define new target macro.
8816
8817 2008-01-24  Richard Sandiford  <rsandifo@nildram.co.uk>
8818
8819         PR tree-optimization/34472
8820         * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
8821         parameter to a "bool *" and set *DATA to false if there is
8822         an unsafe access.  Do not delete the structure here.
8823         (check_cond_exprs): Delete it here instead.
8824         (check_cond_exprs, exclude_cold_structs): Do not increase
8825         I when removing a structure.
8826
8827 2008-01-24  Uros Bizjak  <ubizjak@gmail.com>
8828
8829         PR target/34856
8830         * config/i386/i386.c (ix86_expand_vector_init): Consider only
8831         CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
8832
8833 2008-01-24  Jakub Jakub Jelinek  <jakub@redhat.com>
8834
8835         PR middle-end/34934
8836         * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
8837         a fixed vector for stack.
8838
8839 2008-01-24  Ben Elliston  <bje@au.ibm.com>
8840
8841         PR c++/25701
8842         * doc/gcc.texi (Software development): Add a direntry for g++.
8843         
8844 2008-01-23  Hans-Peter Nilsson  <hp@axis.com>
8845
8846         * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
8847         stale and straggling -fforce-addr comments above.
8848
8849         * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
8850         define.
8851         * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
8852         * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
8853
8854 2008-01-23  Michael Matz  <matz@suse.de>
8855
8856         PR debug/34895
8857         * dwarf2out.c (force_type_die): Use modified_type_die instead of
8858         gen_type_die.
8859
8860 2008-01-23  Andreas Krebbel  <krebbel1@de.ibm.com>
8861
8862         * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
8863         malloc result type.
8864
8865 2008-01-23 Anatoly Sokolov <aesok@post.ru>
8866
8867         * config/avr/avr.c (avr_current_arch): New variable.
8868         (avr_arch_types): Add 'avr31' and 'avr51' entries.
8869         (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
8870         (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
8871         (avr_override_options): Init 'avr_current_arch'. 
8872         (base_arch_s): Move from here...
8873         * config/avr/avr.h (base_arch_s): ... here. Add new members 
8874         'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename 
8875         'mega' to 'have_jmp_call'.
8876         (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__", 
8877         "__AVR_HAVE_RAMPZ__",   "__AVR_HAVE_ELPM__" and  "__AVR_HAVE_ELPMX__"
8878         macros.
8879         (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51' 
8880         architectures.
8881         * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES, 
8882         MULTILIB_MATCHES): (Ditto.).
8883
8884 2008-01-23  Richard Guenther  <rguenther@suse.de>
8885
8886         PR middle-end/31529
8887         * cgraphunit.c (cgraph_reset_node): Always mark the node
8888         not reachable if it is not queued already.
8889
8890 2008-01-23  Bernd Schmidt  <bernd.schmidt@analog.com>
8891
8892         * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
8893         * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
8894         (cputype_selected): New static variable.
8895         (bfin_handle_option): Set it if -mcpu is used.
8896         (override_option): Select default set of workarounds if no cpu type
8897         selected on the command line.
8898         (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
8899
8900         From  Michael Frysinger  <michael.frysinger@analog.com>
8901         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
8902         BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
8903
8904         * config/bfin/elf.h (LIB_SPEC): Use proper linker script
8905         for bf547, bf523, bf524, and bf526.
8906         * config/bfin/bfin.c (bfin_cpus[]): Add bf547,  bf523, bf524, and
8907         bf526.
8908         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
8909         __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
8910         __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
8911         __ADSPBF547__ and __ADSPBF54x__ for bf547.
8912         * doc/invoke.texi (Blackfin Options): Document that
8913         -mcpu now accept bf547, bf523, bf524, and bf526.
8914
8915 2008-01-22  Eric Botcazou  <ebotcazou@adacore.com>
8916
8917         PR rtl-optimization/34628
8918         * combine.c (try_combine): Stop and undo after the first combination
8919         if an autoincrement side-effect on the first insn has effectively
8920         been lost.
8921
8922 2008-01-22  David Edelsohn  <edelsohn@gnu.org>
8923
8924         PR target/34529
8925         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
8926         Offset addresses are not valid for Altivec or paired float modes.
8927
8928 2008-01-22  Jakub Jelinek  <jakub@redhat.com>
8929
8930         PR c++/34607
8931         * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
8932         if DECL_INITIAL (decl) is error_mark_node.
8933
8934         PR c++/34914
8935         * c-common.c (handle_vector_size_attribute): Only allow
8936         integral, scalar float and fixed point types.  Handle OFFSET_TYPE
8937         the same way as pointer, array etc. types.
8938         * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
8939
8940         PR c++/34917
8941         * tree.c (build_type_attribute_qual_variant): Call
8942         build_qualified_type if attributes are equal, but quals are not.
8943
8944 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
8945
8946         PR 32102
8947         * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
8948         * flags.h (warn_strict_aliasing): Remove.
8949         (warn_strict_overflow): Remove.
8950         * opts.c (warn_strict_aliasing): Remove.
8951         (warn_strict_overflow): Remove.
8952         * c-opts.c (c_common_handle_option): -Wall only sets
8953         -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
8954         (c_common_post_options): Give default values to -Wstrict-aliasing
8955         and -Wstrict-overflow if they are uninitialized.
8956         * common.opt (Wstrict-aliasing): Specify Var and Init.
8957         (Wstrict-overflow): Likewise.
8958
8959 2008-01-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
8960
8961         PR rtl-optimization/26854
8962         PR rtl-optimization/34400
8963         PR rtl-optimization/34884
8964         * ddg.c (create_ddg_dep_from_intra_loop_link): Use
8965         DF_RD->gen.
8966         * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
8967         (df_rd_bb_info.expanded_lr_out): Deleted
8968         * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
8969         * loop_iv.c (iv_analysis_loop_init): Ditto.  * df-problems.c
8970         (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
8971         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
8972         Removed code to allocate, initialize or free expanded_lr_out.
8973         (df_rd_bb_local_compute_process_def): Restructured to make more
8974         understandable.
8975         (df_rd_confluence_n): Removed code to no apply invalidate_by_call
8976         sets if the sets are being trimmed.
8977
8978 2008-01-22  H.J. Lu  <hongjiu.lu@intel.com>
8979
8980         PR bootstrap/32287
8981         * configure.ac (ld_vers): Support GNU linker version xx.xx.*
8982         (as_vers): Likewise.
8983         * configure: Regenerated.
8984
8985 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
8986
8987         PR middle-end/33092
8988         * tree-pass.h (pass_build_alias): New pass.
8989         * tree-ssa-alias.c (gate_build_alias): New.
8990         (pass_build_alias): New.
8991         * passes.c (init_optimization_passes): Add pass_build_alias after
8992         pass_create_structure_vars.
8993
8994 2008-01-22  Wolfgang Gellerich  <gellerich@de.ibm.com>
8995
8996         * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
8997         Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
8998         (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
8999         S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
9000         (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
9001         S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
9002         (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
9003         S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
9004         (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
9005         (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
9006         (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
9007         (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
9008         * config/s390/s390.md (FP_ALL): New mode iterator.
9009         (_d): New mode attribute.
9010         ("*signbit<mode>2>"): Changed mode of first operand.
9011         ("isinf<mode>2"): Changed mode of first operand.
9012         ("*TDC_insn"): Adaptation for DFP modes.
9013
9014 2008-01-22  Ben Elliston  <bje@au.ibm.com>
9015
9016         * tree.c (check_qualified_type): Improve function description.
9017
9018 2008-01-21  Jason Merrill  <jason@redhat.com>
9019
9020         PR c++/34196
9021         * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
9022         * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
9023         if it is set.
9024
9025 2008-01-21  DJ Delorie  <dj@redhat.com>
9026
9027         * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
9028         return zero.
9029
9030 2008-01-21  Richard Guenther  <rguenther@suse.de>
9031
9032         PR middle-end/34856
9033         * tree-cfg.c (verify_expr): Allow all invariant expressions
9034         instead of just constant class ones as reference argument.
9035         * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
9036         like any other constant.
9037         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
9038
9039 2008-01-21  H.J. Lu  <hongjiu.lu@intel.com>
9040
9041         * regmove.c (fixup_match_1): Update call crossed frequencies.
9042
9043 2008-01-21  Richard Guenther  <rguenther@suse.de>
9044
9045         PR c/34885
9046         * tree-inline.c (setup_one_parameter): Deal with mismatched
9047         types using a VIEW_CONVERT_EXPR.
9048
9049 2008-01-21  Alon Dayan  <alond@il.ibm.com>
9050             Olga Golovanevsky  <olga@il.ibm.com>
9051         
9052         PR tree-optimization/34701
9053         * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
9054         when the structure size is not a power of 2.
9055
9056 2008-01-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
9057
9058         * doc/install.texi: Add doc for --enable-checking=df.
9059         
9060 2008-01-20  Kaz Kojima  <kkojima@gcc.gnu.org>
9061
9062         PR rtl-optimization/34808
9063         * emit-rtl.c (try_split): Handle REG_RETVAL notes.
9064
9065 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
9066
9067         * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
9068         input.
9069
9070 2008-01-19  Kenneth Zadeck  <zadeck@naturalbridge.com>
9071
9072         PR rtl-optimization/26854
9073         PR rtl-optimization/34400
9074         * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
9075         DF_RD->gen.
9076         * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
9077         (df_rd_bb_info.expanded_lr_out): New.
9078         * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
9079         * loop_iv.c (iv_analysis_loop_init): Ditto.
9080         * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
9081         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
9082         Added code to allocate, initialize or free expanded_lr_out.
9083         (df_rd_bb_local_compute_process_def): Restructured to make
9084         more understandable.
9085         (df_rd_confluence_n): Add code to do nothing with fake edges and
9086         code to no apply invalidate_by_call sets if the sets are being trimmed.
9087         (df_lr_local_finalize): Renamed to df_lr_finalize.
9088         (df_live_local_finalize): Renamed to df_live_finalize.
9089
9090 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
9091
9092         PR target/34831
9093         * config/mips/mips.md (div<mode>3): Use <recip_condition> when
9094         deciding whether to use reciprocal instructions.
9095
9096 2008-01-19  Uros Bizjak  <ubizjak@gmail.com>
9097
9098         * dwarf2out.c (dwarf2out_switch_text_section): Do not call
9099         dwarf2out_note_section_used if cold_text_section is NULL.
9100
9101 2008-01-19  Jakub Jelinek  <jakub@redhat.com>
9102
9103         PR gcov-profile/34610
9104         * tree-cfg.c (make_edges): Mark both outgoing edges from
9105         OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
9106         * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
9107         from OMP_FOR and OMP_CONTINUE outgoing edges.
9108
9109         * tree-profile.c (tree_profiling): Return early if
9110         cfun->after_tree_profile != 0.  Set cfun->after_tree_profile
9111         at the end.
9112         * omp-low.c (expand_omp_parallel): Copy after_tree_profile
9113         from cfun to child_cfun.
9114         * function.h (struct function): Add after_tree_profile bit.
9115
9116 2008-01-19 Anatoly Sokolov <aesok@post.ru>
9117
9118         * config/avr/avr.S (_exit): Disable interrupt.
9119
9120 2008-01-18  Kenneth Zadeck  <zadeck@naturalbridge.com>
9121             Steven Bosscher  <stevenb.gcc@gmail.com>
9122
9123         PR rtl-optimization/26854
9124         PR rtl-optimization/34400
9125         * df-problems.c (df_live_scratch): New scratch bitmap.
9126         (df_live_alloc): Allocate df_live_scratch when doing df_live.
9127         (df_live_reset): Clear the proper bitmaps.
9128         (df_live_bb_local_compute): Only process the artificial defs once
9129         since the order is not important.
9130         (df_live_init): Init the df_live sets only with the variables
9131         found live by df_lr.
9132         (df_live_transfer_function): Use the df_lr sets to prune the
9133         df_live sets as they are being computed.  
9134         (df_live_free): Free df_live_scratch.
9135
9136 2008-01-18  Ian Lance Taylor  <iant@google.com>
9137
9138         * common.opt: Add fmerge-debug-strings.
9139         * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
9140         flag_merge_debug_strings rather than flag_merge_constants.
9141         * doc/invoke.texi (Option Summary): Mention
9142         -fmerge-debug-strings.
9143         (Debugging Options): Document -fmerge-debug-strings.
9144
9145 2008-01-18  Ian Lance Taylor  <iant@google.com>
9146
9147         PR c++/33407
9148         * tree.h (DECL_IS_OPERATOR_NEW): Define.
9149         (struct tree_function_decl): Add new field operator_new_flag.
9150         * tree-inline.c (expand_call_inline): When inlining a call to
9151         operator new, force the return value to go into a variable, and
9152         set DECL_NO_TBAA_P on that variable.
9153         * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
9154
9155 2008-01-18  Uros Bizjak  <ubizjak@gmail.com>
9156
9157         PR debug/34484
9158         * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
9159         DWARF2_DEBUGGING_INFO.
9160         (dwarf2out_note_section_used): Ditto.  Add prototype.
9161         (have_multiple_function_sections, text_section_used,
9162         cold_text_section_used, *cold_text_sections): Move declarations
9163         before their uses.
9164
9165 2008-01-17  Bob Wilson  <bob.wilson@acm.org>
9166
9167         * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
9168         field and add signal_ra.
9169         * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
9170         assignments to frame state pc.  Move end of stack check after
9171         MD_FALLBACK_FRAME_STATE_FOR.
9172         (uw_update_context_1): Use frame state signal_regs if set, instead
9173         of checking signal_frame flag.
9174         (uw_update_context): Use frame state signal_ra if set.
9175         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
9176         * config/xtensa/linux-unwind.h: New file.
9177
9178 2008-01-18  Bernhard Fischer  <aldot@gcc.gnu.org>
9179
9180         * modulo-sched.c (get_sched_window): Fix comment typo.
9181
9182 2008-01-17  Andrew MacLeod  <amacleod@redhat.com>
9183
9184         PR tree-optimization/34648
9185         * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
9186
9187 2008-01-17  Anatoly Sokolov <aesok@post.ru>
9188
9189         * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
9190         * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
9191
9192 2008-01-17  Seongbae Park  <seongbae.park@gmail.com>
9193
9194         PR rtl-optimization/34400
9195         * df-core.c (df_worklist_dataflow_overeager,
9196         df_worklist_dataflow_doublequeue): New functions.
9197         (df_worklist_dataflow): Two different worklist solvers.
9198         * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
9199         New param.
9200
9201 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
9202
9203         PR testsuite/34821
9204         * doc/invoke.texi: Document the dependence on pthread for fopenmp
9205         and ftree-parallelize-loops.
9206
9207 2008-01-17  Mircea Namolaru  <namolaru@il.ibm.com>
9208
9209         PR rtl-optimization/34826
9210         * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
9211
9212 2008-01-17  Andreas Krebbel  <krebbel1@de.ibm.com>
9213
9214         * global.c (find_reg): Mark the eh regs as used if necessary.
9215         * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
9216         * ra.h (struct allocno): no_eh_reg field added.  Changed
9217         no_stack_reg type to bitfield.
9218
9219 2008-01-17  Eric Botcazou  <ebotcazou@adacore.com>
9220
9221         * tree.c (substitute_in_expr): Add missing 'break'.
9222
9223 2008-01-17  Richard Guenther  <rguenther@suse.de>
9224
9225         PR tree-optimization/34825
9226         * tree-ssa-math-opts.c (is_division_by): Do not recognize
9227         x / x as division to handle.
9228
9229 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9230
9231         * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
9232         "-pthread" is specified.
9233         * pa-hpux11.h (LIB_SPEC): Likewise.
9234
9235 2008-01-16  Janis Johnson  <janis187@us.ibm.com>
9236             Peter Bergner  <bergner@vnet.ibm.com>
9237
9238         PR rtl-optimization/33796
9239         * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
9240
9241 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9242
9243         PR libgfortran/34699
9244         * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
9245         static links.
9246         * pa-hpux10.h (LINK_SPEC): Likewise.
9247         * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
9248
9249 2008-01-16  Richard Guenther  <rguenther@suse.de>
9250
9251         PR middle-end/32628
9252         * fold-const.c (fold_convert_const_int_from_int): Do not
9253         set overflow if that occured only because of a sign extension
9254         change when converting from/to a sizetype with the same
9255         precision and signedness.
9256
9257 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
9258
9259         PR debug/34249
9260         * dwarf2out.c (output_call_frame_info): Move output of FDE initial
9261         location address to the correct place.  Update copyright year.
9262
9263 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
9264
9265         * lambda-code.c (lambda_transform_legal_p): Handle the case of
9266         no dependences in the dependence_relations vector.
9267
9268 2008-01-16  Jan Hubicka  <jh@suse.cz>
9269
9270         PR rtl-optimization/31396
9271         * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
9272         * cfg.c (dump_reg_info): Print it.
9273         * regs.h (struct reg_info_t): add freq_calls_crossed.
9274         (REG_FREQ_CALLS_CROSSED): New macro.
9275         * global.c (global_alloc): Compute freq_calls_crossed for allocno.
9276         (find_reg): Update call of CALLER_SAVE_PROFITABLE.
9277         * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
9278         regmove_optimize): Update call crossed frequencies.
9279         * local-alloc.c (struct qty): Add freq_calls_crossed.
9280         (alloc_qty): Copute freq_calls_crossed.
9281         (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
9282         (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
9283         * ra.h (struct allocno): Add freq_calls_crossed.
9284
9285 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
9286
9287         * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
9288         libgomp when compiling with ftree-parallelize-loops.
9289         (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
9290
9291 2008-01-16  Richard Guenther  <rguenther@suse.de>
9292
9293         PR tree-optimization/34769
9294         * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
9295         * tree.c (int_cst_value): Instead make this function more
9296         permissive in what it accepts as valid input.  Document this
9297         function always sign-extends the value.
9298
9299 2008-01-16  Jakub Jelinek  <jakub@redhat.com>
9300             Richard Guenther  <rguenther@suse.de>
9301
9302         PR c/34668
9303         * gimplify.c (fold_indirect_ref_rhs): Rename to ...
9304         (gimple_fold_indirect_ref_rhs): ... this.
9305         (gimple_fold_indirect_ref): New function with foldings
9306         that preserve lvalueness.
9307         (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
9308         * tree-flow.h (gimple_fold_indirect_ref): Declare.
9309         * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
9310         to fold an INDIRECT_REF, fall back to the old use of
9311         fold_indirect_ref_1.
9312
9313 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
9314
9315         * tree-data-ref.c (subscript_dependence_tester_1): Call 
9316         free_conflict_function.
9317         (compute_self_dependence): Same.
9318
9319 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
9320
9321         PR debug/34249
9322         * debug.h (dwarf2out_switch_text_section): Move declaration from ...
9323         * dwarf2out.c (dwarf2out_switch_text_section): ... here.  Make
9324         function global.
9325         * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
9326         Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
9327         for DWARF2_UNWIND_INFO targets.
9328
9329 2008-01-16  Richard Guenther  <rguenther@suse.de>
9330
9331         PR c/34768
9332         * c-typeck.c (common_pointer_type): Do not merge inconsistent
9333         type qualifiers for function types.
9334
9335 2008-01-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
9336
9337         * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
9338         loop_iterator li from previous commit.
9339
9340 2008-01-15  Sebastian Pop  <sebastian.pop@amd.com>
9341
9342         * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
9343
9344 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
9345
9346         * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
9347         (parallelize_loops): Don't parallelize irreducible components.
9348
9349 2008-01-14  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
9350
9351         PR c++/24924
9352         * c-opts (c_common_post_options): Do not enable CPP
9353         flag_pedantic_errors by default.
9354         
9355 2008-01-14  Eric Botcazou  <ebotcazou@adacore.com>
9356
9357         PR rtl-optimization/31944
9358         * cse.c (remove_pseudo_from_table): New function.
9359         (merge_equiv_classes): Use above function to remove pseudo-registers.
9360         (invalidate): Likewise.
9361
9362 2008-01-13  Richard Guenther  <rguenther@suse.de>
9363
9364         PR middle-end/34601
9365         * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
9366         instead of TYPE_MODE to deal with calls from expand_one_error_var.
9367
9368 2008-01-13  Uros Bizjak  <ubizjak@gmail.com>
9369
9370         * gcse.c (cprop_jump): Call validate_unshare_change instead of
9371         validate_change to unshare the source of the PC set.
9372
9373 2008-01-12  Jan Hubicka  <jh@suse.cz>
9374
9375         PR middle-end/32135
9376         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
9377         references above array bounds.  This might trigger bounds checks for
9378         pointers to arrays.
9379
9380 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
9381
9382         * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
9383         new_replaceable_dependencies.
9384
9385 2008-01-12  Doug Kwan  <dougkwan@google.com>
9386
9387         * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
9388         instead of OPT_Wreturn_type in warning due to ignored return type
9389         qualifiers.
9390         * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
9391         options included in -Wextra.
9392         * c.opt: New option -Wignored_qualifiers.
9393         * doc/invoke.texi (Warning Options, -Wextra): Add new option
9394         -Wignore_qualifiers.
9395         (-Wignored-qualifiers): Document.
9396         (-Wreturn-type): Remove description of functionality now handled
9397         by -Wignored-qualifiers.
9398
9399 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
9400
9401         PR ada/33788
9402         * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
9403         NOP_EXPR if it is between integral types with the same precision.
9404
9405 2008-01-12  Jan Hubicka  <jh@suse.cz>
9406
9407         PR other/28023
9408         * invoke.texi (max-inline-recursive-depth): Fix default value.
9409
9410 2008-01-12  Zdenek Dvorak  <ook@ucw.cz>
9411
9412         * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
9413         correct type.
9414
9415 2008-01-11  Bob Wilson  <bob.wilson@acm.org>
9416         
9417         * config/xtensa/xtensa.c (override_options): Set flag_shlib.
9418         
9419 2008-01-11  James E. Wilson  <wilson@specifix.com>
9420
9421         PR target/26015
9422         * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
9423
9424 2008-01-11  Anatoly Sokolov <aesok@post.ru>
9425
9426         * config/avr/avr.c (expand_prologue, expand_epilogue): Don't 
9427         save/restore frame pointer register and don't use 'call-prologues' 
9428         optimization in function with "OS_task" attribute.
9429
9430 2008-01-11  Eric Botcazou  <ebotcazou@adacore.com>
9431
9432         PR middle-end/31309
9433         * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
9434         when copying to memory.
9435
9436 2008-01-11  Steven Bosscher  <stevenb.gcc@gmail.com>
9437
9438         PR rtl-optimization/30905
9439         * cfgcleanup.c: Include dce.h
9440         (crossjumps_occured): New global variable.
9441         (try_crossjump_bb): Exit loop after finding a fallthru edge.
9442         If something changed, set crossjumps_occured to true.
9443         (try_optimize_cfg): Clear crossjumps_occured at the beginning.
9444         Don't add/remove fake edges to exit here...
9445         (cleanup_cfg): ...but do it here, when crossjumping.
9446         Run a fast DCE when successful crossjumps occured in the latest
9447         iteration of try_optimize_cfg.
9448
9449 2008-01-11  Richard Guenther  <rguenther@suse.de>
9450
9451         * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
9452         (struct vn_unary_op_s): Likewise.
9453         (vn_reference_insert): Free old reference on hash collision.
9454
9455 2008-01-10  Raksit Ashok  <raksit@google.com>
9456
9457         PR rtl-optimization/27971
9458         * combine.c (find_split_point): Split PLUS expressions which are
9459         inside a MEM rtx, and whose first operand is complex.
9460
9461 2008-01-10  DJ Delorie  <dj@redhat.com>
9462
9463         * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
9464         (m32c_hard_regno_nregs): ...this, which is now a wrapper.
9465         (m32c_hard_regno_ok): Call the underlying function.
9466
9467 2008-01-10  Richard Guenther  <rguenther@suse.de>
9468
9469         PR middle-end/34683
9470         * tree-cfg.c (tree_merge_blocks): Do not go through the
9471         full-blown folding and stmt updating path if we just deal
9472         with virtual operands.
9473         * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
9474         test for abnormal SSA_NAMEs.
9475
9476 2008-01-10  Andreas Krebbel  <krebbel1@de.ibm.com>
9477
9478         PR middle-end/34641
9479         * reload.c (push_reload): Add assertions.  All constants from
9480         reg_equiv_constant should have been used for replacing the respective
9481         pseudo earlier.
9482         (find_reloads_address): Invoke find_reloads_address_part for
9483         constant taken from the reg_equiv_constant array.
9484
9485 2008-01-10  Steven Bosscher  <stevenb.gcc@gmail.com>
9486
9487         * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
9488         field (valnum) the first in the struct.  Replace bools with
9489         unit bit fields.
9490
9491 2008-01-10  Richard Guenther  <rguenther@suse.de>
9492
9493         PR tree-optimization/34651
9494         * tree-sra.c (sra_build_assignment): Sanitize.  Use the correct
9495         types and ordering for masking and converting.
9496
9497 2008-01-09  Sebastian Pop  <sebastian.pop@amd.com>
9498
9499         PR tree-optimization/34017
9500         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
9501         also for PHI_NODE expressions.
9502
9503 2008-01-09  Jan Hubicka  <jh@suse.cz>
9504
9505         PR tree-optimization/34708
9506         * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
9507         based on number of case labels.
9508         (init_inline_once): Remove switch_cost.
9509         * tree-inline.h (eni_weights_d): Remove switch_cost.
9510
9511 2008-01-09  Richard Guenther  <rguenther@suse.de>
9512         Andrew Pinski  <andrew_pinski@playstation.sony.com>
9513
9514         PR middle-end/30132
9515         * gimplify.c (gimplify_cond_expr): Do not create an addressable
9516         temporary if an rvalue is ok or an lvalue is not required.
9517
9518 2008-01-09  Richard Guenther  <rguenther@suse.de>
9519
9520         PR middle-end/34458
9521         * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
9522         adjust return type.
9523
9524 2008-01-09  Richard Guenther  <rguenther@suse.de>
9525
9526         PR middle-end/34679
9527         * tree.c (host_integerp): Check for sizetype only if the
9528         type is an integer type.
9529
9530 2008-01-09  Steven Bosscher  <stevenb.gcc@gmail.com>
9531
9532         PR debug/26364
9533         * opts.c (decode_options): Disable inlining of functions called
9534         once if not in unit-at-a-time mode.
9535
9536 2008-01-09  Alexandre Oliva  <aoliva@redhat.com>
9537
9538         * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
9539
9540 2008-01-08  Richard Guenther  <rguenther@suse.de>
9541
9542         PR middle-end/31863
9543         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
9544         out early if the result will be unused.
9545
9546 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
9547
9548         PR target/34709
9549         Revert:
9550
9551         2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
9552         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
9553         for TARGET_RECIP.       
9554         
9555 2008-01-08  Jan Sjodin  <jan.sjodin@amd.com>
9556         
9557         * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
9558         for vectorization tuned.
9559         
9560 2008-01-08  Richard Guenther  <rguenther@suse.de>
9561
9562         PR tree-optimization/34683
9563         * tree-ssa-operands.c (operand_build_cmp): Export.
9564         * tree-ssa-operands.h (operand_build_cmp): Declare.
9565         * tree-vn.c (vuses_compare): Remove.
9566         (sort_vuses): Use operand_build_cmp.
9567         (sort_vuses_heap): Likewise.
9568         * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
9569         to re-use old VEC if available.  Do not sort already sorted VUSEs.
9570         (vdefs_to_vec): Do not sort already sorted VDEFs.
9571
9572 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
9573
9574         PR middle-end/34694
9575         * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
9576
9577 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
9578
9579         PR target/34702
9580         * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
9581         limitations of reciprocal sequences on x86 targets.
9582
9583 2008-01-08  Richard Guenther  <rguenther@suse.de>
9584
9585         PR tree-optimization/34683
9586         * tree-flow-inline.h (var_ann): Remove overzealous asserts.
9587
9588 2008-01-07  Jakub Jelinek  <jakub@redhat.com>
9589
9590         PR target/34622
9591         * config/darwin.c (darwin_mergeable_string_section): Don't use
9592         .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
9593
9594 2008-01-07  Uros Bizjak  <ubizjak@gmail.com>
9595
9596         PR target/34682
9597         * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
9598         negxf2.  Macroize expander using X87MODEF mode iterator.  Change
9599         predicates of op0 and op1 to register_operand.
9600         (abs<mode>2): Rename from abssf2, absdf2 and negxf2.  Macroize
9601         expander using X87MODEF mode iterator.  Change predicates of
9602         op0 and op1 to register_operand.
9603         ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
9604         corresponding patterns and macroize using MODEF macro.  Change
9605         predicates of op0 and op1 to register_operand and remove
9606         "m" constraint. Disparage "r" alternative with "!".
9607         ("*absneg<mode>2_i387"): Rename from corresponding patterns and
9608         macroize using X87MODEF macro.  Change predicates of op0 and op1
9609         to register_operand and remove "m" constraint.  Disparage "r"
9610         alternative with "!".
9611         (absneg splitter with memory operands): Remove.
9612         ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
9613         patterns and macroize using X87MODEF mode iterator.
9614         * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
9615         Change predicate of op1 to register_operand.
9616         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
9617         for memory operands.
9618
9619 2008-01-07  Nathan Froyd  <froydnj@codesourcery.com>
9620
9621         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
9622
9623 2008-01-07  Richard Guenther  <rguenther@suse.de>
9624
9625         * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
9626         fields.
9627
9628 2008-01-07  Richard Guenther  <rguenther@suse.de>
9629
9630         PR tree-optimization/34683
9631         * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
9632         VOPs of the needed size to save memory.  Use VEC_quick_push
9633         to save compile-time.
9634         (vdefs_to_vec): Likewise.
9635
9636 2008-01-07  Sa Liu  <saliu@de.ibm.com>
9637
9638         * config/spu/spu.md (divdf3): Genetate inline code for double
9639         division.  The implementation doesn't handle INF or NAN, therefore it
9640         only applies when -ffinite-math-only is given.
9641
9642 2008-01-06  Paolo Carlini  <pcarlini@suse.de>
9643
9644         PR libstdc++/34680
9645         * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
9646         * doc/cpp.texi ([Common Predefined Macros]): Document.
9647
9648 2008-01-06  Uros Bizjak  <ubizjak@gmail.com>
9649
9650         * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
9651         order to use commutative addition instead of subtraction.
9652
9653 2008-01-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
9654             Mircea Namolaru  <namolaru@il.ibm.com>
9655             Vladimir Yanovsky  <yanov@il.ibm.com>
9656             Revital Eres  <eres@il.ibm.com>
9657
9658         PR tree-optimization/34263
9659         * tree-outof-ssa.c (process_single_block_loop_latch,
9660         contains_tree_r): New functions.
9661         (analyze_edges_for_bb): Call process_single_block_loop_latch
9662         function to empty single-basic-block latch block if possible.
9663
9664 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
9665
9666         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
9667         for TARGET_RECIP.
9668         (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
9669
9670 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
9671
9672         * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
9673
9674 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
9675
9676         * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
9677
9678 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
9679
9680         PR tree-optimization/34618
9681         * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
9682         flag from T.
9683
9684 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
9685
9686         PR target/34673
9687         * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
9688         in the call to gen_rtx_NE.  Remove unneeded VECTOR_MODE_P check.
9689         Update copyright year.
9690
9691         * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
9692         Update copyright year.
9693         * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
9694         using NR fixup.
9695
9696 2008-01-05  Zhouyi Zhou  <zhouzhouyi@FreeBSD.org>
9697
9698         * tree-vrp.c (find_conditional_asserts): Remove redundant check that
9699         edge does not point to current bb before changing need_assert.
9700
9701 2008-01-04  Richard Guenther  <rguenther@suse.de>
9702
9703         PR middle-end/34029
9704         * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
9705         for verifying purposes if they are is_gimple_min_invariant.
9706
9707 2008-01-04  Aldy Hernandez  <aldyh@redhat.com>
9708
9709         PR tree-optimization/34448
9710         PR tree-optimization/34465
9711         * gimplify.c (gimplify_init_constructor): Add new parameter
9712         notify_temp_creation.  Use it.
9713         (gimplify_modify_expr_rhs): Take volatiles into account when
9714         optimizing constructors.
9715         Do not optimize constructors if gimplify_init_constructor will dump to
9716         memory.
9717         * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
9718         * gcc.c-torture/compile/pr34448.c: New.
9719
9720 2008-01-04  Jakub Jelinek  <jakub@redhat.com>
9721
9722         PR gcov-profile/34609
9723         * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
9724         return_slot if result is TREE_ADDRESSABLE.
9725
9726 2008-01-04  Richard Sandiford  <rsandifo@nildram.co.uk>
9727
9728         * config/mips/mips.md (sqrt_condition): Tweak comment.
9729         (recip_condition): Likewise.  Require TARGET_FLOAT64 for DFmode.
9730
9731 2008-01-03  Tom Tromey  <tromey@redhat.com>
9732
9733         PR c/34457
9734         * c-common.c (c_type_hash): Handle VLAs.
9735
9736 2008-01-03  Jan Hubicka  <jh@suse.cz>
9737
9738         PR tree-optimization/31081
9739         * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
9740         0 when inlining and not inlining to first basic block.
9741         (remap_decl): When var is initialized to 0, don't set default_def.
9742         (expand_call_inline): Set entry_bb.
9743         * tree-inline.h (copy_body_data): Add entry_bb.
9744
9745 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
9746
9747         PR c++/34619
9748         * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
9749         before returning.
9750
9751         PR tree-optimization/29484
9752         * tree-inline.c (inline_forbidden_p_2): New function.
9753         (inline_forbidden_p): Disallow inlining if some static var
9754         has an address of a local LABEL_DECL in its initializer.
9755         * doc/extend.texi (Labels as Values): Document &&foo behaviour
9756         vs. inlining.
9757
9758 2008-01-03  Sebastian Pop  <sebastian.pop@amd.com>
9759
9760         PR tree-optimization/34635
9761         * tree-data-ref.c (add_other_self_distances): Make sure that the
9762         evolution step is constant.
9763
9764 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
9765
9766         PR middle-end/34608
9767         * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
9768
9769 2008-01-02  Richard Sandiford  <rsandifo@nildram.co.uk>
9770
9771         * tree-sra.c (scalarize_init): Insert the generate_element_init
9772         statements after the generate_element_zero statements.
9773
9774 2008-01-02  Richard Guenther  <rguenther@suse.de>
9775
9776         PR middle-end/34093
9777         PR middle-end/31976
9778         * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
9779         for very large number of operands instead of ICEing.
9780
9781 2008-01-02  Arthur Norman <acn1@cam.ac.uk>
9782
9783         PR target/34013
9784         * config/i386/i386.c (ix86_expand_prologue): Save red-zone
9785         while stack probing.
9786
9787 2008-01-01  Douglas Gregor  <doug.gregor@gmail.com>
9788
9789         * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
9790         in C++0x mode.
9791
9792 2008-01-01  Volker Reichelt  <v.reichelt@netcologne.de>
9793
9794         PR libmudflap/26442
9795         * tree-mudflap.c (mx_register_decls): Guard warning by
9796         !DECL_ARTIFICIAL check.
9797
9798 2008-01-01  Jakub Jelinek  <jakub@redhat.com>
9799
9800         * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
9801         sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
9802         sse5_perm<mode>): Fix constraints.