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