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